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