@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
|
@@ -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),
|
|
@@ -5,15 +5,15 @@ exports[`swagDark returns correct theme object 1`] = `
|
|
|
5
5
|
"archived": "#abacaf",
|
|
6
6
|
"archivedSurface": "#dadbde",
|
|
7
7
|
"darkGlobalSurface": "#001f23",
|
|
8
|
-
"decorativePrimary": "#
|
|
9
|
-
"decorativePrimarySurface": "#
|
|
8
|
+
"decorativePrimary": "#fdfbff",
|
|
9
|
+
"decorativePrimarySurface": "#dacce4",
|
|
10
10
|
"defaultGlobalSurface": "#ffffff",
|
|
11
|
-
"defaultSurface": "#
|
|
11
|
+
"defaultSurface": "#fdfbff",
|
|
12
12
|
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
13
13
|
"disabledOutline": "#bfc1c5",
|
|
14
14
|
"error": "#f46363",
|
|
15
15
|
"errorSurface": "#fcebe7",
|
|
16
|
-
"highlightedSurface": "#
|
|
16
|
+
"highlightedSurface": "#f1e9fb",
|
|
17
17
|
"inactiveOnDefaultGlobalSurface": "#808f91",
|
|
18
18
|
"inactiveOutline": "#808f91",
|
|
19
19
|
"info": "#b5c3fd",
|
|
@@ -30,15 +30,15 @@ exports[`swagDark returns correct theme object 1`] = `
|
|
|
30
30
|
"onDefaultGlobalSurface": "#001f23",
|
|
31
31
|
"onErrorSurface": "#cb300a",
|
|
32
32
|
"onInfoSurface": "#355bfb",
|
|
33
|
-
"onPrimary": "#
|
|
33
|
+
"onPrimary": "#fdfbff",
|
|
34
34
|
"onSecondary": "#ffffff",
|
|
35
35
|
"onSuccessSurface": "#017d6d",
|
|
36
36
|
"onWarningSurface": "#ac5d00",
|
|
37
37
|
"overlayGlobalSurface": "#000000",
|
|
38
38
|
"pressedSurface": "#380060",
|
|
39
|
-
"primary": "#
|
|
39
|
+
"primary": "#460078",
|
|
40
40
|
"primaryOutline": "#001f23",
|
|
41
|
-
"secondary": "#
|
|
41
|
+
"secondary": "#b382fd",
|
|
42
42
|
"secondaryOutline": "#e8e9ea",
|
|
43
43
|
"success": "#5ace7d",
|
|
44
44
|
"successSurface": "#f0fef4",
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`swagLightJobs returns correct theme object 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"archived": "#abacaf",
|
|
6
|
+
"archivedSurface": "#dadbde",
|
|
7
|
+
"darkGlobalSurface": "#001f23",
|
|
8
|
+
"decorativePrimary": "#fdfbff",
|
|
9
|
+
"decorativePrimarySurface": "#dacce4",
|
|
10
|
+
"decorativeSecondary": "#fdfbff",
|
|
11
|
+
"decorativeSecondarySurface": "#d9f6ff",
|
|
12
|
+
"defaultGlobalSurface": "#ffffff",
|
|
13
|
+
"defaultSurface": "#fdfbff",
|
|
14
|
+
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
15
|
+
"disabledOutline": "#bfc1c5",
|
|
16
|
+
"error": "#f46363",
|
|
17
|
+
"errorSurface": "#fcebe7",
|
|
18
|
+
"highlightedSurface": "#f1e9fb",
|
|
19
|
+
"inactiveOnDefaultGlobalSurface": "#808f91",
|
|
20
|
+
"inactiveOutline": "#808f91",
|
|
21
|
+
"info": "#b5c3fd",
|
|
22
|
+
"infoSurface": "#ecf0ff",
|
|
23
|
+
"mutedArchived": "#bcbdbf",
|
|
24
|
+
"mutedError": "#f68282",
|
|
25
|
+
"mutedInfo": "#c4cffd",
|
|
26
|
+
"mutedOnDefaultGlobalSurface": "#4d6265",
|
|
27
|
+
"mutedSuccess": "#7bd897",
|
|
28
|
+
"mutedWarning": "#ffcb8d",
|
|
29
|
+
"neutralGlobalSurface": "#f6f6f7",
|
|
30
|
+
"onArchivedSurface": "#606065",
|
|
31
|
+
"onDarkGlobalSurface": "#ffffff",
|
|
32
|
+
"onDefaultGlobalSurface": "#001f23",
|
|
33
|
+
"onErrorSurface": "#cb300a",
|
|
34
|
+
"onInfoSurface": "#355bfb",
|
|
35
|
+
"onPrimary": "#fdfbff",
|
|
36
|
+
"onSecondary": "#460078",
|
|
37
|
+
"onSuccessSurface": "#017d6d",
|
|
38
|
+
"onWarningSurface": "#ac5d00",
|
|
39
|
+
"overlayGlobalSurface": "#000000",
|
|
40
|
+
"pressedSurface": "#380060",
|
|
41
|
+
"primary": "#460078",
|
|
42
|
+
"primaryOutline": "#001f23",
|
|
43
|
+
"secondary": "#40d1ff",
|
|
44
|
+
"secondaryOutline": "#e8e9ea",
|
|
45
|
+
"success": "#5ace7d",
|
|
46
|
+
"successSurface": "#f0fef4",
|
|
47
|
+
"warning": "#ffbe71",
|
|
48
|
+
"warningSurface": "#fff6eb",
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
@@ -3,16 +3,15 @@ import type { SystemPalette, BrandSystemPalette } from './types';
|
|
|
3
3
|
import globalPalette from './global';
|
|
4
4
|
|
|
5
5
|
const swagBrandSystemPallete: BrandSystemPalette = {
|
|
6
|
-
primary:
|
|
7
|
-
onPrimary: '#
|
|
8
|
-
secondary: '#
|
|
6
|
+
primary: '#460078',
|
|
7
|
+
onPrimary: '#fdfbff',
|
|
8
|
+
secondary: '#b382fd',
|
|
9
9
|
onSecondary: palette.white,
|
|
10
|
-
defaultSurface: '#
|
|
11
|
-
highlightedSurface:
|
|
10
|
+
defaultSurface: '#fdfbff',
|
|
11
|
+
highlightedSurface: palette.violetLight90,
|
|
12
12
|
pressedSurface: '#380060',
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
decorativePrimarySurface: '#DDC8F5',
|
|
13
|
+
decorativePrimary: '#fdfbff',
|
|
14
|
+
decorativePrimarySurface: '#dacce4',
|
|
16
15
|
};
|
|
17
16
|
|
|
18
17
|
const swagSystemPalette: SystemPalette = {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import swagLightSystemPalette from './swagLight';
|
|
2
|
+
|
|
3
|
+
const swagLightJobsSystemPalette = {
|
|
4
|
+
...swagLightSystemPalette,
|
|
5
|
+
secondary: '#40d1ff',
|
|
6
|
+
onSecondary: '#460078',
|
|
7
|
+
decorativeSecondary: '#fdfbff',
|
|
8
|
+
decorativeSecondarySurface: '#d9f6ff',
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default swagLightJobsSystemPalette;
|
|
@@ -54,6 +54,10 @@ export type BrandSystemPalette = {
|
|
|
54
54
|
decorativePrimary: string;
|
|
55
55
|
decorativePrimarySurface: string;
|
|
56
56
|
// End of Updated 14 / Nov / 22
|
|
57
|
+
|
|
58
|
+
// Updated 19 / Nov / 24
|
|
59
|
+
decorativeSecondary?: string;
|
|
60
|
+
decorativeSecondarySurface?: string;
|
|
57
61
|
};
|
|
58
62
|
|
|
59
63
|
export type SystemPalette = GlobalSystemPalette & BrandSystemPalette;
|
|
@@ -2,6 +2,7 @@ import { scale as defaultScale } from './scale';
|
|
|
2
2
|
import swagSystemPalette from './colors/swag';
|
|
3
3
|
import swagDarkSystemPalette from './colors/swagDark';
|
|
4
4
|
import swagLightSystemPalette from './colors/swagLight';
|
|
5
|
+
import swagLightJobsSystemPalette from './colors/swagLightJobs';
|
|
5
6
|
import workSystemPalette from './colors/work';
|
|
6
7
|
import jobsSystemPalette from './colors/jobs';
|
|
7
8
|
import walletSystemPalette from './colors/wallet';
|
|
@@ -49,6 +50,7 @@ export {
|
|
|
49
50
|
defaultScale,
|
|
50
51
|
swagSystemPalette,
|
|
51
52
|
swagLightSystemPalette,
|
|
53
|
+
swagLightJobsSystemPalette,
|
|
52
54
|
swagDarkSystemPalette,
|
|
53
55
|
workSystemPalette,
|
|
54
56
|
jobsSystemPalette,
|
package/src/theme/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ import ThemeSwitcher, { withTheme } from './ThemeSwitcher';
|
|
|
4
4
|
import {
|
|
5
5
|
swagSystemPalette,
|
|
6
6
|
swagLightSystemPalette,
|
|
7
|
+
swagLightJobsSystemPalette,
|
|
7
8
|
swagDarkSystemPalette,
|
|
8
9
|
workSystemPalette,
|
|
9
10
|
jobsSystemPalette,
|
|
@@ -25,6 +26,7 @@ export {
|
|
|
25
26
|
useTheme,
|
|
26
27
|
swagSystemPalette,
|
|
27
28
|
swagLightSystemPalette,
|
|
29
|
+
swagLightJobsSystemPalette,
|
|
28
30
|
swagDarkSystemPalette,
|
|
29
31
|
workSystemPalette,
|
|
30
32
|
jobsSystemPalette,
|