@hero-design/rn 8.90.1 → 8.91.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 +14 -0
- package/es/index.js +69 -6
- package/lib/index.js +69 -5
- package/package.json +1 -1
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +2 -2
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -2
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +2 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +5 -5
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -4
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/index.ts +2 -0
- package/src/theme/ThemeSwitcher.tsx +5 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +3 -4
- package/src/theme/components/error.ts +1 -1
- package/src/theme/components/list.ts +1 -1
- package/src/theme/components/toolbar.ts +1 -2
- package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +2 -0
- package/src/theme/global/colors/ehWorkDark.ts +63 -0
- package/src/theme/global/colors/swagLight.ts +2 -0
- package/src/theme/global/colors/types.ts +3 -0
- package/src/theme/global/index.ts +2 -0
- package/src/theme/index.ts +2 -0
- package/stats/8.91.0/rn-stats.html +4844 -0
- package/types/index.d.ts +2 -2
- package/types/theme/ThemeSwitcher.d.ts +1 -1
- package/types/theme/components/list.d.ts +1 -1
- package/types/theme/components/toolbar.d.ts +0 -1
- package/types/theme/global/colors/ehWorkDark.d.ts +3 -0
- package/types/theme/global/colors/swagLightJobs.d.ts +2 -0
- package/types/theme/global/colors/types.d.ts +2 -0
- package/types/theme/global/index.d.ts +4 -1
- package/types/theme/index.d.ts +2 -2
|
@@ -7,6 +7,8 @@ exports[`swagDark returns correct theme object 1`] = `
|
|
|
7
7
|
"darkGlobalSurface": "#001f23",
|
|
8
8
|
"decorativePrimary": "#fdfbff",
|
|
9
9
|
"decorativePrimarySurface": "#dacce4",
|
|
10
|
+
"decorativeSecondary": "#fdfbff",
|
|
11
|
+
"decorativeSecondarySurface": "#f0e6ff",
|
|
10
12
|
"defaultGlobalSurface": "#ffffff",
|
|
11
13
|
"defaultSurface": "#fdfbff",
|
|
12
14
|
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { SystemPalette } from './types';
|
|
2
|
+
|
|
3
|
+
const ehWorkDarkSystemPalette: SystemPalette = {
|
|
4
|
+
black: '#000000',
|
|
5
|
+
white: '#ffffff',
|
|
6
|
+
// Surface
|
|
7
|
+
defaultGlobalSurface: '#27272A',
|
|
8
|
+
neutralGlobalSurface: '#121214',
|
|
9
|
+
darkGlobalSurface: '#fcfbff',
|
|
10
|
+
overlayGlobalSurface: '#ffffff',
|
|
11
|
+
// On Surface
|
|
12
|
+
onDefaultGlobalSurface: '#ffffff',
|
|
13
|
+
mutedOnDefaultGlobalSurface: '#a9a9b2',
|
|
14
|
+
inactiveOnDefaultGlobalSurface: '#71717a',
|
|
15
|
+
disabledOnDefaultGlobalSurface: '#52525b',
|
|
16
|
+
onDarkGlobalSurface: '#121214',
|
|
17
|
+
// Outline:
|
|
18
|
+
primaryOutline: '#a9a9b2',
|
|
19
|
+
secondaryOutline: '#3f3f46',
|
|
20
|
+
inactiveOutline: '#71717a',
|
|
21
|
+
disabledOutline: '#52525b',
|
|
22
|
+
// Archived:
|
|
23
|
+
archivedSurface: '#52525b',
|
|
24
|
+
mutedArchived: '#3f3f46',
|
|
25
|
+
archived: '#71717a',
|
|
26
|
+
onArchivedSurface: '#d4d4d8',
|
|
27
|
+
// Error:
|
|
28
|
+
errorSurface: '#7a1d06',
|
|
29
|
+
mutedError: '#9b2508',
|
|
30
|
+
error: '#bd2d09',
|
|
31
|
+
onErrorSurface: '#fcaea5',
|
|
32
|
+
// Warning:
|
|
33
|
+
warningSurface: '#963e03',
|
|
34
|
+
mutedWarning: '#c35004',
|
|
35
|
+
warning: '#dc6204',
|
|
36
|
+
onWarningSurface: '#ffe7bf',
|
|
37
|
+
// Success:
|
|
38
|
+
successSurface: '#00483e',
|
|
39
|
+
mutedSuccess: '#016256',
|
|
40
|
+
success: '#017d6d',
|
|
41
|
+
onSuccessSurface: '#6ee7d7',
|
|
42
|
+
// Info:
|
|
43
|
+
infoSurface: '#004a61',
|
|
44
|
+
mutedInfo: '#006585',
|
|
45
|
+
info: '#007da3',
|
|
46
|
+
onInfoSurface: '#70ddff',
|
|
47
|
+
// Brand:
|
|
48
|
+
primary: '#cdacfe',
|
|
49
|
+
onPrimary: '#280541',
|
|
50
|
+
secondary: '#7622d7',
|
|
51
|
+
onSecondary: '#ffffff',
|
|
52
|
+
defaultSurface: '#280541',
|
|
53
|
+
highlightedSurface: '#460078',
|
|
54
|
+
pressedSurface: '#9a58fc',
|
|
55
|
+
decorativePrimary: '#280541',
|
|
56
|
+
decorativePrimarySurface: '#74409a',
|
|
57
|
+
decorativeSecondary: '#280541',
|
|
58
|
+
decorativeSecondarySurface: '#4c1d95',
|
|
59
|
+
// Theme Mode
|
|
60
|
+
themeMode: 'dark',
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export default ehWorkDarkSystemPalette;
|
|
@@ -12,6 +12,8 @@ const swagBrandSystemPallete: BrandSystemPalette = {
|
|
|
12
12
|
pressedSurface: '#380060',
|
|
13
13
|
decorativePrimary: '#fdfbff',
|
|
14
14
|
decorativePrimarySurface: '#dacce4',
|
|
15
|
+
decorativeSecondary: '#fdfbff',
|
|
16
|
+
decorativeSecondarySurface: '#f0e6ff',
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
const swagSystemPalette: SystemPalette = {
|
|
@@ -7,6 +7,7 @@ import workSystemPalette from './colors/work';
|
|
|
7
7
|
import jobsSystemPalette from './colors/jobs';
|
|
8
8
|
import walletSystemPalette from './colors/wallet';
|
|
9
9
|
import eBensSystemPalette from './colors/eBens';
|
|
10
|
+
import ehWorkDarkSystemPalette from './colors/ehWorkDark';
|
|
10
11
|
|
|
11
12
|
import { getFonts, getFontSizes, getLineHeights } from './typography';
|
|
12
13
|
import { getSpace } from './space';
|
|
@@ -56,4 +57,5 @@ export {
|
|
|
56
57
|
jobsSystemPalette,
|
|
57
58
|
walletSystemPalette,
|
|
58
59
|
eBensSystemPalette,
|
|
60
|
+
ehWorkDarkSystemPalette,
|
|
59
61
|
};
|
package/src/theme/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
jobsSystemPalette,
|
|
11
11
|
walletSystemPalette,
|
|
12
12
|
eBensSystemPalette,
|
|
13
|
+
ehWorkDarkSystemPalette,
|
|
13
14
|
} from './global';
|
|
14
15
|
|
|
15
16
|
import type { Theme } from './getTheme';
|
|
@@ -32,6 +33,7 @@ export {
|
|
|
32
33
|
jobsSystemPalette,
|
|
33
34
|
walletSystemPalette,
|
|
34
35
|
eBensSystemPalette,
|
|
36
|
+
ehWorkDarkSystemPalette,
|
|
35
37
|
};
|
|
36
38
|
|
|
37
39
|
export default defaultTheme;
|