@telus-uds/components-base 2.5.0 → 3.0.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 +20 -2
- package/lib/cjs/A11yInfoProvider/index.js +73 -0
- package/lib/cjs/A11yText/index.js +75 -0
- package/lib/cjs/ActionCard/ActionCard.js +349 -0
- package/lib/cjs/ActionCard/index.js +9 -0
- package/lib/cjs/ActivityIndicator/Spinner.js +85 -0
- package/lib/cjs/ActivityIndicator/Spinner.native.js +151 -0
- package/lib/cjs/ActivityIndicator/index.js +51 -0
- package/lib/cjs/ActivityIndicator/shared.js +20 -0
- package/lib/cjs/Autocomplete/Autocomplete.js +480 -0
- package/lib/cjs/Autocomplete/Loading.js +42 -0
- package/lib/cjs/Autocomplete/Suggestions.js +71 -0
- package/lib/cjs/Autocomplete/constants.js +10 -0
- package/lib/cjs/Autocomplete/dictionary.js +18 -0
- package/lib/cjs/Autocomplete/index.js +9 -0
- package/lib/cjs/Badge/Badge.js +109 -0
- package/lib/cjs/Badge/index.js +9 -0
- package/lib/cjs/BaseProvider/HydrationContext.js +56 -0
- package/lib/cjs/BaseProvider/index.js +46 -0
- package/lib/cjs/Box/Box.js +385 -0
- package/lib/cjs/Box/backgroundImageStylesMap.js +100 -0
- package/lib/cjs/Box/index.js +9 -0
- package/lib/cjs/Button/Button.js +43 -0
- package/lib/cjs/Button/ButtonBase.js +353 -0
- package/lib/cjs/Button/ButtonDropdown.js +182 -0
- package/lib/cjs/Button/ButtonGroup.js +279 -0
- package/lib/cjs/Button/ButtonLink.js +57 -0
- package/lib/cjs/Button/index.js +34 -0
- package/lib/cjs/Button/propTypes.js +53 -0
- package/lib/cjs/Card/Card.js +334 -0
- package/lib/cjs/Card/CardBase.js +127 -0
- package/lib/cjs/Card/PressableCardBase.js +121 -0
- package/lib/cjs/Card/index.js +32 -0
- package/lib/cjs/CardGroup/CardGroup.js +219 -0
- package/lib/cjs/CardGroup/dictionary.js +14 -0
- package/lib/cjs/CardGroup/index.js +9 -0
- package/lib/cjs/Carousel/Carousel.js +1046 -0
- package/lib/cjs/Carousel/CarouselContext.js +59 -0
- package/lib/cjs/Carousel/CarouselFirstFocus/CarouselFirstFocus.js +57 -0
- package/lib/cjs/Carousel/CarouselItem/CarouselItem.js +185 -0
- package/lib/cjs/Carousel/CarouselItem/index.js +9 -0
- package/lib/cjs/Carousel/CarouselStepTracker/CarouselStepTracker.js +101 -0
- package/lib/cjs/Carousel/CarouselStepTracker/index.js +9 -0
- package/lib/cjs/Carousel/CarouselTabs/CarouselTabs.js +54 -0
- package/lib/cjs/Carousel/CarouselTabs/CarouselTabsPanel.js +95 -0
- package/lib/cjs/Carousel/CarouselTabs/CarouselTabsPanelItem.js +125 -0
- package/lib/cjs/Carousel/CarouselTabs/index.js +9 -0
- package/lib/cjs/Carousel/CarouselThumbnail.js +120 -0
- package/lib/cjs/Carousel/CarouselThumbnailNavigation.js +78 -0
- package/lib/cjs/Carousel/Constants.js +13 -0
- package/lib/cjs/Carousel/dictionary.js +28 -0
- package/lib/cjs/Carousel/index.js +36 -0
- package/lib/cjs/Checkbox/Checkbox.js +349 -0
- package/lib/cjs/Checkbox/CheckboxButton.js +171 -0
- package/lib/cjs/Checkbox/CheckboxGroup.js +249 -0
- package/lib/cjs/Checkbox/CheckboxInput.js +55 -0
- package/lib/cjs/Checkbox/CheckboxInput.native.js +11 -0
- package/lib/cjs/Checkbox/index.js +16 -0
- package/lib/cjs/CheckboxCard/CheckboxCard.js +191 -0
- package/lib/cjs/CheckboxCard/index.js +9 -0
- package/lib/cjs/CheckboxCardGroup/CheckboxCardGroup.js +215 -0
- package/lib/cjs/CheckboxCardGroup/index.js +9 -0
- package/lib/cjs/ColourToggle/ColourBubble.js +133 -0
- package/lib/cjs/ColourToggle/ColourToggle.js +98 -0
- package/lib/cjs/ColourToggle/index.js +9 -0
- package/lib/cjs/Divider/Divider.js +138 -0
- package/lib/cjs/Divider/index.js +9 -0
- package/lib/cjs/DownloadApp/DownloadApp.js +167 -0
- package/lib/cjs/DownloadApp/dictionary.js +16 -0
- package/lib/cjs/DownloadApp/index.js +9 -0
- package/lib/cjs/ExpandCollapse/Accordion.js +20 -0
- package/lib/cjs/ExpandCollapse/Control.js +170 -0
- package/lib/cjs/ExpandCollapse/ExpandCollapse.js +105 -0
- package/lib/cjs/ExpandCollapse/Panel.js +248 -0
- package/lib/cjs/ExpandCollapse/dictionary.js +16 -0
- package/lib/cjs/ExpandCollapse/index.js +19 -0
- package/lib/cjs/ExpandCollapseMini/ExpandCollapseMini.js +84 -0
- package/lib/cjs/ExpandCollapseMini/ExpandCollapseMiniControl.js +133 -0
- package/lib/cjs/ExpandCollapseMini/index.js +9 -0
- package/lib/cjs/Feedback/Feedback.js +167 -0
- package/lib/cjs/Feedback/index.js +9 -0
- package/lib/cjs/Fieldset/Fieldset.js +198 -0
- package/lib/cjs/Fieldset/FieldsetContainer.js +55 -0
- package/lib/cjs/Fieldset/FieldsetContainer.native.js +39 -0
- package/lib/cjs/Fieldset/Legend.js +29 -0
- package/lib/cjs/Fieldset/Legend.native.js +36 -0
- package/lib/cjs/Fieldset/cssReset.js +20 -0
- package/lib/cjs/Fieldset/index.js +9 -0
- package/lib/cjs/FileUpload/FileUpload.js +370 -0
- package/lib/cjs/FileUpload/NotificationContent.js +59 -0
- package/lib/cjs/FileUpload/dictionary.js +50 -0
- package/lib/cjs/FileUpload/index.js +9 -0
- package/lib/cjs/FlexGrid/Col/Col.js +264 -0
- package/lib/cjs/FlexGrid/Col/index.js +9 -0
- package/lib/cjs/FlexGrid/FlexGrid.js +165 -0
- package/lib/cjs/FlexGrid/Row/Row.js +188 -0
- package/lib/cjs/FlexGrid/Row/index.js +9 -0
- package/lib/cjs/FlexGrid/helpers/index.js +21 -0
- package/lib/cjs/FlexGrid/index.js +9 -0
- package/lib/cjs/FlexGrid/providers/GutterContext.js +10 -0
- package/lib/cjs/Footnote/Footnote.js +323 -0
- package/lib/cjs/Footnote/FootnoteLink.js +114 -0
- package/lib/cjs/Footnote/dictionary.js +18 -0
- package/lib/cjs/Footnote/index.js +11 -0
- package/lib/cjs/HorizontalScroll/HorizontalScroll.js +175 -0
- package/lib/cjs/HorizontalScroll/HorizontalScrollButton.js +86 -0
- package/lib/cjs/HorizontalScroll/ScrollViewEnd.js +53 -0
- package/lib/cjs/HorizontalScroll/ScrollViewEnd.native.js +32 -0
- package/lib/cjs/HorizontalScroll/dictionary.js +17 -0
- package/lib/cjs/HorizontalScroll/index.js +26 -0
- package/lib/cjs/HorizontalScroll/itemPositions.js +122 -0
- package/lib/cjs/Icon/Icon.js +101 -0
- package/lib/cjs/Icon/IconText.js +117 -0
- package/lib/cjs/Icon/index.js +24 -0
- package/lib/cjs/IconButton/IconButton.js +208 -0
- package/lib/cjs/IconButton/index.js +9 -0
- package/lib/cjs/InputLabel/InputLabel.js +184 -0
- package/lib/cjs/InputLabel/LabelContent.js +35 -0
- package/lib/cjs/InputLabel/LabelContent.native.js +26 -0
- package/lib/cjs/InputLabel/index.js +9 -0
- package/lib/cjs/InputSupports/InputSupports.js +140 -0
- package/lib/cjs/InputSupports/dictionary.js +18 -0
- package/lib/cjs/InputSupports/index.js +9 -0
- package/lib/cjs/InputSupports/useInputSupports.js +47 -0
- package/lib/cjs/Link/ChevronLink.js +73 -0
- package/lib/cjs/Link/InlinePressable.js +53 -0
- package/lib/cjs/Link/InlinePressable.native.js +93 -0
- package/lib/cjs/Link/Link.js +35 -0
- package/lib/cjs/Link/LinkBase.js +283 -0
- package/lib/cjs/Link/TextButton.js +48 -0
- package/lib/cjs/Link/index.js +34 -0
- package/lib/cjs/List/List.js +83 -0
- package/lib/cjs/List/ListItem.js +37 -0
- package/lib/cjs/List/ListItemBase.js +171 -0
- package/lib/cjs/List/ListItemContent.js +80 -0
- package/lib/cjs/List/ListItemMark.js +132 -0
- package/lib/cjs/List/PressableListItemBase.js +117 -0
- package/lib/cjs/List/index.js +23 -0
- package/lib/cjs/Listbox/GroupControl.js +112 -0
- package/lib/cjs/Listbox/Listbox.js +177 -0
- package/lib/cjs/Listbox/ListboxContext.js +11 -0
- package/lib/cjs/Listbox/ListboxGroup.js +133 -0
- package/lib/cjs/Listbox/ListboxItem.js +83 -0
- package/lib/cjs/Listbox/ListboxOverlay.js +87 -0
- package/lib/cjs/Listbox/PressableItem.js +146 -0
- package/lib/cjs/Listbox/index.js +9 -0
- package/lib/cjs/Modal/Modal.js +377 -0
- package/lib/cjs/Modal/ModalContent.js +205 -0
- package/lib/cjs/Modal/WebModal.js +83 -0
- package/lib/cjs/Modal/dictionary.js +15 -0
- package/lib/cjs/Modal/index.js +9 -0
- package/lib/cjs/MultiSelectFilter/ModalOverlay.js +162 -0
- package/lib/cjs/MultiSelectFilter/MultiSelectFilter.js +544 -0
- package/lib/cjs/MultiSelectFilter/dictionary.js +18 -0
- package/lib/cjs/MultiSelectFilter/index.js +9 -0
- package/lib/cjs/Notification/Notification.js +437 -0
- package/lib/cjs/Notification/dictionary.js +14 -0
- package/lib/cjs/Notification/index.js +9 -0
- package/lib/cjs/OrderedList/Item.js +166 -0
- package/lib/cjs/OrderedList/ItemBase.js +51 -0
- package/lib/cjs/OrderedList/OrderedList.js +70 -0
- package/lib/cjs/OrderedList/OrderedListBase.js +44 -0
- package/lib/cjs/OrderedList/index.js +9 -0
- package/lib/cjs/Pagination/PageButton.js +82 -0
- package/lib/cjs/Pagination/Pagination.js +226 -0
- package/lib/cjs/Pagination/SideButton.js +119 -0
- package/lib/cjs/Pagination/constants.js +9 -0
- package/lib/cjs/Pagination/dictionary.js +24 -0
- package/lib/cjs/Pagination/index.js +9 -0
- package/lib/cjs/Pagination/usePagination.js +83 -0
- package/lib/cjs/Portal/Portal.js +56 -0
- package/lib/cjs/Portal/Portal.native.js +8 -0
- package/lib/cjs/Portal/index.js +9 -0
- package/lib/cjs/PriceLockup/PriceLockup.js +230 -0
- package/lib/cjs/PriceLockup/index.js +9 -0
- package/lib/cjs/PriceLockup/utils/renderFootnoteContent.js +92 -0
- package/lib/cjs/PriceLockup/utils/renderFootnoteLinks.js +35 -0
- package/lib/cjs/PriceLockup/utils/renderPrice.js +146 -0
- package/lib/cjs/PriceLockup/utils/renderTypography.js +30 -0
- package/lib/cjs/ProductCard/ProductCard.js +237 -0
- package/lib/cjs/ProductCard/dictionary.js +44 -0
- package/lib/cjs/ProductCard/index.js +9 -0
- package/lib/cjs/ProductCardGroup/ProductCardGroup.js +77 -0
- package/lib/cjs/ProductCardGroup/index.js +9 -0
- package/lib/cjs/Progress/Progress.js +101 -0
- package/lib/cjs/Progress/ProgressBar.js +168 -0
- package/lib/cjs/Progress/ProgressBarBackground.js +49 -0
- package/lib/cjs/Progress/constants.js +10 -0
- package/lib/cjs/Progress/index.js +11 -0
- package/lib/cjs/QuickLinks/QuickLinks.js +83 -0
- package/lib/cjs/QuickLinks/QuickLinksCard.js +38 -0
- package/lib/cjs/QuickLinks/QuickLinksItem.js +56 -0
- package/lib/cjs/QuickLinks/index.js +11 -0
- package/lib/cjs/QuickLinksFeature/QuickLinksFeature.js +74 -0
- package/lib/cjs/QuickLinksFeature/QuickLinksFeatureItem.js +152 -0
- package/lib/cjs/QuickLinksFeature/index.js +11 -0
- package/lib/cjs/Radio/Radio.js +291 -0
- package/lib/cjs/Radio/RadioButton.js +191 -0
- package/lib/cjs/Radio/RadioGroup.js +262 -0
- package/lib/cjs/Radio/RadioInput.js +55 -0
- package/lib/cjs/Radio/RadioInput.native.js +11 -0
- package/lib/cjs/Radio/index.js +16 -0
- package/lib/cjs/RadioCard/RadioCard.js +219 -0
- package/lib/cjs/RadioCard/RadioCardGroup.js +266 -0
- package/lib/cjs/RadioCard/index.js +16 -0
- package/lib/cjs/Responsive/Responsive.js +70 -0
- package/lib/cjs/Responsive/ResponsiveProp.js +45 -0
- package/lib/cjs/Responsive/ResponsiveWithMediaQueryStyleSheet.js +75 -0
- package/lib/cjs/Responsive/index.js +9 -0
- package/lib/cjs/Search/Search.js +281 -0
- package/lib/cjs/Search/dictionary.js +18 -0
- package/lib/cjs/Search/index.js +9 -0
- package/lib/cjs/Select/Group.js +31 -0
- package/lib/cjs/Select/Group.native.js +23 -0
- package/lib/cjs/Select/Item.js +30 -0
- package/lib/cjs/Select/Item.native.js +8 -0
- package/lib/cjs/Select/Picker.js +103 -0
- package/lib/cjs/Select/Picker.native.js +130 -0
- package/lib/cjs/Select/Select.js +339 -0
- package/lib/cjs/Select/constants.js +13 -0
- package/lib/cjs/Select/index.js +13 -0
- package/lib/cjs/SideNav/Item.js +150 -0
- package/lib/cjs/SideNav/ItemContent.js +56 -0
- package/lib/cjs/SideNav/ItemsGroup.js +125 -0
- package/lib/cjs/SideNav/SideNav.js +139 -0
- package/lib/cjs/SideNav/index.js +13 -0
- package/lib/cjs/Skeleton/Skeleton.js +184 -0
- package/lib/cjs/Skeleton/index.js +9 -0
- package/lib/cjs/Skeleton/skeleton.constant.js +8 -0
- package/lib/cjs/Skeleton/skeletonWebAnimation.js +20 -0
- package/lib/cjs/Skeleton/useSkeletonNativeAnimation.js +35 -0
- package/lib/cjs/SkipLink/SkipLink.js +196 -0
- package/lib/cjs/SkipLink/index.js +9 -0
- package/lib/cjs/Spacer/Spacer.js +100 -0
- package/lib/cjs/Spacer/index.js +9 -0
- package/lib/cjs/StackView/StackView.js +133 -0
- package/lib/cjs/StackView/StackWrap.js +54 -0
- package/lib/cjs/StackView/StackWrap.native.js +10 -0
- package/lib/cjs/StackView/StackWrapBox.js +121 -0
- package/lib/cjs/StackView/StackWrapGap.js +68 -0
- package/lib/cjs/StackView/common.js +43 -0
- package/lib/cjs/StackView/getStackedContent.js +128 -0
- package/lib/cjs/StackView/index.js +23 -0
- package/lib/cjs/Status/Status.js +176 -0
- package/lib/cjs/Status/index.js +9 -0
- package/lib/cjs/StepTracker/Step.js +271 -0
- package/lib/cjs/StepTracker/StepTracker.js +220 -0
- package/lib/cjs/StepTracker/dictionary.js +36 -0
- package/lib/cjs/StepTracker/index.js +9 -0
- package/lib/cjs/TabBar/TabBar.js +132 -0
- package/lib/cjs/TabBar/TabBarItem.js +182 -0
- package/lib/cjs/TabBar/index.js +9 -0
- package/lib/cjs/Tabs/Tabs.js +188 -0
- package/lib/cjs/Tabs/TabsItem.js +245 -0
- package/lib/cjs/Tabs/index.js +9 -0
- package/lib/cjs/Tags/Tags.js +252 -0
- package/lib/cjs/Tags/index.js +9 -0
- package/lib/cjs/TextInput/TextArea.js +105 -0
- package/lib/cjs/TextInput/TextInput.js +86 -0
- package/lib/cjs/TextInput/TextInputBase.js +502 -0
- package/lib/cjs/TextInput/dictionary.js +18 -0
- package/lib/cjs/TextInput/index.js +20 -0
- package/lib/cjs/TextInput/propTypes.js +40 -0
- package/lib/cjs/ThemeProvider/ThemeProvider.js +91 -0
- package/lib/cjs/ThemeProvider/index.js +59 -0
- package/lib/cjs/ThemeProvider/useResponsiveThemeTokens.js +88 -0
- package/lib/cjs/ThemeProvider/useSetTheme.js +30 -0
- package/lib/cjs/ThemeProvider/useTheme.js +17 -0
- package/lib/cjs/ThemeProvider/useThemeTokens.js +118 -0
- package/lib/cjs/ThemeProvider/utils/index.js +27 -0
- package/lib/cjs/ThemeProvider/utils/styles.js +208 -0
- package/lib/cjs/ThemeProvider/utils/theme-tokens.js +173 -0
- package/lib/cjs/Timeline/Timeline.js +175 -0
- package/lib/cjs/Timeline/index.js +9 -0
- package/lib/cjs/ToggleSwitch/ToggleSwitch.js +286 -0
- package/lib/cjs/ToggleSwitch/ToggleSwitchGroup.js +215 -0
- package/lib/cjs/ToggleSwitch/index.js +20 -0
- package/lib/cjs/Tooltip/Backdrop.js +57 -0
- package/lib/cjs/Tooltip/Backdrop.native.js +46 -0
- package/lib/cjs/Tooltip/Tooltip.js +295 -0
- package/lib/cjs/Tooltip/Tooltip.native.js +370 -0
- package/lib/cjs/Tooltip/dictionary.js +14 -0
- package/lib/cjs/Tooltip/getTooltipPosition.js +175 -0
- package/lib/cjs/Tooltip/index.js +12 -0
- package/lib/cjs/Tooltip/shared.js +48 -0
- package/lib/cjs/TooltipButton/TooltipButton.js +97 -0
- package/lib/cjs/TooltipButton/index.js +9 -0
- package/lib/cjs/Typography/Typography.js +271 -0
- package/lib/cjs/Typography/index.js +9 -0
- package/lib/cjs/Validator/Validator.js +228 -0
- package/lib/cjs/Validator/index.js +9 -0
- package/lib/cjs/ViewportProvider/ViewportProvider.js +32 -0
- package/lib/cjs/ViewportProvider/index.js +22 -0
- package/lib/cjs/ViewportProvider/useViewport.js +10 -0
- package/lib/cjs/ViewportProvider/useViewportListener.js +43 -0
- package/lib/cjs/index.js +781 -0
- package/lib/cjs/server.js +40 -0
- package/lib/cjs/utils/BaseView/BaseView.js +47 -0
- package/lib/cjs/utils/BaseView/BaseView.native.js +12 -0
- package/lib/cjs/utils/BaseView/index.js +9 -0
- package/lib/cjs/utils/a11y/index.js +27 -0
- package/lib/cjs/utils/a11y/semantics.js +145 -0
- package/lib/cjs/utils/a11y/textSize.js +44 -0
- package/lib/cjs/utils/animation/index.js +13 -0
- package/lib/cjs/utils/animation/useVerticalExpandAnimation.js +92 -0
- package/lib/cjs/utils/children.js +121 -0
- package/lib/cjs/utils/containUniqueFields.js +30 -0
- package/lib/cjs/utils/convertFromMegaByteToByte.js +16 -0
- package/lib/cjs/utils/floating-ui/index.js +42 -0
- package/lib/cjs/utils/floating-ui/index.native.js +42 -0
- package/lib/cjs/utils/formatImageSource.js +33 -0
- package/lib/cjs/utils/hasOwnProperty.js +17 -0
- package/lib/cjs/utils/htmlAttrs.js +30 -0
- package/lib/cjs/utils/index.js +245 -0
- package/lib/cjs/utils/info/index.js +14 -0
- package/lib/cjs/utils/info/platform/index.js +18 -0
- package/lib/cjs/utils/info/platform/platform.android.js +7 -0
- package/lib/cjs/utils/info/platform/platform.ios.js +7 -0
- package/lib/cjs/utils/info/platform/platform.js +7 -0
- package/lib/cjs/utils/info/platform/platform.native.js +10 -0
- package/lib/cjs/utils/info/versions.js +12 -0
- package/lib/cjs/utils/input.js +193 -0
- package/lib/cjs/utils/pressability.js +122 -0
- package/lib/cjs/utils/props/a11yProps.js +315 -0
- package/lib/cjs/utils/props/clickProps.js +32 -0
- package/lib/cjs/utils/props/componentPropType.js +55 -0
- package/lib/cjs/utils/props/contentfulProps.js +29 -0
- package/lib/cjs/utils/props/copyPropTypes.js +9 -0
- package/lib/cjs/utils/props/getPropSelector.js +58 -0
- package/lib/cjs/utils/props/handlerProps.js +111 -0
- package/lib/cjs/utils/props/hrefAttrsProp.js +39 -0
- package/lib/cjs/utils/props/index.js +176 -0
- package/lib/cjs/utils/props/inputSupportsProps.js +87 -0
- package/lib/cjs/utils/props/linkProps.js +50 -0
- package/lib/cjs/utils/props/paddingProp.js +16 -0
- package/lib/cjs/utils/props/pressProps.js +49 -0
- package/lib/cjs/utils/props/rectProp.js +16 -0
- package/lib/cjs/utils/props/responsiveProps.js +35 -0
- package/lib/cjs/utils/props/selectSystemProps.js +29 -0
- package/lib/cjs/utils/props/spacingProps.js +63 -0
- package/lib/cjs/utils/props/textInputProps.js +194 -0
- package/lib/cjs/utils/props/textProps.js +67 -0
- package/lib/cjs/utils/props/tokens.js +140 -0
- package/lib/cjs/utils/props/variantProp.js +24 -0
- package/lib/cjs/utils/props/viewProps.js +28 -0
- package/lib/cjs/utils/ssr-media-query/create-stylesheet/create-stylesheet-mobile.js +55 -0
- package/lib/cjs/utils/ssr-media-query/create-stylesheet/index.android.js +9 -0
- package/lib/cjs/utils/ssr-media-query/create-stylesheet/index.ios.js +9 -0
- package/lib/cjs/utils/ssr-media-query/create-stylesheet/index.js +42 -0
- package/lib/cjs/utils/ssr-media-query/hash.js +19 -0
- package/lib/cjs/utils/ssr-media-query/index.js +18 -0
- package/lib/cjs/utils/ssr-media-query/utils/common.js +44 -0
- package/lib/cjs/utils/ssr-media-query/utils/create-declaration-block.js +23 -0
- package/lib/cjs/utils/ssr-media-query/utils/create-media-query-styles.js +66 -0
- package/lib/cjs/utils/ssr-media-query/utils/hyphenate-style-name.js +18 -0
- package/lib/cjs/utils/ssr-media-query/utils/inject.js +47 -0
- package/lib/cjs/utils/ssr.js +150 -0
- package/lib/cjs/utils/transformGradient.js +22 -0
- package/lib/cjs/utils/useCopy.js +48 -0
- package/lib/cjs/utils/useHash.js +44 -0
- package/lib/cjs/utils/useHash.native.js +12 -0
- package/lib/cjs/utils/useOverlaidPosition.js +242 -0
- package/lib/cjs/utils/useResponsiveProp.js +53 -0
- package/lib/cjs/utils/useSafeLayoutEffect.js +34 -0
- package/lib/cjs/utils/useScrollBlocking.js +55 -0
- package/lib/cjs/utils/useScrollBlocking.native.js +9 -0
- package/lib/cjs/utils/useSpacingScale.js +129 -0
- package/lib/cjs/utils/useUniqueId.js +17 -0
- package/lib/cjs/utils/withLinkRouter.js +89 -0
- package/lib/{Carousel → esm/Carousel}/Carousel.js +166 -107
- package/lib/{Carousel → esm/Carousel}/CarouselItem/CarouselItem.js +23 -6
- package/lib/esm/Carousel/Constants.js +7 -0
- package/lib/{TextInput → esm/TextInput}/TextInputBase.js +30 -1
- package/lib/package.json +88 -0
- package/package.json +13 -11
- package/src/Carousel/Carousel.jsx +228 -155
- package/src/Carousel/CarouselItem/CarouselItem.jsx +14 -4
- package/src/Carousel/Constants.js +4 -0
- package/src/TextInput/TextInputBase.jsx +30 -1
- package/lib/Carousel/Constants.js +0 -3
- /package/lib/{A11yInfoProvider → esm/A11yInfoProvider}/index.js +0 -0
- /package/lib/{A11yText → esm/A11yText}/index.js +0 -0
- /package/lib/{ActionCard → esm/ActionCard}/ActionCard.js +0 -0
- /package/lib/{ActionCard → esm/ActionCard}/index.js +0 -0
- /package/lib/{ActivityIndicator → esm/ActivityIndicator}/Spinner.js +0 -0
- /package/lib/{ActivityIndicator → esm/ActivityIndicator}/Spinner.native.js +0 -0
- /package/lib/{ActivityIndicator → esm/ActivityIndicator}/index.js +0 -0
- /package/lib/{ActivityIndicator → esm/ActivityIndicator}/shared.js +0 -0
- /package/lib/{Autocomplete → esm/Autocomplete}/Autocomplete.js +0 -0
- /package/lib/{Autocomplete → esm/Autocomplete}/Loading.js +0 -0
- /package/lib/{Autocomplete → esm/Autocomplete}/Suggestions.js +0 -0
- /package/lib/{Autocomplete → esm/Autocomplete}/constants.js +0 -0
- /package/lib/{Autocomplete → esm/Autocomplete}/dictionary.js +0 -0
- /package/lib/{Autocomplete → esm/Autocomplete}/index.js +0 -0
- /package/lib/{Badge → esm/Badge}/Badge.js +0 -0
- /package/lib/{Badge → esm/Badge}/index.js +0 -0
- /package/lib/{BaseProvider → esm/BaseProvider}/HydrationContext.js +0 -0
- /package/lib/{BaseProvider → esm/BaseProvider}/index.js +0 -0
- /package/lib/{Box → esm/Box}/Box.js +0 -0
- /package/lib/{Box → esm/Box}/backgroundImageStylesMap.js +0 -0
- /package/lib/{Box → esm/Box}/index.js +0 -0
- /package/lib/{Button → esm/Button}/Button.js +0 -0
- /package/lib/{Button → esm/Button}/ButtonBase.js +0 -0
- /package/lib/{Button → esm/Button}/ButtonDropdown.js +0 -0
- /package/lib/{Button → esm/Button}/ButtonGroup.js +0 -0
- /package/lib/{Button → esm/Button}/ButtonLink.js +0 -0
- /package/lib/{Button → esm/Button}/index.js +0 -0
- /package/lib/{Button → esm/Button}/propTypes.js +0 -0
- /package/lib/{Card → esm/Card}/Card.js +0 -0
- /package/lib/{Card → esm/Card}/CardBase.js +0 -0
- /package/lib/{Card → esm/Card}/PressableCardBase.js +0 -0
- /package/lib/{Card → esm/Card}/index.js +0 -0
- /package/lib/{CardGroup → esm/CardGroup}/CardGroup.js +0 -0
- /package/lib/{CardGroup → esm/CardGroup}/dictionary.js +0 -0
- /package/lib/{CardGroup → esm/CardGroup}/index.js +0 -0
- /package/lib/{Carousel → esm/Carousel}/CarouselContext.js +0 -0
- /package/lib/{Carousel → esm/Carousel}/CarouselFirstFocus/CarouselFirstFocus.js +0 -0
- /package/lib/{Carousel → esm/Carousel}/CarouselItem/index.js +0 -0
- /package/lib/{Carousel → esm/Carousel}/CarouselStepTracker/CarouselStepTracker.js +0 -0
- /package/lib/{Carousel → esm/Carousel}/CarouselStepTracker/index.js +0 -0
- /package/lib/{Carousel → esm/Carousel}/CarouselTabs/CarouselTabs.js +0 -0
- /package/lib/{Carousel → esm/Carousel}/CarouselTabs/CarouselTabsPanel.js +0 -0
- /package/lib/{Carousel → esm/Carousel}/CarouselTabs/CarouselTabsPanelItem.js +0 -0
- /package/lib/{Carousel → esm/Carousel}/CarouselTabs/index.js +0 -0
- /package/lib/{Carousel → esm/Carousel}/CarouselThumbnail.js +0 -0
- /package/lib/{Carousel → esm/Carousel}/CarouselThumbnailNavigation.js +0 -0
- /package/lib/{Carousel → esm/Carousel}/dictionary.js +0 -0
- /package/lib/{Carousel → esm/Carousel}/index.js +0 -0
- /package/lib/{Checkbox → esm/Checkbox}/Checkbox.js +0 -0
- /package/lib/{Checkbox → esm/Checkbox}/CheckboxButton.js +0 -0
- /package/lib/{Checkbox → esm/Checkbox}/CheckboxGroup.js +0 -0
- /package/lib/{Checkbox → esm/Checkbox}/CheckboxInput.js +0 -0
- /package/lib/{Checkbox → esm/Checkbox}/CheckboxInput.native.js +0 -0
- /package/lib/{Checkbox → esm/Checkbox}/index.js +0 -0
- /package/lib/{CheckboxCard → esm/CheckboxCard}/CheckboxCard.js +0 -0
- /package/lib/{CheckboxCard → esm/CheckboxCard}/index.js +0 -0
- /package/lib/{CheckboxCardGroup → esm/CheckboxCardGroup}/CheckboxCardGroup.js +0 -0
- /package/lib/{CheckboxCardGroup → esm/CheckboxCardGroup}/index.js +0 -0
- /package/lib/{ColourToggle → esm/ColourToggle}/ColourBubble.js +0 -0
- /package/lib/{ColourToggle → esm/ColourToggle}/ColourToggle.js +0 -0
- /package/lib/{ColourToggle → esm/ColourToggle}/index.js +0 -0
- /package/lib/{Divider → esm/Divider}/Divider.js +0 -0
- /package/lib/{Divider → esm/Divider}/index.js +0 -0
- /package/lib/{DownloadApp → esm/DownloadApp}/DownloadApp.js +0 -0
- /package/lib/{DownloadApp → esm/DownloadApp}/dictionary.js +0 -0
- /package/lib/{DownloadApp → esm/DownloadApp}/index.js +0 -0
- /package/lib/{ExpandCollapse → esm/ExpandCollapse}/Accordion.js +0 -0
- /package/lib/{ExpandCollapse → esm/ExpandCollapse}/Control.js +0 -0
- /package/lib/{ExpandCollapse → esm/ExpandCollapse}/ExpandCollapse.js +0 -0
- /package/lib/{ExpandCollapse → esm/ExpandCollapse}/Panel.js +0 -0
- /package/lib/{ExpandCollapse → esm/ExpandCollapse}/dictionary.js +0 -0
- /package/lib/{ExpandCollapse → esm/ExpandCollapse}/index.js +0 -0
- /package/lib/{ExpandCollapseMini → esm/ExpandCollapseMini}/ExpandCollapseMini.js +0 -0
- /package/lib/{ExpandCollapseMini → esm/ExpandCollapseMini}/ExpandCollapseMiniControl.js +0 -0
- /package/lib/{ExpandCollapseMini → esm/ExpandCollapseMini}/index.js +0 -0
- /package/lib/{Feedback → esm/Feedback}/Feedback.js +0 -0
- /package/lib/{Feedback → esm/Feedback}/index.js +0 -0
- /package/lib/{Fieldset → esm/Fieldset}/Fieldset.js +0 -0
- /package/lib/{Fieldset → esm/Fieldset}/FieldsetContainer.js +0 -0
- /package/lib/{Fieldset → esm/Fieldset}/FieldsetContainer.native.js +0 -0
- /package/lib/{Fieldset → esm/Fieldset}/Legend.js +0 -0
- /package/lib/{Fieldset → esm/Fieldset}/Legend.native.js +0 -0
- /package/lib/{Fieldset → esm/Fieldset}/cssReset.js +0 -0
- /package/lib/{Fieldset → esm/Fieldset}/index.js +0 -0
- /package/lib/{FileUpload → esm/FileUpload}/FileUpload.js +0 -0
- /package/lib/{FileUpload → esm/FileUpload}/NotificationContent.js +0 -0
- /package/lib/{FileUpload → esm/FileUpload}/dictionary.js +0 -0
- /package/lib/{FileUpload → esm/FileUpload}/index.js +0 -0
- /package/lib/{FlexGrid → esm/FlexGrid}/Col/Col.js +0 -0
- /package/lib/{FlexGrid → esm/FlexGrid}/Col/index.js +0 -0
- /package/lib/{FlexGrid → esm/FlexGrid}/FlexGrid.js +0 -0
- /package/lib/{FlexGrid → esm/FlexGrid}/Row/Row.js +0 -0
- /package/lib/{FlexGrid → esm/FlexGrid}/Row/index.js +0 -0
- /package/lib/{FlexGrid → esm/FlexGrid}/helpers/index.js +0 -0
- /package/lib/{FlexGrid → esm/FlexGrid}/index.js +0 -0
- /package/lib/{FlexGrid → esm/FlexGrid}/providers/GutterContext.js +0 -0
- /package/lib/{Footnote → esm/Footnote}/Footnote.js +0 -0
- /package/lib/{Footnote → esm/Footnote}/FootnoteLink.js +0 -0
- /package/lib/{Footnote → esm/Footnote}/dictionary.js +0 -0
- /package/lib/{Footnote → esm/Footnote}/index.js +0 -0
- /package/lib/{HorizontalScroll → esm/HorizontalScroll}/HorizontalScroll.js +0 -0
- /package/lib/{HorizontalScroll → esm/HorizontalScroll}/HorizontalScrollButton.js +0 -0
- /package/lib/{HorizontalScroll → esm/HorizontalScroll}/ScrollViewEnd.js +0 -0
- /package/lib/{HorizontalScroll → esm/HorizontalScroll}/ScrollViewEnd.native.js +0 -0
- /package/lib/{HorizontalScroll → esm/HorizontalScroll}/dictionary.js +0 -0
- /package/lib/{HorizontalScroll → esm/HorizontalScroll}/index.js +0 -0
- /package/lib/{HorizontalScroll → esm/HorizontalScroll}/itemPositions.js +0 -0
- /package/lib/{Icon → esm/Icon}/Icon.js +0 -0
- /package/lib/{Icon → esm/Icon}/IconText.js +0 -0
- /package/lib/{Icon → esm/Icon}/index.js +0 -0
- /package/lib/{IconButton → esm/IconButton}/IconButton.js +0 -0
- /package/lib/{IconButton → esm/IconButton}/index.js +0 -0
- /package/lib/{InputLabel → esm/InputLabel}/InputLabel.js +0 -0
- /package/lib/{InputLabel → esm/InputLabel}/LabelContent.js +0 -0
- /package/lib/{InputLabel → esm/InputLabel}/LabelContent.native.js +0 -0
- /package/lib/{InputLabel → esm/InputLabel}/index.js +0 -0
- /package/lib/{InputSupports → esm/InputSupports}/InputSupports.js +0 -0
- /package/lib/{InputSupports → esm/InputSupports}/dictionary.js +0 -0
- /package/lib/{InputSupports → esm/InputSupports}/index.js +0 -0
- /package/lib/{InputSupports → esm/InputSupports}/useInputSupports.js +0 -0
- /package/lib/{Link → esm/Link}/ChevronLink.js +0 -0
- /package/lib/{Link → esm/Link}/InlinePressable.js +0 -0
- /package/lib/{Link → esm/Link}/InlinePressable.native.js +0 -0
- /package/lib/{Link → esm/Link}/Link.js +0 -0
- /package/lib/{Link → esm/Link}/LinkBase.js +0 -0
- /package/lib/{Link → esm/Link}/TextButton.js +0 -0
- /package/lib/{Link → esm/Link}/index.js +0 -0
- /package/lib/{List → esm/List}/List.js +0 -0
- /package/lib/{List → esm/List}/ListItem.js +0 -0
- /package/lib/{List → esm/List}/ListItemBase.js +0 -0
- /package/lib/{List → esm/List}/ListItemContent.js +0 -0
- /package/lib/{List → esm/List}/ListItemMark.js +0 -0
- /package/lib/{List → esm/List}/PressableListItemBase.js +0 -0
- /package/lib/{List → esm/List}/index.js +0 -0
- /package/lib/{Listbox → esm/Listbox}/GroupControl.js +0 -0
- /package/lib/{Listbox → esm/Listbox}/Listbox.js +0 -0
- /package/lib/{Listbox → esm/Listbox}/ListboxContext.js +0 -0
- /package/lib/{Listbox → esm/Listbox}/ListboxGroup.js +0 -0
- /package/lib/{Listbox → esm/Listbox}/ListboxItem.js +0 -0
- /package/lib/{Listbox → esm/Listbox}/ListboxOverlay.js +0 -0
- /package/lib/{Listbox → esm/Listbox}/PressableItem.js +0 -0
- /package/lib/{Listbox → esm/Listbox}/index.js +0 -0
- /package/lib/{Modal → esm/Modal}/Modal.js +0 -0
- /package/lib/{Modal → esm/Modal}/ModalContent.js +0 -0
- /package/lib/{Modal → esm/Modal}/WebModal.js +0 -0
- /package/lib/{Modal → esm/Modal}/dictionary.js +0 -0
- /package/lib/{Modal → esm/Modal}/index.js +0 -0
- /package/lib/{MultiSelectFilter → esm/MultiSelectFilter}/ModalOverlay.js +0 -0
- /package/lib/{MultiSelectFilter → esm/MultiSelectFilter}/MultiSelectFilter.js +0 -0
- /package/lib/{MultiSelectFilter → esm/MultiSelectFilter}/dictionary.js +0 -0
- /package/lib/{MultiSelectFilter → esm/MultiSelectFilter}/index.js +0 -0
- /package/lib/{Notification → esm/Notification}/Notification.js +0 -0
- /package/lib/{Notification → esm/Notification}/dictionary.js +0 -0
- /package/lib/{Notification → esm/Notification}/index.js +0 -0
- /package/lib/{OrderedList → esm/OrderedList}/Item.js +0 -0
- /package/lib/{OrderedList → esm/OrderedList}/ItemBase.js +0 -0
- /package/lib/{OrderedList → esm/OrderedList}/OrderedList.js +0 -0
- /package/lib/{OrderedList → esm/OrderedList}/OrderedListBase.js +0 -0
- /package/lib/{OrderedList → esm/OrderedList}/index.js +0 -0
- /package/lib/{Pagination → esm/Pagination}/PageButton.js +0 -0
- /package/lib/{Pagination → esm/Pagination}/Pagination.js +0 -0
- /package/lib/{Pagination → esm/Pagination}/SideButton.js +0 -0
- /package/lib/{Pagination → esm/Pagination}/constants.js +0 -0
- /package/lib/{Pagination → esm/Pagination}/dictionary.js +0 -0
- /package/lib/{Pagination → esm/Pagination}/index.js +0 -0
- /package/lib/{Pagination → esm/Pagination}/usePagination.js +0 -0
- /package/lib/{Portal → esm/Portal}/Portal.js +0 -0
- /package/lib/{Portal → esm/Portal}/Portal.native.js +0 -0
- /package/lib/{Portal → esm/Portal}/index.js +0 -0
- /package/lib/{PriceLockup → esm/PriceLockup}/PriceLockup.js +0 -0
- /package/lib/{PriceLockup → esm/PriceLockup}/index.js +0 -0
- /package/lib/{PriceLockup → esm/PriceLockup}/utils/renderFootnoteContent.js +0 -0
- /package/lib/{PriceLockup → esm/PriceLockup}/utils/renderFootnoteLinks.js +0 -0
- /package/lib/{PriceLockup → esm/PriceLockup}/utils/renderPrice.js +0 -0
- /package/lib/{PriceLockup → esm/PriceLockup}/utils/renderTypography.js +0 -0
- /package/lib/{ProductCard → esm/ProductCard}/ProductCard.js +0 -0
- /package/lib/{ProductCard → esm/ProductCard}/dictionary.js +0 -0
- /package/lib/{ProductCard → esm/ProductCard}/index.js +0 -0
- /package/lib/{ProductCardGroup → esm/ProductCardGroup}/ProductCardGroup.js +0 -0
- /package/lib/{ProductCardGroup → esm/ProductCardGroup}/index.js +0 -0
- /package/lib/{Progress → esm/Progress}/Progress.js +0 -0
- /package/lib/{Progress → esm/Progress}/ProgressBar.js +0 -0
- /package/lib/{Progress → esm/Progress}/ProgressBarBackground.js +0 -0
- /package/lib/{Progress → esm/Progress}/constants.js +0 -0
- /package/lib/{Progress → esm/Progress}/index.js +0 -0
- /package/lib/{QuickLinks → esm/QuickLinks}/QuickLinks.js +0 -0
- /package/lib/{QuickLinks → esm/QuickLinks}/QuickLinksCard.js +0 -0
- /package/lib/{QuickLinks → esm/QuickLinks}/QuickLinksItem.js +0 -0
- /package/lib/{QuickLinks → esm/QuickLinks}/index.js +0 -0
- /package/lib/{QuickLinksFeature → esm/QuickLinksFeature}/QuickLinksFeature.js +0 -0
- /package/lib/{QuickLinksFeature → esm/QuickLinksFeature}/QuickLinksFeatureItem.js +0 -0
- /package/lib/{QuickLinksFeature → esm/QuickLinksFeature}/index.js +0 -0
- /package/lib/{Radio → esm/Radio}/Radio.js +0 -0
- /package/lib/{Radio → esm/Radio}/RadioButton.js +0 -0
- /package/lib/{Radio → esm/Radio}/RadioGroup.js +0 -0
- /package/lib/{Radio → esm/Radio}/RadioInput.js +0 -0
- /package/lib/{Radio → esm/Radio}/RadioInput.native.js +0 -0
- /package/lib/{Radio → esm/Radio}/index.js +0 -0
- /package/lib/{RadioCard → esm/RadioCard}/RadioCard.js +0 -0
- /package/lib/{RadioCard → esm/RadioCard}/RadioCardGroup.js +0 -0
- /package/lib/{RadioCard → esm/RadioCard}/index.js +0 -0
- /package/lib/{Responsive → esm/Responsive}/Responsive.js +0 -0
- /package/lib/{Responsive → esm/Responsive}/ResponsiveProp.js +0 -0
- /package/lib/{Responsive → esm/Responsive}/ResponsiveWithMediaQueryStyleSheet.js +0 -0
- /package/lib/{Responsive → esm/Responsive}/index.js +0 -0
- /package/lib/{Search → esm/Search}/Search.js +0 -0
- /package/lib/{Search → esm/Search}/dictionary.js +0 -0
- /package/lib/{Search → esm/Search}/index.js +0 -0
- /package/lib/{Select → esm/Select}/Group.js +0 -0
- /package/lib/{Select → esm/Select}/Group.native.js +0 -0
- /package/lib/{Select → esm/Select}/Item.js +0 -0
- /package/lib/{Select → esm/Select}/Item.native.js +0 -0
- /package/lib/{Select → esm/Select}/Picker.js +0 -0
- /package/lib/{Select → esm/Select}/Picker.native.js +0 -0
- /package/lib/{Select → esm/Select}/Select.js +0 -0
- /package/lib/{Select → esm/Select}/constants.js +0 -0
- /package/lib/{Select → esm/Select}/index.js +0 -0
- /package/lib/{SideNav → esm/SideNav}/Item.js +0 -0
- /package/lib/{SideNav → esm/SideNav}/ItemContent.js +0 -0
- /package/lib/{SideNav → esm/SideNav}/ItemsGroup.js +0 -0
- /package/lib/{SideNav → esm/SideNav}/SideNav.js +0 -0
- /package/lib/{SideNav → esm/SideNav}/index.js +0 -0
- /package/lib/{Skeleton → esm/Skeleton}/Skeleton.js +0 -0
- /package/lib/{Skeleton → esm/Skeleton}/index.js +0 -0
- /package/lib/{Skeleton → esm/Skeleton}/skeleton.constant.js +0 -0
- /package/lib/{Skeleton → esm/Skeleton}/skeletonWebAnimation.js +0 -0
- /package/lib/{Skeleton → esm/Skeleton}/useSkeletonNativeAnimation.js +0 -0
- /package/lib/{SkipLink → esm/SkipLink}/SkipLink.js +0 -0
- /package/lib/{SkipLink → esm/SkipLink}/index.js +0 -0
- /package/lib/{Spacer → esm/Spacer}/Spacer.js +0 -0
- /package/lib/{Spacer → esm/Spacer}/index.js +0 -0
- /package/lib/{StackView → esm/StackView}/StackView.js +0 -0
- /package/lib/{StackView → esm/StackView}/StackWrap.js +0 -0
- /package/lib/{StackView → esm/StackView}/StackWrap.native.js +0 -0
- /package/lib/{StackView → esm/StackView}/StackWrapBox.js +0 -0
- /package/lib/{StackView → esm/StackView}/StackWrapGap.js +0 -0
- /package/lib/{StackView → esm/StackView}/common.js +0 -0
- /package/lib/{StackView → esm/StackView}/getStackedContent.js +0 -0
- /package/lib/{StackView → esm/StackView}/index.js +0 -0
- /package/lib/{Status → esm/Status}/Status.js +0 -0
- /package/lib/{Status → esm/Status}/index.js +0 -0
- /package/lib/{StepTracker → esm/StepTracker}/Step.js +0 -0
- /package/lib/{StepTracker → esm/StepTracker}/StepTracker.js +0 -0
- /package/lib/{StepTracker → esm/StepTracker}/dictionary.js +0 -0
- /package/lib/{StepTracker → esm/StepTracker}/index.js +0 -0
- /package/lib/{TabBar → esm/TabBar}/TabBar.js +0 -0
- /package/lib/{TabBar → esm/TabBar}/TabBarItem.js +0 -0
- /package/lib/{TabBar → esm/TabBar}/index.js +0 -0
- /package/lib/{Tabs → esm/Tabs}/Tabs.js +0 -0
- /package/lib/{Tabs → esm/Tabs}/TabsItem.js +0 -0
- /package/lib/{Tabs → esm/Tabs}/index.js +0 -0
- /package/lib/{Tags → esm/Tags}/Tags.js +0 -0
- /package/lib/{Tags → esm/Tags}/index.js +0 -0
- /package/lib/{TextInput → esm/TextInput}/TextArea.js +0 -0
- /package/lib/{TextInput → esm/TextInput}/TextInput.js +0 -0
- /package/lib/{TextInput → esm/TextInput}/dictionary.js +0 -0
- /package/lib/{TextInput → esm/TextInput}/index.js +0 -0
- /package/lib/{TextInput → esm/TextInput}/propTypes.js +0 -0
- /package/lib/{ThemeProvider → esm/ThemeProvider}/ThemeProvider.js +0 -0
- /package/lib/{ThemeProvider → esm/ThemeProvider}/index.js +0 -0
- /package/lib/{ThemeProvider → esm/ThemeProvider}/useResponsiveThemeTokens.js +0 -0
- /package/lib/{ThemeProvider → esm/ThemeProvider}/useSetTheme.js +0 -0
- /package/lib/{ThemeProvider → esm/ThemeProvider}/useTheme.js +0 -0
- /package/lib/{ThemeProvider → esm/ThemeProvider}/useThemeTokens.js +0 -0
- /package/lib/{ThemeProvider → esm/ThemeProvider}/utils/index.js +0 -0
- /package/lib/{ThemeProvider → esm/ThemeProvider}/utils/styles.js +0 -0
- /package/lib/{ThemeProvider → esm/ThemeProvider}/utils/theme-tokens.js +0 -0
- /package/lib/{Timeline → esm/Timeline}/Timeline.js +0 -0
- /package/lib/{Timeline → esm/Timeline}/index.js +0 -0
- /package/lib/{ToggleSwitch → esm/ToggleSwitch}/ToggleSwitch.js +0 -0
- /package/lib/{ToggleSwitch → esm/ToggleSwitch}/ToggleSwitchGroup.js +0 -0
- /package/lib/{ToggleSwitch → esm/ToggleSwitch}/index.js +0 -0
- /package/lib/{Tooltip → esm/Tooltip}/Backdrop.js +0 -0
- /package/lib/{Tooltip → esm/Tooltip}/Backdrop.native.js +0 -0
- /package/lib/{Tooltip → esm/Tooltip}/Tooltip.js +0 -0
- /package/lib/{Tooltip → esm/Tooltip}/Tooltip.native.js +0 -0
- /package/lib/{Tooltip → esm/Tooltip}/dictionary.js +0 -0
- /package/lib/{Tooltip → esm/Tooltip}/getTooltipPosition.js +0 -0
- /package/lib/{Tooltip → esm/Tooltip}/index.js +0 -0
- /package/lib/{Tooltip → esm/Tooltip}/shared.js +0 -0
- /package/lib/{TooltipButton → esm/TooltipButton}/TooltipButton.js +0 -0
- /package/lib/{TooltipButton → esm/TooltipButton}/index.js +0 -0
- /package/lib/{Typography → esm/Typography}/Typography.js +0 -0
- /package/lib/{Typography → esm/Typography}/index.js +0 -0
- /package/lib/{Validator → esm/Validator}/Validator.js +0 -0
- /package/lib/{Validator → esm/Validator}/index.js +0 -0
- /package/lib/{ViewportProvider → esm/ViewportProvider}/ViewportProvider.js +0 -0
- /package/lib/{ViewportProvider → esm/ViewportProvider}/index.js +0 -0
- /package/lib/{ViewportProvider → esm/ViewportProvider}/useViewport.js +0 -0
- /package/lib/{ViewportProvider → esm/ViewportProvider}/useViewportListener.js +0 -0
- /package/lib/{index.js → esm/index.js} +0 -0
- /package/lib/{server.js → esm/server.js} +0 -0
- /package/lib/{utils → esm/utils}/BaseView/BaseView.js +0 -0
- /package/lib/{utils → esm/utils}/BaseView/BaseView.native.js +0 -0
- /package/lib/{utils → esm/utils}/BaseView/index.js +0 -0
- /package/lib/{utils → esm/utils}/a11y/index.js +0 -0
- /package/lib/{utils → esm/utils}/a11y/semantics.js +0 -0
- /package/lib/{utils → esm/utils}/a11y/textSize.js +0 -0
- /package/lib/{utils → esm/utils}/animation/index.js +0 -0
- /package/lib/{utils → esm/utils}/animation/useVerticalExpandAnimation.js +0 -0
- /package/lib/{utils → esm/utils}/children.js +0 -0
- /package/lib/{utils → esm/utils}/containUniqueFields.js +0 -0
- /package/lib/{utils → esm/utils}/convertFromMegaByteToByte.js +0 -0
- /package/lib/{utils → esm/utils}/floating-ui/index.js +0 -0
- /package/lib/{utils → esm/utils}/floating-ui/index.native.js +0 -0
- /package/lib/{utils → esm/utils}/formatImageSource.js +0 -0
- /package/lib/{utils → esm/utils}/hasOwnProperty.js +0 -0
- /package/lib/{utils → esm/utils}/htmlAttrs.js +0 -0
- /package/lib/{utils → esm/utils}/index.js +0 -0
- /package/lib/{utils → esm/utils}/info/index.js +0 -0
- /package/lib/{utils → esm/utils}/info/platform/index.js +0 -0
- /package/lib/{utils → esm/utils}/info/platform/platform.android.js +0 -0
- /package/lib/{utils → esm/utils}/info/platform/platform.ios.js +0 -0
- /package/lib/{utils → esm/utils}/info/platform/platform.js +0 -0
- /package/lib/{utils → esm/utils}/info/platform/platform.native.js +0 -0
- /package/lib/{utils → esm/utils}/info/versions.js +0 -0
- /package/lib/{utils → esm/utils}/input.js +0 -0
- /package/lib/{utils → esm/utils}/pressability.js +0 -0
- /package/lib/{utils → esm/utils}/props/a11yProps.js +0 -0
- /package/lib/{utils → esm/utils}/props/clickProps.js +0 -0
- /package/lib/{utils → esm/utils}/props/componentPropType.js +0 -0
- /package/lib/{utils → esm/utils}/props/contentfulProps.js +0 -0
- /package/lib/{utils → esm/utils}/props/copyPropTypes.js +0 -0
- /package/lib/{utils → esm/utils}/props/getPropSelector.js +0 -0
- /package/lib/{utils → esm/utils}/props/handlerProps.js +0 -0
- /package/lib/{utils → esm/utils}/props/hrefAttrsProp.js +0 -0
- /package/lib/{utils → esm/utils}/props/index.js +0 -0
- /package/lib/{utils → esm/utils}/props/inputSupportsProps.js +0 -0
- /package/lib/{utils → esm/utils}/props/linkProps.js +0 -0
- /package/lib/{utils → esm/utils}/props/paddingProp.js +0 -0
- /package/lib/{utils → esm/utils}/props/pressProps.js +0 -0
- /package/lib/{utils → esm/utils}/props/rectProp.js +0 -0
- /package/lib/{utils → esm/utils}/props/responsiveProps.js +0 -0
- /package/lib/{utils → esm/utils}/props/selectSystemProps.js +0 -0
- /package/lib/{utils → esm/utils}/props/spacingProps.js +0 -0
- /package/lib/{utils → esm/utils}/props/textInputProps.js +0 -0
- /package/lib/{utils → esm/utils}/props/textProps.js +0 -0
- /package/lib/{utils → esm/utils}/props/tokens.js +0 -0
- /package/lib/{utils → esm/utils}/props/variantProp.js +0 -0
- /package/lib/{utils → esm/utils}/props/viewProps.js +0 -0
- /package/lib/{utils → esm/utils}/ssr-media-query/create-stylesheet/create-stylesheet-mobile.js +0 -0
- /package/lib/{utils → esm/utils}/ssr-media-query/create-stylesheet/index.android.js +0 -0
- /package/lib/{utils → esm/utils}/ssr-media-query/create-stylesheet/index.ios.js +0 -0
- /package/lib/{utils → esm/utils}/ssr-media-query/create-stylesheet/index.js +0 -0
- /package/lib/{utils → esm/utils}/ssr-media-query/hash.js +0 -0
- /package/lib/{utils → esm/utils}/ssr-media-query/index.js +0 -0
- /package/lib/{utils → esm/utils}/ssr-media-query/utils/common.js +0 -0
- /package/lib/{utils → esm/utils}/ssr-media-query/utils/create-declaration-block.js +0 -0
- /package/lib/{utils → esm/utils}/ssr-media-query/utils/create-media-query-styles.js +0 -0
- /package/lib/{utils → esm/utils}/ssr-media-query/utils/hyphenate-style-name.js +0 -0
- /package/lib/{utils → esm/utils}/ssr-media-query/utils/inject.js +0 -0
- /package/lib/{utils → esm/utils}/ssr.js +0 -0
- /package/lib/{utils → esm/utils}/transformGradient.js +0 -0
- /package/lib/{utils → esm/utils}/useCopy.js +0 -0
- /package/lib/{utils → esm/utils}/useHash.js +0 -0
- /package/lib/{utils → esm/utils}/useHash.native.js +0 -0
- /package/lib/{utils → esm/utils}/useOverlaidPosition.js +0 -0
- /package/lib/{utils → esm/utils}/useResponsiveProp.js +0 -0
- /package/lib/{utils → esm/utils}/useSafeLayoutEffect.js +0 -0
- /package/lib/{utils → esm/utils}/useScrollBlocking.js +0 -0
- /package/lib/{utils → esm/utils}/useScrollBlocking.native.js +0 -0
- /package/lib/{utils → esm/utils}/useSpacingScale.js +0 -0
- /package/lib/{utils → esm/utils}/useUniqueId.js +0 -0
- /package/lib/{utils → esm/utils}/withLinkRouter.js +0 -0
|
@@ -20,7 +20,7 @@ import CarouselThumbnailNavigation from './CarouselThumbnailNavigation';
|
|
|
20
20
|
import CarouselTabsPanel from './CarouselTabs/CarouselTabsPanel';
|
|
21
21
|
import CarouselTabsPanelItem from './CarouselTabs/CarouselTabsPanelItem';
|
|
22
22
|
import dictionary from './dictionary';
|
|
23
|
-
import { ITEMS_PER_VIEWPORT_MD, ITEMS_PER_VIEWPORT_LG_XL } from './Constants';
|
|
23
|
+
import { ITEMS_PER_VIEWPORT_MD, ITEMS_PER_VIEWPORT_LG_XL, DEFAULT_POSITION_OFFSET, HERO_POSITION_OFFSET, LARGE_VIEWPORT_MARGIN, DEFAULT_VIEWPORT_MARGIN } from './Constants';
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
25
|
const TRANSITION_MODES = {
|
|
26
26
|
MANUAL: 'manual',
|
|
@@ -34,7 +34,12 @@ const staticStyles = StyleSheet.create({
|
|
|
34
34
|
alignItems: 'center',
|
|
35
35
|
position: 'relative',
|
|
36
36
|
top: 0,
|
|
37
|
-
left: 0
|
|
37
|
+
left: 0,
|
|
38
|
+
...Platform.select({
|
|
39
|
+
web: {
|
|
40
|
+
outline: 'none'
|
|
41
|
+
}
|
|
42
|
+
})
|
|
38
43
|
},
|
|
39
44
|
animationControlButton: {
|
|
40
45
|
position: 'absolute',
|
|
@@ -61,13 +66,19 @@ const selectControlButtonPositionStyles = _ref => {
|
|
|
61
66
|
positionProperty = getDynamicPositionProperty(),
|
|
62
67
|
spaceBetweenSlideAndButton,
|
|
63
68
|
enablePeeking,
|
|
64
|
-
enableDisplayMultipleItemsPerSlide
|
|
69
|
+
enableDisplayMultipleItemsPerSlide,
|
|
70
|
+
enableHero,
|
|
71
|
+
viewport
|
|
65
72
|
} = _ref;
|
|
66
73
|
const styles = {};
|
|
67
74
|
if (positionVariant === 'edge') {
|
|
68
75
|
styles[positionProperty] = -1 * (buttonWidth / 2);
|
|
69
76
|
} else if (positionVariant === 'inside') {
|
|
70
|
-
|
|
77
|
+
if (enableHero && viewport === 'xl') {
|
|
78
|
+
styles[positionProperty] = HERO_POSITION_OFFSET;
|
|
79
|
+
} else {
|
|
80
|
+
styles[positionProperty] = DEFAULT_POSITION_OFFSET;
|
|
81
|
+
}
|
|
71
82
|
} else if (positionVariant === 'outside') {
|
|
72
83
|
if (enablePeeking || enableDisplayMultipleItemsPerSlide) {
|
|
73
84
|
styles[positionProperty] = 0;
|
|
@@ -77,7 +88,7 @@ const selectControlButtonPositionStyles = _ref => {
|
|
|
77
88
|
}
|
|
78
89
|
return styles;
|
|
79
90
|
};
|
|
80
|
-
const selectPreviousNextNavigationButtonStyles = (previousNextNavigationButtonWidth, previousNextNavigationPosition, spaceBetweenSlideAndPreviousNextNavigation, isFirstSlide, isLastSlide, areStylesAppliedOnPreviousButton, enablePeeking, enableDisplayMultipleItemsPerSlide) => {
|
|
91
|
+
const selectPreviousNextNavigationButtonStyles = (previousNextNavigationButtonWidth, previousNextNavigationPosition, spaceBetweenSlideAndPreviousNextNavigation, isFirstSlide, isLastSlide, areStylesAppliedOnPreviousButton, enablePeeking, enableDisplayMultipleItemsPerSlide, enableHero, viewport) => {
|
|
81
92
|
const styles = {
|
|
82
93
|
zIndex: 1,
|
|
83
94
|
position: 'absolute'
|
|
@@ -97,7 +108,9 @@ const selectPreviousNextNavigationButtonStyles = (previousNextNavigationButtonWi
|
|
|
97
108
|
positionProperty: getDynamicPositionProperty(areStylesAppliedOnPreviousButton),
|
|
98
109
|
spaceBetweenSlideAndButton: spaceBetweenSlideAndPreviousNextNavigation,
|
|
99
110
|
enablePeeking,
|
|
100
|
-
enableDisplayMultipleItemsPerSlide
|
|
111
|
+
enableDisplayMultipleItemsPerSlide,
|
|
112
|
+
enableHero,
|
|
113
|
+
viewport
|
|
101
114
|
})
|
|
102
115
|
};
|
|
103
116
|
};
|
|
@@ -138,6 +151,35 @@ const getTotalItems = (enableDisplayMultipleItemsPerSlide, childrenArray, viewpo
|
|
|
138
151
|
}
|
|
139
152
|
return childrenArray.length;
|
|
140
153
|
};
|
|
154
|
+
const selectRootContainerStyles = (enableHero, viewport) => {
|
|
155
|
+
if (enableHero && viewport === 'xl' && Platform.OS === 'web') {
|
|
156
|
+
return {
|
|
157
|
+
alignItems: 'center'
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
return {};
|
|
161
|
+
};
|
|
162
|
+
const selectMainContainerStyles = (enableHero, viewport) => {
|
|
163
|
+
if (enableHero && viewport === 'xl' && Platform.OS === 'web') {
|
|
164
|
+
return {
|
|
165
|
+
width: '100%',
|
|
166
|
+
maxWidth: 1200
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
return {};
|
|
170
|
+
};
|
|
171
|
+
const selectNavigationStyles = (tabs, tabsPanelHeight, enableHero, viewport) => {
|
|
172
|
+
let marginTop = 0;
|
|
173
|
+
let marginHorizontal = 0;
|
|
174
|
+
if (enableHero && tabs) {
|
|
175
|
+
marginTop = -tabsPanelHeight;
|
|
176
|
+
marginHorizontal = viewport === 'xl' ? LARGE_VIEWPORT_MARGIN : DEFAULT_VIEWPORT_MARGIN;
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
marginTop,
|
|
180
|
+
marginHorizontal
|
|
181
|
+
};
|
|
182
|
+
};
|
|
141
183
|
|
|
142
184
|
/**
|
|
143
185
|
* Calculates the final width of the carousel container for displacement purposes based on various conditions.
|
|
@@ -279,6 +321,7 @@ const Carousel = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
279
321
|
springConfig = undefined,
|
|
280
322
|
thumbnails = undefined,
|
|
281
323
|
enableDisplayMultipleItemsPerSlide = false,
|
|
324
|
+
enableHero = false,
|
|
282
325
|
panelNavigation = thumbnails ? /*#__PURE__*/_jsx(CarouselThumbnailNavigation, {
|
|
283
326
|
thumbnails: thumbnails
|
|
284
327
|
}) : /*#__PURE__*/_jsx(CarouselStepTracker, {
|
|
@@ -330,7 +373,8 @@ const Carousel = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
330
373
|
const [containerLayout, setContainerLayout] = React.useState({
|
|
331
374
|
x: 0,
|
|
332
375
|
y: 0,
|
|
333
|
-
width: 0
|
|
376
|
+
width: 0,
|
|
377
|
+
height: 0
|
|
334
378
|
});
|
|
335
379
|
const containerLayoutRef = React.useRef(containerLayout);
|
|
336
380
|
const [previousNextNavigationButtonWidth, setPreviousNextNavigationButtonWidth] = React.useState(0);
|
|
@@ -483,6 +527,7 @@ const Carousel = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
483
527
|
let transitionMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : TRANSITION_MODES.MANUAL;
|
|
484
528
|
fixOffsetAndGo(toPrev ? -1 : 1, transitionMode);
|
|
485
529
|
}, [fixOffsetAndGo]);
|
|
530
|
+
const [tabsPanelHeight, setTabsPanelHeight] = React.useState(0);
|
|
486
531
|
React.useEffect(() => {
|
|
487
532
|
activeIndexRef.current = activeIndex;
|
|
488
533
|
}, [activeIndex]);
|
|
@@ -534,13 +579,17 @@ const Carousel = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
534
579
|
stopAutoplay();
|
|
535
580
|
};
|
|
536
581
|
}, [stopAutoplay]);
|
|
582
|
+
const onTabsPanelLayout = event => {
|
|
583
|
+
setTabsPanelHeight(event.nativeEvent.layout.height);
|
|
584
|
+
};
|
|
537
585
|
const onContainerLayout = _ref6 => {
|
|
538
586
|
let {
|
|
539
587
|
nativeEvent: {
|
|
540
588
|
layout: {
|
|
541
589
|
x,
|
|
542
590
|
y,
|
|
543
|
-
width
|
|
591
|
+
width,
|
|
592
|
+
height
|
|
544
593
|
}
|
|
545
594
|
}
|
|
546
595
|
} = _ref6;
|
|
@@ -548,7 +597,8 @@ const Carousel = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
548
597
|
...prevState,
|
|
549
598
|
x,
|
|
550
599
|
y,
|
|
551
|
-
width
|
|
600
|
+
width,
|
|
601
|
+
height
|
|
552
602
|
}));
|
|
553
603
|
};
|
|
554
604
|
const onPreviousNextNavigationButtonLayout = _ref7 => {
|
|
@@ -680,107 +730,116 @@ const Carousel = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
680
730
|
}
|
|
681
731
|
setisCarouselPlaying(prevState => !prevState);
|
|
682
732
|
}, [isCarouselPlaying, stopAutoplay, startAutoplay]);
|
|
683
|
-
return /*#__PURE__*/
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
positionProperty: getDynamicPositionProperty(),
|
|
710
|
-
spaceBetweenSlideAndButton: spaceBetweenSlideAndPreviousNextNavigation,
|
|
711
|
-
enablePeeking,
|
|
712
|
-
enableDisplayMultipleItemsPerSlide
|
|
713
|
-
})],
|
|
714
|
-
children: /*#__PURE__*/_jsx(IconButton, {
|
|
715
|
-
icon: isCarouselPlaying ? pauseIcon : playIcon,
|
|
716
|
-
accessibilityLabel: isCarouselPlaying ? getCopy('pauseButtonLabel') : getCopy('playButtonLabel'),
|
|
717
|
-
variant: previousNextIconButtonVariants,
|
|
718
|
-
onPress: onAnimationControlButtonPress
|
|
719
|
-
})
|
|
720
|
-
}) : null, showPreviousNextNavigation && totalItems > 1 ? /*#__PURE__*/_jsx(View, {
|
|
721
|
-
style: selectPreviousNextNavigationButtonStyles(previousNextNavigationButtonWidth, previousNextNavigationPosition, spaceBetweenSlideAndPreviousNextNavigation, isFirstSlide, isLastSlide, true, enablePeeking, enableDisplayMultipleItemsPerSlide),
|
|
722
|
-
testID: "previous-button-container",
|
|
723
|
-
children: /*#__PURE__*/_jsx(IconButton, {
|
|
724
|
-
onLayout: onPreviousNextNavigationButtonLayout,
|
|
725
|
-
icon: previousIcon,
|
|
726
|
-
onPress: goToPrev,
|
|
727
|
-
variant: previousNextIconButtonVariants,
|
|
728
|
-
accessibilityLabel: getCopyWithPlaceholders('iconButtonLabel').replace('%{targetStep}', activeIndex),
|
|
729
|
-
tokens: selectIconStyles(themeTokens)
|
|
730
|
-
})
|
|
731
|
-
}) : null, Boolean(skipLinkHref) && /*#__PURE__*/_jsx(SkipLink, {
|
|
732
|
-
ref: firstFocusRef,
|
|
733
|
-
href: skipLinkHref,
|
|
734
|
-
children: getCopyWithPlaceholders('skipLink')
|
|
735
|
-
}), !isFirstFocusContainer && /*#__PURE__*/_jsx(A11yText
|
|
736
|
-
// Read the current slide position to screen readers on slide.
|
|
737
|
-
// If it's set to refocus and doesn't have a SkipLink to focus to, focus this.
|
|
738
|
-
, {
|
|
739
|
-
accessibilityLiveRegion: !skipLinkHref && refocus ? undefined : 'polite',
|
|
740
|
-
text: getCopyWithPlaceholders('stepTrackerLabel')
|
|
741
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
742
|
-
style: selectContainerStyles(containerLayout.width),
|
|
743
|
-
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
744
|
-
style: StyleSheet.flatten([selectSwipeAreaStyles(totalItems, containerLayout.width, enablePeeking, enableDisplayMultipleItemsPerSlide), {
|
|
745
|
-
transform: [{
|
|
746
|
-
translateX: pan.x
|
|
747
|
-
}, {
|
|
748
|
-
translateY: pan.y
|
|
749
|
-
}]
|
|
750
|
-
}]),
|
|
751
|
-
...panResponder.panHandlers,
|
|
752
|
-
...getA11yPropsFromHtmlTag(tag),
|
|
753
|
-
// In iframes on Mac (e.g. in Storybook), this content may be misread or read twice.
|
|
754
|
-
// This is a known Voiceover bug: https://github.com/phetsims/a11y-research/issues/132
|
|
755
|
-
accessibilityLiveRegion: accessibilityLiveRegion,
|
|
756
|
-
children: childrenArray.map((element, index) => {
|
|
757
|
-
const hidden = !isAnimating && index !== activeIndex;
|
|
758
|
-
const clonedElement = /*#__PURE__*/React.cloneElement(element, {
|
|
759
|
-
elementIndex: index,
|
|
760
|
-
hidden: enablePeeking || enableDisplayMultipleItemsPerSlide ? false : hidden,
|
|
733
|
+
return /*#__PURE__*/_jsx(View, {
|
|
734
|
+
style: selectRootContainerStyles(enableHero, viewport),
|
|
735
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
736
|
+
style: selectMainContainerStyles(enableHero, viewport),
|
|
737
|
+
children: /*#__PURE__*/_jsxs(CarouselProvider, {
|
|
738
|
+
activeIndex: activeIndex,
|
|
739
|
+
goTo: goTo,
|
|
740
|
+
getCopyWithPlaceholders: getCopyWithPlaceholders,
|
|
741
|
+
itemLabel: itemLabel,
|
|
742
|
+
totalItems: totalItems,
|
|
743
|
+
themeTokens: themeTokens,
|
|
744
|
+
firstFocusRef: firstFocusRef,
|
|
745
|
+
refocus: refocus,
|
|
746
|
+
width: containerLayout.width,
|
|
747
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
748
|
+
style: [staticStyles.root],
|
|
749
|
+
onLayout: onContainerLayout,
|
|
750
|
+
ref: ref,
|
|
751
|
+
...systemProps,
|
|
752
|
+
...containerProps,
|
|
753
|
+
children: [isAutoPlayEnabled ? /*#__PURE__*/_jsx(View, {
|
|
754
|
+
style: [staticStyles.animationControlButton, selectControlButtonPositionStyles({
|
|
755
|
+
positionVariant: previousNextNavigationPosition,
|
|
756
|
+
buttonWidth: previousNextNavigationButtonWidth,
|
|
757
|
+
positionProperty: getDynamicPositionProperty(),
|
|
758
|
+
spaceBetweenSlideAndButton: spaceBetweenSlideAndPreviousNextNavigation,
|
|
761
759
|
enablePeeking,
|
|
762
|
-
peekingProps: getPeekingProps(viewport),
|
|
763
760
|
enableDisplayMultipleItemsPerSlide,
|
|
761
|
+
enableHero,
|
|
764
762
|
viewport
|
|
765
|
-
})
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
763
|
+
})],
|
|
764
|
+
children: /*#__PURE__*/_jsx(IconButton, {
|
|
765
|
+
icon: isCarouselPlaying ? pauseIcon : playIcon,
|
|
766
|
+
accessibilityLabel: isCarouselPlaying ? getCopy('pauseButtonLabel') : getCopy('playButtonLabel'),
|
|
767
|
+
variant: previousNextIconButtonVariants,
|
|
768
|
+
onPress: onAnimationControlButtonPress
|
|
769
|
+
})
|
|
770
|
+
}) : null, showPreviousNextNavigation && totalItems > 1 ? /*#__PURE__*/_jsx(View, {
|
|
771
|
+
style: selectPreviousNextNavigationButtonStyles(previousNextNavigationButtonWidth, previousNextNavigationPosition, spaceBetweenSlideAndPreviousNextNavigation, isFirstSlide, isLastSlide, true, enablePeeking, enableDisplayMultipleItemsPerSlide, enableHero, viewport),
|
|
772
|
+
testID: "previous-button-container",
|
|
773
|
+
children: /*#__PURE__*/_jsx(IconButton, {
|
|
774
|
+
onLayout: onPreviousNextNavigationButtonLayout,
|
|
775
|
+
icon: previousIcon,
|
|
776
|
+
onPress: goToPrev,
|
|
777
|
+
variant: previousNextIconButtonVariants,
|
|
778
|
+
accessibilityLabel: getCopyWithPlaceholders('iconButtonLabel').replace('%{targetStep}', activeIndex),
|
|
779
|
+
tokens: selectIconStyles(themeTokens)
|
|
780
|
+
})
|
|
781
|
+
}) : null, Boolean(skipLinkHref) && /*#__PURE__*/_jsx(SkipLink, {
|
|
782
|
+
ref: firstFocusRef,
|
|
783
|
+
href: skipLinkHref,
|
|
784
|
+
children: getCopyWithPlaceholders('skipLink')
|
|
785
|
+
}), !isFirstFocusContainer && /*#__PURE__*/_jsx(A11yText
|
|
786
|
+
// Read the current slide position to screen readers on slide.
|
|
787
|
+
// If it's set to refocus and doesn't have a SkipLink to focus to, focus this.
|
|
788
|
+
, {
|
|
789
|
+
accessibilityLiveRegion: !skipLinkHref && refocus ? undefined : 'polite',
|
|
790
|
+
text: getCopyWithPlaceholders('stepTrackerLabel')
|
|
791
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
792
|
+
style: selectContainerStyles(containerLayout.width),
|
|
793
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
794
|
+
style: StyleSheet.flatten([selectSwipeAreaStyles(totalItems, containerLayout.width, enablePeeking, enableDisplayMultipleItemsPerSlide), {
|
|
795
|
+
transform: [{
|
|
796
|
+
translateX: pan.x
|
|
797
|
+
}, {
|
|
798
|
+
translateY: pan.y
|
|
799
|
+
}]
|
|
800
|
+
}]),
|
|
801
|
+
...panResponder.panHandlers,
|
|
802
|
+
...getA11yPropsFromHtmlTag(tag),
|
|
803
|
+
// In iframes on Mac (e.g. in Storybook), this content may be misread or read twice.
|
|
804
|
+
// This is a known Voiceover bug: https://github.com/phetsims/a11y-research/issues/132
|
|
805
|
+
accessibilityLiveRegion: accessibilityLiveRegion,
|
|
806
|
+
children: childrenArray.map((element, index) => {
|
|
807
|
+
const hidden = !isAnimating && index !== activeIndex;
|
|
808
|
+
const clonedElement = /*#__PURE__*/React.cloneElement(element, {
|
|
809
|
+
elementIndex: index,
|
|
810
|
+
hidden: enablePeeking || enableDisplayMultipleItemsPerSlide ? false : hidden,
|
|
811
|
+
enablePeeking,
|
|
812
|
+
peekingProps: getPeekingProps(viewport),
|
|
813
|
+
enableDisplayMultipleItemsPerSlide,
|
|
814
|
+
viewport,
|
|
815
|
+
backgroundColor: element.props.backgroundColor,
|
|
816
|
+
enableHero,
|
|
817
|
+
tabsPanelHeight
|
|
818
|
+
});
|
|
819
|
+
return /*#__PURE__*/_jsx(React.Fragment, {
|
|
820
|
+
children: clonedElement
|
|
821
|
+
}, index.toFixed(2));
|
|
822
|
+
})
|
|
823
|
+
})
|
|
824
|
+
}), showPreviousNextNavigation && totalItems > 1 ? /*#__PURE__*/_jsx(View, {
|
|
825
|
+
style: selectPreviousNextNavigationButtonStyles(previousNextNavigationButtonWidth, previousNextNavigationPosition, spaceBetweenSlideAndPreviousNextNavigation, isFirstSlide, isLastSlide, false, enablePeeking, enableDisplayMultipleItemsPerSlide, enableHero, viewport),
|
|
826
|
+
testID: "next-button-container",
|
|
827
|
+
children: /*#__PURE__*/_jsx(IconButton, {
|
|
828
|
+
onLayout: onPreviousNextNavigationButtonLayout,
|
|
829
|
+
icon: nextIcon,
|
|
830
|
+
onPress: goToNext,
|
|
831
|
+
variant: previousNextIconButtonVariants,
|
|
832
|
+
accessibilityLabel: getCopyWithPlaceholders('iconButtonLabel').replace('%{targetStep}', activeIndex + 2),
|
|
833
|
+
tokens: selectIconStyles(themeTokens)
|
|
834
|
+
})
|
|
835
|
+
}) : null]
|
|
836
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
837
|
+
style: selectNavigationStyles(tabs, tabsPanelHeight, enableHero, viewport),
|
|
838
|
+
onLayout: tabs && onTabsPanelLayout,
|
|
839
|
+
children: showPanelNavigation ? activePanelNavigation : null
|
|
840
|
+
})]
|
|
841
|
+
})
|
|
842
|
+
})
|
|
784
843
|
});
|
|
785
844
|
});
|
|
786
845
|
Carousel.propTypes = {
|
|
@@ -5,7 +5,8 @@ import Platform from "react-native-web/dist/exports/Platform";
|
|
|
5
5
|
import { layoutTags, getA11yPropsFromHtmlTag, selectSystemProps, a11yProps, viewProps, variantProp } from '../../utils';
|
|
6
6
|
import { useCarousel } from '../CarouselContext';
|
|
7
7
|
import { ITEMS_PER_VIEWPORT_MD, ITEMS_PER_VIEWPORT_LG_XL, GAP_BETWEEN_ITEMS } from '../Constants';
|
|
8
|
-
import
|
|
8
|
+
import Box from '../../Box';
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, viewProps]);
|
|
10
11
|
const selectContainerStyle = _ref => {
|
|
11
12
|
let {
|
|
@@ -84,12 +85,14 @@ const CarouselItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
84
85
|
peekingProps,
|
|
85
86
|
enableDisplayMultipleItemsPerSlide,
|
|
86
87
|
viewport,
|
|
88
|
+
backgroundColor,
|
|
89
|
+
enableHero,
|
|
90
|
+
tabsPanelHeight,
|
|
87
91
|
...rest
|
|
88
92
|
} = _ref2;
|
|
89
93
|
const {
|
|
90
94
|
width,
|
|
91
|
-
activeIndex
|
|
92
|
-
height
|
|
95
|
+
activeIndex
|
|
93
96
|
} = useCarousel();
|
|
94
97
|
const selectedProps = selectProps({
|
|
95
98
|
...rest,
|
|
@@ -101,7 +104,6 @@ const CarouselItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
101
104
|
width,
|
|
102
105
|
elementIndex,
|
|
103
106
|
hidden,
|
|
104
|
-
height,
|
|
105
107
|
enablePeeking,
|
|
106
108
|
enableDisplayMultipleItemsPerSlide,
|
|
107
109
|
viewport,
|
|
@@ -110,7 +112,18 @@ const CarouselItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
110
112
|
...selectedProps,
|
|
111
113
|
...focusabilityProps,
|
|
112
114
|
ref: ref,
|
|
113
|
-
children:
|
|
115
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
116
|
+
variant: {
|
|
117
|
+
background: backgroundColor
|
|
118
|
+
},
|
|
119
|
+
space: 0,
|
|
120
|
+
flex: 1,
|
|
121
|
+
children: [children, enableHero && /*#__PURE__*/_jsx(View, {
|
|
122
|
+
style: {
|
|
123
|
+
height: tabsPanelHeight
|
|
124
|
+
}
|
|
125
|
+
})]
|
|
126
|
+
})
|
|
114
127
|
});
|
|
115
128
|
});
|
|
116
129
|
CarouselItem.propTypes = {
|
|
@@ -155,7 +168,11 @@ CarouselItem.propTypes = {
|
|
|
155
168
|
peekingLastSpace: PropTypes.number,
|
|
156
169
|
peekingMiddleSpace: PropTypes.number,
|
|
157
170
|
peekingGap: PropTypes.number
|
|
158
|
-
})
|
|
171
|
+
}),
|
|
172
|
+
/**
|
|
173
|
+
* Background color of the slide. It supports Box background variant colors.
|
|
174
|
+
*/
|
|
175
|
+
backgroundColor: PropTypes.string
|
|
159
176
|
};
|
|
160
177
|
CarouselItem.displayName = 'Carousel.Item';
|
|
161
178
|
export default CarouselItem;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const ITEMS_PER_VIEWPORT_MD = 2;
|
|
2
|
+
export const ITEMS_PER_VIEWPORT_LG_XL = 3;
|
|
3
|
+
export const GAP_BETWEEN_ITEMS = 16;
|
|
4
|
+
export const HERO_POSITION_OFFSET = 20;
|
|
5
|
+
export const DEFAULT_POSITION_OFFSET = 0;
|
|
6
|
+
export const LARGE_VIEWPORT_MARGIN = 40;
|
|
7
|
+
export const DEFAULT_VIEWPORT_MARGIN = 10;
|
|
@@ -363,6 +363,32 @@ const TextInputBase = /*#__PURE__*/React.forwardRef((_ref8, ref) => {
|
|
|
363
363
|
...themeTokens,
|
|
364
364
|
height
|
|
365
365
|
}, themeOptions, inactive, type, buttons?.length, themeTokens.buttonSize, buttonsGapSize, isPassword, iconLeftWidth, iconLeftGap, direction);
|
|
366
|
+
const {
|
|
367
|
+
minHeight = 0,
|
|
368
|
+
maxHeight = Infinity
|
|
369
|
+
} = nativeInputStyle;
|
|
370
|
+
const [inputHeight, setInputHeight] = React.useState(minHeight || 0);
|
|
371
|
+
|
|
372
|
+
/* get the new height between the limits and update
|
|
373
|
+
the state with the new height */
|
|
374
|
+
const measureHeightWeb = React.useCallback(() => {
|
|
375
|
+
const el = inputRef.current;
|
|
376
|
+
const scrollHeight = el.scrollHeight || 0;
|
|
377
|
+
let newHeight = Math.max(scrollHeight, minHeight);
|
|
378
|
+
newHeight = Math.min(newHeight, maxHeight);
|
|
379
|
+
setInputHeight(newHeight);
|
|
380
|
+
}, [inputRef, minHeight, maxHeight]);
|
|
381
|
+
|
|
382
|
+
/* restores the height and the value first to then
|
|
383
|
+
calculate the height correctly */
|
|
384
|
+
React.useEffect(() => {
|
|
385
|
+
if (Platform.OS === 'web' && inputRef.current) {
|
|
386
|
+
const el = inputRef.current;
|
|
387
|
+
el.style.height = 'auto';
|
|
388
|
+
el.value = currentValue;
|
|
389
|
+
measureHeightWeb();
|
|
390
|
+
}
|
|
391
|
+
}, [currentValue, measureHeightWeb, inputRef]);
|
|
366
392
|
const shouldShowSubmitIcon = submitIcon && direction === 'left' && !inactive;
|
|
367
393
|
return /*#__PURE__*/_jsxs(View, {
|
|
368
394
|
style: selectOuterBorderStyles(themeTokens),
|
|
@@ -382,7 +408,10 @@ const TextInputBase = /*#__PURE__*/React.forwardRef((_ref8, ref) => {
|
|
|
382
408
|
ref: inputRef,
|
|
383
409
|
keyboardType: isNumeric ? 'numeric' : 'default',
|
|
384
410
|
inputMode: isNumeric ? 'numeric' : undefined,
|
|
385
|
-
style:
|
|
411
|
+
style: {
|
|
412
|
+
...nativeInputStyle,
|
|
413
|
+
height: Math.max(inputHeight, minHeight)
|
|
414
|
+
},
|
|
386
415
|
secureTextEntry: isPassword && !showPassword,
|
|
387
416
|
...inputProps
|
|
388
417
|
}), IconComponent && /*#__PURE__*/_jsx(View, {
|
package/lib/package.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "TELUS Digital",
|
|
3
|
+
"browserslist": [
|
|
4
|
+
"extends @telus-uds/browserslist-config"
|
|
5
|
+
],
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/telus/universal-design-system/issues"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@floating-ui/react-dom": "^1.0.1",
|
|
11
|
+
"@floating-ui/react-native": "^0.8.1",
|
|
12
|
+
"@gorhom/portal": "^1.0.14",
|
|
13
|
+
"@react-native-picker/picker": "^2.9.0",
|
|
14
|
+
"@telus-uds/system-constants": "^3.0.0",
|
|
15
|
+
"@telus-uds/system-theme-tokens": "^4.0.0",
|
|
16
|
+
"airbnb-prop-types": "^2.16.0",
|
|
17
|
+
"css-mediaquery": "^0.1.2",
|
|
18
|
+
"expo-document-picker": "^13.0.1",
|
|
19
|
+
"expo-linear-gradient": "^12.5.0",
|
|
20
|
+
"expo-modules-core": "^1.12.24",
|
|
21
|
+
"lodash.debounce": "^4.0.8",
|
|
22
|
+
"lodash.merge": "^4.6.2",
|
|
23
|
+
"lodash.throttle": "^4.1.1",
|
|
24
|
+
"prop-types": "^15.7.2",
|
|
25
|
+
"react-native-picker-select": "^9.3.1",
|
|
26
|
+
"semver": "7.5.2",
|
|
27
|
+
"string.prototype.matchall": "^4.0.9"
|
|
28
|
+
},
|
|
29
|
+
"description": "Base components",
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@babel/plugin-transform-private-methods": "^7.25.4",
|
|
32
|
+
"@telus-uds/browserslist-config": "^1.0.5",
|
|
33
|
+
"@testing-library/jest-native": "^4.0.1",
|
|
34
|
+
"@testing-library/react": "^13.3.0",
|
|
35
|
+
"@testing-library/react-hooks": "~7.0.1",
|
|
36
|
+
"@testing-library/react-native": "11.0.0",
|
|
37
|
+
"react-test-renderer": "~18.0.0",
|
|
38
|
+
"webpack": "5.x"
|
|
39
|
+
},
|
|
40
|
+
"exports": {
|
|
41
|
+
".": {
|
|
42
|
+
"import": "./lib/esm/index.js",
|
|
43
|
+
"require": "./lib/cjs/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./server": {
|
|
46
|
+
"import": "./lib/esm/server.js",
|
|
47
|
+
"require": "./lib/cjs/server.js"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"homepage": "https://github.com/telus/universal-design-system#readme",
|
|
51
|
+
"keywords": [
|
|
52
|
+
"base"
|
|
53
|
+
],
|
|
54
|
+
"license": "MIT",
|
|
55
|
+
"main": "lib/cjs/index.js",
|
|
56
|
+
"module": "lib/esm/index.js",
|
|
57
|
+
"name": "@telus-uds/components-base",
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"react": "^18.2.0",
|
|
60
|
+
"react-dom": "^18.2.0",
|
|
61
|
+
"react-native": "^0.74.5",
|
|
62
|
+
"react-native-web": "^0.19.10"
|
|
63
|
+
},
|
|
64
|
+
"react-native": "src/index.js",
|
|
65
|
+
"repository": {
|
|
66
|
+
"type": "git",
|
|
67
|
+
"url": "git+https://github.com/telus/universal-design-system.git"
|
|
68
|
+
},
|
|
69
|
+
"scripts": {
|
|
70
|
+
"test": "jest",
|
|
71
|
+
"test:web": "jest --config jest.config-web.js",
|
|
72
|
+
"test:ios": "jest --config jest.config-ios.js",
|
|
73
|
+
"test:android": "jest --config jest.config-android.js",
|
|
74
|
+
"lint": "npm run --prefix ../.. lint:path -- --color packages/components-base",
|
|
75
|
+
"lint:fix": "npm run --prefix ../.. lint:path -- --fix packages/components-base",
|
|
76
|
+
"format": "prettier --write .",
|
|
77
|
+
"build:cjs": "babel src -d lib/cjs",
|
|
78
|
+
"copy:pkg": "cp package.json lib/package.json",
|
|
79
|
+
"build:esm": "babel src -d lib/esm --env-name module",
|
|
80
|
+
"build": "npm run build:cjs && npm run build:esm && npm run copy:pkg"
|
|
81
|
+
},
|
|
82
|
+
"sideEffects": false,
|
|
83
|
+
"standard-engine": {
|
|
84
|
+
"skip": true
|
|
85
|
+
},
|
|
86
|
+
"version": "3.0.0",
|
|
87
|
+
"types": "types/index.d.ts"
|
|
88
|
+
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"browserslist": [
|
|
4
4
|
"extends @telus-uds/browserslist-config"
|
|
5
5
|
],
|
|
6
|
-
"type": "module",
|
|
7
6
|
"bugs": {
|
|
8
7
|
"url": "https://github.com/telus/universal-design-system/issues"
|
|
9
8
|
},
|
|
@@ -12,8 +11,8 @@
|
|
|
12
11
|
"@floating-ui/react-native": "^0.8.1",
|
|
13
12
|
"@gorhom/portal": "^1.0.14",
|
|
14
13
|
"@react-native-picker/picker": "^2.9.0",
|
|
15
|
-
"@telus-uds/system-constants": "^
|
|
16
|
-
"@telus-uds/system-theme-tokens": "^
|
|
14
|
+
"@telus-uds/system-constants": "^3.0.0",
|
|
15
|
+
"@telus-uds/system-theme-tokens": "^4.0.0",
|
|
17
16
|
"airbnb-prop-types": "^2.16.0",
|
|
18
17
|
"css-mediaquery": "^0.1.2",
|
|
19
18
|
"expo-document-picker": "^13.0.1",
|
|
@@ -40,12 +39,12 @@
|
|
|
40
39
|
},
|
|
41
40
|
"exports": {
|
|
42
41
|
".": {
|
|
43
|
-
"import": "./lib/index.js",
|
|
44
|
-
"
|
|
42
|
+
"import": "./lib/esm/index.js",
|
|
43
|
+
"require": "./lib/cjs/index.js"
|
|
45
44
|
},
|
|
46
45
|
"./server": {
|
|
47
|
-
"import": "./lib/server.js",
|
|
48
|
-
"
|
|
46
|
+
"import": "./lib/esm/server.js",
|
|
47
|
+
"require": "./lib/cjs/server.js"
|
|
49
48
|
}
|
|
50
49
|
},
|
|
51
50
|
"homepage": "https://github.com/telus/universal-design-system#readme",
|
|
@@ -53,8 +52,8 @@
|
|
|
53
52
|
"base"
|
|
54
53
|
],
|
|
55
54
|
"license": "MIT",
|
|
56
|
-
"main": "lib/index.js",
|
|
57
|
-
"module": "lib/index.js",
|
|
55
|
+
"main": "lib/cjs/index.js",
|
|
56
|
+
"module": "lib/esm/index.js",
|
|
58
57
|
"name": "@telus-uds/components-base",
|
|
59
58
|
"peerDependencies": {
|
|
60
59
|
"react": "^18.2.0",
|
|
@@ -75,12 +74,15 @@
|
|
|
75
74
|
"lint": "npm run --prefix ../.. lint:path -- --color packages/components-base",
|
|
76
75
|
"lint:fix": "npm run --prefix ../.. lint:path -- --fix packages/components-base",
|
|
77
76
|
"format": "prettier --write .",
|
|
78
|
-
"build": "babel src -d lib
|
|
77
|
+
"build:cjs": "babel src -d lib/cjs",
|
|
78
|
+
"copy:pkg": "cp package.json lib/package.json",
|
|
79
|
+
"build:esm": "babel src -d lib/esm --env-name module",
|
|
80
|
+
"build": "npm run build:cjs && npm run build:esm && npm run copy:pkg"
|
|
79
81
|
},
|
|
80
82
|
"sideEffects": false,
|
|
81
83
|
"standard-engine": {
|
|
82
84
|
"skip": true
|
|
83
85
|
},
|
|
84
|
-
"version": "
|
|
86
|
+
"version": "3.0.0",
|
|
85
87
|
"types": "types/index.d.ts"
|
|
86
88
|
}
|