@hero-design/rn 8.65.1 → 8.67.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.
@@ -0,0 +1,7 @@
1
+ import swagLight from '../swagLight';
2
+
3
+ describe('swagDark', () => {
4
+ it('returns correct theme object', () => {
5
+ expect(swagLight).toMatchSnapshot();
6
+ });
7
+ });
@@ -0,0 +1,25 @@
1
+ import { swagLightPalette as palette } from '@hero-design/colors';
2
+ import type { SystemPalette, BrandSystemPalette } from './types';
3
+ import globalPalette from './global';
4
+
5
+ const swagBrandSystemPallete: BrandSystemPalette = {
6
+ primary: palette.violet,
7
+ onPrimary: '#FDFBFF',
8
+ secondary: '#460078',
9
+ onSecondary: palette.white,
10
+ defaultSurface: '#FDFBFF',
11
+ highlightedSurface: '#F1E9FB',
12
+ pressedSurface: '#380060',
13
+
14
+ decorativePrimary: '#FDFBFF',
15
+ decorativePrimarySurface: '#B382FD',
16
+ };
17
+
18
+ const swagSystemPalette: SystemPalette = {
19
+ // Global
20
+ ...globalPalette,
21
+ // Brand
22
+ ...swagBrandSystemPallete,
23
+ };
24
+
25
+ export default swagSystemPalette;
@@ -1,6 +1,7 @@
1
1
  import { scale as defaultScale } from './scale';
2
2
  import swagSystemPalette from './colors/swag';
3
3
  import swagDarkSystemPalette from './colors/swagDark';
4
+ import swagLightSystemPalette from './colors/swagLight';
4
5
  import workSystemPalette from './colors/work';
5
6
  import jobsSystemPalette from './colors/jobs';
6
7
  import walletSystemPalette from './colors/wallet';
@@ -47,6 +48,7 @@ export {
47
48
  getGlobalTheme,
48
49
  defaultScale,
49
50
  swagSystemPalette,
51
+ swagLightSystemPalette,
50
52
  swagDarkSystemPalette,
51
53
  workSystemPalette,
52
54
  jobsSystemPalette,
@@ -3,6 +3,7 @@ import ThemeProvider, { useTheme } from './ThemeProvider';
3
3
  import ThemeSwitcher, { withTheme } from './ThemeSwitcher';
4
4
  import {
5
5
  swagSystemPalette,
6
+ swagLightSystemPalette,
6
7
  swagDarkSystemPalette,
7
8
  workSystemPalette,
8
9
  jobsSystemPalette,
@@ -23,6 +24,7 @@ export {
23
24
  ThemeSwitcher,
24
25
  useTheme,
25
26
  swagSystemPalette,
27
+ swagLightSystemPalette,
26
28
  swagDarkSystemPalette,
27
29
  workSystemPalette,
28
30
  jobsSystemPalette,