@purpur/library 9.5.0 → 9.7.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 (364) hide show
  1. package/CHANGELOG.json +66 -0
  2. package/CHANGELOG.md +29 -1
  3. package/dist/LICENSE.txt +27 -6
  4. package/dist/ThemeProvider-D7oXcAde.js +2 -0
  5. package/dist/{ThemeProvider-Dy771oix.js.map → ThemeProvider-D7oXcAde.js.map} +1 -1
  6. package/dist/ThemeProvider-DiDBfyFA.mjs +348 -0
  7. package/dist/{ThemeProvider-CkX-BNWN.mjs.map → ThemeProvider-DiDBfyFA.mjs.map} +1 -1
  8. package/dist/avatar-CYnD57o4.js +2 -0
  9. package/dist/avatar-CYnD57o4.js.map +1 -0
  10. package/dist/avatar-CzbDD1MK.mjs +27 -0
  11. package/dist/avatar-CzbDD1MK.mjs.map +1 -0
  12. package/dist/avatar.cjs.js +2 -0
  13. package/dist/avatar.cjs.js.map +1 -0
  14. package/dist/avatar.es.js +5 -0
  15. package/dist/avatar.es.js.map +1 -0
  16. package/dist/carousel-BIKcwvYz.mjs +1658 -0
  17. package/dist/carousel-BIKcwvYz.mjs.map +1 -0
  18. package/dist/carousel-DnSaLDZf.js +2 -0
  19. package/dist/carousel-DnSaLDZf.js.map +1 -0
  20. package/dist/carousel.cjs.js +1 -1
  21. package/dist/carousel.es.js +1 -1
  22. package/dist/color-dot-BEE5rKco.js +2 -0
  23. package/dist/color-dot-BEE5rKco.js.map +1 -0
  24. package/dist/color-dot-Dz9yzVX3.mjs +28 -0
  25. package/dist/color-dot-Dz9yzVX3.mjs.map +1 -0
  26. package/dist/color-dot.cjs.js +1 -1
  27. package/dist/color-dot.es.js +4 -3
  28. package/dist/comparison-table-0UDB2BTU.js +2 -0
  29. package/dist/comparison-table-0UDB2BTU.js.map +1 -0
  30. package/dist/comparison-table-CjTE-fHN.mjs +292 -0
  31. package/dist/comparison-table-CjTE-fHN.mjs.map +1 -0
  32. package/dist/comparison-table.cjs.js +1 -1
  33. package/dist/comparison-table.es.js +1 -1
  34. package/dist/components/avatar/src/avatar-constants.d.ts +2 -0
  35. package/dist/components/avatar/src/avatar-constants.d.ts.map +1 -0
  36. package/dist/components/avatar/src/avatar.d.ts +26 -0
  37. package/dist/components/avatar/src/avatar.d.ts.map +1 -0
  38. package/dist/components/button/src/button.visual.fixtures.d.ts +43 -0
  39. package/dist/components/button/src/button.visual.fixtures.d.ts.map +1 -0
  40. package/dist/components/carousel/src/carousel.d.ts.map +1 -1
  41. package/dist/components/color-dot/src/color-dot.d.ts +18 -8
  42. package/dist/components/color-dot/src/color-dot.d.ts.map +1 -1
  43. package/dist/components/comparison-table/src/components/OptionCard/option-card.d.ts.map +1 -1
  44. package/dist/components/date-picker/src/date-picker.d.ts +8 -0
  45. package/dist/components/date-picker/src/date-picker.d.ts.map +1 -1
  46. package/dist/components/drawer/src/drawer-content.d.ts +21 -0
  47. package/dist/components/drawer/src/drawer-content.d.ts.map +1 -1
  48. package/dist/components/hero-banner/src/hero-banner.visual.fixtures.d.ts +14 -0
  49. package/dist/components/hero-banner/src/hero-banner.visual.fixtures.d.ts.map +1 -0
  50. package/dist/components/loading/src/loading-dots.d.ts +19 -0
  51. package/dist/components/loading/src/loading-dots.d.ts.map +1 -0
  52. package/dist/components/loading/src/loading-text.d.ts +21 -0
  53. package/dist/components/loading/src/loading-text.d.ts.map +1 -0
  54. package/dist/components/loading/src/loading.d.ts +10 -0
  55. package/dist/components/loading/src/loading.d.ts.map +1 -0
  56. package/dist/components/message/src/message-bubble.d.ts +22 -0
  57. package/dist/components/message/src/message-bubble.d.ts.map +1 -0
  58. package/dist/components/message/src/message-stamp.d.ts +26 -0
  59. package/dist/components/message/src/message-stamp.d.ts.map +1 -0
  60. package/dist/components/message/src/message-utils.d.ts +3 -0
  61. package/dist/components/message/src/message-utils.d.ts.map +1 -0
  62. package/dist/components/message/src/message.d.ts +42 -0
  63. package/dist/components/message/src/message.d.ts.map +1 -0
  64. package/dist/components/modal/src/modal-content.d.ts +21 -0
  65. package/dist/components/modal/src/modal-content.d.ts.map +1 -1
  66. package/dist/components/modal/src/modal.d.ts +2 -0
  67. package/dist/components/modal/src/modal.d.ts.map +1 -1
  68. package/dist/components/popover/src/popover-content.d.ts +14 -0
  69. package/dist/components/popover/src/popover-content.d.ts.map +1 -1
  70. package/dist/components/radio-card-group/src/is-radio-card-item.d.ts +4 -0
  71. package/dist/components/radio-card-group/src/is-radio-card-item.d.ts.map +1 -0
  72. package/dist/components/radio-card-group/src/radio-card-group.constants.d.ts +5 -0
  73. package/dist/components/radio-card-group/src/radio-card-group.constants.d.ts.map +1 -0
  74. package/dist/components/radio-card-group/src/radio-card-group.d.ts +5 -6
  75. package/dist/components/radio-card-group/src/radio-card-group.d.ts.map +1 -1
  76. package/dist/components/radio-card-group/src/radio-card-item.d.ts +1 -2
  77. package/dist/components/radio-card-group/src/radio-card-item.d.ts.map +1 -1
  78. package/dist/components/search-field/src/search-field-autocomplete.d.ts +6 -3
  79. package/dist/components/search-field/src/search-field-autocomplete.d.ts.map +1 -1
  80. package/dist/components/search-field/src/search-field-base.d.ts +10 -3
  81. package/dist/components/search-field/src/search-field-base.d.ts.map +1 -1
  82. package/dist/components/search-field/src/search-field-button.d.ts +3 -1
  83. package/dist/components/search-field/src/search-field-button.d.ts.map +1 -1
  84. package/dist/components/search-field/src/search-field.d.ts +12 -6
  85. package/dist/components/search-field/src/search-field.d.ts.map +1 -1
  86. package/dist/components/table/src/drag-indicator-circle.d.ts +8 -1
  87. package/dist/components/table/src/drag-indicator-circle.d.ts.map +1 -1
  88. package/dist/components/table/src/table.d.ts.map +1 -1
  89. package/dist/components/tooltip/src/tooltip.d.ts +21 -0
  90. package/dist/components/tooltip/src/tooltip.d.ts.map +1 -1
  91. package/dist/components-metadata.js +33 -4
  92. package/dist/date-picker-CIizn3Pv.js +2 -0
  93. package/dist/{date-picker-uyPKJulK.js.map → date-picker-CIizn3Pv.js.map} +1 -1
  94. package/dist/date-picker-DixxW60s.mjs +1617 -0
  95. package/dist/{date-picker-CzxhZxsw.mjs.map → date-picker-DixxW60s.mjs.map} +1 -1
  96. package/dist/date-picker.cjs.js +1 -1
  97. package/dist/date-picker.es.js +1 -1
  98. package/dist/drawer-BzkRd9F0.mjs +577 -0
  99. package/dist/drawer-BzkRd9F0.mjs.map +1 -0
  100. package/dist/drawer-DyhsP34o.js +2 -0
  101. package/dist/drawer-DyhsP34o.js.map +1 -0
  102. package/dist/drawer.cjs.js +1 -1
  103. package/dist/drawer.es.js +1 -1
  104. package/dist/{footer-D9AcPwlH.js → footer-3Y-664-8.js} +2 -2
  105. package/dist/{footer-D9AcPwlH.js.map → footer-3Y-664-8.js.map} +1 -1
  106. package/dist/{footer-BLPlXaZK.mjs → footer-DenAcikt.mjs} +3 -3
  107. package/dist/{footer-BLPlXaZK.mjs.map → footer-DenAcikt.mjs.map} +1 -1
  108. package/dist/footer.cjs.js +1 -1
  109. package/dist/footer.es.js +1 -1
  110. package/dist/{hero-banner-DkC_BqM7.mjs → hero-banner-B7xrDfzN.mjs} +2 -2
  111. package/dist/{hero-banner-DkC_BqM7.mjs.map → hero-banner-B7xrDfzN.mjs.map} +1 -1
  112. package/dist/{hero-banner-D1A-_qou.js → hero-banner-DthITuQ7.js} +2 -2
  113. package/dist/{hero-banner-D1A-_qou.js.map → hero-banner-DthITuQ7.js.map} +1 -1
  114. package/dist/hero-banner.cjs.js +1 -1
  115. package/dist/hero-banner.es.js +1 -1
  116. package/dist/libraries/library/src/avatar.d.ts +6 -0
  117. package/dist/libraries/library/src/avatar.d.ts.map +1 -0
  118. package/dist/libraries/library/src/library.d.ts +3 -0
  119. package/dist/libraries/library/src/library.d.ts.map +1 -1
  120. package/dist/libraries/library/src/loading.d.ts +6 -0
  121. package/dist/libraries/library/src/loading.d.ts.map +1 -0
  122. package/dist/libraries/library/src/message.d.ts +6 -0
  123. package/dist/libraries/library/src/message.d.ts.map +1 -0
  124. package/dist/libraries/theme/src/ThemeProvider.d.ts.map +1 -1
  125. package/dist/libraries/theme/src/theme.d.ts +1 -0
  126. package/dist/libraries/theme/src/theme.d.ts.map +1 -1
  127. package/dist/libraries/theme/src/types.d.ts +7 -0
  128. package/dist/libraries/theme/src/types.d.ts.map +1 -1
  129. package/dist/libraries/theme/src/useThemePortalContainer.d.ts +12 -0
  130. package/dist/libraries/theme/src/useThemePortalContainer.d.ts.map +1 -0
  131. package/dist/library.cjs.js +1 -1
  132. package/dist/library.es.js +630 -623
  133. package/dist/library.es.js.map +1 -1
  134. package/dist/loading-Dwtkjstg.js +2 -0
  135. package/dist/loading-Dwtkjstg.js.map +1 -0
  136. package/dist/loading-r23nxJSz.mjs +107 -0
  137. package/dist/loading-r23nxJSz.mjs.map +1 -0
  138. package/dist/loading.cjs.js +2 -0
  139. package/dist/loading.cjs.js.map +1 -0
  140. package/dist/loading.es.js +5 -0
  141. package/dist/loading.es.js.map +1 -0
  142. package/dist/message-0yTS5pOF.js +3 -0
  143. package/dist/message-0yTS5pOF.js.map +1 -0
  144. package/dist/message-D9CDwcw9.mjs +132 -0
  145. package/dist/message-D9CDwcw9.mjs.map +1 -0
  146. package/dist/message.cjs.js +2 -0
  147. package/dist/message.cjs.js.map +1 -0
  148. package/dist/message.es.js +5 -0
  149. package/dist/message.es.js.map +1 -0
  150. package/dist/modal-DJn9idcw.js +2 -0
  151. package/dist/modal-DJn9idcw.js.map +1 -0
  152. package/dist/{modal-fp37VbrH.mjs → modal-EIP36327.mjs} +83 -80
  153. package/dist/modal-EIP36327.mjs.map +1 -0
  154. package/dist/modal.cjs.js +1 -1
  155. package/dist/modal.es.js +1 -1
  156. package/dist/{popover-I26xNbTz.mjs → popover-DERrvReO.mjs} +328 -325
  157. package/dist/popover-DERrvReO.mjs.map +1 -0
  158. package/dist/popover-DnGgzfQr.js +2 -0
  159. package/dist/popover-DnGgzfQr.js.map +1 -0
  160. package/dist/popover.cjs.js +1 -1
  161. package/dist/popover.es.js +1 -1
  162. package/dist/{product-card-CoY1KggV.js → product-card-8X-Ld2d_.js} +2 -2
  163. package/dist/{product-card-CoY1KggV.js.map → product-card-8X-Ld2d_.js.map} +1 -1
  164. package/dist/{product-card-C3_N0t-R.mjs → product-card-Bt-F0wKr.mjs} +10 -10
  165. package/dist/{product-card-C3_N0t-R.mjs.map → product-card-Bt-F0wKr.mjs.map} +1 -1
  166. package/dist/product-card.cjs.js +1 -1
  167. package/dist/product-card.es.js +1 -1
  168. package/dist/{promotion-card-BiHnQvhn.mjs → promotion-card-BnzIVNQ4.mjs} +2 -2
  169. package/dist/{promotion-card-BiHnQvhn.mjs.map → promotion-card-BnzIVNQ4.mjs.map} +1 -1
  170. package/dist/{promotion-card-Bag64gqP.js → promotion-card-DKc2Cx1h.js} +2 -2
  171. package/dist/{promotion-card-Bag64gqP.js.map → promotion-card-DKc2Cx1h.js.map} +1 -1
  172. package/dist/promotion-card.cjs.js +1 -1
  173. package/dist/promotion-card.es.js +1 -1
  174. package/dist/purpur.css +1 -1
  175. package/dist/radio-card-group-ZBXjYcQs.mjs +166 -0
  176. package/dist/radio-card-group-ZBXjYcQs.mjs.map +1 -0
  177. package/dist/radio-card-group-nrDi5EPK.js +2 -0
  178. package/dist/radio-card-group-nrDi5EPK.js.map +1 -0
  179. package/dist/radio-card-group.cjs.js +1 -1
  180. package/dist/radio-card-group.es.js +3 -5
  181. package/dist/search-field-2vdDbiT0.js +2 -0
  182. package/dist/search-field-2vdDbiT0.js.map +1 -0
  183. package/dist/search-field-DKyNh7pE.mjs +167 -0
  184. package/dist/search-field-DKyNh7pE.mjs.map +1 -0
  185. package/dist/search-field.cjs.js +1 -1
  186. package/dist/search-field.es.js +1 -1
  187. package/dist/{stepper-CWR2vGPj.mjs → stepper-BDsSa6yr.mjs} +2 -2
  188. package/dist/{stepper-CWR2vGPj.mjs.map → stepper-BDsSa6yr.mjs.map} +1 -1
  189. package/dist/{stepper-Df4X7DDR.js → stepper-DpauItjx.js} +2 -2
  190. package/dist/{stepper-Df4X7DDR.js.map → stepper-DpauItjx.js.map} +1 -1
  191. package/dist/stepper.cjs.js +1 -1
  192. package/dist/stepper.es.js +1 -1
  193. package/dist/{table-gnGUejtb.js → table-BOCcBzSO.js} +4 -4
  194. package/dist/table-BOCcBzSO.js.map +1 -0
  195. package/dist/{table-g_n68i4s.mjs → table-i1Gs9e0e.mjs} +440 -440
  196. package/dist/table-i1Gs9e0e.mjs.map +1 -0
  197. package/dist/table.cjs.js +1 -1
  198. package/dist/table.es.js +1 -1
  199. package/dist/{text-area-peNKG7g4.js → text-area-D0truMT1.js} +2 -2
  200. package/dist/{text-area-peNKG7g4.js.map → text-area-D0truMT1.js.map} +1 -1
  201. package/dist/{text-area-kJvg6cFp.mjs → text-area-IVH-k4MM.mjs} +3 -3
  202. package/dist/{text-area-kJvg6cFp.mjs.map → text-area-IVH-k4MM.mjs.map} +1 -1
  203. package/dist/text-area.cjs.js +1 -1
  204. package/dist/text-area.es.js +1 -1
  205. package/dist/theme.cjs.js +1 -1
  206. package/dist/theme.es.js +8 -6
  207. package/dist/theme.es.js.map +1 -1
  208. package/dist/tooltip-CJGmJDFQ.js +2 -0
  209. package/dist/{tooltip-C8Zxnqdb.js.map → tooltip-CJGmJDFQ.js.map} +1 -1
  210. package/dist/{tooltip-LU2Cy-QC.mjs → tooltip-RA-03bKs.mjs} +277 -274
  211. package/dist/{tooltip-LU2Cy-QC.mjs.map → tooltip-RA-03bKs.mjs.map} +1 -1
  212. package/dist/tooltip.cjs.js +1 -1
  213. package/dist/tooltip.es.js +1 -1
  214. package/dist/{useColorScheme-tAkY9LHt.mjs → useColorScheme-B9DWd-LN.mjs} +2 -2
  215. package/dist/{useColorScheme-tAkY9LHt.mjs.map → useColorScheme-B9DWd-LN.mjs.map} +1 -1
  216. package/dist/useColorScheme-DbTQjxNB.js +2 -0
  217. package/dist/{useColorScheme-DNyjsWX9.js.map → useColorScheme-DbTQjxNB.js.map} +1 -1
  218. package/dist/useThemePortalContainer-D9BYjEvT.js +2 -0
  219. package/dist/useThemePortalContainer-D9BYjEvT.js.map +1 -0
  220. package/dist/useThemePortalContainer-tFLTaYKN.mjs +9 -0
  221. package/dist/useThemePortalContainer-tFLTaYKN.mjs.map +1 -0
  222. package/package.json +27 -24
  223. package/src/aliases.ts +12 -0
  224. package/src/avatar.ts +6 -0
  225. package/src/entries.js +3 -0
  226. package/src/library.ts +5 -68
  227. package/src/loading.ts +6 -0
  228. package/src/message.ts +6 -0
  229. package/dist/ThemeProvider-CkX-BNWN.mjs +0 -337
  230. package/dist/ThemeProvider-Dy771oix.js +0 -2
  231. package/dist/carousel-DLkTL9sj.mjs +0 -1633
  232. package/dist/carousel-DLkTL9sj.mjs.map +0 -1
  233. package/dist/carousel-DXrtxRz5.js +0 -2
  234. package/dist/carousel-DXrtxRz5.js.map +0 -1
  235. package/dist/color-dot-6Mxngvce.mjs +0 -34
  236. package/dist/color-dot-6Mxngvce.mjs.map +0 -1
  237. package/dist/color-dot-B9w_ucWb.js +0 -2
  238. package/dist/color-dot-B9w_ucWb.js.map +0 -1
  239. package/dist/comparison-table-C74IAVqz.js +0 -2
  240. package/dist/comparison-table-C74IAVqz.js.map +0 -1
  241. package/dist/comparison-table-DctKxmX9.mjs +0 -267
  242. package/dist/comparison-table-DctKxmX9.mjs.map +0 -1
  243. package/dist/date-picker-CzxhZxsw.mjs +0 -1611
  244. package/dist/date-picker-uyPKJulK.js +0 -2
  245. package/dist/drawer-8Acg4wkV.mjs +0 -574
  246. package/dist/drawer-8Acg4wkV.mjs.map +0 -1
  247. package/dist/drawer-BLHgcEqb.js +0 -2
  248. package/dist/drawer-BLHgcEqb.js.map +0 -1
  249. package/dist/modal-Baisuc6m.js +0 -2
  250. package/dist/modal-Baisuc6m.js.map +0 -1
  251. package/dist/modal-fp37VbrH.mjs.map +0 -1
  252. package/dist/popover-B0XJZ5mj.js +0 -2
  253. package/dist/popover-B0XJZ5mj.js.map +0 -1
  254. package/dist/popover-I26xNbTz.mjs.map +0 -1
  255. package/dist/radio-card-group-CneOprGY.mjs +0 -168
  256. package/dist/radio-card-group-CneOprGY.mjs.map +0 -1
  257. package/dist/radio-card-group-Ctuvg61o.js +0 -2
  258. package/dist/radio-card-group-Ctuvg61o.js.map +0 -1
  259. package/dist/search-field-CpkHGIYi.mjs +0 -151
  260. package/dist/search-field-CpkHGIYi.mjs.map +0 -1
  261. package/dist/search-field-Z0PqDARl.js +0 -2
  262. package/dist/search-field-Z0PqDARl.js.map +0 -1
  263. package/dist/table-g_n68i4s.mjs.map +0 -1
  264. package/dist/table-gnGUejtb.js.map +0 -1
  265. package/dist/tooltip-C8Zxnqdb.js +0 -2
  266. package/dist/useColorScheme-DNyjsWX9.js +0 -2
  267. package/tokens/_dark.scss +0 -9
  268. package/tokens/_index.scss +0 -9
  269. package/tokens/border/variables.css +0 -13
  270. package/tokens/border/variables.d.ts +0 -10
  271. package/tokens/border/variables.dark.css +0 -12
  272. package/tokens/border/variables.dark.d.ts +0 -10
  273. package/tokens/border/variables.dark.js +0 -10
  274. package/tokens/border/variables.dark.json +0 -18
  275. package/tokens/border/variables.dark.scss +0 -10
  276. package/tokens/border/variables.js +0 -10
  277. package/tokens/border/variables.json +0 -18
  278. package/tokens/border/variables.scss +0 -10
  279. package/tokens/breakpoint/variables.css +0 -11
  280. package/tokens/breakpoint/variables.d.ts +0 -8
  281. package/tokens/breakpoint/variables.dark.css +0 -10
  282. package/tokens/breakpoint/variables.dark.d.ts +0 -8
  283. package/tokens/breakpoint/variables.dark.js +0 -8
  284. package/tokens/breakpoint/variables.dark.json +0 -14
  285. package/tokens/breakpoint/variables.dark.scss +0 -8
  286. package/tokens/breakpoint/variables.js +0 -8
  287. package/tokens/breakpoint/variables.json +0 -14
  288. package/tokens/breakpoint/variables.scss +0 -8
  289. package/tokens/color/variables.css +0 -262
  290. package/tokens/color/variables.d.ts +0 -253
  291. package/tokens/color/variables.dark.css +0 -262
  292. package/tokens/color/variables.dark.d.ts +0 -252
  293. package/tokens/color/variables.dark.js +0 -252
  294. package/tokens/color/variables.dark.json +0 -306
  295. package/tokens/color/variables.dark.scss +0 -252
  296. package/tokens/color/variables.js +0 -253
  297. package/tokens/color/variables.json +0 -307
  298. package/tokens/color/variables.scss +0 -253
  299. package/tokens/dark.css +0 -9
  300. package/tokens/dark.d.ts +0 -9
  301. package/tokens/dark.js +0 -9
  302. package/tokens/filter/variables.css +0 -4
  303. package/tokens/filter/variables.d.ts +0 -1
  304. package/tokens/filter/variables.dark.css +0 -3
  305. package/tokens/filter/variables.dark.d.ts +0 -1
  306. package/tokens/filter/variables.dark.js +0 -1
  307. package/tokens/filter/variables.dark.json +0 -7
  308. package/tokens/filter/variables.dark.scss +0 -1
  309. package/tokens/filter/variables.js +0 -1
  310. package/tokens/filter/variables.json +0 -7
  311. package/tokens/filter/variables.scss +0 -1
  312. package/tokens/gradient/variables.css +0 -53
  313. package/tokens/gradient/variables.d.ts +0 -9
  314. package/tokens/gradient/variables.dark.css +0 -51
  315. package/tokens/gradient/variables.dark.d.ts +0 -9
  316. package/tokens/gradient/variables.dark.js +0 -18
  317. package/tokens/gradient/variables.dark.json +0 -27
  318. package/tokens/gradient/variables.dark.scss +0 -36
  319. package/tokens/gradient/variables.js +0 -18
  320. package/tokens/gradient/variables.json +0 -27
  321. package/tokens/gradient/variables.scss +0 -42
  322. package/tokens/index.css +0 -18
  323. package/tokens/index.d.ts +0 -9
  324. package/tokens/index.js +0 -9
  325. package/tokens/motion/variables.css +0 -14
  326. package/tokens/motion/variables.d.ts +0 -11
  327. package/tokens/motion/variables.dark.css +0 -13
  328. package/tokens/motion/variables.dark.d.ts +0 -11
  329. package/tokens/motion/variables.dark.js +0 -11
  330. package/tokens/motion/variables.dark.json +0 -19
  331. package/tokens/motion/variables.dark.scss +0 -11
  332. package/tokens/motion/variables.js +0 -11
  333. package/tokens/motion/variables.json +0 -19
  334. package/tokens/motion/variables.scss +0 -11
  335. package/tokens/shadow/variables.css +0 -11
  336. package/tokens/shadow/variables.d.ts +0 -4
  337. package/tokens/shadow/variables.dark.css +0 -10
  338. package/tokens/shadow/variables.dark.d.ts +0 -4
  339. package/tokens/shadow/variables.dark.js +0 -4
  340. package/tokens/shadow/variables.dark.json +0 -8
  341. package/tokens/shadow/variables.dark.scss +0 -4
  342. package/tokens/shadow/variables.js +0 -4
  343. package/tokens/shadow/variables.json +0 -8
  344. package/tokens/shadow/variables.scss +0 -4
  345. package/tokens/spacing/variables.css +0 -26
  346. package/tokens/spacing/variables.d.ts +0 -23
  347. package/tokens/spacing/variables.dark.css +0 -17
  348. package/tokens/spacing/variables.dark.d.ts +0 -15
  349. package/tokens/spacing/variables.dark.js +0 -15
  350. package/tokens/spacing/variables.dark.json +0 -19
  351. package/tokens/spacing/variables.dark.scss +0 -15
  352. package/tokens/spacing/variables.js +0 -23
  353. package/tokens/spacing/variables.json +0 -31
  354. package/tokens/spacing/variables.scss +0 -23
  355. package/tokens/typography/variables.css +0 -30
  356. package/tokens/typography/variables.d.ts +0 -26
  357. package/tokens/typography/variables.dark.css +0 -29
  358. package/tokens/typography/variables.dark.d.ts +0 -26
  359. package/tokens/typography/variables.dark.js +0 -28
  360. package/tokens/typography/variables.dark.json +0 -38
  361. package/tokens/typography/variables.dark.scss +0 -26
  362. package/tokens/typography/variables.js +0 -28
  363. package/tokens/typography/variables.json +0 -38
  364. package/tokens/typography/variables.scss +0 -26
@@ -0,0 +1,292 @@
1
+ import { jsx as o, jsxs as u } from "react/jsx-runtime";
2
+ import { isValidElement as W, useRef as A, useState as V, useEffect as M, useCallback as C, useId as G, createElement as J } from "react";
3
+ import { c as D } from "./bind-CU-R61T-.mjs";
4
+ import { a as Q } from "./checkmark.es-DdgIZN2R.mjs";
5
+ import { e as U } from "./minus.es-BK9qA9iJ.mjs";
6
+ import { l as F } from "./chevron-down.es-PCIIj6oG.mjs";
7
+ import { P as q } from "./paragraph-DSxXmX_0.mjs";
8
+ import { a as X } from "./badge-DalD-yqG.mjs";
9
+ import { b as P } from "./button-4-yWOgtD.mjs";
10
+ import { H as Y } from "./heading-xwBuT_-9.mjs";
11
+ import { l as Z } from "./arrow-left.es-DU-PX-Il.mjs";
12
+ import { i as rr } from "./arrow-right.es-C7SkjAB6.mjs";
13
+ const er = {
14
+ "purpur-comparison-table__wrapper": "_purpur-comparison-table__wrapper_1udkj_1",
15
+ "purpur-comparison-table": "_purpur-comparison-table_1udkj_1",
16
+ "purpur-comparison-table--primary": "_purpur-comparison-table--primary_1udkj_11",
17
+ "purpur-comparison-table--secondary": "_purpur-comparison-table--secondary_1udkj_15",
18
+ "purpur-comparison-table__feature-row": "_purpur-comparison-table__feature-row_1udkj_32",
19
+ "purpur-comparison-table__cards": "_purpur-comparison-table__cards_1udkj_32",
20
+ "purpur-comparison-table__separator": "_purpur-comparison-table__separator_1udkj_49"
21
+ }, or = {
22
+ "purpur-comparison-table-cell": "_purpur-comparison-table-cell_glb5z_1",
23
+ "purpur-comparison-table-cell--check": "_purpur-comparison-table-cell--check_glb5z_17",
24
+ "purpur-comparison-table-cell--minus": "_purpur-comparison-table-cell--minus_glb5z_20",
25
+ "purpur-comparison-table-cell__icon": "_purpur-comparison-table-cell__icon_glb5z_23"
26
+ }, H = D.bind(or), L = "purpur-comparison-table-cell", tr = ({ value: t }) => {
27
+ const n = W(t) || ["string", "number"].includes(typeof t), a = H(L, [n ? "" : `${L}--${t ? "check" : "minus"}`]), y = t ? Q : U;
28
+ return /* @__PURE__ */ o("span", { className: H(a), children: n ? t : /* @__PURE__ */ o(y, { size: "xs", className: H(`${L}__icon`) }) });
29
+ }, ar = {
30
+ "purpur-comparison-table-lead-cell": "_purpur-comparison-table-lead-cell_rqs9w_1",
31
+ "purpur-comparison-table-lead-cell__description": "_purpur-comparison-table-lead-cell__description_rqs9w_5",
32
+ "purpur-comparison-table-lead-cell__summary": "_purpur-comparison-table-lead-cell__summary_rqs9w_40",
33
+ "purpur-comparison-table-lead-cell__summary-title": "_purpur-comparison-table-lead-cell__summary-title_rqs9w_48",
34
+ "purpur-comparison-table-lead-cell__summary-icon": "_purpur-comparison-table-lead-cell__summary-icon_rqs9w_51"
35
+ }, O = D.bind(ar), j = "purpur-comparison-table-lead-cell", sr = ({ title: t, description: n }) => {
36
+ const l = typeof n == "string", a = O(j);
37
+ return /* @__PURE__ */ u("details", { className: a, "data-is-expandable": l, children: [
38
+ /* @__PURE__ */ u("summary", { className: O(`${j}__summary`), tabIndex: l ? 0 : -1, children: [
39
+ /* @__PURE__ */ o(q, { className: O(`${j}__summary-title`), variant: "paragraph-100-bold", children: t }),
40
+ /* @__PURE__ */ o(F, { className: O(`${j}__summary-icon`), size: "sm" })
41
+ ] }),
42
+ n && /* @__PURE__ */ o(q, { variant: "paragraph-100", className: O(`${j}__description`), children: n })
43
+ ] });
44
+ }, nr = {
45
+ "purpur-comparison-table-option-card": "_purpur-comparison-table-option-card_18fdt_1",
46
+ "purpur-comparison-table-option-card--highlighted": "_purpur-comparison-table-option-card--highlighted_18fdt_11",
47
+ "purpur-comparison-table-option-card__badge": "_purpur-comparison-table-option-card__badge_18fdt_14",
48
+ "purpur-comparison-table-option-card__main-content": "_purpur-comparison-table-option-card__main-content_18fdt_19",
49
+ "purpur-comparison-table-option-card__image": "_purpur-comparison-table-option-card__image_18fdt_25",
50
+ "purpur-comparison-table-option-card__body": "_purpur-comparison-table-option-card__body_18fdt_31",
51
+ "purpur-comparison-table-option-card__description": "_purpur-comparison-table-option-card__description_18fdt_36",
52
+ "purpur-comparison-table-option-card__description-text": "_purpur-comparison-table-option-card__description-text_18fdt_41",
53
+ "purpur-comparison-table-option-card__read-more": "_purpur-comparison-table-option-card__read-more_18fdt_50",
54
+ "purpur-comparison-table-option-card__read-more--hidden": "_purpur-comparison-table-option-card__read-more--hidden_18fdt_54",
55
+ "purpur-comparison-table-option-card__read-more-icon": "_purpur-comparison-table-option-card__read-more-icon_18fdt_57",
56
+ "purpur-comparison-table-option-card__footer": "_purpur-comparison-table-option-card__footer_18fdt_65",
57
+ "purpur-comparison-table-option-card__price": "_purpur-comparison-table-option-card__price_18fdt_70",
58
+ "purpur-comparison-table-option-card--show-full-descriptions": "_purpur-comparison-table-option-card--show-full-descriptions_18fdt_77",
59
+ "purpur-comparison-table-option-card--first-card": "_purpur-comparison-table-option-card--first-card_18fdt_110"
60
+ }, m = D.bind(nr), c = "purpur-comparison-table-option-card", cr = ({
61
+ id: t,
62
+ cardIndex: n,
63
+ description: l,
64
+ variablePriceText: a,
65
+ price: y,
66
+ isHighlighted: f,
67
+ ariaLabels: g,
68
+ badge: h,
69
+ actions: N,
70
+ isFirstCard: z,
71
+ image: r,
72
+ title: i,
73
+ showFullDescriptions: _,
74
+ toggleShowFullDescriptions: d
75
+ }) => {
76
+ const p = A(null), s = A(null), e = A(_), [b, w] = V(!1), k = m(c, {
77
+ [`${c}--highlighted`]: f,
78
+ [`${c}--first-card`]: z,
79
+ [`${c}--show-full-descriptions`]: _
80
+ });
81
+ M(() => {
82
+ e.current = _;
83
+ }, [_]);
84
+ const I = C(() => {
85
+ if (e.current)
86
+ return;
87
+ const S = p.current, E = s.current;
88
+ if (!S || !E) {
89
+ w(!1);
90
+ return;
91
+ }
92
+ const B = S.clientHeight, K = E.offsetHeight;
93
+ w(K > B + 1);
94
+ }, []);
95
+ M(() => {
96
+ const S = p.current;
97
+ if (I(), !S || typeof ResizeObserver > "u")
98
+ return;
99
+ const E = new ResizeObserver(I);
100
+ return E.observe(S), () => {
101
+ E.disconnect();
102
+ };
103
+ }, [I, l]);
104
+ const T = () => l ? /* @__PURE__ */ u("div", { className: m(`${c}__description`), children: [
105
+ /* @__PURE__ */ o(q, { ref: p, className: m(`${c}__description-text`), children: /* @__PURE__ */ o("span", { ref: s, children: l }) }),
106
+ /* @__PURE__ */ u(
107
+ P,
108
+ {
109
+ variant: "text",
110
+ size: "xs",
111
+ className: m(`${c}__read-more`, {
112
+ [`${c}__read-more--hidden`]: !b
113
+ }),
114
+ onClick: d,
115
+ "aria-hidden": !b,
116
+ tabIndex: b ? void 0 : -1,
117
+ children: [
118
+ /* @__PURE__ */ o("span", { className: m(`${c}__read-more-text`), children: _ ? g.readLess : g.readMore }),
119
+ /* @__PURE__ */ o(F, { className: m(`${c}__read-more-icon`), size: "xs" })
120
+ ]
121
+ }
122
+ )
123
+ ] }) : null;
124
+ return /* @__PURE__ */ u("article", { className: k, "data-card-id": t, "data-card-index": n, children: [
125
+ h && /* @__PURE__ */ o(X, { ...h, className: m(`${c}__badge`) }),
126
+ /* @__PURE__ */ u("section", { className: m(`${c}__main-content`), children: [
127
+ /* @__PURE__ */ o("img", { src: r.src, alt: r.alt, className: m(`${c}__image`) }),
128
+ /* @__PURE__ */ u("div", { className: m(`${c}__body`), children: [
129
+ /* @__PURE__ */ o(Y, { tag: "h3", variant: "title-200", className: m(`${c}__title`), children: i }),
130
+ T()
131
+ ] })
132
+ ] }),
133
+ /* @__PURE__ */ u("footer", { className: m(`${c}__footer`), children: [
134
+ /* @__PURE__ */ u("span", { className: m(`${c}__price`), id: t, children: [
135
+ /* @__PURE__ */ o(q, { variant: "paragraph-100", children: a }),
136
+ /* @__PURE__ */ o(q, { variant: "paragraph-100-bold", children: y })
137
+ ] }),
138
+ N
139
+ ] })
140
+ ] });
141
+ }, ir = "_active_kvsnm_44", lr = {
142
+ "purpur-comparison-table-scroll-progress": "_purpur-comparison-table-scroll-progress_kvsnm_1",
143
+ "purpur-comparison-table-scroll-progress__indicators": "_purpur-comparison-table-scroll-progress__indicators_kvsnm_15",
144
+ "purpur-comparison-table-scroll-progress__indicator": "_purpur-comparison-table-scroll-progress__indicator_kvsnm_15",
145
+ active: ir,
146
+ "purpur-comparison-table-scroll-progress__buttons": "_purpur-comparison-table-scroll-progress__buttons_kvsnm_48",
147
+ "purpur-comparison-table-scroll-progress__button": "_purpur-comparison-table-scroll-progress__button_kvsnm_48",
148
+ "purpur-comparison-table-scroll-progress__button-icon": "_purpur-comparison-table-scroll-progress__button-icon_kvsnm_57"
149
+ }, $ = D.bind(lr), v = "purpur-comparison-table-scroll-progress", pr = ({ items: t, container: n, ariaLabels: l }) => {
150
+ const [a, y] = V(/* @__PURE__ */ new Set()), f = C(
151
+ (r) => {
152
+ const i = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
153
+ n.current?.querySelector(
154
+ `[data-card-index="${r}"]`
155
+ )?.scrollIntoView({ behavior: i ? "instant" : "smooth", block: "nearest" });
156
+ },
157
+ [n]
158
+ ), g = C(() => {
159
+ if (a.size === 0) return;
160
+ const i = Math.min(...Array.from(a)) - 1;
161
+ i < 0 || f(i);
162
+ }, [a, f]), h = C(() => {
163
+ if (a.size === 0) return;
164
+ const i = Math.max(...Array.from(a)) + 1;
165
+ i >= t.length || f(i);
166
+ }, [a, t.length, f]), N = C(
167
+ (r) => {
168
+ (r.key === "ArrowRight" || r.key === "ArrowLeft") && (r.preventDefault(), r.key === "ArrowRight" ? h() : r.key === "ArrowLeft" && g());
169
+ },
170
+ [h, g]
171
+ );
172
+ M(() => {
173
+ const r = n.current;
174
+ if (!r) return;
175
+ const i = new IntersectionObserver(
176
+ (_) => {
177
+ y((d) => {
178
+ const p = new Set(d);
179
+ return _.forEach((s) => {
180
+ const e = Number(s.target.getAttribute("data-card-index"));
181
+ Number.isNaN(e) || (s.isIntersecting ? p.add(e) : p.delete(e));
182
+ }), p;
183
+ });
184
+ },
185
+ { root: r, threshold: 0.5 }
186
+ );
187
+ return t.forEach((_, d) => {
188
+ const p = r.querySelector(`[data-card-index="${d}"]`);
189
+ p && i.observe(p);
190
+ }), () => i.disconnect();
191
+ }, [n, t]), M(() => {
192
+ const r = n.current;
193
+ if (r)
194
+ return r.addEventListener("keydown", N), () => r.removeEventListener("keydown", N);
195
+ }, [n, N]);
196
+ const z = () => {
197
+ if (a.size === 0) return;
198
+ const r = [], i = a.size, _ = Math.min(...Array.from(a)), d = t.slice(0, _).length, p = t.slice(_ + i).length;
199
+ let s = 0;
200
+ for (let e = 0; e < t.length; e++) {
201
+ if (d + 1 !== e && d <= e && e < t.length - p) continue;
202
+ let b = "active";
203
+ (e < d || e > t.length - 1 - p) && (b = ""), r.push(
204
+ /* @__PURE__ */ o("li", { className: $(`${v}__indicator`, b) }, `indicator-${s++}`)
205
+ );
206
+ }
207
+ return r.length < 2 ? null : r;
208
+ };
209
+ return /* @__PURE__ */ u("li", { className: $(v), children: [
210
+ /* @__PURE__ */ o("ul", { className: $(`${v}__indicators`), children: z() }),
211
+ /* @__PURE__ */ u("div", { className: $(`${v}__buttons`), children: [
212
+ /* @__PURE__ */ o(
213
+ P,
214
+ {
215
+ "aria-label": l.previous,
216
+ variant: "secondary",
217
+ iconOnly: !0,
218
+ className: $(`${v}__button`),
219
+ disabled: a.has(0),
220
+ onClick: g,
221
+ children: /* @__PURE__ */ o(Z, { className: $(`${v}__button-icon`), size: "xs" })
222
+ }
223
+ ),
224
+ /* @__PURE__ */ o(
225
+ P,
226
+ {
227
+ "aria-label": l.next,
228
+ variant: "secondary",
229
+ iconOnly: !0,
230
+ className: $(`${v}__button`),
231
+ disabled: a.has(t.length - 1),
232
+ onClick: h,
233
+ children: /* @__PURE__ */ o(rr, { className: $(`${v}__button-icon`), size: "xs" })
234
+ }
235
+ )
236
+ ] })
237
+ ] });
238
+ }, R = D.bind(er), x = "purpur-comparison-table", _r = ({
239
+ classname: t,
240
+ features: n,
241
+ items: l,
242
+ ariaLabels: a,
243
+ variant: y = "primary"
244
+ }) => {
245
+ const f = G(), g = R(t, x, `${x}--${y}`), h = A(null), [N, z] = V(!1), r = C(() => {
246
+ z((s) => !s);
247
+ }, []), i = () => /* @__PURE__ */ u("li", { className: R(`${x}__cards`), children: [
248
+ /* @__PURE__ */ o("div", { className: R(`${x}__separator`) }),
249
+ l.map((s, e) => /* @__PURE__ */ J(
250
+ cr,
251
+ {
252
+ ...s,
253
+ showFullDescriptions: N,
254
+ toggleShowFullDescriptions: r,
255
+ key: e,
256
+ isFirstCard: e === 0,
257
+ ariaLabels: a,
258
+ cardIndex: e,
259
+ id: `${e}-${f}`
260
+ }
261
+ ))
262
+ ] }), _ = () => Object.entries(n).map(([s, e], b) => /* @__PURE__ */ u("li", { className: R(`${x}__feature-row`), children: [
263
+ /* @__PURE__ */ o(sr, { title: s, description: e }),
264
+ l.map((w, k) => /* @__PURE__ */ o(tr, { value: w.features[s] ?? !1 }, k))
265
+ ] }, b)), d = A(0), p = (s) => {
266
+ const e = s.currentTarget, b = e.querySelector("[data-card-id]")?.clientWidth ?? 0, w = Math.round(e.scrollLeft / b), k = w * b + w, I = s.timeStamp - d.current, T = Math.abs(e.scrollLeft - k);
267
+ d.current && I < 200 || T < 10 || (d.current = s.timeStamp, e.scrollTo({ left: k, behavior: "smooth" }));
268
+ };
269
+ return /* @__PURE__ */ o("div", { className: R(x + "__wrapper"), children: /* @__PURE__ */ u(
270
+ "ul",
271
+ {
272
+ id: x + `-${f}`,
273
+ ref: h,
274
+ className: g,
275
+ onScrollEnd: p,
276
+ style: {
277
+ // @ts-expect-error | Typescript doesn't recognize the CSS variable, but it works as intended
278
+ "--initial-columns": l.length + 1
279
+ },
280
+ children: [
281
+ /* @__PURE__ */ o(pr, { items: l, container: h, ariaLabels: a }),
282
+ i(),
283
+ _()
284
+ ]
285
+ }
286
+ ) });
287
+ };
288
+ _r.displayName = "ComparisonTable";
289
+ export {
290
+ _r as C
291
+ };
292
+ //# sourceMappingURL=comparison-table-CjTE-fHN.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comparison-table-CjTE-fHN.mjs","sources":["../../../components/comparison-table/src/components/Cell/cell.tsx","../../../components/comparison-table/src/components/LeadCell/lead-cell.tsx","../../../components/comparison-table/src/components/OptionCard/option-card.tsx","../../../components/comparison-table/src/components/ScrollProgress/scroll-progress.tsx","../../../components/comparison-table/src/comparison-table.tsx"],"sourcesContent":["import React, { isValidElement, type ReactNode } from \"react\";\nimport { IconCheckmark } from \"@purpur/icon/checkmark\";\nimport { IconMinus } from \"@purpur/icon/minus\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./cell.module.scss\";\n\ntype CellProps = {\n value: boolean | ReactNode;\n};\n\nconst cx = c.bind(styles);\n\nconst rootClassName = \"purpur-comparison-table-cell\";\n\nexport const Cell = ({ value }: CellProps) => {\n const isReactNode = isValidElement(value) || [\"string\", \"number\"].includes(typeof value);\n\n const getClassName = () => {\n if (isReactNode) return \"\";\n return `${rootClassName}--${value ? \"check\" : \"minus\"}`;\n };\n\n const classes = cx(rootClassName, [getClassName()]);\n\n const Icon = value ? IconCheckmark : IconMinus;\n\n return (\n <span className={cx(classes)}>\n {isReactNode ? value : <Icon size=\"xs\" className={cx(`${rootClassName}__icon`)} />}\n </span>\n );\n};\n","import React, { type ReactNode } from \"react\";\nimport { IconChevronDown } from \"@purpur/icon/chevron-down\";\nimport { Paragraph } from \"@purpur/paragraph\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./lead-cell.module.scss\";\n\ntype LeadCellProps = {\n title: string;\n description?: ReactNode;\n};\n\nconst cx = c.bind(styles);\n\nconst rootClassName = \"purpur-comparison-table-lead-cell\";\n\nexport const LeadCell = ({ title, description }: LeadCellProps) => {\n const isExpandable = typeof description === \"string\";\n const classes = cx(rootClassName);\n\n return (\n <details className={classes} data-is-expandable={isExpandable}>\n <summary className={cx(`${rootClassName}__summary`)} tabIndex={isExpandable ? 0 : -1}>\n <Paragraph className={cx(`${rootClassName}__summary-title`)} variant=\"paragraph-100-bold\">\n {title}\n </Paragraph>\n <IconChevronDown className={cx(`${rootClassName}__summary-icon`)} size=\"sm\" />\n </summary>\n {description && (\n <Paragraph variant=\"paragraph-100\" className={cx(`${rootClassName}__description`)}>\n {description}\n </Paragraph>\n )}\n </details>\n );\n};\n","import React, { type ReactNode, useCallback, useEffect, useRef, useState } from \"react\";\nimport { Badge, type BadgeProps } from \"@purpur/badge\";\nimport { Button } from \"@purpur/button\";\nimport { Heading } from \"@purpur/heading\";\nimport { IconChevronDown } from \"@purpur/icon/chevron-down\";\nimport { Paragraph } from \"@purpur/paragraph\";\nimport c from \"classnames/bind\";\n\nimport { type ComparisonTableProps } from \"../../comparison-table\";\nimport styles from \"./option-card.module.scss\";\n\nconst cx = c.bind(styles);\n\nconst rootClassName = \"purpur-comparison-table-option-card\";\n\nexport type OptionCardProps = {\n image: {\n src: string;\n alt: string;\n };\n\n title: string;\n description: string;\n variablePriceText: string;\n price: string;\n\n actions: ReactNode;\n\n badge?: BadgeProps;\n isHighlighted?: boolean;\n};\n\ntype OptionCardPropsAdditions = {\n id: string;\n cardIndex: number;\n isFirstCard: boolean;\n ariaLabels: ComparisonTableProps[\"ariaLabels\"];\n\n showFullDescriptions: boolean;\n toggleShowFullDescriptions: () => void;\n};\n\nexport const OptionCard = ({\n id,\n cardIndex,\n description,\n variablePriceText,\n price,\n isHighlighted,\n ariaLabels,\n badge,\n actions,\n isFirstCard,\n image,\n title,\n showFullDescriptions,\n toggleShowFullDescriptions,\n}: OptionCardProps & OptionCardPropsAdditions) => {\n const descriptionRef = useRef<HTMLParagraphElement>(null);\n const descriptionContentRef = useRef<HTMLSpanElement>(null);\n const showFullDescriptionsRef = useRef(showFullDescriptions);\n const [descriptionOverflows, setDescriptionOverflows] = useState(false);\n\n const classes = cx(rootClassName, {\n [`${rootClassName}--highlighted`]: isHighlighted,\n [`${rootClassName}--first-card`]: isFirstCard,\n [`${rootClassName}--show-full-descriptions`]: showFullDescriptions,\n });\n\n useEffect(() => {\n showFullDescriptionsRef.current = showFullDescriptions;\n }, [showFullDescriptions]);\n\n const checkDescriptionOverflow = useCallback(() => {\n if (showFullDescriptionsRef.current) {\n return;\n }\n\n const description = descriptionRef.current;\n const descriptionContent = descriptionContentRef.current;\n\n if (!description || !descriptionContent) {\n setDescriptionOverflows(false);\n return;\n }\n\n const descriptionHeight = description.clientHeight;\n const contentHeight = descriptionContent.offsetHeight;\n\n setDescriptionOverflows(contentHeight > descriptionHeight + 1);\n }, []);\n\n useEffect(() => {\n const descriptionElement = descriptionRef.current;\n\n checkDescriptionOverflow();\n\n if (!descriptionElement || typeof ResizeObserver === \"undefined\") {\n return undefined;\n }\n\n const resizeObserver = new ResizeObserver(checkDescriptionOverflow);\n resizeObserver.observe(descriptionElement);\n\n return () => {\n resizeObserver.disconnect();\n };\n }, [checkDescriptionOverflow, description]);\n\n const renderDescription = () => {\n if (!description) return null;\n\n return (\n <div className={cx(`${rootClassName}__description`)}>\n <Paragraph ref={descriptionRef} className={cx(`${rootClassName}__description-text`)}>\n <span ref={descriptionContentRef}>{description}</span>\n </Paragraph>\n <Button\n variant=\"text\"\n size=\"xs\"\n className={cx(`${rootClassName}__read-more`, {\n [`${rootClassName}__read-more--hidden`]: !descriptionOverflows,\n })}\n onClick={toggleShowFullDescriptions}\n aria-hidden={!descriptionOverflows}\n tabIndex={descriptionOverflows ? undefined : -1}\n >\n <span className={cx(`${rootClassName}__read-more-text`)}>\n {showFullDescriptions ? ariaLabels.readLess : ariaLabels.readMore}\n </span>\n <IconChevronDown className={cx(`${rootClassName}__read-more-icon`)} size=\"xs\" />\n </Button>\n </div>\n );\n };\n\n return (\n <article className={classes} data-card-id={id} data-card-index={cardIndex}>\n {badge && <Badge {...badge} className={cx(`${rootClassName}__badge`)} />}\n\n <section className={cx(`${rootClassName}__main-content`)}>\n <img src={image.src} alt={image.alt} className={cx(`${rootClassName}__image`)} />\n\n <div className={cx(`${rootClassName}__body`)}>\n <Heading tag=\"h3\" variant=\"title-200\" className={cx(`${rootClassName}__title`)}>\n {title}\n </Heading>\n {renderDescription()}\n </div>\n </section>\n\n <footer className={cx(`${rootClassName}__footer`)}>\n <span className={cx(`${rootClassName}__price`)} id={id}>\n <Paragraph variant=\"paragraph-100\">{variablePriceText}</Paragraph>\n <Paragraph variant=\"paragraph-100-bold\">{price}</Paragraph>\n </span>\n\n {actions}\n </footer>\n </article>\n );\n};\n","import React, { type RefObject, useCallback, useEffect, useState } from \"react\";\nimport { Button } from \"@purpur/button\";\nimport { IconArrowLeft } from \"@purpur/icon/arrow-left\";\nimport { IconArrowRight } from \"@purpur/icon/arrow-right\";\nimport c from \"classnames/bind\";\n\nimport { type ComparisonTableProps, type Features, type Item } from \"../../comparison-table\";\nimport styles from \"./scroll-progress.module.scss\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-comparison-table-scroll-progress\";\n\ntype ScrollProgressProps = {\n items: Array<Item<Features>>;\n container: RefObject<HTMLUListElement | null>;\n ariaLabels: ComparisonTableProps[\"ariaLabels\"];\n};\n\nexport const ScrollProgress = ({ items, container, ariaLabels }: ScrollProgressProps) => {\n const [inViewSet, setInViewSet] = useState<Set<number>>(new Set());\n\n const scrollToCard = useCallback(\n (index: number) => {\n const reduceMotion = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n\n const card = container.current?.querySelector(\n `[data-card-index=\"${index}\"]`\n ) as HTMLElement | null;\n card?.scrollIntoView({ behavior: reduceMotion ? \"instant\" : \"smooth\", block: \"nearest\" });\n },\n [container]\n );\n\n const previousCard = useCallback(() => {\n if (inViewSet.size === 0) return;\n\n const leftmostactiveIndex = Math.min(...Array.from(inViewSet));\n const targetIndex = leftmostactiveIndex - 1;\n\n if (targetIndex < 0) return;\n\n scrollToCard(targetIndex);\n }, [inViewSet, scrollToCard]);\n\n const nextCard = useCallback(() => {\n if (inViewSet.size === 0) return;\n\n const rightmostactiveIndex = Math.max(...Array.from(inViewSet));\n const targetIndex = rightmostactiveIndex + 1;\n\n if (targetIndex >= items.length) return;\n\n scrollToCard(targetIndex);\n }, [inViewSet, items.length, scrollToCard]);\n\n const handleKeyDown = useCallback(\n (e: KeyboardEvent) => {\n if (e.key === \"ArrowRight\" || e.key === \"ArrowLeft\") {\n e.preventDefault();\n\n if (e.key === \"ArrowRight\") nextCard();\n else if (e.key === \"ArrowLeft\") previousCard();\n }\n },\n [nextCard, previousCard]\n );\n\n useEffect(() => {\n const root = container.current;\n\n if (!root) return;\n\n const observer = new IntersectionObserver(\n (entries) => {\n setInViewSet((prev) => {\n const next = new Set(prev);\n\n entries.forEach((entry) => {\n const index = Number(entry.target.getAttribute(\"data-card-index\"));\n\n if (Number.isNaN(index)) return;\n\n if (entry.isIntersecting) {\n next.add(index);\n } else {\n next.delete(index);\n }\n });\n return next;\n });\n },\n { root, threshold: 0.5 }\n );\n\n items.forEach((_, index) => {\n const card = root.querySelector(`[data-card-index=\"${index}\"]`) as HTMLElement | null;\n\n if (card) observer.observe(card);\n });\n\n return () => observer.disconnect();\n }, [container, items]);\n\n useEffect(() => {\n const root = container.current;\n\n if (!root) return;\n\n root.addEventListener(\"keydown\", handleKeyDown);\n\n return () => root.removeEventListener(\"keydown\", handleKeyDown);\n }, [container, handleKeyDown]);\n\n const renderIndicators = () => {\n if (inViewSet.size === 0) return;\n\n const indicators = [];\n const viewCapacity = inViewSet.size;\n const leftmostActiveIndex = Math.min(...Array.from(inViewSet));\n const head = items.slice(0, leftmostActiveIndex).length;\n const trail = items.slice(leftmostActiveIndex + viewCapacity).length;\n\n let key = 0;\n\n for (let i = 0; i < items.length; i++) {\n if (head + 1 !== i && head <= i && i < items.length - trail) continue;\n\n let status = \"active\";\n\n if (i < head || i > items.length - 1 - trail) status = \"\";\n\n indicators.push(\n <li key={`indicator-${key++}`} className={cx(`${rootClassName}__indicator`, status)} />\n );\n }\n\n if (indicators.length < 2) return null;\n\n return indicators;\n };\n\n return (\n <li className={cx(rootClassName)}>\n <ul className={cx(`${rootClassName}__indicators`)}>{renderIndicators()}</ul>\n\n <div className={cx(`${rootClassName}__buttons`)}>\n <Button\n aria-label={ariaLabels.previous}\n variant=\"secondary\"\n iconOnly\n className={cx(`${rootClassName}__button`)}\n disabled={inViewSet.has(0)}\n onClick={previousCard}\n >\n <IconArrowLeft className={cx(`${rootClassName}__button-icon`)} size=\"xs\" />\n </Button>\n <Button\n aria-label={ariaLabels.next}\n variant=\"secondary\"\n iconOnly\n className={cx(`${rootClassName}__button`)}\n disabled={inViewSet.has(items.length - 1)}\n onClick={nextCard}\n >\n <IconArrowRight className={cx(`${rootClassName}__button-icon`)} size=\"xs\" />\n </Button>\n </div>\n </li>\n );\n};\n","import React, { type ReactNode, type UIEvent, useCallback, useId, useRef, useState } from \"react\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./comparison-table.module.scss\";\nimport { Cell } from \"./components/Cell/cell\";\nimport { LeadCell } from \"./components/LeadCell/lead-cell\";\nimport { OptionCard, type OptionCardProps } from \"./components/OptionCard/option-card\";\nimport { ScrollProgress } from \"./components/ScrollProgress/scroll-progress\";\n\nconst cx = c.bind(styles);\n\nconst rootClassName = \"purpur-comparison-table\";\n\nexport type Features = Record<string, ReactNode | null>;\n\nexport type Item<TFeatures extends Features = Features> = OptionCardProps & {\n features: Partial<Record<keyof TFeatures, ReactNode | string | boolean>>;\n};\n\nexport type ComparisonTableProps<TFeatures extends Features = Features> = {\n /** List of features that can be supported by the comparison table\n *\n * string = description of the feature that can be viewed by expanding cell.\n *\n * null = no description\n *\n {\n [featureName]: ReactNode | null\n }\n */\n features: TFeatures;\n\n /** List of items to be displayed in the comparison table\n *\n *\n Item = {\n image: {\n src: string;\n alt: string;\n };\n\n title: string;\n description: string;\n variablePriceText: string;\n price: string;\n actions: ReactNode;\n badge?: BadgeProps;\n isHighlighted?: boolean;\n\n features: {\n [featureName in keyof Features]?: string | boolean;\n };\n }\n */\n items: Array<Item<TFeatures>>;\n\n /** Aria labels for the comparison table and various components\n *\n {\n previous: string;\n next: string;\n readMore: string;\n readLess: string;\n }\n */\n ariaLabels: {\n previous: string;\n next: string;\n readMore: string;\n readLess: string;\n };\n variant?: \"primary\" | \"secondary\";\n classname?: string;\n};\n\nexport const ComparisonTable = <TFeatures extends Features>({\n classname,\n features,\n items,\n ariaLabels,\n variant = \"primary\",\n}: ComparisonTableProps<TFeatures>) => {\n const id = useId();\n const classes = cx(classname, rootClassName, `${rootClassName}--${variant}`);\n const containerRef = useRef<HTMLUListElement>(null);\n const [showFullDescriptions, setShowFullDescriptions] = useState(false);\n\n const handleToggleShowFullDescriptions = useCallback(() => {\n setShowFullDescriptions((prev) => !prev);\n }, []);\n\n const renderCards = () => {\n return (\n <li className={cx(`${rootClassName}__cards`)}>\n <div className={cx(`${rootClassName}__separator`)} />\n {items.map((item, index) => (\n <OptionCard\n {...item}\n showFullDescriptions={showFullDescriptions}\n toggleShowFullDescriptions={handleToggleShowFullDescriptions}\n key={index}\n isFirstCard={index === 0}\n ariaLabels={ariaLabels}\n cardIndex={index}\n id={`${index}-${id}`}\n />\n ))}\n </li>\n );\n };\n\n const renderFeatures = () => {\n return Object.entries(features).map(([title, description], i) => (\n <li key={i} className={cx(`${rootClassName}__feature-row`)}>\n <LeadCell title={title} description={description} />\n {items.map((item, index) => (\n <Cell key={index} value={item.features[title as keyof TFeatures] ?? false} />\n ))}\n </li>\n ));\n };\n\n const deltaTime = useRef(0);\n\n const handleScrollEnd = (e: UIEvent<HTMLUListElement>) => {\n /**\n * This function makes sure that the scroll position is never stuck between two cards, since scroll snap is not fully reliable.\n */\n\n const target = e.currentTarget;\n const cardwidth = target.querySelector(\"[data-card-id]\")?.clientWidth ?? 0;\n const cardPos = Math.round(target.scrollLeft / cardwidth);\n const scrollTarget = cardPos * cardwidth + cardPos;\n const timeDiff = e.timeStamp - deltaTime.current;\n const scrollDiff = Math.abs(target.scrollLeft - scrollTarget);\n\n if (deltaTime.current && timeDiff < 200) return;\n if (scrollDiff < 10) return;\n\n deltaTime.current = e.timeStamp;\n\n target.scrollTo({ left: scrollTarget, behavior: \"smooth\" });\n };\n\n return (\n <div className={cx(rootClassName + \"__wrapper\")}>\n <ul\n id={rootClassName + `-${id}`}\n ref={containerRef}\n className={classes}\n // eslint-disable-next-line react/no-unknown-property\n onScrollEnd={handleScrollEnd}\n style={{\n // @ts-expect-error | Typescript doesn't recognize the CSS variable, but it works as intended\n [\"--initial-columns\"]: items.length + 1,\n }}\n >\n <ScrollProgress items={items} container={containerRef} ariaLabels={ariaLabels} />\n {renderCards()}\n {renderFeatures()}\n </ul>\n </div>\n );\n};\n\nComparisonTable.displayName = \"ComparisonTable\";\n"],"names":["cx","c","styles","rootClassName","Cell","value","isReactNode","isValidElement","classes","Icon","IconCheckmark","IconMinus","jsx","LeadCell","title","description","isExpandable","jsxs","Paragraph","IconChevronDown","OptionCard","id","cardIndex","variablePriceText","price","isHighlighted","ariaLabels","badge","actions","isFirstCard","image","showFullDescriptions","toggleShowFullDescriptions","descriptionRef","useRef","descriptionContentRef","showFullDescriptionsRef","descriptionOverflows","setDescriptionOverflows","useState","useEffect","checkDescriptionOverflow","useCallback","descriptionContent","descriptionHeight","contentHeight","descriptionElement","resizeObserver","renderDescription","Button","Badge","Heading","ScrollProgress","items","container","inViewSet","setInViewSet","scrollToCard","index","reduceMotion","previousCard","targetIndex","nextCard","handleKeyDown","e","root","observer","entries","prev","next","entry","card","renderIndicators","indicators","viewCapacity","leftmostActiveIndex","head","trail","key","i","status","IconArrowLeft","IconArrowRight","ComparisonTable","classname","features","variant","useId","containerRef","setShowFullDescriptions","handleToggleShowFullDescriptions","renderCards","item","createElement","renderFeatures","deltaTime","handleScrollEnd","target","cardwidth","cardPos","scrollTarget","timeDiff","scrollDiff"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;GAWMA,IAAKC,EAAE,KAAKC,EAAM,GAElBC,IAAgB,gCAETC,KAAO,CAAC,EAAE,OAAAC,QAAuB;AAC5C,QAAMC,IAAcC,EAAeF,CAAK,KAAK,CAAC,UAAU,QAAQ,EAAE,SAAS,OAAOA,CAAK,GAOjFG,IAAUR,EAAGG,GAAe,CAJ5BG,IAAoB,KACjB,GAAGH,CAAa,KAAKE,IAAQ,UAAU,OAAO,EAGN,CAAC,GAE5CI,IAAOJ,IAAQK,IAAgBC;AAErC,2BACG,QAAA,EAAK,WAAWX,EAAGQ,CAAO,GACxB,cAAcH,IAAQ,gBAAAO,EAACH,GAAA,EAAK,MAAK,MAAK,WAAWT,EAAG,GAAGG,CAAa,QAAQ,GAAG,GAClF;AAEJ;;;;;;GCpBMH,IAAKC,EAAE,KAAKC,EAAM,GAElBC,IAAgB,qCAETU,KAAW,CAAC,EAAE,OAAAC,GAAO,aAAAC,QAAiC;AACjE,QAAMC,IAAe,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"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./comparison-table-C74IAVqz.js");exports.ComparisonTable=e.ComparisonTable;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./comparison-table-0UDB2BTU.js");exports.ComparisonTable=e.ComparisonTable;
2
2
  //# sourceMappingURL=comparison-table.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { C as r } from "./comparison-table-DctKxmX9.mjs";
1
+ import { C as r } from "./comparison-table-CjTE-fHN.mjs";
2
2
  export {
3
3
  r as ComparisonTable
4
4
  };
@@ -0,0 +1,2 @@
1
+ export declare const AVATAR_SIZE: readonly ["xxs", "xs", "sm", "md", "lg"];
2
+ //# sourceMappingURL=avatar-constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar-constants.d.ts","sourceRoot":"","sources":["../../../../../../components/avatar/src/avatar-constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,0CAA2C,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ import { AVATAR_SIZE } from './avatar-constants';
3
+ export type AvatarSize = (typeof AVATAR_SIZE)[number];
4
+ type AvatarBaseProps = {
5
+ className?: string;
6
+ /** Text or element rendered inside the avatar, typically initials. */
7
+ label: ReactNode;
8
+ size?: AvatarSize;
9
+ };
10
+ type AvatarDecorativeProps = AvatarBaseProps & {
11
+ /** Hides the avatar from assistive technologies. */
12
+ decorative: true;
13
+ "aria-label"?: never;
14
+ };
15
+ type AvatarAccessibleProps = AvatarBaseProps & {
16
+ /** Accessible label for assistive technologies. Required when avatar is not decorative. */
17
+ "aria-label": string;
18
+ decorative?: false;
19
+ };
20
+ export type AvatarProps = AvatarDecorativeProps | AvatarAccessibleProps;
21
+ export declare const Avatar: {
22
+ (props: AvatarProps): React.JSX.Element;
23
+ displayName: string;
24
+ };
25
+ export {};
26
+ //# sourceMappingURL=avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../../../components/avatar/src/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAKtD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,KAAK,eAAe,GAAG;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,KAAK,qBAAqB,GAAG,eAAe,GAAG;IAC7C,oDAAoD;IACpD,UAAU,EAAE,IAAI,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB,CAAC;AAEF,KAAK,qBAAqB,GAAG,eAAe,GAAG;IAC7C,2FAA2F;IAC3F,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,KAAK,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,qBAAqB,GAAG,qBAAqB,CAAC;AAExE,eAAO,MAAM,MAAM;YAAW,WAAW;;CAiBxC,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { default as React } from 'react';
2
+ import { sizes } from '../../../libraries/action/src/action';
3
+ import { ButtonProps } from './button';
4
+ export type ButtonVisualState = "default" | "hover" | "active" | "disabled" | "loading";
5
+ export type ButtonVisualSize = (typeof sizes)[number];
6
+ export type ButtonVisualAppearance = "regular" | "negative" | "ai" | "ai-negative";
7
+ export type ButtonVisualAppearanceGroup = "default-surface" | "negative-surface";
8
+ export type ButtonVisualLayout = LayoutMode;
9
+ export type ButtonVisualLayoutGroup = "text" | "icon-only";
10
+ type LayoutMode = "text" | "icon-only";
11
+ type VisualCell = {
12
+ id: string;
13
+ label: string;
14
+ state: ButtonVisualState;
15
+ props: ButtonProps;
16
+ surface: "default" | "negative";
17
+ };
18
+ type VisualSection = {
19
+ key: string;
20
+ title: string;
21
+ surface: "default" | "negative";
22
+ cells: VisualCell[];
23
+ };
24
+ type VisualGroup = {
25
+ key: ButtonVisualLayoutGroup;
26
+ title: string;
27
+ description: string;
28
+ sections: VisualSection[];
29
+ };
30
+ export declare const buttonVisualStates: ButtonVisualState[];
31
+ export declare const buttonVisualSizes: ("xs" | "sm" | "md" | "lg")[];
32
+ export declare const buttonVisualAppearanceGroups: ButtonVisualAppearanceGroup[];
33
+ export declare const buttonVisualAppearancesByGroup: Record<ButtonVisualAppearanceGroup, ButtonVisualAppearance[]>;
34
+ export declare const buttonVisualLayouts: LayoutMode[];
35
+ export declare const buttonVisualLayoutGroups: ButtonVisualLayoutGroup[];
36
+ export declare const createVisualGroups: (state: ButtonVisualState, size: ButtonVisualSize, appearanceGroup: ButtonVisualAppearanceGroup) => VisualGroup[];
37
+ export declare const ButtonVisualBoard: ({ state, size, appearanceGroup, }: {
38
+ state: ButtonVisualState;
39
+ size: ButtonVisualSize;
40
+ appearanceGroup: ButtonVisualAppearanceGroup;
41
+ }) => React.JSX.Element;
42
+ export {};
43
+ //# sourceMappingURL=button.visual.fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.visual.fixtures.d.ts","sourceRoot":"","sources":["../../../../../../components/button/src/button.visual.fixtures.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGvC,OAAO,EAAU,KAAK,WAAW,EAAkB,MAAM,UAAU,CAAC;AAEpE,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AACxF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AACtD,MAAM,MAAM,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1B,UAAU,EAAE;QACV,UAAU,EAAE,MAAM,CAAC;QACnB,cAAc,EAAE,MAAM,CAAC;QACvB,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM,CAAC;YACb,KAAK,EAAE,MAAM,CAAC;YACd,SAAS,EAAE,MAAM,CAAC;SACnB,CAAC;KACH,CAAC;CACH,CAAC;AAIF,eAAO,MAAM,QAAQ;sEAMlB,aAAa;;0BAgIqB;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;CAFjE,CAAC"}
1
+ {"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../../../../components/carousel/src/carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgE,MAAM,OAAO,CAAC;AAOrF,OAAO,EAAE,KAAK,gBAAgB,EAAwB,MAAM,gBAAgB,CAAC;AAC7E,OAAiB,EAAE,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAc7E,KAAK,wBAAwB,GAAG,gBAAgB,GAAG;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7E,KAAK,kBAAkB,GACnB,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,wBAAwB,GAAG;QAClC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC;KACjE,CAAC;IACF,QAAQ,CAAC,EAAE,OAAO,GAAG,mBAAmB,CAAC;IACzC,oDAAoD;IACpD,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,mBAAmB,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAElD,+EAA+E;IAC/E,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,UAAU,EAAE;QACV,UAAU,EAAE,MAAM,CAAC;QACnB,cAAc,EAAE,MAAM,CAAC;QACvB,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM,CAAC;YACb,KAAK,EAAE,MAAM,CAAC;YACd,SAAS,EAAE,MAAM,CAAC;SACnB,CAAC;KACH,CAAC;CACH,CAAC;AAIF,eAAO,MAAM,QAAQ;sEAMlB,aAAa;;0BAkIqB;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;CAFjE,CAAC"}
@@ -1,11 +1,21 @@
1
- import { default as React } from 'react';
2
- import { BaseProps } from '../../../libraries/common-types/src/common-types';
3
- export declare const COLOR_DOT_SIZE: readonly ["xs", "sm", "md", "lg"];
4
- export type ColorDotSize = (typeof COLOR_DOT_SIZE)[number];
5
- export type ColorDotProps = Omit<BaseProps, "children"> & {
1
+ import { default as React, HTMLAttributes } from 'react';
2
+ export declare const STATIC_COLOR_DOT_SIZE: readonly ["xs", "sm", "md", "lg"];
3
+ export declare const BUTTON_COLOR_DOT_SIZE: ("sm" | "md" | "lg")[];
4
+ export type StaticColorDotSize = (typeof STATIC_COLOR_DOT_SIZE)[number];
5
+ export type ButtonColorDotSize = (typeof BUTTON_COLOR_DOT_SIZE)[number];
6
+ export type StaticColorDotProps = HTMLAttributes<HTMLDivElement> & {
7
+ variant?: "static";
8
+ isSelected?: never;
9
+ size: StaticColorDotSize;
10
+ };
11
+ export type ButtonColorDotProps = HTMLAttributes<HTMLButtonElement> & {
12
+ variant?: "button";
13
+ isSelected?: boolean;
14
+ size: ButtonColorDotSize;
15
+ };
16
+ export type ColorDotProps = {
6
17
  color: string;
7
- size: ColorDotSize;
8
18
  withBorder?: boolean;
9
- };
10
- export declare const ColorDot: ({ color, size, withBorder, className, style, ...props }: ColorDotProps) => React.JSX.Element;
19
+ } & (StaticColorDotProps | ButtonColorDotProps);
20
+ export declare const ColorDot: ({ size, withBorder, variant, ...props }: ColorDotProps) => React.JSX.Element;
11
21
  //# sourceMappingURL=color-dot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"color-dot.d.ts","sourceRoot":"","sources":["../../../../../../components/color-dot/src/color-dot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAQtD,eAAO,MAAM,cAAc,mCAAoC,CAAC;AAEhE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,yDAOtB,aAAa,sBAWf,CAAC"}
1
+ {"version":3,"file":"color-dot.d.ts","sourceRoot":"","sources":["../../../../../../components/color-dot/src/color-dot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAQnD,eAAO,MAAM,qBAAqB,mCAAoC,CAAC;AACvE,eAAO,MAAM,qBAAqB,wBAAwD,CAAC;AAE3F,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AACxE,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACjE,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,IAAI,EAAE,kBAAkB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,iBAAiB,CAAC,GAAG;IACpE,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,kBAAkB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,CAAC,mBAAmB,GAAG,mBAAmB,CAAC,CAAC;AAEhD,eAAO,MAAM,QAAQ,GAAI,yCAAoD,aAAa,sBAiBzF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"option-card.d.ts","sourceRoot":"","sources":["../../../../../../../../components/comparison-table/src/components/OptionCard/option-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAOvD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE;QACL,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IAEF,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IAEd,OAAO,EAAE,SAAS,CAAC;IAEnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAE/C,oBAAoB,EAAE,OAAO,CAAC;IAC9B,0BAA0B,EAAE,MAAM,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,mLAexB,eAAe,GAAG,wBAAwB,sBA4D5C,CAAC"}
1
+ {"version":3,"file":"option-card.d.ts","sourceRoot":"","sources":["../../../../../../../../components/comparison-table/src/components/OptionCard/option-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAC;AACxF,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAOvD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE;QACL,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IAEF,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IAEd,OAAO,EAAE,SAAS,CAAC;IAEnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAE/C,oBAAoB,EAAE,OAAO,CAAC;IAC9B,0BAA0B,EAAE,MAAM,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,mLAexB,eAAe,GAAG,wBAAwB,sBAwG5C,CAAC"}
@@ -5,6 +5,14 @@ import { DateRangeFieldProps } from '../../date-range-field/src/date-range-field
5
5
  import { Drawer } from '../../drawer/src/drawer';
6
6
  type CommonDatePickerProps = {
7
7
  calendarProps?: CalendarProps;
8
+ /**
9
+ * Optional DOM element to portal the calendar / drawer content into. When
10
+ * omitted, the overlay renders inside the nearest `ThemeProvider` so it
11
+ * inherits the active color scheme. Pass `document.body` (or any other
12
+ * element) to override. Pass `null` to fall back to the default
13
+ * (`document.body`).
14
+ */
15
+ container?: HTMLElement | null;
8
16
  drawerContentProps: Omit<ComponentProps<typeof Drawer.Content>, "children" | "backButton" | "backButtonText" | "backButtonOnlyIcon" | "onBackButtonClick" | "zIndex">;
9
17
  overlayZIndex?: number;
10
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../../../../components/date-picker/src/date-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,KAAK,cAAc,EASpB,MAAM,OAAO,CAAC;AAYf,OAAO,EAAY,KAAK,aAAa,EAAkB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpF,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAKxC,OAAO,2BAA2B,CAAC;AACnC,OAAO,iCAAiC,CAAC;AACzC,OAAO,yBAAyB,CAAC;AACjC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,qBAAqB,CAAC;AAK7B,KAAK,qBAAqB,GAAG;IAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,kBAAkB,EAAE,IAAI,CACtB,cAAc,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,EACnC,UAAU,GACV,YAAY,GACZ,gBAAgB,GAChB,oBAAoB,GACpB,mBAAmB,GACnB,QAAQ,CACX,CAAC;IACF,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF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AG,qBAAqB,GAChD,cAAc,GAAG;IACf,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,CAAC;AAEJ,KAAK,oBAAoB,GAAG,qBAAqB,GAC/C,mBAAmB,GAAG;IACpB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG,oBAAoB,CAAC;AAC3E,YAAY,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,CAAC;AAE5D,eAAO,MAAM,UAAU,oIAQtB,CAAC"}
@@ -17,6 +17,13 @@ export type DrawerContentProps = Omit<BaseProps, "children"> & {
17
17
  bodyText?: string;
18
18
  children: ReactNode;
19
19
  closeButtonAriaLabel: string;
20
+ /**
21
+ * Optional DOM element to portal the drawer content into. When omitted,
22
+ * the drawer renders inside the nearest `ThemeProvider` so it inherits
23
+ * the active color scheme. Pass `document.body` (or any other element) to
24
+ * override. Pass `null` to fall back to Radix' default (`document.body`).
25
+ */
26
+ container?: HTMLElement | null;
20
27
  disableCloseOnClickOutside?: boolean;
21
28
  /**
22
29
  * If true, the drawer height will fit to its content on small screens.
@@ -36,6 +43,13 @@ export declare const DrawerContent: React.ForwardRefExoticComponent<(Omit<Omit<R
36
43
  bodyText?: string;
37
44
  children: ReactNode;
38
45
  closeButtonAriaLabel: string;
46
+ /**
47
+ * Optional DOM element to portal the drawer content into. When omitted,
48
+ * the drawer renders inside the nearest `ThemeProvider` so it inherits
49
+ * the active color scheme. Pass `document.body` (or any other element) to
50
+ * override. Pass `null` to fall back to Radix' default (`document.body`).
51
+ */
52
+ container?: HTMLElement | null;
39
53
  disableCloseOnClickOutside?: boolean;
40
54
  /**
41
55
  * If true, the drawer height will fit to its content on small screens.
@@ -54,6 +68,13 @@ export declare const DrawerContent: React.ForwardRefExoticComponent<(Omit<Omit<R
54
68
  bodyText?: string;
55
69
  children: ReactNode;
56
70
  closeButtonAriaLabel: string;
71
+ /**
72
+ * Optional DOM element to portal the drawer content into. When omitted,
73
+ * the drawer renders inside the nearest `ThemeProvider` so it inherits
74
+ * the active color scheme. Pass `document.body` (or any other element) to
75
+ * override. Pass `null` to fall back to Radix' default (`document.body`).
76
+ */
77
+ container?: HTMLElement | null;
57
78
  disableCloseOnClickOutside?: boolean;
58
79
  /**
59
80
  * If true, the drawer height will fit to its content on small screens.
@@ -1 +1 @@
1
- {"version":3,"file":"drawer-content.d.ts","sourceRoot":"","sources":["../../../../../../components/drawer/src/drawer-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAOtD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKxC,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,kBAAkB,CAAC,EAAE,KAAK,CAAC;IAC3B,iBAAiB,CAAC,EAAE,KAAK,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,GAAG,CAAC,iBAAiB,GAAG,cAAc,CAAC,CAAC;AAIzC,eAAO,MAAM,aAAa;;;eAnBb,MAAM;cACP,SAAS;0BACG,MAAM;iCACC,OAAO;IACpC;;OAEG;mBACY,OAAO;oBACN,SAAS;oBACT,SAAS;mBACV,MAAM,IAAI;mBACV,OAAO;WACf,MAAM;aACJ,MAAM;eACJ,QAAQ;;;;eAdR,MAAM;cACP,SAAS;0BACG,MAAM;iCACC,OAAO;IACpC;;OAEG;mBACY,OAAO;oBACN,SAAS;oBACT,SAAS;mBACV,MAAM,IAAI;mBACV,OAAO;WACf,MAAM;aACJ,MAAM;eACJ,QAAQ;qEAwKpB,CAAC"}
1
+ {"version":3,"file":"drawer-content.d.ts","sourceRoot":"","sources":["../../../../../../components/drawer/src/drawer-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAQtD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKxC,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,kBAAkB,CAAC,EAAE,KAAK,CAAC;IAC3B,iBAAiB,CAAC,EAAE,KAAK,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC/B,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,GAAG,CAAC,iBAAiB,GAAG,cAAc,CAAC,CAAC;AAIzC,eAAO,MAAM,aAAa;;;eA1Bb,MAAM;cACP,SAAS;0BACG,MAAM;IAC5B;;;;;OAKG;gBACS,WAAW,GAAG,IAAI;iCACD,OAAO;IACpC;;OAEG;mBACY,OAAO;oBACN,SAAS;oBACT,SAAS;mBACV,MAAM,IAAI;mBACV,OAAO;WACf,MAAM;aACJ,MAAM;eACJ,QAAQ;;;;eArBR,MAAM;cACP,SAAS;0BACG,MAAM;IAC5B;;;;;OAKG;gBACS,WAAW,GAAG,IAAI;iCACD,OAAO;IACpC;;OAEG;mBACY,OAAO;oBACN,SAAS;oBACT,SAAS;mBACV,MAAM,IAAI;mBACV,OAAO;WACf,MAAM;aACJ,MAAM;eACJ,QAAQ;qEA4KpB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { HeroBannerProps } from './hero-banner';
3
+ type HeroBannerVisualScenario = {
4
+ key: string;
5
+ title: string;
6
+ createProps: () => HeroBannerProps;
7
+ };
8
+ export declare const heroBannerVisualScenarios: HeroBannerVisualScenario[];
9
+ export declare const getHeroBannerVisualTestId: (scenarioKey: string) => string;
10
+ export declare const HeroBannerVisualScenarioRoot: ({ scenarioKey }: {
11
+ scenarioKey: string;
12
+ }) => React.JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=hero-banner.visual.fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hero-banner.visual.fixtures.d.ts","sourceRoot":"","sources":["../../../../../../components/hero-banner/src/hero-banner.visual.fixtures.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAc,KAAK,eAAe,EAAsB,MAAM,eAAe,CAAC;AAGrF,KAAK,wBAAwB,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,eAAe,CAAC;CACpC,CAAC;AAuEF,eAAO,MAAM,yBAAyB,EAAE,wBAAwB,EAkE/D,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,aAAa,MAAM,WACxB,CAAC;AAEtC,eAAO,MAAM,4BAA4B,GAAI,iBAAiB;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,sBAUpF,CAAC"}