@telus-uds/components-web 3.3.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) 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/{NavigationBar → cjs/NavigationBar}/collapseItems.js +9 -4
  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 +356 -0
  69. package/lib/cjs/PriceLockup/index.js +9 -0
  70. package/lib/cjs/PriceLockup/tokens.js +66 -0
  71. package/lib/cjs/Progress/ProgressBar.js +99 -0
  72. package/lib/cjs/Progress/index.js +11 -0
  73. package/lib/cjs/QuantitySelector/QuantitySelector.js +267 -0
  74. package/lib/cjs/QuantitySelector/SideButton.js +77 -0
  75. package/lib/cjs/QuantitySelector/dictionary.js +32 -0
  76. package/lib/cjs/QuantitySelector/index.js +9 -0
  77. package/lib/cjs/QuantitySelector/styles.js +16 -0
  78. package/lib/cjs/ResponsiveImage/ResponsiveImage.js +107 -0
  79. package/lib/cjs/ResponsiveImage/index.js +9 -0
  80. package/lib/cjs/Ribbon/Ribbon.js +222 -0
  81. package/lib/cjs/Ribbon/index.js +9 -0
  82. package/lib/cjs/SkeletonProvider/SkeletonImage.js +45 -0
  83. package/lib/cjs/SkeletonProvider/SkeletonProvider.js +63 -0
  84. package/lib/cjs/SkeletonProvider/SkeletonTypography.js +44 -0
  85. package/lib/cjs/SkeletonProvider/index.js +9 -0
  86. package/lib/cjs/Span/Span.js +79 -0
  87. package/lib/cjs/Span/index.js +9 -0
  88. package/lib/cjs/Spinner/Spinner.js +221 -0
  89. package/lib/cjs/Spinner/SpinnerContent.js +100 -0
  90. package/lib/cjs/Spinner/constants.js +10 -0
  91. package/lib/cjs/Spinner/index.js +9 -0
  92. package/lib/cjs/StoryCard/StoryCard.js +219 -0
  93. package/lib/cjs/StoryCard/index.js +9 -0
  94. package/lib/cjs/Table/Body.js +24 -0
  95. package/lib/cjs/Table/Cell.js +187 -0
  96. package/lib/cjs/Table/Header.js +32 -0
  97. package/lib/cjs/Table/Row.js +41 -0
  98. package/lib/cjs/Table/SubHeading.js +30 -0
  99. package/lib/cjs/Table/Table.js +124 -0
  100. package/lib/cjs/Table/index.js +19 -0
  101. package/lib/cjs/TermsAndConditions/ExpandCollapse.js +160 -0
  102. package/lib/cjs/TermsAndConditions/TermsAndConditions.js +283 -0
  103. package/lib/cjs/TermsAndConditions/dictionary.js +22 -0
  104. package/lib/cjs/TermsAndConditions/index.js +13 -0
  105. package/lib/cjs/Testimonial/Testimonial.js +240 -0
  106. package/lib/cjs/Testimonial/index.js +9 -0
  107. package/lib/cjs/Toast/Toast.js +165 -0
  108. package/lib/cjs/Toast/index.js +9 -0
  109. package/lib/cjs/Video/ControlBar/ControlBar.js +294 -0
  110. package/lib/cjs/Video/ControlBar/Controls/VideoButton/VideoButton.js +76 -0
  111. package/lib/cjs/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +169 -0
  112. package/lib/cjs/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +211 -0
  113. package/lib/cjs/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +197 -0
  114. package/lib/cjs/Video/MiddleControlButton/MiddleControlButton.js +78 -0
  115. package/lib/cjs/Video/Video.js +964 -0
  116. package/lib/cjs/Video/index.js +9 -0
  117. package/lib/cjs/Video/videoText.js +61 -0
  118. package/lib/cjs/VideoPicker/VideoPicker.js +197 -0
  119. package/lib/cjs/VideoPicker/VideoPickerPlayer.js +54 -0
  120. package/lib/cjs/VideoPicker/VideoPickerThumbnail.js +223 -0
  121. package/lib/cjs/VideoPicker/VideoSlider.js +88 -0
  122. package/lib/cjs/VideoPicker/index.js +9 -0
  123. package/lib/cjs/VideoPicker/videoPropType.js +17 -0
  124. package/lib/cjs/WaffleGrid/WaffleGrid.js +164 -0
  125. package/lib/cjs/WaffleGrid/index.js +9 -0
  126. package/lib/cjs/WebVideo/WebVideo.js +197 -0
  127. package/lib/cjs/WebVideo/index.js +9 -0
  128. package/lib/cjs/WebVideo/utils/index.js +57 -0
  129. package/lib/cjs/baseExports.js +438 -0
  130. package/lib/cjs/index.js +317 -0
  131. package/lib/cjs/server.js +13 -0
  132. package/lib/cjs/shared/ConditionalWrapper/ConditionalWrapper.js +29 -0
  133. package/lib/cjs/shared/ConditionalWrapper/index.js +9 -0
  134. package/lib/cjs/shared/FullBleedContent/FullBleedContent.js +108 -0
  135. package/lib/cjs/shared/FullBleedContent/getFullBleedBorderRadius.js +61 -0
  136. package/lib/cjs/shared/FullBleedContent/index.js +23 -0
  137. package/lib/cjs/shared/FullBleedContent/useFullBleedContentProps.js +61 -0
  138. package/lib/cjs/shared/VideoSplash/SplashButton/SplashButton.js +91 -0
  139. package/lib/cjs/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +229 -0
  140. package/lib/cjs/shared/VideoSplash/VideoSplash.js +72 -0
  141. package/lib/cjs/shared/VideoSplash/helpers.js +32 -0
  142. package/lib/cjs/utils/index.js +88 -0
  143. package/lib/cjs/utils/isElementFocusable.js +14 -0
  144. package/lib/cjs/utils/logger.js +24 -0
  145. package/lib/cjs/utils/media.js +45 -0
  146. package/lib/cjs/utils/renderStructuredContent.js +71 -0
  147. package/lib/cjs/utils/scrollToAnchor.js +25 -0
  148. package/lib/cjs/utils/ssr.js +50 -0
  149. package/lib/cjs/utils/theming/get-theme-from-server.js +24 -0
  150. package/lib/cjs/utils/theming/with-client-theme.js +31 -0
  151. package/lib/cjs/utils/theming/with-server-theme.js +33 -0
  152. package/lib/cjs/utils/transforms.js +11 -0
  153. package/lib/cjs/utils/useOverlaidPosition.js +222 -0
  154. package/lib/cjs/utils/useTypographyTheme.js +30 -0
  155. package/lib/{Badge → esm/Badge}/Badge.js +11 -19
  156. package/lib/{BlockQuote → esm/BlockQuote}/BlockQuote.js +17 -31
  157. package/lib/{Breadcrumbs → esm/Breadcrumbs}/Breadcrumbs.js +6 -5
  158. package/lib/{Breadcrumbs → esm/Breadcrumbs}/Item/Item.js +10 -6
  159. package/lib/{Callout → esm/Callout}/Callout.js +6 -5
  160. package/lib/{Card → esm/Card}/Card.js +10 -10
  161. package/lib/{Card → esm/Card}/CardContent.js +6 -5
  162. package/lib/{Card → esm/Card}/CardFooter.js +6 -5
  163. package/lib/{Countdown → esm/Countdown}/Countdown.js +53 -32
  164. package/lib/{Countdown → esm/Countdown}/Segment.js +6 -6
  165. package/lib/{DatePicker → esm/DatePicker}/CalendarContainer.js +5 -5
  166. package/lib/{DatePicker → esm/DatePicker}/DatePicker.js +24 -20
  167. package/lib/esm/DatePicker/reactDatesCss.js +3 -0
  168. package/lib/{Disclaimer → esm/Disclaimer}/Disclaimer.js +6 -5
  169. package/lib/{Footnote → esm/Footnote}/Footnote.js +43 -22
  170. package/lib/{Footnote → esm/Footnote}/FootnoteLink.js +6 -5
  171. package/lib/{NavigationBar → esm/NavigationBar}/NavigationBar.js +19 -20
  172. package/lib/{NavigationBar → esm/NavigationBar}/NavigationItem.js +6 -5
  173. package/lib/{NavigationBar → esm/NavigationBar}/NavigationSubMenu.js +1 -2
  174. package/lib/esm/NavigationBar/collapseItems.js +37 -0
  175. package/lib/{NavigationBar → esm/NavigationBar}/resolveItemSelection.js +1 -1
  176. package/lib/{OrderedList → esm/OrderedList}/Item.js +10 -6
  177. package/lib/{OrderedList → esm/OrderedList}/ItemBase.js +5 -5
  178. package/lib/{OrderedList → esm/OrderedList}/OrderedList.js +8 -8
  179. package/lib/{OrderedList → esm/OrderedList}/OrderedListBase.js +5 -5
  180. package/lib/{Paragraph → esm/Paragraph}/Paragraph.js +8 -16
  181. package/lib/{PreviewCard → esm/PreviewCard}/PreviewCard.js +10 -7
  182. package/lib/{PriceLockup → esm/PriceLockup}/PriceLockup.js +59 -69
  183. package/lib/{Progress → esm/Progress}/ProgressBar.js +6 -6
  184. package/lib/esm/QuantitySelector/styles.js +9 -0
  185. package/lib/{Ribbon → esm/Ribbon}/Ribbon.js +31 -57
  186. package/lib/{SkeletonProvider → esm/SkeletonProvider}/SkeletonImage.js +3 -4
  187. package/lib/esm/SkeletonProvider/SkeletonTypography.js +37 -0
  188. package/lib/{Span → esm/Span}/Span.js +7 -6
  189. package/lib/{Spinner → esm/Spinner}/Spinner.js +18 -8
  190. package/lib/{Spinner → esm/Spinner}/SpinnerContent.js +6 -5
  191. package/lib/{StoryCard → esm/StoryCard}/StoryCard.js +10 -7
  192. package/lib/{Table → esm/Table}/Cell.js +16 -45
  193. package/lib/esm/Table/Row.js +34 -0
  194. package/lib/{Table → esm/Table}/Table.js +18 -20
  195. package/lib/{TermsAndConditions → esm/TermsAndConditions}/ExpandCollapse.js +15 -8
  196. package/lib/{TermsAndConditions → esm/TermsAndConditions}/TermsAndConditions.js +22 -9
  197. package/lib/{Testimonial → esm/Testimonial}/Testimonial.js +26 -10
  198. package/lib/{Toast → esm/Toast}/Toast.js +15 -67
  199. package/lib/{Video → esm/Video}/ControlBar/ControlBar.js +18 -8
  200. package/lib/{Video → esm/Video}/ControlBar/Controls/VideoButton/VideoButton.js +7 -7
  201. package/lib/{Video → esm/Video}/ControlBar/Controls/VideoMenu/VideoMenu.js +14 -7
  202. package/lib/{Video → esm/Video}/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +14 -7
  203. package/lib/{Video → esm/Video}/ControlBar/Controls/VolumeSlider/VolumeSlider.js +10 -6
  204. package/lib/{Video → esm/Video}/MiddleControlButton/MiddleControlButton.js +6 -5
  205. package/lib/{Video → esm/Video}/Video.js +28 -12
  206. package/lib/{VideoPicker → esm/VideoPicker}/VideoPicker.js +21 -46
  207. package/lib/{VideoPicker → esm/VideoPicker}/VideoPickerThumbnail.js +19 -54
  208. package/lib/{WaffleGrid → esm/WaffleGrid}/WaffleGrid.js +14 -7
  209. package/lib/{WebVideo → esm/WebVideo}/WebVideo.js +14 -9
  210. package/lib/{baseExports.js → esm/baseExports.js} +1 -1
  211. package/lib/{index.js → esm/index.js} +1 -2
  212. package/lib/{shared → esm/shared}/FullBleedContent/FullBleedContent.js +5 -5
  213. package/lib/{shared → esm/shared}/VideoSplash/SplashButton/SplashButton.js +9 -6
  214. package/lib/{shared → esm/shared}/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +17 -8
  215. package/lib/{shared → esm/shared}/VideoSplash/VideoSplash.js +6 -5
  216. package/lib/{utils → esm/utils}/index.js +1 -2
  217. package/lib/{utils → esm/utils}/scrollToAnchor.js +2 -2
  218. package/lib/{utils → esm/utils}/ssr.js +8 -4
  219. package/lib/{utils → esm/utils}/useOverlaidPosition.js +2 -4
  220. package/package.json +17 -16
  221. package/src/Badge/Badge.jsx +4 -3
  222. package/src/BlockQuote/BlockQuote.jsx +2 -3
  223. package/src/Breadcrumbs/Breadcrumbs.jsx +2 -3
  224. package/src/Breadcrumbs/Item/Item.jsx +2 -3
  225. package/src/Callout/Callout.jsx +2 -4
  226. package/src/Card/Card.jsx +1 -3
  227. package/src/Card/CardContent.jsx +2 -3
  228. package/src/Card/CardFooter.jsx +2 -3
  229. package/src/Countdown/Countdown.jsx +62 -36
  230. package/src/Countdown/Segment.jsx +1 -3
  231. package/src/DatePicker/CalendarContainer.jsx +1 -3
  232. package/src/DatePicker/DatePicker.jsx +2 -3
  233. package/src/DatePicker/reactDatesCss.js +1 -3
  234. package/src/Disclaimer/Disclaimer.jsx +2 -3
  235. package/src/Footnote/Footnote.jsx +2 -10
  236. package/src/Footnote/FootnoteLink.jsx +2 -3
  237. package/src/NavigationBar/NavigationBar.jsx +2 -3
  238. package/src/NavigationBar/NavigationItem.jsx +2 -3
  239. package/src/OrderedList/Item.jsx +2 -3
  240. package/src/OrderedList/ItemBase.jsx +1 -3
  241. package/src/OrderedList/OrderedList.jsx +2 -3
  242. package/src/OrderedList/OrderedListBase.jsx +1 -3
  243. package/src/Paragraph/Paragraph.jsx +2 -4
  244. package/src/PreviewCard/PreviewCard.jsx +1 -3
  245. package/src/PriceLockup/PriceLockup.jsx +2 -3
  246. package/src/Progress/ProgressBar.jsx +1 -3
  247. package/src/QuantitySelector/styles.js +1 -3
  248. package/src/Ribbon/Ribbon.jsx +2 -3
  249. package/src/Span/Span.jsx +2 -4
  250. package/src/Spinner/Spinner.jsx +2 -3
  251. package/src/Spinner/SpinnerContent.jsx +2 -3
  252. package/src/StoryCard/StoryCard.jsx +1 -3
  253. package/src/Table/Cell.jsx +4 -5
  254. package/src/Table/Row.jsx +13 -2
  255. package/src/Table/Table.jsx +14 -5
  256. package/src/TermsAndConditions/ExpandCollapse.jsx +6 -4
  257. package/src/TermsAndConditions/TermsAndConditions.jsx +2 -3
  258. package/src/Testimonial/Testimonial.jsx +2 -3
  259. package/src/Toast/Toast.jsx +2 -3
  260. package/src/Video/ControlBar/ControlBar.jsx +2 -4
  261. package/src/Video/ControlBar/Controls/VideoButton/VideoButton.jsx +2 -4
  262. package/src/Video/ControlBar/Controls/VideoMenu/VideoMenu.jsx +2 -4
  263. package/src/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.jsx +2 -4
  264. package/src/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.jsx +2 -4
  265. package/src/Video/MiddleControlButton/MiddleControlButton.jsx +2 -4
  266. package/src/Video/Video.jsx +2 -4
  267. package/src/VideoPicker/VideoPicker.jsx +2 -4
  268. package/src/VideoPicker/VideoPickerThumbnail.jsx +1 -3
  269. package/src/WaffleGrid/WaffleGrid.jsx +2 -3
  270. package/src/WebVideo/WebVideo.jsx +3 -4
  271. package/src/baseExports.js +1 -0
  272. package/src/index.js +1 -2
  273. package/src/shared/FullBleedContent/FullBleedContent.jsx +1 -3
  274. package/src/shared/VideoSplash/SplashButton/SplashButton.jsx +1 -3
  275. package/src/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.jsx +1 -4
  276. package/src/shared/VideoSplash/VideoSplash.jsx +2 -3
  277. package/src/utils/index.js +1 -3
  278. package/src/utils/ssr.js +10 -3
  279. package/types/Callout.d.ts +2 -1
  280. package/types/Tooltip.d.ts +1 -0
  281. package/lib/DatePicker/reactDatesCss.js +0 -830
  282. package/lib/ExpandCollapseMini/ExpandCollapseMini.js +0 -73
  283. package/lib/ExpandCollapseMini/ExpandCollapseMiniControl.js +0 -116
  284. package/lib/ExpandCollapseMini/index.js +0 -2
  285. package/lib/QuantitySelector/styles.js +0 -18
  286. package/lib/SkeletonProvider/SkeletonTypography.js +0 -38
  287. package/lib/Table/Row.js +0 -19
  288. package/lib/utils/theming/styled-components.js +0 -26
  289. package/src/ExpandCollapseMini/ExpandCollapseMini.jsx +0 -72
  290. package/src/ExpandCollapseMini/ExpandCollapseMiniControl.jsx +0 -104
  291. package/src/ExpandCollapseMini/index.js +0 -3
  292. package/src/utils/theming/styled-components.js +0 -23
  293. /package/lib/{Badge → esm/Badge}/index.js +0 -0
  294. /package/lib/{BlockQuote → esm/BlockQuote}/index.js +0 -0
  295. /package/lib/{Breadcrumbs → esm/Breadcrumbs}/index.js +0 -0
  296. /package/lib/{Callout → esm/Callout}/index.js +0 -0
  297. /package/lib/{Card → esm/Card}/index.js +0 -0
  298. /package/lib/{Countdown → esm/Countdown}/constants.js +0 -0
  299. /package/lib/{Countdown → esm/Countdown}/dictionary.js +0 -0
  300. /package/lib/{Countdown → esm/Countdown}/index.js +0 -0
  301. /package/lib/{Countdown → esm/Countdown}/types.js +0 -0
  302. /package/lib/{Countdown → esm/Countdown}/useCountdown.js +0 -0
  303. /package/lib/{DatePicker → esm/DatePicker}/dictionary.js +0 -0
  304. /package/lib/{DatePicker → esm/DatePicker}/index.js +0 -0
  305. /package/lib/{Disclaimer → esm/Disclaimer}/index.js +0 -0
  306. /package/lib/{Footnote → esm/Footnote}/dictionary.js +0 -0
  307. /package/lib/{Footnote → esm/Footnote}/index.js +0 -0
  308. /package/lib/{IconButton → esm/IconButton}/IconButton.js +0 -0
  309. /package/lib/{IconButton → esm/IconButton}/index.js +0 -0
  310. /package/lib/{Image → esm/Image}/Image.js +0 -0
  311. /package/lib/{Image → esm/Image}/index.js +0 -0
  312. /package/lib/{Image → esm/Image}/server.js +0 -0
  313. /package/lib/{List → esm/List}/List.js +0 -0
  314. /package/lib/{List → esm/List}/ListItem.js +0 -0
  315. /package/lib/{List → esm/List}/index.js +0 -0
  316. /package/lib/{NavigationBar → esm/NavigationBar}/index.js +0 -0
  317. /package/lib/{OptimizeImage → esm/OptimizeImage}/OptimizeImage.js +0 -0
  318. /package/lib/{OptimizeImage → esm/OptimizeImage}/index.js +0 -0
  319. /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/getFallbackUrl.js +0 -0
  320. /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/getImageUrls.js +0 -0
  321. /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/getOptimizedUrl.js +0 -0
  322. /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/hasWebpSupport.js +0 -0
  323. /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/index.js +0 -0
  324. /package/lib/{OptimizeImage → esm/OptimizeImage}/utils/isSvgUrl.js +0 -0
  325. /package/lib/{OrderedList → esm/OrderedList}/constants.js +0 -0
  326. /package/lib/{OrderedList → esm/OrderedList}/index.js +0 -0
  327. /package/lib/{Paragraph → esm/Paragraph}/index.js +0 -0
  328. /package/lib/{PreviewCard → esm/PreviewCard}/AuthorDate.js +0 -0
  329. /package/lib/{PreviewCard → esm/PreviewCard}/index.js +0 -0
  330. /package/lib/{PriceLockup → esm/PriceLockup}/index.js +0 -0
  331. /package/lib/{PriceLockup → esm/PriceLockup}/tokens.js +0 -0
  332. /package/lib/{Progress → esm/Progress}/index.js +0 -0
  333. /package/lib/{QuantitySelector → esm/QuantitySelector}/QuantitySelector.js +0 -0
  334. /package/lib/{QuantitySelector → esm/QuantitySelector}/SideButton.js +0 -0
  335. /package/lib/{QuantitySelector → esm/QuantitySelector}/dictionary.js +0 -0
  336. /package/lib/{QuantitySelector → esm/QuantitySelector}/index.js +0 -0
  337. /package/lib/{ResponsiveImage → esm/ResponsiveImage}/ResponsiveImage.js +0 -0
  338. /package/lib/{ResponsiveImage → esm/ResponsiveImage}/index.js +0 -0
  339. /package/lib/{Ribbon → esm/Ribbon}/index.js +0 -0
  340. /package/lib/{SkeletonProvider → esm/SkeletonProvider}/SkeletonProvider.js +0 -0
  341. /package/lib/{SkeletonProvider → esm/SkeletonProvider}/index.js +0 -0
  342. /package/lib/{Span → esm/Span}/index.js +0 -0
  343. /package/lib/{Spinner → esm/Spinner}/constants.js +0 -0
  344. /package/lib/{Spinner → esm/Spinner}/index.js +0 -0
  345. /package/lib/{StoryCard → esm/StoryCard}/index.js +0 -0
  346. /package/lib/{Table → esm/Table}/Body.js +0 -0
  347. /package/lib/{Table → esm/Table}/Header.js +0 -0
  348. /package/lib/{Table → esm/Table}/SubHeading.js +0 -0
  349. /package/lib/{Table → esm/Table}/index.js +0 -0
  350. /package/lib/{TermsAndConditions → esm/TermsAndConditions}/dictionary.js +0 -0
  351. /package/lib/{TermsAndConditions → esm/TermsAndConditions}/index.js +0 -0
  352. /package/lib/{Testimonial → esm/Testimonial}/index.js +0 -0
  353. /package/lib/{Toast → esm/Toast}/index.js +0 -0
  354. /package/lib/{Video → esm/Video}/index.js +0 -0
  355. /package/lib/{Video → esm/Video}/videoText.js +0 -0
  356. /package/lib/{VideoPicker → esm/VideoPicker}/VideoPickerPlayer.js +0 -0
  357. /package/lib/{VideoPicker → esm/VideoPicker}/VideoSlider.js +0 -0
  358. /package/lib/{VideoPicker → esm/VideoPicker}/index.js +0 -0
  359. /package/lib/{VideoPicker → esm/VideoPicker}/videoPropType.js +0 -0
  360. /package/lib/{WaffleGrid → esm/WaffleGrid}/index.js +0 -0
  361. /package/lib/{WebVideo → esm/WebVideo}/index.js +0 -0
  362. /package/lib/{WebVideo → esm/WebVideo}/utils/index.js +0 -0
  363. /package/lib/{server.js → esm/server.js} +0 -0
  364. /package/lib/{shared → esm/shared}/ConditionalWrapper/ConditionalWrapper.js +0 -0
  365. /package/lib/{shared → esm/shared}/ConditionalWrapper/index.js +0 -0
  366. /package/lib/{shared → esm/shared}/FullBleedContent/getFullBleedBorderRadius.js +0 -0
  367. /package/lib/{shared → esm/shared}/FullBleedContent/index.js +0 -0
  368. /package/lib/{shared → esm/shared}/FullBleedContent/useFullBleedContentProps.js +0 -0
  369. /package/lib/{shared → esm/shared}/VideoSplash/helpers.js +0 -0
  370. /package/lib/{utils → esm/utils}/isElementFocusable.js +0 -0
  371. /package/lib/{utils → esm/utils}/logger.js +0 -0
  372. /package/lib/{utils → esm/utils}/media.js +0 -0
  373. /package/lib/{utils → esm/utils}/renderStructuredContent.js +0 -0
  374. /package/lib/{utils → esm/utils}/theming/get-theme-from-server.js +0 -0
  375. /package/lib/{utils → esm/utils}/theming/with-client-theme.js +0 -0
  376. /package/lib/{utils → esm/utils}/theming/with-server-theme.js +0 -0
  377. /package/lib/{utils → esm/utils}/transforms.js +0 -0
  378. /package/lib/{utils → esm/utils}/useTypographyTheme.js +0 -0
package/src/Table/Row.jsx CHANGED
@@ -1,13 +1,24 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
 
4
+ import styled from 'styled-components'
5
+ import { useTableContext } from './Table'
6
+
7
+ const StyledTR = styled.tr`
8
+ &:hover {
9
+ background-color: ${({ rowHoverBackgroundColor }) => rowHoverBackgroundColor} !important;
10
+ }
11
+ `
12
+
4
13
  const Row = React.forwardRef(({ children }, ref) => {
14
+ const { themeTokens } = useTableContext()
15
+
5
16
  return (
6
- <tr ref={ref}>
17
+ <StyledTR ref={ref} rowHoverBackgroundColor={themeTokens?.rowHoverBackgroundColor}>
7
18
  {React.Children.map(children, (child, index) =>
8
19
  React.cloneElement(child, { isFirstInRow: index === 0 })
9
20
  )}
10
- </tr>
21
+ </StyledTR>
11
22
  )
12
23
  })
13
24
 
@@ -7,9 +7,8 @@ import {
7
7
  getTokensPropType
8
8
  } from '@telus-uds/components-base'
9
9
  import throttle from 'lodash.throttle'
10
- import { htmlAttrs, styledComponents } from '../utils'
11
-
12
- const { styled } = styledComponents
10
+ import styled from 'styled-components'
11
+ import { htmlAttrs } from '../utils'
13
12
 
14
13
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
15
14
 
@@ -52,7 +51,8 @@ const Table = ({
52
51
  variant,
53
52
  ...rest
54
53
  }) => {
55
- const { tablePaddingBottom, borderColor, borderWidth } = useThemeTokens('Table', tokens, variant)
54
+ const themeTokens = useThemeTokens('Table', tokens, variant)
55
+ const { tablePaddingBottom, borderColor, borderWidth } = themeTokens
56
56
  const containerRef = React.useRef()
57
57
  const tableRef = React.useRef()
58
58
 
@@ -88,7 +88,16 @@ const Table = ({
88
88
  isScrollable={isScrollable}
89
89
  tablePaddingBottom={tablePaddingBottom}
90
90
  >
91
- <TableContext.Provider value={{ text, isScrollable, tokens, spacing }}>
91
+ <TableContext.Provider
92
+ value={{
93
+ text,
94
+ isScrollable,
95
+ tokens,
96
+ spacing,
97
+ variant,
98
+ themeTokens
99
+ }}
100
+ >
92
101
  <StyledTable
93
102
  borderColor={borderColor}
94
103
  borderWidth={borderWidth}
@@ -5,9 +5,7 @@ import {
5
5
  IconButton,
6
6
  useThemeTokensCallback
7
7
  } from '@telus-uds/components-base'
8
- import { styledComponents } from '../utils'
9
-
10
- const { styled } = styledComponents
8
+ import styled from 'styled-components'
11
9
 
12
10
  const ExpandCollapseControl = styled.div({
13
11
  alignItems: 'center',
@@ -96,12 +94,16 @@ const ExpandCollapse = React.forwardRef(
96
94
  return (
97
95
  <ExpandCollapseControl ref={ref}>
98
96
  <ExpandCollapseIconContainer tokens={getTokens()}>
99
- {/* Can use `Icon` instead of `IconButton` but `Icon` does not have required stylistic variants */}
97
+ {/*
98
+ Can use `Icon` instead of `IconButton` but `Icon` does not have required stylistic variants
99
+ Setting `accessibilityRole` to `none` for `IconButton` to render as a `div` instead of `button` to avoid nested `buttons`
100
+ */}
100
101
  <IconButton
101
102
  variant={{ size: 'small' }}
102
103
  tokens={iconTokens}
103
104
  focusable={false}
104
105
  accessibilityLabel={label}
106
+ accessibilityRole="none"
105
107
  />
106
108
  </ExpandCollapseIconContainer>
107
109
  <ExpandCollapseTitle tokens={getTokens()}>
@@ -14,13 +14,12 @@ import {
14
14
  createMediaQueryStyles,
15
15
  StyleSheet
16
16
  } from '@telus-uds/components-base'
17
+ import styled from 'styled-components'
17
18
  import ExpandCollapse from './ExpandCollapse'
18
19
  import OrderedListBase from '../OrderedList/OrderedListBase'
19
- import { htmlAttrs, media, renderStructuredContent, styledComponents } from '../utils'
20
+ import { htmlAttrs, media, renderStructuredContent } from '../utils'
20
21
  import defaultDictionary from './dictionary'
21
22
 
22
- const { styled } = styledComponents
23
-
24
23
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
25
24
 
26
25
  const ContentContainer = styled.div(({ tokens }) => ({
@@ -8,10 +8,9 @@ import {
8
8
  useViewport,
9
9
  getTokensPropType
10
10
  } from '@telus-uds/components-base'
11
+ import styled from 'styled-components'
11
12
  import Image from '../Image'
12
- import { htmlAttrs, styledComponents } from '../utils'
13
-
14
- const { styled } = styledComponents
13
+ import { htmlAttrs } from '../utils'
15
14
 
16
15
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
17
16
 
@@ -10,9 +10,8 @@ import {
10
10
  useViewport,
11
11
  getTokensPropType
12
12
  } from '@telus-uds/components-base'
13
- import { htmlAttrs, styledComponents } from '../utils'
14
-
15
- const { styled, css, keyframes } = styledComponents
13
+ import styled, { css, keyframes } from 'styled-components'
14
+ import { htmlAttrs } from '../utils'
16
15
 
17
16
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
18
17
 
@@ -8,15 +8,13 @@ import {
8
8
  useViewport
9
9
  } from '@telus-uds/components-base'
10
10
 
11
+ import styled from 'styled-components'
11
12
  import VideoProgressBar from './Controls/VideoProgressBar/VideoProgressBar'
12
13
  import VolumeSlider from './Controls/VolumeSlider/VolumeSlider'
13
14
  import VideoButton from './Controls/VideoButton/VideoButton'
14
15
  import VideoMenu from './Controls/VideoMenu/VideoMenu'
15
-
16
16
  import videoText from '../videoText'
17
- import { htmlAttrs, styledComponents } from '../../utils'
18
-
19
- const { styled } = styledComponents
17
+ import { htmlAttrs } from '../../utils'
20
18
 
21
19
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
22
20
 
@@ -1,10 +1,8 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import { useThemeTokens, selectSystemProps } from '@telus-uds/components-base'
4
-
5
- import { htmlAttrs, styledComponents } from '../../../../utils'
6
-
7
- const { styled } = styledComponents
4
+ import styled from 'styled-components'
5
+ import { htmlAttrs } from '../../../../utils'
8
6
 
9
7
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
10
8
 
@@ -7,11 +7,9 @@ import {
7
7
  selectSystemProps,
8
8
  Icon
9
9
  } from '@telus-uds/components-base'
10
-
10
+ import styled from 'styled-components'
11
11
  import videoText from '../../../videoText'
12
- import { htmlAttrs, styledComponents } from '../../../../utils'
13
-
14
- const { styled } = styledComponents
12
+ import { htmlAttrs } from '../../../../utils'
15
13
 
16
14
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
17
15
 
@@ -1,11 +1,9 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import { Typography, useThemeTokens, selectSystemProps } from '@telus-uds/components-base'
4
-
4
+ import styled from 'styled-components'
5
5
  import videoText from '../../../videoText'
6
- import { htmlAttrs, styledComponents } from '../../../../utils'
7
-
8
- const { styled } = styledComponents
6
+ import { htmlAttrs } from '../../../../utils'
9
7
 
10
8
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
11
9
 
@@ -1,12 +1,10 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import { Icon, useThemeTokens, selectSystemProps } from '@telus-uds/components-base'
4
-
4
+ import styled from 'styled-components'
5
5
  import VideoButton from '../VideoButton/VideoButton'
6
6
  import videoText from '../../../videoText'
7
- import { htmlAttrs, styledComponents } from '../../../../utils'
8
-
9
- const { styled } = styledComponents
7
+ import { htmlAttrs } from '../../../../utils'
10
8
 
11
9
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
12
10
 
@@ -1,10 +1,8 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import { useThemeTokens, selectSystemProps } from '@telus-uds/components-base'
4
-
5
- import { htmlAttrs, styledComponents } from '../../utils'
6
-
7
- const { styled } = styledComponents
4
+ import styled from 'styled-components'
5
+ import { htmlAttrs } from '../../utils'
8
6
 
9
7
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
10
8
 
@@ -1,6 +1,7 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import fscreen from 'fscreen'
4
+ import styled from 'styled-components'
4
5
  import {
5
6
  useThemeTokens,
6
7
  selectSystemProps,
@@ -8,15 +9,12 @@ import {
8
9
  variantProp
9
10
  } from '@telus-uds/components-base'
10
11
  import Spinner from '../Spinner'
11
-
12
- import { warn, htmlAttrs, styledComponents } from '../utils'
12
+ import { warn, htmlAttrs } from '../utils'
13
13
  import VideoSplash from '../shared/VideoSplash/VideoSplash'
14
14
  import MiddleControlButton from './MiddleControlButton/MiddleControlButton'
15
15
  import ControlBar from './ControlBar/ControlBar'
16
16
  import videoText from './videoText'
17
17
 
18
- const { styled } = styledComponents
19
-
20
18
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
21
19
 
22
20
  // TODO: replace with the actual spinner component from UDS
@@ -8,14 +8,12 @@ import {
8
8
  useViewport,
9
9
  getTokensPropType
10
10
  } from '@telus-uds/components-base'
11
-
11
+ import styled, { css } from 'styled-components'
12
12
  import { VideoPropType } from './videoPropType'
13
13
  import VideoPickerThumbnail from './VideoPickerThumbnail'
14
14
  import VideoPickerPlayer from './VideoPickerPlayer'
15
15
  import VideoSlider from './VideoSlider'
16
- import { htmlAttrs, styledComponents } from '../utils'
17
-
18
- const { styled, css } = styledComponents
16
+ import { htmlAttrs } from '../utils'
19
17
 
20
18
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
21
19
 
@@ -9,13 +9,11 @@ import {
9
9
  horizontalScrollUtils,
10
10
  useThemeTokensCallback
11
11
  } from '@telus-uds/components-base'
12
- import { styledComponents } from '../utils'
12
+ import styled from 'styled-components'
13
13
  import { getTimestamp } from '../shared/VideoSplash/helpers'
14
14
  import { VideoPropType, RefPropType } from './videoPropType'
15
15
  import VideoSplash from '../shared/VideoSplash/VideoSplash'
16
16
 
17
- const { styled } = styledComponents
18
-
19
17
  const { getItemPositionLayoutHandler, itemPositionsPropType } = horizontalScrollUtils
20
18
 
21
19
  // Use a React Native (web) outer container so it can take an onLayout callback, to
@@ -11,12 +11,11 @@ import {
11
11
  Typography,
12
12
  getTokensPropType
13
13
  } from '@telus-uds/components-base'
14
+ import styled from 'styled-components'
14
15
  import OrderedListBase from '../OrderedList/OrderedListBase'
15
16
  import ItemBase from '../OrderedList/ItemBase'
16
17
  import Image from '../Image'
17
- import { htmlAttrs, styledComponents } from '../utils'
18
-
19
- const { styled } = styledComponents
18
+ import { htmlAttrs } from '../utils'
20
19
 
21
20
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
22
21
 
@@ -2,12 +2,11 @@ import { selectSystemProps } from '@telus-uds/components-base'
2
2
  import PropTypes from 'prop-types'
3
3
  import React from 'react'
4
4
  import YouTube from 'react-youtube'
5
+ import styled from 'styled-components'
5
6
  import VideoSplash from '../shared/VideoSplash/VideoSplash'
6
- import { htmlAttrs, styledComponents } from '../utils'
7
+ import { htmlAttrs } from '../utils'
7
8
  import { triggerInProgressVideoIntervals, YoutubePlayerState } from './utils'
8
9
 
9
- const { styled } = styledComponents
10
-
11
10
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
12
11
 
13
12
  const StyledPlayerContainer = styled.div({
@@ -16,7 +15,7 @@ const StyledPlayerContainer = styled.div({
16
15
  outline: 'none'
17
16
  })
18
17
 
19
- const StyledYoutubePlayer = styled((props) => <YouTube {...props} />)({
18
+ const StyledYoutubePlayer = styled(YouTube)({
20
19
  position: 'absolute',
21
20
  top: 0,
22
21
  left: 0,
@@ -28,6 +28,7 @@ export {
28
28
  Divider,
29
29
  DownloadApp,
30
30
  ExpandCollapse,
31
+ ExpandCollapseMini,
31
32
  Feedback,
32
33
  FlexGrid,
33
34
  FileUpload,
package/src/index.js CHANGED
@@ -9,7 +9,6 @@ export { default as Countdown } from './Countdown'
9
9
  export { default as DatePicker } from './DatePicker'
10
10
  export { default as Paragraph } from './Paragraph'
11
11
  export { default as Span } from './Span'
12
- export { default as ExpandCollapseMini } from './ExpandCollapseMini'
13
12
  export { default as Callout } from './Callout'
14
13
  export { default as PriceLockup } from './PriceLockup'
15
14
  export { default as Footnote } from './Footnote'
@@ -37,6 +36,6 @@ export { default as NavigationBar } from './NavigationBar'
37
36
  export { default as Progress } from './Progress'
38
37
  export { default as SkeletonProvider } from './SkeletonProvider'
39
38
 
40
- export { ssrStyles, styledComponents } from './utils'
39
+ export { ssrStyles } from './utils'
41
40
 
42
41
  export * from './baseExports'
@@ -1,10 +1,8 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
- import { styledComponents } from '../../utils'
3
+ import styled from 'styled-components'
4
4
  import ResponsiveImage from '../../ResponsiveImage'
5
5
 
6
- const { styled } = styledComponents
7
-
8
6
  const selectFullBleedContentProps = ({
9
7
  alt,
10
8
  height,
@@ -1,11 +1,9 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import { useThemeTokens } from '@telus-uds/components-base'
4
- import { styledComponents } from '../../../utils'
4
+ import styled from 'styled-components'
5
5
  import { getAriaLabel, getTimestamp } from '../helpers'
6
6
 
7
- const { styled } = styledComponents
8
-
9
7
  const ButtonContainer = styled.button({
10
8
  background: 'none',
11
9
  border: 0,
@@ -1,12 +1,9 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import { Typography, useThemeTokens } from '@telus-uds/components-base'
4
- import { styledComponents } from '../../../utils'
5
-
4
+ import styled from 'styled-components'
6
5
  import { getAriaLabel, getTimestamp } from '../helpers'
7
6
 
8
- const { styled } = styledComponents
9
-
10
7
  const ButtonContainer = styled.button({
11
8
  background: 'none',
12
9
  border: 0,
@@ -1,13 +1,12 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import { selectSystemProps, useViewport } from '@telus-uds/components-base'
4
+ import styled from 'styled-components'
4
5
  import { viewports } from '@telus-uds/system-constants'
5
6
  import SplashButton from './SplashButton/SplashButton'
6
7
  import SplashButtonWithDetails from './SplashButtonWithDetails/SplashButtonWithDetails'
7
8
  import videoText from '../../Video/videoText'
8
- import { htmlAttrs, styledComponents } from '../../utils'
9
-
10
- const { styled } = styledComponents
9
+ import { htmlAttrs } from '../../utils'
11
10
 
12
11
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs])
13
12
 
@@ -8,7 +8,6 @@ import isElementFocusable from './isElementFocusable'
8
8
  import renderStructuredContent from './renderStructuredContent'
9
9
  import useOverlaidPosition from './useOverlaidPosition'
10
10
  import scrollToAnchor from './scrollToAnchor'
11
- import styledComponents from './theming/styled-components'
12
11
 
13
12
  export {
14
13
  deprecate,
@@ -22,6 +21,5 @@ export {
22
21
  ssrStyles,
23
22
  isElementFocusable,
24
23
  useOverlaidPosition,
25
- scrollToAnchor,
26
- styledComponents
24
+ scrollToAnchor
27
25
  }
package/src/utils/ssr.js CHANGED
@@ -1,5 +1,5 @@
1
+ import { ServerStyleSheet } from 'styled-components'
1
2
  import { ssrStyles as baseSsrStyles } from '@telus-uds/components-base'
2
- import styledComponents from './theming/styled-components'
3
3
  /**
4
4
  * Returns object with `renderApp` and `getStyles` functions.
5
5
  * Weave these into your app's server-side render process:
@@ -19,9 +19,9 @@ import styledComponents from './theming/styled-components'
19
19
  */
20
20
  const ssrStyles = (
21
21
  appName = 'Allium app',
22
- { styleGetters = [], collectStyles = (renderedApp) => renderedApp } = {}
22
+ { styleGetters = [], collectStyles = (renderedApp) => renderedApp } = {},
23
+ router = 'pages'
23
24
  ) => {
24
- const { ServerStyleSheet } = styledComponents
25
25
  const sheet = new ServerStyleSheet()
26
26
  const getStyledComponentsStyles = () => {
27
27
  const styles = sheet.getStyleElement()
@@ -29,6 +29,13 @@ const ssrStyles = (
29
29
  return styles
30
30
  }
31
31
 
32
+ if (router === 'app') {
33
+ return baseSsrStyles(appName, {
34
+ styleGetters: [...styleGetters],
35
+ collectStyles
36
+ })
37
+ }
38
+
32
39
  return baseSsrStyles(appName, {
33
40
  styleGetters: [getStyledComponentsStyles, ...styleGetters],
34
41
  collectStyles: (renderedApp) => collectStyles(sheet.collectStyles(renderedApp))
@@ -1,5 +1,5 @@
1
1
  import type { ComponentType, ElementType, ReactNode } from 'react'
2
- import type { HTMLAttrs, Variant } from './common'
2
+ import type { HTMLAttrs, Tokens, Variant } from './common'
3
3
 
4
4
  export interface CalloutProps extends HTMLAttrs {
5
5
  children: ReactNode
@@ -7,6 +7,7 @@ export interface CalloutProps extends HTMLAttrs {
7
7
  icon?: ElementType
8
8
  verticalAlign?: 'top' | 'middle' | 'bottom'
9
9
  textAlignToFlex?: 'left' | 'center'
10
+ tokens?: Tokens
10
11
  }
11
12
 
12
13
  declare const Callout: ComponentType<CalloutProps>
@@ -9,6 +9,7 @@ export interface TooltipProps extends A11yProps, ViewProps {
9
9
  copy?: CopyLang
10
10
  position?: TooltipPosition
11
11
  tokens?: Tokens
12
+ tooltipButtonTokens?: Tokens
12
13
  variant?: Variant
13
14
  onPress?: () => void
14
15
  }