@telus-uds/components-web 4.19.0 → 5.0.0-alpha.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 +12 -0
- package/CHANGELOG.md +24 -1
- package/lib/cjs/Badge/Badge.js +26 -27
- package/lib/cjs/BlockQuote/BlockQuote.js +24 -25
- package/lib/cjs/Breadcrumbs/{Item/Item.js → BreadcrumbItem.js} +36 -37
- package/lib/cjs/Breadcrumbs/Breadcrumbs.js +8 -10
- package/lib/cjs/Callout/Callout.js +24 -25
- package/lib/cjs/Card/Card.js +79 -89
- package/lib/cjs/Card/CardContent.js +53 -29
- package/lib/cjs/Card/CardFooter.js +28 -18
- package/lib/cjs/Countdown/Countdown.js +7 -8
- package/lib/cjs/Countdown/Segment.js +10 -11
- package/lib/cjs/Countdown/dictionary.js +2 -2
- package/lib/cjs/Countdown/types.js +2 -6
- package/lib/cjs/Countdown/useCountdown.js +2 -2
- package/lib/cjs/DatePicker/CalendarContainer.js +66 -67
- package/lib/cjs/DatePicker/DatePicker.js +27 -28
- package/lib/cjs/DatePicker/dictionary.js +3 -4
- package/lib/cjs/DatePicker/reactDatesCss.js +2 -3
- package/lib/cjs/Disclaimer/Disclaimer.js +28 -13
- package/lib/cjs/Footnote/Footnote.js +108 -109
- package/lib/cjs/Footnote/FootnoteLink.js +28 -19
- package/lib/cjs/Footnote/dictionary.js +2 -2
- package/lib/cjs/IconButton/IconButton.js +3 -4
- package/lib/cjs/Image/Image.js +9 -3
- package/lib/cjs/Image/server.js +4 -6
- package/lib/cjs/List/List.js +7 -3
- package/lib/cjs/List/ListItem.js +3 -4
- package/lib/cjs/NavigationBar/NavigationBar.js +8 -9
- package/lib/cjs/NavigationBar/NavigationItem.js +10 -11
- package/lib/cjs/NavigationBar/NavigationSubMenu.js +10 -11
- package/lib/cjs/NavigationBar/collapseItems.js +2 -2
- package/lib/cjs/NavigationBar/resolveItemSelection.js +2 -2
- package/lib/cjs/OptimizeImage/OptimizeImage.js +6 -8
- package/lib/cjs/OptimizeImage/utils/getFallbackUrl.js +3 -4
- package/lib/cjs/OptimizeImage/utils/getImageUrls.js +9 -10
- package/lib/cjs/OptimizeImage/utils/getOptimizedUrl.js +3 -4
- package/lib/cjs/OptimizeImage/utils/hasWebpSupport.js +1 -1
- package/lib/cjs/OptimizeImage/utils/index.js +8 -9
- package/lib/cjs/OptimizeImage/utils/isSvgUrl.js +1 -1
- package/lib/cjs/OrderedList/OrderedList.js +6 -9
- package/lib/cjs/OrderedList/OrderedListBase.js +4 -7
- package/lib/cjs/OrderedList/{Item.js → OrderedListItem.js} +46 -39
- package/lib/cjs/OrderedList/{ItemBase.js → OrderedListItemBase.js} +7 -7
- package/lib/cjs/OrderedList/constants.js +0 -1
- package/lib/cjs/Paragraph/Paragraph.js +10 -11
- package/lib/cjs/PreviewCard/PreviewCard.js +18 -27
- package/lib/cjs/PreviewCard/{AuthorDate.js → PreviewCardAuthorDate.js} +6 -6
- package/lib/cjs/PriceLockup/PriceLockup.js +61 -60
- package/lib/cjs/PriceLockup/dictionary.js +2 -2
- package/lib/cjs/PriceLockup/tokens.js +3 -3
- package/lib/cjs/Progress/ProgressBar.js +14 -17
- package/lib/cjs/QuantitySelector/QuantitySelector.js +8 -9
- package/lib/cjs/QuantitySelector/{SideButton.js → QuantitySelectorSideButton.js} +5 -6
- package/lib/cjs/QuantitySelector/dictionary.js +2 -2
- package/lib/cjs/ResponsiveImage/ResponsiveImage.js +3 -4
- package/lib/cjs/Ribbon/Ribbon.js +56 -65
- package/lib/cjs/SkeletonProvider/SkeletonImage.js +3 -4
- package/lib/cjs/SkeletonProvider/SkeletonProvider.js +10 -10
- package/lib/cjs/SkeletonProvider/SkeletonTypography.js +3 -4
- package/lib/cjs/Span/Span.js +6 -7
- package/lib/cjs/Spinner/Spinner.js +29 -29
- package/lib/cjs/Spinner/SpinnerContent.js +6 -7
- package/lib/cjs/StoryCard/StoryCard.js +17 -22
- package/lib/cjs/Table/Table.js +32 -25
- package/lib/cjs/Table/{Body.js → TableBody.js} +5 -6
- package/lib/cjs/Table/{Cell.js → TableCell.js} +59 -61
- package/lib/cjs/Table/{Header.js → TableHeader.js} +7 -8
- package/lib/cjs/Table/{Row.js → TableRow.js} +18 -19
- package/lib/cjs/Table/{SubHeading.js → TableSubHeading.js} +7 -8
- package/lib/cjs/TermsAndConditions/ExpandCollapse.js +18 -19
- package/lib/cjs/TermsAndConditions/TermsAndConditions.js +44 -44
- package/lib/cjs/TermsAndConditions/dictionary.js +2 -2
- package/lib/cjs/Testimonial/Testimonial.js +24 -31
- package/lib/cjs/Toast/Toast.js +28 -30
- package/lib/cjs/Video/ControlBar/ControlBar.js +48 -47
- package/lib/cjs/Video/ControlBar/Controls/VideoButton/VideoButton.js +6 -6
- package/lib/cjs/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +30 -32
- package/lib/cjs/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +35 -35
- package/lib/cjs/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +42 -42
- package/lib/cjs/Video/MiddleControlButton/MiddleControlButton.js +15 -15
- package/lib/cjs/Video/Video.js +27 -29
- package/lib/cjs/Video/videoText.js +3 -4
- package/lib/cjs/VideoPicker/VideoPicker.js +37 -33
- package/lib/cjs/VideoPicker/VideoPickerPlayer.js +5 -6
- package/lib/cjs/VideoPicker/VideoPickerThumbnail.js +28 -25
- package/lib/cjs/VideoPicker/VideoSlider.js +3 -4
- package/lib/cjs/WaffleGrid/WaffleGrid.js +51 -50
- package/lib/cjs/WebVideo/WebVideo.js +7 -8
- package/lib/cjs/baseExports.js +84 -0
- package/lib/cjs/index.js +179 -105
- package/lib/cjs/server.js +2 -3
- package/lib/cjs/shared/ConditionalWrapper/ConditionalWrapper.js +3 -3
- package/lib/cjs/shared/FullBleedContent/FullBleedContent.js +28 -22
- package/lib/cjs/shared/FullBleedContent/getFullBleedBorderRadius.js +2 -2
- package/lib/cjs/shared/FullBleedContent/index.js +11 -10
- package/lib/cjs/shared/FullBleedContent/useFullBleedContentProps.js +2 -2
- package/lib/cjs/shared/VideoSplash/SplashButton/SplashButton.js +9 -9
- package/lib/cjs/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +50 -50
- package/lib/cjs/shared/VideoSplash/VideoSplash.js +12 -12
- package/lib/cjs/shared/VideoSplash/helpers.js +2 -3
- package/lib/cjs/utils/index.js +14 -15
- package/lib/cjs/utils/isElementFocusable.js +2 -2
- package/lib/cjs/utils/logger.js +2 -6
- package/lib/cjs/utils/media.js +1 -1
- package/lib/cjs/utils/renderStructuredContent.js +3 -4
- package/lib/cjs/utils/scrollToAnchor.js +2 -2
- package/lib/cjs/utils/ssr.js +2 -2
- package/lib/cjs/utils/theming/get-theme-from-server.js +2 -3
- package/lib/cjs/utils/theming/with-client-theme.js +2 -2
- package/lib/cjs/utils/theming/with-server-theme.js +4 -4
- package/lib/cjs/utils/transforms.js +2 -5
- package/lib/cjs/utils/useOverlaidPosition.js +2 -2
- package/lib/cjs/utils/useTypographyTheme.js +2 -2
- package/lib/esm/Badge/Badge.js +25 -26
- package/lib/esm/BlockQuote/BlockQuote.js +23 -24
- package/lib/esm/Breadcrumbs/{Item/Item.js → BreadcrumbItem.js} +35 -36
- package/lib/esm/Breadcrumbs/Breadcrumbs.js +6 -7
- package/lib/esm/Callout/Callout.js +23 -24
- package/lib/esm/Card/Card.js +63 -71
- package/lib/esm/Card/CardContent.js +52 -28
- package/lib/esm/Card/CardFooter.js +27 -18
- package/lib/esm/Countdown/Countdown.js +4 -5
- package/lib/esm/Countdown/Segment.js +8 -9
- package/lib/esm/Countdown/dictionary.js +1 -1
- package/lib/esm/Countdown/types.js +1 -5
- package/lib/esm/Countdown/useCountdown.js +2 -3
- package/lib/esm/DatePicker/CalendarContainer.js +64 -65
- package/lib/esm/DatePicker/DatePicker.js +18 -19
- package/lib/esm/DatePicker/dictionary.js +2 -3
- package/lib/esm/DatePicker/reactDatesCss.js +1 -2
- package/lib/esm/Disclaimer/Disclaimer.js +27 -12
- package/lib/esm/Footnote/Footnote.js +104 -104
- package/lib/esm/Footnote/FootnoteLink.js +26 -17
- package/lib/esm/Footnote/dictionary.js +1 -1
- package/lib/esm/IconButton/IconButton.js +2 -3
- package/lib/esm/Image/Image.js +10 -1
- package/lib/esm/Image/server.js +4 -4
- package/lib/esm/List/List.js +2 -2
- package/lib/esm/List/ListItem.js +2 -3
- package/lib/esm/NavigationBar/NavigationBar.js +5 -6
- package/lib/esm/NavigationBar/NavigationItem.js +9 -10
- package/lib/esm/NavigationBar/NavigationSubMenu.js +7 -8
- package/lib/esm/NavigationBar/collapseItems.js +2 -3
- package/lib/esm/NavigationBar/resolveItemSelection.js +2 -3
- package/lib/esm/OptimizeImage/OptimizeImage.js +4 -6
- package/lib/esm/OptimizeImage/utils/getFallbackUrl.js +2 -2
- package/lib/esm/OptimizeImage/utils/getImageUrls.js +3 -3
- package/lib/esm/OptimizeImage/utils/getOptimizedUrl.js +2 -2
- package/lib/esm/OptimizeImage/utils/hasWebpSupport.js +1 -1
- package/lib/esm/OptimizeImage/utils/index.js +4 -4
- package/lib/esm/OptimizeImage/utils/isSvgUrl.js +1 -1
- package/lib/esm/OrderedList/OrderedList.js +4 -7
- package/lib/esm/OrderedList/OrderedListBase.js +3 -6
- package/lib/esm/OrderedList/{Item.js → OrderedListItem.js} +45 -38
- package/lib/esm/OrderedList/{ItemBase.js → OrderedListItemBase.js} +5 -6
- package/lib/esm/OrderedList/constants.js +0 -1
- package/lib/esm/Paragraph/Paragraph.js +9 -10
- package/lib/esm/PreviewCard/PreviewCard.js +16 -21
- package/lib/esm/PreviewCard/{AuthorDate.js → PreviewCardAuthorDate.js} +4 -5
- package/lib/esm/PriceLockup/PriceLockup.js +57 -56
- package/lib/esm/PriceLockup/dictionary.js +1 -1
- package/lib/esm/PriceLockup/tokens.js +1 -1
- package/lib/esm/Progress/ProgressBar.js +13 -16
- package/lib/esm/QuantitySelector/QuantitySelector.js +6 -7
- package/lib/esm/QuantitySelector/{SideButton.js → QuantitySelectorSideButton.js} +4 -5
- package/lib/esm/QuantitySelector/dictionary.js +1 -1
- package/lib/esm/ResponsiveImage/ResponsiveImage.js +2 -3
- package/lib/esm/Ribbon/Ribbon.js +55 -64
- package/lib/esm/SkeletonProvider/SkeletonImage.js +2 -3
- package/lib/esm/SkeletonProvider/SkeletonProvider.js +6 -7
- package/lib/esm/SkeletonProvider/SkeletonTypography.js +2 -3
- package/lib/esm/Span/Span.js +5 -6
- package/lib/esm/Spinner/Spinner.js +24 -24
- package/lib/esm/Spinner/SpinnerContent.js +5 -6
- package/lib/esm/StoryCard/StoryCard.js +15 -16
- package/lib/esm/Table/Table.js +31 -24
- package/lib/esm/Table/{Body.js → TableBody.js} +4 -5
- package/lib/esm/Table/{Cell.js → TableCell.js} +57 -58
- package/lib/esm/Table/{Header.js → TableHeader.js} +6 -7
- package/lib/esm/Table/{Row.js → TableRow.js} +17 -18
- package/lib/esm/Table/{SubHeading.js → TableSubHeading.js} +6 -7
- package/lib/esm/TermsAndConditions/ExpandCollapse.js +18 -19
- package/lib/esm/TermsAndConditions/TermsAndConditions.js +40 -40
- package/lib/esm/TermsAndConditions/dictionary.js +1 -1
- package/lib/esm/Testimonial/Testimonial.js +22 -29
- package/lib/esm/Toast/Toast.js +26 -27
- package/lib/esm/Video/ControlBar/ControlBar.js +33 -33
- package/lib/esm/Video/ControlBar/Controls/VideoButton/VideoButton.js +5 -6
- package/lib/esm/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +28 -31
- package/lib/esm/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +33 -34
- package/lib/esm/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +38 -39
- package/lib/esm/Video/MiddleControlButton/MiddleControlButton.js +14 -15
- package/lib/esm/Video/Video.js +19 -21
- package/lib/esm/Video/videoText.js +2 -3
- package/lib/esm/VideoPicker/VideoPicker.js +32 -27
- package/lib/esm/VideoPicker/VideoPickerPlayer.js +3 -4
- package/lib/esm/VideoPicker/VideoPickerThumbnail.js +26 -23
- package/lib/esm/VideoPicker/VideoSlider.js +2 -3
- package/lib/esm/WaffleGrid/WaffleGrid.js +49 -46
- package/lib/esm/WebVideo/WebVideo.js +5 -6
- package/lib/esm/baseExports.js +1 -1
- package/lib/esm/index.js +46 -37
- package/lib/esm/server.js +1 -2
- package/lib/esm/shared/ConditionalWrapper/ConditionalWrapper.js +2 -3
- package/lib/esm/shared/FullBleedContent/FullBleedContent.js +25 -20
- package/lib/esm/shared/FullBleedContent/getFullBleedBorderRadius.js +2 -3
- package/lib/esm/shared/FullBleedContent/index.js +3 -4
- package/lib/esm/shared/FullBleedContent/useFullBleedContentProps.js +3 -5
- package/lib/esm/shared/VideoSplash/SplashButton/SplashButton.js +8 -9
- package/lib/esm/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +48 -49
- package/lib/esm/shared/VideoSplash/VideoSplash.js +8 -9
- package/lib/esm/shared/VideoSplash/helpers.js +1 -1
- package/lib/esm/utils/index.js +7 -7
- package/lib/esm/utils/isElementFocusable.js +2 -3
- package/lib/esm/utils/logger.js +0 -4
- package/lib/esm/utils/media.js +1 -1
- package/lib/esm/utils/renderStructuredContent.js +2 -3
- package/lib/esm/utils/scrollToAnchor.js +2 -3
- package/lib/esm/utils/ssr.js +2 -3
- package/lib/esm/utils/theming/get-theme-from-server.js +1 -1
- package/lib/esm/utils/theming/with-client-theme.js +2 -3
- package/lib/esm/utils/theming/with-server-theme.js +3 -4
- package/lib/esm/utils/transforms.js +1 -4
- package/lib/esm/utils/useOverlaidPosition.js +2 -3
- package/lib/esm/utils/useTypographyTheme.js +2 -3
- package/package.json +13 -22
- package/src/Badge/Badge.jsx +18 -20
- package/src/BlockQuote/BlockQuote.jsx +16 -18
- package/src/Breadcrumbs/{Item/Item.jsx → BreadcrumbItem.jsx} +20 -21
- package/src/Breadcrumbs/Breadcrumbs.jsx +6 -9
- package/src/Callout/Callout.jsx +16 -18
- package/src/Card/Card.jsx +59 -80
- package/src/Card/CardContent.jsx +52 -28
- package/src/Card/CardFooter.jsx +26 -12
- package/src/Countdown/Countdown.jsx +3 -5
- package/src/Countdown/Segment.jsx +6 -8
- package/src/Countdown/dictionary.js +1 -1
- package/src/Countdown/types.js +0 -2
- package/src/Countdown/useCountdown.js +1 -3
- package/src/DatePicker/CalendarContainer.jsx +65 -67
- package/src/DatePicker/DatePicker.jsx +17 -19
- package/src/DatePicker/dictionary.js +1 -3
- package/src/DatePicker/reactDatesCss.js +1 -3
- package/src/Disclaimer/Disclaimer.jsx +15 -8
- package/src/Footnote/Footnote.jsx +104 -93
- package/src/Footnote/FootnoteLink.jsx +16 -13
- package/src/Footnote/dictionary.js +1 -1
- package/src/IconButton/IconButton.jsx +1 -3
- package/src/Image/Image.jsx +9 -1
- package/src/Image/server.js +4 -4
- package/src/List/List.jsx +2 -2
- package/src/List/ListItem.jsx +1 -3
- package/src/NavigationBar/NavigationBar.jsx +4 -6
- package/src/NavigationBar/NavigationItem.jsx +6 -8
- package/src/NavigationBar/NavigationSubMenu.jsx +7 -8
- package/src/NavigationBar/collapseItems.js +1 -3
- package/src/NavigationBar/resolveItemSelection.js +1 -3
- package/src/OptimizeImage/OptimizeImage.jsx +3 -6
- package/src/OptimizeImage/utils/getFallbackUrl.js +2 -2
- package/src/OptimizeImage/utils/getImageUrls.js +3 -3
- package/src/OptimizeImage/utils/getOptimizedUrl.js +2 -9
- package/src/OptimizeImage/utils/hasWebpSupport.js +1 -1
- package/src/OptimizeImage/utils/index.js +4 -4
- package/src/OptimizeImage/utils/isSvgUrl.js +1 -1
- package/src/OrderedList/OrderedList.jsx +3 -8
- package/src/OrderedList/OrderedListBase.jsx +2 -7
- package/src/OrderedList/{Item.jsx → OrderedListItem.jsx} +44 -32
- package/src/OrderedList/{ItemBase.jsx → OrderedListItemBase.jsx} +4 -4
- package/src/OrderedList/constants.js +0 -1
- package/src/Paragraph/Paragraph.jsx +7 -9
- package/src/PreviewCard/PreviewCard.jsx +16 -32
- package/src/PreviewCard/{AuthorDate.jsx → PreviewCardAuthorDate.jsx} +3 -5
- package/src/PriceLockup/PriceLockup.jsx +33 -31
- package/src/PriceLockup/dictionary.js +1 -1
- package/src/PriceLockup/tokens.js +1 -1
- package/src/Progress/ProgressBar.jsx +33 -30
- package/src/QuantitySelector/QuantitySelector.jsx +5 -7
- package/src/QuantitySelector/{SideButton.jsx → QuantitySelectorSideButton.jsx} +3 -4
- package/src/QuantitySelector/dictionary.js +1 -1
- package/src/ResponsiveImage/ResponsiveImage.jsx +1 -3
- package/src/Ribbon/Ribbon.jsx +35 -44
- package/src/SkeletonProvider/SkeletonImage.jsx +1 -3
- package/src/SkeletonProvider/SkeletonProvider.jsx +5 -9
- package/src/SkeletonProvider/SkeletonTypography.jsx +1 -3
- package/src/Span/Span.jsx +11 -11
- package/src/Spinner/Spinner.jsx +17 -19
- package/src/Spinner/SpinnerContent.jsx +4 -6
- package/src/StoryCard/StoryCard.jsx +15 -16
- package/src/Table/Table.jsx +81 -75
- package/src/Table/{Body.jsx → TableBody.jsx} +3 -5
- package/src/Table/{Cell.jsx → TableCell.jsx} +69 -65
- package/src/Table/{Header.jsx → TableHeader.jsx} +6 -8
- package/src/Table/{Row.jsx → TableRow.jsx} +11 -12
- package/src/Table/{SubHeading.jsx → TableSubHeading.jsx} +6 -8
- package/src/TermsAndConditions/ExpandCollapse.jsx +18 -19
- package/src/TermsAndConditions/TermsAndConditions.jsx +37 -37
- package/src/TermsAndConditions/dictionary.js +1 -1
- package/src/Testimonial/Testimonial.jsx +20 -28
- package/src/Toast/Toast.jsx +36 -35
- package/src/Video/ControlBar/ControlBar.jsx +28 -25
- package/src/Video/ControlBar/Controls/VideoButton/VideoButton.jsx +4 -6
- package/src/Video/ControlBar/Controls/VideoMenu/VideoMenu.jsx +26 -30
- package/src/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.jsx +31 -33
- package/src/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.jsx +40 -40
- package/src/Video/MiddleControlButton/MiddleControlButton.jsx +10 -12
- package/src/Video/Video.jsx +697 -683
- package/src/Video/videoText.js +1 -3
- package/src/VideoPicker/VideoPicker.jsx +37 -25
- package/src/VideoPicker/VideoPickerPlayer.jsx +2 -4
- package/src/VideoPicker/VideoPickerThumbnail.jsx +26 -15
- package/src/VideoPicker/VideoSlider.jsx +1 -3
- package/src/WaffleGrid/WaffleGrid.jsx +31 -27
- package/src/WebVideo/WebVideo.jsx +4 -6
- package/src/baseExports.js +27 -13
- package/src/index.js +46 -37
- package/src/server.js +1 -2
- package/src/shared/ConditionalWrapper/ConditionalWrapper.jsx +1 -3
- package/src/shared/FullBleedContent/FullBleedContent.jsx +26 -19
- package/src/shared/FullBleedContent/getFullBleedBorderRadius.js +1 -3
- package/src/shared/FullBleedContent/index.js +3 -8
- package/src/shared/FullBleedContent/useFullBleedContentProps.js +2 -5
- package/src/shared/VideoSplash/SplashButton/SplashButton.jsx +5 -7
- package/src/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.jsx +25 -25
- package/src/shared/VideoSplash/VideoSplash.jsx +7 -9
- package/src/shared/VideoSplash/helpers.js +1 -1
- package/src/utils/index.js +7 -7
- package/src/utils/isElementFocusable.js +1 -3
- package/src/utils/logger.js +0 -5
- package/src/utils/media.js +1 -1
- package/src/utils/renderStructuredContent.jsx +1 -3
- package/src/utils/scrollToAnchor.js +1 -3
- package/src/utils/ssr.js +1 -3
- package/src/utils/theming/get-theme-from-server.js +1 -1
- package/src/utils/theming/with-client-theme.jsx +1 -3
- package/src/utils/theming/with-server-theme.jsx +2 -4
- package/src/utils/transforms.js +0 -2
- package/src/utils/useOverlaidPosition.js +1 -3
- package/src/utils/useTypographyTheme.js +1 -3
- package/types/Autocomplete.d.ts +1 -3
- package/types/Badge.d.ts +1 -3
- package/types/BaseProvider.d.ts +1 -3
- package/types/BlockQuote.d.ts +1 -3
- package/types/Box.d.ts +1 -3
- package/types/BreadcrumbItem.d.ts +1 -3
- package/types/Breadcrumbs.d.ts +2 -4
- package/types/Callout.d.ts +1 -3
- package/types/Card.d.ts +1 -3
- package/types/Cell.d.ts +1 -3
- package/types/ControlBar.d.ts +1 -3
- package/types/Countdown.d.ts +1 -3
- package/types/DatePicker.d.ts +1 -3
- package/types/FileUpload.d.ts +1 -3
- package/types/Footnote.d.ts +1 -3
- package/types/FootnoteLink.d.ts +1 -3
- package/types/Listbox.d.ts +1 -3
- package/types/MiddleControlButton.d.ts +1 -3
- package/types/MultiSelectFilter.d.ts +1 -3
- package/types/PriceLockup.d.ts +1 -3
- package/types/QuantitySelector.d.ts +1 -3
- package/types/Ribbon.d.ts +1 -3
- package/types/Spinner.d.ts +1 -3
- package/types/Table.d.ts +1 -3
- package/types/Tooltip.d.ts +1 -3
- package/types/TooltipButton.d.ts +1 -3
- package/types/Typography.d.ts +1 -3
- package/types/Video.d.ts +1 -3
- package/types/VideoButton.d.ts +1 -3
- package/types/VideoMenu.d.ts +1 -3
- package/types/VideoProgressBar.d.ts +1 -3
- package/types/VolumeSlider.d.ts +1 -3
- package/types/WebVideo.d.ts +1 -3
- package/lib/cjs/Badge/index.js +0 -9
- package/lib/cjs/BlockQuote/index.js +0 -9
- package/lib/cjs/Breadcrumbs/index.js +0 -13
- package/lib/cjs/Callout/index.js +0 -9
- package/lib/cjs/Card/index.js +0 -9
- package/lib/cjs/Countdown/index.js +0 -9
- package/lib/cjs/DatePicker/index.js +0 -9
- package/lib/cjs/Disclaimer/index.js +0 -13
- package/lib/cjs/Footnote/index.js +0 -11
- package/lib/cjs/IconButton/index.js +0 -9
- package/lib/cjs/Image/index.js +0 -20
- package/lib/cjs/List/index.js +0 -17
- package/lib/cjs/NavigationBar/index.js +0 -11
- package/lib/cjs/OptimizeImage/index.js +0 -9
- package/lib/cjs/OrderedList/index.js +0 -17
- package/lib/cjs/Paragraph/index.js +0 -9
- package/lib/cjs/PreviewCard/index.js +0 -9
- package/lib/cjs/PriceLockup/index.js +0 -9
- package/lib/cjs/Progress/index.js +0 -11
- package/lib/cjs/QuantitySelector/index.js +0 -9
- package/lib/cjs/ResponsiveImage/index.js +0 -9
- package/lib/cjs/Ribbon/index.js +0 -9
- package/lib/cjs/SkeletonProvider/index.js +0 -9
- package/lib/cjs/Span/index.js +0 -9
- package/lib/cjs/Spinner/index.js +0 -9
- package/lib/cjs/StoryCard/index.js +0 -9
- package/lib/cjs/Table/index.js +0 -24
- package/lib/cjs/TermsAndConditions/index.js +0 -13
- package/lib/cjs/Testimonial/index.js +0 -9
- package/lib/cjs/Toast/index.js +0 -9
- package/lib/cjs/Video/index.js +0 -9
- package/lib/cjs/VideoPicker/index.js +0 -9
- package/lib/cjs/WaffleGrid/index.js +0 -9
- package/lib/cjs/WebVideo/index.js +0 -9
- package/lib/cjs/shared/ConditionalWrapper/index.js +0 -9
- package/lib/esm/Badge/index.js +0 -2
- package/lib/esm/BlockQuote/index.js +0 -2
- package/lib/esm/Breadcrumbs/index.js +0 -1
- package/lib/esm/Callout/index.js +0 -2
- package/lib/esm/Card/index.js +0 -2
- package/lib/esm/Countdown/index.js +0 -2
- package/lib/esm/DatePicker/index.js +0 -2
- package/lib/esm/Disclaimer/index.js +0 -1
- package/lib/esm/Footnote/index.js +0 -4
- package/lib/esm/IconButton/index.js +0 -2
- package/lib/esm/Image/index.js +0 -9
- package/lib/esm/List/index.js +0 -5
- package/lib/esm/NavigationBar/index.js +0 -4
- package/lib/esm/OptimizeImage/index.js +0 -2
- package/lib/esm/OrderedList/index.js +0 -5
- package/lib/esm/Paragraph/index.js +0 -2
- package/lib/esm/PreviewCard/index.js +0 -2
- package/lib/esm/PriceLockup/index.js +0 -2
- package/lib/esm/Progress/index.js +0 -4
- package/lib/esm/QuantitySelector/index.js +0 -2
- package/lib/esm/ResponsiveImage/index.js +0 -2
- package/lib/esm/Ribbon/index.js +0 -2
- package/lib/esm/SkeletonProvider/index.js +0 -2
- package/lib/esm/Span/index.js +0 -2
- package/lib/esm/Spinner/index.js +0 -2
- package/lib/esm/StoryCard/index.js +0 -2
- package/lib/esm/Table/index.js +0 -17
- package/lib/esm/TermsAndConditions/index.js +0 -1
- package/lib/esm/Testimonial/index.js +0 -2
- package/lib/esm/Toast/index.js +0 -2
- package/lib/esm/Video/index.js +0 -2
- package/lib/esm/VideoPicker/index.js +0 -2
- package/lib/esm/WaffleGrid/index.js +0 -2
- package/lib/esm/WebVideo/index.js +0 -2
- package/lib/esm/shared/ConditionalWrapper/index.js +0 -2
- package/src/Badge/index.js +0 -3
- package/src/BlockQuote/index.js +0 -3
- package/src/Breadcrumbs/index.js +0 -1
- package/src/Callout/index.js +0 -3
- package/src/Card/index.js +0 -3
- package/src/Countdown/index.js +0 -3
- package/src/DatePicker/index.js +0 -3
- package/src/Disclaimer/index.js +0 -1
- package/src/Footnote/index.js +0 -6
- package/src/IconButton/index.js +0 -3
- package/src/Image/index.js +0 -10
- package/src/List/index.js +0 -8
- package/src/NavigationBar/index.js +0 -6
- package/src/OptimizeImage/index.js +0 -3
- package/src/OrderedList/index.js +0 -8
- package/src/Paragraph/index.js +0 -3
- package/src/PreviewCard/index.js +0 -3
- package/src/PriceLockup/index.js +0 -3
- package/src/Progress/index.js +0 -6
- package/src/QuantitySelector/index.js +0 -3
- package/src/ResponsiveImage/index.js +0 -3
- package/src/Ribbon/index.js +0 -3
- package/src/SkeletonProvider/index.js +0 -3
- package/src/Span/index.js +0 -3
- package/src/Spinner/index.js +0 -3
- package/src/StoryCard/index.js +0 -3
- package/src/Table/index.js +0 -20
- package/src/TermsAndConditions/index.js +0 -1
- package/src/Testimonial/index.js +0 -3
- package/src/Toast/index.js +0 -3
- package/src/Video/index.js +0 -3
- package/src/VideoPicker/index.js +0 -3
- package/src/WaffleGrid/index.js +0 -3
- package/src/WebVideo/index.js +0 -3
- package/src/shared/ConditionalWrapper/index.js +0 -3
|
@@ -3,11 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
Object.defineProperty(exports, "FullBleedContent", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _FullBleedContent.FullBleedContent;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
7
12
|
Object.defineProperty(exports, "getFullBleedBorderRadius", {
|
|
8
13
|
enumerable: true,
|
|
9
14
|
get: function () {
|
|
10
|
-
return _getFullBleedBorderRadius.
|
|
15
|
+
return _getFullBleedBorderRadius.getFullBleedBorderRadius;
|
|
11
16
|
}
|
|
12
17
|
});
|
|
13
18
|
Object.defineProperty(exports, "getFullBleedPaddingSides", {
|
|
@@ -19,13 +24,9 @@ Object.defineProperty(exports, "getFullBleedPaddingSides", {
|
|
|
19
24
|
Object.defineProperty(exports, "useFullBleedContentProps", {
|
|
20
25
|
enumerable: true,
|
|
21
26
|
get: function () {
|
|
22
|
-
return _useFullBleedContentProps.
|
|
27
|
+
return _useFullBleedContentProps.useFullBleedContentProps;
|
|
23
28
|
}
|
|
24
29
|
});
|
|
25
|
-
var _FullBleedContent =
|
|
26
|
-
var _getFullBleedBorderRadius =
|
|
27
|
-
var _useFullBleedContentProps =
|
|
28
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
29
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
30
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
31
|
-
var _default = exports.default = _FullBleedContent.default;
|
|
30
|
+
var _FullBleedContent = require("./FullBleedContent");
|
|
31
|
+
var _getFullBleedBorderRadius = require("./getFullBleedBorderRadius");
|
|
32
|
+
var _useFullBleedContentProps = require("./useFullBleedContentProps");
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.useFullBleedContentProps = exports.getFullBleedPaddingSides = void 0;
|
|
7
7
|
var _componentsBase = require("@telus-uds/components-base");
|
|
8
8
|
const getContentStackDirection = fullBleedContentPosition => {
|
|
9
9
|
switch (fullBleedContentPosition) {
|
|
@@ -81,4 +81,4 @@ const useFullBleedContentProps = fullBleedContent => {
|
|
|
81
81
|
fullBleedPaddingSides
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
exports.useFullBleedContentProps = useFullBleedContentProps;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SplashButton = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _componentsBase = require("@telus-uds/components-base");
|
|
@@ -37,18 +37,18 @@ const ButtonContent = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
37
37
|
height: 64,
|
|
38
38
|
background: _ref => {
|
|
39
39
|
let {
|
|
40
|
-
buttonContentBackground
|
|
40
|
+
$buttonContentBackground
|
|
41
41
|
} = _ref;
|
|
42
|
-
return buttonContentBackground ?? 'none';
|
|
42
|
+
return $buttonContentBackground ?? 'none';
|
|
43
43
|
},
|
|
44
44
|
borderRadius: '100%',
|
|
45
45
|
transition: 'background 0.2s ease-in-out',
|
|
46
46
|
[`${ButtonContainer}:hover &`]: {
|
|
47
47
|
background: _ref2 => {
|
|
48
48
|
let {
|
|
49
|
-
buttonContentChildrenBackground
|
|
49
|
+
$buttonContentChildrenBackground
|
|
50
50
|
} = _ref2;
|
|
51
|
-
return buttonContentChildrenBackground;
|
|
51
|
+
return $buttonContentChildrenBackground;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
});
|
|
@@ -73,8 +73,8 @@ const SplashButton = _ref3 => {
|
|
|
73
73
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonContainer, {
|
|
74
74
|
"aria-label": ariaLabel,
|
|
75
75
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonContent, {
|
|
76
|
-
|
|
77
|
-
buttonContentChildrenBackground: buttonContentChildrenBackground,
|
|
76
|
+
$buttonContentBackground: themeTokens.buttonContentBackground,
|
|
77
|
+
$buttonContentChildrenBackground: buttonContentChildrenBackground,
|
|
78
78
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PlayIcon, {
|
|
79
79
|
size: 27,
|
|
80
80
|
color: playIconColor
|
|
@@ -82,10 +82,10 @@ const SplashButton = _ref3 => {
|
|
|
82
82
|
})
|
|
83
83
|
});
|
|
84
84
|
};
|
|
85
|
+
exports.SplashButton = SplashButton;
|
|
85
86
|
SplashButton.propTypes = {
|
|
86
87
|
videoLength: _propTypes.default.number,
|
|
87
88
|
tokens: _propTypes.default.object,
|
|
88
89
|
variant: _propTypes.default.object,
|
|
89
90
|
copy: _propTypes.default.oneOf(['en', 'fr'])
|
|
90
|
-
};
|
|
91
|
-
var _default = exports.default = SplashButton;
|
|
91
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SplashButtonWithDetails = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _componentsBase = require("@telus-uds/components-base");
|
|
@@ -29,63 +29,63 @@ const ButtonContent = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
29
29
|
})({
|
|
30
30
|
background: _ref => {
|
|
31
31
|
let {
|
|
32
|
-
buttonBackground
|
|
32
|
+
$buttonBackground
|
|
33
33
|
} = _ref;
|
|
34
|
-
return buttonBackground;
|
|
34
|
+
return $buttonBackground;
|
|
35
35
|
},
|
|
36
36
|
border: _ref2 => {
|
|
37
37
|
let {
|
|
38
|
-
buttonBorderColor
|
|
38
|
+
$buttonBorderColor
|
|
39
39
|
} = _ref2;
|
|
40
|
-
return `1px solid ${buttonBorderColor}`;
|
|
40
|
+
return `1px solid ${$buttonBorderColor}`;
|
|
41
41
|
},
|
|
42
42
|
borderRadius: _ref3 => {
|
|
43
43
|
let {
|
|
44
|
-
buttonRadius
|
|
44
|
+
$buttonRadius
|
|
45
45
|
} = _ref3;
|
|
46
|
-
return `${buttonRadius}px`;
|
|
46
|
+
return `${$buttonRadius}px`;
|
|
47
47
|
},
|
|
48
48
|
position: 'absolute',
|
|
49
49
|
left: _ref4 => {
|
|
50
50
|
let {
|
|
51
|
-
buttonLeftPosition
|
|
51
|
+
$buttonLeftPosition
|
|
52
52
|
} = _ref4;
|
|
53
|
-
return `${buttonLeftPosition}px`;
|
|
53
|
+
return `${$buttonLeftPosition}px`;
|
|
54
54
|
},
|
|
55
55
|
bottom: _ref5 => {
|
|
56
56
|
let {
|
|
57
|
-
buttonBottomPosition
|
|
57
|
+
$buttonBottomPosition
|
|
58
58
|
} = _ref5;
|
|
59
|
-
return `${buttonBottomPosition}px`;
|
|
59
|
+
return `${$buttonBottomPosition}px`;
|
|
60
60
|
},
|
|
61
61
|
boxSizing: 'border-box',
|
|
62
62
|
display: 'flex',
|
|
63
63
|
alignItems: 'center',
|
|
64
64
|
minHeight: _ref6 => {
|
|
65
65
|
let {
|
|
66
|
-
buttonMinHeight
|
|
66
|
+
$buttonMinHeight
|
|
67
67
|
} = _ref6;
|
|
68
|
-
return `${buttonMinHeight}px`;
|
|
68
|
+
return `${$buttonMinHeight}px`;
|
|
69
69
|
},
|
|
70
70
|
paddingRight: _ref7 => {
|
|
71
71
|
let {
|
|
72
|
-
buttonPaddingLeft
|
|
72
|
+
$buttonPaddingLeft
|
|
73
73
|
} = _ref7;
|
|
74
|
-
return `${buttonPaddingLeft}px`;
|
|
74
|
+
return `${$buttonPaddingLeft}px`;
|
|
75
75
|
},
|
|
76
76
|
paddingLeft: _ref8 => {
|
|
77
77
|
let {
|
|
78
|
-
buttonPaddingRight
|
|
78
|
+
$buttonPaddingRight
|
|
79
79
|
} = _ref8;
|
|
80
|
-
return `${buttonPaddingRight}px`;
|
|
80
|
+
return `${$buttonPaddingRight}px`;
|
|
81
81
|
},
|
|
82
82
|
transition: 'background 0.2s ease-in-out',
|
|
83
83
|
[`${ButtonContainer}:hover &`]: {
|
|
84
84
|
background: _ref9 => {
|
|
85
85
|
let {
|
|
86
|
-
buttonContentChildrenBackground
|
|
86
|
+
$buttonContentChildrenBackground
|
|
87
87
|
} = _ref9;
|
|
88
|
-
return buttonContentChildrenBackground;
|
|
88
|
+
return $buttonContentChildrenBackground;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
});
|
|
@@ -98,11 +98,11 @@ const PlayIconContainer = /*#__PURE__*/_styledComponents.default.div.withConfig(
|
|
|
98
98
|
alignItems: 'center',
|
|
99
99
|
width: 32,
|
|
100
100
|
height: 32,
|
|
101
|
-
background:
|
|
101
|
+
background: _ref0 => {
|
|
102
102
|
let {
|
|
103
|
-
playIconContainerBackground
|
|
104
|
-
} =
|
|
105
|
-
return playIconContainerBackground ?? 'none';
|
|
103
|
+
$playIconContainerBackground
|
|
104
|
+
} = _ref0;
|
|
105
|
+
return $playIconContainerBackground ?? 'none';
|
|
106
106
|
},
|
|
107
107
|
borderRadius: '100%',
|
|
108
108
|
transition: 'background 0.2s ease-in-out'
|
|
@@ -114,30 +114,30 @@ const DetailsContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
114
114
|
display: 'flex',
|
|
115
115
|
flexDirection: 'column',
|
|
116
116
|
alignItems: 'flex-start',
|
|
117
|
-
paddingLeft:
|
|
117
|
+
paddingLeft: _ref1 => {
|
|
118
118
|
let {
|
|
119
|
-
detailsContainerPadding
|
|
120
|
-
} =
|
|
121
|
-
return `${detailsContainerPadding}px`;
|
|
119
|
+
$detailsContainerPadding
|
|
120
|
+
} = _ref1;
|
|
121
|
+
return `${$detailsContainerPadding}px`;
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
|
-
const selectPlayIconContainerTokens =
|
|
124
|
+
const selectPlayIconContainerTokens = _ref10 => {
|
|
125
125
|
let {
|
|
126
126
|
playIconContainerBackground
|
|
127
|
-
} =
|
|
127
|
+
} = _ref10;
|
|
128
128
|
return {
|
|
129
|
-
playIconContainerBackground
|
|
129
|
+
$playIconContainerBackground: playIconContainerBackground
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
|
-
const selectDetailsContainerTokens =
|
|
132
|
+
const selectDetailsContainerTokens = _ref11 => {
|
|
133
133
|
let {
|
|
134
134
|
detailsContainerPadding
|
|
135
|
-
} =
|
|
135
|
+
} = _ref11;
|
|
136
136
|
return {
|
|
137
|
-
detailsContainerPadding
|
|
137
|
+
$detailsContainerPadding: detailsContainerPadding
|
|
138
138
|
};
|
|
139
139
|
};
|
|
140
|
-
const selectButtonContentTokens =
|
|
140
|
+
const selectButtonContentTokens = _ref12 => {
|
|
141
141
|
let {
|
|
142
142
|
buttonBackground,
|
|
143
143
|
buttonBorderColor,
|
|
@@ -147,36 +147,36 @@ const selectButtonContentTokens = _ref14 => {
|
|
|
147
147
|
buttonMinHeight,
|
|
148
148
|
buttonPaddingLeft,
|
|
149
149
|
buttonPaddingRight
|
|
150
|
-
} =
|
|
150
|
+
} = _ref12;
|
|
151
151
|
return {
|
|
152
|
-
buttonBackground,
|
|
153
|
-
buttonBorderColor,
|
|
154
|
-
buttonRadius,
|
|
155
|
-
buttonLeftPosition,
|
|
156
|
-
buttonBottomPosition,
|
|
157
|
-
buttonMinHeight,
|
|
158
|
-
buttonPaddingLeft,
|
|
159
|
-
buttonPaddingRight
|
|
152
|
+
$buttonBackground: buttonBackground,
|
|
153
|
+
$buttonBorderColor: buttonBorderColor,
|
|
154
|
+
$buttonRadius: buttonRadius,
|
|
155
|
+
$buttonLeftPosition: buttonLeftPosition,
|
|
156
|
+
$buttonBottomPosition: buttonBottomPosition,
|
|
157
|
+
$buttonMinHeight: buttonMinHeight,
|
|
158
|
+
$buttonPaddingLeft: buttonPaddingLeft,
|
|
159
|
+
$buttonPaddingRight: buttonPaddingRight
|
|
160
160
|
};
|
|
161
161
|
};
|
|
162
|
-
const getLabelTokens =
|
|
162
|
+
const getLabelTokens = _ref13 => {
|
|
163
163
|
let {
|
|
164
164
|
labelFontName: fontName,
|
|
165
165
|
labelFontWeight: fontWeight
|
|
166
|
-
} =
|
|
166
|
+
} = _ref13;
|
|
167
167
|
return {
|
|
168
168
|
fontName,
|
|
169
169
|
fontWeight
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
|
-
const SplashButtonWithDetails =
|
|
172
|
+
const SplashButtonWithDetails = _ref14 => {
|
|
173
173
|
let {
|
|
174
174
|
label,
|
|
175
175
|
tokens,
|
|
176
176
|
variant,
|
|
177
177
|
copy,
|
|
178
178
|
videoLength
|
|
179
|
-
} =
|
|
179
|
+
} = _ref14;
|
|
180
180
|
const {
|
|
181
181
|
buttonContentChildrenBackground
|
|
182
182
|
} = (0, _componentsBase.useThemeTokens)('SplashButtonWithDetails', tokens, variant, {
|
|
@@ -193,7 +193,7 @@ const SplashButtonWithDetails = _ref16 => {
|
|
|
193
193
|
"aria-label": ariaLabel,
|
|
194
194
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(ButtonContent, {
|
|
195
195
|
...selectButtonContentTokens(themeTokens),
|
|
196
|
-
buttonContentChildrenBackground: buttonContentChildrenBackground,
|
|
196
|
+
$buttonContentChildrenBackground: buttonContentChildrenBackground,
|
|
197
197
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(PlayIconContainer, {
|
|
198
198
|
...selectPlayIconContainerTokens(themeTokens),
|
|
199
199
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PlayIcon, {
|
|
@@ -219,11 +219,11 @@ const SplashButtonWithDetails = _ref16 => {
|
|
|
219
219
|
})
|
|
220
220
|
});
|
|
221
221
|
};
|
|
222
|
+
exports.SplashButtonWithDetails = SplashButtonWithDetails;
|
|
222
223
|
SplashButtonWithDetails.propTypes = {
|
|
223
224
|
label: _propTypes.default.string,
|
|
224
225
|
tokens: _propTypes.default.object,
|
|
225
226
|
variant: _propTypes.default.object,
|
|
226
227
|
videoLength: _propTypes.default.number,
|
|
227
228
|
copy: _propTypes.default.oneOf(['en', 'fr'])
|
|
228
|
-
};
|
|
229
|
-
var _default = exports.default = SplashButtonWithDetails;
|
|
229
|
+
};
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.VideoSplash = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _componentsBase = require("@telus-uds/components-base");
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
11
|
var _systemConstants = require("@telus-uds/system-constants");
|
|
12
|
-
var _SplashButton =
|
|
13
|
-
var _SplashButtonWithDetails =
|
|
14
|
-
var _videoText =
|
|
12
|
+
var _SplashButton = require("./SplashButton/SplashButton");
|
|
13
|
+
var _SplashButtonWithDetails = require("./SplashButtonWithDetails/SplashButtonWithDetails");
|
|
14
|
+
var _videoText = require("../../Video/videoText");
|
|
15
15
|
var _utils = require("../../utils");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -21,10 +21,10 @@ const SplashBackground = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
21
21
|
componentId: "components-web__sc-1ejxt6-0"
|
|
22
22
|
})(_ref => {
|
|
23
23
|
let {
|
|
24
|
-
videoPoster
|
|
24
|
+
$videoPoster
|
|
25
25
|
} = _ref;
|
|
26
26
|
return {
|
|
27
|
-
backgroundImage: `url(${videoPoster})`,
|
|
27
|
+
backgroundImage: `url(${$videoPoster})`,
|
|
28
28
|
backgroundSize: 'cover',
|
|
29
29
|
backgroundPosition: 'center',
|
|
30
30
|
position: 'absolute',
|
|
@@ -46,21 +46,22 @@ const VideoSplash = _ref2 => {
|
|
|
46
46
|
} = _ref2;
|
|
47
47
|
const viewport = (0, _componentsBase.useViewport)();
|
|
48
48
|
const showDetails = !simpleMode && viewport !== _systemConstants.viewports.xs;
|
|
49
|
-
const label = _videoText.
|
|
49
|
+
const label = _videoText.videoText[copy].watch;
|
|
50
50
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SplashBackground, {
|
|
51
51
|
...selectProps(rest),
|
|
52
52
|
onClick: onClick,
|
|
53
|
-
videoPoster: poster,
|
|
54
|
-
children: showDetails ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_SplashButtonWithDetails.
|
|
53
|
+
$videoPoster: poster,
|
|
54
|
+
children: showDetails ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_SplashButtonWithDetails.SplashButtonWithDetails, {
|
|
55
55
|
videoLength: videoLength,
|
|
56
56
|
copy: copy,
|
|
57
57
|
label: label
|
|
58
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_SplashButton.
|
|
58
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_SplashButton.SplashButton, {
|
|
59
59
|
videoLength: videoLength,
|
|
60
60
|
copy: copy
|
|
61
61
|
})
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
|
+
exports.VideoSplash = VideoSplash;
|
|
64
65
|
VideoSplash.propTypes = {
|
|
65
66
|
...selectedSystemPropTypes,
|
|
66
67
|
onClick: _propTypes.default.func,
|
|
@@ -68,5 +69,4 @@ VideoSplash.propTypes = {
|
|
|
68
69
|
videoLength: _propTypes.default.number.isRequired,
|
|
69
70
|
simpleMode: _propTypes.default.bool,
|
|
70
71
|
copy: _propTypes.default.oneOf(['en', 'fr'])
|
|
71
|
-
};
|
|
72
|
-
var _default = exports.default = VideoSplash;
|
|
72
|
+
};
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getTimestamp = exports.getAriaLabel = void 0;
|
|
7
|
-
var _videoText =
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
|
+
var _videoText = require("../../Video/videoText");
|
|
9
8
|
const getTimestamp = (videoLength, copy) => {
|
|
10
9
|
const minutes = Math.floor(videoLength / 60);
|
|
11
10
|
const seconds = Math.ceil(videoLength % 60);
|
|
@@ -24,7 +23,7 @@ const getAriaLabel = (timestamp, copy) => {
|
|
|
24
23
|
minutes,
|
|
25
24
|
seconds
|
|
26
25
|
} = timestamp;
|
|
27
|
-
const text = _videoText.
|
|
26
|
+
const text = _videoText.videoText[copy];
|
|
28
27
|
const minutesText = `${minutes} ${minutes !== 1 ? text.minutes : text.minute}`;
|
|
29
28
|
const secondsText = `${seconds} ${seconds !== 1 ? text.seconds : text.second}`;
|
|
30
29
|
return text.ariaLabel.replace('{minutes}', minutesText).replace('{seconds}', secondsText);
|
package/lib/cjs/utils/index.js
CHANGED
|
@@ -24,31 +24,31 @@ Object.defineProperty(exports, "htmlAttrs", {
|
|
|
24
24
|
Object.defineProperty(exports, "isElementFocusable", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function () {
|
|
27
|
-
return _isElementFocusable.
|
|
27
|
+
return _isElementFocusable.isElementFocusable;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "media", {
|
|
31
31
|
enumerable: true,
|
|
32
32
|
get: function () {
|
|
33
|
-
return _media.
|
|
33
|
+
return _media.media;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "renderStructuredContent", {
|
|
37
37
|
enumerable: true,
|
|
38
38
|
get: function () {
|
|
39
|
-
return _renderStructuredContent.
|
|
39
|
+
return _renderStructuredContent.renderStructuredContent;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "scrollToAnchor", {
|
|
43
43
|
enumerable: true,
|
|
44
44
|
get: function () {
|
|
45
|
-
return _scrollToAnchor.
|
|
45
|
+
return _scrollToAnchor.scrollToAnchor;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "ssrStyles", {
|
|
49
49
|
enumerable: true,
|
|
50
50
|
get: function () {
|
|
51
|
-
return _ssr.
|
|
51
|
+
return _ssr.ssrStyles;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "transformGradient", {
|
|
@@ -60,13 +60,13 @@ Object.defineProperty(exports, "transformGradient", {
|
|
|
60
60
|
Object.defineProperty(exports, "useOverlaidPosition", {
|
|
61
61
|
enumerable: true,
|
|
62
62
|
get: function () {
|
|
63
|
-
return _useOverlaidPosition.
|
|
63
|
+
return _useOverlaidPosition.useOverlaidPosition;
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "useTypographyTheme", {
|
|
67
67
|
enumerable: true,
|
|
68
68
|
get: function () {
|
|
69
|
-
return _useTypographyTheme.
|
|
69
|
+
return _useTypographyTheme.useTypographyTheme;
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "warn", {
|
|
@@ -78,11 +78,10 @@ Object.defineProperty(exports, "warn", {
|
|
|
78
78
|
var _componentsBase = require("@telus-uds/components-base");
|
|
79
79
|
var _logger = require("./logger");
|
|
80
80
|
var _transforms = require("./transforms");
|
|
81
|
-
var _useTypographyTheme =
|
|
82
|
-
var _media =
|
|
83
|
-
var _ssr =
|
|
84
|
-
var _isElementFocusable =
|
|
85
|
-
var _renderStructuredContent =
|
|
86
|
-
var _useOverlaidPosition =
|
|
87
|
-
var _scrollToAnchor =
|
|
88
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
81
|
+
var _useTypographyTheme = require("./useTypographyTheme");
|
|
82
|
+
var _media = require("./media");
|
|
83
|
+
var _ssr = require("./ssr");
|
|
84
|
+
var _isElementFocusable = require("./isElementFocusable");
|
|
85
|
+
var _renderStructuredContent = require("./renderStructuredContent");
|
|
86
|
+
var _useOverlaidPosition = require("./useOverlaidPosition");
|
|
87
|
+
var _scrollToAnchor = require("./scrollToAnchor");
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.isElementFocusable = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* Returns focusable elements inside of the Footnote
|
|
9
9
|
*/
|
|
@@ -11,4 +11,4 @@ const isElementFocusable = element => {
|
|
|
11
11
|
const focusableElements = `a[href], button, textarea, input, select, form, label, audio, video, source, track, canvas, rect, polygon, iframe[data-src], [tabindex]:not([tabindex="-1"]), [contenteditable]`;
|
|
12
12
|
return element.matches(focusableElements) && !element.hasAttribute('disabled') && !element.matches('[tabindex="-1"]');
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
exports.isElementFocusable = isElementFocusable;
|
package/lib/cjs/utils/logger.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.warn = exports.deprecate =
|
|
6
|
+
exports.warn = exports.deprecate = void 0;
|
|
7
7
|
const deprecate = (componentName, message) => {
|
|
8
8
|
if (process.env.NODE_ENV === 'production') {
|
|
9
9
|
return;
|
|
@@ -17,8 +17,4 @@ const warn = (componentName, message) => {
|
|
|
17
17
|
}
|
|
18
18
|
console.warn(`[Allium] ${componentName}: ${message}`);
|
|
19
19
|
};
|
|
20
|
-
exports.warn = warn;
|
|
21
|
-
var _default = exports.default = {
|
|
22
|
-
deprecate,
|
|
23
|
-
warn
|
|
24
|
-
};
|
|
20
|
+
exports.warn = warn;
|
package/lib/cjs/utils/media.js
CHANGED
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.renderStructuredContent = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _componentsBase = require("@telus-uds/components-base");
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function
|
|
11
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
11
|
/**
|
|
13
12
|
* Takes a string content and marks up all the links in it by wrapping them
|
|
14
13
|
* in `Link` component.
|
|
@@ -68,4 +67,4 @@ const renderStructuredContent = content => {
|
|
|
68
67
|
}
|
|
69
68
|
return generateBreaks(generateLinks(content));
|
|
70
69
|
};
|
|
71
|
-
|
|
70
|
+
exports.renderStructuredContent = renderStructuredContent;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.scrollToAnchor = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* Scrolls smoothly to the anchor element specified by the href.
|
|
9
9
|
*
|
|
@@ -22,4 +22,4 @@ const scrollToAnchor = (href, event, onAfterScroll) => {
|
|
|
22
22
|
onAfterScroll(event);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
exports.scrollToAnchor = scrollToAnchor;
|
package/lib/cjs/utils/ssr.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ssrStyles = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
8
|
var _componentsBase = require("@telus-uds/components-base");
|
|
9
9
|
/**
|
|
@@ -47,4 +47,4 @@ const ssrStyles = function () {
|
|
|
47
47
|
collectStyles: renderedApp => collectStyles(sheet.collectStyles(renderedApp))
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
|
-
|
|
50
|
+
exports.ssrStyles = ssrStyles;
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
function
|
|
8
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
6
|
+
exports.getTheme = getTheme;
|
|
7
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
9
8
|
const cachedTheme = {};
|
|
10
9
|
const theme = process.env.UDS_THEME;
|
|
11
10
|
async function importTheme(componentName) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.withClientTheme = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _componentsBase = require("@telus-uds/components-base");
|
|
@@ -28,4 +28,4 @@ const withClientTheme = Component => {
|
|
|
28
28
|
};
|
|
29
29
|
return UdsStyledComponent;
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
exports.withClientTheme = withClientTheme;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.withServerTheme = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _server = require("@telus-uds/components-base/server");
|
|
10
|
-
var _getThemeFromServer =
|
|
10
|
+
var _getThemeFromServer = require("./get-theme-from-server");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
const withServerTheme = (Component, componentName) => {
|
|
@@ -17,7 +17,7 @@ const withServerTheme = (Component, componentName) => {
|
|
|
17
17
|
variant,
|
|
18
18
|
...props
|
|
19
19
|
} = _ref;
|
|
20
|
-
const componentTheme = await (0, _getThemeFromServer.
|
|
20
|
+
const componentTheme = await (0, _getThemeFromServer.getTheme)(componentName);
|
|
21
21
|
const themeTokens = (0, _server.getThemeTokens)(componentTheme, tokenOverrides, variant);
|
|
22
22
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|
|
23
23
|
theme: themeTokens,
|
|
@@ -30,4 +30,4 @@ const withServerTheme = (Component, componentName) => {
|
|
|
30
30
|
};
|
|
31
31
|
return UdsStyledComponent;
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
exports.withServerTheme = withServerTheme;
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.transformGradient =
|
|
6
|
+
exports.transformGradient = void 0;
|
|
7
7
|
const transformGradient = gradient => `${gradient.type}-gradient(${gradient.angle}deg, ${gradient.stops[0].color} ${gradient.stops[0].stop * 100}%, ${gradient.stops[1].color} ${gradient.stops[1].stop * 100}%)`;
|
|
8
|
-
exports.transformGradient = transformGradient;
|
|
9
|
-
var _default = exports.default = {
|
|
10
|
-
transformGradient
|
|
11
|
-
};
|
|
8
|
+
exports.transformGradient = transformGradient;
|