@hero-design/rn 7.23.0 → 7.25.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 (276) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/assets/fonts/hero-icons.ttf +0 -0
  3. package/es/index.js +1364 -9239
  4. package/lib/assets/fonts/hero-icons.ttf +0 -0
  5. package/lib/index.js +1368 -9238
  6. package/package.json +7 -4
  7. package/rollup.config.js +1 -0
  8. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -4
  9. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  10. package/src/components/Attachment/StyledAttachment.tsx +44 -0
  11. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +158 -0
  12. package/src/components/Attachment/__tests__/index.spec.tsx +59 -0
  13. package/src/components/Attachment/index.tsx +77 -0
  14. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
  15. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  16. package/src/components/Badge/Status.tsx +1 -1
  17. package/src/components/Badge/StyledBadge.tsx +8 -1
  18. package/src/components/Badge/__tests__/Badge.spec.tsx +9 -0
  19. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +44 -0
  20. package/src/components/Badge/index.tsx +1 -1
  21. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  22. package/src/components/BottomSheet/Header.tsx +2 -1
  23. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +52 -52
  24. package/src/components/BottomSheet/index.tsx +4 -4
  25. package/src/components/Button/Button.tsx +0 -11
  26. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +4 -4
  27. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  28. package/src/components/Button/LoadingIndicator/index.tsx +1 -1
  29. package/src/components/Button/StyledButton.tsx +24 -63
  30. package/src/components/Button/UtilityButton/__tests__/index.spec.tsx +2 -2
  31. package/src/components/Button/__tests__/Button.spec.tsx +10 -5
  32. package/src/components/Button/__tests__/StyledButton.spec.tsx +0 -70
  33. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +301 -1206
  34. package/src/components/Calendar/CalendarRowItem.tsx +1 -4
  35. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -5
  36. package/src/components/Calendar/index.tsx +4 -3
  37. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -1
  38. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
  39. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  40. package/src/components/Checkbox/StyledCheckbox.tsx +7 -5
  41. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +4 -12
  42. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +95 -42
  43. package/src/components/Checkbox/index.tsx +4 -2
  44. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  45. package/src/components/ContentNavigator/index.tsx +14 -9
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -0
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +29 -27
  48. package/src/components/Drawer/DragableDrawer/index.tsx +0 -2
  49. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  50. package/src/components/Empty/index.tsx +1 -2
  51. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  52. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -1
  53. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  54. package/src/components/Icon/HeroIcon/fonts/hero-icons.ttf +0 -0
  55. package/src/components/Icon/HeroIcon/glyphMap.json +1 -0
  56. package/src/components/Icon/HeroIcon/index.tsx +3 -7
  57. package/src/components/Icon/IconList.ts +36 -6
  58. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  59. package/src/components/Icon/index.tsx +1 -0
  60. package/src/components/List/BasicListItem.tsx +13 -8
  61. package/src/components/List/ListItem.tsx +8 -6
  62. package/src/components/List/StyledBasicListItem.tsx +2 -2
  63. package/src/components/List/StyledListItem.tsx +2 -2
  64. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +24 -36
  65. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +39 -59
  66. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +40 -44
  67. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +50 -50
  68. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
  69. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
  70. package/src/components/Progress/ProgressBar.tsx +1 -1
  71. package/src/components/Progress/ProgressCircle.tsx +1 -1
  72. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +10 -10
  73. package/src/components/Progress/types.ts +7 -1
  74. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +20 -32
  75. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +30 -48
  76. package/src/components/RefreshControl/__tests__/index.spec.tsx +1 -3
  77. package/src/components/RefreshControl/index.tsx +4 -2
  78. package/src/components/RichTextEditor/MentionList.tsx +12 -3
  79. package/src/components/RichTextEditor/RichTextEditor.tsx +4 -8
  80. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -4
  81. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  82. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +13 -20
  83. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +154 -238
  84. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +435 -650
  85. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -18
  86. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +144 -228
  87. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +414 -629
  88. package/src/components/Select/StyledOptionList.tsx +0 -1
  89. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
  90. package/src/components/Spinner/AnimatedSpinner.tsx +22 -7
  91. package/src/components/Spinner/StyledSpinner.tsx +15 -11
  92. package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +3 -1
  93. package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +42 -31
  94. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +12 -8
  95. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +543 -83
  96. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +12 -8
  97. package/src/components/Spinner/index.tsx +6 -1
  98. package/src/components/Swipeable/StyledSwipeable.tsx +11 -0
  99. package/src/components/Swipeable/SwipeableAction.tsx +45 -0
  100. package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +37 -0
  101. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +130 -0
  102. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +33 -0
  103. package/src/components/Swipeable/__tests__/index.spec.tsx +34 -0
  104. package/src/components/Swipeable/index.tsx +160 -0
  105. package/src/components/Switch/SelectorSwitch/Option.tsx +1 -5
  106. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
  107. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  108. package/src/components/Switch/SelectorSwitch/__tests__/index.spec.tsx +1 -0
  109. package/src/components/Switch/SelectorSwitch/index.tsx +4 -1
  110. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
  111. package/src/components/Tabs/StyledTabs.tsx +1 -1
  112. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
  113. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  114. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +2 -2
  115. package/src/components/TextInput/StyledTextInput.tsx +7 -12
  116. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +12 -6
  117. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +31 -146
  118. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +40 -14
  119. package/src/components/TextInput/__tests__/index.spec.tsx +114 -124
  120. package/src/components/TextInput/index.tsx +8 -6
  121. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -0
  122. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +29 -27
  123. package/src/components/Toast/Toast.tsx +0 -3
  124. package/src/components/Toast/ToastProvider.tsx +1 -0
  125. package/src/components/Toast/__tests__/index.spec.tsx +1 -1
  126. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
  127. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
  128. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +4 -4
  129. package/src/emotion.d.ts +1 -0
  130. package/src/index.ts +10 -0
  131. package/src/theme/ThemeSwitcher.tsx +7 -1
  132. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +96 -78
  133. package/src/theme/__tests__/ensureCompatibleWithV7.spec.tsx +13 -0
  134. package/src/theme/components/alert.ts +1 -1
  135. package/src/theme/components/attachment.ts +28 -0
  136. package/src/theme/components/avatar.ts +1 -1
  137. package/src/theme/components/badge.ts +2 -1
  138. package/src/theme/components/bottomNavigation.ts +1 -1
  139. package/src/theme/components/bottomSheet.ts +2 -2
  140. package/src/theme/components/button.ts +4 -20
  141. package/src/theme/components/calendar.ts +3 -3
  142. package/src/theme/components/card.ts +1 -1
  143. package/src/theme/components/checkbox.ts +2 -2
  144. package/src/theme/components/divider.ts +1 -1
  145. package/src/theme/components/drawer.ts +2 -2
  146. package/src/theme/components/empty.ts +3 -3
  147. package/src/theme/components/fab.ts +7 -7
  148. package/src/theme/components/icon.ts +4 -4
  149. package/src/theme/components/list.ts +0 -2
  150. package/src/theme/components/pinInput.ts +4 -4
  151. package/src/theme/components/progress.ts +6 -5
  152. package/src/theme/components/radio.ts +1 -1
  153. package/src/theme/components/richTextEditor.ts +2 -2
  154. package/src/theme/components/slider.ts +2 -2
  155. package/src/theme/components/spinner.ts +4 -1
  156. package/src/theme/components/swipeable.ts +13 -0
  157. package/src/theme/components/switch.ts +4 -4
  158. package/src/theme/components/tabs.ts +6 -5
  159. package/src/theme/components/tag.ts +2 -2
  160. package/src/theme/components/textInput.ts +23 -33
  161. package/src/theme/components/toast.ts +3 -3
  162. package/src/theme/components/toolbar.ts +3 -3
  163. package/src/theme/components/typography.ts +7 -7
  164. package/src/theme/getTheme.ts +7 -1
  165. package/src/theme/global/colors/eBens.ts +23 -0
  166. package/src/theme/global/colors/global.ts +15 -6
  167. package/src/theme/global/colors/jobs.ts +15 -10
  168. package/src/theme/global/colors/legacySystemPalette.ts +6 -6
  169. package/src/theme/global/colors/swag.ts +32 -53
  170. package/src/theme/global/colors/types.ts +35 -15
  171. package/src/theme/global/colors/wallet.ts +23 -0
  172. package/src/theme/global/colors/work.ts +15 -11
  173. package/src/theme/global/index.ts +4 -0
  174. package/src/theme/index.ts +4 -0
  175. package/src/types.ts +2 -0
  176. package/src/utils/functions.ts +2 -0
  177. package/src/utils/scale.ts +1 -1
  178. package/testUtils/setup.tsx +13 -0
  179. package/tsconfig.json +8 -2
  180. package/types/components/Accordion/StyledAccordion.d.ts +14 -14
  181. package/types/components/Alert/StyledAlert.d.ts +15 -15
  182. package/types/components/Attachment/StyledAttachment.d.ts +28 -0
  183. package/types/components/Attachment/index.d.ts +37 -0
  184. package/types/components/Avatar/StyledAvatar.d.ts +15 -15
  185. package/types/components/Avatar/index.d.ts +1 -1
  186. package/types/components/Badge/Status.d.ts +1 -1
  187. package/types/components/Badge/StyledBadge.d.ts +8 -8
  188. package/types/components/Badge/index.d.ts +1 -1
  189. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +21 -21
  190. package/types/components/BottomSheet/Header.d.ts +1 -1
  191. package/types/components/BottomSheet/StyledBottomSheet.d.ts +22 -22
  192. package/types/components/Box/StyledBox.d.ts +4 -4
  193. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +7 -7
  194. package/types/components/Button/StyledButton.d.ts +15 -18
  195. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +8 -8
  196. package/types/components/Calendar/StyledCalendar.d.ts +25 -25
  197. package/types/components/Calendar/helpers.d.ts +2 -2
  198. package/types/components/Card/DataCard/StyledDataCard.d.ts +6 -6
  199. package/types/components/Card/StyledCard.d.ts +7 -7
  200. package/types/components/Checkbox/StyledCheckbox.d.ts +16 -10
  201. package/types/components/Collapse/StyledCollapse.d.ts +8 -8
  202. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
  203. package/types/components/ContentNavigator/index.d.ts +2 -1
  204. package/types/components/DatePicker/StyledDatePicker.d.ts +3 -3
  205. package/types/components/Divider/StyledDivider.d.ts +5 -5
  206. package/types/components/Drawer/StyledDrawer.d.ts +19 -19
  207. package/types/components/Empty/StyledEmpty.d.ts +9 -9
  208. package/types/components/Empty/index.d.ts +1 -2
  209. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +11 -11
  210. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +7 -7
  211. package/types/components/FAB/StyledFAB.d.ts +8 -8
  212. package/types/components/Icon/HeroIcon/index.d.ts +3 -3
  213. package/types/components/Icon/IconList.d.ts +1 -1
  214. package/types/components/Icon/index.d.ts +4 -1
  215. package/types/components/Icon/utils.d.ts +1 -1
  216. package/types/components/List/StyledBasicListItem.d.ts +16 -16
  217. package/types/components/List/StyledListItem.d.ts +25 -25
  218. package/types/components/PinInput/StyledPinInput.d.ts +30 -30
  219. package/types/components/Progress/ProgressBar.d.ts +1 -1
  220. package/types/components/Progress/ProgressCircle.d.ts +1 -1
  221. package/types/components/Progress/StyledProgressBar.d.ts +5 -5
  222. package/types/components/Progress/StyledProgressCircle.d.ts +18 -18
  223. package/types/components/Progress/types.d.ts +1 -1
  224. package/types/components/Radio/StyledRadio.d.ts +9 -9
  225. package/types/components/RefreshControl/index.d.ts +1 -2
  226. package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
  227. package/types/components/RichTextEditor/MentionList.d.ts +1 -1
  228. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -6
  229. package/types/components/RichTextEditor/StyledToolbar.d.ts +9 -9
  230. package/types/components/RichTextEditor/index.d.ts +2 -2
  231. package/types/components/SectionHeading/StyledHeading.d.ts +9 -9
  232. package/types/components/Select/MultiSelect/Option.d.ts +1 -1
  233. package/types/components/Select/SingleSelect/Option.d.ts +1 -1
  234. package/types/components/Select/StyledSelect.d.ts +11 -11
  235. package/types/components/Select/helpers.d.ts +1 -1
  236. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
  237. package/types/components/Spinner/StyledSpinner.d.ts +13 -12
  238. package/types/components/Spinner/index.d.ts +5 -1
  239. package/types/components/Swipeable/StyledSwipeable.d.ts +10 -0
  240. package/types/components/Swipeable/SwipeableAction.d.ts +27 -0
  241. package/types/components/Swipeable/index.d.ts +45 -0
  242. package/types/components/Switch/SelectorSwitch/Option.d.ts +3 -1
  243. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +9 -9
  244. package/types/components/Switch/StyledSwitch.d.ts +5 -5
  245. package/types/components/Tabs/StyledScrollableTabs.d.ts +23 -23
  246. package/types/components/Tabs/StyledTabs.d.ts +22 -22
  247. package/types/components/Tag/StyledTag.d.ts +6 -6
  248. package/types/components/TextInput/StyledTextInput.d.ts +46 -45
  249. package/types/components/TextInput/index.d.ts +6 -6
  250. package/types/components/TimePicker/StyledTimePicker.d.ts +3 -3
  251. package/types/components/Toast/StyledToast.d.ts +17 -17
  252. package/types/components/Toolbar/StyledToolbar.d.ts +9 -9
  253. package/types/components/Typography/Text/StyledText.d.ts +3 -3
  254. package/types/index.d.ts +4 -2
  255. package/types/testHelpers/renderWithTheme.d.ts +1 -1
  256. package/types/theme/ThemeSwitcher.d.ts +2 -2
  257. package/types/theme/components/attachment.d.ts +21 -0
  258. package/types/theme/components/badge.d.ts +1 -0
  259. package/types/theme/components/button.d.ts +0 -15
  260. package/types/theme/components/list.d.ts +0 -1
  261. package/types/theme/components/progress.d.ts +1 -0
  262. package/types/theme/components/spinner.d.ts +4 -1
  263. package/types/theme/components/swipeable.d.ts +9 -0
  264. package/types/theme/components/tabs.d.ts +1 -0
  265. package/types/theme/components/tag.d.ts +2 -2
  266. package/types/theme/components/textInput.d.ts +0 -10
  267. package/types/theme/getTheme.d.ts +4 -0
  268. package/types/theme/global/colors/eBens.d.ts +3 -0
  269. package/types/theme/global/colors/types.d.ts +23 -16
  270. package/types/theme/global/colors/wallet.d.ts +3 -0
  271. package/types/theme/global/index.d.ts +26 -12
  272. package/types/theme/index.d.ts +2 -2
  273. package/types/types.d.ts +2 -1
  274. package/types/utils/functions.d.ts +1 -0
  275. package/types/utils/hooks.d.ts +1 -1
  276. package/src/components/Icon/HeroIcon/selection.json +0 -7029
@@ -2,15 +2,15 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getIconTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- text: theme.colors.globalPrimary,
5
+ text: theme.colors.onDefaultGlobalSurface,
6
6
  primary: theme.colors.primary,
7
7
  secondary: theme.colors.secondary,
8
8
  info: theme.colors.info,
9
- danger: theme.colors.danger,
9
+ danger: theme.colors.onErrorSurface,
10
10
  success: theme.colors.success,
11
11
  warning: theme.colors.warning,
12
- disabledText: theme.colors.mutedGlobalPrimary,
13
- invertedText: theme.colors.defaultGlobalSurface,
12
+ disabledText: theme.colors.disabledOnDefaultGlobalSurface,
13
+ invertedText: theme.colors.onDarkGlobalSurface,
14
14
  };
15
15
 
16
16
  const sizes = {
@@ -3,8 +3,6 @@ import type { GlobalTheme } from '../global';
3
3
  const getListTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
5
  checkedListItemContainerBackground: theme.colors.highlightedSurface,
6
- highlightedListItemContainerBackground:
7
- theme.colors.lightHighlightedSurface,
8
6
  listItemContainerBackground: theme.colors.defaultGlobalSurface,
9
7
  leadingStatus: {
10
8
  danger: theme.colors.error,
@@ -7,10 +7,10 @@ const getPinInputTheme = (theme: GlobalTheme) => {
7
7
  };
8
8
 
9
9
  const colors = {
10
- default: theme.colors.globalPrimary,
11
- mask: theme.colors.mutedGlobalPrimary,
12
- error: theme.colors.error,
13
- disabled: theme.colors.mutedGlobalPrimary,
10
+ default: theme.colors.primaryOutline,
11
+ mask: theme.colors.primaryOutline,
12
+ error: theme.colors.onErrorSurface,
13
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
14
14
  };
15
15
 
16
16
  const fonts = {
@@ -3,11 +3,12 @@ import type { GlobalTheme } from '../global';
3
3
  const getProgressTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
5
  primary: theme.colors.primary,
6
- success: theme.colors.success, // should be emerald dark 15
7
- warning: theme.colors.warning,
8
- danger: theme.colors.danger,
9
- info: theme.colors.info,
10
- background: theme.colors.globalSecondaryOutline,
6
+ success: theme.colors.onSuccessSurface, // should be emerald dark 15
7
+ warning: theme.colors.onWarningSurface,
8
+ danger: theme.colors.onErrorSurface,
9
+ info: theme.colors.onInfoSurface,
10
+ archived: theme.colors.onArchivedSurface,
11
+ background: theme.colors.secondaryOutline,
11
12
  innerBackground: theme.colors.defaultGlobalSurface,
12
13
  };
13
14
 
@@ -2,7 +2,7 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getRadioTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- circle: theme.colors.globalPrimary,
5
+ circle: theme.colors.onDefaultGlobalSurface,
6
6
  };
7
7
 
8
8
  const space = {
@@ -2,9 +2,9 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getRichTextEditorTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- toolbarBorderColor: theme.colors.globalSecondaryOutline,
5
+ toolbarBorderColor: theme.colors.secondaryOutline,
6
6
  toolbarBackgroundColor: theme.colors.neutralGlobalSurface,
7
- toolbarButtonSelectedBackground: theme.colors.lightHighlightedSurface,
7
+ toolbarButtonSelectedBackground: theme.colors.highlightedSurface,
8
8
  };
9
9
 
10
10
  const sizes = {
@@ -2,9 +2,9 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getSliderTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- minimumTrackTint: theme.colors.secondary,
5
+ minimumTrackTint: theme.colors.primary,
6
6
  thumbTint: theme.colors.neutralGlobalSurface,
7
- maximumTrackTint: theme.colors.lightHighlightedSurface,
7
+ maximumTrackTint: theme.colors.highlightedSurface,
8
8
  };
9
9
 
10
10
  return { colors };
@@ -2,7 +2,10 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getSpinnerTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- dot: theme.colors.primary,
5
+ dot: {
6
+ primary: theme.colors.primary,
7
+ inverted: theme.colors.onPrimary,
8
+ },
6
9
  };
7
10
 
8
11
  const space = {
@@ -0,0 +1,13 @@
1
+ import type { GlobalTheme } from '../global';
2
+
3
+ const getSwipeableTheme = (theme: GlobalTheme) => {
4
+ const colors = {
5
+ success: theme.colors.success,
6
+ danger: theme.colors.error,
7
+ primary: theme.colors.primary,
8
+ };
9
+
10
+ return { colors };
11
+ };
12
+
13
+ export default getSwipeableTheme;
@@ -3,15 +3,15 @@ import type { GlobalTheme } from '../global';
3
3
  const getSwitchTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
5
  backgroundColors: {
6
- checked: theme.colors.secondary,
7
- unchecked: theme.colors.mutedSecondary,
8
- 'disabled-checked': theme.colors.disabledSecondary,
6
+ checked: theme.colors.primary,
7
+ unchecked: theme.colors.inactiveOnDefaultGlobalSurface,
8
+ 'disabled-checked': theme.colors.highlightedSurface,
9
9
  'disabled-unchecked': theme.colors.disabledOnDefaultGlobalSurface,
10
10
  },
11
11
  thumb: theme.colors.onSecondary,
12
12
  selector: {
13
13
  background: theme.colors.neutralGlobalSurface,
14
- textBackground: theme.colors.secondary,
14
+ textBackground: theme.colors.decorativePrimary,
15
15
  },
16
16
  };
17
17
 
@@ -2,11 +2,12 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getTabsTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- active: theme.colors.globalPrimary,
6
- inactive: theme.colors.globalPrimary,
7
- activeBackground: theme.colors.mutedPrimary,
8
- headerBottom: theme.colors.globalSecondaryOutline,
9
- text: theme.colors.globalPrimary,
5
+ active: theme.colors.onDefaultGlobalSurface,
6
+ inactive: theme.colors.onDefaultGlobalSurface,
7
+ activeBackground: theme.colors.decorativePrimarySurface,
8
+ headerBottom: theme.colors.secondaryOutline,
9
+ indicator: theme.colors.primary,
10
+ text: theme.colors.onDefaultGlobalSurface,
10
11
  };
11
12
 
12
13
  const space = {
@@ -6,9 +6,9 @@ const getTagTheme = (theme: GlobalTheme) => {
6
6
  };
7
7
 
8
8
  const colors = {
9
- default: theme.colors.globalPrimary,
9
+ default: theme.colors.onDefaultGlobalSurface,
10
10
  defaultBackground: undefined,
11
- primary: theme.colors.globalPrimary,
11
+ primary: theme.colors.primary,
12
12
  primaryBackground: undefined,
13
13
  info: theme.colors.onInfoSurface,
14
14
  infoBackground: theme.colors.infoSurface,
@@ -4,51 +4,41 @@ const getTextInputTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
5
  labelBackground: theme.colors.defaultGlobalSurface,
6
6
  asterisks: {
7
- default: theme.colors.error,
8
- error: theme.colors.error,
7
+ default: theme.colors.onErrorSurface,
8
+ error: theme.colors.onErrorSurface,
9
9
  disabled: theme.colors.disabledOnDefaultGlobalSurface,
10
- readonly: theme.colors.mutedSecondary,
11
- filled: theme.colors.error,
12
- focused: theme.colors.error,
10
+ readonly: theme.colors.inactiveOnDefaultGlobalSurface,
11
+ filled: theme.colors.onErrorSurface,
13
12
  },
14
- error: theme.colors.error,
15
- placeholderIfNotFocused: theme.colors.globalPrimary,
16
- placeholderIfFocued: theme.colors.mutedSecondary,
17
- label: theme.colors.globalPrimary,
18
- readonlyLabel: theme.colors.mutedSecondary,
19
- disabledLabel: theme.colors.disabledOnDefaultGlobalSurface,
20
- text: theme.colors.globalPrimary,
13
+ error: theme.colors.onErrorSurface,
14
+ text: theme.colors.onDefaultGlobalSurface,
21
15
  borders: {
22
- default: theme.colors.globalPrimary,
23
- error: theme.colors.error,
24
- disabled: theme.colors.disabledOnDefaultGlobalSurface,
25
- readonly: theme.colors.mutedSecondary,
26
- filled: theme.colors.globalPrimary,
27
- focused: theme.colors.globalPrimary,
16
+ default: theme.colors.primaryOutline,
17
+ error: theme.colors.onErrorSurface,
18
+ disabled: theme.colors.disabledOutline,
19
+ readonly: theme.colors.inactiveOutline,
20
+ filled: theme.colors.primaryOutline,
28
21
  },
29
22
  labels: {
30
- default: theme.colors.globalPrimary,
31
- error: theme.colors.globalPrimary,
23
+ default: theme.colors.onDefaultGlobalSurface,
24
+ error: theme.colors.onDefaultGlobalSurface,
32
25
  disabled: theme.colors.disabledOnDefaultGlobalSurface,
33
- readonly: theme.colors.disabledOnDefaultGlobalSurface,
34
- filled: theme.colors.globalPrimary,
35
- focused: theme.colors.globalPrimary,
26
+ readonly: theme.colors.inactiveOnDefaultGlobalSurface,
27
+ filled: theme.colors.onDefaultGlobalSurface,
36
28
  },
37
29
  labelsInsideTextInput: {
38
- default: theme.colors.globalPrimary,
39
- error: theme.colors.globalPrimary,
30
+ default: theme.colors.onDefaultGlobalSurface,
31
+ error: theme.colors.onDefaultGlobalSurface,
40
32
  disabled: theme.colors.disabledOnDefaultGlobalSurface,
41
- readonly: theme.colors.disabledOnDefaultGlobalSurface,
42
- filled: theme.colors.globalPrimary,
43
- focused: theme.colors.globalPrimary,
33
+ readonly: theme.colors.inactiveOnDefaultGlobalSurface,
34
+ filled: theme.colors.onDefaultGlobalSurface,
44
35
  },
45
36
  maxLengthLabels: {
46
- default: theme.colors.globalPrimary,
47
- error: theme.colors.error,
37
+ default: theme.colors.onDefaultGlobalSurface,
38
+ error: theme.colors.onErrorSurface,
48
39
  disabled: theme.colors.disabledOnDefaultGlobalSurface,
49
- readonly: theme.colors.disabledOnDefaultGlobalSurface,
50
- filled: theme.colors.globalPrimary,
51
- focused: theme.colors.globalPrimary,
40
+ readonly: theme.colors.inactiveOnDefaultGlobalSurface,
41
+ filled: theme.colors.onDefaultGlobalSurface,
52
42
  },
53
43
  };
54
44
 
@@ -7,9 +7,9 @@ const getToastTheme = (theme: GlobalTheme) => {
7
7
  error: theme.colors.error,
8
8
  info: theme.colors.info,
9
9
  notification: theme.colors.defaultGlobalSurface,
10
- snackbar: theme.colors.globalPrimary,
11
- divider: theme.colors.globalSecondaryOutline,
12
- shadow: theme.colors.globalPrimary,
10
+ snackbar: theme.colors.darkGlobalSurface,
11
+ divider: theme.colors.secondaryOutline,
12
+ shadow: theme.colors.primaryOutline,
13
13
  };
14
14
 
15
15
  const sizes = {
@@ -3,14 +3,14 @@ import type { GlobalTheme } from '../global';
3
3
  const getToolbarTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
5
  background: theme.colors.defaultGlobalSurface,
6
- border: theme.colors.globalSecondaryOutline,
6
+ border: theme.colors.primaryOutline,
7
7
  primary: theme.colors.primary,
8
8
  secondary: theme.colors.secondary,
9
9
  info: theme.colors.info,
10
10
  success: theme.colors.success,
11
11
  danger: theme.colors.warning,
12
- error: theme.colors.danger,
13
- disabled: theme.colors.disabledText,
12
+ error: theme.colors.error,
13
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
14
14
  };
15
15
 
16
16
  const space = {
@@ -2,15 +2,15 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getTypographyTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- body: theme.colors.globalPrimary,
6
- subdued: theme.colors.mutedGlobalPrimary,
5
+ body: theme.colors.onDefaultGlobalSurface,
6
+ subdued: theme.colors.mutedOnDefaultGlobalSurface,
7
7
  primary: theme.colors.primary,
8
8
  secondary: theme.colors.secondary,
9
- info: theme.colors.info,
10
- danger: theme.colors.danger,
11
- warning: theme.colors.warning,
12
- success: theme.colors.success,
13
- inverted: theme.colors.onGlobalPrimary,
9
+ info: theme.colors.onInfoSurface,
10
+ danger: theme.colors.onErrorSurface,
11
+ warning: theme.colors.onWarningSurface,
12
+ success: theme.colors.onSuccessSurface,
13
+ inverted: theme.colors.onDarkGlobalSurface,
14
14
  };
15
15
 
16
16
  const fonts = {
@@ -2,6 +2,7 @@ import { getGlobalTheme, defaultScale, swagSystemPalette } from './global';
2
2
 
3
3
  import getAccordionTheme from './components/accordion';
4
4
  import getAlertTheme from './components/alert';
5
+ import getAttachmentTheme from './components/attachment';
5
6
  import getAvatarTheme from './components/avatar';
6
7
  import getBadgeTheme from './components/badge';
7
8
  import getBottomNavigationTheme from './components/bottomNavigation';
@@ -28,6 +29,7 @@ import getSectionHeadingTheme from './components/sectionHeading';
28
29
  import getSelectTheme from './components/select';
29
30
  import getSliderTheme from './components/slider';
30
31
  import getSpinnerTheme from './components/spinner';
32
+ import getSwipeableTheme from './components/swipeable';
31
33
  import getSwitchTheme from './components/switch';
32
34
  import getTabsTheme from './components/tabs';
33
35
  import getTagTheme from './components/tag';
@@ -43,6 +45,7 @@ type Theme = GlobalTheme & {
43
45
  __hd__: {
44
46
  accordion: ReturnType<typeof getAccordionTheme>;
45
47
  alert: ReturnType<typeof getAlertTheme>;
48
+ attachment: ReturnType<typeof getAttachmentTheme>;
46
49
  avatar: ReturnType<typeof getAvatarTheme>;
47
50
  badge: ReturnType<typeof getBadgeTheme>;
48
51
  bottomNavigation: ReturnType<typeof getBottomNavigationTheme>;
@@ -69,6 +72,7 @@ type Theme = GlobalTheme & {
69
72
  select: ReturnType<typeof getSelectTheme>;
70
73
  slider: ReturnType<typeof getSliderTheme>;
71
74
  spinner: ReturnType<typeof getSpinnerTheme>;
75
+ swipeable: ReturnType<typeof getSwipeableTheme>;
72
76
  switch: ReturnType<typeof getSwitchTheme>;
73
77
  tabs: ReturnType<typeof getTabsTheme>;
74
78
  tag: ReturnType<typeof getTagTheme>;
@@ -89,8 +93,9 @@ const getTheme = (
89
93
  ...globalTheme,
90
94
  __hd__: {
91
95
  accordion: getAccordionTheme(globalTheme),
92
- avatar: getAvatarTheme(globalTheme),
93
96
  alert: getAlertTheme(globalTheme),
97
+ attachment: getAttachmentTheme(globalTheme),
98
+ avatar: getAvatarTheme(globalTheme),
94
99
  badge: getBadgeTheme(globalTheme),
95
100
  bottomNavigation: getBottomNavigationTheme(globalTheme),
96
101
  bottomSheet: getBottomSheetTheme(globalTheme),
@@ -116,6 +121,7 @@ const getTheme = (
116
121
  select: getSelectTheme(globalTheme),
117
122
  slider: getSliderTheme(globalTheme),
118
123
  spinner: getSpinnerTheme(globalTheme),
124
+ swipeable: getSwipeableTheme(globalTheme),
119
125
  switch: getSwitchTheme(globalTheme),
120
126
  tabs: getTabsTheme(globalTheme),
121
127
  tag: getTagTheme(globalTheme),
@@ -0,0 +1,23 @@
1
+ import { eBensPalette as palette } from '@hero-design/colors';
2
+ import swag from './swag';
3
+ import type { SystemPalette, BrandSystemPalette } from './types';
4
+
5
+ const eBensBrandSystemPallete: BrandSystemPalette = {
6
+ primary: palette.violet,
7
+ onPrimary: palette.white,
8
+ secondary: palette.violetLight30,
9
+ onSecondary: palette.white,
10
+ defaultSurface: palette.greyLight90,
11
+ highlightedSurface: palette.violetLight90,
12
+ pressedSurface: palette.violetLight20,
13
+
14
+ decorativePrimary: palette.mauve,
15
+ decorativePrimarySurface: palette.mauveLight80,
16
+ };
17
+
18
+ const eBensSystemPalette: SystemPalette = {
19
+ ...swag,
20
+ ...eBensBrandSystemPallete,
21
+ };
22
+
23
+ export default eBensSystemPalette;
@@ -2,16 +2,24 @@ import { defaultMobilePalette as palette } from '@hero-design/colors';
2
2
  import type { GlobalSystemPalette } from './types';
3
3
 
4
4
  const globalPalette: GlobalSystemPalette = {
5
- globalPrimary: palette.maasstrichtBlue,
6
- mutedGlobalPrimary: palette.maasstrichtBlueLight30,
7
- onGlobalPrimary: palette.white,
8
- globalSecondary: palette.maasstrichtBlueLight30,
9
- globalPrimaryOutline: palette.maasstrichtBlue,
10
- globalSecondaryOutline: palette.greyLight75,
5
+ // Updated 14 / Nov / 22
6
+ // Surfaces
11
7
  defaultGlobalSurface: palette.white,
12
8
  onDefaultGlobalSurface: palette.maasstrichtBlue,
13
9
  neutralGlobalSurface: palette.greyLight90,
10
+ mutedOnDefaultGlobalSurface: palette.maasstrichtBlueLight30,
11
+ inactiveOnDefaultGlobalSurface: palette.maasstrichtBlueLight50,
14
12
  disabledOnDefaultGlobalSurface: palette.greyLight30,
13
+ darkGlobalSurface: palette.maasstrichtBlue,
14
+ onDarkGlobalSurface: palette.white,
15
+
16
+ // Outlines
17
+ primaryOutline: palette.maasstrichtBlue,
18
+ secondaryOutline: palette.greyLight75,
19
+ inactiveOutline: palette.maasstrichtBlueLight50,
20
+ disabledOutline: palette.greyLight30,
21
+
22
+ // Accents
15
23
  error: palette.pastelRed,
16
24
  errorSurface: palette.linen,
17
25
  onErrorSurface: palette.vermilion,
@@ -27,6 +35,7 @@ const globalPalette: GlobalSystemPalette = {
27
35
  archived: palette.greyLight45,
28
36
  archivedSurface: palette.antiFlashWhite,
29
37
  onArchivedSurface: palette.sonicSilver,
38
+ // End of Updated 14 / Nov / 22
30
39
  };
31
40
 
32
41
  export default globalPalette;
@@ -1,18 +1,23 @@
1
1
  import { jobsPalette as palette } from '@hero-design/colors';
2
2
  import swag from './swag';
3
- import type { SystemPalette } from './types';
3
+ import type { SystemPalette, BrandSystemPalette } from './types';
4
+
5
+ const jobsBrandSystemPallete: BrandSystemPalette = {
6
+ primary: palette.apple,
7
+ onPrimary: palette.white,
8
+ secondary: palette.maasstrichtBlueLight30,
9
+ onSecondary: palette.white,
10
+ defaultSurface: palette.white,
11
+ highlightedSurface: palette.hitPinkLight90,
12
+ pressedSurface: palette.appleLight10,
13
+
14
+ decorativePrimary: palette.hitPink,
15
+ decorativePrimarySurface: palette.hitPinkLight80,
16
+ };
4
17
 
5
18
  const jobsSystemPalette: SystemPalette = {
6
19
  ...swag,
7
-
8
- primary: palette.hitPink,
9
- mutedPrimary: palette.hitPinkLight90,
10
- onPrimary: palette.maasstrichtBlue,
11
- secondary: palette.apple,
12
- mutedSecondary: palette.maasstrichtBlueLight50,
13
- disabledSecondary: palette.hitPinkLight50,
14
- highlightedSurface: palette.hitPinkLight80,
15
- lightHighlightedSurface: palette.hitPinkLight90,
20
+ ...jobsBrandSystemPallete,
16
21
  };
17
22
 
18
23
  export default jobsSystemPalette;
@@ -8,19 +8,15 @@ const legacySystemPalette: LegacySystemPalette = {
8
8
  globalPrimary: palette.maasstrichtBlue,
9
9
  globalPrimaryLight: palette.maasstrichtBlueLight50,
10
10
  globalPrimaryBackground: palette.maasstrichtBlueLight90,
11
- primary: swagPalette.violet,
12
11
  primaryLight: swagPalette.violetLight50,
13
12
  primaryDark: swagPalette.scarletGumLight30, // DEPRECATED
14
13
  primaryBackground: swagPalette.violetLight90,
15
14
  primaryBackgroundDark: palette.maasstrichtBlueLight30,
16
- secondary: swagPalette.ultramarineBlue, // no longer needed after revising Button
17
15
  secondaryLight: swagPalette.vodka, // no longer needed after revising Button
18
16
  secondaryBackground: swagPalette.aliceBlue, // no longer needed after revising Button
19
- info: palette.ultramarineBlue,
20
17
  infoMediumLight: palette.vodka, // DEPRECATED, use infoLight instead
21
18
  infoLight: palette.vodka,
22
19
  infoBackground: palette.aliceBlue,
23
- success: palette.emerald,
24
20
  successLight: palette.emerald, // DEPRECATED, use success instead
25
21
  successDark: palette.pineGreen,
26
22
  successBackground: palette.honeydew,
@@ -28,7 +24,6 @@ const legacySystemPalette: LegacySystemPalette = {
28
24
  dangerMediumLight: palette.apple, // should be dangerDark?
29
25
  dangerLight: palette.pastelRed,
30
26
  dangerBackground: palette.linen,
31
- warning: palette.mellowApricot,
32
27
  warningLight: palette.mellowApricot, // DEPRECATED, use warning instead
33
28
  warningDark: palette.deepSaffron,
34
29
  warningBackground: palette.seashell,
@@ -41,13 +36,18 @@ const legacySystemPalette: LegacySystemPalette = {
41
36
  disabledLightText: palette.greyLight30, // disabled
42
37
  invertedText: palette.white,
43
38
  outline: palette.greyLight75, // divider
44
- archived: palette.greyLight45, // no usage
45
39
  archivedLight: palette.greyLight30,
46
40
  archivedDark: palette.sonicSilver, // should replace archived as archived has no usage?
47
41
  archivedBackground: palette.greyLight90,
48
42
  black: palette.black,
49
43
  inactiveBackground: palette.maasstrichtBlueLight50,
50
44
  shadow: palette.greyLight45, // waiting for new color
45
+ // Updated 14 / Nov / 22
46
+ mutedGlobalPrimary: palette.maasstrichtBlueLight30,
47
+ onGlobalPrimary: palette.white,
48
+ globalSecondary: palette.maasstrichtBlueLight30,
49
+ globalPrimaryOutline: palette.maasstrichtBlue,
50
+ globalSecondaryOutline: palette.greyLight75,
51
51
  };
52
52
 
53
53
  export default legacySystemPalette;
@@ -1,65 +1,44 @@
1
1
  import { swagPalette as palette } from '@hero-design/colors';
2
- import type { SystemPalette } from './types';
2
+ import type {
3
+ SystemPalette,
4
+ BrandSystemPalette,
5
+ LegacyBrandSystemPalette,
6
+ } from './types';
3
7
  import globalPalette from './global';
8
+ import legacySystemPalette from './legacySystemPalette';
4
9
 
5
- const swagSystemPalette: SystemPalette = {
6
- // Legacy
7
- globalPrimary: palette.maasstrichtBlue,
8
- globalPrimaryLight: palette.maasstrichtBlueLight50,
9
- globalPrimaryBackground: palette.maasstrichtBlueLight90,
10
- primaryLight: palette.violetLight50,
11
- primaryDark: palette.scarletGumLight30, // DEPRECATED
12
- primaryBackground: palette.violetLight90,
13
- primaryBackgroundDark: palette.maasstrichtBlueLight30,
14
- secondaryLight: palette.vodka, // no longer needed after revising Button
15
- secondaryBackground: palette.aliceBlue, // no longer needed after revising Button
16
- info: palette.ultramarineBlue,
17
- infoMediumLight: palette.vodka, // DEPRECATED, use infoLight instead
18
- infoLight: palette.vodka,
19
- infoBackground: palette.aliceBlue,
20
- success: palette.emerald,
21
- successLight: palette.emerald, // DEPRECATED, use success instead
22
- successDark: palette.pineGreen,
23
- successBackground: palette.honeydew,
24
- danger: palette.vermilion,
25
- dangerMediumLight: palette.apple, // should be dangerDark?
26
- dangerLight: palette.pastelRed,
27
- dangerBackground: palette.linen,
28
- warning: palette.mellowApricot,
29
- warningLight: palette.mellowApricot, // DEPRECATED, use warning instead
30
- warningDark: palette.deepSaffron,
31
- warningBackground: palette.seashell,
32
- platformBackground: palette.white,
33
- backgroundLight: palette.greyLight90,
34
- backgroundDark: palette.maasstrichtBlue,
35
- text: palette.maasstrichtBlue,
36
- subduedText: palette.maasstrichtBlueLight30, // secondary
37
- disabledText: palette.maasstrichtBlueLight50, // readonly
38
- disabledLightText: palette.greyLight30, // disabled
39
- invertedText: palette.white,
40
- outline: palette.greyLight75, // divider
41
- archived: palette.greyLight45, // no usage
42
- archivedLight: palette.greyLight30,
43
- archivedDark: palette.sonicSilver, // should replace archived as archived has no usage?
44
- archivedBackground: palette.greyLight90,
45
- black: palette.black,
46
- inactiveBackground: palette.maasstrichtBlueLight50,
47
- shadow: palette.greyLight45, // waiting for new color
10
+ const swagBrandSystemPallete: BrandSystemPalette = {
11
+ primary: palette.scarletGum,
12
+ onPrimary: palette.white,
13
+ secondary: palette.scarletGumLight30,
14
+ onSecondary: palette.white,
15
+ defaultSurface: palette.greyLight90,
16
+ highlightedSurface: palette.scarletGumLight90,
17
+ pressedSurface: palette.scarletGumLight20,
48
18
 
49
- // Global
50
- ...globalPalette,
19
+ decorativePrimary: palette.white,
20
+ decorativePrimarySurface: palette.maasstrichtBlueLight80,
21
+ };
51
22
 
52
- // Brand
53
- primary: palette.maasstrichtBlue,
23
+ const swagLegacyBrandSystemPalette: LegacyBrandSystemPalette = {
54
24
  mutedPrimary: palette.maasstrichtBlueLight90,
55
- onPrimary: palette.white,
56
- secondary: palette.scarletGum,
57
- onSecondary: palette.white,
25
+ highlightedSecondarySurface: palette.aliceBlue,
58
26
  mutedSecondary: palette.maasstrichtBlueLight50,
59
27
  disabledSecondary: palette.scarletGumLight50,
60
- highlightedSurface: palette.scarletGumLight80,
61
- highlightedSecondarySurface: palette.aliceBlue,
62
28
  lightHighlightedSurface: palette.scarletGumLight90,
63
29
  };
64
30
 
31
+ const swagSystemPalette: SystemPalette = {
32
+ // TODO: Remove legacy in V8
33
+ // Legacy system
34
+ ...legacySystemPalette,
35
+ // Legacy brand
36
+ ...swagLegacyBrandSystemPalette,
37
+
38
+ // Global
39
+ ...globalPalette,
40
+ // Brand
41
+ ...swagBrandSystemPallete,
42
+ };
43
+
65
44
  export default swagSystemPalette;