@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.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +27 -0
- package/es/index.js +170 -77
- package/lib/index.js +170 -77
- package/package.json +1 -1
- package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +12 -12
- 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/Checkbox/StyledCheckbox.tsx +3 -3
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Checkbox/__tests__/index.spec.tsx +11 -7
- package/src/components/Checkbox/index.tsx +11 -2
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +63 -3
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +21 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +21 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +42 -18
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -1
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/FAB/StyledFAB.tsx +1 -5
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +4 -4
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +2 -1
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
- package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/RichTextEditor/RichTextEditor.tsx +2 -1
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +40 -2
- package/src/components/Search/SearchOneLine.tsx +3 -1
- package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +7 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +147 -47
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +126 -38
- package/src/components/Slider/__tests__/__snapshots__/RangeSlider.spec.tsx.snap +2 -2
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Switch/StyledSwitch.tsx +1 -0
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +7 -3
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +337 -16
- package/src/components/TextInput/__tests__/index.spec.tsx +2 -0
- package/src/components/TextInput/index.tsx +7 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +42 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +42 -10
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +7 -7
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +52 -29
- package/src/theme/components/bottomSheet.ts +2 -9
- package/src/theme/components/checkbox.ts +7 -0
- package/src/theme/components/fab.ts +5 -9
- package/src/theme/components/switch.ts +5 -5
- package/src/theme/components/textInput.ts +1 -0
- 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 +6 -3
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightGlobal.spec.ts.snap +5 -3
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +6 -3
- 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/ehWorkDark.ts +1 -0
- package/src/theme/global/colors/global.ts +3 -0
- package/src/theme/global/colors/swagLight.ts +1 -0
- package/src/theme/global/colors/swagLightGlobal.ts +3 -3
- package/src/theme/global/colors/swagLightJobs.ts +3 -1
- package/src/theme/global/colors/types.ts +2 -0
- package/src/theme/global/shadows/__tests__/__snapshots__/ehWorkDark.spec.ts.snap +36 -0
- package/src/theme/global/shadows/__tests__/__snapshots__/swagLight.spec.ts.snap +36 -0
- package/src/theme/global/shadows/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +36 -0
- package/src/theme/global/shadows/__tests__/ehWorkDark.spec.ts +7 -0
- package/src/theme/global/shadows/__tests__/index.spec.ts +24 -0
- package/src/theme/global/shadows/__tests__/swagLight.spec.ts +7 -0
- package/src/theme/global/shadows/__tests__/swagLightJobs.spec.ts +7 -0
- package/src/theme/global/shadows/ehWorkDark.ts +37 -0
- package/src/theme/global/shadows/index.ts +23 -0
- package/src/theme/global/shadows/swagLight.ts +37 -0
- package/src/theme/global/shadows/swagLightJobs.ts +37 -0
- package/src/theme/global/shadows/types.ts +16 -0
- package/stats/8.91.2/rn-stats.html +4842 -0
- package/stats/8.91.3/rn-stats.html +4844 -0
- package/stats/8.91.4/rn-stats.html +4842 -0
- package/types/components/Calendar/helpers.d.ts +5 -2
- package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
- package/types/components/Checkbox/index.d.ts +2 -1
- package/types/components/TextInput/index.d.ts +3 -1
- package/types/theme/components/bottomSheet.d.ts +1 -10
- package/types/theme/components/checkbox.d.ts +7 -0
- package/types/theme/components/chip.d.ts +1 -10
- package/types/theme/components/fab.d.ts +2 -9
- package/types/theme/components/floatingIsland.d.ts +1 -10
- package/types/theme/components/slider.d.ts +1 -10
- package/types/theme/components/switch.d.ts +1 -1
- package/types/theme/components/textInput.d.ts +1 -0
- package/types/theme/global/colors/swagLightJobs.d.ts +2 -50
- package/types/theme/global/colors/types.d.ts +2 -0
- package/types/theme/global/index.d.ts +2 -12
- package/types/theme/global/shadows/ehWorkDark.d.ts +3 -0
- package/types/theme/global/shadows/index.d.ts +5 -0
- package/types/theme/global/shadows/swagLight.d.ts +3 -0
- package/types/theme/global/shadows/swagLightJobs.d.ts +3 -0
- package/types/theme/global/shadows/types.d.ts +15 -0
- package/src/theme/global/shadows.ts +0 -19
- 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": "#
|
|
20
|
-
"inactiveOutline": "#
|
|
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": "#
|
|
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
|
`;
|
|
@@ -5,10 +5,10 @@ import globalPalette from './global';
|
|
|
5
5
|
const swagLightGlobalPalette: GlobalSystemPalette = {
|
|
6
6
|
...globalPalette,
|
|
7
7
|
onDefaultGlobalSurface: palette.offBlack,
|
|
8
|
-
mutedOnDefaultGlobalSurface:
|
|
9
|
-
inactiveOnDefaultGlobalSurface:
|
|
8
|
+
mutedOnDefaultGlobalSurface: '#4d6265',
|
|
9
|
+
inactiveOnDefaultGlobalSurface: '#808f91',
|
|
10
10
|
primaryOutline: palette.offBlack,
|
|
11
|
-
inactiveOutline:
|
|
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,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,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
|
+
};
|