@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.
Files changed (315) hide show
  1. package/.eslintrc.cjs +26 -0
  2. package/CHANGELOG.md +21 -2
  3. package/babel.config.cjs +4 -0
  4. package/jest.config.cjs +29 -0
  5. package/lib/Badge/Badge.js +21 -29
  6. package/lib/Badge/index.js +2 -10
  7. package/lib/BlockQuote/BlockQuote.js +31 -39
  8. package/lib/BlockQuote/index.js +2 -10
  9. package/lib/Breadcrumbs/Breadcrumbs.js +39 -49
  10. package/lib/Breadcrumbs/Item/Item.js +26 -34
  11. package/lib/Breadcrumbs/index.js +1 -13
  12. package/lib/Callout/Callout.js +19 -27
  13. package/lib/Callout/index.js +2 -10
  14. package/lib/Card/Card.js +44 -54
  15. package/lib/Card/CardContent.js +17 -25
  16. package/lib/Card/CardFooter.js +16 -24
  17. package/lib/Card/index.js +2 -10
  18. package/lib/Countdown/Countdown.js +34 -42
  19. package/lib/Countdown/Segment.js +26 -34
  20. package/lib/Countdown/constants.js +4 -14
  21. package/lib/Countdown/dictionary.js +2 -9
  22. package/lib/Countdown/index.js +2 -10
  23. package/lib/Countdown/types.js +18 -28
  24. package/lib/Countdown/useCountdown.js +4 -11
  25. package/lib/DatePicker/CalendarContainer.js +6 -12
  26. package/lib/DatePicker/DatePicker.js +105 -101
  27. package/lib/DatePicker/dictionary.js +1 -8
  28. package/lib/DatePicker/index.js +2 -10
  29. package/lib/DatePicker/reactDatesCss.js +3 -10
  30. package/lib/Disclaimer/Disclaimer.js +15 -23
  31. package/lib/Disclaimer/index.js +1 -13
  32. package/lib/ExpandCollapseMini/ExpandCollapseMini.js +16 -24
  33. package/lib/ExpandCollapseMini/ExpandCollapseMiniControl.js +17 -26
  34. package/lib/ExpandCollapseMini/index.js +2 -10
  35. package/lib/Footnote/Footnote.js +85 -95
  36. package/lib/Footnote/FootnoteLink.js +25 -33
  37. package/lib/Footnote/dictionary.js +2 -9
  38. package/lib/Footnote/index.js +4 -12
  39. package/lib/IconButton/IconButton.js +12 -20
  40. package/lib/IconButton/index.js +2 -10
  41. package/lib/Image/Image.js +17 -25
  42. package/lib/Image/index.js +6 -18
  43. package/lib/Image/server.js +4 -12
  44. package/lib/List/List.js +2 -9
  45. package/lib/List/ListItem.js +10 -18
  46. package/lib/List/index.js +4 -12
  47. package/lib/NavigationBar/NavigationBar.js +51 -59
  48. package/lib/NavigationBar/NavigationItem.js +19 -27
  49. package/lib/NavigationBar/NavigationSubMenu.js +34 -40
  50. package/lib/NavigationBar/collapseItems.js +1 -11
  51. package/lib/NavigationBar/index.js +4 -12
  52. package/lib/NavigationBar/resolveItemSelection.js +1 -8
  53. package/lib/OptimizeImage/OptimizeImage.js +26 -34
  54. package/lib/OptimizeImage/index.js +2 -10
  55. package/lib/OptimizeImage/utils/getFallbackUrl.js +3 -10
  56. package/lib/OptimizeImage/utils/getImageUrls.js +9 -16
  57. package/lib/OptimizeImage/utils/getOptimizedUrl.js +3 -10
  58. package/lib/OptimizeImage/utils/hasWebpSupport.js +1 -7
  59. package/lib/OptimizeImage/utils/index.js +5 -34
  60. package/lib/OptimizeImage/utils/isSvgUrl.js +1 -7
  61. package/lib/OrderedList/Item.js +28 -36
  62. package/lib/OrderedList/ItemBase.js +8 -16
  63. package/lib/OrderedList/OrderedList.js +22 -30
  64. package/lib/OrderedList/OrderedListBase.js +12 -20
  65. package/lib/OrderedList/constants.js +1 -8
  66. package/lib/OrderedList/index.js +4 -12
  67. package/lib/Paragraph/Paragraph.js +22 -30
  68. package/lib/Paragraph/index.js +2 -10
  69. package/lib/PreviewCard/AuthorDate.js +17 -21
  70. package/lib/PreviewCard/PreviewCard.js +40 -49
  71. package/lib/PreviewCard/index.js +2 -10
  72. package/lib/PriceLockup/PriceLockup.js +56 -64
  73. package/lib/PriceLockup/index.js +2 -10
  74. package/lib/PriceLockup/tokens.js +2 -9
  75. package/lib/Progress/ProgressBar.js +17 -24
  76. package/lib/Progress/index.js +4 -12
  77. package/lib/QuantitySelector/QuantitySelector.js +55 -63
  78. package/lib/QuantitySelector/SideButton.js +15 -23
  79. package/lib/QuantitySelector/dictionary.js +2 -9
  80. package/lib/QuantitySelector/index.js +2 -10
  81. package/lib/QuantitySelector/styles.js +4 -13
  82. package/lib/ResponsiveImage/ResponsiveImage.js +29 -37
  83. package/lib/ResponsiveImage/index.js +2 -10
  84. package/lib/Ribbon/Ribbon.js +22 -30
  85. package/lib/Ribbon/index.js +2 -10
  86. package/lib/SkeletonProvider/SkeletonImage.js +14 -22
  87. package/lib/SkeletonProvider/SkeletonProvider.js +17 -25
  88. package/lib/SkeletonProvider/SkeletonTypography.js +14 -22
  89. package/lib/SkeletonProvider/index.js +2 -10
  90. package/lib/Span/Span.js +23 -31
  91. package/lib/Span/index.js +2 -10
  92. package/lib/Spinner/Spinner.js +43 -51
  93. package/lib/Spinner/SpinnerContent.js +21 -29
  94. package/lib/Spinner/constants.js +4 -14
  95. package/lib/Spinner/index.js +2 -10
  96. package/lib/StoryCard/StoryCard.js +40 -49
  97. package/lib/StoryCard/index.js +2 -10
  98. package/lib/Table/Body.js +7 -15
  99. package/lib/Table/Cell.js +28 -38
  100. package/lib/Table/Header.js +11 -19
  101. package/lib/Table/Row.js +8 -16
  102. package/lib/Table/SubHeading.js +10 -18
  103. package/lib/Table/Table.js +26 -35
  104. package/lib/Table/index.js +12 -20
  105. package/lib/TermsAndConditions/ExpandCollapse.js +22 -30
  106. package/lib/TermsAndConditions/TermsAndConditions.js +52 -60
  107. package/lib/TermsAndConditions/dictionary.js +2 -9
  108. package/lib/TermsAndConditions/index.js +1 -13
  109. package/lib/Testimonial/Testimonial.js +37 -45
  110. package/lib/Testimonial/index.js +2 -10
  111. package/lib/Toast/Toast.js +32 -42
  112. package/lib/Toast/index.js +2 -10
  113. package/lib/Video/ControlBar/ControlBar.js +73 -81
  114. package/lib/Video/ControlBar/Controls/VideoButton/VideoButton.js +16 -24
  115. package/lib/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +27 -35
  116. package/lib/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +27 -36
  117. package/lib/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +30 -38
  118. package/lib/Video/MiddleControlButton/MiddleControlButton.js +16 -24
  119. package/lib/Video/Video.js +74 -83
  120. package/lib/Video/index.js +2 -10
  121. package/lib/Video/videoText.js +1 -8
  122. package/lib/VideoPicker/VideoPicker.js +43 -53
  123. package/lib/VideoPicker/VideoPickerPlayer.js +17 -25
  124. package/lib/VideoPicker/VideoPickerThumbnail.js +38 -46
  125. package/lib/VideoPicker/VideoSlider.js +17 -26
  126. package/lib/VideoPicker/index.js +2 -10
  127. package/lib/VideoPicker/videoPropType.js +9 -18
  128. package/lib/WaffleGrid/WaffleGrid.js +33 -43
  129. package/lib/WaffleGrid/index.js +2 -10
  130. package/lib/WebVideo/WebVideo.js +42 -52
  131. package/lib/WebVideo/index.js +2 -10
  132. package/lib/WebVideo/utils/index.js +3 -11
  133. package/lib/baseExports.js +18 -431
  134. package/lib/index.js +38 -323
  135. package/lib/server.js +4 -12
  136. package/lib/shared/ConditionalWrapper/ConditionalWrapper.js +9 -17
  137. package/lib/shared/ConditionalWrapper/index.js +2 -10
  138. package/lib/shared/FullBleedContent/FullBleedContent.js +21 -29
  139. package/lib/shared/FullBleedContent/getFullBleedBorderRadius.js +1 -8
  140. package/lib/shared/FullBleedContent/index.js +4 -24
  141. package/lib/shared/FullBleedContent/useFullBleedContentProps.js +4 -11
  142. package/lib/shared/VideoSplash/SplashButton/SplashButton.js +19 -27
  143. package/lib/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +27 -35
  144. package/lib/shared/VideoSplash/VideoSplash.js +24 -32
  145. package/lib/shared/VideoSplash/helpers.js +5 -14
  146. package/lib/utils/index.js +10 -75
  147. package/lib/utils/isElementFocusable.js +1 -8
  148. package/lib/utils/logger.js +6 -15
  149. package/lib/utils/media.js +5 -11
  150. package/lib/utils/renderStructuredContent.js +8 -15
  151. package/lib/utils/ssr.js +5 -12
  152. package/lib/utils/theming/get-theme-from-server.js +2 -10
  153. package/lib/utils/theming/with-client-theme.js +9 -17
  154. package/lib/utils/theming/with-server-theme.js +11 -19
  155. package/lib/utils/transforms.js +3 -11
  156. package/lib/utils/useOverlaidPosition.js +15 -23
  157. package/lib/utils/useTypographyTheme.js +6 -13
  158. package/package.json +18 -20
  159. package/src/Card/Card.jsx +2 -2
  160. package/src/DatePicker/DatePicker.jsx +17 -4
  161. package/src/PreviewCard/AuthorDate.jsx +5 -3
  162. package/src/utils/logger.js +2 -2
  163. package/lib-module/Badge/Badge.js +0 -121
  164. package/lib-module/Badge/index.js +0 -2
  165. package/lib-module/BlockQuote/BlockQuote.js +0 -204
  166. package/lib-module/BlockQuote/index.js +0 -2
  167. package/lib-module/Breadcrumbs/Breadcrumbs.js +0 -250
  168. package/lib-module/Breadcrumbs/Item/Item.js +0 -175
  169. package/lib-module/Breadcrumbs/index.js +0 -1
  170. package/lib-module/Callout/Callout.js +0 -135
  171. package/lib-module/Callout/index.js +0 -2
  172. package/lib-module/Card/Card.js +0 -251
  173. package/lib-module/Card/CardContent.js +0 -90
  174. package/lib-module/Card/CardFooter.js +0 -78
  175. package/lib-module/Card/index.js +0 -2
  176. package/lib-module/Countdown/Countdown.js +0 -169
  177. package/lib-module/Countdown/Segment.js +0 -96
  178. package/lib-module/Countdown/constants.js +0 -4
  179. package/lib-module/Countdown/dictionary.js +0 -22
  180. package/lib-module/Countdown/index.js +0 -2
  181. package/lib-module/Countdown/types.js +0 -24
  182. package/lib-module/Countdown/useCountdown.js +0 -26
  183. package/lib-module/DatePicker/CalendarContainer.js +0 -208
  184. package/lib-module/DatePicker/DatePicker.js +0 -506
  185. package/lib-module/DatePicker/dictionary.js +0 -119
  186. package/lib-module/DatePicker/index.js +0 -2
  187. package/lib-module/DatePicker/reactDatesCss.js +0 -3
  188. package/lib-module/Disclaimer/Disclaimer.js +0 -54
  189. package/lib-module/Disclaimer/index.js +0 -1
  190. package/lib-module/ExpandCollapseMini/ExpandCollapseMini.js +0 -73
  191. package/lib-module/ExpandCollapseMini/ExpandCollapseMiniControl.js +0 -117
  192. package/lib-module/ExpandCollapseMini/index.js +0 -2
  193. package/lib-module/Footnote/Footnote.js +0 -632
  194. package/lib-module/Footnote/FootnoteLink.js +0 -118
  195. package/lib-module/Footnote/dictionary.js +0 -12
  196. package/lib-module/Footnote/index.js +0 -4
  197. package/lib-module/IconButton/IconButton.js +0 -55
  198. package/lib-module/IconButton/index.js +0 -2
  199. package/lib-module/Image/Image.js +0 -83
  200. package/lib-module/Image/index.js +0 -9
  201. package/lib-module/Image/server.js +0 -4
  202. package/lib-module/List/List.js +0 -2
  203. package/lib-module/List/ListItem.js +0 -28
  204. package/lib-module/List/index.js +0 -4
  205. package/lib-module/NavigationBar/NavigationBar.js +0 -224
  206. package/lib-module/NavigationBar/NavigationItem.js +0 -87
  207. package/lib-module/NavigationBar/NavigationSubMenu.js +0 -162
  208. package/lib-module/NavigationBar/collapseItems.js +0 -41
  209. package/lib-module/NavigationBar/index.js +0 -4
  210. package/lib-module/NavigationBar/resolveItemSelection.js +0 -16
  211. package/lib-module/OptimizeImage/OptimizeImage.js +0 -92
  212. package/lib-module/OptimizeImage/index.js +0 -2
  213. package/lib-module/OptimizeImage/utils/getFallbackUrl.js +0 -7
  214. package/lib-module/OptimizeImage/utils/getImageUrls.js +0 -12
  215. package/lib-module/OptimizeImage/utils/getOptimizedUrl.js +0 -17
  216. package/lib-module/OptimizeImage/utils/hasWebpSupport.js +0 -28
  217. package/lib-module/OptimizeImage/utils/index.js +0 -5
  218. package/lib-module/OptimizeImage/utils/isSvgUrl.js +0 -3
  219. package/lib-module/OrderedList/Item.js +0 -145
  220. package/lib-module/OrderedList/ItemBase.js +0 -27
  221. package/lib-module/OrderedList/OrderedList.js +0 -86
  222. package/lib-module/OrderedList/OrderedListBase.js +0 -45
  223. package/lib-module/OrderedList/constants.js +0 -2
  224. package/lib-module/OrderedList/index.js +0 -4
  225. package/lib-module/Paragraph/Paragraph.js +0 -90
  226. package/lib-module/Paragraph/index.js +0 -2
  227. package/lib-module/PreviewCard/AuthorDate.js +0 -57
  228. package/lib-module/PreviewCard/PreviewCard.js +0 -209
  229. package/lib-module/PreviewCard/index.js +0 -2
  230. package/lib-module/PriceLockup/PriceLockup.js +0 -335
  231. package/lib-module/PriceLockup/index.js +0 -2
  232. package/lib-module/PriceLockup/tokens.js +0 -55
  233. package/lib-module/Progress/ProgressBar.js +0 -83
  234. package/lib-module/Progress/index.js +0 -4
  235. package/lib-module/QuantitySelector/QuantitySelector.js +0 -261
  236. package/lib-module/QuantitySelector/SideButton.js +0 -70
  237. package/lib-module/QuantitySelector/dictionary.js +0 -26
  238. package/lib-module/QuantitySelector/index.js +0 -2
  239. package/lib-module/QuantitySelector/styles.js +0 -9
  240. package/lib-module/ResponsiveImage/ResponsiveImage.js +0 -95
  241. package/lib-module/ResponsiveImage/index.js +0 -2
  242. package/lib-module/Ribbon/Ribbon.js +0 -216
  243. package/lib-module/Ribbon/index.js +0 -2
  244. package/lib-module/SkeletonProvider/SkeletonImage.js +0 -39
  245. package/lib-module/SkeletonProvider/SkeletonProvider.js +0 -57
  246. package/lib-module/SkeletonProvider/SkeletonTypography.js +0 -38
  247. package/lib-module/SkeletonProvider/index.js +0 -2
  248. package/lib-module/Span/Span.js +0 -72
  249. package/lib-module/Span/index.js +0 -2
  250. package/lib-module/Spinner/Spinner.js +0 -215
  251. package/lib-module/Spinner/SpinnerContent.js +0 -94
  252. package/lib-module/Spinner/constants.js +0 -4
  253. package/lib-module/Spinner/index.js +0 -2
  254. package/lib-module/StoryCard/StoryCard.js +0 -212
  255. package/lib-module/StoryCard/index.js +0 -2
  256. package/lib-module/Table/Body.js +0 -17
  257. package/lib-module/Table/Cell.js +0 -176
  258. package/lib-module/Table/Header.js +0 -25
  259. package/lib-module/Table/Row.js +0 -19
  260. package/lib-module/Table/SubHeading.js +0 -23
  261. package/lib-module/Table/Table.js +0 -114
  262. package/lib-module/Table/index.js +0 -12
  263. package/lib-module/TermsAndConditions/ExpandCollapse.js +0 -153
  264. package/lib-module/TermsAndConditions/TermsAndConditions.js +0 -277
  265. package/lib-module/TermsAndConditions/dictionary.js +0 -16
  266. package/lib-module/TermsAndConditions/index.js +0 -1
  267. package/lib-module/Testimonial/Testimonial.js +0 -234
  268. package/lib-module/Testimonial/index.js +0 -2
  269. package/lib-module/Toast/Toast.js +0 -158
  270. package/lib-module/Toast/index.js +0 -2
  271. package/lib-module/Video/ControlBar/ControlBar.js +0 -288
  272. package/lib-module/Video/ControlBar/Controls/VideoButton/VideoButton.js +0 -70
  273. package/lib-module/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +0 -163
  274. package/lib-module/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +0 -203
  275. package/lib-module/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +0 -191
  276. package/lib-module/Video/MiddleControlButton/MiddleControlButton.js +0 -71
  277. package/lib-module/Video/Video.js +0 -959
  278. package/lib-module/Video/index.js +0 -2
  279. package/lib-module/Video/videoText.js +0 -55
  280. package/lib-module/VideoPicker/VideoPicker.js +0 -190
  281. package/lib-module/VideoPicker/VideoPickerPlayer.js +0 -48
  282. package/lib-module/VideoPicker/VideoPickerThumbnail.js +0 -218
  283. package/lib-module/VideoPicker/VideoSlider.js +0 -82
  284. package/lib-module/VideoPicker/index.js +0 -2
  285. package/lib-module/VideoPicker/videoPropType.js +0 -10
  286. package/lib-module/WaffleGrid/WaffleGrid.js +0 -157
  287. package/lib-module/WaffleGrid/index.js +0 -2
  288. package/lib-module/WebVideo/WebVideo.js +0 -191
  289. package/lib-module/WebVideo/index.js +0 -2
  290. package/lib-module/WebVideo/utils/index.js +0 -50
  291. package/lib-module/baseExports.js +0 -19
  292. package/lib-module/index.js +0 -40
  293. package/lib-module/server.js +0 -5
  294. package/lib-module/shared/ConditionalWrapper/ConditionalWrapper.js +0 -22
  295. package/lib-module/shared/ConditionalWrapper/index.js +0 -2
  296. package/lib-module/shared/FullBleedContent/FullBleedContent.js +0 -101
  297. package/lib-module/shared/FullBleedContent/getFullBleedBorderRadius.js +0 -55
  298. package/lib-module/shared/FullBleedContent/index.js +0 -4
  299. package/lib-module/shared/FullBleedContent/useFullBleedContentProps.js +0 -55
  300. package/lib-module/shared/VideoSplash/SplashButton/SplashButton.js +0 -84
  301. package/lib-module/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +0 -223
  302. package/lib-module/shared/VideoSplash/VideoSplash.js +0 -65
  303. package/lib-module/shared/VideoSplash/helpers.js +0 -23
  304. package/lib-module/utils/index.js +0 -10
  305. package/lib-module/utils/isElementFocusable.js +0 -8
  306. package/lib-module/utils/logger.js +0 -18
  307. package/lib-module/utils/media.js +0 -39
  308. package/lib-module/utils/renderStructuredContent.js +0 -66
  309. package/lib-module/utils/ssr.js +0 -37
  310. package/lib-module/utils/theming/get-theme-from-server.js +0 -16
  311. package/lib-module/utils/theming/with-client-theme.js +0 -24
  312. package/lib-module/utils/theming/with-server-theme.js +0 -26
  313. package/lib-module/utils/transforms.js +0 -4
  314. package/lib-module/utils/useOverlaidPosition.js +0 -216
  315. package/lib-module/utils/useTypographyTheme.js +0 -24
@@ -1,15 +1,8 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
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 _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- const StyledItem = /*#__PURE__*/_styledComponents.default.li.withConfig({
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import styled from 'styled-components';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ const StyledItem = /*#__PURE__*/styled.li.withConfig({
13
6
  displayName: "ItemBase__StyledItem",
14
7
  componentId: "components-web__sc-o0oiv5-0"
15
8
  })({
@@ -20,7 +13,7 @@ const Item = _ref => {
20
13
  children,
21
14
  ...rest
22
15
  } = _ref;
23
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledItem, {
16
+ return /*#__PURE__*/_jsx(StyledItem, {
24
17
  ...rest,
25
18
  children: children
26
19
  });
@@ -29,7 +22,6 @@ Item.propTypes = {
29
22
  /**
30
23
  * Item content
31
24
  */
32
- children: _propTypes.default.node.isRequired
25
+ children: PropTypes.node.isRequired
33
26
  };
34
- var _default = Item;
35
- exports.default = _default;
27
+ export default Item;
@@ -1,21 +1,14 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
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 _componentsBase = require("@telus-uds/components-base");
11
- var _utils = require("../utils");
12
- var _OrderedListBase = _interopRequireDefault(require("./OrderedListBase"));
13
- var _Item = _interopRequireDefault(require("./Item"));
14
- var _constants = require("./constants");
15
- var _jsxRuntime = require("react/jsx-runtime");
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
- const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_utils.htmlAttrs]);
18
- const StyledOrderedListBase = /*#__PURE__*/(0, _styledComponents.default)(_OrderedListBase.default).withConfig({
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import styled from 'styled-components';
4
+ import { getTokensPropType, selectSystemProps, variantProp } from '@telus-uds/components-base';
5
+ import { htmlAttrs } from '../utils';
6
+ import OrderedListBase from './OrderedListBase';
7
+ import Item from './Item';
8
+ import { OL_COUNTER_NAME } from './constants';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
11
+ const StyledOrderedListBase = /*#__PURE__*/styled(OrderedListBase).withConfig({
19
12
  displayName: "OrderedList__StyledOrderedListBase",
20
13
  componentId: "components-web__sc-t5az8z-0"
21
14
  })(_ref => {
@@ -25,14 +18,14 @@ const StyledOrderedListBase = /*#__PURE__*/(0, _styledComponents.default)(_Order
25
18
  return {
26
19
  // Using CSS counters here to have better control over the number styling
27
20
  listStyle: 'none',
28
- counterReset: `${_constants.OL_COUNTER_NAME} ${start - 1}`
21
+ counterReset: `${OL_COUNTER_NAME} ${start - 1}`
29
22
  };
30
23
  });
31
24
 
32
25
  /**
33
26
  * Themed semantic ordered list.
34
27
  */
35
- const OrderedList = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
28
+ const OrderedList = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
36
29
  let {
37
30
  children,
38
31
  start = 1,
@@ -44,12 +37,12 @@ const OrderedList = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
44
37
  const isChildrenArray = Array.isArray(children);
45
38
 
46
39
  // Pass any variants and tokens "OrderedList" receives down to the individual list items.
47
- const childrenWithParentVariantsAndTokens = _react.default.useMemo(() => {
40
+ const childrenWithParentVariantsAndTokens = React.useMemo(() => {
48
41
  const addVariantAndTokensToProps = child => {
49
42
  var _child$props, _child$props2;
50
43
  const existingChildVariants = ((_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.variant) ?? {};
51
44
  const existingChildTokens = ((_child$props2 = child.props) === null || _child$props2 === void 0 ? void 0 : _child$props2.tokens) ?? {};
52
- return /*#__PURE__*/_react.default.cloneElement(child, {
45
+ return /*#__PURE__*/React.cloneElement(child, {
53
46
  variant: {
54
47
  ...existingChildVariants,
55
48
  ...variant
@@ -68,7 +61,7 @@ const OrderedList = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
68
61
  }
69
62
  return children;
70
63
  }, [children, variant, isChildrenArray, tokens]);
71
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledOrderedListBase, {
64
+ return /*#__PURE__*/_jsx(StyledOrderedListBase, {
72
65
  ...selectProps(rest),
73
66
  ref: ref,
74
67
  start: start,
@@ -81,14 +74,13 @@ OrderedList.propTypes = {
81
74
  /**
82
75
  * A list of ordered items wrapped in `OrderedList.Item`.
83
76
  */
84
- children: _propTypes.default.node.isRequired,
77
+ children: PropTypes.node.isRequired,
85
78
  /**
86
79
  * The position to start the list with.
87
80
  */
88
- start: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
89
- variant: _componentsBase.variantProp.propType,
90
- tokens: (0, _componentsBase.getTokensPropType)('OrderedList')
81
+ start: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
82
+ variant: variantProp.propType,
83
+ tokens: getTokensPropType('OrderedList')
91
84
  };
92
- OrderedList.Item = _Item.default;
93
- var _default = OrderedList;
94
- exports.default = _default;
85
+ OrderedList.Item = Item;
86
+ export default OrderedList;
@@ -1,16 +1,9 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
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 _ItemBase = _interopRequireDefault(require("./ItemBase"));
11
- var _jsxRuntime = require("react/jsx-runtime");
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- const StyledList = /*#__PURE__*/_styledComponents.default.ol.withConfig({
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import styled from 'styled-components';
4
+ import ItemBase from './ItemBase';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ const StyledList = /*#__PURE__*/styled.ol.withConfig({
14
7
  displayName: "OrderedListBase__StyledList",
15
8
  componentId: "components-web__sc-4m9lgj-0"
16
9
  })({
@@ -24,13 +17,13 @@ const StyledList = /*#__PURE__*/_styledComponents.default.ol.withConfig({
24
17
  /**
25
18
  * Semantic ordered list.
26
19
  */
27
- const OrderedListBase = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
20
+ const OrderedListBase = /*#__PURE__*/React.forwardRef((_ref, ref) => {
28
21
  let {
29
22
  children,
30
23
  start = 1,
31
24
  ...rest
32
25
  } = _ref;
33
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledList, {
26
+ return /*#__PURE__*/_jsx(StyledList, {
34
27
  ...rest,
35
28
  ref: ref,
36
29
  start: start,
@@ -42,12 +35,11 @@ OrderedListBase.propTypes = {
42
35
  /**
43
36
  * A list of ordered items wrapped in `OrderedListBase.Item`.
44
37
  */
45
- children: _propTypes.default.node.isRequired,
38
+ children: PropTypes.node.isRequired,
46
39
  /**
47
40
  * The position to start the list with.
48
41
  */
49
- start: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
42
+ start: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
50
43
  };
51
- OrderedListBase.Item = _ItemBase.default;
52
- var _default = OrderedListBase;
53
- exports.default = _default;
44
+ OrderedListBase.Item = ItemBase;
45
+ export default OrderedListBase;
@@ -1,9 +1,2 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.OL_COUNTER_NAME = void 0;
7
1
  // eslint-disable-next-line import/prefer-default-export
8
- const OL_COUNTER_NAME = 'allium-ordered-list-counter';
9
- exports.OL_COUNTER_NAME = OL_COUNTER_NAME;
2
+ export const OL_COUNTER_NAME = 'allium-ordered-list-counter';
@@ -1,12 +1,4 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _OrderedList = _interopRequireDefault(require("./OrderedList"));
8
- var _Item = _interopRequireDefault(require("./Item"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- _OrderedList.default.Item = _Item.default;
11
- var _default = _OrderedList.default;
12
- exports.default = _default;
1
+ import OrderedList from './OrderedList';
2
+ import Item from './Item';
3
+ OrderedList.Item = Item;
4
+ export default OrderedList;
@@ -1,18 +1,11 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
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 _componentsBase = require("@telus-uds/components-base");
11
- var _utils = require("../utils");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
- const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_utils.htmlAttrs]);
15
- const StyledParagraph = /*#__PURE__*/_styledComponents.default.p.withConfig({
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import styled from 'styled-components';
4
+ import { getTokensPropType, selectSystemProps } from '@telus-uds/components-base';
5
+ import { htmlAttrs, useTypographyTheme } from '../utils';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
8
+ const StyledParagraph = /*#__PURE__*/styled.p.withConfig({
16
9
  displayName: "Paragraph__StyledParagraph",
17
10
  componentId: "components-web__sc-1bg9r8p-0"
18
11
  })(["", " ", " &:first-child{margin-block-start:0em;}&:last-child{margin-block-end:0em;}"], _ref => {
@@ -40,7 +33,7 @@ const StyledParagraph = /*#__PURE__*/_styledComponents.default.p.withConfig({
40
33
  contrast.
41
34
  * - All Allium Typography variants other than header size variants are supported.
42
35
  */
43
- const Paragraph = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
36
+ const Paragraph = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
44
37
  let {
45
38
  children,
46
39
  variant,
@@ -50,8 +43,8 @@ const Paragraph = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
50
43
  linesBetween = 1,
51
44
  ...rest
52
45
  } = _ref3;
53
- const style = (0, _utils.useTypographyTheme)(variant, tokens);
54
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledParagraph, {
46
+ const style = useTypographyTheme(variant, tokens);
47
+ return /*#__PURE__*/_jsx(StyledParagraph, {
55
48
  ref: ref,
56
49
  linesBetween: linesBetween,
57
50
  "data-testid": testID,
@@ -64,35 +57,34 @@ const Paragraph = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
64
57
  Paragraph.displayName = 'Paragraph';
65
58
  Paragraph.propTypes = {
66
59
  ...selectedSystemPropTypes,
67
- children: _propTypes.default.node.isRequired,
60
+ children: PropTypes.node.isRequired,
68
61
  /**
69
62
  * Adds a `data-testid` attribute to the element for testing purposes
70
63
  */
71
- testID: _propTypes.default.string,
64
+ testID: PropTypes.string,
72
65
  /**
73
66
  * Sets the alignment style for the paragraph. Same options as Typography's `align` prop.
74
67
  * 'justify' should be avoided as it usually reduces ease of reading.
75
68
  */
76
- align: _propTypes.default.oneOf(['auto', 'left', 'right', 'center', 'justify']),
69
+ align: PropTypes.oneOf(['auto', 'left', 'right', 'center', 'justify']),
77
70
  /**
78
71
  * How much space between consecutive paragraphs, or between a paragraph and its siblings, in CSS
79
72
  * `em` units: 1 gives space equal to one line of paragraph text, 0.5 would be half a line, etc.
80
73
  * @default 1
81
74
  */
82
- linesBetween: _propTypes.default.number,
75
+ linesBetween: PropTypes.number,
83
76
  /**
84
77
  * Paragraph takes the same tokens overrides as Typography
85
78
  */
86
- tokens: (0, _componentsBase.getTokensPropType)('Typography'),
79
+ tokens: getTokensPropType('Typography'),
87
80
  /**
88
81
  * Paragraph takes any of Typography's theme variants except for header sizes
89
82
  */
90
- variant: _propTypes.default.exact({
91
- bold: _propTypes.default.bool,
92
- colour: _propTypes.default.oneOf(['secondary', 'tertiary']),
93
- inverse: _propTypes.default.bool,
94
- size: _propTypes.default.oneOf(['micro', 'small', 'large'])
83
+ variant: PropTypes.exact({
84
+ bold: PropTypes.bool,
85
+ colour: PropTypes.oneOf(['secondary', 'tertiary']),
86
+ inverse: PropTypes.bool,
87
+ size: PropTypes.oneOf(['micro', 'small', 'large'])
95
88
  })
96
89
  };
97
- var _default = Paragraph;
98
- exports.default = _default;
90
+ export default Paragraph;
@@ -1,10 +1,2 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _Paragraph = _interopRequireDefault(require("./Paragraph"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
- var _default = _Paragraph.default;
10
- exports.default = _default;
1
+ import Paragraph from './Paragraph';
2
+ export default Paragraph;
@@ -1,37 +1,33 @@
1
- "use strict";
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { StackWrap, Typography, useThemeTokens } from '@telus-uds/components-base';
2
4
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _componentsBase = require("@telus-uds/components-base");
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
5
  /**
13
6
  * A footer for PreviewCard that composes author and date in a standard way
14
7
  *
15
8
  * @TODO
16
9
  * Add same locale-based date formatting as StoryCard when ready.
17
10
  * Get locale based on decision of https://github.com/telus/universal-design-system/issues/715
18
- */const AuthorDate = _ref => {
11
+ */
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ const AuthorDate = /*#__PURE__*/React.forwardRef((_ref, ref) => {
19
14
  let {
20
15
  author,
21
16
  date
22
17
  } = _ref;
23
18
  const {
24
19
  separatorColor: color
25
- } = (0, _componentsBase.useThemeTokens)('PreviewCard', {}, {});
26
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_componentsBase.StackWrap, {
20
+ } = useThemeTokens('PreviewCard', {}, {});
21
+ return /*#__PURE__*/_jsxs(StackWrap, {
27
22
  space: 2,
28
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
23
+ ref: ref,
24
+ children: [/*#__PURE__*/_jsx(Typography, {
29
25
  variant: {
30
26
  size: 'small',
31
27
  colour: 'secondary'
32
28
  },
33
29
  children: author
34
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
30
+ }), /*#__PURE__*/_jsx(Typography, {
35
31
  variant: {
36
32
  size: 'small'
37
33
  },
@@ -39,7 +35,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
39
35
  color
40
36
  },
41
37
  children: "\xB7"
42
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
38
+ }), /*#__PURE__*/_jsx(Typography, {
43
39
  variant: {
44
40
  size: 'small',
45
41
  colour: 'secondary'
@@ -47,16 +43,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
47
43
  children: date
48
44
  })]
49
45
  });
50
- };
46
+ });
47
+ AuthorDate.displayName = 'AuthorDate';
51
48
  AuthorDate.propTypes = {
52
49
  /**
53
50
  * Name of the author
54
51
  */
55
- author: _propTypes.default.string.isRequired,
52
+ author: PropTypes.string.isRequired,
56
53
  /**
57
54
  * Date of the post
58
55
  */
59
- date: _propTypes.default.string.isRequired
56
+ date: PropTypes.string.isRequired
60
57
  };
61
- var _default = AuthorDate;
62
- exports.default = _default;
58
+ export default AuthorDate;
@@ -1,26 +1,18 @@
1
- "use strict";
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import omit from 'lodash.omit';
4
+ import { Box, getThemeTokens, hrefAttrsProp, PressableCardBase, selectSystemProps, Spacer, StackView, Typography, a11yProps, focusHandlerProps, viewProps, withLinkRouter, useTheme, getTokensPropType } from '@telus-uds/components-base';
5
+ import styled from 'styled-components';
6
+ import FullBleedContent, { getFullBleedBorderRadius, useFullBleedContentProps } from '../shared/FullBleedContent';
7
+ import AuthorDate from './AuthorDate';
2
8
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _lodash = _interopRequireDefault(require("lodash.omit"));
10
- var _componentsBase = require("@telus-uds/components-base");
11
- var _styledComponents = _interopRequireDefault(require("styled-components"));
12
- var _FullBleedContent = _interopRequireWildcard(require("../shared/FullBleedContent"));
13
- var _AuthorDate = _interopRequireDefault(require("./AuthorDate"));
14
- var _jsxRuntime = require("react/jsx-runtime");
15
- 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); }
16
- 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; }
17
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
9
  // Passes React Native-oriented system props through UDS PressableCardBase
19
- const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_componentsBase.a11yProps, _componentsBase.focusHandlerProps, _componentsBase.viewProps]);
10
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
11
+ const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, focusHandlerProps, viewProps]);
20
12
 
21
13
  // Stop changes to the card's inner border width causing the size and
22
14
  // apparent position of the full bleed image to change.
23
- const FullBleedOffsetOuter = /*#__PURE__*/_styledComponents.default.div.withConfig({
15
+ const FullBleedOffsetOuter = /*#__PURE__*/styled.div.withConfig({
24
16
  displayName: "PreviewCard__FullBleedOffsetOuter",
25
17
  componentId: "components-web__sc-1yfz4de-0"
26
18
  })(_ref => {
@@ -32,7 +24,7 @@ const FullBleedOffsetOuter = /*#__PURE__*/_styledComponents.default.div.withConf
32
24
  marginTop: borderOffset * 2
33
25
  };
34
26
  });
35
- const FullBleedOffsetInner = /*#__PURE__*/_styledComponents.default.div.withConfig({
27
+ const FullBleedOffsetInner = /*#__PURE__*/styled.div.withConfig({
36
28
  displayName: "PreviewCard__FullBleedOffsetInner",
37
29
  componentId: "components-web__sc-1yfz4de-1"
38
30
  })(_ref2 => {
@@ -63,7 +55,7 @@ const defaultTokens = {
63
55
  * - Use `href` to set the target URL
64
56
  * - Use `fullBleedContent` to set the thumbnail image
65
57
  */
66
- const PreviewCard = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
58
+ const PreviewCard = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
67
59
  let {
68
60
  tag,
69
61
  title,
@@ -78,7 +70,7 @@ const PreviewCard = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
78
70
  fullBleedContentPosition,
79
71
  contentStackDirection,
80
72
  fullBleedContentProps
81
- } = (0, _FullBleedContent.useFullBleedContentProps)({
73
+ } = useFullBleedContentProps({
82
74
  ...fullBleedContent,
83
75
  position: 'bottom'
84
76
  });
@@ -86,16 +78,16 @@ const PreviewCard = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
86
78
  components: {
87
79
  PreviewCard: theme
88
80
  }
89
- } = (0, _componentsBase.useTheme)();
81
+ } = useTheme();
90
82
  const getPressableCardTokens = cardState => ({
91
- ...(0, _lodash.default)((0, _componentsBase.getThemeTokens)(theme, {}, {}, cardState), 'separatorColor'),
83
+ ...omit(getThemeTokens(theme, {}, {}, cardState), 'separatorColor'),
92
84
  ...defaultTokens
93
85
  });
94
86
  const {
95
87
  hrefAttrs,
96
88
  rest: unusedRest
97
- } = _componentsBase.hrefAttrsProp.bundle(rest);
98
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.PressableCardBase, {
89
+ } = hrefAttrsProp.bundle(rest);
90
+ return /*#__PURE__*/_jsx(PressableCardBase, {
99
91
  onPress: onPress,
100
92
  href: href,
101
93
  hrefAttrs: hrefAttrs,
@@ -109,14 +101,14 @@ const PreviewCard = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
109
101
  } = getPressableCardTokens(cardState);
110
102
  // Stop content jumping around as border size changes
111
103
  const borderOffset = borderWidth - theme.tokens.borderWidth;
112
- const fullBleedBorderRadius = (0, _FullBleedContent.getFullBleedBorderRadius)(borderRadius + borderOffset, fullBleedContentPosition);
113
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_componentsBase.StackView, {
104
+ const fullBleedBorderRadius = getFullBleedBorderRadius(borderRadius + borderOffset, fullBleedContentPosition);
105
+ return /*#__PURE__*/_jsxs(StackView, {
114
106
  direction: contentStackDirection,
115
107
  tokens: {
116
108
  justifyContent: 'space-between',
117
109
  flexGrow: 1
118
110
  },
119
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_componentsBase.Box, {
111
+ children: [/*#__PURE__*/_jsxs(Box, {
120
112
  horizontal: {
121
113
  xs: 4,
122
114
  lg: 5,
@@ -131,35 +123,35 @@ const PreviewCard = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
131
123
  subtract: borderOffset
132
124
  }
133
125
  },
134
- children: [Boolean(tag) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
135
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
126
+ children: [Boolean(tag) && /*#__PURE__*/_jsxs(_Fragment, {
127
+ children: [/*#__PURE__*/_jsx(Typography, {
136
128
  variant: {
137
129
  size: 'eyebrow'
138
130
  },
139
131
  children: tag
140
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Spacer, {
132
+ }), /*#__PURE__*/_jsx(Spacer, {
141
133
  space: 2
142
134
  })]
143
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
135
+ }), /*#__PURE__*/_jsx(Typography, {
144
136
  variant: {
145
137
  size: 'h4'
146
138
  },
147
139
  children: title
148
- }), Boolean(footer) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
149
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Spacer, {
140
+ }), Boolean(footer) && /*#__PURE__*/_jsxs(_Fragment, {
141
+ children: [/*#__PURE__*/_jsx(Spacer, {
150
142
  space: 2
151
- }), typeof footer === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
143
+ }), typeof footer === 'string' ? /*#__PURE__*/_jsx(Typography, {
152
144
  variant: {
153
145
  size: 'small'
154
146
  },
155
147
  children: footer
156
148
  }) : footer]
157
149
  })]
158
- }), Boolean(fullBleedContentProps.src || fullBleedContentProps.content) && /*#__PURE__*/(0, _jsxRuntime.jsx)(FullBleedOffsetOuter, {
150
+ }), Boolean(fullBleedContentProps.src || fullBleedContentProps.content) && /*#__PURE__*/_jsx(FullBleedOffsetOuter, {
159
151
  borderOffset: borderOffset,
160
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(FullBleedOffsetInner, {
152
+ children: /*#__PURE__*/_jsx(FullBleedOffsetInner, {
161
153
  borderOffset: borderOffset,
162
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullBleedContent.default, {
154
+ children: /*#__PURE__*/_jsx(FullBleedContent, {
163
155
  borderRadius: fullBleedBorderRadius,
164
156
  ...fullBleedContentProps
165
157
  })
@@ -172,10 +164,10 @@ const PreviewCard = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
172
164
  PreviewCard.displayName = 'PreviewCard';
173
165
 
174
166
  // Provide standard author/date footer as a preset with the export
175
- PreviewCard.AuthorDate = _AuthorDate.default;
167
+ PreviewCard.AuthorDate = AuthorDate;
176
168
  PreviewCard.propTypes = {
177
169
  ...selectedSystemPropTypes,
178
- tokens: (0, _componentsBase.getTokensPropType)('PreviewCard'),
170
+ tokens: getTokensPropType('PreviewCard'),
179
171
  /**
180
172
  * The URL of the story to be navigated to. Note that `Video` component does not play well when used within
181
173
  * a `PreviewCard` with `href` prop set (the volume and progress sliders can be clicked but are not draggable).
@@ -183,34 +175,33 @@ PreviewCard.propTypes = {
183
175
  *
184
176
  * @see https://github.com/telus/allium-design-system/issues/6
185
177
  */
186
- href: _propTypes.default.string,
178
+ href: PropTypes.string,
187
179
  /**
188
180
  * Optional function to be called on press e.g. for within-page navigation.
189
181
  */
190
- onPress: _propTypes.default.func,
182
+ onPress: PropTypes.func,
191
183
  /**
192
184
  * Text stating the category of the content.
193
185
  */
194
- tag: _propTypes.default.string,
186
+ tag: PropTypes.string,
195
187
  /**
196
188
  * Section containing additional information, such as author and date.
197
189
  * Use `<PreviewCard.AuthorDate author={...} date={...} />` here for author and date.
198
190
  */
199
- footer: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.string]),
191
+ footer: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
200
192
  /**
201
193
  * Text stating the title or headline of the story.
202
194
  */
203
- title: _propTypes.default.string.isRequired,
195
+ title: PropTypes.string.isRequired,
204
196
  /**
205
197
  * Full bleed image to be placed on the card, deprecated in favor of `fullBleedContent`.
206
198
  *
207
199
  * @deprecated
208
200
  */
209
- fullBleedImage: _propTypes.default.exact(_FullBleedContent.default.propTypes || {}),
201
+ fullBleedImage: PropTypes.exact(FullBleedContent.propTypes || {}),
210
202
  /**
211
203
  * Full bleed content to be placed on the card.
212
204
  */
213
- fullBleedContent: _propTypes.default.exact(_FullBleedContent.default.propTypes || {})
205
+ fullBleedContent: PropTypes.exact(FullBleedContent.propTypes || {})
214
206
  };
215
- var _default = (0, _componentsBase.withLinkRouter)(PreviewCard);
216
- exports.default = _default;
207
+ export default withLinkRouter(PreviewCard);
@@ -1,10 +1,2 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _PreviewCard = _interopRequireDefault(require("./PreviewCard"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
- var _default = _PreviewCard.default;
10
- exports.default = _default;
1
+ import PreviewCard from './PreviewCard';
2
+ export default PreviewCard;