@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,277 +0,0 @@
|
|
|
1
|
-
import rwd from "../../styles/rwd.js";
|
|
2
|
-
import grid from "../../styles/grid.js";
|
|
3
|
-
import { colors } from "../../styles/colors.js";
|
|
4
|
-
import spacing from "../../styles/spacing.js";
|
|
5
|
-
import styled, { css } from "styled-components";
|
|
6
|
-
const StyledFooter = styled.footer.withConfig({
|
|
7
|
-
shouldForwardProp: (props) => !["color", "hasSidebar", "isSidebarExpanded"].includes(props)
|
|
8
|
-
})`
|
|
9
|
-
z-index: 15;
|
|
10
|
-
position: relative;
|
|
11
|
-
|
|
12
|
-
${(props) => props.color === "primary" && css`
|
|
13
|
-
color: ${colors.white};
|
|
14
|
-
background-color: ${colors.blue};
|
|
15
|
-
|
|
16
|
-
${rwd.Medium`
|
|
17
|
-
box-shadow: inset 0 1px 0 0 ${colors.blueDark};
|
|
18
|
-
`}
|
|
19
|
-
`}
|
|
20
|
-
|
|
21
|
-
${(props) => props.color === "red" && css`
|
|
22
|
-
color: ${colors.white};
|
|
23
|
-
background-color: ${colors.rustyRed};
|
|
24
|
-
padding: 0 25px;
|
|
25
|
-
|
|
26
|
-
${rwd.Medium`
|
|
27
|
-
box-shadow: inset 0 1px 0 0 ${colors.rustyRed};
|
|
28
|
-
`}
|
|
29
|
-
|
|
30
|
-
${rwd.XLarge`
|
|
31
|
-
padding: 0 50px;
|
|
32
|
-
`}
|
|
33
|
-
`}
|
|
34
|
-
|
|
35
|
-
${rwd.Medium`
|
|
36
|
-
width: 100%;
|
|
37
|
-
min-height: ${spacing.footerHeight}px;
|
|
38
|
-
`}
|
|
39
|
-
|
|
40
|
-
@media screen and (max-width: 991px) {
|
|
41
|
-
height: auto;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
${(props) => props.hasSidebar && `
|
|
45
|
-
padding: 0px !important;
|
|
46
|
-
transition: 0.3s padding;
|
|
47
|
-
`}
|
|
48
|
-
|
|
49
|
-
${(props) => props.isSidebarExpanded && `
|
|
50
|
-
padding-left:200px !important;
|
|
51
|
-
`}
|
|
52
|
-
`;
|
|
53
|
-
const FooterInner = styled.div.withConfig({
|
|
54
|
-
shouldForwardProp: (props) => !["hasSidebar"].includes(props)
|
|
55
|
-
})`
|
|
56
|
-
padding: 24px 0;
|
|
57
|
-
justify-content: space-between;
|
|
58
|
-
|
|
59
|
-
${(props) => props.hasSidebar && `
|
|
60
|
-
padding: 24px ${grid(1)};
|
|
61
|
-
`}
|
|
62
|
-
|
|
63
|
-
${rwd.Medium`
|
|
64
|
-
padding: 14px 0;
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
min-height: ${spacing.footerHeight}px;
|
|
68
|
-
|
|
69
|
-
${(props) => props.hasSidebar && `
|
|
70
|
-
padding: 20px ${grid(1)};
|
|
71
|
-
`}
|
|
72
|
-
`}
|
|
73
|
-
|
|
74
|
-
@media screen and (max-width: 991px) {
|
|
75
|
-
flex-direction: column;
|
|
76
|
-
padding: 56px 32px;
|
|
77
|
-
}
|
|
78
|
-
`;
|
|
79
|
-
const LogoWrap = styled.div`
|
|
80
|
-
margin-bottom: 25px;
|
|
81
|
-
text-align: center;
|
|
82
|
-
|
|
83
|
-
${rwd.MLarge`
|
|
84
|
-
margin-bottom:0px;
|
|
85
|
-
`}
|
|
86
|
-
`;
|
|
87
|
-
styled.div`
|
|
88
|
-
text-align: center;
|
|
89
|
-
|
|
90
|
-
${rwd.Medium`
|
|
91
|
-
flex: 2;
|
|
92
|
-
`}
|
|
93
|
-
`;
|
|
94
|
-
const PartnerWrap = styled.div`
|
|
95
|
-
text-align: center;
|
|
96
|
-
|
|
97
|
-
${rwd.MLarge`
|
|
98
|
-
text-align: left;
|
|
99
|
-
`}
|
|
100
|
-
|
|
101
|
-
@media screen and (max-width: 991px) {
|
|
102
|
-
text-align: center;
|
|
103
|
-
margin-bottom: 25px;
|
|
104
|
-
}
|
|
105
|
-
`;
|
|
106
|
-
const PoweredWrap = styled.div`
|
|
107
|
-
text-align: center;
|
|
108
|
-
|
|
109
|
-
text-transform: uppercase;
|
|
110
|
-
letter-spacing: 2.1px;
|
|
111
|
-
line-height: 1.8;
|
|
112
|
-
font-weight: 400;
|
|
113
|
-
font-size: 10px;
|
|
114
|
-
|
|
115
|
-
${rwd.Medium`
|
|
116
|
-
text-align: left;
|
|
117
|
-
//margin-top: 10px;
|
|
118
|
-
`}
|
|
119
|
-
|
|
120
|
-
@media screen and (max-width: 991px) {
|
|
121
|
-
text-align: center;
|
|
122
|
-
|
|
123
|
-
div {
|
|
124
|
-
margin-top: 10px;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
`;
|
|
128
|
-
styled.nav`
|
|
129
|
-
display: block;
|
|
130
|
-
font-size: 0;
|
|
131
|
-
padding-top: 6px;
|
|
132
|
-
padding-bottom: 30px;
|
|
133
|
-
|
|
134
|
-
${rwd.Medium`
|
|
135
|
-
padding-top: 0;
|
|
136
|
-
padding-bottom: 0;
|
|
137
|
-
`}
|
|
138
|
-
|
|
139
|
-
ul {
|
|
140
|
-
display: block;
|
|
141
|
-
margin: 0;
|
|
142
|
-
padding: 0;
|
|
143
|
-
margin-left: -32px;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
li {
|
|
147
|
-
display: inline-block;
|
|
148
|
-
vertical-align: middle;
|
|
149
|
-
margin-left: 32px;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
a {
|
|
153
|
-
position: relative;
|
|
154
|
-
display: block;
|
|
155
|
-
font-size: 12px;
|
|
156
|
-
line-height: 16px;
|
|
157
|
-
letter-spacing: 2px;
|
|
158
|
-
text-transform: uppercase;
|
|
159
|
-
padding: 2px 0;
|
|
160
|
-
|
|
161
|
-
&:before {
|
|
162
|
-
content: '';
|
|
163
|
-
display: block;
|
|
164
|
-
height: 2px;
|
|
165
|
-
width: 100%;
|
|
166
|
-
position: absolute;
|
|
167
|
-
top: 100%;
|
|
168
|
-
left: 0;
|
|
169
|
-
background-color: ${colors.white};
|
|
170
|
-
opacity: 0;
|
|
171
|
-
transform: translateY(8px);
|
|
172
|
-
transition:
|
|
173
|
-
opacity 0.2s,
|
|
174
|
-
transform 0.2s;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
&:hover {
|
|
178
|
-
&:before {
|
|
179
|
-
opacity: 1;
|
|
180
|
-
transform: translateY(0);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
${rwd.Medium`
|
|
185
|
-
font-size: 9px;
|
|
186
|
-
line-height: 16px;
|
|
187
|
-
`}
|
|
188
|
-
}
|
|
189
|
-
`;
|
|
190
|
-
const Partner = styled.span`
|
|
191
|
-
display: block;
|
|
192
|
-
text-transform: uppercase;
|
|
193
|
-
|
|
194
|
-
font-size: 10px;
|
|
195
|
-
font-weight: 400;
|
|
196
|
-
line-height: 1.8;
|
|
197
|
-
letter-spacing: 1.8px;
|
|
198
|
-
|
|
199
|
-
img {
|
|
200
|
-
margin-bottom: 4px;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
@media screen and (max-width: 560px) {
|
|
204
|
-
line-height: 16px;
|
|
205
|
-
}
|
|
206
|
-
`;
|
|
207
|
-
const PartnerLine = styled.span`
|
|
208
|
-
display: block;
|
|
209
|
-
|
|
210
|
-
${rwd.MLarge`
|
|
211
|
-
white-space: nowrap;
|
|
212
|
-
`}
|
|
213
|
-
`;
|
|
214
|
-
const PartnerLineBreak = styled.span`
|
|
215
|
-
display: block;
|
|
216
|
-
|
|
217
|
-
${rwd.XLarge`
|
|
218
|
-
display: none;
|
|
219
|
-
`}
|
|
220
|
-
`;
|
|
221
|
-
const Copyright = styled.span`
|
|
222
|
-
img {
|
|
223
|
-
margin-bottom: 4px;
|
|
224
|
-
}
|
|
225
|
-
`;
|
|
226
|
-
styled.div`
|
|
227
|
-
display: flex;
|
|
228
|
-
flex-direction: column;
|
|
229
|
-
align-items: self-start;
|
|
230
|
-
|
|
231
|
-
span {
|
|
232
|
-
vertical-align: middle;
|
|
233
|
-
text-transform: uppercase;
|
|
234
|
-
-webkit-letter-spacing: 2.1px;
|
|
235
|
-
-moz-letter-spacing: 2.1px;
|
|
236
|
-
-ms-letter-spacing: 2.1px;
|
|
237
|
-
letter-spacing: 2.1px;
|
|
238
|
-
line-height: 10x;
|
|
239
|
-
white-space: nowrap;
|
|
240
|
-
color: inherit;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
a {
|
|
244
|
-
display: inline-block;
|
|
245
|
-
vertical-align: middle;
|
|
246
|
-
margin-left: 4px;
|
|
247
|
-
transition: opacity 0.2s;
|
|
248
|
-
|
|
249
|
-
&:hover {
|
|
250
|
-
opacity: 0.5;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
img {
|
|
255
|
-
/* display: block;
|
|
256
|
-
max-height: 12px;
|
|
257
|
-
width: auto; */
|
|
258
|
-
/* margin-left: 6px; */
|
|
259
|
-
position: relative;
|
|
260
|
-
//width: 42px;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
@media screen and (max-width: 991px) {
|
|
264
|
-
align-items: center;
|
|
265
|
-
}
|
|
266
|
-
`;
|
|
267
|
-
export {
|
|
268
|
-
Copyright,
|
|
269
|
-
FooterInner,
|
|
270
|
-
LogoWrap,
|
|
271
|
-
Partner,
|
|
272
|
-
PartnerLine,
|
|
273
|
-
PartnerLineBreak,
|
|
274
|
-
PartnerWrap,
|
|
275
|
-
PoweredWrap,
|
|
276
|
-
StyledFooter
|
|
277
|
-
};
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
|
-
import stdin_default$1 from "./FooterMenu.js";
|
|
5
|
-
import stdin_default$2 from "../Newsletter/Newsletter.js";
|
|
6
|
-
import stdin_default$3 from "./Footer.js";
|
|
7
|
-
import { getPlatformURL } from "../../runtime-config.js";
|
|
8
|
-
function getFooterGroups() {
|
|
9
|
-
const platformURL = getPlatformURL();
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
name: "New to STOKR",
|
|
13
|
-
collapse: true,
|
|
14
|
-
items: [
|
|
15
|
-
{
|
|
16
|
-
name: "Solutions",
|
|
17
|
-
url: `${platformURL}/solutions`
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: "101s",
|
|
21
|
-
url: `${platformURL}/101`
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
name: "Support",
|
|
25
|
-
url: "https://support.stokr.io/",
|
|
26
|
-
external: true
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: "STOKE POST",
|
|
30
|
-
url: `${platformURL}/stoke-post`
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: "About us",
|
|
36
|
-
collapse: true,
|
|
37
|
-
items: [
|
|
38
|
-
{
|
|
39
|
-
name: "Team",
|
|
40
|
-
url: `${platformURL}/team`
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: "Careers",
|
|
44
|
-
url: `${platformURL}/careers`,
|
|
45
|
-
showNumber: true
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: "Memberships",
|
|
49
|
-
url: `${platformURL}/memberships`
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: "Press Releases",
|
|
53
|
-
url: `${platformURL}/press-releases`
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: "General",
|
|
59
|
-
collapse: true,
|
|
60
|
-
items: [
|
|
61
|
-
{
|
|
62
|
-
name: "Legal",
|
|
63
|
-
url: `${platformURL}/legal`
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
name: "Privacy Terms",
|
|
67
|
-
url: `${platformURL}/privacy`
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: "Cookie policy",
|
|
71
|
-
url: `${platformURL}/cookie-policy`
|
|
72
|
-
},
|
|
73
|
-
{ name: "Complaints", url: `${platformURL}/complaints` },
|
|
74
|
-
{ name: "Conflicts of Interest", url: `${platformURL}/conflicts-of-interest` }
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: "Let’s connect",
|
|
79
|
-
social: true,
|
|
80
|
-
items: [
|
|
81
|
-
{
|
|
82
|
-
name: "linkedin",
|
|
83
|
-
url: "https://www.linkedin.com/company/stokr/"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: "twitter",
|
|
87
|
-
url: "https://twitter.com/stokr_io"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
name: "telegram",
|
|
91
|
-
url: "https://t.me/joinchat/G2o5yBCe7FiYvv1YiZhNZg"
|
|
92
|
-
},
|
|
93
|
-
// {
|
|
94
|
-
// name: 'medium',
|
|
95
|
-
// url: 'https://medium.com/sicos-publication',
|
|
96
|
-
// },
|
|
97
|
-
{
|
|
98
|
-
name: "youtube",
|
|
99
|
-
url: "https://www.youtube.com/channel/UCUuQtRhbcFcU4xeTrDl3iQQ"
|
|
100
|
-
}
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
];
|
|
104
|
-
}
|
|
105
|
-
function FooterLayout({
|
|
106
|
-
withNewsLetter = true,
|
|
107
|
-
withFooterMenu = true,
|
|
108
|
-
color = "red",
|
|
109
|
-
jobOpeningsNumber = 0,
|
|
110
|
-
lemonWayLogo,
|
|
111
|
-
dropdownCollapsed,
|
|
112
|
-
footnotes,
|
|
113
|
-
footnotesTitle,
|
|
114
|
-
...props
|
|
115
|
-
}) {
|
|
116
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
117
|
-
withFooterMenu && /* @__PURE__ */ jsx(
|
|
118
|
-
stdin_default$1,
|
|
119
|
-
{
|
|
120
|
-
groups: getFooterGroups(),
|
|
121
|
-
jobOpeningsNumber,
|
|
122
|
-
dropdownCollapsed,
|
|
123
|
-
footnotes,
|
|
124
|
-
footnotesTitle
|
|
125
|
-
}
|
|
126
|
-
),
|
|
127
|
-
withNewsLetter && /* @__PURE__ */ jsx(stdin_default$2, {}),
|
|
128
|
-
/* @__PURE__ */ jsx(stdin_default$3, { color, lemonwayLogo: lemonWayLogo, ...props })
|
|
129
|
-
] });
|
|
130
|
-
}
|
|
131
|
-
FooterLayout.propTypes = {
|
|
132
|
-
withNewsLetter: PropTypes.bool,
|
|
133
|
-
withFooterMenu: PropTypes.bool,
|
|
134
|
-
color: PropTypes.oneOf(["primary", "red"]),
|
|
135
|
-
jobOpeningsNumber: PropTypes.number,
|
|
136
|
-
lemonwayLogo: PropTypes.string,
|
|
137
|
-
dropdownCollapsed: PropTypes.bool,
|
|
138
|
-
footnotesTitle: PropTypes.string,
|
|
139
|
-
footnotes: PropTypes.arrayOf(
|
|
140
|
-
PropTypes.shape({
|
|
141
|
-
number: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
142
|
-
description: PropTypes.string
|
|
143
|
-
})
|
|
144
|
-
)
|
|
145
|
-
};
|
|
146
|
-
var stdin_default = FooterLayout;
|
|
147
|
-
export {
|
|
148
|
-
stdin_default as default,
|
|
149
|
-
getFooterGroups
|
|
150
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React__default, { useEffect, Fragment as Fragment$1 } from "react";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
|
-
import { Collapse } from "react-collapse";
|
|
5
|
-
import stdin_default$2 from "../SvgIcons/SocialInstagram.js";
|
|
6
|
-
import stdin_default$1 from "../SvgIcons/SocialReddit.js";
|
|
7
|
-
import { Container, Groups, Group, TitleContainer, Title, ArrowDown, Items, Item, SocialLink, IsoCertificate, Link, HiringTotalNumber, Footnotes, FootnotesText, FootnotesItem } from "./FooterMenu.styles.js";
|
|
8
|
-
import { useMobileView } from "../../utils/customHooks.js";
|
|
9
|
-
import { sizes } from "../../styles/rwd.js";
|
|
10
|
-
import FbLogo from "../../static/images/social/Facebook_Logo.png.js";
|
|
11
|
-
import LILogo from "../../static/images/social/LI-In-Bug.png.js";
|
|
12
|
-
import XLogo from "../../static/images/social/X-logo-black.png.js";
|
|
13
|
-
import YtLogo from "../../static/images/social/youtube_social_circle_red.png.js";
|
|
14
|
-
import TelegramLogo from "../../static/images/social/Telegram-Logo.png.js";
|
|
15
|
-
import IsoLogo from "../../static/images/iso27001-black.svg.js";
|
|
16
|
-
import { SocialLinksContainer } from "../Header/Header.styles.js";
|
|
17
|
-
const CollapseWrapper = ({ children, collapse = false, isOpened = false }) => collapse ? (
|
|
18
|
-
// inert while collapsed so the hidden links leave the tab order / a11y tree.
|
|
19
|
-
/* @__PURE__ */ jsx(Collapse, { isOpened, children: /* @__PURE__ */ jsx("div", { ...isOpened ? {} : { inert: true }, children }) })
|
|
20
|
-
) : /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
21
|
-
CollapseWrapper.propTypes = {
|
|
22
|
-
children: PropTypes.node.isRequired,
|
|
23
|
-
collapse: PropTypes.bool,
|
|
24
|
-
isOpened: PropTypes.bool
|
|
25
|
-
};
|
|
26
|
-
const socialSvg = {
|
|
27
|
-
linkedin: /* @__PURE__ */ jsx("img", { src: LILogo, alt: "Linkedin Logo", loading: "lazy", style: { padding: 1 } }),
|
|
28
|
-
instagram: /* @__PURE__ */ jsx(stdin_default$2, {}),
|
|
29
|
-
twitter: /* @__PURE__ */ jsx("img", { src: XLogo, alt: "X Logo", loading: "lazy", style: { padding: 4 } }),
|
|
30
|
-
facebook: /* @__PURE__ */ jsx("img", { src: FbLogo, alt: "Facebook Logo", loading: "lazy" }),
|
|
31
|
-
telegram: /* @__PURE__ */ jsx("img", { src: TelegramLogo, alt: "Telegram Logo", loading: "lazy" }),
|
|
32
|
-
//medium: <SocialMedium />,
|
|
33
|
-
youtube: /* @__PURE__ */ jsx("img", { src: YtLogo, alt: "Youtube Logo", loading: "lazy" }),
|
|
34
|
-
reddit: /* @__PURE__ */ jsx(stdin_default$1, {})
|
|
35
|
-
};
|
|
36
|
-
const FooterMenu = ({
|
|
37
|
-
groups,
|
|
38
|
-
jobOpeningsNumber = 0,
|
|
39
|
-
dropdownCollapsed,
|
|
40
|
-
footnotes,
|
|
41
|
-
footnotesTitle = "Disclosures"
|
|
42
|
-
}) => {
|
|
43
|
-
const isMobile = useMobileView(sizes.MLarge);
|
|
44
|
-
const hasFootnotes = Array.isArray(footnotes) && footnotes.length > 0;
|
|
45
|
-
const [activeGroups, setactiveGroups] = React__default.useState(() => {
|
|
46
|
-
return groups.map((group, _index) => {
|
|
47
|
-
if (isMobile) {
|
|
48
|
-
return group.name === "New to STOKR";
|
|
49
|
-
}
|
|
50
|
-
return !dropdownCollapsed;
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
const toggleGroup = (key) => {
|
|
54
|
-
const activeGroupsCopy = [...activeGroups];
|
|
55
|
-
activeGroupsCopy[key] = !activeGroupsCopy[key];
|
|
56
|
-
setactiveGroups(activeGroupsCopy);
|
|
57
|
-
};
|
|
58
|
-
useEffect(() => {
|
|
59
|
-
setactiveGroups(
|
|
60
|
-
groups.map((group, _index) => {
|
|
61
|
-
if (isMobile) {
|
|
62
|
-
return group.name === "New to STOKR";
|
|
63
|
-
}
|
|
64
|
-
return !dropdownCollapsed;
|
|
65
|
-
})
|
|
66
|
-
);
|
|
67
|
-
}, [isMobile, groups, dropdownCollapsed]);
|
|
68
|
-
return /* @__PURE__ */ jsxs(Container, { children: [
|
|
69
|
-
/* @__PURE__ */ jsx(Groups, { children: groups.map((group, groupKey) => /* @__PURE__ */ jsxs(Group, { onClick: () => toggleGroup(groupKey), children: [
|
|
70
|
-
/* @__PURE__ */ jsxs(TitleContainer, { children: [
|
|
71
|
-
/* @__PURE__ */ jsx(Title, { collapse: group.collapse, children: group.name }),
|
|
72
|
-
isMobile && !group.social && /* @__PURE__ */ jsx(ArrowDown, { isOpened: activeGroups[groupKey] })
|
|
73
|
-
] }),
|
|
74
|
-
/* @__PURE__ */ jsx(CollapseWrapper, { collapse: isMobile && group.collapse, isOpened: activeGroups[groupKey], children: /* @__PURE__ */ jsx(Items, { social: group.social, children: group.social ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
75
|
-
/* @__PURE__ */ jsx(SocialLinksContainer, { children: group.items.map((item) => /* @__PURE__ */ jsx(Item, { social: true, children: /* @__PURE__ */ jsx(SocialLink, { href: item.url, alt: item.name, target: "_blank", rel: "noopener noreferrer", children: socialSvg[item.name] }) }, item.name)) }),
|
|
76
|
-
/* @__PURE__ */ jsx(IsoCertificate, { src: IsoLogo, alt: "ISO/IEC 27001 certified", loading: "lazy" })
|
|
77
|
-
] }) : group.items.map((item) => /* @__PURE__ */ jsx(Item, { children: /* @__PURE__ */ jsxs(Link, { target: item.external ? "_blank" : "", to: item.url, rel: "noopener noreferrer", children: [
|
|
78
|
-
item.name,
|
|
79
|
-
item.showNumber && jobOpeningsNumber > 0 && /* @__PURE__ */ jsx(HiringTotalNumber, { style: { marginLeft: "4px" }, children: jobOpeningsNumber })
|
|
80
|
-
] }) }, item.name)) }) })
|
|
81
|
-
] }, group.name)) }),
|
|
82
|
-
hasFootnotes && /* @__PURE__ */ jsxs(Footnotes, { children: [
|
|
83
|
-
/* @__PURE__ */ jsx(FootnotesText, { children: footnotesTitle }),
|
|
84
|
-
footnotes.map((note, index) => /* @__PURE__ */ jsxs(FootnotesItem, { children: [
|
|
85
|
-
/* @__PURE__ */ jsx(FootnotesText, { isNumber: true, children: note.number ?? index + 1 }),
|
|
86
|
-
/* @__PURE__ */ jsx(FootnotesText, { children: note.description })
|
|
87
|
-
] }, `${note.number || index}-${note.description || "note"}`))
|
|
88
|
-
] })
|
|
89
|
-
] });
|
|
90
|
-
};
|
|
91
|
-
FooterMenu.propTypes = {
|
|
92
|
-
groups: PropTypes.arrayOf(Object).isRequired,
|
|
93
|
-
jobOpeningsNumber: PropTypes.number,
|
|
94
|
-
dropdownCollapsed: PropTypes.bool,
|
|
95
|
-
footnotesTitle: PropTypes.string,
|
|
96
|
-
footnotes: PropTypes.arrayOf(
|
|
97
|
-
PropTypes.shape({
|
|
98
|
-
number: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
99
|
-
description: PropTypes.string
|
|
100
|
-
})
|
|
101
|
-
)
|
|
102
|
-
};
|
|
103
|
-
var stdin_default = FooterMenu;
|
|
104
|
-
export {
|
|
105
|
-
stdin_default as default,
|
|
106
|
-
socialSvg
|
|
107
|
-
};
|