wg-design 0.0.2 → 0.0.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/index.cjs +4 -2
- package/dist/index.mjs +1122 -646
- package/dist/src/components/Switch/switch.d.ts +4 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/wg-design.css +1 -1
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { createElement as t } from "react";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
//#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
5
|
-
function
|
|
5
|
+
function i() {
|
|
6
6
|
return typeof window < "u";
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function a(e) {
|
|
9
9
|
var t;
|
|
10
10
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return
|
|
12
|
+
function o(e) {
|
|
13
|
+
return i() ? e instanceof Element || e instanceof a(e).Element : !1;
|
|
14
|
+
}
|
|
15
|
+
function s(e) {
|
|
16
|
+
return i() ? e instanceof HTMLElement || e instanceof a(e).HTMLElement : !1;
|
|
14
17
|
}
|
|
15
18
|
//#endregion
|
|
16
19
|
//#region node_modules/@base-ui/utils/esm/useRefWithInit.js
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
let r = e.useRef(
|
|
20
|
-
return r.current ===
|
|
20
|
+
var c = {};
|
|
21
|
+
function l(t, n) {
|
|
22
|
+
let r = e.useRef(c);
|
|
23
|
+
return r.current === c && (r.current = t(n)), r;
|
|
21
24
|
}
|
|
22
25
|
//#endregion
|
|
23
26
|
//#region node_modules/@base-ui/utils/esm/useStableCallback.js
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
let t =
|
|
27
|
-
return t.next = e,
|
|
27
|
+
var u = e[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], d = u && u !== e.useLayoutEffect ? u : (e) => e();
|
|
28
|
+
function f(e) {
|
|
29
|
+
let t = l(p).current;
|
|
30
|
+
return t.next = e, d(t.effect), t.trampoline;
|
|
28
31
|
}
|
|
29
|
-
function
|
|
32
|
+
function p() {
|
|
30
33
|
let e = {
|
|
31
34
|
next: void 0,
|
|
32
|
-
callback:
|
|
35
|
+
callback: m,
|
|
33
36
|
trampoline: (...t) => e.callback?.(...t),
|
|
34
37
|
effect: () => {
|
|
35
38
|
e.callback = e.next;
|
|
@@ -37,25 +40,25 @@ function d() {
|
|
|
37
40
|
};
|
|
38
41
|
return e;
|
|
39
42
|
}
|
|
40
|
-
function
|
|
43
|
+
function m() {
|
|
41
44
|
if (process.env.NODE_ENV !== "production") throw Error("Base UI: Cannot call an event handler while rendering.");
|
|
42
45
|
}
|
|
43
46
|
//#endregion
|
|
44
47
|
//#region node_modules/@base-ui/utils/esm/error.js
|
|
45
|
-
var
|
|
46
|
-
process.env.NODE_ENV !== "production" && (
|
|
47
|
-
function
|
|
48
|
+
var h;
|
|
49
|
+
process.env.NODE_ENV !== "production" && (h = /* @__PURE__ */ new Set());
|
|
50
|
+
function g(...e) {
|
|
48
51
|
if (process.env.NODE_ENV !== "production") {
|
|
49
52
|
let t = e.join(" ");
|
|
50
|
-
|
|
53
|
+
h.has(t) || (h.add(t), console.error(`Base UI: ${t}`));
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
56
|
//#endregion
|
|
54
57
|
//#region node_modules/@base-ui/utils/esm/safeReact.js
|
|
55
|
-
var
|
|
58
|
+
var _ = { ...e }, v = typeof document < "u" ? e.useLayoutEffect : () => {};
|
|
56
59
|
//#endregion
|
|
57
60
|
//#region node_modules/@base-ui/utils/esm/mergeObjects.js
|
|
58
|
-
function
|
|
61
|
+
function y(e, t) {
|
|
59
62
|
if (e && !t) return e;
|
|
60
63
|
if (!e && t) return t;
|
|
61
64
|
if (e || t) return {
|
|
@@ -65,107 +68,107 @@ function g(e, t) {
|
|
|
65
68
|
}
|
|
66
69
|
//#endregion
|
|
67
70
|
//#region node_modules/@base-ui/react/esm/merge-props/mergeProps.js
|
|
68
|
-
var
|
|
69
|
-
function
|
|
70
|
-
if (!n && !r && !i && !e) return
|
|
71
|
-
let a =
|
|
72
|
-
return t && (a =
|
|
71
|
+
var ee = {};
|
|
72
|
+
function b(e, t, n, r, i) {
|
|
73
|
+
if (!n && !r && !i && !e) return x(t);
|
|
74
|
+
let a = x(e);
|
|
75
|
+
return t && (a = S(a, t)), n && (a = S(a, n)), r && (a = S(a, r)), i && (a = S(a, i)), a;
|
|
73
76
|
}
|
|
74
77
|
function te(e) {
|
|
75
|
-
if (e.length === 0) return
|
|
76
|
-
if (e.length === 1) return
|
|
77
|
-
let t =
|
|
78
|
-
for (let n = 1; n < e.length; n += 1) t =
|
|
78
|
+
if (e.length === 0) return ee;
|
|
79
|
+
if (e.length === 1) return x(e[0]);
|
|
80
|
+
let t = x(e[0]);
|
|
81
|
+
for (let n = 1; n < e.length; n += 1) t = S(t, e[n]);
|
|
79
82
|
return t;
|
|
80
83
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
84
|
+
function x(e) {
|
|
85
|
+
return T(e) ? { ...re(e, ee) } : C(e);
|
|
83
86
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
87
|
+
function S(e, t) {
|
|
88
|
+
return T(t) ? re(t, e) : ne(e, t);
|
|
86
89
|
}
|
|
87
|
-
function
|
|
90
|
+
function C(e) {
|
|
88
91
|
let t = { ...e };
|
|
89
92
|
for (let e in t) {
|
|
90
93
|
let n = t[e];
|
|
91
|
-
|
|
94
|
+
w(e, n) && (t[e] = E(n));
|
|
92
95
|
}
|
|
93
96
|
return t;
|
|
94
97
|
}
|
|
95
|
-
function
|
|
98
|
+
function ne(e, t) {
|
|
96
99
|
if (!t) return e;
|
|
97
100
|
for (let n in t) {
|
|
98
101
|
let r = t[n];
|
|
99
102
|
switch (n) {
|
|
100
103
|
case "style":
|
|
101
|
-
e[n] =
|
|
104
|
+
e[n] = y(e.style, r);
|
|
102
105
|
break;
|
|
103
106
|
case "className":
|
|
104
|
-
e[n] =
|
|
107
|
+
e[n] = O(e.className, r);
|
|
105
108
|
break;
|
|
106
|
-
default:
|
|
109
|
+
default: w(n, r) ? e[n] = ie(e[n], r) : e[n] = r;
|
|
107
110
|
}
|
|
108
111
|
}
|
|
109
112
|
return e;
|
|
110
113
|
}
|
|
111
|
-
function
|
|
114
|
+
function w(e, t) {
|
|
112
115
|
let n = e.charCodeAt(0), r = e.charCodeAt(1), i = e.charCodeAt(2);
|
|
113
116
|
return n === 111 && r === 110 && i >= 65 && i <= 90 && (typeof t == "function" || t === void 0);
|
|
114
117
|
}
|
|
115
|
-
function
|
|
118
|
+
function T(e) {
|
|
116
119
|
return typeof e == "function";
|
|
117
120
|
}
|
|
118
121
|
function re(e, t) {
|
|
119
|
-
return
|
|
122
|
+
return T(e) ? e(t) : e ?? ee;
|
|
120
123
|
}
|
|
121
|
-
function
|
|
124
|
+
function ie(e, t) {
|
|
122
125
|
return t ? e ? (...n) => {
|
|
123
126
|
let r = n[0];
|
|
124
|
-
if (
|
|
127
|
+
if (ae(r)) {
|
|
125
128
|
let i = r;
|
|
126
|
-
|
|
129
|
+
D(i);
|
|
127
130
|
let a = t(...n);
|
|
128
131
|
return i.baseUIHandlerPrevented || e?.(...n), a;
|
|
129
132
|
}
|
|
130
133
|
let i = t(...n);
|
|
131
134
|
return e?.(...n), i;
|
|
132
|
-
} :
|
|
135
|
+
} : E(t) : e;
|
|
133
136
|
}
|
|
134
|
-
function
|
|
137
|
+
function E(e) {
|
|
135
138
|
return e && ((...t) => {
|
|
136
139
|
let n = t[0];
|
|
137
|
-
return
|
|
140
|
+
return ae(n) && D(n), e(...t);
|
|
138
141
|
});
|
|
139
142
|
}
|
|
140
|
-
function
|
|
143
|
+
function D(e) {
|
|
141
144
|
return e.preventBaseUIHandler = () => {
|
|
142
145
|
e.baseUIHandlerPrevented = !0;
|
|
143
146
|
}, e;
|
|
144
147
|
}
|
|
145
|
-
function
|
|
148
|
+
function O(e, t) {
|
|
146
149
|
return t ? e ? t + " " + e : t : e;
|
|
147
150
|
}
|
|
148
|
-
function
|
|
151
|
+
function ae(e) {
|
|
149
152
|
return typeof e == "object" && !!e && "nativeEvent" in e;
|
|
150
153
|
}
|
|
151
154
|
//#endregion
|
|
152
155
|
//#region node_modules/@base-ui/utils/esm/formatErrorMessage.js
|
|
153
|
-
function
|
|
156
|
+
function oe(e, t) {
|
|
154
157
|
return function(n, ...r) {
|
|
155
158
|
let i = new URL(e);
|
|
156
159
|
return i.searchParams.set("code", n.toString()), r.forEach((e) => i.searchParams.append("args[]", e)), `${t} error #${n}; visit ${i} for the full message.`;
|
|
157
160
|
};
|
|
158
161
|
}
|
|
159
|
-
var k =
|
|
162
|
+
var k = oe("https://base-ui.com/production-error", "Base UI"), A = /* @__PURE__ */ e.createContext(void 0);
|
|
160
163
|
process.env.NODE_ENV !== "production" && (A.displayName = "CompositeRootContext");
|
|
161
|
-
function
|
|
164
|
+
function se(t = !1) {
|
|
162
165
|
let n = e.useContext(A);
|
|
163
166
|
if (n === void 0 && !t) throw Error(process.env.NODE_ENV === "production" ? k(16) : "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");
|
|
164
167
|
return n;
|
|
165
168
|
}
|
|
166
169
|
//#endregion
|
|
167
170
|
//#region node_modules/@base-ui/react/esm/utils/useFocusableWhenDisabled.js
|
|
168
|
-
function
|
|
171
|
+
function j(t) {
|
|
169
172
|
let { focusableWhenDisabled: n, disabled: r, composite: i = !1, tabIndex: a = 0, isNativeButton: o } = t, s = i && n !== !1, c = i && n === !1;
|
|
170
173
|
return { props: e.useMemo(() => {
|
|
171
174
|
let e = { onKeyDown(e) {
|
|
@@ -184,8 +187,8 @@ function ae(t) {
|
|
|
184
187
|
}
|
|
185
188
|
//#endregion
|
|
186
189
|
//#region node_modules/@base-ui/react/esm/internals/use-button/useButton.js
|
|
187
|
-
function
|
|
188
|
-
let { disabled: n = !1, focusableWhenDisabled: r, tabIndex: i = 0, native: a = !0, composite: o } = t, s = e.useRef(null), c =
|
|
190
|
+
function ce(t = {}) {
|
|
191
|
+
let { disabled: n = !1, focusableWhenDisabled: r, tabIndex: i = 0, native: a = !0, composite: o } = t, s = e.useRef(null), c = se(!0), l = o ?? c !== void 0, { props: u } = j({
|
|
189
192
|
focusableWhenDisabled: r,
|
|
190
193
|
disabled: n,
|
|
191
194
|
composite: l,
|
|
@@ -195,20 +198,20 @@ function oe(t = {}) {
|
|
|
195
198
|
process.env.NODE_ENV !== "production" && e.useEffect(() => {
|
|
196
199
|
if (!s.current) return;
|
|
197
200
|
let e = M(s.current);
|
|
198
|
-
a ? e ||
|
|
201
|
+
a ? e || g(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${_.captureOwnerStack?.() || ""}`) : e && g(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${_.captureOwnerStack?.() || ""}`);
|
|
199
202
|
}, [a]);
|
|
200
|
-
let
|
|
203
|
+
let d = e.useCallback(() => {
|
|
201
204
|
let e = s.current;
|
|
202
|
-
M(e) && l && n &&
|
|
205
|
+
M(e) && l && n && u.disabled === void 0 && e.disabled && (e.disabled = !1);
|
|
203
206
|
}, [
|
|
204
207
|
n,
|
|
205
|
-
|
|
208
|
+
u.disabled,
|
|
206
209
|
l
|
|
207
210
|
]);
|
|
208
|
-
return
|
|
211
|
+
return v(d, [d]), {
|
|
209
212
|
getButtonProps: e.useCallback((e = {}) => {
|
|
210
213
|
let { onClick: t, onMouseDown: r, onKeyUp: i, onKeyDown: o, onPointerDown: s, ...c } = e;
|
|
211
|
-
return
|
|
214
|
+
return b({
|
|
212
215
|
type: a ? "button" : void 0,
|
|
213
216
|
onClick(e) {
|
|
214
217
|
if (n) {
|
|
@@ -221,8 +224,8 @@ function oe(t = {}) {
|
|
|
221
224
|
n || r?.(e);
|
|
222
225
|
},
|
|
223
226
|
onKeyDown(e) {
|
|
224
|
-
if (n || (
|
|
225
|
-
let r = e.target === e.currentTarget, i = e.currentTarget, s = M(i), c = !a &&
|
|
227
|
+
if (n || (D(e), o?.(e), e.baseUIHandlerPrevented)) return;
|
|
228
|
+
let r = e.target === e.currentTarget, i = e.currentTarget, s = M(i), c = !a && N(i), u = r && (a ? s : !c), d = e.key === "Enter", f = e.key === " ", p = i.getAttribute("role"), m = p?.startsWith("menuitem") || p === "option" || p === "gridcell";
|
|
226
229
|
if (r && l && f) {
|
|
227
230
|
if (e.defaultPrevented && m) return;
|
|
228
231
|
e.preventDefault(), c || a && s ? (i.click(), e.preventBaseUIHandler()) : u && (t?.(e), e.preventBaseUIHandler());
|
|
@@ -232,7 +235,7 @@ function oe(t = {}) {
|
|
|
232
235
|
},
|
|
233
236
|
onKeyUp(e) {
|
|
234
237
|
if (!n) {
|
|
235
|
-
if (
|
|
238
|
+
if (D(e), i?.(e), e.target === e.currentTarget && a && l && M(e.currentTarget) && e.key === " ") {
|
|
236
239
|
e.preventDefault();
|
|
237
240
|
return;
|
|
238
241
|
}
|
|
@@ -246,53 +249,53 @@ function oe(t = {}) {
|
|
|
246
249
|
}
|
|
247
250
|
s?.(e);
|
|
248
251
|
}
|
|
249
|
-
}, a ? void 0 : { role: "button" },
|
|
252
|
+
}, a ? void 0 : { role: "button" }, u, c);
|
|
250
253
|
}, [
|
|
251
254
|
n,
|
|
252
|
-
|
|
255
|
+
u,
|
|
253
256
|
l,
|
|
254
257
|
a
|
|
255
258
|
]),
|
|
256
|
-
buttonRef:
|
|
257
|
-
s.current = e,
|
|
259
|
+
buttonRef: f((e) => {
|
|
260
|
+
s.current = e, d();
|
|
258
261
|
})
|
|
259
262
|
};
|
|
260
263
|
}
|
|
261
264
|
function M(e) {
|
|
262
|
-
return
|
|
265
|
+
return s(e) && e.tagName === "BUTTON";
|
|
263
266
|
}
|
|
264
|
-
function
|
|
267
|
+
function N(e) {
|
|
265
268
|
return !!(e?.tagName === "A" && e?.href);
|
|
266
269
|
}
|
|
267
270
|
//#endregion
|
|
268
271
|
//#region node_modules/@base-ui/utils/esm/useMergedRefs.js
|
|
269
|
-
function
|
|
270
|
-
let i =
|
|
271
|
-
return
|
|
272
|
+
function P(e, t, n, r) {
|
|
273
|
+
let i = l(I).current;
|
|
274
|
+
return L(i, e, t, n, r) && z(i, [
|
|
272
275
|
e,
|
|
273
276
|
t,
|
|
274
277
|
n,
|
|
275
278
|
r
|
|
276
279
|
]), i.callback;
|
|
277
280
|
}
|
|
278
|
-
function
|
|
279
|
-
let t =
|
|
280
|
-
return
|
|
281
|
+
function F(e) {
|
|
282
|
+
let t = l(I).current;
|
|
283
|
+
return R(t, e) && z(t, e), t.callback;
|
|
281
284
|
}
|
|
282
|
-
function
|
|
285
|
+
function I() {
|
|
283
286
|
return {
|
|
284
287
|
callback: null,
|
|
285
288
|
cleanup: null,
|
|
286
289
|
refs: []
|
|
287
290
|
};
|
|
288
291
|
}
|
|
289
|
-
function
|
|
292
|
+
function L(e, t, n, r, i) {
|
|
290
293
|
return e.refs[0] !== t || e.refs[1] !== n || e.refs[2] !== r || e.refs[3] !== i;
|
|
291
294
|
}
|
|
292
|
-
function
|
|
295
|
+
function R(e, t) {
|
|
293
296
|
return e.refs.length !== t.length || e.refs.some((e, n) => e !== t[n]);
|
|
294
297
|
}
|
|
295
|
-
function
|
|
298
|
+
function z(e, t) {
|
|
296
299
|
if (e.refs = t, t.every((e) => e == null)) {
|
|
297
300
|
e.callback = null;
|
|
298
301
|
return;
|
|
@@ -335,32 +338,35 @@ function L(e, t) {
|
|
|
335
338
|
}
|
|
336
339
|
//#endregion
|
|
337
340
|
//#region node_modules/@base-ui/utils/esm/reactVersion.js
|
|
338
|
-
var
|
|
339
|
-
function
|
|
340
|
-
return
|
|
341
|
+
var B = parseInt(e.version, 10);
|
|
342
|
+
function V(e) {
|
|
343
|
+
return B >= e;
|
|
341
344
|
}
|
|
342
345
|
//#endregion
|
|
343
346
|
//#region node_modules/@base-ui/utils/esm/getReactElementRef.js
|
|
344
|
-
function
|
|
347
|
+
function le(t) {
|
|
345
348
|
if (!/* @__PURE__ */ e.isValidElement(t)) return null;
|
|
346
349
|
let n = t, r = n.props;
|
|
347
|
-
return (
|
|
350
|
+
return (V(19) ? r?.ref : n.ref) ?? null;
|
|
348
351
|
}
|
|
349
352
|
//#endregion
|
|
350
353
|
//#region node_modules/@base-ui/utils/esm/warn.js
|
|
351
|
-
var
|
|
352
|
-
process.env.NODE_ENV !== "production" && (
|
|
353
|
-
function
|
|
354
|
+
var ue;
|
|
355
|
+
process.env.NODE_ENV !== "production" && (ue = /* @__PURE__ */ new Set());
|
|
356
|
+
function de(...e) {
|
|
354
357
|
if (process.env.NODE_ENV !== "production") {
|
|
355
358
|
let t = e.join(" ");
|
|
356
|
-
|
|
359
|
+
ue.has(t) || (ue.add(t), console.warn(`Base UI: ${t}`));
|
|
357
360
|
}
|
|
358
361
|
}
|
|
362
|
+
//#endregion
|
|
363
|
+
//#region node_modules/@base-ui/utils/esm/empty.js
|
|
364
|
+
function H() {}
|
|
359
365
|
Object.freeze([]);
|
|
360
|
-
var
|
|
366
|
+
var U = Object.freeze({});
|
|
361
367
|
//#endregion
|
|
362
368
|
//#region node_modules/@base-ui/react/esm/internals/getStateAttributesProps.js
|
|
363
|
-
function
|
|
369
|
+
function fe(e, t) {
|
|
364
370
|
let n = {};
|
|
365
371
|
for (let r in e) {
|
|
366
372
|
let i = e[r];
|
|
@@ -375,53 +381,53 @@ function ue(e, t) {
|
|
|
375
381
|
}
|
|
376
382
|
//#endregion
|
|
377
383
|
//#region node_modules/@base-ui/react/esm/utils/resolveClassName.js
|
|
378
|
-
function
|
|
384
|
+
function pe(e, t) {
|
|
379
385
|
return typeof e == "function" ? e(t) : e;
|
|
380
386
|
}
|
|
381
387
|
//#endregion
|
|
382
388
|
//#region node_modules/@base-ui/react/esm/utils/resolveStyle.js
|
|
383
|
-
function
|
|
389
|
+
function me(e, t) {
|
|
384
390
|
return typeof e == "function" ? e(t) : e;
|
|
385
391
|
}
|
|
386
392
|
//#endregion
|
|
387
393
|
//#region node_modules/@base-ui/react/esm/internals/useRenderElement.js
|
|
388
|
-
function
|
|
389
|
-
let r = t.render, i =
|
|
390
|
-
return n.enabled === !1 ? null :
|
|
394
|
+
function he(e, t, n = {}) {
|
|
395
|
+
let r = t.render, i = ge(t, n);
|
|
396
|
+
return n.enabled === !1 ? null : xe(e, r, i, n.state ?? U);
|
|
391
397
|
}
|
|
392
|
-
function
|
|
393
|
-
let { className: n, style: r, render: i } = e, { state: a =
|
|
394
|
-
return typeof document < "u" && (l ? Array.isArray(o) ? m.ref =
|
|
398
|
+
function ge(e, t = {}) {
|
|
399
|
+
let { className: n, style: r, render: i } = e, { state: a = U, ref: o, props: s, stateAttributesMapping: c, enabled: l = !0 } = t, u = l ? pe(n, a) : void 0, d = l ? me(r, a) : void 0, f = l ? fe(a, c) : U, p = l && s ? _e(s) : void 0, m = l ? y(f, p) ?? {} : U;
|
|
400
|
+
return typeof document < "u" && (l ? Array.isArray(o) ? m.ref = F([
|
|
395
401
|
m.ref,
|
|
396
|
-
|
|
402
|
+
le(i),
|
|
397
403
|
...o
|
|
398
|
-
]) : m.ref =
|
|
404
|
+
]) : m.ref = P(m.ref, le(i), o) : P(null, null)), l ? (u !== void 0 && (m.className = O(m.className, u)), d !== void 0 && (m.style = y(m.style, d)), m) : U;
|
|
399
405
|
}
|
|
400
|
-
function
|
|
401
|
-
return Array.isArray(e) ? te(e) :
|
|
406
|
+
function _e(e) {
|
|
407
|
+
return Array.isArray(e) ? te(e) : b(void 0, e);
|
|
402
408
|
}
|
|
403
|
-
var
|
|
404
|
-
function
|
|
409
|
+
var ve = Symbol.for("react.lazy"), ye = /^[A-Z][A-Za-z0-9$]*$/, be = /[a-z]/;
|
|
410
|
+
function xe(t, n, r, i) {
|
|
405
411
|
if (n) {
|
|
406
|
-
if (typeof n == "function") return process.env.NODE_ENV !== "production" &&
|
|
407
|
-
let t =
|
|
412
|
+
if (typeof n == "function") return process.env.NODE_ENV !== "production" && Se(n), n(r, i);
|
|
413
|
+
let t = b(r, n.props);
|
|
408
414
|
t.ref = r.ref;
|
|
409
415
|
let a = n;
|
|
410
|
-
if (a?.$$typeof ===
|
|
416
|
+
if (a?.$$typeof === ve && (a = e.Children.toArray(n)[0]), process.env.NODE_ENV !== "production" && !/* @__PURE__ */ e.isValidElement(a)) throw Error([
|
|
411
417
|
"Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.",
|
|
412
418
|
"A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.",
|
|
413
419
|
"https://base-ui.com/r/invalid-render-prop"
|
|
414
420
|
].join("\n"));
|
|
415
421
|
return /* @__PURE__ */ e.cloneElement(a, t);
|
|
416
422
|
}
|
|
417
|
-
if (t && typeof t == "string") return
|
|
423
|
+
if (t && typeof t == "string") return Ce(t, r);
|
|
418
424
|
throw Error(process.env.NODE_ENV === "production" ? k(8) : "Base UI: Render element or function are not defined.");
|
|
419
425
|
}
|
|
420
|
-
function
|
|
426
|
+
function Se(e) {
|
|
421
427
|
let t = e.name;
|
|
422
|
-
t.length !== 0 &&
|
|
428
|
+
t.length !== 0 && ye.test(t) && be.test(t) && de(`The \`render\` prop received a function named \`${t}\` that starts with an uppercase letter.`, "This usually means a React component was passed directly as `render={Component}`.", "Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.", "If this is an intentional render callback, rename it to start with a lowercase letter.", "Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.", "https://base-ui.com/r/invalid-render-prop");
|
|
423
429
|
}
|
|
424
|
-
function
|
|
430
|
+
function Ce(n, r) {
|
|
425
431
|
return n === "button" ? /* @__PURE__ */ t("button", {
|
|
426
432
|
type: "button",
|
|
427
433
|
...r,
|
|
@@ -434,48 +440,48 @@ function xe(n, r) {
|
|
|
434
440
|
}
|
|
435
441
|
//#endregion
|
|
436
442
|
//#region node_modules/@base-ui/react/esm/button/Button.js
|
|
437
|
-
var
|
|
438
|
-
let { render: n, className: r, disabled: i = !1, focusableWhenDisabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { getButtonProps: l, buttonRef: u } =
|
|
443
|
+
var we = /* @__PURE__ */ e.forwardRef(function(e, t) {
|
|
444
|
+
let { render: n, className: r, disabled: i = !1, focusableWhenDisabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { getButtonProps: l, buttonRef: u } = ce({
|
|
439
445
|
disabled: i,
|
|
440
446
|
focusableWhenDisabled: a,
|
|
441
447
|
native: o
|
|
442
448
|
});
|
|
443
|
-
return
|
|
449
|
+
return he("button", e, {
|
|
444
450
|
state: { disabled: i },
|
|
445
451
|
ref: [t, u],
|
|
446
452
|
props: [c, l]
|
|
447
453
|
});
|
|
448
454
|
});
|
|
449
|
-
process.env.NODE_ENV !== "production" && (
|
|
455
|
+
process.env.NODE_ENV !== "production" && (we.displayName = "Button");
|
|
450
456
|
//#endregion
|
|
451
457
|
//#region node_modules/clsx/dist/clsx.mjs
|
|
452
|
-
function
|
|
458
|
+
function Te(e) {
|
|
453
459
|
var t, n, r = "";
|
|
454
460
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
455
461
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
456
462
|
var i = e.length;
|
|
457
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
463
|
+
for (t = 0; t < i; t++) e[t] && (n = Te(e[t])) && (r && (r += " "), r += n);
|
|
458
464
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
459
465
|
return r;
|
|
460
466
|
}
|
|
461
|
-
function
|
|
462
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
467
|
+
function Ee() {
|
|
468
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Te(e)) && (r && (r += " "), r += t);
|
|
463
469
|
return r;
|
|
464
470
|
}
|
|
465
471
|
//#endregion
|
|
466
472
|
//#region node_modules/class-variance-authority/dist/index.mjs
|
|
467
|
-
var
|
|
468
|
-
if (t?.variants == null) return
|
|
473
|
+
var De = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Oe = Ee, ke = (e, t) => (n) => {
|
|
474
|
+
if (t?.variants == null) return Oe(e, n?.class, n?.className);
|
|
469
475
|
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
470
476
|
let t = n?.[e], a = i?.[e];
|
|
471
477
|
if (t === null) return null;
|
|
472
|
-
let o =
|
|
478
|
+
let o = De(t) || De(a);
|
|
473
479
|
return r[e][o];
|
|
474
480
|
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
475
481
|
let [n, r] = t;
|
|
476
482
|
return r === void 0 || (e[n] = r), e;
|
|
477
483
|
}, {});
|
|
478
|
-
return
|
|
484
|
+
return Oe(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
479
485
|
let { class: n, className: r, ...a } = t;
|
|
480
486
|
return Object.entries(a).every((e) => {
|
|
481
487
|
let [t, n] = e;
|
|
@@ -492,100 +498,100 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
492
498
|
r
|
|
493
499
|
] : e;
|
|
494
500
|
}, []), n?.class, n?.className);
|
|
495
|
-
},
|
|
501
|
+
}, Ae = (e, t) => {
|
|
496
502
|
let n = Array(e.length + t.length);
|
|
497
503
|
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
498
504
|
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
499
505
|
return n;
|
|
500
|
-
},
|
|
506
|
+
}, je = (e, t) => ({
|
|
501
507
|
classGroupId: e,
|
|
502
508
|
validator: t
|
|
503
|
-
}),
|
|
509
|
+
}), Me = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
504
510
|
nextPart: e,
|
|
505
511
|
validators: t,
|
|
506
512
|
classGroupId: n
|
|
507
|
-
}),
|
|
508
|
-
let t =
|
|
513
|
+
}), Ne = "-", Pe = [], Fe = "arbitrary..", Ie = (e) => {
|
|
514
|
+
let t = ze(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
509
515
|
return {
|
|
510
516
|
getClassGroupId: (e) => {
|
|
511
|
-
if (e.startsWith("[") && e.endsWith("]")) return
|
|
512
|
-
let n = e.split(
|
|
513
|
-
return
|
|
517
|
+
if (e.startsWith("[") && e.endsWith("]")) return Re(e);
|
|
518
|
+
let n = e.split(Ne);
|
|
519
|
+
return Le(n, +(n[0] === "" && n.length > 1), t);
|
|
514
520
|
},
|
|
515
521
|
getConflictingClassGroupIds: (e, t) => {
|
|
516
522
|
if (t) {
|
|
517
523
|
let t = r[e], i = n[e];
|
|
518
|
-
return t ? i ?
|
|
524
|
+
return t ? i ? Ae(i, t) : t : i || Pe;
|
|
519
525
|
}
|
|
520
|
-
return n[e] ||
|
|
526
|
+
return n[e] || Pe;
|
|
521
527
|
}
|
|
522
528
|
};
|
|
523
|
-
},
|
|
529
|
+
}, Le = (e, t, n) => {
|
|
524
530
|
if (e.length - t === 0) return n.classGroupId;
|
|
525
531
|
let r = e[t], i = n.nextPart.get(r);
|
|
526
532
|
if (i) {
|
|
527
|
-
let n =
|
|
533
|
+
let n = Le(e, t + 1, i);
|
|
528
534
|
if (n) return n;
|
|
529
535
|
}
|
|
530
536
|
let a = n.validators;
|
|
531
537
|
if (a === null) return;
|
|
532
|
-
let o = t === 0 ? e.join(
|
|
538
|
+
let o = t === 0 ? e.join(Ne) : e.slice(t).join(Ne), s = a.length;
|
|
533
539
|
for (let e = 0; e < s; e++) {
|
|
534
540
|
let t = a[e];
|
|
535
541
|
if (t.validator(o)) return t.classGroupId;
|
|
536
542
|
}
|
|
537
|
-
},
|
|
543
|
+
}, Re = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
538
544
|
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
539
|
-
return r ?
|
|
540
|
-
})(),
|
|
545
|
+
return r ? Fe + r : void 0;
|
|
546
|
+
})(), ze = (e) => {
|
|
541
547
|
let { theme: t, classGroups: n } = e;
|
|
542
|
-
return
|
|
543
|
-
},
|
|
544
|
-
let n =
|
|
548
|
+
return Be(n, t);
|
|
549
|
+
}, Be = (e, t) => {
|
|
550
|
+
let n = Me();
|
|
545
551
|
for (let r in e) {
|
|
546
552
|
let i = e[r];
|
|
547
|
-
|
|
553
|
+
Ve(i, n, r, t);
|
|
548
554
|
}
|
|
549
555
|
return n;
|
|
550
|
-
},
|
|
556
|
+
}, Ve = (e, t, n, r) => {
|
|
551
557
|
let i = e.length;
|
|
552
558
|
for (let a = 0; a < i; a++) {
|
|
553
559
|
let i = e[a];
|
|
554
|
-
|
|
560
|
+
He(i, t, n, r);
|
|
555
561
|
}
|
|
556
|
-
},
|
|
562
|
+
}, He = (e, t, n, r) => {
|
|
557
563
|
if (typeof e == "string") {
|
|
558
|
-
|
|
564
|
+
Ue(e, t, n);
|
|
559
565
|
return;
|
|
560
566
|
}
|
|
561
567
|
if (typeof e == "function") {
|
|
562
|
-
|
|
568
|
+
We(e, t, n, r);
|
|
563
569
|
return;
|
|
564
570
|
}
|
|
565
|
-
|
|
566
|
-
},
|
|
567
|
-
let r = e === "" ? t :
|
|
571
|
+
Ge(e, t, n, r);
|
|
572
|
+
}, Ue = (e, t, n) => {
|
|
573
|
+
let r = e === "" ? t : Ke(t, e);
|
|
568
574
|
r.classGroupId = n;
|
|
569
|
-
},
|
|
570
|
-
if (
|
|
571
|
-
|
|
575
|
+
}, We = (e, t, n, r) => {
|
|
576
|
+
if (qe(e)) {
|
|
577
|
+
Ve(e(r), t, n, r);
|
|
572
578
|
return;
|
|
573
579
|
}
|
|
574
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
575
|
-
},
|
|
580
|
+
t.validators === null && (t.validators = []), t.validators.push(je(n, e));
|
|
581
|
+
}, Ge = (e, t, n, r) => {
|
|
576
582
|
let i = Object.entries(e), a = i.length;
|
|
577
583
|
for (let e = 0; e < a; e++) {
|
|
578
584
|
let [a, o] = i[e];
|
|
579
|
-
|
|
585
|
+
Ve(o, Ke(t, a), n, r);
|
|
580
586
|
}
|
|
581
|
-
},
|
|
582
|
-
let n = e, r = t.split(
|
|
587
|
+
}, Ke = (e, t) => {
|
|
588
|
+
let n = e, r = t.split(Ne), i = r.length;
|
|
583
589
|
for (let e = 0; e < i; e++) {
|
|
584
590
|
let t = r[e], i = n.nextPart.get(t);
|
|
585
|
-
i || (i =
|
|
591
|
+
i || (i = Me(), n.nextPart.set(t, i)), n = i;
|
|
586
592
|
}
|
|
587
593
|
return n;
|
|
588
|
-
},
|
|
594
|
+
}, qe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Je = (e) => {
|
|
589
595
|
if (e < 1) return {
|
|
590
596
|
get: () => void 0,
|
|
591
597
|
set: () => {}
|
|
@@ -603,19 +609,19 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
603
609
|
e in n ? n[e] = t : i(e, t);
|
|
604
610
|
}
|
|
605
611
|
};
|
|
606
|
-
},
|
|
612
|
+
}, Ye = "!", Xe = ":", Ze = [], Qe = (e, t, n, r, i) => ({
|
|
607
613
|
modifiers: e,
|
|
608
614
|
hasImportantModifier: t,
|
|
609
615
|
baseClassName: n,
|
|
610
616
|
maybePostfixModifierPosition: r,
|
|
611
617
|
isExternal: i
|
|
612
|
-
}),
|
|
618
|
+
}), $e = (e) => {
|
|
613
619
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
614
620
|
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
615
621
|
for (let s = 0; s < o; s++) {
|
|
616
622
|
let o = e[s];
|
|
617
623
|
if (n === 0 && r === 0) {
|
|
618
|
-
if (o ===
|
|
624
|
+
if (o === Xe) {
|
|
619
625
|
t.push(e.slice(i, s)), i = s + 1;
|
|
620
626
|
continue;
|
|
621
627
|
}
|
|
@@ -627,13 +633,13 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
627
633
|
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
628
634
|
}
|
|
629
635
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
630
|
-
s.endsWith(
|
|
636
|
+
s.endsWith(Ye) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Ye) && (c = s.slice(1), l = !0);
|
|
631
637
|
let u = a && a > i ? a - i : void 0;
|
|
632
|
-
return
|
|
638
|
+
return Qe(t, l, c, u);
|
|
633
639
|
};
|
|
634
640
|
if (t) {
|
|
635
|
-
let e = t +
|
|
636
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) :
|
|
641
|
+
let e = t + Xe, n = r;
|
|
642
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Qe(Ze, !1, t, void 0, !0);
|
|
637
643
|
}
|
|
638
644
|
if (n) {
|
|
639
645
|
let e = r;
|
|
@@ -643,7 +649,7 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
643
649
|
});
|
|
644
650
|
}
|
|
645
651
|
return r;
|
|
646
|
-
},
|
|
652
|
+
}, et = (e) => {
|
|
647
653
|
let t = /* @__PURE__ */ new Map();
|
|
648
654
|
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
649
655
|
t.set(e, 1e6 + n);
|
|
@@ -655,13 +661,13 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
655
661
|
}
|
|
656
662
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
657
663
|
};
|
|
658
|
-
},
|
|
659
|
-
cache:
|
|
660
|
-
parseClassName:
|
|
661
|
-
sortModifiers:
|
|
662
|
-
...
|
|
663
|
-
}),
|
|
664
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a } = t, o = [], s = e.trim().split(
|
|
664
|
+
}, tt = (e) => ({
|
|
665
|
+
cache: Je(e.cacheSize),
|
|
666
|
+
parseClassName: $e(e),
|
|
667
|
+
sortModifiers: et(e),
|
|
668
|
+
...Ie(e)
|
|
669
|
+
}), nt = /\s+/, rt = (e, t) => {
|
|
670
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a } = t, o = [], s = e.trim().split(nt), c = "";
|
|
665
671
|
for (let e = s.length - 1; e >= 0; --e) {
|
|
666
672
|
let t = s[e], { isExternal: l, modifiers: u, hasImportantModifier: d, baseClassName: f, maybePostfixModifierPosition: p } = n(t);
|
|
667
673
|
if (l) {
|
|
@@ -680,45 +686,45 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
680
686
|
}
|
|
681
687
|
m = !1;
|
|
682
688
|
}
|
|
683
|
-
let
|
|
684
|
-
if (o.indexOf(
|
|
685
|
-
o.push(
|
|
686
|
-
let
|
|
687
|
-
for (let e = 0; e <
|
|
688
|
-
let t =
|
|
689
|
-
o.push(
|
|
689
|
+
let g = u.length === 0 ? "" : u.length === 1 ? u[0] : a(u).join(":"), _ = d ? g + Ye : g, v = _ + h;
|
|
690
|
+
if (o.indexOf(v) > -1) continue;
|
|
691
|
+
o.push(v);
|
|
692
|
+
let y = i(h, m);
|
|
693
|
+
for (let e = 0; e < y.length; ++e) {
|
|
694
|
+
let t = y[e];
|
|
695
|
+
o.push(_ + t);
|
|
690
696
|
}
|
|
691
697
|
c = t + (c.length > 0 ? " " + c : c);
|
|
692
698
|
}
|
|
693
699
|
return c;
|
|
694
|
-
},
|
|
700
|
+
}, it = (...e) => {
|
|
695
701
|
let t = 0, n, r, i = "";
|
|
696
|
-
for (; t < e.length;) (n = e[t++]) && (r =
|
|
702
|
+
for (; t < e.length;) (n = e[t++]) && (r = at(n)) && (i && (i += " "), i += r);
|
|
697
703
|
return i;
|
|
698
|
-
},
|
|
704
|
+
}, at = (e) => {
|
|
699
705
|
if (typeof e == "string") return e;
|
|
700
706
|
let t, n = "";
|
|
701
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
707
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = at(e[r])) && (n && (n += " "), n += t);
|
|
702
708
|
return n;
|
|
703
|
-
},
|
|
704
|
-
let n, r, i, a, o = (o) => (n =
|
|
709
|
+
}, ot = (e, ...t) => {
|
|
710
|
+
let n, r, i, a, o = (o) => (n = tt(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
705
711
|
let t = r(e);
|
|
706
712
|
if (t) return t;
|
|
707
|
-
let a =
|
|
713
|
+
let a = rt(e, n);
|
|
708
714
|
return i(e, a), a;
|
|
709
715
|
};
|
|
710
|
-
return a = o, (...e) => a(
|
|
711
|
-
},
|
|
712
|
-
let t = (t) => t[e] ||
|
|
716
|
+
return a = o, (...e) => a(it(...e));
|
|
717
|
+
}, st = [], W = (e) => {
|
|
718
|
+
let t = (t) => t[e] || st;
|
|
713
719
|
return t.isThemeGetter = !0, t;
|
|
714
|
-
},
|
|
715
|
-
let r =
|
|
720
|
+
}, ct = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, lt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ut = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, dt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ft = /\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$/, pt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, mt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ht = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (e) => ut.test(e), K = (e) => !!e && !Number.isNaN(Number(e)), q = (e) => !!e && Number.isInteger(Number(e)), gt = (e) => e.endsWith("%") && K(e.slice(0, -1)), J = (e) => dt.test(e), _t = () => !0, vt = (e) => ft.test(e) && !pt.test(e), yt = () => !1, bt = (e) => mt.test(e), xt = (e) => ht.test(e), St = (e) => !Y(e) && !Z(e), Ct = (e) => Q(e, zt, yt), Y = (e) => ct.test(e), X = (e) => Q(e, Bt, vt), wt = (e) => Q(e, Vt, K), Tt = (e) => Q(e, Ut, _t), Et = (e) => Q(e, Ht, yt), Dt = (e) => Q(e, Lt, yt), Ot = (e) => Q(e, Rt, xt), kt = (e) => Q(e, Wt, bt), Z = (e) => lt.test(e), At = (e) => $(e, Bt), jt = (e) => $(e, Ht), Mt = (e) => $(e, Lt), Nt = (e) => $(e, zt), Pt = (e) => $(e, Rt), Ft = (e) => $(e, Wt, !0), It = (e) => $(e, Ut, !0), Q = (e, t, n) => {
|
|
721
|
+
let r = ct.exec(e);
|
|
716
722
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
717
723
|
}, $ = (e, t, n = !1) => {
|
|
718
|
-
let r =
|
|
724
|
+
let r = lt.exec(e);
|
|
719
725
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
720
|
-
},
|
|
721
|
-
let e =
|
|
726
|
+
}, Lt = (e) => e === "position" || e === "percentage", Rt = (e) => e === "image" || e === "url", zt = (e) => e === "length" || e === "size" || e === "bg-size", Bt = (e) => e === "length", Vt = (e) => e === "number", Ht = (e) => e === "family-name", Ut = (e) => e === "number" || e === "weight", Wt = (e) => e === "shadow", Gt = /* @__PURE__ */ ot(() => {
|
|
727
|
+
let e = W("color"), t = W("font"), n = W("text"), r = W("font-weight"), i = W("tracking"), a = W("leading"), o = W("breakpoint"), s = W("container"), c = W("spacing"), l = W("radius"), u = W("shadow"), d = W("inset-shadow"), f = W("text-shadow"), p = W("drop-shadow"), m = W("blur"), h = W("perspective"), g = W("aspect"), _ = W("ease"), v = W("animate"), y = () => [
|
|
722
728
|
"auto",
|
|
723
729
|
"avoid",
|
|
724
730
|
"all",
|
|
@@ -727,7 +733,7 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
727
733
|
"left",
|
|
728
734
|
"right",
|
|
729
735
|
"column"
|
|
730
|
-
],
|
|
736
|
+
], ee = () => [
|
|
731
737
|
"center",
|
|
732
738
|
"top",
|
|
733
739
|
"bottom",
|
|
@@ -741,59 +747,59 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
741
747
|
"right-bottom",
|
|
742
748
|
"bottom-left",
|
|
743
749
|
"left-bottom"
|
|
744
|
-
], y = () => [
|
|
745
|
-
...te(),
|
|
746
|
-
X,
|
|
747
|
-
J
|
|
748
750
|
], b = () => [
|
|
751
|
+
...ee(),
|
|
752
|
+
Z,
|
|
753
|
+
Y
|
|
754
|
+
], te = () => [
|
|
749
755
|
"auto",
|
|
750
756
|
"hidden",
|
|
751
757
|
"clip",
|
|
752
758
|
"visible",
|
|
753
759
|
"scroll"
|
|
754
|
-
],
|
|
760
|
+
], x = () => [
|
|
755
761
|
"auto",
|
|
756
762
|
"contain",
|
|
757
763
|
"none"
|
|
758
|
-
], x = () => [
|
|
759
|
-
X,
|
|
760
|
-
J,
|
|
761
|
-
c
|
|
762
764
|
], S = () => [
|
|
763
|
-
|
|
765
|
+
Z,
|
|
766
|
+
Y,
|
|
767
|
+
c
|
|
768
|
+
], C = () => [
|
|
769
|
+
G,
|
|
764
770
|
"full",
|
|
765
771
|
"auto",
|
|
766
|
-
...
|
|
767
|
-
],
|
|
768
|
-
|
|
772
|
+
...S()
|
|
773
|
+
], ne = () => [
|
|
774
|
+
q,
|
|
769
775
|
"none",
|
|
770
776
|
"subgrid",
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
],
|
|
777
|
+
Z,
|
|
778
|
+
Y
|
|
779
|
+
], w = () => [
|
|
774
780
|
"auto",
|
|
775
781
|
{ span: [
|
|
776
782
|
"full",
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
783
|
+
q,
|
|
784
|
+
Z,
|
|
785
|
+
Y
|
|
780
786
|
] },
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
],
|
|
785
|
-
|
|
787
|
+
q,
|
|
788
|
+
Z,
|
|
789
|
+
Y
|
|
790
|
+
], T = () => [
|
|
791
|
+
q,
|
|
786
792
|
"auto",
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
],
|
|
793
|
+
Z,
|
|
794
|
+
Y
|
|
795
|
+
], re = () => [
|
|
790
796
|
"auto",
|
|
791
797
|
"min",
|
|
792
798
|
"max",
|
|
793
799
|
"fr",
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
],
|
|
800
|
+
Z,
|
|
801
|
+
Y
|
|
802
|
+
], ie = () => [
|
|
797
803
|
"start",
|
|
798
804
|
"end",
|
|
799
805
|
"center",
|
|
@@ -811,8 +817,8 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
811
817
|
"stretch",
|
|
812
818
|
"center-safe",
|
|
813
819
|
"end-safe"
|
|
814
|
-
], D = () => ["auto", ...
|
|
815
|
-
|
|
820
|
+
], D = () => ["auto", ...S()], O = () => [
|
|
821
|
+
G,
|
|
816
822
|
"auto",
|
|
817
823
|
"full",
|
|
818
824
|
"dvw",
|
|
@@ -824,9 +830,9 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
824
830
|
"min",
|
|
825
831
|
"max",
|
|
826
832
|
"fit",
|
|
827
|
-
...
|
|
828
|
-
],
|
|
829
|
-
|
|
833
|
+
...S()
|
|
834
|
+
], ae = () => [
|
|
835
|
+
G,
|
|
830
836
|
"screen",
|
|
831
837
|
"full",
|
|
832
838
|
"dvw",
|
|
@@ -835,9 +841,9 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
835
841
|
"min",
|
|
836
842
|
"max",
|
|
837
843
|
"fit",
|
|
838
|
-
...
|
|
839
|
-
],
|
|
840
|
-
|
|
844
|
+
...S()
|
|
845
|
+
], oe = () => [
|
|
846
|
+
G,
|
|
841
847
|
"screen",
|
|
842
848
|
"full",
|
|
843
849
|
"lh",
|
|
@@ -847,51 +853,51 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
847
853
|
"min",
|
|
848
854
|
"max",
|
|
849
855
|
"fit",
|
|
850
|
-
...
|
|
851
|
-
],
|
|
856
|
+
...S()
|
|
857
|
+
], k = () => [
|
|
852
858
|
e,
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
],
|
|
856
|
-
...
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
{ position: [
|
|
860
|
-
],
|
|
859
|
+
Z,
|
|
860
|
+
Y
|
|
861
|
+
], A = () => [
|
|
862
|
+
...ee(),
|
|
863
|
+
Mt,
|
|
864
|
+
Dt,
|
|
865
|
+
{ position: [Z, Y] }
|
|
866
|
+
], se = () => ["no-repeat", { repeat: [
|
|
861
867
|
"",
|
|
862
868
|
"x",
|
|
863
869
|
"y",
|
|
864
870
|
"space",
|
|
865
871
|
"round"
|
|
866
|
-
] }],
|
|
872
|
+
] }], j = () => [
|
|
867
873
|
"auto",
|
|
868
874
|
"cover",
|
|
869
875
|
"contain",
|
|
876
|
+
Nt,
|
|
877
|
+
Ct,
|
|
878
|
+
{ size: [Z, Y] }
|
|
879
|
+
], ce = () => [
|
|
880
|
+
gt,
|
|
870
881
|
At,
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
], se = () => [
|
|
874
|
-
mt,
|
|
875
|
-
Z,
|
|
876
|
-
Y
|
|
877
|
-
], N = () => [
|
|
882
|
+
X
|
|
883
|
+
], M = () => [
|
|
878
884
|
"",
|
|
879
885
|
"none",
|
|
880
886
|
"full",
|
|
881
887
|
l,
|
|
882
|
-
X,
|
|
883
|
-
J
|
|
884
|
-
], P = () => [
|
|
885
|
-
"",
|
|
886
|
-
G,
|
|
887
888
|
Z,
|
|
888
889
|
Y
|
|
889
|
-
],
|
|
890
|
+
], N = () => [
|
|
891
|
+
"",
|
|
892
|
+
K,
|
|
893
|
+
At,
|
|
894
|
+
X
|
|
895
|
+
], P = () => [
|
|
890
896
|
"solid",
|
|
891
897
|
"dashed",
|
|
892
898
|
"dotted",
|
|
893
899
|
"double"
|
|
894
|
-
],
|
|
900
|
+
], F = () => [
|
|
895
901
|
"normal",
|
|
896
902
|
"multiply",
|
|
897
903
|
"screen",
|
|
@@ -909,34 +915,34 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
909
915
|
"color",
|
|
910
916
|
"luminosity"
|
|
911
917
|
], I = () => [
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
918
|
+
K,
|
|
919
|
+
gt,
|
|
920
|
+
Mt,
|
|
921
|
+
Dt
|
|
916
922
|
], L = () => [
|
|
917
923
|
"",
|
|
918
924
|
"none",
|
|
919
925
|
m,
|
|
920
|
-
|
|
921
|
-
|
|
926
|
+
Z,
|
|
927
|
+
Y
|
|
922
928
|
], R = () => [
|
|
923
929
|
"none",
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
930
|
+
K,
|
|
931
|
+
Z,
|
|
932
|
+
Y
|
|
927
933
|
], z = () => [
|
|
928
934
|
"none",
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
935
|
+
K,
|
|
936
|
+
Z,
|
|
937
|
+
Y
|
|
932
938
|
], B = () => [
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
939
|
+
K,
|
|
940
|
+
Z,
|
|
941
|
+
Y
|
|
936
942
|
], V = () => [
|
|
937
|
-
|
|
943
|
+
G,
|
|
938
944
|
"full",
|
|
939
|
-
...
|
|
945
|
+
...S()
|
|
940
946
|
];
|
|
941
947
|
return {
|
|
942
948
|
cacheSize: 500,
|
|
@@ -948,17 +954,17 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
948
954
|
"bounce"
|
|
949
955
|
],
|
|
950
956
|
aspect: ["video"],
|
|
951
|
-
blur: [
|
|
952
|
-
breakpoint: [
|
|
953
|
-
color: [
|
|
954
|
-
container: [
|
|
955
|
-
"drop-shadow": [
|
|
957
|
+
blur: [J],
|
|
958
|
+
breakpoint: [J],
|
|
959
|
+
color: [_t],
|
|
960
|
+
container: [J],
|
|
961
|
+
"drop-shadow": [J],
|
|
956
962
|
ease: [
|
|
957
963
|
"in",
|
|
958
964
|
"out",
|
|
959
965
|
"in-out"
|
|
960
966
|
],
|
|
961
|
-
font: [
|
|
967
|
+
font: [St],
|
|
962
968
|
"font-weight": [
|
|
963
969
|
"thin",
|
|
964
970
|
"extralight",
|
|
@@ -970,7 +976,7 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
970
976
|
"extrabold",
|
|
971
977
|
"black"
|
|
972
978
|
],
|
|
973
|
-
"inset-shadow": [
|
|
979
|
+
"inset-shadow": [J],
|
|
974
980
|
leading: [
|
|
975
981
|
"none",
|
|
976
982
|
"tight",
|
|
@@ -987,11 +993,11 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
987
993
|
"distant",
|
|
988
994
|
"none"
|
|
989
995
|
],
|
|
990
|
-
radius: [
|
|
991
|
-
shadow: [
|
|
992
|
-
spacing: ["px",
|
|
993
|
-
text: [
|
|
994
|
-
"text-shadow": [
|
|
996
|
+
radius: [J],
|
|
997
|
+
shadow: [J],
|
|
998
|
+
spacing: ["px", K],
|
|
999
|
+
text: [J],
|
|
1000
|
+
"text-shadow": [J],
|
|
995
1001
|
tracking: [
|
|
996
1002
|
"tighter",
|
|
997
1003
|
"tight",
|
|
@@ -1005,20 +1011,20 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1005
1011
|
aspect: [{ aspect: [
|
|
1006
1012
|
"auto",
|
|
1007
1013
|
"square",
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1014
|
+
G,
|
|
1015
|
+
Y,
|
|
1016
|
+
Z,
|
|
1017
|
+
g
|
|
1012
1018
|
] }],
|
|
1013
1019
|
container: ["container"],
|
|
1014
1020
|
columns: [{ columns: [
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1021
|
+
K,
|
|
1022
|
+
Y,
|
|
1023
|
+
Z,
|
|
1018
1024
|
s
|
|
1019
1025
|
] }],
|
|
1020
|
-
"break-after": [{ "break-after":
|
|
1021
|
-
"break-before": [{ "break-before":
|
|
1026
|
+
"break-after": [{ "break-after": y() }],
|
|
1027
|
+
"break-before": [{ "break-before": y() }],
|
|
1022
1028
|
"break-inside": [{ "break-inside": [
|
|
1023
1029
|
"auto",
|
|
1024
1030
|
"avoid",
|
|
@@ -1074,13 +1080,13 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1074
1080
|
"none",
|
|
1075
1081
|
"scale-down"
|
|
1076
1082
|
] }],
|
|
1077
|
-
"object-position": [{ object:
|
|
1078
|
-
overflow: [{ overflow:
|
|
1079
|
-
"overflow-x": [{ "overflow-x":
|
|
1080
|
-
"overflow-y": [{ "overflow-y":
|
|
1081
|
-
overscroll: [{ overscroll:
|
|
1082
|
-
"overscroll-x": [{ "overscroll-x":
|
|
1083
|
-
"overscroll-y": [{ "overscroll-y":
|
|
1083
|
+
"object-position": [{ object: b() }],
|
|
1084
|
+
overflow: [{ overflow: te() }],
|
|
1085
|
+
"overflow-x": [{ "overflow-x": te() }],
|
|
1086
|
+
"overflow-y": [{ "overflow-y": te() }],
|
|
1087
|
+
overscroll: [{ overscroll: x() }],
|
|
1088
|
+
"overscroll-x": [{ "overscroll-x": x() }],
|
|
1089
|
+
"overscroll-y": [{ "overscroll-y": x() }],
|
|
1084
1090
|
position: [
|
|
1085
1091
|
"static",
|
|
1086
1092
|
"fixed",
|
|
@@ -1088,40 +1094,40 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1088
1094
|
"relative",
|
|
1089
1095
|
"sticky"
|
|
1090
1096
|
],
|
|
1091
|
-
inset: [{ inset:
|
|
1092
|
-
"inset-x": [{ "inset-x":
|
|
1093
|
-
"inset-y": [{ "inset-y":
|
|
1097
|
+
inset: [{ inset: C() }],
|
|
1098
|
+
"inset-x": [{ "inset-x": C() }],
|
|
1099
|
+
"inset-y": [{ "inset-y": C() }],
|
|
1094
1100
|
start: [{
|
|
1095
|
-
"inset-s":
|
|
1096
|
-
start:
|
|
1101
|
+
"inset-s": C(),
|
|
1102
|
+
start: C()
|
|
1097
1103
|
}],
|
|
1098
1104
|
end: [{
|
|
1099
|
-
"inset-e":
|
|
1100
|
-
end:
|
|
1105
|
+
"inset-e": C(),
|
|
1106
|
+
end: C()
|
|
1101
1107
|
}],
|
|
1102
|
-
"inset-bs": [{ "inset-bs":
|
|
1103
|
-
"inset-be": [{ "inset-be":
|
|
1104
|
-
top: [{ top:
|
|
1105
|
-
right: [{ right:
|
|
1106
|
-
bottom: [{ bottom:
|
|
1107
|
-
left: [{ left:
|
|
1108
|
+
"inset-bs": [{ "inset-bs": C() }],
|
|
1109
|
+
"inset-be": [{ "inset-be": C() }],
|
|
1110
|
+
top: [{ top: C() }],
|
|
1111
|
+
right: [{ right: C() }],
|
|
1112
|
+
bottom: [{ bottom: C() }],
|
|
1113
|
+
left: [{ left: C() }],
|
|
1108
1114
|
visibility: [
|
|
1109
1115
|
"visible",
|
|
1110
1116
|
"invisible",
|
|
1111
1117
|
"collapse"
|
|
1112
1118
|
],
|
|
1113
1119
|
z: [{ z: [
|
|
1114
|
-
|
|
1120
|
+
q,
|
|
1115
1121
|
"auto",
|
|
1116
|
-
|
|
1117
|
-
|
|
1122
|
+
Z,
|
|
1123
|
+
Y
|
|
1118
1124
|
] }],
|
|
1119
1125
|
basis: [{ basis: [
|
|
1120
|
-
|
|
1126
|
+
G,
|
|
1121
1127
|
"full",
|
|
1122
1128
|
"auto",
|
|
1123
1129
|
s,
|
|
1124
|
-
...
|
|
1130
|
+
...S()
|
|
1125
1131
|
] }],
|
|
1126
1132
|
"flex-direction": [{ flex: [
|
|
1127
1133
|
"row",
|
|
@@ -1135,41 +1141,41 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1135
1141
|
"wrap-reverse"
|
|
1136
1142
|
] }],
|
|
1137
1143
|
flex: [{ flex: [
|
|
1144
|
+
K,
|
|
1138
1145
|
G,
|
|
1139
|
-
W,
|
|
1140
1146
|
"auto",
|
|
1141
1147
|
"initial",
|
|
1142
1148
|
"none",
|
|
1143
|
-
|
|
1149
|
+
Y
|
|
1144
1150
|
] }],
|
|
1145
1151
|
grow: [{ grow: [
|
|
1146
1152
|
"",
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1153
|
+
K,
|
|
1154
|
+
Z,
|
|
1155
|
+
Y
|
|
1150
1156
|
] }],
|
|
1151
1157
|
shrink: [{ shrink: [
|
|
1152
1158
|
"",
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1159
|
+
K,
|
|
1160
|
+
Z,
|
|
1161
|
+
Y
|
|
1156
1162
|
] }],
|
|
1157
1163
|
order: [{ order: [
|
|
1158
|
-
|
|
1164
|
+
q,
|
|
1159
1165
|
"first",
|
|
1160
1166
|
"last",
|
|
1161
1167
|
"none",
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
] }],
|
|
1165
|
-
"grid-cols": [{ "grid-cols":
|
|
1166
|
-
"col-start-end": [{ col:
|
|
1167
|
-
"col-start": [{ "col-start":
|
|
1168
|
-
"col-end": [{ "col-end":
|
|
1169
|
-
"grid-rows": [{ "grid-rows":
|
|
1170
|
-
"row-start-end": [{ row:
|
|
1171
|
-
"row-start": [{ "row-start":
|
|
1172
|
-
"row-end": [{ "row-end":
|
|
1168
|
+
Z,
|
|
1169
|
+
Y
|
|
1170
|
+
] }],
|
|
1171
|
+
"grid-cols": [{ "grid-cols": ne() }],
|
|
1172
|
+
"col-start-end": [{ col: w() }],
|
|
1173
|
+
"col-start": [{ "col-start": T() }],
|
|
1174
|
+
"col-end": [{ "col-end": T() }],
|
|
1175
|
+
"grid-rows": [{ "grid-rows": ne() }],
|
|
1176
|
+
"row-start-end": [{ row: w() }],
|
|
1177
|
+
"row-start": [{ "row-start": T() }],
|
|
1178
|
+
"row-end": [{ "row-end": T() }],
|
|
1173
1179
|
"grid-flow": [{ "grid-flow": [
|
|
1174
1180
|
"row",
|
|
1175
1181
|
"col",
|
|
@@ -1177,35 +1183,35 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1177
1183
|
"row-dense",
|
|
1178
1184
|
"col-dense"
|
|
1179
1185
|
] }],
|
|
1180
|
-
"auto-cols": [{ "auto-cols":
|
|
1181
|
-
"auto-rows": [{ "auto-rows":
|
|
1182
|
-
gap: [{ gap:
|
|
1183
|
-
"gap-x": [{ "gap-x":
|
|
1184
|
-
"gap-y": [{ "gap-y":
|
|
1185
|
-
"justify-content": [{ justify: [...
|
|
1186
|
+
"auto-cols": [{ "auto-cols": re() }],
|
|
1187
|
+
"auto-rows": [{ "auto-rows": re() }],
|
|
1188
|
+
gap: [{ gap: S() }],
|
|
1189
|
+
"gap-x": [{ "gap-x": S() }],
|
|
1190
|
+
"gap-y": [{ "gap-y": S() }],
|
|
1191
|
+
"justify-content": [{ justify: [...ie(), "normal"] }],
|
|
1186
1192
|
"justify-items": [{ "justify-items": [...E(), "normal"] }],
|
|
1187
1193
|
"justify-self": [{ "justify-self": ["auto", ...E()] }],
|
|
1188
|
-
"align-content": [{ content: ["normal", ...
|
|
1194
|
+
"align-content": [{ content: ["normal", ...ie()] }],
|
|
1189
1195
|
"align-items": [{ items: [...E(), { baseline: ["", "last"] }] }],
|
|
1190
1196
|
"align-self": [{ self: [
|
|
1191
1197
|
"auto",
|
|
1192
1198
|
...E(),
|
|
1193
1199
|
{ baseline: ["", "last"] }
|
|
1194
1200
|
] }],
|
|
1195
|
-
"place-content": [{ "place-content":
|
|
1201
|
+
"place-content": [{ "place-content": ie() }],
|
|
1196
1202
|
"place-items": [{ "place-items": [...E(), "baseline"] }],
|
|
1197
1203
|
"place-self": [{ "place-self": ["auto", ...E()] }],
|
|
1198
|
-
p: [{ p:
|
|
1199
|
-
px: [{ px:
|
|
1200
|
-
py: [{ py:
|
|
1201
|
-
ps: [{ ps:
|
|
1202
|
-
pe: [{ pe:
|
|
1203
|
-
pbs: [{ pbs:
|
|
1204
|
-
pbe: [{ pbe:
|
|
1205
|
-
pt: [{ pt:
|
|
1206
|
-
pr: [{ pr:
|
|
1207
|
-
pb: [{ pb:
|
|
1208
|
-
pl: [{ pl:
|
|
1204
|
+
p: [{ p: S() }],
|
|
1205
|
+
px: [{ px: S() }],
|
|
1206
|
+
py: [{ py: S() }],
|
|
1207
|
+
ps: [{ ps: S() }],
|
|
1208
|
+
pe: [{ pe: S() }],
|
|
1209
|
+
pbs: [{ pbs: S() }],
|
|
1210
|
+
pbe: [{ pbe: S() }],
|
|
1211
|
+
pt: [{ pt: S() }],
|
|
1212
|
+
pr: [{ pr: S() }],
|
|
1213
|
+
pb: [{ pb: S() }],
|
|
1214
|
+
pl: [{ pl: S() }],
|
|
1209
1215
|
m: [{ m: D() }],
|
|
1210
1216
|
mx: [{ mx: D() }],
|
|
1211
1217
|
my: [{ my: D() }],
|
|
@@ -1217,17 +1223,17 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1217
1223
|
mr: [{ mr: D() }],
|
|
1218
1224
|
mb: [{ mb: D() }],
|
|
1219
1225
|
ml: [{ ml: D() }],
|
|
1220
|
-
"space-x": [{ "space-x":
|
|
1226
|
+
"space-x": [{ "space-x": S() }],
|
|
1221
1227
|
"space-x-reverse": ["space-x-reverse"],
|
|
1222
|
-
"space-y": [{ "space-y":
|
|
1228
|
+
"space-y": [{ "space-y": S() }],
|
|
1223
1229
|
"space-y-reverse": ["space-y-reverse"],
|
|
1224
1230
|
size: [{ size: O() }],
|
|
1225
|
-
"inline-size": [{ inline: ["auto", ...
|
|
1226
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
1227
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
1228
|
-
"block-size": [{ block: ["auto", ...
|
|
1229
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
1230
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
1231
|
+
"inline-size": [{ inline: ["auto", ...ae()] }],
|
|
1232
|
+
"min-inline-size": [{ "min-inline": ["auto", ...ae()] }],
|
|
1233
|
+
"max-inline-size": [{ "max-inline": ["none", ...ae()] }],
|
|
1234
|
+
"block-size": [{ block: ["auto", ...oe()] }],
|
|
1235
|
+
"min-block-size": [{ "min-block": ["auto", ...oe()] }],
|
|
1236
|
+
"max-block-size": [{ "max-block": ["none", ...oe()] }],
|
|
1231
1237
|
w: [{ w: [
|
|
1232
1238
|
s,
|
|
1233
1239
|
"screen",
|
|
@@ -1266,15 +1272,15 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1266
1272
|
"font-size": [{ text: [
|
|
1267
1273
|
"base",
|
|
1268
1274
|
n,
|
|
1269
|
-
|
|
1270
|
-
|
|
1275
|
+
At,
|
|
1276
|
+
X
|
|
1271
1277
|
] }],
|
|
1272
1278
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1273
1279
|
"font-style": ["italic", "not-italic"],
|
|
1274
1280
|
"font-weight": [{ font: [
|
|
1275
1281
|
r,
|
|
1276
|
-
|
|
1277
|
-
|
|
1282
|
+
It,
|
|
1283
|
+
Tt
|
|
1278
1284
|
] }],
|
|
1279
1285
|
"font-stretch": [{ "font-stretch": [
|
|
1280
1286
|
"ultra-condensed",
|
|
@@ -1286,15 +1292,15 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1286
1292
|
"expanded",
|
|
1287
1293
|
"extra-expanded",
|
|
1288
1294
|
"ultra-expanded",
|
|
1289
|
-
|
|
1290
|
-
|
|
1295
|
+
gt,
|
|
1296
|
+
Y
|
|
1291
1297
|
] }],
|
|
1292
1298
|
"font-family": [{ font: [
|
|
1293
|
-
|
|
1294
|
-
|
|
1299
|
+
jt,
|
|
1300
|
+
Et,
|
|
1295
1301
|
t
|
|
1296
1302
|
] }],
|
|
1297
|
-
"font-features": [{ "font-features": [
|
|
1303
|
+
"font-features": [{ "font-features": [Y] }],
|
|
1298
1304
|
"fvn-normal": ["normal-nums"],
|
|
1299
1305
|
"fvn-ordinal": ["ordinal"],
|
|
1300
1306
|
"fvn-slashed-zero": ["slashed-zero"],
|
|
@@ -1303,28 +1309,28 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1303
1309
|
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
1304
1310
|
tracking: [{ tracking: [
|
|
1305
1311
|
i,
|
|
1306
|
-
|
|
1307
|
-
|
|
1312
|
+
Z,
|
|
1313
|
+
Y
|
|
1308
1314
|
] }],
|
|
1309
1315
|
"line-clamp": [{ "line-clamp": [
|
|
1310
|
-
|
|
1316
|
+
K,
|
|
1311
1317
|
"none",
|
|
1312
|
-
|
|
1313
|
-
|
|
1318
|
+
Z,
|
|
1319
|
+
wt
|
|
1314
1320
|
] }],
|
|
1315
|
-
leading: [{ leading: [a, ...
|
|
1321
|
+
leading: [{ leading: [a, ...S()] }],
|
|
1316
1322
|
"list-image": [{ "list-image": [
|
|
1317
1323
|
"none",
|
|
1318
|
-
|
|
1319
|
-
|
|
1324
|
+
Z,
|
|
1325
|
+
Y
|
|
1320
1326
|
] }],
|
|
1321
1327
|
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
1322
1328
|
"list-style-type": [{ list: [
|
|
1323
1329
|
"disc",
|
|
1324
1330
|
"decimal",
|
|
1325
1331
|
"none",
|
|
1326
|
-
|
|
1327
|
-
|
|
1332
|
+
Z,
|
|
1333
|
+
Y
|
|
1328
1334
|
] }],
|
|
1329
1335
|
"text-alignment": [{ text: [
|
|
1330
1336
|
"left",
|
|
@@ -1334,28 +1340,28 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1334
1340
|
"start",
|
|
1335
1341
|
"end"
|
|
1336
1342
|
] }],
|
|
1337
|
-
"placeholder-color": [{ placeholder:
|
|
1338
|
-
"text-color": [{ text:
|
|
1343
|
+
"placeholder-color": [{ placeholder: k() }],
|
|
1344
|
+
"text-color": [{ text: k() }],
|
|
1339
1345
|
"text-decoration": [
|
|
1340
1346
|
"underline",
|
|
1341
1347
|
"overline",
|
|
1342
1348
|
"line-through",
|
|
1343
1349
|
"no-underline"
|
|
1344
1350
|
],
|
|
1345
|
-
"text-decoration-style": [{ decoration: [...
|
|
1351
|
+
"text-decoration-style": [{ decoration: [...P(), "wavy"] }],
|
|
1346
1352
|
"text-decoration-thickness": [{ decoration: [
|
|
1347
|
-
|
|
1353
|
+
K,
|
|
1348
1354
|
"from-font",
|
|
1349
1355
|
"auto",
|
|
1350
|
-
|
|
1351
|
-
|
|
1356
|
+
Z,
|
|
1357
|
+
X
|
|
1352
1358
|
] }],
|
|
1353
|
-
"text-decoration-color": [{ decoration:
|
|
1359
|
+
"text-decoration-color": [{ decoration: k() }],
|
|
1354
1360
|
"underline-offset": [{ "underline-offset": [
|
|
1355
|
-
|
|
1361
|
+
K,
|
|
1356
1362
|
"auto",
|
|
1357
|
-
|
|
1358
|
-
|
|
1363
|
+
Z,
|
|
1364
|
+
Y
|
|
1359
1365
|
] }],
|
|
1360
1366
|
"text-transform": [
|
|
1361
1367
|
"uppercase",
|
|
@@ -1374,7 +1380,7 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1374
1380
|
"balance",
|
|
1375
1381
|
"pretty"
|
|
1376
1382
|
] }],
|
|
1377
|
-
indent: [{ indent:
|
|
1383
|
+
indent: [{ indent: S() }],
|
|
1378
1384
|
"vertical-align": [{ align: [
|
|
1379
1385
|
"baseline",
|
|
1380
1386
|
"top",
|
|
@@ -1384,8 +1390,8 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1384
1390
|
"text-bottom",
|
|
1385
1391
|
"sub",
|
|
1386
1392
|
"super",
|
|
1387
|
-
|
|
1388
|
-
|
|
1393
|
+
Z,
|
|
1394
|
+
Y
|
|
1389
1395
|
] }],
|
|
1390
1396
|
whitespace: [{ whitespace: [
|
|
1391
1397
|
"normal",
|
|
@@ -1413,8 +1419,8 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1413
1419
|
] }],
|
|
1414
1420
|
content: [{ content: [
|
|
1415
1421
|
"none",
|
|
1416
|
-
|
|
1417
|
-
|
|
1422
|
+
Z,
|
|
1423
|
+
Y
|
|
1418
1424
|
] }],
|
|
1419
1425
|
"bg-attachment": [{ bg: [
|
|
1420
1426
|
"fixed",
|
|
@@ -1432,9 +1438,9 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1432
1438
|
"padding",
|
|
1433
1439
|
"content"
|
|
1434
1440
|
] }],
|
|
1435
|
-
"bg-position": [{ bg:
|
|
1436
|
-
"bg-repeat": [{ bg:
|
|
1437
|
-
"bg-size": [{ bg:
|
|
1441
|
+
"bg-position": [{ bg: A() }],
|
|
1442
|
+
"bg-repeat": [{ bg: se() }],
|
|
1443
|
+
"bg-size": [{ bg: j() }],
|
|
1438
1444
|
"bg-image": [{ bg: [
|
|
1439
1445
|
"none",
|
|
1440
1446
|
{
|
|
@@ -1449,140 +1455,140 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1449
1455
|
"l",
|
|
1450
1456
|
"tl"
|
|
1451
1457
|
] },
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1458
|
+
q,
|
|
1459
|
+
Z,
|
|
1460
|
+
Y
|
|
1455
1461
|
],
|
|
1456
1462
|
radial: [
|
|
1457
1463
|
"",
|
|
1458
|
-
|
|
1459
|
-
|
|
1464
|
+
Z,
|
|
1465
|
+
Y
|
|
1460
1466
|
],
|
|
1461
1467
|
conic: [
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1468
|
+
q,
|
|
1469
|
+
Z,
|
|
1470
|
+
Y
|
|
1465
1471
|
]
|
|
1466
1472
|
},
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
] }],
|
|
1470
|
-
"bg-color": [{ bg:
|
|
1471
|
-
"gradient-from-pos": [{ from:
|
|
1472
|
-
"gradient-via-pos": [{ via:
|
|
1473
|
-
"gradient-to-pos": [{ to:
|
|
1474
|
-
"gradient-from": [{ from:
|
|
1475
|
-
"gradient-via": [{ via:
|
|
1476
|
-
"gradient-to": [{ to:
|
|
1477
|
-
rounded: [{ rounded:
|
|
1478
|
-
"rounded-s": [{ "rounded-s":
|
|
1479
|
-
"rounded-e": [{ "rounded-e":
|
|
1480
|
-
"rounded-t": [{ "rounded-t":
|
|
1481
|
-
"rounded-r": [{ "rounded-r":
|
|
1482
|
-
"rounded-b": [{ "rounded-b":
|
|
1483
|
-
"rounded-l": [{ "rounded-l":
|
|
1484
|
-
"rounded-ss": [{ "rounded-ss":
|
|
1485
|
-
"rounded-se": [{ "rounded-se":
|
|
1486
|
-
"rounded-ee": [{ "rounded-ee":
|
|
1487
|
-
"rounded-es": [{ "rounded-es":
|
|
1488
|
-
"rounded-tl": [{ "rounded-tl":
|
|
1489
|
-
"rounded-tr": [{ "rounded-tr":
|
|
1490
|
-
"rounded-br": [{ "rounded-br":
|
|
1491
|
-
"rounded-bl": [{ "rounded-bl":
|
|
1492
|
-
"border-w": [{ border:
|
|
1493
|
-
"border-w-x": [{ "border-x":
|
|
1494
|
-
"border-w-y": [{ "border-y":
|
|
1495
|
-
"border-w-s": [{ "border-s":
|
|
1496
|
-
"border-w-e": [{ "border-e":
|
|
1497
|
-
"border-w-bs": [{ "border-bs":
|
|
1498
|
-
"border-w-be": [{ "border-be":
|
|
1499
|
-
"border-w-t": [{ "border-t":
|
|
1500
|
-
"border-w-r": [{ "border-r":
|
|
1501
|
-
"border-w-b": [{ "border-b":
|
|
1502
|
-
"border-w-l": [{ "border-l":
|
|
1503
|
-
"divide-x": [{ "divide-x":
|
|
1473
|
+
Pt,
|
|
1474
|
+
Ot
|
|
1475
|
+
] }],
|
|
1476
|
+
"bg-color": [{ bg: k() }],
|
|
1477
|
+
"gradient-from-pos": [{ from: ce() }],
|
|
1478
|
+
"gradient-via-pos": [{ via: ce() }],
|
|
1479
|
+
"gradient-to-pos": [{ to: ce() }],
|
|
1480
|
+
"gradient-from": [{ from: k() }],
|
|
1481
|
+
"gradient-via": [{ via: k() }],
|
|
1482
|
+
"gradient-to": [{ to: k() }],
|
|
1483
|
+
rounded: [{ rounded: M() }],
|
|
1484
|
+
"rounded-s": [{ "rounded-s": M() }],
|
|
1485
|
+
"rounded-e": [{ "rounded-e": M() }],
|
|
1486
|
+
"rounded-t": [{ "rounded-t": M() }],
|
|
1487
|
+
"rounded-r": [{ "rounded-r": M() }],
|
|
1488
|
+
"rounded-b": [{ "rounded-b": M() }],
|
|
1489
|
+
"rounded-l": [{ "rounded-l": M() }],
|
|
1490
|
+
"rounded-ss": [{ "rounded-ss": M() }],
|
|
1491
|
+
"rounded-se": [{ "rounded-se": M() }],
|
|
1492
|
+
"rounded-ee": [{ "rounded-ee": M() }],
|
|
1493
|
+
"rounded-es": [{ "rounded-es": M() }],
|
|
1494
|
+
"rounded-tl": [{ "rounded-tl": M() }],
|
|
1495
|
+
"rounded-tr": [{ "rounded-tr": M() }],
|
|
1496
|
+
"rounded-br": [{ "rounded-br": M() }],
|
|
1497
|
+
"rounded-bl": [{ "rounded-bl": M() }],
|
|
1498
|
+
"border-w": [{ border: N() }],
|
|
1499
|
+
"border-w-x": [{ "border-x": N() }],
|
|
1500
|
+
"border-w-y": [{ "border-y": N() }],
|
|
1501
|
+
"border-w-s": [{ "border-s": N() }],
|
|
1502
|
+
"border-w-e": [{ "border-e": N() }],
|
|
1503
|
+
"border-w-bs": [{ "border-bs": N() }],
|
|
1504
|
+
"border-w-be": [{ "border-be": N() }],
|
|
1505
|
+
"border-w-t": [{ "border-t": N() }],
|
|
1506
|
+
"border-w-r": [{ "border-r": N() }],
|
|
1507
|
+
"border-w-b": [{ "border-b": N() }],
|
|
1508
|
+
"border-w-l": [{ "border-l": N() }],
|
|
1509
|
+
"divide-x": [{ "divide-x": N() }],
|
|
1504
1510
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
1505
|
-
"divide-y": [{ "divide-y":
|
|
1511
|
+
"divide-y": [{ "divide-y": N() }],
|
|
1506
1512
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1507
1513
|
"border-style": [{ border: [
|
|
1508
|
-
...
|
|
1514
|
+
...P(),
|
|
1509
1515
|
"hidden",
|
|
1510
1516
|
"none"
|
|
1511
1517
|
] }],
|
|
1512
1518
|
"divide-style": [{ divide: [
|
|
1513
|
-
...
|
|
1519
|
+
...P(),
|
|
1514
1520
|
"hidden",
|
|
1515
1521
|
"none"
|
|
1516
1522
|
] }],
|
|
1517
|
-
"border-color": [{ border:
|
|
1518
|
-
"border-color-x": [{ "border-x":
|
|
1519
|
-
"border-color-y": [{ "border-y":
|
|
1520
|
-
"border-color-s": [{ "border-s":
|
|
1521
|
-
"border-color-e": [{ "border-e":
|
|
1522
|
-
"border-color-bs": [{ "border-bs":
|
|
1523
|
-
"border-color-be": [{ "border-be":
|
|
1524
|
-
"border-color-t": [{ "border-t":
|
|
1525
|
-
"border-color-r": [{ "border-r":
|
|
1526
|
-
"border-color-b": [{ "border-b":
|
|
1527
|
-
"border-color-l": [{ "border-l":
|
|
1528
|
-
"divide-color": [{ divide:
|
|
1523
|
+
"border-color": [{ border: k() }],
|
|
1524
|
+
"border-color-x": [{ "border-x": k() }],
|
|
1525
|
+
"border-color-y": [{ "border-y": k() }],
|
|
1526
|
+
"border-color-s": [{ "border-s": k() }],
|
|
1527
|
+
"border-color-e": [{ "border-e": k() }],
|
|
1528
|
+
"border-color-bs": [{ "border-bs": k() }],
|
|
1529
|
+
"border-color-be": [{ "border-be": k() }],
|
|
1530
|
+
"border-color-t": [{ "border-t": k() }],
|
|
1531
|
+
"border-color-r": [{ "border-r": k() }],
|
|
1532
|
+
"border-color-b": [{ "border-b": k() }],
|
|
1533
|
+
"border-color-l": [{ "border-l": k() }],
|
|
1534
|
+
"divide-color": [{ divide: k() }],
|
|
1529
1535
|
"outline-style": [{ outline: [
|
|
1530
|
-
...
|
|
1536
|
+
...P(),
|
|
1531
1537
|
"none",
|
|
1532
1538
|
"hidden"
|
|
1533
1539
|
] }],
|
|
1534
1540
|
"outline-offset": [{ "outline-offset": [
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1541
|
+
K,
|
|
1542
|
+
Z,
|
|
1543
|
+
Y
|
|
1538
1544
|
] }],
|
|
1539
1545
|
"outline-w": [{ outline: [
|
|
1540
1546
|
"",
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1547
|
+
K,
|
|
1548
|
+
At,
|
|
1549
|
+
X
|
|
1544
1550
|
] }],
|
|
1545
|
-
"outline-color": [{ outline:
|
|
1551
|
+
"outline-color": [{ outline: k() }],
|
|
1546
1552
|
shadow: [{ shadow: [
|
|
1547
1553
|
"",
|
|
1548
1554
|
"none",
|
|
1549
1555
|
u,
|
|
1550
|
-
|
|
1551
|
-
|
|
1556
|
+
Ft,
|
|
1557
|
+
kt
|
|
1552
1558
|
] }],
|
|
1553
|
-
"shadow-color": [{ shadow:
|
|
1559
|
+
"shadow-color": [{ shadow: k() }],
|
|
1554
1560
|
"inset-shadow": [{ "inset-shadow": [
|
|
1555
1561
|
"none",
|
|
1556
1562
|
d,
|
|
1557
|
-
|
|
1558
|
-
|
|
1563
|
+
Ft,
|
|
1564
|
+
kt
|
|
1559
1565
|
] }],
|
|
1560
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
1561
|
-
"ring-w": [{ ring:
|
|
1566
|
+
"inset-shadow-color": [{ "inset-shadow": k() }],
|
|
1567
|
+
"ring-w": [{ ring: N() }],
|
|
1562
1568
|
"ring-w-inset": ["ring-inset"],
|
|
1563
|
-
"ring-color": [{ ring:
|
|
1564
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
1565
|
-
"ring-offset-color": [{ "ring-offset":
|
|
1566
|
-
"inset-ring-w": [{ "inset-ring":
|
|
1567
|
-
"inset-ring-color": [{ "inset-ring":
|
|
1569
|
+
"ring-color": [{ ring: k() }],
|
|
1570
|
+
"ring-offset-w": [{ "ring-offset": [K, X] }],
|
|
1571
|
+
"ring-offset-color": [{ "ring-offset": k() }],
|
|
1572
|
+
"inset-ring-w": [{ "inset-ring": N() }],
|
|
1573
|
+
"inset-ring-color": [{ "inset-ring": k() }],
|
|
1568
1574
|
"text-shadow": [{ "text-shadow": [
|
|
1569
1575
|
"none",
|
|
1570
1576
|
f,
|
|
1571
|
-
|
|
1572
|
-
|
|
1577
|
+
Ft,
|
|
1578
|
+
kt
|
|
1573
1579
|
] }],
|
|
1574
|
-
"text-shadow-color": [{ "text-shadow":
|
|
1580
|
+
"text-shadow-color": [{ "text-shadow": k() }],
|
|
1575
1581
|
opacity: [{ opacity: [
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1582
|
+
K,
|
|
1583
|
+
Z,
|
|
1584
|
+
Y
|
|
1579
1585
|
] }],
|
|
1580
1586
|
"mix-blend": [{ "mix-blend": [
|
|
1581
|
-
...
|
|
1587
|
+
...F(),
|
|
1582
1588
|
"plus-darker",
|
|
1583
1589
|
"plus-lighter"
|
|
1584
1590
|
] }],
|
|
1585
|
-
"bg-blend": [{ "bg-blend":
|
|
1591
|
+
"bg-blend": [{ "bg-blend": F() }],
|
|
1586
1592
|
"mask-clip": [{ "mask-clip": [
|
|
1587
1593
|
"border",
|
|
1588
1594
|
"padding",
|
|
@@ -1597,51 +1603,51 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1597
1603
|
"intersect",
|
|
1598
1604
|
"exclude"
|
|
1599
1605
|
] }],
|
|
1600
|
-
"mask-image-linear-pos": [{ "mask-linear": [
|
|
1606
|
+
"mask-image-linear-pos": [{ "mask-linear": [K] }],
|
|
1601
1607
|
"mask-image-linear-from-pos": [{ "mask-linear-from": I() }],
|
|
1602
1608
|
"mask-image-linear-to-pos": [{ "mask-linear-to": I() }],
|
|
1603
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
1604
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
1609
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": k() }],
|
|
1610
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": k() }],
|
|
1605
1611
|
"mask-image-t-from-pos": [{ "mask-t-from": I() }],
|
|
1606
1612
|
"mask-image-t-to-pos": [{ "mask-t-to": I() }],
|
|
1607
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
1608
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
1613
|
+
"mask-image-t-from-color": [{ "mask-t-from": k() }],
|
|
1614
|
+
"mask-image-t-to-color": [{ "mask-t-to": k() }],
|
|
1609
1615
|
"mask-image-r-from-pos": [{ "mask-r-from": I() }],
|
|
1610
1616
|
"mask-image-r-to-pos": [{ "mask-r-to": I() }],
|
|
1611
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
1612
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
1617
|
+
"mask-image-r-from-color": [{ "mask-r-from": k() }],
|
|
1618
|
+
"mask-image-r-to-color": [{ "mask-r-to": k() }],
|
|
1613
1619
|
"mask-image-b-from-pos": [{ "mask-b-from": I() }],
|
|
1614
1620
|
"mask-image-b-to-pos": [{ "mask-b-to": I() }],
|
|
1615
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
1616
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
1621
|
+
"mask-image-b-from-color": [{ "mask-b-from": k() }],
|
|
1622
|
+
"mask-image-b-to-color": [{ "mask-b-to": k() }],
|
|
1617
1623
|
"mask-image-l-from-pos": [{ "mask-l-from": I() }],
|
|
1618
1624
|
"mask-image-l-to-pos": [{ "mask-l-to": I() }],
|
|
1619
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
1620
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
1625
|
+
"mask-image-l-from-color": [{ "mask-l-from": k() }],
|
|
1626
|
+
"mask-image-l-to-color": [{ "mask-l-to": k() }],
|
|
1621
1627
|
"mask-image-x-from-pos": [{ "mask-x-from": I() }],
|
|
1622
1628
|
"mask-image-x-to-pos": [{ "mask-x-to": I() }],
|
|
1623
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
1624
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
1629
|
+
"mask-image-x-from-color": [{ "mask-x-from": k() }],
|
|
1630
|
+
"mask-image-x-to-color": [{ "mask-x-to": k() }],
|
|
1625
1631
|
"mask-image-y-from-pos": [{ "mask-y-from": I() }],
|
|
1626
1632
|
"mask-image-y-to-pos": [{ "mask-y-to": I() }],
|
|
1627
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
1628
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
1629
|
-
"mask-image-radial": [{ "mask-radial": [
|
|
1633
|
+
"mask-image-y-from-color": [{ "mask-y-from": k() }],
|
|
1634
|
+
"mask-image-y-to-color": [{ "mask-y-to": k() }],
|
|
1635
|
+
"mask-image-radial": [{ "mask-radial": [Z, Y] }],
|
|
1630
1636
|
"mask-image-radial-from-pos": [{ "mask-radial-from": I() }],
|
|
1631
1637
|
"mask-image-radial-to-pos": [{ "mask-radial-to": I() }],
|
|
1632
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
1633
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
1638
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": k() }],
|
|
1639
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": k() }],
|
|
1634
1640
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1635
1641
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1636
1642
|
closest: ["side", "corner"],
|
|
1637
1643
|
farthest: ["side", "corner"]
|
|
1638
1644
|
}] }],
|
|
1639
|
-
"mask-image-radial-pos": [{ "mask-radial-at":
|
|
1640
|
-
"mask-image-conic-pos": [{ "mask-conic": [
|
|
1645
|
+
"mask-image-radial-pos": [{ "mask-radial-at": ee() }],
|
|
1646
|
+
"mask-image-conic-pos": [{ "mask-conic": [K] }],
|
|
1641
1647
|
"mask-image-conic-from-pos": [{ "mask-conic-from": I() }],
|
|
1642
1648
|
"mask-image-conic-to-pos": [{ "mask-conic-to": I() }],
|
|
1643
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
1644
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
1649
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": k() }],
|
|
1650
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": k() }],
|
|
1645
1651
|
"mask-mode": [{ mask: [
|
|
1646
1652
|
"alpha",
|
|
1647
1653
|
"luminance",
|
|
@@ -1655,122 +1661,122 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1655
1661
|
"stroke",
|
|
1656
1662
|
"view"
|
|
1657
1663
|
] }],
|
|
1658
|
-
"mask-position": [{ mask:
|
|
1659
|
-
"mask-repeat": [{ mask:
|
|
1660
|
-
"mask-size": [{ mask:
|
|
1664
|
+
"mask-position": [{ mask: A() }],
|
|
1665
|
+
"mask-repeat": [{ mask: se() }],
|
|
1666
|
+
"mask-size": [{ mask: j() }],
|
|
1661
1667
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1662
1668
|
"mask-image": [{ mask: [
|
|
1663
1669
|
"none",
|
|
1664
|
-
|
|
1665
|
-
|
|
1670
|
+
Z,
|
|
1671
|
+
Y
|
|
1666
1672
|
] }],
|
|
1667
1673
|
filter: [{ filter: [
|
|
1668
1674
|
"",
|
|
1669
1675
|
"none",
|
|
1670
|
-
|
|
1671
|
-
|
|
1676
|
+
Z,
|
|
1677
|
+
Y
|
|
1672
1678
|
] }],
|
|
1673
1679
|
blur: [{ blur: L() }],
|
|
1674
1680
|
brightness: [{ brightness: [
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1681
|
+
K,
|
|
1682
|
+
Z,
|
|
1683
|
+
Y
|
|
1678
1684
|
] }],
|
|
1679
1685
|
contrast: [{ contrast: [
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1686
|
+
K,
|
|
1687
|
+
Z,
|
|
1688
|
+
Y
|
|
1683
1689
|
] }],
|
|
1684
1690
|
"drop-shadow": [{ "drop-shadow": [
|
|
1685
1691
|
"",
|
|
1686
1692
|
"none",
|
|
1687
1693
|
p,
|
|
1688
|
-
|
|
1689
|
-
|
|
1694
|
+
Ft,
|
|
1695
|
+
kt
|
|
1690
1696
|
] }],
|
|
1691
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
1697
|
+
"drop-shadow-color": [{ "drop-shadow": k() }],
|
|
1692
1698
|
grayscale: [{ grayscale: [
|
|
1693
1699
|
"",
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1700
|
+
K,
|
|
1701
|
+
Z,
|
|
1702
|
+
Y
|
|
1697
1703
|
] }],
|
|
1698
1704
|
"hue-rotate": [{ "hue-rotate": [
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1705
|
+
K,
|
|
1706
|
+
Z,
|
|
1707
|
+
Y
|
|
1702
1708
|
] }],
|
|
1703
1709
|
invert: [{ invert: [
|
|
1704
1710
|
"",
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1711
|
+
K,
|
|
1712
|
+
Z,
|
|
1713
|
+
Y
|
|
1708
1714
|
] }],
|
|
1709
1715
|
saturate: [{ saturate: [
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1716
|
+
K,
|
|
1717
|
+
Z,
|
|
1718
|
+
Y
|
|
1713
1719
|
] }],
|
|
1714
1720
|
sepia: [{ sepia: [
|
|
1715
1721
|
"",
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1722
|
+
K,
|
|
1723
|
+
Z,
|
|
1724
|
+
Y
|
|
1719
1725
|
] }],
|
|
1720
1726
|
"backdrop-filter": [{ "backdrop-filter": [
|
|
1721
1727
|
"",
|
|
1722
1728
|
"none",
|
|
1723
|
-
|
|
1724
|
-
|
|
1729
|
+
Z,
|
|
1730
|
+
Y
|
|
1725
1731
|
] }],
|
|
1726
1732
|
"backdrop-blur": [{ "backdrop-blur": L() }],
|
|
1727
1733
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1734
|
+
K,
|
|
1735
|
+
Z,
|
|
1736
|
+
Y
|
|
1731
1737
|
] }],
|
|
1732
1738
|
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1739
|
+
K,
|
|
1740
|
+
Z,
|
|
1741
|
+
Y
|
|
1736
1742
|
] }],
|
|
1737
1743
|
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1738
1744
|
"",
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1745
|
+
K,
|
|
1746
|
+
Z,
|
|
1747
|
+
Y
|
|
1742
1748
|
] }],
|
|
1743
1749
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1750
|
+
K,
|
|
1751
|
+
Z,
|
|
1752
|
+
Y
|
|
1747
1753
|
] }],
|
|
1748
1754
|
"backdrop-invert": [{ "backdrop-invert": [
|
|
1749
1755
|
"",
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1756
|
+
K,
|
|
1757
|
+
Z,
|
|
1758
|
+
Y
|
|
1753
1759
|
] }],
|
|
1754
1760
|
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1761
|
+
K,
|
|
1762
|
+
Z,
|
|
1763
|
+
Y
|
|
1758
1764
|
] }],
|
|
1759
1765
|
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1766
|
+
K,
|
|
1767
|
+
Z,
|
|
1768
|
+
Y
|
|
1763
1769
|
] }],
|
|
1764
1770
|
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1765
1771
|
"",
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1772
|
+
K,
|
|
1773
|
+
Z,
|
|
1774
|
+
Y
|
|
1769
1775
|
] }],
|
|
1770
1776
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1771
|
-
"border-spacing": [{ "border-spacing":
|
|
1772
|
-
"border-spacing-x": [{ "border-spacing-x":
|
|
1773
|
-
"border-spacing-y": [{ "border-spacing-y":
|
|
1777
|
+
"border-spacing": [{ "border-spacing": S() }],
|
|
1778
|
+
"border-spacing-x": [{ "border-spacing-x": S() }],
|
|
1779
|
+
"border-spacing-y": [{ "border-spacing-y": S() }],
|
|
1774
1780
|
"table-layout": [{ table: ["auto", "fixed"] }],
|
|
1775
1781
|
caption: [{ caption: ["top", "bottom"] }],
|
|
1776
1782
|
transition: [{ transition: [
|
|
@@ -1781,41 +1787,41 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1781
1787
|
"shadow",
|
|
1782
1788
|
"transform",
|
|
1783
1789
|
"none",
|
|
1784
|
-
|
|
1785
|
-
|
|
1790
|
+
Z,
|
|
1791
|
+
Y
|
|
1786
1792
|
] }],
|
|
1787
1793
|
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1788
1794
|
duration: [{ duration: [
|
|
1789
|
-
|
|
1795
|
+
K,
|
|
1790
1796
|
"initial",
|
|
1791
|
-
|
|
1792
|
-
|
|
1797
|
+
Z,
|
|
1798
|
+
Y
|
|
1793
1799
|
] }],
|
|
1794
1800
|
ease: [{ ease: [
|
|
1795
1801
|
"linear",
|
|
1796
1802
|
"initial",
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1803
|
+
_,
|
|
1804
|
+
Z,
|
|
1805
|
+
Y
|
|
1800
1806
|
] }],
|
|
1801
1807
|
delay: [{ delay: [
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1808
|
+
K,
|
|
1809
|
+
Z,
|
|
1810
|
+
Y
|
|
1805
1811
|
] }],
|
|
1806
1812
|
animate: [{ animate: [
|
|
1807
1813
|
"none",
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1814
|
+
v,
|
|
1815
|
+
Z,
|
|
1816
|
+
Y
|
|
1811
1817
|
] }],
|
|
1812
1818
|
backface: [{ backface: ["hidden", "visible"] }],
|
|
1813
1819
|
perspective: [{ perspective: [
|
|
1814
1820
|
h,
|
|
1815
|
-
|
|
1816
|
-
|
|
1821
|
+
Z,
|
|
1822
|
+
Y
|
|
1817
1823
|
] }],
|
|
1818
|
-
"perspective-origin": [{ "perspective-origin":
|
|
1824
|
+
"perspective-origin": [{ "perspective-origin": b() }],
|
|
1819
1825
|
rotate: [{ rotate: R() }],
|
|
1820
1826
|
"rotate-x": [{ "rotate-x": R() }],
|
|
1821
1827
|
"rotate-y": [{ "rotate-y": R() }],
|
|
@@ -1829,23 +1835,23 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1829
1835
|
"skew-x": [{ "skew-x": B() }],
|
|
1830
1836
|
"skew-y": [{ "skew-y": B() }],
|
|
1831
1837
|
transform: [{ transform: [
|
|
1832
|
-
|
|
1833
|
-
|
|
1838
|
+
Z,
|
|
1839
|
+
Y,
|
|
1834
1840
|
"",
|
|
1835
1841
|
"none",
|
|
1836
1842
|
"gpu",
|
|
1837
1843
|
"cpu"
|
|
1838
1844
|
] }],
|
|
1839
|
-
"transform-origin": [{ origin:
|
|
1845
|
+
"transform-origin": [{ origin: b() }],
|
|
1840
1846
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1841
1847
|
translate: [{ translate: V() }],
|
|
1842
1848
|
"translate-x": [{ "translate-x": V() }],
|
|
1843
1849
|
"translate-y": [{ "translate-y": V() }],
|
|
1844
1850
|
"translate-z": [{ "translate-z": V() }],
|
|
1845
1851
|
"translate-none": ["translate-none"],
|
|
1846
|
-
accent: [{ accent:
|
|
1852
|
+
accent: [{ accent: k() }],
|
|
1847
1853
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
1848
|
-
"caret-color": [{ caret:
|
|
1854
|
+
"caret-color": [{ caret: k() }],
|
|
1849
1855
|
"color-scheme": [{ scheme: [
|
|
1850
1856
|
"normal",
|
|
1851
1857
|
"dark",
|
|
@@ -1891,8 +1897,8 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1891
1897
|
"nwse-resize",
|
|
1892
1898
|
"zoom-in",
|
|
1893
1899
|
"zoom-out",
|
|
1894
|
-
|
|
1895
|
-
|
|
1900
|
+
Z,
|
|
1901
|
+
Y
|
|
1896
1902
|
] }],
|
|
1897
1903
|
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
1898
1904
|
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
@@ -1903,28 +1909,28 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1903
1909
|
"x"
|
|
1904
1910
|
] }],
|
|
1905
1911
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
1906
|
-
"scroll-m": [{ "scroll-m":
|
|
1907
|
-
"scroll-mx": [{ "scroll-mx":
|
|
1908
|
-
"scroll-my": [{ "scroll-my":
|
|
1909
|
-
"scroll-ms": [{ "scroll-ms":
|
|
1910
|
-
"scroll-me": [{ "scroll-me":
|
|
1911
|
-
"scroll-mbs": [{ "scroll-mbs":
|
|
1912
|
-
"scroll-mbe": [{ "scroll-mbe":
|
|
1913
|
-
"scroll-mt": [{ "scroll-mt":
|
|
1914
|
-
"scroll-mr": [{ "scroll-mr":
|
|
1915
|
-
"scroll-mb": [{ "scroll-mb":
|
|
1916
|
-
"scroll-ml": [{ "scroll-ml":
|
|
1917
|
-
"scroll-p": [{ "scroll-p":
|
|
1918
|
-
"scroll-px": [{ "scroll-px":
|
|
1919
|
-
"scroll-py": [{ "scroll-py":
|
|
1920
|
-
"scroll-ps": [{ "scroll-ps":
|
|
1921
|
-
"scroll-pe": [{ "scroll-pe":
|
|
1922
|
-
"scroll-pbs": [{ "scroll-pbs":
|
|
1923
|
-
"scroll-pbe": [{ "scroll-pbe":
|
|
1924
|
-
"scroll-pt": [{ "scroll-pt":
|
|
1925
|
-
"scroll-pr": [{ "scroll-pr":
|
|
1926
|
-
"scroll-pb": [{ "scroll-pb":
|
|
1927
|
-
"scroll-pl": [{ "scroll-pl":
|
|
1912
|
+
"scroll-m": [{ "scroll-m": S() }],
|
|
1913
|
+
"scroll-mx": [{ "scroll-mx": S() }],
|
|
1914
|
+
"scroll-my": [{ "scroll-my": S() }],
|
|
1915
|
+
"scroll-ms": [{ "scroll-ms": S() }],
|
|
1916
|
+
"scroll-me": [{ "scroll-me": S() }],
|
|
1917
|
+
"scroll-mbs": [{ "scroll-mbs": S() }],
|
|
1918
|
+
"scroll-mbe": [{ "scroll-mbe": S() }],
|
|
1919
|
+
"scroll-mt": [{ "scroll-mt": S() }],
|
|
1920
|
+
"scroll-mr": [{ "scroll-mr": S() }],
|
|
1921
|
+
"scroll-mb": [{ "scroll-mb": S() }],
|
|
1922
|
+
"scroll-ml": [{ "scroll-ml": S() }],
|
|
1923
|
+
"scroll-p": [{ "scroll-p": S() }],
|
|
1924
|
+
"scroll-px": [{ "scroll-px": S() }],
|
|
1925
|
+
"scroll-py": [{ "scroll-py": S() }],
|
|
1926
|
+
"scroll-ps": [{ "scroll-ps": S() }],
|
|
1927
|
+
"scroll-pe": [{ "scroll-pe": S() }],
|
|
1928
|
+
"scroll-pbs": [{ "scroll-pbs": S() }],
|
|
1929
|
+
"scroll-pbe": [{ "scroll-pbe": S() }],
|
|
1930
|
+
"scroll-pt": [{ "scroll-pt": S() }],
|
|
1931
|
+
"scroll-pr": [{ "scroll-pr": S() }],
|
|
1932
|
+
"scroll-pb": [{ "scroll-pb": S() }],
|
|
1933
|
+
"scroll-pl": [{ "scroll-pl": S() }],
|
|
1928
1934
|
"snap-align": [{ snap: [
|
|
1929
1935
|
"start",
|
|
1930
1936
|
"end",
|
|
@@ -1966,17 +1972,17 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
1966
1972
|
"scroll",
|
|
1967
1973
|
"contents",
|
|
1968
1974
|
"transform",
|
|
1969
|
-
|
|
1970
|
-
|
|
1975
|
+
Z,
|
|
1976
|
+
Y
|
|
1971
1977
|
] }],
|
|
1972
|
-
fill: [{ fill: ["none", ...
|
|
1978
|
+
fill: [{ fill: ["none", ...k()] }],
|
|
1973
1979
|
"stroke-w": [{ stroke: [
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1980
|
+
K,
|
|
1981
|
+
At,
|
|
1982
|
+
X,
|
|
1983
|
+
wt
|
|
1978
1984
|
] }],
|
|
1979
|
-
stroke: [{ stroke: ["none", ...
|
|
1985
|
+
stroke: [{ stroke: ["none", ...k()] }],
|
|
1980
1986
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
1981
1987
|
},
|
|
1982
1988
|
conflictingClassGroups: {
|
|
@@ -2163,15 +2169,15 @@ var Te = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = we, De
|
|
|
2163
2169
|
});
|
|
2164
2170
|
//#endregion
|
|
2165
2171
|
//#region src/lib/utils.ts
|
|
2166
|
-
function
|
|
2167
|
-
return
|
|
2172
|
+
function Kt(...e) {
|
|
2173
|
+
return Gt(Ee(e));
|
|
2168
2174
|
}
|
|
2169
2175
|
//#endregion
|
|
2170
2176
|
//#region src/components/Button/button.tsx
|
|
2171
|
-
var
|
|
2177
|
+
var qt = ke("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer font-medium transition-colors", {
|
|
2172
2178
|
variants: {
|
|
2173
2179
|
variant: {
|
|
2174
|
-
default: "bg-primary
|
|
2180
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
2175
2181
|
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-red-500/60",
|
|
2176
2182
|
"destructive-secondary": "bg-red-50 text-red-600 dark:text-red-500 hover:bg-red-50/80 dark:bg-red-800/50 dark:hover:bg-red-800/70",
|
|
2177
2183
|
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
@@ -2197,10 +2203,10 @@ var Wt = De("inline-flex items-center justify-center gap-2 whitespace-nowrap rou
|
|
|
2197
2203
|
size: "default"
|
|
2198
2204
|
}
|
|
2199
2205
|
});
|
|
2200
|
-
function
|
|
2201
|
-
return /* @__PURE__ */ n(
|
|
2206
|
+
function Jt({ className: e, variant: t = "default", size: r = "default", ...i }) {
|
|
2207
|
+
return /* @__PURE__ */ n(we, {
|
|
2202
2208
|
"data-slot": "button",
|
|
2203
|
-
className:
|
|
2209
|
+
className: Kt(qt({
|
|
2204
2210
|
variant: t,
|
|
2205
2211
|
size: r,
|
|
2206
2212
|
className: e
|
|
@@ -2209,4 +2215,474 @@ function Gt({ className: e, variant: t = "default", size: r = "default", ...i })
|
|
|
2209
2215
|
});
|
|
2210
2216
|
}
|
|
2211
2217
|
//#endregion
|
|
2212
|
-
|
|
2218
|
+
//#region node_modules/@base-ui/utils/esm/useControlled.js
|
|
2219
|
+
function Yt({ controlled: t, default: n, name: r, state: i = "value" }) {
|
|
2220
|
+
let { current: a } = e.useRef(t !== void 0), [o, s] = e.useState(n), c = a ? t : o;
|
|
2221
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2222
|
+
e.useEffect(() => {
|
|
2223
|
+
a !== (t !== void 0) && g([
|
|
2224
|
+
`A component is changing the ${a ? "" : "un"}controlled ${i} state of ${r} to be ${a ? "un" : ""}controlled.`,
|
|
2225
|
+
"Elements should not switch from uncontrolled to controlled (or vice versa).",
|
|
2226
|
+
`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,
|
|
2227
|
+
"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",
|
|
2228
|
+
"More info: https://fb.me/react-controlled-components"
|
|
2229
|
+
].join("\n"));
|
|
2230
|
+
}, [
|
|
2231
|
+
i,
|
|
2232
|
+
r,
|
|
2233
|
+
t
|
|
2234
|
+
]);
|
|
2235
|
+
let { current: o } = e.useRef(n);
|
|
2236
|
+
e.useEffect(() => {
|
|
2237
|
+
!a && Xt(o) !== Xt(n) && g([`A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"));
|
|
2238
|
+
}, [n]);
|
|
2239
|
+
}
|
|
2240
|
+
return [c, e.useCallback((e) => {
|
|
2241
|
+
a || s(e);
|
|
2242
|
+
}, [])];
|
|
2243
|
+
}
|
|
2244
|
+
function Xt(e) {
|
|
2245
|
+
let t = 0, n = /* @__PURE__ */ new WeakMap();
|
|
2246
|
+
try {
|
|
2247
|
+
return JSON.stringify(e, function(e, r) {
|
|
2248
|
+
if (!(e === "_owner" && this != null && typeof this == "object" && "$$typeof" in this)) {
|
|
2249
|
+
if (typeof r == "bigint") return `__bigint__:${r}`;
|
|
2250
|
+
if (typeof r == "object" && r) {
|
|
2251
|
+
let e = n.get(r);
|
|
2252
|
+
if (e !== void 0) return `__object__:${e}`;
|
|
2253
|
+
n.set(r, t), t += 1;
|
|
2254
|
+
}
|
|
2255
|
+
return r;
|
|
2256
|
+
}
|
|
2257
|
+
}) ?? `__top__:${typeof e}`;
|
|
2258
|
+
} catch {
|
|
2259
|
+
return "__unserializable__";
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
//#endregion
|
|
2263
|
+
//#region node_modules/@base-ui/utils/esm/visuallyHidden.js
|
|
2264
|
+
var Zt = {
|
|
2265
|
+
clipPath: "inset(50%)",
|
|
2266
|
+
overflow: "hidden",
|
|
2267
|
+
whiteSpace: "nowrap",
|
|
2268
|
+
border: 0,
|
|
2269
|
+
padding: 0,
|
|
2270
|
+
width: 1,
|
|
2271
|
+
height: 1,
|
|
2272
|
+
margin: -1
|
|
2273
|
+
}, Qt = {
|
|
2274
|
+
...Zt,
|
|
2275
|
+
position: "fixed",
|
|
2276
|
+
top: 0,
|
|
2277
|
+
left: 0
|
|
2278
|
+
}, $t = {
|
|
2279
|
+
...Zt,
|
|
2280
|
+
position: "absolute"
|
|
2281
|
+
}, en = 0;
|
|
2282
|
+
function tn(t, n = "mui") {
|
|
2283
|
+
let [r, i] = e.useState(t), a = t || r;
|
|
2284
|
+
return e.useEffect(() => {
|
|
2285
|
+
r ?? (en += 1, i(`${n}-${en}`));
|
|
2286
|
+
}, [r, n]), a;
|
|
2287
|
+
}
|
|
2288
|
+
var nn = _.useId;
|
|
2289
|
+
function rn(e, t) {
|
|
2290
|
+
if (nn !== void 0) {
|
|
2291
|
+
let n = nn();
|
|
2292
|
+
return e ?? (t ? `${t}-${n}` : n);
|
|
2293
|
+
}
|
|
2294
|
+
return tn(e, t);
|
|
2295
|
+
}
|
|
2296
|
+
//#endregion
|
|
2297
|
+
//#region node_modules/@base-ui/react/esm/internals/useBaseUiId.js
|
|
2298
|
+
function an(e) {
|
|
2299
|
+
return rn(e, "base-ui");
|
|
2300
|
+
}
|
|
2301
|
+
//#endregion
|
|
2302
|
+
//#region node_modules/@base-ui/react/esm/switch/root/SwitchRootContext.js
|
|
2303
|
+
var on = /* @__PURE__ */ e.createContext(void 0);
|
|
2304
|
+
process.env.NODE_ENV !== "production" && (on.displayName = "SwitchRootContext");
|
|
2305
|
+
function sn() {
|
|
2306
|
+
let t = e.useContext(on);
|
|
2307
|
+
if (t === void 0) throw Error(process.env.NODE_ENV === "production" ? k(63) : "Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.");
|
|
2308
|
+
return t;
|
|
2309
|
+
}
|
|
2310
|
+
//#endregion
|
|
2311
|
+
//#region node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.js
|
|
2312
|
+
var cn = /* @__PURE__ */ function(e) {
|
|
2313
|
+
return e.disabled = "data-disabled", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.filled = "data-filled", e.focused = "data-focused", e;
|
|
2314
|
+
}({}), ln = {
|
|
2315
|
+
badInput: !1,
|
|
2316
|
+
customError: !1,
|
|
2317
|
+
patternMismatch: !1,
|
|
2318
|
+
rangeOverflow: !1,
|
|
2319
|
+
rangeUnderflow: !1,
|
|
2320
|
+
stepMismatch: !1,
|
|
2321
|
+
tooLong: !1,
|
|
2322
|
+
tooShort: !1,
|
|
2323
|
+
typeMismatch: !1,
|
|
2324
|
+
valid: null,
|
|
2325
|
+
valueMissing: !1
|
|
2326
|
+
}, un = {
|
|
2327
|
+
valid: null,
|
|
2328
|
+
touched: !1,
|
|
2329
|
+
dirty: !1,
|
|
2330
|
+
filled: !1,
|
|
2331
|
+
focused: !1
|
|
2332
|
+
}, dn = {
|
|
2333
|
+
disabled: !1,
|
|
2334
|
+
...un
|
|
2335
|
+
}, fn = { valid(e) {
|
|
2336
|
+
return e === null ? null : e ? { [cn.valid]: "" } : { [cn.invalid]: "" };
|
|
2337
|
+
} }, pn = /* @__PURE__ */ function(e) {
|
|
2338
|
+
return e.checked = "data-checked", e.unchecked = "data-unchecked", e.disabled = "data-disabled", e.readonly = "data-readonly", e.required = "data-required", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.filled = "data-filled", e.focused = "data-focused", e;
|
|
2339
|
+
}({}), mn = {
|
|
2340
|
+
...fn,
|
|
2341
|
+
checked(e) {
|
|
2342
|
+
return e ? { [pn.checked]: "" } : { [pn.unchecked]: "" };
|
|
2343
|
+
}
|
|
2344
|
+
}, hn = /* @__PURE__ */ e.createContext({
|
|
2345
|
+
invalid: void 0,
|
|
2346
|
+
name: void 0,
|
|
2347
|
+
validityData: {
|
|
2348
|
+
state: ln,
|
|
2349
|
+
errors: [],
|
|
2350
|
+
error: "",
|
|
2351
|
+
value: "",
|
|
2352
|
+
initialValue: null
|
|
2353
|
+
},
|
|
2354
|
+
setValidityData: H,
|
|
2355
|
+
disabled: void 0,
|
|
2356
|
+
touched: un.touched,
|
|
2357
|
+
setTouched: H,
|
|
2358
|
+
dirty: un.dirty,
|
|
2359
|
+
setDirty: H,
|
|
2360
|
+
filled: un.filled,
|
|
2361
|
+
setFilled: H,
|
|
2362
|
+
focused: un.focused,
|
|
2363
|
+
setFocused: H,
|
|
2364
|
+
validate: () => null,
|
|
2365
|
+
validationMode: "onSubmit",
|
|
2366
|
+
validationDebounceTime: 0,
|
|
2367
|
+
shouldValidateOnChange: () => !1,
|
|
2368
|
+
state: dn,
|
|
2369
|
+
markedDirtyRef: { current: !1 },
|
|
2370
|
+
registerFieldControl: H,
|
|
2371
|
+
validation: {
|
|
2372
|
+
getValidationProps: (e = U) => e,
|
|
2373
|
+
getInputValidationProps: (e = U) => e,
|
|
2374
|
+
inputRef: { current: null },
|
|
2375
|
+
commit: async () => {}
|
|
2376
|
+
}
|
|
2377
|
+
});
|
|
2378
|
+
process.env.NODE_ENV !== "production" && (hn.displayName = "FieldRootContext");
|
|
2379
|
+
function gn(t = !0) {
|
|
2380
|
+
let n = e.useContext(hn);
|
|
2381
|
+
if (n.setValidityData === H && !t) throw Error(process.env.NODE_ENV === "production" ? k(28) : "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");
|
|
2382
|
+
return n;
|
|
2383
|
+
}
|
|
2384
|
+
//#endregion
|
|
2385
|
+
//#region node_modules/@base-ui/react/esm/internals/field-register-control/useRegisterFieldControl.js
|
|
2386
|
+
function _n(t, n) {
|
|
2387
|
+
let { enabled: r = !0, getValue: i, id: a, value: o } = n, { registerFieldControl: s } = gn(), c = e.useRef(null);
|
|
2388
|
+
c.current ||= Symbol(), v(() => {
|
|
2389
|
+
let e = c.current;
|
|
2390
|
+
if (!(!e || !r)) return s(e, {
|
|
2391
|
+
controlRef: t,
|
|
2392
|
+
getValue: i,
|
|
2393
|
+
id: a,
|
|
2394
|
+
value: o
|
|
2395
|
+
}), () => {
|
|
2396
|
+
s(e, void 0);
|
|
2397
|
+
};
|
|
2398
|
+
}, [
|
|
2399
|
+
t,
|
|
2400
|
+
r,
|
|
2401
|
+
i,
|
|
2402
|
+
a,
|
|
2403
|
+
s,
|
|
2404
|
+
o
|
|
2405
|
+
]);
|
|
2406
|
+
}
|
|
2407
|
+
//#endregion
|
|
2408
|
+
//#region node_modules/@base-ui/react/esm/internals/form-context/FormContext.js
|
|
2409
|
+
var vn = /* @__PURE__ */ e.createContext({
|
|
2410
|
+
formRef: { current: { fields: /* @__PURE__ */ new Map() } },
|
|
2411
|
+
errors: {},
|
|
2412
|
+
clearErrors: H,
|
|
2413
|
+
validationMode: "onSubmit",
|
|
2414
|
+
submitAttemptedRef: { current: !1 }
|
|
2415
|
+
});
|
|
2416
|
+
process.env.NODE_ENV !== "production" && (vn.displayName = "FormContext");
|
|
2417
|
+
function yn() {
|
|
2418
|
+
return e.useContext(vn);
|
|
2419
|
+
}
|
|
2420
|
+
//#endregion
|
|
2421
|
+
//#region node_modules/@base-ui/react/esm/internals/labelable-provider/LabelableContext.js
|
|
2422
|
+
var bn = /* @__PURE__ */ e.createContext({
|
|
2423
|
+
controlId: void 0,
|
|
2424
|
+
registerControlId: H,
|
|
2425
|
+
labelId: void 0,
|
|
2426
|
+
setLabelId: H,
|
|
2427
|
+
messageIds: [],
|
|
2428
|
+
setMessageIds: H,
|
|
2429
|
+
getDescriptionProps: (e) => e
|
|
2430
|
+
});
|
|
2431
|
+
process.env.NODE_ENV !== "production" && (bn.displayName = "LabelableContext");
|
|
2432
|
+
function xn() {
|
|
2433
|
+
return e.useContext(bn);
|
|
2434
|
+
}
|
|
2435
|
+
//#endregion
|
|
2436
|
+
//#region node_modules/@base-ui/react/esm/internals/labelable-provider/useAriaLabelledBy.js
|
|
2437
|
+
function Sn(t, n, r, i = !0, a) {
|
|
2438
|
+
let [o, s] = e.useState(), c = an(a ? `${a}-label` : void 0), l = t ?? n ?? o;
|
|
2439
|
+
return v(() => {
|
|
2440
|
+
let e = t || n || !i ? void 0 : Cn(r.current, c);
|
|
2441
|
+
o !== e && s(e);
|
|
2442
|
+
}), l;
|
|
2443
|
+
}
|
|
2444
|
+
function Cn(e, t) {
|
|
2445
|
+
let n = wn(e);
|
|
2446
|
+
if (n) return !n.id && t && (n.id = t), n.id || void 0;
|
|
2447
|
+
}
|
|
2448
|
+
function wn(e) {
|
|
2449
|
+
if (!e) return;
|
|
2450
|
+
let t = e.parentElement;
|
|
2451
|
+
if (t && t.tagName === "LABEL") return t;
|
|
2452
|
+
let n = e.id;
|
|
2453
|
+
if (n) {
|
|
2454
|
+
let t = e.nextElementSibling;
|
|
2455
|
+
if (t && t.htmlFor === n) return t;
|
|
2456
|
+
}
|
|
2457
|
+
let r = e.labels;
|
|
2458
|
+
return r && r[0];
|
|
2459
|
+
}
|
|
2460
|
+
//#endregion
|
|
2461
|
+
//#region node_modules/@base-ui/react/esm/internals/labelable-provider/useLabelableId.js
|
|
2462
|
+
function Tn(t = {}) {
|
|
2463
|
+
let { id: n, implicit: r = !1, controlRef: i } = t, { controlId: a, registerControlId: s } = xn(), c = an(n), u = r ? a : void 0, d = l(() => Symbol("labelable-control")), p = e.useRef(!1), m = e.useRef(n != null), h = f(() => {
|
|
2464
|
+
!p.current || s === H || (p.current = !1, s(d.current, void 0));
|
|
2465
|
+
});
|
|
2466
|
+
return v(() => {
|
|
2467
|
+
if (s === H) return;
|
|
2468
|
+
let e;
|
|
2469
|
+
if (r) {
|
|
2470
|
+
let t = i?.current;
|
|
2471
|
+
e = o(t) && t.closest("label") != null ? n ?? null : u ?? c;
|
|
2472
|
+
} else if (n != null) m.current = !0, e = n;
|
|
2473
|
+
else if (m.current) e = c;
|
|
2474
|
+
else {
|
|
2475
|
+
h();
|
|
2476
|
+
return;
|
|
2477
|
+
}
|
|
2478
|
+
if (e === void 0) {
|
|
2479
|
+
h();
|
|
2480
|
+
return;
|
|
2481
|
+
}
|
|
2482
|
+
p.current = !0, s(d.current, e);
|
|
2483
|
+
}, [
|
|
2484
|
+
n,
|
|
2485
|
+
i,
|
|
2486
|
+
u,
|
|
2487
|
+
s,
|
|
2488
|
+
r,
|
|
2489
|
+
c,
|
|
2490
|
+
d,
|
|
2491
|
+
h
|
|
2492
|
+
]), e.useEffect(() => h, [h]), a ?? c;
|
|
2493
|
+
}
|
|
2494
|
+
//#endregion
|
|
2495
|
+
//#region node_modules/@base-ui/react/esm/internals/reason-parts.js
|
|
2496
|
+
var En = "none";
|
|
2497
|
+
//#endregion
|
|
2498
|
+
//#region node_modules/@base-ui/react/esm/internals/createBaseUIEventDetails.js
|
|
2499
|
+
function Dn(e, t, n, r) {
|
|
2500
|
+
let i = !1, a = !1, o = r ?? U;
|
|
2501
|
+
return {
|
|
2502
|
+
reason: e,
|
|
2503
|
+
event: t ?? new Event("base-ui"),
|
|
2504
|
+
cancel() {
|
|
2505
|
+
i = !0;
|
|
2506
|
+
},
|
|
2507
|
+
allowPropagation() {
|
|
2508
|
+
a = !0;
|
|
2509
|
+
},
|
|
2510
|
+
get isCanceled() {
|
|
2511
|
+
return i;
|
|
2512
|
+
},
|
|
2513
|
+
get isPropagationAllowed() {
|
|
2514
|
+
return a;
|
|
2515
|
+
},
|
|
2516
|
+
trigger: n,
|
|
2517
|
+
...o
|
|
2518
|
+
};
|
|
2519
|
+
}
|
|
2520
|
+
//#endregion
|
|
2521
|
+
//#region node_modules/@base-ui/react/esm/internals/useValueChanged.js
|
|
2522
|
+
function On(t, n) {
|
|
2523
|
+
let r = e.useRef(t), i = f(n);
|
|
2524
|
+
v(() => {
|
|
2525
|
+
r.current !== t && i(r.current);
|
|
2526
|
+
}, [t, i]), v(() => {
|
|
2527
|
+
r.current = t;
|
|
2528
|
+
}, [t]);
|
|
2529
|
+
}
|
|
2530
|
+
//#endregion
|
|
2531
|
+
//#region node_modules/@base-ui/react/esm/switch/root/SwitchRoot.js
|
|
2532
|
+
var kn = /* @__PURE__ */ e.forwardRef(function(t, i) {
|
|
2533
|
+
let { checked: a, className: o, defaultChecked: s, "aria-labelledby": c, form: l, id: u, inputRef: d, name: p, nativeButton: m = !1, onCheckedChange: h, readOnly: g = !1, required: _ = !1, disabled: y = !1, render: ee, uncheckedValue: te, value: x, style: S, ...C } = t, { clearErrors: ne } = yn(), { state: w, setTouched: T, setDirty: re, validityData: ie, setFilled: E, setFocused: D, shouldValidateOnChange: O, validationMode: ae, disabled: oe, name: k, validation: A } = gn(), { labelId: se } = xn(), j = oe || y, M = k ?? p, N = f(h), F = e.useRef(null), I = P(F, d, A.inputRef), L = e.useRef(null), R = an(), z = Tn({
|
|
2534
|
+
id: u,
|
|
2535
|
+
implicit: !1,
|
|
2536
|
+
controlRef: L
|
|
2537
|
+
}), B = m ? void 0 : z, [V, le] = Yt({
|
|
2538
|
+
controlled: a,
|
|
2539
|
+
default: !!s,
|
|
2540
|
+
name: "Switch",
|
|
2541
|
+
state: "checked"
|
|
2542
|
+
});
|
|
2543
|
+
_n(L, {
|
|
2544
|
+
id: R,
|
|
2545
|
+
value: V
|
|
2546
|
+
}), v(() => {
|
|
2547
|
+
F.current && E(F.current.checked);
|
|
2548
|
+
}, [F, E]), On(V, () => {
|
|
2549
|
+
ne(M), re(V !== ie.initialValue), E(V), O() ? A.commit(V) : A.commit(V, !0);
|
|
2550
|
+
});
|
|
2551
|
+
let { getButtonProps: ue, buttonRef: de } = ce({
|
|
2552
|
+
disabled: j,
|
|
2553
|
+
native: m
|
|
2554
|
+
}), H = Sn(c, se, F, !m, B), fe = {
|
|
2555
|
+
id: m ? z : R,
|
|
2556
|
+
role: "switch",
|
|
2557
|
+
"aria-checked": V,
|
|
2558
|
+
"aria-readonly": g || void 0,
|
|
2559
|
+
"aria-required": _ || void 0,
|
|
2560
|
+
"aria-labelledby": H,
|
|
2561
|
+
onFocus() {
|
|
2562
|
+
j || D(!0);
|
|
2563
|
+
},
|
|
2564
|
+
onBlur() {
|
|
2565
|
+
let e = F.current;
|
|
2566
|
+
!e || j || (T(!0), D(!1), ae === "onBlur" && A.commit(e.checked));
|
|
2567
|
+
},
|
|
2568
|
+
onClick(e) {
|
|
2569
|
+
g || j || (e.preventDefault(), F.current?.dispatchEvent(new PointerEvent("click", {
|
|
2570
|
+
bubbles: !0,
|
|
2571
|
+
shiftKey: e.shiftKey,
|
|
2572
|
+
ctrlKey: e.ctrlKey,
|
|
2573
|
+
altKey: e.altKey,
|
|
2574
|
+
metaKey: e.metaKey
|
|
2575
|
+
})));
|
|
2576
|
+
}
|
|
2577
|
+
}, pe = e.useMemo(() => b({
|
|
2578
|
+
checked: V,
|
|
2579
|
+
disabled: j,
|
|
2580
|
+
form: l,
|
|
2581
|
+
id: B,
|
|
2582
|
+
name: M,
|
|
2583
|
+
required: _,
|
|
2584
|
+
style: M ? $t : Qt,
|
|
2585
|
+
tabIndex: -1,
|
|
2586
|
+
type: "checkbox",
|
|
2587
|
+
"aria-hidden": !0,
|
|
2588
|
+
ref: I,
|
|
2589
|
+
onChange(e) {
|
|
2590
|
+
if (e.nativeEvent.defaultPrevented) return;
|
|
2591
|
+
if (g) {
|
|
2592
|
+
e.preventDefault();
|
|
2593
|
+
return;
|
|
2594
|
+
}
|
|
2595
|
+
let t = e.currentTarget.checked, n = Dn(En, e.nativeEvent);
|
|
2596
|
+
N?.(t, n), !n.isCanceled && le(t);
|
|
2597
|
+
},
|
|
2598
|
+
onFocus() {
|
|
2599
|
+
L.current?.focus();
|
|
2600
|
+
}
|
|
2601
|
+
}, A.getInputValidationProps, x === void 0 ? U : { value: x }), [
|
|
2602
|
+
V,
|
|
2603
|
+
j,
|
|
2604
|
+
l,
|
|
2605
|
+
I,
|
|
2606
|
+
B,
|
|
2607
|
+
M,
|
|
2608
|
+
N,
|
|
2609
|
+
g,
|
|
2610
|
+
_,
|
|
2611
|
+
le,
|
|
2612
|
+
A,
|
|
2613
|
+
x
|
|
2614
|
+
]), me = e.useMemo(() => ({
|
|
2615
|
+
...w,
|
|
2616
|
+
checked: V,
|
|
2617
|
+
disabled: j,
|
|
2618
|
+
readOnly: g,
|
|
2619
|
+
required: _
|
|
2620
|
+
}), [
|
|
2621
|
+
w,
|
|
2622
|
+
V,
|
|
2623
|
+
j,
|
|
2624
|
+
g,
|
|
2625
|
+
_
|
|
2626
|
+
]), ge = he("span", t, {
|
|
2627
|
+
state: me,
|
|
2628
|
+
ref: [
|
|
2629
|
+
i,
|
|
2630
|
+
L,
|
|
2631
|
+
de
|
|
2632
|
+
],
|
|
2633
|
+
props: [
|
|
2634
|
+
fe,
|
|
2635
|
+
A.getValidationProps,
|
|
2636
|
+
C,
|
|
2637
|
+
ue
|
|
2638
|
+
],
|
|
2639
|
+
stateAttributesMapping: mn
|
|
2640
|
+
});
|
|
2641
|
+
return /* @__PURE__ */ r(on.Provider, {
|
|
2642
|
+
value: me,
|
|
2643
|
+
children: [
|
|
2644
|
+
ge,
|
|
2645
|
+
!V && M && te !== void 0 && /* @__PURE__ */ n("input", {
|
|
2646
|
+
type: "hidden",
|
|
2647
|
+
form: l,
|
|
2648
|
+
name: M,
|
|
2649
|
+
value: te
|
|
2650
|
+
}),
|
|
2651
|
+
/* @__PURE__ */ n("input", {
|
|
2652
|
+
...pe,
|
|
2653
|
+
suppressHydrationWarning: !0
|
|
2654
|
+
})
|
|
2655
|
+
]
|
|
2656
|
+
});
|
|
2657
|
+
});
|
|
2658
|
+
process.env.NODE_ENV !== "production" && (kn.displayName = "SwitchRoot");
|
|
2659
|
+
//#endregion
|
|
2660
|
+
//#region node_modules/@base-ui/react/esm/switch/thumb/SwitchThumb.js
|
|
2661
|
+
var An = /* @__PURE__ */ e.forwardRef(function(e, t) {
|
|
2662
|
+
let { render: n, className: r, style: i, ...a } = e, { state: o } = gn(), s = sn();
|
|
2663
|
+
return he("span", e, {
|
|
2664
|
+
state: {
|
|
2665
|
+
...o,
|
|
2666
|
+
...s
|
|
2667
|
+
},
|
|
2668
|
+
ref: t,
|
|
2669
|
+
stateAttributesMapping: mn,
|
|
2670
|
+
props: a
|
|
2671
|
+
});
|
|
2672
|
+
});
|
|
2673
|
+
process.env.NODE_ENV !== "production" && (An.displayName = "SwitchThumb");
|
|
2674
|
+
//#endregion
|
|
2675
|
+
//#region src/components/Switch/switch.tsx
|
|
2676
|
+
function jn({ className: e, ...t }) {
|
|
2677
|
+
return /* @__PURE__ */ n(kn, {
|
|
2678
|
+
"data-slot": "switch",
|
|
2679
|
+
className: Kt("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-xs transition-all outline-none", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "disabled:cursor-not-allowed disabled:opacity-50", "data-unchecked:bg-input dark:data-unchecked:bg-input/80", "data-checked:bg-primary", "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", e),
|
|
2680
|
+
...t,
|
|
2681
|
+
children: /* @__PURE__ */ n(An, {
|
|
2682
|
+
"data-slot": "switch-thumb",
|
|
2683
|
+
className: Kt("bg-background pointer-events-none block size-4 rounded-full shadow-sm ring-0 transition-transform", "data-unchecked:translate-x-0", "data-checked:translate-x-4")
|
|
2684
|
+
})
|
|
2685
|
+
});
|
|
2686
|
+
}
|
|
2687
|
+
//#endregion
|
|
2688
|
+
export { Jt as Button, jn as Switch, qt as buttonVariants };
|