@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
@@ -1,337 +0,0 @@
1
- import { jsx as g } from "react/jsx-runtime";
2
- import { useEffect as l, createContext as T, useContext as k, useState as d, useMemo as x } from "react";
3
- import { aC as m, az as f, aB as N, aA as y, aD as $, ay as P, au as E, av as O, an as b, ap as A, aq as H, ar as M, at as W, as as D, aj as h, ak as F, am as L, ao as w, al as R, aF as Q, ax as j, aH as q, aE as z, aw as G, aG as K, W as J, Y as U, X, V as Y, K as Z, U as V, R as _, H as rr, G as er, O as or, N as tr, J as ar, I as cr, T as ur, S as nr, Q as ir, P as sr, M as lr, L as pr, v as vr, m as gr, e as dr, x as Br, z as Sr, h as Cr, j as Ir, k as Tr, q as kr, s as xr, t as mr, p as fr, b as Nr, c as yr, a as $r, l as Pr, u as Er, d as Or, w as br, y as Ar, g as Hr, i as Mr, f as Wr, o as Dr, r as hr, n as Fr, B as Lr, F as wr, D as Rr, A as Qr, E as jr, C as qr, cG as zr, cF as Gr, cE as Kr, cC as Jr, cs as Ur, cq as Xr, cA as Yr, cn as Zr, co as Vr, cm as _r, cw as re, cv as ee, cr as oe, cp as te, cD as ae, cB as ce, cz as ue, cx as ne, cu as ie, ct as se, c6 as le, c8 as pe, c9 as ve, cb as ge, ce as de, cg as Be, ch as Se, ci as Ce, c3 as Ie, c5 as Te, c7 as ke, c4 as xe, ca as me, cd as fe, cf as Ne, cc as ye, cI as $e, cl as Pe, c2 as Ee, cH as Oe, ck as be, c1 as Ae, aP as He, aO as Me, aM as We, aI as De, aK as he, aN as Fe, aJ as Le, aL as we } from "./variables-B5hbV0Uy.mjs";
4
- const Re = "#f4e0ff", Qe = "#c461f7", je = "#29003e", qe = "#ede1d8", ze = "#4f4741", Ge = "#3b332d", Ke = "#ffffff", Je = "#202022", Ue = "rgba(255, 255, 255, 0.95)", Xe = "rgba(255, 255, 255, 0.66)", Ye = "rgba(255, 255, 255, 0.37)", Ze = "rgba(0, 0, 0, 0.8)", Ve = "rgba(0, 0, 0, 0.54)", _e = "rgba(0, 0, 0, 0.44)", ro = "#f4e0ff", eo = "#faf0ff", oo = "#ffffff", to = "#4e0174", ao = "#ffffff", co = "#6d02a3", uo = "#4e0174", no = "#29003e", io = "#ffffff", so = "#ffffff", lo = "#29003e", po = "#ffffff", vo = "#29003e", go = "#ffffff", Bo = "#ffffff", So = "#d58df9", Co = "#d58df9", Io = "#ffafc9", To = "#980233", ko = "#fb4885", xo = "#e4175c", mo = "#79d9a7", fo = "#02562b", No = "#1fa15e", yo = "#f9bb5b", $o = "#f39200", Po = "#a86602", Eo = "#91cdf4", Oo = "#3694d3", bo = "#ffffff", Ao = "#ffffff", Ho = "#4e0174", Mo = "#202022", Wo = "#29003e", Do = "#f4e0ff", ho = "#ffffff", Fo = "#121212", Lo = "#ffffff", wo = "#202022", Ro = "#f5f5fa", Qo = "rgba(0, 0, 0, 0.71)", jo = "rgba(255, 255, 255, 0.84)", qo = "#03385b", zo = "#f4e0ff", Go = "#e4b6fb", Ko = "#d58df9", Jo = "#4e0174", Uo = "#6d02a3", Xo = "#8c07d0", Yo = "#990ae3", Zo = "#c461f7", Vo = "#d58df9", _o = "#990ae3", rt = "#6d02a3", et = "#4e0174", ot = "rgba(255, 255, 255, 0.11)", tt = "rgba(0, 0, 0, 0.1)", at = "#4e0174", ct = "#e4b6fb", ut = "#6d02a3", nt = "#d58df9", it = "rgba(255, 255, 255, 0.16)", st = "rgba(0, 0, 0, 0.05)", lt = "rgba(255, 255, 255, 0.07)", pt = "rgba(0, 0, 0, 0.05)", vt = "#e4175c", gt = "#c00543", dt = "#980233", Bt = "#03385b", St = "#62b2e7", Ct = "#003e1e", It = "#3dbf7c", Tt = "#1fa15e", kt = "#700025", xt = "#ff80ab", mt = "#fb4885", ft = "#4c2f03", Nt = "#f39200", yt = "#f39200", $t = "#353537", Pt = "#6d02a3", Et = "#f4e0ff", Ot = "#ffffff", bt = "#f4e0ff", At = "#29003e", Ht = "#4f4741", Mt = "#2d2824", Wt = "rgba(255, 255, 255, 0.29)", Dt = "rgba(0, 0, 0, 0.33)", ht = "rgba(255, 255, 255, 0.46)", Ft = "rgba(0, 0, 0, 0.54)", Lt = "rgba(255, 255, 255, 0.16)", wt = "rgba(0, 0, 0, 0.16)", Rt = "#c461f7", Qt = "#f4e0ff", jt = "#6d02a3", qt = "#faf0ff", zt = "#ffffff", Gt = "#4e0174", Kt = "#29003e", Jt = "#990ae3", Ut = "#d58df9", Xt = "rgba(255, 255, 255, 0.37)", Yt = "rgba(0, 0, 0, 0.44)", Zt = "#e4b6fb", Vt = "#6d02a3", _t = "#fb4885", ra = "#e4175c", ea = "#f39200", oa = "#3694d3", ta = "#1fa15e", aa = "#018842", ca = {
5
- colorBrandDeepPurple: Re,
6
- colorBrandCorePurple: Qe,
7
- colorBrandLightPurple: je,
8
- colorBrandDeepBeige: qe,
9
- colorBrandBeige: ze,
10
- colorBrandLightBeige: Ge,
11
- colorBrandOffBlack: Ke,
12
- colorBrandWhite: Je,
13
- colorTextDefault: Ue,
14
- colorTextMedium: Xe,
15
- colorTextWeak: Ye,
16
- colorTextDefaultNegative: Ze,
17
- colorTextMediumNegative: Ve,
18
- colorTextWeakNegative: _e,
19
- colorTextInteractivePrimary: ro,
20
- colorTextInteractivePrimaryHover: eo,
21
- colorTextInteractivePrimaryActive: oo,
22
- colorTextInteractiveOnPrimary: to,
23
- colorTextInteractiveOnExpressive: io,
24
- colorTextInteractiveOnExpressiveHover: lo,
25
- colorTextInteractiveOnExpressiveActive: vo,
26
- colorTextInteractiveOnDestructive: Bo,
27
- colorTextInteractiveSelected: So,
28
- colorTextInteractivePrimaryNegative: co,
29
- colorTextInteractivePrimaryHoverNegative: uo,
30
- colorTextInteractivePrimaryActiveNegative: no,
31
- colorTextInteractiveOnPrimaryNegative: ao,
32
- colorTextInteractiveOnExpressiveNegative: so,
33
- colorTextInteractiveOnExpressiveHoverNegative: po,
34
- colorTextInteractiveOnExpressiveActiveNegative: go,
35
- colorTextStatusInfoMedium: Oo,
36
- colorTextStatusInfoStrong: Eo,
37
- colorTextStatusSuccessMedium: No,
38
- colorTextStatusSuccessStrong: mo,
39
- colorTextStatusWarningMedium: $o,
40
- colorTextStatusWarningStrong: yo,
41
- colorTextStatusErrorMedium: ko,
42
- colorTextStatusErrorStrong: Io,
43
- colorTextStatusNeutral: bo,
44
- colorTextStatusSpecial: Ao,
45
- colorTextStatusAttention: Ho,
46
- colorTextStatusDiscount: Co,
47
- colorTextStatusBlackFriday: Mo,
48
- colorTextStatusSuccessStrongNegative: fo,
49
- colorTextStatusErrorMediumNegative: xo,
50
- colorTextStatusErrorStrongNegative: To,
51
- colorTextStatusWarningMediumNegative: Po,
52
- colorTextToneOnTonePrimary: Wo,
53
- colorTextToneOnToneSecondary: Do,
54
- colorTextToneOnToneTertiary: ho,
55
- colorBackgroundPrimary: Fo,
56
- colorBackgroundSecondary: wo,
57
- colorBackgroundOnImage: Qo,
58
- colorBackgroundPrimaryNegative: Lo,
59
- colorBackgroundSecondaryNegative: Ro,
60
- colorBackgroundOnImageNegative: jo,
61
- colorBackgroundInteractivePrimary: zo,
62
- colorBackgroundInteractivePrimaryHover: Go,
63
- colorBackgroundInteractivePrimaryActive: Ko,
64
- colorBackgroundInteractiveExpressive: Yo,
65
- colorBackgroundInteractiveExpressiveHover: Zo,
66
- colorBackgroundInteractiveExpressiveActive: Vo,
67
- colorBackgroundInteractiveTransparentHover: at,
68
- colorBackgroundInteractiveTransparentActive: ut,
69
- colorBackgroundInteractiveDisabled: ot,
70
- colorBackgroundInteractiveReadOnly: lt,
71
- colorBackgroundInteractiveInactive: it,
72
- colorBackgroundInteractiveDestructive: vt,
73
- colorBackgroundInteractiveDestructiveHover: gt,
74
- colorBackgroundInteractiveDestructiveActive: dt,
75
- colorBackgroundInteractiveAutoFill: qo,
76
- colorBackgroundInteractivePrimaryNegative: Jo,
77
- colorBackgroundInteractivePrimaryHoverNegative: Uo,
78
- colorBackgroundInteractivePrimaryActiveNegative: Xo,
79
- colorBackgroundInteractiveExpressiveNegative: _o,
80
- colorBackgroundInteractiveExpressiveHoverNegative: rt,
81
- colorBackgroundInteractiveExpressiveActiveNegative: et,
82
- colorBackgroundInteractiveTransparentHoverNegative: ct,
83
- colorBackgroundInteractiveTransparentActiveNegative: nt,
84
- colorBackgroundInteractiveDisabledNegative: tt,
85
- colorBackgroundInteractiveInactiveNegative: st,
86
- colorBackgroundInteractiveReadOnlyNegative: pt,
87
- colorBackgroundStatusInfoMedium: Bt,
88
- colorBackgroundStatusInfoStrong: St,
89
- colorBackgroundStatusSuccessMedium: Ct,
90
- colorBackgroundStatusSuccessStrong: It,
91
- colorBackgroundStatusWarningMedium: ft,
92
- colorBackgroundStatusWarningStrong: Nt,
93
- colorBackgroundStatusErrorMedium: kt,
94
- colorBackgroundStatusErrorStrong: xt,
95
- colorBackgroundStatusNeutral: $t,
96
- colorBackgroundStatusSpecial: Pt,
97
- colorBackgroundStatusAttention: Et,
98
- colorBackgroundStatusBlackFriday: Ot,
99
- colorBackgroundStatusSuccessStrongNegative: Tt,
100
- colorBackgroundStatusWarningStrongNegative: yt,
101
- colorBackgroundStatusErrorStrongNegative: mt,
102
- colorBackgroundToneOnTonePrimary: bt,
103
- colorBackgroundToneOnToneSecondary: At,
104
- colorBackgroundToneOnToneTertiary: Ht,
105
- colorBackgroundToneOnToneQuaternary: Mt,
106
- colorBorderWeak: Lt,
107
- colorBorderMedium: Wt,
108
- colorBorderStrong: ht,
109
- colorBorderWeakNegative: wt,
110
- colorBorderMediumNegative: Dt,
111
- colorBorderStrongNegative: Ft,
112
- colorBorderInteractivePrimary: Qt,
113
- colorBorderInteractivePrimaryHover: qt,
114
- colorBorderInteractivePrimaryActive: zt,
115
- colorBorderInteractiveFocus: Rt,
116
- colorBorderInteractiveExpressive: Jt,
117
- colorBorderInteractiveSubtle: Xt,
118
- colorBorderInteractiveSubtleHover: Zt,
119
- colorBorderInteractiveSelected: Ut,
120
- colorBorderInteractivePrimaryNegative: jt,
121
- colorBorderInteractivePrimaryHoverNegative: Gt,
122
- colorBorderInteractivePrimaryActiveNegative: Kt,
123
- colorBorderInteractiveSubtleNegative: Yt,
124
- colorBorderInteractiveSubtleHoverNegative: Vt,
125
- colorBorderStatusError: _t,
126
- colorBorderStatusWarning: ea,
127
- colorBorderStatusInfo: oa,
128
- colorBorderStatusSuccess: ta,
129
- colorBorderStatusErrorNegative: ra,
130
- colorBorderStatusSuccessNegative: aa
131
- }, ua = {
132
- colorBrandDeepPurple: we,
133
- colorBrandCorePurple: Le,
134
- colorBrandLightPurple: Fe,
135
- colorBrandDeepBeige: he,
136
- colorBrandBeige: De,
137
- colorBrandLightBeige: We,
138
- colorBrandOffBlack: Me,
139
- colorBrandWhite: He,
140
- colorTextDefault: Ae,
141
- colorTextMedium: be,
142
- colorTextWeak: Oe,
143
- colorTextDefaultNegative: Ee,
144
- colorTextMediumNegative: Pe,
145
- colorTextWeakNegative: $e,
146
- colorTextInteractivePrimary: ye,
147
- colorTextInteractivePrimaryHover: Ne,
148
- colorTextInteractivePrimaryActive: fe,
149
- colorTextInteractiveOnPrimary: me,
150
- colorTextInteractiveOnExpressive: xe,
151
- colorTextInteractiveOnExpressiveHover: ke,
152
- colorTextInteractiveOnExpressiveActive: Te,
153
- colorTextInteractiveOnDestructive: Ie,
154
- colorTextInteractiveSelected: Ce,
155
- colorTextInteractivePrimaryNegative: Se,
156
- colorTextInteractivePrimaryHoverNegative: Be,
157
- colorTextInteractivePrimaryActiveNegative: de,
158
- colorTextInteractiveOnPrimaryNegative: ge,
159
- colorTextInteractiveOnExpressiveNegative: ve,
160
- colorTextInteractiveOnExpressiveHoverNegative: pe,
161
- colorTextInteractiveOnExpressiveActiveNegative: le,
162
- colorTextStatusInfoMedium: se,
163
- colorTextStatusInfoStrong: ie,
164
- colorTextStatusSuccessMedium: ne,
165
- colorTextStatusSuccessStrong: ue,
166
- colorTextStatusWarningMedium: ce,
167
- colorTextStatusWarningStrong: ae,
168
- colorTextStatusErrorMedium: te,
169
- colorTextStatusErrorStrong: oe,
170
- colorTextStatusNeutral: ee,
171
- colorTextStatusSpecial: re,
172
- colorTextStatusAttention: _r,
173
- colorTextStatusDiscount: Vr,
174
- colorTextStatusBlackFriday: Zr,
175
- colorTextStatusSuccessStrongNegative: Yr,
176
- colorTextStatusErrorMediumNegative: Xr,
177
- colorTextStatusErrorStrongNegative: Ur,
178
- colorTextStatusWarningMediumNegative: Jr,
179
- colorTextToneOnTonePrimary: Kr,
180
- colorTextToneOnToneSecondary: Gr,
181
- colorTextToneOnToneTertiary: zr,
182
- colorBackgroundPrimary: qr,
183
- colorBackgroundSecondary: jr,
184
- colorBackgroundOnImage: Qr,
185
- colorBackgroundPrimaryNegative: Rr,
186
- colorBackgroundSecondaryNegative: wr,
187
- colorBackgroundOnImageNegative: Lr,
188
- colorBackgroundInteractivePrimary: Fr,
189
- colorBackgroundInteractivePrimaryHover: hr,
190
- colorBackgroundInteractivePrimaryActive: Dr,
191
- colorBackgroundInteractiveExpressive: Wr,
192
- colorBackgroundInteractiveExpressiveHover: Mr,
193
- colorBackgroundInteractiveExpressiveActive: Hr,
194
- colorBackgroundInteractiveTransparentHover: Ar,
195
- colorBackgroundInteractiveTransparentActive: br,
196
- colorBackgroundInteractiveDisabled: Or,
197
- colorBackgroundInteractiveReadOnly: Er,
198
- colorBackgroundInteractiveInactive: Pr,
199
- colorBackgroundInteractiveDestructive: $r,
200
- colorBackgroundInteractiveDestructiveHover: yr,
201
- colorBackgroundInteractiveDestructiveActive: Nr,
202
- colorBackgroundInteractiveAutoFill: fr,
203
- colorBackgroundInteractivePrimaryNegative: mr,
204
- colorBackgroundInteractivePrimaryHoverNegative: xr,
205
- colorBackgroundInteractivePrimaryActiveNegative: kr,
206
- colorBackgroundInteractiveExpressiveNegative: Tr,
207
- colorBackgroundInteractiveExpressiveHoverNegative: Ir,
208
- colorBackgroundInteractiveExpressiveActiveNegative: Cr,
209
- colorBackgroundInteractiveTransparentHoverNegative: Sr,
210
- colorBackgroundInteractiveTransparentActiveNegative: Br,
211
- colorBackgroundInteractiveDisabledNegative: dr,
212
- colorBackgroundInteractiveInactiveNegative: gr,
213
- colorBackgroundInteractiveReadOnlyNegative: vr,
214
- colorBackgroundStatusInfoMedium: pr,
215
- colorBackgroundStatusInfoStrong: lr,
216
- colorBackgroundStatusSuccessMedium: sr,
217
- colorBackgroundStatusSuccessStrong: ir,
218
- colorBackgroundStatusWarningMedium: nr,
219
- colorBackgroundStatusWarningStrong: ur,
220
- colorBackgroundStatusErrorMedium: cr,
221
- colorBackgroundStatusErrorStrong: ar,
222
- colorBackgroundStatusNeutral: tr,
223
- colorBackgroundStatusSpecial: or,
224
- colorBackgroundStatusAttention: er,
225
- colorBackgroundStatusBlackFriday: rr,
226
- colorBackgroundStatusSuccessStrongNegative: _,
227
- colorBackgroundStatusWarningStrongNegative: V,
228
- colorBackgroundStatusErrorStrongNegative: Z,
229
- colorBackgroundToneOnTonePrimary: Y,
230
- colorBackgroundToneOnToneSecondary: X,
231
- colorBackgroundToneOnToneTertiary: U,
232
- colorBackgroundToneOnToneQuaternary: J,
233
- colorBorderWeak: K,
234
- colorBorderMedium: G,
235
- colorBorderStrong: z,
236
- colorBorderWeakNegative: q,
237
- colorBorderMediumNegative: j,
238
- colorBorderStrongNegative: Q,
239
- colorBorderInteractivePrimary: R,
240
- colorBorderInteractivePrimaryHover: w,
241
- colorBorderInteractivePrimaryActive: L,
242
- colorBorderInteractiveFocus: F,
243
- colorBorderInteractiveExpressive: h,
244
- colorBorderInteractiveSubtle: D,
245
- colorBorderInteractiveSubtleHover: W,
246
- colorBorderInteractiveSelected: M,
247
- colorBorderInteractivePrimaryNegative: H,
248
- colorBorderInteractivePrimaryHoverNegative: A,
249
- colorBorderInteractivePrimaryActiveNegative: b,
250
- colorBorderInteractiveSubtleNegative: O,
251
- colorBorderInteractiveSubtleHoverNegative: E,
252
- colorBorderStatusError: P,
253
- colorBorderStatusWarning: $,
254
- colorBorderStatusInfo: y,
255
- colorBorderStatusSuccess: N,
256
- colorBorderStatusErrorNegative: f,
257
- colorBorderStatusSuccessNegative: m
258
- }, B = {
259
- light: ua,
260
- dark: ca
261
- }, na = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ia = ({
262
- theme: e = B,
263
- cssVariablesSelector: r,
264
- currentColorScheme: t
265
- }) => {
266
- l(() => {
267
- t && Object.entries(e?.[t] ?? B[t]).forEach(
268
- ([u, n]) => {
269
- ((r ? document.querySelector(r) : null) ?? document.documentElement).style.setProperty(
270
- `--purpur-${na(u)}`,
271
- n
272
- );
273
- }
274
- );
275
- }, [e, r, t]);
276
- }, S = T({
277
- colorScheme: "light",
278
- currentColorScheme: "light",
279
- setColorScheme: () => {
280
- },
281
- options: {}
282
- }), ga = ({
283
- cssVariablesSelector: e,
284
- forceColorScheme: r,
285
- theme: t,
286
- children: u,
287
- options: n = {},
288
- ...p
289
- }) => {
290
- const [a, i] = d(r ?? "auto"), [c, s] = d(
291
- r ?? "light"
292
- );
293
- l(() => {
294
- if (r)
295
- i(r);
296
- else {
297
- const o = localStorage.getItem("colorScheme");
298
- o && i(o);
299
- }
300
- }, [r]), l(() => {
301
- const o = window.matchMedia("(prefers-color-scheme: dark)");
302
- s(a === "auto" ? o.matches ? "dark" : "light" : a);
303
- const v = (I) => {
304
- !r && a === "auto" && s(I.matches ? "dark" : "light");
305
- };
306
- return o.addEventListener("change", v), () => {
307
- o.removeEventListener("change", v);
308
- };
309
- }, [a, r]), ia({
310
- theme: t,
311
- cssVariablesSelector: e,
312
- currentColorScheme: t !== void 0 ? c : void 0
313
- });
314
- const C = x(
315
- () => ({
316
- colorScheme: a,
317
- currentColorScheme: c,
318
- setColorScheme: (o) => {
319
- r || (i(o), localStorage.setItem("colorScheme", o));
320
- }
321
- }),
322
- [a, c, r]
323
- );
324
- return /* @__PURE__ */ g(S.Provider, { value: { ...C, options: n }, children: /* @__PURE__ */ g("div", { "data-color-scheme": c, className: c, ...p, children: u }) });
325
- }, da = () => {
326
- const e = k(S);
327
- if (!e)
328
- throw new Error("useTheme must be used within a ThemeProvider");
329
- return e;
330
- };
331
- export {
332
- ga as T,
333
- da as a,
334
- B as t,
335
- ia as u
336
- };
337
- //# sourceMappingURL=ThemeProvider-CkX-BNWN.mjs.map
@@ -1,2 +0,0 @@
1
- "use strict";const B=require("react/jsx-runtime"),a=require("react"),r=require("./variables-DoI78zZc.js"),k="#f4e0ff",x="#c461f7",f="#29003e",m="#ede1d8",N="#4f4741",y="#3b332d",P="#ffffff",E="#202022",O="rgba(255, 255, 255, 0.95)",b="rgba(255, 255, 255, 0.66)",A="rgba(255, 255, 255, 0.37)",H="rgba(0, 0, 0, 0.8)",M="rgba(0, 0, 0, 0.54)",W="rgba(0, 0, 0, 0.44)",D="#f4e0ff",h="#faf0ff",F="#ffffff",L="#4e0174",R="#ffffff",w="#6d02a3",Q="#4e0174",j="#29003e",q="#ffffff",$="#ffffff",z="#29003e",K="#ffffff",Z="#29003e",G="#ffffff",J="#ffffff",U="#d58df9",X="#d58df9",Y="#ffafc9",_="#980233",V="#fb4885",rr="#e4175c",er="#79d9a7",or="#02562b",tr="#1fa15e",ar="#f9bb5b",ur="#f39200",cr="#a86602",nr="#91cdf4",ir="#3694d3",lr="#ffffff",pr="#ffffff",vr="#4e0174",sr="#202022",gr="#29003e",dr="#f4e0ff",Br="#ffffff",Sr="#121212",Cr="#ffffff",Tr="#202022",Ir="#f5f5fa",kr="rgba(0, 0, 0, 0.71)",xr="rgba(255, 255, 255, 0.84)",fr="#03385b",mr="#f4e0ff",Nr="#e4b6fb",yr="#d58df9",Pr="#4e0174",Er="#6d02a3",Or="#8c07d0",br="#990ae3",Ar="#c461f7",Hr="#d58df9",Mr="#990ae3",Wr="#6d02a3",Dr="#4e0174",hr="rgba(255, 255, 255, 0.11)",Fr="rgba(0, 0, 0, 0.1)",Lr="#4e0174",Rr="#e4b6fb",wr="#6d02a3",Qr="#d58df9",jr="rgba(255, 255, 255, 0.16)",qr="rgba(0, 0, 0, 0.05)",$r="rgba(255, 255, 255, 0.07)",zr="rgba(0, 0, 0, 0.05)",Kr="#e4175c",Zr="#c00543",Gr="#980233",Jr="#03385b",Ur="#62b2e7",Xr="#003e1e",Yr="#3dbf7c",_r="#1fa15e",Vr="#700025",re="#ff80ab",ee="#fb4885",oe="#4c2f03",te="#f39200",ae="#f39200",ue="#353537",ce="#6d02a3",ne="#f4e0ff",ie="#ffffff",le="#f4e0ff",pe="#29003e",ve="#4f4741",se="#2d2824",ge="rgba(255, 255, 255, 0.29)",de="rgba(0, 0, 0, 0.33)",Be="rgba(255, 255, 255, 0.46)",Se="rgba(0, 0, 0, 0.54)",Ce="rgba(255, 255, 255, 0.16)",Te="rgba(0, 0, 0, 0.16)",Ie="#c461f7",ke="#f4e0ff",xe="#6d02a3",fe="#faf0ff",me="#ffffff",Ne="#4e0174",ye="#29003e",Pe="#990ae3",Ee="#d58df9",Oe="rgba(255, 255, 255, 0.37)",be="rgba(0, 0, 0, 0.44)",Ae="#e4b6fb",He="#6d02a3",Me="#fb4885",We="#e4175c",De="#f39200",he="#3694d3",Fe="#1fa15e",Le="#018842",Re={colorBrandDeepPurple:k,colorBrandCorePurple:x,colorBrandLightPurple:f,colorBrandDeepBeige:m,colorBrandBeige:N,colorBrandLightBeige:y,colorBrandOffBlack:P,colorBrandWhite:E,colorTextDefault:O,colorTextMedium:b,colorTextWeak:A,colorTextDefaultNegative:H,colorTextMediumNegative:M,colorTextWeakNegative:W,colorTextInteractivePrimary:D,colorTextInteractivePrimaryHover:h,colorTextInteractivePrimaryActive:F,colorTextInteractiveOnPrimary:L,colorTextInteractiveOnExpressive:q,colorTextInteractiveOnExpressiveHover:z,colorTextInteractiveOnExpressiveActive:Z,colorTextInteractiveOnDestructive:J,colorTextInteractiveSelected:U,colorTextInteractivePrimaryNegative:w,colorTextInteractivePrimaryHoverNegative:Q,colorTextInteractivePrimaryActiveNegative:j,colorTextInteractiveOnPrimaryNegative:R,colorTextInteractiveOnExpressiveNegative:$,colorTextInteractiveOnExpressiveHoverNegative:K,colorTextInteractiveOnExpressiveActiveNegative:G,colorTextStatusInfoMedium:ir,colorTextStatusInfoStrong:nr,colorTextStatusSuccessMedium:tr,colorTextStatusSuccessStrong:er,colorTextStatusWarningMedium:ur,colorTextStatusWarningStrong:ar,colorTextStatusErrorMedium:V,colorTextStatusErrorStrong:Y,colorTextStatusNeutral:lr,colorTextStatusSpecial:pr,colorTextStatusAttention:vr,colorTextStatusDiscount:X,colorTextStatusBlackFriday:sr,colorTextStatusSuccessStrongNegative:or,colorTextStatusErrorMediumNegative:rr,colorTextStatusErrorStrongNegative:_,colorTextStatusWarningMediumNegative:cr,colorTextToneOnTonePrimary:gr,colorTextToneOnToneSecondary:dr,colorTextToneOnToneTertiary:Br,colorBackgroundPrimary:Sr,colorBackgroundSecondary:Tr,colorBackgroundOnImage:kr,colorBackgroundPrimaryNegative:Cr,colorBackgroundSecondaryNegative:Ir,colorBackgroundOnImageNegative:xr,colorBackgroundInteractivePrimary:mr,colorBackgroundInteractivePrimaryHover:Nr,colorBackgroundInteractivePrimaryActive:yr,colorBackgroundInteractiveExpressive:br,colorBackgroundInteractiveExpressiveHover:Ar,colorBackgroundInteractiveExpressiveActive:Hr,colorBackgroundInteractiveTransparentHover:Lr,colorBackgroundInteractiveTransparentActive:wr,colorBackgroundInteractiveDisabled:hr,colorBackgroundInteractiveReadOnly:$r,colorBackgroundInteractiveInactive:jr,colorBackgroundInteractiveDestructive:Kr,colorBackgroundInteractiveDestructiveHover:Zr,colorBackgroundInteractiveDestructiveActive:Gr,colorBackgroundInteractiveAutoFill:fr,colorBackgroundInteractivePrimaryNegative:Pr,colorBackgroundInteractivePrimaryHoverNegative:Er,colorBackgroundInteractivePrimaryActiveNegative:Or,colorBackgroundInteractiveExpressiveNegative:Mr,colorBackgroundInteractiveExpressiveHoverNegative:Wr,colorBackgroundInteractiveExpressiveActiveNegative:Dr,colorBackgroundInteractiveTransparentHoverNegative:Rr,colorBackgroundInteractiveTransparentActiveNegative:Qr,colorBackgroundInteractiveDisabledNegative:Fr,colorBackgroundInteractiveInactiveNegative:qr,colorBackgroundInteractiveReadOnlyNegative:zr,colorBackgroundStatusInfoMedium:Jr,colorBackgroundStatusInfoStrong:Ur,colorBackgroundStatusSuccessMedium:Xr,colorBackgroundStatusSuccessStrong:Yr,colorBackgroundStatusWarningMedium:oe,colorBackgroundStatusWarningStrong:te,colorBackgroundStatusErrorMedium:Vr,colorBackgroundStatusErrorStrong:re,colorBackgroundStatusNeutral:ue,colorBackgroundStatusSpecial:ce,colorBackgroundStatusAttention:ne,colorBackgroundStatusBlackFriday:ie,colorBackgroundStatusSuccessStrongNegative:_r,colorBackgroundStatusWarningStrongNegative:ae,colorBackgroundStatusErrorStrongNegative:ee,colorBackgroundToneOnTonePrimary:le,colorBackgroundToneOnToneSecondary:pe,colorBackgroundToneOnToneTertiary:ve,colorBackgroundToneOnToneQuaternary:se,colorBorderWeak:Ce,colorBorderMedium:ge,colorBorderStrong:Be,colorBorderWeakNegative:Te,colorBorderMediumNegative:de,colorBorderStrongNegative:Se,colorBorderInteractivePrimary:ke,colorBorderInteractivePrimaryHover:fe,colorBorderInteractivePrimaryActive:me,colorBorderInteractiveFocus:Ie,colorBorderInteractiveExpressive:Pe,colorBorderInteractiveSubtle:Oe,colorBorderInteractiveSubtleHover:Ae,colorBorderInteractiveSelected:Ee,colorBorderInteractivePrimaryNegative:xe,colorBorderInteractivePrimaryHoverNegative:Ne,colorBorderInteractivePrimaryActiveNegative:ye,colorBorderInteractiveSubtleNegative:be,colorBorderInteractiveSubtleHoverNegative:He,colorBorderStatusError:Me,colorBorderStatusWarning:De,colorBorderStatusInfo:he,colorBorderStatusSuccess:Fe,colorBorderStatusErrorNegative:We,colorBorderStatusSuccessNegative:Le},we={colorBrandDeepPurple:r.purpurColorBrandDeepPurple,colorBrandCorePurple:r.purpurColorBrandCorePurple,colorBrandLightPurple:r.purpurColorBrandLightPurple,colorBrandDeepBeige:r.purpurColorBrandDeepBeige,colorBrandBeige:r.purpurColorBrandBeige,colorBrandLightBeige:r.purpurColorBrandLightBeige,colorBrandOffBlack:r.purpurColorBrandOffBlack,colorBrandWhite:r.purpurColorBrandWhite,colorTextDefault:r.purpurColorTextDefault,colorTextMedium:r.purpurColorTextMedium,colorTextWeak:r.purpurColorTextWeak,colorTextDefaultNegative:r.purpurColorTextDefaultNegative,colorTextMediumNegative:r.purpurColorTextMediumNegative,colorTextWeakNegative:r.purpurColorTextWeakNegative,colorTextInteractivePrimary:r.purpurColorTextInteractivePrimary,colorTextInteractivePrimaryHover:r.purpurColorTextInteractivePrimaryHover,colorTextInteractivePrimaryActive:r.purpurColorTextInteractivePrimaryActive,colorTextInteractiveOnPrimary:r.purpurColorTextInteractiveOnPrimary,colorTextInteractiveOnExpressive:r.purpurColorTextInteractiveOnExpressive,colorTextInteractiveOnExpressiveHover:r.purpurColorTextInteractiveOnExpressiveHover,colorTextInteractiveOnExpressiveActive:r.purpurColorTextInteractiveOnExpressiveActive,colorTextInteractiveOnDestructive:r.purpurColorTextInteractiveOnDestructive,colorTextInteractiveSelected:r.purpurColorTextInteractiveSelected,colorTextInteractivePrimaryNegative:r.purpurColorTextInteractivePrimaryNegative,colorTextInteractivePrimaryHoverNegative:r.purpurColorTextInteractivePrimaryHoverNegative,colorTextInteractivePrimaryActiveNegative:r.purpurColorTextInteractivePrimaryActiveNegative,colorTextInteractiveOnPrimaryNegative:r.purpurColorTextInteractiveOnPrimaryNegative,colorTextInteractiveOnExpressiveNegative:r.purpurColorTextInteractiveOnExpressiveNegative,colorTextInteractiveOnExpressiveHoverNegative:r.purpurColorTextInteractiveOnExpressiveHoverNegative,colorTextInteractiveOnExpressiveActiveNegative:r.purpurColorTextInteractiveOnExpressiveActiveNegative,colorTextStatusInfoMedium:r.purpurColorTextStatusInfoMedium,colorTextStatusInfoStrong:r.purpurColorTextStatusInfoStrong,colorTextStatusSuccessMedium:r.purpurColorTextStatusSuccessMedium,colorTextStatusSuccessStrong:r.purpurColorTextStatusSuccessStrong,colorTextStatusWarningMedium:r.purpurColorTextStatusWarningMedium,colorTextStatusWarningStrong:r.purpurColorTextStatusWarningStrong,colorTextStatusErrorMedium:r.purpurColorTextStatusErrorMedium,colorTextStatusErrorStrong:r.purpurColorTextStatusErrorStrong,colorTextStatusNeutral:r.purpurColorTextStatusNeutral,colorTextStatusSpecial:r.purpurColorTextStatusSpecial,colorTextStatusAttention:r.purpurColorTextStatusAttention,colorTextStatusDiscount:r.purpurColorTextStatusDiscount,colorTextStatusBlackFriday:r.purpurColorTextStatusBlackFriday,colorTextStatusSuccessStrongNegative:r.purpurColorTextStatusSuccessStrongNegative,colorTextStatusErrorMediumNegative:r.purpurColorTextStatusErrorMediumNegative,colorTextStatusErrorStrongNegative:r.purpurColorTextStatusErrorStrongNegative,colorTextStatusWarningMediumNegative:r.purpurColorTextStatusWarningMediumNegative,colorTextToneOnTonePrimary:r.purpurColorTextToneOnTonePrimary,colorTextToneOnToneSecondary:r.purpurColorTextToneOnToneSecondary,colorTextToneOnToneTertiary:r.purpurColorTextToneOnToneTertiary,colorBackgroundPrimary:r.purpurColorBackgroundPrimary,colorBackgroundSecondary:r.purpurColorBackgroundSecondary,colorBackgroundOnImage:r.purpurColorBackgroundOnImage,colorBackgroundPrimaryNegative:r.purpurColorBackgroundPrimaryNegative,colorBackgroundSecondaryNegative:r.purpurColorBackgroundSecondaryNegative,colorBackgroundOnImageNegative:r.purpurColorBackgroundOnImageNegative,colorBackgroundInteractivePrimary:r.purpurColorBackgroundInteractivePrimary,colorBackgroundInteractivePrimaryHover:r.purpurColorBackgroundInteractivePrimaryHover,colorBackgroundInteractivePrimaryActive:r.purpurColorBackgroundInteractivePrimaryActive,colorBackgroundInteractiveExpressive:r.purpurColorBackgroundInteractiveExpressive,colorBackgroundInteractiveExpressiveHover:r.purpurColorBackgroundInteractiveExpressiveHover,colorBackgroundInteractiveExpressiveActive:r.purpurColorBackgroundInteractiveExpressiveActive,colorBackgroundInteractiveTransparentHover:r.purpurColorBackgroundInteractiveTransparentHover,colorBackgroundInteractiveTransparentActive:r.purpurColorBackgroundInteractiveTransparentActive,colorBackgroundInteractiveDisabled:r.purpurColorBackgroundInteractiveDisabled,colorBackgroundInteractiveReadOnly:r.purpurColorBackgroundInteractiveReadOnly,colorBackgroundInteractiveInactive:r.purpurColorBackgroundInteractiveInactive,colorBackgroundInteractiveDestructive:r.purpurColorBackgroundInteractiveDestructive,colorBackgroundInteractiveDestructiveHover:r.purpurColorBackgroundInteractiveDestructiveHover,colorBackgroundInteractiveDestructiveActive:r.purpurColorBackgroundInteractiveDestructiveActive,colorBackgroundInteractiveAutoFill:r.purpurColorBackgroundInteractiveAutoFill,colorBackgroundInteractivePrimaryNegative:r.purpurColorBackgroundInteractivePrimaryNegative,colorBackgroundInteractivePrimaryHoverNegative:r.purpurColorBackgroundInteractivePrimaryHoverNegative,colorBackgroundInteractivePrimaryActiveNegative:r.purpurColorBackgroundInteractivePrimaryActiveNegative,colorBackgroundInteractiveExpressiveNegative:r.purpurColorBackgroundInteractiveExpressiveNegative,colorBackgroundInteractiveExpressiveHoverNegative:r.purpurColorBackgroundInteractiveExpressiveHoverNegative,colorBackgroundInteractiveExpressiveActiveNegative:r.purpurColorBackgroundInteractiveExpressiveActiveNegative,colorBackgroundInteractiveTransparentHoverNegative:r.purpurColorBackgroundInteractiveTransparentHoverNegative,colorBackgroundInteractiveTransparentActiveNegative:r.purpurColorBackgroundInteractiveTransparentActiveNegative,colorBackgroundInteractiveDisabledNegative:r.purpurColorBackgroundInteractiveDisabledNegative,colorBackgroundInteractiveInactiveNegative:r.purpurColorBackgroundInteractiveInactiveNegative,colorBackgroundInteractiveReadOnlyNegative:r.purpurColorBackgroundInteractiveReadOnlyNegative,colorBackgroundStatusInfoMedium:r.purpurColorBackgroundStatusInfoMedium,colorBackgroundStatusInfoStrong:r.purpurColorBackgroundStatusInfoStrong,colorBackgroundStatusSuccessMedium:r.purpurColorBackgroundStatusSuccessMedium,colorBackgroundStatusSuccessStrong:r.purpurColorBackgroundStatusSuccessStrong,colorBackgroundStatusWarningMedium:r.purpurColorBackgroundStatusWarningMedium,colorBackgroundStatusWarningStrong:r.purpurColorBackgroundStatusWarningStrong,colorBackgroundStatusErrorMedium:r.purpurColorBackgroundStatusErrorMedium,colorBackgroundStatusErrorStrong:r.purpurColorBackgroundStatusErrorStrong,colorBackgroundStatusNeutral:r.purpurColorBackgroundStatusNeutral,colorBackgroundStatusSpecial:r.purpurColorBackgroundStatusSpecial,colorBackgroundStatusAttention:r.purpurColorBackgroundStatusAttention,colorBackgroundStatusBlackFriday:r.purpurColorBackgroundStatusBlackFriday,colorBackgroundStatusSuccessStrongNegative:r.purpurColorBackgroundStatusSuccessStrongNegative,colorBackgroundStatusWarningStrongNegative:r.purpurColorBackgroundStatusWarningStrongNegative,colorBackgroundStatusErrorStrongNegative:r.purpurColorBackgroundStatusErrorStrongNegative,colorBackgroundToneOnTonePrimary:r.purpurColorBackgroundToneOnTonePrimary,colorBackgroundToneOnToneSecondary:r.purpurColorBackgroundToneOnToneSecondary,colorBackgroundToneOnToneTertiary:r.purpurColorBackgroundToneOnToneTertiary,colorBackgroundToneOnToneQuaternary:r.purpurColorBackgroundToneOnToneQuaternary,colorBorderWeak:r.purpurColorBorderWeak,colorBorderMedium:r.purpurColorBorderMedium,colorBorderStrong:r.purpurColorBorderStrong,colorBorderWeakNegative:r.purpurColorBorderWeakNegative,colorBorderMediumNegative:r.purpurColorBorderMediumNegative,colorBorderStrongNegative:r.purpurColorBorderStrongNegative,colorBorderInteractivePrimary:r.purpurColorBorderInteractivePrimary,colorBorderInteractivePrimaryHover:r.purpurColorBorderInteractivePrimaryHover,colorBorderInteractivePrimaryActive:r.purpurColorBorderInteractivePrimaryActive,colorBorderInteractiveFocus:r.purpurColorBorderInteractiveFocus,colorBorderInteractiveExpressive:r.purpurColorBorderInteractiveExpressive,colorBorderInteractiveSubtle:r.purpurColorBorderInteractiveSubtle,colorBorderInteractiveSubtleHover:r.purpurColorBorderInteractiveSubtleHover,colorBorderInteractiveSelected:r.purpurColorBorderInteractiveSelected,colorBorderInteractivePrimaryNegative:r.purpurColorBorderInteractivePrimaryNegative,colorBorderInteractivePrimaryHoverNegative:r.purpurColorBorderInteractivePrimaryHoverNegative,colorBorderInteractivePrimaryActiveNegative:r.purpurColorBorderInteractivePrimaryActiveNegative,colorBorderInteractiveSubtleNegative:r.purpurColorBorderInteractiveSubtleNegative,colorBorderInteractiveSubtleHoverNegative:r.purpurColorBorderInteractiveSubtleHoverNegative,colorBorderStatusError:r.purpurColorBorderStatusError,colorBorderStatusWarning:r.purpurColorBorderStatusWarning,colorBorderStatusInfo:r.purpurColorBorderStatusInfo,colorBorderStatusSuccess:r.purpurColorBorderStatusSuccess,colorBorderStatusErrorNegative:r.purpurColorBorderStatusErrorNegative,colorBorderStatusSuccessNegative:r.purpurColorBorderStatusSuccessNegative},s={light:we,dark:Re},Qe=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),S=({theme:o=s,cssVariablesSelector:e,currentColorScheme:u})=>{a.useEffect(()=>{u&&Object.entries(o?.[u]??s[u]).forEach(([i,l])=>{((e?document.querySelector(e):null)??document.documentElement).style.setProperty(`--purpur-${Qe(i)}`,l)})},[o,e,u])},C=a.createContext({colorScheme:"light",currentColorScheme:"light",setColorScheme:()=>{},options:{}}),je=({cssVariablesSelector:o,forceColorScheme:e,theme:u,children:i,options:l={},...g})=>{const[c,p]=a.useState(e??"auto"),[n,v]=a.useState(e??"light");a.useEffect(()=>{if(e)p(e);else{const t=localStorage.getItem("colorScheme");t&&p(t)}},[e]),a.useEffect(()=>{const t=window.matchMedia("(prefers-color-scheme: dark)");v(c==="auto"?t.matches?"dark":"light":c);const d=I=>{!e&&c==="auto"&&v(I.matches?"dark":"light")};return t.addEventListener("change",d),()=>{t.removeEventListener("change",d)}},[c,e]),S({theme:u,cssVariablesSelector:o,currentColorScheme:u!==void 0?n:void 0});const T=a.useMemo(()=>({colorScheme:c,currentColorScheme:n,setColorScheme:t=>{e||(p(t),localStorage.setItem("colorScheme",t))}}),[c,n,e]);return B.jsx(C.Provider,{value:{...T,options:l},children:B.jsx("div",{"data-color-scheme":n,className:n,...g,children:i})})},qe=()=>{const o=a.useContext(C);if(!o)throw new Error("useTheme must be used within a ThemeProvider");return o};exports.ThemeProvider=je;exports.teliaTheme=s;exports.useApplyTheme=S;exports.useTheme=qe;
2
- //# sourceMappingURL=ThemeProvider-Dy771oix.js.map