@telus-uds/components-web 2.43.0 → 3.0.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 +26 -0
- package/CHANGELOG.md +21 -2
- package/babel.config.cjs +4 -0
- package/jest.config.cjs +29 -0
- package/lib/Badge/Badge.js +21 -29
- package/lib/Badge/index.js +2 -10
- package/lib/BlockQuote/BlockQuote.js +31 -39
- package/lib/BlockQuote/index.js +2 -10
- package/lib/Breadcrumbs/Breadcrumbs.js +39 -49
- package/lib/Breadcrumbs/Item/Item.js +26 -34
- package/lib/Breadcrumbs/index.js +1 -13
- package/lib/Callout/Callout.js +19 -27
- package/lib/Callout/index.js +2 -10
- package/lib/Card/Card.js +44 -54
- package/lib/Card/CardContent.js +17 -25
- package/lib/Card/CardFooter.js +16 -24
- package/lib/Card/index.js +2 -10
- package/lib/Countdown/Countdown.js +34 -42
- package/lib/Countdown/Segment.js +26 -34
- package/lib/Countdown/constants.js +4 -14
- package/lib/Countdown/dictionary.js +2 -9
- package/lib/Countdown/index.js +2 -10
- package/lib/Countdown/types.js +18 -28
- package/lib/Countdown/useCountdown.js +4 -11
- package/lib/DatePicker/CalendarContainer.js +6 -12
- package/lib/DatePicker/DatePicker.js +105 -101
- package/lib/DatePicker/dictionary.js +1 -8
- package/lib/DatePicker/index.js +2 -10
- package/lib/DatePicker/reactDatesCss.js +3 -10
- package/lib/Disclaimer/Disclaimer.js +15 -23
- package/lib/Disclaimer/index.js +1 -13
- package/lib/ExpandCollapseMini/ExpandCollapseMini.js +16 -24
- package/lib/ExpandCollapseMini/ExpandCollapseMiniControl.js +17 -26
- package/lib/ExpandCollapseMini/index.js +2 -10
- package/lib/Footnote/Footnote.js +85 -95
- package/lib/Footnote/FootnoteLink.js +25 -33
- package/lib/Footnote/dictionary.js +2 -9
- package/lib/Footnote/index.js +4 -12
- package/lib/IconButton/IconButton.js +12 -20
- package/lib/IconButton/index.js +2 -10
- package/lib/Image/Image.js +17 -25
- package/lib/Image/index.js +6 -18
- package/lib/Image/server.js +4 -12
- package/lib/List/List.js +2 -9
- package/lib/List/ListItem.js +10 -18
- package/lib/List/index.js +4 -12
- package/lib/NavigationBar/NavigationBar.js +51 -59
- package/lib/NavigationBar/NavigationItem.js +19 -27
- package/lib/NavigationBar/NavigationSubMenu.js +34 -40
- package/lib/NavigationBar/collapseItems.js +1 -11
- package/lib/NavigationBar/index.js +4 -12
- package/lib/NavigationBar/resolveItemSelection.js +1 -8
- package/lib/OptimizeImage/OptimizeImage.js +26 -34
- package/lib/OptimizeImage/index.js +2 -10
- package/lib/OptimizeImage/utils/getFallbackUrl.js +3 -10
- package/lib/OptimizeImage/utils/getImageUrls.js +9 -16
- package/lib/OptimizeImage/utils/getOptimizedUrl.js +3 -10
- package/lib/OptimizeImage/utils/hasWebpSupport.js +1 -7
- package/lib/OptimizeImage/utils/index.js +5 -34
- package/lib/OptimizeImage/utils/isSvgUrl.js +1 -7
- package/lib/OrderedList/Item.js +28 -36
- package/lib/OrderedList/ItemBase.js +8 -16
- package/lib/OrderedList/OrderedList.js +22 -30
- package/lib/OrderedList/OrderedListBase.js +12 -20
- package/lib/OrderedList/constants.js +1 -8
- package/lib/OrderedList/index.js +4 -12
- package/lib/Paragraph/Paragraph.js +22 -30
- package/lib/Paragraph/index.js +2 -10
- package/lib/PreviewCard/AuthorDate.js +17 -21
- package/lib/PreviewCard/PreviewCard.js +40 -49
- package/lib/PreviewCard/index.js +2 -10
- package/lib/PriceLockup/PriceLockup.js +56 -64
- package/lib/PriceLockup/index.js +2 -10
- package/lib/PriceLockup/tokens.js +2 -9
- package/lib/Progress/ProgressBar.js +17 -24
- package/lib/Progress/index.js +4 -12
- package/lib/QuantitySelector/QuantitySelector.js +55 -63
- package/lib/QuantitySelector/SideButton.js +15 -23
- package/lib/QuantitySelector/dictionary.js +2 -9
- package/lib/QuantitySelector/index.js +2 -10
- package/lib/QuantitySelector/styles.js +4 -13
- package/lib/ResponsiveImage/ResponsiveImage.js +29 -37
- package/lib/ResponsiveImage/index.js +2 -10
- package/lib/Ribbon/Ribbon.js +22 -30
- package/lib/Ribbon/index.js +2 -10
- package/lib/SkeletonProvider/SkeletonImage.js +14 -22
- package/lib/SkeletonProvider/SkeletonProvider.js +17 -25
- package/lib/SkeletonProvider/SkeletonTypography.js +14 -22
- package/lib/SkeletonProvider/index.js +2 -10
- package/lib/Span/Span.js +23 -31
- package/lib/Span/index.js +2 -10
- package/lib/Spinner/Spinner.js +43 -51
- package/lib/Spinner/SpinnerContent.js +21 -29
- package/lib/Spinner/constants.js +4 -14
- package/lib/Spinner/index.js +2 -10
- package/lib/StoryCard/StoryCard.js +40 -49
- package/lib/StoryCard/index.js +2 -10
- package/lib/Table/Body.js +7 -15
- package/lib/Table/Cell.js +28 -38
- package/lib/Table/Header.js +11 -19
- package/lib/Table/Row.js +8 -16
- package/lib/Table/SubHeading.js +10 -18
- package/lib/Table/Table.js +26 -35
- package/lib/Table/index.js +12 -20
- package/lib/TermsAndConditions/ExpandCollapse.js +22 -30
- package/lib/TermsAndConditions/TermsAndConditions.js +52 -60
- package/lib/TermsAndConditions/dictionary.js +2 -9
- package/lib/TermsAndConditions/index.js +1 -13
- package/lib/Testimonial/Testimonial.js +37 -45
- package/lib/Testimonial/index.js +2 -10
- package/lib/Toast/Toast.js +32 -42
- package/lib/Toast/index.js +2 -10
- package/lib/Video/ControlBar/ControlBar.js +73 -81
- package/lib/Video/ControlBar/Controls/VideoButton/VideoButton.js +16 -24
- package/lib/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +27 -35
- package/lib/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +27 -36
- package/lib/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +30 -38
- package/lib/Video/MiddleControlButton/MiddleControlButton.js +16 -24
- package/lib/Video/Video.js +74 -83
- package/lib/Video/index.js +2 -10
- package/lib/Video/videoText.js +1 -8
- package/lib/VideoPicker/VideoPicker.js +43 -53
- package/lib/VideoPicker/VideoPickerPlayer.js +17 -25
- package/lib/VideoPicker/VideoPickerThumbnail.js +38 -46
- package/lib/VideoPicker/VideoSlider.js +17 -26
- package/lib/VideoPicker/index.js +2 -10
- package/lib/VideoPicker/videoPropType.js +9 -18
- package/lib/WaffleGrid/WaffleGrid.js +33 -43
- package/lib/WaffleGrid/index.js +2 -10
- package/lib/WebVideo/WebVideo.js +42 -52
- package/lib/WebVideo/index.js +2 -10
- package/lib/WebVideo/utils/index.js +3 -11
- package/lib/baseExports.js +18 -431
- package/lib/index.js +38 -323
- package/lib/server.js +4 -12
- package/lib/shared/ConditionalWrapper/ConditionalWrapper.js +9 -17
- package/lib/shared/ConditionalWrapper/index.js +2 -10
- package/lib/shared/FullBleedContent/FullBleedContent.js +21 -29
- package/lib/shared/FullBleedContent/getFullBleedBorderRadius.js +1 -8
- package/lib/shared/FullBleedContent/index.js +4 -24
- package/lib/shared/FullBleedContent/useFullBleedContentProps.js +4 -11
- package/lib/shared/VideoSplash/SplashButton/SplashButton.js +19 -27
- package/lib/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +27 -35
- package/lib/shared/VideoSplash/VideoSplash.js +24 -32
- package/lib/shared/VideoSplash/helpers.js +5 -14
- package/lib/utils/index.js +10 -75
- package/lib/utils/isElementFocusable.js +1 -8
- package/lib/utils/logger.js +6 -15
- package/lib/utils/media.js +5 -11
- package/lib/utils/renderStructuredContent.js +8 -15
- package/lib/utils/ssr.js +5 -12
- package/lib/utils/theming/get-theme-from-server.js +2 -10
- package/lib/utils/theming/with-client-theme.js +9 -17
- package/lib/utils/theming/with-server-theme.js +11 -19
- package/lib/utils/transforms.js +3 -11
- package/lib/utils/useOverlaidPosition.js +15 -23
- package/lib/utils/useTypographyTheme.js +6 -13
- package/package.json +18 -20
- package/src/Card/Card.jsx +2 -2
- package/src/DatePicker/DatePicker.jsx +17 -4
- package/src/PreviewCard/AuthorDate.jsx +5 -3
- package/src/utils/logger.js +2 -2
- package/lib-module/Badge/Badge.js +0 -121
- package/lib-module/Badge/index.js +0 -2
- package/lib-module/BlockQuote/BlockQuote.js +0 -204
- package/lib-module/BlockQuote/index.js +0 -2
- package/lib-module/Breadcrumbs/Breadcrumbs.js +0 -250
- package/lib-module/Breadcrumbs/Item/Item.js +0 -175
- package/lib-module/Breadcrumbs/index.js +0 -1
- package/lib-module/Callout/Callout.js +0 -135
- package/lib-module/Callout/index.js +0 -2
- package/lib-module/Card/Card.js +0 -251
- package/lib-module/Card/CardContent.js +0 -90
- package/lib-module/Card/CardFooter.js +0 -78
- package/lib-module/Card/index.js +0 -2
- package/lib-module/Countdown/Countdown.js +0 -169
- package/lib-module/Countdown/Segment.js +0 -96
- package/lib-module/Countdown/constants.js +0 -4
- package/lib-module/Countdown/dictionary.js +0 -22
- package/lib-module/Countdown/index.js +0 -2
- package/lib-module/Countdown/types.js +0 -24
- package/lib-module/Countdown/useCountdown.js +0 -26
- package/lib-module/DatePicker/CalendarContainer.js +0 -208
- package/lib-module/DatePicker/DatePicker.js +0 -506
- package/lib-module/DatePicker/dictionary.js +0 -119
- package/lib-module/DatePicker/index.js +0 -2
- package/lib-module/DatePicker/reactDatesCss.js +0 -3
- package/lib-module/Disclaimer/Disclaimer.js +0 -54
- package/lib-module/Disclaimer/index.js +0 -1
- package/lib-module/ExpandCollapseMini/ExpandCollapseMini.js +0 -73
- package/lib-module/ExpandCollapseMini/ExpandCollapseMiniControl.js +0 -117
- package/lib-module/ExpandCollapseMini/index.js +0 -2
- package/lib-module/Footnote/Footnote.js +0 -632
- package/lib-module/Footnote/FootnoteLink.js +0 -118
- package/lib-module/Footnote/dictionary.js +0 -12
- package/lib-module/Footnote/index.js +0 -4
- package/lib-module/IconButton/IconButton.js +0 -55
- package/lib-module/IconButton/index.js +0 -2
- package/lib-module/Image/Image.js +0 -83
- package/lib-module/Image/index.js +0 -9
- package/lib-module/Image/server.js +0 -4
- package/lib-module/List/List.js +0 -2
- package/lib-module/List/ListItem.js +0 -28
- package/lib-module/List/index.js +0 -4
- package/lib-module/NavigationBar/NavigationBar.js +0 -224
- package/lib-module/NavigationBar/NavigationItem.js +0 -87
- package/lib-module/NavigationBar/NavigationSubMenu.js +0 -162
- package/lib-module/NavigationBar/collapseItems.js +0 -41
- package/lib-module/NavigationBar/index.js +0 -4
- package/lib-module/NavigationBar/resolveItemSelection.js +0 -16
- package/lib-module/OptimizeImage/OptimizeImage.js +0 -92
- package/lib-module/OptimizeImage/index.js +0 -2
- package/lib-module/OptimizeImage/utils/getFallbackUrl.js +0 -7
- package/lib-module/OptimizeImage/utils/getImageUrls.js +0 -12
- package/lib-module/OptimizeImage/utils/getOptimizedUrl.js +0 -17
- package/lib-module/OptimizeImage/utils/hasWebpSupport.js +0 -28
- package/lib-module/OptimizeImage/utils/index.js +0 -5
- package/lib-module/OptimizeImage/utils/isSvgUrl.js +0 -3
- package/lib-module/OrderedList/Item.js +0 -145
- package/lib-module/OrderedList/ItemBase.js +0 -27
- package/lib-module/OrderedList/OrderedList.js +0 -86
- package/lib-module/OrderedList/OrderedListBase.js +0 -45
- package/lib-module/OrderedList/constants.js +0 -2
- package/lib-module/OrderedList/index.js +0 -4
- package/lib-module/Paragraph/Paragraph.js +0 -90
- package/lib-module/Paragraph/index.js +0 -2
- package/lib-module/PreviewCard/AuthorDate.js +0 -57
- package/lib-module/PreviewCard/PreviewCard.js +0 -209
- package/lib-module/PreviewCard/index.js +0 -2
- package/lib-module/PriceLockup/PriceLockup.js +0 -335
- package/lib-module/PriceLockup/index.js +0 -2
- package/lib-module/PriceLockup/tokens.js +0 -55
- package/lib-module/Progress/ProgressBar.js +0 -83
- package/lib-module/Progress/index.js +0 -4
- package/lib-module/QuantitySelector/QuantitySelector.js +0 -261
- package/lib-module/QuantitySelector/SideButton.js +0 -70
- package/lib-module/QuantitySelector/dictionary.js +0 -26
- package/lib-module/QuantitySelector/index.js +0 -2
- package/lib-module/QuantitySelector/styles.js +0 -9
- package/lib-module/ResponsiveImage/ResponsiveImage.js +0 -95
- package/lib-module/ResponsiveImage/index.js +0 -2
- package/lib-module/Ribbon/Ribbon.js +0 -216
- package/lib-module/Ribbon/index.js +0 -2
- package/lib-module/SkeletonProvider/SkeletonImage.js +0 -39
- package/lib-module/SkeletonProvider/SkeletonProvider.js +0 -57
- package/lib-module/SkeletonProvider/SkeletonTypography.js +0 -38
- package/lib-module/SkeletonProvider/index.js +0 -2
- package/lib-module/Span/Span.js +0 -72
- package/lib-module/Span/index.js +0 -2
- package/lib-module/Spinner/Spinner.js +0 -215
- package/lib-module/Spinner/SpinnerContent.js +0 -94
- package/lib-module/Spinner/constants.js +0 -4
- package/lib-module/Spinner/index.js +0 -2
- package/lib-module/StoryCard/StoryCard.js +0 -212
- package/lib-module/StoryCard/index.js +0 -2
- package/lib-module/Table/Body.js +0 -17
- package/lib-module/Table/Cell.js +0 -176
- package/lib-module/Table/Header.js +0 -25
- package/lib-module/Table/Row.js +0 -19
- package/lib-module/Table/SubHeading.js +0 -23
- package/lib-module/Table/Table.js +0 -114
- package/lib-module/Table/index.js +0 -12
- package/lib-module/TermsAndConditions/ExpandCollapse.js +0 -153
- package/lib-module/TermsAndConditions/TermsAndConditions.js +0 -277
- package/lib-module/TermsAndConditions/dictionary.js +0 -16
- package/lib-module/TermsAndConditions/index.js +0 -1
- package/lib-module/Testimonial/Testimonial.js +0 -234
- package/lib-module/Testimonial/index.js +0 -2
- package/lib-module/Toast/Toast.js +0 -158
- package/lib-module/Toast/index.js +0 -2
- package/lib-module/Video/ControlBar/ControlBar.js +0 -288
- package/lib-module/Video/ControlBar/Controls/VideoButton/VideoButton.js +0 -70
- package/lib-module/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +0 -163
- package/lib-module/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +0 -203
- package/lib-module/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +0 -191
- package/lib-module/Video/MiddleControlButton/MiddleControlButton.js +0 -71
- package/lib-module/Video/Video.js +0 -959
- package/lib-module/Video/index.js +0 -2
- package/lib-module/Video/videoText.js +0 -55
- package/lib-module/VideoPicker/VideoPicker.js +0 -190
- package/lib-module/VideoPicker/VideoPickerPlayer.js +0 -48
- package/lib-module/VideoPicker/VideoPickerThumbnail.js +0 -218
- package/lib-module/VideoPicker/VideoSlider.js +0 -82
- package/lib-module/VideoPicker/index.js +0 -2
- package/lib-module/VideoPicker/videoPropType.js +0 -10
- package/lib-module/WaffleGrid/WaffleGrid.js +0 -157
- package/lib-module/WaffleGrid/index.js +0 -2
- package/lib-module/WebVideo/WebVideo.js +0 -191
- package/lib-module/WebVideo/index.js +0 -2
- package/lib-module/WebVideo/utils/index.js +0 -50
- package/lib-module/baseExports.js +0 -19
- package/lib-module/index.js +0 -40
- package/lib-module/server.js +0 -5
- package/lib-module/shared/ConditionalWrapper/ConditionalWrapper.js +0 -22
- package/lib-module/shared/ConditionalWrapper/index.js +0 -2
- package/lib-module/shared/FullBleedContent/FullBleedContent.js +0 -101
- package/lib-module/shared/FullBleedContent/getFullBleedBorderRadius.js +0 -55
- package/lib-module/shared/FullBleedContent/index.js +0 -4
- package/lib-module/shared/FullBleedContent/useFullBleedContentProps.js +0 -55
- package/lib-module/shared/VideoSplash/SplashButton/SplashButton.js +0 -84
- package/lib-module/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +0 -223
- package/lib-module/shared/VideoSplash/VideoSplash.js +0 -65
- package/lib-module/shared/VideoSplash/helpers.js +0 -23
- package/lib-module/utils/index.js +0 -10
- package/lib-module/utils/isElementFocusable.js +0 -8
- package/lib-module/utils/logger.js +0 -18
- package/lib-module/utils/media.js +0 -39
- package/lib-module/utils/renderStructuredContent.js +0 -66
- package/lib-module/utils/ssr.js +0 -37
- package/lib-module/utils/theming/get-theme-from-server.js +0 -16
- package/lib-module/utils/theming/with-client-theme.js +0 -24
- package/lib-module/utils/theming/with-server-theme.js +0 -26
- package/lib-module/utils/transforms.js +0 -4
- package/lib-module/utils/useOverlaidPosition.js +0 -216
- package/lib-module/utils/useTypographyTheme.js +0 -24
package/lib/index.js
CHANGED
|
@@ -1,325 +1,40 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
'use client';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
TermsAndConditions: true,
|
|
43
|
-
NavigationBar: true,
|
|
44
|
-
Progress: true,
|
|
45
|
-
SkeletonProvider: true
|
|
46
|
-
};
|
|
47
|
-
Object.defineProperty(exports, "Badge", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function () {
|
|
50
|
-
return _Badge.default;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(exports, "BlockQuote", {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
get: function () {
|
|
56
|
-
return _BlockQuote.default;
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
Object.defineProperty(exports, "Breadcrumbs", {
|
|
60
|
-
enumerable: true,
|
|
61
|
-
get: function () {
|
|
62
|
-
return _Breadcrumbs.default;
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
Object.defineProperty(exports, "Callout", {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function () {
|
|
68
|
-
return _Callout.default;
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
Object.defineProperty(exports, "Card", {
|
|
72
|
-
enumerable: true,
|
|
73
|
-
get: function () {
|
|
74
|
-
return _Card.default;
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
Object.defineProperty(exports, "Countdown", {
|
|
78
|
-
enumerable: true,
|
|
79
|
-
get: function () {
|
|
80
|
-
return _Countdown.default;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
Object.defineProperty(exports, "DatePicker", {
|
|
84
|
-
enumerable: true,
|
|
85
|
-
get: function () {
|
|
86
|
-
return _DatePicker.default;
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
Object.defineProperty(exports, "DefaultImage", {
|
|
90
|
-
enumerable: true,
|
|
91
|
-
get: function () {
|
|
92
|
-
return _Image.DefaultImage;
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
Object.defineProperty(exports, "Disclaimer", {
|
|
96
|
-
enumerable: true,
|
|
97
|
-
get: function () {
|
|
98
|
-
return _Disclaimer.default;
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
Object.defineProperty(exports, "ExpandCollapseMini", {
|
|
102
|
-
enumerable: true,
|
|
103
|
-
get: function () {
|
|
104
|
-
return _ExpandCollapseMini.default;
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
Object.defineProperty(exports, "Footnote", {
|
|
108
|
-
enumerable: true,
|
|
109
|
-
get: function () {
|
|
110
|
-
return _Footnote.default;
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
Object.defineProperty(exports, "IconButton", {
|
|
114
|
-
enumerable: true,
|
|
115
|
-
get: function () {
|
|
116
|
-
return _IconButton.default;
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
Object.defineProperty(exports, "Image", {
|
|
120
|
-
enumerable: true,
|
|
121
|
-
get: function () {
|
|
122
|
-
return _Image.default;
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
Object.defineProperty(exports, "List", {
|
|
126
|
-
enumerable: true,
|
|
127
|
-
get: function () {
|
|
128
|
-
return _List.default;
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
Object.defineProperty(exports, "NavigationBar", {
|
|
132
|
-
enumerable: true,
|
|
133
|
-
get: function () {
|
|
134
|
-
return _NavigationBar.default;
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
Object.defineProperty(exports, "OptimizeImage", {
|
|
138
|
-
enumerable: true,
|
|
139
|
-
get: function () {
|
|
140
|
-
return _OptimizeImage.default;
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
Object.defineProperty(exports, "OrderedList", {
|
|
144
|
-
enumerable: true,
|
|
145
|
-
get: function () {
|
|
146
|
-
return _OrderedList.default;
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
Object.defineProperty(exports, "Paragraph", {
|
|
150
|
-
enumerable: true,
|
|
151
|
-
get: function () {
|
|
152
|
-
return _Paragraph.default;
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
Object.defineProperty(exports, "PreviewCard", {
|
|
156
|
-
enumerable: true,
|
|
157
|
-
get: function () {
|
|
158
|
-
return _PreviewCard.default;
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
Object.defineProperty(exports, "PriceLockup", {
|
|
162
|
-
enumerable: true,
|
|
163
|
-
get: function () {
|
|
164
|
-
return _PriceLockup.default;
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
Object.defineProperty(exports, "Progress", {
|
|
168
|
-
enumerable: true,
|
|
169
|
-
get: function () {
|
|
170
|
-
return _Progress.default;
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
Object.defineProperty(exports, "QuantitySelector", {
|
|
174
|
-
enumerable: true,
|
|
175
|
-
get: function () {
|
|
176
|
-
return _QuantitySelector.default;
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
Object.defineProperty(exports, "ResponsiveImage", {
|
|
180
|
-
enumerable: true,
|
|
181
|
-
get: function () {
|
|
182
|
-
return _ResponsiveImage.default;
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
Object.defineProperty(exports, "Ribbon", {
|
|
186
|
-
enumerable: true,
|
|
187
|
-
get: function () {
|
|
188
|
-
return _Ribbon.default;
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
Object.defineProperty(exports, "SkeletonProvider", {
|
|
192
|
-
enumerable: true,
|
|
193
|
-
get: function () {
|
|
194
|
-
return _SkeletonProvider.default;
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
Object.defineProperty(exports, "Span", {
|
|
198
|
-
enumerable: true,
|
|
199
|
-
get: function () {
|
|
200
|
-
return _Span.default;
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
Object.defineProperty(exports, "Spinner", {
|
|
204
|
-
enumerable: true,
|
|
205
|
-
get: function () {
|
|
206
|
-
return _Spinner.default;
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
Object.defineProperty(exports, "StoryCard", {
|
|
210
|
-
enumerable: true,
|
|
211
|
-
get: function () {
|
|
212
|
-
return _StoryCard.default;
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
Object.defineProperty(exports, "Table", {
|
|
216
|
-
enumerable: true,
|
|
217
|
-
get: function () {
|
|
218
|
-
return _Table.default;
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
Object.defineProperty(exports, "TermsAndConditions", {
|
|
222
|
-
enumerable: true,
|
|
223
|
-
get: function () {
|
|
224
|
-
return _TermsAndConditions.default;
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
Object.defineProperty(exports, "Testimonial", {
|
|
228
|
-
enumerable: true,
|
|
229
|
-
get: function () {
|
|
230
|
-
return _Testimonial.default;
|
|
231
|
-
}
|
|
232
|
-
});
|
|
233
|
-
Object.defineProperty(exports, "Toast", {
|
|
234
|
-
enumerable: true,
|
|
235
|
-
get: function () {
|
|
236
|
-
return _Toast.default;
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
Object.defineProperty(exports, "Video", {
|
|
240
|
-
enumerable: true,
|
|
241
|
-
get: function () {
|
|
242
|
-
return _Video.default;
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
Object.defineProperty(exports, "VideoPicker", {
|
|
246
|
-
enumerable: true,
|
|
247
|
-
get: function () {
|
|
248
|
-
return _VideoPicker.default;
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
Object.defineProperty(exports, "WaffleGrid", {
|
|
252
|
-
enumerable: true,
|
|
253
|
-
get: function () {
|
|
254
|
-
return _WaffleGrid.default;
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
Object.defineProperty(exports, "WebVideo", {
|
|
258
|
-
enumerable: true,
|
|
259
|
-
get: function () {
|
|
260
|
-
return _WebVideo.default;
|
|
261
|
-
}
|
|
262
|
-
});
|
|
263
|
-
Object.defineProperty(exports, "ssrStyles", {
|
|
264
|
-
enumerable: true,
|
|
265
|
-
get: function () {
|
|
266
|
-
return _utils.ssrStyles;
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
Object.defineProperty(exports, "transformGradient", {
|
|
270
|
-
enumerable: true,
|
|
271
|
-
get: function () {
|
|
272
|
-
return _utils.transformGradient;
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
var _Badge = _interopRequireDefault(require("./Badge"));
|
|
276
|
-
var _OrderedList = _interopRequireDefault(require("./OrderedList"));
|
|
277
|
-
var _PreviewCard = _interopRequireDefault(require("./PreviewCard"));
|
|
278
|
-
var _ResponsiveImage = _interopRequireDefault(require("./ResponsiveImage"));
|
|
279
|
-
var _Ribbon = _interopRequireDefault(require("./Ribbon"));
|
|
280
|
-
var _Countdown = _interopRequireDefault(require("./Countdown"));
|
|
281
|
-
var _DatePicker = _interopRequireDefault(require("./DatePicker"));
|
|
282
|
-
var _Paragraph = _interopRequireDefault(require("./Paragraph"));
|
|
283
|
-
var _Span = _interopRequireDefault(require("./Span"));
|
|
284
|
-
var _ExpandCollapseMini = _interopRequireDefault(require("./ExpandCollapseMini"));
|
|
285
|
-
var _Callout = _interopRequireDefault(require("./Callout"));
|
|
286
|
-
var _PriceLockup = _interopRequireDefault(require("./PriceLockup"));
|
|
287
|
-
var _Footnote = _interopRequireDefault(require("./Footnote"));
|
|
288
|
-
var _QuantitySelector = _interopRequireDefault(require("./QuantitySelector"));
|
|
289
|
-
var _IconButton = _interopRequireDefault(require("./IconButton"));
|
|
290
|
-
var _Image = _interopRequireWildcard(require("./Image"));
|
|
291
|
-
var _utils = require("./utils");
|
|
292
|
-
var _Breadcrumbs = _interopRequireDefault(require("./Breadcrumbs"));
|
|
293
|
-
var _BlockQuote = _interopRequireDefault(require("./BlockQuote"));
|
|
294
|
-
var _OptimizeImage = _interopRequireDefault(require("./OptimizeImage"));
|
|
295
|
-
var _Testimonial = _interopRequireDefault(require("./Testimonial"));
|
|
296
|
-
var _Toast = _interopRequireDefault(require("./Toast"));
|
|
297
|
-
var _Table = _interopRequireDefault(require("./Table"));
|
|
298
|
-
var _WebVideo = _interopRequireDefault(require("./WebVideo"));
|
|
299
|
-
var _WaffleGrid = _interopRequireDefault(require("./WaffleGrid"));
|
|
300
|
-
var _Spinner = _interopRequireDefault(require("./Spinner"));
|
|
301
|
-
var _VideoPicker = _interopRequireDefault(require("./VideoPicker"));
|
|
302
|
-
var _Video = _interopRequireDefault(require("./Video"));
|
|
303
|
-
var _StoryCard = _interopRequireDefault(require("./StoryCard"));
|
|
304
|
-
var _Disclaimer = _interopRequireDefault(require("./Disclaimer"));
|
|
305
|
-
var _Card = _interopRequireDefault(require("./Card"));
|
|
306
|
-
var _List = _interopRequireDefault(require("./List"));
|
|
307
|
-
var _TermsAndConditions = _interopRequireDefault(require("./TermsAndConditions"));
|
|
308
|
-
var _NavigationBar = _interopRequireDefault(require("./NavigationBar"));
|
|
309
|
-
var _Progress = _interopRequireDefault(require("./Progress"));
|
|
310
|
-
var _SkeletonProvider = _interopRequireDefault(require("./SkeletonProvider"));
|
|
311
|
-
var _baseExports = require("./baseExports");
|
|
312
|
-
Object.keys(_baseExports).forEach(function (key) {
|
|
313
|
-
if (key === "default" || key === "__esModule") return;
|
|
314
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
315
|
-
if (key in exports && exports[key] === _baseExports[key]) return;
|
|
316
|
-
Object.defineProperty(exports, key, {
|
|
317
|
-
enumerable: true,
|
|
318
|
-
get: function () {
|
|
319
|
-
return _baseExports[key];
|
|
320
|
-
}
|
|
321
|
-
});
|
|
322
|
-
});
|
|
323
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
324
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
325
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3
|
+
export { default as Badge } from './Badge';
|
|
4
|
+
export { default as OrderedList } from './OrderedList';
|
|
5
|
+
export { default as PreviewCard } from './PreviewCard';
|
|
6
|
+
export { default as ResponsiveImage } from './ResponsiveImage';
|
|
7
|
+
export { default as Ribbon } from './Ribbon';
|
|
8
|
+
export { default as Countdown } from './Countdown';
|
|
9
|
+
export { default as DatePicker } from './DatePicker';
|
|
10
|
+
export { default as Paragraph } from './Paragraph';
|
|
11
|
+
export { default as Span } from './Span';
|
|
12
|
+
export { default as ExpandCollapseMini } from './ExpandCollapseMini';
|
|
13
|
+
export { default as Callout } from './Callout';
|
|
14
|
+
export { default as PriceLockup } from './PriceLockup';
|
|
15
|
+
export { default as Footnote } from './Footnote';
|
|
16
|
+
export { default as QuantitySelector } from './QuantitySelector';
|
|
17
|
+
export { default as IconButton } from './IconButton';
|
|
18
|
+
export { default as Image, DefaultImage } from './Image';
|
|
19
|
+
export { transformGradient } from './utils';
|
|
20
|
+
export { default as Breadcrumbs } from './Breadcrumbs';
|
|
21
|
+
export { default as BlockQuote } from './BlockQuote';
|
|
22
|
+
export { default as OptimizeImage } from './OptimizeImage';
|
|
23
|
+
export { default as Testimonial } from './Testimonial';
|
|
24
|
+
export { default as Toast } from './Toast';
|
|
25
|
+
export { default as Table } from './Table';
|
|
26
|
+
export { default as WebVideo } from './WebVideo';
|
|
27
|
+
export { default as WaffleGrid } from './WaffleGrid';
|
|
28
|
+
export { default as Spinner } from './Spinner';
|
|
29
|
+
export { default as VideoPicker } from './VideoPicker';
|
|
30
|
+
export { default as Video } from './Video';
|
|
31
|
+
export { default as StoryCard } from './StoryCard';
|
|
32
|
+
export { default as Disclaimer } from './Disclaimer';
|
|
33
|
+
export { default as Card } from './Card';
|
|
34
|
+
export { default as List } from './List';
|
|
35
|
+
export { default as TermsAndConditions } from './TermsAndConditions';
|
|
36
|
+
export { default as NavigationBar } from './NavigationBar';
|
|
37
|
+
export { default as Progress } from './Progress';
|
|
38
|
+
export { default as SkeletonProvider } from './SkeletonProvider';
|
|
39
|
+
export { ssrStyles } from './utils';
|
|
40
|
+
export * from './baseExports';
|
package/lib/server.js
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import ServerThemedImage from './Image/server';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
Object.defineProperty(exports, "Image", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _server.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _server = _interopRequireDefault(require("./Image/server"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3
|
+
// Export themed components
|
|
4
|
+
/* eslint-disable import/prefer-default-export */
|
|
5
|
+
export { ServerThemedImage as Image };
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
4
|
const ConditionalWrapper = _ref => {
|
|
12
5
|
let {
|
|
13
6
|
children,
|
|
@@ -15,16 +8,15 @@ const ConditionalWrapper = _ref => {
|
|
|
15
8
|
WrapperComponent,
|
|
16
9
|
wrapperProps
|
|
17
10
|
} = _ref;
|
|
18
|
-
return condition ? /*#__PURE__*/(
|
|
11
|
+
return condition ? /*#__PURE__*/_jsx(WrapperComponent, {
|
|
19
12
|
...wrapperProps,
|
|
20
13
|
children: children
|
|
21
14
|
}) : children;
|
|
22
15
|
};
|
|
23
16
|
ConditionalWrapper.propTypes = {
|
|
24
|
-
children:
|
|
25
|
-
condition:
|
|
26
|
-
WrapperComponent:
|
|
27
|
-
wrapperProps:
|
|
17
|
+
children: PropTypes.node,
|
|
18
|
+
condition: PropTypes.bool,
|
|
19
|
+
WrapperComponent: PropTypes.elementType,
|
|
20
|
+
wrapperProps: PropTypes.object
|
|
28
21
|
};
|
|
29
|
-
|
|
30
|
-
exports.default = _default;
|
|
22
|
+
export default ConditionalWrapper;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _ConditionalWrapper = _interopRequireDefault(require("./ConditionalWrapper"));
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
var _default = _ConditionalWrapper.default;
|
|
10
|
-
exports.default = _default;
|
|
1
|
+
import ConditionalWrapper from './ConditionalWrapper';
|
|
2
|
+
export default ConditionalWrapper;
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _ResponsiveImage = _interopRequireDefault(require("../../ResponsiveImage"));
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import ResponsiveImage from '../../ResponsiveImage';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
6
|
const selectFullBleedContentProps = _ref => {
|
|
14
7
|
let {
|
|
15
8
|
alt,
|
|
@@ -38,7 +31,7 @@ const selectFullBleedContentProps = _ref => {
|
|
|
38
31
|
xsSrc
|
|
39
32
|
};
|
|
40
33
|
};
|
|
41
|
-
const FullBleedContentContainer = /*#__PURE__*/
|
|
34
|
+
const FullBleedContentContainer = /*#__PURE__*/styled.div.withConfig({
|
|
42
35
|
displayName: "FullBleedContent__FullBleedContentContainer",
|
|
43
36
|
componentId: "components-web__sc-1130ea5-0"
|
|
44
37
|
})(_ref2 => {
|
|
@@ -68,9 +61,9 @@ const FullBleedContent = _ref3 => {
|
|
|
68
61
|
content,
|
|
69
62
|
...rest
|
|
70
63
|
} = _ref3;
|
|
71
|
-
return /*#__PURE__*/(
|
|
64
|
+
return /*#__PURE__*/_jsx(FullBleedContentContainer, {
|
|
72
65
|
...borderRadius,
|
|
73
|
-
children: content ?? /*#__PURE__*/(
|
|
66
|
+
children: content ?? /*#__PURE__*/_jsx(ResponsiveImage, {
|
|
74
67
|
...selectFullBleedContentProps(rest)
|
|
75
68
|
})
|
|
76
69
|
});
|
|
@@ -79,31 +72,30 @@ FullBleedContent.propTypes = {
|
|
|
79
72
|
/**
|
|
80
73
|
* Content border radius matching the edge values on the parent card.
|
|
81
74
|
*/
|
|
82
|
-
borderRadius:
|
|
83
|
-
borderBottomLeftRadius:
|
|
84
|
-
borderBottomRightRadius:
|
|
85
|
-
borderTopLeftRadius:
|
|
86
|
-
borderTopRightRadius:
|
|
75
|
+
borderRadius: PropTypes.shape({
|
|
76
|
+
borderBottomLeftRadius: PropTypes.number,
|
|
77
|
+
borderBottomRightRadius: PropTypes.number,
|
|
78
|
+
borderTopLeftRadius: PropTypes.number,
|
|
79
|
+
borderTopRightRadius: PropTypes.number
|
|
87
80
|
}),
|
|
88
81
|
/**
|
|
89
82
|
* Custom JSX to be used for rendering the content (defaults to `ResponsiveImage` receiving other props).
|
|
90
83
|
*/
|
|
91
|
-
content:
|
|
84
|
+
content: PropTypes.node,
|
|
92
85
|
/**
|
|
93
86
|
* Image source.
|
|
94
87
|
*/
|
|
95
|
-
src:
|
|
88
|
+
src: PropTypes.string,
|
|
96
89
|
/**
|
|
97
90
|
* Also accept props for `ResponsiveImage`...
|
|
98
91
|
*/
|
|
99
|
-
...
|
|
92
|
+
...ResponsiveImage.propTypes,
|
|
100
93
|
/**
|
|
101
94
|
* ...but make the required ones optional.
|
|
102
95
|
*/
|
|
103
|
-
alt:
|
|
104
|
-
xsSrc:
|
|
105
|
-
smSrc:
|
|
106
|
-
fallbackSrc:
|
|
96
|
+
alt: PropTypes.string,
|
|
97
|
+
xsSrc: PropTypes.string,
|
|
98
|
+
smSrc: PropTypes.string,
|
|
99
|
+
fallbackSrc: PropTypes.string
|
|
107
100
|
};
|
|
108
|
-
|
|
109
|
-
exports.default = _default;
|
|
101
|
+
export default FullBleedContent;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
1
|
/**
|
|
8
2
|
* Gets the border radius values for an item of content that goes right up to
|
|
9
3
|
* the edges of its container, to the top, bottom, left or right of other content.
|
|
@@ -58,5 +52,4 @@ const getFullBleedBorderRadius = function (borderRadius, position) {
|
|
|
58
52
|
}
|
|
59
53
|
return innerBorderRadius;
|
|
60
54
|
};
|
|
61
|
-
|
|
62
|
-
exports.default = _default;
|
|
55
|
+
export default getFullBleedBorderRadius;
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
Object.defineProperty(exports, "getFullBleedBorderRadius", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return _getFullBleedBorderRadius.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "useFullBleedContentProps", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return _useFullBleedContentProps.default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
var _FullBleedContent = _interopRequireDefault(require("./FullBleedContent"));
|
|
20
|
-
var _getFullBleedBorderRadius = _interopRequireDefault(require("./getFullBleedBorderRadius"));
|
|
21
|
-
var _useFullBleedContentProps = _interopRequireDefault(require("./useFullBleedContentProps"));
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
var _default = _FullBleedContent.default;
|
|
24
|
-
exports.default = _default;
|
|
1
|
+
import FullBleedContent from './FullBleedContent';
|
|
2
|
+
export default FullBleedContent;
|
|
3
|
+
export { default as getFullBleedBorderRadius } from './getFullBleedBorderRadius';
|
|
4
|
+
export { default as useFullBleedContentProps } from './useFullBleedContentProps';
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _componentsBase = require("@telus-uds/components-base");
|
|
1
|
+
import { useResponsiveProp } from '@telus-uds/components-base';
|
|
8
2
|
const getContentStackDirection = fullBleedContentPosition => {
|
|
9
3
|
switch (fullBleedContentPosition) {
|
|
10
4
|
case 'left':
|
|
@@ -47,9 +41,9 @@ const useFullBleedContentProps = fullBleedContent => {
|
|
|
47
41
|
} = fullBleedContent ?? {
|
|
48
42
|
position: 'none'
|
|
49
43
|
};
|
|
50
|
-
const fullBleedContentPosition =
|
|
44
|
+
const fullBleedContentPosition = useResponsiveProp(fullBleedContentPositionProp, 'none');
|
|
51
45
|
const contentStackDirection = getContentStackDirection(fullBleedContentPosition);
|
|
52
|
-
const fullBleedContentAlign =
|
|
46
|
+
const fullBleedContentAlign = useResponsiveProp(fullBleedContentAlignProp, 'stretch');
|
|
53
47
|
const contentStackAlign = getContentStackAlign(fullBleedContentAlign);
|
|
54
48
|
return {
|
|
55
49
|
contentStackAlign,
|
|
@@ -58,5 +52,4 @@ const useFullBleedContentProps = fullBleedContent => {
|
|
|
58
52
|
fullBleedContentProps
|
|
59
53
|
};
|
|
60
54
|
};
|
|
61
|
-
|
|
62
|
-
exports.default = _default;
|
|
55
|
+
export default useFullBleedContentProps;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _componentsBase = require("@telus-uds/components-base");
|
|
11
|
-
var _helpers = require("../helpers");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
const ButtonContainer = /*#__PURE__*/_styledComponents.default.button.withConfig({
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { useThemeTokens } from '@telus-uds/components-base';
|
|
5
|
+
import { getAriaLabel, getTimestamp } from '../helpers';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const ButtonContainer = /*#__PURE__*/styled.button.withConfig({
|
|
15
8
|
displayName: "SplashButton__ButtonContainer",
|
|
16
9
|
componentId: "components-web__sc-1oe22fk-0"
|
|
17
10
|
})({
|
|
@@ -26,7 +19,7 @@ const ButtonContainer = /*#__PURE__*/_styledComponents.default.button.withConfig
|
|
|
26
19
|
alignItems: 'center',
|
|
27
20
|
cursor: 'pointer'
|
|
28
21
|
});
|
|
29
|
-
const ButtonContent = /*#__PURE__*/
|
|
22
|
+
const ButtonContent = /*#__PURE__*/styled.div.withConfig({
|
|
30
23
|
displayName: "SplashButton__ButtonContent",
|
|
31
24
|
componentId: "components-web__sc-1oe22fk-1"
|
|
32
25
|
})({
|
|
@@ -61,21 +54,21 @@ const SplashButton = _ref3 => {
|
|
|
61
54
|
} = _ref3;
|
|
62
55
|
const {
|
|
63
56
|
buttonContentChildrenBackground
|
|
64
|
-
} =
|
|
57
|
+
} = useThemeTokens('SplashButton', tokens, variant, {
|
|
65
58
|
hover: true
|
|
66
59
|
});
|
|
67
60
|
const {
|
|
68
61
|
playIcon: PlayIcon,
|
|
69
62
|
playIconColor,
|
|
70
63
|
...themeTokens
|
|
71
|
-
} =
|
|
72
|
-
const ariaLabel =
|
|
73
|
-
return /*#__PURE__*/(
|
|
64
|
+
} = useThemeTokens('SplashButton', tokens, variant);
|
|
65
|
+
const ariaLabel = getAriaLabel(getTimestamp(videoLength), copy);
|
|
66
|
+
return /*#__PURE__*/_jsx(ButtonContainer, {
|
|
74
67
|
"aria-label": ariaLabel,
|
|
75
|
-
children: /*#__PURE__*/(
|
|
68
|
+
children: /*#__PURE__*/_jsx(ButtonContent, {
|
|
76
69
|
...themeTokens,
|
|
77
70
|
buttonContentChildrenBackground: buttonContentChildrenBackground,
|
|
78
|
-
children: /*#__PURE__*/(
|
|
71
|
+
children: /*#__PURE__*/_jsx(PlayIcon, {
|
|
79
72
|
size: 27,
|
|
80
73
|
color: playIconColor
|
|
81
74
|
})
|
|
@@ -83,10 +76,9 @@ const SplashButton = _ref3 => {
|
|
|
83
76
|
});
|
|
84
77
|
};
|
|
85
78
|
SplashButton.propTypes = {
|
|
86
|
-
videoLength:
|
|
87
|
-
tokens:
|
|
88
|
-
variant:
|
|
89
|
-
copy:
|
|
79
|
+
videoLength: PropTypes.number,
|
|
80
|
+
tokens: PropTypes.object,
|
|
81
|
+
variant: PropTypes.object,
|
|
82
|
+
copy: PropTypes.oneOf(['en', 'fr'])
|
|
90
83
|
};
|
|
91
|
-
|
|
92
|
-
exports.default = _default;
|
|
84
|
+
export default SplashButton;
|