@telus-uds/components-web 3.4.0 → 4.1.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 (373) hide show
  1. package/.eslintrc.cjs +7 -1
  2. package/CHANGELOG.md +38 -2
  3. package/jest.config.cjs +1 -1
  4. package/lib/cjs/Badge/Badge.js +128 -0
  5. package/lib/cjs/Badge/index.js +9 -0
  6. package/lib/cjs/BlockQuote/BlockQuote.js +256 -0
  7. package/lib/cjs/BlockQuote/index.js +9 -0
  8. package/lib/cjs/Breadcrumbs/Breadcrumbs.js +264 -0
  9. package/lib/cjs/Breadcrumbs/Item/Item.js +180 -0
  10. package/lib/cjs/Breadcrumbs/index.js +13 -0
  11. package/lib/cjs/Callout/Callout.js +141 -0
  12. package/lib/cjs/Callout/index.js +9 -0
  13. package/lib/cjs/Card/Card.js +257 -0
  14. package/lib/cjs/Card/CardContent.js +97 -0
  15. package/lib/cjs/Card/CardFooter.js +85 -0
  16. package/lib/cjs/Card/index.js +9 -0
  17. package/lib/cjs/Countdown/Countdown.js +268 -0
  18. package/lib/cjs/Countdown/Segment.js +108 -0
  19. package/lib/cjs/Countdown/constants.js +10 -0
  20. package/lib/cjs/Countdown/dictionary.js +28 -0
  21. package/lib/cjs/Countdown/index.js +9 -0
  22. package/lib/cjs/Countdown/types.js +31 -0
  23. package/lib/cjs/Countdown/useCountdown.js +32 -0
  24. package/lib/cjs/DatePicker/CalendarContainer.js +214 -0
  25. package/lib/cjs/DatePicker/DatePicker.js +525 -0
  26. package/lib/cjs/DatePicker/dictionary.js +125 -0
  27. package/lib/cjs/DatePicker/index.js +9 -0
  28. package/lib/cjs/DatePicker/reactDatesCss.js +9 -0
  29. package/lib/cjs/Disclaimer/Disclaimer.js +61 -0
  30. package/lib/cjs/Disclaimer/index.js +13 -0
  31. package/lib/cjs/Footnote/Footnote.js +637 -0
  32. package/lib/cjs/Footnote/FootnoteLink.js +125 -0
  33. package/lib/cjs/Footnote/dictionary.js +18 -0
  34. package/lib/cjs/Footnote/index.js +11 -0
  35. package/lib/cjs/IconButton/IconButton.js +62 -0
  36. package/lib/cjs/IconButton/index.js +9 -0
  37. package/lib/cjs/Image/Image.js +90 -0
  38. package/lib/cjs/Image/index.js +20 -0
  39. package/lib/cjs/Image/server.js +11 -0
  40. package/lib/cjs/List/List.js +8 -0
  41. package/lib/cjs/List/ListItem.js +34 -0
  42. package/lib/cjs/List/index.js +11 -0
  43. package/lib/cjs/NavigationBar/NavigationBar.js +282 -0
  44. package/lib/cjs/NavigationBar/NavigationItem.js +94 -0
  45. package/lib/cjs/NavigationBar/NavigationSubMenu.js +164 -0
  46. package/lib/cjs/NavigationBar/collapseItems.js +43 -0
  47. package/lib/cjs/NavigationBar/index.js +11 -0
  48. package/lib/cjs/NavigationBar/resolveItemSelection.js +22 -0
  49. package/lib/cjs/OptimizeImage/OptimizeImage.js +99 -0
  50. package/lib/cjs/OptimizeImage/index.js +9 -0
  51. package/lib/cjs/OptimizeImage/utils/getFallbackUrl.js +14 -0
  52. package/lib/cjs/OptimizeImage/utils/getImageUrls.js +19 -0
  53. package/lib/cjs/OptimizeImage/utils/getOptimizedUrl.js +24 -0
  54. package/lib/cjs/OptimizeImage/utils/hasWebpSupport.js +34 -0
  55. package/lib/cjs/OptimizeImage/utils/index.js +34 -0
  56. package/lib/cjs/OptimizeImage/utils/isSvgUrl.js +9 -0
  57. package/lib/cjs/OrderedList/Item.js +151 -0
  58. package/lib/cjs/OrderedList/ItemBase.js +34 -0
  59. package/lib/cjs/OrderedList/OrderedList.js +92 -0
  60. package/lib/cjs/OrderedList/OrderedListBase.js +52 -0
  61. package/lib/cjs/OrderedList/constants.js +8 -0
  62. package/lib/cjs/OrderedList/index.js +11 -0
  63. package/lib/cjs/Paragraph/Paragraph.js +97 -0
  64. package/lib/cjs/Paragraph/index.js +9 -0
  65. package/lib/cjs/PreviewCard/AuthorDate.js +63 -0
  66. package/lib/cjs/PreviewCard/PreviewCard.js +215 -0
  67. package/lib/cjs/PreviewCard/index.js +9 -0
  68. package/lib/cjs/PriceLockup/PriceLockup.js +398 -0
  69. package/lib/cjs/PriceLockup/dictionary.js +18 -0
  70. package/lib/cjs/PriceLockup/index.js +9 -0
  71. package/lib/cjs/PriceLockup/tokens.js +66 -0
  72. package/lib/cjs/Progress/ProgressBar.js +99 -0
  73. package/lib/cjs/Progress/index.js +11 -0
  74. package/lib/cjs/QuantitySelector/QuantitySelector.js +267 -0
  75. package/lib/cjs/QuantitySelector/SideButton.js +77 -0
  76. package/lib/cjs/QuantitySelector/dictionary.js +32 -0
  77. package/lib/cjs/QuantitySelector/index.js +9 -0
  78. package/lib/cjs/QuantitySelector/styles.js +16 -0
  79. package/lib/cjs/ResponsiveImage/ResponsiveImage.js +107 -0
  80. package/lib/cjs/ResponsiveImage/index.js +9 -0
  81. package/lib/cjs/Ribbon/Ribbon.js +222 -0
  82. package/lib/cjs/Ribbon/index.js +9 -0
  83. package/lib/cjs/SkeletonProvider/SkeletonImage.js +45 -0
  84. package/lib/cjs/SkeletonProvider/SkeletonProvider.js +63 -0
  85. package/lib/cjs/SkeletonProvider/SkeletonTypography.js +44 -0
  86. package/lib/cjs/SkeletonProvider/index.js +9 -0
  87. package/lib/cjs/Span/Span.js +79 -0
  88. package/lib/cjs/Span/index.js +9 -0
  89. package/lib/cjs/Spinner/Spinner.js +221 -0
  90. package/lib/cjs/Spinner/SpinnerContent.js +100 -0
  91. package/lib/cjs/Spinner/constants.js +10 -0
  92. package/lib/cjs/Spinner/index.js +9 -0
  93. package/lib/cjs/StoryCard/StoryCard.js +219 -0
  94. package/lib/cjs/StoryCard/index.js +9 -0
  95. package/lib/cjs/Table/Body.js +24 -0
  96. package/lib/cjs/Table/Cell.js +196 -0
  97. package/lib/cjs/Table/Header.js +32 -0
  98. package/lib/cjs/Table/Row.js +74 -0
  99. package/lib/cjs/Table/SubHeading.js +30 -0
  100. package/lib/cjs/Table/Table.js +124 -0
  101. package/lib/cjs/Table/index.js +19 -0
  102. package/lib/cjs/TermsAndConditions/ExpandCollapse.js +160 -0
  103. package/lib/cjs/TermsAndConditions/TermsAndConditions.js +283 -0
  104. package/lib/cjs/TermsAndConditions/dictionary.js +22 -0
  105. package/lib/cjs/TermsAndConditions/index.js +13 -0
  106. package/lib/cjs/Testimonial/Testimonial.js +240 -0
  107. package/lib/cjs/Testimonial/index.js +9 -0
  108. package/lib/cjs/Toast/Toast.js +165 -0
  109. package/lib/cjs/Toast/index.js +9 -0
  110. package/lib/cjs/Video/ControlBar/ControlBar.js +294 -0
  111. package/lib/cjs/Video/ControlBar/Controls/VideoButton/VideoButton.js +76 -0
  112. package/lib/cjs/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +169 -0
  113. package/lib/cjs/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +211 -0
  114. package/lib/cjs/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +197 -0
  115. package/lib/cjs/Video/MiddleControlButton/MiddleControlButton.js +78 -0
  116. package/lib/cjs/Video/Video.js +964 -0
  117. package/lib/cjs/Video/index.js +9 -0
  118. package/lib/cjs/Video/videoText.js +61 -0
  119. package/lib/cjs/VideoPicker/VideoPicker.js +197 -0
  120. package/lib/cjs/VideoPicker/VideoPickerPlayer.js +54 -0
  121. package/lib/cjs/VideoPicker/VideoPickerThumbnail.js +223 -0
  122. package/lib/cjs/VideoPicker/VideoSlider.js +88 -0
  123. package/lib/cjs/VideoPicker/index.js +9 -0
  124. package/lib/cjs/VideoPicker/videoPropType.js +17 -0
  125. package/lib/cjs/WaffleGrid/WaffleGrid.js +164 -0
  126. package/lib/cjs/WaffleGrid/index.js +9 -0
  127. package/lib/cjs/WebVideo/WebVideo.js +197 -0
  128. package/lib/cjs/WebVideo/index.js +9 -0
  129. package/lib/cjs/WebVideo/utils/index.js +57 -0
  130. package/lib/cjs/baseExports.js +438 -0
  131. package/lib/cjs/index.js +317 -0
  132. package/lib/cjs/server.js +13 -0
  133. package/lib/cjs/shared/ConditionalWrapper/ConditionalWrapper.js +29 -0
  134. package/lib/cjs/shared/ConditionalWrapper/index.js +9 -0
  135. package/lib/cjs/shared/FullBleedContent/FullBleedContent.js +108 -0
  136. package/lib/cjs/shared/FullBleedContent/getFullBleedBorderRadius.js +61 -0
  137. package/lib/cjs/shared/FullBleedContent/index.js +23 -0
  138. package/lib/cjs/shared/FullBleedContent/useFullBleedContentProps.js +61 -0
  139. package/lib/cjs/shared/VideoSplash/SplashButton/SplashButton.js +91 -0
  140. package/lib/cjs/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +229 -0
  141. package/lib/cjs/shared/VideoSplash/VideoSplash.js +72 -0
  142. package/lib/cjs/shared/VideoSplash/helpers.js +32 -0
  143. package/lib/cjs/utils/index.js +88 -0
  144. package/lib/cjs/utils/isElementFocusable.js +14 -0
  145. package/lib/cjs/utils/logger.js +24 -0
  146. package/lib/cjs/utils/media.js +45 -0
  147. package/lib/cjs/utils/renderStructuredContent.js +71 -0
  148. package/lib/cjs/utils/scrollToAnchor.js +25 -0
  149. package/lib/cjs/utils/ssr.js +50 -0
  150. package/lib/cjs/utils/theming/get-theme-from-server.js +24 -0
  151. package/lib/cjs/utils/theming/with-client-theme.js +31 -0
  152. package/lib/cjs/utils/theming/with-server-theme.js +33 -0
  153. package/lib/cjs/utils/transforms.js +11 -0
  154. package/lib/cjs/utils/useOverlaidPosition.js +222 -0
  155. package/lib/cjs/utils/useTypographyTheme.js +30 -0
  156. package/lib/{Badge → esm/Badge}/Badge.js +11 -21
  157. package/lib/{BlockQuote → esm/BlockQuote}/BlockQuote.js +17 -31
  158. package/lib/{Breadcrumbs → esm/Breadcrumbs}/Breadcrumbs.js +6 -5
  159. package/lib/{Breadcrumbs → esm/Breadcrumbs}/Item/Item.js +10 -6
  160. package/lib/{Callout → esm/Callout}/Callout.js +6 -5
  161. package/lib/{Card → esm/Card}/Card.js +5 -5
  162. package/lib/{Card → esm/Card}/CardContent.js +6 -5
  163. package/lib/{Card → esm/Card}/CardFooter.js +6 -5
  164. package/lib/{Countdown → esm/Countdown}/Countdown.js +53 -32
  165. package/lib/{Countdown → esm/Countdown}/Segment.js +6 -6
  166. package/lib/{DatePicker → esm/DatePicker}/CalendarContainer.js +5 -5
  167. package/lib/{DatePicker → esm/DatePicker}/DatePicker.js +18 -12
  168. package/lib/esm/DatePicker/reactDatesCss.js +3 -0
  169. package/lib/{Disclaimer → esm/Disclaimer}/Disclaimer.js +6 -5
  170. package/lib/{Footnote → esm/Footnote}/Footnote.js +39 -15
  171. package/lib/{Footnote → esm/Footnote}/FootnoteLink.js +6 -5
  172. package/lib/{NavigationBar → esm/NavigationBar}/NavigationBar.js +6 -5
  173. package/lib/{NavigationBar → esm/NavigationBar}/NavigationItem.js +6 -5
  174. package/lib/{OrderedList → esm/OrderedList}/Item.js +10 -6
  175. package/lib/{OrderedList → esm/OrderedList}/ItemBase.js +5 -5
  176. package/lib/{OrderedList → esm/OrderedList}/OrderedList.js +6 -5
  177. package/lib/{OrderedList → esm/OrderedList}/OrderedListBase.js +5 -5
  178. package/lib/{Paragraph → esm/Paragraph}/Paragraph.js +8 -16
  179. package/lib/{PreviewCard → esm/PreviewCard}/PreviewCard.js +10 -7
  180. package/lib/{PriceLockup → esm/PriceLockup}/PriceLockup.js +103 -71
  181. package/lib/esm/PriceLockup/dictionary.js +12 -0
  182. package/lib/{Progress → esm/Progress}/ProgressBar.js +6 -6
  183. package/lib/esm/QuantitySelector/styles.js +9 -0
  184. package/lib/{Ribbon → esm/Ribbon}/Ribbon.js +31 -57
  185. package/lib/{Span → esm/Span}/Span.js +7 -6
  186. package/lib/{Spinner → esm/Spinner}/Spinner.js +18 -8
  187. package/lib/{Spinner → esm/Spinner}/SpinnerContent.js +6 -5
  188. package/lib/{StoryCard → esm/StoryCard}/StoryCard.js +10 -7
  189. package/lib/{Table → esm/Table}/Cell.js +25 -45
  190. package/lib/esm/Table/Row.js +67 -0
  191. package/lib/{Table → esm/Table}/Table.js +16 -17
  192. package/lib/{TermsAndConditions → esm/TermsAndConditions}/ExpandCollapse.js +13 -7
  193. package/lib/{TermsAndConditions → esm/TermsAndConditions}/TermsAndConditions.js +22 -9
  194. package/lib/{Testimonial → esm/Testimonial}/Testimonial.js +26 -10
  195. package/lib/{Toast → esm/Toast}/Toast.js +13 -64
  196. package/lib/{Video → esm/Video}/ControlBar/ControlBar.js +18 -8
  197. package/lib/{Video → esm/Video}/ControlBar/Controls/VideoButton/VideoButton.js +6 -5
  198. package/lib/{Video → esm/Video}/ControlBar/Controls/VideoMenu/VideoMenu.js +14 -7
  199. package/lib/{Video → esm/Video}/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +14 -7
  200. package/lib/{Video → esm/Video}/ControlBar/Controls/VolumeSlider/VolumeSlider.js +10 -6
  201. package/lib/{Video → esm/Video}/MiddleControlButton/MiddleControlButton.js +6 -5
  202. package/lib/{Video → esm/Video}/Video.js +26 -10
  203. package/lib/{VideoPicker → esm/VideoPicker}/VideoPicker.js +20 -44
  204. package/lib/{VideoPicker → esm/VideoPicker}/VideoPickerThumbnail.js +18 -52
  205. package/lib/{WaffleGrid → esm/WaffleGrid}/WaffleGrid.js +14 -7
  206. package/lib/{WebVideo → esm/WebVideo}/WebVideo.js +14 -9
  207. package/lib/{index.js → esm/index.js} +1 -1
  208. package/lib/{shared → esm/shared}/FullBleedContent/FullBleedContent.js +5 -5
  209. package/lib/{shared → esm/shared}/VideoSplash/SplashButton/SplashButton.js +9 -6
  210. package/lib/{shared → esm/shared}/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +17 -8
  211. package/lib/{shared → esm/shared}/VideoSplash/VideoSplash.js +6 -5
  212. package/lib/{utils → esm/utils}/index.js +1 -2
  213. package/lib/{utils → esm/utils}/ssr.js +1 -4
  214. package/package.json +17 -16
  215. package/src/Badge/Badge.jsx +2 -3
  216. package/src/BlockQuote/BlockQuote.jsx +2 -3
  217. package/src/Breadcrumbs/Breadcrumbs.jsx +2 -3
  218. package/src/Breadcrumbs/Item/Item.jsx +2 -3
  219. package/src/Callout/Callout.jsx +2 -4
  220. package/src/Card/Card.jsx +1 -3
  221. package/src/Card/CardContent.jsx +2 -3
  222. package/src/Card/CardFooter.jsx +2 -3
  223. package/src/Countdown/Countdown.jsx +62 -36
  224. package/src/Countdown/Segment.jsx +1 -3
  225. package/src/DatePicker/CalendarContainer.jsx +1 -3
  226. package/src/DatePicker/DatePicker.jsx +2 -3
  227. package/src/DatePicker/reactDatesCss.js +1 -3
  228. package/src/Disclaimer/Disclaimer.jsx +2 -3
  229. package/src/Footnote/Footnote.jsx +2 -10
  230. package/src/Footnote/FootnoteLink.jsx +2 -3
  231. package/src/NavigationBar/NavigationBar.jsx +2 -3
  232. package/src/NavigationBar/NavigationItem.jsx +2 -3
  233. package/src/OrderedList/Item.jsx +2 -3
  234. package/src/OrderedList/ItemBase.jsx +1 -3
  235. package/src/OrderedList/OrderedList.jsx +2 -3
  236. package/src/OrderedList/OrderedListBase.jsx +1 -3
  237. package/src/Paragraph/Paragraph.jsx +2 -4
  238. package/src/PreviewCard/PreviewCard.jsx +1 -3
  239. package/src/PriceLockup/PriceLockup.jsx +59 -10
  240. package/src/PriceLockup/dictionary.js +12 -0
  241. package/src/Progress/ProgressBar.jsx +1 -3
  242. package/src/QuantitySelector/styles.js +1 -3
  243. package/src/Ribbon/Ribbon.jsx +2 -3
  244. package/src/Span/Span.jsx +2 -4
  245. package/src/Spinner/Spinner.jsx +2 -3
  246. package/src/Spinner/SpinnerContent.jsx +2 -3
  247. package/src/StoryCard/StoryCard.jsx +1 -3
  248. package/src/Table/Cell.jsx +17 -5
  249. package/src/Table/Row.jsx +27 -3
  250. package/src/Table/Table.jsx +14 -5
  251. package/src/TermsAndConditions/ExpandCollapse.jsx +1 -3
  252. package/src/TermsAndConditions/TermsAndConditions.jsx +2 -3
  253. package/src/Testimonial/Testimonial.jsx +2 -3
  254. package/src/Toast/Toast.jsx +2 -3
  255. package/src/Video/ControlBar/ControlBar.jsx +2 -4
  256. package/src/Video/ControlBar/Controls/VideoButton/VideoButton.jsx +2 -4
  257. package/src/Video/ControlBar/Controls/VideoMenu/VideoMenu.jsx +2 -4
  258. package/src/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.jsx +2 -4
  259. package/src/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.jsx +2 -4
  260. package/src/Video/MiddleControlButton/MiddleControlButton.jsx +2 -4
  261. package/src/Video/Video.jsx +2 -4
  262. package/src/VideoPicker/VideoPicker.jsx +2 -4
  263. package/src/VideoPicker/VideoPickerThumbnail.jsx +1 -3
  264. package/src/WaffleGrid/WaffleGrid.jsx +2 -3
  265. package/src/WebVideo/WebVideo.jsx +3 -4
  266. package/src/index.js +1 -1
  267. package/src/shared/FullBleedContent/FullBleedContent.jsx +1 -3
  268. package/src/shared/VideoSplash/SplashButton/SplashButton.jsx +1 -3
  269. package/src/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.jsx +1 -4
  270. package/src/shared/VideoSplash/VideoSplash.jsx +2 -3
  271. package/src/utils/index.js +1 -3
  272. package/src/utils/ssr.js +1 -2
  273. package/types/Listbox.d.ts +67 -0
  274. package/types/index.d.ts +3 -0
  275. package/lib/DatePicker/reactDatesCss.js +0 -830
  276. package/lib/QuantitySelector/styles.js +0 -18
  277. package/lib/Table/Row.js +0 -19
  278. package/lib/utils/theming/styled-components.js +0 -26
  279. package/src/utils/theming/styled-components.js +0 -23
  280. /package/lib/{Badge → esm/Badge}/index.js +0 -0
  281. /package/lib/{BlockQuote → esm/BlockQuote}/index.js +0 -0
  282. /package/lib/{Breadcrumbs → esm/Breadcrumbs}/index.js +0 -0
  283. /package/lib/{Callout → esm/Callout}/index.js +0 -0
  284. /package/lib/{Card → esm/Card}/index.js +0 -0
  285. /package/lib/{Countdown → esm/Countdown}/constants.js +0 -0
  286. /package/lib/{Countdown → esm/Countdown}/dictionary.js +0 -0
  287. /package/lib/{Countdown → esm/Countdown}/index.js +0 -0
  288. /package/lib/{Countdown → esm/Countdown}/types.js +0 -0
  289. /package/lib/{Countdown → esm/Countdown}/useCountdown.js +0 -0
  290. /package/lib/{DatePicker → esm/DatePicker}/dictionary.js +0 -0
  291. /package/lib/{DatePicker → esm/DatePicker}/index.js +0 -0
  292. /package/lib/{Disclaimer → esm/Disclaimer}/index.js +0 -0
  293. /package/lib/{Footnote → esm/Footnote}/dictionary.js +0 -0
  294. /package/lib/{Footnote → esm/Footnote}/index.js +0 -0
  295. /package/lib/{IconButton → esm/IconButton}/IconButton.js +0 -0
  296. /package/lib/{IconButton → esm/IconButton}/index.js +0 -0
  297. /package/lib/{Image → esm/Image}/Image.js +0 -0
  298. /package/lib/{Image → esm/Image}/index.js +0 -0
  299. /package/lib/{Image → esm/Image}/server.js +0 -0
  300. /package/lib/{List → esm/List}/List.js +0 -0
  301. /package/lib/{List → esm/List}/ListItem.js +0 -0
  302. /package/lib/{List → esm/List}/index.js +0 -0
  303. /package/lib/{NavigationBar → esm/NavigationBar}/NavigationSubMenu.js +0 -0
  304. /package/lib/{NavigationBar → esm/NavigationBar}/collapseItems.js +0 -0
  305. /package/lib/{NavigationBar → esm/NavigationBar}/index.js +0 -0
  306. /package/lib/{NavigationBar → esm/NavigationBar}/resolveItemSelection.js +0 -0
  307. /package/lib/{OptimizeImage → esm/OptimizeImage}/OptimizeImage.js +0 -0
  308. /package/lib/{OptimizeImage → esm/OptimizeImage}/index.js +0 -0
  309. /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/getFallbackUrl.js +0 -0
  310. /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/getImageUrls.js +0 -0
  311. /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/getOptimizedUrl.js +0 -0
  312. /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/hasWebpSupport.js +0 -0
  313. /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/index.js +0 -0
  314. /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/isSvgUrl.js +0 -0
  315. /package/lib/{OrderedList → esm/OrderedList}/constants.js +0 -0
  316. /package/lib/{OrderedList → esm/OrderedList}/index.js +0 -0
  317. /package/lib/{Paragraph → esm/Paragraph}/index.js +0 -0
  318. /package/lib/{PreviewCard → esm/PreviewCard}/AuthorDate.js +0 -0
  319. /package/lib/{PreviewCard → esm/PreviewCard}/index.js +0 -0
  320. /package/lib/{PriceLockup → esm/PriceLockup}/index.js +0 -0
  321. /package/lib/{PriceLockup → esm/PriceLockup}/tokens.js +0 -0
  322. /package/lib/{Progress → esm/Progress}/index.js +0 -0
  323. /package/lib/{QuantitySelector → esm/QuantitySelector}/QuantitySelector.js +0 -0
  324. /package/lib/{QuantitySelector → esm/QuantitySelector}/SideButton.js +0 -0
  325. /package/lib/{QuantitySelector → esm/QuantitySelector}/dictionary.js +0 -0
  326. /package/lib/{QuantitySelector → esm/QuantitySelector}/index.js +0 -0
  327. /package/lib/{ResponsiveImage → esm/ResponsiveImage}/ResponsiveImage.js +0 -0
  328. /package/lib/{ResponsiveImage → esm/ResponsiveImage}/index.js +0 -0
  329. /package/lib/{Ribbon → esm/Ribbon}/index.js +0 -0
  330. /package/lib/{SkeletonProvider → esm/SkeletonProvider}/SkeletonImage.js +0 -0
  331. /package/lib/{SkeletonProvider → esm/SkeletonProvider}/SkeletonProvider.js +0 -0
  332. /package/lib/{SkeletonProvider → esm/SkeletonProvider}/SkeletonTypography.js +0 -0
  333. /package/lib/{SkeletonProvider → esm/SkeletonProvider}/index.js +0 -0
  334. /package/lib/{Span → esm/Span}/index.js +0 -0
  335. /package/lib/{Spinner → esm/Spinner}/constants.js +0 -0
  336. /package/lib/{Spinner → esm/Spinner}/index.js +0 -0
  337. /package/lib/{StoryCard → esm/StoryCard}/index.js +0 -0
  338. /package/lib/{Table → esm/Table}/Body.js +0 -0
  339. /package/lib/{Table → esm/Table}/Header.js +0 -0
  340. /package/lib/{Table → esm/Table}/SubHeading.js +0 -0
  341. /package/lib/{Table → esm/Table}/index.js +0 -0
  342. /package/lib/{TermsAndConditions → esm/TermsAndConditions}/dictionary.js +0 -0
  343. /package/lib/{TermsAndConditions → esm/TermsAndConditions}/index.js +0 -0
  344. /package/lib/{Testimonial → esm/Testimonial}/index.js +0 -0
  345. /package/lib/{Toast → esm/Toast}/index.js +0 -0
  346. /package/lib/{Video → esm/Video}/index.js +0 -0
  347. /package/lib/{Video → esm/Video}/videoText.js +0 -0
  348. /package/lib/{VideoPicker → esm/VideoPicker}/VideoPickerPlayer.js +0 -0
  349. /package/lib/{VideoPicker → esm/VideoPicker}/VideoSlider.js +0 -0
  350. /package/lib/{VideoPicker → esm/VideoPicker}/index.js +0 -0
  351. /package/lib/{VideoPicker → esm/VideoPicker}/videoPropType.js +0 -0
  352. /package/lib/{WaffleGrid → esm/WaffleGrid}/index.js +0 -0
  353. /package/lib/{WebVideo → esm/WebVideo}/index.js +0 -0
  354. /package/lib/{WebVideo → esm/WebVideo}/utils/index.js +0 -0
  355. /package/lib/{baseExports.js → esm/baseExports.js} +0 -0
  356. /package/lib/{server.js → esm/server.js} +0 -0
  357. /package/lib/{shared → esm/shared}/ConditionalWrapper/ConditionalWrapper.js +0 -0
  358. /package/lib/{shared → esm/shared}/ConditionalWrapper/index.js +0 -0
  359. /package/lib/{shared → esm/shared}/FullBleedContent/getFullBleedBorderRadius.js +0 -0
  360. /package/lib/{shared → esm/shared}/FullBleedContent/index.js +0 -0
  361. /package/lib/{shared → esm/shared}/FullBleedContent/useFullBleedContentProps.js +0 -0
  362. /package/lib/{shared → esm/shared}/VideoSplash/helpers.js +0 -0
  363. /package/lib/{utils → esm/utils}/isElementFocusable.js +0 -0
  364. /package/lib/{utils → esm/utils}/logger.js +0 -0
  365. /package/lib/{utils → esm/utils}/media.js +0 -0
  366. /package/lib/{utils → esm/utils}/renderStructuredContent.js +0 -0
  367. /package/lib/{utils → esm/utils}/scrollToAnchor.js +0 -0
  368. /package/lib/{utils → esm/utils}/theming/get-theme-from-server.js +0 -0
  369. /package/lib/{utils → esm/utils}/theming/with-client-theme.js +0 -0
  370. /package/lib/{utils → esm/utils}/theming/with-server-theme.js +0 -0
  371. /package/lib/{utils → esm/utils}/transforms.js +0 -0
  372. /package/lib/{utils → esm/utils}/useOverlaidPosition.js +0 -0
  373. /package/lib/{utils → esm/utils}/useTypographyTheme.js +0 -0
@@ -1,20 +1,19 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { getTokensPropType, selectSystemProps } from '@telus-uds/components-base';
4
- import { htmlAttrs, useTypographyTheme, styledComponents } from '../utils';
4
+ import styled from 'styled-components';
5
+ import { htmlAttrs, useTypographyTheme } from '../utils';
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
6
- const {
7
- styled
8
- } = styledComponents;
9
7
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
10
- const StyledParagraph = styled.p`
11
- ${_ref => {
8
+ const StyledParagraph = /*#__PURE__*/styled.p.withConfig({
9
+ displayName: "Paragraph__StyledParagraph",
10
+ componentId: "components-web__sc-1bg9r8p-0"
11
+ })(["", " ", " &:first-child{margin-block-start:0em;}&:last-child{margin-block-end:0em;}"], _ref => {
12
12
  let {
13
13
  align
14
14
  } = _ref;
15
15
  return align ? `text-align: ${align};` : '';
16
- }}
17
- ${_ref2 => {
16
+ }, _ref2 => {
18
17
  let {
19
18
  linesBetween
20
19
  } = _ref2;
@@ -22,14 +21,7 @@ const StyledParagraph = styled.p`
22
21
  margin-block-start: ${linesBetween}em;
23
22
  margin-block-end: ${linesBetween}em;
24
23
  `;
25
- }}
26
- &:first-child {
27
- margin-block-start: 0em;
28
- }
29
- &:last-child {
30
- margin-block-end: 0em;
31
- }
32
- `;
24
+ });
33
25
 
34
26
  /**
35
27
  * Block text as an HTML ```<p>``` element.
@@ -2,20 +2,20 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import omit from 'lodash.omit';
4
4
  import { Box, getThemeTokens, hrefAttrsProp, PressableCardBase, selectSystemProps, Spacer, StackView, Typography, a11yProps, focusHandlerProps, viewProps, withLinkRouter, useTheme, getTokensPropType } from '@telus-uds/components-base';
5
- import { styledComponents } from '../utils';
5
+ import styled from 'styled-components';
6
6
  import FullBleedContent, { getFullBleedBorderRadius, useFullBleedContentProps } from '../shared/FullBleedContent';
7
7
  import AuthorDate from './AuthorDate';
8
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
9
- const {
10
- styled
11
- } = styledComponents;
12
8
 
13
9
  // Passes React Native-oriented system props through UDS PressableCardBase
10
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
14
11
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, focusHandlerProps, viewProps]);
15
12
 
16
13
  // Stop changes to the card's inner border width causing the size and
17
14
  // apparent position of the full bleed image to change.
18
- const FullBleedOffsetOuter = styled.div(_ref => {
15
+ const FullBleedOffsetOuter = /*#__PURE__*/styled.div.withConfig({
16
+ displayName: "PreviewCard__FullBleedOffsetOuter",
17
+ componentId: "components-web__sc-1yfz4de-0"
18
+ })(_ref => {
19
19
  let {
20
20
  borderOffset
21
21
  } = _ref;
@@ -24,7 +24,10 @@ const FullBleedOffsetOuter = styled.div(_ref => {
24
24
  marginTop: borderOffset * 2
25
25
  };
26
26
  });
27
- const FullBleedOffsetInner = styled.div(_ref2 => {
27
+ const FullBleedOffsetInner = /*#__PURE__*/styled.div.withConfig({
28
+ displayName: "PreviewCard__FullBleedOffsetInner",
29
+ componentId: "components-web__sc-1yfz4de-1"
30
+ })(_ref2 => {
28
31
  let {
29
32
  borderOffset
30
33
  } = _ref2;
@@ -1,131 +1,126 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { A11yText, Divider, selectSystemProps, Typography, useThemeTokens, useViewport, getTokensPropType } from '@telus-uds/components-base';
3
+ import { A11yText, Divider, selectSystemProps, Typography, useThemeTokens, useViewport, getTokensPropType, a11yProps } from '@telus-uds/components-base';
4
+ import styled from 'styled-components';
4
5
  import FootnoteLink from '../Footnote/FootnoteLink';
5
6
  import getTypographyTokens from './tokens';
6
- import { htmlAttrs, warn, styledComponents } from '../utils';
7
+ import { htmlAttrs, warn } from '../utils';
8
+ import defaultDictionary from './dictionary';
7
9
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
8
- const {
9
- styled
10
- } = styledComponents;
11
- const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
12
- const PriceLockupContainer = styled.div`
13
- align-items: ${_ref => {
10
+ const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs, a11yProps]);
11
+ const PriceLockupContainer = /*#__PURE__*/styled.div.withConfig({
12
+ displayName: "PriceLockup__PriceLockupContainer",
13
+ componentId: "components-web__sc-1x6duay-0"
14
+ })(["align-items:", ";display:flex;flex-direction:column;width:fit-content;"], _ref => {
14
15
  let {
15
16
  alignItemsText
16
17
  } = _ref;
17
18
  return alignItemsText;
18
- }};
19
- display: flex;
20
- flex-direction: column;
21
- width: fit-content;
22
- `;
23
- const PriceContainer = styled.div`
24
- display: flex;
25
- margin-bottom: ${_ref2 => {
19
+ });
20
+ const PriceContainer = /*#__PURE__*/styled.div.attrs({
21
+ 'aria-hidden': 'true'
22
+ }).withConfig({
23
+ displayName: "PriceLockup__PriceContainer",
24
+ componentId: "components-web__sc-1x6duay-1"
25
+ })(["display:flex;margin-bottom:", ";"], _ref2 => {
26
26
  let {
27
27
  priceMarginBottom
28
28
  } = _ref2;
29
29
  return priceMarginBottom;
30
- }};
31
- `;
32
- const FootnoteContainer = styled.div`
33
- display: flex;
34
- margin-top: ${_ref3 => {
30
+ });
31
+ const FootnoteContainer = /*#__PURE__*/styled.div.withConfig({
32
+ displayName: "PriceLockup__FootnoteContainer",
33
+ componentId: "components-web__sc-1x6duay-2"
34
+ })(["display:flex;margin-top:", ";gap:", ";"], _ref3 => {
35
35
  let {
36
36
  footnoteMarginTop
37
37
  } = _ref3;
38
38
  return footnoteMarginTop;
39
- }};
40
- gap: ${_ref4 => {
39
+ }, _ref4 => {
41
40
  let {
42
41
  footnoteGap
43
42
  } = _ref4;
44
43
  return footnoteGap;
45
- }};
46
- `;
47
- const BottomTextContainer = styled.div`
48
- margin-top: ${_ref5 => {
44
+ });
45
+ const BottomTextContainer = /*#__PURE__*/styled.div.withConfig({
46
+ displayName: "PriceLockup__BottomTextContainer",
47
+ componentId: "components-web__sc-1x6duay-3"
48
+ })(["margin-top:", ";"], _ref5 => {
49
49
  let {
50
50
  bottomTextMarginTop
51
51
  } = _ref5;
52
52
  return bottomTextMarginTop;
53
- }};
54
- `;
55
- const BottomLinksContainer = styled.div`
56
- align-self: center;
57
- margin-left: ${_ref6 => {
53
+ });
54
+ const BottomLinksContainer = /*#__PURE__*/styled.div.withConfig({
55
+ displayName: "PriceLockup__BottomLinksContainer",
56
+ componentId: "components-web__sc-1x6duay-4"
57
+ })(["align-self:center;margin-left:", ";"], _ref6 => {
58
58
  let {
59
59
  bottomLinksMarginLeft
60
60
  } = _ref6;
61
61
  return bottomLinksMarginLeft;
62
- }};
63
- `;
64
- const TopTextContainer = styled.div`
65
- margin-bottom: ${_ref7 => {
62
+ });
63
+ const TopTextContainer = /*#__PURE__*/styled.div.attrs({
64
+ 'aria-hidden': 'true'
65
+ }).withConfig({
66
+ displayName: "PriceLockup__TopTextContainer",
67
+ componentId: "components-web__sc-1x6duay-5"
68
+ })(["margin-bottom:", ";"], _ref7 => {
66
69
  let {
67
70
  topTextMarginBottom
68
71
  } = _ref7;
69
72
  return topTextMarginBottom;
70
- }};
71
- `;
72
- const PriceTextContainer = styled.div`
73
- display: flex;
74
- flex-direction: ${_ref8 => {
73
+ });
74
+ const PriceTextContainer = /*#__PURE__*/styled.div.withConfig({
75
+ displayName: "PriceLockup__PriceTextContainer",
76
+ componentId: "components-web__sc-1x6duay-6"
77
+ })(["display:flex;flex-direction:", ";"], _ref8 => {
75
78
  let {
76
79
  ratePosition
77
80
  } = _ref8;
78
81
  return ratePosition === 'bottom' ? 'column' : 'row';
79
- }};
80
- `;
81
- const RateContainer = styled.div`
82
- display: flex;
83
- `;
84
- const RateTextContainer = styled.div`
85
- align-self: ${_ref9 => {
82
+ });
83
+ const RateContainer = /*#__PURE__*/styled.div.withConfig({
84
+ displayName: "PriceLockup__RateContainer",
85
+ componentId: "components-web__sc-1x6duay-7"
86
+ })(["display:flex;"]);
87
+ const RateTextContainer = /*#__PURE__*/styled.div.withConfig({
88
+ displayName: "PriceLockup__RateTextContainer",
89
+ componentId: "components-web__sc-1x6duay-8"
90
+ })(["align-self:", ";"], _ref9 => {
86
91
  let {
87
92
  ratePosition
88
93
  } = _ref9;
89
94
  return ratePosition === 'bottom' ? 'flex-start' : 'flex-end';
90
- }};
91
- `;
92
- const StrikeThroughContainer = styled.div`
93
- display: flex;
94
- position: relative;
95
- align-items: center;
96
- ::before {
97
- content: '';
98
- width: 100%;
99
- top: ${_ref10 => {
95
+ });
96
+ const StrikeThroughContainer = /*#__PURE__*/styled.div.withConfig({
97
+ displayName: "PriceLockup__StrikeThroughContainer",
98
+ componentId: "components-web__sc-1x6duay-9"
99
+ })(["display:flex;position:relative;align-items:center;::before{content:'';width:100%;top:", ";height:", ";background:", ";position:absolute;}"], _ref10 => {
100
100
  let {
101
101
  strikeThroughPosition
102
102
  } = _ref10;
103
103
  return `${strikeThroughPosition}px`;
104
- }};
105
- height: ${_ref11 => {
104
+ }, _ref11 => {
106
105
  let {
107
106
  strikeThroughHeight
108
107
  } = _ref11;
109
108
  return `${strikeThroughHeight}px`;
110
- }};
111
- background: ${_ref12 => {
109
+ }, _ref12 => {
112
110
  let {
113
111
  strikeThroughColor
114
112
  } = _ref12;
115
113
  return strikeThroughColor;
116
- }};
117
- position: absolute;
118
- }
119
- `;
120
- const TypographyContainer = styled.div`
121
- display: flex;
122
- padding-top: ${_ref13 => {
114
+ });
115
+ const TypographyContainer = /*#__PURE__*/styled.div.withConfig({
116
+ displayName: "PriceLockup__TypographyContainer",
117
+ componentId: "components-web__sc-1x6duay-10"
118
+ })(["display:flex;padding-top:", ";"], _ref13 => {
123
119
  let {
124
120
  paddingTop
125
121
  } = _ref13;
126
122
  return `${paddingTop || 0}px`;
127
- }};
128
- `;
123
+ });
129
124
  const selectFootnoteLinkStyles = _ref14 => {
130
125
  let {
131
126
  footnoteLinkColor,
@@ -168,6 +163,8 @@ const PriceLockup = /*#__PURE__*/React.forwardRef((_ref16, ref) => {
168
163
  a11yText,
169
164
  tokens: priceLockupTokens,
170
165
  variant = {},
166
+ copy = 'en',
167
+ dictionary = defaultDictionary,
171
168
  ...rest
172
169
  } = _ref16;
173
170
  const viewport = useViewport();
@@ -280,10 +277,28 @@ const PriceLockup = /*#__PURE__*/React.forwardRef((_ref16, ref) => {
280
277
  if (strikeThrough && !a11yText) {
281
278
  warn('PriceLockup', 'a11yText must be provided with strikethrough pricing');
282
279
  }
280
+ const getAriaContent = () => {
281
+ const {
282
+ dictionaryPrice = price,
283
+ priceWithCents,
284
+ rate
285
+ } = dictionary[copy];
286
+ let ariaLabel = hasCents ? priceWithCents.replace('%{amount}', amount).replace('%{cents}', cents).replace('%{currency}', currencySymbol) : dictionaryPrice.replace('%{amount}', amount).replace('%{currency}', currencySymbol);
287
+ if (!ariaLabel.includes(currencySymbol)) {
288
+ ariaLabel = `${ariaLabel} ${currencySymbol}`;
289
+ }
290
+ if (rateText) {
291
+ ariaLabel += ` ${rate.replace('%{rateText}', rateText.replace('/', ''))}`;
292
+ }
293
+ return ariaLabel;
294
+ };
295
+ const ariaLabel = selectProps(rest)['aria-label'] ?? getAriaContent();
283
296
  return /*#__PURE__*/_jsxs(PriceLockupContainer, {
284
297
  ...selectProps(rest),
285
298
  alignItemsText: alignItemsText,
286
299
  ref: ref,
300
+ role: "group",
301
+ "aria-label": ariaLabel,
287
302
  children: [topText && /*#__PURE__*/_jsx(TopTextContainer, {
288
303
  topTextMarginBottom: `${topTextMarginBottom}px`,
289
304
  children: renderTypography(topText, typographyTokens.topText)
@@ -297,6 +312,13 @@ const PriceLockup = /*#__PURE__*/React.forwardRef((_ref16, ref) => {
297
312
  });
298
313
  });
299
314
  PriceLockup.displayName = 'PriceLockup';
315
+
316
+ // If a language dictionary entry is provided, it must contain every key
317
+ const dictionaryContentShape = PropTypes.shape({
318
+ price: PropTypes.string.isRequired,
319
+ priceWithCents: PropTypes.string.isRequired,
320
+ rate: PropTypes.string.isRequired
321
+ });
300
322
  PriceLockup.propTypes = {
301
323
  ...selectedSystemPropTypes,
302
324
  /**
@@ -351,6 +373,16 @@ PriceLockup.propTypes = {
351
373
  * **Note:** a11yText will override strikethrough price, so it must include price (ie. "was 50 dollars per month")
352
374
  */
353
375
  a11yText: PropTypes.string,
376
+ /**
377
+ * Select English or French copy for the accessible label.
378
+ */
379
+ copy: PropTypes.oneOf(['en', 'fr']),
380
+ /* Custom dictionary containing the labels
381
+ */
382
+ dictionary: PropTypes.shape({
383
+ en: dictionaryContentShape,
384
+ fr: dictionaryContentShape
385
+ }),
354
386
  /**
355
387
  * `PriceLockup` tokens
356
388
  */
@@ -0,0 +1,12 @@
1
+ export default {
2
+ en: {
3
+ price: '%{amount} %{currency}',
4
+ priceWithCents: '%{amount} %{currency} and %{cents} cents',
5
+ rate: 'per %{rateText}'
6
+ },
7
+ fr: {
8
+ price: '%{amount} %{currency}',
9
+ priceWithCents: '%{amount} %{currency} et %{cents} centimes',
10
+ rate: 'par %{rateText}'
11
+ }
12
+ };
@@ -1,19 +1,19 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { getTokensPropType, Progress, selectSystemProps, useThemeTokens, a11yProps, viewProps, variantProp, applyShadowToken } from '@telus-uds/components-base';
4
- import { styledComponents } from '../utils';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- const {
7
- styled
8
- } = styledComponents;
4
+ import styled from 'styled-components';
9
5
 
10
6
  // Passes React Native-oriented system props through UDS Progress
7
+ import { jsx as _jsx } from "react/jsx-runtime";
11
8
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, viewProps]);
12
9
  const {
13
10
  Bar: ProgressBarBase
14
11
  } = Progress;
15
- const Gradient = styled.div.attrs({
12
+ const Gradient = /*#__PURE__*/styled.div.attrs({
16
13
  'data-testid': 'ProgressBar-Gradient'
14
+ }).withConfig({
15
+ displayName: "ProgressBar__Gradient",
16
+ componentId: "components-web__sc-1vmzyq5-0"
17
17
  })(_ref => {
18
18
  let {
19
19
  gradient: {
@@ -0,0 +1,9 @@
1
+ import styled from 'styled-components';
2
+ export const InputField = /*#__PURE__*/styled.div.withConfig({
3
+ displayName: "styles__InputField",
4
+ componentId: "components-web__sc-1lrz1xk-0"
5
+ })(["order:1;text-align:center;z-index:10;input{text-align:center;}"]);
6
+ export const InputWrapper = /*#__PURE__*/styled.div.withConfig({
7
+ displayName: "styles__InputWrapper",
8
+ componentId: "components-web__sc-1lrz1xk-1"
9
+ })(["text-align:start;display:flex;flex-direction:row;flex-wrap:nowrap;"]);
@@ -1,135 +1,109 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { selectSystemProps, Typography, useThemeTokens, getTokensPropType } from '@telus-uds/components-base';
4
- import { htmlAttrs, styledComponents } from '../utils';
4
+ import styled from 'styled-components';
5
+ import { htmlAttrs } from '../utils';
5
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- const {
7
- styled
8
- } = styledComponents;
9
7
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
10
- const RibbonWrapper = styled.div`
11
- width: fit-content;
12
- position: ${_ref => {
8
+ const RibbonWrapper = /*#__PURE__*/styled.div.withConfig({
9
+ displayName: "Ribbon__RibbonWrapper",
10
+ componentId: "components-web__sc-186270k-0"
11
+ })(["width:fit-content;position:", ";z-index:1;left:", ";top:", ";"], _ref => {
13
12
  let {
14
13
  left,
15
14
  top
16
15
  } = _ref;
17
16
  return left ?? top ? 'absolute' : 'relative';
18
- }};
19
- z-index: 1;
20
- left: ${_ref2 => {
17
+ }, _ref2 => {
21
18
  let {
22
19
  left
23
20
  } = _ref2;
24
21
  return left && `${left}px`;
25
- }};
26
- top: ${_ref3 => {
22
+ }, _ref3 => {
27
23
  let {
28
24
  top
29
25
  } = _ref3;
30
26
  return top && `${top}px`;
31
- }};
32
- `;
33
- const RibbonContainer = styled.div`
34
- display: flex;
35
- justify-content: center;
36
- background: ${_ref4 => {
27
+ });
28
+ const RibbonContainer = /*#__PURE__*/styled.div.withConfig({
29
+ displayName: "Ribbon__RibbonContainer",
30
+ componentId: "components-web__sc-186270k-1"
31
+ })(["display:flex;justify-content:center;background:", ";padding:", ";border-radius:", ";width:fit-content;box-shadow:", ";border-bottom-right-radius:", ";border-bottom-left-radius:", ";"], _ref4 => {
37
32
  let {
38
33
  backgroundColor
39
34
  } = _ref4;
40
35
  return backgroundColor;
41
- }};
42
- padding: ${_ref5 => {
36
+ }, _ref5 => {
43
37
  let {
44
38
  padding
45
39
  } = _ref5;
46
40
  return `${padding}`;
47
- }};
48
- border-radius: ${_ref6 => {
41
+ }, _ref6 => {
49
42
  let {
50
43
  borderRadius
51
44
  } = _ref6;
52
45
  return borderRadius;
53
- }};
54
- width: fit-content;
55
- box-shadow: ${_ref7 => {
46
+ }, _ref7 => {
56
47
  let {
57
48
  boxShadow,
58
49
  shouldWrap
59
50
  } = _ref7;
60
51
  return shouldWrap && boxShadow;
61
- }};
62
- border-bottom-right-radius: ${_ref8 => {
52
+ }, _ref8 => {
63
53
  let {
64
54
  borderRadiusBottomLeft
65
55
  } = _ref8;
66
56
  return borderRadiusBottomLeft;
67
- }};
68
- border-bottom-left-radius: ${_ref9 => {
57
+ }, _ref9 => {
69
58
  let {
70
59
  borderRadiusBottomRight
71
60
  } = _ref9;
72
61
  return borderRadiusBottomRight;
73
- }};
74
- `;
75
- const RibbonCurve = styled.div`
76
- background: ${_ref10 => {
62
+ });
63
+ const RibbonCurve = /*#__PURE__*/styled.div.withConfig({
64
+ displayName: "Ribbon__RibbonCurve",
65
+ componentId: "components-web__sc-186270k-2"
66
+ })(["background:", ";width:", ";height:", ";margin-top:-", ";border-radius:0 0 0 100%;position:relative;z-index:-1;overflow:hidden;&::after{content:'';border-bottom-left-radius:", ";position:absolute;height:", ";background:", ";width:", ";}"], _ref10 => {
77
67
  let {
78
68
  curveBackgroundColor
79
69
  } = _ref10;
80
70
  return curveBackgroundColor;
81
- }};
82
- width: ${_ref11 => {
71
+ }, _ref11 => {
83
72
  let {
84
73
  curveWidth
85
74
  } = _ref11;
86
75
  return curveWidth;
87
- }};
88
- height: ${_ref12 => {
76
+ }, _ref12 => {
89
77
  let {
90
78
  curveHeight
91
79
  } = _ref12;
92
80
  return curveHeight;
93
- }};
94
- margin-top: -${_ref13 => {
81
+ }, _ref13 => {
95
82
  let {
96
83
  curveMarginTop
97
84
  } = _ref13;
98
85
  return curveMarginTop;
99
- }};
100
- border-radius: 0 0 0 100%;
101
- position: relative;
102
- z-index: -1;
103
- overflow: hidden;
104
- &::after {
105
- content: '';
106
- border-bottom-left-radius: ${_ref14 => {
86
+ }, _ref14 => {
107
87
  let {
108
88
  curveAfterRadius
109
89
  } = _ref14;
110
90
  return curveAfterRadius;
111
- }};
112
- position: absolute;
113
- height: ${_ref15 => {
91
+ }, _ref15 => {
114
92
  let {
115
93
  curveAfterHeight
116
94
  } = _ref15;
117
95
  return curveAfterHeight;
118
- }};
119
- background: ${_ref16 => {
96
+ }, _ref16 => {
120
97
  let {
121
98
  curveAfterBackgroundColor
122
99
  } = _ref16;
123
100
  return curveAfterBackgroundColor;
124
- }};
125
- width: ${_ref17 => {
101
+ }, _ref17 => {
126
102
  let {
127
103
  curveAfterWidth
128
104
  } = _ref17;
129
105
  return curveAfterWidth;
130
- }};
131
- }
132
- `;
106
+ });
133
107
  const Ribbon = /*#__PURE__*/React.forwardRef((_ref18, ref) => {
134
108
  let {
135
109
  children,
@@ -1,18 +1,19 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { getTokensPropType, selectSystemProps } from '@telus-uds/components-base';
4
- import { htmlAttrs, useTypographyTheme, styledComponents } from '../utils';
4
+ import styled from 'styled-components';
5
+ import { htmlAttrs, useTypographyTheme } from '../utils';
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
6
- const {
7
- styled
8
- } = styledComponents;
9
7
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
10
- const StyledSpan = styled.span`${_ref => {
8
+ const StyledSpan = /*#__PURE__*/styled.span.withConfig({
9
+ displayName: "Span__StyledSpan",
10
+ componentId: "components-web__sc-o7sihn-0"
11
+ })(["", "};"], _ref => {
11
12
  let {
12
13
  flex
13
14
  } = _ref;
14
15
  return flex ? 'display: inline-flex' : '';
15
- }}};`;
16
+ });
16
17
 
17
18
  /**
18
19
  * Text as an HTML ```<span>``` element.
@@ -2,15 +2,16 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { selectSystemProps, useScrollBlocking, useThemeTokens, getTokensPropType } from '@telus-uds/components-base';
4
4
  import { Portal } from '@gorhom/portal';
5
+ import styled from 'styled-components';
5
6
  import SpinnerContent from './SpinnerContent';
6
- import { htmlAttrs, media, styledComponents } from '../utils';
7
+ import { htmlAttrs, media } from '../utils';
7
8
  import { BACKDROP_OPACITY, BACKDROP_Z_INDEX } from './constants';
8
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
- const {
10
- styled
11
- } = styledComponents;
12
10
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
13
- const SpinnerContainer = styled.div(_ref => {
11
+ const SpinnerContainer = /*#__PURE__*/styled.div.withConfig({
12
+ displayName: "Spinner__SpinnerContainer",
13
+ componentId: "components-web__sc-116rqck-0"
14
+ })(_ref => {
14
15
  let {
15
16
  inline,
16
17
  fullScreen
@@ -29,13 +30,19 @@ const SpinnerContainer = styled.div(_ref => {
29
30
  })
30
31
  };
31
32
  });
32
- const ContentOverlay = styled.div({
33
+ const ContentOverlay = /*#__PURE__*/styled.div.withConfig({
34
+ displayName: "Spinner__ContentOverlay",
35
+ componentId: "components-web__sc-116rqck-1"
36
+ })({
33
37
  position: 'absolute',
34
38
  width: '100%',
35
39
  height: '100%',
36
40
  zIndex: BACKDROP_Z_INDEX
37
41
  });
38
- const FullscreenOverlay = styled.div(_ref2 => {
42
+ const FullscreenOverlay = /*#__PURE__*/styled.div.withConfig({
43
+ displayName: "Spinner__FullscreenOverlay",
44
+ componentId: "components-web__sc-116rqck-2"
45
+ })(_ref2 => {
39
46
  let {
40
47
  fullScreenOverLayBackground
41
48
  } = _ref2;
@@ -49,7 +56,10 @@ const FullscreenOverlay = styled.div(_ref2 => {
49
56
  backgroundColor: fullScreenOverLayBackground
50
57
  };
51
58
  });
52
- const OpaqueContainer = styled.div({
59
+ const OpaqueContainer = /*#__PURE__*/styled.div.withConfig({
60
+ displayName: "Spinner__OpaqueContainer",
61
+ componentId: "components-web__sc-116rqck-3"
62
+ })({
53
63
  opacity: BACKDROP_OPACITY
54
64
  });
55
65
  const recursiveMap = (children, fn) => React.Children.map(children, child => {
@@ -1,14 +1,15 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { ActivityIndicator, StackView, Typography, selectSystemProps } from '@telus-uds/components-base';
4
- import { htmlAttrs, styledComponents } from '../utils';
4
+ import styled from 'styled-components';
5
+ import { htmlAttrs } from '../utils';
5
6
  import { BACKDROP_Z_INDEX, LARGE } from './constants';
6
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- const {
8
- styled
9
- } = styledComponents;
10
8
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
11
- const Container = styled.div(_ref => {
9
+ const Container = /*#__PURE__*/styled.div.withConfig({
10
+ displayName: "SpinnerContent__Container",
11
+ componentId: "components-web__sc-1c8bd8e-0"
12
+ })(_ref => {
12
13
  let {
13
14
  overlay
14
15
  } = _ref;