@hero-design/rn 8.91.8 → 8.92.0
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 +11 -0
- package/es/index.js +217 -180
- package/lib/index.js +220 -181
- package/package.json +2 -2
- package/src/index.ts +4 -0
- package/src/theme/ThemeSwitcher.tsx +7 -2
- package/src/theme/global/colors/__tests__/__snapshots__/ehJobs.spec.ts.snap +54 -0
- package/src/theme/global/colors/__tests__/__snapshots__/ehWork.spec.js.snap +53 -0
- package/src/theme/global/colors/__tests__/ehJobs.spec.ts +7 -0
- package/src/theme/global/colors/__tests__/ehWork.spec.js +7 -0
- package/src/theme/global/colors/ehJobs.ts +14 -0
- package/src/theme/global/colors/ehWork.ts +27 -0
- package/src/theme/global/colors/swagLight.ts +6 -21
- package/src/theme/global/colors/swagLightJobs.ts +5 -7
- package/src/theme/global/colors/swagSystemPalette.ts +9 -0
- package/src/theme/global/colors/types.ts +6 -1
- package/src/theme/global/index.ts +4 -0
- package/src/theme/global/shadows/__tests__/__snapshots__/{swagLightJobs.spec.ts.snap → ehJobs.spec.ts.snap} +1 -1
- package/src/theme/global/shadows/__tests__/ehJobs.spec.ts +7 -0
- package/src/theme/global/shadows/__tests__/ehWork.spec.ts +7 -0
- package/src/theme/global/shadows/__tests__/index.spec.ts +11 -7
- package/src/theme/global/shadows/{swagLightJobs.ts → ehJobs.ts} +4 -4
- package/src/theme/global/shadows/{swagLight.ts → ehWork.ts} +2 -2
- package/src/theme/global/shadows/index.ts +9 -5
- package/src/theme/index.ts +4 -0
- package/stats/8.92.0/rn-stats.html +4842 -0
- package/types/index.d.ts +2 -2
- package/types/theme/ThemeSwitcher.d.ts +1 -1
- package/types/theme/global/colors/__tests__/ehWork.spec.d.ts +1 -0
- package/types/theme/global/colors/ehJobs.d.ts +3 -0
- package/types/theme/global/colors/ehWork.d.ts +3 -0
- package/types/theme/global/colors/swagLight.d.ts +4 -1
- package/types/theme/global/colors/swagLightJobs.d.ts +3 -0
- package/types/theme/global/colors/swagSystemPalette.d.ts +3 -0
- package/types/theme/global/colors/types.d.ts +1 -1
- package/types/theme/global/index.d.ts +3 -1
- package/types/theme/global/shadows/ehJobs.d.ts +3 -0
- package/types/theme/global/shadows/ehWork.d.ts +3 -0
- package/types/theme/index.d.ts +2 -2
- package/src/theme/global/shadows/__tests__/swagLight.spec.ts +0 -7
- package/src/theme/global/shadows/__tests__/swagLightJobs.spec.ts +0 -7
- package/types/theme/global/shadows/swagLight.d.ts +0 -3
- package/types/theme/global/shadows/swagLightJobs.d.ts +0 -3
- /package/src/theme/global/shadows/__tests__/__snapshots__/{swagLight.spec.ts.snap → ehWork.spec.ts.snap} +0 -0
package/src/index.ts
CHANGED
|
@@ -13,6 +13,8 @@ import theme, {
|
|
|
13
13
|
ehWorkDarkSystemPalette,
|
|
14
14
|
ThemeSwitcher,
|
|
15
15
|
withTheme,
|
|
16
|
+
ehWorkSystemPalette,
|
|
17
|
+
ehJobsSystemPalette,
|
|
16
18
|
} from './theme';
|
|
17
19
|
import { scale } from './utils/scale';
|
|
18
20
|
|
|
@@ -92,6 +94,8 @@ export {
|
|
|
92
94
|
walletSystemPalette,
|
|
93
95
|
eBensSystemPalette,
|
|
94
96
|
ehWorkDarkSystemPalette,
|
|
97
|
+
ehWorkSystemPalette,
|
|
98
|
+
ehJobsSystemPalette,
|
|
95
99
|
Accordion,
|
|
96
100
|
Alert,
|
|
97
101
|
AppCue,
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
swagDarkSystemPalette,
|
|
12
12
|
ehWorkDarkSystemPalette,
|
|
13
13
|
swagLightSystemPalette,
|
|
14
|
+
swagLightJobsSystemPalette,
|
|
14
15
|
} from './global';
|
|
15
16
|
import ThemeProvider from './ThemeProvider';
|
|
16
17
|
|
|
@@ -22,7 +23,9 @@ type ThemeName =
|
|
|
22
23
|
| 'jobs'
|
|
23
24
|
| 'wallet'
|
|
24
25
|
| 'eBens'
|
|
25
|
-
| 'ehWorkDark'
|
|
26
|
+
| 'ehWorkDark'
|
|
27
|
+
| 'ehWork'
|
|
28
|
+
| 'ehJobs';
|
|
26
29
|
|
|
27
30
|
const ThemeSwitcher = ({
|
|
28
31
|
name = 'swag',
|
|
@@ -46,9 +49,12 @@ const ThemeSwitcher = ({
|
|
|
46
49
|
case 'swagDark':
|
|
47
50
|
return getTheme(defaultScale, swagDarkSystemPalette);
|
|
48
51
|
case 'swagLight':
|
|
52
|
+
case 'ehWork':
|
|
49
53
|
return getTheme(defaultScale, swagLightSystemPalette);
|
|
50
54
|
case 'ehWorkDark':
|
|
51
55
|
return getTheme(defaultScale, ehWorkDarkSystemPalette);
|
|
56
|
+
case 'ehJobs':
|
|
57
|
+
return getTheme(defaultScale, swagLightJobsSystemPalette);
|
|
52
58
|
}
|
|
53
59
|
}, [name]);
|
|
54
60
|
return <ThemeProvider theme={theme}>{children}</ThemeProvider>;
|
|
@@ -66,5 +72,4 @@ export const withTheme =
|
|
|
66
72
|
</ThemeSwitcher>
|
|
67
73
|
);
|
|
68
74
|
};
|
|
69
|
-
|
|
70
75
|
export default ThemeSwitcher;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`ehJobs returns correct theme object 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"archived": "#abacaf",
|
|
6
|
+
"archivedSurface": "#dadbde",
|
|
7
|
+
"black": "#000000",
|
|
8
|
+
"darkGlobalSurface": "#001f23",
|
|
9
|
+
"decorativePrimary": "#fdfbff",
|
|
10
|
+
"decorativePrimarySurface": "#dacce4",
|
|
11
|
+
"decorativeSecondary": "#fdfbff",
|
|
12
|
+
"decorativeSecondarySurface": "#d9f6ff",
|
|
13
|
+
"defaultGlobalSurface": "#ffffff",
|
|
14
|
+
"defaultSurface": "#fdfbff",
|
|
15
|
+
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
16
|
+
"disabledOutline": "#bfc1c5",
|
|
17
|
+
"error": "#f46363",
|
|
18
|
+
"errorSurface": "#fcebe7",
|
|
19
|
+
"highlightedSurface": "#f1e9fb",
|
|
20
|
+
"inactiveOnDefaultGlobalSurface": "#808f91",
|
|
21
|
+
"inactiveOutline": "#808f91",
|
|
22
|
+
"info": "#b5c3fd",
|
|
23
|
+
"infoSurface": "#ecf0ff",
|
|
24
|
+
"mutedArchived": "#bcbdbf",
|
|
25
|
+
"mutedError": "#f68282",
|
|
26
|
+
"mutedInfo": "#c4cffd",
|
|
27
|
+
"mutedOnDefaultGlobalSurface": "#4d6265",
|
|
28
|
+
"mutedSuccess": "#7bd897",
|
|
29
|
+
"mutedWarning": "#ffcb8d",
|
|
30
|
+
"name": "ehJobs",
|
|
31
|
+
"neutralGlobalSurface": "#f6f6f7",
|
|
32
|
+
"onArchivedSurface": "#606065",
|
|
33
|
+
"onDarkGlobalSurface": "#ffffff",
|
|
34
|
+
"onDefaultGlobalSurface": "#121214",
|
|
35
|
+
"onErrorSurface": "#cb300a",
|
|
36
|
+
"onInfoSurface": "#355bfb",
|
|
37
|
+
"onPrimary": "#fdfbff",
|
|
38
|
+
"onSecondary": "#460078",
|
|
39
|
+
"onSuccessSurface": "#017d6d",
|
|
40
|
+
"onWarningSurface": "#ac5d00",
|
|
41
|
+
"overlayGlobalSurface": "#000000",
|
|
42
|
+
"pressedSurface": "#380060",
|
|
43
|
+
"primary": "#460078",
|
|
44
|
+
"primaryOutline": "#121214",
|
|
45
|
+
"secondary": "#40d1ff",
|
|
46
|
+
"secondaryHighlightedSurface": "#ecfaff",
|
|
47
|
+
"secondaryOutline": "#e8e9ea",
|
|
48
|
+
"success": "#5ace7d",
|
|
49
|
+
"successSurface": "#f0fef4",
|
|
50
|
+
"warning": "#ffbe71",
|
|
51
|
+
"warningSurface": "#fff6eb",
|
|
52
|
+
"white": "#ffffff",
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`ehWork returns correct theme object 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"archived": "#abacaf",
|
|
6
|
+
"archivedSurface": "#dadbde",
|
|
7
|
+
"black": "#000000",
|
|
8
|
+
"darkGlobalSurface": "#001f23",
|
|
9
|
+
"decorativePrimary": "#fdfbff",
|
|
10
|
+
"decorativePrimarySurface": "#dacce4",
|
|
11
|
+
"decorativeSecondary": "#fdfbff",
|
|
12
|
+
"decorativeSecondarySurface": "#f0e6ff",
|
|
13
|
+
"defaultGlobalSurface": "#ffffff",
|
|
14
|
+
"defaultSurface": "#fdfbff",
|
|
15
|
+
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
16
|
+
"disabledOutline": "#bfc1c5",
|
|
17
|
+
"error": "#f46363",
|
|
18
|
+
"errorSurface": "#fcebe7",
|
|
19
|
+
"highlightedSurface": "#f1e9fb",
|
|
20
|
+
"inactiveOnDefaultGlobalSurface": "#808f91",
|
|
21
|
+
"inactiveOutline": "#808f91",
|
|
22
|
+
"info": "#b5c3fd",
|
|
23
|
+
"infoSurface": "#ecf0ff",
|
|
24
|
+
"mutedArchived": "#bcbdbf",
|
|
25
|
+
"mutedError": "#f68282",
|
|
26
|
+
"mutedInfo": "#c4cffd",
|
|
27
|
+
"mutedOnDefaultGlobalSurface": "#4d6265",
|
|
28
|
+
"mutedSuccess": "#7bd897",
|
|
29
|
+
"mutedWarning": "#ffcb8d",
|
|
30
|
+
"name": "ehWork",
|
|
31
|
+
"neutralGlobalSurface": "#f6f6f7",
|
|
32
|
+
"onArchivedSurface": "#606065",
|
|
33
|
+
"onDarkGlobalSurface": "#ffffff",
|
|
34
|
+
"onDefaultGlobalSurface": "#121214",
|
|
35
|
+
"onErrorSurface": "#cb300a",
|
|
36
|
+
"onInfoSurface": "#355bfb",
|
|
37
|
+
"onPrimary": "#fdfbff",
|
|
38
|
+
"onSecondary": "#ffffff",
|
|
39
|
+
"onSuccessSurface": "#017d6d",
|
|
40
|
+
"onWarningSurface": "#ac5d00",
|
|
41
|
+
"overlayGlobalSurface": "#000000",
|
|
42
|
+
"pressedSurface": "#380060",
|
|
43
|
+
"primary": "#460078",
|
|
44
|
+
"primaryOutline": "#121214",
|
|
45
|
+
"secondary": "#b382fd",
|
|
46
|
+
"secondaryOutline": "#e8e9ea",
|
|
47
|
+
"success": "#5ace7d",
|
|
48
|
+
"successSurface": "#f0fef4",
|
|
49
|
+
"warning": "#ffbe71",
|
|
50
|
+
"warningSurface": "#fff6eb",
|
|
51
|
+
"white": "#ffffff",
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import swagLightSystemPalette from './swagSystemPalette';
|
|
2
|
+
import { SystemPalette } from './types';
|
|
3
|
+
|
|
4
|
+
const ehJobsSystemPalette: SystemPalette = {
|
|
5
|
+
...swagLightSystemPalette,
|
|
6
|
+
name: 'ehJobs',
|
|
7
|
+
secondary: '#40d1ff',
|
|
8
|
+
onSecondary: '#460078',
|
|
9
|
+
secondaryHighlightedSurface: '#ecfaff',
|
|
10
|
+
decorativeSecondary: '#fdfbff',
|
|
11
|
+
decorativeSecondarySurface: '#d9f6ff',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default ehJobsSystemPalette;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { swagLightPalette as palette } from '@hero-design/colors';
|
|
2
|
+
import type { SystemPalette, BrandSystemPalette } from './types';
|
|
3
|
+
import swagLightGlobalPalette from './swagLightGlobal';
|
|
4
|
+
|
|
5
|
+
const ehWorkBrandSystemPalette: BrandSystemPalette = {
|
|
6
|
+
primary: '#460078',
|
|
7
|
+
onPrimary: '#fdfbff',
|
|
8
|
+
secondary: '#b382fd',
|
|
9
|
+
onSecondary: palette.white,
|
|
10
|
+
defaultSurface: '#fdfbff',
|
|
11
|
+
highlightedSurface: palette.violetLight90,
|
|
12
|
+
pressedSurface: '#380060',
|
|
13
|
+
decorativePrimary: '#fdfbff',
|
|
14
|
+
decorativePrimarySurface: '#dacce4',
|
|
15
|
+
decorativeSecondary: '#fdfbff',
|
|
16
|
+
decorativeSecondarySurface: '#f0e6ff',
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const ehWorkSystemPalette: SystemPalette = {
|
|
20
|
+
// Global
|
|
21
|
+
...swagLightGlobalPalette,
|
|
22
|
+
// Brand
|
|
23
|
+
...ehWorkBrandSystemPalette,
|
|
24
|
+
name: 'ehWork',
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default ehWorkSystemPalette;
|
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import swagLightGlobalPalette from './swagLightGlobal';
|
|
4
|
-
|
|
5
|
-
const swagBrandSystemPallete: BrandSystemPalette = {
|
|
6
|
-
primary: '#460078',
|
|
7
|
-
onPrimary: '#fdfbff',
|
|
8
|
-
secondary: '#b382fd',
|
|
9
|
-
onSecondary: palette.white,
|
|
10
|
-
defaultSurface: '#fdfbff',
|
|
11
|
-
highlightedSurface: palette.violetLight90,
|
|
12
|
-
pressedSurface: '#380060',
|
|
13
|
-
decorativePrimary: '#fdfbff',
|
|
14
|
-
decorativePrimarySurface: '#dacce4',
|
|
15
|
-
decorativeSecondary: '#fdfbff',
|
|
16
|
-
decorativeSecondarySurface: '#f0e6ff',
|
|
17
|
-
};
|
|
1
|
+
import ehWorkSystemPalette from './ehWork';
|
|
2
|
+
import { SystemPalette } from './types';
|
|
18
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated This palette is deprecated and will be removed in the next major release.
|
|
6
|
+
*/
|
|
19
7
|
const swagSystemPalette: SystemPalette = {
|
|
20
|
-
|
|
21
|
-
...swagLightGlobalPalette,
|
|
22
|
-
// Brand
|
|
23
|
-
...swagBrandSystemPallete,
|
|
8
|
+
...ehWorkSystemPalette,
|
|
24
9
|
name: 'swagLight',
|
|
25
10
|
};
|
|
26
11
|
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ehJobsSystemPalette from './ehJobs';
|
|
2
2
|
import { SystemPalette } from './types';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated This palette is deprecated and will be removed in the next major release.
|
|
6
|
+
*/
|
|
4
7
|
const swagLightJobsSystemPalette: SystemPalette = {
|
|
5
|
-
...
|
|
8
|
+
...ehJobsSystemPalette,
|
|
6
9
|
name: 'swagLightJobs',
|
|
7
|
-
secondary: '#40d1ff',
|
|
8
|
-
onSecondary: '#460078',
|
|
9
|
-
secondaryHighlightedSurface: '#ecfaff',
|
|
10
|
-
decorativeSecondary: '#fdfbff',
|
|
11
|
-
decorativeSecondarySurface: '#d9f6ff',
|
|
12
10
|
};
|
|
13
11
|
|
|
14
12
|
export default swagLightJobsSystemPalette;
|
|
@@ -65,7 +65,12 @@ export type BrandSystemPalette = {
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
export type ThemeMode = 'light' | 'dark';
|
|
68
|
-
export type ThemeName =
|
|
68
|
+
export type ThemeName =
|
|
69
|
+
| 'swagLight'
|
|
70
|
+
| 'swagLightJobs'
|
|
71
|
+
| 'ehWorkDark'
|
|
72
|
+
| 'ehWork'
|
|
73
|
+
| 'ehJobs';
|
|
69
74
|
export type SystemPalette = GlobalSystemPalette &
|
|
70
75
|
BrandSystemPalette & {
|
|
71
76
|
themeMode?: ThemeMode;
|
|
@@ -8,6 +8,8 @@ import jobsSystemPalette from './colors/jobs';
|
|
|
8
8
|
import walletSystemPalette from './colors/wallet';
|
|
9
9
|
import eBensSystemPalette from './colors/eBens';
|
|
10
10
|
import ehWorkDarkSystemPalette from './colors/ehWorkDark';
|
|
11
|
+
import ehWorkSystemPalette from './colors/ehWork';
|
|
12
|
+
import ehJobsSystemPalette from './colors/ehJobs';
|
|
11
13
|
|
|
12
14
|
import { getFonts, getFontSizes, getLineHeights } from './typography';
|
|
13
15
|
import { getSpace } from './space';
|
|
@@ -58,4 +60,6 @@ export {
|
|
|
58
60
|
walletSystemPalette,
|
|
59
61
|
eBensSystemPalette,
|
|
60
62
|
ehWorkDarkSystemPalette,
|
|
63
|
+
ehWorkSystemPalette,
|
|
64
|
+
ehJobsSystemPalette,
|
|
61
65
|
};
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import swagLightSystemPalette from '../../colors/
|
|
1
|
+
import swagLightSystemPalette from '../../colors/swagSystemPalette';
|
|
2
2
|
import swagLightJobsSystemPalette from '../../colors/swagLightJobs';
|
|
3
3
|
import ehWorkDarkSystemPalette from '../../colors/ehWorkDark';
|
|
4
|
+
import ehWorkSystemPalette from '../../colors/ehWork';
|
|
5
|
+
import ehJobsSystemPalette from '../../colors/ehJobs';
|
|
4
6
|
import swagSystemPalette from '../../colors/swag';
|
|
5
7
|
import { getShadows } from '../index';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
+
import ehWorkShadowPalette from '../ehWork';
|
|
9
|
+
import ehJobsShadowPalette from '../ehJobs';
|
|
8
10
|
import ehWorkDarkShadowPalette from '../ehWorkDark';
|
|
9
11
|
|
|
10
12
|
describe('getShadows', () => {
|
|
11
13
|
it.each`
|
|
12
14
|
colorPalette | shadowPalette
|
|
13
|
-
${swagLightSystemPalette} | ${
|
|
14
|
-
${swagLightJobsSystemPalette} | ${
|
|
15
|
+
${swagLightSystemPalette} | ${ehWorkShadowPalette}
|
|
16
|
+
${swagLightJobsSystemPalette} | ${ehJobsShadowPalette}
|
|
15
17
|
${ehWorkDarkSystemPalette} | ${ehWorkDarkShadowPalette}
|
|
16
|
-
${swagSystemPalette} | ${
|
|
18
|
+
${swagSystemPalette} | ${ehWorkShadowPalette}
|
|
19
|
+
${ehWorkSystemPalette} | ${ehWorkShadowPalette}
|
|
20
|
+
${ehJobsSystemPalette} | ${ehJobsShadowPalette}
|
|
17
21
|
`(
|
|
18
|
-
'should return the correct shadow palette for $colorPalette',
|
|
22
|
+
'should return the correct shadow palette for $colorPalette.name',
|
|
19
23
|
({ colorPalette, shadowPalette }) => {
|
|
20
24
|
const actual = getShadows(colorPalette);
|
|
21
25
|
expect(actual).toEqual(shadowPalette);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ShadowPalette } from './types';
|
|
2
|
-
import
|
|
2
|
+
import ehWorkSystemPalette from '../colors/ehWork';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const ehJobsShadowPalette: ShadowPalette = {
|
|
5
5
|
default: {
|
|
6
6
|
shadowOffset: {
|
|
7
7
|
width: 0,
|
|
8
8
|
height: 2,
|
|
9
9
|
},
|
|
10
|
-
shadowColor:
|
|
10
|
+
shadowColor: ehWorkSystemPalette.primaryOutline,
|
|
11
11
|
shadowOpacity: 0.12,
|
|
12
12
|
shadowRadius: 4,
|
|
13
13
|
elevation: 3,
|
|
@@ -34,4 +34,4 @@ const swagLightJobsShadowPalette: ShadowPalette = {
|
|
|
34
34
|
},
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
export default
|
|
37
|
+
export default ehJobsShadowPalette;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ShadowPalette } from './types';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const ehWorkShadowPalette: ShadowPalette = {
|
|
4
4
|
default: {
|
|
5
5
|
shadowOffset: {
|
|
6
6
|
width: 0,
|
|
@@ -33,4 +33,4 @@ const swagLightShadowPalette: ShadowPalette = {
|
|
|
33
33
|
},
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
export default
|
|
36
|
+
export default ehWorkShadowPalette;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import ehWorkShadowPalette from './ehWork';
|
|
2
|
+
import ehJobsShadowPalette from './ehJobs';
|
|
3
3
|
import ehWorkDarkShadowPalette from './ehWorkDark';
|
|
4
4
|
|
|
5
5
|
import { SystemPalette } from '../colors/types';
|
|
@@ -7,13 +7,17 @@ import { SystemPalette } from '../colors/types';
|
|
|
7
7
|
const getShadows = (palette: SystemPalette) => {
|
|
8
8
|
switch (palette.name) {
|
|
9
9
|
case 'swagLight':
|
|
10
|
-
return
|
|
10
|
+
return ehWorkShadowPalette;
|
|
11
|
+
case 'ehWork':
|
|
12
|
+
return ehWorkShadowPalette;
|
|
11
13
|
case 'swagLightJobs':
|
|
12
|
-
return
|
|
14
|
+
return ehJobsShadowPalette;
|
|
15
|
+
case 'ehJobs':
|
|
16
|
+
return ehJobsShadowPalette;
|
|
13
17
|
case 'ehWorkDark':
|
|
14
18
|
return ehWorkDarkShadowPalette;
|
|
15
19
|
default:
|
|
16
|
-
return
|
|
20
|
+
return ehWorkShadowPalette;
|
|
17
21
|
}
|
|
18
22
|
};
|
|
19
23
|
|
package/src/theme/index.ts
CHANGED
|
@@ -11,6 +11,8 @@ import {
|
|
|
11
11
|
walletSystemPalette,
|
|
12
12
|
eBensSystemPalette,
|
|
13
13
|
ehWorkDarkSystemPalette,
|
|
14
|
+
ehWorkSystemPalette,
|
|
15
|
+
ehJobsSystemPalette,
|
|
14
16
|
} from './global';
|
|
15
17
|
|
|
16
18
|
import type { Theme } from './getTheme';
|
|
@@ -34,6 +36,8 @@ export {
|
|
|
34
36
|
walletSystemPalette,
|
|
35
37
|
eBensSystemPalette,
|
|
36
38
|
ehWorkDarkSystemPalette,
|
|
39
|
+
ehWorkSystemPalette,
|
|
40
|
+
ehJobsSystemPalette,
|
|
37
41
|
};
|
|
38
42
|
|
|
39
43
|
export default defaultTheme;
|