@hero-design/rn 8.68.0-alpha.1 → 8.69.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 +8 -0
- package/CHANGELOG.md +27 -0
- package/es/index.js +706 -188
- package/lib/index.js +707 -187
- 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/Alert/StyledAlert.tsx +24 -2
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +150 -30
- package/src/components/Alert/index.tsx +15 -10
- 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/StyledBadge.tsx +13 -5
- package/src/components/Badge/__tests__/Badge.spec.tsx +9 -0
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +129 -13
- package/src/components/Badge/index.tsx +8 -2
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/BottomSheet/Header.tsx +50 -27
- package/src/components/BottomSheet/StyledBottomSheet.tsx +35 -8
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +352 -1
- package/src/components/BottomSheet/__tests__/index.spec.tsx +30 -0
- package/src/components/BottomSheet/index.tsx +47 -30
- 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 +2 -2
- 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/ProgressStep.tsx +87 -0
- package/src/components/Progress/StyledStep.tsx +48 -0
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +214 -5
- package/src/components/Progress/__tests__/index.spec.js +26 -0
- package/src/components/Progress/index.tsx +6 -1
- 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/Search/SearchOneLine.tsx +196 -0
- package/src/components/Search/SearchSuffixIcon.tsx +37 -0
- package/src/components/Search/SearchTwoLine.tsx +64 -0
- package/src/components/Search/StyledSearch.tsx +67 -0
- package/src/components/Search/__tests__/SearchOneLine.spec.tsx +197 -0
- package/src/components/Search/__tests__/SearchSuffixIcon.spec.tsx +12 -0
- package/src/components/Search/__tests__/SearchTwoLine.spec.tsx +20 -0
- package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +707 -0
- package/src/components/Search/__tests__/__snapshots__/SearchSuffixIcon.spec.tsx.snap +134 -0
- package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +170 -0
- package/src/components/Search/__tests__/__snapshots__/utils.spec.tsx.snap +115 -0
- package/src/components/Search/__tests__/utils.spec.tsx +19 -0
- package/src/components/Search/index.tsx +17 -0
- package/src/components/Search/utils.tsx +31 -0
- 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 +18 -18
- 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 +5 -5
- 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 +24 -9
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +19 -9
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +7 -2
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +24 -9
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +5 -5
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +2 -2
- 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 +4 -0
- package/src/theme/ThemeSwitcher.tsx +2 -12
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +152 -77
- package/src/theme/components/alert.ts +14 -5
- package/src/theme/components/badge.ts +21 -21
- package/src/theme/components/bottomSheet.ts +7 -0
- package/src/theme/components/progress.ts +11 -1
- package/src/theme/components/search.ts +56 -0
- package/src/theme/getTheme.ts +5 -2
- package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +7 -7
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +50 -0
- package/src/theme/global/colors/__tests__/swagLightJobs.spec.ts +7 -0
- package/src/theme/global/colors/swagLight.ts +7 -8
- package/src/theme/global/colors/swagLightJobs.ts +11 -0
- package/src/theme/global/colors/types.ts +4 -0
- package/src/theme/global/index.ts +2 -0
- package/src/theme/index.ts +2 -0
- package/stats/8.67.0/rn-stats.html +4844 -0
- package/stats/8.68.0/rn-stats.html +4842 -0
- package/stats/8.69.0/rn-stats.html +4842 -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 +17 -2
- 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 +4 -0
- package/types/components/Badge/index.d.ts +6 -2
- 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 +3 -2
- package/types/components/BottomSheet/ScrollView.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +16 -2
- package/types/components/BottomSheet/index.d.ts +5 -1
- package/types/components/Box/StyledBox.d.ts +1 -1
- 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/ProgressStep.d.ts +20 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledStep.d.ts +21 -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 +1 -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/Search/SearchOneLine.d.ts +60 -0
- package/types/components/Search/SearchSuffixIcon.d.ts +24 -0
- package/types/components/Search/SearchTwoLine.d.ts +31 -0
- package/types/components/Search/StyledSearch.d.ts +44 -0
- package/types/components/Search/index.d.ts +10 -0
- package/types/components/Search/utils.d.ts +8 -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/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 +3 -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 +14 -5
- 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 +21 -21
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +7 -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 +9 -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/search.d.ts +38 -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 +2 -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/swagLightJobs.d.ts +47 -0
- package/types/theme/global/colors/types.d.ts +2 -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 +4 -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/types/components/Tabs/ScrollableTabsHeader.d.ts +0 -35
|
@@ -19,12 +19,21 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
19
19
|
"base": 1,
|
|
20
20
|
},
|
|
21
21
|
"colors": {
|
|
22
|
+
"backgrounds": {
|
|
23
|
+
"error": "#fcebe7",
|
|
24
|
+
"info": "#ecf0ff",
|
|
25
|
+
"notification": "#ffffff",
|
|
26
|
+
"success": "#f0fef4",
|
|
27
|
+
"warning": "#fff6eb",
|
|
28
|
+
},
|
|
22
29
|
"divider": "#e8e9ea",
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
"texts": {
|
|
31
|
+
"error": "#cb300a",
|
|
32
|
+
"info": "#355bfb",
|
|
33
|
+
"notification": "#001f23",
|
|
34
|
+
"success": "#017d6d",
|
|
35
|
+
"warning": "#ac5d00",
|
|
36
|
+
},
|
|
28
37
|
},
|
|
29
38
|
"radii": {
|
|
30
39
|
"default": 16,
|
|
@@ -41,7 +50,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
41
50
|
},
|
|
42
51
|
"attachment": {
|
|
43
52
|
"colors": {
|
|
44
|
-
"highlightedBackground": "#
|
|
53
|
+
"highlightedBackground": "#ece8ef",
|
|
45
54
|
},
|
|
46
55
|
"radii": {
|
|
47
56
|
"container": 8,
|
|
@@ -62,7 +71,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
62
71
|
"colors": {
|
|
63
72
|
"danger": "#f46363",
|
|
64
73
|
"info": "#b5c3fd",
|
|
65
|
-
"primary": "#
|
|
74
|
+
"primary": "#401960",
|
|
66
75
|
"success": "#5ace7d",
|
|
67
76
|
"text": "#ffffff",
|
|
68
77
|
"warning": "#ffbe71",
|
|
@@ -111,28 +120,42 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
111
120
|
"archived": "#606065",
|
|
112
121
|
"danger": "#cb300a",
|
|
113
122
|
"info": "#355bfb",
|
|
114
|
-
"primary": "#
|
|
123
|
+
"primary": "#401960",
|
|
115
124
|
"success": "#017d6d",
|
|
116
125
|
"text": "#ffffff",
|
|
117
126
|
"warning": "#ac5d00",
|
|
118
127
|
},
|
|
119
128
|
"fontSizes": {
|
|
120
|
-
"
|
|
129
|
+
"medium": 12,
|
|
130
|
+
"small": 8,
|
|
121
131
|
},
|
|
122
132
|
"fonts": {
|
|
123
|
-
"
|
|
133
|
+
"medium": "BeVietnamPro-Regular",
|
|
134
|
+
"small": "BeVietnamPro-SemiBold",
|
|
124
135
|
},
|
|
125
136
|
"lineHeights": {
|
|
126
|
-
"
|
|
137
|
+
"medium": 16,
|
|
138
|
+
"small": 10,
|
|
127
139
|
},
|
|
128
140
|
"sizes": {
|
|
129
|
-
"
|
|
130
|
-
|
|
141
|
+
"medium": {
|
|
142
|
+
"height": 24,
|
|
143
|
+
"minWidth": 24,
|
|
144
|
+
},
|
|
145
|
+
"small": {
|
|
146
|
+
"height": 16,
|
|
147
|
+
"minWidth": 16,
|
|
148
|
+
},
|
|
131
149
|
"statusHeight": 8,
|
|
132
150
|
"statusWidth": 8,
|
|
133
151
|
},
|
|
134
152
|
"space": {
|
|
135
|
-
"
|
|
153
|
+
"medium": {
|
|
154
|
+
"horizontalPadding": 8,
|
|
155
|
+
},
|
|
156
|
+
"small": {
|
|
157
|
+
"horizontalPadding": 4,
|
|
158
|
+
},
|
|
136
159
|
"statusPositionRight": -2,
|
|
137
160
|
"statusPositionTop": -2,
|
|
138
161
|
},
|
|
@@ -140,7 +163,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
140
163
|
"bottomNavigation": {
|
|
141
164
|
"colors": {
|
|
142
165
|
"background": "#ffffff",
|
|
143
|
-
"shadow": "#
|
|
166
|
+
"shadow": "#401960",
|
|
144
167
|
},
|
|
145
168
|
"shadows": {
|
|
146
169
|
"elevation": 10,
|
|
@@ -162,10 +185,13 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
162
185
|
"colors": {
|
|
163
186
|
"backdrop": "#000000",
|
|
164
187
|
"background": "#ffffff",
|
|
188
|
+
"floatingHeaderIconBackground": "#dadbde",
|
|
165
189
|
"shadow": "#001f23",
|
|
166
190
|
},
|
|
167
191
|
"radii": {
|
|
168
192
|
"default": 16,
|
|
193
|
+
"floating": 32,
|
|
194
|
+
"floatingHeaderIcon": 999,
|
|
169
195
|
},
|
|
170
196
|
"shadows": {
|
|
171
197
|
"elevation": 10,
|
|
@@ -178,9 +204,13 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
178
204
|
},
|
|
179
205
|
"sizes": {
|
|
180
206
|
"closeIcon": 48,
|
|
207
|
+
"floatingCloseIcon": 12,
|
|
181
208
|
},
|
|
182
209
|
"space": {
|
|
183
210
|
"closeIconMargin": 12,
|
|
211
|
+
"floatingContentMargin": 16,
|
|
212
|
+
"floatingHeaderIconPadding": 8,
|
|
213
|
+
"floatingInnerPadding": 8,
|
|
184
214
|
"footerHorizontalPadding": 12,
|
|
185
215
|
"footerVerticalPadding": 2,
|
|
186
216
|
"headerWrapperHorizontalPadding": 16,
|
|
@@ -200,18 +230,18 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
200
230
|
"invertedText": "#ffffff",
|
|
201
231
|
"pressedBackground": {
|
|
202
232
|
"filledDanger": "#fcebe7",
|
|
203
|
-
"filledPrimary": "#
|
|
204
|
-
"filledSecondary": "#
|
|
233
|
+
"filledPrimary": "#33144d",
|
|
234
|
+
"filledSecondary": "#33144d",
|
|
205
235
|
"outlineDanger": "#fcebe7",
|
|
206
|
-
"outlinedPrimary": "#
|
|
207
|
-
"outlinedSecondary": "#
|
|
236
|
+
"outlinedPrimary": "#ece8ef",
|
|
237
|
+
"outlinedSecondary": "#ece8ef",
|
|
208
238
|
"textDanger": "#fcebe7",
|
|
209
|
-
"textPrimary": "#
|
|
210
|
-
"textSecondary": "#
|
|
239
|
+
"textPrimary": "#ece8ef",
|
|
240
|
+
"textSecondary": "#ece8ef",
|
|
211
241
|
},
|
|
212
|
-
"primary": "#
|
|
213
|
-
"secondary": "#
|
|
214
|
-
"textLoadingBackground": "#
|
|
242
|
+
"primary": "#401960",
|
|
243
|
+
"secondary": "#795e90",
|
|
244
|
+
"textLoadingBackground": "#ece8ef",
|
|
215
245
|
"utilityBackground": "#ffffff",
|
|
216
246
|
},
|
|
217
247
|
"fontSize": {
|
|
@@ -246,7 +276,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
246
276
|
"background": "#ffffff",
|
|
247
277
|
"border": "#001f23",
|
|
248
278
|
"inverted": "#ffffff",
|
|
249
|
-
"primary": "#
|
|
279
|
+
"primary": "#401960",
|
|
250
280
|
},
|
|
251
281
|
"radii": {
|
|
252
282
|
"default": 999,
|
|
@@ -271,10 +301,10 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
271
301
|
"colors": {
|
|
272
302
|
"archived": "#abacaf",
|
|
273
303
|
"danger": "#f46363",
|
|
274
|
-
"dataCardIndicator": "#
|
|
304
|
+
"dataCardIndicator": "#401960",
|
|
275
305
|
"info": "#b5c3fd",
|
|
276
306
|
"neutral": "#f6f6f7",
|
|
277
|
-
"primary": "#
|
|
307
|
+
"primary": "#401960",
|
|
278
308
|
"success": "#5ace7d",
|
|
279
309
|
"warning": "#ffbe71",
|
|
280
310
|
},
|
|
@@ -287,7 +317,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
287
317
|
},
|
|
288
318
|
"cardCarousel": {
|
|
289
319
|
"colors": {
|
|
290
|
-
"carouselItemBackground": "#
|
|
320
|
+
"carouselItemBackground": "#f6f6f7",
|
|
291
321
|
},
|
|
292
322
|
"radii": {
|
|
293
323
|
"card": 8,
|
|
@@ -351,7 +381,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
351
381
|
"filledBackground": "#ffffff",
|
|
352
382
|
"outlinedBackground": "transparent",
|
|
353
383
|
"primaryBackground": "#001f23",
|
|
354
|
-
"secondaryBackground": "#
|
|
384
|
+
"secondaryBackground": "#ece8ef",
|
|
355
385
|
"selectedPrimaryText": "#ffffff",
|
|
356
386
|
"wrapperBorder": "#001f23",
|
|
357
387
|
"wrapperSelectedBorder": "transparent",
|
|
@@ -460,7 +490,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
460
490
|
"error": {
|
|
461
491
|
"colors": {
|
|
462
492
|
"description": "#4d6265",
|
|
463
|
-
"fullScreenBackground": "#
|
|
493
|
+
"fullScreenBackground": "#ccd2d3",
|
|
464
494
|
"inPageBackground": "#f6f6f7",
|
|
465
495
|
"title": "#001f23",
|
|
466
496
|
},
|
|
@@ -493,15 +523,15 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
493
523
|
},
|
|
494
524
|
"fab": {
|
|
495
525
|
"colors": {
|
|
496
|
-
"actionItemBackground": "#
|
|
497
|
-
"actionItemPressedBackground": "#
|
|
498
|
-
"actionItemText": "#
|
|
526
|
+
"actionItemBackground": "#795e90",
|
|
527
|
+
"actionItemPressedBackground": "#33144d",
|
|
528
|
+
"actionItemText": "#ffffff",
|
|
499
529
|
"backdropBackground": "#000000",
|
|
500
|
-
"buttonActiveBackground": "#
|
|
501
|
-
"buttonBackground": "#
|
|
502
|
-
"buttonPressedBackground": "#
|
|
503
|
-
"icon": "#
|
|
504
|
-
"titleText": "#
|
|
530
|
+
"buttonActiveBackground": "#33144d",
|
|
531
|
+
"buttonBackground": "#401960",
|
|
532
|
+
"buttonPressedBackground": "#33144d",
|
|
533
|
+
"icon": "#ffffff",
|
|
534
|
+
"titleText": "#ffffff",
|
|
505
535
|
},
|
|
506
536
|
"fontSizes": {
|
|
507
537
|
"actionItemText": 16,
|
|
@@ -552,8 +582,8 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
552
582
|
"disabledText": "#bfc1c5",
|
|
553
583
|
"info": "#b5c3fd",
|
|
554
584
|
"invertedText": "#ffffff",
|
|
555
|
-
"primary": "#
|
|
556
|
-
"secondary": "#
|
|
585
|
+
"primary": "#401960",
|
|
586
|
+
"secondary": "#795e90",
|
|
557
587
|
"success": "#5ace7d",
|
|
558
588
|
"text": "#001f23",
|
|
559
589
|
"warning": "#ffbe71",
|
|
@@ -574,7 +604,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
574
604
|
},
|
|
575
605
|
"list": {
|
|
576
606
|
"colors": {
|
|
577
|
-
"checkedListItemContainerBackground": "#
|
|
607
|
+
"checkedListItemContainerBackground": "#ece8ef",
|
|
578
608
|
"leadingStatus": {
|
|
579
609
|
"archived": "#abacaf",
|
|
580
610
|
"danger": "#f46363",
|
|
@@ -618,7 +648,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
618
648
|
},
|
|
619
649
|
"pageControl": {
|
|
620
650
|
"colors": {
|
|
621
|
-
"paginatorBackgroundColor": "#
|
|
651
|
+
"paginatorBackgroundColor": "#401960",
|
|
622
652
|
},
|
|
623
653
|
"radii": {
|
|
624
654
|
"paginatorBorderRadius": 999,
|
|
@@ -681,7 +711,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
681
711
|
"dangerInverted": "#ffffff",
|
|
682
712
|
"info": "#b5c3fd",
|
|
683
713
|
"infoInverted": "#ffffff",
|
|
684
|
-
"primary": "#
|
|
714
|
+
"primary": "#401960",
|
|
685
715
|
"primaryInverted": "#ffffff",
|
|
686
716
|
"success": "#5ace7d",
|
|
687
717
|
"successInverted": "#ffffff",
|
|
@@ -696,12 +726,17 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
696
726
|
"info": "#e8e9ea",
|
|
697
727
|
"infoInverted": "#c4cffd",
|
|
698
728
|
"primary": "#e8e9ea",
|
|
699
|
-
"primaryInverted": "#
|
|
729
|
+
"primaryInverted": "#664780",
|
|
700
730
|
"success": "#e8e9ea",
|
|
701
731
|
"successInverted": "#7bd897",
|
|
702
732
|
"warning": "#e8e9ea",
|
|
703
733
|
"warningInverted": "#ffcb8d",
|
|
704
734
|
},
|
|
735
|
+
"step": {
|
|
736
|
+
"complete": "#401960",
|
|
737
|
+
"current": "#DACCE4",
|
|
738
|
+
"incomplete": "#dadbde",
|
|
739
|
+
},
|
|
705
740
|
},
|
|
706
741
|
"radii": {
|
|
707
742
|
"default": 999,
|
|
@@ -710,6 +745,10 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
710
745
|
"barHeight": 8,
|
|
711
746
|
"circleCompletenessHeight": 8,
|
|
712
747
|
"circleDiameter": 72,
|
|
748
|
+
"stepHeight": 8,
|
|
749
|
+
},
|
|
750
|
+
"space": {
|
|
751
|
+
"stepGap": 4,
|
|
713
752
|
},
|
|
714
753
|
},
|
|
715
754
|
"radio": {
|
|
@@ -717,8 +756,8 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
717
756
|
"circle": 2,
|
|
718
757
|
},
|
|
719
758
|
"colors": {
|
|
720
|
-
"checked": "#
|
|
721
|
-
"circle": "#
|
|
759
|
+
"checked": "#ece8ef",
|
|
760
|
+
"circle": "#401960",
|
|
722
761
|
"intents": {
|
|
723
762
|
"dark": "#f6f6f7",
|
|
724
763
|
"light": "#ffffff",
|
|
@@ -736,7 +775,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
736
775
|
},
|
|
737
776
|
"rate": {
|
|
738
777
|
"colors": {
|
|
739
|
-
"iconStroke": "#
|
|
778
|
+
"iconStroke": "#401960",
|
|
740
779
|
},
|
|
741
780
|
"spaces": {
|
|
742
781
|
"iconWrapperMarginRight": 4,
|
|
@@ -745,7 +784,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
745
784
|
},
|
|
746
785
|
"refreshControl": {
|
|
747
786
|
"colors": {
|
|
748
|
-
"indicator": "#
|
|
787
|
+
"indicator": "#401960",
|
|
749
788
|
},
|
|
750
789
|
},
|
|
751
790
|
"richTextEditor": {
|
|
@@ -753,7 +792,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
753
792
|
"text": "#001f23",
|
|
754
793
|
"toolbarBackgroundColor": "#f6f6f7",
|
|
755
794
|
"toolbarBorderColor": "#e8e9ea",
|
|
756
|
-
"toolbarButtonSelectedBackground": "#
|
|
795
|
+
"toolbarButtonSelectedBackground": "#ece8ef",
|
|
757
796
|
},
|
|
758
797
|
"fontSizes": {
|
|
759
798
|
"editor": 14,
|
|
@@ -774,10 +813,46 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
774
813
|
"wrapperMarginBottom": 16,
|
|
775
814
|
},
|
|
776
815
|
},
|
|
816
|
+
"search": {
|
|
817
|
+
"borderWidths": {
|
|
818
|
+
"container": {
|
|
819
|
+
"focused": 2,
|
|
820
|
+
"normal": 1,
|
|
821
|
+
},
|
|
822
|
+
},
|
|
823
|
+
"colors": {
|
|
824
|
+
"borders": "#001f23",
|
|
825
|
+
"containerBackground": "#f6f6f7",
|
|
826
|
+
"surfixBackground": "#ffffff",
|
|
827
|
+
"text": "#001f23",
|
|
828
|
+
},
|
|
829
|
+
"fontSizes": {
|
|
830
|
+
"text": 16,
|
|
831
|
+
},
|
|
832
|
+
"fonts": {
|
|
833
|
+
"text": "BeVietnamPro-Regular",
|
|
834
|
+
},
|
|
835
|
+
"radii": {
|
|
836
|
+
"container": 999,
|
|
837
|
+
"surfix": 999,
|
|
838
|
+
},
|
|
839
|
+
"sizes": {
|
|
840
|
+
"surfixSize": 40,
|
|
841
|
+
},
|
|
842
|
+
"space": {
|
|
843
|
+
"badgeRight": -2,
|
|
844
|
+
"badgeTop": -2,
|
|
845
|
+
"containerHorizontalPadding": 8,
|
|
846
|
+
"containerVerticalPadding": 8,
|
|
847
|
+
"inputHorizontalMargin": 8,
|
|
848
|
+
"prefixHorizontalPadding": 4,
|
|
849
|
+
"surfixPadding": 8,
|
|
850
|
+
},
|
|
851
|
+
},
|
|
777
852
|
"sectionHeading": {
|
|
778
853
|
"colors": {
|
|
779
854
|
"background": "#f6f6f7",
|
|
780
|
-
"backgroundSmall": "#
|
|
855
|
+
"backgroundSmall": "#ccd2d3",
|
|
781
856
|
},
|
|
782
857
|
"space": {
|
|
783
858
|
"headingHorizontalPadding": 16,
|
|
@@ -819,16 +894,16 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
819
894
|
},
|
|
820
895
|
"slider": {
|
|
821
896
|
"colors": {
|
|
822
|
-
"maximumTrackTint": "#
|
|
823
|
-
"minimumTrackTint": "#
|
|
824
|
-
"thumbTint": "#
|
|
897
|
+
"maximumTrackTint": "#ece8ef",
|
|
898
|
+
"minimumTrackTint": "#401960",
|
|
899
|
+
"thumbTint": "#401960",
|
|
825
900
|
},
|
|
826
901
|
},
|
|
827
902
|
"spinner": {
|
|
828
903
|
"colors": {
|
|
829
904
|
"dot": {
|
|
830
|
-
"inverted": "#
|
|
831
|
-
"primary": "#
|
|
905
|
+
"inverted": "#ffffff",
|
|
906
|
+
"primary": "#401960",
|
|
832
907
|
},
|
|
833
908
|
},
|
|
834
909
|
"radii": {
|
|
@@ -852,7 +927,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
852
927
|
"success": {
|
|
853
928
|
"colors": {
|
|
854
929
|
"description": "#4d6265",
|
|
855
|
-
"fullScreenBackground": "#
|
|
930
|
+
"fullScreenBackground": "#ccd2d3",
|
|
856
931
|
"inPageBackground": "#f6f6f7",
|
|
857
932
|
"title": "#001f23",
|
|
858
933
|
},
|
|
@@ -883,7 +958,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
883
958
|
"colors": {
|
|
884
959
|
"danger": "#f46363",
|
|
885
960
|
"defaultContainerBackground": "#ffffff",
|
|
886
|
-
"primary": "#
|
|
961
|
+
"primary": "#401960",
|
|
887
962
|
"success": "#5ace7d",
|
|
888
963
|
},
|
|
889
964
|
"radii": {
|
|
@@ -896,14 +971,14 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
896
971
|
"switch": {
|
|
897
972
|
"colors": {
|
|
898
973
|
"backgroundColors": {
|
|
899
|
-
"checked": "#
|
|
900
|
-
"disabled-checked": "#
|
|
974
|
+
"checked": "#401960",
|
|
975
|
+
"disabled-checked": "#ece8ef",
|
|
901
976
|
"disabled-unchecked": "#bfc1c5",
|
|
902
977
|
"unchecked": "#808f91",
|
|
903
978
|
},
|
|
904
979
|
"selector": {
|
|
905
980
|
"background": "#ffffff",
|
|
906
|
-
"textBackground": "#
|
|
981
|
+
"textBackground": "#ccd2d3",
|
|
907
982
|
},
|
|
908
983
|
"thumb": "#ffffff",
|
|
909
984
|
},
|
|
@@ -935,10 +1010,10 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
935
1010
|
},
|
|
936
1011
|
"colors": {
|
|
937
1012
|
"active": "#001f23",
|
|
938
|
-
"activeBackground": "#
|
|
1013
|
+
"activeBackground": "#ccd2d3",
|
|
939
1014
|
"headerBottom": "#e8e9ea",
|
|
940
1015
|
"inactive": "#001f23",
|
|
941
|
-
"indicator": "#
|
|
1016
|
+
"indicator": "#401960",
|
|
942
1017
|
"text": "#001f23",
|
|
943
1018
|
},
|
|
944
1019
|
"radii": {
|
|
@@ -968,8 +1043,8 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
968
1043
|
"dangerBackground": "#fcebe7",
|
|
969
1044
|
"info": "#355bfb",
|
|
970
1045
|
"infoBackground": "#ecf0ff",
|
|
971
|
-
"primary": "#
|
|
972
|
-
"primaryBackground": "#
|
|
1046
|
+
"primary": "#401960",
|
|
1047
|
+
"primaryBackground": "#ece8ef",
|
|
973
1048
|
"success": "#017d6d",
|
|
974
1049
|
"successBackground": "#f0fef4",
|
|
975
1050
|
"text": "#001f23",
|
|
@@ -1131,10 +1206,10 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1131
1206
|
"danger": "#ffbe71",
|
|
1132
1207
|
"disabled": "#bfc1c5",
|
|
1133
1208
|
"error": "#f46363",
|
|
1134
|
-
"iconButtonBackground": "#
|
|
1209
|
+
"iconButtonBackground": "#ece8ef",
|
|
1135
1210
|
"info": "#b5c3fd",
|
|
1136
|
-
"primary": "#
|
|
1137
|
-
"secondary": "#
|
|
1211
|
+
"primary": "#401960",
|
|
1212
|
+
"secondary": "#795e90",
|
|
1138
1213
|
"success": "#5ace7d",
|
|
1139
1214
|
},
|
|
1140
1215
|
"radii": {
|
|
@@ -1158,8 +1233,8 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1158
1233
|
"disabled": "#bfc1c5",
|
|
1159
1234
|
"info": "#355bfb",
|
|
1160
1235
|
"inverted": "#ffffff",
|
|
1161
|
-
"primary": "#
|
|
1162
|
-
"secondary": "#
|
|
1236
|
+
"primary": "#401960",
|
|
1237
|
+
"secondary": "#795e90",
|
|
1163
1238
|
"subdued": "#4d6265",
|
|
1164
1239
|
"success": "#5ace7d",
|
|
1165
1240
|
"warning": "#ffbe71",
|
|
@@ -1332,15 +1407,15 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1332
1407
|
"archived": "#abacaf",
|
|
1333
1408
|
"archivedSurface": "#dadbde",
|
|
1334
1409
|
"darkGlobalSurface": "#001f23",
|
|
1335
|
-
"decorativePrimary": "#
|
|
1336
|
-
"decorativePrimarySurface": "#
|
|
1410
|
+
"decorativePrimary": "#ffffff",
|
|
1411
|
+
"decorativePrimarySurface": "#ccd2d3",
|
|
1337
1412
|
"defaultGlobalSurface": "#ffffff",
|
|
1338
|
-
"defaultSurface": "#
|
|
1413
|
+
"defaultSurface": "#f6f6f7",
|
|
1339
1414
|
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
1340
1415
|
"disabledOutline": "#bfc1c5",
|
|
1341
1416
|
"error": "#f46363",
|
|
1342
1417
|
"errorSurface": "#fcebe7",
|
|
1343
|
-
"highlightedSurface": "#
|
|
1418
|
+
"highlightedSurface": "#ece8ef",
|
|
1344
1419
|
"inactiveOnDefaultGlobalSurface": "#808f91",
|
|
1345
1420
|
"inactiveOutline": "#808f91",
|
|
1346
1421
|
"info": "#b5c3fd",
|
|
@@ -1357,15 +1432,15 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1357
1432
|
"onDefaultGlobalSurface": "#001f23",
|
|
1358
1433
|
"onErrorSurface": "#cb300a",
|
|
1359
1434
|
"onInfoSurface": "#355bfb",
|
|
1360
|
-
"onPrimary": "#
|
|
1435
|
+
"onPrimary": "#ffffff",
|
|
1361
1436
|
"onSecondary": "#ffffff",
|
|
1362
1437
|
"onSuccessSurface": "#017d6d",
|
|
1363
1438
|
"onWarningSurface": "#ac5d00",
|
|
1364
1439
|
"overlayGlobalSurface": "#000000",
|
|
1365
|
-
"pressedSurface": "#
|
|
1366
|
-
"primary": "#
|
|
1440
|
+
"pressedSurface": "#33144d",
|
|
1441
|
+
"primary": "#401960",
|
|
1367
1442
|
"primaryOutline": "#001f23",
|
|
1368
|
-
"secondary": "#
|
|
1443
|
+
"secondary": "#795e90",
|
|
1369
1444
|
"secondaryOutline": "#e8e9ea",
|
|
1370
1445
|
"success": "#5ace7d",
|
|
1371
1446
|
"successSurface": "#f0fef4",
|
|
@@ -2,11 +2,20 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getAlertTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
backgrounds: {
|
|
6
|
+
success: theme.colors.successSurface,
|
|
7
|
+
warning: theme.colors.warningSurface,
|
|
8
|
+
error: theme.colors.errorSurface,
|
|
9
|
+
info: theme.colors.infoSurface,
|
|
10
|
+
notification: theme.colors.defaultGlobalSurface,
|
|
11
|
+
},
|
|
12
|
+
texts: {
|
|
13
|
+
success: theme.colors.onSuccessSurface,
|
|
14
|
+
warning: theme.colors.onWarningSurface,
|
|
15
|
+
error: theme.colors.onErrorSurface,
|
|
16
|
+
info: theme.colors.onInfoSurface,
|
|
17
|
+
notification: theme.colors.onDefaultGlobalSurface,
|
|
18
|
+
},
|
|
10
19
|
divider: theme.colors.secondaryOutline,
|
|
11
20
|
};
|
|
12
21
|
|
|
@@ -12,26 +12,40 @@ const getBadgeTheme = (theme: GlobalTheme) => {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
const fonts = {
|
|
15
|
-
|
|
15
|
+
medium: theme.fonts.neutral.regular,
|
|
16
|
+
small: theme.fonts.neutral.semiBold,
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
const fontSizes = {
|
|
19
|
-
|
|
20
|
+
medium: theme.fontSizes.small,
|
|
21
|
+
small: 8,
|
|
20
22
|
};
|
|
21
23
|
|
|
22
24
|
const lineHeights = {
|
|
23
|
-
|
|
25
|
+
medium: theme.lineHeights.small,
|
|
26
|
+
small: 10,
|
|
24
27
|
};
|
|
25
28
|
|
|
26
29
|
const sizes = {
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
medium: {
|
|
31
|
+
height: theme.sizes.large,
|
|
32
|
+
minWidth: theme.sizes.large,
|
|
33
|
+
},
|
|
34
|
+
small: {
|
|
35
|
+
height: theme.sizes.medium,
|
|
36
|
+
minWidth: theme.sizes.medium,
|
|
37
|
+
},
|
|
29
38
|
statusHeight: theme.sizes.small,
|
|
30
39
|
statusWidth: theme.sizes.small,
|
|
31
40
|
};
|
|
32
41
|
|
|
33
42
|
const space = {
|
|
34
|
-
|
|
43
|
+
medium: {
|
|
44
|
+
horizontalPadding: theme.space.small,
|
|
45
|
+
},
|
|
46
|
+
small: {
|
|
47
|
+
horizontalPadding: theme.space.xsmall,
|
|
48
|
+
},
|
|
35
49
|
statusPositionTop: -theme.space.xxsmall,
|
|
36
50
|
statusPositionRight: -theme.space.xxsmall,
|
|
37
51
|
};
|
|
@@ -39,19 +53,5 @@ const getBadgeTheme = (theme: GlobalTheme) => {
|
|
|
39
53
|
return { colors, fonts, fontSizes, sizes, space, lineHeights };
|
|
40
54
|
};
|
|
41
55
|
|
|
42
|
-
type
|
|
43
|
-
export interface BadgeThemeType extends GetBadgeThemeReturnType {
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated will be removed in v9
|
|
46
|
-
* */
|
|
47
|
-
fonts: GetBadgeThemeReturnType['fonts'];
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated will be removed in v9
|
|
50
|
-
* */
|
|
51
|
-
fontSizes: GetBadgeThemeReturnType['fontSizes'];
|
|
52
|
-
/**
|
|
53
|
-
* @deprecated will be removed in v9
|
|
54
|
-
* */
|
|
55
|
-
lineHeights: GetBadgeThemeReturnType['lineHeights'];
|
|
56
|
-
}
|
|
56
|
+
export type BadgeThemeType = ReturnType<typeof getBadgeTheme>;
|
|
57
57
|
export default getBadgeTheme;
|
|
@@ -5,10 +5,12 @@ const getBottomSheetTheme = (theme: GlobalTheme) => {
|
|
|
5
5
|
shadow: theme.colors.primaryOutline,
|
|
6
6
|
background: theme.colors.defaultGlobalSurface,
|
|
7
7
|
backdrop: theme.colors.overlayGlobalSurface,
|
|
8
|
+
floatingHeaderIconBackground: theme.colors.archivedSurface,
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
const sizes = {
|
|
11
12
|
closeIcon: theme.sizes.xxxlarge,
|
|
13
|
+
floatingCloseIcon: theme.sizes.smallMedium,
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
const space = {
|
|
@@ -17,6 +19,9 @@ const getBottomSheetTheme = (theme: GlobalTheme) => {
|
|
|
17
19
|
closeIconMargin: theme.space.smallMedium,
|
|
18
20
|
footerVerticalPadding: theme.space.xxsmall,
|
|
19
21
|
footerHorizontalPadding: theme.space.smallMedium,
|
|
22
|
+
floatingContentMargin: theme.space.medium,
|
|
23
|
+
floatingInnerPadding: theme.space.small,
|
|
24
|
+
floatingHeaderIconPadding: theme.space.small,
|
|
20
25
|
};
|
|
21
26
|
|
|
22
27
|
const shadows = {
|
|
@@ -28,6 +33,8 @@ const getBottomSheetTheme = (theme: GlobalTheme) => {
|
|
|
28
33
|
|
|
29
34
|
const radii = {
|
|
30
35
|
default: theme.radii.xlarge,
|
|
36
|
+
floating: theme.radii['5xlarge'],
|
|
37
|
+
floatingHeaderIcon: theme.radii.rounded,
|
|
31
38
|
};
|
|
32
39
|
|
|
33
40
|
return { colors, shadows, radii, sizes, space };
|
|
@@ -37,19 +37,29 @@ const getProgressTheme = (theme: GlobalTheme) => {
|
|
|
37
37
|
infoInverted: theme.colors.mutedInfo,
|
|
38
38
|
archivedInverted: theme.colors.mutedArchived,
|
|
39
39
|
},
|
|
40
|
+
step: {
|
|
41
|
+
complete: theme.colors.primary,
|
|
42
|
+
incomplete: theme.colors.archivedSurface,
|
|
43
|
+
current: '#DACCE4',
|
|
44
|
+
},
|
|
40
45
|
};
|
|
41
46
|
|
|
42
47
|
const sizes = {
|
|
43
48
|
circleDiameter: theme.sizes['6xlarge'],
|
|
44
49
|
circleCompletenessHeight: theme.sizes.small,
|
|
45
50
|
barHeight: theme.sizes.small,
|
|
51
|
+
stepHeight: theme.sizes.small,
|
|
46
52
|
};
|
|
47
53
|
|
|
48
54
|
const radii = {
|
|
49
55
|
default: theme.radii.rounded,
|
|
50
56
|
};
|
|
51
57
|
|
|
52
|
-
|
|
58
|
+
const space = {
|
|
59
|
+
stepGap: theme.space.xsmall,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
return { colors, sizes, radii, space };
|
|
53
63
|
};
|
|
54
64
|
|
|
55
65
|
export default getProgressTheme;
|