@hero-design/rn 8.91.4 → 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.
Files changed (67) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/CHANGELOG.md +16 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +418 -408
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +418 -408
  7. package/package.json +1 -1
  8. package/src/components/Alert/StyledAlert.tsx +1 -0
  9. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +56 -0
  10. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +8 -10
  11. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +116 -145
  12. package/src/components/Avatar/StyledAvatar.tsx +1 -1
  13. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +4 -5
  14. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +8 -10
  15. package/src/components/BottomNavigation/StyledBottomNavigation.tsx +3 -5
  16. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +6 -4
  17. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +28 -28
  18. package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  19. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  20. package/src/components/Icon/IconList.ts +1 -0
  21. package/src/components/List/StyledListItem.tsx +1 -5
  22. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +8 -10
  23. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +6 -6
  24. package/src/components/MapPin/StyledMapPin.tsx +14 -3
  25. package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +58 -65
  26. package/src/components/MapPin/index.tsx +7 -8
  27. package/src/components/Search/StyledSearch.tsx +1 -4
  28. package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +3 -2
  29. package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +3 -2
  30. package/src/components/Toast/StyledToast.tsx +1 -5
  31. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +21 -21
  32. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +59 -32
  33. package/src/theme/components/alert.ts +5 -1
  34. package/src/theme/components/avatar.ts +1 -1
  35. package/src/theme/components/bottomNavigation.ts +7 -5
  36. package/src/theme/components/chip.ts +2 -2
  37. package/src/theme/components/floatingIsland.ts +1 -1
  38. package/src/theme/components/list.ts +1 -7
  39. package/src/theme/components/mapPin.ts +6 -2
  40. package/src/theme/components/search.ts +1 -5
  41. package/src/theme/components/toast.ts +1 -5
  42. package/src/theme/global/colors/eBens.ts +3 -0
  43. package/src/theme/global/colors/jobs.ts +3 -0
  44. package/src/theme/global/colors/swag.ts +3 -0
  45. package/src/theme/global/colors/swagDark.ts +3 -0
  46. package/src/theme/global/colors/wallet.ts +3 -0
  47. package/src/theme/global/colors/work.ts +3 -0
  48. package/stats/8.91.5/rn-stats.html +4842 -0
  49. package/types/components/Avatar/StyledAvatar.d.ts +2 -2
  50. package/types/components/Icon/IconList.d.ts +1 -1
  51. package/types/components/Icon/index.d.ts +1 -1
  52. package/types/components/MapPin/StyledMapPin.d.ts +12 -2
  53. package/types/components/TextInput/index.d.ts +1 -1
  54. package/types/theme/components/alert.d.ts +3 -0
  55. package/types/theme/components/avatar.d.ts +1 -1
  56. package/types/theme/components/bottomNavigation.d.ts +5 -7
  57. package/types/theme/components/chip.d.ts +1 -1
  58. package/types/theme/components/list.d.ts +1 -10
  59. package/types/theme/components/mapPin.d.ts +6 -2
  60. package/types/theme/components/search.d.ts +1 -8
  61. package/types/theme/components/toast.d.ts +1 -8
  62. package/types/theme/global/colors/eBens.d.ts +3 -0
  63. package/types/theme/global/colors/jobs.d.ts +3 -0
  64. package/types/theme/global/colors/swag.d.ts +3 -0
  65. package/types/theme/global/colors/swagDark.d.ts +3 -0
  66. package/types/theme/global/colors/wallet.d.ts +3 -0
  67. package/types/theme/global/colors/work.d.ts +3 -0
@@ -58,7 +58,12 @@ exports[`MapPin renders applied state correctly 1`] = `
58
58
  "color": "#001f23",
59
59
  "fontSize": 16,
60
60
  },
61
- undefined,
61
+ [
62
+ {
63
+ "color": "#000000",
64
+ },
65
+ undefined,
66
+ ],
62
67
  ]
63
68
  }
64
69
  testID="map-pin-icon"
@@ -67,54 +72,43 @@ exports[`MapPin renders applied state correctly 1`] = `
67
72
  />
68
73
  </View>
69
74
  <View
70
- collapsable={false}
71
75
  style={
72
- {
73
- "alignItems": "center",
74
- "backgroundColor": "#795e90",
75
- "borderColor": "#795e90",
76
- "borderRadius": 999,
77
- "borderWidth": 2,
78
- "height": 24,
79
- "justifyContent": "center",
80
- "minWidth": 24,
81
- "opacity": 1,
82
- "paddingHorizontal": undefined,
83
- "position": "absolute",
84
- "right": -8,
85
- "top": -8,
86
- "transform": [
87
- {
88
- "scale": 1,
89
- },
90
- ],
91
- "zIndex": 2,
92
- }
76
+ [
77
+ {
78
+ "alignItems": "center",
79
+ "backgroundColor": "#795e90",
80
+ "borderRadius": 999,
81
+ "height": 24,
82
+ "justifyContent": "center",
83
+ "position": "absolute",
84
+ "right": -8,
85
+ "top": -8,
86
+ "width": 24,
87
+ "zIndex": 2,
88
+ },
89
+ undefined,
90
+ ]
93
91
  }
94
92
  testID="map-pin-badge"
95
- themeIntent="primary"
96
- themePadding="narrowContent"
97
- themeSize="medium"
98
- themeVariant="filled"
99
93
  >
100
94
  <HeroIcon
101
95
  name="mail-outlined"
102
96
  style={
103
97
  [
104
98
  {
105
- "color": "#ffffff",
106
- "fontSize": 24,
99
+ "color": "#001f23",
100
+ "fontSize": 12,
107
101
  },
108
102
  [
109
103
  {
110
- "fontSize": 12,
104
+ "color": "#ffffff",
111
105
  },
112
106
  undefined,
113
107
  ],
114
108
  ]
115
109
  }
116
- themeIntent="text-inverted"
117
- themeSize="medium"
110
+ themeIntent="text"
111
+ themeSize="xxxsmall"
118
112
  />
119
113
  </View>
120
114
  </View>
@@ -199,7 +193,12 @@ exports[`MapPin renders icon correctly 1`] = `
199
193
  "color": "#001f23",
200
194
  "fontSize": 16,
201
195
  },
202
- undefined,
196
+ [
197
+ {
198
+ "color": "#000000",
199
+ },
200
+ undefined,
201
+ ],
203
202
  ]
204
203
  }
205
204
  testID="map-pin-icon"
@@ -382,7 +381,12 @@ exports[`MapPin renders selected state correctly 1`] = `
382
381
  "color": "#001f23",
383
382
  "fontSize": 16,
384
383
  },
385
- undefined,
384
+ [
385
+ {
386
+ "color": "#000000",
387
+ },
388
+ undefined,
389
+ ],
386
390
  ]
387
391
  }
388
392
  testID="map-pin-icon"
@@ -391,54 +395,43 @@ exports[`MapPin renders selected state correctly 1`] = `
391
395
  />
392
396
  </View>
393
397
  <View
394
- collapsable={false}
395
398
  style={
396
- {
397
- "alignItems": "center",
398
- "backgroundColor": "#795e90",
399
- "borderColor": "#795e90",
400
- "borderRadius": 999,
401
- "borderWidth": 2,
402
- "height": 24,
403
- "justifyContent": "center",
404
- "minWidth": 24,
405
- "opacity": 1,
406
- "paddingHorizontal": undefined,
407
- "position": "absolute",
408
- "right": -8,
409
- "top": -8,
410
- "transform": [
411
- {
412
- "scale": 1,
413
- },
414
- ],
415
- "zIndex": 2,
416
- }
399
+ [
400
+ {
401
+ "alignItems": "center",
402
+ "backgroundColor": "#795e90",
403
+ "borderRadius": 999,
404
+ "height": 24,
405
+ "justifyContent": "center",
406
+ "position": "absolute",
407
+ "right": -8,
408
+ "top": -8,
409
+ "width": 24,
410
+ "zIndex": 2,
411
+ },
412
+ undefined,
413
+ ]
417
414
  }
418
415
  testID="map-pin-badge"
419
- themeIntent="primary"
420
- themePadding="narrowContent"
421
- themeSize="medium"
422
- themeVariant="filled"
423
416
  >
424
417
  <HeroIcon
425
418
  name="checkmark"
426
419
  style={
427
420
  [
428
421
  {
429
- "color": "#ffffff",
430
- "fontSize": 24,
422
+ "color": "#001f23",
423
+ "fontSize": 12,
431
424
  },
432
425
  [
433
426
  {
434
- "fontSize": 12,
427
+ "color": "#ffffff",
435
428
  },
436
429
  undefined,
437
430
  ],
438
431
  ]
439
432
  }
440
- themeIntent="text-inverted"
441
- themeSize="medium"
433
+ themeIntent="text"
434
+ themeSize="xxxsmall"
442
435
  />
443
436
  </View>
444
437
  </View>
@@ -3,9 +3,11 @@ import {
3
3
  StyledContainer,
4
4
  StyledBadge,
5
5
  StyledImage,
6
+ StyledIcon,
7
+ StyledBadgeIcon,
6
8
  StyledContent,
7
9
  } from './StyledMapPin';
8
- import Icon, { IconName } from '../Icon';
10
+ import { IconName } from '../Icon';
9
11
  import { MapPinProps } from './types';
10
12
  import MapPinFocussed from './Focussed';
11
13
 
@@ -40,20 +42,17 @@ const MapPin = ({
40
42
  />
41
43
  )}
42
44
  {icon && (
43
- <Icon
45
+ <StyledIcon
44
46
  icon={icon}
45
47
  size="xsmall"
46
- intent="text"
47
48
  testID={testID ? `${testID}-icon` : undefined}
48
49
  />
49
50
  )}
50
51
  </StyledContent>
51
52
  {badgeIcon && (
52
- <StyledBadge
53
- icon={badgeIcon}
54
- intent="primary"
55
- testID={testID ? `${testID}-badge` : undefined}
56
- />
53
+ <StyledBadge testID={testID ? `${testID}-badge` : undefined}>
54
+ <StyledBadgeIcon icon={badgeIcon} size="xxxsmall" />
55
+ </StyledBadge>
57
56
  )}
58
57
  </StyledContainer>
59
58
  );
@@ -41,10 +41,7 @@ export const StyledInputContainer = styled(View)<{
41
41
  ? theme.__hd__.search.colors[themeVariant].focusedBorder
42
42
  : theme.__hd__.search.colors[themeVariant].border,
43
43
  ...(themeVariant === 'reversed' && {
44
- elevation: theme.__hd__.search.shadows.elevation,
45
- shadowOffset: theme.__hd__.search.shadows.offset,
46
- shadowOpacity: theme.__hd__.search.shadows.opacity,
47
- shadowRadius: theme.__hd__.search.shadows.radius,
44
+ ...theme.__hd__.search.shadows.container,
48
45
  }),
49
46
  };
50
47
  });
@@ -305,17 +305,18 @@ exports[`SearchOneLine idle renders reserved variant correctly 1`] = `
305
305
  "borderColor": "#e8e9ea",
306
306
  "borderRadius": 999,
307
307
  "borderWidth": 1,
308
- "elevation": 3,
308
+ "elevation": 6,
309
309
  "flexDirection": "row",
310
310
  "height": 56,
311
311
  "paddingHorizontal": 7,
312
312
  "paddingVertical": 7,
313
+ "shadowColor": "#001f23",
313
314
  "shadowOffset": {
314
315
  "height": 2,
315
316
  "width": 0,
316
317
  },
317
318
  "shadowOpacity": 0.12,
318
- "shadowRadius": 4,
319
+ "shadowRadius": 2,
319
320
  },
320
321
  undefined,
321
322
  ]
@@ -198,17 +198,18 @@ exports[`SearchTwoLine renders reserved variant correctly 1`] = `
198
198
  "borderColor": "#e8e9ea",
199
199
  "borderRadius": 999,
200
200
  "borderWidth": 1,
201
- "elevation": 3,
201
+ "elevation": 6,
202
202
  "flexDirection": "row",
203
203
  "height": 56,
204
204
  "paddingHorizontal": 7,
205
205
  "paddingVertical": 7,
206
+ "shadowColor": "#001f23",
206
207
  "shadowOffset": {
207
208
  "height": 2,
208
209
  "width": 0,
209
210
  },
210
211
  "shadowOpacity": 0.12,
211
- "shadowRadius": 4,
212
+ "shadowRadius": 2,
212
213
  },
213
214
  undefined,
214
215
  ]
@@ -25,11 +25,7 @@ const Container = styled(Animated.View)<{
25
25
  backgroundColor: theme.__hd__.toast.colors.backgrounds[themeIntent],
26
26
  minHeight: theme.__hd__.toast.sizes.height,
27
27
  flexDirection: 'row',
28
- shadowColor: theme.__hd__.toast.shadows.color,
29
- shadowOffset: theme.__hd__.toast.shadows.offset,
30
- shadowRadius: theme.__hd__.toast.shadows.radius,
31
- shadowOpacity: theme.__hd__.toast.shadows.opacity,
32
- elevation: theme.__hd__.toast.shadows.elevation,
28
+ ...theme.__hd__.toast.shadows.wrapper,
33
29
  }));
34
30
 
35
31
  const IconContainer = styled(View)<ViewProps>(({ theme }) => ({
@@ -14,17 +14,17 @@ exports[`Toast Icon render custom icon correctly 1`] = `
14
14
  {
15
15
  "backgroundColor": "#ecf0ff",
16
16
  "borderRadius": 0,
17
- "elevation": 3,
17
+ "elevation": 6,
18
18
  "flexDirection": "row",
19
19
  "minHeight": 48,
20
20
  "opacity": 0,
21
- "shadowColor": "#121214",
21
+ "shadowColor": "#001f23",
22
22
  "shadowOffset": {
23
23
  "height": 2,
24
24
  "width": 0,
25
25
  },
26
26
  "shadowOpacity": 0.12,
27
- "shadowRadius": 4,
27
+ "shadowRadius": 2,
28
28
  "transform": [
29
29
  {
30
30
  "translateY": 20,
@@ -159,17 +159,17 @@ exports[`Toast renders correctly when intent is error 1`] = `
159
159
  {
160
160
  "backgroundColor": "#fcebe7",
161
161
  "borderRadius": 0,
162
- "elevation": 3,
162
+ "elevation": 6,
163
163
  "flexDirection": "row",
164
164
  "minHeight": 48,
165
165
  "opacity": 0,
166
- "shadowColor": "#121214",
166
+ "shadowColor": "#001f23",
167
167
  "shadowOffset": {
168
168
  "height": 2,
169
169
  "width": 0,
170
170
  },
171
171
  "shadowOpacity": 0.12,
172
- "shadowRadius": 4,
172
+ "shadowRadius": 2,
173
173
  "transform": [
174
174
  {
175
175
  "translateY": 20,
@@ -367,17 +367,17 @@ exports[`Toast renders correctly when intent is info 1`] = `
367
367
  {
368
368
  "backgroundColor": "#ecf0ff",
369
369
  "borderRadius": 0,
370
- "elevation": 3,
370
+ "elevation": 6,
371
371
  "flexDirection": "row",
372
372
  "minHeight": 48,
373
373
  "opacity": 0,
374
- "shadowColor": "#121214",
374
+ "shadowColor": "#001f23",
375
375
  "shadowOffset": {
376
376
  "height": 2,
377
377
  "width": 0,
378
378
  },
379
379
  "shadowOpacity": 0.12,
380
- "shadowRadius": 4,
380
+ "shadowRadius": 2,
381
381
  "transform": [
382
382
  {
383
383
  "translateY": 20,
@@ -575,17 +575,17 @@ exports[`Toast renders correctly when intent is notification 1`] = `
575
575
  {
576
576
  "backgroundColor": "#ffffff",
577
577
  "borderRadius": 0,
578
- "elevation": 3,
578
+ "elevation": 6,
579
579
  "flexDirection": "row",
580
580
  "minHeight": 48,
581
581
  "opacity": 0,
582
- "shadowColor": "#121214",
582
+ "shadowColor": "#001f23",
583
583
  "shadowOffset": {
584
584
  "height": 2,
585
585
  "width": 0,
586
586
  },
587
587
  "shadowOpacity": 0.12,
588
- "shadowRadius": 4,
588
+ "shadowRadius": 2,
589
589
  "transform": [
590
590
  {
591
591
  "translateY": 20,
@@ -751,17 +751,17 @@ exports[`Toast renders correctly when intent is snackbar 1`] = `
751
751
  {
752
752
  "backgroundColor": "#001f23",
753
753
  "borderRadius": 0,
754
- "elevation": 3,
754
+ "elevation": 6,
755
755
  "flexDirection": "row",
756
756
  "minHeight": 48,
757
757
  "opacity": 0,
758
- "shadowColor": "#121214",
758
+ "shadowColor": "#001f23",
759
759
  "shadowOffset": {
760
760
  "height": 2,
761
761
  "width": 0,
762
762
  },
763
763
  "shadowOpacity": 0.12,
764
- "shadowRadius": 4,
764
+ "shadowRadius": 2,
765
765
  "transform": [
766
766
  {
767
767
  "translateY": 20,
@@ -927,17 +927,17 @@ exports[`Toast renders correctly when intent is success 1`] = `
927
927
  {
928
928
  "backgroundColor": "#f0fef4",
929
929
  "borderRadius": 0,
930
- "elevation": 3,
930
+ "elevation": 6,
931
931
  "flexDirection": "row",
932
932
  "minHeight": 48,
933
933
  "opacity": 0,
934
- "shadowColor": "#121214",
934
+ "shadowColor": "#001f23",
935
935
  "shadowOffset": {
936
936
  "height": 2,
937
937
  "width": 0,
938
938
  },
939
939
  "shadowOpacity": 0.12,
940
- "shadowRadius": 4,
940
+ "shadowRadius": 2,
941
941
  "transform": [
942
942
  {
943
943
  "translateY": 20,
@@ -1135,17 +1135,17 @@ exports[`Toast renders correctly when intent is warning 1`] = `
1135
1135
  {
1136
1136
  "backgroundColor": "#fff6eb",
1137
1137
  "borderRadius": 0,
1138
- "elevation": 3,
1138
+ "elevation": 6,
1139
1139
  "flexDirection": "row",
1140
1140
  "minHeight": 48,
1141
1141
  "opacity": 0,
1142
- "shadowColor": "#121214",
1142
+ "shadowColor": "#001f23",
1143
1143
  "shadowOffset": {
1144
1144
  "height": 2,
1145
1145
  "width": 0,
1146
1146
  },
1147
1147
  "shadowOpacity": 0.12,
1148
- "shadowRadius": 4,
1148
+ "shadowRadius": 2,
1149
1149
  "transform": [
1150
1150
  {
1151
1151
  "translateY": 20,
@@ -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
- "elevation": 10,
192
- "offset": {
193
- "height": 3,
194
- "width": 0,
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,
@@ -436,7 +455,7 @@ exports[`theme returns correct theme object 1`] = `
436
455
  "outlinedDefaultBorder": "#bfc1c5",
437
456
  "outlinedSelectedBackground": "#e8e9ea",
438
457
  "outlinedSelectedBorder": "#001f23",
439
- "secondaryBackground": "#ece8ef",
458
+ "secondaryBackground": undefined,
440
459
  "wrapperSelectedBorder": "transparent",
441
460
  },
442
461
  "fontSizes": {
@@ -447,14 +466,14 @@ exports[`theme returns correct theme object 1`] = `
447
466
  },
448
467
  "shadows": {
449
468
  "filledWrapper": {
450
- "elevation": 3,
451
- "shadowColor": "#121214",
469
+ "elevation": 6,
470
+ "shadowColor": "#001f23",
452
471
  "shadowOffset": {
453
472
  "height": 2,
454
473
  "width": 0,
455
474
  },
456
475
  "shadowOpacity": 0.12,
457
- "shadowRadius": 4,
476
+ "shadowRadius": 2,
458
477
  },
459
478
  },
460
479
  "space": {
@@ -648,14 +667,14 @@ exports[`theme returns correct theme object 1`] = `
648
667
  },
649
668
  "shadows": {
650
669
  "wrapper": {
651
- "elevation": 3,
652
- "shadowColor": "#121214",
670
+ "elevation": 6,
671
+ "shadowColor": "#001f23",
653
672
  "shadowOffset": {
654
673
  "height": 2,
655
674
  "width": 0,
656
675
  },
657
676
  "shadowOpacity": 0.12,
658
- "shadowRadius": 4,
677
+ "shadowRadius": 2,
659
678
  },
660
679
  },
661
680
  "space": {
@@ -717,14 +736,14 @@ exports[`theme returns correct theme object 1`] = `
717
736
  },
718
737
  "shadows": {
719
738
  "card": {
720
- "color": "#121214",
721
- "elevation": 3,
722
- "offset": {
739
+ "elevation": 6,
740
+ "shadowColor": "#001f23",
741
+ "shadowOffset": {
723
742
  "height": 2,
724
743
  "width": 0,
725
744
  },
726
- "opacity": 0.12,
727
- "radius": 4,
745
+ "shadowOpacity": 0.12,
746
+ "shadowRadius": 2,
728
747
  },
729
748
  },
730
749
  "space": {
@@ -745,16 +764,19 @@ exports[`theme returns correct theme object 1`] = `
745
764
  "colors": {
746
765
  "background": "#ffffff",
747
766
  "badge": "#795e90",
767
+ "badgeIcon": "#ffffff",
748
768
  "border": {
749
769
  "applied": "#795e90",
750
770
  "idle": "#ffffff",
751
771
  "selected": "#795e90",
752
772
  },
773
+ "icon": "#000000",
753
774
  },
754
775
  "fontSizes": {
755
776
  "icon": 42,
756
777
  },
757
778
  "radii": {
779
+ "badge": 999,
758
780
  "default": 12,
759
781
  },
760
782
  "shadows": {
@@ -768,6 +790,7 @@ exports[`theme returns correct theme object 1`] = `
768
790
  "radius": 4,
769
791
  },
770
792
  "sizes": {
793
+ "badge": 24,
771
794
  "default": 42,
772
795
  },
773
796
  "space": {
@@ -981,14 +1004,16 @@ exports[`theme returns correct theme object 1`] = `
981
1004
  "surfix": 999,
982
1005
  },
983
1006
  "shadows": {
984
- "color": "#121214",
985
- "elevation": 3,
986
- "offset": {
987
- "height": 2,
988
- "width": 0,
1007
+ "container": {
1008
+ "elevation": 6,
1009
+ "shadowColor": "#001f23",
1010
+ "shadowOffset": {
1011
+ "height": 2,
1012
+ "width": 0,
1013
+ },
1014
+ "shadowOpacity": 0.12,
1015
+ "shadowRadius": 2,
989
1016
  },
990
- "opacity": 0.12,
991
- "radius": 4,
992
1017
  },
993
1018
  "sizes": {
994
1019
  "surfixSize": 40,
@@ -1366,14 +1391,16 @@ exports[`theme returns correct theme object 1`] = `
1366
1391
  "default": 16,
1367
1392
  },
1368
1393
  "shadows": {
1369
- "color": "#121214",
1370
- "elevation": 3,
1371
- "offset": {
1372
- "height": 2,
1373
- "width": 0,
1394
+ "wrapper": {
1395
+ "elevation": 6,
1396
+ "shadowColor": "#001f23",
1397
+ "shadowOffset": {
1398
+ "height": 2,
1399
+ "width": 0,
1400
+ },
1401
+ "shadowOpacity": 0.12,
1402
+ "shadowRadius": 2,
1374
1403
  },
1375
- "opacity": 0.12,
1376
- "radius": 4,
1377
1404
  },
1378
1405
  "sizes": {
1379
1406
  "height": 48,
@@ -38,7 +38,11 @@ const getAlertTheme = (theme: GlobalTheme) => {
38
38
  base: theme.borderWidths.base,
39
39
  };
40
40
 
41
- return { colors, radii, sizes, space, borderWidths };
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;
@@ -7,7 +7,7 @@ const getAvatarTheme = (theme: GlobalTheme) => {
7
7
  danger: theme.colors.error,
8
8
  success: theme.colors.success,
9
9
  warning: theme.colors.warning,
10
- text: theme.colors.onDarkGlobalSurface,
10
+ text: theme.colors.white,
11
11
  };
12
12
 
13
13
  const sizes = {