@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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
1
|
+
import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
2
|
|
|
3
|
-
import { SystemPalette } from '../../theme/global';
|
|
4
|
-
import { BorderWidths, Radii } from '../../theme/global/borders';
|
|
5
|
-
import { Space } from '../../theme/global/space';
|
|
6
|
-
import { ConfigType, FlexPropsKeyType } from './config';
|
|
3
|
+
import type { SystemPalette } from '../../theme/global';
|
|
4
|
+
import type { BorderWidths, Radii } from '../../theme/global/borders';
|
|
5
|
+
import type { Space } from '../../theme/global/space';
|
|
6
|
+
import type { ConfigType, FlexPropsKeyType } from './config';
|
|
7
7
|
|
|
8
8
|
export interface ThemeScale {
|
|
9
9
|
colors: keyof SystemPalette;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactChild, ReactNode } from 'react';
|
|
2
|
+
import React, { useMemo, useState } from 'react';
|
|
2
3
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { Theme
|
|
4
|
+
import type { Theme } from '../../theme';
|
|
5
|
+
import { useTheme } from '../../theme';
|
|
4
6
|
import { useDeprecation } from '../../utils/hooks';
|
|
5
7
|
import type { IconName } from '../Icon';
|
|
6
8
|
import LoadingIndicator from './LoadingIndicator';
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
shouldUseMonthPicker,
|
|
30
30
|
} from './helpers';
|
|
31
31
|
import SelectedDate from './CalendarRangeConnector';
|
|
32
|
-
import { CalendarProps } from './types';
|
|
32
|
+
import type { CalendarProps } from './types';
|
|
33
33
|
import { DAYS_OF_WEEK } from './constants';
|
|
34
34
|
import { useCalendarLayout } from './shared/hooks/useCalendarLayout';
|
|
35
35
|
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
TOTAL_DATES_ITEMS,
|
|
5
5
|
WEEK_INDEX_OFFSET,
|
|
6
6
|
} from './constants';
|
|
7
|
-
import { CalendarProps, ParsedMaskedDate } from './types';
|
|
7
|
+
import type { CalendarProps, ParsedMaskedDate } from './types';
|
|
8
8
|
|
|
9
9
|
export const initArray = <T>(length: number, func: (value: number) => T): T[] =>
|
|
10
10
|
Array.from(Array(length)).map((_, index) => func(index));
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from './helpers';
|
|
29
29
|
import CalendarRange from './CalendarRange';
|
|
30
30
|
import { DAYS_OF_WEEK } from './constants';
|
|
31
|
-
import { CalendarProps } from './types';
|
|
31
|
+
import type { CalendarProps } from './types';
|
|
32
32
|
import { useCalendarLayout } from './shared/hooks/useCalendarLayout';
|
|
33
33
|
|
|
34
34
|
const Calendar = ({
|
|
@@ -5,16 +5,14 @@ import React, {
|
|
|
5
5
|
useRef,
|
|
6
6
|
useState,
|
|
7
7
|
} from 'react';
|
|
8
|
-
import {
|
|
9
|
-
FlatList,
|
|
8
|
+
import type {
|
|
10
9
|
LayoutChangeEvent,
|
|
11
10
|
ListRenderItem,
|
|
12
|
-
Platform,
|
|
13
11
|
StyleProp,
|
|
14
|
-
View,
|
|
15
12
|
ViewStyle,
|
|
16
13
|
ViewToken,
|
|
17
14
|
} from 'react-native';
|
|
15
|
+
import { FlatList, Platform, View } from 'react-native';
|
|
18
16
|
import { useTheme } from '../../theme';
|
|
19
17
|
import {
|
|
20
18
|
StyledCard,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
StyledCarouselImage,
|
|
9
9
|
StyledCustomSizeCarouselImage,
|
|
10
10
|
} from './StyledCarousel';
|
|
11
|
-
import { CarouselData, CarouselImageProps } from './types';
|
|
11
|
+
import type { CarouselData, CarouselImageProps } from './types';
|
|
12
12
|
|
|
13
13
|
interface CarouselItemProps extends Omit<CarouselData, 'background'> {
|
|
14
14
|
width: number;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import type { CardProps } from '../Card';
|
|
5
|
+
import Card from '../Card';
|
|
6
|
+
import type { PageControlProps } from '../PageControl';
|
|
7
|
+
import PageControl from '../PageControl';
|
|
5
8
|
|
|
6
9
|
const StyledPageControl = styled(PageControl)<PageControlProps>(
|
|
7
10
|
({ theme }) => ({
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { waitFor } from '@testing-library/react-native';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { FlatList
|
|
4
|
-
import {
|
|
3
|
+
import type { FlatList } from 'react-native';
|
|
4
|
+
import { Platform } from 'react-native';
|
|
5
|
+
import type { CardCarouselHandles } from '../CardCarousel';
|
|
6
|
+
import { CardCarousel } from '../CardCarousel';
|
|
5
7
|
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
6
8
|
import Typography from '../../Typography';
|
|
7
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fireEvent } from '@testing-library/react-native';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ImageResizeMode } from 'react-native';
|
|
3
|
+
import type { ImageResizeMode } from 'react-native';
|
|
4
4
|
import Carousel from '..';
|
|
5
5
|
import { theme } from '../../..';
|
|
6
6
|
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
@@ -8,7 +8,7 @@ import Button from '../../Button/Button';
|
|
|
8
8
|
import HeroDesignProvider from '../../HeroDesignProvider';
|
|
9
9
|
import Image from '../../Image';
|
|
10
10
|
import { getCardCarouselValidIndex } from '../CardCarousel';
|
|
11
|
-
import { CarouselData } from '../types';
|
|
11
|
+
import type { CarouselData } from '../types';
|
|
12
12
|
|
|
13
13
|
const carouselData: CarouselData[] = [
|
|
14
14
|
{
|
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
useCallback,
|
|
5
|
-
useEffect,
|
|
6
|
-
useRef,
|
|
7
|
-
useState,
|
|
8
|
-
} from 'react';
|
|
9
|
-
import {
|
|
10
|
-
Animated,
|
|
11
|
-
FlatList,
|
|
1
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
+
import type {
|
|
12
4
|
StyleProp,
|
|
13
|
-
View,
|
|
14
5
|
ViewProps,
|
|
15
6
|
ViewStyle,
|
|
16
7
|
ViewToken,
|
|
17
8
|
LayoutChangeEvent,
|
|
18
9
|
} from 'react-native';
|
|
10
|
+
import { Animated, FlatList, View } from 'react-native';
|
|
19
11
|
|
|
20
12
|
import { useTheme } from '../../theme';
|
|
21
13
|
import { useDeprecation } from '../../utils/hooks';
|
|
@@ -28,7 +20,7 @@ import {
|
|
|
28
20
|
StyledPageControl,
|
|
29
21
|
StyledPageControlWrapper,
|
|
30
22
|
} from './StyledCarousel';
|
|
31
|
-
import { CarouselData } from './types';
|
|
23
|
+
import type { CarouselData } from './types';
|
|
32
24
|
|
|
33
25
|
interface CarouselProps extends ViewProps {
|
|
34
26
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ImageSourcePropType, ImageResizeMode } from 'react-native';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ImageSourcePropType, ImageResizeMode } from 'react-native';
|
|
3
3
|
|
|
4
4
|
export type CarouselImageProps = ImageSourcePropType & {
|
|
5
5
|
height?: number | `${number}%`;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import { FlatList, TouchableOpacity, View } from 'react-native';
|
|
4
|
-
import
|
|
4
|
+
import type { BottomSheetProps } from '../../BottomSheet';
|
|
5
|
+
import BottomSheet from '../../BottomSheet';
|
|
5
6
|
import Typography from '../../Typography';
|
|
6
7
|
import Icon from '../../Icon';
|
|
7
8
|
import List from '../../List';
|
|
@@ -6,7 +6,7 @@ import React, { memo, useMemo } from 'react';
|
|
|
6
6
|
import { G } from 'react-native-svg';
|
|
7
7
|
import { deepCompareValue } from '../../../utils/helpers';
|
|
8
8
|
import useScaleBandX from '../shared/hooks/useScaleBandX';
|
|
9
|
-
import { DataValue, Series, XAxisConfig, YAxisConfig } from '../types';
|
|
9
|
+
import type { DataValue, Series, XAxisConfig, YAxisConfig } from '../types';
|
|
10
10
|
import StackedSegment from './StackedSegment';
|
|
11
11
|
|
|
12
12
|
interface ColumnChartContentProps {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React, { memo } from 'react';
|
|
6
6
|
import { deepCompareValue } from '../../../utils/helpers';
|
|
7
7
|
import useScaleLinearY from '../shared/hooks/useScaleLinearY';
|
|
8
|
-
import { DataValue, YAxisConfig } from '../types';
|
|
8
|
+
import type { DataValue, YAxisConfig } from '../types';
|
|
9
9
|
import Segment from './Segment';
|
|
10
10
|
|
|
11
11
|
interface StackedSegmentProps {
|
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { mobileVisualisationPalette } from '@hero-design/colors';
|
|
3
3
|
import { fireEvent } from '@testing-library/react-native';
|
|
4
4
|
import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
5
|
-
import
|
|
5
|
+
import type { ColumnChartProps } from '../index';
|
|
6
|
+
import ColumnChart from '../index';
|
|
6
7
|
import {
|
|
7
8
|
ERROR_COLOR_NOT_FOUND,
|
|
8
9
|
ERROR_COLOR_NUMBER_MISMATCH,
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
// The component is highly configurable and uses subcomponents for axes, content, and frame.
|
|
5
5
|
|
|
6
6
|
import React, { useMemo, useState, useCallback, useEffect } from 'react';
|
|
7
|
-
import { ViewStyle, LayoutChangeEvent } from 'react-native';
|
|
7
|
+
import type { ViewStyle, LayoutChangeEvent } from 'react-native';
|
|
8
8
|
import ChartFrame from '../shared/ChartFrame';
|
|
9
|
-
import {
|
|
9
|
+
import type {
|
|
10
10
|
DataValue,
|
|
11
11
|
HeaderConfig,
|
|
12
12
|
Series,
|
|
@@ -4,7 +4,7 @@ import { Path } from 'react-native-svg';
|
|
|
4
4
|
import { DEFAULT_LINE_STROKE_WIDTH } from '../shared/constants';
|
|
5
5
|
import useScaleBandX from '../shared/hooks/useScaleBandX';
|
|
6
6
|
import useScaleLinearY from '../shared/hooks/useScaleLinearY';
|
|
7
|
-
import { AxisCoordinates, DataValue } from '../types';
|
|
7
|
+
import type { AxisCoordinates, DataValue } from '../types';
|
|
8
8
|
import { useTheme } from '../../../theme';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -3,7 +3,8 @@ import { fireEvent } from '@testing-library/react-native';
|
|
|
3
3
|
import { mobileVisualisationPalette } from '@hero-design/colors';
|
|
4
4
|
import Button from '../../../Button/Button';
|
|
5
5
|
import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
6
|
-
import
|
|
6
|
+
import type { LineChartProps } from '..';
|
|
7
|
+
import LineChart from '..';
|
|
7
8
|
import {
|
|
8
9
|
ERROR_COLOR_NOT_FOUND,
|
|
9
10
|
ERROR_COLOR_NUMBER_MISMATCH,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
2
|
-
import { LayoutChangeEvent, ViewStyle } from 'react-native';
|
|
2
|
+
import type { LayoutChangeEvent, ViewStyle } from 'react-native';
|
|
3
3
|
import ChartFrame from '../shared/ChartFrame';
|
|
4
4
|
import useCustomColor from '../shared/hooks/useCustomColor';
|
|
5
5
|
import {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
minValueFromDataSet,
|
|
9
9
|
} from '../shared/niceNumbers';
|
|
10
10
|
import { StyledLineChartWrapper } from '../StyledChart';
|
|
11
|
-
import {
|
|
11
|
+
import type {
|
|
12
12
|
AxisCoordinates,
|
|
13
13
|
DataValue,
|
|
14
14
|
HeaderConfig,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
2
|
-
import { LayoutChangeEvent } from 'react-native';
|
|
2
|
+
import type { LayoutChangeEvent } from 'react-native';
|
|
3
3
|
import Svg from 'react-native-svg';
|
|
4
4
|
import { useTheme } from '../../../theme';
|
|
5
5
|
import Box from '../../Box';
|
|
6
|
-
import {
|
|
6
|
+
import type {
|
|
7
7
|
AxisCoordinates,
|
|
8
8
|
HeaderConfig,
|
|
9
9
|
XAxisConfig,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LayoutChangeEvent } from 'react-native';
|
|
2
|
+
import type { LayoutChangeEvent } from 'react-native';
|
|
3
3
|
import Typography from '../../Typography';
|
|
4
4
|
import { StyledChartHeader } from '../StyledChart';
|
|
5
|
-
import { HeaderConfig } from '../types';
|
|
5
|
+
import type { HeaderConfig } from '../types';
|
|
6
6
|
import Box from '../../Box';
|
|
7
7
|
|
|
8
8
|
export type ChartHeaderProps = HeaderConfig & {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { useCallback, useState, useMemo } from 'react';
|
|
2
|
-
import { LayoutChangeEvent
|
|
2
|
+
import type { LayoutChangeEvent } from 'react-native';
|
|
3
|
+
import { Platform } from 'react-native';
|
|
3
4
|
import { ForeignObject, G } from 'react-native-svg';
|
|
4
5
|
import Box from '../../Box';
|
|
5
6
|
import Typography from '../../Typography';
|
|
6
|
-
import { AxisCoordinates } from '../types';
|
|
7
|
+
import type { AxisCoordinates } from '../types';
|
|
7
8
|
import { useTheme } from '../../../theme';
|
|
8
9
|
|
|
9
10
|
type EmptyStateProps = {
|
|
@@ -3,7 +3,7 @@ import { Platform } from 'react-native';
|
|
|
3
3
|
import { ForeignObject, G } from 'react-native-svg';
|
|
4
4
|
import { useTheme } from '../../../theme';
|
|
5
5
|
import Box from '../../Box';
|
|
6
|
-
import { AxisCoordinates, XAxisConfig } from '../types';
|
|
6
|
+
import type { AxisCoordinates, XAxisConfig } from '../types';
|
|
7
7
|
import AxisLabel from './AxisLabel';
|
|
8
8
|
import useScaleBandX from './hooks/useScaleBandX';
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { G, Line } from 'react-native-svg';
|
|
3
3
|
import { useTheme } from '../../../theme';
|
|
4
|
-
import { AxisCoordinates, XAxisConfig } from '../types';
|
|
4
|
+
import type { AxisCoordinates, XAxisConfig } from '../types';
|
|
5
5
|
import { DASH_ARRAY } from './constants';
|
|
6
6
|
import useScaleBandX from './hooks/useScaleBandX';
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@ import { Platform } from 'react-native';
|
|
|
3
3
|
import { ForeignObject, G } from 'react-native-svg';
|
|
4
4
|
import { useTheme } from '../../../theme';
|
|
5
5
|
import Box from '../../Box';
|
|
6
|
-
import { AxisCoordinates, YAxisConfig } from '../types';
|
|
6
|
+
import type { AxisCoordinates, YAxisConfig } from '../types';
|
|
7
7
|
import AxisLabel from './AxisLabel';
|
|
8
8
|
import useGenerateTicks from './hooks/useGenerateTicks';
|
|
9
9
|
import useScaleLinearY from './hooks/useScaleLinearY';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { G, Line } from 'react-native-svg';
|
|
3
3
|
import { useTheme } from '../../../theme';
|
|
4
|
-
import { AxisCoordinates, YAxisConfig } from '../types';
|
|
4
|
+
import type { AxisCoordinates, YAxisConfig } from '../types';
|
|
5
5
|
import { DASH_ARRAY } from './constants';
|
|
6
6
|
import useGenerateTicks from './hooks/useGenerateTicks';
|
|
7
7
|
import useScaleLinearY from './hooks/useScaleLinearY';
|
|
@@ -2,7 +2,8 @@ import { fireEvent } from '@testing-library/react-native';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Button, Typography } from '../../../..';
|
|
4
4
|
import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
5
|
-
import
|
|
5
|
+
import type { ChartFrameProps } from '../ChartFrame';
|
|
6
|
+
import ChartFrame from '../ChartFrame';
|
|
6
7
|
|
|
7
8
|
const onButtonPress = jest.fn();
|
|
8
9
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
3
|
-
import
|
|
3
|
+
import type { XAxisGridProps } from '../XAxisGrid';
|
|
4
|
+
import XAxisGrid from '../XAxisGrid';
|
|
4
5
|
|
|
5
6
|
const xAxisGridProps: XAxisGridProps = {
|
|
6
7
|
xAxisConfig: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Platform } from 'react-native';
|
|
3
3
|
import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
4
|
-
import
|
|
4
|
+
import type { XAxisProps } from '../XAxis';
|
|
5
|
+
import XAxis from '../XAxis';
|
|
5
6
|
|
|
6
7
|
const mockXAxisProps: XAxisProps = {
|
|
7
8
|
xAxisConfig: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Platform } from 'react-native';
|
|
3
3
|
import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
4
|
-
import
|
|
4
|
+
import type { YAxisProps } from '../YAxis';
|
|
5
|
+
import YAxis from '../YAxis';
|
|
5
6
|
|
|
6
7
|
const mockYAxisProps: YAxisProps = {
|
|
7
8
|
yAxisConfig: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
3
|
-
import
|
|
3
|
+
import type { YAxisGridProps } from '../YAxisGrid';
|
|
4
|
+
import YAxisGrid from '../YAxisGrid';
|
|
4
5
|
|
|
5
6
|
const yAxisGridProps: YAxisGridProps = {
|
|
6
7
|
yAxisConfig: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React, { useMemo } from 'react';
|
|
3
|
+
import type { ViewProps } from 'react-native';
|
|
3
4
|
import Box from '../Box';
|
|
4
|
-
import { IconName } from '../Icon';
|
|
5
|
+
import type { IconName } from '../Icon';
|
|
5
6
|
import Typography from '../Typography';
|
|
6
7
|
import { StyledChipIcon, StyledChipWrapper } from './StyledChip';
|
|
7
8
|
import { useDeprecation } from '../../utils/hooks';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
} from '@react-native-community/datetimepicker';
|
|
2
|
+
import type { DateTimePickerEvent } from '@react-native-community/datetimepicker';
|
|
3
|
+
import DateTimePicker from '@react-native-community/datetimepicker';
|
|
5
4
|
import { MonthYearPickerDialogueAndroid } from '@hero-design/react-native-month-year-picker';
|
|
6
|
-
import { DatePickerDialogProps } from './type';
|
|
5
|
+
import type { DatePickerDialogProps } from './type';
|
|
7
6
|
import { useTheme } from '../../../theme';
|
|
8
7
|
import Box from '../../Box';
|
|
9
8
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { MonthYearPickerViewIOS } from '@hero-design/react-native-month-year-picker';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
} from '@react-native-community/datetimepicker';
|
|
2
|
+
import type { DateTimePickerEvent } from '@react-native-community/datetimepicker';
|
|
3
|
+
import DateTimePicker from '@react-native-community/datetimepicker';
|
|
5
4
|
import React, { useState } from 'react';
|
|
6
5
|
import BottomSheet from '../../BottomSheet';
|
|
7
6
|
import Button from '../../Button';
|
|
8
7
|
import { useTheme } from '../../../theme';
|
|
9
8
|
import { StyledPickerWrapper } from '../StyledDatePicker';
|
|
10
|
-
import { DatePickerDialogProps } from './type';
|
|
9
|
+
import type { DatePickerDialogProps } from './type';
|
|
11
10
|
import { getDateValue } from '../hooks/useCalculateDate';
|
|
12
11
|
|
|
13
12
|
const IOSDatePickerDialog = ({
|
|
@@ -2,7 +2,8 @@ import { fireEvent } from '@testing-library/react-native';
|
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { Button } from '../../../..';
|
|
4
4
|
import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
5
|
-
import
|
|
5
|
+
import type { AndroidDatePickerDialogProps } from '../AndroidDialog';
|
|
6
|
+
import AndroidDialog from '../AndroidDialog';
|
|
6
7
|
|
|
7
8
|
const AndroidDialogExample = (
|
|
8
9
|
props: Omit<AndroidDatePickerDialogProps, 'open' | 'onClose'>
|
|
@@ -5,7 +5,7 @@ import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
|
5
5
|
import IOSDialog from '../IOSDialog';
|
|
6
6
|
import { setOrientation } from '../../../../testHelpers/utils';
|
|
7
7
|
import { Button } from '../../../..';
|
|
8
|
-
import { DatePickerDialogProps } from '../type';
|
|
8
|
+
import type { DatePickerDialogProps } from '../type';
|
|
9
9
|
|
|
10
10
|
jest.mock('react-native/Libraries/Modal/Modal', () => {
|
|
11
11
|
const Modal = jest.requireActual('react-native/Libraries/Modal/Modal');
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Platform } from 'react-native';
|
|
3
3
|
import IOSDatePickerDialog from './Dialog/IOSDialog';
|
|
4
4
|
import AndroidDatePickerDialog from './Dialog/AndroidDialog';
|
|
5
|
-
import { DatePickerDialogProps } from './Dialog/type';
|
|
5
|
+
import type { DatePickerDialogProps } from './Dialog/type';
|
|
6
6
|
|
|
7
7
|
const Dialog = ({ ...props }: DatePickerDialogProps) => {
|
|
8
8
|
if (Platform.OS === 'ios') {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
2
|
import DatePicker from './DatePicker';
|
|
3
|
-
import { InternalDatePickerProps } from './types';
|
|
3
|
+
import type { InternalDatePickerProps } from './types';
|
|
4
4
|
import Dialog from './Dialog';
|
|
5
5
|
|
|
6
6
|
export type { InternalDatePickerProps as DatePickerProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
2
|
import DatePicker from './DatePicker';
|
|
3
|
-
import { DatePickerProps } from './types';
|
|
3
|
+
import type { DatePickerProps } from './types';
|
|
4
4
|
import Dialog from './Dialog';
|
|
5
5
|
|
|
6
6
|
const PublicDatePicker = DatePicker as FunctionComponent<DatePickerProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import '@testing-library/jest-native/extend-expect';
|
|
2
2
|
import { fireEvent } from '@testing-library/react-native';
|
|
3
|
-
import
|
|
3
|
+
import type { ComponentProps } from 'react';
|
|
4
|
+
import React from 'react';
|
|
4
5
|
import ActionGroup from '..';
|
|
5
6
|
import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
6
7
|
import { setOrientation } from '../../../../testHelpers/utils';
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from './StyledActionGroup';
|
|
15
15
|
import Portal from '../../Portal';
|
|
16
16
|
import Box from '../../Box';
|
|
17
|
-
import { FABHandles } from '../FAB';
|
|
17
|
+
import type { FABHandles } from '../FAB';
|
|
18
18
|
import { useDeprecation } from '../../../utils/hooks';
|
|
19
19
|
import { useTheme } from '../../../theme';
|
|
20
20
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
import {
|
|
3
4
|
Animated,
|
|
4
5
|
LayoutAnimation,
|
|
5
6
|
Platform,
|
|
6
|
-
StyleProp,
|
|
7
7
|
StyleSheet,
|
|
8
8
|
UIManager,
|
|
9
|
-
ViewStyle,
|
|
10
9
|
} from 'react-native';
|
|
11
10
|
import { useTheme } from '../../theme';
|
|
12
11
|
import type { IconName } from '../Icon';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { fireEvent } from '@testing-library/react-native';
|
|
3
|
-
import
|
|
3
|
+
import type { InnerFABProps } from '..';
|
|
4
|
+
import Pair from '..';
|
|
4
5
|
import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
5
6
|
|
|
6
7
|
describe('FABPair', () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ViewProps } from 'react-native';
|
|
3
|
-
import { FABProps } from '../FAB';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { FABProps } from '../FAB';
|
|
4
4
|
import { StyledFAB, StyledFABPairWrapper } from './StyledFAB';
|
|
5
5
|
|
|
6
6
|
export type InnerFABProps = Pick<
|