@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
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { getTokensPropType } from '@telus-uds/components-base';
|
|
4
|
-
import
|
|
4
|
+
import { TableRow } from './TableRow';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
const
|
|
6
|
+
export const TableHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
7
7
|
let {
|
|
8
8
|
children,
|
|
9
9
|
tokens
|
|
10
10
|
} = _ref;
|
|
11
11
|
return /*#__PURE__*/_jsx("thead", {
|
|
12
12
|
ref: ref,
|
|
13
|
-
children: /*#__PURE__*/_jsx(
|
|
13
|
+
children: /*#__PURE__*/_jsx(TableRow, {
|
|
14
14
|
tokens: tokens,
|
|
15
15
|
children: React.Children.map(children, child =>
|
|
16
16
|
/*#__PURE__*/
|
|
@@ -21,9 +21,8 @@ const Header = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
21
21
|
})
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
TableHeader.displayName = 'TableHeader';
|
|
25
|
+
TableHeader.propTypes = {
|
|
26
26
|
children: PropTypes.node,
|
|
27
27
|
tokens: getTokensPropType('Table')
|
|
28
|
-
};
|
|
29
|
-
export default Header;
|
|
28
|
+
};
|
|
@@ -4,35 +4,35 @@ import styled from 'styled-components';
|
|
|
4
4
|
import { useTableContext } from './Table';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
const StyledTR = /*#__PURE__*/styled.tr.withConfig({
|
|
7
|
-
displayName: "
|
|
8
|
-
componentId: "components-web__sc-
|
|
7
|
+
displayName: "TableRow__StyledTR",
|
|
8
|
+
componentId: "components-web__sc-1rnznqr-0"
|
|
9
9
|
})(["&:hover{background-color:", " !important;}border-style:", ";border-color:", ";border-width:", "px;border-top-width:", "px;"], _ref => {
|
|
10
10
|
let {
|
|
11
|
-
tokens
|
|
11
|
+
$tokens
|
|
12
12
|
} = _ref;
|
|
13
|
-
return tokens?.rowHoverBackgroundColor;
|
|
13
|
+
return $tokens?.rowHoverBackgroundColor;
|
|
14
14
|
}, _ref2 => {
|
|
15
15
|
let {
|
|
16
|
-
tokens
|
|
16
|
+
$tokens
|
|
17
17
|
} = _ref2;
|
|
18
|
-
return tokens?.rowBorderWidth || tokens?.rowBorderTopWidth ? 'solid' : 'none';
|
|
18
|
+
return $tokens?.rowBorderWidth || $tokens?.rowBorderTopWidth ? 'solid' : 'none';
|
|
19
19
|
}, _ref3 => {
|
|
20
20
|
let {
|
|
21
|
-
tokens
|
|
21
|
+
$tokens
|
|
22
22
|
} = _ref3;
|
|
23
|
-
return tokens?.rowBorderColor;
|
|
23
|
+
return $tokens?.rowBorderColor;
|
|
24
24
|
}, _ref4 => {
|
|
25
25
|
let {
|
|
26
|
-
tokens
|
|
26
|
+
$tokens
|
|
27
27
|
} = _ref4;
|
|
28
|
-
return `${tokens?.rowBorderWidth}` || 0;
|
|
28
|
+
return `${$tokens?.rowBorderWidth}` || 0;
|
|
29
29
|
}, _ref5 => {
|
|
30
30
|
let {
|
|
31
|
-
tokens
|
|
31
|
+
$tokens
|
|
32
32
|
} = _ref5;
|
|
33
|
-
return `${tokens?.rowBorderTopWidth}` || tokens?.rowBorderWidth;
|
|
33
|
+
return `${$tokens?.rowBorderTopWidth}` || $tokens?.rowBorderWidth;
|
|
34
34
|
});
|
|
35
|
-
const
|
|
35
|
+
export const TableRow = /*#__PURE__*/React.forwardRef((_ref6, ref) => {
|
|
36
36
|
let {
|
|
37
37
|
children,
|
|
38
38
|
tokens: rowTokens
|
|
@@ -46,14 +46,14 @@ const Row = /*#__PURE__*/React.forwardRef((_ref6, ref) => {
|
|
|
46
46
|
};
|
|
47
47
|
return /*#__PURE__*/_jsx(StyledTR, {
|
|
48
48
|
ref: ref,
|
|
49
|
-
tokens: mergedTokens,
|
|
49
|
+
$tokens: mergedTokens,
|
|
50
50
|
children: React.Children.map(children, (child, index) => /*#__PURE__*/React.cloneElement(child, {
|
|
51
51
|
isFirstInRow: index === 0
|
|
52
52
|
}))
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
TableRow.displayName = 'TableRow';
|
|
56
|
+
TableRow.propTypes = {
|
|
57
57
|
tokens: PropTypes.shape({
|
|
58
58
|
borderColor: PropTypes.string,
|
|
59
59
|
topBorderWidth: PropTypes.string,
|
|
@@ -63,5 +63,4 @@ Row.propTypes = {
|
|
|
63
63
|
rowHoverBackgroundColor: PropTypes.string
|
|
64
64
|
}),
|
|
65
65
|
children: PropTypes.node
|
|
66
|
-
};
|
|
67
|
-
export default Row;
|
|
66
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { getTokensPropType } from '@telus-uds/components-base';
|
|
4
|
-
import
|
|
4
|
+
import { TableRow } from './TableRow';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
const
|
|
6
|
+
export const TableSubHeading = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
7
7
|
let {
|
|
8
8
|
children,
|
|
9
9
|
tokens
|
|
10
10
|
} = _ref;
|
|
11
|
-
return /*#__PURE__*/_jsx(
|
|
11
|
+
return /*#__PURE__*/_jsx(TableRow, {
|
|
12
12
|
ref: ref,
|
|
13
13
|
tokens: tokens,
|
|
14
14
|
children: React.Children.map(children, child =>
|
|
@@ -19,9 +19,8 @@ const Header = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
19
19
|
}))
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
TableSubHeading.displayName = 'TableSubHeading';
|
|
23
|
+
TableSubHeading.propTypes = {
|
|
24
24
|
children: PropTypes.node,
|
|
25
25
|
tokens: getTokensPropType('Table')
|
|
26
|
-
};
|
|
27
|
-
export default Header;
|
|
26
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { ExpandCollapse as ExpandCollapseBase, IconButton, useThemeTokensCallback } from '@telus-uds/components-base';
|
|
3
|
+
import { ExpandCollapse as ExpandCollapseBase, ExpandCollapsePanel, IconButton, useThemeTokensCallback } from '@telus-uds/components-base';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
6
|
const ExpandCollapseControl = /*#__PURE__*/styled.div.withConfig({
|
|
@@ -18,14 +18,14 @@ const ExpandCollapseIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
18
18
|
componentId: "components-web__sc-1l2mmq7-1"
|
|
19
19
|
})(_ref => {
|
|
20
20
|
let {
|
|
21
|
-
tokens
|
|
21
|
+
$tokens
|
|
22
22
|
} = _ref;
|
|
23
23
|
return {
|
|
24
|
-
alignItems: tokens.expandIconContainerAlignItems,
|
|
25
|
-
justifyContent: tokens.expandIconContainerJustifyContent,
|
|
26
|
-
marginLeft: `${tokens.expandIconContainerMarginY}px`,
|
|
27
|
-
marginRight: `${tokens.expandIconContainerMarginY}px`,
|
|
28
|
-
width: tokens.expandIconContainerWidth
|
|
24
|
+
alignItems: $tokens.expandIconContainerAlignItems,
|
|
25
|
+
justifyContent: $tokens.expandIconContainerJustifyContent,
|
|
26
|
+
marginLeft: `${$tokens.expandIconContainerMarginY}px`,
|
|
27
|
+
marginRight: `${$tokens.expandIconContainerMarginY}px`,
|
|
28
|
+
width: $tokens.expandIconContainerWidth
|
|
29
29
|
};
|
|
30
30
|
});
|
|
31
31
|
const ExpandCollapseTitle = /*#__PURE__*/styled.h4.withConfig({
|
|
@@ -33,14 +33,14 @@ const ExpandCollapseTitle = /*#__PURE__*/styled.h4.withConfig({
|
|
|
33
33
|
componentId: "components-web__sc-1l2mmq7-2"
|
|
34
34
|
})(_ref2 => {
|
|
35
35
|
let {
|
|
36
|
-
tokens
|
|
36
|
+
$tokens
|
|
37
37
|
} = _ref2;
|
|
38
38
|
return {
|
|
39
|
-
color: tokens.expandTitleColor,
|
|
40
|
-
fontFamily: `${tokens.expandTitleFontName}${tokens.expandTitleFontWeight}normal`,
|
|
41
|
-
fontSize: tokens.expandTitleFontSize,
|
|
42
|
-
lineHeight: tokens.expandTitleLineHeight,
|
|
43
|
-
margin: `${tokens.expandTitleMarginX}px ${tokens.expandTitleMarginY}px`
|
|
39
|
+
color: $tokens.expandTitleColor,
|
|
40
|
+
fontFamily: `${$tokens.expandTitleFontName}${$tokens.expandTitleFontWeight}normal`,
|
|
41
|
+
fontSize: $tokens.expandTitleFontSize,
|
|
42
|
+
lineHeight: $tokens.expandTitleLineHeight,
|
|
43
|
+
margin: `${$tokens.expandTitleMarginX}px ${$tokens.expandTitleMarginY}px`
|
|
44
44
|
};
|
|
45
45
|
});
|
|
46
46
|
const getIconButtonTokens = _ref3 => {
|
|
@@ -63,7 +63,7 @@ const getIconButtonTokens = _ref3 => {
|
|
|
63
63
|
outerBorderWidth: iconOuterBorderWidth
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
-
const ExpandCollapse = /*#__PURE__*/React.forwardRef((_ref4, ref) => {
|
|
66
|
+
export const ExpandCollapse = /*#__PURE__*/React.forwardRef((_ref4, ref) => {
|
|
67
67
|
let {
|
|
68
68
|
children,
|
|
69
69
|
collapseTitle,
|
|
@@ -90,7 +90,7 @@ const ExpandCollapse = /*#__PURE__*/React.forwardRef((_ref4, ref) => {
|
|
|
90
90
|
tokens: {
|
|
91
91
|
borderWidth: expandBaseBorderWidth
|
|
92
92
|
},
|
|
93
|
-
children: expandProps => /*#__PURE__*/_jsx(
|
|
93
|
+
children: expandProps => /*#__PURE__*/_jsx(ExpandCollapsePanel, {
|
|
94
94
|
...expandProps,
|
|
95
95
|
panelId: "ExpandCollapsePanel",
|
|
96
96
|
controlTokens: {
|
|
@@ -113,7 +113,7 @@ const ExpandCollapse = /*#__PURE__*/React.forwardRef((_ref4, ref) => {
|
|
|
113
113
|
return /*#__PURE__*/_jsxs(ExpandCollapseControl, {
|
|
114
114
|
ref: ref,
|
|
115
115
|
children: [/*#__PURE__*/_jsx(ExpandCollapseIconContainer, {
|
|
116
|
-
tokens: getTokens(),
|
|
116
|
+
$tokens: getTokens(),
|
|
117
117
|
children: /*#__PURE__*/_jsx(IconButton, {
|
|
118
118
|
variant: {
|
|
119
119
|
size: 'small'
|
|
@@ -124,7 +124,7 @@ const ExpandCollapse = /*#__PURE__*/React.forwardRef((_ref4, ref) => {
|
|
|
124
124
|
accessibilityRole: "none"
|
|
125
125
|
})
|
|
126
126
|
}), /*#__PURE__*/_jsx(ExpandCollapseTitle, {
|
|
127
|
-
tokens: getTokens(),
|
|
127
|
+
$tokens: getTokens(),
|
|
128
128
|
children: expanded ? expandTitle : collapseTitle
|
|
129
129
|
})]
|
|
130
130
|
});
|
|
@@ -149,5 +149,4 @@ ExpandCollapse.propTypes = {
|
|
|
149
149
|
expandTitle: PropTypes.string,
|
|
150
150
|
collapseLabel: PropTypes.string,
|
|
151
151
|
expandLabel: PropTypes.string
|
|
152
|
-
};
|
|
153
|
-
export default ExpandCollapse;
|
|
152
|
+
};
|
|
@@ -2,10 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Box, Divider, selectSystemProps, Typography, useCopy, useThemeTokens, useViewport, getTokensPropType, useTheme, useResponsiveThemeTokens, createMediaQueryStyles, StyleSheet } from '@telus-uds/components-base';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import ExpandCollapse from './ExpandCollapse';
|
|
6
|
-
import OrderedListBase from '../OrderedList/OrderedListBase';
|
|
5
|
+
import { ExpandCollapse } from './ExpandCollapse';
|
|
6
|
+
import { OrderedListBase } from '../OrderedList/OrderedListBase';
|
|
7
|
+
import { OrderedListItemBase } from '../OrderedList/OrderedListItemBase';
|
|
7
8
|
import { htmlAttrs, media, renderStructuredContent } from '../utils';
|
|
8
|
-
import defaultDictionary from './dictionary';
|
|
9
|
+
import { dictionary as defaultDictionary } from './dictionary';
|
|
9
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
11
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
11
12
|
const ContentContainer = /*#__PURE__*/styled.div.withConfig({
|
|
@@ -13,14 +14,14 @@ const ContentContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
13
14
|
componentId: "components-web__sc-1199epn-0"
|
|
14
15
|
})(_ref => {
|
|
15
16
|
let {
|
|
16
|
-
tokens
|
|
17
|
+
$tokens
|
|
17
18
|
} = _ref;
|
|
18
19
|
return {
|
|
19
|
-
paddingBottom: tokens.contentPaddingBottom,
|
|
20
|
-
paddingLeft: tokens.contentPaddingLeft,
|
|
20
|
+
paddingBottom: $tokens.contentPaddingBottom,
|
|
21
|
+
paddingLeft: $tokens.contentPaddingLeft,
|
|
21
22
|
...media().from('md').css({
|
|
22
|
-
paddingBottom: tokens.mdContentPaddingBottom,
|
|
23
|
-
paddingLeft: tokens.mdContentPaddingLeft
|
|
23
|
+
paddingBottom: $tokens.mdContentPaddingBottom,
|
|
24
|
+
paddingLeft: $tokens.mdContentPaddingLeft
|
|
24
25
|
})
|
|
25
26
|
};
|
|
26
27
|
});
|
|
@@ -29,11 +30,11 @@ const Ordered = /*#__PURE__*/styled(OrderedListBase).withConfig({
|
|
|
29
30
|
componentId: "components-web__sc-1199epn-1"
|
|
30
31
|
})(_ref2 => {
|
|
31
32
|
let {
|
|
32
|
-
tokens
|
|
33
|
+
$tokens
|
|
33
34
|
} = _ref2;
|
|
34
35
|
return {
|
|
35
36
|
listStylePosition: 'outside',
|
|
36
|
-
padding: tokens.orderedPadding
|
|
37
|
+
padding: $tokens.orderedPadding
|
|
37
38
|
};
|
|
38
39
|
});
|
|
39
40
|
const Unordered = /*#__PURE__*/styled.ul.withConfig({
|
|
@@ -41,36 +42,36 @@ const Unordered = /*#__PURE__*/styled.ul.withConfig({
|
|
|
41
42
|
componentId: "components-web__sc-1199epn-2"
|
|
42
43
|
})(_ref3 => {
|
|
43
44
|
let {
|
|
44
|
-
tokens
|
|
45
|
+
$tokens
|
|
45
46
|
} = _ref3;
|
|
46
47
|
return {
|
|
47
48
|
listStyleType: 'none',
|
|
48
49
|
margin: 0,
|
|
49
50
|
padding: 0,
|
|
50
|
-
paddingTop: tokens.unorderedPadding
|
|
51
|
+
paddingTop: $tokens.unorderedPadding
|
|
51
52
|
};
|
|
52
53
|
});
|
|
53
|
-
const ListItem = /*#__PURE__*/styled(
|
|
54
|
+
const ListItem = /*#__PURE__*/styled(OrderedListItemBase).withConfig({
|
|
54
55
|
displayName: "TermsAndConditions__ListItem",
|
|
55
56
|
componentId: "components-web__sc-1199epn-3"
|
|
56
57
|
})(_ref4 => {
|
|
57
58
|
let {
|
|
58
|
-
tokens
|
|
59
|
+
$tokens
|
|
59
60
|
} = _ref4;
|
|
60
61
|
return {
|
|
61
62
|
display: 'list-item',
|
|
62
63
|
'&::marker': {
|
|
63
|
-
fontFamily: `${tokens.listFontName}${tokens.listFontWeight}normal`,
|
|
64
|
-
fontSize: tokens.listFontSize,
|
|
65
|
-
lineHeight: tokens.listLineHeight,
|
|
64
|
+
fontFamily: `${$tokens.listFontName}${$tokens.listFontWeight}normal`,
|
|
65
|
+
fontSize: $tokens.listFontSize,
|
|
66
|
+
lineHeight: $tokens.listLineHeight,
|
|
66
67
|
textAlign: 'end !important'
|
|
67
68
|
},
|
|
68
|
-
color: tokens.listColor,
|
|
69
|
-
fontFamily: `${tokens.listFontName}${tokens.listFontWeight}normal`,
|
|
70
|
-
fontSize: tokens.listFontSize,
|
|
71
|
-
lineHeight: tokens.listLineHeight,
|
|
72
|
-
marginBottom: tokens.listMarginBottom,
|
|
73
|
-
marginLeft: tokens.listMarginLeft,
|
|
69
|
+
color: $tokens.listColor,
|
|
70
|
+
fontFamily: `${$tokens.listFontName}${$tokens.listFontWeight}normal`,
|
|
71
|
+
fontSize: $tokens.listFontSize,
|
|
72
|
+
lineHeight: $tokens.listLineHeight,
|
|
73
|
+
marginBottom: $tokens.listMarginBottom,
|
|
74
|
+
marginLeft: $tokens.listMarginLeft,
|
|
74
75
|
wordBreak: 'break-word'
|
|
75
76
|
};
|
|
76
77
|
});
|
|
@@ -79,13 +80,13 @@ const NonIndexedContentTitle = /*#__PURE__*/styled.div.withConfig({
|
|
|
79
80
|
componentId: "components-web__sc-1199epn-4"
|
|
80
81
|
})(_ref5 => {
|
|
81
82
|
let {
|
|
82
|
-
tokens
|
|
83
|
+
$tokens
|
|
83
84
|
} = _ref5;
|
|
84
85
|
return {
|
|
85
|
-
color: tokens.titleColor,
|
|
86
|
-
fontSize: tokens.titleFontSize,
|
|
87
|
-
lineHeight: tokens.titleLineHeight,
|
|
88
|
-
paddingLeft: tokens.titlePaddingLeft
|
|
86
|
+
color: $tokens.titleColor,
|
|
87
|
+
fontSize: $tokens.titleFontSize,
|
|
88
|
+
lineHeight: $tokens.titleLineHeight,
|
|
89
|
+
paddingLeft: $tokens.titlePaddingLeft
|
|
89
90
|
};
|
|
90
91
|
});
|
|
91
92
|
|
|
@@ -98,7 +99,7 @@ const NonIndexedContentTitle = /*#__PURE__*/styled.div.withConfig({
|
|
|
98
99
|
* - Responsive display based on breakpoints
|
|
99
100
|
* - Use `copy` to set language, ‘en’ for English or ‘fr’ for French
|
|
100
101
|
*/
|
|
101
|
-
const TermsAndConditions = /*#__PURE__*/React.forwardRef((_ref6, ref) => {
|
|
102
|
+
export const TermsAndConditions = /*#__PURE__*/React.forwardRef((_ref6, ref) => {
|
|
102
103
|
let {
|
|
103
104
|
copy = 'en',
|
|
104
105
|
indexedContent = [],
|
|
@@ -182,22 +183,22 @@ const TermsAndConditions = /*#__PURE__*/React.forwardRef((_ref6, ref) => {
|
|
|
182
183
|
expandLabel: getCopy('expandLabel'),
|
|
183
184
|
ref: ref,
|
|
184
185
|
children: /*#__PURE__*/_jsxs(ContentContainer, {
|
|
185
|
-
tokens: themeTokens,
|
|
186
|
+
$tokens: themeTokens,
|
|
186
187
|
children: [hasIndexedContent && /*#__PURE__*/_jsx(Ordered, {
|
|
187
|
-
tokens: themeTokens,
|
|
188
|
+
$tokens: themeTokens,
|
|
188
189
|
children: indexedContent.map((contentItem, idx) =>
|
|
189
190
|
/*#__PURE__*/
|
|
190
191
|
// eslint-disable-next-line react/no-array-index-key
|
|
191
192
|
_jsx(ListItem, {
|
|
192
|
-
tokens: listItemStyles,
|
|
193
|
-
media: listItemMediaIds,
|
|
193
|
+
$tokens: listItemStyles,
|
|
194
|
+
"data-media": listItemMediaIds,
|
|
194
195
|
children: renderStructuredContent(contentItem)
|
|
195
196
|
}, idx))
|
|
196
197
|
}), hasNonIndexedContent && /*#__PURE__*/_jsxs(Box, {
|
|
197
198
|
between: 3,
|
|
198
199
|
children: [/*#__PURE__*/_jsx(NonIndexedContentTitle, {
|
|
199
|
-
tokens: nonIndexedContentStyles,
|
|
200
|
-
media: nonIndexedContentMediaIds,
|
|
200
|
+
$tokens: nonIndexedContentStyles,
|
|
201
|
+
"data-media": nonIndexedContentMediaIds,
|
|
201
202
|
children: /*#__PURE__*/_jsx(Typography, {
|
|
202
203
|
block: true,
|
|
203
204
|
heading: true,
|
|
@@ -210,13 +211,13 @@ const TermsAndConditions = /*#__PURE__*/React.forwardRef((_ref6, ref) => {
|
|
|
210
211
|
children: getCopy('nonIndexedTitle')
|
|
211
212
|
})
|
|
212
213
|
}), /*#__PURE__*/_jsx(Unordered, {
|
|
213
|
-
tokens: themeTokens,
|
|
214
|
+
$tokens: themeTokens,
|
|
214
215
|
children: nonIndexedContent.map((contentItem, idx) =>
|
|
215
216
|
/*#__PURE__*/
|
|
216
217
|
// eslint-disable-next-line react/no-array-index-key
|
|
217
218
|
_jsx(ListItem, {
|
|
218
|
-
tokens: listItemStyles,
|
|
219
|
-
media: listItemMediaIds,
|
|
219
|
+
$tokens: listItemStyles,
|
|
220
|
+
"data-media": listItemMediaIds,
|
|
220
221
|
children: renderStructuredContent(contentItem)
|
|
221
222
|
}, idx))
|
|
222
223
|
})]
|
|
@@ -272,5 +273,4 @@ TermsAndConditions.propTypes = {
|
|
|
272
273
|
en: dictionaryContentShape,
|
|
273
274
|
fr: dictionaryContentShape
|
|
274
275
|
})
|
|
275
|
-
};
|
|
276
|
-
export default TermsAndConditions;
|
|
276
|
+
};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Icon, selectSystemProps, Typography, useThemeTokens, useViewport, getTokensPropType } from '@telus-uds/components-base';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import Image from '../Image';
|
|
5
|
+
import { Image } from '../Image/Image';
|
|
6
6
|
import { htmlAttrs } from '../utils';
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
@@ -11,12 +11,12 @@ const TestimonialContainer = /*#__PURE__*/styled.figure.withConfig({
|
|
|
11
11
|
componentId: "components-web__sc-1az53gr-0"
|
|
12
12
|
})(_ref => {
|
|
13
13
|
let {
|
|
14
|
-
testimonialContainerGap
|
|
14
|
+
$testimonialContainerGap
|
|
15
15
|
} = _ref;
|
|
16
16
|
return {
|
|
17
17
|
display: 'flex',
|
|
18
18
|
flexDirection: 'column',
|
|
19
|
-
gap: testimonialContainerGap,
|
|
19
|
+
gap: $testimonialContainerGap,
|
|
20
20
|
margin: 0
|
|
21
21
|
};
|
|
22
22
|
});
|
|
@@ -25,12 +25,12 @@ const QuoteContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
25
25
|
componentId: "components-web__sc-1az53gr-1"
|
|
26
26
|
})(_ref2 => {
|
|
27
27
|
let {
|
|
28
|
-
quoteContainerGap
|
|
28
|
+
$quoteContainerGap
|
|
29
29
|
} = _ref2;
|
|
30
30
|
return {
|
|
31
31
|
display: 'flex',
|
|
32
32
|
alignItems: 'center',
|
|
33
|
-
gap: quoteContainerGap
|
|
33
|
+
gap: $quoteContainerGap
|
|
34
34
|
};
|
|
35
35
|
});
|
|
36
36
|
const Divider = /*#__PURE__*/styled.div.withConfig({
|
|
@@ -38,12 +38,12 @@ const Divider = /*#__PURE__*/styled.div.withConfig({
|
|
|
38
38
|
componentId: "components-web__sc-1az53gr-2"
|
|
39
39
|
})(_ref3 => {
|
|
40
40
|
let {
|
|
41
|
-
dividerBorder,
|
|
42
|
-
dividerBackgroundColor
|
|
41
|
+
$dividerBorder,
|
|
42
|
+
$dividerBackgroundColor
|
|
43
43
|
} = _ref3;
|
|
44
44
|
return {
|
|
45
|
-
height: dividerBorder,
|
|
46
|
-
background: dividerBackgroundColor,
|
|
45
|
+
height: $dividerBorder,
|
|
46
|
+
background: $dividerBackgroundColor,
|
|
47
47
|
width: '100%'
|
|
48
48
|
};
|
|
49
49
|
});
|
|
@@ -65,21 +65,20 @@ const Figcaption = /*#__PURE__*/styled.figcaption.withConfig({
|
|
|
65
65
|
componentId: "components-web__sc-1az53gr-5"
|
|
66
66
|
})(_ref4 => {
|
|
67
67
|
let {
|
|
68
|
-
figcaptionGap
|
|
68
|
+
$figcaptionGap
|
|
69
69
|
} = _ref4;
|
|
70
70
|
return {
|
|
71
71
|
display: 'flex',
|
|
72
72
|
alignItems: 'center',
|
|
73
|
-
gap: figcaptionGap
|
|
73
|
+
gap: $figcaptionGap
|
|
74
74
|
};
|
|
75
75
|
});
|
|
76
|
-
const Testimonial = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
|
|
76
|
+
export const Testimonial = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
|
|
77
77
|
let {
|
|
78
78
|
showDivider,
|
|
79
79
|
testimonial,
|
|
80
80
|
title,
|
|
81
|
-
|
|
82
|
-
image = imageSrc,
|
|
81
|
+
image,
|
|
83
82
|
additionalInfo,
|
|
84
83
|
testimonialStyle = 'large',
|
|
85
84
|
tokens,
|
|
@@ -123,11 +122,11 @@ const Testimonial = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
|
|
|
123
122
|
return quote;
|
|
124
123
|
};
|
|
125
124
|
return /*#__PURE__*/_jsxs(TestimonialContainer, {
|
|
126
|
-
testimonialContainerGap: testimonialContainerGap,
|
|
125
|
+
$testimonialContainerGap: testimonialContainerGap,
|
|
127
126
|
ref: ref,
|
|
128
127
|
...selectProps(rest),
|
|
129
128
|
children: [/*#__PURE__*/_jsxs(QuoteContainer, {
|
|
130
|
-
quoteContainerGap: quoteContainerGap,
|
|
129
|
+
$quoteContainerGap: quoteContainerGap,
|
|
131
130
|
children: [/*#__PURE__*/_jsx(Icon, {
|
|
132
131
|
tokens: {
|
|
133
132
|
color: iconColor
|
|
@@ -137,8 +136,8 @@ const Testimonial = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
|
|
|
137
136
|
},
|
|
138
137
|
icon: copy === 'en' ? icon : iconFr
|
|
139
138
|
}), showDivider && /*#__PURE__*/_jsx(Divider, {
|
|
140
|
-
dividerBackgroundColor: dividerBackgroundColor,
|
|
141
|
-
dividerBorder: dividerBorder,
|
|
139
|
+
$dividerBackgroundColor: dividerBackgroundColor,
|
|
140
|
+
$dividerBorder: dividerBorder,
|
|
142
141
|
role: "separator"
|
|
143
142
|
})]
|
|
144
143
|
}), /*#__PURE__*/_jsx(BlockQuote, {
|
|
@@ -156,7 +155,7 @@ const Testimonial = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
|
|
|
156
155
|
children: `${getQuoteTestimonial(true)}${testimonial}${getQuoteTestimonial()}`
|
|
157
156
|
})
|
|
158
157
|
}), (image || title || additionalInfo) && /*#__PURE__*/_jsxs(Figcaption, {
|
|
159
|
-
figcaptionGap: figcaptionGap,
|
|
158
|
+
$figcaptionGap: figcaptionGap,
|
|
160
159
|
children: [image && (typeof image === 'string' ? /*#__PURE__*/_jsx(Image, {
|
|
161
160
|
rounded: "circle",
|
|
162
161
|
src: image,
|
|
@@ -191,8 +190,8 @@ const Testimonial = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
|
|
|
191
190
|
})]
|
|
192
191
|
})]
|
|
193
192
|
}), showDivider && /*#__PURE__*/_jsx(Divider, {
|
|
194
|
-
dividerBackgroundColor: dividerBackgroundColor,
|
|
195
|
-
dividerBorder: dividerBorder,
|
|
193
|
+
$dividerBackgroundColor: dividerBackgroundColor,
|
|
194
|
+
$dividerBorder: dividerBorder,
|
|
196
195
|
role: "separator"
|
|
197
196
|
})]
|
|
198
197
|
});
|
|
@@ -224,11 +223,5 @@ Testimonial.propTypes = {
|
|
|
224
223
|
/**
|
|
225
224
|
* The src attribute for the Image component or custom JSX content to render instead
|
|
226
225
|
*/
|
|
227
|
-
image: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
228
|
-
|
|
229
|
-
* The src attribute for the `Image` component to be displayed on the testimonial
|
|
230
|
-
* @deprecated please use the `image` prop instead
|
|
231
|
-
*/
|
|
232
|
-
imageSrc: PropTypes.string
|
|
233
|
-
};
|
|
234
|
-
export default Testimonial;
|
|
226
|
+
image: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
227
|
+
};
|
package/lib/esm/Toast/Toast.js
CHANGED
|
@@ -10,32 +10,32 @@ const slideDown = property => function (from, to) {
|
|
|
10
10
|
let end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : to;
|
|
11
11
|
return keyframes(["0%{", ":", ";}99%{", ":", ";}100%{", ":", ";}"], property, from, property, to, property, end);
|
|
12
12
|
};
|
|
13
|
-
const animation = props => css(["", " 1s ease-in-out 2s forwards,", " 1s ease-in-out 2s forwards,", " 1s ease-in-out 2s forwards,", " 1s ease-in-out 3.2s forwards;& *{animation:", " 1s ease-in-out 3s forwards;}& > a div{animation:", " 1s ease-in-out 3s forwards;}& > a svg{animation:", " 1s ease-in-out 3s forwards;}& > a div{animation:", " 1s ease-in-out 3s forwards;}"], slideDown('height')(`${props
|
|
13
|
+
const animation = props => css(["", " 1s ease-in-out 2s forwards,", " 1s ease-in-out 2s forwards,", " 1s ease-in-out 2s forwards,", " 1s ease-in-out 3.2s forwards;& *{animation:", " 1s ease-in-out 3s forwards;}& > a div{animation:", " 1s ease-in-out 3s forwards;}& > a svg{animation:", " 1s ease-in-out 3s forwards;}& > a div{animation:", " 1s ease-in-out 3s forwards;}"], slideDown('height')(`${props.$animationHeightBefore}px`, `${props.$animationHeightAfter}px`, 'auto'), transform('padding-bottom')(`${props.$animationPaddingBottomBefore}px`, `${props.$animationPaddingBottomAfter}px`), transform('padding-top')(`${props.$animationPaddingTopBefore}px`, `${props.$animationPaddingTopAfter}px`), transform('background')(props.$animationBackgroundColorBefore, props.$animationBackgroundColorAfter), transform('color')(props.$animationColorBefore, props.$animationColorAfter), transform('color')(props.$animationDivColorBefore, props.$animationDivColorAfter), transform('fill')(props.$animationFillColorBefore, props.$animationFillColorAfter), transform('color')(props.$animationFillColorBefore, props.$animationFillColorAfter));
|
|
14
14
|
const ToastContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15
15
|
displayName: "Toast__ToastContainer",
|
|
16
16
|
componentId: "components-web__sc-p78jdh-0"
|
|
17
17
|
})(["display:flex;justify-content:center;align-items:center;flex-wrap:wrap;padding-left:", "px;padding-right:", "px;background:", ";gap:", ";height:0;overflow:hidden;animation:", ";"], _ref => {
|
|
18
18
|
let {
|
|
19
|
-
padding
|
|
19
|
+
$padding
|
|
20
20
|
} = _ref;
|
|
21
|
-
return padding;
|
|
21
|
+
return $padding;
|
|
22
22
|
}, _ref2 => {
|
|
23
23
|
let {
|
|
24
|
-
padding
|
|
24
|
+
$padding
|
|
25
25
|
} = _ref2;
|
|
26
|
-
return padding;
|
|
26
|
+
return $padding;
|
|
27
27
|
}, _ref3 => {
|
|
28
28
|
let {
|
|
29
|
-
containerBackgroundColor
|
|
29
|
+
$containerBackgroundColor
|
|
30
30
|
} = _ref3;
|
|
31
|
-
return containerBackgroundColor;
|
|
31
|
+
return $containerBackgroundColor;
|
|
32
32
|
}, _ref4 => {
|
|
33
33
|
let {
|
|
34
|
-
containerGap
|
|
34
|
+
$containerGap
|
|
35
35
|
} = _ref4;
|
|
36
|
-
return containerGap;
|
|
36
|
+
return $containerGap;
|
|
37
37
|
}, animation);
|
|
38
|
-
const Toast = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
|
|
38
|
+
export const Toast = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
|
|
39
39
|
let {
|
|
40
40
|
toast,
|
|
41
41
|
copy,
|
|
@@ -79,22 +79,22 @@ const Toast = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
|
|
|
79
79
|
return null;
|
|
80
80
|
}
|
|
81
81
|
return /*#__PURE__*/_jsxs(ToastContainer, {
|
|
82
|
-
containerBackgroundColor: containerBackgroundColor,
|
|
83
|
-
containerGap: containerGap,
|
|
84
|
-
animationHeightBefore: animationHeightBefore,
|
|
85
|
-
animationHeightAfter: animationHeightAfter,
|
|
86
|
-
animationPaddingBottomBefore: animationPaddingBottomBefore,
|
|
87
|
-
animationPaddingBottomAfter: animationPaddingBottomAfter,
|
|
88
|
-
animationPaddingTopBefore: animationPaddingTopBefore,
|
|
89
|
-
animationPaddingTopAfter: animationPaddingTopAfter,
|
|
90
|
-
animationBackgroundColorBefore: animationBackgroundColorBefore,
|
|
91
|
-
animationBackgroundColorAfter: animationBackgroundColorAfter,
|
|
92
|
-
animationColorBefore: animationColorBefore,
|
|
93
|
-
animationColorAfter: animationColorAfter,
|
|
94
|
-
animationFillColorBefore: chevronInverseColor,
|
|
95
|
-
animationFillColorAfter: chevronDefaultColor,
|
|
82
|
+
$containerBackgroundColor: containerBackgroundColor,
|
|
83
|
+
$containerGap: containerGap,
|
|
84
|
+
$animationHeightBefore: animationHeightBefore,
|
|
85
|
+
$animationHeightAfter: animationHeightAfter,
|
|
86
|
+
$animationPaddingBottomBefore: animationPaddingBottomBefore,
|
|
87
|
+
$animationPaddingBottomAfter: animationPaddingBottomAfter,
|
|
88
|
+
$animationPaddingTopBefore: animationPaddingTopBefore,
|
|
89
|
+
$animationPaddingTopAfter: animationPaddingTopAfter,
|
|
90
|
+
$animationBackgroundColorBefore: animationBackgroundColorBefore,
|
|
91
|
+
$animationBackgroundColorAfter: animationBackgroundColorAfter,
|
|
92
|
+
$animationColorBefore: animationColorBefore,
|
|
93
|
+
$animationColorAfter: animationColorAfter,
|
|
94
|
+
$animationFillColorBefore: chevronInverseColor,
|
|
95
|
+
$animationFillColorAfter: chevronDefaultColor,
|
|
96
|
+
$padding: extraTokens.padding,
|
|
96
97
|
ref: ref,
|
|
97
|
-
...extraTokens,
|
|
98
98
|
...selectProps(rest),
|
|
99
99
|
children: [headline && /*#__PURE__*/_jsx(Typography, {
|
|
100
100
|
variant: {
|
|
@@ -152,5 +152,4 @@ Toast.propTypes = {
|
|
|
152
152
|
LinkRouter: withLinkRouter.propTypes?.LinkRouter,
|
|
153
153
|
linkRouterProps: withLinkRouter.propTypes?.linkRouterProps
|
|
154
154
|
})
|
|
155
|
-
};
|
|
156
|
-
export default Toast;
|
|
155
|
+
};
|