@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,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { CarouselData } from './types';
|
|
3
|
-
interface CarouselItemProps extends Omit<CarouselData, 'background'> {
|
|
4
|
-
width: number;
|
|
5
|
-
}
|
|
6
|
-
declare const CarouselItem: ({ width, image, content, heading, body, }: CarouselItemProps) => React.JSX.Element;
|
|
7
|
-
export default CarouselItem;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { ViewProps } from 'react-native';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import type { CardProps } from '../Card';
|
|
4
|
-
import type { PageControlProps } from '../PageControl';
|
|
5
|
-
declare const StyledPageControl: import("@emotion/native").StyledComponent<PageControlProps & {
|
|
6
|
-
theme?: import("@emotion/react").Theme;
|
|
7
|
-
as?: React.ElementType;
|
|
8
|
-
}, {}, {}>;
|
|
9
|
-
declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme;
|
|
11
|
-
as?: React.ElementType;
|
|
12
|
-
}, {}, {
|
|
13
|
-
ref?: import("react").Ref<View> | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
declare const StyledCard: import("@emotion/native").StyledComponent<CardProps & {
|
|
16
|
-
theme?: import("@emotion/react").Theme;
|
|
17
|
-
as?: React.ElementType;
|
|
18
|
-
}, {}, {}>;
|
|
19
|
-
declare const StyledItemWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
20
|
-
theme?: import("@emotion/react").Theme;
|
|
21
|
-
as?: React.ElementType;
|
|
22
|
-
} & {
|
|
23
|
-
themeGap: "xsmall" | "small" | "medium";
|
|
24
|
-
}, {}, {
|
|
25
|
-
ref?: import("react").Ref<View> | undefined;
|
|
26
|
-
}>;
|
|
27
|
-
export { StyledCard, StyledItemWrapper, StyledWrapper, StyledPageControl };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { ImageResizeMode } from 'react-native';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
declare const StyledBackDrop: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme;
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
} & {
|
|
7
|
-
themeSlideBackground: string;
|
|
8
|
-
}, {}, {
|
|
9
|
-
ref?: import("react").Ref<View> | undefined;
|
|
10
|
-
}>;
|
|
11
|
-
declare const StyledCarouselView: 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 StyledCarouselHeading: import("@emotion/native").StyledComponent<import("../..").TitleProps & {
|
|
18
|
-
theme?: import("@emotion/react").Theme;
|
|
19
|
-
as?: React.ElementType;
|
|
20
|
-
}, {}, {}>;
|
|
21
|
-
declare const StyledCarouselImage: import("@emotion/native").StyledComponent<import("../Image").ImageProps & {
|
|
22
|
-
theme?: import("@emotion/react").Theme;
|
|
23
|
-
as?: React.ElementType;
|
|
24
|
-
}, {}, {}>;
|
|
25
|
-
declare const StyledCustomSizeCarouselImage: import("@emotion/native").StyledComponent<import("../Image").ImageProps & {
|
|
26
|
-
theme?: import("@emotion/react").Theme;
|
|
27
|
-
as?: React.ElementType;
|
|
28
|
-
} & {
|
|
29
|
-
themeHeight?: number | `${number}%`;
|
|
30
|
-
themeWidth?: number | `${number}%`;
|
|
31
|
-
themeResizeMode?: ImageResizeMode;
|
|
32
|
-
}, {}, {}>;
|
|
33
|
-
declare const StyledCarouselContentWrapper: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
34
|
-
theme?: import("@emotion/react").Theme;
|
|
35
|
-
as?: React.ElementType;
|
|
36
|
-
} & {
|
|
37
|
-
width: number;
|
|
38
|
-
}, {}, {}>;
|
|
39
|
-
declare const StyledCarouselFooterWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
40
|
-
theme?: import("@emotion/react").Theme;
|
|
41
|
-
as?: React.ElementType;
|
|
42
|
-
}, {}, {
|
|
43
|
-
ref?: import("react").Ref<View> | undefined;
|
|
44
|
-
}>;
|
|
45
|
-
declare const StyledPageControl: import("@emotion/native").StyledComponent<import("../PageControl").PageControlProps & {
|
|
46
|
-
theme?: import("@emotion/react").Theme;
|
|
47
|
-
as?: React.ElementType;
|
|
48
|
-
}, {}, {}>;
|
|
49
|
-
declare const StyledPageControlWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
50
|
-
theme?: import("@emotion/react").Theme;
|
|
51
|
-
as?: React.ElementType;
|
|
52
|
-
}, {}, {
|
|
53
|
-
ref?: import("react").Ref<View> | undefined;
|
|
54
|
-
}>;
|
|
55
|
-
export { StyledBackDrop, StyledCarouselView, StyledCarouselHeading, StyledCarouselImage, StyledCarouselContentWrapper, StyledCarouselFooterWrapper, StyledCustomSizeCarouselImage, StyledPageControl, StyledPageControlWrapper, };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { Dispatch, ReactElement, SetStateAction } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
4
|
-
import type { CarouselData } from './types';
|
|
5
|
-
interface CarouselProps extends ViewProps {
|
|
6
|
-
/**
|
|
7
|
-
* Additional style.
|
|
8
|
-
*/
|
|
9
|
-
style?: StyleProp<ViewStyle>;
|
|
10
|
-
/**
|
|
11
|
-
* Testing id of the component.
|
|
12
|
-
*/
|
|
13
|
-
testID?: string;
|
|
14
|
-
/**
|
|
15
|
-
* onItemIndexChange event handler receiving index of selected Item.
|
|
16
|
-
*/
|
|
17
|
-
onItemIndexChange?: Dispatch<SetStateAction<number>>;
|
|
18
|
-
/**
|
|
19
|
-
* Carousel data.
|
|
20
|
-
*/
|
|
21
|
-
items: CarouselData[];
|
|
22
|
-
/**
|
|
23
|
-
* Render action elements function.
|
|
24
|
-
*/
|
|
25
|
-
renderActions?: (pageIndex: number) => ReactElement;
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated will be removed in 9.0.0
|
|
28
|
-
*
|
|
29
|
-
* Should show paginations
|
|
30
|
-
*/
|
|
31
|
-
shouldShowPagination?: (pageIndex: number) => boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Current selected item index.
|
|
34
|
-
*/
|
|
35
|
-
selectedItemIndex?: number;
|
|
36
|
-
/**
|
|
37
|
-
* Position of the page control
|
|
38
|
-
*
|
|
39
|
-
* pageControlPosition['bottom'] - @deprecated
|
|
40
|
-
*/
|
|
41
|
-
pageControlPosition?: 'top' | 'bottom';
|
|
42
|
-
}
|
|
43
|
-
declare const _default: (({ items, onItemIndexChange, renderActions, selectedItemIndex, style, shouldShowPagination, testID, pageControlPosition, ...nativeProps }: CarouselProps) => React.JSX.Element) & {
|
|
44
|
-
Card: React.ForwardRefExoticComponent<Omit<import("./CardCarousel").CardCarouselProps, "ref"> & React.RefAttributes<import("./CardCarousel").CardCarouselHandles>>;
|
|
45
|
-
};
|
|
46
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ImageSourcePropType, ImageResizeMode } from 'react-native';
|
|
3
|
-
export type CarouselImageProps = ImageSourcePropType & {
|
|
4
|
-
height?: number | `${number}%`;
|
|
5
|
-
width?: number | `${number}%`;
|
|
6
|
-
resizeMode?: ImageResizeMode;
|
|
7
|
-
};
|
|
8
|
-
export type CarouselData = {
|
|
9
|
-
image?: CarouselImageProps | string;
|
|
10
|
-
content?: ReactNode;
|
|
11
|
-
heading?: string;
|
|
12
|
-
body?: string;
|
|
13
|
-
background: string;
|
|
14
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { View } from 'react-native';
|
|
2
|
-
declare const StyledHeaderContainer: 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
|
-
export { StyledHeaderContainer };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import type { BottomSheetProps } from '../../BottomSheet';
|
|
4
|
-
/**
|
|
5
|
-
* Represents a selectable option for ChartSelect.
|
|
6
|
-
* @template V The type of the option value.
|
|
7
|
-
* @property value The value of the option. Used for selection and comparison.
|
|
8
|
-
* @property text The display text for the option.
|
|
9
|
-
* @property key (Optional) A unique key for the option. If provided, used as the FlatList key for better performance and stability.
|
|
10
|
-
*/
|
|
11
|
-
type OptionType<V> = {
|
|
12
|
-
value: V;
|
|
13
|
-
text: string;
|
|
14
|
-
key?: string;
|
|
15
|
-
};
|
|
16
|
-
export interface SingleSelectProps<V> {
|
|
17
|
-
/**
|
|
18
|
-
* The currently selected value. Should match one of the values in the options array.
|
|
19
|
-
*/
|
|
20
|
-
value: V | null;
|
|
21
|
-
/**
|
|
22
|
-
* Callback fired when an option is selected.
|
|
23
|
-
* @param value The value of the selected option.
|
|
24
|
-
*/
|
|
25
|
-
onConfirm: (value: V) => void;
|
|
26
|
-
/**
|
|
27
|
-
* Array of supported orientations for the Select modal (iOS only).
|
|
28
|
-
* Defaults to ['portrait'].
|
|
29
|
-
*/
|
|
30
|
-
supportedOrientations?: ('portrait' | 'landscape')[];
|
|
31
|
-
/**
|
|
32
|
-
* The list of selectable options. Each option should have a value and display text.
|
|
33
|
-
*/
|
|
34
|
-
options: OptionType<V>[];
|
|
35
|
-
/**
|
|
36
|
-
* Callback fired when the selection modal is dismissed without selecting an option.
|
|
37
|
-
*/
|
|
38
|
-
onDismiss?: () => void;
|
|
39
|
-
/**
|
|
40
|
-
* Configuration for the bottom sheet modal.
|
|
41
|
-
* - variant: The visual variant of the bottom sheet.
|
|
42
|
-
* - header: Optional header text to display at the top of the bottom sheet.
|
|
43
|
-
*/
|
|
44
|
-
bottomSheetConfig?: {
|
|
45
|
-
variant?: BottomSheetProps['variant'];
|
|
46
|
-
header?: BottomSheetProps['header'];
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* If true, the select is disabled and cannot be interacted with.
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
disabled?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Additional style to apply to the select container.
|
|
55
|
-
*/
|
|
56
|
-
style?: StyleProp<ViewStyle>;
|
|
57
|
-
/**
|
|
58
|
-
* Optional test ID for testing purposes. Applied to the main touchable area.
|
|
59
|
-
*/
|
|
60
|
-
testID?: string;
|
|
61
|
-
}
|
|
62
|
-
declare const SingleSelect: <V>({ onConfirm, onDismiss, options, disabled, style, testID, value, supportedOrientations, bottomSheetConfig, }: SingleSelectProps<V>) => React.JSX.Element;
|
|
63
|
-
export default SingleSelect;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { DataValue, Series, XAxisConfig, YAxisConfig } from '../types';
|
|
3
|
-
interface ColumnChartContentProps {
|
|
4
|
-
coordinates: {
|
|
5
|
-
yStart: number;
|
|
6
|
-
yEnd: number;
|
|
7
|
-
xStart: number;
|
|
8
|
-
xEnd: number;
|
|
9
|
-
};
|
|
10
|
-
data: Array<Series<Array<DataValue>>>;
|
|
11
|
-
yAxisConfig: Omit<YAxisConfig, 'minValue'>;
|
|
12
|
-
xAxisConfig: XAxisConfig;
|
|
13
|
-
/**
|
|
14
|
-
* Called when a bar (column segment) is pressed.
|
|
15
|
-
*/
|
|
16
|
-
onBarPress?: (info: {
|
|
17
|
-
value: number | undefined;
|
|
18
|
-
xLabel: string;
|
|
19
|
-
seriesLabel: string;
|
|
20
|
-
seriesIndex: number;
|
|
21
|
-
xIndex: number;
|
|
22
|
-
}) => void;
|
|
23
|
-
/**
|
|
24
|
-
* A function that maps series labels to colors.
|
|
25
|
-
*/
|
|
26
|
-
colorScale?: (label: string) => string | undefined;
|
|
27
|
-
}
|
|
28
|
-
declare const _default: React.MemoExoticComponent<({ coordinates, data, yAxisConfig, xAxisConfig, onBarPress, colorScale, }: ColumnChartContentProps) => React.JSX.Element>;
|
|
29
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface SegmentProps {
|
|
3
|
-
xCenter: number;
|
|
4
|
-
y: number;
|
|
5
|
-
height: number;
|
|
6
|
-
color?: string;
|
|
7
|
-
value?: number;
|
|
8
|
-
xLabel: string;
|
|
9
|
-
seriesLabel: string;
|
|
10
|
-
testID: string;
|
|
11
|
-
onPress?: () => void;
|
|
12
|
-
}
|
|
13
|
-
declare const _default: React.MemoExoticComponent<({ xCenter, y, height, color, value, xLabel, seriesLabel, testID, onPress, }: SegmentProps) => React.JSX.Element>;
|
|
14
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { DataValue, YAxisConfig } from '../types';
|
|
3
|
-
interface StackedSegmentProps {
|
|
4
|
-
stackedData: Array<DataValue>;
|
|
5
|
-
seriesLabels: Array<string>;
|
|
6
|
-
xLabel: string;
|
|
7
|
-
yAxisConfig: YAxisConfig;
|
|
8
|
-
coordinates: {
|
|
9
|
-
yStart: number;
|
|
10
|
-
yEnd: number;
|
|
11
|
-
xStart: number;
|
|
12
|
-
xEnd: number;
|
|
13
|
-
};
|
|
14
|
-
xCenter: number;
|
|
15
|
-
xIndex: number;
|
|
16
|
-
/**
|
|
17
|
-
* Called when a bar (column segment) is pressed.
|
|
18
|
-
*/
|
|
19
|
-
onBarPress?: (info: {
|
|
20
|
-
value: number | undefined;
|
|
21
|
-
xLabel: string;
|
|
22
|
-
seriesLabel: string;
|
|
23
|
-
seriesIndex: number;
|
|
24
|
-
xIndex: number;
|
|
25
|
-
}) => void;
|
|
26
|
-
/**
|
|
27
|
-
* A function that maps series labels to colors.
|
|
28
|
-
*/
|
|
29
|
-
colorScale?: (label: string) => string | undefined;
|
|
30
|
-
}
|
|
31
|
-
declare const _default: React.NamedExoticComponent<StackedSegmentProps>;
|
|
32
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { View } from 'react-native';
|
|
2
|
-
declare const StyledColumnChartWrapper: 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
|
-
export { StyledColumnChartWrapper };
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ViewStyle } from 'react-native';
|
|
3
|
-
import type { DataValue, HeaderConfig, Series, StyleConfig, XAxisConfig, YAxisConfig } from '../types';
|
|
4
|
-
/**
|
|
5
|
-
* Props for the ColumnChart component.
|
|
6
|
-
*
|
|
7
|
-
* @property data - The data to be displayed in the chart. Each item represents a series.
|
|
8
|
-
* @property yAxisConfig - Optional configuration for the Y axis.
|
|
9
|
-
* @property xAxisConfig - Optional configuration for the X axis.
|
|
10
|
-
* @property style - Additional style for the root View. Follows the same convention as other components (e.g., Button).
|
|
11
|
-
* @property testID - Testing id of the component. Passed to the root View and used as a suffix for inner elements.
|
|
12
|
-
* @property headerConfig - Optional header configuration (title, actions).
|
|
13
|
-
* @property emptyText - Optional text to display when data is empty.
|
|
14
|
-
* @property onBarPress - Called when a bar (column segment) is pressed. Receives info about the bar.
|
|
15
|
-
*/
|
|
16
|
-
export interface ColumnChartProps {
|
|
17
|
-
/**
|
|
18
|
-
* The data to be displayed in the chart. Each item represents a series.
|
|
19
|
-
*/
|
|
20
|
-
data: Array<Series<Array<DataValue>>>;
|
|
21
|
-
/**
|
|
22
|
-
* Optional configuration for the Y axis.
|
|
23
|
-
* Note: minValue is omitted and always set to zero internally by the component.
|
|
24
|
-
*/
|
|
25
|
-
yAxisConfig?: Omit<YAxisConfig, 'minValue'>;
|
|
26
|
-
/**
|
|
27
|
-
* Optional configuration for the X axis.
|
|
28
|
-
*/
|
|
29
|
-
xAxisConfig?: XAxisConfig;
|
|
30
|
-
/**
|
|
31
|
-
* Additional style for the root View.
|
|
32
|
-
*/
|
|
33
|
-
style?: ViewStyle;
|
|
34
|
-
/**
|
|
35
|
-
* Testing id of the component.
|
|
36
|
-
*/
|
|
37
|
-
testID?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Header configuration for the chart.
|
|
40
|
-
*/
|
|
41
|
-
headerConfig?: HeaderConfig;
|
|
42
|
-
/**
|
|
43
|
-
* Text to display when the chart has no data (empty state).
|
|
44
|
-
*/
|
|
45
|
-
emptyText?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Called when a bar (column segment) is pressed. Receives info about the bar.
|
|
48
|
-
*/
|
|
49
|
-
onBarPress?: (info: {
|
|
50
|
-
value: number | undefined;
|
|
51
|
-
xLabel: string;
|
|
52
|
-
seriesLabel: string;
|
|
53
|
-
seriesIndex: number;
|
|
54
|
-
xIndex: number;
|
|
55
|
-
}) => void;
|
|
56
|
-
/**
|
|
57
|
-
* * styleConfig use to custom the style of the chart.
|
|
58
|
-
* * styleConfig must be an object:
|
|
59
|
-
* * color?: use to custom the legend colors.
|
|
60
|
-
*/
|
|
61
|
-
styleConfig?: StyleConfig;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* ColumnChart component for rendering grouped/stacked column charts.
|
|
65
|
-
* Handles layout, axis configuration, empty state, and data validation.
|
|
66
|
-
* Uses ChartFrame for layout and axes, and ColumnChartContent for rendering columns.
|
|
67
|
-
*
|
|
68
|
-
* @param data - Array of series, each with a label and array of values.
|
|
69
|
-
* @param yAxisConfig - Optional Y axis configuration.
|
|
70
|
-
* @param xAxisConfig - Optional X axis configuration.
|
|
71
|
-
* @param style - Optional style for the chart container.
|
|
72
|
-
* @param testID - Optional test ID for testing.
|
|
73
|
-
* @param headerConfig - Optional header configuration (title, actions).
|
|
74
|
-
* @param emptyText - Optional text to display when data is empty.
|
|
75
|
-
* @param onBarPress - Called when a bar (column segment) is pressed. Receives info about the bar.
|
|
76
|
-
*
|
|
77
|
-
* Example usage:
|
|
78
|
-
* <ColumnChart
|
|
79
|
-
* data={data}
|
|
80
|
-
* xAxisConfig={xAxisConfig}
|
|
81
|
-
* yAxisConfig={yAxisConfig}
|
|
82
|
-
* emptyText="No data available"
|
|
83
|
-
* />
|
|
84
|
-
*/
|
|
85
|
-
declare const ColumnChart: ({ data, yAxisConfig, xAxisConfig, style, testID, headerConfig, emptyText, onBarPress, styleConfig, }: ColumnChartProps) => React.JSX.Element;
|
|
86
|
-
export default ColumnChart;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AxisCoordinates, DataValue } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the Line chart component
|
|
5
|
-
*/
|
|
6
|
-
type LineProps = {
|
|
7
|
-
/** Array of data points to be plotted on the line chart */
|
|
8
|
-
data: DataValue[];
|
|
9
|
-
/** Maximum value for the Y-axis scale */
|
|
10
|
-
maxValue: number;
|
|
11
|
-
/** Minimum value for the Y-axis scale */
|
|
12
|
-
minValue: number;
|
|
13
|
-
/** Array of labels for the X-axis points */
|
|
14
|
-
labels: string[];
|
|
15
|
-
/** Coordinates defining the chart's boundaries and scale */
|
|
16
|
-
coordinates: AxisCoordinates;
|
|
17
|
-
/** Color for the line */
|
|
18
|
-
color?: string;
|
|
19
|
-
/** Test ID for the line */
|
|
20
|
-
testID?: string;
|
|
21
|
-
};
|
|
22
|
-
declare const Line: ({ data, maxValue, minValue, labels, coordinates, color, testID, }: LineProps) => React.JSX.Element | null;
|
|
23
|
-
export default Line;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ViewStyle } from 'react-native';
|
|
3
|
-
import type { DataValue, HeaderConfig, Series, StyleConfig, XAxisConfig, YAxisConfig } from '../types';
|
|
4
|
-
export interface LineChartProps {
|
|
5
|
-
/**
|
|
6
|
-
* The data to be displayed in the chart. Each item represents a series.
|
|
7
|
-
*/
|
|
8
|
-
data: Array<Series<Array<DataValue>>>;
|
|
9
|
-
/**
|
|
10
|
-
* Optional configuration for the Y axis.
|
|
11
|
-
*/
|
|
12
|
-
yAxisConfig?: YAxisConfig;
|
|
13
|
-
/**
|
|
14
|
-
* Optional configuration for the X axis.
|
|
15
|
-
*/
|
|
16
|
-
xAxisConfig?: XAxisConfig;
|
|
17
|
-
/**
|
|
18
|
-
* Additional style for the root View.
|
|
19
|
-
*/
|
|
20
|
-
style?: ViewStyle;
|
|
21
|
-
/**
|
|
22
|
-
* Testing id of the component.
|
|
23
|
-
*/
|
|
24
|
-
testID?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Header configuration for the chart.
|
|
27
|
-
*/
|
|
28
|
-
headerConfig?: HeaderConfig;
|
|
29
|
-
/**
|
|
30
|
-
* Text to display when the chart is empty.
|
|
31
|
-
*/
|
|
32
|
-
emptyText?: string;
|
|
33
|
-
/**
|
|
34
|
-
* * styleConfig use to custom the style of the chart.
|
|
35
|
-
* * styleConfig must be an object:
|
|
36
|
-
* * color?: use to custom the legend colors.
|
|
37
|
-
*/
|
|
38
|
-
styleConfig?: StyleConfig;
|
|
39
|
-
}
|
|
40
|
-
declare const LineChart: ({ data, yAxisConfig, xAxisConfig, style, testID, headerConfig, emptyText, styleConfig, }: LineChartProps) => React.JSX.Element;
|
|
41
|
-
export default LineChart;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare const StyledChartHeader: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
2
|
-
theme?: import("@emotion/react").Theme;
|
|
3
|
-
as?: React.ElementType;
|
|
4
|
-
}, {}, {}>;
|
|
5
|
-
declare const StyledLineChartWrapper: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
6
|
-
theme?: import("@emotion/react").Theme;
|
|
7
|
-
as?: React.ElementType;
|
|
8
|
-
}, {}, {}>;
|
|
9
|
-
export { StyledChartHeader, StyledLineChartWrapper };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare const Chart: {
|
|
2
|
-
Column: ({ data, yAxisConfig, xAxisConfig, style, testID, headerConfig, emptyText, onBarPress, styleConfig, }: import("./ColumnChart").ColumnChartProps) => import("react").JSX.Element;
|
|
3
|
-
Line: ({ data, yAxisConfig, xAxisConfig, style, testID, headerConfig, emptyText, styleConfig, }: import("./Line").LineChartProps) => import("react").JSX.Element;
|
|
4
|
-
SelectAction: <V>({ onConfirm, onDismiss, options, disabled, style, testID, value, supportedOrientations, bottomSheetConfig, }: import("./ChartSelect").SingleSelectProps<V>) => import("react").JSX.Element;
|
|
5
|
-
};
|
|
6
|
-
export default Chart;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AxisCoordinates, HeaderConfig, XAxisConfig, YAxisConfig } from '../types';
|
|
3
|
-
export type ChartFrameProps = {
|
|
4
|
-
isEmpty?: boolean;
|
|
5
|
-
xAxisConfig: XAxisConfig;
|
|
6
|
-
yAxisConfig: YAxisConfig;
|
|
7
|
-
headerConfig?: HeaderConfig;
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
renderContent: (props: {
|
|
11
|
-
coordinates: AxisCoordinates;
|
|
12
|
-
}) => React.ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Text to display when the chart has no data (empty state).
|
|
15
|
-
* If undefined, no empty label will appear even if the chart is empty.
|
|
16
|
-
*/
|
|
17
|
-
emptyText?: string;
|
|
18
|
-
/**
|
|
19
|
-
* If true, hides the grid lines for the Y-axis.
|
|
20
|
-
* Defaults to false.
|
|
21
|
-
*/
|
|
22
|
-
hideYAxisGrid?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* If true, hides the grid lines for the X-axis.
|
|
25
|
-
* Defaults to false.
|
|
26
|
-
*/
|
|
27
|
-
hideXAxisGrid?: boolean;
|
|
28
|
-
};
|
|
29
|
-
declare const ChartFrame: ({ xAxisConfig, yAxisConfig, width, height, headerConfig, renderContent, isEmpty, emptyText, hideYAxisGrid, hideXAxisGrid, }: ChartFrameProps) => React.JSX.Element;
|
|
30
|
-
export default ChartFrame;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { LayoutChangeEvent } from 'react-native';
|
|
3
|
-
import type { HeaderConfig } from '../types';
|
|
4
|
-
type ChartHeaderProps = HeaderConfig & {
|
|
5
|
-
onLayout?: (event: LayoutChangeEvent) => void;
|
|
6
|
-
};
|
|
7
|
-
declare const ChartHeader: ({ title, actionsExtra, onLayout }: ChartHeaderProps) => React.JSX.Element;
|
|
8
|
-
export default ChartHeader;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AxisCoordinates } from '../types';
|
|
3
|
-
type EmptyStateProps = {
|
|
4
|
-
coordinates: AxisCoordinates;
|
|
5
|
-
content: string;
|
|
6
|
-
};
|
|
7
|
-
declare const EmptyState: ({ content, coordinates }: EmptyStateProps) => React.JSX.Element;
|
|
8
|
-
export default EmptyState;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AxisCoordinates, XAxisConfig } from '../types';
|
|
3
|
-
export type XAxisProps = {
|
|
4
|
-
xAxisConfig: XAxisConfig;
|
|
5
|
-
coordinates: AxisCoordinates;
|
|
6
|
-
};
|
|
7
|
-
declare const XAxis: ({ xAxisConfig, coordinates }: XAxisProps) => React.JSX.Element;
|
|
8
|
-
export default XAxis;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AxisCoordinates, XAxisConfig } from '../types';
|
|
3
|
-
export type XAxisGridProps = {
|
|
4
|
-
xAxisConfig: XAxisConfig;
|
|
5
|
-
coordinates: AxisCoordinates;
|
|
6
|
-
};
|
|
7
|
-
declare const XAxisGrid: ({ xAxisConfig, coordinates }: XAxisGridProps) => React.JSX.Element;
|
|
8
|
-
export default XAxisGrid;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AxisCoordinates, YAxisConfig } from '../types';
|
|
3
|
-
export type YAxisProps = {
|
|
4
|
-
yAxisConfig: YAxisConfig & {
|
|
5
|
-
minValue?: number;
|
|
6
|
-
};
|
|
7
|
-
coordinates: AxisCoordinates;
|
|
8
|
-
};
|
|
9
|
-
declare const YAxis: ({ yAxisConfig, coordinates }: YAxisProps) => React.JSX.Element;
|
|
10
|
-
export default YAxis;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AxisCoordinates, YAxisConfig } from '../types';
|
|
3
|
-
export type YAxisGridProps = {
|
|
4
|
-
yAxisConfig: Omit<YAxisConfig, 'labels'> & {
|
|
5
|
-
minValue?: number;
|
|
6
|
-
};
|
|
7
|
-
coordinates: AxisCoordinates;
|
|
8
|
-
};
|
|
9
|
-
declare const YAxisGrid: ({ yAxisConfig, coordinates }: YAxisGridProps) => React.JSX.Element;
|
|
10
|
-
export default YAxisGrid;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const DASH_ARRAY: number[];
|
|
2
|
-
export declare const DEFAULT_LINE_STROKE_WIDTH = 2;
|
|
3
|
-
export declare const ERROR_COLOR_NUMBER_MISMATCH = "styleConfig.series should have exact number of colors as the number of labels";
|
|
4
|
-
export declare const ERROR_COLOR_NOT_FOUND = "Color {color} not found in the mobile visualization palette.";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useColorScale - Returns a d3 ordinal scale for mapping labels to colors.
|
|
3
|
-
* @param labels Array of labels (series names or keys)
|
|
4
|
-
* @param customColors Optional custom color palette
|
|
5
|
-
* @returns Ordinal scale function: (label: string) => color
|
|
6
|
-
*/
|
|
7
|
-
export default function useColorScale(labels: string[], customColors?: string[]): (label: string) => string | undefined;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { DataValue, Series, StyleConfig } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Props for the useCustomColor hook
|
|
4
|
-
*/
|
|
5
|
-
type useCustomColorProps = {
|
|
6
|
-
/** Array of data series containing values and labels */
|
|
7
|
-
data: Array<Series<Array<DataValue>>>;
|
|
8
|
-
/** Optional configuration for custom series colors */
|
|
9
|
-
seriesConfig?: StyleConfig['series'];
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Hook to handle custom color assignments for chart series
|
|
13
|
-
*
|
|
14
|
-
* This hook manages:
|
|
15
|
-
* 1. Validation of custom color configurations
|
|
16
|
-
* 2. Color mapping between series and palette
|
|
17
|
-
* 3. Fallback to default colors when custom colors aren't provided
|
|
18
|
-
*
|
|
19
|
-
* @throws {Error} When custom colors are invalid or don't match data series
|
|
20
|
-
*/
|
|
21
|
-
declare const useCustomColor: ({ data, seriesConfig }: useCustomColorProps) => (label: string) => string | undefined;
|
|
22
|
-
export default useCustomColor;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type UseScaleLinearYProps = {
|
|
2
|
-
maxValue: number;
|
|
3
|
-
minValue: number;
|
|
4
|
-
yStart: number;
|
|
5
|
-
yEnd: number;
|
|
6
|
-
};
|
|
7
|
-
declare const useScaleLinearY: ({ maxValue, minValue, yStart, yEnd, }: UseScaleLinearYProps) => import("d3-scale").ScaleLinear<number, number, never>;
|
|
8
|
-
export default useScaleLinearY;
|