@stokr/components-library 4.2.3 → 4.2.5
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/AddressItem/AddressItem.d.ts +38 -0
- package/dist/components/AddressItem/AddressItem.js +51 -0
- package/dist/components/AddressItem/AddressItem.styles.d.ts +31 -0
- package/dist/components/AddressItem/AddressItem.styles.js +73 -0
- package/dist/components/Checkbox/Checkbox.styles.d.ts +1 -0
- package/dist/components/Collapsible/Collapsible.d.ts +10 -4
- package/dist/components/Collapsible/Collapsible.js +6 -14
- package/dist/components/Collapsible/Collapsible.styles.d.ts +3 -1
- package/dist/components/Collapsible/Collapsible.styles.js +23 -9
- package/dist/components/Country/CountrySelect.js +9 -14
- package/dist/components/Country/FlagFor.d.ts +9 -0
- package/dist/components/Country/FlagFor.js +25 -0
- package/dist/components/Country/flagLoaders.d.ts +5 -0
- package/dist/components/Country/flagLoaders.js +270 -0
- package/dist/components/Country/flagStore.d.ts +6 -0
- package/dist/components/Country/flagStore.js +29 -0
- package/dist/components/FAQ/FAQ.d.ts +29 -0
- package/dist/components/FAQ/FAQ.js +18 -18
- package/dist/components/FAQ/FAQ.styles.d.ts +38 -0
- package/dist/components/FAQ/FAQ.styles.js +58 -1
- package/dist/components/IdentityInfo/IdentityInfo.js +2 -1
- package/dist/components/IdentityInfo/IdentityInfo.styles.js +3 -1
- package/dist/components/InfoBox/InfoBox.js +44 -20
- package/dist/components/Input/Input.d.ts +3 -0
- package/dist/components/Input/Input.js +5 -2
- package/dist/components/Input/Input.styles.d.ts +4 -0
- package/dist/components/Input/Input.styles.js +57 -0
- package/dist/components/Input/Select.d.ts +57 -0
- package/dist/components/Input/Select.js +77 -98
- package/dist/components/Input/Select.styles.d.ts +89 -0
- package/dist/components/Input/Select.styles.js +104 -2
- package/dist/components/MaterialIcon/requiredIcons.d.ts +1 -1
- package/dist/components/MaterialIcon/requiredIcons.js +2 -0
- package/dist/components/PanelCard/PanelCard.d.ts +51 -0
- package/dist/components/PanelCard/PanelCard.js +35 -0
- package/dist/components/PanelCard/PanelCard.styles.d.ts +29 -0
- package/dist/components/PanelCard/PanelCard.styles.js +87 -0
- package/dist/components/StepSidebar/MobileStepProgress.d.ts +12 -0
- package/dist/components/StepSidebar/MobileStepProgress.js +14 -0
- package/dist/components/StepSidebar/MobileStepProgress.styles.d.ts +15 -0
- package/dist/components/StepSidebar/MobileStepProgress.styles.js +42 -0
- package/dist/components/StepSidebar/StepProgress.d.ts +14 -0
- package/dist/components/StepSidebar/StepProgress.js +14 -0
- package/dist/components/StepSidebar/StepProgress.styles.d.ts +30 -0
- package/dist/components/StepSidebar/StepProgress.styles.js +103 -0
- package/dist/components/StepSidebar/StepSidebar.d.ts +36 -0
- package/dist/components/StepSidebar/StepSidebar.js +58 -0
- package/dist/components/StepSidebar/StepSidebar.styles.d.ts +54 -0
- package/dist/components/StepSidebar/StepSidebar.styles.js +175 -0
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +27 -11
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +88 -7
- package/dist/index.d.ts +64 -7
- package/dist/index.js +17 -3
- package/dist/styles/borderedField.d.ts +11 -0
- package/dist/styles/borderedField.js +56 -0
- package/package.json +1 -1
- package/dist/static/images/globe.svg.js +0 -5
- package/dist/static/images/trash.svg +0 -17
- package/dist/static/images/trash.svg.js +0 -5
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
const flagLoaders = {
|
|
2
|
+
AC: () => import("country-flag-icons/string/3x2/AC"),
|
|
3
|
+
AD: () => import("country-flag-icons/string/3x2/AD"),
|
|
4
|
+
AE: () => import("country-flag-icons/string/3x2/AE"),
|
|
5
|
+
AF: () => import("country-flag-icons/string/3x2/AF"),
|
|
6
|
+
AG: () => import("country-flag-icons/string/3x2/AG"),
|
|
7
|
+
AI: () => import("country-flag-icons/string/3x2/AI"),
|
|
8
|
+
AL: () => import("country-flag-icons/string/3x2/AL"),
|
|
9
|
+
AM: () => import("country-flag-icons/string/3x2/AM"),
|
|
10
|
+
AO: () => import("country-flag-icons/string/3x2/AO"),
|
|
11
|
+
AQ: () => import("country-flag-icons/string/3x2/AQ"),
|
|
12
|
+
AR: () => import("country-flag-icons/string/3x2/AR"),
|
|
13
|
+
AS: () => import("country-flag-icons/string/3x2/AS"),
|
|
14
|
+
AT: () => import("country-flag-icons/string/3x2/AT"),
|
|
15
|
+
AU: () => import("country-flag-icons/string/3x2/AU"),
|
|
16
|
+
AW: () => import("country-flag-icons/string/3x2/AW"),
|
|
17
|
+
AX: () => import("country-flag-icons/string/3x2/AX"),
|
|
18
|
+
AZ: () => import("country-flag-icons/string/3x2/AZ"),
|
|
19
|
+
BA: () => import("country-flag-icons/string/3x2/BA"),
|
|
20
|
+
BB: () => import("country-flag-icons/string/3x2/BB"),
|
|
21
|
+
BD: () => import("country-flag-icons/string/3x2/BD"),
|
|
22
|
+
BE: () => import("country-flag-icons/string/3x2/BE"),
|
|
23
|
+
BF: () => import("country-flag-icons/string/3x2/BF"),
|
|
24
|
+
BG: () => import("country-flag-icons/string/3x2/BG"),
|
|
25
|
+
BH: () => import("country-flag-icons/string/3x2/BH"),
|
|
26
|
+
BI: () => import("country-flag-icons/string/3x2/BI"),
|
|
27
|
+
BJ: () => import("country-flag-icons/string/3x2/BJ"),
|
|
28
|
+
BL: () => import("country-flag-icons/string/3x2/BL"),
|
|
29
|
+
BM: () => import("country-flag-icons/string/3x2/BM"),
|
|
30
|
+
BN: () => import("country-flag-icons/string/3x2/BN"),
|
|
31
|
+
BO: () => import("country-flag-icons/string/3x2/BO"),
|
|
32
|
+
BQ_BO: () => import("country-flag-icons/string/3x2/BQ-BO"),
|
|
33
|
+
BQ_SA: () => import("country-flag-icons/string/3x2/BQ-SA"),
|
|
34
|
+
BQ_SE: () => import("country-flag-icons/string/3x2/BQ-SE"),
|
|
35
|
+
BQ: () => import("country-flag-icons/string/3x2/BQ"),
|
|
36
|
+
BR: () => import("country-flag-icons/string/3x2/BR"),
|
|
37
|
+
BS: () => import("country-flag-icons/string/3x2/BS"),
|
|
38
|
+
BT: () => import("country-flag-icons/string/3x2/BT"),
|
|
39
|
+
BV: () => import("country-flag-icons/string/3x2/BV"),
|
|
40
|
+
BW: () => import("country-flag-icons/string/3x2/BW"),
|
|
41
|
+
BY: () => import("country-flag-icons/string/3x2/BY"),
|
|
42
|
+
BZ: () => import("country-flag-icons/string/3x2/BZ"),
|
|
43
|
+
CA: () => import("country-flag-icons/string/3x2/CA"),
|
|
44
|
+
CC: () => import("country-flag-icons/string/3x2/CC"),
|
|
45
|
+
CD: () => import("country-flag-icons/string/3x2/CD"),
|
|
46
|
+
CF: () => import("country-flag-icons/string/3x2/CF"),
|
|
47
|
+
CG: () => import("country-flag-icons/string/3x2/CG"),
|
|
48
|
+
CH: () => import("country-flag-icons/string/3x2/CH"),
|
|
49
|
+
CI: () => import("country-flag-icons/string/3x2/CI"),
|
|
50
|
+
CK: () => import("country-flag-icons/string/3x2/CK"),
|
|
51
|
+
CL: () => import("country-flag-icons/string/3x2/CL"),
|
|
52
|
+
CM: () => import("country-flag-icons/string/3x2/CM"),
|
|
53
|
+
CN: () => import("country-flag-icons/string/3x2/CN"),
|
|
54
|
+
CO: () => import("country-flag-icons/string/3x2/CO"),
|
|
55
|
+
CR: () => import("country-flag-icons/string/3x2/CR"),
|
|
56
|
+
CU: () => import("country-flag-icons/string/3x2/CU"),
|
|
57
|
+
CV: () => import("country-flag-icons/string/3x2/CV"),
|
|
58
|
+
CW: () => import("country-flag-icons/string/3x2/CW"),
|
|
59
|
+
CX: () => import("country-flag-icons/string/3x2/CX"),
|
|
60
|
+
CY: () => import("country-flag-icons/string/3x2/CY"),
|
|
61
|
+
CZ: () => import("country-flag-icons/string/3x2/CZ"),
|
|
62
|
+
DE: () => import("country-flag-icons/string/3x2/DE"),
|
|
63
|
+
DJ: () => import("country-flag-icons/string/3x2/DJ"),
|
|
64
|
+
DK: () => import("country-flag-icons/string/3x2/DK"),
|
|
65
|
+
DM: () => import("country-flag-icons/string/3x2/DM"),
|
|
66
|
+
DO: () => import("country-flag-icons/string/3x2/DO"),
|
|
67
|
+
DZ: () => import("country-flag-icons/string/3x2/DZ"),
|
|
68
|
+
EC: () => import("country-flag-icons/string/3x2/EC"),
|
|
69
|
+
EE: () => import("country-flag-icons/string/3x2/EE"),
|
|
70
|
+
EG: () => import("country-flag-icons/string/3x2/EG"),
|
|
71
|
+
EH: () => import("country-flag-icons/string/3x2/EH"),
|
|
72
|
+
ER: () => import("country-flag-icons/string/3x2/ER"),
|
|
73
|
+
ES_CT: () => import("country-flag-icons/string/3x2/ES-CT"),
|
|
74
|
+
ES: () => import("country-flag-icons/string/3x2/ES"),
|
|
75
|
+
ET: () => import("country-flag-icons/string/3x2/ET"),
|
|
76
|
+
EU: () => import("country-flag-icons/string/3x2/EU"),
|
|
77
|
+
FI: () => import("country-flag-icons/string/3x2/FI"),
|
|
78
|
+
FJ: () => import("country-flag-icons/string/3x2/FJ"),
|
|
79
|
+
FK: () => import("country-flag-icons/string/3x2/FK"),
|
|
80
|
+
FM: () => import("country-flag-icons/string/3x2/FM"),
|
|
81
|
+
FO: () => import("country-flag-icons/string/3x2/FO"),
|
|
82
|
+
FR: () => import("country-flag-icons/string/3x2/FR"),
|
|
83
|
+
GA: () => import("country-flag-icons/string/3x2/GA"),
|
|
84
|
+
GB_ENG: () => import("country-flag-icons/string/3x2/GB-ENG"),
|
|
85
|
+
GB_NIR: () => import("country-flag-icons/string/3x2/GB-NIR"),
|
|
86
|
+
GB_SCT: () => import("country-flag-icons/string/3x2/GB-SCT"),
|
|
87
|
+
GB_WLS: () => import("country-flag-icons/string/3x2/GB-WLS"),
|
|
88
|
+
GB: () => import("country-flag-icons/string/3x2/GB"),
|
|
89
|
+
GD: () => import("country-flag-icons/string/3x2/GD"),
|
|
90
|
+
GE: () => import("country-flag-icons/string/3x2/GE"),
|
|
91
|
+
GF: () => import("country-flag-icons/string/3x2/GF"),
|
|
92
|
+
GG: () => import("country-flag-icons/string/3x2/GG"),
|
|
93
|
+
GH: () => import("country-flag-icons/string/3x2/GH"),
|
|
94
|
+
GI: () => import("country-flag-icons/string/3x2/GI"),
|
|
95
|
+
GL: () => import("country-flag-icons/string/3x2/GL"),
|
|
96
|
+
GM: () => import("country-flag-icons/string/3x2/GM"),
|
|
97
|
+
GN: () => import("country-flag-icons/string/3x2/GN"),
|
|
98
|
+
GP: () => import("country-flag-icons/string/3x2/GP"),
|
|
99
|
+
GQ: () => import("country-flag-icons/string/3x2/GQ"),
|
|
100
|
+
GR: () => import("country-flag-icons/string/3x2/GR"),
|
|
101
|
+
GS: () => import("country-flag-icons/string/3x2/GS"),
|
|
102
|
+
GT: () => import("country-flag-icons/string/3x2/GT"),
|
|
103
|
+
GU: () => import("country-flag-icons/string/3x2/GU"),
|
|
104
|
+
GW: () => import("country-flag-icons/string/3x2/GW"),
|
|
105
|
+
GY: () => import("country-flag-icons/string/3x2/GY"),
|
|
106
|
+
HK: () => import("country-flag-icons/string/3x2/HK"),
|
|
107
|
+
HM: () => import("country-flag-icons/string/3x2/HM"),
|
|
108
|
+
HN: () => import("country-flag-icons/string/3x2/HN"),
|
|
109
|
+
HR: () => import("country-flag-icons/string/3x2/HR"),
|
|
110
|
+
HT: () => import("country-flag-icons/string/3x2/HT"),
|
|
111
|
+
HU: () => import("country-flag-icons/string/3x2/HU"),
|
|
112
|
+
IC: () => import("country-flag-icons/string/3x2/IC"),
|
|
113
|
+
ID: () => import("country-flag-icons/string/3x2/ID"),
|
|
114
|
+
IE: () => import("country-flag-icons/string/3x2/IE"),
|
|
115
|
+
IL: () => import("country-flag-icons/string/3x2/IL"),
|
|
116
|
+
IM: () => import("country-flag-icons/string/3x2/IM"),
|
|
117
|
+
IN: () => import("country-flag-icons/string/3x2/IN"),
|
|
118
|
+
IO: () => import("country-flag-icons/string/3x2/IO"),
|
|
119
|
+
IQ: () => import("country-flag-icons/string/3x2/IQ"),
|
|
120
|
+
IR: () => import("country-flag-icons/string/3x2/IR"),
|
|
121
|
+
IS: () => import("country-flag-icons/string/3x2/IS"),
|
|
122
|
+
IT: () => import("country-flag-icons/string/3x2/IT"),
|
|
123
|
+
JE: () => import("country-flag-icons/string/3x2/JE"),
|
|
124
|
+
JM: () => import("country-flag-icons/string/3x2/JM"),
|
|
125
|
+
JO: () => import("country-flag-icons/string/3x2/JO"),
|
|
126
|
+
JP: () => import("country-flag-icons/string/3x2/JP"),
|
|
127
|
+
KE: () => import("country-flag-icons/string/3x2/KE"),
|
|
128
|
+
KG: () => import("country-flag-icons/string/3x2/KG"),
|
|
129
|
+
KH: () => import("country-flag-icons/string/3x2/KH"),
|
|
130
|
+
KI: () => import("country-flag-icons/string/3x2/KI"),
|
|
131
|
+
KM: () => import("country-flag-icons/string/3x2/KM"),
|
|
132
|
+
KN: () => import("country-flag-icons/string/3x2/KN"),
|
|
133
|
+
KP: () => import("country-flag-icons/string/3x2/KP"),
|
|
134
|
+
KR: () => import("country-flag-icons/string/3x2/KR"),
|
|
135
|
+
KW: () => import("country-flag-icons/string/3x2/KW"),
|
|
136
|
+
KY: () => import("country-flag-icons/string/3x2/KY"),
|
|
137
|
+
KZ: () => import("country-flag-icons/string/3x2/KZ"),
|
|
138
|
+
LA: () => import("country-flag-icons/string/3x2/LA"),
|
|
139
|
+
LB: () => import("country-flag-icons/string/3x2/LB"),
|
|
140
|
+
LC: () => import("country-flag-icons/string/3x2/LC"),
|
|
141
|
+
LI: () => import("country-flag-icons/string/3x2/LI"),
|
|
142
|
+
LK: () => import("country-flag-icons/string/3x2/LK"),
|
|
143
|
+
LR: () => import("country-flag-icons/string/3x2/LR"),
|
|
144
|
+
LS: () => import("country-flag-icons/string/3x2/LS"),
|
|
145
|
+
LT: () => import("country-flag-icons/string/3x2/LT"),
|
|
146
|
+
LU: () => import("country-flag-icons/string/3x2/LU"),
|
|
147
|
+
LV: () => import("country-flag-icons/string/3x2/LV"),
|
|
148
|
+
LY: () => import("country-flag-icons/string/3x2/LY"),
|
|
149
|
+
MA: () => import("country-flag-icons/string/3x2/MA"),
|
|
150
|
+
MC: () => import("country-flag-icons/string/3x2/MC"),
|
|
151
|
+
MD: () => import("country-flag-icons/string/3x2/MD"),
|
|
152
|
+
ME: () => import("country-flag-icons/string/3x2/ME"),
|
|
153
|
+
MF: () => import("country-flag-icons/string/3x2/MF"),
|
|
154
|
+
MG: () => import("country-flag-icons/string/3x2/MG"),
|
|
155
|
+
MH: () => import("country-flag-icons/string/3x2/MH"),
|
|
156
|
+
MK: () => import("country-flag-icons/string/3x2/MK"),
|
|
157
|
+
ML: () => import("country-flag-icons/string/3x2/ML"),
|
|
158
|
+
MM: () => import("country-flag-icons/string/3x2/MM"),
|
|
159
|
+
MN: () => import("country-flag-icons/string/3x2/MN"),
|
|
160
|
+
MO: () => import("country-flag-icons/string/3x2/MO"),
|
|
161
|
+
MP: () => import("country-flag-icons/string/3x2/MP"),
|
|
162
|
+
MQ: () => import("country-flag-icons/string/3x2/MQ"),
|
|
163
|
+
MR: () => import("country-flag-icons/string/3x2/MR"),
|
|
164
|
+
MS: () => import("country-flag-icons/string/3x2/MS"),
|
|
165
|
+
MT: () => import("country-flag-icons/string/3x2/MT"),
|
|
166
|
+
MU: () => import("country-flag-icons/string/3x2/MU"),
|
|
167
|
+
MV: () => import("country-flag-icons/string/3x2/MV"),
|
|
168
|
+
MW: () => import("country-flag-icons/string/3x2/MW"),
|
|
169
|
+
MX: () => import("country-flag-icons/string/3x2/MX"),
|
|
170
|
+
MY: () => import("country-flag-icons/string/3x2/MY"),
|
|
171
|
+
MZ: () => import("country-flag-icons/string/3x2/MZ"),
|
|
172
|
+
NA: () => import("country-flag-icons/string/3x2/NA"),
|
|
173
|
+
NC: () => import("country-flag-icons/string/3x2/NC"),
|
|
174
|
+
NE: () => import("country-flag-icons/string/3x2/NE"),
|
|
175
|
+
NF: () => import("country-flag-icons/string/3x2/NF"),
|
|
176
|
+
NG: () => import("country-flag-icons/string/3x2/NG"),
|
|
177
|
+
NI: () => import("country-flag-icons/string/3x2/NI"),
|
|
178
|
+
NL: () => import("country-flag-icons/string/3x2/NL"),
|
|
179
|
+
NO: () => import("country-flag-icons/string/3x2/NO"),
|
|
180
|
+
NP: () => import("country-flag-icons/string/3x2/NP"),
|
|
181
|
+
NR: () => import("country-flag-icons/string/3x2/NR"),
|
|
182
|
+
NU: () => import("country-flag-icons/string/3x2/NU"),
|
|
183
|
+
NZ: () => import("country-flag-icons/string/3x2/NZ"),
|
|
184
|
+
OM: () => import("country-flag-icons/string/3x2/OM"),
|
|
185
|
+
PA: () => import("country-flag-icons/string/3x2/PA"),
|
|
186
|
+
PE: () => import("country-flag-icons/string/3x2/PE"),
|
|
187
|
+
PF: () => import("country-flag-icons/string/3x2/PF"),
|
|
188
|
+
PG: () => import("country-flag-icons/string/3x2/PG"),
|
|
189
|
+
PH: () => import("country-flag-icons/string/3x2/PH"),
|
|
190
|
+
PK: () => import("country-flag-icons/string/3x2/PK"),
|
|
191
|
+
PL: () => import("country-flag-icons/string/3x2/PL"),
|
|
192
|
+
PM: () => import("country-flag-icons/string/3x2/PM"),
|
|
193
|
+
PN: () => import("country-flag-icons/string/3x2/PN"),
|
|
194
|
+
PR: () => import("country-flag-icons/string/3x2/PR"),
|
|
195
|
+
PS: () => import("country-flag-icons/string/3x2/PS"),
|
|
196
|
+
PT: () => import("country-flag-icons/string/3x2/PT"),
|
|
197
|
+
PW: () => import("country-flag-icons/string/3x2/PW"),
|
|
198
|
+
PY: () => import("country-flag-icons/string/3x2/PY"),
|
|
199
|
+
QA: () => import("country-flag-icons/string/3x2/QA"),
|
|
200
|
+
RE: () => import("country-flag-icons/string/3x2/RE"),
|
|
201
|
+
RO: () => import("country-flag-icons/string/3x2/RO"),
|
|
202
|
+
RS: () => import("country-flag-icons/string/3x2/RS"),
|
|
203
|
+
RU: () => import("country-flag-icons/string/3x2/RU"),
|
|
204
|
+
RW: () => import("country-flag-icons/string/3x2/RW"),
|
|
205
|
+
SA: () => import("country-flag-icons/string/3x2/SA"),
|
|
206
|
+
SB: () => import("country-flag-icons/string/3x2/SB"),
|
|
207
|
+
SC: () => import("country-flag-icons/string/3x2/SC"),
|
|
208
|
+
SD: () => import("country-flag-icons/string/3x2/SD"),
|
|
209
|
+
SE: () => import("country-flag-icons/string/3x2/SE"),
|
|
210
|
+
SG: () => import("country-flag-icons/string/3x2/SG"),
|
|
211
|
+
SH: () => import("country-flag-icons/string/3x2/SH"),
|
|
212
|
+
SI: () => import("country-flag-icons/string/3x2/SI"),
|
|
213
|
+
SJ: () => import("country-flag-icons/string/3x2/SJ"),
|
|
214
|
+
SK: () => import("country-flag-icons/string/3x2/SK"),
|
|
215
|
+
SL: () => import("country-flag-icons/string/3x2/SL"),
|
|
216
|
+
SM: () => import("country-flag-icons/string/3x2/SM"),
|
|
217
|
+
SN: () => import("country-flag-icons/string/3x2/SN"),
|
|
218
|
+
SO: () => import("country-flag-icons/string/3x2/SO"),
|
|
219
|
+
SR: () => import("country-flag-icons/string/3x2/SR"),
|
|
220
|
+
SS: () => import("country-flag-icons/string/3x2/SS"),
|
|
221
|
+
ST: () => import("country-flag-icons/string/3x2/ST"),
|
|
222
|
+
SV: () => import("country-flag-icons/string/3x2/SV"),
|
|
223
|
+
SX: () => import("country-flag-icons/string/3x2/SX"),
|
|
224
|
+
SY: () => import("country-flag-icons/string/3x2/SY"),
|
|
225
|
+
SZ: () => import("country-flag-icons/string/3x2/SZ"),
|
|
226
|
+
TA: () => import("country-flag-icons/string/3x2/TA"),
|
|
227
|
+
TC: () => import("country-flag-icons/string/3x2/TC"),
|
|
228
|
+
TD: () => import("country-flag-icons/string/3x2/TD"),
|
|
229
|
+
TF: () => import("country-flag-icons/string/3x2/TF"),
|
|
230
|
+
TG: () => import("country-flag-icons/string/3x2/TG"),
|
|
231
|
+
TH: () => import("country-flag-icons/string/3x2/TH"),
|
|
232
|
+
TJ: () => import("country-flag-icons/string/3x2/TJ"),
|
|
233
|
+
TK: () => import("country-flag-icons/string/3x2/TK"),
|
|
234
|
+
TL: () => import("country-flag-icons/string/3x2/TL"),
|
|
235
|
+
TM: () => import("country-flag-icons/string/3x2/TM"),
|
|
236
|
+
TN: () => import("country-flag-icons/string/3x2/TN"),
|
|
237
|
+
TO: () => import("country-flag-icons/string/3x2/TO"),
|
|
238
|
+
TR: () => import("country-flag-icons/string/3x2/TR"),
|
|
239
|
+
TT: () => import("country-flag-icons/string/3x2/TT"),
|
|
240
|
+
TV: () => import("country-flag-icons/string/3x2/TV"),
|
|
241
|
+
TW: () => import("country-flag-icons/string/3x2/TW"),
|
|
242
|
+
TZ: () => import("country-flag-icons/string/3x2/TZ"),
|
|
243
|
+
UA: () => import("country-flag-icons/string/3x2/UA"),
|
|
244
|
+
UG: () => import("country-flag-icons/string/3x2/UG"),
|
|
245
|
+
UM: () => import("country-flag-icons/string/3x2/UM"),
|
|
246
|
+
US: () => import("country-flag-icons/string/3x2/US"),
|
|
247
|
+
UY: () => import("country-flag-icons/string/3x2/UY"),
|
|
248
|
+
UZ: () => import("country-flag-icons/string/3x2/UZ"),
|
|
249
|
+
VA: () => import("country-flag-icons/string/3x2/VA"),
|
|
250
|
+
VC: () => import("country-flag-icons/string/3x2/VC"),
|
|
251
|
+
VE: () => import("country-flag-icons/string/3x2/VE"),
|
|
252
|
+
VG: () => import("country-flag-icons/string/3x2/VG"),
|
|
253
|
+
VI: () => import("country-flag-icons/string/3x2/VI"),
|
|
254
|
+
VN: () => import("country-flag-icons/string/3x2/VN"),
|
|
255
|
+
VU: () => import("country-flag-icons/string/3x2/VU"),
|
|
256
|
+
WF: () => import("country-flag-icons/string/3x2/WF"),
|
|
257
|
+
WS: () => import("country-flag-icons/string/3x2/WS"),
|
|
258
|
+
XA: () => import("country-flag-icons/string/3x2/XA"),
|
|
259
|
+
XC: () => import("country-flag-icons/string/3x2/XC"),
|
|
260
|
+
XK: () => import("country-flag-icons/string/3x2/XK"),
|
|
261
|
+
XO: () => import("country-flag-icons/string/3x2/XO"),
|
|
262
|
+
YE: () => import("country-flag-icons/string/3x2/YE"),
|
|
263
|
+
YT: () => import("country-flag-icons/string/3x2/YT"),
|
|
264
|
+
ZA: () => import("country-flag-icons/string/3x2/ZA"),
|
|
265
|
+
ZM: () => import("country-flag-icons/string/3x2/ZM"),
|
|
266
|
+
ZW: () => import("country-flag-icons/string/3x2/ZW")
|
|
267
|
+
};
|
|
268
|
+
export {
|
|
269
|
+
flagLoaders
|
|
270
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const toFlagKey: (code: string) => string;
|
|
2
|
+
export declare const subscribeToFlags: (listener: () => void) => () => void;
|
|
3
|
+
export declare const getFlagSrc: (key: string) => string;
|
|
4
|
+
export declare const loadFlag: (key: string) => void;
|
|
5
|
+
/** Starts loading flags before they render, e.g. for the options of a country list. */
|
|
6
|
+
export declare const preloadFlags: (codes: readonly string[]) => void;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { flagLoaders } from "./flagLoaders.js";
|
|
2
|
+
const loaded = /* @__PURE__ */ new Map();
|
|
3
|
+
const pending = /* @__PURE__ */ new Set();
|
|
4
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
5
|
+
const toFlagKey = (code) => code.toUpperCase().replace("-", "_");
|
|
6
|
+
const subscribeToFlags = (listener) => {
|
|
7
|
+
listeners.add(listener);
|
|
8
|
+
return () => {
|
|
9
|
+
listeners.delete(listener);
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
const getFlagSrc = (key) => loaded.get(key);
|
|
13
|
+
const loadFlag = (key) => {
|
|
14
|
+
const loader = flagLoaders[key];
|
|
15
|
+
if (!loader || loaded.has(key) || pending.has(key)) return;
|
|
16
|
+
pending.add(key);
|
|
17
|
+
loader().then(({ default: svg }) => {
|
|
18
|
+
loaded.set(key, `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`);
|
|
19
|
+
listeners.forEach((listener) => listener());
|
|
20
|
+
}).catch(() => void 0).finally(() => pending.delete(key));
|
|
21
|
+
};
|
|
22
|
+
const preloadFlags = (codes) => codes.forEach((code) => loadFlag(toFlagKey(code)));
|
|
23
|
+
export {
|
|
24
|
+
getFlagSrc,
|
|
25
|
+
loadFlag,
|
|
26
|
+
preloadFlags,
|
|
27
|
+
subscribeToFlags,
|
|
28
|
+
toFlagKey
|
|
29
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
import { FieldVariant } from '../../styles/borderedField';
|
|
3
|
+
import { FaqItems, FaqItem, FaqTitle, FaqContent, FaqText, FaqDropdownIcon } from './FAQ.styles';
|
|
4
|
+
export interface FAQEntry {
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
/** A string or JSX, or an array of strings rendered as a bullet list. */
|
|
7
|
+
content: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface FAQProps {
|
|
10
|
+
items: readonly FAQEntry[];
|
|
11
|
+
/** Do not scroll the opened item into view. */
|
|
12
|
+
noScroll?: boolean;
|
|
13
|
+
/** Ref to a custom scrollbar (in a modal); scrolled to the bottom when an item opens. */
|
|
14
|
+
scrollRef?: RefObject<{
|
|
15
|
+
scrollToBottom: () => void;
|
|
16
|
+
} | null>;
|
|
17
|
+
/** Title style used inside the "view more" modal. */
|
|
18
|
+
modalViewMore?: boolean;
|
|
19
|
+
/** Smaller, indented text for answers given as a list of strings. */
|
|
20
|
+
withTextStyling?: boolean;
|
|
21
|
+
/** Prefix for data-cy: `{prefix}-accordion`, `{prefix}-item-{slug}-toggle`, etc. */
|
|
22
|
+
dataCyPrefix?: string;
|
|
23
|
+
/** `bordered`: each item is a card (sign-up redesign). Default keeps the plain list. */
|
|
24
|
+
variant?: FieldVariant;
|
|
25
|
+
}
|
|
26
|
+
/** Accordion of questions and answers; one item is open at a time. */
|
|
27
|
+
export declare const FAQ: (props: FAQProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export { FaqItems, FaqItem, FaqTitle, FaqContent, FaqText, FaqDropdownIcon };
|
|
29
|
+
export default FAQ;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
import { Text } from "../Text/Text.styles.js";
|
|
4
2
|
import { useState } from "react";
|
|
3
|
+
import { Text } from "../Text/Text.styles.js";
|
|
5
4
|
import { scrollToElement } from "../../utils/scrollUtils.js";
|
|
6
5
|
import { FaqItems, FaqItem, FaqTitle, FaqDropdownIcon, FaqContent, FaqText } from "./FAQ.styles.js";
|
|
7
6
|
function slugFromTitle(title) {
|
|
@@ -10,8 +9,17 @@ function slugFromTitle(title) {
|
|
|
10
9
|
return raw.toLowerCase().trim().slice(0, 48).replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "");
|
|
11
10
|
}
|
|
12
11
|
const FAQ = (props) => {
|
|
13
|
-
const {
|
|
12
|
+
const {
|
|
13
|
+
items,
|
|
14
|
+
noScroll,
|
|
15
|
+
scrollRef,
|
|
16
|
+
modalViewMore,
|
|
17
|
+
withTextStyling,
|
|
18
|
+
dataCyPrefix = "faq",
|
|
19
|
+
variant = "default"
|
|
20
|
+
} = props;
|
|
14
21
|
const [activeIndex, setActiveIndex] = useState(null);
|
|
22
|
+
const bordered = variant === "bordered";
|
|
15
23
|
const onTitleClick = (e, index) => {
|
|
16
24
|
e.persist();
|
|
17
25
|
const newActiveIndex = activeIndex === index ? null : index;
|
|
@@ -19,7 +27,7 @@ const FAQ = (props) => {
|
|
|
19
27
|
if (!noScroll && newActiveIndex !== null) {
|
|
20
28
|
if (scrollRef?.current) {
|
|
21
29
|
setTimeout(() => {
|
|
22
|
-
scrollRef?.current
|
|
30
|
+
scrollRef?.current?.scrollToBottom();
|
|
23
31
|
}, 0);
|
|
24
32
|
} else {
|
|
25
33
|
scrollToElement(e.target.parentElement, { offset: 20 });
|
|
@@ -35,9 +43,10 @@ const FAQ = (props) => {
|
|
|
35
43
|
return /* @__PURE__ */ jsx(FaqItems, { "data-cy": `${dataCyPrefix}-accordion`, children: items.map((item, index) => {
|
|
36
44
|
const titleSlug = slugFromTitle(item.title);
|
|
37
45
|
const itemCy = titleSlug ? `${dataCyPrefix}-item-${titleSlug}` : `${dataCyPrefix}-item-${index}`;
|
|
46
|
+
const list = Array.isArray(item.content) ? item.content : null;
|
|
38
47
|
return (
|
|
39
48
|
// eslint-disable-next-line @eslint-react/no-array-index-key -- FAQ order is content-defined
|
|
40
|
-
/* @__PURE__ */ jsxs(FaqItem, { "data-cy": `${itemCy}-wrap`, children: [
|
|
49
|
+
/* @__PURE__ */ jsxs(FaqItem, { "data-cy": `${itemCy}-wrap`, $variant: variant, children: [
|
|
41
50
|
/* @__PURE__ */ jsxs(
|
|
42
51
|
FaqTitle,
|
|
43
52
|
{
|
|
@@ -47,30 +56,21 @@ const FAQ = (props) => {
|
|
|
47
56
|
isActive: activeIndex === index,
|
|
48
57
|
onClick: (e) => onTitleClick(e, index),
|
|
49
58
|
modalViewMore,
|
|
59
|
+
$variant: variant,
|
|
50
60
|
children: [
|
|
51
61
|
item.title,
|
|
52
|
-
/* @__PURE__ */ jsx(FaqDropdownIcon, {})
|
|
62
|
+
/* @__PURE__ */ jsx(FaqDropdownIcon, { $variant: variant })
|
|
53
63
|
]
|
|
54
64
|
}
|
|
55
65
|
),
|
|
56
|
-
/* @__PURE__ */ jsx(FaqContent, { "data-cy": `${itemCy}-panel`, isOpened: activeIndex === index, children: !
|
|
66
|
+
/* @__PURE__ */ jsx(FaqContent, { "data-cy": `${itemCy}-panel`, isOpened: activeIndex === index, children: !list ? /* @__PURE__ */ jsx(FaqText, { $variant: variant, children: item.content }) : bordered ? /* @__PURE__ */ jsx(FaqText, { $variant: variant, children: /* @__PURE__ */ jsx("ul", { children: list.map((answer) => /* @__PURE__ */ jsx("li", { children: answer }, answer)) }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
57
67
|
/* @__PURE__ */ jsx("br", {}),
|
|
58
|
-
/* @__PURE__ */ jsx(Text, { style: withTextStyling ? textStyling : {}, children: /* @__PURE__ */ jsx("ul", { children:
|
|
68
|
+
/* @__PURE__ */ jsx(Text, { style: withTextStyling ? textStyling : {}, children: /* @__PURE__ */ jsx("ul", { children: list.map((answer) => /* @__PURE__ */ jsx("li", { children: answer }, answer)) }) })
|
|
59
69
|
] }) })
|
|
60
70
|
] }, index)
|
|
61
71
|
);
|
|
62
72
|
}) });
|
|
63
73
|
};
|
|
64
|
-
FAQ.propTypes = {
|
|
65
|
-
items: PropTypes.arrayOf(
|
|
66
|
-
PropTypes.shape({
|
|
67
|
-
title: PropTypes.node.isRequired,
|
|
68
|
-
content: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.node]).isRequired
|
|
69
|
-
})
|
|
70
|
-
).isRequired,
|
|
71
|
-
/** Prefix for data-cy: `{prefix}-accordion`, `{prefix}-item-{slug}-toggle`, etc. */
|
|
72
|
-
dataCyPrefix: PropTypes.string
|
|
73
|
-
};
|
|
74
74
|
export {
|
|
75
75
|
FAQ,
|
|
76
76
|
FaqContent,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FieldVariant } from '../../styles/borderedField';
|
|
2
|
+
export declare const FaqItems: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
3
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
4
|
+
}> & string;
|
|
5
|
+
export declare const FaqDropdownIcon: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
6
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
7
|
+
}, {
|
|
8
|
+
$variant?: FieldVariant;
|
|
9
|
+
}>, "children"> & Partial<Pick<import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
10
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
11
|
+
}, {
|
|
12
|
+
$variant?: FieldVariant;
|
|
13
|
+
}>, "children">>> & string;
|
|
14
|
+
export declare const FaqItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
15
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
16
|
+
}, {
|
|
17
|
+
center?: boolean;
|
|
18
|
+
customContainerStyle?: string;
|
|
19
|
+
$variant?: FieldVariant;
|
|
20
|
+
}>> & string;
|
|
21
|
+
export declare const FaqTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
22
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
23
|
+
}, {
|
|
24
|
+
uppercase?: boolean;
|
|
25
|
+
white?: boolean;
|
|
26
|
+
center?: boolean;
|
|
27
|
+
hideIcon?: boolean;
|
|
28
|
+
isActive?: boolean;
|
|
29
|
+
modalViewMore?: boolean;
|
|
30
|
+
$variant?: FieldVariant;
|
|
31
|
+
}>> & string;
|
|
32
|
+
export declare const FaqContent: any;
|
|
33
|
+
export declare const FaqText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
34
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
35
|
+
}, {
|
|
36
|
+
largeSpacing?: boolean;
|
|
37
|
+
$variant?: FieldVariant;
|
|
38
|
+
}>> & string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
2
|
import { Collapse } from "react-collapse";
|
|
3
3
|
import theme from "../../styles/theme.js";
|
|
4
|
+
import { colors } from "../../styles/colors.js";
|
|
5
|
+
import { BORDERED_BORDER } from "../../styles/borderedField.js";
|
|
6
|
+
import { space, radius } from "../../styles/spacing.js";
|
|
7
|
+
import { elevation } from "../../styles/elevation.js";
|
|
8
|
+
import { typography } from "../../styles/typography.js";
|
|
4
9
|
import { glyph } from "../MaterialIcon/glyph.js";
|
|
5
10
|
const FaqItems = styled.div`
|
|
6
11
|
position: relative;
|
|
@@ -20,6 +25,15 @@ const FaqDropdownIcon = styled.span.attrs({
|
|
|
20
25
|
margin-top: -10px;
|
|
21
26
|
transform: rotate(0);
|
|
22
27
|
transition: 0.3s transform;
|
|
28
|
+
|
|
29
|
+
${(props) => props.$variant === "bordered" && css`
|
|
30
|
+
width: 16px;
|
|
31
|
+
height: 16px;
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
top: 22px;
|
|
34
|
+
right: ${space[5]};
|
|
35
|
+
margin-top: 0;
|
|
36
|
+
`}
|
|
23
37
|
`;
|
|
24
38
|
const FaqItem = styled.div.withConfig({
|
|
25
39
|
shouldForwardProp: (props) => !["center", "customContainerStyle"].includes(props)
|
|
@@ -28,6 +42,22 @@ const FaqItem = styled.div.withConfig({
|
|
|
28
42
|
margin-top: 30px;
|
|
29
43
|
}
|
|
30
44
|
|
|
45
|
+
${(props) => props.$variant === "bordered" && css`
|
|
46
|
+
padding: 0;
|
|
47
|
+
border: ${BORDERED_BORDER};
|
|
48
|
+
border-radius: ${radius.lg};
|
|
49
|
+
background: ${colors.white};
|
|
50
|
+
box-shadow: ${elevation.xs};
|
|
51
|
+
|
|
52
|
+
.ReactCollapse--collapse {
|
|
53
|
+
transition: height 0.3s ease;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
& + & {
|
|
57
|
+
margin-top: ${space[2]};
|
|
58
|
+
}
|
|
59
|
+
`}
|
|
60
|
+
|
|
31
61
|
${(props) => props.center && `
|
|
32
62
|
text-align:center;
|
|
33
63
|
`}
|
|
@@ -59,6 +89,19 @@ const FaqTitle = styled.button.withConfig({
|
|
|
59
89
|
color: inherit;
|
|
60
90
|
}
|
|
61
91
|
|
|
92
|
+
${(props) => props.$variant === "bordered" && css`
|
|
93
|
+
${typography.bodyMdCallout}
|
|
94
|
+
padding: ${space[5]} 52px ${space[5]} ${space[5]};
|
|
95
|
+
border-radius: ${radius.lg};
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
transition: padding-bottom 0.3s ease;
|
|
98
|
+
${props.isActive && `padding-bottom: ${space[3]};`}
|
|
99
|
+
|
|
100
|
+
&:hover {
|
|
101
|
+
color: ${theme.cBlack};
|
|
102
|
+
}
|
|
103
|
+
`}
|
|
104
|
+
|
|
62
105
|
${(props) => props.uppercase && `
|
|
63
106
|
text-transform:uppercase;
|
|
64
107
|
font-weight:700;
|
|
@@ -121,6 +164,20 @@ const FaqText = styled.div.withConfig({
|
|
|
121
164
|
padding-bottom: 30px;
|
|
122
165
|
|
|
123
166
|
`}
|
|
167
|
+
|
|
168
|
+
${(props) => props.$variant === "bordered" && css`
|
|
169
|
+
padding: 0 ${space[5]} ${space[5]};
|
|
170
|
+
font-size: 14px;
|
|
171
|
+
line-height: 20px;
|
|
172
|
+
font-weight: 400;
|
|
173
|
+
color: ${theme.cBlack};
|
|
174
|
+
|
|
175
|
+
ul {
|
|
176
|
+
margin: 0;
|
|
177
|
+
padding-left: 20px;
|
|
178
|
+
list-style: disc;
|
|
179
|
+
}
|
|
180
|
+
`}
|
|
124
181
|
`;
|
|
125
182
|
export {
|
|
126
183
|
FaqContent,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
|
-
import
|
|
4
|
+
import "../Country/CountrySelect.js";
|
|
5
5
|
import { CountryRowRoot, FlagSlot, CountryCode, ResidencyItemRoot, FieldLabel, FieldValue, SectionHeaderRoot, SectionHeaderIconWrap } from "./IdentityInfo.styles.js";
|
|
6
|
+
import { FlagFor } from "../Country/FlagFor.js";
|
|
6
7
|
const IdentitySectionHeader = ({ icon, count, children, style, className }) => /* @__PURE__ */ jsxs(SectionHeaderRoot, { style, className, children: [
|
|
7
8
|
icon && /* @__PURE__ */ jsx(SectionHeaderIconWrap, { children: icon }),
|
|
8
9
|
/* @__PURE__ */ jsxs("span", { children: [
|