@hero-design/rn 8.68.0-alpha.1 → 8.68.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 +12 -0
- package/es/index.js +514 -155
- package/lib/index.js +514 -154
- package/package.json +1 -1
- 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/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/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 +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 +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 +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 +2 -12
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +136 -77
- package/src/theme/components/alert.ts +14 -5
- package/src/theme/components/badge.ts +21 -21
- package/src/theme/components/search.ts +56 -0
- package/src/theme/getTheme.ts +5 -2
- package/src/theme/global/colors/swagLight.ts +1 -1
- package/stats/8.67.0/rn-stats.html +4844 -0
- package/stats/8.68.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 +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/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 +2 -1
- 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 +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/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/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 +0 -0
- 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 +0 -0
- 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,
|
|
@@ -200,18 +223,18 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
200
223
|
"invertedText": "#ffffff",
|
|
201
224
|
"pressedBackground": {
|
|
202
225
|
"filledDanger": "#fcebe7",
|
|
203
|
-
"filledPrimary": "#
|
|
204
|
-
"filledSecondary": "#
|
|
226
|
+
"filledPrimary": "#33144d",
|
|
227
|
+
"filledSecondary": "#33144d",
|
|
205
228
|
"outlineDanger": "#fcebe7",
|
|
206
|
-
"outlinedPrimary": "#
|
|
207
|
-
"outlinedSecondary": "#
|
|
229
|
+
"outlinedPrimary": "#ece8ef",
|
|
230
|
+
"outlinedSecondary": "#ece8ef",
|
|
208
231
|
"textDanger": "#fcebe7",
|
|
209
|
-
"textPrimary": "#
|
|
210
|
-
"textSecondary": "#
|
|
232
|
+
"textPrimary": "#ece8ef",
|
|
233
|
+
"textSecondary": "#ece8ef",
|
|
211
234
|
},
|
|
212
|
-
"primary": "#
|
|
213
|
-
"secondary": "#
|
|
214
|
-
"textLoadingBackground": "#
|
|
235
|
+
"primary": "#401960",
|
|
236
|
+
"secondary": "#795e90",
|
|
237
|
+
"textLoadingBackground": "#ece8ef",
|
|
215
238
|
"utilityBackground": "#ffffff",
|
|
216
239
|
},
|
|
217
240
|
"fontSize": {
|
|
@@ -246,7 +269,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
246
269
|
"background": "#ffffff",
|
|
247
270
|
"border": "#001f23",
|
|
248
271
|
"inverted": "#ffffff",
|
|
249
|
-
"primary": "#
|
|
272
|
+
"primary": "#401960",
|
|
250
273
|
},
|
|
251
274
|
"radii": {
|
|
252
275
|
"default": 999,
|
|
@@ -271,10 +294,10 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
271
294
|
"colors": {
|
|
272
295
|
"archived": "#abacaf",
|
|
273
296
|
"danger": "#f46363",
|
|
274
|
-
"dataCardIndicator": "#
|
|
297
|
+
"dataCardIndicator": "#401960",
|
|
275
298
|
"info": "#b5c3fd",
|
|
276
299
|
"neutral": "#f6f6f7",
|
|
277
|
-
"primary": "#
|
|
300
|
+
"primary": "#401960",
|
|
278
301
|
"success": "#5ace7d",
|
|
279
302
|
"warning": "#ffbe71",
|
|
280
303
|
},
|
|
@@ -287,7 +310,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
287
310
|
},
|
|
288
311
|
"cardCarousel": {
|
|
289
312
|
"colors": {
|
|
290
|
-
"carouselItemBackground": "#
|
|
313
|
+
"carouselItemBackground": "#f6f6f7",
|
|
291
314
|
},
|
|
292
315
|
"radii": {
|
|
293
316
|
"card": 8,
|
|
@@ -351,7 +374,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
351
374
|
"filledBackground": "#ffffff",
|
|
352
375
|
"outlinedBackground": "transparent",
|
|
353
376
|
"primaryBackground": "#001f23",
|
|
354
|
-
"secondaryBackground": "#
|
|
377
|
+
"secondaryBackground": "#ece8ef",
|
|
355
378
|
"selectedPrimaryText": "#ffffff",
|
|
356
379
|
"wrapperBorder": "#001f23",
|
|
357
380
|
"wrapperSelectedBorder": "transparent",
|
|
@@ -460,7 +483,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
460
483
|
"error": {
|
|
461
484
|
"colors": {
|
|
462
485
|
"description": "#4d6265",
|
|
463
|
-
"fullScreenBackground": "#
|
|
486
|
+
"fullScreenBackground": "#ccd2d3",
|
|
464
487
|
"inPageBackground": "#f6f6f7",
|
|
465
488
|
"title": "#001f23",
|
|
466
489
|
},
|
|
@@ -493,15 +516,15 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
493
516
|
},
|
|
494
517
|
"fab": {
|
|
495
518
|
"colors": {
|
|
496
|
-
"actionItemBackground": "#
|
|
497
|
-
"actionItemPressedBackground": "#
|
|
498
|
-
"actionItemText": "#
|
|
519
|
+
"actionItemBackground": "#795e90",
|
|
520
|
+
"actionItemPressedBackground": "#33144d",
|
|
521
|
+
"actionItemText": "#ffffff",
|
|
499
522
|
"backdropBackground": "#000000",
|
|
500
|
-
"buttonActiveBackground": "#
|
|
501
|
-
"buttonBackground": "#
|
|
502
|
-
"buttonPressedBackground": "#
|
|
503
|
-
"icon": "#
|
|
504
|
-
"titleText": "#
|
|
523
|
+
"buttonActiveBackground": "#33144d",
|
|
524
|
+
"buttonBackground": "#401960",
|
|
525
|
+
"buttonPressedBackground": "#33144d",
|
|
526
|
+
"icon": "#ffffff",
|
|
527
|
+
"titleText": "#ffffff",
|
|
505
528
|
},
|
|
506
529
|
"fontSizes": {
|
|
507
530
|
"actionItemText": 16,
|
|
@@ -552,8 +575,8 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
552
575
|
"disabledText": "#bfc1c5",
|
|
553
576
|
"info": "#b5c3fd",
|
|
554
577
|
"invertedText": "#ffffff",
|
|
555
|
-
"primary": "#
|
|
556
|
-
"secondary": "#
|
|
578
|
+
"primary": "#401960",
|
|
579
|
+
"secondary": "#795e90",
|
|
557
580
|
"success": "#5ace7d",
|
|
558
581
|
"text": "#001f23",
|
|
559
582
|
"warning": "#ffbe71",
|
|
@@ -574,7 +597,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
574
597
|
},
|
|
575
598
|
"list": {
|
|
576
599
|
"colors": {
|
|
577
|
-
"checkedListItemContainerBackground": "#
|
|
600
|
+
"checkedListItemContainerBackground": "#ece8ef",
|
|
578
601
|
"leadingStatus": {
|
|
579
602
|
"archived": "#abacaf",
|
|
580
603
|
"danger": "#f46363",
|
|
@@ -618,7 +641,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
618
641
|
},
|
|
619
642
|
"pageControl": {
|
|
620
643
|
"colors": {
|
|
621
|
-
"paginatorBackgroundColor": "#
|
|
644
|
+
"paginatorBackgroundColor": "#401960",
|
|
622
645
|
},
|
|
623
646
|
"radii": {
|
|
624
647
|
"paginatorBorderRadius": 999,
|
|
@@ -681,7 +704,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
681
704
|
"dangerInverted": "#ffffff",
|
|
682
705
|
"info": "#b5c3fd",
|
|
683
706
|
"infoInverted": "#ffffff",
|
|
684
|
-
"primary": "#
|
|
707
|
+
"primary": "#401960",
|
|
685
708
|
"primaryInverted": "#ffffff",
|
|
686
709
|
"success": "#5ace7d",
|
|
687
710
|
"successInverted": "#ffffff",
|
|
@@ -696,7 +719,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
696
719
|
"info": "#e8e9ea",
|
|
697
720
|
"infoInverted": "#c4cffd",
|
|
698
721
|
"primary": "#e8e9ea",
|
|
699
|
-
"primaryInverted": "#
|
|
722
|
+
"primaryInverted": "#664780",
|
|
700
723
|
"success": "#e8e9ea",
|
|
701
724
|
"successInverted": "#7bd897",
|
|
702
725
|
"warning": "#e8e9ea",
|
|
@@ -717,8 +740,8 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
717
740
|
"circle": 2,
|
|
718
741
|
},
|
|
719
742
|
"colors": {
|
|
720
|
-
"checked": "#
|
|
721
|
-
"circle": "#
|
|
743
|
+
"checked": "#ece8ef",
|
|
744
|
+
"circle": "#401960",
|
|
722
745
|
"intents": {
|
|
723
746
|
"dark": "#f6f6f7",
|
|
724
747
|
"light": "#ffffff",
|
|
@@ -736,7 +759,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
736
759
|
},
|
|
737
760
|
"rate": {
|
|
738
761
|
"colors": {
|
|
739
|
-
"iconStroke": "#
|
|
762
|
+
"iconStroke": "#401960",
|
|
740
763
|
},
|
|
741
764
|
"spaces": {
|
|
742
765
|
"iconWrapperMarginRight": 4,
|
|
@@ -745,7 +768,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
745
768
|
},
|
|
746
769
|
"refreshControl": {
|
|
747
770
|
"colors": {
|
|
748
|
-
"indicator": "#
|
|
771
|
+
"indicator": "#401960",
|
|
749
772
|
},
|
|
750
773
|
},
|
|
751
774
|
"richTextEditor": {
|
|
@@ -753,7 +776,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
753
776
|
"text": "#001f23",
|
|
754
777
|
"toolbarBackgroundColor": "#f6f6f7",
|
|
755
778
|
"toolbarBorderColor": "#e8e9ea",
|
|
756
|
-
"toolbarButtonSelectedBackground": "#
|
|
779
|
+
"toolbarButtonSelectedBackground": "#ece8ef",
|
|
757
780
|
},
|
|
758
781
|
"fontSizes": {
|
|
759
782
|
"editor": 14,
|
|
@@ -774,10 +797,46 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
774
797
|
"wrapperMarginBottom": 16,
|
|
775
798
|
},
|
|
776
799
|
},
|
|
800
|
+
"search": {
|
|
801
|
+
"borderWidths": {
|
|
802
|
+
"container": {
|
|
803
|
+
"focused": 2,
|
|
804
|
+
"normal": 1,
|
|
805
|
+
},
|
|
806
|
+
},
|
|
807
|
+
"colors": {
|
|
808
|
+
"borders": "#001f23",
|
|
809
|
+
"containerBackground": "#f6f6f7",
|
|
810
|
+
"surfixBackground": "#ffffff",
|
|
811
|
+
"text": "#001f23",
|
|
812
|
+
},
|
|
813
|
+
"fontSizes": {
|
|
814
|
+
"text": 16,
|
|
815
|
+
},
|
|
816
|
+
"fonts": {
|
|
817
|
+
"text": "BeVietnamPro-Regular",
|
|
818
|
+
},
|
|
819
|
+
"radii": {
|
|
820
|
+
"container": 999,
|
|
821
|
+
"surfix": 999,
|
|
822
|
+
},
|
|
823
|
+
"sizes": {
|
|
824
|
+
"surfixSize": 40,
|
|
825
|
+
},
|
|
826
|
+
"space": {
|
|
827
|
+
"badgeRight": -2,
|
|
828
|
+
"badgeTop": -2,
|
|
829
|
+
"containerHorizontalPadding": 8,
|
|
830
|
+
"containerVerticalPadding": 8,
|
|
831
|
+
"inputHorizontalMargin": 8,
|
|
832
|
+
"prefixHorizontalPadding": 4,
|
|
833
|
+
"surfixPadding": 8,
|
|
834
|
+
},
|
|
835
|
+
},
|
|
777
836
|
"sectionHeading": {
|
|
778
837
|
"colors": {
|
|
779
838
|
"background": "#f6f6f7",
|
|
780
|
-
"backgroundSmall": "#
|
|
839
|
+
"backgroundSmall": "#ccd2d3",
|
|
781
840
|
},
|
|
782
841
|
"space": {
|
|
783
842
|
"headingHorizontalPadding": 16,
|
|
@@ -819,16 +878,16 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
819
878
|
},
|
|
820
879
|
"slider": {
|
|
821
880
|
"colors": {
|
|
822
|
-
"maximumTrackTint": "#
|
|
823
|
-
"minimumTrackTint": "#
|
|
824
|
-
"thumbTint": "#
|
|
881
|
+
"maximumTrackTint": "#ece8ef",
|
|
882
|
+
"minimumTrackTint": "#401960",
|
|
883
|
+
"thumbTint": "#401960",
|
|
825
884
|
},
|
|
826
885
|
},
|
|
827
886
|
"spinner": {
|
|
828
887
|
"colors": {
|
|
829
888
|
"dot": {
|
|
830
|
-
"inverted": "#
|
|
831
|
-
"primary": "#
|
|
889
|
+
"inverted": "#ffffff",
|
|
890
|
+
"primary": "#401960",
|
|
832
891
|
},
|
|
833
892
|
},
|
|
834
893
|
"radii": {
|
|
@@ -852,7 +911,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
852
911
|
"success": {
|
|
853
912
|
"colors": {
|
|
854
913
|
"description": "#4d6265",
|
|
855
|
-
"fullScreenBackground": "#
|
|
914
|
+
"fullScreenBackground": "#ccd2d3",
|
|
856
915
|
"inPageBackground": "#f6f6f7",
|
|
857
916
|
"title": "#001f23",
|
|
858
917
|
},
|
|
@@ -883,7 +942,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
883
942
|
"colors": {
|
|
884
943
|
"danger": "#f46363",
|
|
885
944
|
"defaultContainerBackground": "#ffffff",
|
|
886
|
-
"primary": "#
|
|
945
|
+
"primary": "#401960",
|
|
887
946
|
"success": "#5ace7d",
|
|
888
947
|
},
|
|
889
948
|
"radii": {
|
|
@@ -896,14 +955,14 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
896
955
|
"switch": {
|
|
897
956
|
"colors": {
|
|
898
957
|
"backgroundColors": {
|
|
899
|
-
"checked": "#
|
|
900
|
-
"disabled-checked": "#
|
|
958
|
+
"checked": "#401960",
|
|
959
|
+
"disabled-checked": "#ece8ef",
|
|
901
960
|
"disabled-unchecked": "#bfc1c5",
|
|
902
961
|
"unchecked": "#808f91",
|
|
903
962
|
},
|
|
904
963
|
"selector": {
|
|
905
964
|
"background": "#ffffff",
|
|
906
|
-
"textBackground": "#
|
|
965
|
+
"textBackground": "#ccd2d3",
|
|
907
966
|
},
|
|
908
967
|
"thumb": "#ffffff",
|
|
909
968
|
},
|
|
@@ -935,10 +994,10 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
935
994
|
},
|
|
936
995
|
"colors": {
|
|
937
996
|
"active": "#001f23",
|
|
938
|
-
"activeBackground": "#
|
|
997
|
+
"activeBackground": "#ccd2d3",
|
|
939
998
|
"headerBottom": "#e8e9ea",
|
|
940
999
|
"inactive": "#001f23",
|
|
941
|
-
"indicator": "#
|
|
1000
|
+
"indicator": "#401960",
|
|
942
1001
|
"text": "#001f23",
|
|
943
1002
|
},
|
|
944
1003
|
"radii": {
|
|
@@ -968,8 +1027,8 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
968
1027
|
"dangerBackground": "#fcebe7",
|
|
969
1028
|
"info": "#355bfb",
|
|
970
1029
|
"infoBackground": "#ecf0ff",
|
|
971
|
-
"primary": "#
|
|
972
|
-
"primaryBackground": "#
|
|
1030
|
+
"primary": "#401960",
|
|
1031
|
+
"primaryBackground": "#ece8ef",
|
|
973
1032
|
"success": "#017d6d",
|
|
974
1033
|
"successBackground": "#f0fef4",
|
|
975
1034
|
"text": "#001f23",
|
|
@@ -1131,10 +1190,10 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1131
1190
|
"danger": "#ffbe71",
|
|
1132
1191
|
"disabled": "#bfc1c5",
|
|
1133
1192
|
"error": "#f46363",
|
|
1134
|
-
"iconButtonBackground": "#
|
|
1193
|
+
"iconButtonBackground": "#ece8ef",
|
|
1135
1194
|
"info": "#b5c3fd",
|
|
1136
|
-
"primary": "#
|
|
1137
|
-
"secondary": "#
|
|
1195
|
+
"primary": "#401960",
|
|
1196
|
+
"secondary": "#795e90",
|
|
1138
1197
|
"success": "#5ace7d",
|
|
1139
1198
|
},
|
|
1140
1199
|
"radii": {
|
|
@@ -1158,8 +1217,8 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1158
1217
|
"disabled": "#bfc1c5",
|
|
1159
1218
|
"info": "#355bfb",
|
|
1160
1219
|
"inverted": "#ffffff",
|
|
1161
|
-
"primary": "#
|
|
1162
|
-
"secondary": "#
|
|
1220
|
+
"primary": "#401960",
|
|
1221
|
+
"secondary": "#795e90",
|
|
1163
1222
|
"subdued": "#4d6265",
|
|
1164
1223
|
"success": "#5ace7d",
|
|
1165
1224
|
"warning": "#ffbe71",
|
|
@@ -1332,15 +1391,15 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1332
1391
|
"archived": "#abacaf",
|
|
1333
1392
|
"archivedSurface": "#dadbde",
|
|
1334
1393
|
"darkGlobalSurface": "#001f23",
|
|
1335
|
-
"decorativePrimary": "#
|
|
1336
|
-
"decorativePrimarySurface": "#
|
|
1394
|
+
"decorativePrimary": "#ffffff",
|
|
1395
|
+
"decorativePrimarySurface": "#ccd2d3",
|
|
1337
1396
|
"defaultGlobalSurface": "#ffffff",
|
|
1338
|
-
"defaultSurface": "#
|
|
1397
|
+
"defaultSurface": "#f6f6f7",
|
|
1339
1398
|
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
1340
1399
|
"disabledOutline": "#bfc1c5",
|
|
1341
1400
|
"error": "#f46363",
|
|
1342
1401
|
"errorSurface": "#fcebe7",
|
|
1343
|
-
"highlightedSurface": "#
|
|
1402
|
+
"highlightedSurface": "#ece8ef",
|
|
1344
1403
|
"inactiveOnDefaultGlobalSurface": "#808f91",
|
|
1345
1404
|
"inactiveOutline": "#808f91",
|
|
1346
1405
|
"info": "#b5c3fd",
|
|
@@ -1357,15 +1416,15 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1357
1416
|
"onDefaultGlobalSurface": "#001f23",
|
|
1358
1417
|
"onErrorSurface": "#cb300a",
|
|
1359
1418
|
"onInfoSurface": "#355bfb",
|
|
1360
|
-
"onPrimary": "#
|
|
1419
|
+
"onPrimary": "#ffffff",
|
|
1361
1420
|
"onSecondary": "#ffffff",
|
|
1362
1421
|
"onSuccessSurface": "#017d6d",
|
|
1363
1422
|
"onWarningSurface": "#ac5d00",
|
|
1364
1423
|
"overlayGlobalSurface": "#000000",
|
|
1365
|
-
"pressedSurface": "#
|
|
1366
|
-
"primary": "#
|
|
1424
|
+
"pressedSurface": "#33144d",
|
|
1425
|
+
"primary": "#401960",
|
|
1367
1426
|
"primaryOutline": "#001f23",
|
|
1368
|
-
"secondary": "#
|
|
1427
|
+
"secondary": "#795e90",
|
|
1369
1428
|
"secondaryOutline": "#e8e9ea",
|
|
1370
1429
|
"success": "#5ace7d",
|
|
1371
1430
|
"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;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { GlobalTheme } from '../global';
|
|
2
|
+
|
|
3
|
+
const getSearchTheme = (theme: GlobalTheme) => {
|
|
4
|
+
const colors = {
|
|
5
|
+
containerBackground: theme.colors.neutralGlobalSurface,
|
|
6
|
+
surfixBackground: theme.colors.defaultGlobalSurface,
|
|
7
|
+
text: theme.colors.onDefaultGlobalSurface,
|
|
8
|
+
borders: theme.colors.primaryOutline,
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const space = {
|
|
12
|
+
containerHorizontalPadding: theme.space.small,
|
|
13
|
+
containerVerticalPadding: theme.space.small,
|
|
14
|
+
inputHorizontalMargin: theme.space.small,
|
|
15
|
+
prefixHorizontalPadding: theme.space.xsmall,
|
|
16
|
+
surfixPadding: theme.space.small,
|
|
17
|
+
badgeTop: -theme.space.xxsmall,
|
|
18
|
+
badgeRight: -theme.space.xxsmall,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const fonts = {
|
|
22
|
+
text: theme.fonts.neutral.regular,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const fontSizes = {
|
|
26
|
+
text: theme.fontSizes.large,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const borderWidths = {
|
|
30
|
+
container: {
|
|
31
|
+
normal: theme.borderWidths.base,
|
|
32
|
+
focused: theme.borderWidths.medium,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const radii = {
|
|
37
|
+
container: theme.radii.rounded,
|
|
38
|
+
surfix: theme.radii.rounded,
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const sizes = {
|
|
42
|
+
surfixSize: theme.sizes.xxlarge,
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
return {
|
|
46
|
+
colors,
|
|
47
|
+
space,
|
|
48
|
+
fonts,
|
|
49
|
+
fontSizes,
|
|
50
|
+
borderWidths,
|
|
51
|
+
radii,
|
|
52
|
+
sizes,
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export default getSearchTheme;
|
package/src/theme/getTheme.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getGlobalTheme, defaultScale,
|
|
1
|
+
import { getGlobalTheme, defaultScale, swagSystemPalette } from './global';
|
|
2
2
|
|
|
3
3
|
import getAccordionTheme from './components/accordion';
|
|
4
4
|
import getAlertTheme from './components/alert';
|
|
@@ -48,6 +48,7 @@ import getToolbarTheme from './components/toolbar';
|
|
|
48
48
|
import getTypographyTheme from './components/typography';
|
|
49
49
|
|
|
50
50
|
import type { GlobalTheme, Scale, SystemPalette } from './global';
|
|
51
|
+
import getSearchTheme from './components/search';
|
|
51
52
|
|
|
52
53
|
type Theme = GlobalTheme & {
|
|
53
54
|
__hd__: {
|
|
@@ -82,6 +83,7 @@ type Theme = GlobalTheme & {
|
|
|
82
83
|
rate: ReturnType<typeof getRateTheme>;
|
|
83
84
|
refreshControl: ReturnType<typeof getRefreshControlTheme>;
|
|
84
85
|
richTextEditor: ReturnType<typeof getRichTextEditorTheme>;
|
|
86
|
+
search: ReturnType<typeof getSearchTheme>;
|
|
85
87
|
sectionHeading: ReturnType<typeof getSectionHeadingTheme>;
|
|
86
88
|
select: ReturnType<typeof getSelectTheme>;
|
|
87
89
|
skeleton: ReturnType<typeof getSkeletonTheme>;
|
|
@@ -102,7 +104,7 @@ type Theme = GlobalTheme & {
|
|
|
102
104
|
|
|
103
105
|
const getTheme = (
|
|
104
106
|
scale: Scale = defaultScale,
|
|
105
|
-
systemPallete: SystemPalette =
|
|
107
|
+
systemPallete: SystemPalette = swagSystemPalette
|
|
106
108
|
): Theme => {
|
|
107
109
|
const globalTheme = getGlobalTheme(scale, systemPallete);
|
|
108
110
|
return {
|
|
@@ -139,6 +141,7 @@ const getTheme = (
|
|
|
139
141
|
rate: getRateTheme(globalTheme),
|
|
140
142
|
refreshControl: getRefreshControlTheme(globalTheme),
|
|
141
143
|
richTextEditor: getRichTextEditorTheme(globalTheme),
|
|
144
|
+
search: getSearchTheme(globalTheme),
|
|
142
145
|
sectionHeading: getSectionHeadingTheme(globalTheme),
|
|
143
146
|
select: getSelectTheme(globalTheme),
|
|
144
147
|
skeleton: getSkeletonTheme(globalTheme),
|