@hero-design/rn 8.66.0 → 8.68.0-alpha.1
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/CHANGELOG.md +11 -0
- package/es/index.js +151 -132
- package/lib/index.js +152 -132
- package/package.json +2 -2
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -4
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +18 -18
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +2 -2
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +1 -1
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +1 -1
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +4 -4
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +21 -21
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +12 -12
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -5
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +4 -4
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +3 -3
- package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +2 -2
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +30 -30
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -1
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -3
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -2
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +6 -6
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +2 -2
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
- package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -5
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +10 -10
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +14 -14
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +14 -14
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +14 -14
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +8 -8
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +32 -32
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +1 -1
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -3
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +5 -5
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +5 -5
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -1
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +18 -18
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +7 -7
- package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +1 -1
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +1 -1
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +1 -1
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
- package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +1 -1
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/index.ts +2 -0
- package/src/theme/ThemeSwitcher.tsx +12 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +66 -66
- package/src/theme/getTheme.ts +2 -2
- package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +48 -0
- package/src/theme/global/colors/__tests__/swagLight.spec.ts +7 -0
- package/src/theme/global/colors/swagLight.ts +25 -0
- package/src/theme/global/index.ts +2 -0
- package/src/theme/index.ts +2 -0
- package/types/components/Accordion/AccordionItem.d.ts +0 -0
- package/types/components/Accordion/StyledAccordion.d.ts +0 -0
- package/types/components/Accordion/index.d.ts +0 -0
- package/types/components/Alert/StyledAlert.d.ts +0 -0
- package/types/components/Alert/index.d.ts +0 -0
- package/types/components/Attachment/StyledAttachment.d.ts +0 -0
- package/types/components/Attachment/index.d.ts +0 -0
- package/types/components/Avatar/Avatar.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/components/Avatar/index.d.ts +0 -0
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +0 -0
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +0 -0
- package/types/components/BottomSheet/ScrollView.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Box/StyledBox.d.ts +0 -0
- package/types/components/Box/config.d.ts +0 -0
- package/types/components/Box/index.d.ts +0 -0
- package/types/components/Box/types.d.ts +0 -0
- package/types/components/Button/Button.d.ts +0 -0
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/components/Button/StyledButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/index.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
- package/types/components/Calendar/StyledCalendar.d.ts +0 -0
- package/types/components/Calendar/helpers.d.ts +0 -0
- package/types/components/Calendar/index.d.ts +0 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +0 -0
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Carousel/CardCarousel.d.ts +0 -0
- package/types/components/Carousel/CarouselItem.d.ts +0 -0
- package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
- package/types/components/Carousel/StyledCarousel.d.ts +0 -0
- package/types/components/Carousel/contants.d.ts +0 -0
- package/types/components/Carousel/index.d.ts +0 -0
- package/types/components/Carousel/types.d.ts +0 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
- package/types/components/Checkbox/index.d.ts +0 -0
- package/types/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/components/Collapse/index.d.ts +0 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
- package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
- package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
- package/types/components/DatePicker/index.d.ts +0 -0
- package/types/components/DatePicker/types.d.ts +0 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/Empty/StyledEmpty.d.ts +0 -0
- package/types/components/Empty/index.d.ts +0 -0
- package/types/components/Error/StyledError.d.ts +0 -0
- package/types/components/Error/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/index.d.ts +0 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/components/FAB/FAB.d.ts +0 -0
- package/types/components/FAB/StyledFAB.d.ts +0 -0
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/Icon/AnimatedIcon.d.ts +0 -0
- package/types/components/Icon/HeroIcon/index.d.ts +0 -0
- package/types/components/Icon/IconList.d.ts +0 -0
- package/types/components/Icon/index.d.ts +0 -0
- package/types/components/Icon/utils.d.ts +0 -0
- package/types/components/Image/index.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +0 -0
- package/types/components/List/StyledBasicListItem.d.ts +0 -0
- package/types/components/List/StyledListItem.d.ts +0 -0
- package/types/components/List/index.d.ts +0 -0
- package/types/components/PageControl/StyledPageControl.d.ts +0 -0
- package/types/components/PageControl/index.d.ts +0 -0
- package/types/components/PinInput/PinCell.d.ts +0 -0
- package/types/components/PinInput/StyledPinInput.d.ts +0 -0
- package/types/components/PinInput/index.d.ts +0 -0
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/constants.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +0 -0
- package/types/components/Radio/StyledRadio.d.ts +0 -0
- package/types/components/Radio/index.d.ts +0 -0
- package/types/components/Radio/types.d.ts +0 -0
- package/types/components/RefreshControl/index.d.ts +0 -0
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/MentionList.d.ts +0 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/constants.d.ts +0 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/index.d.ts +0 -0
- package/types/components/RichTextEditor/types.d.ts +0 -0
- package/types/components/RichTextEditor/utils/events.d.ts +0 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/BaseOptionList.d.ts +0 -0
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +0 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
- package/types/components/Select/MultiSelect/index.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +0 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
- package/types/components/Select/SingleSelect/index.d.ts +0 -0
- package/types/components/Select/StyledSelect.d.ts +0 -0
- package/types/components/Select/helpers.d.ts +0 -0
- package/types/components/Select/index.d.ts +0 -0
- package/types/components/Select/types.d.ts +0 -0
- package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
- package/types/components/Skeleton/index.d.ts +0 -0
- package/types/components/Slider/index.d.ts +0 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Success/StyledSuccess.d.ts +0 -0
- package/types/components/Success/index.d.ts +0 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
- package/types/components/Swipeable/index.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
- package/types/components/Switch/StyledSwitch.d.ts +0 -0
- package/types/components/Switch/index.d.ts +0 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/components/Tabs/SceneView.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabsHeader.d.ts +35 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledTabs.d.ts +0 -0
- package/types/components/Tabs/TabWithBadge.d.ts +0 -0
- package/types/components/Tabs/index.d.ts +0 -0
- package/types/components/Tabs/useIsFocused.d.ts +0 -0
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +0 -0
- package/types/components/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +0 -0
- package/types/components/TextInput/index.d.ts +0 -0
- package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
- package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
- package/types/components/TimePicker/index.d.ts +0 -0
- package/types/components/TimePicker/types.d.ts +0 -0
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +0 -0
- package/types/components/Toast/ToastProvider.d.ts +0 -0
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Text/StyledText.d.ts +0 -0
- package/types/components/Typography/Text/index.d.ts +0 -0
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +2 -2
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/ThemeProvider.d.ts +0 -0
- package/types/theme/ThemeSwitcher.d.ts +1 -1
- package/types/theme/components/accordion.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/attachment.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/calendar.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/cardCarousel.d.ts +0 -0
- package/types/theme/components/carousel.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/datePicker.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/empty.d.ts +0 -0
- package/types/theme/components/error.d.ts +0 -0
- package/types/theme/components/fab.d.ts +0 -0
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/image.d.ts +0 -0
- package/types/theme/components/list.d.ts +0 -0
- package/types/theme/components/pageControl.d.ts +0 -0
- package/types/theme/components/pinInput.d.ts +0 -0
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/refreshControl.d.ts +0 -0
- package/types/theme/components/richTextEditor.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +0 -0
- package/types/theme/components/skeleton.d.ts +0 -0
- package/types/theme/components/slider.d.ts +0 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/success.d.ts +0 -0
- package/types/theme/components/swipeable.d.ts +0 -0
- package/types/theme/components/switch.d.ts +0 -0
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +0 -0
- package/types/theme/components/textInput.d.ts +0 -0
- package/types/theme/components/timePicker.d.ts +0 -0
- package/types/theme/components/toast.d.ts +0 -0
- package/types/theme/components/toolbar.d.ts +0 -0
- package/types/theme/components/typography.d.ts +0 -0
- package/types/theme/getTheme.d.ts +0 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors/eBens.d.ts +0 -0
- package/types/theme/global/colors/global.d.ts +0 -0
- package/types/theme/global/colors/globalDark.d.ts +0 -0
- package/types/theme/global/colors/jobs.d.ts +0 -0
- package/types/theme/global/colors/swag.d.ts +0 -0
- package/types/theme/global/colors/swagDark.d.ts +0 -0
- package/types/theme/global/colors/swagLight.d.ts +3 -0
- package/types/theme/global/colors/types.d.ts +0 -0
- package/types/theme/global/colors/wallet.d.ts +0 -0
- package/types/theme/global/colors/work.d.ts +0 -0
- package/types/theme/global/index.d.ts +2 -1
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/sizes.d.ts +0 -0
- package/types/theme/global/space.d.ts +0 -0
- package/types/theme/global/typography.d.ts +0 -0
- package/types/theme/index.d.ts +2 -2
- package/types/types.d.ts +0 -0
- package/types/utils/functions.d.ts +0 -0
- package/types/utils/helpers.d.ts +0 -0
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
- package/.turbo/turbo-build.log +0 -8
|
@@ -41,7 +41,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
41
41
|
},
|
|
42
42
|
"attachment": {
|
|
43
43
|
"colors": {
|
|
44
|
-
"highlightedBackground": "#
|
|
44
|
+
"highlightedBackground": "#F1E9FB",
|
|
45
45
|
},
|
|
46
46
|
"radii": {
|
|
47
47
|
"container": 8,
|
|
@@ -62,7 +62,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
62
62
|
"colors": {
|
|
63
63
|
"danger": "#f46363",
|
|
64
64
|
"info": "#b5c3fd",
|
|
65
|
-
"primary": "#
|
|
65
|
+
"primary": "#7622d7",
|
|
66
66
|
"success": "#5ace7d",
|
|
67
67
|
"text": "#ffffff",
|
|
68
68
|
"warning": "#ffbe71",
|
|
@@ -111,7 +111,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
111
111
|
"archived": "#606065",
|
|
112
112
|
"danger": "#cb300a",
|
|
113
113
|
"info": "#355bfb",
|
|
114
|
-
"primary": "#
|
|
114
|
+
"primary": "#7622d7",
|
|
115
115
|
"success": "#017d6d",
|
|
116
116
|
"text": "#ffffff",
|
|
117
117
|
"warning": "#ac5d00",
|
|
@@ -140,7 +140,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
140
140
|
"bottomNavigation": {
|
|
141
141
|
"colors": {
|
|
142
142
|
"background": "#ffffff",
|
|
143
|
-
"shadow": "#
|
|
143
|
+
"shadow": "#7622d7",
|
|
144
144
|
},
|
|
145
145
|
"shadows": {
|
|
146
146
|
"elevation": 10,
|
|
@@ -200,18 +200,18 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
200
200
|
"invertedText": "#ffffff",
|
|
201
201
|
"pressedBackground": {
|
|
202
202
|
"filledDanger": "#fcebe7",
|
|
203
|
-
"filledPrimary": "#
|
|
204
|
-
"filledSecondary": "#
|
|
203
|
+
"filledPrimary": "#380060",
|
|
204
|
+
"filledSecondary": "#380060",
|
|
205
205
|
"outlineDanger": "#fcebe7",
|
|
206
|
-
"outlinedPrimary": "#
|
|
207
|
-
"outlinedSecondary": "#
|
|
206
|
+
"outlinedPrimary": "#F1E9FB",
|
|
207
|
+
"outlinedSecondary": "#F1E9FB",
|
|
208
208
|
"textDanger": "#fcebe7",
|
|
209
|
-
"textPrimary": "#
|
|
210
|
-
"textSecondary": "#
|
|
209
|
+
"textPrimary": "#F1E9FB",
|
|
210
|
+
"textSecondary": "#F1E9FB",
|
|
211
211
|
},
|
|
212
|
-
"primary": "#
|
|
213
|
-
"secondary": "#
|
|
214
|
-
"textLoadingBackground": "#
|
|
212
|
+
"primary": "#7622d7",
|
|
213
|
+
"secondary": "#460078",
|
|
214
|
+
"textLoadingBackground": "#F1E9FB",
|
|
215
215
|
"utilityBackground": "#ffffff",
|
|
216
216
|
},
|
|
217
217
|
"fontSize": {
|
|
@@ -246,7 +246,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
246
246
|
"background": "#ffffff",
|
|
247
247
|
"border": "#001f23",
|
|
248
248
|
"inverted": "#ffffff",
|
|
249
|
-
"primary": "#
|
|
249
|
+
"primary": "#7622d7",
|
|
250
250
|
},
|
|
251
251
|
"radii": {
|
|
252
252
|
"default": 999,
|
|
@@ -271,10 +271,10 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
271
271
|
"colors": {
|
|
272
272
|
"archived": "#abacaf",
|
|
273
273
|
"danger": "#f46363",
|
|
274
|
-
"dataCardIndicator": "#
|
|
274
|
+
"dataCardIndicator": "#7622d7",
|
|
275
275
|
"info": "#b5c3fd",
|
|
276
276
|
"neutral": "#f6f6f7",
|
|
277
|
-
"primary": "#
|
|
277
|
+
"primary": "#7622d7",
|
|
278
278
|
"success": "#5ace7d",
|
|
279
279
|
"warning": "#ffbe71",
|
|
280
280
|
},
|
|
@@ -287,7 +287,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
287
287
|
},
|
|
288
288
|
"cardCarousel": {
|
|
289
289
|
"colors": {
|
|
290
|
-
"carouselItemBackground": "#
|
|
290
|
+
"carouselItemBackground": "#FDFBFF",
|
|
291
291
|
},
|
|
292
292
|
"radii": {
|
|
293
293
|
"card": 8,
|
|
@@ -351,7 +351,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
351
351
|
"filledBackground": "#ffffff",
|
|
352
352
|
"outlinedBackground": "transparent",
|
|
353
353
|
"primaryBackground": "#001f23",
|
|
354
|
-
"secondaryBackground": "#
|
|
354
|
+
"secondaryBackground": "#F1E9FB",
|
|
355
355
|
"selectedPrimaryText": "#ffffff",
|
|
356
356
|
"wrapperBorder": "#001f23",
|
|
357
357
|
"wrapperSelectedBorder": "transparent",
|
|
@@ -460,7 +460,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
460
460
|
"error": {
|
|
461
461
|
"colors": {
|
|
462
462
|
"description": "#4d6265",
|
|
463
|
-
"fullScreenBackground": "#
|
|
463
|
+
"fullScreenBackground": "#B382FD",
|
|
464
464
|
"inPageBackground": "#f6f6f7",
|
|
465
465
|
"title": "#001f23",
|
|
466
466
|
},
|
|
@@ -493,15 +493,15 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
493
493
|
},
|
|
494
494
|
"fab": {
|
|
495
495
|
"colors": {
|
|
496
|
-
"actionItemBackground": "#
|
|
497
|
-
"actionItemPressedBackground": "#
|
|
498
|
-
"actionItemText": "#
|
|
496
|
+
"actionItemBackground": "#460078",
|
|
497
|
+
"actionItemPressedBackground": "#380060",
|
|
498
|
+
"actionItemText": "#FDFBFF",
|
|
499
499
|
"backdropBackground": "#000000",
|
|
500
|
-
"buttonActiveBackground": "#
|
|
501
|
-
"buttonBackground": "#
|
|
502
|
-
"buttonPressedBackground": "#
|
|
503
|
-
"icon": "#
|
|
504
|
-
"titleText": "#
|
|
500
|
+
"buttonActiveBackground": "#380060",
|
|
501
|
+
"buttonBackground": "#7622d7",
|
|
502
|
+
"buttonPressedBackground": "#380060",
|
|
503
|
+
"icon": "#FDFBFF",
|
|
504
|
+
"titleText": "#FDFBFF",
|
|
505
505
|
},
|
|
506
506
|
"fontSizes": {
|
|
507
507
|
"actionItemText": 16,
|
|
@@ -552,8 +552,8 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
552
552
|
"disabledText": "#bfc1c5",
|
|
553
553
|
"info": "#b5c3fd",
|
|
554
554
|
"invertedText": "#ffffff",
|
|
555
|
-
"primary": "#
|
|
556
|
-
"secondary": "#
|
|
555
|
+
"primary": "#7622d7",
|
|
556
|
+
"secondary": "#460078",
|
|
557
557
|
"success": "#5ace7d",
|
|
558
558
|
"text": "#001f23",
|
|
559
559
|
"warning": "#ffbe71",
|
|
@@ -574,7 +574,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
574
574
|
},
|
|
575
575
|
"list": {
|
|
576
576
|
"colors": {
|
|
577
|
-
"checkedListItemContainerBackground": "#
|
|
577
|
+
"checkedListItemContainerBackground": "#F1E9FB",
|
|
578
578
|
"leadingStatus": {
|
|
579
579
|
"archived": "#abacaf",
|
|
580
580
|
"danger": "#f46363",
|
|
@@ -618,7 +618,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
618
618
|
},
|
|
619
619
|
"pageControl": {
|
|
620
620
|
"colors": {
|
|
621
|
-
"paginatorBackgroundColor": "#
|
|
621
|
+
"paginatorBackgroundColor": "#7622d7",
|
|
622
622
|
},
|
|
623
623
|
"radii": {
|
|
624
624
|
"paginatorBorderRadius": 999,
|
|
@@ -681,7 +681,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
681
681
|
"dangerInverted": "#ffffff",
|
|
682
682
|
"info": "#b5c3fd",
|
|
683
683
|
"infoInverted": "#ffffff",
|
|
684
|
-
"primary": "#
|
|
684
|
+
"primary": "#7622d7",
|
|
685
685
|
"primaryInverted": "#ffffff",
|
|
686
686
|
"success": "#5ace7d",
|
|
687
687
|
"successInverted": "#ffffff",
|
|
@@ -696,7 +696,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
696
696
|
"info": "#e8e9ea",
|
|
697
697
|
"infoInverted": "#c4cffd",
|
|
698
698
|
"primary": "#e8e9ea",
|
|
699
|
-
"primaryInverted": "#
|
|
699
|
+
"primaryInverted": "#914edf",
|
|
700
700
|
"success": "#e8e9ea",
|
|
701
701
|
"successInverted": "#7bd897",
|
|
702
702
|
"warning": "#e8e9ea",
|
|
@@ -717,8 +717,8 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
717
717
|
"circle": 2,
|
|
718
718
|
},
|
|
719
719
|
"colors": {
|
|
720
|
-
"checked": "#
|
|
721
|
-
"circle": "#
|
|
720
|
+
"checked": "#F1E9FB",
|
|
721
|
+
"circle": "#7622d7",
|
|
722
722
|
"intents": {
|
|
723
723
|
"dark": "#f6f6f7",
|
|
724
724
|
"light": "#ffffff",
|
|
@@ -736,7 +736,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
736
736
|
},
|
|
737
737
|
"rate": {
|
|
738
738
|
"colors": {
|
|
739
|
-
"iconStroke": "#
|
|
739
|
+
"iconStroke": "#7622d7",
|
|
740
740
|
},
|
|
741
741
|
"spaces": {
|
|
742
742
|
"iconWrapperMarginRight": 4,
|
|
@@ -745,7 +745,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
745
745
|
},
|
|
746
746
|
"refreshControl": {
|
|
747
747
|
"colors": {
|
|
748
|
-
"indicator": "#
|
|
748
|
+
"indicator": "#7622d7",
|
|
749
749
|
},
|
|
750
750
|
},
|
|
751
751
|
"richTextEditor": {
|
|
@@ -753,7 +753,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
753
753
|
"text": "#001f23",
|
|
754
754
|
"toolbarBackgroundColor": "#f6f6f7",
|
|
755
755
|
"toolbarBorderColor": "#e8e9ea",
|
|
756
|
-
"toolbarButtonSelectedBackground": "#
|
|
756
|
+
"toolbarButtonSelectedBackground": "#F1E9FB",
|
|
757
757
|
},
|
|
758
758
|
"fontSizes": {
|
|
759
759
|
"editor": 14,
|
|
@@ -777,7 +777,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
777
777
|
"sectionHeading": {
|
|
778
778
|
"colors": {
|
|
779
779
|
"background": "#f6f6f7",
|
|
780
|
-
"backgroundSmall": "#
|
|
780
|
+
"backgroundSmall": "#B382FD",
|
|
781
781
|
},
|
|
782
782
|
"space": {
|
|
783
783
|
"headingHorizontalPadding": 16,
|
|
@@ -819,16 +819,16 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
819
819
|
},
|
|
820
820
|
"slider": {
|
|
821
821
|
"colors": {
|
|
822
|
-
"maximumTrackTint": "#
|
|
823
|
-
"minimumTrackTint": "#
|
|
824
|
-
"thumbTint": "#
|
|
822
|
+
"maximumTrackTint": "#F1E9FB",
|
|
823
|
+
"minimumTrackTint": "#7622d7",
|
|
824
|
+
"thumbTint": "#7622d7",
|
|
825
825
|
},
|
|
826
826
|
},
|
|
827
827
|
"spinner": {
|
|
828
828
|
"colors": {
|
|
829
829
|
"dot": {
|
|
830
|
-
"inverted": "#
|
|
831
|
-
"primary": "#
|
|
830
|
+
"inverted": "#FDFBFF",
|
|
831
|
+
"primary": "#7622d7",
|
|
832
832
|
},
|
|
833
833
|
},
|
|
834
834
|
"radii": {
|
|
@@ -852,7 +852,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
852
852
|
"success": {
|
|
853
853
|
"colors": {
|
|
854
854
|
"description": "#4d6265",
|
|
855
|
-
"fullScreenBackground": "#
|
|
855
|
+
"fullScreenBackground": "#B382FD",
|
|
856
856
|
"inPageBackground": "#f6f6f7",
|
|
857
857
|
"title": "#001f23",
|
|
858
858
|
},
|
|
@@ -883,7 +883,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
883
883
|
"colors": {
|
|
884
884
|
"danger": "#f46363",
|
|
885
885
|
"defaultContainerBackground": "#ffffff",
|
|
886
|
-
"primary": "#
|
|
886
|
+
"primary": "#7622d7",
|
|
887
887
|
"success": "#5ace7d",
|
|
888
888
|
},
|
|
889
889
|
"radii": {
|
|
@@ -896,14 +896,14 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
896
896
|
"switch": {
|
|
897
897
|
"colors": {
|
|
898
898
|
"backgroundColors": {
|
|
899
|
-
"checked": "#
|
|
900
|
-
"disabled-checked": "#
|
|
899
|
+
"checked": "#7622d7",
|
|
900
|
+
"disabled-checked": "#F1E9FB",
|
|
901
901
|
"disabled-unchecked": "#bfc1c5",
|
|
902
902
|
"unchecked": "#808f91",
|
|
903
903
|
},
|
|
904
904
|
"selector": {
|
|
905
905
|
"background": "#ffffff",
|
|
906
|
-
"textBackground": "#
|
|
906
|
+
"textBackground": "#B382FD",
|
|
907
907
|
},
|
|
908
908
|
"thumb": "#ffffff",
|
|
909
909
|
},
|
|
@@ -935,10 +935,10 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
935
935
|
},
|
|
936
936
|
"colors": {
|
|
937
937
|
"active": "#001f23",
|
|
938
|
-
"activeBackground": "#
|
|
938
|
+
"activeBackground": "#B382FD",
|
|
939
939
|
"headerBottom": "#e8e9ea",
|
|
940
940
|
"inactive": "#001f23",
|
|
941
|
-
"indicator": "#
|
|
941
|
+
"indicator": "#7622d7",
|
|
942
942
|
"text": "#001f23",
|
|
943
943
|
},
|
|
944
944
|
"radii": {
|
|
@@ -968,8 +968,8 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
968
968
|
"dangerBackground": "#fcebe7",
|
|
969
969
|
"info": "#355bfb",
|
|
970
970
|
"infoBackground": "#ecf0ff",
|
|
971
|
-
"primary": "#
|
|
972
|
-
"primaryBackground": "#
|
|
971
|
+
"primary": "#7622d7",
|
|
972
|
+
"primaryBackground": "#F1E9FB",
|
|
973
973
|
"success": "#017d6d",
|
|
974
974
|
"successBackground": "#f0fef4",
|
|
975
975
|
"text": "#001f23",
|
|
@@ -1131,10 +1131,10 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1131
1131
|
"danger": "#ffbe71",
|
|
1132
1132
|
"disabled": "#bfc1c5",
|
|
1133
1133
|
"error": "#f46363",
|
|
1134
|
-
"iconButtonBackground": "#
|
|
1134
|
+
"iconButtonBackground": "#F1E9FB",
|
|
1135
1135
|
"info": "#b5c3fd",
|
|
1136
|
-
"primary": "#
|
|
1137
|
-
"secondary": "#
|
|
1136
|
+
"primary": "#7622d7",
|
|
1137
|
+
"secondary": "#460078",
|
|
1138
1138
|
"success": "#5ace7d",
|
|
1139
1139
|
},
|
|
1140
1140
|
"radii": {
|
|
@@ -1158,8 +1158,8 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1158
1158
|
"disabled": "#bfc1c5",
|
|
1159
1159
|
"info": "#355bfb",
|
|
1160
1160
|
"inverted": "#ffffff",
|
|
1161
|
-
"primary": "#
|
|
1162
|
-
"secondary": "#
|
|
1161
|
+
"primary": "#7622d7",
|
|
1162
|
+
"secondary": "#460078",
|
|
1163
1163
|
"subdued": "#4d6265",
|
|
1164
1164
|
"success": "#5ace7d",
|
|
1165
1165
|
"warning": "#ffbe71",
|
|
@@ -1332,15 +1332,15 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1332
1332
|
"archived": "#abacaf",
|
|
1333
1333
|
"archivedSurface": "#dadbde",
|
|
1334
1334
|
"darkGlobalSurface": "#001f23",
|
|
1335
|
-
"decorativePrimary": "#
|
|
1336
|
-
"decorativePrimarySurface": "#
|
|
1335
|
+
"decorativePrimary": "#FDFBFF",
|
|
1336
|
+
"decorativePrimarySurface": "#B382FD",
|
|
1337
1337
|
"defaultGlobalSurface": "#ffffff",
|
|
1338
|
-
"defaultSurface": "#
|
|
1338
|
+
"defaultSurface": "#FDFBFF",
|
|
1339
1339
|
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
1340
1340
|
"disabledOutline": "#bfc1c5",
|
|
1341
1341
|
"error": "#f46363",
|
|
1342
1342
|
"errorSurface": "#fcebe7",
|
|
1343
|
-
"highlightedSurface": "#
|
|
1343
|
+
"highlightedSurface": "#F1E9FB",
|
|
1344
1344
|
"inactiveOnDefaultGlobalSurface": "#808f91",
|
|
1345
1345
|
"inactiveOutline": "#808f91",
|
|
1346
1346
|
"info": "#b5c3fd",
|
|
@@ -1357,15 +1357,15 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1357
1357
|
"onDefaultGlobalSurface": "#001f23",
|
|
1358
1358
|
"onErrorSurface": "#cb300a",
|
|
1359
1359
|
"onInfoSurface": "#355bfb",
|
|
1360
|
-
"onPrimary": "#
|
|
1360
|
+
"onPrimary": "#FDFBFF",
|
|
1361
1361
|
"onSecondary": "#ffffff",
|
|
1362
1362
|
"onSuccessSurface": "#017d6d",
|
|
1363
1363
|
"onWarningSurface": "#ac5d00",
|
|
1364
1364
|
"overlayGlobalSurface": "#000000",
|
|
1365
|
-
"pressedSurface": "#
|
|
1366
|
-
"primary": "#
|
|
1365
|
+
"pressedSurface": "#380060",
|
|
1366
|
+
"primary": "#7622d7",
|
|
1367
1367
|
"primaryOutline": "#001f23",
|
|
1368
|
-
"secondary": "#
|
|
1368
|
+
"secondary": "#460078",
|
|
1369
1369
|
"secondaryOutline": "#e8e9ea",
|
|
1370
1370
|
"success": "#5ace7d",
|
|
1371
1371
|
"successSurface": "#f0fef4",
|
package/src/theme/getTheme.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getGlobalTheme, defaultScale,
|
|
1
|
+
import { getGlobalTheme, defaultScale, swagLightSystemPalette } from './global';
|
|
2
2
|
|
|
3
3
|
import getAccordionTheme from './components/accordion';
|
|
4
4
|
import getAlertTheme from './components/alert';
|
|
@@ -102,7 +102,7 @@ type Theme = GlobalTheme & {
|
|
|
102
102
|
|
|
103
103
|
const getTheme = (
|
|
104
104
|
scale: Scale = defaultScale,
|
|
105
|
-
systemPallete: SystemPalette =
|
|
105
|
+
systemPallete: SystemPalette = swagLightSystemPalette
|
|
106
106
|
): Theme => {
|
|
107
107
|
const globalTheme = getGlobalTheme(scale, systemPallete);
|
|
108
108
|
return {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`swagDark returns correct theme object 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"archived": "#abacaf",
|
|
6
|
+
"archivedSurface": "#dadbde",
|
|
7
|
+
"darkGlobalSurface": "#001f23",
|
|
8
|
+
"decorativePrimary": "#FDFBFF",
|
|
9
|
+
"decorativePrimarySurface": "#B382FD",
|
|
10
|
+
"defaultGlobalSurface": "#ffffff",
|
|
11
|
+
"defaultSurface": "#FDFBFF",
|
|
12
|
+
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
13
|
+
"disabledOutline": "#bfc1c5",
|
|
14
|
+
"error": "#f46363",
|
|
15
|
+
"errorSurface": "#fcebe7",
|
|
16
|
+
"highlightedSurface": "#F1E9FB",
|
|
17
|
+
"inactiveOnDefaultGlobalSurface": "#808f91",
|
|
18
|
+
"inactiveOutline": "#808f91",
|
|
19
|
+
"info": "#b5c3fd",
|
|
20
|
+
"infoSurface": "#ecf0ff",
|
|
21
|
+
"mutedArchived": "#bcbdbf",
|
|
22
|
+
"mutedError": "#f68282",
|
|
23
|
+
"mutedInfo": "#c4cffd",
|
|
24
|
+
"mutedOnDefaultGlobalSurface": "#4d6265",
|
|
25
|
+
"mutedSuccess": "#7bd897",
|
|
26
|
+
"mutedWarning": "#ffcb8d",
|
|
27
|
+
"neutralGlobalSurface": "#f6f6f7",
|
|
28
|
+
"onArchivedSurface": "#606065",
|
|
29
|
+
"onDarkGlobalSurface": "#ffffff",
|
|
30
|
+
"onDefaultGlobalSurface": "#001f23",
|
|
31
|
+
"onErrorSurface": "#cb300a",
|
|
32
|
+
"onInfoSurface": "#355bfb",
|
|
33
|
+
"onPrimary": "#FDFBFF",
|
|
34
|
+
"onSecondary": "#ffffff",
|
|
35
|
+
"onSuccessSurface": "#017d6d",
|
|
36
|
+
"onWarningSurface": "#ac5d00",
|
|
37
|
+
"overlayGlobalSurface": "#000000",
|
|
38
|
+
"pressedSurface": "#380060",
|
|
39
|
+
"primary": "#7622d7",
|
|
40
|
+
"primaryOutline": "#001f23",
|
|
41
|
+
"secondary": "#460078",
|
|
42
|
+
"secondaryOutline": "#e8e9ea",
|
|
43
|
+
"success": "#5ace7d",
|
|
44
|
+
"successSurface": "#f0fef4",
|
|
45
|
+
"warning": "#ffbe71",
|
|
46
|
+
"warningSurface": "#fff6eb",
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { swagLightPalette as palette } from '@hero-design/colors';
|
|
2
|
+
import type { SystemPalette, BrandSystemPalette } from './types';
|
|
3
|
+
import globalPalette from './global';
|
|
4
|
+
|
|
5
|
+
const swagBrandSystemPallete: BrandSystemPalette = {
|
|
6
|
+
primary: palette.violet,
|
|
7
|
+
onPrimary: '#FDFBFF',
|
|
8
|
+
secondary: '#460078',
|
|
9
|
+
onSecondary: palette.white,
|
|
10
|
+
defaultSurface: '#FDFBFF',
|
|
11
|
+
highlightedSurface: '#F1E9FB',
|
|
12
|
+
pressedSurface: '#380060',
|
|
13
|
+
|
|
14
|
+
decorativePrimary: '#FDFBFF',
|
|
15
|
+
decorativePrimarySurface: '#DDC8F5',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const swagSystemPalette: SystemPalette = {
|
|
19
|
+
// Global
|
|
20
|
+
...globalPalette,
|
|
21
|
+
// Brand
|
|
22
|
+
...swagBrandSystemPallete,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default swagSystemPalette;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { scale as defaultScale } from './scale';
|
|
2
2
|
import swagSystemPalette from './colors/swag';
|
|
3
3
|
import swagDarkSystemPalette from './colors/swagDark';
|
|
4
|
+
import swagLightSystemPalette from './colors/swagLight';
|
|
4
5
|
import workSystemPalette from './colors/work';
|
|
5
6
|
import jobsSystemPalette from './colors/jobs';
|
|
6
7
|
import walletSystemPalette from './colors/wallet';
|
|
@@ -47,6 +48,7 @@ export {
|
|
|
47
48
|
getGlobalTheme,
|
|
48
49
|
defaultScale,
|
|
49
50
|
swagSystemPalette,
|
|
51
|
+
swagLightSystemPalette,
|
|
50
52
|
swagDarkSystemPalette,
|
|
51
53
|
workSystemPalette,
|
|
52
54
|
jobsSystemPalette,
|
package/src/theme/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ import ThemeProvider, { useTheme } from './ThemeProvider';
|
|
|
3
3
|
import ThemeSwitcher, { withTheme } from './ThemeSwitcher';
|
|
4
4
|
import {
|
|
5
5
|
swagSystemPalette,
|
|
6
|
+
swagLightSystemPalette,
|
|
6
7
|
swagDarkSystemPalette,
|
|
7
8
|
workSystemPalette,
|
|
8
9
|
jobsSystemPalette,
|
|
@@ -23,6 +24,7 @@ export {
|
|
|
23
24
|
ThemeSwitcher,
|
|
24
25
|
useTheme,
|
|
25
26
|
swagSystemPalette,
|
|
27
|
+
swagLightSystemPalette,
|
|
26
28
|
swagDarkSystemPalette,
|
|
27
29
|
workSystemPalette,
|
|
28
30
|
jobsSystemPalette,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|