@telus-uds/components-web 4.19.0 → 5.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +12 -0
- package/CHANGELOG.md +24 -1
- package/lib/cjs/Badge/Badge.js +26 -27
- package/lib/cjs/BlockQuote/BlockQuote.js +24 -25
- package/lib/cjs/Breadcrumbs/{Item/Item.js → BreadcrumbItem.js} +36 -37
- package/lib/cjs/Breadcrumbs/Breadcrumbs.js +8 -10
- package/lib/cjs/Callout/Callout.js +24 -25
- package/lib/cjs/Card/Card.js +79 -89
- package/lib/cjs/Card/CardContent.js +53 -29
- package/lib/cjs/Card/CardFooter.js +28 -18
- package/lib/cjs/Countdown/Countdown.js +7 -8
- package/lib/cjs/Countdown/Segment.js +10 -11
- package/lib/cjs/Countdown/dictionary.js +2 -2
- package/lib/cjs/Countdown/types.js +2 -6
- package/lib/cjs/Countdown/useCountdown.js +2 -2
- package/lib/cjs/DatePicker/CalendarContainer.js +66 -67
- package/lib/cjs/DatePicker/DatePicker.js +27 -28
- package/lib/cjs/DatePicker/dictionary.js +3 -4
- package/lib/cjs/DatePicker/reactDatesCss.js +2 -3
- package/lib/cjs/Disclaimer/Disclaimer.js +28 -13
- package/lib/cjs/Footnote/Footnote.js +108 -109
- package/lib/cjs/Footnote/FootnoteLink.js +28 -19
- package/lib/cjs/Footnote/dictionary.js +2 -2
- package/lib/cjs/IconButton/IconButton.js +3 -4
- package/lib/cjs/Image/Image.js +9 -3
- package/lib/cjs/Image/server.js +4 -6
- package/lib/cjs/List/List.js +7 -3
- package/lib/cjs/List/ListItem.js +3 -4
- package/lib/cjs/NavigationBar/NavigationBar.js +8 -9
- package/lib/cjs/NavigationBar/NavigationItem.js +10 -11
- package/lib/cjs/NavigationBar/NavigationSubMenu.js +10 -11
- package/lib/cjs/NavigationBar/collapseItems.js +2 -2
- package/lib/cjs/NavigationBar/resolveItemSelection.js +2 -2
- package/lib/cjs/OptimizeImage/OptimizeImage.js +6 -8
- package/lib/cjs/OptimizeImage/utils/getFallbackUrl.js +3 -4
- package/lib/cjs/OptimizeImage/utils/getImageUrls.js +9 -10
- package/lib/cjs/OptimizeImage/utils/getOptimizedUrl.js +3 -4
- package/lib/cjs/OptimizeImage/utils/hasWebpSupport.js +1 -1
- package/lib/cjs/OptimizeImage/utils/index.js +8 -9
- package/lib/cjs/OptimizeImage/utils/isSvgUrl.js +1 -1
- package/lib/cjs/OrderedList/OrderedList.js +6 -9
- package/lib/cjs/OrderedList/OrderedListBase.js +4 -7
- package/lib/cjs/OrderedList/{Item.js → OrderedListItem.js} +46 -39
- package/lib/cjs/OrderedList/{ItemBase.js → OrderedListItemBase.js} +7 -7
- package/lib/cjs/OrderedList/constants.js +0 -1
- package/lib/cjs/Paragraph/Paragraph.js +10 -11
- package/lib/cjs/PreviewCard/PreviewCard.js +18 -27
- package/lib/cjs/PreviewCard/{AuthorDate.js → PreviewCardAuthorDate.js} +6 -6
- package/lib/cjs/PriceLockup/PriceLockup.js +61 -60
- package/lib/cjs/PriceLockup/dictionary.js +2 -2
- package/lib/cjs/PriceLockup/tokens.js +3 -3
- package/lib/cjs/Progress/ProgressBar.js +14 -17
- package/lib/cjs/QuantitySelector/QuantitySelector.js +8 -9
- package/lib/cjs/QuantitySelector/{SideButton.js → QuantitySelectorSideButton.js} +5 -6
- package/lib/cjs/QuantitySelector/dictionary.js +2 -2
- package/lib/cjs/ResponsiveImage/ResponsiveImage.js +3 -4
- package/lib/cjs/Ribbon/Ribbon.js +56 -65
- package/lib/cjs/SkeletonProvider/SkeletonImage.js +3 -4
- package/lib/cjs/SkeletonProvider/SkeletonProvider.js +10 -10
- package/lib/cjs/SkeletonProvider/SkeletonTypography.js +3 -4
- package/lib/cjs/Span/Span.js +6 -7
- package/lib/cjs/Spinner/Spinner.js +29 -29
- package/lib/cjs/Spinner/SpinnerContent.js +6 -7
- package/lib/cjs/StoryCard/StoryCard.js +17 -22
- package/lib/cjs/Table/Table.js +32 -25
- package/lib/cjs/Table/{Body.js → TableBody.js} +5 -6
- package/lib/cjs/Table/{Cell.js → TableCell.js} +59 -61
- package/lib/cjs/Table/{Header.js → TableHeader.js} +7 -8
- package/lib/cjs/Table/{Row.js → TableRow.js} +18 -19
- package/lib/cjs/Table/{SubHeading.js → TableSubHeading.js} +7 -8
- package/lib/cjs/TermsAndConditions/ExpandCollapse.js +18 -19
- package/lib/cjs/TermsAndConditions/TermsAndConditions.js +44 -44
- package/lib/cjs/TermsAndConditions/dictionary.js +2 -2
- package/lib/cjs/Testimonial/Testimonial.js +24 -31
- package/lib/cjs/Toast/Toast.js +28 -30
- package/lib/cjs/Video/ControlBar/ControlBar.js +48 -47
- package/lib/cjs/Video/ControlBar/Controls/VideoButton/VideoButton.js +6 -6
- package/lib/cjs/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +30 -32
- package/lib/cjs/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +35 -35
- package/lib/cjs/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +42 -42
- package/lib/cjs/Video/MiddleControlButton/MiddleControlButton.js +15 -15
- package/lib/cjs/Video/Video.js +27 -29
- package/lib/cjs/Video/videoText.js +3 -4
- package/lib/cjs/VideoPicker/VideoPicker.js +37 -33
- package/lib/cjs/VideoPicker/VideoPickerPlayer.js +5 -6
- package/lib/cjs/VideoPicker/VideoPickerThumbnail.js +28 -25
- package/lib/cjs/VideoPicker/VideoSlider.js +3 -4
- package/lib/cjs/WaffleGrid/WaffleGrid.js +51 -50
- package/lib/cjs/WebVideo/WebVideo.js +7 -8
- package/lib/cjs/baseExports.js +84 -0
- package/lib/cjs/index.js +179 -105
- package/lib/cjs/server.js +2 -3
- package/lib/cjs/shared/ConditionalWrapper/ConditionalWrapper.js +3 -3
- package/lib/cjs/shared/FullBleedContent/FullBleedContent.js +28 -22
- package/lib/cjs/shared/FullBleedContent/getFullBleedBorderRadius.js +2 -2
- package/lib/cjs/shared/FullBleedContent/index.js +11 -10
- package/lib/cjs/shared/FullBleedContent/useFullBleedContentProps.js +2 -2
- package/lib/cjs/shared/VideoSplash/SplashButton/SplashButton.js +9 -9
- package/lib/cjs/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +50 -50
- package/lib/cjs/shared/VideoSplash/VideoSplash.js +12 -12
- package/lib/cjs/shared/VideoSplash/helpers.js +2 -3
- package/lib/cjs/utils/index.js +14 -15
- package/lib/cjs/utils/isElementFocusable.js +2 -2
- package/lib/cjs/utils/logger.js +2 -6
- package/lib/cjs/utils/media.js +1 -1
- package/lib/cjs/utils/renderStructuredContent.js +3 -4
- package/lib/cjs/utils/scrollToAnchor.js +2 -2
- package/lib/cjs/utils/ssr.js +2 -2
- package/lib/cjs/utils/theming/get-theme-from-server.js +2 -3
- package/lib/cjs/utils/theming/with-client-theme.js +2 -2
- package/lib/cjs/utils/theming/with-server-theme.js +4 -4
- package/lib/cjs/utils/transforms.js +2 -5
- package/lib/cjs/utils/useOverlaidPosition.js +2 -2
- package/lib/cjs/utils/useTypographyTheme.js +2 -2
- package/lib/esm/Badge/Badge.js +25 -26
- package/lib/esm/BlockQuote/BlockQuote.js +23 -24
- package/lib/esm/Breadcrumbs/{Item/Item.js → BreadcrumbItem.js} +35 -36
- package/lib/esm/Breadcrumbs/Breadcrumbs.js +6 -7
- package/lib/esm/Callout/Callout.js +23 -24
- package/lib/esm/Card/Card.js +63 -71
- package/lib/esm/Card/CardContent.js +52 -28
- package/lib/esm/Card/CardFooter.js +27 -18
- package/lib/esm/Countdown/Countdown.js +4 -5
- package/lib/esm/Countdown/Segment.js +8 -9
- package/lib/esm/Countdown/dictionary.js +1 -1
- package/lib/esm/Countdown/types.js +1 -5
- package/lib/esm/Countdown/useCountdown.js +2 -3
- package/lib/esm/DatePicker/CalendarContainer.js +64 -65
- package/lib/esm/DatePicker/DatePicker.js +18 -19
- package/lib/esm/DatePicker/dictionary.js +2 -3
- package/lib/esm/DatePicker/reactDatesCss.js +1 -2
- package/lib/esm/Disclaimer/Disclaimer.js +27 -12
- package/lib/esm/Footnote/Footnote.js +104 -104
- package/lib/esm/Footnote/FootnoteLink.js +26 -17
- package/lib/esm/Footnote/dictionary.js +1 -1
- package/lib/esm/IconButton/IconButton.js +2 -3
- package/lib/esm/Image/Image.js +10 -1
- package/lib/esm/Image/server.js +4 -4
- package/lib/esm/List/List.js +2 -2
- package/lib/esm/List/ListItem.js +2 -3
- package/lib/esm/NavigationBar/NavigationBar.js +5 -6
- package/lib/esm/NavigationBar/NavigationItem.js +9 -10
- package/lib/esm/NavigationBar/NavigationSubMenu.js +7 -8
- package/lib/esm/NavigationBar/collapseItems.js +2 -3
- package/lib/esm/NavigationBar/resolveItemSelection.js +2 -3
- package/lib/esm/OptimizeImage/OptimizeImage.js +4 -6
- package/lib/esm/OptimizeImage/utils/getFallbackUrl.js +2 -2
- package/lib/esm/OptimizeImage/utils/getImageUrls.js +3 -3
- package/lib/esm/OptimizeImage/utils/getOptimizedUrl.js +2 -2
- package/lib/esm/OptimizeImage/utils/hasWebpSupport.js +1 -1
- package/lib/esm/OptimizeImage/utils/index.js +4 -4
- package/lib/esm/OptimizeImage/utils/isSvgUrl.js +1 -1
- package/lib/esm/OrderedList/OrderedList.js +4 -7
- package/lib/esm/OrderedList/OrderedListBase.js +3 -6
- package/lib/esm/OrderedList/{Item.js → OrderedListItem.js} +45 -38
- package/lib/esm/OrderedList/{ItemBase.js → OrderedListItemBase.js} +5 -6
- package/lib/esm/OrderedList/constants.js +0 -1
- package/lib/esm/Paragraph/Paragraph.js +9 -10
- package/lib/esm/PreviewCard/PreviewCard.js +16 -21
- package/lib/esm/PreviewCard/{AuthorDate.js → PreviewCardAuthorDate.js} +4 -5
- package/lib/esm/PriceLockup/PriceLockup.js +57 -56
- package/lib/esm/PriceLockup/dictionary.js +1 -1
- package/lib/esm/PriceLockup/tokens.js +1 -1
- package/lib/esm/Progress/ProgressBar.js +13 -16
- package/lib/esm/QuantitySelector/QuantitySelector.js +6 -7
- package/lib/esm/QuantitySelector/{SideButton.js → QuantitySelectorSideButton.js} +4 -5
- package/lib/esm/QuantitySelector/dictionary.js +1 -1
- package/lib/esm/ResponsiveImage/ResponsiveImage.js +2 -3
- package/lib/esm/Ribbon/Ribbon.js +55 -64
- package/lib/esm/SkeletonProvider/SkeletonImage.js +2 -3
- package/lib/esm/SkeletonProvider/SkeletonProvider.js +6 -7
- package/lib/esm/SkeletonProvider/SkeletonTypography.js +2 -3
- package/lib/esm/Span/Span.js +5 -6
- package/lib/esm/Spinner/Spinner.js +24 -24
- package/lib/esm/Spinner/SpinnerContent.js +5 -6
- package/lib/esm/StoryCard/StoryCard.js +15 -16
- package/lib/esm/Table/Table.js +31 -24
- package/lib/esm/Table/{Body.js → TableBody.js} +4 -5
- package/lib/esm/Table/{Cell.js → TableCell.js} +57 -58
- package/lib/esm/Table/{Header.js → TableHeader.js} +6 -7
- package/lib/esm/Table/{Row.js → TableRow.js} +17 -18
- package/lib/esm/Table/{SubHeading.js → TableSubHeading.js} +6 -7
- package/lib/esm/TermsAndConditions/ExpandCollapse.js +18 -19
- package/lib/esm/TermsAndConditions/TermsAndConditions.js +40 -40
- package/lib/esm/TermsAndConditions/dictionary.js +1 -1
- package/lib/esm/Testimonial/Testimonial.js +22 -29
- package/lib/esm/Toast/Toast.js +26 -27
- package/lib/esm/Video/ControlBar/ControlBar.js +33 -33
- package/lib/esm/Video/ControlBar/Controls/VideoButton/VideoButton.js +5 -6
- package/lib/esm/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +28 -31
- package/lib/esm/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +33 -34
- package/lib/esm/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +38 -39
- package/lib/esm/Video/MiddleControlButton/MiddleControlButton.js +14 -15
- package/lib/esm/Video/Video.js +19 -21
- package/lib/esm/Video/videoText.js +2 -3
- package/lib/esm/VideoPicker/VideoPicker.js +32 -27
- package/lib/esm/VideoPicker/VideoPickerPlayer.js +3 -4
- package/lib/esm/VideoPicker/VideoPickerThumbnail.js +26 -23
- package/lib/esm/VideoPicker/VideoSlider.js +2 -3
- package/lib/esm/WaffleGrid/WaffleGrid.js +49 -46
- package/lib/esm/WebVideo/WebVideo.js +5 -6
- package/lib/esm/baseExports.js +1 -1
- package/lib/esm/index.js +46 -37
- package/lib/esm/server.js +1 -2
- package/lib/esm/shared/ConditionalWrapper/ConditionalWrapper.js +2 -3
- package/lib/esm/shared/FullBleedContent/FullBleedContent.js +25 -20
- package/lib/esm/shared/FullBleedContent/getFullBleedBorderRadius.js +2 -3
- package/lib/esm/shared/FullBleedContent/index.js +3 -4
- package/lib/esm/shared/FullBleedContent/useFullBleedContentProps.js +3 -5
- package/lib/esm/shared/VideoSplash/SplashButton/SplashButton.js +8 -9
- package/lib/esm/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +48 -49
- package/lib/esm/shared/VideoSplash/VideoSplash.js +8 -9
- package/lib/esm/shared/VideoSplash/helpers.js +1 -1
- package/lib/esm/utils/index.js +7 -7
- package/lib/esm/utils/isElementFocusable.js +2 -3
- package/lib/esm/utils/logger.js +0 -4
- package/lib/esm/utils/media.js +1 -1
- package/lib/esm/utils/renderStructuredContent.js +2 -3
- package/lib/esm/utils/scrollToAnchor.js +2 -3
- package/lib/esm/utils/ssr.js +2 -3
- package/lib/esm/utils/theming/get-theme-from-server.js +1 -1
- package/lib/esm/utils/theming/with-client-theme.js +2 -3
- package/lib/esm/utils/theming/with-server-theme.js +3 -4
- package/lib/esm/utils/transforms.js +1 -4
- package/lib/esm/utils/useOverlaidPosition.js +2 -3
- package/lib/esm/utils/useTypographyTheme.js +2 -3
- package/package.json +13 -22
- package/src/Badge/Badge.jsx +18 -20
- package/src/BlockQuote/BlockQuote.jsx +16 -18
- package/src/Breadcrumbs/{Item/Item.jsx → BreadcrumbItem.jsx} +20 -21
- package/src/Breadcrumbs/Breadcrumbs.jsx +6 -9
- package/src/Callout/Callout.jsx +16 -18
- package/src/Card/Card.jsx +59 -80
- package/src/Card/CardContent.jsx +52 -28
- package/src/Card/CardFooter.jsx +26 -12
- package/src/Countdown/Countdown.jsx +3 -5
- package/src/Countdown/Segment.jsx +6 -8
- package/src/Countdown/dictionary.js +1 -1
- package/src/Countdown/types.js +0 -2
- package/src/Countdown/useCountdown.js +1 -3
- package/src/DatePicker/CalendarContainer.jsx +65 -67
- package/src/DatePicker/DatePicker.jsx +17 -19
- package/src/DatePicker/dictionary.js +1 -3
- package/src/DatePicker/reactDatesCss.js +1 -3
- package/src/Disclaimer/Disclaimer.jsx +15 -8
- package/src/Footnote/Footnote.jsx +104 -93
- package/src/Footnote/FootnoteLink.jsx +16 -13
- package/src/Footnote/dictionary.js +1 -1
- package/src/IconButton/IconButton.jsx +1 -3
- package/src/Image/Image.jsx +9 -1
- package/src/Image/server.js +4 -4
- package/src/List/List.jsx +2 -2
- package/src/List/ListItem.jsx +1 -3
- package/src/NavigationBar/NavigationBar.jsx +4 -6
- package/src/NavigationBar/NavigationItem.jsx +6 -8
- package/src/NavigationBar/NavigationSubMenu.jsx +7 -8
- package/src/NavigationBar/collapseItems.js +1 -3
- package/src/NavigationBar/resolveItemSelection.js +1 -3
- package/src/OptimizeImage/OptimizeImage.jsx +3 -6
- package/src/OptimizeImage/utils/getFallbackUrl.js +2 -2
- package/src/OptimizeImage/utils/getImageUrls.js +3 -3
- package/src/OptimizeImage/utils/getOptimizedUrl.js +2 -9
- package/src/OptimizeImage/utils/hasWebpSupport.js +1 -1
- package/src/OptimizeImage/utils/index.js +4 -4
- package/src/OptimizeImage/utils/isSvgUrl.js +1 -1
- package/src/OrderedList/OrderedList.jsx +3 -8
- package/src/OrderedList/OrderedListBase.jsx +2 -7
- package/src/OrderedList/{Item.jsx → OrderedListItem.jsx} +44 -32
- package/src/OrderedList/{ItemBase.jsx → OrderedListItemBase.jsx} +4 -4
- package/src/OrderedList/constants.js +0 -1
- package/src/Paragraph/Paragraph.jsx +7 -9
- package/src/PreviewCard/PreviewCard.jsx +16 -32
- package/src/PreviewCard/{AuthorDate.jsx → PreviewCardAuthorDate.jsx} +3 -5
- package/src/PriceLockup/PriceLockup.jsx +33 -31
- package/src/PriceLockup/dictionary.js +1 -1
- package/src/PriceLockup/tokens.js +1 -1
- package/src/Progress/ProgressBar.jsx +33 -30
- package/src/QuantitySelector/QuantitySelector.jsx +5 -7
- package/src/QuantitySelector/{SideButton.jsx → QuantitySelectorSideButton.jsx} +3 -4
- package/src/QuantitySelector/dictionary.js +1 -1
- package/src/ResponsiveImage/ResponsiveImage.jsx +1 -3
- package/src/Ribbon/Ribbon.jsx +35 -44
- package/src/SkeletonProvider/SkeletonImage.jsx +1 -3
- package/src/SkeletonProvider/SkeletonProvider.jsx +5 -9
- package/src/SkeletonProvider/SkeletonTypography.jsx +1 -3
- package/src/Span/Span.jsx +11 -11
- package/src/Spinner/Spinner.jsx +17 -19
- package/src/Spinner/SpinnerContent.jsx +4 -6
- package/src/StoryCard/StoryCard.jsx +15 -16
- package/src/Table/Table.jsx +81 -75
- package/src/Table/{Body.jsx → TableBody.jsx} +3 -5
- package/src/Table/{Cell.jsx → TableCell.jsx} +69 -65
- package/src/Table/{Header.jsx → TableHeader.jsx} +6 -8
- package/src/Table/{Row.jsx → TableRow.jsx} +11 -12
- package/src/Table/{SubHeading.jsx → TableSubHeading.jsx} +6 -8
- package/src/TermsAndConditions/ExpandCollapse.jsx +18 -19
- package/src/TermsAndConditions/TermsAndConditions.jsx +37 -37
- package/src/TermsAndConditions/dictionary.js +1 -1
- package/src/Testimonial/Testimonial.jsx +20 -28
- package/src/Toast/Toast.jsx +36 -35
- package/src/Video/ControlBar/ControlBar.jsx +28 -25
- package/src/Video/ControlBar/Controls/VideoButton/VideoButton.jsx +4 -6
- package/src/Video/ControlBar/Controls/VideoMenu/VideoMenu.jsx +26 -30
- package/src/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.jsx +31 -33
- package/src/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.jsx +40 -40
- package/src/Video/MiddleControlButton/MiddleControlButton.jsx +10 -12
- package/src/Video/Video.jsx +697 -683
- package/src/Video/videoText.js +1 -3
- package/src/VideoPicker/VideoPicker.jsx +37 -25
- package/src/VideoPicker/VideoPickerPlayer.jsx +2 -4
- package/src/VideoPicker/VideoPickerThumbnail.jsx +26 -15
- package/src/VideoPicker/VideoSlider.jsx +1 -3
- package/src/WaffleGrid/WaffleGrid.jsx +31 -27
- package/src/WebVideo/WebVideo.jsx +4 -6
- package/src/baseExports.js +27 -13
- package/src/index.js +46 -37
- package/src/server.js +1 -2
- package/src/shared/ConditionalWrapper/ConditionalWrapper.jsx +1 -3
- package/src/shared/FullBleedContent/FullBleedContent.jsx +26 -19
- package/src/shared/FullBleedContent/getFullBleedBorderRadius.js +1 -3
- package/src/shared/FullBleedContent/index.js +3 -8
- package/src/shared/FullBleedContent/useFullBleedContentProps.js +2 -5
- package/src/shared/VideoSplash/SplashButton/SplashButton.jsx +5 -7
- package/src/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.jsx +25 -25
- package/src/shared/VideoSplash/VideoSplash.jsx +7 -9
- package/src/shared/VideoSplash/helpers.js +1 -1
- package/src/utils/index.js +7 -7
- package/src/utils/isElementFocusable.js +1 -3
- package/src/utils/logger.js +0 -5
- package/src/utils/media.js +1 -1
- package/src/utils/renderStructuredContent.jsx +1 -3
- package/src/utils/scrollToAnchor.js +1 -3
- package/src/utils/ssr.js +1 -3
- package/src/utils/theming/get-theme-from-server.js +1 -1
- package/src/utils/theming/with-client-theme.jsx +1 -3
- package/src/utils/theming/with-server-theme.jsx +2 -4
- package/src/utils/transforms.js +0 -2
- package/src/utils/useOverlaidPosition.js +1 -3
- package/src/utils/useTypographyTheme.js +1 -3
- package/types/Autocomplete.d.ts +1 -3
- package/types/Badge.d.ts +1 -3
- package/types/BaseProvider.d.ts +1 -3
- package/types/BlockQuote.d.ts +1 -3
- package/types/Box.d.ts +1 -3
- package/types/BreadcrumbItem.d.ts +1 -3
- package/types/Breadcrumbs.d.ts +2 -4
- package/types/Callout.d.ts +1 -3
- package/types/Card.d.ts +1 -3
- package/types/Cell.d.ts +1 -3
- package/types/ControlBar.d.ts +1 -3
- package/types/Countdown.d.ts +1 -3
- package/types/DatePicker.d.ts +1 -3
- package/types/FileUpload.d.ts +1 -3
- package/types/Footnote.d.ts +1 -3
- package/types/FootnoteLink.d.ts +1 -3
- package/types/Listbox.d.ts +1 -3
- package/types/MiddleControlButton.d.ts +1 -3
- package/types/MultiSelectFilter.d.ts +1 -3
- package/types/PriceLockup.d.ts +1 -3
- package/types/QuantitySelector.d.ts +1 -3
- package/types/Ribbon.d.ts +1 -3
- package/types/Spinner.d.ts +1 -3
- package/types/Table.d.ts +1 -3
- package/types/Tooltip.d.ts +1 -3
- package/types/TooltipButton.d.ts +1 -3
- package/types/Typography.d.ts +1 -3
- package/types/Video.d.ts +1 -3
- package/types/VideoButton.d.ts +1 -3
- package/types/VideoMenu.d.ts +1 -3
- package/types/VideoProgressBar.d.ts +1 -3
- package/types/VolumeSlider.d.ts +1 -3
- package/types/WebVideo.d.ts +1 -3
- package/lib/cjs/Badge/index.js +0 -9
- package/lib/cjs/BlockQuote/index.js +0 -9
- package/lib/cjs/Breadcrumbs/index.js +0 -13
- package/lib/cjs/Callout/index.js +0 -9
- package/lib/cjs/Card/index.js +0 -9
- package/lib/cjs/Countdown/index.js +0 -9
- package/lib/cjs/DatePicker/index.js +0 -9
- package/lib/cjs/Disclaimer/index.js +0 -13
- package/lib/cjs/Footnote/index.js +0 -11
- package/lib/cjs/IconButton/index.js +0 -9
- package/lib/cjs/Image/index.js +0 -20
- package/lib/cjs/List/index.js +0 -17
- package/lib/cjs/NavigationBar/index.js +0 -11
- package/lib/cjs/OptimizeImage/index.js +0 -9
- package/lib/cjs/OrderedList/index.js +0 -17
- package/lib/cjs/Paragraph/index.js +0 -9
- package/lib/cjs/PreviewCard/index.js +0 -9
- package/lib/cjs/PriceLockup/index.js +0 -9
- package/lib/cjs/Progress/index.js +0 -11
- package/lib/cjs/QuantitySelector/index.js +0 -9
- package/lib/cjs/ResponsiveImage/index.js +0 -9
- package/lib/cjs/Ribbon/index.js +0 -9
- package/lib/cjs/SkeletonProvider/index.js +0 -9
- package/lib/cjs/Span/index.js +0 -9
- package/lib/cjs/Spinner/index.js +0 -9
- package/lib/cjs/StoryCard/index.js +0 -9
- package/lib/cjs/Table/index.js +0 -24
- package/lib/cjs/TermsAndConditions/index.js +0 -13
- package/lib/cjs/Testimonial/index.js +0 -9
- package/lib/cjs/Toast/index.js +0 -9
- package/lib/cjs/Video/index.js +0 -9
- package/lib/cjs/VideoPicker/index.js +0 -9
- package/lib/cjs/WaffleGrid/index.js +0 -9
- package/lib/cjs/WebVideo/index.js +0 -9
- package/lib/cjs/shared/ConditionalWrapper/index.js +0 -9
- package/lib/esm/Badge/index.js +0 -2
- package/lib/esm/BlockQuote/index.js +0 -2
- package/lib/esm/Breadcrumbs/index.js +0 -1
- package/lib/esm/Callout/index.js +0 -2
- package/lib/esm/Card/index.js +0 -2
- package/lib/esm/Countdown/index.js +0 -2
- package/lib/esm/DatePicker/index.js +0 -2
- package/lib/esm/Disclaimer/index.js +0 -1
- package/lib/esm/Footnote/index.js +0 -4
- package/lib/esm/IconButton/index.js +0 -2
- package/lib/esm/Image/index.js +0 -9
- package/lib/esm/List/index.js +0 -5
- package/lib/esm/NavigationBar/index.js +0 -4
- package/lib/esm/OptimizeImage/index.js +0 -2
- package/lib/esm/OrderedList/index.js +0 -5
- package/lib/esm/Paragraph/index.js +0 -2
- package/lib/esm/PreviewCard/index.js +0 -2
- package/lib/esm/PriceLockup/index.js +0 -2
- package/lib/esm/Progress/index.js +0 -4
- package/lib/esm/QuantitySelector/index.js +0 -2
- package/lib/esm/ResponsiveImage/index.js +0 -2
- package/lib/esm/Ribbon/index.js +0 -2
- package/lib/esm/SkeletonProvider/index.js +0 -2
- package/lib/esm/Span/index.js +0 -2
- package/lib/esm/Spinner/index.js +0 -2
- package/lib/esm/StoryCard/index.js +0 -2
- package/lib/esm/Table/index.js +0 -17
- package/lib/esm/TermsAndConditions/index.js +0 -1
- package/lib/esm/Testimonial/index.js +0 -2
- package/lib/esm/Toast/index.js +0 -2
- package/lib/esm/Video/index.js +0 -2
- package/lib/esm/VideoPicker/index.js +0 -2
- package/lib/esm/WaffleGrid/index.js +0 -2
- package/lib/esm/WebVideo/index.js +0 -2
- package/lib/esm/shared/ConditionalWrapper/index.js +0 -2
- package/src/Badge/index.js +0 -3
- package/src/BlockQuote/index.js +0 -3
- package/src/Breadcrumbs/index.js +0 -1
- package/src/Callout/index.js +0 -3
- package/src/Card/index.js +0 -3
- package/src/Countdown/index.js +0 -3
- package/src/DatePicker/index.js +0 -3
- package/src/Disclaimer/index.js +0 -1
- package/src/Footnote/index.js +0 -6
- package/src/IconButton/index.js +0 -3
- package/src/Image/index.js +0 -10
- package/src/List/index.js +0 -8
- package/src/NavigationBar/index.js +0 -6
- package/src/OptimizeImage/index.js +0 -3
- package/src/OrderedList/index.js +0 -8
- package/src/Paragraph/index.js +0 -3
- package/src/PreviewCard/index.js +0 -3
- package/src/PriceLockup/index.js +0 -3
- package/src/Progress/index.js +0 -6
- package/src/QuantitySelector/index.js +0 -3
- package/src/ResponsiveImage/index.js +0 -3
- package/src/Ribbon/index.js +0 -3
- package/src/SkeletonProvider/index.js +0 -3
- package/src/Span/index.js +0 -3
- package/src/Spinner/index.js +0 -3
- package/src/StoryCard/index.js +0 -3
- package/src/Table/index.js +0 -20
- package/src/TermsAndConditions/index.js +0 -1
- package/src/Testimonial/index.js +0 -3
- package/src/Toast/index.js +0 -3
- package/src/Video/index.js +0 -3
- package/src/VideoPicker/index.js +0 -3
- package/src/WaffleGrid/index.js +0 -3
- package/src/WebVideo/index.js +0 -3
- package/src/shared/ConditionalWrapper/index.js +0 -3
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ControlBar = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _componentsBase = require("@telus-uds/components-base");
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
|
-
var _VideoProgressBar =
|
|
12
|
-
var _VolumeSlider =
|
|
13
|
-
var _VideoButton =
|
|
14
|
-
var _VideoMenu =
|
|
15
|
-
var _videoText =
|
|
11
|
+
var _VideoProgressBar = require("./Controls/VideoProgressBar/VideoProgressBar");
|
|
12
|
+
var _VolumeSlider = require("./Controls/VolumeSlider/VolumeSlider");
|
|
13
|
+
var _VideoButton = require("./Controls/VideoButton/VideoButton");
|
|
14
|
+
var _VideoMenu = require("./Controls/VideoMenu/VideoMenu");
|
|
15
|
+
var _videoText = require("../videoText");
|
|
16
16
|
var _utils = require("../../utils");
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -25,15 +25,15 @@ const ControlBarContainer = /*#__PURE__*/_styledComponents.default.div.withConfi
|
|
|
25
25
|
componentId: "components-web__sc-13y61ky-0"
|
|
26
26
|
})(_ref => {
|
|
27
27
|
let {
|
|
28
|
-
isHidden,
|
|
29
|
-
isMobile
|
|
28
|
+
$isHidden,
|
|
29
|
+
$isMobile
|
|
30
30
|
} = _ref;
|
|
31
31
|
return {
|
|
32
32
|
width: '100%',
|
|
33
33
|
position: 'relative',
|
|
34
34
|
transition: 'opacity 0.4s',
|
|
35
|
-
opacity: isHidden ? 0 : 1,
|
|
36
|
-
display: isMobile ? 'none' : undefined
|
|
35
|
+
opacity: $isHidden ? 0 : 1,
|
|
36
|
+
display: $isMobile ? 'none' : undefined
|
|
37
37
|
};
|
|
38
38
|
});
|
|
39
39
|
const StyledControlBar = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
@@ -41,15 +41,15 @@ const StyledControlBar = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
41
41
|
componentId: "components-web__sc-13y61ky-1"
|
|
42
42
|
})(_ref2 => {
|
|
43
43
|
let {
|
|
44
|
-
padding,
|
|
45
|
-
height
|
|
44
|
+
$padding,
|
|
45
|
+
$height
|
|
46
46
|
} = _ref2;
|
|
47
47
|
return {
|
|
48
48
|
boxSizing: 'border-box',
|
|
49
49
|
position: 'absolute',
|
|
50
50
|
width: '100%',
|
|
51
|
-
height,
|
|
52
|
-
padding,
|
|
51
|
+
height: $height,
|
|
52
|
+
padding: $padding,
|
|
53
53
|
bottom: 0,
|
|
54
54
|
backgroundColor: 'rgba(42, 44, 46, 0.85)',
|
|
55
55
|
// TODO: replace with opaque greyThunder
|
|
@@ -71,17 +71,17 @@ const MenuContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
71
71
|
componentId: "components-web__sc-13y61ky-3"
|
|
72
72
|
})(_ref3 => {
|
|
73
73
|
let {
|
|
74
|
-
isOpen,
|
|
75
|
-
menuBottom,
|
|
76
|
-
menuRight,
|
|
77
|
-
menuMarginLeft
|
|
74
|
+
$isOpen,
|
|
75
|
+
$menuBottom,
|
|
76
|
+
$menuRight,
|
|
77
|
+
$menuMarginLeft
|
|
78
78
|
} = _ref3;
|
|
79
79
|
return {
|
|
80
80
|
position: 'absolute',
|
|
81
|
-
bottom: menuBottom,
|
|
82
|
-
right: menuRight,
|
|
83
|
-
display: isOpen ? 'block' : 'none',
|
|
84
|
-
marginLeft: menuMarginLeft
|
|
81
|
+
bottom: $menuBottom,
|
|
82
|
+
right: $menuRight,
|
|
83
|
+
display: $isOpen ? 'block' : 'none',
|
|
84
|
+
marginLeft: $menuMarginLeft
|
|
85
85
|
};
|
|
86
86
|
});
|
|
87
87
|
const ControlBar = _ref4 => {
|
|
@@ -154,30 +154,31 @@ const ControlBar = _ref4 => {
|
|
|
154
154
|
const parseTracks = () => {
|
|
155
155
|
const parsed = tracks.map((track, trackNumber) => {
|
|
156
156
|
return {
|
|
157
|
-
name: _videoText.
|
|
157
|
+
name: _videoText.videoText[copy][track.language],
|
|
158
158
|
value: trackNumber
|
|
159
159
|
};
|
|
160
160
|
});
|
|
161
161
|
parsed.unshift({
|
|
162
|
-
name: _videoText.
|
|
162
|
+
name: _videoText.videoText[copy].captionsNone,
|
|
163
163
|
value: -1
|
|
164
164
|
});
|
|
165
165
|
return parsed;
|
|
166
166
|
};
|
|
167
167
|
const menuContainerStyleProps = {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
$isOpen: false,
|
|
169
|
+
$menuBottom: menuBottom,
|
|
170
|
+
$menuRight: menuRight,
|
|
171
|
+
$menuMarginLeft: menuMarginLeft
|
|
171
172
|
};
|
|
172
173
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ControlBarContainer, {
|
|
173
|
-
isHidden: isHidden,
|
|
174
|
-
isMobile: isMobile,
|
|
174
|
+
$isHidden: isHidden,
|
|
175
|
+
$isMobile: isMobile,
|
|
175
176
|
...selectProps(rest),
|
|
176
177
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(StyledControlBar, {
|
|
177
|
-
padding: `${paddingTop}px ${paddingRight}px ${paddingBottom}px ${paddingLeft}px`,
|
|
178
|
-
height: `${height}px`,
|
|
178
|
+
$padding: `${paddingTop}px ${paddingRight}px ${paddingBottom}px ${paddingLeft}px`,
|
|
179
|
+
$height: `${height}px`,
|
|
179
180
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(VideoProgressBarContainer, {
|
|
180
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_VideoProgressBar.
|
|
181
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_VideoProgressBar.VideoProgressBar, {
|
|
181
182
|
copy: copy,
|
|
182
183
|
videoPlayer: videoPlayer,
|
|
183
184
|
playing: videoPlaying,
|
|
@@ -187,7 +188,7 @@ const ControlBar = _ref4 => {
|
|
|
187
188
|
setSeek: setSeek,
|
|
188
189
|
resetInactivityTimer: resetInactivityTimer
|
|
189
190
|
})
|
|
190
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_VolumeSlider.
|
|
191
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_VolumeSlider.VolumeSlider, {
|
|
191
192
|
videoPlayer: videoPlayer,
|
|
192
193
|
videoCurrentVolume: videoCurrentVolume,
|
|
193
194
|
setVolume: setVolume,
|
|
@@ -201,9 +202,9 @@ const ControlBar = _ref4 => {
|
|
|
201
202
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_componentsBase.StackView, {
|
|
202
203
|
space: 3,
|
|
203
204
|
direction: "row",
|
|
204
|
-
children: [tracksAvailable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_VideoButton.
|
|
205
|
+
children: [tracksAvailable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_VideoButton.VideoButton, {
|
|
205
206
|
disableFocus: videoUnplayed,
|
|
206
|
-
label: _videoText.
|
|
207
|
+
label: _videoText.videoText[copy].captionsToggle,
|
|
207
208
|
icon: getIcon(captionsIcon),
|
|
208
209
|
onClick: () => {
|
|
209
210
|
setCaptionsMenuOpen(!captionsMenuOpen);
|
|
@@ -212,9 +213,9 @@ const ControlBar = _ref4 => {
|
|
|
212
213
|
},
|
|
213
214
|
onFocus: resetInactivityTimer,
|
|
214
215
|
onBlur: resetInactivityTimer
|
|
215
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_VideoButton.
|
|
216
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_VideoButton.VideoButton, {
|
|
216
217
|
disableFocus: videoUnplayed,
|
|
217
|
-
label: _videoText.
|
|
218
|
+
label: _videoText.videoText[copy].qualityToggle,
|
|
218
219
|
icon: getIcon(settingsIcon),
|
|
219
220
|
onClick: () => {
|
|
220
221
|
setQualityMenuOpen(!qualityMenuOpen);
|
|
@@ -223,29 +224,29 @@ const ControlBar = _ref4 => {
|
|
|
223
224
|
},
|
|
224
225
|
onFocus: resetInactivityTimer,
|
|
225
226
|
onBlur: resetInactivityTimer
|
|
226
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_VideoButton.
|
|
227
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_VideoButton.VideoButton, {
|
|
227
228
|
disableFocus: videoUnplayed,
|
|
228
|
-
label: _videoText.
|
|
229
|
+
label: _videoText.videoText[copy].fullScreenToggle,
|
|
229
230
|
icon: videoIsFullscreen ? getIcon(minimizeIcon) : getIcon(maximizeIcon),
|
|
230
231
|
onClick: toggleFullscreen,
|
|
231
232
|
onFocus: resetInactivityTimer,
|
|
232
233
|
onBlur: resetInactivityTimer
|
|
233
234
|
})]
|
|
234
235
|
}), captionsMenuOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuContainer, {
|
|
235
|
-
isOpen: captionsMenuOpen,
|
|
236
236
|
...menuContainerStyleProps,
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
$isOpen: captionsMenuOpen,
|
|
238
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_VideoMenu.VideoMenu, {
|
|
239
|
+
menuLabel: _videoText.videoText[copy].captionsDialogue,
|
|
239
240
|
menuOptions: parseTracks(),
|
|
240
241
|
setSelection: setTextTracks,
|
|
241
242
|
selectedItem: selectedTextTrack,
|
|
242
243
|
copy: copy
|
|
243
244
|
})
|
|
244
245
|
}), qualityMenuOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuContainer, {
|
|
245
|
-
isOpen: qualityMenuOpen,
|
|
246
246
|
...menuContainerStyleProps,
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
$isOpen: qualityMenuOpen,
|
|
248
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_VideoMenu.VideoMenu, {
|
|
249
|
+
menuLabel: _videoText.videoText[copy].qualityDialogue,
|
|
249
250
|
menuOptions: parseVideoQuality(),
|
|
250
251
|
setSelection: setVideoQuality,
|
|
251
252
|
selectedItem: videoQuality,
|
|
@@ -255,6 +256,7 @@ const ControlBar = _ref4 => {
|
|
|
255
256
|
})
|
|
256
257
|
});
|
|
257
258
|
};
|
|
259
|
+
exports.ControlBar = ControlBar;
|
|
258
260
|
ControlBar.propTypes = {
|
|
259
261
|
...selectedSystemPropTypes,
|
|
260
262
|
videoPlayer: _propTypes.default.object.isRequired,
|
|
@@ -290,5 +292,4 @@ ControlBar.propTypes = {
|
|
|
290
292
|
copy: _propTypes.default.oneOf(['en', 'fr']).isRequired,
|
|
291
293
|
compactModeThreshold: _propTypes.default.number.isRequired,
|
|
292
294
|
videoPlayerWidth: _propTypes.default.number.isRequired
|
|
293
|
-
};
|
|
294
|
-
var _default = exports.default = ControlBar;
|
|
295
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.VideoButton = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _componentsBase = require("@telus-uds/components-base");
|
|
@@ -17,7 +17,7 @@ const StyledButton = /*#__PURE__*/_styledComponents.default.button.withConfig({
|
|
|
17
17
|
componentId: "components-web__sc-kfw0tr-0"
|
|
18
18
|
})(_ref => {
|
|
19
19
|
let {
|
|
20
|
-
color
|
|
20
|
+
$color
|
|
21
21
|
} = _ref;
|
|
22
22
|
return {
|
|
23
23
|
background: 'none',
|
|
@@ -27,7 +27,7 @@ const StyledButton = /*#__PURE__*/_styledComponents.default.button.withConfig({
|
|
|
27
27
|
display: 'inline-flex',
|
|
28
28
|
alignItems: 'stretch',
|
|
29
29
|
'svg path': {
|
|
30
|
-
fill: color
|
|
30
|
+
fill: $color
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
});
|
|
@@ -60,17 +60,17 @@ const VideoButton = _ref2 => {
|
|
|
60
60
|
"aria-label": label,
|
|
61
61
|
onKeyDown: handleOnKeyDown,
|
|
62
62
|
tabIndex: disableFocus ? '-1' : undefined,
|
|
63
|
-
color: color,
|
|
63
|
+
$color: color,
|
|
64
64
|
...selectProps(rest),
|
|
65
65
|
onClick: handleClick,
|
|
66
66
|
children: [icon, children]
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
|
+
exports.VideoButton = VideoButton;
|
|
69
70
|
VideoButton.propTypes = {
|
|
70
71
|
...selectedSystemPropTypes,
|
|
71
72
|
icon: _propTypes.default.element.isRequired,
|
|
72
73
|
label: _propTypes.default.string.isRequired,
|
|
73
74
|
disableFocus: _propTypes.default.bool.isRequired,
|
|
74
75
|
children: _propTypes.default.node
|
|
75
|
-
};
|
|
76
|
-
var _default = exports.default = VideoButton;
|
|
76
|
+
};
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.VideoMenu = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _componentsBase = require("@telus-uds/components-base");
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
|
-
var _videoText =
|
|
11
|
+
var _videoText = require("../../../videoText");
|
|
12
12
|
var _utils = require("../../../../utils");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -18,13 +18,13 @@ const MenuContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
18
18
|
componentId: "components-web__sc-nllbhw-0"
|
|
19
19
|
})(_ref => {
|
|
20
20
|
let {
|
|
21
|
-
padding,
|
|
22
|
-
background
|
|
21
|
+
$padding,
|
|
22
|
+
$background
|
|
23
23
|
} = _ref;
|
|
24
24
|
return {
|
|
25
25
|
width: 114,
|
|
26
|
-
padding,
|
|
27
|
-
backgroundColor: background,
|
|
26
|
+
padding: $padding,
|
|
27
|
+
backgroundColor: $background,
|
|
28
28
|
borderRadius: 5
|
|
29
29
|
};
|
|
30
30
|
});
|
|
@@ -46,27 +46,27 @@ const CheckmarkContainer = /*#__PURE__*/_styledComponents.default.div.withConfig
|
|
|
46
46
|
componentId: "components-web__sc-nllbhw-2"
|
|
47
47
|
})(_ref2 => {
|
|
48
48
|
let {
|
|
49
|
-
isSelectedItem,
|
|
50
|
-
checkMarkWidth,
|
|
51
|
-
checkMarkHeight,
|
|
52
|
-
checkMarkSelectedColor,
|
|
53
|
-
checkMarkHoverColor,
|
|
54
|
-
checkMarkFocusColor,
|
|
55
|
-
checkMarkUnselectedColor
|
|
49
|
+
$isSelectedItem,
|
|
50
|
+
$checkMarkWidth,
|
|
51
|
+
$checkMarkHeight,
|
|
52
|
+
$checkMarkSelectedColor,
|
|
53
|
+
$checkMarkHoverColor,
|
|
54
|
+
$checkMarkFocusColor,
|
|
55
|
+
$checkMarkUnselectedColor
|
|
56
56
|
} = _ref2;
|
|
57
57
|
return {
|
|
58
|
-
width: checkMarkWidth,
|
|
59
|
-
height: checkMarkHeight,
|
|
58
|
+
width: $checkMarkWidth,
|
|
59
|
+
height: $checkMarkHeight,
|
|
60
60
|
marginTop: 2,
|
|
61
61
|
outline: 'none',
|
|
62
62
|
[`${MenuButton} && svg`]: {
|
|
63
|
-
fill: isSelectedItem ? checkMarkSelectedColor : checkMarkUnselectedColor
|
|
63
|
+
fill: $isSelectedItem ? $checkMarkSelectedColor : $checkMarkUnselectedColor
|
|
64
64
|
},
|
|
65
65
|
[`${MenuButton}:hover && svg`]: {
|
|
66
|
-
fill: isSelectedItem ? checkMarkSelectedColor : checkMarkHoverColor
|
|
66
|
+
fill: $isSelectedItem ? $checkMarkSelectedColor : $checkMarkHoverColor
|
|
67
67
|
},
|
|
68
68
|
[`${MenuButton}:focus && svg`]: {
|
|
69
|
-
fill: isSelectedItem ? checkMarkSelectedColor : checkMarkFocusColor
|
|
69
|
+
fill: $isSelectedItem ? $checkMarkSelectedColor : $checkMarkFocusColor
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
});
|
|
@@ -98,9 +98,7 @@ const VideoMenu = _ref3 => {
|
|
|
98
98
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(MenuButton, {
|
|
99
99
|
"aria-haspopup": "true",
|
|
100
100
|
role: "menuitem",
|
|
101
|
-
"aria-label": `${option.name} ${menuLabel}. ${selectedItem === option.value ? _videoText.
|
|
102
|
-
selectedItem: selectedItem,
|
|
103
|
-
itemValue: option.value,
|
|
101
|
+
"aria-label": `${option.name} ${menuLabel}. ${selectedItem === option.value ? _videoText.videoText[copy].itemSelected : _videoText.videoText[copy].itemUnselected}`,
|
|
104
102
|
onClick: () => {
|
|
105
103
|
if (selectedItem !== option.value) {
|
|
106
104
|
setSelection(option.value);
|
|
@@ -113,13 +111,13 @@ const VideoMenu = _ref3 => {
|
|
|
113
111
|
},
|
|
114
112
|
children: option.name
|
|
115
113
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CheckmarkContainer, {
|
|
116
|
-
isSelectedItem: option.value === selectedItem,
|
|
117
|
-
checkMarkWidth: checkMarkWidth,
|
|
118
|
-
checkMarkHeight: checkMarkHeight,
|
|
119
|
-
checkMarkSelectedColor: checkMarkSelectedColor,
|
|
120
|
-
checkMarkHoverColor: checkMarkHoverColor,
|
|
121
|
-
checkMarkFocusColor: checkMarkFocusColor,
|
|
122
|
-
checkMarkUnselectedColor: checkMarkUnselectedColor,
|
|
114
|
+
$isSelectedItem: option.value === selectedItem,
|
|
115
|
+
$checkMarkWidth: checkMarkWidth,
|
|
116
|
+
$checkMarkHeight: checkMarkHeight,
|
|
117
|
+
$checkMarkSelectedColor: checkMarkSelectedColor,
|
|
118
|
+
$checkMarkHoverColor: checkMarkHoverColor,
|
|
119
|
+
$checkMarkFocusColor: checkMarkFocusColor,
|
|
120
|
+
$checkMarkUnselectedColor: checkMarkUnselectedColor,
|
|
123
121
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Icon, {
|
|
124
122
|
icon: checkMarkIcon
|
|
125
123
|
})
|
|
@@ -139,8 +137,8 @@ const VideoMenu = _ref3 => {
|
|
|
139
137
|
};
|
|
140
138
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuContainer, {
|
|
141
139
|
onKeyDown: handleOnKeyDown,
|
|
142
|
-
padding: padding,
|
|
143
|
-
background: background,
|
|
140
|
+
$padding: padding,
|
|
141
|
+
$background: background,
|
|
144
142
|
...selectProps(rest),
|
|
145
143
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_componentsBase.StackView, {
|
|
146
144
|
space: 2,
|
|
@@ -158,6 +156,7 @@ const VideoMenu = _ref3 => {
|
|
|
158
156
|
})
|
|
159
157
|
});
|
|
160
158
|
};
|
|
159
|
+
exports.VideoMenu = VideoMenu;
|
|
161
160
|
VideoMenu.propTypes = {
|
|
162
161
|
...selectedSystemPropTypes,
|
|
163
162
|
menuLabel: _propTypes.default.string.isRequired,
|
|
@@ -165,5 +164,4 @@ VideoMenu.propTypes = {
|
|
|
165
164
|
setSelection: _propTypes.default.func.isRequired,
|
|
166
165
|
selectedItem: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
167
166
|
copy: _propTypes.default.oneOf(['en', 'fr']).isRequired
|
|
168
|
-
};
|
|
169
|
-
var _default = exports.default = VideoMenu;
|
|
167
|
+
};
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.VideoProgressBar = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _componentsBase = require("@telus-uds/components-base");
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
|
-
var _videoText =
|
|
11
|
+
var _videoText = require("../../../videoText");
|
|
12
12
|
var _utils = require("../../../../utils");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -23,19 +23,19 @@ const ProgressBarContainer = /*#__PURE__*/_styledComponents.default.div.withConf
|
|
|
23
23
|
});
|
|
24
24
|
const sharedStyles = _ref => {
|
|
25
25
|
let {
|
|
26
|
-
thumbHeight,
|
|
27
|
-
thumbWidth,
|
|
28
|
-
thumbBackground,
|
|
29
|
-
trackGradientStart,
|
|
30
|
-
trackGradientEnd
|
|
26
|
+
$thumbHeight,
|
|
27
|
+
$thumbWidth,
|
|
28
|
+
$thumbBackground,
|
|
29
|
+
$trackGradientStart,
|
|
30
|
+
$trackGradientEnd
|
|
31
31
|
} = _ref;
|
|
32
32
|
return {
|
|
33
33
|
thumb: {
|
|
34
34
|
appearance: 'none',
|
|
35
|
-
height: thumbHeight,
|
|
36
|
-
width: thumbWidth,
|
|
35
|
+
height: $thumbHeight,
|
|
36
|
+
width: $thumbWidth,
|
|
37
37
|
borderRadius: '50%',
|
|
38
|
-
background: thumbBackground,
|
|
38
|
+
background: $thumbBackground,
|
|
39
39
|
cursor: 'pointer',
|
|
40
40
|
marginTop: -3,
|
|
41
41
|
'&:hover': {
|
|
@@ -47,24 +47,24 @@ const sharedStyles = _ref => {
|
|
|
47
47
|
height: 2,
|
|
48
48
|
cursor: 'pointer',
|
|
49
49
|
borderRadius: 1.3,
|
|
50
|
-
background: `linear-gradient(to right, ${trackGradientStart} 0%,${trackGradientEnd} ${videoBufferDisplay - 0.01}% ,rgba(255,255,255,0.5) ${videoBufferDisplay}%)` // TODO: replace with opaque white from palette
|
|
50
|
+
background: `linear-gradient(to right, ${$trackGradientStart} 0%,${$trackGradientEnd} ${videoBufferDisplay - 0.01}% ,rgba(255,255,255,0.5) ${videoBufferDisplay}%)` // TODO: replace with opaque white from palette
|
|
51
51
|
})
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
const StyledProgressBar = /*#__PURE__*/_styledComponents.default.input.attrs(_ref2 => {
|
|
55
55
|
let {
|
|
56
|
-
videoCurrentTime
|
|
56
|
+
$videoCurrentTime
|
|
57
57
|
} = _ref2;
|
|
58
58
|
return {
|
|
59
|
-
value: videoCurrentTime
|
|
59
|
+
value: $videoCurrentTime
|
|
60
60
|
};
|
|
61
61
|
}).withConfig({
|
|
62
62
|
displayName: "VideoProgressBar__StyledProgressBar",
|
|
63
63
|
componentId: "components-web__sc-d9tm07-1"
|
|
64
64
|
})(_ref3 => {
|
|
65
65
|
let {
|
|
66
|
-
videoBufferDisplay,
|
|
67
|
-
rangeBackground,
|
|
66
|
+
$videoBufferDisplay,
|
|
67
|
+
$rangeBackground,
|
|
68
68
|
...sharedProps
|
|
69
69
|
} = _ref3;
|
|
70
70
|
return {
|
|
@@ -74,7 +74,7 @@ const StyledProgressBar = /*#__PURE__*/_styledComponents.default.input.attrs(_re
|
|
|
74
74
|
'input[type=range]&': {
|
|
75
75
|
appearance: 'none',
|
|
76
76
|
width: '100%',
|
|
77
|
-
background: rangeBackground
|
|
77
|
+
background: $rangeBackground
|
|
78
78
|
},
|
|
79
79
|
'input[type=range]&:focus': {
|
|
80
80
|
outline: 'none'
|
|
@@ -89,15 +89,15 @@ const StyledProgressBar = /*#__PURE__*/_styledComponents.default.input.attrs(_re
|
|
|
89
89
|
margin: 0,
|
|
90
90
|
border: 'none'
|
|
91
91
|
},
|
|
92
|
-
'input[type=range]&::-webkit-slider-runnable-track': sharedStyles(sharedProps).track(videoBufferDisplay),
|
|
93
|
-
'input[type=range]&::-moz-range-track': sharedStyles(sharedProps).track(videoBufferDisplay),
|
|
92
|
+
'input[type=range]&::-webkit-slider-runnable-track': sharedStyles(sharedProps).track($videoBufferDisplay),
|
|
93
|
+
'input[type=range]&::-moz-range-track': sharedStyles(sharedProps).track($videoBufferDisplay),
|
|
94
94
|
'input[type=range]&::-ms-track': {
|
|
95
|
-
...sharedStyles(sharedProps).track(videoBufferDisplay),
|
|
95
|
+
...sharedStyles(sharedProps).track($videoBufferDisplay),
|
|
96
96
|
margin: '6px 0',
|
|
97
97
|
border: 'none'
|
|
98
98
|
},
|
|
99
99
|
'input[type=range]&::-ms-fill-lower': {
|
|
100
|
-
background: rangeBackground
|
|
100
|
+
background: $rangeBackground
|
|
101
101
|
},
|
|
102
102
|
'input[type=range]&::-ms-tooltip': {
|
|
103
103
|
display: 'none'
|
|
@@ -109,10 +109,10 @@ const StyledTimestamp = /*#__PURE__*/_styledComponents.default.span.withConfig({
|
|
|
109
109
|
componentId: "components-web__sc-d9tm07-2"
|
|
110
110
|
})(_ref4 => {
|
|
111
111
|
let {
|
|
112
|
-
margin
|
|
112
|
+
$margin
|
|
113
113
|
} = _ref4;
|
|
114
114
|
return {
|
|
115
|
-
margin
|
|
115
|
+
margin: $margin
|
|
116
116
|
};
|
|
117
117
|
});
|
|
118
118
|
// TODO: unify with the helper from `VideoSplash`
|
|
@@ -159,17 +159,16 @@ const VideoProgressBar = _ref5 => {
|
|
|
159
159
|
const currentTimestamp = getTimestamp(currentTime);
|
|
160
160
|
const remainingTimestamp = getTimestamp(remainingTime);
|
|
161
161
|
const sharedProps = {
|
|
162
|
-
thumbWidth,
|
|
163
|
-
thumbHeight,
|
|
164
|
-
thumbBackground,
|
|
165
|
-
trackGradientStart,
|
|
166
|
-
trackGradientEnd
|
|
167
|
-
rangeBackground
|
|
162
|
+
$thumbWidth: thumbWidth,
|
|
163
|
+
$thumbHeight: thumbHeight,
|
|
164
|
+
$thumbBackground: thumbBackground,
|
|
165
|
+
$trackGradientStart: trackGradientStart,
|
|
166
|
+
$trackGradientEnd: trackGradientEnd
|
|
168
167
|
};
|
|
169
168
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(ProgressBarContainer, {
|
|
170
169
|
...selectProps(rest),
|
|
171
170
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(StyledTimestamp, {
|
|
172
|
-
margin: `0 ${timestampMarginRight}px 0 ${timestampMarginLeft}px`,
|
|
171
|
+
$margin: `0 ${timestampMarginRight}px 0 ${timestampMarginLeft}px`,
|
|
173
172
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
|
|
174
173
|
variant: {
|
|
175
174
|
inverse: true
|
|
@@ -177,19 +176,20 @@ const VideoProgressBar = _ref5 => {
|
|
|
177
176
|
children: currentTimestamp
|
|
178
177
|
})
|
|
179
178
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledProgressBar, {
|
|
180
|
-
"aria-label": _videoText.
|
|
179
|
+
"aria-label": _videoText.videoText[copy].videoProgressBarLabel,
|
|
181
180
|
type: "range",
|
|
182
181
|
step: "any",
|
|
183
182
|
max: videoLength,
|
|
184
|
-
videoCurrentTime: videoCurrentTime,
|
|
183
|
+
$videoCurrentTime: videoCurrentTime,
|
|
185
184
|
onChange: handleVideoSkip,
|
|
186
185
|
onFocus: resetInactivityTimer,
|
|
187
|
-
videoBufferDisplay: videoBufferDisplay,
|
|
186
|
+
$videoBufferDisplay: videoBufferDisplay,
|
|
187
|
+
$rangeBackground: rangeBackground,
|
|
188
188
|
ref: videoProgressBar,
|
|
189
189
|
tabIndex: "-1",
|
|
190
190
|
...sharedProps
|
|
191
191
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledTimestamp, {
|
|
192
|
-
margin: `0 ${remainingTimestampMarginRight}px 0 ${remainingTimestampMarginLeft}px`,
|
|
192
|
+
$margin: `0 ${remainingTimestampMarginRight}px 0 ${remainingTimestampMarginLeft}px`,
|
|
193
193
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
|
|
194
194
|
variant: {
|
|
195
195
|
inverse: true
|
|
@@ -199,6 +199,7 @@ const VideoProgressBar = _ref5 => {
|
|
|
199
199
|
})]
|
|
200
200
|
});
|
|
201
201
|
};
|
|
202
|
+
exports.VideoProgressBar = VideoProgressBar;
|
|
202
203
|
VideoProgressBar.propTypes = {
|
|
203
204
|
...selectedSystemPropTypes,
|
|
204
205
|
copy: _propTypes.default.oneOf(['en', 'fr']),
|
|
@@ -207,5 +208,4 @@ VideoProgressBar.propTypes = {
|
|
|
207
208
|
videoBufferEnd: _propTypes.default.number.isRequired,
|
|
208
209
|
setSeek: _propTypes.default.func.isRequired,
|
|
209
210
|
resetInactivityTimer: _propTypes.default.func.isRequired
|
|
210
|
-
};
|
|
211
|
-
var _default = exports.default = VideoProgressBar;
|
|
211
|
+
};
|