@purpur/library 9.6.0 → 9.7.1

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 (288) hide show
  1. package/CHANGELOG.json +57 -0
  2. package/CHANGELOG.md +26 -1
  3. package/dist/LICENSE.txt +7 -7
  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/carousel-BIKcwvYz.mjs +1658 -0
  9. package/dist/carousel-BIKcwvYz.mjs.map +1 -0
  10. package/dist/carousel-DnSaLDZf.js +2 -0
  11. package/dist/carousel-DnSaLDZf.js.map +1 -0
  12. package/dist/carousel.cjs.js +1 -1
  13. package/dist/carousel.es.js +1 -1
  14. package/dist/{comparison-table-Nhp5W6Yc.js → comparison-table-0UDB2BTU.js} +2 -2
  15. package/dist/{comparison-table-Nhp5W6Yc.js.map → comparison-table-0UDB2BTU.js.map} +1 -1
  16. package/dist/{comparison-table-CZMKl1TX.mjs → comparison-table-CjTE-fHN.mjs} +48 -48
  17. package/dist/{comparison-table-CZMKl1TX.mjs.map → comparison-table-CjTE-fHN.mjs.map} +1 -1
  18. package/dist/comparison-table.cjs.js +1 -1
  19. package/dist/comparison-table.es.js +1 -1
  20. package/dist/components/button/src/button.d.ts +1 -1
  21. package/dist/components/button/src/button.visual.fixtures.d.ts +43 -0
  22. package/dist/components/button/src/button.visual.fixtures.d.ts.map +1 -0
  23. package/dist/components/carousel/src/carousel.d.ts.map +1 -1
  24. package/dist/components/date-picker/src/date-picker.d.ts +8 -0
  25. package/dist/components/date-picker/src/date-picker.d.ts.map +1 -1
  26. package/dist/components/drawer/src/drawer-content.d.ts +21 -0
  27. package/dist/components/drawer/src/drawer-content.d.ts.map +1 -1
  28. package/dist/components/hero-banner/src/hero-banner.visual.fixtures.d.ts +14 -0
  29. package/dist/components/hero-banner/src/hero-banner.visual.fixtures.d.ts.map +1 -0
  30. package/dist/components/modal/src/modal-content.d.ts +21 -0
  31. package/dist/components/modal/src/modal-content.d.ts.map +1 -1
  32. package/dist/components/modal/src/modal.d.ts +2 -0
  33. package/dist/components/modal/src/modal.d.ts.map +1 -1
  34. package/dist/components/popover/src/popover-content.d.ts +14 -0
  35. package/dist/components/popover/src/popover-content.d.ts.map +1 -1
  36. package/dist/components/radio-card-group/src/is-radio-card-item.d.ts +4 -0
  37. package/dist/components/radio-card-group/src/is-radio-card-item.d.ts.map +1 -0
  38. package/dist/components/radio-card-group/src/radio-card-group.constants.d.ts +5 -0
  39. package/dist/components/radio-card-group/src/radio-card-group.constants.d.ts.map +1 -0
  40. package/dist/components/radio-card-group/src/radio-card-group.d.ts +5 -6
  41. package/dist/components/radio-card-group/src/radio-card-group.d.ts.map +1 -1
  42. package/dist/components/radio-card-group/src/radio-card-item.d.ts +1 -2
  43. package/dist/components/radio-card-group/src/radio-card-item.d.ts.map +1 -1
  44. package/dist/components/search-field/src/search-field-autocomplete.d.ts +6 -3
  45. package/dist/components/search-field/src/search-field-autocomplete.d.ts.map +1 -1
  46. package/dist/components/search-field/src/search-field-base.d.ts +10 -3
  47. package/dist/components/search-field/src/search-field-base.d.ts.map +1 -1
  48. package/dist/components/search-field/src/search-field-button.d.ts +3 -1
  49. package/dist/components/search-field/src/search-field-button.d.ts.map +1 -1
  50. package/dist/components/search-field/src/search-field.d.ts +12 -6
  51. package/dist/components/search-field/src/search-field.d.ts.map +1 -1
  52. package/dist/components/table/src/drag-indicator-circle.d.ts +8 -1
  53. package/dist/components/table/src/drag-indicator-circle.d.ts.map +1 -1
  54. package/dist/components/table/src/table.d.ts.map +1 -1
  55. package/dist/components/tooltip/src/tooltip.d.ts +21 -0
  56. package/dist/components/tooltip/src/tooltip.d.ts.map +1 -1
  57. package/dist/components-metadata.js +0 -2
  58. package/dist/date-picker-CIizn3Pv.js +2 -0
  59. package/dist/{date-picker-uyPKJulK.js.map → date-picker-CIizn3Pv.js.map} +1 -1
  60. package/dist/date-picker-DixxW60s.mjs +1617 -0
  61. package/dist/{date-picker-CzxhZxsw.mjs.map → date-picker-DixxW60s.mjs.map} +1 -1
  62. package/dist/date-picker.cjs.js +1 -1
  63. package/dist/date-picker.es.js +1 -1
  64. package/dist/drawer-BzkRd9F0.mjs +577 -0
  65. package/dist/drawer-BzkRd9F0.mjs.map +1 -0
  66. package/dist/drawer-DyhsP34o.js +2 -0
  67. package/dist/drawer-DyhsP34o.js.map +1 -0
  68. package/dist/drawer.cjs.js +1 -1
  69. package/dist/drawer.es.js +1 -1
  70. package/dist/{footer-D9AcPwlH.js → footer-3Y-664-8.js} +2 -2
  71. package/dist/{footer-D9AcPwlH.js.map → footer-3Y-664-8.js.map} +1 -1
  72. package/dist/{footer-BLPlXaZK.mjs → footer-DenAcikt.mjs} +3 -3
  73. package/dist/{footer-BLPlXaZK.mjs.map → footer-DenAcikt.mjs.map} +1 -1
  74. package/dist/footer.cjs.js +1 -1
  75. package/dist/footer.es.js +1 -1
  76. package/dist/{hero-banner-DkC_BqM7.mjs → hero-banner-B7xrDfzN.mjs} +2 -2
  77. package/dist/{hero-banner-DkC_BqM7.mjs.map → hero-banner-B7xrDfzN.mjs.map} +1 -1
  78. package/dist/{hero-banner-D1A-_qou.js → hero-banner-DthITuQ7.js} +2 -2
  79. package/dist/{hero-banner-D1A-_qou.js.map → hero-banner-DthITuQ7.js.map} +1 -1
  80. package/dist/hero-banner.cjs.js +1 -1
  81. package/dist/hero-banner.es.js +1 -1
  82. package/dist/libraries/theme/src/ThemeProvider.d.ts.map +1 -1
  83. package/dist/libraries/theme/src/theme.d.ts +1 -0
  84. package/dist/libraries/theme/src/theme.d.ts.map +1 -1
  85. package/dist/libraries/theme/src/types.d.ts +7 -0
  86. package/dist/libraries/theme/src/types.d.ts.map +1 -1
  87. package/dist/libraries/theme/src/useThemePortalContainer.d.ts +12 -0
  88. package/dist/libraries/theme/src/useThemePortalContainer.d.ts.map +1 -0
  89. package/dist/library.cjs.js +1 -1
  90. package/dist/library.es.js +469 -469
  91. package/dist/library.es.js.map +1 -1
  92. package/dist/modal-DJn9idcw.js +2 -0
  93. package/dist/modal-DJn9idcw.js.map +1 -0
  94. package/dist/{modal-fp37VbrH.mjs → modal-EIP36327.mjs} +83 -80
  95. package/dist/modal-EIP36327.mjs.map +1 -0
  96. package/dist/modal.cjs.js +1 -1
  97. package/dist/modal.es.js +1 -1
  98. package/dist/{popover-I26xNbTz.mjs → popover-DERrvReO.mjs} +328 -325
  99. package/dist/popover-DERrvReO.mjs.map +1 -0
  100. package/dist/popover-DnGgzfQr.js +2 -0
  101. package/dist/popover-DnGgzfQr.js.map +1 -0
  102. package/dist/popover.cjs.js +1 -1
  103. package/dist/popover.es.js +1 -1
  104. package/dist/{promotion-card-BiHnQvhn.mjs → promotion-card-BnzIVNQ4.mjs} +2 -2
  105. package/dist/{promotion-card-BiHnQvhn.mjs.map → promotion-card-BnzIVNQ4.mjs.map} +1 -1
  106. package/dist/{promotion-card-Bag64gqP.js → promotion-card-DKc2Cx1h.js} +2 -2
  107. package/dist/{promotion-card-Bag64gqP.js.map → promotion-card-DKc2Cx1h.js.map} +1 -1
  108. package/dist/promotion-card.cjs.js +1 -1
  109. package/dist/promotion-card.es.js +1 -1
  110. package/dist/purpur.css +1 -1
  111. package/dist/radio-card-group-ZBXjYcQs.mjs +166 -0
  112. package/dist/radio-card-group-ZBXjYcQs.mjs.map +1 -0
  113. package/dist/radio-card-group-nrDi5EPK.js +2 -0
  114. package/dist/radio-card-group-nrDi5EPK.js.map +1 -0
  115. package/dist/radio-card-group.cjs.js +1 -1
  116. package/dist/radio-card-group.es.js +3 -5
  117. package/dist/search-field-2vdDbiT0.js +2 -0
  118. package/dist/search-field-2vdDbiT0.js.map +1 -0
  119. package/dist/search-field-DKyNh7pE.mjs +167 -0
  120. package/dist/search-field-DKyNh7pE.mjs.map +1 -0
  121. package/dist/search-field.cjs.js +1 -1
  122. package/dist/search-field.es.js +1 -1
  123. package/dist/{stepper-CWR2vGPj.mjs → stepper-BDsSa6yr.mjs} +2 -2
  124. package/dist/{stepper-CWR2vGPj.mjs.map → stepper-BDsSa6yr.mjs.map} +1 -1
  125. package/dist/{stepper-Df4X7DDR.js → stepper-DpauItjx.js} +2 -2
  126. package/dist/{stepper-Df4X7DDR.js.map → stepper-DpauItjx.js.map} +1 -1
  127. package/dist/stepper.cjs.js +1 -1
  128. package/dist/stepper.es.js +1 -1
  129. package/dist/{table-gnGUejtb.js → table-BOCcBzSO.js} +4 -4
  130. package/dist/table-BOCcBzSO.js.map +1 -0
  131. package/dist/{table-g_n68i4s.mjs → table-i1Gs9e0e.mjs} +440 -440
  132. package/dist/table-i1Gs9e0e.mjs.map +1 -0
  133. package/dist/table.cjs.js +1 -1
  134. package/dist/table.es.js +1 -1
  135. package/dist/{text-area-peNKG7g4.js → text-area-D0truMT1.js} +2 -2
  136. package/dist/{text-area-peNKG7g4.js.map → text-area-D0truMT1.js.map} +1 -1
  137. package/dist/{text-area-kJvg6cFp.mjs → text-area-IVH-k4MM.mjs} +3 -3
  138. package/dist/{text-area-kJvg6cFp.mjs.map → text-area-IVH-k4MM.mjs.map} +1 -1
  139. package/dist/text-area.cjs.js +1 -1
  140. package/dist/text-area.es.js +1 -1
  141. package/dist/theme.cjs.js +1 -1
  142. package/dist/theme.es.js +8 -6
  143. package/dist/theme.es.js.map +1 -1
  144. package/dist/tooltip-CJGmJDFQ.js +2 -0
  145. package/dist/{tooltip-C8Zxnqdb.js.map → tooltip-CJGmJDFQ.js.map} +1 -1
  146. package/dist/{tooltip-LU2Cy-QC.mjs → tooltip-RA-03bKs.mjs} +277 -274
  147. package/dist/{tooltip-LU2Cy-QC.mjs.map → tooltip-RA-03bKs.mjs.map} +1 -1
  148. package/dist/tooltip.cjs.js +1 -1
  149. package/dist/tooltip.es.js +1 -1
  150. package/dist/{useColorScheme-tAkY9LHt.mjs → useColorScheme-B9DWd-LN.mjs} +2 -2
  151. package/dist/{useColorScheme-tAkY9LHt.mjs.map → useColorScheme-B9DWd-LN.mjs.map} +1 -1
  152. package/dist/useColorScheme-DbTQjxNB.js +2 -0
  153. package/dist/{useColorScheme-DNyjsWX9.js.map → useColorScheme-DbTQjxNB.js.map} +1 -1
  154. package/dist/useThemePortalContainer-D9BYjEvT.js +2 -0
  155. package/dist/useThemePortalContainer-D9BYjEvT.js.map +1 -0
  156. package/dist/useThemePortalContainer-tFLTaYKN.mjs +9 -0
  157. package/dist/useThemePortalContainer-tFLTaYKN.mjs.map +1 -0
  158. package/package.json +29 -29
  159. package/scripts/generate.mts +62 -3
  160. package/src/library.ts +2 -71
  161. package/dist/ThemeProvider-CkX-BNWN.mjs +0 -337
  162. package/dist/ThemeProvider-Dy771oix.js +0 -2
  163. package/dist/carousel-DLkTL9sj.mjs +0 -1633
  164. package/dist/carousel-DLkTL9sj.mjs.map +0 -1
  165. package/dist/carousel-DXrtxRz5.js +0 -2
  166. package/dist/carousel-DXrtxRz5.js.map +0 -1
  167. package/dist/date-picker-CzxhZxsw.mjs +0 -1611
  168. package/dist/date-picker-uyPKJulK.js +0 -2
  169. package/dist/drawer-8Acg4wkV.mjs +0 -574
  170. package/dist/drawer-8Acg4wkV.mjs.map +0 -1
  171. package/dist/drawer-BLHgcEqb.js +0 -2
  172. package/dist/drawer-BLHgcEqb.js.map +0 -1
  173. package/dist/modal-Baisuc6m.js +0 -2
  174. package/dist/modal-Baisuc6m.js.map +0 -1
  175. package/dist/modal-fp37VbrH.mjs.map +0 -1
  176. package/dist/popover-B0XJZ5mj.js +0 -2
  177. package/dist/popover-B0XJZ5mj.js.map +0 -1
  178. package/dist/popover-I26xNbTz.mjs.map +0 -1
  179. package/dist/radio-card-group-CneOprGY.mjs +0 -168
  180. package/dist/radio-card-group-CneOprGY.mjs.map +0 -1
  181. package/dist/radio-card-group-Ctuvg61o.js +0 -2
  182. package/dist/radio-card-group-Ctuvg61o.js.map +0 -1
  183. package/dist/search-field-CpkHGIYi.mjs +0 -151
  184. package/dist/search-field-CpkHGIYi.mjs.map +0 -1
  185. package/dist/search-field-Z0PqDARl.js +0 -2
  186. package/dist/search-field-Z0PqDARl.js.map +0 -1
  187. package/dist/table-g_n68i4s.mjs.map +0 -1
  188. package/dist/table-gnGUejtb.js.map +0 -1
  189. package/dist/tooltip-C8Zxnqdb.js +0 -2
  190. package/dist/useColorScheme-DNyjsWX9.js +0 -2
  191. package/tokens/_dark.scss +0 -9
  192. package/tokens/_index.scss +0 -9
  193. package/tokens/border/variables.css +0 -13
  194. package/tokens/border/variables.d.ts +0 -10
  195. package/tokens/border/variables.dark.css +0 -12
  196. package/tokens/border/variables.dark.d.ts +0 -10
  197. package/tokens/border/variables.dark.js +0 -10
  198. package/tokens/border/variables.dark.json +0 -18
  199. package/tokens/border/variables.dark.scss +0 -10
  200. package/tokens/border/variables.js +0 -10
  201. package/tokens/border/variables.json +0 -18
  202. package/tokens/border/variables.scss +0 -10
  203. package/tokens/breakpoint/variables.css +0 -11
  204. package/tokens/breakpoint/variables.d.ts +0 -8
  205. package/tokens/breakpoint/variables.dark.css +0 -10
  206. package/tokens/breakpoint/variables.dark.d.ts +0 -8
  207. package/tokens/breakpoint/variables.dark.js +0 -8
  208. package/tokens/breakpoint/variables.dark.json +0 -14
  209. package/tokens/breakpoint/variables.dark.scss +0 -8
  210. package/tokens/breakpoint/variables.js +0 -8
  211. package/tokens/breakpoint/variables.json +0 -14
  212. package/tokens/breakpoint/variables.scss +0 -8
  213. package/tokens/color/variables.css +0 -262
  214. package/tokens/color/variables.d.ts +0 -253
  215. package/tokens/color/variables.dark.css +0 -262
  216. package/tokens/color/variables.dark.d.ts +0 -252
  217. package/tokens/color/variables.dark.js +0 -252
  218. package/tokens/color/variables.dark.json +0 -306
  219. package/tokens/color/variables.dark.scss +0 -252
  220. package/tokens/color/variables.js +0 -253
  221. package/tokens/color/variables.json +0 -307
  222. package/tokens/color/variables.scss +0 -253
  223. package/tokens/dark.css +0 -9
  224. package/tokens/dark.d.ts +0 -9
  225. package/tokens/dark.js +0 -9
  226. package/tokens/filter/variables.css +0 -4
  227. package/tokens/filter/variables.d.ts +0 -1
  228. package/tokens/filter/variables.dark.css +0 -3
  229. package/tokens/filter/variables.dark.d.ts +0 -1
  230. package/tokens/filter/variables.dark.js +0 -1
  231. package/tokens/filter/variables.dark.json +0 -7
  232. package/tokens/filter/variables.dark.scss +0 -1
  233. package/tokens/filter/variables.js +0 -1
  234. package/tokens/filter/variables.json +0 -7
  235. package/tokens/filter/variables.scss +0 -1
  236. package/tokens/gradient/variables.css +0 -53
  237. package/tokens/gradient/variables.d.ts +0 -9
  238. package/tokens/gradient/variables.dark.css +0 -51
  239. package/tokens/gradient/variables.dark.d.ts +0 -9
  240. package/tokens/gradient/variables.dark.js +0 -18
  241. package/tokens/gradient/variables.dark.json +0 -27
  242. package/tokens/gradient/variables.dark.scss +0 -36
  243. package/tokens/gradient/variables.js +0 -18
  244. package/tokens/gradient/variables.json +0 -27
  245. package/tokens/gradient/variables.scss +0 -42
  246. package/tokens/index.css +0 -18
  247. package/tokens/index.d.ts +0 -9
  248. package/tokens/index.js +0 -9
  249. package/tokens/motion/variables.css +0 -14
  250. package/tokens/motion/variables.d.ts +0 -11
  251. package/tokens/motion/variables.dark.css +0 -13
  252. package/tokens/motion/variables.dark.d.ts +0 -11
  253. package/tokens/motion/variables.dark.js +0 -11
  254. package/tokens/motion/variables.dark.json +0 -19
  255. package/tokens/motion/variables.dark.scss +0 -11
  256. package/tokens/motion/variables.js +0 -11
  257. package/tokens/motion/variables.json +0 -19
  258. package/tokens/motion/variables.scss +0 -11
  259. package/tokens/shadow/variables.css +0 -11
  260. package/tokens/shadow/variables.d.ts +0 -4
  261. package/tokens/shadow/variables.dark.css +0 -10
  262. package/tokens/shadow/variables.dark.d.ts +0 -4
  263. package/tokens/shadow/variables.dark.js +0 -4
  264. package/tokens/shadow/variables.dark.json +0 -8
  265. package/tokens/shadow/variables.dark.scss +0 -4
  266. package/tokens/shadow/variables.js +0 -4
  267. package/tokens/shadow/variables.json +0 -8
  268. package/tokens/shadow/variables.scss +0 -4
  269. package/tokens/spacing/variables.css +0 -26
  270. package/tokens/spacing/variables.d.ts +0 -23
  271. package/tokens/spacing/variables.dark.css +0 -17
  272. package/tokens/spacing/variables.dark.d.ts +0 -15
  273. package/tokens/spacing/variables.dark.js +0 -15
  274. package/tokens/spacing/variables.dark.json +0 -19
  275. package/tokens/spacing/variables.dark.scss +0 -15
  276. package/tokens/spacing/variables.js +0 -23
  277. package/tokens/spacing/variables.json +0 -31
  278. package/tokens/spacing/variables.scss +0 -23
  279. package/tokens/typography/variables.css +0 -30
  280. package/tokens/typography/variables.d.ts +0 -26
  281. package/tokens/typography/variables.dark.css +0 -29
  282. package/tokens/typography/variables.dark.d.ts +0 -26
  283. package/tokens/typography/variables.dark.js +0 -28
  284. package/tokens/typography/variables.dark.json +0 -38
  285. package/tokens/typography/variables.dark.scss +0 -26
  286. package/tokens/typography/variables.js +0 -28
  287. package/tokens/typography/variables.json +0 -38
  288. package/tokens/typography/variables.scss +0 -26
@@ -0,0 +1,348 @@
1
+ import { jsx as B } from "react/jsx-runtime";
2
+ import { useEffect as p, createContext as x, useContext as m, useState as l, useMemo as f } from "react";
3
+ import { aC as N, az as y, aB as $, aA as P, aD as E, ay as O, au as b, av as A, an as H, ap as M, aq as W, ar as D, at as h, as as F, aj as L, ak as w, am as R, ao as Q, al as j, aF as q, ax as z, aH as G, aE as K, aw as J, aG as U, W as X, Y, X as Z, V, K as _, U as rr, R as er, H as or, G as tr, O as ar, N as cr, J as ur, I as nr, T as ir, S as sr, Q as lr, P as pr, M as vr, L as gr, v as dr, m as Br, e as Sr, x as Cr, z as Ir, h as Tr, j as kr, k as xr, q as mr, s as fr, t as Nr, p as yr, b as $r, c as Pr, a as Er, l as Or, u as br, d as Ar, w as Hr, y as Mr, g as Wr, i as Dr, f as hr, o as Fr, r as Lr, n as wr, B as Rr, F as Qr, D as jr, A as qr, E as zr, C as Gr, cG as Kr, cF as Jr, cE as Ur, cC as Xr, cs as Yr, cq as Zr, cA as Vr, cn as _r, co as re, cm as ee, cw as oe, cv as te, cr as ae, cp as ce, cD as ue, cB as ne, cz as ie, cx as se, cu as le, ct as pe, c6 as ve, c8 as ge, c9 as de, cb as Be, ce as Se, cg as Ce, ch as Ie, ci as Te, c3 as ke, c5 as xe, c7 as me, c4 as fe, ca as Ne, cd as ye, cf as $e, cc as Pe, cI as Ee, cl as Oe, c2 as be, cH as Ae, ck as He, c1 as Me, aP as We, aO as De, aM as he, aI as Fe, aK as Le, aN as we, aJ as Re, aL as Qe } from "./variables-B5hbV0Uy.mjs";
4
+ const je = "#f4e0ff", qe = "#c461f7", ze = "#29003e", Ge = "#ede1d8", Ke = "#4f4741", Je = "#3b332d", Ue = "#ffffff", Xe = "#202022", Ye = "rgba(255, 255, 255, 0.95)", Ze = "rgba(255, 255, 255, 0.66)", Ve = "rgba(255, 255, 255, 0.37)", _e = "rgba(0, 0, 0, 0.8)", ro = "rgba(0, 0, 0, 0.54)", eo = "rgba(0, 0, 0, 0.44)", oo = "#f4e0ff", to = "#faf0ff", ao = "#ffffff", co = "#4e0174", uo = "#ffffff", no = "#6d02a3", io = "#4e0174", so = "#29003e", lo = "#ffffff", po = "#ffffff", vo = "#29003e", go = "#ffffff", Bo = "#29003e", So = "#ffffff", Co = "#ffffff", Io = "#d58df9", To = "#d58df9", ko = "#ffafc9", xo = "#980233", mo = "#fb4885", fo = "#e4175c", No = "#79d9a7", yo = "#02562b", $o = "#1fa15e", Po = "#f9bb5b", Eo = "#f39200", Oo = "#a86602", bo = "#91cdf4", Ao = "#3694d3", Ho = "#ffffff", Mo = "#ffffff", Wo = "#4e0174", Do = "#202022", ho = "#29003e", Fo = "#f4e0ff", Lo = "#ffffff", wo = "#121212", Ro = "#ffffff", Qo = "#202022", jo = "#f5f5fa", qo = "rgba(0, 0, 0, 0.71)", zo = "rgba(255, 255, 255, 0.84)", Go = "#03385b", Ko = "#f4e0ff", Jo = "#e4b6fb", Uo = "#d58df9", Xo = "#4e0174", Yo = "#6d02a3", Zo = "#8c07d0", Vo = "#990ae3", _o = "#c461f7", rt = "#d58df9", et = "#990ae3", ot = "#6d02a3", tt = "#4e0174", at = "rgba(255, 255, 255, 0.11)", ct = "rgba(0, 0, 0, 0.1)", ut = "#4e0174", nt = "#e4b6fb", it = "#6d02a3", st = "#d58df9", lt = "rgba(255, 255, 255, 0.16)", pt = "rgba(0, 0, 0, 0.05)", vt = "rgba(255, 255, 255, 0.07)", gt = "rgba(0, 0, 0, 0.05)", dt = "#e4175c", Bt = "#c00543", St = "#980233", Ct = "#03385b", It = "#62b2e7", Tt = "#003e1e", kt = "#3dbf7c", xt = "#1fa15e", mt = "#700025", ft = "#ff80ab", Nt = "#fb4885", yt = "#4c2f03", $t = "#f39200", Pt = "#f39200", Et = "#353537", Ot = "#6d02a3", bt = "#f4e0ff", At = "#ffffff", Ht = "#f4e0ff", Mt = "#29003e", Wt = "#4f4741", Dt = "#2d2824", ht = "rgba(255, 255, 255, 0.29)", Ft = "rgba(0, 0, 0, 0.33)", Lt = "rgba(255, 255, 255, 0.46)", wt = "rgba(0, 0, 0, 0.54)", Rt = "rgba(255, 255, 255, 0.16)", Qt = "rgba(0, 0, 0, 0.16)", jt = "#c461f7", qt = "#f4e0ff", zt = "#6d02a3", Gt = "#faf0ff", Kt = "#ffffff", Jt = "#4e0174", Ut = "#29003e", Xt = "#990ae3", Yt = "#d58df9", Zt = "rgba(255, 255, 255, 0.37)", Vt = "rgba(0, 0, 0, 0.44)", _t = "#e4b6fb", ra = "#6d02a3", ea = "#fb4885", oa = "#e4175c", ta = "#f39200", aa = "#3694d3", ca = "#1fa15e", ua = "#018842", na = {
5
+ colorBrandDeepPurple: je,
6
+ colorBrandCorePurple: qe,
7
+ colorBrandLightPurple: ze,
8
+ colorBrandDeepBeige: Ge,
9
+ colorBrandBeige: Ke,
10
+ colorBrandLightBeige: Je,
11
+ colorBrandOffBlack: Ue,
12
+ colorBrandWhite: Xe,
13
+ colorTextDefault: Ye,
14
+ colorTextMedium: Ze,
15
+ colorTextWeak: Ve,
16
+ colorTextDefaultNegative: _e,
17
+ colorTextMediumNegative: ro,
18
+ colorTextWeakNegative: eo,
19
+ colorTextInteractivePrimary: oo,
20
+ colorTextInteractivePrimaryHover: to,
21
+ colorTextInteractivePrimaryActive: ao,
22
+ colorTextInteractiveOnPrimary: co,
23
+ colorTextInteractiveOnExpressive: lo,
24
+ colorTextInteractiveOnExpressiveHover: vo,
25
+ colorTextInteractiveOnExpressiveActive: Bo,
26
+ colorTextInteractiveOnDestructive: Co,
27
+ colorTextInteractiveSelected: Io,
28
+ colorTextInteractivePrimaryNegative: no,
29
+ colorTextInteractivePrimaryHoverNegative: io,
30
+ colorTextInteractivePrimaryActiveNegative: so,
31
+ colorTextInteractiveOnPrimaryNegative: uo,
32
+ colorTextInteractiveOnExpressiveNegative: po,
33
+ colorTextInteractiveOnExpressiveHoverNegative: go,
34
+ colorTextInteractiveOnExpressiveActiveNegative: So,
35
+ colorTextStatusInfoMedium: Ao,
36
+ colorTextStatusInfoStrong: bo,
37
+ colorTextStatusSuccessMedium: $o,
38
+ colorTextStatusSuccessStrong: No,
39
+ colorTextStatusWarningMedium: Eo,
40
+ colorTextStatusWarningStrong: Po,
41
+ colorTextStatusErrorMedium: mo,
42
+ colorTextStatusErrorStrong: ko,
43
+ colorTextStatusNeutral: Ho,
44
+ colorTextStatusSpecial: Mo,
45
+ colorTextStatusAttention: Wo,
46
+ colorTextStatusDiscount: To,
47
+ colorTextStatusBlackFriday: Do,
48
+ colorTextStatusSuccessStrongNegative: yo,
49
+ colorTextStatusErrorMediumNegative: fo,
50
+ colorTextStatusErrorStrongNegative: xo,
51
+ colorTextStatusWarningMediumNegative: Oo,
52
+ colorTextToneOnTonePrimary: ho,
53
+ colorTextToneOnToneSecondary: Fo,
54
+ colorTextToneOnToneTertiary: Lo,
55
+ colorBackgroundPrimary: wo,
56
+ colorBackgroundSecondary: Qo,
57
+ colorBackgroundOnImage: qo,
58
+ colorBackgroundPrimaryNegative: Ro,
59
+ colorBackgroundSecondaryNegative: jo,
60
+ colorBackgroundOnImageNegative: zo,
61
+ colorBackgroundInteractivePrimary: Ko,
62
+ colorBackgroundInteractivePrimaryHover: Jo,
63
+ colorBackgroundInteractivePrimaryActive: Uo,
64
+ colorBackgroundInteractiveExpressive: Vo,
65
+ colorBackgroundInteractiveExpressiveHover: _o,
66
+ colorBackgroundInteractiveExpressiveActive: rt,
67
+ colorBackgroundInteractiveTransparentHover: ut,
68
+ colorBackgroundInteractiveTransparentActive: it,
69
+ colorBackgroundInteractiveDisabled: at,
70
+ colorBackgroundInteractiveReadOnly: vt,
71
+ colorBackgroundInteractiveInactive: lt,
72
+ colorBackgroundInteractiveDestructive: dt,
73
+ colorBackgroundInteractiveDestructiveHover: Bt,
74
+ colorBackgroundInteractiveDestructiveActive: St,
75
+ colorBackgroundInteractiveAutoFill: Go,
76
+ colorBackgroundInteractivePrimaryNegative: Xo,
77
+ colorBackgroundInteractivePrimaryHoverNegative: Yo,
78
+ colorBackgroundInteractivePrimaryActiveNegative: Zo,
79
+ colorBackgroundInteractiveExpressiveNegative: et,
80
+ colorBackgroundInteractiveExpressiveHoverNegative: ot,
81
+ colorBackgroundInteractiveExpressiveActiveNegative: tt,
82
+ colorBackgroundInteractiveTransparentHoverNegative: nt,
83
+ colorBackgroundInteractiveTransparentActiveNegative: st,
84
+ colorBackgroundInteractiveDisabledNegative: ct,
85
+ colorBackgroundInteractiveInactiveNegative: pt,
86
+ colorBackgroundInteractiveReadOnlyNegative: gt,
87
+ colorBackgroundStatusInfoMedium: Ct,
88
+ colorBackgroundStatusInfoStrong: It,
89
+ colorBackgroundStatusSuccessMedium: Tt,
90
+ colorBackgroundStatusSuccessStrong: kt,
91
+ colorBackgroundStatusWarningMedium: yt,
92
+ colorBackgroundStatusWarningStrong: $t,
93
+ colorBackgroundStatusErrorMedium: mt,
94
+ colorBackgroundStatusErrorStrong: ft,
95
+ colorBackgroundStatusNeutral: Et,
96
+ colorBackgroundStatusSpecial: Ot,
97
+ colorBackgroundStatusAttention: bt,
98
+ colorBackgroundStatusBlackFriday: At,
99
+ colorBackgroundStatusSuccessStrongNegative: xt,
100
+ colorBackgroundStatusWarningStrongNegative: Pt,
101
+ colorBackgroundStatusErrorStrongNegative: Nt,
102
+ colorBackgroundToneOnTonePrimary: Ht,
103
+ colorBackgroundToneOnToneSecondary: Mt,
104
+ colorBackgroundToneOnToneTertiary: Wt,
105
+ colorBackgroundToneOnToneQuaternary: Dt,
106
+ colorBorderWeak: Rt,
107
+ colorBorderMedium: ht,
108
+ colorBorderStrong: Lt,
109
+ colorBorderWeakNegative: Qt,
110
+ colorBorderMediumNegative: Ft,
111
+ colorBorderStrongNegative: wt,
112
+ colorBorderInteractivePrimary: qt,
113
+ colorBorderInteractivePrimaryHover: Gt,
114
+ colorBorderInteractivePrimaryActive: Kt,
115
+ colorBorderInteractiveFocus: jt,
116
+ colorBorderInteractiveExpressive: Xt,
117
+ colorBorderInteractiveSubtle: Zt,
118
+ colorBorderInteractiveSubtleHover: _t,
119
+ colorBorderInteractiveSelected: Yt,
120
+ colorBorderInteractivePrimaryNegative: zt,
121
+ colorBorderInteractivePrimaryHoverNegative: Jt,
122
+ colorBorderInteractivePrimaryActiveNegative: Ut,
123
+ colorBorderInteractiveSubtleNegative: Vt,
124
+ colorBorderInteractiveSubtleHoverNegative: ra,
125
+ colorBorderStatusError: ea,
126
+ colorBorderStatusWarning: ta,
127
+ colorBorderStatusInfo: aa,
128
+ colorBorderStatusSuccess: ca,
129
+ colorBorderStatusErrorNegative: oa,
130
+ colorBorderStatusSuccessNegative: ua
131
+ }, ia = {
132
+ colorBrandDeepPurple: Qe,
133
+ colorBrandCorePurple: Re,
134
+ colorBrandLightPurple: we,
135
+ colorBrandDeepBeige: Le,
136
+ colorBrandBeige: Fe,
137
+ colorBrandLightBeige: he,
138
+ colorBrandOffBlack: De,
139
+ colorBrandWhite: We,
140
+ colorTextDefault: Me,
141
+ colorTextMedium: He,
142
+ colorTextWeak: Ae,
143
+ colorTextDefaultNegative: be,
144
+ colorTextMediumNegative: Oe,
145
+ colorTextWeakNegative: Ee,
146
+ colorTextInteractivePrimary: Pe,
147
+ colorTextInteractivePrimaryHover: $e,
148
+ colorTextInteractivePrimaryActive: ye,
149
+ colorTextInteractiveOnPrimary: Ne,
150
+ colorTextInteractiveOnExpressive: fe,
151
+ colorTextInteractiveOnExpressiveHover: me,
152
+ colorTextInteractiveOnExpressiveActive: xe,
153
+ colorTextInteractiveOnDestructive: ke,
154
+ colorTextInteractiveSelected: Te,
155
+ colorTextInteractivePrimaryNegative: Ie,
156
+ colorTextInteractivePrimaryHoverNegative: Ce,
157
+ colorTextInteractivePrimaryActiveNegative: Se,
158
+ colorTextInteractiveOnPrimaryNegative: Be,
159
+ colorTextInteractiveOnExpressiveNegative: de,
160
+ colorTextInteractiveOnExpressiveHoverNegative: ge,
161
+ colorTextInteractiveOnExpressiveActiveNegative: ve,
162
+ colorTextStatusInfoMedium: pe,
163
+ colorTextStatusInfoStrong: le,
164
+ colorTextStatusSuccessMedium: se,
165
+ colorTextStatusSuccessStrong: ie,
166
+ colorTextStatusWarningMedium: ne,
167
+ colorTextStatusWarningStrong: ue,
168
+ colorTextStatusErrorMedium: ce,
169
+ colorTextStatusErrorStrong: ae,
170
+ colorTextStatusNeutral: te,
171
+ colorTextStatusSpecial: oe,
172
+ colorTextStatusAttention: ee,
173
+ colorTextStatusDiscount: re,
174
+ colorTextStatusBlackFriday: _r,
175
+ colorTextStatusSuccessStrongNegative: Vr,
176
+ colorTextStatusErrorMediumNegative: Zr,
177
+ colorTextStatusErrorStrongNegative: Yr,
178
+ colorTextStatusWarningMediumNegative: Xr,
179
+ colorTextToneOnTonePrimary: Ur,
180
+ colorTextToneOnToneSecondary: Jr,
181
+ colorTextToneOnToneTertiary: Kr,
182
+ colorBackgroundPrimary: Gr,
183
+ colorBackgroundSecondary: zr,
184
+ colorBackgroundOnImage: qr,
185
+ colorBackgroundPrimaryNegative: jr,
186
+ colorBackgroundSecondaryNegative: Qr,
187
+ colorBackgroundOnImageNegative: Rr,
188
+ colorBackgroundInteractivePrimary: wr,
189
+ colorBackgroundInteractivePrimaryHover: Lr,
190
+ colorBackgroundInteractivePrimaryActive: Fr,
191
+ colorBackgroundInteractiveExpressive: hr,
192
+ colorBackgroundInteractiveExpressiveHover: Dr,
193
+ colorBackgroundInteractiveExpressiveActive: Wr,
194
+ colorBackgroundInteractiveTransparentHover: Mr,
195
+ colorBackgroundInteractiveTransparentActive: Hr,
196
+ colorBackgroundInteractiveDisabled: Ar,
197
+ colorBackgroundInteractiveReadOnly: br,
198
+ colorBackgroundInteractiveInactive: Or,
199
+ colorBackgroundInteractiveDestructive: Er,
200
+ colorBackgroundInteractiveDestructiveHover: Pr,
201
+ colorBackgroundInteractiveDestructiveActive: $r,
202
+ colorBackgroundInteractiveAutoFill: yr,
203
+ colorBackgroundInteractivePrimaryNegative: Nr,
204
+ colorBackgroundInteractivePrimaryHoverNegative: fr,
205
+ colorBackgroundInteractivePrimaryActiveNegative: mr,
206
+ colorBackgroundInteractiveExpressiveNegative: xr,
207
+ colorBackgroundInteractiveExpressiveHoverNegative: kr,
208
+ colorBackgroundInteractiveExpressiveActiveNegative: Tr,
209
+ colorBackgroundInteractiveTransparentHoverNegative: Ir,
210
+ colorBackgroundInteractiveTransparentActiveNegative: Cr,
211
+ colorBackgroundInteractiveDisabledNegative: Sr,
212
+ colorBackgroundInteractiveInactiveNegative: Br,
213
+ colorBackgroundInteractiveReadOnlyNegative: dr,
214
+ colorBackgroundStatusInfoMedium: gr,
215
+ colorBackgroundStatusInfoStrong: vr,
216
+ colorBackgroundStatusSuccessMedium: pr,
217
+ colorBackgroundStatusSuccessStrong: lr,
218
+ colorBackgroundStatusWarningMedium: sr,
219
+ colorBackgroundStatusWarningStrong: ir,
220
+ colorBackgroundStatusErrorMedium: nr,
221
+ colorBackgroundStatusErrorStrong: ur,
222
+ colorBackgroundStatusNeutral: cr,
223
+ colorBackgroundStatusSpecial: ar,
224
+ colorBackgroundStatusAttention: tr,
225
+ colorBackgroundStatusBlackFriday: or,
226
+ colorBackgroundStatusSuccessStrongNegative: er,
227
+ colorBackgroundStatusWarningStrongNegative: rr,
228
+ colorBackgroundStatusErrorStrongNegative: _,
229
+ colorBackgroundToneOnTonePrimary: V,
230
+ colorBackgroundToneOnToneSecondary: Z,
231
+ colorBackgroundToneOnToneTertiary: Y,
232
+ colorBackgroundToneOnToneQuaternary: X,
233
+ colorBorderWeak: U,
234
+ colorBorderMedium: J,
235
+ colorBorderStrong: K,
236
+ colorBorderWeakNegative: G,
237
+ colorBorderMediumNegative: z,
238
+ colorBorderStrongNegative: q,
239
+ colorBorderInteractivePrimary: j,
240
+ colorBorderInteractivePrimaryHover: Q,
241
+ colorBorderInteractivePrimaryActive: R,
242
+ colorBorderInteractiveFocus: w,
243
+ colorBorderInteractiveExpressive: L,
244
+ colorBorderInteractiveSubtle: F,
245
+ colorBorderInteractiveSubtleHover: h,
246
+ colorBorderInteractiveSelected: D,
247
+ colorBorderInteractivePrimaryNegative: W,
248
+ colorBorderInteractivePrimaryHoverNegative: M,
249
+ colorBorderInteractivePrimaryActiveNegative: H,
250
+ colorBorderInteractiveSubtleNegative: A,
251
+ colorBorderInteractiveSubtleHoverNegative: b,
252
+ colorBorderStatusError: O,
253
+ colorBorderStatusWarning: E,
254
+ colorBorderStatusInfo: P,
255
+ colorBorderStatusSuccess: $,
256
+ colorBorderStatusErrorNegative: y,
257
+ colorBorderStatusSuccessNegative: N
258
+ }, S = {
259
+ light: ia,
260
+ dark: na
261
+ }, sa = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), la = ({
262
+ theme: e = S,
263
+ cssVariablesSelector: r,
264
+ currentColorScheme: t
265
+ }) => {
266
+ p(() => {
267
+ t && Object.entries(e?.[t] ?? S[t]).forEach(
268
+ ([u, n]) => {
269
+ ((r ? document.querySelector(r) : null) ?? document.documentElement).style.setProperty(
270
+ `--purpur-${sa(u)}`,
271
+ n
272
+ );
273
+ }
274
+ );
275
+ }, [e, r, t]);
276
+ }, C = x({
277
+ colorScheme: "light",
278
+ currentColorScheme: "light",
279
+ setColorScheme: () => {
280
+ },
281
+ options: {},
282
+ portalContainer: null
283
+ }), Ba = ({
284
+ cssVariablesSelector: e,
285
+ forceColorScheme: r,
286
+ theme: t,
287
+ children: u,
288
+ options: n = {},
289
+ ...v
290
+ }) => {
291
+ const [a, i] = l(r ?? "auto"), [c, s] = l(
292
+ r ?? "light"
293
+ ), [g, I] = l(null);
294
+ p(() => {
295
+ if (r)
296
+ i(r);
297
+ else {
298
+ const o = localStorage.getItem("colorScheme");
299
+ o && i(o);
300
+ }
301
+ }, [r]), p(() => {
302
+ const o = window.matchMedia("(prefers-color-scheme: dark)");
303
+ s(a === "auto" ? o.matches ? "dark" : "light" : a);
304
+ const d = (k) => {
305
+ !r && a === "auto" && s(k.matches ? "dark" : "light");
306
+ };
307
+ return o.addEventListener("change", d), () => {
308
+ o.removeEventListener("change", d);
309
+ };
310
+ }, [a, r]), la({
311
+ theme: t,
312
+ cssVariablesSelector: e,
313
+ currentColorScheme: t !== void 0 ? c : void 0
314
+ });
315
+ const T = f(
316
+ () => ({
317
+ colorScheme: a,
318
+ currentColorScheme: c,
319
+ setColorScheme: (o) => {
320
+ r || (i(o), localStorage.setItem("colorScheme", o));
321
+ },
322
+ portalContainer: g
323
+ }),
324
+ [a, c, r, g]
325
+ );
326
+ return /* @__PURE__ */ B(C.Provider, { value: { ...T, options: n }, children: /* @__PURE__ */ B(
327
+ "div",
328
+ {
329
+ "data-color-scheme": c,
330
+ className: c,
331
+ ref: I,
332
+ ...v,
333
+ children: u
334
+ }
335
+ ) });
336
+ }, Sa = () => {
337
+ const e = m(C);
338
+ if (!e)
339
+ throw new Error("useTheme must be used within a ThemeProvider");
340
+ return e;
341
+ };
342
+ export {
343
+ Ba as T,
344
+ Sa as a,
345
+ S as t,
346
+ la as u
347
+ };
348
+ //# sourceMappingURL=ThemeProvider-DiDBfyFA.mjs.map