@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,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ExpandCollapse = 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");
|
|
@@ -25,14 +25,14 @@ const ExpandCollapseIconContainer = /*#__PURE__*/_styledComponents.default.div.w
|
|
|
25
25
|
componentId: "components-web__sc-1l2mmq7-1"
|
|
26
26
|
})(_ref => {
|
|
27
27
|
let {
|
|
28
|
-
tokens
|
|
28
|
+
$tokens
|
|
29
29
|
} = _ref;
|
|
30
30
|
return {
|
|
31
|
-
alignItems: tokens.expandIconContainerAlignItems,
|
|
32
|
-
justifyContent: tokens.expandIconContainerJustifyContent,
|
|
33
|
-
marginLeft: `${tokens.expandIconContainerMarginY}px`,
|
|
34
|
-
marginRight: `${tokens.expandIconContainerMarginY}px`,
|
|
35
|
-
width: tokens.expandIconContainerWidth
|
|
31
|
+
alignItems: $tokens.expandIconContainerAlignItems,
|
|
32
|
+
justifyContent: $tokens.expandIconContainerJustifyContent,
|
|
33
|
+
marginLeft: `${$tokens.expandIconContainerMarginY}px`,
|
|
34
|
+
marginRight: `${$tokens.expandIconContainerMarginY}px`,
|
|
35
|
+
width: $tokens.expandIconContainerWidth
|
|
36
36
|
};
|
|
37
37
|
});
|
|
38
38
|
const ExpandCollapseTitle = /*#__PURE__*/_styledComponents.default.h4.withConfig({
|
|
@@ -40,14 +40,14 @@ const ExpandCollapseTitle = /*#__PURE__*/_styledComponents.default.h4.withConfig
|
|
|
40
40
|
componentId: "components-web__sc-1l2mmq7-2"
|
|
41
41
|
})(_ref2 => {
|
|
42
42
|
let {
|
|
43
|
-
tokens
|
|
43
|
+
$tokens
|
|
44
44
|
} = _ref2;
|
|
45
45
|
return {
|
|
46
|
-
color: tokens.expandTitleColor,
|
|
47
|
-
fontFamily: `${tokens.expandTitleFontName}${tokens.expandTitleFontWeight}normal`,
|
|
48
|
-
fontSize: tokens.expandTitleFontSize,
|
|
49
|
-
lineHeight: tokens.expandTitleLineHeight,
|
|
50
|
-
margin: `${tokens.expandTitleMarginX}px ${tokens.expandTitleMarginY}px`
|
|
46
|
+
color: $tokens.expandTitleColor,
|
|
47
|
+
fontFamily: `${$tokens.expandTitleFontName}${$tokens.expandTitleFontWeight}normal`,
|
|
48
|
+
fontSize: $tokens.expandTitleFontSize,
|
|
49
|
+
lineHeight: $tokens.expandTitleLineHeight,
|
|
50
|
+
margin: `${$tokens.expandTitleMarginX}px ${$tokens.expandTitleMarginY}px`
|
|
51
51
|
};
|
|
52
52
|
});
|
|
53
53
|
const getIconButtonTokens = _ref3 => {
|
|
@@ -70,7 +70,7 @@ const getIconButtonTokens = _ref3 => {
|
|
|
70
70
|
outerBorderWidth: iconOuterBorderWidth
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
|
-
const ExpandCollapse = /*#__PURE__*/_react.default.forwardRef((_ref4, ref) => {
|
|
73
|
+
const ExpandCollapse = exports.ExpandCollapse = /*#__PURE__*/_react.default.forwardRef((_ref4, ref) => {
|
|
74
74
|
let {
|
|
75
75
|
children,
|
|
76
76
|
collapseTitle,
|
|
@@ -97,7 +97,7 @@ const ExpandCollapse = /*#__PURE__*/_react.default.forwardRef((_ref4, ref) => {
|
|
|
97
97
|
tokens: {
|
|
98
98
|
borderWidth: expandBaseBorderWidth
|
|
99
99
|
},
|
|
100
|
-
children: expandProps => /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.
|
|
100
|
+
children: expandProps => /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.ExpandCollapsePanel, {
|
|
101
101
|
...expandProps,
|
|
102
102
|
panelId: "ExpandCollapsePanel",
|
|
103
103
|
controlTokens: {
|
|
@@ -120,7 +120,7 @@ const ExpandCollapse = /*#__PURE__*/_react.default.forwardRef((_ref4, ref) => {
|
|
|
120
120
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(ExpandCollapseControl, {
|
|
121
121
|
ref: ref,
|
|
122
122
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ExpandCollapseIconContainer, {
|
|
123
|
-
tokens: getTokens(),
|
|
123
|
+
$tokens: getTokens(),
|
|
124
124
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.IconButton, {
|
|
125
125
|
variant: {
|
|
126
126
|
size: 'small'
|
|
@@ -131,7 +131,7 @@ const ExpandCollapse = /*#__PURE__*/_react.default.forwardRef((_ref4, ref) => {
|
|
|
131
131
|
accessibilityRole: "none"
|
|
132
132
|
})
|
|
133
133
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(ExpandCollapseTitle, {
|
|
134
|
-
tokens: getTokens(),
|
|
134
|
+
$tokens: getTokens(),
|
|
135
135
|
children: expanded ? expandTitle : collapseTitle
|
|
136
136
|
})]
|
|
137
137
|
});
|
|
@@ -156,5 +156,4 @@ ExpandCollapse.propTypes = {
|
|
|
156
156
|
expandTitle: _propTypes.default.string,
|
|
157
157
|
collapseLabel: _propTypes.default.string,
|
|
158
158
|
expandLabel: _propTypes.default.string
|
|
159
|
-
};
|
|
160
|
-
var _default = exports.default = ExpandCollapse;
|
|
159
|
+
};
|
|
@@ -3,15 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.TermsAndConditions = 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 _ExpandCollapse =
|
|
12
|
-
var _OrderedListBase =
|
|
11
|
+
var _ExpandCollapse = require("./ExpandCollapse");
|
|
12
|
+
var _OrderedListBase = require("../OrderedList/OrderedListBase");
|
|
13
|
+
var _OrderedListItemBase = require("../OrderedList/OrderedListItemBase");
|
|
13
14
|
var _utils = require("../utils");
|
|
14
|
-
var _dictionary =
|
|
15
|
+
var _dictionary = require("./dictionary");
|
|
15
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
18
|
const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_utils.htmlAttrs]);
|
|
@@ -20,27 +21,27 @@ const ContentContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
20
21
|
componentId: "components-web__sc-1199epn-0"
|
|
21
22
|
})(_ref => {
|
|
22
23
|
let {
|
|
23
|
-
tokens
|
|
24
|
+
$tokens
|
|
24
25
|
} = _ref;
|
|
25
26
|
return {
|
|
26
|
-
paddingBottom: tokens.contentPaddingBottom,
|
|
27
|
-
paddingLeft: tokens.contentPaddingLeft,
|
|
27
|
+
paddingBottom: $tokens.contentPaddingBottom,
|
|
28
|
+
paddingLeft: $tokens.contentPaddingLeft,
|
|
28
29
|
...(0, _utils.media)().from('md').css({
|
|
29
|
-
paddingBottom: tokens.mdContentPaddingBottom,
|
|
30
|
-
paddingLeft: tokens.mdContentPaddingLeft
|
|
30
|
+
paddingBottom: $tokens.mdContentPaddingBottom,
|
|
31
|
+
paddingLeft: $tokens.mdContentPaddingLeft
|
|
31
32
|
})
|
|
32
33
|
};
|
|
33
34
|
});
|
|
34
|
-
const Ordered = /*#__PURE__*/(0, _styledComponents.default)(_OrderedListBase.
|
|
35
|
+
const Ordered = /*#__PURE__*/(0, _styledComponents.default)(_OrderedListBase.OrderedListBase).withConfig({
|
|
35
36
|
displayName: "TermsAndConditions__Ordered",
|
|
36
37
|
componentId: "components-web__sc-1199epn-1"
|
|
37
38
|
})(_ref2 => {
|
|
38
39
|
let {
|
|
39
|
-
tokens
|
|
40
|
+
$tokens
|
|
40
41
|
} = _ref2;
|
|
41
42
|
return {
|
|
42
43
|
listStylePosition: 'outside',
|
|
43
|
-
padding: tokens.orderedPadding
|
|
44
|
+
padding: $tokens.orderedPadding
|
|
44
45
|
};
|
|
45
46
|
});
|
|
46
47
|
const Unordered = /*#__PURE__*/_styledComponents.default.ul.withConfig({
|
|
@@ -48,36 +49,36 @@ const Unordered = /*#__PURE__*/_styledComponents.default.ul.withConfig({
|
|
|
48
49
|
componentId: "components-web__sc-1199epn-2"
|
|
49
50
|
})(_ref3 => {
|
|
50
51
|
let {
|
|
51
|
-
tokens
|
|
52
|
+
$tokens
|
|
52
53
|
} = _ref3;
|
|
53
54
|
return {
|
|
54
55
|
listStyleType: 'none',
|
|
55
56
|
margin: 0,
|
|
56
57
|
padding: 0,
|
|
57
|
-
paddingTop: tokens.unorderedPadding
|
|
58
|
+
paddingTop: $tokens.unorderedPadding
|
|
58
59
|
};
|
|
59
60
|
});
|
|
60
|
-
const ListItem = /*#__PURE__*/(0, _styledComponents.default)(
|
|
61
|
+
const ListItem = /*#__PURE__*/(0, _styledComponents.default)(_OrderedListItemBase.OrderedListItemBase).withConfig({
|
|
61
62
|
displayName: "TermsAndConditions__ListItem",
|
|
62
63
|
componentId: "components-web__sc-1199epn-3"
|
|
63
64
|
})(_ref4 => {
|
|
64
65
|
let {
|
|
65
|
-
tokens
|
|
66
|
+
$tokens
|
|
66
67
|
} = _ref4;
|
|
67
68
|
return {
|
|
68
69
|
display: 'list-item',
|
|
69
70
|
'&::marker': {
|
|
70
|
-
fontFamily: `${tokens.listFontName}${tokens.listFontWeight}normal`,
|
|
71
|
-
fontSize: tokens.listFontSize,
|
|
72
|
-
lineHeight: tokens.listLineHeight,
|
|
71
|
+
fontFamily: `${$tokens.listFontName}${$tokens.listFontWeight}normal`,
|
|
72
|
+
fontSize: $tokens.listFontSize,
|
|
73
|
+
lineHeight: $tokens.listLineHeight,
|
|
73
74
|
textAlign: 'end !important'
|
|
74
75
|
},
|
|
75
|
-
color: tokens.listColor,
|
|
76
|
-
fontFamily: `${tokens.listFontName}${tokens.listFontWeight}normal`,
|
|
77
|
-
fontSize: tokens.listFontSize,
|
|
78
|
-
lineHeight: tokens.listLineHeight,
|
|
79
|
-
marginBottom: tokens.listMarginBottom,
|
|
80
|
-
marginLeft: tokens.listMarginLeft,
|
|
76
|
+
color: $tokens.listColor,
|
|
77
|
+
fontFamily: `${$tokens.listFontName}${$tokens.listFontWeight}normal`,
|
|
78
|
+
fontSize: $tokens.listFontSize,
|
|
79
|
+
lineHeight: $tokens.listLineHeight,
|
|
80
|
+
marginBottom: $tokens.listMarginBottom,
|
|
81
|
+
marginLeft: $tokens.listMarginLeft,
|
|
81
82
|
wordBreak: 'break-word'
|
|
82
83
|
};
|
|
83
84
|
});
|
|
@@ -86,13 +87,13 @@ const NonIndexedContentTitle = /*#__PURE__*/_styledComponents.default.div.withCo
|
|
|
86
87
|
componentId: "components-web__sc-1199epn-4"
|
|
87
88
|
})(_ref5 => {
|
|
88
89
|
let {
|
|
89
|
-
tokens
|
|
90
|
+
$tokens
|
|
90
91
|
} = _ref5;
|
|
91
92
|
return {
|
|
92
|
-
color: tokens.titleColor,
|
|
93
|
-
fontSize: tokens.titleFontSize,
|
|
94
|
-
lineHeight: tokens.titleLineHeight,
|
|
95
|
-
paddingLeft: tokens.titlePaddingLeft
|
|
93
|
+
color: $tokens.titleColor,
|
|
94
|
+
fontSize: $tokens.titleFontSize,
|
|
95
|
+
lineHeight: $tokens.titleLineHeight,
|
|
96
|
+
paddingLeft: $tokens.titlePaddingLeft
|
|
96
97
|
};
|
|
97
98
|
});
|
|
98
99
|
|
|
@@ -105,14 +106,14 @@ const NonIndexedContentTitle = /*#__PURE__*/_styledComponents.default.div.withCo
|
|
|
105
106
|
* - Responsive display based on breakpoints
|
|
106
107
|
* - Use `copy` to set language, ‘en’ for English or ‘fr’ for French
|
|
107
108
|
*/
|
|
108
|
-
const TermsAndConditions = /*#__PURE__*/_react.default.forwardRef((_ref6, ref) => {
|
|
109
|
+
const TermsAndConditions = exports.TermsAndConditions = /*#__PURE__*/_react.default.forwardRef((_ref6, ref) => {
|
|
109
110
|
let {
|
|
110
111
|
copy = 'en',
|
|
111
112
|
indexedContent = [],
|
|
112
113
|
nonIndexedContent = [],
|
|
113
114
|
tokens = {},
|
|
114
115
|
variant = {},
|
|
115
|
-
dictionary = _dictionary.
|
|
116
|
+
dictionary = _dictionary.dictionary,
|
|
116
117
|
...rest
|
|
117
118
|
} = _ref6;
|
|
118
119
|
const getCopy = (0, _componentsBase.useCopy)({
|
|
@@ -182,29 +183,29 @@ const TermsAndConditions = /*#__PURE__*/_react.default.forwardRef((_ref6, ref) =
|
|
|
182
183
|
tokens: {
|
|
183
184
|
color: themeTokens.dividerColor
|
|
184
185
|
}
|
|
185
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ExpandCollapse.
|
|
186
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ExpandCollapse.ExpandCollapse, {
|
|
186
187
|
collapseTitle: getCopy('headingView'),
|
|
187
188
|
expandTitle: getCopy('headingHide'),
|
|
188
189
|
collapseLabel: getCopy('collapseLabel'),
|
|
189
190
|
expandLabel: getCopy('expandLabel'),
|
|
190
191
|
ref: ref,
|
|
191
192
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(ContentContainer, {
|
|
192
|
-
tokens: themeTokens,
|
|
193
|
+
$tokens: themeTokens,
|
|
193
194
|
children: [hasIndexedContent && /*#__PURE__*/(0, _jsxRuntime.jsx)(Ordered, {
|
|
194
|
-
tokens: themeTokens,
|
|
195
|
+
$tokens: themeTokens,
|
|
195
196
|
children: indexedContent.map((contentItem, idx) =>
|
|
196
197
|
/*#__PURE__*/
|
|
197
198
|
// eslint-disable-next-line react/no-array-index-key
|
|
198
199
|
(0, _jsxRuntime.jsx)(ListItem, {
|
|
199
|
-
tokens: listItemStyles,
|
|
200
|
-
media: listItemMediaIds,
|
|
200
|
+
$tokens: listItemStyles,
|
|
201
|
+
"data-media": listItemMediaIds,
|
|
201
202
|
children: (0, _utils.renderStructuredContent)(contentItem)
|
|
202
203
|
}, idx))
|
|
203
204
|
}), hasNonIndexedContent && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_componentsBase.Box, {
|
|
204
205
|
between: 3,
|
|
205
206
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(NonIndexedContentTitle, {
|
|
206
|
-
tokens: nonIndexedContentStyles,
|
|
207
|
-
media: nonIndexedContentMediaIds,
|
|
207
|
+
$tokens: nonIndexedContentStyles,
|
|
208
|
+
"data-media": nonIndexedContentMediaIds,
|
|
208
209
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
|
|
209
210
|
block: true,
|
|
210
211
|
heading: true,
|
|
@@ -217,13 +218,13 @@ const TermsAndConditions = /*#__PURE__*/_react.default.forwardRef((_ref6, ref) =
|
|
|
217
218
|
children: getCopy('nonIndexedTitle')
|
|
218
219
|
})
|
|
219
220
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Unordered, {
|
|
220
|
-
tokens: themeTokens,
|
|
221
|
+
$tokens: themeTokens,
|
|
221
222
|
children: nonIndexedContent.map((contentItem, idx) =>
|
|
222
223
|
/*#__PURE__*/
|
|
223
224
|
// eslint-disable-next-line react/no-array-index-key
|
|
224
225
|
(0, _jsxRuntime.jsx)(ListItem, {
|
|
225
|
-
tokens: listItemStyles,
|
|
226
|
-
media: listItemMediaIds,
|
|
226
|
+
$tokens: listItemStyles,
|
|
227
|
+
"data-media": listItemMediaIds,
|
|
227
228
|
children: (0, _utils.renderStructuredContent)(contentItem)
|
|
228
229
|
}, idx))
|
|
229
230
|
})]
|
|
@@ -279,5 +280,4 @@ TermsAndConditions.propTypes = {
|
|
|
279
280
|
en: dictionaryContentShape,
|
|
280
281
|
fr: dictionaryContentShape
|
|
281
282
|
})
|
|
282
|
-
};
|
|
283
|
-
var _default = exports.default = TermsAndConditions;
|
|
283
|
+
};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
|
|
6
|
+
exports.dictionary = void 0;
|
|
7
|
+
const dictionary = exports.dictionary = {
|
|
8
8
|
en: {
|
|
9
9
|
headingHide: 'Hide terms and conditions',
|
|
10
10
|
headingView: 'View terms and conditions',
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Testimonial = 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 _Image =
|
|
11
|
+
var _Image = require("../Image/Image");
|
|
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,12 +18,12 @@ const TestimonialContainer = /*#__PURE__*/_styledComponents.default.figure.withC
|
|
|
18
18
|
componentId: "components-web__sc-1az53gr-0"
|
|
19
19
|
})(_ref => {
|
|
20
20
|
let {
|
|
21
|
-
testimonialContainerGap
|
|
21
|
+
$testimonialContainerGap
|
|
22
22
|
} = _ref;
|
|
23
23
|
return {
|
|
24
24
|
display: 'flex',
|
|
25
25
|
flexDirection: 'column',
|
|
26
|
-
gap: testimonialContainerGap,
|
|
26
|
+
gap: $testimonialContainerGap,
|
|
27
27
|
margin: 0
|
|
28
28
|
};
|
|
29
29
|
});
|
|
@@ -32,12 +32,12 @@ const QuoteContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
32
32
|
componentId: "components-web__sc-1az53gr-1"
|
|
33
33
|
})(_ref2 => {
|
|
34
34
|
let {
|
|
35
|
-
quoteContainerGap
|
|
35
|
+
$quoteContainerGap
|
|
36
36
|
} = _ref2;
|
|
37
37
|
return {
|
|
38
38
|
display: 'flex',
|
|
39
39
|
alignItems: 'center',
|
|
40
|
-
gap: quoteContainerGap
|
|
40
|
+
gap: $quoteContainerGap
|
|
41
41
|
};
|
|
42
42
|
});
|
|
43
43
|
const Divider = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
@@ -45,12 +45,12 @@ const Divider = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
45
45
|
componentId: "components-web__sc-1az53gr-2"
|
|
46
46
|
})(_ref3 => {
|
|
47
47
|
let {
|
|
48
|
-
dividerBorder,
|
|
49
|
-
dividerBackgroundColor
|
|
48
|
+
$dividerBorder,
|
|
49
|
+
$dividerBackgroundColor
|
|
50
50
|
} = _ref3;
|
|
51
51
|
return {
|
|
52
|
-
height: dividerBorder,
|
|
53
|
-
background: dividerBackgroundColor,
|
|
52
|
+
height: $dividerBorder,
|
|
53
|
+
background: $dividerBackgroundColor,
|
|
54
54
|
width: '100%'
|
|
55
55
|
};
|
|
56
56
|
});
|
|
@@ -72,21 +72,20 @@ const Figcaption = /*#__PURE__*/_styledComponents.default.figcaption.withConfig(
|
|
|
72
72
|
componentId: "components-web__sc-1az53gr-5"
|
|
73
73
|
})(_ref4 => {
|
|
74
74
|
let {
|
|
75
|
-
figcaptionGap
|
|
75
|
+
$figcaptionGap
|
|
76
76
|
} = _ref4;
|
|
77
77
|
return {
|
|
78
78
|
display: 'flex',
|
|
79
79
|
alignItems: 'center',
|
|
80
|
-
gap: figcaptionGap
|
|
80
|
+
gap: $figcaptionGap
|
|
81
81
|
};
|
|
82
82
|
});
|
|
83
|
-
const Testimonial = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
83
|
+
const Testimonial = exports.Testimonial = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
84
84
|
let {
|
|
85
85
|
showDivider,
|
|
86
86
|
testimonial,
|
|
87
87
|
title,
|
|
88
|
-
|
|
89
|
-
image = imageSrc,
|
|
88
|
+
image,
|
|
90
89
|
additionalInfo,
|
|
91
90
|
testimonialStyle = 'large',
|
|
92
91
|
tokens,
|
|
@@ -130,11 +129,11 @@ const Testimonial = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
|
130
129
|
return quote;
|
|
131
130
|
};
|
|
132
131
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(TestimonialContainer, {
|
|
133
|
-
testimonialContainerGap: testimonialContainerGap,
|
|
132
|
+
$testimonialContainerGap: testimonialContainerGap,
|
|
134
133
|
ref: ref,
|
|
135
134
|
...selectProps(rest),
|
|
136
135
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(QuoteContainer, {
|
|
137
|
-
quoteContainerGap: quoteContainerGap,
|
|
136
|
+
$quoteContainerGap: quoteContainerGap,
|
|
138
137
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Icon, {
|
|
139
138
|
tokens: {
|
|
140
139
|
color: iconColor
|
|
@@ -144,8 +143,8 @@ const Testimonial = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
|
144
143
|
},
|
|
145
144
|
icon: copy === 'en' ? icon : iconFr
|
|
146
145
|
}), showDivider && /*#__PURE__*/(0, _jsxRuntime.jsx)(Divider, {
|
|
147
|
-
dividerBackgroundColor: dividerBackgroundColor,
|
|
148
|
-
dividerBorder: dividerBorder,
|
|
146
|
+
$dividerBackgroundColor: dividerBackgroundColor,
|
|
147
|
+
$dividerBorder: dividerBorder,
|
|
149
148
|
role: "separator"
|
|
150
149
|
})]
|
|
151
150
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(BlockQuote, {
|
|
@@ -163,8 +162,8 @@ const Testimonial = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
|
163
162
|
children: `${getQuoteTestimonial(true)}${testimonial}${getQuoteTestimonial()}`
|
|
164
163
|
})
|
|
165
164
|
}), (image || title || additionalInfo) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(Figcaption, {
|
|
166
|
-
figcaptionGap: figcaptionGap,
|
|
167
|
-
children: [image && (typeof image === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.
|
|
165
|
+
$figcaptionGap: figcaptionGap,
|
|
166
|
+
children: [image && (typeof image === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.Image, {
|
|
168
167
|
rounded: "circle",
|
|
169
168
|
src: image,
|
|
170
169
|
alt: title,
|
|
@@ -198,8 +197,8 @@ const Testimonial = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
|
198
197
|
})]
|
|
199
198
|
})]
|
|
200
199
|
}), showDivider && /*#__PURE__*/(0, _jsxRuntime.jsx)(Divider, {
|
|
201
|
-
dividerBackgroundColor: dividerBackgroundColor,
|
|
202
|
-
dividerBorder: dividerBorder,
|
|
200
|
+
$dividerBackgroundColor: dividerBackgroundColor,
|
|
201
|
+
$dividerBorder: dividerBorder,
|
|
203
202
|
role: "separator"
|
|
204
203
|
})]
|
|
205
204
|
});
|
|
@@ -231,11 +230,5 @@ Testimonial.propTypes = {
|
|
|
231
230
|
/**
|
|
232
231
|
* The src attribute for the Image component or custom JSX content to render instead
|
|
233
232
|
*/
|
|
234
|
-
image: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node])
|
|
235
|
-
|
|
236
|
-
* The src attribute for the `Image` component to be displayed on the testimonial
|
|
237
|
-
* @deprecated please use the `image` prop instead
|
|
238
|
-
*/
|
|
239
|
-
imageSrc: _propTypes.default.string
|
|
240
|
-
};
|
|
241
|
-
var _default = exports.default = Testimonial;
|
|
233
|
+
image: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node])
|
|
234
|
+
};
|
package/lib/cjs/Toast/Toast.js
CHANGED
|
@@ -3,15 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Toast = 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 = _interopRequireWildcard(require("styled-components"));
|
|
11
11
|
var _utils = require("../utils");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
15
|
const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_utils.htmlAttrs]);
|
|
17
16
|
const transform = property => (from, to) => (0, _styledComponents.keyframes)(["from{", ":", ";}to{", ":", ";}"], property, from, property, to);
|
|
@@ -19,32 +18,32 @@ const slideDown = property => function (from, to) {
|
|
|
19
18
|
let end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : to;
|
|
20
19
|
return (0, _styledComponents.keyframes)(["0%{", ":", ";}99%{", ":", ";}100%{", ":", ";}"], property, from, property, to, property, end);
|
|
21
20
|
};
|
|
22
|
-
const animation = props => (0, _styledComponents.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
|
|
21
|
+
const animation = props => (0, _styledComponents.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));
|
|
23
22
|
const ToastContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
24
23
|
displayName: "Toast__ToastContainer",
|
|
25
24
|
componentId: "components-web__sc-p78jdh-0"
|
|
26
25
|
})(["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 => {
|
|
27
26
|
let {
|
|
28
|
-
padding
|
|
27
|
+
$padding
|
|
29
28
|
} = _ref;
|
|
30
|
-
return padding;
|
|
29
|
+
return $padding;
|
|
31
30
|
}, _ref2 => {
|
|
32
31
|
let {
|
|
33
|
-
padding
|
|
32
|
+
$padding
|
|
34
33
|
} = _ref2;
|
|
35
|
-
return padding;
|
|
34
|
+
return $padding;
|
|
36
35
|
}, _ref3 => {
|
|
37
36
|
let {
|
|
38
|
-
containerBackgroundColor
|
|
37
|
+
$containerBackgroundColor
|
|
39
38
|
} = _ref3;
|
|
40
|
-
return containerBackgroundColor;
|
|
39
|
+
return $containerBackgroundColor;
|
|
41
40
|
}, _ref4 => {
|
|
42
41
|
let {
|
|
43
|
-
containerGap
|
|
42
|
+
$containerGap
|
|
44
43
|
} = _ref4;
|
|
45
|
-
return containerGap;
|
|
44
|
+
return $containerGap;
|
|
46
45
|
}, animation);
|
|
47
|
-
const Toast = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
46
|
+
const Toast = exports.Toast = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
48
47
|
let {
|
|
49
48
|
toast,
|
|
50
49
|
copy,
|
|
@@ -88,22 +87,22 @@ const Toast = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
|
88
87
|
return null;
|
|
89
88
|
}
|
|
90
89
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(ToastContainer, {
|
|
91
|
-
containerBackgroundColor: containerBackgroundColor,
|
|
92
|
-
containerGap: containerGap,
|
|
93
|
-
animationHeightBefore: animationHeightBefore,
|
|
94
|
-
animationHeightAfter: animationHeightAfter,
|
|
95
|
-
animationPaddingBottomBefore: animationPaddingBottomBefore,
|
|
96
|
-
animationPaddingBottomAfter: animationPaddingBottomAfter,
|
|
97
|
-
animationPaddingTopBefore: animationPaddingTopBefore,
|
|
98
|
-
animationPaddingTopAfter: animationPaddingTopAfter,
|
|
99
|
-
animationBackgroundColorBefore: animationBackgroundColorBefore,
|
|
100
|
-
animationBackgroundColorAfter: animationBackgroundColorAfter,
|
|
101
|
-
animationColorBefore: animationColorBefore,
|
|
102
|
-
animationColorAfter: animationColorAfter,
|
|
103
|
-
animationFillColorBefore: chevronInverseColor,
|
|
104
|
-
animationFillColorAfter: chevronDefaultColor,
|
|
90
|
+
$containerBackgroundColor: containerBackgroundColor,
|
|
91
|
+
$containerGap: containerGap,
|
|
92
|
+
$animationHeightBefore: animationHeightBefore,
|
|
93
|
+
$animationHeightAfter: animationHeightAfter,
|
|
94
|
+
$animationPaddingBottomBefore: animationPaddingBottomBefore,
|
|
95
|
+
$animationPaddingBottomAfter: animationPaddingBottomAfter,
|
|
96
|
+
$animationPaddingTopBefore: animationPaddingTopBefore,
|
|
97
|
+
$animationPaddingTopAfter: animationPaddingTopAfter,
|
|
98
|
+
$animationBackgroundColorBefore: animationBackgroundColorBefore,
|
|
99
|
+
$animationBackgroundColorAfter: animationBackgroundColorAfter,
|
|
100
|
+
$animationColorBefore: animationColorBefore,
|
|
101
|
+
$animationColorAfter: animationColorAfter,
|
|
102
|
+
$animationFillColorBefore: chevronInverseColor,
|
|
103
|
+
$animationFillColorAfter: chevronDefaultColor,
|
|
104
|
+
$padding: extraTokens.padding,
|
|
105
105
|
ref: ref,
|
|
106
|
-
...extraTokens,
|
|
107
106
|
...selectProps(rest),
|
|
108
107
|
children: [headline && /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
|
|
109
108
|
variant: {
|
|
@@ -161,5 +160,4 @@ Toast.propTypes = {
|
|
|
161
160
|
LinkRouter: _componentsBase.withLinkRouter.propTypes?.LinkRouter,
|
|
162
161
|
linkRouterProps: _componentsBase.withLinkRouter.propTypes?.linkRouterProps
|
|
163
162
|
})
|
|
164
|
-
};
|
|
165
|
-
var _default = exports.default = Toast;
|
|
163
|
+
};
|