@hero-design/rn 8.66.0 → 8.67.0-alpha.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/es/index.js +223 -169
- package/lib/index.js +224 -169
- 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 +84 -18
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +2 -2
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +1 -1
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +1 -1
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +4 -4
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +21 -21
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +12 -12
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -5
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +4 -4
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +3 -3
- package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +2 -2
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +30 -30
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -1
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/FAB/ActionGroup/ActionItem.tsx +1 -3
- package/src/components/FAB/ActionGroup/StyledActionItem.tsx +2 -2
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +160 -87
- package/src/components/FAB/FAB.tsx +1 -1
- package/src/components/FAB/StyledFAB.tsx +2 -3
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +25 -3
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +37 -4
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -2
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +6 -6
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +2 -2
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
- package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -5
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +10 -10
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +14 -14
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +14 -14
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +14 -14
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +8 -8
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +32 -32
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +1 -1
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -3
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +5 -5
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +5 -5
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -1
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +18 -18
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +7 -7
- package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +1 -1
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +1 -1
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +1 -1
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
- package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +1 -1
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/index.ts +2 -0
- package/src/theme/ThemeSwitcher.tsx +12 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +80 -71
- package/src/theme/components/alert.ts +14 -5
- package/src/theme/components/fab.ts +5 -5
- package/src/theme/getTheme.ts +2 -2
- package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +48 -0
- package/src/theme/global/colors/__tests__/swagLight.spec.ts +7 -0
- package/src/theme/global/colors/swagLight.ts +25 -0
- package/src/theme/global/index.ts +2 -0
- package/src/theme/index.ts +2 -0
- package/types/components/Accordion/AccordionItem.d.ts +0 -0
- package/types/components/Accordion/StyledAccordion.d.ts +0 -0
- package/types/components/Accordion/index.d.ts +0 -0
- package/types/components/Alert/StyledAlert.d.ts +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 +0 -0
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +0 -0
- package/types/components/BottomSheet/ScrollView.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Box/StyledBox.d.ts +0 -0
- package/types/components/Box/config.d.ts +0 -0
- package/types/components/Box/index.d.ts +0 -0
- package/types/components/Box/types.d.ts +0 -0
- package/types/components/Button/Button.d.ts +0 -0
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/components/Button/StyledButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/index.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
- package/types/components/Calendar/StyledCalendar.d.ts +0 -0
- package/types/components/Calendar/helpers.d.ts +0 -0
- package/types/components/Calendar/index.d.ts +0 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +0 -0
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Carousel/CardCarousel.d.ts +0 -0
- package/types/components/Carousel/CarouselItem.d.ts +0 -0
- package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
- package/types/components/Carousel/StyledCarousel.d.ts +0 -0
- package/types/components/Carousel/contants.d.ts +0 -0
- package/types/components/Carousel/index.d.ts +0 -0
- package/types/components/Carousel/types.d.ts +0 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
- package/types/components/Checkbox/index.d.ts +0 -0
- package/types/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/components/Collapse/index.d.ts +0 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
- package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
- package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
- package/types/components/DatePicker/index.d.ts +0 -0
- package/types/components/DatePicker/types.d.ts +0 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/Empty/StyledEmpty.d.ts +0 -0
- package/types/components/Empty/index.d.ts +0 -0
- package/types/components/Error/StyledError.d.ts +0 -0
- package/types/components/Error/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +3 -3
- 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 +2 -3
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/Icon/AnimatedIcon.d.ts +0 -0
- package/types/components/Icon/HeroIcon/index.d.ts +0 -0
- package/types/components/Icon/IconList.d.ts +0 -0
- package/types/components/Icon/index.d.ts +0 -0
- package/types/components/Icon/utils.d.ts +0 -0
- package/types/components/Image/index.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +0 -0
- package/types/components/List/StyledBasicListItem.d.ts +0 -0
- package/types/components/List/StyledListItem.d.ts +0 -0
- package/types/components/List/index.d.ts +0 -0
- package/types/components/PageControl/StyledPageControl.d.ts +0 -0
- package/types/components/PageControl/index.d.ts +0 -0
- package/types/components/PinInput/PinCell.d.ts +0 -0
- package/types/components/PinInput/StyledPinInput.d.ts +0 -0
- package/types/components/PinInput/index.d.ts +0 -0
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/constants.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +0 -0
- package/types/components/Radio/StyledRadio.d.ts +0 -0
- package/types/components/Radio/index.d.ts +0 -0
- package/types/components/Radio/types.d.ts +0 -0
- package/types/components/RefreshControl/index.d.ts +0 -0
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/MentionList.d.ts +0 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/constants.d.ts +0 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/index.d.ts +0 -0
- package/types/components/RichTextEditor/types.d.ts +0 -0
- package/types/components/RichTextEditor/utils/events.d.ts +0 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/BaseOptionList.d.ts +0 -0
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +0 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
- package/types/components/Select/MultiSelect/index.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +0 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
- package/types/components/Select/SingleSelect/index.d.ts +0 -0
- package/types/components/Select/StyledSelect.d.ts +0 -0
- package/types/components/Select/helpers.d.ts +0 -0
- package/types/components/Select/index.d.ts +0 -0
- package/types/components/Select/types.d.ts +0 -0
- package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
- package/types/components/Skeleton/index.d.ts +0 -0
- package/types/components/Slider/index.d.ts +0 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Success/StyledSuccess.d.ts +0 -0
- package/types/components/Success/index.d.ts +0 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
- package/types/components/Swipeable/index.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
- package/types/components/Switch/StyledSwitch.d.ts +0 -0
- package/types/components/Switch/index.d.ts +0 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/components/Tabs/SceneView.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabsHeader.d.ts +35 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledTabs.d.ts +0 -0
- package/types/components/Tabs/TabWithBadge.d.ts +0 -0
- package/types/components/Tabs/index.d.ts +0 -0
- package/types/components/Tabs/useIsFocused.d.ts +0 -0
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +0 -0
- package/types/components/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +0 -0
- package/types/components/TextInput/index.d.ts +0 -0
- package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
- package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
- package/types/components/TimePicker/index.d.ts +0 -0
- package/types/components/TimePicker/types.d.ts +0 -0
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +0 -0
- package/types/components/Toast/ToastProvider.d.ts +0 -0
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Text/StyledText.d.ts +0 -0
- package/types/components/Typography/Text/index.d.ts +0 -0
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +2 -2
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/ThemeProvider.d.ts +0 -0
- package/types/theme/ThemeSwitcher.d.ts +1 -1
- package/types/theme/components/accordion.d.ts +0 -0
- package/types/theme/components/alert.d.ts +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 +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/calendar.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/cardCarousel.d.ts +0 -0
- package/types/theme/components/carousel.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/datePicker.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/empty.d.ts +0 -0
- package/types/theme/components/error.d.ts +0 -0
- package/types/theme/components/fab.d.ts +0 -0
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/image.d.ts +0 -0
- package/types/theme/components/list.d.ts +0 -0
- package/types/theme/components/pageControl.d.ts +0 -0
- package/types/theme/components/pinInput.d.ts +0 -0
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/refreshControl.d.ts +0 -0
- package/types/theme/components/richTextEditor.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +0 -0
- package/types/theme/components/skeleton.d.ts +0 -0
- package/types/theme/components/slider.d.ts +0 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/success.d.ts +0 -0
- package/types/theme/components/swipeable.d.ts +0 -0
- package/types/theme/components/switch.d.ts +0 -0
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +0 -0
- package/types/theme/components/textInput.d.ts +0 -0
- package/types/theme/components/timePicker.d.ts +0 -0
- package/types/theme/components/toast.d.ts +0 -0
- package/types/theme/components/toolbar.d.ts +0 -0
- package/types/theme/components/typography.d.ts +0 -0
- package/types/theme/getTheme.d.ts +0 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors/eBens.d.ts +0 -0
- package/types/theme/global/colors/global.d.ts +0 -0
- package/types/theme/global/colors/globalDark.d.ts +0 -0
- package/types/theme/global/colors/jobs.d.ts +0 -0
- package/types/theme/global/colors/swag.d.ts +0 -0
- package/types/theme/global/colors/swagDark.d.ts +0 -0
- package/types/theme/global/colors/swagLight.d.ts +3 -0
- package/types/theme/global/colors/types.d.ts +0 -0
- package/types/theme/global/colors/wallet.d.ts +0 -0
- package/types/theme/global/colors/work.d.ts +0 -0
- package/types/theme/global/index.d.ts +2 -1
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/sizes.d.ts +0 -0
- package/types/theme/global/space.d.ts +0 -0
- package/types/theme/global/typography.d.ts +0 -0
- package/types/theme/index.d.ts +2 -2
- package/types/types.d.ts +0 -0
- package/types/utils/functions.d.ts +0 -0
- package/types/utils/helpers.d.ts +0 -0
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
- package/.turbo/turbo-build.log +0 -8
|
@@ -2,12 +2,12 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getFABTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
buttonBackground: theme.colors.
|
|
6
|
-
buttonPressedBackground: theme.colors.
|
|
7
|
-
buttonActiveBackground: theme.colors.
|
|
5
|
+
buttonBackground: theme.colors.overlayGlobalSurface,
|
|
6
|
+
buttonPressedBackground: theme.colors.overlayGlobalSurface,
|
|
7
|
+
buttonActiveBackground: theme.colors.overlayGlobalSurface,
|
|
8
8
|
icon: theme.colors.onPrimary,
|
|
9
|
-
actionItemBackground: theme.colors.
|
|
10
|
-
actionItemPressedBackground: theme.colors.
|
|
9
|
+
actionItemBackground: theme.colors.overlayGlobalSurface,
|
|
10
|
+
actionItemPressedBackground: theme.colors.overlayGlobalSurface,
|
|
11
11
|
backdropBackground: theme.colors.overlayGlobalSurface,
|
|
12
12
|
titleText: theme.colors.onPrimary,
|
|
13
13
|
actionItemText: theme.colors.onPrimary,
|
package/src/theme/getTheme.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getGlobalTheme, defaultScale,
|
|
1
|
+
import { getGlobalTheme, defaultScale, swagLightSystemPalette } from './global';
|
|
2
2
|
|
|
3
3
|
import getAccordionTheme from './components/accordion';
|
|
4
4
|
import getAlertTheme from './components/alert';
|
|
@@ -102,7 +102,7 @@ type Theme = GlobalTheme & {
|
|
|
102
102
|
|
|
103
103
|
const getTheme = (
|
|
104
104
|
scale: Scale = defaultScale,
|
|
105
|
-
systemPallete: SystemPalette =
|
|
105
|
+
systemPallete: SystemPalette = swagLightSystemPalette
|
|
106
106
|
): Theme => {
|
|
107
107
|
const globalTheme = getGlobalTheme(scale, systemPallete);
|
|
108
108
|
return {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`swagDark returns correct theme object 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"archived": "#abacaf",
|
|
6
|
+
"archivedSurface": "#dadbde",
|
|
7
|
+
"darkGlobalSurface": "#001f23",
|
|
8
|
+
"decorativePrimary": "#FDFBFF",
|
|
9
|
+
"decorativePrimarySurface": "#DDC8F5",
|
|
10
|
+
"defaultGlobalSurface": "#ffffff",
|
|
11
|
+
"defaultSurface": "#FDFBFF",
|
|
12
|
+
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
13
|
+
"disabledOutline": "#bfc1c5",
|
|
14
|
+
"error": "#f46363",
|
|
15
|
+
"errorSurface": "#fcebe7",
|
|
16
|
+
"highlightedSurface": "#f1e9fb",
|
|
17
|
+
"inactiveOnDefaultGlobalSurface": "#808f91",
|
|
18
|
+
"inactiveOutline": "#808f91",
|
|
19
|
+
"info": "#b5c3fd",
|
|
20
|
+
"infoSurface": "#ecf0ff",
|
|
21
|
+
"mutedArchived": "#bcbdbf",
|
|
22
|
+
"mutedError": "#f68282",
|
|
23
|
+
"mutedInfo": "#c4cffd",
|
|
24
|
+
"mutedOnDefaultGlobalSurface": "#4d6265",
|
|
25
|
+
"mutedSuccess": "#7bd897",
|
|
26
|
+
"mutedWarning": "#ffcb8d",
|
|
27
|
+
"neutralGlobalSurface": "#f6f6f7",
|
|
28
|
+
"onArchivedSurface": "#606065",
|
|
29
|
+
"onDarkGlobalSurface": "#ffffff",
|
|
30
|
+
"onDefaultGlobalSurface": "#001f23",
|
|
31
|
+
"onErrorSurface": "#cb300a",
|
|
32
|
+
"onInfoSurface": "#355bfb",
|
|
33
|
+
"onPrimary": "#FDFBFF",
|
|
34
|
+
"onSecondary": "#ffffff",
|
|
35
|
+
"onSuccessSurface": "#017d6d",
|
|
36
|
+
"onWarningSurface": "#ac5d00",
|
|
37
|
+
"overlayGlobalSurface": "#000000",
|
|
38
|
+
"pressedSurface": "#380060",
|
|
39
|
+
"primary": "#460078",
|
|
40
|
+
"primaryOutline": "#001f23",
|
|
41
|
+
"secondary": "#B382FD",
|
|
42
|
+
"secondaryOutline": "#e8e9ea",
|
|
43
|
+
"success": "#5ace7d",
|
|
44
|
+
"successSurface": "#f0fef4",
|
|
45
|
+
"warning": "#ffbe71",
|
|
46
|
+
"warningSurface": "#fff6eb",
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { swagLightPalette as palette } from '@hero-design/colors';
|
|
2
|
+
import type { SystemPalette, BrandSystemPalette } from './types';
|
|
3
|
+
import globalPalette from './global';
|
|
4
|
+
|
|
5
|
+
const swagBrandSystemPallete: BrandSystemPalette = {
|
|
6
|
+
primary: palette.darkViolet,
|
|
7
|
+
onPrimary: '#FDFBFF',
|
|
8
|
+
secondary: '#B382FD',
|
|
9
|
+
onSecondary: palette.white,
|
|
10
|
+
defaultSurface: '#FDFBFF',
|
|
11
|
+
highlightedSurface: palette.violetLight90,
|
|
12
|
+
pressedSurface: palette.darkVioletDark20,
|
|
13
|
+
|
|
14
|
+
decorativePrimary: '#FDFBFF',
|
|
15
|
+
decorativePrimarySurface: '#DDC8F5',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const swagSystemPalette: SystemPalette = {
|
|
19
|
+
// Global
|
|
20
|
+
...globalPalette,
|
|
21
|
+
// Brand
|
|
22
|
+
...swagBrandSystemPallete,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default swagSystemPalette;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { scale as defaultScale } from './scale';
|
|
2
2
|
import swagSystemPalette from './colors/swag';
|
|
3
3
|
import swagDarkSystemPalette from './colors/swagDark';
|
|
4
|
+
import swagLightSystemPalette from './colors/swagLight';
|
|
4
5
|
import workSystemPalette from './colors/work';
|
|
5
6
|
import jobsSystemPalette from './colors/jobs';
|
|
6
7
|
import walletSystemPalette from './colors/wallet';
|
|
@@ -47,6 +48,7 @@ export {
|
|
|
47
48
|
getGlobalTheme,
|
|
48
49
|
defaultScale,
|
|
49
50
|
swagSystemPalette,
|
|
51
|
+
swagLightSystemPalette,
|
|
50
52
|
swagDarkSystemPalette,
|
|
51
53
|
workSystemPalette,
|
|
52
54
|
jobsSystemPalette,
|
package/src/theme/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ import ThemeProvider, { useTheme } from './ThemeProvider';
|
|
|
3
3
|
import ThemeSwitcher, { withTheme } from './ThemeSwitcher';
|
|
4
4
|
import {
|
|
5
5
|
swagSystemPalette,
|
|
6
|
+
swagLightSystemPalette,
|
|
6
7
|
swagDarkSystemPalette,
|
|
7
8
|
workSystemPalette,
|
|
8
9
|
jobsSystemPalette,
|
|
@@ -23,6 +24,7 @@ export {
|
|
|
23
24
|
ThemeSwitcher,
|
|
24
25
|
useTheme,
|
|
25
26
|
swagSystemPalette,
|
|
27
|
+
swagLightSystemPalette,
|
|
26
28
|
swagDarkSystemPalette,
|
|
27
29
|
workSystemPalette,
|
|
28
30
|
jobsSystemPalette,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { TouchableOpacity, View } from 'react-native';
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
|
+
import { TextProps } from '../Typography/Text';
|
|
4
|
+
import { IconProps } from '../Icon';
|
|
5
|
+
declare type ThemeIntent = 'success' | 'info' | 'warning' | 'error' | 'notification';
|
|
3
6
|
declare const Container: import("@emotion/native").StyledComponent<ViewProps & {
|
|
4
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
8
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
9
|
} & {
|
|
7
10
|
themeVariant: 'rounded' | 'unrounded';
|
|
8
|
-
themeIntent:
|
|
11
|
+
themeIntent: ThemeIntent;
|
|
9
12
|
}, {}, {
|
|
10
13
|
ref?: import("react").Ref<View> | undefined;
|
|
11
14
|
}>;
|
|
@@ -15,12 +18,24 @@ declare const IconContainer: import("@emotion/native").StyledComponent<ViewProps
|
|
|
15
18
|
}, {}, {
|
|
16
19
|
ref?: import("react").Ref<View> | undefined;
|
|
17
20
|
}>;
|
|
21
|
+
declare const StyledIcon: import("@emotion/native").StyledComponent<IconProps & {
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
themeIntent: ThemeIntent;
|
|
26
|
+
}, {}, {}>;
|
|
18
27
|
declare const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
19
28
|
theme?: import("@emotion/react").Theme | undefined;
|
|
20
29
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
21
30
|
}, {}, {
|
|
22
31
|
ref?: import("react").Ref<View> | undefined;
|
|
23
32
|
}>;
|
|
33
|
+
declare const StyledBody: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
34
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
35
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
36
|
+
} & TextProps & {
|
|
37
|
+
themeIntent: ThemeIntent;
|
|
38
|
+
}, {}, {}>;
|
|
24
39
|
declare const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
25
40
|
theme?: import("@emotion/react").Theme | undefined;
|
|
26
41
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
@@ -35,4 +50,4 @@ declare const CTAWrapper: import("@emotion/native").StyledComponent<import("reac
|
|
|
35
50
|
}, {}, {
|
|
36
51
|
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
37
52
|
}>;
|
|
38
|
-
export { Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, };
|
|
53
|
+
export { Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, StyledBody, StyledIcon, };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TouchableOpacity } from 'react-native';
|
|
2
2
|
import type { TouchableOpacityProps } from 'react-native';
|
|
3
3
|
import type { IconProps } from '../../Icon';
|
|
4
|
-
declare const StyledActionItem: import("@emotion/native").StyledComponent<
|
|
4
|
+
declare const StyledActionItem: import("@emotion/native").StyledComponent<TouchableOpacityProps & {
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
7
|
}, {}, {
|
|
8
|
-
ref?: import("react").Ref<
|
|
8
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
9
9
|
}>;
|
|
10
10
|
declare const StyledActionItemText: import("@emotion/native").StyledComponent<import("../../Typography/Body").BodyProps & {
|
|
11
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Animated, TouchableHighlight } from 'react-native';
|
|
1
|
+
import { TextProps, Animated, TouchableOpacity } from 'react-native';
|
|
3
2
|
import type { IconProps } from '../Icon';
|
|
4
|
-
declare const StyledFAB: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").
|
|
3
|
+
declare const StyledFAB: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").TouchableOpacityProps & import("react").RefAttributes<TouchableOpacity>> & {
|
|
5
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
5
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
6
|
} & {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|