@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
package/lib/index.js
CHANGED
|
@@ -2071,15 +2071,25 @@ var getFontSizes = function getFontSizes(baseFontSize) {
|
|
|
2071
2071
|
});
|
|
2072
2072
|
return {
|
|
2073
2073
|
'7xlarge': scale(fontSizes[10]),
|
|
2074
|
+
// 42
|
|
2074
2075
|
'6xlarge': scale(fontSizes[9]),
|
|
2076
|
+
// 36
|
|
2075
2077
|
xxxxxlarge: scale(fontSizes[8]),
|
|
2078
|
+
// 32
|
|
2076
2079
|
xxxxlarge: scale(fontSizes[7]),
|
|
2080
|
+
// 28
|
|
2077
2081
|
xxxlarge: scale(fontSizes[6]),
|
|
2082
|
+
// 24
|
|
2078
2083
|
xxlarge: scale(fontSizes[5]),
|
|
2084
|
+
// 20
|
|
2079
2085
|
xlarge: scale(fontSizes[4]),
|
|
2086
|
+
// 18
|
|
2080
2087
|
large: scale(fontSizes[3]),
|
|
2088
|
+
// 16
|
|
2081
2089
|
medium: scale(fontSizes[2]),
|
|
2090
|
+
// 14
|
|
2082
2091
|
small: scale(fontSizes[1]),
|
|
2092
|
+
// 12
|
|
2083
2093
|
xsmall: scale(fontSizes[0]) // 10
|
|
2084
2094
|
};
|
|
2085
2095
|
};
|
|
@@ -2104,15 +2114,25 @@ var getLineHeights = function getLineHeights(fontSizes) {
|
|
|
2104
2114
|
var getSpace = function getSpace(baseSpace) {
|
|
2105
2115
|
return {
|
|
2106
2116
|
xxsmall: scale(baseSpace * 0.25),
|
|
2117
|
+
// 2
|
|
2107
2118
|
xsmall: scale(baseSpace * 0.5),
|
|
2119
|
+
// 4
|
|
2108
2120
|
small: scale(baseSpace),
|
|
2121
|
+
// 8
|
|
2109
2122
|
smallMedium: scale(baseSpace) * 1.5,
|
|
2123
|
+
// 12
|
|
2110
2124
|
medium: scale(baseSpace * 2),
|
|
2125
|
+
// 16
|
|
2111
2126
|
large: scale(baseSpace * 3),
|
|
2127
|
+
// 24
|
|
2112
2128
|
xlarge: scale(baseSpace * 4),
|
|
2129
|
+
// 32
|
|
2113
2130
|
xxlarge: scale(baseSpace * 5),
|
|
2131
|
+
// 40
|
|
2114
2132
|
xxxlarge: scale(baseSpace * 6),
|
|
2133
|
+
// 48
|
|
2115
2134
|
xxxxlarge: scale(baseSpace * 7),
|
|
2135
|
+
// 56
|
|
2116
2136
|
'5xlarge': scale(baseSpace * 8) // 64
|
|
2117
2137
|
};
|
|
2118
2138
|
};
|
|
@@ -2120,12 +2140,19 @@ var getSpace = function getSpace(baseSpace) {
|
|
|
2120
2140
|
var getSizes = function getSizes(baseSize) {
|
|
2121
2141
|
return _objectSpread2(_objectSpread2({}, getSpace(baseSize)), {}, {
|
|
2122
2142
|
xxxxxlarge: scale(baseSize * 8),
|
|
2143
|
+
// 64
|
|
2123
2144
|
'6xlarge': scale(baseSize * 9),
|
|
2145
|
+
// 72
|
|
2124
2146
|
'7xlarge': scale(baseSize * 10),
|
|
2147
|
+
// 80
|
|
2125
2148
|
'9xlarge': scale(baseSize * 12),
|
|
2149
|
+
// 96
|
|
2126
2150
|
'14xlarge': scale(baseSize * 17),
|
|
2151
|
+
// 136
|
|
2127
2152
|
'15xlarge': scale(baseSize * 18),
|
|
2153
|
+
// 144
|
|
2128
2154
|
'18xlarge': scale(baseSize * 21),
|
|
2155
|
+
// 168
|
|
2129
2156
|
'19xlarge': scale(baseSize * 22) // 176
|
|
2130
2157
|
});
|
|
2131
2158
|
};
|
|
@@ -2133,6 +2160,7 @@ var getSizes = function getSizes(baseSize) {
|
|
|
2133
2160
|
var getBorderWidths = function getBorderWidths(baseBorderWidth) {
|
|
2134
2161
|
return {
|
|
2135
2162
|
base: baseBorderWidth,
|
|
2163
|
+
// 1
|
|
2136
2164
|
medium: baseBorderWidth * 2 // 2
|
|
2137
2165
|
};
|
|
2138
2166
|
};
|
|
@@ -2141,11 +2169,17 @@ var getRadii = function getRadii(baseRadius) {
|
|
|
2141
2169
|
return {
|
|
2142
2170
|
rounded: 999,
|
|
2143
2171
|
base: baseRadius,
|
|
2172
|
+
// 4
|
|
2144
2173
|
medium: baseRadius * 2,
|
|
2174
|
+
// 8
|
|
2145
2175
|
large: baseRadius * 3,
|
|
2176
|
+
// 12
|
|
2146
2177
|
xlarge: baseRadius * 4,
|
|
2178
|
+
// 16
|
|
2147
2179
|
xxlarge: baseRadius * 5,
|
|
2180
|
+
// 20
|
|
2148
2181
|
xxxlarge: baseRadius * 6,
|
|
2182
|
+
// 24
|
|
2149
2183
|
'5xlarge': baseRadius * 8 // 32
|
|
2150
2184
|
};
|
|
2151
2185
|
};
|
|
@@ -3095,6 +3129,7 @@ var getProgressTheme = function getProgressTheme(theme) {
|
|
|
3095
3129
|
completeness: {
|
|
3096
3130
|
primary: theme.colors.primary,
|
|
3097
3131
|
success: theme.colors.success,
|
|
3132
|
+
// should be emerald dark 15
|
|
3098
3133
|
warning: theme.colors.warning,
|
|
3099
3134
|
danger: theme.colors.error,
|
|
3100
3135
|
info: theme.colors.info,
|
|
@@ -3307,12 +3342,19 @@ var getSliderTheme = function getSliderTheme(theme) {
|
|
|
3307
3342
|
marker: theme.shadows["default"]
|
|
3308
3343
|
};
|
|
3309
3344
|
var sizes = {
|
|
3310
|
-
trackHeight: theme.sizes.xsmall
|
|
3345
|
+
trackHeight: theme.sizes.xsmall,
|
|
3346
|
+
markerWidth: theme.sizes.large,
|
|
3347
|
+
markerHeight: theme.sizes.large,
|
|
3348
|
+
markerBorderRadius: theme.radii.rounded
|
|
3349
|
+
};
|
|
3350
|
+
var radii = {
|
|
3351
|
+
marker: theme.radii.rounded
|
|
3311
3352
|
};
|
|
3312
3353
|
return {
|
|
3313
3354
|
colors: colors,
|
|
3314
3355
|
shadows: shadows,
|
|
3315
|
-
sizes: sizes
|
|
3356
|
+
sizes: sizes,
|
|
3357
|
+
radii: radii
|
|
3316
3358
|
};
|
|
3317
3359
|
};
|
|
3318
3360
|
|
|
@@ -3455,7 +3497,8 @@ var getTabsTheme = function getTabsTheme(theme) {
|
|
|
3455
3497
|
activeBackground: theme.colors.decorativePrimarySurface,
|
|
3456
3498
|
headerBottom: theme.colors.secondaryOutline,
|
|
3457
3499
|
indicator: theme.colors.primary,
|
|
3458
|
-
text: theme.colors.onDefaultGlobalSurface
|
|
3500
|
+
text: theme.colors.onDefaultGlobalSurface,
|
|
3501
|
+
headerBackground: theme.colors.defaultGlobalSurface
|
|
3459
3502
|
};
|
|
3460
3503
|
var space = {
|
|
3461
3504
|
flatListHorizontalPadding: theme.space.small,
|
|
@@ -4058,6 +4101,26 @@ var getFloatingIslandTheme = function getFloatingIslandTheme(theme) {
|
|
|
4058
4101
|
};
|
|
4059
4102
|
};
|
|
4060
4103
|
|
|
4104
|
+
var getAppCueTheme = function getAppCueTheme(theme) {
|
|
4105
|
+
var colors = {
|
|
4106
|
+
background: theme.colors.darkGlobalSurface,
|
|
4107
|
+
backdropColor: 'rgba(0, 0, 0, 0.5)'
|
|
4108
|
+
};
|
|
4109
|
+
var space = {
|
|
4110
|
+
padding: theme.space.medium,
|
|
4111
|
+
offset: theme.space.small,
|
|
4112
|
+
arrowOffset: theme.space.smallMedium
|
|
4113
|
+
};
|
|
4114
|
+
var radii = {
|
|
4115
|
+
container: theme.radii.large
|
|
4116
|
+
};
|
|
4117
|
+
return {
|
|
4118
|
+
colors: colors,
|
|
4119
|
+
space: space,
|
|
4120
|
+
radii: radii
|
|
4121
|
+
};
|
|
4122
|
+
};
|
|
4123
|
+
|
|
4061
4124
|
var getTheme$1 = function getTheme() {
|
|
4062
4125
|
var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
|
|
4063
4126
|
var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$1;
|
|
@@ -4066,6 +4129,7 @@ var getTheme$1 = function getTheme() {
|
|
|
4066
4129
|
__hd__: {
|
|
4067
4130
|
accordion: getAccordionTheme(globalTheme),
|
|
4068
4131
|
alert: getAlertTheme(globalTheme),
|
|
4132
|
+
appCue: getAppCueTheme(globalTheme),
|
|
4069
4133
|
attachment: getAttachmentTheme(globalTheme),
|
|
4070
4134
|
avatar: getAvatarTheme(globalTheme),
|
|
4071
4135
|
badge: getBadgeTheme(globalTheme),
|
|
@@ -8211,6 +8275,288 @@ var Alert = function Alert(_ref2) {
|
|
|
8211
8275
|
})) : null);
|
|
8212
8276
|
};
|
|
8213
8277
|
|
|
8278
|
+
var StyledContent$1 = index$a(reactNative.View)(function (_ref) {
|
|
8279
|
+
var theme = _ref.theme;
|
|
8280
|
+
return {
|
|
8281
|
+
padding: theme.__hd__.appCue.space.padding,
|
|
8282
|
+
backgroundColor: theme.__hd__.appCue.colors.background,
|
|
8283
|
+
borderRadius: theme.__hd__.appCue.radii.container,
|
|
8284
|
+
alignSelf: 'center'
|
|
8285
|
+
};
|
|
8286
|
+
});
|
|
8287
|
+
var StyledContainer$9 = index$a(reactNative.View)(function (_ref2) {
|
|
8288
|
+
var theme = _ref2.theme;
|
|
8289
|
+
return {
|
|
8290
|
+
width: '100%',
|
|
8291
|
+
height: '100%',
|
|
8292
|
+
backgroundColor: theme.__hd__.appCue.colors.backdropColor
|
|
8293
|
+
};
|
|
8294
|
+
});
|
|
8295
|
+
var StyledIconContainer$1 = index$a(reactNative.Animated.View)(function (_ref3) {
|
|
8296
|
+
var theme = _ref3.theme,
|
|
8297
|
+
themePlacement = _ref3.themePlacement;
|
|
8298
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
8299
|
+
position: 'absolute',
|
|
8300
|
+
color: theme.__hd__.appCue.colors.background,
|
|
8301
|
+
display: 'flex',
|
|
8302
|
+
alignItems: 'center',
|
|
8303
|
+
justifyContent: 'center'
|
|
8304
|
+
}, themePlacement === 'top' && {
|
|
8305
|
+
bottom: -theme.__hd__.appCue.space.arrowOffset,
|
|
8306
|
+
width: '100%'
|
|
8307
|
+
}), themePlacement === 'bottom' && {
|
|
8308
|
+
top: -theme.__hd__.appCue.space.arrowOffset,
|
|
8309
|
+
transform: [{
|
|
8310
|
+
rotate: '180deg'
|
|
8311
|
+
}],
|
|
8312
|
+
width: '100%'
|
|
8313
|
+
}), themePlacement === 'right' && {
|
|
8314
|
+
left: -theme.__hd__.appCue.space.arrowOffset,
|
|
8315
|
+
transform: [{
|
|
8316
|
+
rotate: '90deg'
|
|
8317
|
+
}],
|
|
8318
|
+
height: '100%'
|
|
8319
|
+
}), themePlacement === 'left' && {
|
|
8320
|
+
right: -theme.__hd__.appCue.space.arrowOffset,
|
|
8321
|
+
transform: [{
|
|
8322
|
+
rotate: '-90deg'
|
|
8323
|
+
}],
|
|
8324
|
+
height: '100%'
|
|
8325
|
+
});
|
|
8326
|
+
});
|
|
8327
|
+
|
|
8328
|
+
/**
|
|
8329
|
+
* Calculates the position of an element based on its placement relative to a reference position.
|
|
8330
|
+
*
|
|
8331
|
+
* @param {Object} params - The parameters for calculating the position.
|
|
8332
|
+
* @param {Object} params.position - The position and size of target element.
|
|
8333
|
+
* @param {number} params.position.pageX - The X coordinate of the target position.
|
|
8334
|
+
* @param {number} params.position.pageY - The Y coordinate of the target position.
|
|
8335
|
+
* @param {number} params.position.width - The width of the reference element.
|
|
8336
|
+
* @param {number} params.position.height - The height of the reference element.
|
|
8337
|
+
* @param {Object} params.contentSize - The size of the App Cue content.
|
|
8338
|
+
* @param {number} params.contentSize.width - The width of the content.
|
|
8339
|
+
* @param {number} params.contentSize.height - The height of the content.
|
|
8340
|
+
* @param {Placement} params.placement - The placement of the content relative to the reference position ('top', 'bottom', 'right', 'left').
|
|
8341
|
+
* @param {number} params.offset - The offset distance to display an arrow.
|
|
8342
|
+
*
|
|
8343
|
+
* @returns {Object} The calculated position of the App Cue.
|
|
8344
|
+
* @returns {number} return.x - The X coordinate of the App Cue.
|
|
8345
|
+
* @returns {number} return.y - The Y coordinate of the App Cue.
|
|
8346
|
+
*/
|
|
8347
|
+
var calculatePosition = function calculatePosition(_ref) {
|
|
8348
|
+
var placement = _ref.placement,
|
|
8349
|
+
position = _ref.position,
|
|
8350
|
+
contentSize = _ref.contentSize,
|
|
8351
|
+
offset = _ref.offset;
|
|
8352
|
+
switch (placement) {
|
|
8353
|
+
case 'top':
|
|
8354
|
+
{
|
|
8355
|
+
return {
|
|
8356
|
+
// The X coordinate is calculated by adding the half of the width of the target element to the X coordinate of the target element.
|
|
8357
|
+
x: position.pageX + (position.width - contentSize.width) / 2,
|
|
8358
|
+
// The Y coordinate is calculated by subtracting the height of the content and the offset from the Y coordinate of the target element
|
|
8359
|
+
y: position.pageY - contentSize.height - offset
|
|
8360
|
+
};
|
|
8361
|
+
}
|
|
8362
|
+
case 'bottom':
|
|
8363
|
+
{
|
|
8364
|
+
return {
|
|
8365
|
+
// The X coordinate is calculated by adding the half of the width of the target element to the X coordinate of the target element.
|
|
8366
|
+
x: position.pageX + (position.width - contentSize.width) / 2,
|
|
8367
|
+
// The Y coordinate is calculated by adding the height of the target element and the offset to the Y coordinate of the target element.
|
|
8368
|
+
y: position.pageY + position.height + offset
|
|
8369
|
+
};
|
|
8370
|
+
}
|
|
8371
|
+
case 'right':
|
|
8372
|
+
{
|
|
8373
|
+
return {
|
|
8374
|
+
// The X coordinate is calculated by adding the width of the target element and the offset to the X coordinate of the target element.
|
|
8375
|
+
x: position.pageX + position.width + offset,
|
|
8376
|
+
// The Y coordinate is calculated by adding half of the height of the target element to the Y coordinate of the target element.
|
|
8377
|
+
y: position.pageY + (position.height - contentSize.height) / 2
|
|
8378
|
+
};
|
|
8379
|
+
}
|
|
8380
|
+
case 'left':
|
|
8381
|
+
{
|
|
8382
|
+
return {
|
|
8383
|
+
// The X coordinate is calculated by subtracting the width of the content and the offset from the X coordinate of the target element.
|
|
8384
|
+
x: position.pageX - contentSize.width - offset,
|
|
8385
|
+
// The Y coordinate is calculated by adding half of the height of the target element to the Y coordinate of the target element.
|
|
8386
|
+
y: position.pageY + (position.height - contentSize.height) / 2
|
|
8387
|
+
};
|
|
8388
|
+
}
|
|
8389
|
+
}
|
|
8390
|
+
};
|
|
8391
|
+
/**
|
|
8392
|
+
* Calculates the maximum width of the content based on its position, offset, placement, and window width.
|
|
8393
|
+
*
|
|
8394
|
+
* @param {Object} params - The parameters for the calculation.
|
|
8395
|
+
* @param {Object} params.position - The position and dimensions of the target element.
|
|
8396
|
+
* @param {number} params.position.pageX - The X coordinate of the target element.
|
|
8397
|
+
* @param {number} params.position.pageY - The Y coordinate of the target element.
|
|
8398
|
+
* @param {number} params.position.width - The width of the target element.
|
|
8399
|
+
* @param {number} params.position.height - The height of the target element.
|
|
8400
|
+
* @param {number} params.offset - The offset value to display an arrow.
|
|
8401
|
+
* @param {Placement} params.placement - The placement of the content relative to the element.
|
|
8402
|
+
* @param {number} params.windowWidth - The width of the window.
|
|
8403
|
+
*
|
|
8404
|
+
* @returns {number | undefined} The maximum width of the content.
|
|
8405
|
+
*/
|
|
8406
|
+
var calulateContentMaxWidth = function calulateContentMaxWidth(_ref2) {
|
|
8407
|
+
var position = _ref2.position,
|
|
8408
|
+
offset = _ref2.offset,
|
|
8409
|
+
placement = _ref2.placement,
|
|
8410
|
+
windowWidth = _ref2.windowWidth;
|
|
8411
|
+
switch (placement) {
|
|
8412
|
+
case 'top':
|
|
8413
|
+
{
|
|
8414
|
+
return undefined;
|
|
8415
|
+
}
|
|
8416
|
+
case 'bottom':
|
|
8417
|
+
{
|
|
8418
|
+
return undefined;
|
|
8419
|
+
}
|
|
8420
|
+
case 'right':
|
|
8421
|
+
{
|
|
8422
|
+
return windowWidth - position.pageX - position.width - offset;
|
|
8423
|
+
}
|
|
8424
|
+
case 'left':
|
|
8425
|
+
{
|
|
8426
|
+
return position.pageX - offset;
|
|
8427
|
+
}
|
|
8428
|
+
}
|
|
8429
|
+
};
|
|
8430
|
+
|
|
8431
|
+
var AppCue = function AppCue(_ref) {
|
|
8432
|
+
var target = _ref.target,
|
|
8433
|
+
content = _ref.content,
|
|
8434
|
+
_ref$placement = _ref.placement,
|
|
8435
|
+
placement = _ref$placement === void 0 ? 'top' : _ref$placement,
|
|
8436
|
+
style = _ref.style,
|
|
8437
|
+
testID = _ref.testID;
|
|
8438
|
+
var targetContainerRef = React.useRef(null);
|
|
8439
|
+
var _React$useState = React__namespace.default.useState(false),
|
|
8440
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
8441
|
+
visible = _React$useState2[0],
|
|
8442
|
+
setVisible = _React$useState2[1];
|
|
8443
|
+
var theme = useTheme();
|
|
8444
|
+
var offset = theme.__hd__.appCue.space.offset;
|
|
8445
|
+
var _React$useState3 = React__namespace.default.useState({
|
|
8446
|
+
pageX: 0,
|
|
8447
|
+
pageY: 0,
|
|
8448
|
+
width: 0,
|
|
8449
|
+
height: 0
|
|
8450
|
+
}),
|
|
8451
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
8452
|
+
position = _React$useState4[0],
|
|
8453
|
+
setPosition = _React$useState4[1];
|
|
8454
|
+
var _React$useState5 = React__namespace.default.useState({
|
|
8455
|
+
width: 0,
|
|
8456
|
+
height: 0
|
|
8457
|
+
}),
|
|
8458
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
8459
|
+
contentSize = _React$useState6[0],
|
|
8460
|
+
setContentSize = _React$useState6[1];
|
|
8461
|
+
var doMeasure = React.useCallback(function (cb) {
|
|
8462
|
+
var _targetContainerRef$c;
|
|
8463
|
+
(_targetContainerRef$c = targetContainerRef.current) === null || _targetContainerRef$c === void 0 || _targetContainerRef$c.measure(function (_, __, width, height, pageX, pageY) {
|
|
8464
|
+
setPosition({
|
|
8465
|
+
pageX: pageX,
|
|
8466
|
+
pageY: pageY,
|
|
8467
|
+
width: width,
|
|
8468
|
+
height: height
|
|
8469
|
+
});
|
|
8470
|
+
cb === null || cb === void 0 || cb();
|
|
8471
|
+
});
|
|
8472
|
+
}, []);
|
|
8473
|
+
var handleOpen = function handleOpen() {
|
|
8474
|
+
doMeasure(function () {
|
|
8475
|
+
return setVisible(true);
|
|
8476
|
+
});
|
|
8477
|
+
};
|
|
8478
|
+
React.useLayoutEffect(function () {
|
|
8479
|
+
doMeasure();
|
|
8480
|
+
}, [doMeasure]);
|
|
8481
|
+
var enhancedTarget = /*#__PURE__*/React__namespace.default.cloneElement(target, {
|
|
8482
|
+
onPress: function onPress() {
|
|
8483
|
+
var _target$props, _target$props$onPress;
|
|
8484
|
+
handleOpen();
|
|
8485
|
+
(_target$props = target.props) === null || _target$props === void 0 || (_target$props$onPress = _target$props.onPress) === null || _target$props$onPress === void 0 || _target$props$onPress.call(_target$props);
|
|
8486
|
+
}
|
|
8487
|
+
}, target.props.children);
|
|
8488
|
+
var measureContent = function measureContent(event) {
|
|
8489
|
+
setContentSize({
|
|
8490
|
+
width: event.nativeEvent.layout.width,
|
|
8491
|
+
height: event.nativeEvent.layout.height
|
|
8492
|
+
});
|
|
8493
|
+
};
|
|
8494
|
+
var pos = calculatePosition({
|
|
8495
|
+
position: position,
|
|
8496
|
+
contentSize: contentSize,
|
|
8497
|
+
placement: placement,
|
|
8498
|
+
offset: offset
|
|
8499
|
+
});
|
|
8500
|
+
var _useWindowDimensions = reactNative.useWindowDimensions(),
|
|
8501
|
+
windowWidth = _useWindowDimensions.width;
|
|
8502
|
+
var maxWidth = calulateContentMaxWidth({
|
|
8503
|
+
position: position,
|
|
8504
|
+
offset: offset,
|
|
8505
|
+
placement: placement,
|
|
8506
|
+
windowWidth: windowWidth
|
|
8507
|
+
});
|
|
8508
|
+
var renderContent = function renderContent() {
|
|
8509
|
+
if (typeof content === 'string') {
|
|
8510
|
+
return /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
8511
|
+
intent: "inverted"
|
|
8512
|
+
}, content);
|
|
8513
|
+
}
|
|
8514
|
+
return content;
|
|
8515
|
+
};
|
|
8516
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
|
|
8517
|
+
onPress: handleOpen
|
|
8518
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
8519
|
+
collapsable: false,
|
|
8520
|
+
ref: targetContainerRef,
|
|
8521
|
+
style: {
|
|
8522
|
+
alignSelf: 'center'
|
|
8523
|
+
}
|
|
8524
|
+
}, enhancedTarget)), /*#__PURE__*/React__namespace.default.createElement(reactNative.Modal, {
|
|
8525
|
+
animationType: "fade",
|
|
8526
|
+
visible: visible,
|
|
8527
|
+
onDismiss: function onDismiss() {
|
|
8528
|
+
return setVisible(false);
|
|
8529
|
+
},
|
|
8530
|
+
transparent: true,
|
|
8531
|
+
presentationStyle: "overFullScreen",
|
|
8532
|
+
statusBarTranslucent: true
|
|
8533
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
|
|
8534
|
+
testID: testID && "".concat(testID, "-backdrop"),
|
|
8535
|
+
onPress: function onPress() {
|
|
8536
|
+
return setVisible(false);
|
|
8537
|
+
}
|
|
8538
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledContainer$9, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
8539
|
+
style: reactNative.StyleSheet.flatten([{
|
|
8540
|
+
position: 'absolute',
|
|
8541
|
+
top: pos.y,
|
|
8542
|
+
left: pos.x
|
|
8543
|
+
}, style]),
|
|
8544
|
+
onLayout: measureContent,
|
|
8545
|
+
testID: testID
|
|
8546
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledContent$1, {
|
|
8547
|
+
style: {
|
|
8548
|
+
maxWidth: maxWidth
|
|
8549
|
+
},
|
|
8550
|
+
testID: testID && "".concat(testID, "-content")
|
|
8551
|
+
}, renderContent()), /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer$1, {
|
|
8552
|
+
themePlacement: placement,
|
|
8553
|
+
testID: testID && "".concat(testID, "-arrow")
|
|
8554
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
8555
|
+
icon: "caret-down",
|
|
8556
|
+
size: "small"
|
|
8557
|
+
})))))));
|
|
8558
|
+
};
|
|
8559
|
+
|
|
8214
8560
|
var StyledContainer$8 = index$a(reactNative.View)({
|
|
8215
8561
|
alignItems: 'center',
|
|
8216
8562
|
flexDirection: 'row'
|
|
@@ -8316,6 +8662,7 @@ var StyledText$2 = index$a(Typography.Text)(function (_ref2) {
|
|
|
8316
8662
|
|
|
8317
8663
|
android: {
|
|
8318
8664
|
lineHeight: null,
|
|
8665
|
+
// center on android
|
|
8319
8666
|
marginTop: theme.__hd__.avatar.spaces.titleMarginTopForAndroid[themeSize]
|
|
8320
8667
|
},
|
|
8321
8668
|
web: {
|
|
@@ -9459,6 +9806,7 @@ var StyledButtonTitleOfVariantText = index$a(Typography.Body)(function (_ref3) {
|
|
|
9459
9806
|
return _objectSpread2({
|
|
9460
9807
|
flexShrink: 1,
|
|
9461
9808
|
lineHeight: theme.__hd__.button.lineHeights.titleOfTextVariant,
|
|
9809
|
+
// align text on Android
|
|
9462
9810
|
textAlign: 'center'
|
|
9463
9811
|
}, themeStyling());
|
|
9464
9812
|
});
|
|
@@ -13151,16 +13499,16 @@ var StyledChipWrapper = index$a(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
13151
13499
|
var getShadowStyles = function getShadowStyles() {
|
|
13152
13500
|
switch (themeVariant) {
|
|
13153
13501
|
case 'compact':
|
|
13154
|
-
case '
|
|
13502
|
+
case 'filter':
|
|
13155
13503
|
return _objectSpread2({}, theme.__hd__.chip.shadows.filledWrapper);
|
|
13156
|
-
case '
|
|
13504
|
+
case 'selection':
|
|
13157
13505
|
case 'compact-outlined':
|
|
13158
13506
|
return undefined;
|
|
13159
13507
|
}
|
|
13160
13508
|
};
|
|
13161
13509
|
var getBorderStyles = function getBorderStyles() {
|
|
13162
13510
|
switch (themeVariant) {
|
|
13163
|
-
case '
|
|
13511
|
+
case 'selection':
|
|
13164
13512
|
case 'compact-outlined':
|
|
13165
13513
|
{
|
|
13166
13514
|
return {
|
|
@@ -13169,7 +13517,7 @@ var StyledChipWrapper = index$a(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
13169
13517
|
};
|
|
13170
13518
|
}
|
|
13171
13519
|
case 'compact':
|
|
13172
|
-
case '
|
|
13520
|
+
case 'filter':
|
|
13173
13521
|
{
|
|
13174
13522
|
return {
|
|
13175
13523
|
borderColor: theme.__hd__.chip.colors.wrapperSelectedBorder
|
|
@@ -13180,14 +13528,14 @@ var StyledChipWrapper = index$a(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
13180
13528
|
var getBackgroundStyles = function getBackgroundStyles() {
|
|
13181
13529
|
if (themeSelected) {
|
|
13182
13530
|
switch (themeVariant) {
|
|
13183
|
-
case '
|
|
13531
|
+
case 'selection':
|
|
13184
13532
|
case 'compact-outlined':
|
|
13185
13533
|
{
|
|
13186
13534
|
return {
|
|
13187
13535
|
backgroundColor: themeSelected ? theme.__hd__.chip.colors.outlinedSelectedBackground : theme.__hd__.chip.colors.outlinedDefaultBackground
|
|
13188
13536
|
};
|
|
13189
13537
|
}
|
|
13190
|
-
case '
|
|
13538
|
+
case 'filter':
|
|
13191
13539
|
case 'compact':
|
|
13192
13540
|
{
|
|
13193
13541
|
return {
|
|
@@ -13197,14 +13545,14 @@ var StyledChipWrapper = index$a(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
13197
13545
|
}
|
|
13198
13546
|
} else {
|
|
13199
13547
|
switch (themeVariant) {
|
|
13200
|
-
case '
|
|
13548
|
+
case 'selection':
|
|
13201
13549
|
case 'compact-outlined':
|
|
13202
13550
|
{
|
|
13203
13551
|
return {
|
|
13204
13552
|
backgroundColor: theme.__hd__.chip.colors.outlinedDefaultBackground
|
|
13205
13553
|
};
|
|
13206
13554
|
}
|
|
13207
|
-
case '
|
|
13555
|
+
case 'filter':
|
|
13208
13556
|
case 'compact':
|
|
13209
13557
|
{
|
|
13210
13558
|
return {
|
|
@@ -13257,10 +13605,24 @@ var getChipLabel = function getChipLabel(label) {
|
|
|
13257
13605
|
}
|
|
13258
13606
|
return label;
|
|
13259
13607
|
};
|
|
13608
|
+
var getChipVariant = function getChipVariant() {
|
|
13609
|
+
var variant = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'selection';
|
|
13610
|
+
switch (variant) {
|
|
13611
|
+
case 'selection':
|
|
13612
|
+
case 'filter':
|
|
13613
|
+
case 'compact':
|
|
13614
|
+
case 'compact-outlined':
|
|
13615
|
+
return variant;
|
|
13616
|
+
case 'outlined':
|
|
13617
|
+
return 'selection';
|
|
13618
|
+
case 'filled':
|
|
13619
|
+
return 'filter';
|
|
13620
|
+
}
|
|
13621
|
+
};
|
|
13260
13622
|
var Chip = function Chip(_ref) {
|
|
13261
13623
|
var label = _ref.label,
|
|
13262
13624
|
_ref$variant = _ref.variant,
|
|
13263
|
-
variant = _ref$variant === void 0 ? '
|
|
13625
|
+
variant = _ref$variant === void 0 ? 'selection' : _ref$variant,
|
|
13264
13626
|
_ref$selected = _ref.selected,
|
|
13265
13627
|
selected = _ref$selected === void 0 ? false : _ref$selected,
|
|
13266
13628
|
icon = _ref.icon,
|
|
@@ -13268,13 +13630,15 @@ var Chip = function Chip(_ref) {
|
|
|
13268
13630
|
_ref$showSelectedIcon = _ref.showSelectedIcon,
|
|
13269
13631
|
showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
|
|
13270
13632
|
otherProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
13271
|
-
|
|
13633
|
+
useDeprecation('Chip variant `outlined` and `filled` are deprecated.', variant === 'outlined' || variant === 'filled');
|
|
13634
|
+
var renamedVariant = getChipVariant(variant);
|
|
13635
|
+
var shouldShowSelectedIcon = (renamedVariant === 'selection' || renamedVariant === 'compact-outlined') && selected && showSelectedIcon;
|
|
13272
13636
|
var chipLabel = React.useMemo(function () {
|
|
13273
13637
|
return getChipLabel(label);
|
|
13274
13638
|
}, [label]);
|
|
13275
13639
|
return /*#__PURE__*/React__namespace.default.createElement(StyledChipWrapper, _extends$1({
|
|
13276
13640
|
onPress: onPress,
|
|
13277
|
-
themeVariant:
|
|
13641
|
+
themeVariant: renamedVariant,
|
|
13278
13642
|
themeSelected: selected
|
|
13279
13643
|
}, otherProps), icon && /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
13280
13644
|
marginRight: "small"
|
|
@@ -14301,6 +14665,7 @@ var calculateSnapPointsData = function calculateSnapPointsData(minimumHeight, he
|
|
|
14301
14665
|
return {
|
|
14302
14666
|
list: uniqSnapPointOffsetValues,
|
|
14303
14667
|
minHeightOffset: Math.max.apply(Math, uniqSnapPointOffsetValues),
|
|
14668
|
+
// Furthest from max height
|
|
14304
14669
|
maxHeightOffset: 0 // Max height
|
|
14305
14670
|
};
|
|
14306
14671
|
};
|
|
@@ -16628,6 +16993,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16628
16993
|
});
|
|
16629
16994
|
var interpolateOpacityRightHalf = progressAnimatedValue.current.interpolate({
|
|
16630
16995
|
inputRange: [50, 51],
|
|
16996
|
+
// Transition between left and right half
|
|
16631
16997
|
outputRange: [1, 0],
|
|
16632
16998
|
extrapolate: 'clamp'
|
|
16633
16999
|
});
|
|
@@ -16752,6 +17118,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
16752
17118
|
});
|
|
16753
17119
|
var interpolateBorderRadius = progressAnimatedValue.current.interpolate({
|
|
16754
17120
|
inputRange: [99, 100],
|
|
17121
|
+
// Transition range to remove bother when reached 100%
|
|
16755
17122
|
outputRange: [999, 0],
|
|
16756
17123
|
extrapolate: 'clamp'
|
|
16757
17124
|
});
|
|
@@ -16907,6 +17274,17 @@ var Slider$2 = function Slider(_ref) {
|
|
|
16907
17274
|
});
|
|
16908
17275
|
};
|
|
16909
17276
|
|
|
17277
|
+
var StyledMarker = index$a(reactNative.View)(function (_ref) {
|
|
17278
|
+
var themeDisabled = _ref.themeDisabled,
|
|
17279
|
+
theme = _ref.theme;
|
|
17280
|
+
return _objectSpread2({
|
|
17281
|
+
height: theme.__hd__.slider.sizes.markerHeight,
|
|
17282
|
+
width: theme.__hd__.slider.sizes.markerWidth,
|
|
17283
|
+
borderRadius: theme.__hd__.slider.radii.marker,
|
|
17284
|
+
backgroundColor: themeDisabled ? theme.__hd__.slider.colors.disabledThumbTint : theme.__hd__.slider.colors.thumbTint
|
|
17285
|
+
}, theme.__hd__.slider.shadows.marker);
|
|
17286
|
+
});
|
|
17287
|
+
|
|
16910
17288
|
var Slider$1 = function Slider(_ref) {
|
|
16911
17289
|
var minimumValue = _ref.minimumValue,
|
|
16912
17290
|
maximumValue = _ref.maximumValue,
|
|
@@ -16948,23 +17326,28 @@ var Slider$1 = function Slider(_ref) {
|
|
|
16948
17326
|
thumbTint = _theme$__hd__$slider$.thumbTint,
|
|
16949
17327
|
disabledThumbTint = _theme$__hd__$slider$.disabledThumbTint;
|
|
16950
17328
|
var trackHeight = theme.__hd__.slider.sizes.trackHeight;
|
|
16951
|
-
|
|
16952
|
-
|
|
16953
|
-
|
|
17329
|
+
// Define styles for disabled and enabled states
|
|
17330
|
+
var disabledStyles = {
|
|
17331
|
+
track: {
|
|
17332
|
+
backgroundColor: disabledTrackBackground,
|
|
16954
17333
|
height: trackHeight
|
|
16955
|
-
}
|
|
16956
|
-
|
|
16957
|
-
|
|
16958
|
-
|
|
16959
|
-
|
|
16960
|
-
|
|
16961
|
-
|
|
16962
|
-
|
|
16963
|
-
|
|
16964
|
-
|
|
16965
|
-
|
|
16966
|
-
|
|
16967
|
-
|
|
17334
|
+
},
|
|
17335
|
+
selected: {
|
|
17336
|
+
backgroundColor: disabledThumbTint
|
|
17337
|
+
}
|
|
17338
|
+
};
|
|
17339
|
+
var enabledStyles = {
|
|
17340
|
+
track: {
|
|
17341
|
+
backgroundColor: trackBackground,
|
|
17342
|
+
height: trackHeight
|
|
17343
|
+
},
|
|
17344
|
+
selected: {
|
|
17345
|
+
backgroundColor: thumbTint
|
|
17346
|
+
}
|
|
17347
|
+
};
|
|
17348
|
+
// Use styles based on the `disabled` state
|
|
17349
|
+
var trackStyle = disabled ? disabledStyles.track : enabledStyles.track;
|
|
17350
|
+
var selectedStyle = disabled ? disabledStyles.selected : enabledStyles.selected;
|
|
16968
17351
|
var handleOnValueChangeStart = React.useCallback(function () {
|
|
16969
17352
|
if (onSlidingStart) {
|
|
16970
17353
|
onSlidingStart();
|
|
@@ -16984,6 +17367,13 @@ var Slider$1 = function Slider(_ref) {
|
|
|
16984
17367
|
height: event.nativeEvent.layout.height
|
|
16985
17368
|
});
|
|
16986
17369
|
}, []);
|
|
17370
|
+
var CustomMarker = React.useMemo(function () {
|
|
17371
|
+
return function () {
|
|
17372
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledMarker, {
|
|
17373
|
+
themeDisabled: disabled
|
|
17374
|
+
});
|
|
17375
|
+
};
|
|
17376
|
+
}, [disabled]);
|
|
16987
17377
|
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
16988
17378
|
onLayout: onLayoutCallback,
|
|
16989
17379
|
style: style,
|
|
@@ -17004,8 +17394,8 @@ var Slider$1 = function Slider(_ref) {
|
|
|
17004
17394
|
enabledTwo: !disabled,
|
|
17005
17395
|
allowOverlap: allowOverlap,
|
|
17006
17396
|
trackStyle: trackStyle,
|
|
17007
|
-
|
|
17008
|
-
|
|
17397
|
+
selectedStyle: selectedStyle,
|
|
17398
|
+
customMarker: CustomMarker
|
|
17009
17399
|
}));
|
|
17010
17400
|
};
|
|
17011
17401
|
|
|
@@ -18487,7 +18877,8 @@ var HeaderTabWrapper$1 = index$a(reactNative.View)(function (_ref) {
|
|
|
18487
18877
|
return {
|
|
18488
18878
|
paddingHorizontal: Math.max(themeInsets.left, themeInsets.right),
|
|
18489
18879
|
borderBottomColor: theme.__hd__.tabs.colors.headerBottom,
|
|
18490
|
-
borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
|
|
18880
|
+
borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom,
|
|
18881
|
+
backgroundColor: theme.__hd__.tabs.colors.headerBackground
|
|
18491
18882
|
};
|
|
18492
18883
|
});
|
|
18493
18884
|
var HeaderTab = index$a(reactNative.View)({
|
|
@@ -18549,9 +18940,11 @@ var TabContainer = index$a(reactNative.View)({
|
|
|
18549
18940
|
overflow: 'hidden'
|
|
18550
18941
|
});
|
|
18551
18942
|
var HeaderTabWrapper = index$a(reactNative.View)(function (_ref) {
|
|
18552
|
-
var themeInsets = _ref.themeInsets
|
|
18943
|
+
var themeInsets = _ref.themeInsets,
|
|
18944
|
+
theme = _ref.theme;
|
|
18553
18945
|
return {
|
|
18554
|
-
paddingHorizontal: Math.max(themeInsets.left, themeInsets.right)
|
|
18946
|
+
paddingHorizontal: Math.max(themeInsets.left, themeInsets.right),
|
|
18947
|
+
backgroundColor: theme.__hd__.tabs.colors.headerBackground
|
|
18555
18948
|
};
|
|
18556
18949
|
});
|
|
18557
18950
|
var HeaderTabItem = index$a(reactNative.Animated.View)(function (_ref2) {
|
|
@@ -37535,6 +37928,7 @@ var FloatingIsland = function FloatingIsland(_ref2) {
|
|
|
37535
37928
|
|
|
37536
37929
|
exports.Accordion = Accordion;
|
|
37537
37930
|
exports.Alert = Alert;
|
|
37931
|
+
exports.AppCue = AppCue;
|
|
37538
37932
|
exports.Attachment = Attachment;
|
|
37539
37933
|
exports.Avatar = index$9;
|
|
37540
37934
|
exports.Badge = Badge$1;
|