@hero-design/rn 8.113.1 → 8.114.0
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/CHANGELOG.md +12 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +651 -399
- package/package.json +1 -1
- package/src/components/Calendar/__tests__/CalendarRange.spec.tsx +1 -1
- package/src/components/Calendar/__tests__/index.spec.tsx +1 -1
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +3 -0
- package/src/components/Progress/SegmentedBar/Legend.tsx +39 -0
- package/src/components/Progress/SegmentedBar/StyledLegend.tsx +32 -0
- package/src/components/Progress/SegmentedBar/StyledSegmentedBar.tsx +30 -0
- package/src/components/Progress/SegmentedBar/__tests__/index.spec.tsx +115 -0
- package/src/components/Progress/SegmentedBar/__tests__/utils.spec.tsx +24 -0
- package/src/components/Progress/SegmentedBar/constants.ts +8 -0
- package/src/components/Progress/SegmentedBar/hooks/validation.ts +71 -0
- package/src/components/Progress/SegmentedBar/index.tsx +153 -0
- package/src/components/Progress/SegmentedBar/types.ts +62 -0
- package/src/components/Progress/SegmentedBar/utils.ts +16 -0
- package/src/components/Progress/index.tsx +2 -0
- package/src/components/Tabs/ScrollableTabs.tsx +30 -9
- package/src/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.tsx +1 -1
- package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +31 -6
- package/src/components/Tabs/index.tsx +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +8 -0
- package/src/theme/components/progress.ts +8 -0
- package/src/types.ts +2 -0
- package/src/utils/helpers.ts +6 -0
- package/.turbo/turbo-build.log +0 -17
- package/es/index.js +0 -48751
- package/locales/en_AU.js +0 -10
- package/locales/en_AU.mjs +0 -8
- package/locales/en_CA.js +0 -10
- package/locales/en_CA.mjs +0 -8
- package/locales/index.js +0 -11
- package/locales/index.mjs +0 -9
- package/locales/types.js +0 -2
- package/locales/types.mjs +0 -1
- package/types/components/Accordion/AccordionItem.d.ts +0 -15
- package/types/components/Accordion/StyledAccordion.d.ts +0 -30
- package/types/components/Accordion/index.d.ts +0 -43
- package/types/components/Alert/StyledAlert.d.ts +0 -51
- package/types/components/Alert/index.d.ts +0 -66
- package/types/components/AnimatedScroller/AnimatedFAB.d.ts +0 -12
- package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +0 -16
- package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +0 -12
- package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +0 -12
- package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +0 -12
- package/types/components/AnimatedScroller/index.d.ts +0 -4
- package/types/components/AppCue/StyledAppCue.d.ts +0 -20
- package/types/components/AppCue/__tests__/StyledAppCue.d.ts +0 -1
- package/types/components/AppCue/index.d.ts +0 -21
- package/types/components/AppCue/utils.d.ts +0 -66
- package/types/components/Attachment/StyledAttachment.d.ts +0 -26
- package/types/components/Attachment/index.d.ts +0 -38
- package/types/components/Avatar/Avatar.d.ts +0 -34
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -30
- package/types/components/Avatar/AvatarStack/index.d.ts +0 -36
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -4
- package/types/components/Avatar/StyledAvatar.d.ts +0 -32
- package/types/components/Avatar/index.d.ts +0 -6
- package/types/components/Badge/Count.d.ts +0 -27
- package/types/components/Badge/Status.d.ts +0 -23
- package/types/components/Badge/StyledBadge.d.ts +0 -43
- package/types/components/Badge/constants.d.ts +0 -1
- package/types/components/Badge/index.d.ts +0 -8
- package/types/components/Badge/types.d.ts +0 -53
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -51
- package/types/components/BottomNavigation/index.d.ts +0 -45
- package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -5
- package/types/components/BottomSheet/Footer.d.ts +0 -7
- package/types/components/BottomSheet/Header.d.ts +0 -10
- package/types/components/BottomSheet/ScrollView.d.ts +0 -5
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -59
- package/types/components/BottomSheet/index.d.ts +0 -74
- package/types/components/Box/StyledBox.d.ts +0 -10
- package/types/components/Box/config.d.ts +0 -174
- package/types/components/Box/index.d.ts +0 -6
- package/types/components/Box/types.d.ts +0 -31
- package/types/components/Button/Button.d.ts +0 -64
- package/types/components/Button/IconButton.d.ts +0 -39
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -19
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -27
- package/types/components/Button/StyledButton.d.ts +0 -61
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -15
- package/types/components/Button/UtilityButton/index.d.ts +0 -24
- package/types/components/Button/index.d.ts +0 -10
- package/types/components/Calendar/CalendarRange.d.ts +0 -11
- package/types/components/Calendar/CalendarRangeConnector.d.ts +0 -11
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -13
- package/types/components/Calendar/StyledCalendar.d.ts +0 -61
- package/types/components/Calendar/constants.d.ts +0 -4
- package/types/components/Calendar/helpers.d.ts +0 -35
- package/types/components/Calendar/index.d.ts +0 -9
- package/types/components/Calendar/shared/hooks/useCalendarLayout.d.ts +0 -8
- package/types/components/Calendar/types.d.ts +0 -58
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -22
- package/types/components/Card/DataCard/index.d.ts +0 -22
- package/types/components/Card/StyledCard.d.ts +0 -11
- package/types/components/Card/index.d.ts +0 -32
- package/types/components/Carousel/CardCarousel.d.ts +0 -46
- package/types/components/Carousel/CarouselItem.d.ts +0 -7
- package/types/components/Carousel/StyledCardCarousel.d.ts +0 -27
- package/types/components/Carousel/StyledCarousel.d.ts +0 -55
- package/types/components/Carousel/contants.d.ts +0 -2
- package/types/components/Carousel/index.d.ts +0 -46
- package/types/components/Carousel/types.d.ts +0 -14
- package/types/components/Chart/ChartSelect/StyledChartSelect.d.ts +0 -8
- package/types/components/Chart/ChartSelect/index.d.ts +0 -63
- package/types/components/Chart/ColumnChart/ColumnChartContent.d.ts +0 -29
- package/types/components/Chart/ColumnChart/Segment.d.ts +0 -14
- package/types/components/Chart/ColumnChart/StackedSegment.d.ts +0 -32
- package/types/components/Chart/ColumnChart/StyledColumnChart.d.ts +0 -8
- package/types/components/Chart/ColumnChart/index.d.ts +0 -86
- package/types/components/Chart/Line/Line.d.ts +0 -23
- package/types/components/Chart/Line/index.d.ts +0 -41
- package/types/components/Chart/StyledChart.d.ts +0 -9
- package/types/components/Chart/index.d.ts +0 -6
- package/types/components/Chart/shared/AxisLabel.d.ts +0 -7
- package/types/components/Chart/shared/ChartFrame.d.ts +0 -30
- package/types/components/Chart/shared/ChartHeader.d.ts +0 -8
- package/types/components/Chart/shared/EmptyState.d.ts +0 -8
- package/types/components/Chart/shared/XAxis.d.ts +0 -8
- package/types/components/Chart/shared/XAxisGrid.d.ts +0 -8
- package/types/components/Chart/shared/YAxis.d.ts +0 -10
- package/types/components/Chart/shared/YAxisGrid.d.ts +0 -10
- package/types/components/Chart/shared/constants.d.ts +0 -4
- package/types/components/Chart/shared/hooks/useColorScale.d.ts +0 -7
- package/types/components/Chart/shared/hooks/useCustomColor.d.ts +0 -22
- package/types/components/Chart/shared/hooks/useGenerateTicks.d.ts +0 -6
- package/types/components/Chart/shared/hooks/useScaleBandX.d.ts +0 -7
- package/types/components/Chart/shared/hooks/useScaleLinearY.d.ts +0 -8
- package/types/components/Chart/shared/niceNumbers.d.ts +0 -12
- package/types/components/Chart/shared/utils.d.ts +0 -11
- package/types/components/Chart/types.d.ts +0 -91
- package/types/components/Checkbox/DefaultCheckBox.d.ts +0 -40
- package/types/components/Checkbox/InlineCheckBox.d.ts +0 -38
- package/types/components/Checkbox/StyledDefaultCheckBox.d.ts +0 -33
- package/types/components/Checkbox/StyledInlineCheckBox.d.ts +0 -45
- package/types/components/Checkbox/index.d.ts +0 -6
- package/types/components/Checkbox/utils.d.ts +0 -7
- package/types/components/Chip/StyledChip.d.ts +0 -13
- package/types/components/Chip/index.d.ts +0 -43
- package/types/components/Collapse/StyledCollapse.d.ts +0 -23
- package/types/components/Collapse/index.d.ts +0 -20
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -8
- package/types/components/ContentNavigator/index.d.ts +0 -43
- package/types/components/DatePicker/DatePicker.d.ts +0 -4
- package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -7
- package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -4
- package/types/components/DatePicker/DatePickerIOS.d.ts +0 -7
- package/types/components/DatePicker/Dialog/AndroidDialog.d.ts +0 -5
- package/types/components/DatePicker/Dialog/IOSDialog.d.ts +0 -4
- package/types/components/DatePicker/Dialog/type.d.ts +0 -50
- package/types/components/DatePicker/Dialog.d.ts +0 -4
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -16
- package/types/components/DatePicker/hooks/useCalculateDate.d.ts +0 -4
- package/types/components/DatePicker/hooks/useFormatDate.d.ts +0 -10
- package/types/components/DatePicker/hooks/utils.d.ts +0 -6
- package/types/components/DatePicker/index.d.ts +0 -6
- package/types/components/DatePicker/index.internal.d.ts +0 -7
- package/types/components/DatePicker/types.d.ts +0 -109
- package/types/components/Divider/StyledDivider.d.ts +0 -12
- package/types/components/Divider/index.d.ts +0 -22
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -8
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -33
- package/types/components/Drawer/StyledDrawer.d.ts +0 -49
- package/types/components/Drawer/index.d.ts +0 -27
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -18
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -31
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -15
- package/types/components/FAB/ActionGroup/index.d.ts +0 -55
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -7
- package/types/components/FAB/FAB.d.ts +0 -40
- package/types/components/FAB/Pair/StyledFAB.d.ts +0 -12
- package/types/components/FAB/Pair/index.d.ts +0 -16
- package/types/components/FAB/StyledFAB.d.ts +0 -22
- package/types/components/FAB/index.d.ts +0 -5
- package/types/components/FilterTrigger/StyledFilterTrigger.d.ts +0 -20
- package/types/components/FilterTrigger/index.d.ts +0 -39
- package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +0 -19
- package/types/components/FloatingIsland/index.d.ts +0 -24
- package/types/components/HeroDesignProvider/index.d.ts +0 -8
- package/types/components/Icon/AnimatedIcon.d.ts +0 -6
- package/types/components/Icon/HeroIcon/index.d.ts +0 -12
- package/types/components/Icon/IconList.d.ts +0 -2
- package/types/components/Icon/index.d.ts +0 -37
- package/types/components/Icon/utils.d.ts +0 -3
- package/types/components/Illustration/BaseSvg.d.ts +0 -8
- package/types/components/Illustration/assets/Add.d.ts +0 -4
- package/types/components/Illustration/assets/AllInOneSketch.d.ts +0 -4
- package/types/components/Illustration/assets/Boom.d.ts +0 -4
- package/types/components/Illustration/assets/Build.d.ts +0 -4
- package/types/components/Illustration/assets/CelebrationSketch.d.ts +0 -4
- package/types/components/Illustration/assets/Clock.d.ts +0 -4
- package/types/components/Illustration/assets/Confetti.d.ts +0 -4
- package/types/components/Illustration/assets/Connections.d.ts +0 -4
- package/types/components/Illustration/assets/DiySketch.d.ts +0 -4
- package/types/components/Illustration/assets/Error.d.ts +0 -4
- package/types/components/Illustration/assets/ErrorSketch.d.ts +0 -4
- package/types/components/Illustration/assets/FreedomSketch.d.ts +0 -4
- package/types/components/Illustration/assets/GrowingSketch.d.ts +0 -4
- package/types/components/Illustration/assets/Info.d.ts +0 -4
- package/types/components/Illustration/assets/InstantSketch.d.ts +0 -4
- package/types/components/Illustration/assets/LiftSketch.d.ts +0 -4
- package/types/components/Illustration/assets/List.d.ts +0 -4
- package/types/components/Illustration/assets/Location.d.ts +0 -4
- package/types/components/Illustration/assets/Lock.d.ts +0 -4
- package/types/components/Illustration/assets/Merge.d.ts +0 -4
- package/types/components/Illustration/assets/NoResult.d.ts +0 -4
- package/types/components/Illustration/assets/Notifications.d.ts +0 -4
- package/types/components/Illustration/assets/OnDemandSketch.d.ts +0 -4
- package/types/components/Illustration/assets/ProcessingSketch.d.ts +0 -4
- package/types/components/Illustration/assets/RemoteJobsSketch.d.ts +0 -4
- package/types/components/Illustration/assets/RewardSketch.d.ts +0 -4
- package/types/components/Illustration/assets/Search.d.ts +0 -4
- package/types/components/Illustration/assets/SearchSketch.d.ts +0 -4
- package/types/components/Illustration/assets/SecuritySketch.d.ts +0 -4
- package/types/components/Illustration/assets/SentSketch.d.ts +0 -4
- package/types/components/Illustration/assets/SpeedSketch.d.ts +0 -4
- package/types/components/Illustration/assets/Star.d.ts +0 -4
- package/types/components/Illustration/assets/Success.d.ts +0 -4
- package/types/components/Illustration/assets/SuperchargeSketch.d.ts +0 -4
- package/types/components/Illustration/assets/Unlock.d.ts +0 -4
- package/types/components/Illustration/assets/UnlockSketch.d.ts +0 -4
- package/types/components/Illustration/assets/User.d.ts +0 -4
- package/types/components/Illustration/assets/WorkflowSketch.d.ts +0 -4
- package/types/components/Illustration/constants.d.ts +0 -1
- package/types/components/Illustration/hooks/useMonoColor.d.ts +0 -5
- package/types/components/Illustration/illustrations.d.ts +0 -42
- package/types/components/Illustration/index.d.ts +0 -29
- package/types/components/Illustration/types.d.ts +0 -7
- package/types/components/Image/index.d.ts +0 -21
- package/types/components/List/BasicListItem.d.ts +0 -44
- package/types/components/List/ListItem.d.ts +0 -52
- package/types/components/List/StyledBasicListItem.d.ts +0 -27
- package/types/components/List/StyledListItem.d.ts +0 -49
- package/types/components/List/index.d.ts +0 -8
- package/types/components/LocaleProvider/__tests__/utils.specs.d.ts +0 -1
- package/types/components/LocaleProvider/context.d.ts +0 -3
- package/types/components/LocaleProvider/hooks.d.ts +0 -5
- package/types/components/LocaleProvider/index.d.ts +0 -7
- package/types/components/LocaleProvider/utils.d.ts +0 -3
- package/types/components/MapPin/Focussed.d.ts +0 -14
- package/types/components/MapPin/StyledMapPin.d.ts +0 -41
- package/types/components/MapPin/index.d.ts +0 -6
- package/types/components/MapPin/types.d.ts +0 -38
- package/types/components/Modal/index.d.ts +0 -38
- package/types/components/PageControl/StyledPageControl.d.ts +0 -12
- package/types/components/PageControl/index.d.ts +0 -22
- package/types/components/PinInput/PinCell.d.ts +0 -9
- package/types/components/PinInput/StyledPinInput.d.ts +0 -67
- package/types/components/PinInput/index.d.ts +0 -73
- package/types/components/Portal/PortalHost.d.ts +0 -5
- package/types/components/Portal/PortalProvider.d.ts +0 -7
- package/types/components/Portal/constants.d.ts +0 -8
- package/types/components/Portal/contexts.d.ts +0 -9
- package/types/components/Portal/index.d.ts +0 -19
- package/types/components/Portal/reducer.d.ts +0 -5
- package/types/components/Portal/types.d.ts +0 -23
- package/types/components/Portal/usePortal.d.ts +0 -8
- package/types/components/Portal/usePortalState.d.ts +0 -1
- package/types/components/Progress/ProgressBar.d.ts +0 -19
- package/types/components/Progress/ProgressCircle.d.ts +0 -21
- package/types/components/Progress/ProgressStep.d.ts +0 -20
- package/types/components/Progress/StyledProgressBar.d.ts +0 -18
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -15
- package/types/components/Progress/StyledStep.d.ts +0 -23
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -1
- package/types/components/Progress/constants.d.ts +0 -15
- package/types/components/Progress/index.d.ts +0 -6
- package/types/components/Progress/types.d.ts +0 -1
- package/types/components/Radio/Radio.d.ts +0 -43
- package/types/components/Radio/RadioGroup.d.ts +0 -40
- package/types/components/Radio/StyledRadio.d.ts +0 -30
- package/types/components/Radio/index.d.ts +0 -4
- package/types/components/Radio/types.d.ts +0 -10
- package/types/components/Rate/StyledRate.d.ts +0 -10
- package/types/components/Rate/index.d.ts +0 -29
- package/types/components/RefreshControl/index.d.ts +0 -5
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -3
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -18
- package/types/components/RichTextEditor/MentionList.d.ts +0 -18
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -27
- package/types/components/RichTextEditor/RichTextEditorInput.d.ts +0 -69
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -7
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -19
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -2
- package/types/components/RichTextEditor/constants.d.ts +0 -17
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -2
- package/types/components/RichTextEditor/hooks/useRichTextEditorEvents.d.ts +0 -36
- package/types/components/RichTextEditor/index.d.ts +0 -71
- package/types/components/RichTextEditor/types.d.ts +0 -2
- package/types/components/RichTextEditor/utils/events.d.ts +0 -7
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -7
- package/types/components/Search/SearchOneLine.d.ts +0 -73
- package/types/components/Search/SearchSuffixIcon.d.ts +0 -24
- package/types/components/Search/SearchTwoLine.d.ts +0 -40
- package/types/components/Search/StyledSearch.d.ts +0 -49
- package/types/components/Search/index.d.ts +0 -10
- package/types/components/Search/utils.d.ts +0 -8
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -23
- package/types/components/SectionHeading/index.d.ts +0 -45
- package/types/components/SegmentedControl/SegmentedItem.d.ts +0 -18
- package/types/components/SegmentedControl/StyledSegmentedControl.d.ts +0 -26
- package/types/components/SegmentedControl/index.d.ts +0 -31
- package/types/components/SegmentedControl/types.d.ts +0 -43
- package/types/components/Select/BaseOptionList.d.ts +0 -8
- package/types/components/Select/Footer.d.ts +0 -6
- package/types/components/Select/MultiSelect/Option.d.ts +0 -10
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -9
- package/types/components/Select/MultiSelect/index.d.ts +0 -35
- package/types/components/Select/MultiSelect/utils.d.ts +0 -2
- package/types/components/Select/SingleSelect/Option.d.ts +0 -10
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -11
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -2
- package/types/components/Select/SingleSelect/index.d.ts +0 -28
- package/types/components/Select/StyledSelect.d.ts +0 -28
- package/types/components/Select/helpers.d.ts +0 -10
- package/types/components/Select/index.d.ts +0 -10
- package/types/components/Select/index.internal.d.ts +0 -21
- package/types/components/Select/types.d.ts +0 -88
- package/types/components/Skeleton/StyledSkeleton.d.ts +0 -16
- package/types/components/Skeleton/index.d.ts +0 -14
- package/types/components/Slider/RangeSlider.d.ts +0 -60
- package/types/components/Slider/SingleSlider.d.ts +0 -53
- package/types/components/Slider/StyledRangeSlider.d.ts +0 -10
- package/types/components/Slider/constants.d.ts +0 -3
- package/types/components/Slider/index.d.ts +0 -8
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -6
- package/types/components/Spinner/StyledSpinner.d.ts +0 -34
- package/types/components/Spinner/index.d.ts +0 -18
- package/types/components/StatusScreens/Empty/StyledEmpty.d.ts +0 -27
- package/types/components/StatusScreens/Empty/index.d.ts +0 -38
- package/types/components/StatusScreens/Error/StyledError.d.ts +0 -59
- package/types/components/StatusScreens/Error/index.d.ts +0 -62
- package/types/components/StatusScreens/Success/StyledSuccess.d.ts +0 -59
- package/types/components/StatusScreens/Success/index.d.ts +0 -56
- package/types/components/Swipeable/StyledSwipeable.d.ts +0 -7
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -28
- package/types/components/Swipeable/index.d.ts +0 -50
- package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -14
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -19
- package/types/components/Switch/SelectorSwitch/index.d.ts +0 -37
- package/types/components/Switch/StyledSwitch.d.ts +0 -15
- package/types/components/Switch/index.d.ts +0 -28
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -9
- package/types/components/Tabs/SceneView.d.ts +0 -10
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -7
- package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +0 -40
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +0 -9
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +0 -10
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -55
- package/types/components/Tabs/StyledTabs.d.ts +0 -45
- package/types/components/Tabs/TabWithBadge.d.ts +0 -17
- package/types/components/Tabs/index.d.ts +0 -62
- package/types/components/Tabs/useHandlePageScroll.d.ts +0 -8
- package/types/components/Tabs/useIsFocused.d.ts +0 -6
- package/types/components/Tabs/utils.d.ts +0 -2
- package/types/components/Tag/StyledTag.d.ts +0 -17
- package/types/components/Tag/index.d.ts +0 -28
- package/types/components/TextInput/StyledTextInput.d.ts +0 -89
- package/types/components/TextInput/index.d.ts +0 -136
- package/types/components/TimePicker/StyledTimePicker.d.ts +0 -16
- package/types/components/TimePicker/TimePicker.d.ts +0 -4
- package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -4
- package/types/components/TimePicker/TimePickerIOS.d.ts +0 -4
- package/types/components/TimePicker/index.d.ts +0 -4
- package/types/components/TimePicker/index.internal.d.ts +0 -5
- package/types/components/TimePicker/types.d.ts +0 -76
- package/types/components/Toast/StyledToast.d.ts +0 -57
- package/types/components/Toast/Toast.d.ts +0 -4
- package/types/components/Toast/ToastContainer.d.ts +0 -5
- package/types/components/Toast/ToastContext.d.ts +0 -13
- package/types/components/Toast/ToastProvider.d.ts +0 -11
- package/types/components/Toast/index.d.ts +0 -8
- package/types/components/Toast/types.d.ts +0 -74
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -69
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -25
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -31
- package/types/components/Toolbar/ToolbarMessage.d.ts +0 -58
- package/types/components/Toolbar/index.d.ts +0 -14
- package/types/components/Typography/Body/StyledBody.d.ts +0 -15
- package/types/components/Typography/Body/__tests__/StyledBody.d.ts +0 -1
- package/types/components/Typography/Body/index.d.ts +0 -38
- package/types/components/Typography/Caption/StyledCaption.d.ts +0 -13
- package/types/components/Typography/Caption/index.d.ts +0 -32
- package/types/components/Typography/Label/StyledLabel.d.ts +0 -12
- package/types/components/Typography/Label/__tests__/StyledLabel.d.ts +0 -1
- package/types/components/Typography/Label/index.d.ts +0 -28
- package/types/components/Typography/Text/StyledText.d.ts +0 -13
- package/types/components/Typography/Text/index.d.ts +0 -40
- package/types/components/Typography/Title/StyledTitle.d.ts +0 -15
- package/types/components/Typography/Title/__tests__/StyledTitle.d.ts +0 -1
- package/types/components/Typography/Title/index.d.ts +0 -38
- package/types/components/Typography/index.d.ts +0 -17
- package/types/components/Typography/types.d.ts +0 -6
- package/types/index.d.ts +0 -64
- package/types/index.internal.d.ts +0 -19
- package/types/locales/en_AU.d.ts +0 -3
- package/types/locales/en_CA.d.ts +0 -3
- package/types/locales/index.d.ts +0 -5
- package/types/locales/types.d.ts +0 -10
- package/types/testHelpers/renderWithTheme.d.ts +0 -86
- package/types/testHelpers/utils.d.ts +0 -1
- package/types/theme/ThemeProvider.d.ts +0 -12
- package/types/theme/ThemeSwitcher.d.ts +0 -9
- package/types/theme/components/accordion.d.ts +0 -13
- package/types/theme/components/alert.d.ts +0 -48
- package/types/theme/components/appCue.d.ts +0 -16
- package/types/theme/components/attachment.d.ts +0 -21
- package/types/theme/components/avatar.d.ts +0 -50
- package/types/theme/components/badge.d.ts +0 -69
- package/types/theme/components/bottomNavigation.d.ts +0 -30
- package/types/theme/components/bottomSheet.d.ts +0 -29
- package/types/theme/components/button.d.ts +0 -127
- package/types/theme/components/calendar.d.ts +0 -33
- package/types/theme/components/card.d.ts +0 -26
- package/types/theme/components/cardCarousel.d.ts +0 -19
- package/types/theme/components/carousel.d.ts +0 -36
- package/types/theme/components/chart.d.ts +0 -22
- package/types/theme/components/checkbox.d.ts +0 -40
- package/types/theme/components/chip.d.ts +0 -43
- package/types/theme/components/columnChart.d.ts +0 -10
- package/types/theme/components/contentNavigator.d.ts +0 -7
- package/types/theme/components/datePicker.d.ts +0 -7
- package/types/theme/components/divider.d.ts +0 -17
- package/types/theme/components/drawer.d.ts +0 -30
- package/types/theme/components/empty.d.ts +0 -37
- package/types/theme/components/error.d.ts +0 -52
- package/types/theme/components/fab.d.ts +0 -73
- package/types/theme/components/filterTrigger.d.ts +0 -72
- package/types/theme/components/floatingIsland.d.ts +0 -32
- package/types/theme/components/icon.d.ts +0 -25
- package/types/theme/components/image.d.ts +0 -8
- package/types/theme/components/list.d.ts +0 -46
- package/types/theme/components/mapPin.d.ts +0 -43
- package/types/theme/components/pageControl.d.ts +0 -18
- package/types/theme/components/pinInput.d.ts +0 -57
- package/types/theme/components/progress.d.ts +0 -51
- package/types/theme/components/radio.d.ts +0 -24
- package/types/theme/components/rate.d.ts +0 -11
- package/types/theme/components/refreshControl.d.ts +0 -7
- package/types/theme/components/richTextEditor.d.ts +0 -28
- package/types/theme/components/search.d.ts +0 -58
- package/types/theme/components/sectionHeading.d.ts +0 -14
- package/types/theme/components/segmentedControl.d.ts +0 -55
- package/types/theme/components/select.d.ts +0 -18
- package/types/theme/components/skeleton.d.ts +0 -17
- package/types/theme/components/slider.d.ts +0 -33
- package/types/theme/components/spinner.d.ts +0 -27
- package/types/theme/components/success.d.ts +0 -45
- package/types/theme/components/swipeable.d.ts +0 -16
- package/types/theme/components/switch.d.ts +0 -38
- package/types/theme/components/tabs.d.ts +0 -31
- package/types/theme/components/tag.d.ts +0 -53
- package/types/theme/components/textInput.d.ts +0 -95
- package/types/theme/components/timePicker.d.ts +0 -7
- package/types/theme/components/toast.d.ts +0 -52
- package/types/theme/components/toolbar.d.ts +0 -48
- package/types/theme/components/typography.d.ts +0 -168
- package/types/theme/getTheme.d.ts +0 -119
- package/types/theme/global/borders.d.ts +0 -18
- package/types/theme/global/colors/__tests__/ehWork.spec.d.ts +0 -1
- package/types/theme/global/colors/eBens.d.ts +0 -6
- package/types/theme/global/colors/ehJobs.d.ts +0 -3
- package/types/theme/global/colors/ehWork.d.ts +0 -3
- package/types/theme/global/colors/ehWorkDark.d.ts +0 -3
- package/types/theme/global/colors/global.d.ts +0 -3
- package/types/theme/global/colors/globalDark.d.ts +0 -3
- package/types/theme/global/colors/jobs.d.ts +0 -6
- package/types/theme/global/colors/swag.d.ts +0 -6
- package/types/theme/global/colors/swagDark.d.ts +0 -6
- package/types/theme/global/colors/swagLight.d.ts +0 -6
- package/types/theme/global/colors/swagLightGlobal.d.ts +0 -3
- package/types/theme/global/colors/swagLightJobs.d.ts +0 -6
- package/types/theme/global/colors/swagSystemPalette.d.ts +0 -3
- package/types/theme/global/colors/types.d.ts +0 -58
- package/types/theme/global/colors/wallet.d.ts +0 -6
- package/types/theme/global/colors/work.d.ts +0 -6
- package/types/theme/global/index.d.ts +0 -78
- package/types/theme/global/scale.d.ts +0 -14
- package/types/theme/global/shadows/ehJobs.d.ts +0 -3
- package/types/theme/global/shadows/ehWork.d.ts +0 -3
- package/types/theme/global/shadows/ehWorkDark.d.ts +0 -3
- package/types/theme/global/shadows/index.d.ts +0 -3
- package/types/theme/global/shadows/types.d.ts +0 -16
- package/types/theme/global/sizes.d.ts +0 -14
- package/types/theme/global/space.d.ts +0 -16
- package/types/theme/global/typography.d.ts +0 -34
- package/types/theme/index.d.ts +0 -9
- package/types/types.d.ts +0 -42
- package/types/types.internal.d.ts +0 -18
- package/types/utils/functions.d.ts +0 -1
- package/types/utils/helpers.d.ts +0 -13
- package/types/utils/hooks.d.ts +0 -3
- package/types/utils/scale.d.ts +0 -1
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import type { IconName } from '../Icon';
|
|
4
|
-
interface SearchTwoLineProps {
|
|
5
|
-
/**
|
|
6
|
-
* Name of Icon or ReactElement to render on the left side of the input, before the user's cursor.
|
|
7
|
-
*/
|
|
8
|
-
prefix?: IconName | React.ReactElement;
|
|
9
|
-
/**
|
|
10
|
-
* Name of Icon or ReactElement to render on the right side of the input.
|
|
11
|
-
*/
|
|
12
|
-
suffix?: IconName | React.ReactElement;
|
|
13
|
-
/**
|
|
14
|
-
* Additional wrapper style.
|
|
15
|
-
*/
|
|
16
|
-
style?: StyleProp<ViewStyle>;
|
|
17
|
-
/**
|
|
18
|
-
* Label of the Input handler.
|
|
19
|
-
*/
|
|
20
|
-
label: React.ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* Content of the Input handler.
|
|
23
|
-
*/
|
|
24
|
-
content: React.ReactNode;
|
|
25
|
-
/**
|
|
26
|
-
* Testing id of the component.
|
|
27
|
-
*/
|
|
28
|
-
testID?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Variant of the SearchTwo
|
|
31
|
-
* @default 'basic'
|
|
32
|
-
*/
|
|
33
|
-
variant?: 'basic' | 'reversed';
|
|
34
|
-
/**
|
|
35
|
-
* If true, indicates that the SearchTwoLine is accessible to screen readers.
|
|
36
|
-
*/
|
|
37
|
-
accessible?: boolean;
|
|
38
|
-
}
|
|
39
|
-
declare const SearchTwoLine: (props: SearchTwoLineProps) => React.JSX.Element;
|
|
40
|
-
export default SearchTwoLine;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { TextInput, View } from 'react-native';
|
|
2
|
-
export type State = 'default' | 'filled' | 'disabled' | 'readonly';
|
|
3
|
-
type Variant = 'basic' | 'reversed';
|
|
4
|
-
export declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
|
-
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?: React.ElementType;
|
|
7
|
-
}, {}, {
|
|
8
|
-
ref?: import("react").Ref<View> | undefined;
|
|
9
|
-
}>;
|
|
10
|
-
export declare const StyledInputContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
11
|
-
theme?: import("@emotion/react").Theme;
|
|
12
|
-
as?: React.ElementType;
|
|
13
|
-
} & {
|
|
14
|
-
themeVariant: Variant;
|
|
15
|
-
}, {}, {
|
|
16
|
-
ref?: import("react").Ref<View> | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const StyledAffixContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
19
|
-
theme?: import("@emotion/react").Theme;
|
|
20
|
-
as?: React.ElementType;
|
|
21
|
-
}, {}, {
|
|
22
|
-
ref?: import("react").Ref<View> | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
export declare const StyledSuffixContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
25
|
-
theme?: import("@emotion/react").Theme;
|
|
26
|
-
as?: React.ElementType;
|
|
27
|
-
}, {}, {
|
|
28
|
-
ref?: import("react").Ref<View> | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
export declare const StyledInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
|
|
31
|
-
theme?: import("@emotion/react").Theme;
|
|
32
|
-
as?: React.ElementType;
|
|
33
|
-
}, {}, {
|
|
34
|
-
ref?: import("react").Ref<TextInput> | undefined;
|
|
35
|
-
}>;
|
|
36
|
-
export declare const StyledHandlerContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
37
|
-
theme?: import("@emotion/react").Theme;
|
|
38
|
-
as?: React.ElementType;
|
|
39
|
-
}, {}, {
|
|
40
|
-
ref?: import("react").Ref<View> | undefined;
|
|
41
|
-
}>;
|
|
42
|
-
export declare const StyledBadge: import("@emotion/native").StyledComponent<(import("../Badge/types").BasicBadgeProps & {
|
|
43
|
-
theme?: import("@emotion/react").Theme;
|
|
44
|
-
as?: React.ElementType;
|
|
45
|
-
}) | (import("../Badge/types").IconBadgeProps & {
|
|
46
|
-
theme?: import("@emotion/react").Theme;
|
|
47
|
-
as?: React.ElementType;
|
|
48
|
-
}), {}, {}>;
|
|
49
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import SearchTwoLine from './SearchTwoLine';
|
|
2
|
-
import SearchOneLine from './SearchOneLine';
|
|
3
|
-
import SearchSuffixIcon from './SearchSuffixIcon';
|
|
4
|
-
type SearchType = {
|
|
5
|
-
OneLine: typeof SearchOneLine;
|
|
6
|
-
TwoLine: typeof SearchTwoLine;
|
|
7
|
-
SuffixIcon: typeof SearchSuffixIcon;
|
|
8
|
-
};
|
|
9
|
-
declare const Search: SearchType;
|
|
10
|
-
export default Search;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IconName } from '../Icon';
|
|
3
|
-
export declare const renderPrefix: ({ prefix, }: {
|
|
4
|
-
prefix?: IconName | React.ReactElement;
|
|
5
|
-
}) => React.JSX.Element | undefined;
|
|
6
|
-
export declare const renderSuffix: ({ suffix, }: {
|
|
7
|
-
suffix?: IconName | React.ReactElement;
|
|
8
|
-
}) => React.JSX.Element | undefined;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { View } from 'react-native';
|
|
2
|
-
type StyledHeadingProps = {
|
|
3
|
-
themeSize: 'small' | 'medium';
|
|
4
|
-
};
|
|
5
|
-
declare const StyledHeading: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
6
|
-
theme?: import("@emotion/react").Theme;
|
|
7
|
-
as?: React.ElementType;
|
|
8
|
-
} & StyledHeadingProps, {}, {
|
|
9
|
-
ref?: import("react").Ref<View> | undefined;
|
|
10
|
-
}>;
|
|
11
|
-
declare const StyledIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
12
|
-
theme?: import("@emotion/react").Theme;
|
|
13
|
-
as?: React.ElementType;
|
|
14
|
-
}, {}, {
|
|
15
|
-
ref?: import("react").Ref<View> | undefined;
|
|
16
|
-
}>;
|
|
17
|
-
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
18
|
-
theme?: import("@emotion/react").Theme;
|
|
19
|
-
as?: React.ElementType;
|
|
20
|
-
}, {}, {
|
|
21
|
-
ref?: import("react").Ref<View> | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
export { StyledHeading, StyledIconWrapper, StyledWrapper };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react';
|
|
2
|
-
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
-
import type { IconName, IconProps } from '../Icon';
|
|
4
|
-
interface SectionHeadingProps extends ViewProps {
|
|
5
|
-
/**
|
|
6
|
-
* Heading text.
|
|
7
|
-
*/
|
|
8
|
-
text: string | ReactElement;
|
|
9
|
-
/**
|
|
10
|
-
* Name of the Icon.
|
|
11
|
-
*/
|
|
12
|
-
icon?: IconName | ReactElement<IconProps>;
|
|
13
|
-
/**
|
|
14
|
-
* Right corner content
|
|
15
|
-
*/
|
|
16
|
-
rightChildren?: ReactElement;
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated fontSize will be removed in the next major release.
|
|
19
|
-
* Size of the text.
|
|
20
|
-
*/
|
|
21
|
-
fontSize?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated fontWeight will be removed in the next major release.
|
|
24
|
-
* Heading's font-weight.
|
|
25
|
-
*/
|
|
26
|
-
fontWeight?: 'light' | 'regular' | 'semi-bold';
|
|
27
|
-
/**
|
|
28
|
-
* Visual intent color to apply to text.
|
|
29
|
-
*/
|
|
30
|
-
intent?: 'subdued' | 'body' | 'primary';
|
|
31
|
-
/**
|
|
32
|
-
* Additional style.
|
|
33
|
-
*/
|
|
34
|
-
style?: StyleProp<ViewStyle>;
|
|
35
|
-
/**
|
|
36
|
-
* Testing id of the component.
|
|
37
|
-
*/
|
|
38
|
-
testID?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Component size.
|
|
41
|
-
*/
|
|
42
|
-
size?: 'small' | 'medium';
|
|
43
|
-
}
|
|
44
|
-
declare const SectionHeading: ({ icon, text, rightChildren, fontSize, intent, fontWeight, size, style, testID, }: SectionHeadingProps) => ReactElement;
|
|
45
|
-
export default SectionHeading;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SegmentedControlItemConfig } from './types';
|
|
3
|
-
export interface SegmentedItemProps extends SegmentedControlItemConfig {
|
|
4
|
-
/**
|
|
5
|
-
* Whether the segment option is selected.
|
|
6
|
-
*/
|
|
7
|
-
selected?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* The size of the segment option.
|
|
10
|
-
*/
|
|
11
|
-
size?: 'medium' | 'large';
|
|
12
|
-
/**
|
|
13
|
-
* The callback function to be called when the segment option is pressed.
|
|
14
|
-
*/
|
|
15
|
-
onPress: () => void;
|
|
16
|
-
}
|
|
17
|
-
declare const SegmentedItem: ({ label, prefix, suffix, selected, size, testID, onPress, disabled, badge, subText, }: SegmentedItemProps) => React.JSX.Element;
|
|
18
|
-
export default SegmentedItem;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const StyledSegmentedControlWrapper: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
2
|
-
theme?: import("@emotion/react").Theme;
|
|
3
|
-
as?: React.ElementType;
|
|
4
|
-
} & {
|
|
5
|
-
themeSize: "medium" | "large";
|
|
6
|
-
}, {}, {}>;
|
|
7
|
-
declare const StyledSegmentedItem: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<import("react-native").View> & {
|
|
8
|
-
theme?: import("@emotion/react").Theme;
|
|
9
|
-
as?: React.ElementType;
|
|
10
|
-
} & {
|
|
11
|
-
themeSize: "medium" | "large";
|
|
12
|
-
themeSelected: boolean;
|
|
13
|
-
}, {}, {}>;
|
|
14
|
-
declare const StyledSegmentedItemWrapper: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
15
|
-
theme?: import("@emotion/react").Theme;
|
|
16
|
-
as?: React.ElementType;
|
|
17
|
-
}, {}, {}>;
|
|
18
|
-
declare const StyledSegmentedItemLabelWrapper: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
19
|
-
theme?: import("@emotion/react").Theme;
|
|
20
|
-
as?: React.ElementType;
|
|
21
|
-
}, {}, {}>;
|
|
22
|
-
declare const StyledSegmentedItemText: import("@emotion/native").StyledComponent<import("../..").BodyProps & {
|
|
23
|
-
theme?: import("@emotion/react").Theme;
|
|
24
|
-
as?: React.ElementType;
|
|
25
|
-
}, {}, {}>;
|
|
26
|
-
export { StyledSegmentedControlWrapper, StyledSegmentedItem, StyledSegmentedItemLabelWrapper, StyledSegmentedItemText, StyledSegmentedItemWrapper, };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
-
import type { SegmentedControlItemConfig } from './types';
|
|
4
|
-
export interface SegmentedControlProps extends ViewProps {
|
|
5
|
-
/**
|
|
6
|
-
* The size of the segmented control.
|
|
7
|
-
*/
|
|
8
|
-
size?: 'medium' | 'large';
|
|
9
|
-
/**
|
|
10
|
-
* The items to display in the segmented control.
|
|
11
|
-
*/
|
|
12
|
-
items: SegmentedControlItemConfig[];
|
|
13
|
-
/**
|
|
14
|
-
* The value of the selected item.
|
|
15
|
-
*/
|
|
16
|
-
value: string;
|
|
17
|
-
/**
|
|
18
|
-
* Test ID for testing purposes.
|
|
19
|
-
*/
|
|
20
|
-
testID?: string;
|
|
21
|
-
/**
|
|
22
|
-
* The style of the segmented control.
|
|
23
|
-
*/
|
|
24
|
-
style?: StyleProp<ViewStyle>;
|
|
25
|
-
/**
|
|
26
|
-
* The callback function to be called when the selected item changes.
|
|
27
|
-
*/
|
|
28
|
-
onItemPress: (item: SegmentedControlItemConfig) => void;
|
|
29
|
-
}
|
|
30
|
-
declare const SegmentedControl: ({ size, items, value, testID, style, onItemPress, }: SegmentedControlProps) => React.JSX.Element;
|
|
31
|
-
export default SegmentedControl;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { IconName } from '../Icon';
|
|
2
|
-
export type StatusBadgeType = {
|
|
3
|
-
type: 'status';
|
|
4
|
-
};
|
|
5
|
-
export type CounterBadgeType = {
|
|
6
|
-
type: 'counter';
|
|
7
|
-
value: number;
|
|
8
|
-
max?: number;
|
|
9
|
-
};
|
|
10
|
-
export interface SegmentedControlItemConfig {
|
|
11
|
-
/**
|
|
12
|
-
* The value of the segment option.
|
|
13
|
-
*/
|
|
14
|
-
value: string;
|
|
15
|
-
/**
|
|
16
|
-
* The label of the segment option.
|
|
17
|
-
*/
|
|
18
|
-
label?: string;
|
|
19
|
-
/**
|
|
20
|
-
* The subtext of the segment option.
|
|
21
|
-
*/
|
|
22
|
-
subText?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The prefix of the segment option.
|
|
25
|
-
*/
|
|
26
|
-
prefix?: IconName;
|
|
27
|
-
/**
|
|
28
|
-
* The suffix of the segment option.
|
|
29
|
-
*/
|
|
30
|
-
suffix?: IconName;
|
|
31
|
-
/**
|
|
32
|
-
* Test ID for testing purposes.
|
|
33
|
-
*/
|
|
34
|
-
testID?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Whether the segment option is disabled.
|
|
37
|
-
*/
|
|
38
|
-
disabled?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* The badge configuration of the segment option.
|
|
41
|
-
*/
|
|
42
|
-
badge?: StatusBadgeType | CounterBadgeType;
|
|
43
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SectionList, SectionListProps } from 'react-native';
|
|
3
|
-
import type { SelectOptionType, SelectProps, SectionType } from './types';
|
|
4
|
-
export type BaseOptionListProps<V, T extends SelectOptionType<V>> = Pick<SelectProps<V, T>, 'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange'> & {
|
|
5
|
-
sectionListRef?: React.RefObject<SectionList<T, SectionType>>;
|
|
6
|
-
} & SectionListProps<T, SectionType>;
|
|
7
|
-
declare const BaseOptionList: <V, T extends SelectOptionType<V>>({ keyExtractor, loading, onEndReached, onQueryChange, sections, renderItem, sectionListRef, ...rest }: BaseOptionListProps<V, T>) => React.JSX.Element;
|
|
8
|
-
export default BaseOptionList;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactElement } from 'react';
|
|
3
|
-
declare const Option: ({ text, disabled, selected, onPress, highlighted, }: {
|
|
4
|
-
text: string | ReactElement;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
selected: boolean;
|
|
7
|
-
onPress: () => void;
|
|
8
|
-
highlighted?: boolean;
|
|
9
|
-
}) => React.JSX.Element;
|
|
10
|
-
export default Option;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { BaseOptionListProps } from '../BaseOptionList';
|
|
3
|
-
import type { MultiSelectProps } from '.';
|
|
4
|
-
import type { SelectOptionType } from '../types';
|
|
5
|
-
type OptionListProps<V, T extends SelectOptionType<V>> = Pick<MultiSelectProps<V, T>, 'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange' | 'value' | 'renderOption'> & {
|
|
6
|
-
onPress: (value: V[]) => void;
|
|
7
|
-
} & BaseOptionListProps<V, T>;
|
|
8
|
-
declare const OptionList: <V, T extends SelectOptionType<V>>({ keyExtractor, loading, onEndReached, onPress, onQueryChange, sections, renderOption, value, sectionListRef, ...rest }: OptionListProps<V, T>) => React.JSX.Element;
|
|
9
|
-
export default OptionList;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TextInputProps as NativeTextInputProps } from 'react-native';
|
|
3
|
-
import type { TextInputProps } from '../../TextInput';
|
|
4
|
-
import type { SelectOptionType, SelectProps } from '../types';
|
|
5
|
-
export interface MultiSelectProps<V, T extends SelectOptionType<V> = SelectOptionType<V>> extends SelectProps<V, T> {
|
|
6
|
-
/**
|
|
7
|
-
* Current selected value.
|
|
8
|
-
*/
|
|
9
|
-
value: V[];
|
|
10
|
-
/**
|
|
11
|
-
* event handler for footer button.
|
|
12
|
-
*/
|
|
13
|
-
onConfirm: (value: V[]) => void;
|
|
14
|
-
/**
|
|
15
|
-
* Footer label.
|
|
16
|
-
*/
|
|
17
|
-
footerLabel: string | (({ value, closeModal, }: {
|
|
18
|
-
value: V[];
|
|
19
|
-
closeModal: () => void;
|
|
20
|
-
}) => React.ReactNode);
|
|
21
|
-
/**
|
|
22
|
-
* Customise the selected value rendering.
|
|
23
|
-
*/
|
|
24
|
-
renderSelectedValue?: (selectedValue: V[], inputProps: NativeTextInputProps) => React.ReactNode;
|
|
25
|
-
/**
|
|
26
|
-
* Supported orientations for the MultiSelect modal, iOS only.
|
|
27
|
-
*/
|
|
28
|
-
supportedOrientations?: ('portrait' | 'landscape')[];
|
|
29
|
-
}
|
|
30
|
-
export interface InternalMultiSelectProps<V, T extends SelectOptionType<V> = SelectOptionType<V>> extends MultiSelectProps<V, T> {
|
|
31
|
-
TextInputComponent?: React.ComponentType<TextInputProps>;
|
|
32
|
-
groupStyleEnabled?: boolean;
|
|
33
|
-
}
|
|
34
|
-
declare function MultiSelect<V, T extends SelectOptionType<V>>({ footerLabel, label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, supportedOrientations, bottomSheetConfig, groupStyleEnabled, ...rest }: InternalMultiSelectProps<V, T>): React.JSX.Element;
|
|
35
|
-
export default MultiSelect;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactElement } from 'react';
|
|
3
|
-
declare const Option: ({ text, disabled, selected, onPress, highlighted, }: {
|
|
4
|
-
text: string | ReactElement;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
selected: boolean;
|
|
7
|
-
onPress: () => void;
|
|
8
|
-
highlighted?: boolean;
|
|
9
|
-
}) => React.JSX.Element;
|
|
10
|
-
export default Option;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SectionList } from 'react-native';
|
|
3
|
-
import type { SingleSelectProps } from '.';
|
|
4
|
-
import type { BaseOptionListProps } from '../BaseOptionList';
|
|
5
|
-
import type { SelectOptionType, SectionType } from '../types';
|
|
6
|
-
type OptionListProps<V, T extends SelectOptionType<V>> = Pick<SingleSelectProps<V, T>, 'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange' | 'value' | 'renderOption'> & {
|
|
7
|
-
onPress: (value: V | null) => void;
|
|
8
|
-
sectionListRef?: React.RefObject<SectionList<T, SectionType>>;
|
|
9
|
-
} & BaseOptionListProps<V, T>;
|
|
10
|
-
declare const OptionList: <V, T extends SelectOptionType<V>>({ keyExtractor, loading, onEndReached, onPress, onQueryChange, sections, renderOption, value, sectionListRef, ...rest }: OptionListProps<V, T>) => React.JSX.Element;
|
|
11
|
-
export default OptionList;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TextInputProps as NativeTextInputProps } from 'react-native';
|
|
3
|
-
import type { TextInputProps } from '../../TextInput';
|
|
4
|
-
import type { SelectOptionType, SelectProps } from '../types';
|
|
5
|
-
export interface SingleSelectProps<V, T extends SelectOptionType<V> = SelectOptionType<V>> extends SelectProps<V, T> {
|
|
6
|
-
/**
|
|
7
|
-
* Current selected value.
|
|
8
|
-
*/
|
|
9
|
-
value: V | null;
|
|
10
|
-
/**
|
|
11
|
-
* On select event handler
|
|
12
|
-
*/
|
|
13
|
-
onConfirm: (value: V | null) => void;
|
|
14
|
-
/**
|
|
15
|
-
* Customise the selected value rendering.
|
|
16
|
-
*/
|
|
17
|
-
renderSelectedValue?: (selectedValue: V | null, inputProps: NativeTextInputProps) => React.ReactNode;
|
|
18
|
-
/**
|
|
19
|
-
* Supported orientations for the Select modal, iOS only.
|
|
20
|
-
*/
|
|
21
|
-
supportedOrientations?: ('portrait' | 'landscape')[];
|
|
22
|
-
}
|
|
23
|
-
export interface InternalSingleSelectProps<V, T extends SelectOptionType<V> = SelectOptionType<V>> extends SingleSelectProps<V, T> {
|
|
24
|
-
TextInputComponent?: React.ComponentType<TextInputProps>;
|
|
25
|
-
groupStyleEnabled?: boolean;
|
|
26
|
-
}
|
|
27
|
-
declare const SingleSelect: <V, T extends SelectOptionType<V>>({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, supportedOrientations, bottomSheetConfig, groupStyleEnabled, ...rest }: InternalSingleSelectProps<V, T>) => React.JSX.Element;
|
|
28
|
-
export default SingleSelect;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { SectionList, View } from 'react-native';
|
|
2
|
-
declare const SectionSpacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?: React.ElementType;
|
|
5
|
-
}, {}, {
|
|
6
|
-
ref?: import("react").Ref<View> | undefined;
|
|
7
|
-
}>;
|
|
8
|
-
declare const OptionSpacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
9
|
-
theme?: import("@emotion/react").Theme;
|
|
10
|
-
as?: React.ElementType;
|
|
11
|
-
}, {}, {
|
|
12
|
-
ref?: import("react").Ref<View> | undefined;
|
|
13
|
-
}>;
|
|
14
|
-
declare const StyledSearchBar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
15
|
-
theme?: import("@emotion/react").Theme;
|
|
16
|
-
as?: React.ElementType;
|
|
17
|
-
}, {}, {
|
|
18
|
-
ref?: import("react").Ref<View> | undefined;
|
|
19
|
-
}>;
|
|
20
|
-
declare const StyledSectionList: typeof SectionList;
|
|
21
|
-
declare const StyledTouchableOpacity: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
|
|
22
|
-
theme?: import("@emotion/react").Theme;
|
|
23
|
-
as?: React.ElementType;
|
|
24
|
-
} & {
|
|
25
|
-
themeGroupStyleEnabled: boolean;
|
|
26
|
-
themeHasError: boolean;
|
|
27
|
-
}, {}, {}>;
|
|
28
|
-
export { SectionSpacer, OptionSpacer, StyledSearchBar, StyledSectionList, StyledTouchableOpacity, };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { SectionData, CombinedOptionsType, SelectOptionType } from './types';
|
|
2
|
-
export declare const isSections: <V, T extends SelectOptionType<V>>(options: CombinedOptionsType<V, T>) => options is SectionData<V, T>[];
|
|
3
|
-
export declare const toSections: <V, T extends SelectOptionType<V>>(options: CombinedOptionsType<V, T>) => SectionData<V, T>[];
|
|
4
|
-
export declare const toFlatOptions: <V, T extends SelectOptionType<V>>(options: CombinedOptionsType<V, T>) => SelectOptionType<V>[];
|
|
5
|
-
type ScrollParams = {
|
|
6
|
-
itemIndex: number;
|
|
7
|
-
sectionIndex: number;
|
|
8
|
-
};
|
|
9
|
-
export declare const getScrollParams: <V, T extends SelectOptionType<V>>(value: V, sections: SectionData<V, T>[]) => ScrollParams;
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { MultiSelectProps } from './MultiSelect';
|
|
2
|
-
import type { SingleSelectProps } from './SingleSelect';
|
|
3
|
-
import type { SelectOptionType } from './types';
|
|
4
|
-
export type { MultiSelectProps, SingleSelectProps };
|
|
5
|
-
type SingleSelectType = <V, T extends SelectOptionType<V> = SelectOptionType<V>>(props: Omit<SingleSelectProps<V, T>, 'TextInputComponent' | 'groupStyleEnabled'>) => React.ReactElement;
|
|
6
|
-
type MultiSelectType = <V, T extends SelectOptionType<V> = SelectOptionType<V>>(props: Omit<MultiSelectProps<V, T>, 'TextInputComponent' | 'groupStyleEnabled'>) => React.ReactElement;
|
|
7
|
-
declare const _default: SingleSelectType & {
|
|
8
|
-
Multi: MultiSelectType;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* INTERNAL API - Do not remove this file
|
|
3
|
-
*
|
|
4
|
-
* This file exports the full Select component API with all internal props exposed.
|
|
5
|
-
* It's used by:
|
|
6
|
-
* 1. @hero-design/rn-work-uikit package - allows access to internal props like
|
|
7
|
-
* TextInputComponent and groupStyleEnabled for customization
|
|
8
|
-
* 2. Internal tests - enables testing of the complete component API
|
|
9
|
-
* 3. Type definitions - provides InternalMultiSelectProps and InternalSingleSelectProps
|
|
10
|
-
*
|
|
11
|
-
* The public API (index.tsx) omits internal props to keep the external interface clean,
|
|
12
|
-
* but this internal version is essential for extending the library functionality.
|
|
13
|
-
*/
|
|
14
|
-
import MultiSelect from './MultiSelect';
|
|
15
|
-
import type { InternalMultiSelectProps } from './MultiSelect';
|
|
16
|
-
import type { InternalSingleSelectProps } from './SingleSelect';
|
|
17
|
-
export type { InternalMultiSelectProps as MultiSelectProps, InternalSingleSelectProps as SingleSelectProps, };
|
|
18
|
-
declare const _default: (<V, T extends import("./types").SelectOptionType<V>>({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, supportedOrientations, bottomSheetConfig, groupStyleEnabled, ...rest }: InternalSingleSelectProps<V, T>) => import("react").JSX.Element) & {
|
|
19
|
-
Multi: typeof MultiSelect;
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react';
|
|
2
|
-
import type { ListRenderItemInfo, SectionListData, SectionListRenderItemInfo, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import type { BottomSheetProps } from '../BottomSheet';
|
|
4
|
-
import type { TextInputProps } from '../TextInput';
|
|
5
|
-
export type SelectOptionType<V> = {
|
|
6
|
-
value: V;
|
|
7
|
-
text: string;
|
|
8
|
-
key?: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
highlighted?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export type SectionType = {
|
|
13
|
-
category: string;
|
|
14
|
-
};
|
|
15
|
-
export type SectionData<V, T extends SelectOptionType<V>> = SectionListData<T, SectionType>;
|
|
16
|
-
export type CombinedOptionsType<V, T extends SelectOptionType<V>> = T[] | SectionData<V, T>[];
|
|
17
|
-
export type ListRenderOptionInfo<V, T extends SelectOptionType<V>> = ListRenderItemInfo<T> & {
|
|
18
|
-
selected: boolean;
|
|
19
|
-
onPress: () => void;
|
|
20
|
-
};
|
|
21
|
-
export type SectionListRenderOptionInfo<V, T extends SelectOptionType<V>> = SectionListRenderItemInfo<T, SectionType> & {
|
|
22
|
-
selected: boolean;
|
|
23
|
-
onPress: () => void;
|
|
24
|
-
};
|
|
25
|
-
export interface SelectProps<V, T extends SelectOptionType<V>> extends Pick<TextInputProps, 'editable' | 'disabled' | 'error' | 'required'> {
|
|
26
|
-
/**
|
|
27
|
-
* An array of options to be selected.
|
|
28
|
-
*/
|
|
29
|
-
options: CombinedOptionsType<V, T>;
|
|
30
|
-
/**
|
|
31
|
-
* Customize option renderer.
|
|
32
|
-
*/
|
|
33
|
-
renderOption?: ((info: ListRenderOptionInfo<V, T>) => ReactElement) | ((info: SectionListRenderOptionInfo<V, T>) => ReactElement);
|
|
34
|
-
/**
|
|
35
|
-
* Used to extract a unique key for a given option at the specified index. Key is used for caching and as the react key to track item re-ordering.
|
|
36
|
-
* The default extractor checks option.key, and then falls back to using the index, like React does.
|
|
37
|
-
*/
|
|
38
|
-
keyExtractor?: (option: T, index?: number) => string;
|
|
39
|
-
/**
|
|
40
|
-
* Current search value.
|
|
41
|
-
*/
|
|
42
|
-
query?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Search bar onChangeText event handler
|
|
45
|
-
*/
|
|
46
|
-
onQueryChange?: (value: string) => void;
|
|
47
|
-
/**
|
|
48
|
-
* Event handler when selection dismiss
|
|
49
|
-
*/
|
|
50
|
-
onDismiss?: () => void;
|
|
51
|
-
/**
|
|
52
|
-
* Event handler when end of the list reached
|
|
53
|
-
*/
|
|
54
|
-
onEndReached?: () => void;
|
|
55
|
-
/**
|
|
56
|
-
* Show loading indicator at bottom of option list
|
|
57
|
-
*/
|
|
58
|
-
loading?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Props that are passed to TextInput.
|
|
61
|
-
* Required is deprecated and will be removed in the next major release.
|
|
62
|
-
* Please use the outer required instead.
|
|
63
|
-
*/
|
|
64
|
-
inputProps?: Pick<TextInputProps, 'loading' | 'numberOfLines'>;
|
|
65
|
-
/**
|
|
66
|
-
* Field label.
|
|
67
|
-
*/
|
|
68
|
-
label: string;
|
|
69
|
-
/**
|
|
70
|
-
* Additional style.
|
|
71
|
-
*/
|
|
72
|
-
style?: StyleProp<ViewStyle>;
|
|
73
|
-
/**
|
|
74
|
-
* Testing id of the component.
|
|
75
|
-
*/
|
|
76
|
-
testID?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Config for the bottom sheet.
|
|
79
|
-
*/
|
|
80
|
-
bottomSheetConfig?: {
|
|
81
|
-
variant?: BottomSheetProps['variant'];
|
|
82
|
-
header?: BottomSheetProps['header'];
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* Inject a custom TextInput component (e.g., from rn-work-uikit). Defaults to local TextInput.
|
|
86
|
-
*/
|
|
87
|
-
TextInputComponent?: React.ComponentType<TextInputProps>;
|
|
88
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type ThemeIntent = 'light' | 'dark';
|
|
2
|
-
type ThemeVariant = 'circular' | 'rectangular' | 'rounded';
|
|
3
|
-
declare const StyledContainer: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme;
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
} & {
|
|
7
|
-
themeIntent: ThemeIntent;
|
|
8
|
-
themeVariant: ThemeVariant;
|
|
9
|
-
}, {}, {}>;
|
|
10
|
-
declare const StyledGradientContainer: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
11
|
-
theme?: import("@emotion/react").Theme;
|
|
12
|
-
as?: React.ElementType;
|
|
13
|
-
} & {
|
|
14
|
-
themeVariant: ThemeVariant;
|
|
15
|
-
}, {}, {}>;
|
|
16
|
-
export { StyledContainer, StyledGradientContainer };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ViewProps } from 'react-native';
|
|
3
|
-
interface SkeletonProps extends ViewProps {
|
|
4
|
-
/**
|
|
5
|
-
* Intent of the component.
|
|
6
|
-
*/
|
|
7
|
-
intent?: 'light' | 'dark';
|
|
8
|
-
/**
|
|
9
|
-
* Variant of the component.
|
|
10
|
-
*/
|
|
11
|
-
variant?: 'circular' | 'rectangular' | 'rounded';
|
|
12
|
-
}
|
|
13
|
-
declare const Skeleton: ({ intent, variant, style, onLayout, ...props }: SkeletonProps) => React.JSX.Element;
|
|
14
|
-
export default Skeleton;
|