@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
package/lib/esm/baseExports.js
CHANGED
|
@@ -5,7 +5,7 @@ export {
|
|
|
5
5
|
/**
|
|
6
6
|
* Most base components should be re-exported as-is.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
A11yInfoProvider, A11yText, ActionCard, ActivityIndicator, Autocomplete, BaseProvider, Box, Button, ButtonLink, ButtonGroup, ButtonDropdown, CardGroup, Carousel, CarouselItem, CarouselTabs, CarouselProvider, ViewportProvider, ThemeProvider, Checkbox, CheckboxGroup, ColourToggle, Divider, DownloadApp, ExpandCollapse, ExpandCollapseAccordion, ExpandCollapsePanel, ExpandCollapseMini, Feedback, FileUpload, FlexGrid, FlexGridCol, FlexGridRow, Icon, InputLabel, InputSupports, ChevronLink, Link, TextButton, Listbox, ListboxOverlay, Modal, MultiSelectFilter, Notification, Pagination, PaginationPageButton, PaginationPageButtonBase, Portal, QuickLinks, QuickLinksItem, QuickLinksFeature, QuickLinksFeatureItem, Radio, RadioGroup, RadioCard, RadioCardGroup, Responsive, Search, Select, SelectItem, SelectGroup, Shortcuts, ShortcutsItem, SideNav, SideNavItem, SideNavItemsGroup, Skeleton, SkipLink, Spacer, StackView, StackWrap, Status, StepTracker, TabBar, TabBarItem, Tabs, Tags, TextArea, TextInput, Timeline, ToggleSwitch, ToggleSwitchGroup, TooltipButton, Tooltip, Typography, Validator,
|
|
9
9
|
/*
|
|
10
10
|
* Most utilities exported from @telus-uds/components-base are for building systems, not apps.
|
|
11
11
|
* Re-export only those utilities with a stable API and known use cases within apps / pages.
|
package/lib/esm/index.js
CHANGED
|
@@ -1,42 +1,51 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
export
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
3
|
+
export { Badge } from './Badge/Badge';
|
|
4
|
+
export { OrderedListItem } from './OrderedList/OrderedListItem';
|
|
5
|
+
export { OrderedList } from './OrderedList/OrderedList';
|
|
6
|
+
export { PreviewCard, PreviewCardBase } from './PreviewCard/PreviewCard';
|
|
7
|
+
export { PreviewCardAuthorDate } from './PreviewCard/PreviewCardAuthorDate';
|
|
8
|
+
export { ResponsiveImage } from './ResponsiveImage/ResponsiveImage';
|
|
9
|
+
export { Ribbon } from './Ribbon/Ribbon';
|
|
10
|
+
export { Countdown } from './Countdown/Countdown';
|
|
11
|
+
export { DatePicker } from './DatePicker/DatePicker';
|
|
12
|
+
export { Paragraph } from './Paragraph/Paragraph';
|
|
13
|
+
export { Span } from './Span/Span';
|
|
14
|
+
export { Callout } from './Callout/Callout';
|
|
15
|
+
export { PriceLockup } from './PriceLockup/PriceLockup';
|
|
16
|
+
export { Footnote } from './Footnote/Footnote';
|
|
17
|
+
export { FootnoteLink } from './Footnote/FootnoteLink';
|
|
18
|
+
export { QuantitySelector } from './QuantitySelector/QuantitySelector';
|
|
19
|
+
export { IconButton } from './IconButton/IconButton';
|
|
20
|
+
export { Image, DefaultImage } from './Image/Image';
|
|
19
21
|
export { transformGradient } from './utils';
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
22
|
+
export { Breadcrumbs } from './Breadcrumbs/Breadcrumbs';
|
|
23
|
+
export { BreadcrumbItem } from './Breadcrumbs/BreadcrumbItem';
|
|
24
|
+
export { BlockQuote } from './BlockQuote/BlockQuote';
|
|
25
|
+
export { OptimizeImage } from './OptimizeImage/OptimizeImage';
|
|
26
|
+
export { Testimonial } from './Testimonial/Testimonial';
|
|
27
|
+
export { Toast } from './Toast/Toast';
|
|
28
|
+
export { Table } from './Table/Table';
|
|
29
|
+
export { TableRow } from './Table/TableRow';
|
|
30
|
+
export { TableCell } from './Table/TableCell';
|
|
31
|
+
export { TableSubHeading } from './Table/TableSubHeading';
|
|
32
|
+
export { TableHeader } from './Table/TableHeader';
|
|
33
|
+
export { TableBody } from './Table/TableBody';
|
|
34
|
+
export { WebVideo } from './WebVideo/WebVideo';
|
|
35
|
+
export { WaffleGrid } from './WaffleGrid/WaffleGrid';
|
|
36
|
+
export { Spinner } from './Spinner/Spinner';
|
|
37
|
+
export { VideoPicker } from './VideoPicker/VideoPicker';
|
|
38
|
+
export { Video } from './Video/Video';
|
|
39
|
+
export { StoryCard, StoryCardBase } from './StoryCard/StoryCard';
|
|
40
|
+
export { Disclaimer } from './Disclaimer/Disclaimer';
|
|
41
|
+
export { Card } from './Card/Card';
|
|
42
|
+
export { List } from './List/List';
|
|
43
|
+
export { ListItem } from './List/ListItem';
|
|
44
|
+
export { TermsAndConditions } from './TermsAndConditions/TermsAndConditions';
|
|
45
|
+
export { NavigationBar } from './NavigationBar/NavigationBar';
|
|
46
|
+
export { NavigationItem } from './NavigationBar/NavigationItem';
|
|
47
|
+
export { Progress } from '@telus-uds/components-base';
|
|
48
|
+
export { ProgressBar } from './Progress/ProgressBar';
|
|
49
|
+
export { SkeletonProvider } from './SkeletonProvider/SkeletonProvider';
|
|
41
50
|
export { ssrStyles } from './utils';
|
|
42
51
|
export * from './baseExports';
|
package/lib/esm/server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
const ConditionalWrapper = _ref => {
|
|
4
|
+
export const ConditionalWrapper = _ref => {
|
|
5
5
|
let {
|
|
6
6
|
children,
|
|
7
7
|
condition,
|
|
@@ -18,5 +18,4 @@ ConditionalWrapper.propTypes = {
|
|
|
18
18
|
condition: PropTypes.bool,
|
|
19
19
|
WrapperComponent: PropTypes.elementType,
|
|
20
20
|
wrapperProps: PropTypes.object
|
|
21
|
-
};
|
|
22
|
-
export default ConditionalWrapper;
|
|
21
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import ResponsiveImage from '../../ResponsiveImage';
|
|
4
|
+
import { ResponsiveImage } from '../../ResponsiveImage/ResponsiveImage';
|
|
5
5
|
|
|
6
6
|
// Interactive overlay opacity constants
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -41,23 +41,23 @@ const FullBleedContentContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
41
41
|
componentId: "components-web__sc-1130ea5-0"
|
|
42
42
|
})(_ref2 => {
|
|
43
43
|
let {
|
|
44
|
-
borderBottomLeftRadius,
|
|
45
|
-
borderBottomRightRadius,
|
|
46
|
-
borderTopLeftRadius,
|
|
47
|
-
borderTopRightRadius,
|
|
48
|
-
opacity,
|
|
49
|
-
transform,
|
|
50
|
-
hasCardState
|
|
44
|
+
$borderBottomLeftRadius,
|
|
45
|
+
$borderBottomRightRadius,
|
|
46
|
+
$borderTopLeftRadius,
|
|
47
|
+
$borderTopRightRadius,
|
|
48
|
+
$opacity,
|
|
49
|
+
$transform,
|
|
50
|
+
$hasCardState
|
|
51
51
|
} = _ref2;
|
|
52
52
|
return {
|
|
53
|
-
position: hasCardState ? 'relative' : 'static',
|
|
53
|
+
position: $hasCardState ? 'relative' : 'static',
|
|
54
54
|
overflow: 'hidden',
|
|
55
|
-
borderBottomLeftRadius,
|
|
56
|
-
borderBottomRightRadius,
|
|
57
|
-
borderTopLeftRadius,
|
|
58
|
-
borderTopRightRadius,
|
|
59
|
-
opacity,
|
|
60
|
-
transform,
|
|
55
|
+
borderBottomLeftRadius: $borderBottomLeftRadius,
|
|
56
|
+
borderBottomRightRadius: $borderBottomRightRadius,
|
|
57
|
+
borderTopLeftRadius: $borderTopLeftRadius,
|
|
58
|
+
borderTopRightRadius: $borderTopRightRadius,
|
|
59
|
+
opacity: $opacity,
|
|
60
|
+
transform: $transform,
|
|
61
61
|
transition: 'opacity 0.2s ease, transform 0.2s ease'
|
|
62
62
|
};
|
|
63
63
|
});
|
|
@@ -88,7 +88,7 @@ const InteractiveOverlay = /*#__PURE__*/styled.div.withConfig({
|
|
|
88
88
|
* a number of sources corresponding to the `ResponsiveImage` component API,
|
|
89
89
|
* or a custom component.
|
|
90
90
|
*/
|
|
91
|
-
const FullBleedContent = _ref4 => {
|
|
91
|
+
export const FullBleedContent = _ref4 => {
|
|
92
92
|
let {
|
|
93
93
|
borderRadius,
|
|
94
94
|
content,
|
|
@@ -103,9 +103,15 @@ const FullBleedContent = _ref4 => {
|
|
|
103
103
|
overlayOpacity = OVERLAY_OPACITY_HOVER;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
+
const borderRadiusStyles = borderRadius ? {
|
|
107
|
+
$borderBottomLeftRadius: borderRadius.borderBottomLeftRadius,
|
|
108
|
+
$borderBottomRightRadius: borderRadius.borderBottomRightRadius,
|
|
109
|
+
$borderTopLeftRadius: borderRadius.borderTopLeftRadius,
|
|
110
|
+
$borderTopRightRadius: borderRadius.borderTopRightRadius
|
|
111
|
+
} : {};
|
|
106
112
|
return /*#__PURE__*/_jsxs(FullBleedContentContainer, {
|
|
107
|
-
...
|
|
108
|
-
hasCardState: !!cardState,
|
|
113
|
+
...borderRadiusStyles,
|
|
114
|
+
$hasCardState: !!cardState,
|
|
109
115
|
children: [content ?? /*#__PURE__*/_jsx(ResponsiveImage, {
|
|
110
116
|
...selectFullBleedContentProps(rest)
|
|
111
117
|
}), cardState && /*#__PURE__*/_jsx(InteractiveOverlay, {
|
|
@@ -150,5 +156,4 @@ FullBleedContent.propTypes = {
|
|
|
150
156
|
xsSrc: PropTypes.string,
|
|
151
157
|
smSrc: PropTypes.string,
|
|
152
158
|
fallbackSrc: PropTypes.string
|
|
153
|
-
};
|
|
154
|
-
export default FullBleedContent;
|
|
159
|
+
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @param {boolean} hasFooter
|
|
11
11
|
* @returns
|
|
12
12
|
*/
|
|
13
|
-
const getFullBleedBorderRadius = function (borderRadius, position) {
|
|
13
|
+
export const getFullBleedBorderRadius = function (borderRadius, position) {
|
|
14
14
|
let hasFooter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
15
15
|
const innerBorderRadius = {
|
|
16
16
|
borderBottomLeftRadius: 0,
|
|
@@ -51,5 +51,4 @@ const getFullBleedBorderRadius = function (borderRadius, position) {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
return innerBorderRadius;
|
|
54
|
-
};
|
|
55
|
-
export default getFullBleedBorderRadius;
|
|
54
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export {
|
|
4
|
-
export { default as useFullBleedContentProps, getFullBleedPaddingSides } from './useFullBleedContentProps';
|
|
1
|
+
export { FullBleedContent } from './FullBleedContent';
|
|
2
|
+
export { getFullBleedBorderRadius } from './getFullBleedBorderRadius';
|
|
3
|
+
export { useFullBleedContentProps, getFullBleedPaddingSides } from './useFullBleedContentProps';
|
|
@@ -34,7 +34,7 @@ const getContentStackAlign = fullBleedContentAlign => {
|
|
|
34
34
|
* @param {string} position - 'top' | 'bottom' | 'left' | 'right' | 'none'
|
|
35
35
|
* @returns {object} Boolean flags for which sides to apply padding
|
|
36
36
|
*/
|
|
37
|
-
const getFullBleedPaddingSides = position => ({
|
|
37
|
+
export const getFullBleedPaddingSides = position => ({
|
|
38
38
|
applyPaddingTop: position !== 'bottom',
|
|
39
39
|
applyPaddingBottom: position !== 'top',
|
|
40
40
|
applyPaddingLeft: position !== 'right',
|
|
@@ -48,7 +48,7 @@ const getFullBleedPaddingSides = position => ({
|
|
|
48
48
|
* @param {object} [fullBleedContent] - a set of valid proptypes for FullBleedContent
|
|
49
49
|
* @returns
|
|
50
50
|
*/
|
|
51
|
-
const useFullBleedContentProps = fullBleedContent => {
|
|
51
|
+
export const useFullBleedContentProps = fullBleedContent => {
|
|
52
52
|
const {
|
|
53
53
|
align: fullBleedContentAlignProp,
|
|
54
54
|
position: fullBleedContentPositionProp,
|
|
@@ -73,6 +73,4 @@ const useFullBleedContentProps = fullBleedContent => {
|
|
|
73
73
|
fullBleedContentChildrenAlign,
|
|
74
74
|
fullBleedPaddingSides
|
|
75
75
|
};
|
|
76
|
-
};
|
|
77
|
-
export { getFullBleedPaddingSides };
|
|
78
|
-
export default useFullBleedContentProps;
|
|
76
|
+
};
|
|
@@ -30,22 +30,22 @@ const ButtonContent = /*#__PURE__*/styled.div.withConfig({
|
|
|
30
30
|
height: 64,
|
|
31
31
|
background: _ref => {
|
|
32
32
|
let {
|
|
33
|
-
buttonContentBackground
|
|
33
|
+
$buttonContentBackground
|
|
34
34
|
} = _ref;
|
|
35
|
-
return buttonContentBackground ?? 'none';
|
|
35
|
+
return $buttonContentBackground ?? 'none';
|
|
36
36
|
},
|
|
37
37
|
borderRadius: '100%',
|
|
38
38
|
transition: 'background 0.2s ease-in-out',
|
|
39
39
|
[`${ButtonContainer}:hover &`]: {
|
|
40
40
|
background: _ref2 => {
|
|
41
41
|
let {
|
|
42
|
-
buttonContentChildrenBackground
|
|
42
|
+
$buttonContentChildrenBackground
|
|
43
43
|
} = _ref2;
|
|
44
|
-
return buttonContentChildrenBackground;
|
|
44
|
+
return $buttonContentChildrenBackground;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
const SplashButton = _ref3 => {
|
|
48
|
+
export const SplashButton = _ref3 => {
|
|
49
49
|
let {
|
|
50
50
|
copy,
|
|
51
51
|
tokens,
|
|
@@ -66,8 +66,8 @@ const SplashButton = _ref3 => {
|
|
|
66
66
|
return /*#__PURE__*/_jsx(ButtonContainer, {
|
|
67
67
|
"aria-label": ariaLabel,
|
|
68
68
|
children: /*#__PURE__*/_jsx(ButtonContent, {
|
|
69
|
-
|
|
70
|
-
buttonContentChildrenBackground: buttonContentChildrenBackground,
|
|
69
|
+
$buttonContentBackground: themeTokens.buttonContentBackground,
|
|
70
|
+
$buttonContentChildrenBackground: buttonContentChildrenBackground,
|
|
71
71
|
children: /*#__PURE__*/_jsx(PlayIcon, {
|
|
72
72
|
size: 27,
|
|
73
73
|
color: playIconColor
|
|
@@ -80,5 +80,4 @@ SplashButton.propTypes = {
|
|
|
80
80
|
tokens: PropTypes.object,
|
|
81
81
|
variant: PropTypes.object,
|
|
82
82
|
copy: PropTypes.oneOf(['en', 'fr'])
|
|
83
|
-
};
|
|
84
|
-
export default SplashButton;
|
|
83
|
+
};
|
|
@@ -22,63 +22,63 @@ const ButtonContent = /*#__PURE__*/styled.div.withConfig({
|
|
|
22
22
|
})({
|
|
23
23
|
background: _ref => {
|
|
24
24
|
let {
|
|
25
|
-
buttonBackground
|
|
25
|
+
$buttonBackground
|
|
26
26
|
} = _ref;
|
|
27
|
-
return buttonBackground;
|
|
27
|
+
return $buttonBackground;
|
|
28
28
|
},
|
|
29
29
|
border: _ref2 => {
|
|
30
30
|
let {
|
|
31
|
-
buttonBorderColor
|
|
31
|
+
$buttonBorderColor
|
|
32
32
|
} = _ref2;
|
|
33
|
-
return `1px solid ${buttonBorderColor}`;
|
|
33
|
+
return `1px solid ${$buttonBorderColor}`;
|
|
34
34
|
},
|
|
35
35
|
borderRadius: _ref3 => {
|
|
36
36
|
let {
|
|
37
|
-
buttonRadius
|
|
37
|
+
$buttonRadius
|
|
38
38
|
} = _ref3;
|
|
39
|
-
return `${buttonRadius}px`;
|
|
39
|
+
return `${$buttonRadius}px`;
|
|
40
40
|
},
|
|
41
41
|
position: 'absolute',
|
|
42
42
|
left: _ref4 => {
|
|
43
43
|
let {
|
|
44
|
-
buttonLeftPosition
|
|
44
|
+
$buttonLeftPosition
|
|
45
45
|
} = _ref4;
|
|
46
|
-
return `${buttonLeftPosition}px`;
|
|
46
|
+
return `${$buttonLeftPosition}px`;
|
|
47
47
|
},
|
|
48
48
|
bottom: _ref5 => {
|
|
49
49
|
let {
|
|
50
|
-
buttonBottomPosition
|
|
50
|
+
$buttonBottomPosition
|
|
51
51
|
} = _ref5;
|
|
52
|
-
return `${buttonBottomPosition}px`;
|
|
52
|
+
return `${$buttonBottomPosition}px`;
|
|
53
53
|
},
|
|
54
54
|
boxSizing: 'border-box',
|
|
55
55
|
display: 'flex',
|
|
56
56
|
alignItems: 'center',
|
|
57
57
|
minHeight: _ref6 => {
|
|
58
58
|
let {
|
|
59
|
-
buttonMinHeight
|
|
59
|
+
$buttonMinHeight
|
|
60
60
|
} = _ref6;
|
|
61
|
-
return `${buttonMinHeight}px`;
|
|
61
|
+
return `${$buttonMinHeight}px`;
|
|
62
62
|
},
|
|
63
63
|
paddingRight: _ref7 => {
|
|
64
64
|
let {
|
|
65
|
-
buttonPaddingLeft
|
|
65
|
+
$buttonPaddingLeft
|
|
66
66
|
} = _ref7;
|
|
67
|
-
return `${buttonPaddingLeft}px`;
|
|
67
|
+
return `${$buttonPaddingLeft}px`;
|
|
68
68
|
},
|
|
69
69
|
paddingLeft: _ref8 => {
|
|
70
70
|
let {
|
|
71
|
-
buttonPaddingRight
|
|
71
|
+
$buttonPaddingRight
|
|
72
72
|
} = _ref8;
|
|
73
|
-
return `${buttonPaddingRight}px`;
|
|
73
|
+
return `${$buttonPaddingRight}px`;
|
|
74
74
|
},
|
|
75
75
|
transition: 'background 0.2s ease-in-out',
|
|
76
76
|
[`${ButtonContainer}:hover &`]: {
|
|
77
77
|
background: _ref9 => {
|
|
78
78
|
let {
|
|
79
|
-
buttonContentChildrenBackground
|
|
79
|
+
$buttonContentChildrenBackground
|
|
80
80
|
} = _ref9;
|
|
81
|
-
return buttonContentChildrenBackground;
|
|
81
|
+
return $buttonContentChildrenBackground;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
});
|
|
@@ -91,11 +91,11 @@ const PlayIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
91
91
|
alignItems: 'center',
|
|
92
92
|
width: 32,
|
|
93
93
|
height: 32,
|
|
94
|
-
background:
|
|
94
|
+
background: _ref0 => {
|
|
95
95
|
let {
|
|
96
|
-
playIconContainerBackground
|
|
97
|
-
} =
|
|
98
|
-
return playIconContainerBackground ?? 'none';
|
|
96
|
+
$playIconContainerBackground
|
|
97
|
+
} = _ref0;
|
|
98
|
+
return $playIconContainerBackground ?? 'none';
|
|
99
99
|
},
|
|
100
100
|
borderRadius: '100%',
|
|
101
101
|
transition: 'background 0.2s ease-in-out'
|
|
@@ -107,30 +107,30 @@ const DetailsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
107
107
|
display: 'flex',
|
|
108
108
|
flexDirection: 'column',
|
|
109
109
|
alignItems: 'flex-start',
|
|
110
|
-
paddingLeft:
|
|
110
|
+
paddingLeft: _ref1 => {
|
|
111
111
|
let {
|
|
112
|
-
detailsContainerPadding
|
|
113
|
-
} =
|
|
114
|
-
return `${detailsContainerPadding}px`;
|
|
112
|
+
$detailsContainerPadding
|
|
113
|
+
} = _ref1;
|
|
114
|
+
return `${$detailsContainerPadding}px`;
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
|
-
const selectPlayIconContainerTokens =
|
|
117
|
+
const selectPlayIconContainerTokens = _ref10 => {
|
|
118
118
|
let {
|
|
119
119
|
playIconContainerBackground
|
|
120
|
-
} =
|
|
120
|
+
} = _ref10;
|
|
121
121
|
return {
|
|
122
|
-
playIconContainerBackground
|
|
122
|
+
$playIconContainerBackground: playIconContainerBackground
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
-
const selectDetailsContainerTokens =
|
|
125
|
+
const selectDetailsContainerTokens = _ref11 => {
|
|
126
126
|
let {
|
|
127
127
|
detailsContainerPadding
|
|
128
|
-
} =
|
|
128
|
+
} = _ref11;
|
|
129
129
|
return {
|
|
130
|
-
detailsContainerPadding
|
|
130
|
+
$detailsContainerPadding: detailsContainerPadding
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
|
-
const selectButtonContentTokens =
|
|
133
|
+
const selectButtonContentTokens = _ref12 => {
|
|
134
134
|
let {
|
|
135
135
|
buttonBackground,
|
|
136
136
|
buttonBorderColor,
|
|
@@ -140,36 +140,36 @@ const selectButtonContentTokens = _ref14 => {
|
|
|
140
140
|
buttonMinHeight,
|
|
141
141
|
buttonPaddingLeft,
|
|
142
142
|
buttonPaddingRight
|
|
143
|
-
} =
|
|
143
|
+
} = _ref12;
|
|
144
144
|
return {
|
|
145
|
-
buttonBackground,
|
|
146
|
-
buttonBorderColor,
|
|
147
|
-
buttonRadius,
|
|
148
|
-
buttonLeftPosition,
|
|
149
|
-
buttonBottomPosition,
|
|
150
|
-
buttonMinHeight,
|
|
151
|
-
buttonPaddingLeft,
|
|
152
|
-
buttonPaddingRight
|
|
145
|
+
$buttonBackground: buttonBackground,
|
|
146
|
+
$buttonBorderColor: buttonBorderColor,
|
|
147
|
+
$buttonRadius: buttonRadius,
|
|
148
|
+
$buttonLeftPosition: buttonLeftPosition,
|
|
149
|
+
$buttonBottomPosition: buttonBottomPosition,
|
|
150
|
+
$buttonMinHeight: buttonMinHeight,
|
|
151
|
+
$buttonPaddingLeft: buttonPaddingLeft,
|
|
152
|
+
$buttonPaddingRight: buttonPaddingRight
|
|
153
153
|
};
|
|
154
154
|
};
|
|
155
|
-
const getLabelTokens =
|
|
155
|
+
const getLabelTokens = _ref13 => {
|
|
156
156
|
let {
|
|
157
157
|
labelFontName: fontName,
|
|
158
158
|
labelFontWeight: fontWeight
|
|
159
|
-
} =
|
|
159
|
+
} = _ref13;
|
|
160
160
|
return {
|
|
161
161
|
fontName,
|
|
162
162
|
fontWeight
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
|
-
const SplashButtonWithDetails =
|
|
165
|
+
export const SplashButtonWithDetails = _ref14 => {
|
|
166
166
|
let {
|
|
167
167
|
label,
|
|
168
168
|
tokens,
|
|
169
169
|
variant,
|
|
170
170
|
copy,
|
|
171
171
|
videoLength
|
|
172
|
-
} =
|
|
172
|
+
} = _ref14;
|
|
173
173
|
const {
|
|
174
174
|
buttonContentChildrenBackground
|
|
175
175
|
} = useThemeTokens('SplashButtonWithDetails', tokens, variant, {
|
|
@@ -186,7 +186,7 @@ const SplashButtonWithDetails = _ref16 => {
|
|
|
186
186
|
"aria-label": ariaLabel,
|
|
187
187
|
children: /*#__PURE__*/_jsxs(ButtonContent, {
|
|
188
188
|
...selectButtonContentTokens(themeTokens),
|
|
189
|
-
buttonContentChildrenBackground: buttonContentChildrenBackground,
|
|
189
|
+
$buttonContentChildrenBackground: buttonContentChildrenBackground,
|
|
190
190
|
children: [/*#__PURE__*/_jsx(PlayIconContainer, {
|
|
191
191
|
...selectPlayIconContainerTokens(themeTokens),
|
|
192
192
|
children: /*#__PURE__*/_jsx(PlayIcon, {
|
|
@@ -218,5 +218,4 @@ SplashButtonWithDetails.propTypes = {
|
|
|
218
218
|
variant: PropTypes.object,
|
|
219
219
|
videoLength: PropTypes.number,
|
|
220
220
|
copy: PropTypes.oneOf(['en', 'fr'])
|
|
221
|
-
};
|
|
222
|
-
export default SplashButtonWithDetails;
|
|
221
|
+
};
|
|
@@ -3,9 +3,9 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { selectSystemProps, useViewport } from '@telus-uds/components-base';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import { viewports } from '@telus-uds/system-constants';
|
|
6
|
-
import SplashButton from './SplashButton/SplashButton';
|
|
7
|
-
import SplashButtonWithDetails from './SplashButtonWithDetails/SplashButtonWithDetails';
|
|
8
|
-
import videoText from '../../Video/videoText';
|
|
6
|
+
import { SplashButton } from './SplashButton/SplashButton';
|
|
7
|
+
import { SplashButtonWithDetails } from './SplashButtonWithDetails/SplashButtonWithDetails';
|
|
8
|
+
import { videoText } from '../../Video/videoText';
|
|
9
9
|
import { htmlAttrs } from '../../utils';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
@@ -14,10 +14,10 @@ const SplashBackground = /*#__PURE__*/styled.div.withConfig({
|
|
|
14
14
|
componentId: "components-web__sc-1ejxt6-0"
|
|
15
15
|
})(_ref => {
|
|
16
16
|
let {
|
|
17
|
-
videoPoster
|
|
17
|
+
$videoPoster
|
|
18
18
|
} = _ref;
|
|
19
19
|
return {
|
|
20
|
-
backgroundImage: `url(${videoPoster})`,
|
|
20
|
+
backgroundImage: `url(${$videoPoster})`,
|
|
21
21
|
backgroundSize: 'cover',
|
|
22
22
|
backgroundPosition: 'center',
|
|
23
23
|
position: 'absolute',
|
|
@@ -28,7 +28,7 @@ const SplashBackground = /*#__PURE__*/styled.div.withConfig({
|
|
|
28
28
|
cursor: 'pointer'
|
|
29
29
|
};
|
|
30
30
|
});
|
|
31
|
-
const VideoSplash = _ref2 => {
|
|
31
|
+
export const VideoSplash = _ref2 => {
|
|
32
32
|
let {
|
|
33
33
|
poster,
|
|
34
34
|
videoLength,
|
|
@@ -43,7 +43,7 @@ const VideoSplash = _ref2 => {
|
|
|
43
43
|
return /*#__PURE__*/_jsx(SplashBackground, {
|
|
44
44
|
...selectProps(rest),
|
|
45
45
|
onClick: onClick,
|
|
46
|
-
videoPoster: poster,
|
|
46
|
+
$videoPoster: poster,
|
|
47
47
|
children: showDetails ? /*#__PURE__*/_jsx(SplashButtonWithDetails, {
|
|
48
48
|
videoLength: videoLength,
|
|
49
49
|
copy: copy,
|
|
@@ -61,5 +61,4 @@ VideoSplash.propTypes = {
|
|
|
61
61
|
videoLength: PropTypes.number.isRequired,
|
|
62
62
|
simpleMode: PropTypes.bool,
|
|
63
63
|
copy: PropTypes.oneOf(['en', 'fr'])
|
|
64
|
-
};
|
|
65
|
-
export default VideoSplash;
|
|
64
|
+
};
|
package/lib/esm/utils/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { htmlAttrs, contentfulProps } from '@telus-uds/components-base';
|
|
2
2
|
import { warn, deprecate } from './logger';
|
|
3
3
|
import { transformGradient } from './transforms';
|
|
4
|
-
import useTypographyTheme from './useTypographyTheme';
|
|
5
|
-
import media from './media';
|
|
6
|
-
import ssrStyles from './ssr';
|
|
7
|
-
import isElementFocusable from './isElementFocusable';
|
|
8
|
-
import renderStructuredContent from './renderStructuredContent';
|
|
9
|
-
import useOverlaidPosition from './useOverlaidPosition';
|
|
10
|
-
import scrollToAnchor from './scrollToAnchor';
|
|
4
|
+
import { useTypographyTheme } from './useTypographyTheme';
|
|
5
|
+
import { media } from './media';
|
|
6
|
+
import { ssrStyles } from './ssr';
|
|
7
|
+
import { isElementFocusable } from './isElementFocusable';
|
|
8
|
+
import { renderStructuredContent } from './renderStructuredContent';
|
|
9
|
+
import { useOverlaidPosition } from './useOverlaidPosition';
|
|
10
|
+
import { scrollToAnchor } from './scrollToAnchor';
|
|
11
11
|
export { deprecate, htmlAttrs, contentfulProps, transformGradient, useTypographyTheme, warn, media, renderStructuredContent, ssrStyles, isElementFocusable, useOverlaidPosition, scrollToAnchor };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns focusable elements inside of the Footnote
|
|
3
3
|
*/
|
|
4
|
-
const isElementFocusable = element => {
|
|
4
|
+
export const isElementFocusable = element => {
|
|
5
5
|
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]`;
|
|
6
6
|
return element.matches(focusableElements) && !element.hasAttribute('disabled') && !element.matches('[tabindex="-1"]');
|
|
7
|
-
};
|
|
8
|
-
export default isElementFocusable;
|
|
7
|
+
};
|
package/lib/esm/utils/logger.js
CHANGED
package/lib/esm/utils/media.js
CHANGED
|
@@ -56,10 +56,9 @@ const generateBreaks = parts => {
|
|
|
56
56
|
}
|
|
57
57
|
return partsWithBreaks;
|
|
58
58
|
};
|
|
59
|
-
const renderStructuredContent = content => {
|
|
59
|
+
export const renderStructuredContent = content => {
|
|
60
60
|
if (typeof content !== 'string') {
|
|
61
61
|
return content;
|
|
62
62
|
}
|
|
63
63
|
return generateBreaks(generateLinks(content));
|
|
64
|
-
};
|
|
65
|
-
export default renderStructuredContent;
|
|
64
|
+
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @param {Event} event - The event object associated with the click or navigation action.
|
|
6
6
|
* @param {Function} onAfterScroll - A callback function to be executed after the scroll action is completed.
|
|
7
7
|
*/
|
|
8
|
-
const scrollToAnchor = (href, event, onAfterScroll) => {
|
|
8
|
+
export const scrollToAnchor = (href, event, onAfterScroll) => {
|
|
9
9
|
if (href?.startsWith('#')) {
|
|
10
10
|
event.preventDefault();
|
|
11
11
|
const target = document.getElementById(href.slice(1));
|
|
@@ -15,5 +15,4 @@ const scrollToAnchor = (href, event, onAfterScroll) => {
|
|
|
15
15
|
window.location.hash = href;
|
|
16
16
|
onAfterScroll(event);
|
|
17
17
|
}
|
|
18
|
-
};
|
|
19
|
-
export default scrollToAnchor;
|
|
18
|
+
};
|