@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,119 +0,0 @@
|
|
|
1
|
-
import getAccordionTheme from './components/accordion';
|
|
2
|
-
import getAlertTheme from './components/alert';
|
|
3
|
-
import getAttachmentTheme from './components/attachment';
|
|
4
|
-
import getAvatarTheme from './components/avatar';
|
|
5
|
-
import type { BadgeThemeType } from './components/badge';
|
|
6
|
-
import getBottomNavigationTheme from './components/bottomNavigation';
|
|
7
|
-
import getBottomSheetTheme from './components/bottomSheet';
|
|
8
|
-
import type { ButtonThemeType } from './components/button';
|
|
9
|
-
import getCalendarTheme from './components/calendar';
|
|
10
|
-
import getCardTheme from './components/card';
|
|
11
|
-
import type { CarouselThemeType } from './components/carousel';
|
|
12
|
-
import getCardCarouselTheme from './components/cardCarousel';
|
|
13
|
-
import getCheckboxTheme from './components/checkbox';
|
|
14
|
-
import getChipTheme from './components/chip';
|
|
15
|
-
import getChartTheme from './components/chart';
|
|
16
|
-
import getColumnChartTheme from './components/columnChart';
|
|
17
|
-
import getContentNavigatorTheme from './components/contentNavigator';
|
|
18
|
-
import getDatePickerTheme from './components/datePicker';
|
|
19
|
-
import getDividerTheme from './components/divider';
|
|
20
|
-
import getDrawerTheme from './components/drawer';
|
|
21
|
-
import type { EmptyThemeType } from './components/empty';
|
|
22
|
-
import type { ErrorThemeType } from './components/error';
|
|
23
|
-
import type { FABThemeType } from './components/fab';
|
|
24
|
-
import getIconTheme from './components/icon';
|
|
25
|
-
import getImageTheme from './components/image';
|
|
26
|
-
import getListTheme from './components/list';
|
|
27
|
-
import getPageControlTheme from './components/pageControl';
|
|
28
|
-
import type { PinInputThemeType } from './components/pinInput';
|
|
29
|
-
import getProgressTheme from './components/progress';
|
|
30
|
-
import getRadioTheme from './components/radio';
|
|
31
|
-
import getRateTheme from './components/rate';
|
|
32
|
-
import getRefreshControlTheme from './components/refreshControl';
|
|
33
|
-
import getRichTextEditorTheme from './components/richTextEditor';
|
|
34
|
-
import getSectionHeadingTheme from './components/sectionHeading';
|
|
35
|
-
import getSelectTheme from './components/select';
|
|
36
|
-
import getSkeletonTheme from './components/skeleton';
|
|
37
|
-
import getSliderTheme from './components/slider';
|
|
38
|
-
import getSpinnerTheme from './components/spinner';
|
|
39
|
-
import type { SuccessThemeType } from './components/success';
|
|
40
|
-
import getSwipeableTheme from './components/swipeable';
|
|
41
|
-
import getSwitchTheme from './components/switch';
|
|
42
|
-
import getTabsTheme from './components/tabs';
|
|
43
|
-
import type { TagThemeType } from './components/tag';
|
|
44
|
-
import getTextInputTheme from './components/textInput';
|
|
45
|
-
import getTimePickerTheme from './components/timePicker';
|
|
46
|
-
import getToastTheme from './components/toast';
|
|
47
|
-
import getToolbarTheme from './components/toolbar';
|
|
48
|
-
import getTypographyTheme from './components/typography';
|
|
49
|
-
import type { GlobalTheme, Scale, SystemPalette } from './global';
|
|
50
|
-
import getSearchTheme from './components/search';
|
|
51
|
-
import getMapPinTheme from './components/mapPin';
|
|
52
|
-
import getFloatingIslandTheme from './components/floatingIsland';
|
|
53
|
-
import getAppCueTheme from './components/appCue';
|
|
54
|
-
import type { ThemeMode } from './global/colors/types';
|
|
55
|
-
import getFilterTriggerTheme from './components/filterTrigger';
|
|
56
|
-
import getSegmentedControlTheme from './components/segmentedControl';
|
|
57
|
-
type Theme = GlobalTheme & {
|
|
58
|
-
themeMode?: ThemeMode;
|
|
59
|
-
} & {
|
|
60
|
-
__hd__: {
|
|
61
|
-
accordion: ReturnType<typeof getAccordionTheme>;
|
|
62
|
-
alert: ReturnType<typeof getAlertTheme>;
|
|
63
|
-
appCue: ReturnType<typeof getAppCueTheme>;
|
|
64
|
-
attachment: ReturnType<typeof getAttachmentTheme>;
|
|
65
|
-
avatar: ReturnType<typeof getAvatarTheme>;
|
|
66
|
-
badge: BadgeThemeType;
|
|
67
|
-
bottomNavigation: ReturnType<typeof getBottomNavigationTheme>;
|
|
68
|
-
bottomSheet: ReturnType<typeof getBottomSheetTheme>;
|
|
69
|
-
button: ButtonThemeType;
|
|
70
|
-
calendar: ReturnType<typeof getCalendarTheme>;
|
|
71
|
-
card: ReturnType<typeof getCardTheme>;
|
|
72
|
-
carousel: CarouselThemeType;
|
|
73
|
-
cardCarousel: ReturnType<typeof getCardCarouselTheme>;
|
|
74
|
-
checkbox: ReturnType<typeof getCheckboxTheme>;
|
|
75
|
-
chip: ReturnType<typeof getChipTheme>;
|
|
76
|
-
chart: ReturnType<typeof getChartTheme>;
|
|
77
|
-
columnChart: ReturnType<typeof getColumnChartTheme>;
|
|
78
|
-
contentNavigator: ReturnType<typeof getContentNavigatorTheme>;
|
|
79
|
-
datePicker: ReturnType<typeof getDatePickerTheme>;
|
|
80
|
-
divider: ReturnType<typeof getDividerTheme>;
|
|
81
|
-
drawer: ReturnType<typeof getDrawerTheme>;
|
|
82
|
-
empty: EmptyThemeType;
|
|
83
|
-
error: ErrorThemeType;
|
|
84
|
-
fab: FABThemeType;
|
|
85
|
-
filterTrigger: ReturnType<typeof getFilterTriggerTheme>;
|
|
86
|
-
icon: ReturnType<typeof getIconTheme>;
|
|
87
|
-
image: ReturnType<typeof getImageTheme>;
|
|
88
|
-
list: ReturnType<typeof getListTheme>;
|
|
89
|
-
mapPin: ReturnType<typeof getMapPinTheme>;
|
|
90
|
-
pageControl: ReturnType<typeof getPageControlTheme>;
|
|
91
|
-
pinInput: PinInputThemeType;
|
|
92
|
-
progress: ReturnType<typeof getProgressTheme>;
|
|
93
|
-
radio: ReturnType<typeof getRadioTheme>;
|
|
94
|
-
rate: ReturnType<typeof getRateTheme>;
|
|
95
|
-
refreshControl: ReturnType<typeof getRefreshControlTheme>;
|
|
96
|
-
richTextEditor: ReturnType<typeof getRichTextEditorTheme>;
|
|
97
|
-
search: ReturnType<typeof getSearchTheme>;
|
|
98
|
-
sectionHeading: ReturnType<typeof getSectionHeadingTheme>;
|
|
99
|
-
select: ReturnType<typeof getSelectTheme>;
|
|
100
|
-
skeleton: ReturnType<typeof getSkeletonTheme>;
|
|
101
|
-
slider: ReturnType<typeof getSliderTheme>;
|
|
102
|
-
spinner: ReturnType<typeof getSpinnerTheme>;
|
|
103
|
-
success: SuccessThemeType;
|
|
104
|
-
swipeable: ReturnType<typeof getSwipeableTheme>;
|
|
105
|
-
switch: ReturnType<typeof getSwitchTheme>;
|
|
106
|
-
tabs: ReturnType<typeof getTabsTheme>;
|
|
107
|
-
tag: TagThemeType;
|
|
108
|
-
textInput: ReturnType<typeof getTextInputTheme>;
|
|
109
|
-
timePicker: ReturnType<typeof getTimePickerTheme>;
|
|
110
|
-
toast: ReturnType<typeof getToastTheme>;
|
|
111
|
-
toolbar: ReturnType<typeof getToolbarTheme>;
|
|
112
|
-
typography: ReturnType<typeof getTypographyTheme>;
|
|
113
|
-
floatingIsland: ReturnType<typeof getFloatingIslandTheme>;
|
|
114
|
-
segmentedControl: ReturnType<typeof getSegmentedControlTheme>;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
declare const getTheme: (scale?: Scale, systemPallete?: SystemPalette) => Theme;
|
|
118
|
-
export default getTheme;
|
|
119
|
-
export type { Theme };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
interface BorderWidths {
|
|
2
|
-
base: number;
|
|
3
|
-
medium: number;
|
|
4
|
-
}
|
|
5
|
-
interface Radii {
|
|
6
|
-
rounded: number;
|
|
7
|
-
base: number;
|
|
8
|
-
medium: number;
|
|
9
|
-
large: number;
|
|
10
|
-
xlarge: number;
|
|
11
|
-
xxlarge: number;
|
|
12
|
-
xxxlarge: number;
|
|
13
|
-
'5xlarge': number;
|
|
14
|
-
}
|
|
15
|
-
declare const getBorderWidths: (baseBorderWidth: number) => BorderWidths;
|
|
16
|
-
declare const getRadii: (baseRadius: number) => Radii;
|
|
17
|
-
export { getBorderWidths, getRadii };
|
|
18
|
-
export type { BorderWidths, Radii };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export type GlobalSystemPalette = {
|
|
2
|
-
defaultGlobalSurface: string;
|
|
3
|
-
onDefaultGlobalSurface: string;
|
|
4
|
-
neutralGlobalSurface: string;
|
|
5
|
-
mutedOnDefaultGlobalSurface: string;
|
|
6
|
-
inactiveOnDefaultGlobalSurface: string;
|
|
7
|
-
disabledOnDefaultGlobalSurface: string;
|
|
8
|
-
darkGlobalSurface: string;
|
|
9
|
-
onDarkGlobalSurface: string;
|
|
10
|
-
overlayGlobalSurface: string;
|
|
11
|
-
primaryOutline: string;
|
|
12
|
-
secondaryOutline: string;
|
|
13
|
-
inactiveOutline: string;
|
|
14
|
-
disabledOutline: string;
|
|
15
|
-
error: string;
|
|
16
|
-
mutedError: string;
|
|
17
|
-
errorSurface: string;
|
|
18
|
-
onErrorSurface: string;
|
|
19
|
-
warning: string;
|
|
20
|
-
mutedWarning: string;
|
|
21
|
-
warningSurface: string;
|
|
22
|
-
onWarningSurface: string;
|
|
23
|
-
success: string;
|
|
24
|
-
mutedSuccess: string;
|
|
25
|
-
successSurface: string;
|
|
26
|
-
onSuccessSurface: string;
|
|
27
|
-
info: string;
|
|
28
|
-
mutedInfo: string;
|
|
29
|
-
infoSurface: string;
|
|
30
|
-
onInfoSurface: string;
|
|
31
|
-
archived: string;
|
|
32
|
-
mutedArchived: string;
|
|
33
|
-
archivedSurface: string;
|
|
34
|
-
onArchivedSurface: string;
|
|
35
|
-
black?: string;
|
|
36
|
-
white?: string;
|
|
37
|
-
};
|
|
38
|
-
export type BrandSystemPalette = {
|
|
39
|
-
primary: string;
|
|
40
|
-
onPrimary: string;
|
|
41
|
-
secondary: string;
|
|
42
|
-
onSecondary: string;
|
|
43
|
-
defaultSurface: string;
|
|
44
|
-
highlightedSurface: string;
|
|
45
|
-
secondaryHighlightedSurface?: string;
|
|
46
|
-
pressedSurface: string;
|
|
47
|
-
decorativePrimary: string;
|
|
48
|
-
decorativePrimarySurface: string;
|
|
49
|
-
decorativeSecondary?: string;
|
|
50
|
-
decorativeSecondarySurface?: string;
|
|
51
|
-
};
|
|
52
|
-
export type ThemeMode = 'light' | 'dark';
|
|
53
|
-
type ThemeName = 'swagLight' | 'swagLightJobs' | 'ehWorkDark' | 'ehWork' | 'ehJobs';
|
|
54
|
-
export type SystemPalette = GlobalSystemPalette & BrandSystemPalette & {
|
|
55
|
-
themeMode?: ThemeMode;
|
|
56
|
-
name?: ThemeName;
|
|
57
|
-
};
|
|
58
|
-
export {};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { scale as defaultScale } from './scale';
|
|
2
|
-
import swagSystemPalette from './colors/swag';
|
|
3
|
-
import swagDarkSystemPalette from './colors/swagDark';
|
|
4
|
-
import swagLightSystemPalette from './colors/swagLight';
|
|
5
|
-
import swagLightJobsSystemPalette from './colors/swagLightJobs';
|
|
6
|
-
import workSystemPalette from './colors/work';
|
|
7
|
-
import jobsSystemPalette from './colors/jobs';
|
|
8
|
-
import walletSystemPalette from './colors/wallet';
|
|
9
|
-
import eBensSystemPalette from './colors/eBens';
|
|
10
|
-
import ehWorkDarkSystemPalette from './colors/ehWorkDark';
|
|
11
|
-
import ehWorkSystemPalette from './colors/ehWork';
|
|
12
|
-
import ehJobsSystemPalette from './colors/ehJobs';
|
|
13
|
-
import type { Scale } from './scale';
|
|
14
|
-
import type { SystemPalette } from './colors/types';
|
|
15
|
-
declare const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
|
|
16
|
-
colors: {
|
|
17
|
-
defaultGlobalSurface: string;
|
|
18
|
-
onDefaultGlobalSurface: string;
|
|
19
|
-
neutralGlobalSurface: string;
|
|
20
|
-
mutedOnDefaultGlobalSurface: string;
|
|
21
|
-
inactiveOnDefaultGlobalSurface: string;
|
|
22
|
-
disabledOnDefaultGlobalSurface: string;
|
|
23
|
-
darkGlobalSurface: string;
|
|
24
|
-
onDarkGlobalSurface: string;
|
|
25
|
-
overlayGlobalSurface: string;
|
|
26
|
-
primaryOutline: string;
|
|
27
|
-
secondaryOutline: string;
|
|
28
|
-
inactiveOutline: string;
|
|
29
|
-
disabledOutline: string;
|
|
30
|
-
error: string;
|
|
31
|
-
mutedError: string;
|
|
32
|
-
errorSurface: string;
|
|
33
|
-
onErrorSurface: string;
|
|
34
|
-
warning: string;
|
|
35
|
-
mutedWarning: string;
|
|
36
|
-
warningSurface: string;
|
|
37
|
-
onWarningSurface: string;
|
|
38
|
-
success: string;
|
|
39
|
-
mutedSuccess: string;
|
|
40
|
-
successSurface: string;
|
|
41
|
-
onSuccessSurface: string;
|
|
42
|
-
info: string;
|
|
43
|
-
mutedInfo: string;
|
|
44
|
-
infoSurface: string;
|
|
45
|
-
onInfoSurface: string;
|
|
46
|
-
archived: string;
|
|
47
|
-
mutedArchived: string;
|
|
48
|
-
archivedSurface: string;
|
|
49
|
-
onArchivedSurface: string;
|
|
50
|
-
black?: string;
|
|
51
|
-
white?: string;
|
|
52
|
-
primary: string;
|
|
53
|
-
onPrimary: string;
|
|
54
|
-
secondary: string;
|
|
55
|
-
onSecondary: string;
|
|
56
|
-
defaultSurface: string;
|
|
57
|
-
highlightedSurface: string;
|
|
58
|
-
secondaryHighlightedSurface?: string;
|
|
59
|
-
pressedSurface: string;
|
|
60
|
-
decorativePrimary: string;
|
|
61
|
-
decorativePrimarySurface: string;
|
|
62
|
-
decorativeSecondary?: string;
|
|
63
|
-
decorativeSecondarySurface?: string;
|
|
64
|
-
themeMode?: import("./colors/types").ThemeMode;
|
|
65
|
-
name?: "swagLight" | "swagLightJobs" | "ehWorkDark" | "ehWork" | "ehJobs";
|
|
66
|
-
};
|
|
67
|
-
fonts: import("./typography").Fonts;
|
|
68
|
-
fontSizes: import("./typography").FontSizes;
|
|
69
|
-
lineHeights: import("./typography").FontSizes;
|
|
70
|
-
borderWidths: import("./borders").BorderWidths;
|
|
71
|
-
space: import("./space").Space;
|
|
72
|
-
sizes: import("./sizes").Sizes;
|
|
73
|
-
radii: import("./borders").Radii;
|
|
74
|
-
shadows: import("./shadows/types").ShadowPalette;
|
|
75
|
-
};
|
|
76
|
-
type GlobalTheme = ReturnType<typeof getGlobalTheme>;
|
|
77
|
-
export type { GlobalTheme, Scale, SystemPalette };
|
|
78
|
-
export { getGlobalTheme, defaultScale, swagSystemPalette, swagLightSystemPalette, swagLightJobsSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, ehWorkDarkSystemPalette, ehWorkSystemPalette, ehJobsSystemPalette, };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const scale: {
|
|
2
|
-
borderWidth: number;
|
|
3
|
-
space: number;
|
|
4
|
-
size: number;
|
|
5
|
-
font: {
|
|
6
|
-
neutral: string;
|
|
7
|
-
playful: string;
|
|
8
|
-
};
|
|
9
|
-
fontSize: number;
|
|
10
|
-
radius: number;
|
|
11
|
-
};
|
|
12
|
-
type Scale = typeof scale;
|
|
13
|
-
export { scale };
|
|
14
|
-
export type { Scale };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type ShadowStyles = {
|
|
2
|
-
shadowOffset: {
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
};
|
|
6
|
-
shadowColor: string;
|
|
7
|
-
shadowOpacity: number;
|
|
8
|
-
shadowRadius: number;
|
|
9
|
-
elevation: number;
|
|
10
|
-
};
|
|
11
|
-
export type ShadowPalette = {
|
|
12
|
-
default: ShadowStyles;
|
|
13
|
-
medium: ShadowStyles;
|
|
14
|
-
deep: ShadowStyles;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Space } from './space';
|
|
2
|
-
interface Sizes extends Space {
|
|
3
|
-
xxxxxlarge: number;
|
|
4
|
-
'6xlarge': number;
|
|
5
|
-
'7xlarge': number;
|
|
6
|
-
'9xlarge': number;
|
|
7
|
-
'14xlarge': number;
|
|
8
|
-
'15xlarge': number;
|
|
9
|
-
'18xlarge': number;
|
|
10
|
-
'19xlarge': number;
|
|
11
|
-
}
|
|
12
|
-
declare const getSizes: (baseSize: number) => Sizes;
|
|
13
|
-
export { getSizes };
|
|
14
|
-
export type { Sizes };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface Space {
|
|
2
|
-
large: number;
|
|
3
|
-
medium: number;
|
|
4
|
-
small: number;
|
|
5
|
-
smallMedium: number;
|
|
6
|
-
xlarge: number;
|
|
7
|
-
xsmall: number;
|
|
8
|
-
xxlarge: number;
|
|
9
|
-
xxsmall: number;
|
|
10
|
-
xxxlarge: number;
|
|
11
|
-
xxxxlarge: number;
|
|
12
|
-
'5xlarge': number;
|
|
13
|
-
}
|
|
14
|
-
declare const getSpace: (baseSpace: number) => Space;
|
|
15
|
-
export { getSpace };
|
|
16
|
-
export type { Space };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
interface FontWeights {
|
|
2
|
-
light: string;
|
|
3
|
-
regular: string;
|
|
4
|
-
semiBold: string;
|
|
5
|
-
lightItalic: string;
|
|
6
|
-
regularItalic: string;
|
|
7
|
-
semiBoldItalic: string;
|
|
8
|
-
}
|
|
9
|
-
interface Fonts {
|
|
10
|
-
neutral: FontWeights;
|
|
11
|
-
playful: FontWeights;
|
|
12
|
-
}
|
|
13
|
-
interface FontSizes {
|
|
14
|
-
'7xlarge': number;
|
|
15
|
-
'6xlarge': number;
|
|
16
|
-
xxxxxlarge: number;
|
|
17
|
-
xxxxlarge: number;
|
|
18
|
-
xxxlarge: number;
|
|
19
|
-
xxlarge: number;
|
|
20
|
-
xlarge: number;
|
|
21
|
-
large: number;
|
|
22
|
-
medium: number;
|
|
23
|
-
small: number;
|
|
24
|
-
xsmall: number;
|
|
25
|
-
}
|
|
26
|
-
type LineHeights = FontSizes;
|
|
27
|
-
declare const getFonts: ({ neutral, playful, }: {
|
|
28
|
-
neutral: string;
|
|
29
|
-
playful: string;
|
|
30
|
-
}) => Fonts;
|
|
31
|
-
declare const getFontSizes: (baseFontSize: number) => FontSizes;
|
|
32
|
-
declare const getLineHeights: (fontSizes: FontSizes) => LineHeights;
|
|
33
|
-
export { getFonts, getFontSizes, getLineHeights };
|
|
34
|
-
export type { Fonts, FontSizes };
|
package/types/theme/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import getTheme from './getTheme';
|
|
2
|
-
import ThemeProvider, { useTheme } from './ThemeProvider';
|
|
3
|
-
import ThemeSwitcher, { withTheme } from './ThemeSwitcher';
|
|
4
|
-
import { swagSystemPalette, swagLightSystemPalette, swagLightJobsSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, ehWorkDarkSystemPalette, ehWorkSystemPalette, ehJobsSystemPalette } from './global';
|
|
5
|
-
import type { Theme } from './getTheme';
|
|
6
|
-
declare const defaultTheme: Theme;
|
|
7
|
-
export type { Theme };
|
|
8
|
-
export { withTheme, getTheme, ThemeProvider, ThemeSwitcher, useTheme, swagSystemPalette, swagLightSystemPalette, swagLightJobsSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, ehWorkDarkSystemPalette, ehWorkSystemPalette, ehJobsSystemPalette, };
|
|
9
|
-
export default defaultTheme;
|
package/types/types.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { BottomNavigationTabType } from './components/BottomNavigation';
|
|
2
|
-
import type { IconName, IconProps } from './components/Icon';
|
|
3
|
-
import type { SingleSelectProps, MultiSelectProps } from './components/Select';
|
|
4
|
-
import type { TabType } from './components/Tabs';
|
|
5
|
-
import type { TextInputProps, TextInputHandles } from './components/TextInput';
|
|
6
|
-
import type { RichTextEditorRef, RichTextEditorProps } from './components/RichTextEditor';
|
|
7
|
-
import type { Theme } from './theme';
|
|
8
|
-
import type { ListRenderOptionInfo, SectionListRenderOptionInfo, SelectOptionType } from './components/Select/types';
|
|
9
|
-
import type { SwipeableProps } from './components/Swipeable';
|
|
10
|
-
import type { TextProps } from './components/Typography/Text';
|
|
11
|
-
import type { CardCarouselHandles } from './components/Carousel/CardCarousel';
|
|
12
|
-
import type { FABHandles } from './components/FAB/FAB';
|
|
13
|
-
import type { ActionGroupHandles, ActionGroupProps } from './components/FAB/ActionGroup';
|
|
14
|
-
import type { ActionItemProps } from './components/FAB/ActionGroup/ActionItem';
|
|
15
|
-
import type { SliderRangeValue } from './components/Slider/RangeSlider';
|
|
16
|
-
import type { CalendarDateRange } from './components/Calendar/CalendarRange';
|
|
17
|
-
import type { LocaleCode, LocaleValues, DateTimeFormats } from './locales/types';
|
|
18
|
-
import type { ColumnChartProps } from './components/Chart/ColumnChart';
|
|
19
|
-
import type { LineChartProps } from './components/Chart/Line';
|
|
20
|
-
import type { Scale, SystemPalette } from './theme/global';
|
|
21
|
-
import type { BrandSystemPalette, GlobalSystemPalette } from './theme/global/colors/types';
|
|
22
|
-
import type { ToolbarItemProps } from './components/Toolbar/ToolbarItem';
|
|
23
|
-
import type { CheckboxProps } from './components/Checkbox';
|
|
24
|
-
import type { SwitchOptionType } from './components/Switch/SelectorSwitch';
|
|
25
|
-
import type { BoxProps } from './components/Box';
|
|
26
|
-
import type { BodyProps } from './components/Typography/Body';
|
|
27
|
-
import type { ToolbarButtonName } from './components/RichTextEditor/types';
|
|
28
|
-
import type { ListItemProps } from './components/List/ListItem';
|
|
29
|
-
import type { IconButtonProps } from './components/Button/IconButton';
|
|
30
|
-
import type { BadgeProps } from './components/Badge';
|
|
31
|
-
import type { ToastProps } from './components/Toast/types';
|
|
32
|
-
import type { Space } from './theme/global/space';
|
|
33
|
-
import type { CaptionProps } from './components/Typography/Caption';
|
|
34
|
-
import type { Radii } from './theme/global/borders';
|
|
35
|
-
import type { TitleProps } from './components/Typography/Title';
|
|
36
|
-
import type { CarouselData, CarouselImageProps } from './components/Carousel/types';
|
|
37
|
-
import type { PinInputHandler } from './components/PinInput';
|
|
38
|
-
import type { ThemeScale } from './components/Box/types';
|
|
39
|
-
import type { TimePickerProps } from './components/TimePicker/types';
|
|
40
|
-
import type { DatePickerProps } from './components/DatePicker/types';
|
|
41
|
-
import type { SegmentedControlItemConfig } from './components/SegmentedControl/types';
|
|
42
|
-
export type { Space, CaptionProps, Radii, TitleProps, CarouselData, CarouselImageProps, PinInputHandler, ThemeScale, ToastProps, ActionGroupProps, ToolbarItemProps, BottomNavigationTabType, IconName, SingleSelectProps, MultiSelectProps, ListRenderOptionInfo, SectionListRenderOptionInfo, SelectOptionType, SwipeableProps, RichTextEditorProps, RichTextEditorRef, TabType, TextInputProps, TextProps, TextInputHandles, Theme, CardCarouselHandles, FABHandles, ActionGroupHandles, ActionItemProps, SliderRangeValue, CalendarDateRange, LocaleCode, LocaleValues, DateTimeFormats, ColumnChartProps, LineChartProps, Scale, SystemPalette, BrandSystemPalette, GlobalSystemPalette, IconProps, CheckboxProps, SwitchOptionType, BoxProps, BodyProps, ToolbarButtonName, ListItemProps, IconButtonProps, BadgeProps, TimePickerProps, DatePickerProps, SegmentedControlItemConfig, };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* INTERNAL TYPES - Do not remove this file
|
|
3
|
-
*
|
|
4
|
-
* This file re-exports internal component prop types that include all internal properties.
|
|
5
|
-
* It's used by:
|
|
6
|
-
* 1. @hero-design/rn-work-uikit package - provides access to InternalMultiSelectProps,
|
|
7
|
-
* InternalSingleSelectProps, etc. for advanced component customization
|
|
8
|
-
* 2. Internal API exports - referenced by index.internal.ts for type definitions
|
|
9
|
-
* 3. Build tools - enables proper TypeScript compilation for internal API consumers
|
|
10
|
-
*
|
|
11
|
-
* The public types (types.ts) omit internal props to keep the external interface clean,
|
|
12
|
-
* but this internal version is essential for extending the library with full type safety.
|
|
13
|
-
*/
|
|
14
|
-
import { DatePickerProps } from './components/DatePicker/index.internal';
|
|
15
|
-
import type { SingleSelectProps, MultiSelectProps } from './components/Select/index.internal';
|
|
16
|
-
import { TimePickerProps } from './components/TimePicker/index.internal';
|
|
17
|
-
export * from './types';
|
|
18
|
-
export { SingleSelectProps, MultiSelectProps, DatePickerProps, TimePickerProps, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const noop: () => void;
|
package/types/utils/helpers.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const isIOS: boolean;
|
|
2
|
-
export declare const isAndroid: boolean;
|
|
3
|
-
export declare function pick<O extends object, T extends keyof O>(keys: T[], obj: O): Pick<O, T>;
|
|
4
|
-
export declare function omit<O, T extends keyof O>(keys: T[], obj: O): Omit<O, T>;
|
|
5
|
-
export declare function hexToRgba(hex: string, a: number): string;
|
|
6
|
-
export declare function dimHex(hex: string, surface: string, amount?: number): string;
|
|
7
|
-
export declare const deepCompareValue: <V>(a: V, b: V) => boolean;
|
|
8
|
-
export declare const useKeyboard: () => {
|
|
9
|
-
isKeyboardVisible: boolean;
|
|
10
|
-
keyboardHeight: number;
|
|
11
|
-
};
|
|
12
|
-
export type CamelCase<S extends string> = S extends `${infer F}-${infer R}` ? R extends `${string}-${string}` ? `${F}${Capitalize<CamelCase<R>>}` : `${F}${Capitalize<R>}` : never;
|
|
13
|
-
export declare const transformKebabCaseToCamelCase: <T extends string>(string: T) => CamelCase<T>;
|
package/types/utils/hooks.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const usePrevious: <T>(value: T) => T | undefined;
|
|
2
|
-
export declare function usePropsOrInternalState<T>(initialState: T, state: T | undefined, setState: ((val: T) => void) | undefined): [T, (val: T) => void];
|
|
3
|
-
export declare const useDeprecation: (message: string, cond?: boolean) => void;
|
package/types/utils/scale.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const scale: (size: number, factor?: number) => number;
|