@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.Paragraph = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _componentsBase = require("@telus-uds/components-base");
|
|
@@ -17,16 +17,16 @@ const StyledParagraph = /*#__PURE__*/_styledComponents.default.p.withConfig({
|
|
|
17
17
|
componentId: "components-web__sc-1bg9r8p-0"
|
|
18
18
|
})(["", " ", " &:first-child{margin-block-start:0em;}&:last-child{margin-block-end:0em;}"], _ref => {
|
|
19
19
|
let {
|
|
20
|
-
align
|
|
20
|
+
$align
|
|
21
21
|
} = _ref;
|
|
22
|
-
return align ? `text-align: ${align};` : '';
|
|
22
|
+
return $align ? `text-align: ${$align};` : '';
|
|
23
23
|
}, _ref2 => {
|
|
24
24
|
let {
|
|
25
|
-
linesBetween
|
|
25
|
+
$linesBetween
|
|
26
26
|
} = _ref2;
|
|
27
27
|
return `
|
|
28
|
-
margin-block-start: ${linesBetween}em;
|
|
29
|
-
margin-block-end: ${linesBetween}em;
|
|
28
|
+
margin-block-start: ${$linesBetween}em;
|
|
29
|
+
margin-block-end: ${$linesBetween}em;
|
|
30
30
|
`;
|
|
31
31
|
});
|
|
32
32
|
|
|
@@ -40,7 +40,7 @@ const StyledParagraph = /*#__PURE__*/_styledComponents.default.p.withConfig({
|
|
|
40
40
|
contrast.
|
|
41
41
|
* - All Allium Typography variants other than header size variants are supported.
|
|
42
42
|
*/
|
|
43
|
-
const Paragraph = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
43
|
+
const Paragraph = exports.Paragraph = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
44
44
|
let {
|
|
45
45
|
children,
|
|
46
46
|
variant,
|
|
@@ -53,9 +53,9 @@ const Paragraph = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
|
53
53
|
const style = (0, _utils.useTypographyTheme)(variant, tokens);
|
|
54
54
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledParagraph, {
|
|
55
55
|
ref: ref,
|
|
56
|
-
linesBetween: linesBetween,
|
|
56
|
+
$linesBetween: linesBetween,
|
|
57
57
|
"data-testid": testID,
|
|
58
|
-
align: align,
|
|
58
|
+
$align: align,
|
|
59
59
|
style: style,
|
|
60
60
|
...selectProps(rest),
|
|
61
61
|
children: children
|
|
@@ -93,5 +93,4 @@ Paragraph.propTypes = {
|
|
|
93
93
|
inverse: _propTypes.default.bool,
|
|
94
94
|
size: _propTypes.default.oneOf(['micro', 'small', 'large'])
|
|
95
95
|
})
|
|
96
|
-
};
|
|
97
|
-
var _default = exports.default = Paragraph;
|
|
96
|
+
};
|
|
@@ -3,17 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.PreviewCardBase = exports.PreviewCard = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _lodash = _interopRequireDefault(require("lodash.omit"));
|
|
10
10
|
var _componentsBase = require("@telus-uds/components-base");
|
|
11
11
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
12
|
-
var _FullBleedContent =
|
|
13
|
-
var _AuthorDate = _interopRequireDefault(require("./AuthorDate"));
|
|
12
|
+
var _FullBleedContent = require("../shared/FullBleedContent");
|
|
14
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
-
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; }
|
|
17
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
15
|
// Passes React Native-oriented system props through UDS PressableCardBase
|
|
19
16
|
const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_componentsBase.a11yProps, _componentsBase.focusHandlerProps, _componentsBase.viewProps]);
|
|
@@ -25,11 +22,11 @@ const FullBleedOffsetOuter = /*#__PURE__*/_styledComponents.default.div.withConf
|
|
|
25
22
|
componentId: "components-web__sc-1yfz4de-0"
|
|
26
23
|
})(_ref => {
|
|
27
24
|
let {
|
|
28
|
-
borderOffset
|
|
25
|
+
$borderOffset
|
|
29
26
|
} = _ref;
|
|
30
27
|
return {
|
|
31
28
|
overflow: 'hidden',
|
|
32
|
-
marginTop: borderOffset * 2
|
|
29
|
+
marginTop: $borderOffset * 2
|
|
33
30
|
};
|
|
34
31
|
});
|
|
35
32
|
const FullBleedOffsetInner = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
@@ -37,11 +34,11 @@ const FullBleedOffsetInner = /*#__PURE__*/_styledComponents.default.div.withConf
|
|
|
37
34
|
componentId: "components-web__sc-1yfz4de-1"
|
|
38
35
|
})(_ref2 => {
|
|
39
36
|
let {
|
|
40
|
-
borderOffset
|
|
37
|
+
$borderOffset
|
|
41
38
|
} = _ref2;
|
|
42
39
|
return {
|
|
43
40
|
position: 'relative',
|
|
44
|
-
margin: 0 - borderOffset
|
|
41
|
+
margin: 0 - $borderOffset
|
|
45
42
|
};
|
|
46
43
|
});
|
|
47
44
|
const defaultTokens = {
|
|
@@ -63,13 +60,12 @@ const defaultTokens = {
|
|
|
63
60
|
* - Use `href` to set the target URL
|
|
64
61
|
* - Use `fullBleedContent` to set the thumbnail image
|
|
65
62
|
*/
|
|
66
|
-
const PreviewCard = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
63
|
+
const PreviewCard = exports.PreviewCardBase = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
67
64
|
let {
|
|
68
65
|
tag,
|
|
69
66
|
title,
|
|
70
67
|
footer,
|
|
71
|
-
|
|
72
|
-
fullBleedContent = fullBleedImage,
|
|
68
|
+
fullBleedContent,
|
|
73
69
|
onPress,
|
|
74
70
|
href,
|
|
75
71
|
...rest
|
|
@@ -156,10 +152,10 @@ const PreviewCard = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
|
156
152
|
}) : footer]
|
|
157
153
|
})]
|
|
158
154
|
}), Boolean(fullBleedContentProps.src || fullBleedContentProps.content) && /*#__PURE__*/(0, _jsxRuntime.jsx)(FullBleedOffsetOuter, {
|
|
159
|
-
borderOffset: borderOffset,
|
|
155
|
+
$borderOffset: borderOffset,
|
|
160
156
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(FullBleedOffsetInner, {
|
|
161
|
-
borderOffset: borderOffset,
|
|
162
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullBleedContent.
|
|
157
|
+
$borderOffset: borderOffset,
|
|
158
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullBleedContent.FullBleedContent, {
|
|
163
159
|
borderRadius: fullBleedBorderRadius,
|
|
164
160
|
...fullBleedContentProps
|
|
165
161
|
})
|
|
@@ -170,9 +166,6 @@ const PreviewCard = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
|
170
166
|
});
|
|
171
167
|
});
|
|
172
168
|
PreviewCard.displayName = 'PreviewCard';
|
|
173
|
-
|
|
174
|
-
// Provide standard author/date footer as a preset with the export
|
|
175
|
-
PreviewCard.AuthorDate = _AuthorDate.default;
|
|
176
169
|
PreviewCard.propTypes = {
|
|
177
170
|
...selectedSystemPropTypes,
|
|
178
171
|
tokens: (0, _componentsBase.getTokensPropType)('PreviewCard'),
|
|
@@ -194,22 +187,20 @@ PreviewCard.propTypes = {
|
|
|
194
187
|
tag: _propTypes.default.string,
|
|
195
188
|
/**
|
|
196
189
|
* Section containing additional information, such as author and date.
|
|
197
|
-
* Use `<
|
|
190
|
+
* Use `<PreviewCardAuthorDate author={...} date={...} />` here for author and date.
|
|
198
191
|
*/
|
|
199
192
|
footer: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.string]),
|
|
200
193
|
/**
|
|
201
194
|
* Text stating the title or headline of the story.
|
|
202
195
|
*/
|
|
203
196
|
title: _propTypes.default.string.isRequired,
|
|
204
|
-
/**
|
|
205
|
-
* Full bleed image to be placed on the card, deprecated in favor of `fullBleedContent`.
|
|
206
|
-
*
|
|
207
|
-
* @deprecated
|
|
208
|
-
*/
|
|
209
|
-
fullBleedImage: _propTypes.default.exact(_FullBleedContent.default.propTypes || {}),
|
|
210
197
|
/**
|
|
211
198
|
* Full bleed content to be placed on the card.
|
|
212
199
|
*/
|
|
213
|
-
fullBleedContent: _propTypes.default.exact(_FullBleedContent.
|
|
200
|
+
fullBleedContent: _propTypes.default.exact(_FullBleedContent.FullBleedContent.propTypes || {})
|
|
214
201
|
};
|
|
215
|
-
|
|
202
|
+
|
|
203
|
+
// Export unwrapped component for react-docgen to extract info for docsite
|
|
204
|
+
|
|
205
|
+
// Export wrapped component as main PreviewCard export
|
|
206
|
+
const PreviewCardWithRouter = exports.PreviewCard = (0, _componentsBase.withLinkRouter)(PreviewCard);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.PreviewCardAuthorDate = 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");
|
|
@@ -15,7 +15,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
15
15
|
* @TODO
|
|
16
16
|
* Add same locale-based date formatting as StoryCard when ready.
|
|
17
17
|
* Get locale based on decision of https://github.com/telus/universal-design-system/issues/715
|
|
18
|
-
*/
|
|
18
|
+
*/
|
|
19
|
+
const PreviewCardAuthorDate = exports.PreviewCardAuthorDate = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
19
20
|
let {
|
|
20
21
|
author,
|
|
21
22
|
date
|
|
@@ -49,8 +50,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
49
50
|
})]
|
|
50
51
|
});
|
|
51
52
|
});
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
PreviewCardAuthorDate.displayName = 'PreviewCardAuthorDate';
|
|
54
|
+
PreviewCardAuthorDate.propTypes = {
|
|
54
55
|
/**
|
|
55
56
|
* Name of the author
|
|
56
57
|
*/
|
|
@@ -59,5 +60,4 @@ AuthorDate.propTypes = {
|
|
|
59
60
|
* Date of the post
|
|
60
61
|
*/
|
|
61
62
|
date: _propTypes.default.string.isRequired
|
|
62
|
-
};
|
|
63
|
-
var _default = exports.default = AuthorDate;
|
|
63
|
+
};
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.PriceLockup = 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 _FootnoteLink =
|
|
12
|
-
var _tokens =
|
|
11
|
+
var _FootnoteLink = require("../Footnote/FootnoteLink");
|
|
12
|
+
var _tokens = require("./tokens");
|
|
13
13
|
var _utils = require("../utils");
|
|
14
|
-
var _dictionary =
|
|
14
|
+
var _dictionary = require("./dictionary");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
17
|
const PRICE_BASELINE_VARIANT = 'baseline';
|
|
@@ -21,9 +21,9 @@ const PriceLockupContainer = /*#__PURE__*/_styledComponents.default.div.withConf
|
|
|
21
21
|
componentId: "components-web__sc-1x6duay-0"
|
|
22
22
|
})(["align-items:", ";display:flex;flex-direction:column;width:fit-content;"], _ref => {
|
|
23
23
|
let {
|
|
24
|
-
alignItemsText
|
|
24
|
+
$alignItemsText
|
|
25
25
|
} = _ref;
|
|
26
|
-
return alignItemsText;
|
|
26
|
+
return $alignItemsText;
|
|
27
27
|
});
|
|
28
28
|
const PriceContainer = /*#__PURE__*/_styledComponents.default.div.attrs({
|
|
29
29
|
'aria-hidden': 'true'
|
|
@@ -32,41 +32,41 @@ const PriceContainer = /*#__PURE__*/_styledComponents.default.div.attrs({
|
|
|
32
32
|
componentId: "components-web__sc-1x6duay-1"
|
|
33
33
|
})(["display:flex;margin-bottom:", ";"], _ref2 => {
|
|
34
34
|
let {
|
|
35
|
-
priceMarginBottom
|
|
35
|
+
$priceMarginBottom
|
|
36
36
|
} = _ref2;
|
|
37
|
-
return priceMarginBottom;
|
|
37
|
+
return $priceMarginBottom;
|
|
38
38
|
});
|
|
39
39
|
const FootnoteContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
40
40
|
displayName: "PriceLockup__FootnoteContainer",
|
|
41
41
|
componentId: "components-web__sc-1x6duay-2"
|
|
42
42
|
})(["display:flex;margin-top:", ";gap:", ";"], _ref3 => {
|
|
43
43
|
let {
|
|
44
|
-
footnoteMarginTop
|
|
44
|
+
$footnoteMarginTop
|
|
45
45
|
} = _ref3;
|
|
46
|
-
return footnoteMarginTop;
|
|
46
|
+
return $footnoteMarginTop;
|
|
47
47
|
}, _ref4 => {
|
|
48
48
|
let {
|
|
49
|
-
footnoteGap
|
|
49
|
+
$footnoteGap
|
|
50
50
|
} = _ref4;
|
|
51
|
-
return footnoteGap;
|
|
51
|
+
return $footnoteGap;
|
|
52
52
|
});
|
|
53
53
|
const BottomTextContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
54
54
|
displayName: "PriceLockup__BottomTextContainer",
|
|
55
55
|
componentId: "components-web__sc-1x6duay-3"
|
|
56
56
|
})(["margin-top:", ";"], _ref5 => {
|
|
57
57
|
let {
|
|
58
|
-
bottomTextMarginTop
|
|
58
|
+
$bottomTextMarginTop
|
|
59
59
|
} = _ref5;
|
|
60
|
-
return bottomTextMarginTop;
|
|
60
|
+
return $bottomTextMarginTop;
|
|
61
61
|
});
|
|
62
62
|
const BottomLinksContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
63
63
|
displayName: "PriceLockup__BottomLinksContainer",
|
|
64
64
|
componentId: "components-web__sc-1x6duay-4"
|
|
65
65
|
})(["align-self:center;margin-left:", ";"], _ref6 => {
|
|
66
66
|
let {
|
|
67
|
-
bottomLinksMarginLeft
|
|
67
|
+
$bottomLinksMarginLeft
|
|
68
68
|
} = _ref6;
|
|
69
|
-
return bottomLinksMarginLeft;
|
|
69
|
+
return $bottomLinksMarginLeft;
|
|
70
70
|
});
|
|
71
71
|
const TopTextContainer = /*#__PURE__*/_styledComponents.default.div.attrs({
|
|
72
72
|
'aria-hidden': 'true'
|
|
@@ -75,18 +75,18 @@ const TopTextContainer = /*#__PURE__*/_styledComponents.default.div.attrs({
|
|
|
75
75
|
componentId: "components-web__sc-1x6duay-5"
|
|
76
76
|
})(["margin-bottom:", ";"], _ref7 => {
|
|
77
77
|
let {
|
|
78
|
-
topTextMarginBottom
|
|
78
|
+
$topTextMarginBottom
|
|
79
79
|
} = _ref7;
|
|
80
|
-
return topTextMarginBottom;
|
|
80
|
+
return $topTextMarginBottom;
|
|
81
81
|
});
|
|
82
82
|
const PriceTextContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
83
83
|
displayName: "PriceLockup__PriceTextContainer",
|
|
84
84
|
componentId: "components-web__sc-1x6duay-6"
|
|
85
85
|
})(["display:flex;flex-direction:", ";"], _ref8 => {
|
|
86
86
|
let {
|
|
87
|
-
ratePosition
|
|
87
|
+
$ratePosition
|
|
88
88
|
} = _ref8;
|
|
89
|
-
return ratePosition === 'bottom' ? 'column' : 'row';
|
|
89
|
+
return $ratePosition === 'bottom' ? 'column' : 'row';
|
|
90
90
|
});
|
|
91
91
|
const RateContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
92
92
|
displayName: "PriceLockup__RateContainer",
|
|
@@ -97,49 +97,49 @@ const RateTextContainer = /*#__PURE__*/_styledComponents.default.div.withConfig(
|
|
|
97
97
|
componentId: "components-web__sc-1x6duay-8"
|
|
98
98
|
})(["align-self:", ";"], _ref9 => {
|
|
99
99
|
let {
|
|
100
|
-
ratePosition
|
|
100
|
+
$ratePosition
|
|
101
101
|
} = _ref9;
|
|
102
|
-
return ratePosition === 'bottom' ? 'flex-start' : 'flex-end';
|
|
102
|
+
return $ratePosition === 'bottom' ? 'flex-start' : 'flex-end';
|
|
103
103
|
});
|
|
104
104
|
const StrikeThroughContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
105
105
|
displayName: "PriceLockup__StrikeThroughContainer",
|
|
106
106
|
componentId: "components-web__sc-1x6duay-9"
|
|
107
|
-
})(["display:flex;position:relative;align-items:center
|
|
107
|
+
})(["display:flex;position:relative;align-items:center;&::before{content:'';width:100%;top:", ";height:", ";background:", ";position:absolute;}"], _ref0 => {
|
|
108
108
|
let {
|
|
109
|
-
strikeThroughPosition
|
|
110
|
-
} =
|
|
111
|
-
return `${strikeThroughPosition}px`;
|
|
112
|
-
},
|
|
109
|
+
$strikeThroughPosition
|
|
110
|
+
} = _ref0;
|
|
111
|
+
return `${$strikeThroughPosition}px`;
|
|
112
|
+
}, _ref1 => {
|
|
113
113
|
let {
|
|
114
|
-
strikeThroughHeight
|
|
115
|
-
} =
|
|
116
|
-
return `${strikeThroughHeight}px`;
|
|
117
|
-
},
|
|
114
|
+
$strikeThroughHeight
|
|
115
|
+
} = _ref1;
|
|
116
|
+
return `${$strikeThroughHeight}px`;
|
|
117
|
+
}, _ref10 => {
|
|
118
118
|
let {
|
|
119
|
-
strikeThroughColor
|
|
120
|
-
} =
|
|
121
|
-
return strikeThroughColor;
|
|
119
|
+
$strikeThroughColor
|
|
120
|
+
} = _ref10;
|
|
121
|
+
return $strikeThroughColor;
|
|
122
122
|
});
|
|
123
123
|
const TypographyContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
124
124
|
displayName: "PriceLockup__TypographyContainer",
|
|
125
125
|
componentId: "components-web__sc-1x6duay-10"
|
|
126
|
-
})(["display:flex;padding-top:", ";"],
|
|
126
|
+
})(["display:flex;padding-top:", ";"], _ref11 => {
|
|
127
127
|
let {
|
|
128
|
-
paddingTop
|
|
129
|
-
} =
|
|
130
|
-
return `${paddingTop || 0}px`;
|
|
128
|
+
$paddingTop
|
|
129
|
+
} = _ref11;
|
|
130
|
+
return `${$paddingTop || 0}px`;
|
|
131
131
|
});
|
|
132
132
|
const InlineTextWithFootnote = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
133
133
|
displayName: "PriceLockup__InlineTextWithFootnote",
|
|
134
134
|
componentId: "components-web__sc-1x6duay-11"
|
|
135
135
|
})(["display:inline;position:relative;> *:first-child{display:inline;}> *:last-child{display:inline-block;position:relative;top:-0.5em;font-size:0.75em;margin-left:2px;line-height:0;vertical-align:bottom;}"]);
|
|
136
|
-
const selectFootnoteLinkStyles =
|
|
136
|
+
const selectFootnoteLinkStyles = _ref12 => {
|
|
137
137
|
let {
|
|
138
138
|
footnoteLinkColor,
|
|
139
139
|
footnoteLinkFontName,
|
|
140
140
|
footnoteLinkFontWeight,
|
|
141
141
|
footnoteLinkLineHeight
|
|
142
|
-
} =
|
|
142
|
+
} = _ref12;
|
|
143
143
|
return {
|
|
144
144
|
color: footnoteLinkColor,
|
|
145
145
|
fontName: footnoteLinkFontName,
|
|
@@ -147,19 +147,19 @@ const selectFootnoteLinkStyles = _ref14 => {
|
|
|
147
147
|
lineHeight: footnoteLinkLineHeight
|
|
148
148
|
};
|
|
149
149
|
};
|
|
150
|
-
const selectStrikeThroughTokens =
|
|
150
|
+
const selectStrikeThroughTokens = _ref13 => {
|
|
151
151
|
let {
|
|
152
152
|
strikeThroughPosition,
|
|
153
153
|
strikeThroughHeight,
|
|
154
154
|
strikeThroughColor
|
|
155
|
-
} =
|
|
155
|
+
} = _ref13;
|
|
156
156
|
return {
|
|
157
157
|
strikeThroughHeight,
|
|
158
158
|
strikeThroughPosition,
|
|
159
159
|
strikeThroughColor
|
|
160
160
|
};
|
|
161
161
|
};
|
|
162
|
-
const PriceLockup = /*#__PURE__*/_react.default.forwardRef((
|
|
162
|
+
const PriceLockup = exports.PriceLockup = /*#__PURE__*/_react.default.forwardRef((_ref14, ref) => {
|
|
163
163
|
let {
|
|
164
164
|
size = 'medium',
|
|
165
165
|
signDirection = 'left',
|
|
@@ -177,9 +177,9 @@ const PriceLockup = /*#__PURE__*/_react.default.forwardRef((_ref16, ref) => {
|
|
|
177
177
|
tokens: priceLockupTokens,
|
|
178
178
|
variant = {},
|
|
179
179
|
copy = 'en',
|
|
180
|
-
dictionary = _dictionary.
|
|
180
|
+
dictionary = _dictionary.dictionary,
|
|
181
181
|
...rest
|
|
182
|
-
} =
|
|
182
|
+
} = _ref14;
|
|
183
183
|
const viewport = (0, _componentsBase.useViewport)();
|
|
184
184
|
const {
|
|
185
185
|
footnoteMarginTop,
|
|
@@ -201,7 +201,7 @@ const PriceLockup = /*#__PURE__*/_react.default.forwardRef((_ref16, ref) => {
|
|
|
201
201
|
strikeThrough
|
|
202
202
|
});
|
|
203
203
|
const isPriceBaseline = variant?.price === PRICE_BASELINE_VARIANT;
|
|
204
|
-
const typographyTokens = (0, _tokens.
|
|
204
|
+
const typographyTokens = (0, _tokens.tokens)(themeTokens);
|
|
205
205
|
const priceString = String(price);
|
|
206
206
|
const lastDotPosition = priceString.lastIndexOf('.');
|
|
207
207
|
const lastCommaPosition = priceString.lastIndexOf(',');
|
|
@@ -231,7 +231,7 @@ const PriceLockup = /*#__PURE__*/_react.default.forwardRef((_ref16, ref) => {
|
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyContainer, {
|
|
234
|
-
paddingTop: paddingTop,
|
|
234
|
+
$paddingTop: paddingTop,
|
|
235
235
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
|
|
236
236
|
...customProps,
|
|
237
237
|
children: value
|
|
@@ -239,7 +239,7 @@ const PriceLockup = /*#__PURE__*/_react.default.forwardRef((_ref16, ref) => {
|
|
|
239
239
|
});
|
|
240
240
|
};
|
|
241
241
|
const renderCurrencySymbol = () => renderTypography(`${currencySymbol}`, typographyTokens.dollarSign);
|
|
242
|
-
const renderFootnoteLinks = () => footnoteLinks && footnoteLinks.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_FootnoteLink.
|
|
242
|
+
const renderFootnoteLinks = () => footnoteLinks && footnoteLinks.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_FootnoteLink.FootnoteLink, {
|
|
243
243
|
fontSize: footnoteLinkFontSize,
|
|
244
244
|
tokens: selectFootnoteLinkStyles(themeTokens),
|
|
245
245
|
number: footnoteLinks,
|
|
@@ -252,7 +252,9 @@ const PriceLockup = /*#__PURE__*/_react.default.forwardRef((_ref16, ref) => {
|
|
|
252
252
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.A11yText, {
|
|
253
253
|
text: a11yText
|
|
254
254
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(StrikeThroughContainer, {
|
|
255
|
-
|
|
255
|
+
$strikeThroughPosition: selectStrikeThroughTokens(themeTokens).strikeThroughPosition,
|
|
256
|
+
$strikeThroughHeight: selectStrikeThroughTokens(themeTokens).strikeThroughHeight,
|
|
257
|
+
$strikeThroughColor: selectStrikeThroughTokens(themeTokens).strikeThroughColor,
|
|
256
258
|
children: amountComponent
|
|
257
259
|
})]
|
|
258
260
|
});
|
|
@@ -261,27 +263,27 @@ const PriceLockup = /*#__PURE__*/_react.default.forwardRef((_ref16, ref) => {
|
|
|
261
263
|
};
|
|
262
264
|
const renderPrice = () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
263
265
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(PriceContainer, {
|
|
264
|
-
priceMarginBottom: `${priceMarginBottom}px`,
|
|
266
|
+
$priceMarginBottom: `${priceMarginBottom}px`,
|
|
265
267
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(PriceTextContainer, {
|
|
266
|
-
ratePosition: ratePosition,
|
|
268
|
+
$ratePosition: ratePosition,
|
|
267
269
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(RateContainer, {
|
|
268
270
|
children: [signDirection === 'left' && renderCurrencySymbol(), renderAmount(), cents && renderTypography(`${separator}${cents}`, typographyTokens.cents), signDirection === 'right' && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
269
271
|
children: ["\xA0", renderCurrencySymbol()]
|
|
270
272
|
})]
|
|
271
273
|
}), rateText && /*#__PURE__*/(0, _jsxRuntime.jsx)(RateTextContainer, {
|
|
272
|
-
ratePosition: ratePosition,
|
|
274
|
+
$ratePosition: ratePosition,
|
|
273
275
|
children: renderTypography(rateText, typographyTokens.rate, ratePosition)
|
|
274
276
|
})]
|
|
275
277
|
}), !bottomText && footnoteLinks.length <= 3 && /*#__PURE__*/(0, _jsxRuntime.jsx)(BottomLinksContainer, {
|
|
276
|
-
bottomLinksMarginLeft: `${bottomLinksMarginLeft}px`,
|
|
278
|
+
$bottomLinksMarginLeft: `${bottomLinksMarginLeft}px`,
|
|
277
279
|
children: renderFootnoteLinks()
|
|
278
280
|
})]
|
|
279
281
|
}), !bottomText && footnoteLinks.length > 3 && renderFootnoteLinks()]
|
|
280
282
|
});
|
|
281
283
|
const renderFootnoteContent = () => {
|
|
282
284
|
const containerProps = {
|
|
283
|
-
footnoteMarginTop: `${footnoteMarginTop}px`,
|
|
284
|
-
footnoteGap: `${footnoteGap}px`
|
|
285
|
+
$footnoteMarginTop: `${footnoteMarginTop}px`,
|
|
286
|
+
$footnoteGap: `${footnoteGap}px`
|
|
285
287
|
};
|
|
286
288
|
const shouldUseInline = linkPosition === 'inline';
|
|
287
289
|
const bottomTextContent = shouldUseInline ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(InlineTextWithFootnote, {
|
|
@@ -297,7 +299,7 @@ const PriceLockup = /*#__PURE__*/_react.default.forwardRef((_ref16, ref) => {
|
|
|
297
299
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(FootnoteContainer, {
|
|
298
300
|
...containerProps,
|
|
299
301
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(BottomTextContainer, {
|
|
300
|
-
bottomTextMarginTop: `${bottomTextMarginTop}px`,
|
|
302
|
+
$bottomTextMarginTop: `${bottomTextMarginTop}px`,
|
|
301
303
|
children: bottomTextContent
|
|
302
304
|
}), showFootnotesInContainer && renderFootnoteLinks()]
|
|
303
305
|
}), showFootnotesOutside && renderFootnoteLinks()]
|
|
@@ -353,12 +355,12 @@ const PriceLockup = /*#__PURE__*/_react.default.forwardRef((_ref16, ref) => {
|
|
|
353
355
|
const ariaLabel = selectProps(rest)['aria-label'] ?? getAriaContent();
|
|
354
356
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(PriceLockupContainer, {
|
|
355
357
|
...selectProps(rest),
|
|
356
|
-
alignItemsText: alignItemsText,
|
|
358
|
+
$alignItemsText: alignItemsText,
|
|
357
359
|
ref: ref,
|
|
358
360
|
role: "group",
|
|
359
361
|
"aria-label": ariaLabel,
|
|
360
362
|
children: [topText && /*#__PURE__*/(0, _jsxRuntime.jsx)(TopTextContainer, {
|
|
361
|
-
topTextMarginBottom: `${topTextMarginBottom}px`,
|
|
363
|
+
$topTextMarginBottom: `${topTextMarginBottom}px`,
|
|
362
364
|
children: renderTypography(topText, typographyTokens.topText)
|
|
363
365
|
}), renderPrice(), bottomText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Divider, {
|
|
364
366
|
testID: "price-lockup-divider",
|
|
@@ -455,5 +457,4 @@ PriceLockup.propTypes = {
|
|
|
455
457
|
* `PriceLockup` tokens
|
|
456
458
|
*/
|
|
457
459
|
tokens: (0, _componentsBase.getTokensPropType)('PriceLockup')
|
|
458
|
-
};
|
|
459
|
-
var _default = exports.default = PriceLockup;
|
|
460
|
+
};
|
|
@@ -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
|
price: '%{amount} %{currency}',
|
|
10
10
|
priceWithCents: '%{amount} %{currency} and %{cents} cents',
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.tokens = void 0;
|
|
7
7
|
// map typography tokens accordenly
|
|
8
|
-
|
|
8
|
+
const tokens = _ref => {
|
|
9
9
|
let {
|
|
10
10
|
topTextFontSize,
|
|
11
11
|
fontColor,
|
|
@@ -63,4 +63,4 @@ var _default = _ref => {
|
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
-
exports.
|
|
66
|
+
exports.tokens = tokens;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ProgressBar = 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");
|
|
@@ -12,30 +12,25 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
// Passes React Native-oriented system props through UDS Progress
|
|
14
14
|
const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_componentsBase.a11yProps, _componentsBase.viewProps]);
|
|
15
|
-
const {
|
|
16
|
-
Bar: ProgressBarBase
|
|
17
|
-
} = _componentsBase.Progress;
|
|
18
|
-
const Gradient = /*#__PURE__*/_styledComponents.default.div.attrs({
|
|
19
|
-
'data-testid': 'ProgressBar-Gradient'
|
|
20
|
-
}).withConfig({
|
|
15
|
+
const Gradient = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
21
16
|
displayName: "ProgressBar__Gradient",
|
|
22
17
|
componentId: "components-web__sc-1vmzyq5-0"
|
|
23
18
|
})(_ref => {
|
|
24
19
|
let {
|
|
25
|
-
gradient: {
|
|
20
|
+
$gradient: {
|
|
26
21
|
angle,
|
|
27
22
|
stops,
|
|
28
23
|
type
|
|
29
24
|
},
|
|
30
|
-
borderRadius,
|
|
31
|
-
shadow
|
|
25
|
+
$borderRadius,
|
|
26
|
+
$shadow
|
|
32
27
|
} = _ref;
|
|
33
28
|
return {
|
|
34
29
|
height: '100%',
|
|
35
30
|
width: '100%',
|
|
36
31
|
background: `${type}-gradient(${angle}deg, ${stops[0].color}, ${stops[1].color})`,
|
|
37
|
-
borderRadius,
|
|
38
|
-
...(0, _componentsBase.applyShadowToken)(shadow)
|
|
32
|
+
borderRadius: $borderRadius,
|
|
33
|
+
...(0, _componentsBase.applyShadowToken)($shadow)
|
|
39
34
|
};
|
|
40
35
|
});
|
|
41
36
|
|
|
@@ -51,7 +46,7 @@ const Gradient = /*#__PURE__*/_styledComponents.default.div.attrs({
|
|
|
51
46
|
*
|
|
52
47
|
*/
|
|
53
48
|
|
|
54
|
-
const ProgressBar = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
49
|
+
const ProgressBar = exports.ProgressBar = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
55
50
|
let {
|
|
56
51
|
percentage,
|
|
57
52
|
tokens,
|
|
@@ -61,7 +56,7 @@ const ProgressBar = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
|
61
56
|
} = _ref2;
|
|
62
57
|
const themeTokens = (0, _componentsBase.useThemeTokens)('ProgressBar', tokens, variant);
|
|
63
58
|
const selectedProps = selectProps(rest);
|
|
64
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
59
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.ProgressBar, {
|
|
65
60
|
percentage: percentage,
|
|
66
61
|
tokens: tokens,
|
|
67
62
|
variant: variant,
|
|
@@ -69,7 +64,10 @@ const ProgressBar = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
|
69
64
|
offset: offset,
|
|
70
65
|
...selectedProps,
|
|
71
66
|
children: themeTokens.gradient && /*#__PURE__*/(0, _jsxRuntime.jsx)(Gradient, {
|
|
72
|
-
|
|
67
|
+
"data-testid": "ProgressBar-Gradient",
|
|
68
|
+
$gradient: themeTokens.gradient,
|
|
69
|
+
$borderRadius: themeTokens.borderRadius,
|
|
70
|
+
$shadow: themeTokens.shadow
|
|
73
71
|
})
|
|
74
72
|
});
|
|
75
73
|
});
|
|
@@ -95,5 +93,4 @@ ProgressBar.propTypes = {
|
|
|
95
93
|
items: _propTypes.default.number,
|
|
96
94
|
current: _propTypes.default.number
|
|
97
95
|
})
|
|
98
|
-
};
|
|
99
|
-
var _default = exports.default = ProgressBar;
|
|
96
|
+
};
|