@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,5 +1,6 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
|
-
import { TextProps
|
|
2
|
+
import type { TextProps } from 'react-native';
|
|
3
|
+
import { Animated, TouchableOpacity } from 'react-native';
|
|
3
4
|
import Box from '../Box';
|
|
4
5
|
import type { IconProps } from '../Icon';
|
|
5
6
|
import Icon from '../Icon';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { createRef } from 'react';
|
|
2
2
|
import { fireEvent } from '@testing-library/react-native';
|
|
3
3
|
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
4
|
-
import { FABHandles
|
|
4
|
+
import type { FABHandles } from '../../../index';
|
|
5
|
+
import { theme } from '../../../index';
|
|
5
6
|
import FAB from '..';
|
|
6
7
|
|
|
7
8
|
describe('FAB', () => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { fireEvent } from '@testing-library/react-native';
|
|
3
|
-
import
|
|
3
|
+
import type { FilterTriggerProps } from '..';
|
|
4
|
+
import FilterTrigger from '..';
|
|
4
5
|
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
5
6
|
|
|
6
7
|
describe('FilterTrigger', () => {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { LayoutChangeEvent, ViewProps } from 'react-native';
|
|
3
4
|
import {
|
|
4
5
|
StyledWrapper,
|
|
5
6
|
StyledPrefixWrapper,
|
|
6
7
|
StyledSuffixWrapper,
|
|
7
8
|
StyledIcon,
|
|
8
9
|
} from './StyledFloatingIsland';
|
|
9
|
-
import { IconName } from '../Icon';
|
|
10
|
+
import type { IconName } from '../Icon';
|
|
10
11
|
|
|
11
12
|
export interface FloatingIslandProps extends ViewProps {
|
|
12
13
|
/**
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import type { ThemeProviderProps } from '../../theme/ThemeProvider';
|
|
3
|
+
import ThemeProvider from '../../theme/ThemeProvider';
|
|
3
4
|
import Toast from '../Toast';
|
|
4
5
|
import Portal from '../Portal';
|
|
5
6
|
import LocaleProvider from '../LocaleProvider';
|
|
6
|
-
import { LocaleValues } from '../../locales/types';
|
|
7
|
+
import type { LocaleValues } from '../../locales/types';
|
|
7
8
|
import enAULocale from '../../locales/en_AU';
|
|
8
9
|
|
|
9
10
|
interface HeroDesignProviderProps extends ThemeProviderProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import type { ReactNode } from 'react';
|
|
3
|
+
import type { ReactNode, ReactElement } from 'react';
|
|
4
4
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
5
5
|
import { View } from 'react-native';
|
|
6
6
|
import { useTheme } from '../../theme';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext } from 'react';
|
|
2
2
|
import enAULocale from '../../locales/en_AU';
|
|
3
|
-
import { LocaleValues } from '../../locales/types';
|
|
3
|
+
import type { LocaleValues } from '../../locales/types';
|
|
4
4
|
|
|
5
5
|
const LocaleContext = createContext<LocaleValues>(enAULocale);
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
|
|
|
2
2
|
import setDefaultOptions from 'date-fns/setDefaultOptions';
|
|
3
3
|
import { LocaleContext } from './context';
|
|
4
4
|
import { getDateFnsLocale } from './utils';
|
|
5
|
-
import { LocaleValues } from '../../locales/types';
|
|
5
|
+
import type { LocaleValues } from '../../locales/types';
|
|
6
6
|
|
|
7
7
|
interface LocaleProviderProps {
|
|
8
8
|
locale: LocaleValues;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import enAU from 'date-fns/locale/en-AU';
|
|
2
2
|
import enCA from 'date-fns/locale/en-CA';
|
|
3
3
|
import type { Locale } from 'date-fns';
|
|
4
|
-
import { LocaleCode } from '../../locales/types';
|
|
4
|
+
import type { LocaleCode } from '../../locales/types';
|
|
5
5
|
|
|
6
6
|
const Locales = {
|
|
7
7
|
'en-AU': enAU,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ViewProps, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import type { ViewProps, StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import { StyledContainer, StyledFocusIcon } from './StyledMapPin';
|
|
4
4
|
|
|
5
5
|
export interface MapPinFocussedProps extends ViewProps {
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
StyledBadgeIcon,
|
|
8
8
|
StyledContent,
|
|
9
9
|
} from './StyledMapPin';
|
|
10
|
-
import { IconName } from '../Icon';
|
|
11
|
-
import { MapPinProps } from './types';
|
|
10
|
+
import type { IconName } from '../Icon';
|
|
11
|
+
import type { MapPinProps } from './types';
|
|
12
12
|
import MapPinFocussed from './Focussed';
|
|
13
13
|
|
|
14
14
|
const getBadgeIconName = (
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ViewProps, StyleProp, ViewStyle, ImageProps } from 'react-native';
|
|
2
|
-
import { IconName } from '../Icon';
|
|
1
|
+
import type { ViewProps, StyleProp, ViewStyle, ImageProps } from 'react-native';
|
|
2
|
+
import type { IconName } from '../Icon';
|
|
3
3
|
|
|
4
4
|
interface BaseMapPinProps extends ViewProps {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
1
2
|
import React, {
|
|
2
|
-
ComponentProps,
|
|
3
3
|
forwardRef,
|
|
4
4
|
useCallback,
|
|
5
5
|
useEffect,
|
|
@@ -8,8 +8,8 @@ import React, {
|
|
|
8
8
|
useRef,
|
|
9
9
|
useState,
|
|
10
10
|
} from 'react';
|
|
11
|
-
import { InteractionManager
|
|
12
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
11
|
+
import { InteractionManager } from 'react-native';
|
|
12
|
+
import type { StyleProp, ViewStyle, TextInput } from 'react-native';
|
|
13
13
|
import Icon from '../Icon';
|
|
14
14
|
import PinCell from './PinCell';
|
|
15
15
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo, useEffect } from 'react';
|
|
2
2
|
import { usePortal } from './usePortal';
|
|
3
3
|
import { usePortalState } from './usePortalState';
|
|
4
|
-
import { PortalType } from './contexts';
|
|
4
|
+
import type { PortalType } from './contexts';
|
|
5
5
|
|
|
6
6
|
export interface PortalHostProps {
|
|
7
7
|
/*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { createContext } from 'react';
|
|
2
3
|
import type { ReactNode } from 'react';
|
|
3
|
-
import { ActionTypes } from './types';
|
|
4
|
+
import type { ActionTypes } from './types';
|
|
4
5
|
|
|
5
6
|
export interface PortalType {
|
|
6
7
|
name: string;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React, { memo, useLayoutEffect, useMemo } from 'react';
|
|
2
3
|
// Fix issue no crypto in react-native
|
|
3
4
|
// https://stackoverflow.com/a/66852908
|
|
4
5
|
import { customAlphabet } from 'nanoid/non-secure';
|
|
5
6
|
import { usePortal } from './usePortal';
|
|
6
7
|
import { PortalProvider } from './PortalProvider';
|
|
7
8
|
import { PortalHost } from './PortalHost';
|
|
8
|
-
import { Theme
|
|
9
|
+
import type { Theme } from '../../theme';
|
|
10
|
+
import { ThemeProvider, useTheme } from '../../theme';
|
|
9
11
|
|
|
10
12
|
const nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz0123456789', 10);
|
|
11
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useTheme } from '@emotion/react';
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import { LayoutChangeEvent, ViewProps } from 'react-native';
|
|
3
|
+
import type { LayoutChangeEvent, ViewProps } from 'react-native';
|
|
4
4
|
import {
|
|
5
5
|
StyledSingleStep,
|
|
6
6
|
StyledSingleStepContainer,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
4
|
import type { IconName } from '../Icon';
|
|
5
5
|
import { Circle, InnerCircle, StyledRadio } from './StyledRadio';
|
|
6
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useMemo, useRef } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import { Animated, Platform, Pressable } from 'react-native';
|
|
3
4
|
import Icon from '../Icon';
|
|
4
5
|
import { StyledIconWrapper, StyledWrapper } from './StyledRate';
|
|
5
6
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { ScrollView, Text } from 'react-native';
|
|
3
4
|
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
4
5
|
import RefreshControl from '..';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
RefreshControlProps as NativeRefreshControlProps,
|
|
5
|
-
} from 'react-native';
|
|
2
|
+
import type { RefreshControlProps as NativeRefreshControlProps } from 'react-native';
|
|
3
|
+
import { RefreshControl as NativeRefreshControl } from 'react-native';
|
|
6
4
|
import { useTheme } from '../../theme';
|
|
7
5
|
|
|
8
6
|
export type RefreshControlProps = Omit<
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
StyledToolbar,
|
|
9
9
|
StyledToolbarButton,
|
|
10
10
|
} from './StyledToolbar';
|
|
11
|
-
import { ToolbarButtonName } from './types';
|
|
11
|
+
import type { ToolbarButtonName } from './types';
|
|
12
12
|
import * as Events from './utils/events';
|
|
13
13
|
import type { IconProps } from '../Icon';
|
|
14
14
|
|
|
@@ -11,7 +11,7 @@ import React, {
|
|
|
11
11
|
} from 'react';
|
|
12
12
|
|
|
13
13
|
import { Animated, TouchableWithoutFeedback, Easing } from 'react-native';
|
|
14
|
-
import { WebView } from 'react-native-webview';
|
|
14
|
+
import type { WebView } from 'react-native-webview';
|
|
15
15
|
import type { ComponentType, ReactElement, Ref } from 'react';
|
|
16
16
|
import type { StyleProp, ViewStyle, LayoutChangeEvent } from 'react-native';
|
|
17
17
|
import heroEditorApp from './heroEditorApp';
|
|
@@ -38,7 +38,7 @@ import * as Events from './utils/events';
|
|
|
38
38
|
import { postMessage, requestBlurEditor } from './utils/rnWebView';
|
|
39
39
|
import type { WebViewEventMessage } from './utils/rnWebView';
|
|
40
40
|
import { LABEL_ANIMATION_DURATION } from '../TextInput';
|
|
41
|
-
import { TextUnit } from './types';
|
|
41
|
+
import type { TextUnit } from './types';
|
|
42
42
|
import Typography from '../Typography';
|
|
43
43
|
|
|
44
44
|
export interface RichTextEditorRef {
|
|
@@ -6,14 +6,14 @@ import type {
|
|
|
6
6
|
ViewStyle,
|
|
7
7
|
TextStyle,
|
|
8
8
|
} from 'react-native';
|
|
9
|
+
import type { State } from './StyledSearch';
|
|
9
10
|
import {
|
|
10
|
-
State,
|
|
11
11
|
StyledAffixContainer,
|
|
12
12
|
StyledContainer,
|
|
13
13
|
StyledInput,
|
|
14
14
|
StyledInputContainer,
|
|
15
15
|
} from './StyledSearch';
|
|
16
|
-
import { IconName } from '../Icon';
|
|
16
|
+
import type { IconName } from '../Icon';
|
|
17
17
|
import { renderPrefix, renderSuffix } from './utils';
|
|
18
18
|
import Button from '../Button';
|
|
19
19
|
import { useTheme } from '../../theme';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { IconName } from '../Icon';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { IconName } from '../Icon';
|
|
4
4
|
import { renderSuffix } from './utils';
|
|
5
5
|
import { StyledBadge, StyledSuffixContainer } from './StyledSearch';
|
|
6
|
-
import { BadgeProps } from '../Badge';
|
|
6
|
+
import type { BadgeProps } from '../Badge';
|
|
7
7
|
|
|
8
8
|
interface SearchSuffixIconProps {
|
|
9
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { IconName } from '../Icon';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { IconName } from '../Icon';
|
|
4
4
|
import { renderPrefix, renderSuffix } from './utils';
|
|
5
5
|
import {
|
|
6
6
|
StyledContainer,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
2
|
import { TextInput, View } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import type { BadgeProps } from '../Badge';
|
|
4
|
+
import Badge from '../Badge';
|
|
4
5
|
|
|
5
6
|
export type State = 'default' | 'filled' | 'disabled' | 'readonly';
|
|
6
7
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import Badge from '../Badge';
|
|
3
4
|
import Icon from '../Icon';
|
|
4
|
-
import Typography from '../Typography';
|
|
5
|
+
import type Typography from '../Typography';
|
|
5
6
|
import {
|
|
6
7
|
StyledSegmentedItem,
|
|
7
8
|
StyledSegmentedItemLabelWrapper,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { fireEvent } from '@testing-library/react-native';
|
|
3
|
-
import
|
|
3
|
+
import type { SegmentedControlProps } from '..';
|
|
4
|
+
import SegmentedControl from '..';
|
|
4
5
|
import type { SegmentedControlItemConfig } from '../types';
|
|
5
6
|
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
6
7
|
import { scale } from '../../../utils/scale';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
3
|
import SegmentedItem from './SegmentedItem';
|
|
4
4
|
import { StyledSegmentedControlWrapper } from './StyledSegmentedControl';
|
|
5
5
|
import type { SegmentedControlItemConfig } from './types';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useTheme } from '@emotion/react';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import type { SectionList, SectionListProps } from 'react-native';
|
|
4
|
+
import { Dimensions, View } from 'react-native';
|
|
4
5
|
import SectionHeading from '../SectionHeading';
|
|
5
6
|
import Spinner from '../Spinner';
|
|
6
7
|
import { OptionSpacer, SectionSpacer, StyledSectionList } from './StyledSelect';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SectionListRenderItemInfo } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import type { BaseOptionListProps } from '../BaseOptionList';
|
|
4
|
+
import BaseOptionList from '../BaseOptionList';
|
|
4
5
|
import Option from './Option';
|
|
5
6
|
import type { MultiSelectProps } from '.';
|
|
6
7
|
import type { SelectOptionType, SectionType } from '../types';
|
|
@@ -7,7 +7,8 @@ import { View } from 'react-native';
|
|
|
7
7
|
import { useKeyboard } from '../../../utils/helpers';
|
|
8
8
|
import BottomSheet from '../../BottomSheet';
|
|
9
9
|
import Box from '../../Box';
|
|
10
|
-
import
|
|
10
|
+
import type { TextInputProps } from '../../TextInput';
|
|
11
|
+
import TextInput from '../../TextInput';
|
|
11
12
|
import Footer from '../Footer';
|
|
12
13
|
import { getScrollParams, toFlatOptions, toSections } from '../helpers';
|
|
13
14
|
import { StyledSearchBar, StyledTouchableOpacity } from '../StyledSelect';
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
SectionList,
|
|
5
|
-
SectionListRenderItemInfo,
|
|
6
|
-
} from 'react-native';
|
|
2
|
+
import type { SectionList, SectionListRenderItemInfo } from 'react-native';
|
|
3
|
+
import { Dimensions } from 'react-native';
|
|
7
4
|
import type { SingleSelectProps } from '.';
|
|
8
|
-
import { BaseOptionListProps } from '../BaseOptionList';
|
|
5
|
+
import type { BaseOptionListProps } from '../BaseOptionList';
|
|
9
6
|
import type { SelectOptionType, SectionType } from '../types';
|
|
10
7
|
import Option from './Option';
|
|
11
8
|
import { StyledOptionList } from './StyledSingleSelect';
|
|
@@ -6,7 +6,8 @@ import type {
|
|
|
6
6
|
import { View } from 'react-native';
|
|
7
7
|
import { deepCompareValue, useKeyboard } from '../../../utils/helpers';
|
|
8
8
|
import BottomSheet from '../../BottomSheet';
|
|
9
|
-
import
|
|
9
|
+
import type { TextInputProps } from '../../TextInput';
|
|
10
|
+
import TextInput from '../../TextInput';
|
|
10
11
|
import { getScrollParams, toFlatOptions, toSections } from '../helpers';
|
|
11
12
|
import { StyledSearchBar, StyledTouchableOpacity } from '../StyledSelect';
|
|
12
13
|
import type { SectionType, SelectOptionType, SelectProps } from '../types';
|
|
@@ -2,7 +2,7 @@ import MultiSelect from './MultiSelect';
|
|
|
2
2
|
import SingleSelect from './SingleSelect';
|
|
3
3
|
import type { MultiSelectProps } from './MultiSelect';
|
|
4
4
|
import type { SingleSelectProps } from './SingleSelect';
|
|
5
|
-
import { SelectOptionType } from './types';
|
|
5
|
+
import type { SelectOptionType } from './types';
|
|
6
6
|
|
|
7
7
|
export type { MultiSelectProps, SingleSelectProps };
|
|
8
8
|
|
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
StyleProp,
|
|
7
7
|
ViewStyle,
|
|
8
8
|
} from 'react-native';
|
|
9
|
-
import { BottomSheetProps } from '../BottomSheet';
|
|
9
|
+
import type { BottomSheetProps } from '../BottomSheet';
|
|
10
10
|
import type { TextInputProps } from '../TextInput';
|
|
11
11
|
|
|
12
12
|
export type SelectOptionType<V> = {
|
|
@@ -6,15 +6,10 @@ import React, {
|
|
|
6
6
|
useCallback,
|
|
7
7
|
useRef,
|
|
8
8
|
} from 'react';
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
ViewProps,
|
|
14
|
-
Platform,
|
|
15
|
-
StyleSheet,
|
|
16
|
-
} from 'react-native';
|
|
17
|
-
import { Theme, useTheme } from '../../theme';
|
|
9
|
+
import type { LayoutChangeEvent, ViewProps } from 'react-native';
|
|
10
|
+
import { Animated, Easing, Platform, StyleSheet } from 'react-native';
|
|
11
|
+
import type { Theme } from '../../theme';
|
|
12
|
+
import { useTheme } from '../../theme';
|
|
18
13
|
import { StyledContainer, StyledGradientContainer } from './StyledSkeleton';
|
|
19
14
|
|
|
20
15
|
export interface SkeletonProps extends ViewProps {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
2
2
|
import MultiSlider from '@ptomasroos/react-native-multi-slider';
|
|
3
3
|
|
|
4
|
-
import { LayoutChangeEvent, StyleProp,
|
|
4
|
+
import type { LayoutChangeEvent, StyleProp, ViewStyle } from 'react-native';
|
|
5
|
+
import { View } from 'react-native';
|
|
5
6
|
import { useTheme } from '../../theme';
|
|
6
7
|
import { StyledMarker } from './StyledRangeSlider';
|
|
7
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import RnSlider from '@react-native-community/slider';
|
|
3
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
4
|
import { useTheme } from '../../theme';
|
|
5
5
|
|
|
6
6
|
export interface SingleSliderProps {
|
|
@@ -6,8 +6,9 @@ import type {
|
|
|
6
6
|
ViewStyle,
|
|
7
7
|
} from 'react-native';
|
|
8
8
|
|
|
9
|
-
import { ImageProps } from '../../Image';
|
|
10
|
-
import
|
|
9
|
+
import type { ImageProps } from '../../Image';
|
|
10
|
+
import type { StatusIconName } from '../StatusIcon';
|
|
11
|
+
import StatusIcon from '../StatusIcon';
|
|
11
12
|
import {
|
|
12
13
|
StyledDescription,
|
|
13
14
|
StyledEmptyImageContainer,
|
|
@@ -18,6 +19,7 @@ import {
|
|
|
18
19
|
interface EmptyProps {
|
|
19
20
|
/**
|
|
20
21
|
* Image to be displayed.
|
|
22
|
+
* @deprecated The `image` prop is deprecated and will be removed in the next major version. Use the `icon` prop instead.
|
|
21
23
|
*/
|
|
22
24
|
image?: ReactElement<ImageProps | RNImageProps>;
|
|
23
25
|
/**
|
|
@@ -30,6 +32,7 @@ interface EmptyProps {
|
|
|
30
32
|
description?: string;
|
|
31
33
|
/**
|
|
32
34
|
* Empty's variant.
|
|
35
|
+
* @deprecated The `variant` prop is deprecated and will be removed in the next major version. Only light mode will be supported.
|
|
33
36
|
*/
|
|
34
37
|
variant?: 'light' | 'dark';
|
|
35
38
|
/**
|
|
@@ -41,7 +44,7 @@ interface EmptyProps {
|
|
|
41
44
|
*/
|
|
42
45
|
testID?: string;
|
|
43
46
|
/**
|
|
44
|
-
* Status icon to be displayed, this will replace the image prop.
|
|
47
|
+
* Status icon to be displayed, this will replace the deprecated image prop.
|
|
45
48
|
*/
|
|
46
49
|
icon?: StatusIconName;
|
|
47
50
|
}
|
|
@@ -57,6 +57,13 @@ const StyledErrorImageContainer = styled(View)(({ theme }) => ({
|
|
|
57
57
|
height: theme.__hd__.error.sizes.image,
|
|
58
58
|
alignItems: 'center',
|
|
59
59
|
}));
|
|
60
|
+
|
|
61
|
+
const StyledErrorIconContainer = styled(View)(({ theme }) => ({
|
|
62
|
+
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
63
|
+
width: theme.__hd__.error.sizes.icon,
|
|
64
|
+
height: theme.__hd__.error.sizes.icon,
|
|
65
|
+
alignItems: 'center',
|
|
66
|
+
}));
|
|
60
67
|
const StyledErrorImage = styled(Image)(({ theme }) => ({
|
|
61
68
|
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
62
69
|
width: theme.__hd__.error.sizes.image,
|
|
@@ -87,4 +94,5 @@ export {
|
|
|
87
94
|
StyledErrorTitle,
|
|
88
95
|
StyledErrorDescription,
|
|
89
96
|
StyledErrorImageContainer,
|
|
97
|
+
StyledErrorIconContainer,
|
|
90
98
|
};
|