@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
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Box, Divider, selectSystemProps, Typography, useCopy, useThemeTokens, useViewport, getTokensPropType, useTheme, useResponsiveThemeTokens, createMediaQueryStyles, StyleSheet } from '@telus-uds/components-base';
|
|
4
|
+
import styled from 'styled-components';
|
|
4
5
|
import ExpandCollapse from './ExpandCollapse';
|
|
5
6
|
import OrderedListBase from '../OrderedList/OrderedListBase';
|
|
6
|
-
import { htmlAttrs, media, renderStructuredContent
|
|
7
|
+
import { htmlAttrs, media, renderStructuredContent } from '../utils';
|
|
7
8
|
import defaultDictionary from './dictionary';
|
|
8
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
const {
|
|
10
|
-
styled
|
|
11
|
-
} = styledComponents;
|
|
12
10
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
13
|
-
const ContentContainer = styled.div(
|
|
11
|
+
const ContentContainer = /*#__PURE__*/styled.div.withConfig({
|
|
12
|
+
displayName: "TermsAndConditions__ContentContainer",
|
|
13
|
+
componentId: "components-web__sc-1199epn-0"
|
|
14
|
+
})(_ref => {
|
|
14
15
|
let {
|
|
15
16
|
tokens
|
|
16
17
|
} = _ref;
|
|
@@ -23,7 +24,10 @@ const ContentContainer = styled.div(_ref => {
|
|
|
23
24
|
})
|
|
24
25
|
};
|
|
25
26
|
});
|
|
26
|
-
const Ordered = styled(OrderedListBase)(
|
|
27
|
+
const Ordered = /*#__PURE__*/styled(OrderedListBase).withConfig({
|
|
28
|
+
displayName: "TermsAndConditions__Ordered",
|
|
29
|
+
componentId: "components-web__sc-1199epn-1"
|
|
30
|
+
})(_ref2 => {
|
|
27
31
|
let {
|
|
28
32
|
tokens
|
|
29
33
|
} = _ref2;
|
|
@@ -32,7 +36,10 @@ const Ordered = styled(OrderedListBase)(_ref2 => {
|
|
|
32
36
|
padding: tokens.orderedPadding
|
|
33
37
|
};
|
|
34
38
|
});
|
|
35
|
-
const Unordered = styled.ul(
|
|
39
|
+
const Unordered = /*#__PURE__*/styled.ul.withConfig({
|
|
40
|
+
displayName: "TermsAndConditions__Unordered",
|
|
41
|
+
componentId: "components-web__sc-1199epn-2"
|
|
42
|
+
})(_ref3 => {
|
|
36
43
|
let {
|
|
37
44
|
tokens
|
|
38
45
|
} = _ref3;
|
|
@@ -43,7 +50,10 @@ const Unordered = styled.ul(_ref3 => {
|
|
|
43
50
|
paddingTop: tokens.unorderedPadding
|
|
44
51
|
};
|
|
45
52
|
});
|
|
46
|
-
const ListItem = styled(OrderedListBase.Item)(
|
|
53
|
+
const ListItem = /*#__PURE__*/styled(OrderedListBase.Item).withConfig({
|
|
54
|
+
displayName: "TermsAndConditions__ListItem",
|
|
55
|
+
componentId: "components-web__sc-1199epn-3"
|
|
56
|
+
})(_ref4 => {
|
|
47
57
|
let {
|
|
48
58
|
tokens
|
|
49
59
|
} = _ref4;
|
|
@@ -64,7 +74,10 @@ const ListItem = styled(OrderedListBase.Item)(_ref4 => {
|
|
|
64
74
|
wordBreak: 'break-word'
|
|
65
75
|
};
|
|
66
76
|
});
|
|
67
|
-
const NonIndexedContentTitle = styled.div(
|
|
77
|
+
const NonIndexedContentTitle = /*#__PURE__*/styled.div.withConfig({
|
|
78
|
+
displayName: "TermsAndConditions__NonIndexedContentTitle",
|
|
79
|
+
componentId: "components-web__sc-1199epn-4"
|
|
80
|
+
})(_ref5 => {
|
|
68
81
|
let {
|
|
69
82
|
tokens
|
|
70
83
|
} = _ref5;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Icon, selectSystemProps, Typography, useThemeTokens, useViewport, getTokensPropType } from '@telus-uds/components-base';
|
|
4
|
+
import styled from 'styled-components';
|
|
4
5
|
import Image from '../Image';
|
|
5
|
-
import { htmlAttrs
|
|
6
|
+
import { htmlAttrs } from '../utils';
|
|
6
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
const {
|
|
8
|
-
styled
|
|
9
|
-
} = styledComponents;
|
|
10
8
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
11
|
-
const TestimonialContainer = styled.figure(
|
|
9
|
+
const TestimonialContainer = /*#__PURE__*/styled.figure.withConfig({
|
|
10
|
+
displayName: "Testimonial__TestimonialContainer",
|
|
11
|
+
componentId: "components-web__sc-1az53gr-0"
|
|
12
|
+
})(_ref => {
|
|
12
13
|
let {
|
|
13
14
|
testimonialContainerGap
|
|
14
15
|
} = _ref;
|
|
@@ -19,7 +20,10 @@ const TestimonialContainer = styled.figure(_ref => {
|
|
|
19
20
|
margin: 0
|
|
20
21
|
};
|
|
21
22
|
});
|
|
22
|
-
const QuoteContainer = styled.div(
|
|
23
|
+
const QuoteContainer = /*#__PURE__*/styled.div.withConfig({
|
|
24
|
+
displayName: "Testimonial__QuoteContainer",
|
|
25
|
+
componentId: "components-web__sc-1az53gr-1"
|
|
26
|
+
})(_ref2 => {
|
|
23
27
|
let {
|
|
24
28
|
quoteContainerGap
|
|
25
29
|
} = _ref2;
|
|
@@ -29,7 +33,10 @@ const QuoteContainer = styled.div(_ref2 => {
|
|
|
29
33
|
gap: quoteContainerGap
|
|
30
34
|
};
|
|
31
35
|
});
|
|
32
|
-
const Divider = styled.div(
|
|
36
|
+
const Divider = /*#__PURE__*/styled.div.withConfig({
|
|
37
|
+
displayName: "Testimonial__Divider",
|
|
38
|
+
componentId: "components-web__sc-1az53gr-2"
|
|
39
|
+
})(_ref3 => {
|
|
33
40
|
let {
|
|
34
41
|
dividerBorder,
|
|
35
42
|
dividerBackgroundColor
|
|
@@ -40,14 +47,23 @@ const Divider = styled.div(_ref3 => {
|
|
|
40
47
|
width: '100%'
|
|
41
48
|
};
|
|
42
49
|
});
|
|
43
|
-
const BlockQuote = styled.blockquote({
|
|
50
|
+
const BlockQuote = /*#__PURE__*/styled.blockquote.withConfig({
|
|
51
|
+
displayName: "Testimonial__BlockQuote",
|
|
52
|
+
componentId: "components-web__sc-1az53gr-3"
|
|
53
|
+
})({
|
|
44
54
|
margin: 0
|
|
45
55
|
});
|
|
46
|
-
const AuthorInfoContainer = styled.div({
|
|
56
|
+
const AuthorInfoContainer = /*#__PURE__*/styled.div.withConfig({
|
|
57
|
+
displayName: "Testimonial__AuthorInfoContainer",
|
|
58
|
+
componentId: "components-web__sc-1az53gr-4"
|
|
59
|
+
})({
|
|
47
60
|
display: 'flex',
|
|
48
61
|
flexDirection: 'column'
|
|
49
62
|
});
|
|
50
|
-
const Figcaption = styled.figcaption(
|
|
63
|
+
const Figcaption = /*#__PURE__*/styled.figcaption.withConfig({
|
|
64
|
+
displayName: "Testimonial__Figcaption",
|
|
65
|
+
componentId: "components-web__sc-1az53gr-5"
|
|
66
|
+
})(_ref4 => {
|
|
51
67
|
let {
|
|
52
68
|
figcaptionGap
|
|
53
69
|
} = _ref4;
|
|
@@ -1,92 +1,40 @@
|
|
|
1
|
-
var _withLinkRouter$propT, _withLinkRouter$propT2;
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
import { ChevronLink, selectSystemProps, useThemeTokens, Typography, withLinkRouter, Spacer, useViewport, getTokensPropType } from '@telus-uds/components-base';
|
|
5
|
-
import {
|
|
4
|
+
import styled, { css, keyframes } from 'styled-components';
|
|
5
|
+
import { htmlAttrs } from '../utils';
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
const {
|
|
8
|
-
styled,
|
|
9
|
-
css,
|
|
10
|
-
keyframes
|
|
11
|
-
} = styledComponents;
|
|
12
7
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
13
|
-
const transform = property => (from, to) => keyframes
|
|
14
|
-
from {
|
|
15
|
-
${property}: ${from};
|
|
16
|
-
}
|
|
17
|
-
to {
|
|
18
|
-
${property}: ${to};
|
|
19
|
-
}
|
|
20
|
-
`;
|
|
8
|
+
const transform = property => (from, to) => keyframes(["from{", ":", ";}to{", ":", ";}"], property, from, property, to);
|
|
21
9
|
const slideDown = property => function (from, to) {
|
|
22
10
|
let end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : to;
|
|
23
|
-
return keyframes
|
|
24
|
-
0% {
|
|
25
|
-
${property}: ${from};
|
|
26
|
-
}
|
|
27
|
-
99% {
|
|
28
|
-
${property}: ${to};
|
|
29
|
-
}
|
|
30
|
-
100% {
|
|
31
|
-
${property}: ${end};
|
|
32
|
-
}
|
|
33
|
-
`;
|
|
11
|
+
return keyframes(["0%{", ":", ";}99%{", ":", ";}100%{", ":", ";}"], property, from, property, to, property, end);
|
|
34
12
|
};
|
|
35
|
-
const animation = props => css`
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
& * {
|
|
41
|
-
animation: ${transform('color')(props.animationColorBefore, props.animationColorAfter)} 1s
|
|
42
|
-
ease-in-out 3s forwards;
|
|
43
|
-
}
|
|
44
|
-
& > a div {
|
|
45
|
-
animation: ${transform('color')(props.animationDivColorBefore, props.animationDivColorAfter)} 1s
|
|
46
|
-
ease-in-out 3s forwards;
|
|
47
|
-
}
|
|
48
|
-
& > a svg {
|
|
49
|
-
animation: ${transform('fill')(props.animationFillColorBefore, props.animationFillColorAfter)}
|
|
50
|
-
1s ease-in-out 3s forwards;
|
|
51
|
-
}
|
|
52
|
-
& > a div {
|
|
53
|
-
animation: ${transform('color')(props.animationFillColorBefore, props.animationFillColorAfter)}
|
|
54
|
-
1s ease-in-out 3s forwards;
|
|
55
|
-
}
|
|
56
|
-
`;
|
|
57
|
-
const ToastContainer = styled.div`
|
|
58
|
-
display: flex;
|
|
59
|
-
justify-content: center;
|
|
60
|
-
align-items: center;
|
|
61
|
-
flex-wrap: wrap;
|
|
62
|
-
padding-left: ${_ref => {
|
|
13
|
+
const animation = props => css(["", " 1s ease-in-out 2s forwards,", " 1s ease-in-out 2s forwards,", " 1s ease-in-out 2s forwards,", " 1s ease-in-out 3.2s forwards;& *{animation:", " 1s ease-in-out 3s forwards;}& > a div{animation:", " 1s ease-in-out 3s forwards;}& > a svg{animation:", " 1s ease-in-out 3s forwards;}& > a div{animation:", " 1s ease-in-out 3s forwards;}"], slideDown('height')(`${props.animationHeightBefore}px`, `${props.animationHeightAfter}px`, 'auto'), transform('padding-bottom')(`${props.animationPaddingBottomBefore}px`, `${props.animationPaddingBottomAfter}px`), transform('padding-top')(`${props.animationPaddingTopBefore}px`, `${props.animationPaddingTopAfter}px`), transform('background')(props.animationBackgroundColorBefore, props.animationBackgroundColorAfter), transform('color')(props.animationColorBefore, props.animationColorAfter), transform('color')(props.animationDivColorBefore, props.animationDivColorAfter), transform('fill')(props.animationFillColorBefore, props.animationFillColorAfter), transform('color')(props.animationFillColorBefore, props.animationFillColorAfter));
|
|
14
|
+
const ToastContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15
|
+
displayName: "Toast__ToastContainer",
|
|
16
|
+
componentId: "components-web__sc-p78jdh-0"
|
|
17
|
+
})(["display:flex;justify-content:center;align-items:center;flex-wrap:wrap;padding-left:", "px;padding-right:", "px;background:", ";gap:", ";height:0;overflow:hidden;animation:", ";"], _ref => {
|
|
63
18
|
let {
|
|
64
19
|
padding
|
|
65
20
|
} = _ref;
|
|
66
21
|
return padding;
|
|
67
|
-
}
|
|
68
|
-
padding-right: ${_ref2 => {
|
|
22
|
+
}, _ref2 => {
|
|
69
23
|
let {
|
|
70
24
|
padding
|
|
71
25
|
} = _ref2;
|
|
72
26
|
return padding;
|
|
73
|
-
}
|
|
74
|
-
background: ${_ref3 => {
|
|
27
|
+
}, _ref3 => {
|
|
75
28
|
let {
|
|
76
29
|
containerBackgroundColor
|
|
77
30
|
} = _ref3;
|
|
78
31
|
return containerBackgroundColor;
|
|
79
|
-
}
|
|
80
|
-
gap: ${_ref4 => {
|
|
32
|
+
}, _ref4 => {
|
|
81
33
|
let {
|
|
82
34
|
containerGap
|
|
83
35
|
} = _ref4;
|
|
84
36
|
return containerGap;
|
|
85
|
-
}
|
|
86
|
-
height: 0;
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
animation: ${animation};
|
|
89
|
-
`;
|
|
37
|
+
}, animation);
|
|
90
38
|
const Toast = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
|
|
91
39
|
let {
|
|
92
40
|
toast,
|
|
@@ -201,8 +149,8 @@ Toast.propTypes = {
|
|
|
201
149
|
link: PropTypes.shape({
|
|
202
150
|
href: PropTypes.string.isRequired,
|
|
203
151
|
text: PropTypes.string.isRequired,
|
|
204
|
-
LinkRouter:
|
|
205
|
-
linkRouterProps:
|
|
152
|
+
LinkRouter: withLinkRouter.propTypes?.LinkRouter,
|
|
153
|
+
linkRouterProps: withLinkRouter.propTypes?.linkRouterProps
|
|
206
154
|
})
|
|
207
155
|
};
|
|
208
156
|
export default Toast;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { StackView, useThemeTokens, selectSystemProps, Icon, useViewport } from '@telus-uds/components-base';
|
|
4
|
+
import styled from 'styled-components';
|
|
4
5
|
import VideoProgressBar from './Controls/VideoProgressBar/VideoProgressBar';
|
|
5
6
|
import VolumeSlider from './Controls/VolumeSlider/VolumeSlider';
|
|
6
7
|
import VideoButton from './Controls/VideoButton/VideoButton';
|
|
7
8
|
import VideoMenu from './Controls/VideoMenu/VideoMenu';
|
|
8
9
|
import videoText from '../videoText';
|
|
9
|
-
import { htmlAttrs
|
|
10
|
+
import { htmlAttrs } from '../../utils';
|
|
10
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
const {
|
|
12
|
-
styled
|
|
13
|
-
} = styledComponents;
|
|
14
12
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
15
13
|
const getIcon = icon => /*#__PURE__*/_jsx(Icon, {
|
|
16
14
|
icon: icon
|
|
17
15
|
});
|
|
18
|
-
const ControlBarContainer = styled.div(
|
|
16
|
+
const ControlBarContainer = /*#__PURE__*/styled.div.withConfig({
|
|
17
|
+
displayName: "ControlBar__ControlBarContainer",
|
|
18
|
+
componentId: "components-web__sc-13y61ky-0"
|
|
19
|
+
})(_ref => {
|
|
19
20
|
let {
|
|
20
21
|
isHidden,
|
|
21
22
|
isMobile
|
|
@@ -28,7 +29,10 @@ const ControlBarContainer = styled.div(_ref => {
|
|
|
28
29
|
display: isMobile ? 'none' : undefined
|
|
29
30
|
};
|
|
30
31
|
});
|
|
31
|
-
const StyledControlBar = styled.div(
|
|
32
|
+
const StyledControlBar = /*#__PURE__*/styled.div.withConfig({
|
|
33
|
+
displayName: "ControlBar__StyledControlBar",
|
|
34
|
+
componentId: "components-web__sc-13y61ky-1"
|
|
35
|
+
})(_ref2 => {
|
|
32
36
|
let {
|
|
33
37
|
padding,
|
|
34
38
|
height
|
|
@@ -48,11 +52,17 @@ const StyledControlBar = styled.div(_ref2 => {
|
|
|
48
52
|
zIndex: 9
|
|
49
53
|
};
|
|
50
54
|
});
|
|
51
|
-
const VideoProgressBarContainer = styled.div({
|
|
55
|
+
const VideoProgressBarContainer = /*#__PURE__*/styled.div.withConfig({
|
|
56
|
+
displayName: "ControlBar__VideoProgressBarContainer",
|
|
57
|
+
componentId: "components-web__sc-13y61ky-2"
|
|
58
|
+
})({
|
|
52
59
|
display: 'flex',
|
|
53
60
|
flexGrow: 1
|
|
54
61
|
});
|
|
55
|
-
const MenuContainer = styled.div(
|
|
62
|
+
const MenuContainer = /*#__PURE__*/styled.div.withConfig({
|
|
63
|
+
displayName: "ControlBar__MenuContainer",
|
|
64
|
+
componentId: "components-web__sc-13y61ky-3"
|
|
65
|
+
})(_ref3 => {
|
|
56
66
|
let {
|
|
57
67
|
isOpen,
|
|
58
68
|
menuBottom,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useThemeTokens, selectSystemProps } from '@telus-uds/components-base';
|
|
4
|
-
import
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { htmlAttrs } from '../../../../utils';
|
|
5
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
const {
|
|
7
|
-
styled
|
|
8
|
-
} = styledComponents;
|
|
9
7
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
10
|
-
const StyledButton = styled.button(
|
|
8
|
+
const StyledButton = /*#__PURE__*/styled.button.withConfig({
|
|
9
|
+
displayName: "VideoButton__StyledButton",
|
|
10
|
+
componentId: "components-web__sc-kfw0tr-0"
|
|
11
|
+
})(_ref => {
|
|
11
12
|
let {
|
|
12
13
|
color
|
|
13
14
|
} = _ref;
|
|
@@ -45,9 +46,8 @@ const VideoButton = _ref2 => {
|
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
const handleClick = event => {
|
|
48
|
-
var _rest$onClick;
|
|
49
49
|
event.preventDefault();
|
|
50
|
-
|
|
50
|
+
rest.onClick?.(event);
|
|
51
51
|
};
|
|
52
52
|
return /*#__PURE__*/_jsxs(StyledButton, {
|
|
53
53
|
"aria-label": label,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { StackView, Typography, useThemeTokens, selectSystemProps, Icon } from '@telus-uds/components-base';
|
|
4
|
+
import styled from 'styled-components';
|
|
4
5
|
import videoText from '../../../videoText';
|
|
5
|
-
import { htmlAttrs
|
|
6
|
+
import { htmlAttrs } from '../../../../utils';
|
|
6
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
const {
|
|
8
|
-
styled
|
|
9
|
-
} = styledComponents;
|
|
10
8
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
11
|
-
const MenuContainer = styled.div(
|
|
9
|
+
const MenuContainer = /*#__PURE__*/styled.div.withConfig({
|
|
10
|
+
displayName: "VideoMenu__MenuContainer",
|
|
11
|
+
componentId: "components-web__sc-nllbhw-0"
|
|
12
|
+
})(_ref => {
|
|
12
13
|
let {
|
|
13
14
|
padding,
|
|
14
15
|
background
|
|
@@ -20,7 +21,10 @@ const MenuContainer = styled.div(_ref => {
|
|
|
20
21
|
borderRadius: 5
|
|
21
22
|
};
|
|
22
23
|
});
|
|
23
|
-
const MenuButton = styled.button({
|
|
24
|
+
const MenuButton = /*#__PURE__*/styled.button.withConfig({
|
|
25
|
+
displayName: "VideoMenu__MenuButton",
|
|
26
|
+
componentId: "components-web__sc-nllbhw-1"
|
|
27
|
+
})({
|
|
24
28
|
background: 'none',
|
|
25
29
|
border: 'none',
|
|
26
30
|
padding: 0,
|
|
@@ -30,7 +34,10 @@ const MenuButton = styled.button({
|
|
|
30
34
|
justifyContent: 'space-between',
|
|
31
35
|
verticalAlign: 'middle'
|
|
32
36
|
});
|
|
33
|
-
const CheckmarkContainer = styled.div(
|
|
37
|
+
const CheckmarkContainer = /*#__PURE__*/styled.div.withConfig({
|
|
38
|
+
displayName: "VideoMenu__CheckmarkContainer",
|
|
39
|
+
componentId: "components-web__sc-nllbhw-2"
|
|
40
|
+
})(_ref2 => {
|
|
34
41
|
let {
|
|
35
42
|
isSelectedItem,
|
|
36
43
|
checkMarkWidth,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Typography, useThemeTokens, selectSystemProps } from '@telus-uds/components-base';
|
|
4
|
+
import styled from 'styled-components';
|
|
4
5
|
import videoText from '../../../videoText';
|
|
5
|
-
import { htmlAttrs
|
|
6
|
+
import { htmlAttrs } from '../../../../utils';
|
|
6
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
const {
|
|
8
|
-
styled
|
|
9
|
-
} = styledComponents;
|
|
10
8
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
11
|
-
const ProgressBarContainer = styled.div({
|
|
9
|
+
const ProgressBarContainer = /*#__PURE__*/styled.div.withConfig({
|
|
10
|
+
displayName: "VideoProgressBar__ProgressBarContainer",
|
|
11
|
+
componentId: "components-web__sc-d9tm07-0"
|
|
12
|
+
})({
|
|
12
13
|
display: 'flex',
|
|
13
14
|
width: '100%',
|
|
14
15
|
alignItems: 'center'
|
|
@@ -43,13 +44,16 @@ const sharedStyles = _ref => {
|
|
|
43
44
|
})
|
|
44
45
|
};
|
|
45
46
|
};
|
|
46
|
-
const StyledProgressBar = styled.input.attrs(_ref2 => {
|
|
47
|
+
const StyledProgressBar = /*#__PURE__*/styled.input.attrs(_ref2 => {
|
|
47
48
|
let {
|
|
48
49
|
videoCurrentTime
|
|
49
50
|
} = _ref2;
|
|
50
51
|
return {
|
|
51
52
|
value: videoCurrentTime
|
|
52
53
|
};
|
|
54
|
+
}).withConfig({
|
|
55
|
+
displayName: "VideoProgressBar__StyledProgressBar",
|
|
56
|
+
componentId: "components-web__sc-d9tm07-1"
|
|
53
57
|
})(_ref3 => {
|
|
54
58
|
let {
|
|
55
59
|
videoBufferDisplay,
|
|
@@ -93,7 +97,10 @@ const StyledProgressBar = styled.input.attrs(_ref2 => {
|
|
|
93
97
|
}
|
|
94
98
|
};
|
|
95
99
|
});
|
|
96
|
-
const StyledTimestamp = styled.span(
|
|
100
|
+
const StyledTimestamp = /*#__PURE__*/styled.span.withConfig({
|
|
101
|
+
displayName: "VideoProgressBar__StyledTimestamp",
|
|
102
|
+
componentId: "components-web__sc-d9tm07-2"
|
|
103
|
+
})(_ref4 => {
|
|
97
104
|
let {
|
|
98
105
|
margin
|
|
99
106
|
} = _ref4;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Icon, useThemeTokens, selectSystemProps } from '@telus-uds/components-base';
|
|
4
|
+
import styled from 'styled-components';
|
|
4
5
|
import VideoButton from '../VideoButton/VideoButton';
|
|
5
6
|
import videoText from '../../../videoText';
|
|
6
|
-
import { htmlAttrs
|
|
7
|
+
import { htmlAttrs } from '../../../../utils';
|
|
7
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
const {
|
|
9
|
-
styled
|
|
10
|
-
} = styledComponents;
|
|
11
9
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
12
|
-
const VolumeSliderContainer = styled.div(
|
|
10
|
+
const VolumeSliderContainer = /*#__PURE__*/styled.div.withConfig({
|
|
11
|
+
displayName: "VolumeSlider__VolumeSliderContainer",
|
|
12
|
+
componentId: "components-web__sc-apixz4-0"
|
|
13
|
+
})(_ref => {
|
|
13
14
|
let {
|
|
14
15
|
videoPlayerWidth,
|
|
15
16
|
compactModeThreshold,
|
|
@@ -53,13 +54,16 @@ const sharedStyles = _ref2 => {
|
|
|
53
54
|
})
|
|
54
55
|
};
|
|
55
56
|
};
|
|
56
|
-
const StyledVolumeSlider = styled.input.attrs(_ref3 => {
|
|
57
|
+
const StyledVolumeSlider = /*#__PURE__*/styled.input.attrs(_ref3 => {
|
|
57
58
|
let {
|
|
58
59
|
videoCurrentVolume
|
|
59
60
|
} = _ref3;
|
|
60
61
|
return {
|
|
61
62
|
value: videoCurrentVolume
|
|
62
63
|
};
|
|
64
|
+
}).withConfig({
|
|
65
|
+
displayName: "VolumeSlider__StyledVolumeSlider",
|
|
66
|
+
componentId: "components-web__sc-apixz4-1"
|
|
63
67
|
})(_ref4 => {
|
|
64
68
|
let {
|
|
65
69
|
videoCurrentVolume,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useThemeTokens, selectSystemProps } from '@telus-uds/components-base';
|
|
4
|
-
import
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { htmlAttrs } from '../../utils';
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
const {
|
|
7
|
-
styled
|
|
8
|
-
} = styledComponents;
|
|
9
7
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
10
|
-
const StyledMiddleControlButton = styled.button(
|
|
8
|
+
const StyledMiddleControlButton = /*#__PURE__*/styled.button.withConfig({
|
|
9
|
+
displayName: "MiddleControlButton__StyledMiddleControlButton",
|
|
10
|
+
componentId: "components-web__sc-1um2s37-0"
|
|
11
|
+
})(_ref => {
|
|
11
12
|
let {
|
|
12
13
|
isHidden,
|
|
13
14
|
width,
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import fscreen from 'fscreen';
|
|
4
|
+
import styled from 'styled-components';
|
|
4
5
|
import { useThemeTokens, selectSystemProps, getTokensPropType, variantProp } from '@telus-uds/components-base';
|
|
5
6
|
import Spinner from '../Spinner';
|
|
6
|
-
import { warn, htmlAttrs
|
|
7
|
+
import { warn, htmlAttrs } from '../utils';
|
|
7
8
|
import VideoSplash from '../shared/VideoSplash/VideoSplash';
|
|
8
9
|
import MiddleControlButton from './MiddleControlButton/MiddleControlButton';
|
|
9
10
|
import ControlBar from './ControlBar/ControlBar';
|
|
10
11
|
import videoText from './videoText';
|
|
11
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
const {
|
|
13
|
-
styled
|
|
14
|
-
} = styledComponents;
|
|
15
13
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
16
14
|
|
|
17
15
|
// TODO: replace with the actual spinner component from UDS
|
|
18
|
-
const VideoPlayerContainer = styled.div(
|
|
16
|
+
const VideoPlayerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
17
|
+
displayName: "Video__VideoPlayerContainer",
|
|
18
|
+
componentId: "components-web__sc-12ltnuw-0"
|
|
19
|
+
})(_ref => {
|
|
19
20
|
let {
|
|
20
21
|
videoBorder,
|
|
21
22
|
borderColor
|
|
@@ -27,17 +28,26 @@ const VideoPlayerContainer = styled.div(_ref => {
|
|
|
27
28
|
border: videoBorder ? `20px solid ${borderColor}` : undefined
|
|
28
29
|
};
|
|
29
30
|
});
|
|
30
|
-
const VideoElementContainer = styled.div({
|
|
31
|
+
const VideoElementContainer = /*#__PURE__*/styled.div.withConfig({
|
|
32
|
+
displayName: "Video__VideoElementContainer",
|
|
33
|
+
componentId: "components-web__sc-12ltnuw-1"
|
|
34
|
+
})({
|
|
31
35
|
outline: 'none',
|
|
32
36
|
width: '100%',
|
|
33
37
|
height: '100%',
|
|
34
38
|
fontSize: 0
|
|
35
39
|
});
|
|
36
|
-
const VideoPlayer = styled.video({
|
|
40
|
+
const VideoPlayer = /*#__PURE__*/styled.video.withConfig({
|
|
41
|
+
displayName: "Video__VideoPlayer",
|
|
42
|
+
componentId: "components-web__sc-12ltnuw-2"
|
|
43
|
+
})({
|
|
37
44
|
width: '100%',
|
|
38
45
|
height: '100%'
|
|
39
46
|
});
|
|
40
|
-
const VideoOverlayContainer = styled.div(
|
|
47
|
+
const VideoOverlayContainer = /*#__PURE__*/styled.div.withConfig({
|
|
48
|
+
displayName: "Video__VideoOverlayContainer",
|
|
49
|
+
componentId: "components-web__sc-12ltnuw-3"
|
|
50
|
+
})(_ref2 => {
|
|
41
51
|
let {
|
|
42
52
|
mouseInactive
|
|
43
53
|
} = _ref2;
|
|
@@ -48,13 +58,19 @@ const VideoOverlayContainer = styled.div(_ref2 => {
|
|
|
48
58
|
cursor: mouseInactive ? 'none' : 'pointer'
|
|
49
59
|
};
|
|
50
60
|
});
|
|
51
|
-
const VideoSplashContainer = styled.div({
|
|
61
|
+
const VideoSplashContainer = /*#__PURE__*/styled.div.withConfig({
|
|
62
|
+
displayName: "Video__VideoSplashContainer",
|
|
63
|
+
componentId: "components-web__sc-12ltnuw-4"
|
|
64
|
+
})({
|
|
52
65
|
position: 'absolute',
|
|
53
66
|
width: '100%',
|
|
54
67
|
height: '100%',
|
|
55
68
|
zIndex: 5
|
|
56
69
|
});
|
|
57
|
-
const VideoOverlayElementContainer = styled.div({
|
|
70
|
+
const VideoOverlayElementContainer = /*#__PURE__*/styled.div.withConfig({
|
|
71
|
+
displayName: "Video__VideoOverlayElementContainer",
|
|
72
|
+
componentId: "components-web__sc-12ltnuw-5"
|
|
73
|
+
})({
|
|
58
74
|
position: 'absolute',
|
|
59
75
|
zIndex: 4,
|
|
60
76
|
display: 'flex',
|
|
@@ -553,8 +569,8 @@ const Video = _ref3 => {
|
|
|
553
569
|
|
|
554
570
|
// This allows playing videos within components that act like
|
|
555
571
|
// links, e.g. `PreviewCard`, `StoryCard`, etc.
|
|
556
|
-
event
|
|
557
|
-
event
|
|
572
|
+
event?.preventDefault();
|
|
573
|
+
event?.stopPropagation();
|
|
558
574
|
};
|
|
559
575
|
const handleKeyboard = event => {
|
|
560
576
|
const {
|