@hero-design/rn 8.91.3 → 8.91.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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +27 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +433 -450
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +433 -450
- package/package.json +1 -1
- package/src/components/Alert/StyledAlert.tsx +1 -0
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +56 -0
- package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +18 -18
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +8 -10
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +116 -145
- package/src/components/Avatar/StyledAvatar.tsx +1 -1
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +4 -5
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +8 -10
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +3 -5
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +6 -4
- package/src/components/BottomSheet/StyledBottomSheet.tsx +0 -10
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +0 -16
- package/src/components/Calendar/CalendarRange.tsx +5 -1
- package/src/components/Calendar/__tests__/helper.spec.ts +20 -8
- package/src/components/Calendar/helpers.ts +6 -2
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +28 -28
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +0 -16
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -1
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +11 -11
- package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/FAB/StyledFAB.tsx +1 -5
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +6 -6
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +1 -0
- package/src/components/List/StyledListItem.tsx +1 -5
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +9 -11
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +6 -6
- package/src/components/MapPin/StyledMapPin.tsx +14 -3
- package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +58 -65
- package/src/components/MapPin/index.tsx +7 -8
- package/src/components/Search/StyledSearch.tsx +1 -4
- package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +3 -2
- package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +3 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +0 -40
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +0 -32
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +0 -8
- package/src/components/Toast/StyledToast.tsx +1 -5
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +21 -21
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +72 -50
- package/src/theme/components/alert.ts +5 -1
- package/src/theme/components/avatar.ts +1 -1
- package/src/theme/components/bottomNavigation.ts +7 -5
- package/src/theme/components/bottomSheet.ts +2 -9
- package/src/theme/components/chip.ts +2 -2
- package/src/theme/components/fab.ts +5 -9
- package/src/theme/components/floatingIsland.ts +1 -1
- package/src/theme/components/list.ts +1 -7
- package/src/theme/components/mapPin.ts +6 -2
- package/src/theme/components/search.ts +1 -5
- package/src/theme/components/toast.ts +1 -5
- package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/global.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/jobs.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/swag.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightGlobal.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/wallet.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +2 -0
- package/src/theme/global/colors/eBens.ts +3 -0
- package/src/theme/global/colors/global.ts +3 -0
- package/src/theme/global/colors/jobs.ts +3 -0
- package/src/theme/global/colors/swag.ts +3 -0
- package/src/theme/global/colors/swagDark.ts +3 -0
- package/src/theme/global/colors/wallet.ts +3 -0
- package/src/theme/global/colors/work.ts +3 -0
- package/stats/8.91.4/rn-stats.html +4842 -0
- package/stats/8.91.5/rn-stats.html +4842 -0
- package/types/components/Avatar/StyledAvatar.d.ts +2 -2
- package/types/components/Calendar/helpers.d.ts +5 -2
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/MapPin/StyledMapPin.d.ts +12 -2
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/theme/components/alert.d.ts +3 -0
- package/types/theme/components/avatar.d.ts +1 -1
- package/types/theme/components/bottomNavigation.d.ts +5 -7
- package/types/theme/components/bottomSheet.d.ts +1 -10
- package/types/theme/components/chip.d.ts +1 -1
- package/types/theme/components/fab.d.ts +2 -9
- package/types/theme/components/list.d.ts +1 -10
- package/types/theme/components/mapPin.d.ts +6 -2
- package/types/theme/components/search.d.ts +1 -8
- package/types/theme/components/toast.d.ts +1 -8
- package/types/theme/global/colors/eBens.d.ts +3 -0
- package/types/theme/global/colors/jobs.d.ts +3 -0
- package/types/theme/global/colors/swag.d.ts +3 -0
- package/types/theme/global/colors/swagDark.d.ts +3 -0
- package/types/theme/global/colors/wallet.d.ts +3 -0
- package/types/theme/global/colors/work.d.ts +3 -0
|
@@ -38,6 +38,18 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
38
38
|
"radii": {
|
|
39
39
|
"default": 16,
|
|
40
40
|
},
|
|
41
|
+
"shadows": {
|
|
42
|
+
"wrapper": {
|
|
43
|
+
"elevation": 6,
|
|
44
|
+
"shadowColor": "#001f23",
|
|
45
|
+
"shadowOffset": {
|
|
46
|
+
"height": 2,
|
|
47
|
+
"width": 0,
|
|
48
|
+
},
|
|
49
|
+
"shadowOpacity": 0.12,
|
|
50
|
+
"shadowRadius": 2,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
41
53
|
"sizes": {
|
|
42
54
|
"height": 48,
|
|
43
55
|
},
|
|
@@ -183,18 +195,25 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
183
195
|
},
|
|
184
196
|
},
|
|
185
197
|
"bottomNavigation": {
|
|
198
|
+
"borderWidths": {
|
|
199
|
+
"borderTop": 1,
|
|
200
|
+
},
|
|
186
201
|
"colors": {
|
|
187
202
|
"background": "#ffffff",
|
|
203
|
+
"borderTop": "#e8e9ea",
|
|
188
204
|
"shadow": "#401960",
|
|
189
205
|
},
|
|
190
206
|
"shadows": {
|
|
191
|
-
"
|
|
192
|
-
|
|
193
|
-
"
|
|
194
|
-
"
|
|
207
|
+
"wrapper": {
|
|
208
|
+
"elevation": 10,
|
|
209
|
+
"shadowColor": "#001f23",
|
|
210
|
+
"shadowOffset": {
|
|
211
|
+
"height": -4,
|
|
212
|
+
"width": 0,
|
|
213
|
+
},
|
|
214
|
+
"shadowOpacity": 0.04,
|
|
215
|
+
"shadowRadius": 6,
|
|
195
216
|
},
|
|
196
|
-
"opacity": 0.27,
|
|
197
|
-
"radius": 4.65,
|
|
198
217
|
},
|
|
199
218
|
"sizes": {
|
|
200
219
|
"height": 72,
|
|
@@ -215,15 +234,6 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
215
234
|
"floating": 32,
|
|
216
235
|
"floatingHeaderIcon": 999,
|
|
217
236
|
},
|
|
218
|
-
"shadows": {
|
|
219
|
-
"elevation": 10,
|
|
220
|
-
"offset": {
|
|
221
|
-
"height": 3,
|
|
222
|
-
"width": 0,
|
|
223
|
-
},
|
|
224
|
-
"opacity": 0.4,
|
|
225
|
-
"radius": 16,
|
|
226
|
-
},
|
|
227
237
|
"sizes": {
|
|
228
238
|
"closeIcon": 48,
|
|
229
239
|
"floatingCloseIcon": 12,
|
|
@@ -445,7 +455,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
445
455
|
"outlinedDefaultBorder": "#bfc1c5",
|
|
446
456
|
"outlinedSelectedBackground": "#e8e9ea",
|
|
447
457
|
"outlinedSelectedBorder": "#001f23",
|
|
448
|
-
"secondaryBackground":
|
|
458
|
+
"secondaryBackground": undefined,
|
|
449
459
|
"wrapperSelectedBorder": "transparent",
|
|
450
460
|
},
|
|
451
461
|
"fontSizes": {
|
|
@@ -456,14 +466,14 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
456
466
|
},
|
|
457
467
|
"shadows": {
|
|
458
468
|
"filledWrapper": {
|
|
459
|
-
"elevation":
|
|
460
|
-
"shadowColor": "#
|
|
469
|
+
"elevation": 6,
|
|
470
|
+
"shadowColor": "#001f23",
|
|
461
471
|
"shadowOffset": {
|
|
462
472
|
"height": 2,
|
|
463
473
|
"width": 0,
|
|
464
474
|
},
|
|
465
475
|
"shadowOpacity": 0.12,
|
|
466
|
-
"shadowRadius":
|
|
476
|
+
"shadowRadius": 2,
|
|
467
477
|
},
|
|
468
478
|
},
|
|
469
479
|
"space": {
|
|
@@ -590,7 +600,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
590
600
|
"actionItemBackground": "#000000",
|
|
591
601
|
"actionItemPressedBackground": "#000000",
|
|
592
602
|
"actionItemText": "#ffffff",
|
|
593
|
-
"backdropBackground": "#
|
|
603
|
+
"backdropBackground": "#000000",
|
|
594
604
|
"buttonActiveBackground": "#000000",
|
|
595
605
|
"buttonBackground": "#000000",
|
|
596
606
|
"buttonPressedBackground": "#000000",
|
|
@@ -614,14 +624,16 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
614
624
|
"actionItem": 999,
|
|
615
625
|
},
|
|
616
626
|
"shadows": {
|
|
617
|
-
"
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
"
|
|
621
|
-
|
|
627
|
+
"default": {
|
|
628
|
+
"elevation": 6,
|
|
629
|
+
"shadowColor": "#001f23",
|
|
630
|
+
"shadowOffset": {
|
|
631
|
+
"height": 2,
|
|
632
|
+
"width": 0,
|
|
633
|
+
},
|
|
634
|
+
"shadowOpacity": 0.12,
|
|
635
|
+
"shadowRadius": 2,
|
|
622
636
|
},
|
|
623
|
-
"opacity": 0.12,
|
|
624
|
-
"radius": 4,
|
|
625
637
|
},
|
|
626
638
|
"sizes": {
|
|
627
639
|
"fabPairHeight": 48,
|
|
@@ -655,14 +667,14 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
655
667
|
},
|
|
656
668
|
"shadows": {
|
|
657
669
|
"wrapper": {
|
|
658
|
-
"elevation":
|
|
659
|
-
"shadowColor": "#
|
|
670
|
+
"elevation": 6,
|
|
671
|
+
"shadowColor": "#001f23",
|
|
660
672
|
"shadowOffset": {
|
|
661
673
|
"height": 2,
|
|
662
674
|
"width": 0,
|
|
663
675
|
},
|
|
664
676
|
"shadowOpacity": 0.12,
|
|
665
|
-
"shadowRadius":
|
|
677
|
+
"shadowRadius": 2,
|
|
666
678
|
},
|
|
667
679
|
},
|
|
668
680
|
"space": {
|
|
@@ -724,14 +736,14 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
724
736
|
},
|
|
725
737
|
"shadows": {
|
|
726
738
|
"card": {
|
|
727
|
-
"
|
|
728
|
-
"
|
|
729
|
-
"
|
|
739
|
+
"elevation": 6,
|
|
740
|
+
"shadowColor": "#001f23",
|
|
741
|
+
"shadowOffset": {
|
|
730
742
|
"height": 2,
|
|
731
743
|
"width": 0,
|
|
732
744
|
},
|
|
733
|
-
"
|
|
734
|
-
"
|
|
745
|
+
"shadowOpacity": 0.12,
|
|
746
|
+
"shadowRadius": 2,
|
|
735
747
|
},
|
|
736
748
|
},
|
|
737
749
|
"space": {
|
|
@@ -752,16 +764,19 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
752
764
|
"colors": {
|
|
753
765
|
"background": "#ffffff",
|
|
754
766
|
"badge": "#795e90",
|
|
767
|
+
"badgeIcon": "#ffffff",
|
|
755
768
|
"border": {
|
|
756
769
|
"applied": "#795e90",
|
|
757
770
|
"idle": "#ffffff",
|
|
758
771
|
"selected": "#795e90",
|
|
759
772
|
},
|
|
773
|
+
"icon": "#000000",
|
|
760
774
|
},
|
|
761
775
|
"fontSizes": {
|
|
762
776
|
"icon": 42,
|
|
763
777
|
},
|
|
764
778
|
"radii": {
|
|
779
|
+
"badge": 999,
|
|
765
780
|
"default": 12,
|
|
766
781
|
},
|
|
767
782
|
"shadows": {
|
|
@@ -775,6 +790,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
775
790
|
"radius": 4,
|
|
776
791
|
},
|
|
777
792
|
"sizes": {
|
|
793
|
+
"badge": 24,
|
|
778
794
|
"default": 42,
|
|
779
795
|
},
|
|
780
796
|
"space": {
|
|
@@ -988,14 +1004,16 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
988
1004
|
"surfix": 999,
|
|
989
1005
|
},
|
|
990
1006
|
"shadows": {
|
|
991
|
-
"
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
"
|
|
995
|
-
|
|
1007
|
+
"container": {
|
|
1008
|
+
"elevation": 6,
|
|
1009
|
+
"shadowColor": "#001f23",
|
|
1010
|
+
"shadowOffset": {
|
|
1011
|
+
"height": 2,
|
|
1012
|
+
"width": 0,
|
|
1013
|
+
},
|
|
1014
|
+
"shadowOpacity": 0.12,
|
|
1015
|
+
"shadowRadius": 2,
|
|
996
1016
|
},
|
|
997
|
-
"opacity": 0.12,
|
|
998
|
-
"radius": 4,
|
|
999
1017
|
},
|
|
1000
1018
|
"sizes": {
|
|
1001
1019
|
"surfixSize": 40,
|
|
@@ -1166,7 +1184,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1166
1184
|
"background": "#f6f6f7",
|
|
1167
1185
|
"textBackground": "#ccd2d3",
|
|
1168
1186
|
},
|
|
1169
|
-
"thumb":
|
|
1187
|
+
"thumb": "#ffffff",
|
|
1170
1188
|
},
|
|
1171
1189
|
"radii": {
|
|
1172
1190
|
"rounded": 999,
|
|
@@ -1373,14 +1391,16 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1373
1391
|
"default": 16,
|
|
1374
1392
|
},
|
|
1375
1393
|
"shadows": {
|
|
1376
|
-
"
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
"
|
|
1380
|
-
|
|
1394
|
+
"wrapper": {
|
|
1395
|
+
"elevation": 6,
|
|
1396
|
+
"shadowColor": "#001f23",
|
|
1397
|
+
"shadowOffset": {
|
|
1398
|
+
"height": 2,
|
|
1399
|
+
"width": 0,
|
|
1400
|
+
},
|
|
1401
|
+
"shadowOpacity": 0.12,
|
|
1402
|
+
"shadowRadius": 2,
|
|
1381
1403
|
},
|
|
1382
|
-
"opacity": 0.12,
|
|
1383
|
-
"radius": 4,
|
|
1384
1404
|
},
|
|
1385
1405
|
"sizes": {
|
|
1386
1406
|
"height": 48,
|
|
@@ -1620,6 +1640,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1620
1640
|
"colors": {
|
|
1621
1641
|
"archived": "#abacaf",
|
|
1622
1642
|
"archivedSurface": "#dadbde",
|
|
1643
|
+
"black": "#000000",
|
|
1623
1644
|
"darkGlobalSurface": "#001f23",
|
|
1624
1645
|
"decorativePrimary": "#ffffff",
|
|
1625
1646
|
"decorativePrimarySurface": "#ccd2d3",
|
|
@@ -1660,6 +1681,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1660
1681
|
"successSurface": "#f0fef4",
|
|
1661
1682
|
"warning": "#ffbe71",
|
|
1662
1683
|
"warningSurface": "#fff6eb",
|
|
1684
|
+
"white": "#ffffff",
|
|
1663
1685
|
},
|
|
1664
1686
|
"fontSizes": {
|
|
1665
1687
|
"6xlarge": 36,
|
|
@@ -38,7 +38,11 @@ const getAlertTheme = (theme: GlobalTheme) => {
|
|
|
38
38
|
base: theme.borderWidths.base,
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
const shadows = {
|
|
42
|
+
wrapper: theme.shadows.cardDrawer,
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
return { colors, radii, sizes, space, borderWidths, shadows };
|
|
42
46
|
};
|
|
43
47
|
|
|
44
48
|
export default getAlertTheme;
|
|
@@ -4,6 +4,11 @@ const getBottomNavigationTheme = (theme: GlobalTheme) => {
|
|
|
4
4
|
const colors = {
|
|
5
5
|
shadow: theme.colors.primary,
|
|
6
6
|
background: theme.colors.defaultGlobalSurface,
|
|
7
|
+
borderTop: theme.colors.secondaryOutline,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const borderWidths = {
|
|
11
|
+
borderTop: theme.borderWidths.base,
|
|
7
12
|
};
|
|
8
13
|
|
|
9
14
|
const sizes = {
|
|
@@ -11,17 +16,14 @@ const getBottomNavigationTheme = (theme: GlobalTheme) => {
|
|
|
11
16
|
};
|
|
12
17
|
|
|
13
18
|
const shadows = {
|
|
14
|
-
|
|
15
|
-
opacity: 0.27,
|
|
16
|
-
radius: 4.65,
|
|
17
|
-
elevation: 10,
|
|
19
|
+
wrapper: theme.shadows.tabBar,
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
const space = {
|
|
21
23
|
titleMarginTop: theme.space.xsmall,
|
|
22
24
|
};
|
|
23
25
|
|
|
24
|
-
return { colors, shadows, sizes, space };
|
|
26
|
+
return { colors, borderWidths, shadows, sizes, space };
|
|
25
27
|
};
|
|
26
28
|
|
|
27
29
|
export default getBottomNavigationTheme;
|
|
@@ -4,7 +4,7 @@ const getBottomSheetTheme = (theme: GlobalTheme) => {
|
|
|
4
4
|
const colors = {
|
|
5
5
|
shadow: theme.colors.primaryOutline,
|
|
6
6
|
background: theme.colors.defaultGlobalSurface,
|
|
7
|
-
backdrop: theme.colors.
|
|
7
|
+
backdrop: theme.colors.black,
|
|
8
8
|
floatingHeaderIconBackground: theme.colors.archivedSurface,
|
|
9
9
|
};
|
|
10
10
|
|
|
@@ -24,20 +24,13 @@ const getBottomSheetTheme = (theme: GlobalTheme) => {
|
|
|
24
24
|
floatingHeaderIconPadding: theme.space.small,
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
const shadows = {
|
|
28
|
-
offset: { width: 0, height: 3 },
|
|
29
|
-
opacity: 0.4,
|
|
30
|
-
radius: theme.radii.xlarge,
|
|
31
|
-
elevation: 10,
|
|
32
|
-
};
|
|
33
|
-
|
|
34
27
|
const radii = {
|
|
35
28
|
default: theme.radii.xlarge,
|
|
36
29
|
floating: theme.radii['5xlarge'],
|
|
37
30
|
floatingHeaderIcon: theme.radii.rounded,
|
|
38
31
|
};
|
|
39
32
|
|
|
40
|
-
return { colors,
|
|
33
|
+
return { colors, radii, sizes, space };
|
|
41
34
|
};
|
|
42
35
|
|
|
43
36
|
export default getBottomSheetTheme;
|
|
@@ -2,7 +2,7 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getChipTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
secondaryBackground: theme.colors.
|
|
5
|
+
secondaryBackground: theme.colors.decorativeSecondarySurface,
|
|
6
6
|
filledBackground: theme.colors.defaultGlobalSurface,
|
|
7
7
|
wrapperSelectedBorder: 'transparent',
|
|
8
8
|
outlinedDefaultBackground: theme.colors.defaultGlobalSurface,
|
|
@@ -30,7 +30,7 @@ const getChipTheme = (theme: GlobalTheme) => {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
const shadows = {
|
|
33
|
-
filledWrapper: theme.shadows.
|
|
33
|
+
filledWrapper: theme.shadows.cardDrawer,
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
const fontSizes = {
|
|
@@ -5,12 +5,12 @@ const getFABTheme = (theme: GlobalTheme) => {
|
|
|
5
5
|
buttonBackground: theme.colors.overlayGlobalSurface,
|
|
6
6
|
buttonPressedBackground: theme.colors.overlayGlobalSurface,
|
|
7
7
|
buttonActiveBackground: theme.colors.overlayGlobalSurface,
|
|
8
|
-
icon: theme.colors.
|
|
8
|
+
icon: theme.colors.onDarkGlobalSurface,
|
|
9
9
|
actionItemBackground: theme.colors.overlayGlobalSurface,
|
|
10
10
|
actionItemPressedBackground: theme.colors.overlayGlobalSurface,
|
|
11
|
-
backdropBackground: theme.colors.
|
|
12
|
-
titleText: theme.colors.
|
|
13
|
-
actionItemText: theme.colors.
|
|
11
|
+
backdropBackground: theme.colors.black,
|
|
12
|
+
titleText: theme.colors.onDarkGlobalSurface,
|
|
13
|
+
actionItemText: theme.colors.onDarkGlobalSurface,
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
const sizes = {
|
|
@@ -39,11 +39,7 @@ const getFABTheme = (theme: GlobalTheme) => {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
const shadows = {
|
|
42
|
-
|
|
43
|
-
opacity: theme.shadows.default.shadowOpacity,
|
|
44
|
-
radius: theme.shadows.default.shadowRadius,
|
|
45
|
-
elevation: theme.shadows.default.elevation,
|
|
46
|
-
color: theme.shadows.default.shadowColor,
|
|
42
|
+
default: theme.shadows.cardDrawer,
|
|
47
43
|
};
|
|
48
44
|
|
|
49
45
|
const space = {
|
|
@@ -28,13 +28,7 @@ const getListTheme = (theme: GlobalTheme) => {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
const shadows = {
|
|
31
|
-
card:
|
|
32
|
-
offset: theme.shadows.default.shadowOffset,
|
|
33
|
-
elevation: theme.shadows.default.elevation,
|
|
34
|
-
color: theme.shadows.default.shadowColor,
|
|
35
|
-
radius: theme.shadows.default.shadowRadius,
|
|
36
|
-
opacity: theme.shadows.default.shadowOpacity,
|
|
37
|
-
},
|
|
31
|
+
card: theme.shadows.cardDrawer,
|
|
38
32
|
};
|
|
39
33
|
|
|
40
34
|
const widths = {
|
|
@@ -3,6 +3,7 @@ import type { GlobalTheme } from '../global';
|
|
|
3
3
|
const getMapPinTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const sizes = {
|
|
5
5
|
default: 42,
|
|
6
|
+
badge: theme.sizes.large,
|
|
6
7
|
};
|
|
7
8
|
|
|
8
9
|
const fontSizes = {
|
|
@@ -15,16 +16,19 @@ const getMapPinTheme = (theme: GlobalTheme) => {
|
|
|
15
16
|
|
|
16
17
|
const colors = {
|
|
17
18
|
border: {
|
|
18
|
-
idle: theme.colors.
|
|
19
|
+
idle: theme.colors.white,
|
|
19
20
|
selected: theme.colors.secondary,
|
|
20
21
|
applied: theme.colors.secondary,
|
|
21
22
|
},
|
|
23
|
+
icon: theme.colors.black,
|
|
22
24
|
badge: theme.colors.secondary,
|
|
23
|
-
|
|
25
|
+
badgeIcon: theme.colors.onSecondary,
|
|
26
|
+
background: theme.colors.white,
|
|
24
27
|
};
|
|
25
28
|
|
|
26
29
|
const radii = {
|
|
27
30
|
default: theme.radii.large,
|
|
31
|
+
badge: theme.radii.rounded,
|
|
28
32
|
};
|
|
29
33
|
|
|
30
34
|
const space = {
|
|
@@ -18,11 +18,7 @@ const getSearchTheme = (theme: GlobalTheme) => {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const shadows = {
|
|
21
|
-
|
|
22
|
-
opacity: theme.shadows.default.shadowOpacity,
|
|
23
|
-
radius: theme.shadows.default.shadowRadius,
|
|
24
|
-
elevation: theme.shadows.default.elevation,
|
|
25
|
-
color: theme.shadows.default.shadowColor,
|
|
21
|
+
container: theme.shadows.cardDrawer,
|
|
26
22
|
};
|
|
27
23
|
|
|
28
24
|
const space = {
|
|
@@ -43,11 +43,7 @@ const getToastTheme = (theme: GlobalTheme) => {
|
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
const shadows = {
|
|
46
|
-
|
|
47
|
-
opacity: theme.shadows.default.shadowOpacity,
|
|
48
|
-
radius: theme.shadows.default.shadowRadius,
|
|
49
|
-
elevation: theme.shadows.default.elevation,
|
|
50
|
-
color: theme.shadows.default.shadowColor,
|
|
46
|
+
wrapper: theme.shadows.cardDrawer,
|
|
51
47
|
};
|
|
52
48
|
|
|
53
49
|
return { colors, radii, sizes, space, borderWidths, shadows };
|
|
@@ -4,6 +4,7 @@ exports[`eBens returns correct theme object 1`] = `
|
|
|
4
4
|
{
|
|
5
5
|
"archived": "#abacaf",
|
|
6
6
|
"archivedSurface": "#dadbde",
|
|
7
|
+
"black": "#000000",
|
|
7
8
|
"darkGlobalSurface": "#001f23",
|
|
8
9
|
"decorativePrimary": "#c38cee",
|
|
9
10
|
"decorativePrimarySurface": "#f3e8fc",
|
|
@@ -44,5 +45,6 @@ exports[`eBens returns correct theme object 1`] = `
|
|
|
44
45
|
"successSurface": "#f0fef4",
|
|
45
46
|
"warning": "#ffbe71",
|
|
46
47
|
"warningSurface": "#fff6eb",
|
|
48
|
+
"white": "#ffffff",
|
|
47
49
|
}
|
|
48
50
|
`;
|
|
@@ -4,6 +4,7 @@ exports[`global returns correct theme object 1`] = `
|
|
|
4
4
|
{
|
|
5
5
|
"archived": "#abacaf",
|
|
6
6
|
"archivedSurface": "#dadbde",
|
|
7
|
+
"black": "#000000",
|
|
7
8
|
"darkGlobalSurface": "#001f23",
|
|
8
9
|
"defaultGlobalSurface": "#ffffff",
|
|
9
10
|
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
@@ -35,5 +36,6 @@ exports[`global returns correct theme object 1`] = `
|
|
|
35
36
|
"successSurface": "#f0fef4",
|
|
36
37
|
"warning": "#ffbe71",
|
|
37
38
|
"warningSurface": "#fff6eb",
|
|
39
|
+
"white": "#ffffff",
|
|
38
40
|
}
|
|
39
41
|
`;
|
|
@@ -4,6 +4,7 @@ exports[`jobs returns correct theme object 1`] = `
|
|
|
4
4
|
{
|
|
5
5
|
"archived": "#abacaf",
|
|
6
6
|
"archivedSurface": "#dadbde",
|
|
7
|
+
"black": "#000000",
|
|
7
8
|
"darkGlobalSurface": "#001f23",
|
|
8
9
|
"decorativePrimary": "#ffad79",
|
|
9
10
|
"decorativePrimarySurface": "#ffefe4",
|
|
@@ -44,5 +45,6 @@ exports[`jobs returns correct theme object 1`] = `
|
|
|
44
45
|
"successSurface": "#f0fef4",
|
|
45
46
|
"warning": "#ffbe71",
|
|
46
47
|
"warningSurface": "#fff6eb",
|
|
48
|
+
"white": "#ffffff",
|
|
47
49
|
}
|
|
48
50
|
`;
|
|
@@ -4,6 +4,7 @@ exports[`swag returns correct theme object 1`] = `
|
|
|
4
4
|
{
|
|
5
5
|
"archived": "#abacaf",
|
|
6
6
|
"archivedSurface": "#dadbde",
|
|
7
|
+
"black": "#000000",
|
|
7
8
|
"darkGlobalSurface": "#001f23",
|
|
8
9
|
"decorativePrimary": "#ffffff",
|
|
9
10
|
"decorativePrimarySurface": "#ccd2d3",
|
|
@@ -44,5 +45,6 @@ exports[`swag returns correct theme object 1`] = `
|
|
|
44
45
|
"successSurface": "#f0fef4",
|
|
45
46
|
"warning": "#ffbe71",
|
|
46
47
|
"warningSurface": "#fff6eb",
|
|
48
|
+
"white": "#ffffff",
|
|
47
49
|
}
|
|
48
50
|
`;
|
|
@@ -4,6 +4,7 @@ exports[`swagDark returns correct theme object 1`] = `
|
|
|
4
4
|
{
|
|
5
5
|
"archived": "#abacaf",
|
|
6
6
|
"archivedSurface": "#dadbde",
|
|
7
|
+
"black": "#000000",
|
|
7
8
|
"darkGlobalSurface": "#001f23",
|
|
8
9
|
"decorativePrimary": "#fdfbff",
|
|
9
10
|
"decorativePrimarySurface": "#dacce4",
|
|
@@ -47,5 +48,6 @@ exports[`swagDark returns correct theme object 1`] = `
|
|
|
47
48
|
"successSurface": "#f0fef4",
|
|
48
49
|
"warning": "#ffbe71",
|
|
49
50
|
"warningSurface": "#fff6eb",
|
|
51
|
+
"white": "#ffffff",
|
|
50
52
|
}
|
|
51
53
|
`;
|
|
@@ -4,6 +4,7 @@ exports[`swagLightGlobal returns correct theme object 1`] = `
|
|
|
4
4
|
{
|
|
5
5
|
"archived": "#abacaf",
|
|
6
6
|
"archivedSurface": "#dadbde",
|
|
7
|
+
"black": "#000000",
|
|
7
8
|
"darkGlobalSurface": "#001f23",
|
|
8
9
|
"defaultGlobalSurface": "#ffffff",
|
|
9
10
|
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
@@ -35,5 +36,6 @@ exports[`swagLightGlobal returns correct theme object 1`] = `
|
|
|
35
36
|
"successSurface": "#f0fef4",
|
|
36
37
|
"warning": "#ffbe71",
|
|
37
38
|
"warningSurface": "#fff6eb",
|
|
39
|
+
"white": "#ffffff",
|
|
38
40
|
}
|
|
39
41
|
`;
|
|
@@ -4,6 +4,7 @@ exports[`swagLightJobs returns correct theme object 1`] = `
|
|
|
4
4
|
{
|
|
5
5
|
"archived": "#abacaf",
|
|
6
6
|
"archivedSurface": "#dadbde",
|
|
7
|
+
"black": "#000000",
|
|
7
8
|
"darkGlobalSurface": "#001f23",
|
|
8
9
|
"decorativePrimary": "#fdfbff",
|
|
9
10
|
"decorativePrimarySurface": "#dacce4",
|
|
@@ -48,5 +49,6 @@ exports[`swagLightJobs returns correct theme object 1`] = `
|
|
|
48
49
|
"successSurface": "#f0fef4",
|
|
49
50
|
"warning": "#ffbe71",
|
|
50
51
|
"warningSurface": "#fff6eb",
|
|
52
|
+
"white": "#ffffff",
|
|
51
53
|
}
|
|
52
54
|
`;
|
|
@@ -4,6 +4,7 @@ exports[`wallet returns correct theme object 1`] = `
|
|
|
4
4
|
{
|
|
5
5
|
"archived": "#abacaf",
|
|
6
6
|
"archivedSurface": "#dadbde",
|
|
7
|
+
"black": "#000000",
|
|
7
8
|
"darkGlobalSurface": "#001f23",
|
|
8
9
|
"decorativePrimary": "#8999ff",
|
|
9
10
|
"decorativePrimarySurface": "#e7ebff",
|
|
@@ -44,5 +45,6 @@ exports[`wallet returns correct theme object 1`] = `
|
|
|
44
45
|
"successSurface": "#f0fef4",
|
|
45
46
|
"warning": "#ffbe71",
|
|
46
47
|
"warningSurface": "#fff6eb",
|
|
48
|
+
"white": "#ffffff",
|
|
47
49
|
}
|
|
48
50
|
`;
|
|
@@ -4,6 +4,7 @@ exports[`work returns correct theme object 1`] = `
|
|
|
4
4
|
{
|
|
5
5
|
"archived": "#abacaf",
|
|
6
6
|
"archivedSurface": "#dadbde",
|
|
7
|
+
"black": "#000000",
|
|
7
8
|
"darkGlobalSurface": "#001f23",
|
|
8
9
|
"decorativePrimary": "#ffd500",
|
|
9
10
|
"decorativePrimarySurface": "#fff7cc",
|
|
@@ -44,5 +45,6 @@ exports[`work returns correct theme object 1`] = `
|
|
|
44
45
|
"successSurface": "#f0fef4",
|
|
45
46
|
"warning": "#ffbe71",
|
|
46
47
|
"warningSurface": "#fff6eb",
|
|
48
|
+
"white": "#ffffff",
|
|
47
49
|
}
|
|
48
50
|
`;
|
|
@@ -15,6 +15,9 @@ const eBensBrandSystemPallete: BrandSystemPalette = {
|
|
|
15
15
|
decorativePrimarySurface: palette.mauveLight80,
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated This palette is deprecated and will be removed in the next major release.
|
|
20
|
+
*/
|
|
18
21
|
const eBensSystemPalette: SystemPalette = {
|
|
19
22
|
...swag,
|
|
20
23
|
...eBensBrandSystemPallete,
|
|
@@ -15,6 +15,9 @@ const jobsBrandSystemPallete: BrandSystemPalette = {
|
|
|
15
15
|
decorativePrimarySurface: palette.hitPinkLight80,
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated This palette is deprecated and will be removed in the next major release.
|
|
20
|
+
*/
|
|
18
21
|
const jobsSystemPalette: SystemPalette = {
|
|
19
22
|
...swag,
|
|
20
23
|
...jobsBrandSystemPallete,
|
|
@@ -15,6 +15,9 @@ const swagBrandSystemPallete: BrandSystemPalette = {
|
|
|
15
15
|
decorativePrimarySurface: palette.maasstrichtBlueLight80,
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated This palette is deprecated and will be removed in the next major release.
|
|
20
|
+
*/
|
|
18
21
|
const swagSystemPalette: SystemPalette = {
|
|
19
22
|
// Global
|
|
20
23
|
...globalPalette,
|