@hero-design/rn 8.91.1 → 8.91.4

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 (106) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/CHANGELOG.md +27 -0
  3. package/es/index.js +170 -77
  4. package/lib/index.js +170 -77
  5. package/package.json +1 -1
  6. package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +12 -12
  7. package/src/components/BottomSheet/StyledBottomSheet.tsx +0 -10
  8. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +0 -16
  9. package/src/components/Calendar/CalendarRange.tsx +5 -1
  10. package/src/components/Calendar/__tests__/helper.spec.ts +20 -8
  11. package/src/components/Calendar/helpers.ts +6 -2
  12. package/src/components/Checkbox/StyledCheckbox.tsx +3 -3
  13. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
  14. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  15. package/src/components/Checkbox/__tests__/index.spec.tsx +11 -7
  16. package/src/components/Checkbox/index.tsx +11 -2
  17. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  18. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +63 -3
  19. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +21 -1
  20. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +21 -1
  21. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +42 -18
  22. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -1
  23. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  24. package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  25. package/src/components/FAB/StyledFAB.tsx +1 -5
  26. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +4 -4
  27. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  28. package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  29. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +2 -1
  30. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
  31. package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  32. package/src/components/RichTextEditor/RichTextEditor.tsx +2 -1
  33. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +40 -2
  34. package/src/components/Search/SearchOneLine.tsx +3 -1
  35. package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +7 -0
  36. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +147 -47
  37. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +126 -38
  38. package/src/components/Slider/__tests__/__snapshots__/RangeSlider.spec.tsx.snap +2 -2
  39. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  40. package/src/components/Switch/StyledSwitch.tsx +1 -0
  41. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +7 -3
  42. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  43. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +337 -16
  44. package/src/components/TextInput/__tests__/index.spec.tsx +2 -0
  45. package/src/components/TextInput/index.tsx +7 -2
  46. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +42 -2
  47. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +42 -10
  48. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +7 -7
  49. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +52 -29
  50. package/src/theme/components/bottomSheet.ts +2 -9
  51. package/src/theme/components/checkbox.ts +7 -0
  52. package/src/theme/components/fab.ts +5 -9
  53. package/src/theme/components/switch.ts +5 -5
  54. package/src/theme/components/textInput.ts +1 -0
  55. package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +2 -0
  56. package/src/theme/global/colors/__tests__/__snapshots__/global.spec.ts.snap +2 -0
  57. package/src/theme/global/colors/__tests__/__snapshots__/jobs.spec.ts.snap +2 -0
  58. package/src/theme/global/colors/__tests__/__snapshots__/swag.spec.ts.snap +2 -0
  59. package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +6 -3
  60. package/src/theme/global/colors/__tests__/__snapshots__/swagLightGlobal.spec.ts.snap +5 -3
  61. package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +6 -3
  62. package/src/theme/global/colors/__tests__/__snapshots__/wallet.spec.ts.snap +2 -0
  63. package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +2 -0
  64. package/src/theme/global/colors/ehWorkDark.ts +1 -0
  65. package/src/theme/global/colors/global.ts +3 -0
  66. package/src/theme/global/colors/swagLight.ts +1 -0
  67. package/src/theme/global/colors/swagLightGlobal.ts +3 -3
  68. package/src/theme/global/colors/swagLightJobs.ts +3 -1
  69. package/src/theme/global/colors/types.ts +2 -0
  70. package/src/theme/global/shadows/__tests__/__snapshots__/ehWorkDark.spec.ts.snap +36 -0
  71. package/src/theme/global/shadows/__tests__/__snapshots__/swagLight.spec.ts.snap +36 -0
  72. package/src/theme/global/shadows/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +36 -0
  73. package/src/theme/global/shadows/__tests__/ehWorkDark.spec.ts +7 -0
  74. package/src/theme/global/shadows/__tests__/index.spec.ts +24 -0
  75. package/src/theme/global/shadows/__tests__/swagLight.spec.ts +7 -0
  76. package/src/theme/global/shadows/__tests__/swagLightJobs.spec.ts +7 -0
  77. package/src/theme/global/shadows/ehWorkDark.ts +37 -0
  78. package/src/theme/global/shadows/index.ts +23 -0
  79. package/src/theme/global/shadows/swagLight.ts +37 -0
  80. package/src/theme/global/shadows/swagLightJobs.ts +37 -0
  81. package/src/theme/global/shadows/types.ts +16 -0
  82. package/stats/8.91.2/rn-stats.html +4842 -0
  83. package/stats/8.91.3/rn-stats.html +4844 -0
  84. package/stats/8.91.4/rn-stats.html +4842 -0
  85. package/types/components/Calendar/helpers.d.ts +5 -2
  86. package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
  87. package/types/components/Checkbox/index.d.ts +2 -1
  88. package/types/components/TextInput/index.d.ts +3 -1
  89. package/types/theme/components/bottomSheet.d.ts +1 -10
  90. package/types/theme/components/checkbox.d.ts +7 -0
  91. package/types/theme/components/chip.d.ts +1 -10
  92. package/types/theme/components/fab.d.ts +2 -9
  93. package/types/theme/components/floatingIsland.d.ts +1 -10
  94. package/types/theme/components/slider.d.ts +1 -10
  95. package/types/theme/components/switch.d.ts +1 -1
  96. package/types/theme/components/textInput.d.ts +1 -0
  97. package/types/theme/global/colors/swagLightJobs.d.ts +2 -50
  98. package/types/theme/global/colors/types.d.ts +2 -0
  99. package/types/theme/global/index.d.ts +2 -12
  100. package/types/theme/global/shadows/ehWorkDark.d.ts +3 -0
  101. package/types/theme/global/shadows/index.d.ts +5 -0
  102. package/types/theme/global/shadows/swagLight.d.ts +3 -0
  103. package/types/theme/global/shadows/swagLightJobs.d.ts +3 -0
  104. package/types/theme/global/shadows/types.d.ts +15 -0
  105. package/src/theme/global/shadows.ts +0 -19
  106. package/types/theme/global/shadows.d.ts +0 -16
@@ -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",
@@ -16,16 +17,17 @@ exports[`swagLightJobs returns correct theme object 1`] = `
16
17
  "error": "#f46363",
17
18
  "errorSurface": "#fcebe7",
18
19
  "highlightedSurface": "#f1e9fb",
19
- "inactiveOnDefaultGlobalSurface": "#89898a",
20
- "inactiveOutline": "#89898a",
20
+ "inactiveOnDefaultGlobalSurface": "#808f91",
21
+ "inactiveOutline": "#808f91",
21
22
  "info": "#b5c3fd",
22
23
  "infoSurface": "#ecf0ff",
23
24
  "mutedArchived": "#bcbdbf",
24
25
  "mutedError": "#f68282",
25
26
  "mutedInfo": "#c4cffd",
26
- "mutedOnDefaultGlobalSurface": "#59595b",
27
+ "mutedOnDefaultGlobalSurface": "#4d6265",
27
28
  "mutedSuccess": "#7bd897",
28
29
  "mutedWarning": "#ffcb8d",
30
+ "name": "swagLightJobs",
29
31
  "neutralGlobalSurface": "#f6f6f7",
30
32
  "onArchivedSurface": "#606065",
31
33
  "onDarkGlobalSurface": "#ffffff",
@@ -47,5 +49,6 @@ exports[`swagLightJobs returns correct theme object 1`] = `
47
49
  "successSurface": "#f0fef4",
48
50
  "warning": "#ffbe71",
49
51
  "warningSurface": "#fff6eb",
52
+ "white": "#ffffff",
50
53
  }
51
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
  `;
@@ -58,6 +58,7 @@ const ehWorkDarkSystemPalette: SystemPalette = {
58
58
  decorativeSecondarySurface: '#4c1d95',
59
59
  // Theme Mode
60
60
  themeMode: 'dark',
61
+ name: 'ehWorkDark',
61
62
  };
62
63
 
63
64
  export default ehWorkDarkSystemPalette;
@@ -46,6 +46,9 @@ const globalPalette: GlobalSystemPalette = {
46
46
  archivedSurface: palette.cumberlandFog,
47
47
  onArchivedSurface: palette.windsorGrey,
48
48
  // End of Updated 21 / Nov / 22
49
+
50
+ black: '#000000',
51
+ white: '#ffffff',
49
52
  };
50
53
 
51
54
  export default globalPalette;
@@ -21,6 +21,7 @@ const swagSystemPalette: SystemPalette = {
21
21
  ...swagLightGlobalPalette,
22
22
  // Brand
23
23
  ...swagBrandSystemPallete,
24
+ name: 'swagLight',
24
25
  };
25
26
 
26
27
  export default swagSystemPalette;
@@ -5,10 +5,10 @@ import globalPalette from './global';
5
5
  const swagLightGlobalPalette: GlobalSystemPalette = {
6
6
  ...globalPalette,
7
7
  onDefaultGlobalSurface: palette.offBlack,
8
- mutedOnDefaultGlobalSurface: palette.offBlackLight30,
9
- inactiveOnDefaultGlobalSurface: palette.offBlackLight50,
8
+ mutedOnDefaultGlobalSurface: '#4d6265',
9
+ inactiveOnDefaultGlobalSurface: '#808f91',
10
10
  primaryOutline: palette.offBlack,
11
- inactiveOutline: palette.offBlackLight50,
11
+ inactiveOutline: '#808f91',
12
12
  };
13
13
 
14
14
  export default swagLightGlobalPalette;
@@ -1,7 +1,9 @@
1
1
  import swagLightSystemPalette from './swagLight';
2
+ import { SystemPalette } from './types';
2
3
 
3
- const swagLightJobsSystemPalette = {
4
+ const swagLightJobsSystemPalette: SystemPalette = {
4
5
  ...swagLightSystemPalette,
6
+ name: 'swagLightJobs',
5
7
  secondary: '#40d1ff',
6
8
  onSecondary: '#460078',
7
9
  secondaryHighlightedSurface: '#ecfaff',
@@ -65,7 +65,9 @@ export type BrandSystemPalette = {
65
65
  };
66
66
 
67
67
  export type ThemeMode = 'light' | 'dark';
68
+ export type ThemeName = 'swagLight' | 'swagLightJobs' | 'ehWorkDark';
68
69
  export type SystemPalette = GlobalSystemPalette &
69
70
  BrandSystemPalette & {
70
71
  themeMode?: ThemeMode;
72
+ name?: ThemeName;
71
73
  };
@@ -0,0 +1,36 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`ehWorkDarkShadowPalette returns correct theme object 1`] = `
4
+ {
5
+ "cardDrawer": {
6
+ "elevation": 6,
7
+ "shadowColor": "#000000",
8
+ "shadowOffset": {
9
+ "height": 2,
10
+ "width": 0,
11
+ },
12
+ "shadowOpacity": 0.56,
13
+ "shadowRadius": 2,
14
+ },
15
+ "default": {
16
+ "elevation": 3,
17
+ "shadowColor": "#a9a9b2",
18
+ "shadowOffset": {
19
+ "height": 2,
20
+ "width": 0,
21
+ },
22
+ "shadowOpacity": 0.12,
23
+ "shadowRadius": 4,
24
+ },
25
+ "tabBar": {
26
+ "elevation": 10,
27
+ "shadowColor": "#000000",
28
+ "shadowOffset": {
29
+ "height": -4,
30
+ "width": 0,
31
+ },
32
+ "shadowOpacity": 0.24,
33
+ "shadowRadius": 6,
34
+ },
35
+ }
36
+ `;
@@ -0,0 +1,36 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`swagLightShadowPalette returns correct theme object 1`] = `
4
+ {
5
+ "cardDrawer": {
6
+ "elevation": 6,
7
+ "shadowColor": "#001f23",
8
+ "shadowOffset": {
9
+ "height": 2,
10
+ "width": 0,
11
+ },
12
+ "shadowOpacity": 0.12,
13
+ "shadowRadius": 2,
14
+ },
15
+ "default": {
16
+ "elevation": 3,
17
+ "shadowColor": "#121214",
18
+ "shadowOffset": {
19
+ "height": 2,
20
+ "width": 0,
21
+ },
22
+ "shadowOpacity": 0.12,
23
+ "shadowRadius": 4,
24
+ },
25
+ "tabBar": {
26
+ "elevation": 10,
27
+ "shadowColor": "#001f23",
28
+ "shadowOffset": {
29
+ "height": -4,
30
+ "width": 0,
31
+ },
32
+ "shadowOpacity": 0.04,
33
+ "shadowRadius": 6,
34
+ },
35
+ }
36
+ `;
@@ -0,0 +1,36 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`swagLightJobsShadowPalette returns correct theme object 1`] = `
4
+ {
5
+ "cardDrawer": {
6
+ "elevation": 6,
7
+ "shadowColor": "#001f23",
8
+ "shadowOffset": {
9
+ "height": 2,
10
+ "width": 0,
11
+ },
12
+ "shadowOpacity": 0.12,
13
+ "shadowRadius": 2,
14
+ },
15
+ "default": {
16
+ "elevation": 3,
17
+ "shadowColor": "#121214",
18
+ "shadowOffset": {
19
+ "height": 2,
20
+ "width": 0,
21
+ },
22
+ "shadowOpacity": 0.12,
23
+ "shadowRadius": 4,
24
+ },
25
+ "tabBar": {
26
+ "elevation": 10,
27
+ "shadowColor": "#001f23",
28
+ "shadowOffset": {
29
+ "height": -4,
30
+ "width": 0,
31
+ },
32
+ "shadowOpacity": 0.04,
33
+ "shadowRadius": 6,
34
+ },
35
+ }
36
+ `;
@@ -0,0 +1,7 @@
1
+ import ehWorkDarkShadowPalette from '../ehWorkDark';
2
+
3
+ describe('ehWorkDarkShadowPalette', () => {
4
+ it('returns correct theme object', () => {
5
+ expect(ehWorkDarkShadowPalette).toMatchSnapshot();
6
+ });
7
+ });
@@ -0,0 +1,24 @@
1
+ import swagLightSystemPalette from '../../colors/swagLight';
2
+ import swagLightJobsSystemPalette from '../../colors/swagLightJobs';
3
+ import ehWorkDarkSystemPalette from '../../colors/ehWorkDark';
4
+ import swagSystemPalette from '../../colors/swag';
5
+ import { getShadows } from '../index';
6
+ import swagLightShadowPalette from '../swagLight';
7
+ import swagLightJobsShadowPalette from '../swagLightJobs';
8
+ import ehWorkDarkShadowPalette from '../ehWorkDark';
9
+
10
+ describe('getShadows', () => {
11
+ it.each`
12
+ colorPalette | shadowPalette
13
+ ${swagLightSystemPalette} | ${swagLightShadowPalette}
14
+ ${swagLightJobsSystemPalette} | ${swagLightJobsShadowPalette}
15
+ ${ehWorkDarkSystemPalette} | ${ehWorkDarkShadowPalette}
16
+ ${swagSystemPalette} | ${swagLightShadowPalette}
17
+ `(
18
+ 'should return the correct shadow palette for $colorPalette',
19
+ ({ colorPalette, shadowPalette }) => {
20
+ const actual = getShadows(colorPalette);
21
+ expect(actual).toEqual(shadowPalette);
22
+ }
23
+ );
24
+ });
@@ -0,0 +1,7 @@
1
+ import swagLightShadowPalette from '../swagLight';
2
+
3
+ describe('swagLightShadowPalette', () => {
4
+ it('returns correct theme object', () => {
5
+ expect(swagLightShadowPalette).toMatchSnapshot();
6
+ });
7
+ });
@@ -0,0 +1,7 @@
1
+ import swagLightJobsShadowPalette from '../swagLightJobs';
2
+
3
+ describe('swagLightJobsShadowPalette', () => {
4
+ it('returns correct theme object', () => {
5
+ expect(swagLightJobsShadowPalette).toMatchSnapshot();
6
+ });
7
+ });
@@ -0,0 +1,37 @@
1
+ import ehWorkDarkSystemPalette from '../colors/ehWorkDark';
2
+ import type { ShadowPalette } from './types';
3
+
4
+ const ehWorkDarkShadowPalette: ShadowPalette = {
5
+ default: {
6
+ shadowOffset: {
7
+ width: 0,
8
+ height: 2,
9
+ },
10
+ shadowColor: ehWorkDarkSystemPalette.primaryOutline,
11
+ shadowOpacity: 0.12,
12
+ shadowRadius: 4,
13
+ elevation: 3,
14
+ },
15
+ cardDrawer: {
16
+ shadowOffset: {
17
+ width: 0,
18
+ height: 2,
19
+ },
20
+ shadowColor: '#000000',
21
+ shadowOpacity: 0.56,
22
+ shadowRadius: 2,
23
+ elevation: 6,
24
+ },
25
+ tabBar: {
26
+ shadowOffset: {
27
+ width: 0,
28
+ height: -4,
29
+ },
30
+ shadowColor: '#000000',
31
+ shadowOpacity: 0.24,
32
+ shadowRadius: 6,
33
+ elevation: 10,
34
+ },
35
+ };
36
+
37
+ export default ehWorkDarkShadowPalette;
@@ -0,0 +1,23 @@
1
+ import swagLightShadowPalette from './swagLight';
2
+ import swagLightJobsShadowPalette from './swagLightJobs';
3
+ import ehWorkDarkShadowPalette from './ehWorkDark';
4
+
5
+ import { SystemPalette } from '../colors/types';
6
+
7
+ const getShadows = (palette: SystemPalette) => {
8
+ switch (palette.name) {
9
+ case 'swagLight':
10
+ return swagLightShadowPalette;
11
+ case 'swagLightJobs':
12
+ return swagLightJobsShadowPalette;
13
+ case 'ehWorkDark':
14
+ return ehWorkDarkShadowPalette;
15
+ default:
16
+ return swagLightShadowPalette;
17
+ }
18
+ };
19
+
20
+ type Shadows = ReturnType<typeof getShadows>;
21
+
22
+ export { getShadows };
23
+ export type { Shadows };
@@ -0,0 +1,37 @@
1
+ import swagLightSystemPalette from '../colors/swagLight';
2
+ import type { ShadowPalette } from './types';
3
+
4
+ const swagLightShadowPalette: ShadowPalette = {
5
+ default: {
6
+ shadowOffset: {
7
+ width: 0,
8
+ height: 2,
9
+ },
10
+ shadowColor: swagLightSystemPalette.primaryOutline,
11
+ shadowOpacity: 0.12,
12
+ shadowRadius: 4,
13
+ elevation: 3,
14
+ },
15
+ cardDrawer: {
16
+ shadowOffset: {
17
+ width: 0,
18
+ height: 2,
19
+ },
20
+ shadowColor: '#001f23',
21
+ shadowOpacity: 0.12,
22
+ shadowRadius: 2,
23
+ elevation: 6,
24
+ },
25
+ tabBar: {
26
+ shadowOffset: {
27
+ width: 0,
28
+ height: -4,
29
+ },
30
+ shadowColor: '#001f23',
31
+ shadowOpacity: 0.04,
32
+ shadowRadius: 6,
33
+ elevation: 10,
34
+ },
35
+ };
36
+
37
+ export default swagLightShadowPalette;
@@ -0,0 +1,37 @@
1
+ import type { ShadowPalette } from './types';
2
+ import swagLightJobsSystemPalette from '../colors/swagLightJobs';
3
+
4
+ const swagLightJobsShadowPalette: ShadowPalette = {
5
+ default: {
6
+ shadowOffset: {
7
+ width: 0,
8
+ height: 2,
9
+ },
10
+ shadowColor: swagLightJobsSystemPalette.primaryOutline,
11
+ shadowOpacity: 0.12,
12
+ shadowRadius: 4,
13
+ elevation: 3,
14
+ },
15
+ cardDrawer: {
16
+ shadowOffset: {
17
+ width: 0,
18
+ height: 2,
19
+ },
20
+ shadowColor: '#001f23',
21
+ shadowOpacity: 0.12,
22
+ shadowRadius: 2,
23
+ elevation: 6,
24
+ },
25
+ tabBar: {
26
+ shadowOffset: {
27
+ width: 0,
28
+ height: -4,
29
+ },
30
+ shadowColor: '#001f23',
31
+ shadowOpacity: 0.04,
32
+ shadowRadius: 6,
33
+ elevation: 10,
34
+ },
35
+ };
36
+
37
+ export default swagLightJobsShadowPalette;
@@ -0,0 +1,16 @@
1
+ export type ShadowStyles = {
2
+ shadowOffset: {
3
+ width: number;
4
+ height: number;
5
+ };
6
+ shadowColor: string;
7
+ shadowOpacity: number;
8
+ shadowRadius: number;
9
+ elevation: number;
10
+ };
11
+
12
+ export type ShadowPalette = {
13
+ default: ShadowStyles;
14
+ cardDrawer: ShadowStyles;
15
+ tabBar: ShadowStyles;
16
+ };