@stokr/components-library 3.0.76 → 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/README.md +177 -177
- 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.js +6 -3
- package/dist/components/Modal/Modal.styles.js +2 -3
- package/dist/components/Modal/SuccessModal/SuccessModal.js +6 -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/manifest.json +25 -25
- package/dist/robots.txt +3 -3
- package/dist/runtime-config.js +5 -71
- package/dist/static/fonts/icomoon/icomoon.eot +0 -0
- package/dist/static/fonts/icomoon/icomoon.svg +52 -52
- package/dist/static/fonts/icomoon/icomoon.ttf +0 -0
- package/dist/static/fonts/icomoon/icomoon.woff +0 -0
- package/dist/static/fonts/icomoon/selection.json +0 -0
- package/dist/static/fonts/icomoon/style.css +0 -0
- package/dist/static/images/Glassess.svg +5 -5
- package/dist/static/images/add-folder-icon.svg +4 -4
- package/dist/static/images/arrow-down-black.svg +21 -21
- package/dist/static/images/check-icon.svg +3 -3
- package/dist/static/images/checkmark-circle-icon.svg +3 -3
- package/dist/static/images/close-circle-icon.svg +2 -2
- package/dist/static/images/copy_icon.svg +4 -4
- package/dist/static/images/cross-icon.svg +3 -3
- package/dist/static/images/currency/eth.svg +10 -10
- package/dist/static/images/currency/eth_logo.svg +8 -8
- package/dist/static/images/currency/eur.svg +4 -4
- package/dist/static/images/currency/eur.svg.js +1 -1
- package/dist/static/images/currency/usd.svg +4 -4
- package/dist/static/images/currency/usd.svg.js +1 -1
- package/dist/static/images/currency/usdc-logo.svg +5 -5
- package/dist/static/images/doc-icon.svg +3 -3
- package/dist/static/images/download_icon.svg +3 -3
- package/dist/static/images/external-link-icon.svg +3 -3
- package/dist/static/images/filter-icon.svg +6 -6
- package/dist/static/images/globe.svg +15 -15
- package/dist/static/images/mangopay.svg +20 -20
- package/dist/static/images/numbers/number_eight.svg +3 -3
- package/dist/static/images/numbers/number_five.svg +4 -4
- package/dist/static/images/numbers/number_four.svg +3 -3
- package/dist/static/images/numbers/number_nine.svg +4 -4
- package/dist/static/images/numbers/number_one.svg +4 -4
- package/dist/static/images/numbers/number_seven.svg +4 -4
- package/dist/static/images/numbers/number_six.svg +4 -4
- package/dist/static/images/numbers/number_three.svg +3 -3
- package/dist/static/images/numbers/number_two.svg +4 -4
- package/dist/static/images/numbers/number_zero.svg +3 -3
- package/dist/static/images/plus-icon.svg +4 -4
- package/dist/static/images/prof-inv.svg +3 -3
- package/dist/static/images/search-icon.svg +3 -3
- package/dist/static/images/transfer-icon.svg +10 -10
- package/dist/static/images/trash.svg +16 -16
- package/dist/static/images/upload.svg +5 -5
- package/dist/static/images/warning-filled.svg +3 -3
- package/dist/styles/global.js +1 -2
- package/dist/utils/check-todo-status.js +1 -2
- package/package.json +137 -143
- 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,568 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import stdin_default from "../SmartLink/SmartLink.js";
|
|
3
|
-
import rwd, { rwdMax } from "../../styles/rwd.js";
|
|
4
|
-
import { colors } from "../../styles/colors.js";
|
|
5
|
-
import spacing from "../../styles/spacing.js";
|
|
6
|
-
import stdin_default$1 from "../Button/Button.styles.js";
|
|
7
|
-
import { WHITE_HEX, BLUE_BASE_RELEASED_HEX, GRAY_BASE_HEX } from "../../constants/style.js";
|
|
8
|
-
import { SocialLink } from "../Footer/FooterMenu.styles.js";
|
|
9
|
-
import { iconsMap, Icon } from "../Icon/Icon.style.js";
|
|
10
|
-
const StyledSubMenu = styled.div`
|
|
11
|
-
position: relative;
|
|
12
|
-
`;
|
|
13
|
-
const StyledHeader = styled.header.withConfig({
|
|
14
|
-
shouldForwardProp: (props) => !["noFixedPosition"].includes(props)
|
|
15
|
-
})`
|
|
16
|
-
z-index: 1000;
|
|
17
|
-
position: relative;
|
|
18
|
-
color: ${colors.black};
|
|
19
|
-
border-bottom: 1px solid rgb(237, 237, 237);
|
|
20
|
-
|
|
21
|
-
${rwd.MLarge`
|
|
22
|
-
position: fixed;
|
|
23
|
-
top: 0;
|
|
24
|
-
left: 0;
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: ${spacing.headerHeight}px;
|
|
27
|
-
background-color: ${colors.white};
|
|
28
|
-
box-shadow: inset 0 -1px 0 0 ${colors.lightGrey};
|
|
29
|
-
|
|
30
|
-
/* Compensate for scrollbar when modal is open */
|
|
31
|
-
padding-right: var(--scrollbar-compensation, 0px);
|
|
32
|
-
|
|
33
|
-
${(props) => props.noFixedPosition && `
|
|
34
|
-
position:initial;
|
|
35
|
-
`}
|
|
36
|
-
`}
|
|
37
|
-
`;
|
|
38
|
-
const HeaderInner = styled.div.withConfig({
|
|
39
|
-
shouldForwardProp: (props) => !["withSidebar"].includes(props)
|
|
40
|
-
})`
|
|
41
|
-
position: relative;
|
|
42
|
-
padding: 24px;
|
|
43
|
-
|
|
44
|
-
${(props) => props.withSidebar && `
|
|
45
|
-
left: 64px;
|
|
46
|
-
transition: 0.3s width;
|
|
47
|
-
`}
|
|
48
|
-
|
|
49
|
-
${rwd.MLarge`
|
|
50
|
-
display: flex;
|
|
51
|
-
padding: 28px 64px;
|
|
52
|
-
align-items: center;
|
|
53
|
-
|
|
54
|
-
${(props) => props.withSidebar && `
|
|
55
|
-
width:100%;
|
|
56
|
-
left:0;
|
|
57
|
-
`}
|
|
58
|
-
`}
|
|
59
|
-
`;
|
|
60
|
-
const MainNavWrap = styled.div.withConfig({
|
|
61
|
-
shouldForwardProp: (props) => !["isFixedWidth", "noProgress", "hasProgress"].includes(props)
|
|
62
|
-
})`
|
|
63
|
-
z-index: 2;
|
|
64
|
-
position: relative;
|
|
65
|
-
font-size: 0;
|
|
66
|
-
|
|
67
|
-
${rwd.MLarge`
|
|
68
|
-
flex-grow: ${({ isFixedWidth }) => !isFixedWidth && 1};
|
|
69
|
-
width: ${({ isFixedWidth }) => isFixedWidth && "200px"};
|
|
70
|
-
|
|
71
|
-
${(props) => props.noProgress && `
|
|
72
|
-
flex-grow: 3;
|
|
73
|
-
`}
|
|
74
|
-
|
|
75
|
-
${(props) => props.hasProgress && `
|
|
76
|
-
width:33.3%;
|
|
77
|
-
`}
|
|
78
|
-
`}
|
|
79
|
-
`;
|
|
80
|
-
const SidebarToggle = styled.div.withConfig({
|
|
81
|
-
shouldForwardProp: (props) => !["isSidebarExpanded"].includes(props)
|
|
82
|
-
})`
|
|
83
|
-
width: 64px;
|
|
84
|
-
height: 100%;
|
|
85
|
-
background: ${colors.rustyRed};
|
|
86
|
-
transition: 0.3s width;
|
|
87
|
-
flex-shrink: 0;
|
|
88
|
-
display: flex;
|
|
89
|
-
position: absolute;
|
|
90
|
-
cursor: pointer;
|
|
91
|
-
z-index: 10;
|
|
92
|
-
|
|
93
|
-
${rwd.MLarge`
|
|
94
|
-
position: relative;
|
|
95
|
-
width: 100px;
|
|
96
|
-
`}
|
|
97
|
-
|
|
98
|
-
${(props) => props.isSidebarExpanded && rwd.MLarge`
|
|
99
|
-
width: 300px;
|
|
100
|
-
`}
|
|
101
|
-
`;
|
|
102
|
-
const HamburgerIcon = styled(Icon)`
|
|
103
|
-
display: block;
|
|
104
|
-
width: 18px;
|
|
105
|
-
height: 18px;
|
|
106
|
-
position: absolute;
|
|
107
|
-
top: 50%;
|
|
108
|
-
left: 50%;
|
|
109
|
-
margin-top: -9px;
|
|
110
|
-
margin-left: -9px;
|
|
111
|
-
font-size: 18px;
|
|
112
|
-
line-height: 18px;
|
|
113
|
-
color: ${colors.white};
|
|
114
|
-
|
|
115
|
-
&:before {
|
|
116
|
-
content: '${iconsMap.hamburger}';
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
${rwd.MLarge`
|
|
120
|
-
left: 50px;
|
|
121
|
-
`}
|
|
122
|
-
`;
|
|
123
|
-
const ProgressWrap = styled.div`
|
|
124
|
-
z-index: 0;
|
|
125
|
-
position: relative;
|
|
126
|
-
text-align: center;
|
|
127
|
-
margin-top: 24px;
|
|
128
|
-
|
|
129
|
-
${rwd.MLarge`
|
|
130
|
-
flex-grow: 2;
|
|
131
|
-
margin-top: 0;
|
|
132
|
-
`}
|
|
133
|
-
`;
|
|
134
|
-
const QuickNavWrap = styled.div.withConfig({
|
|
135
|
-
shouldForwardProp: (props) => !["isFixeWidth", "hasProgress"].includes(props)
|
|
136
|
-
})`
|
|
137
|
-
z-index: 2;
|
|
138
|
-
position: absolute;
|
|
139
|
-
top: 0;
|
|
140
|
-
right: 0;
|
|
141
|
-
height: 100%;
|
|
142
|
-
|
|
143
|
-
${rwd.MLarge`
|
|
144
|
-
position: relative;
|
|
145
|
-
right: auto;
|
|
146
|
-
flex-grow: ${({ isFixedWidth }) => !isFixedWidth && 1};
|
|
147
|
-
width: ${({ isFixedWidth }) => isFixedWidth && "200px"};
|
|
148
|
-
text-align: right;
|
|
149
|
-
|
|
150
|
-
${(props) => props.hasProgress && `
|
|
151
|
-
width:33.3%;
|
|
152
|
-
`}
|
|
153
|
-
`}
|
|
154
|
-
`;
|
|
155
|
-
const Logo = styled.div.withConfig({
|
|
156
|
-
shouldForwardProp: (props) => !["isHighlight"].includes(props)
|
|
157
|
-
})`
|
|
158
|
-
display: inline-block;
|
|
159
|
-
vertical-align: middle;
|
|
160
|
-
color: ${colors.black};
|
|
161
|
-
transition: color 0.4s;
|
|
162
|
-
|
|
163
|
-
${(props) => props.isHighlight && `
|
|
164
|
-
color: ${colors.blue};
|
|
165
|
-
`}
|
|
166
|
-
|
|
167
|
-
a {
|
|
168
|
-
display: block;
|
|
169
|
-
transition: opacity 0.2s;
|
|
170
|
-
|
|
171
|
-
&:hover {
|
|
172
|
-
opacity: 0.5;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
img {
|
|
177
|
-
display: block;
|
|
178
|
-
height: 16px;
|
|
179
|
-
width: auto;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
svg {
|
|
183
|
-
display: block;
|
|
184
|
-
height: 16px;
|
|
185
|
-
width: auto;
|
|
186
|
-
fill: currentColor;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
${rwd.MLarge`
|
|
190
|
-
margin-left: 0;
|
|
191
|
-
margin-right: 42px;
|
|
192
|
-
`}
|
|
193
|
-
`;
|
|
194
|
-
const HeaderMainNav = styled.div`
|
|
195
|
-
display: none;
|
|
196
|
-
|
|
197
|
-
${rwd.MLarge`
|
|
198
|
-
display: inline-block;
|
|
199
|
-
`}
|
|
200
|
-
|
|
201
|
-
button {
|
|
202
|
-
text-transform: uppercase;
|
|
203
|
-
}
|
|
204
|
-
`;
|
|
205
|
-
const HeaderQuickNav = styled.div.withConfig({
|
|
206
|
-
shouldForwardProp: (props) => !["isUserLogged"].includes(props)
|
|
207
|
-
})`
|
|
208
|
-
display: none;
|
|
209
|
-
|
|
210
|
-
${rwd.MLarge`
|
|
211
|
-
display: inline-block;
|
|
212
|
-
|
|
213
|
-
& > * {
|
|
214
|
-
margin-left: 32px;
|
|
215
|
-
|
|
216
|
-
&:first-child {
|
|
217
|
-
margin-left: 0;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
${(props) => !props.isUserLogged && `
|
|
222
|
-
display: flex;
|
|
223
|
-
align-items: center;
|
|
224
|
-
justify-content: flex-end;
|
|
225
|
-
`}
|
|
226
|
-
`}
|
|
227
|
-
|
|
228
|
-
button {
|
|
229
|
-
text-transform: uppercase;
|
|
230
|
-
|
|
231
|
-
${rwd.MLarge`
|
|
232
|
-
vertical-align: middle;
|
|
233
|
-
`}
|
|
234
|
-
}
|
|
235
|
-
`;
|
|
236
|
-
const MobileMenuToggler = styled.button.withConfig({
|
|
237
|
-
shouldForwardProp: (props) => !["withSidebar", "isActive"].includes(props)
|
|
238
|
-
})`
|
|
239
|
-
display: block;
|
|
240
|
-
width: 32px;
|
|
241
|
-
height: 32px;
|
|
242
|
-
position: absolute;
|
|
243
|
-
top: 16px;
|
|
244
|
-
right: 16px;
|
|
245
|
-
outline: none;
|
|
246
|
-
cursor: pointer;
|
|
247
|
-
border: none;
|
|
248
|
-
background-color: inherit;
|
|
249
|
-
|
|
250
|
-
${(props) => props.withSidebar && `
|
|
251
|
-
right:-15px;
|
|
252
|
-
`}
|
|
253
|
-
|
|
254
|
-
${rwd.MLarge`
|
|
255
|
-
display: none;
|
|
256
|
-
`}
|
|
257
|
-
|
|
258
|
-
span {
|
|
259
|
-
display: block;
|
|
260
|
-
width: 16px;
|
|
261
|
-
height: 2px;
|
|
262
|
-
position: absolute;
|
|
263
|
-
top: 50%;
|
|
264
|
-
left: 50%;
|
|
265
|
-
margin-top: -1px;
|
|
266
|
-
margin-left: -8px;
|
|
267
|
-
background-color: ${colors.black};
|
|
268
|
-
transition:
|
|
269
|
-
background-color 0.4s,
|
|
270
|
-
transform 0.4s;
|
|
271
|
-
|
|
272
|
-
&:nth-child(1) {
|
|
273
|
-
transform: translateY(-6px);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
&:nth-child(3) {
|
|
277
|
-
transform: translateY(6px);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
${(props) => props.isActive && `
|
|
282
|
-
span {
|
|
283
|
-
background-color: ${colors.blue};
|
|
284
|
-
|
|
285
|
-
&:nth-child(1) {
|
|
286
|
-
transform: translateY(0) rotate(135deg);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
&:nth-child(2) {
|
|
290
|
-
transform: scaleX(0);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
&:nth-child(3) {
|
|
294
|
-
transform: translateY(0) rotate(-135deg);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
`}
|
|
298
|
-
`;
|
|
299
|
-
const MobileMenu = styled.nav.withConfig({
|
|
300
|
-
shouldForwardProp: (props) => !["isActive", "withSidebar"].includes(props)
|
|
301
|
-
})`
|
|
302
|
-
z-index: 100;
|
|
303
|
-
position: absolute;
|
|
304
|
-
top: 65px;
|
|
305
|
-
left: 0;
|
|
306
|
-
display: flex;
|
|
307
|
-
flex-direction: column;
|
|
308
|
-
width: 100%;
|
|
309
|
-
min-height: calc(100vh - 65px);
|
|
310
|
-
background-color: ${colors.white};
|
|
311
|
-
padding: 0;
|
|
312
|
-
text-align: center;
|
|
313
|
-
opacity: 0;
|
|
314
|
-
visibility: hidden;
|
|
315
|
-
transition:
|
|
316
|
-
opacity 0.4s,
|
|
317
|
-
visibility 0.4s;
|
|
318
|
-
|
|
319
|
-
height: 100%;
|
|
320
|
-
overflow: auto;
|
|
321
|
-
|
|
322
|
-
${(props) => props.isActive && `
|
|
323
|
-
opacity: 1;
|
|
324
|
-
visibility: visible;
|
|
325
|
-
`}
|
|
326
|
-
|
|
327
|
-
${(props) => props.withSidebar && `
|
|
328
|
-
width:100vw;
|
|
329
|
-
left:-64px;
|
|
330
|
-
`}
|
|
331
|
-
|
|
332
|
-
// &:before {
|
|
333
|
-
// content: '';
|
|
334
|
-
// display: block;
|
|
335
|
-
// width: 100%;
|
|
336
|
-
// height: 1px;
|
|
337
|
-
// background-color: ${colors.lightGrey};
|
|
338
|
-
// position: absolute;
|
|
339
|
-
// top: 0;
|
|
340
|
-
// left: 0;
|
|
341
|
-
// }
|
|
342
|
-
|
|
343
|
-
${rwd.MLarge`
|
|
344
|
-
display: none;
|
|
345
|
-
`}
|
|
346
|
-
|
|
347
|
-
button {
|
|
348
|
-
text-transform: uppercase;
|
|
349
|
-
}
|
|
350
|
-
`;
|
|
351
|
-
const MobileMenuItem = styled.li.withConfig({
|
|
352
|
-
shouldForwardProp: (props) => !["red"].includes(props)
|
|
353
|
-
})`
|
|
354
|
-
align-items: center;
|
|
355
|
-
display: flex !important;
|
|
356
|
-
justify-content: center;
|
|
357
|
-
|
|
358
|
-
${(props) => props.red && `
|
|
359
|
-
background: #D2200D;
|
|
360
|
-
color:white;
|
|
361
|
-
border-bottom: 1px solid #979797;
|
|
362
|
-
`}
|
|
363
|
-
`;
|
|
364
|
-
const MobileMenuWrapper = styled.div`
|
|
365
|
-
cursor: pointer;
|
|
366
|
-
`;
|
|
367
|
-
const MobileMenuLink = styled(stdin_default)`
|
|
368
|
-
width: 100%;
|
|
369
|
-
`;
|
|
370
|
-
const MobileMenuPart = styled.div.withConfig({
|
|
371
|
-
shouldForwardProp: (props) => !["withPadding", "isLast", "grow", "flexColumn", "noPaddingTop", "borderTop"].includes(props)
|
|
372
|
-
})`
|
|
373
|
-
${(props) => props.withPadding && `
|
|
374
|
-
padding: 30px 0;
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
@media screen and (max-width: 320px) {
|
|
378
|
-
padding: 15px 0;
|
|
379
|
-
}
|
|
380
|
-
`}
|
|
381
|
-
${(props) => props.isLast && `
|
|
382
|
-
// padding-bottom: env(safe-area-inset-bottom);
|
|
383
|
-
padding-bottom:100px;
|
|
384
|
-
`}
|
|
385
|
-
|
|
386
|
-
${(props) => props.grow && `
|
|
387
|
-
flex-grow: ${props.grow};
|
|
388
|
-
`}
|
|
389
|
-
|
|
390
|
-
${(props) => props.flexColumn && `
|
|
391
|
-
display: flex;
|
|
392
|
-
flex-direction: column;
|
|
393
|
-
justify-content: center;
|
|
394
|
-
align-items: center;
|
|
395
|
-
|
|
396
|
-
button {
|
|
397
|
-
margin: 10px 0;
|
|
398
|
-
}
|
|
399
|
-
`}
|
|
400
|
-
|
|
401
|
-
${(props) => props.noPaddingTop && `
|
|
402
|
-
padding-top: 0;
|
|
403
|
-
`}
|
|
404
|
-
|
|
405
|
-
${(props) => props.borderTop && `
|
|
406
|
-
border-top: 1px solid ${colors.lightGrey};
|
|
407
|
-
`}
|
|
408
|
-
`;
|
|
409
|
-
const UserAccount = styled.div`
|
|
410
|
-
z-index: 1;
|
|
411
|
-
position: relative;
|
|
412
|
-
display: inline-block;
|
|
413
|
-
vertical-align: middle;
|
|
414
|
-
|
|
415
|
-
${rwd.MLarge`
|
|
416
|
-
margin: -4px 0;
|
|
417
|
-
margin-left: 32px;
|
|
418
|
-
`}
|
|
419
|
-
`;
|
|
420
|
-
const UserButton = styled.button`
|
|
421
|
-
display: inline-block;
|
|
422
|
-
vertical-align: middle;
|
|
423
|
-
width: 48px;
|
|
424
|
-
height: 48px;
|
|
425
|
-
border-radius: 24px;
|
|
426
|
-
overflow: hidden;
|
|
427
|
-
background-color: ${colors.grey2};
|
|
428
|
-
opacity: 1;
|
|
429
|
-
transition: opacity 0.2s;
|
|
430
|
-
outline: none;
|
|
431
|
-
cursor: pointer;
|
|
432
|
-
box-shadow: none;
|
|
433
|
-
border: none;
|
|
434
|
-
background-color: buttonface;
|
|
435
|
-
background-color: transparent;
|
|
436
|
-
padding: 0;
|
|
437
|
-
|
|
438
|
-
/* &:hover {
|
|
439
|
-
opacity: 0.5;
|
|
440
|
-
} */
|
|
441
|
-
`;
|
|
442
|
-
const UserAvatar = styled.img`
|
|
443
|
-
display: block;
|
|
444
|
-
width: 100%;
|
|
445
|
-
height: 100%;
|
|
446
|
-
object-fit: cover;
|
|
447
|
-
object-position: center center;
|
|
448
|
-
`;
|
|
449
|
-
styled.div`
|
|
450
|
-
z-index: 0;
|
|
451
|
-
position: relative;
|
|
452
|
-
display: block;
|
|
453
|
-
padding-top: 36px;
|
|
454
|
-
padding-bottom: 20px;
|
|
455
|
-
font-weight: 600;
|
|
456
|
-
font-size: 16px;
|
|
457
|
-
line-height: 24px;
|
|
458
|
-
background-color: ${colors.orangishRed};
|
|
459
|
-
color: ${colors.white};
|
|
460
|
-
margin-top: -24px;
|
|
461
|
-
`;
|
|
462
|
-
const LoginButton = styled.span`
|
|
463
|
-
cursor: pointer;
|
|
464
|
-
margin-right: 24px;
|
|
465
|
-
display: none;
|
|
466
|
-
|
|
467
|
-
&:hover {
|
|
468
|
-
opacity: 0.6;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
@media screen and (min-width: 992px) {
|
|
472
|
-
display: block;
|
|
473
|
-
}
|
|
474
|
-
`;
|
|
475
|
-
const SignupButton = styled(stdin_default$1).withConfig({
|
|
476
|
-
shouldForwardProp: (props) => !["isMobile"].includes(props)
|
|
477
|
-
})`
|
|
478
|
-
padding-right: 32px !important;
|
|
479
|
-
color: ${WHITE_HEX} !important;
|
|
480
|
-
|
|
481
|
-
&:hover {
|
|
482
|
-
background: ${BLUE_BASE_RELEASED_HEX};
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
${(props) => props.isMobile && `
|
|
486
|
-
margin: 0;
|
|
487
|
-
width: 163.94px;
|
|
488
|
-
`}
|
|
489
|
-
`;
|
|
490
|
-
const CTAContainer = styled.div`
|
|
491
|
-
align-items: center;
|
|
492
|
-
border-top: 1px solid ${GRAY_BASE_HEX};
|
|
493
|
-
display: flex;
|
|
494
|
-
flex-direction: column;
|
|
495
|
-
justify-content: center;
|
|
496
|
-
padding: 56px 0;
|
|
497
|
-
width: 100%;
|
|
498
|
-
|
|
499
|
-
span {
|
|
500
|
-
color: 1px solid ${GRAY_BASE_HEX};
|
|
501
|
-
font-size: 10px;
|
|
502
|
-
letter-spacing: 2.1px;
|
|
503
|
-
margin-bottom: 14px;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
div {
|
|
507
|
-
display: flex;
|
|
508
|
-
flex-wrap: wrap;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
${rwdMax.Medium`
|
|
512
|
-
div{
|
|
513
|
-
width: 192px; /* Fit exactly 3 icons */
|
|
514
|
-
}
|
|
515
|
-
`}
|
|
516
|
-
|
|
517
|
-
${SocialLink} {
|
|
518
|
-
display: flex;
|
|
519
|
-
justify-content: center;
|
|
520
|
-
|
|
521
|
-
background: transparent;
|
|
522
|
-
margin: 12px;
|
|
523
|
-
|
|
524
|
-
svg {
|
|
525
|
-
fill: rgb(32, 32, 32);
|
|
526
|
-
height: 18px !important;
|
|
527
|
-
width: 18px !important;
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
`;
|
|
531
|
-
const SocialLinksContainer = styled.div.withConfig({
|
|
532
|
-
shouldForwardProp: (props) => !["isHeader"].includes(props)
|
|
533
|
-
})`
|
|
534
|
-
display: flex !important;
|
|
535
|
-
flex-wrap: nowrap !important;
|
|
536
|
-
justify-content: ${(props) => props.isHeader ? "center" : null};
|
|
537
|
-
|
|
538
|
-
// fixes SVG icons stretching
|
|
539
|
-
& > * {
|
|
540
|
-
flex: none !important;
|
|
541
|
-
}
|
|
542
|
-
`;
|
|
543
|
-
export {
|
|
544
|
-
CTAContainer,
|
|
545
|
-
HamburgerIcon,
|
|
546
|
-
HeaderInner,
|
|
547
|
-
HeaderMainNav,
|
|
548
|
-
HeaderQuickNav,
|
|
549
|
-
LoginButton,
|
|
550
|
-
Logo,
|
|
551
|
-
MainNavWrap,
|
|
552
|
-
MobileMenu,
|
|
553
|
-
MobileMenuItem,
|
|
554
|
-
MobileMenuLink,
|
|
555
|
-
MobileMenuPart,
|
|
556
|
-
MobileMenuToggler,
|
|
557
|
-
MobileMenuWrapper,
|
|
558
|
-
ProgressWrap,
|
|
559
|
-
QuickNavWrap,
|
|
560
|
-
SidebarToggle,
|
|
561
|
-
SignupButton,
|
|
562
|
-
SocialLinksContainer,
|
|
563
|
-
StyledHeader,
|
|
564
|
-
StyledSubMenu,
|
|
565
|
-
UserAccount,
|
|
566
|
-
UserAvatar,
|
|
567
|
-
UserButton
|
|
568
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React__default from "react";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
|
-
import { ThemeProvider } from "styled-components";
|
|
5
|
-
import { GlobalStyle } from "../../styles/global.js";
|
|
6
|
-
import theme from "../../styles/theme.js";
|
|
7
|
-
import stdin_default from "../Header/Header.js";
|
|
8
|
-
import stdin_default$1 from "../Footer/Footer.js";
|
|
9
|
-
import { PageWrapper } from "../Grid/Grid.styles.js";
|
|
10
|
-
const ProgressStatusContext = React__default.createContext();
|
|
11
|
-
class Layout extends React__default.PureComponent {
|
|
12
|
-
handleProgressStatusChange = (page, status) => {
|
|
13
|
-
const { updateProgressStatusAC } = this.props;
|
|
14
|
-
updateProgressStatusAC(page, status);
|
|
15
|
-
};
|
|
16
|
-
render() {
|
|
17
|
-
const {
|
|
18
|
-
title = "",
|
|
19
|
-
progress = null,
|
|
20
|
-
loginHandler = () => {
|
|
21
|
-
},
|
|
22
|
-
signupHandler = () => {
|
|
23
|
-
},
|
|
24
|
-
signupFlow = false,
|
|
25
|
-
children,
|
|
26
|
-
footerColor = "red",
|
|
27
|
-
noFooter,
|
|
28
|
-
noHeader,
|
|
29
|
-
noLogout,
|
|
30
|
-
useRelativePathForMenu = false,
|
|
31
|
-
logoutUser = () => {
|
|
32
|
-
}
|
|
33
|
-
} = this.props;
|
|
34
|
-
return /* @__PURE__ */ jsx(ThemeProvider, { theme: { ...theme }, children: /* @__PURE__ */ jsxs(PageWrapper, { children: [
|
|
35
|
-
/* @__PURE__ */ jsx(GlobalStyle, {}),
|
|
36
|
-
!noHeader && /* @__PURE__ */ jsx(
|
|
37
|
-
stdin_default,
|
|
38
|
-
{
|
|
39
|
-
progress,
|
|
40
|
-
signupFlow,
|
|
41
|
-
loginHandler,
|
|
42
|
-
signupHandler,
|
|
43
|
-
siteTitle: title,
|
|
44
|
-
noLogout,
|
|
45
|
-
useRelativePathForMenu,
|
|
46
|
-
logoutUser
|
|
47
|
-
}
|
|
48
|
-
),
|
|
49
|
-
/* @__PURE__ */ jsx(
|
|
50
|
-
ProgressStatusContext.Provider,
|
|
51
|
-
{
|
|
52
|
-
value: {
|
|
53
|
-
onProgressStatusChange: this.handleProgressStatusChange
|
|
54
|
-
},
|
|
55
|
-
children
|
|
56
|
-
}
|
|
57
|
-
),
|
|
58
|
-
!noFooter && /* @__PURE__ */ jsx(stdin_default$1, { color: footerColor })
|
|
59
|
-
] }) });
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
Layout.propTypes = {
|
|
63
|
-
title: PropTypes.string,
|
|
64
|
-
signupFlow: PropTypes.bool,
|
|
65
|
-
loginHandler: PropTypes.func,
|
|
66
|
-
signupHandler: PropTypes.func,
|
|
67
|
-
progress: PropTypes.bool,
|
|
68
|
-
footerColor: PropTypes.string,
|
|
69
|
-
children: PropTypes.node.isRequired,
|
|
70
|
-
useRelativePathForMenu: PropTypes.bool,
|
|
71
|
-
logoutUser: PropTypes.func
|
|
72
|
-
};
|
|
73
|
-
ProgressStatusContext.Consumer;
|
|
74
|
-
export {
|
|
75
|
-
Layout
|
|
76
|
-
};
|