@telus-uds/components-base 3.28.2 → 4.0.0-alpha.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 +31 -1
- package/babel.config.cjs +1 -1
- package/lib/cjs/A11yInfoProvider/{index.js → A11yInfoProvider.js} +2 -3
- package/lib/cjs/A11yText/{index.js → A11yText.js} +7 -6
- package/lib/cjs/ActionCard/ActionCard.js +34 -26
- package/lib/cjs/ActivityIndicator/{index.js → ActivityIndicator.js} +17 -17
- package/lib/cjs/ActivityIndicator/Dots.js +4 -5
- package/lib/cjs/ActivityIndicator/Dots.native.js +5 -7
- package/lib/cjs/ActivityIndicator/FullScreenIndicator.js +9 -10
- package/lib/cjs/ActivityIndicator/InlineIndicator.js +9 -10
- package/lib/cjs/ActivityIndicator/OverlayIndicator.js +10 -11
- package/lib/cjs/ActivityIndicator/RenderActivityIndicator.js +8 -8
- package/lib/cjs/ActivityIndicator/Spinner.js +4 -5
- package/lib/cjs/ActivityIndicator/Spinner.native.js +5 -7
- package/lib/cjs/Autocomplete/Autocomplete.js +35 -28
- package/lib/cjs/Autocomplete/Loading.js +11 -12
- package/lib/cjs/Autocomplete/Suggestions.js +11 -12
- package/lib/cjs/Autocomplete/dictionary.js +2 -2
- package/lib/cjs/Badge/Badge.js +14 -11
- package/lib/cjs/BaseProvider/{index.js → BaseProvider.js} +10 -11
- package/lib/cjs/BaseProvider/HydrationContext.js +2 -3
- package/lib/cjs/Box/Box.js +55 -43
- package/lib/cjs/Box/backgroundImageStylesMap.js +2 -2
- package/lib/cjs/Button/Button.js +16 -17
- package/lib/cjs/Button/ButtonBase.js +43 -31
- package/lib/cjs/Button/ButtonDropdown.js +24 -23
- package/lib/cjs/Button/ButtonGroup.js +36 -27
- package/lib/cjs/Button/ButtonLink.js +20 -19
- package/lib/cjs/Button/propTypes.js +10 -11
- package/lib/cjs/Card/Card.js +49 -34
- package/lib/cjs/Card/CardBase.js +45 -29
- package/lib/cjs/Card/PressableCardBase.js +36 -25
- package/lib/cjs/Card/backgroundImageStylesMap.js +2 -2
- package/lib/cjs/CardGroup/CardGroup.js +35 -28
- package/lib/cjs/CardGroup/dictionary.js +2 -2
- package/lib/cjs/Carousel/Carousel.js +69 -61
- package/lib/cjs/Carousel/CarouselContext.js +2 -2
- package/lib/cjs/Carousel/CarouselFirstFocus/CarouselFirstFocus.js +4 -4
- package/lib/cjs/Carousel/CarouselItem/CarouselItem.js +16 -13
- package/lib/cjs/Carousel/CarouselStepTracker/CarouselStepTracker.js +17 -17
- package/lib/cjs/Carousel/CarouselTabs/CarouselTabsPanel.js +9 -10
- package/lib/cjs/Carousel/CarouselTabs/CarouselTabsPanelItem.js +20 -13
- package/lib/cjs/Carousel/CarouselThumbnail.js +7 -8
- package/lib/cjs/Carousel/CarouselThumbnailNavigation.js +12 -13
- package/lib/cjs/Carousel/dictionary.js +2 -2
- package/lib/cjs/Checkbox/Checkbox.js +32 -25
- package/lib/cjs/Checkbox/CheckboxButton.js +15 -12
- package/lib/cjs/Checkbox/CheckboxGroup.js +31 -24
- package/lib/cjs/Checkbox/CheckboxInput.js +4 -4
- package/lib/cjs/Checkbox/CheckboxInput.native.js +2 -2
- package/lib/cjs/CheckboxCard/CheckboxCard.js +31 -25
- package/lib/cjs/CheckboxCardGroup/CheckboxCardGroup.js +29 -24
- package/lib/cjs/ColourToggle/ColourBubble.js +24 -11
- package/lib/cjs/ColourToggle/ColourToggle.js +27 -18
- package/lib/cjs/Divider/Divider.js +18 -14
- package/lib/cjs/DownloadApp/DownloadApp.js +25 -17
- package/lib/cjs/DownloadApp/dictionary.js +2 -2
- package/lib/cjs/ExpandCollapse/ExpandCollapse.js +19 -13
- package/lib/cjs/ExpandCollapse/ExpandCollapseAccordion.js +20 -0
- package/lib/cjs/ExpandCollapse/{Control.js → ExpandCollapseControl.js} +32 -14
- package/lib/cjs/ExpandCollapse/{Panel.js → ExpandCollapsePanel.js} +33 -21
- package/lib/cjs/ExpandCollapse/dictionary.js +2 -2
- package/lib/cjs/ExpandCollapseMini/ExpandCollapseMini.js +33 -18
- package/lib/cjs/ExpandCollapseMini/ExpandCollapseMiniControl.js +26 -12
- package/lib/cjs/Feedback/Feedback.js +22 -17
- package/lib/cjs/Fieldset/Fieldset.js +31 -23
- package/lib/cjs/Fieldset/FieldsetContainer.js +9 -8
- package/lib/cjs/Fieldset/FieldsetContainer.native.js +7 -6
- package/lib/cjs/Fieldset/Legend.js +6 -6
- package/lib/cjs/Fieldset/Legend.native.js +4 -4
- package/lib/cjs/Fieldset/cssReset.js +2 -2
- package/lib/cjs/FileUpload/FileUpload.js +38 -32
- package/lib/cjs/FileUpload/NotificationContent.js +7 -7
- package/lib/cjs/FileUpload/dictionary.js +2 -2
- package/lib/cjs/FlexGrid/FlexGrid.js +30 -28
- package/lib/cjs/FlexGrid/{Col/Col.js → FlexGridCol/FlexGridCol.js} +25 -24
- package/lib/cjs/FlexGrid/{Row/Row.js → FlexGridRow/FlexGridRow.js} +16 -16
- package/lib/cjs/FlexGrid/helpers/index.js +2 -2
- package/lib/cjs/FlexGrid/providers/GutterContext.js +2 -3
- package/lib/cjs/Footnote/Footnote.js +26 -21
- package/lib/cjs/Footnote/FootnoteLink.js +18 -13
- package/lib/cjs/Footnote/dictionary.js +2 -2
- package/lib/cjs/HorizontalScroll/HorizontalScroll.js +24 -14
- package/lib/cjs/HorizontalScroll/HorizontalScrollButton.js +19 -16
- package/lib/cjs/HorizontalScroll/ScrollViewEnd.js +3 -4
- package/lib/cjs/HorizontalScroll/ScrollViewEnd.native.js +4 -4
- package/lib/cjs/HorizontalScroll/dictionary.js +2 -2
- package/lib/cjs/Icon/Icon.js +9 -9
- package/lib/cjs/Icon/IconText.js +10 -12
- package/lib/cjs/IconButton/IconButton.js +34 -21
- package/lib/cjs/InputLabel/InputLabel.js +24 -19
- package/lib/cjs/InputLabel/LabelContent.js +3 -4
- package/lib/cjs/InputLabel/LabelContent.native.js +3 -4
- package/lib/cjs/InputSupports/InputSupports.js +21 -21
- package/lib/cjs/InputSupports/dictionary.js +2 -2
- package/lib/cjs/InputSupports/useInputSupports.js +10 -11
- package/lib/cjs/Link/ChevronLink.js +16 -14
- package/lib/cjs/Link/InlinePressable.js +4 -4
- package/lib/cjs/Link/InlinePressable.native.js +3 -4
- package/lib/cjs/Link/Link.js +50 -9
- package/lib/cjs/Link/LinkBase.js +64 -38
- package/lib/cjs/Link/MobileIconTextContent.js +153 -0
- package/lib/cjs/Link/TextButton.js +11 -11
- package/lib/cjs/List/List.js +12 -9
- package/lib/cjs/List/ListItem.js +12 -11
- package/lib/cjs/List/ListItemBase.js +19 -16
- package/lib/cjs/List/ListItemContent.js +9 -9
- package/lib/cjs/List/ListItemMark.js +8 -9
- package/lib/cjs/List/PressableListItemBase.js +27 -21
- package/lib/cjs/Listbox/GroupControl.js +11 -12
- package/lib/cjs/Listbox/Listbox.js +20 -22
- package/lib/cjs/Listbox/ListboxGroup.js +22 -21
- package/lib/cjs/Listbox/ListboxItem.js +14 -12
- package/lib/cjs/Listbox/ListboxOverlay.js +8 -8
- package/lib/cjs/Listbox/PressableItem.js +8 -7
- package/lib/cjs/Listbox/SecondLevelHeader.js +19 -18
- package/lib/cjs/Listbox/dictionary.js +2 -2
- package/lib/cjs/Modal/Modal.js +31 -25
- package/lib/cjs/Modal/ModalContent.js +18 -19
- package/lib/cjs/Modal/WebModal.js +9 -8
- package/lib/cjs/Modal/dictionary.js +2 -2
- package/lib/cjs/MultiSelectFilter/ModalOverlay.js +25 -29
- package/lib/cjs/MultiSelectFilter/MultiSelectFilter.js +64 -65
- package/lib/cjs/MultiSelectFilter/dictionary.js +2 -2
- package/lib/cjs/Notification/Notification.js +43 -34
- package/lib/cjs/Notification/dictionary.js +2 -2
- package/lib/cjs/OrderedList/OrderedList.js +14 -13
- package/lib/cjs/OrderedList/OrderedListBase.js +2 -5
- package/lib/cjs/OrderedList/{Item.js → OrderedListItem.js} +27 -21
- package/lib/cjs/OrderedList/{ItemBase.js → OrderedListItemBase.js} +4 -5
- package/lib/cjs/Pagination/Pagination.js +38 -32
- package/lib/cjs/Pagination/PaginationPageButton.js +90 -0
- package/lib/cjs/Pagination/SideButton.js +26 -22
- package/lib/cjs/Pagination/dictionary.js +2 -2
- package/lib/cjs/Pagination/usePagination.js +2 -3
- package/lib/cjs/Portal/Portal.js +3 -3
- package/lib/cjs/Portal/Portal.native.js +7 -3
- package/lib/cjs/PriceLockup/PriceLockup.js +20 -18
- package/lib/cjs/PriceLockup/utils/renderFootnoteContent.js +7 -7
- package/lib/cjs/PriceLockup/utils/renderFootnoteLinks.js +4 -4
- package/lib/cjs/PriceLockup/utils/renderPrice.js +12 -12
- package/lib/cjs/PriceLockup/utils/renderTypography.js +4 -4
- package/lib/cjs/ProductCard/ProductCard.js +42 -37
- package/lib/cjs/ProductCard/dictionary.js +2 -2
- package/lib/cjs/ProductCardGroup/ProductCardGroup.js +12 -10
- package/lib/cjs/Progress/Progress.js +16 -12
- package/lib/cjs/Progress/ProgressBar.js +18 -14
- package/lib/cjs/Progress/ProgressBarBackground.js +4 -5
- package/lib/cjs/Progress/ProgressContext.js +3 -4
- package/lib/cjs/QuickLinks/QuickLinks.js +20 -19
- package/lib/cjs/QuickLinks/QuickLinksCard.js +14 -13
- package/lib/cjs/QuickLinks/QuickLinksItem.js +26 -21
- package/lib/cjs/QuickLinksFeature/QuickLinksFeature.js +19 -16
- package/lib/cjs/QuickLinksFeature/QuickLinksFeatureItem.js +27 -18
- package/lib/cjs/Radio/Radio.js +27 -22
- package/lib/cjs/Radio/RadioButton.js +20 -16
- package/lib/cjs/Radio/RadioGroup.js +31 -24
- package/lib/cjs/Radio/RadioInput.js +4 -4
- package/lib/cjs/Radio/RadioInput.native.js +2 -2
- package/lib/cjs/RadioCard/RadioCard.js +31 -25
- package/lib/cjs/RadioCard/RadioCardGroup.js +29 -24
- package/lib/cjs/Responsive/Responsive.js +11 -10
- package/lib/cjs/Responsive/ResponsiveProp.js +5 -5
- package/lib/cjs/Responsive/ResponsiveWithMediaQueryStyleSheet.js +8 -8
- package/lib/cjs/Search/Search.js +37 -29
- package/lib/cjs/Search/dictionary.js +2 -2
- package/lib/cjs/Select/Picker.js +8 -7
- package/lib/cjs/Select/Picker.native.js +8 -8
- package/lib/cjs/Select/Select.js +28 -19
- package/lib/cjs/Select/{Group.js → SelectGroup.js} +6 -7
- package/lib/cjs/Select/{Group.native.js → SelectGroup.native.js} +6 -6
- package/lib/cjs/Select/{Item.js → SelectItem.js} +4 -5
- package/lib/cjs/Select/SelectItem.native.js +8 -0
- package/lib/cjs/Shortcuts/Shortcuts.js +25 -21
- package/lib/cjs/Shortcuts/ShortcutsItem.js +33 -23
- package/lib/cjs/SideNav/SideNav.js +29 -28
- package/lib/cjs/SideNav/{Item.js → SideNavItem.js} +26 -20
- package/lib/cjs/SideNav/{ItemContent.js → SideNavItemContent.js} +10 -11
- package/lib/cjs/SideNav/{ItemsGroup.js → SideNavItemsGroup.js} +29 -28
- package/lib/cjs/Skeleton/Skeleton.js +28 -26
- package/lib/cjs/Skeleton/skeletonWebAnimation.js +2 -2
- package/lib/cjs/Skeleton/useSkeletonNativeAnimation.js +2 -2
- package/lib/cjs/SkipLink/SkipLink.js +24 -14
- package/lib/cjs/Spacer/Spacer.js +18 -14
- package/lib/cjs/StackView/StackView.js +31 -22
- package/lib/cjs/StackView/StackWrap.js +8 -9
- package/lib/cjs/StackView/StackWrap.native.js +7 -5
- package/lib/cjs/StackView/StackWrapBox.js +27 -20
- package/lib/cjs/StackView/StackWrapGap.js +20 -16
- package/lib/cjs/StackView/common.js +2 -1
- package/lib/cjs/StackView/getStackedContent.js +12 -13
- package/lib/cjs/Status/Status.js +21 -15
- package/lib/cjs/StepTracker/Step.js +21 -17
- package/lib/cjs/StepTracker/StepTracker.js +26 -21
- package/lib/cjs/StepTracker/dictionary.js +2 -2
- package/lib/cjs/TabBar/TabBar.js +22 -14
- package/lib/cjs/TabBar/TabBarItem.js +16 -15
- package/lib/cjs/Tabs/Tabs.js +40 -31
- package/lib/cjs/Tabs/TabsDropdown.js +38 -28
- package/lib/cjs/Tabs/TabsItem.js +30 -20
- package/lib/cjs/Tabs/dictionary.js +2 -2
- package/lib/cjs/Tags/Tags.js +37 -28
- package/lib/cjs/TextInput/TextArea.js +22 -16
- package/lib/cjs/TextInput/TextInput.js +20 -14
- package/lib/cjs/TextInput/TextInputBase.js +34 -24
- package/lib/cjs/TextInput/dictionary.js +2 -2
- package/lib/cjs/TextInput/propTypes.js +3 -4
- package/lib/cjs/ThemeProvider/ThemeProvider.js +11 -9
- package/lib/cjs/ThemeProvider/useResponsiveThemeTokens.js +8 -9
- package/lib/cjs/ThemeProvider/useResponsiveThemeTokensCallback.js +9 -10
- package/lib/cjs/ThemeProvider/useSetTheme.js +2 -2
- package/lib/cjs/ThemeProvider/useTheme.js +2 -2
- package/lib/cjs/ThemeProvider/useThemeTokens.js +10 -11
- package/lib/cjs/ThemeProvider/utils/styles.js +4 -1
- package/lib/cjs/Timeline/Timeline.js +20 -16
- package/lib/cjs/ToggleSwitch/ToggleSwitch.js +26 -19
- package/lib/cjs/ToggleSwitch/ToggleSwitchGroup.js +32 -25
- package/lib/cjs/Tooltip/Backdrop.js +2 -3
- package/lib/cjs/Tooltip/Backdrop.native.js +3 -3
- package/lib/cjs/Tooltip/Tooltip.js +21 -18
- package/lib/cjs/Tooltip/Tooltip.native.js +27 -24
- package/lib/cjs/Tooltip/dictionary.js +2 -2
- package/lib/cjs/Tooltip/getTooltipPosition.js +2 -3
- package/lib/cjs/Tooltip/shared.js +5 -6
- package/lib/cjs/TooltipButton/TooltipButton.js +17 -13
- package/lib/cjs/Typography/Typography.js +42 -24
- package/lib/cjs/Validator/Validator.js +12 -12
- package/lib/cjs/ViewportProvider/ViewportProvider.js +9 -7
- package/lib/cjs/ViewportProvider/useViewportListener.js +4 -4
- package/lib/cjs/index.js +897 -355
- package/lib/cjs/server.js +5 -6
- package/lib/cjs/utils/BaseView/BaseView.js +6 -6
- package/lib/cjs/utils/BaseView/BaseView.native.js +7 -6
- package/lib/cjs/utils/animation/useVerticalExpandAnimation.js +5 -6
- package/lib/cjs/utils/children.js +2 -2
- package/lib/cjs/utils/containUniqueFields.js +2 -2
- package/lib/cjs/utils/convertFromMegaByteToByte.js +1 -1
- package/lib/cjs/utils/formatImageSource.js +2 -2
- package/lib/cjs/utils/getSpacingScale.js +2 -2
- package/lib/cjs/utils/hasOwnProperty.js +1 -1
- package/lib/cjs/utils/htmlAttrs.js +2 -2
- package/lib/cjs/utils/info/info.js +12 -0
- package/lib/cjs/utils/info/platform/platform.android.js +2 -2
- package/lib/cjs/utils/info/platform/platform.ios.js +2 -2
- package/lib/cjs/utils/info/platform/platform.js +14 -2
- package/lib/cjs/utils/info/platform/platform.native.js +2 -2
- package/lib/cjs/utils/info/versions.js +2 -2
- package/lib/cjs/utils/isTouchDevice.js +2 -2
- package/lib/cjs/utils/pressability.js +2 -2
- package/lib/cjs/utils/props/a11yProps.js +4 -4
- package/lib/cjs/utils/props/clickProps.js +2 -2
- package/lib/cjs/utils/props/componentPropType.js +1 -1
- package/lib/cjs/utils/props/contentfulProps.js +4 -4
- package/lib/cjs/utils/props/copyPropTypes.js +2 -2
- package/lib/cjs/utils/props/getPropSelector.js +3 -3
- package/lib/cjs/utils/props/handlerProps.js +3 -3
- package/lib/cjs/utils/props/hrefAttrsProp.js +2 -2
- package/lib/cjs/utils/props/inputSupportsProps.js +4 -4
- package/lib/cjs/utils/props/linkProps.js +8 -8
- package/lib/cjs/utils/props/paddingProp.js +2 -2
- package/lib/cjs/utils/props/pressProps.js +7 -7
- package/lib/cjs/utils/props/rectProp.js +2 -2
- package/lib/cjs/utils/props/responsiveProps.js +2 -2
- package/lib/cjs/utils/props/selectSystemProps.js +1 -1
- package/lib/cjs/utils/props/spacingProps.js +6 -6
- package/lib/cjs/utils/props/textInputProps.js +4 -4
- package/lib/cjs/utils/props/textProps.js +4 -4
- package/lib/cjs/utils/props/variantProp.js +2 -2
- package/lib/cjs/utils/props/viewProps.js +4 -4
- package/lib/cjs/utils/resolveContentMaxWidth.js +2 -2
- package/lib/cjs/utils/ssr-media-query/create-stylesheet/create-stylesheet-mobile.js +2 -2
- package/lib/cjs/utils/ssr-media-query/create-stylesheet/index.android.js +7 -4
- package/lib/cjs/utils/ssr-media-query/create-stylesheet/index.ios.js +7 -4
- package/lib/cjs/utils/ssr-media-query/create-stylesheet/index.js +6 -7
- package/lib/cjs/utils/ssr-media-query/hash.js +1 -1
- package/lib/cjs/utils/ssr-media-query/ssr-media-query.js +24 -0
- package/lib/cjs/utils/ssr-media-query/utils/create-declaration-block.js +4 -4
- package/lib/cjs/utils/ssr-media-query/utils/create-media-query-styles.js +2 -3
- package/lib/cjs/utils/ssr-media-query/utils/hyphenate-style-name.js +2 -2
- package/lib/cjs/utils/ssr-media-query/utils/use-all-viewport-tokens.js +11 -11
- package/lib/cjs/utils/ssr.js +3 -3
- package/lib/cjs/utils/transformGradient.js +2 -5
- package/lib/cjs/utils/useCopy.js +3 -3
- package/lib/cjs/utils/useDetectOutsideClick.js +2 -3
- package/lib/cjs/utils/useHash.js +2 -2
- package/lib/cjs/utils/useHash.native.js +2 -2
- package/lib/cjs/utils/useMediaQuerySpacing.js +8 -8
- package/lib/cjs/utils/useOverlaidPosition.js +2 -2
- package/lib/cjs/utils/useResponsiveProp.js +7 -8
- package/lib/cjs/utils/useSafeLayoutEffect.js +3 -4
- package/lib/cjs/utils/useScrollBlocking.js +2 -2
- package/lib/cjs/utils/useScrollBlocking.native.js +3 -3
- package/lib/cjs/utils/useSpacingScale.js +6 -6
- package/lib/cjs/utils/useUniqueId.js +2 -3
- package/lib/cjs/utils/useVariants.js +6 -5
- package/lib/cjs/utils/withLinkRouter.js +7 -6
- package/lib/esm/A11yInfoProvider/{index.js → A11yInfoProvider.js} +1 -2
- package/lib/esm/A11yText/{index.js → A11yText.js} +5 -4
- package/lib/esm/ActionCard/ActionCard.js +18 -10
- package/lib/esm/ActivityIndicator/{index.js → ActivityIndicator.js} +9 -9
- package/lib/esm/ActivityIndicator/Dots.js +3 -4
- package/lib/esm/ActivityIndicator/Dots.native.js +3 -4
- package/lib/esm/ActivityIndicator/FullScreenIndicator.js +5 -6
- package/lib/esm/ActivityIndicator/InlineIndicator.js +5 -6
- package/lib/esm/ActivityIndicator/OverlayIndicator.js +5 -6
- package/lib/esm/ActivityIndicator/RenderActivityIndicator.js +4 -5
- package/lib/esm/ActivityIndicator/Spinner.js +3 -4
- package/lib/esm/ActivityIndicator/Spinner.native.js +3 -4
- package/lib/esm/Autocomplete/Autocomplete.js +20 -13
- package/lib/esm/Autocomplete/Loading.js +6 -7
- package/lib/esm/Autocomplete/Suggestions.js +6 -7
- package/lib/esm/Autocomplete/dictionary.js +1 -1
- package/lib/esm/Badge/Badge.js +8 -5
- package/lib/esm/BaseProvider/{index.js → BaseProvider.js} +5 -6
- package/lib/esm/BaseProvider/HydrationContext.js +1 -2
- package/lib/esm/Box/Box.js +20 -6
- package/lib/esm/Box/backgroundImageStylesMap.js +1 -1
- package/lib/esm/Button/Button.js +9 -8
- package/lib/esm/Button/ButtonBase.js +27 -15
- package/lib/esm/Button/ButtonDropdown.js +12 -9
- package/lib/esm/Button/ButtonGroup.js +20 -10
- package/lib/esm/Button/ButtonLink.js +10 -8
- package/lib/esm/Button/propTypes.js +8 -8
- package/lib/esm/Card/Card.js +29 -12
- package/lib/esm/Card/CardBase.js +26 -10
- package/lib/esm/Card/PressableCardBase.js +23 -10
- package/lib/esm/Card/backgroundImageStylesMap.js +1 -1
- package/lib/esm/CardGroup/CardGroup.js +19 -10
- package/lib/esm/CardGroup/dictionary.js +1 -1
- package/lib/esm/Carousel/Carousel.js +40 -32
- package/lib/esm/Carousel/CarouselContext.js +4 -5
- package/lib/esm/Carousel/CarouselFirstFocus/CarouselFirstFocus.js +2 -3
- package/lib/esm/Carousel/CarouselItem/CarouselItem.js +10 -7
- package/lib/esm/Carousel/CarouselStepTracker/CarouselStepTracker.js +9 -9
- package/lib/esm/Carousel/CarouselTabs/CarouselTabsPanel.js +5 -6
- package/lib/esm/Carousel/CarouselTabs/CarouselTabsPanelItem.js +12 -5
- package/lib/esm/Carousel/CarouselThumbnail.js +4 -5
- package/lib/esm/Carousel/CarouselThumbnailNavigation.js +6 -7
- package/lib/esm/Carousel/dictionary.js +1 -1
- package/lib/esm/Checkbox/Checkbox.js +17 -10
- package/lib/esm/Checkbox/CheckboxButton.js +8 -5
- package/lib/esm/Checkbox/CheckboxGroup.js +18 -11
- package/lib/esm/Checkbox/CheckboxInput.js +2 -3
- package/lib/esm/Checkbox/CheckboxInput.native.js +1 -2
- package/lib/esm/CheckboxCard/CheckboxCard.js +15 -7
- package/lib/esm/CheckboxCardGroup/CheckboxCardGroup.js +16 -9
- package/lib/esm/ColourToggle/ColourBubble.js +21 -8
- package/lib/esm/ColourToggle/ColourToggle.js +19 -10
- package/lib/esm/Divider/Divider.js +10 -6
- package/lib/esm/DownloadApp/DownloadApp.js +14 -6
- package/lib/esm/DownloadApp/dictionary.js +1 -1
- package/lib/esm/ExpandCollapse/ExpandCollapse.js +12 -6
- package/lib/esm/ExpandCollapse/ExpandCollapseAccordion.js +14 -0
- package/lib/esm/ExpandCollapse/{Control.js → ExpandCollapseControl.js} +26 -8
- package/lib/esm/ExpandCollapse/{Panel.js → ExpandCollapsePanel.js} +21 -9
- package/lib/esm/ExpandCollapse/dictionary.js +1 -1
- package/lib/esm/ExpandCollapseMini/ExpandCollapseMini.js +25 -10
- package/lib/esm/ExpandCollapseMini/ExpandCollapseMiniControl.js +22 -8
- package/lib/esm/Feedback/Feedback.js +10 -5
- package/lib/esm/Fieldset/Fieldset.js +21 -14
- package/lib/esm/Fieldset/FieldsetContainer.js +6 -5
- package/lib/esm/Fieldset/FieldsetContainer.native.js +5 -4
- package/lib/esm/Fieldset/Legend.js +3 -4
- package/lib/esm/Fieldset/Legend.native.js +2 -3
- package/lib/esm/Fieldset/cssReset.js +1 -1
- package/lib/esm/FileUpload/FileUpload.js +18 -12
- package/lib/esm/FileUpload/NotificationContent.js +3 -4
- package/lib/esm/FileUpload/dictionary.js +1 -1
- package/lib/esm/FlexGrid/FlexGrid.js +16 -14
- package/lib/esm/FlexGrid/{Col/Col.js → FlexGridCol/FlexGridCol.js} +13 -12
- package/lib/esm/FlexGrid/{Row/Row.js → FlexGridRow/FlexGridRow.js} +9 -9
- package/lib/esm/FlexGrid/helpers/index.js +2 -3
- package/lib/esm/FlexGrid/providers/GutterContext.js +1 -2
- package/lib/esm/Footnote/Footnote.js +15 -10
- package/lib/esm/Footnote/FootnoteLink.js +10 -5
- package/lib/esm/Footnote/dictionary.js +1 -1
- package/lib/esm/HorizontalScroll/HorizontalScroll.js +17 -7
- package/lib/esm/HorizontalScroll/HorizontalScrollButton.js +10 -7
- package/lib/esm/HorizontalScroll/ScrollViewEnd.js +2 -3
- package/lib/esm/HorizontalScroll/ScrollViewEnd.native.js +2 -3
- package/lib/esm/HorizontalScroll/dictionary.js +1 -1
- package/lib/esm/Icon/Icon.js +5 -5
- package/lib/esm/Icon/IconText.js +5 -6
- package/lib/esm/IconButton/IconButton.js +20 -7
- package/lib/esm/InputLabel/InputLabel.js +12 -7
- package/lib/esm/InputLabel/LabelContent.js +2 -3
- package/lib/esm/InputLabel/LabelContent.native.js +2 -3
- package/lib/esm/InputSupports/InputSupports.js +11 -11
- package/lib/esm/InputSupports/dictionary.js +1 -1
- package/lib/esm/InputSupports/useInputSupports.js +5 -6
- package/lib/esm/Link/ChevronLink.js +7 -6
- package/lib/esm/Link/InlinePressable.js +2 -3
- package/lib/esm/Link/InlinePressable.native.js +2 -3
- package/lib/esm/Link/Link.js +48 -6
- package/lib/esm/Link/LinkBase.js +50 -24
- package/lib/esm/Link/MobileIconTextContent.js +146 -0
- package/lib/esm/Link/TextButton.js +5 -6
- package/lib/esm/List/List.js +8 -5
- package/lib/esm/List/ListItem.js +6 -6
- package/lib/esm/List/ListItemBase.js +11 -8
- package/lib/esm/List/ListItemContent.js +5 -5
- package/lib/esm/List/ListItemMark.js +4 -5
- package/lib/esm/List/PressableListItemBase.js +17 -11
- package/lib/esm/Listbox/GroupControl.js +6 -7
- package/lib/esm/Listbox/Listbox.js +10 -11
- package/lib/esm/Listbox/ListboxGroup.js +12 -11
- package/lib/esm/Listbox/ListboxItem.js +9 -7
- package/lib/esm/Listbox/ListboxOverlay.js +4 -4
- package/lib/esm/Listbox/PressableItem.js +5 -4
- package/lib/esm/Listbox/SecondLevelHeader.js +10 -9
- package/lib/esm/Listbox/dictionary.js +1 -1
- package/lib/esm/Modal/Modal.js +17 -11
- package/lib/esm/Modal/ModalContent.js +9 -10
- package/lib/esm/Modal/WebModal.js +6 -5
- package/lib/esm/Modal/dictionary.js +1 -1
- package/lib/esm/MultiSelectFilter/ModalOverlay.js +15 -19
- package/lib/esm/MultiSelectFilter/MultiSelectFilter.js +33 -34
- package/lib/esm/MultiSelectFilter/dictionary.js +1 -1
- package/lib/esm/Notification/Notification.js +18 -9
- package/lib/esm/Notification/dictionary.js +1 -1
- package/lib/esm/OrderedList/OrderedList.js +9 -8
- package/lib/esm/OrderedList/OrderedListBase.js +1 -4
- package/lib/esm/OrderedList/{Item.js → OrderedListItem.js} +16 -10
- package/lib/esm/OrderedList/{ItemBase.js → OrderedListItemBase.js} +3 -4
- package/lib/esm/Pagination/Pagination.js +20 -13
- package/lib/esm/Pagination/{PageButton.js → PaginationPageButton.js} +18 -9
- package/lib/esm/Pagination/SideButton.js +15 -11
- package/lib/esm/Pagination/dictionary.js +1 -1
- package/lib/esm/Pagination/usePagination.js +2 -3
- package/lib/esm/Portal/Portal.js +2 -3
- package/lib/esm/Portal/Portal.native.js +1 -2
- package/lib/esm/PriceLockup/PriceLockup.js +11 -9
- package/lib/esm/PriceLockup/utils/renderFootnoteContent.js +3 -4
- package/lib/esm/PriceLockup/utils/renderFootnoteLinks.js +3 -4
- package/lib/esm/PriceLockup/utils/renderPrice.js +4 -5
- package/lib/esm/PriceLockup/utils/renderTypography.js +3 -4
- package/lib/esm/ProductCard/ProductCard.js +18 -13
- package/lib/esm/ProductCard/dictionary.js +1 -1
- package/lib/esm/ProductCardGroup/ProductCardGroup.js +8 -6
- package/lib/esm/Progress/Progress.js +9 -5
- package/lib/esm/Progress/ProgressBar.js +10 -6
- package/lib/esm/Progress/ProgressBarBackground.js +2 -3
- package/lib/esm/Progress/ProgressContext.js +2 -3
- package/lib/esm/QuickLinks/QuickLinks.js +9 -9
- package/lib/esm/QuickLinks/QuickLinksCard.js +8 -8
- package/lib/esm/QuickLinks/QuickLinksItem.js +15 -10
- package/lib/esm/QuickLinksFeature/QuickLinksFeature.js +12 -9
- package/lib/esm/QuickLinksFeature/QuickLinksFeatureItem.js +18 -9
- package/lib/esm/Radio/Radio.js +15 -8
- package/lib/esm/Radio/RadioButton.js +10 -6
- package/lib/esm/Radio/RadioGroup.js +18 -11
- package/lib/esm/Radio/RadioInput.js +2 -3
- package/lib/esm/Radio/RadioInput.native.js +1 -2
- package/lib/esm/RadioCard/RadioCard.js +16 -8
- package/lib/esm/RadioCard/RadioCardGroup.js +16 -9
- package/lib/esm/Responsive/Responsive.js +5 -6
- package/lib/esm/Responsive/ResponsiveProp.js +3 -4
- package/lib/esm/Responsive/ResponsiveWithMediaQueryStyleSheet.js +4 -4
- package/lib/esm/Search/Search.js +18 -10
- package/lib/esm/Search/dictionary.js +1 -1
- package/lib/esm/Select/Picker.js +5 -4
- package/lib/esm/Select/Picker.native.js +5 -5
- package/lib/esm/Select/Select.js +16 -7
- package/lib/esm/Select/{Group.js → SelectGroup.js} +4 -5
- package/lib/esm/Select/{Group.native.js → SelectGroup.native.js} +3 -4
- package/lib/esm/Select/{Item.js → SelectItem.js} +3 -4
- package/lib/esm/Select/SelectItem.native.js +1 -0
- package/lib/esm/Shortcuts/Shortcuts.js +13 -7
- package/lib/esm/Shortcuts/ShortcutsItem.js +17 -7
- package/lib/esm/SideNav/SideNav.js +19 -17
- package/lib/esm/SideNav/{Item.js → SideNavItem.js} +18 -12
- package/lib/esm/SideNav/{ItemContent.js → SideNavItemContent.js} +6 -7
- package/lib/esm/SideNav/{ItemsGroup.js → SideNavItemsGroup.js} +20 -19
- package/lib/esm/Skeleton/Skeleton.js +16 -14
- package/lib/esm/Skeleton/skeletonWebAnimation.js +2 -3
- package/lib/esm/Skeleton/useSkeletonNativeAnimation.js +2 -3
- package/lib/esm/SkipLink/SkipLink.js +16 -6
- package/lib/esm/Spacer/Spacer.js +10 -6
- package/lib/esm/StackView/StackView.js +16 -7
- package/lib/esm/StackView/StackWrap.js +5 -6
- package/lib/esm/StackView/StackWrap.native.js +1 -3
- package/lib/esm/StackView/StackWrapBox.js +14 -7
- package/lib/esm/StackView/StackWrapGap.js +12 -8
- package/lib/esm/StackView/common.js +2 -1
- package/lib/esm/StackView/getStackedContent.js +5 -6
- package/lib/esm/Status/Status.js +12 -6
- package/lib/esm/StepTracker/Step.js +10 -6
- package/lib/esm/StepTracker/StepTracker.js +14 -9
- package/lib/esm/StepTracker/dictionary.js +1 -1
- package/lib/esm/TabBar/TabBar.js +16 -8
- package/lib/esm/TabBar/TabBarItem.js +8 -7
- package/lib/esm/Tabs/Tabs.js +22 -11
- package/lib/esm/Tabs/TabsDropdown.js +20 -10
- package/lib/esm/Tabs/TabsItem.js +18 -8
- package/lib/esm/Tabs/dictionary.js +1 -1
- package/lib/esm/Tags/Tags.js +20 -11
- package/lib/esm/TextInput/TextArea.js +14 -8
- package/lib/esm/TextInput/TextInput.js +13 -7
- package/lib/esm/TextInput/TextInputBase.js +18 -8
- package/lib/esm/TextInput/dictionary.js +1 -1
- package/lib/esm/TextInput/propTypes.js +2 -3
- package/lib/esm/ThemeProvider/ThemeProvider.js +8 -6
- package/lib/esm/ThemeProvider/useResponsiveThemeTokens.js +4 -5
- package/lib/esm/ThemeProvider/useResponsiveThemeTokensCallback.js +4 -5
- package/lib/esm/ThemeProvider/useSetTheme.js +2 -3
- package/lib/esm/ThemeProvider/useTheme.js +2 -3
- package/lib/esm/ThemeProvider/useThemeTokens.js +2 -2
- package/lib/esm/ThemeProvider/utils/styles.js +4 -1
- package/lib/esm/Timeline/Timeline.js +10 -6
- package/lib/esm/ToggleSwitch/ToggleSwitch.js +15 -8
- package/lib/esm/ToggleSwitch/ToggleSwitchGroup.js +18 -11
- package/lib/esm/Tooltip/Backdrop.js +2 -3
- package/lib/esm/Tooltip/Backdrop.native.js +1 -2
- package/lib/esm/Tooltip/Tooltip.js +11 -8
- package/lib/esm/Tooltip/Tooltip.native.js +15 -12
- package/lib/esm/Tooltip/dictionary.js +1 -1
- package/lib/esm/Tooltip/getTooltipPosition.js +2 -3
- package/lib/esm/Tooltip/shared.js +3 -4
- package/lib/esm/TooltipButton/TooltipButton.js +10 -6
- package/lib/esm/Typography/Typography.js +27 -9
- package/lib/esm/Validator/Validator.js +7 -7
- package/lib/esm/ViewportProvider/ViewportProvider.js +6 -5
- package/lib/esm/ViewportProvider/useViewportListener.js +3 -4
- package/lib/esm/index.js +166 -73
- package/lib/esm/server.js +2 -2
- package/lib/esm/utils/BaseView/BaseView.js +3 -4
- package/lib/esm/utils/BaseView/BaseView.native.js +1 -2
- package/lib/esm/utils/animation/useVerticalExpandAnimation.js +4 -5
- package/lib/esm/utils/children.js +1 -1
- package/lib/esm/utils/containUniqueFields.js +2 -3
- package/lib/esm/utils/convertFromMegaByteToByte.js +1 -1
- package/lib/esm/utils/formatImageSource.js +2 -3
- package/lib/esm/utils/getSpacingScale.js +2 -3
- package/lib/esm/utils/hasOwnProperty.js +1 -1
- package/lib/esm/utils/htmlAttrs.js +1 -1
- package/lib/esm/utils/info/info.js +6 -0
- package/lib/esm/utils/info/platform/platform.android.js +1 -1
- package/lib/esm/utils/info/platform/platform.ios.js +1 -1
- package/lib/esm/utils/info/platform/platform.js +10 -1
- package/lib/esm/utils/info/platform/platform.native.js +1 -1
- package/lib/esm/utils/info/versions.js +1 -1
- package/lib/esm/utils/isTouchDevice.js +2 -3
- package/lib/esm/utils/pressability.js +1 -1
- package/lib/esm/utils/props/a11yProps.js +2 -2
- package/lib/esm/utils/props/clickProps.js +1 -1
- package/lib/esm/utils/props/componentPropType.js +1 -1
- package/lib/esm/utils/props/contentfulProps.js +2 -2
- package/lib/esm/utils/props/copyPropTypes.js +1 -1
- package/lib/esm/utils/props/getPropSelector.js +2 -2
- package/lib/esm/utils/props/handlerProps.js +1 -1
- package/lib/esm/utils/props/hrefAttrsProp.js +1 -1
- package/lib/esm/utils/props/inputSupportsProps.js +2 -2
- package/lib/esm/utils/props/linkProps.js +4 -4
- package/lib/esm/utils/props/paddingProp.js +1 -1
- package/lib/esm/utils/props/pressProps.js +3 -3
- package/lib/esm/utils/props/rectProp.js +1 -1
- package/lib/esm/utils/props/responsiveProps.js +1 -1
- package/lib/esm/utils/props/selectSystemProps.js +1 -1
- package/lib/esm/utils/props/spacingProps.js +3 -3
- package/lib/esm/utils/props/textInputProps.js +2 -2
- package/lib/esm/utils/props/textProps.js +2 -2
- package/lib/esm/utils/props/variantProp.js +1 -1
- package/lib/esm/utils/props/viewProps.js +2 -2
- package/lib/esm/utils/resolveContentMaxWidth.js +2 -3
- package/lib/esm/utils/ssr-media-query/create-stylesheet/create-stylesheet-mobile.js +2 -3
- package/lib/esm/utils/ssr-media-query/create-stylesheet/index.android.js +1 -2
- package/lib/esm/utils/ssr-media-query/create-stylesheet/index.ios.js +1 -2
- package/lib/esm/utils/ssr-media-query/create-stylesheet/index.js +4 -5
- package/lib/esm/utils/ssr-media-query/hash.js +1 -1
- package/lib/esm/utils/ssr-media-query/ssr-media-query.js +7 -0
- package/lib/esm/utils/ssr-media-query/utils/create-declaration-block.js +3 -4
- package/lib/esm/utils/ssr-media-query/utils/create-media-query-styles.js +2 -3
- package/lib/esm/utils/ssr-media-query/utils/hyphenate-style-name.js +2 -3
- package/lib/esm/utils/ssr-media-query/utils/use-all-viewport-tokens.js +4 -5
- package/lib/esm/utils/ssr.js +0 -1
- package/lib/esm/utils/transformGradient.js +1 -4
- package/lib/esm/utils/useCopy.js +2 -3
- package/lib/esm/utils/useDetectOutsideClick.js +2 -3
- package/lib/esm/utils/useHash.js +2 -3
- package/lib/esm/utils/useHash.native.js +1 -2
- package/lib/esm/utils/useMediaQuerySpacing.js +3 -4
- package/lib/esm/utils/useOverlaidPosition.js +2 -3
- package/lib/esm/utils/useResponsiveProp.js +4 -5
- package/lib/esm/utils/useSafeLayoutEffect.js +2 -3
- package/lib/esm/utils/useScrollBlocking.js +2 -3
- package/lib/esm/utils/useScrollBlocking.native.js +1 -1
- package/lib/esm/utils/useSpacingScale.js +4 -5
- package/lib/esm/utils/useUniqueId.js +2 -3
- package/lib/esm/utils/useVariants.js +4 -4
- package/lib/esm/utils/withLinkRouter.js +3 -4
- package/lib/package.json +16 -19
- package/package.json +16 -19
- package/src/A11yInfoProvider/{index.jsx → A11yInfoProvider.jsx} +1 -3
- package/src/A11yText/{index.jsx → A11yText.jsx} +4 -4
- package/src/ActionCard/ActionCard.jsx +14 -17
- package/src/ActivityIndicator/{index.jsx → ActivityIndicator.jsx} +8 -9
- package/src/ActivityIndicator/Dots.jsx +2 -4
- package/src/ActivityIndicator/Dots.native.jsx +2 -4
- package/src/ActivityIndicator/FullScreenIndicator.jsx +4 -6
- package/src/ActivityIndicator/InlineIndicator.jsx +4 -6
- package/src/ActivityIndicator/OverlayIndicator.jsx +4 -6
- package/src/ActivityIndicator/RenderActivityIndicator.jsx +3 -5
- package/src/ActivityIndicator/Spinner.jsx +2 -4
- package/src/ActivityIndicator/Spinner.native.jsx +2 -4
- package/src/Autocomplete/Autocomplete.jsx +20 -24
- package/src/Autocomplete/Loading.jsx +5 -7
- package/src/Autocomplete/Suggestions.jsx +5 -7
- package/src/Autocomplete/dictionary.js +1 -1
- package/src/Badge/Badge.jsx +8 -6
- package/src/BaseProvider/{index.jsx → BaseProvider.jsx} +4 -6
- package/src/BaseProvider/HydrationContext.jsx +0 -2
- package/src/Box/Box.jsx +20 -28
- package/src/Box/backgroundImageStylesMap.js +1 -1
- package/src/Button/Button.jsx +9 -13
- package/src/Button/ButtonBase.jsx +21 -20
- package/src/Button/ButtonDropdown.jsx +11 -16
- package/src/Button/ButtonGroup.jsx +17 -21
- package/src/Button/ButtonLink.jsx +9 -8
- package/src/Button/propTypes.js +6 -9
- package/src/Card/Card.jsx +27 -23
- package/src/Card/CardBase.jsx +25 -10
- package/src/Card/PressableCardBase.jsx +27 -23
- package/src/Card/backgroundImageStylesMap.js +1 -1
- package/src/CardGroup/CardGroup.jsx +18 -22
- package/src/CardGroup/dictionary.js +1 -1
- package/src/Carousel/Carousel.jsx +33 -40
- package/src/Carousel/CarouselContext.jsx +3 -5
- package/src/Carousel/CarouselFirstFocus/CarouselFirstFocus.jsx +1 -3
- package/src/Carousel/CarouselItem/CarouselItem.jsx +10 -15
- package/src/Carousel/CarouselStepTracker/CarouselStepTracker.jsx +8 -9
- package/src/Carousel/CarouselTabs/CarouselTabsPanel.jsx +4 -6
- package/src/Carousel/CarouselTabs/CarouselTabsPanelItem.jsx +11 -14
- package/src/Carousel/CarouselThumbnail.jsx +66 -66
- package/src/Carousel/CarouselThumbnailNavigation.jsx +5 -7
- package/src/Carousel/dictionary.js +1 -1
- package/src/Checkbox/Checkbox.jsx +17 -24
- package/src/Checkbox/CheckboxButton.jsx +8 -12
- package/src/Checkbox/CheckboxGroup.jsx +15 -20
- package/src/Checkbox/CheckboxInput.jsx +1 -3
- package/src/Checkbox/CheckboxInput.native.jsx +1 -3
- package/src/CheckboxCard/CheckboxCard.jsx +15 -18
- package/src/CheckboxCardGroup/CheckboxCardGroup.jsx +15 -18
- package/src/ColourToggle/ColourBubble.jsx +21 -8
- package/src/ColourToggle/ColourToggle.jsx +17 -10
- package/src/Divider/Divider.jsx +47 -49
- package/src/DownloadApp/DownloadApp.jsx +13 -17
- package/src/DownloadApp/dictionary.js +1 -1
- package/src/ExpandCollapse/ExpandCollapse.jsx +12 -16
- package/src/ExpandCollapse/ExpandCollapseAccordion.jsx +11 -0
- package/src/ExpandCollapse/{Control.jsx → ExpandCollapseControl.jsx} +32 -9
- package/src/ExpandCollapse/{Panel.jsx → ExpandCollapsePanel.jsx} +18 -17
- package/src/ExpandCollapse/dictionary.js +1 -1
- package/src/ExpandCollapseMini/ExpandCollapseMini.jsx +34 -12
- package/src/ExpandCollapseMini/ExpandCollapseMiniControl.jsx +20 -8
- package/src/Feedback/Feedback.jsx +10 -13
- package/src/Fieldset/Fieldset.jsx +23 -13
- package/src/Fieldset/FieldsetContainer.jsx +5 -5
- package/src/Fieldset/FieldsetContainer.native.jsx +4 -4
- package/src/Fieldset/Legend.jsx +2 -4
- package/src/Fieldset/Legend.native.jsx +1 -3
- package/src/Fieldset/cssReset.js +1 -1
- package/src/FileUpload/FileUpload.jsx +19 -23
- package/src/FileUpload/NotificationContent.jsx +2 -4
- package/src/FileUpload/dictionary.js +1 -1
- package/src/FlexGrid/FlexGrid.jsx +15 -25
- package/src/FlexGrid/{Col/Col.jsx → FlexGridCol/FlexGridCol.jsx} +12 -12
- package/src/FlexGrid/{Row/Row.jsx → FlexGridRow/FlexGridRow.jsx} +8 -9
- package/src/FlexGrid/helpers/index.js +1 -3
- package/src/FlexGrid/providers/GutterContext.jsx +1 -3
- package/src/Footnote/Footnote.jsx +16 -12
- package/src/Footnote/FootnoteLink.jsx +10 -13
- package/src/Footnote/dictionary.js +1 -1
- package/src/HorizontalScroll/HorizontalScroll.jsx +21 -13
- package/src/HorizontalScroll/HorizontalScrollButton.jsx +9 -7
- package/src/HorizontalScroll/ScrollViewEnd.jsx +1 -3
- package/src/HorizontalScroll/ScrollViewEnd.native.jsx +1 -3
- package/src/HorizontalScroll/dictionary.js +1 -1
- package/src/Icon/Icon.jsx +4 -5
- package/src/Icon/IconText.jsx +4 -6
- package/src/IconButton/IconButton.jsx +20 -19
- package/src/InputLabel/InputLabel.jsx +12 -15
- package/src/InputLabel/LabelContent.jsx +1 -3
- package/src/InputLabel/LabelContent.native.jsx +1 -3
- package/src/InputSupports/InputSupports.jsx +10 -11
- package/src/InputSupports/dictionary.js +1 -1
- package/src/InputSupports/useInputSupports.js +4 -6
- package/src/Link/ChevronLink.jsx +6 -6
- package/src/Link/InlinePressable.jsx +1 -3
- package/src/Link/InlinePressable.native.jsx +1 -3
- package/src/Link/Link.jsx +51 -6
- package/src/Link/LinkBase.jsx +68 -42
- package/src/Link/MobileIconTextContent.jsx +127 -0
- package/src/Link/TextButton.jsx +4 -6
- package/src/List/List.jsx +7 -5
- package/src/List/ListItem.jsx +5 -6
- package/src/List/ListItemBase.jsx +10 -8
- package/src/List/ListItemContent.jsx +4 -5
- package/src/List/ListItemMark.jsx +3 -5
- package/src/List/PressableListItemBase.jsx +15 -18
- package/src/Listbox/GroupControl.jsx +5 -7
- package/src/Listbox/Listbox.jsx +9 -12
- package/src/Listbox/ListboxGroup.jsx +12 -12
- package/src/Listbox/ListboxItem.jsx +9 -7
- package/src/Listbox/ListboxOverlay.jsx +4 -4
- package/src/Listbox/PressableItem.jsx +4 -4
- package/src/Listbox/SecondLevelHeader.jsx +9 -9
- package/src/Listbox/dictionary.js +1 -1
- package/src/Modal/Modal.jsx +17 -20
- package/src/Modal/ModalContent.jsx +8 -10
- package/src/Modal/WebModal.jsx +5 -5
- package/src/Modal/dictionary.js +1 -1
- package/src/MultiSelectFilter/ModalOverlay.jsx +14 -19
- package/src/MultiSelectFilter/MultiSelectFilter.jsx +37 -48
- package/src/MultiSelectFilter/dictionary.js +1 -1
- package/src/Notification/Notification.jsx +17 -25
- package/src/Notification/dictionary.js +1 -1
- package/src/OrderedList/OrderedList.jsx +8 -9
- package/src/OrderedList/OrderedListBase.jsx +1 -7
- package/src/OrderedList/{Item.jsx → OrderedListItem.jsx} +17 -19
- package/src/OrderedList/{ItemBase.jsx → OrderedListItemBase.jsx} +3 -5
- package/src/Pagination/Pagination.jsx +20 -25
- package/src/Pagination/{PageButton.jsx → PaginationPageButton.jsx} +17 -18
- package/src/Pagination/SideButton.jsx +15 -11
- package/src/Pagination/dictionary.js +1 -1
- package/src/Pagination/usePagination.js +1 -3
- package/src/Portal/Portal.jsx +1 -3
- package/src/Portal/Portal.native.jsx +1 -3
- package/src/PriceLockup/PriceLockup.jsx +11 -10
- package/src/PriceLockup/utils/renderFootnoteContent.jsx +3 -5
- package/src/PriceLockup/utils/renderFootnoteLinks.jsx +2 -4
- package/src/PriceLockup/utils/renderPrice.jsx +4 -6
- package/src/PriceLockup/utils/renderTypography.jsx +2 -4
- package/src/ProductCard/ProductCard.jsx +18 -21
- package/src/ProductCard/dictionary.js +1 -1
- package/src/ProductCardGroup/ProductCardGroup.jsx +43 -41
- package/src/Progress/Progress.jsx +9 -6
- package/src/Progress/ProgressBar.jsx +10 -7
- package/src/Progress/ProgressBarBackground.jsx +2 -4
- package/src/Progress/ProgressContext.js +1 -3
- package/src/QuickLinks/QuickLinks.jsx +8 -9
- package/src/QuickLinks/QuickLinksCard.jsx +7 -8
- package/src/QuickLinks/QuickLinksItem.jsx +15 -10
- package/src/QuickLinksFeature/QuickLinksFeature.jsx +11 -9
- package/src/QuickLinksFeature/QuickLinksFeatureItem.jsx +18 -16
- package/src/Radio/Radio.jsx +15 -18
- package/src/Radio/RadioButton.jsx +9 -18
- package/src/Radio/RadioGroup.jsx +15 -20
- package/src/Radio/RadioInput.jsx +1 -3
- package/src/Radio/RadioInput.native.jsx +1 -3
- package/src/RadioCard/RadioCard.jsx +15 -18
- package/src/RadioCard/RadioCardGroup.jsx +15 -18
- package/src/Responsive/Responsive.jsx +23 -23
- package/src/Responsive/ResponsiveProp.jsx +2 -4
- package/src/Responsive/ResponsiveWithMediaQueryStyleSheet.jsx +3 -4
- package/src/Search/Search.jsx +17 -22
- package/src/Search/dictionary.js +1 -1
- package/src/Select/Picker.jsx +5 -5
- package/src/Select/Picker.native.jsx +5 -6
- package/src/Select/Select.jsx +16 -18
- package/src/Select/{Group.jsx → SelectGroup.jsx} +4 -6
- package/src/Select/{Group.native.jsx → SelectGroup.native.jsx} +3 -5
- package/src/Select/{Item.jsx → SelectItem.jsx} +3 -5
- package/src/Select/SelectItem.native.jsx +1 -0
- package/src/Shortcuts/Shortcuts.jsx +13 -18
- package/src/Shortcuts/ShortcutsItem.jsx +16 -18
- package/src/SideNav/SideNav.jsx +19 -26
- package/src/SideNav/{Item.jsx → SideNavItem.jsx} +17 -20
- package/src/SideNav/{ItemContent.jsx → SideNavItemContent.jsx} +5 -8
- package/src/SideNav/{ItemsGroup.jsx → SideNavItemsGroup.jsx} +21 -21
- package/src/Skeleton/Skeleton.jsx +15 -36
- package/src/Skeleton/skeletonWebAnimation.js +1 -3
- package/src/Skeleton/useSkeletonNativeAnimation.js +1 -3
- package/src/SkipLink/SkipLink.jsx +16 -15
- package/src/Spacer/Spacer.jsx +41 -41
- package/src/StackView/StackView.jsx +16 -19
- package/src/StackView/StackWrap.jsx +4 -6
- package/src/StackView/StackWrap.native.jsx +1 -3
- package/src/StackView/StackWrapBox.jsx +13 -18
- package/src/StackView/StackWrapGap.jsx +11 -15
- package/src/StackView/common.jsx +2 -1
- package/src/StackView/getStackedContent.jsx +4 -6
- package/src/Status/Status.jsx +33 -35
- package/src/StepTracker/Step.jsx +10 -7
- package/src/StepTracker/StepTracker.jsx +14 -10
- package/src/StepTracker/dictionary.js +1 -1
- package/src/TabBar/TabBar.jsx +29 -10
- package/src/TabBar/TabBarItem.jsx +7 -7
- package/src/Tabs/Tabs.jsx +19 -26
- package/src/Tabs/TabsDropdown.jsx +20 -22
- package/src/Tabs/TabsItem.jsx +18 -19
- package/src/Tabs/dictionary.js +1 -1
- package/src/Tags/Tags.jsx +17 -22
- package/src/TextInput/TextArea.jsx +13 -18
- package/src/TextInput/TextInput.jsx +12 -17
- package/src/TextInput/TextInputBase.jsx +18 -20
- package/src/TextInput/dictionary.js +1 -1
- package/src/TextInput/propTypes.js +1 -3
- package/src/ThemeProvider/ThemeProvider.jsx +27 -24
- package/src/ThemeProvider/useResponsiveThemeTokens.js +8 -5
- package/src/ThemeProvider/useResponsiveThemeTokensCallback.js +3 -5
- package/src/ThemeProvider/useSetTheme.js +1 -2
- package/src/ThemeProvider/useTheme.js +1 -2
- package/src/ThemeProvider/useThemeTokens.js +7 -2
- package/src/ThemeProvider/utils/styles.js +5 -1
- package/src/Timeline/Timeline.jsx +9 -14
- package/src/ToggleSwitch/ToggleSwitch.jsx +14 -18
- package/src/ToggleSwitch/ToggleSwitchGroup.jsx +15 -20
- package/src/Tooltip/Backdrop.jsx +1 -3
- package/src/Tooltip/Backdrop.native.jsx +1 -3
- package/src/Tooltip/Tooltip.jsx +11 -9
- package/src/Tooltip/Tooltip.native.jsx +14 -12
- package/src/Tooltip/dictionary.js +1 -1
- package/src/Tooltip/getTooltipPosition.js +1 -3
- package/src/Tooltip/shared.js +2 -4
- package/src/TooltipButton/TooltipButton.jsx +30 -25
- package/src/Typography/Typography.jsx +22 -22
- package/src/Validator/Validator.jsx +7 -8
- package/src/ViewportProvider/ViewportProvider.jsx +6 -5
- package/src/ViewportProvider/useViewportListener.js +2 -5
- package/src/index.js +189 -89
- package/src/server.js +2 -2
- package/src/utils/BaseView/BaseView.jsx +2 -4
- package/src/utils/BaseView/BaseView.native.jsx +1 -3
- package/src/utils/animation/useVerticalExpandAnimation.js +3 -5
- package/src/utils/children.jsx +1 -1
- package/src/utils/containUniqueFields.js +1 -3
- package/src/utils/convertFromMegaByteToByte.js +1 -1
- package/src/utils/formatImageSource.js +1 -3
- package/src/utils/getSpacingScale.js +1 -3
- package/src/utils/hasOwnProperty.js +1 -1
- package/src/utils/htmlAttrs.js +1 -1
- package/src/utils/info/info.js +7 -0
- package/src/utils/info/platform/platform.android.js +1 -1
- package/src/utils/info/platform/platform.ios.js +1 -1
- package/src/utils/info/platform/platform.js +10 -1
- package/src/utils/info/platform/platform.native.js +1 -1
- package/src/utils/info/versions.js +1 -1
- package/src/utils/isTouchDevice.js +1 -3
- package/src/utils/pressability.js +1 -1
- package/src/utils/props/a11yProps.js +2 -2
- package/src/utils/props/clickProps.js +1 -1
- package/src/utils/props/componentPropType.js +1 -1
- package/src/utils/props/contentfulProps.js +2 -2
- package/src/utils/props/copyPropTypes.js +1 -1
- package/src/utils/props/getPropSelector.js +2 -2
- package/src/utils/props/handlerProps.js +1 -1
- package/src/utils/props/hrefAttrsProp.js +1 -1
- package/src/utils/props/inputSupportsProps.js +2 -2
- package/src/utils/props/linkProps.js +4 -4
- package/src/utils/props/paddingProp.js +1 -1
- package/src/utils/props/pressProps.js +3 -3
- package/src/utils/props/rectProp.js +1 -1
- package/src/utils/props/responsiveProps.js +1 -1
- package/src/utils/props/selectSystemProps.js +1 -1
- package/src/utils/props/spacingProps.js +3 -3
- package/src/utils/props/textInputProps.js +2 -2
- package/src/utils/props/textProps.js +2 -2
- package/src/utils/props/variantProp.js +1 -1
- package/src/utils/props/viewProps.js +2 -2
- package/src/utils/resolveContentMaxWidth.js +1 -3
- package/src/utils/ssr-media-query/create-stylesheet/create-stylesheet-mobile.js +1 -3
- package/src/utils/ssr-media-query/create-stylesheet/index.android.js +1 -3
- package/src/utils/ssr-media-query/create-stylesheet/index.ios.js +1 -3
- package/src/utils/ssr-media-query/create-stylesheet/index.js +3 -5
- package/src/utils/ssr-media-query/hash.js +1 -1
- package/src/utils/ssr-media-query/ssr-media-query.js +9 -0
- package/src/utils/ssr-media-query/utils/create-declaration-block.js +2 -4
- package/src/utils/ssr-media-query/utils/create-media-query-styles.js +1 -3
- package/src/utils/ssr-media-query/utils/hyphenate-style-name.js +1 -3
- package/src/utils/ssr-media-query/utils/use-all-viewport-tokens.js +3 -5
- package/src/utils/ssr.jsx +0 -2
- package/src/utils/transformGradient.js +0 -2
- package/src/utils/useCopy.js +1 -3
- package/src/utils/useDetectOutsideClick.js +1 -3
- package/src/utils/useHash.js +1 -2
- package/src/utils/useHash.native.js +1 -2
- package/src/utils/useMediaQuerySpacing.js +7 -4
- package/src/utils/useOverlaidPosition.js +1 -3
- package/src/utils/useResponsiveProp.js +3 -5
- package/src/utils/useSafeLayoutEffect.js +1 -3
- package/src/utils/useScrollBlocking.js +1 -3
- package/src/utils/useScrollBlocking.native.js +1 -1
- package/src/utils/useSpacingScale.js +3 -5
- package/src/utils/useUniqueId.js +1 -3
- package/src/utils/useVariants.js +3 -4
- package/src/utils/withLinkRouter.jsx +2 -4
- package/types/Checkbox.d.ts +19 -20
- package/types/FileUpload.d.ts +1 -1
- package/types/Shortcuts.d.ts +0 -1
- package/types/Status.d.ts +1 -1
- package/lib/cjs/ActionCard/index.js +0 -9
- package/lib/cjs/Autocomplete/index.js +0 -9
- package/lib/cjs/Badge/index.js +0 -9
- package/lib/cjs/Box/index.js +0 -9
- package/lib/cjs/Button/index.js +0 -34
- package/lib/cjs/Card/index.js +0 -32
- package/lib/cjs/CardGroup/index.js +0 -9
- package/lib/cjs/Carousel/CarouselItem/index.js +0 -9
- package/lib/cjs/Carousel/CarouselStepTracker/index.js +0 -9
- package/lib/cjs/Carousel/CarouselTabs/CarouselTabs.js +0 -54
- package/lib/cjs/Carousel/CarouselTabs/index.js +0 -9
- package/lib/cjs/Carousel/index.js +0 -44
- package/lib/cjs/Checkbox/index.js +0 -16
- package/lib/cjs/CheckboxCard/index.js +0 -9
- package/lib/cjs/CheckboxCardGroup/index.js +0 -9
- package/lib/cjs/ColourToggle/index.js +0 -9
- package/lib/cjs/Divider/index.js +0 -9
- package/lib/cjs/DownloadApp/index.js +0 -9
- package/lib/cjs/ExpandCollapse/Accordion.js +0 -20
- package/lib/cjs/ExpandCollapse/index.js +0 -19
- package/lib/cjs/ExpandCollapseMini/index.js +0 -9
- package/lib/cjs/Feedback/index.js +0 -9
- package/lib/cjs/Fieldset/index.js +0 -9
- package/lib/cjs/FileUpload/index.js +0 -9
- package/lib/cjs/FlexGrid/Col/index.js +0 -9
- package/lib/cjs/FlexGrid/Row/index.js +0 -9
- package/lib/cjs/FlexGrid/index.js +0 -23
- package/lib/cjs/Footnote/index.js +0 -11
- package/lib/cjs/HorizontalScroll/index.js +0 -26
- package/lib/cjs/Icon/index.js +0 -24
- package/lib/cjs/IconButton/index.js +0 -9
- package/lib/cjs/InputLabel/index.js +0 -9
- package/lib/cjs/InputSupports/index.js +0 -9
- package/lib/cjs/Link/index.js +0 -34
- package/lib/cjs/List/index.js +0 -23
- package/lib/cjs/Listbox/index.js +0 -9
- package/lib/cjs/Modal/index.js +0 -9
- package/lib/cjs/MultiSelectFilter/index.js +0 -9
- package/lib/cjs/Notification/index.js +0 -9
- package/lib/cjs/OrderedList/index.js +0 -16
- package/lib/cjs/Pagination/PageButton.js +0 -82
- package/lib/cjs/Pagination/index.js +0 -9
- package/lib/cjs/Portal/index.js +0 -9
- package/lib/cjs/PriceLockup/index.js +0 -9
- package/lib/cjs/ProductCard/index.js +0 -9
- package/lib/cjs/ProductCardGroup/index.js +0 -9
- package/lib/cjs/Progress/index.js +0 -11
- package/lib/cjs/QuickLinks/index.js +0 -11
- package/lib/cjs/QuickLinksFeature/index.js +0 -11
- package/lib/cjs/Radio/index.js +0 -16
- package/lib/cjs/RadioCard/index.js +0 -16
- package/lib/cjs/Responsive/index.js +0 -9
- package/lib/cjs/Search/index.js +0 -9
- package/lib/cjs/Select/Item.native.js +0 -8
- package/lib/cjs/Select/index.js +0 -13
- package/lib/cjs/Shortcuts/index.js +0 -16
- package/lib/cjs/SideNav/index.js +0 -13
- package/lib/cjs/Skeleton/index.js +0 -9
- package/lib/cjs/SkipLink/index.js +0 -9
- package/lib/cjs/Spacer/index.js +0 -9
- package/lib/cjs/StackView/index.js +0 -23
- package/lib/cjs/Status/index.js +0 -9
- package/lib/cjs/StepTracker/index.js +0 -9
- package/lib/cjs/TabBar/index.js +0 -11
- package/lib/cjs/Tabs/index.js +0 -9
- package/lib/cjs/Tags/index.js +0 -9
- package/lib/cjs/TextInput/index.js +0 -20
- package/lib/cjs/ThemeProvider/index.js +0 -67
- package/lib/cjs/ThemeProvider/utils/index.js +0 -27
- package/lib/cjs/Timeline/index.js +0 -9
- package/lib/cjs/ToggleSwitch/index.js +0 -20
- package/lib/cjs/Tooltip/index.js +0 -12
- package/lib/cjs/TooltipButton/index.js +0 -9
- package/lib/cjs/Typography/index.js +0 -9
- package/lib/cjs/Validator/index.js +0 -9
- package/lib/cjs/ViewportProvider/index.js +0 -22
- package/lib/cjs/utils/BaseView/index.js +0 -9
- package/lib/cjs/utils/a11y/index.js +0 -27
- package/lib/cjs/utils/animation/index.js +0 -13
- package/lib/cjs/utils/index.js +0 -285
- package/lib/cjs/utils/info/index.js +0 -14
- package/lib/cjs/utils/info/platform/index.js +0 -18
- package/lib/cjs/utils/props/index.js +0 -176
- package/lib/cjs/utils/ssr-media-query/index.js +0 -25
- package/lib/esm/ActionCard/index.js +0 -2
- package/lib/esm/Autocomplete/index.js +0 -2
- package/lib/esm/Badge/index.js +0 -2
- package/lib/esm/Box/index.js +0 -2
- package/lib/esm/Button/index.js +0 -5
- package/lib/esm/Card/index.js +0 -4
- package/lib/esm/CardGroup/index.js +0 -2
- package/lib/esm/Carousel/CarouselItem/index.js +0 -2
- package/lib/esm/Carousel/CarouselStepTracker/index.js +0 -2
- package/lib/esm/Carousel/CarouselTabs/CarouselTabs.js +0 -49
- package/lib/esm/Carousel/CarouselTabs/index.js +0 -2
- package/lib/esm/Carousel/index.js +0 -4
- package/lib/esm/Checkbox/index.js +0 -3
- package/lib/esm/CheckboxCard/index.js +0 -2
- package/lib/esm/CheckboxCardGroup/index.js +0 -2
- package/lib/esm/ColourToggle/index.js +0 -2
- package/lib/esm/Divider/index.js +0 -2
- package/lib/esm/DownloadApp/index.js +0 -2
- package/lib/esm/ExpandCollapse/Accordion.js +0 -15
- package/lib/esm/ExpandCollapse/index.js +0 -7
- package/lib/esm/ExpandCollapseMini/index.js +0 -2
- package/lib/esm/Feedback/index.js +0 -2
- package/lib/esm/Fieldset/index.js +0 -2
- package/lib/esm/FileUpload/index.js +0 -2
- package/lib/esm/FlexGrid/Col/index.js +0 -2
- package/lib/esm/FlexGrid/Row/index.js +0 -2
- package/lib/esm/FlexGrid/index.js +0 -4
- package/lib/esm/Footnote/index.js +0 -4
- package/lib/esm/HorizontalScroll/index.js +0 -11
- package/lib/esm/Icon/index.js +0 -4
- package/lib/esm/IconButton/index.js +0 -2
- package/lib/esm/InputLabel/index.js +0 -2
- package/lib/esm/InputSupports/index.js +0 -2
- package/lib/esm/Link/index.js +0 -5
- package/lib/esm/List/index.js +0 -5
- package/lib/esm/Listbox/index.js +0 -2
- package/lib/esm/Modal/index.js +0 -2
- package/lib/esm/MultiSelectFilter/index.js +0 -2
- package/lib/esm/Notification/index.js +0 -2
- package/lib/esm/OrderedList/index.js +0 -3
- package/lib/esm/Pagination/index.js +0 -2
- package/lib/esm/Portal/index.js +0 -2
- package/lib/esm/PriceLockup/index.js +0 -2
- package/lib/esm/ProductCard/index.js +0 -2
- package/lib/esm/ProductCardGroup/index.js +0 -2
- package/lib/esm/Progress/index.js +0 -4
- package/lib/esm/QuickLinks/index.js +0 -4
- package/lib/esm/QuickLinksFeature/index.js +0 -4
- package/lib/esm/Radio/index.js +0 -3
- package/lib/esm/RadioCard/index.js +0 -3
- package/lib/esm/Responsive/index.js +0 -2
- package/lib/esm/Search/index.js +0 -2
- package/lib/esm/Select/Item.native.js +0 -2
- package/lib/esm/Select/index.js +0 -6
- package/lib/esm/Shortcuts/index.js +0 -3
- package/lib/esm/SideNav/index.js +0 -1
- package/lib/esm/Skeleton/index.js +0 -2
- package/lib/esm/SkipLink/index.js +0 -2
- package/lib/esm/Spacer/index.js +0 -2
- package/lib/esm/StackView/index.js +0 -5
- package/lib/esm/Status/index.js +0 -2
- package/lib/esm/StepTracker/index.js +0 -2
- package/lib/esm/TabBar/index.js +0 -4
- package/lib/esm/Tabs/index.js +0 -2
- package/lib/esm/Tags/index.js +0 -2
- package/lib/esm/TextInput/index.js +0 -3
- package/lib/esm/ThemeProvider/index.js +0 -8
- package/lib/esm/ThemeProvider/utils/index.js +0 -2
- package/lib/esm/Timeline/index.js +0 -2
- package/lib/esm/ToggleSwitch/index.js +0 -3
- package/lib/esm/Tooltip/index.js +0 -5
- package/lib/esm/TooltipButton/index.js +0 -2
- package/lib/esm/Typography/index.js +0 -2
- package/lib/esm/Validator/index.js +0 -2
- package/lib/esm/ViewportProvider/index.js +0 -3
- package/lib/esm/utils/BaseView/index.js +0 -2
- package/lib/esm/utils/a11y/index.js +0 -2
- package/lib/esm/utils/animation/index.js +0 -2
- package/lib/esm/utils/index.js +0 -30
- package/lib/esm/utils/info/index.js +0 -8
- package/lib/esm/utils/info/platform/index.js +0 -14
- package/lib/esm/utils/props/index.js +0 -20
- package/lib/esm/utils/ssr-media-query/index.js +0 -7
- package/src/ActionCard/index.js +0 -3
- package/src/Autocomplete/index.js +0 -3
- package/src/Badge/index.js +0 -3
- package/src/Box/index.js +0 -3
- package/src/Button/index.js +0 -6
- package/src/Card/index.js +0 -6
- package/src/CardGroup/index.js +0 -3
- package/src/Carousel/CarouselItem/index.js +0 -3
- package/src/Carousel/CarouselStepTracker/index.js +0 -3
- package/src/Carousel/CarouselTabs/CarouselTabs.jsx +0 -39
- package/src/Carousel/CarouselTabs/index.js +0 -3
- package/src/Carousel/index.js +0 -4
- package/src/Checkbox/index.js +0 -5
- package/src/CheckboxCard/index.js +0 -3
- package/src/CheckboxCardGroup/index.js +0 -3
- package/src/ColourToggle/index.js +0 -3
- package/src/Divider/index.js +0 -3
- package/src/DownloadApp/index.js +0 -3
- package/src/ExpandCollapse/Accordion.jsx +0 -13
- package/src/ExpandCollapse/index.js +0 -8
- package/src/ExpandCollapseMini/index.js +0 -3
- package/src/Feedback/index.js +0 -3
- package/src/Fieldset/index.js +0 -3
- package/src/FileUpload/index.js +0 -3
- package/src/FlexGrid/Col/index.js +0 -3
- package/src/FlexGrid/Row/index.js +0 -3
- package/src/FlexGrid/index.js +0 -6
- package/src/Footnote/index.js +0 -6
- package/src/HorizontalScroll/index.js +0 -17
- package/src/Icon/index.js +0 -5
- package/src/IconButton/index.js +0 -3
- package/src/InputLabel/index.js +0 -3
- package/src/InputSupports/index.js +0 -3
- package/src/Link/index.js +0 -6
- package/src/List/index.js +0 -8
- package/src/Listbox/index.js +0 -3
- package/src/Modal/index.js +0 -3
- package/src/MultiSelectFilter/index.js +0 -3
- package/src/Notification/index.js +0 -3
- package/src/OrderedList/index.js +0 -4
- package/src/Pagination/index.js +0 -3
- package/src/Portal/index.js +0 -3
- package/src/PriceLockup/index.js +0 -3
- package/src/ProductCard/index.js +0 -3
- package/src/ProductCardGroup/index.js +0 -3
- package/src/Progress/index.js +0 -6
- package/src/QuickLinks/index.js +0 -6
- package/src/QuickLinksFeature/index.js +0 -6
- package/src/Radio/index.js +0 -5
- package/src/RadioCard/index.js +0 -5
- package/src/Responsive/index.js +0 -3
- package/src/Search/index.js +0 -3
- package/src/Select/Item.native.jsx +0 -3
- package/src/Select/index.js +0 -8
- package/src/Shortcuts/index.js +0 -4
- package/src/SideNav/index.js +0 -1
- package/src/Skeleton/index.js +0 -3
- package/src/SkipLink/index.js +0 -3
- package/src/Spacer/index.js +0 -3
- package/src/StackView/index.js +0 -6
- package/src/Status/index.js +0 -3
- package/src/StepTracker/index.js +0 -3
- package/src/TabBar/index.js +0 -6
- package/src/Tabs/index.js +0 -3
- package/src/Tags/index.js +0 -3
- package/src/TextInput/index.js +0 -4
- package/src/ThemeProvider/index.js +0 -11
- package/src/ThemeProvider/utils/index.js +0 -2
- package/src/Timeline/index.js +0 -3
- package/src/ToggleSwitch/index.js +0 -4
- package/src/Tooltip/index.js +0 -7
- package/src/TooltipButton/index.js +0 -3
- package/src/Typography/index.js +0 -3
- package/src/Validator/index.js +0 -3
- package/src/ViewportProvider/index.jsx +0 -4
- package/src/utils/BaseView/index.js +0 -3
- package/src/utils/a11y/index.js +0 -2
- package/src/utils/animation/index.js +0 -2
- package/src/utils/index.js +0 -30
- package/src/utils/info/index.js +0 -8
- package/src/utils/info/platform/index.js +0 -11
- package/src/utils/props/index.js +0 -20
- package/src/utils/ssr-media-query/index.js +0 -9
|
@@ -3,17 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SideNavItem = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Pressable = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Pressable"));
|
|
9
9
|
var _Platform = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Platform"));
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
11
|
+
var _a11yProps = require("../utils/props/a11yProps");
|
|
12
|
+
var _tokens = require("../utils/props/tokens");
|
|
13
|
+
var _hrefAttrsProp = require("../utils/props/hrefAttrsProp");
|
|
14
|
+
var _linkProps = require("../utils/props/linkProps");
|
|
15
|
+
var _selectSystemProps = require("../utils/props/selectSystemProps");
|
|
16
|
+
var _variantProp = require("../utils/props/variantProp");
|
|
17
|
+
var _viewProps = require("../utils/props/viewProps");
|
|
18
|
+
var _useThemeTokens = require("../ThemeProvider/useThemeTokens");
|
|
19
|
+
var _styles = require("../ThemeProvider/utils/styles");
|
|
20
|
+
var _SideNavItemContent = require("./SideNavItemContent");
|
|
14
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
22
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
-
const [selectProps, selectedSystemPropTypes] = (0,
|
|
23
|
+
const [selectProps, selectedSystemPropTypes] = (0, _selectSystemProps.selectSystemProps)([_a11yProps.a11yProps, _linkProps.linkProps, _viewProps.viewProps]);
|
|
17
24
|
function selectItemStyles(_ref) {
|
|
18
25
|
let {
|
|
19
26
|
backgroundColor,
|
|
@@ -37,16 +44,16 @@ function selectItemStyles(_ref) {
|
|
|
37
44
|
paddingTop,
|
|
38
45
|
paddingBottom,
|
|
39
46
|
justifyContent,
|
|
40
|
-
...(0,
|
|
47
|
+
...(0, _styles.verticalAlignRow)(verticalAlign)
|
|
41
48
|
};
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
/**
|
|
45
|
-
`
|
|
52
|
+
`SideNavItem` is a navigational element that is used within `SideNav` or `SideNavItemsGroup`.
|
|
46
53
|
|
|
47
|
-
This component can only be accessed as a name-spaced component: `
|
|
54
|
+
This component can only be accessed as a name-spaced component: `SideNavItem`.
|
|
48
55
|
*/
|
|
49
|
-
const
|
|
56
|
+
const SideNavItem = exports.SideNavItem = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
50
57
|
let {
|
|
51
58
|
children,
|
|
52
59
|
itemId,
|
|
@@ -65,7 +72,7 @@ const Item = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
|
65
72
|
const {
|
|
66
73
|
hrefAttrs,
|
|
67
74
|
rest
|
|
68
|
-
} =
|
|
75
|
+
} = _hrefAttrsProp.hrefAttrsProp.bundle(props);
|
|
69
76
|
const selectedProps = selectProps({
|
|
70
77
|
accessibilityRole,
|
|
71
78
|
href,
|
|
@@ -73,7 +80,7 @@ const Item = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
|
73
80
|
hrefAttrs,
|
|
74
81
|
...rest
|
|
75
82
|
});
|
|
76
|
-
const getTokens = (0,
|
|
83
|
+
const getTokens = (0, _useThemeTokens.useThemeTokensCallback)('SideNavItem', tokens, variant);
|
|
77
84
|
const getAppearanceState = _ref3 => {
|
|
78
85
|
let {
|
|
79
86
|
hovered,
|
|
@@ -101,15 +108,15 @@ const Item = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
|
101
108
|
...selectedProps,
|
|
102
109
|
children: pressableState => {
|
|
103
110
|
const themeTokens = getTokens(getAppearanceState(pressableState));
|
|
104
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
111
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SideNavItemContent.SideNavItemContent, {
|
|
105
112
|
tokens: themeTokens,
|
|
106
113
|
children: children
|
|
107
114
|
});
|
|
108
115
|
}
|
|
109
116
|
});
|
|
110
117
|
});
|
|
111
|
-
|
|
112
|
-
|
|
118
|
+
SideNavItem.displayName = 'SideNavItem';
|
|
119
|
+
SideNavItem.propTypes = {
|
|
113
120
|
...selectedSystemPropTypes,
|
|
114
121
|
/**
|
|
115
122
|
* Text content of the `Item`.
|
|
@@ -131,7 +138,7 @@ Item.propTypes = {
|
|
|
131
138
|
* On Web if href is passed, React Native Web maps this object's props to
|
|
132
139
|
* `rel`, `target` and `download` attrs.
|
|
133
140
|
*/
|
|
134
|
-
hrefAttrs: _propTypes.default.shape(
|
|
141
|
+
hrefAttrs: _propTypes.default.shape(_hrefAttrsProp.hrefAttrsProp.types),
|
|
135
142
|
/**
|
|
136
143
|
* @ignore
|
|
137
144
|
* Set internally in `SideNav` render function.
|
|
@@ -139,12 +146,11 @@ Item.propTypes = {
|
|
|
139
146
|
isActive: _propTypes.default.bool,
|
|
140
147
|
/**
|
|
141
148
|
* @ignore
|
|
142
|
-
* Set internally in `
|
|
149
|
+
* Set internally in `SideNavItemsGroup` render function. Used to mark expanded `ItemsGroup` parent.
|
|
143
150
|
*/
|
|
144
151
|
isExpanded: _propTypes.default.bool,
|
|
145
152
|
accessibilityRole: _propTypes.default.string,
|
|
146
153
|
testID: _propTypes.default.number,
|
|
147
|
-
tokens: (0,
|
|
148
|
-
variant:
|
|
149
|
-
};
|
|
150
|
-
var _default = exports.default = Item;
|
|
154
|
+
tokens: (0, _tokens.getTokensPropType)('SideNavItem'),
|
|
155
|
+
variant: _variantProp.variantProp.propType
|
|
156
|
+
};
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SideNavItemContent = void 0;
|
|
7
7
|
exports.selectAccentStyles = selectAccentStyles;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
10
|
var _View = _interopRequireDefault(require("react-native-web/dist/cjs/exports/View"));
|
|
11
11
|
var _StyleSheet = _interopRequireDefault(require("react-native-web/dist/cjs/exports/StyleSheet"));
|
|
12
|
-
var _Typography =
|
|
13
|
-
var
|
|
12
|
+
var _Typography = require("../Typography/Typography");
|
|
13
|
+
var _tokens = require("../utils/props/tokens");
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
function selectAccentStyles(tokens) {
|
|
@@ -27,14 +27,14 @@ function selectAccentStyles(tokens) {
|
|
|
27
27
|
/**
|
|
28
28
|
* Content inside an item or control in a SideNav, themed by the SideNavItem theme
|
|
29
29
|
*/
|
|
30
|
-
const
|
|
30
|
+
const SideNavItemContent = exports.SideNavItemContent = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
31
31
|
let {
|
|
32
32
|
children,
|
|
33
33
|
tokens
|
|
34
34
|
} = _ref;
|
|
35
|
-
const typographyTokens = (0,
|
|
35
|
+
const typographyTokens = (0, _tokens.selectTokens)('Typography', tokens);
|
|
36
36
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
37
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.
|
|
37
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.Typography, {
|
|
38
38
|
tokens: typographyTokens,
|
|
39
39
|
ref: ref,
|
|
40
40
|
children: children
|
|
@@ -43,14 +43,13 @@ const ItemContent = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
43
43
|
})]
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
tokens: (0,
|
|
46
|
+
SideNavItemContent.displayName = 'SideNavItemContent';
|
|
47
|
+
SideNavItemContent.propTypes = {
|
|
48
|
+
tokens: (0, _tokens.getTokensPropType)('SideNavItem'),
|
|
49
49
|
children: _propTypes.default.node
|
|
50
50
|
};
|
|
51
51
|
const staticStyles = _StyleSheet.default.create({
|
|
52
52
|
absolute: {
|
|
53
53
|
position: 'absolute'
|
|
54
54
|
}
|
|
55
|
-
});
|
|
56
|
-
var _default = exports.default = ItemContent;
|
|
55
|
+
});
|
|
@@ -3,13 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SideNavItemsGroup = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
9
|
+
var _SideNavItemContent = require("./SideNavItemContent");
|
|
10
|
+
var _ExpandCollapsePanel = require("../ExpandCollapse/ExpandCollapsePanel");
|
|
11
|
+
var _tokens = require("../utils/props/tokens");
|
|
12
|
+
var _variantProp = require("../utils/props/variantProp");
|
|
13
|
+
var _componentPropType = require("../utils/props/componentPropType");
|
|
14
|
+
var _useThemeTokens = require("../ThemeProvider/useThemeTokens");
|
|
13
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
17
|
const selectPanelTokens = _ref => {
|
|
@@ -28,14 +30,14 @@ const selectPanelTokens = _ref => {
|
|
|
28
30
|
/**
|
|
29
31
|
Expandable content areas for use within `SideNav`.
|
|
30
32
|
|
|
31
|
-
This component can only be accessed as a name-spaced component: `
|
|
33
|
+
This component can only be accessed as a name-spaced component: `SideNavItemsGroup`.
|
|
32
34
|
|
|
33
|
-
`
|
|
35
|
+
`SideNavItemsGroup` contains a label and a list of items. Items can link to in-page elements or route to other pages.
|
|
34
36
|
|
|
35
37
|
## Usage Criteria
|
|
36
|
-
- Use `
|
|
38
|
+
- Use `SideNavItemsGroup` with large pages that have multiple sections
|
|
37
39
|
*/
|
|
38
|
-
const
|
|
40
|
+
const SideNavItemsGroup = exports.SideNavItemsGroup = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
39
41
|
let {
|
|
40
42
|
children,
|
|
41
43
|
label,
|
|
@@ -58,15 +60,15 @@ const ItemsGroup = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
|
58
60
|
...getAppearance(appearance),
|
|
59
61
|
type: 'parent'
|
|
60
62
|
});
|
|
61
|
-
const getGroupTokens = (0,
|
|
62
|
-
const getItemTokens = (0,
|
|
63
|
-
const getPanelTokens = appearance => (0,
|
|
63
|
+
const getGroupTokens = (0, _useThemeTokens.useThemeTokensCallback)('SideNavItemsGroup', tokens, variant);
|
|
64
|
+
const getItemTokens = (0, _useThemeTokens.useThemeTokensCallback)('SideNavItem', itemTokens, variant);
|
|
65
|
+
const getPanelTokens = appearance => (0, _tokens.selectTokens)('ExpandCollapsePanel', {
|
|
64
66
|
...staticTokens.panel,
|
|
65
67
|
...getGroupTokens(getAppearance(appearance)),
|
|
66
68
|
...selectPanelTokens(getItemTokens(getItemAppearance(appearance)))
|
|
67
69
|
});
|
|
68
70
|
const getControlTokens = appearance => ({
|
|
69
|
-
...(0,
|
|
71
|
+
...(0, _tokens.selectTokens)('ExpandCollapseControl', {
|
|
70
72
|
...getItemTokens(getItemAppearance(appearance)),
|
|
71
73
|
// main style from SideNavItem
|
|
72
74
|
...getGroupTokens(getAppearance(appearance)) // control-specific tokens like icon etc,
|
|
@@ -75,7 +77,7 @@ const ItemsGroup = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
|
75
77
|
});
|
|
76
78
|
const controlContent = controlState => {
|
|
77
79
|
const currentItemTokens = getItemTokens(getItemAppearance(controlState));
|
|
78
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
80
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SideNavItemContent.SideNavItemContent, {
|
|
79
81
|
tokens: {
|
|
80
82
|
...currentItemTokens,
|
|
81
83
|
...staticTokens.content
|
|
@@ -83,7 +85,7 @@ const ItemsGroup = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
|
83
85
|
children: label
|
|
84
86
|
});
|
|
85
87
|
};
|
|
86
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
88
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ExpandCollapsePanel.ExpandCollapsePanel, {
|
|
87
89
|
ref: ref,
|
|
88
90
|
openIds: openGroups,
|
|
89
91
|
panelId: groupId,
|
|
@@ -93,7 +95,7 @@ const ItemsGroup = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
|
93
95
|
control: controlContent,
|
|
94
96
|
accessibilityState: {
|
|
95
97
|
active: isActive
|
|
96
|
-
} //
|
|
98
|
+
} // ExpandCollapsePanel handles expanded state
|
|
97
99
|
,
|
|
98
100
|
disableMobileScrollBuffer: true,
|
|
99
101
|
children: children
|
|
@@ -112,14 +114,14 @@ const staticTokens = {
|
|
|
112
114
|
accentWidth: 0
|
|
113
115
|
}
|
|
114
116
|
};
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
SideNavItemsGroup.displayName = 'SideNavItemsGroup';
|
|
118
|
+
SideNavItemsGroup.propTypes = {
|
|
117
119
|
/**
|
|
118
|
-
* Specifies the links contained within. It may only contain `
|
|
120
|
+
* Specifies the links contained within. It may only contain `SideNavItem`.
|
|
119
121
|
*/
|
|
120
|
-
children: (0,
|
|
122
|
+
children: (0, _componentPropType.componentPropType)('Item'),
|
|
121
123
|
/**
|
|
122
|
-
* Text content of the group's parent `
|
|
124
|
+
* Text content of the group's parent `SideNavItem`.
|
|
123
125
|
*/
|
|
124
126
|
label: _propTypes.default.string.isRequired,
|
|
125
127
|
/**
|
|
@@ -139,14 +141,13 @@ ItemsGroup.propTypes = {
|
|
|
139
141
|
openGroups: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number])),
|
|
140
142
|
/**
|
|
141
143
|
* @ignore
|
|
142
|
-
* Set internally in `SideNav` render function. Used to mark group containing the currently active `
|
|
144
|
+
* Set internally in `SideNav` render function. Used to mark group containing the currently active `SideNavItem`.
|
|
143
145
|
*/
|
|
144
146
|
isActive: _propTypes.default.bool,
|
|
145
|
-
variant:
|
|
146
|
-
tokens: (0,
|
|
147
|
+
variant: _variantProp.variantProp.propType,
|
|
148
|
+
tokens: (0, _tokens.getTokensPropType)('SideNavItemsGroup'),
|
|
147
149
|
/**
|
|
148
|
-
* Custom tokens for `
|
|
150
|
+
* Custom tokens for `SideNavItem`
|
|
149
151
|
*/
|
|
150
|
-
itemTokens: (0,
|
|
151
|
-
};
|
|
152
|
-
var _default = exports.default = ItemsGroup;
|
|
152
|
+
itemTokens: (0, _tokens.getTokensPropType)('SideNavItem')
|
|
153
|
+
};
|
|
@@ -3,21 +3,29 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Skeleton = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Animated = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Animated"));
|
|
9
9
|
var _Platform = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Platform"));
|
|
10
10
|
var _StyleSheet = _interopRequireDefault(require("react-native-web/dist/cjs/exports/StyleSheet"));
|
|
11
11
|
var _View = _interopRequireDefault(require("react-native-web/dist/cjs/exports/View"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
var _StackView =
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
13
|
+
var _StackView = require("../StackView/StackView");
|
|
14
|
+
var _useThemeTokens = require("../ThemeProvider/useThemeTokens");
|
|
15
|
+
var _a11yProps = require("../utils/props/a11yProps");
|
|
16
|
+
var _tokens = require("../utils/props/tokens");
|
|
17
|
+
var _selectSystemProps = require("../utils/props/selectSystemProps");
|
|
18
|
+
var _responsiveProps = require("../utils/props/responsiveProps");
|
|
19
|
+
var _useResponsiveProp = require("../utils/useResponsiveProp");
|
|
20
|
+
var _useSpacingScale = require("../utils/useSpacingScale");
|
|
21
|
+
var _spacingProps = require("../utils/props/spacingProps");
|
|
22
|
+
var _variantProp = require("../utils/props/variantProp");
|
|
23
|
+
var _viewProps = require("../utils/props/viewProps");
|
|
24
|
+
var _useSkeletonNativeAnimation = require("./useSkeletonNativeAnimation");
|
|
25
|
+
var _skeletonWebAnimation = require("./skeletonWebAnimation");
|
|
18
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
27
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
|
-
const [selectProps, selectedSystemPropTypes] = (0,
|
|
28
|
+
const [selectProps, selectedSystemPropTypes] = (0, _selectSystemProps.selectSystemProps)([_a11yProps.a11yProps, _viewProps.viewProps]);
|
|
21
29
|
const selectSkeletonStyles = _ref => {
|
|
22
30
|
let {
|
|
23
31
|
color,
|
|
@@ -58,20 +66,19 @@ const selectSquareStyles = _ref4 => {
|
|
|
58
66
|
borderRadius: radius
|
|
59
67
|
};
|
|
60
68
|
};
|
|
61
|
-
const Skeleton = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
69
|
+
const Skeleton = exports.Skeleton = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
62
70
|
let {
|
|
63
71
|
tokens,
|
|
64
72
|
variant,
|
|
65
|
-
|
|
66
|
-
sizeIndex = size,
|
|
73
|
+
sizeIndex,
|
|
67
74
|
sizePixels,
|
|
68
75
|
characters,
|
|
69
76
|
lines,
|
|
70
77
|
shape = 'line',
|
|
71
78
|
...rest
|
|
72
79
|
} = _ref5;
|
|
73
|
-
const themeTokens = (0,
|
|
74
|
-
const pixels = (0,
|
|
80
|
+
const themeTokens = (0, _useThemeTokens.useThemeTokens)('Skeleton', tokens, variant);
|
|
81
|
+
const pixels = (0, _useResponsiveProp.useResponsiveProp)(sizePixels);
|
|
75
82
|
const spacingScaleValue = typeof pixels === 'number' ?
|
|
76
83
|
// Size by an exact number of pixels
|
|
77
84
|
{
|
|
@@ -81,18 +88,18 @@ const Skeleton = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
|
81
88
|
} :
|
|
82
89
|
// Size by an index on the spacing scale (getting default index from theme if none provided)
|
|
83
90
|
sizeIndex || themeTokens.size;
|
|
84
|
-
const skeletonHeight = (0,
|
|
91
|
+
const skeletonHeight = (0, _useSpacingScale.useSpacingScale)(spacingScaleValue);
|
|
85
92
|
|
|
86
93
|
// Animation color and animation duration
|
|
87
94
|
const {
|
|
88
95
|
secondColor,
|
|
89
96
|
animationDuration
|
|
90
97
|
} = themeTokens;
|
|
91
|
-
const nativeAnimation = (0, _useSkeletonNativeAnimation.
|
|
98
|
+
const nativeAnimation = (0, _useSkeletonNativeAnimation.useSkeletonNativeAnimation)({
|
|
92
99
|
animationDuration
|
|
93
100
|
});
|
|
94
101
|
const getAnimationBasedOnPlatform = () => {
|
|
95
|
-
const animation = _Platform.default.OS === 'web' ? (0, _skeletonWebAnimation.
|
|
102
|
+
const animation = _Platform.default.OS === 'web' ? (0, _skeletonWebAnimation.skeletonWebAnimation)(secondColor, animationDuration) : nativeAnimation;
|
|
96
103
|
// We must pass the animation styles through `StyleSheet.create`
|
|
97
104
|
// @see https://github.com/necolas/react-native-web/issues/2387
|
|
98
105
|
const styles = _StyleSheet.default.create({
|
|
@@ -134,7 +141,7 @@ const Skeleton = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
|
134
141
|
style: [selectSkeletonStyles(themeTokens), getAnimationBasedOnPlatform(), getStyledBasedOnShape()]
|
|
135
142
|
}, `skeleton-${index + 1}`);
|
|
136
143
|
};
|
|
137
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_StackView.
|
|
144
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_StackView.StackView, {
|
|
138
145
|
space: themeTokens.spaceBetweenLines,
|
|
139
146
|
ref: ref,
|
|
140
147
|
...selectProps(rest),
|
|
@@ -144,24 +151,20 @@ const Skeleton = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
|
144
151
|
Skeleton.displayName = 'Skeleton';
|
|
145
152
|
Skeleton.propTypes = {
|
|
146
153
|
...selectedSystemPropTypes,
|
|
147
|
-
tokens: (0,
|
|
148
|
-
variant:
|
|
154
|
+
tokens: (0, _tokens.getTokensPropType)('Skeleton'),
|
|
155
|
+
variant: _variantProp.variantProp.propType,
|
|
149
156
|
/**
|
|
150
157
|
* Sets the size of Skeleton lines or shape according to the theme's spacing scale. For example, size={1} gives the smallest non-zero theme-defined spacing size.
|
|
151
158
|
*
|
|
152
159
|
* May also accept an object with responsive viewport keys or spacing scale options - see `useSpacingScale` for details.
|
|
153
160
|
*/
|
|
154
|
-
sizeIndex:
|
|
155
|
-
/**
|
|
156
|
-
* @deprecated alias for `sizeIndex`
|
|
157
|
-
*/
|
|
158
|
-
size: _utils.spacingProps.types.spacingValue,
|
|
161
|
+
sizeIndex: _spacingProps.spacingProps.types.spacingValue,
|
|
159
162
|
/**
|
|
160
163
|
* Sets the size of Skeleton lines or shape to an exact number of pixels. Use when it's necessary to exactly match sizes of images or other boxes.
|
|
161
164
|
*
|
|
162
165
|
* Accepts a number or an object with responsive viewport keys, e.g. { xs: 32, lg: 64 } would be 32px at xs, sm and md and 64 at lg and xl viewports.
|
|
163
166
|
*/
|
|
164
|
-
sizePixels:
|
|
167
|
+
sizePixels: _responsiveProps.responsiveProps.getTypeOptionallyByViewport(_propTypes.default.number),
|
|
165
168
|
/**
|
|
166
169
|
* Determines the width of simulated lines of text if the Skeleton's shape is 'line' (the default shape).
|
|
167
170
|
*
|
|
@@ -180,5 +183,4 @@ Skeleton.propTypes = {
|
|
|
180
183
|
* Determines if the skeleton should resemble lines of text (default), a circle, or a square box with themed rounded corners.
|
|
181
184
|
*/
|
|
182
185
|
shape: _propTypes.default.oneOf(['line', 'circle', 'box'])
|
|
183
|
-
};
|
|
184
|
-
var _default = exports.default = Skeleton;
|
|
186
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.skeletonWebAnimation = void 0;
|
|
7
7
|
const skeletonWebAnimation = (secondColor, animationTime) => {
|
|
8
8
|
return {
|
|
9
9
|
animationDuration: `${animationTime}ms`,
|
|
@@ -17,4 +17,4 @@ const skeletonWebAnimation = (secondColor, animationTime) => {
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
exports.skeletonWebAnimation = skeletonWebAnimation;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.useSkeletonNativeAnimation = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _Animated = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Animated"));
|
|
9
9
|
var _Platform = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Platform"));
|
|
@@ -32,4 +32,4 @@ const useSkeletonNativeAnimation = _ref => {
|
|
|
32
32
|
opacity: fadeAnimation
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
exports.useSkeletonNativeAnimation = useSkeletonNativeAnimation;
|
|
@@ -3,18 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SkipLinkBase = exports.SkipLink = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Platform = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Platform"));
|
|
9
9
|
var _Pressable = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Pressable"));
|
|
10
10
|
var _StyleSheet = _interopRequireDefault(require("react-native-web/dist/cjs/exports/StyleSheet"));
|
|
11
11
|
var _Text = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Text"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
var
|
|
14
|
-
var
|
|
13
|
+
var _useThemeTokens = require("../ThemeProvider/useThemeTokens");
|
|
14
|
+
var _a11yProps = require("../utils/props/a11yProps");
|
|
15
|
+
var _clickProps = require("../utils/props/clickProps");
|
|
16
|
+
var _tokens = require("../utils/props/tokens");
|
|
17
|
+
var _linkProps = require("../utils/props/linkProps");
|
|
18
|
+
var _pressability = require("../utils/pressability");
|
|
19
|
+
var _selectSystemProps = require("../utils/props/selectSystemProps");
|
|
20
|
+
var _variantProp = require("../utils/props/variantProp");
|
|
21
|
+
var _withLinkRouter = require("../utils/withLinkRouter");
|
|
15
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
23
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
const [selectProps, selectedSystemPropTypes] = (0,
|
|
24
|
+
const [selectProps, selectedSystemPropTypes] = (0, _selectSystemProps.selectSystemProps)([_a11yProps.a11yProps, _linkProps.linkProps]);
|
|
18
25
|
|
|
19
26
|
// ensure explicit selection of tokens
|
|
20
27
|
const selectStyles = _ref => {
|
|
@@ -112,7 +119,7 @@ const selectTextStyles = _ref2 => {
|
|
|
112
119
|
*
|
|
113
120
|
* Skip link supports all the common a11y and link props.
|
|
114
121
|
*/
|
|
115
|
-
const
|
|
122
|
+
const SkipLinkBase = exports.SkipLinkBase = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
116
123
|
let {
|
|
117
124
|
tokens,
|
|
118
125
|
variant,
|
|
@@ -123,8 +130,8 @@ const SkipLink = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
|
123
130
|
const {
|
|
124
131
|
onPress,
|
|
125
132
|
...rest
|
|
126
|
-
} =
|
|
127
|
-
const getTokens = (0,
|
|
133
|
+
} = _clickProps.clickProps.toPressProps(rawRest);
|
|
134
|
+
const getTokens = (0, _useThemeTokens.useThemeTokensCallback)('SkipLink', tokens, variant);
|
|
128
135
|
const handlePress = event => {
|
|
129
136
|
if (typeof onPress === 'function') onPress(event);
|
|
130
137
|
// TODO - support native apps with something based on refs and/or setAccessibilityFocus
|
|
@@ -135,7 +142,7 @@ const SkipLink = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
|
135
142
|
onPress: handlePress,
|
|
136
143
|
href: href,
|
|
137
144
|
style: pressableState => {
|
|
138
|
-
const themeTokens = (0,
|
|
145
|
+
const themeTokens = (0, _pressability.resolvePressableTokens)(getTokens, pressableState);
|
|
139
146
|
const skipLinkStyle = selectStyles(themeTokens);
|
|
140
147
|
const {
|
|
141
148
|
focused
|
|
@@ -144,7 +151,7 @@ const SkipLink = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
|
144
151
|
},
|
|
145
152
|
...selectProps(rest),
|
|
146
153
|
children: pressableState => {
|
|
147
|
-
const themeTokens = (0,
|
|
154
|
+
const themeTokens = (0, _pressability.resolvePressableTokens)(getTokens, pressableState);
|
|
148
155
|
const textStyles = selectTextStyles(themeTokens);
|
|
149
156
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.default, {
|
|
150
157
|
style: [textStyles, staticStyles.baseline],
|
|
@@ -153,8 +160,8 @@ const SkipLink = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
|
153
160
|
}
|
|
154
161
|
});
|
|
155
162
|
});
|
|
156
|
-
|
|
157
|
-
|
|
163
|
+
SkipLinkBase.displayName = 'SkipLink';
|
|
164
|
+
SkipLinkBase.propTypes = {
|
|
158
165
|
...selectedSystemPropTypes,
|
|
159
166
|
/**
|
|
160
167
|
* The text content shown or read out when the SkipLink is focused, usually a string.
|
|
@@ -164,8 +171,8 @@ SkipLink.propTypes = {
|
|
|
164
171
|
* The target to skip to. Usually an anchor link to a section id (e.g. href="#main-section").
|
|
165
172
|
*/
|
|
166
173
|
href: _propTypes.default.string,
|
|
167
|
-
tokens: (0,
|
|
168
|
-
variant:
|
|
174
|
+
tokens: (0, _tokens.getTokensPropType)('SkipLink'),
|
|
175
|
+
variant: _variantProp.variantProp.propType
|
|
169
176
|
};
|
|
170
177
|
const staticStyles = _StyleSheet.default.create({
|
|
171
178
|
baseline: {
|
|
@@ -193,4 +200,7 @@ const staticStyles = _StyleSheet.default.create({
|
|
|
193
200
|
})
|
|
194
201
|
}
|
|
195
202
|
});
|
|
196
|
-
|
|
203
|
+
|
|
204
|
+
// Export unwrapped component for react-docgen to extract info for docsite
|
|
205
|
+
|
|
206
|
+
const SkipLink = exports.SkipLink = (0, _withLinkRouter.withLinkRouter)(SkipLinkBase);
|
package/lib/cjs/Spacer/Spacer.js
CHANGED
|
@@ -3,20 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Spacer = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _View = _interopRequireDefault(require("react-native-web/dist/cjs/exports/View"));
|
|
10
10
|
var _StyleSheet = _interopRequireDefault(require("react-native-web/dist/cjs/exports/StyleSheet"));
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
11
|
+
var _a11yProps = require("../utils/props/a11yProps");
|
|
12
|
+
var _selectSystemProps = require("../utils/props/selectSystemProps");
|
|
13
|
+
var _spacingProps = require("../utils/props/spacingProps");
|
|
14
|
+
var _useSpacingScale = require("../utils/useSpacingScale");
|
|
15
|
+
var _viewProps = require("../utils/props/viewProps");
|
|
16
|
+
var _ssrMediaQuery = require("../utils/ssr-media-query/ssr-media-query");
|
|
17
|
+
var _useMediaQuerySpacing = require("../utils/useMediaQuerySpacing");
|
|
18
|
+
var _useTheme = require("../ThemeProvider/useTheme");
|
|
14
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
20
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
21
|
/**
|
|
17
22
|
* @typedef {import('../utils/props/spacingProps.js').SpacingValue} SpacingValue
|
|
18
23
|
* @typedef {import('../utils/props/spacingProps.js').SpacingObject} SpacingObject
|
|
19
|
-
*/const [selectProps, selectedSystemPropTypes] = (0,
|
|
24
|
+
*/const [selectProps, selectedSystemPropTypes] = (0, _selectSystemProps.selectSystemProps)([_a11yProps.a11yProps, _viewProps.viewProps]);
|
|
20
25
|
const selectSizeStyle = (size, direction) => ({
|
|
21
26
|
// Only apply space in one direction at a time, else large spacers will increase the
|
|
22
27
|
// 'across' size of the parent and mess up siblings with styles like `alignItems: stretch`.
|
|
@@ -63,7 +68,7 @@ const selectSizeStyle = (size, direction) => ({
|
|
|
63
68
|
* Spacer has no content and is ignored by tools such as screen readers. Use `Divider` for
|
|
64
69
|
* separations between elements that may be treated as semantically meaningful on web.
|
|
65
70
|
*/
|
|
66
|
-
const Spacer = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
71
|
+
const Spacer = exports.Spacer = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
67
72
|
let {
|
|
68
73
|
space = 1,
|
|
69
74
|
direction = 'column',
|
|
@@ -74,11 +79,11 @@ const Spacer = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
74
79
|
themeOptions: {
|
|
75
80
|
enableMediaQueryStyleSheet
|
|
76
81
|
}
|
|
77
|
-
} = (0, _useTheme.
|
|
82
|
+
} = (0, _useTheme.useTheme)();
|
|
78
83
|
const {
|
|
79
84
|
sizeByViewport
|
|
80
|
-
} = (0, _useMediaQuerySpacing.
|
|
81
|
-
const fallbackSize = (0,
|
|
85
|
+
} = (0, _useMediaQuerySpacing.useMediaQuerySpacing)(space);
|
|
86
|
+
const fallbackSize = (0, _useSpacingScale.useSpacingScale)(space);
|
|
82
87
|
const sizeStyle = selectSizeStyle(fallbackSize, direction);
|
|
83
88
|
let spacerStyles;
|
|
84
89
|
let dataSetValue = dataSet;
|
|
@@ -106,11 +111,11 @@ const Spacer = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
106
111
|
...staticStyles.stretch
|
|
107
112
|
}
|
|
108
113
|
};
|
|
109
|
-
const mediaQueryStyles = (0,
|
|
114
|
+
const mediaQueryStyles = (0, _ssrMediaQuery.createMediaQueryStyles)(stylesByViewport);
|
|
110
115
|
const {
|
|
111
116
|
ids,
|
|
112
117
|
styles
|
|
113
|
-
} =
|
|
118
|
+
} = _ssrMediaQuery.StyleSheet.create({
|
|
114
119
|
spacer: {
|
|
115
120
|
...mediaQueryStyles
|
|
116
121
|
}
|
|
@@ -138,7 +143,7 @@ Spacer.propTypes = {
|
|
|
138
143
|
* Either a number corresponding to a position on the theme's spacing scale (1 is smallest, 2 is second smallest, etc),
|
|
139
144
|
* or, a SpacingObject with viewport keys and options (see `useSpacingScale` for details).
|
|
140
145
|
*/
|
|
141
|
-
space:
|
|
146
|
+
space: _spacingProps.spacingProps.types.spacingValue,
|
|
142
147
|
/**
|
|
143
148
|
* The spacer applies space in only one direction, which is controlled by the `direction` prop:
|
|
144
149
|
*
|
|
@@ -156,5 +161,4 @@ const staticStyles = _StyleSheet.default.create({
|
|
|
156
161
|
stretch: {
|
|
157
162
|
alignSelf: 'stretch'
|
|
158
163
|
}
|
|
159
|
-
});
|
|
160
|
-
var _default = exports.default = Spacer;
|
|
164
|
+
});
|