@stackloop/ui 2.4.0 → 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 +583 -576
- 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
|
|
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
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,
|
|
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,18 +108,18 @@ 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
125
|
}, Lr = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Or = (e) => {
|
|
@@ -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 = ":", Er = [], Ie = (e, t, a, o,
|
|
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, k,
|
|
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,12 +205,12 @@ 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
216
|
cache: Or(e.cacheSize),
|
|
@@ -221,14 +221,14 @@ 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:
|
|
231
|
+
modifiers: f,
|
|
232
232
|
hasImportantModifier: k,
|
|
233
233
|
baseClassName: w,
|
|
234
234
|
maybePostfixModifierPosition: v
|
|
@@ -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)/, Qr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, X = (e) => Wr.test(e),
|
|
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) => 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),
|
|
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
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 =
|
|
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: [
|
|
351
|
+
blur: [W],
|
|
352
|
+
breakpoint: [W],
|
|
353
353
|
color: [Kr],
|
|
354
|
-
container: [
|
|
355
|
-
"drop-shadow": [
|
|
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
|
|
@@ -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 ---
|
|
@@ -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
|
/**
|
|
@@ -1176,14 +1176,14 @@ 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
|
|
@@ -1197,7 +1197,7 @@ const kr = (e, t) => {
|
|
|
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,7 +1321,7 @@ 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
|
|
@@ -1572,14 +1572,14 @@ 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
|
|
@@ -1656,21 +1656,21 @@ const kr = (e, t) => {
|
|
|
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
|
|
@@ -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
|
|
@@ -1775,7 +1775,7 @@ const kr = (e, t) => {
|
|
|
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
|
|
@@ -1789,7 +1789,7 @@ const kr = (e, t) => {
|
|
|
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,13 +1824,13 @@ 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
1836
|
"mask-linear-from": N()
|
|
@@ -1839,10 +1839,10 @@ const kr = (e, t) => {
|
|
|
1839
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
1848
|
"mask-t-from": N()
|
|
@@ -1851,10 +1851,10 @@ const kr = (e, t) => {
|
|
|
1851
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
1860
|
"mask-r-from": N()
|
|
@@ -1863,10 +1863,10 @@ const kr = (e, t) => {
|
|
|
1863
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
1872
|
"mask-b-from": N()
|
|
@@ -1875,10 +1875,10 @@ const kr = (e, t) => {
|
|
|
1875
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
1884
|
"mask-l-from": N()
|
|
@@ -1887,10 +1887,10 @@ const kr = (e, t) => {
|
|
|
1887
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
1896
|
"mask-x-from": N()
|
|
@@ -1899,10 +1899,10 @@ const kr = (e, t) => {
|
|
|
1899
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
1908
|
"mask-y-from": N()
|
|
@@ -1914,10 +1914,10 @@ const kr = (e, t) => {
|
|
|
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
1923
|
"mask-radial-from": N()
|
|
@@ -1935,16 +1935,16 @@ 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
1950
|
"mask-conic-from": N()
|
|
@@ -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
|
|
@@ -2064,35 +2064,35 @@ const kr = (e, t) => {
|
|
|
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
|
|
@@ -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
|
|
@@ -2695,7 +2695,7 @@ const kr = (e, t) => {
|
|
|
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
|
|
@@ -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(
|
|
@@ -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,7 +3086,7 @@ const At = ({
|
|
|
3086
3086
|
type: "range",
|
|
3087
3087
|
min: a,
|
|
3088
3088
|
max: o,
|
|
3089
|
-
step:
|
|
3089
|
+
step: n,
|
|
3090
3090
|
value: e,
|
|
3091
3091
|
onChange: (k) => t(Number(k.target.value)),
|
|
3092
3092
|
onMouseDown: () => 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
|
|
@@ -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
|
|
3227
|
+
const I = (T) => {
|
|
3228
3228
|
a(T), y(!1), k("");
|
|
3229
|
-
}, L = (T) => {
|
|
3230
|
-
T.stopPropagation(), a("");
|
|
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,26 +3250,15 @@ 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
|
-
Ee,
|
|
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
|
),
|
|
@@ -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:
|
|
3281
|
+
value: f,
|
|
3295
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
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,41 +3337,39 @@ 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 [k, w] =
|
|
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
|
-
}, P = (S) => {
|
|
3364
|
-
S.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
|
{
|
|
@@ -3390,30 +3391,18 @@ const At = ({
|
|
|
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
|
-
),
|
|
3407
|
-
/* @__PURE__ */ r(
|
|
3408
|
-
Ee,
|
|
3409
|
-
{
|
|
3410
|
-
className: u(
|
|
3411
|
-
"w-5 h-5 text-primary transition-transform",
|
|
3412
|
-
k && "rotate-180"
|
|
3413
|
-
)
|
|
3414
|
-
}
|
|
3415
|
-
)
|
|
3416
|
-
] })
|
|
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
|
+
)
|
|
3417
3406
|
]
|
|
3418
3407
|
}
|
|
3419
3408
|
),
|
|
@@ -3435,7 +3424,7 @@ const At = ({
|
|
|
3435
3424
|
type: "text",
|
|
3436
3425
|
placeholder: "Search...",
|
|
3437
3426
|
value: v,
|
|
3438
|
-
onChange: (
|
|
3427
|
+
onChange: (z) => M(z.target.value),
|
|
3439
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",
|
|
3440
3429
|
"aria-label": "Search options"
|
|
3441
3430
|
}
|
|
@@ -3447,31 +3436,49 @@ const At = ({
|
|
|
3447
3436
|
onClick: () => M(""),
|
|
3448
3437
|
className: "absolute right-2 top-1/2 -translate-y-1/2",
|
|
3449
3438
|
"aria-label": "Clear search",
|
|
3450
|
-
children: /* @__PURE__ */ r(
|
|
3439
|
+
children: /* @__PURE__ */ r(H, { className: "w-4 h-4 text-primary/50 hover:text-primary" })
|
|
3451
3440
|
}
|
|
3452
3441
|
)
|
|
3453
3442
|
] }) }),
|
|
3454
|
-
/* @__PURE__ */
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
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
|
+
] })
|
|
3475
3482
|
]
|
|
3476
3483
|
}
|
|
3477
3484
|
) })
|
|
@@ -3485,26 +3492,26 @@ const At = ({
|
|
|
3485
3492
|
children: l
|
|
3486
3493
|
}
|
|
3487
3494
|
),
|
|
3488
|
-
|
|
3495
|
+
s && !l && /* @__PURE__ */ r("p", { className: "text-sm text-primary/70", children: s })
|
|
3489
3496
|
] });
|
|
3490
3497
|
}
|
|
3491
3498
|
);
|
|
3492
|
-
|
|
3499
|
+
ft.displayName = "Select";
|
|
3493
3500
|
const Dt = ({
|
|
3494
3501
|
value: e,
|
|
3495
3502
|
onChange: t,
|
|
3496
3503
|
label: a,
|
|
3497
3504
|
placeholder: o = "Select date",
|
|
3498
|
-
error:
|
|
3505
|
+
error: n,
|
|
3499
3506
|
disabled: l,
|
|
3500
|
-
minDate:
|
|
3507
|
+
minDate: s,
|
|
3501
3508
|
maxDate: c,
|
|
3502
3509
|
className: i
|
|
3503
3510
|
}) => {
|
|
3504
|
-
const [m, x] =
|
|
3511
|
+
const [m, x] = L(!1), [y, f] = L(e || /* @__PURE__ */ new Date()), k = Y(null);
|
|
3505
3512
|
Z(() => {
|
|
3506
|
-
const C = (
|
|
3507
|
-
k.current && !k.current.contains(
|
|
3513
|
+
const C = (j) => {
|
|
3514
|
+
k.current && !k.current.contains(j.target) && x(!1);
|
|
3508
3515
|
};
|
|
3509
3516
|
return m && document.addEventListener("mousedown", C), () => {
|
|
3510
3517
|
document.removeEventListener("mousedown", C);
|
|
@@ -3524,23 +3531,23 @@ const Dt = ({
|
|
|
3524
3531
|
"November",
|
|
3525
3532
|
"December"
|
|
3526
3533
|
], v = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], M = (C) => {
|
|
3527
|
-
const
|
|
3528
|
-
for (let
|
|
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++)
|
|
3529
3536
|
B.push(null);
|
|
3530
|
-
for (let
|
|
3531
|
-
B.push(new Date(
|
|
3537
|
+
for (let P = 1; P <= te; P++)
|
|
3538
|
+
B.push(new Date(j, $, P));
|
|
3532
3539
|
return B;
|
|
3533
|
-
},
|
|
3534
|
-
|
|
3535
|
-
},
|
|
3536
|
-
|
|
3537
|
-
},
|
|
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) => {
|
|
3538
3545
|
t(C), x(!1);
|
|
3539
|
-
},
|
|
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", {
|
|
3540
3547
|
year: "numeric",
|
|
3541
3548
|
month: "short",
|
|
3542
3549
|
day: "numeric"
|
|
3543
|
-
}) : "",
|
|
3550
|
+
}) : "", h = M(y);
|
|
3544
3551
|
return /* @__PURE__ */ d("div", { ref: k, className: u("relative w-full", i), children: [
|
|
3545
3552
|
a && /* @__PURE__ */ r("label", { className: "block mb-1.5 text-sm font-medium text-foreground", children: a }),
|
|
3546
3553
|
/* @__PURE__ */ d(
|
|
@@ -3555,13 +3562,13 @@ const Dt = ({
|
|
|
3555
3562
|
"focus:outline-none focus:ring-2 focus:ring-primary",
|
|
3556
3563
|
"disabled:bg-secondary disabled:cursor-not-allowed",
|
|
3557
3564
|
"touch-target",
|
|
3558
|
-
|
|
3559
|
-
!
|
|
3565
|
+
n && "border-error",
|
|
3566
|
+
!n && "border-border",
|
|
3560
3567
|
m && "ring-2 ring-primary"
|
|
3561
3568
|
),
|
|
3562
3569
|
children: [
|
|
3563
|
-
/* @__PURE__ */ r("span", { className: u("truncate", !e && "text-foreground/50"), children: e ?
|
|
3564
|
-
/* @__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" })
|
|
3565
3572
|
]
|
|
3566
3573
|
}
|
|
3567
3574
|
),
|
|
@@ -3579,7 +3586,7 @@ const Dt = ({
|
|
|
3579
3586
|
"button",
|
|
3580
3587
|
{
|
|
3581
3588
|
type: "button",
|
|
3582
|
-
onClick:
|
|
3589
|
+
onClick: I,
|
|
3583
3590
|
className: "p-2 hover:bg-secondary rounded-lg transition-colors",
|
|
3584
3591
|
children: /* @__PURE__ */ r(Pe, { className: "w-5 h-5 text-primary" })
|
|
3585
3592
|
}
|
|
@@ -3593,7 +3600,7 @@ const Dt = ({
|
|
|
3593
3600
|
"button",
|
|
3594
3601
|
{
|
|
3595
3602
|
type: "button",
|
|
3596
|
-
onClick:
|
|
3603
|
+
onClick: T,
|
|
3597
3604
|
className: "p-2 hover:bg-secondary rounded-lg transition-colors",
|
|
3598
3605
|
children: /* @__PURE__ */ r(Ge, { className: "w-5 h-5 text-primary" })
|
|
3599
3606
|
}
|
|
@@ -3607,25 +3614,25 @@ const Dt = ({
|
|
|
3607
3614
|
},
|
|
3608
3615
|
C
|
|
3609
3616
|
)) }),
|
|
3610
|
-
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1", children:
|
|
3617
|
+
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1", children: h.map((C, j) => {
|
|
3611
3618
|
if (!C)
|
|
3612
|
-
return /* @__PURE__ */ r("div", { className: "aspect-square" }, `empty-${
|
|
3613
|
-
const
|
|
3619
|
+
return /* @__PURE__ */ r("div", { className: "aspect-square" }, `empty-${j}`);
|
|
3620
|
+
const $ = z(C, e || null), _ = R(C), V = G(C);
|
|
3614
3621
|
return /* @__PURE__ */ r(
|
|
3615
3622
|
g.button,
|
|
3616
3623
|
{
|
|
3617
3624
|
type: "button",
|
|
3618
|
-
whileTap: { scale:
|
|
3619
|
-
onClick: () => !
|
|
3620
|
-
disabled:
|
|
3625
|
+
whileTap: { scale: V ? 1 : 0.95 },
|
|
3626
|
+
onClick: () => !V && O(C),
|
|
3627
|
+
disabled: V,
|
|
3621
3628
|
className: u(
|
|
3622
3629
|
"aspect-square rounded-lg flex items-center justify-center",
|
|
3623
3630
|
"text-sm font-medium transition-all duration-200",
|
|
3624
3631
|
"hover:bg-secondary",
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
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"
|
|
3629
3636
|
),
|
|
3630
3637
|
children: C.getDate()
|
|
3631
3638
|
},
|
|
@@ -3636,7 +3643,7 @@ const Dt = ({
|
|
|
3636
3643
|
"button",
|
|
3637
3644
|
{
|
|
3638
3645
|
type: "button",
|
|
3639
|
-
onClick: () =>
|
|
3646
|
+
onClick: () => O(/* @__PURE__ */ new Date()),
|
|
3640
3647
|
className: "w-full py-2 text-sm font-medium text-primary hover:bg-secondary rounded-lg transition-colors",
|
|
3641
3648
|
children: "Today"
|
|
3642
3649
|
}
|
|
@@ -3644,13 +3651,13 @@ const Dt = ({
|
|
|
3644
3651
|
]
|
|
3645
3652
|
}
|
|
3646
3653
|
) }),
|
|
3647
|
-
|
|
3654
|
+
n && /* @__PURE__ */ r(
|
|
3648
3655
|
g.p,
|
|
3649
3656
|
{
|
|
3650
3657
|
initial: { opacity: 0, y: -5 },
|
|
3651
3658
|
animate: { opacity: 1, y: 0 },
|
|
3652
3659
|
className: "mt-1.5 text-sm text-error",
|
|
3653
|
-
children:
|
|
3660
|
+
children: n
|
|
3654
3661
|
}
|
|
3655
3662
|
)
|
|
3656
3663
|
] });
|
|
@@ -3659,10 +3666,10 @@ const Dt = ({
|
|
|
3659
3666
|
variant: t = "default",
|
|
3660
3667
|
padding: a = "md",
|
|
3661
3668
|
className: o,
|
|
3662
|
-
onClick:
|
|
3669
|
+
onClick: n,
|
|
3663
3670
|
hover: l = !1
|
|
3664
3671
|
}) => {
|
|
3665
|
-
const
|
|
3672
|
+
const s = {
|
|
3666
3673
|
default: "bg-background border border-border",
|
|
3667
3674
|
outlined: "bg-transparent border-2 border-border-dark",
|
|
3668
3675
|
elevated: "bg-background border-2 border-border shadow-card"
|
|
@@ -3671,23 +3678,23 @@ const Dt = ({
|
|
|
3671
3678
|
sm: "p-3",
|
|
3672
3679
|
md: "p-4 sm:p-6",
|
|
3673
3680
|
lg: "p-6 sm:p-8"
|
|
3674
|
-
}, i =
|
|
3681
|
+
}, i = n ? g.button : g.div;
|
|
3675
3682
|
return /* @__PURE__ */ r(
|
|
3676
3683
|
i,
|
|
3677
3684
|
{
|
|
3678
3685
|
initial: { opacity: 0, y: 20 },
|
|
3679
3686
|
animate: { opacity: 1, y: 0 },
|
|
3680
3687
|
transition: { duration: 0.3 },
|
|
3681
|
-
whileHover: l ||
|
|
3682
|
-
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,
|
|
3683
3690
|
className: u(
|
|
3684
3691
|
"rounded-lg transition-all duration-200",
|
|
3685
|
-
|
|
3692
|
+
s[t],
|
|
3686
3693
|
c[a],
|
|
3687
|
-
|
|
3694
|
+
n && "cursor-pointer w-full text-left",
|
|
3688
3695
|
o
|
|
3689
3696
|
),
|
|
3690
|
-
onClick:
|
|
3697
|
+
onClick: n,
|
|
3691
3698
|
children: e
|
|
3692
3699
|
}
|
|
3693
3700
|
);
|
|
@@ -3696,14 +3703,14 @@ const Dt = ({
|
|
|
3696
3703
|
onClose: t,
|
|
3697
3704
|
children: a,
|
|
3698
3705
|
title: o,
|
|
3699
|
-
position:
|
|
3706
|
+
position: n = "right",
|
|
3700
3707
|
className: l
|
|
3701
3708
|
}) => (Z(() => {
|
|
3702
|
-
const
|
|
3709
|
+
const s = (c) => {
|
|
3703
3710
|
c.key === "Escape" && t();
|
|
3704
3711
|
};
|
|
3705
|
-
return e && (document.addEventListener("keydown",
|
|
3706
|
-
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";
|
|
3707
3714
|
};
|
|
3708
3715
|
}, [e, t]), /* @__PURE__ */ r(Q, { children: e && /* @__PURE__ */ d(ae, { children: [
|
|
3709
3716
|
/* @__PURE__ */ r(
|
|
@@ -3720,13 +3727,13 @@ const Dt = ({
|
|
|
3720
3727
|
/* @__PURE__ */ d(
|
|
3721
3728
|
g.div,
|
|
3722
3729
|
{
|
|
3723
|
-
initial: { x:
|
|
3730
|
+
initial: { x: n === "left" ? "-100%" : "100%" },
|
|
3724
3731
|
animate: { x: 0 },
|
|
3725
|
-
exit: { x:
|
|
3732
|
+
exit: { x: n === "left" ? "-100%" : "100%" },
|
|
3726
3733
|
transition: { type: "spring", damping: 30, stiffness: 300 },
|
|
3727
3734
|
className: u(
|
|
3728
3735
|
"fixed top-0 z-50 h-full w-[400px] sm:w-[480px] bg-background shadow-xl",
|
|
3729
|
-
|
|
3736
|
+
n === "left" ? "left-0 border-r" : "right-0 border-l",
|
|
3730
3737
|
"border-border",
|
|
3731
3738
|
l
|
|
3732
3739
|
),
|
|
@@ -3739,7 +3746,7 @@ const Dt = ({
|
|
|
3739
3746
|
onClick: t,
|
|
3740
3747
|
className: "p-2 rounded-lg hover:bg-secondary transition-colors",
|
|
3741
3748
|
"aria-label": "Close drawer",
|
|
3742
|
-
children: /* @__PURE__ */ r(
|
|
3749
|
+
children: /* @__PURE__ */ r(H, { className: "w-5 h-5" })
|
|
3743
3750
|
}
|
|
3744
3751
|
)
|
|
3745
3752
|
] }),
|
|
@@ -3752,10 +3759,10 @@ const Dt = ({
|
|
|
3752
3759
|
onClose: t,
|
|
3753
3760
|
children: a,
|
|
3754
3761
|
title: o,
|
|
3755
|
-
size:
|
|
3762
|
+
size: n = "md",
|
|
3756
3763
|
className: l
|
|
3757
3764
|
}) => {
|
|
3758
|
-
const
|
|
3765
|
+
const s = Y(null);
|
|
3759
3766
|
Z(() => {
|
|
3760
3767
|
const i = (m) => {
|
|
3761
3768
|
m.key === "Escape" && t();
|
|
@@ -3781,14 +3788,14 @@ const Dt = ({
|
|
|
3781
3788
|
children: /* @__PURE__ */ d(
|
|
3782
3789
|
g.div,
|
|
3783
3790
|
{
|
|
3784
|
-
ref:
|
|
3791
|
+
ref: s,
|
|
3785
3792
|
initial: { opacity: 0, scale: 0.95 },
|
|
3786
3793
|
animate: { opacity: 1, scale: 1 },
|
|
3787
3794
|
exit: { opacity: 0, scale: 0.95 },
|
|
3788
3795
|
transition: { duration: 0.2 },
|
|
3789
3796
|
className: u(
|
|
3790
3797
|
"bg-background border border-border rounded-lg shadow-2xl w-full max-h-[90vh] overflow-hidden flex flex-col",
|
|
3791
|
-
c[
|
|
3798
|
+
c[n],
|
|
3792
3799
|
l
|
|
3793
3800
|
),
|
|
3794
3801
|
children: [
|
|
@@ -3800,7 +3807,7 @@ const Dt = ({
|
|
|
3800
3807
|
onClick: t,
|
|
3801
3808
|
className: "p-2 rounded-lg hover:bg-secondary transition-colors",
|
|
3802
3809
|
"aria-label": "Close modal",
|
|
3803
|
-
children: /* @__PURE__ */ r(
|
|
3810
|
+
children: /* @__PURE__ */ r(H, { className: "w-5 h-5" })
|
|
3804
3811
|
}
|
|
3805
3812
|
)
|
|
3806
3813
|
] }),
|
|
@@ -3821,7 +3828,7 @@ const Dt = ({
|
|
|
3821
3828
|
onClose: t,
|
|
3822
3829
|
title: a,
|
|
3823
3830
|
children: o,
|
|
3824
|
-
showCloseButton:
|
|
3831
|
+
showCloseButton: n = !0,
|
|
3825
3832
|
className: l
|
|
3826
3833
|
}) => (Z(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
3827
3834
|
document.body.style.overflow = "unset";
|
|
@@ -3851,14 +3858,14 @@ const Dt = ({
|
|
|
3851
3858
|
),
|
|
3852
3859
|
children: [
|
|
3853
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" }) }),
|
|
3854
|
-
(a ||
|
|
3861
|
+
(a || n) && /* @__PURE__ */ d("div", { className: "flex items-center justify-between px-6 py-4 border-b border-border", children: [
|
|
3855
3862
|
a && /* @__PURE__ */ r("h2", { className: "text-lg font-semibold text-foreground", children: a }),
|
|
3856
|
-
|
|
3863
|
+
n && /* @__PURE__ */ r(
|
|
3857
3864
|
"button",
|
|
3858
3865
|
{
|
|
3859
3866
|
onClick: t,
|
|
3860
3867
|
className: "p-2 rounded-full hover:bg-secondary transition-colors",
|
|
3861
|
-
children: /* @__PURE__ */ r(
|
|
3868
|
+
children: /* @__PURE__ */ r(H, { className: "w-5 h-5 text-primary" })
|
|
3862
3869
|
}
|
|
3863
3870
|
)
|
|
3864
3871
|
] }),
|
|
@@ -3872,18 +3879,18 @@ function Vt({
|
|
|
3872
3879
|
columns: t,
|
|
3873
3880
|
loading: a = !1,
|
|
3874
3881
|
onRowClick: o,
|
|
3875
|
-
keyExtractor:
|
|
3882
|
+
keyExtractor: n,
|
|
3876
3883
|
className: l
|
|
3877
3884
|
}) {
|
|
3878
|
-
const [
|
|
3879
|
-
|
|
3880
|
-
}, y =
|
|
3881
|
-
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];
|
|
3882
3889
|
return w < v ? i === "asc" ? -1 : 1 : w > v ? i === "asc" ? 1 : -1 : 0;
|
|
3883
3890
|
}) : e;
|
|
3884
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: [
|
|
3885
|
-
/* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((
|
|
3886
|
-
/* @__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)) })
|
|
3887
3894
|
] }) }) }) : /* @__PURE__ */ r(
|
|
3888
3895
|
g.div,
|
|
3889
3896
|
{
|
|
@@ -3892,29 +3899,29 @@ function Vt({
|
|
|
3892
3899
|
transition: { duration: 0.3 },
|
|
3893
3900
|
className: u("border border-border rounded-lg overflow-hidden", l),
|
|
3894
3901
|
children: /* @__PURE__ */ r("div", { className: "overflow-x-auto", children: /* @__PURE__ */ d("table", { className: "w-full", children: [
|
|
3895
|
-
/* @__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(
|
|
3896
3903
|
"th",
|
|
3897
3904
|
{
|
|
3898
3905
|
className: u(
|
|
3899
3906
|
"px-6 py-4 text-left text-sm font-semibold text-foreground",
|
|
3900
|
-
|
|
3901
|
-
|
|
3907
|
+
f.width,
|
|
3908
|
+
f.sortable && "cursor-pointer transition-colors"
|
|
3902
3909
|
),
|
|
3903
|
-
onClick: () =>
|
|
3910
|
+
onClick: () => f.sortable && x(f.key),
|
|
3904
3911
|
children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
3905
|
-
|
|
3906
|
-
|
|
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" }) })
|
|
3907
3914
|
] })
|
|
3908
3915
|
},
|
|
3909
3916
|
k
|
|
3910
3917
|
)) }) }),
|
|
3911
|
-
/* @__PURE__ */ r("tbody", { children: y.map((
|
|
3918
|
+
/* @__PURE__ */ r("tbody", { children: y.map((f, k) => /* @__PURE__ */ r(
|
|
3912
3919
|
g.tr,
|
|
3913
3920
|
{
|
|
3914
3921
|
initial: { opacity: 0, y: 10 },
|
|
3915
3922
|
animate: { opacity: 1, y: 0 },
|
|
3916
3923
|
transition: { duration: 0.2, delay: k * 0.05 },
|
|
3917
|
-
onClick: () => o && o(
|
|
3924
|
+
onClick: () => o && o(f),
|
|
3918
3925
|
className: u(
|
|
3919
3926
|
"border-b border-border transition-colors",
|
|
3920
3927
|
o && "cursor-pointer hover:bg-secondary"
|
|
@@ -3927,13 +3934,13 @@ function Vt({
|
|
|
3927
3934
|
w.width
|
|
3928
3935
|
),
|
|
3929
3936
|
style: w.width ? { width: w.width } : void 0,
|
|
3930
|
-
title: w.truncate && !w.render ? String(
|
|
3931
|
-
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] ?? "")
|
|
3932
3939
|
},
|
|
3933
3940
|
v
|
|
3934
3941
|
))
|
|
3935
3942
|
},
|
|
3936
|
-
|
|
3943
|
+
n(f)
|
|
3937
3944
|
)) })
|
|
3938
3945
|
] }) })
|
|
3939
3946
|
}
|
|
@@ -3944,7 +3951,7 @@ const Wt = ({
|
|
|
3944
3951
|
totalPages: t,
|
|
3945
3952
|
onPageChange: a,
|
|
3946
3953
|
totalItems: o,
|
|
3947
|
-
itemsPerPage:
|
|
3954
|
+
itemsPerPage: n,
|
|
3948
3955
|
className: l
|
|
3949
3956
|
}) => {
|
|
3950
3957
|
const c = Array.from({ length: t }, (i, m) => m + 1).slice(
|
|
@@ -3959,12 +3966,12 @@ const Wt = ({
|
|
|
3959
3966
|
transition: { duration: 0.3 },
|
|
3960
3967
|
className: u("flex items-center justify-between gap-4 flex-wrap", l),
|
|
3961
3968
|
children: [
|
|
3962
|
-
/* @__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: [
|
|
3963
3970
|
"Showing ",
|
|
3964
|
-
Math.min((e - 1) *
|
|
3971
|
+
Math.min((e - 1) * n + 1, o),
|
|
3965
3972
|
" to",
|
|
3966
3973
|
" ",
|
|
3967
|
-
Math.min(e *
|
|
3974
|
+
Math.min(e * n, o),
|
|
3968
3975
|
" of ",
|
|
3969
3976
|
o,
|
|
3970
3977
|
" results"
|
|
@@ -4038,24 +4045,24 @@ const Wt = ({
|
|
|
4038
4045
|
]
|
|
4039
4046
|
}
|
|
4040
4047
|
);
|
|
4041
|
-
},
|
|
4048
|
+
}, ht = ({
|
|
4042
4049
|
icon: e,
|
|
4043
4050
|
onClick: t,
|
|
4044
4051
|
label: a,
|
|
4045
4052
|
actions: o,
|
|
4046
|
-
variant:
|
|
4053
|
+
variant: n = "primary",
|
|
4047
4054
|
position: l = "bottom-right",
|
|
4048
|
-
disabled:
|
|
4055
|
+
disabled: s,
|
|
4049
4056
|
className: c
|
|
4050
4057
|
}) => {
|
|
4051
|
-
const [i, m] =
|
|
4058
|
+
const [i, m] = L(!1), x = {
|
|
4052
4059
|
"bottom-right": "fixed bottom-6 right-6",
|
|
4053
4060
|
"bottom-left": "fixed bottom-6 left-6",
|
|
4054
4061
|
"bottom-center": "fixed bottom-6 left-1/2 -translate-x-1/2"
|
|
4055
4062
|
}, y = {
|
|
4056
4063
|
primary: "bg-primary text-white hover:bg-primary-dark shadow-lg",
|
|
4057
4064
|
secondary: "bg-background text-primary border-2 border-primary hover:bg-secondary shadow-md"
|
|
4058
|
-
},
|
|
4065
|
+
}, f = {
|
|
4059
4066
|
primary: "bg-primary text-white",
|
|
4060
4067
|
success: "bg-success text-white",
|
|
4061
4068
|
danger: "bg-error text-white",
|
|
@@ -4101,7 +4108,7 @@ const Wt = ({
|
|
|
4101
4108
|
},
|
|
4102
4109
|
className: u(
|
|
4103
4110
|
"w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all",
|
|
4104
|
-
|
|
4111
|
+
f[w.variant || "primary"]
|
|
4105
4112
|
),
|
|
4106
4113
|
children: w.icon
|
|
4107
4114
|
}
|
|
@@ -4115,34 +4122,34 @@ const Wt = ({
|
|
|
4115
4122
|
/* @__PURE__ */ d(
|
|
4116
4123
|
g.button,
|
|
4117
4124
|
{
|
|
4118
|
-
whileTap: { scale:
|
|
4119
|
-
whileHover: { scale:
|
|
4125
|
+
whileTap: { scale: s ? 1 : 0.9 },
|
|
4126
|
+
whileHover: { scale: s ? 1 : 1.05 },
|
|
4120
4127
|
onClick: k,
|
|
4121
|
-
disabled:
|
|
4128
|
+
disabled: s,
|
|
4122
4129
|
className: u(
|
|
4123
4130
|
"z-30 rounded-full p-4 transition-all duration-200",
|
|
4124
4131
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4125
4132
|
"flex items-center gap-2",
|
|
4126
|
-
y[
|
|
4133
|
+
y[n],
|
|
4127
4134
|
a ? "px-6" : "w-16 h-16 justify-center",
|
|
4128
4135
|
i && "rotate-45"
|
|
4129
4136
|
),
|
|
4130
4137
|
children: [
|
|
4131
|
-
/* @__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" })) }),
|
|
4132
4139
|
a && /* @__PURE__ */ r("span", { className: "font-medium", children: a })
|
|
4133
4140
|
]
|
|
4134
4141
|
}
|
|
4135
4142
|
)
|
|
4136
4143
|
] });
|
|
4137
|
-
}, Yt =
|
|
4144
|
+
}, Yt = ht, Ht = ({
|
|
4138
4145
|
steps: e,
|
|
4139
4146
|
currentStep: t,
|
|
4140
4147
|
className: a
|
|
4141
4148
|
}) => {
|
|
4142
4149
|
const o = e[t];
|
|
4143
4150
|
return /* @__PURE__ */ d("div", { className: u("w-full", a), children: [
|
|
4144
|
-
/* @__PURE__ */ r("div", { className: "hidden md:block", children: /* @__PURE__ */ r("div", { className: "relative flex items-center mb-2", children: e.map((
|
|
4145
|
-
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;
|
|
4146
4153
|
return /* @__PURE__ */ d(Le.Fragment, { children: [
|
|
4147
4154
|
/* @__PURE__ */ d("div", { className: "flex flex-col items-center relative z-10", children: [
|
|
4148
4155
|
/* @__PURE__ */ r(
|
|
@@ -4156,10 +4163,10 @@ const Wt = ({
|
|
|
4156
4163
|
"w-12 h-12 rounded-full flex items-center justify-center",
|
|
4157
4164
|
"font-semibold text-base transition-all duration-300",
|
|
4158
4165
|
"ring-4 ring-white",
|
|
4159
|
-
(
|
|
4166
|
+
(s || c) && "bg-primary text-white shadow-lg",
|
|
4160
4167
|
i && "bg-border text-muted-foreground"
|
|
4161
4168
|
),
|
|
4162
|
-
children:
|
|
4169
|
+
children: s ? /* @__PURE__ */ r(Oe, { className: "w-6 h-6 stroke-[3]" }) : /* @__PURE__ */ r("span", { children: l + 1 })
|
|
4163
4170
|
}
|
|
4164
4171
|
),
|
|
4165
4172
|
/* @__PURE__ */ d("div", { className: "mt-3 text-center max-w-[120px]", children: [
|
|
@@ -4169,22 +4176,22 @@ const Wt = ({
|
|
|
4169
4176
|
className: u(
|
|
4170
4177
|
"text-sm font-semibold block",
|
|
4171
4178
|
c && "text-primary",
|
|
4172
|
-
|
|
4179
|
+
s && "text-primary",
|
|
4173
4180
|
i && "text-primary/50"
|
|
4174
4181
|
),
|
|
4175
|
-
children:
|
|
4182
|
+
children: n.label
|
|
4176
4183
|
}
|
|
4177
4184
|
),
|
|
4178
|
-
|
|
4185
|
+
n.description && /* @__PURE__ */ r(
|
|
4179
4186
|
"p",
|
|
4180
4187
|
{
|
|
4181
4188
|
className: u(
|
|
4182
4189
|
"text-xs mt-1 leading-tight",
|
|
4183
4190
|
c && "text-primary",
|
|
4184
|
-
|
|
4191
|
+
s && "text-primary/70",
|
|
4185
4192
|
i && "text-primary/50"
|
|
4186
4193
|
),
|
|
4187
|
-
children:
|
|
4194
|
+
children: n.description
|
|
4188
4195
|
}
|
|
4189
4196
|
)
|
|
4190
4197
|
] })
|
|
@@ -4203,20 +4210,20 @@ const Wt = ({
|
|
|
4203
4210
|
] }, l);
|
|
4204
4211
|
}) }) }),
|
|
4205
4212
|
/* @__PURE__ */ d("div", { className: "md:hidden", children: [
|
|
4206
|
-
/* @__PURE__ */ r("div", { className: "flex items-center justify-center gap-2 mb-3", children: e.map((
|
|
4207
|
-
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;
|
|
4208
4215
|
return /* @__PURE__ */ r(
|
|
4209
4216
|
g.div,
|
|
4210
4217
|
{
|
|
4211
4218
|
initial: !1,
|
|
4212
4219
|
animate: {
|
|
4213
4220
|
scale: c ? 1.2 : 1,
|
|
4214
|
-
backgroundColor:
|
|
4221
|
+
backgroundColor: s || c ? "var(--color-primary)" : "var(--color-border-dark)"
|
|
4215
4222
|
},
|
|
4216
4223
|
className: u(
|
|
4217
4224
|
"rounded-full transition-all duration-300",
|
|
4218
4225
|
c ? "w-3 h-3" : "w-2 h-2",
|
|
4219
|
-
(
|
|
4226
|
+
(s || c) && "shadow-sm"
|
|
4220
4227
|
)
|
|
4221
4228
|
},
|
|
4222
4229
|
l
|
|
@@ -4240,7 +4247,7 @@ const Wt = ({
|
|
|
4240
4247
|
variant: t = "default",
|
|
4241
4248
|
size: a = "md",
|
|
4242
4249
|
className: o,
|
|
4243
|
-
dot:
|
|
4250
|
+
dot: n = !1
|
|
4244
4251
|
}) => {
|
|
4245
4252
|
const l = {
|
|
4246
4253
|
default: "bg-secondary text-primary border border-border",
|
|
@@ -4249,7 +4256,7 @@ const Wt = ({
|
|
|
4249
4256
|
warning: "bg-warning/10 text-warning border border-warning/20",
|
|
4250
4257
|
danger: "bg-error/10 text-error border border-error/20",
|
|
4251
4258
|
info: "bg-info/10 text-info border border-info/20"
|
|
4252
|
-
},
|
|
4259
|
+
}, s = {
|
|
4253
4260
|
sm: "px-2 py-0.5 text-xs",
|
|
4254
4261
|
md: "px-2.5 py-1 text-sm",
|
|
4255
4262
|
lg: "px-3 py-1.5 text-base"
|
|
@@ -4270,11 +4277,11 @@ const Wt = ({
|
|
|
4270
4277
|
className: u(
|
|
4271
4278
|
"inline-flex items-center gap-1.5 rounded-lg font-medium",
|
|
4272
4279
|
l[t],
|
|
4273
|
-
|
|
4280
|
+
s[a],
|
|
4274
4281
|
o
|
|
4275
4282
|
),
|
|
4276
4283
|
children: [
|
|
4277
|
-
|
|
4284
|
+
n && /* @__PURE__ */ r("span", { className: u("w-1.5 h-1.5 rounded-full", c[t]) }),
|
|
4278
4285
|
e
|
|
4279
4286
|
]
|
|
4280
4287
|
}
|
|
@@ -4303,7 +4310,7 @@ const Wt = ({
|
|
|
4303
4310
|
count: t,
|
|
4304
4311
|
className: a
|
|
4305
4312
|
}) => {
|
|
4306
|
-
const
|
|
4313
|
+
const n = {
|
|
4307
4314
|
synced: {
|
|
4308
4315
|
icon: /* @__PURE__ */ r(Te, { className: "w-4 h-4" }),
|
|
4309
4316
|
label: "Synced",
|
|
@@ -4333,12 +4340,12 @@ const Wt = ({
|
|
|
4333
4340
|
className: u(
|
|
4334
4341
|
"inline-flex items-center gap-2 px-3 py-1.5 rounded-full",
|
|
4335
4342
|
"text-sm font-medium shadow-sm",
|
|
4336
|
-
|
|
4343
|
+
n.color,
|
|
4337
4344
|
a
|
|
4338
4345
|
),
|
|
4339
4346
|
children: [
|
|
4340
|
-
|
|
4341
|
-
/* @__PURE__ */ r("span", { children:
|
|
4347
|
+
n.icon,
|
|
4348
|
+
/* @__PURE__ */ r("span", { children: n.label })
|
|
4342
4349
|
]
|
|
4343
4350
|
}
|
|
4344
4351
|
);
|
|
@@ -4403,7 +4410,7 @@ const Ze = er(void 0), Kt = () => {
|
|
|
4403
4410
|
"bottom-center": "bottom-4 left-1/2 -translate-x-1/2",
|
|
4404
4411
|
"bottom-right": "bottom-4 right-4"
|
|
4405
4412
|
}, kt = ({ toast: e, onRemove: t }) => {
|
|
4406
|
-
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);
|
|
4407
4414
|
return /* @__PURE__ */ d(
|
|
4408
4415
|
g.div,
|
|
4409
4416
|
{
|
|
@@ -4419,7 +4426,7 @@ const Ze = er(void 0), Kt = () => {
|
|
|
4419
4426
|
children: [
|
|
4420
4427
|
o && /* @__PURE__ */ r(o, { className: "w-5 h-5 flex-shrink-0 mt-0.5" }),
|
|
4421
4428
|
/* @__PURE__ */ d("div", { className: "flex-1 min-w-0", children: [
|
|
4422
|
-
/* @__PURE__ */ r("p", { className: "text-sm font-medium leading-relaxed", children:
|
|
4429
|
+
/* @__PURE__ */ r("p", { className: "text-sm font-medium leading-relaxed", children: n }),
|
|
4423
4430
|
e.action && /* @__PURE__ */ r(
|
|
4424
4431
|
"button",
|
|
4425
4432
|
{
|
|
@@ -4435,7 +4442,7 @@ const Ze = er(void 0), Kt = () => {
|
|
|
4435
4442
|
onClick: () => t(e.id),
|
|
4436
4443
|
className: "flex-shrink-0 hover:opacity-70 transition-opacity",
|
|
4437
4444
|
"aria-label": "Close notification",
|
|
4438
|
-
children: /* @__PURE__ */ r(
|
|
4445
|
+
children: /* @__PURE__ */ r(H, { className: "w-4 h-4" })
|
|
4439
4446
|
}
|
|
4440
4447
|
)
|
|
4441
4448
|
]
|
|
@@ -4446,22 +4453,22 @@ const Ze = er(void 0), Kt = () => {
|
|
|
4446
4453
|
position: t = "top-right",
|
|
4447
4454
|
maxToasts: a = 5
|
|
4448
4455
|
}) => {
|
|
4449
|
-
const [o,
|
|
4450
|
-
|
|
4451
|
-
}, []),
|
|
4456
|
+
const [o, n] = L([]), l = ze((c) => {
|
|
4457
|
+
n((i) => i.filter((m) => m.id !== c));
|
|
4458
|
+
}, []), s = ze(
|
|
4452
4459
|
(c) => {
|
|
4453
4460
|
if (typeof c.message != "string") {
|
|
4454
4461
|
console.error("Toast message must be a string, received:", c.message);
|
|
4455
4462
|
return;
|
|
4456
4463
|
}
|
|
4457
4464
|
const i = Math.random().toString(36).substring(2, 9), m = c.duration ?? 5e3;
|
|
4458
|
-
|
|
4465
|
+
n((x) => [...x, { ...c, id: i }].slice(-a)), m > 0 && setTimeout(() => {
|
|
4459
4466
|
l(i);
|
|
4460
4467
|
}, m);
|
|
4461
4468
|
},
|
|
4462
4469
|
[a, l]
|
|
4463
4470
|
);
|
|
4464
|
-
return /* @__PURE__ */ d(Ze.Provider, { value: { toasts: o, addToast:
|
|
4471
|
+
return /* @__PURE__ */ d(Ze.Provider, { value: { toasts: o, addToast: s, removeToast: l }, children: [
|
|
4465
4472
|
e,
|
|
4466
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)) }) })
|
|
4467
4474
|
] });
|
|
@@ -4472,10 +4479,10 @@ const Xt = ({
|
|
|
4472
4479
|
onRemove: t,
|
|
4473
4480
|
preview: a,
|
|
4474
4481
|
label: o = "Take Photo",
|
|
4475
|
-
disabled:
|
|
4482
|
+
disabled: n,
|
|
4476
4483
|
className: l
|
|
4477
4484
|
}) => {
|
|
4478
|
-
const
|
|
4485
|
+
const s = Y(null), c = (i) => {
|
|
4479
4486
|
const m = i.target.files?.[0];
|
|
4480
4487
|
m && e(m);
|
|
4481
4488
|
};
|
|
@@ -4495,16 +4502,16 @@ const Xt = ({
|
|
|
4495
4502
|
{
|
|
4496
4503
|
onClick: t,
|
|
4497
4504
|
className: "absolute top-2 right-2 p-2 bg-error text-white rounded-full shadow-lg hover:bg-red-600",
|
|
4498
|
-
children: /* @__PURE__ */ r(
|
|
4505
|
+
children: /* @__PURE__ */ r(H, { className: "w-4 h-4" })
|
|
4499
4506
|
}
|
|
4500
4507
|
)
|
|
4501
4508
|
] }) : /* @__PURE__ */ d(
|
|
4502
4509
|
g.button,
|
|
4503
4510
|
{
|
|
4504
4511
|
type: "button",
|
|
4505
|
-
whileTap: { scale:
|
|
4506
|
-
onClick: () =>
|
|
4507
|
-
disabled:
|
|
4512
|
+
whileTap: { scale: n ? 1 : 0.98 },
|
|
4513
|
+
onClick: () => s.current?.click(),
|
|
4514
|
+
disabled: n,
|
|
4508
4515
|
className: u(
|
|
4509
4516
|
"w-full p-4 rounded-lg border-2 border-border",
|
|
4510
4517
|
"flex items-center justify-center gap-3",
|
|
@@ -4521,13 +4528,13 @@ const Xt = ({
|
|
|
4521
4528
|
/* @__PURE__ */ r(
|
|
4522
4529
|
"input",
|
|
4523
4530
|
{
|
|
4524
|
-
ref:
|
|
4531
|
+
ref: s,
|
|
4525
4532
|
type: "file",
|
|
4526
4533
|
accept: "image/*",
|
|
4527
4534
|
capture: "environment",
|
|
4528
4535
|
onChange: c,
|
|
4529
4536
|
className: "hidden",
|
|
4530
|
-
disabled:
|
|
4537
|
+
disabled: n
|
|
4531
4538
|
}
|
|
4532
4539
|
)
|
|
4533
4540
|
] });
|
|
@@ -4536,10 +4543,10 @@ const Xt = ({
|
|
|
4536
4543
|
accept: t = "*/*",
|
|
4537
4544
|
multiple: a = !1,
|
|
4538
4545
|
label: o = "Upload Files",
|
|
4539
|
-
disabled:
|
|
4546
|
+
disabled: n,
|
|
4540
4547
|
className: l
|
|
4541
4548
|
}) => {
|
|
4542
|
-
const
|
|
4549
|
+
const s = Y(null), c = (i) => {
|
|
4543
4550
|
i && e(Array.from(i));
|
|
4544
4551
|
};
|
|
4545
4552
|
return /* @__PURE__ */ d("div", { className: u("w-full", l), children: [
|
|
@@ -4548,9 +4555,9 @@ const Xt = ({
|
|
|
4548
4555
|
g.button,
|
|
4549
4556
|
{
|
|
4550
4557
|
type: "button",
|
|
4551
|
-
whileTap: { scale:
|
|
4552
|
-
onClick: () => !
|
|
4553
|
-
disabled:
|
|
4558
|
+
whileTap: { scale: n ? 1 : 0.98 },
|
|
4559
|
+
onClick: () => !n && s.current?.click(),
|
|
4560
|
+
disabled: n,
|
|
4554
4561
|
className: u(
|
|
4555
4562
|
"w-full p-4 rounded-lg border-2 border-border",
|
|
4556
4563
|
"flex items-center justify-center gap-3",
|
|
@@ -4559,7 +4566,7 @@ const Xt = ({
|
|
|
4559
4566
|
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
4560
4567
|
),
|
|
4561
4568
|
children: [
|
|
4562
|
-
/* @__PURE__ */ r(
|
|
4569
|
+
/* @__PURE__ */ r(fr, { className: "w-6 h-6 text-primary" }),
|
|
4563
4570
|
/* @__PURE__ */ r("span", { className: "font-medium text-foreground", children: a ? "Upload Files" : "Upload File" })
|
|
4564
4571
|
]
|
|
4565
4572
|
}
|
|
@@ -4567,13 +4574,13 @@ const Xt = ({
|
|
|
4567
4574
|
/* @__PURE__ */ r(
|
|
4568
4575
|
"input",
|
|
4569
4576
|
{
|
|
4570
|
-
ref:
|
|
4577
|
+
ref: s,
|
|
4571
4578
|
type: "file",
|
|
4572
4579
|
accept: t,
|
|
4573
4580
|
multiple: a,
|
|
4574
4581
|
onChange: (i) => c(i.target.files),
|
|
4575
4582
|
className: "hidden",
|
|
4576
|
-
disabled:
|
|
4583
|
+
disabled: n
|
|
4577
4584
|
}
|
|
4578
4585
|
)
|
|
4579
4586
|
] });
|
|
@@ -4583,37 +4590,37 @@ const Xt = ({
|
|
|
4583
4590
|
maxDuration: a = 300,
|
|
4584
4591
|
// 5 minutes default
|
|
4585
4592
|
disabled: o,
|
|
4586
|
-
className:
|
|
4593
|
+
className: n
|
|
4587
4594
|
}) => {
|
|
4588
|
-
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 () => {
|
|
4589
4596
|
try {
|
|
4590
|
-
const
|
|
4591
|
-
k.current =
|
|
4592
|
-
|
|
4593
|
-
},
|
|
4594
|
-
const
|
|
4595
|
-
|
|
4596
|
-
},
|
|
4597
|
-
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);
|
|
4598
4605
|
}, 1e3);
|
|
4599
|
-
} catch (
|
|
4600
|
-
console.error("Error accessing microphone:",
|
|
4606
|
+
} catch (R) {
|
|
4607
|
+
console.error("Error accessing microphone:", R);
|
|
4601
4608
|
}
|
|
4602
|
-
},
|
|
4609
|
+
}, I = () => {
|
|
4603
4610
|
k.current?.state === "recording" && (k.current.pause(), i(!0), v.current && clearInterval(v.current));
|
|
4604
|
-
},
|
|
4611
|
+
}, T = () => {
|
|
4605
4612
|
k.current?.state === "paused" && (k.current.resume(), i(!1), v.current = setInterval(() => {
|
|
4606
|
-
x((
|
|
4613
|
+
x((R) => Math.min(R + 1, a));
|
|
4607
4614
|
}, 1e3));
|
|
4608
|
-
},
|
|
4609
|
-
k.current && (k.current.stop(),
|
|
4610
|
-
},
|
|
4611
|
-
|
|
4612
|
-
},
|
|
4613
|
-
const
|
|
4614
|
-
return `${
|
|
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")}`;
|
|
4615
4622
|
};
|
|
4616
|
-
return /* @__PURE__ */ d("div", { className: u("w-full",
|
|
4623
|
+
return /* @__PURE__ */ d("div", { className: u("w-full", n), children: [
|
|
4617
4624
|
t && /* @__PURE__ */ r("label", { className: "block mb-2 text-sm font-medium text-primary", children: t }),
|
|
4618
4625
|
/* @__PURE__ */ d("div", { className: "p-4 md:p-6 bg-background rounded-lg border-2 border-border space-y-4", children: [
|
|
4619
4626
|
!y && /* @__PURE__ */ d("div", { className: "flex flex-col items-center gap-4", children: [
|
|
@@ -4623,7 +4630,7 @@ const Xt = ({
|
|
|
4623
4630
|
{
|
|
4624
4631
|
type: "button",
|
|
4625
4632
|
whileTap: { scale: o ? 1 : 0.95 },
|
|
4626
|
-
onClick: l ? c ?
|
|
4633
|
+
onClick: l ? c ? T : I : M,
|
|
4627
4634
|
disabled: o,
|
|
4628
4635
|
className: u(
|
|
4629
4636
|
"w-16 h-16 md:w-20 md:h-20 rounded-full flex items-center justify-center",
|
|
@@ -4631,7 +4638,7 @@ const Xt = ({
|
|
|
4631
4638
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4632
4639
|
l ? "bg-warning text-white animate-pulse" : "bg-primary text-white hover:bg-primary-dark"
|
|
4633
4640
|
),
|
|
4634
|
-
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" })
|
|
4635
4642
|
}
|
|
4636
4643
|
),
|
|
4637
4644
|
l && !c && /* @__PURE__ */ r(
|
|
@@ -4644,7 +4651,7 @@ const Xt = ({
|
|
|
4644
4651
|
)
|
|
4645
4652
|
] }),
|
|
4646
4653
|
/* @__PURE__ */ d("div", { className: "text-center", children: [
|
|
4647
|
-
/* @__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) }),
|
|
4648
4655
|
/* @__PURE__ */ r("p", { className: "text-xs md:text-sm text-primary/70 mt-1", children: l ? c ? "Paused" : "Recording..." : "Tap to record" })
|
|
4649
4656
|
] }),
|
|
4650
4657
|
l && /* @__PURE__ */ d(
|
|
@@ -4653,7 +4660,7 @@ const Xt = ({
|
|
|
4653
4660
|
initial: { opacity: 0, scale: 0.8 },
|
|
4654
4661
|
animate: { opacity: 1, scale: 1 },
|
|
4655
4662
|
type: "button",
|
|
4656
|
-
onClick:
|
|
4663
|
+
onClick: O,
|
|
4657
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",
|
|
4658
4665
|
children: [
|
|
4659
4666
|
/* @__PURE__ */ r(xr, { className: "w-4 h-4" }),
|
|
@@ -4673,13 +4680,13 @@ const Xt = ({
|
|
|
4673
4680
|
/* @__PURE__ */ d("div", { className: "flex items-center justify-between", children: [
|
|
4674
4681
|
/* @__PURE__ */ d("span", { className: "text-sm text-primary/70", children: [
|
|
4675
4682
|
"Duration: ",
|
|
4676
|
-
|
|
4683
|
+
z(m)
|
|
4677
4684
|
] }),
|
|
4678
4685
|
/* @__PURE__ */ d(
|
|
4679
4686
|
"button",
|
|
4680
4687
|
{
|
|
4681
4688
|
type: "button",
|
|
4682
|
-
onClick:
|
|
4689
|
+
onClick: G,
|
|
4683
4690
|
className: "flex items-center gap-2 px-3 py-1.5 text-sm text-error hover:bg-red-50 rounded-lg transition-colors",
|
|
4684
4691
|
children: [
|
|
4685
4692
|
/* @__PURE__ */ r(wr, { className: "w-4 h-4" }),
|
|
@@ -4698,13 +4705,13 @@ const Xt = ({
|
|
|
4698
4705
|
onRemove: t,
|
|
4699
4706
|
onView: a,
|
|
4700
4707
|
columns: o = 3,
|
|
4701
|
-
className:
|
|
4708
|
+
className: n
|
|
4702
4709
|
}) => {
|
|
4703
4710
|
const l = {
|
|
4704
4711
|
2: "grid-cols-2",
|
|
4705
4712
|
3: "grid-cols-3",
|
|
4706
4713
|
4: "grid-cols-4"
|
|
4707
|
-
},
|
|
4714
|
+
}, s = (i) => {
|
|
4708
4715
|
if (!i) return "";
|
|
4709
4716
|
const m = i / 1024;
|
|
4710
4717
|
return m < 1024 ? `${m.toFixed(1)} KB` : `${(m / 1024).toFixed(1)} MB`;
|
|
@@ -4718,7 +4725,7 @@ const Xt = ({
|
|
|
4718
4725
|
return /* @__PURE__ */ r(vr, { className: "w-8 h-8 text-primary" });
|
|
4719
4726
|
}
|
|
4720
4727
|
};
|
|
4721
|
-
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(
|
|
4722
4729
|
g.div,
|
|
4723
4730
|
{
|
|
4724
4731
|
initial: { opacity: 0, scale: 0.8 },
|
|
@@ -4758,12 +4765,12 @@ const Xt = ({
|
|
|
4758
4765
|
onClick: (m) => {
|
|
4759
4766
|
m.stopPropagation(), t(i.id);
|
|
4760
4767
|
},
|
|
4761
|
-
children: /* @__PURE__ */ r(
|
|
4768
|
+
children: /* @__PURE__ */ r(H, { className: "w-4 h-4" })
|
|
4762
4769
|
}
|
|
4763
4770
|
),
|
|
4764
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: [
|
|
4765
4772
|
/* @__PURE__ */ r("p", { className: "truncate", children: i.name }),
|
|
4766
|
-
/* @__PURE__ */ r("p", { className: "text-white/70", children:
|
|
4773
|
+
/* @__PURE__ */ r("p", { className: "text-white/70", children: s(i.size) })
|
|
4767
4774
|
] })
|
|
4768
4775
|
]
|
|
4769
4776
|
},
|
|
@@ -4774,9 +4781,9 @@ const Xt = ({
|
|
|
4774
4781
|
showHeart: t = !0,
|
|
4775
4782
|
href: a,
|
|
4776
4783
|
position: o = "fixed",
|
|
4777
|
-
backgroundColor:
|
|
4784
|
+
backgroundColor: n = "bg-gray-900",
|
|
4778
4785
|
textColor: l = "text-gray-400",
|
|
4779
|
-
className:
|
|
4786
|
+
className: s = ""
|
|
4780
4787
|
}) => {
|
|
4781
4788
|
const c = t ? /* @__PURE__ */ d(ae, { children: [
|
|
4782
4789
|
"Built with ",
|
|
@@ -4796,7 +4803,7 @@ const Xt = ({
|
|
|
4796
4803
|
return /* @__PURE__ */ r(
|
|
4797
4804
|
"div",
|
|
4798
4805
|
{
|
|
4799
|
-
className: `${o} bottom-0 left-0 right-0 ${
|
|
4806
|
+
className: `${o} bottom-0 left-0 right-0 ${n} ${s}`,
|
|
4800
4807
|
style: { zIndex: 40 },
|
|
4801
4808
|
children: /* @__PURE__ */ r("div", { className: "flex items-center justify-center py-2 px-4", children: i })
|
|
4802
4809
|
}
|
|
@@ -4821,7 +4828,7 @@ export {
|
|
|
4821
4828
|
It as DualSlider,
|
|
4822
4829
|
Yt as FAB,
|
|
4823
4830
|
Zt as FileUploader,
|
|
4824
|
-
|
|
4831
|
+
ht as FloatingActionButton,
|
|
4825
4832
|
mt as Input,
|
|
4826
4833
|
Bt as Modal,
|
|
4827
4834
|
Ut as ModalContent,
|
|
@@ -4829,7 +4836,7 @@ export {
|
|
|
4829
4836
|
Jt as OfflineBadge,
|
|
4830
4837
|
Wt as Pagination,
|
|
4831
4838
|
Rt as RadioPills,
|
|
4832
|
-
|
|
4839
|
+
ft as Select,
|
|
4833
4840
|
At as Slider,
|
|
4834
4841
|
xt as Spinner,
|
|
4835
4842
|
Ht as StepProgress,
|