@telus-uds/components-web 4.19.1 → 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 +16 -1
- package/lib/cjs/Badge/Badge.js +26 -27
- package/lib/cjs/BlockQuote/BlockQuote.js +24 -25
- package/lib/cjs/Breadcrumbs/{Item/Item.js → BreadcrumbItem.js} +36 -37
- package/lib/cjs/Breadcrumbs/Breadcrumbs.js +8 -10
- package/lib/cjs/Callout/Callout.js +24 -25
- package/lib/cjs/Card/Card.js +79 -89
- package/lib/cjs/Card/CardContent.js +53 -29
- package/lib/cjs/Card/CardFooter.js +28 -18
- package/lib/cjs/Countdown/Countdown.js +7 -8
- package/lib/cjs/Countdown/Segment.js +10 -11
- package/lib/cjs/Countdown/dictionary.js +2 -2
- package/lib/cjs/Countdown/types.js +2 -6
- package/lib/cjs/Countdown/useCountdown.js +2 -2
- package/lib/cjs/DatePicker/CalendarContainer.js +66 -67
- package/lib/cjs/DatePicker/DatePicker.js +27 -28
- package/lib/cjs/DatePicker/dictionary.js +3 -4
- package/lib/cjs/DatePicker/reactDatesCss.js +2 -3
- package/lib/cjs/Disclaimer/Disclaimer.js +28 -13
- package/lib/cjs/Footnote/Footnote.js +108 -109
- package/lib/cjs/Footnote/FootnoteLink.js +28 -19
- package/lib/cjs/Footnote/dictionary.js +2 -2
- package/lib/cjs/IconButton/IconButton.js +3 -4
- package/lib/cjs/Image/Image.js +9 -3
- package/lib/cjs/Image/server.js +4 -6
- package/lib/cjs/List/List.js +7 -3
- package/lib/cjs/List/ListItem.js +3 -4
- package/lib/cjs/NavigationBar/NavigationBar.js +8 -9
- package/lib/cjs/NavigationBar/NavigationItem.js +10 -11
- package/lib/cjs/NavigationBar/NavigationSubMenu.js +10 -11
- package/lib/cjs/NavigationBar/collapseItems.js +2 -2
- package/lib/cjs/NavigationBar/resolveItemSelection.js +2 -2
- package/lib/cjs/OptimizeImage/OptimizeImage.js +6 -8
- package/lib/cjs/OptimizeImage/utils/getFallbackUrl.js +3 -4
- package/lib/cjs/OptimizeImage/utils/getImageUrls.js +9 -10
- package/lib/cjs/OptimizeImage/utils/getOptimizedUrl.js +3 -4
- package/lib/cjs/OptimizeImage/utils/hasWebpSupport.js +1 -1
- package/lib/cjs/OptimizeImage/utils/index.js +8 -9
- package/lib/cjs/OptimizeImage/utils/isSvgUrl.js +1 -1
- package/lib/cjs/OrderedList/OrderedList.js +6 -9
- package/lib/cjs/OrderedList/OrderedListBase.js +4 -7
- package/lib/cjs/OrderedList/{Item.js → OrderedListItem.js} +46 -39
- package/lib/cjs/OrderedList/{ItemBase.js → OrderedListItemBase.js} +7 -7
- package/lib/cjs/OrderedList/constants.js +0 -1
- package/lib/cjs/Paragraph/Paragraph.js +10 -11
- package/lib/cjs/PreviewCard/PreviewCard.js +18 -27
- package/lib/cjs/PreviewCard/{AuthorDate.js → PreviewCardAuthorDate.js} +6 -6
- package/lib/cjs/PriceLockup/PriceLockup.js +61 -60
- package/lib/cjs/PriceLockup/dictionary.js +2 -2
- package/lib/cjs/PriceLockup/tokens.js +3 -3
- package/lib/cjs/Progress/ProgressBar.js +14 -17
- package/lib/cjs/QuantitySelector/QuantitySelector.js +8 -9
- package/lib/cjs/QuantitySelector/{SideButton.js → QuantitySelectorSideButton.js} +5 -6
- package/lib/cjs/QuantitySelector/dictionary.js +2 -2
- package/lib/cjs/ResponsiveImage/ResponsiveImage.js +3 -4
- package/lib/cjs/Ribbon/Ribbon.js +56 -65
- package/lib/cjs/SkeletonProvider/SkeletonImage.js +3 -4
- package/lib/cjs/SkeletonProvider/SkeletonProvider.js +10 -10
- package/lib/cjs/SkeletonProvider/SkeletonTypography.js +3 -4
- package/lib/cjs/Span/Span.js +6 -7
- package/lib/cjs/Spinner/Spinner.js +29 -29
- package/lib/cjs/Spinner/SpinnerContent.js +6 -7
- package/lib/cjs/StoryCard/StoryCard.js +17 -22
- package/lib/cjs/Table/Table.js +32 -25
- package/lib/cjs/Table/{Body.js → TableBody.js} +5 -6
- package/lib/cjs/Table/{Cell.js → TableCell.js} +59 -61
- package/lib/cjs/Table/{Header.js → TableHeader.js} +7 -8
- package/lib/cjs/Table/{Row.js → TableRow.js} +18 -19
- package/lib/cjs/Table/{SubHeading.js → TableSubHeading.js} +7 -8
- package/lib/cjs/TermsAndConditions/ExpandCollapse.js +18 -19
- package/lib/cjs/TermsAndConditions/TermsAndConditions.js +44 -44
- package/lib/cjs/TermsAndConditions/dictionary.js +2 -2
- package/lib/cjs/Testimonial/Testimonial.js +24 -31
- package/lib/cjs/Toast/Toast.js +28 -30
- package/lib/cjs/Video/ControlBar/ControlBar.js +48 -47
- package/lib/cjs/Video/ControlBar/Controls/VideoButton/VideoButton.js +6 -6
- package/lib/cjs/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +30 -32
- package/lib/cjs/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +35 -35
- package/lib/cjs/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +42 -42
- package/lib/cjs/Video/MiddleControlButton/MiddleControlButton.js +15 -15
- package/lib/cjs/Video/Video.js +27 -29
- package/lib/cjs/Video/videoText.js +3 -4
- package/lib/cjs/VideoPicker/VideoPicker.js +37 -33
- package/lib/cjs/VideoPicker/VideoPickerPlayer.js +5 -6
- package/lib/cjs/VideoPicker/VideoPickerThumbnail.js +28 -25
- package/lib/cjs/VideoPicker/VideoSlider.js +3 -4
- package/lib/cjs/WaffleGrid/WaffleGrid.js +51 -50
- package/lib/cjs/WebVideo/WebVideo.js +7 -8
- package/lib/cjs/baseExports.js +84 -0
- package/lib/cjs/index.js +179 -105
- package/lib/cjs/server.js +2 -3
- package/lib/cjs/shared/ConditionalWrapper/ConditionalWrapper.js +3 -3
- package/lib/cjs/shared/FullBleedContent/FullBleedContent.js +28 -22
- package/lib/cjs/shared/FullBleedContent/getFullBleedBorderRadius.js +2 -2
- package/lib/cjs/shared/FullBleedContent/index.js +11 -10
- package/lib/cjs/shared/FullBleedContent/useFullBleedContentProps.js +2 -2
- package/lib/cjs/shared/VideoSplash/SplashButton/SplashButton.js +9 -9
- package/lib/cjs/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +50 -50
- package/lib/cjs/shared/VideoSplash/VideoSplash.js +12 -12
- package/lib/cjs/shared/VideoSplash/helpers.js +2 -3
- package/lib/cjs/utils/index.js +14 -15
- package/lib/cjs/utils/isElementFocusable.js +2 -2
- package/lib/cjs/utils/logger.js +2 -6
- package/lib/cjs/utils/media.js +1 -1
- package/lib/cjs/utils/renderStructuredContent.js +3 -4
- package/lib/cjs/utils/scrollToAnchor.js +2 -2
- package/lib/cjs/utils/ssr.js +2 -2
- package/lib/cjs/utils/theming/get-theme-from-server.js +2 -3
- package/lib/cjs/utils/theming/with-client-theme.js +2 -2
- package/lib/cjs/utils/theming/with-server-theme.js +4 -4
- package/lib/cjs/utils/transforms.js +2 -5
- package/lib/cjs/utils/useOverlaidPosition.js +2 -2
- package/lib/cjs/utils/useTypographyTheme.js +2 -2
- package/lib/esm/Badge/Badge.js +25 -26
- package/lib/esm/BlockQuote/BlockQuote.js +23 -24
- package/lib/esm/Breadcrumbs/{Item/Item.js → BreadcrumbItem.js} +35 -36
- package/lib/esm/Breadcrumbs/Breadcrumbs.js +6 -7
- package/lib/esm/Callout/Callout.js +23 -24
- package/lib/esm/Card/Card.js +63 -71
- package/lib/esm/Card/CardContent.js +52 -28
- package/lib/esm/Card/CardFooter.js +27 -18
- package/lib/esm/Countdown/Countdown.js +4 -5
- package/lib/esm/Countdown/Segment.js +8 -9
- package/lib/esm/Countdown/dictionary.js +1 -1
- package/lib/esm/Countdown/types.js +1 -5
- package/lib/esm/Countdown/useCountdown.js +2 -3
- package/lib/esm/DatePicker/CalendarContainer.js +64 -65
- package/lib/esm/DatePicker/DatePicker.js +18 -19
- package/lib/esm/DatePicker/dictionary.js +2 -3
- package/lib/esm/DatePicker/reactDatesCss.js +1 -2
- package/lib/esm/Disclaimer/Disclaimer.js +27 -12
- package/lib/esm/Footnote/Footnote.js +104 -104
- package/lib/esm/Footnote/FootnoteLink.js +26 -17
- package/lib/esm/Footnote/dictionary.js +1 -1
- package/lib/esm/IconButton/IconButton.js +2 -3
- package/lib/esm/Image/Image.js +10 -1
- package/lib/esm/Image/server.js +4 -4
- package/lib/esm/List/List.js +2 -2
- package/lib/esm/List/ListItem.js +2 -3
- package/lib/esm/NavigationBar/NavigationBar.js +5 -6
- package/lib/esm/NavigationBar/NavigationItem.js +9 -10
- package/lib/esm/NavigationBar/NavigationSubMenu.js +7 -8
- package/lib/esm/NavigationBar/collapseItems.js +2 -3
- package/lib/esm/NavigationBar/resolveItemSelection.js +2 -3
- package/lib/esm/OptimizeImage/OptimizeImage.js +4 -6
- package/lib/esm/OptimizeImage/utils/getFallbackUrl.js +2 -2
- package/lib/esm/OptimizeImage/utils/getImageUrls.js +3 -3
- package/lib/esm/OptimizeImage/utils/getOptimizedUrl.js +2 -2
- package/lib/esm/OptimizeImage/utils/hasWebpSupport.js +1 -1
- package/lib/esm/OptimizeImage/utils/index.js +4 -4
- package/lib/esm/OptimizeImage/utils/isSvgUrl.js +1 -1
- package/lib/esm/OrderedList/OrderedList.js +4 -7
- package/lib/esm/OrderedList/OrderedListBase.js +3 -6
- package/lib/esm/OrderedList/{Item.js → OrderedListItem.js} +45 -38
- package/lib/esm/OrderedList/{ItemBase.js → OrderedListItemBase.js} +5 -6
- package/lib/esm/OrderedList/constants.js +0 -1
- package/lib/esm/Paragraph/Paragraph.js +9 -10
- package/lib/esm/PreviewCard/PreviewCard.js +16 -21
- package/lib/esm/PreviewCard/{AuthorDate.js → PreviewCardAuthorDate.js} +4 -5
- package/lib/esm/PriceLockup/PriceLockup.js +57 -56
- package/lib/esm/PriceLockup/dictionary.js +1 -1
- package/lib/esm/PriceLockup/tokens.js +1 -1
- package/lib/esm/Progress/ProgressBar.js +13 -16
- package/lib/esm/QuantitySelector/QuantitySelector.js +6 -7
- package/lib/esm/QuantitySelector/{SideButton.js → QuantitySelectorSideButton.js} +4 -5
- package/lib/esm/QuantitySelector/dictionary.js +1 -1
- package/lib/esm/ResponsiveImage/ResponsiveImage.js +2 -3
- package/lib/esm/Ribbon/Ribbon.js +55 -64
- package/lib/esm/SkeletonProvider/SkeletonImage.js +2 -3
- package/lib/esm/SkeletonProvider/SkeletonProvider.js +6 -7
- package/lib/esm/SkeletonProvider/SkeletonTypography.js +2 -3
- package/lib/esm/Span/Span.js +5 -6
- package/lib/esm/Spinner/Spinner.js +24 -24
- package/lib/esm/Spinner/SpinnerContent.js +5 -6
- package/lib/esm/StoryCard/StoryCard.js +15 -16
- package/lib/esm/Table/Table.js +31 -24
- package/lib/esm/Table/{Body.js → TableBody.js} +4 -5
- package/lib/esm/Table/{Cell.js → TableCell.js} +57 -58
- package/lib/esm/Table/{Header.js → TableHeader.js} +6 -7
- package/lib/esm/Table/{Row.js → TableRow.js} +17 -18
- package/lib/esm/Table/{SubHeading.js → TableSubHeading.js} +6 -7
- package/lib/esm/TermsAndConditions/ExpandCollapse.js +18 -19
- package/lib/esm/TermsAndConditions/TermsAndConditions.js +40 -40
- package/lib/esm/TermsAndConditions/dictionary.js +1 -1
- package/lib/esm/Testimonial/Testimonial.js +22 -29
- package/lib/esm/Toast/Toast.js +26 -27
- package/lib/esm/Video/ControlBar/ControlBar.js +33 -33
- package/lib/esm/Video/ControlBar/Controls/VideoButton/VideoButton.js +5 -6
- package/lib/esm/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +28 -31
- package/lib/esm/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +33 -34
- package/lib/esm/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +38 -39
- package/lib/esm/Video/MiddleControlButton/MiddleControlButton.js +14 -15
- package/lib/esm/Video/Video.js +19 -21
- package/lib/esm/Video/videoText.js +2 -3
- package/lib/esm/VideoPicker/VideoPicker.js +32 -27
- package/lib/esm/VideoPicker/VideoPickerPlayer.js +3 -4
- package/lib/esm/VideoPicker/VideoPickerThumbnail.js +26 -23
- package/lib/esm/VideoPicker/VideoSlider.js +2 -3
- package/lib/esm/WaffleGrid/WaffleGrid.js +49 -46
- package/lib/esm/WebVideo/WebVideo.js +5 -6
- package/lib/esm/baseExports.js +1 -1
- package/lib/esm/index.js +46 -37
- package/lib/esm/server.js +1 -2
- package/lib/esm/shared/ConditionalWrapper/ConditionalWrapper.js +2 -3
- package/lib/esm/shared/FullBleedContent/FullBleedContent.js +25 -20
- package/lib/esm/shared/FullBleedContent/getFullBleedBorderRadius.js +2 -3
- package/lib/esm/shared/FullBleedContent/index.js +3 -4
- package/lib/esm/shared/FullBleedContent/useFullBleedContentProps.js +3 -5
- package/lib/esm/shared/VideoSplash/SplashButton/SplashButton.js +8 -9
- package/lib/esm/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +48 -49
- package/lib/esm/shared/VideoSplash/VideoSplash.js +8 -9
- package/lib/esm/shared/VideoSplash/helpers.js +1 -1
- package/lib/esm/utils/index.js +7 -7
- package/lib/esm/utils/isElementFocusable.js +2 -3
- package/lib/esm/utils/logger.js +0 -4
- package/lib/esm/utils/media.js +1 -1
- package/lib/esm/utils/renderStructuredContent.js +2 -3
- package/lib/esm/utils/scrollToAnchor.js +2 -3
- package/lib/esm/utils/ssr.js +2 -3
- package/lib/esm/utils/theming/get-theme-from-server.js +1 -1
- package/lib/esm/utils/theming/with-client-theme.js +2 -3
- package/lib/esm/utils/theming/with-server-theme.js +3 -4
- package/lib/esm/utils/transforms.js +1 -4
- package/lib/esm/utils/useOverlaidPosition.js +2 -3
- package/lib/esm/utils/useTypographyTheme.js +2 -3
- package/package.json +13 -22
- package/src/Badge/Badge.jsx +18 -20
- package/src/BlockQuote/BlockQuote.jsx +16 -18
- package/src/Breadcrumbs/{Item/Item.jsx → BreadcrumbItem.jsx} +20 -21
- package/src/Breadcrumbs/Breadcrumbs.jsx +6 -9
- package/src/Callout/Callout.jsx +16 -18
- package/src/Card/Card.jsx +59 -80
- package/src/Card/CardContent.jsx +52 -28
- package/src/Card/CardFooter.jsx +26 -12
- package/src/Countdown/Countdown.jsx +3 -5
- package/src/Countdown/Segment.jsx +6 -8
- package/src/Countdown/dictionary.js +1 -1
- package/src/Countdown/types.js +0 -2
- package/src/Countdown/useCountdown.js +1 -3
- package/src/DatePicker/CalendarContainer.jsx +65 -67
- package/src/DatePicker/DatePicker.jsx +17 -19
- package/src/DatePicker/dictionary.js +1 -3
- package/src/DatePicker/reactDatesCss.js +1 -3
- package/src/Disclaimer/Disclaimer.jsx +15 -8
- package/src/Footnote/Footnote.jsx +104 -93
- package/src/Footnote/FootnoteLink.jsx +16 -13
- package/src/Footnote/dictionary.js +1 -1
- package/src/IconButton/IconButton.jsx +1 -3
- package/src/Image/Image.jsx +9 -1
- package/src/Image/server.js +4 -4
- package/src/List/List.jsx +2 -2
- package/src/List/ListItem.jsx +1 -3
- package/src/NavigationBar/NavigationBar.jsx +4 -6
- package/src/NavigationBar/NavigationItem.jsx +6 -8
- package/src/NavigationBar/NavigationSubMenu.jsx +7 -8
- package/src/NavigationBar/collapseItems.js +1 -3
- package/src/NavigationBar/resolveItemSelection.js +1 -3
- package/src/OptimizeImage/OptimizeImage.jsx +3 -6
- package/src/OptimizeImage/utils/getFallbackUrl.js +2 -2
- package/src/OptimizeImage/utils/getImageUrls.js +3 -3
- package/src/OptimizeImage/utils/getOptimizedUrl.js +2 -9
- package/src/OptimizeImage/utils/hasWebpSupport.js +1 -1
- package/src/OptimizeImage/utils/index.js +4 -4
- package/src/OptimizeImage/utils/isSvgUrl.js +1 -1
- package/src/OrderedList/OrderedList.jsx +3 -8
- package/src/OrderedList/OrderedListBase.jsx +2 -7
- package/src/OrderedList/{Item.jsx → OrderedListItem.jsx} +44 -32
- package/src/OrderedList/{ItemBase.jsx → OrderedListItemBase.jsx} +4 -4
- package/src/OrderedList/constants.js +0 -1
- package/src/Paragraph/Paragraph.jsx +7 -9
- package/src/PreviewCard/PreviewCard.jsx +16 -32
- package/src/PreviewCard/{AuthorDate.jsx → PreviewCardAuthorDate.jsx} +3 -5
- package/src/PriceLockup/PriceLockup.jsx +33 -31
- package/src/PriceLockup/dictionary.js +1 -1
- package/src/PriceLockup/tokens.js +1 -1
- package/src/Progress/ProgressBar.jsx +33 -30
- package/src/QuantitySelector/QuantitySelector.jsx +5 -7
- package/src/QuantitySelector/{SideButton.jsx → QuantitySelectorSideButton.jsx} +3 -4
- package/src/QuantitySelector/dictionary.js +1 -1
- package/src/ResponsiveImage/ResponsiveImage.jsx +1 -3
- package/src/Ribbon/Ribbon.jsx +35 -44
- package/src/SkeletonProvider/SkeletonImage.jsx +1 -3
- package/src/SkeletonProvider/SkeletonProvider.jsx +5 -9
- package/src/SkeletonProvider/SkeletonTypography.jsx +1 -3
- package/src/Span/Span.jsx +11 -11
- package/src/Spinner/Spinner.jsx +17 -19
- package/src/Spinner/SpinnerContent.jsx +4 -6
- package/src/StoryCard/StoryCard.jsx +15 -16
- package/src/Table/Table.jsx +81 -75
- package/src/Table/{Body.jsx → TableBody.jsx} +3 -5
- package/src/Table/{Cell.jsx → TableCell.jsx} +69 -65
- package/src/Table/{Header.jsx → TableHeader.jsx} +6 -8
- package/src/Table/{Row.jsx → TableRow.jsx} +11 -12
- package/src/Table/{SubHeading.jsx → TableSubHeading.jsx} +6 -8
- package/src/TermsAndConditions/ExpandCollapse.jsx +18 -19
- package/src/TermsAndConditions/TermsAndConditions.jsx +37 -37
- package/src/TermsAndConditions/dictionary.js +1 -1
- package/src/Testimonial/Testimonial.jsx +20 -28
- package/src/Toast/Toast.jsx +36 -35
- package/src/Video/ControlBar/ControlBar.jsx +28 -25
- package/src/Video/ControlBar/Controls/VideoButton/VideoButton.jsx +4 -6
- package/src/Video/ControlBar/Controls/VideoMenu/VideoMenu.jsx +26 -30
- package/src/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.jsx +31 -33
- package/src/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.jsx +40 -40
- package/src/Video/MiddleControlButton/MiddleControlButton.jsx +10 -12
- package/src/Video/Video.jsx +697 -683
- package/src/Video/videoText.js +1 -3
- package/src/VideoPicker/VideoPicker.jsx +37 -25
- package/src/VideoPicker/VideoPickerPlayer.jsx +2 -4
- package/src/VideoPicker/VideoPickerThumbnail.jsx +26 -15
- package/src/VideoPicker/VideoSlider.jsx +1 -3
- package/src/WaffleGrid/WaffleGrid.jsx +31 -27
- package/src/WebVideo/WebVideo.jsx +4 -6
- package/src/baseExports.js +27 -13
- package/src/index.js +46 -37
- package/src/server.js +1 -2
- package/src/shared/ConditionalWrapper/ConditionalWrapper.jsx +1 -3
- package/src/shared/FullBleedContent/FullBleedContent.jsx +26 -19
- package/src/shared/FullBleedContent/getFullBleedBorderRadius.js +1 -3
- package/src/shared/FullBleedContent/index.js +3 -8
- package/src/shared/FullBleedContent/useFullBleedContentProps.js +2 -5
- package/src/shared/VideoSplash/SplashButton/SplashButton.jsx +5 -7
- package/src/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.jsx +25 -25
- package/src/shared/VideoSplash/VideoSplash.jsx +7 -9
- package/src/shared/VideoSplash/helpers.js +1 -1
- package/src/utils/index.js +7 -7
- package/src/utils/isElementFocusable.js +1 -3
- package/src/utils/logger.js +0 -5
- package/src/utils/media.js +1 -1
- package/src/utils/renderStructuredContent.jsx +1 -3
- package/src/utils/scrollToAnchor.js +1 -3
- package/src/utils/ssr.js +1 -3
- package/src/utils/theming/get-theme-from-server.js +1 -1
- package/src/utils/theming/with-client-theme.jsx +1 -3
- package/src/utils/theming/with-server-theme.jsx +2 -4
- package/src/utils/transforms.js +0 -2
- package/src/utils/useOverlaidPosition.js +1 -3
- package/src/utils/useTypographyTheme.js +1 -3
- package/types/Autocomplete.d.ts +1 -3
- package/types/Badge.d.ts +1 -3
- package/types/BaseProvider.d.ts +1 -3
- package/types/BlockQuote.d.ts +1 -3
- package/types/Box.d.ts +1 -3
- package/types/BreadcrumbItem.d.ts +1 -3
- package/types/Breadcrumbs.d.ts +2 -4
- package/types/Callout.d.ts +1 -3
- package/types/Card.d.ts +1 -3
- package/types/Cell.d.ts +1 -3
- package/types/ControlBar.d.ts +1 -3
- package/types/Countdown.d.ts +1 -3
- package/types/DatePicker.d.ts +1 -3
- package/types/FileUpload.d.ts +1 -3
- package/types/Footnote.d.ts +1 -3
- package/types/FootnoteLink.d.ts +1 -3
- package/types/Listbox.d.ts +1 -3
- package/types/MiddleControlButton.d.ts +1 -3
- package/types/MultiSelectFilter.d.ts +1 -3
- package/types/PriceLockup.d.ts +1 -3
- package/types/QuantitySelector.d.ts +1 -3
- package/types/Ribbon.d.ts +1 -3
- package/types/Spinner.d.ts +1 -3
- package/types/Table.d.ts +1 -3
- package/types/Tooltip.d.ts +1 -3
- package/types/TooltipButton.d.ts +1 -3
- package/types/Typography.d.ts +1 -3
- package/types/Video.d.ts +1 -3
- package/types/VideoButton.d.ts +1 -3
- package/types/VideoMenu.d.ts +1 -3
- package/types/VideoProgressBar.d.ts +1 -3
- package/types/VolumeSlider.d.ts +1 -3
- package/types/WebVideo.d.ts +1 -3
- package/lib/cjs/Badge/index.js +0 -9
- package/lib/cjs/BlockQuote/index.js +0 -9
- package/lib/cjs/Breadcrumbs/index.js +0 -13
- package/lib/cjs/Callout/index.js +0 -9
- package/lib/cjs/Card/index.js +0 -9
- package/lib/cjs/Countdown/index.js +0 -9
- package/lib/cjs/DatePicker/index.js +0 -9
- package/lib/cjs/Disclaimer/index.js +0 -13
- package/lib/cjs/Footnote/index.js +0 -11
- package/lib/cjs/IconButton/index.js +0 -9
- package/lib/cjs/Image/index.js +0 -20
- package/lib/cjs/List/index.js +0 -17
- package/lib/cjs/NavigationBar/index.js +0 -11
- package/lib/cjs/OptimizeImage/index.js +0 -9
- package/lib/cjs/OrderedList/index.js +0 -17
- package/lib/cjs/Paragraph/index.js +0 -9
- package/lib/cjs/PreviewCard/index.js +0 -9
- package/lib/cjs/PriceLockup/index.js +0 -9
- package/lib/cjs/Progress/index.js +0 -11
- package/lib/cjs/QuantitySelector/index.js +0 -9
- package/lib/cjs/ResponsiveImage/index.js +0 -9
- package/lib/cjs/Ribbon/index.js +0 -9
- package/lib/cjs/SkeletonProvider/index.js +0 -9
- package/lib/cjs/Span/index.js +0 -9
- package/lib/cjs/Spinner/index.js +0 -9
- package/lib/cjs/StoryCard/index.js +0 -9
- package/lib/cjs/Table/index.js +0 -24
- package/lib/cjs/TermsAndConditions/index.js +0 -13
- package/lib/cjs/Testimonial/index.js +0 -9
- package/lib/cjs/Toast/index.js +0 -9
- package/lib/cjs/Video/index.js +0 -9
- package/lib/cjs/VideoPicker/index.js +0 -9
- package/lib/cjs/WaffleGrid/index.js +0 -9
- package/lib/cjs/WebVideo/index.js +0 -9
- package/lib/cjs/shared/ConditionalWrapper/index.js +0 -9
- package/lib/esm/Badge/index.js +0 -2
- package/lib/esm/BlockQuote/index.js +0 -2
- package/lib/esm/Breadcrumbs/index.js +0 -1
- package/lib/esm/Callout/index.js +0 -2
- package/lib/esm/Card/index.js +0 -2
- package/lib/esm/Countdown/index.js +0 -2
- package/lib/esm/DatePicker/index.js +0 -2
- package/lib/esm/Disclaimer/index.js +0 -1
- package/lib/esm/Footnote/index.js +0 -4
- package/lib/esm/IconButton/index.js +0 -2
- package/lib/esm/Image/index.js +0 -9
- package/lib/esm/List/index.js +0 -5
- package/lib/esm/NavigationBar/index.js +0 -4
- package/lib/esm/OptimizeImage/index.js +0 -2
- package/lib/esm/OrderedList/index.js +0 -5
- package/lib/esm/Paragraph/index.js +0 -2
- package/lib/esm/PreviewCard/index.js +0 -2
- package/lib/esm/PriceLockup/index.js +0 -2
- package/lib/esm/Progress/index.js +0 -4
- package/lib/esm/QuantitySelector/index.js +0 -2
- package/lib/esm/ResponsiveImage/index.js +0 -2
- package/lib/esm/Ribbon/index.js +0 -2
- package/lib/esm/SkeletonProvider/index.js +0 -2
- package/lib/esm/Span/index.js +0 -2
- package/lib/esm/Spinner/index.js +0 -2
- package/lib/esm/StoryCard/index.js +0 -2
- package/lib/esm/Table/index.js +0 -17
- package/lib/esm/TermsAndConditions/index.js +0 -1
- package/lib/esm/Testimonial/index.js +0 -2
- package/lib/esm/Toast/index.js +0 -2
- package/lib/esm/Video/index.js +0 -2
- package/lib/esm/VideoPicker/index.js +0 -2
- package/lib/esm/WaffleGrid/index.js +0 -2
- package/lib/esm/WebVideo/index.js +0 -2
- package/lib/esm/shared/ConditionalWrapper/index.js +0 -2
- package/src/Badge/index.js +0 -3
- package/src/BlockQuote/index.js +0 -3
- package/src/Breadcrumbs/index.js +0 -1
- package/src/Callout/index.js +0 -3
- package/src/Card/index.js +0 -3
- package/src/Countdown/index.js +0 -3
- package/src/DatePicker/index.js +0 -3
- package/src/Disclaimer/index.js +0 -1
- package/src/Footnote/index.js +0 -6
- package/src/IconButton/index.js +0 -3
- package/src/Image/index.js +0 -10
- package/src/List/index.js +0 -8
- package/src/NavigationBar/index.js +0 -6
- package/src/OptimizeImage/index.js +0 -3
- package/src/OrderedList/index.js +0 -8
- package/src/Paragraph/index.js +0 -3
- package/src/PreviewCard/index.js +0 -3
- package/src/PriceLockup/index.js +0 -3
- package/src/Progress/index.js +0 -6
- package/src/QuantitySelector/index.js +0 -3
- package/src/ResponsiveImage/index.js +0 -3
- package/src/Ribbon/index.js +0 -3
- package/src/SkeletonProvider/index.js +0 -3
- package/src/Span/index.js +0 -3
- package/src/Spinner/index.js +0 -3
- package/src/StoryCard/index.js +0 -3
- package/src/Table/index.js +0 -20
- package/src/TermsAndConditions/index.js +0 -1
- package/src/Testimonial/index.js +0 -3
- package/src/Toast/index.js +0 -3
- package/src/Video/index.js +0 -3
- package/src/VideoPicker/index.js +0 -3
- package/src/WaffleGrid/index.js +0 -3
- package/src/WebVideo/index.js +0 -3
- package/src/shared/ConditionalWrapper/index.js +0 -3
package/lib/cjs/Card/Card.js
CHANGED
|
@@ -3,18 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Card = 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 _CardContent =
|
|
12
|
-
var _CardFooter =
|
|
13
|
-
var _FullBleedContent =
|
|
14
|
-
var _ConditionalWrapper =
|
|
11
|
+
var _CardContent = require("./CardContent");
|
|
12
|
+
var _CardFooter = require("./CardFooter");
|
|
13
|
+
var _FullBleedContent = require("../shared/FullBleedContent");
|
|
14
|
+
var _ConditionalWrapper = require("../shared/ConditionalWrapper/ConditionalWrapper");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
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); }
|
|
17
|
-
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; }
|
|
18
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
17
|
// Passes React Native-oriented system props through UDS Card
|
|
20
18
|
const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_componentsBase.a11yProps, _componentsBase.viewProps]);
|
|
@@ -105,31 +103,30 @@ const getCardContentTokens = function (baseTokens) {
|
|
|
105
103
|
* `Card` component accepts all the standard accessibility props.
|
|
106
104
|
*/
|
|
107
105
|
const DynamicWidthContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
108
|
-
shouldForwardProp: prop => !['marginTop', 'marginBottom', 'marginLeft', 'marginRight', 'height', 'alignSelf'].includes(prop),
|
|
109
106
|
displayName: "Card__DynamicWidthContainer",
|
|
110
107
|
componentId: "components-web__sc-1elbtwd-0"
|
|
111
108
|
})(_ref => {
|
|
112
109
|
let {
|
|
113
|
-
width,
|
|
114
|
-
display,
|
|
115
|
-
borderRadius,
|
|
116
|
-
overflow,
|
|
117
|
-
marginTop,
|
|
118
|
-
marginBottom,
|
|
119
|
-
marginLeft,
|
|
120
|
-
marginRight,
|
|
121
|
-
alignSelf
|
|
110
|
+
$width,
|
|
111
|
+
$display,
|
|
112
|
+
$borderRadius,
|
|
113
|
+
$overflow,
|
|
114
|
+
$marginTop,
|
|
115
|
+
$marginBottom,
|
|
116
|
+
$marginLeft,
|
|
117
|
+
$marginRight,
|
|
118
|
+
$alignSelf
|
|
122
119
|
} = _ref;
|
|
123
120
|
return {
|
|
124
|
-
width,
|
|
125
|
-
display,
|
|
126
|
-
borderRadius,
|
|
127
|
-
overflow,
|
|
128
|
-
marginTop,
|
|
129
|
-
marginBottom,
|
|
130
|
-
marginLeft,
|
|
131
|
-
marginRight,
|
|
132
|
-
alignSelf
|
|
121
|
+
width: $width,
|
|
122
|
+
display: $display,
|
|
123
|
+
borderRadius: $borderRadius,
|
|
124
|
+
overflow: $overflow,
|
|
125
|
+
marginTop: $marginTop,
|
|
126
|
+
marginBottom: $marginBottom,
|
|
127
|
+
marginLeft: $marginLeft,
|
|
128
|
+
marginRight: $marginRight,
|
|
129
|
+
alignSelf: $alignSelf
|
|
133
130
|
};
|
|
134
131
|
});
|
|
135
132
|
const InteractiveCardWrapper = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
@@ -146,8 +143,8 @@ const InteractiveOverlay = /*#__PURE__*/_styledComponents.default.div.withConfig
|
|
|
146
143
|
componentId: "components-web__sc-1elbtwd-2"
|
|
147
144
|
})(_ref2 => {
|
|
148
145
|
let {
|
|
149
|
-
overlayOpacity,
|
|
150
|
-
borderRadius
|
|
146
|
+
$overlayOpacity,
|
|
147
|
+
$borderRadius
|
|
151
148
|
} = _ref2;
|
|
152
149
|
return {
|
|
153
150
|
position: 'absolute',
|
|
@@ -155,8 +152,8 @@ const InteractiveOverlay = /*#__PURE__*/_styledComponents.default.div.withConfig
|
|
|
155
152
|
left: 0,
|
|
156
153
|
right: 0,
|
|
157
154
|
bottom: 0,
|
|
158
|
-
backgroundColor: `rgba(0, 0, 0, ${overlayOpacity || 0})`,
|
|
159
|
-
borderRadius,
|
|
155
|
+
backgroundColor: `rgba(0, 0, 0, ${$overlayOpacity || 0})`,
|
|
156
|
+
borderRadius: $borderRadius,
|
|
160
157
|
pointerEvents: 'none',
|
|
161
158
|
transition: 'background-color 0.2s ease',
|
|
162
159
|
zIndex: 1
|
|
@@ -167,9 +164,9 @@ const FocusBorder = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
167
164
|
componentId: "components-web__sc-1elbtwd-3"
|
|
168
165
|
})(_ref3 => {
|
|
169
166
|
let {
|
|
170
|
-
borderWidth,
|
|
171
|
-
borderColor,
|
|
172
|
-
borderRadius
|
|
167
|
+
$borderWidth,
|
|
168
|
+
$borderColor,
|
|
169
|
+
$borderRadius
|
|
173
170
|
} = _ref3;
|
|
174
171
|
return {
|
|
175
172
|
position: 'absolute',
|
|
@@ -177,9 +174,9 @@ const FocusBorder = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
177
174
|
left: 0,
|
|
178
175
|
right: 0,
|
|
179
176
|
bottom: 0,
|
|
180
|
-
borderWidth,
|
|
181
|
-
borderColor,
|
|
182
|
-
borderRadius,
|
|
177
|
+
borderWidth: $borderWidth,
|
|
178
|
+
borderColor: $borderColor,
|
|
179
|
+
borderRadius: $borderRadius,
|
|
183
180
|
borderStyle: 'solid',
|
|
184
181
|
pointerEvents: 'none',
|
|
185
182
|
zIndex: 2
|
|
@@ -190,16 +187,16 @@ const FullBleedPaddingWrapper = /*#__PURE__*/_styledComponents.default.div.withC
|
|
|
190
187
|
componentId: "components-web__sc-1elbtwd-4"
|
|
191
188
|
})(_ref4 => {
|
|
192
189
|
let {
|
|
193
|
-
paddingTop,
|
|
194
|
-
paddingBottom,
|
|
195
|
-
paddingLeft,
|
|
196
|
-
paddingRight
|
|
190
|
+
$paddingTop,
|
|
191
|
+
$paddingBottom,
|
|
192
|
+
$paddingLeft,
|
|
193
|
+
$paddingRight
|
|
197
194
|
} = _ref4;
|
|
198
195
|
return {
|
|
199
|
-
paddingTop,
|
|
200
|
-
paddingBottom,
|
|
201
|
-
paddingLeft,
|
|
202
|
-
paddingRight,
|
|
196
|
+
paddingTop: $paddingTop,
|
|
197
|
+
paddingBottom: $paddingBottom,
|
|
198
|
+
paddingLeft: $paddingLeft,
|
|
199
|
+
paddingRight: $paddingRight,
|
|
203
200
|
display: 'flex',
|
|
204
201
|
flexDirection: 'column'
|
|
205
202
|
};
|
|
@@ -225,13 +222,13 @@ const calculateFullBleedPadding = (themeTokens, fullBleedPadding, paddingSides)
|
|
|
225
222
|
return customTokens?.[tokenKey] ?? themeTokens[tokenKey] - borderWidth ?? 0;
|
|
226
223
|
};
|
|
227
224
|
return {
|
|
228
|
-
paddingTop: applyPadding('Top'),
|
|
229
|
-
paddingBottom: applyPadding('Bottom'),
|
|
230
|
-
paddingLeft: applyPadding('Left'),
|
|
231
|
-
paddingRight: applyPadding('Right')
|
|
225
|
+
$paddingTop: applyPadding('Top'),
|
|
226
|
+
$paddingBottom: applyPadding('Bottom'),
|
|
227
|
+
$paddingLeft: applyPadding('Left'),
|
|
228
|
+
$paddingRight: applyPadding('Right')
|
|
232
229
|
};
|
|
233
230
|
};
|
|
234
|
-
const Card = /*#__PURE__*/_react.default.forwardRef(function () {
|
|
231
|
+
const Card = exports.Card = /*#__PURE__*/_react.default.forwardRef(function () {
|
|
235
232
|
let {
|
|
236
233
|
children,
|
|
237
234
|
footer,
|
|
@@ -390,13 +387,13 @@ const Card = /*#__PURE__*/_react.default.forwardRef(function () {
|
|
|
390
387
|
const isImageWidthAdjustable = hasValidImgCol && (fullBleedContentPosition === POSITION.LEFT || fullBleedContentPosition === POSITION.RIGHT);
|
|
391
388
|
const contentWrapperStyleProps = {
|
|
392
389
|
...(hasValidImgCol && {
|
|
393
|
-
width: adaptiveContentWidth
|
|
390
|
+
$width: adaptiveContentWidth
|
|
394
391
|
}),
|
|
395
392
|
...(hasValidImgCol && imgColCurrentViewport >= maxCol && {
|
|
396
|
-
display: 'none'
|
|
393
|
+
$display: 'none'
|
|
397
394
|
}),
|
|
398
395
|
...(fullBleedContentChildrenAlign && {
|
|
399
|
-
alignSelf: fullBleedContentChildrenAlign
|
|
396
|
+
$alignSelf: fullBleedContentChildrenAlign
|
|
400
397
|
})
|
|
401
398
|
};
|
|
402
399
|
const columnFlex = {
|
|
@@ -420,14 +417,14 @@ const Card = /*#__PURE__*/_react.default.forwardRef(function () {
|
|
|
420
417
|
const isVerticalFullBleed = fullBleedContentPosition === POSITION.TOP || fullBleedContentPosition === POSITION.BOTTOM;
|
|
421
418
|
const imageWrapperStyleProps = {
|
|
422
419
|
...(isImageWidthAdjustable && {
|
|
423
|
-
width: fullBleedImageWidth
|
|
420
|
+
$width: fullBleedImageWidth
|
|
424
421
|
}),
|
|
425
422
|
...(isImageWidthAdjustable && imgColCurrentViewport >= maxCol && {
|
|
426
|
-
borderRadius,
|
|
427
|
-
overflow: 'hidden'
|
|
423
|
+
$borderRadius: borderRadius,
|
|
424
|
+
$overflow: 'hidden'
|
|
428
425
|
}),
|
|
429
426
|
...(isImageWidthAdjustable && imgColCurrentViewport === 0 && {
|
|
430
|
-
display: 'none'
|
|
427
|
+
$display: 'none'
|
|
431
428
|
})
|
|
432
429
|
};
|
|
433
430
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_componentsBase.Card, {
|
|
@@ -441,7 +438,7 @@ const Card = /*#__PURE__*/_react.default.forwardRef(function () {
|
|
|
441
438
|
id: rest.id
|
|
442
439
|
}),
|
|
443
440
|
...selectProps(restProps),
|
|
444
|
-
children: [interactiveCard?.selectionType && children ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardContent.
|
|
441
|
+
children: [interactiveCard?.selectionType && children ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardContent.CardContent, {
|
|
445
442
|
tokens: getCardContentTokens(tokens, {
|
|
446
443
|
backgroundImage
|
|
447
444
|
}),
|
|
@@ -461,7 +458,7 @@ const Card = /*#__PURE__*/_react.default.forwardRef(function () {
|
|
|
461
458
|
children: cardState => /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
462
459
|
children: typeof interactiveCard?.body === 'function' ? interactiveCard.body(cardState) : interactiveCard.body
|
|
463
460
|
})
|
|
464
|
-
}), children && fullBleedContentPosition === POSITION.NONE && !fullBleedInteractive ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardContent.
|
|
461
|
+
}), children && fullBleedContentPosition === POSITION.NONE && !fullBleedInteractive ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardContent.CardContent, {
|
|
465
462
|
tokens: getCardContentTokens(tokens, {
|
|
466
463
|
backgroundImage
|
|
467
464
|
}),
|
|
@@ -492,36 +489,30 @@ const Card = /*#__PURE__*/_react.default.forwardRef(function () {
|
|
|
492
489
|
direction: contentStackDirection,
|
|
493
490
|
tokens: getStackViewTokens(columnFlex, contentStackAlign),
|
|
494
491
|
space: 0,
|
|
495
|
-
children: [children ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.
|
|
492
|
+
children: [children ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.ConditionalWrapper, {
|
|
496
493
|
WrapperComponent: DynamicWidthContainer,
|
|
497
494
|
wrapperProps: contentWrapperStyleProps,
|
|
498
495
|
condition: isImageWidthAdjustable,
|
|
499
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardContent.
|
|
500
|
-
tokens: {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
}),
|
|
506
|
-
paddingTop: tokens.paddingTop !== undefined ? tokens.paddingTop : allThemeTokens.paddingTop,
|
|
507
|
-
paddingBottom: tokens.paddingBottom !== undefined ? tokens.paddingBottom : allThemeTokens.paddingBottom,
|
|
508
|
-
paddingLeft: tokens.paddingLeft !== undefined ? tokens.paddingLeft : allThemeTokens.paddingLeft,
|
|
509
|
-
paddingRight: tokens.paddingRight !== undefined ? tokens.paddingRight : allThemeTokens.paddingRight
|
|
510
|
-
},
|
|
496
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardContent.CardContent, {
|
|
497
|
+
tokens: getCardContentTokens(tokensWithoutBg, {
|
|
498
|
+
backgroundImage,
|
|
499
|
+
fullBleedContentChildrenAlign,
|
|
500
|
+
useTransparentBackground: true
|
|
501
|
+
}),
|
|
511
502
|
variant: variant,
|
|
512
503
|
withFooter: hasFooter,
|
|
513
504
|
backgroundImage: backgroundImage,
|
|
514
505
|
children: children
|
|
515
506
|
})
|
|
516
|
-
}) : null, fullBleedContentPosition !== POSITION.NONE && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.
|
|
507
|
+
}) : null, fullBleedContentPosition !== POSITION.NONE && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.ConditionalWrapper, {
|
|
517
508
|
WrapperComponent: DynamicWidthContainer,
|
|
518
509
|
wrapperProps: imageWrapperStyleProps,
|
|
519
510
|
condition: isImageWidthAdjustable || isHorizontalFullBleed || isVerticalFullBleed,
|
|
520
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.
|
|
511
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.ConditionalWrapper, {
|
|
521
512
|
WrapperComponent: FullBleedPaddingWrapper,
|
|
522
513
|
wrapperProps: fullBleedPaddingValues,
|
|
523
514
|
condition: hasFullBleedPadding,
|
|
524
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullBleedContent.
|
|
515
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullBleedContent.FullBleedContent, {
|
|
525
516
|
borderRadius: fullBleedBorderRadius,
|
|
526
517
|
...fullBleedContentPropsClean,
|
|
527
518
|
position: fullBleedContentPosition,
|
|
@@ -530,16 +521,16 @@ const Card = /*#__PURE__*/_react.default.forwardRef(function () {
|
|
|
530
521
|
})
|
|
531
522
|
})]
|
|
532
523
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InteractiveOverlay, {
|
|
533
|
-
overlayOpacity: overlayOpacity,
|
|
534
|
-
borderRadius: borderRadius
|
|
524
|
+
$overlayOpacity: overlayOpacity,
|
|
525
|
+
$borderRadius: borderRadius
|
|
535
526
|
}), showFocusBorder && /*#__PURE__*/(0, _jsxRuntime.jsx)(FocusBorder, {
|
|
536
|
-
borderWidth: `${focusTokens.borderWidth}px`,
|
|
537
|
-
borderColor: focusTokens.borderColor,
|
|
538
|
-
borderRadius: borderRadius
|
|
527
|
+
$borderWidth: `${focusTokens.borderWidth}px`,
|
|
528
|
+
$borderColor: focusTokens.borderColor,
|
|
529
|
+
$borderRadius: borderRadius
|
|
539
530
|
})]
|
|
540
531
|
});
|
|
541
532
|
}
|
|
542
|
-
}) : null, !fullBleedInteractive && !interactiveCard?.body && fullBleedContentPosition === POSITION.NONE && children ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardContent.
|
|
533
|
+
}) : null, !fullBleedInteractive && !interactiveCard?.body && fullBleedContentPosition === POSITION.NONE && children ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardContent.CardContent, {
|
|
543
534
|
tokens: getCardContentTokens(tokens, {
|
|
544
535
|
backgroundImage,
|
|
545
536
|
fullBleedContentChildrenAlign
|
|
@@ -552,11 +543,11 @@ const Card = /*#__PURE__*/_react.default.forwardRef(function () {
|
|
|
552
543
|
direction: contentStackDirection,
|
|
553
544
|
tokens: getStackViewTokens(columnFlex, contentStackAlign),
|
|
554
545
|
space: 0,
|
|
555
|
-
children: [children ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.
|
|
546
|
+
children: [children ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.ConditionalWrapper, {
|
|
556
547
|
WrapperComponent: DynamicWidthContainer,
|
|
557
548
|
wrapperProps: contentWrapperStyleProps,
|
|
558
549
|
condition: isImageWidthAdjustable,
|
|
559
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardContent.
|
|
550
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardContent.CardContent, {
|
|
560
551
|
tokens: getCardContentTokens(tokens, {
|
|
561
552
|
backgroundImage,
|
|
562
553
|
fullBleedContentChildrenAlign
|
|
@@ -566,15 +557,15 @@ const Card = /*#__PURE__*/_react.default.forwardRef(function () {
|
|
|
566
557
|
backgroundImage: backgroundImage,
|
|
567
558
|
children: children
|
|
568
559
|
})
|
|
569
|
-
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.
|
|
560
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.ConditionalWrapper, {
|
|
570
561
|
WrapperComponent: DynamicWidthContainer,
|
|
571
562
|
wrapperProps: imageWrapperStyleProps,
|
|
572
563
|
condition: isImageWidthAdjustable || isHorizontalFullBleed || isVerticalFullBleed,
|
|
573
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.
|
|
564
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.ConditionalWrapper, {
|
|
574
565
|
WrapperComponent: FullBleedPaddingWrapper,
|
|
575
566
|
wrapperProps: fullBleedPaddingValues,
|
|
576
567
|
condition: hasFullBleedPadding,
|
|
577
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullBleedContent.
|
|
568
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullBleedContent.FullBleedContent, {
|
|
578
569
|
borderRadius: fullBleedBorderRadius,
|
|
579
570
|
...fullBleedContentPropsClean,
|
|
580
571
|
position: fullBleedContentPosition,
|
|
@@ -582,7 +573,7 @@ const Card = /*#__PURE__*/_react.default.forwardRef(function () {
|
|
|
582
573
|
})
|
|
583
574
|
})
|
|
584
575
|
})]
|
|
585
|
-
}) : null, footer && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardFooter.
|
|
576
|
+
}) : null, footer && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardFooter.CardFooter, {
|
|
586
577
|
padding: footerPadding,
|
|
587
578
|
tokens: tokens,
|
|
588
579
|
variant: variant,
|
|
@@ -617,7 +608,7 @@ const PositionedFullBleedContentPropType = _propTypes.default.shape({
|
|
|
617
608
|
*/
|
|
618
609
|
hrefAttrs: _propTypes.default.shape(_componentsBase.hrefAttrsProp.types),
|
|
619
610
|
// eslint-disable-next-line react/forbid-foreign-prop-types
|
|
620
|
-
..._FullBleedContent.
|
|
611
|
+
..._FullBleedContent.FullBleedContent.propTypes
|
|
621
612
|
});
|
|
622
613
|
Card.displayName = 'Card';
|
|
623
614
|
Card.propTypes = {
|
|
@@ -693,5 +684,4 @@ Card.propTypes = {
|
|
|
693
684
|
* Data set for the card.
|
|
694
685
|
*/
|
|
695
686
|
dataSet: _propTypes.default.object
|
|
696
|
-
};
|
|
697
|
-
var _default = exports.default = Card;
|
|
687
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.CardContent = 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,46 +17,46 @@ const CardContentContainer = /*#__PURE__*/_styledComponents.default.div.withConf
|
|
|
17
17
|
componentId: "components-web__sc-1k2501q-0"
|
|
18
18
|
})(_ref => {
|
|
19
19
|
let {
|
|
20
|
-
borderRadius,
|
|
21
|
-
paddingBottom,
|
|
22
|
-
paddingLeft,
|
|
23
|
-
paddingRight,
|
|
24
|
-
paddingTop,
|
|
25
|
-
withFooter,
|
|
26
|
-
contentAlignItems: alignItems,
|
|
27
|
-
contentFlexGrow: flexGrow,
|
|
28
|
-
contentFlexShrink: flexShrink,
|
|
29
|
-
contentJustifyContent: justifyContent,
|
|
30
|
-
borderWidth,
|
|
31
|
-
alignSelf,
|
|
32
|
-
backgroundColor
|
|
20
|
+
$borderRadius,
|
|
21
|
+
$paddingBottom,
|
|
22
|
+
$paddingLeft,
|
|
23
|
+
$paddingRight,
|
|
24
|
+
$paddingTop,
|
|
25
|
+
$withFooter,
|
|
26
|
+
$contentAlignItems: alignItems,
|
|
27
|
+
$contentFlexGrow: flexGrow,
|
|
28
|
+
$contentFlexShrink: flexShrink,
|
|
29
|
+
$contentJustifyContent: justifyContent,
|
|
30
|
+
$borderWidth,
|
|
31
|
+
$alignSelf,
|
|
32
|
+
$backgroundColor
|
|
33
33
|
} = _ref;
|
|
34
34
|
return {
|
|
35
35
|
// We need to make sure to have sharp corners on the bottom
|
|
36
36
|
// if the card has a footer
|
|
37
|
-
borderBottomLeftRadius: withFooter ? 0 : borderRadius,
|
|
38
|
-
borderBottomRightRadius: withFooter ? 0 : borderRadius,
|
|
39
|
-
borderTopLeftRadius: borderRadius,
|
|
40
|
-
borderTopRightRadius: borderRadius,
|
|
41
|
-
paddingBottom: paddingBottom - borderWidth,
|
|
42
|
-
paddingLeft: paddingLeft - borderWidth,
|
|
43
|
-
paddingRight: paddingRight - borderWidth,
|
|
44
|
-
paddingTop: paddingTop - borderWidth,
|
|
37
|
+
borderBottomLeftRadius: $withFooter ? 0 : $borderRadius,
|
|
38
|
+
borderBottomRightRadius: $withFooter ? 0 : $borderRadius,
|
|
39
|
+
borderTopLeftRadius: $borderRadius,
|
|
40
|
+
borderTopRightRadius: $borderRadius,
|
|
41
|
+
paddingBottom: $paddingBottom - $borderWidth,
|
|
42
|
+
paddingLeft: $paddingLeft - $borderWidth,
|
|
43
|
+
paddingRight: $paddingRight - $borderWidth,
|
|
44
|
+
paddingTop: $paddingTop - $borderWidth,
|
|
45
45
|
display: 'flex',
|
|
46
46
|
flexDirection: 'column',
|
|
47
47
|
alignItems,
|
|
48
48
|
flexGrow,
|
|
49
49
|
flexShrink,
|
|
50
50
|
justifyContent,
|
|
51
|
-
alignSelf,
|
|
52
|
-
backgroundColor
|
|
51
|
+
alignSelf: $alignSelf,
|
|
52
|
+
backgroundColor: $backgroundColor
|
|
53
53
|
};
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* Card content, applying the card tokens as per the theme used.
|
|
58
58
|
*/
|
|
59
|
-
const CardContent = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
59
|
+
const CardContent = exports.CardContent = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
60
60
|
let {
|
|
61
61
|
children,
|
|
62
62
|
flexContent,
|
|
@@ -145,10 +145,35 @@ const CardContent = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
|
145
145
|
} else {
|
|
146
146
|
themeTokens = allTokens.current;
|
|
147
147
|
}
|
|
148
|
+
const {
|
|
149
|
+
borderRadius,
|
|
150
|
+
paddingBottom,
|
|
151
|
+
paddingLeft,
|
|
152
|
+
paddingRight,
|
|
153
|
+
paddingTop,
|
|
154
|
+
contentAlignItems,
|
|
155
|
+
contentFlexGrow,
|
|
156
|
+
contentFlexShrink,
|
|
157
|
+
contentJustifyContent,
|
|
158
|
+
borderWidth,
|
|
159
|
+
alignSelf,
|
|
160
|
+
backgroundColor
|
|
161
|
+
} = themeTokens;
|
|
148
162
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(CardContentContainer, {
|
|
149
|
-
|
|
163
|
+
$borderRadius: borderRadius,
|
|
164
|
+
$paddingBottom: paddingBottom,
|
|
165
|
+
$paddingLeft: paddingLeft,
|
|
166
|
+
$paddingRight: paddingRight,
|
|
167
|
+
$paddingTop: paddingTop,
|
|
168
|
+
$contentAlignItems: contentAlignItems,
|
|
169
|
+
$contentFlexGrow: contentFlexGrow,
|
|
170
|
+
$contentFlexShrink: contentFlexShrink,
|
|
171
|
+
$contentJustifyContent: contentJustifyContent,
|
|
172
|
+
$borderWidth: borderWidth,
|
|
173
|
+
$alignSelf: alignSelf,
|
|
174
|
+
$backgroundColor: backgroundColor,
|
|
150
175
|
flexContent: flexContent,
|
|
151
|
-
withFooter: withFooter,
|
|
176
|
+
$withFooter: withFooter,
|
|
152
177
|
ref: ref,
|
|
153
178
|
"data-media": mediaIds,
|
|
154
179
|
...selectProps(rest),
|
|
@@ -182,5 +207,4 @@ CardContent.propTypes = {
|
|
|
182
207
|
* When present, makes the CardContent background transparent.
|
|
183
208
|
*/
|
|
184
209
|
backgroundImage: _propTypes.default.object
|
|
185
|
-
};
|
|
186
|
-
var _default = exports.default = CardContent;
|
|
210
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.CardFooter = 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,24 +17,24 @@ const CardFooterContainer = /*#__PURE__*/_styledComponents.default.div.withConfi
|
|
|
17
17
|
componentId: "components-web__sc-pm6vns-0"
|
|
18
18
|
})(_ref => {
|
|
19
19
|
let {
|
|
20
|
-
backgroundColor,
|
|
21
|
-
borderRadius,
|
|
22
|
-
paddingBottom,
|
|
23
|
-
paddingLeft,
|
|
24
|
-
paddingRight,
|
|
25
|
-
paddingTop
|
|
20
|
+
$backgroundColor,
|
|
21
|
+
$borderRadius,
|
|
22
|
+
$paddingBottom,
|
|
23
|
+
$paddingLeft,
|
|
24
|
+
$paddingRight,
|
|
25
|
+
$paddingTop
|
|
26
26
|
} = _ref;
|
|
27
27
|
return {
|
|
28
|
-
backgroundColor,
|
|
29
|
-
borderBottomLeftRadius: borderRadius,
|
|
30
|
-
borderBottomRightRadius: borderRadius,
|
|
28
|
+
backgroundColor: $backgroundColor,
|
|
29
|
+
borderBottomLeftRadius: $borderRadius,
|
|
30
|
+
borderBottomRightRadius: $borderRadius,
|
|
31
31
|
// @todo circle back to the following non-standard value to
|
|
32
32
|
// see if it can be integrated into the palette
|
|
33
33
|
boxShadow: 'inset 0px 1px 3px rgba(0, 0, 0, 0.05)',
|
|
34
|
-
paddingBottom,
|
|
35
|
-
paddingLeft,
|
|
36
|
-
paddingRight,
|
|
37
|
-
paddingTop
|
|
34
|
+
paddingBottom: $paddingBottom,
|
|
35
|
+
paddingLeft: $paddingLeft,
|
|
36
|
+
paddingRight: $paddingRight,
|
|
37
|
+
paddingTop: $paddingTop
|
|
38
38
|
};
|
|
39
39
|
});
|
|
40
40
|
|
|
@@ -56,13 +56,24 @@ const CardFooter = _ref2 => {
|
|
|
56
56
|
}, {
|
|
57
57
|
viewport
|
|
58
58
|
});
|
|
59
|
+
const {
|
|
60
|
+
paddingBottom,
|
|
61
|
+
paddingLeft,
|
|
62
|
+
paddingRight,
|
|
63
|
+
paddingTop
|
|
64
|
+
} = padding || themeTokens;
|
|
59
65
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(CardFooterContainer, {
|
|
60
|
-
|
|
61
|
-
|
|
66
|
+
$paddingBottom: paddingBottom,
|
|
67
|
+
$paddingLeft: paddingLeft,
|
|
68
|
+
$paddingRight: paddingRight,
|
|
69
|
+
$paddingTop: paddingTop,
|
|
70
|
+
$borderRadius: themeTokens.borderRadius,
|
|
71
|
+
$backgroundColor: themeTokens.backgroundColor,
|
|
62
72
|
...selectProps(rest),
|
|
63
73
|
children: children
|
|
64
74
|
});
|
|
65
75
|
};
|
|
76
|
+
exports.CardFooter = CardFooter;
|
|
66
77
|
CardFooter.propTypes = {
|
|
67
78
|
...selectedSystemPropTypes,
|
|
68
79
|
/**
|
|
@@ -81,5 +92,4 @@ CardFooter.propTypes = {
|
|
|
81
92
|
* Card variant.
|
|
82
93
|
*/
|
|
83
94
|
variant: _componentsBase.variantProp.propType
|
|
84
|
-
};
|
|
85
|
-
var _default = exports.default = CardFooter;
|
|
95
|
+
};
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Countdown = 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 _systemConstants = require("@telus-uds/system-constants");
|
|
11
11
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
12
12
|
var _utils = require("../utils");
|
|
13
|
-
var _Segment =
|
|
14
|
-
var _useCountdown =
|
|
13
|
+
var _Segment = require("./Segment");
|
|
14
|
+
var _useCountdown = require("./useCountdown");
|
|
15
15
|
var _types = require("./types");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -80,7 +80,7 @@ const getMainTextTokens = _ref2 => {
|
|
|
80
80
|
fontName: textTimerFontName
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
|
-
const Countdown = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
83
|
+
const Countdown = exports.Countdown = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
84
84
|
let {
|
|
85
85
|
copy = 'en',
|
|
86
86
|
targetTime,
|
|
@@ -89,7 +89,7 @@ const Countdown = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
|
89
89
|
units = [DAYS, HOURS, MINUTES, SECONDS],
|
|
90
90
|
...rest
|
|
91
91
|
} = _ref3;
|
|
92
|
-
const [days, hours, minutes, seconds] = (0, _useCountdown.
|
|
92
|
+
const [days, hours, minutes, seconds] = (0, _useCountdown.useCountdown)(targetTime);
|
|
93
93
|
const viewport = (0, _componentsBase.useViewport)();
|
|
94
94
|
const {
|
|
95
95
|
feature,
|
|
@@ -230,7 +230,7 @@ const Countdown = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
|
230
230
|
return null;
|
|
231
231
|
}
|
|
232
232
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.default.Fragment, {
|
|
233
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Segment.
|
|
233
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Segment.Segment, {
|
|
234
234
|
labelKey: labelKey,
|
|
235
235
|
number: number,
|
|
236
236
|
...(unit === DAYS && {
|
|
@@ -265,5 +265,4 @@ Countdown.propTypes = {
|
|
|
265
265
|
* Possible values: `'days'`, `'hours'`, `'minutes'`, `'seconds'`
|
|
266
266
|
*/
|
|
267
267
|
units: _propTypes.default.arrayOf(_propTypes.default.oneOf([DAYS, HOURS, MINUTES, SECONDS]))
|
|
268
|
-
};
|
|
269
|
-
var _default = exports.default = Countdown;
|
|
268
|
+
};
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Segment = 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 _dictionary =
|
|
11
|
+
var _dictionary = require("./dictionary");
|
|
12
12
|
var _types = require("./types");
|
|
13
13
|
var _constants = require("./constants");
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -25,8 +25,8 @@ const Container = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
25
25
|
componentId: "components-web__sc-yrh35y-0"
|
|
26
26
|
})(_ref => {
|
|
27
27
|
let {
|
|
28
|
-
segmentFontSize,
|
|
29
|
-
segmentWidth = 2,
|
|
28
|
+
$segmentFontSize,
|
|
29
|
+
$segmentWidth = 2,
|
|
30
30
|
variant: {
|
|
31
31
|
feature
|
|
32
32
|
}
|
|
@@ -36,7 +36,7 @@ const Container = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
36
36
|
display: 'inline-flex',
|
|
37
37
|
...(feature && {
|
|
38
38
|
// This is required because when the numbers for Countdown change, the character widths will change and thereby effecting the container demensions.
|
|
39
|
-
width: `${segmentFontSize * _constants.SEGMENT_WIDTH_TO_FONT_SIZE_RATIO * segmentWidth}px`,
|
|
39
|
+
width: `${$segmentFontSize * _constants.SEGMENT_WIDTH_TO_FONT_SIZE_RATIO * $segmentWidth}px`,
|
|
40
40
|
display: 'flex'
|
|
41
41
|
})
|
|
42
42
|
};
|
|
@@ -44,7 +44,7 @@ const Container = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
44
44
|
// A segment of the countdown string: we need to make sure it
|
|
45
45
|
// keeps its width constant to prevent the whole component from
|
|
46
46
|
// being automatically resized while using variable size fonts
|
|
47
|
-
const Segment = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
47
|
+
const Segment = exports.Segment = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
48
48
|
let {
|
|
49
49
|
copy = 'en',
|
|
50
50
|
segmentFontSize,
|
|
@@ -58,7 +58,7 @@ const Segment = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
|
58
58
|
variant = {}
|
|
59
59
|
} = _ref2;
|
|
60
60
|
const getCopy = (0, _componentsBase.useCopy)({
|
|
61
|
-
dictionary: _dictionary.
|
|
61
|
+
dictionary: _dictionary.dictionary,
|
|
62
62
|
copy
|
|
63
63
|
});
|
|
64
64
|
const {
|
|
@@ -67,8 +67,8 @@ const Segment = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
|
67
67
|
feature
|
|
68
68
|
} = variant;
|
|
69
69
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Container, {
|
|
70
|
-
segmentFontSize: segmentFontSize,
|
|
71
|
-
segmentWidth: segmentWidth,
|
|
70
|
+
$segmentFontSize: segmentFontSize,
|
|
71
|
+
$segmentWidth: segmentWidth,
|
|
72
72
|
variant: variant,
|
|
73
73
|
ref: ref,
|
|
74
74
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_componentsBase.StackView, {
|
|
@@ -107,5 +107,4 @@ Segment.propTypes = {
|
|
|
107
107
|
labelMediaIds: _propTypes.default.string,
|
|
108
108
|
mainTextMediaIds: _propTypes.default.string,
|
|
109
109
|
variant: _types.countdownVariantPropType
|
|
110
|
-
};
|
|
111
|
-
var _default = exports.default = Segment;
|
|
110
|
+
};
|