igloo-d2c-components 1.0.27 → 1.0.29
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/cjs/index.js +192 -29
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +192 -29
- package/dist/esm/index.js.map +1 -1
- package/dist/types/components/DesktopHeaderMenuBar/DesktopHeaderMenuBar.d.ts +16 -10
- package/dist/types/components/DesktopHeaderMenuBar/index.d.ts +1 -0
- package/dist/types/components/DesktopHeaderMenuBar/styled.d.ts +22 -10
- package/dist/types/components/DesktopHeaderMenuBar/types.d.ts +36 -0
- package/dist/types/components/Header/Header.d.ts +33 -1
- package/dist/types/themes/typography.d.ts +4 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -113,11 +113,13 @@ const iglooTypography = {
|
|
|
113
113
|
fontStyle: 'normal',
|
|
114
114
|
fontWeight: 700,
|
|
115
115
|
lineHeight: '48px',
|
|
116
|
+
wordSpacing: '-5px',
|
|
116
117
|
'@media (max-width:600px)': {
|
|
117
118
|
fontSize: '24px',
|
|
118
119
|
fontStyle: 'normal',
|
|
119
120
|
fontWeight: 700,
|
|
120
121
|
lineHeight: '30px',
|
|
122
|
+
wordSpacing: '-5px',
|
|
121
123
|
},
|
|
122
124
|
},
|
|
123
125
|
h2: {
|
|
@@ -125,11 +127,13 @@ const iglooTypography = {
|
|
|
125
127
|
fontStyle: 'normal',
|
|
126
128
|
fontWeight: 700,
|
|
127
129
|
lineHeight: '26px',
|
|
130
|
+
wordSpacing: '-5px',
|
|
128
131
|
'@media (max-width:600px)': {
|
|
129
132
|
fontSize: '14px',
|
|
130
133
|
fontStyle: 'normal',
|
|
131
134
|
fontWeight: 700,
|
|
132
135
|
lineHeight: '22px',
|
|
136
|
+
wordSpacing: '-5px',
|
|
133
137
|
},
|
|
134
138
|
},
|
|
135
139
|
h3: {
|
|
@@ -137,11 +141,13 @@ const iglooTypography = {
|
|
|
137
141
|
fontStyle: 'normal',
|
|
138
142
|
fontWeight: 600,
|
|
139
143
|
lineHeight: '24px',
|
|
144
|
+
wordSpacing: '-5px',
|
|
140
145
|
'@media (max-width:600px)': {
|
|
141
146
|
fontSize: '14px',
|
|
142
147
|
fontStyle: 'normal',
|
|
143
148
|
fontWeight: 600,
|
|
144
149
|
lineHeight: '20px',
|
|
150
|
+
wordSpacing: '-5px',
|
|
145
151
|
},
|
|
146
152
|
},
|
|
147
153
|
h4: {
|
|
@@ -149,11 +155,13 @@ const iglooTypography = {
|
|
|
149
155
|
fontStyle: 'normal',
|
|
150
156
|
fontWeight: 600,
|
|
151
157
|
lineHeight: '24px',
|
|
158
|
+
wordSpacing: '-5px',
|
|
152
159
|
'@media (max-width:600px)': {
|
|
153
160
|
fontSize: '14px',
|
|
154
161
|
fontStyle: 'normal',
|
|
155
162
|
fontWeight: 500,
|
|
156
163
|
lineHeight: '18px',
|
|
164
|
+
wordSpacing: '-5px',
|
|
157
165
|
},
|
|
158
166
|
},
|
|
159
167
|
bodyStrongLarge: {
|
|
@@ -161,11 +169,13 @@ const iglooTypography = {
|
|
|
161
169
|
fontStyle: 'normal',
|
|
162
170
|
fontWeight: 500,
|
|
163
171
|
lineHeight: '20px',
|
|
172
|
+
wordSpacing: '-5px',
|
|
164
173
|
'@media (max-width:600px)': {
|
|
165
174
|
fontSize: '14px',
|
|
166
175
|
fontStyle: 'normal',
|
|
167
176
|
fontWeight: 400,
|
|
168
177
|
lineHeight: '18px',
|
|
178
|
+
wordSpacing: '-5px',
|
|
169
179
|
},
|
|
170
180
|
},
|
|
171
181
|
bodyStrongMedium: {
|
|
@@ -173,23 +183,27 @@ const iglooTypography = {
|
|
|
173
183
|
fontStyle: 'normal',
|
|
174
184
|
fontWeight: 500,
|
|
175
185
|
lineHeight: '18px',
|
|
186
|
+
wordSpacing: '-5px',
|
|
176
187
|
},
|
|
177
188
|
bodyStrongSmall: {
|
|
178
189
|
fontSize: '12px',
|
|
179
190
|
fontStyle: 'normal',
|
|
180
191
|
fontWeight: 500,
|
|
181
192
|
lineHeight: '16px',
|
|
193
|
+
wordSpacing: '-5px',
|
|
182
194
|
},
|
|
183
195
|
bodyLarge: {
|
|
184
196
|
fontSize: '16px',
|
|
185
197
|
fontStyle: 'normal',
|
|
186
198
|
fontWeight: 400,
|
|
187
199
|
lineHeight: '20px',
|
|
200
|
+
wordSpacing: '-5px',
|
|
188
201
|
'@media (max-width:600px)': {
|
|
189
202
|
fontSize: '14px',
|
|
190
203
|
fontStyle: 'normal',
|
|
191
204
|
fontWeight: 400,
|
|
192
205
|
lineHeight: '18px',
|
|
206
|
+
wordSpacing: '-5px',
|
|
193
207
|
},
|
|
194
208
|
},
|
|
195
209
|
bodyMedium: {
|
|
@@ -197,18 +211,21 @@ const iglooTypography = {
|
|
|
197
211
|
fontStyle: 'normal',
|
|
198
212
|
fontWeight: 400,
|
|
199
213
|
lineHeight: '20px',
|
|
214
|
+
wordSpacing: '-5px',
|
|
200
215
|
},
|
|
201
216
|
bodySmall: {
|
|
202
217
|
fontSize: '12px',
|
|
203
218
|
fontStyle: 'normal',
|
|
204
219
|
fontWeight: 400,
|
|
205
220
|
lineHeight: '16px',
|
|
221
|
+
wordSpacing: '-5px',
|
|
206
222
|
},
|
|
207
223
|
smallText: {
|
|
208
224
|
fontSize: '8px',
|
|
209
225
|
fontStyle: 'normal',
|
|
210
226
|
fontWeight: 500,
|
|
211
227
|
lineHeight: '16px',
|
|
228
|
+
wordSpacing: '-5px',
|
|
212
229
|
},
|
|
213
230
|
};
|
|
214
231
|
/**
|
|
@@ -264,6 +281,7 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
264
281
|
fontWeight: 700,
|
|
265
282
|
lineHeight: '72px',
|
|
266
283
|
letterSpacing: 0,
|
|
284
|
+
wordSpacing: '-5px',
|
|
267
285
|
},
|
|
268
286
|
// Display Medium - MetLife Circular Bold 45/52
|
|
269
287
|
displayMediumFigma: {
|
|
@@ -272,6 +290,7 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
272
290
|
fontWeight: 700,
|
|
273
291
|
lineHeight: '52px',
|
|
274
292
|
letterSpacing: 0,
|
|
293
|
+
wordSpacing: '-5px',
|
|
275
294
|
},
|
|
276
295
|
// Display Small - MetLife Circular Bold 34/44
|
|
277
296
|
displaySmallFigma: {
|
|
@@ -280,6 +299,7 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
280
299
|
fontWeight: 700,
|
|
281
300
|
lineHeight: '44px',
|
|
282
301
|
letterSpacing: 0,
|
|
302
|
+
wordSpacing: '-5px',
|
|
283
303
|
},
|
|
284
304
|
/* ========================================
|
|
285
305
|
* HEADLINE VARIANTS (PC/Desktop)
|
|
@@ -293,6 +313,7 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
293
313
|
fontWeight: 700,
|
|
294
314
|
lineHeight: '44px',
|
|
295
315
|
letterSpacing: 0,
|
|
316
|
+
wordSpacing: '-5px',
|
|
296
317
|
},
|
|
297
318
|
// Headline Medium (H2) - MetLife Circular Bold 22/26
|
|
298
319
|
headlineMedium: {
|
|
@@ -301,6 +322,7 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
301
322
|
fontWeight: 700,
|
|
302
323
|
lineHeight: '26px',
|
|
303
324
|
letterSpacing: 0,
|
|
325
|
+
wordSpacing: '-5px',
|
|
304
326
|
},
|
|
305
327
|
// Headline Small (H3) - MetLife Circular Bold 18/24
|
|
306
328
|
headlineSmall: {
|
|
@@ -309,6 +331,7 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
309
331
|
fontWeight: 700,
|
|
310
332
|
lineHeight: '24px',
|
|
311
333
|
letterSpacing: 0,
|
|
334
|
+
wordSpacing: '-5px',
|
|
312
335
|
},
|
|
313
336
|
/* ========================================
|
|
314
337
|
* TITLE VARIANTS (Mobile)
|
|
@@ -328,6 +351,7 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
328
351
|
fontWeight: 700,
|
|
329
352
|
lineHeight: '38px',
|
|
330
353
|
letterSpacing: 0,
|
|
354
|
+
wordSpacing: '-10px',
|
|
331
355
|
},
|
|
332
356
|
// Title Medium (H2) - MetLife Circular Bold 16/24
|
|
333
357
|
titleMedium: {
|
|
@@ -336,6 +360,7 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
336
360
|
fontWeight: 700,
|
|
337
361
|
lineHeight: '24px',
|
|
338
362
|
letterSpacing: 0,
|
|
363
|
+
wordSpacing: '-5px',
|
|
339
364
|
},
|
|
340
365
|
// Title Small (H3) - MetLife Circular Bold 14/20
|
|
341
366
|
titleSmall: {
|
|
@@ -344,12 +369,14 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
344
369
|
fontWeight: 700,
|
|
345
370
|
lineHeight: '20px',
|
|
346
371
|
letterSpacing: 0,
|
|
372
|
+
wordSpacing: '-5px',
|
|
347
373
|
}, titleTiny: {
|
|
348
374
|
fontSize: '10px',
|
|
349
375
|
fontStyle: 'normal',
|
|
350
376
|
fontWeight: 700,
|
|
351
377
|
lineHeight: '20px',
|
|
352
378
|
letterSpacing: 0,
|
|
379
|
+
wordSpacing: '-5px',
|
|
353
380
|
},
|
|
354
381
|
/* ========================================
|
|
355
382
|
* BODY STRONG VARIANTS
|
|
@@ -363,6 +390,7 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
363
390
|
fontWeight: 500,
|
|
364
391
|
lineHeight: '20px',
|
|
365
392
|
letterSpacing: 0,
|
|
393
|
+
wordSpacing: '-5px',
|
|
366
394
|
},
|
|
367
395
|
// Body Medium Strong - MetLife Circular Medium 14/18
|
|
368
396
|
bodyMediumStrong: {
|
|
@@ -371,6 +399,7 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
371
399
|
fontWeight: 500,
|
|
372
400
|
lineHeight: '18px',
|
|
373
401
|
letterSpacing: 0,
|
|
402
|
+
wordSpacing: '-5px',
|
|
374
403
|
},
|
|
375
404
|
// Body Small Strong - MetLife Circular Medium 12/16
|
|
376
405
|
bodySmallStrong: {
|
|
@@ -379,6 +408,7 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
379
408
|
fontWeight: 500,
|
|
380
409
|
lineHeight: '16px',
|
|
381
410
|
letterSpacing: 0,
|
|
411
|
+
wordSpacing: '-5px',
|
|
382
412
|
},
|
|
383
413
|
/* ========================================
|
|
384
414
|
* BODY VARIANTS
|
|
@@ -392,6 +422,7 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
392
422
|
fontWeight: 400,
|
|
393
423
|
lineHeight: '20px',
|
|
394
424
|
letterSpacing: 0,
|
|
425
|
+
wordSpacing: '-5px',
|
|
395
426
|
},
|
|
396
427
|
// Body Medium - MetLife Circular Normal 14/18
|
|
397
428
|
bodyMediumFigma: {
|
|
@@ -400,6 +431,7 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
400
431
|
fontWeight: 400,
|
|
401
432
|
lineHeight: '18px',
|
|
402
433
|
letterSpacing: 0,
|
|
434
|
+
wordSpacing: '-5px',
|
|
403
435
|
},
|
|
404
436
|
// Body Small - MetLife Circular Normal 12/16
|
|
405
437
|
bodySmallFigma: {
|
|
@@ -408,27 +440,32 @@ const ammetlifeTypography = Object.assign(Object.assign({}, iglooTypography), {
|
|
|
408
440
|
fontWeight: 400,
|
|
409
441
|
lineHeight: '16px',
|
|
410
442
|
letterSpacing: 0,
|
|
443
|
+
wordSpacing: '-5px',
|
|
411
444
|
}, bodyTinyFigma: {
|
|
412
445
|
fontSize: '9px',
|
|
413
446
|
fontStyle: 'normal',
|
|
414
447
|
fontWeight: 400,
|
|
415
448
|
lineHeight: 'normal',
|
|
416
449
|
letterSpacing: 0,
|
|
450
|
+
wordSpacing: '-5px',
|
|
417
451
|
}, textFieldMedium: {
|
|
418
452
|
fontSize: '14px',
|
|
419
453
|
fontStyle: 'normal',
|
|
420
454
|
fontWeight: 500,
|
|
421
455
|
lineHeight: '18px',
|
|
456
|
+
wordSpacing: '-5px',
|
|
422
457
|
}, textFieldNormal: {
|
|
423
458
|
fontSize: '12px',
|
|
424
459
|
fontStyle: 'normal',
|
|
425
460
|
fontWeight: 400,
|
|
426
461
|
lineHeight: '16px',
|
|
462
|
+
wordSpacing: '-5px',
|
|
427
463
|
}, optionButton: {
|
|
428
464
|
fontSize: '14px',
|
|
429
465
|
fontStyle: 'normal',
|
|
430
466
|
fontWeight: 700,
|
|
431
467
|
lineHeight: '20px',
|
|
468
|
+
wordSpacing: '-5px',
|
|
432
469
|
} });
|
|
433
470
|
/**
|
|
434
471
|
* Typography Registry
|
|
@@ -853,11 +890,12 @@ function Banner(_a) {
|
|
|
853
890
|
* Design Specifications:
|
|
854
891
|
* - Header height: 80px
|
|
855
892
|
* - Background: white (#ffffff)
|
|
856
|
-
* - Content
|
|
857
|
-
* - Logo
|
|
858
|
-
* - Gap between
|
|
859
|
-
* - Menu text: MetLife Circular Bold, 18px, #13131B
|
|
860
|
-
* -
|
|
893
|
+
* - Content padding: 156px horizontal on 1440px viewport
|
|
894
|
+
* - Logo dimensions: 126px × 16px
|
|
895
|
+
* - Gap between menu items: 32px
|
|
896
|
+
* - Menu text: MetLife Circular Bold, 18px, #13131B, line-height 24px
|
|
897
|
+
* - CTA Button: Filled, #0090da, border-radius 24px, height 48px
|
|
898
|
+
* - CTA text: MetLife Circular Medium, 16px, white, line-height 20px
|
|
861
899
|
*/
|
|
862
900
|
/**
|
|
863
901
|
* Design System Colors (from Figma node 1581-22604)
|
|
@@ -875,7 +913,7 @@ const designColors = {
|
|
|
875
913
|
* Main AppBar container
|
|
876
914
|
* Height: 80px, white background, centered content
|
|
877
915
|
*/
|
|
878
|
-
const StyledAppBar$2 = styles.styled(AppBar)((
|
|
916
|
+
const StyledAppBar$2 = styles.styled(AppBar)(() => ({
|
|
879
917
|
backgroundColor: designColors.natural.light00,
|
|
880
918
|
boxShadow: 'none',
|
|
881
919
|
position: 'fixed',
|
|
@@ -905,13 +943,12 @@ const HeaderContainer$1 = styles.styled(material.Box)(({ theme }) => ({
|
|
|
905
943
|
},
|
|
906
944
|
}));
|
|
907
945
|
/**
|
|
908
|
-
* Left section containing logo
|
|
909
|
-
*
|
|
946
|
+
* Left section containing logo only
|
|
947
|
+
* Per Figma: Logo on left side of header
|
|
910
948
|
*/
|
|
911
949
|
const LeftSection = styles.styled(material.Box)({
|
|
912
950
|
display: 'flex',
|
|
913
951
|
alignItems: 'center',
|
|
914
|
-
gap: '32px',
|
|
915
952
|
height: '100%',
|
|
916
953
|
});
|
|
917
954
|
/**
|
|
@@ -926,11 +963,11 @@ const LogoContainer$2 = styles.styled(material.Box)({
|
|
|
926
963
|
});
|
|
927
964
|
/**
|
|
928
965
|
* Logo image
|
|
929
|
-
* Width: 126px, height: 16px (per Figma)
|
|
966
|
+
* Width: 126px, height: 16px (per Figma node 1328:28463)
|
|
930
967
|
*/
|
|
931
968
|
const LogoImage$1 = styles.styled('img')({
|
|
932
|
-
width: '
|
|
933
|
-
height: '
|
|
969
|
+
width: '126px',
|
|
970
|
+
height: '16px',
|
|
934
971
|
objectFit: 'contain',
|
|
935
972
|
});
|
|
936
973
|
/**
|
|
@@ -948,7 +985,7 @@ styles.styled(material.Box)({
|
|
|
948
985
|
* Font: MetLife Circular Bold, 18px, color: #13131B
|
|
949
986
|
* Padding: 10px horizontal (creates visual spacing between items)
|
|
950
987
|
*/
|
|
951
|
-
const MenuItemButton = styles.styled(material.Button)((
|
|
988
|
+
const MenuItemButton = styles.styled(material.Button)(() => ({
|
|
952
989
|
display: 'flex',
|
|
953
990
|
alignItems: 'center',
|
|
954
991
|
gap: '8px',
|
|
@@ -962,6 +999,7 @@ const MenuItemButton = styles.styled(material.Button)(({ theme }) => ({
|
|
|
962
999
|
fontSize: '18px',
|
|
963
1000
|
lineHeight: '24px',
|
|
964
1001
|
letterSpacing: '0px',
|
|
1002
|
+
wordSpacing: '-5px',
|
|
965
1003
|
borderRadius: 0,
|
|
966
1004
|
'&:hover': {
|
|
967
1005
|
backgroundColor: 'transparent',
|
|
@@ -978,6 +1016,7 @@ const MenuItemText = styles.styled(material.Typography)({
|
|
|
978
1016
|
fontSize: '18px',
|
|
979
1017
|
lineHeight: '24px',
|
|
980
1018
|
letterSpacing: '0px',
|
|
1019
|
+
wordSpacing: '-5px',
|
|
981
1020
|
color: 'inherit',
|
|
982
1021
|
});
|
|
983
1022
|
/**
|
|
@@ -990,19 +1029,22 @@ const DropdownIcon = styles.styled(ArrowDropDownIcon)({
|
|
|
990
1029
|
color: designColors.natural.dim100,
|
|
991
1030
|
});
|
|
992
1031
|
/**
|
|
993
|
-
* Right section containing
|
|
1032
|
+
* Right section containing menu items and CTA button
|
|
1033
|
+
* Gap: 32px between menu items (per Figma node 3506:35611)
|
|
994
1034
|
*/
|
|
995
1035
|
const RightSection = styles.styled(material.Box)({
|
|
996
1036
|
display: 'flex',
|
|
997
1037
|
alignItems: 'center',
|
|
1038
|
+
gap: '32px',
|
|
998
1039
|
height: '100%',
|
|
999
1040
|
});
|
|
1000
1041
|
/**
|
|
1001
|
-
* Login button (text style)
|
|
1042
|
+
* Login button (text style) - DEPRECATED
|
|
1043
|
+
* @deprecated Use PurchaseButton instead
|
|
1002
1044
|
* Based on Figma: Style=Text, State=enabled, Show Icon=False
|
|
1003
1045
|
* Color: #0090da (primary blue/teal)
|
|
1004
1046
|
*/
|
|
1005
|
-
|
|
1047
|
+
styles.styled(material.Button)(() => ({
|
|
1006
1048
|
display: 'flex',
|
|
1007
1049
|
alignItems: 'center',
|
|
1008
1050
|
padding: '0 10px',
|
|
@@ -1015,6 +1057,7 @@ const LoginButton = styles.styled(material.Button)(({ theme }) => ({
|
|
|
1015
1057
|
fontSize: '18px',
|
|
1016
1058
|
lineHeight: '24px',
|
|
1017
1059
|
letterSpacing: '0px',
|
|
1060
|
+
wordSpacing: '-5px',
|
|
1018
1061
|
borderRadius: 0,
|
|
1019
1062
|
backgroundColor: 'transparent',
|
|
1020
1063
|
'&:hover': {
|
|
@@ -1022,10 +1065,41 @@ const LoginButton = styles.styled(material.Button)(({ theme }) => ({
|
|
|
1022
1065
|
textDecoration: 'underline',
|
|
1023
1066
|
},
|
|
1024
1067
|
}));
|
|
1068
|
+
/**
|
|
1069
|
+
* Purchase Now CTA Button (filled style)
|
|
1070
|
+
* Based on Figma: Style=Filled, State=Enabled (node 3506:36976)
|
|
1071
|
+
* Background: #0090da, border-radius: 24px, height: 48px
|
|
1072
|
+
* Text: MetLife Circular Medium, 16px, white, line-height 20px
|
|
1073
|
+
*/
|
|
1074
|
+
const PurchaseButton = styles.styled(material.Button)(() => ({
|
|
1075
|
+
display: 'flex',
|
|
1076
|
+
alignItems: 'center',
|
|
1077
|
+
justifyContent: 'center',
|
|
1078
|
+
padding: '10px 24px',
|
|
1079
|
+
height: '48px',
|
|
1080
|
+
minWidth: 'auto',
|
|
1081
|
+
textTransform: 'none',
|
|
1082
|
+
color: designColors.natural.light00,
|
|
1083
|
+
backgroundColor: designColors.primary.main60,
|
|
1084
|
+
fontFamily: '"MetLifeCircular", "Montserrat", "Roboto", "Helvetica", "Arial", sans-serif',
|
|
1085
|
+
fontWeight: 500,
|
|
1086
|
+
fontSize: '16px',
|
|
1087
|
+
lineHeight: '20px',
|
|
1088
|
+
letterSpacing: '0px',
|
|
1089
|
+
wordSpacing: '-5px',
|
|
1090
|
+
borderRadius: '24px',
|
|
1091
|
+
whiteSpace: 'nowrap',
|
|
1092
|
+
'&:hover': {
|
|
1093
|
+
backgroundColor: '#007bb8',
|
|
1094
|
+
},
|
|
1095
|
+
'&:active': {
|
|
1096
|
+
backgroundColor: '#006a9e',
|
|
1097
|
+
},
|
|
1098
|
+
}));
|
|
1025
1099
|
/**
|
|
1026
1100
|
* Dropdown menu container
|
|
1027
1101
|
*/
|
|
1028
|
-
const StyledMenu$1 = styles.styled(material.Menu)((
|
|
1102
|
+
const StyledMenu$1 = styles.styled(material.Menu)(() => ({
|
|
1029
1103
|
'& .MuiPaper-root': {
|
|
1030
1104
|
borderRadius: '16px',
|
|
1031
1105
|
marginTop: '8px',
|
|
@@ -1036,7 +1110,7 @@ const StyledMenu$1 = styles.styled(material.Menu)(({ theme }) => ({
|
|
|
1036
1110
|
/**
|
|
1037
1111
|
* Dropdown menu item
|
|
1038
1112
|
*/
|
|
1039
|
-
const StyledMenuItem$1 = styles.styled(material.MenuItem)((
|
|
1113
|
+
const StyledMenuItem$1 = styles.styled(material.MenuItem)(() => ({
|
|
1040
1114
|
display: 'flex',
|
|
1041
1115
|
alignItems: 'center',
|
|
1042
1116
|
gap: '12px',
|
|
@@ -1045,6 +1119,7 @@ const StyledMenuItem$1 = styles.styled(material.MenuItem)(({ theme }) => ({
|
|
|
1045
1119
|
fontWeight: 500,
|
|
1046
1120
|
fontSize: '16px',
|
|
1047
1121
|
lineHeight: '24px',
|
|
1122
|
+
wordSpacing: '-5px',
|
|
1048
1123
|
color: designColors.natural.dim100,
|
|
1049
1124
|
'&:hover': {
|
|
1050
1125
|
backgroundColor: 'rgba(0, 144, 218, 0.08)',
|
|
@@ -1059,28 +1134,65 @@ const MenuItemIcon = styles.styled('img')({
|
|
|
1059
1134
|
objectFit: 'contain',
|
|
1060
1135
|
});
|
|
1061
1136
|
|
|
1137
|
+
/**
|
|
1138
|
+
* Smooth scroll utility function
|
|
1139
|
+
* Scrolls to a target element by ID with smooth behavior
|
|
1140
|
+
*/
|
|
1141
|
+
const scrollToElement = (targetId, offset = 80) => {
|
|
1142
|
+
const element = document.getElementById(targetId);
|
|
1143
|
+
if (element) {
|
|
1144
|
+
const elementPosition = element.getBoundingClientRect().top;
|
|
1145
|
+
const offsetPosition = elementPosition + window.pageYOffset - offset;
|
|
1146
|
+
window.scrollTo({
|
|
1147
|
+
top: offsetPosition,
|
|
1148
|
+
behavior: 'smooth',
|
|
1149
|
+
});
|
|
1150
|
+
}
|
|
1151
|
+
};
|
|
1062
1152
|
/**
|
|
1063
1153
|
* DesktopHeaderMenuBar Component
|
|
1064
1154
|
*
|
|
1065
|
-
* A
|
|
1155
|
+
* A desktop header with logo on left, navigation menu items and CTA button on right.
|
|
1156
|
+
* Supports scroll-to-section interactions for menu items.
|
|
1066
1157
|
*
|
|
1067
1158
|
* @param logo - Logo image source URL
|
|
1068
1159
|
* @param logoAlt - Alt text for the logo image
|
|
1069
1160
|
* @param menuItems - Array of menu items to display
|
|
1070
|
-
* @param
|
|
1071
|
-
* @param
|
|
1161
|
+
* @param showCtaButton - Whether to show the CTA button (default: true)
|
|
1162
|
+
* @param ctaButtonText - Text for the CTA button (default: 'Purchase Now')
|
|
1163
|
+
* @param onCtaClick - Handler for CTA button click
|
|
1164
|
+
* @param ctaScrollTargetId - Target element ID for CTA scroll action
|
|
1165
|
+
* @param onScrollToSection - Callback when menu item triggers scroll
|
|
1072
1166
|
* @param onLogoClick - Handler for logo click
|
|
1073
|
-
* @param onLoginClick - Handler for login button click
|
|
1074
1167
|
* @param formatMessage - i18n function for translations
|
|
1075
1168
|
*/
|
|
1076
|
-
function DesktopHeaderMenuBar({ logo, logoAlt = 'Logo', menuItems,
|
|
1077
|
-
|
|
1169
|
+
function DesktopHeaderMenuBar({ logo, logoAlt = 'Logo', menuItems,
|
|
1170
|
+
// Legacy props (deprecated)
|
|
1171
|
+
showLoginButton, loginButtonText, onLoginClick,
|
|
1172
|
+
// New CTA props
|
|
1173
|
+
showCtaButton = true, ctaButtonText = 'Purchase Now', onCtaClick, ctaScrollTargetId, onScrollToSection, onLogoClick, formatMessage = (descriptor) => descriptor.id, className, }) {
|
|
1174
|
+
var _a;
|
|
1175
|
+
// Track which dropdown is currently open (for backward compatibility)
|
|
1078
1176
|
const [openMenuKey, setOpenMenuKey] = React__namespace.useState(null);
|
|
1079
1177
|
const [anchorEl, setAnchorEl] = React__namespace.useState(null);
|
|
1178
|
+
// Determine which button props to use (support legacy props)
|
|
1179
|
+
const shouldShowCtaButton = (_a = showCtaButton !== null && showCtaButton !== void 0 ? showCtaButton : showLoginButton) !== null && _a !== void 0 ? _a : true;
|
|
1180
|
+
const ctaText = ctaButtonText || loginButtonText || 'Purchase Now';
|
|
1181
|
+
const handleCtaClick = onCtaClick || onLoginClick;
|
|
1080
1182
|
const handleMenuClick = (event, item) => {
|
|
1081
1183
|
var _a;
|
|
1184
|
+
// Handle scroll-to-section behavior
|
|
1185
|
+
if (item.scrollTargetId) {
|
|
1186
|
+
if (onScrollToSection) {
|
|
1187
|
+
onScrollToSection(item.scrollTargetId, item.scrollTargetProductCode);
|
|
1188
|
+
}
|
|
1189
|
+
else {
|
|
1190
|
+
scrollToElement(item.scrollTargetId);
|
|
1191
|
+
}
|
|
1192
|
+
return;
|
|
1193
|
+
}
|
|
1194
|
+
// Handle dropdown behavior (backward compatibility)
|
|
1082
1195
|
if (item.hasDropdown && item.subItems && item.subItems.length > 0) {
|
|
1083
|
-
// Toggle dropdown
|
|
1084
1196
|
if (openMenuKey === item.key) {
|
|
1085
1197
|
handleCloseMenu();
|
|
1086
1198
|
}
|
|
@@ -1110,7 +1222,18 @@ function DesktopHeaderMenuBar({ logo, logoAlt = 'Logo', menuItems, showLoginButt
|
|
|
1110
1222
|
e.preventDefault();
|
|
1111
1223
|
onLogoClick === null || onLogoClick === void 0 ? void 0 : onLogoClick();
|
|
1112
1224
|
};
|
|
1113
|
-
|
|
1225
|
+
const handleCtaButtonClick = () => {
|
|
1226
|
+
if (ctaScrollTargetId) {
|
|
1227
|
+
if (onScrollToSection) {
|
|
1228
|
+
onScrollToSection(ctaScrollTargetId);
|
|
1229
|
+
}
|
|
1230
|
+
else {
|
|
1231
|
+
scrollToElement(ctaScrollTargetId);
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
handleCtaClick === null || handleCtaClick === void 0 ? void 0 : handleCtaClick();
|
|
1235
|
+
};
|
|
1236
|
+
return (jsxRuntime.jsx(StyledAppBar$2, Object.assign({ className: className }, { children: jsxRuntime.jsxs(HeaderContainer$1, { children: [jsxRuntime.jsx(LeftSection, { children: jsxRuntime.jsx(LogoContainer$2, Object.assign({ onClick: handleLogoClick }, { children: jsxRuntime.jsx(LogoImage$1, { src: logo, alt: logoAlt }) })) }), jsxRuntime.jsxs(RightSection, { children: [menuItems.map((item) => (jsxRuntime.jsxs(React__namespace.Fragment, { children: [jsxRuntime.jsxs(MenuItemButton, Object.assign({ onClick: (e) => handleMenuClick(e, item), "aria-haspopup": item.hasDropdown ? 'true' : undefined, "aria-expanded": item.hasDropdown ? openMenuKey === item.key : undefined, "data-testid": `menu-item-${item.key}` }, { children: [jsxRuntime.jsx(MenuItemText, { children: formatMessage({ id: item.label }) }), item.hasDropdown && jsxRuntime.jsx(DropdownIcon, {})] })), item.hasDropdown && item.subItems && (jsxRuntime.jsx(StyledMenu$1, Object.assign({ id: `menu-${item.key}`, anchorEl: anchorEl, open: openMenuKey === item.key, onClose: handleCloseMenu, anchorOrigin: {
|
|
1114
1237
|
vertical: 'bottom',
|
|
1115
1238
|
horizontal: 'left',
|
|
1116
1239
|
}, transformOrigin: {
|
|
@@ -1118,7 +1241,7 @@ function DesktopHeaderMenuBar({ logo, logoAlt = 'Logo', menuItems, showLoginButt
|
|
|
1118
1241
|
horizontal: 'left',
|
|
1119
1242
|
}, MenuListProps: {
|
|
1120
1243
|
'aria-labelledby': `menu-button-${item.key}`,
|
|
1121
|
-
} }, { children: item.subItems.map((subItem) => (jsxRuntime.jsxs(StyledMenuItem$1, Object.assign({ onClick: () => handleSubItemClick(item, subItem.key), "data-testid": `submenu-item-${subItem.key}` }, { children: [subItem.icon && (jsxRuntime.jsx(MenuItemIcon, { src: subItem.icon, alt: subItem.label })), formatMessage({ id: subItem.label })] }), subItem.key))) })))] }, item.key)))
|
|
1244
|
+
} }, { children: item.subItems.map((subItem) => (jsxRuntime.jsxs(StyledMenuItem$1, Object.assign({ onClick: () => handleSubItemClick(item, subItem.key), "data-testid": `submenu-item-${subItem.key}` }, { children: [subItem.icon && (jsxRuntime.jsx(MenuItemIcon, { src: subItem.icon, alt: subItem.label })), formatMessage({ id: subItem.label })] }), subItem.key))) })))] }, item.key))), shouldShowCtaButton && (jsxRuntime.jsx(PurchaseButton, Object.assign({ onClick: handleCtaButtonClick, "data-testid": "header-cta-button" }, { children: formatMessage({ id: ctaText }) })))] })] }) })));
|
|
1122
1245
|
}
|
|
1123
1246
|
|
|
1124
1247
|
const StyledAppBar$1 = styles.styled(AppBar)(({ theme, ispartnershippagemobileview, scrolled }) => {
|
|
@@ -1484,7 +1607,7 @@ const TypographyBtnText = styles.styled(material.Typography)(({ theme }) => {
|
|
|
1484
1607
|
* />
|
|
1485
1608
|
* ```
|
|
1486
1609
|
*/
|
|
1487
|
-
function Header$1({ logo, alternateLogo, showAlternateLogo = false, navigationLinks, languages, currentLocale, currentLang, userToken, userFirstName, isMobile: propIsMobile, scrolled = false, isPartnershipPageMobileView = false, isPartnershipPagePCView = false, isSeoPageView = false, showGetQuoteButton = false, bannerData, ctaData, host = '', welcomeMessage, formatMessage = (descriptor) => descriptor.id, menuItems, userProfileComponent, onLogoClick, onProductMenuClick, onLanguageChange, onLoginClick, onSignupClick, onLogoutClick, onPartnershipClick, onAboutUsClick, onBlogClick, onMyProfileClick, onGetQuoteClick, onPartnershipCTAClick, useNewDesktopLayout = false, desktopMenuItems = [], }) {
|
|
1610
|
+
function Header$1({ logo, alternateLogo, showAlternateLogo = false, navigationLinks, languages, currentLocale, currentLang, userToken, userFirstName, isMobile: propIsMobile, scrolled = false, isPartnershipPageMobileView = false, isPartnershipPagePCView = false, isSeoPageView = false, showGetQuoteButton = false, bannerData, ctaData, host = '', welcomeMessage, formatMessage = (descriptor) => descriptor.id, menuItems, userProfileComponent, onLogoClick, onProductMenuClick, onLanguageChange, onLoginClick, onSignupClick, onLogoutClick, onPartnershipClick, onAboutUsClick, onBlogClick, onMyProfileClick, onGetQuoteClick, onPartnershipCTAClick, useNewDesktopLayout = false, desktopMenuItems = [], showCtaButton = true, ctaButtonText = 'Purchase Now', onCtaClick, ctaScrollTargetId, onScrollToSection, }) {
|
|
1488
1611
|
var _a, _b, _c;
|
|
1489
1612
|
const tenantTheme = useTenantTheme();
|
|
1490
1613
|
tenantTheme === null || tenantTheme === void 0 ? void 0 : tenantTheme.theme;
|
|
@@ -1531,12 +1654,14 @@ function Header$1({ logo, alternateLogo, showAlternateLogo = false, navigationLi
|
|
|
1531
1654
|
onClick: subItem.onClick,
|
|
1532
1655
|
})),
|
|
1533
1656
|
onClick: item.onClick,
|
|
1657
|
+
scrollTargetId: item.scrollTargetId,
|
|
1658
|
+
scrollTargetProductCode: item.scrollTargetProductCode,
|
|
1534
1659
|
});
|
|
1535
1660
|
});
|
|
1536
1661
|
// Render new desktop layout when enabled and on actual desktop viewport
|
|
1537
1662
|
// Uses isActuallyDesktop to avoid SSR/prop issues with isMobile detection
|
|
1538
1663
|
if (useNewDesktopLayout && isActuallyDesktop) {
|
|
1539
|
-
return (jsxRuntime.jsx(DesktopHeaderMenuBar, { logo: logo, logoAlt: "Logo", menuItems: convertedDesktopMenuItems,
|
|
1664
|
+
return (jsxRuntime.jsx(DesktopHeaderMenuBar, { logo: logo, logoAlt: "Logo", menuItems: convertedDesktopMenuItems, showCtaButton: showCtaButton, ctaButtonText: ctaButtonText, onCtaClick: onCtaClick, ctaScrollTargetId: ctaScrollTargetId, onScrollToSection: onScrollToSection, onLogoClick: onLogoClick, formatMessage: formatMessage }));
|
|
1540
1665
|
}
|
|
1541
1666
|
return (jsxRuntime.jsx(StyledAppBar$1, Object.assign({ ispartnershippagemobileview: isPartnershipPageMobileView, scrolled: scrolled }, { children: jsxRuntime.jsx(ResponsiveB2CLayout, { children: jsxRuntime.jsx(StyledContainer, Object.assign({ ispartnershippagemobileview: isPartnershipPageMobileView, scrolled: scrolled, maxWidth: "xl" }, { children: jsxRuntime.jsxs(material.Toolbar, Object.assign({ disableGutters: true }, { children: [jsxRuntime.jsx("a", Object.assign({ href: host || '#', onClick: (e) => {
|
|
1542
1667
|
e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
@@ -2015,6 +2140,7 @@ const TitleText = styles.styled(material.Typography)(({ theme }) => ({
|
|
|
2015
2140
|
fontWeight: 700,
|
|
2016
2141
|
fontSize: '28px',
|
|
2017
2142
|
lineHeight: '28px',
|
|
2143
|
+
wordSpacing: '-5px',
|
|
2018
2144
|
color: '#13131B',
|
|
2019
2145
|
[theme.breakpoints.down('md')]: {
|
|
2020
2146
|
fontSize: '20px',
|
|
@@ -2025,6 +2151,7 @@ const SubtitleText = styles.styled(material.Typography)(({ theme }) => ({
|
|
|
2025
2151
|
fontWeight: 400,
|
|
2026
2152
|
fontSize: '14px',
|
|
2027
2153
|
lineHeight: '18px',
|
|
2154
|
+
wordSpacing: '-5px',
|
|
2028
2155
|
color: '#5F5E62',
|
|
2029
2156
|
}));
|
|
2030
2157
|
const FooterButtons = styles.styled(material.Box)(({ theme }) => ({
|
|
@@ -2042,6 +2169,7 @@ const PrimaryButton = styles.styled(material.Button)(({ theme }) => ({
|
|
|
2042
2169
|
fontWeight: 500,
|
|
2043
2170
|
fontSize: '14px',
|
|
2044
2171
|
lineHeight: '18px',
|
|
2172
|
+
wordSpacing: '-5px',
|
|
2045
2173
|
'&:disabled': {
|
|
2046
2174
|
backgroundColor: '#C8C5CA',
|
|
2047
2175
|
color: '#FFFFFF',
|
|
@@ -2054,6 +2182,7 @@ const SecondaryButton = styles.styled(material.Button)(({ theme }) => ({
|
|
|
2054
2182
|
fontWeight: 500,
|
|
2055
2183
|
fontSize: '14px',
|
|
2056
2184
|
lineHeight: '18px',
|
|
2185
|
+
wordSpacing: '-5px',
|
|
2057
2186
|
}));
|
|
2058
2187
|
|
|
2059
2188
|
/**
|
|
@@ -2162,6 +2291,7 @@ const HeaderTitle = material.styled(material.Typography)({
|
|
|
2162
2291
|
fontSize: '20px',
|
|
2163
2292
|
fontWeight: 700,
|
|
2164
2293
|
lineHeight: '28px',
|
|
2294
|
+
wordSpacing: '-5px',
|
|
2165
2295
|
color: '#13131b',
|
|
2166
2296
|
});
|
|
2167
2297
|
const HeaderSubtitle = material.styled(material.Typography)({
|
|
@@ -2169,6 +2299,7 @@ const HeaderSubtitle = material.styled(material.Typography)({
|
|
|
2169
2299
|
fontSize: '14px',
|
|
2170
2300
|
fontWeight: 400,
|
|
2171
2301
|
lineHeight: '18px',
|
|
2302
|
+
wordSpacing: '-5px',
|
|
2172
2303
|
color: 'rgba(0, 0, 0, 0.6)',
|
|
2173
2304
|
});
|
|
2174
2305
|
const ProductsContainer = material.styled(material.Box)({
|
|
@@ -2209,6 +2340,7 @@ const ProductName$1 = material.styled(material.Typography)({
|
|
|
2209
2340
|
fontSize: '14px',
|
|
2210
2341
|
fontWeight: 700,
|
|
2211
2342
|
lineHeight: '22px',
|
|
2343
|
+
wordSpacing: '-5px',
|
|
2212
2344
|
color: '#13131b',
|
|
2213
2345
|
textAlign: 'center',
|
|
2214
2346
|
});
|
|
@@ -2217,6 +2349,7 @@ const ProductType = material.styled(material.Typography)({
|
|
|
2217
2349
|
fontSize: '12px',
|
|
2218
2350
|
fontWeight: 400,
|
|
2219
2351
|
lineHeight: '16px',
|
|
2352
|
+
wordSpacing: '-5px',
|
|
2220
2353
|
color: '#13131b',
|
|
2221
2354
|
textAlign: 'center',
|
|
2222
2355
|
});
|
|
@@ -2230,6 +2363,7 @@ const ViewPlansButton = material.styled(material.Button)({
|
|
|
2230
2363
|
fontSize: '14px',
|
|
2231
2364
|
fontWeight: 500,
|
|
2232
2365
|
lineHeight: '18px',
|
|
2366
|
+
wordSpacing: '-5px',
|
|
2233
2367
|
});
|
|
2234
2368
|
|
|
2235
2369
|
function ProductSelectionDrawer({ open, onClose, products, onProductSelect, title = 'Select your product', subtitle = 'Pick the product that suits your protection goals to view available plans', viewPlansButtonText = 'View plans', }) {
|
|
@@ -2272,6 +2406,7 @@ const QuestionTitle = styles.styled(material.Typography)(({ theme }) => ({
|
|
|
2272
2406
|
fontWeight: 700,
|
|
2273
2407
|
fontSize: '18px',
|
|
2274
2408
|
lineHeight: '24px',
|
|
2409
|
+
wordSpacing: '-5px',
|
|
2275
2410
|
color: '#13131B',
|
|
2276
2411
|
[theme.breakpoints.down('md')]: {
|
|
2277
2412
|
fontSize: '14px',
|
|
@@ -2282,6 +2417,7 @@ const QuestionSubtext = styles.styled(material.Typography)(({ theme }) => ({
|
|
|
2282
2417
|
fontWeight: 400,
|
|
2283
2418
|
fontSize: '16px',
|
|
2284
2419
|
lineHeight: '20px',
|
|
2420
|
+
wordSpacing: '-5px',
|
|
2285
2421
|
color: '#5F5E62',
|
|
2286
2422
|
[theme.breakpoints.down('md')]: {
|
|
2287
2423
|
fontSize: '12px',
|
|
@@ -2410,6 +2546,7 @@ const OptionLabel = styles.styled(material.Typography)(({ theme, selected, color
|
|
|
2410
2546
|
fontWeight: selected ? 700 : 500,
|
|
2411
2547
|
fontSize: '14px',
|
|
2412
2548
|
lineHeight: '20px',
|
|
2549
|
+
wordSpacing: '-5px',
|
|
2413
2550
|
color: selected ? '#0090DA' : colors.unselectedText,
|
|
2414
2551
|
textAlign: 'center',
|
|
2415
2552
|
fontFamily: '"MetLifeCircular", "Montserrat", sans-serif',
|
|
@@ -2489,6 +2626,7 @@ const ToggleLabel = styles.styled(material.Typography)(({ theme, selected }) =>
|
|
|
2489
2626
|
fontWeight: 600,
|
|
2490
2627
|
fontSize: '14px',
|
|
2491
2628
|
lineHeight: '20px',
|
|
2629
|
+
wordSpacing: '-5px',
|
|
2492
2630
|
color: selected ? '#FEFBFF' : '#5F5E62',
|
|
2493
2631
|
whiteSpace: 'nowrap',
|
|
2494
2632
|
}));
|
|
@@ -2637,6 +2775,7 @@ const ToggleText = styles.styled(material.Typography)(({ theme }) => {
|
|
|
2637
2775
|
fontWeight: ((_d = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _d === void 0 ? void 0 : _d.fontWeightSemiBold) || 600,
|
|
2638
2776
|
lineHeight: ((_f = (_e = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _e === void 0 ? void 0 : _e.bodyMedium) === null || _f === void 0 ? void 0 : _f.lineHeight) || '20px',
|
|
2639
2777
|
whiteSpace: 'nowrap',
|
|
2778
|
+
wordSpacing: '-5px',
|
|
2640
2779
|
});
|
|
2641
2780
|
});
|
|
2642
2781
|
|
|
@@ -2715,6 +2854,7 @@ const CalloutTitle = styles.styled(material.Typography)(({ theme }) => {
|
|
|
2715
2854
|
fontSize: ((_c = (_b = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _b === void 0 ? void 0 : _b.bodyMedium) === null || _c === void 0 ? void 0 : _c.fontSize) || '16px',
|
|
2716
2855
|
fontWeight: ((_d = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _d === void 0 ? void 0 : _d.fontWeightSemiBold) || 700,
|
|
2717
2856
|
lineHeight: ((_f = (_e = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _e === void 0 ? void 0 : _e.bodyMedium) === null || _f === void 0 ? void 0 : _f.lineHeight) || '20px',
|
|
2857
|
+
wordSpacing: '-5px',
|
|
2718
2858
|
color: ((_h = (_g = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _g === void 0 ? void 0 : _g.natural) === null || _h === void 0 ? void 0 : _h.dim) || '#13131b',
|
|
2719
2859
|
[theme.breakpoints.down('md')]: {
|
|
2720
2860
|
fontSize: '14px',
|
|
@@ -2730,6 +2870,7 @@ const CalloutText = styles.styled(material.Typography)(({ theme }) => {
|
|
|
2730
2870
|
fontSize: ((_c = (_b = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _b === void 0 ? void 0 : _b.bodySmall) === null || _c === void 0 ? void 0 : _c.fontSize) || '14px',
|
|
2731
2871
|
fontWeight: ((_e = (_d = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _d === void 0 ? void 0 : _d.bodySmall) === null || _e === void 0 ? void 0 : _e.fontWeight) || 400,
|
|
2732
2872
|
lineHeight: ((_g = (_f = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _f === void 0 ? void 0 : _f.bodySmall) === null || _g === void 0 ? void 0 : _g.lineHeight) || '16px',
|
|
2873
|
+
wordSpacing: '-5px',
|
|
2733
2874
|
color: ((_j = (_h = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _h === void 0 ? void 0 : _h.natural) === null || _j === void 0 ? void 0 : _j.dark) || '#5f5e62',
|
|
2734
2875
|
[theme.breakpoints.down('md')]: {
|
|
2735
2876
|
fontSize: '12px',
|
|
@@ -2792,6 +2933,7 @@ const InputLabel = styles.styled(material.Typography)(({ theme }) => {
|
|
|
2792
2933
|
fontSize: ((_c = (_b = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _b === void 0 ? void 0 : _b.bodySmall) === null || _c === void 0 ? void 0 : _c.fontSize) || '12px',
|
|
2793
2934
|
fontWeight: ((_e = (_d = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _d === void 0 ? void 0 : _d.bodySmall) === null || _e === void 0 ? void 0 : _e.fontWeight) || 400,
|
|
2794
2935
|
lineHeight: ((_g = (_f = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _f === void 0 ? void 0 : _f.bodySmall) === null || _g === void 0 ? void 0 : _g.lineHeight) || '16px',
|
|
2936
|
+
wordSpacing: '-5px',
|
|
2795
2937
|
color: ((_j = (_h = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _h === void 0 ? void 0 : _h.natural) === null || _j === void 0 ? void 0 : _j.dim) || '#13131b',
|
|
2796
2938
|
});
|
|
2797
2939
|
});
|
|
@@ -2819,6 +2961,7 @@ const InputValue = styles.styled(material.Typography)(({ theme }) => {
|
|
|
2819
2961
|
fontSize: ((_c = (_b = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _b === void 0 ? void 0 : _b.bodyMedium) === null || _c === void 0 ? void 0 : _c.fontSize) || '14px',
|
|
2820
2962
|
fontWeight: ((_e = (_d = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _d === void 0 ? void 0 : _d.bodyMedium) === null || _e === void 0 ? void 0 : _e.fontWeight) || 400,
|
|
2821
2963
|
lineHeight: ((_g = (_f = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _f === void 0 ? void 0 : _f.bodyMedium) === null || _g === void 0 ? void 0 : _g.lineHeight) || '18px',
|
|
2964
|
+
wordSpacing: '-5px',
|
|
2822
2965
|
color: ((_j = (_h = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _h === void 0 ? void 0 : _h.natural) === null || _j === void 0 ? void 0 : _j.dim) || '#13131b',
|
|
2823
2966
|
textAlign: 'center',
|
|
2824
2967
|
flex: 1,
|
|
@@ -2907,6 +3050,7 @@ const RangeLabel = styles.styled(material.Typography)(({ theme }) => {
|
|
|
2907
3050
|
fontSize: ((_c = (_b = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _b === void 0 ? void 0 : _b.smallText) === null || _c === void 0 ? void 0 : _c.fontSize) || '8px',
|
|
2908
3051
|
fontWeight: ((_e = (_d = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _d === void 0 ? void 0 : _d.smallText) === null || _e === void 0 ? void 0 : _e.fontWeight) || 500,
|
|
2909
3052
|
lineHeight: ((_g = (_f = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _f === void 0 ? void 0 : _f.smallText) === null || _g === void 0 ? void 0 : _g.lineHeight) || '16px',
|
|
3053
|
+
wordSpacing: '-5px',
|
|
2910
3054
|
color: ((_j = (_h = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _h === void 0 ? void 0 : _h.natural) === null || _j === void 0 ? void 0 : _j.main) || '#929094',
|
|
2911
3055
|
});
|
|
2912
3056
|
});
|
|
@@ -3122,6 +3266,7 @@ const ProgressText = styles.styled(material.Typography)({
|
|
|
3122
3266
|
color: '#5F5E62',
|
|
3123
3267
|
fontWeight: 400,
|
|
3124
3268
|
lineHeight: '16px',
|
|
3269
|
+
wordSpacing: '-5px',
|
|
3125
3270
|
});
|
|
3126
3271
|
|
|
3127
3272
|
const CheckoutProgress = ({ currentStep, totalSteps, onBack, showBackButton = true, progressBarTheme, sx, }) => {
|
|
@@ -3164,12 +3309,14 @@ const ProductName = styles.styled(material.Typography)({
|
|
|
3164
3309
|
fontWeight: 600,
|
|
3165
3310
|
color: '#13131B',
|
|
3166
3311
|
lineHeight: '20px',
|
|
3312
|
+
wordSpacing: '-5px',
|
|
3167
3313
|
});
|
|
3168
3314
|
const PlanName = styles.styled(material.Typography)({
|
|
3169
3315
|
fontSize: '12px',
|
|
3170
3316
|
fontWeight: 400,
|
|
3171
3317
|
color: '#13131B',
|
|
3172
3318
|
lineHeight: '16px',
|
|
3319
|
+
wordSpacing: '-5px',
|
|
3173
3320
|
});
|
|
3174
3321
|
const PriceContainer = styles.styled(material.Box)({
|
|
3175
3322
|
display: 'flex',
|
|
@@ -3181,12 +3328,14 @@ const Price = styles.styled(material.Typography)({
|
|
|
3181
3328
|
fontWeight: 600,
|
|
3182
3329
|
color: '#13131B',
|
|
3183
3330
|
lineHeight: '20px',
|
|
3331
|
+
wordSpacing: '-5px',
|
|
3184
3332
|
});
|
|
3185
3333
|
const PricePeriod = styles.styled(material.Typography)({
|
|
3186
3334
|
fontSize: '12px',
|
|
3187
3335
|
fontWeight: 400,
|
|
3188
3336
|
color: '#13131B',
|
|
3189
3337
|
lineHeight: '16px',
|
|
3338
|
+
wordSpacing: '-5px',
|
|
3190
3339
|
});
|
|
3191
3340
|
|
|
3192
3341
|
const ProductCard = ({ productName, planName, logoUrl, price, currency = 'RM', period = '/month', sx, showIndicator = true, }) => {
|
|
@@ -3206,6 +3355,7 @@ const SectionTitle$2 = styles.styled(material.Typography)({
|
|
|
3206
3355
|
fontWeight: 700,
|
|
3207
3356
|
color: '#13131B',
|
|
3208
3357
|
lineHeight: '28px',
|
|
3358
|
+
wordSpacing: '-5px',
|
|
3209
3359
|
marginBottom: '8px',
|
|
3210
3360
|
});
|
|
3211
3361
|
const SectionDescription = styles.styled(material.Typography)({
|
|
@@ -3213,6 +3363,7 @@ const SectionDescription = styles.styled(material.Typography)({
|
|
|
3213
3363
|
fontWeight: 400,
|
|
3214
3364
|
color: '#5F5E62',
|
|
3215
3365
|
lineHeight: '18px',
|
|
3366
|
+
wordSpacing: '-5px',
|
|
3216
3367
|
});
|
|
3217
3368
|
|
|
3218
3369
|
const CheckoutHeader = ({ progress, product, sectionTitle, sectionDescription, sticky = true, progressBarTheme, sx, }) => {
|
|
@@ -3254,6 +3405,7 @@ const StyledButton = styles.styled('button')(({ isDisabled, desktopWidth }) => (
|
|
|
3254
3405
|
fontSize: '14px',
|
|
3255
3406
|
fontWeight: 500,
|
|
3256
3407
|
lineHeight: '18px',
|
|
3408
|
+
wordSpacing: '-5px',
|
|
3257
3409
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
3258
3410
|
transition: 'all 0.2s ease',
|
|
3259
3411
|
'&:hover': {
|
|
@@ -3284,6 +3436,7 @@ const QuestionText = styles.styled(material.Typography)({
|
|
|
3284
3436
|
fontWeight: 400,
|
|
3285
3437
|
color: '#13131B',
|
|
3286
3438
|
lineHeight: '24px',
|
|
3439
|
+
wordSpacing: '-5px',
|
|
3287
3440
|
fontFamily: '"MetLifeCircular", "Montserrat", sans-serif',
|
|
3288
3441
|
});
|
|
3289
3442
|
const OptionsContainer = styles.styled(material.Box)({
|
|
@@ -3314,6 +3467,7 @@ styles.styled(material.Typography)(({ selected }) => ({
|
|
|
3314
3467
|
fontWeight: 600,
|
|
3315
3468
|
color: selected ? '#13131B' : '#5F5E62',
|
|
3316
3469
|
lineHeight: '20px',
|
|
3470
|
+
wordSpacing: '-5px',
|
|
3317
3471
|
}));
|
|
3318
3472
|
|
|
3319
3473
|
const HealthQuestionGroup = ({ question, questionNumber, value, onChange, error, labels = { yes: 'Yes', no: 'No' }, sx, }) => {
|
|
@@ -3377,6 +3531,7 @@ const CheckboxLabel$1 = styles.styled(material.Typography)({
|
|
|
3377
3531
|
fontWeight: 400,
|
|
3378
3532
|
color: '#5F5E62',
|
|
3379
3533
|
lineHeight: '18px',
|
|
3534
|
+
wordSpacing: '-5px',
|
|
3380
3535
|
});
|
|
3381
3536
|
|
|
3382
3537
|
const PersonalInformationForm = ({ renderField, fields, consents, onSubmit, formRef, sx, desktopGridLayout = false, }) => {
|
|
@@ -3464,12 +3619,14 @@ const CheckboxLabel = styles.styled(material.Typography)({
|
|
|
3464
3619
|
fontWeight: 400,
|
|
3465
3620
|
color: '#5F5E62',
|
|
3466
3621
|
lineHeight: '18px',
|
|
3622
|
+
wordSpacing: '-5px',
|
|
3467
3623
|
});
|
|
3468
3624
|
const SectionTitle$1 = styles.styled(material.Typography)({
|
|
3469
3625
|
fontSize: '16px',
|
|
3470
3626
|
fontWeight: 600,
|
|
3471
3627
|
color: '#13131B',
|
|
3472
3628
|
lineHeight: '24px',
|
|
3629
|
+
wordSpacing: '-5px',
|
|
3473
3630
|
});
|
|
3474
3631
|
|
|
3475
3632
|
const ContactDetailsForm = ({ renderField, fields, mailingFields, mailingAddressSame, onSubmit, formRef, sx, desktopGridLayout = false, }) => {
|
|
@@ -3650,6 +3807,7 @@ const FAQTitle = material.styled(material.Typography)(({ theme }) => ({
|
|
|
3650
3807
|
fontWeight: 700,
|
|
3651
3808
|
fontSize: '20px',
|
|
3652
3809
|
lineHeight: '28px',
|
|
3810
|
+
wordSpacing: '-5px',
|
|
3653
3811
|
textAlign: 'center',
|
|
3654
3812
|
width: '100%',
|
|
3655
3813
|
margin: 0,
|
|
@@ -3693,6 +3851,7 @@ const FAQQuestion = material.styled(material.Typography)(({ theme }) => ({
|
|
|
3693
3851
|
fontWeight: 700,
|
|
3694
3852
|
fontSize: '14px',
|
|
3695
3853
|
lineHeight: '20px',
|
|
3854
|
+
wordSpacing: '-5px',
|
|
3696
3855
|
flex: 1,
|
|
3697
3856
|
[theme.breakpoints.up('md')]: {
|
|
3698
3857
|
fontSize: '15px',
|
|
@@ -3703,6 +3862,7 @@ const StyledAccordionDetails = material.styled(material.AccordionDetails)(({ the
|
|
|
3703
3862
|
fontWeight: 400,
|
|
3704
3863
|
fontSize: '14px',
|
|
3705
3864
|
lineHeight: '20px',
|
|
3865
|
+
wordSpacing: '-5px',
|
|
3706
3866
|
padding: '0 0 16px 0',
|
|
3707
3867
|
[theme.breakpoints.up('md')]: {
|
|
3708
3868
|
fontSize: '15px',
|
|
@@ -3770,6 +3930,7 @@ const SectionContainer = material.styled(material.Box)(({ theme }) => ({
|
|
|
3770
3930
|
const SectionTitle = material.styled(material.Typography)(({ theme }) => ({
|
|
3771
3931
|
fontWeight: 700,
|
|
3772
3932
|
fontSize: '20px',
|
|
3933
|
+
wordSpacing: '-5px',
|
|
3773
3934
|
lineHeight: '28px',
|
|
3774
3935
|
textAlign: 'center',
|
|
3775
3936
|
width: '100%',
|
|
@@ -3813,6 +3974,7 @@ const BenefitTitle = material.styled(material.Typography)(({ theme }) => ({
|
|
|
3813
3974
|
fontWeight: 700,
|
|
3814
3975
|
fontSize: '14px',
|
|
3815
3976
|
lineHeight: '20px',
|
|
3977
|
+
wordSpacing: '-5px',
|
|
3816
3978
|
margin: 0,
|
|
3817
3979
|
[theme.breakpoints.up('md')]: {
|
|
3818
3980
|
fontSize: '18px',
|
|
@@ -3823,6 +3985,7 @@ const BenefitDescription = material.styled(material.Typography)(({ theme }) => (
|
|
|
3823
3985
|
fontWeight: 400,
|
|
3824
3986
|
fontSize: '14px',
|
|
3825
3987
|
lineHeight: '18px',
|
|
3988
|
+
wordSpacing: '-5px',
|
|
3826
3989
|
margin: 0,
|
|
3827
3990
|
[theme.breakpoints.up('md')]: {
|
|
3828
3991
|
fontSize: '16px',
|