@hero-design/rn 8.36.1 → 8.36.3

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 (37) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/es/index.js +55 -50
  3. package/lib/index.js +55 -50
  4. package/package.json +7 -7
  5. package/src/components/Carousel/StyledCardCarousel.tsx +1 -1
  6. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +8 -8
  7. package/src/components/Checkbox/StyledCheckbox.tsx +7 -14
  8. package/src/components/Checkbox/__tests__/StyledCheckbox.spec.tsx +8 -12
  9. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +4 -88
  10. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +12 -324
  11. package/src/components/Checkbox/__tests__/index.spec.tsx +7 -12
  12. package/src/components/Checkbox/index.tsx +7 -1
  13. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  14. package/src/components/Drawer/index.tsx +3 -3
  15. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  16. package/src/components/FAB/StyledFAB.tsx +1 -1
  17. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +4 -4
  18. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  19. package/src/components/List/StyledListItem.tsx +5 -5
  20. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +6 -6
  21. package/src/components/Toast/StyledToast.tsx +1 -1
  22. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +7 -7
  23. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +29 -14
  24. package/src/theme/components/cardCarousel.ts +5 -5
  25. package/src/theme/components/fab.ts +5 -5
  26. package/src/theme/components/list.ts +7 -4
  27. package/src/theme/components/toast.ts +5 -5
  28. package/src/theme/global/index.ts +3 -0
  29. package/src/theme/global/shadows.ts +19 -0
  30. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -1
  31. package/types/components/Checkbox/index.d.ts +1 -0
  32. package/types/theme/components/cardCarousel.d.ts +1 -1
  33. package/types/theme/components/fab.d.ts +1 -1
  34. package/types/theme/components/list.d.ts +9 -6
  35. package/types/theme/components/toast.d.ts +1 -1
  36. package/types/theme/global/index.d.ts +12 -0
  37. package/types/theme/global/shadows.d.ts +16 -0
@@ -19,7 +19,7 @@ exports[`FAB when animated is false renders StyledFABIcon 1`] = `
19
19
  "alignSelf": "flex-start",
20
20
  "backgroundColor": "#401960",
21
21
  "borderRadius": 999,
22
- "elevation": 2,
22
+ "elevation": 3,
23
23
  "flexDirection": "row",
24
24
  "justifyContent": "center",
25
25
  "padding": 20,
@@ -29,7 +29,7 @@ exports[`FAB when animated is false renders StyledFABIcon 1`] = `
29
29
  "width": 0,
30
30
  },
31
31
  "shadowOpacity": 0.12,
32
- "shadowRadius": 8,
32
+ "shadowRadius": 4,
33
33
  },
34
34
  Array [
35
35
  Object {
@@ -87,7 +87,7 @@ exports[`FAB when animated is true renders animatedFABIcon 1`] = `
87
87
  "alignSelf": "flex-start",
88
88
  "backgroundColor": "#401960",
89
89
  "borderRadius": 999,
90
- "elevation": 2,
90
+ "elevation": 3,
91
91
  "flexDirection": "row",
92
92
  "justifyContent": "center",
93
93
  "padding": 20,
@@ -97,7 +97,7 @@ exports[`FAB when animated is true renders animatedFABIcon 1`] = `
97
97
  "width": 0,
98
98
  },
99
99
  "shadowOpacity": 0.12,
100
- "shadowRadius": 8,
100
+ "shadowRadius": 4,
101
101
  },
102
102
  Array [
103
103
  Object {
@@ -185,7 +185,7 @@ exports[`FAB when title has value renders correctly 1`] = `
185
185
  "alignSelf": "flex-start",
186
186
  "backgroundColor": "#401960",
187
187
  "borderRadius": 999,
188
- "elevation": 2,
188
+ "elevation": 3,
189
189
  "flexDirection": "row",
190
190
  "justifyContent": "center",
191
191
  "padding": 20,
@@ -195,7 +195,7 @@ exports[`FAB when title has value renders correctly 1`] = `
195
195
  "width": 0,
196
196
  },
197
197
  "shadowOpacity": 0.12,
198
- "shadowRadius": 8,
198
+ "shadowRadius": 4,
199
199
  },
200
200
  Array [
201
201
  Object {
@@ -29,11 +29,11 @@ const StyledListItemContainer = styled(TouchableHighlight)<{
29
29
  return {
30
30
  ...sharedStyles,
31
31
  alignItems: 'center',
32
- shadowColor: theme.colors.secondaryOutline,
33
- shadowRadius: theme.__hd__.list.radii.cardShadow,
34
- shadowOffset: theme.__hd__.list.shadows.cardOffset,
35
- shadowOpacity: theme.__hd__.list.opacity.cardShadow,
36
- elevation: theme.__hd__.list.shadows.cardElevation,
32
+ shadowColor: theme.__hd__.list.shadows.card.color,
33
+ shadowRadius: theme.__hd__.list.shadows.card.radius,
34
+ shadowOffset: theme.__hd__.list.shadows.card.offset,
35
+ shadowOpacity: theme.__hd__.list.shadows.card.opacity,
36
+ elevation: theme.__hd__.list.shadows.card.elevation,
37
37
  };
38
38
  default:
39
39
  return sharedStyles;
@@ -102,15 +102,15 @@ exports[`ListItemContainer renders correctly themeSelected false themeVariant ca
102
102
  "alignItems": "center",
103
103
  "backgroundColor": "#ffffff",
104
104
  "borderRadius": 8,
105
- "elevation": 10,
105
+ "elevation": 3,
106
106
  "flexDirection": "row",
107
107
  "padding": 16,
108
- "shadowColor": "#e8e9ea",
108
+ "shadowColor": "#001f23",
109
109
  "shadowOffset": Object {
110
110
  "height": 2,
111
111
  "width": 0,
112
112
  },
113
- "shadowOpacity": 1,
113
+ "shadowOpacity": 0.12,
114
114
  "shadowRadius": 4,
115
115
  },
116
116
  undefined,
@@ -203,15 +203,15 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant car
203
203
  "alignItems": "center",
204
204
  "backgroundColor": "#ece8ef",
205
205
  "borderRadius": 8,
206
- "elevation": 10,
206
+ "elevation": 3,
207
207
  "flexDirection": "row",
208
208
  "padding": 16,
209
- "shadowColor": "#e8e9ea",
209
+ "shadowColor": "#001f23",
210
210
  "shadowOffset": Object {
211
211
  "height": 2,
212
212
  "width": 0,
213
213
  },
214
- "shadowOpacity": 1,
214
+ "shadowOpacity": 0.12,
215
215
  "shadowRadius": 4,
216
216
  },
217
217
  undefined,
@@ -22,7 +22,7 @@ const Container = styled(Animated.View)<{
22
22
  backgroundColor: theme.__hd__.toast.colors[themeIntent],
23
23
  minHeight: theme.__hd__.toast.sizes.height,
24
24
  flexDirection: 'row',
25
- shadowColor: theme.__hd__.toast.colors.shadow,
25
+ shadowColor: theme.__hd__.toast.shadows.color,
26
26
  shadowOffset: theme.__hd__.toast.shadows.offset,
27
27
  shadowRadius: theme.__hd__.toast.shadows.radius,
28
28
  shadowOpacity: theme.__hd__.toast.shadows.opacity,
@@ -7,7 +7,7 @@ exports[`Toast Icon render custom icon correctly 1`] = `
7
7
  Object {
8
8
  "backgroundColor": "#b5c3fd",
9
9
  "borderRadius": 0,
10
- "elevation": 4,
10
+ "elevation": 3,
11
11
  "flexDirection": "row",
12
12
  "minHeight": 48,
13
13
  "opacity": 0,
@@ -113,7 +113,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
113
113
  Object {
114
114
  "backgroundColor": "#f46363",
115
115
  "borderRadius": 0,
116
- "elevation": 4,
116
+ "elevation": 3,
117
117
  "flexDirection": "row",
118
118
  "minHeight": 48,
119
119
  "opacity": 0,
@@ -260,7 +260,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
260
260
  Object {
261
261
  "backgroundColor": "#b5c3fd",
262
262
  "borderRadius": 0,
263
- "elevation": 4,
263
+ "elevation": 3,
264
264
  "flexDirection": "row",
265
265
  "minHeight": 48,
266
266
  "opacity": 0,
@@ -407,7 +407,7 @@ exports[`Toast renders correctly when intent is notification 1`] = `
407
407
  Object {
408
408
  "backgroundColor": "#ffffff",
409
409
  "borderRadius": 0,
410
- "elevation": 4,
410
+ "elevation": 3,
411
411
  "flexDirection": "row",
412
412
  "minHeight": 48,
413
413
  "opacity": 0,
@@ -527,7 +527,7 @@ exports[`Toast renders correctly when intent is snackbar 1`] = `
527
527
  Object {
528
528
  "backgroundColor": "#001f23",
529
529
  "borderRadius": 0,
530
- "elevation": 4,
530
+ "elevation": 3,
531
531
  "flexDirection": "row",
532
532
  "minHeight": 48,
533
533
  "opacity": 0,
@@ -647,7 +647,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
647
647
  Object {
648
648
  "backgroundColor": "#5ace7d",
649
649
  "borderRadius": 0,
650
- "elevation": 4,
650
+ "elevation": 3,
651
651
  "flexDirection": "row",
652
652
  "minHeight": 48,
653
653
  "opacity": 0,
@@ -794,7 +794,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
794
794
  Object {
795
795
  "backgroundColor": "#ffbe71",
796
796
  "borderRadius": 0,
797
- "elevation": 4,
797
+ "elevation": 3,
798
798
  "flexDirection": "row",
799
799
  "minHeight": 48,
800
800
  "opacity": 0,
@@ -288,19 +288,19 @@ Object {
288
288
  "cardCarousel": Object {
289
289
  "colors": Object {
290
290
  "carouselItemBackground": "#f6f6f7",
291
- "shadow": "#001f23",
292
291
  },
293
292
  "radii": Object {
294
293
  "card": 8,
295
294
  },
296
295
  "shadows": Object {
297
- "elevation": 4,
296
+ "color": "#001f23",
297
+ "elevation": 3,
298
298
  "offset": Object {
299
299
  "height": 2,
300
300
  "width": 0,
301
301
  },
302
302
  "opacity": 0.12,
303
- "radius": 8,
303
+ "radius": 4,
304
304
  },
305
305
  "space": Object {
306
306
  "carouselItemSpacing": 8,
@@ -475,7 +475,6 @@ Object {
475
475
  "buttonPressedBackground": "#33144d",
476
476
  "headerText": "#001f23",
477
477
  "icon": "#ffffff",
478
- "shadow": "#001f23",
479
478
  "titleText": "#ffffff",
480
479
  },
481
480
  "fontSizes": Object {
@@ -498,13 +497,14 @@ Object {
498
497
  "actionItem": 999,
499
498
  },
500
499
  "shadows": Object {
501
- "elevation": 2,
500
+ "color": "#001f23",
501
+ "elevation": 3,
502
502
  "offset": Object {
503
503
  "height": 2,
504
504
  "width": 0,
505
505
  },
506
506
  "opacity": 0.12,
507
- "radius": 8,
507
+ "radius": 4,
508
508
  },
509
509
  "sizes": Object {
510
510
  "height": 64,
@@ -564,21 +564,24 @@ Object {
564
564
  "listItemContainerBackground": "#ffffff",
565
565
  },
566
566
  "opacity": Object {
567
- "cardShadow": 1,
568
567
  "disabled": 0.38,
569
568
  "enabled": 1,
570
569
  },
571
570
  "radii": Object {
572
571
  "basicItem": 4,
573
- "cardShadow": 4,
574
572
  "item": 8,
575
573
  "leadingStatus": 999,
576
574
  },
577
575
  "shadows": Object {
578
- "cardElevation": 10,
579
- "cardOffset": Object {
580
- "height": 2,
581
- "width": 0,
576
+ "card": Object {
577
+ "color": "#001f23",
578
+ "elevation": 3,
579
+ "offset": Object {
580
+ "height": 2,
581
+ "width": 0,
582
+ },
583
+ "opacity": 0.12,
584
+ "radius": 4,
582
585
  },
583
586
  },
584
587
  "space": Object {
@@ -1053,7 +1056,6 @@ Object {
1053
1056
  "error": "#f46363",
1054
1057
  "info": "#b5c3fd",
1055
1058
  "notification": "#ffffff",
1056
- "shadow": "#001f23",
1057
1059
  "snackbar": "#001f23",
1058
1060
  "success": "#5ace7d",
1059
1061
  "warning": "#ffbe71",
@@ -1062,7 +1064,8 @@ Object {
1062
1064
  "default": 16,
1063
1065
  },
1064
1066
  "shadows": Object {
1065
- "elevation": 4,
1067
+ "color": "#001f23",
1068
+ "elevation": 3,
1066
1069
  "offset": Object {
1067
1070
  "height": 2,
1068
1071
  "width": 0,
@@ -1381,6 +1384,18 @@ Object {
1381
1384
  "xxlarge": 20,
1382
1385
  "xxxlarge": 24,
1383
1386
  },
1387
+ "shadows": Object {
1388
+ "default": Object {
1389
+ "elevation": 3,
1390
+ "shadowColor": "#001f23",
1391
+ "shadowOffset": Object {
1392
+ "height": 2,
1393
+ "width": 0,
1394
+ },
1395
+ "shadowOpacity": 0.12,
1396
+ "shadowRadius": 4,
1397
+ },
1398
+ },
1384
1399
  "sizes": Object {
1385
1400
  "14xlarge": 136,
1386
1401
  "15xlarge": 144,
@@ -8,14 +8,14 @@ const getCardCarouselTheme = (theme: GlobalTheme) => {
8
8
  };
9
9
 
10
10
  const colors = {
11
- shadow: theme.colors.primaryOutline,
12
11
  carouselItemBackground: theme.colors.defaultSurface,
13
12
  };
14
13
  const shadows = {
15
- offset: { width: 0, height: 2 },
16
- opacity: 0.12,
17
- radius: theme.radii.medium,
18
- elevation: 4,
14
+ color: theme.shadows.default.shadowColor,
15
+ offset: theme.shadows.default.shadowOffset,
16
+ opacity: theme.shadows.default.shadowOpacity,
17
+ radius: theme.shadows.default.shadowRadius,
18
+ elevation: theme.shadows.default.elevation,
19
19
  };
20
20
 
21
21
  const radii = {
@@ -12,7 +12,6 @@ const getFABTheme = (theme: GlobalTheme) => {
12
12
  backdropBackground: theme.colors.overlayGlobalSurface,
13
13
  titleText: theme.colors.onPrimary,
14
14
  actionItemText: theme.colors.onPrimary,
15
- shadow: theme.colors.primaryOutline,
16
15
  };
17
16
 
18
17
  const sizes = {
@@ -42,10 +41,11 @@ const getFABTheme = (theme: GlobalTheme) => {
42
41
  };
43
42
 
44
43
  const shadows = {
45
- offset: { width: 0, height: 2 },
46
- opacity: 0.12,
47
- radius: theme.radii.medium,
48
- elevation: 2,
44
+ offset: theme.shadows.default.shadowOffset,
45
+ opacity: theme.shadows.default.shadowOpacity,
46
+ radius: theme.shadows.default.shadowRadius,
47
+ elevation: theme.shadows.default.elevation,
48
+ color: theme.shadows.default.shadowColor,
49
49
  };
50
50
 
51
51
  const space = {
@@ -23,13 +23,17 @@ const getListTheme = (theme: GlobalTheme) => {
23
23
  const radii = {
24
24
  item: theme.radii.medium,
25
25
  basicItem: theme.radii.base,
26
- cardShadow: theme.radii.base,
27
26
  leadingStatus: theme.radii.rounded,
28
27
  };
29
28
 
30
29
  const shadows = {
31
- cardOffset: { width: 0, height: 2 },
32
- cardElevation: 10,
30
+ card: {
31
+ offset: theme.shadows.default.shadowOffset,
32
+ elevation: theme.shadows.default.elevation,
33
+ color: theme.shadows.default.shadowColor,
34
+ radius: theme.shadows.default.shadowRadius,
35
+ opacity: theme.shadows.default.shadowOpacity,
36
+ },
33
37
  };
34
38
 
35
39
  const widths = {
@@ -39,7 +43,6 @@ const getListTheme = (theme: GlobalTheme) => {
39
43
  const opacity = {
40
44
  disabled: 0.38,
41
45
  enabled: 1,
42
- cardShadow: 1,
43
46
  };
44
47
 
45
48
  return { colors, space, radii, widths, opacity, shadows };
@@ -9,7 +9,6 @@ const getToastTheme = (theme: GlobalTheme) => {
9
9
  notification: theme.colors.defaultGlobalSurface,
10
10
  snackbar: theme.colors.darkGlobalSurface,
11
11
  divider: theme.colors.secondaryOutline,
12
- shadow: theme.colors.primaryOutline,
13
12
  };
14
13
 
15
14
  const sizes = {
@@ -34,10 +33,11 @@ const getToastTheme = (theme: GlobalTheme) => {
34
33
  };
35
34
 
36
35
  const shadows = {
37
- offset: { width: 0, height: 2 },
38
- opacity: 0.12,
39
- radius: 4,
40
- elevation: 4,
36
+ offset: theme.shadows.default.shadowOffset,
37
+ opacity: theme.shadows.default.shadowOpacity,
38
+ radius: theme.shadows.default.shadowRadius,
39
+ elevation: theme.shadows.default.elevation,
40
+ color: theme.shadows.default.shadowColor,
41
41
  };
42
42
 
43
43
  return { colors, radii, sizes, space, borderWidths, shadows };
@@ -12,6 +12,7 @@ import { getSizes } from './sizes';
12
12
  import { getBorderWidths, getRadii } from './borders';
13
13
  import type { Scale } from './scale';
14
14
  import type { SystemPalette } from './colors/types';
15
+ import { getShadows } from './shadows';
15
16
 
16
17
  const getGlobalTheme = (scale: Scale, systemPalette: SystemPalette) => {
17
18
  const fonts = getFonts(scale.font);
@@ -21,6 +22,7 @@ const getGlobalTheme = (scale: Scale, systemPalette: SystemPalette) => {
21
22
  const space = getSpace(scale.space);
22
23
  const sizes = getSizes(scale.size);
23
24
  const radii = getRadii(scale.radius);
25
+ const shadows = getShadows(systemPalette);
24
26
 
25
27
  return {
26
28
  colors: {
@@ -33,6 +35,7 @@ const getGlobalTheme = (scale: Scale, systemPalette: SystemPalette) => {
33
35
  space,
34
36
  sizes,
35
37
  radii,
38
+ shadows,
36
39
  };
37
40
  };
38
41
 
@@ -0,0 +1,19 @@
1
+ import type { SystemPalette } from '.';
2
+
3
+ const getShadows = (systemPalette: SystemPalette) => ({
4
+ default: {
5
+ shadowOffset: {
6
+ width: 0,
7
+ height: 2,
8
+ },
9
+ shadowColor: systemPalette.primaryOutline,
10
+ shadowOpacity: 0.12,
11
+ shadowRadius: 4,
12
+ elevation: 3,
13
+ },
14
+ });
15
+
16
+ type Shadows = ReturnType<typeof getShadows>;
17
+
18
+ export { getShadows };
19
+ export type { Shadows };
@@ -5,7 +5,6 @@ export declare const StyledWrapper: import("@emotion/native").StyledComponent<im
5
5
  theme?: import("@emotion/react").Theme | undefined;
6
6
  as?: import("react").ElementType<any> | undefined;
7
7
  } & {
8
- themeWithBorder: boolean;
9
8
  themeState: CheckboxThemeState;
10
9
  }, {}, {
11
10
  ref?: import("react").Ref<TouchableOpacity> | undefined;
@@ -9,6 +9,7 @@ export interface CheckboxProps {
9
9
  */
10
10
  description?: string;
11
11
  /**
12
+ * @deprecated This prop will be removed in the next major release. Checkboxes will always have border.
12
13
  * Whether the border is shown.
13
14
  */
14
15
  withBorder?: boolean;
@@ -1,6 +1,7 @@
1
1
  import type { GlobalTheme } from '../global';
2
2
  declare const getCardCarouselTheme: (theme: GlobalTheme) => {
3
3
  shadows: {
4
+ color: string;
4
5
  offset: {
5
6
  width: number;
6
7
  height: number;
@@ -10,7 +11,6 @@ declare const getCardCarouselTheme: (theme: GlobalTheme) => {
10
11
  elevation: number;
11
12
  };
12
13
  colors: {
13
- shadow: string;
14
14
  carouselItemBackground: string;
15
15
  };
16
16
  space: {
@@ -24,7 +24,6 @@ declare const getFABTheme: (theme: GlobalTheme) => {
24
24
  backdropBackground: string;
25
25
  titleText: string;
26
26
  actionItemText: string;
27
- shadow: string;
28
27
  };
29
28
  sizes: {
30
29
  width: number;
@@ -46,6 +45,7 @@ declare const getFABTheme: (theme: GlobalTheme) => {
46
45
  opacity: number;
47
46
  radius: number;
48
47
  elevation: number;
48
+ color: string;
49
49
  };
50
50
  space: {
51
51
  actionItemPadding: number;
@@ -20,7 +20,6 @@ declare const getListTheme: (theme: GlobalTheme) => {
20
20
  radii: {
21
21
  item: number;
22
22
  basicItem: number;
23
- cardShadow: number;
24
23
  leadingStatus: number;
25
24
  };
26
25
  widths: {
@@ -29,14 +28,18 @@ declare const getListTheme: (theme: GlobalTheme) => {
29
28
  opacity: {
30
29
  disabled: number;
31
30
  enabled: number;
32
- cardShadow: number;
33
31
  };
34
32
  shadows: {
35
- cardOffset: {
36
- width: number;
37
- height: number;
33
+ card: {
34
+ offset: {
35
+ width: number;
36
+ height: number;
37
+ };
38
+ elevation: number;
39
+ color: string;
40
+ radius: number;
41
+ opacity: number;
38
42
  };
39
- cardElevation: number;
40
43
  };
41
44
  };
42
45
  export default getListTheme;
@@ -8,7 +8,6 @@ declare const getToastTheme: (theme: GlobalTheme) => {
8
8
  notification: string;
9
9
  snackbar: string;
10
10
  divider: string;
11
- shadow: string;
12
11
  };
13
12
  radii: {
14
13
  default: number;
@@ -35,6 +34,7 @@ declare const getToastTheme: (theme: GlobalTheme) => {
35
34
  opacity: number;
36
35
  radius: number;
37
36
  elevation: number;
37
+ color: string;
38
38
  };
39
39
  };
40
40
  export default getToastTheme;
@@ -59,6 +59,18 @@ declare const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
59
59
  space: import("./space").Space;
60
60
  sizes: import("./sizes").Sizes;
61
61
  radii: import("./borders").Radii;
62
+ shadows: {
63
+ default: {
64
+ shadowOffset: {
65
+ width: number;
66
+ height: number;
67
+ };
68
+ shadowColor: string;
69
+ shadowOpacity: number;
70
+ shadowRadius: number;
71
+ elevation: number;
72
+ };
73
+ };
62
74
  };
63
75
  type GlobalTheme = ReturnType<typeof getGlobalTheme>;
64
76
  export type { GlobalTheme, Scale, SystemPalette };
@@ -0,0 +1,16 @@
1
+ import type { SystemPalette } from '.';
2
+ declare const getShadows: (systemPalette: SystemPalette) => {
3
+ default: {
4
+ shadowOffset: {
5
+ width: number;
6
+ height: number;
7
+ };
8
+ shadowColor: string;
9
+ shadowOpacity: number;
10
+ shadowRadius: number;
11
+ elevation: number;
12
+ };
13
+ };
14
+ type Shadows = ReturnType<typeof getShadows>;
15
+ export { getShadows };
16
+ export type { Shadows };