@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,15 +0,0 @@
|
|
|
1
|
-
declare const THEME_INTENT_MAP: {
|
|
2
|
-
readonly primary: "primary";
|
|
3
|
-
readonly success: "success";
|
|
4
|
-
readonly warning: "warning";
|
|
5
|
-
readonly danger: "danger";
|
|
6
|
-
readonly info: "info";
|
|
7
|
-
readonly archived: "archived";
|
|
8
|
-
readonly 'primary-inverted': "primaryInverted";
|
|
9
|
-
readonly 'success-inverted': "successInverted";
|
|
10
|
-
readonly 'warning-inverted': "warningInverted";
|
|
11
|
-
readonly 'danger-inverted': "dangerInverted";
|
|
12
|
-
readonly 'info-inverted': "infoInverted";
|
|
13
|
-
readonly 'archived-inverted': "archivedInverted";
|
|
14
|
-
};
|
|
15
|
-
export { THEME_INTENT_MAP };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare const Progress: {
|
|
2
|
-
readonly Circle: ({ value, renderValue, intent, style, testID, ...nativeProps }: import("./ProgressCircle").ProgressCircleProps) => import("react").ReactElement;
|
|
3
|
-
readonly Bar: ({ value, intent, style, testID, ...nativeProps }: import("./ProgressBar").ProgressBarProps) => import("react").ReactElement;
|
|
4
|
-
readonly Step: ({ steps, current, onLayout, ...props }: import("./ProgressStep").ProgressStepProps) => import("react").JSX.Element;
|
|
5
|
-
};
|
|
6
|
-
export default Progress;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived' | 'primary-inverted' | 'success-inverted' | 'warning-inverted' | 'danger-inverted' | 'info-inverted' | 'archived-inverted';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import type { IconName } from '../Icon';
|
|
4
|
-
interface RadioProps {
|
|
5
|
-
/**
|
|
6
|
-
* Whether the radio is checked.
|
|
7
|
-
*/
|
|
8
|
-
checked?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Press event handler.
|
|
11
|
-
*/
|
|
12
|
-
onPress: () => void;
|
|
13
|
-
/**
|
|
14
|
-
* Radio text.
|
|
15
|
-
*/
|
|
16
|
-
text: string;
|
|
17
|
-
/**
|
|
18
|
-
* Additional style.
|
|
19
|
-
*/
|
|
20
|
-
style?: StyleProp<ViewStyle>;
|
|
21
|
-
/**
|
|
22
|
-
* Radio subtext.
|
|
23
|
-
*/
|
|
24
|
-
subText?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Testing id of the component.
|
|
27
|
-
*/
|
|
28
|
-
testID?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Idle background color of the Radio.
|
|
31
|
-
*/
|
|
32
|
-
inactiveIntent?: 'light' | 'dark';
|
|
33
|
-
/**
|
|
34
|
-
* Children to be rendered inside the component.
|
|
35
|
-
*/
|
|
36
|
-
children?: ReactNode;
|
|
37
|
-
/**
|
|
38
|
-
* Prefix to be rendered before the radio text.
|
|
39
|
-
*/
|
|
40
|
-
prefix?: IconName | ReactElement;
|
|
41
|
-
}
|
|
42
|
-
declare const Radio: ({ text, checked, onPress, style, subText, testID, inactiveIntent, children, prefix, }: RadioProps) => ReactElement;
|
|
43
|
-
export default Radio;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react';
|
|
2
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import type { OptionType } from './types';
|
|
4
|
-
export interface RadioGroupProps<T> {
|
|
5
|
-
/**
|
|
6
|
-
* An array of radio options to be selected.
|
|
7
|
-
*/
|
|
8
|
-
options: OptionType<T>[];
|
|
9
|
-
/**
|
|
10
|
-
* Radio input value.
|
|
11
|
-
*/
|
|
12
|
-
value: T;
|
|
13
|
-
/**
|
|
14
|
-
* Press event handler receiving selected radio's value.
|
|
15
|
-
*/
|
|
16
|
-
onPress: (value: T) => void;
|
|
17
|
-
/**
|
|
18
|
-
* 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.
|
|
19
|
-
* The default extractor checks option.key, and then falls back to using the index, like React does.
|
|
20
|
-
*/
|
|
21
|
-
keyExtractor?: (option: OptionType<T>, index?: number) => string;
|
|
22
|
-
/**
|
|
23
|
-
* Additional style.
|
|
24
|
-
*/
|
|
25
|
-
style?: StyleProp<ViewStyle>;
|
|
26
|
-
/**
|
|
27
|
-
* Testing id of the component.
|
|
28
|
-
*/
|
|
29
|
-
testID?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Overrides the text that's read by the screen reader when the user interacts with the element.
|
|
32
|
-
*/
|
|
33
|
-
accessible?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Idle background color of the Radio.
|
|
36
|
-
*/
|
|
37
|
-
inactiveIntent?: 'light' | 'dark';
|
|
38
|
-
}
|
|
39
|
-
declare const RadioGroup: <T>({ value, onPress, options, keyExtractor, style, testID, accessible, inactiveIntent, }: RadioGroupProps<T>) => ReactElement;
|
|
40
|
-
export default RadioGroup;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { View } from 'react-native';
|
|
2
|
-
type RadioIntent = 'light' | 'dark';
|
|
3
|
-
declare const Circle: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme;
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
}, {}, {
|
|
7
|
-
ref?: import("react").Ref<View> | undefined;
|
|
8
|
-
}>;
|
|
9
|
-
declare const InnerCircle: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme;
|
|
11
|
-
as?: React.ElementType;
|
|
12
|
-
}, {}, {
|
|
13
|
-
ref?: import("react").Ref<View> | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
declare const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
16
|
-
theme?: import("@emotion/react").Theme;
|
|
17
|
-
as?: React.ElementType;
|
|
18
|
-
} & {
|
|
19
|
-
themeIntent: RadioIntent;
|
|
20
|
-
}, {}, {
|
|
21
|
-
ref?: import("react").Ref<View> | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
declare const StyledRadio: import("@emotion/native").StyledComponent<import("../..").ListItemProps & {
|
|
24
|
-
theme?: import("@emotion/react").Theme;
|
|
25
|
-
as?: React.ElementType;
|
|
26
|
-
} & {
|
|
27
|
-
themeIntent: RadioIntent;
|
|
28
|
-
themeChecked: boolean;
|
|
29
|
-
}, {}, {}>;
|
|
30
|
-
export { Circle, InnerCircle, Spacer, StyledRadio };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Animated, View } from 'react-native';
|
|
2
|
-
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?: React.ElementType;
|
|
5
|
-
}, {}, {}>;
|
|
6
|
-
declare const StyledIconWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
7
|
-
theme?: import("@emotion/react").Theme;
|
|
8
|
-
as?: React.ElementType;
|
|
9
|
-
}, {}, {}>;
|
|
10
|
-
export { StyledWrapper, StyledIconWrapper };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ViewProps } from 'react-native';
|
|
3
|
-
interface RateOption<T extends string | number> {
|
|
4
|
-
value: T;
|
|
5
|
-
}
|
|
6
|
-
interface RateProps<T extends string | number> extends ViewProps {
|
|
7
|
-
/**
|
|
8
|
-
* Options for rate component.
|
|
9
|
-
*/
|
|
10
|
-
options: RateOption<T>[];
|
|
11
|
-
/**
|
|
12
|
-
* Value of the component.
|
|
13
|
-
*/
|
|
14
|
-
value?: T;
|
|
15
|
-
/**
|
|
16
|
-
* Callback when value changes.
|
|
17
|
-
*/
|
|
18
|
-
onChange?: (value: T) => void;
|
|
19
|
-
/**
|
|
20
|
-
* Whether the component is readonly.
|
|
21
|
-
*/
|
|
22
|
-
readonly?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Whether the component is disabled.
|
|
25
|
-
*/
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
}
|
|
28
|
-
declare const Rate: <T extends string | number>({ options, value, onChange, readonly, disabled, ...otherProps }: RateProps<T>) => React.JSX.Element;
|
|
29
|
-
export default Rate;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { RefreshControlProps as NativeRefreshControlProps } from 'react-native';
|
|
3
|
-
type RefreshControlProps = Omit<NativeRefreshControlProps, 'colors' | 'tintColor'>;
|
|
4
|
-
declare const RefreshControl: ({ ...props }: RefreshControlProps) => React.JSX.Element;
|
|
5
|
-
export default RefreshControl;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ToolbarButtonName } from './types';
|
|
3
|
-
export interface EditorToolbarProps {
|
|
4
|
-
/**
|
|
5
|
-
* List of buttons to display in toolbar
|
|
6
|
-
*/
|
|
7
|
-
buttons?: ToolbarButtonName[];
|
|
8
|
-
/**
|
|
9
|
-
* Unique name used to communicate with webview, should be the same with the RichTextEditor component it used with
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* Testing ID of the component
|
|
14
|
-
*/
|
|
15
|
-
testID?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const EditorToolbar: ({ name, buttons, testID, }: EditorToolbarProps) => React.JSX.Element | null;
|
|
18
|
-
export default EditorToolbar;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface OnSelectOptionsType<TMetaData> {
|
|
4
|
-
highlighted: boolean;
|
|
5
|
-
meta?: TMetaData;
|
|
6
|
-
}
|
|
7
|
-
export interface MentionListProps<TMetaData = unknown> {
|
|
8
|
-
/**
|
|
9
|
-
* Unique name used to communicate with webview, should be the same with the RichTextEditor component it used with
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* Function used to render mention options
|
|
14
|
-
*/
|
|
15
|
-
render: (searchText: string, onSelect: (id: string, name: string, options?: OnSelectOptionsType<TMetaData>) => void) => ReactElement;
|
|
16
|
-
}
|
|
17
|
-
declare const MentionList: <TMetaData>({ name: eventPrefix, render, }: MentionListProps<TMetaData>) => React.JSX.Element | null;
|
|
18
|
-
export default MentionList;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Ref } from 'react';
|
|
3
|
-
import type { RichTextEditorInputProps, RichTextEditorRef } from './RichTextEditorInput';
|
|
4
|
-
export interface RichTextEditorProps extends Omit<RichTextEditorInputProps, 'editorRef'> {
|
|
5
|
-
/**
|
|
6
|
-
* Field label
|
|
7
|
-
*/
|
|
8
|
-
label: string;
|
|
9
|
-
/**
|
|
10
|
-
* Field helper text
|
|
11
|
-
*/
|
|
12
|
-
helpText?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Whether the input is required, if true, an asterisk will be appended to the label.
|
|
15
|
-
* */
|
|
16
|
-
required?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Testing ID of the component
|
|
19
|
-
*/
|
|
20
|
-
testID?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Imperative ref to expose the component method
|
|
23
|
-
*/
|
|
24
|
-
forwardedRef?: Ref<RichTextEditorRef>;
|
|
25
|
-
}
|
|
26
|
-
declare const RichTextEditorWithRef: React.ForwardRefExoticComponent<Omit<RichTextEditorProps, "forwardedRef"> & React.RefAttributes<RichTextEditorRef>>;
|
|
27
|
-
export default RichTextEditorWithRef;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { ReactElement, Ref } from 'react';
|
|
2
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import type { TextUnit } from './types';
|
|
4
|
-
export interface RichTextEditorRef {
|
|
5
|
-
requestBlur: VoidFunction;
|
|
6
|
-
insertNodes: (nodes: Record<string, unknown>[]) => void;
|
|
7
|
-
deleteBackward: (unit?: TextUnit) => void;
|
|
8
|
-
setReadOnly: (readOnly: boolean) => void;
|
|
9
|
-
}
|
|
10
|
-
export type EditorValue = {
|
|
11
|
-
type: string;
|
|
12
|
-
children: any;
|
|
13
|
-
}[];
|
|
14
|
-
export interface RichTextEditorInputProps {
|
|
15
|
-
/**
|
|
16
|
-
* If true, the editor will be focused when the user enters the screen
|
|
17
|
-
*/
|
|
18
|
-
autoFocus?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Error message
|
|
21
|
-
*/
|
|
22
|
-
error?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Field value
|
|
25
|
-
*/
|
|
26
|
-
value?: EditorValue;
|
|
27
|
-
/**
|
|
28
|
-
* Unique name used to communicate with webview
|
|
29
|
-
*/
|
|
30
|
-
name: string;
|
|
31
|
-
/**
|
|
32
|
-
* Callback function called when the field value changed
|
|
33
|
-
*/
|
|
34
|
-
onChange: (data: EditorValue) => void;
|
|
35
|
-
/**
|
|
36
|
-
* Callback function called when the cursor position changed
|
|
37
|
-
*/
|
|
38
|
-
onCursorChange?: (params: {
|
|
39
|
-
position: {
|
|
40
|
-
top: number;
|
|
41
|
-
};
|
|
42
|
-
}) => void;
|
|
43
|
-
/**
|
|
44
|
-
* Field placeholder
|
|
45
|
-
*/
|
|
46
|
-
placeholder?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Additional styles
|
|
49
|
-
*/
|
|
50
|
-
style?: StyleProp<ViewStyle>;
|
|
51
|
-
/**
|
|
52
|
-
* Testing ID of the component
|
|
53
|
-
*/
|
|
54
|
-
testID?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Imperative ref to expose the component method
|
|
57
|
-
*/
|
|
58
|
-
editorRef?: Ref<RichTextEditorRef>;
|
|
59
|
-
/**
|
|
60
|
-
* Callback function called when the editor is focused
|
|
61
|
-
*/
|
|
62
|
-
onFocus?: () => void;
|
|
63
|
-
/**
|
|
64
|
-
* Callback function called when the editor is blurred
|
|
65
|
-
*/
|
|
66
|
-
onBlur?: () => void;
|
|
67
|
-
}
|
|
68
|
-
declare const RichTextEditorInput: ({ autoFocus, name, placeholder, onChange, onCursorChange, style, testID, editorRef, value, onFocus, onBlur, }: RichTextEditorInputProps) => ReactElement;
|
|
69
|
-
export default RichTextEditorInput;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { WebView } from 'react-native-webview';
|
|
2
|
-
export declare const StyledWebView: import("@emotion/native").StyledComponent<import("react-native-webview/lib/WebViewTypes").IOSWebViewProps & import("react-native-webview/lib/WebViewTypes").AndroidWebViewProps & import("react-native-webview/lib/WebViewTypes").WindowsWebViewProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?: React.ElementType;
|
|
5
|
-
}, {}, {
|
|
6
|
-
ref?: import("react").Ref<WebView<unknown>> | undefined;
|
|
7
|
-
}>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { View } from 'react-native';
|
|
2
|
-
export declare const StyledToolbarButton: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
|
|
3
|
-
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?: React.ElementType;
|
|
5
|
-
} & {
|
|
6
|
-
selected: boolean;
|
|
7
|
-
}, {}, {}>;
|
|
8
|
-
export declare const StyledToolbar: 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
|
-
export declare const StyledSeparator: 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
|
-
}>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare enum ToolbarEvents {
|
|
2
|
-
Bold = "bold",
|
|
3
|
-
Italic = "italic",
|
|
4
|
-
Underline = "underline",
|
|
5
|
-
BulletedList = "bulleted-list",
|
|
6
|
-
NumberedList = "numbered-list",
|
|
7
|
-
HeadingOne = "heading-one",
|
|
8
|
-
HeadingTwo = "heading-two",
|
|
9
|
-
AddLink = "add-link",
|
|
10
|
-
ApplyLink = "link"
|
|
11
|
-
}
|
|
12
|
-
export declare enum EditorEvents {
|
|
13
|
-
EditorFocus = "editor-focus",
|
|
14
|
-
EditorBlur = "editor-blur",
|
|
15
|
-
EditorChange = "editor-change",
|
|
16
|
-
UpsertLink = "request-upsert-link"
|
|
17
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { EditorEvents, ToolbarEvents } from '../constants';
|
|
2
|
-
type SubscribableEvent = ToolbarEvents | EditorEvents;
|
|
3
|
-
type EventData = {
|
|
4
|
-
[EditorEvents.UpsertLink]: {
|
|
5
|
-
text: string;
|
|
6
|
-
url: string;
|
|
7
|
-
};
|
|
8
|
-
[EditorEvents.EditorChange]: {
|
|
9
|
-
value: string;
|
|
10
|
-
toolbarState: Record<string, boolean>;
|
|
11
|
-
};
|
|
12
|
-
[ToolbarEvents.ApplyLink]: {
|
|
13
|
-
text: string;
|
|
14
|
-
url: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
type EventDataByEventName<T> = T extends keyof EventData ? EventData[T] : void;
|
|
18
|
-
/**
|
|
19
|
-
* Hook to subscribe to events for a rich text editor
|
|
20
|
-
* @param editorName - The name of the editor to subscribe to events for
|
|
21
|
-
* @returns An object with two functions: emitEvent and subscribeToEvents
|
|
22
|
-
* @example
|
|
23
|
-
* const { emitEvent, subscribeToEvents } = useRichTextEditorEvents('editorName');
|
|
24
|
-
* subscribeToEvents(EditorEvents.EditorFocus, () => {
|
|
25
|
-
* console.log('Editor focused');
|
|
26
|
-
* });
|
|
27
|
-
* emitEvent({ type: EditorEvents.EditorFocus, data: null });
|
|
28
|
-
*/
|
|
29
|
-
declare const useRichTextEditorEvents: (editorName: string) => {
|
|
30
|
-
emitEvent: <TEventName extends ToolbarEvents>({ type, data, }: {
|
|
31
|
-
type: TEventName;
|
|
32
|
-
data: TEventName extends keyof EventData ? EventData[TEventName] : unknown;
|
|
33
|
-
}) => void;
|
|
34
|
-
subscribeToEvents: <TEventName extends SubscribableEvent>(eventName: TEventName, onEvent: (data: EventDataByEventName<TEventName>) => void) => () => void;
|
|
35
|
-
};
|
|
36
|
-
export default useRichTextEditorEvents;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { EditorEvents, ToolbarEvents } from './constants';
|
|
2
|
-
import type { RichTextEditorProps } from './RichTextEditor';
|
|
3
|
-
import type { RichTextEditorRef } from './RichTextEditorInput';
|
|
4
|
-
export type { RichTextEditorProps, RichTextEditorRef };
|
|
5
|
-
declare const _default: import("react").ForwardRefExoticComponent<Omit<RichTextEditorProps, "forwardedRef"> & import("react").RefAttributes<RichTextEditorRef>> & {
|
|
6
|
-
Toolbar: ({ name, buttons, testID, }: import("./EditorToolbar").EditorToolbarProps) => import("react").JSX.Element | null;
|
|
7
|
-
MentionList: <TMetaData>({ name: eventPrefix, render, }: import("./MentionList").MentionListProps<TMetaData>) => import("react").JSX.Element | null;
|
|
8
|
-
EditorEvents: typeof EditorEvents;
|
|
9
|
-
ToolbarEvents: typeof ToolbarEvents;
|
|
10
|
-
useRichTextEditorEvents: (editorName: string) => {
|
|
11
|
-
emitEvent: <TEventName extends ToolbarEvents>({ type, data, }: {
|
|
12
|
-
type: TEventName;
|
|
13
|
-
data: TEventName extends keyof {
|
|
14
|
-
"request-upsert-link": {
|
|
15
|
-
text: string;
|
|
16
|
-
url: string;
|
|
17
|
-
};
|
|
18
|
-
"editor-change": {
|
|
19
|
-
value: string;
|
|
20
|
-
toolbarState: Record<string, boolean>;
|
|
21
|
-
};
|
|
22
|
-
link: {
|
|
23
|
-
text: string;
|
|
24
|
-
url: string;
|
|
25
|
-
};
|
|
26
|
-
} ? {
|
|
27
|
-
"request-upsert-link": {
|
|
28
|
-
text: string;
|
|
29
|
-
url: string;
|
|
30
|
-
};
|
|
31
|
-
"editor-change": {
|
|
32
|
-
value: string;
|
|
33
|
-
toolbarState: Record<string, boolean>;
|
|
34
|
-
};
|
|
35
|
-
link: {
|
|
36
|
-
text: string;
|
|
37
|
-
url: string;
|
|
38
|
-
};
|
|
39
|
-
}[TEventName] : unknown;
|
|
40
|
-
}) => void;
|
|
41
|
-
subscribeToEvents: <TEventName extends ToolbarEvents | EditorEvents>(eventName: TEventName, onEvent: (data: TEventName extends keyof {
|
|
42
|
-
"request-upsert-link": {
|
|
43
|
-
text: string;
|
|
44
|
-
url: string;
|
|
45
|
-
};
|
|
46
|
-
"editor-change": {
|
|
47
|
-
value: string;
|
|
48
|
-
toolbarState: Record<string, boolean>;
|
|
49
|
-
};
|
|
50
|
-
link: {
|
|
51
|
-
text: string;
|
|
52
|
-
url: string;
|
|
53
|
-
};
|
|
54
|
-
} ? {
|
|
55
|
-
"request-upsert-link": {
|
|
56
|
-
text: string;
|
|
57
|
-
url: string;
|
|
58
|
-
};
|
|
59
|
-
"editor-change": {
|
|
60
|
-
value: string;
|
|
61
|
-
toolbarState: Record<string, boolean>;
|
|
62
|
-
};
|
|
63
|
-
link: {
|
|
64
|
-
text: string;
|
|
65
|
-
url: string;
|
|
66
|
-
};
|
|
67
|
-
}[TEventName] : void) => void) => () => void;
|
|
68
|
-
};
|
|
69
|
-
Base: ({ autoFocus, name, placeholder, onChange, onCursorChange, style, testID, editorRef, value, onFocus, onBlur, }: import("./RichTextEditorInput").RichTextEditorInputProps) => import("react").ReactElement;
|
|
70
|
-
};
|
|
71
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { EventEmitter } from 'events';
|
|
2
|
-
interface Listener<T> {
|
|
3
|
-
(data: T): void;
|
|
4
|
-
}
|
|
5
|
-
export declare const emit: <T>(emitter: EventEmitter, eventName: string, data: T) => boolean;
|
|
6
|
-
export declare const on: <T>(emitter: EventEmitter, eventName: string, listener: Listener<T>) => () => void;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type WebView from 'react-native-webview';
|
|
2
|
-
export declare const requestBlurEditor: (element: WebView) => void;
|
|
3
|
-
export interface WebViewEventMessage {
|
|
4
|
-
type: string;
|
|
5
|
-
data: any;
|
|
6
|
-
}
|
|
7
|
-
export declare const postMessage: (element: WebView, message: WebViewEventMessage) => void;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TextInputProps as NativeTextInputProps, TextInput as RNTextInput, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import type { State } from './StyledSearch';
|
|
4
|
-
import type { IconName } from '../Icon';
|
|
5
|
-
type SearchOneLineHandles = Pick<RNTextInput, 'focus' | 'clear' | 'blur' | 'isFocused' | 'setNativeProps'>;
|
|
6
|
-
interface SearchOneLineProps extends NativeTextInputProps {
|
|
7
|
-
/**
|
|
8
|
-
* Name of Icon or ReactElement to render on the left side of the input, before the user's cursor.
|
|
9
|
-
*/
|
|
10
|
-
prefix?: IconName | React.ReactElement;
|
|
11
|
-
/**
|
|
12
|
-
* Name of Icon or ReactElement to render on the right side of the input.
|
|
13
|
-
*/
|
|
14
|
-
suffix?: IconName | React.ReactElement;
|
|
15
|
-
/**
|
|
16
|
-
* Additional wrapper style.
|
|
17
|
-
*/
|
|
18
|
-
style?: StyleProp<ViewStyle>;
|
|
19
|
-
/**
|
|
20
|
-
* Input text style.
|
|
21
|
-
*/
|
|
22
|
-
textStyle?: StyleProp<TextStyle>;
|
|
23
|
-
/**
|
|
24
|
-
* Testing id of the component.
|
|
25
|
-
*/
|
|
26
|
-
testID?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Accessibility label for the input (Android).
|
|
29
|
-
*/
|
|
30
|
-
accessibilityLabelledBy?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Placeholder text to display.
|
|
33
|
-
* */
|
|
34
|
-
placeholder?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Whether the input is editable.
|
|
37
|
-
* */
|
|
38
|
-
editable?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Whether the input is disabled.
|
|
41
|
-
*/
|
|
42
|
-
disabled?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* The max length of the input.
|
|
45
|
-
* If the max length is set, the input will display the current length and the max length.
|
|
46
|
-
* */
|
|
47
|
-
maxLength?: number;
|
|
48
|
-
/**
|
|
49
|
-
* Whether to hide the character count.
|
|
50
|
-
* */
|
|
51
|
-
renderInputValue?: (inputProps: NativeTextInputProps) => React.ReactNode;
|
|
52
|
-
/**
|
|
53
|
-
* Variant of the SearchTwo
|
|
54
|
-
* @default 'basic'
|
|
55
|
-
*/
|
|
56
|
-
variant?: 'basic' | 'reversed';
|
|
57
|
-
/**
|
|
58
|
-
* Clearable input.
|
|
59
|
-
*/
|
|
60
|
-
clearable?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* If true, indicates that the SearchOneLine is accessible to screen readers.
|
|
63
|
-
*/
|
|
64
|
-
accessible?: boolean;
|
|
65
|
-
}
|
|
66
|
-
export declare const getState: ({ disabled, editable, isEmptyValue, }: {
|
|
67
|
-
disabled?: boolean;
|
|
68
|
-
editable?: boolean;
|
|
69
|
-
isFocused?: boolean;
|
|
70
|
-
isEmptyValue?: boolean;
|
|
71
|
-
}) => State;
|
|
72
|
-
declare const SearchOneLine: React.ForwardRefExoticComponent<SearchOneLineProps & React.RefAttributes<SearchOneLineHandles>>;
|
|
73
|
-
export default SearchOneLine;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import type { IconName } from '../Icon';
|
|
4
|
-
import type { BadgeProps } from '../Badge';
|
|
5
|
-
interface SearchSuffixIconProps {
|
|
6
|
-
/**
|
|
7
|
-
* Name of Icon or ReactElement to render on the right side of the input.
|
|
8
|
-
*/
|
|
9
|
-
suffix?: IconName | React.ReactElement;
|
|
10
|
-
/**
|
|
11
|
-
* Additional wrapper style.
|
|
12
|
-
*/
|
|
13
|
-
style?: StyleProp<ViewStyle>;
|
|
14
|
-
/**
|
|
15
|
-
* Testing id of the component.
|
|
16
|
-
*/
|
|
17
|
-
testID?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Badge props to be render on the suffix.
|
|
20
|
-
*/
|
|
21
|
-
badge?: Omit<BadgeProps, 'size'>;
|
|
22
|
-
}
|
|
23
|
-
declare const SearchSuffixIcon: (props: SearchSuffixIconProps) => React.JSX.Element;
|
|
24
|
-
export default SearchSuffixIcon;
|