@zeno-ui/design-system 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Button/Button.d.ts +16 -4
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Icons/cameraIcon.d.ts +7 -0
- package/dist/components/Icons/cameraIcon.d.ts.map +1 -0
- package/dist/components/Icons/index.d.ts +7 -0
- package/dist/components/Icons/index.d.ts.map +1 -0
- package/dist/components/Icons/spinnerIcon.d.ts +7 -0
- package/dist/components/Icons/spinnerIcon.d.ts.map +1 -0
- package/dist/components/Icons/userIcon.d.ts +7 -0
- package/dist/components/Icons/userIcon.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.d.ts +8 -0
- package/dist/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Spinner/index.d.ts.map +1 -0
- package/dist/design-system.css +1 -1
- package/dist/index.js +4593 -15
- package/dist/utilities/cn/cn.d.ts +3 -0
- package/dist/utilities/cn/cn.d.ts.map +1 -0
- package/dist/utilities/cn/index.d.ts +2 -0
- package/dist/utilities/cn/index.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,22 +1,4600 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsxs as Ut, jsx as ce } from "react/jsx-runtime";
|
|
2
|
+
import _, { useState as ee, useContext as he, useRef as G, useEffect as te, useCallback as R, useMemo as Se, forwardRef as Bt, createContext as ut } from "react";
|
|
3
|
+
import { flushSync as Lr } from "react-dom";
|
|
4
|
+
const me = typeof document < "u" ? _.useLayoutEffect : () => {
|
|
5
|
+
}, je = {
|
|
6
|
+
prefix: String(Math.round(Math.random() * 1e10)),
|
|
7
|
+
current: 0
|
|
8
|
+
}, Yt = /* @__PURE__ */ _.createContext(je), Mr = /* @__PURE__ */ _.createContext(!1);
|
|
9
|
+
let Ar = !!(typeof window < "u" && window.document && window.document.createElement), Je = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
function Fr(e = !1) {
|
|
11
|
+
let t = he(Yt), r = G(null);
|
|
12
|
+
if (r.current === null && !e) {
|
|
13
|
+
var n, o;
|
|
14
|
+
let s = (o = _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (n = o.ReactCurrentOwner) === null || n === void 0 ? void 0 : n.current;
|
|
15
|
+
if (s) {
|
|
16
|
+
let l = Je.get(s);
|
|
17
|
+
l == null ? Je.set(s, {
|
|
18
|
+
id: t.current,
|
|
19
|
+
state: s.memoizedState
|
|
20
|
+
}) : s.memoizedState !== l.state && (t.current = l.id, Je.delete(s));
|
|
21
|
+
}
|
|
22
|
+
r.current = ++t.current;
|
|
23
|
+
}
|
|
24
|
+
return r.current;
|
|
25
|
+
}
|
|
26
|
+
function Or(e) {
|
|
27
|
+
let t = he(Yt);
|
|
28
|
+
t === je && !Ar && process.env.NODE_ENV !== "production" && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
29
|
+
let r = Fr(!!e), n = t === je && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
|
|
30
|
+
return e || `${n}-${r}`;
|
|
31
|
+
}
|
|
32
|
+
function Ir(e) {
|
|
33
|
+
let t = _.useId(), [r] = ee(Rr()), n = r || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${je.prefix}`;
|
|
34
|
+
return e || `${n}-${t}`;
|
|
35
|
+
}
|
|
36
|
+
const Nr = typeof _.useId == "function" ? Ir : Or;
|
|
37
|
+
function Dr() {
|
|
38
|
+
return !1;
|
|
39
|
+
}
|
|
40
|
+
function Kr() {
|
|
41
|
+
return !0;
|
|
42
|
+
}
|
|
43
|
+
function Vr(e) {
|
|
44
|
+
return () => {
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function Rr() {
|
|
48
|
+
return typeof _.useSyncExternalStore == "function" ? _.useSyncExternalStore(Vr, Dr, Kr) : he(Mr);
|
|
49
|
+
}
|
|
50
|
+
let Hr = !!(typeof window < "u" && window.document && window.document.createElement), Pe = /* @__PURE__ */ new Map(), Me;
|
|
51
|
+
typeof FinalizationRegistry < "u" && (Me = new FinalizationRegistry((e) => {
|
|
52
|
+
Pe.delete(e);
|
|
53
|
+
}));
|
|
54
|
+
function Et(e) {
|
|
55
|
+
let [t, r] = ee(e), n = G(null), o = Nr(t), s = G(null);
|
|
56
|
+
if (Me && Me.register(s, o), Hr) {
|
|
57
|
+
const l = Pe.get(o);
|
|
58
|
+
l && !l.includes(n) ? l.push(n) : Pe.set(o, [
|
|
59
|
+
n
|
|
60
|
+
]);
|
|
61
|
+
}
|
|
62
|
+
return me(() => {
|
|
63
|
+
let l = o;
|
|
64
|
+
return () => {
|
|
65
|
+
Me && Me.unregister(s), Pe.delete(l);
|
|
66
|
+
};
|
|
67
|
+
}, [
|
|
68
|
+
o
|
|
69
|
+
]), te(() => {
|
|
70
|
+
let l = n.current;
|
|
71
|
+
return l && r(l), () => {
|
|
72
|
+
l && (n.current = null);
|
|
73
|
+
};
|
|
74
|
+
}), o;
|
|
75
|
+
}
|
|
76
|
+
function Gr(e, t) {
|
|
77
|
+
if (e === t) return e;
|
|
78
|
+
let r = Pe.get(e);
|
|
79
|
+
if (r)
|
|
80
|
+
return r.forEach((o) => o.current = t), t;
|
|
81
|
+
let n = Pe.get(t);
|
|
82
|
+
return n ? (n.forEach((o) => o.current = e), e) : t;
|
|
83
|
+
}
|
|
84
|
+
function Xt(...e) {
|
|
85
|
+
return (...t) => {
|
|
86
|
+
for (let r of e) typeof r == "function" && r(...t);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
const K = (e) => {
|
|
90
|
+
var t;
|
|
91
|
+
return (t = e?.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
92
|
+
}, j = (e) => e && "window" in e && e.window === e ? e : K(e).defaultView || window;
|
|
93
|
+
function _r(e) {
|
|
94
|
+
return e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
|
|
95
|
+
}
|
|
96
|
+
function jr(e) {
|
|
97
|
+
return _r(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
|
|
98
|
+
}
|
|
99
|
+
let Wr = !1;
|
|
100
|
+
function ft() {
|
|
101
|
+
return Wr;
|
|
102
|
+
}
|
|
103
|
+
function z(e, t) {
|
|
104
|
+
if (!ft()) return t && e ? e.contains(t) : !1;
|
|
105
|
+
if (!e || !t) return !1;
|
|
106
|
+
let r = t;
|
|
107
|
+
for (; r !== null; ) {
|
|
108
|
+
if (r === e) return !0;
|
|
109
|
+
r.tagName === "SLOT" && r.assignedSlot ? r = r.assignedSlot.parentNode : jr(r) ? r = r.host : r = r.parentNode;
|
|
110
|
+
}
|
|
111
|
+
return !1;
|
|
112
|
+
}
|
|
113
|
+
const Fe = (e = document) => {
|
|
114
|
+
var t;
|
|
115
|
+
if (!ft()) return e.activeElement;
|
|
116
|
+
let r = e.activeElement;
|
|
117
|
+
for (; r && "shadowRoot" in r && (!((t = r.shadowRoot) === null || t === void 0) && t.activeElement); ) r = r.shadowRoot.activeElement;
|
|
118
|
+
return r;
|
|
119
|
+
};
|
|
120
|
+
function M(e) {
|
|
121
|
+
return ft() && e.target.shadowRoot && e.composedPath ? e.composedPath()[0] : e.target;
|
|
122
|
+
}
|
|
123
|
+
function pt(...e) {
|
|
124
|
+
return e.length === 1 && e[0] ? e[0] : (t) => {
|
|
125
|
+
let r = !1;
|
|
126
|
+
const n = e.map((o) => {
|
|
127
|
+
const s = xt(o, t);
|
|
128
|
+
return r || (r = typeof s == "function"), s;
|
|
129
|
+
});
|
|
130
|
+
if (r) return () => {
|
|
131
|
+
n.forEach((o, s) => {
|
|
132
|
+
typeof o == "function" ? o() : xt(e[s], null);
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
function xt(e, t) {
|
|
138
|
+
if (typeof e == "function") return e(t);
|
|
139
|
+
e != null && (e.current = t);
|
|
140
|
+
}
|
|
141
|
+
function qt(e) {
|
|
142
|
+
var t, r, n = "";
|
|
143
|
+
if (typeof e == "string" || typeof e == "number") n += e;
|
|
144
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
145
|
+
var o = e.length;
|
|
146
|
+
for (t = 0; t < o; t++) e[t] && (r = qt(e[t])) && (n && (n += " "), n += r);
|
|
147
|
+
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
148
|
+
return n;
|
|
149
|
+
}
|
|
150
|
+
function Jt() {
|
|
151
|
+
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = qt(e)) && (n && (n += " "), n += t);
|
|
152
|
+
return n;
|
|
153
|
+
}
|
|
154
|
+
function de(...e) {
|
|
155
|
+
let t = {
|
|
156
|
+
...e[0]
|
|
157
|
+
};
|
|
158
|
+
for (let r = 1; r < e.length; r++) {
|
|
159
|
+
let n = e[r];
|
|
160
|
+
for (let o in n) {
|
|
161
|
+
let s = t[o], l = n[o];
|
|
162
|
+
typeof s == "function" && typeof l == "function" && // This is a lot faster than a regex.
|
|
163
|
+
o[0] === "o" && o[1] === "n" && o.charCodeAt(2) >= /* 'A' */
|
|
164
|
+
65 && o.charCodeAt(2) <= /* 'Z' */
|
|
165
|
+
90 ? t[o] = Xt(s, l) : (o === "className" || o === "UNSAFE_className") && typeof s == "string" && typeof l == "string" ? t[o] = Jt(s, l) : o === "id" && s && l ? t.id = Gr(s, l) : o === "ref" && s && l ? t.ref = pt(s, l) : t[o] = l !== void 0 ? l : s;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return t;
|
|
169
|
+
}
|
|
170
|
+
const Ur = /* @__PURE__ */ new Set([
|
|
171
|
+
"id"
|
|
172
|
+
]), Br = /* @__PURE__ */ new Set([
|
|
173
|
+
"aria-label",
|
|
174
|
+
"aria-labelledby",
|
|
175
|
+
"aria-describedby",
|
|
176
|
+
"aria-details"
|
|
177
|
+
]), Yr = /* @__PURE__ */ new Set([
|
|
178
|
+
"href",
|
|
179
|
+
"hrefLang",
|
|
180
|
+
"target",
|
|
181
|
+
"rel",
|
|
182
|
+
"download",
|
|
183
|
+
"ping",
|
|
184
|
+
"referrerPolicy"
|
|
185
|
+
]), Xr = /* @__PURE__ */ new Set([
|
|
186
|
+
"dir",
|
|
187
|
+
"lang",
|
|
188
|
+
"hidden",
|
|
189
|
+
"inert",
|
|
190
|
+
"translate"
|
|
191
|
+
]), Pt = /* @__PURE__ */ new Set([
|
|
192
|
+
"onClick",
|
|
193
|
+
"onAuxClick",
|
|
194
|
+
"onContextMenu",
|
|
195
|
+
"onDoubleClick",
|
|
196
|
+
"onMouseDown",
|
|
197
|
+
"onMouseEnter",
|
|
198
|
+
"onMouseLeave",
|
|
199
|
+
"onMouseMove",
|
|
200
|
+
"onMouseOut",
|
|
201
|
+
"onMouseOver",
|
|
202
|
+
"onMouseUp",
|
|
203
|
+
"onTouchCancel",
|
|
204
|
+
"onTouchEnd",
|
|
205
|
+
"onTouchMove",
|
|
206
|
+
"onTouchStart",
|
|
207
|
+
"onPointerDown",
|
|
208
|
+
"onPointerMove",
|
|
209
|
+
"onPointerUp",
|
|
210
|
+
"onPointerCancel",
|
|
211
|
+
"onPointerEnter",
|
|
212
|
+
"onPointerLeave",
|
|
213
|
+
"onPointerOver",
|
|
214
|
+
"onPointerOut",
|
|
215
|
+
"onGotPointerCapture",
|
|
216
|
+
"onLostPointerCapture",
|
|
217
|
+
"onScroll",
|
|
218
|
+
"onWheel",
|
|
219
|
+
"onAnimationStart",
|
|
220
|
+
"onAnimationEnd",
|
|
221
|
+
"onAnimationIteration",
|
|
222
|
+
"onTransitionCancel",
|
|
223
|
+
"onTransitionEnd",
|
|
224
|
+
"onTransitionRun",
|
|
225
|
+
"onTransitionStart"
|
|
226
|
+
]), qr = /^(data-.*)$/;
|
|
227
|
+
function Qt(e, t = {}) {
|
|
228
|
+
let { labelable: r, isLink: n, global: o, events: s = o, propNames: l } = t, c = {};
|
|
229
|
+
for (const d in e) Object.prototype.hasOwnProperty.call(e, d) && (Ur.has(d) || r && Br.has(d) || n && Yr.has(d) || o && Xr.has(d) || s && (Pt.has(d) || d.endsWith("Capture") && Pt.has(d.slice(0, -7))) || l?.has(d) || qr.test(d)) && (c[d] = e[d]);
|
|
230
|
+
return c;
|
|
231
|
+
}
|
|
232
|
+
function Te(e) {
|
|
233
|
+
if (Jr()) e.focus({
|
|
234
|
+
preventScroll: !0
|
|
235
|
+
});
|
|
236
|
+
else {
|
|
237
|
+
let t = Qr(e);
|
|
238
|
+
e.focus(), Zr(t);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
let Ne = null;
|
|
242
|
+
function Jr() {
|
|
243
|
+
if (Ne == null) {
|
|
244
|
+
Ne = !1;
|
|
245
|
+
try {
|
|
246
|
+
document.createElement("div").focus({
|
|
247
|
+
get preventScroll() {
|
|
248
|
+
return Ne = !0, !0;
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
} catch {
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
return Ne;
|
|
255
|
+
}
|
|
256
|
+
function Qr(e) {
|
|
257
|
+
let t = e.parentNode, r = [], n = document.scrollingElement || document.documentElement;
|
|
258
|
+
for (; t instanceof HTMLElement && t !== n; )
|
|
259
|
+
(t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && r.push({
|
|
260
|
+
element: t,
|
|
261
|
+
scrollTop: t.scrollTop,
|
|
262
|
+
scrollLeft: t.scrollLeft
|
|
263
|
+
}), t = t.parentNode;
|
|
264
|
+
return n instanceof HTMLElement && r.push({
|
|
265
|
+
element: n,
|
|
266
|
+
scrollTop: n.scrollTop,
|
|
267
|
+
scrollLeft: n.scrollLeft
|
|
268
|
+
}), r;
|
|
269
|
+
}
|
|
270
|
+
function Zr(e) {
|
|
271
|
+
for (let { element: t, scrollTop: r, scrollLeft: n } of e)
|
|
272
|
+
t.scrollTop = r, t.scrollLeft = n;
|
|
273
|
+
}
|
|
274
|
+
function Xe(e) {
|
|
275
|
+
var t;
|
|
276
|
+
if (typeof window > "u" || window.navigator == null) return !1;
|
|
277
|
+
let r = (t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands;
|
|
278
|
+
return Array.isArray(r) && r.some((n) => e.test(n.brand)) || e.test(window.navigator.userAgent);
|
|
279
|
+
}
|
|
280
|
+
function bt(e) {
|
|
281
|
+
var t;
|
|
282
|
+
return typeof window < "u" && window.navigator != null ? e.test(((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.platform) || window.navigator.platform) : !1;
|
|
283
|
+
}
|
|
284
|
+
function re(e) {
|
|
285
|
+
if (process.env.NODE_ENV === "test") return e;
|
|
286
|
+
let t = null;
|
|
287
|
+
return () => (t == null && (t = e()), t);
|
|
288
|
+
}
|
|
289
|
+
const ke = re(function() {
|
|
290
|
+
return bt(/^Mac/i);
|
|
291
|
+
}), en = re(function() {
|
|
292
|
+
return bt(/^iPhone/i);
|
|
293
|
+
}), Zt = re(function() {
|
|
294
|
+
return bt(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
295
|
+
ke() && navigator.maxTouchPoints > 1;
|
|
296
|
+
}), mt = re(function() {
|
|
297
|
+
return en() || Zt();
|
|
298
|
+
});
|
|
299
|
+
re(function() {
|
|
300
|
+
return ke() || mt();
|
|
301
|
+
});
|
|
302
|
+
const tn = re(function() {
|
|
303
|
+
return Xe(/AppleWebKit/i) && !rn();
|
|
304
|
+
}), rn = re(function() {
|
|
305
|
+
return Xe(/Chrome/i);
|
|
306
|
+
}), er = re(function() {
|
|
307
|
+
return Xe(/Android/i);
|
|
308
|
+
}), nn = re(function() {
|
|
309
|
+
return Xe(/Firefox/i);
|
|
310
|
+
});
|
|
311
|
+
function ge(e, t, r = !0) {
|
|
312
|
+
var n, o;
|
|
313
|
+
let { metaKey: s, ctrlKey: l, altKey: c, shiftKey: d } = t;
|
|
314
|
+
nn() && (!((o = window.event) === null || o === void 0 || (n = o.type) === null || n === void 0) && n.startsWith("key")) && e.target === "_blank" && (ke() ? s = !0 : l = !0);
|
|
315
|
+
let u = tn() && ke() && !Zt() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
316
|
+
keyIdentifier: "Enter",
|
|
317
|
+
metaKey: s,
|
|
318
|
+
ctrlKey: l,
|
|
319
|
+
altKey: c,
|
|
320
|
+
shiftKey: d
|
|
321
|
+
}) : new MouseEvent("click", {
|
|
322
|
+
metaKey: s,
|
|
323
|
+
ctrlKey: l,
|
|
324
|
+
altKey: c,
|
|
325
|
+
shiftKey: d,
|
|
326
|
+
detail: 1,
|
|
327
|
+
bubbles: !0,
|
|
328
|
+
cancelable: !0
|
|
329
|
+
});
|
|
330
|
+
ge.isOpening = r, Te(e), e.dispatchEvent(u), ge.isOpening = !1;
|
|
331
|
+
}
|
|
332
|
+
ge.isOpening = !1;
|
|
333
|
+
let le = /* @__PURE__ */ new Map(), rt = /* @__PURE__ */ new Set();
|
|
334
|
+
function Tt() {
|
|
335
|
+
if (typeof window > "u") return;
|
|
336
|
+
function e(n) {
|
|
337
|
+
return "propertyName" in n;
|
|
338
|
+
}
|
|
339
|
+
let t = (n) => {
|
|
340
|
+
if (!e(n) || !n.target) return;
|
|
341
|
+
let o = le.get(n.target);
|
|
342
|
+
o || (o = /* @__PURE__ */ new Set(), le.set(n.target, o), n.target.addEventListener("transitioncancel", r, {
|
|
343
|
+
once: !0
|
|
344
|
+
})), o.add(n.propertyName);
|
|
345
|
+
}, r = (n) => {
|
|
346
|
+
if (!e(n) || !n.target) return;
|
|
347
|
+
let o = le.get(n.target);
|
|
348
|
+
if (o && (o.delete(n.propertyName), o.size === 0 && (n.target.removeEventListener("transitioncancel", r), le.delete(n.target)), le.size === 0)) {
|
|
349
|
+
for (let s of rt) s();
|
|
350
|
+
rt.clear();
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", r);
|
|
354
|
+
}
|
|
355
|
+
typeof document < "u" && (document.readyState !== "loading" ? Tt() : document.addEventListener("DOMContentLoaded", Tt));
|
|
356
|
+
function on() {
|
|
357
|
+
for (const [e] of le)
|
|
358
|
+
"isConnected" in e && !e.isConnected && le.delete(e);
|
|
359
|
+
}
|
|
360
|
+
function tr(e) {
|
|
361
|
+
requestAnimationFrame(() => {
|
|
362
|
+
on(), le.size === 0 ? e() : rt.add(e);
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
function gt() {
|
|
366
|
+
let e = G(/* @__PURE__ */ new Map()), t = R((o, s, l, c) => {
|
|
367
|
+
let d = c?.once ? (...u) => {
|
|
368
|
+
e.current.delete(l), l(...u);
|
|
369
|
+
} : l;
|
|
370
|
+
e.current.set(l, {
|
|
371
|
+
type: s,
|
|
372
|
+
eventTarget: o,
|
|
373
|
+
fn: d,
|
|
374
|
+
options: c
|
|
375
|
+
}), o.addEventListener(s, d, c);
|
|
376
|
+
}, []), r = R((o, s, l, c) => {
|
|
377
|
+
var d;
|
|
378
|
+
let u = ((d = e.current.get(l)) === null || d === void 0 ? void 0 : d.fn) || l;
|
|
379
|
+
o.removeEventListener(s, u, c), e.current.delete(l);
|
|
380
|
+
}, []), n = R(() => {
|
|
381
|
+
e.current.forEach((o, s) => {
|
|
382
|
+
r(o.eventTarget, o.type, s, o.options);
|
|
383
|
+
});
|
|
384
|
+
}, [
|
|
385
|
+
r
|
|
386
|
+
]);
|
|
387
|
+
return te(() => n, [
|
|
388
|
+
n
|
|
389
|
+
]), {
|
|
390
|
+
addGlobalListener: t,
|
|
391
|
+
removeGlobalListener: r,
|
|
392
|
+
removeAllGlobalListeners: n
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
function sn(e) {
|
|
396
|
+
const t = G(null), r = G(void 0), n = R((o) => {
|
|
397
|
+
if (typeof e == "function") {
|
|
398
|
+
const s = e, l = s(o);
|
|
399
|
+
return () => {
|
|
400
|
+
typeof l == "function" ? l() : s(null);
|
|
401
|
+
};
|
|
402
|
+
} else if (e)
|
|
403
|
+
return e.current = o, () => {
|
|
404
|
+
e.current = null;
|
|
405
|
+
};
|
|
406
|
+
}, [
|
|
407
|
+
e
|
|
408
|
+
]);
|
|
409
|
+
return Se(() => ({
|
|
410
|
+
get current() {
|
|
411
|
+
return t.current;
|
|
412
|
+
},
|
|
413
|
+
set current(o) {
|
|
414
|
+
t.current = o, r.current && (r.current(), r.current = void 0), o != null && (r.current = n(o));
|
|
415
|
+
}
|
|
416
|
+
}), [
|
|
417
|
+
n
|
|
418
|
+
]);
|
|
419
|
+
}
|
|
420
|
+
var Qe;
|
|
421
|
+
const an = (Qe = _.useInsertionEffect) !== null && Qe !== void 0 ? Qe : me;
|
|
422
|
+
function De(e) {
|
|
423
|
+
const t = G(null);
|
|
424
|
+
return an(() => {
|
|
425
|
+
t.current = e;
|
|
426
|
+
}, [
|
|
427
|
+
e
|
|
428
|
+
]), R((...r) => {
|
|
429
|
+
const n = t.current;
|
|
430
|
+
return n?.(...r);
|
|
431
|
+
}, []);
|
|
432
|
+
}
|
|
433
|
+
function rr(e, t) {
|
|
434
|
+
me(() => {
|
|
435
|
+
if (e && e.ref && t)
|
|
436
|
+
return e.ref.current = t.current, () => {
|
|
437
|
+
e.ref && (e.ref.current = null);
|
|
438
|
+
};
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
function nt(e) {
|
|
442
|
+
return e.pointerType === "" && e.isTrusted ? !0 : er() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
443
|
+
}
|
|
444
|
+
function ln(e) {
|
|
445
|
+
return !er() && e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
|
|
446
|
+
}
|
|
447
|
+
const cn = typeof Element < "u" && "checkVisibility" in Element.prototype;
|
|
448
|
+
function dn(e) {
|
|
449
|
+
const t = j(e);
|
|
450
|
+
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
|
|
451
|
+
let { display: r, visibility: n } = e.style, o = r !== "none" && n !== "hidden" && n !== "collapse";
|
|
452
|
+
if (o) {
|
|
453
|
+
const { getComputedStyle: s } = e.ownerDocument.defaultView;
|
|
454
|
+
let { display: l, visibility: c } = s(e);
|
|
455
|
+
o = l !== "none" && c !== "hidden" && c !== "collapse";
|
|
456
|
+
}
|
|
457
|
+
return o;
|
|
458
|
+
}
|
|
459
|
+
function un(e, t) {
|
|
460
|
+
return !e.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
|
|
461
|
+
!e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
|
|
462
|
+
}
|
|
463
|
+
function nr(e, t) {
|
|
464
|
+
return cn ? e.checkVisibility({
|
|
465
|
+
visibilityProperty: !0
|
|
466
|
+
}) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && dn(e) && un(e, t) && (!e.parentElement || nr(e.parentElement, e));
|
|
467
|
+
}
|
|
468
|
+
const or = [
|
|
469
|
+
"input:not([disabled]):not([type=hidden])",
|
|
470
|
+
"select:not([disabled])",
|
|
471
|
+
"textarea:not([disabled])",
|
|
472
|
+
"button:not([disabled])",
|
|
473
|
+
"a[href]",
|
|
474
|
+
"area[href]",
|
|
475
|
+
"summary",
|
|
476
|
+
"iframe",
|
|
477
|
+
"object",
|
|
478
|
+
"embed",
|
|
479
|
+
"audio[controls]",
|
|
480
|
+
"video[controls]",
|
|
481
|
+
'[contenteditable]:not([contenteditable^="false"])',
|
|
482
|
+
"permission"
|
|
483
|
+
], fn = or.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
484
|
+
or.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
485
|
+
function pn(e) {
|
|
486
|
+
return e.matches(fn) && nr(e) && !bn(e);
|
|
487
|
+
}
|
|
488
|
+
function bn(e) {
|
|
489
|
+
let t = e;
|
|
490
|
+
for (; t != null; ) {
|
|
491
|
+
if (t instanceof t.ownerDocument.defaultView.HTMLElement && t.inert) return !0;
|
|
492
|
+
t = t.parentElement;
|
|
493
|
+
}
|
|
494
|
+
return !1;
|
|
495
|
+
}
|
|
496
|
+
const mn = /* @__PURE__ */ Symbol("default");
|
|
497
|
+
function gn(e) {
|
|
498
|
+
let { className: t, style: r, children: n, defaultClassName: o, defaultChildren: s, defaultStyle: l, values: c, render: d } = e;
|
|
499
|
+
return Se(() => {
|
|
500
|
+
let u, g, m;
|
|
501
|
+
return typeof t == "function" ? u = t({
|
|
502
|
+
...c,
|
|
503
|
+
defaultClassName: o
|
|
504
|
+
}) : u = t, typeof r == "function" ? g = r({
|
|
505
|
+
...c,
|
|
506
|
+
defaultStyle: l || {}
|
|
507
|
+
}) : g = r, typeof n == "function" ? m = n({
|
|
508
|
+
...c,
|
|
509
|
+
defaultChildren: s
|
|
510
|
+
}) : n == null ? m = s : m = n, {
|
|
511
|
+
className: u ?? o,
|
|
512
|
+
style: g || l ? {
|
|
513
|
+
...l,
|
|
514
|
+
...g
|
|
515
|
+
} : void 0,
|
|
516
|
+
children: m ?? s,
|
|
517
|
+
"data-rac": "",
|
|
518
|
+
render: d ? (x) => d(x, c) : void 0
|
|
519
|
+
};
|
|
520
|
+
}, [
|
|
521
|
+
t,
|
|
522
|
+
r,
|
|
523
|
+
n,
|
|
524
|
+
o,
|
|
525
|
+
s,
|
|
526
|
+
l,
|
|
527
|
+
c,
|
|
528
|
+
d
|
|
529
|
+
]);
|
|
530
|
+
}
|
|
531
|
+
function vn(e, t) {
|
|
532
|
+
let r = he(e);
|
|
533
|
+
if (t === null)
|
|
534
|
+
return null;
|
|
535
|
+
if (r && typeof r == "object" && "slots" in r && r.slots) {
|
|
536
|
+
let n = t || mn;
|
|
537
|
+
if (!r.slots[n]) {
|
|
538
|
+
let o = new Intl.ListFormat().format(Object.keys(r.slots).map((l) => `"${l}"`)), s = t ? `Invalid slot "${t}".` : "A slot prop is required.";
|
|
539
|
+
throw new Error(`${s} Valid slot names are ${o}.`);
|
|
540
|
+
}
|
|
541
|
+
return r.slots[n];
|
|
542
|
+
}
|
|
543
|
+
return r;
|
|
544
|
+
}
|
|
545
|
+
function hn(e, t, r) {
|
|
546
|
+
let n = vn(r, e.slot) || {}, { ref: o, ...s } = n, l = sn(Se(() => pt(t, o), [
|
|
547
|
+
t,
|
|
548
|
+
o
|
|
549
|
+
])), c = de(s, e);
|
|
550
|
+
return "style" in s && s.style && "style" in e && e.style && (typeof s.style == "function" || typeof e.style == "function" ? c.style = (d) => {
|
|
551
|
+
let u = typeof s.style == "function" ? s.style(d) : s.style, g = {
|
|
552
|
+
...d.defaultStyle,
|
|
553
|
+
...u
|
|
554
|
+
}, m = typeof e.style == "function" ? e.style({
|
|
555
|
+
...d,
|
|
556
|
+
defaultStyle: g
|
|
557
|
+
}) : e.style;
|
|
558
|
+
return {
|
|
559
|
+
...g,
|
|
560
|
+
...m
|
|
561
|
+
};
|
|
562
|
+
} : c.style = {
|
|
563
|
+
...s.style,
|
|
564
|
+
...e.style
|
|
565
|
+
}), [
|
|
566
|
+
c,
|
|
567
|
+
l
|
|
568
|
+
];
|
|
569
|
+
}
|
|
570
|
+
function yn(e, t, r) {
|
|
571
|
+
let { render: n, ...o } = t, s = G(null), l = Se(() => pt(r, s), [
|
|
572
|
+
r,
|
|
573
|
+
s
|
|
574
|
+
]);
|
|
575
|
+
me(() => {
|
|
576
|
+
process.env.NODE_ENV !== "production" && n && (s.current ? s.current.localName !== e && console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${e}>, got <${s.current.localName}>. This may break the component behavior and accessibility.`) : console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"));
|
|
577
|
+
}, [
|
|
578
|
+
e,
|
|
579
|
+
n
|
|
580
|
+
]);
|
|
581
|
+
let c = {
|
|
582
|
+
...o,
|
|
583
|
+
ref: l
|
|
584
|
+
};
|
|
585
|
+
return n ? n(c, void 0) : /* @__PURE__ */ _.createElement(e, c);
|
|
586
|
+
}
|
|
587
|
+
const kt = {}, $n = new Proxy({}, {
|
|
588
|
+
get(e, t) {
|
|
589
|
+
if (typeof t != "string") return;
|
|
590
|
+
let r = kt[t];
|
|
591
|
+
return r || (r = /* @__PURE__ */ Bt(yn.bind(null, t)), kt[t] = r), r;
|
|
592
|
+
}
|
|
593
|
+
}), ir = 7e3;
|
|
594
|
+
let q = null;
|
|
595
|
+
function St(e, t = "assertive", r = ir) {
|
|
596
|
+
q ? q.announce(e, t, r) : (q = new wn(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? q.announce(e, t, r) : setTimeout(() => {
|
|
597
|
+
q?.isAttached() && q?.announce(e, t, r);
|
|
598
|
+
}, 100));
|
|
599
|
+
}
|
|
600
|
+
class wn {
|
|
601
|
+
isAttached() {
|
|
602
|
+
var t;
|
|
603
|
+
return (t = this.node) === null || t === void 0 ? void 0 : t.isConnected;
|
|
604
|
+
}
|
|
605
|
+
createLog(t) {
|
|
606
|
+
let r = document.createElement("div");
|
|
607
|
+
return r.setAttribute("role", "log"), r.setAttribute("aria-live", t), r.setAttribute("aria-relevant", "additions"), r;
|
|
608
|
+
}
|
|
609
|
+
destroy() {
|
|
610
|
+
this.node && (document.body.removeChild(this.node), this.node = null);
|
|
611
|
+
}
|
|
612
|
+
announce(t, r = "assertive", n = ir) {
|
|
613
|
+
var o, s;
|
|
614
|
+
if (!this.node) return;
|
|
615
|
+
let l = document.createElement("div");
|
|
616
|
+
typeof t == "object" ? (l.setAttribute("role", "img"), l.setAttribute("aria-labelledby", t["aria-labelledby"])) : l.textContent = t, r === "assertive" ? (o = this.assertiveLog) === null || o === void 0 || o.appendChild(l) : (s = this.politeLog) === null || s === void 0 || s.appendChild(l), t !== "" && setTimeout(() => {
|
|
617
|
+
l.remove();
|
|
618
|
+
}, n);
|
|
619
|
+
}
|
|
620
|
+
clear(t) {
|
|
621
|
+
this.node && ((!t || t === "assertive") && this.assertiveLog && (this.assertiveLog.innerHTML = ""), (!t || t === "polite") && this.politeLog && (this.politeLog.innerHTML = ""));
|
|
622
|
+
}
|
|
623
|
+
constructor() {
|
|
624
|
+
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
|
|
625
|
+
border: 0,
|
|
626
|
+
clip: "rect(0 0 0 0)",
|
|
627
|
+
clipPath: "inset(50%)",
|
|
628
|
+
height: "1px",
|
|
629
|
+
margin: "-1px",
|
|
630
|
+
overflow: "hidden",
|
|
631
|
+
padding: 0,
|
|
632
|
+
position: "absolute",
|
|
633
|
+
width: "1px",
|
|
634
|
+
whiteSpace: "nowrap"
|
|
635
|
+
}), this.assertiveLog = this.createLog("assertive"), this.node.appendChild(this.assertiveLog), this.politeLog = this.createLog("polite"), this.node.appendChild(this.politeLog), document.body.prepend(this.node));
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
function En(e, t) {
|
|
639
|
+
if (t.has(e))
|
|
640
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
641
|
+
}
|
|
642
|
+
function xn(e, t, r) {
|
|
643
|
+
En(e, t), t.set(e, r);
|
|
644
|
+
}
|
|
645
|
+
function vt(e) {
|
|
646
|
+
let t = e;
|
|
647
|
+
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {
|
|
648
|
+
}, t;
|
|
649
|
+
}
|
|
650
|
+
function sr(e, t) {
|
|
651
|
+
Object.defineProperty(e, "target", {
|
|
652
|
+
value: t
|
|
653
|
+
}), Object.defineProperty(e, "currentTarget", {
|
|
654
|
+
value: t
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
function ar(e) {
|
|
658
|
+
let t = G({
|
|
659
|
+
isFocused: !1,
|
|
660
|
+
observer: null
|
|
661
|
+
});
|
|
662
|
+
return me(() => {
|
|
663
|
+
const r = t.current;
|
|
664
|
+
return () => {
|
|
665
|
+
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
666
|
+
};
|
|
667
|
+
}, []), R((r) => {
|
|
668
|
+
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
669
|
+
t.current.isFocused = !0;
|
|
670
|
+
let n = r.target, o = (s) => {
|
|
671
|
+
if (t.current.isFocused = !1, n.disabled) {
|
|
672
|
+
let l = vt(s);
|
|
673
|
+
e?.(l);
|
|
674
|
+
}
|
|
675
|
+
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
676
|
+
};
|
|
677
|
+
n.addEventListener("focusout", o, {
|
|
678
|
+
once: !0
|
|
679
|
+
}), t.current.observer = new MutationObserver(() => {
|
|
680
|
+
if (t.current.isFocused && n.disabled) {
|
|
681
|
+
var s;
|
|
682
|
+
(s = t.current.observer) === null || s === void 0 || s.disconnect();
|
|
683
|
+
let l = n === document.activeElement ? null : document.activeElement;
|
|
684
|
+
n.dispatchEvent(new FocusEvent("blur", {
|
|
685
|
+
relatedTarget: l
|
|
686
|
+
})), n.dispatchEvent(new FocusEvent("focusout", {
|
|
687
|
+
bubbles: !0,
|
|
688
|
+
relatedTarget: l
|
|
689
|
+
}));
|
|
690
|
+
}
|
|
691
|
+
}), t.current.observer.observe(n, {
|
|
692
|
+
attributes: !0,
|
|
693
|
+
attributeFilter: [
|
|
694
|
+
"disabled"
|
|
695
|
+
]
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
}, [
|
|
699
|
+
e
|
|
700
|
+
]);
|
|
701
|
+
}
|
|
702
|
+
let We = !1;
|
|
703
|
+
function Ct(e) {
|
|
704
|
+
for (; e && !pn(e); ) e = e.parentElement;
|
|
705
|
+
let t = j(e), r = t.document.activeElement;
|
|
706
|
+
if (!r || r === e) return;
|
|
707
|
+
We = !0;
|
|
708
|
+
let n = !1, o = (g) => {
|
|
709
|
+
(g.target === r || n) && g.stopImmediatePropagation();
|
|
710
|
+
}, s = (g) => {
|
|
711
|
+
(g.target === r || n) && (g.stopImmediatePropagation(), !e && !n && (n = !0, Te(r), d()));
|
|
712
|
+
}, l = (g) => {
|
|
713
|
+
(g.target === e || n) && g.stopImmediatePropagation();
|
|
714
|
+
}, c = (g) => {
|
|
715
|
+
(g.target === e || n) && (g.stopImmediatePropagation(), n || (n = !0, Te(r), d()));
|
|
716
|
+
};
|
|
717
|
+
t.addEventListener("blur", o, !0), t.addEventListener("focusout", s, !0), t.addEventListener("focusin", c, !0), t.addEventListener("focus", l, !0);
|
|
718
|
+
let d = () => {
|
|
719
|
+
cancelAnimationFrame(u), t.removeEventListener("blur", o, !0), t.removeEventListener("focusout", s, !0), t.removeEventListener("focusin", c, !0), t.removeEventListener("focus", l, !0), We = !1, n = !1;
|
|
720
|
+
}, u = requestAnimationFrame(d);
|
|
721
|
+
return d;
|
|
722
|
+
}
|
|
723
|
+
let xe = "default", ot = "", _e = /* @__PURE__ */ new WeakMap();
|
|
724
|
+
function zt(e) {
|
|
725
|
+
if (mt()) {
|
|
726
|
+
if (xe === "default") {
|
|
727
|
+
const t = K(e);
|
|
728
|
+
ot = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
|
|
729
|
+
}
|
|
730
|
+
xe = "disabled";
|
|
731
|
+
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
|
|
732
|
+
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
|
|
733
|
+
_e.set(e, e.style[t]), e.style[t] = "none";
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
function Ze(e) {
|
|
737
|
+
if (mt()) {
|
|
738
|
+
if (xe !== "disabled") return;
|
|
739
|
+
xe = "restoring", setTimeout(() => {
|
|
740
|
+
tr(() => {
|
|
741
|
+
if (xe === "restoring") {
|
|
742
|
+
const t = K(e);
|
|
743
|
+
t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = ot || ""), ot = "", xe = "default";
|
|
744
|
+
}
|
|
745
|
+
});
|
|
746
|
+
}, 300);
|
|
747
|
+
} else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && _e.has(e)) {
|
|
748
|
+
let t = _e.get(e), r = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
|
|
749
|
+
e.style[r] === "none" && (e.style[r] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), _e.delete(e);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
const lr = _.createContext({
|
|
753
|
+
register: () => {
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
lr.displayName = "PressResponderContext";
|
|
757
|
+
function Pn(e, t) {
|
|
758
|
+
return t.get ? t.get.call(e) : t.value;
|
|
759
|
+
}
|
|
760
|
+
function cr(e, t, r) {
|
|
761
|
+
if (!t.has(e)) throw new TypeError("attempted to " + r + " private field on non-instance");
|
|
762
|
+
return t.get(e);
|
|
763
|
+
}
|
|
764
|
+
function Tn(e, t) {
|
|
765
|
+
var r = cr(e, t, "get");
|
|
766
|
+
return Pn(e, r);
|
|
767
|
+
}
|
|
768
|
+
function kn(e, t, r) {
|
|
769
|
+
if (t.set) t.set.call(e, r);
|
|
770
|
+
else {
|
|
771
|
+
if (!t.writable)
|
|
772
|
+
throw new TypeError("attempted to set read only private field");
|
|
773
|
+
t.value = r;
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
function Lt(e, t, r) {
|
|
777
|
+
var n = cr(e, t, "set");
|
|
778
|
+
return kn(e, n, r), r;
|
|
779
|
+
}
|
|
780
|
+
function Sn(e) {
|
|
781
|
+
let t = he(lr);
|
|
782
|
+
if (t) {
|
|
783
|
+
let { register: r, ref: n, ...o } = t;
|
|
784
|
+
e = de(o, e), r();
|
|
785
|
+
}
|
|
786
|
+
return rr(t, e.ref), e;
|
|
787
|
+
}
|
|
788
|
+
var Ke = /* @__PURE__ */ new WeakMap();
|
|
789
|
+
class Ve {
|
|
790
|
+
continuePropagation() {
|
|
791
|
+
Lt(this, Ke, !1);
|
|
792
|
+
}
|
|
793
|
+
get shouldStopPropagation() {
|
|
794
|
+
return Tn(this, Ke);
|
|
795
|
+
}
|
|
796
|
+
constructor(t, r, n, o) {
|
|
797
|
+
xn(this, Ke, {
|
|
798
|
+
writable: !0,
|
|
799
|
+
value: void 0
|
|
800
|
+
}), Lt(this, Ke, !0);
|
|
801
|
+
var s;
|
|
802
|
+
let l = (s = o?.target) !== null && s !== void 0 ? s : n.currentTarget;
|
|
803
|
+
const c = l?.getBoundingClientRect();
|
|
804
|
+
let d, u = 0, g, m = null;
|
|
805
|
+
n.clientX != null && n.clientY != null && (g = n.clientX, m = n.clientY), c && (g != null && m != null ? (d = g - c.left, u = m - c.top) : (d = c.width / 2, u = c.height / 2)), this.type = t, this.pointerType = r, this.target = n.currentTarget, this.shiftKey = n.shiftKey, this.metaKey = n.metaKey, this.ctrlKey = n.ctrlKey, this.altKey = n.altKey, this.x = d, this.y = u, this.key = n.key;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
const Mt = /* @__PURE__ */ Symbol("linkClicked"), At = "react-aria-pressable-style", Ft = "data-react-aria-pressable";
|
|
809
|
+
function Cn(e) {
|
|
810
|
+
let { onPress: t, onPressChange: r, onPressStart: n, onPressEnd: o, onPressUp: s, onClick: l, isDisabled: c, isPressed: d, preventFocusOnPress: u, shouldCancelOnPointerExit: g, allowTextSelectionOnPress: m, ref: x, ...C } = Sn(e), [S, $] = ee(!1), w = G({
|
|
811
|
+
isPressed: !1,
|
|
812
|
+
ignoreEmulatedMouseEvents: !1,
|
|
813
|
+
didFirePressStart: !1,
|
|
814
|
+
isTriggeringEvent: !1,
|
|
815
|
+
activePointerId: null,
|
|
816
|
+
target: null,
|
|
817
|
+
isOverTarget: !1,
|
|
818
|
+
pointerType: null,
|
|
819
|
+
disposables: []
|
|
820
|
+
}), { addGlobalListener: k, removeAllGlobalListeners: L, removeGlobalListener: A } = gt(), I = R((i, v) => {
|
|
821
|
+
let a = w.current;
|
|
822
|
+
if (c || a.didFirePressStart) return !1;
|
|
823
|
+
let f = !0;
|
|
824
|
+
if (a.isTriggeringEvent = !0, n) {
|
|
825
|
+
let y = new Ve("pressstart", v, i);
|
|
826
|
+
n(y), f = y.shouldStopPropagation;
|
|
827
|
+
}
|
|
828
|
+
return r && r(!0), a.isTriggeringEvent = !1, a.didFirePressStart = !0, $(!0), f;
|
|
829
|
+
}, [
|
|
830
|
+
c,
|
|
831
|
+
n,
|
|
832
|
+
r
|
|
833
|
+
]), N = R((i, v, a = !0) => {
|
|
834
|
+
let f = w.current;
|
|
835
|
+
if (!f.didFirePressStart) return !1;
|
|
836
|
+
f.didFirePressStart = !1, f.isTriggeringEvent = !0;
|
|
837
|
+
let y = !0;
|
|
838
|
+
if (o) {
|
|
839
|
+
let T = new Ve("pressend", v, i);
|
|
840
|
+
o(T), y = T.shouldStopPropagation;
|
|
841
|
+
}
|
|
842
|
+
if (r && r(!1), $(!1), t && a && !c) {
|
|
843
|
+
let T = new Ve("press", v, i);
|
|
844
|
+
t(T), y && (y = T.shouldStopPropagation);
|
|
845
|
+
}
|
|
846
|
+
return f.isTriggeringEvent = !1, y;
|
|
847
|
+
}, [
|
|
848
|
+
c,
|
|
849
|
+
o,
|
|
850
|
+
r,
|
|
851
|
+
t
|
|
852
|
+
]), Y = De(N), O = R((i, v) => {
|
|
853
|
+
let a = w.current;
|
|
854
|
+
if (c) return !1;
|
|
855
|
+
if (s) {
|
|
856
|
+
a.isTriggeringEvent = !0;
|
|
857
|
+
let f = new Ve("pressup", v, i);
|
|
858
|
+
return s(f), a.isTriggeringEvent = !1, f.shouldStopPropagation;
|
|
859
|
+
}
|
|
860
|
+
return !0;
|
|
861
|
+
}, [
|
|
862
|
+
c,
|
|
863
|
+
s
|
|
864
|
+
]), E = De(O), D = R((i) => {
|
|
865
|
+
let v = w.current;
|
|
866
|
+
if (v.isPressed && v.target) {
|
|
867
|
+
v.didFirePressStart && v.pointerType != null && N(pe(v.target, i), v.pointerType, !1), v.isPressed = !1, h(null), v.isOverTarget = !1, v.activePointerId = null, v.pointerType = null, L(), m || Ze(v.target);
|
|
868
|
+
for (let a of v.disposables) a();
|
|
869
|
+
v.disposables = [];
|
|
870
|
+
}
|
|
871
|
+
}, [
|
|
872
|
+
m,
|
|
873
|
+
L,
|
|
874
|
+
N
|
|
875
|
+
]), ne = De(D), fe = R((i) => {
|
|
876
|
+
g && D(i);
|
|
877
|
+
}, [
|
|
878
|
+
g,
|
|
879
|
+
D
|
|
880
|
+
]), oe = R((i) => {
|
|
881
|
+
c || l?.(i);
|
|
882
|
+
}, [
|
|
883
|
+
c,
|
|
884
|
+
l
|
|
885
|
+
]), $e = R((i, v) => {
|
|
886
|
+
if (!c && l) {
|
|
887
|
+
let a = new MouseEvent("click", i);
|
|
888
|
+
sr(a, v), l(vt(a));
|
|
889
|
+
}
|
|
890
|
+
}, [
|
|
891
|
+
c,
|
|
892
|
+
l
|
|
893
|
+
]), ze = De($e), [J, W] = ee(!1);
|
|
894
|
+
me(() => {
|
|
895
|
+
let i = w.current;
|
|
896
|
+
if (J) {
|
|
897
|
+
let v = (T) => {
|
|
898
|
+
var X;
|
|
899
|
+
if (i.isPressed && i.target && et(T, i.target)) {
|
|
900
|
+
var F;
|
|
901
|
+
Nt(M(T), T.key) && T.preventDefault();
|
|
902
|
+
let ie = M(T), Q = z(i.target, M(T));
|
|
903
|
+
Y(pe(i.target, T), "keyboard", Q), Q && ze(T, i.target), L(), T.key !== "Enter" && ht(i.target) && z(i.target, ie) && !T[Mt] && (T[Mt] = !0, ge(i.target, T, !1)), i.isPressed = !1, W(!1), (F = i.metaKeyEvents) === null || F === void 0 || F.delete(T.key);
|
|
904
|
+
} else if (T.key === "Meta" && (!((X = i.metaKeyEvents) === null || X === void 0) && X.size)) {
|
|
905
|
+
var we;
|
|
906
|
+
let ie = i.metaKeyEvents;
|
|
907
|
+
i.metaKeyEvents = void 0;
|
|
908
|
+
for (let Q of ie.values()) (we = i.target) === null || we === void 0 || we.dispatchEvent(new KeyboardEvent("keyup", Q));
|
|
909
|
+
}
|
|
910
|
+
}, a = i.target, y = Xt((T) => {
|
|
911
|
+
a && et(T, a) && !T.repeat && z(a, M(T)) && i.target && E(pe(i.target, T), "keyboard");
|
|
912
|
+
}, v);
|
|
913
|
+
return k(K(i.target), "keyup", y, !0), () => {
|
|
914
|
+
A(K(i.target), "keyup", y, !0);
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
}, [
|
|
918
|
+
J,
|
|
919
|
+
k,
|
|
920
|
+
L,
|
|
921
|
+
A
|
|
922
|
+
]);
|
|
923
|
+
let [U, h] = ee(null);
|
|
924
|
+
me(() => {
|
|
925
|
+
let i = w.current;
|
|
926
|
+
if (U === "pointer") {
|
|
927
|
+
let v = (f) => {
|
|
928
|
+
if (f.pointerId === i.activePointerId && i.isPressed && f.button === 0 && i.target) {
|
|
929
|
+
if (z(i.target, M(f)) && i.pointerType != null) {
|
|
930
|
+
let y = !1, T = setTimeout(() => {
|
|
931
|
+
i.isPressed && i.target instanceof HTMLElement && (y ? ne(f) : (Te(i.target), i.target.click()));
|
|
932
|
+
}, 80);
|
|
933
|
+
k(f.currentTarget, "click", () => y = !0, !0), i.disposables.push(() => clearTimeout(T));
|
|
934
|
+
} else ne(f);
|
|
935
|
+
i.isOverTarget = !1;
|
|
936
|
+
}
|
|
937
|
+
}, a = (f) => {
|
|
938
|
+
ne(f);
|
|
939
|
+
};
|
|
940
|
+
return k(K(i.target), "pointerup", v, !1), k(K(i.target), "pointercancel", a, !1), () => {
|
|
941
|
+
A(K(i.target), "pointerup", v, !1), A(K(i.target), "pointercancel", a, !1);
|
|
942
|
+
};
|
|
943
|
+
} else if (U === "mouse" && process.env.NODE_ENV === "test") {
|
|
944
|
+
let v = (a) => {
|
|
945
|
+
if (a.button === 0) {
|
|
946
|
+
if (i.ignoreEmulatedMouseEvents) {
|
|
947
|
+
i.ignoreEmulatedMouseEvents = !1;
|
|
948
|
+
return;
|
|
949
|
+
}
|
|
950
|
+
i.target && z(i.target, a.target) && i.pointerType != null || ne(a), i.isOverTarget = !1;
|
|
951
|
+
}
|
|
952
|
+
};
|
|
953
|
+
return k(K(i.target), "mouseup", v, !1), () => {
|
|
954
|
+
A(K(i.target), "mouseup", v, !1);
|
|
955
|
+
};
|
|
956
|
+
} else if (U === "touch" && process.env.NODE_ENV === "test") {
|
|
957
|
+
let v = (a) => {
|
|
958
|
+
i.isPressed && z(M(a), i.target) && ne({
|
|
959
|
+
currentTarget: i.target,
|
|
960
|
+
shiftKey: !1,
|
|
961
|
+
ctrlKey: !1,
|
|
962
|
+
metaKey: !1,
|
|
963
|
+
altKey: !1
|
|
964
|
+
});
|
|
965
|
+
};
|
|
966
|
+
return k(j(i.target), "scroll", v, !0), () => {
|
|
967
|
+
A(j(i.target), "scroll", v, !0);
|
|
968
|
+
};
|
|
969
|
+
}
|
|
970
|
+
}, [
|
|
971
|
+
U,
|
|
972
|
+
k,
|
|
973
|
+
A
|
|
974
|
+
]);
|
|
975
|
+
let Oe = Se(() => {
|
|
976
|
+
let i = w.current, v = {
|
|
977
|
+
onKeyDown(a) {
|
|
978
|
+
if (et(a.nativeEvent, a.currentTarget) && z(a.currentTarget, M(a.nativeEvent))) {
|
|
979
|
+
var f;
|
|
980
|
+
Nt(M(a.nativeEvent), a.key) && a.preventDefault();
|
|
981
|
+
let y = !0;
|
|
982
|
+
!i.isPressed && !a.repeat && (i.target = a.currentTarget, i.isPressed = !0, W(!0), i.pointerType = "keyboard", y = I(a, "keyboard")), y && a.stopPropagation(), a.metaKey && ke() && ((f = i.metaKeyEvents) === null || f === void 0 || f.set(a.key, a.nativeEvent));
|
|
983
|
+
} else a.key === "Meta" && (i.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
984
|
+
},
|
|
985
|
+
onClick(a) {
|
|
986
|
+
if (!(a && !z(a.currentTarget, M(a.nativeEvent))) && a && a.button === 0 && !i.isTriggeringEvent && !ge.isOpening) {
|
|
987
|
+
let f = !0;
|
|
988
|
+
if (c && a.preventDefault(), !i.ignoreEmulatedMouseEvents && !i.isPressed && (i.pointerType === "virtual" || nt(a.nativeEvent))) {
|
|
989
|
+
let y = I(a, "virtual"), T = O(a, "virtual"), X = N(a, "virtual");
|
|
990
|
+
oe(a), f = y && T && X;
|
|
991
|
+
} else if (i.isPressed && i.pointerType !== "keyboard") {
|
|
992
|
+
let y = i.pointerType || a.nativeEvent.pointerType || "virtual", T = O(pe(a.currentTarget, a), y), X = N(pe(a.currentTarget, a), y, !0);
|
|
993
|
+
f = T && X, i.isOverTarget = !1, oe(a), D(a);
|
|
994
|
+
}
|
|
995
|
+
i.ignoreEmulatedMouseEvents = !1, f && a.stopPropagation();
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
};
|
|
999
|
+
return typeof PointerEvent < "u" ? (v.onPointerDown = (a) => {
|
|
1000
|
+
if (a.button !== 0 || !z(a.currentTarget, M(a.nativeEvent))) return;
|
|
1001
|
+
if (ln(a.nativeEvent)) {
|
|
1002
|
+
i.pointerType = "virtual";
|
|
1003
|
+
return;
|
|
1004
|
+
}
|
|
1005
|
+
i.pointerType = a.pointerType;
|
|
1006
|
+
let f = !0;
|
|
1007
|
+
if (!i.isPressed) {
|
|
1008
|
+
i.isPressed = !0, h("pointer"), i.isOverTarget = !0, i.activePointerId = a.pointerId, i.target = a.currentTarget, m || zt(i.target), f = I(a, i.pointerType);
|
|
1009
|
+
let y = M(a.nativeEvent);
|
|
1010
|
+
"releasePointerCapture" in y && ("hasPointerCapture" in y ? y.hasPointerCapture(a.pointerId) && y.releasePointerCapture(a.pointerId) : y.releasePointerCapture(a.pointerId));
|
|
1011
|
+
}
|
|
1012
|
+
f && a.stopPropagation();
|
|
1013
|
+
}, v.onMouseDown = (a) => {
|
|
1014
|
+
if (z(a.currentTarget, M(a.nativeEvent)) && a.button === 0) {
|
|
1015
|
+
if (u) {
|
|
1016
|
+
let f = Ct(a.target);
|
|
1017
|
+
f && i.disposables.push(f);
|
|
1018
|
+
}
|
|
1019
|
+
a.stopPropagation();
|
|
1020
|
+
}
|
|
1021
|
+
}, v.onPointerUp = (a) => {
|
|
1022
|
+
!z(a.currentTarget, M(a.nativeEvent)) || i.pointerType === "virtual" || a.button === 0 && !i.isPressed && O(a, i.pointerType || a.pointerType);
|
|
1023
|
+
}, v.onPointerEnter = (a) => {
|
|
1024
|
+
a.pointerId === i.activePointerId && i.target && !i.isOverTarget && i.pointerType != null && (i.isOverTarget = !0, I(pe(i.target, a), i.pointerType));
|
|
1025
|
+
}, v.onPointerLeave = (a) => {
|
|
1026
|
+
a.pointerId === i.activePointerId && i.target && i.isOverTarget && i.pointerType != null && (i.isOverTarget = !1, N(pe(i.target, a), i.pointerType, !1), fe(a));
|
|
1027
|
+
}, v.onDragStart = (a) => {
|
|
1028
|
+
z(a.currentTarget, M(a.nativeEvent)) && D(a);
|
|
1029
|
+
}) : process.env.NODE_ENV === "test" && (v.onMouseDown = (a) => {
|
|
1030
|
+
if (a.button !== 0 || !z(a.currentTarget, M(a.nativeEvent))) return;
|
|
1031
|
+
if (i.ignoreEmulatedMouseEvents) {
|
|
1032
|
+
a.stopPropagation();
|
|
1033
|
+
return;
|
|
1034
|
+
}
|
|
1035
|
+
if (i.isPressed = !0, h("mouse"), i.isOverTarget = !0, i.target = a.currentTarget, i.pointerType = nt(a.nativeEvent) ? "virtual" : "mouse", Lr(() => I(a, i.pointerType)) && a.stopPropagation(), u) {
|
|
1036
|
+
let y = Ct(a.target);
|
|
1037
|
+
y && i.disposables.push(y);
|
|
1038
|
+
}
|
|
1039
|
+
}, v.onMouseEnter = (a) => {
|
|
1040
|
+
if (!z(a.currentTarget, M(a.nativeEvent))) return;
|
|
1041
|
+
let f = !0;
|
|
1042
|
+
i.isPressed && !i.ignoreEmulatedMouseEvents && i.pointerType != null && (i.isOverTarget = !0, f = I(a, i.pointerType)), f && a.stopPropagation();
|
|
1043
|
+
}, v.onMouseLeave = (a) => {
|
|
1044
|
+
if (!z(a.currentTarget, M(a.nativeEvent))) return;
|
|
1045
|
+
let f = !0;
|
|
1046
|
+
i.isPressed && !i.ignoreEmulatedMouseEvents && i.pointerType != null && (i.isOverTarget = !1, f = N(a, i.pointerType, !1), fe(a)), f && a.stopPropagation();
|
|
1047
|
+
}, v.onMouseUp = (a) => {
|
|
1048
|
+
z(a.currentTarget, M(a.nativeEvent)) && !i.ignoreEmulatedMouseEvents && a.button === 0 && !i.isPressed && O(a, i.pointerType || "mouse");
|
|
1049
|
+
}, v.onTouchStart = (a) => {
|
|
1050
|
+
if (!z(a.currentTarget, M(a.nativeEvent))) return;
|
|
1051
|
+
let f = zn(a.nativeEvent);
|
|
1052
|
+
if (!f) return;
|
|
1053
|
+
i.activePointerId = f.identifier, i.ignoreEmulatedMouseEvents = !0, i.isOverTarget = !0, i.isPressed = !0, h("touch"), i.target = a.currentTarget, i.pointerType = "touch", m || zt(i.target), I(se(i.target, a), i.pointerType) && a.stopPropagation();
|
|
1054
|
+
}, v.onTouchMove = (a) => {
|
|
1055
|
+
if (!z(a.currentTarget, M(a.nativeEvent))) return;
|
|
1056
|
+
if (!i.isPressed) {
|
|
1057
|
+
a.stopPropagation();
|
|
1058
|
+
return;
|
|
1059
|
+
}
|
|
1060
|
+
let f = Ot(a.nativeEvent, i.activePointerId), y = !0;
|
|
1061
|
+
f && It(f, a.currentTarget) ? !i.isOverTarget && i.pointerType != null && (i.isOverTarget = !0, y = I(se(i.target, a), i.pointerType)) : i.isOverTarget && i.pointerType != null && (i.isOverTarget = !1, y = N(se(i.target, a), i.pointerType, !1), fe(se(i.target, a))), y && a.stopPropagation();
|
|
1062
|
+
}, v.onTouchEnd = (a) => {
|
|
1063
|
+
if (!z(a.currentTarget, M(a.nativeEvent))) return;
|
|
1064
|
+
if (!i.isPressed) {
|
|
1065
|
+
a.stopPropagation();
|
|
1066
|
+
return;
|
|
1067
|
+
}
|
|
1068
|
+
let f = Ot(a.nativeEvent, i.activePointerId), y = !0;
|
|
1069
|
+
f && It(f, a.currentTarget) && i.pointerType != null ? (O(se(i.target, a), i.pointerType), y = N(se(i.target, a), i.pointerType), $e(a.nativeEvent, i.target)) : i.isOverTarget && i.pointerType != null && (y = N(se(i.target, a), i.pointerType, !1)), y && a.stopPropagation(), i.isPressed = !1, h(null), i.activePointerId = null, i.isOverTarget = !1, i.ignoreEmulatedMouseEvents = !0, i.target && !m && Ze(i.target), L();
|
|
1070
|
+
}, v.onTouchCancel = (a) => {
|
|
1071
|
+
z(a.currentTarget, M(a.nativeEvent)) && (a.stopPropagation(), i.isPressed && D(se(i.target, a)));
|
|
1072
|
+
}, v.onDragStart = (a) => {
|
|
1073
|
+
z(a.currentTarget, M(a.nativeEvent)) && D(a);
|
|
1074
|
+
}), v;
|
|
1075
|
+
}, [
|
|
1076
|
+
c,
|
|
1077
|
+
u,
|
|
1078
|
+
L,
|
|
1079
|
+
m,
|
|
1080
|
+
D,
|
|
1081
|
+
fe,
|
|
1082
|
+
N,
|
|
1083
|
+
I,
|
|
1084
|
+
O,
|
|
1085
|
+
oe,
|
|
1086
|
+
$e
|
|
1087
|
+
]);
|
|
1088
|
+
return te(() => {
|
|
1089
|
+
if (!x || process.env.NODE_ENV === "test") return;
|
|
1090
|
+
const i = K(x.current);
|
|
1091
|
+
if (!i || !i.head || i.getElementById(At)) return;
|
|
1092
|
+
const v = i.createElement("style");
|
|
1093
|
+
v.id = At, v.textContent = `
|
|
1094
|
+
@layer {
|
|
1095
|
+
[${Ft}] {
|
|
1096
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
`.trim(), i.head.prepend(v);
|
|
1100
|
+
}, [
|
|
1101
|
+
x
|
|
1102
|
+
]), te(() => {
|
|
1103
|
+
let i = w.current;
|
|
1104
|
+
return () => {
|
|
1105
|
+
var v;
|
|
1106
|
+
m || Ze((v = i.target) !== null && v !== void 0 ? v : void 0);
|
|
1107
|
+
for (let a of i.disposables) a();
|
|
1108
|
+
i.disposables = [];
|
|
1109
|
+
};
|
|
1110
|
+
}, [
|
|
1111
|
+
m
|
|
1112
|
+
]), {
|
|
1113
|
+
isPressed: d || S,
|
|
1114
|
+
pressProps: de(C, Oe, {
|
|
1115
|
+
[Ft]: !0
|
|
1116
|
+
})
|
|
1117
|
+
};
|
|
1118
|
+
}
|
|
1119
|
+
function ht(e) {
|
|
1120
|
+
return e.tagName === "A" && e.hasAttribute("href");
|
|
1121
|
+
}
|
|
1122
|
+
function et(e, t) {
|
|
1123
|
+
const { key: r, code: n } = e, o = t, s = o.getAttribute("role");
|
|
1124
|
+
return (r === "Enter" || r === " " || r === "Spacebar" || n === "Space") && !(o instanceof j(o).HTMLInputElement && !dr(o, r) || o instanceof j(o).HTMLTextAreaElement || o.isContentEditable) && // Links should only trigger with Enter key
|
|
1125
|
+
!((s === "link" || !s && ht(o)) && r !== "Enter");
|
|
1126
|
+
}
|
|
1127
|
+
function zn(e) {
|
|
1128
|
+
const { targetTouches: t } = e;
|
|
1129
|
+
return t.length > 0 ? t[0] : null;
|
|
1130
|
+
}
|
|
1131
|
+
function Ot(e, t) {
|
|
1132
|
+
const r = e.changedTouches;
|
|
1133
|
+
for (let n = 0; n < r.length; n++) {
|
|
1134
|
+
const o = r[n];
|
|
1135
|
+
if (o.identifier === t) return o;
|
|
1136
|
+
}
|
|
1137
|
+
return null;
|
|
1138
|
+
}
|
|
1139
|
+
function se(e, t) {
|
|
1140
|
+
let r = 0, n = 0;
|
|
1141
|
+
return t.targetTouches && t.targetTouches.length === 1 && (r = t.targetTouches[0].clientX, n = t.targetTouches[0].clientY), {
|
|
1142
|
+
currentTarget: e,
|
|
1143
|
+
shiftKey: t.shiftKey,
|
|
1144
|
+
ctrlKey: t.ctrlKey,
|
|
1145
|
+
metaKey: t.metaKey,
|
|
1146
|
+
altKey: t.altKey,
|
|
1147
|
+
clientX: r,
|
|
1148
|
+
clientY: n
|
|
1149
|
+
};
|
|
1150
|
+
}
|
|
1151
|
+
function pe(e, t) {
|
|
1152
|
+
let r = t.clientX, n = t.clientY;
|
|
1153
|
+
return {
|
|
1154
|
+
currentTarget: e,
|
|
1155
|
+
shiftKey: t.shiftKey,
|
|
1156
|
+
ctrlKey: t.ctrlKey,
|
|
1157
|
+
metaKey: t.metaKey,
|
|
1158
|
+
altKey: t.altKey,
|
|
1159
|
+
clientX: r,
|
|
1160
|
+
clientY: n,
|
|
1161
|
+
key: t.key
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
function Ln(e) {
|
|
1165
|
+
let t = 0, r = 0;
|
|
1166
|
+
return e.width !== void 0 ? t = e.width / 2 : e.radiusX !== void 0 && (t = e.radiusX), e.height !== void 0 ? r = e.height / 2 : e.radiusY !== void 0 && (r = e.radiusY), {
|
|
1167
|
+
top: e.clientY - r,
|
|
1168
|
+
right: e.clientX + t,
|
|
1169
|
+
bottom: e.clientY + r,
|
|
1170
|
+
left: e.clientX - t
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1173
|
+
function Mn(e, t) {
|
|
1174
|
+
return !(e.left > t.right || t.left > e.right || e.top > t.bottom || t.top > e.bottom);
|
|
1175
|
+
}
|
|
1176
|
+
function It(e, t) {
|
|
1177
|
+
let r = t.getBoundingClientRect(), n = Ln(e);
|
|
1178
|
+
return Mn(r, n);
|
|
1179
|
+
}
|
|
1180
|
+
function An(e) {
|
|
1181
|
+
return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !ht(e);
|
|
1182
|
+
}
|
|
1183
|
+
function Nt(e, t) {
|
|
1184
|
+
return e instanceof HTMLInputElement ? !dr(e, t) : An(e);
|
|
1185
|
+
}
|
|
1186
|
+
const Fn = /* @__PURE__ */ new Set([
|
|
1187
|
+
"checkbox",
|
|
1188
|
+
"radio",
|
|
1189
|
+
"range",
|
|
1190
|
+
"color",
|
|
1191
|
+
"file",
|
|
1192
|
+
"image",
|
|
1193
|
+
"button",
|
|
1194
|
+
"submit",
|
|
1195
|
+
"reset"
|
|
1196
|
+
]);
|
|
1197
|
+
function dr(e, t) {
|
|
1198
|
+
return e.type === "checkbox" || e.type === "radio" ? t === " " : Fn.has(e.type);
|
|
1199
|
+
}
|
|
1200
|
+
let Ce = null;
|
|
1201
|
+
const it = /* @__PURE__ */ new Set();
|
|
1202
|
+
let Ae = /* @__PURE__ */ new Map(), ve = !1, st = !1;
|
|
1203
|
+
const On = {
|
|
1204
|
+
Tab: !0,
|
|
1205
|
+
Escape: !0
|
|
1206
|
+
};
|
|
1207
|
+
function yt(e, t) {
|
|
1208
|
+
for (let r of it) r(e, t);
|
|
1209
|
+
}
|
|
1210
|
+
function In(e) {
|
|
1211
|
+
return !(e.metaKey || !ke() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
1212
|
+
}
|
|
1213
|
+
function Ue(e) {
|
|
1214
|
+
ve = !0, !ge.isOpening && In(e) && (Ce = "keyboard", yt("keyboard", e));
|
|
1215
|
+
}
|
|
1216
|
+
function B(e) {
|
|
1217
|
+
Ce = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (ve = !0, yt("pointer", e));
|
|
1218
|
+
}
|
|
1219
|
+
function ur(e) {
|
|
1220
|
+
!ge.isOpening && nt(e) && (ve = !0, Ce = "virtual");
|
|
1221
|
+
}
|
|
1222
|
+
function fr(e) {
|
|
1223
|
+
e.target === window || e.target === document || We || !e.isTrusted || (!ve && !st && (Ce = "virtual", yt("virtual", e)), ve = !1, st = !1);
|
|
1224
|
+
}
|
|
1225
|
+
function pr() {
|
|
1226
|
+
We || (ve = !1, st = !0);
|
|
1227
|
+
}
|
|
1228
|
+
function at(e) {
|
|
1229
|
+
if (typeof window > "u" || typeof document > "u" || Ae.get(j(e))) return;
|
|
1230
|
+
const t = j(e), r = K(e);
|
|
1231
|
+
let n = t.HTMLElement.prototype.focus;
|
|
1232
|
+
t.HTMLElement.prototype.focus = function() {
|
|
1233
|
+
ve = !0, n.apply(this, arguments);
|
|
1234
|
+
}, r.addEventListener("keydown", Ue, !0), r.addEventListener("keyup", Ue, !0), r.addEventListener("click", ur, !0), t.addEventListener("focus", fr, !0), t.addEventListener("blur", pr, !1), typeof PointerEvent < "u" ? (r.addEventListener("pointerdown", B, !0), r.addEventListener("pointermove", B, !0), r.addEventListener("pointerup", B, !0)) : process.env.NODE_ENV === "test" && (r.addEventListener("mousedown", B, !0), r.addEventListener("mousemove", B, !0), r.addEventListener("mouseup", B, !0)), t.addEventListener("beforeunload", () => {
|
|
1235
|
+
br(e);
|
|
1236
|
+
}, {
|
|
1237
|
+
once: !0
|
|
1238
|
+
}), Ae.set(t, {
|
|
1239
|
+
focus: n
|
|
1240
|
+
});
|
|
1241
|
+
}
|
|
1242
|
+
const br = (e, t) => {
|
|
1243
|
+
const r = j(e), n = K(e);
|
|
1244
|
+
t && n.removeEventListener("DOMContentLoaded", t), Ae.has(r) && (r.HTMLElement.prototype.focus = Ae.get(r).focus, n.removeEventListener("keydown", Ue, !0), n.removeEventListener("keyup", Ue, !0), n.removeEventListener("click", ur, !0), r.removeEventListener("focus", fr, !0), r.removeEventListener("blur", pr, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", B, !0), n.removeEventListener("pointermove", B, !0), n.removeEventListener("pointerup", B, !0)) : process.env.NODE_ENV === "test" && (n.removeEventListener("mousedown", B, !0), n.removeEventListener("mousemove", B, !0), n.removeEventListener("mouseup", B, !0)), Ae.delete(r));
|
|
1245
|
+
};
|
|
1246
|
+
function Nn(e) {
|
|
1247
|
+
const t = K(e);
|
|
1248
|
+
let r;
|
|
1249
|
+
return t.readyState !== "loading" ? at(e) : (r = () => {
|
|
1250
|
+
at(e);
|
|
1251
|
+
}, t.addEventListener("DOMContentLoaded", r)), () => br(e, r);
|
|
1252
|
+
}
|
|
1253
|
+
typeof document < "u" && Nn();
|
|
1254
|
+
function lt() {
|
|
1255
|
+
return Ce !== "pointer";
|
|
1256
|
+
}
|
|
1257
|
+
function Dn() {
|
|
1258
|
+
return Ce;
|
|
1259
|
+
}
|
|
1260
|
+
const Kn = /* @__PURE__ */ new Set([
|
|
1261
|
+
"checkbox",
|
|
1262
|
+
"radio",
|
|
1263
|
+
"range",
|
|
1264
|
+
"color",
|
|
1265
|
+
"file",
|
|
1266
|
+
"image",
|
|
1267
|
+
"button",
|
|
1268
|
+
"submit",
|
|
1269
|
+
"reset"
|
|
1270
|
+
]);
|
|
1271
|
+
function Vn(e, t, r) {
|
|
1272
|
+
let n = K(r?.target);
|
|
1273
|
+
const o = typeof window < "u" ? j(r?.target).HTMLInputElement : HTMLInputElement, s = typeof window < "u" ? j(r?.target).HTMLTextAreaElement : HTMLTextAreaElement, l = typeof window < "u" ? j(r?.target).HTMLElement : HTMLElement, c = typeof window < "u" ? j(r?.target).KeyboardEvent : KeyboardEvent;
|
|
1274
|
+
return e = e || n.activeElement instanceof o && !Kn.has(n.activeElement.type) || n.activeElement instanceof s || n.activeElement instanceof l && n.activeElement.isContentEditable, !(e && t === "keyboard" && r instanceof c && !On[r.key]);
|
|
1275
|
+
}
|
|
1276
|
+
function Rn(e, t, r) {
|
|
1277
|
+
at(), te(() => {
|
|
1278
|
+
if (r?.enabled === !1) return;
|
|
1279
|
+
let n = (o, s) => {
|
|
1280
|
+
Vn(!!r?.isTextInput, o, s) && e(lt());
|
|
1281
|
+
};
|
|
1282
|
+
return it.add(n), () => {
|
|
1283
|
+
it.delete(n);
|
|
1284
|
+
};
|
|
1285
|
+
}, t);
|
|
1286
|
+
}
|
|
1287
|
+
function Hn(e) {
|
|
1288
|
+
const t = K(e);
|
|
1289
|
+
if (Dn() === "virtual") {
|
|
1290
|
+
let r = Fe(t);
|
|
1291
|
+
tr(() => {
|
|
1292
|
+
const n = Fe(t);
|
|
1293
|
+
(n === r || n === t.body) && e.isConnected && Te(e);
|
|
1294
|
+
});
|
|
1295
|
+
} else Te(e);
|
|
1296
|
+
}
|
|
1297
|
+
function mr(e) {
|
|
1298
|
+
let { isDisabled: t, onFocus: r, onBlur: n, onFocusChange: o } = e;
|
|
1299
|
+
const s = R((d) => {
|
|
1300
|
+
if (d.target === d.currentTarget)
|
|
1301
|
+
return n && n(d), o && o(!1), !0;
|
|
1302
|
+
}, [
|
|
1303
|
+
n,
|
|
1304
|
+
o
|
|
1305
|
+
]), l = ar(s), c = R((d) => {
|
|
1306
|
+
const u = K(d.target), g = u ? Fe(u) : Fe();
|
|
1307
|
+
d.target === d.currentTarget && g === M(d.nativeEvent) && (r && r(d), o && o(!0), l(d));
|
|
1308
|
+
}, [
|
|
1309
|
+
o,
|
|
1310
|
+
r,
|
|
1311
|
+
l
|
|
1312
|
+
]);
|
|
1313
|
+
return {
|
|
1314
|
+
focusProps: {
|
|
1315
|
+
onFocus: !t && (r || o || n) ? c : void 0,
|
|
1316
|
+
onBlur: !t && (n || o) ? s : void 0
|
|
1317
|
+
}
|
|
1318
|
+
};
|
|
1319
|
+
}
|
|
1320
|
+
function Dt(e) {
|
|
1321
|
+
if (!e) return;
|
|
1322
|
+
let t = !0;
|
|
1323
|
+
return (r) => {
|
|
1324
|
+
let n = {
|
|
1325
|
+
...r,
|
|
1326
|
+
preventDefault() {
|
|
1327
|
+
r.preventDefault();
|
|
1328
|
+
},
|
|
1329
|
+
isDefaultPrevented() {
|
|
1330
|
+
return r.isDefaultPrevented();
|
|
1331
|
+
},
|
|
1332
|
+
stopPropagation() {
|
|
1333
|
+
t && process.env.NODE_ENV !== "production" ? console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.") : t = !0;
|
|
1334
|
+
},
|
|
1335
|
+
continuePropagation() {
|
|
1336
|
+
t = !1;
|
|
1337
|
+
},
|
|
1338
|
+
isPropagationStopped() {
|
|
1339
|
+
return t;
|
|
1340
|
+
}
|
|
1341
|
+
};
|
|
1342
|
+
e(n), t && r.stopPropagation();
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1345
|
+
function Gn(e) {
|
|
1346
|
+
return {
|
|
1347
|
+
keyboardProps: e.isDisabled ? {} : {
|
|
1348
|
+
onKeyDown: Dt(e.onKeyDown),
|
|
1349
|
+
onKeyUp: Dt(e.onKeyUp)
|
|
1350
|
+
}
|
|
1351
|
+
};
|
|
1352
|
+
}
|
|
1353
|
+
let _n = /* @__PURE__ */ _.createContext(null);
|
|
1354
|
+
function jn(e) {
|
|
1355
|
+
let t = he(_n) || {};
|
|
1356
|
+
rr(t, e);
|
|
1357
|
+
let { ref: r, ...n } = t;
|
|
1358
|
+
return n;
|
|
1359
|
+
}
|
|
1360
|
+
function Wn(e, t) {
|
|
1361
|
+
let { focusProps: r } = mr(e), { keyboardProps: n } = Gn(e), o = de(r, n), s = jn(t), l = e.isDisabled ? {} : s, c = G(e.autoFocus);
|
|
1362
|
+
te(() => {
|
|
1363
|
+
c.current && t.current && Hn(t.current), c.current = !1;
|
|
1364
|
+
}, [
|
|
1365
|
+
t
|
|
1366
|
+
]);
|
|
1367
|
+
let d = e.excludeFromTabOrder ? -1 : 0;
|
|
1368
|
+
return e.isDisabled && (d = void 0), {
|
|
1369
|
+
focusableProps: de({
|
|
1370
|
+
...o,
|
|
1371
|
+
tabIndex: d
|
|
1372
|
+
}, l)
|
|
1373
|
+
};
|
|
1374
|
+
}
|
|
1375
|
+
function Un(e) {
|
|
1376
|
+
let { isDisabled: t, onBlurWithin: r, onFocusWithin: n, onFocusWithinChange: o } = e, s = G({
|
|
1377
|
+
isFocusWithin: !1
|
|
1378
|
+
}), { addGlobalListener: l, removeAllGlobalListeners: c } = gt(), d = R((m) => {
|
|
1379
|
+
z(m.currentTarget, m.target) && s.current.isFocusWithin && !z(m.currentTarget, m.relatedTarget) && (s.current.isFocusWithin = !1, c(), r && r(m), o && o(!1));
|
|
1380
|
+
}, [
|
|
1381
|
+
r,
|
|
1382
|
+
o,
|
|
1383
|
+
s,
|
|
1384
|
+
c
|
|
1385
|
+
]), u = ar(d), g = R((m) => {
|
|
1386
|
+
if (!z(m.currentTarget, m.target)) return;
|
|
1387
|
+
const x = K(m.target), C = Fe(x);
|
|
1388
|
+
if (!s.current.isFocusWithin && C === M(m.nativeEvent)) {
|
|
1389
|
+
n && n(m), o && o(!0), s.current.isFocusWithin = !0, u(m);
|
|
1390
|
+
let S = m.currentTarget;
|
|
1391
|
+
l(x, "focus", ($) => {
|
|
1392
|
+
if (s.current.isFocusWithin && !z(S, $.target)) {
|
|
1393
|
+
let w = new x.defaultView.FocusEvent("blur", {
|
|
1394
|
+
relatedTarget: $.target
|
|
1395
|
+
});
|
|
1396
|
+
sr(w, S);
|
|
1397
|
+
let k = vt(w);
|
|
1398
|
+
d(k);
|
|
1399
|
+
}
|
|
1400
|
+
}, {
|
|
1401
|
+
capture: !0
|
|
1402
|
+
});
|
|
1403
|
+
}
|
|
1404
|
+
}, [
|
|
1405
|
+
n,
|
|
1406
|
+
o,
|
|
1407
|
+
u,
|
|
1408
|
+
l,
|
|
1409
|
+
d
|
|
1410
|
+
]);
|
|
1411
|
+
return t ? {
|
|
1412
|
+
focusWithinProps: {
|
|
1413
|
+
// These cannot be null, that would conflict in mergeProps
|
|
1414
|
+
onFocus: void 0,
|
|
1415
|
+
onBlur: void 0
|
|
1416
|
+
}
|
|
1417
|
+
} : {
|
|
1418
|
+
focusWithinProps: {
|
|
1419
|
+
onFocus: g,
|
|
1420
|
+
onBlur: d
|
|
1421
|
+
}
|
|
1422
|
+
};
|
|
1423
|
+
}
|
|
1424
|
+
let Be = !1, Re = 0;
|
|
1425
|
+
function ct() {
|
|
1426
|
+
Be = !0, setTimeout(() => {
|
|
1427
|
+
Be = !1;
|
|
1428
|
+
}, 50);
|
|
1429
|
+
}
|
|
1430
|
+
function Kt(e) {
|
|
1431
|
+
e.pointerType === "touch" && ct();
|
|
1432
|
+
}
|
|
1433
|
+
function Bn() {
|
|
1434
|
+
if (!(typeof document > "u"))
|
|
1435
|
+
return Re === 0 && (typeof PointerEvent < "u" ? document.addEventListener("pointerup", Kt) : process.env.NODE_ENV === "test" && document.addEventListener("touchend", ct)), Re++, () => {
|
|
1436
|
+
Re--, !(Re > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Kt) : process.env.NODE_ENV === "test" && document.removeEventListener("touchend", ct));
|
|
1437
|
+
};
|
|
1438
|
+
}
|
|
1439
|
+
function Yn(e) {
|
|
1440
|
+
let { onHoverStart: t, onHoverChange: r, onHoverEnd: n, isDisabled: o } = e, [s, l] = ee(!1), c = G({
|
|
1441
|
+
isHovered: !1,
|
|
1442
|
+
ignoreEmulatedMouseEvents: !1,
|
|
1443
|
+
pointerType: "",
|
|
1444
|
+
target: null
|
|
1445
|
+
}).current;
|
|
1446
|
+
te(Bn, []);
|
|
1447
|
+
let { addGlobalListener: d, removeAllGlobalListeners: u } = gt(), { hoverProps: g, triggerHoverEnd: m } = Se(() => {
|
|
1448
|
+
let x = ($, w) => {
|
|
1449
|
+
if (c.pointerType = w, o || w === "touch" || c.isHovered || !z($.currentTarget, $.target)) return;
|
|
1450
|
+
c.isHovered = !0;
|
|
1451
|
+
let k = $.currentTarget;
|
|
1452
|
+
c.target = k, d(K($.target), "pointerover", (L) => {
|
|
1453
|
+
c.isHovered && c.target && !z(c.target, L.target) && C(L, L.pointerType);
|
|
1454
|
+
}, {
|
|
1455
|
+
capture: !0
|
|
1456
|
+
}), t && t({
|
|
1457
|
+
type: "hoverstart",
|
|
1458
|
+
target: k,
|
|
1459
|
+
pointerType: w
|
|
1460
|
+
}), r && r(!0), l(!0);
|
|
1461
|
+
}, C = ($, w) => {
|
|
1462
|
+
let k = c.target;
|
|
1463
|
+
c.pointerType = "", c.target = null, !(w === "touch" || !c.isHovered || !k) && (c.isHovered = !1, u(), n && n({
|
|
1464
|
+
type: "hoverend",
|
|
1465
|
+
target: k,
|
|
1466
|
+
pointerType: w
|
|
1467
|
+
}), r && r(!1), l(!1));
|
|
1468
|
+
}, S = {};
|
|
1469
|
+
return typeof PointerEvent < "u" ? (S.onPointerEnter = ($) => {
|
|
1470
|
+
Be && $.pointerType === "mouse" || x($, $.pointerType);
|
|
1471
|
+
}, S.onPointerLeave = ($) => {
|
|
1472
|
+
!o && z($.currentTarget, $.target) && C($, $.pointerType);
|
|
1473
|
+
}) : process.env.NODE_ENV === "test" && (S.onTouchStart = () => {
|
|
1474
|
+
c.ignoreEmulatedMouseEvents = !0;
|
|
1475
|
+
}, S.onMouseEnter = ($) => {
|
|
1476
|
+
!c.ignoreEmulatedMouseEvents && !Be && x($, "mouse"), c.ignoreEmulatedMouseEvents = !1;
|
|
1477
|
+
}, S.onMouseLeave = ($) => {
|
|
1478
|
+
!o && z($.currentTarget, $.target) && C($, "mouse");
|
|
1479
|
+
}), {
|
|
1480
|
+
hoverProps: S,
|
|
1481
|
+
triggerHoverEnd: C
|
|
1482
|
+
};
|
|
1483
|
+
}, [
|
|
1484
|
+
t,
|
|
1485
|
+
r,
|
|
1486
|
+
n,
|
|
1487
|
+
o,
|
|
1488
|
+
c,
|
|
1489
|
+
d,
|
|
1490
|
+
u
|
|
1491
|
+
]);
|
|
1492
|
+
return te(() => {
|
|
1493
|
+
o && m({
|
|
1494
|
+
currentTarget: c.target
|
|
1495
|
+
}, c.pointerType);
|
|
1496
|
+
}, [
|
|
1497
|
+
o
|
|
1498
|
+
]), {
|
|
1499
|
+
hoverProps: g,
|
|
1500
|
+
isHovered: s
|
|
1501
|
+
};
|
|
1502
|
+
}
|
|
1503
|
+
function Xn(e = {}) {
|
|
1504
|
+
let { autoFocus: t = !1, isTextInput: r, within: n } = e, o = G({
|
|
1505
|
+
isFocused: !1,
|
|
1506
|
+
isFocusVisible: t || lt()
|
|
1507
|
+
}), [s, l] = ee(!1), [c, d] = ee(() => o.current.isFocused && o.current.isFocusVisible), u = R(() => d(o.current.isFocused && o.current.isFocusVisible), []), g = R((C) => {
|
|
1508
|
+
o.current.isFocused = C, o.current.isFocusVisible = lt(), l(C), u();
|
|
1509
|
+
}, [
|
|
1510
|
+
u
|
|
1511
|
+
]);
|
|
1512
|
+
Rn((C) => {
|
|
1513
|
+
o.current.isFocusVisible = C, u();
|
|
1514
|
+
}, [
|
|
1515
|
+
r,
|
|
1516
|
+
s
|
|
1517
|
+
], {
|
|
1518
|
+
enabled: s,
|
|
1519
|
+
isTextInput: r
|
|
1520
|
+
});
|
|
1521
|
+
let { focusProps: m } = mr({
|
|
1522
|
+
isDisabled: n,
|
|
1523
|
+
onFocusChange: g
|
|
1524
|
+
}), { focusWithinProps: x } = Un({
|
|
1525
|
+
isDisabled: !n,
|
|
1526
|
+
onFocusWithinChange: g
|
|
1527
|
+
});
|
|
1528
|
+
return {
|
|
1529
|
+
isFocused: s,
|
|
1530
|
+
isFocusVisible: c,
|
|
1531
|
+
focusProps: n ? x : m
|
|
1532
|
+
};
|
|
1533
|
+
}
|
|
1534
|
+
if (typeof HTMLTemplateElement < "u") {
|
|
1535
|
+
const e = Object.getOwnPropertyDescriptor(Node.prototype, "firstChild").get;
|
|
1536
|
+
Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
|
|
1537
|
+
configurable: !0,
|
|
1538
|
+
enumerable: !0,
|
|
1539
|
+
get: function() {
|
|
1540
|
+
return this.dataset.reactAriaHidden ? this.content.firstChild : e.call(this);
|
|
1541
|
+
}
|
|
1542
|
+
});
|
|
1543
|
+
}
|
|
1544
|
+
const qn = /* @__PURE__ */ ut(!1);
|
|
1545
|
+
function Jn(e) {
|
|
1546
|
+
let t = (r, n) => he(qn) ? null : e(r, n);
|
|
1547
|
+
return t.displayName = e.displayName || e.name, Bt(t);
|
|
1548
|
+
}
|
|
1549
|
+
function Qn(e, t) {
|
|
1550
|
+
let { elementType: r = "button", isDisabled: n, onPress: o, onPressStart: s, onPressEnd: l, onPressUp: c, onPressChange: d, preventFocusOnPress: u, allowFocusWhenDisabled: g, onClick: m, href: x, target: C, rel: S, type: $ = "button" } = e, w;
|
|
1551
|
+
r === "button" ? w = {
|
|
1552
|
+
type: $,
|
|
1553
|
+
disabled: n,
|
|
1554
|
+
form: e.form,
|
|
1555
|
+
formAction: e.formAction,
|
|
1556
|
+
formEncType: e.formEncType,
|
|
1557
|
+
formMethod: e.formMethod,
|
|
1558
|
+
formNoValidate: e.formNoValidate,
|
|
1559
|
+
formTarget: e.formTarget,
|
|
1560
|
+
name: e.name,
|
|
1561
|
+
value: e.value
|
|
1562
|
+
} : w = {
|
|
1563
|
+
role: "button",
|
|
1564
|
+
href: r === "a" && !n ? x : void 0,
|
|
1565
|
+
target: r === "a" ? C : void 0,
|
|
1566
|
+
type: r === "input" ? $ : void 0,
|
|
1567
|
+
disabled: r === "input" ? n : void 0,
|
|
1568
|
+
"aria-disabled": !n || r === "input" ? void 0 : n,
|
|
1569
|
+
rel: r === "a" ? S : void 0
|
|
1570
|
+
};
|
|
1571
|
+
let { pressProps: k, isPressed: L } = Cn({
|
|
1572
|
+
onPressStart: s,
|
|
1573
|
+
onPressEnd: l,
|
|
1574
|
+
onPressChange: d,
|
|
1575
|
+
onPress: o,
|
|
1576
|
+
onPressUp: c,
|
|
1577
|
+
onClick: m,
|
|
1578
|
+
isDisabled: n,
|
|
1579
|
+
preventFocusOnPress: u,
|
|
1580
|
+
ref: t
|
|
1581
|
+
}), { focusableProps: A } = Wn(e, t);
|
|
1582
|
+
g && (A.tabIndex = n ? -1 : A.tabIndex);
|
|
1583
|
+
let I = de(A, k, Qt(e, {
|
|
1584
|
+
labelable: !0
|
|
1585
|
+
}));
|
|
1586
|
+
return {
|
|
1587
|
+
isPressed: L,
|
|
1588
|
+
buttonProps: de(w, I, {
|
|
1589
|
+
"aria-haspopup": e["aria-haspopup"],
|
|
1590
|
+
"aria-expanded": e["aria-expanded"],
|
|
1591
|
+
"aria-controls": e["aria-controls"],
|
|
1592
|
+
"aria-pressed": e["aria-pressed"],
|
|
1593
|
+
"aria-current": e["aria-current"],
|
|
1594
|
+
"aria-disabled": e["aria-disabled"]
|
|
1595
|
+
})
|
|
1596
|
+
};
|
|
1597
|
+
}
|
|
1598
|
+
const Zn = /* @__PURE__ */ ut(null), eo = /* @__PURE__ */ ut({}), to = /* @__PURE__ */ Jn(function(t, r) {
|
|
1599
|
+
[t, r] = hn(t, r, eo);
|
|
1600
|
+
let n = t, { isPending: o } = n, { buttonProps: s, isPressed: l } = Qn(t, r);
|
|
1601
|
+
s = ro(s, o);
|
|
1602
|
+
let { focusProps: c, isFocused: d, isFocusVisible: u } = Xn(t), { hoverProps: g, isHovered: m } = Yn({
|
|
1603
|
+
...t,
|
|
1604
|
+
isDisabled: t.isDisabled || o
|
|
1605
|
+
}), x = {
|
|
1606
|
+
isHovered: m,
|
|
1607
|
+
isPressed: (n.isPressed || l) && !o,
|
|
1608
|
+
isFocused: d,
|
|
1609
|
+
isFocusVisible: u,
|
|
1610
|
+
isDisabled: t.isDisabled || !1,
|
|
1611
|
+
isPending: o ?? !1
|
|
1612
|
+
}, C = gn({
|
|
1613
|
+
...t,
|
|
1614
|
+
values: x,
|
|
1615
|
+
defaultClassName: "react-aria-Button"
|
|
1616
|
+
}), S = Et(s.id), $ = Et(), w = s["aria-labelledby"];
|
|
1617
|
+
o && (w ? w = `${w} ${$}` : s["aria-label"] && (w = `${S} ${$}`));
|
|
1618
|
+
let k = G(o);
|
|
1619
|
+
te(() => {
|
|
1620
|
+
let A = {
|
|
1621
|
+
"aria-labelledby": w || S
|
|
1622
|
+
};
|
|
1623
|
+
(!k.current && d && o || k.current && d && !o) && St(A, "assertive"), k.current = o;
|
|
1624
|
+
}, [
|
|
1625
|
+
o,
|
|
1626
|
+
d,
|
|
1627
|
+
w,
|
|
1628
|
+
S
|
|
1629
|
+
]);
|
|
1630
|
+
let L = Qt(t, {
|
|
1631
|
+
global: !0
|
|
1632
|
+
});
|
|
1633
|
+
return delete L.onClick, /* @__PURE__ */ _.createElement($n.button, {
|
|
1634
|
+
...de(L, C, s, c, g),
|
|
1635
|
+
// When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).
|
|
1636
|
+
// We do this by changing the button's type to button.
|
|
1637
|
+
type: s.type === "submit" && o ? "button" : s.type,
|
|
1638
|
+
id: S,
|
|
1639
|
+
ref: r,
|
|
1640
|
+
"aria-labelledby": w,
|
|
1641
|
+
slot: t.slot || void 0,
|
|
1642
|
+
"aria-disabled": o ? "true" : s["aria-disabled"],
|
|
1643
|
+
"data-disabled": t.isDisabled || void 0,
|
|
1644
|
+
"data-pressed": x.isPressed || void 0,
|
|
1645
|
+
"data-hovered": m || void 0,
|
|
1646
|
+
"data-focused": d || void 0,
|
|
1647
|
+
"data-pending": o || void 0,
|
|
1648
|
+
"data-focus-visible": u || void 0
|
|
1649
|
+
}, /* @__PURE__ */ _.createElement(Zn.Provider, {
|
|
1650
|
+
value: {
|
|
1651
|
+
id: $
|
|
1652
|
+
}
|
|
1653
|
+
}, C.children));
|
|
1654
|
+
});
|
|
1655
|
+
function ro(e, t) {
|
|
1656
|
+
if (t) {
|
|
1657
|
+
for (const r in e) r.startsWith("on") && !(r.includes("Focus") || r.includes("Blur")) && (e[r] = void 0);
|
|
1658
|
+
e.href = void 0, e.target = void 0;
|
|
1659
|
+
}
|
|
1660
|
+
return e;
|
|
1661
|
+
}
|
|
1662
|
+
const no = (e, t) => {
|
|
1663
|
+
const r = new Array(e.length + t.length);
|
|
1664
|
+
for (let n = 0; n < e.length; n++)
|
|
1665
|
+
r[n] = e[n];
|
|
1666
|
+
for (let n = 0; n < t.length; n++)
|
|
1667
|
+
r[e.length + n] = t[n];
|
|
1668
|
+
return r;
|
|
1669
|
+
}, oo = (e, t) => ({
|
|
1670
|
+
classGroupId: e,
|
|
1671
|
+
validator: t
|
|
1672
|
+
}), gr = (e = /* @__PURE__ */ new Map(), t = null, r) => ({
|
|
1673
|
+
nextPart: e,
|
|
1674
|
+
validators: t,
|
|
1675
|
+
classGroupId: r
|
|
1676
|
+
}), Ye = "-", Vt = [], io = "arbitrary..", so = (e) => {
|
|
1677
|
+
const t = lo(e), {
|
|
1678
|
+
conflictingClassGroups: r,
|
|
1679
|
+
conflictingClassGroupModifiers: n
|
|
1680
|
+
} = e;
|
|
1681
|
+
return {
|
|
1682
|
+
getClassGroupId: (l) => {
|
|
1683
|
+
if (l.startsWith("[") && l.endsWith("]"))
|
|
1684
|
+
return ao(l);
|
|
1685
|
+
const c = l.split(Ye), d = c[0] === "" && c.length > 1 ? 1 : 0;
|
|
1686
|
+
return vr(c, d, t);
|
|
1687
|
+
},
|
|
1688
|
+
getConflictingClassGroupIds: (l, c) => {
|
|
1689
|
+
if (c) {
|
|
1690
|
+
const d = n[l], u = r[l];
|
|
1691
|
+
return d ? u ? no(u, d) : d : u || Vt;
|
|
1692
|
+
}
|
|
1693
|
+
return r[l] || Vt;
|
|
1694
|
+
}
|
|
1695
|
+
};
|
|
1696
|
+
}, vr = (e, t, r) => {
|
|
1697
|
+
if (e.length - t === 0)
|
|
1698
|
+
return r.classGroupId;
|
|
1699
|
+
const o = e[t], s = r.nextPart.get(o);
|
|
1700
|
+
if (s) {
|
|
1701
|
+
const u = vr(e, t + 1, s);
|
|
1702
|
+
if (u) return u;
|
|
1703
|
+
}
|
|
1704
|
+
const l = r.validators;
|
|
1705
|
+
if (l === null)
|
|
1706
|
+
return;
|
|
1707
|
+
const c = t === 0 ? e.join(Ye) : e.slice(t).join(Ye), d = l.length;
|
|
1708
|
+
for (let u = 0; u < d; u++) {
|
|
1709
|
+
const g = l[u];
|
|
1710
|
+
if (g.validator(c))
|
|
1711
|
+
return g.classGroupId;
|
|
1712
|
+
}
|
|
1713
|
+
}, ao = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
1714
|
+
const t = e.slice(1, -1), r = t.indexOf(":"), n = t.slice(0, r);
|
|
1715
|
+
return n ? io + n : void 0;
|
|
1716
|
+
})(), lo = (e) => {
|
|
1717
|
+
const {
|
|
1718
|
+
theme: t,
|
|
1719
|
+
classGroups: r
|
|
1720
|
+
} = e;
|
|
1721
|
+
return co(r, t);
|
|
1722
|
+
}, co = (e, t) => {
|
|
1723
|
+
const r = gr();
|
|
1724
|
+
for (const n in e) {
|
|
1725
|
+
const o = e[n];
|
|
1726
|
+
$t(o, r, n, t);
|
|
1727
|
+
}
|
|
1728
|
+
return r;
|
|
1729
|
+
}, $t = (e, t, r, n) => {
|
|
1730
|
+
const o = e.length;
|
|
1731
|
+
for (let s = 0; s < o; s++) {
|
|
1732
|
+
const l = e[s];
|
|
1733
|
+
uo(l, t, r, n);
|
|
1734
|
+
}
|
|
1735
|
+
}, uo = (e, t, r, n) => {
|
|
1736
|
+
if (typeof e == "string") {
|
|
1737
|
+
fo(e, t, r);
|
|
1738
|
+
return;
|
|
1739
|
+
}
|
|
1740
|
+
if (typeof e == "function") {
|
|
1741
|
+
po(e, t, r, n);
|
|
1742
|
+
return;
|
|
1743
|
+
}
|
|
1744
|
+
bo(e, t, r, n);
|
|
1745
|
+
}, fo = (e, t, r) => {
|
|
1746
|
+
const n = e === "" ? t : hr(t, e);
|
|
1747
|
+
n.classGroupId = r;
|
|
1748
|
+
}, po = (e, t, r, n) => {
|
|
1749
|
+
if (mo(e)) {
|
|
1750
|
+
$t(e(n), t, r, n);
|
|
1751
|
+
return;
|
|
1752
|
+
}
|
|
1753
|
+
t.validators === null && (t.validators = []), t.validators.push(oo(r, e));
|
|
1754
|
+
}, bo = (e, t, r, n) => {
|
|
1755
|
+
const o = Object.entries(e), s = o.length;
|
|
1756
|
+
for (let l = 0; l < s; l++) {
|
|
1757
|
+
const [c, d] = o[l];
|
|
1758
|
+
$t(d, hr(t, c), r, n);
|
|
1759
|
+
}
|
|
1760
|
+
}, hr = (e, t) => {
|
|
1761
|
+
let r = e;
|
|
1762
|
+
const n = t.split(Ye), o = n.length;
|
|
1763
|
+
for (let s = 0; s < o; s++) {
|
|
1764
|
+
const l = n[s];
|
|
1765
|
+
let c = r.nextPart.get(l);
|
|
1766
|
+
c || (c = gr(), r.nextPart.set(l, c)), r = c;
|
|
1767
|
+
}
|
|
1768
|
+
return r;
|
|
1769
|
+
}, mo = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, go = (e) => {
|
|
1770
|
+
if (e < 1)
|
|
1771
|
+
return {
|
|
1772
|
+
get: () => {
|
|
1773
|
+
},
|
|
1774
|
+
set: () => {
|
|
1775
|
+
}
|
|
1776
|
+
};
|
|
1777
|
+
let t = 0, r = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null);
|
|
1778
|
+
const o = (s, l) => {
|
|
1779
|
+
r[s] = l, t++, t > e && (t = 0, n = r, r = /* @__PURE__ */ Object.create(null));
|
|
1780
|
+
};
|
|
1781
|
+
return {
|
|
1782
|
+
get(s) {
|
|
1783
|
+
let l = r[s];
|
|
1784
|
+
if (l !== void 0)
|
|
1785
|
+
return l;
|
|
1786
|
+
if ((l = n[s]) !== void 0)
|
|
1787
|
+
return o(s, l), l;
|
|
1788
|
+
},
|
|
1789
|
+
set(s, l) {
|
|
1790
|
+
s in r ? r[s] = l : o(s, l);
|
|
1791
|
+
}
|
|
1792
|
+
};
|
|
1793
|
+
}, dt = "!", Rt = ":", vo = [], Ht = (e, t, r, n, o) => ({
|
|
1794
|
+
modifiers: e,
|
|
1795
|
+
hasImportantModifier: t,
|
|
1796
|
+
baseClassName: r,
|
|
1797
|
+
maybePostfixModifierPosition: n,
|
|
1798
|
+
isExternal: o
|
|
1799
|
+
}), ho = (e) => {
|
|
1800
|
+
const {
|
|
1801
|
+
prefix: t,
|
|
1802
|
+
experimentalParseClassName: r
|
|
1803
|
+
} = e;
|
|
1804
|
+
let n = (o) => {
|
|
1805
|
+
const s = [];
|
|
1806
|
+
let l = 0, c = 0, d = 0, u;
|
|
1807
|
+
const g = o.length;
|
|
1808
|
+
for (let $ = 0; $ < g; $++) {
|
|
1809
|
+
const w = o[$];
|
|
1810
|
+
if (l === 0 && c === 0) {
|
|
1811
|
+
if (w === Rt) {
|
|
1812
|
+
s.push(o.slice(d, $)), d = $ + 1;
|
|
1813
|
+
continue;
|
|
1814
|
+
}
|
|
1815
|
+
if (w === "/") {
|
|
1816
|
+
u = $;
|
|
1817
|
+
continue;
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
w === "[" ? l++ : w === "]" ? l-- : w === "(" ? c++ : w === ")" && c--;
|
|
1821
|
+
}
|
|
1822
|
+
const m = s.length === 0 ? o : o.slice(d);
|
|
1823
|
+
let x = m, C = !1;
|
|
1824
|
+
m.endsWith(dt) ? (x = m.slice(0, -1), C = !0) : (
|
|
1825
|
+
/**
|
|
1826
|
+
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
1827
|
+
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
1828
|
+
*/
|
|
1829
|
+
m.startsWith(dt) && (x = m.slice(1), C = !0)
|
|
1830
|
+
);
|
|
1831
|
+
const S = u && u > d ? u - d : void 0;
|
|
1832
|
+
return Ht(s, C, x, S);
|
|
1833
|
+
};
|
|
1834
|
+
if (t) {
|
|
1835
|
+
const o = t + Rt, s = n;
|
|
1836
|
+
n = (l) => l.startsWith(o) ? s(l.slice(o.length)) : Ht(vo, !1, l, void 0, !0);
|
|
1837
|
+
}
|
|
1838
|
+
if (r) {
|
|
1839
|
+
const o = n;
|
|
1840
|
+
n = (s) => r({
|
|
1841
|
+
className: s,
|
|
1842
|
+
parseClassName: o
|
|
1843
|
+
});
|
|
1844
|
+
}
|
|
1845
|
+
return n;
|
|
1846
|
+
}, yo = (e) => {
|
|
1847
|
+
const t = /* @__PURE__ */ new Map();
|
|
1848
|
+
return e.orderSensitiveModifiers.forEach((r, n) => {
|
|
1849
|
+
t.set(r, 1e6 + n);
|
|
1850
|
+
}), (r) => {
|
|
1851
|
+
const n = [];
|
|
1852
|
+
let o = [];
|
|
1853
|
+
for (let s = 0; s < r.length; s++) {
|
|
1854
|
+
const l = r[s], c = l[0] === "[", d = t.has(l);
|
|
1855
|
+
c || d ? (o.length > 0 && (o.sort(), n.push(...o), o = []), n.push(l)) : o.push(l);
|
|
1856
|
+
}
|
|
1857
|
+
return o.length > 0 && (o.sort(), n.push(...o)), n;
|
|
1858
|
+
};
|
|
1859
|
+
}, $o = (e) => ({
|
|
1860
|
+
cache: go(e.cacheSize),
|
|
1861
|
+
parseClassName: ho(e),
|
|
1862
|
+
sortModifiers: yo(e),
|
|
1863
|
+
...so(e)
|
|
1864
|
+
}), wo = /\s+/, Eo = (e, t) => {
|
|
1865
|
+
const {
|
|
1866
|
+
parseClassName: r,
|
|
1867
|
+
getClassGroupId: n,
|
|
1868
|
+
getConflictingClassGroupIds: o,
|
|
1869
|
+
sortModifiers: s
|
|
1870
|
+
} = t, l = [], c = e.trim().split(wo);
|
|
1871
|
+
let d = "";
|
|
1872
|
+
for (let u = c.length - 1; u >= 0; u -= 1) {
|
|
1873
|
+
const g = c[u], {
|
|
1874
|
+
isExternal: m,
|
|
1875
|
+
modifiers: x,
|
|
1876
|
+
hasImportantModifier: C,
|
|
1877
|
+
baseClassName: S,
|
|
1878
|
+
maybePostfixModifierPosition: $
|
|
1879
|
+
} = r(g);
|
|
1880
|
+
if (m) {
|
|
1881
|
+
d = g + (d.length > 0 ? " " + d : d);
|
|
1882
|
+
continue;
|
|
1883
|
+
}
|
|
1884
|
+
let w = !!$, k = n(w ? S.substring(0, $) : S);
|
|
1885
|
+
if (!k) {
|
|
1886
|
+
if (!w) {
|
|
1887
|
+
d = g + (d.length > 0 ? " " + d : d);
|
|
1888
|
+
continue;
|
|
1889
|
+
}
|
|
1890
|
+
if (k = n(S), !k) {
|
|
1891
|
+
d = g + (d.length > 0 ? " " + d : d);
|
|
1892
|
+
continue;
|
|
1893
|
+
}
|
|
1894
|
+
w = !1;
|
|
1895
|
+
}
|
|
1896
|
+
const L = x.length === 0 ? "" : x.length === 1 ? x[0] : s(x).join(":"), A = C ? L + dt : L, I = A + k;
|
|
1897
|
+
if (l.indexOf(I) > -1)
|
|
1898
|
+
continue;
|
|
1899
|
+
l.push(I);
|
|
1900
|
+
const N = o(k, w);
|
|
1901
|
+
for (let Y = 0; Y < N.length; ++Y) {
|
|
1902
|
+
const O = N[Y];
|
|
1903
|
+
l.push(A + O);
|
|
1904
|
+
}
|
|
1905
|
+
d = g + (d.length > 0 ? " " + d : d);
|
|
1906
|
+
}
|
|
1907
|
+
return d;
|
|
1908
|
+
}, xo = (...e) => {
|
|
1909
|
+
let t = 0, r, n, o = "";
|
|
1910
|
+
for (; t < e.length; )
|
|
1911
|
+
(r = e[t++]) && (n = yr(r)) && (o && (o += " "), o += n);
|
|
1912
|
+
return o;
|
|
1913
|
+
}, yr = (e) => {
|
|
1914
|
+
if (typeof e == "string")
|
|
1915
|
+
return e;
|
|
1916
|
+
let t, r = "";
|
|
1917
|
+
for (let n = 0; n < e.length; n++)
|
|
1918
|
+
e[n] && (t = yr(e[n])) && (r && (r += " "), r += t);
|
|
1919
|
+
return r;
|
|
1920
|
+
}, Po = (e, ...t) => {
|
|
1921
|
+
let r, n, o, s;
|
|
1922
|
+
const l = (d) => {
|
|
1923
|
+
const u = t.reduce((g, m) => m(g), e());
|
|
1924
|
+
return r = $o(u), n = r.cache.get, o = r.cache.set, s = c, c(d);
|
|
1925
|
+
}, c = (d) => {
|
|
1926
|
+
const u = n(d);
|
|
1927
|
+
if (u)
|
|
1928
|
+
return u;
|
|
1929
|
+
const g = Eo(d, r);
|
|
1930
|
+
return o(d, g), g;
|
|
1931
|
+
};
|
|
1932
|
+
return s = l, (...d) => s(xo(...d));
|
|
1933
|
+
}, To = [], V = (e) => {
|
|
1934
|
+
const t = (r) => r[e] || To;
|
|
1935
|
+
return t.isThemeGetter = !0, t;
|
|
1936
|
+
}, $r = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, wr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ko = /^\d+\/\d+$/, So = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Co = /\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$/, zo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Lo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Mo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ee = (e) => ko.test(e), P = (e) => !!e && !Number.isNaN(Number(e)), ae = (e) => !!e && Number.isInteger(Number(e)), tt = (e) => e.endsWith("%") && P(e.slice(0, -1)), Z = (e) => So.test(e), Er = () => !0, Ao = (e) => (
|
|
1937
|
+
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1938
|
+
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1939
|
+
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1940
|
+
Co.test(e) && !zo.test(e)
|
|
1941
|
+
), wt = () => !1, Fo = (e) => Lo.test(e), Oo = (e) => Mo.test(e), Io = (e) => !p(e) && !b(e), No = (e) => ue(e, Tr, wt), p = (e) => $r.test(e), be = (e) => ue(e, kr, Ao), Gt = (e) => ue(e, jo, P), Do = (e) => ue(e, Cr, Er), Ko = (e) => ue(e, Sr, wt), _t = (e) => ue(e, xr, wt), Vo = (e) => ue(e, Pr, Oo), He = (e) => ue(e, zr, Fo), b = (e) => wr.test(e), Le = (e) => ye(e, kr), Ro = (e) => ye(e, Sr), jt = (e) => ye(e, xr), Ho = (e) => ye(e, Tr), Go = (e) => ye(e, Pr), Ge = (e) => ye(e, zr, !0), _o = (e) => ye(e, Cr, !0), ue = (e, t, r) => {
|
|
1942
|
+
const n = $r.exec(e);
|
|
1943
|
+
return n ? n[1] ? t(n[1]) : r(n[2]) : !1;
|
|
1944
|
+
}, ye = (e, t, r = !1) => {
|
|
1945
|
+
const n = wr.exec(e);
|
|
1946
|
+
return n ? n[1] ? t(n[1]) : r : !1;
|
|
1947
|
+
}, xr = (e) => e === "position" || e === "percentage", Pr = (e) => e === "image" || e === "url", Tr = (e) => e === "length" || e === "size" || e === "bg-size", kr = (e) => e === "length", jo = (e) => e === "number", Sr = (e) => e === "family-name", Cr = (e) => e === "number" || e === "weight", zr = (e) => e === "shadow", Wo = () => {
|
|
1948
|
+
const e = V("color"), t = V("font"), r = V("text"), n = V("font-weight"), o = V("tracking"), s = V("leading"), l = V("breakpoint"), c = V("container"), d = V("spacing"), u = V("radius"), g = V("shadow"), m = V("inset-shadow"), x = V("text-shadow"), C = V("drop-shadow"), S = V("blur"), $ = V("perspective"), w = V("aspect"), k = V("ease"), L = V("animate"), A = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [
|
|
1949
|
+
"center",
|
|
1950
|
+
"top",
|
|
1951
|
+
"bottom",
|
|
1952
|
+
"left",
|
|
1953
|
+
"right",
|
|
1954
|
+
"top-left",
|
|
1955
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1956
|
+
"left-top",
|
|
1957
|
+
"top-right",
|
|
1958
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1959
|
+
"right-top",
|
|
1960
|
+
"bottom-right",
|
|
1961
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1962
|
+
"right-bottom",
|
|
1963
|
+
"bottom-left",
|
|
1964
|
+
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1965
|
+
"left-bottom"
|
|
1966
|
+
], N = () => [...I(), b, p], Y = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], E = () => [b, p, d], D = () => [Ee, "full", "auto", ...E()], ne = () => [ae, "none", "subgrid", b, p], fe = () => ["auto", {
|
|
1967
|
+
span: ["full", ae, b, p]
|
|
1968
|
+
}, ae, b, p], oe = () => [ae, "auto", b, p], $e = () => ["auto", "min", "max", "fr", b, p], ze = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], J = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], W = () => ["auto", ...E()], U = () => [Ee, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], h = () => [e, b, p], Oe = () => [...I(), jt, _t, {
|
|
1969
|
+
position: [b, p]
|
|
1970
|
+
}], i = () => ["no-repeat", {
|
|
1971
|
+
repeat: ["", "x", "y", "space", "round"]
|
|
1972
|
+
}], v = () => ["auto", "cover", "contain", Ho, No, {
|
|
1973
|
+
size: [b, p]
|
|
1974
|
+
}], a = () => [tt, Le, be], f = () => [
|
|
1975
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
1976
|
+
"",
|
|
1977
|
+
"none",
|
|
1978
|
+
"full",
|
|
1979
|
+
u,
|
|
1980
|
+
b,
|
|
1981
|
+
p
|
|
1982
|
+
], y = () => ["", P, Le, be], T = () => ["solid", "dashed", "dotted", "double"], X = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => [P, tt, jt, _t], we = () => [
|
|
1983
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
1984
|
+
"",
|
|
1985
|
+
"none",
|
|
1986
|
+
S,
|
|
1987
|
+
b,
|
|
1988
|
+
p
|
|
1989
|
+
], ie = () => ["none", P, b, p], Q = () => ["none", P, b, p], qe = () => [P, b, p], Ie = () => [Ee, "full", ...E()];
|
|
1990
|
+
return {
|
|
1991
|
+
cacheSize: 500,
|
|
1992
|
+
theme: {
|
|
1993
|
+
animate: ["spin", "ping", "pulse", "bounce"],
|
|
1994
|
+
aspect: ["video"],
|
|
1995
|
+
blur: [Z],
|
|
1996
|
+
breakpoint: [Z],
|
|
1997
|
+
color: [Er],
|
|
1998
|
+
container: [Z],
|
|
1999
|
+
"drop-shadow": [Z],
|
|
2000
|
+
ease: ["in", "out", "in-out"],
|
|
2001
|
+
font: [Io],
|
|
2002
|
+
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
2003
|
+
"inset-shadow": [Z],
|
|
2004
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
2005
|
+
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
2006
|
+
radius: [Z],
|
|
2007
|
+
shadow: [Z],
|
|
2008
|
+
spacing: ["px", P],
|
|
2009
|
+
text: [Z],
|
|
2010
|
+
"text-shadow": [Z],
|
|
2011
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
2012
|
+
},
|
|
2013
|
+
classGroups: {
|
|
2014
|
+
// --------------
|
|
2015
|
+
// --- Layout ---
|
|
2016
|
+
// --------------
|
|
2017
|
+
/**
|
|
2018
|
+
* Aspect Ratio
|
|
2019
|
+
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
2020
|
+
*/
|
|
2021
|
+
aspect: [{
|
|
2022
|
+
aspect: ["auto", "square", Ee, p, b, w]
|
|
2023
|
+
}],
|
|
2024
|
+
/**
|
|
2025
|
+
* Container
|
|
2026
|
+
* @see https://tailwindcss.com/docs/container
|
|
2027
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
2028
|
+
*/
|
|
2029
|
+
container: ["container"],
|
|
2030
|
+
/**
|
|
2031
|
+
* Columns
|
|
2032
|
+
* @see https://tailwindcss.com/docs/columns
|
|
2033
|
+
*/
|
|
2034
|
+
columns: [{
|
|
2035
|
+
columns: [P, p, b, c]
|
|
2036
|
+
}],
|
|
2037
|
+
/**
|
|
2038
|
+
* Break After
|
|
2039
|
+
* @see https://tailwindcss.com/docs/break-after
|
|
2040
|
+
*/
|
|
2041
|
+
"break-after": [{
|
|
2042
|
+
"break-after": A()
|
|
2043
|
+
}],
|
|
2044
|
+
/**
|
|
2045
|
+
* Break Before
|
|
2046
|
+
* @see https://tailwindcss.com/docs/break-before
|
|
2047
|
+
*/
|
|
2048
|
+
"break-before": [{
|
|
2049
|
+
"break-before": A()
|
|
2050
|
+
}],
|
|
2051
|
+
/**
|
|
2052
|
+
* Break Inside
|
|
2053
|
+
* @see https://tailwindcss.com/docs/break-inside
|
|
2054
|
+
*/
|
|
2055
|
+
"break-inside": [{
|
|
2056
|
+
"break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
|
|
2057
|
+
}],
|
|
2058
|
+
/**
|
|
2059
|
+
* Box Decoration Break
|
|
2060
|
+
* @see https://tailwindcss.com/docs/box-decoration-break
|
|
2061
|
+
*/
|
|
2062
|
+
"box-decoration": [{
|
|
2063
|
+
"box-decoration": ["slice", "clone"]
|
|
2064
|
+
}],
|
|
2065
|
+
/**
|
|
2066
|
+
* Box Sizing
|
|
2067
|
+
* @see https://tailwindcss.com/docs/box-sizing
|
|
2068
|
+
*/
|
|
2069
|
+
box: [{
|
|
2070
|
+
box: ["border", "content"]
|
|
2071
|
+
}],
|
|
2072
|
+
/**
|
|
2073
|
+
* Display
|
|
2074
|
+
* @see https://tailwindcss.com/docs/display
|
|
2075
|
+
*/
|
|
2076
|
+
display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"],
|
|
2077
|
+
/**
|
|
2078
|
+
* Screen Reader Only
|
|
2079
|
+
* @see https://tailwindcss.com/docs/display#screen-reader-only
|
|
2080
|
+
*/
|
|
2081
|
+
sr: ["sr-only", "not-sr-only"],
|
|
2082
|
+
/**
|
|
2083
|
+
* Floats
|
|
2084
|
+
* @see https://tailwindcss.com/docs/float
|
|
2085
|
+
*/
|
|
2086
|
+
float: [{
|
|
2087
|
+
float: ["right", "left", "none", "start", "end"]
|
|
2088
|
+
}],
|
|
2089
|
+
/**
|
|
2090
|
+
* Clear
|
|
2091
|
+
* @see https://tailwindcss.com/docs/clear
|
|
2092
|
+
*/
|
|
2093
|
+
clear: [{
|
|
2094
|
+
clear: ["left", "right", "both", "none", "start", "end"]
|
|
2095
|
+
}],
|
|
2096
|
+
/**
|
|
2097
|
+
* Isolation
|
|
2098
|
+
* @see https://tailwindcss.com/docs/isolation
|
|
2099
|
+
*/
|
|
2100
|
+
isolation: ["isolate", "isolation-auto"],
|
|
2101
|
+
/**
|
|
2102
|
+
* Object Fit
|
|
2103
|
+
* @see https://tailwindcss.com/docs/object-fit
|
|
2104
|
+
*/
|
|
2105
|
+
"object-fit": [{
|
|
2106
|
+
object: ["contain", "cover", "fill", "none", "scale-down"]
|
|
2107
|
+
}],
|
|
2108
|
+
/**
|
|
2109
|
+
* Object Position
|
|
2110
|
+
* @see https://tailwindcss.com/docs/object-position
|
|
2111
|
+
*/
|
|
2112
|
+
"object-position": [{
|
|
2113
|
+
object: N()
|
|
2114
|
+
}],
|
|
2115
|
+
/**
|
|
2116
|
+
* Overflow
|
|
2117
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
2118
|
+
*/
|
|
2119
|
+
overflow: [{
|
|
2120
|
+
overflow: Y()
|
|
2121
|
+
}],
|
|
2122
|
+
/**
|
|
2123
|
+
* Overflow X
|
|
2124
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
2125
|
+
*/
|
|
2126
|
+
"overflow-x": [{
|
|
2127
|
+
"overflow-x": Y()
|
|
2128
|
+
}],
|
|
2129
|
+
/**
|
|
2130
|
+
* Overflow Y
|
|
2131
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
2132
|
+
*/
|
|
2133
|
+
"overflow-y": [{
|
|
2134
|
+
"overflow-y": Y()
|
|
2135
|
+
}],
|
|
2136
|
+
/**
|
|
2137
|
+
* Overscroll Behavior
|
|
2138
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2139
|
+
*/
|
|
2140
|
+
overscroll: [{
|
|
2141
|
+
overscroll: O()
|
|
2142
|
+
}],
|
|
2143
|
+
/**
|
|
2144
|
+
* Overscroll Behavior X
|
|
2145
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2146
|
+
*/
|
|
2147
|
+
"overscroll-x": [{
|
|
2148
|
+
"overscroll-x": O()
|
|
2149
|
+
}],
|
|
2150
|
+
/**
|
|
2151
|
+
* Overscroll Behavior Y
|
|
2152
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2153
|
+
*/
|
|
2154
|
+
"overscroll-y": [{
|
|
2155
|
+
"overscroll-y": O()
|
|
2156
|
+
}],
|
|
2157
|
+
/**
|
|
2158
|
+
* Position
|
|
2159
|
+
* @see https://tailwindcss.com/docs/position
|
|
2160
|
+
*/
|
|
2161
|
+
position: ["static", "fixed", "absolute", "relative", "sticky"],
|
|
2162
|
+
/**
|
|
2163
|
+
* Top / Right / Bottom / Left
|
|
2164
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2165
|
+
*/
|
|
2166
|
+
inset: [{
|
|
2167
|
+
inset: D()
|
|
2168
|
+
}],
|
|
2169
|
+
/**
|
|
2170
|
+
* Right / Left
|
|
2171
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2172
|
+
*/
|
|
2173
|
+
"inset-x": [{
|
|
2174
|
+
"inset-x": D()
|
|
2175
|
+
}],
|
|
2176
|
+
/**
|
|
2177
|
+
* Top / Bottom
|
|
2178
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2179
|
+
*/
|
|
2180
|
+
"inset-y": [{
|
|
2181
|
+
"inset-y": D()
|
|
2182
|
+
}],
|
|
2183
|
+
/**
|
|
2184
|
+
* Start
|
|
2185
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2186
|
+
*/
|
|
2187
|
+
start: [{
|
|
2188
|
+
start: D()
|
|
2189
|
+
}],
|
|
2190
|
+
/**
|
|
2191
|
+
* End
|
|
2192
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2193
|
+
*/
|
|
2194
|
+
end: [{
|
|
2195
|
+
end: D()
|
|
2196
|
+
}],
|
|
2197
|
+
/**
|
|
2198
|
+
* Top
|
|
2199
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2200
|
+
*/
|
|
2201
|
+
top: [{
|
|
2202
|
+
top: D()
|
|
2203
|
+
}],
|
|
2204
|
+
/**
|
|
2205
|
+
* Right
|
|
2206
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2207
|
+
*/
|
|
2208
|
+
right: [{
|
|
2209
|
+
right: D()
|
|
2210
|
+
}],
|
|
2211
|
+
/**
|
|
2212
|
+
* Bottom
|
|
2213
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2214
|
+
*/
|
|
2215
|
+
bottom: [{
|
|
2216
|
+
bottom: D()
|
|
2217
|
+
}],
|
|
2218
|
+
/**
|
|
2219
|
+
* Left
|
|
2220
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2221
|
+
*/
|
|
2222
|
+
left: [{
|
|
2223
|
+
left: D()
|
|
2224
|
+
}],
|
|
2225
|
+
/**
|
|
2226
|
+
* Visibility
|
|
2227
|
+
* @see https://tailwindcss.com/docs/visibility
|
|
2228
|
+
*/
|
|
2229
|
+
visibility: ["visible", "invisible", "collapse"],
|
|
2230
|
+
/**
|
|
2231
|
+
* Z-Index
|
|
2232
|
+
* @see https://tailwindcss.com/docs/z-index
|
|
2233
|
+
*/
|
|
2234
|
+
z: [{
|
|
2235
|
+
z: [ae, "auto", b, p]
|
|
2236
|
+
}],
|
|
2237
|
+
// ------------------------
|
|
2238
|
+
// --- Flexbox and Grid ---
|
|
2239
|
+
// ------------------------
|
|
2240
|
+
/**
|
|
2241
|
+
* Flex Basis
|
|
2242
|
+
* @see https://tailwindcss.com/docs/flex-basis
|
|
2243
|
+
*/
|
|
2244
|
+
basis: [{
|
|
2245
|
+
basis: [Ee, "full", "auto", c, ...E()]
|
|
2246
|
+
}],
|
|
2247
|
+
/**
|
|
2248
|
+
* Flex Direction
|
|
2249
|
+
* @see https://tailwindcss.com/docs/flex-direction
|
|
2250
|
+
*/
|
|
2251
|
+
"flex-direction": [{
|
|
2252
|
+
flex: ["row", "row-reverse", "col", "col-reverse"]
|
|
2253
|
+
}],
|
|
2254
|
+
/**
|
|
2255
|
+
* Flex Wrap
|
|
2256
|
+
* @see https://tailwindcss.com/docs/flex-wrap
|
|
2257
|
+
*/
|
|
2258
|
+
"flex-wrap": [{
|
|
2259
|
+
flex: ["nowrap", "wrap", "wrap-reverse"]
|
|
2260
|
+
}],
|
|
2261
|
+
/**
|
|
2262
|
+
* Flex
|
|
2263
|
+
* @see https://tailwindcss.com/docs/flex
|
|
2264
|
+
*/
|
|
2265
|
+
flex: [{
|
|
2266
|
+
flex: [P, Ee, "auto", "initial", "none", p]
|
|
2267
|
+
}],
|
|
2268
|
+
/**
|
|
2269
|
+
* Flex Grow
|
|
2270
|
+
* @see https://tailwindcss.com/docs/flex-grow
|
|
2271
|
+
*/
|
|
2272
|
+
grow: [{
|
|
2273
|
+
grow: ["", P, b, p]
|
|
2274
|
+
}],
|
|
2275
|
+
/**
|
|
2276
|
+
* Flex Shrink
|
|
2277
|
+
* @see https://tailwindcss.com/docs/flex-shrink
|
|
2278
|
+
*/
|
|
2279
|
+
shrink: [{
|
|
2280
|
+
shrink: ["", P, b, p]
|
|
2281
|
+
}],
|
|
2282
|
+
/**
|
|
2283
|
+
* Order
|
|
2284
|
+
* @see https://tailwindcss.com/docs/order
|
|
2285
|
+
*/
|
|
2286
|
+
order: [{
|
|
2287
|
+
order: [ae, "first", "last", "none", b, p]
|
|
2288
|
+
}],
|
|
2289
|
+
/**
|
|
2290
|
+
* Grid Template Columns
|
|
2291
|
+
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
2292
|
+
*/
|
|
2293
|
+
"grid-cols": [{
|
|
2294
|
+
"grid-cols": ne()
|
|
2295
|
+
}],
|
|
2296
|
+
/**
|
|
2297
|
+
* Grid Column Start / End
|
|
2298
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
2299
|
+
*/
|
|
2300
|
+
"col-start-end": [{
|
|
2301
|
+
col: fe()
|
|
2302
|
+
}],
|
|
2303
|
+
/**
|
|
2304
|
+
* Grid Column Start
|
|
2305
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
2306
|
+
*/
|
|
2307
|
+
"col-start": [{
|
|
2308
|
+
"col-start": oe()
|
|
2309
|
+
}],
|
|
2310
|
+
/**
|
|
2311
|
+
* Grid Column End
|
|
2312
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
2313
|
+
*/
|
|
2314
|
+
"col-end": [{
|
|
2315
|
+
"col-end": oe()
|
|
2316
|
+
}],
|
|
2317
|
+
/**
|
|
2318
|
+
* Grid Template Rows
|
|
2319
|
+
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
2320
|
+
*/
|
|
2321
|
+
"grid-rows": [{
|
|
2322
|
+
"grid-rows": ne()
|
|
2323
|
+
}],
|
|
2324
|
+
/**
|
|
2325
|
+
* Grid Row Start / End
|
|
2326
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
2327
|
+
*/
|
|
2328
|
+
"row-start-end": [{
|
|
2329
|
+
row: fe()
|
|
2330
|
+
}],
|
|
2331
|
+
/**
|
|
2332
|
+
* Grid Row Start
|
|
2333
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
2334
|
+
*/
|
|
2335
|
+
"row-start": [{
|
|
2336
|
+
"row-start": oe()
|
|
2337
|
+
}],
|
|
2338
|
+
/**
|
|
2339
|
+
* Grid Row End
|
|
2340
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
2341
|
+
*/
|
|
2342
|
+
"row-end": [{
|
|
2343
|
+
"row-end": oe()
|
|
2344
|
+
}],
|
|
2345
|
+
/**
|
|
2346
|
+
* Grid Auto Flow
|
|
2347
|
+
* @see https://tailwindcss.com/docs/grid-auto-flow
|
|
2348
|
+
*/
|
|
2349
|
+
"grid-flow": [{
|
|
2350
|
+
"grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
|
|
2351
|
+
}],
|
|
2352
|
+
/**
|
|
2353
|
+
* Grid Auto Columns
|
|
2354
|
+
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
2355
|
+
*/
|
|
2356
|
+
"auto-cols": [{
|
|
2357
|
+
"auto-cols": $e()
|
|
2358
|
+
}],
|
|
2359
|
+
/**
|
|
2360
|
+
* Grid Auto Rows
|
|
2361
|
+
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
2362
|
+
*/
|
|
2363
|
+
"auto-rows": [{
|
|
2364
|
+
"auto-rows": $e()
|
|
2365
|
+
}],
|
|
2366
|
+
/**
|
|
2367
|
+
* Gap
|
|
2368
|
+
* @see https://tailwindcss.com/docs/gap
|
|
2369
|
+
*/
|
|
2370
|
+
gap: [{
|
|
2371
|
+
gap: E()
|
|
2372
|
+
}],
|
|
2373
|
+
/**
|
|
2374
|
+
* Gap X
|
|
2375
|
+
* @see https://tailwindcss.com/docs/gap
|
|
2376
|
+
*/
|
|
2377
|
+
"gap-x": [{
|
|
2378
|
+
"gap-x": E()
|
|
2379
|
+
}],
|
|
2380
|
+
/**
|
|
2381
|
+
* Gap Y
|
|
2382
|
+
* @see https://tailwindcss.com/docs/gap
|
|
2383
|
+
*/
|
|
2384
|
+
"gap-y": [{
|
|
2385
|
+
"gap-y": E()
|
|
2386
|
+
}],
|
|
2387
|
+
/**
|
|
2388
|
+
* Justify Content
|
|
2389
|
+
* @see https://tailwindcss.com/docs/justify-content
|
|
2390
|
+
*/
|
|
2391
|
+
"justify-content": [{
|
|
2392
|
+
justify: [...ze(), "normal"]
|
|
2393
|
+
}],
|
|
2394
|
+
/**
|
|
2395
|
+
* Justify Items
|
|
2396
|
+
* @see https://tailwindcss.com/docs/justify-items
|
|
2397
|
+
*/
|
|
2398
|
+
"justify-items": [{
|
|
2399
|
+
"justify-items": [...J(), "normal"]
|
|
2400
|
+
}],
|
|
2401
|
+
/**
|
|
2402
|
+
* Justify Self
|
|
2403
|
+
* @see https://tailwindcss.com/docs/justify-self
|
|
2404
|
+
*/
|
|
2405
|
+
"justify-self": [{
|
|
2406
|
+
"justify-self": ["auto", ...J()]
|
|
2407
|
+
}],
|
|
2408
|
+
/**
|
|
2409
|
+
* Align Content
|
|
2410
|
+
* @see https://tailwindcss.com/docs/align-content
|
|
2411
|
+
*/
|
|
2412
|
+
"align-content": [{
|
|
2413
|
+
content: ["normal", ...ze()]
|
|
2414
|
+
}],
|
|
2415
|
+
/**
|
|
2416
|
+
* Align Items
|
|
2417
|
+
* @see https://tailwindcss.com/docs/align-items
|
|
2418
|
+
*/
|
|
2419
|
+
"align-items": [{
|
|
2420
|
+
items: [...J(), {
|
|
2421
|
+
baseline: ["", "last"]
|
|
2422
|
+
}]
|
|
2423
|
+
}],
|
|
2424
|
+
/**
|
|
2425
|
+
* Align Self
|
|
2426
|
+
* @see https://tailwindcss.com/docs/align-self
|
|
2427
|
+
*/
|
|
2428
|
+
"align-self": [{
|
|
2429
|
+
self: ["auto", ...J(), {
|
|
2430
|
+
baseline: ["", "last"]
|
|
2431
|
+
}]
|
|
2432
|
+
}],
|
|
2433
|
+
/**
|
|
2434
|
+
* Place Content
|
|
2435
|
+
* @see https://tailwindcss.com/docs/place-content
|
|
2436
|
+
*/
|
|
2437
|
+
"place-content": [{
|
|
2438
|
+
"place-content": ze()
|
|
2439
|
+
}],
|
|
2440
|
+
/**
|
|
2441
|
+
* Place Items
|
|
2442
|
+
* @see https://tailwindcss.com/docs/place-items
|
|
2443
|
+
*/
|
|
2444
|
+
"place-items": [{
|
|
2445
|
+
"place-items": [...J(), "baseline"]
|
|
2446
|
+
}],
|
|
2447
|
+
/**
|
|
2448
|
+
* Place Self
|
|
2449
|
+
* @see https://tailwindcss.com/docs/place-self
|
|
2450
|
+
*/
|
|
2451
|
+
"place-self": [{
|
|
2452
|
+
"place-self": ["auto", ...J()]
|
|
2453
|
+
}],
|
|
2454
|
+
// Spacing
|
|
2455
|
+
/**
|
|
2456
|
+
* Padding
|
|
2457
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2458
|
+
*/
|
|
2459
|
+
p: [{
|
|
2460
|
+
p: E()
|
|
2461
|
+
}],
|
|
2462
|
+
/**
|
|
2463
|
+
* Padding X
|
|
2464
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2465
|
+
*/
|
|
2466
|
+
px: [{
|
|
2467
|
+
px: E()
|
|
2468
|
+
}],
|
|
2469
|
+
/**
|
|
2470
|
+
* Padding Y
|
|
2471
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2472
|
+
*/
|
|
2473
|
+
py: [{
|
|
2474
|
+
py: E()
|
|
2475
|
+
}],
|
|
2476
|
+
/**
|
|
2477
|
+
* Padding Start
|
|
2478
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2479
|
+
*/
|
|
2480
|
+
ps: [{
|
|
2481
|
+
ps: E()
|
|
2482
|
+
}],
|
|
2483
|
+
/**
|
|
2484
|
+
* Padding End
|
|
2485
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2486
|
+
*/
|
|
2487
|
+
pe: [{
|
|
2488
|
+
pe: E()
|
|
2489
|
+
}],
|
|
2490
|
+
/**
|
|
2491
|
+
* Padding Top
|
|
2492
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2493
|
+
*/
|
|
2494
|
+
pt: [{
|
|
2495
|
+
pt: E()
|
|
2496
|
+
}],
|
|
2497
|
+
/**
|
|
2498
|
+
* Padding Right
|
|
2499
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2500
|
+
*/
|
|
2501
|
+
pr: [{
|
|
2502
|
+
pr: E()
|
|
2503
|
+
}],
|
|
2504
|
+
/**
|
|
2505
|
+
* Padding Bottom
|
|
2506
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2507
|
+
*/
|
|
2508
|
+
pb: [{
|
|
2509
|
+
pb: E()
|
|
2510
|
+
}],
|
|
2511
|
+
/**
|
|
2512
|
+
* Padding Left
|
|
2513
|
+
* @see https://tailwindcss.com/docs/padding
|
|
2514
|
+
*/
|
|
2515
|
+
pl: [{
|
|
2516
|
+
pl: E()
|
|
2517
|
+
}],
|
|
2518
|
+
/**
|
|
2519
|
+
* Margin
|
|
2520
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2521
|
+
*/
|
|
2522
|
+
m: [{
|
|
2523
|
+
m: W()
|
|
2524
|
+
}],
|
|
2525
|
+
/**
|
|
2526
|
+
* Margin X
|
|
2527
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2528
|
+
*/
|
|
2529
|
+
mx: [{
|
|
2530
|
+
mx: W()
|
|
2531
|
+
}],
|
|
2532
|
+
/**
|
|
2533
|
+
* Margin Y
|
|
2534
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2535
|
+
*/
|
|
2536
|
+
my: [{
|
|
2537
|
+
my: W()
|
|
2538
|
+
}],
|
|
2539
|
+
/**
|
|
2540
|
+
* Margin Start
|
|
2541
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2542
|
+
*/
|
|
2543
|
+
ms: [{
|
|
2544
|
+
ms: W()
|
|
2545
|
+
}],
|
|
2546
|
+
/**
|
|
2547
|
+
* Margin End
|
|
2548
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2549
|
+
*/
|
|
2550
|
+
me: [{
|
|
2551
|
+
me: W()
|
|
2552
|
+
}],
|
|
2553
|
+
/**
|
|
2554
|
+
* Margin Top
|
|
2555
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2556
|
+
*/
|
|
2557
|
+
mt: [{
|
|
2558
|
+
mt: W()
|
|
2559
|
+
}],
|
|
2560
|
+
/**
|
|
2561
|
+
* Margin Right
|
|
2562
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2563
|
+
*/
|
|
2564
|
+
mr: [{
|
|
2565
|
+
mr: W()
|
|
2566
|
+
}],
|
|
2567
|
+
/**
|
|
2568
|
+
* Margin Bottom
|
|
2569
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2570
|
+
*/
|
|
2571
|
+
mb: [{
|
|
2572
|
+
mb: W()
|
|
2573
|
+
}],
|
|
2574
|
+
/**
|
|
2575
|
+
* Margin Left
|
|
2576
|
+
* @see https://tailwindcss.com/docs/margin
|
|
2577
|
+
*/
|
|
2578
|
+
ml: [{
|
|
2579
|
+
ml: W()
|
|
2580
|
+
}],
|
|
2581
|
+
/**
|
|
2582
|
+
* Space Between X
|
|
2583
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2584
|
+
*/
|
|
2585
|
+
"space-x": [{
|
|
2586
|
+
"space-x": E()
|
|
2587
|
+
}],
|
|
2588
|
+
/**
|
|
2589
|
+
* Space Between X Reverse
|
|
2590
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2591
|
+
*/
|
|
2592
|
+
"space-x-reverse": ["space-x-reverse"],
|
|
2593
|
+
/**
|
|
2594
|
+
* Space Between Y
|
|
2595
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2596
|
+
*/
|
|
2597
|
+
"space-y": [{
|
|
2598
|
+
"space-y": E()
|
|
2599
|
+
}],
|
|
2600
|
+
/**
|
|
2601
|
+
* Space Between Y Reverse
|
|
2602
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2603
|
+
*/
|
|
2604
|
+
"space-y-reverse": ["space-y-reverse"],
|
|
2605
|
+
// --------------
|
|
2606
|
+
// --- Sizing ---
|
|
2607
|
+
// --------------
|
|
2608
|
+
/**
|
|
2609
|
+
* Size
|
|
2610
|
+
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
2611
|
+
*/
|
|
2612
|
+
size: [{
|
|
2613
|
+
size: U()
|
|
2614
|
+
}],
|
|
2615
|
+
/**
|
|
2616
|
+
* Width
|
|
2617
|
+
* @see https://tailwindcss.com/docs/width
|
|
2618
|
+
*/
|
|
2619
|
+
w: [{
|
|
2620
|
+
w: [c, "screen", ...U()]
|
|
2621
|
+
}],
|
|
2622
|
+
/**
|
|
2623
|
+
* Min-Width
|
|
2624
|
+
* @see https://tailwindcss.com/docs/min-width
|
|
2625
|
+
*/
|
|
2626
|
+
"min-w": [{
|
|
2627
|
+
"min-w": [
|
|
2628
|
+
c,
|
|
2629
|
+
"screen",
|
|
2630
|
+
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2631
|
+
"none",
|
|
2632
|
+
...U()
|
|
2633
|
+
]
|
|
2634
|
+
}],
|
|
2635
|
+
/**
|
|
2636
|
+
* Max-Width
|
|
2637
|
+
* @see https://tailwindcss.com/docs/max-width
|
|
2638
|
+
*/
|
|
2639
|
+
"max-w": [{
|
|
2640
|
+
"max-w": [
|
|
2641
|
+
c,
|
|
2642
|
+
"screen",
|
|
2643
|
+
"none",
|
|
2644
|
+
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2645
|
+
"prose",
|
|
2646
|
+
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2647
|
+
{
|
|
2648
|
+
screen: [l]
|
|
2649
|
+
},
|
|
2650
|
+
...U()
|
|
2651
|
+
]
|
|
2652
|
+
}],
|
|
2653
|
+
/**
|
|
2654
|
+
* Height
|
|
2655
|
+
* @see https://tailwindcss.com/docs/height
|
|
2656
|
+
*/
|
|
2657
|
+
h: [{
|
|
2658
|
+
h: ["screen", "lh", ...U()]
|
|
2659
|
+
}],
|
|
2660
|
+
/**
|
|
2661
|
+
* Min-Height
|
|
2662
|
+
* @see https://tailwindcss.com/docs/min-height
|
|
2663
|
+
*/
|
|
2664
|
+
"min-h": [{
|
|
2665
|
+
"min-h": ["screen", "lh", "none", ...U()]
|
|
2666
|
+
}],
|
|
2667
|
+
/**
|
|
2668
|
+
* Max-Height
|
|
2669
|
+
* @see https://tailwindcss.com/docs/max-height
|
|
2670
|
+
*/
|
|
2671
|
+
"max-h": [{
|
|
2672
|
+
"max-h": ["screen", "lh", ...U()]
|
|
2673
|
+
}],
|
|
2674
|
+
// ------------------
|
|
2675
|
+
// --- Typography ---
|
|
2676
|
+
// ------------------
|
|
2677
|
+
/**
|
|
2678
|
+
* Font Size
|
|
2679
|
+
* @see https://tailwindcss.com/docs/font-size
|
|
2680
|
+
*/
|
|
2681
|
+
"font-size": [{
|
|
2682
|
+
text: ["base", r, Le, be]
|
|
2683
|
+
}],
|
|
2684
|
+
/**
|
|
2685
|
+
* Font Smoothing
|
|
2686
|
+
* @see https://tailwindcss.com/docs/font-smoothing
|
|
2687
|
+
*/
|
|
2688
|
+
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
2689
|
+
/**
|
|
2690
|
+
* Font Style
|
|
2691
|
+
* @see https://tailwindcss.com/docs/font-style
|
|
2692
|
+
*/
|
|
2693
|
+
"font-style": ["italic", "not-italic"],
|
|
2694
|
+
/**
|
|
2695
|
+
* Font Weight
|
|
2696
|
+
* @see https://tailwindcss.com/docs/font-weight
|
|
2697
|
+
*/
|
|
2698
|
+
"font-weight": [{
|
|
2699
|
+
font: [n, _o, Do]
|
|
2700
|
+
}],
|
|
2701
|
+
/**
|
|
2702
|
+
* Font Stretch
|
|
2703
|
+
* @see https://tailwindcss.com/docs/font-stretch
|
|
2704
|
+
*/
|
|
2705
|
+
"font-stretch": [{
|
|
2706
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", tt, p]
|
|
2707
|
+
}],
|
|
2708
|
+
/**
|
|
2709
|
+
* Font Family
|
|
2710
|
+
* @see https://tailwindcss.com/docs/font-family
|
|
2711
|
+
*/
|
|
2712
|
+
"font-family": [{
|
|
2713
|
+
font: [Ro, Ko, t]
|
|
2714
|
+
}],
|
|
2715
|
+
/**
|
|
2716
|
+
* Font Variant Numeric
|
|
2717
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
2718
|
+
*/
|
|
2719
|
+
"fvn-normal": ["normal-nums"],
|
|
2720
|
+
/**
|
|
2721
|
+
* Font Variant Numeric
|
|
2722
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
2723
|
+
*/
|
|
2724
|
+
"fvn-ordinal": ["ordinal"],
|
|
2725
|
+
/**
|
|
2726
|
+
* Font Variant Numeric
|
|
2727
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
2728
|
+
*/
|
|
2729
|
+
"fvn-slashed-zero": ["slashed-zero"],
|
|
2730
|
+
/**
|
|
2731
|
+
* Font Variant Numeric
|
|
2732
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
2733
|
+
*/
|
|
2734
|
+
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
2735
|
+
/**
|
|
2736
|
+
* Font Variant Numeric
|
|
2737
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
2738
|
+
*/
|
|
2739
|
+
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
2740
|
+
/**
|
|
2741
|
+
* Font Variant Numeric
|
|
2742
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
2743
|
+
*/
|
|
2744
|
+
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
2745
|
+
/**
|
|
2746
|
+
* Letter Spacing
|
|
2747
|
+
* @see https://tailwindcss.com/docs/letter-spacing
|
|
2748
|
+
*/
|
|
2749
|
+
tracking: [{
|
|
2750
|
+
tracking: [o, b, p]
|
|
2751
|
+
}],
|
|
2752
|
+
/**
|
|
2753
|
+
* Line Clamp
|
|
2754
|
+
* @see https://tailwindcss.com/docs/line-clamp
|
|
2755
|
+
*/
|
|
2756
|
+
"line-clamp": [{
|
|
2757
|
+
"line-clamp": [P, "none", b, Gt]
|
|
2758
|
+
}],
|
|
2759
|
+
/**
|
|
2760
|
+
* Line Height
|
|
2761
|
+
* @see https://tailwindcss.com/docs/line-height
|
|
2762
|
+
*/
|
|
2763
|
+
leading: [{
|
|
2764
|
+
leading: [
|
|
2765
|
+
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2766
|
+
s,
|
|
2767
|
+
...E()
|
|
2768
|
+
]
|
|
2769
|
+
}],
|
|
2770
|
+
/**
|
|
2771
|
+
* List Style Image
|
|
2772
|
+
* @see https://tailwindcss.com/docs/list-style-image
|
|
2773
|
+
*/
|
|
2774
|
+
"list-image": [{
|
|
2775
|
+
"list-image": ["none", b, p]
|
|
2776
|
+
}],
|
|
2777
|
+
/**
|
|
2778
|
+
* List Style Position
|
|
2779
|
+
* @see https://tailwindcss.com/docs/list-style-position
|
|
2780
|
+
*/
|
|
2781
|
+
"list-style-position": [{
|
|
2782
|
+
list: ["inside", "outside"]
|
|
2783
|
+
}],
|
|
2784
|
+
/**
|
|
2785
|
+
* List Style Type
|
|
2786
|
+
* @see https://tailwindcss.com/docs/list-style-type
|
|
2787
|
+
*/
|
|
2788
|
+
"list-style-type": [{
|
|
2789
|
+
list: ["disc", "decimal", "none", b, p]
|
|
2790
|
+
}],
|
|
2791
|
+
/**
|
|
2792
|
+
* Text Alignment
|
|
2793
|
+
* @see https://tailwindcss.com/docs/text-align
|
|
2794
|
+
*/
|
|
2795
|
+
"text-alignment": [{
|
|
2796
|
+
text: ["left", "center", "right", "justify", "start", "end"]
|
|
2797
|
+
}],
|
|
2798
|
+
/**
|
|
2799
|
+
* Placeholder Color
|
|
2800
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
2801
|
+
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
2802
|
+
*/
|
|
2803
|
+
"placeholder-color": [{
|
|
2804
|
+
placeholder: h()
|
|
2805
|
+
}],
|
|
2806
|
+
/**
|
|
2807
|
+
* Text Color
|
|
2808
|
+
* @see https://tailwindcss.com/docs/text-color
|
|
2809
|
+
*/
|
|
2810
|
+
"text-color": [{
|
|
2811
|
+
text: h()
|
|
2812
|
+
}],
|
|
2813
|
+
/**
|
|
2814
|
+
* Text Decoration
|
|
2815
|
+
* @see https://tailwindcss.com/docs/text-decoration
|
|
2816
|
+
*/
|
|
2817
|
+
"text-decoration": ["underline", "overline", "line-through", "no-underline"],
|
|
2818
|
+
/**
|
|
2819
|
+
* Text Decoration Style
|
|
2820
|
+
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
2821
|
+
*/
|
|
2822
|
+
"text-decoration-style": [{
|
|
2823
|
+
decoration: [...T(), "wavy"]
|
|
2824
|
+
}],
|
|
2825
|
+
/**
|
|
2826
|
+
* Text Decoration Thickness
|
|
2827
|
+
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2828
|
+
*/
|
|
2829
|
+
"text-decoration-thickness": [{
|
|
2830
|
+
decoration: [P, "from-font", "auto", b, be]
|
|
2831
|
+
}],
|
|
2832
|
+
/**
|
|
2833
|
+
* Text Decoration Color
|
|
2834
|
+
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
2835
|
+
*/
|
|
2836
|
+
"text-decoration-color": [{
|
|
2837
|
+
decoration: h()
|
|
2838
|
+
}],
|
|
2839
|
+
/**
|
|
2840
|
+
* Text Underline Offset
|
|
2841
|
+
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2842
|
+
*/
|
|
2843
|
+
"underline-offset": [{
|
|
2844
|
+
"underline-offset": [P, "auto", b, p]
|
|
2845
|
+
}],
|
|
2846
|
+
/**
|
|
2847
|
+
* Text Transform
|
|
2848
|
+
* @see https://tailwindcss.com/docs/text-transform
|
|
2849
|
+
*/
|
|
2850
|
+
"text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
|
|
2851
|
+
/**
|
|
2852
|
+
* Text Overflow
|
|
2853
|
+
* @see https://tailwindcss.com/docs/text-overflow
|
|
2854
|
+
*/
|
|
2855
|
+
"text-overflow": ["truncate", "text-ellipsis", "text-clip"],
|
|
2856
|
+
/**
|
|
2857
|
+
* Text Wrap
|
|
2858
|
+
* @see https://tailwindcss.com/docs/text-wrap
|
|
2859
|
+
*/
|
|
2860
|
+
"text-wrap": [{
|
|
2861
|
+
text: ["wrap", "nowrap", "balance", "pretty"]
|
|
2862
|
+
}],
|
|
2863
|
+
/**
|
|
2864
|
+
* Text Indent
|
|
2865
|
+
* @see https://tailwindcss.com/docs/text-indent
|
|
2866
|
+
*/
|
|
2867
|
+
indent: [{
|
|
2868
|
+
indent: E()
|
|
2869
|
+
}],
|
|
2870
|
+
/**
|
|
2871
|
+
* Vertical Alignment
|
|
2872
|
+
* @see https://tailwindcss.com/docs/vertical-align
|
|
2873
|
+
*/
|
|
2874
|
+
"vertical-align": [{
|
|
2875
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", b, p]
|
|
2876
|
+
}],
|
|
2877
|
+
/**
|
|
2878
|
+
* Whitespace
|
|
2879
|
+
* @see https://tailwindcss.com/docs/whitespace
|
|
2880
|
+
*/
|
|
2881
|
+
whitespace: [{
|
|
2882
|
+
whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
|
|
2883
|
+
}],
|
|
2884
|
+
/**
|
|
2885
|
+
* Word Break
|
|
2886
|
+
* @see https://tailwindcss.com/docs/word-break
|
|
2887
|
+
*/
|
|
2888
|
+
break: [{
|
|
2889
|
+
break: ["normal", "words", "all", "keep"]
|
|
2890
|
+
}],
|
|
2891
|
+
/**
|
|
2892
|
+
* Overflow Wrap
|
|
2893
|
+
* @see https://tailwindcss.com/docs/overflow-wrap
|
|
2894
|
+
*/
|
|
2895
|
+
wrap: [{
|
|
2896
|
+
wrap: ["break-word", "anywhere", "normal"]
|
|
2897
|
+
}],
|
|
2898
|
+
/**
|
|
2899
|
+
* Hyphens
|
|
2900
|
+
* @see https://tailwindcss.com/docs/hyphens
|
|
2901
|
+
*/
|
|
2902
|
+
hyphens: [{
|
|
2903
|
+
hyphens: ["none", "manual", "auto"]
|
|
2904
|
+
}],
|
|
2905
|
+
/**
|
|
2906
|
+
* Content
|
|
2907
|
+
* @see https://tailwindcss.com/docs/content
|
|
2908
|
+
*/
|
|
2909
|
+
content: [{
|
|
2910
|
+
content: ["none", b, p]
|
|
2911
|
+
}],
|
|
2912
|
+
// -------------------
|
|
2913
|
+
// --- Backgrounds ---
|
|
2914
|
+
// -------------------
|
|
2915
|
+
/**
|
|
2916
|
+
* Background Attachment
|
|
2917
|
+
* @see https://tailwindcss.com/docs/background-attachment
|
|
2918
|
+
*/
|
|
2919
|
+
"bg-attachment": [{
|
|
2920
|
+
bg: ["fixed", "local", "scroll"]
|
|
2921
|
+
}],
|
|
2922
|
+
/**
|
|
2923
|
+
* Background Clip
|
|
2924
|
+
* @see https://tailwindcss.com/docs/background-clip
|
|
2925
|
+
*/
|
|
2926
|
+
"bg-clip": [{
|
|
2927
|
+
"bg-clip": ["border", "padding", "content", "text"]
|
|
2928
|
+
}],
|
|
2929
|
+
/**
|
|
2930
|
+
* Background Origin
|
|
2931
|
+
* @see https://tailwindcss.com/docs/background-origin
|
|
2932
|
+
*/
|
|
2933
|
+
"bg-origin": [{
|
|
2934
|
+
"bg-origin": ["border", "padding", "content"]
|
|
2935
|
+
}],
|
|
2936
|
+
/**
|
|
2937
|
+
* Background Position
|
|
2938
|
+
* @see https://tailwindcss.com/docs/background-position
|
|
2939
|
+
*/
|
|
2940
|
+
"bg-position": [{
|
|
2941
|
+
bg: Oe()
|
|
2942
|
+
}],
|
|
2943
|
+
/**
|
|
2944
|
+
* Background Repeat
|
|
2945
|
+
* @see https://tailwindcss.com/docs/background-repeat
|
|
2946
|
+
*/
|
|
2947
|
+
"bg-repeat": [{
|
|
2948
|
+
bg: i()
|
|
2949
|
+
}],
|
|
2950
|
+
/**
|
|
2951
|
+
* Background Size
|
|
2952
|
+
* @see https://tailwindcss.com/docs/background-size
|
|
2953
|
+
*/
|
|
2954
|
+
"bg-size": [{
|
|
2955
|
+
bg: v()
|
|
2956
|
+
}],
|
|
2957
|
+
/**
|
|
2958
|
+
* Background Image
|
|
2959
|
+
* @see https://tailwindcss.com/docs/background-image
|
|
2960
|
+
*/
|
|
2961
|
+
"bg-image": [{
|
|
2962
|
+
bg: ["none", {
|
|
2963
|
+
linear: [{
|
|
2964
|
+
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2965
|
+
}, ae, b, p],
|
|
2966
|
+
radial: ["", b, p],
|
|
2967
|
+
conic: [ae, b, p]
|
|
2968
|
+
}, Go, Vo]
|
|
2969
|
+
}],
|
|
2970
|
+
/**
|
|
2971
|
+
* Background Color
|
|
2972
|
+
* @see https://tailwindcss.com/docs/background-color
|
|
2973
|
+
*/
|
|
2974
|
+
"bg-color": [{
|
|
2975
|
+
bg: h()
|
|
2976
|
+
}],
|
|
2977
|
+
/**
|
|
2978
|
+
* Gradient Color Stops From Position
|
|
2979
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2980
|
+
*/
|
|
2981
|
+
"gradient-from-pos": [{
|
|
2982
|
+
from: a()
|
|
2983
|
+
}],
|
|
2984
|
+
/**
|
|
2985
|
+
* Gradient Color Stops Via Position
|
|
2986
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2987
|
+
*/
|
|
2988
|
+
"gradient-via-pos": [{
|
|
2989
|
+
via: a()
|
|
2990
|
+
}],
|
|
2991
|
+
/**
|
|
2992
|
+
* Gradient Color Stops To Position
|
|
2993
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2994
|
+
*/
|
|
2995
|
+
"gradient-to-pos": [{
|
|
2996
|
+
to: a()
|
|
2997
|
+
}],
|
|
2998
|
+
/**
|
|
2999
|
+
* Gradient Color Stops From
|
|
3000
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3001
|
+
*/
|
|
3002
|
+
"gradient-from": [{
|
|
3003
|
+
from: h()
|
|
3004
|
+
}],
|
|
3005
|
+
/**
|
|
3006
|
+
* Gradient Color Stops Via
|
|
3007
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3008
|
+
*/
|
|
3009
|
+
"gradient-via": [{
|
|
3010
|
+
via: h()
|
|
3011
|
+
}],
|
|
3012
|
+
/**
|
|
3013
|
+
* Gradient Color Stops To
|
|
3014
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3015
|
+
*/
|
|
3016
|
+
"gradient-to": [{
|
|
3017
|
+
to: h()
|
|
3018
|
+
}],
|
|
3019
|
+
// ---------------
|
|
3020
|
+
// --- Borders ---
|
|
3021
|
+
// ---------------
|
|
3022
|
+
/**
|
|
3023
|
+
* Border Radius
|
|
3024
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3025
|
+
*/
|
|
3026
|
+
rounded: [{
|
|
3027
|
+
rounded: f()
|
|
3028
|
+
}],
|
|
3029
|
+
/**
|
|
3030
|
+
* Border Radius Start
|
|
3031
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3032
|
+
*/
|
|
3033
|
+
"rounded-s": [{
|
|
3034
|
+
"rounded-s": f()
|
|
3035
|
+
}],
|
|
3036
|
+
/**
|
|
3037
|
+
* Border Radius End
|
|
3038
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3039
|
+
*/
|
|
3040
|
+
"rounded-e": [{
|
|
3041
|
+
"rounded-e": f()
|
|
3042
|
+
}],
|
|
3043
|
+
/**
|
|
3044
|
+
* Border Radius Top
|
|
3045
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3046
|
+
*/
|
|
3047
|
+
"rounded-t": [{
|
|
3048
|
+
"rounded-t": f()
|
|
3049
|
+
}],
|
|
3050
|
+
/**
|
|
3051
|
+
* Border Radius Right
|
|
3052
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3053
|
+
*/
|
|
3054
|
+
"rounded-r": [{
|
|
3055
|
+
"rounded-r": f()
|
|
3056
|
+
}],
|
|
3057
|
+
/**
|
|
3058
|
+
* Border Radius Bottom
|
|
3059
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3060
|
+
*/
|
|
3061
|
+
"rounded-b": [{
|
|
3062
|
+
"rounded-b": f()
|
|
3063
|
+
}],
|
|
3064
|
+
/**
|
|
3065
|
+
* Border Radius Left
|
|
3066
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3067
|
+
*/
|
|
3068
|
+
"rounded-l": [{
|
|
3069
|
+
"rounded-l": f()
|
|
3070
|
+
}],
|
|
3071
|
+
/**
|
|
3072
|
+
* Border Radius Start Start
|
|
3073
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3074
|
+
*/
|
|
3075
|
+
"rounded-ss": [{
|
|
3076
|
+
"rounded-ss": f()
|
|
3077
|
+
}],
|
|
3078
|
+
/**
|
|
3079
|
+
* Border Radius Start End
|
|
3080
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3081
|
+
*/
|
|
3082
|
+
"rounded-se": [{
|
|
3083
|
+
"rounded-se": f()
|
|
3084
|
+
}],
|
|
3085
|
+
/**
|
|
3086
|
+
* Border Radius End End
|
|
3087
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3088
|
+
*/
|
|
3089
|
+
"rounded-ee": [{
|
|
3090
|
+
"rounded-ee": f()
|
|
3091
|
+
}],
|
|
3092
|
+
/**
|
|
3093
|
+
* Border Radius End Start
|
|
3094
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3095
|
+
*/
|
|
3096
|
+
"rounded-es": [{
|
|
3097
|
+
"rounded-es": f()
|
|
3098
|
+
}],
|
|
3099
|
+
/**
|
|
3100
|
+
* Border Radius Top Left
|
|
3101
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3102
|
+
*/
|
|
3103
|
+
"rounded-tl": [{
|
|
3104
|
+
"rounded-tl": f()
|
|
3105
|
+
}],
|
|
3106
|
+
/**
|
|
3107
|
+
* Border Radius Top Right
|
|
3108
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3109
|
+
*/
|
|
3110
|
+
"rounded-tr": [{
|
|
3111
|
+
"rounded-tr": f()
|
|
3112
|
+
}],
|
|
3113
|
+
/**
|
|
3114
|
+
* Border Radius Bottom Right
|
|
3115
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3116
|
+
*/
|
|
3117
|
+
"rounded-br": [{
|
|
3118
|
+
"rounded-br": f()
|
|
3119
|
+
}],
|
|
3120
|
+
/**
|
|
3121
|
+
* Border Radius Bottom Left
|
|
3122
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
3123
|
+
*/
|
|
3124
|
+
"rounded-bl": [{
|
|
3125
|
+
"rounded-bl": f()
|
|
3126
|
+
}],
|
|
3127
|
+
/**
|
|
3128
|
+
* Border Width
|
|
3129
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
3130
|
+
*/
|
|
3131
|
+
"border-w": [{
|
|
3132
|
+
border: y()
|
|
3133
|
+
}],
|
|
3134
|
+
/**
|
|
3135
|
+
* Border Width X
|
|
3136
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
3137
|
+
*/
|
|
3138
|
+
"border-w-x": [{
|
|
3139
|
+
"border-x": y()
|
|
3140
|
+
}],
|
|
3141
|
+
/**
|
|
3142
|
+
* Border Width Y
|
|
3143
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
3144
|
+
*/
|
|
3145
|
+
"border-w-y": [{
|
|
3146
|
+
"border-y": y()
|
|
3147
|
+
}],
|
|
3148
|
+
/**
|
|
3149
|
+
* Border Width Start
|
|
3150
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
3151
|
+
*/
|
|
3152
|
+
"border-w-s": [{
|
|
3153
|
+
"border-s": y()
|
|
3154
|
+
}],
|
|
3155
|
+
/**
|
|
3156
|
+
* Border Width End
|
|
3157
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
3158
|
+
*/
|
|
3159
|
+
"border-w-e": [{
|
|
3160
|
+
"border-e": y()
|
|
3161
|
+
}],
|
|
3162
|
+
/**
|
|
3163
|
+
* Border Width Top
|
|
3164
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
3165
|
+
*/
|
|
3166
|
+
"border-w-t": [{
|
|
3167
|
+
"border-t": y()
|
|
3168
|
+
}],
|
|
3169
|
+
/**
|
|
3170
|
+
* Border Width Right
|
|
3171
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
3172
|
+
*/
|
|
3173
|
+
"border-w-r": [{
|
|
3174
|
+
"border-r": y()
|
|
3175
|
+
}],
|
|
3176
|
+
/**
|
|
3177
|
+
* Border Width Bottom
|
|
3178
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
3179
|
+
*/
|
|
3180
|
+
"border-w-b": [{
|
|
3181
|
+
"border-b": y()
|
|
3182
|
+
}],
|
|
3183
|
+
/**
|
|
3184
|
+
* Border Width Left
|
|
3185
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
3186
|
+
*/
|
|
3187
|
+
"border-w-l": [{
|
|
3188
|
+
"border-l": y()
|
|
3189
|
+
}],
|
|
3190
|
+
/**
|
|
3191
|
+
* Divide Width X
|
|
3192
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
3193
|
+
*/
|
|
3194
|
+
"divide-x": [{
|
|
3195
|
+
"divide-x": y()
|
|
3196
|
+
}],
|
|
3197
|
+
/**
|
|
3198
|
+
* Divide Width X Reverse
|
|
3199
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
3200
|
+
*/
|
|
3201
|
+
"divide-x-reverse": ["divide-x-reverse"],
|
|
3202
|
+
/**
|
|
3203
|
+
* Divide Width Y
|
|
3204
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
3205
|
+
*/
|
|
3206
|
+
"divide-y": [{
|
|
3207
|
+
"divide-y": y()
|
|
3208
|
+
}],
|
|
3209
|
+
/**
|
|
3210
|
+
* Divide Width Y Reverse
|
|
3211
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
3212
|
+
*/
|
|
3213
|
+
"divide-y-reverse": ["divide-y-reverse"],
|
|
3214
|
+
/**
|
|
3215
|
+
* Border Style
|
|
3216
|
+
* @see https://tailwindcss.com/docs/border-style
|
|
3217
|
+
*/
|
|
3218
|
+
"border-style": [{
|
|
3219
|
+
border: [...T(), "hidden", "none"]
|
|
3220
|
+
}],
|
|
3221
|
+
/**
|
|
3222
|
+
* Divide Style
|
|
3223
|
+
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
3224
|
+
*/
|
|
3225
|
+
"divide-style": [{
|
|
3226
|
+
divide: [...T(), "hidden", "none"]
|
|
3227
|
+
}],
|
|
3228
|
+
/**
|
|
3229
|
+
* Border Color
|
|
3230
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
3231
|
+
*/
|
|
3232
|
+
"border-color": [{
|
|
3233
|
+
border: h()
|
|
3234
|
+
}],
|
|
3235
|
+
/**
|
|
3236
|
+
* Border Color X
|
|
3237
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
3238
|
+
*/
|
|
3239
|
+
"border-color-x": [{
|
|
3240
|
+
"border-x": h()
|
|
3241
|
+
}],
|
|
3242
|
+
/**
|
|
3243
|
+
* Border Color Y
|
|
3244
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
3245
|
+
*/
|
|
3246
|
+
"border-color-y": [{
|
|
3247
|
+
"border-y": h()
|
|
3248
|
+
}],
|
|
3249
|
+
/**
|
|
3250
|
+
* Border Color S
|
|
3251
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
3252
|
+
*/
|
|
3253
|
+
"border-color-s": [{
|
|
3254
|
+
"border-s": h()
|
|
3255
|
+
}],
|
|
3256
|
+
/**
|
|
3257
|
+
* Border Color E
|
|
3258
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
3259
|
+
*/
|
|
3260
|
+
"border-color-e": [{
|
|
3261
|
+
"border-e": h()
|
|
3262
|
+
}],
|
|
3263
|
+
/**
|
|
3264
|
+
* Border Color Top
|
|
3265
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
3266
|
+
*/
|
|
3267
|
+
"border-color-t": [{
|
|
3268
|
+
"border-t": h()
|
|
3269
|
+
}],
|
|
3270
|
+
/**
|
|
3271
|
+
* Border Color Right
|
|
3272
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
3273
|
+
*/
|
|
3274
|
+
"border-color-r": [{
|
|
3275
|
+
"border-r": h()
|
|
3276
|
+
}],
|
|
3277
|
+
/**
|
|
3278
|
+
* Border Color Bottom
|
|
3279
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
3280
|
+
*/
|
|
3281
|
+
"border-color-b": [{
|
|
3282
|
+
"border-b": h()
|
|
3283
|
+
}],
|
|
3284
|
+
/**
|
|
3285
|
+
* Border Color Left
|
|
3286
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
3287
|
+
*/
|
|
3288
|
+
"border-color-l": [{
|
|
3289
|
+
"border-l": h()
|
|
3290
|
+
}],
|
|
3291
|
+
/**
|
|
3292
|
+
* Divide Color
|
|
3293
|
+
* @see https://tailwindcss.com/docs/divide-color
|
|
3294
|
+
*/
|
|
3295
|
+
"divide-color": [{
|
|
3296
|
+
divide: h()
|
|
3297
|
+
}],
|
|
3298
|
+
/**
|
|
3299
|
+
* Outline Style
|
|
3300
|
+
* @see https://tailwindcss.com/docs/outline-style
|
|
3301
|
+
*/
|
|
3302
|
+
"outline-style": [{
|
|
3303
|
+
outline: [...T(), "none", "hidden"]
|
|
3304
|
+
}],
|
|
3305
|
+
/**
|
|
3306
|
+
* Outline Offset
|
|
3307
|
+
* @see https://tailwindcss.com/docs/outline-offset
|
|
3308
|
+
*/
|
|
3309
|
+
"outline-offset": [{
|
|
3310
|
+
"outline-offset": [P, b, p]
|
|
3311
|
+
}],
|
|
3312
|
+
/**
|
|
3313
|
+
* Outline Width
|
|
3314
|
+
* @see https://tailwindcss.com/docs/outline-width
|
|
3315
|
+
*/
|
|
3316
|
+
"outline-w": [{
|
|
3317
|
+
outline: ["", P, Le, be]
|
|
3318
|
+
}],
|
|
3319
|
+
/**
|
|
3320
|
+
* Outline Color
|
|
3321
|
+
* @see https://tailwindcss.com/docs/outline-color
|
|
3322
|
+
*/
|
|
3323
|
+
"outline-color": [{
|
|
3324
|
+
outline: h()
|
|
3325
|
+
}],
|
|
3326
|
+
// ---------------
|
|
3327
|
+
// --- Effects ---
|
|
3328
|
+
// ---------------
|
|
3329
|
+
/**
|
|
3330
|
+
* Box Shadow
|
|
3331
|
+
* @see https://tailwindcss.com/docs/box-shadow
|
|
3332
|
+
*/
|
|
3333
|
+
shadow: [{
|
|
3334
|
+
shadow: [
|
|
3335
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
3336
|
+
"",
|
|
3337
|
+
"none",
|
|
3338
|
+
g,
|
|
3339
|
+
Ge,
|
|
3340
|
+
He
|
|
3341
|
+
]
|
|
3342
|
+
}],
|
|
3343
|
+
/**
|
|
3344
|
+
* Box Shadow Color
|
|
3345
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
3346
|
+
*/
|
|
3347
|
+
"shadow-color": [{
|
|
3348
|
+
shadow: h()
|
|
3349
|
+
}],
|
|
3350
|
+
/**
|
|
3351
|
+
* Inset Box Shadow
|
|
3352
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
3353
|
+
*/
|
|
3354
|
+
"inset-shadow": [{
|
|
3355
|
+
"inset-shadow": ["none", m, Ge, He]
|
|
3356
|
+
}],
|
|
3357
|
+
/**
|
|
3358
|
+
* Inset Box Shadow Color
|
|
3359
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
3360
|
+
*/
|
|
3361
|
+
"inset-shadow-color": [{
|
|
3362
|
+
"inset-shadow": h()
|
|
3363
|
+
}],
|
|
3364
|
+
/**
|
|
3365
|
+
* Ring Width
|
|
3366
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
3367
|
+
*/
|
|
3368
|
+
"ring-w": [{
|
|
3369
|
+
ring: y()
|
|
3370
|
+
}],
|
|
3371
|
+
/**
|
|
3372
|
+
* Ring Width Inset
|
|
3373
|
+
* @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
|
|
3374
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
3375
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
3376
|
+
*/
|
|
3377
|
+
"ring-w-inset": ["ring-inset"],
|
|
3378
|
+
/**
|
|
3379
|
+
* Ring Color
|
|
3380
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
3381
|
+
*/
|
|
3382
|
+
"ring-color": [{
|
|
3383
|
+
ring: h()
|
|
3384
|
+
}],
|
|
3385
|
+
/**
|
|
3386
|
+
* Ring Offset Width
|
|
3387
|
+
* @see https://v3.tailwindcss.com/docs/ring-offset-width
|
|
3388
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
3389
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
3390
|
+
*/
|
|
3391
|
+
"ring-offset-w": [{
|
|
3392
|
+
"ring-offset": [P, be]
|
|
3393
|
+
}],
|
|
3394
|
+
/**
|
|
3395
|
+
* Ring Offset Color
|
|
3396
|
+
* @see https://v3.tailwindcss.com/docs/ring-offset-color
|
|
3397
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
3398
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
3399
|
+
*/
|
|
3400
|
+
"ring-offset-color": [{
|
|
3401
|
+
"ring-offset": h()
|
|
3402
|
+
}],
|
|
3403
|
+
/**
|
|
3404
|
+
* Inset Ring Width
|
|
3405
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
3406
|
+
*/
|
|
3407
|
+
"inset-ring-w": [{
|
|
3408
|
+
"inset-ring": y()
|
|
3409
|
+
}],
|
|
3410
|
+
/**
|
|
3411
|
+
* Inset Ring Color
|
|
3412
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
3413
|
+
*/
|
|
3414
|
+
"inset-ring-color": [{
|
|
3415
|
+
"inset-ring": h()
|
|
3416
|
+
}],
|
|
3417
|
+
/**
|
|
3418
|
+
* Text Shadow
|
|
3419
|
+
* @see https://tailwindcss.com/docs/text-shadow
|
|
3420
|
+
*/
|
|
3421
|
+
"text-shadow": [{
|
|
3422
|
+
"text-shadow": ["none", x, Ge, He]
|
|
3423
|
+
}],
|
|
3424
|
+
/**
|
|
3425
|
+
* Text Shadow Color
|
|
3426
|
+
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
3427
|
+
*/
|
|
3428
|
+
"text-shadow-color": [{
|
|
3429
|
+
"text-shadow": h()
|
|
3430
|
+
}],
|
|
3431
|
+
/**
|
|
3432
|
+
* Opacity
|
|
3433
|
+
* @see https://tailwindcss.com/docs/opacity
|
|
3434
|
+
*/
|
|
3435
|
+
opacity: [{
|
|
3436
|
+
opacity: [P, b, p]
|
|
3437
|
+
}],
|
|
3438
|
+
/**
|
|
3439
|
+
* Mix Blend Mode
|
|
3440
|
+
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
3441
|
+
*/
|
|
3442
|
+
"mix-blend": [{
|
|
3443
|
+
"mix-blend": [...X(), "plus-darker", "plus-lighter"]
|
|
3444
|
+
}],
|
|
3445
|
+
/**
|
|
3446
|
+
* Background Blend Mode
|
|
3447
|
+
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
3448
|
+
*/
|
|
3449
|
+
"bg-blend": [{
|
|
3450
|
+
"bg-blend": X()
|
|
3451
|
+
}],
|
|
3452
|
+
/**
|
|
3453
|
+
* Mask Clip
|
|
3454
|
+
* @see https://tailwindcss.com/docs/mask-clip
|
|
3455
|
+
*/
|
|
3456
|
+
"mask-clip": [{
|
|
3457
|
+
"mask-clip": ["border", "padding", "content", "fill", "stroke", "view"]
|
|
3458
|
+
}, "mask-no-clip"],
|
|
3459
|
+
/**
|
|
3460
|
+
* Mask Composite
|
|
3461
|
+
* @see https://tailwindcss.com/docs/mask-composite
|
|
3462
|
+
*/
|
|
3463
|
+
"mask-composite": [{
|
|
3464
|
+
mask: ["add", "subtract", "intersect", "exclude"]
|
|
3465
|
+
}],
|
|
3466
|
+
/**
|
|
3467
|
+
* Mask Image
|
|
3468
|
+
* @see https://tailwindcss.com/docs/mask-image
|
|
3469
|
+
*/
|
|
3470
|
+
"mask-image-linear-pos": [{
|
|
3471
|
+
"mask-linear": [P]
|
|
3472
|
+
}],
|
|
3473
|
+
"mask-image-linear-from-pos": [{
|
|
3474
|
+
"mask-linear-from": F()
|
|
3475
|
+
}],
|
|
3476
|
+
"mask-image-linear-to-pos": [{
|
|
3477
|
+
"mask-linear-to": F()
|
|
3478
|
+
}],
|
|
3479
|
+
"mask-image-linear-from-color": [{
|
|
3480
|
+
"mask-linear-from": h()
|
|
3481
|
+
}],
|
|
3482
|
+
"mask-image-linear-to-color": [{
|
|
3483
|
+
"mask-linear-to": h()
|
|
3484
|
+
}],
|
|
3485
|
+
"mask-image-t-from-pos": [{
|
|
3486
|
+
"mask-t-from": F()
|
|
3487
|
+
}],
|
|
3488
|
+
"mask-image-t-to-pos": [{
|
|
3489
|
+
"mask-t-to": F()
|
|
3490
|
+
}],
|
|
3491
|
+
"mask-image-t-from-color": [{
|
|
3492
|
+
"mask-t-from": h()
|
|
3493
|
+
}],
|
|
3494
|
+
"mask-image-t-to-color": [{
|
|
3495
|
+
"mask-t-to": h()
|
|
3496
|
+
}],
|
|
3497
|
+
"mask-image-r-from-pos": [{
|
|
3498
|
+
"mask-r-from": F()
|
|
3499
|
+
}],
|
|
3500
|
+
"mask-image-r-to-pos": [{
|
|
3501
|
+
"mask-r-to": F()
|
|
3502
|
+
}],
|
|
3503
|
+
"mask-image-r-from-color": [{
|
|
3504
|
+
"mask-r-from": h()
|
|
3505
|
+
}],
|
|
3506
|
+
"mask-image-r-to-color": [{
|
|
3507
|
+
"mask-r-to": h()
|
|
3508
|
+
}],
|
|
3509
|
+
"mask-image-b-from-pos": [{
|
|
3510
|
+
"mask-b-from": F()
|
|
3511
|
+
}],
|
|
3512
|
+
"mask-image-b-to-pos": [{
|
|
3513
|
+
"mask-b-to": F()
|
|
3514
|
+
}],
|
|
3515
|
+
"mask-image-b-from-color": [{
|
|
3516
|
+
"mask-b-from": h()
|
|
3517
|
+
}],
|
|
3518
|
+
"mask-image-b-to-color": [{
|
|
3519
|
+
"mask-b-to": h()
|
|
3520
|
+
}],
|
|
3521
|
+
"mask-image-l-from-pos": [{
|
|
3522
|
+
"mask-l-from": F()
|
|
3523
|
+
}],
|
|
3524
|
+
"mask-image-l-to-pos": [{
|
|
3525
|
+
"mask-l-to": F()
|
|
3526
|
+
}],
|
|
3527
|
+
"mask-image-l-from-color": [{
|
|
3528
|
+
"mask-l-from": h()
|
|
3529
|
+
}],
|
|
3530
|
+
"mask-image-l-to-color": [{
|
|
3531
|
+
"mask-l-to": h()
|
|
3532
|
+
}],
|
|
3533
|
+
"mask-image-x-from-pos": [{
|
|
3534
|
+
"mask-x-from": F()
|
|
3535
|
+
}],
|
|
3536
|
+
"mask-image-x-to-pos": [{
|
|
3537
|
+
"mask-x-to": F()
|
|
3538
|
+
}],
|
|
3539
|
+
"mask-image-x-from-color": [{
|
|
3540
|
+
"mask-x-from": h()
|
|
3541
|
+
}],
|
|
3542
|
+
"mask-image-x-to-color": [{
|
|
3543
|
+
"mask-x-to": h()
|
|
3544
|
+
}],
|
|
3545
|
+
"mask-image-y-from-pos": [{
|
|
3546
|
+
"mask-y-from": F()
|
|
3547
|
+
}],
|
|
3548
|
+
"mask-image-y-to-pos": [{
|
|
3549
|
+
"mask-y-to": F()
|
|
3550
|
+
}],
|
|
3551
|
+
"mask-image-y-from-color": [{
|
|
3552
|
+
"mask-y-from": h()
|
|
3553
|
+
}],
|
|
3554
|
+
"mask-image-y-to-color": [{
|
|
3555
|
+
"mask-y-to": h()
|
|
3556
|
+
}],
|
|
3557
|
+
"mask-image-radial": [{
|
|
3558
|
+
"mask-radial": [b, p]
|
|
3559
|
+
}],
|
|
3560
|
+
"mask-image-radial-from-pos": [{
|
|
3561
|
+
"mask-radial-from": F()
|
|
3562
|
+
}],
|
|
3563
|
+
"mask-image-radial-to-pos": [{
|
|
3564
|
+
"mask-radial-to": F()
|
|
3565
|
+
}],
|
|
3566
|
+
"mask-image-radial-from-color": [{
|
|
3567
|
+
"mask-radial-from": h()
|
|
3568
|
+
}],
|
|
3569
|
+
"mask-image-radial-to-color": [{
|
|
3570
|
+
"mask-radial-to": h()
|
|
3571
|
+
}],
|
|
3572
|
+
"mask-image-radial-shape": [{
|
|
3573
|
+
"mask-radial": ["circle", "ellipse"]
|
|
3574
|
+
}],
|
|
3575
|
+
"mask-image-radial-size": [{
|
|
3576
|
+
"mask-radial": [{
|
|
3577
|
+
closest: ["side", "corner"],
|
|
3578
|
+
farthest: ["side", "corner"]
|
|
3579
|
+
}]
|
|
3580
|
+
}],
|
|
3581
|
+
"mask-image-radial-pos": [{
|
|
3582
|
+
"mask-radial-at": I()
|
|
3583
|
+
}],
|
|
3584
|
+
"mask-image-conic-pos": [{
|
|
3585
|
+
"mask-conic": [P]
|
|
3586
|
+
}],
|
|
3587
|
+
"mask-image-conic-from-pos": [{
|
|
3588
|
+
"mask-conic-from": F()
|
|
3589
|
+
}],
|
|
3590
|
+
"mask-image-conic-to-pos": [{
|
|
3591
|
+
"mask-conic-to": F()
|
|
3592
|
+
}],
|
|
3593
|
+
"mask-image-conic-from-color": [{
|
|
3594
|
+
"mask-conic-from": h()
|
|
3595
|
+
}],
|
|
3596
|
+
"mask-image-conic-to-color": [{
|
|
3597
|
+
"mask-conic-to": h()
|
|
3598
|
+
}],
|
|
3599
|
+
/**
|
|
3600
|
+
* Mask Mode
|
|
3601
|
+
* @see https://tailwindcss.com/docs/mask-mode
|
|
3602
|
+
*/
|
|
3603
|
+
"mask-mode": [{
|
|
3604
|
+
mask: ["alpha", "luminance", "match"]
|
|
3605
|
+
}],
|
|
3606
|
+
/**
|
|
3607
|
+
* Mask Origin
|
|
3608
|
+
* @see https://tailwindcss.com/docs/mask-origin
|
|
3609
|
+
*/
|
|
3610
|
+
"mask-origin": [{
|
|
3611
|
+
"mask-origin": ["border", "padding", "content", "fill", "stroke", "view"]
|
|
3612
|
+
}],
|
|
3613
|
+
/**
|
|
3614
|
+
* Mask Position
|
|
3615
|
+
* @see https://tailwindcss.com/docs/mask-position
|
|
3616
|
+
*/
|
|
3617
|
+
"mask-position": [{
|
|
3618
|
+
mask: Oe()
|
|
3619
|
+
}],
|
|
3620
|
+
/**
|
|
3621
|
+
* Mask Repeat
|
|
3622
|
+
* @see https://tailwindcss.com/docs/mask-repeat
|
|
3623
|
+
*/
|
|
3624
|
+
"mask-repeat": [{
|
|
3625
|
+
mask: i()
|
|
3626
|
+
}],
|
|
3627
|
+
/**
|
|
3628
|
+
* Mask Size
|
|
3629
|
+
* @see https://tailwindcss.com/docs/mask-size
|
|
3630
|
+
*/
|
|
3631
|
+
"mask-size": [{
|
|
3632
|
+
mask: v()
|
|
3633
|
+
}],
|
|
3634
|
+
/**
|
|
3635
|
+
* Mask Type
|
|
3636
|
+
* @see https://tailwindcss.com/docs/mask-type
|
|
3637
|
+
*/
|
|
3638
|
+
"mask-type": [{
|
|
3639
|
+
"mask-type": ["alpha", "luminance"]
|
|
3640
|
+
}],
|
|
3641
|
+
/**
|
|
3642
|
+
* Mask Image
|
|
3643
|
+
* @see https://tailwindcss.com/docs/mask-image
|
|
3644
|
+
*/
|
|
3645
|
+
"mask-image": [{
|
|
3646
|
+
mask: ["none", b, p]
|
|
3647
|
+
}],
|
|
3648
|
+
// ---------------
|
|
3649
|
+
// --- Filters ---
|
|
3650
|
+
// ---------------
|
|
3651
|
+
/**
|
|
3652
|
+
* Filter
|
|
3653
|
+
* @see https://tailwindcss.com/docs/filter
|
|
3654
|
+
*/
|
|
3655
|
+
filter: [{
|
|
3656
|
+
filter: [
|
|
3657
|
+
// Deprecated since Tailwind CSS v3.0.0
|
|
3658
|
+
"",
|
|
3659
|
+
"none",
|
|
3660
|
+
b,
|
|
3661
|
+
p
|
|
3662
|
+
]
|
|
3663
|
+
}],
|
|
3664
|
+
/**
|
|
3665
|
+
* Blur
|
|
3666
|
+
* @see https://tailwindcss.com/docs/blur
|
|
3667
|
+
*/
|
|
3668
|
+
blur: [{
|
|
3669
|
+
blur: we()
|
|
3670
|
+
}],
|
|
3671
|
+
/**
|
|
3672
|
+
* Brightness
|
|
3673
|
+
* @see https://tailwindcss.com/docs/brightness
|
|
3674
|
+
*/
|
|
3675
|
+
brightness: [{
|
|
3676
|
+
brightness: [P, b, p]
|
|
3677
|
+
}],
|
|
3678
|
+
/**
|
|
3679
|
+
* Contrast
|
|
3680
|
+
* @see https://tailwindcss.com/docs/contrast
|
|
3681
|
+
*/
|
|
3682
|
+
contrast: [{
|
|
3683
|
+
contrast: [P, b, p]
|
|
3684
|
+
}],
|
|
3685
|
+
/**
|
|
3686
|
+
* Drop Shadow
|
|
3687
|
+
* @see https://tailwindcss.com/docs/drop-shadow
|
|
3688
|
+
*/
|
|
3689
|
+
"drop-shadow": [{
|
|
3690
|
+
"drop-shadow": [
|
|
3691
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
3692
|
+
"",
|
|
3693
|
+
"none",
|
|
3694
|
+
C,
|
|
3695
|
+
Ge,
|
|
3696
|
+
He
|
|
3697
|
+
]
|
|
3698
|
+
}],
|
|
3699
|
+
/**
|
|
3700
|
+
* Drop Shadow Color
|
|
3701
|
+
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
3702
|
+
*/
|
|
3703
|
+
"drop-shadow-color": [{
|
|
3704
|
+
"drop-shadow": h()
|
|
3705
|
+
}],
|
|
3706
|
+
/**
|
|
3707
|
+
* Grayscale
|
|
3708
|
+
* @see https://tailwindcss.com/docs/grayscale
|
|
3709
|
+
*/
|
|
3710
|
+
grayscale: [{
|
|
3711
|
+
grayscale: ["", P, b, p]
|
|
3712
|
+
}],
|
|
3713
|
+
/**
|
|
3714
|
+
* Hue Rotate
|
|
3715
|
+
* @see https://tailwindcss.com/docs/hue-rotate
|
|
3716
|
+
*/
|
|
3717
|
+
"hue-rotate": [{
|
|
3718
|
+
"hue-rotate": [P, b, p]
|
|
3719
|
+
}],
|
|
3720
|
+
/**
|
|
3721
|
+
* Invert
|
|
3722
|
+
* @see https://tailwindcss.com/docs/invert
|
|
3723
|
+
*/
|
|
3724
|
+
invert: [{
|
|
3725
|
+
invert: ["", P, b, p]
|
|
3726
|
+
}],
|
|
3727
|
+
/**
|
|
3728
|
+
* Saturate
|
|
3729
|
+
* @see https://tailwindcss.com/docs/saturate
|
|
3730
|
+
*/
|
|
3731
|
+
saturate: [{
|
|
3732
|
+
saturate: [P, b, p]
|
|
3733
|
+
}],
|
|
3734
|
+
/**
|
|
3735
|
+
* Sepia
|
|
3736
|
+
* @see https://tailwindcss.com/docs/sepia
|
|
3737
|
+
*/
|
|
3738
|
+
sepia: [{
|
|
3739
|
+
sepia: ["", P, b, p]
|
|
3740
|
+
}],
|
|
3741
|
+
/**
|
|
3742
|
+
* Backdrop Filter
|
|
3743
|
+
* @see https://tailwindcss.com/docs/backdrop-filter
|
|
3744
|
+
*/
|
|
3745
|
+
"backdrop-filter": [{
|
|
3746
|
+
"backdrop-filter": [
|
|
3747
|
+
// Deprecated since Tailwind CSS v3.0.0
|
|
3748
|
+
"",
|
|
3749
|
+
"none",
|
|
3750
|
+
b,
|
|
3751
|
+
p
|
|
3752
|
+
]
|
|
3753
|
+
}],
|
|
3754
|
+
/**
|
|
3755
|
+
* Backdrop Blur
|
|
3756
|
+
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
3757
|
+
*/
|
|
3758
|
+
"backdrop-blur": [{
|
|
3759
|
+
"backdrop-blur": we()
|
|
3760
|
+
}],
|
|
3761
|
+
/**
|
|
3762
|
+
* Backdrop Brightness
|
|
3763
|
+
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
3764
|
+
*/
|
|
3765
|
+
"backdrop-brightness": [{
|
|
3766
|
+
"backdrop-brightness": [P, b, p]
|
|
3767
|
+
}],
|
|
3768
|
+
/**
|
|
3769
|
+
* Backdrop Contrast
|
|
3770
|
+
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
3771
|
+
*/
|
|
3772
|
+
"backdrop-contrast": [{
|
|
3773
|
+
"backdrop-contrast": [P, b, p]
|
|
3774
|
+
}],
|
|
3775
|
+
/**
|
|
3776
|
+
* Backdrop Grayscale
|
|
3777
|
+
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3778
|
+
*/
|
|
3779
|
+
"backdrop-grayscale": [{
|
|
3780
|
+
"backdrop-grayscale": ["", P, b, p]
|
|
3781
|
+
}],
|
|
3782
|
+
/**
|
|
3783
|
+
* Backdrop Hue Rotate
|
|
3784
|
+
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3785
|
+
*/
|
|
3786
|
+
"backdrop-hue-rotate": [{
|
|
3787
|
+
"backdrop-hue-rotate": [P, b, p]
|
|
3788
|
+
}],
|
|
3789
|
+
/**
|
|
3790
|
+
* Backdrop Invert
|
|
3791
|
+
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3792
|
+
*/
|
|
3793
|
+
"backdrop-invert": [{
|
|
3794
|
+
"backdrop-invert": ["", P, b, p]
|
|
3795
|
+
}],
|
|
3796
|
+
/**
|
|
3797
|
+
* Backdrop Opacity
|
|
3798
|
+
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3799
|
+
*/
|
|
3800
|
+
"backdrop-opacity": [{
|
|
3801
|
+
"backdrop-opacity": [P, b, p]
|
|
3802
|
+
}],
|
|
3803
|
+
/**
|
|
3804
|
+
* Backdrop Saturate
|
|
3805
|
+
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3806
|
+
*/
|
|
3807
|
+
"backdrop-saturate": [{
|
|
3808
|
+
"backdrop-saturate": [P, b, p]
|
|
3809
|
+
}],
|
|
3810
|
+
/**
|
|
3811
|
+
* Backdrop Sepia
|
|
3812
|
+
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3813
|
+
*/
|
|
3814
|
+
"backdrop-sepia": [{
|
|
3815
|
+
"backdrop-sepia": ["", P, b, p]
|
|
3816
|
+
}],
|
|
3817
|
+
// --------------
|
|
3818
|
+
// --- Tables ---
|
|
3819
|
+
// --------------
|
|
3820
|
+
/**
|
|
3821
|
+
* Border Collapse
|
|
3822
|
+
* @see https://tailwindcss.com/docs/border-collapse
|
|
3823
|
+
*/
|
|
3824
|
+
"border-collapse": [{
|
|
3825
|
+
border: ["collapse", "separate"]
|
|
3826
|
+
}],
|
|
3827
|
+
/**
|
|
3828
|
+
* Border Spacing
|
|
3829
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
3830
|
+
*/
|
|
3831
|
+
"border-spacing": [{
|
|
3832
|
+
"border-spacing": E()
|
|
3833
|
+
}],
|
|
3834
|
+
/**
|
|
3835
|
+
* Border Spacing X
|
|
3836
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
3837
|
+
*/
|
|
3838
|
+
"border-spacing-x": [{
|
|
3839
|
+
"border-spacing-x": E()
|
|
3840
|
+
}],
|
|
3841
|
+
/**
|
|
3842
|
+
* Border Spacing Y
|
|
3843
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
3844
|
+
*/
|
|
3845
|
+
"border-spacing-y": [{
|
|
3846
|
+
"border-spacing-y": E()
|
|
3847
|
+
}],
|
|
3848
|
+
/**
|
|
3849
|
+
* Table Layout
|
|
3850
|
+
* @see https://tailwindcss.com/docs/table-layout
|
|
3851
|
+
*/
|
|
3852
|
+
"table-layout": [{
|
|
3853
|
+
table: ["auto", "fixed"]
|
|
3854
|
+
}],
|
|
3855
|
+
/**
|
|
3856
|
+
* Caption Side
|
|
3857
|
+
* @see https://tailwindcss.com/docs/caption-side
|
|
3858
|
+
*/
|
|
3859
|
+
caption: [{
|
|
3860
|
+
caption: ["top", "bottom"]
|
|
3861
|
+
}],
|
|
3862
|
+
// ---------------------------------
|
|
3863
|
+
// --- Transitions and Animation ---
|
|
3864
|
+
// ---------------------------------
|
|
3865
|
+
/**
|
|
3866
|
+
* Transition Property
|
|
3867
|
+
* @see https://tailwindcss.com/docs/transition-property
|
|
3868
|
+
*/
|
|
3869
|
+
transition: [{
|
|
3870
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", b, p]
|
|
3871
|
+
}],
|
|
3872
|
+
/**
|
|
3873
|
+
* Transition Behavior
|
|
3874
|
+
* @see https://tailwindcss.com/docs/transition-behavior
|
|
3875
|
+
*/
|
|
3876
|
+
"transition-behavior": [{
|
|
3877
|
+
transition: ["normal", "discrete"]
|
|
3878
|
+
}],
|
|
3879
|
+
/**
|
|
3880
|
+
* Transition Duration
|
|
3881
|
+
* @see https://tailwindcss.com/docs/transition-duration
|
|
3882
|
+
*/
|
|
3883
|
+
duration: [{
|
|
3884
|
+
duration: [P, "initial", b, p]
|
|
3885
|
+
}],
|
|
3886
|
+
/**
|
|
3887
|
+
* Transition Timing Function
|
|
3888
|
+
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3889
|
+
*/
|
|
3890
|
+
ease: [{
|
|
3891
|
+
ease: ["linear", "initial", k, b, p]
|
|
3892
|
+
}],
|
|
3893
|
+
/**
|
|
3894
|
+
* Transition Delay
|
|
3895
|
+
* @see https://tailwindcss.com/docs/transition-delay
|
|
3896
|
+
*/
|
|
3897
|
+
delay: [{
|
|
3898
|
+
delay: [P, b, p]
|
|
3899
|
+
}],
|
|
3900
|
+
/**
|
|
3901
|
+
* Animation
|
|
3902
|
+
* @see https://tailwindcss.com/docs/animation
|
|
3903
|
+
*/
|
|
3904
|
+
animate: [{
|
|
3905
|
+
animate: ["none", L, b, p]
|
|
3906
|
+
}],
|
|
3907
|
+
// ------------------
|
|
3908
|
+
// --- Transforms ---
|
|
3909
|
+
// ------------------
|
|
3910
|
+
/**
|
|
3911
|
+
* Backface Visibility
|
|
3912
|
+
* @see https://tailwindcss.com/docs/backface-visibility
|
|
3913
|
+
*/
|
|
3914
|
+
backface: [{
|
|
3915
|
+
backface: ["hidden", "visible"]
|
|
3916
|
+
}],
|
|
3917
|
+
/**
|
|
3918
|
+
* Perspective
|
|
3919
|
+
* @see https://tailwindcss.com/docs/perspective
|
|
3920
|
+
*/
|
|
3921
|
+
perspective: [{
|
|
3922
|
+
perspective: [$, b, p]
|
|
3923
|
+
}],
|
|
3924
|
+
/**
|
|
3925
|
+
* Perspective Origin
|
|
3926
|
+
* @see https://tailwindcss.com/docs/perspective-origin
|
|
3927
|
+
*/
|
|
3928
|
+
"perspective-origin": [{
|
|
3929
|
+
"perspective-origin": N()
|
|
3930
|
+
}],
|
|
3931
|
+
/**
|
|
3932
|
+
* Rotate
|
|
3933
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
3934
|
+
*/
|
|
3935
|
+
rotate: [{
|
|
3936
|
+
rotate: ie()
|
|
3937
|
+
}],
|
|
3938
|
+
/**
|
|
3939
|
+
* Rotate X
|
|
3940
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
3941
|
+
*/
|
|
3942
|
+
"rotate-x": [{
|
|
3943
|
+
"rotate-x": ie()
|
|
3944
|
+
}],
|
|
3945
|
+
/**
|
|
3946
|
+
* Rotate Y
|
|
3947
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
3948
|
+
*/
|
|
3949
|
+
"rotate-y": [{
|
|
3950
|
+
"rotate-y": ie()
|
|
3951
|
+
}],
|
|
3952
|
+
/**
|
|
3953
|
+
* Rotate Z
|
|
3954
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
3955
|
+
*/
|
|
3956
|
+
"rotate-z": [{
|
|
3957
|
+
"rotate-z": ie()
|
|
3958
|
+
}],
|
|
3959
|
+
/**
|
|
3960
|
+
* Scale
|
|
3961
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3962
|
+
*/
|
|
3963
|
+
scale: [{
|
|
3964
|
+
scale: Q()
|
|
3965
|
+
}],
|
|
3966
|
+
/**
|
|
3967
|
+
* Scale X
|
|
3968
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3969
|
+
*/
|
|
3970
|
+
"scale-x": [{
|
|
3971
|
+
"scale-x": Q()
|
|
3972
|
+
}],
|
|
3973
|
+
/**
|
|
3974
|
+
* Scale Y
|
|
3975
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3976
|
+
*/
|
|
3977
|
+
"scale-y": [{
|
|
3978
|
+
"scale-y": Q()
|
|
3979
|
+
}],
|
|
3980
|
+
/**
|
|
3981
|
+
* Scale Z
|
|
3982
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3983
|
+
*/
|
|
3984
|
+
"scale-z": [{
|
|
3985
|
+
"scale-z": Q()
|
|
3986
|
+
}],
|
|
3987
|
+
/**
|
|
3988
|
+
* Scale 3D
|
|
3989
|
+
* @see https://tailwindcss.com/docs/scale
|
|
3990
|
+
*/
|
|
3991
|
+
"scale-3d": ["scale-3d"],
|
|
3992
|
+
/**
|
|
3993
|
+
* Skew
|
|
3994
|
+
* @see https://tailwindcss.com/docs/skew
|
|
3995
|
+
*/
|
|
3996
|
+
skew: [{
|
|
3997
|
+
skew: qe()
|
|
3998
|
+
}],
|
|
3999
|
+
/**
|
|
4000
|
+
* Skew X
|
|
4001
|
+
* @see https://tailwindcss.com/docs/skew
|
|
4002
|
+
*/
|
|
4003
|
+
"skew-x": [{
|
|
4004
|
+
"skew-x": qe()
|
|
4005
|
+
}],
|
|
4006
|
+
/**
|
|
4007
|
+
* Skew Y
|
|
4008
|
+
* @see https://tailwindcss.com/docs/skew
|
|
4009
|
+
*/
|
|
4010
|
+
"skew-y": [{
|
|
4011
|
+
"skew-y": qe()
|
|
4012
|
+
}],
|
|
4013
|
+
/**
|
|
4014
|
+
* Transform
|
|
4015
|
+
* @see https://tailwindcss.com/docs/transform
|
|
4016
|
+
*/
|
|
4017
|
+
transform: [{
|
|
4018
|
+
transform: [b, p, "", "none", "gpu", "cpu"]
|
|
4019
|
+
}],
|
|
4020
|
+
/**
|
|
4021
|
+
* Transform Origin
|
|
4022
|
+
* @see https://tailwindcss.com/docs/transform-origin
|
|
4023
|
+
*/
|
|
4024
|
+
"transform-origin": [{
|
|
4025
|
+
origin: N()
|
|
4026
|
+
}],
|
|
4027
|
+
/**
|
|
4028
|
+
* Transform Style
|
|
4029
|
+
* @see https://tailwindcss.com/docs/transform-style
|
|
4030
|
+
*/
|
|
4031
|
+
"transform-style": [{
|
|
4032
|
+
transform: ["3d", "flat"]
|
|
4033
|
+
}],
|
|
4034
|
+
/**
|
|
4035
|
+
* Translate
|
|
4036
|
+
* @see https://tailwindcss.com/docs/translate
|
|
4037
|
+
*/
|
|
4038
|
+
translate: [{
|
|
4039
|
+
translate: Ie()
|
|
4040
|
+
}],
|
|
4041
|
+
/**
|
|
4042
|
+
* Translate X
|
|
4043
|
+
* @see https://tailwindcss.com/docs/translate
|
|
4044
|
+
*/
|
|
4045
|
+
"translate-x": [{
|
|
4046
|
+
"translate-x": Ie()
|
|
4047
|
+
}],
|
|
4048
|
+
/**
|
|
4049
|
+
* Translate Y
|
|
4050
|
+
* @see https://tailwindcss.com/docs/translate
|
|
4051
|
+
*/
|
|
4052
|
+
"translate-y": [{
|
|
4053
|
+
"translate-y": Ie()
|
|
4054
|
+
}],
|
|
4055
|
+
/**
|
|
4056
|
+
* Translate Z
|
|
4057
|
+
* @see https://tailwindcss.com/docs/translate
|
|
4058
|
+
*/
|
|
4059
|
+
"translate-z": [{
|
|
4060
|
+
"translate-z": Ie()
|
|
4061
|
+
}],
|
|
4062
|
+
/**
|
|
4063
|
+
* Translate None
|
|
4064
|
+
* @see https://tailwindcss.com/docs/translate
|
|
4065
|
+
*/
|
|
4066
|
+
"translate-none": ["translate-none"],
|
|
4067
|
+
// ---------------------
|
|
4068
|
+
// --- Interactivity ---
|
|
4069
|
+
// ---------------------
|
|
4070
|
+
/**
|
|
4071
|
+
* Accent Color
|
|
4072
|
+
* @see https://tailwindcss.com/docs/accent-color
|
|
4073
|
+
*/
|
|
4074
|
+
accent: [{
|
|
4075
|
+
accent: h()
|
|
4076
|
+
}],
|
|
4077
|
+
/**
|
|
4078
|
+
* Appearance
|
|
4079
|
+
* @see https://tailwindcss.com/docs/appearance
|
|
4080
|
+
*/
|
|
4081
|
+
appearance: [{
|
|
4082
|
+
appearance: ["none", "auto"]
|
|
4083
|
+
}],
|
|
4084
|
+
/**
|
|
4085
|
+
* Caret Color
|
|
4086
|
+
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
4087
|
+
*/
|
|
4088
|
+
"caret-color": [{
|
|
4089
|
+
caret: h()
|
|
4090
|
+
}],
|
|
4091
|
+
/**
|
|
4092
|
+
* Color Scheme
|
|
4093
|
+
* @see https://tailwindcss.com/docs/color-scheme
|
|
4094
|
+
*/
|
|
4095
|
+
"color-scheme": [{
|
|
4096
|
+
scheme: ["normal", "dark", "light", "light-dark", "only-dark", "only-light"]
|
|
4097
|
+
}],
|
|
4098
|
+
/**
|
|
4099
|
+
* Cursor
|
|
4100
|
+
* @see https://tailwindcss.com/docs/cursor
|
|
4101
|
+
*/
|
|
4102
|
+
cursor: [{
|
|
4103
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", b, p]
|
|
4104
|
+
}],
|
|
4105
|
+
/**
|
|
4106
|
+
* Field Sizing
|
|
4107
|
+
* @see https://tailwindcss.com/docs/field-sizing
|
|
4108
|
+
*/
|
|
4109
|
+
"field-sizing": [{
|
|
4110
|
+
"field-sizing": ["fixed", "content"]
|
|
4111
|
+
}],
|
|
4112
|
+
/**
|
|
4113
|
+
* Pointer Events
|
|
4114
|
+
* @see https://tailwindcss.com/docs/pointer-events
|
|
4115
|
+
*/
|
|
4116
|
+
"pointer-events": [{
|
|
4117
|
+
"pointer-events": ["auto", "none"]
|
|
4118
|
+
}],
|
|
4119
|
+
/**
|
|
4120
|
+
* Resize
|
|
4121
|
+
* @see https://tailwindcss.com/docs/resize
|
|
4122
|
+
*/
|
|
4123
|
+
resize: [{
|
|
4124
|
+
resize: ["none", "", "y", "x"]
|
|
4125
|
+
}],
|
|
4126
|
+
/**
|
|
4127
|
+
* Scroll Behavior
|
|
4128
|
+
* @see https://tailwindcss.com/docs/scroll-behavior
|
|
4129
|
+
*/
|
|
4130
|
+
"scroll-behavior": [{
|
|
4131
|
+
scroll: ["auto", "smooth"]
|
|
4132
|
+
}],
|
|
4133
|
+
/**
|
|
4134
|
+
* Scroll Margin
|
|
4135
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4136
|
+
*/
|
|
4137
|
+
"scroll-m": [{
|
|
4138
|
+
"scroll-m": E()
|
|
4139
|
+
}],
|
|
4140
|
+
/**
|
|
4141
|
+
* Scroll Margin X
|
|
4142
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4143
|
+
*/
|
|
4144
|
+
"scroll-mx": [{
|
|
4145
|
+
"scroll-mx": E()
|
|
4146
|
+
}],
|
|
4147
|
+
/**
|
|
4148
|
+
* Scroll Margin Y
|
|
4149
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4150
|
+
*/
|
|
4151
|
+
"scroll-my": [{
|
|
4152
|
+
"scroll-my": E()
|
|
4153
|
+
}],
|
|
4154
|
+
/**
|
|
4155
|
+
* Scroll Margin Start
|
|
4156
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4157
|
+
*/
|
|
4158
|
+
"scroll-ms": [{
|
|
4159
|
+
"scroll-ms": E()
|
|
4160
|
+
}],
|
|
4161
|
+
/**
|
|
4162
|
+
* Scroll Margin End
|
|
4163
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4164
|
+
*/
|
|
4165
|
+
"scroll-me": [{
|
|
4166
|
+
"scroll-me": E()
|
|
4167
|
+
}],
|
|
4168
|
+
/**
|
|
4169
|
+
* Scroll Margin Top
|
|
4170
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4171
|
+
*/
|
|
4172
|
+
"scroll-mt": [{
|
|
4173
|
+
"scroll-mt": E()
|
|
4174
|
+
}],
|
|
4175
|
+
/**
|
|
4176
|
+
* Scroll Margin Right
|
|
4177
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4178
|
+
*/
|
|
4179
|
+
"scroll-mr": [{
|
|
4180
|
+
"scroll-mr": E()
|
|
4181
|
+
}],
|
|
4182
|
+
/**
|
|
4183
|
+
* Scroll Margin Bottom
|
|
4184
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4185
|
+
*/
|
|
4186
|
+
"scroll-mb": [{
|
|
4187
|
+
"scroll-mb": E()
|
|
4188
|
+
}],
|
|
4189
|
+
/**
|
|
4190
|
+
* Scroll Margin Left
|
|
4191
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4192
|
+
*/
|
|
4193
|
+
"scroll-ml": [{
|
|
4194
|
+
"scroll-ml": E()
|
|
4195
|
+
}],
|
|
4196
|
+
/**
|
|
4197
|
+
* Scroll Padding
|
|
4198
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4199
|
+
*/
|
|
4200
|
+
"scroll-p": [{
|
|
4201
|
+
"scroll-p": E()
|
|
4202
|
+
}],
|
|
4203
|
+
/**
|
|
4204
|
+
* Scroll Padding X
|
|
4205
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4206
|
+
*/
|
|
4207
|
+
"scroll-px": [{
|
|
4208
|
+
"scroll-px": E()
|
|
4209
|
+
}],
|
|
4210
|
+
/**
|
|
4211
|
+
* Scroll Padding Y
|
|
4212
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4213
|
+
*/
|
|
4214
|
+
"scroll-py": [{
|
|
4215
|
+
"scroll-py": E()
|
|
4216
|
+
}],
|
|
4217
|
+
/**
|
|
4218
|
+
* Scroll Padding Start
|
|
4219
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4220
|
+
*/
|
|
4221
|
+
"scroll-ps": [{
|
|
4222
|
+
"scroll-ps": E()
|
|
4223
|
+
}],
|
|
4224
|
+
/**
|
|
4225
|
+
* Scroll Padding End
|
|
4226
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4227
|
+
*/
|
|
4228
|
+
"scroll-pe": [{
|
|
4229
|
+
"scroll-pe": E()
|
|
4230
|
+
}],
|
|
4231
|
+
/**
|
|
4232
|
+
* Scroll Padding Top
|
|
4233
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4234
|
+
*/
|
|
4235
|
+
"scroll-pt": [{
|
|
4236
|
+
"scroll-pt": E()
|
|
4237
|
+
}],
|
|
4238
|
+
/**
|
|
4239
|
+
* Scroll Padding Right
|
|
4240
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4241
|
+
*/
|
|
4242
|
+
"scroll-pr": [{
|
|
4243
|
+
"scroll-pr": E()
|
|
4244
|
+
}],
|
|
4245
|
+
/**
|
|
4246
|
+
* Scroll Padding Bottom
|
|
4247
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4248
|
+
*/
|
|
4249
|
+
"scroll-pb": [{
|
|
4250
|
+
"scroll-pb": E()
|
|
4251
|
+
}],
|
|
4252
|
+
/**
|
|
4253
|
+
* Scroll Padding Left
|
|
4254
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4255
|
+
*/
|
|
4256
|
+
"scroll-pl": [{
|
|
4257
|
+
"scroll-pl": E()
|
|
4258
|
+
}],
|
|
4259
|
+
/**
|
|
4260
|
+
* Scroll Snap Align
|
|
4261
|
+
* @see https://tailwindcss.com/docs/scroll-snap-align
|
|
4262
|
+
*/
|
|
4263
|
+
"snap-align": [{
|
|
4264
|
+
snap: ["start", "end", "center", "align-none"]
|
|
4265
|
+
}],
|
|
4266
|
+
/**
|
|
4267
|
+
* Scroll Snap Stop
|
|
4268
|
+
* @see https://tailwindcss.com/docs/scroll-snap-stop
|
|
4269
|
+
*/
|
|
4270
|
+
"snap-stop": [{
|
|
4271
|
+
snap: ["normal", "always"]
|
|
4272
|
+
}],
|
|
4273
|
+
/**
|
|
4274
|
+
* Scroll Snap Type
|
|
4275
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
4276
|
+
*/
|
|
4277
|
+
"snap-type": [{
|
|
4278
|
+
snap: ["none", "x", "y", "both"]
|
|
4279
|
+
}],
|
|
4280
|
+
/**
|
|
4281
|
+
* Scroll Snap Type Strictness
|
|
4282
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
4283
|
+
*/
|
|
4284
|
+
"snap-strictness": [{
|
|
4285
|
+
snap: ["mandatory", "proximity"]
|
|
4286
|
+
}],
|
|
4287
|
+
/**
|
|
4288
|
+
* Touch Action
|
|
4289
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
4290
|
+
*/
|
|
4291
|
+
touch: [{
|
|
4292
|
+
touch: ["auto", "none", "manipulation"]
|
|
4293
|
+
}],
|
|
4294
|
+
/**
|
|
4295
|
+
* Touch Action X
|
|
4296
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
4297
|
+
*/
|
|
4298
|
+
"touch-x": [{
|
|
4299
|
+
"touch-pan": ["x", "left", "right"]
|
|
4300
|
+
}],
|
|
4301
|
+
/**
|
|
4302
|
+
* Touch Action Y
|
|
4303
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
4304
|
+
*/
|
|
4305
|
+
"touch-y": [{
|
|
4306
|
+
"touch-pan": ["y", "up", "down"]
|
|
4307
|
+
}],
|
|
4308
|
+
/**
|
|
4309
|
+
* Touch Action Pinch Zoom
|
|
4310
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
4311
|
+
*/
|
|
4312
|
+
"touch-pz": ["touch-pinch-zoom"],
|
|
4313
|
+
/**
|
|
4314
|
+
* User Select
|
|
4315
|
+
* @see https://tailwindcss.com/docs/user-select
|
|
4316
|
+
*/
|
|
4317
|
+
select: [{
|
|
4318
|
+
select: ["none", "text", "all", "auto"]
|
|
4319
|
+
}],
|
|
4320
|
+
/**
|
|
4321
|
+
* Will Change
|
|
4322
|
+
* @see https://tailwindcss.com/docs/will-change
|
|
4323
|
+
*/
|
|
4324
|
+
"will-change": [{
|
|
4325
|
+
"will-change": ["auto", "scroll", "contents", "transform", b, p]
|
|
4326
|
+
}],
|
|
4327
|
+
// -----------
|
|
4328
|
+
// --- SVG ---
|
|
4329
|
+
// -----------
|
|
4330
|
+
/**
|
|
4331
|
+
* Fill
|
|
4332
|
+
* @see https://tailwindcss.com/docs/fill
|
|
4333
|
+
*/
|
|
4334
|
+
fill: [{
|
|
4335
|
+
fill: ["none", ...h()]
|
|
4336
|
+
}],
|
|
4337
|
+
/**
|
|
4338
|
+
* Stroke Width
|
|
4339
|
+
* @see https://tailwindcss.com/docs/stroke-width
|
|
4340
|
+
*/
|
|
4341
|
+
"stroke-w": [{
|
|
4342
|
+
stroke: [P, Le, be, Gt]
|
|
4343
|
+
}],
|
|
4344
|
+
/**
|
|
4345
|
+
* Stroke
|
|
4346
|
+
* @see https://tailwindcss.com/docs/stroke
|
|
4347
|
+
*/
|
|
4348
|
+
stroke: [{
|
|
4349
|
+
stroke: ["none", ...h()]
|
|
4350
|
+
}],
|
|
4351
|
+
// ---------------------
|
|
4352
|
+
// --- Accessibility ---
|
|
4353
|
+
// ---------------------
|
|
4354
|
+
/**
|
|
4355
|
+
* Forced Color Adjust
|
|
4356
|
+
* @see https://tailwindcss.com/docs/forced-color-adjust
|
|
4357
|
+
*/
|
|
4358
|
+
"forced-color-adjust": [{
|
|
4359
|
+
"forced-color-adjust": ["auto", "none"]
|
|
4360
|
+
}]
|
|
4361
|
+
},
|
|
4362
|
+
conflictingClassGroups: {
|
|
4363
|
+
overflow: ["overflow-x", "overflow-y"],
|
|
4364
|
+
overscroll: ["overscroll-x", "overscroll-y"],
|
|
4365
|
+
inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
|
|
4366
|
+
"inset-x": ["right", "left"],
|
|
4367
|
+
"inset-y": ["top", "bottom"],
|
|
4368
|
+
flex: ["basis", "grow", "shrink"],
|
|
4369
|
+
gap: ["gap-x", "gap-y"],
|
|
4370
|
+
p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
|
|
4371
|
+
px: ["pr", "pl"],
|
|
4372
|
+
py: ["pt", "pb"],
|
|
4373
|
+
m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
|
|
4374
|
+
mx: ["mr", "ml"],
|
|
4375
|
+
my: ["mt", "mb"],
|
|
4376
|
+
size: ["w", "h"],
|
|
4377
|
+
"font-size": ["leading"],
|
|
4378
|
+
"fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
|
|
4379
|
+
"fvn-ordinal": ["fvn-normal"],
|
|
4380
|
+
"fvn-slashed-zero": ["fvn-normal"],
|
|
4381
|
+
"fvn-figure": ["fvn-normal"],
|
|
4382
|
+
"fvn-spacing": ["fvn-normal"],
|
|
4383
|
+
"fvn-fraction": ["fvn-normal"],
|
|
4384
|
+
"line-clamp": ["display", "overflow"],
|
|
4385
|
+
rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"],
|
|
4386
|
+
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
4387
|
+
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
4388
|
+
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
4389
|
+
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
4390
|
+
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
4391
|
+
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
4392
|
+
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
4393
|
+
"border-w": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
|
|
4394
|
+
"border-w-x": ["border-w-r", "border-w-l"],
|
|
4395
|
+
"border-w-y": ["border-w-t", "border-w-b"],
|
|
4396
|
+
"border-color": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
4397
|
+
"border-color-x": ["border-color-r", "border-color-l"],
|
|
4398
|
+
"border-color-y": ["border-color-t", "border-color-b"],
|
|
4399
|
+
translate: ["translate-x", "translate-y", "translate-none"],
|
|
4400
|
+
"translate-none": ["translate", "translate-x", "translate-y", "translate-z"],
|
|
4401
|
+
"scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
|
|
4402
|
+
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
4403
|
+
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
4404
|
+
"scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
|
|
4405
|
+
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
4406
|
+
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
4407
|
+
touch: ["touch-x", "touch-y", "touch-pz"],
|
|
4408
|
+
"touch-x": ["touch"],
|
|
4409
|
+
"touch-y": ["touch"],
|
|
4410
|
+
"touch-pz": ["touch"]
|
|
4411
|
+
},
|
|
4412
|
+
conflictingClassGroupModifiers: {
|
|
4413
|
+
"font-size": ["leading"]
|
|
4414
|
+
},
|
|
4415
|
+
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
4416
|
+
};
|
|
4417
|
+
}, Uo = /* @__PURE__ */ Po(Wo);
|
|
4418
|
+
function H(...e) {
|
|
4419
|
+
return Uo(Jt(e));
|
|
4420
|
+
}
|
|
4421
|
+
const Bo = {
|
|
4422
|
+
sm: "zeno:size-4",
|
|
4423
|
+
md: "zeno:size-5",
|
|
4424
|
+
lg: "zeno:size-6"
|
|
4425
|
+
}, Yo = ({ fill: e = "currentColor", size: t = "md", ...r }) => /* @__PURE__ */ Ut(
|
|
4426
|
+
"svg",
|
|
4427
|
+
{
|
|
4428
|
+
className: H("zeno:inset-0", Bo[t], "zeno:animate-spin"),
|
|
4429
|
+
viewBox: "0 0 24 24",
|
|
4430
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4431
|
+
...r,
|
|
4432
|
+
children: [
|
|
4433
|
+
/* @__PURE__ */ ce(
|
|
4434
|
+
"circle",
|
|
4435
|
+
{
|
|
4436
|
+
className: "zeno:opacity-25",
|
|
4437
|
+
cx: "12",
|
|
4438
|
+
cy: "12",
|
|
4439
|
+
r: "10",
|
|
4440
|
+
stroke: "currentColor",
|
|
4441
|
+
strokeWidth: "4",
|
|
4442
|
+
fill: "none"
|
|
4443
|
+
}
|
|
4444
|
+
),
|
|
4445
|
+
/* @__PURE__ */ ce("path", { fill: e, d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z" })
|
|
4446
|
+
]
|
|
4447
|
+
}
|
|
4448
|
+
);
|
|
4449
|
+
function Wt({ fill: e = "currentColor", size: t = "md", children: r, ...n }) {
|
|
4450
|
+
return r ?? /* @__PURE__ */ ce(Yo, { size: t, fill: e, ...n });
|
|
4451
|
+
}
|
|
4452
|
+
function Xo({
|
|
4453
|
+
children: e,
|
|
4454
|
+
size: t = "md",
|
|
4455
|
+
color: r = "primary",
|
|
4456
|
+
variant: n = "solid",
|
|
4457
|
+
isDisabled: o = !1,
|
|
4458
|
+
isLoading: s = !1,
|
|
4459
|
+
spinner: l,
|
|
4460
|
+
spinnerPlacement: c = "start",
|
|
4461
|
+
className: d = "",
|
|
4462
|
+
startContent: u,
|
|
4463
|
+
endContent: g,
|
|
4464
|
+
isIconOnly: m = !1,
|
|
4465
|
+
...x
|
|
7
4466
|
}) {
|
|
8
|
-
|
|
9
|
-
|
|
4467
|
+
const [C, S] = ee([]), $ = G(null), w = (O) => {
|
|
4468
|
+
const E = { x: O.x, y: O.y, key: Date.now() };
|
|
4469
|
+
x.disableRipple || S((D) => [...D, E]), x?.onPress?.(O), $.current && clearTimeout($.current), $.current = window.setTimeout(() => {
|
|
4470
|
+
S([]), $.current = null;
|
|
4471
|
+
}, 2e3);
|
|
4472
|
+
}, k = {
|
|
4473
|
+
solid: `zeno:bg-${r}-ripple`,
|
|
4474
|
+
bordered: `zeno:bg-${r}-ripple`,
|
|
4475
|
+
light: `zeno:bg-${r}-ripple`
|
|
4476
|
+
}, L = s && c === "start", A = s && c === "end", I = !m && !L, N = !m && !A, Y = !(m && s);
|
|
4477
|
+
return /* @__PURE__ */ Ut(
|
|
4478
|
+
to,
|
|
10
4479
|
{
|
|
11
|
-
...
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4480
|
+
...x,
|
|
4481
|
+
onPress: w,
|
|
4482
|
+
isDisabled: o,
|
|
4483
|
+
isPending: s,
|
|
4484
|
+
className: H(
|
|
4485
|
+
"zeno:relative zeno:inline-flex zeno:items-center zeno:justify-center",
|
|
4486
|
+
(o || s) && "zeno:pointer-events-none zeno:opacity-50",
|
|
4487
|
+
d
|
|
4488
|
+
),
|
|
4489
|
+
children: [
|
|
4490
|
+
L && /* @__PURE__ */ ce(Wt, { size: t, children: l }),
|
|
4491
|
+
I && u,
|
|
4492
|
+
C.map((O) => /* @__PURE__ */ ce(
|
|
4493
|
+
"div",
|
|
4494
|
+
{
|
|
4495
|
+
className: H(
|
|
4496
|
+
`zeno:absolute zeno:size-8 zeno:rounded-full zeno:opacity-100 ${k[n]}`
|
|
4497
|
+
),
|
|
4498
|
+
style: {
|
|
4499
|
+
animation: "ripple 600ms linear forwards",
|
|
4500
|
+
left: O.x - 15,
|
|
4501
|
+
top: O.y - 15
|
|
4502
|
+
}
|
|
4503
|
+
},
|
|
4504
|
+
O.key
|
|
4505
|
+
)),
|
|
4506
|
+
Y && /* @__PURE__ */ ce("span", { className: H("zeno:flex zeno:items-center"), children: e }),
|
|
4507
|
+
N && g,
|
|
4508
|
+
A && /* @__PURE__ */ ce(Wt, { size: t, children: l })
|
|
4509
|
+
]
|
|
4510
|
+
}
|
|
4511
|
+
);
|
|
4512
|
+
}
|
|
4513
|
+
function Zo({
|
|
4514
|
+
children: e,
|
|
4515
|
+
size: t = "md",
|
|
4516
|
+
color: r = "primary",
|
|
4517
|
+
variant: n = "solid",
|
|
4518
|
+
radius: o = "md",
|
|
4519
|
+
isDisabled: s = !1,
|
|
4520
|
+
isLoading: l = !1,
|
|
4521
|
+
className: c = "",
|
|
4522
|
+
spinner: d,
|
|
4523
|
+
spinnerPlacement: u = "start",
|
|
4524
|
+
startContent: g,
|
|
4525
|
+
endContent: m,
|
|
4526
|
+
isIconOnly: x = !1,
|
|
4527
|
+
isFullWidth: C = !1,
|
|
4528
|
+
...S
|
|
4529
|
+
}) {
|
|
4530
|
+
const $ = H(
|
|
4531
|
+
"zeno:group zeno:tap-highlight-transparent",
|
|
4532
|
+
"zeno:box-border",
|
|
4533
|
+
"zeno:cursor-pointer zeno:appearance-none",
|
|
4534
|
+
"zeno:items-center zeno:justify-center zeno:gap-2",
|
|
4535
|
+
"zeno:overflow-hidden zeno:border-none",
|
|
4536
|
+
"zeno:font-normal zeno:whitespace-nowrap zeno:subpixel-antialiased",
|
|
4537
|
+
"zeno:transition zeno:duration-150 zeno:ease-out",
|
|
4538
|
+
C ? "zeno:w-full" : "zeno:select-none zeno:active:scale-[0.97] zeno:data-[pressed=true]:scale-[0.97]",
|
|
4539
|
+
"zeno:data-[focus-visible=true]:outline-offset-3"
|
|
4540
|
+
), w = {
|
|
4541
|
+
none: "zeno:rounded-none",
|
|
4542
|
+
sm: "zeno:rounded-sm",
|
|
4543
|
+
md: "zeno:rounded-md",
|
|
4544
|
+
lg: "zeno:rounded-lg",
|
|
4545
|
+
full: "zeno:rounded-full"
|
|
4546
|
+
}, k = {
|
|
4547
|
+
sm: H("zeno:h-8 zeno:px-3 zeno:text-sm", x && "zeno:w-8 zeno:gap-0 zeno:px-0"),
|
|
4548
|
+
md: H("zeno:h-10 zeno:px-4 zeno:text-base", x && "zeno:w-10 zeno:gap-0 zeno:px-0"),
|
|
4549
|
+
lg: H("zeno:h-12 zeno:px-6 zeno:text-lg", x && "zeno:w-12 zeno:gap-0 zeno:px-0")
|
|
4550
|
+
}, L = {
|
|
4551
|
+
default: {
|
|
4552
|
+
solid: H("zeno:bg-default zeno:text-grey"),
|
|
4553
|
+
bordered: H(
|
|
4554
|
+
"zeno:text-grey zeno:border-default zeno:border zeno:border-2 zeno:border-solid zeno:bg-transparent"
|
|
4555
|
+
),
|
|
4556
|
+
light: H("zeno:text-grey zeno:bg-transparent")
|
|
4557
|
+
},
|
|
4558
|
+
primary: {
|
|
4559
|
+
solid: H("zeno:bg-primary zeno:text-white"),
|
|
4560
|
+
bordered: H(
|
|
4561
|
+
"zeno:border-primary zeno:text-primary zeno:border zeno:border-2 zeno:border-solid zeno:bg-transparent"
|
|
4562
|
+
),
|
|
4563
|
+
light: H("zeno:text-primary zeno:bg-transparent")
|
|
4564
|
+
},
|
|
4565
|
+
secondary: {
|
|
4566
|
+
solid: H("zeno:bg-secondary zeno:text-white"),
|
|
4567
|
+
bordered: H(
|
|
4568
|
+
"zeno:border-secondary zeno:text-secondary zeno:border zeno:border-2 zeno:border-solid zeno:bg-transparent"
|
|
4569
|
+
),
|
|
4570
|
+
light: H("zeno:text-secondary zeno:bg-transparent")
|
|
4571
|
+
}
|
|
4572
|
+
};
|
|
4573
|
+
return /* @__PURE__ */ ce(
|
|
4574
|
+
Xo,
|
|
4575
|
+
{
|
|
4576
|
+
...S,
|
|
4577
|
+
className: H(
|
|
4578
|
+
$,
|
|
4579
|
+
k[t],
|
|
4580
|
+
w[o],
|
|
4581
|
+
L[r][n],
|
|
4582
|
+
c
|
|
4583
|
+
),
|
|
4584
|
+
size: t,
|
|
4585
|
+
color: r,
|
|
4586
|
+
variant: n,
|
|
4587
|
+
isLoading: l,
|
|
4588
|
+
isDisabled: s,
|
|
4589
|
+
spinner: d,
|
|
4590
|
+
spinnerPlacement: u,
|
|
4591
|
+
startContent: g,
|
|
4592
|
+
endContent: m,
|
|
4593
|
+
isIconOnly: x,
|
|
4594
|
+
children: e
|
|
17
4595
|
}
|
|
18
4596
|
);
|
|
19
4597
|
}
|
|
20
4598
|
export {
|
|
21
|
-
|
|
4599
|
+
Zo as Button
|
|
22
4600
|
};
|