burne-ui 1.7.3 → 1.7.5
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/dist/components/composite/ButtonGroup/buttonGroupContext.d.ts +2 -0
- package/dist/components/composite/ButtonGroup/buttonGroupStyles.d.ts +5 -0
- package/dist/components/composite/ButtonGroup/index.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupA11y.d.ts +11 -5
- package/dist/components/composite/ToggleButtonGroup/useToggleButtonGroupRootState.d.ts +0 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsAnimations.d.ts +1 -0
- package/dist/components/core/Button/buttonAnimations.d.ts +2 -1
- package/dist/components/core/Button/buttonTypes.d.ts +1 -0
- package/dist/components/core/Calendar/calendarAnimations.d.ts +1 -0
- package/dist/components/core/Checkbox/checkboxAnimations.d.ts +2 -1
- package/dist/components/core/Checkbox/checkboxTypes.d.ts +2 -1
- package/dist/components/core/CloseButton/closeButtonAnimations.d.ts +2 -1
- package/dist/components/core/CloseButton/closeButtonTypes.d.ts +3 -2
- package/dist/components/core/Drawer/drawerStyles.d.ts +2 -2
- package/dist/components/core/Drawer/drawerTypes.d.ts +5 -2
- package/dist/components/core/Dropdown/dropdownAnimations.d.ts +1 -1
- package/dist/components/core/Dropdown/dropdownStyles.d.ts +5 -1
- package/dist/components/core/Dropdown/dropdownTypes.d.ts +0 -1
- package/dist/components/core/Link/linkAnchorBodyPart.d.ts +1 -1
- package/dist/components/core/Link/linkAnimations.d.ts +2 -1
- package/dist/components/core/Link/linkTypes.d.ts +3 -1
- package/dist/components/core/ListBox/listBoxAnimations.d.ts +2 -1
- package/dist/components/core/ListBox/listBoxTypes.d.ts +1 -0
- package/dist/components/core/Popover/popoverA11y.d.ts +1 -2
- package/dist/components/core/Radio/radioAnimations.d.ts +2 -1
- package/dist/components/core/Radio/radioTypes.d.ts +2 -1
- package/dist/components/core/Switch/switchAnimations.d.ts +2 -1
- package/dist/components/core/Switch/switchTypes.d.ts +2 -1
- package/dist/components/core/Tabs/tabsAnimations.d.ts +4 -2
- package/dist/components/core/ToggleButton/toggleButtonAnimations.d.ts +3 -2
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +6 -3
- package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +3 -1
- package/dist/components/core/utils/focusElement.d.ts +47 -0
- package/dist/components/core/utils/hoverInteractiveLift.d.ts +10 -1
- package/dist/components/core/utils/modalSurfaceMotion.d.ts +1 -0
- package/dist/components/core/utils/useFirstLevelInteractiveMotion.d.ts +4 -2
- package/dist/components/core/utils/usePressableElementTextMotion.d.ts +6 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +13491 -13336
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +37 -36
- package/dist/{themeRuntimeContext-DlRajdAC.js → themeRuntimeContext-BSRr0qLF.js} +418 -412
- package/dist/{themeRuntimeContext-C87sCqcm.cjs → themeRuntimeContext-DV880giO.cjs} +6 -6
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as Ke, Fragment as Fo } from "react/jsx-runtime";
|
|
3
3
|
import { useSyncExternalStore as Co, memo as Oo, useRef as Z, useLayoutEffect as Q, useState as Ze, useCallback as D, useEffect as Gr, useMemo as J, createElement as Hr, useContext as Ne, createContext as $r } from "react";
|
|
4
|
-
import
|
|
4
|
+
import z from "gsap";
|
|
5
5
|
import { CustomEase as Je } from "gsap/CustomEase";
|
|
6
6
|
function Wr(e) {
|
|
7
7
|
var r, o, n = "";
|
|
@@ -30,24 +30,24 @@ const Io = (e, r) => {
|
|
|
30
30
|
nextPart: e,
|
|
31
31
|
validators: r,
|
|
32
32
|
classGroupId: o
|
|
33
|
-
}), Ie = "-", Er = [],
|
|
33
|
+
}), Ie = "-", Er = [], Ro = "arbitrary..", zo = (e) => {
|
|
34
34
|
const r = Po(e), {
|
|
35
35
|
conflictingClassGroups: o,
|
|
36
36
|
conflictingClassGroupModifiers: n
|
|
37
37
|
} = e;
|
|
38
38
|
return {
|
|
39
|
-
getClassGroupId: (
|
|
40
|
-
if (
|
|
41
|
-
return Ao(
|
|
42
|
-
const
|
|
43
|
-
return Vr(
|
|
39
|
+
getClassGroupId: (s) => {
|
|
40
|
+
if (s.startsWith("[") && s.endsWith("]"))
|
|
41
|
+
return Ao(s);
|
|
42
|
+
const a = s.split(Ie), d = a[0] === "" && a.length > 1 ? 1 : 0;
|
|
43
|
+
return Vr(a, d, r);
|
|
44
44
|
},
|
|
45
|
-
getConflictingClassGroupIds: (
|
|
46
|
-
if (
|
|
47
|
-
const d = n[
|
|
45
|
+
getConflictingClassGroupIds: (s, a) => {
|
|
46
|
+
if (a) {
|
|
47
|
+
const d = n[s], c = o[s];
|
|
48
48
|
return d ? c ? Io(c, d) : d : c || Er;
|
|
49
49
|
}
|
|
50
|
-
return o[
|
|
50
|
+
return o[s] || Er;
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
}, Vr = (e, r, o) => {
|
|
@@ -58,18 +58,18 @@ const Io = (e, r) => {
|
|
|
58
58
|
const c = Vr(e, r + 1, t);
|
|
59
59
|
if (c) return c;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
61
|
+
const s = o.validators;
|
|
62
|
+
if (s === null)
|
|
63
63
|
return;
|
|
64
|
-
const
|
|
64
|
+
const a = r === 0 ? e.join(Ie) : e.slice(r).join(Ie), d = s.length;
|
|
65
65
|
for (let c = 0; c < d; c++) {
|
|
66
|
-
const p =
|
|
67
|
-
if (p.validator(
|
|
66
|
+
const p = s[c];
|
|
67
|
+
if (p.validator(a))
|
|
68
68
|
return p.classGroupId;
|
|
69
69
|
}
|
|
70
70
|
}, Ao = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
71
71
|
const r = e.slice(1, -1), o = r.indexOf(":"), n = r.slice(0, o);
|
|
72
|
-
return n ?
|
|
72
|
+
return n ? Ro + n : void 0;
|
|
73
73
|
})(), Po = (e) => {
|
|
74
74
|
const {
|
|
75
75
|
theme: r,
|
|
@@ -86,8 +86,8 @@ const Io = (e, r) => {
|
|
|
86
86
|
}, nr = (e, r, o, n) => {
|
|
87
87
|
const i = e.length;
|
|
88
88
|
for (let t = 0; t < i; t++) {
|
|
89
|
-
const
|
|
90
|
-
No(
|
|
89
|
+
const s = e[t];
|
|
90
|
+
No(s, r, o, n);
|
|
91
91
|
}
|
|
92
92
|
}, No = (e, r, o, n) => {
|
|
93
93
|
if (typeof e == "string") {
|
|
@@ -110,17 +110,17 @@ const Io = (e, r) => {
|
|
|
110
110
|
r.validators === null && (r.validators = []), r.validators.push(Lo(o, e));
|
|
111
111
|
}, Ho = (e, r, o, n) => {
|
|
112
112
|
const i = Object.entries(e), t = i.length;
|
|
113
|
-
for (let
|
|
114
|
-
const [
|
|
115
|
-
nr(d, qr(r,
|
|
113
|
+
for (let s = 0; s < t; s++) {
|
|
114
|
+
const [a, d] = i[s];
|
|
115
|
+
nr(d, qr(r, a), o, n);
|
|
116
116
|
}
|
|
117
117
|
}, qr = (e, r) => {
|
|
118
118
|
let o = e;
|
|
119
119
|
const n = r.split(Ie), i = n.length;
|
|
120
120
|
for (let t = 0; t < i; t++) {
|
|
121
|
-
const
|
|
122
|
-
let
|
|
123
|
-
|
|
121
|
+
const s = n[t];
|
|
122
|
+
let a = o.nextPart.get(s);
|
|
123
|
+
a || (a = Ur(), o.nextPart.set(s, a)), o = a;
|
|
124
124
|
}
|
|
125
125
|
return o;
|
|
126
126
|
}, $o = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Wo = (e) => {
|
|
@@ -132,19 +132,19 @@ const Io = (e, r) => {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
let r = 0, o = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null);
|
|
135
|
-
const i = (t,
|
|
136
|
-
o[t] =
|
|
135
|
+
const i = (t, s) => {
|
|
136
|
+
o[t] = s, r++, r > e && (r = 0, n = o, o = /* @__PURE__ */ Object.create(null));
|
|
137
137
|
};
|
|
138
138
|
return {
|
|
139
139
|
get(t) {
|
|
140
|
-
let
|
|
141
|
-
if (
|
|
142
|
-
return
|
|
143
|
-
if ((
|
|
144
|
-
return i(t,
|
|
140
|
+
let s = o[t];
|
|
141
|
+
if (s !== void 0)
|
|
142
|
+
return s;
|
|
143
|
+
if ((s = n[t]) !== void 0)
|
|
144
|
+
return i(t, s), s;
|
|
145
145
|
},
|
|
146
|
-
set(t,
|
|
147
|
-
t in o ? o[t] =
|
|
146
|
+
set(t, s) {
|
|
147
|
+
t in o ? o[t] = s : i(t, s);
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
}, Qe = "!", Dr = ":", Uo = [], Fr = (e, r, o, n, i) => ({
|
|
@@ -160,11 +160,11 @@ const Io = (e, r) => {
|
|
|
160
160
|
} = e;
|
|
161
161
|
let n = (i) => {
|
|
162
162
|
const t = [];
|
|
163
|
-
let
|
|
163
|
+
let s = 0, a = 0, d = 0, c;
|
|
164
164
|
const p = i.length;
|
|
165
165
|
for (let k = 0; k < p; k++) {
|
|
166
166
|
const O = i[k];
|
|
167
|
-
if (
|
|
167
|
+
if (s === 0 && a === 0) {
|
|
168
168
|
if (O === Dr) {
|
|
169
169
|
t.push(i.slice(d, k)), d = k + 1;
|
|
170
170
|
continue;
|
|
@@ -174,7 +174,7 @@ const Io = (e, r) => {
|
|
|
174
174
|
continue;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
O === "[" ?
|
|
177
|
+
O === "[" ? s++ : O === "]" ? s-- : O === "(" ? a++ : O === ")" && a--;
|
|
178
178
|
}
|
|
179
179
|
const m = t.length === 0 ? i : i.slice(d);
|
|
180
180
|
let w = m, h = !1;
|
|
@@ -190,7 +190,7 @@ const Io = (e, r) => {
|
|
|
190
190
|
};
|
|
191
191
|
if (r) {
|
|
192
192
|
const i = r + Dr, t = n;
|
|
193
|
-
n = (
|
|
193
|
+
n = (s) => s.startsWith(i) ? t(s.slice(i.length)) : Fr(Uo, !1, s, void 0, !0);
|
|
194
194
|
}
|
|
195
195
|
if (o) {
|
|
196
196
|
const i = n;
|
|
@@ -208,8 +208,8 @@ const Io = (e, r) => {
|
|
|
208
208
|
const n = [];
|
|
209
209
|
let i = [];
|
|
210
210
|
for (let t = 0; t < o.length; t++) {
|
|
211
|
-
const
|
|
212
|
-
|
|
211
|
+
const s = o[t], a = s[0] === "[", d = r.has(s);
|
|
212
|
+
a || d ? (i.length > 0 && (i.sort(), n.push(...i), i = []), n.push(s)) : i.push(s);
|
|
213
213
|
}
|
|
214
214
|
return i.length > 0 && (i.sort(), n.push(...i)), n;
|
|
215
215
|
};
|
|
@@ -218,7 +218,7 @@ const Io = (e, r) => {
|
|
|
218
218
|
parseClassName: Vo(e),
|
|
219
219
|
sortModifiers: qo(e),
|
|
220
220
|
postfixLookupClassGroupIds: Xo(e),
|
|
221
|
-
...
|
|
221
|
+
...zo(e)
|
|
222
222
|
}), Xo = (e) => {
|
|
223
223
|
const r = /* @__PURE__ */ Object.create(null), o = e.postfixLookupClassGroups;
|
|
224
224
|
if (o)
|
|
@@ -231,8 +231,8 @@ const Io = (e, r) => {
|
|
|
231
231
|
getClassGroupId: n,
|
|
232
232
|
getConflictingClassGroupIds: i,
|
|
233
233
|
sortModifiers: t,
|
|
234
|
-
postfixLookupClassGroupIds:
|
|
235
|
-
} = r,
|
|
234
|
+
postfixLookupClassGroupIds: s
|
|
235
|
+
} = r, a = [], d = e.trim().split(Yo);
|
|
236
236
|
let c = "";
|
|
237
237
|
for (let p = d.length - 1; p >= 0; p -= 1) {
|
|
238
238
|
const m = d[p], {
|
|
@@ -250,7 +250,7 @@ const Io = (e, r) => {
|
|
|
250
250
|
if (q) {
|
|
251
251
|
const N = k.substring(0, O);
|
|
252
252
|
_ = n(N);
|
|
253
|
-
const f = _ &&
|
|
253
|
+
const f = _ && s[_] ? n(k) : void 0;
|
|
254
254
|
f && f !== _ && (_ = f, q = !1);
|
|
255
255
|
} else
|
|
256
256
|
_ = n(k);
|
|
@@ -266,13 +266,13 @@ const Io = (e, r) => {
|
|
|
266
266
|
q = !1;
|
|
267
267
|
}
|
|
268
268
|
const de = h.length === 0 ? "" : h.length === 1 ? h[0] : t(h).join(":"), re = y ? de + Qe : de, oe = re + _;
|
|
269
|
-
if (
|
|
269
|
+
if (a.indexOf(oe) > -1)
|
|
270
270
|
continue;
|
|
271
|
-
|
|
271
|
+
a.push(oe);
|
|
272
272
|
const ne = i(_, q);
|
|
273
273
|
for (let N = 0; N < ne.length; ++N) {
|
|
274
274
|
const f = ne[N];
|
|
275
|
-
|
|
275
|
+
a.push(re + f);
|
|
276
276
|
}
|
|
277
277
|
c = m + (c.length > 0 ? " " + c : c);
|
|
278
278
|
}
|
|
@@ -291,33 +291,33 @@ const Io = (e, r) => {
|
|
|
291
291
|
return o;
|
|
292
292
|
}, Cr = (e, ...r) => {
|
|
293
293
|
let o, n, i, t;
|
|
294
|
-
const
|
|
294
|
+
const s = (d) => {
|
|
295
295
|
const c = r.reduce((p, m) => m(p), e());
|
|
296
|
-
return o = jo(c), n = o.cache.get, i = o.cache.set, t =
|
|
297
|
-
},
|
|
296
|
+
return o = jo(c), n = o.cache.get, i = o.cache.set, t = a, a(d);
|
|
297
|
+
}, a = (d) => {
|
|
298
298
|
const c = n(d);
|
|
299
299
|
if (c)
|
|
300
300
|
return c;
|
|
301
301
|
const p = Ko(d, o);
|
|
302
302
|
return i(d, p), p;
|
|
303
303
|
};
|
|
304
|
-
return t =
|
|
304
|
+
return t = s, (...d) => t(Zo(...d));
|
|
305
305
|
}, Jo = [], T = (e) => {
|
|
306
306
|
const r = (o) => o[e] || Jo;
|
|
307
307
|
return r.isThemeGetter = !0, r;
|
|
308
|
-
}, Xr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Yr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Qo = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, en = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, on = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, nn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, tn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => Qo.test(e), b = (e) => !!e && !Number.isNaN(Number(e)), M = (e) => !!e && Number.isInteger(Number(e)), je = (e) => e.endsWith("%") && b(e.slice(0, -1)), B = (e) => en.test(e), Kr = () => !0,
|
|
308
|
+
}, Xr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Yr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Qo = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, en = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, on = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, nn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, tn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => Qo.test(e), b = (e) => !!e && !Number.isNaN(Number(e)), M = (e) => !!e && Number.isInteger(Number(e)), je = (e) => e.endsWith("%") && b(e.slice(0, -1)), B = (e) => en.test(e), Kr = () => !0, sn = (e) => (
|
|
309
309
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
310
310
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
311
311
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
312
312
|
rn.test(e) && !on.test(e)
|
|
313
|
-
), tr = () => !1,
|
|
313
|
+
), tr = () => !1, an = (e) => nn.test(e), ln = (e) => tn.test(e), cn = (e) => !l(e) && !u(e), un = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), dn = (e) => V(e, Qr, tr), l = (e) => Xr.test(e), X = (e) => V(e, eo, sn), Or = (e) => V(e, xn, b), fn = (e) => V(e, oo, Kr), gn = (e) => V(e, ro, tr), _r = (e) => V(e, Zr, tr), mn = (e) => V(e, Jr, ln), Se = (e) => V(e, no, an), u = (e) => Yr.test(e), fe = (e) => ee(e, eo), pn = (e) => ee(e, ro), Ir = (e) => ee(e, Zr), bn = (e) => ee(e, Qr), hn = (e) => ee(e, Jr), Te = (e) => ee(e, no, !0), vn = (e) => ee(e, oo, !0), V = (e, r, o) => {
|
|
314
314
|
const n = Xr.exec(e);
|
|
315
315
|
return n ? n[1] ? r(n[1]) : o(n[2]) : !1;
|
|
316
316
|
}, ee = (e, r, o = !1) => {
|
|
317
317
|
const n = Yr.exec(e);
|
|
318
318
|
return n ? n[1] ? r(n[1]) : o : !1;
|
|
319
319
|
}, Zr = (e) => e === "position" || e === "percentage", Jr = (e) => e === "image" || e === "url", Qr = (e) => e === "length" || e === "size" || e === "bg-size", eo = (e) => e === "length", xn = (e) => e === "number", ro = (e) => e === "family-name", oo = (e) => e === "number" || e === "weight", no = (e) => e === "shadow", Lr = () => {
|
|
320
|
-
const e = T("color"), r = T("font"), o = T("text"), n = T("font-weight"), i = T("tracking"), t = T("leading"),
|
|
320
|
+
const e = T("color"), r = T("font"), o = T("text"), n = T("font-weight"), i = T("tracking"), t = T("leading"), s = T("breakpoint"), a = T("container"), d = T("spacing"), c = T("radius"), p = T("shadow"), m = T("inset-shadow"), w = T("text-shadow"), h = T("drop-shadow"), y = T("blur"), k = T("perspective"), O = T("aspect"), q = T("ease"), _ = T("animate"), de = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], re = () => [
|
|
321
321
|
"center",
|
|
322
322
|
"top",
|
|
323
323
|
"bottom",
|
|
@@ -337,7 +337,7 @@ const Io = (e, r) => {
|
|
|
337
337
|
"left-bottom"
|
|
338
338
|
], oe = () => [...re(), u, l], ne = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], f = () => [u, l, d], I = () => [H, "full", "auto", ...f()], hr = () => [M, "none", "subgrid", u, l], vr = () => ["auto", {
|
|
339
339
|
span: ["full", M, u, l]
|
|
340
|
-
}, M, u, l], he = () => [M, "auto", u, l], xr = () => ["auto", "min", "max", "fr", u, l], $e = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], te = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"],
|
|
340
|
+
}, M, u, l], he = () => [M, "auto", u, l], xr = () => ["auto", "min", "max", "fr", u, l], $e = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], te = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], R = () => ["auto", ...f()], j = () => [H, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], We = () => [H, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...f()], Ue = () => [H, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...f()], g = () => [e, u, l], yr = () => [...re(), Ir, _r, {
|
|
341
341
|
position: [u, l]
|
|
342
342
|
}], wr = () => ["no-repeat", {
|
|
343
343
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -416,7 +416,7 @@ const Io = (e, r) => {
|
|
|
416
416
|
* @see https://tailwindcss.com/docs/columns
|
|
417
417
|
*/
|
|
418
418
|
columns: [{
|
|
419
|
-
columns: [b, l, u,
|
|
419
|
+
columns: [b, l, u, a]
|
|
420
420
|
}],
|
|
421
421
|
/**
|
|
422
422
|
* Break After
|
|
@@ -652,7 +652,7 @@ const Io = (e, r) => {
|
|
|
652
652
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
653
653
|
*/
|
|
654
654
|
basis: [{
|
|
655
|
-
basis: [H, "full", "auto",
|
|
655
|
+
basis: [H, "full", "auto", a, ...f()]
|
|
656
656
|
}],
|
|
657
657
|
/**
|
|
658
658
|
* Flex Direction
|
|
@@ -944,77 +944,77 @@ const Io = (e, r) => {
|
|
|
944
944
|
* @see https://tailwindcss.com/docs/margin
|
|
945
945
|
*/
|
|
946
946
|
m: [{
|
|
947
|
-
m:
|
|
947
|
+
m: R()
|
|
948
948
|
}],
|
|
949
949
|
/**
|
|
950
950
|
* Margin Inline
|
|
951
951
|
* @see https://tailwindcss.com/docs/margin
|
|
952
952
|
*/
|
|
953
953
|
mx: [{
|
|
954
|
-
mx:
|
|
954
|
+
mx: R()
|
|
955
955
|
}],
|
|
956
956
|
/**
|
|
957
957
|
* Margin Block
|
|
958
958
|
* @see https://tailwindcss.com/docs/margin
|
|
959
959
|
*/
|
|
960
960
|
my: [{
|
|
961
|
-
my:
|
|
961
|
+
my: R()
|
|
962
962
|
}],
|
|
963
963
|
/**
|
|
964
964
|
* Margin Inline Start
|
|
965
965
|
* @see https://tailwindcss.com/docs/margin
|
|
966
966
|
*/
|
|
967
967
|
ms: [{
|
|
968
|
-
ms:
|
|
968
|
+
ms: R()
|
|
969
969
|
}],
|
|
970
970
|
/**
|
|
971
971
|
* Margin Inline End
|
|
972
972
|
* @see https://tailwindcss.com/docs/margin
|
|
973
973
|
*/
|
|
974
974
|
me: [{
|
|
975
|
-
me:
|
|
975
|
+
me: R()
|
|
976
976
|
}],
|
|
977
977
|
/**
|
|
978
978
|
* Margin Block Start
|
|
979
979
|
* @see https://tailwindcss.com/docs/margin
|
|
980
980
|
*/
|
|
981
981
|
mbs: [{
|
|
982
|
-
mbs:
|
|
982
|
+
mbs: R()
|
|
983
983
|
}],
|
|
984
984
|
/**
|
|
985
985
|
* Margin Block End
|
|
986
986
|
* @see https://tailwindcss.com/docs/margin
|
|
987
987
|
*/
|
|
988
988
|
mbe: [{
|
|
989
|
-
mbe:
|
|
989
|
+
mbe: R()
|
|
990
990
|
}],
|
|
991
991
|
/**
|
|
992
992
|
* Margin Top
|
|
993
993
|
* @see https://tailwindcss.com/docs/margin
|
|
994
994
|
*/
|
|
995
995
|
mt: [{
|
|
996
|
-
mt:
|
|
996
|
+
mt: R()
|
|
997
997
|
}],
|
|
998
998
|
/**
|
|
999
999
|
* Margin Right
|
|
1000
1000
|
* @see https://tailwindcss.com/docs/margin
|
|
1001
1001
|
*/
|
|
1002
1002
|
mr: [{
|
|
1003
|
-
mr:
|
|
1003
|
+
mr: R()
|
|
1004
1004
|
}],
|
|
1005
1005
|
/**
|
|
1006
1006
|
* Margin Bottom
|
|
1007
1007
|
* @see https://tailwindcss.com/docs/margin
|
|
1008
1008
|
*/
|
|
1009
1009
|
mb: [{
|
|
1010
|
-
mb:
|
|
1010
|
+
mb: R()
|
|
1011
1011
|
}],
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Margin Left
|
|
1014
1014
|
* @see https://tailwindcss.com/docs/margin
|
|
1015
1015
|
*/
|
|
1016
1016
|
ml: [{
|
|
1017
|
-
ml:
|
|
1017
|
+
ml: R()
|
|
1018
1018
|
}],
|
|
1019
1019
|
/**
|
|
1020
1020
|
* Space Between X
|
|
@@ -1097,7 +1097,7 @@ const Io = (e, r) => {
|
|
|
1097
1097
|
* @see https://tailwindcss.com/docs/width
|
|
1098
1098
|
*/
|
|
1099
1099
|
w: [{
|
|
1100
|
-
w: [
|
|
1100
|
+
w: [a, "screen", ...j()]
|
|
1101
1101
|
}],
|
|
1102
1102
|
/**
|
|
1103
1103
|
* Min-Width
|
|
@@ -1105,7 +1105,7 @@ const Io = (e, r) => {
|
|
|
1105
1105
|
*/
|
|
1106
1106
|
"min-w": [{
|
|
1107
1107
|
"min-w": [
|
|
1108
|
-
|
|
1108
|
+
a,
|
|
1109
1109
|
"screen",
|
|
1110
1110
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1111
1111
|
"none",
|
|
@@ -1118,14 +1118,14 @@ const Io = (e, r) => {
|
|
|
1118
1118
|
*/
|
|
1119
1119
|
"max-w": [{
|
|
1120
1120
|
"max-w": [
|
|
1121
|
-
|
|
1121
|
+
a,
|
|
1122
1122
|
"screen",
|
|
1123
1123
|
"none",
|
|
1124
1124
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1125
1125
|
"prose",
|
|
1126
1126
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1127
1127
|
{
|
|
1128
|
-
screen: [
|
|
1128
|
+
screen: [s]
|
|
1129
1129
|
},
|
|
1130
1130
|
...j()
|
|
1131
1131
|
]
|
|
@@ -3007,12 +3007,12 @@ const Io = (e, r) => {
|
|
|
3007
3007
|
experimentalParseClassName: n,
|
|
3008
3008
|
extend: i = {},
|
|
3009
3009
|
override: t = {}
|
|
3010
|
-
}) => (
|
|
3010
|
+
}) => (se(e, "cacheSize", r), se(e, "prefix", o), se(e, "experimentalParseClassName", n), ke(e.theme, t.theme), ke(e.classGroups, t.classGroups), ke(e.conflictingClassGroups, t.conflictingClassGroups), ke(e.conflictingClassGroupModifiers, t.conflictingClassGroupModifiers), se(e, "postfixLookupClassGroups", t.postfixLookupClassGroups), se(e, "orderSensitiveModifiers", t.orderSensitiveModifiers), Ee(e.theme, i.theme), Ee(e.classGroups, i.classGroups), Ee(e.conflictingClassGroups, i.conflictingClassGroups), Ee(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), er(e, i, "postfixLookupClassGroups"), er(e, i, "orderSensitiveModifiers"), e), se = (e, r, o) => {
|
|
3011
3011
|
o !== void 0 && (e[r] = o);
|
|
3012
3012
|
}, ke = (e, r) => {
|
|
3013
3013
|
if (r)
|
|
3014
3014
|
for (const o in r)
|
|
3015
|
-
|
|
3015
|
+
se(e, o, r[o]);
|
|
3016
3016
|
}, Ee = (e, r) => {
|
|
3017
3017
|
if (r)
|
|
3018
3018
|
for (const o in r)
|
|
@@ -3144,7 +3144,7 @@ const Bi = {
|
|
|
3144
3144
|
"header-1",
|
|
3145
3145
|
"header-2",
|
|
3146
3146
|
"large"
|
|
3147
|
-
],
|
|
3147
|
+
], Rn = wn({
|
|
3148
3148
|
extend: {
|
|
3149
3149
|
theme: {
|
|
3150
3150
|
spacing: [..._n],
|
|
@@ -3154,7 +3154,7 @@ const Bi = {
|
|
|
3154
3154
|
}
|
|
3155
3155
|
});
|
|
3156
3156
|
function x(...e) {
|
|
3157
|
-
return
|
|
3157
|
+
return Rn(_o(e));
|
|
3158
3158
|
}
|
|
3159
3159
|
const le = {
|
|
3160
3160
|
small: {
|
|
@@ -3213,9 +3213,9 @@ const le = {
|
|
|
3213
3213
|
spinnerBorder: "border-[2.5px]",
|
|
3214
3214
|
rounded: "rounded-large"
|
|
3215
3215
|
}
|
|
3216
|
-
},
|
|
3216
|
+
}, zn = "(prefers-reduced-motion: reduce)";
|
|
3217
3217
|
function io() {
|
|
3218
|
-
return typeof window > "u" || !window.matchMedia ? null : window.matchMedia(
|
|
3218
|
+
return typeof window > "u" || !window.matchMedia ? null : window.matchMedia(zn);
|
|
3219
3219
|
}
|
|
3220
3220
|
function Be() {
|
|
3221
3221
|
var e;
|
|
@@ -3293,7 +3293,7 @@ const Nn = {
|
|
|
3293
3293
|
enablePaginationFlip: !0,
|
|
3294
3294
|
enableSelectionFill: !0
|
|
3295
3295
|
};
|
|
3296
|
-
let v = { ...ir },
|
|
3296
|
+
let v = { ...ir }, so = 0;
|
|
3297
3297
|
const rr = /* @__PURE__ */ new Set();
|
|
3298
3298
|
function Hi(e) {
|
|
3299
3299
|
return rr.add(e), () => {
|
|
@@ -3301,15 +3301,15 @@ function Hi(e) {
|
|
|
3301
3301
|
};
|
|
3302
3302
|
}
|
|
3303
3303
|
function $i() {
|
|
3304
|
-
return
|
|
3304
|
+
return so;
|
|
3305
3305
|
}
|
|
3306
|
-
function
|
|
3306
|
+
function ao(e, r = v) {
|
|
3307
3307
|
if (typeof document > "u") return;
|
|
3308
3308
|
const o = e ?? document.documentElement, n = Nn.surfaceDuration;
|
|
3309
3309
|
r.surfaceTransitionDuration === ir.surfaceTransitionDuration ? o.style.removeProperty(n) : o.style.setProperty(n, `${r.surfaceTransitionDuration}ms`);
|
|
3310
3310
|
}
|
|
3311
3311
|
function Bn(e) {
|
|
3312
|
-
v = { ...v, ...e },
|
|
3312
|
+
v = { ...v, ...e }, so += 1, ao(document.documentElement, v);
|
|
3313
3313
|
for (const r of rr)
|
|
3314
3314
|
r();
|
|
3315
3315
|
}
|
|
@@ -3384,14 +3384,14 @@ function Qi() {
|
|
|
3384
3384
|
ease: v.progressIndeterminateEase
|
|
3385
3385
|
};
|
|
3386
3386
|
}
|
|
3387
|
-
function
|
|
3387
|
+
function es() {
|
|
3388
3388
|
return {
|
|
3389
3389
|
duration: v.toastDismissDuration / 1e3,
|
|
3390
3390
|
ease: v.toastDismissEase
|
|
3391
3391
|
};
|
|
3392
3392
|
}
|
|
3393
3393
|
const Gn = 3;
|
|
3394
|
-
function
|
|
3394
|
+
function rs() {
|
|
3395
3395
|
const e = v.loadingDotsDuration / 1e3;
|
|
3396
3396
|
return {
|
|
3397
3397
|
cycleSec: e,
|
|
@@ -3403,21 +3403,21 @@ function ra() {
|
|
|
3403
3403
|
};
|
|
3404
3404
|
}
|
|
3405
3405
|
const Hn = "pointer-events-none absolute z-0 rounded-full", Xe = "brn-ripple";
|
|
3406
|
-
let
|
|
3406
|
+
let Rr = !1, zr = "";
|
|
3407
3407
|
function $n() {
|
|
3408
|
-
|
|
3408
|
+
Rr || (z.registerPlugin(Je), Rr = !0);
|
|
3409
3409
|
}
|
|
3410
3410
|
function Wn() {
|
|
3411
3411
|
$n();
|
|
3412
3412
|
const e = G().rippleEaseCss;
|
|
3413
|
-
if (
|
|
3413
|
+
if (zr !== e) {
|
|
3414
3414
|
const r = /cubic-bezier\(\s*([\d.]+),\s*([\d.]+),\s*([\d.]+),\s*([\d.]+)\s*\)/.exec(e);
|
|
3415
|
-
r ? Je.create(Xe, `${r[1]},${r[2]},${r[3]},${r[4]}`) : Je.create(Xe, "0.25,0.55,0.35,0.95"),
|
|
3415
|
+
r ? Je.create(Xe, `${r[1]},${r[2]},${r[3]},${r[4]}`) : Je.create(Xe, "0.25,0.55,0.35,0.95"), zr = e;
|
|
3416
3416
|
}
|
|
3417
3417
|
return Xe;
|
|
3418
3418
|
}
|
|
3419
3419
|
function A(...e) {
|
|
3420
|
-
|
|
3420
|
+
z.killTweensOf(e);
|
|
3421
3421
|
for (const r of e) co(r);
|
|
3422
3422
|
}
|
|
3423
3423
|
function U(e, r) {
|
|
@@ -3445,8 +3445,8 @@ function Un({
|
|
|
3445
3445
|
size: n,
|
|
3446
3446
|
durationMs: i,
|
|
3447
3447
|
opacityFrom: t,
|
|
3448
|
-
background:
|
|
3449
|
-
direction:
|
|
3448
|
+
background: s,
|
|
3449
|
+
direction: a,
|
|
3450
3450
|
onDone: d
|
|
3451
3451
|
}) {
|
|
3452
3452
|
const c = Z(null), p = Z(d);
|
|
@@ -3455,7 +3455,7 @@ function Un({
|
|
|
3455
3455
|
if (!m) return;
|
|
3456
3456
|
let w = !1;
|
|
3457
3457
|
A(m);
|
|
3458
|
-
const h =
|
|
3458
|
+
const h = a === "out" ? Ye : 1, y = a === "out" ? 1 : Ye, k = z.fromTo(
|
|
3459
3459
|
m,
|
|
3460
3460
|
{ scale: h, autoAlpha: t },
|
|
3461
3461
|
{
|
|
@@ -3471,7 +3471,7 @@ function Un({
|
|
|
3471
3471
|
return () => {
|
|
3472
3472
|
w = !0, k.kill(), A(m);
|
|
3473
3473
|
};
|
|
3474
|
-
}, [e, r, o, n, i, t,
|
|
3474
|
+
}, [e, r, o, n, i, t, s, a]), /* @__PURE__ */ Ke(
|
|
3475
3475
|
"span",
|
|
3476
3476
|
{
|
|
3477
3477
|
ref: c,
|
|
@@ -3481,33 +3481,33 @@ function Un({
|
|
|
3481
3481
|
top: o - n / 2,
|
|
3482
3482
|
width: n,
|
|
3483
3483
|
height: n,
|
|
3484
|
-
background:
|
|
3484
|
+
background: s,
|
|
3485
3485
|
transformOrigin: "center center",
|
|
3486
|
-
transform: `scale(${
|
|
3486
|
+
transform: `scale(${a === "out" ? Ye : 1})`
|
|
3487
3487
|
},
|
|
3488
3488
|
"aria-hidden": !0
|
|
3489
3489
|
}
|
|
3490
3490
|
);
|
|
3491
3491
|
}
|
|
3492
|
-
const
|
|
3492
|
+
const os = Oo(function({
|
|
3493
3493
|
ripples: r,
|
|
3494
3494
|
tone: o,
|
|
3495
3495
|
onDone: n,
|
|
3496
3496
|
durationMs: i = G().rippleDefaultDuration,
|
|
3497
3497
|
opacityFrom: t = G().rippleDefaultOpacityFrom,
|
|
3498
|
-
direction:
|
|
3498
|
+
direction: s = "in"
|
|
3499
3499
|
}) {
|
|
3500
|
-
return /* @__PURE__ */ Ke(Fo, { children: r.map((
|
|
3500
|
+
return /* @__PURE__ */ Ke(Fo, { children: r.map((a) => /* @__PURE__ */ Ke(
|
|
3501
3501
|
Un,
|
|
3502
3502
|
{
|
|
3503
|
-
...
|
|
3503
|
+
...a,
|
|
3504
3504
|
background: o,
|
|
3505
3505
|
durationMs: i,
|
|
3506
3506
|
opacityFrom: t,
|
|
3507
|
-
direction:
|
|
3507
|
+
direction: s,
|
|
3508
3508
|
onDone: n
|
|
3509
3509
|
},
|
|
3510
|
-
|
|
3510
|
+
a.id
|
|
3511
3511
|
)) });
|
|
3512
3512
|
});
|
|
3513
3513
|
function Vn(e, r, o, n) {
|
|
@@ -3516,37 +3516,37 @@ function Vn(e, r, o, n) {
|
|
|
3516
3516
|
[o, 0],
|
|
3517
3517
|
[0, n],
|
|
3518
3518
|
[o, n]
|
|
3519
|
-
].map(([t,
|
|
3519
|
+
].map(([t, s]) => Math.hypot(t - e, s - r)));
|
|
3520
3520
|
}
|
|
3521
3521
|
function fo(e, r, o, n) {
|
|
3522
|
-
const i = e.getBoundingClientRect(), t = r - i.left,
|
|
3523
|
-
return { id: n, x: t, y:
|
|
3522
|
+
const i = e.getBoundingClientRect(), t = r - i.left, s = o - i.top, a = Vn(t, s, i.width, i.height) * 2;
|
|
3523
|
+
return { id: n, x: t, y: s, size: a };
|
|
3524
3524
|
}
|
|
3525
|
-
function
|
|
3525
|
+
function ns(e, r) {
|
|
3526
3526
|
const o = e.currentTarget;
|
|
3527
3527
|
return o ? fo(o, e.clientX, e.clientY, r) : null;
|
|
3528
3528
|
}
|
|
3529
|
-
function
|
|
3530
|
-
const e = Z(0), [r, o] = Ze([]), n = D((
|
|
3531
|
-
o((
|
|
3529
|
+
function ts() {
|
|
3530
|
+
const e = Z(0), [r, o] = Ze([]), n = D((s) => {
|
|
3531
|
+
o((a) => a.filter((d) => d.id !== s));
|
|
3532
3532
|
}, []), i = D(
|
|
3533
|
-
(
|
|
3533
|
+
(s, a, d) => {
|
|
3534
3534
|
const c = ++e.current, p = fo(
|
|
3535
|
-
a,
|
|
3536
3535
|
s,
|
|
3536
|
+
a,
|
|
3537
3537
|
d,
|
|
3538
3538
|
c
|
|
3539
3539
|
);
|
|
3540
3540
|
o((m) => [...m, p]);
|
|
3541
3541
|
},
|
|
3542
3542
|
[]
|
|
3543
|
-
), t = D((
|
|
3544
|
-
const
|
|
3545
|
-
|
|
3543
|
+
), t = D((s) => {
|
|
3544
|
+
const a = s.currentTarget;
|
|
3545
|
+
a && i(a, s.clientX, s.clientY);
|
|
3546
3546
|
}, [i]);
|
|
3547
3547
|
return { ripples: r, pushFromPointer: t, pushAtClientCoords: i, dismiss: n };
|
|
3548
3548
|
}
|
|
3549
|
-
const
|
|
3549
|
+
const is = ["small", "base", "mid", "strong", "bold"], sr = {
|
|
3550
3550
|
small: "--font-w-small",
|
|
3551
3551
|
base: "--font-w-base",
|
|
3552
3552
|
mid: "--font-w-mid",
|
|
@@ -3559,10 +3559,10 @@ const ia = ["small", "base", "mid", "strong", "bold"], ar = {
|
|
|
3559
3559
|
strong: 700,
|
|
3560
3560
|
bold: 800
|
|
3561
3561
|
};
|
|
3562
|
-
function
|
|
3562
|
+
function ss(e) {
|
|
3563
3563
|
return `var(--font-w-${e})`;
|
|
3564
3564
|
}
|
|
3565
|
-
const ce = W.textScale, jn = 1024, go = `(max-width: ${jn}px), (hover: none), (pointer: coarse)`,
|
|
3565
|
+
const ce = W.textScale, jn = 1024, go = `(max-width: ${jn}px), (hover: none), (pointer: coarse)`, as = `${go}, (any-pointer: coarse)`, ls = [
|
|
3566
3566
|
"--border-width",
|
|
3567
3567
|
"--focus-ring-width",
|
|
3568
3568
|
"--focus-ring-offset",
|
|
@@ -3767,13 +3767,13 @@ function mo({
|
|
|
3767
3767
|
skipHover: n,
|
|
3768
3768
|
killMotionOnUnmount: i = !0,
|
|
3769
3769
|
onEnter: t,
|
|
3770
|
-
onLeave:
|
|
3770
|
+
onLeave: s
|
|
3771
3771
|
}) {
|
|
3772
3772
|
return Gr(() => {
|
|
3773
3773
|
if (!i) return;
|
|
3774
|
-
const
|
|
3774
|
+
const a = r.current;
|
|
3775
3775
|
return () => {
|
|
3776
|
-
|
|
3776
|
+
a && A(a);
|
|
3777
3777
|
};
|
|
3778
3778
|
}, [i, r]), J(() => ({ onPointerOver: (c) => {
|
|
3779
3779
|
if (!e || c.defaultPrevented) return;
|
|
@@ -3785,8 +3785,8 @@ function mo({
|
|
|
3785
3785
|
const p = c.currentTarget, m = c.relatedTarget;
|
|
3786
3786
|
if (m instanceof Node && p.contains(m) || (o && (o.current = !1), !e) || n != null && n()) return;
|
|
3787
3787
|
const w = r.current;
|
|
3788
|
-
w &&
|
|
3789
|
-
} }), [e, t,
|
|
3788
|
+
w && s(w, c);
|
|
3789
|
+
} }), [e, t, s, o, n, r]);
|
|
3790
3790
|
}
|
|
3791
3791
|
function Yn(e) {
|
|
3792
3792
|
return e || document.documentElement;
|
|
@@ -3797,11 +3797,11 @@ function Ar(e, r) {
|
|
|
3797
3797
|
function He(e) {
|
|
3798
3798
|
return e === "none" ? "var(--shadow-none)" : `var(${to[e]})`;
|
|
3799
3799
|
}
|
|
3800
|
-
const or = () => He("none"), pe = () => He("base"), Kn = () => He("mid"),
|
|
3801
|
-
function
|
|
3800
|
+
const or = () => He("none"), pe = () => He("base"), Kn = () => He("mid"), cs = () => He("large");
|
|
3801
|
+
function us(e, r) {
|
|
3802
3802
|
return Ar(e === "none" ? "--shadow-none" : to[e], r);
|
|
3803
3803
|
}
|
|
3804
|
-
function
|
|
3804
|
+
function ar(e, r) {
|
|
3805
3805
|
e && e.style.setProperty("--el-shadow", r);
|
|
3806
3806
|
}
|
|
3807
3807
|
function Zn() {
|
|
@@ -3833,34 +3833,37 @@ function cr(e) {
|
|
|
3833
3833
|
}
|
|
3834
3834
|
function Le(e, r, o, n) {
|
|
3835
3835
|
if (P()) {
|
|
3836
|
-
r || (A(e),
|
|
3836
|
+
r || (A(e), z.set(e, { scale: 1 }), n && e.style.setProperty("--el-shadow", n.idle ?? or()));
|
|
3837
3837
|
return;
|
|
3838
3838
|
}
|
|
3839
3839
|
A(e);
|
|
3840
3840
|
const i = r ? o !== void 0 ? o : cr(e) : 1, t = G();
|
|
3841
|
-
if (U(e, !0),
|
|
3841
|
+
if (U(e, !0), z.to(e, {
|
|
3842
3842
|
scale: i,
|
|
3843
3843
|
duration: t.interactiveDuration / 1e3,
|
|
3844
3844
|
ease: t.hoverLiftEase,
|
|
3845
3845
|
overwrite: "auto",
|
|
3846
3846
|
onComplete: uo(e)
|
|
3847
3847
|
}), n) {
|
|
3848
|
-
const
|
|
3849
|
-
e.style.setProperty("--el-shadow", r ? n.hover :
|
|
3848
|
+
const s = n.idle ?? or();
|
|
3849
|
+
e.style.setProperty("--el-shadow", r ? n.hover : s);
|
|
3850
3850
|
}
|
|
3851
3851
|
}
|
|
3852
|
-
function
|
|
3852
|
+
function ds(e) {
|
|
3853
|
+
return !e.repeat && (e.key === "Enter" || e.key === " ");
|
|
3854
|
+
}
|
|
3855
|
+
function fs(e, r) {
|
|
3853
3856
|
var w;
|
|
3854
3857
|
if (!Ge("enablePressSqueeze"))
|
|
3855
3858
|
return (w = r == null ? void 0 : r.onReleaseStart) == null || w.call(r), Promise.resolve();
|
|
3856
3859
|
A(e);
|
|
3857
|
-
const o = po(e), n = G(), i = lo(), t = i * 0.3,
|
|
3860
|
+
const o = po(e), n = G(), i = lo(), t = i * 0.3, s = !P(), a = !!(r != null && r.pointerInside && s), d = a ? (r == null ? void 0 : r.liftScale) !== void 0 ? r.liftScale : cr(e) : 1, c = a ? i : i * 0.5, p = a ? n.hoverLiftEase : "sine.inOut", m = r == null ? void 0 : r.shadow;
|
|
3858
3861
|
if (m) {
|
|
3859
3862
|
const h = m.idle ?? or();
|
|
3860
|
-
e.style.setProperty("--el-shadow",
|
|
3863
|
+
e.style.setProperty("--el-shadow", a ? m.hover : h);
|
|
3861
3864
|
}
|
|
3862
3865
|
return new Promise((h) => {
|
|
3863
|
-
U(e, !0),
|
|
3866
|
+
U(e, !0), z.timeline({
|
|
3864
3867
|
onComplete: () => {
|
|
3865
3868
|
U(e, !1), h();
|
|
3866
3869
|
}
|
|
@@ -3882,13 +3885,13 @@ function da(e, r) {
|
|
|
3882
3885
|
}
|
|
3883
3886
|
function nt(e, r, o, n, i) {
|
|
3884
3887
|
const t = D(
|
|
3885
|
-
(
|
|
3886
|
-
Le(
|
|
3888
|
+
(a) => {
|
|
3889
|
+
Le(a, !0, n, i);
|
|
3887
3890
|
},
|
|
3888
3891
|
[n, i]
|
|
3889
|
-
),
|
|
3890
|
-
(
|
|
3891
|
-
Le(
|
|
3892
|
+
), s = D(
|
|
3893
|
+
(a) => {
|
|
3894
|
+
Le(a, !1, n, i);
|
|
3892
3895
|
},
|
|
3893
3896
|
[n, i]
|
|
3894
3897
|
);
|
|
@@ -3898,7 +3901,7 @@ function nt(e, r, o, n, i) {
|
|
|
3898
3901
|
pointerInsideRef: o,
|
|
3899
3902
|
skipHover: P,
|
|
3900
3903
|
onEnter: t,
|
|
3901
|
-
onLeave:
|
|
3904
|
+
onLeave: s
|
|
3902
3905
|
});
|
|
3903
3906
|
}
|
|
3904
3907
|
const me = "data-gloss-motion-init", bo = "origin-center", Pr = {
|
|
@@ -3906,14 +3909,14 @@ const me = "data-gloss-motion-init", bo = "origin-center", Pr = {
|
|
|
3906
3909
|
hover: { angle1: -80, angle2: -45, shineX: 10, shineY: 50 },
|
|
3907
3910
|
press: { angle1: -75, angle2: -15, shineX: 15, shineY: 15 }
|
|
3908
3911
|
}, tt = 120, it = 0.35;
|
|
3909
|
-
function
|
|
3912
|
+
function st(e) {
|
|
3910
3913
|
const { width: r, height: o } = e.getBoundingClientRect(), n = Math.max(r, o, 1);
|
|
3911
3914
|
return Math.min(1, Math.max(it, tt / n));
|
|
3912
3915
|
}
|
|
3913
|
-
function
|
|
3916
|
+
function at(e, r) {
|
|
3914
3917
|
const o = Pr.rest, n = Pr[r];
|
|
3915
3918
|
if (r === "rest") return n;
|
|
3916
|
-
const i =
|
|
3919
|
+
const i = st(e);
|
|
3917
3920
|
return {
|
|
3918
3921
|
angle1: o.angle1 + (n.angle1 - o.angle1) * i,
|
|
3919
3922
|
angle2: o.angle2 + (n.angle2 - o.angle2) * i,
|
|
@@ -3926,7 +3929,7 @@ function Y(e, r) {
|
|
|
3926
3929
|
return o || (typeof document > "u" ? "" : getComputedStyle(document.documentElement).getPropertyValue(r).trim());
|
|
3927
3930
|
}
|
|
3928
3931
|
function lt(e, r) {
|
|
3929
|
-
const o =
|
|
3932
|
+
const o = at(e, r);
|
|
3930
3933
|
return {
|
|
3931
3934
|
"--gloss-angle-1": `${o.angle1}deg`,
|
|
3932
3935
|
"--gloss-angle-2": `${o.angle2}deg`,
|
|
@@ -3935,7 +3938,7 @@ function lt(e, r) {
|
|
|
3935
3938
|
};
|
|
3936
3939
|
}
|
|
3937
3940
|
function ct(e, r) {
|
|
3938
|
-
const o = Y(e, "--gloss-inset-top"), n = Y(e, "--gloss-inset-bottom"), i = Y(e, "--gloss-elevation"), t = Y(e, "--gloss-elevation-hover") || i,
|
|
3941
|
+
const o = Y(e, "--gloss-inset-top"), n = Y(e, "--gloss-inset-bottom"), i = Y(e, "--gloss-elevation"), t = Y(e, "--gloss-elevation-hover") || i, s = Y(e, "--gloss-inner-glow"), a = Y(e, "--gloss-glow-hover"), d = Y(e, "--gloss-press-inset"), c = `inset 0 0.425em 0.425em ${o}, inset 0 -0.225em 0.225em ${n}`, p = r === "hover" ? `0 0.125em 0.3125em -0.1875em ${t}` : r === "press" ? `0 0.04em 0.08em -0.0625em ${i}` : `0 0.0625em 0.125em -0.0625em ${i}`, m = r === "hover" ? `inset 0 0 0.1em 0.25em ${a}` : `inset 0 0 0.05em 0.1em ${s}`, w = r === "press" ? `inset 0 0.25em 0.06em 0 ${d}` : "inset 0 0.25em 0.06em 0 rgb(0 0 0 / 0)";
|
|
3939
3942
|
return `${c}, ${p}, ${m}, ${w}`;
|
|
3940
3943
|
}
|
|
3941
3944
|
function ue(e, r) {
|
|
@@ -3944,8 +3947,8 @@ function ue(e, r) {
|
|
|
3944
3947
|
boxShadow: ct(e, r)
|
|
3945
3948
|
};
|
|
3946
3949
|
}
|
|
3947
|
-
function
|
|
3948
|
-
A(e),
|
|
3950
|
+
function Re(e) {
|
|
3951
|
+
A(e), z.set(e, {
|
|
3949
3952
|
scale: 1,
|
|
3950
3953
|
...ue(e, "rest")
|
|
3951
3954
|
});
|
|
@@ -3953,18 +3956,18 @@ function ze(e) {
|
|
|
3953
3956
|
let K = null, _e = 0;
|
|
3954
3957
|
function ho(e) {
|
|
3955
3958
|
if (P()) {
|
|
3956
|
-
|
|
3959
|
+
Re(e);
|
|
3957
3960
|
return;
|
|
3958
3961
|
}
|
|
3959
3962
|
const r = e.matches(":hover") || e.matches(":focus-within");
|
|
3960
3963
|
if (A(e), r) {
|
|
3961
|
-
|
|
3964
|
+
z.set(e, {
|
|
3962
3965
|
scale: lr(e),
|
|
3963
3966
|
...ue(e, "hover")
|
|
3964
3967
|
});
|
|
3965
3968
|
return;
|
|
3966
3969
|
}
|
|
3967
|
-
|
|
3970
|
+
Re(e);
|
|
3968
3971
|
}
|
|
3969
3972
|
function ut(e) {
|
|
3970
3973
|
if (typeof document > "u") return;
|
|
@@ -3986,7 +3989,7 @@ function ft() {
|
|
|
3986
3989
|
K == null || K.disconnect(), K = null;
|
|
3987
3990
|
}
|
|
3988
3991
|
function gt(e) {
|
|
3989
|
-
e.hasAttribute(me) || (e.setAttribute(me, ""), _e += 1, dt(),
|
|
3992
|
+
e.hasAttribute(me) || (e.setAttribute(me, ""), _e += 1, dt(), Re(e));
|
|
3990
3993
|
}
|
|
3991
3994
|
function Mr(e) {
|
|
3992
3995
|
e.hasAttribute(me) && (e.removeAttribute(me), _e = Math.max(0, _e - 1), _e === 0 && ft());
|
|
@@ -4001,7 +4004,7 @@ function vo(e, r = !0) {
|
|
|
4001
4004
|
o && (Mr(o), o = null);
|
|
4002
4005
|
};
|
|
4003
4006
|
}
|
|
4004
|
-
function
|
|
4007
|
+
function gs(e, r = !0) {
|
|
4005
4008
|
const o = Z(null), n = J(
|
|
4006
4009
|
() => vo(o, r),
|
|
4007
4010
|
[r]
|
|
@@ -4013,14 +4016,14 @@ function fa(e, r = !0) {
|
|
|
4013
4016
|
[n, e]
|
|
4014
4017
|
);
|
|
4015
4018
|
}
|
|
4016
|
-
function
|
|
4019
|
+
function ze(e, r, o) {
|
|
4017
4020
|
if (P()) {
|
|
4018
|
-
r || (A(e),
|
|
4021
|
+
r || (A(e), z.set(e, { scale: 1, ...ue(e, "rest") }));
|
|
4019
4022
|
return;
|
|
4020
4023
|
}
|
|
4021
4024
|
A(e);
|
|
4022
4025
|
const n = G(), i = r ? "hover" : "rest", t = r ? o !== void 0 ? o : lr(e) : 1;
|
|
4023
|
-
U(e, !0),
|
|
4026
|
+
U(e, !0), z.to(e, {
|
|
4024
4027
|
scale: t,
|
|
4025
4028
|
...ue(e, i),
|
|
4026
4029
|
duration: n.interactiveDuration / 1e3,
|
|
@@ -4034,18 +4037,18 @@ function mt(e, r = !1, o, n) {
|
|
|
4034
4037
|
return Promise.resolve();
|
|
4035
4038
|
const i = G();
|
|
4036
4039
|
if (!Ge("enablePressSqueeze"))
|
|
4037
|
-
return n == null || n(), P() ||
|
|
4040
|
+
return n == null || n(), P() || ze(e, r, o), Promise.resolve();
|
|
4038
4041
|
A(e);
|
|
4039
|
-
const t = ot(e),
|
|
4042
|
+
const t = ot(e), s = lo(), a = s * 0.3, d = s * 1, c = !P(), p = r && c, m = p ? "hover" : "rest", w = p ? lr(e) : 1;
|
|
4040
4043
|
return new Promise((h) => {
|
|
4041
|
-
U(e, !0),
|
|
4044
|
+
U(e, !0), z.timeline({
|
|
4042
4045
|
onComplete: () => {
|
|
4043
4046
|
U(e, !1), h();
|
|
4044
4047
|
}
|
|
4045
4048
|
}).to(e, {
|
|
4046
4049
|
...ue(e, "press"),
|
|
4047
4050
|
scale: t,
|
|
4048
|
-
duration:
|
|
4051
|
+
duration: a,
|
|
4049
4052
|
ease: "power1.out",
|
|
4050
4053
|
overwrite: "auto"
|
|
4051
4054
|
}).add(() => {
|
|
@@ -4063,17 +4066,17 @@ function pt(e, r, o) {
|
|
|
4063
4066
|
const n = o == null ? void 0 : o.liftScale, i = o == null ? void 0 : o.pointerInsideRef;
|
|
4064
4067
|
Q(() => {
|
|
4065
4068
|
if (!r) return;
|
|
4066
|
-
const
|
|
4067
|
-
|
|
4069
|
+
const a = e.current;
|
|
4070
|
+
a && Re(a);
|
|
4068
4071
|
}, [r, e]);
|
|
4069
4072
|
const t = D(
|
|
4070
|
-
(
|
|
4071
|
-
|
|
4073
|
+
(a) => {
|
|
4074
|
+
ze(a, !0, n);
|
|
4072
4075
|
},
|
|
4073
4076
|
[n]
|
|
4074
|
-
),
|
|
4075
|
-
(
|
|
4076
|
-
|
|
4077
|
+
), s = D(
|
|
4078
|
+
(a) => {
|
|
4079
|
+
ze(a, !1, n);
|
|
4077
4080
|
},
|
|
4078
4081
|
[n]
|
|
4079
4082
|
);
|
|
@@ -4083,19 +4086,19 @@ function pt(e, r, o) {
|
|
|
4083
4086
|
pointerInsideRef: i,
|
|
4084
4087
|
skipHover: P,
|
|
4085
4088
|
onEnter: t,
|
|
4086
|
-
onLeave:
|
|
4089
|
+
onLeave: s
|
|
4087
4090
|
});
|
|
4088
4091
|
}
|
|
4089
|
-
function
|
|
4092
|
+
function ms(e, r) {
|
|
4090
4093
|
const o = Z(!1), n = Z(!1), i = Z(!1), t = J(
|
|
4091
4094
|
() => vo(e, r),
|
|
4092
4095
|
[e, r]
|
|
4093
|
-
),
|
|
4096
|
+
), s = D(() => {
|
|
4094
4097
|
const h = e.current;
|
|
4095
4098
|
if (!h || !r || P()) return;
|
|
4096
4099
|
const y = o.current || n.current;
|
|
4097
|
-
|
|
4098
|
-
}, [r, e]),
|
|
4100
|
+
ze(h, y);
|
|
4101
|
+
}, [r, e]), a = pt(e, r, {
|
|
4099
4102
|
pointerInsideRef: o
|
|
4100
4103
|
});
|
|
4101
4104
|
Q(() => {
|
|
@@ -4109,23 +4112,23 @@ function ga(e, r) {
|
|
|
4109
4112
|
}, [r, e]);
|
|
4110
4113
|
const d = D(
|
|
4111
4114
|
(h) => {
|
|
4112
|
-
|
|
4115
|
+
a.onPointerOver(h), n.current && s();
|
|
4113
4116
|
},
|
|
4114
|
-
[
|
|
4117
|
+
[a, s]
|
|
4115
4118
|
), c = D(
|
|
4116
4119
|
(h) => {
|
|
4117
|
-
|
|
4120
|
+
a.onPointerOut(h), n.current && s();
|
|
4118
4121
|
},
|
|
4119
|
-
[
|
|
4122
|
+
[a, s]
|
|
4120
4123
|
), p = D(() => {
|
|
4121
|
-
r && (n.current = !0, !(i.current || o.current) &&
|
|
4122
|
-
}, [r,
|
|
4124
|
+
r && (n.current = !0, !(i.current || o.current) && s());
|
|
4125
|
+
}, [r, s]), m = D(
|
|
4123
4126
|
(h) => {
|
|
4124
4127
|
if (!r) return;
|
|
4125
4128
|
const y = e.current;
|
|
4126
|
-
y && h.relatedTarget instanceof Node && y.contains(h.relatedTarget) || (n.current = !1,
|
|
4129
|
+
y && h.relatedTarget instanceof Node && y.contains(h.relatedTarget) || (n.current = !1, s());
|
|
4127
4130
|
},
|
|
4128
|
-
[r, e,
|
|
4131
|
+
[r, e, s]
|
|
4129
4132
|
), w = D(() => {
|
|
4130
4133
|
if (!r) return;
|
|
4131
4134
|
const h = e.current;
|
|
@@ -4144,31 +4147,31 @@ function ga(e, r) {
|
|
|
4144
4147
|
};
|
|
4145
4148
|
}
|
|
4146
4149
|
const ur = "animate-shadow origin-center";
|
|
4147
|
-
function
|
|
4150
|
+
function ps() {
|
|
4148
4151
|
return { hover: pe() };
|
|
4149
4152
|
}
|
|
4150
4153
|
function xo() {
|
|
4151
4154
|
return { idle: pe(), hover: Kn() };
|
|
4152
4155
|
}
|
|
4153
|
-
function
|
|
4156
|
+
function bs(e, r, o = pe, n) {
|
|
4154
4157
|
Q(() => {
|
|
4155
|
-
r &&
|
|
4158
|
+
r && ar(e.current, o());
|
|
4156
4159
|
}, [r, e, o, n]);
|
|
4157
4160
|
}
|
|
4158
4161
|
function bt(e, r, o) {
|
|
4159
4162
|
const n = J(() => xo(), []), i = (o == null ? void 0 : o.resolveIdle) ?? pe;
|
|
4160
4163
|
Q(() => {
|
|
4161
|
-
r &&
|
|
4164
|
+
r && ar(e.current, i());
|
|
4162
4165
|
}, [r, e, i, o == null ? void 0 : o.idleSyncKey]);
|
|
4163
4166
|
const t = D(
|
|
4164
|
-
(
|
|
4165
|
-
if (!r ||
|
|
4167
|
+
(a) => {
|
|
4168
|
+
if (!r || a.defaultPrevented) return;
|
|
4166
4169
|
const d = e.current;
|
|
4167
4170
|
!d || P() || Le(d, !0, o == null ? void 0 : o.liftScale, n);
|
|
4168
4171
|
},
|
|
4169
4172
|
[r, o == null ? void 0 : o.liftScale, n, e]
|
|
4170
|
-
),
|
|
4171
|
-
(
|
|
4173
|
+
), s = D(
|
|
4174
|
+
(a) => {
|
|
4172
4175
|
if (!r) return;
|
|
4173
4176
|
const d = e.current;
|
|
4174
4177
|
!d || P() || Le(d, !1, o == null ? void 0 : o.liftScale, n);
|
|
@@ -4179,13 +4182,13 @@ function bt(e, r, o) {
|
|
|
4179
4182
|
motionClass: r ? ur : "",
|
|
4180
4183
|
shadow: n,
|
|
4181
4184
|
onPointerEnter: t,
|
|
4182
|
-
onPointerLeave:
|
|
4185
|
+
onPointerLeave: s
|
|
4183
4186
|
};
|
|
4184
4187
|
}
|
|
4185
|
-
function
|
|
4188
|
+
function hs(e, r, o) {
|
|
4186
4189
|
const n = J(() => xo(), []), i = (o == null ? void 0 : o.resolveIdle) ?? pe;
|
|
4187
4190
|
Q(() => {
|
|
4188
|
-
r &&
|
|
4191
|
+
r && ar(e.current, i());
|
|
4189
4192
|
}, [r, e, i, o == null ? void 0 : o.idleSyncKey]);
|
|
4190
4193
|
const t = nt(
|
|
4191
4194
|
e,
|
|
@@ -4225,7 +4228,7 @@ const De = {
|
|
|
4225
4228
|
success: "border-token-success",
|
|
4226
4229
|
info: "border-token-info",
|
|
4227
4230
|
warning: "border-token-warning"
|
|
4228
|
-
}, wt = "surface-color-transition motion-reduce:transition-none",
|
|
4231
|
+
}, wt = "surface-color-transition motion-reduce:transition-none", vs = "text-color-transition motion-reduce:transition-none", St = {
|
|
4229
4232
|
default: {
|
|
4230
4233
|
"focus-visible": "hover:bg-default-hover focus-visible:bg-default-hover",
|
|
4231
4234
|
"focus-within": "hover:bg-default-hover focus-within:bg-default-hover"
|
|
@@ -4304,7 +4307,7 @@ const ie = {
|
|
|
4304
4307
|
secondary: "bg-secondary text-secondary-foreground border border-token",
|
|
4305
4308
|
ghost: "bg-transparent text-foreground border border-transparent",
|
|
4306
4309
|
gloss: ""
|
|
4307
|
-
},
|
|
4310
|
+
}, xs = /* @__PURE__ */ new Set([
|
|
4308
4311
|
"default",
|
|
4309
4312
|
"primary",
|
|
4310
4313
|
"outline",
|
|
@@ -4341,7 +4344,7 @@ const ie = {
|
|
|
4341
4344
|
success: "gloss-btn-success",
|
|
4342
4345
|
info: "gloss-btn-info",
|
|
4343
4346
|
warning: "gloss-btn-warning"
|
|
4344
|
-
},
|
|
4347
|
+
}, ys = {
|
|
4345
4348
|
default: "",
|
|
4346
4349
|
danger: "[--color-focus-ring:var(--color-focus-ring-danger)]",
|
|
4347
4350
|
success: "[--color-focus-ring:var(--color-focus-ring-success)]",
|
|
@@ -4363,12 +4366,12 @@ const ie = {
|
|
|
4363
4366
|
base: "[&_svg]:icon-base",
|
|
4364
4367
|
mid: "[&_svg]:icon-mid",
|
|
4365
4368
|
large: "[&_svg]:icon-large"
|
|
4366
|
-
},
|
|
4369
|
+
}, ws = {
|
|
4367
4370
|
small: "small",
|
|
4368
4371
|
base: "base",
|
|
4369
4372
|
mid: "mid",
|
|
4370
4373
|
large: "large"
|
|
4371
|
-
},
|
|
4374
|
+
}, Ss = "relative overflow-hidden inline-flex items-center justify-center outline-none focus-ring disabled:pointer-events-none", Ts = "pointer-events-none absolute inset-0 z-0 overflow-hidden", Ct = "relative z-[1] grid w-full min-w-0 place-items-center", Ot = "origin-center", _t = "col-start-1 row-start-1 inline-flex w-full min-w-0 items-center justify-center gap-xsmall", It = "inline-flex shrink-0 items-center justify-center", Lt = "min-w-0 shrink", dr = "col-start-1 row-start-1 flex items-center justify-center", Rt = "text-success", zt = "text-danger", ks = "animate-spin motion-reduce:animate-none", Es = "cursor-pointer", Ds = "opacity-50";
|
|
4372
4375
|
function At(e, r) {
|
|
4373
4376
|
const { root: o } = wo[e];
|
|
4374
4377
|
return e === "outline" && r !== "default" ? "bg-transparent text-foreground" : o;
|
|
@@ -4426,10 +4429,10 @@ function Nt(e, r) {
|
|
|
4426
4429
|
function Bt(e, r, o) {
|
|
4427
4430
|
return o ? "" : Tt(Mt(e, r));
|
|
4428
4431
|
}
|
|
4429
|
-
function
|
|
4432
|
+
function Fs(e, r) {
|
|
4430
4433
|
return e === "primary" && r !== "default" ? xt[r] : Pt(e);
|
|
4431
4434
|
}
|
|
4432
|
-
function
|
|
4435
|
+
function Cs(e, r) {
|
|
4433
4436
|
return e === "primary" ? r === "default" ? S("converge-ripple-primary-fill") : Dt[r] : Et[r];
|
|
4434
4437
|
}
|
|
4435
4438
|
const Gt = {
|
|
@@ -4438,11 +4441,11 @@ const Gt = {
|
|
|
4438
4441
|
mid: "h-control-mid",
|
|
4439
4442
|
large: "h-control-large"
|
|
4440
4443
|
};
|
|
4441
|
-
function
|
|
4444
|
+
function Os(e, r = le[e].minWButton) {
|
|
4442
4445
|
const o = le[e];
|
|
4443
4446
|
return x(r, o.padX, o.padY);
|
|
4444
4447
|
}
|
|
4445
|
-
function
|
|
4448
|
+
function _s(e, r = !1) {
|
|
4446
4449
|
const o = le[e];
|
|
4447
4450
|
return x(
|
|
4448
4451
|
Gt[e],
|
|
@@ -4451,17 +4454,17 @@ function Oa(e, r = !1) {
|
|
|
4451
4454
|
o.padY
|
|
4452
4455
|
);
|
|
4453
4456
|
}
|
|
4454
|
-
function
|
|
4457
|
+
function Is(e) {
|
|
4455
4458
|
const r = le[e];
|
|
4456
4459
|
return x(r.spinnerIcon, r.spinnerBorder);
|
|
4457
4460
|
}
|
|
4458
|
-
function
|
|
4461
|
+
function Ls() {
|
|
4459
4462
|
return "pointer-events-none absolute left-1/2 top-1/2 z-0 rounded-full";
|
|
4460
4463
|
}
|
|
4461
|
-
function
|
|
4464
|
+
function Rs() {
|
|
4462
4465
|
return "box-border inline-block rounded-full border-current border-t-transparent";
|
|
4463
4466
|
}
|
|
4464
|
-
function
|
|
4467
|
+
function zs({
|
|
4465
4468
|
groupSegment: e,
|
|
4466
4469
|
slotClass: r,
|
|
4467
4470
|
className: o
|
|
@@ -4473,29 +4476,29 @@ function za({
|
|
|
4473
4476
|
o
|
|
4474
4477
|
);
|
|
4475
4478
|
}
|
|
4476
|
-
function
|
|
4479
|
+
function As({
|
|
4477
4480
|
slotClass: e,
|
|
4478
4481
|
className: r,
|
|
4479
4482
|
layoutClass: o
|
|
4480
4483
|
}) {
|
|
4481
4484
|
return x(_t, e, o, r);
|
|
4482
4485
|
}
|
|
4483
|
-
function
|
|
4486
|
+
function Ps(e, r) {
|
|
4484
4487
|
return x(It, Ft[e], r);
|
|
4485
4488
|
}
|
|
4486
|
-
function
|
|
4489
|
+
function Ms(e, r) {
|
|
4487
4490
|
return x(Lt, e, r);
|
|
4488
4491
|
}
|
|
4489
|
-
function
|
|
4492
|
+
function Ns(e, r) {
|
|
4490
4493
|
return x(dr, e, r);
|
|
4491
4494
|
}
|
|
4492
|
-
function
|
|
4493
|
-
return x(dr, zt, e);
|
|
4494
|
-
}
|
|
4495
|
-
function Ba(e) {
|
|
4495
|
+
function Bs(e) {
|
|
4496
4496
|
return x(dr, Rt, e);
|
|
4497
4497
|
}
|
|
4498
|
-
function
|
|
4498
|
+
function Gs(e) {
|
|
4499
|
+
return x(dr, zt, e);
|
|
4500
|
+
}
|
|
4501
|
+
function Hs() {
|
|
4499
4502
|
return "shrink-0";
|
|
4500
4503
|
}
|
|
4501
4504
|
const Ht = {
|
|
@@ -4511,10 +4514,10 @@ const Ht = {
|
|
|
4511
4514
|
info: S("converge-ripple-info"),
|
|
4512
4515
|
warning: S("converge-ripple-warning")
|
|
4513
4516
|
};
|
|
4514
|
-
function
|
|
4517
|
+
function $s(e, r = "default") {
|
|
4515
4518
|
return r !== "default" ? $t[r] : Ht[e];
|
|
4516
4519
|
}
|
|
4517
|
-
function
|
|
4520
|
+
function Ws(e, r, o, n, i) {
|
|
4518
4521
|
return e ? x("gloss-btn", bo, kt[r]) : x(
|
|
4519
4522
|
At(o, r),
|
|
4520
4523
|
Nt(o, r),
|
|
@@ -4522,7 +4525,7 @@ function $a(e, r, o, n, i) {
|
|
|
4522
4525
|
Bt(o, r, i)
|
|
4523
4526
|
);
|
|
4524
4527
|
}
|
|
4525
|
-
const
|
|
4528
|
+
const Us = {
|
|
4526
4529
|
small: "small",
|
|
4527
4530
|
base: "base",
|
|
4528
4531
|
mid: "mid",
|
|
@@ -4542,7 +4545,8 @@ function Vt(e) {
|
|
|
4542
4545
|
const { orientation: r, position: o } = e;
|
|
4543
4546
|
return o === "only" ? "rounded-[inherit]" : r === "horizontal" ? o === "first" ? "rounded-l-[inherit] rounded-r-none" : o === "middle" ? "rounded-none" : "rounded-r-[inherit] rounded-l-none" : o === "first" ? "rounded-t-[inherit] rounded-b-none" : o === "middle" ? "rounded-none" : "rounded-b-[inherit] rounded-t-none";
|
|
4544
4547
|
}
|
|
4545
|
-
|
|
4548
|
+
const Vs = "min-h-0 min-w-0 self-stretch rounded-[inherit]";
|
|
4549
|
+
function qs(e) {
|
|
4546
4550
|
if (e == null || e.position === "only") return "";
|
|
4547
4551
|
const { orientation: r, position: o } = e;
|
|
4548
4552
|
return r === "horizontal" ? o === "first" ? "" : "border-l-0" : o === "first" ? "" : "border-t-0";
|
|
@@ -4561,7 +4565,7 @@ function jt(e) {
|
|
|
4561
4565
|
"z-0"
|
|
4562
4566
|
);
|
|
4563
4567
|
}
|
|
4564
|
-
function
|
|
4568
|
+
function js({
|
|
4565
4569
|
orientation: e,
|
|
4566
4570
|
segmented: r,
|
|
4567
4571
|
variant: o,
|
|
@@ -4580,14 +4584,14 @@ function Va({
|
|
|
4580
4584
|
n
|
|
4581
4585
|
);
|
|
4582
4586
|
}
|
|
4583
|
-
function
|
|
4587
|
+
function Xs(e, r) {
|
|
4584
4588
|
return x(
|
|
4585
4589
|
"pointer-events-none shrink-0",
|
|
4586
4590
|
e === "horizontal" ? "my-[var(--border-width)] self-stretch border-r-token" : "mx-[var(--border-width)] self-stretch border-b-token",
|
|
4587
4591
|
r
|
|
4588
4592
|
);
|
|
4589
4593
|
}
|
|
4590
|
-
function
|
|
4594
|
+
function Ys({
|
|
4591
4595
|
groupSegment: e,
|
|
4592
4596
|
groupVariant: r,
|
|
4593
4597
|
buttonSize: o,
|
|
@@ -4601,7 +4605,7 @@ function ja({
|
|
|
4601
4605
|
n
|
|
4602
4606
|
);
|
|
4603
4607
|
}
|
|
4604
|
-
const
|
|
4608
|
+
const Ks = "max-w-component-xsmall truncate font-w-base whitespace-nowrap md:max-w-component-base", Xt = {
|
|
4605
4609
|
default: "bg-surface",
|
|
4606
4610
|
outline: "bg-transparent",
|
|
4607
4611
|
secondary: "bg-secondary"
|
|
@@ -4609,18 +4613,18 @@ const Xa = "max-w-component-xsmall truncate font-w-base whitespace-nowrap md:max
|
|
|
4609
4613
|
function Yt(e) {
|
|
4610
4614
|
return e === "secondary" ? "secondary" : "default";
|
|
4611
4615
|
}
|
|
4612
|
-
function
|
|
4616
|
+
function Zs(e) {
|
|
4613
4617
|
return e === "gloss" ? "gloss" : e === "outline" ? "outline" : e === "secondary" ? "secondary" : "default";
|
|
4614
4618
|
}
|
|
4615
|
-
function
|
|
4619
|
+
function Js({
|
|
4616
4620
|
variant: e
|
|
4617
4621
|
}) {
|
|
4618
4622
|
return e === "gloss" ? "gloss-control" : e === "outline" ? "bg-transparent border-token" : x(Xt[e], "border-token");
|
|
4619
4623
|
}
|
|
4620
|
-
function
|
|
4624
|
+
function Qs(e, r = "default", o = "default") {
|
|
4621
4625
|
return e ? yo(Yt(o), "focus-within") : "";
|
|
4622
4626
|
}
|
|
4623
|
-
const
|
|
4627
|
+
const ea = "field-shell-transition motion-reduce:transition-none", Kt = "focus-within-ring", Fe = "outline-solid outline-[length:var(--focus-ring-width,2px)] outline-offset-[length:var(--focus-ring-offset,0px)]", Ce = {
|
|
4624
4628
|
danger: "outline-[var(--color-focus-ring-danger)] focus-within:outline-[var(--color-focus-ring-danger)]",
|
|
4625
4629
|
success: "outline-[var(--color-focus-ring-success)] focus-within:outline-[var(--color-focus-ring-success)]",
|
|
4626
4630
|
info: "outline-[var(--color-focus-ring-info)] focus-within:outline-[var(--color-focus-ring-info)]",
|
|
@@ -4631,10 +4635,10 @@ const Ja = "field-shell-transition motion-reduce:transition-none", Kt = "focus-w
|
|
|
4631
4635
|
info: x(Fe, Ce.info),
|
|
4632
4636
|
warning: x(Fe, Ce.warning)
|
|
4633
4637
|
};
|
|
4634
|
-
function
|
|
4638
|
+
function ra(e = "default") {
|
|
4635
4639
|
return e === "default" ? Kt : Zt[e];
|
|
4636
4640
|
}
|
|
4637
|
-
function
|
|
4641
|
+
function oa(e, r) {
|
|
4638
4642
|
const o = bt(e, r);
|
|
4639
4643
|
return {
|
|
4640
4644
|
shellHoverMotionClass: o.motionClass,
|
|
@@ -4642,7 +4646,7 @@ function es(e, r) {
|
|
|
4642
4646
|
onShellPointerLeave: o.onPointerLeave
|
|
4643
4647
|
};
|
|
4644
4648
|
}
|
|
4645
|
-
function
|
|
4649
|
+
function na(e) {
|
|
4646
4650
|
const r = le[e];
|
|
4647
4651
|
return x(
|
|
4648
4652
|
"flex self-stretch shrink-0 items-center text-muted",
|
|
@@ -4656,7 +4660,7 @@ const Jt = {
|
|
|
4656
4660
|
mid: "min-w-control-mid",
|
|
4657
4661
|
large: "min-w-control-large"
|
|
4658
4662
|
};
|
|
4659
|
-
function
|
|
4663
|
+
function ta(e) {
|
|
4660
4664
|
return Jt[e];
|
|
4661
4665
|
}
|
|
4662
4666
|
const Qt = {
|
|
@@ -4684,7 +4688,7 @@ function ri(e) {
|
|
|
4684
4688
|
}
|
|
4685
4689
|
return null;
|
|
4686
4690
|
}
|
|
4687
|
-
function
|
|
4691
|
+
function ia(e, r = 16) {
|
|
4688
4692
|
return ri(e) ?? r * ei[e];
|
|
4689
4693
|
}
|
|
4690
4694
|
const oi = {
|
|
@@ -4853,7 +4857,7 @@ const oi = {
|
|
|
4853
4857
|
convergeRippleSuccess: "--color-converge-ripple-success",
|
|
4854
4858
|
convergeRippleInfo: "--color-converge-ripple-info",
|
|
4855
4859
|
convergeRippleWarning: "--color-converge-ripple-warning"
|
|
4856
|
-
},
|
|
4860
|
+
}, si = {
|
|
4857
4861
|
space: 0.5,
|
|
4858
4862
|
size: 1,
|
|
4859
4863
|
radius: 0.5,
|
|
@@ -4865,7 +4869,7 @@ const oi = {
|
|
|
4865
4869
|
shadowSize: 1,
|
|
4866
4870
|
toastScrimSize: 1,
|
|
4867
4871
|
toastScrimDensity: 1
|
|
4868
|
-
},
|
|
4872
|
+
}, ai = (() => {
|
|
4869
4873
|
const { pressSqueezeScale: e, ...r } = ir;
|
|
4870
4874
|
return {
|
|
4871
4875
|
...r,
|
|
@@ -4876,7 +4880,7 @@ function ge(e) {
|
|
|
4876
4880
|
const r = Math.round(e * 1e8) / 1e8;
|
|
4877
4881
|
return String(r);
|
|
4878
4882
|
}
|
|
4879
|
-
function
|
|
4883
|
+
function ae(e) {
|
|
4880
4884
|
if (e === 0) return "0rem";
|
|
4881
4885
|
const r = ge(e * ui), o = ge(e * di), n = ge(e * fi), i = ge(e);
|
|
4882
4886
|
return `clamp(${r}rem, ${o}rem + ${n}vw, ${i}rem)`;
|
|
@@ -4888,8 +4892,8 @@ function gi(e, r, o, n, i) {
|
|
|
4888
4892
|
return `${Oe(e)} ${Oe(r)} ${Oe(o)} ${Oe(n)} rgb(0 0 0 / ${ge(i)})`;
|
|
4889
4893
|
}
|
|
4890
4894
|
function $(e, r, o) {
|
|
4891
|
-
const n = Cn[r][e] * o, [i, t,
|
|
4892
|
-
return gi(i, t,
|
|
4895
|
+
const n = Cn[r][e] * o, [i, t, s, a] = On[e][0];
|
|
4896
|
+
return gi(i, t, s, a, n);
|
|
4893
4897
|
}
|
|
4894
4898
|
function mi(e, r, o, n) {
|
|
4895
4899
|
e.style.setProperty("--shadow-size", String(n)), e.style.setProperty("--shadow-none", $("base", r, 0)), e.style.setProperty("--shadow-base", $("base", r, o)), e.style.setProperty("--shadow-mid", $("mid", r, o)), e.style.setProperty("--shadow-large", $("large", r, o));
|
|
@@ -4899,10 +4903,10 @@ function pi(e) {
|
|
|
4899
4903
|
}
|
|
4900
4904
|
function bi(e, r) {
|
|
4901
4905
|
for (const o of Object.keys(ce)) {
|
|
4902
|
-
const { size: n, line: i } = ce[o], t = n * r,
|
|
4906
|
+
const { size: n, line: i } = ce[o], t = n * r, s = i * r;
|
|
4903
4907
|
e.style.setProperty(`--text-scale-${o}`, `${t}rem`), e.style.setProperty(
|
|
4904
4908
|
`--text-scale-${o}--line-height`,
|
|
4905
|
-
`calc(${
|
|
4909
|
+
`calc(${s}rem / ${t}rem)`
|
|
4906
4910
|
);
|
|
4907
4911
|
}
|
|
4908
4912
|
}
|
|
@@ -4911,7 +4915,7 @@ function hi(e) {
|
|
|
4911
4915
|
e.style.removeProperty(`--text-scale-${r}`), e.style.removeProperty(`--text-scale-${r}--line-height`);
|
|
4912
4916
|
}
|
|
4913
4917
|
function vi(e, r, o) {
|
|
4914
|
-
for (const [n, i] of Object.entries(
|
|
4918
|
+
for (const [n, i] of Object.entries(sr))
|
|
4915
4919
|
L(e, i, r[n] !== o[n] ? String(r[n]) : null);
|
|
4916
4920
|
}
|
|
4917
4921
|
function L(e, r, o) {
|
|
@@ -4938,7 +4942,7 @@ function gr(e) {
|
|
|
4938
4942
|
}
|
|
4939
4943
|
};
|
|
4940
4944
|
}
|
|
4941
|
-
function
|
|
4945
|
+
function sa(e, r) {
|
|
4942
4946
|
const o = gr(e), n = o.modePalettes[r];
|
|
4943
4947
|
return {
|
|
4944
4948
|
...o,
|
|
@@ -4946,7 +4950,7 @@ function ts(e, r) {
|
|
|
4946
4950
|
colors: { ...n }
|
|
4947
4951
|
};
|
|
4948
4952
|
}
|
|
4949
|
-
function
|
|
4953
|
+
function aa(e, r, o) {
|
|
4950
4954
|
const n = gr(e), i = { ...n.colors, [r]: o };
|
|
4951
4955
|
return {
|
|
4952
4956
|
...n,
|
|
@@ -4961,8 +4965,8 @@ function be(e = "dark") {
|
|
|
4961
4965
|
const r = So(), o = r[e];
|
|
4962
4966
|
return {
|
|
4963
4967
|
theme: e,
|
|
4964
|
-
...ai,
|
|
4965
4968
|
...si,
|
|
4969
|
+
...ai,
|
|
4966
4970
|
fontFamily: li,
|
|
4967
4971
|
fontFamilyMono: ci,
|
|
4968
4972
|
fontWeights: { ...qn },
|
|
@@ -4980,7 +4984,7 @@ const xi = [
|
|
|
4980
4984
|
"--motion-surface-duration",
|
|
4981
4985
|
"--font-family-sans",
|
|
4982
4986
|
"--font-family-mono",
|
|
4983
|
-
...Object.values(
|
|
4987
|
+
...Object.values(sr),
|
|
4984
4988
|
"--shadow-size",
|
|
4985
4989
|
"--shadow-none",
|
|
4986
4990
|
"--shadow-base",
|
|
@@ -4994,7 +4998,7 @@ const xi = [
|
|
|
4994
4998
|
]),
|
|
4995
4999
|
...Object.values(fr)
|
|
4996
5000
|
];
|
|
4997
|
-
function
|
|
5001
|
+
function la(e) {
|
|
4998
5002
|
if (typeof document > "u") return;
|
|
4999
5003
|
const r = e ?? document.documentElement;
|
|
5000
5004
|
for (const o of xi)
|
|
@@ -5102,7 +5106,7 @@ function yi(e, r) {
|
|
|
5102
5106
|
enableTabsIndicator: e.enableTabsIndicator,
|
|
5103
5107
|
enablePaginationFlip: e.enablePaginationFlip,
|
|
5104
5108
|
enableSelectionFill: e.enableSelectionFill
|
|
5105
|
-
}),
|
|
5109
|
+
}), ao(r, {
|
|
5106
5110
|
surfaceTransitionDuration: e.surfaceTransitionDuration
|
|
5107
5111
|
}));
|
|
5108
5112
|
}
|
|
@@ -5112,15 +5116,15 @@ function wi(e, r) {
|
|
|
5112
5116
|
e.theme === "light" ? o.dataset.theme = "light" : delete o.dataset.theme, L(
|
|
5113
5117
|
o,
|
|
5114
5118
|
"--space",
|
|
5115
|
-
e.space !== n.space ?
|
|
5119
|
+
e.space !== n.space ? ae(e.space) : null
|
|
5116
5120
|
), L(
|
|
5117
5121
|
o,
|
|
5118
5122
|
"--size",
|
|
5119
|
-
e.size !== n.size ?
|
|
5123
|
+
e.size !== n.size ? ae(e.size) : null
|
|
5120
5124
|
), L(
|
|
5121
5125
|
o,
|
|
5122
5126
|
"--radius",
|
|
5123
|
-
e.radius !== n.radius ?
|
|
5127
|
+
e.radius !== n.radius ? ae(e.radius) : null
|
|
5124
5128
|
), L(
|
|
5125
5129
|
o,
|
|
5126
5130
|
"--border-width",
|
|
@@ -5159,8 +5163,8 @@ function wi(e, r) {
|
|
|
5159
5163
|
}
|
|
5160
5164
|
function Si(e) {
|
|
5161
5165
|
const r = be(e.theme), o = [":root {"];
|
|
5162
|
-
e.space !== r.space && o.push(` --space: ${
|
|
5163
|
-
for (const [n, i] of Object.entries(
|
|
5166
|
+
e.space !== r.space && o.push(` --space: ${ae(e.space)};`), e.size !== r.size && o.push(` --size: ${ae(e.size)};`), e.radius !== r.radius && o.push(` --radius: ${ae(e.radius)};`), e.borderWidth !== r.borderWidth && o.push(` --border-width: ${Ae(e.borderWidth)};`), e.focusRingWidth !== r.focusRingWidth && o.push(` --focus-ring-width: ${Ae(e.focusRingWidth)};`), e.focusRingOffset !== r.focusRingOffset && o.push(` --focus-ring-offset: ${e.focusRingOffset}px;`), e.fontFamily !== r.fontFamily && o.push(` --font-family-sans: ${e.fontFamily};`), e.fontFamilyMono !== r.fontFamilyMono && o.push(` --font-family-mono: ${e.fontFamilyMono};`);
|
|
5167
|
+
for (const [n, i] of Object.entries(sr))
|
|
5164
5168
|
e.fontWeights[n] !== r.fontWeights[n] && o.push(` ${i}: ${e.fontWeights[n]};`);
|
|
5165
5169
|
if ((e.shadowStrength !== r.shadowStrength || e.shadowSize !== r.shadowSize) && (o.push(` --shadow-size: ${e.shadowSize};`), o.push(` --shadow-none: ${$("base", e.theme, 0)};`), o.push(
|
|
5166
5170
|
` --shadow-base: ${$("base", e.theme, e.shadowStrength)};`
|
|
@@ -5170,9 +5174,9 @@ function Si(e) {
|
|
|
5170
5174
|
` --shadow-large: ${$("large", e.theme, e.shadowStrength)};`
|
|
5171
5175
|
)), e.toastScrimSize !== r.toastScrimSize && o.push(` --toast-scrim-size: ${e.toastScrimSize};`), e.toastScrimDensity !== r.toastScrimDensity && o.push(` --toast-scrim-density: ${e.toastScrimDensity};`), e.surfaceTransitionDuration !== r.surfaceTransitionDuration && o.push(` --motion-surface-duration: ${e.surfaceTransitionDuration}ms;`), e.textScale !== r.textScale)
|
|
5172
5176
|
for (const n of Object.keys(ce)) {
|
|
5173
|
-
const { size: i, line: t } = ce[n],
|
|
5174
|
-
o.push(` --text-scale-${n}: ${
|
|
5175
|
-
` --text-scale-${n}--line-height: calc(${
|
|
5177
|
+
const { size: i, line: t } = ce[n], s = i * e.textScale, a = t * e.textScale;
|
|
5178
|
+
o.push(` --text-scale-${n}: ${s}rem;`), o.push(
|
|
5179
|
+
` --text-scale-${n}--line-height: calc(${a}rem / ${s}rem);`
|
|
5176
5180
|
);
|
|
5177
5181
|
}
|
|
5178
5182
|
for (const [n, i] of Object.entries(fr))
|
|
@@ -5182,8 +5186,8 @@ function Si(e) {
|
|
|
5182
5186
|
}
|
|
5183
5187
|
const To = "burne-ui-theme";
|
|
5184
5188
|
function ko(e, r) {
|
|
5185
|
-
var
|
|
5186
|
-
const o = be(r), n = e.tokens ?? {}, i = (
|
|
5189
|
+
var a;
|
|
5190
|
+
const o = be(r), n = e.tokens ?? {}, i = (a = e.colors) == null ? void 0 : a[r], t = i ? { ...o.colors, ...i } : o.colors, s = n.shadowStrength ?? o.shadowStrength;
|
|
5187
5191
|
return {
|
|
5188
5192
|
...o,
|
|
5189
5193
|
...Do({
|
|
@@ -5200,7 +5204,7 @@ function ko(e, r) {
|
|
|
5200
5204
|
toastScrimSize: n.toastScrimSize,
|
|
5201
5205
|
toastScrimDensity: n.toastScrimDensity
|
|
5202
5206
|
}),
|
|
5203
|
-
shadowStrength:
|
|
5207
|
+
shadowStrength: s,
|
|
5204
5208
|
fontWeights: n.fontWeights ? { ...o.fontWeights, ...n.fontWeights } : o.fontWeights,
|
|
5205
5209
|
colors: t,
|
|
5206
5210
|
modePalettes: {
|
|
@@ -5305,17 +5309,17 @@ function Eo(e, r) {
|
|
|
5305
5309
|
const Pe = /* @__PURE__ */ new WeakMap();
|
|
5306
5310
|
function Ei(e, r, o) {
|
|
5307
5311
|
const n = Eo(e, o), i = new Set(Object.keys(n)), t = Pe.get(r) ?? /* @__PURE__ */ new Map();
|
|
5308
|
-
t.forEach((
|
|
5309
|
-
i.has(
|
|
5312
|
+
t.forEach((s, a) => {
|
|
5313
|
+
i.has(a) || (s.value ? r.style.setProperty(a, s.value, s.priority) : r.style.removeProperty(a), t.delete(a));
|
|
5310
5314
|
});
|
|
5311
|
-
for (const [
|
|
5312
|
-
t.has(
|
|
5313
|
-
value: r.style.getPropertyValue(
|
|
5314
|
-
priority: r.style.getPropertyPriority(
|
|
5315
|
-
}), r.style.setProperty(
|
|
5315
|
+
for (const [s, a] of Object.entries(n))
|
|
5316
|
+
t.has(s) || t.set(s, {
|
|
5317
|
+
value: r.style.getPropertyValue(s),
|
|
5318
|
+
priority: r.style.getPropertyPriority(s)
|
|
5319
|
+
}), r.style.setProperty(s, a);
|
|
5316
5320
|
Pe.set(r, t);
|
|
5317
5321
|
}
|
|
5318
|
-
function
|
|
5322
|
+
function ca(e) {
|
|
5319
5323
|
var o;
|
|
5320
5324
|
if (typeof document > "u") return;
|
|
5321
5325
|
const r = e ?? document.documentElement;
|
|
@@ -5329,7 +5333,7 @@ function Di(e) {
|
|
|
5329
5333
|
storageKey: (e == null ? void 0 : e.storageKey) === void 0 ? To : e.storageKey
|
|
5330
5334
|
};
|
|
5331
5335
|
}
|
|
5332
|
-
function
|
|
5336
|
+
function ua(e) {
|
|
5333
5337
|
const r = (e == null ? void 0 : e.exportName) ?? "burneTheme", o = Me(Di(), 0);
|
|
5334
5338
|
return [
|
|
5335
5339
|
"/**",
|
|
@@ -5352,7 +5356,7 @@ function ls(e) {
|
|
|
5352
5356
|
].join(`
|
|
5353
5357
|
`);
|
|
5354
5358
|
}
|
|
5355
|
-
function
|
|
5359
|
+
function da(e, r = "dark") {
|
|
5356
5360
|
const o = be(r);
|
|
5357
5361
|
return e ? {
|
|
5358
5362
|
...o,
|
|
@@ -5392,17 +5396,17 @@ function Fi(e, r, o = mr(e.theme)) {
|
|
|
5392
5396
|
function mr(e = "system") {
|
|
5393
5397
|
return e === "light" || e === "dark" ? e : typeof window < "u" && window.matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
|
|
5394
5398
|
}
|
|
5395
|
-
function
|
|
5399
|
+
function fa(e, r, o = "dark") {
|
|
5396
5400
|
Fi({ theme: o, tokens: e }, r, o);
|
|
5397
5401
|
}
|
|
5398
|
-
function
|
|
5402
|
+
function ga(e) {
|
|
5399
5403
|
const r = mr(e.theme), o = ko(e, r), n = Si(o), i = Eo(e.customTokens, r), t = Object.entries(i);
|
|
5400
5404
|
if (t.length === 0) return n;
|
|
5401
|
-
const
|
|
5405
|
+
const s = t.map(([a, d]) => ` ${a}: ${d};`).join(`
|
|
5402
5406
|
`);
|
|
5403
5407
|
return n.replace(/\n}(\n|$)/, `
|
|
5404
5408
|
/* Custom project tokens */
|
|
5405
|
-
${
|
|
5409
|
+
${s}
|
|
5406
5410
|
}$1`);
|
|
5407
5411
|
}
|
|
5408
5412
|
function Me(e, r) {
|
|
@@ -5417,11 +5421,11 @@ ${e.map((t) => `${n}${Me(t, r + 1)}`).join(`,
|
|
|
5417
5421
|
${o}]`;
|
|
5418
5422
|
if (typeof e == "object") {
|
|
5419
5423
|
const i = Object.entries(e).filter(
|
|
5420
|
-
([,
|
|
5424
|
+
([, s]) => s !== void 0
|
|
5421
5425
|
);
|
|
5422
5426
|
return i.length === 0 ? "{}" : `{
|
|
5423
5427
|
${i.map(
|
|
5424
|
-
([
|
|
5428
|
+
([s, a]) => `${n}${Ci(s)}: ${Me(a, r + 1)}`
|
|
5425
5429
|
).join(`,
|
|
5426
5430
|
`)},
|
|
5427
5431
|
${o}}`;
|
|
@@ -5431,7 +5435,7 @@ ${o}}`;
|
|
|
5431
5435
|
function Ci(e) {
|
|
5432
5436
|
return /^[A-Za-z_$][\w$]*$/.test(e) ? e : JSON.stringify(e);
|
|
5433
5437
|
}
|
|
5434
|
-
function
|
|
5438
|
+
function ma(e, r) {
|
|
5435
5439
|
const o = (r == null ? void 0 : r.exportName) ?? "burneTheme", n = Me(e, 0);
|
|
5436
5440
|
return [
|
|
5437
5441
|
"/**",
|
|
@@ -5477,7 +5481,7 @@ function Ii(e, r) {
|
|
|
5477
5481
|
const o = r ?? document.documentElement;
|
|
5478
5482
|
e === "light" ? o.dataset.theme = "light" : delete o.dataset.theme;
|
|
5479
5483
|
}
|
|
5480
|
-
function
|
|
5484
|
+
function pa({
|
|
5481
5485
|
children: e,
|
|
5482
5486
|
theme: r,
|
|
5483
5487
|
defaultTheme: o = "dark",
|
|
@@ -5485,9 +5489,9 @@ function gs({
|
|
|
5485
5489
|
root: i = null,
|
|
5486
5490
|
onThemeChange: t
|
|
5487
5491
|
}) {
|
|
5488
|
-
const [
|
|
5492
|
+
const [s, a] = Ze(() => Oi(n) ?? o), [d, c] = Ze(0), p = r ?? s, m = J(() => mr(p), [p, d]), w = D(
|
|
5489
5493
|
(y) => {
|
|
5490
|
-
r === void 0 &&
|
|
5494
|
+
r === void 0 && a(y), _i(n, y), t == null || t(y);
|
|
5491
5495
|
},
|
|
5492
5496
|
[r, n, t]
|
|
5493
5497
|
);
|
|
@@ -5507,196 +5511,198 @@ function gs({
|
|
|
5507
5511
|
);
|
|
5508
5512
|
return Hr(pr.Provider, { value: h }, e);
|
|
5509
5513
|
}
|
|
5510
|
-
function
|
|
5514
|
+
function ba() {
|
|
5511
5515
|
const e = Ne(pr);
|
|
5512
5516
|
if (!e)
|
|
5513
5517
|
throw new Error("useBurneTheme must be used within ThemeProvider or BurneUIProvider.");
|
|
5514
5518
|
return e;
|
|
5515
5519
|
}
|
|
5516
|
-
function
|
|
5520
|
+
function ha() {
|
|
5517
5521
|
return Ne(pr);
|
|
5518
5522
|
}
|
|
5519
5523
|
const br = $r(null);
|
|
5520
|
-
function
|
|
5524
|
+
function va({
|
|
5521
5525
|
children: e,
|
|
5522
5526
|
value: r
|
|
5523
5527
|
}) {
|
|
5524
5528
|
return Hr(br.Provider, { value: r }, e);
|
|
5525
5529
|
}
|
|
5526
|
-
function
|
|
5530
|
+
function xa() {
|
|
5527
5531
|
const e = Ne(br);
|
|
5528
5532
|
if (!e)
|
|
5529
5533
|
throw new Error("useBurneThemeRuntime must be used within BurneUIProvider.");
|
|
5530
5534
|
return e;
|
|
5531
5535
|
}
|
|
5532
|
-
function
|
|
5536
|
+
function ya() {
|
|
5533
5537
|
return Ne(br);
|
|
5534
5538
|
}
|
|
5535
5539
|
export {
|
|
5536
|
-
|
|
5540
|
+
ps as $,
|
|
5537
5541
|
qt as A,
|
|
5538
5542
|
Ut as B,
|
|
5539
5543
|
fr as C,
|
|
5540
5544
|
ti as D,
|
|
5541
5545
|
jt as E,
|
|
5542
5546
|
Kt as F,
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5547
|
+
$s as G,
|
|
5548
|
+
_s as H,
|
|
5549
|
+
Is as I,
|
|
5550
|
+
ca as J,
|
|
5551
|
+
la as K,
|
|
5548
5552
|
ii as L,
|
|
5549
5553
|
ir as M,
|
|
5550
|
-
|
|
5554
|
+
Os as N,
|
|
5551
5555
|
fo as O,
|
|
5552
|
-
|
|
5556
|
+
ns as P,
|
|
5553
5557
|
Di as Q,
|
|
5554
5558
|
be as R,
|
|
5555
|
-
|
|
5559
|
+
si as S,
|
|
5556
5560
|
ce as T,
|
|
5557
5561
|
gr as U,
|
|
5558
5562
|
Wn as V,
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5563
|
+
ma as W,
|
|
5564
|
+
ga as X,
|
|
5565
|
+
ua as Y,
|
|
5562
5566
|
Si as Z,
|
|
5563
|
-
|
|
5567
|
+
Qs as _,
|
|
5564
5568
|
le as a,
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5569
|
+
ie as a$,
|
|
5570
|
+
ae as a0,
|
|
5571
|
+
ar as a1,
|
|
5572
|
+
ds as a2,
|
|
5573
|
+
A as a3,
|
|
5574
|
+
da as a4,
|
|
5575
|
+
aa as a5,
|
|
5576
|
+
Be as a6,
|
|
5577
|
+
ia as a7,
|
|
5578
|
+
us as a8,
|
|
5579
|
+
Ar as a9,
|
|
5576
5580
|
mt as aA,
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5581
|
+
ze as aB,
|
|
5582
|
+
xs as aC,
|
|
5583
|
+
Ui as aD,
|
|
5584
|
+
Gs as aE,
|
|
5585
|
+
Bs as aF,
|
|
5586
|
+
Ns as aG,
|
|
5587
|
+
ws as aH,
|
|
5588
|
+
Ms as aI,
|
|
5589
|
+
Ps as aJ,
|
|
5590
|
+
As as aK,
|
|
5591
|
+
zs as aL,
|
|
5592
|
+
Hs as aM,
|
|
5593
|
+
Rs as aN,
|
|
5594
|
+
ks as aO,
|
|
5595
|
+
U as aP,
|
|
5596
|
+
uo as aQ,
|
|
5597
|
+
Zi as aR,
|
|
5598
|
+
Ls as aS,
|
|
5599
|
+
Ts as aT,
|
|
5600
|
+
Es as aU,
|
|
5601
|
+
Ds as aV,
|
|
5602
|
+
Ws as aW,
|
|
5603
|
+
ys as aX,
|
|
5604
|
+
Ss as aY,
|
|
5605
|
+
Fs as aZ,
|
|
5606
|
+
Cs as a_,
|
|
5607
|
+
Eo as aa,
|
|
5608
|
+
mr as ab,
|
|
5609
|
+
ko as ac,
|
|
5610
|
+
xo as ad,
|
|
5611
|
+
pe as ae,
|
|
5612
|
+
He as af,
|
|
5613
|
+
cs as ag,
|
|
5614
|
+
Kn as ah,
|
|
5615
|
+
or as ai,
|
|
5616
|
+
P as aj,
|
|
5617
|
+
Ti as ak,
|
|
5618
|
+
xa as al,
|
|
5619
|
+
ya as am,
|
|
5620
|
+
mo as an,
|
|
5621
|
+
ts as ao,
|
|
5622
|
+
oa as ap,
|
|
5623
|
+
nt as aq,
|
|
5624
|
+
bs as ar,
|
|
5625
|
+
Gi as as,
|
|
5626
|
+
bt as at,
|
|
5627
|
+
hs as au,
|
|
5628
|
+
S as av,
|
|
5629
|
+
x as aw,
|
|
5630
|
+
G as ax,
|
|
5631
|
+
Ge as ay,
|
|
5632
|
+
vo as az,
|
|
5633
|
+
os as b,
|
|
5634
|
+
Tt as b0,
|
|
5635
|
+
bo as b1,
|
|
5636
|
+
Yi as b2,
|
|
5637
|
+
gs as b3,
|
|
5638
|
+
De as b4,
|
|
5639
|
+
pt as b5,
|
|
5640
|
+
qi as b6,
|
|
5641
|
+
wt as b7,
|
|
5642
|
+
ji as b8,
|
|
5643
|
+
ra as b9,
|
|
5644
|
+
va as bA,
|
|
5645
|
+
jn as bB,
|
|
5646
|
+
to as bC,
|
|
5647
|
+
go as bD,
|
|
5648
|
+
as as bE,
|
|
5649
|
+
is as bF,
|
|
5650
|
+
Pi as bG,
|
|
5651
|
+
Bn as bH,
|
|
5652
|
+
ls as bI,
|
|
5653
|
+
ss as bJ,
|
|
5654
|
+
Wi as bK,
|
|
5655
|
+
Ni as bL,
|
|
5656
|
+
Bi as bM,
|
|
5657
|
+
ha as bN,
|
|
5658
|
+
Js as ba,
|
|
5659
|
+
ms as bb,
|
|
5660
|
+
Zs as bc,
|
|
5661
|
+
Vs as bd,
|
|
5662
|
+
vs as be,
|
|
5663
|
+
Xt as bf,
|
|
5664
|
+
js as bg,
|
|
5665
|
+
Xs as bh,
|
|
5666
|
+
Us as bi,
|
|
5667
|
+
Ks as bj,
|
|
5668
|
+
Ys as bk,
|
|
5669
|
+
Vi as bl,
|
|
5670
|
+
Hi as bm,
|
|
5671
|
+
$i as bn,
|
|
5672
|
+
rs as bo,
|
|
5673
|
+
es as bp,
|
|
5674
|
+
Xi as bq,
|
|
5675
|
+
Ji as br,
|
|
5676
|
+
Qi as bs,
|
|
5677
|
+
Ki as bt,
|
|
5678
|
+
yt as bu,
|
|
5679
|
+
vt as bv,
|
|
5680
|
+
ht as bw,
|
|
5681
|
+
To as bx,
|
|
5682
|
+
pa as by,
|
|
5683
|
+
ba as bz,
|
|
5678
5684
|
li as c,
|
|
5679
5685
|
ci as d,
|
|
5680
|
-
|
|
5681
|
-
|
|
5686
|
+
ea as e,
|
|
5687
|
+
sr as f,
|
|
5682
5688
|
qn as g,
|
|
5683
5689
|
Nn as h,
|
|
5684
|
-
|
|
5690
|
+
ai as i,
|
|
5685
5691
|
On as j,
|
|
5686
5692
|
ur as k,
|
|
5687
5693
|
Cn as l,
|
|
5688
5694
|
Mi as m,
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5695
|
+
sa as n,
|
|
5696
|
+
na as o,
|
|
5697
|
+
ta as p,
|
|
5692
5698
|
Le as q,
|
|
5693
|
-
|
|
5699
|
+
fs as r,
|
|
5694
5700
|
Fi as s,
|
|
5695
5701
|
Ei as t,
|
|
5696
|
-
|
|
5702
|
+
ao as u,
|
|
5697
5703
|
Ii as v,
|
|
5698
5704
|
wi as w,
|
|
5699
|
-
|
|
5700
|
-
|
|
5705
|
+
fa as x,
|
|
5706
|
+
qs as y,
|
|
5701
5707
|
Vt as z
|
|
5702
5708
|
};
|