@telus-uds/components-web 4.19.0 → 5.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (477) hide show
  1. package/.eslintrc.cjs +12 -0
  2. package/CHANGELOG.md +24 -1
  3. package/lib/cjs/Badge/Badge.js +26 -27
  4. package/lib/cjs/BlockQuote/BlockQuote.js +24 -25
  5. package/lib/cjs/Breadcrumbs/{Item/Item.js → BreadcrumbItem.js} +36 -37
  6. package/lib/cjs/Breadcrumbs/Breadcrumbs.js +8 -10
  7. package/lib/cjs/Callout/Callout.js +24 -25
  8. package/lib/cjs/Card/Card.js +79 -89
  9. package/lib/cjs/Card/CardContent.js +53 -29
  10. package/lib/cjs/Card/CardFooter.js +28 -18
  11. package/lib/cjs/Countdown/Countdown.js +7 -8
  12. package/lib/cjs/Countdown/Segment.js +10 -11
  13. package/lib/cjs/Countdown/dictionary.js +2 -2
  14. package/lib/cjs/Countdown/types.js +2 -6
  15. package/lib/cjs/Countdown/useCountdown.js +2 -2
  16. package/lib/cjs/DatePicker/CalendarContainer.js +66 -67
  17. package/lib/cjs/DatePicker/DatePicker.js +27 -28
  18. package/lib/cjs/DatePicker/dictionary.js +3 -4
  19. package/lib/cjs/DatePicker/reactDatesCss.js +2 -3
  20. package/lib/cjs/Disclaimer/Disclaimer.js +28 -13
  21. package/lib/cjs/Footnote/Footnote.js +108 -109
  22. package/lib/cjs/Footnote/FootnoteLink.js +28 -19
  23. package/lib/cjs/Footnote/dictionary.js +2 -2
  24. package/lib/cjs/IconButton/IconButton.js +3 -4
  25. package/lib/cjs/Image/Image.js +9 -3
  26. package/lib/cjs/Image/server.js +4 -6
  27. package/lib/cjs/List/List.js +7 -3
  28. package/lib/cjs/List/ListItem.js +3 -4
  29. package/lib/cjs/NavigationBar/NavigationBar.js +8 -9
  30. package/lib/cjs/NavigationBar/NavigationItem.js +10 -11
  31. package/lib/cjs/NavigationBar/NavigationSubMenu.js +10 -11
  32. package/lib/cjs/NavigationBar/collapseItems.js +2 -2
  33. package/lib/cjs/NavigationBar/resolveItemSelection.js +2 -2
  34. package/lib/cjs/OptimizeImage/OptimizeImage.js +6 -8
  35. package/lib/cjs/OptimizeImage/utils/getFallbackUrl.js +3 -4
  36. package/lib/cjs/OptimizeImage/utils/getImageUrls.js +9 -10
  37. package/lib/cjs/OptimizeImage/utils/getOptimizedUrl.js +3 -4
  38. package/lib/cjs/OptimizeImage/utils/hasWebpSupport.js +1 -1
  39. package/lib/cjs/OptimizeImage/utils/index.js +8 -9
  40. package/lib/cjs/OptimizeImage/utils/isSvgUrl.js +1 -1
  41. package/lib/cjs/OrderedList/OrderedList.js +6 -9
  42. package/lib/cjs/OrderedList/OrderedListBase.js +4 -7
  43. package/lib/cjs/OrderedList/{Item.js → OrderedListItem.js} +46 -39
  44. package/lib/cjs/OrderedList/{ItemBase.js → OrderedListItemBase.js} +7 -7
  45. package/lib/cjs/OrderedList/constants.js +0 -1
  46. package/lib/cjs/Paragraph/Paragraph.js +10 -11
  47. package/lib/cjs/PreviewCard/PreviewCard.js +18 -27
  48. package/lib/cjs/PreviewCard/{AuthorDate.js → PreviewCardAuthorDate.js} +6 -6
  49. package/lib/cjs/PriceLockup/PriceLockup.js +61 -60
  50. package/lib/cjs/PriceLockup/dictionary.js +2 -2
  51. package/lib/cjs/PriceLockup/tokens.js +3 -3
  52. package/lib/cjs/Progress/ProgressBar.js +14 -17
  53. package/lib/cjs/QuantitySelector/QuantitySelector.js +8 -9
  54. package/lib/cjs/QuantitySelector/{SideButton.js → QuantitySelectorSideButton.js} +5 -6
  55. package/lib/cjs/QuantitySelector/dictionary.js +2 -2
  56. package/lib/cjs/ResponsiveImage/ResponsiveImage.js +3 -4
  57. package/lib/cjs/Ribbon/Ribbon.js +56 -65
  58. package/lib/cjs/SkeletonProvider/SkeletonImage.js +3 -4
  59. package/lib/cjs/SkeletonProvider/SkeletonProvider.js +10 -10
  60. package/lib/cjs/SkeletonProvider/SkeletonTypography.js +3 -4
  61. package/lib/cjs/Span/Span.js +6 -7
  62. package/lib/cjs/Spinner/Spinner.js +29 -29
  63. package/lib/cjs/Spinner/SpinnerContent.js +6 -7
  64. package/lib/cjs/StoryCard/StoryCard.js +17 -22
  65. package/lib/cjs/Table/Table.js +32 -25
  66. package/lib/cjs/Table/{Body.js → TableBody.js} +5 -6
  67. package/lib/cjs/Table/{Cell.js → TableCell.js} +59 -61
  68. package/lib/cjs/Table/{Header.js → TableHeader.js} +7 -8
  69. package/lib/cjs/Table/{Row.js → TableRow.js} +18 -19
  70. package/lib/cjs/Table/{SubHeading.js → TableSubHeading.js} +7 -8
  71. package/lib/cjs/TermsAndConditions/ExpandCollapse.js +18 -19
  72. package/lib/cjs/TermsAndConditions/TermsAndConditions.js +44 -44
  73. package/lib/cjs/TermsAndConditions/dictionary.js +2 -2
  74. package/lib/cjs/Testimonial/Testimonial.js +24 -31
  75. package/lib/cjs/Toast/Toast.js +28 -30
  76. package/lib/cjs/Video/ControlBar/ControlBar.js +48 -47
  77. package/lib/cjs/Video/ControlBar/Controls/VideoButton/VideoButton.js +6 -6
  78. package/lib/cjs/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +30 -32
  79. package/lib/cjs/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +35 -35
  80. package/lib/cjs/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +42 -42
  81. package/lib/cjs/Video/MiddleControlButton/MiddleControlButton.js +15 -15
  82. package/lib/cjs/Video/Video.js +27 -29
  83. package/lib/cjs/Video/videoText.js +3 -4
  84. package/lib/cjs/VideoPicker/VideoPicker.js +37 -33
  85. package/lib/cjs/VideoPicker/VideoPickerPlayer.js +5 -6
  86. package/lib/cjs/VideoPicker/VideoPickerThumbnail.js +28 -25
  87. package/lib/cjs/VideoPicker/VideoSlider.js +3 -4
  88. package/lib/cjs/WaffleGrid/WaffleGrid.js +51 -50
  89. package/lib/cjs/WebVideo/WebVideo.js +7 -8
  90. package/lib/cjs/baseExports.js +84 -0
  91. package/lib/cjs/index.js +179 -105
  92. package/lib/cjs/server.js +2 -3
  93. package/lib/cjs/shared/ConditionalWrapper/ConditionalWrapper.js +3 -3
  94. package/lib/cjs/shared/FullBleedContent/FullBleedContent.js +28 -22
  95. package/lib/cjs/shared/FullBleedContent/getFullBleedBorderRadius.js +2 -2
  96. package/lib/cjs/shared/FullBleedContent/index.js +11 -10
  97. package/lib/cjs/shared/FullBleedContent/useFullBleedContentProps.js +2 -2
  98. package/lib/cjs/shared/VideoSplash/SplashButton/SplashButton.js +9 -9
  99. package/lib/cjs/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +50 -50
  100. package/lib/cjs/shared/VideoSplash/VideoSplash.js +12 -12
  101. package/lib/cjs/shared/VideoSplash/helpers.js +2 -3
  102. package/lib/cjs/utils/index.js +14 -15
  103. package/lib/cjs/utils/isElementFocusable.js +2 -2
  104. package/lib/cjs/utils/logger.js +2 -6
  105. package/lib/cjs/utils/media.js +1 -1
  106. package/lib/cjs/utils/renderStructuredContent.js +3 -4
  107. package/lib/cjs/utils/scrollToAnchor.js +2 -2
  108. package/lib/cjs/utils/ssr.js +2 -2
  109. package/lib/cjs/utils/theming/get-theme-from-server.js +2 -3
  110. package/lib/cjs/utils/theming/with-client-theme.js +2 -2
  111. package/lib/cjs/utils/theming/with-server-theme.js +4 -4
  112. package/lib/cjs/utils/transforms.js +2 -5
  113. package/lib/cjs/utils/useOverlaidPosition.js +2 -2
  114. package/lib/cjs/utils/useTypographyTheme.js +2 -2
  115. package/lib/esm/Badge/Badge.js +25 -26
  116. package/lib/esm/BlockQuote/BlockQuote.js +23 -24
  117. package/lib/esm/Breadcrumbs/{Item/Item.js → BreadcrumbItem.js} +35 -36
  118. package/lib/esm/Breadcrumbs/Breadcrumbs.js +6 -7
  119. package/lib/esm/Callout/Callout.js +23 -24
  120. package/lib/esm/Card/Card.js +63 -71
  121. package/lib/esm/Card/CardContent.js +52 -28
  122. package/lib/esm/Card/CardFooter.js +27 -18
  123. package/lib/esm/Countdown/Countdown.js +4 -5
  124. package/lib/esm/Countdown/Segment.js +8 -9
  125. package/lib/esm/Countdown/dictionary.js +1 -1
  126. package/lib/esm/Countdown/types.js +1 -5
  127. package/lib/esm/Countdown/useCountdown.js +2 -3
  128. package/lib/esm/DatePicker/CalendarContainer.js +64 -65
  129. package/lib/esm/DatePicker/DatePicker.js +18 -19
  130. package/lib/esm/DatePicker/dictionary.js +2 -3
  131. package/lib/esm/DatePicker/reactDatesCss.js +1 -2
  132. package/lib/esm/Disclaimer/Disclaimer.js +27 -12
  133. package/lib/esm/Footnote/Footnote.js +104 -104
  134. package/lib/esm/Footnote/FootnoteLink.js +26 -17
  135. package/lib/esm/Footnote/dictionary.js +1 -1
  136. package/lib/esm/IconButton/IconButton.js +2 -3
  137. package/lib/esm/Image/Image.js +10 -1
  138. package/lib/esm/Image/server.js +4 -4
  139. package/lib/esm/List/List.js +2 -2
  140. package/lib/esm/List/ListItem.js +2 -3
  141. package/lib/esm/NavigationBar/NavigationBar.js +5 -6
  142. package/lib/esm/NavigationBar/NavigationItem.js +9 -10
  143. package/lib/esm/NavigationBar/NavigationSubMenu.js +7 -8
  144. package/lib/esm/NavigationBar/collapseItems.js +2 -3
  145. package/lib/esm/NavigationBar/resolveItemSelection.js +2 -3
  146. package/lib/esm/OptimizeImage/OptimizeImage.js +4 -6
  147. package/lib/esm/OptimizeImage/utils/getFallbackUrl.js +2 -2
  148. package/lib/esm/OptimizeImage/utils/getImageUrls.js +3 -3
  149. package/lib/esm/OptimizeImage/utils/getOptimizedUrl.js +2 -2
  150. package/lib/esm/OptimizeImage/utils/hasWebpSupport.js +1 -1
  151. package/lib/esm/OptimizeImage/utils/index.js +4 -4
  152. package/lib/esm/OptimizeImage/utils/isSvgUrl.js +1 -1
  153. package/lib/esm/OrderedList/OrderedList.js +4 -7
  154. package/lib/esm/OrderedList/OrderedListBase.js +3 -6
  155. package/lib/esm/OrderedList/{Item.js → OrderedListItem.js} +45 -38
  156. package/lib/esm/OrderedList/{ItemBase.js → OrderedListItemBase.js} +5 -6
  157. package/lib/esm/OrderedList/constants.js +0 -1
  158. package/lib/esm/Paragraph/Paragraph.js +9 -10
  159. package/lib/esm/PreviewCard/PreviewCard.js +16 -21
  160. package/lib/esm/PreviewCard/{AuthorDate.js → PreviewCardAuthorDate.js} +4 -5
  161. package/lib/esm/PriceLockup/PriceLockup.js +57 -56
  162. package/lib/esm/PriceLockup/dictionary.js +1 -1
  163. package/lib/esm/PriceLockup/tokens.js +1 -1
  164. package/lib/esm/Progress/ProgressBar.js +13 -16
  165. package/lib/esm/QuantitySelector/QuantitySelector.js +6 -7
  166. package/lib/esm/QuantitySelector/{SideButton.js → QuantitySelectorSideButton.js} +4 -5
  167. package/lib/esm/QuantitySelector/dictionary.js +1 -1
  168. package/lib/esm/ResponsiveImage/ResponsiveImage.js +2 -3
  169. package/lib/esm/Ribbon/Ribbon.js +55 -64
  170. package/lib/esm/SkeletonProvider/SkeletonImage.js +2 -3
  171. package/lib/esm/SkeletonProvider/SkeletonProvider.js +6 -7
  172. package/lib/esm/SkeletonProvider/SkeletonTypography.js +2 -3
  173. package/lib/esm/Span/Span.js +5 -6
  174. package/lib/esm/Spinner/Spinner.js +24 -24
  175. package/lib/esm/Spinner/SpinnerContent.js +5 -6
  176. package/lib/esm/StoryCard/StoryCard.js +15 -16
  177. package/lib/esm/Table/Table.js +31 -24
  178. package/lib/esm/Table/{Body.js → TableBody.js} +4 -5
  179. package/lib/esm/Table/{Cell.js → TableCell.js} +57 -58
  180. package/lib/esm/Table/{Header.js → TableHeader.js} +6 -7
  181. package/lib/esm/Table/{Row.js → TableRow.js} +17 -18
  182. package/lib/esm/Table/{SubHeading.js → TableSubHeading.js} +6 -7
  183. package/lib/esm/TermsAndConditions/ExpandCollapse.js +18 -19
  184. package/lib/esm/TermsAndConditions/TermsAndConditions.js +40 -40
  185. package/lib/esm/TermsAndConditions/dictionary.js +1 -1
  186. package/lib/esm/Testimonial/Testimonial.js +22 -29
  187. package/lib/esm/Toast/Toast.js +26 -27
  188. package/lib/esm/Video/ControlBar/ControlBar.js +33 -33
  189. package/lib/esm/Video/ControlBar/Controls/VideoButton/VideoButton.js +5 -6
  190. package/lib/esm/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +28 -31
  191. package/lib/esm/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +33 -34
  192. package/lib/esm/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +38 -39
  193. package/lib/esm/Video/MiddleControlButton/MiddleControlButton.js +14 -15
  194. package/lib/esm/Video/Video.js +19 -21
  195. package/lib/esm/Video/videoText.js +2 -3
  196. package/lib/esm/VideoPicker/VideoPicker.js +32 -27
  197. package/lib/esm/VideoPicker/VideoPickerPlayer.js +3 -4
  198. package/lib/esm/VideoPicker/VideoPickerThumbnail.js +26 -23
  199. package/lib/esm/VideoPicker/VideoSlider.js +2 -3
  200. package/lib/esm/WaffleGrid/WaffleGrid.js +49 -46
  201. package/lib/esm/WebVideo/WebVideo.js +5 -6
  202. package/lib/esm/baseExports.js +1 -1
  203. package/lib/esm/index.js +46 -37
  204. package/lib/esm/server.js +1 -2
  205. package/lib/esm/shared/ConditionalWrapper/ConditionalWrapper.js +2 -3
  206. package/lib/esm/shared/FullBleedContent/FullBleedContent.js +25 -20
  207. package/lib/esm/shared/FullBleedContent/getFullBleedBorderRadius.js +2 -3
  208. package/lib/esm/shared/FullBleedContent/index.js +3 -4
  209. package/lib/esm/shared/FullBleedContent/useFullBleedContentProps.js +3 -5
  210. package/lib/esm/shared/VideoSplash/SplashButton/SplashButton.js +8 -9
  211. package/lib/esm/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +48 -49
  212. package/lib/esm/shared/VideoSplash/VideoSplash.js +8 -9
  213. package/lib/esm/shared/VideoSplash/helpers.js +1 -1
  214. package/lib/esm/utils/index.js +7 -7
  215. package/lib/esm/utils/isElementFocusable.js +2 -3
  216. package/lib/esm/utils/logger.js +0 -4
  217. package/lib/esm/utils/media.js +1 -1
  218. package/lib/esm/utils/renderStructuredContent.js +2 -3
  219. package/lib/esm/utils/scrollToAnchor.js +2 -3
  220. package/lib/esm/utils/ssr.js +2 -3
  221. package/lib/esm/utils/theming/get-theme-from-server.js +1 -1
  222. package/lib/esm/utils/theming/with-client-theme.js +2 -3
  223. package/lib/esm/utils/theming/with-server-theme.js +3 -4
  224. package/lib/esm/utils/transforms.js +1 -4
  225. package/lib/esm/utils/useOverlaidPosition.js +2 -3
  226. package/lib/esm/utils/useTypographyTheme.js +2 -3
  227. package/package.json +13 -22
  228. package/src/Badge/Badge.jsx +18 -20
  229. package/src/BlockQuote/BlockQuote.jsx +16 -18
  230. package/src/Breadcrumbs/{Item/Item.jsx → BreadcrumbItem.jsx} +20 -21
  231. package/src/Breadcrumbs/Breadcrumbs.jsx +6 -9
  232. package/src/Callout/Callout.jsx +16 -18
  233. package/src/Card/Card.jsx +59 -80
  234. package/src/Card/CardContent.jsx +52 -28
  235. package/src/Card/CardFooter.jsx +26 -12
  236. package/src/Countdown/Countdown.jsx +3 -5
  237. package/src/Countdown/Segment.jsx +6 -8
  238. package/src/Countdown/dictionary.js +1 -1
  239. package/src/Countdown/types.js +0 -2
  240. package/src/Countdown/useCountdown.js +1 -3
  241. package/src/DatePicker/CalendarContainer.jsx +65 -67
  242. package/src/DatePicker/DatePicker.jsx +17 -19
  243. package/src/DatePicker/dictionary.js +1 -3
  244. package/src/DatePicker/reactDatesCss.js +1 -3
  245. package/src/Disclaimer/Disclaimer.jsx +15 -8
  246. package/src/Footnote/Footnote.jsx +104 -93
  247. package/src/Footnote/FootnoteLink.jsx +16 -13
  248. package/src/Footnote/dictionary.js +1 -1
  249. package/src/IconButton/IconButton.jsx +1 -3
  250. package/src/Image/Image.jsx +9 -1
  251. package/src/Image/server.js +4 -4
  252. package/src/List/List.jsx +2 -2
  253. package/src/List/ListItem.jsx +1 -3
  254. package/src/NavigationBar/NavigationBar.jsx +4 -6
  255. package/src/NavigationBar/NavigationItem.jsx +6 -8
  256. package/src/NavigationBar/NavigationSubMenu.jsx +7 -8
  257. package/src/NavigationBar/collapseItems.js +1 -3
  258. package/src/NavigationBar/resolveItemSelection.js +1 -3
  259. package/src/OptimizeImage/OptimizeImage.jsx +3 -6
  260. package/src/OptimizeImage/utils/getFallbackUrl.js +2 -2
  261. package/src/OptimizeImage/utils/getImageUrls.js +3 -3
  262. package/src/OptimizeImage/utils/getOptimizedUrl.js +2 -9
  263. package/src/OptimizeImage/utils/hasWebpSupport.js +1 -1
  264. package/src/OptimizeImage/utils/index.js +4 -4
  265. package/src/OptimizeImage/utils/isSvgUrl.js +1 -1
  266. package/src/OrderedList/OrderedList.jsx +3 -8
  267. package/src/OrderedList/OrderedListBase.jsx +2 -7
  268. package/src/OrderedList/{Item.jsx → OrderedListItem.jsx} +44 -32
  269. package/src/OrderedList/{ItemBase.jsx → OrderedListItemBase.jsx} +4 -4
  270. package/src/OrderedList/constants.js +0 -1
  271. package/src/Paragraph/Paragraph.jsx +7 -9
  272. package/src/PreviewCard/PreviewCard.jsx +16 -32
  273. package/src/PreviewCard/{AuthorDate.jsx → PreviewCardAuthorDate.jsx} +3 -5
  274. package/src/PriceLockup/PriceLockup.jsx +33 -31
  275. package/src/PriceLockup/dictionary.js +1 -1
  276. package/src/PriceLockup/tokens.js +1 -1
  277. package/src/Progress/ProgressBar.jsx +33 -30
  278. package/src/QuantitySelector/QuantitySelector.jsx +5 -7
  279. package/src/QuantitySelector/{SideButton.jsx → QuantitySelectorSideButton.jsx} +3 -4
  280. package/src/QuantitySelector/dictionary.js +1 -1
  281. package/src/ResponsiveImage/ResponsiveImage.jsx +1 -3
  282. package/src/Ribbon/Ribbon.jsx +35 -44
  283. package/src/SkeletonProvider/SkeletonImage.jsx +1 -3
  284. package/src/SkeletonProvider/SkeletonProvider.jsx +5 -9
  285. package/src/SkeletonProvider/SkeletonTypography.jsx +1 -3
  286. package/src/Span/Span.jsx +11 -11
  287. package/src/Spinner/Spinner.jsx +17 -19
  288. package/src/Spinner/SpinnerContent.jsx +4 -6
  289. package/src/StoryCard/StoryCard.jsx +15 -16
  290. package/src/Table/Table.jsx +81 -75
  291. package/src/Table/{Body.jsx → TableBody.jsx} +3 -5
  292. package/src/Table/{Cell.jsx → TableCell.jsx} +69 -65
  293. package/src/Table/{Header.jsx → TableHeader.jsx} +6 -8
  294. package/src/Table/{Row.jsx → TableRow.jsx} +11 -12
  295. package/src/Table/{SubHeading.jsx → TableSubHeading.jsx} +6 -8
  296. package/src/TermsAndConditions/ExpandCollapse.jsx +18 -19
  297. package/src/TermsAndConditions/TermsAndConditions.jsx +37 -37
  298. package/src/TermsAndConditions/dictionary.js +1 -1
  299. package/src/Testimonial/Testimonial.jsx +20 -28
  300. package/src/Toast/Toast.jsx +36 -35
  301. package/src/Video/ControlBar/ControlBar.jsx +28 -25
  302. package/src/Video/ControlBar/Controls/VideoButton/VideoButton.jsx +4 -6
  303. package/src/Video/ControlBar/Controls/VideoMenu/VideoMenu.jsx +26 -30
  304. package/src/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.jsx +31 -33
  305. package/src/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.jsx +40 -40
  306. package/src/Video/MiddleControlButton/MiddleControlButton.jsx +10 -12
  307. package/src/Video/Video.jsx +697 -683
  308. package/src/Video/videoText.js +1 -3
  309. package/src/VideoPicker/VideoPicker.jsx +37 -25
  310. package/src/VideoPicker/VideoPickerPlayer.jsx +2 -4
  311. package/src/VideoPicker/VideoPickerThumbnail.jsx +26 -15
  312. package/src/VideoPicker/VideoSlider.jsx +1 -3
  313. package/src/WaffleGrid/WaffleGrid.jsx +31 -27
  314. package/src/WebVideo/WebVideo.jsx +4 -6
  315. package/src/baseExports.js +27 -13
  316. package/src/index.js +46 -37
  317. package/src/server.js +1 -2
  318. package/src/shared/ConditionalWrapper/ConditionalWrapper.jsx +1 -3
  319. package/src/shared/FullBleedContent/FullBleedContent.jsx +26 -19
  320. package/src/shared/FullBleedContent/getFullBleedBorderRadius.js +1 -3
  321. package/src/shared/FullBleedContent/index.js +3 -8
  322. package/src/shared/FullBleedContent/useFullBleedContentProps.js +2 -5
  323. package/src/shared/VideoSplash/SplashButton/SplashButton.jsx +5 -7
  324. package/src/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.jsx +25 -25
  325. package/src/shared/VideoSplash/VideoSplash.jsx +7 -9
  326. package/src/shared/VideoSplash/helpers.js +1 -1
  327. package/src/utils/index.js +7 -7
  328. package/src/utils/isElementFocusable.js +1 -3
  329. package/src/utils/logger.js +0 -5
  330. package/src/utils/media.js +1 -1
  331. package/src/utils/renderStructuredContent.jsx +1 -3
  332. package/src/utils/scrollToAnchor.js +1 -3
  333. package/src/utils/ssr.js +1 -3
  334. package/src/utils/theming/get-theme-from-server.js +1 -1
  335. package/src/utils/theming/with-client-theme.jsx +1 -3
  336. package/src/utils/theming/with-server-theme.jsx +2 -4
  337. package/src/utils/transforms.js +0 -2
  338. package/src/utils/useOverlaidPosition.js +1 -3
  339. package/src/utils/useTypographyTheme.js +1 -3
  340. package/types/Autocomplete.d.ts +1 -3
  341. package/types/Badge.d.ts +1 -3
  342. package/types/BaseProvider.d.ts +1 -3
  343. package/types/BlockQuote.d.ts +1 -3
  344. package/types/Box.d.ts +1 -3
  345. package/types/BreadcrumbItem.d.ts +1 -3
  346. package/types/Breadcrumbs.d.ts +2 -4
  347. package/types/Callout.d.ts +1 -3
  348. package/types/Card.d.ts +1 -3
  349. package/types/Cell.d.ts +1 -3
  350. package/types/ControlBar.d.ts +1 -3
  351. package/types/Countdown.d.ts +1 -3
  352. package/types/DatePicker.d.ts +1 -3
  353. package/types/FileUpload.d.ts +1 -3
  354. package/types/Footnote.d.ts +1 -3
  355. package/types/FootnoteLink.d.ts +1 -3
  356. package/types/Listbox.d.ts +1 -3
  357. package/types/MiddleControlButton.d.ts +1 -3
  358. package/types/MultiSelectFilter.d.ts +1 -3
  359. package/types/PriceLockup.d.ts +1 -3
  360. package/types/QuantitySelector.d.ts +1 -3
  361. package/types/Ribbon.d.ts +1 -3
  362. package/types/Spinner.d.ts +1 -3
  363. package/types/Table.d.ts +1 -3
  364. package/types/Tooltip.d.ts +1 -3
  365. package/types/TooltipButton.d.ts +1 -3
  366. package/types/Typography.d.ts +1 -3
  367. package/types/Video.d.ts +1 -3
  368. package/types/VideoButton.d.ts +1 -3
  369. package/types/VideoMenu.d.ts +1 -3
  370. package/types/VideoProgressBar.d.ts +1 -3
  371. package/types/VolumeSlider.d.ts +1 -3
  372. package/types/WebVideo.d.ts +1 -3
  373. package/lib/cjs/Badge/index.js +0 -9
  374. package/lib/cjs/BlockQuote/index.js +0 -9
  375. package/lib/cjs/Breadcrumbs/index.js +0 -13
  376. package/lib/cjs/Callout/index.js +0 -9
  377. package/lib/cjs/Card/index.js +0 -9
  378. package/lib/cjs/Countdown/index.js +0 -9
  379. package/lib/cjs/DatePicker/index.js +0 -9
  380. package/lib/cjs/Disclaimer/index.js +0 -13
  381. package/lib/cjs/Footnote/index.js +0 -11
  382. package/lib/cjs/IconButton/index.js +0 -9
  383. package/lib/cjs/Image/index.js +0 -20
  384. package/lib/cjs/List/index.js +0 -17
  385. package/lib/cjs/NavigationBar/index.js +0 -11
  386. package/lib/cjs/OptimizeImage/index.js +0 -9
  387. package/lib/cjs/OrderedList/index.js +0 -17
  388. package/lib/cjs/Paragraph/index.js +0 -9
  389. package/lib/cjs/PreviewCard/index.js +0 -9
  390. package/lib/cjs/PriceLockup/index.js +0 -9
  391. package/lib/cjs/Progress/index.js +0 -11
  392. package/lib/cjs/QuantitySelector/index.js +0 -9
  393. package/lib/cjs/ResponsiveImage/index.js +0 -9
  394. package/lib/cjs/Ribbon/index.js +0 -9
  395. package/lib/cjs/SkeletonProvider/index.js +0 -9
  396. package/lib/cjs/Span/index.js +0 -9
  397. package/lib/cjs/Spinner/index.js +0 -9
  398. package/lib/cjs/StoryCard/index.js +0 -9
  399. package/lib/cjs/Table/index.js +0 -24
  400. package/lib/cjs/TermsAndConditions/index.js +0 -13
  401. package/lib/cjs/Testimonial/index.js +0 -9
  402. package/lib/cjs/Toast/index.js +0 -9
  403. package/lib/cjs/Video/index.js +0 -9
  404. package/lib/cjs/VideoPicker/index.js +0 -9
  405. package/lib/cjs/WaffleGrid/index.js +0 -9
  406. package/lib/cjs/WebVideo/index.js +0 -9
  407. package/lib/cjs/shared/ConditionalWrapper/index.js +0 -9
  408. package/lib/esm/Badge/index.js +0 -2
  409. package/lib/esm/BlockQuote/index.js +0 -2
  410. package/lib/esm/Breadcrumbs/index.js +0 -1
  411. package/lib/esm/Callout/index.js +0 -2
  412. package/lib/esm/Card/index.js +0 -2
  413. package/lib/esm/Countdown/index.js +0 -2
  414. package/lib/esm/DatePicker/index.js +0 -2
  415. package/lib/esm/Disclaimer/index.js +0 -1
  416. package/lib/esm/Footnote/index.js +0 -4
  417. package/lib/esm/IconButton/index.js +0 -2
  418. package/lib/esm/Image/index.js +0 -9
  419. package/lib/esm/List/index.js +0 -5
  420. package/lib/esm/NavigationBar/index.js +0 -4
  421. package/lib/esm/OptimizeImage/index.js +0 -2
  422. package/lib/esm/OrderedList/index.js +0 -5
  423. package/lib/esm/Paragraph/index.js +0 -2
  424. package/lib/esm/PreviewCard/index.js +0 -2
  425. package/lib/esm/PriceLockup/index.js +0 -2
  426. package/lib/esm/Progress/index.js +0 -4
  427. package/lib/esm/QuantitySelector/index.js +0 -2
  428. package/lib/esm/ResponsiveImage/index.js +0 -2
  429. package/lib/esm/Ribbon/index.js +0 -2
  430. package/lib/esm/SkeletonProvider/index.js +0 -2
  431. package/lib/esm/Span/index.js +0 -2
  432. package/lib/esm/Spinner/index.js +0 -2
  433. package/lib/esm/StoryCard/index.js +0 -2
  434. package/lib/esm/Table/index.js +0 -17
  435. package/lib/esm/TermsAndConditions/index.js +0 -1
  436. package/lib/esm/Testimonial/index.js +0 -2
  437. package/lib/esm/Toast/index.js +0 -2
  438. package/lib/esm/Video/index.js +0 -2
  439. package/lib/esm/VideoPicker/index.js +0 -2
  440. package/lib/esm/WaffleGrid/index.js +0 -2
  441. package/lib/esm/WebVideo/index.js +0 -2
  442. package/lib/esm/shared/ConditionalWrapper/index.js +0 -2
  443. package/src/Badge/index.js +0 -3
  444. package/src/BlockQuote/index.js +0 -3
  445. package/src/Breadcrumbs/index.js +0 -1
  446. package/src/Callout/index.js +0 -3
  447. package/src/Card/index.js +0 -3
  448. package/src/Countdown/index.js +0 -3
  449. package/src/DatePicker/index.js +0 -3
  450. package/src/Disclaimer/index.js +0 -1
  451. package/src/Footnote/index.js +0 -6
  452. package/src/IconButton/index.js +0 -3
  453. package/src/Image/index.js +0 -10
  454. package/src/List/index.js +0 -8
  455. package/src/NavigationBar/index.js +0 -6
  456. package/src/OptimizeImage/index.js +0 -3
  457. package/src/OrderedList/index.js +0 -8
  458. package/src/Paragraph/index.js +0 -3
  459. package/src/PreviewCard/index.js +0 -3
  460. package/src/PriceLockup/index.js +0 -3
  461. package/src/Progress/index.js +0 -6
  462. package/src/QuantitySelector/index.js +0 -3
  463. package/src/ResponsiveImage/index.js +0 -3
  464. package/src/Ribbon/index.js +0 -3
  465. package/src/SkeletonProvider/index.js +0 -3
  466. package/src/Span/index.js +0 -3
  467. package/src/Spinner/index.js +0 -3
  468. package/src/StoryCard/index.js +0 -3
  469. package/src/Table/index.js +0 -20
  470. package/src/TermsAndConditions/index.js +0 -1
  471. package/src/Testimonial/index.js +0 -3
  472. package/src/Toast/index.js +0 -3
  473. package/src/Video/index.js +0 -3
  474. package/src/VideoPicker/index.js +0 -3
  475. package/src/WaffleGrid/index.js +0 -3
  476. package/src/WebVideo/index.js +0 -3
  477. package/src/shared/ConditionalWrapper/index.js +0 -3
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styled from 'styled-components'
4
- import ResponsiveImage from '../../ResponsiveImage'
4
+ import { ResponsiveImage } from '../../ResponsiveImage/ResponsiveImage'
5
5
 
6
6
  // Interactive overlay opacity constants
7
7
  const OVERLAY_OPACITY_PRESSED = 0.2
@@ -36,22 +36,22 @@ const selectFullBleedContentProps = ({
36
36
 
37
37
  const FullBleedContentContainer = styled.div(
38
38
  ({
39
- borderBottomLeftRadius,
40
- borderBottomRightRadius,
41
- borderTopLeftRadius,
42
- borderTopRightRadius,
43
- opacity,
44
- transform,
45
- hasCardState
39
+ $borderBottomLeftRadius,
40
+ $borderBottomRightRadius,
41
+ $borderTopLeftRadius,
42
+ $borderTopRightRadius,
43
+ $opacity,
44
+ $transform,
45
+ $hasCardState
46
46
  }) => ({
47
- position: hasCardState ? 'relative' : 'static',
47
+ position: $hasCardState ? 'relative' : 'static',
48
48
  overflow: 'hidden',
49
- borderBottomLeftRadius,
50
- borderBottomRightRadius,
51
- borderTopLeftRadius,
52
- borderTopRightRadius,
53
- opacity,
54
- transform,
49
+ borderBottomLeftRadius: $borderBottomLeftRadius,
50
+ borderBottomRightRadius: $borderBottomRightRadius,
51
+ borderTopLeftRadius: $borderTopLeftRadius,
52
+ borderTopRightRadius: $borderTopRightRadius,
53
+ opacity: $opacity,
54
+ transform: $transform,
55
55
  transition: 'opacity 0.2s ease, transform 0.2s ease'
56
56
  })
57
57
  )
@@ -74,7 +74,7 @@ const InteractiveOverlay = styled.div(({ overlayOpacity, overlayBackgroundColor
74
74
  * a number of sources corresponding to the `ResponsiveImage` component API,
75
75
  * or a custom component.
76
76
  */
77
- const FullBleedContent = ({ borderRadius, content, cardState, ...rest }) => {
77
+ export const FullBleedContent = ({ borderRadius, content, cardState, ...rest }) => {
78
78
  let overlayOpacity = OVERLAY_OPACITY_DEFAULT
79
79
  if (cardState) {
80
80
  if (cardState.pressed) {
@@ -84,8 +84,17 @@ const FullBleedContent = ({ borderRadius, content, cardState, ...rest }) => {
84
84
  }
85
85
  }
86
86
 
87
+ const borderRadiusStyles = borderRadius
88
+ ? {
89
+ $borderBottomLeftRadius: borderRadius.borderBottomLeftRadius,
90
+ $borderBottomRightRadius: borderRadius.borderBottomRightRadius,
91
+ $borderTopLeftRadius: borderRadius.borderTopLeftRadius,
92
+ $borderTopRightRadius: borderRadius.borderTopRightRadius
93
+ }
94
+ : {}
95
+
87
96
  return (
88
- <FullBleedContentContainer {...borderRadius} hasCardState={!!cardState}>
97
+ <FullBleedContentContainer {...borderRadiusStyles} $hasCardState={!!cardState}>
89
98
  {content ?? <ResponsiveImage {...selectFullBleedContentProps(rest)} />}
90
99
  {cardState && <InteractiveOverlay overlayOpacity={overlayOpacity} />}
91
100
  </FullBleedContentContainer>
@@ -130,5 +139,3 @@ FullBleedContent.propTypes = {
130
139
  smSrc: PropTypes.string,
131
140
  fallbackSrc: PropTypes.string
132
141
  }
133
-
134
- export default FullBleedContent
@@ -10,7 +10,7 @@
10
10
  * @param {boolean} hasFooter
11
11
  * @returns
12
12
  */
13
- const getFullBleedBorderRadius = (borderRadius, position, hasFooter = false) => {
13
+ export const getFullBleedBorderRadius = (borderRadius, position, hasFooter = false) => {
14
14
  const innerBorderRadius = {
15
15
  borderBottomLeftRadius: 0,
16
16
  borderBottomRightRadius: 0,
@@ -51,5 +51,3 @@ const getFullBleedBorderRadius = (borderRadius, position, hasFooter = false) =>
51
51
  }
52
52
  return innerBorderRadius
53
53
  }
54
-
55
- export default getFullBleedBorderRadius
@@ -1,9 +1,4 @@
1
- import FullBleedContent from './FullBleedContent'
1
+ export { FullBleedContent } from './FullBleedContent'
2
2
 
3
- export default FullBleedContent
4
-
5
- export { default as getFullBleedBorderRadius } from './getFullBleedBorderRadius'
6
- export {
7
- default as useFullBleedContentProps,
8
- getFullBleedPaddingSides
9
- } from './useFullBleedContentProps'
3
+ export { getFullBleedBorderRadius } from './getFullBleedBorderRadius'
4
+ export { useFullBleedContentProps, getFullBleedPaddingSides } from './useFullBleedContentProps'
@@ -39,7 +39,7 @@ const getContentStackAlign = (fullBleedContentAlign) => {
39
39
  * @param {string} position - 'top' | 'bottom' | 'left' | 'right' | 'none'
40
40
  * @returns {object} Boolean flags for which sides to apply padding
41
41
  */
42
- const getFullBleedPaddingSides = (position) => ({
42
+ export const getFullBleedPaddingSides = (position) => ({
43
43
  applyPaddingTop: position !== 'bottom',
44
44
  applyPaddingBottom: position !== 'top',
45
45
  applyPaddingLeft: position !== 'right',
@@ -53,7 +53,7 @@ const getFullBleedPaddingSides = (position) => ({
53
53
  * @param {object} [fullBleedContent] - a set of valid proptypes for FullBleedContent
54
54
  * @returns
55
55
  */
56
- const useFullBleedContentProps = (fullBleedContent) => {
56
+ export const useFullBleedContentProps = (fullBleedContent) => {
57
57
  const {
58
58
  align: fullBleedContentAlignProp,
59
59
  position: fullBleedContentPositionProp,
@@ -85,6 +85,3 @@ const useFullBleedContentProps = (fullBleedContent) => {
85
85
  fullBleedPaddingSides
86
86
  }
87
87
  }
88
-
89
- export { getFullBleedPaddingSides }
90
- export default useFullBleedContentProps
@@ -23,15 +23,15 @@ const ButtonContent = styled.div({
23
23
  alignItems: 'center',
24
24
  width: 64,
25
25
  height: 64,
26
- background: ({ buttonContentBackground }) => buttonContentBackground ?? 'none',
26
+ background: ({ $buttonContentBackground }) => $buttonContentBackground ?? 'none',
27
27
  borderRadius: '100%',
28
28
  transition: 'background 0.2s ease-in-out',
29
29
  [`${ButtonContainer}:hover &`]: {
30
- background: ({ buttonContentChildrenBackground }) => buttonContentChildrenBackground
30
+ background: ({ $buttonContentChildrenBackground }) => $buttonContentChildrenBackground
31
31
  }
32
32
  })
33
33
 
34
- const SplashButton = ({ copy, tokens, variant, videoLength }) => {
34
+ export const SplashButton = ({ copy, tokens, variant, videoLength }) => {
35
35
  const { buttonContentChildrenBackground } = useThemeTokens('SplashButton', tokens, variant, {
36
36
  hover: true
37
37
  })
@@ -45,8 +45,8 @@ const SplashButton = ({ copy, tokens, variant, videoLength }) => {
45
45
  return (
46
46
  <ButtonContainer aria-label={ariaLabel}>
47
47
  <ButtonContent
48
- {...themeTokens}
49
- buttonContentChildrenBackground={buttonContentChildrenBackground}
48
+ $buttonContentBackground={themeTokens.buttonContentBackground}
49
+ $buttonContentChildrenBackground={buttonContentChildrenBackground}
50
50
  >
51
51
  <PlayIcon size={27} color={playIconColor} />
52
52
  </ButtonContent>
@@ -60,5 +60,3 @@ SplashButton.propTypes = {
60
60
  variant: PropTypes.object,
61
61
  copy: PropTypes.oneOf(['en', 'fr'])
62
62
  }
63
-
64
- export default SplashButton
@@ -15,22 +15,22 @@ const ButtonContainer = styled.button({
15
15
  })
16
16
 
17
17
  const ButtonContent = styled.div({
18
- background: ({ buttonBackground }) => buttonBackground,
19
- border: ({ buttonBorderColor }) => `1px solid ${buttonBorderColor}`,
20
- borderRadius: ({ buttonRadius }) => `${buttonRadius}px`,
18
+ background: ({ $buttonBackground }) => $buttonBackground,
19
+ border: ({ $buttonBorderColor }) => `1px solid ${$buttonBorderColor}`,
20
+ borderRadius: ({ $buttonRadius }) => `${$buttonRadius}px`,
21
21
  position: 'absolute',
22
- left: ({ buttonLeftPosition }) => `${buttonLeftPosition}px`,
23
- bottom: ({ buttonBottomPosition }) => `${buttonBottomPosition}px`,
22
+ left: ({ $buttonLeftPosition }) => `${$buttonLeftPosition}px`,
23
+ bottom: ({ $buttonBottomPosition }) => `${$buttonBottomPosition}px`,
24
24
  boxSizing: 'border-box',
25
25
  display: 'flex',
26
26
  alignItems: 'center',
27
- minHeight: ({ buttonMinHeight }) => `${buttonMinHeight}px`,
28
- paddingRight: ({ buttonPaddingLeft }) => `${buttonPaddingLeft}px`,
29
- paddingLeft: ({ buttonPaddingRight }) => `${buttonPaddingRight}px`,
27
+ minHeight: ({ $buttonMinHeight }) => `${$buttonMinHeight}px`,
28
+ paddingRight: ({ $buttonPaddingLeft }) => `${$buttonPaddingLeft}px`,
29
+ paddingLeft: ({ $buttonPaddingRight }) => `${$buttonPaddingRight}px`,
30
30
  transition: 'background 0.2s ease-in-out',
31
31
 
32
32
  [`${ButtonContainer}:hover &`]: {
33
- background: ({ buttonContentChildrenBackground }) => buttonContentChildrenBackground
33
+ background: ({ $buttonContentChildrenBackground }) => $buttonContentChildrenBackground
34
34
  }
35
35
  })
36
36
 
@@ -40,7 +40,7 @@ const PlayIconContainer = styled.div({
40
40
  alignItems: 'center',
41
41
  width: 32,
42
42
  height: 32,
43
- background: ({ playIconContainerBackground }) => playIconContainerBackground ?? 'none',
43
+ background: ({ $playIconContainerBackground }) => $playIconContainerBackground ?? 'none',
44
44
  borderRadius: '100%',
45
45
  transition: 'background 0.2s ease-in-out'
46
46
  })
@@ -49,13 +49,15 @@ const DetailsContainer = styled.div({
49
49
  display: 'flex',
50
50
  flexDirection: 'column',
51
51
  alignItems: 'flex-start',
52
- paddingLeft: ({ detailsContainerPadding }) => `${detailsContainerPadding}px`
52
+ paddingLeft: ({ $detailsContainerPadding }) => `${$detailsContainerPadding}px`
53
53
  })
54
54
 
55
55
  const selectPlayIconContainerTokens = ({ playIconContainerBackground }) => ({
56
- playIconContainerBackground
56
+ $playIconContainerBackground: playIconContainerBackground
57
+ })
58
+ const selectDetailsContainerTokens = ({ detailsContainerPadding }) => ({
59
+ $detailsContainerPadding: detailsContainerPadding
57
60
  })
58
- const selectDetailsContainerTokens = ({ detailsContainerPadding }) => ({ detailsContainerPadding })
59
61
  const selectButtonContentTokens = ({
60
62
  buttonBackground,
61
63
  buttonBorderColor,
@@ -66,14 +68,14 @@ const selectButtonContentTokens = ({
66
68
  buttonPaddingLeft,
67
69
  buttonPaddingRight
68
70
  }) => ({
69
- buttonBackground,
70
- buttonBorderColor,
71
- buttonRadius,
72
- buttonLeftPosition,
73
- buttonBottomPosition,
74
- buttonMinHeight,
75
- buttonPaddingLeft,
76
- buttonPaddingRight
71
+ $buttonBackground: buttonBackground,
72
+ $buttonBorderColor: buttonBorderColor,
73
+ $buttonRadius: buttonRadius,
74
+ $buttonLeftPosition: buttonLeftPosition,
75
+ $buttonBottomPosition: buttonBottomPosition,
76
+ $buttonMinHeight: buttonMinHeight,
77
+ $buttonPaddingLeft: buttonPaddingLeft,
78
+ $buttonPaddingRight: buttonPaddingRight
77
79
  })
78
80
 
79
81
  const getLabelTokens = ({ labelFontName: fontName, labelFontWeight: fontWeight }) => ({
@@ -81,7 +83,7 @@ const getLabelTokens = ({ labelFontName: fontName, labelFontWeight: fontWeight }
81
83
  fontWeight
82
84
  })
83
85
 
84
- const SplashButtonWithDetails = ({ label, tokens, variant, copy, videoLength }) => {
86
+ export const SplashButtonWithDetails = ({ label, tokens, variant, copy, videoLength }) => {
85
87
  const { buttonContentChildrenBackground } = useThemeTokens(
86
88
  'SplashButtonWithDetails',
87
89
  tokens,
@@ -100,7 +102,7 @@ const SplashButtonWithDetails = ({ label, tokens, variant, copy, videoLength })
100
102
  <ButtonContainer aria-label={ariaLabel}>
101
103
  <ButtonContent
102
104
  {...selectButtonContentTokens(themeTokens)}
103
- buttonContentChildrenBackground={buttonContentChildrenBackground}
105
+ $buttonContentChildrenBackground={buttonContentChildrenBackground}
104
106
  >
105
107
  <PlayIconContainer {...selectPlayIconContainerTokens(themeTokens)}>
106
108
  <PlayIcon size={13} color={playIconColor} />
@@ -130,5 +132,3 @@ SplashButtonWithDetails.propTypes = {
130
132
  videoLength: PropTypes.number,
131
133
  copy: PropTypes.oneOf(['en', 'fr'])
132
134
  }
133
-
134
- export default SplashButtonWithDetails
@@ -3,15 +3,15 @@ import PropTypes from 'prop-types'
3
3
  import { selectSystemProps, useViewport } from '@telus-uds/components-base'
4
4
  import styled from 'styled-components'
5
5
  import { viewports } from '@telus-uds/system-constants'
6
- import SplashButton from './SplashButton/SplashButton'
7
- import SplashButtonWithDetails from './SplashButtonWithDetails/SplashButtonWithDetails'
8
- import videoText from '../../Video/videoText'
6
+ import { SplashButton } from './SplashButton/SplashButton'
7
+ import { SplashButtonWithDetails } from './SplashButtonWithDetails/SplashButtonWithDetails'
8
+ import { videoText } from '../../Video/videoText'
9
9
  import { htmlAttrs } from '../../utils'
10
10
 
11
11
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
12
12
 
13
- const SplashBackground = styled.div(({ videoPoster }) => ({
14
- backgroundImage: `url(${videoPoster})`,
13
+ const SplashBackground = styled.div(({ $videoPoster }) => ({
14
+ backgroundImage: `url(${$videoPoster})`,
15
15
  backgroundSize: 'cover',
16
16
  backgroundPosition: 'center',
17
17
  position: 'absolute',
@@ -21,14 +21,14 @@ const SplashBackground = styled.div(({ videoPoster }) => ({
21
21
  cursor: 'pointer'
22
22
  }))
23
23
 
24
- const VideoSplash = ({ poster, videoLength, simpleMode, copy = 'en', onClick, ...rest }) => {
24
+ export const VideoSplash = ({ poster, videoLength, simpleMode, copy = 'en', onClick, ...rest }) => {
25
25
  const viewport = useViewport()
26
26
 
27
27
  const showDetails = !simpleMode && viewport !== viewports.xs
28
28
  const label = videoText[copy].watch
29
29
 
30
30
  return (
31
- <SplashBackground {...selectProps(rest)} onClick={onClick} videoPoster={poster}>
31
+ <SplashBackground {...selectProps(rest)} onClick={onClick} $videoPoster={poster}>
32
32
  {showDetails ? (
33
33
  <SplashButtonWithDetails videoLength={videoLength} copy={copy} label={label} />
34
34
  ) : (
@@ -46,5 +46,3 @@ VideoSplash.propTypes = {
46
46
  simpleMode: PropTypes.bool,
47
47
  copy: PropTypes.oneOf(['en', 'fr'])
48
48
  }
49
-
50
- export default VideoSplash
@@ -1,4 +1,4 @@
1
- import videoText from '../../Video/videoText'
1
+ import { videoText } from '../../Video/videoText'
2
2
 
3
3
  export const getTimestamp = (videoLength, copy) => {
4
4
  const minutes = Math.floor(videoLength / 60)
@@ -1,13 +1,13 @@
1
1
  import { htmlAttrs, contentfulProps } from '@telus-uds/components-base'
2
2
  import { warn, deprecate } from './logger'
3
3
  import { transformGradient } from './transforms'
4
- import useTypographyTheme from './useTypographyTheme'
5
- import media from './media'
6
- import ssrStyles from './ssr'
7
- import isElementFocusable from './isElementFocusable'
8
- import renderStructuredContent from './renderStructuredContent'
9
- import useOverlaidPosition from './useOverlaidPosition'
10
- import scrollToAnchor from './scrollToAnchor'
4
+ import { useTypographyTheme } from './useTypographyTheme'
5
+ import { media } from './media'
6
+ import { ssrStyles } from './ssr'
7
+ import { isElementFocusable } from './isElementFocusable'
8
+ import { renderStructuredContent } from './renderStructuredContent'
9
+ import { useOverlaidPosition } from './useOverlaidPosition'
10
+ import { scrollToAnchor } from './scrollToAnchor'
11
11
 
12
12
  export {
13
13
  deprecate,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Returns focusable elements inside of the Footnote
3
3
  */
4
- const isElementFocusable = (element) => {
4
+ export const isElementFocusable = (element) => {
5
5
  const focusableElements = `a[href], button, textarea, input, select, form, label, audio, video, source, track, canvas, rect, polygon, iframe[data-src], [tabindex]:not([tabindex="-1"]), [contenteditable]`
6
6
  return (
7
7
  element.matches(focusableElements) &&
@@ -9,5 +9,3 @@ const isElementFocusable = (element) => {
9
9
  !element.matches('[tabindex="-1"]')
10
10
  )
11
11
  }
12
-
13
- export default isElementFocusable
@@ -13,8 +13,3 @@ export const warn = (componentName, message) => {
13
13
 
14
14
  console.warn(`[Allium] ${componentName}: ${message}`)
15
15
  }
16
-
17
- export default {
18
- deprecate,
19
- warn
20
- }
@@ -1,6 +1,6 @@
1
1
  import { viewports } from '@telus-uds/system-constants'
2
2
 
3
- export default function media() {
3
+ export function media() {
4
4
  return {
5
5
  query: {},
6
6
  from(breakpoint) {
@@ -62,12 +62,10 @@ const generateBreaks = (parts) => {
62
62
  return partsWithBreaks
63
63
  }
64
64
 
65
- const renderStructuredContent = (content) => {
65
+ export const renderStructuredContent = (content) => {
66
66
  if (typeof content !== 'string') {
67
67
  return content
68
68
  }
69
69
 
70
70
  return generateBreaks(generateLinks(content))
71
71
  }
72
-
73
- export default renderStructuredContent
@@ -5,7 +5,7 @@
5
5
  * @param {Event} event - The event object associated with the click or navigation action.
6
6
  * @param {Function} onAfterScroll - A callback function to be executed after the scroll action is completed.
7
7
  */
8
- const scrollToAnchor = (href, event, onAfterScroll) => {
8
+ export const scrollToAnchor = (href, event, onAfterScroll) => {
9
9
  if (href?.startsWith('#')) {
10
10
  event.preventDefault()
11
11
  const target = document.getElementById(href.slice(1))
@@ -14,5 +14,3 @@ const scrollToAnchor = (href, event, onAfterScroll) => {
14
14
  onAfterScroll(event)
15
15
  }
16
16
  }
17
-
18
- export default scrollToAnchor
package/src/utils/ssr.js CHANGED
@@ -17,7 +17,7 @@ import { ssrStyles as baseSsrStyles } from '@telus-uds/components-base'
17
17
  * @param {boolean} [options.styleGetters]
18
18
  * @param {(ReactElement) => ReactElement} [options.collectStyles]
19
19
  */
20
- const ssrStyles = (
20
+ export const ssrStyles = (
21
21
  appName = 'Allium app',
22
22
  { styleGetters = [], collectStyles = (renderedApp) => renderedApp } = {},
23
23
  router = 'pages'
@@ -41,5 +41,3 @@ const ssrStyles = (
41
41
  collectStyles: (renderedApp) => collectStyles(sheet.collectStyles(renderedApp))
42
42
  })
43
43
  }
44
-
45
- export default ssrStyles
@@ -13,7 +13,7 @@ async function importTheme(componentName) {
13
13
  }
14
14
  }
15
15
 
16
- export default async function getTheme(componentName) {
16
+ export async function getTheme(componentName) {
17
17
  if (cachedTheme[componentName]) {
18
18
  return cachedTheme[componentName]
19
19
  }
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
3
3
 
4
4
  import { getTokensPropType, useThemeTokens } from '@telus-uds/components-base'
5
5
 
6
- const withClientTheme = (Component) => {
6
+ export const withClientTheme = (Component) => {
7
7
  const UdsStyledComponent = ({ tokens: tokenOverrides, variant, ...props }) => {
8
8
  const theme = useThemeTokens(Component.displayName, tokenOverrides, variant)
9
9
  return <Component theme={theme} {...props} />
@@ -16,5 +16,3 @@ const withClientTheme = (Component) => {
16
16
 
17
17
  return UdsStyledComponent
18
18
  }
19
-
20
- export default withClientTheme
@@ -2,9 +2,9 @@ import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import { getThemeTokens, getTokensPropType } from '@telus-uds/components-base/server'
4
4
 
5
- import getTheme from './get-theme-from-server'
5
+ import { getTheme } from './get-theme-from-server'
6
6
 
7
- const withServerTheme = (Component, componentName) => {
7
+ export const withServerTheme = (Component, componentName) => {
8
8
  const UdsStyledComponent = async ({ tokens: tokenOverrides, variant, ...props }) => {
9
9
  const componentTheme = await getTheme(componentName)
10
10
  const themeTokens = getThemeTokens(componentTheme, tokenOverrides, variant)
@@ -17,5 +17,3 @@ const withServerTheme = (Component, componentName) => {
17
17
 
18
18
  return UdsStyledComponent
19
19
  }
20
-
21
- export default withServerTheme
@@ -2,5 +2,3 @@ export const transformGradient = (gradient) =>
2
2
  `${gradient.type}-gradient(${gradient.angle}deg, ${gradient.stops[0].color} ${
3
3
  gradient.stops[0].stop * 100
4
4
  }%, ${gradient.stops[1].color} ${gradient.stops[1].stop * 100}%)`
5
-
6
- export default { transformGradient }
@@ -137,7 +137,7 @@ function getOverlaidPosition({
137
137
  * a small task because UDS's tooltip logic only really works for short text - it might be
138
138
  * better to use a third-party library).
139
139
  */
140
- const useOverlaidPosition = ({
140
+ export const useOverlaidPosition = ({
141
141
  isShown = false,
142
142
  offsets,
143
143
  // By default, align the overlaid target's `top` to the bottom of the source, and center horizontally.
@@ -230,5 +230,3 @@ const useOverlaidPosition = ({
230
230
  isReady
231
231
  }
232
232
  }
233
-
234
- export default useOverlaidPosition
@@ -1,6 +1,6 @@
1
1
  import { applyTextStyles, useTheme, useThemeTokens, useViewport } from '@telus-uds/components-base'
2
2
 
3
- const useTypographyTheme = (variant, tokens) => {
3
+ export const useTypographyTheme = (variant, tokens) => {
4
4
  const viewport = useViewport()
5
5
  const themeTokens = useThemeTokens('Typography', tokens, variant, { viewport })
6
6
  const { themeOptions } = useTheme()
@@ -10,5 +10,3 @@ const useTypographyTheme = (variant, tokens) => {
10
10
  })
11
11
  return { ...rnStyles, fontSize: `${fontSize}px`, lineHeight: `${lineHeight}px` }
12
12
  }
13
-
14
- export default useTypographyTheme
@@ -29,6 +29,4 @@ export interface AutocompleteProps extends AutocompleteCommonProps {
29
29
  noResults?: ReactNode
30
30
  }
31
31
 
32
- declare const Autocomplete: ComponentType<AutocompleteProps>
33
-
34
- export default Autocomplete
32
+ export declare const Autocomplete: ComponentType<AutocompleteProps>
package/types/Badge.d.ts CHANGED
@@ -6,6 +6,4 @@ export interface BadgeProps extends HTMLAttrs {
6
6
  variant?: Variant
7
7
  }
8
8
 
9
- declare const Badge: ComponentType<BadgeProps>
10
-
11
- export default Badge
9
+ export declare const Badge: ComponentType<BadgeProps>
@@ -20,6 +20,4 @@ export interface BaseProviderProps {
20
20
  children: React.ReactNode
21
21
  }
22
22
 
23
- declare const BaseProvider: ComponentType<BaseProviderProps>
24
-
25
- export default BaseProvider
23
+ export declare const BaseProvider: ComponentType<BaseProviderProps>
@@ -11,6 +11,4 @@ export interface BlockQuoteProps extends HTMLAttrs {
11
11
  linkRouterProps?: Record<string, any>
12
12
  }
13
13
 
14
- declare const BlockQuote: ComponentType<BlockQuoteProps>
15
-
16
- export default BlockQuote
14
+ export declare const BlockQuote: ComponentType<BlockQuoteProps>
package/types/Box.d.ts CHANGED
@@ -33,6 +33,4 @@ export interface BoxProps extends A11yProps, ViewProps {
33
33
  children: ReactNode
34
34
  }
35
35
 
36
- declare const Box: ComponentTypeWithForwardRef<BoxProps, any>
37
-
38
- export default Box
36
+ export declare const Box: ComponentTypeWithForwardRef<BoxProps, any>
@@ -6,6 +6,4 @@ interface BreadcrumbItemProps {
6
6
  current?: boolean
7
7
  }
8
8
 
9
- declare const BreadcrumbItem: ComponentType<BreadcrumbItemProps>
10
-
11
- export default BreadcrumbItem
9
+ export declare const BreadcrumbItem: ComponentType<BreadcrumbItemProps>
@@ -14,8 +14,6 @@ export interface BreadcrumbsProps extends HTMLAttrs {
14
14
  children?: ReactNode
15
15
  }
16
16
 
17
- declare const Breadcrumbs: ComponentType<BreadcrumbsProps> & {
18
- Item: typeof BreadcrumbItem
17
+ export declare const Breadcrumbs: ComponentType<BreadcrumbsProps> & {
18
+ BreadcrumbItem: typeof BreadcrumbItem
19
19
  }
20
-
21
- export default Breadcrumbs
@@ -10,6 +10,4 @@ export interface CalloutProps extends HTMLAttrs {
10
10
  tokens?: Tokens
11
11
  }
12
12
 
13
- declare const Callout: ComponentType<CalloutProps>
14
-
15
- export default Callout
13
+ export declare const Callout: ComponentType<CalloutProps>
package/types/Card.d.ts CHANGED
@@ -40,6 +40,4 @@ export interface CardProps extends HTMLAttrs {
40
40
  fullBleedContent?: FullBleedContent
41
41
  }
42
42
 
43
- declare const Card: ComponentType<CardProps>
44
-
45
- export default Card
43
+ export declare const Card: ComponentType<CardProps>
package/types/Cell.d.ts CHANGED
@@ -8,6 +8,4 @@ export interface CellProps extends HTMLAttrs {
8
8
  align: 'left' | 'center' | 'right'
9
9
  }
10
10
 
11
- declare const Cell: ComponentType<CellProps>
12
-
13
- export default Cell
11
+ export declare const Cell: ComponentType<CellProps>
@@ -54,6 +54,4 @@ export interface ControlBarProps extends HTMLAttrs {
54
54
  videoPlayerWidth: number
55
55
  }
56
56
 
57
- declare const ControlBar: ComponentType<ControlBarProps>
58
-
59
- export default ControlBar
57
+ export declare const ControlBar: ComponentType<ControlBarProps>
@@ -48,6 +48,4 @@ export interface CountdownProps extends HTMLAttrs {
48
48
  variant?: CountdownVariant
49
49
  }
50
50
 
51
- declare const Countdown: ComponentType<CountdownProps>
52
-
53
- export default Countdown
51
+ export declare const Countdown: ComponentType<CountdownProps>
@@ -18,6 +18,4 @@ export interface DatePickerProps extends HTMLAttrs {
18
18
  dateFormat?: string
19
19
  }
20
20
 
21
- declare const DatePicker: ComponentType<DatePickerProps>
22
-
23
- export default DatePicker
21
+ export declare const DatePicker: ComponentType<DatePickerProps>
@@ -36,6 +36,4 @@ export interface FileUploadProps {
36
36
  documentPicker?: Record<string, any>
37
37
  }
38
38
 
39
- declare const FileUpload: ComponentType<FileUploadProps>
40
-
41
- export default FileUpload
39
+ export declare const FileUpload: ComponentType<FileUploadProps>
@@ -16,6 +16,4 @@ export interface FootnoteProps extends HTMLAttrs {
16
16
  onClose: boolean
17
17
  }
18
18
 
19
- declare const Footnote: ComponentType<FootnoteProps>
20
-
21
- export default Footnote
19
+ export declare const Footnote: ComponentType<FootnoteProps>