2022-09-02 08:22:26 +00:00
|
|
|
import styled, { css } from "styled-components";
|
|
|
|
|
2022-09-06 10:04:40 +00:00
|
|
|
import Base from "../themes/base";
|
|
|
|
|
2022-09-02 08:22:26 +00:00
|
|
|
const StyledSelector = styled.div`
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
`;
|
|
|
|
|
2022-09-06 10:04:40 +00:00
|
|
|
StyledSelector.defaultProps = { theme: Base };
|
|
|
|
|
2022-09-02 08:22:26 +00:00
|
|
|
const StyledSelectorHeader = styled.div`
|
|
|
|
width: calc(100% - 32px);
|
|
|
|
min-height: 53px;
|
|
|
|
height: 53px;
|
|
|
|
max-height: 53px;
|
|
|
|
|
|
|
|
padding: 0 16px;
|
|
|
|
|
2022-09-06 10:04:40 +00:00
|
|
|
border-bottom: ${(props) => props.theme.selector.border};
|
2022-09-02 08:22:26 +00:00
|
|
|
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.arrow-button {
|
|
|
|
cursor: pointer;
|
|
|
|
margin-right: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.heading-text {
|
|
|
|
font-weight: 700;
|
|
|
|
font-size: 21px;
|
|
|
|
line-height: 28px;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-09-06 10:04:40 +00:00
|
|
|
StyledSelectorHeader.defaultProps = { theme: Base };
|
|
|
|
|
2022-09-02 08:22:26 +00:00
|
|
|
const StyledSelectorBody = styled.div`
|
|
|
|
width: 100%;
|
|
|
|
|
2022-09-06 08:49:16 +00:00
|
|
|
height: ${(props) =>
|
|
|
|
props.footerVisible
|
2022-09-07 12:39:10 +00:00
|
|
|
? `calc(100% - 16px - ${props.footerHeight}px - ${props.headerHeight}px)`
|
|
|
|
: `calc(100% - 16px - ${props.headerHeight}px)`};
|
2022-09-02 08:22:26 +00:00
|
|
|
|
2022-09-07 12:39:10 +00:00
|
|
|
padding: 16px 0 0 0;
|
2022-09-02 08:22:26 +00:00
|
|
|
|
2022-09-02 13:37:45 +00:00
|
|
|
.search-input,
|
|
|
|
.search-loader {
|
2022-09-02 08:22:26 +00:00
|
|
|
padding: 0 16px;
|
|
|
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-09-06 10:04:40 +00:00
|
|
|
StyledSelectorBody.defaultProps = { theme: Base };
|
|
|
|
|
2022-09-02 08:22:26 +00:00
|
|
|
const StyledSelectorFooter = styled.div`
|
|
|
|
width: calc(100% - 32px);
|
|
|
|
max-height: 73px;
|
|
|
|
height: 73px;
|
|
|
|
min-height: 73px;
|
|
|
|
|
|
|
|
padding: 0 16px;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
2022-09-06 10:04:40 +00:00
|
|
|
border-top: ${(props) => props.theme.selector.border};
|
2022-09-02 08:22:26 +00:00
|
|
|
|
|
|
|
.button {
|
|
|
|
min-height: 40px;
|
|
|
|
|
|
|
|
margin-bottom: 2px;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-09-06 10:04:40 +00:00
|
|
|
StyledSelectorFooter.defaultProps = { theme: Base };
|
|
|
|
|
2022-09-02 08:22:26 +00:00
|
|
|
export {
|
|
|
|
StyledSelector,
|
|
|
|
StyledSelectorHeader,
|
|
|
|
StyledSelectorBody,
|
|
|
|
StyledSelectorFooter,
|
|
|
|
};
|