@telus-uds/components-web 2.21.1 → 2.22.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.
Files changed (241) hide show
  1. package/CHANGELOG.md +22 -2
  2. package/lib/Badge/Badge.js +2 -14
  3. package/lib/Badge/index.js +0 -3
  4. package/lib/BlockQuote/BlockQuote.js +4 -25
  5. package/lib/BlockQuote/index.js +0 -3
  6. package/lib/Breadcrumbs/Breadcrumbs.js +9 -36
  7. package/lib/Breadcrumbs/Item/Item.js +15 -25
  8. package/lib/Breadcrumbs/index.js +0 -2
  9. package/lib/Callout/Callout.js +2 -24
  10. package/lib/Callout/index.js +0 -3
  11. package/lib/Card/Card.js +15 -29
  12. package/lib/Card/CardContent.js +5 -18
  13. package/lib/Card/CardFooter.js +7 -19
  14. package/lib/Card/index.js +0 -3
  15. package/lib/Countdown/Countdown.js +5 -24
  16. package/lib/Countdown/Segment.js +3 -15
  17. package/lib/Countdown/index.js +0 -3
  18. package/lib/Countdown/types.js +2 -7
  19. package/lib/Countdown/useCountdown.js +0 -7
  20. package/lib/DatePicker/CalendarContainer.js +0 -5
  21. package/lib/DatePicker/DatePicker.js +9 -61
  22. package/lib/DatePicker/dictionary.js +0 -8
  23. package/lib/DatePicker/index.js +0 -3
  24. package/lib/DatePicker/reactDatesCss.js +0 -2
  25. package/lib/Disclaimer/Disclaimer.js +5 -14
  26. package/lib/Disclaimer/index.js +0 -2
  27. package/lib/ExpandCollapseMini/ExpandCollapseMini.js +6 -17
  28. package/lib/ExpandCollapseMini/ExpandCollapseMiniControl.js +12 -25
  29. package/lib/ExpandCollapseMini/index.js +0 -3
  30. package/lib/Footnote/Footnote.js +17 -63
  31. package/lib/Footnote/FootnoteLink.js +3 -24
  32. package/lib/Footnote/index.js +0 -4
  33. package/lib/IconButton/IconButton.js +4 -14
  34. package/lib/IconButton/index.js +0 -3
  35. package/lib/Image/Image.js +5 -24
  36. package/lib/Image/index.js +0 -3
  37. package/lib/List/List.js +0 -2
  38. package/lib/List/ListItem.js +0 -8
  39. package/lib/List/index.js +0 -4
  40. package/lib/NavigationBar/NavigationBar.js +10 -35
  41. package/lib/NavigationBar/NavigationItem.js +5 -17
  42. package/lib/NavigationBar/NavigationSubMenu.js +3 -19
  43. package/lib/NavigationBar/collapseItems.js +6 -9
  44. package/lib/NavigationBar/index.js +0 -3
  45. package/lib/NavigationBar/resolveItemSelection.js +2 -3
  46. package/lib/OptimizeImage/OptimizeImage.js +6 -27
  47. package/lib/OptimizeImage/index.js +0 -3
  48. package/lib/OptimizeImage/utils/getFallbackUrl.js +0 -4
  49. package/lib/OptimizeImage/utils/getOptimizedUrl.js +0 -8
  50. package/lib/OptimizeImage/utils/hasWebpSupport.js +1 -5
  51. package/lib/OptimizeImage/utils/index.js +0 -4
  52. package/lib/OptimizeImage/utils/isSvgUrl.js +0 -1
  53. package/lib/OrderedList/Item.js +4 -21
  54. package/lib/OrderedList/ItemBase.js +2 -9
  55. package/lib/OrderedList/OrderedList.js +11 -22
  56. package/lib/OrderedList/OrderedListBase.js +3 -13
  57. package/lib/OrderedList/index.js +0 -4
  58. package/lib/Paragraph/Paragraph.js +3 -18
  59. package/lib/Paragraph/index.js +0 -3
  60. package/lib/PreviewCard/AuthorDate.js +1 -10
  61. package/lib/PreviewCard/PreviewCard.js +15 -35
  62. package/lib/PreviewCard/index.js +0 -3
  63. package/lib/PriceLockup/PriceLockup.js +78 -75
  64. package/lib/PriceLockup/index.js +0 -3
  65. package/lib/PriceLockup/tokens.js +0 -2
  66. package/lib/Progress/ProgressBar.js +5 -16
  67. package/lib/Progress/index.js +0 -4
  68. package/lib/QuantitySelector/QuantitySelector.js +8 -42
  69. package/lib/QuantitySelector/SideButton.js +4 -11
  70. package/lib/QuantitySelector/index.js +0 -3
  71. package/lib/QuantitySelector/styles.js +0 -6
  72. package/lib/ResponsiveImage/ResponsiveImage.js +5 -20
  73. package/lib/ResponsiveImage/index.js +0 -3
  74. package/lib/Ribbon/Ribbon.js +4 -20
  75. package/lib/Ribbon/index.js +0 -3
  76. package/lib/SkeletonProvider/SkeletonImage.js +0 -10
  77. package/lib/SkeletonProvider/SkeletonProvider.js +4 -22
  78. package/lib/SkeletonProvider/SkeletonTypography.js +0 -10
  79. package/lib/SkeletonProvider/index.js +0 -3
  80. package/lib/Span/Span.js +3 -17
  81. package/lib/Span/index.js +0 -3
  82. package/lib/Spinner/Spinner.js +11 -39
  83. package/lib/Spinner/SpinnerContent.js +2 -18
  84. package/lib/Spinner/index.js +0 -3
  85. package/lib/StoryCard/StoryCard.js +11 -31
  86. package/lib/StoryCard/index.js +0 -3
  87. package/lib/Table/Body.js +0 -6
  88. package/lib/Table/Cell.js +4 -24
  89. package/lib/Table/Header.js +0 -9
  90. package/lib/Table/Row.js +0 -8
  91. package/lib/Table/SubHeading.js +0 -9
  92. package/lib/Table/Table.js +5 -23
  93. package/lib/Table/index.js +0 -8
  94. package/lib/TermsAndConditions/ExpandCollapse.js +4 -14
  95. package/lib/TermsAndConditions/TermsAndConditions.js +7 -29
  96. package/lib/TermsAndConditions/index.js +0 -2
  97. package/lib/Testimonial/Testimonial.js +2 -26
  98. package/lib/Testimonial/index.js +0 -3
  99. package/lib/Toast/Toast.js +4 -25
  100. package/lib/Toast/index.js +0 -3
  101. package/lib/Video/ControlBar/ControlBar.js +2 -25
  102. package/lib/Video/ControlBar/Controls/VideoButton/VideoButton.js +4 -17
  103. package/lib/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +4 -20
  104. package/lib/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +12 -26
  105. package/lib/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +8 -23
  106. package/lib/Video/MiddleControlButton/MiddleControlButton.js +2 -12
  107. package/lib/Video/Video.js +122 -194
  108. package/lib/Video/index.js +0 -3
  109. package/lib/VideoPicker/VideoPicker.js +6 -32
  110. package/lib/VideoPicker/VideoPickerPlayer.js +2 -10
  111. package/lib/VideoPicker/VideoPickerThumbnail.js +7 -28
  112. package/lib/VideoPicker/VideoSlider.js +7 -17
  113. package/lib/VideoPicker/index.js +0 -3
  114. package/lib/VideoPicker/videoPropType.js +2 -8
  115. package/lib/WaffleGrid/WaffleGrid.js +11 -28
  116. package/lib/WaffleGrid/index.js +0 -3
  117. package/lib/WebPortal/WebPortal.js +1 -5
  118. package/lib/WebPortal/index.js +0 -3
  119. package/lib/WebVideo/WebVideo.js +4 -30
  120. package/lib/WebVideo/index.js +0 -3
  121. package/lib/baseExports.js +6 -1
  122. package/lib/index.js +0 -49
  123. package/lib/shared/FullBleedContent/FullBleedContent.js +5 -17
  124. package/lib/shared/FullBleedContent/getFullBleedBorderRadius.js +0 -11
  125. package/lib/shared/FullBleedContent/index.js +0 -5
  126. package/lib/shared/FullBleedContent/useFullBleedContentProps.js +1 -12
  127. package/lib/shared/VideoSplash/SplashButton/SplashButton.js +2 -12
  128. package/lib/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +7 -23
  129. package/lib/shared/VideoSplash/VideoSplash.js +4 -17
  130. package/lib/shared/VideoSplash/helpers.js +0 -6
  131. package/lib/utils/index.js +0 -9
  132. package/lib/utils/logger.js +0 -6
  133. package/lib/utils/media.js +2 -11
  134. package/lib/utils/renderStructuredContent.js +14 -31
  135. package/lib/utils/ssr.js +0 -6
  136. package/lib/utils/transforms.js +0 -2
  137. package/lib/utils/useOverlaidPosition.js +6 -28
  138. package/lib/utils/useTypographyTheme.js +4 -5
  139. package/lib-module/Badge/Badge.js +2 -5
  140. package/lib-module/BlockQuote/BlockQuote.js +4 -15
  141. package/lib-module/Breadcrumbs/Breadcrumbs.js +9 -25
  142. package/lib-module/Breadcrumbs/Item/Item.js +15 -12
  143. package/lib-module/Callout/Callout.js +2 -16
  144. package/lib-module/Card/Card.js +14 -17
  145. package/lib-module/Card/CardContent.js +5 -8
  146. package/lib-module/Card/CardFooter.js +7 -9
  147. package/lib-module/Countdown/Countdown.js +6 -11
  148. package/lib-module/Countdown/Segment.js +6 -8
  149. package/lib-module/Countdown/types.js +2 -1
  150. package/lib-module/Countdown/useCountdown.js +0 -6
  151. package/lib-module/DatePicker/CalendarContainer.js +3 -1
  152. package/lib-module/DatePicker/DatePicker.js +9 -39
  153. package/lib-module/DatePicker/dictionary.js +0 -8
  154. package/lib-module/Disclaimer/Disclaimer.js +5 -4
  155. package/lib-module/ExpandCollapseMini/ExpandCollapseMini.js +6 -8
  156. package/lib-module/ExpandCollapseMini/ExpandCollapseMiniControl.js +13 -19
  157. package/lib-module/Footnote/Footnote.js +17 -41
  158. package/lib-module/Footnote/FootnoteLink.js +3 -12
  159. package/lib-module/IconButton/IconButton.js +4 -6
  160. package/lib-module/Image/Image.js +5 -14
  161. package/lib-module/NavigationBar/NavigationBar.js +10 -20
  162. package/lib-module/NavigationBar/NavigationItem.js +5 -5
  163. package/lib-module/NavigationBar/NavigationSubMenu.js +3 -8
  164. package/lib-module/NavigationBar/collapseItems.js +6 -8
  165. package/lib-module/NavigationBar/resolveItemSelection.js +2 -2
  166. package/lib-module/OptimizeImage/OptimizeImage.js +6 -16
  167. package/lib-module/OptimizeImage/utils/getFallbackUrl.js +0 -1
  168. package/lib-module/OptimizeImage/utils/getOptimizedUrl.js +0 -5
  169. package/lib-module/OptimizeImage/utils/hasWebpSupport.js +1 -5
  170. package/lib-module/OrderedList/Item.js +4 -7
  171. package/lib-module/OrderedList/ItemBase.js +2 -3
  172. package/lib-module/OrderedList/OrderedList.js +11 -9
  173. package/lib-module/OrderedList/OrderedListBase.js +3 -3
  174. package/lib-module/Paragraph/Paragraph.js +3 -8
  175. package/lib-module/PreviewCard/AuthorDate.js +1 -4
  176. package/lib-module/PreviewCard/PreviewCard.js +16 -19
  177. package/lib-module/PriceLockup/PriceLockup.js +78 -57
  178. package/lib-module/Progress/ProgressBar.js +7 -8
  179. package/lib-module/QuantitySelector/QuantitySelector.js +8 -30
  180. package/lib-module/QuantitySelector/SideButton.js +4 -6
  181. package/lib-module/ResponsiveImage/ResponsiveImage.js +5 -12
  182. package/lib-module/Ribbon/Ribbon.js +4 -9
  183. package/lib-module/SkeletonProvider/SkeletonImage.js +0 -5
  184. package/lib-module/SkeletonProvider/SkeletonProvider.js +4 -12
  185. package/lib-module/SkeletonProvider/SkeletonTypography.js +0 -5
  186. package/lib-module/Span/Span.js +3 -7
  187. package/lib-module/Spinner/Spinner.js +11 -24
  188. package/lib-module/Spinner/SpinnerContent.js +2 -8
  189. package/lib-module/StoryCard/StoryCard.js +12 -17
  190. package/lib-module/Table/Body.js +0 -2
  191. package/lib-module/Table/Cell.js +4 -14
  192. package/lib-module/Table/Header.js +0 -2
  193. package/lib-module/Table/Row.js +0 -2
  194. package/lib-module/Table/SubHeading.js +0 -2
  195. package/lib-module/Table/Table.js +5 -6
  196. package/lib-module/TermsAndConditions/ExpandCollapse.js +4 -2
  197. package/lib-module/TermsAndConditions/TermsAndConditions.js +7 -9
  198. package/lib-module/Testimonial/Testimonial.js +2 -11
  199. package/lib-module/Toast/Toast.js +4 -15
  200. package/lib-module/Video/ControlBar/ControlBar.js +2 -9
  201. package/lib-module/Video/ControlBar/Controls/VideoButton/VideoButton.js +4 -8
  202. package/lib-module/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +4 -8
  203. package/lib-module/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +12 -13
  204. package/lib-module/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +8 -10
  205. package/lib-module/Video/MiddleControlButton/MiddleControlButton.js +2 -3
  206. package/lib-module/Video/Video.js +122 -173
  207. package/lib-module/VideoPicker/VideoPicker.js +6 -15
  208. package/lib-module/VideoPicker/VideoPickerPlayer.js +2 -3
  209. package/lib-module/VideoPicker/VideoPickerThumbnail.js +7 -13
  210. package/lib-module/VideoPicker/VideoSlider.js +6 -9
  211. package/lib-module/VideoPicker/videoPropType.js +2 -1
  212. package/lib-module/WaffleGrid/WaffleGrid.js +11 -15
  213. package/lib-module/WebPortal/WebPortal.js +1 -1
  214. package/lib-module/WebVideo/WebVideo.js +4 -15
  215. package/lib-module/baseExports.js +3 -2
  216. package/lib-module/index.js +0 -1
  217. package/lib-module/shared/FullBleedContent/FullBleedContent.js +5 -10
  218. package/lib-module/shared/FullBleedContent/getFullBleedBorderRadius.js +0 -10
  219. package/lib-module/shared/FullBleedContent/useFullBleedContentProps.js +1 -11
  220. package/lib-module/shared/VideoSplash/SplashButton/SplashButton.js +2 -3
  221. package/lib-module/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +7 -12
  222. package/lib-module/shared/VideoSplash/VideoSplash.js +4 -4
  223. package/lib-module/utils/logger.js +2 -2
  224. package/lib-module/utils/media.js +2 -9
  225. package/lib-module/utils/renderStructuredContent.js +14 -25
  226. package/lib-module/utils/ssr.js +0 -4
  227. package/lib-module/utils/useOverlaidPosition.js +8 -27
  228. package/lib-module/utils/useTypographyTheme.js +4 -4
  229. package/package.json +3 -3
  230. package/src/PriceLockup/PriceLockup.jsx +36 -11
  231. package/src/baseExports.js +1 -0
  232. package/src/index.js +0 -1
  233. package/lib/Modal/Modal.js +0 -146
  234. package/lib/Modal/ModalContent.js +0 -203
  235. package/lib/Modal/index.js +0 -13
  236. package/lib-module/Modal/Modal.js +0 -132
  237. package/lib-module/Modal/ModalContent.js +0 -181
  238. package/lib-module/Modal/index.js +0 -2
  239. package/src/Modal/Modal.jsx +0 -121
  240. package/src/Modal/ModalContent.jsx +0 -167
  241. package/src/Modal/index.js +0 -3
@@ -4,31 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = exports.VideoProps = void 0;
7
-
8
7
  var _react = _interopRequireWildcard(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _styledComponents = _interopRequireDefault(require("styled-components"));
13
-
14
10
  var _reactYoutube = _interopRequireDefault(require("react-youtube"));
15
-
16
11
  var _componentsBase = require("@telus-uds/components-base");
17
-
18
12
  var _VideoSplash = _interopRequireDefault(require("../shared/VideoSplash/VideoSplash"));
19
-
20
13
  var _utils = require("../utils");
21
-
22
14
  var _jsxRuntime = require("react/jsx-runtime");
23
-
24
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
-
26
16
  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); }
27
-
28
17
  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; }
29
-
30
18
  const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_utils.htmlAttrs]);
31
-
32
19
  const StyledPlayerContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
33
20
  displayName: "WebVideo__StyledPlayerContainer",
34
21
  componentId: "components-web__sc-327a6k-0"
@@ -37,7 +24,6 @@ const StyledPlayerContainer = /*#__PURE__*/_styledComponents.default.div.withCon
37
24
  minWidth: 288,
38
25
  outline: 'none'
39
26
  });
40
-
41
27
  const StyledYoutubePlayer = /*#__PURE__*/(0, _styledComponents.default)(_reactYoutube.default).withConfig({
42
28
  displayName: "WebVideo__StyledYoutubePlayer",
43
29
  componentId: "components-web__sc-327a6k-1"
@@ -59,14 +45,13 @@ const aspectRatios = {
59
45
  paddingTop: '100%'
60
46
  }
61
47
  };
62
-
63
48
  const AspectLimiter = /*#__PURE__*/_styledComponents.default.div.withConfig({
64
49
  displayName: "WebVideo__AspectLimiter",
65
50
  componentId: "components-web__sc-327a6k-2"
66
- })(props => ({ ...aspectRatios[props.aspectRatio],
51
+ })(props => ({
52
+ ...aspectRatios[props.aspectRatio],
67
53
  position: 'relative'
68
54
  }));
69
-
70
55
  const WebVideo = _ref => {
71
56
  let {
72
57
  videoId,
@@ -80,14 +65,11 @@ const WebVideo = _ref => {
80
65
  ...rest
81
66
  } = _ref;
82
67
  const [started, setStarted] = (0, _react.useState)(false);
83
-
84
68
  const initializeYoutubePlayer = event => {
85
69
  onStart();
86
-
87
70
  if (beginMuted) {
88
71
  event.target.mute();
89
72
  }
90
-
91
73
  event.target.setVolume(defaultVolume);
92
74
  event.target.playVideo(); // This plays the video after passing the splash screen on mobile.
93
75
  };
@@ -121,44 +103,36 @@ const WebVideo = _ref => {
121
103
  })
122
104
  });
123
105
  };
124
-
125
- const VideoProps = { ...selectedSystemPropTypes,
126
-
106
+ const VideoProps = {
107
+ ...selectedSystemPropTypes,
127
108
  /**
128
109
  * The video's ID, typically available via the video's URL.
129
110
  */
130
111
  videoId: _propTypes.default.string.isRequired,
131
-
132
112
  /**
133
113
  * The aspect ratio of the player.
134
114
  */
135
115
  aspectRatio: _propTypes.default.oneOf(['16:9', '4:3', '1:1']),
136
-
137
116
  /**
138
117
  * A path of the image that will be displayed on the video's splash screen. If this is undefined, it will pull an image from the defined web video if available.
139
118
  */
140
119
  posterSrc: _propTypes.default.string,
141
-
142
120
  /**
143
121
  * The video's default volume, defined from 1 to 100. Please use the `beginMuted` prop to have the video start silenced.
144
122
  */
145
123
  defaultVolume: _propTypes.default.number,
146
-
147
124
  /**
148
125
  * Defines if the video should start muted.
149
126
  */
150
127
  beginMuted: _propTypes.default.bool,
151
-
152
128
  /**
153
129
  * The video's length, which will be displayed on the splash screen. This is defined in seconds.
154
130
  */
155
131
  videoLength: _propTypes.default.number.isRequired,
156
-
157
132
  /**
158
133
  * The splash screen UI's language as an ISO language code. It currently supports English and French.
159
134
  */
160
135
  copy: _propTypes.default.oneOf(['en', 'fr']),
161
-
162
136
  /**
163
137
  * A function to be run when the play button is pressed on the video splash screen and the video is ready to play.
164
138
  */
@@ -4,10 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _WebVideo = _interopRequireDefault(require("./WebVideo"));
9
-
10
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
9
  var _default = _WebVideo.default;
13
10
  exports.default = _default;
@@ -147,6 +147,12 @@ Object.defineProperty(exports, "Listbox", {
147
147
  return _componentsBase.Listbox;
148
148
  }
149
149
  });
150
+ Object.defineProperty(exports, "Modal", {
151
+ enumerable: true,
152
+ get: function () {
153
+ return _componentsBase.Modal;
154
+ }
155
+ });
150
156
  Object.defineProperty(exports, "MultiSelectFilter", {
151
157
  enumerable: true,
152
158
  get: function () {
@@ -369,5 +375,4 @@ Object.defineProperty(exports, "useViewport", {
369
375
  return _componentsBase.useViewport;
370
376
  }
371
377
  });
372
-
373
378
  var _componentsBase = require("@telus-uds/components-base");
package/lib/index.js CHANGED
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  var _exportNames = {
7
7
  Badge: true,
8
- Modal: true,
9
8
  OrderedList: true,
10
9
  PreviewCard: true,
11
10
  ResponsiveImage: true,
@@ -122,12 +121,6 @@ Object.defineProperty(exports, "List", {
122
121
  return _List.default;
123
122
  }
124
123
  });
125
- Object.defineProperty(exports, "Modal", {
126
- enumerable: true,
127
- get: function () {
128
- return _Modal.default;
129
- }
130
- });
131
124
  Object.defineProperty(exports, "NavigationBar", {
132
125
  enumerable: true,
133
126
  get: function () {
@@ -278,85 +271,44 @@ Object.defineProperty(exports, "transformGradient", {
278
271
  return _utils.transformGradient;
279
272
  }
280
273
  });
281
-
282
274
  var _Badge = _interopRequireDefault(require("./Badge"));
283
-
284
- var _Modal = _interopRequireDefault(require("./Modal"));
285
-
286
275
  var _OrderedList = _interopRequireDefault(require("./OrderedList"));
287
-
288
276
  var _PreviewCard = _interopRequireDefault(require("./PreviewCard"));
289
-
290
277
  var _ResponsiveImage = _interopRequireDefault(require("./ResponsiveImage"));
291
-
292
278
  var _Ribbon = _interopRequireDefault(require("./Ribbon"));
293
-
294
279
  var _Countdown = _interopRequireDefault(require("./Countdown"));
295
-
296
280
  var _DatePicker = _interopRequireDefault(require("./DatePicker"));
297
-
298
281
  var _Paragraph = _interopRequireDefault(require("./Paragraph"));
299
-
300
282
  var _Span = _interopRequireDefault(require("./Span"));
301
-
302
283
  var _ExpandCollapseMini = _interopRequireDefault(require("./ExpandCollapseMini"));
303
-
304
284
  var _Callout = _interopRequireDefault(require("./Callout"));
305
-
306
285
  var _PriceLockup = _interopRequireDefault(require("./PriceLockup"));
307
-
308
286
  var _Footnote = _interopRequireDefault(require("./Footnote"));
309
-
310
287
  var _QuantitySelector = _interopRequireDefault(require("./QuantitySelector"));
311
-
312
288
  var _IconButton = _interopRequireDefault(require("./IconButton"));
313
-
314
289
  var _utils = require("./utils");
315
-
316
290
  var _Breadcrumbs = _interopRequireDefault(require("./Breadcrumbs"));
317
-
318
291
  var _BlockQuote = _interopRequireDefault(require("./BlockQuote"));
319
-
320
292
  var _OptimizeImage = _interopRequireDefault(require("./OptimizeImage"));
321
-
322
293
  var _Testimonial = _interopRequireDefault(require("./Testimonial"));
323
-
324
294
  var _Toast = _interopRequireDefault(require("./Toast"));
325
-
326
295
  var _Table = _interopRequireDefault(require("./Table"));
327
-
328
296
  var _Image = _interopRequireDefault(require("./Image"));
329
-
330
297
  var _WebVideo = _interopRequireDefault(require("./WebVideo"));
331
-
332
298
  var _WaffleGrid = _interopRequireDefault(require("./WaffleGrid"));
333
-
334
299
  var _Spinner = _interopRequireDefault(require("./Spinner"));
335
-
336
300
  var _VideoPicker = _interopRequireDefault(require("./VideoPicker"));
337
-
338
301
  var _Video = _interopRequireDefault(require("./Video"));
339
-
340
302
  var _StoryCard = _interopRequireDefault(require("./StoryCard"));
341
-
342
303
  var _Disclaimer = _interopRequireDefault(require("./Disclaimer"));
343
-
344
304
  var _Card = _interopRequireDefault(require("./Card"));
345
-
346
305
  var _List = _interopRequireDefault(require("./List"));
347
-
348
306
  var _TermsAndConditions = _interopRequireDefault(require("./TermsAndConditions"));
349
-
350
307
  var _NavigationBar = _interopRequireDefault(require("./NavigationBar"));
351
-
352
308
  var _Progress = _interopRequireDefault(require("./Progress"));
353
-
354
309
  var _SkeletonProvider = _interopRequireDefault(require("./SkeletonProvider"));
355
-
356
310
  var _WebPortal = _interopRequireDefault(require("./WebPortal"));
357
-
358
311
  var _baseExports = require("./baseExports");
359
-
360
312
  Object.keys(_baseExports).forEach(function (key) {
361
313
  if (key === "default" || key === "__esModule") return;
362
314
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -368,5 +320,4 @@ Object.keys(_baseExports).forEach(function (key) {
368
320
  }
369
321
  });
370
322
  });
371
-
372
323
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -4,19 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _styledComponents = _interopRequireDefault(require("styled-components"));
13
-
14
10
  var _ResponsiveImage = _interopRequireDefault(require("../../ResponsiveImage"));
15
-
16
11
  var _jsxRuntime = require("react/jsx-runtime");
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
13
  const selectFullBleedContentProps = _ref => {
21
14
  let {
22
15
  alt,
@@ -45,7 +38,6 @@ const selectFullBleedContentProps = _ref => {
45
38
  xsSrc
46
39
  };
47
40
  };
48
-
49
41
  const FullBleedContentContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
50
42
  displayName: "FullBleedContent__FullBleedContentContainer",
51
43
  componentId: "components-web__sc-1130ea5-0"
@@ -64,25 +56,25 @@ const FullBleedContentContainer = /*#__PURE__*/_styledComponents.default.div.wit
64
56
  borderTopRightRadius
65
57
  };
66
58
  });
59
+
67
60
  /**
68
61
  * Full bleed content component can accept either a single source,
69
62
  * a number of sources corresponding to the `ResponsiveImage` component API,
70
63
  * or a custom component.
71
64
  */
72
-
73
-
74
65
  const FullBleedContent = _ref3 => {
75
66
  let {
76
67
  borderRadius,
77
68
  content,
78
69
  ...rest
79
70
  } = _ref3;
80
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(FullBleedContentContainer, { ...borderRadius,
81
- children: content ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ResponsiveImage.default, { ...selectFullBleedContentProps(rest)
71
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(FullBleedContentContainer, {
72
+ ...borderRadius,
73
+ children: content ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ResponsiveImage.default, {
74
+ ...selectFullBleedContentProps(rest)
82
75
  })
83
76
  });
84
77
  };
85
-
86
78
  FullBleedContent.propTypes = {
87
79
  /**
88
80
  * Content border radius matching the edge values on the parent card.
@@ -93,22 +85,18 @@ FullBleedContent.propTypes = {
93
85
  borderTopLeftRadius: _propTypes.default.number,
94
86
  borderTopRightRadius: _propTypes.default.number
95
87
  }),
96
-
97
88
  /**
98
89
  * Custom JSX to be used for rendering the content (defaults to `ResponsiveImage` receiving other props).
99
90
  */
100
91
  content: _propTypes.default.node,
101
-
102
92
  /**
103
93
  * Image source.
104
94
  */
105
95
  src: _propTypes.default.string,
106
-
107
96
  /**
108
97
  * Also accept props for `ResponsiveImage`...
109
98
  */
110
99
  ..._ResponsiveImage.default.propTypes,
111
-
112
100
  /**
113
101
  * ...but make the required ones optional.
114
102
  */
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  /**
9
8
  * Gets the border radius values for an item of content that goes right up to
10
9
  * the edges of its container, to the top, bottom, left or right of other content.
@@ -25,7 +24,6 @@ const getFullBleedBorderRadius = function (borderRadius, position) {
25
24
  borderTopLeftRadius: 0,
26
25
  borderTopRightRadius: 0
27
26
  };
28
-
29
27
  if (position && position !== 'none') {
30
28
  if (borderRadius) {
31
29
  // Depending on the position of the image, we need to round some
@@ -36,38 +34,29 @@ const getFullBleedBorderRadius = function (borderRadius, position) {
36
34
  innerBorderRadius.borderBottomLeftRadius = borderRadius;
37
35
  innerBorderRadius.borderBottomRightRadius = borderRadius;
38
36
  }
39
-
40
37
  break;
41
-
42
38
  case 'left':
43
39
  if (!hasFooter) {
44
40
  innerBorderRadius.borderBottomLeftRadius = borderRadius;
45
41
  }
46
-
47
42
  innerBorderRadius.borderTopLeftRadius = borderRadius;
48
43
  break;
49
-
50
44
  case 'right':
51
45
  if (!hasFooter) {
52
46
  innerBorderRadius.borderBottomRightRadius = borderRadius;
53
47
  }
54
-
55
48
  innerBorderRadius.borderTopRightRadius = borderRadius;
56
49
  break;
57
-
58
50
  case 'top':
59
51
  innerBorderRadius.borderTopLeftRadius = borderRadius;
60
52
  innerBorderRadius.borderTopRightRadius = borderRadius;
61
53
  break;
62
-
63
54
  default:
64
55
  break;
65
56
  }
66
57
  }
67
58
  }
68
-
69
59
  return innerBorderRadius;
70
60
  };
71
-
72
61
  var _default = getFullBleedBorderRadius;
73
62
  exports.default = _default;
@@ -16,14 +16,9 @@ Object.defineProperty(exports, "useFullBleedContentProps", {
16
16
  return _useFullBleedContentProps.default;
17
17
  }
18
18
  });
19
-
20
19
  var _FullBleedContent = _interopRequireDefault(require("./FullBleedContent"));
21
-
22
20
  var _getFullBleedBorderRadius = _interopRequireDefault(require("./getFullBleedBorderRadius"));
23
-
24
21
  var _useFullBleedContentProps = _interopRequireDefault(require("./useFullBleedContentProps"));
25
-
26
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
-
28
23
  var _default = _FullBleedContent.default;
29
24
  exports.default = _default;
@@ -4,42 +4,34 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _componentsBase = require("@telus-uds/components-base");
9
-
10
8
  const getContentStackDirection = fullBleedContentPosition => {
11
9
  switch (fullBleedContentPosition) {
12
10
  case 'left':
13
11
  return 'row-reverse';
14
-
15
12
  case 'right':
16
13
  return 'row';
17
-
18
14
  case 'top':
19
15
  return 'column-reverse';
20
-
21
16
  default:
22
17
  return 'column';
23
18
  }
24
19
  };
25
-
26
20
  const getContentStackAlign = fullBleedContentAlign => {
27
21
  switch (fullBleedContentAlign) {
28
22
  case 'center':
29
23
  return 'center';
30
-
31
24
  case 'end':
32
25
  case 'flex-end':
33
26
  return 'flex-end';
34
-
35
27
  case 'start':
36
28
  case 'flex-start':
37
29
  return 'flex-start';
38
-
39
30
  default:
40
31
  return 'stretch';
41
32
  }
42
33
  };
34
+
43
35
  /**
44
36
  * Resolves a set of `FullBleedContent` props into the variables a container needs to
45
37
  * correctly position a `FullBleedContent` component for the current viewport.
@@ -47,8 +39,6 @@ const getContentStackAlign = fullBleedContentAlign => {
47
39
  * @param {object} [fullBleedContent] - a set of valid proptypes for FullBleedContent
48
40
  * @returns
49
41
  */
50
-
51
-
52
42
  const useFullBleedContentProps = fullBleedContent => {
53
43
  const {
54
44
  align: fullBleedContentAlignProp,
@@ -68,6 +58,5 @@ const useFullBleedContentProps = fullBleedContent => {
68
58
  fullBleedContentProps
69
59
  };
70
60
  };
71
-
72
61
  var _default = useFullBleedContentProps;
73
62
  exports.default = _default;
@@ -4,21 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _styledComponents = _interopRequireDefault(require("styled-components"));
13
-
14
10
  var _componentsBase = require("@telus-uds/components-base");
15
-
16
11
  var _helpers = require("../helpers");
17
-
18
12
  var _jsxRuntime = require("react/jsx-runtime");
19
-
20
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
-
22
14
  const ButtonContainer = /*#__PURE__*/_styledComponents.default.button.withConfig({
23
15
  displayName: "SplashButton__ButtonContainer",
24
16
  componentId: "components-web__sc-1oe22fk-0"
@@ -34,7 +26,6 @@ const ButtonContainer = /*#__PURE__*/_styledComponents.default.button.withConfig
34
26
  alignItems: 'center',
35
27
  cursor: 'pointer'
36
28
  });
37
-
38
29
  const ButtonContent = /*#__PURE__*/_styledComponents.default.div.withConfig({
39
30
  displayName: "SplashButton__ButtonContent",
40
31
  componentId: "components-web__sc-1oe22fk-1"
@@ -61,7 +52,6 @@ const ButtonContent = /*#__PURE__*/_styledComponents.default.div.withConfig({
61
52
  }
62
53
  }
63
54
  });
64
-
65
55
  const SplashButton = _ref3 => {
66
56
  let {
67
57
  copy,
@@ -82,7 +72,8 @@ const SplashButton = _ref3 => {
82
72
  const ariaLabel = (0, _helpers.getAriaLabel)((0, _helpers.getTimestamp)(videoLength), copy);
83
73
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonContainer, {
84
74
  "aria-label": ariaLabel,
85
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonContent, { ...themeTokens,
75
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonContent, {
76
+ ...themeTokens,
86
77
  buttonContentChildrenBackground: buttonContentChildrenBackground,
87
78
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PlayIcon, {
88
79
  size: 27,
@@ -91,7 +82,6 @@ const SplashButton = _ref3 => {
91
82
  })
92
83
  });
93
84
  };
94
-
95
85
  SplashButton.propTypes = {
96
86
  videoLength: _propTypes.default.number,
97
87
  tokens: _propTypes.default.object,
@@ -4,21 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _styledComponents = _interopRequireDefault(require("styled-components"));
13
-
14
10
  var _componentsBase = require("@telus-uds/components-base");
15
-
16
11
  var _helpers = require("../helpers");
17
-
18
12
  var _jsxRuntime = require("react/jsx-runtime");
19
-
20
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
-
22
14
  const ButtonContainer = /*#__PURE__*/_styledComponents.default.button.withConfig({
23
15
  displayName: "SplashButtonWithDetails__ButtonContainer",
24
16
  componentId: "components-web__sc-1edwy9o-0"
@@ -31,7 +23,6 @@ const ButtonContainer = /*#__PURE__*/_styledComponents.default.button.withConfig
31
23
  padding: 0,
32
24
  cursor: 'pointer'
33
25
  });
34
-
35
26
  const ButtonContent = /*#__PURE__*/_styledComponents.default.div.withConfig({
36
27
  displayName: "SplashButtonWithDetails__ButtonContent",
37
28
  componentId: "components-web__sc-1edwy9o-1"
@@ -98,7 +89,6 @@ const ButtonContent = /*#__PURE__*/_styledComponents.default.div.withConfig({
98
89
  }
99
90
  }
100
91
  });
101
-
102
92
  const PlayIconContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
103
93
  displayName: "SplashButtonWithDetails__PlayIconContainer",
104
94
  componentId: "components-web__sc-1edwy9o-2"
@@ -117,7 +107,6 @@ const PlayIconContainer = /*#__PURE__*/_styledComponents.default.div.withConfig(
117
107
  borderRadius: '100%',
118
108
  transition: 'background 0.2s ease-in-out'
119
109
  });
120
-
121
110
  const DetailsContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
122
111
  displayName: "SplashButtonWithDetails__DetailsContainer",
123
112
  componentId: "components-web__sc-1edwy9o-3"
@@ -132,7 +121,6 @@ const DetailsContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
132
121
  return `${detailsContainerPadding}px`;
133
122
  }
134
123
  });
135
-
136
124
  const selectPlayIconContainerTokens = _ref12 => {
137
125
  let {
138
126
  playIconContainerBackground
@@ -141,7 +129,6 @@ const selectPlayIconContainerTokens = _ref12 => {
141
129
  playIconContainerBackground
142
130
  };
143
131
  };
144
-
145
132
  const selectDetailsContainerTokens = _ref13 => {
146
133
  let {
147
134
  detailsContainerPadding
@@ -150,7 +137,6 @@ const selectDetailsContainerTokens = _ref13 => {
150
137
  detailsContainerPadding
151
138
  };
152
139
  };
153
-
154
140
  const selectButtonContentTokens = _ref14 => {
155
141
  let {
156
142
  buttonBackground,
@@ -173,7 +159,6 @@ const selectButtonContentTokens = _ref14 => {
173
159
  buttonPaddingRight
174
160
  };
175
161
  };
176
-
177
162
  const getLabelTokens = _ref15 => {
178
163
  let {
179
164
  labelFontName: fontName,
@@ -184,7 +169,6 @@ const getLabelTokens = _ref15 => {
184
169
  fontWeight
185
170
  };
186
171
  };
187
-
188
172
  const SplashButtonWithDetails = _ref16 => {
189
173
  let {
190
174
  label,
@@ -207,14 +191,17 @@ const SplashButtonWithDetails = _ref16 => {
207
191
  const ariaLabel = (0, _helpers.getAriaLabel)(mappedVideoLength, copy);
208
192
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonContainer, {
209
193
  "aria-label": ariaLabel,
210
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(ButtonContent, { ...selectButtonContentTokens(themeTokens),
194
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(ButtonContent, {
195
+ ...selectButtonContentTokens(themeTokens),
211
196
  buttonContentChildrenBackground: buttonContentChildrenBackground,
212
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(PlayIconContainer, { ...selectPlayIconContainerTokens(themeTokens),
197
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(PlayIconContainer, {
198
+ ...selectPlayIconContainerTokens(themeTokens),
213
199
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PlayIcon, {
214
200
  size: 13,
215
201
  color: playIconColor
216
202
  })
217
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(DetailsContainer, { ...selectDetailsContainerTokens(themeTokens),
203
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(DetailsContainer, {
204
+ ...selectDetailsContainerTokens(themeTokens),
218
205
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
219
206
  variant: {
220
207
  bold: true
@@ -223,9 +210,7 @@ const SplashButtonWithDetails = _ref16 => {
223
210
  children: label
224
211
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
225
212
  variant: {
226
- colour: 'secondary'
227
- /* TODO: this is not the same color as in designs */
228
- ,
213
+ colour: 'secondary' /* TODO: this is not the same color as in designs */,
229
214
  size: 'micro'
230
215
  },
231
216
  children: mappedVideoLength.timestamp
@@ -234,7 +219,6 @@ const SplashButtonWithDetails = _ref16 => {
234
219
  })
235
220
  });
236
221
  };
237
-
238
222
  SplashButtonWithDetails.propTypes = {
239
223
  label: _propTypes.default.string,
240
224
  tokens: _propTypes.default.object,