@hero-design/rn 8.105.3 → 8.105.4-alpha.1
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 +16 -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/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,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SectionList } from 'react-native';
|
|
2
|
+
import type { SectionList } from 'react-native';
|
|
3
3
|
import type { SingleSelectProps } from '.';
|
|
4
|
-
import { BaseOptionListProps } from '../BaseOptionList';
|
|
4
|
+
import type { BaseOptionListProps } from '../BaseOptionList';
|
|
5
5
|
import type { SelectOptionType, SectionType } from '../types';
|
|
6
6
|
type OptionListProps<V, T extends SelectOptionType<V>> = Pick<SingleSelectProps<V, T>, 'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange' | 'value' | 'renderOption'> & {
|
|
7
7
|
onPress: (value: V | null) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TextInputProps as NativeTextInputProps } from 'react-native';
|
|
3
|
-
import { TextInputProps } from '../../TextInput';
|
|
3
|
+
import type { TextInputProps } from '../../TextInput';
|
|
4
4
|
import type { SelectOptionType, SelectProps } from '../types';
|
|
5
5
|
export interface SingleSelectProps<V, T extends SelectOptionType<V> = SelectOptionType<V>> extends SelectProps<V, T> {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MultiSelectProps } from './MultiSelect';
|
|
2
2
|
import type { SingleSelectProps } from './SingleSelect';
|
|
3
|
-
import { SelectOptionType } from './types';
|
|
3
|
+
import type { SelectOptionType } from './types';
|
|
4
4
|
export type { MultiSelectProps, SingleSelectProps };
|
|
5
5
|
type SingleSelectType = <V, T extends SelectOptionType<V> = SelectOptionType<V>>(props: Omit<SingleSelectProps<V, T>, 'TextInputComponent' | 'groupStyleEnabled'>) => React.ReactElement;
|
|
6
6
|
type MultiSelectType = <V, T extends SelectOptionType<V> = SelectOptionType<V>>(props: Omit<MultiSelectProps<V, T>, 'TextInputComponent' | 'groupStyleEnabled'>) => React.ReactElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import type { ListRenderItemInfo, SectionListData, SectionListRenderItemInfo, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { BottomSheetProps } from '../BottomSheet';
|
|
3
|
+
import type { BottomSheetProps } from '../BottomSheet';
|
|
4
4
|
import type { TextInputProps } from '../TextInput';
|
|
5
5
|
export type SelectOptionType<V> = {
|
|
6
6
|
value: V;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import type { ImageProps as RNImageProps, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { ImageProps } from '../../Image';
|
|
4
|
-
import { StatusIconName } from '../StatusIcon';
|
|
3
|
+
import type { ImageProps } from '../../Image';
|
|
4
|
+
import type { StatusIconName } from '../StatusIcon';
|
|
5
5
|
interface EmptyProps {
|
|
6
6
|
/**
|
|
7
7
|
* Image to be displayed.
|
|
8
|
+
* @deprecated The `image` prop is deprecated and will be removed in the next major version. Use the `icon` prop instead.
|
|
8
9
|
*/
|
|
9
10
|
image?: ReactElement<ImageProps | RNImageProps>;
|
|
10
11
|
/**
|
|
@@ -17,6 +18,7 @@ interface EmptyProps {
|
|
|
17
18
|
description?: string;
|
|
18
19
|
/**
|
|
19
20
|
* Empty's variant.
|
|
21
|
+
* @deprecated The `variant` prop is deprecated and will be removed in the next major version. Only light mode will be supported.
|
|
20
22
|
*/
|
|
21
23
|
variant?: 'light' | 'dark';
|
|
22
24
|
/**
|
|
@@ -28,7 +30,7 @@ interface EmptyProps {
|
|
|
28
30
|
*/
|
|
29
31
|
testID?: string;
|
|
30
32
|
/**
|
|
31
|
-
* Status icon to be displayed, this will replace the image prop.
|
|
33
|
+
* Status icon to be displayed, this will replace the deprecated image prop.
|
|
32
34
|
*/
|
|
33
35
|
icon?: StatusIconName;
|
|
34
36
|
}
|
|
@@ -38,6 +38,12 @@ declare const StyledErrorImageContainer: import("@emotion/native").StyledCompone
|
|
|
38
38
|
}, {}, {
|
|
39
39
|
ref?: import("react").Ref<View> | undefined;
|
|
40
40
|
}>;
|
|
41
|
+
declare const StyledErrorIconContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
42
|
+
theme?: import("@emotion/react").Theme;
|
|
43
|
+
as?: React.ElementType;
|
|
44
|
+
}, {}, {
|
|
45
|
+
ref?: import("react").Ref<View> | undefined;
|
|
46
|
+
}>;
|
|
41
47
|
declare const StyledErrorImage: import("@emotion/native").StyledComponent<import("../../Image").ImageProps & {
|
|
42
48
|
theme?: import("@emotion/react").Theme;
|
|
43
49
|
as?: React.ElementType;
|
|
@@ -50,4 +56,4 @@ declare const StyledErrorDescription: import("@emotion/native").StyledComponent<
|
|
|
50
56
|
theme?: import("@emotion/react").Theme;
|
|
51
57
|
as?: React.ElementType;
|
|
52
58
|
}, {}, {}>;
|
|
53
|
-
export { ErrorVariant, StyledErrorModal, StyledErrorImage, StyledErrorContainer, StyledErrorButtonContainer, StyledErrorButtonPrimary, StyledErrorButtonSecondary, StyledErrorContent, StyledErrorTitle, StyledErrorDescription, StyledErrorImageContainer, };
|
|
59
|
+
export { ErrorVariant, StyledErrorModal, StyledErrorImage, StyledErrorContainer, StyledErrorButtonContainer, StyledErrorButtonPrimary, StyledErrorButtonSecondary, StyledErrorContent, StyledErrorTitle, StyledErrorDescription, StyledErrorImageContainer, StyledErrorIconContainer, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import type { ImageSourcePropType, ViewProps, ImageProps as RNImageProps } from 'react-native';
|
|
3
|
-
import { ErrorVariant } from './StyledError';
|
|
4
|
-
import { ImageProps } from '../../Image/index';
|
|
3
|
+
import type { ErrorVariant } from './StyledError';
|
|
4
|
+
import type { ImageProps } from '../../Image/index';
|
|
5
5
|
import type { StatusIconName } from '../StatusIcon';
|
|
6
6
|
interface ErrorProps extends ViewProps {
|
|
7
7
|
/**
|
|
@@ -24,6 +24,7 @@ interface ErrorProps extends ViewProps {
|
|
|
24
24
|
description?: string;
|
|
25
25
|
/**
|
|
26
26
|
* Image of the error
|
|
27
|
+
* @deprecated The `image` prop is deprecated and will be removed in the next major version. Use the `icon` prop instead.
|
|
27
28
|
*/
|
|
28
29
|
image?: ReactElement<ImageProps | RNImageProps> | ImageSourcePropType | string;
|
|
29
30
|
/**
|
|
@@ -47,7 +48,7 @@ interface ErrorProps extends ViewProps {
|
|
|
47
48
|
*/
|
|
48
49
|
onSecondaryCtaPress?: () => void;
|
|
49
50
|
/**
|
|
50
|
-
* Status icon to be displayed, this will replace the image prop.
|
|
51
|
+
* Status icon to be displayed, this will replace the deprecated image prop.
|
|
51
52
|
*/
|
|
52
53
|
icon?: StatusIconName;
|
|
53
54
|
}
|
|
@@ -24,6 +24,12 @@ declare const StyledSuccessImageContainer: import("@emotion/native").StyledCompo
|
|
|
24
24
|
}, {}, {
|
|
25
25
|
ref?: import("react").Ref<View> | undefined;
|
|
26
26
|
}>;
|
|
27
|
+
declare const StyledSuccessIconContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
28
|
+
theme?: import("@emotion/react").Theme;
|
|
29
|
+
as?: React.ElementType;
|
|
30
|
+
}, {}, {
|
|
31
|
+
ref?: import("react").Ref<View> | undefined;
|
|
32
|
+
}>;
|
|
27
33
|
declare const StyledSuccessTitle: import("@emotion/native").StyledComponent<import("../../..").TitleProps & {
|
|
28
34
|
theme?: import("@emotion/react").Theme;
|
|
29
35
|
as?: React.ElementType;
|
|
@@ -42,8 +48,12 @@ declare const StyledSuccessButtonPrimary: import("@emotion/native").StyledCompon
|
|
|
42
48
|
theme?: import("@emotion/react").Theme;
|
|
43
49
|
as?: React.ElementType;
|
|
44
50
|
}, {}, {}>;
|
|
51
|
+
declare const StyledSuccessButtonSecondary: import("@emotion/native").StyledComponent<import("../../Button/Button").ButtonProps & {
|
|
52
|
+
theme?: import("@emotion/react").Theme;
|
|
53
|
+
as?: React.ElementType;
|
|
54
|
+
}, {}, {}>;
|
|
45
55
|
declare const StyledSuccessModal: import("@emotion/native").StyledComponent<import("../../Modal").ModalProps & {
|
|
46
56
|
theme?: import("@emotion/react").Theme;
|
|
47
57
|
as?: React.ElementType;
|
|
48
58
|
}, {}, {}>;
|
|
49
|
-
export { SuccessVariant, StyledSuccessImage, StyledSuccessContainer, StyledSuccessContent, StyledSuccessImageContainer, StyledSuccessTitle, StyledSuccessDescription, StyledSuccessButtonContainer, StyledSuccessButtonPrimary, StyledSuccessModal, };
|
|
59
|
+
export { SuccessVariant, StyledSuccessImage, StyledSuccessContainer, StyledSuccessContent, StyledSuccessImageContainer, StyledSuccessIconContainer, StyledSuccessTitle, StyledSuccessDescription, StyledSuccessButtonContainer, StyledSuccessButtonPrimary, StyledSuccessButtonSecondary, StyledSuccessModal, };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import type { ViewProps, ImageSourcePropType, ImageProps as RNImageProps } from 'react-native';
|
|
3
|
-
import { SuccessVariant } from './StyledSuccess';
|
|
4
|
-
import { ImageProps } from '../../Image';
|
|
5
|
-
import { StatusIconName } from '../StatusIcon';
|
|
3
|
+
import type { SuccessVariant } from './StyledSuccess';
|
|
4
|
+
import type { ImageProps } from '../../Image';
|
|
5
|
+
import type { StatusIconName } from '../StatusIcon';
|
|
6
6
|
export interface SuccessProps extends ViewProps {
|
|
7
7
|
/**
|
|
8
8
|
* Image to be displayed.
|
|
9
|
+
* @deprecated The `image` prop is deprecated and will be removed in the next major version. Use the `icon` prop instead.
|
|
9
10
|
*/
|
|
10
11
|
image?: ReactElement<ImageProps | RNImageProps> | ImageSourcePropType | string;
|
|
11
12
|
/**
|
|
@@ -41,7 +42,7 @@ export interface SuccessProps extends ViewProps {
|
|
|
41
42
|
*/
|
|
42
43
|
testID?: string;
|
|
43
44
|
/**
|
|
44
|
-
* Status icon to be displayed, this will replace the image prop.
|
|
45
|
+
* Status icon to be displayed, this will replace the deprecated image prop.
|
|
45
46
|
*/
|
|
46
47
|
icon?: StatusIconName;
|
|
47
48
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
import type { ActionIntent } from './StyledSwipeable';
|
|
4
5
|
export interface SwipeableActionProps {
|
|
5
6
|
/**
|
|
6
7
|
* Visual intent color applied to action.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { Swipeable as RnghSwipeable } from 'react-native-gesture-handler';
|
|
3
4
|
type State = 'closed' | 'leftOpen' | 'rightOpen';
|
|
4
5
|
type RnghSwipeableProps = ComponentProps<typeof RnghSwipeable>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { LayoutChangeEvent } from 'react-native';
|
|
3
|
+
import type { LayoutChangeEvent } from 'react-native';
|
|
4
4
|
import type { BadgeConfigType, SwitchOptionType } from '.';
|
|
5
5
|
export declare const OptionContent: ({ content, badge, }: {
|
|
6
6
|
content: ReactElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { IconName } from '../../Icon';
|
|
4
4
|
type StatusBadgeType = {
|
|
5
5
|
type: 'status';
|
|
@@ -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 type { TabType } from '..';
|
|
4
4
|
export interface ScrollableTabHeaderProps extends ViewProps {
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
4
|
-
import { IconName } from '../Icon';
|
|
4
|
+
import type { IconName } from '../Icon';
|
|
5
5
|
import type { BadgeConfigType } from './TabWithBadge';
|
|
6
6
|
export type ItemType = string | IconName | ((props: {
|
|
7
7
|
color: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NativeSyntheticEvent } from 'react-native';
|
|
1
|
+
import type { NativeSyntheticEvent } from 'react-native';
|
|
2
2
|
declare const useHandlePageScroll: () => {
|
|
3
3
|
onPageScrollStateChanged: (e: NativeSyntheticEvent<Readonly<{
|
|
4
4
|
pageScrollState: "idle" | "dragging" | "settling";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextInput as RNTextInput } from 'react-native';
|
|
3
|
-
import type {
|
|
4
|
-
import { Theme } from '../../theme';
|
|
2
|
+
import type { TextInputProps as RNTextInputProps, StyleProp, ViewStyle, TextStyle, NativeSyntheticEvent, TextInputFocusEventData, TextInput as RNTextInput } from 'react-native';
|
|
3
|
+
import type { Theme } from '../../theme';
|
|
5
4
|
import type { State } from './StyledTextInput';
|
|
6
5
|
import type { IconName } from '../Icon';
|
|
7
6
|
export type TextInputHandles = Pick<RNTextInput, 'focus' | 'clear' | 'blur' | 'isFocused' | 'setNativeProps'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { InternalTimePickerProps } from './types';
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { InternalTimePickerProps } from './types';
|
|
3
3
|
declare const InternalTimePicker: FunctionComponent<InternalTimePickerProps>;
|
|
4
4
|
export type { InternalTimePickerProps as TimePickerProps };
|
|
5
5
|
export default InternalTimePicker;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Animated, View } from 'react-native';
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
|
-
import { IntentType } from './types';
|
|
4
|
-
import { TextProps } from '../Typography/Text';
|
|
5
|
-
import { IconProps } from '../Icon';
|
|
3
|
+
import type { IntentType } from './types';
|
|
4
|
+
import type { TextProps } from '../Typography/Text';
|
|
5
|
+
import type { IconProps } from '../Icon';
|
|
6
6
|
declare const ToastContainerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
7
7
|
theme?: import("@emotion/react").Theme;
|
|
8
8
|
as?: React.ElementType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TextInput, View } from 'react-native';
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
|
-
import { BodyProps } from '../Typography/Body';
|
|
3
|
+
import type { BodyProps } from '../Typography/Body';
|
|
4
4
|
export type ToolbarMessageState = 'default' | 'filled' | 'disabled' | 'readonly';
|
|
5
5
|
declare const ToolbarWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
6
6
|
theme?: import("@emotion/react").Theme;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextInput as RNTextInput } from 'react-native';
|
|
3
|
-
import type {
|
|
4
|
-
import { ToolbarMessageState } from './StyledToolbar';
|
|
2
|
+
import type { TextInput as RNTextInput, TextInputProps as NativeTextInputProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
+
import type { ToolbarMessageState } from './StyledToolbar';
|
|
5
4
|
export type ToolbarMessageHandles = Pick<RNTextInput, 'focus' | 'clear' | 'blur' | 'isFocused' | 'setNativeProps'>;
|
|
6
5
|
export interface ToolbarMessageProps extends NativeTextInputProps {
|
|
7
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Text } from 'react-native';
|
|
2
|
-
import { TypographyIntent } from '../types';
|
|
2
|
+
import type { TypographyIntent } from '../types';
|
|
3
3
|
declare const StyledCaption: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
4
4
|
theme?: import("@emotion/react").Theme;
|
|
5
5
|
as?: React.ElementType;
|
package/types/locales/en_AU.d.ts
CHANGED
package/types/locales/en_CA.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
type ThemeName = 'swag' | 'swagDark' | 'swagLight' | 'work' | 'jobs' | 'wallet' | 'eBens' | 'ehWorkDark' | 'ehWork' | 'ehJobs';
|
|
3
4
|
declare const ThemeSwitcher: ({ name, children, }: {
|
|
4
5
|
name?: ThemeName;
|
|
@@ -12,6 +12,7 @@ declare const getSuccessTheme: (theme: GlobalTheme) => {
|
|
|
12
12
|
};
|
|
13
13
|
sizes: {
|
|
14
14
|
image: number;
|
|
15
|
+
icon: number;
|
|
15
16
|
};
|
|
16
17
|
space: {
|
|
17
18
|
titleMarginBottom: number;
|
|
@@ -22,6 +23,7 @@ declare const getSuccessTheme: (theme: GlobalTheme) => {
|
|
|
22
23
|
wrapperVerticalPadding: number;
|
|
23
24
|
margin: number;
|
|
24
25
|
padding: number;
|
|
26
|
+
secondaryCTAMarginTop: number;
|
|
25
27
|
};
|
|
26
28
|
};
|
|
27
29
|
fonts: {
|