@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,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import type { ViewProps } from 'react-native';
|
|
4
|
-
interface ToolbarProps extends Omit<ViewProps, 'style'> {
|
|
5
|
-
/**
|
|
6
|
-
* Toolbar's content.
|
|
7
|
-
*/
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: (({ children, ...rest }: ToolbarProps) => React.JSX.Element) & {
|
|
11
|
-
Group: ({ align, items, accessible, }: import("./ToolbarGroup").ToolbarGroupProps) => React.JSX.Element;
|
|
12
|
-
Message: React.ForwardRefExoticComponent<Omit<import("./ToolbarMessage").ToolbarMessageProps, "ref"> & React.RefAttributes<import("./ToolbarMessage").ToolbarMessageHandles>>;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Text } from 'react-native';
|
|
2
|
-
import type { TypographyIntent } from '../types';
|
|
3
|
-
type ThemeVariant = 'small' | 'small-bold' | 'regular' | 'regular-bold';
|
|
4
|
-
declare const StyledBody: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
5
|
-
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?: React.ElementType;
|
|
7
|
-
} & {
|
|
8
|
-
themeIntent: TypographyIntent;
|
|
9
|
-
themeTypeface: "neutral" | "playful";
|
|
10
|
-
themeVariant: ThemeVariant;
|
|
11
|
-
themeIsItalic?: boolean;
|
|
12
|
-
}, {}, {
|
|
13
|
-
ref?: import("react").Ref<Text> | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export { StyledBody };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
4
|
-
import type { TypographyIntent } from '../types';
|
|
5
|
-
export interface BodyProps extends NativeTextProps {
|
|
6
|
-
/**
|
|
7
|
-
* Text content.
|
|
8
|
-
*/
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* Visual intent color to apply to the text.
|
|
12
|
-
*/
|
|
13
|
-
intent?: TypographyIntent;
|
|
14
|
-
/**
|
|
15
|
-
* Additional style.
|
|
16
|
-
*/
|
|
17
|
-
style?: StyleProp<TextStyle>;
|
|
18
|
-
/**
|
|
19
|
-
* Testing id of the component.
|
|
20
|
-
*/
|
|
21
|
-
testID?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The typeface to render the text in:
|
|
24
|
-
* - `neutral`: The default typeface for the platform.
|
|
25
|
-
* - `playful`: To visualise a playful content.
|
|
26
|
-
*/
|
|
27
|
-
typeface?: 'neutral' | 'playful';
|
|
28
|
-
/**
|
|
29
|
-
* size variant of the text.
|
|
30
|
-
* */
|
|
31
|
-
variant?: 'regular' | 'regular-bold' | 'small' | 'small-bold';
|
|
32
|
-
/**
|
|
33
|
-
* Font style to apply to the text.
|
|
34
|
-
*/
|
|
35
|
-
fontStyle?: 'normal' | 'italic';
|
|
36
|
-
}
|
|
37
|
-
declare const Body: ({ children, intent, allowFontScaling, typeface, variant, fontStyle, ...nativeProps }: BodyProps) => React.JSX.Element;
|
|
38
|
-
export default Body;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Text } from 'react-native';
|
|
2
|
-
import type { TypographyIntent } from '../types';
|
|
3
|
-
declare const StyledCaption: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme;
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
} & {
|
|
7
|
-
themeFontWeight: "regular" | "semi-bold";
|
|
8
|
-
themeIntent: TypographyIntent;
|
|
9
|
-
themeIsItalic?: boolean;
|
|
10
|
-
}, {}, {
|
|
11
|
-
ref?: import("react").Ref<Text> | undefined;
|
|
12
|
-
}>;
|
|
13
|
-
export { StyledCaption };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
4
|
-
import type { TypographyIntent } from '../types';
|
|
5
|
-
export interface CaptionProps extends NativeTextProps {
|
|
6
|
-
/**
|
|
7
|
-
* Text content.
|
|
8
|
-
*/
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* Font weight of the text.
|
|
12
|
-
*/
|
|
13
|
-
fontWeight?: 'regular' | 'semi-bold';
|
|
14
|
-
/**
|
|
15
|
-
* Visual intent color to apply to the text.
|
|
16
|
-
*/
|
|
17
|
-
intent?: TypographyIntent;
|
|
18
|
-
/**
|
|
19
|
-
* Additional style.
|
|
20
|
-
*/
|
|
21
|
-
style?: StyleProp<TextStyle>;
|
|
22
|
-
/**
|
|
23
|
-
* Testing id of the component.
|
|
24
|
-
*/
|
|
25
|
-
testID?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Font style to apply to the text.
|
|
28
|
-
*/
|
|
29
|
-
fontStyle?: 'normal' | 'italic';
|
|
30
|
-
}
|
|
31
|
-
declare const Caption: ({ children, fontWeight, intent, allowFontScaling, fontStyle, ...nativeProps }: CaptionProps) => React.JSX.Element;
|
|
32
|
-
export default Caption;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Text } from 'react-native';
|
|
2
|
-
import type { TypographyIntent } from '../types';
|
|
3
|
-
declare const StyledLabel: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme;
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
} & {
|
|
7
|
-
themeIntent: TypographyIntent;
|
|
8
|
-
themeIsItalic?: boolean;
|
|
9
|
-
}, {}, {
|
|
10
|
-
ref?: import("react").Ref<Text> | undefined;
|
|
11
|
-
}>;
|
|
12
|
-
export { StyledLabel };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
4
|
-
import type { TypographyIntent } from '../types';
|
|
5
|
-
export interface LabelProps extends NativeTextProps {
|
|
6
|
-
/**
|
|
7
|
-
* Text content.
|
|
8
|
-
*/
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* Visual intent color to apply to the text.
|
|
12
|
-
*/
|
|
13
|
-
intent?: TypographyIntent;
|
|
14
|
-
/**
|
|
15
|
-
* Additional style.
|
|
16
|
-
*/
|
|
17
|
-
style?: StyleProp<TextStyle>;
|
|
18
|
-
/**
|
|
19
|
-
* Testing id of the component.
|
|
20
|
-
*/
|
|
21
|
-
testID?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Font style to apply to the text.
|
|
24
|
-
*/
|
|
25
|
-
fontStyle?: 'normal' | 'italic';
|
|
26
|
-
}
|
|
27
|
-
declare const Label: ({ children, intent, allowFontScaling, fontStyle, ...nativeProps }: LabelProps) => React.JSX.Element;
|
|
28
|
-
export default Label;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Text } from 'react-native';
|
|
2
|
-
declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?: React.ElementType;
|
|
5
|
-
} & {
|
|
6
|
-
themeFontSize: "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxxlarge" | "xxxxlarge" | "xxxxxlarge" | "6xlarge" | "7xlarge";
|
|
7
|
-
themeFontWeight: "light" | "regular" | "semi-bold";
|
|
8
|
-
themeIntent: "body" | "subdued" | "primary" | "secondary" | "success" | "info" | "warning" | "danger" | "inverted" | "archived" | "disabled";
|
|
9
|
-
themeTypeface: "neutral" | "playful";
|
|
10
|
-
}, {}, {
|
|
11
|
-
ref?: import("react").Ref<Text> | undefined;
|
|
12
|
-
}>;
|
|
13
|
-
export { StyledText };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
4
|
-
export interface TextProps extends NativeTextProps {
|
|
5
|
-
/**
|
|
6
|
-
* Text content.
|
|
7
|
-
*/
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* Size of the text.
|
|
11
|
-
*/
|
|
12
|
-
fontSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge' | '6xlarge' | '7xlarge';
|
|
13
|
-
/**
|
|
14
|
-
* Font weight of the text.
|
|
15
|
-
*/
|
|
16
|
-
fontWeight?: 'light' | 'regular' | 'semi-bold';
|
|
17
|
-
/**
|
|
18
|
-
* Visual intent color to apply to the text.
|
|
19
|
-
*/
|
|
20
|
-
intent?: 'body' | 'subdued' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inverted' | 'archived' | 'disabled';
|
|
21
|
-
/**
|
|
22
|
-
* Additional style.
|
|
23
|
-
*/
|
|
24
|
-
style?: StyleProp<TextStyle>;
|
|
25
|
-
/**
|
|
26
|
-
* Testing id of the component.
|
|
27
|
-
*/
|
|
28
|
-
testID?: string;
|
|
29
|
-
/**
|
|
30
|
-
* The typeface to render the text in:
|
|
31
|
-
* - `neutral`: The default typeface for the platform.
|
|
32
|
-
* - `playful`: To visualise a playful content.
|
|
33
|
-
*/
|
|
34
|
-
typeface?: 'neutral' | 'playful';
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.
|
|
38
|
-
*/
|
|
39
|
-
declare const Text: ({ children, fontSize, fontWeight, intent, typeface, allowFontScaling, ...nativeProps }: TextProps) => React.JSX.Element;
|
|
40
|
-
export default Text;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Text } from 'react-native';
|
|
2
|
-
import type { TypographyIntent } from '../types';
|
|
3
|
-
type ThemeLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
4
|
-
declare const StyledTitle: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
5
|
-
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?: React.ElementType;
|
|
7
|
-
} & {
|
|
8
|
-
themeIntent: TypographyIntent;
|
|
9
|
-
themeLevel: ThemeLevel;
|
|
10
|
-
themeTypeface: "neutral" | "playful";
|
|
11
|
-
themeIsItalic?: boolean;
|
|
12
|
-
}, {}, {
|
|
13
|
-
ref?: import("react").Ref<Text> | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export { StyledTitle };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
4
|
-
import type { TypographyIntent } from '../types';
|
|
5
|
-
export interface TitleProps extends NativeTextProps {
|
|
6
|
-
/**
|
|
7
|
-
* Text content.
|
|
8
|
-
*/
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* Visual intent color to apply to the text.
|
|
12
|
-
*/
|
|
13
|
-
intent?: TypographyIntent;
|
|
14
|
-
/**
|
|
15
|
-
* Additional style.
|
|
16
|
-
*/
|
|
17
|
-
style?: StyleProp<TextStyle>;
|
|
18
|
-
/**
|
|
19
|
-
* Testing id of the component.
|
|
20
|
-
*/
|
|
21
|
-
testID?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The typeface to render the text in:
|
|
24
|
-
* - `neutral`: The default typeface for the platform.
|
|
25
|
-
* - `playful`: To visualise a playful content.
|
|
26
|
-
*/
|
|
27
|
-
typeface?: 'neutral' | 'playful';
|
|
28
|
-
/**
|
|
29
|
-
* The level of Title including h1, h2, h3, h4, h5 and h6.
|
|
30
|
-
*/
|
|
31
|
-
level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
32
|
-
/**
|
|
33
|
-
* Font style to apply to the text.
|
|
34
|
-
*/
|
|
35
|
-
fontStyle?: 'normal' | 'italic';
|
|
36
|
-
}
|
|
37
|
-
declare const Title: ({ children, intent, allowFontScaling, level, typeface, fontStyle, ...nativeProps }: TitleProps) => React.JSX.Element;
|
|
38
|
-
export default Title;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Text from './Text';
|
|
2
|
-
import Caption from './Caption';
|
|
3
|
-
import Label from './Label';
|
|
4
|
-
import Title from './Title';
|
|
5
|
-
import Body from './Body';
|
|
6
|
-
interface TypographyProps {
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Typography.Text will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.
|
|
9
|
-
*/
|
|
10
|
-
Text: typeof Text;
|
|
11
|
-
Caption: typeof Caption;
|
|
12
|
-
Label: typeof Label;
|
|
13
|
-
Title: typeof Title;
|
|
14
|
-
Body: typeof Body;
|
|
15
|
-
}
|
|
16
|
-
declare const Typography: TypographyProps;
|
|
17
|
-
export default Typography;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const FONTWEIGHT_MAP: {
|
|
2
|
-
readonly light: "light";
|
|
3
|
-
readonly regular: "regular";
|
|
4
|
-
readonly 'semi-bold': "semiBold";
|
|
5
|
-
};
|
|
6
|
-
export type TypographyIntent = 'body' | 'subdued' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inverted' | 'archived' | 'disabled' | 'muted' | 'inactive';
|
package/types/index.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import styled from '@emotion/native';
|
|
2
|
-
import theme, { getTheme, ThemeProvider, useTheme, swagSystemPalette, swagLightSystemPalette, swagLightJobsSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, ehWorkDarkSystemPalette, ThemeSwitcher, withTheme, ehWorkSystemPalette, ehJobsSystemPalette } from './theme';
|
|
3
|
-
import { scale } from './utils/scale';
|
|
4
|
-
import Accordion from './components/Accordion';
|
|
5
|
-
import Alert from './components/Alert';
|
|
6
|
-
import AppCue from './components/AppCue';
|
|
7
|
-
import Attachment from './components/Attachment';
|
|
8
|
-
import Avatar, { useAvatarColors } from './components/Avatar';
|
|
9
|
-
import Badge from './components/Badge';
|
|
10
|
-
import BottomNavigation from './components/BottomNavigation';
|
|
11
|
-
import BottomSheet from './components/BottomSheet';
|
|
12
|
-
import Box from './components/Box';
|
|
13
|
-
import Button from './components/Button';
|
|
14
|
-
import Calendar from './components/Calendar';
|
|
15
|
-
import Carousel from './components/Carousel';
|
|
16
|
-
import Card from './components/Card';
|
|
17
|
-
import Chart from './components/Chart';
|
|
18
|
-
import Chip from './components/Chip';
|
|
19
|
-
import Collapse from './components/Collapse';
|
|
20
|
-
import Checkbox from './components/Checkbox';
|
|
21
|
-
import ContentNavigator from './components/ContentNavigator';
|
|
22
|
-
import DatePicker from './components/DatePicker';
|
|
23
|
-
import Divider from './components/Divider';
|
|
24
|
-
import Drawer from './components/Drawer';
|
|
25
|
-
import Empty from './components/StatusScreens/Empty';
|
|
26
|
-
import Error from './components/StatusScreens/Error';
|
|
27
|
-
import FAB from './components/FAB';
|
|
28
|
-
import HeroDesignProvider from './components/HeroDesignProvider';
|
|
29
|
-
import MapPin from './components/MapPin';
|
|
30
|
-
import Icon from './components/Icon';
|
|
31
|
-
import Illustration, { type IllustrationName, IllustrationList } from './components/Illustration';
|
|
32
|
-
import Image from './components/Image';
|
|
33
|
-
import List from './components/List';
|
|
34
|
-
import PinInput from './components/PinInput';
|
|
35
|
-
import Progress from './components/Progress';
|
|
36
|
-
import Slider from './components/Slider';
|
|
37
|
-
import Spinner from './components/Spinner';
|
|
38
|
-
import Swipeable from './components/Swipeable';
|
|
39
|
-
import Radio from './components/Radio';
|
|
40
|
-
import SectionHeading from './components/SectionHeading';
|
|
41
|
-
import Select from './components/Select';
|
|
42
|
-
import Skeleton from './components/Skeleton';
|
|
43
|
-
import Success from './components/StatusScreens/Success';
|
|
44
|
-
import Switch from './components/Switch';
|
|
45
|
-
import Tabs from './components/Tabs';
|
|
46
|
-
import Tag from './components/Tag';
|
|
47
|
-
import TextInput from './components/TextInput';
|
|
48
|
-
import TimePicker from './components/TimePicker';
|
|
49
|
-
import Toast from './components/Toast';
|
|
50
|
-
import Toolbar from './components/Toolbar';
|
|
51
|
-
import Typography from './components/Typography';
|
|
52
|
-
import Rate from './components/Rate';
|
|
53
|
-
import RefreshControl from './components/RefreshControl';
|
|
54
|
-
import RichTextEditor from './components/RichTextEditor';
|
|
55
|
-
import PageControl from './components/PageControl';
|
|
56
|
-
import Portal from './components/Portal';
|
|
57
|
-
import { ScrollViewWithFAB, SectionListWithFAB, FlatListWithFAB } from './components/AnimatedScroller';
|
|
58
|
-
import Search from './components/Search';
|
|
59
|
-
import SegmentedControl from './components/SegmentedControl';
|
|
60
|
-
import FloatingIsland from './components/FloatingIsland';
|
|
61
|
-
import LocaleProvider from './components/LocaleProvider';
|
|
62
|
-
import FilterTrigger from './components/FilterTrigger';
|
|
63
|
-
export { theme, getTheme, useTheme, scale, ThemeProvider, ThemeSwitcher, withTheme, swagSystemPalette, swagLightSystemPalette, swagLightJobsSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, ehWorkDarkSystemPalette, ehWorkSystemPalette, ehJobsSystemPalette, Accordion, Alert, AppCue, Attachment, Avatar, useAvatarColors, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Chart, Carousel, Chip, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, Error, FAB, FlatListWithFAB, Icon, Illustration, type IllustrationName, IllustrationList, Image, HeroDesignProvider, MapPin, List, PinInput, Progress, Portal, PageControl, Skeleton, Slider, Spinner, Swipeable, Radio, Search, SegmentedControl, ScrollViewWithFAB, SectionHeading, SectionListWithFAB, Select, Success, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, Rate, RefreshControl, RichTextEditor, FloatingIsland, LocaleProvider, FilterTrigger, styled, };
|
|
64
|
-
export * from './types';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* INTERNAL API - Do not remove this file
|
|
3
|
-
*
|
|
4
|
-
* This file re-exports components with their full internal APIs (including internal props).
|
|
5
|
-
* It's used by:
|
|
6
|
-
* 1. @hero-design/rn-work-uikit package - provides access to internal props like
|
|
7
|
-
* TextInputComponent and groupStyleEnabled for component customization
|
|
8
|
-
* 2. Internal type definitions - exports InternalMultiSelectProps, InternalSingleSelectProps, etc.
|
|
9
|
-
* 3. Build tools - configured in rn-work-uikit's tsconfig, rollup, and babel configs
|
|
10
|
-
*
|
|
11
|
-
* The public API (main index.ts) omits internal props to keep the external interface clean,
|
|
12
|
-
* but this internal version is essential for extending the library with advanced features.
|
|
13
|
-
*/
|
|
14
|
-
import Select from './components/Select/index.internal';
|
|
15
|
-
import DatePicker from './components/DatePicker/index.internal';
|
|
16
|
-
import TimePicker from './components/TimePicker/index.internal';
|
|
17
|
-
export * from '.';
|
|
18
|
-
export type { MultiSelectProps, SingleSelectProps, DatePickerProps, TimePickerProps, } from './types.internal';
|
|
19
|
-
export { Select, DatePicker, TimePicker };
|
package/types/locales/en_AU.d.ts
DELETED
package/types/locales/en_CA.d.ts
DELETED
package/types/locales/index.d.ts
DELETED
package/types/locales/types.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const LOCALES: readonly ["en-AU", "en-CA"];
|
|
2
|
-
export type LocaleCode = typeof LOCALES[number];
|
|
3
|
-
export type DateTimeFormats = {
|
|
4
|
-
fullDate: string;
|
|
5
|
-
};
|
|
6
|
-
export type LocaleValues = {
|
|
7
|
-
lang: LocaleCode;
|
|
8
|
-
dateTimeFormats: DateTimeFormats;
|
|
9
|
-
};
|
|
10
|
-
export {};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { RenderOptions } from '@testing-library/react-native';
|
|
4
|
-
declare const renderWithTheme: (ui: ReactElement, options?: RenderOptions) => {
|
|
5
|
-
rerender: (component: React.ReactElement) => void;
|
|
6
|
-
rerenderAsync: (component: React.ReactElement) => Promise<void>;
|
|
7
|
-
update: (component: React.ReactElement) => void;
|
|
8
|
-
updateAsync: (component: React.ReactElement) => Promise<void>;
|
|
9
|
-
unmount: () => void;
|
|
10
|
-
unmountAsync: () => Promise<void>;
|
|
11
|
-
toJSON: () => null | import("react-test-renderer").ReactTestRendererJSON | import("react-test-renderer").ReactTestRendererJSON[];
|
|
12
|
-
debug: import("@testing-library/react-native").DebugFunction;
|
|
13
|
-
root: ReactTestInstance;
|
|
14
|
-
UNSAFE_root: ReactTestInstance;
|
|
15
|
-
UNSAFE_getByProps: (props: {
|
|
16
|
-
[x: string]: unknown;
|
|
17
|
-
}) => ReactTestInstance;
|
|
18
|
-
UNSAFE_getAllByProps: (props: {
|
|
19
|
-
[x: string]: unknown;
|
|
20
|
-
}) => Array<ReactTestInstance>;
|
|
21
|
-
UNSAFE_queryByProps: (props: {
|
|
22
|
-
[x: string]: unknown;
|
|
23
|
-
}) => ReactTestInstance | null;
|
|
24
|
-
UNSAFE_queryAllByProps: (props: {
|
|
25
|
-
[x: string]: unknown;
|
|
26
|
-
}) => Array<ReactTestInstance>;
|
|
27
|
-
UNSAFE_getByType: <P>(type: React.ComponentType<P>) => ReactTestInstance;
|
|
28
|
-
UNSAFE_getAllByType: <P>(type: React.ComponentType<P>) => Array<ReactTestInstance>;
|
|
29
|
-
UNSAFE_queryByType: <P>(type: React.ComponentType<P>) => ReactTestInstance | null;
|
|
30
|
-
UNSAFE_queryAllByType: <P>(type: React.ComponentType<P>) => Array<ReactTestInstance>;
|
|
31
|
-
getByRole: import("@testing-library/react-native/build/queries/make-queries").GetByQuery<import("@testing-library/react-native/build/queries/role").ByRoleMatcher, import("@testing-library/react-native/build/queries/role").ByRoleOptions>;
|
|
32
|
-
getAllByRole: import("@testing-library/react-native/build/queries/make-queries").GetAllByQuery<import("@testing-library/react-native/build/queries/role").ByRoleMatcher, import("@testing-library/react-native/build/queries/role").ByRoleOptions>;
|
|
33
|
-
queryByRole: import("@testing-library/react-native/build/queries/make-queries").QueryByQuery<import("@testing-library/react-native/build/queries/role").ByRoleMatcher, import("@testing-library/react-native/build/queries/role").ByRoleOptions>;
|
|
34
|
-
queryAllByRole: import("@testing-library/react-native/build/queries/make-queries").QueryAllByQuery<import("@testing-library/react-native/build/queries/role").ByRoleMatcher, import("@testing-library/react-native/build/queries/role").ByRoleOptions>;
|
|
35
|
-
findByRole: import("@testing-library/react-native/build/queries/make-queries").FindByQuery<import("@testing-library/react-native/build/queries/role").ByRoleMatcher, import("@testing-library/react-native/build/queries/role").ByRoleOptions>;
|
|
36
|
-
findAllByRole: import("@testing-library/react-native/build/queries/make-queries").FindAllByQuery<import("@testing-library/react-native/build/queries/role").ByRoleMatcher, import("@testing-library/react-native/build/queries/role").ByRoleOptions>;
|
|
37
|
-
getByHintText: import("@testing-library/react-native/build/queries/make-queries").GetByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
38
|
-
getAllByHintText: import("@testing-library/react-native/build/queries/make-queries").GetAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
39
|
-
queryByHintText: import("@testing-library/react-native/build/queries/make-queries").QueryByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
40
|
-
queryAllByHintText: import("@testing-library/react-native/build/queries/make-queries").QueryAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
41
|
-
findByHintText: import("@testing-library/react-native/build/queries/make-queries").FindByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
42
|
-
findAllByHintText: import("@testing-library/react-native/build/queries/make-queries").FindAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
43
|
-
getByA11yHint: import("@testing-library/react-native/build/queries/make-queries").GetByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
44
|
-
getAllByA11yHint: import("@testing-library/react-native/build/queries/make-queries").GetAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
45
|
-
queryByA11yHint: import("@testing-library/react-native/build/queries/make-queries").QueryByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
46
|
-
queryAllByA11yHint: import("@testing-library/react-native/build/queries/make-queries").QueryAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
47
|
-
findByA11yHint: import("@testing-library/react-native/build/queries/make-queries").FindByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
48
|
-
findAllByA11yHint: import("@testing-library/react-native/build/queries/make-queries").FindAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
49
|
-
getByAccessibilityHint: import("@testing-library/react-native/build/queries/make-queries").GetByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
50
|
-
getAllByAccessibilityHint: import("@testing-library/react-native/build/queries/make-queries").GetAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
51
|
-
queryByAccessibilityHint: import("@testing-library/react-native/build/queries/make-queries").QueryByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
52
|
-
queryAllByAccessibilityHint: import("@testing-library/react-native/build/queries/make-queries").QueryAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
53
|
-
findByAccessibilityHint: import("@testing-library/react-native/build/queries/make-queries").FindByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
54
|
-
findAllByAccessibilityHint: import("@testing-library/react-native/build/queries/make-queries").FindAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
55
|
-
getByLabelText: import("@testing-library/react-native/build/queries/make-queries").GetByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
56
|
-
getAllByLabelText: import("@testing-library/react-native/build/queries/make-queries").GetAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
57
|
-
queryByLabelText: import("@testing-library/react-native/build/queries/make-queries").QueryByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
58
|
-
queryAllByLabelText: import("@testing-library/react-native/build/queries/make-queries").QueryAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
59
|
-
findByLabelText: import("@testing-library/react-native/build/queries/make-queries").FindByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
60
|
-
findAllByLabelText: import("@testing-library/react-native/build/queries/make-queries").FindAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
61
|
-
getByPlaceholderText: import("@testing-library/react-native/build/queries/make-queries").GetByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
62
|
-
getAllByPlaceholderText: import("@testing-library/react-native/build/queries/make-queries").GetAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
63
|
-
queryByPlaceholderText: import("@testing-library/react-native/build/queries/make-queries").QueryByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
64
|
-
queryAllByPlaceholderText: import("@testing-library/react-native/build/queries/make-queries").QueryAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
65
|
-
findByPlaceholderText: import("@testing-library/react-native/build/queries/make-queries").FindByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
66
|
-
findAllByPlaceholderText: import("@testing-library/react-native/build/queries/make-queries").FindAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
67
|
-
getByDisplayValue: import("@testing-library/react-native/build/queries/make-queries").GetByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
68
|
-
getAllByDisplayValue: import("@testing-library/react-native/build/queries/make-queries").GetAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
69
|
-
queryByDisplayValue: import("@testing-library/react-native/build/queries/make-queries").QueryByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
70
|
-
queryAllByDisplayValue: import("@testing-library/react-native/build/queries/make-queries").QueryAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
71
|
-
findByDisplayValue: import("@testing-library/react-native/build/queries/make-queries").FindByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
72
|
-
findAllByDisplayValue: import("@testing-library/react-native/build/queries/make-queries").FindAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
73
|
-
getByTestId: import("@testing-library/react-native/build/queries/make-queries").GetByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
74
|
-
getAllByTestId: import("@testing-library/react-native/build/queries/make-queries").GetAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
75
|
-
queryByTestId: import("@testing-library/react-native/build/queries/make-queries").QueryByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
76
|
-
queryAllByTestId: import("@testing-library/react-native/build/queries/make-queries").QueryAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
77
|
-
findByTestId: import("@testing-library/react-native/build/queries/make-queries").FindByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
78
|
-
findAllByTestId: import("@testing-library/react-native/build/queries/make-queries").FindAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
79
|
-
getByText: import("@testing-library/react-native/build/queries/make-queries").GetByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
80
|
-
getAllByText: import("@testing-library/react-native/build/queries/make-queries").GetAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
81
|
-
queryByText: import("@testing-library/react-native/build/queries/make-queries").QueryByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
82
|
-
queryAllByText: import("@testing-library/react-native/build/queries/make-queries").QueryAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
83
|
-
findByText: import("@testing-library/react-native/build/queries/make-queries").FindByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
84
|
-
findAllByText: import("@testing-library/react-native/build/queries/make-queries").FindAllByQuery<import("@testing-library/react-native/build/matches").TextMatch, import("@testing-library/react-native/build/queries/options").CommonQueryOptions & import("@testing-library/react-native/build/matches").TextMatchOptions>;
|
|
85
|
-
};
|
|
86
|
-
export default renderWithTheme;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const setOrientation: (orientation: "portrait" | "landscape") => void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Theme } from './getTheme';
|
|
2
|
-
export interface ThemeProviderProps {
|
|
3
|
-
theme: Partial<Theme> | ((outerTheme: Theme) => Theme);
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
interface ThemeProviderType {
|
|
7
|
-
(props: ThemeProviderProps): React.ReactElement;
|
|
8
|
-
}
|
|
9
|
-
declare const ThemeProvider: ThemeProviderType;
|
|
10
|
-
declare const useTheme: () => Theme;
|
|
11
|
-
export { useTheme };
|
|
12
|
-
export default ThemeProvider;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
type ThemeName = 'swag' | 'swagDark' | 'swagLight' | 'work' | 'jobs' | 'wallet' | 'eBens' | 'ehWorkDark' | 'ehWork' | 'ehJobs';
|
|
4
|
-
declare const ThemeSwitcher: ({ name, children, }: {
|
|
5
|
-
name?: ThemeName;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
}) => React.JSX.Element;
|
|
8
|
-
export declare const withTheme: <P extends Record<string, unknown>>(C: React.ComponentType<P>, themeName: ThemeName) => (props: PropsWithChildren<P>) => React.JSX.Element;
|
|
9
|
-
export default ThemeSwitcher;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { GlobalTheme } from '../global';
|
|
2
|
-
declare const getAccordionTheme: (theme: GlobalTheme) => {
|
|
3
|
-
colors: {
|
|
4
|
-
background: string;
|
|
5
|
-
};
|
|
6
|
-
space: {
|
|
7
|
-
padding: number;
|
|
8
|
-
};
|
|
9
|
-
radii: {
|
|
10
|
-
card: number;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export default getAccordionTheme;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { GlobalTheme } from '../global';
|
|
2
|
-
declare const getAlertTheme: (theme: GlobalTheme) => {
|
|
3
|
-
colors: {
|
|
4
|
-
backgrounds: {
|
|
5
|
-
success: string;
|
|
6
|
-
warning: string;
|
|
7
|
-
error: string;
|
|
8
|
-
info: string;
|
|
9
|
-
notification: string;
|
|
10
|
-
};
|
|
11
|
-
texts: {
|
|
12
|
-
success: string;
|
|
13
|
-
warning: string;
|
|
14
|
-
error: string;
|
|
15
|
-
info: string;
|
|
16
|
-
notification: string;
|
|
17
|
-
};
|
|
18
|
-
divider: string;
|
|
19
|
-
};
|
|
20
|
-
radii: {
|
|
21
|
-
default: number;
|
|
22
|
-
};
|
|
23
|
-
sizes: {
|
|
24
|
-
height: number;
|
|
25
|
-
};
|
|
26
|
-
space: {
|
|
27
|
-
contentPaddingHorizontal: number;
|
|
28
|
-
textPaddingHorizontal: number;
|
|
29
|
-
iconLeftPadding: number;
|
|
30
|
-
ctaPadding: number;
|
|
31
|
-
};
|
|
32
|
-
borderWidths: {
|
|
33
|
-
base: number;
|
|
34
|
-
};
|
|
35
|
-
shadows: {
|
|
36
|
-
wrapper: {
|
|
37
|
-
shadowOffset: {
|
|
38
|
-
width: number;
|
|
39
|
-
height: number;
|
|
40
|
-
};
|
|
41
|
-
shadowColor: string;
|
|
42
|
-
shadowOpacity: number;
|
|
43
|
-
shadowRadius: number;
|
|
44
|
-
elevation: number;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
export default getAlertTheme;
|