@stokr/components-library 3.0.77 → 3.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Input/InputPassword.js +3 -5
- package/dist/components/Input/OtpInput.js +1 -3
- package/dist/components/MenuNav/MenuNav.styles.js +1 -2
- package/dist/components/Modal/Modal.styles.js +2 -3
- package/dist/components/Newsletter/Newsletter.js +1 -3
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +1 -2
- package/dist/components/SmartLink/SmartLink.js +0 -2
- package/dist/components/StepController/StepController.js +3 -5
- package/dist/components/StepController/StepController.styles.js +102 -1
- package/dist/components/StepController/StepControllerProgress.js +1 -1
- package/dist/components/Switch/Switch.js +1 -3
- package/dist/components/ToDoList/ToDoListTask.js +15 -3
- package/dist/components/taxId/register-taxid.js +7 -5
- package/dist/index.js +67 -141
- package/dist/runtime-config.js +4 -70
- package/dist/styles/global.js +1 -2
- package/dist/utils/check-todo-status.js +1 -2
- package/package.json +8 -14
- package/dist/api/authenticationApi.js +0 -13
- package/dist/auth/index.js +0 -34
- package/dist/components/2FA/Connect2FA.js +0 -58
- package/dist/components/2FA/EnterCode.js +0 -74
- package/dist/components/2FA/InstallAuthApp.js +0 -68
- package/dist/components/2FA/ResetCode.js +0 -34
- package/dist/components/2FA/Sucess2FA.js +0 -63
- package/dist/components/2FA/disable-2fa-flow.js +0 -104
- package/dist/components/2FA/enable-2fa-flow.js +0 -167
- package/dist/components/2FA/login-with-otp-flow.js +0 -262
- package/dist/components/2FA/main-flow.js +0 -273
- package/dist/components/Footer/Footer.js +0 -69
- package/dist/components/Footer/Footer.styles.js +0 -277
- package/dist/components/Footer/FooterLayout.js +0 -150
- package/dist/components/Footer/FooterMenu.js +0 -107
- package/dist/components/Footer/FooterMenu.styles.js +0 -334
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +0 -121
- package/dist/components/Header/Header.js +0 -441
- package/dist/components/Header/Header.styles.js +0 -568
- package/dist/components/Layout/Layout.js +0 -76
- package/dist/components/LoginModal/LoginModal.js +0 -165
- package/dist/components/MainMenu/DynamicMainMenu.js +0 -38
- package/dist/components/MainMenu/MainMenu.js +0 -220
- package/dist/components/MainMenu/MainMenu.styles.js +0 -362
- package/dist/components/Modal/NewVentureModal/NewVentureModal.js +0 -273
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +0 -74
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +0 -20
- package/dist/components/RegisterModal/RegisterModal.js +0 -278
- package/dist/components/ResetConfirmModal/ResetConfirmModal.js +0 -40
- package/dist/components/ResetConfirmModal/ResetConfirmModal.styles.js +0 -41
- package/dist/components/ResetPasswordModal/ResetPasswordModal.js +0 -145
- package/dist/components/StepsProgress/StepIndicator.js +0 -40
- package/dist/components/StepsProgress/StepIndicator.styles.js +0 -69
- package/dist/components/StepsProgress/StepsProgress.js +0 -67
- package/dist/components/StepsProgress/StepsProgress.styles.js +0 -105
- package/dist/components/TermsModal/TermsModal.js +0 -145
- package/dist/components/TermsModal/_styles.js +0 -313
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +0 -122
- package/dist/components/headerHo/HeaderHo.js +0 -707
- package/dist/config.js +0 -33
- package/dist/context/Auth.js +0 -423
- package/dist/context/AuthContext.js +0 -1016
- package/dist/firebase-config.js +0 -56
- package/dist/hooks/useNewVentureForm.js +0 -235
- package/dist/static/images/background3.png.js +0 -4
- package/dist/static/images/google_auth.png.js +0 -4
- package/dist/static/images/iso27001-black.svg.js +0 -4
- package/dist/static/images/mangopay.svg.js +0 -4
- package/dist/static/images/social/Facebook_Logo.png.js +0 -4
- package/dist/static/images/social/LI-In-Bug.png.js +0 -4
- package/dist/static/images/social/Telegram-Logo.png.js +0 -4
- package/dist/static/images/social/X-logo-black.png.js +0 -4
- package/dist/static/images/social/youtube_social_circle_red.png.js +0 -4
- package/dist/utils/show-account-locked-modal.js +0 -23
- package/dist/utils/user-identity.js +0 -10
- package/dist/utils/withRouter.js +0 -26
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import { useNavigate } from "react-router-dom";
|
|
4
|
-
import { Container, Wrap, Items, Item } from "./StepsProgress.styles.js";
|
|
5
|
-
import { walletTypes } from "../../constants/globalVariables.js";
|
|
6
|
-
const StepsProgressSignup = (props) => {
|
|
7
|
-
let navigate = useNavigate();
|
|
8
|
-
const { user = {} } = props;
|
|
9
|
-
const { country, kyc_status, self_declaration, wallets = [] } = user;
|
|
10
|
-
const KYCNotDone = !kyc_status || kyc_status === "Reaply" || kyc_status === "Cancelled" || kyc_status === "Draft";
|
|
11
|
-
const hasLiquidWallet = wallets?.filter((wallet) => wallet.type === walletTypes.LIQUID).length > 0;
|
|
12
|
-
const isActiveStep = (path) => typeof window !== "undefined" ? window.location.pathname.includes(path) : false;
|
|
13
|
-
const items = [
|
|
14
|
-
{
|
|
15
|
-
id: "country",
|
|
16
|
-
handleClick: () => navigate("/country-of-residence"),
|
|
17
|
-
isDone: !!country,
|
|
18
|
-
isActive: isActiveStep("/country-of-residence")
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
id: "verify",
|
|
22
|
-
handleClick: () => navigate("/verify-identity"),
|
|
23
|
-
isDone: !KYCNotDone,
|
|
24
|
-
isActive: isActiveStep("/verify-identity")
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
id: "self-certification",
|
|
28
|
-
handleClick: () => navigate("/self-certification"),
|
|
29
|
-
isDone: self_declaration?.confirmed === true,
|
|
30
|
-
isActive: isActiveStep("/self-certification")
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
id: "ampID",
|
|
34
|
-
handleClick: () => navigate("/register-liquid-securities"),
|
|
35
|
-
isDone: hasLiquidWallet,
|
|
36
|
-
isActive: isActiveStep("/register-liquid-securities")
|
|
37
|
-
}
|
|
38
|
-
];
|
|
39
|
-
return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(Wrap, { children: /* @__PURE__ */ jsx(Items, { children: items.map((item) => /* @__PURE__ */ jsx(
|
|
40
|
-
Item,
|
|
41
|
-
{
|
|
42
|
-
isDone: item.isDone,
|
|
43
|
-
isActive: item.isActive,
|
|
44
|
-
onClick: () => {
|
|
45
|
-
if (item.handleClick) {
|
|
46
|
-
item.handleClick(item.id);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
item.id
|
|
51
|
-
)) }) }) });
|
|
52
|
-
};
|
|
53
|
-
const StepsProgressHeader = ({ items, doneIndex, activeIndex }) => /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(Wrap, { children: /* @__PURE__ */ jsx(Items, { children: items?.map((item, key) => /* @__PURE__ */ jsx(
|
|
54
|
-
Item,
|
|
55
|
-
{
|
|
56
|
-
isDone: key <= doneIndex,
|
|
57
|
-
isActive: key === activeIndex,
|
|
58
|
-
onClick: () => {
|
|
59
|
-
item.handleClick?.(item.id);
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
item.id
|
|
63
|
-
)) }) }) });
|
|
64
|
-
export {
|
|
65
|
-
StepsProgressHeader,
|
|
66
|
-
StepsProgressSignup
|
|
67
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import rwd from "../../styles/rwd.js";
|
|
3
|
-
import { colors } from "../../styles/colors.js";
|
|
4
|
-
const Container = styled.div`
|
|
5
|
-
display: block;
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 100%;
|
|
8
|
-
`;
|
|
9
|
-
const Wrap = styled.div`
|
|
10
|
-
display: block;
|
|
11
|
-
margin: 0 auto;
|
|
12
|
-
`;
|
|
13
|
-
const Items = styled.div`
|
|
14
|
-
display: flex;
|
|
15
|
-
height: 100%;
|
|
16
|
-
font-size: 0;
|
|
17
|
-
flex-direction: row;
|
|
18
|
-
flex-wrap: nowrap;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
margin: 0 -6px;
|
|
21
|
-
text-align: center;
|
|
22
|
-
|
|
23
|
-
${rwd.Medium`
|
|
24
|
-
display: block;
|
|
25
|
-
`}
|
|
26
|
-
`;
|
|
27
|
-
const Item = styled.div.withConfig({
|
|
28
|
-
shouldForwardProp: (props) => !["isDone", "isActive"].includes(props)
|
|
29
|
-
})`
|
|
30
|
-
position: relative;
|
|
31
|
-
display: inline-block;
|
|
32
|
-
vertical-align: middle;
|
|
33
|
-
padding: 0;
|
|
34
|
-
flex: 1;
|
|
35
|
-
margin: 0 4px;
|
|
36
|
-
height: 32px;
|
|
37
|
-
max-width: 32px;
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
|
|
40
|
-
&:before {
|
|
41
|
-
z-index: 0;
|
|
42
|
-
content: '';
|
|
43
|
-
display: block;
|
|
44
|
-
width: 100%;
|
|
45
|
-
height: 4px;
|
|
46
|
-
position: absolute;
|
|
47
|
-
top: 14px;
|
|
48
|
-
left: 0;
|
|
49
|
-
border-radius: 3px;
|
|
50
|
-
box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.05);
|
|
51
|
-
background-color: ${colors.lightGrey};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&:after {
|
|
55
|
-
z-index: 1;
|
|
56
|
-
content: '';
|
|
57
|
-
display: block;
|
|
58
|
-
width: 100%;
|
|
59
|
-
height: 4px;
|
|
60
|
-
position: absolute;
|
|
61
|
-
top: 14px;
|
|
62
|
-
left: 0;
|
|
63
|
-
border-radius: 3px;
|
|
64
|
-
background-color: transparent;
|
|
65
|
-
transition: background-color 0.2s;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&:focus {
|
|
69
|
-
outline: none;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&:hover:after {
|
|
73
|
-
background-color: ${colors.black};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
${(props) => props.isDone && `
|
|
77
|
-
&:after {
|
|
78
|
-
background-color: ${colors.progressGreen};
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&:hover:after {
|
|
82
|
-
background-color: ${colors.black};
|
|
83
|
-
}
|
|
84
|
-
`}
|
|
85
|
-
|
|
86
|
-
${(props) => props.isActive && `
|
|
87
|
-
&:after {
|
|
88
|
-
background-color: ${colors.grey2};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&:hover:after {
|
|
92
|
-
background-color: ${colors.black};
|
|
93
|
-
}
|
|
94
|
-
`}
|
|
95
|
-
|
|
96
|
-
${rwd.Medium`
|
|
97
|
-
width: 32px;
|
|
98
|
-
`}
|
|
99
|
-
`;
|
|
100
|
-
export {
|
|
101
|
-
Container,
|
|
102
|
-
Item,
|
|
103
|
-
Items,
|
|
104
|
-
Wrap
|
|
105
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React__default from "react";
|
|
3
|
-
import { Formik } from "formik";
|
|
4
|
-
import * as Yup from "yup";
|
|
5
|
-
import parse from "html-react-parser";
|
|
6
|
-
import stdin_default$1 from "../ComponentScroll/ComponentScroll.js";
|
|
7
|
-
import { Modal } from "../Modal/Modal.js";
|
|
8
|
-
import { Row, Column } from "../Grid/Grid.styles.js";
|
|
9
|
-
import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
|
|
10
|
-
import { Wrapper, Header, HeaderTitle, Body } from "./_styles.js";
|
|
11
|
-
import styled from "styled-components";
|
|
12
|
-
import theme from "../../styles/theme.js";
|
|
13
|
-
import { ModalInner, ModalBack } from "../Modal/Modal.styles.js";
|
|
14
|
-
const StyledPrivacyText = styled.div.withConfig({
|
|
15
|
-
shouldForwardProp: (props) => !["thridParties"].includes(props)
|
|
16
|
-
})`
|
|
17
|
-
&& {
|
|
18
|
-
width: 100%;
|
|
19
|
-
|
|
20
|
-
p {
|
|
21
|
-
color: ${theme.cBlack};
|
|
22
|
-
font-size: 16px;
|
|
23
|
-
line-height: 1.5;
|
|
24
|
-
font-weight: 300;
|
|
25
|
-
margin: 0;
|
|
26
|
-
padding-bottom: 10px;
|
|
27
|
-
font-style: normal;
|
|
28
|
-
font-stretch: normal;
|
|
29
|
-
letter-spacing: 0.6px;
|
|
30
|
-
}
|
|
31
|
-
a {
|
|
32
|
-
text-decoration: none;
|
|
33
|
-
color: ${theme.cBlack};
|
|
34
|
-
font-weight: 300;
|
|
35
|
-
word-break: break-all !important;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
h4 {
|
|
39
|
-
font-size: 17.2px !important;
|
|
40
|
-
font-weight: 700 !important;
|
|
41
|
-
line-height: 1.28571em;
|
|
42
|
-
letter-spacing: normal;
|
|
43
|
-
position: relative;
|
|
44
|
-
margin-top: 29px;
|
|
45
|
-
margin-bottom: 16px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
table {
|
|
49
|
-
border-collapse: collapse;
|
|
50
|
-
margin: 32px 0;
|
|
51
|
-
font-size: 16px;
|
|
52
|
-
|
|
53
|
-
tr {
|
|
54
|
-
td:first-child {
|
|
55
|
-
width: ${(props) => props.thirdParties ? "30%" : "40%"};
|
|
56
|
-
text-align: center;
|
|
57
|
-
}
|
|
58
|
-
td:last-child {
|
|
59
|
-
width: ${(props) => props.thirdParties ? "70%" : "60%"};
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
td,
|
|
64
|
-
th {
|
|
65
|
-
border: 1px solid #2e2e2e;
|
|
66
|
-
padding: 10px;
|
|
67
|
-
|
|
68
|
-
li {
|
|
69
|
-
margin-bottom: 0;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
ul {
|
|
75
|
-
list-style-type: disclosure-closed;
|
|
76
|
-
list-style: none;
|
|
77
|
-
margin: 0;
|
|
78
|
-
padding: 0;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
li {
|
|
82
|
-
padding: 0 0 0 32px;
|
|
83
|
-
color: ${theme.cBlack};
|
|
84
|
-
font-size: 0.75rem;
|
|
85
|
-
letter-spacing: normal;
|
|
86
|
-
line-height: 1.31rem;
|
|
87
|
-
font-weight: 200;
|
|
88
|
-
margin-bottom: 16px;
|
|
89
|
-
position: relative;
|
|
90
|
-
/* top: 1px; */
|
|
91
|
-
|
|
92
|
-
font-size: 16px !important;
|
|
93
|
-
font-weight: 300;
|
|
94
|
-
font-style: normal;
|
|
95
|
-
font-stretch: normal;
|
|
96
|
-
line-height: 1.5 !important;
|
|
97
|
-
letter-spacing: 0.6px;
|
|
98
|
-
|
|
99
|
-
a {
|
|
100
|
-
word-break: break-all !important;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&:before {
|
|
104
|
-
content: '';
|
|
105
|
-
position: absolute;
|
|
106
|
-
width: 10px;
|
|
107
|
-
height: 10px;
|
|
108
|
-
background: #0050ca;
|
|
109
|
-
border-radius: 100px;
|
|
110
|
-
left: 0;
|
|
111
|
-
top: 3px;
|
|
112
|
-
margin-top: 0.4rem;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
`;
|
|
117
|
-
class TermsModal extends React__default.Component {
|
|
118
|
-
// state = { popupOpen: false }
|
|
119
|
-
validationSchema = Yup.object().shape({
|
|
120
|
-
termsAccepted: Yup.bool().test("termsAccepted", "Agreement is required", (value) => value === true).required("Agreement is required")
|
|
121
|
-
});
|
|
122
|
-
// handlePopup = (isOpen, values) => {
|
|
123
|
-
// const buttonDisabled = !values.termsAccepted
|
|
124
|
-
// this.setState({
|
|
125
|
-
// popupOpen: buttonDisabled ? isOpen : false,
|
|
126
|
-
// })
|
|
127
|
-
// }
|
|
128
|
-
render() {
|
|
129
|
-
const { isModalOpen, onModalClose, onFormSend, onModalSwitch, termsData } = this.props;
|
|
130
|
-
return /* @__PURE__ */ jsx(Formik, { onSubmit: onFormSend, validationSchema: this.validationSchema, children: () => {
|
|
131
|
-
return /* @__PURE__ */ jsx(Modal, { isOpen: isModalOpen, onClose: onModalClose, children: /* @__PURE__ */ jsx(Row, { children: /* @__PURE__ */ jsx(Column, { children: /* @__PURE__ */ jsxs(ModalInner, { noPadding: true, isMobile: true, children: [
|
|
132
|
-
/* @__PURE__ */ jsx(ModalBack, { onClick: onModalSwitch }),
|
|
133
|
-
/* @__PURE__ */ jsxs(Wrapper, { children: [
|
|
134
|
-
/* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(HeaderTitle, { children: "STOKR PRIVACY TERMS" }) }),
|
|
135
|
-
/* @__PURE__ */ jsx(Body, { noHorizontalPadding: true, children: /* @__PURE__ */ jsx(stdin_default$1, { children: /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingVertical: true, children: /* @__PURE__ */ jsx(StyledPrivacyText, { children: termsData && parse(termsData.text) }) }) }) })
|
|
136
|
-
] })
|
|
137
|
-
] }) }) }) });
|
|
138
|
-
} });
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
var stdin_default = TermsModal;
|
|
142
|
-
export {
|
|
143
|
-
TermsModal,
|
|
144
|
-
stdin_default as default
|
|
145
|
-
};
|
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import styled, { css } from "styled-components";
|
|
2
|
-
import rwd from "../../styles/rwd.js";
|
|
3
|
-
import stdin_default from "../Button/Button.styles.js";
|
|
4
|
-
import "../Form/Form.js";
|
|
5
|
-
import { Row } from "../Grid/Grid.styles.js";
|
|
6
|
-
import { Text } from "../Text/Text.styles.js";
|
|
7
|
-
import { Icon, iconsMap } from "../Icon/Icon.style.js";
|
|
8
|
-
import { FormField, FormError } from "../Form/Form.styles.js";
|
|
9
|
-
const Wrapper = styled.div`
|
|
10
|
-
height: 100%;
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
padding: 33px 0;
|
|
14
|
-
|
|
15
|
-
${Text} {
|
|
16
|
-
p {
|
|
17
|
-
${rwd.XLarge`
|
|
18
|
-
font-size: 16px;
|
|
19
|
-
`}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
`;
|
|
23
|
-
const Header = styled.div`
|
|
24
|
-
min-height: 82px;
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-wrap: wrap;
|
|
27
|
-
padding: 12px 24px;
|
|
28
|
-
flex-shrink: 0;
|
|
29
|
-
|
|
30
|
-
${rwd.Large`
|
|
31
|
-
padding: 21px 64px;
|
|
32
|
-
`}
|
|
33
|
-
`;
|
|
34
|
-
const HeaderTitle = styled.div.withConfig({
|
|
35
|
-
shouldForwardProp: (props) => !["withMargin"].includes(props)
|
|
36
|
-
})`
|
|
37
|
-
font-family: 'Open Sans';
|
|
38
|
-
font-weight: 800;
|
|
39
|
-
font-size: 22px;
|
|
40
|
-
line-height: 1.27em;
|
|
41
|
-
letter-spacing: 0.8px;
|
|
42
|
-
text-transform: uppercase;
|
|
43
|
-
${(props) => props.withMargin && "margin-top: 16px;"}
|
|
44
|
-
`;
|
|
45
|
-
styled.div`
|
|
46
|
-
margin: 0 auto;
|
|
47
|
-
padding: 8px 0;
|
|
48
|
-
|
|
49
|
-
& > * {
|
|
50
|
-
display: inline-block !important;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
${rwd.Large`
|
|
54
|
-
margin-right: 0;
|
|
55
|
-
`}
|
|
56
|
-
|
|
57
|
-
${stdin_default}${stdin_default}${stdin_default} {
|
|
58
|
-
margin-right: 16px;
|
|
59
|
-
|
|
60
|
-
&:last-child {
|
|
61
|
-
margin-right: 0;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
`;
|
|
65
|
-
const Body = styled.div.withConfig({
|
|
66
|
-
shouldForwardProp: (props) => !["noVerticalPadding", "noHorizontalPadding", "form"].includes(props)
|
|
67
|
-
})`
|
|
68
|
-
padding: 21px 24px;
|
|
69
|
-
height: 100%;
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-direction: column;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
overflow-y: auto;
|
|
74
|
-
|
|
75
|
-
@media screen and (max-width: 767px) {
|
|
76
|
-
display: flex;
|
|
77
|
-
justify-content: space-between;
|
|
78
|
-
padding: 0;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
${(props) => props.noVerticalPadding && `
|
|
82
|
-
padding-top: 0!important;
|
|
83
|
-
padding-bottom: 0!important;
|
|
84
|
-
`}
|
|
85
|
-
|
|
86
|
-
${(props) => props.noHorizontalPadding && `
|
|
87
|
-
padding-left: 0;
|
|
88
|
-
padding-right: 0;
|
|
89
|
-
`}
|
|
90
|
-
|
|
91
|
-
${(props) => props.form && css`
|
|
92
|
-
padding: 21px 48px;
|
|
93
|
-
justify-content: flex-start;
|
|
94
|
-
|
|
95
|
-
${Row} {
|
|
96
|
-
flex-shrink: 0;
|
|
97
|
-
}
|
|
98
|
-
`}
|
|
99
|
-
`;
|
|
100
|
-
styled.div`
|
|
101
|
-
${FormField} {
|
|
102
|
-
display: flex;
|
|
103
|
-
justify-content: space-between;
|
|
104
|
-
flex-direction: column;
|
|
105
|
-
|
|
106
|
-
${rwd.Medium`
|
|
107
|
-
display: inline-block;
|
|
108
|
-
vertical-align: middle;
|
|
109
|
-
margin-right: 44px;
|
|
110
|
-
`}
|
|
111
|
-
|
|
112
|
-
+ ${FormField} {
|
|
113
|
-
padding-top: 32px;
|
|
114
|
-
|
|
115
|
-
${rwd.Medium`
|
|
116
|
-
padding-top: 0;
|
|
117
|
-
`}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
${FormError} {
|
|
121
|
-
white-space: nowrap;
|
|
122
|
-
padding-left: 28px;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
`;
|
|
126
|
-
styled.div.withConfig({
|
|
127
|
-
shouldForwardProp: (props) => !["faceScan"].includes(props)
|
|
128
|
-
})`
|
|
129
|
-
text-align: center;
|
|
130
|
-
margin: 0 auto;
|
|
131
|
-
font-size: 11px;
|
|
132
|
-
font-weight: bold;
|
|
133
|
-
line-height: 1.82;
|
|
134
|
-
letter-spacing: 2px;
|
|
135
|
-
|
|
136
|
-
${(props) => props.faceScan && `
|
|
137
|
-
margin-top: 20px;
|
|
138
|
-
`}
|
|
139
|
-
`;
|
|
140
|
-
styled.div.withConfig({
|
|
141
|
-
shouldForwardProp: (props) => ![
|
|
142
|
-
"verticalPadding",
|
|
143
|
-
"horizontalPadding",
|
|
144
|
-
"formInner",
|
|
145
|
-
"withSeparator",
|
|
146
|
-
"verticalCenter",
|
|
147
|
-
"verticalSpaceAround"
|
|
148
|
-
].includes(props)
|
|
149
|
-
})`
|
|
150
|
-
display: flex;
|
|
151
|
-
flex-direction: column;
|
|
152
|
-
align-items: center;
|
|
153
|
-
height: 100%;
|
|
154
|
-
|
|
155
|
-
${(props) => props.verticalPadding && `
|
|
156
|
-
padding-top: 40px;
|
|
157
|
-
padding-bottom: 40px;
|
|
158
|
-
`}
|
|
159
|
-
|
|
160
|
-
${(props) => props.horizontalPadding && `
|
|
161
|
-
padding-left: 36px;
|
|
162
|
-
padding-right: 36px;
|
|
163
|
-
`}
|
|
164
|
-
|
|
165
|
-
${(props) => props.formInner && `
|
|
166
|
-
padding-left: 18px;
|
|
167
|
-
padding-right: 18px;
|
|
168
|
-
align-items: stretch;
|
|
169
|
-
`}
|
|
170
|
-
|
|
171
|
-
${(props) => props.withSeparator && `
|
|
172
|
-
border-bottom: 1px solid ${props.theme.cLightGrey};
|
|
173
|
-
`}
|
|
174
|
-
|
|
175
|
-
${(props) => props.verticalCenter && `
|
|
176
|
-
justify-content: center;
|
|
177
|
-
`}
|
|
178
|
-
|
|
179
|
-
${(props) => props.verticalSpaceAround && `
|
|
180
|
-
justify-content: space-around;
|
|
181
|
-
`}
|
|
182
|
-
|
|
183
|
-
${rwd.Medium`
|
|
184
|
-
${(props) => props.withSeparator && `
|
|
185
|
-
border-bottom: 0;
|
|
186
|
-
border-right: 1px solid ${props.theme.cLightGrey};
|
|
187
|
-
`}
|
|
188
|
-
`}
|
|
189
|
-
`;
|
|
190
|
-
styled.input.attrs((props) => ({
|
|
191
|
-
type: "file",
|
|
192
|
-
...props
|
|
193
|
-
}))`
|
|
194
|
-
visibility: hidden;
|
|
195
|
-
position: absolute;
|
|
196
|
-
width: 0.1px;
|
|
197
|
-
height: 0.1px;
|
|
198
|
-
z-index: -1;
|
|
199
|
-
`;
|
|
200
|
-
styled(stdin_default).attrs({
|
|
201
|
-
as: "label",
|
|
202
|
-
type: void 0
|
|
203
|
-
})`
|
|
204
|
-
position: relative;
|
|
205
|
-
word-break: break-all;
|
|
206
|
-
`;
|
|
207
|
-
styled(Icon).attrs({
|
|
208
|
-
icon: iconsMap.trash
|
|
209
|
-
})`
|
|
210
|
-
position: absolute;
|
|
211
|
-
top: 50%;
|
|
212
|
-
right: 0px;
|
|
213
|
-
transform: translateY(-50%);
|
|
214
|
-
font-size: 16px;
|
|
215
|
-
cursor: pointer;
|
|
216
|
-
transition: 0.3s color;
|
|
217
|
-
color: ${(props) => props.theme.cWarning};
|
|
218
|
-
border-radius: 50%;
|
|
219
|
-
border: 1px solid ${(props) => props.theme.cLightGrey};
|
|
220
|
-
padding: 10px;
|
|
221
|
-
|
|
222
|
-
&:hover {
|
|
223
|
-
color: ${(props) => props.theme.cPrimary};
|
|
224
|
-
}
|
|
225
|
-
`;
|
|
226
|
-
styled(Icon).withConfig({
|
|
227
|
-
shouldForwardProp: (props) => !["isHidden"].includes(props)
|
|
228
|
-
}).attrs({
|
|
229
|
-
icon: iconsMap.check
|
|
230
|
-
})`
|
|
231
|
-
width: 40px;
|
|
232
|
-
height: 40px;
|
|
233
|
-
border-radius: 50%;
|
|
234
|
-
display: flex !important;
|
|
235
|
-
justify-content: center;
|
|
236
|
-
align-items: center;
|
|
237
|
-
color: ${(props) => props.theme.cSuccess};
|
|
238
|
-
margin: auto;
|
|
239
|
-
font-size: 18px;
|
|
240
|
-
|
|
241
|
-
${(props) => props.isHidden && `
|
|
242
|
-
opacity: 0;
|
|
243
|
-
`}
|
|
244
|
-
`;
|
|
245
|
-
styled.ul`
|
|
246
|
-
list-style-type: none;
|
|
247
|
-
padding: 0;
|
|
248
|
-
font-size: 12px;
|
|
249
|
-
width: 100%;
|
|
250
|
-
`;
|
|
251
|
-
styled.li`
|
|
252
|
-
padding: 0 46px 0 8px;
|
|
253
|
-
margin-right: 8px;
|
|
254
|
-
position: relative;
|
|
255
|
-
word-break: break-all;
|
|
256
|
-
`;
|
|
257
|
-
const DocumentScanButtonsStyle = css`
|
|
258
|
-
width: 40px;
|
|
259
|
-
height: 40px;
|
|
260
|
-
margin-top: 20px;
|
|
261
|
-
margin-bottom: 10px;
|
|
262
|
-
border-radius: 50%;
|
|
263
|
-
background: ${(props) => props.theme.cPrimary};
|
|
264
|
-
color: ${(props) => props.theme.cWhite};
|
|
265
|
-
display: flex !important;
|
|
266
|
-
justify-content: center;
|
|
267
|
-
align-items: center;
|
|
268
|
-
font-size: 18px;
|
|
269
|
-
|
|
270
|
-
& > svg {
|
|
271
|
-
fill: ${(props) => props.theme.cWhite};
|
|
272
|
-
stroke: ${(props) => props.theme.cWhite};
|
|
273
|
-
}
|
|
274
|
-
`;
|
|
275
|
-
styled.button`
|
|
276
|
-
${DocumentScanButtonsStyle};
|
|
277
|
-
|
|
278
|
-
& > svg {
|
|
279
|
-
width: 22px !important;
|
|
280
|
-
height: 23px !important;
|
|
281
|
-
}
|
|
282
|
-
`;
|
|
283
|
-
styled.button.attrs({
|
|
284
|
-
className: "ion ion-md-checkmark"
|
|
285
|
-
})`
|
|
286
|
-
${DocumentScanButtonsStyle};
|
|
287
|
-
`;
|
|
288
|
-
styled.div`
|
|
289
|
-
width: 100%;
|
|
290
|
-
height: 100%;
|
|
291
|
-
background: rgba(201, 255, 233, 0.6);
|
|
292
|
-
position: relative;
|
|
293
|
-
`;
|
|
294
|
-
styled(Row)`
|
|
295
|
-
padding-left: 18px;
|
|
296
|
-
padding-right: 18px;
|
|
297
|
-
padding-top: 64px;
|
|
298
|
-
`;
|
|
299
|
-
styled.div`
|
|
300
|
-
padding-top: 32px;
|
|
301
|
-
margin: auto;
|
|
302
|
-
|
|
303
|
-
${rwd.Medium`
|
|
304
|
-
padding-top: 0;
|
|
305
|
-
margin-right: 0;
|
|
306
|
-
`}
|
|
307
|
-
`;
|
|
308
|
-
export {
|
|
309
|
-
Body,
|
|
310
|
-
Header,
|
|
311
|
-
HeaderTitle,
|
|
312
|
-
Wrapper
|
|
313
|
-
};
|