2021-11-11 03:10:35 +08:00
|
|
|
import styled from 'styled-components';
|
2022-02-15 04:20:50 +08:00
|
|
|
import Button from '/imports/ui/components/common/button/component';
|
2022-02-15 23:54:55 +08:00
|
|
|
import Modal from '/imports/ui/components/common/modal/simple/component';
|
2021-11-11 03:10:35 +08:00
|
|
|
import {
|
|
|
|
smPaddingX,
|
|
|
|
smPaddingY,
|
|
|
|
lgPaddingX,
|
|
|
|
lgPaddingY,
|
|
|
|
descriptionMargin,
|
|
|
|
titlePositionLeft,
|
|
|
|
jumboPaddingY,
|
|
|
|
} from '/imports/ui/stylesheets/styled-components/general';
|
|
|
|
import {
|
|
|
|
colorGrayDark,
|
|
|
|
colorGray,
|
|
|
|
} from '/imports/ui/stylesheets/styled-components/palette';
|
|
|
|
import {
|
|
|
|
headingsFontWeight,
|
|
|
|
lineHeightBase,
|
|
|
|
} from '/imports/ui/stylesheets/styled-components/typography';
|
|
|
|
|
2022-03-02 21:42:17 +08:00
|
|
|
const ConfirmationModal = styled(Modal)`
|
2021-11-11 03:10:35 +08:00
|
|
|
padding: ${smPaddingY};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Container = styled.div`
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-direction: column;
|
|
|
|
padding: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-right: ${descriptionMargin};
|
|
|
|
margin-left: ${descriptionMargin};
|
|
|
|
margin-bottom: ${lgPaddingX};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Header = styled.div`
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
line-height: ${titlePositionLeft};
|
|
|
|
margin-bottom: ${lgPaddingY};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Title = styled.div`
|
|
|
|
color: ${colorGrayDark};
|
|
|
|
font-weight: ${headingsFontWeight};
|
|
|
|
font-size: ${jumboPaddingY};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Description = styled.div`
|
|
|
|
text-align: center;
|
|
|
|
line-height: ${lineHeightBase};
|
|
|
|
color: ${colorGray};
|
|
|
|
margin-bottom: ${jumboPaddingY};
|
|
|
|
`;
|
|
|
|
|
2022-03-02 21:42:17 +08:00
|
|
|
const Checkbox = styled.input`
|
2021-11-11 03:10:35 +08:00
|
|
|
position: relative;
|
|
|
|
top: 0.134rem;
|
|
|
|
margin-right: 0.5rem;
|
|
|
|
[dir="rtl"] & {
|
|
|
|
margin-right: 0;
|
|
|
|
margin-left: 0.5rem;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Footer = styled.div`
|
|
|
|
display:flex;
|
|
|
|
`;
|
|
|
|
|
2022-03-02 22:45:33 +08:00
|
|
|
const ConfirmationButton = styled(Button)`
|
2021-11-11 03:10:35 +08:00
|
|
|
padding-right: ${jumboPaddingY};
|
|
|
|
padding-left: ${jumboPaddingY};
|
|
|
|
margin: 0 ${smPaddingX} 0 0;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
margin: 0 0 0 ${smPaddingX};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default {
|
2022-03-02 21:42:17 +08:00
|
|
|
ConfirmationModal,
|
2021-11-11 03:10:35 +08:00
|
|
|
Container,
|
|
|
|
Header,
|
|
|
|
Title,
|
|
|
|
Description,
|
2022-03-02 21:42:17 +08:00
|
|
|
Checkbox,
|
2021-11-11 03:10:35 +08:00
|
|
|
Footer,
|
2022-03-02 22:45:33 +08:00
|
|
|
ConfirmationButton,
|
2021-11-11 03:10:35 +08:00
|
|
|
};
|