@telus-uds/components-base 3.29.1 → 4.0.0-alpha.1
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 +34 -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 +41 -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 +4 -5
- 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 +4 -5
- 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 -42
- package/lib/cjs/Box/backgroundImageStylesMap.js +2 -2
- package/lib/cjs/Button/Button.js +16 -16
- package/lib/cjs/Button/ButtonBase.js +36 -24
- package/lib/cjs/Button/ButtonDropdown.js +24 -22
- package/lib/cjs/Button/ButtonGroup.js +35 -25
- package/lib/cjs/Button/ButtonLink.js +20 -18
- package/lib/cjs/Button/propTypes.js +10 -11
- package/lib/cjs/Card/Card.js +52 -36
- package/lib/cjs/Card/CardBase.js +33 -29
- package/lib/cjs/Card/PressableCardBase.js +36 -24
- package/lib/cjs/Card/backgroundImageStylesMap.js +2 -2
- package/lib/cjs/CardGroup/CardGroup.js +35 -27
- package/lib/cjs/CardGroup/dictionary.js +2 -2
- package/lib/cjs/Carousel/Carousel.js +69 -56
- 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 +129 -38
- package/lib/cjs/Carousel/CarouselThumbnailNavigation.js +20 -14
- 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 -24
- package/lib/cjs/CheckboxCardGroup/CheckboxCardGroup.js +29 -23
- package/lib/cjs/ColourToggle/ColourBubble.js +9 -10
- package/lib/cjs/ColourToggle/ColourToggle.js +19 -16
- 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} +15 -11
- package/lib/cjs/ExpandCollapse/{Panel.js → ExpandCollapsePanel.js} +27 -21
- package/lib/cjs/ExpandCollapse/dictionary.js +2 -2
- package/lib/cjs/ExpandCollapseMini/ExpandCollapseMini.js +19 -16
- package/lib/cjs/ExpandCollapseMini/ExpandCollapseMiniControl.js +11 -10
- 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 -11
- 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 -16
- 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 +37 -27
- package/lib/cjs/Link/MobileIconTextContent.js +7 -9
- 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 +19 -20
- 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 +30 -24
- 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 +47 -46
- 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 +37 -30
- package/lib/cjs/Pagination/{PageButton.js → PaginationPageButton.js} +30 -21
- 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 +21 -17
- package/lib/cjs/Progress/ProgressBarBackground.js +6 -8
- 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 -21
- 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 -24
- package/lib/cjs/RadioCard/RadioCardGroup.js +29 -23
- 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 -20
- package/lib/cjs/Shortcuts/ShortcutsItem.js +33 -23
- package/lib/cjs/SideNav/SideNav.js +28 -26
- 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 +11 -11
- 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 +16 -13
- package/lib/cjs/TabBar/TabBarItem.js +16 -15
- package/lib/cjs/Tabs/Tabs.js +40 -30
- 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 +25 -22
- 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 -354
- 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 +25 -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 +20 -8
- 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 +32 -15
- package/lib/esm/Card/CardBase.js +14 -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 -27
- 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 +127 -36
- package/lib/esm/Carousel/CarouselThumbnailNavigation.js +14 -8
- 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 +5 -6
- package/lib/esm/ColourToggle/ColourToggle.js +11 -8
- 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} +9 -5
- package/lib/esm/ExpandCollapse/{Panel.js → ExpandCollapsePanel.js} +15 -9
- package/lib/esm/ExpandCollapse/dictionary.js +1 -1
- package/lib/esm/ExpandCollapseMini/ExpandCollapseMini.js +11 -8
- package/lib/esm/ExpandCollapseMini/ExpandCollapseMiniControl.js +7 -6
- 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 -8
- 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 +22 -12
- package/lib/esm/Link/MobileIconTextContent.js +4 -5
- 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 +16 -10
- 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 +22 -21
- 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 +13 -9
- package/lib/esm/Progress/ProgressBarBackground.js +4 -6
- 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 +9 -6
- 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 +13 -10
- 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 +27 -21
- 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 +30 -26
- package/src/Card/CardBase.jsx +13 -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 +39 -41
- 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 +155 -68
- package/src/Carousel/CarouselThumbnailNavigation.jsx +13 -9
- 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 +4 -6
- package/src/ColourToggle/ColourToggle.jsx +10 -8
- 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} +8 -5
- package/src/ExpandCollapse/{Panel.jsx → ExpandCollapsePanel.jsx} +12 -17
- package/src/ExpandCollapse/dictionary.js +1 -1
- package/src/ExpandCollapseMini/ExpandCollapseMini.jsx +11 -9
- package/src/ExpandCollapseMini/ExpandCollapseMiniControl.jsx +6 -6
- 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 -8
- 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 +22 -23
- package/src/Link/MobileIconTextContent.jsx +3 -5
- 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 +16 -19
- 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 +22 -46
- 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 +13 -10
- package/src/Progress/ProgressBarBackground.jsx +4 -7
- 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 +8 -6
- 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/Link.d.ts +1 -2
- 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 -31
- 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 -25
- package/lib/cjs/Icon/index.js +0 -23
- 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/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 -284
- 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
|
@@ -12,7 +12,7 @@ const DEBOUNCE_MS = 100;
|
|
|
12
12
|
* so we need to work around it with debouncing on `onScroll`. See:
|
|
13
13
|
* https://github.com/necolas/react-native-web/issues/1021
|
|
14
14
|
*/
|
|
15
|
-
const ScrollViewEnd = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
15
|
+
export const ScrollViewEnd = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
16
16
|
let {
|
|
17
17
|
onScrollEnd,
|
|
18
18
|
onScroll = null,
|
|
@@ -42,5 +42,4 @@ ScrollViewEnd.displayName = 'ScrollViewEnd';
|
|
|
42
42
|
ScrollViewEnd.propTypes = {
|
|
43
43
|
onScrollEnd: PropTypes.func.isRequired,
|
|
44
44
|
onScroll: PropTypes.func
|
|
45
|
-
};
|
|
46
|
-
export default ScrollViewEnd;
|
|
45
|
+
};
|
|
@@ -7,7 +7,7 @@ import ScrollView from "react-native-web/dist/exports/ScrollView";
|
|
|
7
7
|
* React Native has two scroll end handlers, we want to treat them both the same.
|
|
8
8
|
*/
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
const ScrollViewEnd = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
10
|
+
export const ScrollViewEnd = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
11
11
|
let {
|
|
12
12
|
onScrollEnd,
|
|
13
13
|
...props
|
|
@@ -22,5 +22,4 @@ const ScrollViewEnd = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
22
22
|
ScrollViewEnd.displayName = 'ScrollViewEnd';
|
|
23
23
|
ScrollViewEnd.propTypes = {
|
|
24
24
|
onScrollEnd: PropTypes.func.isRequired
|
|
25
|
-
};
|
|
26
|
-
export default ScrollViewEnd;
|
|
25
|
+
};
|
package/lib/esm/Icon/Icon.js
CHANGED
|
@@ -3,10 +3,11 @@ import Platform from "react-native-web/dist/exports/Platform";
|
|
|
3
3
|
import View from "react-native-web/dist/exports/View";
|
|
4
4
|
import useWindowDimensions from "react-native-web/dist/exports/useWindowDimensions";
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import { useThemeTokens } from '../ThemeProvider';
|
|
7
|
-
import { getTokensPropType
|
|
6
|
+
import { useThemeTokens } from '../ThemeProvider/useThemeTokens';
|
|
7
|
+
import { getTokensPropType } from '../utils/props/tokens';
|
|
8
|
+
import { variantProp } from '../utils/props/variantProp';
|
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
const Icon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
10
|
+
export const Icon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
10
11
|
let {
|
|
11
12
|
icon: IconComponent,
|
|
12
13
|
accessibilityLabel,
|
|
@@ -97,5 +98,4 @@ Icon.propTypes = {
|
|
|
97
98
|
* (e.g.) `import { MyIcon } from @telus-uds/palette-<brand>/build/web/icons`
|
|
98
99
|
*/
|
|
99
100
|
icon: PropTypes.elementType.isRequired
|
|
100
|
-
};
|
|
101
|
-
export default Icon;
|
|
101
|
+
};
|
package/lib/esm/Icon/IconText.js
CHANGED
|
@@ -4,9 +4,9 @@ import Platform from "react-native-web/dist/exports/Platform";
|
|
|
4
4
|
import View from "react-native-web/dist/exports/View";
|
|
5
5
|
import Text from "react-native-web/dist/exports/Text";
|
|
6
6
|
import StyleSheet from "react-native-web/dist/exports/StyleSheet";
|
|
7
|
-
import Icon,
|
|
8
|
-
import { getStackedContent } from '../StackView';
|
|
9
|
-
import { spacingProps } from '../utils';
|
|
7
|
+
import { Icon, iconComponentPropTypes } from './Icon';
|
|
8
|
+
import { getStackedContent } from '../StackView/getStackedContent';
|
|
9
|
+
import { spacingProps } from '../utils/props/spacingProps';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Returns an icon and some text with a sized gap between them. This is a utility component
|
|
@@ -17,7 +17,7 @@ import { spacingProps } from '../utils';
|
|
|
17
17
|
* - within a container with `flexDirection: 'row'`
|
|
18
18
|
*/
|
|
19
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
-
const IconText = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
20
|
+
export const IconText = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
21
21
|
let {
|
|
22
22
|
space,
|
|
23
23
|
iconPosition = 'left',
|
|
@@ -105,5 +105,4 @@ const staticStyles = StyleSheet.create({
|
|
|
105
105
|
adjustedContainer: {
|
|
106
106
|
position: 'absolute'
|
|
107
107
|
}
|
|
108
|
-
});
|
|
109
|
-
export default IconText;
|
|
108
|
+
});
|
|
@@ -4,9 +4,19 @@ import Pressable from "react-native-web/dist/exports/Pressable";
|
|
|
4
4
|
import Platform from "react-native-web/dist/exports/Platform";
|
|
5
5
|
import StyleSheet from "react-native-web/dist/exports/StyleSheet";
|
|
6
6
|
import View from "react-native-web/dist/exports/View";
|
|
7
|
-
import { applyOuterBorder,
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
7
|
+
import { applyOuterBorder, applyShadowToken } from '../ThemeProvider/utils/styles';
|
|
8
|
+
import { useThemeTokensCallback } from '../ThemeProvider/useThemeTokens';
|
|
9
|
+
import { a11yProps } from '../utils/props/a11yProps';
|
|
10
|
+
import { clickProps } from '../utils/props/clickProps';
|
|
11
|
+
import { getTokensPropType, selectTokens } from '../utils/props/tokens';
|
|
12
|
+
import { hrefAttrsProp } from '../utils/props/hrefAttrsProp';
|
|
13
|
+
import { linkProps } from '../utils/props/linkProps';
|
|
14
|
+
import { resolvePressableState } from '../utils/pressability';
|
|
15
|
+
import { selectSystemProps } from '../utils/props/selectSystemProps';
|
|
16
|
+
import { variantProp } from '../utils/props/variantProp';
|
|
17
|
+
import { viewProps } from '../utils/props/viewProps';
|
|
18
|
+
import { withLinkRouter } from '../utils/withLinkRouter';
|
|
19
|
+
import { Icon } from '../Icon/Icon';
|
|
10
20
|
|
|
11
21
|
// function to get the dimentionals of the conditionals
|
|
12
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -119,7 +129,7 @@ const selectInnerStyle = (_ref2, password) => {
|
|
|
119
129
|
* based on these to an outer border and a base Card component. Not intended to be used in
|
|
120
130
|
* apps or sites directly: build themed components on top of this.
|
|
121
131
|
*/
|
|
122
|
-
const
|
|
132
|
+
const IconButtonBase = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
123
133
|
let {
|
|
124
134
|
tokens,
|
|
125
135
|
variant = {},
|
|
@@ -178,8 +188,8 @@ const IconButton = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
178
188
|
}
|
|
179
189
|
});
|
|
180
190
|
});
|
|
181
|
-
|
|
182
|
-
|
|
191
|
+
IconButtonBase.displayName = 'IconButton';
|
|
192
|
+
IconButtonBase.propTypes = {
|
|
183
193
|
...selectedSystemPropTypes,
|
|
184
194
|
variant: variantProp.propType,
|
|
185
195
|
tokens: getTokensPropType('IconButton'),
|
|
@@ -214,4 +224,7 @@ const staticStyles = StyleSheet.create({
|
|
|
214
224
|
alignSelf: 'baseline'
|
|
215
225
|
}
|
|
216
226
|
});
|
|
217
|
-
|
|
227
|
+
|
|
228
|
+
// Export unwrapped component for react-docgen to extract info for docsite
|
|
229
|
+
export { IconButtonBase };
|
|
230
|
+
export const IconButton = withLinkRouter(IconButtonBase);
|
|
@@ -3,11 +3,17 @@ import StyleSheet from "react-native-web/dist/exports/StyleSheet";
|
|
|
3
3
|
import Text from "react-native-web/dist/exports/Text";
|
|
4
4
|
import View from "react-native-web/dist/exports/View";
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import { applyTextStyles
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
6
|
+
import { applyTextStyles } from '../ThemeProvider/utils/styles';
|
|
7
|
+
import { useTheme } from '../ThemeProvider/useTheme';
|
|
8
|
+
import { useThemeTokens } from '../ThemeProvider/useThemeTokens';
|
|
9
|
+
import { a11yProps } from '../utils/props/a11yProps';
|
|
10
|
+
import { getTokensPropType, selectTokens } from '../utils/props/tokens';
|
|
11
|
+
import { selectSystemProps } from '../utils/props/selectSystemProps';
|
|
12
|
+
import { variantProp } from '../utils/props/variantProp';
|
|
13
|
+
import { viewProps } from '../utils/props/viewProps';
|
|
14
|
+
import { LabelContent } from './LabelContent';
|
|
15
|
+
import { Tooltip } from '../Tooltip/Tooltip.native';
|
|
16
|
+
import { propTypes as tooltipPropTypes } from '../Tooltip/shared';
|
|
11
17
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
18
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, viewProps]);
|
|
13
19
|
const selectLabelStyles = (tokens, themeOptions) => applyTextStyles({
|
|
@@ -39,7 +45,7 @@ const selectGapStyles = _ref2 => {
|
|
|
39
45
|
marginRight: gap
|
|
40
46
|
};
|
|
41
47
|
};
|
|
42
|
-
const InputLabel = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
48
|
+
export const InputLabel = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
43
49
|
let {
|
|
44
50
|
copy = 'en',
|
|
45
51
|
label,
|
|
@@ -154,7 +160,6 @@ InputLabel.propTypes = {
|
|
|
154
160
|
tokens: getTokensPropType('InputLabel'),
|
|
155
161
|
variant: variantProp.propType
|
|
156
162
|
};
|
|
157
|
-
export default InputLabel;
|
|
158
163
|
const staticStyles = StyleSheet.create({
|
|
159
164
|
container: {
|
|
160
165
|
flexShrink: 1,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
const LabelContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
4
|
+
export const LabelContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
5
5
|
let {
|
|
6
6
|
children,
|
|
7
7
|
forId
|
|
@@ -24,5 +24,4 @@ const staticStyles = {
|
|
|
24
24
|
inheritCursor: {
|
|
25
25
|
cursor: 'inherit'
|
|
26
26
|
}
|
|
27
|
-
};
|
|
28
|
-
export default LabelContent;
|
|
27
|
+
};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import View from "react-native-web/dist/exports/View"; // Since there's no equivalent for web's <label> element we're simply rendering whatever is passed to this component.
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
const LabelContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
5
|
+
export const LabelContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
6
6
|
let {
|
|
7
7
|
children
|
|
8
8
|
} = _ref;
|
|
@@ -14,5 +14,4 @@ const LabelContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
14
14
|
LabelContent.displayName = 'LabelContent';
|
|
15
15
|
LabelContent.propTypes = {
|
|
16
16
|
children: PropTypes.node
|
|
17
|
-
};
|
|
18
|
-
export default LabelContent;
|
|
17
|
+
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import InputLabel from '../InputLabel';
|
|
4
|
-
import Feedback from '../Feedback';
|
|
5
|
-
import StackView from '../StackView';
|
|
6
|
-
import { useThemeTokens } from '../ThemeProvider';
|
|
7
|
-
import useInputSupports from './useInputSupports';
|
|
8
|
-
import { getTokensPropType
|
|
9
|
-
import
|
|
10
|
-
import
|
|
3
|
+
import { InputLabel } from '../InputLabel/InputLabel';
|
|
4
|
+
import { Feedback } from '../Feedback/Feedback';
|
|
5
|
+
import { StackView } from '../StackView/StackView';
|
|
6
|
+
import { useThemeTokens } from '../ThemeProvider/useThemeTokens';
|
|
7
|
+
import { useInputSupports } from './useInputSupports';
|
|
8
|
+
import { getTokensPropType } from '../utils/props/tokens';
|
|
9
|
+
import { useCopy } from '../utils/useCopy';
|
|
10
|
+
import { dictionary } from './dictionary';
|
|
11
|
+
import { propTypes as tooltipPropTypes } from '../Tooltip/shared';
|
|
11
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
const InputSupports = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
13
|
+
export const InputSupports = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
13
14
|
let {
|
|
14
15
|
children,
|
|
15
16
|
copy = 'en',
|
|
@@ -133,5 +134,4 @@ InputSupports.propTypes = {
|
|
|
133
134
|
* Max number of characters that allows an input text.
|
|
134
135
|
*/
|
|
135
136
|
maxCharacterAllowed: PropTypes.number
|
|
136
|
-
};
|
|
137
|
-
export default InputSupports;
|
|
137
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import useUniqueId from '../utils/useUniqueId';
|
|
2
|
-
import { useCopy } from '../utils';
|
|
3
|
-
import dictionary from './dictionary';
|
|
1
|
+
import { useUniqueId } from '../utils/useUniqueId';
|
|
2
|
+
import { useCopy } from '../utils/useCopy';
|
|
3
|
+
import { dictionary } from './dictionary';
|
|
4
4
|
const joinDefined = array => array.filter(item => item !== undefined).join(' ');
|
|
5
|
-
const useInputSupports = _ref => {
|
|
5
|
+
export const useInputSupports = _ref => {
|
|
6
6
|
let {
|
|
7
7
|
label,
|
|
8
8
|
feedback,
|
|
@@ -34,5 +34,4 @@ const useInputSupports = _ref => {
|
|
|
34
34
|
feedbackId,
|
|
35
35
|
a11yProps
|
|
36
36
|
};
|
|
37
|
-
};
|
|
38
|
-
export default useInputSupports;
|
|
37
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { useThemeTokensCallback } from '../ThemeProvider';
|
|
4
|
-
import { selectTokens, getTokensPropType
|
|
5
|
-
import
|
|
3
|
+
import { useThemeTokensCallback } from '../ThemeProvider/useThemeTokens';
|
|
4
|
+
import { selectTokens, getTokensPropType } from '../utils/props/tokens';
|
|
5
|
+
import { linkProps } from '../utils/props/linkProps';
|
|
6
|
+
import { LinkBase } from './LinkBase';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* `ChevronLink` is a convenience wrapper around the `Link` component to enable "directional" links.
|
|
@@ -11,7 +12,7 @@ import LinkBase from './LinkBase';
|
|
|
11
12
|
* ChevronLink is not intended to be deeply themable; variants passed to ChevronLink are forwarded to Link.
|
|
12
13
|
*/
|
|
13
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
const ChevronLink = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
15
|
+
export const ChevronLink = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
15
16
|
let {
|
|
16
17
|
direction = 'right',
|
|
17
18
|
children,
|
|
@@ -56,8 +57,7 @@ ChevronLink.propTypes = {
|
|
|
56
57
|
children: PropTypes.node,
|
|
57
58
|
variant: PropTypes.exact({
|
|
58
59
|
size: PropTypes.oneOf(['large', 'small', 'micro']),
|
|
59
|
-
|
|
60
|
-
inverse: PropTypes.bool
|
|
60
|
+
style: PropTypes.oneOf(['inline', 'subtle', 'feature', 'danger', 'inverse'])
|
|
61
61
|
}),
|
|
62
62
|
...linkProps.types,
|
|
63
63
|
tokens: getTokensPropType('ChevronLink', 'Link'),
|
|
@@ -65,5 +65,4 @@ ChevronLink.propTypes = {
|
|
|
65
65
|
* Changes direction of chevron icon
|
|
66
66
|
*/
|
|
67
67
|
direction: PropTypes.oneOf(['left', 'right'])
|
|
68
|
-
};
|
|
69
|
-
export default ChevronLink;
|
|
68
|
+
};
|
|
@@ -16,7 +16,7 @@ import PropTypes from 'prop-types';
|
|
|
16
16
|
* @param {PressableProps} PressableProps
|
|
17
17
|
*/
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
const InlinePressable = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
19
|
+
export const InlinePressable = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
20
20
|
let {
|
|
21
21
|
children,
|
|
22
22
|
inlineFlex = true,
|
|
@@ -44,5 +44,4 @@ const staticStyles = StyleSheet.create({
|
|
|
44
44
|
inlineFlex: {
|
|
45
45
|
display: 'inline-flex'
|
|
46
46
|
}
|
|
47
|
-
});
|
|
48
|
-
export default InlinePressable;
|
|
47
|
+
});
|
|
@@ -43,7 +43,7 @@ const pressablePropsToTouchable = _ref => {
|
|
|
43
43
|
*
|
|
44
44
|
* @param {PressableProps} PressableProps
|
|
45
45
|
*/
|
|
46
|
-
const InlinePressable = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
46
|
+
export const InlinePressable = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
47
47
|
let {
|
|
48
48
|
onPress,
|
|
49
49
|
children,
|
|
@@ -82,5 +82,4 @@ InlinePressable.propTypes = {
|
|
|
82
82
|
children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
|
83
83
|
style: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.func]),
|
|
84
84
|
onPress: PropTypes.func
|
|
85
|
-
};
|
|
86
|
-
export default InlinePressable;
|
|
85
|
+
};
|
package/lib/esm/Link/Link.js
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { getTokensPropType } from '../utils/props/tokens';
|
|
4
|
+
import { variantProp } from '../utils/props/variantProp';
|
|
5
|
+
import { useThemeTokensCallback } from '../ThemeProvider/useThemeTokens';
|
|
6
|
+
import { LinkBase } from './LinkBase';
|
|
7
|
+
import { iconComponentPropTypes } from '../Icon/Icon';
|
|
8
|
+
import { hrefAttrsProp } from '../utils/props/hrefAttrsProp';
|
|
9
|
+
import { selectSystemProps } from '../utils/props/selectSystemProps';
|
|
10
|
+
import { a11yProps } from '../utils/props/a11yProps';
|
|
11
|
+
import { linkProps as linkPropTypes } from '../utils/props/linkProps';
|
|
12
|
+
import { viewProps } from '../utils/props/viewProps';
|
|
13
|
+
import { contentfulProps } from '../utils/props/contentfulProps';
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line no-unused-vars
|
|
5
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
const
|
|
17
|
+
const [_, selectedSystemPropTypes] = selectSystemProps([a11yProps, linkPropTypes, viewProps, contentfulProps]);
|
|
18
|
+
export const Link = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
7
19
|
let {
|
|
8
20
|
href,
|
|
9
21
|
children,
|
|
@@ -26,10 +38,40 @@ const Link = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
26
38
|
});
|
|
27
39
|
Link.displayName = 'Link';
|
|
28
40
|
Link.propTypes = {
|
|
29
|
-
...
|
|
41
|
+
...selectedSystemPropTypes,
|
|
42
|
+
tokens: getTokensPropType('Link'),
|
|
43
|
+
/**
|
|
44
|
+
* href for the Link
|
|
45
|
+
*/
|
|
46
|
+
href: PropTypes.string,
|
|
47
|
+
/**
|
|
48
|
+
* AccessibilityRole for the link base
|
|
49
|
+
*/
|
|
50
|
+
accessibilityRole: PropTypes.string,
|
|
51
|
+
/**
|
|
52
|
+
* Children nodes that can be added
|
|
53
|
+
*/
|
|
54
|
+
variant: variantProp.propType,
|
|
55
|
+
/**
|
|
56
|
+
* Optional variant that may be passed down to the link's icon if there is one
|
|
57
|
+
*/
|
|
58
|
+
iconProps: PropTypes.exact(iconComponentPropTypes),
|
|
59
|
+
/**
|
|
60
|
+
* A function component for an SVG icon to render inside the link. Inherits size and color from
|
|
61
|
+
* the link and any Typography the link is nested inside.
|
|
62
|
+
*/
|
|
63
|
+
icon: PropTypes.elementType,
|
|
64
|
+
/**
|
|
65
|
+
* When `icon` is provided, use `iconPosition` to place the Icon to the left, right or inline with Link.
|
|
66
|
+
*/
|
|
67
|
+
iconPosition: PropTypes.oneOf(['left', 'right', 'inline']),
|
|
68
|
+
/**
|
|
69
|
+
* On Web if href is passed, React Native Web maps this object's props to
|
|
70
|
+
* `rel`, `target` and `download` attrs.
|
|
71
|
+
*/
|
|
72
|
+
hrefAttrs: PropTypes.shape(hrefAttrsProp.types),
|
|
30
73
|
/**
|
|
31
74
|
* The dataSet prop allows to pass data-* attributes element to the component.
|
|
32
75
|
*/
|
|
33
76
|
dataSet: PropTypes.object
|
|
34
|
-
};
|
|
35
|
-
export default Link;
|
|
77
|
+
};
|
package/lib/esm/Link/LinkBase.js
CHANGED
|
@@ -3,13 +3,23 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import Text from "react-native-web/dist/exports/Text";
|
|
4
4
|
import Platform from "react-native-web/dist/exports/Platform";
|
|
5
5
|
import StyleSheet from "react-native-web/dist/exports/StyleSheet";
|
|
6
|
-
import { a11yProps
|
|
6
|
+
import { a11yProps } from '../utils/props/a11yProps';
|
|
7
|
+
import { clickProps } from '../utils/props/clickProps';
|
|
8
|
+
import { getTokensPropType } from '../utils/props/tokens';
|
|
9
|
+
import { hrefAttrsProp } from '../utils/props/hrefAttrsProp';
|
|
10
|
+
import { linkProps } from '../utils/props/linkProps';
|
|
11
|
+
import { selectSystemProps } from '../utils/props/selectSystemProps';
|
|
12
|
+
import { variantProp } from '../utils/props/variantProp';
|
|
13
|
+
import { viewProps } from '../utils/props/viewProps';
|
|
14
|
+
import { contentfulProps } from '../utils/props/contentfulProps';
|
|
15
|
+
import { withLinkRouter } from '../utils/withLinkRouter';
|
|
7
16
|
import { resolvePressableTokens } from '../utils/pressability';
|
|
8
|
-
import {
|
|
9
|
-
import InlinePressable from './InlinePressable';
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
17
|
+
import { MobileIconTextContent } from './MobileIconTextContent';
|
|
18
|
+
import { InlinePressable } from './InlinePressable';
|
|
19
|
+
import { applyTextStyles, applyOuterBorder } from '../ThemeProvider/utils/styles';
|
|
20
|
+
import { useTheme } from '../ThemeProvider/useTheme';
|
|
21
|
+
import { iconComponentPropTypes } from '../Icon/Icon';
|
|
22
|
+
import { IconText } from '../Icon/IconText';
|
|
13
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
24
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, linkProps, viewProps, contentfulProps]);
|
|
15
25
|
const selectOuterBorderStyles = _ref => {
|
|
@@ -128,7 +138,7 @@ const selectIconTokens = _ref5 => {
|
|
|
128
138
|
* dropped in favour of investigating if a full-featured CSS-in-JS package could or
|
|
129
139
|
* should be used more widely (e.g. styled components)
|
|
130
140
|
*/
|
|
131
|
-
const
|
|
141
|
+
const LinkBaseInner = /*#__PURE__*/React.forwardRef((_ref6, ref) => {
|
|
132
142
|
let {
|
|
133
143
|
href,
|
|
134
144
|
icon,
|
|
@@ -228,8 +238,8 @@ const LinkBase = /*#__PURE__*/React.forwardRef((_ref6, ref) => {
|
|
|
228
238
|
}
|
|
229
239
|
});
|
|
230
240
|
});
|
|
231
|
-
|
|
232
|
-
|
|
241
|
+
LinkBaseInner.displayName = 'LinkBase';
|
|
242
|
+
LinkBaseInner.propTypes = {
|
|
233
243
|
...selectedSystemPropTypes,
|
|
234
244
|
tokens: getTokensPropType('Link'),
|
|
235
245
|
/**
|
|
@@ -237,9 +247,9 @@ LinkBase.propTypes = {
|
|
|
237
247
|
*/
|
|
238
248
|
href: PropTypes.string,
|
|
239
249
|
/**
|
|
240
|
-
*
|
|
250
|
+
* AccessibilityRole for the link base
|
|
241
251
|
*/
|
|
242
|
-
|
|
252
|
+
accessibilityRole: PropTypes.string,
|
|
243
253
|
/**
|
|
244
254
|
* Children nodes that can be added
|
|
245
255
|
*/
|
|
@@ -290,4 +300,4 @@ const staticStyles = StyleSheet.create({
|
|
|
290
300
|
})
|
|
291
301
|
}
|
|
292
302
|
});
|
|
293
|
-
export
|
|
303
|
+
export const LinkBase = withLinkRouter(LinkBaseInner);
|
|
@@ -3,10 +3,10 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import Text from "react-native-web/dist/exports/Text";
|
|
4
4
|
import View from "react-native-web/dist/exports/View";
|
|
5
5
|
import StyleSheet from "react-native-web/dist/exports/StyleSheet";
|
|
6
|
-
import Icon,
|
|
7
|
-
import { spacingProps } from '../utils';
|
|
6
|
+
import { Icon, iconComponentPropTypes } from '../Icon/Icon';
|
|
7
|
+
import { spacingProps } from '../utils/props/spacingProps';
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
const MobileIconTextContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
9
|
+
export const MobileIconTextContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
10
10
|
let {
|
|
11
11
|
space = 0,
|
|
12
12
|
iconPosition = 'left',
|
|
@@ -143,5 +143,4 @@ const staticStyles = StyleSheet.create({
|
|
|
143
143
|
inlineIconContainer: {
|
|
144
144
|
position: 'absolute'
|
|
145
145
|
}
|
|
146
|
-
});
|
|
147
|
-
export default MobileIconTextContent;
|
|
146
|
+
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { useThemeTokensCallback } from '../ThemeProvider';
|
|
4
|
-
import LinkBase from './LinkBase';
|
|
5
|
-
import { variantProp } from '../utils';
|
|
3
|
+
import { useThemeTokensCallback } from '../ThemeProvider/useThemeTokens';
|
|
4
|
+
import { LinkBase } from './LinkBase';
|
|
5
|
+
import { variantProp } from '../utils/props/variantProp';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* `TextButton` is a button that looks like a Link. It uses the same theming and variants as
|
|
@@ -10,7 +10,7 @@ import { variantProp } from '../utils';
|
|
|
10
10
|
* take place on the current page, or for navigation within an app.
|
|
11
11
|
*/
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
const TextButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
13
|
+
export const TextButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
14
14
|
let {
|
|
15
15
|
onPress,
|
|
16
16
|
children,
|
|
@@ -39,5 +39,4 @@ TextButton.propTypes = {
|
|
|
39
39
|
variant: variantProp.propType,
|
|
40
40
|
/** Accesibility role for TextButton */
|
|
41
41
|
accessibilityRole: PropTypes.string
|
|
42
|
-
};
|
|
43
|
-
export default TextButton;
|
|
42
|
+
};
|
package/lib/esm/List/List.js
CHANGED
|
@@ -3,7 +3,11 @@ import View from "react-native-web/dist/exports/View";
|
|
|
3
3
|
import Platform from "react-native-web/dist/exports/Platform";
|
|
4
4
|
import StyleSheet from "react-native-web/dist/exports/StyleSheet";
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import { a11yProps
|
|
6
|
+
import { a11yProps } from '../utils/props/a11yProps';
|
|
7
|
+
import { getTokensPropType } from '../utils/props/tokens';
|
|
8
|
+
import { selectSystemProps } from '../utils/props/selectSystemProps';
|
|
9
|
+
import { variantProp } from '../utils/props/variantProp';
|
|
10
|
+
import { viewProps } from '../utils/props/viewProps';
|
|
7
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
12
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, viewProps]);
|
|
9
13
|
const LIST_ITEM_TYPE = 'ListItem';
|
|
@@ -21,7 +25,7 @@ const isListItem = element => {
|
|
|
21
25
|
* An unordered List component has a child a ListItem that
|
|
22
26
|
* allows icon, dividers and customized typography
|
|
23
27
|
*/
|
|
24
|
-
const List = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
28
|
+
export const List = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
25
29
|
let {
|
|
26
30
|
children,
|
|
27
31
|
showDivider,
|
|
@@ -84,8 +88,7 @@ List.propTypes = {
|
|
|
84
88
|
showDivider: PropTypes.bool,
|
|
85
89
|
/**
|
|
86
90
|
* The vertical alignment of the icon in ListItems.
|
|
87
|
-
* This prop is passed down to ListItem components and can be overridden in individual
|
|
91
|
+
* This prop is passed down to ListItem components and can be overridden in individual ListItem components.
|
|
88
92
|
*/
|
|
89
93
|
iconVerticalAlign: PropTypes.oneOf(['top', 'center', 'bottom'])
|
|
90
|
-
};
|
|
91
|
-
export default List;
|
|
94
|
+
};
|
package/lib/esm/List/ListItem.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import ListItemBase from './ListItemBase';
|
|
4
|
-
import { useThemeTokens } from '../ThemeProvider';
|
|
5
|
-
import { getTokensPropType
|
|
3
|
+
import { ListItemBase } from './ListItemBase';
|
|
4
|
+
import { useThemeTokens } from '../ThemeProvider/useThemeTokens';
|
|
5
|
+
import { getTokensPropType } from '../utils/props/tokens';
|
|
6
|
+
import { variantProp } from '../utils/props/variantProp';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* ListItem is responsible for rendering icon or a bullet as side item
|
|
9
10
|
*/
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const ListItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
12
|
+
export const ListItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
12
13
|
let {
|
|
13
14
|
tokens,
|
|
14
15
|
variant,
|
|
@@ -45,5 +46,4 @@ ListItem.propTypes = {
|
|
|
45
46
|
iconColor: PropTypes.string,
|
|
46
47
|
/** Size of the icon */
|
|
47
48
|
iconSize: PropTypes.number
|
|
48
|
-
};
|
|
49
|
-
export default ListItem;
|
|
49
|
+
};
|
|
@@ -3,11 +3,15 @@ import View from "react-native-web/dist/exports/View";
|
|
|
3
3
|
import Platform from "react-native-web/dist/exports/Platform";
|
|
4
4
|
import StyleSheet from "react-native-web/dist/exports/StyleSheet";
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import { a11yProps
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
6
|
+
import { a11yProps } from '../utils/props/a11yProps';
|
|
7
|
+
import { getTokensPropType } from '../utils/props/tokens';
|
|
8
|
+
import { selectSystemProps } from '../utils/props/selectSystemProps';
|
|
9
|
+
import { variantProp } from '../utils/props/variantProp';
|
|
10
|
+
import { viewProps } from '../utils/props/viewProps';
|
|
11
|
+
import { ListItemContent } from './ListItemContent';
|
|
12
|
+
import { ListItemMark } from './ListItemMark';
|
|
13
|
+
import { Typography } from '../Typography/Typography';
|
|
14
|
+
import { useThemeTokens } from '../ThemeProvider/useThemeTokens';
|
|
11
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
16
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, viewProps]);
|
|
13
17
|
const VERTICAL_CENTERING_DIVISOR = 2;
|
|
@@ -47,7 +51,7 @@ const selectAlignmentStyles = iconVerticalAlign => ({
|
|
|
47
51
|
const calculateIconMarginTop = (itemIconSize, fontSize, lineHeightRatio) => {
|
|
48
52
|
return (fontSize * lineHeightRatio - itemIconSize) / VERTICAL_CENTERING_DIVISOR;
|
|
49
53
|
};
|
|
50
|
-
const ListItemBase = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
54
|
+
export const ListItemBase = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
51
55
|
let {
|
|
52
56
|
tokens,
|
|
53
57
|
icon,
|
|
@@ -178,5 +182,4 @@ ListItemBase.propTypes = {
|
|
|
178
182
|
* In case it is not the last item allow display divider
|
|
179
183
|
*/
|
|
180
184
|
showDivider: PropTypes.bool
|
|
181
|
-
};
|
|
182
|
-
export default ListItemBase;
|
|
185
|
+
};
|