@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/src/Video/videoText.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const videoText = {
|
|
1
|
+
export const videoText = {
|
|
2
2
|
en: {
|
|
3
3
|
videoPlayer:
|
|
4
4
|
'Press the space bar or K to toggle play and pause. Use the left and right arrow keys or the comma and period keys to scrub through the video. Use the up and down arrow keys, the dash and equal keys, or the add and subtract number pad keys to increase and decrease volume. Press M to toggle mute. Press F to toggle fullscreen. Press escape to exit instructions and return to video.',
|
|
@@ -54,5 +54,3 @@ const videoText = {
|
|
|
54
54
|
fr: 'Français'
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
export default videoText
|
|
@@ -10,48 +10,48 @@ import {
|
|
|
10
10
|
} from '@telus-uds/components-base'
|
|
11
11
|
import styled, { css } from 'styled-components'
|
|
12
12
|
import { VideoPropType } from './videoPropType'
|
|
13
|
-
import VideoPickerThumbnail from './VideoPickerThumbnail'
|
|
14
|
-
import VideoPickerPlayer from './VideoPickerPlayer'
|
|
15
|
-
import VideoSlider from './VideoSlider'
|
|
13
|
+
import { VideoPickerThumbnail } from './VideoPickerThumbnail'
|
|
14
|
+
import { VideoPickerPlayer } from './VideoPickerPlayer'
|
|
15
|
+
import { VideoSlider } from './VideoSlider'
|
|
16
16
|
import { htmlAttrs } from '../utils'
|
|
17
17
|
|
|
18
18
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
19
19
|
|
|
20
20
|
const framedContainerStyles = ({
|
|
21
|
-
framedContainerBackgroundColor,
|
|
22
|
-
framedContainerBorderWidth,
|
|
23
|
-
framedContainerBorderColor,
|
|
24
|
-
framedContainerBorderRadius,
|
|
25
|
-
framedMaxHeight
|
|
21
|
+
$framedContainerBackgroundColor,
|
|
22
|
+
$framedContainerBorderWidth,
|
|
23
|
+
$framedContainerBorderColor,
|
|
24
|
+
$framedContainerBorderRadius,
|
|
25
|
+
$framedMaxHeight
|
|
26
26
|
}) => css`
|
|
27
|
-
background-color: ${framedContainerBackgroundColor};
|
|
28
|
-
border: ${framedContainerBorderWidth}px solid ${framedContainerBorderColor};
|
|
29
|
-
border-radius: ${framedContainerBorderRadius}px;
|
|
27
|
+
background-color: ${$framedContainerBackgroundColor};
|
|
28
|
+
border: ${$framedContainerBorderWidth}px solid ${$framedContainerBorderColor};
|
|
29
|
+
border-radius: ${$framedContainerBorderRadius}px;
|
|
30
30
|
|
|
31
31
|
& > div {
|
|
32
|
-
max-height: ${framedMaxHeight}px;
|
|
32
|
+
max-height: ${$framedMaxHeight}px;
|
|
33
33
|
}
|
|
34
34
|
`
|
|
35
35
|
|
|
36
36
|
const VideoPickerContainer = styled.div`
|
|
37
|
-
${({ isFramed, ...tokens }) => isFramed && framedContainerStyles(tokens)}
|
|
37
|
+
${({ $isFramed, ...tokens }) => $isFramed && framedContainerStyles(tokens)}
|
|
38
38
|
`
|
|
39
39
|
|
|
40
|
-
const framedPlayerContainerStyles = ({ framedMaxHeight, framedContainerPadding }) => css`
|
|
40
|
+
const framedPlayerContainerStyles = ({ $framedMaxHeight, $framedContainerPadding }) => css`
|
|
41
41
|
width: 66.67%;
|
|
42
|
-
padding: ${framedContainerPadding}px;
|
|
43
|
-
max-height: ${framedMaxHeight}px;
|
|
42
|
+
padding: ${$framedContainerPadding}px;
|
|
43
|
+
max-height: ${$framedMaxHeight}px;
|
|
44
44
|
flex-shrink: 0;
|
|
45
45
|
box-sizing: border-box;
|
|
46
46
|
`
|
|
47
47
|
|
|
48
48
|
const VideoPlayerContainer = styled.div`
|
|
49
|
-
${({ isFramed, ...tokens }) => isFramed && framedPlayerContainerStyles(tokens)}
|
|
49
|
+
${({ $isFramed, ...tokens }) => $isFramed && framedPlayerContainerStyles(tokens)}
|
|
50
50
|
overflow: auto;
|
|
51
51
|
`
|
|
52
52
|
|
|
53
53
|
const framedVideoListContainerStyle = css`
|
|
54
|
-
max-height: ${({ framedMaxHeight }) => framedMaxHeight}px;
|
|
54
|
+
max-height: ${({ $framedMaxHeight }) => $framedMaxHeight}px;
|
|
55
55
|
overflow: auto;
|
|
56
56
|
flex-direction: column;
|
|
57
57
|
`
|
|
@@ -62,10 +62,10 @@ const VideoListContainer = styled.div`
|
|
|
62
62
|
position: relative;
|
|
63
63
|
flex-grow: 1;
|
|
64
64
|
flex-direction: column;
|
|
65
|
-
${(props) => props
|
|
65
|
+
${(props) => props.$isFramed && framedVideoListContainerStyle}
|
|
66
66
|
`
|
|
67
67
|
|
|
68
|
-
const VideoPicker = React.forwardRef(
|
|
68
|
+
export const VideoPicker = React.forwardRef(
|
|
69
69
|
(
|
|
70
70
|
{
|
|
71
71
|
videoList = [],
|
|
@@ -124,7 +124,16 @@ const VideoPicker = React.forwardRef(
|
|
|
124
124
|
))
|
|
125
125
|
|
|
126
126
|
return (
|
|
127
|
-
<VideoPickerContainer
|
|
127
|
+
<VideoPickerContainer
|
|
128
|
+
ref={ref}
|
|
129
|
+
$isFramed={isFramed}
|
|
130
|
+
$framedContainerBackgroundColor={themeTokens.framedContainerBackgroundColor}
|
|
131
|
+
$framedContainerBorderWidth={themeTokens.framedContainerBorderWidth}
|
|
132
|
+
$framedContainerBorderColor={themeTokens.framedContainerBorderColor}
|
|
133
|
+
$framedContainerBorderRadius={themeTokens.framedContainerBorderRadius}
|
|
134
|
+
$framedMaxHeight={themeTokens.framedMaxHeight}
|
|
135
|
+
{...selectProps(rest)}
|
|
136
|
+
>
|
|
128
137
|
<StackView
|
|
129
138
|
divider={
|
|
130
139
|
isFramed
|
|
@@ -134,7 +143,11 @@ const VideoPicker = React.forwardRef(
|
|
|
134
143
|
space={isFramed ? 0 : 4} // everything has internal padding in `frame` variant
|
|
135
144
|
direction={isFramed ? 'row' : 'column'}
|
|
136
145
|
>
|
|
137
|
-
<VideoPlayerContainer
|
|
146
|
+
<VideoPlayerContainer
|
|
147
|
+
$isFramed={isFramed}
|
|
148
|
+
$framedMaxHeight={themeTokens.framedMaxHeight}
|
|
149
|
+
$framedContainerPadding={themeTokens.framedContainerPadding}
|
|
150
|
+
>
|
|
138
151
|
<VideoPickerPlayer
|
|
139
152
|
video={addVideoEventHandlers(currentVideo)}
|
|
140
153
|
videoPlayerRef={videoPlayerRef}
|
|
@@ -147,7 +160,8 @@ const VideoPicker = React.forwardRef(
|
|
|
147
160
|
<VideoListContainer
|
|
148
161
|
viewport={viewport}
|
|
149
162
|
data-testid="video-list-container"
|
|
150
|
-
isFramed={isFramed}
|
|
163
|
+
$isFramed={isFramed}
|
|
164
|
+
$framedMaxHeight={themeTokens.framedMaxHeight}
|
|
151
165
|
>
|
|
152
166
|
{listElements}
|
|
153
167
|
</VideoListContainer>
|
|
@@ -204,5 +218,3 @@ VideoPicker.propTypes = {
|
|
|
204
218
|
*/
|
|
205
219
|
onPause: PropTypes.func
|
|
206
220
|
}
|
|
207
|
-
|
|
208
|
-
export default VideoPicker
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StackView, Typography } from '@telus-uds/components-base'
|
|
3
3
|
import PropTypes from 'prop-types'
|
|
4
|
-
import WebVideo from '../WebVideo/WebVideo'
|
|
4
|
+
import { WebVideo } from '../WebVideo/WebVideo'
|
|
5
5
|
import { VideoPropType, RefPropType } from './videoPropType'
|
|
6
6
|
|
|
7
|
-
const VideoPickerPlayer = React.forwardRef(
|
|
7
|
+
export const VideoPickerPlayer = React.forwardRef(
|
|
8
8
|
({ video = {}, videoPlayerRef, onStartVideo = () => {} }, ref) => (
|
|
9
9
|
<StackView space={3} tokens={{ flexShrink: 1 }} ref={ref}>
|
|
10
10
|
<div ref={videoPlayerRef}>
|
|
@@ -25,5 +25,3 @@ VideoPickerPlayer.propTypes = {
|
|
|
25
25
|
videoPlayerRef: RefPropType,
|
|
26
26
|
onStartVideo: PropTypes.func
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
export default VideoPickerPlayer
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import styled from 'styled-components'
|
|
13
13
|
import { getTimestamp } from '../shared/VideoSplash/helpers'
|
|
14
14
|
import { VideoPropType, RefPropType } from './videoPropType'
|
|
15
|
-
import VideoSplash from '../shared/VideoSplash/VideoSplash'
|
|
15
|
+
import { VideoSplash } from '../shared/VideoSplash/VideoSplash'
|
|
16
16
|
|
|
17
17
|
const { getItemPositionLayoutHandler, itemPositionsPropType } = horizontalScrollUtils
|
|
18
18
|
|
|
@@ -43,14 +43,14 @@ const createReactNativeStyles = ({
|
|
|
43
43
|
})
|
|
44
44
|
|
|
45
45
|
const ImageContainer = styled.div`
|
|
46
|
-
padding: ${(props) => `${props
|
|
47
|
-
border: ${(props) => `${props
|
|
48
|
-
border-radius: ${({ outerBorderRadius }) => outerBorderRadius}px;
|
|
46
|
+
padding: ${(props) => `${props.$outerBorderGap}px`};
|
|
47
|
+
border: ${(props) => `${props.$outerBorderWidth}px solid ${props.$outerBorderColor}`};
|
|
48
|
+
border-radius: ${({ $outerBorderRadius }) => $outerBorderRadius}px;
|
|
49
49
|
`
|
|
50
50
|
|
|
51
51
|
const VideoThumbnail = styled.div`
|
|
52
52
|
position: relative;
|
|
53
|
-
width: ${(props) => (props
|
|
53
|
+
width: ${(props) => (props.$layout === 'vertical' ? '100%' : '144px')};
|
|
54
54
|
flex-shrink: 0;
|
|
55
55
|
|
|
56
56
|
* button {
|
|
@@ -66,9 +66,9 @@ const VideoThumbnail = styled.div`
|
|
|
66
66
|
|
|
67
67
|
&::after {
|
|
68
68
|
content: '';
|
|
69
|
-
border: ${({ borderWidth }) => borderWidth}px solid;
|
|
70
|
-
border-color: ${({ borderColor }) => borderColor};
|
|
71
|
-
border-radius: ${({ borderRadius }) => borderRadius}px;
|
|
69
|
+
border: ${({ $borderWidth }) => $borderWidth}px solid;
|
|
70
|
+
border-color: ${({ $borderColor }) => $borderColor};
|
|
71
|
+
border-radius: ${({ $borderRadius }) => $borderRadius}px;
|
|
72
72
|
position: absolute;
|
|
73
73
|
top: 0;
|
|
74
74
|
left: 0;
|
|
@@ -77,7 +77,7 @@ const VideoThumbnail = styled.div`
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
& > div {
|
|
80
|
-
border-radius: ${({ borderRadius }) => borderRadius}px;
|
|
80
|
+
border-radius: ${({ $borderRadius }) => $borderRadius}px;
|
|
81
81
|
}
|
|
82
82
|
`
|
|
83
83
|
|
|
@@ -88,7 +88,7 @@ const ThumbnailTitleContainer = styled.div`
|
|
|
88
88
|
overflow: hidden;
|
|
89
89
|
`
|
|
90
90
|
|
|
91
|
-
const VideoPickerThumbnail = React.forwardRef(
|
|
91
|
+
export const VideoPickerThumbnail = React.forwardRef(
|
|
92
92
|
(
|
|
93
93
|
{
|
|
94
94
|
videoPlayerRef,
|
|
@@ -111,7 +111,13 @@ const VideoPickerThumbnail = React.forwardRef(
|
|
|
111
111
|
|
|
112
112
|
const renderThumbnailImage = (themeTokens) => {
|
|
113
113
|
return (
|
|
114
|
-
<VideoThumbnail
|
|
114
|
+
<VideoThumbnail
|
|
115
|
+
$borderWidth={themeTokens.borderWidth}
|
|
116
|
+
$borderColor={themeTokens.borderColor}
|
|
117
|
+
$borderRadius={themeTokens.borderRadius}
|
|
118
|
+
$isPlaying={isPlaying}
|
|
119
|
+
$layout={layout}
|
|
120
|
+
>
|
|
115
121
|
<VideoSplash
|
|
116
122
|
simpleMode
|
|
117
123
|
poster={
|
|
@@ -126,7 +132,7 @@ const VideoPickerThumbnail = React.forwardRef(
|
|
|
126
132
|
|
|
127
133
|
const renderThumbnailInfo = ({ titleColor, subTitleColor }) => (
|
|
128
134
|
<StackView space={2} tokens={{ flexShrink: 1 }}>
|
|
129
|
-
<ThumbnailTitleContainer
|
|
135
|
+
<ThumbnailTitleContainer>
|
|
130
136
|
<Typography variant={{ bold: true }} tokens={{ color: titleColor }}>
|
|
131
137
|
{video.title}
|
|
132
138
|
</Typography>
|
|
@@ -184,7 +190,14 @@ const VideoPickerThumbnail = React.forwardRef(
|
|
|
184
190
|
space={layout === 'vertical' ? 2 : 3}
|
|
185
191
|
direction={layout === 'vertical' ? 'column' : 'row'}
|
|
186
192
|
>
|
|
187
|
-
<ImageContainer
|
|
193
|
+
<ImageContainer
|
|
194
|
+
$outerBorderGap={themeTokens.outerBorderGap}
|
|
195
|
+
$outerBorderWidth={themeTokens.outerBorderWidth}
|
|
196
|
+
$outerBorderColor={themeTokens.outerBorderColor}
|
|
197
|
+
$outerBorderRadius={themeTokens.outerBorderRadius}
|
|
198
|
+
>
|
|
199
|
+
{renderThumbnailImage(themeTokens)}
|
|
200
|
+
</ImageContainer>
|
|
188
201
|
{renderThumbnailInfo(themeTokens)}
|
|
189
202
|
</StackView>
|
|
190
203
|
)
|
|
@@ -207,5 +220,3 @@ VideoPickerThumbnail.propTypes = {
|
|
|
207
220
|
index: PropTypes.number,
|
|
208
221
|
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
209
222
|
}
|
|
210
|
-
|
|
211
|
-
export default VideoPickerThumbnail
|
|
@@ -12,7 +12,7 @@ import PropTypes from 'prop-types'
|
|
|
12
12
|
|
|
13
13
|
const { useItemPositions } = horizontalScrollUtils
|
|
14
14
|
|
|
15
|
-
const VideoSlider = React.forwardRef(({ children }, ref) => {
|
|
15
|
+
export const VideoSlider = React.forwardRef(({ children }, ref) => {
|
|
16
16
|
const viewport = useViewport()
|
|
17
17
|
const [itemPositions] = useItemPositions()
|
|
18
18
|
const [containerWidth, setContainerWidth] = React.useState(null)
|
|
@@ -83,5 +83,3 @@ VideoSlider.displayName = 'VideoSlider'
|
|
|
83
83
|
VideoSlider.propTypes = {
|
|
84
84
|
children: PropTypes.node
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
export default VideoSlider
|
|
@@ -12,19 +12,19 @@ import {
|
|
|
12
12
|
getTokensPropType
|
|
13
13
|
} from '@telus-uds/components-base'
|
|
14
14
|
import styled from 'styled-components'
|
|
15
|
-
import OrderedListBase from '../OrderedList/OrderedListBase'
|
|
16
|
-
import
|
|
17
|
-
import Image from '../Image'
|
|
15
|
+
import { OrderedListBase } from '../OrderedList/OrderedListBase'
|
|
16
|
+
import { OrderedListItemBase } from '../OrderedList/OrderedListItemBase'
|
|
17
|
+
import { Image } from '../Image/Image'
|
|
18
18
|
import { htmlAttrs } from '../utils'
|
|
19
19
|
|
|
20
20
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
|
|
21
21
|
|
|
22
22
|
const row = (rowSize, rowBorderWidth) => ({
|
|
23
23
|
flexBasis: `calc(100% / ${rowSize})`,
|
|
24
|
-
[
|
|
24
|
+
[`&:not(:nth-of-type(${rowSize}n + 1))`]: {
|
|
25
25
|
borderLeftWidth: `${rowBorderWidth}px`
|
|
26
26
|
},
|
|
27
|
-
[
|
|
27
|
+
[`&:nth-of-type(n+${rowSize + 1})`]: {
|
|
28
28
|
borderTopWidth: `${rowBorderWidth}px`
|
|
29
29
|
}
|
|
30
30
|
})
|
|
@@ -33,26 +33,30 @@ const Container = styled(OrderedListBase)({
|
|
|
33
33
|
display: 'flex',
|
|
34
34
|
flexDirection: 'row',
|
|
35
35
|
flexWrap: 'wrap',
|
|
36
|
+
alignContent: 'stretch',
|
|
36
37
|
justifyContent: 'flex-start'
|
|
37
38
|
})
|
|
38
39
|
|
|
39
|
-
const Item = styled(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
40
|
+
const Item = styled(OrderedListItemBase)(
|
|
41
|
+
({ $rowSize, $itemPadding, $itemBorderColor, $rowBorderWidth }) => ({
|
|
42
|
+
display: 'flex',
|
|
43
|
+
flexDirection: 'row',
|
|
44
|
+
alignItems: 'center',
|
|
45
|
+
justifyContent: 'center',
|
|
46
|
+
flexGrow: 1,
|
|
47
|
+
flexShrink: 1,
|
|
48
|
+
padding: `${$itemPadding}px`,
|
|
49
|
+
boxSizing: 'border-box',
|
|
50
|
+
borderStyle: 'solid',
|
|
51
|
+
borderColor: $itemBorderColor,
|
|
52
|
+
borderWidth: 0,
|
|
53
|
+
'& > a': {
|
|
54
|
+
alignSelf: 'center',
|
|
55
|
+
width: '100%'
|
|
56
|
+
},
|
|
57
|
+
...row($rowSize, $rowBorderWidth)
|
|
58
|
+
})
|
|
59
|
+
)
|
|
56
60
|
|
|
57
61
|
const Center = styled('div')({
|
|
58
62
|
display: 'flex',
|
|
@@ -64,7 +68,7 @@ const Center = styled('div')({
|
|
|
64
68
|
/**
|
|
65
69
|
* The WaffleGrid is used to show items in a waffle like manner with borders surrounding the element
|
|
66
70
|
*/
|
|
67
|
-
const WaffleGrid = React.forwardRef(
|
|
71
|
+
export const WaffleGrid = React.forwardRef(
|
|
68
72
|
({ items, rowSize = null, LinkRouter, tokens, variant, linkRouterProps, ...rest }, ref) => {
|
|
69
73
|
const viewport = useViewport()
|
|
70
74
|
const themeTokens = useThemeTokens('WaffleGrid', tokens, variant, { viewport })
|
|
@@ -74,9 +78,11 @@ const WaffleGrid = React.forwardRef(
|
|
|
74
78
|
<Container ref={ref} {...selectProps(rest)}>
|
|
75
79
|
{items.map((child) => (
|
|
76
80
|
<Item
|
|
77
|
-
{...themeTokens}
|
|
78
81
|
key={child.href}
|
|
79
|
-
rowSize={rowSize ? currentRowSize : themeTokens.rowSize}
|
|
82
|
+
$rowSize={rowSize ? currentRowSize : themeTokens.rowSize}
|
|
83
|
+
$itemPadding={themeTokens.itemPadding}
|
|
84
|
+
$itemBorderColor={themeTokens.itemBorderColor}
|
|
85
|
+
$rowBorderWidth={themeTokens.rowBorderWidth}
|
|
80
86
|
>
|
|
81
87
|
<Link
|
|
82
88
|
href={child.href}
|
|
@@ -141,5 +147,3 @@ WaffleGrid.propTypes = {
|
|
|
141
147
|
rowSize: responsiveProps.getTypeOptionallyByViewport(PropTypes.number),
|
|
142
148
|
...withLinkRouter.propTypes
|
|
143
149
|
}
|
|
144
|
-
|
|
145
|
-
export default WaffleGrid
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import React from 'react'
|
|
4
4
|
import YouTube from 'react-youtube'
|
|
5
5
|
import styled from 'styled-components'
|
|
6
|
-
import VideoSplash from '../shared/VideoSplash/VideoSplash'
|
|
6
|
+
import { VideoSplash } from '../shared/VideoSplash/VideoSplash'
|
|
7
7
|
import { htmlAttrs } from '../utils'
|
|
8
8
|
import { triggerInProgressVideoIntervals, YoutubePlayerState } from './utils'
|
|
9
9
|
|
|
@@ -30,11 +30,11 @@ const aspectRatios = {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
const AspectLimiter = styled.div((props) => ({
|
|
33
|
-
...aspectRatios[props
|
|
33
|
+
...aspectRatios[props.$aspectRatio],
|
|
34
34
|
position: 'relative'
|
|
35
35
|
}))
|
|
36
36
|
|
|
37
|
-
const WebVideo = React.forwardRef(
|
|
37
|
+
export const WebVideo = React.forwardRef(
|
|
38
38
|
(
|
|
39
39
|
{
|
|
40
40
|
videoId,
|
|
@@ -103,7 +103,7 @@ const WebVideo = React.forwardRef(
|
|
|
103
103
|
|
|
104
104
|
return (
|
|
105
105
|
<StyledPlayerContainer ref={ref} data-testid="web-video-container" {...selectProps(rest)}>
|
|
106
|
-
<AspectLimiter aspectRatio={aspectRatio}>
|
|
106
|
+
<AspectLimiter $aspectRatio={aspectRatio}>
|
|
107
107
|
{started ? (
|
|
108
108
|
<StyledYoutubePlayer
|
|
109
109
|
videoId={videoId}
|
|
@@ -202,5 +202,3 @@ export const VideoProps = {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
WebVideo.propTypes = VideoProps
|
|
205
|
-
|
|
206
|
-
export default WebVideo
|
package/src/baseExports.js
CHANGED
|
@@ -5,49 +5,57 @@ export {
|
|
|
5
5
|
/**
|
|
6
6
|
* Most base components should be re-exported as-is.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
A11yInfoProvider,
|
|
9
9
|
A11yText,
|
|
10
|
+
ActionCard,
|
|
10
11
|
ActivityIndicator,
|
|
11
12
|
Autocomplete,
|
|
13
|
+
BaseProvider,
|
|
12
14
|
Box,
|
|
13
15
|
Button,
|
|
14
|
-
BaseProvider,
|
|
15
|
-
A11yInfoProvider,
|
|
16
|
-
ViewportProvider,
|
|
17
|
-
ThemeProvider,
|
|
18
|
-
ButtonDropdown,
|
|
19
|
-
ButtonGroup,
|
|
20
16
|
ButtonLink,
|
|
17
|
+
ButtonGroup,
|
|
18
|
+
ButtonDropdown,
|
|
21
19
|
CardGroup,
|
|
22
20
|
Carousel,
|
|
23
21
|
CarouselItem,
|
|
24
|
-
CarouselProvider,
|
|
25
22
|
CarouselTabs,
|
|
23
|
+
CarouselProvider,
|
|
24
|
+
ViewportProvider,
|
|
25
|
+
ThemeProvider,
|
|
26
26
|
Checkbox,
|
|
27
27
|
CheckboxGroup,
|
|
28
|
-
ChevronLink,
|
|
29
28
|
ColourToggle,
|
|
30
29
|
Divider,
|
|
31
30
|
DownloadApp,
|
|
32
31
|
ExpandCollapse,
|
|
32
|
+
ExpandCollapseAccordion,
|
|
33
|
+
ExpandCollapsePanel,
|
|
33
34
|
ExpandCollapseMini,
|
|
34
35
|
Feedback,
|
|
36
|
+
FileUpload,
|
|
35
37
|
FlexGrid,
|
|
36
38
|
FlexGridCol,
|
|
37
39
|
FlexGridRow,
|
|
38
|
-
FileUpload,
|
|
39
40
|
Icon,
|
|
40
41
|
InputLabel,
|
|
41
42
|
InputSupports,
|
|
43
|
+
ChevronLink,
|
|
42
44
|
Link,
|
|
45
|
+
TextButton,
|
|
43
46
|
Listbox,
|
|
47
|
+
ListboxOverlay,
|
|
44
48
|
Modal,
|
|
45
49
|
MultiSelectFilter,
|
|
46
50
|
Notification,
|
|
47
51
|
Pagination,
|
|
52
|
+
PaginationPageButton,
|
|
53
|
+
PaginationPageButtonBase,
|
|
48
54
|
Portal,
|
|
49
55
|
QuickLinks,
|
|
56
|
+
QuickLinksItem,
|
|
50
57
|
QuickLinksFeature,
|
|
58
|
+
QuickLinksFeatureItem,
|
|
51
59
|
Radio,
|
|
52
60
|
RadioGroup,
|
|
53
61
|
RadioCard,
|
|
@@ -55,18 +63,24 @@ export {
|
|
|
55
63
|
Responsive,
|
|
56
64
|
Search,
|
|
57
65
|
Select,
|
|
66
|
+
SelectItem,
|
|
67
|
+
SelectGroup,
|
|
68
|
+
Shortcuts,
|
|
69
|
+
ShortcutsItem,
|
|
58
70
|
SideNav,
|
|
71
|
+
SideNavItem,
|
|
72
|
+
SideNavItemsGroup,
|
|
59
73
|
Skeleton,
|
|
60
74
|
SkipLink,
|
|
61
75
|
Spacer,
|
|
62
76
|
StackView,
|
|
63
77
|
StackWrap,
|
|
64
|
-
StepTracker,
|
|
65
78
|
Status,
|
|
66
|
-
|
|
79
|
+
StepTracker,
|
|
67
80
|
TabBar,
|
|
81
|
+
TabBarItem,
|
|
82
|
+
Tabs,
|
|
68
83
|
Tags,
|
|
69
|
-
TextButton,
|
|
70
84
|
TextArea,
|
|
71
85
|
TextInput,
|
|
72
86
|
Timeline,
|
package/src/index.js
CHANGED
|
@@ -1,43 +1,52 @@
|
|
|
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
|
|
|
42
51
|
export { ssrStyles } from './utils'
|
|
43
52
|
|
package/src/server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
|
|
4
|
-
const ConditionalWrapper = ({ children, condition, WrapperComponent, wrapperProps }) =>
|
|
4
|
+
export const ConditionalWrapper = ({ children, condition, WrapperComponent, wrapperProps }) =>
|
|
5
5
|
condition ? <WrapperComponent {...wrapperProps}>{children}</WrapperComponent> : children
|
|
6
6
|
|
|
7
7
|
ConditionalWrapper.propTypes = {
|
|
@@ -10,5 +10,3 @@ ConditionalWrapper.propTypes = {
|
|
|
10
10
|
WrapperComponent: PropTypes.elementType,
|
|
11
11
|
wrapperProps: PropTypes.object
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
export default ConditionalWrapper
|