@telus-uds/components-base 2.4.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 +33 -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/esm/A11yInfoProvider/index.js +65 -0
- package/lib/esm/Autocomplete/Autocomplete.js +473 -0
- package/lib/esm/Autocomplete/Suggestions.js +64 -0
- package/lib/esm/BaseProvider/HydrationContext.js +47 -0
- package/lib/esm/BaseProvider/index.js +40 -0
- package/lib/esm/Button/ButtonDropdown.js +173 -0
- package/lib/esm/Card/Card.js +327 -0
- package/lib/esm/Card/CardBase.js +120 -0
- package/lib/esm/Card/PressableCardBase.js +113 -0
- package/lib/esm/CardGroup/CardGroup.js +210 -0
- package/lib/esm/Carousel/Carousel.js +1039 -0
- package/lib/esm/Carousel/CarouselItem/CarouselItem.js +178 -0
- package/lib/esm/Carousel/CarouselStepTracker/CarouselStepTracker.js +94 -0
- package/lib/esm/Carousel/CarouselTabs/CarouselTabs.js +49 -0
- package/lib/esm/Carousel/CarouselTabs/CarouselTabsPanel.js +88 -0
- package/lib/esm/Carousel/CarouselTabs/CarouselTabsPanelItem.js +118 -0
- package/lib/esm/Carousel/CarouselThumbnail.js +113 -0
- package/lib/esm/Carousel/Constants.js +7 -0
- package/lib/esm/Checkbox/Checkbox.js +342 -0
- package/lib/esm/ColourToggle/ColourToggle.js +91 -0
- package/lib/esm/ExpandCollapseMini/ExpandCollapseMini.js +77 -0
- package/lib/esm/ExpandCollapseMini/ExpandCollapseMiniControl.js +126 -0
- package/lib/esm/ExpandCollapseMini/index.js +2 -0
- package/lib/esm/Footnote/Footnote.js +316 -0
- package/lib/esm/HorizontalScroll/HorizontalScroll.js +167 -0
- package/lib/esm/Icon/Icon.js +94 -0
- package/lib/esm/Icon/IconText.js +110 -0
- package/lib/esm/IconButton/IconButton.js +202 -0
- package/lib/esm/InputSupports/InputSupports.js +133 -0
- package/lib/esm/Link/LinkBase.js +276 -0
- package/lib/esm/List/List.js +76 -0
- package/lib/esm/List/ListItemContent.js +73 -0
- package/lib/esm/Listbox/Listbox.js +168 -0
- package/lib/esm/Listbox/PressableItem.js +139 -0
- package/lib/esm/Modal/Modal.js +370 -0
- package/lib/esm/MultiSelectFilter/MultiSelectFilter.js +537 -0
- package/lib/esm/Notification/Notification.js +430 -0
- package/lib/esm/OrderedList/OrderedList.js +63 -0
- package/lib/esm/Pagination/usePagination.js +77 -0
- package/lib/esm/PriceLockup/utils/renderFootnoteContent.js +85 -0
- package/lib/esm/PriceLockup/utils/renderFootnoteLinks.js +28 -0
- package/lib/esm/PriceLockup/utils/renderPrice.js +139 -0
- package/lib/esm/ProductCard/ProductCard.js +230 -0
- package/lib/esm/Progress/ProgressBarBackground.js +42 -0
- package/lib/esm/QuickLinksFeature/QuickLinksFeature.js +68 -0
- package/lib/esm/Radio/Radio.js +282 -0
- package/lib/esm/Search/Search.js +274 -0
- package/lib/esm/Select/Picker.js +96 -0
- package/lib/esm/StackView/StackWrap.js +48 -0
- package/lib/esm/StackView/getStackedContent.js +121 -0
- package/lib/esm/StepTracker/StepTracker.js +213 -0
- package/lib/esm/TabBar/TabBar.js +125 -0
- package/lib/esm/Tabs/Tabs.js +179 -0
- package/lib/esm/Tabs/TabsItem.js +238 -0
- package/lib/esm/TextInput/TextArea.js +98 -0
- package/lib/esm/TextInput/TextInput.js +79 -0
- package/lib/esm/TextInput/TextInputBase.js +495 -0
- package/lib/esm/ThemeProvider/utils/theme-tokens.js +158 -0
- package/lib/esm/Timeline/Timeline.js +168 -0
- package/lib/esm/Tooltip/Tooltip.native.js +363 -0
- package/lib/esm/Typography/Typography.js +265 -0
- package/lib/esm/Validator/Validator.js +221 -0
- package/lib/esm/ViewportProvider/useViewportListener.js +37 -0
- package/lib/esm/index.js +72 -0
- package/lib/esm/utils/children.js +113 -0
- package/lib/esm/utils/input.js +185 -0
- package/lib/esm/utils/props/componentPropType.js +49 -0
- package/lib/esm/utils/props/selectSystemProps.js +23 -0
- package/lib/esm/utils/ssr-media-query/create-stylesheet/create-stylesheet-mobile.js +48 -0
- package/lib/esm/utils/ssr-media-query/create-stylesheet/index.js +35 -0
- package/lib/esm/utils/ssr-media-query/utils/inject.js +37 -0
- package/lib/esm/utils/useHash.js +38 -0
- package/lib/esm/utils/useOverlaidPosition.js +235 -0
- package/lib/esm/utils/useScrollBlocking.js +49 -0
- package/lib/esm/utils/useSpacingScale.js +123 -0
- 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/CarouselStepTracker/CarouselStepTracker.jsx +3 -0
- package/src/Carousel/Constants.js +4 -0
- package/src/ExpandCollapseMini/ExpandCollapseMini.jsx +76 -0
- package/src/ExpandCollapseMini/ExpandCollapseMiniControl.jsx +119 -0
- package/src/ExpandCollapseMini/index.js +3 -0
- package/src/Link/LinkBase.jsx +8 -3
- package/src/TextInput/TextInputBase.jsx +30 -1
- package/src/index.js +1 -0
- package/src/utils/useOverlaidPosition.js +23 -0
- package/lib/A11yInfoProvider/index.js +0 -65
- package/lib/Autocomplete/Autocomplete.js +0 -483
- package/lib/Autocomplete/Suggestions.js +0 -64
- package/lib/BaseProvider/HydrationContext.js +0 -48
- package/lib/BaseProvider/index.js +0 -41
- package/lib/Button/ButtonDropdown.js +0 -173
- package/lib/Card/Card.js +0 -328
- package/lib/Card/CardBase.js +0 -120
- package/lib/Card/PressableCardBase.js +0 -113
- package/lib/CardGroup/CardGroup.js +0 -210
- package/lib/Carousel/Carousel.js +0 -981
- package/lib/Carousel/CarouselItem/CarouselItem.js +0 -161
- package/lib/Carousel/CarouselStepTracker/CarouselStepTracker.js +0 -91
- package/lib/Carousel/CarouselTabs/CarouselTabs.js +0 -50
- package/lib/Carousel/CarouselTabs/CarouselTabsPanel.js +0 -88
- package/lib/Carousel/CarouselTabs/CarouselTabsPanelItem.js +0 -118
- package/lib/Carousel/CarouselThumbnail.js +0 -113
- package/lib/Carousel/Constants.js +0 -3
- package/lib/Checkbox/Checkbox.js +0 -342
- package/lib/ColourToggle/ColourToggle.js +0 -91
- package/lib/Footnote/Footnote.js +0 -316
- package/lib/HorizontalScroll/HorizontalScroll.js +0 -168
- package/lib/Icon/Icon.js +0 -94
- package/lib/Icon/IconText.js +0 -111
- package/lib/IconButton/IconButton.js +0 -203
- package/lib/InputSupports/InputSupports.js +0 -133
- package/lib/Link/LinkBase.js +0 -271
- package/lib/List/List.js +0 -77
- package/lib/List/ListItemContent.js +0 -73
- package/lib/Listbox/Listbox.js +0 -171
- package/lib/Listbox/PressableItem.js +0 -139
- package/lib/Modal/Modal.js +0 -373
- package/lib/MultiSelectFilter/MultiSelectFilter.js +0 -537
- package/lib/Notification/Notification.js +0 -432
- package/lib/OrderedList/OrderedList.js +0 -64
- package/lib/Pagination/usePagination.js +0 -78
- package/lib/PriceLockup/utils/renderFootnoteContent.js +0 -85
- package/lib/PriceLockup/utils/renderFootnoteLinks.js +0 -28
- package/lib/PriceLockup/utils/renderPrice.js +0 -139
- package/lib/ProductCard/ProductCard.js +0 -231
- package/lib/Progress/ProgressBarBackground.js +0 -42
- package/lib/QuickLinksFeature/QuickLinksFeature.js +0 -69
- package/lib/Radio/Radio.js +0 -282
- package/lib/Search/Search.js +0 -275
- package/lib/Select/Picker.js +0 -96
- package/lib/StackView/StackWrap.js +0 -51
- package/lib/StackView/getStackedContent.js +0 -122
- package/lib/StepTracker/StepTracker.js +0 -214
- package/lib/TabBar/TabBar.js +0 -125
- package/lib/Tabs/Tabs.js +0 -179
- package/lib/Tabs/TabsItem.js +0 -238
- package/lib/TextInput/TextArea.js +0 -98
- package/lib/TextInput/TextInput.js +0 -79
- package/lib/TextInput/TextInputBase.js +0 -468
- package/lib/ThemeProvider/utils/theme-tokens.js +0 -160
- package/lib/Timeline/Timeline.js +0 -169
- package/lib/Tooltip/Tooltip.native.js +0 -363
- package/lib/Typography/Typography.js +0 -266
- package/lib/Validator/Validator.js +0 -226
- package/lib/ViewportProvider/useViewportListener.js +0 -37
- package/lib/index.js +0 -71
- package/lib/utils/children.js +0 -117
- package/lib/utils/input.js +0 -185
- package/lib/utils/props/componentPropType.js +0 -50
- package/lib/utils/props/selectSystemProps.js +0 -23
- package/lib/utils/ssr-media-query/create-stylesheet/create-stylesheet-mobile.js +0 -48
- package/lib/utils/ssr-media-query/create-stylesheet/index.js +0 -36
- package/lib/utils/ssr-media-query/utils/inject.js +0 -39
- package/lib/utils/useHash.js +0 -41
- package/lib/utils/useOverlaidPosition.js +0 -214
- package/lib/utils/useScrollBlocking.js +0 -51
- package/lib/utils/useSpacingScale.js +0 -123
- /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}/Loading.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/{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}/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}/index.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/index.js +0 -0
- /package/lib/{Carousel → esm/Carousel}/CarouselTabs/index.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}/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}/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/{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}/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}/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}/index.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}/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}/TextButton.js +0 -0
- /package/lib/{Link → esm/Link}/index.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}/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}/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}/index.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}/dictionary.js +0 -0
- /package/lib/{MultiSelectFilter → esm/MultiSelectFilter}/index.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}/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/{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/renderTypography.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}/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}/QuickLinksFeatureItem.js +0 -0
- /package/lib/{QuickLinksFeature → esm/QuickLinksFeature}/index.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}/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.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.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}/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}/dictionary.js +0 -0
- /package/lib/{StepTracker → esm/StepTracker}/index.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}/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}/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/{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}/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}/index.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/{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}/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}/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/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/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/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/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.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.native.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.native.js +0 -0
- /package/lib/{utils → esm/utils}/useUniqueId.js +0 -0
- /package/lib/{utils → esm/utils}/withLinkRouter.js +0 -0
|
@@ -1,468 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import Platform from "react-native-web/dist/exports/Platform";
|
|
4
|
-
import StyleSheet from "react-native-web/dist/exports/StyleSheet";
|
|
5
|
-
import NativeTextInput from "react-native-web/dist/exports/TextInput";
|
|
6
|
-
import View from "react-native-web/dist/exports/View";
|
|
7
|
-
import { applyTextStyles, useTheme, useThemeTokens, applyOuterBorder } from '../ThemeProvider';
|
|
8
|
-
import StackView from '../StackView';
|
|
9
|
-
import IconButton from '../IconButton';
|
|
10
|
-
import Icon from '../Icon';
|
|
11
|
-
import { a11yProps, getTokensPropType, selectSystemProps, textInputHandlerProps, textInputProps, useCopy, useInputValue, useSpacingScale, variantProp, viewProps } from '../utils';
|
|
12
|
-
import dictionary from './dictionary';
|
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, textInputHandlerProps, textInputProps, viewProps]);
|
|
15
|
-
const selectInputStyles = function (_ref, themeOptions, inactive, type) {
|
|
16
|
-
let {
|
|
17
|
-
backgroundColor,
|
|
18
|
-
color,
|
|
19
|
-
borderWidth = 0,
|
|
20
|
-
borderColor,
|
|
21
|
-
borderRadius,
|
|
22
|
-
paddingTop = 0,
|
|
23
|
-
paddingBottom = 0,
|
|
24
|
-
paddingLeft,
|
|
25
|
-
paddingRight = 0,
|
|
26
|
-
fontName,
|
|
27
|
-
fontSize,
|
|
28
|
-
fontWeight,
|
|
29
|
-
lineHeight,
|
|
30
|
-
icon,
|
|
31
|
-
minLines,
|
|
32
|
-
maxLines,
|
|
33
|
-
width,
|
|
34
|
-
height
|
|
35
|
-
} = _ref;
|
|
36
|
-
let buttonCount = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
37
|
-
let buttonSize = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
|
|
38
|
-
let buttonsGapSize = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : 0;
|
|
39
|
-
let isPassword = arguments.length > 7 ? arguments[7] : undefined;
|
|
40
|
-
let iconLeftWidth = arguments.length > 8 ? arguments[8] : undefined;
|
|
41
|
-
let iconLeftGap = arguments.length > 9 ? arguments[9] : undefined;
|
|
42
|
-
let direction = arguments.length > 10 ? arguments[10] : undefined;
|
|
43
|
-
// Subtract border width from padding so overall input width/height doesn't
|
|
44
|
-
// jump around if the border width changes (avoiding NaN and negative padding)
|
|
45
|
-
const offsetBorder = value => typeof value === 'number' ? Math.max(0, value - borderWidth) : value;
|
|
46
|
-
const textStyles = applyTextStyles({
|
|
47
|
-
fontName: isPassword ? undefined : fontName,
|
|
48
|
-
// In this case, we don't want to apply the fontName to the input if it's a password because Monotype don't have support for the masked characters in mobile.
|
|
49
|
-
fontSize,
|
|
50
|
-
lineHeight,
|
|
51
|
-
fontWeight,
|
|
52
|
-
themeOptions
|
|
53
|
-
});
|
|
54
|
-
function linesToHeight(lines) {
|
|
55
|
-
const {
|
|
56
|
-
lineHeight: absoluteLineHeight
|
|
57
|
-
} = textStyles;
|
|
58
|
-
return lines !== undefined ? lines * absoluteLineHeight + paddingTop + paddingBottom : undefined;
|
|
59
|
-
}
|
|
60
|
-
const minHeight = linesToHeight(minLines);
|
|
61
|
-
const maxHeight = linesToHeight(maxLines);
|
|
62
|
-
const webStyles = Platform.select({
|
|
63
|
-
web: {
|
|
64
|
-
outline: 'none',
|
|
65
|
-
cursor: inactive ? 'not-allowed' : undefined,
|
|
66
|
-
resize: minHeight !== maxHeight ? 'vertical' : 'none' // does nothing for an input, only needed for textarea
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
const getPaddingLeft = () => {
|
|
70
|
-
if (type === 'card') {
|
|
71
|
-
return offsetBorder(paddingLeft + 34);
|
|
72
|
-
}
|
|
73
|
-
if (direction === 'left') {
|
|
74
|
-
return offsetBorder(iconLeftWidth + iconLeftGap + staticStyles.iconLeftContainer.paddingLeft);
|
|
75
|
-
}
|
|
76
|
-
return offsetBorder(paddingLeft);
|
|
77
|
-
};
|
|
78
|
-
const buttonSpacing = isPassword ? buttonsGapSize : -buttonsGapSize;
|
|
79
|
-
const adjustedPaddingRight = paddingRight + (buttonCount ? 1 : 0) * (buttonSize + buttonSpacing);
|
|
80
|
-
const adjustedPaddingWithButtons = buttonCount > 1 ? paddingRight : adjustedPaddingRight;
|
|
81
|
-
const paddingWithIcon = buttonSize + adjustedPaddingRight;
|
|
82
|
-
return {
|
|
83
|
-
backgroundColor,
|
|
84
|
-
color,
|
|
85
|
-
borderWidth,
|
|
86
|
-
borderColor,
|
|
87
|
-
borderRadius,
|
|
88
|
-
paddingLeft: getPaddingLeft(),
|
|
89
|
-
paddingRight: icon ? offsetBorder(paddingWithIcon) : offsetBorder(adjustedPaddingWithButtons),
|
|
90
|
-
paddingTop: offsetBorder(paddingTop),
|
|
91
|
-
paddingBottom: offsetBorder(paddingBottom),
|
|
92
|
-
minHeight,
|
|
93
|
-
maxHeight,
|
|
94
|
-
width,
|
|
95
|
-
height,
|
|
96
|
-
...textStyles,
|
|
97
|
-
...webStyles
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
const selectOuterBorderStyles = _ref2 => {
|
|
101
|
-
let {
|
|
102
|
-
outerBackgroundColor,
|
|
103
|
-
outerBorderWidth,
|
|
104
|
-
outerBorderColor,
|
|
105
|
-
borderRadius
|
|
106
|
-
} = _ref2;
|
|
107
|
-
return {
|
|
108
|
-
background: outerBackgroundColor,
|
|
109
|
-
...applyOuterBorder({
|
|
110
|
-
outerBorderColor,
|
|
111
|
-
outerBorderWidth,
|
|
112
|
-
borderRadius
|
|
113
|
-
})
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
const selectIconTokens = _ref3 => {
|
|
117
|
-
let {
|
|
118
|
-
iconSize,
|
|
119
|
-
iconColor
|
|
120
|
-
} = _ref3;
|
|
121
|
-
return {
|
|
122
|
-
size: iconSize,
|
|
123
|
-
color: iconColor
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
const selectIconContainerStyles = (_ref4, buttonCount) => {
|
|
127
|
-
let {
|
|
128
|
-
buttonSize,
|
|
129
|
-
buttonsGapSize,
|
|
130
|
-
paddingRight,
|
|
131
|
-
paddingBottom
|
|
132
|
-
} = _ref4;
|
|
133
|
-
return {
|
|
134
|
-
paddingRight: paddingRight + buttonCount * (buttonSize + buttonsGapSize),
|
|
135
|
-
paddingBottom
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
const selectIconCardLeftContainerStyles = _ref5 => {
|
|
139
|
-
let {
|
|
140
|
-
leftIconPaddingBottom
|
|
141
|
-
} = _ref5;
|
|
142
|
-
return {
|
|
143
|
-
paddingBottom: leftIconPaddingBottom
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
const selectIconLeftContainerStyles = _ref6 => {
|
|
147
|
-
let {
|
|
148
|
-
iconLeftPaddingBottom
|
|
149
|
-
} = _ref6;
|
|
150
|
-
return {
|
|
151
|
-
paddingBottom: iconLeftPaddingBottom
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
const selectButtonsContainerStyle = _ref7 => {
|
|
155
|
-
let {
|
|
156
|
-
buttonsPaddingRight
|
|
157
|
-
} = _ref7;
|
|
158
|
-
return {
|
|
159
|
-
paddingRight: buttonsPaddingRight
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
const getIcon = function () {
|
|
163
|
-
let cardNumber = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
164
|
-
let {
|
|
165
|
-
defaultCreditIcon,
|
|
166
|
-
amexIcon,
|
|
167
|
-
visaIcon,
|
|
168
|
-
masterCardIcon
|
|
169
|
-
} = arguments.length > 1 ? arguments[1] : undefined;
|
|
170
|
-
const sanitizedCardNumber = cardNumber.replace(/[^0-9]/g, '');
|
|
171
|
-
const firstFourDigits = sanitizedCardNumber.slice(0, 4);
|
|
172
|
-
const number = Number(firstFourDigits);
|
|
173
|
-
const visaRange = number >= 4000 && number <= 4999;
|
|
174
|
-
const amexRange = number >= 3400 && number <= 3499 || number >= 3700 && number <= 3799;
|
|
175
|
-
const masterCardRange = number >= 5100 && number <= 5599 || number >= 2221 && number <= 2720;
|
|
176
|
-
let selectedIcon = {
|
|
177
|
-
icon: defaultCreditIcon,
|
|
178
|
-
testID: 'default'
|
|
179
|
-
};
|
|
180
|
-
const objVisaIcon = {
|
|
181
|
-
icon: visaIcon,
|
|
182
|
-
testID: 'visa'
|
|
183
|
-
};
|
|
184
|
-
const objAmexIcon = {
|
|
185
|
-
icon: amexIcon,
|
|
186
|
-
testID: 'amex'
|
|
187
|
-
};
|
|
188
|
-
const objMasterCardIcon = {
|
|
189
|
-
icon: masterCardIcon,
|
|
190
|
-
testID: 'mastercard'
|
|
191
|
-
};
|
|
192
|
-
if (visaRange) selectedIcon = objVisaIcon;else if (amexRange) selectedIcon = objAmexIcon;else if (masterCardRange) selectedIcon = objMasterCardIcon;
|
|
193
|
-
return /*#__PURE__*/_jsx(Icon, {
|
|
194
|
-
icon: selectedIcon.icon,
|
|
195
|
-
variant: {
|
|
196
|
-
size: 'large'
|
|
197
|
-
},
|
|
198
|
-
testID: selectedIcon.testID
|
|
199
|
-
});
|
|
200
|
-
};
|
|
201
|
-
const TextInputBase = /*#__PURE__*/React.forwardRef((_ref8, ref) => {
|
|
202
|
-
let {
|
|
203
|
-
buttons = [],
|
|
204
|
-
copy = 'en',
|
|
205
|
-
height,
|
|
206
|
-
inactive,
|
|
207
|
-
initialValue,
|
|
208
|
-
onBlur,
|
|
209
|
-
onChange,
|
|
210
|
-
onChangeText,
|
|
211
|
-
onClear,
|
|
212
|
-
onFocus,
|
|
213
|
-
onMouseOut,
|
|
214
|
-
onMouseOver,
|
|
215
|
-
pattern,
|
|
216
|
-
readOnly,
|
|
217
|
-
tokens,
|
|
218
|
-
value,
|
|
219
|
-
variant = {},
|
|
220
|
-
type,
|
|
221
|
-
onKeyPress,
|
|
222
|
-
direction,
|
|
223
|
-
...rest
|
|
224
|
-
} = _ref8;
|
|
225
|
-
const [isFocused, setIsFocused] = React.useState(false);
|
|
226
|
-
const [showPassword, setShowPassword] = React.useState(false);
|
|
227
|
-
const handleFocus = event => {
|
|
228
|
-
setIsFocused(true);
|
|
229
|
-
if (typeof onFocus === 'function') onFocus(event);
|
|
230
|
-
};
|
|
231
|
-
const handleBlur = event => {
|
|
232
|
-
setIsFocused(false);
|
|
233
|
-
if (typeof onBlur === 'function') onBlur(event);
|
|
234
|
-
};
|
|
235
|
-
const [isHovered, setIsHovered] = React.useState(false);
|
|
236
|
-
const handleMouseOver = event => {
|
|
237
|
-
setIsHovered(true);
|
|
238
|
-
if (typeof onMouseOver === 'function') onMouseOver(event);
|
|
239
|
-
};
|
|
240
|
-
const handleMouseOut = event => {
|
|
241
|
-
setIsHovered(false);
|
|
242
|
-
if (typeof onMouseOut === 'function') onMouseOut(event);
|
|
243
|
-
};
|
|
244
|
-
const defaultRef = React.useRef();
|
|
245
|
-
const inputRef = ref ?? defaultRef;
|
|
246
|
-
const {
|
|
247
|
-
currentValue,
|
|
248
|
-
resetValue,
|
|
249
|
-
setValue,
|
|
250
|
-
isControlled,
|
|
251
|
-
isDirty
|
|
252
|
-
} = useInputValue({
|
|
253
|
-
value,
|
|
254
|
-
initialValue,
|
|
255
|
-
inputRef,
|
|
256
|
-
onChange,
|
|
257
|
-
readOnly
|
|
258
|
-
});
|
|
259
|
-
const {
|
|
260
|
-
password,
|
|
261
|
-
numeric
|
|
262
|
-
} = variant;
|
|
263
|
-
const isNumeric = numeric || type === 'card' || type === 'number';
|
|
264
|
-
const isPassword = password || type === 'password';
|
|
265
|
-
const element = inputRef === null || inputRef === void 0 ? void 0 : inputRef.current;
|
|
266
|
-
React.useEffect(() => {
|
|
267
|
-
if (Platform.OS === 'web' && pattern && element) {
|
|
268
|
-
// React Native Web doesn't support `pattern`, so we have to attach it via a ref,
|
|
269
|
-
// which a `pattern` user must provide anyway to call .checkValidity() on the element.
|
|
270
|
-
element.pattern = pattern;
|
|
271
|
-
}
|
|
272
|
-
}, [element, pattern]);
|
|
273
|
-
const handleChangeText = event => {
|
|
274
|
-
var _event$nativeEvent, _event$target;
|
|
275
|
-
const text = ((_event$nativeEvent = event.nativeEvent) === null || _event$nativeEvent === void 0 ? void 0 : _event$nativeEvent.text) || ((_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.value);
|
|
276
|
-
let filteredText = isNumeric ? text === null || text === void 0 ? void 0 : text.replace(/[^\d]/g, '') : text;
|
|
277
|
-
if (type === 'card' && filteredText) {
|
|
278
|
-
const formattedValue = filteredText.replace(/[^a-zA-Z0-9]/g, '');
|
|
279
|
-
const regex = new RegExp(`([a-zA-Z0-9]{4})(?=[a-zA-Z0-9])`, 'g');
|
|
280
|
-
// Add a space every 4 digits starting from the 5th position
|
|
281
|
-
filteredText = formattedValue.replace(regex, '$1 ').trim();
|
|
282
|
-
}
|
|
283
|
-
setValue(filteredText, event);
|
|
284
|
-
if (typeof onChangeText === 'function') onChangeText(filteredText, event);
|
|
285
|
-
};
|
|
286
|
-
const states = {
|
|
287
|
-
focus: isFocused,
|
|
288
|
-
hover: isHovered,
|
|
289
|
-
inactive
|
|
290
|
-
};
|
|
291
|
-
const themeTokens = useThemeTokens('TextInput', tokens, variant, states);
|
|
292
|
-
const handleClear = event => {
|
|
293
|
-
var _inputRef$current;
|
|
294
|
-
onClear === null || onClear === void 0 || onClear(event);
|
|
295
|
-
resetValue(event);
|
|
296
|
-
inputRef === null || inputRef === void 0 || (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
297
|
-
};
|
|
298
|
-
const handleShowOrHide = () => {
|
|
299
|
-
if (!variant.inactive) setShowPassword(!showPassword);
|
|
300
|
-
};
|
|
301
|
-
const {
|
|
302
|
-
buttonsGap,
|
|
303
|
-
clearButtonIcon: ClearButtonIcon,
|
|
304
|
-
icon: IconComponent,
|
|
305
|
-
passwordShowButtonIcon,
|
|
306
|
-
passwordHideButtonIcon,
|
|
307
|
-
defaultCreditIcon,
|
|
308
|
-
amexIcon,
|
|
309
|
-
visaIcon,
|
|
310
|
-
masterCardIcon,
|
|
311
|
-
iconLeftGap
|
|
312
|
-
} = themeTokens;
|
|
313
|
-
const buttonsGapSize = useSpacingScale(buttonsGap);
|
|
314
|
-
const getCopy = useCopy({
|
|
315
|
-
dictionary,
|
|
316
|
-
copy
|
|
317
|
-
});
|
|
318
|
-
const textInputButtons = direction === 'left' ? buttons.filter(button => button && button.key !== 'submitIcon') : buttons;
|
|
319
|
-
const submitIcon = direction === 'left' ? buttons.find(button => button && button.key === 'submitIcon') : null;
|
|
320
|
-
if (onClear && isDirty) {
|
|
321
|
-
textInputButtons === null || textInputButtons === void 0 || textInputButtons.unshift(/*#__PURE__*/_jsx(IconButton, {
|
|
322
|
-
accessibilityLabel: getCopy('clearButtonAccessibilityLabel'),
|
|
323
|
-
icon: ClearButtonIcon,
|
|
324
|
-
onPress: handleClear,
|
|
325
|
-
variant: {
|
|
326
|
-
compact: true
|
|
327
|
-
}
|
|
328
|
-
}, "clear"));
|
|
329
|
-
}
|
|
330
|
-
if (isPassword) {
|
|
331
|
-
textInputButtons === null || textInputButtons === void 0 || textInputButtons.unshift(/*#__PURE__*/_jsx(IconButton, {
|
|
332
|
-
accessibilityLabel: showPassword ? getCopy('hidePasswordAccessibilityLabel') : getCopy('showPasswordAccessibilityLabel'),
|
|
333
|
-
icon: !showPassword ? passwordShowButtonIcon : passwordHideButtonIcon,
|
|
334
|
-
onPress: handleShowOrHide,
|
|
335
|
-
variant: {
|
|
336
|
-
compact: true,
|
|
337
|
-
password: true,
|
|
338
|
-
inactive: variant.inactive,
|
|
339
|
-
size: 'large'
|
|
340
|
-
},
|
|
341
|
-
tokens: {
|
|
342
|
-
width: 40,
|
|
343
|
-
height: 40
|
|
344
|
-
}
|
|
345
|
-
}, !showPassword ? 'hide' : 'show'));
|
|
346
|
-
}
|
|
347
|
-
const inputProps = {
|
|
348
|
-
...selectProps(rest),
|
|
349
|
-
editable: !inactive,
|
|
350
|
-
onFocus: handleFocus,
|
|
351
|
-
onBlur: handleBlur,
|
|
352
|
-
onMouseOver: handleMouseOver,
|
|
353
|
-
onMouseOut: handleMouseOut,
|
|
354
|
-
onChange: handleChangeText,
|
|
355
|
-
defaultValue: initialValue,
|
|
356
|
-
maxLength: type === 'card' ? 19 : undefined,
|
|
357
|
-
value: isControlled ? currentValue : undefined,
|
|
358
|
-
onKeyPress
|
|
359
|
-
};
|
|
360
|
-
const {
|
|
361
|
-
themeOptions
|
|
362
|
-
} = useTheme();
|
|
363
|
-
const iconLeftWidth = submitIcon ? submitIcon.props.tokens.size ?? 0 : 0;
|
|
364
|
-
const nativeInputStyle = selectInputStyles({
|
|
365
|
-
...themeTokens,
|
|
366
|
-
height
|
|
367
|
-
}, themeOptions, inactive, type, buttons === null || buttons === void 0 ? void 0 : buttons.length, themeTokens.buttonSize, buttonsGapSize, isPassword, iconLeftWidth, iconLeftGap, direction);
|
|
368
|
-
const shouldShowSubmitIcon = submitIcon && direction === 'left' && !inactive;
|
|
369
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
370
|
-
style: selectOuterBorderStyles(themeTokens),
|
|
371
|
-
children: [shouldShowSubmitIcon && /*#__PURE__*/_jsx(View, {
|
|
372
|
-
style: [staticStyles.iconLeftContainer, selectIconLeftContainerStyles(themeTokens)],
|
|
373
|
-
children: submitIcon
|
|
374
|
-
}), type === 'card' && /*#__PURE__*/_jsx(View, {
|
|
375
|
-
pointerEvents: "none",
|
|
376
|
-
style: [staticStyles.iconCardLeftContainer, selectIconCardLeftContainerStyles(themeTokens)],
|
|
377
|
-
children: getIcon(currentValue, {
|
|
378
|
-
defaultCreditIcon,
|
|
379
|
-
amexIcon,
|
|
380
|
-
visaIcon,
|
|
381
|
-
masterCardIcon
|
|
382
|
-
})
|
|
383
|
-
}), /*#__PURE__*/_jsx(NativeTextInput, {
|
|
384
|
-
ref: inputRef,
|
|
385
|
-
keyboardType: isNumeric ? 'numeric' : 'default',
|
|
386
|
-
inputMode: isNumeric ? 'numeric' : undefined,
|
|
387
|
-
style: nativeInputStyle,
|
|
388
|
-
secureTextEntry: isPassword && !showPassword,
|
|
389
|
-
...inputProps
|
|
390
|
-
}), IconComponent && /*#__PURE__*/_jsx(View, {
|
|
391
|
-
pointerEvents: "none" // avoid hijacking input press events
|
|
392
|
-
,
|
|
393
|
-
style: [staticStyles.rightIconContainer, selectIconContainerStyles({
|
|
394
|
-
...themeTokens,
|
|
395
|
-
buttonsGapSize
|
|
396
|
-
}, buttons === null || buttons === void 0 ? void 0 : buttons.length)],
|
|
397
|
-
children: /*#__PURE__*/_jsx(IconComponent, {
|
|
398
|
-
...selectIconTokens(themeTokens)
|
|
399
|
-
})
|
|
400
|
-
}), (buttons === null || buttons === void 0 ? void 0 : buttons.length) > 0 && !inactive && /*#__PURE__*/_jsx(View, {
|
|
401
|
-
style: [staticStyles.buttonsContainer, selectButtonsContainerStyle(themeTokens)],
|
|
402
|
-
children: /*#__PURE__*/_jsx(StackView, {
|
|
403
|
-
direction: "row",
|
|
404
|
-
space: buttonsGap,
|
|
405
|
-
children: textInputButtons
|
|
406
|
-
})
|
|
407
|
-
})]
|
|
408
|
-
});
|
|
409
|
-
});
|
|
410
|
-
TextInputBase.displayName = 'TextInputBase';
|
|
411
|
-
TextInputBase.propTypes = {
|
|
412
|
-
...selectedSystemPropTypes,
|
|
413
|
-
buttons: PropTypes.arrayOf(PropTypes.node),
|
|
414
|
-
/**
|
|
415
|
-
* Select English or French copy for the accessible labels.
|
|
416
|
-
* You may also pass in a custom dictionary object.
|
|
417
|
-
*/
|
|
418
|
-
copy: PropTypes.oneOfType([PropTypes.oneOf(['en', 'fr']), PropTypes.shape({
|
|
419
|
-
clearButtonAccessibilityLabel: PropTypes.string
|
|
420
|
-
})]),
|
|
421
|
-
type: PropTypes.oneOfType([PropTypes.oneOf(['password', 'card', 'number'])]),
|
|
422
|
-
height: PropTypes.number,
|
|
423
|
-
inactive: PropTypes.bool,
|
|
424
|
-
initialValue: PropTypes.string,
|
|
425
|
-
onBlur: PropTypes.func,
|
|
426
|
-
onChange: PropTypes.func,
|
|
427
|
-
onChangeText: PropTypes.func,
|
|
428
|
-
onClear: PropTypes.func,
|
|
429
|
-
onFocus: PropTypes.func,
|
|
430
|
-
onMouseOut: PropTypes.func,
|
|
431
|
-
onMouseOver: PropTypes.func,
|
|
432
|
-
onKeyPress: PropTypes.func,
|
|
433
|
-
readOnly: PropTypes.bool,
|
|
434
|
-
tokens: getTokensPropType('TextInput', 'TextArea'),
|
|
435
|
-
value: PropTypes.string,
|
|
436
|
-
variant: variantProp.propType
|
|
437
|
-
};
|
|
438
|
-
export default TextInputBase;
|
|
439
|
-
const staticStyles = StyleSheet.create({
|
|
440
|
-
buttonsContainer: {
|
|
441
|
-
position: 'absolute',
|
|
442
|
-
flexDirection: 'row',
|
|
443
|
-
alignItems: 'center',
|
|
444
|
-
right: 0,
|
|
445
|
-
top: 0,
|
|
446
|
-
bottom: 0,
|
|
447
|
-
justifyContent: 'center'
|
|
448
|
-
},
|
|
449
|
-
rightIconContainer: {
|
|
450
|
-
position: 'absolute',
|
|
451
|
-
right: 0,
|
|
452
|
-
bottom: 0
|
|
453
|
-
},
|
|
454
|
-
iconCardLeftContainer: {
|
|
455
|
-
paddingLeft: 10,
|
|
456
|
-
position: 'absolute',
|
|
457
|
-
left: 0,
|
|
458
|
-
bottom: 0,
|
|
459
|
-
zIndex: 1
|
|
460
|
-
},
|
|
461
|
-
iconLeftContainer: {
|
|
462
|
-
paddingLeft: 10,
|
|
463
|
-
position: 'absolute',
|
|
464
|
-
left: 0,
|
|
465
|
-
bottom: 0,
|
|
466
|
-
zIndex: 1
|
|
467
|
-
}
|
|
468
|
-
});
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import semVerSatisfies from 'semver/functions/satisfies';
|
|
3
|
-
import pkg from '../../../package.json';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @typedef {import('../../utils/props/variantProp.js').AppearanceSet} AppearanceSet
|
|
7
|
-
* @typedef {import('../../utils/props/tokens.js').TokensProp} TokensProp
|
|
8
|
-
* @typedef {import('../../utils/props/tokens.js').TokensSet} TokensSet
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* General utilities around working with theme tokens
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
export const getComponentTheme = (theme, componentName) => {
|
|
16
|
-
var _theme$metadata;
|
|
17
|
-
// Give clear and understandable error messages for common dev errors, for example,
|
|
18
|
-
// typo in component name, missing export or accessing old version of theme
|
|
19
|
-
if (!theme) {
|
|
20
|
-
throw new Error(`Called useTheme's getStyle on "${componentName}" with no theme provided`);
|
|
21
|
-
}
|
|
22
|
-
const themeName = ((_theme$metadata = theme.metadata) === null || _theme$metadata === void 0 ? void 0 : _theme$metadata.name) || '';
|
|
23
|
-
if (!theme.components) {
|
|
24
|
-
throw new Error(`Theme "${themeName}" has no components defined (looking for "${componentName}")`);
|
|
25
|
-
}
|
|
26
|
-
const componentTheme = theme.components[componentName];
|
|
27
|
-
if (!componentTheme) {
|
|
28
|
-
throw new Error(`Theme "${themeName}" does not have styles for component "${componentName}"`);
|
|
29
|
-
}
|
|
30
|
-
return componentTheme;
|
|
31
|
-
};
|
|
32
|
-
export const doesThemeConditionApply = (_ref, appearances) => {
|
|
33
|
-
let [key, value] = _ref;
|
|
34
|
-
// use null rather than undefined so we can serialise the value in themes
|
|
35
|
-
const appearanceValue = appearances[key] ?? null;
|
|
36
|
-
return Array.isArray(value) ? value.includes(appearanceValue) : value === appearanceValue;
|
|
37
|
-
};
|
|
38
|
-
export const doesThemeRuleApply = (rule, appearances) => Object.entries(rule.if).every(condition => doesThemeConditionApply(condition, appearances));
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Turns a tokens prop (which may be either a tokens object or a tokens getter function)
|
|
42
|
-
* into one resolved tokens object, based on current appearances state.
|
|
43
|
-
*
|
|
44
|
-
* This is used inside `useThemeTokens` and `useThemeTokensCallback` for handling the `tokens`
|
|
45
|
-
* props of themed components. It may also be used directly in cases where a non-themed component
|
|
46
|
-
* needs to resolve a tokens prop that may be a tokens getter function or a resolved tokens object.
|
|
47
|
-
*
|
|
48
|
-
* A second tokens prop of tokens overrides may optionally be passed; it will be resolved to an object
|
|
49
|
-
* based on provided appearance state and then shallow-merged over the first set of tokens.
|
|
50
|
-
*
|
|
51
|
-
* @param {TokensProp} defaultTokens - a set of tokens or tokens getter function which may be overridden
|
|
52
|
-
* @param {AppearanceSet} [appearances] - optional appearance set to pass to tokens getter functions
|
|
53
|
-
* @param {TokensProp} [tokenOverrides] - optional set of tokens or tokens getter function to override the default
|
|
54
|
-
* @returns {TokensSet} - object containing resolved tokens with overrides applied
|
|
55
|
-
*/
|
|
56
|
-
export const resolveThemeTokens = function (defaultTokens) {
|
|
57
|
-
let appearances = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
58
|
-
let tokenOverrides = arguments.length > 2 ? arguments[2] : undefined;
|
|
59
|
-
const resolve = tokens => typeof tokens === 'function' ? tokens(appearances) : tokens;
|
|
60
|
-
if (!tokenOverrides) return resolve(defaultTokens);
|
|
61
|
-
return Object.entries(resolve(tokenOverrides)).reduce((mergedTokens, _ref2) => {
|
|
62
|
-
let [tokenName, tokenValue] = _ref2;
|
|
63
|
-
return tokenValue === undefined ? mergedTokens : {
|
|
64
|
-
...mergedTokens,
|
|
65
|
-
[tokenName]: tokenValue
|
|
66
|
-
};
|
|
67
|
-
}, resolve(defaultTokens));
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Gives a prop types error if a set of resolved tokens doesn't match a provided prop
|
|
72
|
-
* types validator.
|
|
73
|
-
*
|
|
74
|
-
* In production, this is a no-op (PropTypes.checkPropTypes is automatically replaced
|
|
75
|
-
* with a no-op function).
|
|
76
|
-
*
|
|
77
|
-
* @param {TokensSet} themeTokens - object containing resolved theme tokens
|
|
78
|
-
* @param {function} validator - PropTypes validator function
|
|
79
|
-
* @param {string} componentName - identifier to display in PropType error messages
|
|
80
|
-
*/
|
|
81
|
-
export const validateThemeTokens = (themeTokens, validator, componentName) => {
|
|
82
|
-
PropTypes.checkPropTypes({
|
|
83
|
-
tokens: validator
|
|
84
|
-
}, {
|
|
85
|
-
tokens: themeTokens
|
|
86
|
-
}, 'resolved token', componentName);
|
|
87
|
-
return themeTokens;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Merges variants over states. Must be merged in that order to allow static showcases of a state,
|
|
92
|
-
* e.g. `<Button variant={{ pressed: true }} />` where button's pressed state is `false` by default.
|
|
93
|
-
* Returns an empty object if both variants and states are undefined.
|
|
94
|
-
*
|
|
95
|
-
* @param {AppearanceSet} [variants]
|
|
96
|
-
* @param {AppearanceSet} [states]
|
|
97
|
-
* @returns {AppearanceSet}
|
|
98
|
-
*/
|
|
99
|
-
export const mergeAppearances = function () {
|
|
100
|
-
let variants = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
101
|
-
let states = arguments.length > 1 ? arguments[1] : undefined;
|
|
102
|
-
return states ? {
|
|
103
|
-
...states,
|
|
104
|
-
...variants
|
|
105
|
-
} : variants;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Get a set of theme tokens by applying a theme's component rules based on a component's variants and state.
|
|
110
|
-
*
|
|
111
|
-
* This is used internally in `useThemeTokens` and `useThemeTokensCallback` and should not normally be called directly.
|
|
112
|
-
*
|
|
113
|
-
* @param {object} componentTheme - object containing a theme's `tokens` and `rules` for a component
|
|
114
|
-
* @param {object|function} [tokensProp] - UDS tokens prop containing theming overrides
|
|
115
|
-
* @param {object} [variants] - UDS variant prop containing the variant options for this component instance
|
|
116
|
-
* @param {object} [states] - object containing current state options for this component instance
|
|
117
|
-
* @returns {object} Set of resolved theme tokens
|
|
118
|
-
*/
|
|
119
|
-
export const getThemeTokens = function (_ref3, tokensProp) {
|
|
120
|
-
let {
|
|
121
|
-
rules = [],
|
|
122
|
-
tokens: defaultThemeTokens = {}
|
|
123
|
-
} = _ref3;
|
|
124
|
-
let variants = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
125
|
-
let states = arguments.length > 3 ? arguments[3] : undefined;
|
|
126
|
-
const appearances = mergeAppearances(variants, states);
|
|
127
|
-
// TODO: if in dev mode, validate the appearances and provided propTokens
|
|
128
|
-
|
|
129
|
-
// Get the theme's default tokens set and merge tokens from applicable theme rules over it
|
|
130
|
-
const themeTokens = rules.reduce((mergedTokens, rule) => doesThemeRuleApply(rule, appearances) ? {
|
|
131
|
-
...mergedTokens,
|
|
132
|
-
...rule.tokens
|
|
133
|
-
} : mergedTokens, defaultThemeTokens);
|
|
134
|
-
return resolveThemeTokens(themeTokens, appearances, tokensProp);
|
|
135
|
-
};
|
|
136
|
-
export const toArray = strOrArr => Array.isArray(strOrArr) ? strOrArr : [strOrArr];
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Throws an error if the theme was built with an incompatible version of @telus-uds/system-theme-tokens
|
|
140
|
-
*
|
|
141
|
-
* This is used internally by the ThemeProvider to force a fast failure when an incompatible version is detected.
|
|
142
|
-
*
|
|
143
|
-
* Version compatibility is calculated with semver.satisfies.
|
|
144
|
-
* Refer to https://github.com/npm/node-semver and https://semver.npmjs.com/ for details about how
|
|
145
|
-
* semver compatibility.
|
|
146
|
-
*
|
|
147
|
-
* @param {object} theme - UDS theme built for react-native
|
|
148
|
-
*/
|
|
149
|
-
export const validateThemeTokensVersion = theme => {
|
|
150
|
-
var _theme$metadata2;
|
|
151
|
-
const expectedThemeTokensVersion = pkg.dependencies['@telus-uds/system-theme-tokens'];
|
|
152
|
-
const actualThemeTokensVersion = theme === null || theme === void 0 || (_theme$metadata2 = theme.metadata) === null || _theme$metadata2 === void 0 ? void 0 : _theme$metadata2.themeTokensVersion;
|
|
153
|
-
if (!semVerSatisfies(actualThemeTokensVersion, expectedThemeTokensVersion)) {
|
|
154
|
-
throw new Error(`Invalid UDS token schema version detected.
|
|
155
|
-
|
|
156
|
-
The UDS base components ${pkg.name} v${pkg.version} are only compatible with UDS themes that are built with @telus-uds/system-theme-tokens version that is semver compatible with ${expectedThemeTokensVersion}. The current theme was built with @telus-uds/system-theme-tokens v${actualThemeTokensVersion}.
|
|
157
|
-
|
|
158
|
-
If you see this error than most likely you have attempted to install ${pkg.name} and a UDS theme manually because you are building a multi-brand application. If you are building a single brand application, consider installing the brand specific design system package such as @telus-uds/ds-allium. For more information, see https://github.com/telus/universal-design-system/blob/main/docs/docs/multi-brand-usage.md`);
|
|
159
|
-
}
|
|
160
|
-
};
|