@hero-design/rn 8.105.4-alpha.0 → 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 +9 -3
- 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
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(node:
|
|
1
|
+
(node:3308) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
|
|
2
2
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
3
3
|
[36m
|
|
4
4
|
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
@@ -15,9 +15,9 @@ node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/sr
|
|
|
15
15
|
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~[0m
|
|
16
16
|
[39m
|
|
17
17
|
[1m[33m(!) [plugin node-resolve] preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.[39m[22m
|
|
18
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [1m1m
|
|
18
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m1m 10.3s[22m[39m
|
|
19
19
|
[36m
|
|
20
20
|
[1m/home/runner/work/hero-design/hero-design/packages/rn/src/locales/en_AU.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/en_CA.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/index.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/types.ts[22m → [1m., .[22m...[39m
|
|
21
21
|
[1m[33m(!) Generated empty chunks[39m[22m
|
|
22
22
|
"locales/types" and "locales/types"
|
|
23
|
-
[32mcreated [1m., .[22m in [
|
|
23
|
+
[32mcreated [1m., .[22m in [1m22s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
-
## 8.105.4
|
|
3
|
+
## 8.105.4
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- [#
|
|
7
|
+
- [#4161](https://github.com/Thinkei/hero-design/pull/4161) [`627837da7838e5a3295dc4dece3de83cbcc19c4b`](https://github.com/Thinkei/hero-design/commit/627837da7838e5a3295dc4dece3de83cbcc19c4b) Thanks [@ttkien](https://github.com/ttkien)! - [Empty]
|
|
8
8
|
|
|
9
|
-
-
|
|
9
|
+
- deprecate variant, image
|
|
10
|
+
|
|
11
|
+
[Success][error]
|
|
12
|
+
|
|
13
|
+
- deprecate image
|
|
14
|
+
- reduce icon size
|
|
15
|
+
- increase Primary Buttons margin from medium to large
|
|
10
16
|
|
|
11
17
|
## 8.105.3
|
|
12
18
|
|
package/es/index.js
CHANGED
|
@@ -6138,14 +6138,15 @@ var getErrorTheme = function getErrorTheme(theme) {
|
|
|
6138
6138
|
imageMarginBottom: theme.space.large,
|
|
6139
6139
|
wrapperPadding: theme.space.large,
|
|
6140
6140
|
button: {
|
|
6141
|
-
wrapperHorizontalPadding: theme.space.
|
|
6141
|
+
wrapperHorizontalPadding: theme.space.large,
|
|
6142
6142
|
wrapperVerticalPadding: theme.space.xxxlarge,
|
|
6143
6143
|
margin: theme.space.medium,
|
|
6144
6144
|
padding: theme.space.medium
|
|
6145
6145
|
}
|
|
6146
6146
|
};
|
|
6147
6147
|
var sizes = {
|
|
6148
|
-
image: theme.sizes['
|
|
6148
|
+
image: theme.sizes['6xlarge'],
|
|
6149
|
+
icon: theme.sizes['6xlarge']
|
|
6149
6150
|
};
|
|
6150
6151
|
var colors = {
|
|
6151
6152
|
title: theme.colors.onDefaultGlobalSurface,
|
|
@@ -6663,14 +6664,16 @@ var getSuccessTheme = function getSuccessTheme(theme) {
|
|
|
6663
6664
|
imageMarginBottom: theme.space.xlarge,
|
|
6664
6665
|
wrapperPadding: theme.space.large,
|
|
6665
6666
|
button: {
|
|
6666
|
-
wrapperHorizontalPadding: theme.space.
|
|
6667
|
+
wrapperHorizontalPadding: theme.space.large,
|
|
6667
6668
|
wrapperVerticalPadding: theme.space.xxxlarge,
|
|
6668
6669
|
margin: theme.space.medium,
|
|
6669
|
-
padding: theme.space.medium
|
|
6670
|
+
padding: theme.space.medium,
|
|
6671
|
+
secondaryCTAMarginTop: theme.space.medium
|
|
6670
6672
|
}
|
|
6671
6673
|
};
|
|
6672
6674
|
var sizes = {
|
|
6673
|
-
image: theme.sizes['19xlarge']
|
|
6675
|
+
image: theme.sizes['19xlarge'],
|
|
6676
|
+
icon: theme.sizes['6xlarge']
|
|
6674
6677
|
};
|
|
6675
6678
|
var colors = {
|
|
6676
6679
|
title: theme.colors.onDefaultGlobalSurface,
|
|
@@ -22600,8 +22603,17 @@ var StyledErrorImageContainer = index$b(View)(function (_ref6) {
|
|
|
22600
22603
|
alignItems: 'center'
|
|
22601
22604
|
};
|
|
22602
22605
|
});
|
|
22603
|
-
var
|
|
22606
|
+
var StyledErrorIconContainer = index$b(View)(function (_ref7) {
|
|
22604
22607
|
var theme = _ref7.theme;
|
|
22608
|
+
return {
|
|
22609
|
+
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
22610
|
+
width: theme.__hd__.error.sizes.icon,
|
|
22611
|
+
height: theme.__hd__.error.sizes.icon,
|
|
22612
|
+
alignItems: 'center'
|
|
22613
|
+
};
|
|
22614
|
+
});
|
|
22615
|
+
var StyledErrorImage = index$b(Image)(function (_ref8) {
|
|
22616
|
+
var theme = _ref8.theme;
|
|
22605
22617
|
return {
|
|
22606
22618
|
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
22607
22619
|
width: theme.__hd__.error.sizes.image,
|
|
@@ -22609,16 +22621,16 @@ var StyledErrorImage = index$b(Image)(function (_ref7) {
|
|
|
22609
22621
|
resizeMode: 'contain'
|
|
22610
22622
|
};
|
|
22611
22623
|
});
|
|
22612
|
-
var StyledErrorTitle = index$b(Typography.Title)(function (
|
|
22613
|
-
var theme =
|
|
22624
|
+
var StyledErrorTitle = index$b(Typography.Title)(function (_ref9) {
|
|
22625
|
+
var theme = _ref9.theme;
|
|
22614
22626
|
return {
|
|
22615
22627
|
textAlign: 'center',
|
|
22616
22628
|
marginBottom: theme.__hd__.error.space.titleMarginBottom,
|
|
22617
22629
|
color: theme.__hd__.error.colors.title
|
|
22618
22630
|
};
|
|
22619
22631
|
});
|
|
22620
|
-
var StyledErrorDescription = index$b(Typography.Body)(function (
|
|
22621
|
-
var theme =
|
|
22632
|
+
var StyledErrorDescription = index$b(Typography.Body)(function (_ref10) {
|
|
22633
|
+
var theme = _ref10.theme;
|
|
22622
22634
|
return {
|
|
22623
22635
|
textAlign: 'center',
|
|
22624
22636
|
color: theme.__hd__.error.colors.description
|
|
@@ -22644,7 +22656,7 @@ var renderImageOrIcon$1 = function renderImageOrIcon(_ref) {
|
|
|
22644
22656
|
var image = _ref.image,
|
|
22645
22657
|
icon = _ref.icon;
|
|
22646
22658
|
if (icon) {
|
|
22647
|
-
return /*#__PURE__*/React__default.createElement(
|
|
22659
|
+
return /*#__PURE__*/React__default.createElement(StyledErrorIconContainer, null, /*#__PURE__*/React__default.createElement(StatusIcon, {
|
|
22648
22660
|
icon: icon,
|
|
22649
22661
|
testID: "error-icon"
|
|
22650
22662
|
}));
|
|
@@ -25887,23 +25899,32 @@ var StyledSuccessImageContainer = index$b(View)(function (_ref4) {
|
|
|
25887
25899
|
alignItems: 'center'
|
|
25888
25900
|
};
|
|
25889
25901
|
});
|
|
25890
|
-
var
|
|
25902
|
+
var StyledSuccessIconContainer = index$b(View)(function (_ref5) {
|
|
25891
25903
|
var theme = _ref5.theme;
|
|
25904
|
+
return {
|
|
25905
|
+
marginBottom: theme.__hd__.success.space.imageMarginBottom,
|
|
25906
|
+
width: theme.__hd__.success.sizes.icon,
|
|
25907
|
+
height: theme.__hd__.success.sizes.icon,
|
|
25908
|
+
alignItems: 'center'
|
|
25909
|
+
};
|
|
25910
|
+
});
|
|
25911
|
+
var StyledSuccessTitle = index$b(Typography.Title)(function (_ref6) {
|
|
25912
|
+
var theme = _ref6.theme;
|
|
25892
25913
|
return {
|
|
25893
25914
|
textAlign: 'center',
|
|
25894
25915
|
marginBottom: theme.__hd__.success.space.titleMarginBottom,
|
|
25895
25916
|
color: theme.__hd__.success.colors.title
|
|
25896
25917
|
};
|
|
25897
25918
|
});
|
|
25898
|
-
var StyledSuccessDescription = index$b(Typography.Body)(function (
|
|
25899
|
-
var theme =
|
|
25919
|
+
var StyledSuccessDescription = index$b(Typography.Body)(function (_ref7) {
|
|
25920
|
+
var theme = _ref7.theme;
|
|
25900
25921
|
return {
|
|
25901
25922
|
textAlign: 'center',
|
|
25902
25923
|
color: theme.__hd__.success.colors.description
|
|
25903
25924
|
};
|
|
25904
25925
|
});
|
|
25905
|
-
var StyledSuccessButtonContainer = index$b(View)(function (
|
|
25906
|
-
var theme =
|
|
25926
|
+
var StyledSuccessButtonContainer = index$b(View)(function (_ref8) {
|
|
25927
|
+
var theme = _ref8.theme;
|
|
25907
25928
|
return {
|
|
25908
25929
|
display: 'flex',
|
|
25909
25930
|
flexDirection: 'column',
|
|
@@ -25913,12 +25934,19 @@ var StyledSuccessButtonContainer = index$b(View)(function (_ref7) {
|
|
|
25913
25934
|
paddingVertical: theme.__hd__.success.space.button.wrapperVerticalPadding
|
|
25914
25935
|
};
|
|
25915
25936
|
});
|
|
25916
|
-
var StyledSuccessButtonPrimary = index$b(CompoundButton)(function (
|
|
25917
|
-
var theme =
|
|
25937
|
+
var StyledSuccessButtonPrimary = index$b(CompoundButton)(function (_ref9) {
|
|
25938
|
+
var theme = _ref9.theme;
|
|
25918
25939
|
return {
|
|
25919
25940
|
padding: theme.__hd__.success.space.button.padding
|
|
25920
25941
|
};
|
|
25921
25942
|
});
|
|
25943
|
+
var StyledSuccessButtonSecondary = index$b(CompoundButton)(function (_ref10) {
|
|
25944
|
+
var theme = _ref10.theme;
|
|
25945
|
+
return {
|
|
25946
|
+
padding: theme.__hd__.success.space.button.padding,
|
|
25947
|
+
marginTop: theme.__hd__.success.space.button.secondaryCTAMarginTop
|
|
25948
|
+
};
|
|
25949
|
+
});
|
|
25922
25950
|
var StyledSuccessModal = index$b(ModalWrapper)({
|
|
25923
25951
|
height: '100%',
|
|
25924
25952
|
width: '100%'
|
|
@@ -25942,7 +25970,7 @@ var renderImageOrIcon = function renderImageOrIcon(_ref) {
|
|
|
25942
25970
|
var image = _ref.image,
|
|
25943
25971
|
icon = _ref.icon;
|
|
25944
25972
|
if (icon) {
|
|
25945
|
-
return /*#__PURE__*/React__default.createElement(
|
|
25973
|
+
return /*#__PURE__*/React__default.createElement(StyledSuccessIconContainer, null, /*#__PURE__*/React__default.createElement(StatusIcon, {
|
|
25946
25974
|
icon: icon,
|
|
25947
25975
|
testID: "success-icon"
|
|
25948
25976
|
}));
|
|
@@ -25979,7 +26007,7 @@ var SuccessPage = function SuccessPage(_ref2) {
|
|
|
25979
26007
|
}, title), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(StyledSuccessDescription, null, description) : description), !!ctaText && /*#__PURE__*/React__default.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React__default.createElement(StyledSuccessButtonPrimary, {
|
|
25980
26008
|
text: ctaText,
|
|
25981
26009
|
onPress: onCtaPress
|
|
25982
|
-
}), !!showSecondaryButton && /*#__PURE__*/React__default.createElement(
|
|
26010
|
+
}), !!showSecondaryButton && /*#__PURE__*/React__default.createElement(StyledSuccessButtonSecondary, {
|
|
25983
26011
|
variant: "text",
|
|
25984
26012
|
text: secondaryCtaText,
|
|
25985
26013
|
onPress: onSecondaryCtaPress
|
package/lib/index.js
CHANGED
|
@@ -6167,14 +6167,15 @@ var getErrorTheme = function getErrorTheme(theme) {
|
|
|
6167
6167
|
imageMarginBottom: theme.space.large,
|
|
6168
6168
|
wrapperPadding: theme.space.large,
|
|
6169
6169
|
button: {
|
|
6170
|
-
wrapperHorizontalPadding: theme.space.
|
|
6170
|
+
wrapperHorizontalPadding: theme.space.large,
|
|
6171
6171
|
wrapperVerticalPadding: theme.space.xxxlarge,
|
|
6172
6172
|
margin: theme.space.medium,
|
|
6173
6173
|
padding: theme.space.medium
|
|
6174
6174
|
}
|
|
6175
6175
|
};
|
|
6176
6176
|
var sizes = {
|
|
6177
|
-
image: theme.sizes['
|
|
6177
|
+
image: theme.sizes['6xlarge'],
|
|
6178
|
+
icon: theme.sizes['6xlarge']
|
|
6178
6179
|
};
|
|
6179
6180
|
var colors = {
|
|
6180
6181
|
title: theme.colors.onDefaultGlobalSurface,
|
|
@@ -6692,14 +6693,16 @@ var getSuccessTheme = function getSuccessTheme(theme) {
|
|
|
6692
6693
|
imageMarginBottom: theme.space.xlarge,
|
|
6693
6694
|
wrapperPadding: theme.space.large,
|
|
6694
6695
|
button: {
|
|
6695
|
-
wrapperHorizontalPadding: theme.space.
|
|
6696
|
+
wrapperHorizontalPadding: theme.space.large,
|
|
6696
6697
|
wrapperVerticalPadding: theme.space.xxxlarge,
|
|
6697
6698
|
margin: theme.space.medium,
|
|
6698
|
-
padding: theme.space.medium
|
|
6699
|
+
padding: theme.space.medium,
|
|
6700
|
+
secondaryCTAMarginTop: theme.space.medium
|
|
6699
6701
|
}
|
|
6700
6702
|
};
|
|
6701
6703
|
var sizes = {
|
|
6702
|
-
image: theme.sizes['19xlarge']
|
|
6704
|
+
image: theme.sizes['19xlarge'],
|
|
6705
|
+
icon: theme.sizes['6xlarge']
|
|
6703
6706
|
};
|
|
6704
6707
|
var colors = {
|
|
6705
6708
|
title: theme.colors.onDefaultGlobalSurface,
|
|
@@ -22629,8 +22632,17 @@ var StyledErrorImageContainer = index$b(reactNative.View)(function (_ref6) {
|
|
|
22629
22632
|
alignItems: 'center'
|
|
22630
22633
|
};
|
|
22631
22634
|
});
|
|
22632
|
-
var
|
|
22635
|
+
var StyledErrorIconContainer = index$b(reactNative.View)(function (_ref7) {
|
|
22633
22636
|
var theme = _ref7.theme;
|
|
22637
|
+
return {
|
|
22638
|
+
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
22639
|
+
width: theme.__hd__.error.sizes.icon,
|
|
22640
|
+
height: theme.__hd__.error.sizes.icon,
|
|
22641
|
+
alignItems: 'center'
|
|
22642
|
+
};
|
|
22643
|
+
});
|
|
22644
|
+
var StyledErrorImage = index$b(Image)(function (_ref8) {
|
|
22645
|
+
var theme = _ref8.theme;
|
|
22634
22646
|
return {
|
|
22635
22647
|
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
22636
22648
|
width: theme.__hd__.error.sizes.image,
|
|
@@ -22638,16 +22650,16 @@ var StyledErrorImage = index$b(Image)(function (_ref7) {
|
|
|
22638
22650
|
resizeMode: 'contain'
|
|
22639
22651
|
};
|
|
22640
22652
|
});
|
|
22641
|
-
var StyledErrorTitle = index$b(Typography.Title)(function (
|
|
22642
|
-
var theme =
|
|
22653
|
+
var StyledErrorTitle = index$b(Typography.Title)(function (_ref9) {
|
|
22654
|
+
var theme = _ref9.theme;
|
|
22643
22655
|
return {
|
|
22644
22656
|
textAlign: 'center',
|
|
22645
22657
|
marginBottom: theme.__hd__.error.space.titleMarginBottom,
|
|
22646
22658
|
color: theme.__hd__.error.colors.title
|
|
22647
22659
|
};
|
|
22648
22660
|
});
|
|
22649
|
-
var StyledErrorDescription = index$b(Typography.Body)(function (
|
|
22650
|
-
var theme =
|
|
22661
|
+
var StyledErrorDescription = index$b(Typography.Body)(function (_ref10) {
|
|
22662
|
+
var theme = _ref10.theme;
|
|
22651
22663
|
return {
|
|
22652
22664
|
textAlign: 'center',
|
|
22653
22665
|
color: theme.__hd__.error.colors.description
|
|
@@ -22673,7 +22685,7 @@ var renderImageOrIcon$1 = function renderImageOrIcon(_ref) {
|
|
|
22673
22685
|
var image = _ref.image,
|
|
22674
22686
|
icon = _ref.icon;
|
|
22675
22687
|
if (icon) {
|
|
22676
|
-
return /*#__PURE__*/React__namespace.default.createElement(
|
|
22688
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledErrorIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(StatusIcon, {
|
|
22677
22689
|
icon: icon,
|
|
22678
22690
|
testID: "error-icon"
|
|
22679
22691
|
}));
|
|
@@ -25916,23 +25928,32 @@ var StyledSuccessImageContainer = index$b(reactNative.View)(function (_ref4) {
|
|
|
25916
25928
|
alignItems: 'center'
|
|
25917
25929
|
};
|
|
25918
25930
|
});
|
|
25919
|
-
var
|
|
25931
|
+
var StyledSuccessIconContainer = index$b(reactNative.View)(function (_ref5) {
|
|
25920
25932
|
var theme = _ref5.theme;
|
|
25933
|
+
return {
|
|
25934
|
+
marginBottom: theme.__hd__.success.space.imageMarginBottom,
|
|
25935
|
+
width: theme.__hd__.success.sizes.icon,
|
|
25936
|
+
height: theme.__hd__.success.sizes.icon,
|
|
25937
|
+
alignItems: 'center'
|
|
25938
|
+
};
|
|
25939
|
+
});
|
|
25940
|
+
var StyledSuccessTitle = index$b(Typography.Title)(function (_ref6) {
|
|
25941
|
+
var theme = _ref6.theme;
|
|
25921
25942
|
return {
|
|
25922
25943
|
textAlign: 'center',
|
|
25923
25944
|
marginBottom: theme.__hd__.success.space.titleMarginBottom,
|
|
25924
25945
|
color: theme.__hd__.success.colors.title
|
|
25925
25946
|
};
|
|
25926
25947
|
});
|
|
25927
|
-
var StyledSuccessDescription = index$b(Typography.Body)(function (
|
|
25928
|
-
var theme =
|
|
25948
|
+
var StyledSuccessDescription = index$b(Typography.Body)(function (_ref7) {
|
|
25949
|
+
var theme = _ref7.theme;
|
|
25929
25950
|
return {
|
|
25930
25951
|
textAlign: 'center',
|
|
25931
25952
|
color: theme.__hd__.success.colors.description
|
|
25932
25953
|
};
|
|
25933
25954
|
});
|
|
25934
|
-
var StyledSuccessButtonContainer = index$b(reactNative.View)(function (
|
|
25935
|
-
var theme =
|
|
25955
|
+
var StyledSuccessButtonContainer = index$b(reactNative.View)(function (_ref8) {
|
|
25956
|
+
var theme = _ref8.theme;
|
|
25936
25957
|
return {
|
|
25937
25958
|
display: 'flex',
|
|
25938
25959
|
flexDirection: 'column',
|
|
@@ -25942,12 +25963,19 @@ var StyledSuccessButtonContainer = index$b(reactNative.View)(function (_ref7) {
|
|
|
25942
25963
|
paddingVertical: theme.__hd__.success.space.button.wrapperVerticalPadding
|
|
25943
25964
|
};
|
|
25944
25965
|
});
|
|
25945
|
-
var StyledSuccessButtonPrimary = index$b(CompoundButton)(function (
|
|
25946
|
-
var theme =
|
|
25966
|
+
var StyledSuccessButtonPrimary = index$b(CompoundButton)(function (_ref9) {
|
|
25967
|
+
var theme = _ref9.theme;
|
|
25947
25968
|
return {
|
|
25948
25969
|
padding: theme.__hd__.success.space.button.padding
|
|
25949
25970
|
};
|
|
25950
25971
|
});
|
|
25972
|
+
var StyledSuccessButtonSecondary = index$b(CompoundButton)(function (_ref10) {
|
|
25973
|
+
var theme = _ref10.theme;
|
|
25974
|
+
return {
|
|
25975
|
+
padding: theme.__hd__.success.space.button.padding,
|
|
25976
|
+
marginTop: theme.__hd__.success.space.button.secondaryCTAMarginTop
|
|
25977
|
+
};
|
|
25978
|
+
});
|
|
25951
25979
|
var StyledSuccessModal = index$b(ModalWrapper)({
|
|
25952
25980
|
height: '100%',
|
|
25953
25981
|
width: '100%'
|
|
@@ -25971,7 +25999,7 @@ var renderImageOrIcon = function renderImageOrIcon(_ref) {
|
|
|
25971
25999
|
var image = _ref.image,
|
|
25972
26000
|
icon = _ref.icon;
|
|
25973
26001
|
if (icon) {
|
|
25974
|
-
return /*#__PURE__*/React__namespace.default.createElement(
|
|
26002
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(StatusIcon, {
|
|
25975
26003
|
icon: icon,
|
|
25976
26004
|
testID: "success-icon"
|
|
25977
26005
|
}));
|
|
@@ -26008,7 +26036,7 @@ var SuccessPage = function SuccessPage(_ref2) {
|
|
|
26008
26036
|
}, title), typeof description === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledSuccessDescription, null, description) : description), !!ctaText && /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonPrimary, {
|
|
26009
26037
|
text: ctaText,
|
|
26010
26038
|
onPress: onCtaPress
|
|
26011
|
-
}), !!showSecondaryButton && /*#__PURE__*/React__namespace.default.createElement(
|
|
26039
|
+
}), !!showSecondaryButton && /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonSecondary, {
|
|
26012
26040
|
variant: "text",
|
|
26013
26041
|
text: secondaryCtaText,
|
|
26014
26042
|
onPress: onSecondaryCtaPress
|
package/package.json
CHANGED
|
@@ -3,8 +3,9 @@ import { TouchableOpacity, View } from 'react-native';
|
|
|
3
3
|
import type { ComponentProps } from 'react';
|
|
4
4
|
import type { ViewProps } from 'react-native';
|
|
5
5
|
import Typography from '../Typography';
|
|
6
|
-
import { TextProps } from '../Typography/Text';
|
|
7
|
-
import
|
|
6
|
+
import type { TextProps } from '../Typography/Text';
|
|
7
|
+
import type { IconProps } from '../Icon';
|
|
8
|
+
import Icon from '../Icon';
|
|
8
9
|
|
|
9
10
|
type ThemeIntent = 'success' | 'info' | 'warning' | 'error' | 'notification';
|
|
10
11
|
const Container = styled(View)<{
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Animated } from 'react-native';
|
|
2
|
+
import type { Animated } from 'react-native';
|
|
3
3
|
import FAB from '../FAB';
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from '../FAB/ActionGroup';
|
|
8
|
-
import { FABHandles, FABProps } from '../FAB/FAB';
|
|
4
|
+
import type { ActionGroupHandles, ActionGroupProps } from '../FAB/ActionGroup';
|
|
5
|
+
import ActionGroup from '../FAB/ActionGroup';
|
|
6
|
+
import type { FABHandles, FABProps } from '../FAB/FAB';
|
|
9
7
|
|
|
10
8
|
const LAST_BREAKPOINT = 100;
|
|
11
9
|
const MIDDLE_BREAKPOINT = 250;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Animated,
|
|
2
|
+
import type {
|
|
4
3
|
FlatListProps,
|
|
5
4
|
ScrollViewProps as RnScrollViewProps,
|
|
6
5
|
SectionListProps,
|
|
7
6
|
} from 'react-native';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { Animated } from 'react-native';
|
|
8
|
+
import type { ActionGroupProps } from '../FAB/ActionGroup';
|
|
9
|
+
import type { FABProps } from '../FAB/FAB';
|
|
10
10
|
import AnimatedFAB from './AnimatedFAB';
|
|
11
11
|
|
|
12
12
|
export interface AnimatedScrollerProps<T> {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { FlatListProps } from 'react-native';
|
|
3
|
+
import { FlatList } from 'react-native';
|
|
4
|
+
import type { FABProps } from '../FAB/FAB';
|
|
4
5
|
import AnimatedScroller from './AnimatedScrollable';
|
|
5
|
-
import { ActionGroupProps } from '../FAB/ActionGroup';
|
|
6
|
+
import type { ActionGroupProps } from '../FAB/ActionGroup';
|
|
6
7
|
|
|
7
8
|
export interface FlatListWithFABProps<T> extends FlatListProps<T> {
|
|
8
9
|
/**
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { ScrollViewProps } from 'react-native';
|
|
3
|
+
import { ScrollView } from 'react-native';
|
|
3
4
|
import AnimatedScroller from './AnimatedScrollable';
|
|
4
|
-
import { ActionGroupProps } from '../FAB/ActionGroup';
|
|
5
|
-
import { FABProps } from '../FAB/FAB';
|
|
5
|
+
import type { ActionGroupProps } from '../FAB/ActionGroup';
|
|
6
|
+
import type { FABProps } from '../FAB/FAB';
|
|
6
7
|
|
|
7
8
|
export interface ScrollViewWithFABProps extends ScrollViewProps {
|
|
8
9
|
/**
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { SectionListProps } from 'react-native';
|
|
3
|
+
import { SectionList } from 'react-native';
|
|
3
4
|
import AnimatedScroller from './AnimatedScrollable';
|
|
4
|
-
import { ActionGroupProps } from '../FAB/ActionGroup';
|
|
5
|
-
import { FABProps } from '../FAB/FAB';
|
|
5
|
+
import type { ActionGroupProps } from '../FAB/ActionGroup';
|
|
6
|
+
import type { FABProps } from '../FAB/FAB';
|
|
6
7
|
|
|
7
8
|
export interface SectionListWithFABProps<T> extends SectionListProps<T> {
|
|
8
9
|
/**
|
|
@@ -4,11 +4,11 @@ import { fireEvent } from '@testing-library/react-native';
|
|
|
4
4
|
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
5
5
|
import { FlatListWithFAB, ScrollViewWithFAB, SectionListWithFAB } from '..';
|
|
6
6
|
import Box from '../../Box';
|
|
7
|
-
import { ActionGroupProps } from '../../FAB/ActionGroup';
|
|
8
|
-
import { FABProps } from '../../FAB/FAB';
|
|
7
|
+
import type { ActionGroupProps } from '../../FAB/ActionGroup';
|
|
8
|
+
import type { FABProps } from '../../FAB/FAB';
|
|
9
9
|
import Typography from '../../Typography';
|
|
10
|
-
import { ScrollViewWithFABProps } from '../ScrollViewWithFAB';
|
|
11
|
-
import { FlatListWithFABProps } from '../FlatListWithFAB';
|
|
10
|
+
import type { ScrollViewWithFABProps } from '../ScrollViewWithFAB';
|
|
11
|
+
import type { FlatListWithFABProps } from '../FlatListWithFAB';
|
|
12
12
|
import SectionHeading from '../../SectionHeading';
|
|
13
13
|
|
|
14
14
|
const ExampleScrollViewWithFAB = ({ fabProps }: ScrollViewWithFABProps) => (
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import React, { useCallback, useLayoutEffect, useRef } from 'react';
|
|
2
|
+
import type { LayoutChangeEvent, StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
import {
|
|
3
4
|
Modal,
|
|
4
5
|
View,
|
|
5
6
|
TouchableWithoutFeedback,
|
|
6
|
-
LayoutChangeEvent,
|
|
7
|
-
StyleProp,
|
|
8
|
-
ViewStyle,
|
|
9
7
|
StyleSheet,
|
|
10
8
|
useWindowDimensions,
|
|
11
9
|
} from 'react-native';
|
|
10
|
+
import type { Placement } from './StyledAppCue';
|
|
12
11
|
import {
|
|
13
|
-
Placement,
|
|
14
12
|
StyledContainer,
|
|
15
13
|
StyledContent,
|
|
16
14
|
StyledIconContainer,
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
4
|
import {
|
|
5
5
|
StyledContainer,
|
|
6
6
|
StyledContentContainer,
|
|
7
7
|
StyledCTAWrapper,
|
|
8
8
|
StyledTextContainer,
|
|
9
9
|
} from './StyledAttachment';
|
|
10
|
-
import
|
|
10
|
+
import type { IconProps } from '../Icon';
|
|
11
|
+
import Icon from '../Icon';
|
|
11
12
|
import Typography from '../Typography';
|
|
12
|
-
import { ImageProps } from '../Image';
|
|
13
|
+
import type { ImageProps } from '../Image';
|
|
13
14
|
|
|
14
15
|
interface AttachmentProps {
|
|
15
16
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import type { AvatarProps } from '../Avatar';
|
|
4
|
+
import Avatar from '../Avatar';
|
|
4
5
|
import Box from '../../Box';
|
|
5
6
|
|
|
6
7
|
const VISIBLE_RATIO = 0.7;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
import type { AvatarProps } from '../Avatar';
|
|
4
5
|
import {
|
|
5
6
|
StyledAvatar,
|
|
6
7
|
StyledSurplusContainer,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { View, Image, TouchableOpacity, Platform } from 'react-native';
|
|
2
2
|
import styled from '@emotion/native';
|
|
3
3
|
import Typography from '../Typography';
|
|
4
|
-
import { TextProps } from '../Typography/Text';
|
|
4
|
+
import type { TextProps } from '../Typography/Text';
|
|
5
5
|
|
|
6
6
|
type ThemeSize =
|
|
7
7
|
| 'small'
|
|
@@ -3,7 +3,7 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
import { StyledView, StyledText, StyledIcon } from './StyledBadge';
|
|
4
4
|
import BadgeStatus from './Status';
|
|
5
5
|
import BadgeCount from './Count';
|
|
6
|
-
import { BasicBadgeProps, IconBadgeProps } from './types';
|
|
6
|
+
import type { BasicBadgeProps, IconBadgeProps } from './types';
|
|
7
7
|
import { DEFAULT_MAX_NUMBER } from './constants';
|
|
8
8
|
|
|
9
9
|
export type BadgeProps = BasicBadgeProps | IconBadgeProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Animated, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import { IconName } from '../Icon';
|
|
1
|
+
import type { Animated, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import type { IconName } from '../Icon';
|
|
3
3
|
|
|
4
4
|
interface BaseBadgeProps extends React.ComponentProps<typeof Animated.View> {
|
|
5
5
|
/**
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React, { useContext, useCallback, forwardRef } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type {
|
|
3
3
|
NativeScrollEvent,
|
|
4
4
|
NativeSyntheticEvent,
|
|
5
|
-
ScrollView,
|
|
6
5
|
ScrollViewProps,
|
|
7
6
|
} from 'react-native';
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import { ScrollView } from 'react-native';
|
|
8
|
+
import type { BottomSheetContextType } from './BottomSheetContext';
|
|
9
|
+
import BottomSheetContext from './BottomSheetContext';
|
|
11
10
|
|
|
12
11
|
const BottomSheetScrollView = forwardRef<ScrollView, ScrollViewProps>(
|
|
13
12
|
({ scrollEventThrottle = 100, ...props }, ref): JSX.Element => {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
|
-
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { ViewProps, KeyboardAvoidingViewProps } from 'react-native';
|
|
4
4
|
import {
|
|
5
5
|
Animated,
|
|
6
6
|
KeyboardAvoidingView,
|
|
7
|
-
KeyboardAvoidingViewProps,
|
|
8
7
|
Pressable,
|
|
9
8
|
SafeAreaView,
|
|
10
9
|
StyleSheet,
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Dimensions,
|
|
7
|
-
Easing,
|
|
3
|
+
import type {
|
|
4
|
+
StyleProp,
|
|
5
|
+
ViewStyle,
|
|
8
6
|
KeyboardAvoidingViewProps,
|
|
9
|
-
Modal,
|
|
10
|
-
Platform,
|
|
11
7
|
} from 'react-native';
|
|
8
|
+
import { Animated, Dimensions, Easing, Modal, Platform } from 'react-native';
|
|
12
9
|
import BottomSheetContext from './BottomSheetContext';
|
|
13
10
|
import Footer from './Footer';
|
|
14
11
|
import Header from './Header';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
|
-
import { Theme } from '@emotion/react';
|
|
2
|
+
import type { Theme } from '@emotion/react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
|
-
import { FlexStyleProps, StyleProps, ThemeScale } from './types';
|
|
4
|
+
import type { FlexStyleProps, StyleProps, ThemeScale } from './types';
|
|
5
5
|
import { pick } from '../../utils/helpers';
|
|
6
|
-
import
|
|
6
|
+
import type { ConfigType } from './config';
|
|
7
|
+
import config, { flexPropsKey } from './config';
|
|
7
8
|
|
|
8
9
|
export const getThemeValue = (
|
|
9
10
|
theme: Theme,
|