@purpurds/theme 8.18.0 → 8.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/chunked-rush-logs/theme.test_unit.chunks.jsonl +1 -1
- package/.rush/temp/ci_build/@purpurds/theme/{ae8632fd23a483323784b5929d93c68215d1e501.untar.log → e8b69a53753aad2f0d7272671263c8f72ef1566d.untar.log} +2 -2
- package/.rush/temp/operation/ci_build/all.log +8 -8
- package/.rush/temp/operation/ci_build/log-chunks.jsonl +8 -8
- package/.rush/temp/operation/ci_build/state.json +1 -1
- package/.rush/temp/operation/test_unit/all.log +1 -1
- package/.rush/temp/operation/test_unit/log-chunks.jsonl +1 -1
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/.rush/temp/shrinkwrap-deps.json +392 -402
- package/dist/LICENSE.txt +1 -1
- package/dist/theme-props.d.ts +4 -0
- package/dist/theme-props.d.ts.map +1 -1
- package/dist/theme.cjs.js +1 -1
- package/dist/theme.cjs.js.map +1 -1
- package/dist/theme.es.js +155 -155
- package/dist/theme.es.js.map +1 -1
- package/package.json +4 -4
package/dist/theme.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as p, createContext as k, useState as d, useMemo as m, useContext as N } from "react";
|
|
3
|
-
const y = "#f4e0ff", $ = "#c461f7", P = "#29003e", b = "#ede1d8", E = "#4f4741", O = "#3b332d", A = "#ffffff", H = "#202022", M = "rgba(255, 255, 255, 0.95)", h = "rgba(255, 255, 255, 0.66)", W = "rgba(255, 255, 255, 0.37)", D = "rgba(0, 0, 0, 0.8)", L = "rgba(0, 0, 0, 0.54)", F = "rgba(0, 0, 0, 0.44)", R = "#
|
|
3
|
+
const y = "#f4e0ff", $ = "#c461f7", P = "#29003e", b = "#ede1d8", E = "#4f4741", O = "#3b332d", A = "#ffffff", H = "#202022", M = "rgba(255, 255, 255, 0.95)", h = "rgba(255, 255, 255, 0.66)", W = "rgba(255, 255, 255, 0.37)", D = "rgba(0, 0, 0, 0.8)", L = "rgba(0, 0, 0, 0.54)", F = "rgba(0, 0, 0, 0.44)", R = "#e4b6fb", _ = "#f4e0ff", w = "#faf0ff", U = "#4e0174", Q = "#ffffff", j = "#8c07d0", X = "#6d02a3", q = "#4e0174", G = "#ffffff", z = "#ffffff", J = "#29003e", K = "#ffffff", V = "#29003e", Y = "#ffffff", Z = "#ffffff", rr = "#d58df9", or = "#d58df9", er = "#ffafc9", tr = "#980233", cr = "#fb4885", ar = "#e4175c", nr = "#79d9a7", ur = "#02562b", ir = "#1fa15e", sr = "#f9bb5b", lr = "#f39200", pr = "#a86602", vr = "#91cdf4", gr = "#3694d3", dr = "#ffffff", Br = "#ffffff", fr = "#4e0174", Sr = "#202022", Cr = "#29003e", Ir = "#f4e0ff", Tr = "#ffffff", xr = "#121212", kr = "#ffffff", mr = "#202022", Nr = "#f5f5fa", yr = "rgba(0, 0, 0, 0.71)", $r = "rgba(255, 255, 255, 0.84)", Pr = "#03385b", br = "#f4e0ff", Er = "#e4b6fb", Or = "#d58df9", Ar = "#4e0174", Hr = "#6d02a3", Mr = "#8c07d0", hr = "#990ae3", Wr = "#c461f7", Dr = "#d58df9", Lr = "#990ae3", Fr = "#6d02a3", Rr = "#4e0174", _r = "rgba(255, 255, 255, 0.11)", wr = "rgba(0, 0, 0, 0.1)", Ur = "#4e0174", Qr = "#e4b6fb", jr = "#6d02a3", Xr = "#d58df9", qr = "rgba(255, 255, 255, 0.16)", Gr = "rgba(0, 0, 0, 0.05)", zr = "rgba(255, 255, 255, 0.07)", Jr = "rgba(0, 0, 0, 0.05)", Kr = "#e4175c", Vr = "#c00543", Yr = "#980233", Zr = "#03385b", ro = "#62b2e7", oo = "#003e1e", eo = "#3dbf7c", to = "#1fa15e", co = "#700025", ao = "#ff80ab", no = "#fb4885", uo = "#4c2f03", io = "#f39200", so = "#f39200", lo = "#353537", po = "#6d02a3", vo = "#f4e0ff", go = "#ffffff", Bo = "#f4e0ff", fo = "#29003e", So = "#4f4741", Co = "#2d2824", Io = "rgba(255, 255, 255, 0.29)", To = "rgba(0, 0, 0, 0.33)", xo = "rgba(255, 255, 255, 0.46)", ko = "rgba(0, 0, 0, 0.54)", mo = "rgba(255, 255, 255, 0.16)", No = "rgba(0, 0, 0, 0.16)", yo = "#c461f7", $o = "#e4b6fb", Po = "#8c07d0", bo = "#f4e0ff", Eo = "#faf0ff", Oo = "#6d02a3", Ao = "#4e0174", Ho = "#990ae3", Mo = "#d58df9", ho = "rgba(255, 255, 255, 0.37)", Wo = "rgba(0, 0, 0, 0.44)", Do = "#e4b6fb", Lo = "#6d02a3", Fo = "#fb4885", Ro = "#e4175c", _o = "#f39200", wo = "#3694d3", Uo = "#1fa15e", Qo = "#018842", jo = {
|
|
4
4
|
colorBrandDeepPurple: y,
|
|
5
5
|
colorBrandCorePurple: $,
|
|
6
6
|
colorBrandLightPurple: P,
|
|
@@ -38,11 +38,11 @@ const y = "#f4e0ff", $ = "#c461f7", P = "#29003e", b = "#ede1d8", E = "#4f4741",
|
|
|
38
38
|
colorTextStatusWarningMedium: lr,
|
|
39
39
|
colorTextStatusWarningStrong: sr,
|
|
40
40
|
colorTextStatusErrorMedium: cr,
|
|
41
|
-
colorTextStatusErrorStrong:
|
|
41
|
+
colorTextStatusErrorStrong: er,
|
|
42
42
|
colorTextStatusNeutral: dr,
|
|
43
43
|
colorTextStatusSpecial: Br,
|
|
44
44
|
colorTextStatusAttention: fr,
|
|
45
|
-
colorTextStatusDiscount:
|
|
45
|
+
colorTextStatusDiscount: or,
|
|
46
46
|
colorTextStatusBlackFriday: Sr,
|
|
47
47
|
colorTextStatusSuccessStrongNegative: ur,
|
|
48
48
|
colorTextStatusErrorMediumNegative: ar,
|
|
@@ -84,112 +84,112 @@ const y = "#f4e0ff", $ = "#c461f7", P = "#29003e", b = "#ede1d8", E = "#4f4741",
|
|
|
84
84
|
colorBackgroundInteractiveInactiveNegative: Gr,
|
|
85
85
|
colorBackgroundInteractiveReadOnlyNegative: Jr,
|
|
86
86
|
colorBackgroundStatusInfoMedium: Zr,
|
|
87
|
-
colorBackgroundStatusInfoStrong:
|
|
88
|
-
colorBackgroundStatusSuccessMedium:
|
|
89
|
-
colorBackgroundStatusSuccessStrong:
|
|
90
|
-
colorBackgroundStatusWarningMedium:
|
|
91
|
-
colorBackgroundStatusWarningStrong:
|
|
92
|
-
colorBackgroundStatusErrorMedium:
|
|
93
|
-
colorBackgroundStatusErrorStrong:
|
|
94
|
-
colorBackgroundStatusNeutral:
|
|
95
|
-
colorBackgroundStatusSpecial:
|
|
96
|
-
colorBackgroundStatusAttention:
|
|
97
|
-
colorBackgroundStatusBlackFriday:
|
|
98
|
-
colorBackgroundStatusSuccessStrongNegative:
|
|
99
|
-
colorBackgroundStatusWarningStrongNegative:
|
|
100
|
-
colorBackgroundStatusErrorStrongNegative:
|
|
101
|
-
colorBackgroundToneOnTonePrimary:
|
|
102
|
-
colorBackgroundToneOnToneSecondary:
|
|
103
|
-
colorBackgroundToneOnToneTertiary:
|
|
104
|
-
colorBackgroundToneOnToneQuaternary:
|
|
105
|
-
colorBorderWeak:
|
|
106
|
-
colorBorderMedium:
|
|
107
|
-
colorBorderStrong:
|
|
108
|
-
colorBorderWeakNegative:
|
|
109
|
-
colorBorderMediumNegative:
|
|
110
|
-
colorBorderStrongNegative:
|
|
111
|
-
colorBorderInteractivePrimary:
|
|
112
|
-
colorBorderInteractivePrimaryHover:
|
|
113
|
-
colorBorderInteractivePrimaryActive:
|
|
114
|
-
colorBorderInteractiveFocus:
|
|
115
|
-
colorBorderInteractiveExpressive:
|
|
116
|
-
colorBorderInteractiveSubtle:
|
|
117
|
-
colorBorderInteractiveSubtleHover:
|
|
118
|
-
colorBorderInteractiveSelected:
|
|
119
|
-
colorBorderInteractivePrimaryNegative:
|
|
120
|
-
colorBorderInteractivePrimaryHoverNegative:
|
|
121
|
-
colorBorderInteractivePrimaryActiveNegative:
|
|
122
|
-
colorBorderInteractiveSubtleNegative:
|
|
123
|
-
colorBorderInteractiveSubtleHoverNegative:
|
|
124
|
-
colorBorderStatusError:
|
|
125
|
-
colorBorderStatusWarning:
|
|
126
|
-
colorBorderStatusInfo:
|
|
127
|
-
colorBorderStatusSuccess:
|
|
128
|
-
colorBorderStatusErrorNegative:
|
|
129
|
-
colorBorderStatusSuccessNegative:
|
|
130
|
-
},
|
|
131
|
-
colorBrandDeepPurple:
|
|
132
|
-
colorBrandCorePurple:
|
|
133
|
-
colorBrandLightPurple:
|
|
134
|
-
colorBrandDeepBeige:
|
|
135
|
-
colorBrandBeige:
|
|
136
|
-
colorBrandLightBeige:
|
|
137
|
-
colorBrandOffBlack:
|
|
138
|
-
colorBrandWhite:
|
|
139
|
-
colorTextDefault:
|
|
140
|
-
colorTextMedium:
|
|
141
|
-
colorTextWeak:
|
|
142
|
-
colorTextDefaultNegative:
|
|
143
|
-
colorTextMediumNegative:
|
|
144
|
-
colorTextWeakNegative:
|
|
145
|
-
colorTextInteractivePrimary:
|
|
146
|
-
colorTextInteractivePrimaryHover:
|
|
147
|
-
colorTextInteractivePrimaryActive:
|
|
148
|
-
colorTextInteractiveOnPrimary:
|
|
149
|
-
colorTextInteractiveOnExpressive:
|
|
150
|
-
colorTextInteractiveOnExpressiveHover:
|
|
151
|
-
colorTextInteractiveOnExpressiveActive:
|
|
152
|
-
colorTextInteractiveOnDestructive:
|
|
153
|
-
colorTextInteractiveSelected:
|
|
154
|
-
colorTextInteractivePrimaryNegative:
|
|
155
|
-
colorTextInteractivePrimaryHoverNegative:
|
|
156
|
-
colorTextInteractivePrimaryActiveNegative:
|
|
157
|
-
colorTextInteractiveOnPrimaryNegative:
|
|
158
|
-
colorTextInteractiveOnExpressiveNegative:
|
|
159
|
-
colorTextInteractiveOnExpressiveHoverNegative:
|
|
160
|
-
colorTextInteractiveOnExpressiveActiveNegative:
|
|
161
|
-
colorTextStatusInfoMedium:
|
|
162
|
-
colorTextStatusInfoStrong:
|
|
163
|
-
colorTextStatusSuccessMedium:
|
|
164
|
-
colorTextStatusSuccessStrong: $
|
|
165
|
-
colorTextStatusWarningMedium:
|
|
166
|
-
colorTextStatusWarningStrong:
|
|
167
|
-
colorTextStatusErrorMedium:
|
|
168
|
-
colorTextStatusErrorStrong:
|
|
169
|
-
colorTextStatusNeutral:
|
|
170
|
-
colorTextStatusSpecial:
|
|
171
|
-
colorTextStatusAttention:
|
|
172
|
-
colorTextStatusDiscount:
|
|
173
|
-
colorTextStatusBlackFriday:
|
|
174
|
-
colorTextStatusSuccessStrongNegative:
|
|
175
|
-
colorTextStatusErrorMediumNegative:
|
|
176
|
-
colorTextStatusErrorStrongNegative:
|
|
177
|
-
colorTextStatusWarningMediumNegative:
|
|
178
|
-
colorTextToneOnTonePrimary:
|
|
179
|
-
colorTextToneOnToneSecondary:
|
|
180
|
-
colorTextToneOnToneTertiary:
|
|
181
|
-
colorBackgroundPrimary:
|
|
182
|
-
colorBackgroundSecondary:
|
|
183
|
-
colorBackgroundOnImage:
|
|
184
|
-
colorBackgroundPrimaryNegative:
|
|
185
|
-
colorBackgroundSecondaryNegative:
|
|
186
|
-
colorBackgroundOnImageNegative:
|
|
187
|
-
colorBackgroundInteractivePrimary:
|
|
188
|
-
colorBackgroundInteractivePrimaryHover:
|
|
189
|
-
colorBackgroundInteractivePrimaryActive:
|
|
87
|
+
colorBackgroundStatusInfoStrong: ro,
|
|
88
|
+
colorBackgroundStatusSuccessMedium: oo,
|
|
89
|
+
colorBackgroundStatusSuccessStrong: eo,
|
|
90
|
+
colorBackgroundStatusWarningMedium: uo,
|
|
91
|
+
colorBackgroundStatusWarningStrong: io,
|
|
92
|
+
colorBackgroundStatusErrorMedium: co,
|
|
93
|
+
colorBackgroundStatusErrorStrong: ao,
|
|
94
|
+
colorBackgroundStatusNeutral: lo,
|
|
95
|
+
colorBackgroundStatusSpecial: po,
|
|
96
|
+
colorBackgroundStatusAttention: vo,
|
|
97
|
+
colorBackgroundStatusBlackFriday: go,
|
|
98
|
+
colorBackgroundStatusSuccessStrongNegative: to,
|
|
99
|
+
colorBackgroundStatusWarningStrongNegative: so,
|
|
100
|
+
colorBackgroundStatusErrorStrongNegative: no,
|
|
101
|
+
colorBackgroundToneOnTonePrimary: Bo,
|
|
102
|
+
colorBackgroundToneOnToneSecondary: fo,
|
|
103
|
+
colorBackgroundToneOnToneTertiary: So,
|
|
104
|
+
colorBackgroundToneOnToneQuaternary: Co,
|
|
105
|
+
colorBorderWeak: mo,
|
|
106
|
+
colorBorderMedium: Io,
|
|
107
|
+
colorBorderStrong: xo,
|
|
108
|
+
colorBorderWeakNegative: No,
|
|
109
|
+
colorBorderMediumNegative: To,
|
|
110
|
+
colorBorderStrongNegative: ko,
|
|
111
|
+
colorBorderInteractivePrimary: $o,
|
|
112
|
+
colorBorderInteractivePrimaryHover: bo,
|
|
113
|
+
colorBorderInteractivePrimaryActive: Eo,
|
|
114
|
+
colorBorderInteractiveFocus: yo,
|
|
115
|
+
colorBorderInteractiveExpressive: Ho,
|
|
116
|
+
colorBorderInteractiveSubtle: ho,
|
|
117
|
+
colorBorderInteractiveSubtleHover: Do,
|
|
118
|
+
colorBorderInteractiveSelected: Mo,
|
|
119
|
+
colorBorderInteractivePrimaryNegative: Po,
|
|
120
|
+
colorBorderInteractivePrimaryHoverNegative: Oo,
|
|
121
|
+
colorBorderInteractivePrimaryActiveNegative: Ao,
|
|
122
|
+
colorBorderInteractiveSubtleNegative: Wo,
|
|
123
|
+
colorBorderInteractiveSubtleHoverNegative: Lo,
|
|
124
|
+
colorBorderStatusError: Fo,
|
|
125
|
+
colorBorderStatusWarning: _o,
|
|
126
|
+
colorBorderStatusInfo: wo,
|
|
127
|
+
colorBorderStatusSuccess: Uo,
|
|
128
|
+
colorBorderStatusErrorNegative: Ro,
|
|
129
|
+
colorBorderStatusSuccessNegative: Qo
|
|
130
|
+
}, Xo = "#29003e", qo = "#990ae3", Go = "#f4e0ff", zo = "#4f4741", Jo = "#ede1d8", Ko = "#f9f1ec", Vo = "#202022", Yo = "#ffffff", Zo = "rgba(0, 0, 0, 0.84)", re = "rgba(0, 0, 0, 0.62)", oe = "rgba(0, 0, 0, 0.44)", ee = "rgba(255, 255, 255, 0.95)", te = "rgba(255, 255, 255, 0.66)", ce = "rgba(255, 255, 255, 0.37)", ae = "#8c07d0", ne = "#6d02a3", ue = "#4e0174", ie = "#ffffff", se = "#4e0174", le = "#e4b6fb", pe = "#f4e0ff", ve = "#faf0ff", ge = "#ffffff", de = "#ffffff", Be = "#ffffff", fe = "#29003e", Se = "#ffffff", Ce = "#29003e", Ie = "#ffffff", Te = "#990ae3", xe = "#990ae3", ke = "#980233", me = "#ff80ab", Ne = "#e4175c", ye = "#fb4885", $e = "#02562b", Pe = "#3dbf7c", be = "#018842", Ee = "#6a4102", Oe = "#a86602", Ae = "#f39200", He = "#014d80", Me = "#0078cb", he = "rgba(0, 0, 0, 0.71)", We = "#4e0174", De = "#ffffff", Le = "#ffffff", Fe = "#f4e0ff", Re = "#29003e", _e = "#4f4741", we = "#ffffff", Ue = "#1f002e", Qe = "#f5f5fa", je = "#29003e", Xe = "rgba(255, 255, 255, 0.84)", qe = "rgba(0, 0, 0, 0.71)", Ge = "#e8f6ff", ze = "#4e0174", Je = "#6d02a3", Ke = "#8c07d0", Ve = "#f4e0ff", Ye = "#e4b6fb", Ze = "#d58df9", rt = "#990ae3", ot = "#6d02a3", et = "#4e0174", tt = "#990ae3", ct = "#c461f7", at = "#d58df9", nt = "rgba(0, 0, 0, 0.1)", ut = "rgba(255, 255, 255, 0.11)", it = "#f4e0ff", st = "#4e0174", lt = "#e4b6fb", pt = "#6d02a3", vt = "rgba(0, 0, 0, 0.05)", gt = "rgba(255, 255, 255, 0.16)", dt = "rgba(0, 0, 0, 0.05)", Bt = "rgba(255, 255, 255, 0.11)", ft = "#e4175c", St = "#c00543", Ct = "#980233", It = "#caeaff", Tt = "#3694d3", xt = "#c5efd9", kt = "#1fa15e", mt = "#3dbf7c", Nt = "#ffdde8", yt = "#fb4885", $t = "#ff80ab", Pt = "#ffe1b3", bt = "#cc7a00", Et = "#f39200", Ot = "#d6d6dd", At = "#f4e0ff", Ht = "#6d02a3", Mt = "#202022", ht = "#29003e", Wt = "#f4e0ff", Dt = "#ede1d8", Lt = "#f9f1ec", Ft = "rgba(0, 0, 0, 0.33)", Rt = "rgba(255, 255, 255, 0.29)", _t = "rgba(0, 0, 0, 0.54)", wt = "rgba(255, 255, 255, 0.46)", Ut = "rgba(0, 0, 0, 0.16)", Qt = "rgba(255, 255, 255, 0.16)", jt = "#b12df4", Xt = "#8c07d0", qt = "#e4b6fb", Gt = "#6d02a3", zt = "#4e0174", Jt = "#f4e0ff", Kt = "#faf0ff", Vt = "#990ae3", Yt = "#990ae3", Zt = "rgba(0, 0, 0, 0.44)", rc = "rgba(255, 255, 255, 0.46)", oc = "#6d02a3", ec = "#c461f7", tc = "#e4175c", cc = "#fb4885", ac = "#cc7a00", nc = "#0078cb", uc = "#018842", ic = "#1fa15e", sc = {
|
|
131
|
+
colorBrandDeepPurple: Xo,
|
|
132
|
+
colorBrandCorePurple: qo,
|
|
133
|
+
colorBrandLightPurple: Go,
|
|
134
|
+
colorBrandDeepBeige: zo,
|
|
135
|
+
colorBrandBeige: Jo,
|
|
136
|
+
colorBrandLightBeige: Ko,
|
|
137
|
+
colorBrandOffBlack: Vo,
|
|
138
|
+
colorBrandWhite: Yo,
|
|
139
|
+
colorTextDefault: Zo,
|
|
140
|
+
colorTextMedium: re,
|
|
141
|
+
colorTextWeak: oe,
|
|
142
|
+
colorTextDefaultNegative: ee,
|
|
143
|
+
colorTextMediumNegative: te,
|
|
144
|
+
colorTextWeakNegative: ce,
|
|
145
|
+
colorTextInteractivePrimary: ae,
|
|
146
|
+
colorTextInteractivePrimaryHover: ne,
|
|
147
|
+
colorTextInteractivePrimaryActive: ue,
|
|
148
|
+
colorTextInteractiveOnPrimary: ie,
|
|
149
|
+
colorTextInteractiveOnExpressive: ge,
|
|
150
|
+
colorTextInteractiveOnExpressiveHover: Be,
|
|
151
|
+
colorTextInteractiveOnExpressiveActive: Se,
|
|
152
|
+
colorTextInteractiveOnDestructive: Ie,
|
|
153
|
+
colorTextInteractiveSelected: Te,
|
|
154
|
+
colorTextInteractivePrimaryNegative: le,
|
|
155
|
+
colorTextInteractivePrimaryHoverNegative: pe,
|
|
156
|
+
colorTextInteractivePrimaryActiveNegative: ve,
|
|
157
|
+
colorTextInteractiveOnPrimaryNegative: se,
|
|
158
|
+
colorTextInteractiveOnExpressiveNegative: de,
|
|
159
|
+
colorTextInteractiveOnExpressiveHoverNegative: fe,
|
|
160
|
+
colorTextInteractiveOnExpressiveActiveNegative: Ce,
|
|
161
|
+
colorTextStatusInfoMedium: Me,
|
|
162
|
+
colorTextStatusInfoStrong: He,
|
|
163
|
+
colorTextStatusSuccessMedium: be,
|
|
164
|
+
colorTextStatusSuccessStrong: $e,
|
|
165
|
+
colorTextStatusWarningMedium: Oe,
|
|
166
|
+
colorTextStatusWarningStrong: Ee,
|
|
167
|
+
colorTextStatusErrorMedium: Ne,
|
|
168
|
+
colorTextStatusErrorStrong: ke,
|
|
169
|
+
colorTextStatusNeutral: he,
|
|
170
|
+
colorTextStatusSpecial: We,
|
|
171
|
+
colorTextStatusAttention: De,
|
|
172
|
+
colorTextStatusDiscount: xe,
|
|
173
|
+
colorTextStatusBlackFriday: Le,
|
|
174
|
+
colorTextStatusSuccessStrongNegative: Pe,
|
|
175
|
+
colorTextStatusErrorMediumNegative: ye,
|
|
176
|
+
colorTextStatusErrorStrongNegative: me,
|
|
177
|
+
colorTextStatusWarningMediumNegative: Ae,
|
|
178
|
+
colorTextToneOnTonePrimary: Fe,
|
|
179
|
+
colorTextToneOnToneSecondary: Re,
|
|
180
|
+
colorTextToneOnToneTertiary: _e,
|
|
181
|
+
colorBackgroundPrimary: we,
|
|
182
|
+
colorBackgroundSecondary: Qe,
|
|
183
|
+
colorBackgroundOnImage: Xe,
|
|
184
|
+
colorBackgroundPrimaryNegative: Ue,
|
|
185
|
+
colorBackgroundSecondaryNegative: je,
|
|
186
|
+
colorBackgroundOnImageNegative: qe,
|
|
187
|
+
colorBackgroundInteractivePrimary: ze,
|
|
188
|
+
colorBackgroundInteractivePrimaryHover: Je,
|
|
189
|
+
colorBackgroundInteractivePrimaryActive: Ke,
|
|
190
190
|
colorBackgroundInteractiveExpressive: rt,
|
|
191
|
-
colorBackgroundInteractiveExpressiveHover:
|
|
192
|
-
colorBackgroundInteractiveExpressiveActive:
|
|
191
|
+
colorBackgroundInteractiveExpressiveHover: ot,
|
|
192
|
+
colorBackgroundInteractiveExpressiveActive: et,
|
|
193
193
|
colorBackgroundInteractiveTransparentHover: it,
|
|
194
194
|
colorBackgroundInteractiveTransparentActive: lt,
|
|
195
195
|
colorBackgroundInteractiveDisabled: nt,
|
|
@@ -198,10 +198,10 @@ const y = "#f4e0ff", $ = "#c461f7", P = "#29003e", b = "#ede1d8", E = "#4f4741",
|
|
|
198
198
|
colorBackgroundInteractiveDestructive: ft,
|
|
199
199
|
colorBackgroundInteractiveDestructiveHover: St,
|
|
200
200
|
colorBackgroundInteractiveDestructiveActive: Ct,
|
|
201
|
-
colorBackgroundInteractiveAutoFill:
|
|
202
|
-
colorBackgroundInteractivePrimaryNegative:
|
|
203
|
-
colorBackgroundInteractivePrimaryHoverNegative:
|
|
204
|
-
colorBackgroundInteractivePrimaryActiveNegative:
|
|
201
|
+
colorBackgroundInteractiveAutoFill: Ge,
|
|
202
|
+
colorBackgroundInteractivePrimaryNegative: Ve,
|
|
203
|
+
colorBackgroundInteractivePrimaryHoverNegative: Ye,
|
|
204
|
+
colorBackgroundInteractivePrimaryActiveNegative: Ze,
|
|
205
205
|
colorBackgroundInteractiveExpressiveNegative: tt,
|
|
206
206
|
colorBackgroundInteractiveExpressiveHoverNegative: ct,
|
|
207
207
|
colorBackgroundInteractiveExpressiveActiveNegative: at,
|
|
@@ -241,13 +241,13 @@ const y = "#f4e0ff", $ = "#c461f7", P = "#29003e", b = "#ede1d8", E = "#4f4741",
|
|
|
241
241
|
colorBorderInteractiveFocus: jt,
|
|
242
242
|
colorBorderInteractiveExpressive: Vt,
|
|
243
243
|
colorBorderInteractiveSubtle: Zt,
|
|
244
|
-
colorBorderInteractiveSubtleHover:
|
|
244
|
+
colorBorderInteractiveSubtleHover: oc,
|
|
245
245
|
colorBorderInteractiveSelected: Yt,
|
|
246
246
|
colorBorderInteractivePrimaryNegative: qt,
|
|
247
247
|
colorBorderInteractivePrimaryHoverNegative: Jt,
|
|
248
248
|
colorBorderInteractivePrimaryActiveNegative: Kt,
|
|
249
249
|
colorBorderInteractiveSubtleNegative: rc,
|
|
250
|
-
colorBorderInteractiveSubtleHoverNegative:
|
|
250
|
+
colorBorderInteractiveSubtleHoverNegative: ec,
|
|
251
251
|
colorBorderStatusError: tc,
|
|
252
252
|
colorBorderStatusWarning: ac,
|
|
253
253
|
colorBorderStatusInfo: nc,
|
|
@@ -256,69 +256,69 @@ const y = "#f4e0ff", $ = "#c461f7", P = "#29003e", b = "#ede1d8", E = "#4f4741",
|
|
|
256
256
|
colorBorderStatusSuccessNegative: ic
|
|
257
257
|
}, B = {
|
|
258
258
|
light: sc,
|
|
259
|
-
dark:
|
|
259
|
+
dark: jo
|
|
260
260
|
}, lc = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), pc = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), vc = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), gc = /[^\p{L}\d]+/giu, f = "$1\0$2", S = "";
|
|
261
|
-
function C(
|
|
262
|
-
let r =
|
|
261
|
+
function C(o) {
|
|
262
|
+
let r = o.trim();
|
|
263
263
|
r = r.replace(lc, f).replace(pc, f), r = r.replace(gc, "\0");
|
|
264
|
-
let
|
|
265
|
-
for (; r.charAt(
|
|
266
|
-
|
|
267
|
-
if (
|
|
264
|
+
let e = 0, t = r.length;
|
|
265
|
+
for (; r.charAt(e) === "\0"; )
|
|
266
|
+
e++;
|
|
267
|
+
if (e === t)
|
|
268
268
|
return [];
|
|
269
269
|
for (; r.charAt(t - 1) === "\0"; )
|
|
270
270
|
t--;
|
|
271
|
-
return r.slice(
|
|
271
|
+
return r.slice(e, t).split(/\0/g);
|
|
272
272
|
}
|
|
273
|
-
function dc(
|
|
274
|
-
const r = C(
|
|
275
|
-
for (let
|
|
276
|
-
const t = r[
|
|
273
|
+
function dc(o) {
|
|
274
|
+
const r = C(o);
|
|
275
|
+
for (let e = 0; e < r.length; e++) {
|
|
276
|
+
const t = r[e], c = vc.exec(t);
|
|
277
277
|
if (c) {
|
|
278
278
|
const a = c.index + (c[1] ?? c[2]).length;
|
|
279
|
-
r.splice(
|
|
279
|
+
r.splice(e, 1, t.slice(0, a), t.slice(a));
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
return r;
|
|
283
283
|
}
|
|
284
|
-
function Bc(
|
|
285
|
-
const [
|
|
286
|
-
return
|
|
284
|
+
function Bc(o, r) {
|
|
285
|
+
const [e, t, c] = Cc(o, r);
|
|
286
|
+
return e + t.map(Sc(r?.locale)).join(r?.delimiter ?? " ") + c;
|
|
287
287
|
}
|
|
288
|
-
function fc(
|
|
289
|
-
return Bc(
|
|
288
|
+
function fc(o, r) {
|
|
289
|
+
return Bc(o, { delimiter: "-", ...r });
|
|
290
290
|
}
|
|
291
|
-
function Sc(
|
|
292
|
-
return
|
|
291
|
+
function Sc(o) {
|
|
292
|
+
return o === !1 ? (r) => r.toLowerCase() : (r) => r.toLocaleLowerCase(o);
|
|
293
293
|
}
|
|
294
|
-
function Cc(
|
|
295
|
-
const
|
|
296
|
-
let a = 0, n =
|
|
297
|
-
for (; a <
|
|
298
|
-
const i =
|
|
294
|
+
function Cc(o, r = {}) {
|
|
295
|
+
const e = r.split ?? (r.separateNumbers ? dc : C), t = r.prefixCharacters ?? S, c = r.suffixCharacters ?? S;
|
|
296
|
+
let a = 0, n = o.length;
|
|
297
|
+
for (; a < o.length; ) {
|
|
298
|
+
const i = o.charAt(a);
|
|
299
299
|
if (!t.includes(i))
|
|
300
300
|
break;
|
|
301
301
|
a++;
|
|
302
302
|
}
|
|
303
303
|
for (; n > a; ) {
|
|
304
|
-
const i = n - 1, s =
|
|
304
|
+
const i = n - 1, s = o.charAt(i);
|
|
305
305
|
if (!c.includes(s))
|
|
306
306
|
break;
|
|
307
307
|
n = i;
|
|
308
308
|
}
|
|
309
309
|
return [
|
|
310
|
-
|
|
311
|
-
o
|
|
312
|
-
|
|
310
|
+
o.slice(0, a),
|
|
311
|
+
e(o.slice(a, n)),
|
|
312
|
+
o.slice(n)
|
|
313
313
|
];
|
|
314
314
|
}
|
|
315
315
|
const Ic = ({
|
|
316
|
-
theme:
|
|
316
|
+
theme: o = B,
|
|
317
317
|
cssVariablesSelector: r,
|
|
318
|
-
currentColorScheme:
|
|
318
|
+
currentColorScheme: e
|
|
319
319
|
}) => {
|
|
320
320
|
p(() => {
|
|
321
|
-
|
|
321
|
+
e && Object.entries(o?.[e] ?? B[e]).forEach(
|
|
322
322
|
([t, c]) => {
|
|
323
323
|
((r ? document.querySelector(r) : null) ?? document.documentElement).style.setProperty(
|
|
324
324
|
`--purpur-${fc(t)}`,
|
|
@@ -326,7 +326,7 @@ const Ic = ({
|
|
|
326
326
|
);
|
|
327
327
|
}
|
|
328
328
|
);
|
|
329
|
-
}, [
|
|
329
|
+
}, [o, r, e]);
|
|
330
330
|
}, I = k({
|
|
331
331
|
colorScheme: "light",
|
|
332
332
|
currentColorScheme: "light",
|
|
@@ -334,9 +334,9 @@ const Ic = ({
|
|
|
334
334
|
},
|
|
335
335
|
options: {}
|
|
336
336
|
}), mc = ({
|
|
337
|
-
cssVariablesSelector:
|
|
337
|
+
cssVariablesSelector: o,
|
|
338
338
|
forceColorScheme: r,
|
|
339
|
-
theme:
|
|
339
|
+
theme: e,
|
|
340
340
|
children: t,
|
|
341
341
|
options: c = {},
|
|
342
342
|
...a
|
|
@@ -360,7 +360,7 @@ const Ic = ({
|
|
|
360
360
|
return u.addEventListener("change", v), () => {
|
|
361
361
|
u.removeEventListener("change", v);
|
|
362
362
|
};
|
|
363
|
-
}, [n, r]), Ic({ theme:
|
|
363
|
+
}, [n, r]), Ic({ theme: e, cssVariablesSelector: o, currentColorScheme: s });
|
|
364
364
|
const T = m(
|
|
365
365
|
() => ({
|
|
366
366
|
colorScheme: n,
|
|
@@ -373,13 +373,13 @@ const Ic = ({
|
|
|
373
373
|
);
|
|
374
374
|
return /* @__PURE__ */ g(I.Provider, { value: { ...T, options: c }, children: /* @__PURE__ */ g("div", { className: s, ...a, children: t }) });
|
|
375
375
|
}, Tc = () => {
|
|
376
|
-
const
|
|
377
|
-
if (!
|
|
376
|
+
const o = N(I);
|
|
377
|
+
if (!o)
|
|
378
378
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
379
|
-
return
|
|
379
|
+
return o;
|
|
380
380
|
}, Nc = () => {
|
|
381
|
-
const { colorScheme:
|
|
382
|
-
return [
|
|
381
|
+
const { colorScheme: o, setColorScheme: r } = Tc();
|
|
382
|
+
return [o, r];
|
|
383
383
|
};
|
|
384
384
|
export {
|
|
385
385
|
mc as ThemeProvider,
|