@hero-design/rn 8.35.0-alpha.3 → 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 +543 -647
- package/jest.config.js +1 -1
- package/lib/index.js +553 -657
- 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/ActionGroup/index.tsx +45 -53
- 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 -1
- 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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`swag returns correct theme object 1`] = `
|
|
4
4
|
Object {
|
|
5
5
|
"archived": "#abacaf",
|
|
6
|
-
"archivedSurface": "#
|
|
6
|
+
"archivedSurface": "#dadbde",
|
|
7
7
|
"darkGlobalSurface": "#001f23",
|
|
8
8
|
"decorativePrimary": "#ffffff",
|
|
9
9
|
"decorativePrimarySurface": "#ccd2d3",
|
|
@@ -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": "#33144d",
|
|
39
39
|
"primary": "#401960",
|
|
40
40
|
"primaryOutline": "#001f23",
|
|
41
41
|
"secondary": "#795e90",
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
exports[`wallet returns correct theme object 1`] = `
|
|
4
4
|
Object {
|
|
5
5
|
"archived": "#abacaf",
|
|
6
|
-
"archivedSurface": "#
|
|
6
|
+
"archivedSurface": "#dadbde",
|
|
7
7
|
"darkGlobalSurface": "#001f23",
|
|
8
8
|
"decorativePrimary": "#8999ff",
|
|
9
9
|
"decorativePrimarySurface": "#e7ebff",
|
|
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": "#4853b5",
|
|
39
39
|
"primary": "#5a68e2",
|
|
40
40
|
"primaryOutline": "#001f23",
|
|
41
41
|
"secondary": "#3f499e",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`work returns correct theme object 1`] = `
|
|
4
4
|
Object {
|
|
5
5
|
"archived": "#abacaf",
|
|
6
|
-
"archivedSurface": "#
|
|
6
|
+
"archivedSurface": "#dadbde",
|
|
7
7
|
"darkGlobalSurface": "#001f23",
|
|
8
8
|
"decorativePrimary": "#ffd500",
|
|
9
9
|
"decorativePrimarySurface": "#fff7cc",
|
|
@@ -25,15 +25,15 @@ 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
38
|
"pressedSurface": "#000000",
|
|
39
39
|
"primary": "#000000",
|
|
@@ -7,9 +7,9 @@ const eBensBrandSystemPallete: BrandSystemPalette = {
|
|
|
7
7
|
onPrimary: palette.white,
|
|
8
8
|
secondary: palette.violetLight30,
|
|
9
9
|
onSecondary: palette.white,
|
|
10
|
-
defaultSurface: palette.
|
|
10
|
+
defaultSurface: palette.white,
|
|
11
11
|
highlightedSurface: palette.violetLight90,
|
|
12
|
-
pressedSurface: palette.
|
|
12
|
+
pressedSurface: palette.violetDark20,
|
|
13
13
|
|
|
14
14
|
decorativePrimary: palette.mauve,
|
|
15
15
|
decorativePrimarySurface: palette.mauveLight80,
|
|
@@ -24,12 +24,12 @@ const globalPalette: GlobalSystemPalette = {
|
|
|
24
24
|
error: palette.pastelRed,
|
|
25
25
|
mutedError: palette.pastelRedLight20,
|
|
26
26
|
errorSurface: palette.linen,
|
|
27
|
-
onErrorSurface: palette.
|
|
27
|
+
onErrorSurface: palette.amaranthaRed,
|
|
28
28
|
|
|
29
29
|
warning: palette.mellowApricot,
|
|
30
30
|
mutedWarning: palette.mellowApricotLight20,
|
|
31
31
|
warningSurface: palette.seashell,
|
|
32
|
-
onWarningSurface: palette.
|
|
32
|
+
onWarningSurface: palette.orangeBrown,
|
|
33
33
|
|
|
34
34
|
success: palette.emerald,
|
|
35
35
|
mutedSuccess: palette.emeraldLight20,
|
|
@@ -39,12 +39,12 @@ const globalPalette: GlobalSystemPalette = {
|
|
|
39
39
|
info: palette.vodka,
|
|
40
40
|
mutedInfo: palette.vodkaLight20,
|
|
41
41
|
infoSurface: palette.aliceBlue,
|
|
42
|
-
onInfoSurface: palette.
|
|
42
|
+
onInfoSurface: palette.gentianFlower,
|
|
43
43
|
|
|
44
44
|
archived: palette.silverChalice,
|
|
45
45
|
mutedArchived: palette.silverChaliceLight20,
|
|
46
|
-
archivedSurface: palette.
|
|
47
|
-
onArchivedSurface: palette.
|
|
46
|
+
archivedSurface: palette.cumberlandFog,
|
|
47
|
+
onArchivedSurface: palette.windsorGrey,
|
|
48
48
|
// End of Updated 21 / Nov / 22
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -9,7 +9,7 @@ const jobsBrandSystemPallete: BrandSystemPalette = {
|
|
|
9
9
|
onSecondary: palette.white,
|
|
10
10
|
defaultSurface: palette.white,
|
|
11
11
|
highlightedSurface: palette.hitPinkLight90,
|
|
12
|
-
pressedSurface: palette.
|
|
12
|
+
pressedSurface: palette.appleDark20,
|
|
13
13
|
|
|
14
14
|
decorativePrimary: palette.hitPink,
|
|
15
15
|
decorativePrimarySurface: palette.hitPinkLight80,
|
|
@@ -9,7 +9,7 @@ const swagBrandSystemPallete: BrandSystemPalette = {
|
|
|
9
9
|
onSecondary: palette.white,
|
|
10
10
|
defaultSurface: palette.greyLight90,
|
|
11
11
|
highlightedSurface: palette.scarletGumLight90,
|
|
12
|
-
pressedSurface: palette.
|
|
12
|
+
pressedSurface: palette.scarletGumDark20,
|
|
13
13
|
|
|
14
14
|
decorativePrimary: palette.white,
|
|
15
15
|
decorativePrimarySurface: palette.maasstrichtBlueLight80,
|
|
@@ -7,9 +7,9 @@ const walletBrandSystemPallete: BrandSystemPalette = {
|
|
|
7
7
|
onPrimary: palette.white,
|
|
8
8
|
secondary: palette.royalBlueDark30,
|
|
9
9
|
onSecondary: palette.white,
|
|
10
|
-
defaultSurface: palette.
|
|
10
|
+
defaultSurface: palette.white,
|
|
11
11
|
highlightedSurface: palette.royalBlueLight90,
|
|
12
|
-
pressedSurface: palette.
|
|
12
|
+
pressedSurface: palette.royalBlueDark20,
|
|
13
13
|
|
|
14
14
|
decorativePrimary: palette.frenchSky,
|
|
15
15
|
decorativePrimarySurface: palette.frenchSkyLight80,
|
|
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
|
|
@@ -43,6 +43,7 @@ export interface CalendarProps {
|
|
|
43
43
|
* Callback when header month is changed, passing this prop will disable onTitlePress.
|
|
44
44
|
*/
|
|
45
45
|
onMonthChange?: (date: Date) => void;
|
|
46
|
+
onToggleMonthPicker?: (visible: boolean) => void;
|
|
46
47
|
/**
|
|
47
48
|
* Label for the confirm button of the month picker, Android only.
|
|
48
49
|
*/
|
|
@@ -52,5 +53,5 @@ export interface CalendarProps {
|
|
|
52
53
|
*/
|
|
53
54
|
monthPickerCancelLabel?: string;
|
|
54
55
|
}
|
|
55
|
-
declare const Calendar: ({ value, visibleDate, onChange, onPreviousPress, onNextPress, onTitlePress, minDate, maxDate, markedDates, testID, onMonthChange, monthPickerConfirmLabel, monthPickerCancelLabel, }: CalendarProps) => JSX.Element;
|
|
56
|
+
declare const Calendar: ({ value, visibleDate, onChange, onPreviousPress, onNextPress, onTitlePress, minDate, maxDate, markedDates, testID, onMonthChange, onToggleMonthPicker, monthPickerConfirmLabel, monthPickerCancelLabel, }: CalendarProps) => JSX.Element;
|
|
56
57
|
export default Calendar;
|
|
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
|
|
@@ -40,7 +40,6 @@ export interface ActionGroupProps {
|
|
|
40
40
|
* Testing id of the component.
|
|
41
41
|
*/
|
|
42
42
|
testID?: string;
|
|
43
|
-
portalName?: string;
|
|
44
43
|
}
|
|
45
44
|
declare const ActionGroup: React.ForwardRefExoticComponent<ActionGroupProps & React.RefAttributes<ActionGroupHandles>>;
|
|
46
45
|
export default ActionGroup;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: import("react").ForwardRefExoticComponent<import("./FAB").FABProps & import("react").RefAttributes<import("./FAB").FABHandles>> & {
|
|
3
3
|
ActionGroup: import("react").ForwardRefExoticComponent<import("./ActionGroup").ActionGroupProps & import("react").RefAttributes<import("./ActionGroup").ActionGroupHandles>>;
|
|
4
|
-
Portal: import("react").MemoExoticComponent<({ name: _providedName, hostName, handleOnMount: _providedHandleOnMount, handleOnUnmount: _providedHandleOnUnmount, handleOnUpdate: _providedHandleOnUpdate, children, }: import("@gorhom/portal/lib/typescript/components/portal/types").PortalProps) => null>;
|
|
5
|
-
PortalHost: import("react").MemoExoticComponent<({ name }: import("@gorhom/portal/lib/typescript/components/portalHost/types").PortalHostProps) => JSX.Element>;
|
|
6
|
-
Provider: import("react").MemoExoticComponent<({ rootHostName, shouldAddRootHost, children, }: import("@gorhom/portal/lib/typescript/components/portalProvider/types").PortalProviderProps) => JSX.Element>;
|
|
7
4
|
};
|
|
8
5
|
export default _default;
|
|
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
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export interface PortalProviderProps {
|
|
4
|
+
rootHostName?: string;
|
|
5
|
+
children: ReactNode | ReactNode[];
|
|
6
|
+
}
|
|
7
|
+
export declare const PortalProvider: React.MemoExoticComponent<({ rootHostName, children, }: PortalProviderProps) => JSX.Element>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import { ActionTypes } from './types';
|
|
4
|
+
export interface PortalType {
|
|
5
|
+
name: string;
|
|
6
|
+
node: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const PortalStateContext: React.Context<Record<string, PortalType[]> | null>;
|
|
9
|
+
export declare const PortalDispatchContext: React.Context<React.Dispatch<ActionTypes> | null>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface PortalProps {
|
|
3
|
+
name?: string;
|
|
4
|
+
hostName?: string;
|
|
5
|
+
children?: ReactNode | ReactNode[];
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("react").NamedExoticComponent<PortalProps> & {
|
|
8
|
+
readonly type: ({ name, hostName, children }: PortalProps) => null;
|
|
9
|
+
} & {
|
|
10
|
+
Provider: import("react").MemoExoticComponent<({ rootHostName, children, }: import("./PortalProvider").PortalProviderProps) => JSX.Element>;
|
|
11
|
+
Host: import("react").MemoExoticComponent<({ name }: import("./PortalHost").PortalHostProps) => JSX.Element>;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ACTIONS } from './constants';
|
|
3
|
+
export interface AddUpdatePortalAction {
|
|
4
|
+
type: ACTIONS;
|
|
5
|
+
hostName: string;
|
|
6
|
+
portalName: string;
|
|
7
|
+
node: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface RemovePortalAction {
|
|
10
|
+
type: ACTIONS;
|
|
11
|
+
hostName: string;
|
|
12
|
+
portalName: string;
|
|
13
|
+
}
|
|
14
|
+
export interface RegisterHostAction {
|
|
15
|
+
type: ACTIONS;
|
|
16
|
+
hostName: string;
|
|
17
|
+
}
|
|
18
|
+
export interface UnregisterHostAction {
|
|
19
|
+
type: ACTIONS;
|
|
20
|
+
hostName: string;
|
|
21
|
+
}
|
|
22
|
+
export type ActionTypes = AddUpdatePortalAction | RemovePortalAction | RegisterHostAction | UnregisterHostAction;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare const usePortal: (hostName?: string) => {
|
|
3
|
+
registerHost: () => void;
|
|
4
|
+
deregisterHost: () => void;
|
|
5
|
+
addPortal: (name: string, node: ReactNode) => void;
|
|
6
|
+
updatePortal: (name: string, node: ReactNode) => void;
|
|
7
|
+
removePortal: (name: string) => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const usePortalState: (hostName: string) => import("./contexts").PortalType[];
|
|
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
|