@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.
Files changed (38) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/CHANGELOG.md +14 -0
  3. package/es/index.js +69 -6
  4. package/lib/index.js +69 -5
  5. package/package.json +1 -1
  6. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  7. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +2 -2
  8. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
  9. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -2
  10. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +2 -2
  11. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
  12. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +5 -5
  13. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  14. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
  15. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -4
  16. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  17. package/src/index.ts +2 -0
  18. package/src/theme/ThemeSwitcher.tsx +5 -1
  19. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +3 -4
  20. package/src/theme/components/error.ts +1 -1
  21. package/src/theme/components/list.ts +1 -1
  22. package/src/theme/components/toolbar.ts +1 -2
  23. package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +2 -0
  24. package/src/theme/global/colors/ehWorkDark.ts +63 -0
  25. package/src/theme/global/colors/swagLight.ts +2 -0
  26. package/src/theme/global/colors/types.ts +3 -0
  27. package/src/theme/global/index.ts +2 -0
  28. package/src/theme/index.ts +2 -0
  29. package/stats/8.91.0/rn-stats.html +4844 -0
  30. package/types/index.d.ts +2 -2
  31. package/types/theme/ThemeSwitcher.d.ts +1 -1
  32. package/types/theme/components/list.d.ts +1 -1
  33. package/types/theme/components/toolbar.d.ts +0 -1
  34. package/types/theme/global/colors/ehWorkDark.d.ts +3 -0
  35. package/types/theme/global/colors/swagLightJobs.d.ts +2 -0
  36. package/types/theme/global/colors/types.d.ts +2 -0
  37. package/types/theme/global/index.d.ts +4 -1
  38. package/types/theme/index.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- (node:2935) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
1
+ (node:3074) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
2
2
  (Use `node --trace-warnings ...` to show where the warning was created)
3
3
  
4
4
  src/index.ts → lib/index.js, es/index.js...
@@ -10,4 +10,4 @@
10
10
     ~~~~~~~~~~~~~~~~~~~
11
11
  
12
12
  (!) [plugin node-resolve] preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.
13
- created lib/index.js, es/index.js in 52.1s
13
+ created lib/index.js, es/index.js in 51.7s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.91.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#3689](https://github.com/Thinkei/hero-design/pull/3689) [`63af7b99c651170d2f681b1c0f4f641f791cd7a3`](https://github.com/Thinkei/hero-design/commit/63af7b99c651170d2f681b1c0f4f641f791cd7a3) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - Add dark theme
8
+
9
+ ### Patch Changes
10
+
11
+ - [#3687](https://github.com/Thinkei/hero-design/pull/3687) [`76f795675905d2fe908fba08a9bfc9895f47f86c`](https://github.com/Thinkei/hero-design/commit/76f795675905d2fe908fba08a9bfc9895f47f86c) Thanks [@ttkien](https://github.com/ttkien)! - - [Error] update full screen background color to onDefaultGlobalSurface
12
+
13
+ - [Toolbar] update danger text color to onErrorSurface
14
+
15
+ - [#3684](https://github.com/Thinkei/hero-design/pull/3684) [`0642db8dcb345337f74ab3286e11a1c05f7e706e`](https://github.com/Thinkei/hero-design/commit/0642db8dcb345337f74ab3286e11a1c05f7e706e) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [List] Update background color
16
+
3
17
  ## 8.90.1
4
18
 
5
19
  ### Patch Changes
package/es/index.js CHANGED
@@ -2001,7 +2001,9 @@ var swagBrandSystemPallete = {
2001
2001
  highlightedSurface: palette$3.violetLight90,
2002
2002
  pressedSurface: '#380060',
2003
2003
  decorativePrimary: '#fdfbff',
2004
- decorativePrimarySurface: '#dacce4'
2004
+ decorativePrimarySurface: '#dacce4',
2005
+ decorativeSecondary: '#fdfbff',
2006
+ decorativeSecondarySurface: '#f0e6ff'
2005
2007
  };
2006
2008
  var swagSystemPalette = _objectSpread2(_objectSpread2({}, swagLightGlobalPalette), swagBrandSystemPallete);
2007
2009
 
@@ -2065,6 +2067,66 @@ var eBensBrandSystemPallete = {
2065
2067
  };
2066
2068
  var eBensSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette$1), eBensBrandSystemPallete);
2067
2069
 
2070
+ var ehWorkDarkSystemPalette = {
2071
+ black: '#000000',
2072
+ white: '#ffffff',
2073
+ // Surface
2074
+ defaultGlobalSurface: '#27272A',
2075
+ neutralGlobalSurface: '#121214',
2076
+ darkGlobalSurface: '#fcfbff',
2077
+ overlayGlobalSurface: '#ffffff',
2078
+ // On Surface
2079
+ onDefaultGlobalSurface: '#ffffff',
2080
+ mutedOnDefaultGlobalSurface: '#a9a9b2',
2081
+ inactiveOnDefaultGlobalSurface: '#71717a',
2082
+ disabledOnDefaultGlobalSurface: '#52525b',
2083
+ onDarkGlobalSurface: '#121214',
2084
+ // Outline:
2085
+ primaryOutline: '#a9a9b2',
2086
+ secondaryOutline: '#3f3f46',
2087
+ inactiveOutline: '#71717a',
2088
+ disabledOutline: '#52525b',
2089
+ // Archived:
2090
+ archivedSurface: '#52525b',
2091
+ mutedArchived: '#3f3f46',
2092
+ archived: '#71717a',
2093
+ onArchivedSurface: '#d4d4d8',
2094
+ // Error:
2095
+ errorSurface: '#7a1d06',
2096
+ mutedError: '#9b2508',
2097
+ error: '#bd2d09',
2098
+ onErrorSurface: '#fcaea5',
2099
+ // Warning:
2100
+ warningSurface: '#963e03',
2101
+ mutedWarning: '#c35004',
2102
+ warning: '#dc6204',
2103
+ onWarningSurface: '#ffe7bf',
2104
+ // Success:
2105
+ successSurface: '#00483e',
2106
+ mutedSuccess: '#016256',
2107
+ success: '#017d6d',
2108
+ onSuccessSurface: '#6ee7d7',
2109
+ // Info:
2110
+ infoSurface: '#004a61',
2111
+ mutedInfo: '#006585',
2112
+ info: '#007da3',
2113
+ onInfoSurface: '#70ddff',
2114
+ // Brand:
2115
+ primary: '#cdacfe',
2116
+ onPrimary: '#280541',
2117
+ secondary: '#7622d7',
2118
+ onSecondary: '#ffffff',
2119
+ defaultSurface: '#280541',
2120
+ highlightedSurface: '#460078',
2121
+ pressedSurface: '#9a58fc',
2122
+ decorativePrimary: '#280541',
2123
+ decorativePrimarySurface: '#74409a',
2124
+ decorativeSecondary: '#280541',
2125
+ decorativeSecondarySurface: '#4c1d95',
2126
+ // Theme Mode
2127
+ themeMode: 'dark'
2128
+ };
2129
+
2068
2130
  var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
2069
2131
  var horizontalScale = function horizontalScale(size) {
2070
2132
  if (Platform.OS === 'web') {
@@ -2941,7 +3003,7 @@ var getErrorTheme = function getErrorTheme(theme) {
2941
3003
  var colors = {
2942
3004
  title: theme.colors.onDefaultGlobalSurface,
2943
3005
  description: theme.colors.mutedOnDefaultGlobalSurface,
2944
- fullScreenBackground: theme.colors.decorativePrimarySurface,
3006
+ fullScreenBackground: theme.colors.defaultGlobalSurface,
2945
3007
  inPageBackground: theme.colors.neutralGlobalSurface
2946
3008
  };
2947
3009
  var fontSizes = {
@@ -3071,7 +3133,7 @@ var getImageTheme = function getImageTheme(theme) {
3071
3133
 
3072
3134
  var getListTheme = function getListTheme(theme) {
3073
3135
  var colors = {
3074
- checkedListItemContainerBackground: theme.colors.highlightedSurface,
3136
+ checkedListItemContainerBackground: theme.colors.decorativeSecondarySurface,
3075
3137
  listItemContainerBackground: theme.colors.defaultGlobalSurface,
3076
3138
  leadingStatus: {
3077
3139
  danger: theme.colors.error,
@@ -3810,8 +3872,7 @@ var getToolbarTheme = function getToolbarTheme(theme) {
3810
3872
  secondary: theme.colors.mutedOnDefaultGlobalSurface,
3811
3873
  info: theme.colors.info,
3812
3874
  success: theme.colors.success,
3813
- danger: theme.colors.warning,
3814
- error: theme.colors.error,
3875
+ danger: theme.colors.onErrorSurface,
3815
3876
  disabled: theme.colors.disabledOnDefaultGlobalSurface,
3816
3877
  iconButtonBackground: theme.colors.highlightedSurface,
3817
3878
  inputContainerBackground: theme.colors.neutralGlobalSurface
@@ -5436,6 +5497,8 @@ var ThemeSwitcher = function ThemeSwitcher(_ref) {
5436
5497
  return getTheme$1(scale$1, swagDarkSystemPalette);
5437
5498
  case 'swagLight':
5438
5499
  return getTheme$1(scale$1, swagSystemPalette);
5500
+ case 'ehWorkDark':
5501
+ return getTheme$1(scale$1, ehWorkDarkSystemPalette);
5439
5502
  }
5440
5503
  }, [name]);
5441
5504
  return /*#__PURE__*/React__default.createElement(ThemeProvider, {
@@ -40360,4 +40423,4 @@ var FloatingIsland = function FloatingIsland(_ref2) {
40360
40423
  }));
40361
40424
  };
40362
40425
 
40363
- export { Accordion, Alert, AppCue, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar$1 as Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, FloatingIsland, HeroDesignProvider, Icon, Image, List, index$6 as MapPin, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagLightJobsSystemPalette, swagSystemPalette as swagLightSystemPalette, swagSystemPalette$1 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
40426
+ export { Accordion, Alert, AppCue, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar$1 as Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, FloatingIsland, HeroDesignProvider, Icon, Image, List, index$6 as MapPin, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, ehWorkDarkSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagLightJobsSystemPalette, swagSystemPalette as swagLightSystemPalette, swagSystemPalette$1 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
package/lib/index.js CHANGED
@@ -2029,7 +2029,9 @@ var swagBrandSystemPallete = {
2029
2029
  highlightedSurface: palette$3.violetLight90,
2030
2030
  pressedSurface: '#380060',
2031
2031
  decorativePrimary: '#fdfbff',
2032
- decorativePrimarySurface: '#dacce4'
2032
+ decorativePrimarySurface: '#dacce4',
2033
+ decorativeSecondary: '#fdfbff',
2034
+ decorativeSecondarySurface: '#f0e6ff'
2033
2035
  };
2034
2036
  var swagSystemPalette = _objectSpread2(_objectSpread2({}, swagLightGlobalPalette), swagBrandSystemPallete);
2035
2037
 
@@ -2093,6 +2095,66 @@ var eBensBrandSystemPallete = {
2093
2095
  };
2094
2096
  var eBensSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette$1), eBensBrandSystemPallete);
2095
2097
 
2098
+ var ehWorkDarkSystemPalette = {
2099
+ black: '#000000',
2100
+ white: '#ffffff',
2101
+ // Surface
2102
+ defaultGlobalSurface: '#27272A',
2103
+ neutralGlobalSurface: '#121214',
2104
+ darkGlobalSurface: '#fcfbff',
2105
+ overlayGlobalSurface: '#ffffff',
2106
+ // On Surface
2107
+ onDefaultGlobalSurface: '#ffffff',
2108
+ mutedOnDefaultGlobalSurface: '#a9a9b2',
2109
+ inactiveOnDefaultGlobalSurface: '#71717a',
2110
+ disabledOnDefaultGlobalSurface: '#52525b',
2111
+ onDarkGlobalSurface: '#121214',
2112
+ // Outline:
2113
+ primaryOutline: '#a9a9b2',
2114
+ secondaryOutline: '#3f3f46',
2115
+ inactiveOutline: '#71717a',
2116
+ disabledOutline: '#52525b',
2117
+ // Archived:
2118
+ archivedSurface: '#52525b',
2119
+ mutedArchived: '#3f3f46',
2120
+ archived: '#71717a',
2121
+ onArchivedSurface: '#d4d4d8',
2122
+ // Error:
2123
+ errorSurface: '#7a1d06',
2124
+ mutedError: '#9b2508',
2125
+ error: '#bd2d09',
2126
+ onErrorSurface: '#fcaea5',
2127
+ // Warning:
2128
+ warningSurface: '#963e03',
2129
+ mutedWarning: '#c35004',
2130
+ warning: '#dc6204',
2131
+ onWarningSurface: '#ffe7bf',
2132
+ // Success:
2133
+ successSurface: '#00483e',
2134
+ mutedSuccess: '#016256',
2135
+ success: '#017d6d',
2136
+ onSuccessSurface: '#6ee7d7',
2137
+ // Info:
2138
+ infoSurface: '#004a61',
2139
+ mutedInfo: '#006585',
2140
+ info: '#007da3',
2141
+ onInfoSurface: '#70ddff',
2142
+ // Brand:
2143
+ primary: '#cdacfe',
2144
+ onPrimary: '#280541',
2145
+ secondary: '#7622d7',
2146
+ onSecondary: '#ffffff',
2147
+ defaultSurface: '#280541',
2148
+ highlightedSurface: '#460078',
2149
+ pressedSurface: '#9a58fc',
2150
+ decorativePrimary: '#280541',
2151
+ decorativePrimarySurface: '#74409a',
2152
+ decorativeSecondary: '#280541',
2153
+ decorativeSecondarySurface: '#4c1d95',
2154
+ // Theme Mode
2155
+ themeMode: 'dark'
2156
+ };
2157
+
2096
2158
  var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
2097
2159
  var horizontalScale = function horizontalScale(size) {
2098
2160
  if (reactNative.Platform.OS === 'web') {
@@ -2969,7 +3031,7 @@ var getErrorTheme = function getErrorTheme(theme) {
2969
3031
  var colors = {
2970
3032
  title: theme.colors.onDefaultGlobalSurface,
2971
3033
  description: theme.colors.mutedOnDefaultGlobalSurface,
2972
- fullScreenBackground: theme.colors.decorativePrimarySurface,
3034
+ fullScreenBackground: theme.colors.defaultGlobalSurface,
2973
3035
  inPageBackground: theme.colors.neutralGlobalSurface
2974
3036
  };
2975
3037
  var fontSizes = {
@@ -3099,7 +3161,7 @@ var getImageTheme = function getImageTheme(theme) {
3099
3161
 
3100
3162
  var getListTheme = function getListTheme(theme) {
3101
3163
  var colors = {
3102
- checkedListItemContainerBackground: theme.colors.highlightedSurface,
3164
+ checkedListItemContainerBackground: theme.colors.decorativeSecondarySurface,
3103
3165
  listItemContainerBackground: theme.colors.defaultGlobalSurface,
3104
3166
  leadingStatus: {
3105
3167
  danger: theme.colors.error,
@@ -3838,8 +3900,7 @@ var getToolbarTheme = function getToolbarTheme(theme) {
3838
3900
  secondary: theme.colors.mutedOnDefaultGlobalSurface,
3839
3901
  info: theme.colors.info,
3840
3902
  success: theme.colors.success,
3841
- danger: theme.colors.warning,
3842
- error: theme.colors.error,
3903
+ danger: theme.colors.onErrorSurface,
3843
3904
  disabled: theme.colors.disabledOnDefaultGlobalSurface,
3844
3905
  iconButtonBackground: theme.colors.highlightedSurface,
3845
3906
  inputContainerBackground: theme.colors.neutralGlobalSurface
@@ -5464,6 +5525,8 @@ var ThemeSwitcher = function ThemeSwitcher(_ref) {
5464
5525
  return getTheme$1(scale$1, swagDarkSystemPalette);
5465
5526
  case 'swagLight':
5466
5527
  return getTheme$1(scale$1, swagSystemPalette);
5528
+ case 'ehWorkDark':
5529
+ return getTheme$1(scale$1, ehWorkDarkSystemPalette);
5467
5530
  }
5468
5531
  }, [name]);
5469
5532
  return /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
@@ -40447,6 +40510,7 @@ exports.Toast = Toast;
40447
40510
  exports.Toolbar = index$1;
40448
40511
  exports.Typography = Typography;
40449
40512
  exports.eBensSystemPalette = eBensSystemPalette;
40513
+ exports.ehWorkDarkSystemPalette = ehWorkDarkSystemPalette;
40450
40514
  exports.getTheme = getTheme$1;
40451
40515
  exports.jobsSystemPalette = jobsSystemPalette;
40452
40516
  exports.scale = scale;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.90.1",
3
+ "version": "8.91.0",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -344,7 +344,7 @@ exports[`Error renders full screen error page correctly 1`] = `
344
344
  style={
345
345
  [
346
346
  {
347
- "backgroundColor": "#ccd2d3",
347
+ "backgroundColor": "#ffffff",
348
348
  "display": "flex",
349
349
  "flex": 1,
350
350
  "flexDirection": "column",
@@ -198,7 +198,7 @@ exports[`StyledListItemContainer renders correctly themeSelected true themeDisab
198
198
  [
199
199
  {
200
200
  "alignItems": "center",
201
- "backgroundColor": "#ece8ef",
201
+ "backgroundColor": undefined,
202
202
  "borderRadius": 4,
203
203
  "flexDirection": "row",
204
204
  "opacity": 1,
@@ -282,7 +282,7 @@ exports[`StyledListItemContainer renders correctly themeSelected true themeDisab
282
282
  [
283
283
  {
284
284
  "alignItems": "center",
285
- "backgroundColor": "#ece8ef",
285
+ "backgroundColor": undefined,
286
286
  "borderRadius": 4,
287
287
  "flexDirection": "row",
288
288
  "opacity": 0.38,
@@ -428,7 +428,7 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant car
428
428
  [
429
429
  {
430
430
  "alignItems": "center",
431
- "backgroundColor": "#ece8ef",
431
+ "backgroundColor": undefined,
432
432
  "borderRadius": 8,
433
433
  "elevation": 3,
434
434
  "flexDirection": "row",
@@ -518,7 +518,7 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant ful
518
518
  style={
519
519
  [
520
520
  {
521
- "backgroundColor": "#ece8ef",
521
+ "backgroundColor": undefined,
522
522
  "borderRadius": 8,
523
523
  "flexDirection": "row",
524
524
  "padding": 16,
@@ -34,7 +34,7 @@ exports[`rendering renders correctly when checked with inactiveIntent=dark 1`] =
34
34
  style={
35
35
  [
36
36
  {
37
- "backgroundColor": "#ece8ef",
37
+ "backgroundColor": undefined,
38
38
  "borderRadius": 8,
39
39
  "flexDirection": "row",
40
40
  "padding": 16,
@@ -201,7 +201,7 @@ exports[`rendering renders correctly when checked with inactiveIntent=light 1`]
201
201
  style={
202
202
  [
203
203
  {
204
- "backgroundColor": "#ece8ef",
204
+ "backgroundColor": undefined,
205
205
  "borderRadius": 8,
206
206
  "flexDirection": "row",
207
207
  "padding": 16,
@@ -299,7 +299,7 @@ exports[`rendering renders correctly with inactiveIntent=dark 1`] = `
299
299
  style={
300
300
  [
301
301
  {
302
- "backgroundColor": "#ece8ef",
302
+ "backgroundColor": undefined,
303
303
  "borderRadius": 8,
304
304
  "flexDirection": "row",
305
305
  "padding": 16,
@@ -732,7 +732,7 @@ exports[`rendering renders correctly with inactiveIntent=light 1`] = `
732
732
  style={
733
733
  [
734
734
  {
735
- "backgroundColor": "#ece8ef",
735
+ "backgroundColor": undefined,
736
736
  "borderRadius": 8,
737
737
  "flexDirection": "row",
738
738
  "padding": 16,
@@ -35,7 +35,7 @@ exports[`Option renders correctly 1`] = `
35
35
  [
36
36
  {
37
37
  "alignItems": "center",
38
- "backgroundColor": "#ece8ef",
38
+ "backgroundColor": undefined,
39
39
  "borderRadius": 4,
40
40
  "flexDirection": "row",
41
41
  "opacity": 1,
@@ -224,7 +224,7 @@ exports[`OptionList render isLoading correctly 1`] = `
224
224
  [
225
225
  {
226
226
  "alignItems": "center",
227
- "backgroundColor": "#ece8ef",
227
+ "backgroundColor": undefined,
228
228
  "borderRadius": 4,
229
229
  "flexDirection": "row",
230
230
  "opacity": 1,
@@ -1098,7 +1098,7 @@ exports[`OptionList renders correctly 1`] = `
1098
1098
  [
1099
1099
  {
1100
1100
  "alignItems": "center",
1101
- "backgroundColor": "#ece8ef",
1101
+ "backgroundColor": undefined,
1102
1102
  "borderRadius": 4,
1103
1103
  "flexDirection": "row",
1104
1104
  "opacity": 1,
@@ -1819,7 +1819,7 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
1819
1819
  [
1820
1820
  {
1821
1821
  "alignItems": "center",
1822
- "backgroundColor": "#ece8ef",
1822
+ "backgroundColor": undefined,
1823
1823
  "borderRadius": 4,
1824
1824
  "flexDirection": "row",
1825
1825
  "opacity": 1,
@@ -2085,7 +2085,7 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
2085
2085
  [
2086
2086
  {
2087
2087
  "alignItems": "center",
2088
- "backgroundColor": "#ece8ef",
2088
+ "backgroundColor": undefined,
2089
2089
  "borderRadius": 4,
2090
2090
  "flexDirection": "row",
2091
2091
  "opacity": 1,
@@ -2568,7 +2568,7 @@ exports[`OptionList trigger onPress correctly on select additional value 1`] = `
2568
2568
  [
2569
2569
  {
2570
2570
  "alignItems": "center",
2571
- "backgroundColor": "#ece8ef",
2571
+ "backgroundColor": undefined,
2572
2572
  "borderRadius": 4,
2573
2573
  "flexDirection": "row",
2574
2574
  "opacity": 1,
@@ -2202,7 +2202,7 @@ exports[`rendering renders correct floating bottom sheet variant 1`] = `
2202
2202
  [
2203
2203
  {
2204
2204
  "alignItems": "center",
2205
- "backgroundColor": "#ece8ef",
2205
+ "backgroundColor": undefined,
2206
2206
  "borderRadius": 4,
2207
2207
  "flexDirection": "row",
2208
2208
  "opacity": 1,
@@ -4207,7 +4207,7 @@ exports[`rendering renders correctly when bottom sheet is visible 1`] = `
4207
4207
  [
4208
4208
  {
4209
4209
  "alignItems": "center",
4210
- "backgroundColor": "#ece8ef",
4210
+ "backgroundColor": undefined,
4211
4211
  "borderRadius": 4,
4212
4212
  "flexDirection": "row",
4213
4213
  "opacity": 1,
@@ -4371,7 +4371,7 @@ exports[`rendering renders correctly when bottom sheet is visible 1`] = `
4371
4371
  [
4372
4372
  {
4373
4373
  "alignItems": "center",
4374
- "backgroundColor": "#ece8ef",
4374
+ "backgroundColor": undefined,
4375
4375
  "borderRadius": 4,
4376
4376
  "flexDirection": "row",
4377
4377
  "opacity": 1,
@@ -6534,7 +6534,7 @@ exports[`rendering renders correctly when receives sections 1`] = `
6534
6534
  [
6535
6535
  {
6536
6536
  "alignItems": "center",
6537
- "backgroundColor": "#ece8ef",
6537
+ "backgroundColor": undefined,
6538
6538
  "borderRadius": 4,
6539
6539
  "flexDirection": "row",
6540
6540
  "opacity": 1,
@@ -6688,7 +6688,7 @@ exports[`rendering renders correctly when receives sections 1`] = `
6688
6688
  [
6689
6689
  {
6690
6690
  "alignItems": "center",
6691
- "backgroundColor": "#ece8ef",
6691
+ "backgroundColor": undefined,
6692
6692
  "borderRadius": 4,
6693
6693
  "flexDirection": "row",
6694
6694
  "opacity": 1,
@@ -7621,7 +7621,7 @@ exports[`rendering renders correctly when receives sections 2`] = `
7621
7621
  [
7622
7622
  {
7623
7623
  "alignItems": "center",
7624
- "backgroundColor": "#ece8ef",
7624
+ "backgroundColor": undefined,
7625
7625
  "borderRadius": 4,
7626
7626
  "flexDirection": "row",
7627
7627
  "opacity": 1,
@@ -35,7 +35,7 @@ exports[`Option renders correctly 1`] = `
35
35
  [
36
36
  {
37
37
  "alignItems": "center",
38
- "backgroundColor": "#ece8ef",
38
+ "backgroundColor": undefined,
39
39
  "borderRadius": 4,
40
40
  "flexDirection": "row",
41
41
  "opacity": 1,
@@ -229,7 +229,7 @@ exports[`OptionList render isLoading correctly 1`] = `
229
229
  [
230
230
  {
231
231
  "alignItems": "center",
232
- "backgroundColor": "#ece8ef",
232
+ "backgroundColor": undefined,
233
233
  "borderRadius": 4,
234
234
  "flexDirection": "row",
235
235
  "opacity": 1,
@@ -1080,7 +1080,7 @@ exports[`OptionList renders correctly 1`] = `
1080
1080
  [
1081
1081
  {
1082
1082
  "alignItems": "center",
1083
- "backgroundColor": "#ece8ef",
1083
+ "backgroundColor": undefined,
1084
1084
  "borderRadius": 4,
1085
1085
  "flexDirection": "row",
1086
1086
  "opacity": 1,
@@ -1778,7 +1778,7 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1778
1778
  [
1779
1779
  {
1780
1780
  "alignItems": "center",
1781
- "backgroundColor": "#ece8ef",
1781
+ "backgroundColor": undefined,
1782
1782
  "borderRadius": 4,
1783
1783
  "flexDirection": "row",
1784
1784
  "opacity": 1,
@@ -2476,7 +2476,7 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2476
2476
  [
2477
2477
  {
2478
2478
  "alignItems": "center",
2479
- "backgroundColor": "#ece8ef",
2479
+ "backgroundColor": undefined,
2480
2480
  "borderRadius": 4,
2481
2481
  "flexDirection": "row",
2482
2482
  "opacity": 1,
@@ -2121,7 +2121,7 @@ exports[`rendering renders correct floating bottom sheet variant 1`] = `
2121
2121
  [
2122
2122
  {
2123
2123
  "alignItems": "center",
2124
- "backgroundColor": "#ece8ef",
2124
+ "backgroundColor": undefined,
2125
2125
  "borderRadius": 4,
2126
2126
  "flexDirection": "row",
2127
2127
  "opacity": 1,
@@ -4013,7 +4013,7 @@ exports[`rendering renders correctly when bottom sheet is visible 1`] = `
4013
4013
  [
4014
4014
  {
4015
4015
  "alignItems": "center",
4016
- "backgroundColor": "#ece8ef",
4016
+ "backgroundColor": undefined,
4017
4017
  "borderRadius": 4,
4018
4018
  "flexDirection": "row",
4019
4019
  "opacity": 1,
@@ -5961,7 +5961,7 @@ exports[`rendering renders correctly when receives sections 1`] = `
5961
5961
  [
5962
5962
  {
5963
5963
  "alignItems": "center",
5964
- "backgroundColor": "#ece8ef",
5964
+ "backgroundColor": undefined,
5965
5965
  "borderRadius": 4,
5966
5966
  "flexDirection": "row",
5967
5967
  "opacity": 1,
package/src/index.ts CHANGED
@@ -10,6 +10,7 @@ import theme, {
10
10
  jobsSystemPalette,
11
11
  walletSystemPalette,
12
12
  eBensSystemPalette,
13
+ ehWorkDarkSystemPalette,
13
14
  ThemeSwitcher,
14
15
  withTheme,
15
16
  } from './theme';
@@ -90,6 +91,7 @@ export {
90
91
  jobsSystemPalette,
91
92
  walletSystemPalette,
92
93
  eBensSystemPalette,
94
+ ehWorkDarkSystemPalette,
93
95
  Accordion,
94
96
  Alert,
95
97
  AppCue,
@@ -9,6 +9,7 @@ import {
9
9
  walletSystemPalette,
10
10
  eBensSystemPalette,
11
11
  swagDarkSystemPalette,
12
+ ehWorkDarkSystemPalette,
12
13
  swagLightSystemPalette,
13
14
  } from './global';
14
15
  import ThemeProvider from './ThemeProvider';
@@ -20,7 +21,8 @@ type ThemeName =
20
21
  | 'work'
21
22
  | 'jobs'
22
23
  | 'wallet'
23
- | 'eBens';
24
+ | 'eBens'
25
+ | 'ehWorkDark';
24
26
 
25
27
  const ThemeSwitcher = ({
26
28
  name = 'swag',
@@ -45,6 +47,8 @@ const ThemeSwitcher = ({
45
47
  return getTheme(defaultScale, swagDarkSystemPalette);
46
48
  case 'swagLight':
47
49
  return getTheme(defaultScale, swagLightSystemPalette);
50
+ case 'ehWorkDark':
51
+ return getTheme(defaultScale, ehWorkDarkSystemPalette);
48
52
  }
49
53
  }, [name]);
50
54
  return <ThemeProvider theme={theme}>{children}</ThemeProvider>;
@@ -547,7 +547,7 @@ exports[`theme returns correct theme object 1`] = `
547
547
  "error": {
548
548
  "colors": {
549
549
  "description": "#4d6265",
550
- "fullScreenBackground": "#ccd2d3",
550
+ "fullScreenBackground": "#ffffff",
551
551
  "inPageBackground": "#f6f6f7",
552
552
  "title": "#001f23",
553
553
  },
@@ -696,7 +696,7 @@ exports[`theme returns correct theme object 1`] = `
696
696
  },
697
697
  "list": {
698
698
  "colors": {
699
- "checkedListItemContainerBackground": "#ece8ef",
699
+ "checkedListItemContainerBackground": undefined,
700
700
  "leadingStatus": {
701
701
  "archived": "#abacaf",
702
702
  "danger": "#f46363",
@@ -1393,9 +1393,8 @@ exports[`theme returns correct theme object 1`] = `
1393
1393
  "colors": {
1394
1394
  "background": "#ffffff",
1395
1395
  "border": "#e8e9ea",
1396
- "danger": "#ffbe71",
1396
+ "danger": "#cb300a",
1397
1397
  "disabled": "#bfc1c5",
1398
- "error": "#f46363",
1399
1398
  "iconButtonBackground": "#ece8ef",
1400
1399
  "info": "#b5c3fd",
1401
1400
  "inputContainerBackground": "#f6f6f7",
@@ -20,7 +20,7 @@ const getErrorTheme = (theme: GlobalTheme) => {
20
20
  const colors = {
21
21
  title: theme.colors.onDefaultGlobalSurface,
22
22
  description: theme.colors.mutedOnDefaultGlobalSurface,
23
- fullScreenBackground: theme.colors.decorativePrimarySurface,
23
+ fullScreenBackground: theme.colors.defaultGlobalSurface,
24
24
  inPageBackground: theme.colors.neutralGlobalSurface,
25
25
  };
26
26
 
@@ -2,7 +2,7 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getListTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- checkedListItemContainerBackground: theme.colors.highlightedSurface,
5
+ checkedListItemContainerBackground: theme.colors.decorativeSecondarySurface,
6
6
  listItemContainerBackground: theme.colors.defaultGlobalSurface,
7
7
  leadingStatus: {
8
8
  danger: theme.colors.error,
@@ -9,8 +9,7 @@ const getToolbarTheme = (theme: GlobalTheme) => {
9
9
  secondary: theme.colors.mutedOnDefaultGlobalSurface,
10
10
  info: theme.colors.info,
11
11
  success: theme.colors.success,
12
- danger: theme.colors.warning,
13
- error: theme.colors.error,
12
+ danger: theme.colors.onErrorSurface,
14
13
  disabled: theme.colors.disabledOnDefaultGlobalSurface,
15
14
  iconButtonBackground: theme.colors.highlightedSurface,
16
15
  inputContainerBackground: theme.colors.neutralGlobalSurface,