@hero-design/rn 8.35.0-alpha.4 → 8.35.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/.eslintrc.js +1 -0
- package/.turbo/turbo-build.log +2 -2
- package/.turbo/turbo-publish:npm.log +0 -9
- package/es/index.js +539 -637
- package/jest.config.js +1 -1
- package/lib/index.js +549 -647
- package/package.json +9 -9
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +3 -3
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +1 -1
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +4 -4
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +6 -6
- package/src/components/Calendar/__tests__/index.spec.tsx +29 -0
- package/src/components/Calendar/index.tsx +10 -1
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +75 -74
- package/src/components/Carousel/index.tsx +1 -1
- package/src/components/DatePicker/DatePickerCalendar.tsx +23 -14
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -1
- package/src/components/FAB/index.tsx +0 -4
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +4 -4
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Portal/PortalHost.tsx +24 -0
- package/src/components/Portal/PortalProvider.tsx +29 -0
- package/src/components/Portal/__tests__/PortalHost.spec.tsx +50 -0
- package/src/components/Portal/__tests__/PortalProvider.spec.tsx +24 -0
- package/src/components/Portal/__tests__/index.spec.tsx +29 -0
- package/src/components/Portal/__tests__/reducer.spec.tsx +110 -0
- package/src/components/Portal/constants.ts +10 -0
- package/src/components/Portal/contexts.ts +14 -0
- package/src/components/Portal/index.tsx +42 -0
- package/src/components/Portal/reducer.ts +106 -0
- package/src/components/Portal/types.tsx +31 -0
- package/src/components/Portal/usePortal.ts +50 -0
- package/src/components/Portal/usePortalState.ts +11 -0
- package/src/components/Progress/StyledProgressBar.tsx +1 -0
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +46 -44
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -6
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +7 -7
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/Swipeable/index.tsx +6 -1
- package/src/components/Switch/SelectorSwitch/StyledSelectorSwitch.tsx +4 -7
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Switch/SelectorSwitch/index.tsx +7 -15
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +21 -21
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +6 -6
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Tag/StyledTag.tsx +6 -35
- package/src/components/Tag/__tests__/Tag.spec.tsx +13 -13
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +40 -79
- package/src/components/Tag/index.tsx +8 -6
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +7 -7
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +20 -20
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +1 -1
- 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 +3 -3
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/index.ts +2 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +49 -46
- package/src/theme/components/button.ts +1 -1
- package/src/theme/components/progress.ts +2 -2
- package/src/theme/components/swipeable.ts +5 -1
- package/src/theme/components/switch.ts +4 -4
- package/src/theme/components/tabs.ts +1 -1
- package/src/theme/components/tag.ts +2 -2
- package/src/theme/components/typography.ts +2 -2
- package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +7 -7
- package/src/theme/global/colors/__tests__/__snapshots__/global.spec.ts.snap +5 -5
- package/src/theme/global/colors/__tests__/__snapshots__/jobs.spec.ts.snap +6 -6
- package/src/theme/global/colors/__tests__/__snapshots__/swag.spec.ts.snap +6 -6
- package/src/theme/global/colors/__tests__/__snapshots__/wallet.spec.ts.snap +7 -7
- package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +5 -5
- package/src/theme/global/colors/eBens.ts +2 -2
- package/src/theme/global/colors/global.ts +5 -5
- package/src/theme/global/colors/jobs.ts +1 -1
- package/src/theme/global/colors/swag.ts +1 -1
- package/src/theme/global/colors/wallet.ts +2 -2
- package/types/components/Accordion/AccordionItem.d.ts +0 -0
- package/types/components/Accordion/StyledAccordion.d.ts +0 -0
- package/types/components/Accordion/index.d.ts +0 -0
- package/types/components/Alert/StyledAlert.d.ts +0 -0
- package/types/components/Alert/index.d.ts +0 -0
- package/types/components/Attachment/StyledAttachment.d.ts +0 -0
- package/types/components/Attachment/index.d.ts +0 -0
- package/types/components/Avatar/Avatar.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/components/Avatar/index.d.ts +0 -0
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +0 -0
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +0 -0
- package/types/components/BottomSheet/ScrollView.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Box/StyledBox.d.ts +0 -0
- package/types/components/Box/config.d.ts +0 -0
- package/types/components/Box/index.d.ts +0 -0
- package/types/components/Box/types.d.ts +0 -0
- package/types/components/Button/Button.d.ts +0 -0
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/components/Button/StyledButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/index.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
- package/types/components/Calendar/StyledCalendar.d.ts +0 -0
- package/types/components/Calendar/helpers.d.ts +0 -0
- package/types/components/Calendar/index.d.ts +2 -1
- 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 -3
- 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/Portal/PortalHost.d.ts +5 -0
- package/types/components/Portal/PortalProvider.d.ts +7 -0
- package/types/components/Portal/constants.d.ts +8 -0
- package/types/components/Portal/contexts.d.ts +9 -0
- package/types/components/Portal/index.d.ts +13 -0
- package/types/components/Portal/reducer.d.ts +5 -0
- package/types/components/Portal/types.d.ts +22 -0
- package/types/components/Portal/usePortal.d.ts +8 -0
- package/types/components/Portal/usePortalState.d.ts +1 -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 +1 -1
- 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 +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 +1 -4
- package/types/components/Tag/index.d.ts +1 -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 +0 -0
- package/types/theme/components/accordion.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/attachment.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/calendar.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/cardCarousel.d.ts +0 -0
- package/types/theme/components/carousel.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/datePicker.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/empty.d.ts +0 -0
- package/types/theme/components/error.d.ts +0 -0
- package/types/theme/components/fab.d.ts +0 -0
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/image.d.ts +0 -0
- package/types/theme/components/list.d.ts +0 -0
- package/types/theme/components/pageControl.d.ts +0 -0
- package/types/theme/components/pinInput.d.ts +0 -0
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/refreshControl.d.ts +0 -0
- package/types/theme/components/richTextEditor.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +0 -0
- package/types/theme/components/skeleton.d.ts +0 -0
- package/types/theme/components/slider.d.ts +0 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/success.d.ts +0 -0
- package/types/theme/components/swipeable.d.ts +3 -0
- package/types/theme/components/switch.d.ts +1 -1
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +1 -1
- 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/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/.tool-versions +0 -1
- package/.turbo/turbo-build:types.log +0 -9
- package/.turbo/turbo-lint.log +0 -163
- package/.turbo/turbo-test.log +0 -725
- package/.turbo/turbo-type-check.log +0 -1
- package/types/components/FAB/ActionGroup/FABModal.d.ts +0 -21
- package/types/components/FAB/ActionGroup/FABModalContentWrapper.d.ts +0 -18
- package/types/components/FAB/ActionGroup/FABProvider.d.ts +0 -5
- package/types/components/FAB/ActionGroup/ModalPresenter/ModalPresenter.d.ts +0 -34
- package/types/components/FAB/ActionGroup/ModalPresenter/index.d.ts +0 -3
- package/types/components/Tabs/ScrollableTabsV2/SceneView.d.ts +0 -10
- package/types/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.d.ts +0 -9
- package/types/components/Tabs/ScrollableTabsV2/index.d.ts +0 -4
|
@@ -6,7 +6,7 @@ exports[`Body has archived intent style 1`] = `
|
|
|
6
6
|
style={
|
|
7
7
|
Array [
|
|
8
8
|
Object {
|
|
9
|
-
"color": "#
|
|
9
|
+
"color": "#606065",
|
|
10
10
|
"fontFamily": "BeVietnamPro-Regular",
|
|
11
11
|
"fontSize": 16,
|
|
12
12
|
"letterSpacing": 0.48,
|
|
@@ -98,7 +98,7 @@ exports[`Body has info intent style 1`] = `
|
|
|
98
98
|
style={
|
|
99
99
|
Array [
|
|
100
100
|
Object {
|
|
101
|
-
"color": "#
|
|
101
|
+
"color": "#355bfb",
|
|
102
102
|
"fontFamily": "BeVietnamPro-Regular",
|
|
103
103
|
"fontSize": 16,
|
|
104
104
|
"letterSpacing": 0.48,
|
|
@@ -6,7 +6,7 @@ exports[`Caption has archived intent style 1`] = `
|
|
|
6
6
|
style={
|
|
7
7
|
Array [
|
|
8
8
|
Object {
|
|
9
|
-
"color": "#
|
|
9
|
+
"color": "#606065",
|
|
10
10
|
"fontFamily": "BeVietnamPro-Regular",
|
|
11
11
|
"fontSize": 12,
|
|
12
12
|
"letterSpacing": 0.48,
|
|
@@ -94,7 +94,7 @@ exports[`Caption has info intent style 1`] = `
|
|
|
94
94
|
style={
|
|
95
95
|
Array [
|
|
96
96
|
Object {
|
|
97
|
-
"color": "#
|
|
97
|
+
"color": "#355bfb",
|
|
98
98
|
"fontFamily": "BeVietnamPro-Regular",
|
|
99
99
|
"fontSize": 12,
|
|
100
100
|
"letterSpacing": 0.48,
|
|
@@ -6,7 +6,7 @@ exports[`Label has archived intent style 1`] = `
|
|
|
6
6
|
style={
|
|
7
7
|
Array [
|
|
8
8
|
Object {
|
|
9
|
-
"color": "#
|
|
9
|
+
"color": "#606065",
|
|
10
10
|
"fontSize": 10,
|
|
11
11
|
"letterSpacing": 0,
|
|
12
12
|
"lineHeight": 14,
|
|
@@ -86,7 +86,7 @@ exports[`Label has info intent style 1`] = `
|
|
|
86
86
|
style={
|
|
87
87
|
Array [
|
|
88
88
|
Object {
|
|
89
|
-
"color": "#
|
|
89
|
+
"color": "#355bfb",
|
|
90
90
|
"fontSize": 10,
|
|
91
91
|
"letterSpacing": 0,
|
|
92
92
|
"lineHeight": 14,
|
|
@@ -249,9 +249,9 @@ exports[`StyledTitle has h5 level and playful typeface style 1`] = `
|
|
|
249
249
|
Object {
|
|
250
250
|
"color": "#001f23",
|
|
251
251
|
"fontFamily": "RebondGrotesque-SemiBold",
|
|
252
|
-
"fontSize":
|
|
252
|
+
"fontSize": 18,
|
|
253
253
|
"letterSpacing": 0.24,
|
|
254
|
-
"lineHeight":
|
|
254
|
+
"lineHeight": 26,
|
|
255
255
|
},
|
|
256
256
|
undefined,
|
|
257
257
|
]
|
|
@@ -313,7 +313,7 @@ exports[`StyledTitle has info intent style 1`] = `
|
|
|
313
313
|
style={
|
|
314
314
|
Array [
|
|
315
315
|
Object {
|
|
316
|
-
"color": "#
|
|
316
|
+
"color": "#355bfb",
|
|
317
317
|
"fontFamily": "BeVietnamPro-Regular",
|
|
318
318
|
"fontSize": 18,
|
|
319
319
|
"letterSpacing": 0.48,
|
|
@@ -6,7 +6,7 @@ exports[`Title has archived intent style 1`] = `
|
|
|
6
6
|
style={
|
|
7
7
|
Array [
|
|
8
8
|
Object {
|
|
9
|
-
"color": "#
|
|
9
|
+
"color": "#606065",
|
|
10
10
|
"fontFamily": "BeVietnamPro-Regular",
|
|
11
11
|
"fontSize": 42,
|
|
12
12
|
"letterSpacing": 0,
|
|
@@ -307,9 +307,9 @@ exports[`Title has h5 level and playful typeface style 1`] = `
|
|
|
307
307
|
Object {
|
|
308
308
|
"color": "#001f23",
|
|
309
309
|
"fontFamily": "RebondGrotesque-SemiBold",
|
|
310
|
-
"fontSize":
|
|
310
|
+
"fontSize": 18,
|
|
311
311
|
"letterSpacing": 0.24,
|
|
312
|
-
"lineHeight":
|
|
312
|
+
"lineHeight": 26,
|
|
313
313
|
},
|
|
314
314
|
undefined,
|
|
315
315
|
]
|
|
@@ -374,7 +374,7 @@ exports[`Title has info intent style 1`] = `
|
|
|
374
374
|
style={
|
|
375
375
|
Array [
|
|
376
376
|
Object {
|
|
377
|
-
"color": "#
|
|
377
|
+
"color": "#355bfb",
|
|
378
378
|
"fontFamily": "BeVietnamPro-Regular",
|
|
379
379
|
"fontSize": 42,
|
|
380
380
|
"letterSpacing": 0,
|
package/src/index.ts
CHANGED
|
@@ -12,7 +12,6 @@ import theme, {
|
|
|
12
12
|
withTheme,
|
|
13
13
|
} from './theme';
|
|
14
14
|
import { scale } from './utils/scale';
|
|
15
|
-
import * as Portal from '@gorhom/portal';
|
|
16
15
|
|
|
17
16
|
import Accordion from './components/Accordion';
|
|
18
17
|
import Alert from './components/Alert';
|
|
@@ -61,6 +60,7 @@ import Rate from './components/Rate';
|
|
|
61
60
|
import RefreshControl from './components/RefreshControl';
|
|
62
61
|
import RichTextEditor from './components/RichTextEditor';
|
|
63
62
|
import PageControl from './components/PageControl';
|
|
63
|
+
import Portal from './components/Portal';
|
|
64
64
|
|
|
65
65
|
export {
|
|
66
66
|
theme,
|
|
@@ -104,6 +104,7 @@ export {
|
|
|
104
104
|
Modal,
|
|
105
105
|
PinInput,
|
|
106
106
|
Progress,
|
|
107
|
+
Portal,
|
|
107
108
|
PageControl,
|
|
108
109
|
Skeleton,
|
|
109
110
|
Slider,
|
|
@@ -124,7 +125,6 @@ export {
|
|
|
124
125
|
Rate,
|
|
125
126
|
RefreshControl,
|
|
126
127
|
RichTextEditor,
|
|
127
|
-
Portal,
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
export * from './types';
|
|
@@ -108,13 +108,13 @@ Object {
|
|
|
108
108
|
},
|
|
109
109
|
"badge": Object {
|
|
110
110
|
"colors": Object {
|
|
111
|
-
"archived": "#
|
|
112
|
-
"danger": "#
|
|
113
|
-
"info": "#
|
|
111
|
+
"archived": "#606065",
|
|
112
|
+
"danger": "#cb300a",
|
|
113
|
+
"info": "#355bfb",
|
|
114
114
|
"primary": "#401960",
|
|
115
115
|
"success": "#017d6d",
|
|
116
116
|
"text": "#ffffff",
|
|
117
|
-
"warning": "#
|
|
117
|
+
"warning": "#ac5d00",
|
|
118
118
|
},
|
|
119
119
|
"fontSizes": Object {
|
|
120
120
|
"default": 12,
|
|
@@ -192,7 +192,7 @@ Object {
|
|
|
192
192
|
"default": 2,
|
|
193
193
|
},
|
|
194
194
|
"colors": Object {
|
|
195
|
-
"danger": "#
|
|
195
|
+
"danger": "#cb300a",
|
|
196
196
|
"defaultText": "#001f23",
|
|
197
197
|
"disabledBackground": "#bfc1c5",
|
|
198
198
|
"disabledBorder": "#bfc1c5",
|
|
@@ -200,8 +200,8 @@ Object {
|
|
|
200
200
|
"invertedText": "#ffffff",
|
|
201
201
|
"pressedBackground": Object {
|
|
202
202
|
"filledDanger": "#fcebe7",
|
|
203
|
-
"filledPrimary": "#
|
|
204
|
-
"filledSecondary": "#
|
|
203
|
+
"filledPrimary": "#33144d",
|
|
204
|
+
"filledSecondary": "#33144d",
|
|
205
205
|
"outlineDanger": "#fcebe7",
|
|
206
206
|
"outlinedPrimary": "#ece8ef",
|
|
207
207
|
"outlinedSecondary": "#ece8ef",
|
|
@@ -212,7 +212,7 @@ Object {
|
|
|
212
212
|
"primary": "#401960",
|
|
213
213
|
"secondary": "#795e90",
|
|
214
214
|
"textLoadingBackground": "#ece8ef",
|
|
215
|
-
"utilityBackground": "#
|
|
215
|
+
"utilityBackground": "#ffffff",
|
|
216
216
|
},
|
|
217
217
|
"fontSize": Object {
|
|
218
218
|
"default": 18,
|
|
@@ -464,12 +464,12 @@ Object {
|
|
|
464
464
|
"fab": Object {
|
|
465
465
|
"colors": Object {
|
|
466
466
|
"actionItemBackground": "#795e90",
|
|
467
|
-
"actionItemPressedBackground": "#
|
|
467
|
+
"actionItemPressedBackground": "#33144d",
|
|
468
468
|
"actionItemText": "#ffffff",
|
|
469
469
|
"backdropBackground": "#000000",
|
|
470
|
-
"buttonActiveBackground": "#
|
|
470
|
+
"buttonActiveBackground": "#33144d",
|
|
471
471
|
"buttonBackground": "#401960",
|
|
472
|
-
"buttonPressedBackground": "#
|
|
472
|
+
"buttonPressedBackground": "#33144d",
|
|
473
473
|
"headerText": "#001f23",
|
|
474
474
|
"icon": "#ffffff",
|
|
475
475
|
"shadow": "#001f23",
|
|
@@ -524,7 +524,7 @@ Object {
|
|
|
524
524
|
},
|
|
525
525
|
"icon": Object {
|
|
526
526
|
"colors": Object {
|
|
527
|
-
"danger": "#
|
|
527
|
+
"danger": "#cb300a",
|
|
528
528
|
"disabledText": "#bfc1c5",
|
|
529
529
|
"info": "#b5c3fd",
|
|
530
530
|
"invertedText": "#ffffff",
|
|
@@ -612,7 +612,7 @@ Object {
|
|
|
612
612
|
"colors": Object {
|
|
613
613
|
"default": "#001f23",
|
|
614
614
|
"disabled": "#bfc1c5",
|
|
615
|
-
"error": "#
|
|
615
|
+
"error": "#cb300a",
|
|
616
616
|
"mask": "#001f23",
|
|
617
617
|
},
|
|
618
618
|
"fontSizes": Object {
|
|
@@ -644,7 +644,7 @@ Object {
|
|
|
644
644
|
"progress": Object {
|
|
645
645
|
"colors": Object {
|
|
646
646
|
"completeness": Object {
|
|
647
|
-
"archived": "#
|
|
647
|
+
"archived": "#606065",
|
|
648
648
|
"archivedInverted": "#ffffff",
|
|
649
649
|
"danger": "#f46363",
|
|
650
650
|
"dangerInverted": "#ffffff",
|
|
@@ -676,8 +676,8 @@ Object {
|
|
|
676
676
|
"default": 999,
|
|
677
677
|
},
|
|
678
678
|
"sizes": Object {
|
|
679
|
-
"barHeight":
|
|
680
|
-
"circleCompletenessHeight":
|
|
679
|
+
"barHeight": 8,
|
|
680
|
+
"circleCompletenessHeight": 8,
|
|
681
681
|
"circleDiameter": 72,
|
|
682
682
|
},
|
|
683
683
|
},
|
|
@@ -767,10 +767,10 @@ Object {
|
|
|
767
767
|
"skeleton": Object {
|
|
768
768
|
"colors": Object {
|
|
769
769
|
"darkBackground": "#ffffff",
|
|
770
|
-
"darkGradientEnd": "#
|
|
770
|
+
"darkGradientEnd": "#dadbde",
|
|
771
771
|
"darkGradientStart": "#ffffff",
|
|
772
772
|
"lightBackground": "#f6f6f7",
|
|
773
|
-
"lightGradientEnd": "#
|
|
773
|
+
"lightGradientEnd": "#dadbde",
|
|
774
774
|
"lightGradientStart": "#f6f6f7",
|
|
775
775
|
},
|
|
776
776
|
"radii": Object {
|
|
@@ -847,6 +847,9 @@ Object {
|
|
|
847
847
|
"primary": "#401960",
|
|
848
848
|
"success": "#5ace7d",
|
|
849
849
|
},
|
|
850
|
+
"radii": Object {
|
|
851
|
+
"swipeableContainer": 8,
|
|
852
|
+
},
|
|
850
853
|
},
|
|
851
854
|
"switch": Object {
|
|
852
855
|
"colors": Object {
|
|
@@ -857,8 +860,8 @@ Object {
|
|
|
857
860
|
"unchecked": "#808f91",
|
|
858
861
|
},
|
|
859
862
|
"selector": Object {
|
|
860
|
-
"background": "#
|
|
861
|
-
"textBackground": "#
|
|
863
|
+
"background": "#ffffff",
|
|
864
|
+
"textBackground": "#ccd2d3",
|
|
862
865
|
},
|
|
863
866
|
"thumb": "#ffffff",
|
|
864
867
|
},
|
|
@@ -871,7 +874,7 @@ Object {
|
|
|
871
874
|
"sizes": Object {
|
|
872
875
|
"height": 24,
|
|
873
876
|
"selector": Object {
|
|
874
|
-
"height":
|
|
877
|
+
"height": 40,
|
|
875
878
|
},
|
|
876
879
|
"thumb": 16,
|
|
877
880
|
"width": 48,
|
|
@@ -880,7 +883,7 @@ Object {
|
|
|
880
883
|
"paddingHorizontal": 4,
|
|
881
884
|
"selector": Object {
|
|
882
885
|
"iconPadding": 16,
|
|
883
|
-
"
|
|
886
|
+
"wrapperHorizontalPadding": 4,
|
|
884
887
|
},
|
|
885
888
|
},
|
|
886
889
|
},
|
|
@@ -897,7 +900,7 @@ Object {
|
|
|
897
900
|
"text": "#001f23",
|
|
898
901
|
},
|
|
899
902
|
"radii": Object {
|
|
900
|
-
"outline":
|
|
903
|
+
"outline": 16,
|
|
901
904
|
},
|
|
902
905
|
"sizes": Object {
|
|
903
906
|
"indicator": 2,
|
|
@@ -916,18 +919,18 @@ Object {
|
|
|
916
919
|
"default": 1,
|
|
917
920
|
},
|
|
918
921
|
"colors": Object {
|
|
919
|
-
"archived": "#
|
|
920
|
-
"archivedBackground": "#
|
|
921
|
-
"danger": "#
|
|
922
|
+
"archived": "#606065",
|
|
923
|
+
"archivedBackground": "#dadbde",
|
|
924
|
+
"danger": "#cb300a",
|
|
922
925
|
"dangerBackground": "#fcebe7",
|
|
923
|
-
"info": "#
|
|
926
|
+
"info": "#355bfb",
|
|
924
927
|
"infoBackground": "#ecf0ff",
|
|
925
|
-
"primary": "#
|
|
926
|
-
"primaryBackground":
|
|
928
|
+
"primary": "#401960",
|
|
929
|
+
"primaryBackground": "#ece8ef",
|
|
927
930
|
"success": "#017d6d",
|
|
928
931
|
"successBackground": "#f0fef4",
|
|
929
932
|
"text": "#001f23",
|
|
930
|
-
"warning": "#
|
|
933
|
+
"warning": "#ac5d00",
|
|
931
934
|
"warningBackground": "#fff6eb",
|
|
932
935
|
},
|
|
933
936
|
"fontSizes": Object {
|
|
@@ -956,21 +959,21 @@ Object {
|
|
|
956
959
|
},
|
|
957
960
|
"colors": Object {
|
|
958
961
|
"asterisks": Object {
|
|
959
|
-
"default": "#
|
|
962
|
+
"default": "#cb300a",
|
|
960
963
|
"disabled": "#bfc1c5",
|
|
961
|
-
"error": "#
|
|
962
|
-
"filled": "#
|
|
964
|
+
"error": "#cb300a",
|
|
965
|
+
"filled": "#cb300a",
|
|
963
966
|
"readonly": "#808f91",
|
|
964
967
|
},
|
|
965
968
|
"borders": Object {
|
|
966
969
|
"default": "#001f23",
|
|
967
970
|
"disabled": "#bfc1c5",
|
|
968
|
-
"error": "#
|
|
971
|
+
"error": "#cb300a",
|
|
969
972
|
"filled": "#001f23",
|
|
970
973
|
"readonly": "#808f91",
|
|
971
974
|
},
|
|
972
975
|
"containerBackground": "#ffffff",
|
|
973
|
-
"error": "#
|
|
976
|
+
"error": "#cb300a",
|
|
974
977
|
"labelBackground": "#ffffff",
|
|
975
978
|
"labels": Object {
|
|
976
979
|
"default": "#001f23",
|
|
@@ -989,7 +992,7 @@ Object {
|
|
|
989
992
|
"maxLengthLabels": Object {
|
|
990
993
|
"default": "#001f23",
|
|
991
994
|
"disabled": "#bfc1c5",
|
|
992
|
-
"error": "#
|
|
995
|
+
"error": "#cb300a",
|
|
993
996
|
"filled": "#001f23",
|
|
994
997
|
"readonly": "#808f91",
|
|
995
998
|
},
|
|
@@ -1107,11 +1110,11 @@ Object {
|
|
|
1107
1110
|
},
|
|
1108
1111
|
"typography": Object {
|
|
1109
1112
|
"colors": Object {
|
|
1110
|
-
"archived": "#
|
|
1113
|
+
"archived": "#606065",
|
|
1111
1114
|
"body": "#001f23",
|
|
1112
1115
|
"danger": "#f46363",
|
|
1113
1116
|
"disabled": "#bfc1c5",
|
|
1114
|
-
"info": "#
|
|
1117
|
+
"info": "#355bfb",
|
|
1115
1118
|
"inverted": "#ffffff",
|
|
1116
1119
|
"primary": "#401960",
|
|
1117
1120
|
"secondary": "#795e90",
|
|
@@ -1151,7 +1154,7 @@ Object {
|
|
|
1151
1154
|
"h2": 32,
|
|
1152
1155
|
"h3": 28,
|
|
1153
1156
|
"h4": 24,
|
|
1154
|
-
"h5":
|
|
1157
|
+
"h5": 18,
|
|
1155
1158
|
"h6": 16,
|
|
1156
1159
|
},
|
|
1157
1160
|
},
|
|
@@ -1267,7 +1270,7 @@ Object {
|
|
|
1267
1270
|
"h2": 40,
|
|
1268
1271
|
"h3": 36,
|
|
1269
1272
|
"h4": 32,
|
|
1270
|
-
"h5":
|
|
1273
|
+
"h5": 26,
|
|
1271
1274
|
"h6": 28,
|
|
1272
1275
|
},
|
|
1273
1276
|
},
|
|
@@ -1285,7 +1288,7 @@ Object {
|
|
|
1285
1288
|
},
|
|
1286
1289
|
"colors": Object {
|
|
1287
1290
|
"archived": "#abacaf",
|
|
1288
|
-
"archivedSurface": "#
|
|
1291
|
+
"archivedSurface": "#dadbde",
|
|
1289
1292
|
"darkGlobalSurface": "#001f23",
|
|
1290
1293
|
"decorativePrimary": "#ffffff",
|
|
1291
1294
|
"decorativePrimarySurface": "#ccd2d3",
|
|
@@ -1307,17 +1310,17 @@ Object {
|
|
|
1307
1310
|
"mutedSuccess": "#7bd897",
|
|
1308
1311
|
"mutedWarning": "#ffcb8d",
|
|
1309
1312
|
"neutralGlobalSurface": "#f6f6f7",
|
|
1310
|
-
"onArchivedSurface": "#
|
|
1313
|
+
"onArchivedSurface": "#606065",
|
|
1311
1314
|
"onDarkGlobalSurface": "#ffffff",
|
|
1312
1315
|
"onDefaultGlobalSurface": "#001f23",
|
|
1313
|
-
"onErrorSurface": "#
|
|
1314
|
-
"onInfoSurface": "#
|
|
1316
|
+
"onErrorSurface": "#cb300a",
|
|
1317
|
+
"onInfoSurface": "#355bfb",
|
|
1315
1318
|
"onPrimary": "#ffffff",
|
|
1316
1319
|
"onSecondary": "#ffffff",
|
|
1317
1320
|
"onSuccessSurface": "#017d6d",
|
|
1318
|
-
"onWarningSurface": "#
|
|
1321
|
+
"onWarningSurface": "#ac5d00",
|
|
1319
1322
|
"overlayGlobalSurface": "#000000",
|
|
1320
|
-
"pressedSurface": "#
|
|
1323
|
+
"pressedSurface": "#33144d",
|
|
1321
1324
|
"primary": "#401960",
|
|
1322
1325
|
"primaryOutline": "#001f23",
|
|
1323
1326
|
"secondary": "#795e90",
|
|
@@ -43,7 +43,7 @@ const getButtonTheme = (theme: GlobalTheme) => {
|
|
|
43
43
|
disabledBorder: theme.colors.disabledOnDefaultGlobalSurface,
|
|
44
44
|
disabledBackground: theme.colors.disabledOnDefaultGlobalSurface,
|
|
45
45
|
invertedText: theme.colors.onDarkGlobalSurface,
|
|
46
|
-
utilityBackground: theme.colors.
|
|
46
|
+
utilityBackground: theme.colors.defaultGlobalSurface,
|
|
47
47
|
textLoadingBackground: theme.colors.highlightedSurface,
|
|
48
48
|
pressedBackground: {
|
|
49
49
|
filledPrimary: theme.colors.pressedSurface,
|
|
@@ -41,8 +41,8 @@ const getProgressTheme = (theme: GlobalTheme) => {
|
|
|
41
41
|
|
|
42
42
|
const sizes = {
|
|
43
43
|
circleDiameter: theme.sizes['6xlarge'],
|
|
44
|
-
circleCompletenessHeight: theme.sizes.
|
|
45
|
-
barHeight: theme.sizes.
|
|
44
|
+
circleCompletenessHeight: theme.sizes.small,
|
|
45
|
+
barHeight: theme.sizes.small,
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
const radii = {
|
|
@@ -7,7 +7,11 @@ const getSwipeableTheme = (theme: GlobalTheme) => {
|
|
|
7
7
|
primary: theme.colors.primary,
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const radii = {
|
|
11
|
+
swipeableContainer: theme.radii.medium,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return { colors, radii };
|
|
11
15
|
};
|
|
12
16
|
|
|
13
17
|
export default getSwipeableTheme;
|
|
@@ -10,8 +10,8 @@ const getSwitchTheme = (theme: GlobalTheme) => {
|
|
|
10
10
|
},
|
|
11
11
|
thumb: theme.colors.onSecondary,
|
|
12
12
|
selector: {
|
|
13
|
-
background: theme.colors.
|
|
14
|
-
textBackground: theme.colors.
|
|
13
|
+
background: theme.colors.defaultGlobalSurface,
|
|
14
|
+
textBackground: theme.colors.decorativePrimarySurface,
|
|
15
15
|
},
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -20,7 +20,7 @@ const getSwitchTheme = (theme: GlobalTheme) => {
|
|
|
20
20
|
width: theme.sizes.xxxlarge,
|
|
21
21
|
height: theme.sizes.large,
|
|
22
22
|
selector: {
|
|
23
|
-
height: theme.sizes.
|
|
23
|
+
height: theme.sizes.xxlarge,
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -28,7 +28,7 @@ const getSwitchTheme = (theme: GlobalTheme) => {
|
|
|
28
28
|
paddingHorizontal: theme.space.xsmall,
|
|
29
29
|
selector: {
|
|
30
30
|
iconPadding: theme.space.medium,
|
|
31
|
-
|
|
31
|
+
wrapperHorizontalPadding: theme.space.xsmall,
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -6,8 +6,8 @@ const getTagTheme = (theme: GlobalTheme) => {
|
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
const colors = {
|
|
9
|
-
primary: theme.colors.
|
|
10
|
-
primaryBackground:
|
|
9
|
+
primary: theme.colors.primary,
|
|
10
|
+
primaryBackground: theme.colors.highlightedSurface,
|
|
11
11
|
info: theme.colors.onInfoSurface,
|
|
12
12
|
infoBackground: theme.colors.infoSurface,
|
|
13
13
|
success: theme.colors.onSuccessSurface,
|
|
@@ -42,7 +42,7 @@ const getTypographyTheme = (theme: GlobalTheme) => {
|
|
|
42
42
|
h2: theme.fontSizes.xxxxxlarge,
|
|
43
43
|
h3: theme.fontSizes.xxxxlarge,
|
|
44
44
|
h4: theme.fontSizes.xxxlarge,
|
|
45
|
-
h5: theme.fontSizes.
|
|
45
|
+
h5: theme.fontSizes.xlarge,
|
|
46
46
|
h6: theme.fontSizes.large,
|
|
47
47
|
},
|
|
48
48
|
},
|
|
@@ -85,7 +85,7 @@ const getTypographyTheme = (theme: GlobalTheme) => {
|
|
|
85
85
|
h2: theme.lineHeights.xxxxxlarge,
|
|
86
86
|
h3: theme.lineHeights.xxxxlarge,
|
|
87
87
|
h4: theme.lineHeights.xxxlarge,
|
|
88
|
-
h5: theme.lineHeights.
|
|
88
|
+
h5: theme.lineHeights.xlarge,
|
|
89
89
|
h6: theme.lineHeights.xxlarge,
|
|
90
90
|
},
|
|
91
91
|
},
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
exports[`eBens returns correct theme object 1`] = `
|
|
4
4
|
Object {
|
|
5
5
|
"archived": "#abacaf",
|
|
6
|
-
"archivedSurface": "#
|
|
6
|
+
"archivedSurface": "#dadbde",
|
|
7
7
|
"darkGlobalSurface": "#001f23",
|
|
8
8
|
"decorativePrimary": "#c38cee",
|
|
9
9
|
"decorativePrimarySurface": "#f3e8fc",
|
|
10
10
|
"defaultGlobalSurface": "#ffffff",
|
|
11
|
-
"defaultSurface": "#
|
|
11
|
+
"defaultSurface": "#ffffff",
|
|
12
12
|
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
13
13
|
"disabledOutline": "#bfc1c5",
|
|
14
14
|
"error": "#f46363",
|
|
@@ -25,17 +25,17 @@ Object {
|
|
|
25
25
|
"mutedSuccess": "#7bd897",
|
|
26
26
|
"mutedWarning": "#ffcb8d",
|
|
27
27
|
"neutralGlobalSurface": "#f6f6f7",
|
|
28
|
-
"onArchivedSurface": "#
|
|
28
|
+
"onArchivedSurface": "#606065",
|
|
29
29
|
"onDarkGlobalSurface": "#ffffff",
|
|
30
30
|
"onDefaultGlobalSurface": "#001f23",
|
|
31
|
-
"onErrorSurface": "#
|
|
32
|
-
"onInfoSurface": "#
|
|
31
|
+
"onErrorSurface": "#cb300a",
|
|
32
|
+
"onInfoSurface": "#355bfb",
|
|
33
33
|
"onPrimary": "#ffffff",
|
|
34
34
|
"onSecondary": "#ffffff",
|
|
35
35
|
"onSuccessSurface": "#017d6d",
|
|
36
|
-
"onWarningSurface": "#
|
|
36
|
+
"onWarningSurface": "#ac5d00",
|
|
37
37
|
"overlayGlobalSurface": "#000000",
|
|
38
|
-
"pressedSurface": "#
|
|
38
|
+
"pressedSurface": "#6a0482",
|
|
39
39
|
"primary": "#8505a2",
|
|
40
40
|
"primaryOutline": "#001f23",
|
|
41
41
|
"secondary": "#aa50be",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`global returns correct theme object 1`] = `
|
|
4
4
|
Object {
|
|
5
5
|
"archived": "#abacaf",
|
|
6
|
-
"archivedSurface": "#
|
|
6
|
+
"archivedSurface": "#dadbde",
|
|
7
7
|
"darkGlobalSurface": "#001f23",
|
|
8
8
|
"defaultGlobalSurface": "#ffffff",
|
|
9
9
|
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
@@ -21,13 +21,13 @@ Object {
|
|
|
21
21
|
"mutedSuccess": "#7bd897",
|
|
22
22
|
"mutedWarning": "#ffcb8d",
|
|
23
23
|
"neutralGlobalSurface": "#f6f6f7",
|
|
24
|
-
"onArchivedSurface": "#
|
|
24
|
+
"onArchivedSurface": "#606065",
|
|
25
25
|
"onDarkGlobalSurface": "#ffffff",
|
|
26
26
|
"onDefaultGlobalSurface": "#001f23",
|
|
27
|
-
"onErrorSurface": "#
|
|
28
|
-
"onInfoSurface": "#
|
|
27
|
+
"onErrorSurface": "#cb300a",
|
|
28
|
+
"onInfoSurface": "#355bfb",
|
|
29
29
|
"onSuccessSurface": "#017d6d",
|
|
30
|
-
"onWarningSurface": "#
|
|
30
|
+
"onWarningSurface": "#ac5d00",
|
|
31
31
|
"overlayGlobalSurface": "#000000",
|
|
32
32
|
"primaryOutline": "#001f23",
|
|
33
33
|
"secondaryOutline": "#e8e9ea",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`jobs returns correct theme object 1`] = `
|
|
4
4
|
Object {
|
|
5
5
|
"archived": "#abacaf",
|
|
6
|
-
"archivedSurface": "#
|
|
6
|
+
"archivedSurface": "#dadbde",
|
|
7
7
|
"darkGlobalSurface": "#001f23",
|
|
8
8
|
"decorativePrimary": "#ffad79",
|
|
9
9
|
"decorativePrimarySurface": "#ffefe4",
|
|
@@ -25,17 +25,17 @@ Object {
|
|
|
25
25
|
"mutedSuccess": "#7bd897",
|
|
26
26
|
"mutedWarning": "#ffcb8d",
|
|
27
27
|
"neutralGlobalSurface": "#f6f6f7",
|
|
28
|
-
"onArchivedSurface": "#
|
|
28
|
+
"onArchivedSurface": "#606065",
|
|
29
29
|
"onDarkGlobalSurface": "#ffffff",
|
|
30
30
|
"onDefaultGlobalSurface": "#001f23",
|
|
31
|
-
"onErrorSurface": "#
|
|
32
|
-
"onInfoSurface": "#
|
|
31
|
+
"onErrorSurface": "#cb300a",
|
|
32
|
+
"onInfoSurface": "#355bfb",
|
|
33
33
|
"onPrimary": "#ffffff",
|
|
34
34
|
"onSecondary": "#ffffff",
|
|
35
35
|
"onSuccessSurface": "#017d6d",
|
|
36
|
-
"onWarningSurface": "#
|
|
36
|
+
"onWarningSurface": "#ac5d00",
|
|
37
37
|
"overlayGlobalSurface": "#000000",
|
|
38
|
-
"pressedSurface": "#
|
|
38
|
+
"pressedSurface": "#b64d22",
|
|
39
39
|
"primary": "#e3602a",
|
|
40
40
|
"primaryOutline": "#001f23",
|
|
41
41
|
"secondary": "#4d6265",
|