@hero-design/rn 8.105.3 → 8.105.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +14 -0
- package/es/index.js +48 -20
- package/lib/index.js +48 -20
- package/package.json +1 -1
- package/src/components/Alert/StyledAlert.tsx +3 -2
- package/src/components/AnimatedScroller/AnimatedFAB.tsx +4 -6
- package/src/components/AnimatedScroller/AnimatedScrollable.tsx +4 -4
- package/src/components/AnimatedScroller/FlatListWithFAB.tsx +4 -3
- package/src/components/AnimatedScroller/ScrollViewWithFAB.tsx +4 -3
- package/src/components/AnimatedScroller/SectionListWithFAB.tsx +4 -3
- package/src/components/AnimatedScroller/__tests__/ScrollablesWithFAB.spec.tsx +4 -4
- package/src/components/AppCue/index.tsx +2 -4
- package/src/components/AppCue/utils.ts +1 -1
- package/src/components/Attachment/index.tsx +4 -3
- package/src/components/Avatar/AvatarStack/StyledAvatarStack.tsx +2 -1
- package/src/components/Avatar/AvatarStack/index.tsx +4 -3
- package/src/components/Avatar/StyledAvatar.tsx +1 -1
- package/src/components/Badge/index.tsx +1 -1
- package/src/components/Badge/types.ts +2 -2
- package/src/components/BottomSheet/ScrollView.tsx +4 -5
- package/src/components/BottomSheet/StyledBottomSheet.tsx +1 -2
- package/src/components/BottomSheet/index.tsx +4 -7
- package/src/components/Box/StyledBox.tsx +4 -3
- package/src/components/Box/types.ts +5 -5
- package/src/components/Button/Button.tsx +4 -2
- package/src/components/Calendar/CalendarRange.tsx +1 -1
- package/src/components/Calendar/helpers.ts +1 -1
- package/src/components/Calendar/index.tsx +1 -1
- package/src/components/Calendar/shared/hooks/useCalendarLayout.ts +1 -1
- package/src/components/Carousel/CardCarousel.tsx +2 -4
- package/src/components/Carousel/CarouselItem.tsx +1 -1
- package/src/components/Carousel/StyledCardCarousel.tsx +6 -3
- package/src/components/Carousel/StyledCarousel.tsx +2 -1
- package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +4 -2
- package/src/components/Carousel/__tests__/index.spec.tsx +2 -2
- package/src/components/Carousel/index.tsx +5 -13
- package/src/components/Carousel/types.ts +2 -2
- package/src/components/Chart/ChartSelect/index.tsx +2 -1
- package/src/components/Chart/ColumnChart/ColumnChartContent.tsx +1 -1
- package/src/components/Chart/ColumnChart/StackedSegment.tsx +1 -1
- package/src/components/Chart/ColumnChart/__tests__/index.spec.tsx +2 -1
- package/src/components/Chart/ColumnChart/index.tsx +2 -2
- package/src/components/Chart/Line/Line.tsx +1 -1
- package/src/components/Chart/Line/__tests__/index.spec.tsx +2 -1
- package/src/components/Chart/Line/index.tsx +2 -2
- package/src/components/Chart/shared/ChartFrame.tsx +2 -2
- package/src/components/Chart/shared/ChartHeader.tsx +2 -2
- package/src/components/Chart/shared/EmptyState.tsx +3 -2
- package/src/components/Chart/shared/XAxis.tsx +1 -1
- package/src/components/Chart/shared/XAxisGrid.tsx +1 -1
- package/src/components/Chart/shared/YAxis.tsx +1 -1
- package/src/components/Chart/shared/YAxisGrid.tsx +1 -1
- package/src/components/Chart/shared/__tests__/ChartFrame.spec.tsx +2 -1
- package/src/components/Chart/shared/__tests__/XAXisGrid.spec.tsx +2 -1
- package/src/components/Chart/shared/__tests__/XAxis.spec.tsx +2 -1
- package/src/components/Chart/shared/__tests__/YAxis.spec.tsx +2 -1
- package/src/components/Chart/shared/__tests__/YAxisGrid.spec.tsx +2 -1
- package/src/components/Chart/shared/niceNumbers.ts +1 -1
- package/src/components/Chip/index.tsx +4 -3
- package/src/components/DatePicker/Dialog/AndroidDialog.tsx +3 -4
- package/src/components/DatePicker/Dialog/IOSDialog.tsx +3 -4
- package/src/components/DatePicker/Dialog/__tests__/AndroidDialog.spec.tsx +2 -1
- package/src/components/DatePicker/Dialog/__tests__/IOSDialog.spec.tsx +1 -1
- package/src/components/DatePicker/Dialog.tsx +1 -1
- package/src/components/DatePicker/hooks/useCalculateDate.tsx +1 -1
- package/src/components/DatePicker/hooks/utils.ts +1 -1
- package/src/components/DatePicker/index.internal.tsx +2 -2
- package/src/components/DatePicker/index.tsx +2 -2
- package/src/components/DatePicker/types.ts +1 -1
- package/src/components/FAB/ActionGroup/ActionItem.tsx +1 -1
- package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +2 -1
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/FAB/FAB.tsx +1 -2
- package/src/components/FAB/Pair/__tests__/index.spec.tsx +2 -1
- package/src/components/FAB/Pair/index.tsx +2 -2
- package/src/components/FAB/StyledFAB.tsx +2 -1
- package/src/components/FAB/__tests__/index.spec.tsx +2 -1
- package/src/components/FilterTrigger/StyledFilterTrigger.tsx +1 -1
- package/src/components/FilterTrigger/__tests__/index.spec.tsx +2 -1
- package/src/components/FilterTrigger/index.tsx +1 -1
- package/src/components/FloatingIsland/index.tsx +4 -3
- package/src/components/HeroDesignProvider/index.tsx +3 -2
- package/src/components/List/ListItem.tsx +2 -2
- package/src/components/LocaleProvider/context.ts +1 -1
- package/src/components/LocaleProvider/index.tsx +1 -1
- package/src/components/LocaleProvider/utils.ts +1 -1
- package/src/components/MapPin/Focussed.tsx +1 -1
- package/src/components/MapPin/index.tsx +2 -2
- package/src/components/MapPin/types.ts +2 -2
- package/src/components/Modal/index.tsx +1 -1
- package/src/components/PageControl/index.tsx +2 -1
- package/src/components/PinInput/index.tsx +3 -3
- package/src/components/Portal/PortalHost.tsx +1 -1
- package/src/components/Portal/contexts.ts +3 -2
- package/src/components/Portal/index.tsx +4 -2
- package/src/components/Portal/reducer.ts +1 -1
- package/src/components/Portal/usePortal.ts +2 -1
- package/src/components/Progress/ProgressStep.tsx +1 -1
- package/src/components/Radio/Radio.tsx +1 -1
- package/src/components/Radio/types.ts +2 -2
- package/src/components/Rate/index.tsx +2 -1
- package/src/components/RefreshControl/__tests__/index.spec.tsx +2 -1
- package/src/components/RefreshControl/index.tsx +2 -4
- package/src/components/RichTextEditor/EditorToolbar.tsx +1 -1
- package/src/components/RichTextEditor/RichTextEditor.tsx +2 -2
- package/src/components/RichTextEditor/utils/events.ts +1 -1
- package/src/components/RichTextEditor/utils/rnWebView.ts +1 -1
- package/src/components/Search/SearchOneLine.tsx +2 -2
- package/src/components/Search/SearchSuffixIcon.tsx +3 -3
- package/src/components/Search/SearchTwoLine.tsx +2 -2
- package/src/components/Search/StyledSearch.tsx +2 -1
- package/src/components/Search/utils.tsx +2 -1
- package/src/components/SegmentedControl/SegmentedItem.tsx +3 -2
- package/src/components/SegmentedControl/__tests__/index.spec.tsx +2 -1
- package/src/components/SegmentedControl/index.tsx +1 -1
- package/src/components/Select/BaseOptionList.tsx +2 -1
- package/src/components/Select/MultiSelect/OptionList.tsx +2 -1
- package/src/components/Select/MultiSelect/index.tsx +2 -1
- package/src/components/Select/MultiSelect/utils.ts +1 -1
- package/src/components/Select/SingleSelect/OptionList.tsx +3 -6
- package/src/components/Select/SingleSelect/index.tsx +2 -1
- package/src/components/Select/index.tsx +1 -1
- package/src/components/Select/types.ts +1 -1
- package/src/components/Skeleton/index.tsx +4 -9
- package/src/components/Slider/RangeSlider.tsx +2 -1
- package/src/components/Slider/SingleSlider.tsx +1 -1
- package/src/components/StatusScreens/Empty/index.tsx +6 -3
- package/src/components/StatusScreens/Error/StyledError.tsx +8 -0
- package/src/components/StatusScreens/Error/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/StatusScreens/Error/index.tsx +9 -12
- package/src/components/StatusScreens/StatusIcon/__tests__/index.spec.tsx +2 -1
- package/src/components/StatusScreens/StatusIcon/assets/Add.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Boom.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Build.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Clock.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Confetti.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Connections.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Error.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Info.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/List.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Location.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Lock.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Merge.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/NoResult.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Notifications.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Search.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Star.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Success.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Unlock.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/User.tsx +1 -1
- package/src/components/StatusScreens/Success/StyledSuccess.tsx +14 -0
- package/src/components/StatusScreens/Success/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/StatusScreens/Success/index.tsx +13 -8
- package/src/components/Swipeable/SwipeableAction.tsx +5 -3
- package/src/components/Swipeable/index.tsx +2 -7
- package/src/components/Switch/SelectorSwitch/Option.tsx +2 -1
- package/src/components/Switch/SelectorSwitch/index.tsx +3 -10
- package/src/components/Switch/index.tsx +2 -1
- package/src/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.tsx +2 -8
- package/src/components/Tabs/TabWithBadge.tsx +2 -1
- package/src/components/Tabs/index.tsx +1 -1
- package/src/components/Tabs/useHandlePageScroll.tsx +1 -1
- package/src/components/Tag/index.tsx +2 -1
- package/src/components/TextInput/__tests__/index.spec.tsx +1 -1
- package/src/components/TextInput/index.tsx +4 -8
- package/src/components/TimePicker/index.internal.tsx +2 -2
- package/src/components/TimePicker/index.tsx +1 -1
- package/src/components/TimePicker/types.ts +1 -1
- package/src/components/Toast/StyledToast.tsx +4 -3
- package/src/components/Toolbar/StyledToolbar.tsx +1 -1
- package/src/components/Toolbar/ToolbarItem.tsx +1 -1
- package/src/components/Toolbar/ToolbarMessage.tsx +2 -2
- package/src/components/Toolbar/index.tsx +1 -1
- package/src/components/Typography/Caption/StyledCaption.tsx +2 -1
- package/src/emotion.d.ts +1 -1
- package/src/locales/en_AU.ts +1 -1
- package/src/locales/en_CA.ts +1 -1
- package/src/theme/ThemeSwitcher.tsx +2 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +6 -3
- package/src/theme/components/datePicker.ts +1 -1
- package/src/theme/components/error.ts +3 -2
- package/src/theme/components/success.ts +3 -1
- package/src/theme/components/timePicker.ts +1 -1
- package/src/theme/getTheme.ts +19 -10
- package/src/theme/global/colors/ehJobs.ts +1 -1
- package/src/theme/global/colors/ehWorkDark.ts +1 -1
- package/src/theme/global/colors/swagLight.ts +1 -1
- package/src/theme/global/colors/swagLightJobs.ts +1 -1
- package/src/theme/global/colors/swagSystemPalette.ts +1 -1
- package/src/theme/global/shadows/index.ts +1 -1
- package/src/types.ts +26 -19
- package/stats/8.105.4/rn-stats.html +4844 -0
- package/types/components/Alert/StyledAlert.d.ts +2 -2
- package/types/components/AnimatedScroller/AnimatedFAB.d.ts +3 -3
- package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +3 -3
- package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +3 -3
- package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +3 -3
- package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +3 -3
- package/types/components/AppCue/index.d.ts +2 -2
- package/types/components/AppCue/utils.d.ts +1 -1
- package/types/components/Attachment/index.d.ts +3 -3
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +1 -1
- package/types/components/Avatar/AvatarStack/index.d.ts +4 -3
- package/types/components/Avatar/StyledAvatar.d.ts +1 -1
- package/types/components/Badge/index.d.ts +1 -1
- package/types/components/Badge/types.d.ts +2 -2
- package/types/components/BottomSheet/ScrollView.d.ts +2 -1
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +2 -2
- package/types/components/BottomSheet/index.d.ts +1 -2
- package/types/components/Box/StyledBox.d.ts +2 -2
- package/types/components/Box/types.d.ts +5 -5
- package/types/components/Button/Button.d.ts +1 -1
- package/types/components/Calendar/CalendarRange.d.ts +1 -1
- package/types/components/Calendar/helpers.d.ts +1 -1
- package/types/components/Calendar/index.d.ts +1 -1
- package/types/components/Calendar/shared/hooks/useCalendarLayout.d.ts +1 -1
- package/types/components/Carousel/CardCarousel.d.ts +1 -1
- package/types/components/Carousel/CarouselItem.d.ts +1 -1
- package/types/components/Carousel/StyledCardCarousel.d.ts +4 -3
- package/types/components/Carousel/StyledCarousel.d.ts +2 -1
- package/types/components/Carousel/index.d.ts +4 -3
- package/types/components/Carousel/types.d.ts +2 -2
- package/types/components/Chart/ChartSelect/index.d.ts +1 -1
- package/types/components/Chart/ColumnChart/ColumnChartContent.d.ts +1 -1
- package/types/components/Chart/ColumnChart/StackedSegment.d.ts +1 -1
- package/types/components/Chart/ColumnChart/index.d.ts +2 -2
- package/types/components/Chart/Line/Line.d.ts +1 -1
- package/types/components/Chart/Line/index.d.ts +2 -2
- package/types/components/Chart/shared/ChartFrame.d.ts +1 -1
- package/types/components/Chart/shared/ChartHeader.d.ts +2 -2
- package/types/components/Chart/shared/EmptyState.d.ts +1 -1
- package/types/components/Chart/shared/XAxis.d.ts +1 -1
- package/types/components/Chart/shared/XAxisGrid.d.ts +1 -1
- package/types/components/Chart/shared/YAxis.d.ts +1 -1
- package/types/components/Chart/shared/YAxisGrid.d.ts +1 -1
- package/types/components/Chart/shared/niceNumbers.d.ts +1 -1
- package/types/components/Chip/index.d.ts +4 -3
- package/types/components/DatePicker/Dialog/AndroidDialog.d.ts +1 -1
- package/types/components/DatePicker/Dialog/IOSDialog.d.ts +1 -1
- package/types/components/DatePicker/Dialog.d.ts +1 -1
- package/types/components/DatePicker/hooks/useCalculateDate.d.ts +1 -1
- package/types/components/DatePicker/hooks/utils.d.ts +1 -1
- package/types/components/DatePicker/index.d.ts +2 -2
- package/types/components/DatePicker/index.internal.d.ts +2 -2
- package/types/components/DatePicker/types.d.ts +1 -1
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +1 -1
- package/types/components/FAB/FAB.d.ts +1 -1
- package/types/components/FAB/Pair/index.d.ts +2 -2
- package/types/components/FAB/StyledFAB.d.ts +2 -1
- package/types/components/FilterTrigger/index.d.ts +1 -1
- package/types/components/FloatingIsland/index.d.ts +4 -3
- package/types/components/HeroDesignProvider/index.d.ts +2 -2
- package/types/components/List/ListItem.d.ts +2 -2
- package/types/components/LocaleProvider/context.d.ts +1 -1
- package/types/components/LocaleProvider/index.d.ts +1 -1
- package/types/components/LocaleProvider/utils.d.ts +1 -1
- package/types/components/MapPin/Focussed.d.ts +1 -1
- package/types/components/MapPin/index.d.ts +1 -1
- package/types/components/MapPin/types.d.ts +2 -2
- package/types/components/Modal/index.d.ts +2 -1
- package/types/components/PageControl/index.d.ts +1 -1
- package/types/components/PinInput/index.d.ts +3 -3
- package/types/components/Portal/contexts.d.ts +2 -2
- package/types/components/Portal/index.d.ts +3 -2
- package/types/components/Portal/reducer.d.ts +1 -1
- package/types/components/Portal/usePortal.d.ts +1 -1
- package/types/components/Progress/ProgressStep.d.ts +1 -1
- package/types/components/Radio/Radio.d.ts +1 -1
- package/types/components/Radio/types.d.ts +2 -2
- package/types/components/Rate/index.d.ts +1 -1
- package/types/components/RefreshControl/index.d.ts +1 -1
- package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
- package/types/components/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/types/components/RichTextEditor/utils/events.d.ts +1 -1
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +1 -1
- package/types/components/Search/SearchOneLine.d.ts +2 -2
- package/types/components/Search/SearchSuffixIcon.d.ts +3 -3
- package/types/components/Search/SearchTwoLine.d.ts +2 -2
- package/types/components/Search/utils.d.ts +1 -1
- package/types/components/SegmentedControl/index.d.ts +1 -1
- package/types/components/Select/BaseOptionList.d.ts +1 -1
- package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
- package/types/components/Select/MultiSelect/index.d.ts +1 -1
- package/types/components/Select/MultiSelect/utils.d.ts +1 -1
- package/types/components/Select/SingleSelect/OptionList.d.ts +2 -2
- package/types/components/Select/SingleSelect/index.d.ts +1 -1
- package/types/components/Select/index.d.ts +1 -1
- package/types/components/Select/types.d.ts +1 -1
- package/types/components/Skeleton/index.d.ts +1 -1
- package/types/components/Slider/RangeSlider.d.ts +1 -1
- package/types/components/Slider/SingleSlider.d.ts +1 -1
- package/types/components/StatusScreens/Empty/index.d.ts +5 -3
- package/types/components/StatusScreens/Error/StyledError.d.ts +7 -1
- package/types/components/StatusScreens/Error/index.d.ts +5 -4
- package/types/components/StatusScreens/StatusIcon/assets/Add.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Boom.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Build.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Clock.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Confetti.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Connections.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Error.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Info.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/List.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Location.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Lock.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Merge.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/NoResult.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Notifications.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Search.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Star.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Success.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Unlock.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/User.d.ts +1 -1
- package/types/components/StatusScreens/Success/StyledSuccess.d.ts +11 -1
- package/types/components/StatusScreens/Success/index.d.ts +6 -5
- package/types/components/Swipeable/SwipeableAction.d.ts +4 -3
- package/types/components/Swipeable/index.d.ts +2 -1
- package/types/components/Switch/SelectorSwitch/Option.d.ts +1 -1
- package/types/components/Switch/SelectorSwitch/index.d.ts +2 -2
- package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +1 -1
- package/types/components/Tabs/TabWithBadge.d.ts +2 -1
- package/types/components/Tabs/index.d.ts +1 -1
- package/types/components/Tabs/useHandlePageScroll.d.ts +1 -1
- package/types/components/Tag/index.d.ts +1 -1
- package/types/components/TextInput/index.d.ts +2 -3
- package/types/components/TimePicker/index.d.ts +1 -1
- package/types/components/TimePicker/index.internal.d.ts +2 -2
- package/types/components/TimePicker/types.d.ts +1 -1
- package/types/components/Toast/StyledToast.d.ts +3 -3
- package/types/components/Toolbar/StyledToolbar.d.ts +1 -1
- package/types/components/Toolbar/ToolbarItem.d.ts +1 -1
- package/types/components/Toolbar/ToolbarMessage.d.ts +2 -3
- package/types/components/Toolbar/index.d.ts +1 -1
- package/types/components/Typography/Caption/StyledCaption.d.ts +1 -1
- package/types/locales/en_AU.d.ts +1 -1
- package/types/locales/en_CA.d.ts +1 -1
- package/types/theme/ThemeSwitcher.d.ts +2 -1
- package/types/theme/components/datePicker.d.ts +1 -1
- package/types/theme/components/error.d.ts +1 -0
- package/types/theme/components/success.d.ts +2 -0
- package/types/theme/components/timePicker.d.ts +1 -1
- package/types/theme/getTheme.d.ts +10 -10
- package/types/theme/global/colors/ehJobs.d.ts +1 -1
- package/types/theme/global/colors/ehWorkDark.d.ts +1 -1
- package/types/theme/global/colors/swagLight.d.ts +1 -1
- package/types/theme/global/colors/swagLightJobs.d.ts +1 -1
- package/types/theme/global/colors/swagSystemPalette.d.ts +1 -1
- package/types/theme/global/shadows/index.d.ts +1 -1
- package/types/types.d.ts +19 -19
|
@@ -42,9 +42,9 @@ exports[`Error renders error screen with custom image element correctly 1`] = `
|
|
|
42
42
|
[
|
|
43
43
|
{
|
|
44
44
|
"alignItems": "center",
|
|
45
|
-
"height":
|
|
45
|
+
"height": 72,
|
|
46
46
|
"marginBottom": 24,
|
|
47
|
-
"width":
|
|
47
|
+
"width": 72,
|
|
48
48
|
},
|
|
49
49
|
undefined,
|
|
50
50
|
]
|
|
@@ -189,9 +189,9 @@ exports[`Error renders error screen with icon correctly 1`] = `
|
|
|
189
189
|
[
|
|
190
190
|
{
|
|
191
191
|
"alignItems": "center",
|
|
192
|
-
"height":
|
|
192
|
+
"height": 72,
|
|
193
193
|
"marginBottom": 24,
|
|
194
|
-
"width":
|
|
194
|
+
"width": 72,
|
|
195
195
|
},
|
|
196
196
|
undefined,
|
|
197
197
|
]
|
|
@@ -489,9 +489,9 @@ exports[`Error renders error screen with image correctly 1`] = `
|
|
|
489
489
|
[
|
|
490
490
|
{
|
|
491
491
|
"alignItems": "center",
|
|
492
|
-
"height":
|
|
492
|
+
"height": 72,
|
|
493
493
|
"marginBottom": 24,
|
|
494
|
-
"width":
|
|
494
|
+
"width": 72,
|
|
495
495
|
},
|
|
496
496
|
undefined,
|
|
497
497
|
]
|
|
@@ -512,10 +512,10 @@ exports[`Error renders error screen with image correctly 1`] = `
|
|
|
512
512
|
},
|
|
513
513
|
[
|
|
514
514
|
{
|
|
515
|
-
"height":
|
|
515
|
+
"height": 72,
|
|
516
516
|
"marginBottom": 24,
|
|
517
517
|
"resizeMode": "contain",
|
|
518
|
-
"width":
|
|
518
|
+
"width": 72,
|
|
519
519
|
},
|
|
520
520
|
undefined,
|
|
521
521
|
],
|
|
@@ -676,9 +676,9 @@ exports[`Error renders full screen error page correctly 1`] = `
|
|
|
676
676
|
[
|
|
677
677
|
{
|
|
678
678
|
"alignItems": "center",
|
|
679
|
-
"height":
|
|
679
|
+
"height": 72,
|
|
680
680
|
"marginBottom": 24,
|
|
681
|
-
"width":
|
|
681
|
+
"width": 72,
|
|
682
682
|
},
|
|
683
683
|
undefined,
|
|
684
684
|
]
|
|
@@ -699,10 +699,10 @@ exports[`Error renders full screen error page correctly 1`] = `
|
|
|
699
699
|
},
|
|
700
700
|
[
|
|
701
701
|
{
|
|
702
|
-
"height":
|
|
702
|
+
"height": 72,
|
|
703
703
|
"marginBottom": 24,
|
|
704
704
|
"resizeMode": "contain",
|
|
705
|
-
"width":
|
|
705
|
+
"width": 72,
|
|
706
706
|
},
|
|
707
707
|
undefined,
|
|
708
708
|
],
|
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
isValidElement,
|
|
4
|
-
useCallback,
|
|
5
|
-
useEffect,
|
|
6
|
-
useState,
|
|
7
|
-
} from 'react';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React, { isValidElement, useCallback, useEffect, useState } from 'react';
|
|
8
3
|
import type {
|
|
9
4
|
ImageSourcePropType,
|
|
10
5
|
ViewProps,
|
|
11
6
|
ImageProps as RNImageProps,
|
|
12
7
|
} from 'react-native';
|
|
8
|
+
import type { ErrorVariant } from './StyledError';
|
|
13
9
|
import {
|
|
14
|
-
ErrorVariant,
|
|
15
10
|
StyledErrorButtonContainer,
|
|
16
11
|
StyledErrorButtonPrimary,
|
|
17
12
|
StyledErrorButtonSecondary,
|
|
18
13
|
StyledErrorContainer,
|
|
19
14
|
StyledErrorContent,
|
|
20
15
|
StyledErrorDescription,
|
|
16
|
+
StyledErrorIconContainer,
|
|
21
17
|
StyledErrorImage,
|
|
22
18
|
StyledErrorImageContainer,
|
|
23
19
|
StyledErrorModal,
|
|
24
20
|
StyledErrorTitle,
|
|
25
21
|
} from './StyledError';
|
|
26
22
|
import { useDeprecation } from '../../../utils/hooks';
|
|
27
|
-
import { ImageProps } from '../../Image/index';
|
|
23
|
+
import type { ImageProps } from '../../Image/index';
|
|
28
24
|
import StatusIcon from '../StatusIcon';
|
|
29
25
|
import type { StatusIconName } from '../StatusIcon';
|
|
30
26
|
|
|
@@ -49,6 +45,7 @@ interface ErrorProps extends ViewProps {
|
|
|
49
45
|
description?: string;
|
|
50
46
|
/**
|
|
51
47
|
* Image of the error
|
|
48
|
+
* @deprecated The `image` prop is deprecated and will be removed in the next major version. Use the `icon` prop instead.
|
|
52
49
|
*/
|
|
53
50
|
image?:
|
|
54
51
|
| ReactElement<ImageProps | RNImageProps>
|
|
@@ -75,7 +72,7 @@ interface ErrorProps extends ViewProps {
|
|
|
75
72
|
*/
|
|
76
73
|
onSecondaryCtaPress?: () => void;
|
|
77
74
|
/**
|
|
78
|
-
* Status icon to be displayed, this will replace the image prop.
|
|
75
|
+
* Status icon to be displayed, this will replace the deprecated image prop.
|
|
79
76
|
*/
|
|
80
77
|
icon?: StatusIconName;
|
|
81
78
|
}
|
|
@@ -111,9 +108,9 @@ const renderImageOrIcon = ({
|
|
|
111
108
|
}) => {
|
|
112
109
|
if (icon) {
|
|
113
110
|
return (
|
|
114
|
-
<
|
|
111
|
+
<StyledErrorIconContainer>
|
|
115
112
|
<StatusIcon icon={icon} testID="error-icon" />
|
|
116
|
-
</
|
|
113
|
+
</StyledErrorIconContainer>
|
|
117
114
|
);
|
|
118
115
|
}
|
|
119
116
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Svg, { Path, Rect, ClipPath, Defs, G } from 'react-native-svg';
|
|
3
|
-
import { StatusSvgProps } from '../types';
|
|
3
|
+
import type { StatusSvgProps } from '../types';
|
|
4
4
|
|
|
5
5
|
const Confetti = ({ stroke, fill, testID }: StatusSvgProps) => {
|
|
6
6
|
return (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Svg, { G, Path, Defs, ClipPath } from 'react-native-svg';
|
|
3
|
-
import { StatusSvgProps } from '../types';
|
|
3
|
+
import type { StatusSvgProps } from '../types';
|
|
4
4
|
|
|
5
5
|
const NoResult = ({ stroke, fill, testID }: StatusSvgProps) => {
|
|
6
6
|
return (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Svg, { ClipPath, Defs, Path, Rect } from 'react-native-svg';
|
|
3
|
-
import { StatusSvgProps } from '../types';
|
|
3
|
+
import type { StatusSvgProps } from '../types';
|
|
4
4
|
|
|
5
5
|
const Success = ({ stroke, fill, testID }: StatusSvgProps) => {
|
|
6
6
|
return (
|
|
@@ -42,6 +42,13 @@ const StyledSuccessImageContainer = styled(View)(({ theme }) => ({
|
|
|
42
42
|
alignItems: 'center',
|
|
43
43
|
}));
|
|
44
44
|
|
|
45
|
+
const StyledSuccessIconContainer = styled(View)(({ theme }) => ({
|
|
46
|
+
marginBottom: theme.__hd__.success.space.imageMarginBottom,
|
|
47
|
+
width: theme.__hd__.success.sizes.icon,
|
|
48
|
+
height: theme.__hd__.success.sizes.icon,
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
}));
|
|
51
|
+
|
|
45
52
|
const StyledSuccessTitle = styled(Typography.Title)(({ theme }) => ({
|
|
46
53
|
textAlign: 'center',
|
|
47
54
|
marginBottom: theme.__hd__.success.space.titleMarginBottom,
|
|
@@ -66,6 +73,11 @@ const StyledSuccessButtonPrimary = styled(Button)(({ theme }) => ({
|
|
|
66
73
|
padding: theme.__hd__.success.space.button.padding,
|
|
67
74
|
}));
|
|
68
75
|
|
|
76
|
+
const StyledSuccessButtonSecondary = styled(Button)(({ theme }) => ({
|
|
77
|
+
padding: theme.__hd__.success.space.button.padding,
|
|
78
|
+
marginTop: theme.__hd__.success.space.button.secondaryCTAMarginTop,
|
|
79
|
+
}));
|
|
80
|
+
|
|
69
81
|
const StyledSuccessModal = styled(Modal)({
|
|
70
82
|
height: '100%',
|
|
71
83
|
width: '100%',
|
|
@@ -77,9 +89,11 @@ export {
|
|
|
77
89
|
StyledSuccessContainer,
|
|
78
90
|
StyledSuccessContent,
|
|
79
91
|
StyledSuccessImageContainer,
|
|
92
|
+
StyledSuccessIconContainer,
|
|
80
93
|
StyledSuccessTitle,
|
|
81
94
|
StyledSuccessDescription,
|
|
82
95
|
StyledSuccessButtonContainer,
|
|
83
96
|
StyledSuccessButtonPrimary,
|
|
97
|
+
StyledSuccessButtonSecondary,
|
|
84
98
|
StyledSuccessModal,
|
|
85
99
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React, { isValidElement } from 'react';
|
|
2
3
|
import type {
|
|
3
4
|
ViewProps,
|
|
4
5
|
ImageSourcePropType,
|
|
5
6
|
ImageProps as RNImageProps,
|
|
6
7
|
} from 'react-native';
|
|
8
|
+
import type { SuccessVariant } from './StyledSuccess';
|
|
7
9
|
import {
|
|
8
|
-
SuccessVariant,
|
|
9
10
|
StyledSuccessImage,
|
|
10
11
|
StyledSuccessContainer,
|
|
11
12
|
StyledSuccessContent,
|
|
@@ -15,14 +16,18 @@ import {
|
|
|
15
16
|
StyledSuccessButtonContainer,
|
|
16
17
|
StyledSuccessButtonPrimary,
|
|
17
18
|
StyledSuccessModal,
|
|
19
|
+
StyledSuccessIconContainer,
|
|
20
|
+
StyledSuccessButtonSecondary,
|
|
18
21
|
} from './StyledSuccess';
|
|
19
|
-
import { ImageProps } from '../../Image';
|
|
22
|
+
import type { ImageProps } from '../../Image';
|
|
20
23
|
import { noop } from '../../../utils/functions';
|
|
21
|
-
import
|
|
24
|
+
import type { StatusIconName } from '../StatusIcon';
|
|
25
|
+
import StatusIcon from '../StatusIcon';
|
|
22
26
|
|
|
23
27
|
export interface SuccessProps extends ViewProps {
|
|
24
28
|
/**
|
|
25
29
|
* Image to be displayed.
|
|
30
|
+
* @deprecated The `image` prop is deprecated and will be removed in the next major version. Use the `icon` prop instead.
|
|
26
31
|
*/
|
|
27
32
|
image?:
|
|
28
33
|
| ReactElement<ImageProps | RNImageProps>
|
|
@@ -61,7 +66,7 @@ export interface SuccessProps extends ViewProps {
|
|
|
61
66
|
*/
|
|
62
67
|
testID?: string;
|
|
63
68
|
/**
|
|
64
|
-
* Status icon to be displayed, this will replace the image prop.
|
|
69
|
+
* Status icon to be displayed, this will replace the deprecated image prop.
|
|
65
70
|
*/
|
|
66
71
|
icon?: StatusIconName;
|
|
67
72
|
}
|
|
@@ -95,9 +100,9 @@ const renderImageOrIcon = ({
|
|
|
95
100
|
}) => {
|
|
96
101
|
if (icon) {
|
|
97
102
|
return (
|
|
98
|
-
<
|
|
103
|
+
<StyledSuccessIconContainer>
|
|
99
104
|
<StatusIcon icon={icon} testID="success-icon" />
|
|
100
|
-
</
|
|
105
|
+
</StyledSuccessIconContainer>
|
|
101
106
|
);
|
|
102
107
|
}
|
|
103
108
|
|
|
@@ -149,7 +154,7 @@ const SuccessPage = ({
|
|
|
149
154
|
<StyledSuccessButtonContainer>
|
|
150
155
|
<StyledSuccessButtonPrimary text={ctaText} onPress={onCtaPress} />
|
|
151
156
|
{!!showSecondaryButton && (
|
|
152
|
-
<
|
|
157
|
+
<StyledSuccessButtonSecondary
|
|
153
158
|
variant="text"
|
|
154
159
|
text={secondaryCtaText}
|
|
155
160
|
onPress={onSecondaryCtaPress}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
import type { ActionIntent } from './StyledSwipeable';
|
|
5
|
+
import { StyledRectButton } from './StyledSwipeable';
|
|
4
6
|
|
|
5
7
|
export interface SwipeableActionProps {
|
|
6
8
|
/**
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
ReactNode,
|
|
4
|
-
useCallback,
|
|
5
|
-
useEffect,
|
|
6
|
-
useRef,
|
|
7
|
-
} from 'react';
|
|
1
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import React, { useCallback, useEffect, useRef } from 'react';
|
|
8
3
|
import { Animated, useWindowDimensions } from 'react-native';
|
|
9
4
|
import {
|
|
10
5
|
GestureHandlerRootView,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import React, { useEffect, useRef } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import type { LayoutChangeEvent } from 'react-native';
|
|
4
|
+
import { Animated, Easing, Platform } from 'react-native';
|
|
4
5
|
import type { BadgeConfigType, SwitchOptionType } from '.';
|
|
5
6
|
import { useTheme } from '../../../theme';
|
|
6
7
|
import Badge from '../../Badge';
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
useEffect,
|
|
5
|
-
useRef,
|
|
6
|
-
useState,
|
|
7
|
-
} from 'react';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
+
import type { LayoutChangeEvent, StyleProp, ViewStyle } from 'react-native';
|
|
8
4
|
import {
|
|
9
5
|
Animated,
|
|
10
6
|
Easing,
|
|
11
|
-
LayoutChangeEvent,
|
|
12
7
|
Platform,
|
|
13
|
-
StyleProp,
|
|
14
8
|
TouchableWithoutFeedback,
|
|
15
|
-
ViewStyle,
|
|
16
9
|
} from 'react-native';
|
|
17
10
|
import type { IconName } from '../../Icon';
|
|
18
11
|
import Option from './Option';
|
|
@@ -6,7 +6,8 @@ import { Animated, Easing, TouchableWithoutFeedback } from 'react-native';
|
|
|
6
6
|
import type { ReactElement } from 'react';
|
|
7
7
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
8
8
|
import SelectorSwitch from './SelectorSwitch';
|
|
9
|
-
import {
|
|
9
|
+
import type { Variant } from './StyledSwitch';
|
|
10
|
+
import { StyledKnot, StyledWrapper } from './StyledSwitch';
|
|
10
11
|
|
|
11
12
|
export interface SwitchProps {
|
|
12
13
|
/**
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { useTheme } from '@emotion/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
Platform,
|
|
6
|
-
StyleProp,
|
|
7
|
-
TouchableWithoutFeedback,
|
|
8
|
-
ViewProps,
|
|
9
|
-
ViewStyle,
|
|
10
|
-
} from 'react-native';
|
|
3
|
+
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
4
|
+
import { FlatList, Platform, TouchableWithoutFeedback } from 'react-native';
|
|
11
5
|
import type { ItemType, TabType } from '..';
|
|
12
6
|
import Icon from '../../Icon';
|
|
13
7
|
import { isHeroIcon } from '../../Icon/utils';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useTheme } from '@emotion/react';
|
|
2
|
-
import
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
import { View } from 'react-native';
|
|
4
5
|
import Badge from '../Badge';
|
|
5
6
|
import { StyledBadgeWrapper } from './StyledTabs';
|
|
@@ -6,7 +6,7 @@ import { Animated, TouchableWithoutFeedback, View } from 'react-native';
|
|
|
6
6
|
import type { PagerViewOnPageScrollEventData } from 'react-native-pager-view';
|
|
7
7
|
import PagerView from 'react-native-pager-view';
|
|
8
8
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
9
|
-
import { IconName } from '../Icon';
|
|
9
|
+
import type { IconName } from '../Icon';
|
|
10
10
|
import Typography from '../Typography';
|
|
11
11
|
import ActiveTabIndicator from './ActiveTabIndicator';
|
|
12
12
|
import SceneView from './SceneView';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
4
|
import { StyledText, StyledView } from './StyledTag';
|
|
4
5
|
import { useDeprecation } from '../../utils/hooks';
|
|
@@ -4,6 +4,7 @@ import { TextInput as RNTextInput } from 'react-native';
|
|
|
4
4
|
import { theme } from '../../..';
|
|
5
5
|
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
6
6
|
import Icon from '../../Icon';
|
|
7
|
+
import type { TextInputHandles } from '../index';
|
|
7
8
|
import TextInput, {
|
|
8
9
|
getState,
|
|
9
10
|
renderErrorOrHelpText,
|
|
@@ -11,7 +12,6 @@ import TextInput, {
|
|
|
11
12
|
renderMaxLengthMessage,
|
|
12
13
|
renderPrefix,
|
|
13
14
|
renderSuffix,
|
|
14
|
-
TextInputHandles,
|
|
15
15
|
} from '../index';
|
|
16
16
|
|
|
17
17
|
describe('getState', () => {
|
|
@@ -5,13 +5,7 @@ import React, {
|
|
|
5
5
|
useCallback,
|
|
6
6
|
useEffect,
|
|
7
7
|
} from 'react';
|
|
8
|
-
import {
|
|
9
|
-
StyleSheet,
|
|
10
|
-
TextInput as RNTextInput,
|
|
11
|
-
Animated,
|
|
12
|
-
Easing,
|
|
13
|
-
View,
|
|
14
|
-
} from 'react-native';
|
|
8
|
+
import { StyleSheet, Animated, Easing, View } from 'react-native';
|
|
15
9
|
import type {
|
|
16
10
|
TextInputProps as RNTextInputProps,
|
|
17
11
|
StyleProp,
|
|
@@ -20,6 +14,7 @@ import type {
|
|
|
20
14
|
LayoutChangeEvent,
|
|
21
15
|
NativeSyntheticEvent,
|
|
22
16
|
TextInputFocusEventData,
|
|
17
|
+
TextInput as RNTextInput,
|
|
23
18
|
} from 'react-native';
|
|
24
19
|
import {
|
|
25
20
|
StyledTextInputContainer,
|
|
@@ -38,7 +33,8 @@ import {
|
|
|
38
33
|
StyledHelperText,
|
|
39
34
|
} from './StyledTextInput';
|
|
40
35
|
import Icon from '../Icon';
|
|
41
|
-
import { Theme
|
|
36
|
+
import type { Theme } from '../../theme';
|
|
37
|
+
import { useTheme } from '../../theme';
|
|
42
38
|
import type { State } from './StyledTextInput';
|
|
43
39
|
import type { IconName } from '../Icon';
|
|
44
40
|
import { omit, pick } from '../../utils/helpers';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { InternalTimePickerProps } from './types';
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { InternalTimePickerProps } from './types';
|
|
3
3
|
import TimePicker from './TimePicker';
|
|
4
4
|
|
|
5
5
|
const InternalTimePicker =
|