@purpur/library 9.0.2 → 9.0.4

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 (83) hide show
  1. package/CHANGELOG.json +27 -0
  2. package/CHANGELOG.md +16 -1
  3. package/dist/ThemeProvider-CrjMv3M8.mjs +337 -0
  4. package/dist/{ThemeProvider-mOHIAi2k.mjs.map → ThemeProvider-CrjMv3M8.mjs.map} +1 -1
  5. package/dist/ThemeProvider-ipAIFRUi.js +2 -0
  6. package/dist/{ThemeProvider-djmNDpmy.js.map → ThemeProvider-ipAIFRUi.js.map} +1 -1
  7. package/dist/{footer-DY0s_C6e.mjs → footer-DcWsihxS.mjs} +3 -4
  8. package/dist/{footer-DY0s_C6e.mjs.map → footer-DcWsihxS.mjs.map} +1 -1
  9. package/dist/footer-DrjAwjuL.js +2 -0
  10. package/dist/{footer-Btsh40pg.js.map → footer-DrjAwjuL.js.map} +1 -1
  11. package/dist/footer.cjs.js +1 -1
  12. package/dist/footer.es.js +1 -1
  13. package/dist/{hero-banner-Cl5YFaKh.mjs → hero-banner-B8fRHxXc.mjs} +4 -5
  14. package/dist/{hero-banner-Cl5YFaKh.mjs.map → hero-banner-B8fRHxXc.mjs.map} +1 -1
  15. package/dist/hero-banner-D3peC1NR.js +2 -0
  16. package/dist/{hero-banner-4JZr2Tzb.js.map → hero-banner-D3peC1NR.js.map} +1 -1
  17. package/dist/hero-banner.cjs.js +1 -1
  18. package/dist/hero-banner.es.js +1 -1
  19. package/dist/libraries/library/src/library.d.ts +1 -1
  20. package/dist/libraries/library/src/tokens.d.ts +1 -1
  21. package/dist/libraries/theme/src/useApplyTheme.d.ts.map +1 -1
  22. package/dist/libraries/tokens/dist/border/variables.d.ts +9 -0
  23. package/dist/libraries/tokens/dist/border/variables.dark.d.ts +9 -0
  24. package/dist/libraries/tokens/dist/breakpoint/variables.d.ts +8 -0
  25. package/dist/libraries/tokens/dist/breakpoint/variables.dark.d.ts +8 -0
  26. package/dist/libraries/tokens/dist/color/variables.d.ts +252 -0
  27. package/dist/libraries/tokens/dist/color/variables.dark.d.ts +251 -0
  28. package/dist/libraries/tokens/dist/dark.d.ts +9 -0
  29. package/dist/libraries/tokens/dist/filter/variables.d.ts +1 -0
  30. package/dist/libraries/tokens/dist/filter/variables.dark.d.ts +1 -0
  31. package/dist/libraries/tokens/dist/gradient/variables.d.ts +9 -0
  32. package/dist/libraries/tokens/dist/gradient/variables.dark.d.ts +9 -0
  33. package/dist/libraries/tokens/dist/index.d.ts +9 -0
  34. package/dist/libraries/tokens/dist/motion/variables.d.ts +11 -0
  35. package/dist/libraries/tokens/dist/motion/variables.dark.d.ts +11 -0
  36. package/dist/libraries/tokens/dist/shadow/variables.d.ts +4 -0
  37. package/dist/libraries/tokens/dist/shadow/variables.dark.d.ts +4 -0
  38. package/dist/libraries/tokens/dist/spacing/variables.d.ts +23 -0
  39. package/dist/libraries/tokens/dist/spacing/variables.dark.d.ts +15 -0
  40. package/dist/libraries/tokens/dist/typography/variables.d.ts +26 -0
  41. package/dist/libraries/tokens/dist/typography/variables.dark.d.ts +26 -0
  42. package/dist/library.cjs.js +1 -1
  43. package/dist/library.es.js +6 -6
  44. package/dist/promotion-card-C7B5ZJaB.js +2 -0
  45. package/dist/{promotion-card-DMCtLQwW.js.map → promotion-card-C7B5ZJaB.js.map} +1 -1
  46. package/dist/{promotion-card-D2F-EWgn.mjs → promotion-card-wGGt75eI.mjs} +4 -5
  47. package/dist/{promotion-card-D2F-EWgn.mjs.map → promotion-card-wGGt75eI.mjs.map} +1 -1
  48. package/dist/promotion-card.cjs.js +1 -1
  49. package/dist/promotion-card.es.js +1 -1
  50. package/dist/text-area-9ggiIWtJ.js +2 -0
  51. package/dist/{text-area-C4mcG5c0.js.map → text-area-9ggiIWtJ.js.map} +1 -1
  52. package/dist/{text-area-CJD8ksqm.mjs → text-area-Cb9Hm2Z9.mjs} +3 -4
  53. package/dist/{text-area-CJD8ksqm.mjs.map → text-area-Cb9Hm2Z9.mjs.map} +1 -1
  54. package/dist/text-area.cjs.js +1 -1
  55. package/dist/text-area.es.js +1 -1
  56. package/dist/theme.cjs.js +1 -1
  57. package/dist/theme.es.js +2 -2
  58. package/dist/tokens/dark.css +9 -0
  59. package/dist/tokens/dark.d.ts +9 -0
  60. package/dist/tokens/dark.js +9 -0
  61. package/dist/tokens/index.css +18 -0
  62. package/dist/tokens/index.d.ts +9 -0
  63. package/dist/tokens/index.js +9 -0
  64. package/dist/useColorScheme-DNNu9bz0.js +2 -0
  65. package/dist/{useColorScheme-DwlZAnlk.js.map → useColorScheme-DNNu9bz0.js.map} +1 -1
  66. package/dist/{useColorScheme-CgjazeGp.mjs → useColorScheme-DRQcbSog.mjs} +2 -2
  67. package/dist/{useColorScheme-CgjazeGp.mjs.map → useColorScheme-DRQcbSog.mjs.map} +1 -1
  68. package/package.json +17 -20
  69. package/scripts/generate.mts +1 -0
  70. package/src/aliases.ts +1 -0
  71. package/tokens/dark.css +9 -0
  72. package/tokens/dark.d.ts +9 -0
  73. package/tokens/dark.js +9 -0
  74. package/tokens/index.css +18 -0
  75. package/tokens/index.d.ts +9 -0
  76. package/tokens/index.js +9 -0
  77. package/dist/ThemeProvider-djmNDpmy.js +0 -2
  78. package/dist/ThemeProvider-mOHIAi2k.mjs +0 -338
  79. package/dist/footer-Btsh40pg.js +0 -2
  80. package/dist/hero-banner-4JZr2Tzb.js +0 -2
  81. package/dist/promotion-card-DMCtLQwW.js +0 -2
  82. package/dist/text-area-C4mcG5c0.js +0 -2
  83. package/dist/useColorScheme-DwlZAnlk.js +0 -2
package/CHANGELOG.json CHANGED
@@ -1,6 +1,33 @@
1
1
  {
2
2
  "name": "@purpur/library",
3
3
  "entries": [
4
+ {
5
+ "version": "9.0.4",
6
+ "tag": "@purpur/library_v9.0.4",
7
+ "date": "Fri, 13 Mar 2026 13:47:33 GMT",
8
+ "comments": {
9
+ "none": [
10
+ {
11
+ "comment": "Correctly expose the typings for tokens"
12
+ }
13
+ ]
14
+ }
15
+ },
16
+ {
17
+ "version": "9.0.3",
18
+ "tag": "@purpur/library_v9.0.3",
19
+ "date": "Fri, 13 Mar 2026 10:25:18 GMT",
20
+ "comments": {
21
+ "none": [
22
+ {
23
+ "comment": "Checkbox: Fix wrong colors of checkboxes that were both disabled and unchecked"
24
+ },
25
+ {
26
+ "comment": "Remove change-case a dep, fix codemod"
27
+ }
28
+ ]
29
+ }
30
+ },
4
31
  {
5
32
  "version": "9.0.2",
6
33
  "tag": "@purpur/library_v9.0.2",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  # Change Log - @purpur/library
2
2
 
3
- This log was last generated on Thu, 12 Mar 2026 20:58:52 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 13 Mar 2026 13:47:33 GMT and should not be manually modified.
4
+
5
+ ## 9.0.4
6
+ Fri, 13 Mar 2026 13:47:33 GMT
7
+
8
+ ### Updates
9
+
10
+ - Correctly expose the typings for tokens
11
+
12
+ ## 9.0.3
13
+ Fri, 13 Mar 2026 10:25:18 GMT
14
+
15
+ ### Updates
16
+
17
+ - Checkbox: Fix wrong colors of checkboxes that were both disabled and unchecked
18
+ - Remove change-case a dep, fix codemod
4
19
 
5
20
  ## 9.0.2
6
21
  Thu, 12 Mar 2026 20:58:52 GMT
@@ -0,0 +1,337 @@
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 { d0 as m, cY as f, c$ as N, c_ as y, cZ as b, cX as $, cW as P, cU as E, cQ as O, cP as A, cM as H, cS as M, cV as W, cT as D, cR as h, cK as F, cO as L, cN as R, cL as w, cH as Q, cF as j, cJ as q, cG as z, cE as K, cI as Z, cD as G, cC as J, cB as U, cA as X, cs as Y, cv as _, cp as V, cz as rr, cy as er, cx as or, cw as tr, cr as ar, cq as cr, cu as ur, ct as nr, co as ir, cn as sr, cm as lr, cl as pr, ch as vr, cf as gr, c9 as dr, cd as Br, cb as Sr, c7 as Cr, c6 as Ir, c5 as Tr, c1 as kr, c0 as xr, b$ as mr, bX as fr, ck as Nr, cj as yr, ci as br, ce as $r, cg as Pr, c8 as Er, cc as Or, ca as Ar, c4 as Hr, c3 as Mr, c2 as Wr, b_ as Dr, bZ as hr, bY as Fr, bW as Lr, bU as Rr, bS as wr, bV as Qr, bT as jr, bR as qr, bQ as zr, bP as Kr, bO as Zr, bH as Gr, by as Jr, bA as Ur, bC as Xr, bN as Yr, bw as _r, bM as Vr, bL as re, bK as ee, bx as oe, bz as te, bF as ae, bG as ce, bB as ue, bD as ne, bI as ie, bJ as se, bt as le, br as pe, bp as ve, bk as ge, bn as de, bm as Be, bl as Se, bv as Ce, bu as Ie, bs as Te, bq as ke, bo as xe, bj as me, bi as fe, bh as Ne, bg as ye, bf as be, be as $e, bd as Pe, bc as Ee, bb as Oe, ba as Ae, b9 as He, b8 as Me, b7 as We, b6 as De, b5 as he, b4 as Fe, b3 as Le, b2 as Re } from "./variables-91UvS2rU.mjs";
4
+ const we = "#f4e0ff", Qe = "#c461f7", je = "#29003e", qe = "#ede1d8", ze = "#4f4741", Ke = "#3b332d", Ze = "#ffffff", Ge = "#202022", Je = "rgba(255, 255, 255, 0.95)", Ue = "rgba(255, 255, 255, 0.66)", Xe = "rgba(255, 255, 255, 0.37)", Ye = "rgba(0, 0, 0, 0.8)", _e = "rgba(0, 0, 0, 0.54)", Ve = "rgba(0, 0, 0, 0.44)", ro = "#e4b6fb", eo = "#f4e0ff", oo = "#faf0ff", to = "#4e0174", ao = "#ffffff", co = "#8c07d0", uo = "#6d02a3", no = "#4e0174", 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", bo = "#f39200", $o = "#a86602", Po = "#91cdf4", Eo = "#3694d3", Oo = "#ffffff", Ao = "#ffffff", Ho = "#4e0174", Mo = "#202022", Wo = "#29003e", Do = "#f4e0ff", ho = "#ffffff", Fo = "#121212", Lo = "#ffffff", Ro = "#202022", wo = "#f5f5fa", Qo = "rgba(0, 0, 0, 0.71)", jo = "rgba(255, 255, 255, 0.84)", qo = "#03385b", zo = "#f4e0ff", Ko = "#e4b6fb", Zo = "#d58df9", Go = "#4e0174", Jo = "#6d02a3", Uo = "#8c07d0", Xo = "#990ae3", Yo = "#c461f7", _o = "#d58df9", Vo = "#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", bt = "#353537", $t = "#6d02a3", Pt = "#f4e0ff", Et = "#ffffff", Ot = "#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)", Rt = "rgba(0, 0, 0, 0.16)", wt = "#c461f7", Qt = "#e4b6fb", jt = "#8c07d0", qt = "#f4e0ff", zt = "#faf0ff", Kt = "#6d02a3", Zt = "#4e0174", Gt = "#990ae3", Jt = "#d58df9", Ut = "rgba(255, 255, 255, 0.37)", Xt = "rgba(0, 0, 0, 0.44)", Yt = "#e4b6fb", _t = "#6d02a3", Vt = "#fb4885", ra = "#e4175c", ea = "#f39200", oa = "#3694d3", ta = "#1fa15e", aa = "#018842", ca = {
5
+ colorBrandDeepPurple: we,
6
+ colorBrandCorePurple: Qe,
7
+ colorBrandLightPurple: je,
8
+ colorBrandDeepBeige: qe,
9
+ colorBrandBeige: ze,
10
+ colorBrandLightBeige: Ke,
11
+ colorBrandOffBlack: Ze,
12
+ colorBrandWhite: Ge,
13
+ colorTextDefault: Je,
14
+ colorTextMedium: Ue,
15
+ colorTextWeak: Xe,
16
+ colorTextDefaultNegative: Ye,
17
+ colorTextMediumNegative: _e,
18
+ colorTextWeakNegative: Ve,
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: Eo,
36
+ colorTextStatusInfoStrong: Po,
37
+ colorTextStatusSuccessMedium: No,
38
+ colorTextStatusSuccessStrong: mo,
39
+ colorTextStatusWarningMedium: bo,
40
+ colorTextStatusWarningStrong: yo,
41
+ colorTextStatusErrorMedium: ko,
42
+ colorTextStatusErrorStrong: Io,
43
+ colorTextStatusNeutral: Oo,
44
+ colorTextStatusSpecial: Ao,
45
+ colorTextStatusAttention: Ho,
46
+ colorTextStatusDiscount: Co,
47
+ colorTextStatusBlackFriday: Mo,
48
+ colorTextStatusSuccessStrongNegative: fo,
49
+ colorTextStatusErrorMediumNegative: xo,
50
+ colorTextStatusErrorStrongNegative: To,
51
+ colorTextStatusWarningMediumNegative: $o,
52
+ colorTextToneOnTonePrimary: Wo,
53
+ colorTextToneOnToneSecondary: Do,
54
+ colorTextToneOnToneTertiary: ho,
55
+ colorBackgroundPrimary: Fo,
56
+ colorBackgroundSecondary: Ro,
57
+ colorBackgroundOnImage: Qo,
58
+ colorBackgroundPrimaryNegative: Lo,
59
+ colorBackgroundSecondaryNegative: wo,
60
+ colorBackgroundOnImageNegative: jo,
61
+ colorBackgroundInteractivePrimary: zo,
62
+ colorBackgroundInteractivePrimaryHover: Ko,
63
+ colorBackgroundInteractivePrimaryActive: Zo,
64
+ colorBackgroundInteractiveExpressive: Xo,
65
+ colorBackgroundInteractiveExpressiveHover: Yo,
66
+ colorBackgroundInteractiveExpressiveActive: _o,
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: Go,
77
+ colorBackgroundInteractivePrimaryHoverNegative: Jo,
78
+ colorBackgroundInteractivePrimaryActiveNegative: Uo,
79
+ colorBackgroundInteractiveExpressiveNegative: Vo,
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: bt,
96
+ colorBackgroundStatusSpecial: $t,
97
+ colorBackgroundStatusAttention: Pt,
98
+ colorBackgroundStatusBlackFriday: Et,
99
+ colorBackgroundStatusSuccessStrongNegative: Tt,
100
+ colorBackgroundStatusWarningStrongNegative: yt,
101
+ colorBackgroundStatusErrorStrongNegative: mt,
102
+ colorBackgroundToneOnTonePrimary: Ot,
103
+ colorBackgroundToneOnToneSecondary: At,
104
+ colorBackgroundToneOnToneTertiary: Ht,
105
+ colorBackgroundToneOnToneQuaternary: Mt,
106
+ colorBorderWeak: Lt,
107
+ colorBorderMedium: Wt,
108
+ colorBorderStrong: ht,
109
+ colorBorderWeakNegative: Rt,
110
+ colorBorderMediumNegative: Dt,
111
+ colorBorderStrongNegative: Ft,
112
+ colorBorderInteractivePrimary: Qt,
113
+ colorBorderInteractivePrimaryHover: qt,
114
+ colorBorderInteractivePrimaryActive: zt,
115
+ colorBorderInteractiveFocus: wt,
116
+ colorBorderInteractiveExpressive: Gt,
117
+ colorBorderInteractiveSubtle: Ut,
118
+ colorBorderInteractiveSubtleHover: Yt,
119
+ colorBorderInteractiveSelected: Jt,
120
+ colorBorderInteractivePrimaryNegative: jt,
121
+ colorBorderInteractivePrimaryHoverNegative: Kt,
122
+ colorBorderInteractivePrimaryActiveNegative: Zt,
123
+ colorBorderInteractiveSubtleNegative: Xt,
124
+ colorBorderInteractiveSubtleHoverNegative: _t,
125
+ colorBorderStatusError: Vt,
126
+ colorBorderStatusWarning: ea,
127
+ colorBorderStatusInfo: oa,
128
+ colorBorderStatusSuccess: ta,
129
+ colorBorderStatusErrorNegative: ra,
130
+ colorBorderStatusSuccessNegative: aa
131
+ }, ua = {
132
+ colorBrandDeepPurple: Re,
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: Oe,
142
+ colorTextWeak: Ee,
143
+ colorTextDefaultNegative: Pe,
144
+ colorTextMediumNegative: $e,
145
+ colorTextWeakNegative: be,
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: Vr,
173
+ colorTextStatusDiscount: _r,
174
+ colorTextStatusBlackFriday: Yr,
175
+ colorTextStatusSuccessStrongNegative: Xr,
176
+ colorTextStatusErrorMediumNegative: Ur,
177
+ colorTextStatusErrorStrongNegative: Jr,
178
+ colorTextStatusWarningMediumNegative: Gr,
179
+ colorTextToneOnTonePrimary: Zr,
180
+ colorTextToneOnToneSecondary: Kr,
181
+ colorTextToneOnToneTertiary: zr,
182
+ colorBackgroundPrimary: qr,
183
+ colorBackgroundSecondary: jr,
184
+ colorBackgroundOnImage: Qr,
185
+ colorBackgroundPrimaryNegative: wr,
186
+ colorBackgroundSecondaryNegative: Rr,
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: Or,
196
+ colorBackgroundInteractiveDisabled: Er,
197
+ colorBackgroundInteractiveReadOnly: Pr,
198
+ colorBackgroundInteractiveInactive: $r,
199
+ colorBackgroundInteractiveDestructive: br,
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: V,
227
+ colorBackgroundStatusWarningStrongNegative: _,
228
+ colorBackgroundStatusErrorStrongNegative: Y,
229
+ colorBackgroundToneOnTonePrimary: X,
230
+ colorBackgroundToneOnToneSecondary: U,
231
+ colorBackgroundToneOnToneTertiary: J,
232
+ colorBackgroundToneOnToneQuaternary: G,
233
+ colorBorderWeak: Z,
234
+ colorBorderMedium: K,
235
+ colorBorderStrong: z,
236
+ colorBorderWeakNegative: q,
237
+ colorBorderMediumNegative: j,
238
+ colorBorderStrongNegative: Q,
239
+ colorBorderInteractivePrimary: w,
240
+ colorBorderInteractivePrimaryHover: R,
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: O,
250
+ colorBorderInteractiveSubtleNegative: E,
251
+ colorBorderInteractiveSubtleHoverNegative: P,
252
+ colorBorderStatusError: $,
253
+ colorBorderStatusWarning: b,
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
+ ia as a,
334
+ B as t,
335
+ da as u
336
+ };
337
+ //# sourceMappingURL=ThemeProvider-CrjMv3M8.mjs.map