@hero-design/rn 8.83.0-test.0 → 8.83.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/.turbo/turbo-build.log +3 -4
- package/CHANGELOG.md +16 -2
- package/es/index.js +431 -38
- package/eslint.config.js +2 -4
- package/lib/index.js +429 -35
- package/package.json +6 -6
- package/src/components/AppCue/StyledAppCue.tsx +46 -0
- package/src/components/AppCue/__tests__/StyledAppCue.tsx +18 -0
- package/src/components/AppCue/__tests__/__snapshots__/StyledAppCue.tsx.snap +200 -0
- package/src/components/AppCue/__tests__/__snapshots__/index.spec.tsx.snap +391 -0
- package/src/components/AppCue/__tests__/index.spec.tsx +61 -0
- package/src/components/AppCue/__tests__/utils.spec.ts +90 -0
- package/src/components/AppCue/index.tsx +188 -0
- package/src/components/AppCue/utils.ts +122 -0
- package/src/components/Chip/StyledChip.tsx +9 -9
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +434 -0
- package/src/components/Chip/__tests__/index.spec.tsx +4 -0
- package/src/components/Chip/index.tsx +32 -5
- package/src/components/Slider/{Range.tsx → RangeSlider.tsx} +29 -19
- package/src/components/Slider/StyledRangeSlider.tsx +16 -0
- package/src/components/Slider/__tests__/{Range.spec.tsx → RangeSlider.spec.tsx} +23 -9
- package/src/components/Slider/__tests__/{Single.spec.tsx → SingleSlider.spec.tsx} +1 -1
- package/src/components/Slider/__tests__/__snapshots__/{Range.spec.tsx.snap → RangeSlider.spec.tsx.snap} +110 -26
- package/src/components/Slider/index.tsx +3 -3
- package/src/components/Tabs/StyledScrollableTabs.tsx +2 -1
- package/src/components/Tabs/StyledTabs.tsx +1 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +2 -0
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +39 -0
- package/src/theme/components/appCue.ts +22 -0
- package/src/theme/components/slider.ts +8 -1
- package/src/theme/components/tabs.ts +1 -0
- package/src/theme/getTheme.ts +3 -0
- package/src/types.ts +1 -1
- package/stats/8.83.0/rn-stats.html +4844 -0
- package/types/components/Accordion/AccordionItem.d.ts +1 -1
- package/types/components/Accordion/StyledAccordion.d.ts +11 -11
- package/types/components/Accordion/index.d.ts +1 -1
- package/types/components/Alert/StyledAlert.d.ts +16 -16
- package/types/components/Alert/index.d.ts +1 -1
- package/types/components/AppCue/StyledAppCue.d.ts +20 -0
- package/types/components/AppCue/__tests__/StyledAppCue.d.ts +1 -0
- package/types/components/AppCue/index.d.ts +21 -0
- package/types/components/AppCue/utils.d.ts +63 -0
- package/types/components/Attachment/StyledAttachment.d.ts +8 -8
- package/types/components/Attachment/index.d.ts +0 -0
- package/types/components/Avatar/Avatar.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +9 -9
- package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.d.ts +10 -10
- package/types/components/Avatar/index.d.ts +0 -0
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +12 -12
- package/types/components/Badge/index.d.ts +1 -1
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +15 -15
- package/types/components/BottomNavigation/index.d.ts +1 -1
- package/types/components/BottomSheet/BottomSheetContext.d.ts +1 -1
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +2 -2
- package/types/components/BottomSheet/ScrollView.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +22 -22
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Box/StyledBox.d.ts +2 -2
- package/types/components/Box/config.d.ts +2 -2
- package/types/components/Box/index.d.ts +0 -0
- package/types/components/Box/types.d.ts +3 -3
- package/types/components/Button/Button.d.ts +1 -1
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +6 -6
- package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +22 -22
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +6 -6
- package/types/components/Button/UtilityButton/index.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
- package/types/components/Calendar/StyledCalendar.d.ts +22 -22
- package/types/components/Calendar/helpers.d.ts +0 -0
- package/types/components/Calendar/index.d.ts +0 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +5 -5
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +4 -4
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Carousel/CardCarousel.d.ts +1 -1
- package/types/components/Carousel/CarouselItem.d.ts +0 -0
- package/types/components/Carousel/StyledCardCarousel.d.ts +8 -8
- package/types/components/Carousel/StyledCarousel.d.ts +21 -21
- package/types/components/Carousel/contants.d.ts +0 -0
- package/types/components/Carousel/index.d.ts +0 -0
- package/types/components/Carousel/types.d.ts +2 -2
- package/types/components/Checkbox/StyledCheckbox.d.ts +11 -11
- package/types/components/Checkbox/index.d.ts +1 -1
- package/types/components/Chip/StyledChip.d.ts +6 -6
- package/types/components/Chip/index.d.ts +2 -2
- package/types/components/Collapse/StyledCollapse.d.ts +6 -6
- package/types/components/Collapse/index.d.ts +0 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +2 -2
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +1 -1
- package/types/components/DatePicker/DatePickerCalendar.d.ts +1 -1
- package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
- package/types/components/DatePicker/StyledDatePicker.d.ts +2 -2
- package/types/components/DatePicker/index.d.ts +0 -0
- package/types/components/DatePicker/types.d.ts +0 -0
- package/types/components/DatePicker/useCalculateDate.d.ts +1 -1
- package/types/components/Divider/StyledDivider.d.ts +5 -5
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +1 -1
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +15 -15
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/Empty/StyledEmpty.d.ts +7 -7
- package/types/components/Empty/index.d.ts +0 -0
- package/types/components/Error/StyledError.d.ts +21 -21
- package/types/components/Error/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +10 -10
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +6 -6
- package/types/components/FAB/ActionGroup/index.d.ts +1 -1
- package/types/components/FAB/AnimatedFABIcon.d.ts +1 -1
- package/types/components/FAB/FAB.d.ts +1 -1
- package/types/components/FAB/Pair/StyledFAB.d.ts +6 -6
- package/types/components/FAB/Pair/index.d.ts +1 -1
- package/types/components/FAB/StyledFAB.d.ts +9 -9
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +10 -10
- package/types/components/Icon/AnimatedIcon.d.ts +1 -1
- package/types/components/Icon/HeroIcon/index.d.ts +4 -4
- package/types/components/Icon/IconList.d.ts +0 -0
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +2 -1
- package/types/components/Image/index.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +0 -0
- package/types/components/List/StyledBasicListItem.d.ts +10 -10
- package/types/components/List/StyledListItem.d.ts +18 -18
- package/types/components/List/index.d.ts +0 -0
- package/types/components/MapPin/StyledMapPin.d.ts +11 -11
- package/types/components/MapPin/types.d.ts +1 -1
- package/types/components/PageControl/StyledPageControl.d.ts +4 -4
- package/types/components/PageControl/index.d.ts +0 -0
- package/types/components/PinInput/PinCell.d.ts +0 -0
- package/types/components/PinInput/StyledPinInput.d.ts +21 -21
- package/types/components/PinInput/index.d.ts +0 -0
- package/types/components/Portal/reducer.d.ts +1 -1
- package/types/components/Portal/types.d.ts +1 -1
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/ProgressStep.d.ts +1 -1
- package/types/components/Progress/StyledProgressBar.d.ts +4 -4
- package/types/components/Progress/StyledProgressCircle.d.ts +12 -12
- package/types/components/Progress/StyledStep.d.ts +10 -10
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/constants.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +1 -1
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +0 -0
- package/types/components/Radio/StyledRadio.d.ts +9 -9
- package/types/components/Radio/index.d.ts +1 -1
- package/types/components/Radio/types.d.ts +1 -1
- package/types/components/Rate/StyledRate.d.ts +4 -4
- package/types/components/RefreshControl/index.d.ts +1 -1
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -1
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/MentionList.d.ts +0 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +4 -4
- package/types/components/RichTextEditor/StyledToolbar.d.ts +6 -6
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/constants.d.ts +0 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/index.d.ts +0 -0
- package/types/components/RichTextEditor/types.d.ts +1 -1
- package/types/components/RichTextEditor/utils/events.d.ts +0 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
- package/types/components/Search/SearchOneLine.d.ts +5 -5
- package/types/components/Search/StyledSearch.d.ts +18 -18
- package/types/components/Search/index.d.ts +1 -1
- package/types/components/Search/utils.d.ts +2 -2
- package/types/components/SectionHeading/StyledHeading.d.ts +7 -7
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/BaseOptionList.d.ts +1 -1
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +2 -2
- package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
- package/types/components/Select/MultiSelect/index.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +2 -2
- package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +2 -1
- package/types/components/Select/SingleSelect/index.d.ts +0 -0
- package/types/components/Select/StyledSelect.d.ts +6 -6
- package/types/components/Select/helpers.d.ts +2 -2
- package/types/components/Select/index.d.ts +0 -0
- package/types/components/Select/types.d.ts +6 -6
- package/types/components/Skeleton/StyledSkeleton.d.ts +6 -6
- package/types/components/Skeleton/index.d.ts +0 -0
- package/types/components/Slider/{Range.d.ts → RangeSlider.d.ts} +1 -1
- package/types/components/Slider/StyledRangeSlider.d.ts +10 -0
- package/types/components/Slider/index.d.ts +2 -2
- package/types/components/Spinner/AnimatedSpinner.d.ts +2 -2
- package/types/components/Spinner/StyledSpinner.d.ts +13 -13
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Success/StyledSuccess.d.ts +19 -19
- package/types/components/Success/index.d.ts +0 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +3 -3
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
- package/types/components/Swipeable/index.d.ts +2 -2
- package/types/components/Switch/SelectorSwitch/Option.d.ts +3 -5
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +8 -8
- package/types/components/Switch/SelectorSwitch/index.d.ts +3 -3
- package/types/components/Switch/StyledSwitch.d.ts +5 -5
- package/types/components/Switch/index.d.ts +3 -3
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/components/Tabs/SceneView.d.ts +3 -3
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +2 -2
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +2 -2
- package/types/components/Tabs/StyledScrollableTabs.d.ts +17 -17
- package/types/components/Tabs/StyledTabs.d.ts +14 -14
- package/types/components/Tabs/TabWithBadge.d.ts +3 -3
- package/types/components/Tabs/index.d.ts +2 -2
- package/types/components/Tabs/useHandlePageScroll.d.ts +1 -1
- package/types/components/Tabs/useIsFocused.d.ts +0 -0
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +5 -5
- package/types/components/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +28 -28
- package/types/components/TextInput/index.d.ts +16 -16
- package/types/components/TimePicker/StyledTimePicker.d.ts +2 -2
- package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
- package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
- package/types/components/TimePicker/index.d.ts +0 -0
- package/types/components/TimePicker/types.d.ts +0 -0
- package/types/components/Toast/StyledToast.d.ts +18 -18
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +2 -2
- package/types/components/Toast/ToastProvider.d.ts +1 -1
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +2 -2
- package/types/components/Toolbar/StyledToolbar.d.ts +25 -25
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/ToolbarMessage.d.ts +4 -4
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Body/StyledBody.d.ts +4 -4
- package/types/components/Typography/Caption/StyledCaption.d.ts +3 -3
- package/types/components/Typography/Label/StyledLabel.d.ts +2 -2
- package/types/components/Typography/Text/StyledText.d.ts +6 -6
- package/types/components/Typography/Text/index.d.ts +0 -0
- package/types/components/Typography/Title/StyledTitle.d.ts +4 -4
- package/types/components/Typography/index.d.ts +0 -0
- package/types/components/Typography/types.d.ts +1 -1
- package/types/index.d.ts +2 -1
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/testHelpers/utils.d.ts +1 -1
- package/types/theme/ThemeProvider.d.ts +0 -0
- package/types/theme/ThemeSwitcher.d.ts +3 -3
- package/types/theme/components/accordion.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/appCue.d.ts +16 -0
- package/types/theme/components/attachment.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +1 -1
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +1 -1
- package/types/theme/components/calendar.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/cardCarousel.d.ts +0 -0
- package/types/theme/components/carousel.d.ts +1 -1
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/datePicker.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/empty.d.ts +1 -1
- package/types/theme/components/error.d.ts +1 -1
- package/types/theme/components/fab.d.ts +1 -1
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/image.d.ts +0 -0
- package/types/theme/components/list.d.ts +0 -0
- package/types/theme/components/pageControl.d.ts +0 -0
- package/types/theme/components/pinInput.d.ts +1 -1
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/refreshControl.d.ts +0 -0
- package/types/theme/components/richTextEditor.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +0 -0
- package/types/theme/components/skeleton.d.ts +0 -0
- package/types/theme/components/slider.d.ts +6 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/success.d.ts +1 -1
- package/types/theme/components/swipeable.d.ts +0 -0
- package/types/theme/components/switch.d.ts +0 -0
- package/types/theme/components/tabs.d.ts +1 -0
- package/types/theme/components/tag.d.ts +1 -1
- package/types/theme/components/textInput.d.ts +0 -0
- package/types/theme/components/timePicker.d.ts +0 -0
- package/types/theme/components/toast.d.ts +0 -0
- package/types/theme/components/toolbar.d.ts +0 -0
- package/types/theme/components/typography.d.ts +0 -0
- package/types/theme/getTheme.d.ts +3 -1
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors/eBens.d.ts +0 -0
- package/types/theme/global/colors/global.d.ts +0 -0
- package/types/theme/global/colors/globalDark.d.ts +0 -0
- package/types/theme/global/colors/jobs.d.ts +0 -0
- package/types/theme/global/colors/swag.d.ts +0 -0
- package/types/theme/global/colors/swagDark.d.ts +0 -0
- package/types/theme/global/colors/types.d.ts +3 -3
- package/types/theme/global/colors/wallet.d.ts +0 -0
- package/types/theme/global/colors/work.d.ts +0 -0
- package/types/theme/global/index.d.ts +4 -4
- package/types/theme/global/scale.d.ts +1 -1
- package/types/theme/global/shadows.d.ts +1 -1
- package/types/theme/global/sizes.d.ts +0 -0
- package/types/theme/global/space.d.ts +0 -0
- package/types/theme/global/typography.d.ts +1 -1
- package/types/theme/index.d.ts +0 -0
- package/types/types.d.ts +1 -1
- package/types/utils/functions.d.ts +0 -0
- package/types/utils/helpers.d.ts +0 -0
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
- package/.turbo/turbo-build$colon$types.log +0 -0
- package/.turbo/turbo-lint.log +0 -183
- package/.turbo/turbo-publish:npm.log +0 -9
- package/.turbo/turbo-test.log +0 -4726
- package/.turbo/turbo-type-check.log +0 -0
- package/types/components/CompoundSearch/CompoundSearchHandler.d.ts +0 -31
- package/types/components/CompoundSearch/CompoundSearchTextInput.d.ts +0 -60
- package/types/components/CompoundSearch/StyledCompoundSearch.d.ts +0 -40
- package/types/components/CompoundSearch/index.d.ts +0 -8
- package/types/components/CompoundSearch/utils.d.ts +0 -8
- package/types/components/HeroDesignProvider/HeroDesignContext.d.ts +0 -5
- package/types/components/Search/SearchBasic.d.ts +0 -31
- package/types/components/Search/SearchCompound.d.ts +0 -60
- package/types/components/Tabs/ScrollableTabsHeader.d.ts +0 -35
- package/types/theme/components/compoundSearch.d.ts +0 -36
- /package/src/components/Slider/{Single.tsx → SingleSlider.tsx} +0 -0
- /package/src/components/Slider/__tests__/__snapshots__/{Single.spec.tsx.snap → SingleSlider.spec.tsx.snap} +0 -0
- /package/types/components/Slider/{Single.d.ts → SingleSlider.d.ts} +0 -0
|
@@ -18,21 +18,9 @@ exports[`Slider.Range renders correctly by default 1`] = `
|
|
|
18
18
|
>
|
|
19
19
|
<MultiSlider
|
|
20
20
|
allowOverlap={false}
|
|
21
|
+
customMarker={[Function]}
|
|
21
22
|
enabledOne={true}
|
|
22
23
|
enabledTwo={true}
|
|
23
|
-
markerStyle={
|
|
24
|
-
{
|
|
25
|
-
"backgroundColor": "#401960",
|
|
26
|
-
"elevation": 3,
|
|
27
|
-
"shadowColor": "#001f23",
|
|
28
|
-
"shadowOffset": {
|
|
29
|
-
"height": 2,
|
|
30
|
-
"width": 0,
|
|
31
|
-
},
|
|
32
|
-
"shadowOpacity": 0.12,
|
|
33
|
-
"shadowRadius": 4,
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
24
|
max={20}
|
|
37
25
|
min={-10}
|
|
38
26
|
onValuesChange={[Function]}
|
|
@@ -102,21 +90,9 @@ exports[`Slider.Range renders correctly when disabled is $disabled 1`] = `
|
|
|
102
90
|
>
|
|
103
91
|
<MultiSlider
|
|
104
92
|
allowOverlap={false}
|
|
93
|
+
customMarker={[Function]}
|
|
105
94
|
enabledOne={false}
|
|
106
95
|
enabledTwo={false}
|
|
107
|
-
markerStyle={
|
|
108
|
-
{
|
|
109
|
-
"backgroundColor": "#bfc1c5",
|
|
110
|
-
"elevation": 3,
|
|
111
|
-
"shadowColor": "#001f23",
|
|
112
|
-
"shadowOffset": {
|
|
113
|
-
"height": 2,
|
|
114
|
-
"width": 0,
|
|
115
|
-
},
|
|
116
|
-
"shadowOpacity": 0.12,
|
|
117
|
-
"shadowRadius": 4,
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
96
|
max={10}
|
|
121
97
|
min={-10}
|
|
122
98
|
onValuesChange={[Function]}
|
|
@@ -166,3 +142,111 @@ exports[`Slider.Range renders correctly when disabled is $disabled 1`] = `
|
|
|
166
142
|
/>
|
|
167
143
|
</View>
|
|
168
144
|
`;
|
|
145
|
+
|
|
146
|
+
exports[`StyledMarker renders correctly when disabled is false 1`] = `
|
|
147
|
+
<View
|
|
148
|
+
style={
|
|
149
|
+
{
|
|
150
|
+
"flex": 1,
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
>
|
|
154
|
+
<View
|
|
155
|
+
style={
|
|
156
|
+
[
|
|
157
|
+
{
|
|
158
|
+
"backgroundColor": "#401960",
|
|
159
|
+
"borderRadius": 999,
|
|
160
|
+
"elevation": 3,
|
|
161
|
+
"height": 24,
|
|
162
|
+
"shadowColor": "#001f23",
|
|
163
|
+
"shadowOffset": {
|
|
164
|
+
"height": 2,
|
|
165
|
+
"width": 0,
|
|
166
|
+
},
|
|
167
|
+
"shadowOpacity": 0.12,
|
|
168
|
+
"shadowRadius": 4,
|
|
169
|
+
"width": 24,
|
|
170
|
+
},
|
|
171
|
+
undefined,
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
testID="marker"
|
|
175
|
+
themeDisabled={false}
|
|
176
|
+
/>
|
|
177
|
+
<View
|
|
178
|
+
pointerEvents="box-none"
|
|
179
|
+
position="bottom"
|
|
180
|
+
style={
|
|
181
|
+
[
|
|
182
|
+
{
|
|
183
|
+
"bottom": 0,
|
|
184
|
+
"elevation": 9999,
|
|
185
|
+
"flexDirection": "column-reverse",
|
|
186
|
+
"left": 0,
|
|
187
|
+
"paddingHorizontal": 24,
|
|
188
|
+
"paddingVertical": 16,
|
|
189
|
+
"position": "absolute",
|
|
190
|
+
"right": 0,
|
|
191
|
+
"top": 0,
|
|
192
|
+
},
|
|
193
|
+
undefined,
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
/>
|
|
197
|
+
</View>
|
|
198
|
+
`;
|
|
199
|
+
|
|
200
|
+
exports[`StyledMarker renders correctly when disabled is true 1`] = `
|
|
201
|
+
<View
|
|
202
|
+
style={
|
|
203
|
+
{
|
|
204
|
+
"flex": 1,
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
>
|
|
208
|
+
<View
|
|
209
|
+
style={
|
|
210
|
+
[
|
|
211
|
+
{
|
|
212
|
+
"backgroundColor": "#bfc1c5",
|
|
213
|
+
"borderRadius": 999,
|
|
214
|
+
"elevation": 3,
|
|
215
|
+
"height": 24,
|
|
216
|
+
"shadowColor": "#001f23",
|
|
217
|
+
"shadowOffset": {
|
|
218
|
+
"height": 2,
|
|
219
|
+
"width": 0,
|
|
220
|
+
},
|
|
221
|
+
"shadowOpacity": 0.12,
|
|
222
|
+
"shadowRadius": 4,
|
|
223
|
+
"width": 24,
|
|
224
|
+
},
|
|
225
|
+
undefined,
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
testID="marker"
|
|
229
|
+
themeDisabled={true}
|
|
230
|
+
/>
|
|
231
|
+
<View
|
|
232
|
+
pointerEvents="box-none"
|
|
233
|
+
position="bottom"
|
|
234
|
+
style={
|
|
235
|
+
[
|
|
236
|
+
{
|
|
237
|
+
"bottom": 0,
|
|
238
|
+
"elevation": 9999,
|
|
239
|
+
"flexDirection": "column-reverse",
|
|
240
|
+
"left": 0,
|
|
241
|
+
"paddingHorizontal": 24,
|
|
242
|
+
"paddingVertical": 16,
|
|
243
|
+
"position": "absolute",
|
|
244
|
+
"right": 0,
|
|
245
|
+
"top": 0,
|
|
246
|
+
},
|
|
247
|
+
undefined,
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
/>
|
|
251
|
+
</View>
|
|
252
|
+
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FunctionComponent } from 'react';
|
|
2
|
-
import Single from './
|
|
3
|
-
import type { SingleSliderProps } from './
|
|
4
|
-
import Range from './
|
|
2
|
+
import Single from './SingleSlider';
|
|
3
|
+
import type { SingleSliderProps } from './SingleSlider';
|
|
4
|
+
import Range from './RangeSlider';
|
|
5
5
|
|
|
6
6
|
interface SliderProps extends FunctionComponent<SingleSliderProps> {
|
|
7
7
|
Range: typeof Range;
|
|
@@ -12,8 +12,9 @@ const TabContainer = styled(View)({
|
|
|
12
12
|
|
|
13
13
|
const HeaderTabWrapper = styled(View)<{
|
|
14
14
|
themeInsets: { top: number; right: number; bottom: number; left: number };
|
|
15
|
-
}>(({ themeInsets }) => ({
|
|
15
|
+
}>(({ themeInsets, theme }) => ({
|
|
16
16
|
paddingHorizontal: Math.max(themeInsets.left, themeInsets.right),
|
|
17
|
+
backgroundColor: theme.__hd__.tabs.colors.headerBackground,
|
|
17
18
|
}));
|
|
18
19
|
|
|
19
20
|
const HeaderTabItem = styled(Animated.View)<{ isFirstItem?: boolean }>(
|
|
@@ -12,6 +12,7 @@ const HeaderTabWrapper = styled(View)<{
|
|
|
12
12
|
paddingHorizontal: Math.max(themeInsets.left, themeInsets.right),
|
|
13
13
|
borderBottomColor: theme.__hd__.tabs.colors.headerBottom,
|
|
14
14
|
borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom,
|
|
15
|
+
backgroundColor: theme.__hd__.tabs.colors.headerBackground,
|
|
15
16
|
}));
|
|
16
17
|
|
|
17
18
|
const HeaderTab = styled(View)({
|
|
@@ -128,6 +128,7 @@ exports[`Tabs.Scroll lazy not render lazy screen: xxx 1`] = `
|
|
|
128
128
|
style={
|
|
129
129
|
[
|
|
130
130
|
{
|
|
131
|
+
"backgroundColor": "#ffffff",
|
|
131
132
|
"paddingHorizontal": 0,
|
|
132
133
|
},
|
|
133
134
|
undefined,
|
|
@@ -1057,6 +1058,7 @@ exports[`Tabs.Scroll renders correctly 1`] = `
|
|
|
1057
1058
|
style={
|
|
1058
1059
|
[
|
|
1059
1060
|
{
|
|
1061
|
+
"backgroundColor": "#ffffff",
|
|
1060
1062
|
"paddingHorizontal": 0,
|
|
1061
1063
|
},
|
|
1062
1064
|
undefined,
|
|
@@ -1986,6 +1988,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
1986
1988
|
style={
|
|
1987
1989
|
[
|
|
1988
1990
|
{
|
|
1991
|
+
"backgroundColor": "#ffffff",
|
|
1989
1992
|
"paddingHorizontal": 0,
|
|
1990
1993
|
},
|
|
1991
1994
|
undefined,
|
|
@@ -23,6 +23,7 @@ exports[`ScrollableTabsHeader highlighted variant renders correctly 1`] = `
|
|
|
23
23
|
style={
|
|
24
24
|
[
|
|
25
25
|
{
|
|
26
|
+
"backgroundColor": "#ffffff",
|
|
26
27
|
"paddingHorizontal": 0,
|
|
27
28
|
},
|
|
28
29
|
undefined,
|
|
@@ -695,6 +696,7 @@ exports[`ScrollableTabsHeader underlined variant renders correctly 1`] = `
|
|
|
695
696
|
style={
|
|
696
697
|
[
|
|
697
698
|
{
|
|
699
|
+
"backgroundColor": "#ffffff",
|
|
698
700
|
"paddingHorizontal": 0,
|
|
699
701
|
},
|
|
700
702
|
undefined,
|
|
@@ -128,6 +128,7 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
128
128
|
style={
|
|
129
129
|
[
|
|
130
130
|
{
|
|
131
|
+
"backgroundColor": "#ffffff",
|
|
131
132
|
"borderBottomColor": "#e8e9ea",
|
|
132
133
|
"borderBottomWidth": 2,
|
|
133
134
|
"paddingHorizontal": 0,
|
|
@@ -801,6 +802,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
801
802
|
style={
|
|
802
803
|
[
|
|
803
804
|
{
|
|
805
|
+
"backgroundColor": "#ffffff",
|
|
804
806
|
"borderBottomColor": "#e8e9ea",
|
|
805
807
|
"borderBottomWidth": 2,
|
|
806
808
|
"paddingHorizontal": 0,
|
|
@@ -1474,6 +1476,7 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1474
1476
|
style={
|
|
1475
1477
|
[
|
|
1476
1478
|
{
|
|
1479
|
+
"backgroundColor": "#ffffff",
|
|
1477
1480
|
"borderBottomColor": "#e8e9ea",
|
|
1478
1481
|
"borderBottomWidth": 2,
|
|
1479
1482
|
"paddingHorizontal": 0,
|
package/src/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { scale } from './utils/scale';
|
|
|
17
17
|
|
|
18
18
|
import Accordion from './components/Accordion';
|
|
19
19
|
import Alert from './components/Alert';
|
|
20
|
+
import AppCue from './components/AppCue';
|
|
20
21
|
import Attachment from './components/Attachment';
|
|
21
22
|
import Avatar, { useAvatarColors } from './components/Avatar';
|
|
22
23
|
import Badge from './components/Badge';
|
|
@@ -91,6 +92,7 @@ export {
|
|
|
91
92
|
eBensSystemPalette,
|
|
92
93
|
Accordion,
|
|
93
94
|
Alert,
|
|
95
|
+
AppCue,
|
|
94
96
|
Attachment,
|
|
95
97
|
Avatar,
|
|
96
98
|
useAvatarColors,
|
|
@@ -48,6 +48,20 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
48
48
|
"textPaddingHorizontal": 12,
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
|
+
"appCue": {
|
|
52
|
+
"colors": {
|
|
53
|
+
"backdropColor": "rgba(0, 0, 0, 0.5)",
|
|
54
|
+
"background": "#001f23",
|
|
55
|
+
},
|
|
56
|
+
"radii": {
|
|
57
|
+
"container": 12,
|
|
58
|
+
},
|
|
59
|
+
"space": {
|
|
60
|
+
"arrowOffset": 12,
|
|
61
|
+
"offset": 8,
|
|
62
|
+
"padding": 16,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
51
65
|
"attachment": {
|
|
52
66
|
"colors": {
|
|
53
67
|
"highlightedBackground": "#ece8ef",
|
|
@@ -1008,9 +1022,33 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1008
1022
|
},
|
|
1009
1023
|
"slider": {
|
|
1010
1024
|
"colors": {
|
|
1025
|
+
"disabledThumbTint": "#bfc1c5",
|
|
1026
|
+
"disabledTrackBackground": "#f6f6f7",
|
|
1011
1027
|
"maximumTrackTint": "#ece8ef",
|
|
1012
1028
|
"minimumTrackTint": "#401960",
|
|
1013
1029
|
"thumbTint": "#401960",
|
|
1030
|
+
"trackBackground": "#ece8ef",
|
|
1031
|
+
},
|
|
1032
|
+
"radii": {
|
|
1033
|
+
"marker": 999,
|
|
1034
|
+
},
|
|
1035
|
+
"shadows": {
|
|
1036
|
+
"marker": {
|
|
1037
|
+
"elevation": 3,
|
|
1038
|
+
"shadowColor": "#001f23",
|
|
1039
|
+
"shadowOffset": {
|
|
1040
|
+
"height": 2,
|
|
1041
|
+
"width": 0,
|
|
1042
|
+
},
|
|
1043
|
+
"shadowOpacity": 0.12,
|
|
1044
|
+
"shadowRadius": 4,
|
|
1045
|
+
},
|
|
1046
|
+
},
|
|
1047
|
+
"sizes": {
|
|
1048
|
+
"markerBorderRadius": 999,
|
|
1049
|
+
"markerHeight": 24,
|
|
1050
|
+
"markerWidth": 24,
|
|
1051
|
+
"trackHeight": 4,
|
|
1014
1052
|
},
|
|
1015
1053
|
},
|
|
1016
1054
|
"spinner": {
|
|
@@ -1125,6 +1163,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1125
1163
|
"colors": {
|
|
1126
1164
|
"active": "#001f23",
|
|
1127
1165
|
"activeBackground": "#ccd2d3",
|
|
1166
|
+
"headerBackground": "#ffffff",
|
|
1128
1167
|
"headerBottom": "#e8e9ea",
|
|
1129
1168
|
"inactive": "#001f23",
|
|
1130
1169
|
"indicator": "#401960",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { GlobalTheme } from '../global';
|
|
2
|
+
|
|
3
|
+
const getAppCueTheme = (theme: GlobalTheme) => {
|
|
4
|
+
const colors = {
|
|
5
|
+
background: theme.colors.darkGlobalSurface,
|
|
6
|
+
backdropColor: 'rgba(0, 0, 0, 0.5)',
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const space = {
|
|
10
|
+
padding: theme.space.medium,
|
|
11
|
+
offset: theme.space.small,
|
|
12
|
+
arrowOffset: theme.space.smallMedium,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const radii = {
|
|
16
|
+
container: theme.radii.large,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
return { colors, space, radii };
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default getAppCueTheme;
|
|
@@ -16,9 +16,16 @@ const getSliderTheme = (theme: GlobalTheme) => {
|
|
|
16
16
|
|
|
17
17
|
const sizes = {
|
|
18
18
|
trackHeight: theme.sizes.xsmall,
|
|
19
|
+
markerWidth: theme.sizes.large,
|
|
20
|
+
markerHeight: theme.sizes.large,
|
|
21
|
+
markerBorderRadius: theme.radii.rounded,
|
|
19
22
|
};
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
const radii = {
|
|
25
|
+
marker: theme.radii.rounded,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return { colors, shadows, sizes, radii };
|
|
22
29
|
};
|
|
23
30
|
|
|
24
31
|
export default getSliderTheme;
|
package/src/theme/getTheme.ts
CHANGED
|
@@ -51,11 +51,13 @@ import type { GlobalTheme, Scale, SystemPalette } from './global';
|
|
|
51
51
|
import getSearchTheme from './components/search';
|
|
52
52
|
import getMapPinTheme from './components/mapPin';
|
|
53
53
|
import getFloatingIslandTheme from './components/floatingIsland';
|
|
54
|
+
import getAppCueTheme from './components/appCue';
|
|
54
55
|
|
|
55
56
|
type Theme = GlobalTheme & {
|
|
56
57
|
__hd__: {
|
|
57
58
|
accordion: ReturnType<typeof getAccordionTheme>;
|
|
58
59
|
alert: ReturnType<typeof getAlertTheme>;
|
|
60
|
+
appCue: ReturnType<typeof getAppCueTheme>;
|
|
59
61
|
attachment: ReturnType<typeof getAttachmentTheme>;
|
|
60
62
|
avatar: ReturnType<typeof getAvatarTheme>;
|
|
61
63
|
badge: BadgeThemeType;
|
|
@@ -116,6 +118,7 @@ const getTheme = (
|
|
|
116
118
|
__hd__: {
|
|
117
119
|
accordion: getAccordionTheme(globalTheme),
|
|
118
120
|
alert: getAlertTheme(globalTheme),
|
|
121
|
+
appCue: getAppCueTheme(globalTheme),
|
|
119
122
|
attachment: getAttachmentTheme(globalTheme),
|
|
120
123
|
avatar: getAvatarTheme(globalTheme),
|
|
121
124
|
badge: getBadgeTheme(globalTheme),
|
package/src/types.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { TextProps } from './components/Typography/Text';
|
|
|
17
17
|
import { CardCarouselHandles } from './components/Carousel/CardCarousel';
|
|
18
18
|
import { FABHandles } from './components/FAB/FAB';
|
|
19
19
|
import { ActionGroupHandles } from './components/FAB/ActionGroup';
|
|
20
|
-
import type { SliderRangeValue } from './components/Slider/
|
|
20
|
+
import type { SliderRangeValue } from './components/Slider/RangeSlider';
|
|
21
21
|
|
|
22
22
|
export type {
|
|
23
23
|
BottomNavigationTabType,
|