2022-09-15 12:52:39 +00:00
|
|
|
import Box from "@docspace/components/box";
|
|
|
|
import ComboBox from "@docspace/components/combobox";
|
|
|
|
import DropDown from "@docspace/components/drop-down";
|
|
|
|
import DropDownItem from "@docspace/components/drop-down-item";
|
|
|
|
import TextInput from "@docspace/components/text-input";
|
|
|
|
import styled from "styled-components";
|
|
|
|
|
|
|
|
export const StyledBox = styled(Box)`
|
2022-09-22 15:03:03 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-09-15 12:52:39 +00:00
|
|
|
position: relative;
|
2022-09-22 15:03:03 +00:00
|
|
|
box-sizing: border-box;
|
2022-09-15 12:52:39 +00:00
|
|
|
max-width: 320px;
|
2022-09-29 12:37:33 +00:00
|
|
|
border: 1px solid ${(props) => (props.hasError ? "#f21c0e" : "#d0d5da")};
|
2022-09-22 15:03:03 +00:00
|
|
|
border-radius: 3px;
|
|
|
|
:focus-within {
|
2022-09-29 12:37:33 +00:00
|
|
|
border-color: ${(props) => (props.hasError ? "#f21c0e" : "#2da7db;")};
|
2022-09-22 15:03:03 +00:00
|
|
|
}
|
2022-09-15 12:52:39 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const StyledComboBox = styled(ComboBox)`
|
2022-09-22 12:20:27 +00:00
|
|
|
width: 57px;
|
|
|
|
height: 44px;
|
2022-09-15 12:52:39 +00:00
|
|
|
.combo-button {
|
2022-09-22 12:20:27 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2022-09-15 12:52:39 +00:00
|
|
|
border-right: 0;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
padding-left: 0;
|
2022-10-03 06:08:22 +00:00
|
|
|
.invalid-flag {
|
|
|
|
width: 24px;
|
|
|
|
height: 18px;
|
|
|
|
margin-left: 6px;
|
|
|
|
margin-top: 9px;
|
|
|
|
}
|
2022-09-22 12:20:27 +00:00
|
|
|
.forceColor {
|
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
svg {
|
|
|
|
path:last-child {
|
|
|
|
fill: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-09-15 12:52:39 +00:00
|
|
|
}
|
2022-09-22 12:20:27 +00:00
|
|
|
.combo-buttons_arrow-icon {
|
|
|
|
border-left: 4px solid transparent;
|
|
|
|
border-right: 4px solid transparent;
|
|
|
|
border-top: 4px solid #a3a9ae;
|
|
|
|
cursor: pointer;
|
|
|
|
margin: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 21px;
|
|
|
|
right: 10px;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-09-15 12:52:39 +00:00
|
|
|
export const StyledInput = styled(TextInput)`
|
2022-09-22 12:20:27 +00:00
|
|
|
height: 44px;
|
2022-09-15 12:52:39 +00:00
|
|
|
padding-left: 10px;
|
2022-09-22 15:03:03 +00:00
|
|
|
border-left: 1px solid #d0d5da !important;
|
2022-09-15 12:52:39 +00:00
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const StyledDropDown = styled(DropDown)`
|
|
|
|
padding: 12px 16px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin-top: 4px;
|
2022-09-22 15:03:03 +00:00
|
|
|
outline: 1px solid #d0d5da;
|
2022-09-15 12:52:39 +00:00
|
|
|
border-radius: 3px;
|
2022-09-22 12:20:27 +00:00
|
|
|
box-shadow: none;
|
2022-09-15 12:52:39 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const StyledDropDownItem = styled(DropDownItem)`
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
box-sizing: border-box;
|
2022-09-22 12:20:27 +00:00
|
|
|
padding: 0;
|
|
|
|
height: 36px;
|
|
|
|
svg {
|
|
|
|
width: 36px !important;
|
|
|
|
height: 36px !important;
|
|
|
|
}
|
2022-09-22 15:03:03 +00:00
|
|
|
|
2022-09-22 12:20:27 +00:00
|
|
|
.drop-down-icon {
|
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
margin-right: 0;
|
|
|
|
svg {
|
|
|
|
path:last-child {
|
2022-09-22 15:03:03 +00:00
|
|
|
fill: none;
|
2022-09-22 12:20:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-09-15 12:52:39 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const CountryName = styled.h3`
|
|
|
|
font-size: 13px;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #33333;
|
|
|
|
margin: 0;
|
2022-09-22 12:20:27 +00:00
|
|
|
margin-left: 10px;
|
2022-09-15 12:52:39 +00:00
|
|
|
line-height: 20px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const CountryDialCode = styled.p`
|
|
|
|
font-size: 13px;
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 20px;
|
|
|
|
margin: 0;
|
2022-09-22 12:20:27 +00:00
|
|
|
margin-left: 5px;
|
2022-09-15 12:52:39 +00:00
|
|
|
color: #a3a9ae;
|
|
|
|
`;
|
2022-09-22 15:03:03 +00:00
|
|
|
|
|
|
|
export const StyledText = styled.p`
|
|
|
|
color: #d0d5da;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 14px;
|
|
|
|
padding: 50px 0;
|
|
|
|
margin: 0;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const ErrorText = styled.span`
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
margin-top: 5px;
|
|
|
|
color: #f21c0e;
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 11px;
|
|
|
|
line-height: 14px;
|
|
|
|
`;
|