@tabl.io/ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -0
- package/dist/index.css +3 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +1769 -0
- package/package.json +64 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1769 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
function r(e) {
|
|
4
|
+
var t, i, a = "";
|
|
5
|
+
if (typeof e == "string" || typeof e == "number") a += e;
|
|
6
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
7
|
+
var o = e.length;
|
|
8
|
+
for (t = 0; t < o; t++) e[t] && (i = r(e[t])) && (a && (a += " "), a += i);
|
|
9
|
+
} else for (i in e) e[i] && (a && (a += " "), a += i);
|
|
10
|
+
return a;
|
|
11
|
+
}
|
|
12
|
+
function clsx() {
|
|
13
|
+
for (var e, t, i = 0, a = "", o = arguments.length; i < o; i++) (e = arguments[i]) && (t = r(e)) && (a && (a += " "), a += t);
|
|
14
|
+
return a;
|
|
15
|
+
}
|
|
16
|
+
var falsyToString = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e;
|
|
17
|
+
const cx = clsx, cva = (e, t) => (n) => {
|
|
18
|
+
if (t?.variants == null) return cx(e, n?.class, n?.className);
|
|
19
|
+
let { variants: i, defaultVariants: s } = t, c = Object.keys(i).map((e) => {
|
|
20
|
+
let t = n?.[e], o = s?.[e];
|
|
21
|
+
if (t === null) return null;
|
|
22
|
+
let c = falsyToString(t) || falsyToString(o);
|
|
23
|
+
return i[e][c];
|
|
24
|
+
}), l = n && Object.entries(n).reduce((e, t) => {
|
|
25
|
+
let [n, i] = t;
|
|
26
|
+
return i === void 0 || (e[n] = i), e;
|
|
27
|
+
}, {});
|
|
28
|
+
return cx(e, c, t?.compoundVariants?.reduce((e, t) => {
|
|
29
|
+
let { class: n, className: i, ...a } = t;
|
|
30
|
+
return Object.entries(a).every((e) => {
|
|
31
|
+
let [t, n] = e;
|
|
32
|
+
return Array.isArray(n) ? n.includes({
|
|
33
|
+
...s,
|
|
34
|
+
...l
|
|
35
|
+
}[t]) : {
|
|
36
|
+
...s,
|
|
37
|
+
...l
|
|
38
|
+
}[t] === n;
|
|
39
|
+
}) ? [
|
|
40
|
+
...e,
|
|
41
|
+
n,
|
|
42
|
+
i
|
|
43
|
+
] : e;
|
|
44
|
+
}, []), n?.class, n?.className);
|
|
45
|
+
};
|
|
46
|
+
function setRef(e, t) {
|
|
47
|
+
if (typeof e == "function") return e(t);
|
|
48
|
+
e != null && (e.current = t);
|
|
49
|
+
}
|
|
50
|
+
function composeRefs(...e) {
|
|
51
|
+
return (t) => {
|
|
52
|
+
let n = !1, i = e.map((e) => {
|
|
53
|
+
let i = setRef(e, t);
|
|
54
|
+
return !n && typeof i == "function" && (n = !0), i;
|
|
55
|
+
});
|
|
56
|
+
if (n) return () => {
|
|
57
|
+
for (let t = 0; t < i.length; t++) {
|
|
58
|
+
let n = i[t];
|
|
59
|
+
typeof n == "function" ? n() : setRef(e[t], null);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
65
|
+
function createSlot(n) {
|
|
66
|
+
let i = /* @__PURE__ */ createSlotClone(n), a = React.forwardRef((n, a) => {
|
|
67
|
+
let { children: o, ...s } = n, c = React.Children.toArray(o), l = c.find(isSlottable);
|
|
68
|
+
if (l) {
|
|
69
|
+
let n = l.props.children, o = c.map((t) => t === l ? React.Children.count(n) > 1 ? React.Children.only(null) : React.isValidElement(n) ? n.props.children : null : t);
|
|
70
|
+
return /* @__PURE__ */ jsx(i, {
|
|
71
|
+
...s,
|
|
72
|
+
ref: a,
|
|
73
|
+
children: React.isValidElement(n) ? React.cloneElement(n, void 0, o) : null
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return /* @__PURE__ */ jsx(i, {
|
|
77
|
+
...s,
|
|
78
|
+
ref: a,
|
|
79
|
+
children: o
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
return a.displayName = `${n}.Slot`, a;
|
|
83
|
+
}
|
|
84
|
+
var Slot = /* @__PURE__ */ createSlot("Slot");
|
|
85
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
86
|
+
function createSlotClone(t) {
|
|
87
|
+
let n = React.forwardRef((t, n) => {
|
|
88
|
+
let { children: i, ...a } = t;
|
|
89
|
+
if (React.isValidElement(i)) {
|
|
90
|
+
let t = getElementRef(i), o = mergeProps(a, i.props);
|
|
91
|
+
return i.type !== React.Fragment && (o.ref = n ? composeRefs(n, t) : t), React.cloneElement(i, o);
|
|
92
|
+
}
|
|
93
|
+
return React.Children.count(i) > 1 ? React.Children.only(null) : null;
|
|
94
|
+
});
|
|
95
|
+
return n.displayName = `${t}.SlotClone`, n;
|
|
96
|
+
}
|
|
97
|
+
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
|
98
|
+
function isSlottable(t) {
|
|
99
|
+
return React.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
100
|
+
}
|
|
101
|
+
function mergeProps(e, t) {
|
|
102
|
+
let n = { ...t };
|
|
103
|
+
for (let i in t) {
|
|
104
|
+
let a = e[i], o = t[i];
|
|
105
|
+
/^on[A-Z]/.test(i) ? a && o ? n[i] = (...e) => {
|
|
106
|
+
let t = o(...e);
|
|
107
|
+
return a(...e), t;
|
|
108
|
+
} : a && (n[i] = a) : i === "style" ? n[i] = {
|
|
109
|
+
...a,
|
|
110
|
+
...o
|
|
111
|
+
} : i === "className" && (n[i] = [a, o].filter(Boolean).join(" "));
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
...e,
|
|
115
|
+
...n
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function getElementRef(e) {
|
|
119
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
120
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
121
|
+
}
|
|
122
|
+
var concatArrays = (e, t) => {
|
|
123
|
+
let n = Array(e.length + t.length);
|
|
124
|
+
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
125
|
+
for (let i = 0; i < t.length; i++) n[e.length + i] = t[i];
|
|
126
|
+
return n;
|
|
127
|
+
}, createClassValidatorObject = (e, t) => ({
|
|
128
|
+
classGroupId: e,
|
|
129
|
+
validator: t
|
|
130
|
+
}), createClassPartObject = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
131
|
+
nextPart: e,
|
|
132
|
+
validators: t,
|
|
133
|
+
classGroupId: n
|
|
134
|
+
}), CLASS_PART_SEPARATOR = "-", EMPTY_CONFLICTS = [], ARBITRARY_PROPERTY_PREFIX = "arbitrary..", createClassGroupUtils = (e) => {
|
|
135
|
+
let t = createClassMap(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: i } = e;
|
|
136
|
+
return {
|
|
137
|
+
getClassGroupId: (e) => {
|
|
138
|
+
if (e.startsWith("[") && e.endsWith("]")) return getGroupIdForArbitraryProperty(e);
|
|
139
|
+
let n = e.split(CLASS_PART_SEPARATOR);
|
|
140
|
+
return getGroupRecursive(n, n[0] === "" && n.length > 1 ? 1 : 0, t);
|
|
141
|
+
},
|
|
142
|
+
getConflictingClassGroupIds: (e, t) => {
|
|
143
|
+
if (t) {
|
|
144
|
+
let t = i[e], a = n[e];
|
|
145
|
+
return t ? a ? concatArrays(a, t) : t : a || EMPTY_CONFLICTS;
|
|
146
|
+
}
|
|
147
|
+
return n[e] || EMPTY_CONFLICTS;
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
}, getGroupRecursive = (e, t, n) => {
|
|
151
|
+
if (e.length - t === 0) return n.classGroupId;
|
|
152
|
+
let i = e[t], a = n.nextPart.get(i);
|
|
153
|
+
if (a) {
|
|
154
|
+
let n = getGroupRecursive(e, t + 1, a);
|
|
155
|
+
if (n) return n;
|
|
156
|
+
}
|
|
157
|
+
let o = n.validators;
|
|
158
|
+
if (o === null) return;
|
|
159
|
+
let s = t === 0 ? e.join(CLASS_PART_SEPARATOR) : e.slice(t).join(CLASS_PART_SEPARATOR), c = o.length;
|
|
160
|
+
for (let e = 0; e < c; e++) {
|
|
161
|
+
let t = o[e];
|
|
162
|
+
if (t.validator(s)) return t.classGroupId;
|
|
163
|
+
}
|
|
164
|
+
}, getGroupIdForArbitraryProperty = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
165
|
+
let t = e.slice(1, -1), n = t.indexOf(":"), i = t.slice(0, n);
|
|
166
|
+
return i ? ARBITRARY_PROPERTY_PREFIX + i : void 0;
|
|
167
|
+
})(), createClassMap = (e) => {
|
|
168
|
+
let { theme: t, classGroups: n } = e;
|
|
169
|
+
return processClassGroups(n, t);
|
|
170
|
+
}, processClassGroups = (e, t) => {
|
|
171
|
+
let n = createClassPartObject();
|
|
172
|
+
for (let i in e) {
|
|
173
|
+
let a = e[i];
|
|
174
|
+
processClassesRecursively(a, n, i, t);
|
|
175
|
+
}
|
|
176
|
+
return n;
|
|
177
|
+
}, processClassesRecursively = (e, t, n, i) => {
|
|
178
|
+
let a = e.length;
|
|
179
|
+
for (let o = 0; o < a; o++) {
|
|
180
|
+
let a = e[o];
|
|
181
|
+
processClassDefinition(a, t, n, i);
|
|
182
|
+
}
|
|
183
|
+
}, processClassDefinition = (e, t, n, i) => {
|
|
184
|
+
if (typeof e == "string") {
|
|
185
|
+
processStringDefinition(e, t, n);
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (typeof e == "function") {
|
|
189
|
+
processFunctionDefinition(e, t, n, i);
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
processObjectDefinition(e, t, n, i);
|
|
193
|
+
}, processStringDefinition = (e, t, n) => {
|
|
194
|
+
let i = e === "" ? t : getPart(t, e);
|
|
195
|
+
i.classGroupId = n;
|
|
196
|
+
}, processFunctionDefinition = (e, t, n, i) => {
|
|
197
|
+
if (isThemeGetter(e)) {
|
|
198
|
+
processClassesRecursively(e(i), t, n, i);
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
t.validators === null && (t.validators = []), t.validators.push(createClassValidatorObject(n, e));
|
|
202
|
+
}, processObjectDefinition = (e, t, n, i) => {
|
|
203
|
+
let a = Object.entries(e), o = a.length;
|
|
204
|
+
for (let e = 0; e < o; e++) {
|
|
205
|
+
let [o, s] = a[e];
|
|
206
|
+
processClassesRecursively(s, getPart(t, o), n, i);
|
|
207
|
+
}
|
|
208
|
+
}, getPart = (e, t) => {
|
|
209
|
+
let n = e, i = t.split(CLASS_PART_SEPARATOR), a = i.length;
|
|
210
|
+
for (let e = 0; e < a; e++) {
|
|
211
|
+
let t = i[e], a = n.nextPart.get(t);
|
|
212
|
+
a || (a = createClassPartObject(), n.nextPart.set(t, a)), n = a;
|
|
213
|
+
}
|
|
214
|
+
return n;
|
|
215
|
+
}, isThemeGetter = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, createLruCache = (e) => {
|
|
216
|
+
if (e < 1) return {
|
|
217
|
+
get: () => void 0,
|
|
218
|
+
set: () => {}
|
|
219
|
+
};
|
|
220
|
+
let t = 0, n = Object.create(null), i = Object.create(null), a = (a, o) => {
|
|
221
|
+
n[a] = o, t++, t > e && (t = 0, i = n, n = Object.create(null));
|
|
222
|
+
};
|
|
223
|
+
return {
|
|
224
|
+
get(e) {
|
|
225
|
+
let t = n[e];
|
|
226
|
+
if (t !== void 0) return t;
|
|
227
|
+
if ((t = i[e]) !== void 0) return a(e, t), t;
|
|
228
|
+
},
|
|
229
|
+
set(e, t) {
|
|
230
|
+
e in n ? n[e] = t : a(e, t);
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
}, IMPORTANT_MODIFIER = "!", MODIFIER_SEPARATOR = ":", EMPTY_MODIFIERS = [], createResultObject = (e, t, n, i, a) => ({
|
|
234
|
+
modifiers: e,
|
|
235
|
+
hasImportantModifier: t,
|
|
236
|
+
baseClassName: n,
|
|
237
|
+
maybePostfixModifierPosition: i,
|
|
238
|
+
isExternal: a
|
|
239
|
+
}), createParseClassName = (e) => {
|
|
240
|
+
let { prefix: t, experimentalParseClassName: n } = e, i = (e) => {
|
|
241
|
+
let t = [], n = 0, i = 0, a = 0, o, s = e.length;
|
|
242
|
+
for (let c = 0; c < s; c++) {
|
|
243
|
+
let s = e[c];
|
|
244
|
+
if (n === 0 && i === 0) {
|
|
245
|
+
if (s === MODIFIER_SEPARATOR) {
|
|
246
|
+
t.push(e.slice(a, c)), a = c + 1;
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
if (s === "/") {
|
|
250
|
+
o = c;
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
s === "[" ? n++ : s === "]" ? n-- : s === "(" ? i++ : s === ")" && i--;
|
|
255
|
+
}
|
|
256
|
+
let c = t.length === 0 ? e : e.slice(a), l = c, u = !1;
|
|
257
|
+
c.endsWith(IMPORTANT_MODIFIER) ? (l = c.slice(0, -1), u = !0) : c.startsWith(IMPORTANT_MODIFIER) && (l = c.slice(1), u = !0);
|
|
258
|
+
let d = o && o > a ? o - a : void 0;
|
|
259
|
+
return createResultObject(t, u, l, d);
|
|
260
|
+
};
|
|
261
|
+
if (t) {
|
|
262
|
+
let e = t + MODIFIER_SEPARATOR, n = i;
|
|
263
|
+
i = (t) => t.startsWith(e) ? n(t.slice(e.length)) : createResultObject(EMPTY_MODIFIERS, !1, t, void 0, !0);
|
|
264
|
+
}
|
|
265
|
+
if (n) {
|
|
266
|
+
let e = i;
|
|
267
|
+
i = (t) => n({
|
|
268
|
+
className: t,
|
|
269
|
+
parseClassName: e
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
return i;
|
|
273
|
+
}, createSortModifiers = (e) => {
|
|
274
|
+
let t = /* @__PURE__ */ new Map();
|
|
275
|
+
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
276
|
+
t.set(e, 1e6 + n);
|
|
277
|
+
}), (e) => {
|
|
278
|
+
let n = [], i = [];
|
|
279
|
+
for (let a = 0; a < e.length; a++) {
|
|
280
|
+
let o = e[a], s = o[0] === "[", c = t.has(o);
|
|
281
|
+
s || c ? (i.length > 0 && (i.sort(), n.push(...i), i = []), n.push(o)) : i.push(o);
|
|
282
|
+
}
|
|
283
|
+
return i.length > 0 && (i.sort(), n.push(...i)), n;
|
|
284
|
+
};
|
|
285
|
+
}, createConfigUtils = (e) => ({
|
|
286
|
+
cache: createLruCache(e.cacheSize),
|
|
287
|
+
parseClassName: createParseClassName(e),
|
|
288
|
+
sortModifiers: createSortModifiers(e),
|
|
289
|
+
...createClassGroupUtils(e)
|
|
290
|
+
}), SPLIT_CLASSES_REGEX = /\s+/, mergeClassList = (e, t) => {
|
|
291
|
+
let { parseClassName: n, getClassGroupId: i, getConflictingClassGroupIds: a, sortModifiers: o } = t, s = [], c = e.trim().split(SPLIT_CLASSES_REGEX), l = "";
|
|
292
|
+
for (let e = c.length - 1; e >= 0; --e) {
|
|
293
|
+
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
294
|
+
if (u) {
|
|
295
|
+
l = t + (l.length > 0 ? " " + l : l);
|
|
296
|
+
continue;
|
|
297
|
+
}
|
|
298
|
+
let h = !!m, g = i(h ? p.substring(0, m) : p);
|
|
299
|
+
if (!g) {
|
|
300
|
+
if (!h) {
|
|
301
|
+
l = t + (l.length > 0 ? " " + l : l);
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
if (g = i(p), !g) {
|
|
305
|
+
l = t + (l.length > 0 ? " " + l : l);
|
|
306
|
+
continue;
|
|
307
|
+
}
|
|
308
|
+
h = !1;
|
|
309
|
+
}
|
|
310
|
+
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : o(d).join(":"), v = f ? _ + IMPORTANT_MODIFIER : _, y = v + g;
|
|
311
|
+
if (s.indexOf(y) > -1) continue;
|
|
312
|
+
s.push(y);
|
|
313
|
+
let b = a(g, h);
|
|
314
|
+
for (let e = 0; e < b.length; ++e) {
|
|
315
|
+
let t = b[e];
|
|
316
|
+
s.push(v + t);
|
|
317
|
+
}
|
|
318
|
+
l = t + (l.length > 0 ? " " + l : l);
|
|
319
|
+
}
|
|
320
|
+
return l;
|
|
321
|
+
}, twJoin = (...e) => {
|
|
322
|
+
let t = 0, n, i, a = "";
|
|
323
|
+
for (; t < e.length;) (n = e[t++]) && (i = toValue(n)) && (a && (a += " "), a += i);
|
|
324
|
+
return a;
|
|
325
|
+
}, toValue = (e) => {
|
|
326
|
+
if (typeof e == "string") return e;
|
|
327
|
+
let t, n = "";
|
|
328
|
+
for (let i = 0; i < e.length; i++) e[i] && (t = toValue(e[i])) && (n && (n += " "), n += t);
|
|
329
|
+
return n;
|
|
330
|
+
}, createTailwindMerge = (e, ...t) => {
|
|
331
|
+
let n, i, a, o, s = (s) => (n = createConfigUtils(t.reduce((e, t) => t(e), e())), i = n.cache.get, a = n.cache.set, o = c, c(s)), c = (e) => {
|
|
332
|
+
let t = i(e);
|
|
333
|
+
if (t) return t;
|
|
334
|
+
let o = mergeClassList(e, n);
|
|
335
|
+
return a(e, o), o;
|
|
336
|
+
};
|
|
337
|
+
return o = s, (...e) => o(twJoin(...e));
|
|
338
|
+
}, fallbackThemeArr = [], fromTheme = (e) => {
|
|
339
|
+
let t = (t) => t[e] || fallbackThemeArr;
|
|
340
|
+
return t.isThemeGetter = !0, t;
|
|
341
|
+
}, arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i, fractionRegex = /^\d+\/\d+$/, tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, lengthUnitRegex = /\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$/, colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, isFraction = (e) => fractionRegex.test(e), isNumber = (e) => !!e && !Number.isNaN(Number(e)), isInteger = (e) => !!e && Number.isInteger(Number(e)), isPercent = (e) => e.endsWith("%") && isNumber(e.slice(0, -1)), isTshirtSize = (e) => tshirtUnitRegex.test(e), isAny = () => !0, isLengthOnly = (e) => lengthUnitRegex.test(e) && !colorFunctionRegex.test(e), isNever = () => !1, isShadow = (e) => shadowRegex.test(e), isImage = (e) => imageRegex.test(e), isAnyNonArbitrary = (e) => !isArbitraryValue(e) && !isArbitraryVariable(e), isArbitrarySize = (e) => getIsArbitraryValue(e, isLabelSize, isNever), isArbitraryValue = (e) => arbitraryValueRegex.test(e), isArbitraryLength = (e) => getIsArbitraryValue(e, isLabelLength, isLengthOnly), isArbitraryNumber = (e) => getIsArbitraryValue(e, isLabelNumber, isNumber), isArbitraryPosition = (e) => getIsArbitraryValue(e, isLabelPosition, isNever), isArbitraryImage = (e) => getIsArbitraryValue(e, isLabelImage, isImage), isArbitraryShadow = (e) => getIsArbitraryValue(e, isLabelShadow, isShadow), isArbitraryVariable = (e) => arbitraryVariableRegex.test(e), isArbitraryVariableLength = (e) => getIsArbitraryVariable(e, isLabelLength), isArbitraryVariableFamilyName = (e) => getIsArbitraryVariable(e, isLabelFamilyName), isArbitraryVariablePosition = (e) => getIsArbitraryVariable(e, isLabelPosition), isArbitraryVariableSize = (e) => getIsArbitraryVariable(e, isLabelSize), isArbitraryVariableImage = (e) => getIsArbitraryVariable(e, isLabelImage), isArbitraryVariableShadow = (e) => getIsArbitraryVariable(e, isLabelShadow, !0), getIsArbitraryValue = (e, t, n) => {
|
|
342
|
+
let i = arbitraryValueRegex.exec(e);
|
|
343
|
+
return i ? i[1] ? t(i[1]) : n(i[2]) : !1;
|
|
344
|
+
}, getIsArbitraryVariable = (e, t, n = !1) => {
|
|
345
|
+
let i = arbitraryVariableRegex.exec(e);
|
|
346
|
+
return i ? i[1] ? t(i[1]) : n : !1;
|
|
347
|
+
}, isLabelPosition = (e) => e === "position" || e === "percentage", isLabelImage = (e) => e === "image" || e === "url", isLabelSize = (e) => e === "length" || e === "size" || e === "bg-size", isLabelLength = (e) => e === "length", isLabelNumber = (e) => e === "number", isLabelFamilyName = (e) => e === "family-name", isLabelShadow = (e) => e === "shadow", twMerge = /* @__PURE__ */ createTailwindMerge(() => {
|
|
348
|
+
let e = fromTheme("color"), t = fromTheme("font"), n = fromTheme("text"), i = fromTheme("font-weight"), a = fromTheme("tracking"), o = fromTheme("leading"), s = fromTheme("breakpoint"), c = fromTheme("container"), l = fromTheme("spacing"), u = fromTheme("radius"), d = fromTheme("shadow"), f = fromTheme("inset-shadow"), p = fromTheme("text-shadow"), m = fromTheme("drop-shadow"), h = fromTheme("blur"), g = fromTheme("perspective"), _ = fromTheme("aspect"), v = fromTheme("ease"), y = fromTheme("animate"), b = () => [
|
|
349
|
+
"auto",
|
|
350
|
+
"avoid",
|
|
351
|
+
"all",
|
|
352
|
+
"avoid-page",
|
|
353
|
+
"page",
|
|
354
|
+
"left",
|
|
355
|
+
"right",
|
|
356
|
+
"column"
|
|
357
|
+
], x = () => [
|
|
358
|
+
"center",
|
|
359
|
+
"top",
|
|
360
|
+
"bottom",
|
|
361
|
+
"left",
|
|
362
|
+
"right",
|
|
363
|
+
"top-left",
|
|
364
|
+
"left-top",
|
|
365
|
+
"top-right",
|
|
366
|
+
"right-top",
|
|
367
|
+
"bottom-right",
|
|
368
|
+
"right-bottom",
|
|
369
|
+
"bottom-left",
|
|
370
|
+
"left-bottom"
|
|
371
|
+
], S = () => [
|
|
372
|
+
...x(),
|
|
373
|
+
isArbitraryVariable,
|
|
374
|
+
isArbitraryValue
|
|
375
|
+
], C = () => [
|
|
376
|
+
"auto",
|
|
377
|
+
"hidden",
|
|
378
|
+
"clip",
|
|
379
|
+
"visible",
|
|
380
|
+
"scroll"
|
|
381
|
+
], w = () => [
|
|
382
|
+
"auto",
|
|
383
|
+
"contain",
|
|
384
|
+
"none"
|
|
385
|
+
], T = () => [
|
|
386
|
+
isArbitraryVariable,
|
|
387
|
+
isArbitraryValue,
|
|
388
|
+
l
|
|
389
|
+
], E = () => [
|
|
390
|
+
isFraction,
|
|
391
|
+
"full",
|
|
392
|
+
"auto",
|
|
393
|
+
...T()
|
|
394
|
+
], D = () => [
|
|
395
|
+
isInteger,
|
|
396
|
+
"none",
|
|
397
|
+
"subgrid",
|
|
398
|
+
isArbitraryVariable,
|
|
399
|
+
isArbitraryValue
|
|
400
|
+
], O = () => [
|
|
401
|
+
"auto",
|
|
402
|
+
{ span: [
|
|
403
|
+
"full",
|
|
404
|
+
isInteger,
|
|
405
|
+
isArbitraryVariable,
|
|
406
|
+
isArbitraryValue
|
|
407
|
+
] },
|
|
408
|
+
isInteger,
|
|
409
|
+
isArbitraryVariable,
|
|
410
|
+
isArbitraryValue
|
|
411
|
+
], k = () => [
|
|
412
|
+
isInteger,
|
|
413
|
+
"auto",
|
|
414
|
+
isArbitraryVariable,
|
|
415
|
+
isArbitraryValue
|
|
416
|
+
], A = () => [
|
|
417
|
+
"auto",
|
|
418
|
+
"min",
|
|
419
|
+
"max",
|
|
420
|
+
"fr",
|
|
421
|
+
isArbitraryVariable,
|
|
422
|
+
isArbitraryValue
|
|
423
|
+
], j = () => [
|
|
424
|
+
"start",
|
|
425
|
+
"end",
|
|
426
|
+
"center",
|
|
427
|
+
"between",
|
|
428
|
+
"around",
|
|
429
|
+
"evenly",
|
|
430
|
+
"stretch",
|
|
431
|
+
"baseline",
|
|
432
|
+
"center-safe",
|
|
433
|
+
"end-safe"
|
|
434
|
+
], M = () => [
|
|
435
|
+
"start",
|
|
436
|
+
"end",
|
|
437
|
+
"center",
|
|
438
|
+
"stretch",
|
|
439
|
+
"center-safe",
|
|
440
|
+
"end-safe"
|
|
441
|
+
], N = () => ["auto", ...T()], P = () => [
|
|
442
|
+
isFraction,
|
|
443
|
+
"auto",
|
|
444
|
+
"full",
|
|
445
|
+
"dvw",
|
|
446
|
+
"dvh",
|
|
447
|
+
"lvw",
|
|
448
|
+
"lvh",
|
|
449
|
+
"svw",
|
|
450
|
+
"svh",
|
|
451
|
+
"min",
|
|
452
|
+
"max",
|
|
453
|
+
"fit",
|
|
454
|
+
...T()
|
|
455
|
+
], F = () => [
|
|
456
|
+
e,
|
|
457
|
+
isArbitraryVariable,
|
|
458
|
+
isArbitraryValue
|
|
459
|
+
], I = () => [
|
|
460
|
+
...x(),
|
|
461
|
+
isArbitraryVariablePosition,
|
|
462
|
+
isArbitraryPosition,
|
|
463
|
+
{ position: [isArbitraryVariable, isArbitraryValue] }
|
|
464
|
+
], L = () => ["no-repeat", { repeat: [
|
|
465
|
+
"",
|
|
466
|
+
"x",
|
|
467
|
+
"y",
|
|
468
|
+
"space",
|
|
469
|
+
"round"
|
|
470
|
+
] }], R = () => [
|
|
471
|
+
"auto",
|
|
472
|
+
"cover",
|
|
473
|
+
"contain",
|
|
474
|
+
isArbitraryVariableSize,
|
|
475
|
+
isArbitrarySize,
|
|
476
|
+
{ size: [isArbitraryVariable, isArbitraryValue] }
|
|
477
|
+
], z = () => [
|
|
478
|
+
isPercent,
|
|
479
|
+
isArbitraryVariableLength,
|
|
480
|
+
isArbitraryLength
|
|
481
|
+
], B = () => [
|
|
482
|
+
"",
|
|
483
|
+
"none",
|
|
484
|
+
"full",
|
|
485
|
+
u,
|
|
486
|
+
isArbitraryVariable,
|
|
487
|
+
isArbitraryValue
|
|
488
|
+
], V = () => [
|
|
489
|
+
"",
|
|
490
|
+
isNumber,
|
|
491
|
+
isArbitraryVariableLength,
|
|
492
|
+
isArbitraryLength
|
|
493
|
+
], H = () => [
|
|
494
|
+
"solid",
|
|
495
|
+
"dashed",
|
|
496
|
+
"dotted",
|
|
497
|
+
"double"
|
|
498
|
+
], U = () => [
|
|
499
|
+
"normal",
|
|
500
|
+
"multiply",
|
|
501
|
+
"screen",
|
|
502
|
+
"overlay",
|
|
503
|
+
"darken",
|
|
504
|
+
"lighten",
|
|
505
|
+
"color-dodge",
|
|
506
|
+
"color-burn",
|
|
507
|
+
"hard-light",
|
|
508
|
+
"soft-light",
|
|
509
|
+
"difference",
|
|
510
|
+
"exclusion",
|
|
511
|
+
"hue",
|
|
512
|
+
"saturation",
|
|
513
|
+
"color",
|
|
514
|
+
"luminosity"
|
|
515
|
+
], W = () => [
|
|
516
|
+
isNumber,
|
|
517
|
+
isPercent,
|
|
518
|
+
isArbitraryVariablePosition,
|
|
519
|
+
isArbitraryPosition
|
|
520
|
+
], G = () => [
|
|
521
|
+
"",
|
|
522
|
+
"none",
|
|
523
|
+
h,
|
|
524
|
+
isArbitraryVariable,
|
|
525
|
+
isArbitraryValue
|
|
526
|
+
], K = () => [
|
|
527
|
+
"none",
|
|
528
|
+
isNumber,
|
|
529
|
+
isArbitraryVariable,
|
|
530
|
+
isArbitraryValue
|
|
531
|
+
], q = () => [
|
|
532
|
+
"none",
|
|
533
|
+
isNumber,
|
|
534
|
+
isArbitraryVariable,
|
|
535
|
+
isArbitraryValue
|
|
536
|
+
], J = () => [
|
|
537
|
+
isNumber,
|
|
538
|
+
isArbitraryVariable,
|
|
539
|
+
isArbitraryValue
|
|
540
|
+
], Y = () => [
|
|
541
|
+
isFraction,
|
|
542
|
+
"full",
|
|
543
|
+
...T()
|
|
544
|
+
];
|
|
545
|
+
return {
|
|
546
|
+
cacheSize: 500,
|
|
547
|
+
theme: {
|
|
548
|
+
animate: [
|
|
549
|
+
"spin",
|
|
550
|
+
"ping",
|
|
551
|
+
"pulse",
|
|
552
|
+
"bounce"
|
|
553
|
+
],
|
|
554
|
+
aspect: ["video"],
|
|
555
|
+
blur: [isTshirtSize],
|
|
556
|
+
breakpoint: [isTshirtSize],
|
|
557
|
+
color: [isAny],
|
|
558
|
+
container: [isTshirtSize],
|
|
559
|
+
"drop-shadow": [isTshirtSize],
|
|
560
|
+
ease: [
|
|
561
|
+
"in",
|
|
562
|
+
"out",
|
|
563
|
+
"in-out"
|
|
564
|
+
],
|
|
565
|
+
font: [isAnyNonArbitrary],
|
|
566
|
+
"font-weight": [
|
|
567
|
+
"thin",
|
|
568
|
+
"extralight",
|
|
569
|
+
"light",
|
|
570
|
+
"normal",
|
|
571
|
+
"medium",
|
|
572
|
+
"semibold",
|
|
573
|
+
"bold",
|
|
574
|
+
"extrabold",
|
|
575
|
+
"black"
|
|
576
|
+
],
|
|
577
|
+
"inset-shadow": [isTshirtSize],
|
|
578
|
+
leading: [
|
|
579
|
+
"none",
|
|
580
|
+
"tight",
|
|
581
|
+
"snug",
|
|
582
|
+
"normal",
|
|
583
|
+
"relaxed",
|
|
584
|
+
"loose"
|
|
585
|
+
],
|
|
586
|
+
perspective: [
|
|
587
|
+
"dramatic",
|
|
588
|
+
"near",
|
|
589
|
+
"normal",
|
|
590
|
+
"midrange",
|
|
591
|
+
"distant",
|
|
592
|
+
"none"
|
|
593
|
+
],
|
|
594
|
+
radius: [isTshirtSize],
|
|
595
|
+
shadow: [isTshirtSize],
|
|
596
|
+
spacing: ["px", isNumber],
|
|
597
|
+
text: [isTshirtSize],
|
|
598
|
+
"text-shadow": [isTshirtSize],
|
|
599
|
+
tracking: [
|
|
600
|
+
"tighter",
|
|
601
|
+
"tight",
|
|
602
|
+
"normal",
|
|
603
|
+
"wide",
|
|
604
|
+
"wider",
|
|
605
|
+
"widest"
|
|
606
|
+
]
|
|
607
|
+
},
|
|
608
|
+
classGroups: {
|
|
609
|
+
aspect: [{ aspect: [
|
|
610
|
+
"auto",
|
|
611
|
+
"square",
|
|
612
|
+
isFraction,
|
|
613
|
+
isArbitraryValue,
|
|
614
|
+
isArbitraryVariable,
|
|
615
|
+
_
|
|
616
|
+
] }],
|
|
617
|
+
container: ["container"],
|
|
618
|
+
columns: [{ columns: [
|
|
619
|
+
isNumber,
|
|
620
|
+
isArbitraryValue,
|
|
621
|
+
isArbitraryVariable,
|
|
622
|
+
c
|
|
623
|
+
] }],
|
|
624
|
+
"break-after": [{ "break-after": b() }],
|
|
625
|
+
"break-before": [{ "break-before": b() }],
|
|
626
|
+
"break-inside": [{ "break-inside": [
|
|
627
|
+
"auto",
|
|
628
|
+
"avoid",
|
|
629
|
+
"avoid-page",
|
|
630
|
+
"avoid-column"
|
|
631
|
+
] }],
|
|
632
|
+
"box-decoration": [{ "box-decoration": ["slice", "clone"] }],
|
|
633
|
+
box: [{ box: ["border", "content"] }],
|
|
634
|
+
display: [
|
|
635
|
+
"block",
|
|
636
|
+
"inline-block",
|
|
637
|
+
"inline",
|
|
638
|
+
"flex",
|
|
639
|
+
"inline-flex",
|
|
640
|
+
"table",
|
|
641
|
+
"inline-table",
|
|
642
|
+
"table-caption",
|
|
643
|
+
"table-cell",
|
|
644
|
+
"table-column",
|
|
645
|
+
"table-column-group",
|
|
646
|
+
"table-footer-group",
|
|
647
|
+
"table-header-group",
|
|
648
|
+
"table-row-group",
|
|
649
|
+
"table-row",
|
|
650
|
+
"flow-root",
|
|
651
|
+
"grid",
|
|
652
|
+
"inline-grid",
|
|
653
|
+
"contents",
|
|
654
|
+
"list-item",
|
|
655
|
+
"hidden"
|
|
656
|
+
],
|
|
657
|
+
sr: ["sr-only", "not-sr-only"],
|
|
658
|
+
float: [{ float: [
|
|
659
|
+
"right",
|
|
660
|
+
"left",
|
|
661
|
+
"none",
|
|
662
|
+
"start",
|
|
663
|
+
"end"
|
|
664
|
+
] }],
|
|
665
|
+
clear: [{ clear: [
|
|
666
|
+
"left",
|
|
667
|
+
"right",
|
|
668
|
+
"both",
|
|
669
|
+
"none",
|
|
670
|
+
"start",
|
|
671
|
+
"end"
|
|
672
|
+
] }],
|
|
673
|
+
isolation: ["isolate", "isolation-auto"],
|
|
674
|
+
"object-fit": [{ object: [
|
|
675
|
+
"contain",
|
|
676
|
+
"cover",
|
|
677
|
+
"fill",
|
|
678
|
+
"none",
|
|
679
|
+
"scale-down"
|
|
680
|
+
] }],
|
|
681
|
+
"object-position": [{ object: S() }],
|
|
682
|
+
overflow: [{ overflow: C() }],
|
|
683
|
+
"overflow-x": [{ "overflow-x": C() }],
|
|
684
|
+
"overflow-y": [{ "overflow-y": C() }],
|
|
685
|
+
overscroll: [{ overscroll: w() }],
|
|
686
|
+
"overscroll-x": [{ "overscroll-x": w() }],
|
|
687
|
+
"overscroll-y": [{ "overscroll-y": w() }],
|
|
688
|
+
position: [
|
|
689
|
+
"static",
|
|
690
|
+
"fixed",
|
|
691
|
+
"absolute",
|
|
692
|
+
"relative",
|
|
693
|
+
"sticky"
|
|
694
|
+
],
|
|
695
|
+
inset: [{ inset: E() }],
|
|
696
|
+
"inset-x": [{ "inset-x": E() }],
|
|
697
|
+
"inset-y": [{ "inset-y": E() }],
|
|
698
|
+
start: [{ start: E() }],
|
|
699
|
+
end: [{ end: E() }],
|
|
700
|
+
top: [{ top: E() }],
|
|
701
|
+
right: [{ right: E() }],
|
|
702
|
+
bottom: [{ bottom: E() }],
|
|
703
|
+
left: [{ left: E() }],
|
|
704
|
+
visibility: [
|
|
705
|
+
"visible",
|
|
706
|
+
"invisible",
|
|
707
|
+
"collapse"
|
|
708
|
+
],
|
|
709
|
+
z: [{ z: [
|
|
710
|
+
isInteger,
|
|
711
|
+
"auto",
|
|
712
|
+
isArbitraryVariable,
|
|
713
|
+
isArbitraryValue
|
|
714
|
+
] }],
|
|
715
|
+
basis: [{ basis: [
|
|
716
|
+
isFraction,
|
|
717
|
+
"full",
|
|
718
|
+
"auto",
|
|
719
|
+
c,
|
|
720
|
+
...T()
|
|
721
|
+
] }],
|
|
722
|
+
"flex-direction": [{ flex: [
|
|
723
|
+
"row",
|
|
724
|
+
"row-reverse",
|
|
725
|
+
"col",
|
|
726
|
+
"col-reverse"
|
|
727
|
+
] }],
|
|
728
|
+
"flex-wrap": [{ flex: [
|
|
729
|
+
"nowrap",
|
|
730
|
+
"wrap",
|
|
731
|
+
"wrap-reverse"
|
|
732
|
+
] }],
|
|
733
|
+
flex: [{ flex: [
|
|
734
|
+
isNumber,
|
|
735
|
+
isFraction,
|
|
736
|
+
"auto",
|
|
737
|
+
"initial",
|
|
738
|
+
"none",
|
|
739
|
+
isArbitraryValue
|
|
740
|
+
] }],
|
|
741
|
+
grow: [{ grow: [
|
|
742
|
+
"",
|
|
743
|
+
isNumber,
|
|
744
|
+
isArbitraryVariable,
|
|
745
|
+
isArbitraryValue
|
|
746
|
+
] }],
|
|
747
|
+
shrink: [{ shrink: [
|
|
748
|
+
"",
|
|
749
|
+
isNumber,
|
|
750
|
+
isArbitraryVariable,
|
|
751
|
+
isArbitraryValue
|
|
752
|
+
] }],
|
|
753
|
+
order: [{ order: [
|
|
754
|
+
isInteger,
|
|
755
|
+
"first",
|
|
756
|
+
"last",
|
|
757
|
+
"none",
|
|
758
|
+
isArbitraryVariable,
|
|
759
|
+
isArbitraryValue
|
|
760
|
+
] }],
|
|
761
|
+
"grid-cols": [{ "grid-cols": D() }],
|
|
762
|
+
"col-start-end": [{ col: O() }],
|
|
763
|
+
"col-start": [{ "col-start": k() }],
|
|
764
|
+
"col-end": [{ "col-end": k() }],
|
|
765
|
+
"grid-rows": [{ "grid-rows": D() }],
|
|
766
|
+
"row-start-end": [{ row: O() }],
|
|
767
|
+
"row-start": [{ "row-start": k() }],
|
|
768
|
+
"row-end": [{ "row-end": k() }],
|
|
769
|
+
"grid-flow": [{ "grid-flow": [
|
|
770
|
+
"row",
|
|
771
|
+
"col",
|
|
772
|
+
"dense",
|
|
773
|
+
"row-dense",
|
|
774
|
+
"col-dense"
|
|
775
|
+
] }],
|
|
776
|
+
"auto-cols": [{ "auto-cols": A() }],
|
|
777
|
+
"auto-rows": [{ "auto-rows": A() }],
|
|
778
|
+
gap: [{ gap: T() }],
|
|
779
|
+
"gap-x": [{ "gap-x": T() }],
|
|
780
|
+
"gap-y": [{ "gap-y": T() }],
|
|
781
|
+
"justify-content": [{ justify: [...j(), "normal"] }],
|
|
782
|
+
"justify-items": [{ "justify-items": [...M(), "normal"] }],
|
|
783
|
+
"justify-self": [{ "justify-self": ["auto", ...M()] }],
|
|
784
|
+
"align-content": [{ content: ["normal", ...j()] }],
|
|
785
|
+
"align-items": [{ items: [...M(), { baseline: ["", "last"] }] }],
|
|
786
|
+
"align-self": [{ self: [
|
|
787
|
+
"auto",
|
|
788
|
+
...M(),
|
|
789
|
+
{ baseline: ["", "last"] }
|
|
790
|
+
] }],
|
|
791
|
+
"place-content": [{ "place-content": j() }],
|
|
792
|
+
"place-items": [{ "place-items": [...M(), "baseline"] }],
|
|
793
|
+
"place-self": [{ "place-self": ["auto", ...M()] }],
|
|
794
|
+
p: [{ p: T() }],
|
|
795
|
+
px: [{ px: T() }],
|
|
796
|
+
py: [{ py: T() }],
|
|
797
|
+
ps: [{ ps: T() }],
|
|
798
|
+
pe: [{ pe: T() }],
|
|
799
|
+
pt: [{ pt: T() }],
|
|
800
|
+
pr: [{ pr: T() }],
|
|
801
|
+
pb: [{ pb: T() }],
|
|
802
|
+
pl: [{ pl: T() }],
|
|
803
|
+
m: [{ m: N() }],
|
|
804
|
+
mx: [{ mx: N() }],
|
|
805
|
+
my: [{ my: N() }],
|
|
806
|
+
ms: [{ ms: N() }],
|
|
807
|
+
me: [{ me: N() }],
|
|
808
|
+
mt: [{ mt: N() }],
|
|
809
|
+
mr: [{ mr: N() }],
|
|
810
|
+
mb: [{ mb: N() }],
|
|
811
|
+
ml: [{ ml: N() }],
|
|
812
|
+
"space-x": [{ "space-x": T() }],
|
|
813
|
+
"space-x-reverse": ["space-x-reverse"],
|
|
814
|
+
"space-y": [{ "space-y": T() }],
|
|
815
|
+
"space-y-reverse": ["space-y-reverse"],
|
|
816
|
+
size: [{ size: P() }],
|
|
817
|
+
w: [{ w: [
|
|
818
|
+
c,
|
|
819
|
+
"screen",
|
|
820
|
+
...P()
|
|
821
|
+
] }],
|
|
822
|
+
"min-w": [{ "min-w": [
|
|
823
|
+
c,
|
|
824
|
+
"screen",
|
|
825
|
+
"none",
|
|
826
|
+
...P()
|
|
827
|
+
] }],
|
|
828
|
+
"max-w": [{ "max-w": [
|
|
829
|
+
c,
|
|
830
|
+
"screen",
|
|
831
|
+
"none",
|
|
832
|
+
"prose",
|
|
833
|
+
{ screen: [s] },
|
|
834
|
+
...P()
|
|
835
|
+
] }],
|
|
836
|
+
h: [{ h: [
|
|
837
|
+
"screen",
|
|
838
|
+
"lh",
|
|
839
|
+
...P()
|
|
840
|
+
] }],
|
|
841
|
+
"min-h": [{ "min-h": [
|
|
842
|
+
"screen",
|
|
843
|
+
"lh",
|
|
844
|
+
"none",
|
|
845
|
+
...P()
|
|
846
|
+
] }],
|
|
847
|
+
"max-h": [{ "max-h": [
|
|
848
|
+
"screen",
|
|
849
|
+
"lh",
|
|
850
|
+
...P()
|
|
851
|
+
] }],
|
|
852
|
+
"font-size": [{ text: [
|
|
853
|
+
"base",
|
|
854
|
+
n,
|
|
855
|
+
isArbitraryVariableLength,
|
|
856
|
+
isArbitraryLength
|
|
857
|
+
] }],
|
|
858
|
+
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
859
|
+
"font-style": ["italic", "not-italic"],
|
|
860
|
+
"font-weight": [{ font: [
|
|
861
|
+
i,
|
|
862
|
+
isArbitraryVariable,
|
|
863
|
+
isArbitraryNumber
|
|
864
|
+
] }],
|
|
865
|
+
"font-stretch": [{ "font-stretch": [
|
|
866
|
+
"ultra-condensed",
|
|
867
|
+
"extra-condensed",
|
|
868
|
+
"condensed",
|
|
869
|
+
"semi-condensed",
|
|
870
|
+
"normal",
|
|
871
|
+
"semi-expanded",
|
|
872
|
+
"expanded",
|
|
873
|
+
"extra-expanded",
|
|
874
|
+
"ultra-expanded",
|
|
875
|
+
isPercent,
|
|
876
|
+
isArbitraryValue
|
|
877
|
+
] }],
|
|
878
|
+
"font-family": [{ font: [
|
|
879
|
+
isArbitraryVariableFamilyName,
|
|
880
|
+
isArbitraryValue,
|
|
881
|
+
t
|
|
882
|
+
] }],
|
|
883
|
+
"fvn-normal": ["normal-nums"],
|
|
884
|
+
"fvn-ordinal": ["ordinal"],
|
|
885
|
+
"fvn-slashed-zero": ["slashed-zero"],
|
|
886
|
+
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
887
|
+
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
888
|
+
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
889
|
+
tracking: [{ tracking: [
|
|
890
|
+
a,
|
|
891
|
+
isArbitraryVariable,
|
|
892
|
+
isArbitraryValue
|
|
893
|
+
] }],
|
|
894
|
+
"line-clamp": [{ "line-clamp": [
|
|
895
|
+
isNumber,
|
|
896
|
+
"none",
|
|
897
|
+
isArbitraryVariable,
|
|
898
|
+
isArbitraryNumber
|
|
899
|
+
] }],
|
|
900
|
+
leading: [{ leading: [o, ...T()] }],
|
|
901
|
+
"list-image": [{ "list-image": [
|
|
902
|
+
"none",
|
|
903
|
+
isArbitraryVariable,
|
|
904
|
+
isArbitraryValue
|
|
905
|
+
] }],
|
|
906
|
+
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
907
|
+
"list-style-type": [{ list: [
|
|
908
|
+
"disc",
|
|
909
|
+
"decimal",
|
|
910
|
+
"none",
|
|
911
|
+
isArbitraryVariable,
|
|
912
|
+
isArbitraryValue
|
|
913
|
+
] }],
|
|
914
|
+
"text-alignment": [{ text: [
|
|
915
|
+
"left",
|
|
916
|
+
"center",
|
|
917
|
+
"right",
|
|
918
|
+
"justify",
|
|
919
|
+
"start",
|
|
920
|
+
"end"
|
|
921
|
+
] }],
|
|
922
|
+
"placeholder-color": [{ placeholder: F() }],
|
|
923
|
+
"text-color": [{ text: F() }],
|
|
924
|
+
"text-decoration": [
|
|
925
|
+
"underline",
|
|
926
|
+
"overline",
|
|
927
|
+
"line-through",
|
|
928
|
+
"no-underline"
|
|
929
|
+
],
|
|
930
|
+
"text-decoration-style": [{ decoration: [...H(), "wavy"] }],
|
|
931
|
+
"text-decoration-thickness": [{ decoration: [
|
|
932
|
+
isNumber,
|
|
933
|
+
"from-font",
|
|
934
|
+
"auto",
|
|
935
|
+
isArbitraryVariable,
|
|
936
|
+
isArbitraryLength
|
|
937
|
+
] }],
|
|
938
|
+
"text-decoration-color": [{ decoration: F() }],
|
|
939
|
+
"underline-offset": [{ "underline-offset": [
|
|
940
|
+
isNumber,
|
|
941
|
+
"auto",
|
|
942
|
+
isArbitraryVariable,
|
|
943
|
+
isArbitraryValue
|
|
944
|
+
] }],
|
|
945
|
+
"text-transform": [
|
|
946
|
+
"uppercase",
|
|
947
|
+
"lowercase",
|
|
948
|
+
"capitalize",
|
|
949
|
+
"normal-case"
|
|
950
|
+
],
|
|
951
|
+
"text-overflow": [
|
|
952
|
+
"truncate",
|
|
953
|
+
"text-ellipsis",
|
|
954
|
+
"text-clip"
|
|
955
|
+
],
|
|
956
|
+
"text-wrap": [{ text: [
|
|
957
|
+
"wrap",
|
|
958
|
+
"nowrap",
|
|
959
|
+
"balance",
|
|
960
|
+
"pretty"
|
|
961
|
+
] }],
|
|
962
|
+
indent: [{ indent: T() }],
|
|
963
|
+
"vertical-align": [{ align: [
|
|
964
|
+
"baseline",
|
|
965
|
+
"top",
|
|
966
|
+
"middle",
|
|
967
|
+
"bottom",
|
|
968
|
+
"text-top",
|
|
969
|
+
"text-bottom",
|
|
970
|
+
"sub",
|
|
971
|
+
"super",
|
|
972
|
+
isArbitraryVariable,
|
|
973
|
+
isArbitraryValue
|
|
974
|
+
] }],
|
|
975
|
+
whitespace: [{ whitespace: [
|
|
976
|
+
"normal",
|
|
977
|
+
"nowrap",
|
|
978
|
+
"pre",
|
|
979
|
+
"pre-line",
|
|
980
|
+
"pre-wrap",
|
|
981
|
+
"break-spaces"
|
|
982
|
+
] }],
|
|
983
|
+
break: [{ break: [
|
|
984
|
+
"normal",
|
|
985
|
+
"words",
|
|
986
|
+
"all",
|
|
987
|
+
"keep"
|
|
988
|
+
] }],
|
|
989
|
+
wrap: [{ wrap: [
|
|
990
|
+
"break-word",
|
|
991
|
+
"anywhere",
|
|
992
|
+
"normal"
|
|
993
|
+
] }],
|
|
994
|
+
hyphens: [{ hyphens: [
|
|
995
|
+
"none",
|
|
996
|
+
"manual",
|
|
997
|
+
"auto"
|
|
998
|
+
] }],
|
|
999
|
+
content: [{ content: [
|
|
1000
|
+
"none",
|
|
1001
|
+
isArbitraryVariable,
|
|
1002
|
+
isArbitraryValue
|
|
1003
|
+
] }],
|
|
1004
|
+
"bg-attachment": [{ bg: [
|
|
1005
|
+
"fixed",
|
|
1006
|
+
"local",
|
|
1007
|
+
"scroll"
|
|
1008
|
+
] }],
|
|
1009
|
+
"bg-clip": [{ "bg-clip": [
|
|
1010
|
+
"border",
|
|
1011
|
+
"padding",
|
|
1012
|
+
"content",
|
|
1013
|
+
"text"
|
|
1014
|
+
] }],
|
|
1015
|
+
"bg-origin": [{ "bg-origin": [
|
|
1016
|
+
"border",
|
|
1017
|
+
"padding",
|
|
1018
|
+
"content"
|
|
1019
|
+
] }],
|
|
1020
|
+
"bg-position": [{ bg: I() }],
|
|
1021
|
+
"bg-repeat": [{ bg: L() }],
|
|
1022
|
+
"bg-size": [{ bg: R() }],
|
|
1023
|
+
"bg-image": [{ bg: [
|
|
1024
|
+
"none",
|
|
1025
|
+
{
|
|
1026
|
+
linear: [
|
|
1027
|
+
{ to: [
|
|
1028
|
+
"t",
|
|
1029
|
+
"tr",
|
|
1030
|
+
"r",
|
|
1031
|
+
"br",
|
|
1032
|
+
"b",
|
|
1033
|
+
"bl",
|
|
1034
|
+
"l",
|
|
1035
|
+
"tl"
|
|
1036
|
+
] },
|
|
1037
|
+
isInteger,
|
|
1038
|
+
isArbitraryVariable,
|
|
1039
|
+
isArbitraryValue
|
|
1040
|
+
],
|
|
1041
|
+
radial: [
|
|
1042
|
+
"",
|
|
1043
|
+
isArbitraryVariable,
|
|
1044
|
+
isArbitraryValue
|
|
1045
|
+
],
|
|
1046
|
+
conic: [
|
|
1047
|
+
isInteger,
|
|
1048
|
+
isArbitraryVariable,
|
|
1049
|
+
isArbitraryValue
|
|
1050
|
+
]
|
|
1051
|
+
},
|
|
1052
|
+
isArbitraryVariableImage,
|
|
1053
|
+
isArbitraryImage
|
|
1054
|
+
] }],
|
|
1055
|
+
"bg-color": [{ bg: F() }],
|
|
1056
|
+
"gradient-from-pos": [{ from: z() }],
|
|
1057
|
+
"gradient-via-pos": [{ via: z() }],
|
|
1058
|
+
"gradient-to-pos": [{ to: z() }],
|
|
1059
|
+
"gradient-from": [{ from: F() }],
|
|
1060
|
+
"gradient-via": [{ via: F() }],
|
|
1061
|
+
"gradient-to": [{ to: F() }],
|
|
1062
|
+
rounded: [{ rounded: B() }],
|
|
1063
|
+
"rounded-s": [{ "rounded-s": B() }],
|
|
1064
|
+
"rounded-e": [{ "rounded-e": B() }],
|
|
1065
|
+
"rounded-t": [{ "rounded-t": B() }],
|
|
1066
|
+
"rounded-r": [{ "rounded-r": B() }],
|
|
1067
|
+
"rounded-b": [{ "rounded-b": B() }],
|
|
1068
|
+
"rounded-l": [{ "rounded-l": B() }],
|
|
1069
|
+
"rounded-ss": [{ "rounded-ss": B() }],
|
|
1070
|
+
"rounded-se": [{ "rounded-se": B() }],
|
|
1071
|
+
"rounded-ee": [{ "rounded-ee": B() }],
|
|
1072
|
+
"rounded-es": [{ "rounded-es": B() }],
|
|
1073
|
+
"rounded-tl": [{ "rounded-tl": B() }],
|
|
1074
|
+
"rounded-tr": [{ "rounded-tr": B() }],
|
|
1075
|
+
"rounded-br": [{ "rounded-br": B() }],
|
|
1076
|
+
"rounded-bl": [{ "rounded-bl": B() }],
|
|
1077
|
+
"border-w": [{ border: V() }],
|
|
1078
|
+
"border-w-x": [{ "border-x": V() }],
|
|
1079
|
+
"border-w-y": [{ "border-y": V() }],
|
|
1080
|
+
"border-w-s": [{ "border-s": V() }],
|
|
1081
|
+
"border-w-e": [{ "border-e": V() }],
|
|
1082
|
+
"border-w-t": [{ "border-t": V() }],
|
|
1083
|
+
"border-w-r": [{ "border-r": V() }],
|
|
1084
|
+
"border-w-b": [{ "border-b": V() }],
|
|
1085
|
+
"border-w-l": [{ "border-l": V() }],
|
|
1086
|
+
"divide-x": [{ "divide-x": V() }],
|
|
1087
|
+
"divide-x-reverse": ["divide-x-reverse"],
|
|
1088
|
+
"divide-y": [{ "divide-y": V() }],
|
|
1089
|
+
"divide-y-reverse": ["divide-y-reverse"],
|
|
1090
|
+
"border-style": [{ border: [
|
|
1091
|
+
...H(),
|
|
1092
|
+
"hidden",
|
|
1093
|
+
"none"
|
|
1094
|
+
] }],
|
|
1095
|
+
"divide-style": [{ divide: [
|
|
1096
|
+
...H(),
|
|
1097
|
+
"hidden",
|
|
1098
|
+
"none"
|
|
1099
|
+
] }],
|
|
1100
|
+
"border-color": [{ border: F() }],
|
|
1101
|
+
"border-color-x": [{ "border-x": F() }],
|
|
1102
|
+
"border-color-y": [{ "border-y": F() }],
|
|
1103
|
+
"border-color-s": [{ "border-s": F() }],
|
|
1104
|
+
"border-color-e": [{ "border-e": F() }],
|
|
1105
|
+
"border-color-t": [{ "border-t": F() }],
|
|
1106
|
+
"border-color-r": [{ "border-r": F() }],
|
|
1107
|
+
"border-color-b": [{ "border-b": F() }],
|
|
1108
|
+
"border-color-l": [{ "border-l": F() }],
|
|
1109
|
+
"divide-color": [{ divide: F() }],
|
|
1110
|
+
"outline-style": [{ outline: [
|
|
1111
|
+
...H(),
|
|
1112
|
+
"none",
|
|
1113
|
+
"hidden"
|
|
1114
|
+
] }],
|
|
1115
|
+
"outline-offset": [{ "outline-offset": [
|
|
1116
|
+
isNumber,
|
|
1117
|
+
isArbitraryVariable,
|
|
1118
|
+
isArbitraryValue
|
|
1119
|
+
] }],
|
|
1120
|
+
"outline-w": [{ outline: [
|
|
1121
|
+
"",
|
|
1122
|
+
isNumber,
|
|
1123
|
+
isArbitraryVariableLength,
|
|
1124
|
+
isArbitraryLength
|
|
1125
|
+
] }],
|
|
1126
|
+
"outline-color": [{ outline: F() }],
|
|
1127
|
+
shadow: [{ shadow: [
|
|
1128
|
+
"",
|
|
1129
|
+
"none",
|
|
1130
|
+
d,
|
|
1131
|
+
isArbitraryVariableShadow,
|
|
1132
|
+
isArbitraryShadow
|
|
1133
|
+
] }],
|
|
1134
|
+
"shadow-color": [{ shadow: F() }],
|
|
1135
|
+
"inset-shadow": [{ "inset-shadow": [
|
|
1136
|
+
"none",
|
|
1137
|
+
f,
|
|
1138
|
+
isArbitraryVariableShadow,
|
|
1139
|
+
isArbitraryShadow
|
|
1140
|
+
] }],
|
|
1141
|
+
"inset-shadow-color": [{ "inset-shadow": F() }],
|
|
1142
|
+
"ring-w": [{ ring: V() }],
|
|
1143
|
+
"ring-w-inset": ["ring-inset"],
|
|
1144
|
+
"ring-color": [{ ring: F() }],
|
|
1145
|
+
"ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }],
|
|
1146
|
+
"ring-offset-color": [{ "ring-offset": F() }],
|
|
1147
|
+
"inset-ring-w": [{ "inset-ring": V() }],
|
|
1148
|
+
"inset-ring-color": [{ "inset-ring": F() }],
|
|
1149
|
+
"text-shadow": [{ "text-shadow": [
|
|
1150
|
+
"none",
|
|
1151
|
+
p,
|
|
1152
|
+
isArbitraryVariableShadow,
|
|
1153
|
+
isArbitraryShadow
|
|
1154
|
+
] }],
|
|
1155
|
+
"text-shadow-color": [{ "text-shadow": F() }],
|
|
1156
|
+
opacity: [{ opacity: [
|
|
1157
|
+
isNumber,
|
|
1158
|
+
isArbitraryVariable,
|
|
1159
|
+
isArbitraryValue
|
|
1160
|
+
] }],
|
|
1161
|
+
"mix-blend": [{ "mix-blend": [
|
|
1162
|
+
...U(),
|
|
1163
|
+
"plus-darker",
|
|
1164
|
+
"plus-lighter"
|
|
1165
|
+
] }],
|
|
1166
|
+
"bg-blend": [{ "bg-blend": U() }],
|
|
1167
|
+
"mask-clip": [{ "mask-clip": [
|
|
1168
|
+
"border",
|
|
1169
|
+
"padding",
|
|
1170
|
+
"content",
|
|
1171
|
+
"fill",
|
|
1172
|
+
"stroke",
|
|
1173
|
+
"view"
|
|
1174
|
+
] }, "mask-no-clip"],
|
|
1175
|
+
"mask-composite": [{ mask: [
|
|
1176
|
+
"add",
|
|
1177
|
+
"subtract",
|
|
1178
|
+
"intersect",
|
|
1179
|
+
"exclude"
|
|
1180
|
+
] }],
|
|
1181
|
+
"mask-image-linear-pos": [{ "mask-linear": [isNumber] }],
|
|
1182
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": W() }],
|
|
1183
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": W() }],
|
|
1184
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": F() }],
|
|
1185
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": F() }],
|
|
1186
|
+
"mask-image-t-from-pos": [{ "mask-t-from": W() }],
|
|
1187
|
+
"mask-image-t-to-pos": [{ "mask-t-to": W() }],
|
|
1188
|
+
"mask-image-t-from-color": [{ "mask-t-from": F() }],
|
|
1189
|
+
"mask-image-t-to-color": [{ "mask-t-to": F() }],
|
|
1190
|
+
"mask-image-r-from-pos": [{ "mask-r-from": W() }],
|
|
1191
|
+
"mask-image-r-to-pos": [{ "mask-r-to": W() }],
|
|
1192
|
+
"mask-image-r-from-color": [{ "mask-r-from": F() }],
|
|
1193
|
+
"mask-image-r-to-color": [{ "mask-r-to": F() }],
|
|
1194
|
+
"mask-image-b-from-pos": [{ "mask-b-from": W() }],
|
|
1195
|
+
"mask-image-b-to-pos": [{ "mask-b-to": W() }],
|
|
1196
|
+
"mask-image-b-from-color": [{ "mask-b-from": F() }],
|
|
1197
|
+
"mask-image-b-to-color": [{ "mask-b-to": F() }],
|
|
1198
|
+
"mask-image-l-from-pos": [{ "mask-l-from": W() }],
|
|
1199
|
+
"mask-image-l-to-pos": [{ "mask-l-to": W() }],
|
|
1200
|
+
"mask-image-l-from-color": [{ "mask-l-from": F() }],
|
|
1201
|
+
"mask-image-l-to-color": [{ "mask-l-to": F() }],
|
|
1202
|
+
"mask-image-x-from-pos": [{ "mask-x-from": W() }],
|
|
1203
|
+
"mask-image-x-to-pos": [{ "mask-x-to": W() }],
|
|
1204
|
+
"mask-image-x-from-color": [{ "mask-x-from": F() }],
|
|
1205
|
+
"mask-image-x-to-color": [{ "mask-x-to": F() }],
|
|
1206
|
+
"mask-image-y-from-pos": [{ "mask-y-from": W() }],
|
|
1207
|
+
"mask-image-y-to-pos": [{ "mask-y-to": W() }],
|
|
1208
|
+
"mask-image-y-from-color": [{ "mask-y-from": F() }],
|
|
1209
|
+
"mask-image-y-to-color": [{ "mask-y-to": F() }],
|
|
1210
|
+
"mask-image-radial": [{ "mask-radial": [isArbitraryVariable, isArbitraryValue] }],
|
|
1211
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": W() }],
|
|
1212
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": W() }],
|
|
1213
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": F() }],
|
|
1214
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": F() }],
|
|
1215
|
+
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1216
|
+
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1217
|
+
closest: ["side", "corner"],
|
|
1218
|
+
farthest: ["side", "corner"]
|
|
1219
|
+
}] }],
|
|
1220
|
+
"mask-image-radial-pos": [{ "mask-radial-at": x() }],
|
|
1221
|
+
"mask-image-conic-pos": [{ "mask-conic": [isNumber] }],
|
|
1222
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": W() }],
|
|
1223
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": W() }],
|
|
1224
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": F() }],
|
|
1225
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": F() }],
|
|
1226
|
+
"mask-mode": [{ mask: [
|
|
1227
|
+
"alpha",
|
|
1228
|
+
"luminance",
|
|
1229
|
+
"match"
|
|
1230
|
+
] }],
|
|
1231
|
+
"mask-origin": [{ "mask-origin": [
|
|
1232
|
+
"border",
|
|
1233
|
+
"padding",
|
|
1234
|
+
"content",
|
|
1235
|
+
"fill",
|
|
1236
|
+
"stroke",
|
|
1237
|
+
"view"
|
|
1238
|
+
] }],
|
|
1239
|
+
"mask-position": [{ mask: I() }],
|
|
1240
|
+
"mask-repeat": [{ mask: L() }],
|
|
1241
|
+
"mask-size": [{ mask: R() }],
|
|
1242
|
+
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1243
|
+
"mask-image": [{ mask: [
|
|
1244
|
+
"none",
|
|
1245
|
+
isArbitraryVariable,
|
|
1246
|
+
isArbitraryValue
|
|
1247
|
+
] }],
|
|
1248
|
+
filter: [{ filter: [
|
|
1249
|
+
"",
|
|
1250
|
+
"none",
|
|
1251
|
+
isArbitraryVariable,
|
|
1252
|
+
isArbitraryValue
|
|
1253
|
+
] }],
|
|
1254
|
+
blur: [{ blur: G() }],
|
|
1255
|
+
brightness: [{ brightness: [
|
|
1256
|
+
isNumber,
|
|
1257
|
+
isArbitraryVariable,
|
|
1258
|
+
isArbitraryValue
|
|
1259
|
+
] }],
|
|
1260
|
+
contrast: [{ contrast: [
|
|
1261
|
+
isNumber,
|
|
1262
|
+
isArbitraryVariable,
|
|
1263
|
+
isArbitraryValue
|
|
1264
|
+
] }],
|
|
1265
|
+
"drop-shadow": [{ "drop-shadow": [
|
|
1266
|
+
"",
|
|
1267
|
+
"none",
|
|
1268
|
+
m,
|
|
1269
|
+
isArbitraryVariableShadow,
|
|
1270
|
+
isArbitraryShadow
|
|
1271
|
+
] }],
|
|
1272
|
+
"drop-shadow-color": [{ "drop-shadow": F() }],
|
|
1273
|
+
grayscale: [{ grayscale: [
|
|
1274
|
+
"",
|
|
1275
|
+
isNumber,
|
|
1276
|
+
isArbitraryVariable,
|
|
1277
|
+
isArbitraryValue
|
|
1278
|
+
] }],
|
|
1279
|
+
"hue-rotate": [{ "hue-rotate": [
|
|
1280
|
+
isNumber,
|
|
1281
|
+
isArbitraryVariable,
|
|
1282
|
+
isArbitraryValue
|
|
1283
|
+
] }],
|
|
1284
|
+
invert: [{ invert: [
|
|
1285
|
+
"",
|
|
1286
|
+
isNumber,
|
|
1287
|
+
isArbitraryVariable,
|
|
1288
|
+
isArbitraryValue
|
|
1289
|
+
] }],
|
|
1290
|
+
saturate: [{ saturate: [
|
|
1291
|
+
isNumber,
|
|
1292
|
+
isArbitraryVariable,
|
|
1293
|
+
isArbitraryValue
|
|
1294
|
+
] }],
|
|
1295
|
+
sepia: [{ sepia: [
|
|
1296
|
+
"",
|
|
1297
|
+
isNumber,
|
|
1298
|
+
isArbitraryVariable,
|
|
1299
|
+
isArbitraryValue
|
|
1300
|
+
] }],
|
|
1301
|
+
"backdrop-filter": [{ "backdrop-filter": [
|
|
1302
|
+
"",
|
|
1303
|
+
"none",
|
|
1304
|
+
isArbitraryVariable,
|
|
1305
|
+
isArbitraryValue
|
|
1306
|
+
] }],
|
|
1307
|
+
"backdrop-blur": [{ "backdrop-blur": G() }],
|
|
1308
|
+
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1309
|
+
isNumber,
|
|
1310
|
+
isArbitraryVariable,
|
|
1311
|
+
isArbitraryValue
|
|
1312
|
+
] }],
|
|
1313
|
+
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1314
|
+
isNumber,
|
|
1315
|
+
isArbitraryVariable,
|
|
1316
|
+
isArbitraryValue
|
|
1317
|
+
] }],
|
|
1318
|
+
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1319
|
+
"",
|
|
1320
|
+
isNumber,
|
|
1321
|
+
isArbitraryVariable,
|
|
1322
|
+
isArbitraryValue
|
|
1323
|
+
] }],
|
|
1324
|
+
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1325
|
+
isNumber,
|
|
1326
|
+
isArbitraryVariable,
|
|
1327
|
+
isArbitraryValue
|
|
1328
|
+
] }],
|
|
1329
|
+
"backdrop-invert": [{ "backdrop-invert": [
|
|
1330
|
+
"",
|
|
1331
|
+
isNumber,
|
|
1332
|
+
isArbitraryVariable,
|
|
1333
|
+
isArbitraryValue
|
|
1334
|
+
] }],
|
|
1335
|
+
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1336
|
+
isNumber,
|
|
1337
|
+
isArbitraryVariable,
|
|
1338
|
+
isArbitraryValue
|
|
1339
|
+
] }],
|
|
1340
|
+
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1341
|
+
isNumber,
|
|
1342
|
+
isArbitraryVariable,
|
|
1343
|
+
isArbitraryValue
|
|
1344
|
+
] }],
|
|
1345
|
+
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1346
|
+
"",
|
|
1347
|
+
isNumber,
|
|
1348
|
+
isArbitraryVariable,
|
|
1349
|
+
isArbitraryValue
|
|
1350
|
+
] }],
|
|
1351
|
+
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1352
|
+
"border-spacing": [{ "border-spacing": T() }],
|
|
1353
|
+
"border-spacing-x": [{ "border-spacing-x": T() }],
|
|
1354
|
+
"border-spacing-y": [{ "border-spacing-y": T() }],
|
|
1355
|
+
"table-layout": [{ table: ["auto", "fixed"] }],
|
|
1356
|
+
caption: [{ caption: ["top", "bottom"] }],
|
|
1357
|
+
transition: [{ transition: [
|
|
1358
|
+
"",
|
|
1359
|
+
"all",
|
|
1360
|
+
"colors",
|
|
1361
|
+
"opacity",
|
|
1362
|
+
"shadow",
|
|
1363
|
+
"transform",
|
|
1364
|
+
"none",
|
|
1365
|
+
isArbitraryVariable,
|
|
1366
|
+
isArbitraryValue
|
|
1367
|
+
] }],
|
|
1368
|
+
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1369
|
+
duration: [{ duration: [
|
|
1370
|
+
isNumber,
|
|
1371
|
+
"initial",
|
|
1372
|
+
isArbitraryVariable,
|
|
1373
|
+
isArbitraryValue
|
|
1374
|
+
] }],
|
|
1375
|
+
ease: [{ ease: [
|
|
1376
|
+
"linear",
|
|
1377
|
+
"initial",
|
|
1378
|
+
v,
|
|
1379
|
+
isArbitraryVariable,
|
|
1380
|
+
isArbitraryValue
|
|
1381
|
+
] }],
|
|
1382
|
+
delay: [{ delay: [
|
|
1383
|
+
isNumber,
|
|
1384
|
+
isArbitraryVariable,
|
|
1385
|
+
isArbitraryValue
|
|
1386
|
+
] }],
|
|
1387
|
+
animate: [{ animate: [
|
|
1388
|
+
"none",
|
|
1389
|
+
y,
|
|
1390
|
+
isArbitraryVariable,
|
|
1391
|
+
isArbitraryValue
|
|
1392
|
+
] }],
|
|
1393
|
+
backface: [{ backface: ["hidden", "visible"] }],
|
|
1394
|
+
perspective: [{ perspective: [
|
|
1395
|
+
g,
|
|
1396
|
+
isArbitraryVariable,
|
|
1397
|
+
isArbitraryValue
|
|
1398
|
+
] }],
|
|
1399
|
+
"perspective-origin": [{ "perspective-origin": S() }],
|
|
1400
|
+
rotate: [{ rotate: K() }],
|
|
1401
|
+
"rotate-x": [{ "rotate-x": K() }],
|
|
1402
|
+
"rotate-y": [{ "rotate-y": K() }],
|
|
1403
|
+
"rotate-z": [{ "rotate-z": K() }],
|
|
1404
|
+
scale: [{ scale: q() }],
|
|
1405
|
+
"scale-x": [{ "scale-x": q() }],
|
|
1406
|
+
"scale-y": [{ "scale-y": q() }],
|
|
1407
|
+
"scale-z": [{ "scale-z": q() }],
|
|
1408
|
+
"scale-3d": ["scale-3d"],
|
|
1409
|
+
skew: [{ skew: J() }],
|
|
1410
|
+
"skew-x": [{ "skew-x": J() }],
|
|
1411
|
+
"skew-y": [{ "skew-y": J() }],
|
|
1412
|
+
transform: [{ transform: [
|
|
1413
|
+
isArbitraryVariable,
|
|
1414
|
+
isArbitraryValue,
|
|
1415
|
+
"",
|
|
1416
|
+
"none",
|
|
1417
|
+
"gpu",
|
|
1418
|
+
"cpu"
|
|
1419
|
+
] }],
|
|
1420
|
+
"transform-origin": [{ origin: S() }],
|
|
1421
|
+
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1422
|
+
translate: [{ translate: Y() }],
|
|
1423
|
+
"translate-x": [{ "translate-x": Y() }],
|
|
1424
|
+
"translate-y": [{ "translate-y": Y() }],
|
|
1425
|
+
"translate-z": [{ "translate-z": Y() }],
|
|
1426
|
+
"translate-none": ["translate-none"],
|
|
1427
|
+
accent: [{ accent: F() }],
|
|
1428
|
+
appearance: [{ appearance: ["none", "auto"] }],
|
|
1429
|
+
"caret-color": [{ caret: F() }],
|
|
1430
|
+
"color-scheme": [{ scheme: [
|
|
1431
|
+
"normal",
|
|
1432
|
+
"dark",
|
|
1433
|
+
"light",
|
|
1434
|
+
"light-dark",
|
|
1435
|
+
"only-dark",
|
|
1436
|
+
"only-light"
|
|
1437
|
+
] }],
|
|
1438
|
+
cursor: [{ cursor: [
|
|
1439
|
+
"auto",
|
|
1440
|
+
"default",
|
|
1441
|
+
"pointer",
|
|
1442
|
+
"wait",
|
|
1443
|
+
"text",
|
|
1444
|
+
"move",
|
|
1445
|
+
"help",
|
|
1446
|
+
"not-allowed",
|
|
1447
|
+
"none",
|
|
1448
|
+
"context-menu",
|
|
1449
|
+
"progress",
|
|
1450
|
+
"cell",
|
|
1451
|
+
"crosshair",
|
|
1452
|
+
"vertical-text",
|
|
1453
|
+
"alias",
|
|
1454
|
+
"copy",
|
|
1455
|
+
"no-drop",
|
|
1456
|
+
"grab",
|
|
1457
|
+
"grabbing",
|
|
1458
|
+
"all-scroll",
|
|
1459
|
+
"col-resize",
|
|
1460
|
+
"row-resize",
|
|
1461
|
+
"n-resize",
|
|
1462
|
+
"e-resize",
|
|
1463
|
+
"s-resize",
|
|
1464
|
+
"w-resize",
|
|
1465
|
+
"ne-resize",
|
|
1466
|
+
"nw-resize",
|
|
1467
|
+
"se-resize",
|
|
1468
|
+
"sw-resize",
|
|
1469
|
+
"ew-resize",
|
|
1470
|
+
"ns-resize",
|
|
1471
|
+
"nesw-resize",
|
|
1472
|
+
"nwse-resize",
|
|
1473
|
+
"zoom-in",
|
|
1474
|
+
"zoom-out",
|
|
1475
|
+
isArbitraryVariable,
|
|
1476
|
+
isArbitraryValue
|
|
1477
|
+
] }],
|
|
1478
|
+
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
1479
|
+
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
1480
|
+
resize: [{ resize: [
|
|
1481
|
+
"none",
|
|
1482
|
+
"",
|
|
1483
|
+
"y",
|
|
1484
|
+
"x"
|
|
1485
|
+
] }],
|
|
1486
|
+
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
1487
|
+
"scroll-m": [{ "scroll-m": T() }],
|
|
1488
|
+
"scroll-mx": [{ "scroll-mx": T() }],
|
|
1489
|
+
"scroll-my": [{ "scroll-my": T() }],
|
|
1490
|
+
"scroll-ms": [{ "scroll-ms": T() }],
|
|
1491
|
+
"scroll-me": [{ "scroll-me": T() }],
|
|
1492
|
+
"scroll-mt": [{ "scroll-mt": T() }],
|
|
1493
|
+
"scroll-mr": [{ "scroll-mr": T() }],
|
|
1494
|
+
"scroll-mb": [{ "scroll-mb": T() }],
|
|
1495
|
+
"scroll-ml": [{ "scroll-ml": T() }],
|
|
1496
|
+
"scroll-p": [{ "scroll-p": T() }],
|
|
1497
|
+
"scroll-px": [{ "scroll-px": T() }],
|
|
1498
|
+
"scroll-py": [{ "scroll-py": T() }],
|
|
1499
|
+
"scroll-ps": [{ "scroll-ps": T() }],
|
|
1500
|
+
"scroll-pe": [{ "scroll-pe": T() }],
|
|
1501
|
+
"scroll-pt": [{ "scroll-pt": T() }],
|
|
1502
|
+
"scroll-pr": [{ "scroll-pr": T() }],
|
|
1503
|
+
"scroll-pb": [{ "scroll-pb": T() }],
|
|
1504
|
+
"scroll-pl": [{ "scroll-pl": T() }],
|
|
1505
|
+
"snap-align": [{ snap: [
|
|
1506
|
+
"start",
|
|
1507
|
+
"end",
|
|
1508
|
+
"center",
|
|
1509
|
+
"align-none"
|
|
1510
|
+
] }],
|
|
1511
|
+
"snap-stop": [{ snap: ["normal", "always"] }],
|
|
1512
|
+
"snap-type": [{ snap: [
|
|
1513
|
+
"none",
|
|
1514
|
+
"x",
|
|
1515
|
+
"y",
|
|
1516
|
+
"both"
|
|
1517
|
+
] }],
|
|
1518
|
+
"snap-strictness": [{ snap: ["mandatory", "proximity"] }],
|
|
1519
|
+
touch: [{ touch: [
|
|
1520
|
+
"auto",
|
|
1521
|
+
"none",
|
|
1522
|
+
"manipulation"
|
|
1523
|
+
] }],
|
|
1524
|
+
"touch-x": [{ "touch-pan": [
|
|
1525
|
+
"x",
|
|
1526
|
+
"left",
|
|
1527
|
+
"right"
|
|
1528
|
+
] }],
|
|
1529
|
+
"touch-y": [{ "touch-pan": [
|
|
1530
|
+
"y",
|
|
1531
|
+
"up",
|
|
1532
|
+
"down"
|
|
1533
|
+
] }],
|
|
1534
|
+
"touch-pz": ["touch-pinch-zoom"],
|
|
1535
|
+
select: [{ select: [
|
|
1536
|
+
"none",
|
|
1537
|
+
"text",
|
|
1538
|
+
"all",
|
|
1539
|
+
"auto"
|
|
1540
|
+
] }],
|
|
1541
|
+
"will-change": [{ "will-change": [
|
|
1542
|
+
"auto",
|
|
1543
|
+
"scroll",
|
|
1544
|
+
"contents",
|
|
1545
|
+
"transform",
|
|
1546
|
+
isArbitraryVariable,
|
|
1547
|
+
isArbitraryValue
|
|
1548
|
+
] }],
|
|
1549
|
+
fill: [{ fill: ["none", ...F()] }],
|
|
1550
|
+
"stroke-w": [{ stroke: [
|
|
1551
|
+
isNumber,
|
|
1552
|
+
isArbitraryVariableLength,
|
|
1553
|
+
isArbitraryLength,
|
|
1554
|
+
isArbitraryNumber
|
|
1555
|
+
] }],
|
|
1556
|
+
stroke: [{ stroke: ["none", ...F()] }],
|
|
1557
|
+
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
1558
|
+
},
|
|
1559
|
+
conflictingClassGroups: {
|
|
1560
|
+
overflow: ["overflow-x", "overflow-y"],
|
|
1561
|
+
overscroll: ["overscroll-x", "overscroll-y"],
|
|
1562
|
+
inset: [
|
|
1563
|
+
"inset-x",
|
|
1564
|
+
"inset-y",
|
|
1565
|
+
"start",
|
|
1566
|
+
"end",
|
|
1567
|
+
"top",
|
|
1568
|
+
"right",
|
|
1569
|
+
"bottom",
|
|
1570
|
+
"left"
|
|
1571
|
+
],
|
|
1572
|
+
"inset-x": ["right", "left"],
|
|
1573
|
+
"inset-y": ["top", "bottom"],
|
|
1574
|
+
flex: [
|
|
1575
|
+
"basis",
|
|
1576
|
+
"grow",
|
|
1577
|
+
"shrink"
|
|
1578
|
+
],
|
|
1579
|
+
gap: ["gap-x", "gap-y"],
|
|
1580
|
+
p: [
|
|
1581
|
+
"px",
|
|
1582
|
+
"py",
|
|
1583
|
+
"ps",
|
|
1584
|
+
"pe",
|
|
1585
|
+
"pt",
|
|
1586
|
+
"pr",
|
|
1587
|
+
"pb",
|
|
1588
|
+
"pl"
|
|
1589
|
+
],
|
|
1590
|
+
px: ["pr", "pl"],
|
|
1591
|
+
py: ["pt", "pb"],
|
|
1592
|
+
m: [
|
|
1593
|
+
"mx",
|
|
1594
|
+
"my",
|
|
1595
|
+
"ms",
|
|
1596
|
+
"me",
|
|
1597
|
+
"mt",
|
|
1598
|
+
"mr",
|
|
1599
|
+
"mb",
|
|
1600
|
+
"ml"
|
|
1601
|
+
],
|
|
1602
|
+
mx: ["mr", "ml"],
|
|
1603
|
+
my: ["mt", "mb"],
|
|
1604
|
+
size: ["w", "h"],
|
|
1605
|
+
"font-size": ["leading"],
|
|
1606
|
+
"fvn-normal": [
|
|
1607
|
+
"fvn-ordinal",
|
|
1608
|
+
"fvn-slashed-zero",
|
|
1609
|
+
"fvn-figure",
|
|
1610
|
+
"fvn-spacing",
|
|
1611
|
+
"fvn-fraction"
|
|
1612
|
+
],
|
|
1613
|
+
"fvn-ordinal": ["fvn-normal"],
|
|
1614
|
+
"fvn-slashed-zero": ["fvn-normal"],
|
|
1615
|
+
"fvn-figure": ["fvn-normal"],
|
|
1616
|
+
"fvn-spacing": ["fvn-normal"],
|
|
1617
|
+
"fvn-fraction": ["fvn-normal"],
|
|
1618
|
+
"line-clamp": ["display", "overflow"],
|
|
1619
|
+
rounded: [
|
|
1620
|
+
"rounded-s",
|
|
1621
|
+
"rounded-e",
|
|
1622
|
+
"rounded-t",
|
|
1623
|
+
"rounded-r",
|
|
1624
|
+
"rounded-b",
|
|
1625
|
+
"rounded-l",
|
|
1626
|
+
"rounded-ss",
|
|
1627
|
+
"rounded-se",
|
|
1628
|
+
"rounded-ee",
|
|
1629
|
+
"rounded-es",
|
|
1630
|
+
"rounded-tl",
|
|
1631
|
+
"rounded-tr",
|
|
1632
|
+
"rounded-br",
|
|
1633
|
+
"rounded-bl"
|
|
1634
|
+
],
|
|
1635
|
+
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
1636
|
+
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
1637
|
+
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
1638
|
+
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
1639
|
+
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
1640
|
+
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
1641
|
+
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
1642
|
+
"border-w": [
|
|
1643
|
+
"border-w-x",
|
|
1644
|
+
"border-w-y",
|
|
1645
|
+
"border-w-s",
|
|
1646
|
+
"border-w-e",
|
|
1647
|
+
"border-w-t",
|
|
1648
|
+
"border-w-r",
|
|
1649
|
+
"border-w-b",
|
|
1650
|
+
"border-w-l"
|
|
1651
|
+
],
|
|
1652
|
+
"border-w-x": ["border-w-r", "border-w-l"],
|
|
1653
|
+
"border-w-y": ["border-w-t", "border-w-b"],
|
|
1654
|
+
"border-color": [
|
|
1655
|
+
"border-color-x",
|
|
1656
|
+
"border-color-y",
|
|
1657
|
+
"border-color-s",
|
|
1658
|
+
"border-color-e",
|
|
1659
|
+
"border-color-t",
|
|
1660
|
+
"border-color-r",
|
|
1661
|
+
"border-color-b",
|
|
1662
|
+
"border-color-l"
|
|
1663
|
+
],
|
|
1664
|
+
"border-color-x": ["border-color-r", "border-color-l"],
|
|
1665
|
+
"border-color-y": ["border-color-t", "border-color-b"],
|
|
1666
|
+
translate: [
|
|
1667
|
+
"translate-x",
|
|
1668
|
+
"translate-y",
|
|
1669
|
+
"translate-none"
|
|
1670
|
+
],
|
|
1671
|
+
"translate-none": [
|
|
1672
|
+
"translate",
|
|
1673
|
+
"translate-x",
|
|
1674
|
+
"translate-y",
|
|
1675
|
+
"translate-z"
|
|
1676
|
+
],
|
|
1677
|
+
"scroll-m": [
|
|
1678
|
+
"scroll-mx",
|
|
1679
|
+
"scroll-my",
|
|
1680
|
+
"scroll-ms",
|
|
1681
|
+
"scroll-me",
|
|
1682
|
+
"scroll-mt",
|
|
1683
|
+
"scroll-mr",
|
|
1684
|
+
"scroll-mb",
|
|
1685
|
+
"scroll-ml"
|
|
1686
|
+
],
|
|
1687
|
+
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
1688
|
+
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
1689
|
+
"scroll-p": [
|
|
1690
|
+
"scroll-px",
|
|
1691
|
+
"scroll-py",
|
|
1692
|
+
"scroll-ps",
|
|
1693
|
+
"scroll-pe",
|
|
1694
|
+
"scroll-pt",
|
|
1695
|
+
"scroll-pr",
|
|
1696
|
+
"scroll-pb",
|
|
1697
|
+
"scroll-pl"
|
|
1698
|
+
],
|
|
1699
|
+
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
1700
|
+
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
1701
|
+
touch: [
|
|
1702
|
+
"touch-x",
|
|
1703
|
+
"touch-y",
|
|
1704
|
+
"touch-pz"
|
|
1705
|
+
],
|
|
1706
|
+
"touch-x": ["touch"],
|
|
1707
|
+
"touch-y": ["touch"],
|
|
1708
|
+
"touch-pz": ["touch"]
|
|
1709
|
+
},
|
|
1710
|
+
conflictingClassGroupModifiers: { "font-size": ["leading"] },
|
|
1711
|
+
orderSensitiveModifiers: [
|
|
1712
|
+
"*",
|
|
1713
|
+
"**",
|
|
1714
|
+
"after",
|
|
1715
|
+
"backdrop",
|
|
1716
|
+
"before",
|
|
1717
|
+
"details-content",
|
|
1718
|
+
"file",
|
|
1719
|
+
"first-letter",
|
|
1720
|
+
"first-line",
|
|
1721
|
+
"marker",
|
|
1722
|
+
"placeholder",
|
|
1723
|
+
"selection"
|
|
1724
|
+
]
|
|
1725
|
+
};
|
|
1726
|
+
});
|
|
1727
|
+
function cn(...e) {
|
|
1728
|
+
return twMerge(clsx(e));
|
|
1729
|
+
}
|
|
1730
|
+
var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
1731
|
+
variants: {
|
|
1732
|
+
variant: {
|
|
1733
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
1734
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
1735
|
+
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
1736
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
1737
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
1738
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
1739
|
+
},
|
|
1740
|
+
size: {
|
|
1741
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
1742
|
+
xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
1743
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
1744
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
1745
|
+
icon: "size-9",
|
|
1746
|
+
"icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
|
|
1747
|
+
"icon-sm": "size-8",
|
|
1748
|
+
"icon-lg": "size-10"
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
defaultVariants: {
|
|
1752
|
+
variant: "default",
|
|
1753
|
+
size: "default"
|
|
1754
|
+
}
|
|
1755
|
+
});
|
|
1756
|
+
function Button({ className: e, variant: n = "default", size: i = "default", asChild: a = !1, ...o }) {
|
|
1757
|
+
return /* @__PURE__ */ jsx(a ? Slot : "button", {
|
|
1758
|
+
"data-slot": "button",
|
|
1759
|
+
"data-variant": n,
|
|
1760
|
+
"data-size": i,
|
|
1761
|
+
className: cn(buttonVariants({
|
|
1762
|
+
variant: n,
|
|
1763
|
+
size: i,
|
|
1764
|
+
className: e
|
|
1765
|
+
})),
|
|
1766
|
+
...o
|
|
1767
|
+
});
|
|
1768
|
+
}
|
|
1769
|
+
export { Button, buttonVariants };
|