@hero-design/rn 7.22.2 → 7.23.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 +3 -3
- package/es/index.js +2395 -1880
- package/lib/index.js +2395 -1878
- package/package.json +6 -6
- package/src/components/Accordion/AccordionItem.tsx +1 -1
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -8
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Box/StyledBox.tsx +1 -2
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +24 -24
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +6 -6
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +3 -3
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +2 -2
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +18 -4
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +19 -5
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
- package/src/components/Icon/HeroIcon/index.tsx +2 -0
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Icon/index.tsx +1 -0
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -2
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +12 -12
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +2 -2
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -4
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -5
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +1 -1
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1 -1
- package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +69 -0
- package/src/components/RefreshControl/__tests__/index.spec.tsx +55 -0
- package/src/components/RefreshControl/index.tsx +23 -0
- package/src/components/RichTextEditor/MentionList.tsx +25 -4
- package/src/components/RichTextEditor/RichTextEditor.tsx +3 -1
- package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +1 -1
- package/src/components/RichTextEditor/__tests__/MentionList.spec.tsx +6 -6
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +38 -10
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +13 -9
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +108 -38
- package/src/components/Select/MultiSelect/index.tsx +1 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -8
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +99 -29
- package/src/components/Select/SingleSelect/index.tsx +1 -1
- package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
- package/src/components/Select/types.ts +1 -3
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Spinner/StyledSpinner.tsx +8 -4
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +8 -4
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +32 -16
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +8 -4
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +3 -3
- package/src/components/Tabs/ScrollableTabs.tsx +2 -5
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +1 -1
- package/src/components/TextInput/StyledTextInput.tsx +16 -11
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +3 -3
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +46 -28
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +246 -64
- package/src/components/TextInput/index.tsx +21 -4
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +18 -4
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +19 -5
- package/src/components/Toast/ToastProvider.tsx +2 -4
- package/src/components/Toast/__tests__/index.spec.tsx +138 -0
- package/src/components/Toolbar/ToolbarItem.tsx +1 -1
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
- package/src/components/Typography/Text/StyledText.tsx +1 -0
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +3 -3
- package/src/components/Typography/Text/index.tsx +1 -0
- package/src/index.ts +4 -0
- package/src/theme/ThemeSwitcher.tsx +9 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +101 -88
- package/src/theme/components/accordion.ts +1 -1
- package/src/theme/components/alert.ts +4 -4
- package/src/theme/components/avatar.ts +2 -2
- package/src/theme/components/badge.ts +6 -6
- package/src/theme/components/bottomNavigation.ts +2 -2
- package/src/theme/components/bottomSheet.ts +3 -3
- package/src/theme/components/button.ts +20 -20
- package/src/theme/components/calendar.ts +4 -4
- package/src/theme/components/card.ts +5 -5
- package/src/theme/components/checkbox.ts +1 -1
- package/src/theme/components/divider.ts +1 -1
- package/src/theme/components/drawer.ts +4 -4
- package/src/theme/components/empty.ts +3 -4
- package/src/theme/components/fab.ts +7 -7
- package/src/theme/components/icon.ts +4 -3
- package/src/theme/components/list.ts +6 -7
- package/src/theme/components/pinInput.ts +4 -4
- package/src/theme/components/progress.ts +3 -3
- package/src/theme/components/refreshControl.ts +11 -0
- package/src/theme/components/richTextEditor.ts +9 -8
- package/src/theme/components/sectionHeading.ts +1 -1
- package/src/theme/components/select.ts +1 -1
- package/src/theme/components/slider.ts +3 -3
- package/src/theme/components/spinner.ts +1 -4
- package/src/theme/components/switch.ts +7 -7
- package/src/theme/components/tabs.ts +5 -5
- package/src/theme/components/tag.ts +12 -12
- package/src/theme/components/textInput.ts +38 -38
- package/src/theme/components/toast.ts +6 -6
- package/src/theme/components/toolbar.ts +3 -2
- package/src/theme/components/typography.ts +4 -3
- package/src/theme/getTheme.ts +3 -0
- package/src/theme/global/colors/global.ts +32 -0
- package/src/theme/global/colors/jobs.ts +18 -0
- package/src/theme/global/colors/legacySystemPalette.ts +53 -0
- package/src/theme/global/colors/swag.ts +21 -35
- package/src/theme/global/colors/types.ts +46 -27
- package/src/theme/global/colors/work.ts +10 -9
- package/src/theme/global/index.ts +8 -1
- package/src/theme/index.ts +6 -1
- package/src/utils/__tests__/helpers.spec.ts +27 -0
- package/src/utils/helpers.ts +21 -0
- package/tsconfig.prod.json +4 -0
- package/types/components/Icon/HeroIcon/index.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/RefreshControl/index.d.ts +5 -0
- package/types/components/RichTextEditor/MentionList.d.ts +7 -3
- package/types/components/RichTextEditor/index.d.ts +1 -1
- package/types/components/Select/types.d.ts +1 -3
- package/types/components/TextInput/StyledTextInput.d.ts +9 -3
- package/types/components/Toolbar/ToolbarItem.d.ts +1 -1
- package/types/components/Typography/Text/StyledText.d.ts +1 -1
- package/types/components/Typography/Text/index.d.ts +1 -1
- package/types/index.d.ts +3 -2
- package/types/theme/ThemeSwitcher.d.ts +1 -1
- package/types/theme/components/empty.d.ts +0 -1
- package/types/theme/components/icon.d.ts +1 -0
- package/types/theme/components/refreshControl.d.ts +7 -0
- package/types/theme/components/richTextEditor.d.ts +4 -3
- package/types/theme/components/spinner.d.ts +1 -4
- package/types/theme/components/toolbar.d.ts +1 -0
- package/types/theme/components/typography.d.ts +1 -0
- package/types/theme/getTheme.d.ts +2 -0
- package/types/theme/global/colors/global.d.ts +3 -0
- package/types/theme/global/colors/jobs.d.ts +3 -0
- package/types/theme/global/colors/legacySystemPalette.d.ts +3 -0
- package/types/theme/global/colors/types.d.ts +41 -21
- package/types/theme/global/index.d.ts +30 -21
- package/types/theme/index.d.ts +2 -2
- package/types/utils/helpers.d.ts +2 -0
- package/src/components/Box/__tests__/helpers.spec.ts +0 -14
- package/src/components/Box/helpers.ts +0 -10
- package/types/components/Accordion/__tests__/AccordionItem.spec.d.ts +0 -1
- package/types/components/Accordion/__tests__/StyledAccordion.spec.d.ts +0 -1
- package/types/components/Accordion/__tests__/index.spec.d.ts +0 -1
- package/types/components/Alert/__tests__/index.spec.d.ts +0 -1
- package/types/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -1
- package/types/components/Avatar/__tests__/index.spec.d.ts +0 -1
- package/types/components/Badge/__tests__/Badge.spec.d.ts +0 -1
- package/types/components/Badge/__tests__/Status.spec.d.ts +0 -1
- package/types/components/BottomNavigation/__tests__/index.spec.d.ts +0 -1
- package/types/components/BottomSheet/__tests__/index.spec.d.ts +0 -1
- package/types/components/Box/__tests__/helpers.spec.d.ts +0 -1
- package/types/components/Box/__tests__/index.spec.d.ts +0 -1
- package/types/components/Box/helpers.d.ts +0 -1
- package/types/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -1
- package/types/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -1
- package/types/components/Button/UtilityButton/__tests__/index.spec.d.ts +0 -1
- package/types/components/Button/__tests__/Button.spec.d.ts +0 -1
- package/types/components/Button/__tests__/IconButton.spec.d.ts +0 -1
- package/types/components/Button/__tests__/StyledButton.spec.d.ts +0 -1
- package/types/components/Calendar/__tests__/CalendarRowItem.spec.d.ts +0 -1
- package/types/components/Calendar/__tests__/helper.spec.d.ts +0 -1
- package/types/components/Calendar/__tests__/index.spec.d.ts +0 -1
- package/types/components/Card/DataCard/__tests__/StyledDataCard.spec.d.ts +0 -1
- package/types/components/Card/DataCard/__tests__/index.spec.d.ts +0 -1
- package/types/components/Card/__tests__/StyledCard.spec.d.ts +0 -1
- package/types/components/Card/__tests__/index.spec.d.ts +0 -1
- package/types/components/Checkbox/__tests__/StyledCheckbox.spec.d.ts +0 -1
- package/types/components/Checkbox/__tests__/index.spec.d.ts +0 -1
- package/types/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -1
- package/types/components/Collapse/__tests__/index.spec.d.ts +0 -1
- package/types/components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts +0 -1
- package/types/components/ContentNavigator/__tests__/index.spec.d.ts +0 -1
- package/types/components/DatePicker/__tests__/DatePicker.spec.d.ts +0 -1
- package/types/components/DatePicker/__tests__/DatePickerAndroid.spec.d.ts +0 -1
- package/types/components/DatePicker/__tests__/DatePickerIOS.spec.d.ts +0 -1
- package/types/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -1
- package/types/components/Drawer/DragableDrawer/__tests__/helpers.spec.d.ts +0 -1
- package/types/components/Drawer/DragableDrawer/__tests__/index.spec.d.ts +0 -1
- package/types/components/Drawer/__tests__/index.spec.d.ts +0 -1
- package/types/components/Empty/__tests__/index.spec.d.ts +0 -1
- package/types/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -1
- package/types/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -1
- package/types/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -1
- package/types/components/FAB/__tests__/index.spec.d.ts +0 -1
- package/types/components/Icon/__tests__/index.spec.d.ts +0 -1
- package/types/components/Image/__tests__/index.spec.d.ts +0 -1
- package/types/components/List/__tests__/BasicListItem.spec.d.ts +0 -1
- package/types/components/List/__tests__/ListItem.spec.d.ts +0 -1
- package/types/components/List/__tests__/StyledBasicListItem.spec.d.ts +0 -1
- package/types/components/List/__tests__/StyledListItem.spec.d.ts +0 -1
- package/types/components/PinInput/__tests__/PinCell.spec.d.ts +0 -1
- package/types/components/PinInput/__tests__/StyledPinInput.spec.d.ts +0 -1
- package/types/components/PinInput/__tests__/index.spec.d.ts +0 -1
- package/types/components/Radio/__tests__/Radio.spec.d.ts +0 -1
- package/types/components/Radio/__tests__/RadioGroup.spec.d.ts +0 -1
- package/types/components/RichTextEditor/__tests__/EditorToolbar.spec.d.ts +0 -1
- package/types/components/RichTextEditor/__tests__/MentionList.spec.d.ts +0 -1
- package/types/components/RichTextEditor/__tests__/RichTextEditor.spec.d.ts +0 -1
- package/types/components/SectionHeading/__tests__/StyledHeading.spec.d.ts +0 -1
- package/types/components/SectionHeading/__tests__/index.spec.d.ts +0 -1
- package/types/components/Select/MultiSelect/__tests__/Option.spec.d.ts +0 -1
- package/types/components/Select/MultiSelect/__tests__/OptionList.spec.d.ts +0 -1
- package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +0 -1
- package/types/components/Select/SingleSelect/__tests__/Option.spec.d.ts +0 -1
- package/types/components/Select/SingleSelect/__tests__/OptionList.spec.d.ts +0 -1
- package/types/components/Select/SingleSelect/__tests__/index.spec.d.ts +0 -1
- package/types/components/Select/__tests__/StyledSelect.spec.d.ts +0 -1
- package/types/components/Select/__tests__/helpers.spec.d.ts +0 -1
- package/types/components/Slider/__tests__/index.spec.d.ts +0 -1
- package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +0 -1
- package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +0 -1
- package/types/components/Spinner/__tests__/index.spec.d.ts +0 -1
- package/types/components/Switch/SelectorSwitch/__tests__/Option.spec.d.ts +0 -1
- package/types/components/Switch/SelectorSwitch/__tests__/index.spec.d.ts +0 -1
- package/types/components/Switch/__tests__/StyledSwitch.spec.d.ts +0 -1
- package/types/components/Switch/__tests__/index.spec.d.ts +0 -1
- package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -1
- package/types/components/Tabs/__tests__/TabWithBadge.spec.d.ts +0 -1
- package/types/components/Tabs/__tests__/index.spec.d.ts +0 -1
- package/types/components/Tag/__tests__/Tag.spec.d.ts +0 -1
- package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +0 -1
- package/types/components/TextInput/__tests__/index.spec.d.ts +0 -1
- package/types/components/TimePicker/__tests__/TimePicker.spec.d.ts +0 -1
- package/types/components/TimePicker/__tests__/TimePickerAndroid.spec.d.ts +0 -1
- package/types/components/TimePicker/__tests__/TimePickerIOS.spec.d.ts +0 -1
- package/types/components/Toast/__tests__/Toast.spec.d.ts +0 -1
- package/types/components/Toast/__tests__/ToastContainer.spec.d.ts +0 -1
- package/types/components/Toolbar/__tests__/ToolbarGroup.spec.d.ts +0 -1
- package/types/components/Toolbar/__tests__/ToolbarItem.spec.d.ts +0 -1
- package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -1
- package/types/components/Typography/Text/__tests__/index.spec.d.ts +0 -1
- package/types/theme/__tests__/index.spec.d.ts +0 -1
- package/types/utils/__tests__/scale.spec.d.ts +0 -1
|
@@ -2,13 +2,13 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getFABTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
buttonBackground: theme.colors.
|
|
6
|
-
icon: theme.colors.
|
|
7
|
-
headerText: theme.colors.
|
|
8
|
-
actionItemBackground: theme.colors.
|
|
9
|
-
backdropBackground: theme.colors.
|
|
10
|
-
titleText: theme.colors.
|
|
11
|
-
actionItemText: theme.colors.
|
|
5
|
+
buttonBackground: theme.colors.globalPrimary,
|
|
6
|
+
icon: theme.colors.onGlobalPrimary,
|
|
7
|
+
headerText: theme.colors.onGlobalPrimary,
|
|
8
|
+
actionItemBackground: theme.colors.globalPrimary,
|
|
9
|
+
backdropBackground: theme.colors.globalPrimary,
|
|
10
|
+
titleText: theme.colors.onGlobalPrimary,
|
|
11
|
+
actionItemText: theme.colors.onGlobalPrimary,
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
const sizes = {
|
|
@@ -2,14 +2,15 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getIconTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
text: theme.colors.
|
|
5
|
+
text: theme.colors.globalPrimary,
|
|
6
6
|
primary: theme.colors.primary,
|
|
7
|
+
secondary: theme.colors.secondary,
|
|
7
8
|
info: theme.colors.info,
|
|
8
9
|
danger: theme.colors.danger,
|
|
9
10
|
success: theme.colors.success,
|
|
10
11
|
warning: theme.colors.warning,
|
|
11
|
-
disabledText: theme.colors.
|
|
12
|
-
invertedText: theme.colors.
|
|
12
|
+
disabledText: theme.colors.mutedGlobalPrimary,
|
|
13
|
+
invertedText: theme.colors.defaultGlobalSurface,
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
const sizes = {
|
|
@@ -2,17 +2,16 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getListTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
checkedListItemContainerBackground:
|
|
6
|
-
theme.colors.__alpha__lightHighlightedSurface,
|
|
5
|
+
checkedListItemContainerBackground: theme.colors.highlightedSurface,
|
|
7
6
|
highlightedListItemContainerBackground:
|
|
8
|
-
theme.colors.
|
|
9
|
-
listItemContainerBackground: theme.colors.
|
|
7
|
+
theme.colors.lightHighlightedSurface,
|
|
8
|
+
listItemContainerBackground: theme.colors.defaultGlobalSurface,
|
|
10
9
|
leadingStatus: {
|
|
11
|
-
danger: theme.colors.
|
|
12
|
-
info: theme.colors.
|
|
10
|
+
danger: theme.colors.error,
|
|
11
|
+
info: theme.colors.info,
|
|
13
12
|
success: theme.colors.success,
|
|
14
13
|
warning: theme.colors.warning,
|
|
15
|
-
archived: theme.colors.
|
|
14
|
+
archived: theme.colors.archived,
|
|
16
15
|
},
|
|
17
16
|
};
|
|
18
17
|
|
|
@@ -7,10 +7,10 @@ const getPinInputTheme = (theme: GlobalTheme) => {
|
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
const colors = {
|
|
10
|
-
default: theme.colors.
|
|
11
|
-
mask: theme.colors.
|
|
12
|
-
error: theme.colors.
|
|
13
|
-
disabled: theme.colors.
|
|
10
|
+
default: theme.colors.globalPrimary,
|
|
11
|
+
mask: theme.colors.mutedGlobalPrimary,
|
|
12
|
+
error: theme.colors.error,
|
|
13
|
+
disabled: theme.colors.mutedGlobalPrimary,
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
const fonts = {
|
|
@@ -4,11 +4,11 @@ const getProgressTheme = (theme: GlobalTheme) => {
|
|
|
4
4
|
const colors = {
|
|
5
5
|
primary: theme.colors.primary,
|
|
6
6
|
success: theme.colors.success, // should be emerald dark 15
|
|
7
|
-
warning: theme.colors.
|
|
7
|
+
warning: theme.colors.warning,
|
|
8
8
|
danger: theme.colors.danger,
|
|
9
9
|
info: theme.colors.info,
|
|
10
|
-
background: theme.colors.
|
|
11
|
-
innerBackground: theme.colors.
|
|
10
|
+
background: theme.colors.globalSecondaryOutline,
|
|
11
|
+
innerBackground: theme.colors.defaultGlobalSurface,
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
const sizes = {
|
|
@@ -2,13 +2,9 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getRichTextEditorTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
toolbarBorderColor: theme.colors.
|
|
6
|
-
toolbarBackgroundColor: theme.colors.
|
|
7
|
-
toolbarButtonSelectedBackground: theme.colors.
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const borderWidths = {
|
|
11
|
-
webViewBorderBottomWidth: 0.8,
|
|
5
|
+
toolbarBorderColor: theme.colors.globalSecondaryOutline,
|
|
6
|
+
toolbarBackgroundColor: theme.colors.neutralGlobalSurface,
|
|
7
|
+
toolbarButtonSelectedBackground: theme.colors.lightHighlightedSurface,
|
|
12
8
|
};
|
|
13
9
|
|
|
14
10
|
const sizes = {
|
|
@@ -26,9 +22,14 @@ const getRichTextEditorTheme = (theme: GlobalTheme) => {
|
|
|
26
22
|
wrapperMarginBottom: theme.space.medium,
|
|
27
23
|
toolbarHorizontalPadding: theme.space.small,
|
|
28
24
|
editorPadding: theme.space.medium,
|
|
25
|
+
mention: theme.space.xsmall,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const radii = {
|
|
29
|
+
mention: theme.radii.medium,
|
|
29
30
|
};
|
|
30
31
|
|
|
31
|
-
return { colors, space,
|
|
32
|
+
return { colors, space, fontSizes, sizes, radii };
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
export default getRichTextEditorTheme;
|
|
@@ -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.
|
|
6
|
-
thumbTint: theme.colors.
|
|
7
|
-
maximumTrackTint: theme.colors.
|
|
5
|
+
minimumTrackTint: theme.colors.secondary,
|
|
6
|
+
thumbTint: theme.colors.neutralGlobalSurface,
|
|
7
|
+
maximumTrackTint: theme.colors.lightHighlightedSurface,
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
return { colors };
|
|
@@ -2,10 +2,7 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getSpinnerTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
|
|
6
|
-
dot2: theme.colors.__alpha__secondary2,
|
|
7
|
-
dot3: theme.colors.__alpha__secondary3,
|
|
8
|
-
dot4: theme.colors.__alpha__secondary4,
|
|
5
|
+
dot: theme.colors.primary,
|
|
9
6
|
};
|
|
10
7
|
|
|
11
8
|
const space = {
|
|
@@ -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.
|
|
7
|
-
unchecked: theme.colors.
|
|
8
|
-
'disabled-checked': theme.colors.
|
|
9
|
-
'disabled-unchecked': theme.colors.
|
|
6
|
+
checked: theme.colors.secondary,
|
|
7
|
+
unchecked: theme.colors.mutedSecondary,
|
|
8
|
+
'disabled-checked': theme.colors.disabledSecondary,
|
|
9
|
+
'disabled-unchecked': theme.colors.disabledOnDefaultGlobalSurface,
|
|
10
10
|
},
|
|
11
|
-
thumb: theme.colors.
|
|
11
|
+
thumb: theme.colors.onSecondary,
|
|
12
12
|
selector: {
|
|
13
|
-
background: theme.colors.
|
|
14
|
-
textBackground: theme.colors.
|
|
13
|
+
background: theme.colors.neutralGlobalSurface,
|
|
14
|
+
textBackground: theme.colors.secondary,
|
|
15
15
|
},
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -2,11 +2,11 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getTabsTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
active: theme.colors.
|
|
6
|
-
inactive: theme.colors.
|
|
7
|
-
activeBackground: theme.colors.
|
|
8
|
-
headerBottom: theme.colors.
|
|
9
|
-
text: theme.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,
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
const space = {
|
|
@@ -6,20 +6,20 @@ const getTagTheme = (theme: GlobalTheme) => {
|
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
const colors = {
|
|
9
|
-
default: theme.colors.
|
|
9
|
+
default: theme.colors.globalPrimary,
|
|
10
10
|
defaultBackground: undefined,
|
|
11
|
-
primary: theme.colors.
|
|
11
|
+
primary: theme.colors.globalPrimary,
|
|
12
12
|
primaryBackground: undefined,
|
|
13
|
-
info: theme.colors.
|
|
14
|
-
infoBackground: theme.colors.
|
|
15
|
-
success: theme.colors.
|
|
16
|
-
successBackground: theme.colors.
|
|
17
|
-
warning: theme.colors.
|
|
18
|
-
warningBackground: theme.colors.
|
|
19
|
-
danger: theme.colors.
|
|
20
|
-
dangerBackground: theme.colors.
|
|
21
|
-
archived: theme.colors.
|
|
22
|
-
archivedBackground: theme.colors.
|
|
13
|
+
info: theme.colors.onInfoSurface,
|
|
14
|
+
infoBackground: theme.colors.infoSurface,
|
|
15
|
+
success: theme.colors.onSuccessSurface,
|
|
16
|
+
successBackground: theme.colors.successSurface,
|
|
17
|
+
warning: theme.colors.onWarningSurface,
|
|
18
|
+
warningBackground: theme.colors.warningSurface,
|
|
19
|
+
danger: theme.colors.onErrorSurface,
|
|
20
|
+
dangerBackground: theme.colors.errorSurface,
|
|
21
|
+
archived: theme.colors.onArchivedSurface,
|
|
22
|
+
archivedBackground: theme.colors.archivedSurface,
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
const fonts = {
|
|
@@ -2,53 +2,53 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getTextInputTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
labelBackground: theme.colors.
|
|
5
|
+
labelBackground: theme.colors.defaultGlobalSurface,
|
|
6
6
|
asterisks: {
|
|
7
|
-
default: theme.colors.
|
|
8
|
-
error: theme.colors.
|
|
9
|
-
disabled: theme.colors.
|
|
10
|
-
readonly: theme.colors.
|
|
11
|
-
filled: theme.colors.
|
|
12
|
-
focused: theme.colors.
|
|
7
|
+
default: theme.colors.error,
|
|
8
|
+
error: theme.colors.error,
|
|
9
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
10
|
+
readonly: theme.colors.mutedSecondary,
|
|
11
|
+
filled: theme.colors.error,
|
|
12
|
+
focused: theme.colors.error,
|
|
13
13
|
},
|
|
14
|
-
error: theme.colors.
|
|
15
|
-
placeholderIfNotFocused: theme.colors.
|
|
16
|
-
placeholderIfFocued: theme.colors.
|
|
17
|
-
label: theme.colors.
|
|
18
|
-
readonlyLabel: theme.colors.
|
|
19
|
-
disabledLabel: theme.colors.
|
|
20
|
-
text: theme.colors.
|
|
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,
|
|
21
21
|
borders: {
|
|
22
|
-
default: theme.colors.
|
|
23
|
-
error: theme.colors.
|
|
24
|
-
disabled: theme.colors.
|
|
25
|
-
readonly: theme.colors.
|
|
26
|
-
filled: theme.colors.
|
|
27
|
-
focused: theme.colors.
|
|
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,
|
|
28
28
|
},
|
|
29
29
|
labels: {
|
|
30
|
-
default: theme.colors.
|
|
31
|
-
error: theme.colors.
|
|
32
|
-
disabled: theme.colors.
|
|
33
|
-
readonly: theme.colors.
|
|
34
|
-
filled: theme.colors.
|
|
35
|
-
focused: theme.colors.
|
|
30
|
+
default: theme.colors.globalPrimary,
|
|
31
|
+
error: theme.colors.globalPrimary,
|
|
32
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
33
|
+
readonly: theme.colors.disabledOnDefaultGlobalSurface,
|
|
34
|
+
filled: theme.colors.globalPrimary,
|
|
35
|
+
focused: theme.colors.globalPrimary,
|
|
36
36
|
},
|
|
37
37
|
labelsInsideTextInput: {
|
|
38
|
-
default: theme.colors.
|
|
39
|
-
error: theme.colors.
|
|
40
|
-
disabled: theme.colors.
|
|
41
|
-
readonly: theme.colors.
|
|
42
|
-
filled: theme.colors.
|
|
43
|
-
focused: theme.colors.
|
|
38
|
+
default: theme.colors.globalPrimary,
|
|
39
|
+
error: theme.colors.globalPrimary,
|
|
40
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
41
|
+
readonly: theme.colors.disabledOnDefaultGlobalSurface,
|
|
42
|
+
filled: theme.colors.globalPrimary,
|
|
43
|
+
focused: theme.colors.globalPrimary,
|
|
44
44
|
},
|
|
45
45
|
maxLengthLabels: {
|
|
46
|
-
default: theme.colors.
|
|
47
|
-
error: theme.colors.
|
|
48
|
-
disabled: theme.colors.
|
|
49
|
-
readonly: theme.colors.
|
|
50
|
-
filled: theme.colors.
|
|
51
|
-
focused: theme.colors.
|
|
46
|
+
default: theme.colors.globalPrimary,
|
|
47
|
+
error: theme.colors.error,
|
|
48
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
49
|
+
readonly: theme.colors.disabledOnDefaultGlobalSurface,
|
|
50
|
+
filled: theme.colors.globalPrimary,
|
|
51
|
+
focused: theme.colors.globalPrimary,
|
|
52
52
|
},
|
|
53
53
|
};
|
|
54
54
|
|
|
@@ -4,12 +4,12 @@ const getToastTheme = (theme: GlobalTheme) => {
|
|
|
4
4
|
const colors = {
|
|
5
5
|
success: theme.colors.success,
|
|
6
6
|
warning: theme.colors.warning,
|
|
7
|
-
error: theme.colors.
|
|
8
|
-
info: theme.colors.
|
|
9
|
-
notification: theme.colors.
|
|
10
|
-
snackbar: theme.colors.
|
|
11
|
-
divider: theme.colors.
|
|
12
|
-
shadow: theme.colors.
|
|
7
|
+
error: theme.colors.error,
|
|
8
|
+
info: theme.colors.info,
|
|
9
|
+
notification: theme.colors.defaultGlobalSurface,
|
|
10
|
+
snackbar: theme.colors.globalPrimary,
|
|
11
|
+
divider: theme.colors.globalSecondaryOutline,
|
|
12
|
+
shadow: theme.colors.globalPrimary,
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
const sizes = {
|
|
@@ -2,9 +2,10 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getToolbarTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
background: theme.colors.
|
|
6
|
-
border: theme.colors.
|
|
5
|
+
background: theme.colors.defaultGlobalSurface,
|
|
6
|
+
border: theme.colors.globalSecondaryOutline,
|
|
7
7
|
primary: theme.colors.primary,
|
|
8
|
+
secondary: theme.colors.secondary,
|
|
8
9
|
info: theme.colors.info,
|
|
9
10
|
success: theme.colors.success,
|
|
10
11
|
danger: theme.colors.warning,
|
|
@@ -2,14 +2,15 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getTypographyTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
body: theme.colors.
|
|
6
|
-
subdued: theme.colors.
|
|
5
|
+
body: theme.colors.globalPrimary,
|
|
6
|
+
subdued: theme.colors.mutedGlobalPrimary,
|
|
7
7
|
primary: theme.colors.primary,
|
|
8
|
+
secondary: theme.colors.secondary,
|
|
8
9
|
info: theme.colors.info,
|
|
9
10
|
danger: theme.colors.danger,
|
|
10
11
|
warning: theme.colors.warning,
|
|
11
12
|
success: theme.colors.success,
|
|
12
|
-
inverted: theme.colors.
|
|
13
|
+
inverted: theme.colors.onGlobalPrimary,
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
const fonts = {
|
package/src/theme/getTheme.ts
CHANGED
|
@@ -22,6 +22,7 @@ import getListTheme from './components/list';
|
|
|
22
22
|
import getPinInputTheme from './components/pinInput';
|
|
23
23
|
import getProgressTheme from './components/progress';
|
|
24
24
|
import getRadioTheme from './components/radio';
|
|
25
|
+
import getRefreshControlTheme from './components/refreshControl';
|
|
25
26
|
import getRichTextEditorTheme from './components/richTextEditor';
|
|
26
27
|
import getSectionHeadingTheme from './components/sectionHeading';
|
|
27
28
|
import getSelectTheme from './components/select';
|
|
@@ -62,6 +63,7 @@ type Theme = GlobalTheme & {
|
|
|
62
63
|
pinInput: ReturnType<typeof getPinInputTheme>;
|
|
63
64
|
progress: ReturnType<typeof getProgressTheme>;
|
|
64
65
|
radio: ReturnType<typeof getRadioTheme>;
|
|
66
|
+
refreshControl: ReturnType<typeof getRefreshControlTheme>;
|
|
65
67
|
richTextEditor: ReturnType<typeof getRichTextEditorTheme>;
|
|
66
68
|
sectionHeading: ReturnType<typeof getSectionHeadingTheme>;
|
|
67
69
|
select: ReturnType<typeof getSelectTheme>;
|
|
@@ -108,6 +110,7 @@ const getTheme = (
|
|
|
108
110
|
pinInput: getPinInputTheme(globalTheme),
|
|
109
111
|
progress: getProgressTheme(globalTheme),
|
|
110
112
|
radio: getRadioTheme(globalTheme),
|
|
113
|
+
refreshControl: getRefreshControlTheme(globalTheme),
|
|
111
114
|
richTextEditor: getRichTextEditorTheme(globalTheme),
|
|
112
115
|
sectionHeading: getSectionHeadingTheme(globalTheme),
|
|
113
116
|
select: getSelectTheme(globalTheme),
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defaultMobilePalette as palette } from '@hero-design/colors';
|
|
2
|
+
import type { GlobalSystemPalette } from './types';
|
|
3
|
+
|
|
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,
|
|
11
|
+
defaultGlobalSurface: palette.white,
|
|
12
|
+
onDefaultGlobalSurface: palette.maasstrichtBlue,
|
|
13
|
+
neutralGlobalSurface: palette.greyLight90,
|
|
14
|
+
disabledOnDefaultGlobalSurface: palette.greyLight30,
|
|
15
|
+
error: palette.pastelRed,
|
|
16
|
+
errorSurface: palette.linen,
|
|
17
|
+
onErrorSurface: palette.vermilion,
|
|
18
|
+
warning: palette.mellowApricot,
|
|
19
|
+
warningSurface: palette.seashell,
|
|
20
|
+
onWarningSurface: palette.deepSaffron,
|
|
21
|
+
success: palette.emerald,
|
|
22
|
+
successSurface: palette.honeydew,
|
|
23
|
+
onSuccessSurface: palette.pineGreen,
|
|
24
|
+
info: palette.vodka,
|
|
25
|
+
infoSurface: palette.aliceBlue,
|
|
26
|
+
onInfoSurface: palette.ultramarineBlue,
|
|
27
|
+
archived: palette.greyLight45,
|
|
28
|
+
archivedSurface: palette.antiFlashWhite,
|
|
29
|
+
onArchivedSurface: palette.sonicSilver,
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default globalPalette;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jobsPalette as palette } from '@hero-design/colors';
|
|
2
|
+
import swag from './swag';
|
|
3
|
+
import type { SystemPalette } from './types';
|
|
4
|
+
|
|
5
|
+
const jobsSystemPalette: SystemPalette = {
|
|
6
|
+
...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,
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default jobsSystemPalette;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defaultMobilePalette as palette,
|
|
3
|
+
swagPalette,
|
|
4
|
+
} from '@hero-design/colors';
|
|
5
|
+
import type { LegacySystemPalette } from './types';
|
|
6
|
+
|
|
7
|
+
const legacySystemPalette: LegacySystemPalette = {
|
|
8
|
+
globalPrimary: palette.maasstrichtBlue,
|
|
9
|
+
globalPrimaryLight: palette.maasstrichtBlueLight50,
|
|
10
|
+
globalPrimaryBackground: palette.maasstrichtBlueLight90,
|
|
11
|
+
primary: swagPalette.violet,
|
|
12
|
+
primaryLight: swagPalette.violetLight50,
|
|
13
|
+
primaryDark: swagPalette.scarletGumLight30, // DEPRECATED
|
|
14
|
+
primaryBackground: swagPalette.violetLight90,
|
|
15
|
+
primaryBackgroundDark: palette.maasstrichtBlueLight30,
|
|
16
|
+
secondary: swagPalette.ultramarineBlue, // no longer needed after revising Button
|
|
17
|
+
secondaryLight: swagPalette.vodka, // no longer needed after revising Button
|
|
18
|
+
secondaryBackground: swagPalette.aliceBlue, // no longer needed after revising Button
|
|
19
|
+
info: palette.ultramarineBlue,
|
|
20
|
+
infoMediumLight: palette.vodka, // DEPRECATED, use infoLight instead
|
|
21
|
+
infoLight: palette.vodka,
|
|
22
|
+
infoBackground: palette.aliceBlue,
|
|
23
|
+
success: palette.emerald,
|
|
24
|
+
successLight: palette.emerald, // DEPRECATED, use success instead
|
|
25
|
+
successDark: palette.pineGreen,
|
|
26
|
+
successBackground: palette.honeydew,
|
|
27
|
+
danger: palette.vermilion,
|
|
28
|
+
dangerMediumLight: palette.apple, // should be dangerDark?
|
|
29
|
+
dangerLight: palette.pastelRed,
|
|
30
|
+
dangerBackground: palette.linen,
|
|
31
|
+
warning: palette.mellowApricot,
|
|
32
|
+
warningLight: palette.mellowApricot, // DEPRECATED, use warning instead
|
|
33
|
+
warningDark: palette.deepSaffron,
|
|
34
|
+
warningBackground: palette.seashell,
|
|
35
|
+
platformBackground: palette.white,
|
|
36
|
+
backgroundLight: palette.greyLight90,
|
|
37
|
+
backgroundDark: palette.maasstrichtBlue,
|
|
38
|
+
text: palette.maasstrichtBlue,
|
|
39
|
+
subduedText: palette.maasstrichtBlueLight30, // secondary
|
|
40
|
+
disabledText: palette.maasstrichtBlueLight50, // readonly
|
|
41
|
+
disabledLightText: palette.greyLight30, // disabled
|
|
42
|
+
invertedText: palette.white,
|
|
43
|
+
outline: palette.greyLight75, // divider
|
|
44
|
+
archived: palette.greyLight45, // no usage
|
|
45
|
+
archivedLight: palette.greyLight30,
|
|
46
|
+
archivedDark: palette.sonicSilver, // should replace archived as archived has no usage?
|
|
47
|
+
archivedBackground: palette.greyLight90,
|
|
48
|
+
black: palette.black,
|
|
49
|
+
inactiveBackground: palette.maasstrichtBlueLight50,
|
|
50
|
+
shadow: palette.greyLight45, // waiting for new color
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export default legacySystemPalette;
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
defaultMobilePalette as palette,
|
|
3
|
-
swagPalette,
|
|
4
|
-
} from '@hero-design/colors';
|
|
1
|
+
import { swagPalette as palette } from '@hero-design/colors';
|
|
5
2
|
import type { SystemPalette } from './types';
|
|
3
|
+
import globalPalette from './global';
|
|
6
4
|
|
|
7
5
|
const swagSystemPalette: SystemPalette = {
|
|
6
|
+
// Legacy
|
|
8
7
|
globalPrimary: palette.maasstrichtBlue,
|
|
9
8
|
globalPrimaryLight: palette.maasstrichtBlueLight50,
|
|
10
9
|
globalPrimaryBackground: palette.maasstrichtBlueLight90,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
primaryBackground: swagPalette.violetLight90,
|
|
10
|
+
primaryLight: palette.violetLight50,
|
|
11
|
+
primaryDark: palette.scarletGumLight30, // DEPRECATED
|
|
12
|
+
primaryBackground: palette.violetLight90,
|
|
15
13
|
primaryBackgroundDark: palette.maasstrichtBlueLight30,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
secondaryBackground: swagPalette.aliceBlue, // no longer needed after revising Button
|
|
14
|
+
secondaryLight: palette.vodka, // no longer needed after revising Button
|
|
15
|
+
secondaryBackground: palette.aliceBlue, // no longer needed after revising Button
|
|
19
16
|
info: palette.ultramarineBlue,
|
|
20
17
|
infoMediumLight: palette.vodka, // DEPRECATED, use infoLight instead
|
|
21
18
|
infoLight: palette.vodka,
|
|
@@ -49,31 +46,20 @@ const swagSystemPalette: SystemPalette = {
|
|
|
49
46
|
inactiveBackground: palette.maasstrichtBlueLight50,
|
|
50
47
|
shadow: palette.greyLight45, // waiting for new color
|
|
51
48
|
|
|
52
|
-
|
|
49
|
+
// Global
|
|
50
|
+
...globalPalette,
|
|
53
51
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
__alpha__globalLabel7: palette.seashell,
|
|
66
|
-
__alpha__globalLabel8: palette.honeydew,
|
|
67
|
-
__alpha__globalLabel9: palette.aliceBlue,
|
|
68
|
-
|
|
69
|
-
__alpha__primary1: swagPalette.scarletGum,
|
|
70
|
-
__alpha__primary2: swagPalette.mauve,
|
|
71
|
-
|
|
72
|
-
__alpha__secondary1: swagPalette.scarletGumLight30,
|
|
73
|
-
__alpha__secondary2: swagPalette.scarletGumLight50,
|
|
74
|
-
__alpha__secondary3: swagPalette.scarletGumLight80,
|
|
75
|
-
__alpha__secondary4: swagPalette.scarletGumLight90,
|
|
76
|
-
__alpha__lightHighlightedSurface: '#ECE8EF',
|
|
52
|
+
// Brand
|
|
53
|
+
primary: palette.maasstrichtBlue,
|
|
54
|
+
mutedPrimary: palette.maasstrichtBlueLight90,
|
|
55
|
+
onPrimary: palette.white,
|
|
56
|
+
secondary: palette.scarletGum,
|
|
57
|
+
onSecondary: palette.white,
|
|
58
|
+
mutedSecondary: palette.maasstrichtBlueLight50,
|
|
59
|
+
disabledSecondary: palette.scarletGumLight50,
|
|
60
|
+
highlightedSurface: palette.scarletGumLight80,
|
|
61
|
+
highlightedSecondarySurface: palette.aliceBlue,
|
|
62
|
+
lightHighlightedSurface: palette.scarletGumLight90,
|
|
77
63
|
};
|
|
78
64
|
|
|
79
65
|
export default swagSystemPalette;
|