@stackloop/ui 2.4.1 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +703 -700
- package/dist/index.js.map +1 -1
- package/dist/stackloop-ui.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as d, jsx as r, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
-
import Le, { forwardRef as
|
|
3
|
-
import { motion as g, AnimatePresence as
|
|
4
|
-
import { Loader2 as tr, EyeOff as or, Eye as ar, Check as
|
|
2
|
+
import Le, { forwardRef as ne, useState as L, useRef as Y, useEffect as Z, createContext as er, useCallback as ze, useContext as rr } from "react";
|
|
3
|
+
import { motion as g, AnimatePresence as Q } from "framer-motion";
|
|
4
|
+
import { Loader2 as tr, EyeOff as or, Eye as ar, Check as Oe, ChevronDown as Ee, Search as Fe, X as H, Calendar as nr, ChevronLeft as Pe, ChevronRight as Ge, ArrowUp as sr, 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 fr, Play as hr, Pause as gr, Mic as yr, Square as xr, Trash2 as wr, Image as vr, FileText as Me } from "lucide-react";
|
|
5
5
|
function Be(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
|
-
var
|
|
10
|
-
for (t = 0; t <
|
|
9
|
+
var n = e.length;
|
|
10
|
+
for (t = 0; t < n; t++) e[t] && (a = Be(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
14
|
function Nr() {
|
|
15
|
-
for (var e, t, a = 0, o = "",
|
|
15
|
+
for (var e, t, a = 0, o = "", n = arguments.length; a < n; a++) (e = arguments[a]) && (t = Be(e)) && (o && (o += " "), o += t);
|
|
16
16
|
return o;
|
|
17
17
|
}
|
|
18
18
|
const kr = (e, t) => {
|
|
@@ -35,34 +35,34 @@ const kr = (e, t) => {
|
|
|
35
35
|
conflictingClassGroupModifiers: o
|
|
36
36
|
} = e;
|
|
37
37
|
return {
|
|
38
|
-
getClassGroupId: (
|
|
39
|
-
if (
|
|
40
|
-
return Tr(
|
|
41
|
-
const c =
|
|
38
|
+
getClassGroupId: (s) => {
|
|
39
|
+
if (s.startsWith("[") && s.endsWith("]"))
|
|
40
|
+
return Tr(s);
|
|
41
|
+
const c = s.split(ue), i = c[0] === "" && c.length > 1 ? 1 : 0;
|
|
42
42
|
return $e(c, i, t);
|
|
43
43
|
},
|
|
44
|
-
getConflictingClassGroupIds: (
|
|
44
|
+
getConflictingClassGroupIds: (s, c) => {
|
|
45
45
|
if (c) {
|
|
46
|
-
const i = o[
|
|
46
|
+
const i = o[s], m = a[s];
|
|
47
47
|
return i ? m ? kr(m, i) : i : m || Re;
|
|
48
48
|
}
|
|
49
|
-
return a[
|
|
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
|
-
const
|
|
55
|
+
const n = e[t], l = a.nextPart.get(n);
|
|
56
56
|
if (l) {
|
|
57
57
|
const m = $e(e, t + 1, l);
|
|
58
58
|
if (m) return m;
|
|
59
59
|
}
|
|
60
|
-
const
|
|
61
|
-
if (
|
|
60
|
+
const s = a.validators;
|
|
61
|
+
if (s === null)
|
|
62
62
|
return;
|
|
63
|
-
const c = t === 0 ? e.join(ue) : e.slice(t).join(ue), i =
|
|
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
|
-
const x =
|
|
65
|
+
const x = s[m];
|
|
66
66
|
if (x.validator(c))
|
|
67
67
|
return x.classGroupId;
|
|
68
68
|
}
|
|
@@ -78,15 +78,15 @@ const kr = (e, t) => {
|
|
|
78
78
|
}, Rr = (e, t) => {
|
|
79
79
|
const a = Ue();
|
|
80
80
|
for (const o in e) {
|
|
81
|
-
const
|
|
82
|
-
we(
|
|
81
|
+
const n = e[o];
|
|
82
|
+
we(n, a, o, t);
|
|
83
83
|
}
|
|
84
84
|
return a;
|
|
85
85
|
}, we = (e, t, a, o) => {
|
|
86
|
-
const
|
|
87
|
-
for (let l = 0; l <
|
|
88
|
-
const
|
|
89
|
-
Ar(
|
|
86
|
+
const n = e.length;
|
|
87
|
+
for (let l = 0; l < n; l++) {
|
|
88
|
+
const s = e[l];
|
|
89
|
+
Ar(s, t, a, o);
|
|
90
90
|
}
|
|
91
91
|
}, Ar = (e, t, a, o) => {
|
|
92
92
|
if (typeof e == "string") {
|
|
@@ -108,21 +108,21 @@ const kr = (e, t) => {
|
|
|
108
108
|
}
|
|
109
109
|
t.validators === null && (t.validators = []), t.validators.push(Cr(a, e));
|
|
110
110
|
}, Dr = (e, t, a, o) => {
|
|
111
|
-
const
|
|
112
|
-
for (let
|
|
113
|
-
const [c, i] = s
|
|
111
|
+
const n = Object.entries(e), l = n.length;
|
|
112
|
+
for (let s = 0; s < l; s++) {
|
|
113
|
+
const [c, i] = n[s];
|
|
114
114
|
we(i, _e(t, c), a, o);
|
|
115
115
|
}
|
|
116
116
|
}, _e = (e, t) => {
|
|
117
117
|
let a = e;
|
|
118
|
-
const o = t.split(ue),
|
|
119
|
-
for (let l = 0; l <
|
|
120
|
-
const
|
|
121
|
-
let c = a.nextPart.get(
|
|
122
|
-
c || (c = Ue(), a.nextPart.set(
|
|
118
|
+
const o = t.split(ue), n = o.length;
|
|
119
|
+
for (let l = 0; l < n; l++) {
|
|
120
|
+
const s = o[l];
|
|
121
|
+
let c = a.nextPart.get(s);
|
|
122
|
+
c || (c = Ue(), a.nextPart.set(s, c)), a = c;
|
|
123
123
|
}
|
|
124
124
|
return a;
|
|
125
|
-
}, Lr = (e) => "isThemeGetter" in e && e.isThemeGetter === !0,
|
|
125
|
+
}, Lr = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Or = (e) => {
|
|
126
126
|
if (e < 1)
|
|
127
127
|
return {
|
|
128
128
|
get: () => {
|
|
@@ -131,41 +131,41 @@ const kr = (e, t) => {
|
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
133
|
let t = 0, a = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
|
|
134
|
-
const
|
|
135
|
-
a[l] =
|
|
134
|
+
const n = (l, s) => {
|
|
135
|
+
a[l] = s, t++, t > e && (t = 0, o = a, a = /* @__PURE__ */ Object.create(null));
|
|
136
136
|
};
|
|
137
137
|
return {
|
|
138
138
|
get(l) {
|
|
139
|
-
let
|
|
140
|
-
if (
|
|
141
|
-
return
|
|
142
|
-
if ((
|
|
143
|
-
return
|
|
139
|
+
let s = a[l];
|
|
140
|
+
if (s !== void 0)
|
|
141
|
+
return s;
|
|
142
|
+
if ((s = o[l]) !== void 0)
|
|
143
|
+
return n(l, s), s;
|
|
144
144
|
},
|
|
145
|
-
set(l,
|
|
146
|
-
l in a ? a[l] =
|
|
145
|
+
set(l, s) {
|
|
146
|
+
l in a ? a[l] = s : n(l, s);
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
|
-
}, ye = "!", Ae = ":",
|
|
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
|
-
isExternal:
|
|
154
|
+
isExternal: n
|
|
155
155
|
}), Fr = (e) => {
|
|
156
156
|
const {
|
|
157
157
|
prefix: t,
|
|
158
158
|
experimentalParseClassName: a
|
|
159
159
|
} = e;
|
|
160
|
-
let o = (
|
|
160
|
+
let o = (n) => {
|
|
161
161
|
const l = [];
|
|
162
|
-
let
|
|
163
|
-
const x =
|
|
162
|
+
let s = 0, c = 0, i = 0, m;
|
|
163
|
+
const x = n.length;
|
|
164
164
|
for (let v = 0; v < x; v++) {
|
|
165
|
-
const M =
|
|
166
|
-
if (
|
|
165
|
+
const M = n[v];
|
|
166
|
+
if (s === 0 && c === 0) {
|
|
167
167
|
if (M === Ae) {
|
|
168
|
-
l.push(
|
|
168
|
+
l.push(n.slice(i, v)), i = v + 1;
|
|
169
169
|
continue;
|
|
170
170
|
}
|
|
171
171
|
if (M === "/") {
|
|
@@ -173,29 +173,29 @@ const kr = (e, t) => {
|
|
|
173
173
|
continue;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
M === "[" ?
|
|
176
|
+
M === "[" ? s++ : M === "]" ? s-- : M === "(" ? c++ : M === ")" && c--;
|
|
177
177
|
}
|
|
178
|
-
const y = l.length === 0 ?
|
|
179
|
-
let
|
|
180
|
-
y.endsWith(ye) ? (
|
|
178
|
+
const y = l.length === 0 ? n : n.slice(i);
|
|
179
|
+
let f = y, k = !1;
|
|
180
|
+
y.endsWith(ye) ? (f = y.slice(0, -1), k = !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
|
-
y.startsWith(ye) && (
|
|
185
|
+
y.startsWith(ye) && (f = y.slice(1), k = !0)
|
|
186
186
|
);
|
|
187
187
|
const w = m && m > i ? m - i : void 0;
|
|
188
|
-
return Ie(l,
|
|
188
|
+
return Ie(l, k, f, w);
|
|
189
189
|
};
|
|
190
190
|
if (t) {
|
|
191
|
-
const
|
|
192
|
-
o = (
|
|
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
|
-
const
|
|
195
|
+
const n = o;
|
|
196
196
|
o = (l) => a({
|
|
197
197
|
className: l,
|
|
198
|
-
parseClassName:
|
|
198
|
+
parseClassName: n
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
return o;
|
|
@@ -205,15 +205,15 @@ const kr = (e, t) => {
|
|
|
205
205
|
t.set(a, 1e6 + o);
|
|
206
206
|
}), (a) => {
|
|
207
207
|
const o = [];
|
|
208
|
-
let
|
|
208
|
+
let n = [];
|
|
209
209
|
for (let l = 0; l < a.length; l++) {
|
|
210
|
-
const
|
|
211
|
-
c || i ? (
|
|
210
|
+
const s = a[l], c = s[0] === "[", i = t.has(s);
|
|
211
|
+
c || i ? (n.length > 0 && (n.sort(), o.push(...n), n = []), o.push(s)) : n.push(s);
|
|
212
212
|
}
|
|
213
|
-
return
|
|
213
|
+
return n.length > 0 && (n.sort(), o.push(...n)), o;
|
|
214
214
|
};
|
|
215
215
|
}, Gr = (e) => ({
|
|
216
|
-
cache:
|
|
216
|
+
cache: Or(e.cacheSize),
|
|
217
217
|
parseClassName: Fr(e),
|
|
218
218
|
sortModifiers: Pr(e),
|
|
219
219
|
...zr(e)
|
|
@@ -221,15 +221,15 @@ const kr = (e, t) => {
|
|
|
221
221
|
const {
|
|
222
222
|
parseClassName: a,
|
|
223
223
|
getClassGroupId: o,
|
|
224
|
-
getConflictingClassGroupIds:
|
|
224
|
+
getConflictingClassGroupIds: n,
|
|
225
225
|
sortModifiers: l
|
|
226
|
-
} = t,
|
|
226
|
+
} = t, s = [], c = e.trim().split(Br);
|
|
227
227
|
let i = "";
|
|
228
228
|
for (let m = c.length - 1; m >= 0; m -= 1) {
|
|
229
229
|
const x = c[m], {
|
|
230
230
|
isExternal: y,
|
|
231
|
-
modifiers:
|
|
232
|
-
hasImportantModifier:
|
|
231
|
+
modifiers: f,
|
|
232
|
+
hasImportantModifier: k,
|
|
233
233
|
baseClassName: w,
|
|
234
234
|
maybePostfixModifierPosition: v
|
|
235
235
|
} = a(x);
|
|
@@ -237,35 +237,35 @@ const kr = (e, t) => {
|
|
|
237
237
|
i = x + (i.length > 0 ? " " + i : i);
|
|
238
238
|
continue;
|
|
239
239
|
}
|
|
240
|
-
let M = !!v,
|
|
241
|
-
if (!
|
|
240
|
+
let M = !!v, I = o(M ? w.substring(0, v) : w);
|
|
241
|
+
if (!I) {
|
|
242
242
|
if (!M) {
|
|
243
243
|
i = x + (i.length > 0 ? " " + i : i);
|
|
244
244
|
continue;
|
|
245
245
|
}
|
|
246
|
-
if (
|
|
246
|
+
if (I = o(w), !I) {
|
|
247
247
|
i = x + (i.length > 0 ? " " + i : i);
|
|
248
248
|
continue;
|
|
249
249
|
}
|
|
250
250
|
M = !1;
|
|
251
251
|
}
|
|
252
|
-
const
|
|
253
|
-
if (
|
|
252
|
+
const T = f.length === 0 ? "" : f.length === 1 ? f[0] : l(f).join(":"), O = k ? T + ye : T, G = O + I;
|
|
253
|
+
if (s.indexOf(G) > -1)
|
|
254
254
|
continue;
|
|
255
|
-
|
|
256
|
-
const
|
|
257
|
-
for (let
|
|
258
|
-
const
|
|
259
|
-
|
|
255
|
+
s.push(G);
|
|
256
|
+
const z = n(I, M);
|
|
257
|
+
for (let R = 0; R < z.length; ++R) {
|
|
258
|
+
const F = z[R];
|
|
259
|
+
s.push(O + F);
|
|
260
260
|
}
|
|
261
261
|
i = x + (i.length > 0 ? " " + i : i);
|
|
262
262
|
}
|
|
263
263
|
return i;
|
|
264
264
|
}, $r = (...e) => {
|
|
265
|
-
let t = 0, a, o,
|
|
265
|
+
let t = 0, a, o, n = "";
|
|
266
266
|
for (; t < e.length; )
|
|
267
|
-
(a = e[t++]) && (o = Ve(a)) && (
|
|
268
|
-
return
|
|
267
|
+
(a = e[t++]) && (o = Ve(a)) && (n && (n += " "), n += o);
|
|
268
|
+
return n;
|
|
269
269
|
}, Ve = (e) => {
|
|
270
270
|
if (typeof e == "string")
|
|
271
271
|
return e;
|
|
@@ -274,34 +274,34 @@ const kr = (e, t) => {
|
|
|
274
274
|
e[o] && (t = Ve(e[o])) && (a && (a += " "), a += t);
|
|
275
275
|
return a;
|
|
276
276
|
}, _r = (e, ...t) => {
|
|
277
|
-
let a, o,
|
|
278
|
-
const
|
|
277
|
+
let a, o, n, l;
|
|
278
|
+
const s = (i) => {
|
|
279
279
|
const m = t.reduce((x, y) => y(x), e());
|
|
280
|
-
return a = Gr(m), o = a.cache.get,
|
|
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
285
|
const x = Ur(i, a);
|
|
286
|
-
return
|
|
286
|
+
return n(i, x), x;
|
|
287
287
|
};
|
|
288
|
-
return l =
|
|
289
|
-
}, Vr = [],
|
|
288
|
+
return l = s, (...i) => l($r(...i));
|
|
289
|
+
}, Vr = [], A = (e) => {
|
|
290
290
|
const t = (a) => a[e] || Vr;
|
|
291
291
|
return t.isThemeGetter = !0, t;
|
|
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)/,
|
|
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), S = (e) => !!e && !Number.isNaN(Number(e)), J = (e) => !!e && Number.isInteger(Number(e)), fe = (e) => e.endsWith("%") && S(e.slice(0, -1)), W = (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
296
|
Hr.test(e) && !qr.test(e)
|
|
297
|
-
), He = () => !1, Zr = (e) => Jr.test(e), et = (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), he = (e) => ee(e, it, S), je = (e) => ee(e, qe, He), ot = (e) => ee(e, Je, et), de = (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), nt = (e) => re(e, Qe), st = (e) => re(e, Je), me = (e) => re(e, Xe, !0), ee = (e, t, a) => {
|
|
298
298
|
const o = We.exec(e);
|
|
299
299
|
return o ? o[1] ? t(o[1]) : a(o[2]) : !1;
|
|
300
300
|
}, re = (e, t, a = !1) => {
|
|
301
301
|
const o = Ye.exec(e);
|
|
302
302
|
return o ? o[1] ? t(o[1]) : a : !1;
|
|
303
|
-
}, qe = (e) => e === "position" || e === "percentage", Je = (e) => e === "image" || e === "url",
|
|
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 = A("color"), t = A("font"), a = A("text"), o = A("font-weight"), n = A("tracking"), l = A("leading"), s = A("breakpoint"), c = A("container"), i = A("spacing"), m = A("radius"), x = A("shadow"), y = A("inset-shadow"), f = A("text-shadow"), k = A("drop-shadow"), w = A("blur"), v = A("perspective"), M = A("aspect"), I = A("ease"), T = A("animate"), O = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [
|
|
305
305
|
"center",
|
|
306
306
|
"top",
|
|
307
307
|
"bottom",
|
|
@@ -319,15 +319,15 @@ const kr = (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
|
-
],
|
|
322
|
+
], z = () => [...G(), b, p], R = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", "contain", "none"], h = () => [b, p, i], C = () => [X, "full", "auto", ...h()], j = () => [J, "none", "subgrid", b, p], $ = () => ["auto", {
|
|
323
323
|
span: ["full", J, b, p]
|
|
324
|
-
}, J, b, p],
|
|
324
|
+
}, J, b, p], _ = () => [J, "auto", b, p], V = () => ["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"], B = () => ["auto", ...h()], P = () => [X, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...h()], N = () => [e, b, p], ve = () => [...G(), De, je, {
|
|
325
325
|
position: [b, p]
|
|
326
326
|
}], Ne = () => ["no-repeat", {
|
|
327
327
|
repeat: ["", "x", "y", "space", "round"]
|
|
328
|
-
}], ke = () => ["auto", "cover", "contain",
|
|
328
|
+
}], ke = () => ["auto", "cover", "contain", nt, tt, {
|
|
329
329
|
size: [b, p]
|
|
330
|
-
}], pe = () => [
|
|
330
|
+
}], pe = () => [fe, oe, K], E = () => [
|
|
331
331
|
// Deprecated since Tailwind CSS v4.0.0
|
|
332
332
|
"",
|
|
333
333
|
"none",
|
|
@@ -335,35 +335,35 @@ const kr = (e, t) => {
|
|
|
335
335
|
m,
|
|
336
336
|
b,
|
|
337
337
|
p
|
|
338
|
-
], U = () => ["",
|
|
338
|
+
], U = () => ["", S, 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"], D = () => [S, fe, De, je], Se = () => [
|
|
339
339
|
// Deprecated since Tailwind CSS v4.0.0
|
|
340
340
|
"",
|
|
341
341
|
"none",
|
|
342
342
|
w,
|
|
343
343
|
b,
|
|
344
344
|
p
|
|
345
|
-
], ie = () => ["none",
|
|
345
|
+
], ie = () => ["none", S, b, p], le = () => ["none", S, b, p], be = () => [S, b, p], ce = () => [X, "full", ...h()];
|
|
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: [W],
|
|
352
|
+
breakpoint: [W],
|
|
353
|
+
color: [Kr],
|
|
354
|
+
container: [W],
|
|
355
|
+
"drop-shadow": [W],
|
|
356
356
|
ease: ["in", "out", "in-out"],
|
|
357
357
|
font: [rt],
|
|
358
358
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
359
|
-
"inset-shadow": [
|
|
359
|
+
"inset-shadow": [W],
|
|
360
360
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
361
361
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
362
|
-
radius: [
|
|
363
|
-
shadow: [
|
|
364
|
-
spacing: ["px",
|
|
365
|
-
text: [
|
|
366
|
-
"text-shadow": [
|
|
362
|
+
radius: [W],
|
|
363
|
+
shadow: [W],
|
|
364
|
+
spacing: ["px", S],
|
|
365
|
+
text: [W],
|
|
366
|
+
"text-shadow": [W],
|
|
367
367
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
368
368
|
},
|
|
369
369
|
classGroups: {
|
|
@@ -388,21 +388,21 @@ const kr = (e, t) => {
|
|
|
388
388
|
* @see https://tailwindcss.com/docs/columns
|
|
389
389
|
*/
|
|
390
390
|
columns: [{
|
|
391
|
-
columns: [
|
|
391
|
+
columns: [S, 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": O()
|
|
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": O()
|
|
406
406
|
}],
|
|
407
407
|
/**
|
|
408
408
|
* Break Inside
|
|
@@ -466,49 +466,49 @@ const kr = (e, t) => {
|
|
|
466
466
|
* @see https://tailwindcss.com/docs/object-position
|
|
467
467
|
*/
|
|
468
468
|
"object-position": [{
|
|
469
|
-
object:
|
|
469
|
+
object: z()
|
|
470
470
|
}],
|
|
471
471
|
/**
|
|
472
472
|
* Overflow
|
|
473
473
|
* @see https://tailwindcss.com/docs/overflow
|
|
474
474
|
*/
|
|
475
475
|
overflow: [{
|
|
476
|
-
overflow:
|
|
476
|
+
overflow: R()
|
|
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": R()
|
|
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": R()
|
|
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: F()
|
|
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": F()
|
|
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": F()
|
|
512
512
|
}],
|
|
513
513
|
/**
|
|
514
514
|
* Position
|
|
@@ -520,63 +520,63 @@ const kr = (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
|
|
@@ -598,7 +598,7 @@ const kr = (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, ...h()]
|
|
602
602
|
}],
|
|
603
603
|
/**
|
|
604
604
|
* Flex Direction
|
|
@@ -619,21 +619,21 @@ const kr = (e, t) => {
|
|
|
619
619
|
* @see https://tailwindcss.com/docs/flex
|
|
620
620
|
*/
|
|
621
621
|
flex: [{
|
|
622
|
-
flex: [
|
|
622
|
+
flex: [S, 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: ["",
|
|
629
|
+
grow: ["", S, 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: ["",
|
|
636
|
+
shrink: ["", S, b, p]
|
|
637
637
|
}],
|
|
638
638
|
/**
|
|
639
639
|
* Order
|
|
@@ -647,56 +647,56 @@ const kr = (e, t) => {
|
|
|
647
647
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
648
648
|
*/
|
|
649
649
|
"grid-cols": [{
|
|
650
|
-
"grid-cols":
|
|
650
|
+
"grid-cols": j()
|
|
651
651
|
}],
|
|
652
652
|
/**
|
|
653
653
|
* Grid Column Start / End
|
|
654
654
|
* @see https://tailwindcss.com/docs/grid-column
|
|
655
655
|
*/
|
|
656
656
|
"col-start-end": [{
|
|
657
|
-
col:
|
|
657
|
+
col: $()
|
|
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
|
|
675
675
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
676
676
|
*/
|
|
677
677
|
"grid-rows": [{
|
|
678
|
-
"grid-rows":
|
|
678
|
+
"grid-rows": j()
|
|
679
679
|
}],
|
|
680
680
|
/**
|
|
681
681
|
* Grid Row Start / End
|
|
682
682
|
* @see https://tailwindcss.com/docs/grid-row
|
|
683
683
|
*/
|
|
684
684
|
"row-start-end": [{
|
|
685
|
-
row:
|
|
685
|
+
row: $()
|
|
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,35 +710,35 @@ const kr = (e, t) => {
|
|
|
710
710
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
711
711
|
*/
|
|
712
712
|
"auto-cols": [{
|
|
713
|
-
"auto-cols":
|
|
713
|
+
"auto-cols": V()
|
|
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": V()
|
|
721
721
|
}],
|
|
722
722
|
/**
|
|
723
723
|
* Gap
|
|
724
724
|
* @see https://tailwindcss.com/docs/gap
|
|
725
725
|
*/
|
|
726
726
|
gap: [{
|
|
727
|
-
gap:
|
|
727
|
+
gap: h()
|
|
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": h()
|
|
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": h()
|
|
742
742
|
}],
|
|
743
743
|
/**
|
|
744
744
|
* Justify Content
|
|
@@ -813,63 +813,63 @@ const kr = (e, t) => {
|
|
|
813
813
|
* @see https://tailwindcss.com/docs/padding
|
|
814
814
|
*/
|
|
815
815
|
p: [{
|
|
816
|
-
p:
|
|
816
|
+
p: h()
|
|
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: h()
|
|
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: h()
|
|
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: h()
|
|
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: h()
|
|
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: h()
|
|
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: h()
|
|
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: h()
|
|
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: h()
|
|
873
873
|
}],
|
|
874
874
|
/**
|
|
875
875
|
* Margin
|
|
@@ -939,7 +939,7 @@ const kr = (e, t) => {
|
|
|
939
939
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
940
940
|
*/
|
|
941
941
|
"space-x": [{
|
|
942
|
-
"space-x":
|
|
942
|
+
"space-x": h()
|
|
943
943
|
}],
|
|
944
944
|
/**
|
|
945
945
|
* Space Between X Reverse
|
|
@@ -951,7 +951,7 @@ const kr = (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": h()
|
|
955
955
|
}],
|
|
956
956
|
/**
|
|
957
957
|
* Space Between Y Reverse
|
|
@@ -966,14 +966,14 @@ const kr = (e, t) => {
|
|
|
966
966
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
967
967
|
*/
|
|
968
968
|
size: [{
|
|
969
|
-
size:
|
|
969
|
+
size: P()
|
|
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", ...P()]
|
|
977
977
|
}],
|
|
978
978
|
/**
|
|
979
979
|
* Min-Width
|
|
@@ -985,7 +985,7 @@ const kr = (e, t) => {
|
|
|
985
985
|
"screen",
|
|
986
986
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
987
987
|
"none",
|
|
988
|
-
...
|
|
988
|
+
...P()
|
|
989
989
|
]
|
|
990
990
|
}],
|
|
991
991
|
/**
|
|
@@ -1001,9 +1001,9 @@ const kr = (e, t) => {
|
|
|
1001
1001
|
"prose",
|
|
1002
1002
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1003
1003
|
{
|
|
1004
|
-
screen: [
|
|
1004
|
+
screen: [s]
|
|
1005
1005
|
},
|
|
1006
|
-
...
|
|
1006
|
+
...P()
|
|
1007
1007
|
]
|
|
1008
1008
|
}],
|
|
1009
1009
|
/**
|
|
@@ -1011,21 +1011,21 @@ const kr = (e, t) => {
|
|
|
1011
1011
|
* @see https://tailwindcss.com/docs/height
|
|
1012
1012
|
*/
|
|
1013
1013
|
h: [{
|
|
1014
|
-
h: ["screen", "lh", ...
|
|
1014
|
+
h: ["screen", "lh", ...P()]
|
|
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", ...P()]
|
|
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", ...P()]
|
|
1029
1029
|
}],
|
|
1030
1030
|
// ------------------
|
|
1031
1031
|
// --- Typography ---
|
|
@@ -1035,7 +1035,7 @@ const kr = (e, t) => {
|
|
|
1035
1035
|
* @see https://tailwindcss.com/docs/font-size
|
|
1036
1036
|
*/
|
|
1037
1037
|
"font-size": [{
|
|
1038
|
-
text: ["base", a, oe,
|
|
1038
|
+
text: ["base", a, oe, K]
|
|
1039
1039
|
}],
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Font Smoothing
|
|
@@ -1052,14 +1052,14 @@ const kr = (e, t) => {
|
|
|
1052
1052
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1053
1053
|
*/
|
|
1054
1054
|
"font-weight": [{
|
|
1055
|
-
font: [o, b,
|
|
1055
|
+
font: [o, b, he]
|
|
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",
|
|
1062
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", fe, p]
|
|
1063
1063
|
}],
|
|
1064
1064
|
/**
|
|
1065
1065
|
* Font Family
|
|
@@ -1103,14 +1103,14 @@ const kr = (e, t) => {
|
|
|
1103
1103
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1104
1104
|
*/
|
|
1105
1105
|
tracking: [{
|
|
1106
|
-
tracking: [
|
|
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": [
|
|
1113
|
+
"line-clamp": [S, "none", b, he]
|
|
1114
1114
|
}],
|
|
1115
1115
|
/**
|
|
1116
1116
|
* Line Height
|
|
@@ -1120,7 +1120,7 @@ const kr = (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
|
+
...h()
|
|
1124
1124
|
]
|
|
1125
1125
|
}],
|
|
1126
1126
|
/**
|
|
@@ -1157,14 +1157,14 @@ const kr = (e, t) => {
|
|
|
1157
1157
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1158
1158
|
*/
|
|
1159
1159
|
"placeholder-color": [{
|
|
1160
|
-
placeholder:
|
|
1160
|
+
placeholder: N()
|
|
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: N()
|
|
1168
1168
|
}],
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Text Decoration
|
|
@@ -1176,28 +1176,28 @@ const kr = (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: [
|
|
1186
|
+
decoration: [S, "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: N()
|
|
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": [
|
|
1200
|
+
"underline-offset": [S, "auto", b, p]
|
|
1201
1201
|
}],
|
|
1202
1202
|
/**
|
|
1203
1203
|
* Text Transform
|
|
@@ -1221,7 +1221,7 @@ const kr = (e, t) => {
|
|
|
1221
1221
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1222
1222
|
*/
|
|
1223
1223
|
indent: [{
|
|
1224
|
-
indent:
|
|
1224
|
+
indent: h()
|
|
1225
1225
|
}],
|
|
1226
1226
|
/**
|
|
1227
1227
|
* Vertical Alignment
|
|
@@ -1321,14 +1321,14 @@ const kr = (e, t) => {
|
|
|
1321
1321
|
}, J, b, p],
|
|
1322
1322
|
radial: ["", b, p],
|
|
1323
1323
|
conic: [J, b, p]
|
|
1324
|
-
},
|
|
1324
|
+
}, st, 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: N()
|
|
1332
1332
|
}],
|
|
1333
1333
|
/**
|
|
1334
1334
|
* Gradient Color Stops From Position
|
|
@@ -1356,21 +1356,21 @@ const kr = (e, t) => {
|
|
|
1356
1356
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1357
1357
|
*/
|
|
1358
1358
|
"gradient-from": [{
|
|
1359
|
-
from:
|
|
1359
|
+
from: N()
|
|
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: N()
|
|
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: N()
|
|
1374
1374
|
}],
|
|
1375
1375
|
// ---------------
|
|
1376
1376
|
// --- Borders ---
|
|
@@ -1380,105 +1380,105 @@ const kr = (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
|
|
@@ -1572,112 +1572,112 @@ const kr = (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: N()
|
|
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": N()
|
|
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": N()
|
|
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": N()
|
|
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": N()
|
|
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": N()
|
|
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": N()
|
|
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": N()
|
|
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": N()
|
|
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: N()
|
|
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": [
|
|
1666
|
+
"outline-offset": [S, 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: ["",
|
|
1673
|
+
outline: ["", S, 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: N()
|
|
1681
1681
|
}],
|
|
1682
1682
|
// ---------------
|
|
1683
1683
|
// --- Effects ---
|
|
@@ -1701,7 +1701,7 @@ const kr = (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: N()
|
|
1705
1705
|
}],
|
|
1706
1706
|
/**
|
|
1707
1707
|
* Inset Box Shadow
|
|
@@ -1715,7 +1715,7 @@ const kr = (e, t) => {
|
|
|
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": N()
|
|
1719
1719
|
}],
|
|
1720
1720
|
/**
|
|
1721
1721
|
* Ring Width
|
|
@@ -1736,7 +1736,7 @@ const kr = (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: N()
|
|
1740
1740
|
}],
|
|
1741
1741
|
/**
|
|
1742
1742
|
* Ring Offset Width
|
|
@@ -1745,7 +1745,7 @@ const kr = (e, t) => {
|
|
|
1745
1745
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1746
1746
|
*/
|
|
1747
1747
|
"ring-offset-w": [{
|
|
1748
|
-
"ring-offset": [
|
|
1748
|
+
"ring-offset": [S, K]
|
|
1749
1749
|
}],
|
|
1750
1750
|
/**
|
|
1751
1751
|
* Ring Offset Color
|
|
@@ -1754,7 +1754,7 @@ const kr = (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": N()
|
|
1758
1758
|
}],
|
|
1759
1759
|
/**
|
|
1760
1760
|
* Inset Ring Width
|
|
@@ -1768,28 +1768,28 @@ const kr = (e, t) => {
|
|
|
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": N()
|
|
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", f, me, de]
|
|
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": N()
|
|
1786
1786
|
}],
|
|
1787
1787
|
/**
|
|
1788
1788
|
* Opacity
|
|
1789
1789
|
* @see https://tailwindcss.com/docs/opacity
|
|
1790
1790
|
*/
|
|
1791
1791
|
opacity: [{
|
|
1792
|
-
opacity: [
|
|
1792
|
+
opacity: [S, b, p]
|
|
1793
1793
|
}],
|
|
1794
1794
|
/**
|
|
1795
1795
|
* Mix Blend Mode
|
|
@@ -1824,106 +1824,106 @@ const kr = (e, t) => {
|
|
|
1824
1824
|
* @see https://tailwindcss.com/docs/mask-image
|
|
1825
1825
|
*/
|
|
1826
1826
|
"mask-image-linear-pos": [{
|
|
1827
|
-
"mask-linear": [
|
|
1827
|
+
"mask-linear": [S]
|
|
1828
1828
|
}],
|
|
1829
1829
|
"mask-image-linear-from-pos": [{
|
|
1830
|
-
"mask-linear-from":
|
|
1830
|
+
"mask-linear-from": D()
|
|
1831
1831
|
}],
|
|
1832
1832
|
"mask-image-linear-to-pos": [{
|
|
1833
|
-
"mask-linear-to":
|
|
1833
|
+
"mask-linear-to": D()
|
|
1834
1834
|
}],
|
|
1835
1835
|
"mask-image-linear-from-color": [{
|
|
1836
|
-
"mask-linear-from":
|
|
1836
|
+
"mask-linear-from": N()
|
|
1837
1837
|
}],
|
|
1838
1838
|
"mask-image-linear-to-color": [{
|
|
1839
|
-
"mask-linear-to":
|
|
1839
|
+
"mask-linear-to": N()
|
|
1840
1840
|
}],
|
|
1841
1841
|
"mask-image-t-from-pos": [{
|
|
1842
|
-
"mask-t-from":
|
|
1842
|
+
"mask-t-from": D()
|
|
1843
1843
|
}],
|
|
1844
1844
|
"mask-image-t-to-pos": [{
|
|
1845
|
-
"mask-t-to":
|
|
1845
|
+
"mask-t-to": D()
|
|
1846
1846
|
}],
|
|
1847
1847
|
"mask-image-t-from-color": [{
|
|
1848
|
-
"mask-t-from":
|
|
1848
|
+
"mask-t-from": N()
|
|
1849
1849
|
}],
|
|
1850
1850
|
"mask-image-t-to-color": [{
|
|
1851
|
-
"mask-t-to":
|
|
1851
|
+
"mask-t-to": N()
|
|
1852
1852
|
}],
|
|
1853
1853
|
"mask-image-r-from-pos": [{
|
|
1854
|
-
"mask-r-from":
|
|
1854
|
+
"mask-r-from": D()
|
|
1855
1855
|
}],
|
|
1856
1856
|
"mask-image-r-to-pos": [{
|
|
1857
|
-
"mask-r-to":
|
|
1857
|
+
"mask-r-to": D()
|
|
1858
1858
|
}],
|
|
1859
1859
|
"mask-image-r-from-color": [{
|
|
1860
|
-
"mask-r-from":
|
|
1860
|
+
"mask-r-from": N()
|
|
1861
1861
|
}],
|
|
1862
1862
|
"mask-image-r-to-color": [{
|
|
1863
|
-
"mask-r-to":
|
|
1863
|
+
"mask-r-to": N()
|
|
1864
1864
|
}],
|
|
1865
1865
|
"mask-image-b-from-pos": [{
|
|
1866
|
-
"mask-b-from":
|
|
1866
|
+
"mask-b-from": D()
|
|
1867
1867
|
}],
|
|
1868
1868
|
"mask-image-b-to-pos": [{
|
|
1869
|
-
"mask-b-to":
|
|
1869
|
+
"mask-b-to": D()
|
|
1870
1870
|
}],
|
|
1871
1871
|
"mask-image-b-from-color": [{
|
|
1872
|
-
"mask-b-from":
|
|
1872
|
+
"mask-b-from": N()
|
|
1873
1873
|
}],
|
|
1874
1874
|
"mask-image-b-to-color": [{
|
|
1875
|
-
"mask-b-to":
|
|
1875
|
+
"mask-b-to": N()
|
|
1876
1876
|
}],
|
|
1877
1877
|
"mask-image-l-from-pos": [{
|
|
1878
|
-
"mask-l-from":
|
|
1878
|
+
"mask-l-from": D()
|
|
1879
1879
|
}],
|
|
1880
1880
|
"mask-image-l-to-pos": [{
|
|
1881
|
-
"mask-l-to":
|
|
1881
|
+
"mask-l-to": D()
|
|
1882
1882
|
}],
|
|
1883
1883
|
"mask-image-l-from-color": [{
|
|
1884
|
-
"mask-l-from":
|
|
1884
|
+
"mask-l-from": N()
|
|
1885
1885
|
}],
|
|
1886
1886
|
"mask-image-l-to-color": [{
|
|
1887
|
-
"mask-l-to":
|
|
1887
|
+
"mask-l-to": N()
|
|
1888
1888
|
}],
|
|
1889
1889
|
"mask-image-x-from-pos": [{
|
|
1890
|
-
"mask-x-from":
|
|
1890
|
+
"mask-x-from": D()
|
|
1891
1891
|
}],
|
|
1892
1892
|
"mask-image-x-to-pos": [{
|
|
1893
|
-
"mask-x-to":
|
|
1893
|
+
"mask-x-to": D()
|
|
1894
1894
|
}],
|
|
1895
1895
|
"mask-image-x-from-color": [{
|
|
1896
|
-
"mask-x-from":
|
|
1896
|
+
"mask-x-from": N()
|
|
1897
1897
|
}],
|
|
1898
1898
|
"mask-image-x-to-color": [{
|
|
1899
|
-
"mask-x-to":
|
|
1899
|
+
"mask-x-to": N()
|
|
1900
1900
|
}],
|
|
1901
1901
|
"mask-image-y-from-pos": [{
|
|
1902
|
-
"mask-y-from":
|
|
1902
|
+
"mask-y-from": D()
|
|
1903
1903
|
}],
|
|
1904
1904
|
"mask-image-y-to-pos": [{
|
|
1905
|
-
"mask-y-to":
|
|
1905
|
+
"mask-y-to": D()
|
|
1906
1906
|
}],
|
|
1907
1907
|
"mask-image-y-from-color": [{
|
|
1908
|
-
"mask-y-from":
|
|
1908
|
+
"mask-y-from": N()
|
|
1909
1909
|
}],
|
|
1910
1910
|
"mask-image-y-to-color": [{
|
|
1911
|
-
"mask-y-to":
|
|
1911
|
+
"mask-y-to": N()
|
|
1912
1912
|
}],
|
|
1913
1913
|
"mask-image-radial": [{
|
|
1914
1914
|
"mask-radial": [b, p]
|
|
1915
1915
|
}],
|
|
1916
1916
|
"mask-image-radial-from-pos": [{
|
|
1917
|
-
"mask-radial-from":
|
|
1917
|
+
"mask-radial-from": D()
|
|
1918
1918
|
}],
|
|
1919
1919
|
"mask-image-radial-to-pos": [{
|
|
1920
|
-
"mask-radial-to":
|
|
1920
|
+
"mask-radial-to": D()
|
|
1921
1921
|
}],
|
|
1922
1922
|
"mask-image-radial-from-color": [{
|
|
1923
|
-
"mask-radial-from":
|
|
1923
|
+
"mask-radial-from": N()
|
|
1924
1924
|
}],
|
|
1925
1925
|
"mask-image-radial-to-color": [{
|
|
1926
|
-
"mask-radial-to":
|
|
1926
|
+
"mask-radial-to": N()
|
|
1927
1927
|
}],
|
|
1928
1928
|
"mask-image-radial-shape": [{
|
|
1929
1929
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -1935,22 +1935,22 @@ const kr = (e, t) => {
|
|
|
1935
1935
|
}]
|
|
1936
1936
|
}],
|
|
1937
1937
|
"mask-image-radial-pos": [{
|
|
1938
|
-
"mask-radial-at":
|
|
1938
|
+
"mask-radial-at": G()
|
|
1939
1939
|
}],
|
|
1940
1940
|
"mask-image-conic-pos": [{
|
|
1941
|
-
"mask-conic": [
|
|
1941
|
+
"mask-conic": [S]
|
|
1942
1942
|
}],
|
|
1943
1943
|
"mask-image-conic-from-pos": [{
|
|
1944
|
-
"mask-conic-from":
|
|
1944
|
+
"mask-conic-from": D()
|
|
1945
1945
|
}],
|
|
1946
1946
|
"mask-image-conic-to-pos": [{
|
|
1947
|
-
"mask-conic-to":
|
|
1947
|
+
"mask-conic-to": D()
|
|
1948
1948
|
}],
|
|
1949
1949
|
"mask-image-conic-from-color": [{
|
|
1950
|
-
"mask-conic-from":
|
|
1950
|
+
"mask-conic-from": N()
|
|
1951
1951
|
}],
|
|
1952
1952
|
"mask-image-conic-to-color": [{
|
|
1953
|
-
"mask-conic-to":
|
|
1953
|
+
"mask-conic-to": N()
|
|
1954
1954
|
}],
|
|
1955
1955
|
/**
|
|
1956
1956
|
* Mask Mode
|
|
@@ -2029,14 +2029,14 @@ const kr = (e, t) => {
|
|
|
2029
2029
|
* @see https://tailwindcss.com/docs/brightness
|
|
2030
2030
|
*/
|
|
2031
2031
|
brightness: [{
|
|
2032
|
-
brightness: [
|
|
2032
|
+
brightness: [S, b, p]
|
|
2033
2033
|
}],
|
|
2034
2034
|
/**
|
|
2035
2035
|
* Contrast
|
|
2036
2036
|
* @see https://tailwindcss.com/docs/contrast
|
|
2037
2037
|
*/
|
|
2038
2038
|
contrast: [{
|
|
2039
|
-
contrast: [
|
|
2039
|
+
contrast: [S, b, p]
|
|
2040
2040
|
}],
|
|
2041
2041
|
/**
|
|
2042
2042
|
* Drop Shadow
|
|
@@ -2047,7 +2047,7 @@ const kr = (e, t) => {
|
|
|
2047
2047
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2048
2048
|
"",
|
|
2049
2049
|
"none",
|
|
2050
|
-
|
|
2050
|
+
k,
|
|
2051
2051
|
me,
|
|
2052
2052
|
de
|
|
2053
2053
|
]
|
|
@@ -2057,42 +2057,42 @@ const kr = (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": N()
|
|
2061
2061
|
}],
|
|
2062
2062
|
/**
|
|
2063
2063
|
* Grayscale
|
|
2064
2064
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2065
2065
|
*/
|
|
2066
2066
|
grayscale: [{
|
|
2067
|
-
grayscale: ["",
|
|
2067
|
+
grayscale: ["", S, 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": [
|
|
2074
|
+
"hue-rotate": [S, b, p]
|
|
2075
2075
|
}],
|
|
2076
2076
|
/**
|
|
2077
2077
|
* Invert
|
|
2078
2078
|
* @see https://tailwindcss.com/docs/invert
|
|
2079
2079
|
*/
|
|
2080
2080
|
invert: [{
|
|
2081
|
-
invert: ["",
|
|
2081
|
+
invert: ["", S, b, p]
|
|
2082
2082
|
}],
|
|
2083
2083
|
/**
|
|
2084
2084
|
* Saturate
|
|
2085
2085
|
* @see https://tailwindcss.com/docs/saturate
|
|
2086
2086
|
*/
|
|
2087
2087
|
saturate: [{
|
|
2088
|
-
saturate: [
|
|
2088
|
+
saturate: [S, b, p]
|
|
2089
2089
|
}],
|
|
2090
2090
|
/**
|
|
2091
2091
|
* Sepia
|
|
2092
2092
|
* @see https://tailwindcss.com/docs/sepia
|
|
2093
2093
|
*/
|
|
2094
2094
|
sepia: [{
|
|
2095
|
-
sepia: ["",
|
|
2095
|
+
sepia: ["", S, b, p]
|
|
2096
2096
|
}],
|
|
2097
2097
|
/**
|
|
2098
2098
|
* Backdrop Filter
|
|
@@ -2119,56 +2119,56 @@ const kr = (e, t) => {
|
|
|
2119
2119
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2120
2120
|
*/
|
|
2121
2121
|
"backdrop-brightness": [{
|
|
2122
|
-
"backdrop-brightness": [
|
|
2122
|
+
"backdrop-brightness": [S, 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": [
|
|
2129
|
+
"backdrop-contrast": [S, 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": ["",
|
|
2136
|
+
"backdrop-grayscale": ["", S, 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": [
|
|
2143
|
+
"backdrop-hue-rotate": [S, 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": ["",
|
|
2150
|
+
"backdrop-invert": ["", S, 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": [
|
|
2157
|
+
"backdrop-opacity": [S, 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": [
|
|
2164
|
+
"backdrop-saturate": [S, 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": ["",
|
|
2171
|
+
"backdrop-sepia": ["", S, b, p]
|
|
2172
2172
|
}],
|
|
2173
2173
|
// --------------
|
|
2174
2174
|
// --- Tables ---
|
|
@@ -2185,21 +2185,21 @@ const kr = (e, t) => {
|
|
|
2185
2185
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2186
2186
|
*/
|
|
2187
2187
|
"border-spacing": [{
|
|
2188
|
-
"border-spacing":
|
|
2188
|
+
"border-spacing": h()
|
|
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": h()
|
|
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": h()
|
|
2203
2203
|
}],
|
|
2204
2204
|
/**
|
|
2205
2205
|
* Table Layout
|
|
@@ -2237,28 +2237,28 @@ const kr = (e, t) => {
|
|
|
2237
2237
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2238
2238
|
*/
|
|
2239
2239
|
duration: [{
|
|
2240
|
-
duration: [
|
|
2240
|
+
duration: [S, "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", I, 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: [
|
|
2254
|
+
delay: [S, 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", T, b, p]
|
|
2262
2262
|
}],
|
|
2263
2263
|
// ------------------
|
|
2264
2264
|
// --- Transforms ---
|
|
@@ -2282,7 +2282,7 @@ const kr = (e, t) => {
|
|
|
2282
2282
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2283
2283
|
*/
|
|
2284
2284
|
"perspective-origin": [{
|
|
2285
|
-
"perspective-origin":
|
|
2285
|
+
"perspective-origin": z()
|
|
2286
2286
|
}],
|
|
2287
2287
|
/**
|
|
2288
2288
|
* Rotate
|
|
@@ -2378,7 +2378,7 @@ const kr = (e, t) => {
|
|
|
2378
2378
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2379
2379
|
*/
|
|
2380
2380
|
"transform-origin": [{
|
|
2381
|
-
origin:
|
|
2381
|
+
origin: z()
|
|
2382
2382
|
}],
|
|
2383
2383
|
/**
|
|
2384
2384
|
* Transform Style
|
|
@@ -2428,7 +2428,7 @@ const kr = (e, t) => {
|
|
|
2428
2428
|
* @see https://tailwindcss.com/docs/accent-color
|
|
2429
2429
|
*/
|
|
2430
2430
|
accent: [{
|
|
2431
|
-
accent:
|
|
2431
|
+
accent: N()
|
|
2432
2432
|
}],
|
|
2433
2433
|
/**
|
|
2434
2434
|
* Appearance
|
|
@@ -2442,7 +2442,7 @@ const kr = (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: N()
|
|
2446
2446
|
}],
|
|
2447
2447
|
/**
|
|
2448
2448
|
* Color Scheme
|
|
@@ -2491,126 +2491,126 @@ const kr = (e, t) => {
|
|
|
2491
2491
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2492
2492
|
*/
|
|
2493
2493
|
"scroll-m": [{
|
|
2494
|
-
"scroll-m":
|
|
2494
|
+
"scroll-m": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
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": h()
|
|
2614
2614
|
}],
|
|
2615
2615
|
/**
|
|
2616
2616
|
* Scroll Snap Align
|
|
@@ -2688,21 +2688,21 @@ const kr = (e, t) => {
|
|
|
2688
2688
|
* @see https://tailwindcss.com/docs/fill
|
|
2689
2689
|
*/
|
|
2690
2690
|
fill: [{
|
|
2691
|
-
fill: ["none", ...
|
|
2691
|
+
fill: ["none", ...N()]
|
|
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: [
|
|
2698
|
+
stroke: [S, oe, K, he]
|
|
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", ...N()]
|
|
2706
2706
|
}],
|
|
2707
2707
|
// ---------------------
|
|
2708
2708
|
// --- Accessibility ---
|
|
@@ -2775,7 +2775,7 @@ function u(...e) {
|
|
|
2775
2775
|
return dt(Nr(e));
|
|
2776
2776
|
}
|
|
2777
2777
|
const xe = Le.forwardRef(
|
|
2778
|
-
({ variant: e = "primary", size: t = "md", loading: a, icon: o, className:
|
|
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] flex-shrink-0 whitespace-nowrap", x = {
|
|
2780
2780
|
primary: "bg-primary text-white hover:bg-primary-dark active:bg-primary-dark/90 shadow-sm",
|
|
2781
2781
|
secondary: "bg-secondary text-foreground hover:bg-border active:bg-border-dark",
|
|
@@ -2791,9 +2791,9 @@ const xe = Le.forwardRef(
|
|
|
2791
2791
|
g.button,
|
|
2792
2792
|
{
|
|
2793
2793
|
ref: i,
|
|
2794
|
-
whileTap: { scale:
|
|
2795
|
-
className: u(m, x[e], y[t],
|
|
2796
|
-
disabled:
|
|
2794
|
+
whileTap: { scale: s || a ? 1 : 0.98 },
|
|
2795
|
+
className: u(m, x[e], y[t], n),
|
|
2796
|
+
disabled: s || a,
|
|
2797
2797
|
...c,
|
|
2798
2798
|
children: [
|
|
2799
2799
|
a ? /* @__PURE__ */ r(tr, { className: "h-5 w-5 animate-spin" }) : o ? /* @__PURE__ */ r("span", { className: "flex-shrink-0", children: o }) : null,
|
|
@@ -2804,9 +2804,9 @@ const xe = Le.forwardRef(
|
|
|
2804
2804
|
}
|
|
2805
2805
|
);
|
|
2806
2806
|
xe.displayName = "Button";
|
|
2807
|
-
const mt =
|
|
2808
|
-
({ label: e, error: t, hint: a, leftIcon: o, rightIcon:
|
|
2809
|
-
const [m, x] =
|
|
2807
|
+
const mt = ne(
|
|
2808
|
+
({ label: e, error: t, hint: a, leftIcon: o, rightIcon: n, className: l, type: s, ...c }, i) => {
|
|
2809
|
+
const [m, x] = L(!1), y = s === "password", f = y && m ? "text" : s;
|
|
2810
2810
|
return /* @__PURE__ */ d("div", { className: "w-full space-y-1.5", children: [
|
|
2811
2811
|
e && /* @__PURE__ */ d("label", { className: "block text-sm font-medium text-foreground", children: [
|
|
2812
2812
|
e,
|
|
@@ -2818,7 +2818,7 @@ const mt = se(
|
|
|
2818
2818
|
"input",
|
|
2819
2819
|
{
|
|
2820
2820
|
ref: i,
|
|
2821
|
-
type:
|
|
2821
|
+
type: f,
|
|
2822
2822
|
className: u(
|
|
2823
2823
|
"w-full rounded-md border transition-all duration-200",
|
|
2824
2824
|
"bg-background text-foreground placeholder:text-foreground/50",
|
|
@@ -2833,7 +2833,7 @@ const mt = se(
|
|
|
2833
2833
|
paddingTop: "12px",
|
|
2834
2834
|
paddingBottom: "12px",
|
|
2835
2835
|
paddingLeft: o ? "44px" : "16px",
|
|
2836
|
-
paddingRight:
|
|
2836
|
+
paddingRight: n || y ? "44px" : "16px"
|
|
2837
2837
|
},
|
|
2838
2838
|
...c
|
|
2839
2839
|
}
|
|
@@ -2858,7 +2858,7 @@ const mt = se(
|
|
|
2858
2858
|
children: m ? /* @__PURE__ */ r(or, { className: "w-5 h-5" }) : /* @__PURE__ */ r(ar, { className: "w-5 h-5" })
|
|
2859
2859
|
}
|
|
2860
2860
|
),
|
|
2861
|
-
|
|
2861
|
+
n && !y && /* @__PURE__ */ r("div", { className: "absolute flex items-center pointer-events-none text-primary", style: { right: "14px", top: "50%", transform: "translateY(-50%)" }, children: n })
|
|
2862
2862
|
] }),
|
|
2863
2863
|
t && /* @__PURE__ */ r(
|
|
2864
2864
|
g.p,
|
|
@@ -2874,8 +2874,8 @@ const mt = se(
|
|
|
2874
2874
|
}
|
|
2875
2875
|
);
|
|
2876
2876
|
mt.displayName = "Input";
|
|
2877
|
-
const ut =
|
|
2878
|
-
({ label: e, error: t, helperText: a, className: o, required:
|
|
2877
|
+
const ut = ne(
|
|
2878
|
+
({ label: e, error: t, helperText: a, className: o, required: n, ...l }, s) => /* @__PURE__ */ d(
|
|
2879
2879
|
g.div,
|
|
2880
2880
|
{
|
|
2881
2881
|
initial: { opacity: 0, y: 10 },
|
|
@@ -2885,12 +2885,12 @@ const ut = se(
|
|
|
2885
2885
|
children: [
|
|
2886
2886
|
e && /* @__PURE__ */ d("label", { className: "block text-sm font-medium text-foreground mb-1.5", children: [
|
|
2887
2887
|
e,
|
|
2888
|
-
|
|
2888
|
+
n && /* @__PURE__ */ r("span", { className: "text-error ml-1", children: "*" })
|
|
2889
2889
|
] }),
|
|
2890
2890
|
/* @__PURE__ */ r(
|
|
2891
2891
|
"textarea",
|
|
2892
2892
|
{
|
|
2893
|
-
ref:
|
|
2893
|
+
ref: s,
|
|
2894
2894
|
className: u(
|
|
2895
2895
|
"w-full px-4 py-3 bg-background border border-border rounded-md",
|
|
2896
2896
|
"text-foreground placeholder:text-foreground/50",
|
|
@@ -2919,9 +2919,9 @@ const ut = se(
|
|
|
2919
2919
|
)
|
|
2920
2920
|
);
|
|
2921
2921
|
ut.displayName = "Textarea";
|
|
2922
|
-
const pt =
|
|
2923
|
-
({ label: e, description: t, className: a, checked: o, defaultChecked:
|
|
2924
|
-
const [i, m] =
|
|
2922
|
+
const pt = ne(
|
|
2923
|
+
({ label: e, description: t, className: a, checked: o, defaultChecked: n, onChange: l, ...s }, c) => {
|
|
2924
|
+
const [i, m] = L(n || !1), x = o !== void 0 ? o : i;
|
|
2925
2925
|
return /* @__PURE__ */ d("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
|
|
2926
2926
|
/* @__PURE__ */ d("div", { className: "relative flex-shrink-0 mt-0.5", children: [
|
|
2927
2927
|
/* @__PURE__ */ r(
|
|
@@ -2931,10 +2931,10 @@ const pt = se(
|
|
|
2931
2931
|
type: "checkbox",
|
|
2932
2932
|
className: "sr-only peer",
|
|
2933
2933
|
checked: x,
|
|
2934
|
-
onChange: (
|
|
2935
|
-
o === void 0 && m(
|
|
2934
|
+
onChange: (f) => {
|
|
2935
|
+
o === void 0 && m(f.target.checked), l?.(f.target.checked);
|
|
2936
2936
|
},
|
|
2937
|
-
...
|
|
2937
|
+
...s
|
|
2938
2938
|
}
|
|
2939
2939
|
),
|
|
2940
2940
|
/* @__PURE__ */ r(
|
|
@@ -2949,7 +2949,7 @@ const pt = se(
|
|
|
2949
2949
|
a
|
|
2950
2950
|
),
|
|
2951
2951
|
whileTap: { scale: 0.95 },
|
|
2952
|
-
children: /* @__PURE__ */ r(
|
|
2952
|
+
children: /* @__PURE__ */ r(Oe, { className: u(
|
|
2953
2953
|
"w-4 h-4 text-white transition-opacity duration-200",
|
|
2954
2954
|
x ? "opacity-100" : "opacity-0"
|
|
2955
2955
|
) })
|
|
@@ -2969,27 +2969,27 @@ const Rt = ({
|
|
|
2969
2969
|
value: t,
|
|
2970
2970
|
onChange: a,
|
|
2971
2971
|
name: o,
|
|
2972
|
-
disabled:
|
|
2972
|
+
disabled: n,
|
|
2973
2973
|
className: l
|
|
2974
|
-
}) => /* @__PURE__ */ r("div", { className: u("flex flex-wrap gap-2", l), children: e.map((
|
|
2975
|
-
const c = t ===
|
|
2974
|
+
}) => /* @__PURE__ */ r("div", { className: u("flex flex-wrap gap-2", l), children: e.map((s) => {
|
|
2975
|
+
const c = t === s.value;
|
|
2976
2976
|
return /* @__PURE__ */ d("label", { className: "relative cursor-pointer", children: [
|
|
2977
2977
|
/* @__PURE__ */ r(
|
|
2978
2978
|
"input",
|
|
2979
2979
|
{
|
|
2980
2980
|
type: "radio",
|
|
2981
2981
|
name: o,
|
|
2982
|
-
value:
|
|
2982
|
+
value: s.value,
|
|
2983
2983
|
checked: c,
|
|
2984
2984
|
onChange: (i) => a?.(i.target.value),
|
|
2985
|
-
disabled:
|
|
2985
|
+
disabled: n,
|
|
2986
2986
|
className: "sr-only peer"
|
|
2987
2987
|
}
|
|
2988
2988
|
),
|
|
2989
2989
|
/* @__PURE__ */ d(
|
|
2990
2990
|
g.div,
|
|
2991
2991
|
{
|
|
2992
|
-
whileTap: { scale:
|
|
2992
|
+
whileTap: { scale: n ? 1 : 0.95 },
|
|
2993
2993
|
className: u(
|
|
2994
2994
|
"px-4 py-2.5 rounded-full border-2 transition-all duration-200",
|
|
2995
2995
|
"flex items-center gap-2 min-h-[2.75rem]",
|
|
@@ -2998,14 +2998,14 @@ const Rt = ({
|
|
|
2998
2998
|
c ? "bg-primary border-primary text-white" : "bg-background border-border text-primary hover:border-border-dark"
|
|
2999
2999
|
),
|
|
3000
3000
|
children: [
|
|
3001
|
-
|
|
3002
|
-
/* @__PURE__ */ r("span", { className: "font-medium text-base", children:
|
|
3001
|
+
s.icon && /* @__PURE__ */ r("span", { className: "flex-shrink-0", children: s.icon }),
|
|
3002
|
+
/* @__PURE__ */ r("span", { className: "font-medium text-base", children: s.label })
|
|
3003
3003
|
]
|
|
3004
3004
|
}
|
|
3005
3005
|
)
|
|
3006
|
-
] },
|
|
3007
|
-
}) }), bt =
|
|
3008
|
-
({ label: e, description: t, className: a, checked: o, onChange:
|
|
3006
|
+
] }, s.value);
|
|
3007
|
+
}) }), bt = ne(
|
|
3008
|
+
({ 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: [
|
|
3009
3009
|
(e || t) && /* @__PURE__ */ d("div", { className: "flex-1 space-y-0.5", children: [
|
|
3010
3010
|
e && /* @__PURE__ */ r("div", { className: "text-base font-medium text-foreground", children: e }),
|
|
3011
3011
|
t && /* @__PURE__ */ r("div", { className: "text-sm text-primary/70", children: t })
|
|
@@ -3014,10 +3014,10 @@ const Rt = ({
|
|
|
3014
3014
|
/* @__PURE__ */ r(
|
|
3015
3015
|
"input",
|
|
3016
3016
|
{
|
|
3017
|
-
ref:
|
|
3017
|
+
ref: s,
|
|
3018
3018
|
type: "checkbox",
|
|
3019
3019
|
onChange: (i) => {
|
|
3020
|
-
|
|
3020
|
+
n?.(i.target.checked);
|
|
3021
3021
|
},
|
|
3022
3022
|
className: "sr-only peer",
|
|
3023
3023
|
checked: o,
|
|
@@ -3053,18 +3053,18 @@ const At = ({
|
|
|
3053
3053
|
onChange: t,
|
|
3054
3054
|
min: a = 0,
|
|
3055
3055
|
max: o = 100,
|
|
3056
|
-
step:
|
|
3056
|
+
step: n = 1,
|
|
3057
3057
|
label: l,
|
|
3058
|
-
showValue:
|
|
3058
|
+
showValue: s = !0,
|
|
3059
3059
|
unit: c = "%",
|
|
3060
3060
|
disabled: i,
|
|
3061
3061
|
className: m
|
|
3062
3062
|
}) => {
|
|
3063
|
-
const [x, y] =
|
|
3063
|
+
const [x, y] = L(!1), f = (e - a) / (o - a) * 100;
|
|
3064
3064
|
return /* @__PURE__ */ d("div", { className: u("w-full space-y-2", m), children: [
|
|
3065
|
-
(l ||
|
|
3065
|
+
(l || s) && /* @__PURE__ */ d("div", { className: "flex items-center justify-between", children: [
|
|
3066
3066
|
l && /* @__PURE__ */ r("label", { className: "text-sm font-medium text-primary", children: l }),
|
|
3067
|
-
|
|
3067
|
+
s && /* @__PURE__ */ d("span", { className: "text-sm font-semibold text-primary", children: [
|
|
3068
3068
|
e,
|
|
3069
3069
|
c
|
|
3070
3070
|
] })
|
|
@@ -3074,9 +3074,9 @@ const At = ({
|
|
|
3074
3074
|
g.div,
|
|
3075
3075
|
{
|
|
3076
3076
|
className: "absolute left-0 top-0 h-full bg-primary rounded-full",
|
|
3077
|
-
style: { width: `${
|
|
3077
|
+
style: { width: `${f}%` },
|
|
3078
3078
|
initial: !1,
|
|
3079
|
-
animate: { width: `${
|
|
3079
|
+
animate: { width: `${f}%` },
|
|
3080
3080
|
transition: { type: "spring", stiffness: 300, damping: 30 }
|
|
3081
3081
|
}
|
|
3082
3082
|
) }),
|
|
@@ -3086,9 +3086,9 @@ const At = ({
|
|
|
3086
3086
|
type: "range",
|
|
3087
3087
|
min: a,
|
|
3088
3088
|
max: o,
|
|
3089
|
-
step:
|
|
3089
|
+
step: n,
|
|
3090
3090
|
value: e,
|
|
3091
|
-
onChange: (
|
|
3091
|
+
onChange: (k) => t(Number(k.target.value)),
|
|
3092
3092
|
onMouseDown: () => y(!0),
|
|
3093
3093
|
onMouseUp: () => y(!1),
|
|
3094
3094
|
onTouchStart: () => y(!0),
|
|
@@ -3106,7 +3106,7 @@ const At = ({
|
|
|
3106
3106
|
"pointer-events-none",
|
|
3107
3107
|
i && "opacity-50"
|
|
3108
3108
|
),
|
|
3109
|
-
style: { left: `calc(${
|
|
3109
|
+
style: { left: `calc(${f}% - 12px)` },
|
|
3110
3110
|
animate: { scale: x ? 1.2 : 1 },
|
|
3111
3111
|
transition: { type: "spring", stiffness: 300, damping: 20 }
|
|
3112
3112
|
}
|
|
@@ -3118,17 +3118,17 @@ const At = ({
|
|
|
3118
3118
|
value2: t,
|
|
3119
3119
|
onChange: a,
|
|
3120
3120
|
label1: o,
|
|
3121
|
-
label2:
|
|
3121
|
+
label2: n,
|
|
3122
3122
|
min: l = 0,
|
|
3123
|
-
max:
|
|
3123
|
+
max: s = 100,
|
|
3124
3124
|
step: c = 1,
|
|
3125
3125
|
unit: i = "%",
|
|
3126
3126
|
disabled: m,
|
|
3127
3127
|
className: x
|
|
3128
3128
|
}) => {
|
|
3129
|
-
const y = e + t,
|
|
3130
|
-
const M =
|
|
3131
|
-
a(v, Math.max(l, Math.min(
|
|
3129
|
+
const y = e + t, f = y > 0 ? e / y * 100 : 50, k = y > 0 ? t / y * 100 : 50, w = (v) => {
|
|
3130
|
+
const M = s - v;
|
|
3131
|
+
a(v, Math.max(l, Math.min(s, M)));
|
|
3132
3132
|
};
|
|
3133
3133
|
return /* @__PURE__ */ d("div", { className: u("w-full space-y-3", x), children: [
|
|
3134
3134
|
/* @__PURE__ */ d("div", { className: "space-y-2", children: [
|
|
@@ -3145,7 +3145,7 @@ const At = ({
|
|
|
3145
3145
|
{
|
|
3146
3146
|
className: "h-full bg-primary",
|
|
3147
3147
|
initial: !1,
|
|
3148
|
-
animate: { width: `${
|
|
3148
|
+
animate: { width: `${f}%` },
|
|
3149
3149
|
transition: { type: "spring", stiffness: 300, damping: 30 }
|
|
3150
3150
|
}
|
|
3151
3151
|
) }),
|
|
@@ -3154,7 +3154,7 @@ const At = ({
|
|
|
3154
3154
|
{
|
|
3155
3155
|
type: "range",
|
|
3156
3156
|
min: l,
|
|
3157
|
-
max:
|
|
3157
|
+
max: s,
|
|
3158
3158
|
step: c,
|
|
3159
3159
|
value: e,
|
|
3160
3160
|
onChange: (v) => w(Number(v.target.value)),
|
|
@@ -3166,7 +3166,7 @@ const At = ({
|
|
|
3166
3166
|
] }),
|
|
3167
3167
|
/* @__PURE__ */ d("div", { className: "space-y-2", children: [
|
|
3168
3168
|
/* @__PURE__ */ d("div", { className: "flex items-center justify-between", children: [
|
|
3169
|
-
/* @__PURE__ */ r("label", { className: "text-sm font-medium text-primary", children:
|
|
3169
|
+
/* @__PURE__ */ r("label", { className: "text-sm font-medium text-primary", children: n }),
|
|
3170
3170
|
/* @__PURE__ */ d("span", { className: "text-sm font-semibold text-success", children: [
|
|
3171
3171
|
t,
|
|
3172
3172
|
i
|
|
@@ -3178,7 +3178,7 @@ const At = ({
|
|
|
3178
3178
|
{
|
|
3179
3179
|
className: "h-full bg-success",
|
|
3180
3180
|
initial: !1,
|
|
3181
|
-
animate: { width: `${
|
|
3181
|
+
animate: { width: `${k}%` },
|
|
3182
3182
|
transition: { type: "spring", stiffness: 300, damping: 30 }
|
|
3183
3183
|
}
|
|
3184
3184
|
) }),
|
|
@@ -3187,10 +3187,10 @@ const At = ({
|
|
|
3187
3187
|
{
|
|
3188
3188
|
type: "range",
|
|
3189
3189
|
min: l,
|
|
3190
|
-
max:
|
|
3190
|
+
max: s,
|
|
3191
3191
|
step: c,
|
|
3192
3192
|
value: t,
|
|
3193
|
-
onChange: (v) => w(
|
|
3193
|
+
onChange: (v) => w(s - Number(v.target.value)),
|
|
3194
3194
|
disabled: m,
|
|
3195
3195
|
className: "absolute inset-0 w-full opacity-0 cursor-pointer disabled:cursor-not-allowed"
|
|
3196
3196
|
}
|
|
@@ -3208,29 +3208,27 @@ const At = ({
|
|
|
3208
3208
|
value: t,
|
|
3209
3209
|
onChange: a,
|
|
3210
3210
|
placeholder: o = "Select an option",
|
|
3211
|
-
label:
|
|
3211
|
+
label: n,
|
|
3212
3212
|
error: l,
|
|
3213
|
-
searchable:
|
|
3213
|
+
searchable: s = !1,
|
|
3214
3214
|
clearable: c = !0,
|
|
3215
3215
|
disabled: i,
|
|
3216
3216
|
className: m
|
|
3217
3217
|
}) => {
|
|
3218
|
-
const [x, y] =
|
|
3219
|
-
(T) => T.label.toLowerCase().includes(
|
|
3218
|
+
const [x, y] = L(!1), [f, k] = L(""), w = Y(null), v = e.find((T) => T.value === t), M = s ? e.filter(
|
|
3219
|
+
(T) => T.label.toLowerCase().includes(f.toLowerCase())
|
|
3220
3220
|
) : e;
|
|
3221
3221
|
Z(() => {
|
|
3222
|
-
const T = (
|
|
3223
|
-
w.current && !w.current.contains(
|
|
3222
|
+
const T = (O) => {
|
|
3223
|
+
w.current && !w.current.contains(O.target) && (y(!1), k(""));
|
|
3224
3224
|
};
|
|
3225
3225
|
return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
|
|
3226
3226
|
}, []);
|
|
3227
|
-
const
|
|
3228
|
-
a(T), y(!1),
|
|
3229
|
-
}, L = (T) => {
|
|
3230
|
-
T.stopPropagation(), a("");
|
|
3227
|
+
const I = (T) => {
|
|
3228
|
+
a(T), y(!1), k("");
|
|
3231
3229
|
};
|
|
3232
3230
|
return /* @__PURE__ */ d("div", { ref: w, className: u("relative w-full", m), children: [
|
|
3233
|
-
|
|
3231
|
+
n && /* @__PURE__ */ r("label", { className: "block mb-1.5 text-sm font-medium text-foreground", children: n }),
|
|
3234
3232
|
/* @__PURE__ */ d(
|
|
3235
3233
|
"button",
|
|
3236
3234
|
{
|
|
@@ -3252,30 +3250,19 @@ const At = ({
|
|
|
3252
3250
|
v?.icon && /* @__PURE__ */ r("span", { className: "flex-shrink-0", children: v.icon }),
|
|
3253
3251
|
/* @__PURE__ */ r("span", { className: u("truncate", !v && "text-foreground/50"), children: v?.label || o })
|
|
3254
3252
|
] }),
|
|
3255
|
-
/* @__PURE__ */
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
),
|
|
3265
|
-
/* @__PURE__ */ r(
|
|
3266
|
-
Oe,
|
|
3267
|
-
{
|
|
3268
|
-
className: u(
|
|
3269
|
-
"w-5 h-5 text-primary transition-transform",
|
|
3270
|
-
x && "rotate-180"
|
|
3271
|
-
)
|
|
3272
|
-
}
|
|
3273
|
-
)
|
|
3274
|
-
] })
|
|
3253
|
+
/* @__PURE__ */ r(
|
|
3254
|
+
Ee,
|
|
3255
|
+
{
|
|
3256
|
+
className: u(
|
|
3257
|
+
"w-5 h-5 text-primary transition-transform flex-shrink-0",
|
|
3258
|
+
x && "rotate-180"
|
|
3259
|
+
)
|
|
3260
|
+
}
|
|
3261
|
+
)
|
|
3275
3262
|
]
|
|
3276
3263
|
}
|
|
3277
3264
|
),
|
|
3278
|
-
/* @__PURE__ */ r(
|
|
3265
|
+
/* @__PURE__ */ r(Q, { children: x && /* @__PURE__ */ d(
|
|
3279
3266
|
g.div,
|
|
3280
3267
|
{
|
|
3281
3268
|
initial: { opacity: 0, y: -10 },
|
|
@@ -3284,43 +3271,59 @@ const At = ({
|
|
|
3284
3271
|
transition: { duration: 0.2 },
|
|
3285
3272
|
className: "absolute z-50 w-full mt-2 bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",
|
|
3286
3273
|
children: [
|
|
3287
|
-
|
|
3274
|
+
s && /* @__PURE__ */ r("div", { className: "p-2 border-b border-border", children: /* @__PURE__ */ d("div", { className: "relative", children: [
|
|
3288
3275
|
/* @__PURE__ */ r(Fe, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50" }),
|
|
3289
3276
|
/* @__PURE__ */ r(
|
|
3290
3277
|
"input",
|
|
3291
3278
|
{
|
|
3292
3279
|
type: "text",
|
|
3293
3280
|
placeholder: "Search...",
|
|
3294
|
-
value:
|
|
3295
|
-
onChange: (T) =>
|
|
3281
|
+
value: f,
|
|
3282
|
+
onChange: (T) => k(T.target.value),
|
|
3296
3283
|
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"
|
|
3297
3284
|
}
|
|
3298
3285
|
),
|
|
3299
|
-
|
|
3286
|
+
f && /* @__PURE__ */ r(
|
|
3300
3287
|
"button",
|
|
3301
3288
|
{
|
|
3302
|
-
onClick: () =>
|
|
3289
|
+
onClick: () => k(""),
|
|
3303
3290
|
className: "absolute right-2 top-1/2 -translate-y-1/2",
|
|
3304
|
-
children: /* @__PURE__ */ r(
|
|
3291
|
+
children: /* @__PURE__ */ r(H, { className: "w-4 h-4 text-primary/50 hover:text-primary" })
|
|
3305
3292
|
}
|
|
3306
3293
|
)
|
|
3307
3294
|
] }) }),
|
|
3308
|
-
/* @__PURE__ */
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3295
|
+
/* @__PURE__ */ d("div", { className: "overflow-y-auto max-h-64 p-2", children: [
|
|
3296
|
+
c && /* @__PURE__ */ r(
|
|
3297
|
+
"button",
|
|
3298
|
+
{
|
|
3299
|
+
type: "button",
|
|
3300
|
+
onClick: () => I(""),
|
|
3301
|
+
className: u(
|
|
3302
|
+
"w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer",
|
|
3303
|
+
"hover:bg-secondary transition-colors",
|
|
3304
|
+
"text-foreground/70 italic",
|
|
3305
|
+
!t && "bg-border text-foreground"
|
|
3306
|
+
),
|
|
3307
|
+
children: /* @__PURE__ */ r("span", { children: "None" })
|
|
3308
|
+
}
|
|
3309
|
+
),
|
|
3310
|
+
M.length > 0 ? M.map((T) => /* @__PURE__ */ d(
|
|
3311
|
+
"button",
|
|
3312
|
+
{
|
|
3313
|
+
onClick: () => I(T.value),
|
|
3314
|
+
className: u(
|
|
3315
|
+
"w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer",
|
|
3316
|
+
"hover:bg-secondary transition-colors",
|
|
3317
|
+
T.value === t && "bg-border text-foreground"
|
|
3318
|
+
),
|
|
3319
|
+
children: [
|
|
3320
|
+
T.icon && /* @__PURE__ */ r("span", { className: "flex-shrink-0", children: T.icon }),
|
|
3321
|
+
/* @__PURE__ */ r("span", { children: T.label })
|
|
3322
|
+
]
|
|
3323
|
+
},
|
|
3324
|
+
T.value
|
|
3325
|
+
)) : /* @__PURE__ */ r("div", { className: "px-4 py-6 text-center text-primary/70 text-sm", children: "No options found" })
|
|
3326
|
+
] })
|
|
3324
3327
|
]
|
|
3325
3328
|
}
|
|
3326
3329
|
) }),
|
|
@@ -3334,49 +3337,47 @@ const At = ({
|
|
|
3334
3337
|
}
|
|
3335
3338
|
)
|
|
3336
3339
|
] });
|
|
3337
|
-
},
|
|
3340
|
+
}, ft = ne(
|
|
3338
3341
|
({
|
|
3339
3342
|
options: e,
|
|
3340
3343
|
value: t,
|
|
3341
3344
|
onChange: a,
|
|
3342
3345
|
placeholder: o = "Select an option",
|
|
3343
|
-
label:
|
|
3346
|
+
label: n,
|
|
3344
3347
|
error: l,
|
|
3345
|
-
hint:
|
|
3348
|
+
hint: s,
|
|
3346
3349
|
searchable: c = !1,
|
|
3347
3350
|
clearable: i = !0,
|
|
3348
3351
|
disabled: m,
|
|
3349
3352
|
required: x,
|
|
3350
3353
|
className: y
|
|
3351
|
-
},
|
|
3352
|
-
const [
|
|
3353
|
-
(
|
|
3354
|
+
}, f) => {
|
|
3355
|
+
const [k, w] = L(!1), [v, M] = L(""), I = Y(null), T = e.find((z) => z.value === t), O = c ? e.filter(
|
|
3356
|
+
(z) => z.label.toLowerCase().includes(v.toLowerCase())
|
|
3354
3357
|
) : e;
|
|
3355
3358
|
Z(() => {
|
|
3356
|
-
const
|
|
3357
|
-
|
|
3359
|
+
const z = (R) => {
|
|
3360
|
+
I.current && !I.current.contains(R.target) && (w(!1), M(""));
|
|
3358
3361
|
};
|
|
3359
|
-
return document.addEventListener("mousedown",
|
|
3362
|
+
return document.addEventListener("mousedown", z), () => document.removeEventListener("mousedown", z);
|
|
3360
3363
|
}, []);
|
|
3361
|
-
const
|
|
3362
|
-
a(
|
|
3363
|
-
}, O = (N) => {
|
|
3364
|
-
N.stopPropagation(), a("");
|
|
3364
|
+
const G = (z) => {
|
|
3365
|
+
a(z), w(!1), M("");
|
|
3365
3366
|
};
|
|
3366
|
-
return /* @__PURE__ */ d("div", { ref:
|
|
3367
|
-
|
|
3368
|
-
|
|
3367
|
+
return /* @__PURE__ */ d("div", { ref: f, className: u("w-full space-y-1.5", y), children: [
|
|
3368
|
+
n && /* @__PURE__ */ d("label", { className: "block text-sm font-medium text-foreground", children: [
|
|
3369
|
+
n,
|
|
3369
3370
|
x && /* @__PURE__ */ r("span", { className: "text-error ml-1", children: "*" })
|
|
3370
3371
|
] }),
|
|
3371
|
-
/* @__PURE__ */ d("div", { ref:
|
|
3372
|
+
/* @__PURE__ */ d("div", { ref: I, className: "relative", children: [
|
|
3372
3373
|
/* @__PURE__ */ d(
|
|
3373
3374
|
"button",
|
|
3374
3375
|
{
|
|
3375
3376
|
type: "button",
|
|
3376
|
-
onClick: () => !m && w(!
|
|
3377
|
+
onClick: () => !m && w(!k),
|
|
3377
3378
|
disabled: m,
|
|
3378
3379
|
"aria-haspopup": "listbox",
|
|
3379
|
-
"aria-expanded":
|
|
3380
|
+
"aria-expanded": k,
|
|
3380
3381
|
"aria-required": x,
|
|
3381
3382
|
className: u(
|
|
3382
3383
|
"w-full px-4 py-3 rounded-md border transition-all duration-200",
|
|
@@ -3386,42 +3387,26 @@ const At = ({
|
|
|
3386
3387
|
"touch-target text-base",
|
|
3387
3388
|
l && "border-error focus:ring-error",
|
|
3388
3389
|
!l && "border-border",
|
|
3389
|
-
|
|
3390
|
+
k && "ring-2 ring-primary"
|
|
3390
3391
|
),
|
|
3391
3392
|
children: [
|
|
3392
3393
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
3393
|
-
|
|
3394
|
-
/* @__PURE__ */ r("span", { className: u("truncate", !
|
|
3394
|
+
T?.icon && /* @__PURE__ */ r("span", { className: "flex-shrink-0", children: T.icon }),
|
|
3395
|
+
/* @__PURE__ */ r("span", { className: u("truncate", !T && "text-foreground/50"), children: T?.label || o })
|
|
3395
3396
|
] }),
|
|
3396
|
-
/* @__PURE__ */
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
},
|
|
3406
|
-
className: "p-1 hover:bg-secondary rounded transition-colors cursor-pointer",
|
|
3407
|
-
"aria-label": "Clear selection",
|
|
3408
|
-
children: /* @__PURE__ */ r($, { className: "w-4 h-4 text-primary" })
|
|
3409
|
-
}
|
|
3410
|
-
),
|
|
3411
|
-
/* @__PURE__ */ r(
|
|
3412
|
-
Oe,
|
|
3413
|
-
{
|
|
3414
|
-
className: u(
|
|
3415
|
-
"w-5 h-5 text-primary transition-transform",
|
|
3416
|
-
C && "rotate-180"
|
|
3417
|
-
)
|
|
3418
|
-
}
|
|
3419
|
-
)
|
|
3420
|
-
] })
|
|
3397
|
+
/* @__PURE__ */ r(
|
|
3398
|
+
Ee,
|
|
3399
|
+
{
|
|
3400
|
+
className: u(
|
|
3401
|
+
"w-5 h-5 text-primary transition-transform flex-shrink-0",
|
|
3402
|
+
k && "rotate-180"
|
|
3403
|
+
)
|
|
3404
|
+
}
|
|
3405
|
+
)
|
|
3421
3406
|
]
|
|
3422
3407
|
}
|
|
3423
3408
|
),
|
|
3424
|
-
/* @__PURE__ */ r(
|
|
3409
|
+
/* @__PURE__ */ r(Q, { children: k && /* @__PURE__ */ d(
|
|
3425
3410
|
g.div,
|
|
3426
3411
|
{
|
|
3427
3412
|
initial: { opacity: 0, y: -10 },
|
|
@@ -3439,7 +3424,7 @@ const At = ({
|
|
|
3439
3424
|
type: "text",
|
|
3440
3425
|
placeholder: "Search...",
|
|
3441
3426
|
value: v,
|
|
3442
|
-
onChange: (
|
|
3427
|
+
onChange: (z) => M(z.target.value),
|
|
3443
3428
|
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",
|
|
3444
3429
|
"aria-label": "Search options"
|
|
3445
3430
|
}
|
|
@@ -3451,31 +3436,49 @@ const At = ({
|
|
|
3451
3436
|
onClick: () => M(""),
|
|
3452
3437
|
className: "absolute right-2 top-1/2 -translate-y-1/2",
|
|
3453
3438
|
"aria-label": "Clear search",
|
|
3454
|
-
children: /* @__PURE__ */ r(
|
|
3439
|
+
children: /* @__PURE__ */ r(H, { className: "w-4 h-4 text-primary/50 hover:text-primary" })
|
|
3455
3440
|
}
|
|
3456
3441
|
)
|
|
3457
3442
|
] }) }),
|
|
3458
|
-
/* @__PURE__ */
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3443
|
+
/* @__PURE__ */ d("div", { className: "overflow-y-auto max-h-64 p-2", children: [
|
|
3444
|
+
i && /* @__PURE__ */ r(
|
|
3445
|
+
"button",
|
|
3446
|
+
{
|
|
3447
|
+
type: "button",
|
|
3448
|
+
role: "option",
|
|
3449
|
+
"aria-selected": !t,
|
|
3450
|
+
onClick: () => G(""),
|
|
3451
|
+
className: u(
|
|
3452
|
+
"w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer",
|
|
3453
|
+
"hover:bg-secondary transition-colors",
|
|
3454
|
+
"text-foreground/70 italic",
|
|
3455
|
+
!t && "bg-border text-foreground font-medium"
|
|
3456
|
+
),
|
|
3457
|
+
children: /* @__PURE__ */ r("span", { children: "None" })
|
|
3458
|
+
}
|
|
3459
|
+
),
|
|
3460
|
+
O.length > 0 ? O.map((z) => /* @__PURE__ */ d(
|
|
3461
|
+
"button",
|
|
3462
|
+
{
|
|
3463
|
+
type: "button",
|
|
3464
|
+
role: "option",
|
|
3465
|
+
"aria-selected": z.value === t,
|
|
3466
|
+
onClick: () => !z.disabled && G(z.value),
|
|
3467
|
+
disabled: z.disabled,
|
|
3468
|
+
className: u(
|
|
3469
|
+
"w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer",
|
|
3470
|
+
"hover:bg-secondary transition-colors",
|
|
3471
|
+
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
3472
|
+
z.value === t && "bg-border text-foreground font-medium"
|
|
3473
|
+
),
|
|
3474
|
+
children: [
|
|
3475
|
+
z.icon && /* @__PURE__ */ r("span", { className: "flex-shrink-0", children: z.icon }),
|
|
3476
|
+
/* @__PURE__ */ r("span", { children: z.label })
|
|
3477
|
+
]
|
|
3478
|
+
},
|
|
3479
|
+
z.value
|
|
3480
|
+
)) : /* @__PURE__ */ r("div", { className: "px-4 py-6 text-center text-primary/70 text-sm", children: "No options found" })
|
|
3481
|
+
] })
|
|
3479
3482
|
]
|
|
3480
3483
|
}
|
|
3481
3484
|
) })
|
|
@@ -3489,29 +3492,29 @@ const At = ({
|
|
|
3489
3492
|
children: l
|
|
3490
3493
|
}
|
|
3491
3494
|
),
|
|
3492
|
-
|
|
3495
|
+
s && !l && /* @__PURE__ */ r("p", { className: "text-sm text-primary/70", children: s })
|
|
3493
3496
|
] });
|
|
3494
3497
|
}
|
|
3495
3498
|
);
|
|
3496
|
-
|
|
3499
|
+
ft.displayName = "Select";
|
|
3497
3500
|
const Dt = ({
|
|
3498
3501
|
value: e,
|
|
3499
3502
|
onChange: t,
|
|
3500
3503
|
label: a,
|
|
3501
3504
|
placeholder: o = "Select date",
|
|
3502
|
-
error:
|
|
3505
|
+
error: n,
|
|
3503
3506
|
disabled: l,
|
|
3504
|
-
minDate:
|
|
3507
|
+
minDate: s,
|
|
3505
3508
|
maxDate: c,
|
|
3506
3509
|
className: i
|
|
3507
3510
|
}) => {
|
|
3508
|
-
const [m, x] =
|
|
3511
|
+
const [m, x] = L(!1), [y, f] = L(e || /* @__PURE__ */ new Date()), k = Y(null);
|
|
3509
3512
|
Z(() => {
|
|
3510
|
-
const
|
|
3511
|
-
|
|
3513
|
+
const C = (j) => {
|
|
3514
|
+
k.current && !k.current.contains(j.target) && x(!1);
|
|
3512
3515
|
};
|
|
3513
|
-
return m && document.addEventListener("mousedown",
|
|
3514
|
-
document.removeEventListener("mousedown",
|
|
3516
|
+
return m && document.addEventListener("mousedown", C), () => {
|
|
3517
|
+
document.removeEventListener("mousedown", C);
|
|
3515
3518
|
};
|
|
3516
3519
|
}, [m]);
|
|
3517
3520
|
const w = [
|
|
@@ -3527,25 +3530,25 @@ const Dt = ({
|
|
|
3527
3530
|
"October",
|
|
3528
3531
|
"November",
|
|
3529
3532
|
"December"
|
|
3530
|
-
], v = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], M = (
|
|
3531
|
-
const
|
|
3532
|
-
for (let
|
|
3533
|
+
], v = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], M = (C) => {
|
|
3534
|
+
const j = C.getFullYear(), $ = C.getMonth(), _ = new Date(j, $, 1), te = new Date(j, $ + 1, 0).getDate(), q = _.getDay(), B = [];
|
|
3535
|
+
for (let P = 0; P < q; P++)
|
|
3533
3536
|
B.push(null);
|
|
3534
|
-
for (let
|
|
3535
|
-
B.push(new Date(
|
|
3537
|
+
for (let P = 1; P <= te; P++)
|
|
3538
|
+
B.push(new Date(j, $, P));
|
|
3536
3539
|
return B;
|
|
3537
|
-
},
|
|
3538
|
-
|
|
3539
|
-
},
|
|
3540
|
-
|
|
3541
|
-
},
|
|
3542
|
-
t(
|
|
3543
|
-
},
|
|
3540
|
+
}, I = () => {
|
|
3541
|
+
f(new Date(y.getFullYear(), y.getMonth() - 1, 1));
|
|
3542
|
+
}, T = () => {
|
|
3543
|
+
f(new Date(y.getFullYear(), y.getMonth() + 1, 1));
|
|
3544
|
+
}, O = (C) => {
|
|
3545
|
+
t(C), x(!1);
|
|
3546
|
+
}, G = (C) => !!(s && C < s || c && C > c), z = (C, j) => !C || !j ? !1 : C.getDate() === j.getDate() && C.getMonth() === j.getMonth() && C.getFullYear() === j.getFullYear(), R = (C) => C ? z(C, /* @__PURE__ */ new Date()) : !1, F = (C) => C ? C.toLocaleDateString("en-US", {
|
|
3544
3547
|
year: "numeric",
|
|
3545
3548
|
month: "short",
|
|
3546
3549
|
day: "numeric"
|
|
3547
|
-
}) : "",
|
|
3548
|
-
return /* @__PURE__ */ d("div", { ref:
|
|
3550
|
+
}) : "", h = M(y);
|
|
3551
|
+
return /* @__PURE__ */ d("div", { ref: k, className: u("relative w-full", i), children: [
|
|
3549
3552
|
a && /* @__PURE__ */ r("label", { className: "block mb-1.5 text-sm font-medium text-foreground", children: a }),
|
|
3550
3553
|
/* @__PURE__ */ d(
|
|
3551
3554
|
"button",
|
|
@@ -3559,17 +3562,17 @@ const Dt = ({
|
|
|
3559
3562
|
"focus:outline-none focus:ring-2 focus:ring-primary",
|
|
3560
3563
|
"disabled:bg-secondary disabled:cursor-not-allowed",
|
|
3561
3564
|
"touch-target",
|
|
3562
|
-
|
|
3563
|
-
!
|
|
3565
|
+
n && "border-error",
|
|
3566
|
+
!n && "border-border",
|
|
3564
3567
|
m && "ring-2 ring-primary"
|
|
3565
3568
|
),
|
|
3566
3569
|
children: [
|
|
3567
|
-
/* @__PURE__ */ r("span", { className: u("truncate", !e && "text-foreground/50"), children: e ?
|
|
3568
|
-
/* @__PURE__ */ r(
|
|
3570
|
+
/* @__PURE__ */ r("span", { className: u("truncate", !e && "text-foreground/50"), children: e ? F(e) : o }),
|
|
3571
|
+
/* @__PURE__ */ r(nr, { className: "w-5 h-5 text-primary flex-shrink-0" })
|
|
3569
3572
|
]
|
|
3570
3573
|
}
|
|
3571
3574
|
),
|
|
3572
|
-
/* @__PURE__ */ r(
|
|
3575
|
+
/* @__PURE__ */ r(Q, { children: m && /* @__PURE__ */ d(
|
|
3573
3576
|
g.div,
|
|
3574
3577
|
{
|
|
3575
3578
|
initial: { opacity: 0, y: -10 },
|
|
@@ -3583,7 +3586,7 @@ const Dt = ({
|
|
|
3583
3586
|
"button",
|
|
3584
3587
|
{
|
|
3585
3588
|
type: "button",
|
|
3586
|
-
onClick:
|
|
3589
|
+
onClick: I,
|
|
3587
3590
|
className: "p-2 hover:bg-secondary rounded-lg transition-colors",
|
|
3588
3591
|
children: /* @__PURE__ */ r(Pe, { className: "w-5 h-5 text-primary" })
|
|
3589
3592
|
}
|
|
@@ -3597,50 +3600,50 @@ const Dt = ({
|
|
|
3597
3600
|
"button",
|
|
3598
3601
|
{
|
|
3599
3602
|
type: "button",
|
|
3600
|
-
onClick:
|
|
3603
|
+
onClick: T,
|
|
3601
3604
|
className: "p-2 hover:bg-secondary rounded-lg transition-colors",
|
|
3602
3605
|
children: /* @__PURE__ */ r(Ge, { className: "w-5 h-5 text-primary" })
|
|
3603
3606
|
}
|
|
3604
3607
|
)
|
|
3605
3608
|
] }),
|
|
3606
|
-
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1 mb-2", children: v.map((
|
|
3609
|
+
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1 mb-2", children: v.map((C) => /* @__PURE__ */ r(
|
|
3607
3610
|
"div",
|
|
3608
3611
|
{
|
|
3609
3612
|
className: "text-center text-xs font-medium text-primary/70 py-2",
|
|
3610
|
-
children:
|
|
3613
|
+
children: C
|
|
3611
3614
|
},
|
|
3612
|
-
|
|
3615
|
+
C
|
|
3613
3616
|
)) }),
|
|
3614
|
-
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1", children:
|
|
3615
|
-
if (!
|
|
3616
|
-
return /* @__PURE__ */ r("div", { className: "aspect-square" }, `empty-${
|
|
3617
|
-
const
|
|
3617
|
+
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1", children: h.map((C, j) => {
|
|
3618
|
+
if (!C)
|
|
3619
|
+
return /* @__PURE__ */ r("div", { className: "aspect-square" }, `empty-${j}`);
|
|
3620
|
+
const $ = z(C, e || null), _ = R(C), V = G(C);
|
|
3618
3621
|
return /* @__PURE__ */ r(
|
|
3619
3622
|
g.button,
|
|
3620
3623
|
{
|
|
3621
3624
|
type: "button",
|
|
3622
|
-
whileTap: { scale:
|
|
3623
|
-
onClick: () => !
|
|
3624
|
-
disabled:
|
|
3625
|
+
whileTap: { scale: V ? 1 : 0.95 },
|
|
3626
|
+
onClick: () => !V && O(C),
|
|
3627
|
+
disabled: V,
|
|
3625
3628
|
className: u(
|
|
3626
3629
|
"aspect-square rounded-lg flex items-center justify-center",
|
|
3627
3630
|
"text-sm font-medium transition-all duration-200",
|
|
3628
3631
|
"hover:bg-secondary",
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3632
|
+
$ && "bg-primary text-white hover:bg-primary-dark",
|
|
3633
|
+
_ && !$ && "border-2 border-primary text-primary",
|
|
3634
|
+
V && "text-border-dark cursor-not-allowed hover:bg-transparent",
|
|
3635
|
+
!$ && !_ && !V && "text-foreground"
|
|
3633
3636
|
),
|
|
3634
|
-
children:
|
|
3637
|
+
children: C.getDate()
|
|
3635
3638
|
},
|
|
3636
|
-
|
|
3639
|
+
C.toISOString()
|
|
3637
3640
|
);
|
|
3638
3641
|
}) }),
|
|
3639
3642
|
/* @__PURE__ */ r("div", { className: "mt-4 pt-4 border-t border-border", children: /* @__PURE__ */ r(
|
|
3640
3643
|
"button",
|
|
3641
3644
|
{
|
|
3642
3645
|
type: "button",
|
|
3643
|
-
onClick: () =>
|
|
3646
|
+
onClick: () => O(/* @__PURE__ */ new Date()),
|
|
3644
3647
|
className: "w-full py-2 text-sm font-medium text-primary hover:bg-secondary rounded-lg transition-colors",
|
|
3645
3648
|
children: "Today"
|
|
3646
3649
|
}
|
|
@@ -3648,13 +3651,13 @@ const Dt = ({
|
|
|
3648
3651
|
]
|
|
3649
3652
|
}
|
|
3650
3653
|
) }),
|
|
3651
|
-
|
|
3654
|
+
n && /* @__PURE__ */ r(
|
|
3652
3655
|
g.p,
|
|
3653
3656
|
{
|
|
3654
3657
|
initial: { opacity: 0, y: -5 },
|
|
3655
3658
|
animate: { opacity: 1, y: 0 },
|
|
3656
3659
|
className: "mt-1.5 text-sm text-error",
|
|
3657
|
-
children:
|
|
3660
|
+
children: n
|
|
3658
3661
|
}
|
|
3659
3662
|
)
|
|
3660
3663
|
] });
|
|
@@ -3663,10 +3666,10 @@ const Dt = ({
|
|
|
3663
3666
|
variant: t = "default",
|
|
3664
3667
|
padding: a = "md",
|
|
3665
3668
|
className: o,
|
|
3666
|
-
onClick:
|
|
3669
|
+
onClick: n,
|
|
3667
3670
|
hover: l = !1
|
|
3668
3671
|
}) => {
|
|
3669
|
-
const
|
|
3672
|
+
const s = {
|
|
3670
3673
|
default: "bg-background border border-border",
|
|
3671
3674
|
outlined: "bg-transparent border-2 border-border-dark",
|
|
3672
3675
|
elevated: "bg-background border-2 border-border shadow-card"
|
|
@@ -3675,41 +3678,41 @@ const Dt = ({
|
|
|
3675
3678
|
sm: "p-3",
|
|
3676
3679
|
md: "p-4 sm:p-6",
|
|
3677
3680
|
lg: "p-6 sm:p-8"
|
|
3678
|
-
}, i =
|
|
3681
|
+
}, i = n ? g.button : g.div;
|
|
3679
3682
|
return /* @__PURE__ */ r(
|
|
3680
3683
|
i,
|
|
3681
3684
|
{
|
|
3682
3685
|
initial: { opacity: 0, y: 20 },
|
|
3683
3686
|
animate: { opacity: 1, y: 0 },
|
|
3684
3687
|
transition: { duration: 0.3 },
|
|
3685
|
-
whileHover: l ||
|
|
3686
|
-
whileTap:
|
|
3688
|
+
whileHover: l || n ? { y: -2, boxShadow: "0 10px 15px -3px rgb(0 0 0 / 0.1)" } : void 0,
|
|
3689
|
+
whileTap: n ? { scale: 0.98 } : void 0,
|
|
3687
3690
|
className: u(
|
|
3688
3691
|
"rounded-lg transition-all duration-200",
|
|
3689
|
-
|
|
3692
|
+
s[t],
|
|
3690
3693
|
c[a],
|
|
3691
|
-
|
|
3694
|
+
n && "cursor-pointer w-full text-left",
|
|
3692
3695
|
o
|
|
3693
3696
|
),
|
|
3694
|
-
onClick:
|
|
3697
|
+
onClick: n,
|
|
3695
3698
|
children: e
|
|
3696
3699
|
}
|
|
3697
3700
|
);
|
|
3698
|
-
},
|
|
3701
|
+
}, 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 = ({
|
|
3699
3702
|
isOpen: e,
|
|
3700
3703
|
onClose: t,
|
|
3701
3704
|
children: a,
|
|
3702
3705
|
title: o,
|
|
3703
|
-
position:
|
|
3706
|
+
position: n = "right",
|
|
3704
3707
|
className: l
|
|
3705
3708
|
}) => (Z(() => {
|
|
3706
|
-
const
|
|
3709
|
+
const s = (c) => {
|
|
3707
3710
|
c.key === "Escape" && t();
|
|
3708
3711
|
};
|
|
3709
|
-
return e && (document.addEventListener("keydown",
|
|
3710
|
-
document.removeEventListener("keydown",
|
|
3712
|
+
return e && (document.addEventListener("keydown", s), document.body.style.overflow = "hidden"), () => {
|
|
3713
|
+
document.removeEventListener("keydown", s), document.body.style.overflow = "unset";
|
|
3711
3714
|
};
|
|
3712
|
-
}, [e, t]), /* @__PURE__ */ r(
|
|
3715
|
+
}, [e, t]), /* @__PURE__ */ r(Q, { children: e && /* @__PURE__ */ d(ae, { children: [
|
|
3713
3716
|
/* @__PURE__ */ r(
|
|
3714
3717
|
g.div,
|
|
3715
3718
|
{
|
|
@@ -3724,13 +3727,13 @@ const Dt = ({
|
|
|
3724
3727
|
/* @__PURE__ */ d(
|
|
3725
3728
|
g.div,
|
|
3726
3729
|
{
|
|
3727
|
-
initial: { x:
|
|
3730
|
+
initial: { x: n === "left" ? "-100%" : "100%" },
|
|
3728
3731
|
animate: { x: 0 },
|
|
3729
|
-
exit: { x:
|
|
3732
|
+
exit: { x: n === "left" ? "-100%" : "100%" },
|
|
3730
3733
|
transition: { type: "spring", damping: 30, stiffness: 300 },
|
|
3731
3734
|
className: u(
|
|
3732
3735
|
"fixed top-0 z-50 h-full w-[400px] sm:w-[480px] bg-background shadow-xl",
|
|
3733
|
-
|
|
3736
|
+
n === "left" ? "left-0 border-r" : "right-0 border-l",
|
|
3734
3737
|
"border-border",
|
|
3735
3738
|
l
|
|
3736
3739
|
),
|
|
@@ -3743,7 +3746,7 @@ const Dt = ({
|
|
|
3743
3746
|
onClick: t,
|
|
3744
3747
|
className: "p-2 rounded-lg hover:bg-secondary transition-colors",
|
|
3745
3748
|
"aria-label": "Close drawer",
|
|
3746
|
-
children: /* @__PURE__ */ r(
|
|
3749
|
+
children: /* @__PURE__ */ r(H, { className: "w-5 h-5" })
|
|
3747
3750
|
}
|
|
3748
3751
|
)
|
|
3749
3752
|
] }),
|
|
@@ -3756,10 +3759,10 @@ const Dt = ({
|
|
|
3756
3759
|
onClose: t,
|
|
3757
3760
|
children: a,
|
|
3758
3761
|
title: o,
|
|
3759
|
-
size:
|
|
3762
|
+
size: n = "md",
|
|
3760
3763
|
className: l
|
|
3761
3764
|
}) => {
|
|
3762
|
-
const
|
|
3765
|
+
const s = Y(null);
|
|
3763
3766
|
Z(() => {
|
|
3764
3767
|
const i = (m) => {
|
|
3765
3768
|
m.key === "Escape" && t();
|
|
@@ -3775,7 +3778,7 @@ const Dt = ({
|
|
|
3775
3778
|
xl: "max-w-6xl",
|
|
3776
3779
|
full: "max-w-full mx-4"
|
|
3777
3780
|
};
|
|
3778
|
-
return /* @__PURE__ */ r(
|
|
3781
|
+
return /* @__PURE__ */ r(Q, { children: e && /* @__PURE__ */ r(
|
|
3779
3782
|
"div",
|
|
3780
3783
|
{
|
|
3781
3784
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",
|
|
@@ -3785,14 +3788,14 @@ const Dt = ({
|
|
|
3785
3788
|
children: /* @__PURE__ */ d(
|
|
3786
3789
|
g.div,
|
|
3787
3790
|
{
|
|
3788
|
-
ref:
|
|
3791
|
+
ref: s,
|
|
3789
3792
|
initial: { opacity: 0, scale: 0.95 },
|
|
3790
3793
|
animate: { opacity: 1, scale: 1 },
|
|
3791
3794
|
exit: { opacity: 0, scale: 0.95 },
|
|
3792
3795
|
transition: { duration: 0.2 },
|
|
3793
3796
|
className: u(
|
|
3794
3797
|
"bg-background border border-border rounded-lg shadow-2xl w-full max-h-[90vh] overflow-hidden flex flex-col",
|
|
3795
|
-
c[
|
|
3798
|
+
c[n],
|
|
3796
3799
|
l
|
|
3797
3800
|
),
|
|
3798
3801
|
children: [
|
|
@@ -3804,7 +3807,7 @@ const Dt = ({
|
|
|
3804
3807
|
onClick: t,
|
|
3805
3808
|
className: "p-2 rounded-lg hover:bg-secondary transition-colors",
|
|
3806
3809
|
"aria-label": "Close modal",
|
|
3807
|
-
children: /* @__PURE__ */ r(
|
|
3810
|
+
children: /* @__PURE__ */ r(H, { className: "w-5 h-5" })
|
|
3808
3811
|
}
|
|
3809
3812
|
)
|
|
3810
3813
|
] }),
|
|
@@ -3825,11 +3828,11 @@ const Dt = ({
|
|
|
3825
3828
|
onClose: t,
|
|
3826
3829
|
title: a,
|
|
3827
3830
|
children: o,
|
|
3828
|
-
showCloseButton:
|
|
3831
|
+
showCloseButton: n = !0,
|
|
3829
3832
|
className: l
|
|
3830
3833
|
}) => (Z(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
3831
3834
|
document.body.style.overflow = "unset";
|
|
3832
|
-
}), [e]), /* @__PURE__ */ r(
|
|
3835
|
+
}), [e]), /* @__PURE__ */ r(Q, { children: e && /* @__PURE__ */ d(ae, { children: [
|
|
3833
3836
|
/* @__PURE__ */ r(
|
|
3834
3837
|
g.div,
|
|
3835
3838
|
{
|
|
@@ -3855,14 +3858,14 @@ const Dt = ({
|
|
|
3855
3858
|
),
|
|
3856
3859
|
children: [
|
|
3857
3860
|
/* @__PURE__ */ r("div", { className: "flex justify-center pt-3 pb-2", children: /* @__PURE__ */ r("div", { className: "w-12 h-1.5 bg-border-dark rounded-full" }) }),
|
|
3858
|
-
(a ||
|
|
3861
|
+
(a || n) && /* @__PURE__ */ d("div", { className: "flex items-center justify-between px-6 py-4 border-b border-border", children: [
|
|
3859
3862
|
a && /* @__PURE__ */ r("h2", { className: "text-lg font-semibold text-foreground", children: a }),
|
|
3860
|
-
|
|
3863
|
+
n && /* @__PURE__ */ r(
|
|
3861
3864
|
"button",
|
|
3862
3865
|
{
|
|
3863
3866
|
onClick: t,
|
|
3864
3867
|
className: "p-2 rounded-full hover:bg-secondary transition-colors",
|
|
3865
|
-
children: /* @__PURE__ */ r(
|
|
3868
|
+
children: /* @__PURE__ */ r(H, { className: "w-5 h-5 text-primary" })
|
|
3866
3869
|
}
|
|
3867
3870
|
)
|
|
3868
3871
|
] }),
|
|
@@ -3876,18 +3879,18 @@ function Vt({
|
|
|
3876
3879
|
columns: t,
|
|
3877
3880
|
loading: a = !1,
|
|
3878
3881
|
onRowClick: o,
|
|
3879
|
-
keyExtractor:
|
|
3882
|
+
keyExtractor: n,
|
|
3880
3883
|
className: l
|
|
3881
3884
|
}) {
|
|
3882
|
-
const [
|
|
3883
|
-
|
|
3884
|
-
}, y =
|
|
3885
|
-
const w =
|
|
3885
|
+
const [s, c] = L(null), [i, m] = L("asc"), x = (f) => {
|
|
3886
|
+
s === f ? m(i === "asc" ? "desc" : "asc") : (c(f), m("asc"));
|
|
3887
|
+
}, y = s ? [...e].sort((f, k) => {
|
|
3888
|
+
const w = f[s], v = k[s];
|
|
3886
3889
|
return w < v ? i === "asc" ? -1 : 1 : w > v ? i === "asc" ? 1 : -1 : 0;
|
|
3887
3890
|
}) : e;
|
|
3888
3891
|
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: [
|
|
3889
|
-
/* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((
|
|
3890
|
-
/* @__PURE__ */ r("tbody", { children: [...Array(5)].map((
|
|
3892
|
+
/* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((f, k) => /* @__PURE__ */ r("th", { className: "px-6 py-4 text-left", children: /* @__PURE__ */ r("div", { className: "h-4 bg-border rounded w-24 animate-pulse" }) }, k)) }) }),
|
|
3893
|
+
/* @__PURE__ */ r("tbody", { children: [...Array(5)].map((f, k) => /* @__PURE__ */ r("tr", { className: "border-b border-border", children: t.map((w, v) => /* @__PURE__ */ r("td", { className: "px-6 py-4", children: /* @__PURE__ */ r("div", { className: "h-4 bg-secondary rounded animate-pulse" }) }, v)) }, k)) })
|
|
3891
3894
|
] }) }) }) : /* @__PURE__ */ r(
|
|
3892
3895
|
g.div,
|
|
3893
3896
|
{
|
|
@@ -3896,29 +3899,29 @@ function Vt({
|
|
|
3896
3899
|
transition: { duration: 0.3 },
|
|
3897
3900
|
className: u("border border-border rounded-lg overflow-hidden", l),
|
|
3898
3901
|
children: /* @__PURE__ */ r("div", { className: "overflow-x-auto", children: /* @__PURE__ */ d("table", { className: "w-full", children: [
|
|
3899
|
-
/* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((
|
|
3902
|
+
/* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((f, k) => /* @__PURE__ */ r(
|
|
3900
3903
|
"th",
|
|
3901
3904
|
{
|
|
3902
3905
|
className: u(
|
|
3903
3906
|
"px-6 py-4 text-left text-sm font-semibold text-foreground",
|
|
3904
|
-
|
|
3905
|
-
|
|
3907
|
+
f.width,
|
|
3908
|
+
f.sortable && "cursor-pointer transition-colors"
|
|
3906
3909
|
),
|
|
3907
|
-
onClick: () =>
|
|
3910
|
+
onClick: () => f.sortable && x(f.key),
|
|
3908
3911
|
children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
3909
|
-
|
|
3910
|
-
|
|
3912
|
+
f.header,
|
|
3913
|
+
f.sortable && /* @__PURE__ */ r("span", { className: "text-primary/50 hover:text-primary transition-colors", children: s === f.key ? i === "asc" ? /* @__PURE__ */ r(sr, { className: "w-4 h-4" }) : /* @__PURE__ */ r(ir, { className: "w-4 h-4" }) : /* @__PURE__ */ r(lr, { className: "w-4 h-4" }) })
|
|
3911
3914
|
] })
|
|
3912
3915
|
},
|
|
3913
|
-
|
|
3916
|
+
k
|
|
3914
3917
|
)) }) }),
|
|
3915
|
-
/* @__PURE__ */ r("tbody", { children: y.map((
|
|
3918
|
+
/* @__PURE__ */ r("tbody", { children: y.map((f, k) => /* @__PURE__ */ r(
|
|
3916
3919
|
g.tr,
|
|
3917
3920
|
{
|
|
3918
3921
|
initial: { opacity: 0, y: 10 },
|
|
3919
3922
|
animate: { opacity: 1, y: 0 },
|
|
3920
|
-
transition: { duration: 0.2, delay:
|
|
3921
|
-
onClick: () => o && o(
|
|
3923
|
+
transition: { duration: 0.2, delay: k * 0.05 },
|
|
3924
|
+
onClick: () => o && o(f),
|
|
3922
3925
|
className: u(
|
|
3923
3926
|
"border-b border-border transition-colors",
|
|
3924
3927
|
o && "cursor-pointer hover:bg-secondary"
|
|
@@ -3931,13 +3934,13 @@ function Vt({
|
|
|
3931
3934
|
w.width
|
|
3932
3935
|
),
|
|
3933
3936
|
style: w.width ? { width: w.width } : void 0,
|
|
3934
|
-
title: w.truncate && !w.render ? String(
|
|
3935
|
-
children: w.truncate && !w.render ? /* @__PURE__ */ r("div", { className: "truncate", children: String(
|
|
3937
|
+
title: w.truncate && !w.render ? String(f[w.key] ?? "") : void 0,
|
|
3938
|
+
children: w.truncate && !w.render ? /* @__PURE__ */ r("div", { className: "truncate", children: String(f[w.key] ?? "") }) : w.render ? w.render(f) : String(f[w.key] ?? "")
|
|
3936
3939
|
},
|
|
3937
3940
|
v
|
|
3938
3941
|
))
|
|
3939
3942
|
},
|
|
3940
|
-
|
|
3943
|
+
n(f)
|
|
3941
3944
|
)) })
|
|
3942
3945
|
] }) })
|
|
3943
3946
|
}
|
|
@@ -3948,7 +3951,7 @@ const Wt = ({
|
|
|
3948
3951
|
totalPages: t,
|
|
3949
3952
|
onPageChange: a,
|
|
3950
3953
|
totalItems: o,
|
|
3951
|
-
itemsPerPage:
|
|
3954
|
+
itemsPerPage: n,
|
|
3952
3955
|
className: l
|
|
3953
3956
|
}) => {
|
|
3954
3957
|
const c = Array.from({ length: t }, (i, m) => m + 1).slice(
|
|
@@ -3963,12 +3966,12 @@ const Wt = ({
|
|
|
3963
3966
|
transition: { duration: 0.3 },
|
|
3964
3967
|
className: u("flex items-center justify-between gap-4 flex-wrap", l),
|
|
3965
3968
|
children: [
|
|
3966
|
-
/* @__PURE__ */ r("div", { className: "text-sm text-foreground/70", children: o &&
|
|
3969
|
+
/* @__PURE__ */ r("div", { className: "text-sm text-foreground/70", children: o && n && /* @__PURE__ */ d("span", { children: [
|
|
3967
3970
|
"Showing ",
|
|
3968
|
-
Math.min((e - 1) *
|
|
3971
|
+
Math.min((e - 1) * n + 1, o),
|
|
3969
3972
|
" to",
|
|
3970
3973
|
" ",
|
|
3971
|
-
Math.min(e *
|
|
3974
|
+
Math.min(e * n, o),
|
|
3972
3975
|
" of ",
|
|
3973
3976
|
o,
|
|
3974
3977
|
" results"
|
|
@@ -4042,33 +4045,33 @@ const Wt = ({
|
|
|
4042
4045
|
]
|
|
4043
4046
|
}
|
|
4044
4047
|
);
|
|
4045
|
-
},
|
|
4048
|
+
}, ht = ({
|
|
4046
4049
|
icon: e,
|
|
4047
4050
|
onClick: t,
|
|
4048
4051
|
label: a,
|
|
4049
4052
|
actions: o,
|
|
4050
|
-
variant:
|
|
4053
|
+
variant: n = "primary",
|
|
4051
4054
|
position: l = "bottom-right",
|
|
4052
|
-
disabled:
|
|
4055
|
+
disabled: s,
|
|
4053
4056
|
className: c
|
|
4054
4057
|
}) => {
|
|
4055
|
-
const [i, m] =
|
|
4058
|
+
const [i, m] = L(!1), x = {
|
|
4056
4059
|
"bottom-right": "fixed bottom-6 right-6",
|
|
4057
4060
|
"bottom-left": "fixed bottom-6 left-6",
|
|
4058
4061
|
"bottom-center": "fixed bottom-6 left-1/2 -translate-x-1/2"
|
|
4059
4062
|
}, y = {
|
|
4060
4063
|
primary: "bg-primary text-white hover:bg-primary-dark shadow-lg",
|
|
4061
4064
|
secondary: "bg-background text-primary border-2 border-primary hover:bg-secondary shadow-md"
|
|
4062
|
-
},
|
|
4065
|
+
}, f = {
|
|
4063
4066
|
primary: "bg-primary text-white",
|
|
4064
4067
|
success: "bg-success text-white",
|
|
4065
4068
|
danger: "bg-error text-white",
|
|
4066
4069
|
warning: "bg-warning text-white"
|
|
4067
|
-
},
|
|
4070
|
+
}, k = () => {
|
|
4068
4071
|
o && o.length > 0 ? m(!i) : t && t();
|
|
4069
4072
|
};
|
|
4070
4073
|
return /* @__PURE__ */ d("div", { className: u(x[l], "z-50", c), children: [
|
|
4071
|
-
/* @__PURE__ */ r(
|
|
4074
|
+
/* @__PURE__ */ r(Q, { children: i && o && /* @__PURE__ */ r(
|
|
4072
4075
|
g.div,
|
|
4073
4076
|
{
|
|
4074
4077
|
initial: { opacity: 0 },
|
|
@@ -4105,7 +4108,7 @@ const Wt = ({
|
|
|
4105
4108
|
},
|
|
4106
4109
|
className: u(
|
|
4107
4110
|
"w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all",
|
|
4108
|
-
|
|
4111
|
+
f[w.variant || "primary"]
|
|
4109
4112
|
),
|
|
4110
4113
|
children: w.icon
|
|
4111
4114
|
}
|
|
@@ -4119,34 +4122,34 @@ const Wt = ({
|
|
|
4119
4122
|
/* @__PURE__ */ d(
|
|
4120
4123
|
g.button,
|
|
4121
4124
|
{
|
|
4122
|
-
whileTap: { scale:
|
|
4123
|
-
whileHover: { scale:
|
|
4124
|
-
onClick:
|
|
4125
|
-
disabled:
|
|
4125
|
+
whileTap: { scale: s ? 1 : 0.9 },
|
|
4126
|
+
whileHover: { scale: s ? 1 : 1.05 },
|
|
4127
|
+
onClick: k,
|
|
4128
|
+
disabled: s,
|
|
4126
4129
|
className: u(
|
|
4127
4130
|
"z-30 rounded-full p-4 transition-all duration-200",
|
|
4128
4131
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4129
4132
|
"flex items-center gap-2",
|
|
4130
|
-
y[
|
|
4133
|
+
y[n],
|
|
4131
4134
|
a ? "px-6" : "w-16 h-16 justify-center",
|
|
4132
4135
|
i && "rotate-45"
|
|
4133
4136
|
),
|
|
4134
4137
|
children: [
|
|
4135
|
-
/* @__PURE__ */ r("span", { className: "flex-shrink-0", children: e || (i ? /* @__PURE__ */ r(
|
|
4138
|
+
/* @__PURE__ */ r("span", { className: "flex-shrink-0", children: e || (i ? /* @__PURE__ */ r(H, { className: "w-6 h-6" }) : /* @__PURE__ */ r(cr, { className: "w-6 h-6" })) }),
|
|
4136
4139
|
a && /* @__PURE__ */ r("span", { className: "font-medium", children: a })
|
|
4137
4140
|
]
|
|
4138
4141
|
}
|
|
4139
4142
|
)
|
|
4140
4143
|
] });
|
|
4141
|
-
}, Yt =
|
|
4144
|
+
}, Yt = ht, Ht = ({
|
|
4142
4145
|
steps: e,
|
|
4143
4146
|
currentStep: t,
|
|
4144
4147
|
className: a
|
|
4145
4148
|
}) => {
|
|
4146
4149
|
const o = e[t];
|
|
4147
4150
|
return /* @__PURE__ */ d("div", { className: u("w-full", a), children: [
|
|
4148
|
-
/* @__PURE__ */ r("div", { className: "hidden md:block", children: /* @__PURE__ */ r("div", { className: "relative flex items-center mb-2", children: e.map((
|
|
4149
|
-
const
|
|
4151
|
+
/* @__PURE__ */ r("div", { className: "hidden md:block", children: /* @__PURE__ */ r("div", { className: "relative flex items-center mb-2", children: e.map((n, l) => {
|
|
4152
|
+
const s = l < t, c = l === t, i = l > t;
|
|
4150
4153
|
return /* @__PURE__ */ d(Le.Fragment, { children: [
|
|
4151
4154
|
/* @__PURE__ */ d("div", { className: "flex flex-col items-center relative z-10", children: [
|
|
4152
4155
|
/* @__PURE__ */ r(
|
|
@@ -4160,10 +4163,10 @@ const Wt = ({
|
|
|
4160
4163
|
"w-12 h-12 rounded-full flex items-center justify-center",
|
|
4161
4164
|
"font-semibold text-base transition-all duration-300",
|
|
4162
4165
|
"ring-4 ring-white",
|
|
4163
|
-
(
|
|
4166
|
+
(s || c) && "bg-primary text-white shadow-lg",
|
|
4164
4167
|
i && "bg-border text-muted-foreground"
|
|
4165
4168
|
),
|
|
4166
|
-
children:
|
|
4169
|
+
children: s ? /* @__PURE__ */ r(Oe, { className: "w-6 h-6 stroke-[3]" }) : /* @__PURE__ */ r("span", { children: l + 1 })
|
|
4167
4170
|
}
|
|
4168
4171
|
),
|
|
4169
4172
|
/* @__PURE__ */ d("div", { className: "mt-3 text-center max-w-[120px]", children: [
|
|
@@ -4173,22 +4176,22 @@ const Wt = ({
|
|
|
4173
4176
|
className: u(
|
|
4174
4177
|
"text-sm font-semibold block",
|
|
4175
4178
|
c && "text-primary",
|
|
4176
|
-
|
|
4179
|
+
s && "text-primary",
|
|
4177
4180
|
i && "text-primary/50"
|
|
4178
4181
|
),
|
|
4179
|
-
children:
|
|
4182
|
+
children: n.label
|
|
4180
4183
|
}
|
|
4181
4184
|
),
|
|
4182
|
-
|
|
4185
|
+
n.description && /* @__PURE__ */ r(
|
|
4183
4186
|
"p",
|
|
4184
4187
|
{
|
|
4185
4188
|
className: u(
|
|
4186
4189
|
"text-xs mt-1 leading-tight",
|
|
4187
4190
|
c && "text-primary",
|
|
4188
|
-
|
|
4191
|
+
s && "text-primary/70",
|
|
4189
4192
|
i && "text-primary/50"
|
|
4190
4193
|
),
|
|
4191
|
-
children:
|
|
4194
|
+
children: n.description
|
|
4192
4195
|
}
|
|
4193
4196
|
)
|
|
4194
4197
|
] })
|
|
@@ -4207,20 +4210,20 @@ const Wt = ({
|
|
|
4207
4210
|
] }, l);
|
|
4208
4211
|
}) }) }),
|
|
4209
4212
|
/* @__PURE__ */ d("div", { className: "md:hidden", children: [
|
|
4210
|
-
/* @__PURE__ */ r("div", { className: "flex items-center justify-center gap-2 mb-3", children: e.map((
|
|
4211
|
-
const
|
|
4213
|
+
/* @__PURE__ */ r("div", { className: "flex items-center justify-center gap-2 mb-3", children: e.map((n, l) => {
|
|
4214
|
+
const s = l < t, c = l === t;
|
|
4212
4215
|
return /* @__PURE__ */ r(
|
|
4213
4216
|
g.div,
|
|
4214
4217
|
{
|
|
4215
4218
|
initial: !1,
|
|
4216
4219
|
animate: {
|
|
4217
4220
|
scale: c ? 1.2 : 1,
|
|
4218
|
-
backgroundColor:
|
|
4221
|
+
backgroundColor: s || c ? "var(--color-primary)" : "var(--color-border-dark)"
|
|
4219
4222
|
},
|
|
4220
4223
|
className: u(
|
|
4221
4224
|
"rounded-full transition-all duration-300",
|
|
4222
4225
|
c ? "w-3 h-3" : "w-2 h-2",
|
|
4223
|
-
(
|
|
4226
|
+
(s || c) && "shadow-sm"
|
|
4224
4227
|
)
|
|
4225
4228
|
},
|
|
4226
4229
|
l
|
|
@@ -4244,7 +4247,7 @@ const Wt = ({
|
|
|
4244
4247
|
variant: t = "default",
|
|
4245
4248
|
size: a = "md",
|
|
4246
4249
|
className: o,
|
|
4247
|
-
dot:
|
|
4250
|
+
dot: n = !1
|
|
4248
4251
|
}) => {
|
|
4249
4252
|
const l = {
|
|
4250
4253
|
default: "bg-secondary text-primary border border-border",
|
|
@@ -4253,7 +4256,7 @@ const Wt = ({
|
|
|
4253
4256
|
warning: "bg-warning/10 text-warning border border-warning/20",
|
|
4254
4257
|
danger: "bg-error/10 text-error border border-error/20",
|
|
4255
4258
|
info: "bg-info/10 text-info border border-info/20"
|
|
4256
|
-
},
|
|
4259
|
+
}, s = {
|
|
4257
4260
|
sm: "px-2 py-0.5 text-xs",
|
|
4258
4261
|
md: "px-2.5 py-1 text-sm",
|
|
4259
4262
|
lg: "px-3 py-1.5 text-base"
|
|
@@ -4274,11 +4277,11 @@ const Wt = ({
|
|
|
4274
4277
|
className: u(
|
|
4275
4278
|
"inline-flex items-center gap-1.5 rounded-lg font-medium",
|
|
4276
4279
|
l[t],
|
|
4277
|
-
|
|
4280
|
+
s[a],
|
|
4278
4281
|
o
|
|
4279
4282
|
),
|
|
4280
4283
|
children: [
|
|
4281
|
-
|
|
4284
|
+
n && /* @__PURE__ */ r("span", { className: u("w-1.5 h-1.5 rounded-full", c[t]) }),
|
|
4282
4285
|
e
|
|
4283
4286
|
]
|
|
4284
4287
|
}
|
|
@@ -4302,12 +4305,12 @@ const Wt = ({
|
|
|
4302
4305
|
/* @__PURE__ */ r("span", { children: "Offline Mode" })
|
|
4303
4306
|
]
|
|
4304
4307
|
}
|
|
4305
|
-
) : null,
|
|
4308
|
+
) : null, Qt = ({
|
|
4306
4309
|
status: e,
|
|
4307
4310
|
count: t,
|
|
4308
4311
|
className: a
|
|
4309
4312
|
}) => {
|
|
4310
|
-
const
|
|
4313
|
+
const n = {
|
|
4311
4314
|
synced: {
|
|
4312
4315
|
icon: /* @__PURE__ */ r(Te, { className: "w-4 h-4" }),
|
|
4313
4316
|
label: "Synced",
|
|
@@ -4337,12 +4340,12 @@ const Wt = ({
|
|
|
4337
4340
|
className: u(
|
|
4338
4341
|
"inline-flex items-center gap-2 px-3 py-1.5 rounded-full",
|
|
4339
4342
|
"text-sm font-medium shadow-sm",
|
|
4340
|
-
|
|
4343
|
+
n.color,
|
|
4341
4344
|
a
|
|
4342
4345
|
),
|
|
4343
4346
|
children: [
|
|
4344
|
-
|
|
4345
|
-
/* @__PURE__ */ r("span", { children:
|
|
4347
|
+
n.icon,
|
|
4348
|
+
/* @__PURE__ */ r("span", { children: n.label })
|
|
4346
4349
|
]
|
|
4347
4350
|
}
|
|
4348
4351
|
);
|
|
@@ -4382,7 +4385,7 @@ const Wt = ({
|
|
|
4382
4385
|
o && /* @__PURE__ */ r("span", { className: "text-sm text-foreground/70", children: o })
|
|
4383
4386
|
] });
|
|
4384
4387
|
xt.displayName = "Spinner";
|
|
4385
|
-
const Ze = er(void 0),
|
|
4388
|
+
const Ze = er(void 0), Kt = () => {
|
|
4386
4389
|
const e = rr(Ze);
|
|
4387
4390
|
if (!e)
|
|
4388
4391
|
throw new Error("useToast must be used within ToastProvider");
|
|
@@ -4407,7 +4410,7 @@ const Ze = er(void 0), Qt = () => {
|
|
|
4407
4410
|
"bottom-center": "bottom-4 left-1/2 -translate-x-1/2",
|
|
4408
4411
|
"bottom-right": "bottom-4 right-4"
|
|
4409
4412
|
}, kt = ({ toast: e, onRemove: t }) => {
|
|
4410
|
-
const a = e.variant || "default", o = vt[a],
|
|
4413
|
+
const a = e.variant || "default", o = vt[a], n = typeof e.message == "string" ? e.message : String(e.message);
|
|
4411
4414
|
return /* @__PURE__ */ d(
|
|
4412
4415
|
g.div,
|
|
4413
4416
|
{
|
|
@@ -4423,7 +4426,7 @@ const Ze = er(void 0), Qt = () => {
|
|
|
4423
4426
|
children: [
|
|
4424
4427
|
o && /* @__PURE__ */ r(o, { className: "w-5 h-5 flex-shrink-0 mt-0.5" }),
|
|
4425
4428
|
/* @__PURE__ */ d("div", { className: "flex-1 min-w-0", children: [
|
|
4426
|
-
/* @__PURE__ */ r("p", { className: "text-sm font-medium leading-relaxed", children:
|
|
4429
|
+
/* @__PURE__ */ r("p", { className: "text-sm font-medium leading-relaxed", children: n }),
|
|
4427
4430
|
e.action && /* @__PURE__ */ r(
|
|
4428
4431
|
"button",
|
|
4429
4432
|
{
|
|
@@ -4439,7 +4442,7 @@ const Ze = er(void 0), Qt = () => {
|
|
|
4439
4442
|
onClick: () => t(e.id),
|
|
4440
4443
|
className: "flex-shrink-0 hover:opacity-70 transition-opacity",
|
|
4441
4444
|
"aria-label": "Close notification",
|
|
4442
|
-
children: /* @__PURE__ */ r(
|
|
4445
|
+
children: /* @__PURE__ */ r(H, { className: "w-4 h-4" })
|
|
4443
4446
|
}
|
|
4444
4447
|
)
|
|
4445
4448
|
]
|
|
@@ -4450,24 +4453,24 @@ const Ze = er(void 0), Qt = () => {
|
|
|
4450
4453
|
position: t = "top-right",
|
|
4451
4454
|
maxToasts: a = 5
|
|
4452
4455
|
}) => {
|
|
4453
|
-
const [o,
|
|
4454
|
-
|
|
4455
|
-
}, []),
|
|
4456
|
+
const [o, n] = L([]), l = ze((c) => {
|
|
4457
|
+
n((i) => i.filter((m) => m.id !== c));
|
|
4458
|
+
}, []), s = ze(
|
|
4456
4459
|
(c) => {
|
|
4457
4460
|
if (typeof c.message != "string") {
|
|
4458
4461
|
console.error("Toast message must be a string, received:", c.message);
|
|
4459
4462
|
return;
|
|
4460
4463
|
}
|
|
4461
4464
|
const i = Math.random().toString(36).substring(2, 9), m = c.duration ?? 5e3;
|
|
4462
|
-
|
|
4465
|
+
n((x) => [...x, { ...c, id: i }].slice(-a)), m > 0 && setTimeout(() => {
|
|
4463
4466
|
l(i);
|
|
4464
4467
|
}, m);
|
|
4465
4468
|
},
|
|
4466
4469
|
[a, l]
|
|
4467
4470
|
);
|
|
4468
|
-
return /* @__PURE__ */ d(Ze.Provider, { value: { toasts: o, addToast:
|
|
4471
|
+
return /* @__PURE__ */ d(Ze.Provider, { value: { toasts: o, addToast: s, removeToast: l }, children: [
|
|
4469
4472
|
e,
|
|
4470
|
-
/* @__PURE__ */ r("div", { className: u("fixed z-[100] flex flex-col gap-2", Nt[t]), children: /* @__PURE__ */ r(
|
|
4473
|
+
/* @__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: l }, c.id)) }) })
|
|
4471
4474
|
] });
|
|
4472
4475
|
};
|
|
4473
4476
|
Ct.displayName = "ToastProvider";
|
|
@@ -4476,10 +4479,10 @@ const Xt = ({
|
|
|
4476
4479
|
onRemove: t,
|
|
4477
4480
|
preview: a,
|
|
4478
4481
|
label: o = "Take Photo",
|
|
4479
|
-
disabled:
|
|
4482
|
+
disabled: n,
|
|
4480
4483
|
className: l
|
|
4481
4484
|
}) => {
|
|
4482
|
-
const
|
|
4485
|
+
const s = Y(null), c = (i) => {
|
|
4483
4486
|
const m = i.target.files?.[0];
|
|
4484
4487
|
m && e(m);
|
|
4485
4488
|
};
|
|
@@ -4499,16 +4502,16 @@ const Xt = ({
|
|
|
4499
4502
|
{
|
|
4500
4503
|
onClick: t,
|
|
4501
4504
|
className: "absolute top-2 right-2 p-2 bg-error text-white rounded-full shadow-lg hover:bg-red-600",
|
|
4502
|
-
children: /* @__PURE__ */ r(
|
|
4505
|
+
children: /* @__PURE__ */ r(H, { className: "w-4 h-4" })
|
|
4503
4506
|
}
|
|
4504
4507
|
)
|
|
4505
4508
|
] }) : /* @__PURE__ */ d(
|
|
4506
4509
|
g.button,
|
|
4507
4510
|
{
|
|
4508
4511
|
type: "button",
|
|
4509
|
-
whileTap: { scale:
|
|
4510
|
-
onClick: () =>
|
|
4511
|
-
disabled:
|
|
4512
|
+
whileTap: { scale: n ? 1 : 0.98 },
|
|
4513
|
+
onClick: () => s.current?.click(),
|
|
4514
|
+
disabled: n,
|
|
4512
4515
|
className: u(
|
|
4513
4516
|
"w-full p-4 rounded-lg border-2 border-border",
|
|
4514
4517
|
"flex items-center justify-center gap-3",
|
|
@@ -4525,13 +4528,13 @@ const Xt = ({
|
|
|
4525
4528
|
/* @__PURE__ */ r(
|
|
4526
4529
|
"input",
|
|
4527
4530
|
{
|
|
4528
|
-
ref:
|
|
4531
|
+
ref: s,
|
|
4529
4532
|
type: "file",
|
|
4530
4533
|
accept: "image/*",
|
|
4531
4534
|
capture: "environment",
|
|
4532
4535
|
onChange: c,
|
|
4533
4536
|
className: "hidden",
|
|
4534
|
-
disabled:
|
|
4537
|
+
disabled: n
|
|
4535
4538
|
}
|
|
4536
4539
|
)
|
|
4537
4540
|
] });
|
|
@@ -4540,10 +4543,10 @@ const Xt = ({
|
|
|
4540
4543
|
accept: t = "*/*",
|
|
4541
4544
|
multiple: a = !1,
|
|
4542
4545
|
label: o = "Upload Files",
|
|
4543
|
-
disabled:
|
|
4546
|
+
disabled: n,
|
|
4544
4547
|
className: l
|
|
4545
4548
|
}) => {
|
|
4546
|
-
const
|
|
4549
|
+
const s = Y(null), c = (i) => {
|
|
4547
4550
|
i && e(Array.from(i));
|
|
4548
4551
|
};
|
|
4549
4552
|
return /* @__PURE__ */ d("div", { className: u("w-full", l), children: [
|
|
@@ -4552,9 +4555,9 @@ const Xt = ({
|
|
|
4552
4555
|
g.button,
|
|
4553
4556
|
{
|
|
4554
4557
|
type: "button",
|
|
4555
|
-
whileTap: { scale:
|
|
4556
|
-
onClick: () => !
|
|
4557
|
-
disabled:
|
|
4558
|
+
whileTap: { scale: n ? 1 : 0.98 },
|
|
4559
|
+
onClick: () => !n && s.current?.click(),
|
|
4560
|
+
disabled: n,
|
|
4558
4561
|
className: u(
|
|
4559
4562
|
"w-full p-4 rounded-lg border-2 border-border",
|
|
4560
4563
|
"flex items-center justify-center gap-3",
|
|
@@ -4563,7 +4566,7 @@ const Xt = ({
|
|
|
4563
4566
|
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
4564
4567
|
),
|
|
4565
4568
|
children: [
|
|
4566
|
-
/* @__PURE__ */ r(
|
|
4569
|
+
/* @__PURE__ */ r(fr, { className: "w-6 h-6 text-primary" }),
|
|
4567
4570
|
/* @__PURE__ */ r("span", { className: "font-medium text-foreground", children: a ? "Upload Files" : "Upload File" })
|
|
4568
4571
|
]
|
|
4569
4572
|
}
|
|
@@ -4571,13 +4574,13 @@ const Xt = ({
|
|
|
4571
4574
|
/* @__PURE__ */ r(
|
|
4572
4575
|
"input",
|
|
4573
4576
|
{
|
|
4574
|
-
ref:
|
|
4577
|
+
ref: s,
|
|
4575
4578
|
type: "file",
|
|
4576
4579
|
accept: t,
|
|
4577
4580
|
multiple: a,
|
|
4578
4581
|
onChange: (i) => c(i.target.files),
|
|
4579
4582
|
className: "hidden",
|
|
4580
|
-
disabled:
|
|
4583
|
+
disabled: n
|
|
4581
4584
|
}
|
|
4582
4585
|
)
|
|
4583
4586
|
] });
|
|
@@ -4587,37 +4590,37 @@ const Xt = ({
|
|
|
4587
4590
|
maxDuration: a = 300,
|
|
4588
4591
|
// 5 minutes default
|
|
4589
4592
|
disabled: o,
|
|
4590
|
-
className:
|
|
4593
|
+
className: n
|
|
4591
4594
|
}) => {
|
|
4592
|
-
const [l,
|
|
4595
|
+
const [l, s] = L(!1), [c, i] = L(!1), [m, x] = L(0), [y, f] = L(null), k = Y(null), w = Y([]), v = Y(null), M = async () => {
|
|
4593
4596
|
try {
|
|
4594
|
-
const
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
},
|
|
4598
|
-
const
|
|
4599
|
-
|
|
4600
|
-
},
|
|
4601
|
-
x((
|
|
4597
|
+
const R = await navigator.mediaDevices.getUserMedia({ audio: !0 }), F = new MediaRecorder(R);
|
|
4598
|
+
k.current = F, w.current = [], F.ondataavailable = (h) => {
|
|
4599
|
+
h.data.size > 0 && w.current.push(h.data);
|
|
4600
|
+
}, F.onstop = () => {
|
|
4601
|
+
const h = new Blob(w.current, { type: "audio/webm" }), C = URL.createObjectURL(h);
|
|
4602
|
+
f(C), e(h), R.getTracks().forEach((j) => j.stop());
|
|
4603
|
+
}, F.start(), s(!0), x(0), v.current = setInterval(() => {
|
|
4604
|
+
x((h) => h >= a ? (O(), h) : h + 1);
|
|
4602
4605
|
}, 1e3);
|
|
4603
|
-
} catch (
|
|
4604
|
-
console.error("Error accessing microphone:",
|
|
4606
|
+
} catch (R) {
|
|
4607
|
+
console.error("Error accessing microphone:", R);
|
|
4605
4608
|
}
|
|
4606
|
-
},
|
|
4607
|
-
|
|
4608
|
-
}, L = () => {
|
|
4609
|
-
C.current?.state === "paused" && (C.current.resume(), i(!1), v.current = setInterval(() => {
|
|
4610
|
-
x((N) => Math.min(N + 1, a));
|
|
4611
|
-
}, 1e3));
|
|
4609
|
+
}, I = () => {
|
|
4610
|
+
k.current?.state === "recording" && (k.current.pause(), i(!0), v.current && clearInterval(v.current));
|
|
4612
4611
|
}, T = () => {
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
}, O = (
|
|
4617
|
-
|
|
4618
|
-
|
|
4612
|
+
k.current?.state === "paused" && (k.current.resume(), i(!1), v.current = setInterval(() => {
|
|
4613
|
+
x((R) => Math.min(R + 1, a));
|
|
4614
|
+
}, 1e3));
|
|
4615
|
+
}, O = () => {
|
|
4616
|
+
k.current && (k.current.stop(), s(!1), i(!1), v.current && (clearInterval(v.current), v.current = null));
|
|
4617
|
+
}, G = () => {
|
|
4618
|
+
f(null), x(0);
|
|
4619
|
+
}, z = (R) => {
|
|
4620
|
+
const F = Math.floor(R / 60), h = R % 60;
|
|
4621
|
+
return `${F.toString().padStart(2, "0")}:${h.toString().padStart(2, "0")}`;
|
|
4619
4622
|
};
|
|
4620
|
-
return /* @__PURE__ */ d("div", { className: u("w-full",
|
|
4623
|
+
return /* @__PURE__ */ d("div", { className: u("w-full", n), children: [
|
|
4621
4624
|
t && /* @__PURE__ */ r("label", { className: "block mb-2 text-sm font-medium text-primary", children: t }),
|
|
4622
4625
|
/* @__PURE__ */ d("div", { className: "p-4 md:p-6 bg-background rounded-lg border-2 border-border space-y-4", children: [
|
|
4623
4626
|
!y && /* @__PURE__ */ d("div", { className: "flex flex-col items-center gap-4", children: [
|
|
@@ -4627,7 +4630,7 @@ const Xt = ({
|
|
|
4627
4630
|
{
|
|
4628
4631
|
type: "button",
|
|
4629
4632
|
whileTap: { scale: o ? 1 : 0.95 },
|
|
4630
|
-
onClick: l ? c ?
|
|
4633
|
+
onClick: l ? c ? T : I : M,
|
|
4631
4634
|
disabled: o,
|
|
4632
4635
|
className: u(
|
|
4633
4636
|
"w-16 h-16 md:w-20 md:h-20 rounded-full flex items-center justify-center",
|
|
@@ -4635,7 +4638,7 @@ const Xt = ({
|
|
|
4635
4638
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4636
4639
|
l ? "bg-warning text-white animate-pulse" : "bg-primary text-white hover:bg-primary-dark"
|
|
4637
4640
|
),
|
|
4638
|
-
children: l ? c ? /* @__PURE__ */ r(
|
|
4641
|
+
children: l ? c ? /* @__PURE__ */ r(hr, { 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" })
|
|
4639
4642
|
}
|
|
4640
4643
|
),
|
|
4641
4644
|
l && !c && /* @__PURE__ */ r(
|
|
@@ -4648,7 +4651,7 @@ const Xt = ({
|
|
|
4648
4651
|
)
|
|
4649
4652
|
] }),
|
|
4650
4653
|
/* @__PURE__ */ d("div", { className: "text-center", children: [
|
|
4651
|
-
/* @__PURE__ */ r("p", { className: "text-xl md:text-2xl font-mono font-semibold text-foreground", children:
|
|
4654
|
+
/* @__PURE__ */ r("p", { className: "text-xl md:text-2xl font-mono font-semibold text-foreground", children: z(m) }),
|
|
4652
4655
|
/* @__PURE__ */ r("p", { className: "text-xs md:text-sm text-primary/70 mt-1", children: l ? c ? "Paused" : "Recording..." : "Tap to record" })
|
|
4653
4656
|
] }),
|
|
4654
4657
|
l && /* @__PURE__ */ d(
|
|
@@ -4657,7 +4660,7 @@ const Xt = ({
|
|
|
4657
4660
|
initial: { opacity: 0, scale: 0.8 },
|
|
4658
4661
|
animate: { opacity: 1, scale: 1 },
|
|
4659
4662
|
type: "button",
|
|
4660
|
-
onClick:
|
|
4663
|
+
onClick: O,
|
|
4661
4664
|
className: "px-4 py-2 text-sm bg-error text-white rounded-full font-medium hover:bg-red-600 flex items-center gap-2",
|
|
4662
4665
|
children: [
|
|
4663
4666
|
/* @__PURE__ */ r(xr, { className: "w-4 h-4" }),
|
|
@@ -4677,13 +4680,13 @@ const Xt = ({
|
|
|
4677
4680
|
/* @__PURE__ */ d("div", { className: "flex items-center justify-between", children: [
|
|
4678
4681
|
/* @__PURE__ */ d("span", { className: "text-sm text-primary/70", children: [
|
|
4679
4682
|
"Duration: ",
|
|
4680
|
-
|
|
4683
|
+
z(m)
|
|
4681
4684
|
] }),
|
|
4682
4685
|
/* @__PURE__ */ d(
|
|
4683
4686
|
"button",
|
|
4684
4687
|
{
|
|
4685
4688
|
type: "button",
|
|
4686
|
-
onClick:
|
|
4689
|
+
onClick: G,
|
|
4687
4690
|
className: "flex items-center gap-2 px-3 py-1.5 text-sm text-error hover:bg-red-50 rounded-lg transition-colors",
|
|
4688
4691
|
children: [
|
|
4689
4692
|
/* @__PURE__ */ r(wr, { className: "w-4 h-4" }),
|
|
@@ -4702,13 +4705,13 @@ const Xt = ({
|
|
|
4702
4705
|
onRemove: t,
|
|
4703
4706
|
onView: a,
|
|
4704
4707
|
columns: o = 3,
|
|
4705
|
-
className:
|
|
4708
|
+
className: n
|
|
4706
4709
|
}) => {
|
|
4707
4710
|
const l = {
|
|
4708
4711
|
2: "grid-cols-2",
|
|
4709
4712
|
3: "grid-cols-3",
|
|
4710
4713
|
4: "grid-cols-4"
|
|
4711
|
-
},
|
|
4714
|
+
}, s = (i) => {
|
|
4712
4715
|
if (!i) return "";
|
|
4713
4716
|
const m = i / 1024;
|
|
4714
4717
|
return m < 1024 ? `${m.toFixed(1)} KB` : `${(m / 1024).toFixed(1)} MB`;
|
|
@@ -4722,7 +4725,7 @@ const Xt = ({
|
|
|
4722
4725
|
return /* @__PURE__ */ r(vr, { className: "w-8 h-8 text-primary" });
|
|
4723
4726
|
}
|
|
4724
4727
|
};
|
|
4725
|
-
return e.length === 0 ? null : /* @__PURE__ */ r("div", { className: u("w-full",
|
|
4728
|
+
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(
|
|
4726
4729
|
g.div,
|
|
4727
4730
|
{
|
|
4728
4731
|
initial: { opacity: 0, scale: 0.8 },
|
|
@@ -4762,12 +4765,12 @@ const Xt = ({
|
|
|
4762
4765
|
onClick: (m) => {
|
|
4763
4766
|
m.stopPropagation(), t(i.id);
|
|
4764
4767
|
},
|
|
4765
|
-
children: /* @__PURE__ */ r(
|
|
4768
|
+
children: /* @__PURE__ */ r(H, { className: "w-4 h-4" })
|
|
4766
4769
|
}
|
|
4767
4770
|
),
|
|
4768
4771
|
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: [
|
|
4769
4772
|
/* @__PURE__ */ r("p", { className: "truncate", children: i.name }),
|
|
4770
|
-
/* @__PURE__ */ r("p", { className: "text-white/70", children:
|
|
4773
|
+
/* @__PURE__ */ r("p", { className: "text-white/70", children: s(i.size) })
|
|
4771
4774
|
] })
|
|
4772
4775
|
]
|
|
4773
4776
|
},
|
|
@@ -4778,9 +4781,9 @@ const Xt = ({
|
|
|
4778
4781
|
showHeart: t = !0,
|
|
4779
4782
|
href: a,
|
|
4780
4783
|
position: o = "fixed",
|
|
4781
|
-
backgroundColor:
|
|
4784
|
+
backgroundColor: n = "bg-gray-900",
|
|
4782
4785
|
textColor: l = "text-gray-400",
|
|
4783
|
-
className:
|
|
4786
|
+
className: s = ""
|
|
4784
4787
|
}) => {
|
|
4785
4788
|
const c = t ? /* @__PURE__ */ d(ae, { children: [
|
|
4786
4789
|
"Built with ",
|
|
@@ -4800,7 +4803,7 @@ const Xt = ({
|
|
|
4800
4803
|
return /* @__PURE__ */ r(
|
|
4801
4804
|
"div",
|
|
4802
4805
|
{
|
|
4803
|
-
className: `${o} bottom-0 left-0 right-0 ${
|
|
4806
|
+
className: `${o} bottom-0 left-0 right-0 ${n} ${s}`,
|
|
4804
4807
|
style: { zIndex: 40 },
|
|
4805
4808
|
children: /* @__PURE__ */ r("div", { className: "flex items-center justify-center py-2 px-4", children: i })
|
|
4806
4809
|
}
|
|
@@ -4815,8 +4818,8 @@ export {
|
|
|
4815
4818
|
Lt as Card,
|
|
4816
4819
|
Pt as CardContent,
|
|
4817
4820
|
Ft as CardDescription,
|
|
4818
|
-
|
|
4819
|
-
|
|
4821
|
+
Ot as CardHeader,
|
|
4822
|
+
Et as CardTitle,
|
|
4820
4823
|
pt as Checkbox,
|
|
4821
4824
|
to as CreditBar,
|
|
4822
4825
|
Dt as DatePicker,
|
|
@@ -4825,7 +4828,7 @@ export {
|
|
|
4825
4828
|
It as DualSlider,
|
|
4826
4829
|
Yt as FAB,
|
|
4827
4830
|
Zt as FileUploader,
|
|
4828
|
-
|
|
4831
|
+
ht as FloatingActionButton,
|
|
4829
4832
|
mt as Input,
|
|
4830
4833
|
Bt as Modal,
|
|
4831
4834
|
Ut as ModalContent,
|
|
@@ -4833,17 +4836,17 @@ export {
|
|
|
4833
4836
|
Jt as OfflineBadge,
|
|
4834
4837
|
Wt as Pagination,
|
|
4835
4838
|
Rt as RadioPills,
|
|
4836
|
-
|
|
4839
|
+
ft as Select,
|
|
4837
4840
|
At as Slider,
|
|
4838
4841
|
xt as Spinner,
|
|
4839
4842
|
Ht as StepProgress,
|
|
4840
|
-
|
|
4843
|
+
Qt as SyncIndicator,
|
|
4841
4844
|
Vt as Table,
|
|
4842
4845
|
ut as Textarea,
|
|
4843
4846
|
ro as ThumbnailGrid,
|
|
4844
4847
|
Ct as ToastProvider,
|
|
4845
4848
|
bt as Toggle,
|
|
4846
4849
|
u as cn,
|
|
4847
|
-
|
|
4850
|
+
Kt as useToast
|
|
4848
4851
|
};
|
|
4849
4852
|
//# sourceMappingURL=index.js.map
|