@telus-uds/components-web 3.3.0 → 4.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/.eslintrc.cjs +7 -1
- package/CHANGELOG.md +38 -2
- package/jest.config.cjs +1 -1
- package/lib/cjs/Badge/Badge.js +128 -0
- package/lib/cjs/Badge/index.js +9 -0
- package/lib/cjs/BlockQuote/BlockQuote.js +256 -0
- package/lib/cjs/BlockQuote/index.js +9 -0
- package/lib/cjs/Breadcrumbs/Breadcrumbs.js +264 -0
- package/lib/cjs/Breadcrumbs/Item/Item.js +180 -0
- package/lib/cjs/Breadcrumbs/index.js +13 -0
- package/lib/cjs/Callout/Callout.js +141 -0
- package/lib/cjs/Callout/index.js +9 -0
- package/lib/cjs/Card/Card.js +257 -0
- package/lib/cjs/Card/CardContent.js +97 -0
- package/lib/cjs/Card/CardFooter.js +85 -0
- package/lib/cjs/Card/index.js +9 -0
- package/lib/cjs/Countdown/Countdown.js +268 -0
- package/lib/cjs/Countdown/Segment.js +108 -0
- package/lib/cjs/Countdown/constants.js +10 -0
- package/lib/cjs/Countdown/dictionary.js +28 -0
- package/lib/cjs/Countdown/index.js +9 -0
- package/lib/cjs/Countdown/types.js +31 -0
- package/lib/cjs/Countdown/useCountdown.js +32 -0
- package/lib/cjs/DatePicker/CalendarContainer.js +214 -0
- package/lib/cjs/DatePicker/DatePicker.js +525 -0
- package/lib/cjs/DatePicker/dictionary.js +125 -0
- package/lib/cjs/DatePicker/index.js +9 -0
- package/lib/cjs/DatePicker/reactDatesCss.js +9 -0
- package/lib/cjs/Disclaimer/Disclaimer.js +61 -0
- package/lib/cjs/Disclaimer/index.js +13 -0
- package/lib/cjs/Footnote/Footnote.js +637 -0
- package/lib/cjs/Footnote/FootnoteLink.js +125 -0
- package/lib/cjs/Footnote/dictionary.js +18 -0
- package/lib/cjs/Footnote/index.js +11 -0
- package/lib/cjs/IconButton/IconButton.js +62 -0
- package/lib/cjs/IconButton/index.js +9 -0
- package/lib/cjs/Image/Image.js +90 -0
- package/lib/cjs/Image/index.js +20 -0
- package/lib/cjs/Image/server.js +11 -0
- package/lib/cjs/List/List.js +8 -0
- package/lib/cjs/List/ListItem.js +34 -0
- package/lib/cjs/List/index.js +11 -0
- package/lib/cjs/NavigationBar/NavigationBar.js +282 -0
- package/lib/cjs/NavigationBar/NavigationItem.js +94 -0
- package/lib/cjs/NavigationBar/NavigationSubMenu.js +164 -0
- package/lib/{NavigationBar → cjs/NavigationBar}/collapseItems.js +9 -4
- package/lib/cjs/NavigationBar/index.js +11 -0
- package/lib/cjs/NavigationBar/resolveItemSelection.js +22 -0
- package/lib/cjs/OptimizeImage/OptimizeImage.js +99 -0
- package/lib/cjs/OptimizeImage/index.js +9 -0
- package/lib/cjs/OptimizeImage/utils/getFallbackUrl.js +14 -0
- package/lib/cjs/OptimizeImage/utils/getImageUrls.js +19 -0
- package/lib/cjs/OptimizeImage/utils/getOptimizedUrl.js +24 -0
- package/lib/cjs/OptimizeImage/utils/hasWebpSupport.js +34 -0
- package/lib/cjs/OptimizeImage/utils/index.js +34 -0
- package/lib/cjs/OptimizeImage/utils/isSvgUrl.js +9 -0
- package/lib/cjs/OrderedList/Item.js +151 -0
- package/lib/cjs/OrderedList/ItemBase.js +34 -0
- package/lib/cjs/OrderedList/OrderedList.js +92 -0
- package/lib/cjs/OrderedList/OrderedListBase.js +52 -0
- package/lib/cjs/OrderedList/constants.js +8 -0
- package/lib/cjs/OrderedList/index.js +11 -0
- package/lib/cjs/Paragraph/Paragraph.js +97 -0
- package/lib/cjs/Paragraph/index.js +9 -0
- package/lib/cjs/PreviewCard/AuthorDate.js +63 -0
- package/lib/cjs/PreviewCard/PreviewCard.js +215 -0
- package/lib/cjs/PreviewCard/index.js +9 -0
- package/lib/cjs/PriceLockup/PriceLockup.js +356 -0
- package/lib/cjs/PriceLockup/index.js +9 -0
- package/lib/cjs/PriceLockup/tokens.js +66 -0
- package/lib/cjs/Progress/ProgressBar.js +99 -0
- package/lib/cjs/Progress/index.js +11 -0
- package/lib/cjs/QuantitySelector/QuantitySelector.js +267 -0
- package/lib/cjs/QuantitySelector/SideButton.js +77 -0
- package/lib/cjs/QuantitySelector/dictionary.js +32 -0
- package/lib/cjs/QuantitySelector/index.js +9 -0
- package/lib/cjs/QuantitySelector/styles.js +16 -0
- package/lib/cjs/ResponsiveImage/ResponsiveImage.js +107 -0
- package/lib/cjs/ResponsiveImage/index.js +9 -0
- package/lib/cjs/Ribbon/Ribbon.js +222 -0
- package/lib/cjs/Ribbon/index.js +9 -0
- package/lib/cjs/SkeletonProvider/SkeletonImage.js +45 -0
- package/lib/cjs/SkeletonProvider/SkeletonProvider.js +63 -0
- package/lib/cjs/SkeletonProvider/SkeletonTypography.js +44 -0
- package/lib/cjs/SkeletonProvider/index.js +9 -0
- package/lib/cjs/Span/Span.js +79 -0
- package/lib/cjs/Span/index.js +9 -0
- package/lib/cjs/Spinner/Spinner.js +221 -0
- package/lib/cjs/Spinner/SpinnerContent.js +100 -0
- package/lib/cjs/Spinner/constants.js +10 -0
- package/lib/cjs/Spinner/index.js +9 -0
- package/lib/cjs/StoryCard/StoryCard.js +219 -0
- package/lib/cjs/StoryCard/index.js +9 -0
- package/lib/cjs/Table/Body.js +24 -0
- package/lib/cjs/Table/Cell.js +187 -0
- package/lib/cjs/Table/Header.js +32 -0
- package/lib/cjs/Table/Row.js +41 -0
- package/lib/cjs/Table/SubHeading.js +30 -0
- package/lib/cjs/Table/Table.js +124 -0
- package/lib/cjs/Table/index.js +19 -0
- package/lib/cjs/TermsAndConditions/ExpandCollapse.js +160 -0
- package/lib/cjs/TermsAndConditions/TermsAndConditions.js +283 -0
- package/lib/cjs/TermsAndConditions/dictionary.js +22 -0
- package/lib/cjs/TermsAndConditions/index.js +13 -0
- package/lib/cjs/Testimonial/Testimonial.js +240 -0
- package/lib/cjs/Testimonial/index.js +9 -0
- package/lib/cjs/Toast/Toast.js +165 -0
- package/lib/cjs/Toast/index.js +9 -0
- package/lib/cjs/Video/ControlBar/ControlBar.js +294 -0
- package/lib/cjs/Video/ControlBar/Controls/VideoButton/VideoButton.js +76 -0
- package/lib/cjs/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +169 -0
- package/lib/cjs/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +211 -0
- package/lib/cjs/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +197 -0
- package/lib/cjs/Video/MiddleControlButton/MiddleControlButton.js +78 -0
- package/lib/cjs/Video/Video.js +964 -0
- package/lib/cjs/Video/index.js +9 -0
- package/lib/cjs/Video/videoText.js +61 -0
- package/lib/cjs/VideoPicker/VideoPicker.js +197 -0
- package/lib/cjs/VideoPicker/VideoPickerPlayer.js +54 -0
- package/lib/cjs/VideoPicker/VideoPickerThumbnail.js +223 -0
- package/lib/cjs/VideoPicker/VideoSlider.js +88 -0
- package/lib/cjs/VideoPicker/index.js +9 -0
- package/lib/cjs/VideoPicker/videoPropType.js +17 -0
- package/lib/cjs/WaffleGrid/WaffleGrid.js +164 -0
- package/lib/cjs/WaffleGrid/index.js +9 -0
- package/lib/cjs/WebVideo/WebVideo.js +197 -0
- package/lib/cjs/WebVideo/index.js +9 -0
- package/lib/cjs/WebVideo/utils/index.js +57 -0
- package/lib/cjs/baseExports.js +438 -0
- package/lib/cjs/index.js +317 -0
- package/lib/cjs/server.js +13 -0
- package/lib/cjs/shared/ConditionalWrapper/ConditionalWrapper.js +29 -0
- package/lib/cjs/shared/ConditionalWrapper/index.js +9 -0
- package/lib/cjs/shared/FullBleedContent/FullBleedContent.js +108 -0
- package/lib/cjs/shared/FullBleedContent/getFullBleedBorderRadius.js +61 -0
- package/lib/cjs/shared/FullBleedContent/index.js +23 -0
- package/lib/cjs/shared/FullBleedContent/useFullBleedContentProps.js +61 -0
- package/lib/cjs/shared/VideoSplash/SplashButton/SplashButton.js +91 -0
- package/lib/cjs/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +229 -0
- package/lib/cjs/shared/VideoSplash/VideoSplash.js +72 -0
- package/lib/cjs/shared/VideoSplash/helpers.js +32 -0
- package/lib/cjs/utils/index.js +88 -0
- package/lib/cjs/utils/isElementFocusable.js +14 -0
- package/lib/cjs/utils/logger.js +24 -0
- package/lib/cjs/utils/media.js +45 -0
- package/lib/cjs/utils/renderStructuredContent.js +71 -0
- package/lib/cjs/utils/scrollToAnchor.js +25 -0
- package/lib/cjs/utils/ssr.js +50 -0
- package/lib/cjs/utils/theming/get-theme-from-server.js +24 -0
- package/lib/cjs/utils/theming/with-client-theme.js +31 -0
- package/lib/cjs/utils/theming/with-server-theme.js +33 -0
- package/lib/cjs/utils/transforms.js +11 -0
- package/lib/cjs/utils/useOverlaidPosition.js +222 -0
- package/lib/cjs/utils/useTypographyTheme.js +30 -0
- package/lib/{Badge → esm/Badge}/Badge.js +11 -19
- package/lib/{BlockQuote → esm/BlockQuote}/BlockQuote.js +17 -31
- package/lib/{Breadcrumbs → esm/Breadcrumbs}/Breadcrumbs.js +6 -5
- package/lib/{Breadcrumbs → esm/Breadcrumbs}/Item/Item.js +10 -6
- package/lib/{Callout → esm/Callout}/Callout.js +6 -5
- package/lib/{Card → esm/Card}/Card.js +10 -10
- package/lib/{Card → esm/Card}/CardContent.js +6 -5
- package/lib/{Card → esm/Card}/CardFooter.js +6 -5
- package/lib/{Countdown → esm/Countdown}/Countdown.js +53 -32
- package/lib/{Countdown → esm/Countdown}/Segment.js +6 -6
- package/lib/{DatePicker → esm/DatePicker}/CalendarContainer.js +5 -5
- package/lib/{DatePicker → esm/DatePicker}/DatePicker.js +24 -20
- package/lib/esm/DatePicker/reactDatesCss.js +3 -0
- package/lib/{Disclaimer → esm/Disclaimer}/Disclaimer.js +6 -5
- package/lib/{Footnote → esm/Footnote}/Footnote.js +43 -22
- package/lib/{Footnote → esm/Footnote}/FootnoteLink.js +6 -5
- package/lib/{NavigationBar → esm/NavigationBar}/NavigationBar.js +19 -20
- package/lib/{NavigationBar → esm/NavigationBar}/NavigationItem.js +6 -5
- package/lib/{NavigationBar → esm/NavigationBar}/NavigationSubMenu.js +1 -2
- package/lib/esm/NavigationBar/collapseItems.js +37 -0
- package/lib/{NavigationBar → esm/NavigationBar}/resolveItemSelection.js +1 -1
- package/lib/{OrderedList → esm/OrderedList}/Item.js +10 -6
- package/lib/{OrderedList → esm/OrderedList}/ItemBase.js +5 -5
- package/lib/{OrderedList → esm/OrderedList}/OrderedList.js +8 -8
- package/lib/{OrderedList → esm/OrderedList}/OrderedListBase.js +5 -5
- package/lib/{Paragraph → esm/Paragraph}/Paragraph.js +8 -16
- package/lib/{PreviewCard → esm/PreviewCard}/PreviewCard.js +10 -7
- package/lib/{PriceLockup → esm/PriceLockup}/PriceLockup.js +59 -69
- package/lib/{Progress → esm/Progress}/ProgressBar.js +6 -6
- package/lib/esm/QuantitySelector/styles.js +9 -0
- package/lib/{Ribbon → esm/Ribbon}/Ribbon.js +31 -57
- package/lib/{SkeletonProvider → esm/SkeletonProvider}/SkeletonImage.js +3 -4
- package/lib/esm/SkeletonProvider/SkeletonTypography.js +37 -0
- package/lib/{Span → esm/Span}/Span.js +7 -6
- package/lib/{Spinner → esm/Spinner}/Spinner.js +18 -8
- package/lib/{Spinner → esm/Spinner}/SpinnerContent.js +6 -5
- package/lib/{StoryCard → esm/StoryCard}/StoryCard.js +10 -7
- package/lib/{Table → esm/Table}/Cell.js +16 -45
- package/lib/esm/Table/Row.js +34 -0
- package/lib/{Table → esm/Table}/Table.js +18 -20
- package/lib/{TermsAndConditions → esm/TermsAndConditions}/ExpandCollapse.js +15 -8
- package/lib/{TermsAndConditions → esm/TermsAndConditions}/TermsAndConditions.js +22 -9
- package/lib/{Testimonial → esm/Testimonial}/Testimonial.js +26 -10
- package/lib/{Toast → esm/Toast}/Toast.js +15 -67
- package/lib/{Video → esm/Video}/ControlBar/ControlBar.js +18 -8
- package/lib/{Video → esm/Video}/ControlBar/Controls/VideoButton/VideoButton.js +7 -7
- package/lib/{Video → esm/Video}/ControlBar/Controls/VideoMenu/VideoMenu.js +14 -7
- package/lib/{Video → esm/Video}/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +14 -7
- package/lib/{Video → esm/Video}/ControlBar/Controls/VolumeSlider/VolumeSlider.js +10 -6
- package/lib/{Video → esm/Video}/MiddleControlButton/MiddleControlButton.js +6 -5
- package/lib/{Video → esm/Video}/Video.js +28 -12
- package/lib/{VideoPicker → esm/VideoPicker}/VideoPicker.js +21 -46
- package/lib/{VideoPicker → esm/VideoPicker}/VideoPickerThumbnail.js +19 -54
- package/lib/{WaffleGrid → esm/WaffleGrid}/WaffleGrid.js +14 -7
- package/lib/{WebVideo → esm/WebVideo}/WebVideo.js +14 -9
- package/lib/{baseExports.js → esm/baseExports.js} +1 -1
- package/lib/{index.js → esm/index.js} +1 -2
- package/lib/{shared → esm/shared}/FullBleedContent/FullBleedContent.js +5 -5
- package/lib/{shared → esm/shared}/VideoSplash/SplashButton/SplashButton.js +9 -6
- package/lib/{shared → esm/shared}/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +17 -8
- package/lib/{shared → esm/shared}/VideoSplash/VideoSplash.js +6 -5
- package/lib/{utils → esm/utils}/index.js +1 -2
- package/lib/{utils → esm/utils}/scrollToAnchor.js +2 -2
- package/lib/{utils → esm/utils}/ssr.js +8 -4
- package/lib/{utils → esm/utils}/useOverlaidPosition.js +2 -4
- package/package.json +17 -16
- package/src/Badge/Badge.jsx +4 -3
- package/src/BlockQuote/BlockQuote.jsx +2 -3
- package/src/Breadcrumbs/Breadcrumbs.jsx +2 -3
- package/src/Breadcrumbs/Item/Item.jsx +2 -3
- package/src/Callout/Callout.jsx +2 -4
- package/src/Card/Card.jsx +1 -3
- package/src/Card/CardContent.jsx +2 -3
- package/src/Card/CardFooter.jsx +2 -3
- package/src/Countdown/Countdown.jsx +62 -36
- package/src/Countdown/Segment.jsx +1 -3
- package/src/DatePicker/CalendarContainer.jsx +1 -3
- package/src/DatePicker/DatePicker.jsx +2 -3
- package/src/DatePicker/reactDatesCss.js +1 -3
- package/src/Disclaimer/Disclaimer.jsx +2 -3
- package/src/Footnote/Footnote.jsx +2 -10
- package/src/Footnote/FootnoteLink.jsx +2 -3
- package/src/NavigationBar/NavigationBar.jsx +2 -3
- package/src/NavigationBar/NavigationItem.jsx +2 -3
- package/src/OrderedList/Item.jsx +2 -3
- package/src/OrderedList/ItemBase.jsx +1 -3
- package/src/OrderedList/OrderedList.jsx +2 -3
- package/src/OrderedList/OrderedListBase.jsx +1 -3
- package/src/Paragraph/Paragraph.jsx +2 -4
- package/src/PreviewCard/PreviewCard.jsx +1 -3
- package/src/PriceLockup/PriceLockup.jsx +2 -3
- package/src/Progress/ProgressBar.jsx +1 -3
- package/src/QuantitySelector/styles.js +1 -3
- package/src/Ribbon/Ribbon.jsx +2 -3
- package/src/Span/Span.jsx +2 -4
- package/src/Spinner/Spinner.jsx +2 -3
- package/src/Spinner/SpinnerContent.jsx +2 -3
- package/src/StoryCard/StoryCard.jsx +1 -3
- package/src/Table/Cell.jsx +4 -5
- package/src/Table/Row.jsx +13 -2
- package/src/Table/Table.jsx +14 -5
- package/src/TermsAndConditions/ExpandCollapse.jsx +6 -4
- package/src/TermsAndConditions/TermsAndConditions.jsx +2 -3
- package/src/Testimonial/Testimonial.jsx +2 -3
- package/src/Toast/Toast.jsx +2 -3
- package/src/Video/ControlBar/ControlBar.jsx +2 -4
- package/src/Video/ControlBar/Controls/VideoButton/VideoButton.jsx +2 -4
- package/src/Video/ControlBar/Controls/VideoMenu/VideoMenu.jsx +2 -4
- package/src/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.jsx +2 -4
- package/src/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.jsx +2 -4
- package/src/Video/MiddleControlButton/MiddleControlButton.jsx +2 -4
- package/src/Video/Video.jsx +2 -4
- package/src/VideoPicker/VideoPicker.jsx +2 -4
- package/src/VideoPicker/VideoPickerThumbnail.jsx +1 -3
- package/src/WaffleGrid/WaffleGrid.jsx +2 -3
- package/src/WebVideo/WebVideo.jsx +3 -4
- package/src/baseExports.js +1 -0
- package/src/index.js +1 -2
- package/src/shared/FullBleedContent/FullBleedContent.jsx +1 -3
- package/src/shared/VideoSplash/SplashButton/SplashButton.jsx +1 -3
- package/src/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.jsx +1 -4
- package/src/shared/VideoSplash/VideoSplash.jsx +2 -3
- package/src/utils/index.js +1 -3
- package/src/utils/ssr.js +10 -3
- package/types/Callout.d.ts +2 -1
- package/types/Tooltip.d.ts +1 -0
- package/lib/DatePicker/reactDatesCss.js +0 -830
- package/lib/ExpandCollapseMini/ExpandCollapseMini.js +0 -73
- package/lib/ExpandCollapseMini/ExpandCollapseMiniControl.js +0 -116
- package/lib/ExpandCollapseMini/index.js +0 -2
- package/lib/QuantitySelector/styles.js +0 -18
- package/lib/SkeletonProvider/SkeletonTypography.js +0 -38
- package/lib/Table/Row.js +0 -19
- package/lib/utils/theming/styled-components.js +0 -26
- package/src/ExpandCollapseMini/ExpandCollapseMini.jsx +0 -72
- package/src/ExpandCollapseMini/ExpandCollapseMiniControl.jsx +0 -104
- package/src/ExpandCollapseMini/index.js +0 -3
- package/src/utils/theming/styled-components.js +0 -23
- /package/lib/{Badge → esm/Badge}/index.js +0 -0
- /package/lib/{BlockQuote → esm/BlockQuote}/index.js +0 -0
- /package/lib/{Breadcrumbs → esm/Breadcrumbs}/index.js +0 -0
- /package/lib/{Callout → esm/Callout}/index.js +0 -0
- /package/lib/{Card → esm/Card}/index.js +0 -0
- /package/lib/{Countdown → esm/Countdown}/constants.js +0 -0
- /package/lib/{Countdown → esm/Countdown}/dictionary.js +0 -0
- /package/lib/{Countdown → esm/Countdown}/index.js +0 -0
- /package/lib/{Countdown → esm/Countdown}/types.js +0 -0
- /package/lib/{Countdown → esm/Countdown}/useCountdown.js +0 -0
- /package/lib/{DatePicker → esm/DatePicker}/dictionary.js +0 -0
- /package/lib/{DatePicker → esm/DatePicker}/index.js +0 -0
- /package/lib/{Disclaimer → esm/Disclaimer}/index.js +0 -0
- /package/lib/{Footnote → esm/Footnote}/dictionary.js +0 -0
- /package/lib/{Footnote → esm/Footnote}/index.js +0 -0
- /package/lib/{IconButton → esm/IconButton}/IconButton.js +0 -0
- /package/lib/{IconButton → esm/IconButton}/index.js +0 -0
- /package/lib/{Image → esm/Image}/Image.js +0 -0
- /package/lib/{Image → esm/Image}/index.js +0 -0
- /package/lib/{Image → esm/Image}/server.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}/index.js +0 -0
- /package/lib/{NavigationBar → esm/NavigationBar}/index.js +0 -0
- /package/lib/{OptimizeImage → esm/OptimizeImage}/OptimizeImage.js +0 -0
- /package/lib/{OptimizeImage → esm/OptimizeImage}/index.js +0 -0
- /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/getFallbackUrl.js +0 -0
- /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/getImageUrls.js +0 -0
- /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/getOptimizedUrl.js +0 -0
- /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/hasWebpSupport.js +0 -0
- /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/index.js +0 -0
- /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/isSvgUrl.js +0 -0
- /package/lib/{OrderedList → esm/OrderedList}/constants.js +0 -0
- /package/lib/{OrderedList → esm/OrderedList}/index.js +0 -0
- /package/lib/{Paragraph → esm/Paragraph}/index.js +0 -0
- /package/lib/{PreviewCard → esm/PreviewCard}/AuthorDate.js +0 -0
- /package/lib/{PreviewCard → esm/PreviewCard}/index.js +0 -0
- /package/lib/{PriceLockup → esm/PriceLockup}/index.js +0 -0
- /package/lib/{PriceLockup → esm/PriceLockup}/tokens.js +0 -0
- /package/lib/{Progress → esm/Progress}/index.js +0 -0
- /package/lib/{QuantitySelector → esm/QuantitySelector}/QuantitySelector.js +0 -0
- /package/lib/{QuantitySelector → esm/QuantitySelector}/SideButton.js +0 -0
- /package/lib/{QuantitySelector → esm/QuantitySelector}/dictionary.js +0 -0
- /package/lib/{QuantitySelector → esm/QuantitySelector}/index.js +0 -0
- /package/lib/{ResponsiveImage → esm/ResponsiveImage}/ResponsiveImage.js +0 -0
- /package/lib/{ResponsiveImage → esm/ResponsiveImage}/index.js +0 -0
- /package/lib/{Ribbon → esm/Ribbon}/index.js +0 -0
- /package/lib/{SkeletonProvider → esm/SkeletonProvider}/SkeletonProvider.js +0 -0
- /package/lib/{SkeletonProvider → esm/SkeletonProvider}/index.js +0 -0
- /package/lib/{Span → esm/Span}/index.js +0 -0
- /package/lib/{Spinner → esm/Spinner}/constants.js +0 -0
- /package/lib/{Spinner → esm/Spinner}/index.js +0 -0
- /package/lib/{StoryCard → esm/StoryCard}/index.js +0 -0
- /package/lib/{Table → esm/Table}/Body.js +0 -0
- /package/lib/{Table → esm/Table}/Header.js +0 -0
- /package/lib/{Table → esm/Table}/SubHeading.js +0 -0
- /package/lib/{Table → esm/Table}/index.js +0 -0
- /package/lib/{TermsAndConditions → esm/TermsAndConditions}/dictionary.js +0 -0
- /package/lib/{TermsAndConditions → esm/TermsAndConditions}/index.js +0 -0
- /package/lib/{Testimonial → esm/Testimonial}/index.js +0 -0
- /package/lib/{Toast → esm/Toast}/index.js +0 -0
- /package/lib/{Video → esm/Video}/index.js +0 -0
- /package/lib/{Video → esm/Video}/videoText.js +0 -0
- /package/lib/{VideoPicker → esm/VideoPicker}/VideoPickerPlayer.js +0 -0
- /package/lib/{VideoPicker → esm/VideoPicker}/VideoSlider.js +0 -0
- /package/lib/{VideoPicker → esm/VideoPicker}/index.js +0 -0
- /package/lib/{VideoPicker → esm/VideoPicker}/videoPropType.js +0 -0
- /package/lib/{WaffleGrid → esm/WaffleGrid}/index.js +0 -0
- /package/lib/{WebVideo → esm/WebVideo}/index.js +0 -0
- /package/lib/{WebVideo → esm/WebVideo}/utils/index.js +0 -0
- /package/lib/{server.js → esm/server.js} +0 -0
- /package/lib/{shared → esm/shared}/ConditionalWrapper/ConditionalWrapper.js +0 -0
- /package/lib/{shared → esm/shared}/ConditionalWrapper/index.js +0 -0
- /package/lib/{shared → esm/shared}/FullBleedContent/getFullBleedBorderRadius.js +0 -0
- /package/lib/{shared → esm/shared}/FullBleedContent/index.js +0 -0
- /package/lib/{shared → esm/shared}/FullBleedContent/useFullBleedContentProps.js +0 -0
- /package/lib/{shared → esm/shared}/VideoSplash/helpers.js +0 -0
- /package/lib/{utils → esm/utils}/isElementFocusable.js +0 -0
- /package/lib/{utils → esm/utils}/logger.js +0 -0
- /package/lib/{utils → esm/utils}/media.js +0 -0
- /package/lib/{utils → esm/utils}/renderStructuredContent.js +0 -0
- /package/lib/{utils → esm/utils}/theming/get-theme-from-server.js +0 -0
- /package/lib/{utils → esm/utils}/theming/with-client-theme.js +0 -0
- /package/lib/{utils → esm/utils}/theming/with-server-theme.js +0 -0
- /package/lib/{utils → esm/utils}/transforms.js +0 -0
- /package/lib/{utils → esm/utils}/useTypographyTheme.js +0 -0
package/src/Badge/Badge.jsx
CHANGED
|
@@ -6,17 +6,18 @@ import {
|
|
|
6
6
|
getTokensPropType,
|
|
7
7
|
useThemeTokens
|
|
8
8
|
} from '@telus-uds/components-base'
|
|
9
|
-
import
|
|
9
|
+
import styled from 'styled-components'
|
|
10
|
+
import { htmlAttrs, transformGradient } from '../utils'
|
|
10
11
|
|
|
11
12
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
12
13
|
|
|
13
|
-
const { styled } = styledComponents
|
|
14
|
-
|
|
15
14
|
const BadgeContainer = styled.div`
|
|
16
15
|
background: ${({ background }) => background};
|
|
17
16
|
border: ${({ border }) => border};
|
|
18
17
|
display: inline-flex;
|
|
19
18
|
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
height: fit-content;
|
|
20
21
|
padding: ${({ padding }) => padding};
|
|
21
22
|
border-radius: ${({ radius }) => radius};
|
|
22
23
|
width: fit-content;
|
|
@@ -14,12 +14,11 @@ import {
|
|
|
14
14
|
getTokensPropType,
|
|
15
15
|
StyleSheet
|
|
16
16
|
} from '@telus-uds/components-base'
|
|
17
|
-
import
|
|
17
|
+
import styled from 'styled-components'
|
|
18
|
+
import { htmlAttrs, transformGradient } from '../utils'
|
|
18
19
|
|
|
19
20
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
20
21
|
|
|
21
|
-
const { styled } = styledComponents
|
|
22
|
-
|
|
23
22
|
const BlockQuoteContainer = styled.blockquote`
|
|
24
23
|
margin: 0;
|
|
25
24
|
position: relative;
|
|
@@ -13,13 +13,12 @@ import {
|
|
|
13
13
|
useThemeTokens,
|
|
14
14
|
useViewport
|
|
15
15
|
} from '@telus-uds/components-base'
|
|
16
|
-
import
|
|
16
|
+
import styled from 'styled-components'
|
|
17
|
+
import { htmlAttrs } from '../utils'
|
|
17
18
|
import Item from './Item/Item'
|
|
18
19
|
|
|
19
20
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
20
21
|
|
|
21
|
-
const { styled } = styledComponents
|
|
22
|
-
|
|
23
22
|
const StyledList = styled.ol({
|
|
24
23
|
display: 'flex',
|
|
25
24
|
flexDirection: 'row',
|
|
@@ -8,12 +8,11 @@ import {
|
|
|
8
8
|
selectSystemProps,
|
|
9
9
|
useThemeTokens
|
|
10
10
|
} from '@telus-uds/components-base'
|
|
11
|
-
import
|
|
11
|
+
import styled from 'styled-components'
|
|
12
|
+
import { htmlAttrs } from '../../utils'
|
|
12
13
|
|
|
13
14
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
14
15
|
|
|
15
|
-
const { styled } = styledComponents
|
|
16
|
-
|
|
17
16
|
const StyledItemContainer = styled.li({
|
|
18
17
|
display: 'inline-block',
|
|
19
18
|
paddingLeft: ({ listItemPadding }) => `${listItemPadding}px`,
|
package/src/Callout/Callout.jsx
CHANGED
|
@@ -7,13 +7,11 @@ import {
|
|
|
7
7
|
useThemeTokens,
|
|
8
8
|
getTokensPropType
|
|
9
9
|
} from '@telus-uds/components-base'
|
|
10
|
-
|
|
11
|
-
import { htmlAttrs
|
|
10
|
+
import styled from 'styled-components'
|
|
11
|
+
import { htmlAttrs } from '../utils'
|
|
12
12
|
|
|
13
13
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
14
14
|
|
|
15
|
-
const { styled } = styledComponents
|
|
16
|
-
|
|
17
15
|
const getAlignment = (rounded, textAlignToFlex) => {
|
|
18
16
|
if (textAlignToFlex) {
|
|
19
17
|
switch (textAlignToFlex) {
|
package/src/Card/Card.jsx
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
PressableCardBase,
|
|
16
16
|
useResponsiveProp
|
|
17
17
|
} from '@telus-uds/components-base'
|
|
18
|
-
import
|
|
18
|
+
import styled from 'styled-components'
|
|
19
19
|
import CardContent from './CardContent'
|
|
20
20
|
import CardFooter from './CardFooter'
|
|
21
21
|
import FullBleedContent, {
|
|
@@ -27,8 +27,6 @@ import ConditionalWrapper from '../shared/ConditionalWrapper'
|
|
|
27
27
|
// Passes React Native-oriented system props through UDS Card
|
|
28
28
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, viewProps])
|
|
29
29
|
|
|
30
|
-
const { styled } = styledComponents
|
|
31
|
-
|
|
32
30
|
/**
|
|
33
31
|
* A basic card component, unstyled by default.
|
|
34
32
|
*
|
package/src/Card/CardContent.jsx
CHANGED
|
@@ -7,12 +7,11 @@ import {
|
|
|
7
7
|
useViewport,
|
|
8
8
|
variantProp
|
|
9
9
|
} from '@telus-uds/components-base'
|
|
10
|
-
import
|
|
10
|
+
import styled from 'styled-components'
|
|
11
|
+
import { htmlAttrs } from '../utils'
|
|
11
12
|
|
|
12
13
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
13
14
|
|
|
14
|
-
const { styled } = styledComponents
|
|
15
|
-
|
|
16
15
|
const CardContentContainer = styled.div(
|
|
17
16
|
({
|
|
18
17
|
borderRadius,
|
package/src/Card/CardFooter.jsx
CHANGED
|
@@ -8,12 +8,11 @@ import {
|
|
|
8
8
|
useViewport,
|
|
9
9
|
variantProp
|
|
10
10
|
} from '@telus-uds/components-base'
|
|
11
|
-
import
|
|
11
|
+
import styled from 'styled-components'
|
|
12
|
+
import { htmlAttrs } from '../utils'
|
|
12
13
|
|
|
13
14
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
14
15
|
|
|
15
|
-
const { styled } = styledComponents
|
|
16
|
-
|
|
17
16
|
const CardFooterContainer = styled.div(
|
|
18
17
|
({ backgroundColor, borderRadius, paddingBottom, paddingLeft, paddingRight, paddingTop }) => ({
|
|
19
18
|
backgroundColor,
|
|
@@ -15,16 +15,20 @@ import {
|
|
|
15
15
|
StyleSheet
|
|
16
16
|
} from '@telus-uds/components-base'
|
|
17
17
|
import { viewports } from '@telus-uds/system-constants'
|
|
18
|
+
import styled from 'styled-components'
|
|
18
19
|
// Reading these from the RN palette since they will be used to generate
|
|
19
20
|
// the `Typography` tokens
|
|
20
|
-
import { htmlAttrs, transformGradient
|
|
21
|
+
import { htmlAttrs, transformGradient } from '../utils'
|
|
21
22
|
import Segment from './Segment'
|
|
22
23
|
import useCountdown from './useCountdown'
|
|
23
24
|
import { countdownVariantPropType, dictionaryContentShape } from './types'
|
|
24
25
|
|
|
25
|
-
const
|
|
26
|
+
const DAYS = 'days'
|
|
27
|
+
const HOURS = 'hours'
|
|
28
|
+
const MINUTES = 'minutes'
|
|
29
|
+
const SECONDS = 'seconds'
|
|
26
30
|
|
|
27
|
-
const
|
|
31
|
+
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
28
32
|
|
|
29
33
|
const Container = styled.div(({ variant: { feature, inverse, large }, themeTokens, gradient }) => ({
|
|
30
34
|
...(large || feature ? { display: 'flex', flex: 0 } : {}),
|
|
@@ -69,13 +73,20 @@ const getMainTextTokens = ({
|
|
|
69
73
|
})
|
|
70
74
|
|
|
71
75
|
const Countdown = React.forwardRef(
|
|
72
|
-
(
|
|
76
|
+
(
|
|
77
|
+
{
|
|
78
|
+
copy = 'en',
|
|
79
|
+
targetTime,
|
|
80
|
+
tokens,
|
|
81
|
+
variant = {},
|
|
82
|
+
units = [DAYS, HOURS, MINUTES, SECONDS],
|
|
83
|
+
...rest
|
|
84
|
+
},
|
|
85
|
+
ref
|
|
86
|
+
) => {
|
|
73
87
|
const [days, hours, minutes, seconds] = useCountdown(targetTime)
|
|
74
88
|
const viewport = useViewport()
|
|
75
|
-
const { feature, large,
|
|
76
|
-
if (noDivider && !label) {
|
|
77
|
-
throw new Error('`noDivider` variant can only be used with `label` enabled!')
|
|
78
|
-
}
|
|
89
|
+
const { feature, large, noDivider } = variant
|
|
79
90
|
|
|
80
91
|
const { themeOptions } = useTheme()
|
|
81
92
|
|
|
@@ -190,33 +201,43 @@ const Countdown = React.forwardRef(
|
|
|
190
201
|
media={containerMediaIds}
|
|
191
202
|
>
|
|
192
203
|
<StackView direction="row" space={1}>
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
204
|
+
{units.map((unit, index) => {
|
|
205
|
+
let number
|
|
206
|
+
let labelKey
|
|
207
|
+
switch (unit) {
|
|
208
|
+
case DAYS:
|
|
209
|
+
number = days
|
|
210
|
+
labelKey = 'day'
|
|
211
|
+
break
|
|
212
|
+
case HOURS:
|
|
213
|
+
number = hours
|
|
214
|
+
labelKey = 'hour'
|
|
215
|
+
break
|
|
216
|
+
case MINUTES:
|
|
217
|
+
number = minutes
|
|
218
|
+
labelKey = 'minute'
|
|
219
|
+
break
|
|
220
|
+
case SECONDS:
|
|
221
|
+
number = seconds
|
|
222
|
+
labelKey = 'second'
|
|
223
|
+
break
|
|
224
|
+
default:
|
|
225
|
+
return null
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return (
|
|
229
|
+
<React.Fragment key={unit}>
|
|
230
|
+
<Segment
|
|
231
|
+
labelKey={labelKey}
|
|
232
|
+
number={number}
|
|
233
|
+
{...(unit === DAYS && { segmentWidth: String(number).length })}
|
|
234
|
+
{...segmentProps}
|
|
235
|
+
{...applyTextStyles(themeTokens)}
|
|
236
|
+
/>
|
|
237
|
+
{index < units.length - 1 && divider}
|
|
238
|
+
</React.Fragment>
|
|
239
|
+
)
|
|
240
|
+
})}
|
|
220
241
|
</StackView>
|
|
221
242
|
</Container>
|
|
222
243
|
)
|
|
@@ -237,7 +258,12 @@ Countdown.propTypes = {
|
|
|
237
258
|
* representing a point in the future to count down to.
|
|
238
259
|
*/
|
|
239
260
|
targetTime: PropTypes.instanceOf(Date),
|
|
240
|
-
variant: countdownVariantPropType
|
|
261
|
+
variant: countdownVariantPropType,
|
|
262
|
+
/**
|
|
263
|
+
* An array of strings representing the units to display in the countdown.
|
|
264
|
+
* Possible values: `'days'`, `'hours'`, `'minutes'`, `'seconds'`
|
|
265
|
+
*/
|
|
266
|
+
units: PropTypes.arrayOf(PropTypes.oneOf([DAYS, HOURS, MINUTES, SECONDS]))
|
|
241
267
|
}
|
|
242
268
|
|
|
243
269
|
export default Countdown
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import { StackView, Typography, useCopy } from '@telus-uds/components-base'
|
|
4
|
-
import
|
|
4
|
+
import styled from 'styled-components'
|
|
5
5
|
import dictionary from './dictionary'
|
|
6
6
|
import { countdownVariantPropType, dictionaryContentShape } from './types'
|
|
7
7
|
// !TODO: put this back
|
|
8
8
|
import { SEGMENT_WIDTH_TO_FONT_SIZE_RATIO } from './constants'
|
|
9
9
|
|
|
10
|
-
const { styled } = styledComponents
|
|
11
|
-
|
|
12
10
|
// Pads with zeros on the left if it's a single digit number
|
|
13
11
|
const pad = (number, segmentWidth = 2) => String(number).padStart(segmentWidth, '0')
|
|
14
12
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import styled from 'styled-components'
|
|
2
2
|
import defaultReactDatesCss from './reactDatesCss'
|
|
3
3
|
|
|
4
4
|
// calendarDayDefaultHeight and calendarDayDefaultWidth
|
|
5
5
|
// refer to circle size when selected, focused, or hovered and is passed with getResponsiveCircleSize in DatePicker
|
|
6
6
|
|
|
7
|
-
const { styled } = styledComponents
|
|
8
|
-
|
|
9
7
|
const CalendarContainer = styled.div(
|
|
10
8
|
({
|
|
11
9
|
daySize,
|
|
@@ -15,13 +15,12 @@ import {
|
|
|
15
15
|
getTokensPropType,
|
|
16
16
|
useSafeLayoutEffect
|
|
17
17
|
} from '@telus-uds/components-base'
|
|
18
|
+
import styled from 'styled-components'
|
|
18
19
|
import moment from 'moment'
|
|
19
20
|
import { isUndefined, throttle } from 'lodash'
|
|
20
21
|
import CalendarContainer from './CalendarContainer'
|
|
21
22
|
import dictionary from './dictionary'
|
|
22
|
-
import { htmlAttrs
|
|
23
|
-
|
|
24
|
-
const { styled } = styledComponents
|
|
23
|
+
import { htmlAttrs } from '../utils'
|
|
25
24
|
|
|
26
25
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
27
26
|
|
|
@@ -6,9 +6,8 @@ import {
|
|
|
6
6
|
useThemeTokens,
|
|
7
7
|
getTokensPropType
|
|
8
8
|
} from '@telus-uds/components-base'
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
const { styled } = styledComponents
|
|
9
|
+
import styled from 'styled-components'
|
|
10
|
+
import { htmlAttrs } from '../utils'
|
|
12
11
|
|
|
13
12
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
14
13
|
|
|
@@ -12,22 +12,14 @@ import {
|
|
|
12
12
|
useViewport,
|
|
13
13
|
getTokensPropType
|
|
14
14
|
} from '@telus-uds/components-base'
|
|
15
|
-
|
|
15
|
+
import styled, { createGlobalStyle } from 'styled-components'
|
|
16
16
|
import OrderedListBase from '../OrderedList/OrderedListBase'
|
|
17
|
-
import {
|
|
18
|
-
htmlAttrs,
|
|
19
|
-
media,
|
|
20
|
-
renderStructuredContent,
|
|
21
|
-
isElementFocusable,
|
|
22
|
-
styledComponents
|
|
23
|
-
} from '../utils'
|
|
17
|
+
import { htmlAttrs, media, renderStructuredContent, isElementFocusable } from '../utils'
|
|
24
18
|
import defaultDictionary from './dictionary'
|
|
25
19
|
|
|
26
20
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
27
21
|
const viewportBreakpoint = 1440
|
|
28
22
|
|
|
29
|
-
const { styled, createGlobalStyle } = styledComponents
|
|
30
|
-
|
|
31
23
|
const GlobalBodyScrollLock = createGlobalStyle({
|
|
32
24
|
'html, body': media().until('md').css({ overflow: 'hidden' })
|
|
33
25
|
})
|
|
@@ -7,10 +7,9 @@ import {
|
|
|
7
7
|
useThemeTokens,
|
|
8
8
|
variantProp
|
|
9
9
|
} from '@telus-uds/components-base'
|
|
10
|
+
import styled from 'styled-components'
|
|
10
11
|
import dictionary from './dictionary'
|
|
11
|
-
import { htmlAttrs
|
|
12
|
-
|
|
13
|
-
const { styled } = styledComponents
|
|
12
|
+
import { htmlAttrs } from '../utils'
|
|
14
13
|
|
|
15
14
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
16
15
|
|
|
@@ -9,13 +9,12 @@ import {
|
|
|
9
9
|
useResponsiveProp,
|
|
10
10
|
withLinkRouter
|
|
11
11
|
} from '@telus-uds/components-base'
|
|
12
|
-
import
|
|
12
|
+
import styled from 'styled-components'
|
|
13
|
+
import { htmlAttrs, scrollToAnchor } from '../utils'
|
|
13
14
|
import NavigationItem from './NavigationItem'
|
|
14
15
|
import NavigationSubMenu from './NavigationSubMenu'
|
|
15
16
|
import collapseItems from './collapseItems'
|
|
16
17
|
|
|
17
|
-
const { styled } = styledComponents
|
|
18
|
-
|
|
19
18
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
20
19
|
|
|
21
20
|
const Heading = styled.div({
|
|
@@ -8,9 +8,8 @@ import {
|
|
|
8
8
|
useThemeTokensCallback,
|
|
9
9
|
getTokensPropType
|
|
10
10
|
} from '@telus-uds/components-base'
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
const { styled } = styledComponents
|
|
11
|
+
import styled from 'styled-components'
|
|
12
|
+
import { htmlAttrs } from '../utils'
|
|
14
13
|
|
|
15
14
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
16
15
|
|
package/src/OrderedList/Item.jsx
CHANGED
|
@@ -10,12 +10,11 @@ import {
|
|
|
10
10
|
useThemeTokens,
|
|
11
11
|
wrapStringsInText
|
|
12
12
|
} from '@telus-uds/components-base'
|
|
13
|
+
import styled from 'styled-components'
|
|
13
14
|
import ItemBase from './ItemBase'
|
|
14
|
-
import { htmlAttrs
|
|
15
|
+
import { htmlAttrs } from '../utils'
|
|
15
16
|
import { OL_COUNTER_NAME } from './constants'
|
|
16
17
|
|
|
17
|
-
const { styled } = styledComponents
|
|
18
|
-
|
|
19
18
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
20
19
|
|
|
21
20
|
const selectItemTextStyles = (
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import { getTokensPropType, selectSystemProps, variantProp } from '@telus-uds/components-base'
|
|
4
|
-
import
|
|
4
|
+
import styled from 'styled-components'
|
|
5
|
+
import { htmlAttrs } from '../utils'
|
|
5
6
|
import OrderedListBase from './OrderedListBase'
|
|
6
7
|
import Item from './Item'
|
|
7
8
|
import { OL_COUNTER_NAME } from './constants'
|
|
8
9
|
|
|
9
|
-
const { styled } = styledComponents
|
|
10
|
-
|
|
11
10
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
12
11
|
|
|
13
12
|
const StyledOrderedListBase = styled(OrderedListBase)(({ start }) => ({
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
|
-
import
|
|
3
|
+
import styled from 'styled-components'
|
|
4
4
|
import ItemBase from './ItemBase'
|
|
5
5
|
|
|
6
|
-
const { styled } = styledComponents
|
|
7
|
-
|
|
8
6
|
const StyledList = styled.ol({
|
|
9
7
|
display: 'flex',
|
|
10
8
|
flexDirection: 'column',
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import { getTokensPropType, selectSystemProps } from '@telus-uds/components-base'
|
|
4
|
-
|
|
5
|
-
import { htmlAttrs, useTypographyTheme
|
|
6
|
-
|
|
7
|
-
const { styled } = styledComponents
|
|
4
|
+
import styled from 'styled-components'
|
|
5
|
+
import { htmlAttrs, useTypographyTheme } from '../utils'
|
|
8
6
|
|
|
9
7
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
10
8
|
|
|
@@ -17,15 +17,13 @@ import {
|
|
|
17
17
|
useTheme,
|
|
18
18
|
getTokensPropType
|
|
19
19
|
} from '@telus-uds/components-base'
|
|
20
|
-
import
|
|
20
|
+
import styled from 'styled-components'
|
|
21
21
|
import FullBleedContent, {
|
|
22
22
|
getFullBleedBorderRadius,
|
|
23
23
|
useFullBleedContentProps
|
|
24
24
|
} from '../shared/FullBleedContent'
|
|
25
25
|
import AuthorDate from './AuthorDate'
|
|
26
26
|
|
|
27
|
-
const { styled } = styledComponents
|
|
28
|
-
|
|
29
27
|
// Passes React Native-oriented system props through UDS PressableCardBase
|
|
30
28
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([
|
|
31
29
|
a11yProps,
|
|
@@ -9,11 +9,10 @@ import {
|
|
|
9
9
|
useViewport,
|
|
10
10
|
getTokensPropType
|
|
11
11
|
} from '@telus-uds/components-base'
|
|
12
|
+
import styled from 'styled-components'
|
|
12
13
|
import FootnoteLink from '../Footnote/FootnoteLink'
|
|
13
14
|
import getTypographyTokens from './tokens'
|
|
14
|
-
import { htmlAttrs, warn
|
|
15
|
-
|
|
16
|
-
const { styled } = styledComponents
|
|
15
|
+
import { htmlAttrs, warn } from '../utils'
|
|
17
16
|
|
|
18
17
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
19
18
|
|
|
@@ -10,9 +10,7 @@ import {
|
|
|
10
10
|
variantProp,
|
|
11
11
|
applyShadowToken
|
|
12
12
|
} from '@telus-uds/components-base'
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
const { styled } = styledComponents
|
|
13
|
+
import styled from 'styled-components'
|
|
16
14
|
|
|
17
15
|
// Passes React Native-oriented system props through UDS Progress
|
|
18
16
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, viewProps])
|
package/src/Ribbon/Ribbon.jsx
CHANGED
|
@@ -6,9 +6,8 @@ import {
|
|
|
6
6
|
useThemeTokens,
|
|
7
7
|
getTokensPropType
|
|
8
8
|
} from '@telus-uds/components-base'
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
const { styled } = styledComponents
|
|
9
|
+
import styled from 'styled-components'
|
|
10
|
+
import { htmlAttrs } from '../utils'
|
|
12
11
|
|
|
13
12
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
14
13
|
|
package/src/Span/Span.jsx
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import { getTokensPropType, selectSystemProps } from '@telus-uds/components-base'
|
|
4
|
-
|
|
5
|
-
import { htmlAttrs, useTypographyTheme
|
|
6
|
-
|
|
7
|
-
const { styled } = styledComponents
|
|
4
|
+
import styled from 'styled-components'
|
|
5
|
+
import { htmlAttrs, useTypographyTheme } from '../utils'
|
|
8
6
|
|
|
9
7
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
10
8
|
|
package/src/Spinner/Spinner.jsx
CHANGED
|
@@ -7,12 +7,11 @@ import {
|
|
|
7
7
|
getTokensPropType
|
|
8
8
|
} from '@telus-uds/components-base'
|
|
9
9
|
import { Portal } from '@gorhom/portal'
|
|
10
|
+
import styled from 'styled-components'
|
|
10
11
|
import SpinnerContent from './SpinnerContent'
|
|
11
|
-
import { htmlAttrs, media
|
|
12
|
+
import { htmlAttrs, media } from '../utils'
|
|
12
13
|
import { BACKDROP_OPACITY, BACKDROP_Z_INDEX } from './constants'
|
|
13
14
|
|
|
14
|
-
const { styled } = styledComponents
|
|
15
|
-
|
|
16
15
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
17
16
|
|
|
18
17
|
const SpinnerContainer = styled.div(({ inline, fullScreen }) => ({
|
|
@@ -6,11 +6,10 @@ import {
|
|
|
6
6
|
Typography,
|
|
7
7
|
selectSystemProps
|
|
8
8
|
} from '@telus-uds/components-base'
|
|
9
|
-
import
|
|
9
|
+
import styled from 'styled-components'
|
|
10
|
+
import { htmlAttrs } from '../utils'
|
|
10
11
|
import { BACKDROP_Z_INDEX, LARGE } from './constants'
|
|
11
12
|
|
|
12
|
-
const { styled } = styledComponents
|
|
13
|
-
|
|
14
13
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
15
14
|
|
|
16
15
|
const Container = styled.div(({ overlay }) => ({
|
|
@@ -18,14 +18,12 @@ import {
|
|
|
18
18
|
useThemeTokensCallback,
|
|
19
19
|
getTokensPropType
|
|
20
20
|
} from '@telus-uds/components-base'
|
|
21
|
-
import
|
|
21
|
+
import styled from 'styled-components'
|
|
22
22
|
import FullBleedContent, {
|
|
23
23
|
getFullBleedBorderRadius,
|
|
24
24
|
useFullBleedContentProps
|
|
25
25
|
} from '../shared/FullBleedContent'
|
|
26
26
|
|
|
27
|
-
const { styled } = styledComponents
|
|
28
|
-
|
|
29
27
|
// Passes React Native-oriented system props through UDS PressableCardBase
|
|
30
28
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([
|
|
31
29
|
a11yProps,
|
package/src/Table/Cell.jsx
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import { Typography, useThemeTokens, applyShadowToken } from '@telus-uds/components-base'
|
|
4
|
-
import {
|
|
4
|
+
import styled, { css } from 'styled-components'
|
|
5
5
|
import { useTableContext } from './Table'
|
|
6
6
|
|
|
7
|
-
const { styled, css } = styledComponents
|
|
8
|
-
|
|
9
7
|
const HEADER_TYPE = {
|
|
10
8
|
HEADING: 'heading',
|
|
11
9
|
SUBHEADING: 'subHeading',
|
|
@@ -76,7 +74,8 @@ const Cell = React.forwardRef(
|
|
|
76
74
|
text,
|
|
77
75
|
isScrollable: isTableScrollable,
|
|
78
76
|
tokens: tableTokens,
|
|
79
|
-
spacing
|
|
77
|
+
spacing,
|
|
78
|
+
variant
|
|
80
79
|
} = useTableContext()
|
|
81
80
|
const themeTokens = { ...tableTokens, ...cellTokens }
|
|
82
81
|
|
|
@@ -96,7 +95,7 @@ const Cell = React.forwardRef(
|
|
|
96
95
|
stickyBackgroundColor,
|
|
97
96
|
fontColor,
|
|
98
97
|
display
|
|
99
|
-
} = useThemeTokens('Table', themeTokens, { spacing, type, text })
|
|
98
|
+
} = useThemeTokens('Table', themeTokens, { spacing, type, text, ...variant })
|
|
100
99
|
|
|
101
100
|
const sharedProps = {
|
|
102
101
|
align,
|