@stackloop/ui 1.0.10 → 2.0.1
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 +230 -2
- package/dist/Select.d.ts +20 -0
- package/dist/Spinner.d.ts +8 -0
- package/dist/Toast.d.ts +26 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1036 -739
- package/dist/index.js.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import { jsxs as d, jsx as r, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as d, jsx as r, Fragment as me } from "react/jsx-runtime";
|
|
2
|
+
import Le, { forwardRef as ae, useState as D, useRef as H, useEffect as Z, createContext as er, useCallback as ze, useContext as rr } from "react";
|
|
3
3
|
import { motion as g, AnimatePresence as Q } from "framer-motion";
|
|
4
|
-
import { Loader2 as
|
|
5
|
-
function
|
|
4
|
+
import { Loader2 as tr, EyeOff as or, Eye as ar, Check as Oe, X as $, ChevronDown as Ee, Search as Fe, Calendar as sr, ChevronLeft as Pe, ChevronRight as Ge, ArrowUp as nr, ArrowDown as ir, ChevronsUpDown as lr, Plus as cr, WifiOff as ge, Wifi as Te, Info as dr, AlertTriangle as mr, AlertCircle as ur, CheckCircle as pr, Camera as br, Upload as hr, Play as fr, Pause as gr, Mic as yr, Square as xr, Trash2 as wr, Image as vr, FileText as Me } from "lucide-react";
|
|
5
|
+
function Ue(e) {
|
|
6
6
|
var t, a, o = "";
|
|
7
7
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
8
8
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
9
9
|
var n = e.length;
|
|
10
|
-
for (t = 0; t < n; t++) e[t] && (a =
|
|
10
|
+
for (t = 0; t < n; t++) e[t] && (a = Ue(e[t])) && (o && (o += " "), o += a);
|
|
11
11
|
} else for (a in e) e[a] && (o && (o += " "), o += a);
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
for (var e, t, a = 0, o = "", n = arguments.length; a < n; a++) (e = arguments[a]) && (t =
|
|
14
|
+
function Nr() {
|
|
15
|
+
for (var e, t, a = 0, o = "", n = arguments.length; a < n; a++) (e = arguments[a]) && (t = Ue(e)) && (o && (o += " "), o += t);
|
|
16
16
|
return o;
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const kr = (e, t) => {
|
|
19
19
|
const a = new Array(e.length + t.length);
|
|
20
20
|
for (let o = 0; o < e.length; o++)
|
|
21
21
|
a[o] = e[o];
|
|
22
22
|
for (let o = 0; o < t.length; o++)
|
|
23
23
|
a[e.length + o] = t[o];
|
|
24
24
|
return a;
|
|
25
|
-
},
|
|
25
|
+
}, Cr = (e, t) => ({
|
|
26
26
|
classGroupId: e,
|
|
27
27
|
validator: t
|
|
28
|
-
}),
|
|
28
|
+
}), Be = (e = /* @__PURE__ */ new Map(), t = null, a) => ({
|
|
29
29
|
nextPart: e,
|
|
30
30
|
validators: t,
|
|
31
31
|
classGroupId: a
|
|
32
|
-
}),
|
|
33
|
-
const t =
|
|
32
|
+
}), ue = "-", Re = [], Sr = "arbitrary..", zr = (e) => {
|
|
33
|
+
const t = Mr(e), {
|
|
34
34
|
conflictingClassGroups: a,
|
|
35
35
|
conflictingClassGroupModifiers: o
|
|
36
36
|
} = e;
|
|
37
37
|
return {
|
|
38
38
|
getClassGroupId: (s) => {
|
|
39
39
|
if (s.startsWith("[") && s.endsWith("]"))
|
|
40
|
-
return
|
|
41
|
-
const c = s.split(
|
|
42
|
-
return
|
|
40
|
+
return Tr(s);
|
|
41
|
+
const c = s.split(ue), i = c[0] === "" && c.length > 1 ? 1 : 0;
|
|
42
|
+
return $e(c, i, t);
|
|
43
43
|
},
|
|
44
44
|
getConflictingClassGroupIds: (s, c) => {
|
|
45
45
|
if (c) {
|
|
46
46
|
const i = o[s], m = a[s];
|
|
47
|
-
return i ? m ?
|
|
47
|
+
return i ? m ? kr(m, i) : i : m || Re;
|
|
48
48
|
}
|
|
49
49
|
return a[s] || Re;
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
},
|
|
52
|
+
}, $e = (e, t, a) => {
|
|
53
53
|
if (e.length - t === 0)
|
|
54
54
|
return a.classGroupId;
|
|
55
55
|
const n = e[t], l = a.nextPart.get(n);
|
|
56
56
|
if (l) {
|
|
57
|
-
const m =
|
|
57
|
+
const m = $e(e, t + 1, l);
|
|
58
58
|
if (m) return m;
|
|
59
59
|
}
|
|
60
60
|
const s = a.validators;
|
|
61
61
|
if (s === null)
|
|
62
62
|
return;
|
|
63
|
-
const c = t === 0 ? e.join(
|
|
63
|
+
const c = t === 0 ? e.join(ue) : e.slice(t).join(ue), i = s.length;
|
|
64
64
|
for (let m = 0; m < i; m++) {
|
|
65
65
|
const x = s[m];
|
|
66
66
|
if (x.validator(c))
|
|
67
67
|
return x.classGroupId;
|
|
68
68
|
}
|
|
69
|
-
},
|
|
69
|
+
}, Tr = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
70
70
|
const t = e.slice(1, -1), a = t.indexOf(":"), o = t.slice(0, a);
|
|
71
|
-
return o ?
|
|
72
|
-
})(),
|
|
71
|
+
return o ? Sr + o : void 0;
|
|
72
|
+
})(), Mr = (e) => {
|
|
73
73
|
const {
|
|
74
74
|
theme: t,
|
|
75
75
|
classGroups: a
|
|
76
76
|
} = e;
|
|
77
|
-
return
|
|
78
|
-
},
|
|
79
|
-
const a =
|
|
77
|
+
return Rr(a, t);
|
|
78
|
+
}, Rr = (e, t) => {
|
|
79
|
+
const a = Be();
|
|
80
80
|
for (const o in e) {
|
|
81
81
|
const n = e[o];
|
|
82
82
|
we(n, a, o, t);
|
|
@@ -86,43 +86,43 @@ const pr = (e, t) => {
|
|
|
86
86
|
const n = e.length;
|
|
87
87
|
for (let l = 0; l < n; l++) {
|
|
88
88
|
const s = e[l];
|
|
89
|
-
|
|
89
|
+
Ar(s, t, a, o);
|
|
90
90
|
}
|
|
91
|
-
},
|
|
91
|
+
}, Ar = (e, t, a, o) => {
|
|
92
92
|
if (typeof e == "string") {
|
|
93
|
-
|
|
93
|
+
Ir(e, t, a);
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
if (typeof e == "function") {
|
|
97
|
-
|
|
97
|
+
jr(e, t, a, o);
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
const o = e === "" ? t :
|
|
100
|
+
Dr(e, t, a, o);
|
|
101
|
+
}, Ir = (e, t, a) => {
|
|
102
|
+
const o = e === "" ? t : Ve(t, e);
|
|
103
103
|
o.classGroupId = a;
|
|
104
|
-
},
|
|
105
|
-
if (
|
|
104
|
+
}, jr = (e, t, a, o) => {
|
|
105
|
+
if (Lr(e)) {
|
|
106
106
|
we(e(o), t, a, o);
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
110
|
-
},
|
|
109
|
+
t.validators === null && (t.validators = []), t.validators.push(Cr(a, e));
|
|
110
|
+
}, Dr = (e, t, a, o) => {
|
|
111
111
|
const n = Object.entries(e), l = n.length;
|
|
112
112
|
for (let s = 0; s < l; s++) {
|
|
113
113
|
const [c, i] = n[s];
|
|
114
|
-
we(i,
|
|
114
|
+
we(i, Ve(t, c), a, o);
|
|
115
115
|
}
|
|
116
|
-
},
|
|
116
|
+
}, Ve = (e, t) => {
|
|
117
117
|
let a = e;
|
|
118
|
-
const o = t.split(
|
|
118
|
+
const o = t.split(ue), n = o.length;
|
|
119
119
|
for (let l = 0; l < n; l++) {
|
|
120
120
|
const s = o[l];
|
|
121
121
|
let c = a.nextPart.get(s);
|
|
122
|
-
c || (c =
|
|
122
|
+
c || (c = Be(), a.nextPart.set(s, c)), a = c;
|
|
123
123
|
}
|
|
124
124
|
return a;
|
|
125
|
-
},
|
|
125
|
+
}, Lr = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Or = (e) => {
|
|
126
126
|
if (e < 1)
|
|
127
127
|
return {
|
|
128
128
|
get: () => {
|
|
@@ -146,13 +146,13 @@ const pr = (e, t) => {
|
|
|
146
146
|
l in a ? a[l] = s : n(l, s);
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
|
-
}, ye = "!",
|
|
149
|
+
}, ye = "!", Ae = ":", Er = [], Ie = (e, t, a, o, n) => ({
|
|
150
150
|
modifiers: e,
|
|
151
151
|
hasImportantModifier: t,
|
|
152
152
|
baseClassName: a,
|
|
153
153
|
maybePostfixModifierPosition: o,
|
|
154
154
|
isExternal: n
|
|
155
|
-
}),
|
|
155
|
+
}), Fr = (e) => {
|
|
156
156
|
const {
|
|
157
157
|
prefix: t,
|
|
158
158
|
experimentalParseClassName: a
|
|
@@ -161,35 +161,35 @@ const pr = (e, t) => {
|
|
|
161
161
|
const l = [];
|
|
162
162
|
let s = 0, c = 0, i = 0, m;
|
|
163
163
|
const x = n.length;
|
|
164
|
-
for (let
|
|
165
|
-
const M = n[
|
|
164
|
+
for (let w = 0; w < x; w++) {
|
|
165
|
+
const M = n[w];
|
|
166
166
|
if (s === 0 && c === 0) {
|
|
167
|
-
if (M ===
|
|
168
|
-
l.push(n.slice(i,
|
|
167
|
+
if (M === Ae) {
|
|
168
|
+
l.push(n.slice(i, w)), i = w + 1;
|
|
169
169
|
continue;
|
|
170
170
|
}
|
|
171
171
|
if (M === "/") {
|
|
172
|
-
m =
|
|
172
|
+
m = w;
|
|
173
173
|
continue;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
M === "[" ? s++ : M === "]" ? s-- : M === "(" ? c++ : M === ")" && c--;
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
let
|
|
180
|
-
|
|
178
|
+
const y = l.length === 0 ? n : n.slice(i);
|
|
179
|
+
let h = y, N = !1;
|
|
180
|
+
y.endsWith(ye) ? (h = y.slice(0, -1), N = !0) : (
|
|
181
181
|
/**
|
|
182
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
183
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
184
184
|
*/
|
|
185
|
-
|
|
185
|
+
y.startsWith(ye) && (h = y.slice(1), N = !0)
|
|
186
186
|
);
|
|
187
|
-
const
|
|
188
|
-
return
|
|
187
|
+
const k = m && m > i ? m - i : void 0;
|
|
188
|
+
return Ie(l, N, h, k);
|
|
189
189
|
};
|
|
190
190
|
if (t) {
|
|
191
|
-
const n = t +
|
|
192
|
-
o = (s) => s.startsWith(n) ? l(s.slice(n.length)) :
|
|
191
|
+
const n = t + Ae, l = o;
|
|
192
|
+
o = (s) => s.startsWith(n) ? l(s.slice(n.length)) : Ie(Er, !1, s, void 0, !0);
|
|
193
193
|
}
|
|
194
194
|
if (a) {
|
|
195
195
|
const n = o;
|
|
@@ -199,7 +199,7 @@ const pr = (e, t) => {
|
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
return o;
|
|
202
|
-
},
|
|
202
|
+
}, Pr = (e) => {
|
|
203
203
|
const t = /* @__PURE__ */ new Map();
|
|
204
204
|
return e.orderSensitiveModifiers.forEach((a, o) => {
|
|
205
205
|
t.set(a, 1e6 + o);
|
|
@@ -212,96 +212,96 @@ const pr = (e, t) => {
|
|
|
212
212
|
}
|
|
213
213
|
return n.length > 0 && (n.sort(), o.push(...n)), o;
|
|
214
214
|
};
|
|
215
|
-
},
|
|
216
|
-
cache:
|
|
217
|
-
parseClassName:
|
|
218
|
-
sortModifiers:
|
|
219
|
-
...
|
|
220
|
-
}),
|
|
215
|
+
}, Gr = (e) => ({
|
|
216
|
+
cache: Or(e.cacheSize),
|
|
217
|
+
parseClassName: Fr(e),
|
|
218
|
+
sortModifiers: Pr(e),
|
|
219
|
+
...zr(e)
|
|
220
|
+
}), Ur = /\s+/, Br = (e, t) => {
|
|
221
221
|
const {
|
|
222
222
|
parseClassName: a,
|
|
223
223
|
getClassGroupId: o,
|
|
224
224
|
getConflictingClassGroupIds: n,
|
|
225
225
|
sortModifiers: l
|
|
226
|
-
} = t, s = [], c = e.trim().split(
|
|
226
|
+
} = t, s = [], c = e.trim().split(Ur);
|
|
227
227
|
let i = "";
|
|
228
228
|
for (let m = c.length - 1; m >= 0; m -= 1) {
|
|
229
229
|
const x = c[m], {
|
|
230
|
-
isExternal:
|
|
231
|
-
modifiers:
|
|
232
|
-
hasImportantModifier:
|
|
233
|
-
baseClassName:
|
|
234
|
-
maybePostfixModifierPosition:
|
|
230
|
+
isExternal: y,
|
|
231
|
+
modifiers: h,
|
|
232
|
+
hasImportantModifier: N,
|
|
233
|
+
baseClassName: k,
|
|
234
|
+
maybePostfixModifierPosition: w
|
|
235
235
|
} = a(x);
|
|
236
|
-
if (
|
|
236
|
+
if (y) {
|
|
237
237
|
i = x + (i.length > 0 ? " " + i : i);
|
|
238
238
|
continue;
|
|
239
239
|
}
|
|
240
|
-
let M = !!
|
|
241
|
-
if (!
|
|
240
|
+
let M = !!w, j = o(M ? k.substring(0, w) : k);
|
|
241
|
+
if (!j) {
|
|
242
242
|
if (!M) {
|
|
243
243
|
i = x + (i.length > 0 ? " " + i : i);
|
|
244
244
|
continue;
|
|
245
245
|
}
|
|
246
|
-
if (
|
|
246
|
+
if (j = o(k), !j) {
|
|
247
247
|
i = x + (i.length > 0 ? " " + i : i);
|
|
248
248
|
continue;
|
|
249
249
|
}
|
|
250
250
|
M = !1;
|
|
251
251
|
}
|
|
252
|
-
const
|
|
253
|
-
if (s.indexOf(
|
|
252
|
+
const L = h.length === 0 ? "" : h.length === 1 ? h[0] : l(h).join(":"), T = N ? L + ye : L, F = T + j;
|
|
253
|
+
if (s.indexOf(F) > -1)
|
|
254
254
|
continue;
|
|
255
|
-
s.push(
|
|
256
|
-
const
|
|
257
|
-
for (let
|
|
258
|
-
const
|
|
259
|
-
s.push(
|
|
255
|
+
s.push(F);
|
|
256
|
+
const P = n(j, M);
|
|
257
|
+
for (let S = 0; S < P.length; ++S) {
|
|
258
|
+
const O = P[S];
|
|
259
|
+
s.push(T + O);
|
|
260
260
|
}
|
|
261
261
|
i = x + (i.length > 0 ? " " + i : i);
|
|
262
262
|
}
|
|
263
263
|
return i;
|
|
264
|
-
},
|
|
264
|
+
}, $r = (...e) => {
|
|
265
265
|
let t = 0, a, o, n = "";
|
|
266
266
|
for (; t < e.length; )
|
|
267
|
-
(a = e[t++]) && (o =
|
|
267
|
+
(a = e[t++]) && (o = _e(a)) && (n && (n += " "), n += o);
|
|
268
268
|
return n;
|
|
269
|
-
},
|
|
269
|
+
}, _e = (e) => {
|
|
270
270
|
if (typeof e == "string")
|
|
271
271
|
return e;
|
|
272
272
|
let t, a = "";
|
|
273
273
|
for (let o = 0; o < e.length; o++)
|
|
274
|
-
e[o] && (t =
|
|
274
|
+
e[o] && (t = _e(e[o])) && (a && (a += " "), a += t);
|
|
275
275
|
return a;
|
|
276
|
-
},
|
|
276
|
+
}, Vr = (e, ...t) => {
|
|
277
277
|
let a, o, n, l;
|
|
278
278
|
const s = (i) => {
|
|
279
|
-
const m = t.reduce((x,
|
|
280
|
-
return a =
|
|
279
|
+
const m = t.reduce((x, y) => y(x), e());
|
|
280
|
+
return a = Gr(m), o = a.cache.get, n = a.cache.set, l = c, c(i);
|
|
281
281
|
}, c = (i) => {
|
|
282
282
|
const m = o(i);
|
|
283
283
|
if (m)
|
|
284
284
|
return m;
|
|
285
|
-
const x =
|
|
285
|
+
const x = Br(i, a);
|
|
286
286
|
return n(i, x), x;
|
|
287
287
|
};
|
|
288
|
-
return l = s, (...i) => l(
|
|
289
|
-
},
|
|
290
|
-
const t = (a) => a[e] ||
|
|
288
|
+
return l = s, (...i) => l($r(...i));
|
|
289
|
+
}, _r = [], R = (e) => {
|
|
290
|
+
const t = (a) => a[e] || _r;
|
|
291
291
|
return t.isThemeGetter = !0, t;
|
|
292
|
-
},
|
|
292
|
+
}, We = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Wr = /^\d+\/\d+$/, Yr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Hr = /\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$/, qr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Jr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, X = (e) => Wr.test(e), z = (e) => !!e && !Number.isNaN(Number(e)), J = (e) => !!e && Number.isInteger(Number(e)), he = (e) => e.endsWith("%") && z(e.slice(0, -1)), Y = (e) => Yr.test(e), Kr = () => !0, Xr = (e) => (
|
|
293
293
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
294
294
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
295
295
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
296
|
-
|
|
297
|
-
),
|
|
298
|
-
const o =
|
|
296
|
+
Hr.test(e) && !qr.test(e)
|
|
297
|
+
), He = () => !1, Zr = (e) => Jr.test(e), et = (e) => Qr.test(e), rt = (e) => !p(e) && !b(e), tt = (e) => ee(e, Qe, He), p = (e) => We.test(e), K = (e) => ee(e, Ke, Xr), fe = (e) => ee(e, it, z), je = (e) => ee(e, qe, He), ot = (e) => ee(e, Je, et), ce = (e) => ee(e, Xe, Zr), b = (e) => Ye.test(e), oe = (e) => re(e, Ke), at = (e) => re(e, lt), De = (e) => re(e, qe), st = (e) => re(e, Qe), nt = (e) => re(e, Je), de = (e) => re(e, Xe, !0), ee = (e, t, a) => {
|
|
298
|
+
const o = We.exec(e);
|
|
299
299
|
return o ? o[1] ? t(o[1]) : a(o[2]) : !1;
|
|
300
|
-
},
|
|
301
|
-
const o =
|
|
300
|
+
}, re = (e, t, a = !1) => {
|
|
301
|
+
const o = Ye.exec(e);
|
|
302
302
|
return o ? o[1] ? t(o[1]) : a : !1;
|
|
303
|
-
},
|
|
304
|
-
const e =
|
|
303
|
+
}, qe = (e) => e === "position" || e === "percentage", Je = (e) => e === "image" || e === "url", Qe = (e) => e === "length" || e === "size" || e === "bg-size", Ke = (e) => e === "length", it = (e) => e === "number", lt = (e) => e === "family-name", Xe = (e) => e === "shadow", ct = () => {
|
|
304
|
+
const e = R("color"), t = R("font"), a = R("text"), o = R("font-weight"), n = R("tracking"), l = R("leading"), s = R("breakpoint"), c = R("container"), i = R("spacing"), m = R("radius"), x = R("shadow"), y = R("inset-shadow"), h = R("text-shadow"), N = R("drop-shadow"), k = R("blur"), w = R("perspective"), M = R("aspect"), j = R("ease"), L = R("animate"), T = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [
|
|
305
305
|
"center",
|
|
306
306
|
"top",
|
|
307
307
|
"bottom",
|
|
@@ -319,51 +319,51 @@ const pr = (e, t) => {
|
|
|
319
319
|
"bottom-left",
|
|
320
320
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
321
321
|
"left-bottom"
|
|
322
|
-
],
|
|
323
|
-
span: ["full",
|
|
324
|
-
},
|
|
325
|
-
position: [
|
|
326
|
-
}],
|
|
322
|
+
], P = () => [...F(), b, p], S = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], f = () => [b, p, i], C = () => [X, "full", "auto", ...f()], A = () => [J, "none", "subgrid", b, p], V = () => ["auto", {
|
|
323
|
+
span: ["full", J, b, p]
|
|
324
|
+
}, J, b, p], _ = () => [J, "auto", b, p], W = () => ["auto", "min", "max", "fr", b, p], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], U = () => ["auto", ...f()], G = () => [X, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], v = () => [e, b, p], ve = () => [...F(), De, je, {
|
|
325
|
+
position: [b, p]
|
|
326
|
+
}], Ne = () => ["no-repeat", {
|
|
327
327
|
repeat: ["", "x", "y", "space", "round"]
|
|
328
|
-
}],
|
|
329
|
-
size: [
|
|
330
|
-
}], pe = () => [he,
|
|
328
|
+
}], ke = () => ["auto", "cover", "contain", st, tt, {
|
|
329
|
+
size: [b, p]
|
|
330
|
+
}], pe = () => [he, oe, K], E = () => [
|
|
331
331
|
// Deprecated since Tailwind CSS v4.0.0
|
|
332
332
|
"",
|
|
333
333
|
"none",
|
|
334
334
|
"full",
|
|
335
335
|
m,
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
],
|
|
336
|
+
b,
|
|
337
|
+
p
|
|
338
|
+
], B = () => ["", z, oe, K], se = () => ["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"], I = () => [z, he, De, je], Se = () => [
|
|
339
339
|
// Deprecated since Tailwind CSS v4.0.0
|
|
340
340
|
"",
|
|
341
341
|
"none",
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
],
|
|
342
|
+
k,
|
|
343
|
+
b,
|
|
344
|
+
p
|
|
345
|
+
], ne = () => ["none", z, b, p], ie = () => ["none", z, b, p], be = () => [z, b, p], le = () => [X, "full", ...f()];
|
|
346
346
|
return {
|
|
347
347
|
cacheSize: 500,
|
|
348
348
|
theme: {
|
|
349
349
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
350
350
|
aspect: ["video"],
|
|
351
|
-
blur: [
|
|
352
|
-
breakpoint: [
|
|
353
|
-
color: [
|
|
354
|
-
container: [
|
|
355
|
-
"drop-shadow": [
|
|
351
|
+
blur: [Y],
|
|
352
|
+
breakpoint: [Y],
|
|
353
|
+
color: [Kr],
|
|
354
|
+
container: [Y],
|
|
355
|
+
"drop-shadow": [Y],
|
|
356
356
|
ease: ["in", "out", "in-out"],
|
|
357
|
-
font: [
|
|
357
|
+
font: [rt],
|
|
358
358
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
359
|
-
"inset-shadow": [
|
|
359
|
+
"inset-shadow": [Y],
|
|
360
360
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
361
361
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
362
|
-
radius: [
|
|
363
|
-
shadow: [
|
|
362
|
+
radius: [Y],
|
|
363
|
+
shadow: [Y],
|
|
364
364
|
spacing: ["px", z],
|
|
365
|
-
text: [
|
|
366
|
-
"text-shadow": [
|
|
365
|
+
text: [Y],
|
|
366
|
+
"text-shadow": [Y],
|
|
367
367
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
368
368
|
},
|
|
369
369
|
classGroups: {
|
|
@@ -375,7 +375,7 @@ const pr = (e, t) => {
|
|
|
375
375
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
376
376
|
*/
|
|
377
377
|
aspect: [{
|
|
378
|
-
aspect: ["auto", "square", X,
|
|
378
|
+
aspect: ["auto", "square", X, p, b, M]
|
|
379
379
|
}],
|
|
380
380
|
/**
|
|
381
381
|
* Container
|
|
@@ -388,21 +388,21 @@ const pr = (e, t) => {
|
|
|
388
388
|
* @see https://tailwindcss.com/docs/columns
|
|
389
389
|
*/
|
|
390
390
|
columns: [{
|
|
391
|
-
columns: [z,
|
|
391
|
+
columns: [z, p, b, c]
|
|
392
392
|
}],
|
|
393
393
|
/**
|
|
394
394
|
* Break After
|
|
395
395
|
* @see https://tailwindcss.com/docs/break-after
|
|
396
396
|
*/
|
|
397
397
|
"break-after": [{
|
|
398
|
-
"break-after":
|
|
398
|
+
"break-after": T()
|
|
399
399
|
}],
|
|
400
400
|
/**
|
|
401
401
|
* Break Before
|
|
402
402
|
* @see https://tailwindcss.com/docs/break-before
|
|
403
403
|
*/
|
|
404
404
|
"break-before": [{
|
|
405
|
-
"break-before":
|
|
405
|
+
"break-before": T()
|
|
406
406
|
}],
|
|
407
407
|
/**
|
|
408
408
|
* Break Inside
|
|
@@ -466,49 +466,49 @@ const pr = (e, t) => {
|
|
|
466
466
|
* @see https://tailwindcss.com/docs/object-position
|
|
467
467
|
*/
|
|
468
468
|
"object-position": [{
|
|
469
|
-
object:
|
|
469
|
+
object: P()
|
|
470
470
|
}],
|
|
471
471
|
/**
|
|
472
472
|
* Overflow
|
|
473
473
|
* @see https://tailwindcss.com/docs/overflow
|
|
474
474
|
*/
|
|
475
475
|
overflow: [{
|
|
476
|
-
overflow:
|
|
476
|
+
overflow: S()
|
|
477
477
|
}],
|
|
478
478
|
/**
|
|
479
479
|
* Overflow X
|
|
480
480
|
* @see https://tailwindcss.com/docs/overflow
|
|
481
481
|
*/
|
|
482
482
|
"overflow-x": [{
|
|
483
|
-
"overflow-x":
|
|
483
|
+
"overflow-x": S()
|
|
484
484
|
}],
|
|
485
485
|
/**
|
|
486
486
|
* Overflow Y
|
|
487
487
|
* @see https://tailwindcss.com/docs/overflow
|
|
488
488
|
*/
|
|
489
489
|
"overflow-y": [{
|
|
490
|
-
"overflow-y":
|
|
490
|
+
"overflow-y": S()
|
|
491
491
|
}],
|
|
492
492
|
/**
|
|
493
493
|
* Overscroll Behavior
|
|
494
494
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
495
495
|
*/
|
|
496
496
|
overscroll: [{
|
|
497
|
-
overscroll:
|
|
497
|
+
overscroll: O()
|
|
498
498
|
}],
|
|
499
499
|
/**
|
|
500
500
|
* Overscroll Behavior X
|
|
501
501
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
502
502
|
*/
|
|
503
503
|
"overscroll-x": [{
|
|
504
|
-
"overscroll-x":
|
|
504
|
+
"overscroll-x": O()
|
|
505
505
|
}],
|
|
506
506
|
/**
|
|
507
507
|
* Overscroll Behavior Y
|
|
508
508
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
509
509
|
*/
|
|
510
510
|
"overscroll-y": [{
|
|
511
|
-
"overscroll-y":
|
|
511
|
+
"overscroll-y": O()
|
|
512
512
|
}],
|
|
513
513
|
/**
|
|
514
514
|
* Position
|
|
@@ -520,63 +520,63 @@ const pr = (e, t) => {
|
|
|
520
520
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
521
521
|
*/
|
|
522
522
|
inset: [{
|
|
523
|
-
inset:
|
|
523
|
+
inset: C()
|
|
524
524
|
}],
|
|
525
525
|
/**
|
|
526
526
|
* Right / Left
|
|
527
527
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
528
528
|
*/
|
|
529
529
|
"inset-x": [{
|
|
530
|
-
"inset-x":
|
|
530
|
+
"inset-x": C()
|
|
531
531
|
}],
|
|
532
532
|
/**
|
|
533
533
|
* Top / Bottom
|
|
534
534
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
535
535
|
*/
|
|
536
536
|
"inset-y": [{
|
|
537
|
-
"inset-y":
|
|
537
|
+
"inset-y": C()
|
|
538
538
|
}],
|
|
539
539
|
/**
|
|
540
540
|
* Start
|
|
541
541
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
542
542
|
*/
|
|
543
543
|
start: [{
|
|
544
|
-
start:
|
|
544
|
+
start: C()
|
|
545
545
|
}],
|
|
546
546
|
/**
|
|
547
547
|
* End
|
|
548
548
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
549
549
|
*/
|
|
550
550
|
end: [{
|
|
551
|
-
end:
|
|
551
|
+
end: C()
|
|
552
552
|
}],
|
|
553
553
|
/**
|
|
554
554
|
* Top
|
|
555
555
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
556
556
|
*/
|
|
557
557
|
top: [{
|
|
558
|
-
top:
|
|
558
|
+
top: C()
|
|
559
559
|
}],
|
|
560
560
|
/**
|
|
561
561
|
* Right
|
|
562
562
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
563
563
|
*/
|
|
564
564
|
right: [{
|
|
565
|
-
right:
|
|
565
|
+
right: C()
|
|
566
566
|
}],
|
|
567
567
|
/**
|
|
568
568
|
* Bottom
|
|
569
569
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
570
570
|
*/
|
|
571
571
|
bottom: [{
|
|
572
|
-
bottom:
|
|
572
|
+
bottom: C()
|
|
573
573
|
}],
|
|
574
574
|
/**
|
|
575
575
|
* Left
|
|
576
576
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
577
577
|
*/
|
|
578
578
|
left: [{
|
|
579
|
-
left:
|
|
579
|
+
left: C()
|
|
580
580
|
}],
|
|
581
581
|
/**
|
|
582
582
|
* Visibility
|
|
@@ -588,7 +588,7 @@ const pr = (e, t) => {
|
|
|
588
588
|
* @see https://tailwindcss.com/docs/z-index
|
|
589
589
|
*/
|
|
590
590
|
z: [{
|
|
591
|
-
z: [
|
|
591
|
+
z: [J, "auto", b, p]
|
|
592
592
|
}],
|
|
593
593
|
// ------------------------
|
|
594
594
|
// --- Flexbox and Grid ---
|
|
@@ -598,7 +598,7 @@ const pr = (e, t) => {
|
|
|
598
598
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
599
599
|
*/
|
|
600
600
|
basis: [{
|
|
601
|
-
basis: [X, "full", "auto", c, ...
|
|
601
|
+
basis: [X, "full", "auto", c, ...f()]
|
|
602
602
|
}],
|
|
603
603
|
/**
|
|
604
604
|
* Flex Direction
|
|
@@ -619,28 +619,28 @@ const pr = (e, t) => {
|
|
|
619
619
|
* @see https://tailwindcss.com/docs/flex
|
|
620
620
|
*/
|
|
621
621
|
flex: [{
|
|
622
|
-
flex: [z, X, "auto", "initial", "none",
|
|
622
|
+
flex: [z, X, "auto", "initial", "none", p]
|
|
623
623
|
}],
|
|
624
624
|
/**
|
|
625
625
|
* Flex Grow
|
|
626
626
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
627
627
|
*/
|
|
628
628
|
grow: [{
|
|
629
|
-
grow: ["", z,
|
|
629
|
+
grow: ["", z, b, p]
|
|
630
630
|
}],
|
|
631
631
|
/**
|
|
632
632
|
* Flex Shrink
|
|
633
633
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
634
634
|
*/
|
|
635
635
|
shrink: [{
|
|
636
|
-
shrink: ["", z,
|
|
636
|
+
shrink: ["", z, b, p]
|
|
637
637
|
}],
|
|
638
638
|
/**
|
|
639
639
|
* Order
|
|
640
640
|
* @see https://tailwindcss.com/docs/order
|
|
641
641
|
*/
|
|
642
642
|
order: [{
|
|
643
|
-
order: [
|
|
643
|
+
order: [J, "first", "last", "none", b, p]
|
|
644
644
|
}],
|
|
645
645
|
/**
|
|
646
646
|
* Grid Template Columns
|
|
@@ -654,21 +654,21 @@ const pr = (e, t) => {
|
|
|
654
654
|
* @see https://tailwindcss.com/docs/grid-column
|
|
655
655
|
*/
|
|
656
656
|
"col-start-end": [{
|
|
657
|
-
col:
|
|
657
|
+
col: V()
|
|
658
658
|
}],
|
|
659
659
|
/**
|
|
660
660
|
* Grid Column Start
|
|
661
661
|
* @see https://tailwindcss.com/docs/grid-column
|
|
662
662
|
*/
|
|
663
663
|
"col-start": [{
|
|
664
|
-
"col-start":
|
|
664
|
+
"col-start": _()
|
|
665
665
|
}],
|
|
666
666
|
/**
|
|
667
667
|
* Grid Column End
|
|
668
668
|
* @see https://tailwindcss.com/docs/grid-column
|
|
669
669
|
*/
|
|
670
670
|
"col-end": [{
|
|
671
|
-
"col-end":
|
|
671
|
+
"col-end": _()
|
|
672
672
|
}],
|
|
673
673
|
/**
|
|
674
674
|
* Grid Template Rows
|
|
@@ -682,21 +682,21 @@ const pr = (e, t) => {
|
|
|
682
682
|
* @see https://tailwindcss.com/docs/grid-row
|
|
683
683
|
*/
|
|
684
684
|
"row-start-end": [{
|
|
685
|
-
row:
|
|
685
|
+
row: V()
|
|
686
686
|
}],
|
|
687
687
|
/**
|
|
688
688
|
* Grid Row Start
|
|
689
689
|
* @see https://tailwindcss.com/docs/grid-row
|
|
690
690
|
*/
|
|
691
691
|
"row-start": [{
|
|
692
|
-
"row-start":
|
|
692
|
+
"row-start": _()
|
|
693
693
|
}],
|
|
694
694
|
/**
|
|
695
695
|
* Grid Row End
|
|
696
696
|
* @see https://tailwindcss.com/docs/grid-row
|
|
697
697
|
*/
|
|
698
698
|
"row-end": [{
|
|
699
|
-
"row-end":
|
|
699
|
+
"row-end": _()
|
|
700
700
|
}],
|
|
701
701
|
/**
|
|
702
702
|
* Grid Auto Flow
|
|
@@ -710,70 +710,70 @@ const pr = (e, t) => {
|
|
|
710
710
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
711
711
|
*/
|
|
712
712
|
"auto-cols": [{
|
|
713
|
-
"auto-cols":
|
|
713
|
+
"auto-cols": W()
|
|
714
714
|
}],
|
|
715
715
|
/**
|
|
716
716
|
* Grid Auto Rows
|
|
717
717
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
718
718
|
*/
|
|
719
719
|
"auto-rows": [{
|
|
720
|
-
"auto-rows":
|
|
720
|
+
"auto-rows": W()
|
|
721
721
|
}],
|
|
722
722
|
/**
|
|
723
723
|
* Gap
|
|
724
724
|
* @see https://tailwindcss.com/docs/gap
|
|
725
725
|
*/
|
|
726
726
|
gap: [{
|
|
727
|
-
gap:
|
|
727
|
+
gap: f()
|
|
728
728
|
}],
|
|
729
729
|
/**
|
|
730
730
|
* Gap X
|
|
731
731
|
* @see https://tailwindcss.com/docs/gap
|
|
732
732
|
*/
|
|
733
733
|
"gap-x": [{
|
|
734
|
-
"gap-x":
|
|
734
|
+
"gap-x": f()
|
|
735
735
|
}],
|
|
736
736
|
/**
|
|
737
737
|
* Gap Y
|
|
738
738
|
* @see https://tailwindcss.com/docs/gap
|
|
739
739
|
*/
|
|
740
740
|
"gap-y": [{
|
|
741
|
-
"gap-y":
|
|
741
|
+
"gap-y": f()
|
|
742
742
|
}],
|
|
743
743
|
/**
|
|
744
744
|
* Justify Content
|
|
745
745
|
* @see https://tailwindcss.com/docs/justify-content
|
|
746
746
|
*/
|
|
747
747
|
"justify-content": [{
|
|
748
|
-
justify: [...
|
|
748
|
+
justify: [...te(), "normal"]
|
|
749
749
|
}],
|
|
750
750
|
/**
|
|
751
751
|
* Justify Items
|
|
752
752
|
* @see https://tailwindcss.com/docs/justify-items
|
|
753
753
|
*/
|
|
754
754
|
"justify-items": [{
|
|
755
|
-
"justify-items": [...
|
|
755
|
+
"justify-items": [...q(), "normal"]
|
|
756
756
|
}],
|
|
757
757
|
/**
|
|
758
758
|
* Justify Self
|
|
759
759
|
* @see https://tailwindcss.com/docs/justify-self
|
|
760
760
|
*/
|
|
761
761
|
"justify-self": [{
|
|
762
|
-
"justify-self": ["auto", ...
|
|
762
|
+
"justify-self": ["auto", ...q()]
|
|
763
763
|
}],
|
|
764
764
|
/**
|
|
765
765
|
* Align Content
|
|
766
766
|
* @see https://tailwindcss.com/docs/align-content
|
|
767
767
|
*/
|
|
768
768
|
"align-content": [{
|
|
769
|
-
content: ["normal", ...
|
|
769
|
+
content: ["normal", ...te()]
|
|
770
770
|
}],
|
|
771
771
|
/**
|
|
772
772
|
* Align Items
|
|
773
773
|
* @see https://tailwindcss.com/docs/align-items
|
|
774
774
|
*/
|
|
775
775
|
"align-items": [{
|
|
776
|
-
items: [...
|
|
776
|
+
items: [...q(), {
|
|
777
777
|
baseline: ["", "last"]
|
|
778
778
|
}]
|
|
779
779
|
}],
|
|
@@ -782,7 +782,7 @@ const pr = (e, t) => {
|
|
|
782
782
|
* @see https://tailwindcss.com/docs/align-self
|
|
783
783
|
*/
|
|
784
784
|
"align-self": [{
|
|
785
|
-
self: ["auto", ...
|
|
785
|
+
self: ["auto", ...q(), {
|
|
786
786
|
baseline: ["", "last"]
|
|
787
787
|
}]
|
|
788
788
|
}],
|
|
@@ -791,21 +791,21 @@ const pr = (e, t) => {
|
|
|
791
791
|
* @see https://tailwindcss.com/docs/place-content
|
|
792
792
|
*/
|
|
793
793
|
"place-content": [{
|
|
794
|
-
"place-content":
|
|
794
|
+
"place-content": te()
|
|
795
795
|
}],
|
|
796
796
|
/**
|
|
797
797
|
* Place Items
|
|
798
798
|
* @see https://tailwindcss.com/docs/place-items
|
|
799
799
|
*/
|
|
800
800
|
"place-items": [{
|
|
801
|
-
"place-items": [...
|
|
801
|
+
"place-items": [...q(), "baseline"]
|
|
802
802
|
}],
|
|
803
803
|
/**
|
|
804
804
|
* Place Self
|
|
805
805
|
* @see https://tailwindcss.com/docs/place-self
|
|
806
806
|
*/
|
|
807
807
|
"place-self": [{
|
|
808
|
-
"place-self": ["auto", ...
|
|
808
|
+
"place-self": ["auto", ...q()]
|
|
809
809
|
}],
|
|
810
810
|
// Spacing
|
|
811
811
|
/**
|
|
@@ -813,133 +813,133 @@ const pr = (e, t) => {
|
|
|
813
813
|
* @see https://tailwindcss.com/docs/padding
|
|
814
814
|
*/
|
|
815
815
|
p: [{
|
|
816
|
-
p:
|
|
816
|
+
p: f()
|
|
817
817
|
}],
|
|
818
818
|
/**
|
|
819
819
|
* Padding X
|
|
820
820
|
* @see https://tailwindcss.com/docs/padding
|
|
821
821
|
*/
|
|
822
822
|
px: [{
|
|
823
|
-
px:
|
|
823
|
+
px: f()
|
|
824
824
|
}],
|
|
825
825
|
/**
|
|
826
826
|
* Padding Y
|
|
827
827
|
* @see https://tailwindcss.com/docs/padding
|
|
828
828
|
*/
|
|
829
829
|
py: [{
|
|
830
|
-
py:
|
|
830
|
+
py: f()
|
|
831
831
|
}],
|
|
832
832
|
/**
|
|
833
833
|
* Padding Start
|
|
834
834
|
* @see https://tailwindcss.com/docs/padding
|
|
835
835
|
*/
|
|
836
836
|
ps: [{
|
|
837
|
-
ps:
|
|
837
|
+
ps: f()
|
|
838
838
|
}],
|
|
839
839
|
/**
|
|
840
840
|
* Padding End
|
|
841
841
|
* @see https://tailwindcss.com/docs/padding
|
|
842
842
|
*/
|
|
843
843
|
pe: [{
|
|
844
|
-
pe:
|
|
844
|
+
pe: f()
|
|
845
845
|
}],
|
|
846
846
|
/**
|
|
847
847
|
* Padding Top
|
|
848
848
|
* @see https://tailwindcss.com/docs/padding
|
|
849
849
|
*/
|
|
850
850
|
pt: [{
|
|
851
|
-
pt:
|
|
851
|
+
pt: f()
|
|
852
852
|
}],
|
|
853
853
|
/**
|
|
854
854
|
* Padding Right
|
|
855
855
|
* @see https://tailwindcss.com/docs/padding
|
|
856
856
|
*/
|
|
857
857
|
pr: [{
|
|
858
|
-
pr:
|
|
858
|
+
pr: f()
|
|
859
859
|
}],
|
|
860
860
|
/**
|
|
861
861
|
* Padding Bottom
|
|
862
862
|
* @see https://tailwindcss.com/docs/padding
|
|
863
863
|
*/
|
|
864
864
|
pb: [{
|
|
865
|
-
pb:
|
|
865
|
+
pb: f()
|
|
866
866
|
}],
|
|
867
867
|
/**
|
|
868
868
|
* Padding Left
|
|
869
869
|
* @see https://tailwindcss.com/docs/padding
|
|
870
870
|
*/
|
|
871
871
|
pl: [{
|
|
872
|
-
pl:
|
|
872
|
+
pl: f()
|
|
873
873
|
}],
|
|
874
874
|
/**
|
|
875
875
|
* Margin
|
|
876
876
|
* @see https://tailwindcss.com/docs/margin
|
|
877
877
|
*/
|
|
878
878
|
m: [{
|
|
879
|
-
m:
|
|
879
|
+
m: U()
|
|
880
880
|
}],
|
|
881
881
|
/**
|
|
882
882
|
* Margin X
|
|
883
883
|
* @see https://tailwindcss.com/docs/margin
|
|
884
884
|
*/
|
|
885
885
|
mx: [{
|
|
886
|
-
mx:
|
|
886
|
+
mx: U()
|
|
887
887
|
}],
|
|
888
888
|
/**
|
|
889
889
|
* Margin Y
|
|
890
890
|
* @see https://tailwindcss.com/docs/margin
|
|
891
891
|
*/
|
|
892
892
|
my: [{
|
|
893
|
-
my:
|
|
893
|
+
my: U()
|
|
894
894
|
}],
|
|
895
895
|
/**
|
|
896
896
|
* Margin Start
|
|
897
897
|
* @see https://tailwindcss.com/docs/margin
|
|
898
898
|
*/
|
|
899
899
|
ms: [{
|
|
900
|
-
ms:
|
|
900
|
+
ms: U()
|
|
901
901
|
}],
|
|
902
902
|
/**
|
|
903
903
|
* Margin End
|
|
904
904
|
* @see https://tailwindcss.com/docs/margin
|
|
905
905
|
*/
|
|
906
906
|
me: [{
|
|
907
|
-
me:
|
|
907
|
+
me: U()
|
|
908
908
|
}],
|
|
909
909
|
/**
|
|
910
910
|
* Margin Top
|
|
911
911
|
* @see https://tailwindcss.com/docs/margin
|
|
912
912
|
*/
|
|
913
913
|
mt: [{
|
|
914
|
-
mt:
|
|
914
|
+
mt: U()
|
|
915
915
|
}],
|
|
916
916
|
/**
|
|
917
917
|
* Margin Right
|
|
918
918
|
* @see https://tailwindcss.com/docs/margin
|
|
919
919
|
*/
|
|
920
920
|
mr: [{
|
|
921
|
-
mr:
|
|
921
|
+
mr: U()
|
|
922
922
|
}],
|
|
923
923
|
/**
|
|
924
924
|
* Margin Bottom
|
|
925
925
|
* @see https://tailwindcss.com/docs/margin
|
|
926
926
|
*/
|
|
927
927
|
mb: [{
|
|
928
|
-
mb:
|
|
928
|
+
mb: U()
|
|
929
929
|
}],
|
|
930
930
|
/**
|
|
931
931
|
* Margin Left
|
|
932
932
|
* @see https://tailwindcss.com/docs/margin
|
|
933
933
|
*/
|
|
934
934
|
ml: [{
|
|
935
|
-
ml:
|
|
935
|
+
ml: U()
|
|
936
936
|
}],
|
|
937
937
|
/**
|
|
938
938
|
* Space Between X
|
|
939
939
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
940
940
|
*/
|
|
941
941
|
"space-x": [{
|
|
942
|
-
"space-x":
|
|
942
|
+
"space-x": f()
|
|
943
943
|
}],
|
|
944
944
|
/**
|
|
945
945
|
* Space Between X Reverse
|
|
@@ -951,7 +951,7 @@ const pr = (e, t) => {
|
|
|
951
951
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
952
952
|
*/
|
|
953
953
|
"space-y": [{
|
|
954
|
-
"space-y":
|
|
954
|
+
"space-y": f()
|
|
955
955
|
}],
|
|
956
956
|
/**
|
|
957
957
|
* Space Between Y Reverse
|
|
@@ -966,14 +966,14 @@ const pr = (e, t) => {
|
|
|
966
966
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
967
967
|
*/
|
|
968
968
|
size: [{
|
|
969
|
-
size:
|
|
969
|
+
size: G()
|
|
970
970
|
}],
|
|
971
971
|
/**
|
|
972
972
|
* Width
|
|
973
973
|
* @see https://tailwindcss.com/docs/width
|
|
974
974
|
*/
|
|
975
975
|
w: [{
|
|
976
|
-
w: [c, "screen", ...
|
|
976
|
+
w: [c, "screen", ...G()]
|
|
977
977
|
}],
|
|
978
978
|
/**
|
|
979
979
|
* Min-Width
|
|
@@ -985,7 +985,7 @@ const pr = (e, t) => {
|
|
|
985
985
|
"screen",
|
|
986
986
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
987
987
|
"none",
|
|
988
|
-
...
|
|
988
|
+
...G()
|
|
989
989
|
]
|
|
990
990
|
}],
|
|
991
991
|
/**
|
|
@@ -1003,7 +1003,7 @@ const pr = (e, t) => {
|
|
|
1003
1003
|
{
|
|
1004
1004
|
screen: [s]
|
|
1005
1005
|
},
|
|
1006
|
-
...
|
|
1006
|
+
...G()
|
|
1007
1007
|
]
|
|
1008
1008
|
}],
|
|
1009
1009
|
/**
|
|
@@ -1011,21 +1011,21 @@ const pr = (e, t) => {
|
|
|
1011
1011
|
* @see https://tailwindcss.com/docs/height
|
|
1012
1012
|
*/
|
|
1013
1013
|
h: [{
|
|
1014
|
-
h: ["screen", "lh", ...
|
|
1014
|
+
h: ["screen", "lh", ...G()]
|
|
1015
1015
|
}],
|
|
1016
1016
|
/**
|
|
1017
1017
|
* Min-Height
|
|
1018
1018
|
* @see https://tailwindcss.com/docs/min-height
|
|
1019
1019
|
*/
|
|
1020
1020
|
"min-h": [{
|
|
1021
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1021
|
+
"min-h": ["screen", "lh", "none", ...G()]
|
|
1022
1022
|
}],
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Max-Height
|
|
1025
1025
|
* @see https://tailwindcss.com/docs/max-height
|
|
1026
1026
|
*/
|
|
1027
1027
|
"max-h": [{
|
|
1028
|
-
"max-h": ["screen", "lh", ...
|
|
1028
|
+
"max-h": ["screen", "lh", ...G()]
|
|
1029
1029
|
}],
|
|
1030
1030
|
// ------------------
|
|
1031
1031
|
// --- Typography ---
|
|
@@ -1035,7 +1035,7 @@ const pr = (e, t) => {
|
|
|
1035
1035
|
* @see https://tailwindcss.com/docs/font-size
|
|
1036
1036
|
*/
|
|
1037
1037
|
"font-size": [{
|
|
1038
|
-
text: ["base", a,
|
|
1038
|
+
text: ["base", a, oe, K]
|
|
1039
1039
|
}],
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Font Smoothing
|
|
@@ -1052,21 +1052,21 @@ const pr = (e, t) => {
|
|
|
1052
1052
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1053
1053
|
*/
|
|
1054
1054
|
"font-weight": [{
|
|
1055
|
-
font: [o,
|
|
1055
|
+
font: [o, b, fe]
|
|
1056
1056
|
}],
|
|
1057
1057
|
/**
|
|
1058
1058
|
* Font Stretch
|
|
1059
1059
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1060
1060
|
*/
|
|
1061
1061
|
"font-stretch": [{
|
|
1062
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", he,
|
|
1062
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", he, p]
|
|
1063
1063
|
}],
|
|
1064
1064
|
/**
|
|
1065
1065
|
* Font Family
|
|
1066
1066
|
* @see https://tailwindcss.com/docs/font-family
|
|
1067
1067
|
*/
|
|
1068
1068
|
"font-family": [{
|
|
1069
|
-
font: [
|
|
1069
|
+
font: [at, p, t]
|
|
1070
1070
|
}],
|
|
1071
1071
|
/**
|
|
1072
1072
|
* Font Variant Numeric
|
|
@@ -1103,14 +1103,14 @@ const pr = (e, t) => {
|
|
|
1103
1103
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1104
1104
|
*/
|
|
1105
1105
|
tracking: [{
|
|
1106
|
-
tracking: [n,
|
|
1106
|
+
tracking: [n, b, p]
|
|
1107
1107
|
}],
|
|
1108
1108
|
/**
|
|
1109
1109
|
* Line Clamp
|
|
1110
1110
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1111
1111
|
*/
|
|
1112
1112
|
"line-clamp": [{
|
|
1113
|
-
"line-clamp": [z, "none",
|
|
1113
|
+
"line-clamp": [z, "none", b, fe]
|
|
1114
1114
|
}],
|
|
1115
1115
|
/**
|
|
1116
1116
|
* Line Height
|
|
@@ -1120,7 +1120,7 @@ const pr = (e, t) => {
|
|
|
1120
1120
|
leading: [
|
|
1121
1121
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1122
1122
|
l,
|
|
1123
|
-
...
|
|
1123
|
+
...f()
|
|
1124
1124
|
]
|
|
1125
1125
|
}],
|
|
1126
1126
|
/**
|
|
@@ -1128,7 +1128,7 @@ const pr = (e, t) => {
|
|
|
1128
1128
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1129
1129
|
*/
|
|
1130
1130
|
"list-image": [{
|
|
1131
|
-
"list-image": ["none",
|
|
1131
|
+
"list-image": ["none", b, p]
|
|
1132
1132
|
}],
|
|
1133
1133
|
/**
|
|
1134
1134
|
* List Style Position
|
|
@@ -1142,7 +1142,7 @@ const pr = (e, t) => {
|
|
|
1142
1142
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1143
1143
|
*/
|
|
1144
1144
|
"list-style-type": [{
|
|
1145
|
-
list: ["disc", "decimal", "none",
|
|
1145
|
+
list: ["disc", "decimal", "none", b, p]
|
|
1146
1146
|
}],
|
|
1147
1147
|
/**
|
|
1148
1148
|
* Text Alignment
|
|
@@ -1157,14 +1157,14 @@ const pr = (e, t) => {
|
|
|
1157
1157
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1158
1158
|
*/
|
|
1159
1159
|
"placeholder-color": [{
|
|
1160
|
-
placeholder:
|
|
1160
|
+
placeholder: v()
|
|
1161
1161
|
}],
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Text Color
|
|
1164
1164
|
* @see https://tailwindcss.com/docs/text-color
|
|
1165
1165
|
*/
|
|
1166
1166
|
"text-color": [{
|
|
1167
|
-
text:
|
|
1167
|
+
text: v()
|
|
1168
1168
|
}],
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Text Decoration
|
|
@@ -1176,28 +1176,28 @@ const pr = (e, t) => {
|
|
|
1176
1176
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1177
1177
|
*/
|
|
1178
1178
|
"text-decoration-style": [{
|
|
1179
|
-
decoration: [...
|
|
1179
|
+
decoration: [...se(), "wavy"]
|
|
1180
1180
|
}],
|
|
1181
1181
|
/**
|
|
1182
1182
|
* Text Decoration Thickness
|
|
1183
1183
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1184
1184
|
*/
|
|
1185
1185
|
"text-decoration-thickness": [{
|
|
1186
|
-
decoration: [z, "from-font", "auto",
|
|
1186
|
+
decoration: [z, "from-font", "auto", b, K]
|
|
1187
1187
|
}],
|
|
1188
1188
|
/**
|
|
1189
1189
|
* Text Decoration Color
|
|
1190
1190
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1191
1191
|
*/
|
|
1192
1192
|
"text-decoration-color": [{
|
|
1193
|
-
decoration:
|
|
1193
|
+
decoration: v()
|
|
1194
1194
|
}],
|
|
1195
1195
|
/**
|
|
1196
1196
|
* Text Underline Offset
|
|
1197
1197
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1198
1198
|
*/
|
|
1199
1199
|
"underline-offset": [{
|
|
1200
|
-
"underline-offset": [z, "auto",
|
|
1200
|
+
"underline-offset": [z, "auto", b, p]
|
|
1201
1201
|
}],
|
|
1202
1202
|
/**
|
|
1203
1203
|
* Text Transform
|
|
@@ -1221,14 +1221,14 @@ const pr = (e, t) => {
|
|
|
1221
1221
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1222
1222
|
*/
|
|
1223
1223
|
indent: [{
|
|
1224
|
-
indent:
|
|
1224
|
+
indent: f()
|
|
1225
1225
|
}],
|
|
1226
1226
|
/**
|
|
1227
1227
|
* Vertical Alignment
|
|
1228
1228
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1229
1229
|
*/
|
|
1230
1230
|
"vertical-align": [{
|
|
1231
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1231
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", b, p]
|
|
1232
1232
|
}],
|
|
1233
1233
|
/**
|
|
1234
1234
|
* Whitespace
|
|
@@ -1263,7 +1263,7 @@ const pr = (e, t) => {
|
|
|
1263
1263
|
* @see https://tailwindcss.com/docs/content
|
|
1264
1264
|
*/
|
|
1265
1265
|
content: [{
|
|
1266
|
-
content: ["none",
|
|
1266
|
+
content: ["none", b, p]
|
|
1267
1267
|
}],
|
|
1268
1268
|
// -------------------
|
|
1269
1269
|
// --- Backgrounds ---
|
|
@@ -1301,14 +1301,14 @@ const pr = (e, t) => {
|
|
|
1301
1301
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1302
1302
|
*/
|
|
1303
1303
|
"bg-repeat": [{
|
|
1304
|
-
bg:
|
|
1304
|
+
bg: Ne()
|
|
1305
1305
|
}],
|
|
1306
1306
|
/**
|
|
1307
1307
|
* Background Size
|
|
1308
1308
|
* @see https://tailwindcss.com/docs/background-size
|
|
1309
1309
|
*/
|
|
1310
1310
|
"bg-size": [{
|
|
1311
|
-
bg:
|
|
1311
|
+
bg: ke()
|
|
1312
1312
|
}],
|
|
1313
1313
|
/**
|
|
1314
1314
|
* Background Image
|
|
@@ -1318,17 +1318,17 @@ const pr = (e, t) => {
|
|
|
1318
1318
|
bg: ["none", {
|
|
1319
1319
|
linear: [{
|
|
1320
1320
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1321
|
-
},
|
|
1322
|
-
radial: ["",
|
|
1323
|
-
conic: [
|
|
1324
|
-
},
|
|
1321
|
+
}, J, b, p],
|
|
1322
|
+
radial: ["", b, p],
|
|
1323
|
+
conic: [J, b, p]
|
|
1324
|
+
}, nt, ot]
|
|
1325
1325
|
}],
|
|
1326
1326
|
/**
|
|
1327
1327
|
* Background Color
|
|
1328
1328
|
* @see https://tailwindcss.com/docs/background-color
|
|
1329
1329
|
*/
|
|
1330
1330
|
"bg-color": [{
|
|
1331
|
-
bg:
|
|
1331
|
+
bg: v()
|
|
1332
1332
|
}],
|
|
1333
1333
|
/**
|
|
1334
1334
|
* Gradient Color Stops From Position
|
|
@@ -1356,21 +1356,21 @@ const pr = (e, t) => {
|
|
|
1356
1356
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1357
1357
|
*/
|
|
1358
1358
|
"gradient-from": [{
|
|
1359
|
-
from:
|
|
1359
|
+
from: v()
|
|
1360
1360
|
}],
|
|
1361
1361
|
/**
|
|
1362
1362
|
* Gradient Color Stops Via
|
|
1363
1363
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1364
1364
|
*/
|
|
1365
1365
|
"gradient-via": [{
|
|
1366
|
-
via:
|
|
1366
|
+
via: v()
|
|
1367
1367
|
}],
|
|
1368
1368
|
/**
|
|
1369
1369
|
* Gradient Color Stops To
|
|
1370
1370
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1371
1371
|
*/
|
|
1372
1372
|
"gradient-to": [{
|
|
1373
|
-
to:
|
|
1373
|
+
to: v()
|
|
1374
1374
|
}],
|
|
1375
1375
|
// ---------------
|
|
1376
1376
|
// --- Borders ---
|
|
@@ -1380,175 +1380,175 @@ const pr = (e, t) => {
|
|
|
1380
1380
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1381
1381
|
*/
|
|
1382
1382
|
rounded: [{
|
|
1383
|
-
rounded:
|
|
1383
|
+
rounded: E()
|
|
1384
1384
|
}],
|
|
1385
1385
|
/**
|
|
1386
1386
|
* Border Radius Start
|
|
1387
1387
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1388
1388
|
*/
|
|
1389
1389
|
"rounded-s": [{
|
|
1390
|
-
"rounded-s":
|
|
1390
|
+
"rounded-s": E()
|
|
1391
1391
|
}],
|
|
1392
1392
|
/**
|
|
1393
1393
|
* Border Radius End
|
|
1394
1394
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1395
1395
|
*/
|
|
1396
1396
|
"rounded-e": [{
|
|
1397
|
-
"rounded-e":
|
|
1397
|
+
"rounded-e": E()
|
|
1398
1398
|
}],
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Border Radius Top
|
|
1401
1401
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1402
1402
|
*/
|
|
1403
1403
|
"rounded-t": [{
|
|
1404
|
-
"rounded-t":
|
|
1404
|
+
"rounded-t": E()
|
|
1405
1405
|
}],
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Border Radius Right
|
|
1408
1408
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1409
1409
|
*/
|
|
1410
1410
|
"rounded-r": [{
|
|
1411
|
-
"rounded-r":
|
|
1411
|
+
"rounded-r": E()
|
|
1412
1412
|
}],
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Border Radius Bottom
|
|
1415
1415
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1416
1416
|
*/
|
|
1417
1417
|
"rounded-b": [{
|
|
1418
|
-
"rounded-b":
|
|
1418
|
+
"rounded-b": E()
|
|
1419
1419
|
}],
|
|
1420
1420
|
/**
|
|
1421
1421
|
* Border Radius Left
|
|
1422
1422
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1423
1423
|
*/
|
|
1424
1424
|
"rounded-l": [{
|
|
1425
|
-
"rounded-l":
|
|
1425
|
+
"rounded-l": E()
|
|
1426
1426
|
}],
|
|
1427
1427
|
/**
|
|
1428
1428
|
* Border Radius Start Start
|
|
1429
1429
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1430
1430
|
*/
|
|
1431
1431
|
"rounded-ss": [{
|
|
1432
|
-
"rounded-ss":
|
|
1432
|
+
"rounded-ss": E()
|
|
1433
1433
|
}],
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Border Radius Start End
|
|
1436
1436
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1437
1437
|
*/
|
|
1438
1438
|
"rounded-se": [{
|
|
1439
|
-
"rounded-se":
|
|
1439
|
+
"rounded-se": E()
|
|
1440
1440
|
}],
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Border Radius End End
|
|
1443
1443
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1444
1444
|
*/
|
|
1445
1445
|
"rounded-ee": [{
|
|
1446
|
-
"rounded-ee":
|
|
1446
|
+
"rounded-ee": E()
|
|
1447
1447
|
}],
|
|
1448
1448
|
/**
|
|
1449
1449
|
* Border Radius End Start
|
|
1450
1450
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1451
1451
|
*/
|
|
1452
1452
|
"rounded-es": [{
|
|
1453
|
-
"rounded-es":
|
|
1453
|
+
"rounded-es": E()
|
|
1454
1454
|
}],
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Border Radius Top Left
|
|
1457
1457
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1458
1458
|
*/
|
|
1459
1459
|
"rounded-tl": [{
|
|
1460
|
-
"rounded-tl":
|
|
1460
|
+
"rounded-tl": E()
|
|
1461
1461
|
}],
|
|
1462
1462
|
/**
|
|
1463
1463
|
* Border Radius Top Right
|
|
1464
1464
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1465
1465
|
*/
|
|
1466
1466
|
"rounded-tr": [{
|
|
1467
|
-
"rounded-tr":
|
|
1467
|
+
"rounded-tr": E()
|
|
1468
1468
|
}],
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Border Radius Bottom Right
|
|
1471
1471
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1472
1472
|
*/
|
|
1473
1473
|
"rounded-br": [{
|
|
1474
|
-
"rounded-br":
|
|
1474
|
+
"rounded-br": E()
|
|
1475
1475
|
}],
|
|
1476
1476
|
/**
|
|
1477
1477
|
* Border Radius Bottom Left
|
|
1478
1478
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1479
1479
|
*/
|
|
1480
1480
|
"rounded-bl": [{
|
|
1481
|
-
"rounded-bl":
|
|
1481
|
+
"rounded-bl": E()
|
|
1482
1482
|
}],
|
|
1483
1483
|
/**
|
|
1484
1484
|
* Border Width
|
|
1485
1485
|
* @see https://tailwindcss.com/docs/border-width
|
|
1486
1486
|
*/
|
|
1487
1487
|
"border-w": [{
|
|
1488
|
-
border:
|
|
1488
|
+
border: B()
|
|
1489
1489
|
}],
|
|
1490
1490
|
/**
|
|
1491
1491
|
* Border Width X
|
|
1492
1492
|
* @see https://tailwindcss.com/docs/border-width
|
|
1493
1493
|
*/
|
|
1494
1494
|
"border-w-x": [{
|
|
1495
|
-
"border-x":
|
|
1495
|
+
"border-x": B()
|
|
1496
1496
|
}],
|
|
1497
1497
|
/**
|
|
1498
1498
|
* Border Width Y
|
|
1499
1499
|
* @see https://tailwindcss.com/docs/border-width
|
|
1500
1500
|
*/
|
|
1501
1501
|
"border-w-y": [{
|
|
1502
|
-
"border-y":
|
|
1502
|
+
"border-y": B()
|
|
1503
1503
|
}],
|
|
1504
1504
|
/**
|
|
1505
1505
|
* Border Width Start
|
|
1506
1506
|
* @see https://tailwindcss.com/docs/border-width
|
|
1507
1507
|
*/
|
|
1508
1508
|
"border-w-s": [{
|
|
1509
|
-
"border-s":
|
|
1509
|
+
"border-s": B()
|
|
1510
1510
|
}],
|
|
1511
1511
|
/**
|
|
1512
1512
|
* Border Width End
|
|
1513
1513
|
* @see https://tailwindcss.com/docs/border-width
|
|
1514
1514
|
*/
|
|
1515
1515
|
"border-w-e": [{
|
|
1516
|
-
"border-e":
|
|
1516
|
+
"border-e": B()
|
|
1517
1517
|
}],
|
|
1518
1518
|
/**
|
|
1519
1519
|
* Border Width Top
|
|
1520
1520
|
* @see https://tailwindcss.com/docs/border-width
|
|
1521
1521
|
*/
|
|
1522
1522
|
"border-w-t": [{
|
|
1523
|
-
"border-t":
|
|
1523
|
+
"border-t": B()
|
|
1524
1524
|
}],
|
|
1525
1525
|
/**
|
|
1526
1526
|
* Border Width Right
|
|
1527
1527
|
* @see https://tailwindcss.com/docs/border-width
|
|
1528
1528
|
*/
|
|
1529
1529
|
"border-w-r": [{
|
|
1530
|
-
"border-r":
|
|
1530
|
+
"border-r": B()
|
|
1531
1531
|
}],
|
|
1532
1532
|
/**
|
|
1533
1533
|
* Border Width Bottom
|
|
1534
1534
|
* @see https://tailwindcss.com/docs/border-width
|
|
1535
1535
|
*/
|
|
1536
1536
|
"border-w-b": [{
|
|
1537
|
-
"border-b":
|
|
1537
|
+
"border-b": B()
|
|
1538
1538
|
}],
|
|
1539
1539
|
/**
|
|
1540
1540
|
* Border Width Left
|
|
1541
1541
|
* @see https://tailwindcss.com/docs/border-width
|
|
1542
1542
|
*/
|
|
1543
1543
|
"border-w-l": [{
|
|
1544
|
-
"border-l":
|
|
1544
|
+
"border-l": B()
|
|
1545
1545
|
}],
|
|
1546
1546
|
/**
|
|
1547
1547
|
* Divide Width X
|
|
1548
1548
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1549
1549
|
*/
|
|
1550
1550
|
"divide-x": [{
|
|
1551
|
-
"divide-x":
|
|
1551
|
+
"divide-x": B()
|
|
1552
1552
|
}],
|
|
1553
1553
|
/**
|
|
1554
1554
|
* Divide Width X Reverse
|
|
@@ -1560,7 +1560,7 @@ const pr = (e, t) => {
|
|
|
1560
1560
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1561
1561
|
*/
|
|
1562
1562
|
"divide-y": [{
|
|
1563
|
-
"divide-y":
|
|
1563
|
+
"divide-y": B()
|
|
1564
1564
|
}],
|
|
1565
1565
|
/**
|
|
1566
1566
|
* Divide Width Y Reverse
|
|
@@ -1572,112 +1572,112 @@ const pr = (e, t) => {
|
|
|
1572
1572
|
* @see https://tailwindcss.com/docs/border-style
|
|
1573
1573
|
*/
|
|
1574
1574
|
"border-style": [{
|
|
1575
|
-
border: [...
|
|
1575
|
+
border: [...se(), "hidden", "none"]
|
|
1576
1576
|
}],
|
|
1577
1577
|
/**
|
|
1578
1578
|
* Divide Style
|
|
1579
1579
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1580
1580
|
*/
|
|
1581
1581
|
"divide-style": [{
|
|
1582
|
-
divide: [...
|
|
1582
|
+
divide: [...se(), "hidden", "none"]
|
|
1583
1583
|
}],
|
|
1584
1584
|
/**
|
|
1585
1585
|
* Border Color
|
|
1586
1586
|
* @see https://tailwindcss.com/docs/border-color
|
|
1587
1587
|
*/
|
|
1588
1588
|
"border-color": [{
|
|
1589
|
-
border:
|
|
1589
|
+
border: v()
|
|
1590
1590
|
}],
|
|
1591
1591
|
/**
|
|
1592
1592
|
* Border Color X
|
|
1593
1593
|
* @see https://tailwindcss.com/docs/border-color
|
|
1594
1594
|
*/
|
|
1595
1595
|
"border-color-x": [{
|
|
1596
|
-
"border-x":
|
|
1596
|
+
"border-x": v()
|
|
1597
1597
|
}],
|
|
1598
1598
|
/**
|
|
1599
1599
|
* Border Color Y
|
|
1600
1600
|
* @see https://tailwindcss.com/docs/border-color
|
|
1601
1601
|
*/
|
|
1602
1602
|
"border-color-y": [{
|
|
1603
|
-
"border-y":
|
|
1603
|
+
"border-y": v()
|
|
1604
1604
|
}],
|
|
1605
1605
|
/**
|
|
1606
1606
|
* Border Color S
|
|
1607
1607
|
* @see https://tailwindcss.com/docs/border-color
|
|
1608
1608
|
*/
|
|
1609
1609
|
"border-color-s": [{
|
|
1610
|
-
"border-s":
|
|
1610
|
+
"border-s": v()
|
|
1611
1611
|
}],
|
|
1612
1612
|
/**
|
|
1613
1613
|
* Border Color E
|
|
1614
1614
|
* @see https://tailwindcss.com/docs/border-color
|
|
1615
1615
|
*/
|
|
1616
1616
|
"border-color-e": [{
|
|
1617
|
-
"border-e":
|
|
1617
|
+
"border-e": v()
|
|
1618
1618
|
}],
|
|
1619
1619
|
/**
|
|
1620
1620
|
* Border Color Top
|
|
1621
1621
|
* @see https://tailwindcss.com/docs/border-color
|
|
1622
1622
|
*/
|
|
1623
1623
|
"border-color-t": [{
|
|
1624
|
-
"border-t":
|
|
1624
|
+
"border-t": v()
|
|
1625
1625
|
}],
|
|
1626
1626
|
/**
|
|
1627
1627
|
* Border Color Right
|
|
1628
1628
|
* @see https://tailwindcss.com/docs/border-color
|
|
1629
1629
|
*/
|
|
1630
1630
|
"border-color-r": [{
|
|
1631
|
-
"border-r":
|
|
1631
|
+
"border-r": v()
|
|
1632
1632
|
}],
|
|
1633
1633
|
/**
|
|
1634
1634
|
* Border Color Bottom
|
|
1635
1635
|
* @see https://tailwindcss.com/docs/border-color
|
|
1636
1636
|
*/
|
|
1637
1637
|
"border-color-b": [{
|
|
1638
|
-
"border-b":
|
|
1638
|
+
"border-b": v()
|
|
1639
1639
|
}],
|
|
1640
1640
|
/**
|
|
1641
1641
|
* Border Color Left
|
|
1642
1642
|
* @see https://tailwindcss.com/docs/border-color
|
|
1643
1643
|
*/
|
|
1644
1644
|
"border-color-l": [{
|
|
1645
|
-
"border-l":
|
|
1645
|
+
"border-l": v()
|
|
1646
1646
|
}],
|
|
1647
1647
|
/**
|
|
1648
1648
|
* Divide Color
|
|
1649
1649
|
* @see https://tailwindcss.com/docs/divide-color
|
|
1650
1650
|
*/
|
|
1651
1651
|
"divide-color": [{
|
|
1652
|
-
divide:
|
|
1652
|
+
divide: v()
|
|
1653
1653
|
}],
|
|
1654
1654
|
/**
|
|
1655
1655
|
* Outline Style
|
|
1656
1656
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1657
1657
|
*/
|
|
1658
1658
|
"outline-style": [{
|
|
1659
|
-
outline: [...
|
|
1659
|
+
outline: [...se(), "none", "hidden"]
|
|
1660
1660
|
}],
|
|
1661
1661
|
/**
|
|
1662
1662
|
* Outline Offset
|
|
1663
1663
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1664
1664
|
*/
|
|
1665
1665
|
"outline-offset": [{
|
|
1666
|
-
"outline-offset": [z,
|
|
1666
|
+
"outline-offset": [z, b, p]
|
|
1667
1667
|
}],
|
|
1668
1668
|
/**
|
|
1669
1669
|
* Outline Width
|
|
1670
1670
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1671
1671
|
*/
|
|
1672
1672
|
"outline-w": [{
|
|
1673
|
-
outline: ["", z,
|
|
1673
|
+
outline: ["", z, oe, K]
|
|
1674
1674
|
}],
|
|
1675
1675
|
/**
|
|
1676
1676
|
* Outline Color
|
|
1677
1677
|
* @see https://tailwindcss.com/docs/outline-color
|
|
1678
1678
|
*/
|
|
1679
1679
|
"outline-color": [{
|
|
1680
|
-
outline:
|
|
1680
|
+
outline: v()
|
|
1681
1681
|
}],
|
|
1682
1682
|
// ---------------
|
|
1683
1683
|
// --- Effects ---
|
|
@@ -1692,8 +1692,8 @@ const pr = (e, t) => {
|
|
|
1692
1692
|
"",
|
|
1693
1693
|
"none",
|
|
1694
1694
|
x,
|
|
1695
|
-
|
|
1696
|
-
|
|
1695
|
+
de,
|
|
1696
|
+
ce
|
|
1697
1697
|
]
|
|
1698
1698
|
}],
|
|
1699
1699
|
/**
|
|
@@ -1701,28 +1701,28 @@ const pr = (e, t) => {
|
|
|
1701
1701
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
1702
1702
|
*/
|
|
1703
1703
|
"shadow-color": [{
|
|
1704
|
-
shadow:
|
|
1704
|
+
shadow: v()
|
|
1705
1705
|
}],
|
|
1706
1706
|
/**
|
|
1707
1707
|
* Inset Box Shadow
|
|
1708
1708
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1709
1709
|
*/
|
|
1710
1710
|
"inset-shadow": [{
|
|
1711
|
-
"inset-shadow": ["none",
|
|
1711
|
+
"inset-shadow": ["none", y, de, ce]
|
|
1712
1712
|
}],
|
|
1713
1713
|
/**
|
|
1714
1714
|
* Inset Box Shadow Color
|
|
1715
1715
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
1716
1716
|
*/
|
|
1717
1717
|
"inset-shadow-color": [{
|
|
1718
|
-
"inset-shadow":
|
|
1718
|
+
"inset-shadow": v()
|
|
1719
1719
|
}],
|
|
1720
1720
|
/**
|
|
1721
1721
|
* Ring Width
|
|
1722
1722
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
1723
1723
|
*/
|
|
1724
1724
|
"ring-w": [{
|
|
1725
|
-
ring:
|
|
1725
|
+
ring: B()
|
|
1726
1726
|
}],
|
|
1727
1727
|
/**
|
|
1728
1728
|
* Ring Width Inset
|
|
@@ -1736,7 +1736,7 @@ const pr = (e, t) => {
|
|
|
1736
1736
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
1737
1737
|
*/
|
|
1738
1738
|
"ring-color": [{
|
|
1739
|
-
ring:
|
|
1739
|
+
ring: v()
|
|
1740
1740
|
}],
|
|
1741
1741
|
/**
|
|
1742
1742
|
* Ring Offset Width
|
|
@@ -1754,42 +1754,42 @@ const pr = (e, t) => {
|
|
|
1754
1754
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1755
1755
|
*/
|
|
1756
1756
|
"ring-offset-color": [{
|
|
1757
|
-
"ring-offset":
|
|
1757
|
+
"ring-offset": v()
|
|
1758
1758
|
}],
|
|
1759
1759
|
/**
|
|
1760
1760
|
* Inset Ring Width
|
|
1761
1761
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
1762
1762
|
*/
|
|
1763
1763
|
"inset-ring-w": [{
|
|
1764
|
-
"inset-ring":
|
|
1764
|
+
"inset-ring": B()
|
|
1765
1765
|
}],
|
|
1766
1766
|
/**
|
|
1767
1767
|
* Inset Ring Color
|
|
1768
1768
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
1769
1769
|
*/
|
|
1770
1770
|
"inset-ring-color": [{
|
|
1771
|
-
"inset-ring":
|
|
1771
|
+
"inset-ring": v()
|
|
1772
1772
|
}],
|
|
1773
1773
|
/**
|
|
1774
1774
|
* Text Shadow
|
|
1775
1775
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
1776
1776
|
*/
|
|
1777
1777
|
"text-shadow": [{
|
|
1778
|
-
"text-shadow": ["none",
|
|
1778
|
+
"text-shadow": ["none", h, de, ce]
|
|
1779
1779
|
}],
|
|
1780
1780
|
/**
|
|
1781
1781
|
* Text Shadow Color
|
|
1782
1782
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
1783
1783
|
*/
|
|
1784
1784
|
"text-shadow-color": [{
|
|
1785
|
-
"text-shadow":
|
|
1785
|
+
"text-shadow": v()
|
|
1786
1786
|
}],
|
|
1787
1787
|
/**
|
|
1788
1788
|
* Opacity
|
|
1789
1789
|
* @see https://tailwindcss.com/docs/opacity
|
|
1790
1790
|
*/
|
|
1791
1791
|
opacity: [{
|
|
1792
|
-
opacity: [z,
|
|
1792
|
+
opacity: [z, b, p]
|
|
1793
1793
|
}],
|
|
1794
1794
|
/**
|
|
1795
1795
|
* Mix Blend Mode
|
|
@@ -1827,103 +1827,103 @@ const pr = (e, t) => {
|
|
|
1827
1827
|
"mask-linear": [z]
|
|
1828
1828
|
}],
|
|
1829
1829
|
"mask-image-linear-from-pos": [{
|
|
1830
|
-
"mask-linear-from":
|
|
1830
|
+
"mask-linear-from": I()
|
|
1831
1831
|
}],
|
|
1832
1832
|
"mask-image-linear-to-pos": [{
|
|
1833
|
-
"mask-linear-to":
|
|
1833
|
+
"mask-linear-to": I()
|
|
1834
1834
|
}],
|
|
1835
1835
|
"mask-image-linear-from-color": [{
|
|
1836
|
-
"mask-linear-from":
|
|
1836
|
+
"mask-linear-from": v()
|
|
1837
1837
|
}],
|
|
1838
1838
|
"mask-image-linear-to-color": [{
|
|
1839
|
-
"mask-linear-to":
|
|
1839
|
+
"mask-linear-to": v()
|
|
1840
1840
|
}],
|
|
1841
1841
|
"mask-image-t-from-pos": [{
|
|
1842
|
-
"mask-t-from":
|
|
1842
|
+
"mask-t-from": I()
|
|
1843
1843
|
}],
|
|
1844
1844
|
"mask-image-t-to-pos": [{
|
|
1845
|
-
"mask-t-to":
|
|
1845
|
+
"mask-t-to": I()
|
|
1846
1846
|
}],
|
|
1847
1847
|
"mask-image-t-from-color": [{
|
|
1848
|
-
"mask-t-from":
|
|
1848
|
+
"mask-t-from": v()
|
|
1849
1849
|
}],
|
|
1850
1850
|
"mask-image-t-to-color": [{
|
|
1851
|
-
"mask-t-to":
|
|
1851
|
+
"mask-t-to": v()
|
|
1852
1852
|
}],
|
|
1853
1853
|
"mask-image-r-from-pos": [{
|
|
1854
|
-
"mask-r-from":
|
|
1854
|
+
"mask-r-from": I()
|
|
1855
1855
|
}],
|
|
1856
1856
|
"mask-image-r-to-pos": [{
|
|
1857
|
-
"mask-r-to":
|
|
1857
|
+
"mask-r-to": I()
|
|
1858
1858
|
}],
|
|
1859
1859
|
"mask-image-r-from-color": [{
|
|
1860
|
-
"mask-r-from":
|
|
1860
|
+
"mask-r-from": v()
|
|
1861
1861
|
}],
|
|
1862
1862
|
"mask-image-r-to-color": [{
|
|
1863
|
-
"mask-r-to":
|
|
1863
|
+
"mask-r-to": v()
|
|
1864
1864
|
}],
|
|
1865
1865
|
"mask-image-b-from-pos": [{
|
|
1866
|
-
"mask-b-from":
|
|
1866
|
+
"mask-b-from": I()
|
|
1867
1867
|
}],
|
|
1868
1868
|
"mask-image-b-to-pos": [{
|
|
1869
|
-
"mask-b-to":
|
|
1869
|
+
"mask-b-to": I()
|
|
1870
1870
|
}],
|
|
1871
1871
|
"mask-image-b-from-color": [{
|
|
1872
|
-
"mask-b-from":
|
|
1872
|
+
"mask-b-from": v()
|
|
1873
1873
|
}],
|
|
1874
1874
|
"mask-image-b-to-color": [{
|
|
1875
|
-
"mask-b-to":
|
|
1875
|
+
"mask-b-to": v()
|
|
1876
1876
|
}],
|
|
1877
1877
|
"mask-image-l-from-pos": [{
|
|
1878
|
-
"mask-l-from":
|
|
1878
|
+
"mask-l-from": I()
|
|
1879
1879
|
}],
|
|
1880
1880
|
"mask-image-l-to-pos": [{
|
|
1881
|
-
"mask-l-to":
|
|
1881
|
+
"mask-l-to": I()
|
|
1882
1882
|
}],
|
|
1883
1883
|
"mask-image-l-from-color": [{
|
|
1884
|
-
"mask-l-from":
|
|
1884
|
+
"mask-l-from": v()
|
|
1885
1885
|
}],
|
|
1886
1886
|
"mask-image-l-to-color": [{
|
|
1887
|
-
"mask-l-to":
|
|
1887
|
+
"mask-l-to": v()
|
|
1888
1888
|
}],
|
|
1889
1889
|
"mask-image-x-from-pos": [{
|
|
1890
|
-
"mask-x-from":
|
|
1890
|
+
"mask-x-from": I()
|
|
1891
1891
|
}],
|
|
1892
1892
|
"mask-image-x-to-pos": [{
|
|
1893
|
-
"mask-x-to":
|
|
1893
|
+
"mask-x-to": I()
|
|
1894
1894
|
}],
|
|
1895
1895
|
"mask-image-x-from-color": [{
|
|
1896
|
-
"mask-x-from":
|
|
1896
|
+
"mask-x-from": v()
|
|
1897
1897
|
}],
|
|
1898
1898
|
"mask-image-x-to-color": [{
|
|
1899
|
-
"mask-x-to":
|
|
1899
|
+
"mask-x-to": v()
|
|
1900
1900
|
}],
|
|
1901
1901
|
"mask-image-y-from-pos": [{
|
|
1902
|
-
"mask-y-from":
|
|
1902
|
+
"mask-y-from": I()
|
|
1903
1903
|
}],
|
|
1904
1904
|
"mask-image-y-to-pos": [{
|
|
1905
|
-
"mask-y-to":
|
|
1905
|
+
"mask-y-to": I()
|
|
1906
1906
|
}],
|
|
1907
1907
|
"mask-image-y-from-color": [{
|
|
1908
|
-
"mask-y-from":
|
|
1908
|
+
"mask-y-from": v()
|
|
1909
1909
|
}],
|
|
1910
1910
|
"mask-image-y-to-color": [{
|
|
1911
|
-
"mask-y-to":
|
|
1911
|
+
"mask-y-to": v()
|
|
1912
1912
|
}],
|
|
1913
1913
|
"mask-image-radial": [{
|
|
1914
|
-
"mask-radial": [
|
|
1914
|
+
"mask-radial": [b, p]
|
|
1915
1915
|
}],
|
|
1916
1916
|
"mask-image-radial-from-pos": [{
|
|
1917
|
-
"mask-radial-from":
|
|
1917
|
+
"mask-radial-from": I()
|
|
1918
1918
|
}],
|
|
1919
1919
|
"mask-image-radial-to-pos": [{
|
|
1920
|
-
"mask-radial-to":
|
|
1920
|
+
"mask-radial-to": I()
|
|
1921
1921
|
}],
|
|
1922
1922
|
"mask-image-radial-from-color": [{
|
|
1923
|
-
"mask-radial-from":
|
|
1923
|
+
"mask-radial-from": v()
|
|
1924
1924
|
}],
|
|
1925
1925
|
"mask-image-radial-to-color": [{
|
|
1926
|
-
"mask-radial-to":
|
|
1926
|
+
"mask-radial-to": v()
|
|
1927
1927
|
}],
|
|
1928
1928
|
"mask-image-radial-shape": [{
|
|
1929
1929
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -1935,22 +1935,22 @@ const pr = (e, t) => {
|
|
|
1935
1935
|
}]
|
|
1936
1936
|
}],
|
|
1937
1937
|
"mask-image-radial-pos": [{
|
|
1938
|
-
"mask-radial-at":
|
|
1938
|
+
"mask-radial-at": F()
|
|
1939
1939
|
}],
|
|
1940
1940
|
"mask-image-conic-pos": [{
|
|
1941
1941
|
"mask-conic": [z]
|
|
1942
1942
|
}],
|
|
1943
1943
|
"mask-image-conic-from-pos": [{
|
|
1944
|
-
"mask-conic-from":
|
|
1944
|
+
"mask-conic-from": I()
|
|
1945
1945
|
}],
|
|
1946
1946
|
"mask-image-conic-to-pos": [{
|
|
1947
|
-
"mask-conic-to":
|
|
1947
|
+
"mask-conic-to": I()
|
|
1948
1948
|
}],
|
|
1949
1949
|
"mask-image-conic-from-color": [{
|
|
1950
|
-
"mask-conic-from":
|
|
1950
|
+
"mask-conic-from": v()
|
|
1951
1951
|
}],
|
|
1952
1952
|
"mask-image-conic-to-color": [{
|
|
1953
|
-
"mask-conic-to":
|
|
1953
|
+
"mask-conic-to": v()
|
|
1954
1954
|
}],
|
|
1955
1955
|
/**
|
|
1956
1956
|
* Mask Mode
|
|
@@ -1978,14 +1978,14 @@ const pr = (e, t) => {
|
|
|
1978
1978
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
1979
1979
|
*/
|
|
1980
1980
|
"mask-repeat": [{
|
|
1981
|
-
mask:
|
|
1981
|
+
mask: Ne()
|
|
1982
1982
|
}],
|
|
1983
1983
|
/**
|
|
1984
1984
|
* Mask Size
|
|
1985
1985
|
* @see https://tailwindcss.com/docs/mask-size
|
|
1986
1986
|
*/
|
|
1987
1987
|
"mask-size": [{
|
|
1988
|
-
mask:
|
|
1988
|
+
mask: ke()
|
|
1989
1989
|
}],
|
|
1990
1990
|
/**
|
|
1991
1991
|
* Mask Type
|
|
@@ -1999,7 +1999,7 @@ const pr = (e, t) => {
|
|
|
1999
1999
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2000
2000
|
*/
|
|
2001
2001
|
"mask-image": [{
|
|
2002
|
-
mask: ["none",
|
|
2002
|
+
mask: ["none", b, p]
|
|
2003
2003
|
}],
|
|
2004
2004
|
// ---------------
|
|
2005
2005
|
// --- Filters ---
|
|
@@ -2013,8 +2013,8 @@ const pr = (e, t) => {
|
|
|
2013
2013
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2014
2014
|
"",
|
|
2015
2015
|
"none",
|
|
2016
|
-
|
|
2017
|
-
|
|
2016
|
+
b,
|
|
2017
|
+
p
|
|
2018
2018
|
]
|
|
2019
2019
|
}],
|
|
2020
2020
|
/**
|
|
@@ -2022,21 +2022,21 @@ const pr = (e, t) => {
|
|
|
2022
2022
|
* @see https://tailwindcss.com/docs/blur
|
|
2023
2023
|
*/
|
|
2024
2024
|
blur: [{
|
|
2025
|
-
blur:
|
|
2025
|
+
blur: Se()
|
|
2026
2026
|
}],
|
|
2027
2027
|
/**
|
|
2028
2028
|
* Brightness
|
|
2029
2029
|
* @see https://tailwindcss.com/docs/brightness
|
|
2030
2030
|
*/
|
|
2031
2031
|
brightness: [{
|
|
2032
|
-
brightness: [z,
|
|
2032
|
+
brightness: [z, b, p]
|
|
2033
2033
|
}],
|
|
2034
2034
|
/**
|
|
2035
2035
|
* Contrast
|
|
2036
2036
|
* @see https://tailwindcss.com/docs/contrast
|
|
2037
2037
|
*/
|
|
2038
2038
|
contrast: [{
|
|
2039
|
-
contrast: [z,
|
|
2039
|
+
contrast: [z, b, p]
|
|
2040
2040
|
}],
|
|
2041
2041
|
/**
|
|
2042
2042
|
* Drop Shadow
|
|
@@ -2047,9 +2047,9 @@ const pr = (e, t) => {
|
|
|
2047
2047
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2048
2048
|
"",
|
|
2049
2049
|
"none",
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2050
|
+
N,
|
|
2051
|
+
de,
|
|
2052
|
+
ce
|
|
2053
2053
|
]
|
|
2054
2054
|
}],
|
|
2055
2055
|
/**
|
|
@@ -2057,42 +2057,42 @@ const pr = (e, t) => {
|
|
|
2057
2057
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2058
2058
|
*/
|
|
2059
2059
|
"drop-shadow-color": [{
|
|
2060
|
-
"drop-shadow":
|
|
2060
|
+
"drop-shadow": v()
|
|
2061
2061
|
}],
|
|
2062
2062
|
/**
|
|
2063
2063
|
* Grayscale
|
|
2064
2064
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2065
2065
|
*/
|
|
2066
2066
|
grayscale: [{
|
|
2067
|
-
grayscale: ["", z,
|
|
2067
|
+
grayscale: ["", z, b, p]
|
|
2068
2068
|
}],
|
|
2069
2069
|
/**
|
|
2070
2070
|
* Hue Rotate
|
|
2071
2071
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2072
2072
|
*/
|
|
2073
2073
|
"hue-rotate": [{
|
|
2074
|
-
"hue-rotate": [z,
|
|
2074
|
+
"hue-rotate": [z, b, p]
|
|
2075
2075
|
}],
|
|
2076
2076
|
/**
|
|
2077
2077
|
* Invert
|
|
2078
2078
|
* @see https://tailwindcss.com/docs/invert
|
|
2079
2079
|
*/
|
|
2080
2080
|
invert: [{
|
|
2081
|
-
invert: ["", z,
|
|
2081
|
+
invert: ["", z, b, p]
|
|
2082
2082
|
}],
|
|
2083
2083
|
/**
|
|
2084
2084
|
* Saturate
|
|
2085
2085
|
* @see https://tailwindcss.com/docs/saturate
|
|
2086
2086
|
*/
|
|
2087
2087
|
saturate: [{
|
|
2088
|
-
saturate: [z,
|
|
2088
|
+
saturate: [z, b, p]
|
|
2089
2089
|
}],
|
|
2090
2090
|
/**
|
|
2091
2091
|
* Sepia
|
|
2092
2092
|
* @see https://tailwindcss.com/docs/sepia
|
|
2093
2093
|
*/
|
|
2094
2094
|
sepia: [{
|
|
2095
|
-
sepia: ["", z,
|
|
2095
|
+
sepia: ["", z, b, p]
|
|
2096
2096
|
}],
|
|
2097
2097
|
/**
|
|
2098
2098
|
* Backdrop Filter
|
|
@@ -2103,8 +2103,8 @@ const pr = (e, t) => {
|
|
|
2103
2103
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2104
2104
|
"",
|
|
2105
2105
|
"none",
|
|
2106
|
-
|
|
2107
|
-
|
|
2106
|
+
b,
|
|
2107
|
+
p
|
|
2108
2108
|
]
|
|
2109
2109
|
}],
|
|
2110
2110
|
/**
|
|
@@ -2112,63 +2112,63 @@ const pr = (e, t) => {
|
|
|
2112
2112
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2113
2113
|
*/
|
|
2114
2114
|
"backdrop-blur": [{
|
|
2115
|
-
"backdrop-blur":
|
|
2115
|
+
"backdrop-blur": Se()
|
|
2116
2116
|
}],
|
|
2117
2117
|
/**
|
|
2118
2118
|
* Backdrop Brightness
|
|
2119
2119
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2120
2120
|
*/
|
|
2121
2121
|
"backdrop-brightness": [{
|
|
2122
|
-
"backdrop-brightness": [z,
|
|
2122
|
+
"backdrop-brightness": [z, b, p]
|
|
2123
2123
|
}],
|
|
2124
2124
|
/**
|
|
2125
2125
|
* Backdrop Contrast
|
|
2126
2126
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2127
2127
|
*/
|
|
2128
2128
|
"backdrop-contrast": [{
|
|
2129
|
-
"backdrop-contrast": [z,
|
|
2129
|
+
"backdrop-contrast": [z, b, p]
|
|
2130
2130
|
}],
|
|
2131
2131
|
/**
|
|
2132
2132
|
* Backdrop Grayscale
|
|
2133
2133
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2134
2134
|
*/
|
|
2135
2135
|
"backdrop-grayscale": [{
|
|
2136
|
-
"backdrop-grayscale": ["", z,
|
|
2136
|
+
"backdrop-grayscale": ["", z, b, p]
|
|
2137
2137
|
}],
|
|
2138
2138
|
/**
|
|
2139
2139
|
* Backdrop Hue Rotate
|
|
2140
2140
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2141
2141
|
*/
|
|
2142
2142
|
"backdrop-hue-rotate": [{
|
|
2143
|
-
"backdrop-hue-rotate": [z,
|
|
2143
|
+
"backdrop-hue-rotate": [z, b, p]
|
|
2144
2144
|
}],
|
|
2145
2145
|
/**
|
|
2146
2146
|
* Backdrop Invert
|
|
2147
2147
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2148
2148
|
*/
|
|
2149
2149
|
"backdrop-invert": [{
|
|
2150
|
-
"backdrop-invert": ["", z,
|
|
2150
|
+
"backdrop-invert": ["", z, b, p]
|
|
2151
2151
|
}],
|
|
2152
2152
|
/**
|
|
2153
2153
|
* Backdrop Opacity
|
|
2154
2154
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2155
2155
|
*/
|
|
2156
2156
|
"backdrop-opacity": [{
|
|
2157
|
-
"backdrop-opacity": [z,
|
|
2157
|
+
"backdrop-opacity": [z, b, p]
|
|
2158
2158
|
}],
|
|
2159
2159
|
/**
|
|
2160
2160
|
* Backdrop Saturate
|
|
2161
2161
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2162
2162
|
*/
|
|
2163
2163
|
"backdrop-saturate": [{
|
|
2164
|
-
"backdrop-saturate": [z,
|
|
2164
|
+
"backdrop-saturate": [z, b, p]
|
|
2165
2165
|
}],
|
|
2166
2166
|
/**
|
|
2167
2167
|
* Backdrop Sepia
|
|
2168
2168
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2169
2169
|
*/
|
|
2170
2170
|
"backdrop-sepia": [{
|
|
2171
|
-
"backdrop-sepia": ["", z,
|
|
2171
|
+
"backdrop-sepia": ["", z, b, p]
|
|
2172
2172
|
}],
|
|
2173
2173
|
// --------------
|
|
2174
2174
|
// --- Tables ---
|
|
@@ -2185,21 +2185,21 @@ const pr = (e, t) => {
|
|
|
2185
2185
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2186
2186
|
*/
|
|
2187
2187
|
"border-spacing": [{
|
|
2188
|
-
"border-spacing":
|
|
2188
|
+
"border-spacing": f()
|
|
2189
2189
|
}],
|
|
2190
2190
|
/**
|
|
2191
2191
|
* Border Spacing X
|
|
2192
2192
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2193
2193
|
*/
|
|
2194
2194
|
"border-spacing-x": [{
|
|
2195
|
-
"border-spacing-x":
|
|
2195
|
+
"border-spacing-x": f()
|
|
2196
2196
|
}],
|
|
2197
2197
|
/**
|
|
2198
2198
|
* Border Spacing Y
|
|
2199
2199
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2200
2200
|
*/
|
|
2201
2201
|
"border-spacing-y": [{
|
|
2202
|
-
"border-spacing-y":
|
|
2202
|
+
"border-spacing-y": f()
|
|
2203
2203
|
}],
|
|
2204
2204
|
/**
|
|
2205
2205
|
* Table Layout
|
|
@@ -2223,7 +2223,7 @@ const pr = (e, t) => {
|
|
|
2223
2223
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2224
2224
|
*/
|
|
2225
2225
|
transition: [{
|
|
2226
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2226
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", b, p]
|
|
2227
2227
|
}],
|
|
2228
2228
|
/**
|
|
2229
2229
|
* Transition Behavior
|
|
@@ -2237,28 +2237,28 @@ const pr = (e, t) => {
|
|
|
2237
2237
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2238
2238
|
*/
|
|
2239
2239
|
duration: [{
|
|
2240
|
-
duration: [z, "initial",
|
|
2240
|
+
duration: [z, "initial", b, p]
|
|
2241
2241
|
}],
|
|
2242
2242
|
/**
|
|
2243
2243
|
* Transition Timing Function
|
|
2244
2244
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2245
2245
|
*/
|
|
2246
2246
|
ease: [{
|
|
2247
|
-
ease: ["linear", "initial",
|
|
2247
|
+
ease: ["linear", "initial", j, b, p]
|
|
2248
2248
|
}],
|
|
2249
2249
|
/**
|
|
2250
2250
|
* Transition Delay
|
|
2251
2251
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2252
2252
|
*/
|
|
2253
2253
|
delay: [{
|
|
2254
|
-
delay: [z,
|
|
2254
|
+
delay: [z, b, p]
|
|
2255
2255
|
}],
|
|
2256
2256
|
/**
|
|
2257
2257
|
* Animation
|
|
2258
2258
|
* @see https://tailwindcss.com/docs/animation
|
|
2259
2259
|
*/
|
|
2260
2260
|
animate: [{
|
|
2261
|
-
animate: ["none",
|
|
2261
|
+
animate: ["none", L, b, p]
|
|
2262
2262
|
}],
|
|
2263
2263
|
// ------------------
|
|
2264
2264
|
// --- Transforms ---
|
|
@@ -2275,70 +2275,70 @@ const pr = (e, t) => {
|
|
|
2275
2275
|
* @see https://tailwindcss.com/docs/perspective
|
|
2276
2276
|
*/
|
|
2277
2277
|
perspective: [{
|
|
2278
|
-
perspective: [
|
|
2278
|
+
perspective: [w, b, p]
|
|
2279
2279
|
}],
|
|
2280
2280
|
/**
|
|
2281
2281
|
* Perspective Origin
|
|
2282
2282
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2283
2283
|
*/
|
|
2284
2284
|
"perspective-origin": [{
|
|
2285
|
-
"perspective-origin":
|
|
2285
|
+
"perspective-origin": P()
|
|
2286
2286
|
}],
|
|
2287
2287
|
/**
|
|
2288
2288
|
* Rotate
|
|
2289
2289
|
* @see https://tailwindcss.com/docs/rotate
|
|
2290
2290
|
*/
|
|
2291
2291
|
rotate: [{
|
|
2292
|
-
rotate:
|
|
2292
|
+
rotate: ne()
|
|
2293
2293
|
}],
|
|
2294
2294
|
/**
|
|
2295
2295
|
* Rotate X
|
|
2296
2296
|
* @see https://tailwindcss.com/docs/rotate
|
|
2297
2297
|
*/
|
|
2298
2298
|
"rotate-x": [{
|
|
2299
|
-
"rotate-x":
|
|
2299
|
+
"rotate-x": ne()
|
|
2300
2300
|
}],
|
|
2301
2301
|
/**
|
|
2302
2302
|
* Rotate Y
|
|
2303
2303
|
* @see https://tailwindcss.com/docs/rotate
|
|
2304
2304
|
*/
|
|
2305
2305
|
"rotate-y": [{
|
|
2306
|
-
"rotate-y":
|
|
2306
|
+
"rotate-y": ne()
|
|
2307
2307
|
}],
|
|
2308
2308
|
/**
|
|
2309
2309
|
* Rotate Z
|
|
2310
2310
|
* @see https://tailwindcss.com/docs/rotate
|
|
2311
2311
|
*/
|
|
2312
2312
|
"rotate-z": [{
|
|
2313
|
-
"rotate-z":
|
|
2313
|
+
"rotate-z": ne()
|
|
2314
2314
|
}],
|
|
2315
2315
|
/**
|
|
2316
2316
|
* Scale
|
|
2317
2317
|
* @see https://tailwindcss.com/docs/scale
|
|
2318
2318
|
*/
|
|
2319
2319
|
scale: [{
|
|
2320
|
-
scale:
|
|
2320
|
+
scale: ie()
|
|
2321
2321
|
}],
|
|
2322
2322
|
/**
|
|
2323
2323
|
* Scale X
|
|
2324
2324
|
* @see https://tailwindcss.com/docs/scale
|
|
2325
2325
|
*/
|
|
2326
2326
|
"scale-x": [{
|
|
2327
|
-
"scale-x":
|
|
2327
|
+
"scale-x": ie()
|
|
2328
2328
|
}],
|
|
2329
2329
|
/**
|
|
2330
2330
|
* Scale Y
|
|
2331
2331
|
* @see https://tailwindcss.com/docs/scale
|
|
2332
2332
|
*/
|
|
2333
2333
|
"scale-y": [{
|
|
2334
|
-
"scale-y":
|
|
2334
|
+
"scale-y": ie()
|
|
2335
2335
|
}],
|
|
2336
2336
|
/**
|
|
2337
2337
|
* Scale Z
|
|
2338
2338
|
* @see https://tailwindcss.com/docs/scale
|
|
2339
2339
|
*/
|
|
2340
2340
|
"scale-z": [{
|
|
2341
|
-
"scale-z":
|
|
2341
|
+
"scale-z": ie()
|
|
2342
2342
|
}],
|
|
2343
2343
|
/**
|
|
2344
2344
|
* Scale 3D
|
|
@@ -2371,14 +2371,14 @@ const pr = (e, t) => {
|
|
|
2371
2371
|
* @see https://tailwindcss.com/docs/transform
|
|
2372
2372
|
*/
|
|
2373
2373
|
transform: [{
|
|
2374
|
-
transform: [
|
|
2374
|
+
transform: [b, p, "", "none", "gpu", "cpu"]
|
|
2375
2375
|
}],
|
|
2376
2376
|
/**
|
|
2377
2377
|
* Transform Origin
|
|
2378
2378
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2379
2379
|
*/
|
|
2380
2380
|
"transform-origin": [{
|
|
2381
|
-
origin:
|
|
2381
|
+
origin: P()
|
|
2382
2382
|
}],
|
|
2383
2383
|
/**
|
|
2384
2384
|
* Transform Style
|
|
@@ -2392,28 +2392,28 @@ const pr = (e, t) => {
|
|
|
2392
2392
|
* @see https://tailwindcss.com/docs/translate
|
|
2393
2393
|
*/
|
|
2394
2394
|
translate: [{
|
|
2395
|
-
translate:
|
|
2395
|
+
translate: le()
|
|
2396
2396
|
}],
|
|
2397
2397
|
/**
|
|
2398
2398
|
* Translate X
|
|
2399
2399
|
* @see https://tailwindcss.com/docs/translate
|
|
2400
2400
|
*/
|
|
2401
2401
|
"translate-x": [{
|
|
2402
|
-
"translate-x":
|
|
2402
|
+
"translate-x": le()
|
|
2403
2403
|
}],
|
|
2404
2404
|
/**
|
|
2405
2405
|
* Translate Y
|
|
2406
2406
|
* @see https://tailwindcss.com/docs/translate
|
|
2407
2407
|
*/
|
|
2408
2408
|
"translate-y": [{
|
|
2409
|
-
"translate-y":
|
|
2409
|
+
"translate-y": le()
|
|
2410
2410
|
}],
|
|
2411
2411
|
/**
|
|
2412
2412
|
* Translate Z
|
|
2413
2413
|
* @see https://tailwindcss.com/docs/translate
|
|
2414
2414
|
*/
|
|
2415
2415
|
"translate-z": [{
|
|
2416
|
-
"translate-z":
|
|
2416
|
+
"translate-z": le()
|
|
2417
2417
|
}],
|
|
2418
2418
|
/**
|
|
2419
2419
|
* Translate None
|
|
@@ -2428,7 +2428,7 @@ const pr = (e, t) => {
|
|
|
2428
2428
|
* @see https://tailwindcss.com/docs/accent-color
|
|
2429
2429
|
*/
|
|
2430
2430
|
accent: [{
|
|
2431
|
-
accent:
|
|
2431
|
+
accent: v()
|
|
2432
2432
|
}],
|
|
2433
2433
|
/**
|
|
2434
2434
|
* Appearance
|
|
@@ -2442,7 +2442,7 @@ const pr = (e, t) => {
|
|
|
2442
2442
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2443
2443
|
*/
|
|
2444
2444
|
"caret-color": [{
|
|
2445
|
-
caret:
|
|
2445
|
+
caret: v()
|
|
2446
2446
|
}],
|
|
2447
2447
|
/**
|
|
2448
2448
|
* Color Scheme
|
|
@@ -2456,7 +2456,7 @@ const pr = (e, t) => {
|
|
|
2456
2456
|
* @see https://tailwindcss.com/docs/cursor
|
|
2457
2457
|
*/
|
|
2458
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",
|
|
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", b, p]
|
|
2460
2460
|
}],
|
|
2461
2461
|
/**
|
|
2462
2462
|
* Field Sizing
|
|
@@ -2491,126 +2491,126 @@ const pr = (e, t) => {
|
|
|
2491
2491
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2492
2492
|
*/
|
|
2493
2493
|
"scroll-m": [{
|
|
2494
|
-
"scroll-m":
|
|
2494
|
+
"scroll-m": f()
|
|
2495
2495
|
}],
|
|
2496
2496
|
/**
|
|
2497
2497
|
* Scroll Margin X
|
|
2498
2498
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2499
2499
|
*/
|
|
2500
2500
|
"scroll-mx": [{
|
|
2501
|
-
"scroll-mx":
|
|
2501
|
+
"scroll-mx": f()
|
|
2502
2502
|
}],
|
|
2503
2503
|
/**
|
|
2504
2504
|
* Scroll Margin Y
|
|
2505
2505
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2506
2506
|
*/
|
|
2507
2507
|
"scroll-my": [{
|
|
2508
|
-
"scroll-my":
|
|
2508
|
+
"scroll-my": f()
|
|
2509
2509
|
}],
|
|
2510
2510
|
/**
|
|
2511
2511
|
* Scroll Margin Start
|
|
2512
2512
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2513
2513
|
*/
|
|
2514
2514
|
"scroll-ms": [{
|
|
2515
|
-
"scroll-ms":
|
|
2515
|
+
"scroll-ms": f()
|
|
2516
2516
|
}],
|
|
2517
2517
|
/**
|
|
2518
2518
|
* Scroll Margin End
|
|
2519
2519
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2520
2520
|
*/
|
|
2521
2521
|
"scroll-me": [{
|
|
2522
|
-
"scroll-me":
|
|
2522
|
+
"scroll-me": f()
|
|
2523
2523
|
}],
|
|
2524
2524
|
/**
|
|
2525
2525
|
* Scroll Margin Top
|
|
2526
2526
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2527
2527
|
*/
|
|
2528
2528
|
"scroll-mt": [{
|
|
2529
|
-
"scroll-mt":
|
|
2529
|
+
"scroll-mt": f()
|
|
2530
2530
|
}],
|
|
2531
2531
|
/**
|
|
2532
2532
|
* Scroll Margin Right
|
|
2533
2533
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2534
2534
|
*/
|
|
2535
2535
|
"scroll-mr": [{
|
|
2536
|
-
"scroll-mr":
|
|
2536
|
+
"scroll-mr": f()
|
|
2537
2537
|
}],
|
|
2538
2538
|
/**
|
|
2539
2539
|
* Scroll Margin Bottom
|
|
2540
2540
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2541
2541
|
*/
|
|
2542
2542
|
"scroll-mb": [{
|
|
2543
|
-
"scroll-mb":
|
|
2543
|
+
"scroll-mb": f()
|
|
2544
2544
|
}],
|
|
2545
2545
|
/**
|
|
2546
2546
|
* Scroll Margin Left
|
|
2547
2547
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2548
2548
|
*/
|
|
2549
2549
|
"scroll-ml": [{
|
|
2550
|
-
"scroll-ml":
|
|
2550
|
+
"scroll-ml": f()
|
|
2551
2551
|
}],
|
|
2552
2552
|
/**
|
|
2553
2553
|
* Scroll Padding
|
|
2554
2554
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2555
2555
|
*/
|
|
2556
2556
|
"scroll-p": [{
|
|
2557
|
-
"scroll-p":
|
|
2557
|
+
"scroll-p": f()
|
|
2558
2558
|
}],
|
|
2559
2559
|
/**
|
|
2560
2560
|
* Scroll Padding X
|
|
2561
2561
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2562
2562
|
*/
|
|
2563
2563
|
"scroll-px": [{
|
|
2564
|
-
"scroll-px":
|
|
2564
|
+
"scroll-px": f()
|
|
2565
2565
|
}],
|
|
2566
2566
|
/**
|
|
2567
2567
|
* Scroll Padding Y
|
|
2568
2568
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2569
2569
|
*/
|
|
2570
2570
|
"scroll-py": [{
|
|
2571
|
-
"scroll-py":
|
|
2571
|
+
"scroll-py": f()
|
|
2572
2572
|
}],
|
|
2573
2573
|
/**
|
|
2574
2574
|
* Scroll Padding Start
|
|
2575
2575
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2576
2576
|
*/
|
|
2577
2577
|
"scroll-ps": [{
|
|
2578
|
-
"scroll-ps":
|
|
2578
|
+
"scroll-ps": f()
|
|
2579
2579
|
}],
|
|
2580
2580
|
/**
|
|
2581
2581
|
* Scroll Padding End
|
|
2582
2582
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2583
2583
|
*/
|
|
2584
2584
|
"scroll-pe": [{
|
|
2585
|
-
"scroll-pe":
|
|
2585
|
+
"scroll-pe": f()
|
|
2586
2586
|
}],
|
|
2587
2587
|
/**
|
|
2588
2588
|
* Scroll Padding Top
|
|
2589
2589
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2590
2590
|
*/
|
|
2591
2591
|
"scroll-pt": [{
|
|
2592
|
-
"scroll-pt":
|
|
2592
|
+
"scroll-pt": f()
|
|
2593
2593
|
}],
|
|
2594
2594
|
/**
|
|
2595
2595
|
* Scroll Padding Right
|
|
2596
2596
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2597
2597
|
*/
|
|
2598
2598
|
"scroll-pr": [{
|
|
2599
|
-
"scroll-pr":
|
|
2599
|
+
"scroll-pr": f()
|
|
2600
2600
|
}],
|
|
2601
2601
|
/**
|
|
2602
2602
|
* Scroll Padding Bottom
|
|
2603
2603
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2604
2604
|
*/
|
|
2605
2605
|
"scroll-pb": [{
|
|
2606
|
-
"scroll-pb":
|
|
2606
|
+
"scroll-pb": f()
|
|
2607
2607
|
}],
|
|
2608
2608
|
/**
|
|
2609
2609
|
* Scroll Padding Left
|
|
2610
2610
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2611
2611
|
*/
|
|
2612
2612
|
"scroll-pl": [{
|
|
2613
|
-
"scroll-pl":
|
|
2613
|
+
"scroll-pl": f()
|
|
2614
2614
|
}],
|
|
2615
2615
|
/**
|
|
2616
2616
|
* Scroll Snap Align
|
|
@@ -2678,7 +2678,7 @@ const pr = (e, t) => {
|
|
|
2678
2678
|
* @see https://tailwindcss.com/docs/will-change
|
|
2679
2679
|
*/
|
|
2680
2680
|
"will-change": [{
|
|
2681
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2681
|
+
"will-change": ["auto", "scroll", "contents", "transform", b, p]
|
|
2682
2682
|
}],
|
|
2683
2683
|
// -----------
|
|
2684
2684
|
// --- SVG ---
|
|
@@ -2688,21 +2688,21 @@ const pr = (e, t) => {
|
|
|
2688
2688
|
* @see https://tailwindcss.com/docs/fill
|
|
2689
2689
|
*/
|
|
2690
2690
|
fill: [{
|
|
2691
|
-
fill: ["none", ...
|
|
2691
|
+
fill: ["none", ...v()]
|
|
2692
2692
|
}],
|
|
2693
2693
|
/**
|
|
2694
2694
|
* Stroke Width
|
|
2695
2695
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2696
2696
|
*/
|
|
2697
2697
|
"stroke-w": [{
|
|
2698
|
-
stroke: [z,
|
|
2698
|
+
stroke: [z, oe, K, fe]
|
|
2699
2699
|
}],
|
|
2700
2700
|
/**
|
|
2701
2701
|
* Stroke
|
|
2702
2702
|
* @see https://tailwindcss.com/docs/stroke
|
|
2703
2703
|
*/
|
|
2704
2704
|
stroke: [{
|
|
2705
|
-
stroke: ["none", ...
|
|
2705
|
+
stroke: ["none", ...v()]
|
|
2706
2706
|
}],
|
|
2707
2707
|
// ---------------------
|
|
2708
2708
|
// --- Accessibility ---
|
|
@@ -2770,11 +2770,11 @@ const pr = (e, t) => {
|
|
|
2770
2770
|
},
|
|
2771
2771
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2772
2772
|
};
|
|
2773
|
-
},
|
|
2774
|
-
function
|
|
2775
|
-
return
|
|
2773
|
+
}, dt = /* @__PURE__ */ Vr(ct);
|
|
2774
|
+
function u(...e) {
|
|
2775
|
+
return dt(Nr(e));
|
|
2776
2776
|
}
|
|
2777
|
-
const xe =
|
|
2777
|
+
const xe = Le.forwardRef(
|
|
2778
2778
|
({ variant: e = "primary", size: t = "md", loading: a, icon: o, className: n, children: l, disabled: s, ...c }, i) => {
|
|
2779
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
2780
|
primary: "bg-primary text-white hover:bg-primary-dark active:bg-primary-dark/90 shadow-sm",
|
|
@@ -2782,7 +2782,7 @@ const xe = De.forwardRef(
|
|
|
2782
2782
|
outline: "bg-transparent text-primary border-2 border-primary hover:bg-secondary active:bg-border",
|
|
2783
2783
|
ghost: "bg-transparent text-primary hover:bg-secondary active:bg-border",
|
|
2784
2784
|
danger: "bg-error text-white hover:bg-red-600 active:bg-red-700 shadow-sm"
|
|
2785
|
-
},
|
|
2785
|
+
}, y = {
|
|
2786
2786
|
sm: "px-3 py-2 text-sm min-h-[2.25rem]",
|
|
2787
2787
|
md: "px-4 py-2.5 text-base min-h-[2.75rem]",
|
|
2788
2788
|
lg: "px-6 py-3.5 text-lg min-h-[3.25rem]"
|
|
@@ -2792,11 +2792,11 @@ const xe = De.forwardRef(
|
|
|
2792
2792
|
{
|
|
2793
2793
|
ref: i,
|
|
2794
2794
|
whileTap: { scale: s || a ? 1 : 0.98 },
|
|
2795
|
-
className:
|
|
2795
|
+
className: u(m, x[e], y[t], n),
|
|
2796
2796
|
disabled: s || a,
|
|
2797
2797
|
...c,
|
|
2798
2798
|
children: [
|
|
2799
|
-
a ? /* @__PURE__ */ r(
|
|
2799
|
+
a ? /* @__PURE__ */ r(tr, { className: "h-5 w-5 animate-spin" }) : o ? /* @__PURE__ */ r("span", { className: "flex-shrink-0", children: o }) : null,
|
|
2800
2800
|
l
|
|
2801
2801
|
]
|
|
2802
2802
|
}
|
|
@@ -2804,49 +2804,65 @@ const xe = De.forwardRef(
|
|
|
2804
2804
|
}
|
|
2805
2805
|
);
|
|
2806
2806
|
xe.displayName = "Button";
|
|
2807
|
-
const
|
|
2808
|
-
({ label: e, error: t, hint: a, leftIcon: o, rightIcon: n, className: l,
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
/* @__PURE__ */
|
|
2816
|
-
"
|
|
2807
|
+
const mt = ae(
|
|
2808
|
+
({ label: e, error: t, hint: a, leftIcon: o, rightIcon: n, className: l, type: s, ...c }, i) => {
|
|
2809
|
+
const [m, x] = D(!1), y = s === "password", h = y && m ? "text" : s;
|
|
2810
|
+
return /* @__PURE__ */ d("div", { className: "w-full space-y-1.5", children: [
|
|
2811
|
+
e && /* @__PURE__ */ d("label", { className: "block text-sm font-medium text-foreground", children: [
|
|
2812
|
+
e,
|
|
2813
|
+
c.required && /* @__PURE__ */ r("span", { className: "text-error ml-1", children: "*" })
|
|
2814
|
+
] }),
|
|
2815
|
+
/* @__PURE__ */ d("div", { className: "relative", children: [
|
|
2816
|
+
o && /* @__PURE__ */ r("div", { className: "absolute left-3.5 top-1/2 -translate-y-1/2 flex items-center pointer-events-none text-primary", children: o }),
|
|
2817
|
+
/* @__PURE__ */ r(
|
|
2818
|
+
"input",
|
|
2819
|
+
{
|
|
2820
|
+
ref: i,
|
|
2821
|
+
type: h,
|
|
2822
|
+
className: u(
|
|
2823
|
+
"w-full px-4 py-3 rounded-md border transition-all duration-200",
|
|
2824
|
+
"bg-background text-foreground placeholder:text-foreground/50",
|
|
2825
|
+
"focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent",
|
|
2826
|
+
"disabled:bg-secondary disabled:cursor-not-allowed",
|
|
2827
|
+
"touch-target text-base",
|
|
2828
|
+
t && "border-error focus:ring-error",
|
|
2829
|
+
!t && "border-border",
|
|
2830
|
+
o && "pl-11",
|
|
2831
|
+
(n || y) && "pr-11",
|
|
2832
|
+
l
|
|
2833
|
+
),
|
|
2834
|
+
...c
|
|
2835
|
+
}
|
|
2836
|
+
),
|
|
2837
|
+
y && /* @__PURE__ */ r(
|
|
2838
|
+
g.button,
|
|
2839
|
+
{
|
|
2840
|
+
type: "button",
|
|
2841
|
+
onClick: () => x(!m),
|
|
2842
|
+
className: "absolute right-3.5 top-1/2 -translate-y-1/2 flex items-center text-primary hover:text-primary-dark transition-colors",
|
|
2843
|
+
"aria-label": m ? "Hide password" : "Show password",
|
|
2844
|
+
whileTap: { scale: 0.9 },
|
|
2845
|
+
transition: { duration: 0.1 },
|
|
2846
|
+
children: m ? /* @__PURE__ */ r(or, { className: "w-5 h-5" }) : /* @__PURE__ */ r(ar, { className: "w-5 h-5" })
|
|
2847
|
+
}
|
|
2848
|
+
),
|
|
2849
|
+
n && !y && /* @__PURE__ */ r("div", { className: "absolute right-3.5 top-1/2 -translate-y-1/2 flex items-center pointer-events-none text-primary", children: n })
|
|
2850
|
+
] }),
|
|
2851
|
+
t && /* @__PURE__ */ r(
|
|
2852
|
+
g.p,
|
|
2817
2853
|
{
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
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
|
|
2854
|
+
initial: { opacity: 0, y: -5 },
|
|
2855
|
+
animate: { opacity: 1, y: 0 },
|
|
2856
|
+
className: "text-sm text-error",
|
|
2857
|
+
children: t
|
|
2832
2858
|
}
|
|
2833
2859
|
),
|
|
2834
|
-
|
|
2835
|
-
] })
|
|
2836
|
-
|
|
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
|
-
] })
|
|
2860
|
+
a && !t && /* @__PURE__ */ r("p", { className: "text-sm text-primary/70", children: a })
|
|
2861
|
+
] });
|
|
2862
|
+
}
|
|
2847
2863
|
);
|
|
2848
|
-
|
|
2849
|
-
const
|
|
2864
|
+
mt.displayName = "Input";
|
|
2865
|
+
const ut = ae(
|
|
2850
2866
|
({ label: e, error: t, helperText: a, className: o, required: n, ...l }, s) => /* @__PURE__ */ d(
|
|
2851
2867
|
g.div,
|
|
2852
2868
|
{
|
|
@@ -2863,7 +2879,7 @@ const tt = ue(
|
|
|
2863
2879
|
"textarea",
|
|
2864
2880
|
{
|
|
2865
2881
|
ref: s,
|
|
2866
|
-
className:
|
|
2882
|
+
className: u(
|
|
2867
2883
|
"w-full px-4 py-3 bg-background border border-border rounded-md",
|
|
2868
2884
|
"text-foreground placeholder:text-foreground/50",
|
|
2869
2885
|
"focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent",
|
|
@@ -2890,10 +2906,10 @@ const tt = ue(
|
|
|
2890
2906
|
}
|
|
2891
2907
|
)
|
|
2892
2908
|
);
|
|
2893
|
-
|
|
2894
|
-
const
|
|
2909
|
+
ut.displayName = "Textarea";
|
|
2910
|
+
const pt = ae(
|
|
2895
2911
|
({ label: e, description: t, className: a, checked: o, defaultChecked: n, onChange: l, ...s }, c) => {
|
|
2896
|
-
const [i, m] =
|
|
2912
|
+
const [i, m] = D(n || !1), x = o !== void 0 ? o : i;
|
|
2897
2913
|
return /* @__PURE__ */ d("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
|
|
2898
2914
|
/* @__PURE__ */ d("div", { className: "relative flex-shrink-0 mt-0.5", children: [
|
|
2899
2915
|
/* @__PURE__ */ r(
|
|
@@ -2903,8 +2919,8 @@ const ot = ue(
|
|
|
2903
2919
|
type: "checkbox",
|
|
2904
2920
|
className: "sr-only peer",
|
|
2905
2921
|
checked: x,
|
|
2906
|
-
onChange: (
|
|
2907
|
-
o === void 0 && m(
|
|
2922
|
+
onChange: (h) => {
|
|
2923
|
+
o === void 0 && m(h.target.checked), l?.(h.target.checked);
|
|
2908
2924
|
},
|
|
2909
2925
|
...s
|
|
2910
2926
|
}
|
|
@@ -2912,7 +2928,7 @@ const ot = ue(
|
|
|
2912
2928
|
/* @__PURE__ */ r(
|
|
2913
2929
|
g.div,
|
|
2914
2930
|
{
|
|
2915
|
-
className:
|
|
2931
|
+
className: u(
|
|
2916
2932
|
"w-6 h-6 rounded-md border-2 transition-all duration-200",
|
|
2917
2933
|
"peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2",
|
|
2918
2934
|
"peer-disabled:opacity-50 peer-disabled:cursor-not-allowed",
|
|
@@ -2921,7 +2937,7 @@ const ot = ue(
|
|
|
2921
2937
|
a
|
|
2922
2938
|
),
|
|
2923
2939
|
whileTap: { scale: 0.95 },
|
|
2924
|
-
children: /* @__PURE__ */ r(
|
|
2940
|
+
children: /* @__PURE__ */ r(Oe, { className: u(
|
|
2925
2941
|
"w-4 h-4 text-white transition-opacity duration-200",
|
|
2926
2942
|
x ? "opacity-100" : "opacity-0"
|
|
2927
2943
|
) })
|
|
@@ -2935,15 +2951,15 @@ const ot = ue(
|
|
|
2935
2951
|
] });
|
|
2936
2952
|
}
|
|
2937
2953
|
);
|
|
2938
|
-
|
|
2939
|
-
const
|
|
2954
|
+
pt.displayName = "Checkbox";
|
|
2955
|
+
const Rt = ({
|
|
2940
2956
|
options: e,
|
|
2941
2957
|
value: t,
|
|
2942
2958
|
onChange: a,
|
|
2943
2959
|
name: o,
|
|
2944
2960
|
disabled: n,
|
|
2945
2961
|
className: l
|
|
2946
|
-
}) => /* @__PURE__ */ r("div", { className:
|
|
2962
|
+
}) => /* @__PURE__ */ r("div", { className: u("flex flex-wrap gap-2", l), children: e.map((s) => {
|
|
2947
2963
|
const c = t === s.value;
|
|
2948
2964
|
return /* @__PURE__ */ d("label", { className: "relative cursor-pointer", children: [
|
|
2949
2965
|
/* @__PURE__ */ r(
|
|
@@ -2962,7 +2978,7 @@ const dt = ({
|
|
|
2962
2978
|
g.div,
|
|
2963
2979
|
{
|
|
2964
2980
|
whileTap: { scale: n ? 1 : 0.95 },
|
|
2965
|
-
className:
|
|
2981
|
+
className: u(
|
|
2966
2982
|
"px-4 py-2.5 rounded-full border-2 transition-all duration-200",
|
|
2967
2983
|
"flex items-center gap-2 min-h-[2.75rem]",
|
|
2968
2984
|
"peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2",
|
|
@@ -2976,7 +2992,7 @@ const dt = ({
|
|
|
2976
2992
|
}
|
|
2977
2993
|
)
|
|
2978
2994
|
] }, s.value);
|
|
2979
|
-
}) }),
|
|
2995
|
+
}) }), bt = ae(
|
|
2980
2996
|
({ 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
2997
|
(e || t) && /* @__PURE__ */ d("div", { className: "flex-1 space-y-0.5", children: [
|
|
2982
2998
|
e && /* @__PURE__ */ r("div", { className: "text-base font-medium text-foreground", children: e }),
|
|
@@ -2999,7 +3015,7 @@ const dt = ({
|
|
|
2999
3015
|
/* @__PURE__ */ r(
|
|
3000
3016
|
"div",
|
|
3001
3017
|
{
|
|
3002
|
-
className:
|
|
3018
|
+
className: u(
|
|
3003
3019
|
"w-12 h-7 rounded-full transition-all duration-200 relative",
|
|
3004
3020
|
"peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2",
|
|
3005
3021
|
"peer-disabled:opacity-50 peer-disabled:cursor-not-allowed",
|
|
@@ -3019,8 +3035,8 @@ const dt = ({
|
|
|
3019
3035
|
] })
|
|
3020
3036
|
] })
|
|
3021
3037
|
);
|
|
3022
|
-
|
|
3023
|
-
const
|
|
3038
|
+
bt.displayName = "Toggle";
|
|
3039
|
+
const At = ({
|
|
3024
3040
|
value: e,
|
|
3025
3041
|
onChange: t,
|
|
3026
3042
|
min: a = 0,
|
|
@@ -3032,8 +3048,8 @@ const mt = ({
|
|
|
3032
3048
|
disabled: i,
|
|
3033
3049
|
className: m
|
|
3034
3050
|
}) => {
|
|
3035
|
-
const [x,
|
|
3036
|
-
return /* @__PURE__ */ d("div", { className:
|
|
3051
|
+
const [x, y] = D(!1), h = (e - a) / (o - a) * 100;
|
|
3052
|
+
return /* @__PURE__ */ d("div", { className: u("w-full space-y-2", m), children: [
|
|
3037
3053
|
(l || s) && /* @__PURE__ */ d("div", { className: "flex items-center justify-between", children: [
|
|
3038
3054
|
l && /* @__PURE__ */ r("label", { className: "text-sm font-medium text-primary", children: l }),
|
|
3039
3055
|
s && /* @__PURE__ */ d("span", { className: "text-sm font-semibold text-primary", children: [
|
|
@@ -3046,9 +3062,9 @@ const mt = ({
|
|
|
3046
3062
|
g.div,
|
|
3047
3063
|
{
|
|
3048
3064
|
className: "absolute left-0 top-0 h-full bg-primary rounded-full",
|
|
3049
|
-
style: { width: `${
|
|
3065
|
+
style: { width: `${h}%` },
|
|
3050
3066
|
initial: !1,
|
|
3051
|
-
animate: { width: `${
|
|
3067
|
+
animate: { width: `${h}%` },
|
|
3052
3068
|
transition: { type: "spring", stiffness: 300, damping: 30 }
|
|
3053
3069
|
}
|
|
3054
3070
|
) }),
|
|
@@ -3060,11 +3076,11 @@ const mt = ({
|
|
|
3060
3076
|
max: o,
|
|
3061
3077
|
step: n,
|
|
3062
3078
|
value: e,
|
|
3063
|
-
onChange: (
|
|
3064
|
-
onMouseDown: () =>
|
|
3065
|
-
onMouseUp: () =>
|
|
3066
|
-
onTouchStart: () =>
|
|
3067
|
-
onTouchEnd: () =>
|
|
3079
|
+
onChange: (N) => t(Number(N.target.value)),
|
|
3080
|
+
onMouseDown: () => y(!0),
|
|
3081
|
+
onMouseUp: () => y(!1),
|
|
3082
|
+
onTouchStart: () => y(!0),
|
|
3083
|
+
onTouchEnd: () => y(!1),
|
|
3068
3084
|
disabled: i,
|
|
3069
3085
|
className: "absolute inset-0 w-full h-full opacity-0 cursor-pointer disabled:cursor-not-allowed",
|
|
3070
3086
|
style: { zIndex: 10 }
|
|
@@ -3073,19 +3089,19 @@ const mt = ({
|
|
|
3073
3089
|
/* @__PURE__ */ r(
|
|
3074
3090
|
g.div,
|
|
3075
3091
|
{
|
|
3076
|
-
className:
|
|
3092
|
+
className: u(
|
|
3077
3093
|
"absolute w-6 h-6 bg-background border-2 border-primary rounded-full shadow-md",
|
|
3078
3094
|
"pointer-events-none",
|
|
3079
3095
|
i && "opacity-50"
|
|
3080
3096
|
),
|
|
3081
|
-
style: { left: `calc(${
|
|
3097
|
+
style: { left: `calc(${h}% - 12px)` },
|
|
3082
3098
|
animate: { scale: x ? 1.2 : 1 },
|
|
3083
3099
|
transition: { type: "spring", stiffness: 300, damping: 20 }
|
|
3084
3100
|
}
|
|
3085
3101
|
)
|
|
3086
3102
|
] })
|
|
3087
3103
|
] });
|
|
3088
|
-
},
|
|
3104
|
+
}, It = ({
|
|
3089
3105
|
value1: e,
|
|
3090
3106
|
value2: t,
|
|
3091
3107
|
onChange: a,
|
|
@@ -3098,11 +3114,11 @@ const mt = ({
|
|
|
3098
3114
|
disabled: m,
|
|
3099
3115
|
className: x
|
|
3100
3116
|
}) => {
|
|
3101
|
-
const
|
|
3102
|
-
const M = s -
|
|
3103
|
-
a(
|
|
3117
|
+
const y = e + t, h = y > 0 ? e / y * 100 : 50, N = y > 0 ? t / y * 100 : 50, k = (w) => {
|
|
3118
|
+
const M = s - w;
|
|
3119
|
+
a(w, Math.max(l, Math.min(s, M)));
|
|
3104
3120
|
};
|
|
3105
|
-
return /* @__PURE__ */ d("div", { className:
|
|
3121
|
+
return /* @__PURE__ */ d("div", { className: u("w-full space-y-3", x), children: [
|
|
3106
3122
|
/* @__PURE__ */ d("div", { className: "space-y-2", children: [
|
|
3107
3123
|
/* @__PURE__ */ d("div", { className: "flex items-center justify-between", children: [
|
|
3108
3124
|
/* @__PURE__ */ r("label", { className: "text-sm font-medium text-primary", children: o }),
|
|
@@ -3117,7 +3133,7 @@ const mt = ({
|
|
|
3117
3133
|
{
|
|
3118
3134
|
className: "h-full bg-primary",
|
|
3119
3135
|
initial: !1,
|
|
3120
|
-
animate: { width: `${
|
|
3136
|
+
animate: { width: `${h}%` },
|
|
3121
3137
|
transition: { type: "spring", stiffness: 300, damping: 30 }
|
|
3122
3138
|
}
|
|
3123
3139
|
) }),
|
|
@@ -3129,7 +3145,7 @@ const mt = ({
|
|
|
3129
3145
|
max: s,
|
|
3130
3146
|
step: c,
|
|
3131
3147
|
value: e,
|
|
3132
|
-
onChange: (
|
|
3148
|
+
onChange: (w) => k(Number(w.target.value)),
|
|
3133
3149
|
disabled: m,
|
|
3134
3150
|
className: "absolute inset-0 w-full opacity-0 cursor-pointer disabled:cursor-not-allowed"
|
|
3135
3151
|
}
|
|
@@ -3150,7 +3166,7 @@ const mt = ({
|
|
|
3150
3166
|
{
|
|
3151
3167
|
className: "h-full bg-success",
|
|
3152
3168
|
initial: !1,
|
|
3153
|
-
animate: { width: `${
|
|
3169
|
+
animate: { width: `${N}%` },
|
|
3154
3170
|
transition: { type: "spring", stiffness: 300, damping: 30 }
|
|
3155
3171
|
}
|
|
3156
3172
|
) }),
|
|
@@ -3162,7 +3178,7 @@ const mt = ({
|
|
|
3162
3178
|
max: s,
|
|
3163
3179
|
step: c,
|
|
3164
3180
|
value: t,
|
|
3165
|
-
onChange: (
|
|
3181
|
+
onChange: (w) => k(s - Number(w.target.value)),
|
|
3166
3182
|
disabled: m,
|
|
3167
3183
|
className: "absolute inset-0 w-full opacity-0 cursor-pointer disabled:cursor-not-allowed"
|
|
3168
3184
|
}
|
|
@@ -3171,11 +3187,11 @@ const mt = ({
|
|
|
3171
3187
|
] }),
|
|
3172
3188
|
/* @__PURE__ */ d("div", { className: "text-xs text-primary/70 text-center", children: [
|
|
3173
3189
|
"Total: ",
|
|
3174
|
-
|
|
3190
|
+
y,
|
|
3175
3191
|
i
|
|
3176
3192
|
] })
|
|
3177
3193
|
] });
|
|
3178
|
-
},
|
|
3194
|
+
}, jt = ({
|
|
3179
3195
|
options: e,
|
|
3180
3196
|
value: t,
|
|
3181
3197
|
onChange: a,
|
|
@@ -3187,29 +3203,29 @@ const mt = ({
|
|
|
3187
3203
|
disabled: i,
|
|
3188
3204
|
className: m
|
|
3189
3205
|
}) => {
|
|
3190
|
-
const [x,
|
|
3191
|
-
(
|
|
3206
|
+
const [x, y] = D(!1), [h, N] = D(""), k = H(null), w = e.find((T) => T.value === t), M = s ? e.filter(
|
|
3207
|
+
(T) => T.label.toLowerCase().includes(h.toLowerCase())
|
|
3192
3208
|
) : e;
|
|
3193
|
-
|
|
3194
|
-
const
|
|
3195
|
-
|
|
3209
|
+
Z(() => {
|
|
3210
|
+
const T = (F) => {
|
|
3211
|
+
k.current && !k.current.contains(F.target) && (y(!1), N(""));
|
|
3196
3212
|
};
|
|
3197
|
-
return document.addEventListener("mousedown",
|
|
3213
|
+
return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
|
|
3198
3214
|
}, []);
|
|
3199
|
-
const
|
|
3200
|
-
a(
|
|
3201
|
-
},
|
|
3202
|
-
|
|
3215
|
+
const j = (T) => {
|
|
3216
|
+
a(T), y(!1), N("");
|
|
3217
|
+
}, L = (T) => {
|
|
3218
|
+
T.stopPropagation(), a("");
|
|
3203
3219
|
};
|
|
3204
|
-
return /* @__PURE__ */ d("div", { ref:
|
|
3220
|
+
return /* @__PURE__ */ d("div", { ref: k, className: u("relative w-full", m), children: [
|
|
3205
3221
|
n && /* @__PURE__ */ r("label", { className: "block mb-1.5 text-sm font-medium text-foreground", children: n }),
|
|
3206
3222
|
/* @__PURE__ */ d(
|
|
3207
3223
|
"button",
|
|
3208
3224
|
{
|
|
3209
3225
|
type: "button",
|
|
3210
|
-
onClick: () => !i &&
|
|
3226
|
+
onClick: () => !i && y(!x),
|
|
3211
3227
|
disabled: i,
|
|
3212
|
-
className:
|
|
3228
|
+
className: u(
|
|
3213
3229
|
"w-full px-4 py-3 rounded-md border transition-all duration-200",
|
|
3214
3230
|
"bg-background text-left flex items-center justify-between gap-2",
|
|
3215
3231
|
"focus:outline-none focus:ring-2 focus:ring-primary",
|
|
@@ -3221,23 +3237,23 @@ const mt = ({
|
|
|
3221
3237
|
),
|
|
3222
3238
|
children: [
|
|
3223
3239
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
3224
|
-
|
|
3225
|
-
/* @__PURE__ */ r("span", { className:
|
|
3240
|
+
w?.icon && /* @__PURE__ */ r("span", { className: "flex-shrink-0", children: w.icon }),
|
|
3241
|
+
/* @__PURE__ */ r("span", { className: u("truncate", !w && "text-foreground/50"), children: w?.label || o })
|
|
3226
3242
|
] }),
|
|
3227
3243
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-1 flex-shrink-0", children: [
|
|
3228
|
-
c &&
|
|
3244
|
+
c && w && /* @__PURE__ */ r(
|
|
3229
3245
|
"button",
|
|
3230
3246
|
{
|
|
3231
3247
|
type: "button",
|
|
3232
|
-
onClick:
|
|
3248
|
+
onClick: L,
|
|
3233
3249
|
className: "p-1 hover:bg-secondary rounded transition-colors",
|
|
3234
|
-
children: /* @__PURE__ */ r(
|
|
3250
|
+
children: /* @__PURE__ */ r($, { className: "w-4 h-4 text-primary" })
|
|
3235
3251
|
}
|
|
3236
3252
|
),
|
|
3237
3253
|
/* @__PURE__ */ r(
|
|
3238
|
-
|
|
3254
|
+
Ee,
|
|
3239
3255
|
{
|
|
3240
|
-
className:
|
|
3256
|
+
className: u(
|
|
3241
3257
|
"w-5 h-5 text-primary transition-transform",
|
|
3242
3258
|
x && "rotate-180"
|
|
3243
3259
|
)
|
|
@@ -3257,41 +3273,41 @@ const mt = ({
|
|
|
3257
3273
|
className: "absolute z-50 w-full mt-2 bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",
|
|
3258
3274
|
children: [
|
|
3259
3275
|
s && /* @__PURE__ */ r("div", { className: "p-2 border-b border-border", children: /* @__PURE__ */ d("div", { className: "relative", children: [
|
|
3260
|
-
/* @__PURE__ */ r(
|
|
3276
|
+
/* @__PURE__ */ r(Fe, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50" }),
|
|
3261
3277
|
/* @__PURE__ */ r(
|
|
3262
3278
|
"input",
|
|
3263
3279
|
{
|
|
3264
3280
|
type: "text",
|
|
3265
3281
|
placeholder: "Search...",
|
|
3266
|
-
value:
|
|
3267
|
-
onChange: (
|
|
3282
|
+
value: h,
|
|
3283
|
+
onChange: (T) => N(T.target.value),
|
|
3268
3284
|
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
3285
|
}
|
|
3270
3286
|
),
|
|
3271
|
-
|
|
3287
|
+
h && /* @__PURE__ */ r(
|
|
3272
3288
|
"button",
|
|
3273
3289
|
{
|
|
3274
|
-
onClick: () =>
|
|
3290
|
+
onClick: () => N(""),
|
|
3275
3291
|
className: "absolute right-2 top-1/2 -translate-y-1/2",
|
|
3276
|
-
children: /* @__PURE__ */ r(
|
|
3292
|
+
children: /* @__PURE__ */ r($, { className: "w-4 h-4 text-primary/50 hover:text-primary" })
|
|
3277
3293
|
}
|
|
3278
3294
|
)
|
|
3279
3295
|
] }) }),
|
|
3280
|
-
/* @__PURE__ */ r("div", { className: "overflow-y-auto max-h-64", children: M.length > 0 ? M.map((
|
|
3296
|
+
/* @__PURE__ */ r("div", { className: "overflow-y-auto max-h-64", children: M.length > 0 ? M.map((T) => /* @__PURE__ */ d(
|
|
3281
3297
|
"button",
|
|
3282
3298
|
{
|
|
3283
|
-
onClick: () =>
|
|
3284
|
-
className:
|
|
3299
|
+
onClick: () => j(T.value),
|
|
3300
|
+
className: u(
|
|
3285
3301
|
"w-full px-4 py-3 text-left flex items-center gap-2",
|
|
3286
3302
|
"hover:bg-secondary transition-colors",
|
|
3287
|
-
|
|
3303
|
+
T.value === t && "bg-border text-foreground"
|
|
3288
3304
|
),
|
|
3289
3305
|
children: [
|
|
3290
|
-
|
|
3291
|
-
/* @__PURE__ */ r("span", { children:
|
|
3306
|
+
T.icon && /* @__PURE__ */ r("span", { className: "flex-shrink-0", children: T.icon }),
|
|
3307
|
+
/* @__PURE__ */ r("span", { children: T.label })
|
|
3292
3308
|
]
|
|
3293
3309
|
},
|
|
3294
|
-
|
|
3310
|
+
T.value
|
|
3295
3311
|
)) : /* @__PURE__ */ r("div", { className: "px-4 py-6 text-center text-primary/70 text-sm", children: "No options found" }) })
|
|
3296
3312
|
]
|
|
3297
3313
|
}
|
|
@@ -3306,7 +3322,163 @@ const mt = ({
|
|
|
3306
3322
|
}
|
|
3307
3323
|
)
|
|
3308
3324
|
] });
|
|
3309
|
-
},
|
|
3325
|
+
}, ht = ae(
|
|
3326
|
+
({
|
|
3327
|
+
options: e,
|
|
3328
|
+
value: t,
|
|
3329
|
+
onChange: a,
|
|
3330
|
+
placeholder: o = "Select an option",
|
|
3331
|
+
label: n,
|
|
3332
|
+
error: l,
|
|
3333
|
+
hint: s,
|
|
3334
|
+
searchable: c = !1,
|
|
3335
|
+
clearable: i = !0,
|
|
3336
|
+
disabled: m,
|
|
3337
|
+
required: x,
|
|
3338
|
+
className: y
|
|
3339
|
+
}, h) => {
|
|
3340
|
+
const [N, k] = D(!1), [w, M] = D(""), j = H(null), L = e.find((S) => S.value === t), T = c ? e.filter(
|
|
3341
|
+
(S) => S.label.toLowerCase().includes(w.toLowerCase())
|
|
3342
|
+
) : e;
|
|
3343
|
+
Z(() => {
|
|
3344
|
+
const S = (O) => {
|
|
3345
|
+
j.current && !j.current.contains(O.target) && (k(!1), M(""));
|
|
3346
|
+
};
|
|
3347
|
+
return document.addEventListener("mousedown", S), () => document.removeEventListener("mousedown", S);
|
|
3348
|
+
}, []);
|
|
3349
|
+
const F = (S) => {
|
|
3350
|
+
a(S), k(!1), M("");
|
|
3351
|
+
}, P = (S) => {
|
|
3352
|
+
S.stopPropagation(), a("");
|
|
3353
|
+
};
|
|
3354
|
+
return /* @__PURE__ */ d("div", { ref: h, className: u("w-full space-y-1.5", y), children: [
|
|
3355
|
+
n && /* @__PURE__ */ d("label", { className: "block text-sm font-medium text-foreground", children: [
|
|
3356
|
+
n,
|
|
3357
|
+
x && /* @__PURE__ */ r("span", { className: "text-error ml-1", children: "*" })
|
|
3358
|
+
] }),
|
|
3359
|
+
/* @__PURE__ */ d("div", { ref: j, className: "relative", children: [
|
|
3360
|
+
/* @__PURE__ */ d(
|
|
3361
|
+
"button",
|
|
3362
|
+
{
|
|
3363
|
+
type: "button",
|
|
3364
|
+
onClick: () => !m && k(!N),
|
|
3365
|
+
disabled: m,
|
|
3366
|
+
"aria-haspopup": "listbox",
|
|
3367
|
+
"aria-expanded": N,
|
|
3368
|
+
"aria-required": x,
|
|
3369
|
+
className: u(
|
|
3370
|
+
"w-full px-4 py-3 rounded-md border transition-all duration-200",
|
|
3371
|
+
"bg-background text-left flex items-center justify-between gap-2",
|
|
3372
|
+
"focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent",
|
|
3373
|
+
"disabled:bg-secondary disabled:cursor-not-allowed",
|
|
3374
|
+
"touch-target text-base",
|
|
3375
|
+
l && "border-error focus:ring-error",
|
|
3376
|
+
!l && "border-border",
|
|
3377
|
+
N && "ring-2 ring-primary"
|
|
3378
|
+
),
|
|
3379
|
+
children: [
|
|
3380
|
+
/* @__PURE__ */ d("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
3381
|
+
L?.icon && /* @__PURE__ */ r("span", { className: "flex-shrink-0", children: L.icon }),
|
|
3382
|
+
/* @__PURE__ */ r("span", { className: u("truncate", !L && "text-foreground/50"), children: L?.label || o })
|
|
3383
|
+
] }),
|
|
3384
|
+
/* @__PURE__ */ d("div", { className: "flex items-center gap-1 flex-shrink-0", children: [
|
|
3385
|
+
i && L && !m && /* @__PURE__ */ r(
|
|
3386
|
+
"button",
|
|
3387
|
+
{
|
|
3388
|
+
type: "button",
|
|
3389
|
+
onClick: P,
|
|
3390
|
+
className: "p-1 hover:bg-secondary rounded transition-colors",
|
|
3391
|
+
"aria-label": "Clear selection",
|
|
3392
|
+
children: /* @__PURE__ */ r($, { className: "w-4 h-4 text-primary" })
|
|
3393
|
+
}
|
|
3394
|
+
),
|
|
3395
|
+
/* @__PURE__ */ r(
|
|
3396
|
+
Ee,
|
|
3397
|
+
{
|
|
3398
|
+
className: u(
|
|
3399
|
+
"w-5 h-5 text-primary transition-transform",
|
|
3400
|
+
N && "rotate-180"
|
|
3401
|
+
)
|
|
3402
|
+
}
|
|
3403
|
+
)
|
|
3404
|
+
] })
|
|
3405
|
+
]
|
|
3406
|
+
}
|
|
3407
|
+
),
|
|
3408
|
+
/* @__PURE__ */ r(Q, { children: N && /* @__PURE__ */ d(
|
|
3409
|
+
g.div,
|
|
3410
|
+
{
|
|
3411
|
+
initial: { opacity: 0, y: -10 },
|
|
3412
|
+
animate: { opacity: 1, y: 0 },
|
|
3413
|
+
exit: { opacity: 0, y: -10 },
|
|
3414
|
+
transition: { duration: 0.2 },
|
|
3415
|
+
role: "listbox",
|
|
3416
|
+
className: "absolute z-50 w-full mt-2 bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",
|
|
3417
|
+
children: [
|
|
3418
|
+
c && /* @__PURE__ */ r("div", { className: "p-2 border-b border-border", children: /* @__PURE__ */ d("div", { className: "relative", children: [
|
|
3419
|
+
/* @__PURE__ */ r(Fe, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50" }),
|
|
3420
|
+
/* @__PURE__ */ r(
|
|
3421
|
+
"input",
|
|
3422
|
+
{
|
|
3423
|
+
type: "text",
|
|
3424
|
+
placeholder: "Search...",
|
|
3425
|
+
value: w,
|
|
3426
|
+
onChange: (S) => M(S.target.value),
|
|
3427
|
+
className: "w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary",
|
|
3428
|
+
"aria-label": "Search options"
|
|
3429
|
+
}
|
|
3430
|
+
),
|
|
3431
|
+
w && /* @__PURE__ */ r(
|
|
3432
|
+
"button",
|
|
3433
|
+
{
|
|
3434
|
+
type: "button",
|
|
3435
|
+
onClick: () => M(""),
|
|
3436
|
+
className: "absolute right-2 top-1/2 -translate-y-1/2",
|
|
3437
|
+
"aria-label": "Clear search",
|
|
3438
|
+
children: /* @__PURE__ */ r($, { className: "w-4 h-4 text-primary/50 hover:text-primary" })
|
|
3439
|
+
}
|
|
3440
|
+
)
|
|
3441
|
+
] }) }),
|
|
3442
|
+
/* @__PURE__ */ r("div", { className: "overflow-y-auto max-h-64", children: T.length > 0 ? T.map((S) => /* @__PURE__ */ d(
|
|
3443
|
+
"button",
|
|
3444
|
+
{
|
|
3445
|
+
type: "button",
|
|
3446
|
+
role: "option",
|
|
3447
|
+
"aria-selected": S.value === t,
|
|
3448
|
+
onClick: () => !S.disabled && F(S.value),
|
|
3449
|
+
disabled: S.disabled,
|
|
3450
|
+
className: u(
|
|
3451
|
+
"w-full px-4 py-3 text-left flex items-center gap-2",
|
|
3452
|
+
"hover:bg-secondary transition-colors",
|
|
3453
|
+
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
3454
|
+
S.value === t && "bg-border text-foreground font-medium"
|
|
3455
|
+
),
|
|
3456
|
+
children: [
|
|
3457
|
+
S.icon && /* @__PURE__ */ r("span", { className: "flex-shrink-0", children: S.icon }),
|
|
3458
|
+
/* @__PURE__ */ r("span", { children: S.label })
|
|
3459
|
+
]
|
|
3460
|
+
},
|
|
3461
|
+
S.value
|
|
3462
|
+
)) : /* @__PURE__ */ r("div", { className: "px-4 py-6 text-center text-primary/70 text-sm", children: "No options found" }) })
|
|
3463
|
+
]
|
|
3464
|
+
}
|
|
3465
|
+
) })
|
|
3466
|
+
] }),
|
|
3467
|
+
l && /* @__PURE__ */ r(
|
|
3468
|
+
g.p,
|
|
3469
|
+
{
|
|
3470
|
+
initial: { opacity: 0, y: -5 },
|
|
3471
|
+
animate: { opacity: 1, y: 0 },
|
|
3472
|
+
className: "text-sm text-error",
|
|
3473
|
+
children: l
|
|
3474
|
+
}
|
|
3475
|
+
),
|
|
3476
|
+
s && !l && /* @__PURE__ */ r("p", { className: "text-sm text-primary/70", children: s })
|
|
3477
|
+
] });
|
|
3478
|
+
}
|
|
3479
|
+
);
|
|
3480
|
+
ht.displayName = "Select";
|
|
3481
|
+
const Dt = ({
|
|
3310
3482
|
value: e,
|
|
3311
3483
|
onChange: t,
|
|
3312
3484
|
label: a,
|
|
@@ -3317,16 +3489,16 @@ const mt = ({
|
|
|
3317
3489
|
maxDate: c,
|
|
3318
3490
|
className: i
|
|
3319
3491
|
}) => {
|
|
3320
|
-
const [m, x] =
|
|
3321
|
-
|
|
3322
|
-
const
|
|
3323
|
-
|
|
3492
|
+
const [m, x] = D(!1), [y, h] = D(e || /* @__PURE__ */ new Date()), N = H(null);
|
|
3493
|
+
Z(() => {
|
|
3494
|
+
const C = (A) => {
|
|
3495
|
+
N.current && !N.current.contains(A.target) && x(!1);
|
|
3324
3496
|
};
|
|
3325
|
-
return m && document.addEventListener("mousedown",
|
|
3326
|
-
document.removeEventListener("mousedown",
|
|
3497
|
+
return m && document.addEventListener("mousedown", C), () => {
|
|
3498
|
+
document.removeEventListener("mousedown", C);
|
|
3327
3499
|
};
|
|
3328
3500
|
}, [m]);
|
|
3329
|
-
const
|
|
3501
|
+
const k = [
|
|
3330
3502
|
"January",
|
|
3331
3503
|
"February",
|
|
3332
3504
|
"March",
|
|
@@ -3339,25 +3511,25 @@ const mt = ({
|
|
|
3339
3511
|
"October",
|
|
3340
3512
|
"November",
|
|
3341
3513
|
"December"
|
|
3342
|
-
],
|
|
3343
|
-
const A =
|
|
3344
|
-
for (let
|
|
3345
|
-
|
|
3346
|
-
for (let
|
|
3347
|
-
|
|
3348
|
-
return
|
|
3349
|
-
},
|
|
3350
|
-
|
|
3351
|
-
},
|
|
3352
|
-
|
|
3353
|
-
},
|
|
3354
|
-
t(
|
|
3355
|
-
},
|
|
3514
|
+
], w = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], M = (C) => {
|
|
3515
|
+
const A = C.getFullYear(), V = C.getMonth(), _ = new Date(A, V, 1), te = new Date(A, V + 1, 0).getDate(), q = _.getDay(), U = [];
|
|
3516
|
+
for (let G = 0; G < q; G++)
|
|
3517
|
+
U.push(null);
|
|
3518
|
+
for (let G = 1; G <= te; G++)
|
|
3519
|
+
U.push(new Date(A, V, G));
|
|
3520
|
+
return U;
|
|
3521
|
+
}, j = () => {
|
|
3522
|
+
h(new Date(y.getFullYear(), y.getMonth() - 1, 1));
|
|
3523
|
+
}, L = () => {
|
|
3524
|
+
h(new Date(y.getFullYear(), y.getMonth() + 1, 1));
|
|
3525
|
+
}, T = (C) => {
|
|
3526
|
+
t(C), x(!1);
|
|
3527
|
+
}, F = (C) => !!(s && C < s || c && C > c), P = (C, A) => !C || !A ? !1 : C.getDate() === A.getDate() && C.getMonth() === A.getMonth() && C.getFullYear() === A.getFullYear(), S = (C) => C ? P(C, /* @__PURE__ */ new Date()) : !1, O = (C) => C ? C.toLocaleDateString("en-US", {
|
|
3356
3528
|
year: "numeric",
|
|
3357
3529
|
month: "short",
|
|
3358
3530
|
day: "numeric"
|
|
3359
|
-
}) : "",
|
|
3360
|
-
return /* @__PURE__ */ d("div", { ref:
|
|
3531
|
+
}) : "", f = M(y);
|
|
3532
|
+
return /* @__PURE__ */ d("div", { ref: N, className: u("relative w-full", i), children: [
|
|
3361
3533
|
a && /* @__PURE__ */ r("label", { className: "block mb-1.5 text-sm font-medium text-foreground", children: a }),
|
|
3362
3534
|
/* @__PURE__ */ d(
|
|
3363
3535
|
"button",
|
|
@@ -3365,7 +3537,7 @@ const mt = ({
|
|
|
3365
3537
|
type: "button",
|
|
3366
3538
|
onClick: () => !l && x(!m),
|
|
3367
3539
|
disabled: l,
|
|
3368
|
-
className:
|
|
3540
|
+
className: u(
|
|
3369
3541
|
"w-full px-4 py-3 rounded-md border transition-all duration-200",
|
|
3370
3542
|
"bg-background text-left flex items-center justify-between gap-2",
|
|
3371
3543
|
"focus:outline-none focus:ring-2 focus:ring-primary",
|
|
@@ -3376,8 +3548,8 @@ const mt = ({
|
|
|
3376
3548
|
m && "ring-2 ring-primary"
|
|
3377
3549
|
),
|
|
3378
3550
|
children: [
|
|
3379
|
-
/* @__PURE__ */ r("span", { className:
|
|
3380
|
-
/* @__PURE__ */ r(
|
|
3551
|
+
/* @__PURE__ */ r("span", { className: u("truncate", !e && "text-foreground/50"), children: e ? O(e) : o }),
|
|
3552
|
+
/* @__PURE__ */ r(sr, { className: "w-5 h-5 text-primary flex-shrink-0" })
|
|
3381
3553
|
]
|
|
3382
3554
|
}
|
|
3383
3555
|
),
|
|
@@ -3395,64 +3567,64 @@ const mt = ({
|
|
|
3395
3567
|
"button",
|
|
3396
3568
|
{
|
|
3397
3569
|
type: "button",
|
|
3398
|
-
onClick:
|
|
3570
|
+
onClick: j,
|
|
3399
3571
|
className: "p-2 hover:bg-secondary rounded-lg transition-colors",
|
|
3400
|
-
children: /* @__PURE__ */ r(
|
|
3572
|
+
children: /* @__PURE__ */ r(Pe, { className: "w-5 h-5 text-primary" })
|
|
3401
3573
|
}
|
|
3402
3574
|
),
|
|
3403
3575
|
/* @__PURE__ */ d("div", { className: "font-semibold text-foreground", children: [
|
|
3404
|
-
|
|
3576
|
+
k[y.getMonth()],
|
|
3405
3577
|
" ",
|
|
3406
|
-
|
|
3578
|
+
y.getFullYear()
|
|
3407
3579
|
] }),
|
|
3408
3580
|
/* @__PURE__ */ r(
|
|
3409
3581
|
"button",
|
|
3410
3582
|
{
|
|
3411
3583
|
type: "button",
|
|
3412
|
-
onClick:
|
|
3584
|
+
onClick: L,
|
|
3413
3585
|
className: "p-2 hover:bg-secondary rounded-lg transition-colors",
|
|
3414
|
-
children: /* @__PURE__ */ r(
|
|
3586
|
+
children: /* @__PURE__ */ r(Ge, { className: "w-5 h-5 text-primary" })
|
|
3415
3587
|
}
|
|
3416
3588
|
)
|
|
3417
3589
|
] }),
|
|
3418
|
-
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1 mb-2", children:
|
|
3590
|
+
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1 mb-2", children: w.map((C) => /* @__PURE__ */ r(
|
|
3419
3591
|
"div",
|
|
3420
3592
|
{
|
|
3421
3593
|
className: "text-center text-xs font-medium text-primary/70 py-2",
|
|
3422
|
-
children:
|
|
3594
|
+
children: C
|
|
3423
3595
|
},
|
|
3424
|
-
|
|
3596
|
+
C
|
|
3425
3597
|
)) }),
|
|
3426
|
-
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1", children:
|
|
3427
|
-
if (!
|
|
3598
|
+
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1", children: f.map((C, A) => {
|
|
3599
|
+
if (!C)
|
|
3428
3600
|
return /* @__PURE__ */ r("div", { className: "aspect-square" }, `empty-${A}`);
|
|
3429
|
-
const
|
|
3601
|
+
const V = P(C, e || null), _ = S(C), W = F(C);
|
|
3430
3602
|
return /* @__PURE__ */ r(
|
|
3431
3603
|
g.button,
|
|
3432
3604
|
{
|
|
3433
3605
|
type: "button",
|
|
3434
|
-
whileTap: { scale:
|
|
3435
|
-
onClick: () => !
|
|
3436
|
-
disabled:
|
|
3437
|
-
className:
|
|
3606
|
+
whileTap: { scale: W ? 1 : 0.95 },
|
|
3607
|
+
onClick: () => !W && T(C),
|
|
3608
|
+
disabled: W,
|
|
3609
|
+
className: u(
|
|
3438
3610
|
"aspect-square rounded-lg flex items-center justify-center",
|
|
3439
3611
|
"text-sm font-medium transition-all duration-200",
|
|
3440
3612
|
"hover:bg-secondary",
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3613
|
+
V && "bg-primary text-white hover:bg-primary-dark",
|
|
3614
|
+
_ && !V && "border-2 border-primary text-primary",
|
|
3615
|
+
W && "text-border-dark cursor-not-allowed hover:bg-transparent",
|
|
3616
|
+
!V && !_ && !W && "text-foreground"
|
|
3445
3617
|
),
|
|
3446
|
-
children:
|
|
3618
|
+
children: C.getDate()
|
|
3447
3619
|
},
|
|
3448
|
-
|
|
3620
|
+
C.toISOString()
|
|
3449
3621
|
);
|
|
3450
3622
|
}) }),
|
|
3451
3623
|
/* @__PURE__ */ r("div", { className: "mt-4 pt-4 border-t border-border", children: /* @__PURE__ */ r(
|
|
3452
3624
|
"button",
|
|
3453
3625
|
{
|
|
3454
3626
|
type: "button",
|
|
3455
|
-
onClick: () =>
|
|
3627
|
+
onClick: () => T(/* @__PURE__ */ new Date()),
|
|
3456
3628
|
className: "w-full py-2 text-sm font-medium text-primary hover:bg-secondary rounded-lg transition-colors",
|
|
3457
3629
|
children: "Today"
|
|
3458
3630
|
}
|
|
@@ -3470,7 +3642,7 @@ const mt = ({
|
|
|
3470
3642
|
}
|
|
3471
3643
|
)
|
|
3472
3644
|
] });
|
|
3473
|
-
},
|
|
3645
|
+
}, Lt = ({
|
|
3474
3646
|
children: e,
|
|
3475
3647
|
variant: t = "default",
|
|
3476
3648
|
padding: a = "md",
|
|
@@ -3496,7 +3668,7 @@ const mt = ({
|
|
|
3496
3668
|
transition: { duration: 0.3 },
|
|
3497
3669
|
whileHover: l || n ? { y: -2, boxShadow: "0 10px 15px -3px rgb(0 0 0 / 0.1)" } : void 0,
|
|
3498
3670
|
whileTap: n ? { scale: 0.98 } : void 0,
|
|
3499
|
-
className:
|
|
3671
|
+
className: u(
|
|
3500
3672
|
"rounded-lg transition-all duration-200",
|
|
3501
3673
|
s[t],
|
|
3502
3674
|
c[a],
|
|
@@ -3507,21 +3679,21 @@ const mt = ({
|
|
|
3507
3679
|
children: e
|
|
3508
3680
|
}
|
|
3509
3681
|
);
|
|
3510
|
-
},
|
|
3682
|
+
}, Ot = ({ children: e, className: t }) => /* @__PURE__ */ r("div", { className: u("mb-4", t), children: e }), Et = ({ children: e, className: t }) => /* @__PURE__ */ r("h3", { className: u("text-lg font-semibold text-foreground", t), children: e }), Ft = ({ children: e, className: t }) => /* @__PURE__ */ r("p", { className: u("text-sm text-foreground/70 mt-1", t), children: e }), Pt = ({ children: e, className: t }) => /* @__PURE__ */ r("div", { className: t, children: e }), Gt = ({
|
|
3511
3683
|
isOpen: e,
|
|
3512
3684
|
onClose: t,
|
|
3513
3685
|
children: a,
|
|
3514
3686
|
title: o,
|
|
3515
3687
|
position: n = "right",
|
|
3516
3688
|
className: l
|
|
3517
|
-
}) => (
|
|
3689
|
+
}) => (Z(() => {
|
|
3518
3690
|
const s = (c) => {
|
|
3519
3691
|
c.key === "Escape" && t();
|
|
3520
3692
|
};
|
|
3521
3693
|
return e && (document.addEventListener("keydown", s), document.body.style.overflow = "hidden"), () => {
|
|
3522
3694
|
document.removeEventListener("keydown", s), document.body.style.overflow = "unset";
|
|
3523
3695
|
};
|
|
3524
|
-
}, [e, t]), /* @__PURE__ */ r(Q, { children: e && /* @__PURE__ */ d(
|
|
3696
|
+
}, [e, t]), /* @__PURE__ */ r(Q, { children: e && /* @__PURE__ */ d(me, { children: [
|
|
3525
3697
|
/* @__PURE__ */ r(
|
|
3526
3698
|
g.div,
|
|
3527
3699
|
{
|
|
@@ -3540,7 +3712,7 @@ const mt = ({
|
|
|
3540
3712
|
animate: { x: 0 },
|
|
3541
3713
|
exit: { x: n === "left" ? "-100%" : "100%" },
|
|
3542
3714
|
transition: { type: "spring", damping: 30, stiffness: 300 },
|
|
3543
|
-
className:
|
|
3715
|
+
className: u(
|
|
3544
3716
|
"fixed top-0 z-50 h-full w-[400px] sm:w-[480px] bg-background shadow-xl",
|
|
3545
3717
|
n === "left" ? "left-0 border-r" : "right-0 border-l",
|
|
3546
3718
|
"border-border",
|
|
@@ -3555,7 +3727,7 @@ const mt = ({
|
|
|
3555
3727
|
onClick: t,
|
|
3556
3728
|
className: "p-2 rounded-lg hover:bg-secondary transition-colors",
|
|
3557
3729
|
"aria-label": "Close drawer",
|
|
3558
|
-
children: /* @__PURE__ */ r(
|
|
3730
|
+
children: /* @__PURE__ */ r($, { className: "w-5 h-5" })
|
|
3559
3731
|
}
|
|
3560
3732
|
)
|
|
3561
3733
|
] }),
|
|
@@ -3563,7 +3735,7 @@ const mt = ({
|
|
|
3563
3735
|
]
|
|
3564
3736
|
}
|
|
3565
3737
|
)
|
|
3566
|
-
] }) })),
|
|
3738
|
+
] }) })), Ut = ({
|
|
3567
3739
|
isOpen: e,
|
|
3568
3740
|
onClose: t,
|
|
3569
3741
|
children: a,
|
|
@@ -3571,8 +3743,8 @@ const mt = ({
|
|
|
3571
3743
|
size: n = "md",
|
|
3572
3744
|
className: l
|
|
3573
3745
|
}) => {
|
|
3574
|
-
const s =
|
|
3575
|
-
|
|
3746
|
+
const s = H(null);
|
|
3747
|
+
Z(() => {
|
|
3576
3748
|
const i = (m) => {
|
|
3577
3749
|
m.key === "Escape" && t();
|
|
3578
3750
|
};
|
|
@@ -3602,7 +3774,7 @@ const mt = ({
|
|
|
3602
3774
|
animate: { opacity: 1, scale: 1 },
|
|
3603
3775
|
exit: { opacity: 0, scale: 0.95 },
|
|
3604
3776
|
transition: { duration: 0.2 },
|
|
3605
|
-
className:
|
|
3777
|
+
className: u(
|
|
3606
3778
|
"bg-background border border-border rounded-lg shadow-2xl w-full max-h-[90vh] overflow-hidden flex flex-col",
|
|
3607
3779
|
c[n],
|
|
3608
3780
|
l
|
|
@@ -3616,7 +3788,7 @@ const mt = ({
|
|
|
3616
3788
|
onClick: t,
|
|
3617
3789
|
className: "p-2 rounded-lg hover:bg-secondary transition-colors",
|
|
3618
3790
|
"aria-label": "Close modal",
|
|
3619
|
-
children: /* @__PURE__ */ r(
|
|
3791
|
+
children: /* @__PURE__ */ r($, { className: "w-5 h-5" })
|
|
3620
3792
|
}
|
|
3621
3793
|
)
|
|
3622
3794
|
] }),
|
|
@@ -3626,22 +3798,22 @@ const mt = ({
|
|
|
3626
3798
|
)
|
|
3627
3799
|
}
|
|
3628
3800
|
) });
|
|
3629
|
-
},
|
|
3801
|
+
}, Bt = ({
|
|
3630
3802
|
children: e,
|
|
3631
3803
|
className: t
|
|
3632
|
-
}) => /* @__PURE__ */ r("div", { className:
|
|
3804
|
+
}) => /* @__PURE__ */ r("div", { className: u("px-6 py-4", t), children: e }), $t = ({
|
|
3633
3805
|
children: e,
|
|
3634
3806
|
className: t
|
|
3635
|
-
}) => /* @__PURE__ */ r("div", { className:
|
|
3807
|
+
}) => /* @__PURE__ */ r("div", { className: u("px-6 py-4 border-t border-border flex items-center justify-end gap-3 bg-background sticky bottom-0", t), children: e }), Vt = ({
|
|
3636
3808
|
isOpen: e,
|
|
3637
3809
|
onClose: t,
|
|
3638
3810
|
title: a,
|
|
3639
3811
|
children: o,
|
|
3640
3812
|
showCloseButton: n = !0,
|
|
3641
3813
|
className: l
|
|
3642
|
-
}) => (
|
|
3814
|
+
}) => (Z(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
3643
3815
|
document.body.style.overflow = "unset";
|
|
3644
|
-
}), [e]), /* @__PURE__ */ r(Q, { children: e && /* @__PURE__ */ d(
|
|
3816
|
+
}), [e]), /* @__PURE__ */ r(Q, { children: e && /* @__PURE__ */ d(me, { children: [
|
|
3645
3817
|
/* @__PURE__ */ r(
|
|
3646
3818
|
g.div,
|
|
3647
3819
|
{
|
|
@@ -3659,7 +3831,7 @@ const mt = ({
|
|
|
3659
3831
|
animate: { y: 0 },
|
|
3660
3832
|
exit: { y: "100%" },
|
|
3661
3833
|
transition: { type: "spring", damping: 30, stiffness: 300 },
|
|
3662
|
-
className:
|
|
3834
|
+
className: u(
|
|
3663
3835
|
"fixed bottom-0 left-0 right-0 z-50",
|
|
3664
3836
|
"bg-white rounded-t-3xl shadow-2xl",
|
|
3665
3837
|
"max-h-[90vh] flex flex-col",
|
|
@@ -3674,7 +3846,7 @@ const mt = ({
|
|
|
3674
3846
|
{
|
|
3675
3847
|
onClick: t,
|
|
3676
3848
|
className: "p-2 rounded-full hover:bg-secondary transition-colors",
|
|
3677
|
-
children: /* @__PURE__ */ r(
|
|
3849
|
+
children: /* @__PURE__ */ r($, { className: "w-5 h-5 text-primary" })
|
|
3678
3850
|
}
|
|
3679
3851
|
)
|
|
3680
3852
|
] }),
|
|
@@ -3683,7 +3855,7 @@ const mt = ({
|
|
|
3683
3855
|
}
|
|
3684
3856
|
)
|
|
3685
3857
|
] }) }));
|
|
3686
|
-
function
|
|
3858
|
+
function _t({
|
|
3687
3859
|
data: e,
|
|
3688
3860
|
columns: t,
|
|
3689
3861
|
loading: a = !1,
|
|
@@ -3691,71 +3863,71 @@ function zt({
|
|
|
3691
3863
|
keyExtractor: n,
|
|
3692
3864
|
className: l
|
|
3693
3865
|
}) {
|
|
3694
|
-
const [s, c] =
|
|
3695
|
-
s ===
|
|
3696
|
-
},
|
|
3697
|
-
const
|
|
3698
|
-
return
|
|
3866
|
+
const [s, c] = D(null), [i, m] = D("asc"), x = (h) => {
|
|
3867
|
+
s === h ? m(i === "asc" ? "desc" : "asc") : (c(h), m("asc"));
|
|
3868
|
+
}, y = s ? [...e].sort((h, N) => {
|
|
3869
|
+
const k = h[s], w = N[s];
|
|
3870
|
+
return k < w ? i === "asc" ? -1 : 1 : k > w ? i === "asc" ? 1 : -1 : 0;
|
|
3699
3871
|
}) : e;
|
|
3700
|
-
return a ? /* @__PURE__ */ r("div", { className:
|
|
3701
|
-
/* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((
|
|
3702
|
-
/* @__PURE__ */ r("tbody", { children: [...Array(5)].map((
|
|
3872
|
+
return a ? /* @__PURE__ */ r("div", { className: u("border border-border rounded-lg overflow-hidden", l), children: /* @__PURE__ */ r("div", { className: "overflow-x-auto", children: /* @__PURE__ */ d("table", { className: "w-full", children: [
|
|
3873
|
+
/* @__PURE__ */ r("thead", { className: "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)) }) }),
|
|
3874
|
+
/* @__PURE__ */ r("tbody", { children: [...Array(5)].map((h, N) => /* @__PURE__ */ r("tr", { className: "border-b border-border", children: t.map((k, w) => /* @__PURE__ */ r("td", { className: "px-6 py-4", children: /* @__PURE__ */ r("div", { className: "h-4 bg-secondary rounded animate-pulse" }) }, w)) }, N)) })
|
|
3703
3875
|
] }) }) }) : /* @__PURE__ */ r(
|
|
3704
3876
|
g.div,
|
|
3705
3877
|
{
|
|
3706
3878
|
initial: { opacity: 0, y: 20 },
|
|
3707
3879
|
animate: { opacity: 1, y: 0 },
|
|
3708
3880
|
transition: { duration: 0.3 },
|
|
3709
|
-
className:
|
|
3881
|
+
className: u("border border-border rounded-lg overflow-hidden", l),
|
|
3710
3882
|
children: /* @__PURE__ */ r("div", { className: "overflow-x-auto", children: /* @__PURE__ */ d("table", { className: "w-full", children: [
|
|
3711
|
-
/* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((
|
|
3883
|
+
/* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((h, N) => /* @__PURE__ */ r(
|
|
3712
3884
|
"th",
|
|
3713
3885
|
{
|
|
3714
|
-
className:
|
|
3886
|
+
className: u(
|
|
3715
3887
|
"px-6 py-4 text-left text-sm font-semibold text-foreground",
|
|
3716
|
-
|
|
3717
|
-
|
|
3888
|
+
h.width,
|
|
3889
|
+
h.sortable && "cursor-pointer transition-colors"
|
|
3718
3890
|
),
|
|
3719
|
-
onClick: () =>
|
|
3891
|
+
onClick: () => h.sortable && x(h.key),
|
|
3720
3892
|
children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
3721
|
-
|
|
3722
|
-
|
|
3893
|
+
h.header,
|
|
3894
|
+
h.sortable && /* @__PURE__ */ r("span", { className: "text-primary/50 hover:text-primary transition-colors", children: s === h.key ? i === "asc" ? /* @__PURE__ */ r(nr, { className: "w-4 h-4" }) : /* @__PURE__ */ r(ir, { className: "w-4 h-4" }) : /* @__PURE__ */ r(lr, { className: "w-4 h-4" }) })
|
|
3723
3895
|
] })
|
|
3724
3896
|
},
|
|
3725
|
-
|
|
3897
|
+
N
|
|
3726
3898
|
)) }) }),
|
|
3727
|
-
/* @__PURE__ */ r("tbody", { children:
|
|
3899
|
+
/* @__PURE__ */ r("tbody", { children: y.map((h, N) => /* @__PURE__ */ r(
|
|
3728
3900
|
g.tr,
|
|
3729
3901
|
{
|
|
3730
3902
|
initial: { opacity: 0, y: 10 },
|
|
3731
3903
|
animate: { opacity: 1, y: 0 },
|
|
3732
|
-
transition: { duration: 0.2, delay:
|
|
3733
|
-
onClick: () => o && o(
|
|
3734
|
-
className:
|
|
3904
|
+
transition: { duration: 0.2, delay: N * 0.05 },
|
|
3905
|
+
onClick: () => o && o(h),
|
|
3906
|
+
className: u(
|
|
3735
3907
|
"border-b border-border transition-colors",
|
|
3736
3908
|
o && "cursor-pointer hover:bg-secondary"
|
|
3737
3909
|
),
|
|
3738
|
-
children: t.map((
|
|
3910
|
+
children: t.map((k, w) => /* @__PURE__ */ r(
|
|
3739
3911
|
"td",
|
|
3740
3912
|
{
|
|
3741
|
-
className:
|
|
3913
|
+
className: u(
|
|
3742
3914
|
"px-6 py-4 text-sm text-foreground/70",
|
|
3743
|
-
|
|
3915
|
+
k.width
|
|
3744
3916
|
),
|
|
3745
|
-
style:
|
|
3746
|
-
title:
|
|
3747
|
-
children:
|
|
3917
|
+
style: k.width ? { width: k.width } : void 0,
|
|
3918
|
+
title: k.truncate && !k.render ? String(h[k.key] ?? "") : void 0,
|
|
3919
|
+
children: k.truncate && !k.render ? /* @__PURE__ */ r("div", { className: "truncate", children: String(h[k.key] ?? "") }) : k.render ? k.render(h) : String(h[k.key] ?? "")
|
|
3748
3920
|
},
|
|
3749
|
-
|
|
3921
|
+
w
|
|
3750
3922
|
))
|
|
3751
3923
|
},
|
|
3752
|
-
n(
|
|
3924
|
+
n(h)
|
|
3753
3925
|
)) })
|
|
3754
3926
|
] }) })
|
|
3755
3927
|
}
|
|
3756
3928
|
);
|
|
3757
3929
|
}
|
|
3758
|
-
const
|
|
3930
|
+
const Wt = ({
|
|
3759
3931
|
currentPage: e,
|
|
3760
3932
|
totalPages: t,
|
|
3761
3933
|
onPageChange: a,
|
|
@@ -3773,7 +3945,7 @@ const St = ({
|
|
|
3773
3945
|
initial: { opacity: 0, y: 20 },
|
|
3774
3946
|
animate: { opacity: 1, y: 0 },
|
|
3775
3947
|
transition: { duration: 0.3 },
|
|
3776
|
-
className:
|
|
3948
|
+
className: u("flex items-center justify-between gap-4 flex-wrap", l),
|
|
3777
3949
|
children: [
|
|
3778
3950
|
/* @__PURE__ */ r("div", { className: "text-sm text-foreground/70", children: o && n && /* @__PURE__ */ d("span", { children: [
|
|
3779
3951
|
"Showing ",
|
|
@@ -3793,12 +3965,12 @@ const St = ({
|
|
|
3793
3965
|
size: "sm",
|
|
3794
3966
|
disabled: e === 1,
|
|
3795
3967
|
onClick: () => a(e - 1),
|
|
3796
|
-
icon: /* @__PURE__ */ r(
|
|
3968
|
+
icon: /* @__PURE__ */ r(Pe, { className: "w-4 h-4" }),
|
|
3797
3969
|
children: "Previous"
|
|
3798
3970
|
}
|
|
3799
3971
|
),
|
|
3800
3972
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-1", children: [
|
|
3801
|
-
e > 3 && /* @__PURE__ */ d(
|
|
3973
|
+
e > 3 && /* @__PURE__ */ d(me, { children: [
|
|
3802
3974
|
/* @__PURE__ */ r(
|
|
3803
3975
|
g.button,
|
|
3804
3976
|
{
|
|
@@ -3817,7 +3989,7 @@ const St = ({
|
|
|
3817
3989
|
whileHover: { scale: 1.05 },
|
|
3818
3990
|
whileTap: { scale: 0.95 },
|
|
3819
3991
|
onClick: () => a(i),
|
|
3820
|
-
className:
|
|
3992
|
+
className: u(
|
|
3821
3993
|
"w-10 h-10 rounded-md text-sm border transition-all",
|
|
3822
3994
|
i === e ? "bg-primary text-white border-primary shadow-sm" : "hover:bg-secondary border-border"
|
|
3823
3995
|
),
|
|
@@ -3825,7 +3997,7 @@ const St = ({
|
|
|
3825
3997
|
},
|
|
3826
3998
|
i
|
|
3827
3999
|
)),
|
|
3828
|
-
e < t - 2 && /* @__PURE__ */ d(
|
|
4000
|
+
e < t - 2 && /* @__PURE__ */ d(me, { children: [
|
|
3829
4001
|
/* @__PURE__ */ r("span", { className: "text-primary/50 px-1", children: "..." }),
|
|
3830
4002
|
/* @__PURE__ */ r(
|
|
3831
4003
|
g.button,
|
|
@@ -3846,7 +4018,7 @@ const St = ({
|
|
|
3846
4018
|
size: "sm",
|
|
3847
4019
|
disabled: e === t,
|
|
3848
4020
|
onClick: () => a(e + 1),
|
|
3849
|
-
icon: /* @__PURE__ */ r(
|
|
4021
|
+
icon: /* @__PURE__ */ r(Ge, { className: "w-4 h-4" }),
|
|
3850
4022
|
children: "Next"
|
|
3851
4023
|
}
|
|
3852
4024
|
)
|
|
@@ -3854,7 +4026,7 @@ const St = ({
|
|
|
3854
4026
|
]
|
|
3855
4027
|
}
|
|
3856
4028
|
);
|
|
3857
|
-
},
|
|
4029
|
+
}, ft = ({
|
|
3858
4030
|
icon: e,
|
|
3859
4031
|
onClick: t,
|
|
3860
4032
|
label: a,
|
|
@@ -3864,22 +4036,22 @@ const St = ({
|
|
|
3864
4036
|
disabled: s,
|
|
3865
4037
|
className: c
|
|
3866
4038
|
}) => {
|
|
3867
|
-
const [i, m] =
|
|
4039
|
+
const [i, m] = D(!1), x = {
|
|
3868
4040
|
"bottom-right": "fixed bottom-6 right-6",
|
|
3869
4041
|
"bottom-left": "fixed bottom-6 left-6",
|
|
3870
4042
|
"bottom-center": "fixed bottom-6 left-1/2 -translate-x-1/2"
|
|
3871
|
-
},
|
|
4043
|
+
}, y = {
|
|
3872
4044
|
primary: "bg-primary text-white hover:bg-primary-dark shadow-lg",
|
|
3873
4045
|
secondary: "bg-background text-primary border-2 border-primary hover:bg-secondary shadow-md"
|
|
3874
|
-
},
|
|
4046
|
+
}, h = {
|
|
3875
4047
|
primary: "bg-primary text-white",
|
|
3876
4048
|
success: "bg-success text-white",
|
|
3877
4049
|
danger: "bg-error text-white",
|
|
3878
4050
|
warning: "bg-warning text-white"
|
|
3879
|
-
},
|
|
4051
|
+
}, N = () => {
|
|
3880
4052
|
o && o.length > 0 ? m(!i) : t && t();
|
|
3881
4053
|
};
|
|
3882
|
-
return /* @__PURE__ */ d("div", { className:
|
|
4054
|
+
return /* @__PURE__ */ d("div", { className: u(x[l], "z-50", c), children: [
|
|
3883
4055
|
/* @__PURE__ */ r(Q, { children: i && o && /* @__PURE__ */ r(
|
|
3884
4056
|
g.div,
|
|
3885
4057
|
{
|
|
@@ -3887,34 +4059,34 @@ const St = ({
|
|
|
3887
4059
|
animate: { opacity: 1 },
|
|
3888
4060
|
exit: { opacity: 0 },
|
|
3889
4061
|
className: "absolute bottom-20 right-0 flex flex-col gap-3 mb-2",
|
|
3890
|
-
children: o.map((
|
|
4062
|
+
children: o.map((k, w) => /* @__PURE__ */ d(
|
|
3891
4063
|
g.div,
|
|
3892
4064
|
{
|
|
3893
4065
|
initial: { opacity: 0, y: 20, scale: 0.8 },
|
|
3894
4066
|
animate: { opacity: 1, y: 0, scale: 1 },
|
|
3895
4067
|
exit: { opacity: 0, y: 20, scale: 0.8 },
|
|
3896
|
-
transition: { delay:
|
|
4068
|
+
transition: { delay: w * 0.05 },
|
|
3897
4069
|
className: "flex items-center gap-3",
|
|
3898
4070
|
children: [
|
|
3899
|
-
/* @__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:
|
|
4071
|
+
/* @__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: k.label }),
|
|
3900
4072
|
/* @__PURE__ */ r(
|
|
3901
4073
|
g.button,
|
|
3902
4074
|
{
|
|
3903
4075
|
whileHover: { scale: 1.1 },
|
|
3904
4076
|
whileTap: { scale: 0.9 },
|
|
3905
4077
|
onClick: () => {
|
|
3906
|
-
|
|
4078
|
+
k.onClick(), m(!1);
|
|
3907
4079
|
},
|
|
3908
|
-
className:
|
|
4080
|
+
className: u(
|
|
3909
4081
|
"w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all",
|
|
3910
|
-
|
|
4082
|
+
h[k.variant || "primary"]
|
|
3911
4083
|
),
|
|
3912
|
-
children:
|
|
4084
|
+
children: k.icon
|
|
3913
4085
|
}
|
|
3914
4086
|
)
|
|
3915
4087
|
]
|
|
3916
4088
|
},
|
|
3917
|
-
|
|
4089
|
+
w
|
|
3918
4090
|
))
|
|
3919
4091
|
}
|
|
3920
4092
|
) }),
|
|
@@ -3923,33 +4095,33 @@ const St = ({
|
|
|
3923
4095
|
{
|
|
3924
4096
|
whileTap: { scale: s ? 1 : 0.9 },
|
|
3925
4097
|
whileHover: { scale: s ? 1 : 1.05 },
|
|
3926
|
-
onClick:
|
|
4098
|
+
onClick: N,
|
|
3927
4099
|
disabled: s,
|
|
3928
|
-
className:
|
|
4100
|
+
className: u(
|
|
3929
4101
|
"z-30 rounded-full p-4 transition-all duration-200",
|
|
3930
4102
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
3931
4103
|
"flex items-center gap-2",
|
|
3932
|
-
|
|
4104
|
+
y[n],
|
|
3933
4105
|
a ? "px-6" : "w-16 h-16 justify-center",
|
|
3934
4106
|
i && "rotate-45"
|
|
3935
4107
|
),
|
|
3936
4108
|
children: [
|
|
3937
|
-
/* @__PURE__ */ r("span", { className: "flex-shrink-0", children: e || (i ? /* @__PURE__ */ r(
|
|
4109
|
+
/* @__PURE__ */ r("span", { className: "flex-shrink-0", children: e || (i ? /* @__PURE__ */ r($, { className: "w-6 h-6" }) : /* @__PURE__ */ r(cr, { className: "w-6 h-6" })) }),
|
|
3938
4110
|
a && /* @__PURE__ */ r("span", { className: "font-medium", children: a })
|
|
3939
4111
|
]
|
|
3940
4112
|
}
|
|
3941
4113
|
)
|
|
3942
4114
|
] });
|
|
3943
|
-
},
|
|
4115
|
+
}, Yt = ft, Ht = ({
|
|
3944
4116
|
steps: e,
|
|
3945
4117
|
currentStep: t,
|
|
3946
4118
|
className: a
|
|
3947
4119
|
}) => {
|
|
3948
4120
|
const o = e[t];
|
|
3949
|
-
return /* @__PURE__ */ d("div", { className:
|
|
4121
|
+
return /* @__PURE__ */ d("div", { className: u("w-full", a), children: [
|
|
3950
4122
|
/* @__PURE__ */ r("div", { className: "hidden md:block", children: /* @__PURE__ */ r("div", { className: "relative flex items-center mb-2", children: e.map((n, l) => {
|
|
3951
4123
|
const s = l < t, c = l === t, i = l > t;
|
|
3952
|
-
return /* @__PURE__ */ d(
|
|
4124
|
+
return /* @__PURE__ */ d(Le.Fragment, { children: [
|
|
3953
4125
|
/* @__PURE__ */ d("div", { className: "flex flex-col items-center relative z-10", children: [
|
|
3954
4126
|
/* @__PURE__ */ r(
|
|
3955
4127
|
g.div,
|
|
@@ -3959,21 +4131,21 @@ const St = ({
|
|
|
3959
4131
|
scale: c ? 1.05 : 1,
|
|
3960
4132
|
backgroundColor: s || c ? "var(--color-primary)" : "var(--color-border)"
|
|
3961
4133
|
},
|
|
3962
|
-
className:
|
|
4134
|
+
className: u(
|
|
3963
4135
|
"w-12 h-12 rounded-full flex items-center justify-center",
|
|
3964
4136
|
"font-semibold text-base transition-all duration-300",
|
|
3965
4137
|
(s || c) && "text-white shadow-lg",
|
|
3966
4138
|
i && "text-primary/50",
|
|
3967
4139
|
"ring-4 ring-white"
|
|
3968
4140
|
),
|
|
3969
|
-
children: s ? /* @__PURE__ */ r(
|
|
4141
|
+
children: s ? /* @__PURE__ */ r(Oe, { className: "w-6 h-6 stroke-[3]" }) : /* @__PURE__ */ r("span", { children: l + 1 })
|
|
3970
4142
|
}
|
|
3971
4143
|
),
|
|
3972
4144
|
/* @__PURE__ */ d("div", { className: "mt-3 text-center max-w-[120px]", children: [
|
|
3973
4145
|
/* @__PURE__ */ r(
|
|
3974
4146
|
"span",
|
|
3975
4147
|
{
|
|
3976
|
-
className:
|
|
4148
|
+
className: u(
|
|
3977
4149
|
"text-sm font-semibold block",
|
|
3978
4150
|
c && "text-primary",
|
|
3979
4151
|
s && "text-primary",
|
|
@@ -3985,7 +4157,7 @@ const St = ({
|
|
|
3985
4157
|
n.description && /* @__PURE__ */ r(
|
|
3986
4158
|
"p",
|
|
3987
4159
|
{
|
|
3988
|
-
className:
|
|
4160
|
+
className: u(
|
|
3989
4161
|
"text-xs mt-1 leading-tight",
|
|
3990
4162
|
c && "text-primary",
|
|
3991
4163
|
s && "text-primary/70",
|
|
@@ -4020,7 +4192,7 @@ const St = ({
|
|
|
4020
4192
|
scale: c ? 1.2 : 1,
|
|
4021
4193
|
backgroundColor: s || c ? "var(--color-primary)" : "var(--color-border-dark)"
|
|
4022
4194
|
},
|
|
4023
|
-
className:
|
|
4195
|
+
className: u(
|
|
4024
4196
|
"rounded-full transition-all duration-300",
|
|
4025
4197
|
c ? "w-3 h-3" : "w-2 h-2",
|
|
4026
4198
|
(s || c) && "shadow-sm"
|
|
@@ -4042,7 +4214,7 @@ const St = ({
|
|
|
4042
4214
|
)
|
|
4043
4215
|
] })
|
|
4044
4216
|
] });
|
|
4045
|
-
},
|
|
4217
|
+
}, qt = ({
|
|
4046
4218
|
children: e,
|
|
4047
4219
|
variant: t = "default",
|
|
4048
4220
|
size: a = "md",
|
|
@@ -4074,19 +4246,19 @@ const St = ({
|
|
|
4074
4246
|
initial: { opacity: 0, scale: 0.9 },
|
|
4075
4247
|
animate: { opacity: 1, scale: 1 },
|
|
4076
4248
|
transition: { duration: 0.2 },
|
|
4077
|
-
className:
|
|
4249
|
+
className: u(
|
|
4078
4250
|
"inline-flex items-center gap-1.5 rounded-lg font-medium",
|
|
4079
4251
|
l[t],
|
|
4080
4252
|
s[a],
|
|
4081
4253
|
o
|
|
4082
4254
|
),
|
|
4083
4255
|
children: [
|
|
4084
|
-
n && /* @__PURE__ */ r("span", { className:
|
|
4256
|
+
n && /* @__PURE__ */ r("span", { className: u("w-1.5 h-1.5 rounded-full", c[t]) }),
|
|
4085
4257
|
e
|
|
4086
4258
|
]
|
|
4087
4259
|
}
|
|
4088
4260
|
);
|
|
4089
|
-
},
|
|
4261
|
+
}, Jt = ({
|
|
4090
4262
|
isOffline: e,
|
|
4091
4263
|
className: t
|
|
4092
4264
|
}) => e ? /* @__PURE__ */ d(
|
|
@@ -4095,7 +4267,7 @@ const St = ({
|
|
|
4095
4267
|
initial: { opacity: 0, y: -10 },
|
|
4096
4268
|
animate: { opacity: 1, y: 0 },
|
|
4097
4269
|
exit: { opacity: 0, y: -10 },
|
|
4098
|
-
className:
|
|
4270
|
+
className: u(
|
|
4099
4271
|
"inline-flex items-center gap-2 px-3 py-1.5 rounded-full",
|
|
4100
4272
|
"bg-warning text-white text-sm font-medium shadow-sm",
|
|
4101
4273
|
t
|
|
@@ -4105,19 +4277,19 @@ const St = ({
|
|
|
4105
4277
|
/* @__PURE__ */ r("span", { children: "Offline Mode" })
|
|
4106
4278
|
]
|
|
4107
4279
|
}
|
|
4108
|
-
) : null,
|
|
4280
|
+
) : null, Qt = ({
|
|
4109
4281
|
status: e,
|
|
4110
4282
|
count: t,
|
|
4111
4283
|
className: a
|
|
4112
4284
|
}) => {
|
|
4113
4285
|
const n = {
|
|
4114
4286
|
synced: {
|
|
4115
|
-
icon: /* @__PURE__ */ r(
|
|
4287
|
+
icon: /* @__PURE__ */ r(Te, { className: "w-4 h-4" }),
|
|
4116
4288
|
label: "Synced",
|
|
4117
4289
|
color: "bg-success text-white"
|
|
4118
4290
|
},
|
|
4119
4291
|
syncing: {
|
|
4120
|
-
icon: /* @__PURE__ */ r(g.div, { animate: { rotate: 360 }, transition: { repeat: 1 / 0, duration: 1, ease: "linear" }, children: /* @__PURE__ */ r(
|
|
4292
|
+
icon: /* @__PURE__ */ r(g.div, { animate: { rotate: 360 }, transition: { repeat: 1 / 0, duration: 1, ease: "linear" }, children: /* @__PURE__ */ r(Te, { className: "w-4 h-4" }) }),
|
|
4121
4293
|
label: "Syncing...",
|
|
4122
4294
|
color: "bg-info text-white"
|
|
4123
4295
|
},
|
|
@@ -4137,7 +4309,7 @@ const St = ({
|
|
|
4137
4309
|
{
|
|
4138
4310
|
initial: { scale: 0.9, opacity: 0 },
|
|
4139
4311
|
animate: { scale: 1, opacity: 1 },
|
|
4140
|
-
className:
|
|
4312
|
+
className: u(
|
|
4141
4313
|
"inline-flex items-center gap-2 px-3 py-1.5 rounded-full",
|
|
4142
4314
|
"text-sm font-medium shadow-sm",
|
|
4143
4315
|
n.color,
|
|
@@ -4149,7 +4321,128 @@ const St = ({
|
|
|
4149
4321
|
]
|
|
4150
4322
|
}
|
|
4151
4323
|
);
|
|
4152
|
-
},
|
|
4324
|
+
}, gt = {
|
|
4325
|
+
sm: "w-4 h-4 border-2",
|
|
4326
|
+
md: "w-8 h-8 border-2",
|
|
4327
|
+
lg: "w-12 h-12 border-3",
|
|
4328
|
+
xl: "w-16 h-16 border-4"
|
|
4329
|
+
}, yt = {
|
|
4330
|
+
primary: "border-primary border-t-transparent",
|
|
4331
|
+
secondary: "border-secondary border-t-transparent",
|
|
4332
|
+
white: "border-white border-t-transparent"
|
|
4333
|
+
}, xt = ({
|
|
4334
|
+
size: e = "md",
|
|
4335
|
+
variant: t = "primary",
|
|
4336
|
+
className: a,
|
|
4337
|
+
label: o
|
|
4338
|
+
}) => /* @__PURE__ */ d("div", { className: u("inline-flex flex-col items-center gap-2", a), children: [
|
|
4339
|
+
/* @__PURE__ */ r(
|
|
4340
|
+
g.div,
|
|
4341
|
+
{
|
|
4342
|
+
className: u(
|
|
4343
|
+
"rounded-full",
|
|
4344
|
+
gt[e],
|
|
4345
|
+
yt[t]
|
|
4346
|
+
),
|
|
4347
|
+
animate: { rotate: 360 },
|
|
4348
|
+
transition: {
|
|
4349
|
+
duration: 0.8,
|
|
4350
|
+
repeat: 1 / 0,
|
|
4351
|
+
ease: "linear"
|
|
4352
|
+
},
|
|
4353
|
+
role: "status",
|
|
4354
|
+
"aria-label": o || "Loading"
|
|
4355
|
+
}
|
|
4356
|
+
),
|
|
4357
|
+
o && /* @__PURE__ */ r("span", { className: "text-sm text-foreground/70", children: o })
|
|
4358
|
+
] });
|
|
4359
|
+
xt.displayName = "Spinner";
|
|
4360
|
+
const Ze = er(void 0), Kt = () => {
|
|
4361
|
+
const e = rr(Ze);
|
|
4362
|
+
if (!e)
|
|
4363
|
+
throw new Error("useToast must be used within ToastProvider");
|
|
4364
|
+
return e;
|
|
4365
|
+
}, wt = {
|
|
4366
|
+
success: "bg-success/10 border-success text-success backdrop-blur-2xl",
|
|
4367
|
+
error: "bg-error/10 border-error text-error backdrop-blur-2xl",
|
|
4368
|
+
warning: "bg-warning/10 border-warning text-warning backdrop-blur-2xl",
|
|
4369
|
+
info: "bg-info/10 border-info text-info backdrop-blur-2xl",
|
|
4370
|
+
default: "bg-background border-border text-foreground backdrop-blur-2xl"
|
|
4371
|
+
}, vt = {
|
|
4372
|
+
success: pr,
|
|
4373
|
+
error: ur,
|
|
4374
|
+
warning: mr,
|
|
4375
|
+
info: dr,
|
|
4376
|
+
default: null
|
|
4377
|
+
}, Nt = {
|
|
4378
|
+
"top-left": "top-4 left-4",
|
|
4379
|
+
"top-center": "top-4 left-1/2 -translate-x-1/2",
|
|
4380
|
+
"top-right": "top-4 right-4",
|
|
4381
|
+
"bottom-left": "bottom-4 left-4",
|
|
4382
|
+
"bottom-center": "bottom-4 left-1/2 -translate-x-1/2",
|
|
4383
|
+
"bottom-right": "bottom-4 right-4"
|
|
4384
|
+
}, kt = ({ toast: e, onRemove: t }) => {
|
|
4385
|
+
const a = e.variant || "default", o = vt[a];
|
|
4386
|
+
return /* @__PURE__ */ d(
|
|
4387
|
+
g.div,
|
|
4388
|
+
{
|
|
4389
|
+
layout: !0,
|
|
4390
|
+
initial: { opacity: 0, y: -20, scale: 0.95 },
|
|
4391
|
+
animate: { opacity: 1, y: 0, scale: 1 },
|
|
4392
|
+
exit: { opacity: 0, x: 100, scale: 0.95 },
|
|
4393
|
+
transition: { duration: 0.2 },
|
|
4394
|
+
className: u(
|
|
4395
|
+
"flex items-start gap-3 p-4 rounded-md border shadow-lg min-w-[320px] max-w-md",
|
|
4396
|
+
wt[a]
|
|
4397
|
+
),
|
|
4398
|
+
children: [
|
|
4399
|
+
o && /* @__PURE__ */ r(o, { className: "w-5 h-5 flex-shrink-0 mt-0.5" }),
|
|
4400
|
+
/* @__PURE__ */ d("div", { className: "flex-1 min-w-0", children: [
|
|
4401
|
+
/* @__PURE__ */ r("p", { className: "text-sm font-medium leading-relaxed", children: e.message }),
|
|
4402
|
+
e.action && /* @__PURE__ */ r(
|
|
4403
|
+
"button",
|
|
4404
|
+
{
|
|
4405
|
+
onClick: e.action.onClick,
|
|
4406
|
+
className: "mt-2 text-xs font-semibold hover:underline",
|
|
4407
|
+
children: e.action.label
|
|
4408
|
+
}
|
|
4409
|
+
)
|
|
4410
|
+
] }),
|
|
4411
|
+
/* @__PURE__ */ r(
|
|
4412
|
+
"button",
|
|
4413
|
+
{
|
|
4414
|
+
onClick: () => t(e.id),
|
|
4415
|
+
className: "flex-shrink-0 hover:opacity-70 transition-opacity",
|
|
4416
|
+
"aria-label": "Close notification",
|
|
4417
|
+
children: /* @__PURE__ */ r($, { className: "w-4 h-4" })
|
|
4418
|
+
}
|
|
4419
|
+
)
|
|
4420
|
+
]
|
|
4421
|
+
}
|
|
4422
|
+
);
|
|
4423
|
+
}, Ct = ({
|
|
4424
|
+
children: e,
|
|
4425
|
+
position: t = "top-right",
|
|
4426
|
+
maxToasts: a = 5
|
|
4427
|
+
}) => {
|
|
4428
|
+
const [o, n] = D([]), l = ze(
|
|
4429
|
+
(c) => {
|
|
4430
|
+
const i = Math.random().toString(36).substring(2, 9), m = c.duration ?? 5e3;
|
|
4431
|
+
n((x) => [...x, { ...c, id: i }].slice(-a)), m > 0 && setTimeout(() => {
|
|
4432
|
+
s(i);
|
|
4433
|
+
}, m);
|
|
4434
|
+
},
|
|
4435
|
+
[a]
|
|
4436
|
+
), s = ze((c) => {
|
|
4437
|
+
n((i) => i.filter((m) => m.id !== c));
|
|
4438
|
+
}, []);
|
|
4439
|
+
return /* @__PURE__ */ d(Ze.Provider, { value: { toasts: o, addToast: l, removeToast: s }, children: [
|
|
4440
|
+
e,
|
|
4441
|
+
/* @__PURE__ */ r("div", { className: u("fixed z-[100] flex flex-col gap-2", Nt[t]), children: /* @__PURE__ */ r(Q, { mode: "popLayout", children: o.map((c) => /* @__PURE__ */ r(kt, { toast: c, onRemove: s }, c.id)) }) })
|
|
4442
|
+
] });
|
|
4443
|
+
};
|
|
4444
|
+
Ct.displayName = "ToastProvider";
|
|
4445
|
+
const Xt = ({
|
|
4153
4446
|
onCapture: e,
|
|
4154
4447
|
onRemove: t,
|
|
4155
4448
|
preview: a,
|
|
@@ -4157,11 +4450,11 @@ const St = ({
|
|
|
4157
4450
|
disabled: n,
|
|
4158
4451
|
className: l
|
|
4159
4452
|
}) => {
|
|
4160
|
-
const s =
|
|
4453
|
+
const s = H(null), c = (i) => {
|
|
4161
4454
|
const m = i.target.files?.[0];
|
|
4162
4455
|
m && e(m);
|
|
4163
4456
|
};
|
|
4164
|
-
return /* @__PURE__ */ d("div", { className:
|
|
4457
|
+
return /* @__PURE__ */ d("div", { className: u("w-full", l), children: [
|
|
4165
4458
|
o && /* @__PURE__ */ r("label", { className: "block mb-2 text-sm font-medium text-primary", children: o }),
|
|
4166
4459
|
a ? /* @__PURE__ */ d("div", { className: "relative rounded-lg overflow-hidden border-2 border-border", children: [
|
|
4167
4460
|
/* @__PURE__ */ r(
|
|
@@ -4177,7 +4470,7 @@ const St = ({
|
|
|
4177
4470
|
{
|
|
4178
4471
|
onClick: t,
|
|
4179
4472
|
className: "absolute top-2 right-2 p-2 bg-error text-white rounded-full shadow-lg hover:bg-red-600",
|
|
4180
|
-
children: /* @__PURE__ */ r(
|
|
4473
|
+
children: /* @__PURE__ */ r($, { className: "w-4 h-4" })
|
|
4181
4474
|
}
|
|
4182
4475
|
)
|
|
4183
4476
|
] }) : /* @__PURE__ */ d(
|
|
@@ -4187,7 +4480,7 @@ const St = ({
|
|
|
4187
4480
|
whileTap: { scale: n ? 1 : 0.98 },
|
|
4188
4481
|
onClick: () => s.current?.click(),
|
|
4189
4482
|
disabled: n,
|
|
4190
|
-
className:
|
|
4483
|
+
className: u(
|
|
4191
4484
|
"w-full p-4 rounded-lg border-2 border-border",
|
|
4192
4485
|
"flex items-center justify-center gap-3",
|
|
4193
4486
|
"bg-secondary hover:bg-border hover:border-border-dark",
|
|
@@ -4195,7 +4488,7 @@ const St = ({
|
|
|
4195
4488
|
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
4196
4489
|
),
|
|
4197
4490
|
children: [
|
|
4198
|
-
/* @__PURE__ */ r(
|
|
4491
|
+
/* @__PURE__ */ r(br, { className: "w-6 h-6 text-primary" }),
|
|
4199
4492
|
/* @__PURE__ */ r("span", { className: "font-medium text-foreground", children: "Capture Photo" })
|
|
4200
4493
|
]
|
|
4201
4494
|
}
|
|
@@ -4213,7 +4506,7 @@ const St = ({
|
|
|
4213
4506
|
}
|
|
4214
4507
|
)
|
|
4215
4508
|
] });
|
|
4216
|
-
},
|
|
4509
|
+
}, Zt = ({
|
|
4217
4510
|
onUpload: e,
|
|
4218
4511
|
accept: t = "*/*",
|
|
4219
4512
|
multiple: a = !1,
|
|
@@ -4221,10 +4514,10 @@ const St = ({
|
|
|
4221
4514
|
disabled: n,
|
|
4222
4515
|
className: l
|
|
4223
4516
|
}) => {
|
|
4224
|
-
const s =
|
|
4517
|
+
const s = H(null), c = (i) => {
|
|
4225
4518
|
i && e(Array.from(i));
|
|
4226
4519
|
};
|
|
4227
|
-
return /* @__PURE__ */ d("div", { className:
|
|
4520
|
+
return /* @__PURE__ */ d("div", { className: u("w-full", l), children: [
|
|
4228
4521
|
o && /* @__PURE__ */ r("label", { className: "block mb-2 text-sm font-medium text-primary", children: o }),
|
|
4229
4522
|
/* @__PURE__ */ d(
|
|
4230
4523
|
g.button,
|
|
@@ -4233,7 +4526,7 @@ const St = ({
|
|
|
4233
4526
|
whileTap: { scale: n ? 1 : 0.98 },
|
|
4234
4527
|
onClick: () => !n && s.current?.click(),
|
|
4235
4528
|
disabled: n,
|
|
4236
|
-
className:
|
|
4529
|
+
className: u(
|
|
4237
4530
|
"w-full p-4 rounded-lg border-2 border-border",
|
|
4238
4531
|
"flex items-center justify-center gap-3",
|
|
4239
4532
|
"bg-secondary hover:bg-border hover:border-border-dark",
|
|
@@ -4241,7 +4534,7 @@ const St = ({
|
|
|
4241
4534
|
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
4242
4535
|
),
|
|
4243
4536
|
children: [
|
|
4244
|
-
/* @__PURE__ */ r(
|
|
4537
|
+
/* @__PURE__ */ r(hr, { className: "w-6 h-6 text-primary" }),
|
|
4245
4538
|
/* @__PURE__ */ r("span", { className: "font-medium text-foreground", children: a ? "Upload Files" : "Upload File" })
|
|
4246
4539
|
]
|
|
4247
4540
|
}
|
|
@@ -4259,7 +4552,7 @@ const St = ({
|
|
|
4259
4552
|
}
|
|
4260
4553
|
)
|
|
4261
4554
|
] });
|
|
4262
|
-
},
|
|
4555
|
+
}, eo = ({
|
|
4263
4556
|
onRecordingComplete: e,
|
|
4264
4557
|
label: t = "Record Audio",
|
|
4265
4558
|
maxDuration: a = 300,
|
|
@@ -4267,53 +4560,53 @@ const St = ({
|
|
|
4267
4560
|
disabled: o,
|
|
4268
4561
|
className: n
|
|
4269
4562
|
}) => {
|
|
4270
|
-
const [l, s] =
|
|
4563
|
+
const [l, s] = D(!1), [c, i] = D(!1), [m, x] = D(0), [y, h] = D(null), N = H(null), k = H([]), w = H(null), M = async () => {
|
|
4271
4564
|
try {
|
|
4272
|
-
const
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
},
|
|
4276
|
-
const
|
|
4277
|
-
|
|
4278
|
-
},
|
|
4279
|
-
x((
|
|
4565
|
+
const S = await navigator.mediaDevices.getUserMedia({ audio: !0 }), O = new MediaRecorder(S);
|
|
4566
|
+
N.current = O, k.current = [], O.ondataavailable = (f) => {
|
|
4567
|
+
f.data.size > 0 && k.current.push(f.data);
|
|
4568
|
+
}, O.onstop = () => {
|
|
4569
|
+
const f = new Blob(k.current, { type: "audio/webm" }), C = URL.createObjectURL(f);
|
|
4570
|
+
h(C), e(f), S.getTracks().forEach((A) => A.stop());
|
|
4571
|
+
}, O.start(), s(!0), x(0), w.current = setInterval(() => {
|
|
4572
|
+
x((f) => f >= a ? (T(), f) : f + 1);
|
|
4280
4573
|
}, 1e3);
|
|
4281
|
-
} catch (
|
|
4282
|
-
console.error("Error accessing microphone:",
|
|
4574
|
+
} catch (S) {
|
|
4575
|
+
console.error("Error accessing microphone:", S);
|
|
4283
4576
|
}
|
|
4284
|
-
},
|
|
4285
|
-
|
|
4286
|
-
},
|
|
4287
|
-
|
|
4288
|
-
x((
|
|
4577
|
+
}, j = () => {
|
|
4578
|
+
N.current?.state === "recording" && (N.current.pause(), i(!0), w.current && clearInterval(w.current));
|
|
4579
|
+
}, L = () => {
|
|
4580
|
+
N.current?.state === "paused" && (N.current.resume(), i(!1), w.current = setInterval(() => {
|
|
4581
|
+
x((S) => Math.min(S + 1, a));
|
|
4289
4582
|
}, 1e3));
|
|
4290
|
-
},
|
|
4291
|
-
|
|
4292
|
-
},
|
|
4293
|
-
|
|
4294
|
-
},
|
|
4295
|
-
const
|
|
4296
|
-
return `${
|
|
4583
|
+
}, T = () => {
|
|
4584
|
+
N.current && (N.current.stop(), s(!1), i(!1), w.current && (clearInterval(w.current), w.current = null));
|
|
4585
|
+
}, F = () => {
|
|
4586
|
+
h(null), x(0);
|
|
4587
|
+
}, P = (S) => {
|
|
4588
|
+
const O = Math.floor(S / 60), f = S % 60;
|
|
4589
|
+
return `${O.toString().padStart(2, "0")}:${f.toString().padStart(2, "0")}`;
|
|
4297
4590
|
};
|
|
4298
|
-
return /* @__PURE__ */ d("div", { className:
|
|
4591
|
+
return /* @__PURE__ */ d("div", { className: u("w-full", n), children: [
|
|
4299
4592
|
t && /* @__PURE__ */ r("label", { className: "block mb-2 text-sm font-medium text-primary", children: t }),
|
|
4300
4593
|
/* @__PURE__ */ d("div", { className: "p-4 md:p-6 bg-background rounded-lg border-2 border-border space-y-4", children: [
|
|
4301
|
-
!
|
|
4594
|
+
!y && /* @__PURE__ */ d("div", { className: "flex flex-col items-center gap-4", children: [
|
|
4302
4595
|
/* @__PURE__ */ d("div", { className: "relative", children: [
|
|
4303
4596
|
/* @__PURE__ */ r(
|
|
4304
4597
|
g.button,
|
|
4305
4598
|
{
|
|
4306
4599
|
type: "button",
|
|
4307
4600
|
whileTap: { scale: o ? 1 : 0.95 },
|
|
4308
|
-
onClick: l ? c ?
|
|
4601
|
+
onClick: l ? c ? L : j : M,
|
|
4309
4602
|
disabled: o,
|
|
4310
|
-
className:
|
|
4603
|
+
className: u(
|
|
4311
4604
|
"w-16 h-16 md:w-20 md:h-20 rounded-full flex items-center justify-center",
|
|
4312
4605
|
"transition-all duration-200",
|
|
4313
4606
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4314
4607
|
l ? "bg-warning text-white animate-pulse" : "bg-primary text-white hover:bg-primary-dark"
|
|
4315
4608
|
),
|
|
4316
|
-
children: l ? c ? /* @__PURE__ */ r(
|
|
4609
|
+
children: l ? c ? /* @__PURE__ */ r(fr, { className: "w-6 h-6 md:w-8 md:h-8" }) : /* @__PURE__ */ r(gr, { className: "w-6 h-6 md:w-8 md:h-8" }) : /* @__PURE__ */ r(yr, { className: "w-6 h-6 md:w-8 md:h-8" })
|
|
4317
4610
|
}
|
|
4318
4611
|
),
|
|
4319
4612
|
l && !c && /* @__PURE__ */ r(
|
|
@@ -4326,7 +4619,7 @@ const St = ({
|
|
|
4326
4619
|
)
|
|
4327
4620
|
] }),
|
|
4328
4621
|
/* @__PURE__ */ d("div", { className: "text-center", children: [
|
|
4329
|
-
/* @__PURE__ */ r("p", { className: "text-xl md:text-2xl font-mono font-semibold text-foreground", children:
|
|
4622
|
+
/* @__PURE__ */ r("p", { className: "text-xl md:text-2xl font-mono font-semibold text-foreground", children: P(m) }),
|
|
4330
4623
|
/* @__PURE__ */ r("p", { className: "text-xs md:text-sm text-primary/70 mt-1", children: l ? c ? "Paused" : "Recording..." : "Tap to record" })
|
|
4331
4624
|
] }),
|
|
4332
4625
|
l && /* @__PURE__ */ d(
|
|
@@ -4335,36 +4628,36 @@ const St = ({
|
|
|
4335
4628
|
initial: { opacity: 0, scale: 0.8 },
|
|
4336
4629
|
animate: { opacity: 1, scale: 1 },
|
|
4337
4630
|
type: "button",
|
|
4338
|
-
onClick:
|
|
4631
|
+
onClick: T,
|
|
4339
4632
|
className: "px-4 py-2 text-sm bg-error text-white rounded-full font-medium hover:bg-red-600 flex items-center gap-2",
|
|
4340
4633
|
children: [
|
|
4341
|
-
/* @__PURE__ */ r(
|
|
4634
|
+
/* @__PURE__ */ r(xr, { className: "w-4 h-4" }),
|
|
4342
4635
|
"Stop"
|
|
4343
4636
|
]
|
|
4344
4637
|
}
|
|
4345
4638
|
)
|
|
4346
4639
|
] }),
|
|
4347
|
-
|
|
4640
|
+
y && /* @__PURE__ */ d(
|
|
4348
4641
|
g.div,
|
|
4349
4642
|
{
|
|
4350
4643
|
initial: { opacity: 0 },
|
|
4351
4644
|
animate: { opacity: 1 },
|
|
4352
4645
|
className: "space-y-3",
|
|
4353
4646
|
children: [
|
|
4354
|
-
/* @__PURE__ */ r("audio", { src:
|
|
4647
|
+
/* @__PURE__ */ r("audio", { src: y, controls: !0, className: "w-full" }),
|
|
4355
4648
|
/* @__PURE__ */ d("div", { className: "flex items-center justify-between", children: [
|
|
4356
4649
|
/* @__PURE__ */ d("span", { className: "text-sm text-primary/70", children: [
|
|
4357
4650
|
"Duration: ",
|
|
4358
|
-
|
|
4651
|
+
P(m)
|
|
4359
4652
|
] }),
|
|
4360
4653
|
/* @__PURE__ */ d(
|
|
4361
4654
|
"button",
|
|
4362
4655
|
{
|
|
4363
4656
|
type: "button",
|
|
4364
|
-
onClick:
|
|
4657
|
+
onClick: F,
|
|
4365
4658
|
className: "flex items-center gap-2 px-3 py-1.5 text-sm text-error hover:bg-red-50 rounded-lg transition-colors",
|
|
4366
4659
|
children: [
|
|
4367
|
-
/* @__PURE__ */ r(
|
|
4660
|
+
/* @__PURE__ */ r(wr, { className: "w-4 h-4" }),
|
|
4368
4661
|
"Delete"
|
|
4369
4662
|
]
|
|
4370
4663
|
}
|
|
@@ -4375,7 +4668,7 @@ const St = ({
|
|
|
4375
4668
|
)
|
|
4376
4669
|
] })
|
|
4377
4670
|
] });
|
|
4378
|
-
},
|
|
4671
|
+
}, ro = ({
|
|
4379
4672
|
items: e,
|
|
4380
4673
|
onRemove: t,
|
|
4381
4674
|
onView: a,
|
|
@@ -4397,10 +4690,10 @@ const St = ({
|
|
|
4397
4690
|
case "audio":
|
|
4398
4691
|
return /* @__PURE__ */ r(Me, { className: "w-8 h-8 text-primary" });
|
|
4399
4692
|
default:
|
|
4400
|
-
return /* @__PURE__ */ r(
|
|
4693
|
+
return /* @__PURE__ */ r(vr, { className: "w-8 h-8 text-primary" });
|
|
4401
4694
|
}
|
|
4402
4695
|
};
|
|
4403
|
-
return e.length === 0 ? null : /* @__PURE__ */ r("div", { className:
|
|
4696
|
+
return e.length === 0 ? null : /* @__PURE__ */ r("div", { className: u("w-full", n), children: /* @__PURE__ */ r("div", { className: u("grid gap-3", l[o]), children: e.map((i) => /* @__PURE__ */ d(
|
|
4404
4697
|
g.div,
|
|
4405
4698
|
{
|
|
4406
4699
|
initial: { opacity: 0, scale: 0.8 },
|
|
@@ -4412,7 +4705,7 @@ const St = ({
|
|
|
4412
4705
|
"div",
|
|
4413
4706
|
{
|
|
4414
4707
|
onClick: () => a?.(i),
|
|
4415
|
-
className:
|
|
4708
|
+
className: u(
|
|
4416
4709
|
"aspect-square rounded-lg overflow-hidden border-2 border-border",
|
|
4417
4710
|
"flex items-center justify-center",
|
|
4418
4711
|
"cursor-pointer hover:border-border-dark transition-all",
|
|
@@ -4440,7 +4733,7 @@ const St = ({
|
|
|
4440
4733
|
onClick: (m) => {
|
|
4441
4734
|
m.stopPropagation(), t(i.id);
|
|
4442
4735
|
},
|
|
4443
|
-
children: /* @__PURE__ */ r(
|
|
4736
|
+
children: /* @__PURE__ */ r($, { className: "w-4 h-4" })
|
|
4444
4737
|
}
|
|
4445
4738
|
),
|
|
4446
4739
|
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: [
|
|
@@ -4453,38 +4746,42 @@ const St = ({
|
|
|
4453
4746
|
)) }) });
|
|
4454
4747
|
};
|
|
4455
4748
|
export {
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4749
|
+
eo as AudioRecorder,
|
|
4750
|
+
qt as Badge,
|
|
4751
|
+
Vt as BottomSheet,
|
|
4459
4752
|
xe as Button,
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4753
|
+
Xt as CameraCapture,
|
|
4754
|
+
Lt as Card,
|
|
4755
|
+
Pt as CardContent,
|
|
4756
|
+
Ft as CardDescription,
|
|
4757
|
+
Ot as CardHeader,
|
|
4758
|
+
Et as CardTitle,
|
|
4759
|
+
pt as Checkbox,
|
|
4760
|
+
Dt as DatePicker,
|
|
4761
|
+
Gt as Drawer,
|
|
4762
|
+
jt as Dropdown,
|
|
4763
|
+
It as DualSlider,
|
|
4764
|
+
Yt as FAB,
|
|
4765
|
+
Zt as FileUploader,
|
|
4766
|
+
ft as FloatingActionButton,
|
|
4767
|
+
mt as Input,
|
|
4768
|
+
Ut as Modal,
|
|
4769
|
+
Bt as ModalContent,
|
|
4770
|
+
$t as ModalFooter,
|
|
4771
|
+
Jt as OfflineBadge,
|
|
4772
|
+
Wt as Pagination,
|
|
4773
|
+
Rt as RadioPills,
|
|
4774
|
+
ht as Select,
|
|
4775
|
+
At as Slider,
|
|
4776
|
+
xt as Spinner,
|
|
4777
|
+
Ht as StepProgress,
|
|
4778
|
+
Qt as SyncIndicator,
|
|
4779
|
+
_t as Table,
|
|
4780
|
+
ut as Textarea,
|
|
4781
|
+
ro as ThumbnailGrid,
|
|
4782
|
+
Ct as ToastProvider,
|
|
4783
|
+
bt as Toggle,
|
|
4784
|
+
u as cn,
|
|
4785
|
+
Kt as useToast
|
|
4489
4786
|
};
|
|
4490
4787
|
//# sourceMappingURL=index.js.map
|