@stackloop/ui 4.0.4 → 4.0.5
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 +551 -559
- 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,61 +1,61 @@
|
|
|
1
|
-
import { jsxs as l, jsx as e, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as l, jsx as e, Fragment as Ke } from "react/jsx-runtime";
|
|
2
|
+
import We, { useState as O, useEffect as K, useCallback as Oe, useRef as W, useMemo as Le, forwardRef as Ne, createContext as At, useContext as Rt } from "react";
|
|
3
3
|
import { motion as R, AnimatePresence as ne } from "framer-motion";
|
|
4
|
-
import { Loader2 as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
function
|
|
4
|
+
import { Loader2 as it, Calendar as Tt, ChevronLeft as Ue, ChevronDown as ce, ChevronRight as Ve, Search as se, X as ee, EyeOff as zt, Eye as Lt, Check as st, ArrowUp as Et, ArrowDown as Pt, ChevronsUpDown as It, House as Bt, Plus as Gt, WifiOff as Ye, Wifi as Be, Info as jt, AlertTriangle as Dt, AlertCircle as Ft, CheckCircle as Ot, Camera as Ut, Upload as Vt, Play as Yt, Pause as Ht, Mic as $t, Square as Kt, Trash2 as Wt, Image as _t, FileText as qe } from "lucide-react";
|
|
5
|
+
import { createPortal as Jt } from "react-dom";
|
|
6
|
+
function lt(t) {
|
|
7
7
|
var r, o, a = "";
|
|
8
8
|
if (typeof t == "string" || typeof t == "number") a += t;
|
|
9
9
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
10
10
|
var n = t.length;
|
|
11
|
-
for (r = 0; r < n; r++) t[r] && (o =
|
|
11
|
+
for (r = 0; r < n; r++) t[r] && (o = lt(t[r])) && (a && (a += " "), a += o);
|
|
12
12
|
} else for (o in t) t[o] && (a && (a += " "), a += o);
|
|
13
13
|
return a;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
for (var t, r, o = 0, a = "", n = arguments.length; o < n; o++) (t = arguments[o]) && (r =
|
|
15
|
+
function Qt() {
|
|
16
|
+
for (var t, r, o = 0, a = "", n = arguments.length; o < n; o++) (t = arguments[o]) && (r = lt(t)) && (a && (a += " "), a += r);
|
|
17
17
|
return a;
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const Zt = (t, r) => {
|
|
20
20
|
const o = new Array(t.length + r.length);
|
|
21
21
|
for (let a = 0; a < t.length; a++)
|
|
22
22
|
o[a] = t[a];
|
|
23
23
|
for (let a = 0; a < r.length; a++)
|
|
24
24
|
o[t.length + a] = r[a];
|
|
25
25
|
return o;
|
|
26
|
-
},
|
|
26
|
+
}, qt = (t, r) => ({
|
|
27
27
|
classGroupId: t,
|
|
28
28
|
validator: r
|
|
29
|
-
}),
|
|
29
|
+
}), dt = (t = /* @__PURE__ */ new Map(), r = null, o) => ({
|
|
30
30
|
nextPart: t,
|
|
31
31
|
validators: r,
|
|
32
32
|
classGroupId: o
|
|
33
|
-
}), Ee = "-",
|
|
34
|
-
const r =
|
|
33
|
+
}), Ee = "-", Xe = [], Xt = "arbitrary..", er = (t) => {
|
|
34
|
+
const r = rr(t), {
|
|
35
35
|
conflictingClassGroups: o,
|
|
36
36
|
conflictingClassGroupModifiers: a
|
|
37
37
|
} = t;
|
|
38
38
|
return {
|
|
39
39
|
getClassGroupId: (i) => {
|
|
40
40
|
if (i.startsWith("[") && i.endsWith("]"))
|
|
41
|
-
return
|
|
41
|
+
return tr(i);
|
|
42
42
|
const d = i.split(Ee), s = d[0] === "" && d.length > 1 ? 1 : 0;
|
|
43
|
-
return
|
|
43
|
+
return ct(d, s, r);
|
|
44
44
|
},
|
|
45
45
|
getConflictingClassGroupIds: (i, d) => {
|
|
46
46
|
if (d) {
|
|
47
47
|
const s = a[i], c = o[i];
|
|
48
|
-
return s ? c ?
|
|
48
|
+
return s ? c ? Zt(c, s) : s : c || Xe;
|
|
49
49
|
}
|
|
50
|
-
return o[i] ||
|
|
50
|
+
return o[i] || Xe;
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
},
|
|
53
|
+
}, ct = (t, r, o) => {
|
|
54
54
|
if (t.length - r === 0)
|
|
55
55
|
return o.classGroupId;
|
|
56
56
|
const n = t[r], m = o.nextPart.get(n);
|
|
57
57
|
if (m) {
|
|
58
|
-
const c =
|
|
58
|
+
const c = ct(t, r + 1, m);
|
|
59
59
|
if (c) return c;
|
|
60
60
|
}
|
|
61
61
|
const i = o.validators;
|
|
@@ -67,63 +67,63 @@ const Qt = (t, r) => {
|
|
|
67
67
|
if (u.validator(d))
|
|
68
68
|
return u.classGroupId;
|
|
69
69
|
}
|
|
70
|
-
},
|
|
70
|
+
}, tr = (t) => t.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
71
71
|
const r = t.slice(1, -1), o = r.indexOf(":"), a = r.slice(0, o);
|
|
72
|
-
return a ?
|
|
73
|
-
})(),
|
|
72
|
+
return a ? Xt + a : void 0;
|
|
73
|
+
})(), rr = (t) => {
|
|
74
74
|
const {
|
|
75
75
|
theme: r,
|
|
76
76
|
classGroups: o
|
|
77
77
|
} = t;
|
|
78
|
-
return
|
|
79
|
-
},
|
|
80
|
-
const o =
|
|
78
|
+
return or(o, r);
|
|
79
|
+
}, or = (t, r) => {
|
|
80
|
+
const o = dt();
|
|
81
81
|
for (const a in t) {
|
|
82
82
|
const n = t[a];
|
|
83
|
-
|
|
83
|
+
_e(n, o, a, r);
|
|
84
84
|
}
|
|
85
85
|
return o;
|
|
86
|
-
},
|
|
86
|
+
}, _e = (t, r, o, a) => {
|
|
87
87
|
const n = t.length;
|
|
88
88
|
for (let m = 0; m < n; m++) {
|
|
89
89
|
const i = t[m];
|
|
90
|
-
|
|
90
|
+
ar(i, r, o, a);
|
|
91
91
|
}
|
|
92
|
-
},
|
|
92
|
+
}, ar = (t, r, o, a) => {
|
|
93
93
|
if (typeof t == "string") {
|
|
94
|
-
|
|
94
|
+
nr(t, r, o);
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
97
|
if (typeof t == "function") {
|
|
98
|
-
|
|
98
|
+
ir(t, r, o, a);
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
const a = t === "" ? r :
|
|
101
|
+
sr(t, r, o, a);
|
|
102
|
+
}, nr = (t, r, o) => {
|
|
103
|
+
const a = t === "" ? r : mt(r, t);
|
|
104
104
|
a.classGroupId = o;
|
|
105
|
-
},
|
|
106
|
-
if (
|
|
107
|
-
|
|
105
|
+
}, ir = (t, r, o, a) => {
|
|
106
|
+
if (lr(t)) {
|
|
107
|
+
_e(t(a), r, o, a);
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
r.validators === null && (r.validators = []), r.validators.push(
|
|
111
|
-
},
|
|
110
|
+
r.validators === null && (r.validators = []), r.validators.push(qt(o, t));
|
|
111
|
+
}, sr = (t, r, o, a) => {
|
|
112
112
|
const n = Object.entries(t), m = n.length;
|
|
113
113
|
for (let i = 0; i < m; i++) {
|
|
114
114
|
const [d, s] = n[i];
|
|
115
|
-
|
|
115
|
+
_e(s, mt(r, d), o, a);
|
|
116
116
|
}
|
|
117
|
-
},
|
|
117
|
+
}, mt = (t, r) => {
|
|
118
118
|
let o = t;
|
|
119
119
|
const a = r.split(Ee), n = a.length;
|
|
120
120
|
for (let m = 0; m < n; m++) {
|
|
121
121
|
const i = a[m];
|
|
122
122
|
let d = o.nextPart.get(i);
|
|
123
|
-
d || (d =
|
|
123
|
+
d || (d = dt(), o.nextPart.set(i, d)), o = d;
|
|
124
124
|
}
|
|
125
125
|
return o;
|
|
126
|
-
},
|
|
126
|
+
}, lr = (t) => "isThemeGetter" in t && t.isThemeGetter === !0, dr = (t) => {
|
|
127
127
|
if (t < 1)
|
|
128
128
|
return {
|
|
129
129
|
get: () => {
|
|
@@ -147,13 +147,13 @@ const Qt = (t, r) => {
|
|
|
147
147
|
m in o ? o[m] = i : n(m, i);
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
|
-
}, He = "!",
|
|
150
|
+
}, He = "!", et = ":", cr = [], tt = (t, r, o, a, n) => ({
|
|
151
151
|
modifiers: t,
|
|
152
152
|
hasImportantModifier: r,
|
|
153
153
|
baseClassName: o,
|
|
154
154
|
maybePostfixModifierPosition: a,
|
|
155
155
|
isExternal: n
|
|
156
|
-
}),
|
|
156
|
+
}), mr = (t) => {
|
|
157
157
|
const {
|
|
158
158
|
prefix: r,
|
|
159
159
|
experimentalParseClassName: o
|
|
@@ -163,18 +163,18 @@ const Qt = (t, r) => {
|
|
|
163
163
|
let i = 0, d = 0, s = 0, c;
|
|
164
164
|
const u = n.length;
|
|
165
165
|
for (let w = 0; w < u; w++) {
|
|
166
|
-
const
|
|
166
|
+
const y = n[w];
|
|
167
167
|
if (i === 0 && d === 0) {
|
|
168
|
-
if (
|
|
168
|
+
if (y === et) {
|
|
169
169
|
m.push(n.slice(s, w)), s = w + 1;
|
|
170
170
|
continue;
|
|
171
171
|
}
|
|
172
|
-
if (
|
|
172
|
+
if (y === "/") {
|
|
173
173
|
c = w;
|
|
174
174
|
continue;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
y === "[" ? i++ : y === "]" ? i-- : y === "(" ? d++ : y === ")" && d--;
|
|
178
178
|
}
|
|
179
179
|
const g = m.length === 0 ? n : n.slice(s);
|
|
180
180
|
let v = g, A = !1;
|
|
@@ -186,11 +186,11 @@ const Qt = (t, r) => {
|
|
|
186
186
|
g.startsWith(He) && (v = g.slice(1), A = !0)
|
|
187
187
|
);
|
|
188
188
|
const N = c && c > s ? c - s : void 0;
|
|
189
|
-
return
|
|
189
|
+
return tt(m, A, v, N);
|
|
190
190
|
};
|
|
191
191
|
if (r) {
|
|
192
|
-
const n = r +
|
|
193
|
-
a = (i) => i.startsWith(n) ? m(i.slice(n.length)) :
|
|
192
|
+
const n = r + et, m = a;
|
|
193
|
+
a = (i) => i.startsWith(n) ? m(i.slice(n.length)) : tt(cr, !1, i, void 0, !0);
|
|
194
194
|
}
|
|
195
195
|
if (o) {
|
|
196
196
|
const n = a;
|
|
@@ -200,7 +200,7 @@ const Qt = (t, r) => {
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
return a;
|
|
203
|
-
},
|
|
203
|
+
}, ur = (t) => {
|
|
204
204
|
const r = /* @__PURE__ */ new Map();
|
|
205
205
|
return t.orderSensitiveModifiers.forEach((o, a) => {
|
|
206
206
|
r.set(o, 1e6 + a);
|
|
@@ -213,18 +213,18 @@ const Qt = (t, r) => {
|
|
|
213
213
|
}
|
|
214
214
|
return n.length > 0 && (n.sort(), a.push(...n)), a;
|
|
215
215
|
};
|
|
216
|
-
},
|
|
217
|
-
cache:
|
|
218
|
-
parseClassName:
|
|
219
|
-
sortModifiers:
|
|
220
|
-
...
|
|
221
|
-
}),
|
|
216
|
+
}, pr = (t) => ({
|
|
217
|
+
cache: dr(t.cacheSize),
|
|
218
|
+
parseClassName: mr(t),
|
|
219
|
+
sortModifiers: ur(t),
|
|
220
|
+
...er(t)
|
|
221
|
+
}), br = /\s+/, fr = (t, r) => {
|
|
222
222
|
const {
|
|
223
223
|
parseClassName: o,
|
|
224
224
|
getClassGroupId: a,
|
|
225
225
|
getConflictingClassGroupIds: n,
|
|
226
226
|
sortModifiers: m
|
|
227
|
-
} = r, i = [], d = t.trim().split(
|
|
227
|
+
} = r, i = [], d = t.trim().split(br);
|
|
228
228
|
let s = "";
|
|
229
229
|
for (let c = d.length - 1; c >= 0; c -= 1) {
|
|
230
230
|
const u = d[c], {
|
|
@@ -238,23 +238,23 @@ const Qt = (t, r) => {
|
|
|
238
238
|
s = u + (s.length > 0 ? " " + s : s);
|
|
239
239
|
continue;
|
|
240
240
|
}
|
|
241
|
-
let
|
|
242
|
-
if (!
|
|
243
|
-
if (!
|
|
241
|
+
let y = !!w, x = a(y ? N.substring(0, w) : N);
|
|
242
|
+
if (!x) {
|
|
243
|
+
if (!y) {
|
|
244
244
|
s = u + (s.length > 0 ? " " + s : s);
|
|
245
245
|
continue;
|
|
246
246
|
}
|
|
247
|
-
if (
|
|
247
|
+
if (x = a(N), !x) {
|
|
248
248
|
s = u + (s.length > 0 ? " " + s : s);
|
|
249
249
|
continue;
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
y = !1;
|
|
252
252
|
}
|
|
253
|
-
const P = v.length === 0 ? "" : v.length === 1 ? v[0] : m(v).join(":"), j = A ? P + He : P, B = j +
|
|
253
|
+
const P = v.length === 0 ? "" : v.length === 1 ? v[0] : m(v).join(":"), j = A ? P + He : P, B = j + x;
|
|
254
254
|
if (i.indexOf(B) > -1)
|
|
255
255
|
continue;
|
|
256
256
|
i.push(B);
|
|
257
|
-
const E = n(
|
|
257
|
+
const E = n(x, y);
|
|
258
258
|
for (let L = 0; L < E.length; ++L) {
|
|
259
259
|
const G = E[L];
|
|
260
260
|
i.push(j + G);
|
|
@@ -262,47 +262,47 @@ const Qt = (t, r) => {
|
|
|
262
262
|
s = u + (s.length > 0 ? " " + s : s);
|
|
263
263
|
}
|
|
264
264
|
return s;
|
|
265
|
-
},
|
|
265
|
+
}, hr = (...t) => {
|
|
266
266
|
let r = 0, o, a, n = "";
|
|
267
267
|
for (; r < t.length; )
|
|
268
|
-
(o = t[r++]) && (a =
|
|
268
|
+
(o = t[r++]) && (a = ut(o)) && (n && (n += " "), n += a);
|
|
269
269
|
return n;
|
|
270
|
-
},
|
|
270
|
+
}, ut = (t) => {
|
|
271
271
|
if (typeof t == "string")
|
|
272
272
|
return t;
|
|
273
273
|
let r, o = "";
|
|
274
274
|
for (let a = 0; a < t.length; a++)
|
|
275
|
-
t[a] && (r =
|
|
275
|
+
t[a] && (r = ut(t[a])) && (o && (o += " "), o += r);
|
|
276
276
|
return o;
|
|
277
|
-
},
|
|
277
|
+
}, gr = (t, ...r) => {
|
|
278
278
|
let o, a, n, m;
|
|
279
279
|
const i = (s) => {
|
|
280
280
|
const c = r.reduce((u, g) => g(u), t());
|
|
281
|
-
return o =
|
|
281
|
+
return o = pr(c), a = o.cache.get, n = o.cache.set, m = d, d(s);
|
|
282
282
|
}, d = (s) => {
|
|
283
283
|
const c = a(s);
|
|
284
284
|
if (c)
|
|
285
285
|
return c;
|
|
286
|
-
const u =
|
|
286
|
+
const u = fr(s, o);
|
|
287
287
|
return n(s, u), u;
|
|
288
288
|
};
|
|
289
|
-
return m = i, (...s) => m(
|
|
290
|
-
},
|
|
291
|
-
const r = (o) => o[t] ||
|
|
289
|
+
return m = i, (...s) => m(hr(...s));
|
|
290
|
+
}, yr = [], Q = (t) => {
|
|
291
|
+
const r = (o) => o[t] || yr;
|
|
292
292
|
return r.isThemeGetter = !0, r;
|
|
293
|
-
},
|
|
293
|
+
}, pt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, bt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, xr = /^\d+\/\d+$/, wr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, vr = /\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$/, Cr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Nr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, kr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ce = (t) => xr.test(t), D = (t) => !!t && !Number.isNaN(Number(t)), ue = (t) => !!t && Number.isInteger(Number(t)), Ge = (t) => t.endsWith("%") && D(t.slice(0, -1)), de = (t) => wr.test(t), Sr = () => !0, Mr = (t) => (
|
|
294
294
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
295
295
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
296
296
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
297
|
-
|
|
298
|
-
),
|
|
299
|
-
const a =
|
|
297
|
+
vr.test(t) && !Cr.test(t)
|
|
298
|
+
), ft = () => !1, Ar = (t) => Nr.test(t), Rr = (t) => kr.test(t), Tr = (t) => !S(t) && !M(t), zr = (t) => ke(t, yt, ft), S = (t) => pt.test(t), he = (t) => ke(t, xt, Mr), je = (t) => ke(t, Br, D), rt = (t) => ke(t, ht, ft), Lr = (t) => ke(t, gt, Rr), Ae = (t) => ke(t, wt, Ar), M = (t) => bt.test(t), Me = (t) => Se(t, xt), Er = (t) => Se(t, Gr), ot = (t) => Se(t, ht), Pr = (t) => Se(t, yt), Ir = (t) => Se(t, gt), Re = (t) => Se(t, wt, !0), ke = (t, r, o) => {
|
|
299
|
+
const a = pt.exec(t);
|
|
300
300
|
return a ? a[1] ? r(a[1]) : o(a[2]) : !1;
|
|
301
301
|
}, Se = (t, r, o = !1) => {
|
|
302
|
-
const a =
|
|
302
|
+
const a = bt.exec(t);
|
|
303
303
|
return a ? a[1] ? r(a[1]) : o : !1;
|
|
304
|
-
},
|
|
305
|
-
const t = Q("color"), r = Q("font"), o = Q("text"), a = Q("font-weight"), n = Q("tracking"), m = Q("leading"), i = Q("breakpoint"), d = Q("container"), s = Q("spacing"), c = Q("radius"), u = Q("shadow"), g = Q("inset-shadow"), v = Q("text-shadow"), A = Q("drop-shadow"), N = Q("blur"), w = Q("perspective"),
|
|
304
|
+
}, ht = (t) => t === "position" || t === "percentage", gt = (t) => t === "image" || t === "url", yt = (t) => t === "length" || t === "size" || t === "bg-size", xt = (t) => t === "length", Br = (t) => t === "number", Gr = (t) => t === "family-name", wt = (t) => t === "shadow", jr = () => {
|
|
305
|
+
const t = Q("color"), r = Q("font"), o = Q("text"), a = Q("font-weight"), n = Q("tracking"), m = Q("leading"), i = Q("breakpoint"), d = Q("container"), s = Q("spacing"), c = Q("radius"), u = Q("shadow"), g = Q("inset-shadow"), v = Q("text-shadow"), A = Q("drop-shadow"), N = Q("blur"), w = Q("perspective"), y = Q("aspect"), x = Q("ease"), P = Q("animate"), j = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], B = () => [
|
|
306
306
|
"center",
|
|
307
307
|
"top",
|
|
308
308
|
"bottom",
|
|
@@ -320,13 +320,13 @@ const Qt = (t, r) => {
|
|
|
320
320
|
"bottom-left",
|
|
321
321
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
322
322
|
"left-bottom"
|
|
323
|
-
], E = () => [...B(), M, S], L = () => ["auto", "hidden", "clip", "visible", "scroll"], G = () => ["auto", "contain", "none"],
|
|
323
|
+
], E = () => [...B(), M, S], L = () => ["auto", "hidden", "clip", "visible", "scroll"], G = () => ["auto", "contain", "none"], f = () => [M, S, s], z = () => [Ce, "full", "auto", ...f()], C = () => [ue, "none", "subgrid", M, S], T = () => ["auto", {
|
|
324
324
|
span: ["full", ue, M, S]
|
|
325
|
-
}, ue, M, S], U = () => [ue, "auto", M, S], J = () => ["auto", "min", "max", "fr", M, S],
|
|
325
|
+
}, ue, M, S], U = () => [ue, "auto", M, S], J = () => ["auto", "min", "max", "fr", M, S], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], k = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], F = () => ["auto", ...f()], V = () => [Ce, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], b = () => [t, M, S], $ = () => [...B(), ot, rt, {
|
|
326
326
|
position: [M, S]
|
|
327
327
|
}], te = () => ["no-repeat", {
|
|
328
328
|
repeat: ["", "x", "y", "space", "round"]
|
|
329
|
-
}], ie = () => ["auto", "cover", "contain",
|
|
329
|
+
}], ie = () => ["auto", "cover", "contain", Pr, zr, {
|
|
330
330
|
size: [M, S]
|
|
331
331
|
}], re = () => [Ge, Me, he], Z = () => [
|
|
332
332
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -336,14 +336,14 @@ const Qt = (t, r) => {
|
|
|
336
336
|
c,
|
|
337
337
|
M,
|
|
338
338
|
S
|
|
339
|
-
], q = () => ["", D, Me, he], pe = () => ["solid", "dashed", "dotted", "double"], be = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], _ = () => [D, Ge,
|
|
339
|
+
], q = () => ["", D, Me, he], pe = () => ["solid", "dashed", "dotted", "double"], be = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], _ = () => [D, Ge, ot, rt], ge = () => [
|
|
340
340
|
// Deprecated since Tailwind CSS v4.0.0
|
|
341
341
|
"",
|
|
342
342
|
"none",
|
|
343
343
|
N,
|
|
344
344
|
M,
|
|
345
345
|
S
|
|
346
|
-
], fe = () => ["none", D, M, S], ye = () => ["none", D, M, S], xe = () => [D, M, S], X = () => [Ce, "full", ...
|
|
346
|
+
], fe = () => ["none", D, M, S], ye = () => ["none", D, M, S], xe = () => [D, M, S], X = () => [Ce, "full", ...f()];
|
|
347
347
|
return {
|
|
348
348
|
cacheSize: 500,
|
|
349
349
|
theme: {
|
|
@@ -351,11 +351,11 @@ const Qt = (t, r) => {
|
|
|
351
351
|
aspect: ["video"],
|
|
352
352
|
blur: [de],
|
|
353
353
|
breakpoint: [de],
|
|
354
|
-
color: [
|
|
354
|
+
color: [Sr],
|
|
355
355
|
container: [de],
|
|
356
356
|
"drop-shadow": [de],
|
|
357
357
|
ease: ["in", "out", "in-out"],
|
|
358
|
-
font: [
|
|
358
|
+
font: [Tr],
|
|
359
359
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
360
360
|
"inset-shadow": [de],
|
|
361
361
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -376,7 +376,7 @@ const Qt = (t, r) => {
|
|
|
376
376
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
377
377
|
*/
|
|
378
378
|
aspect: [{
|
|
379
|
-
aspect: ["auto", "square", Ce, S, M,
|
|
379
|
+
aspect: ["auto", "square", Ce, S, M, y]
|
|
380
380
|
}],
|
|
381
381
|
/**
|
|
382
382
|
* Container
|
|
@@ -599,7 +599,7 @@ const Qt = (t, r) => {
|
|
|
599
599
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
600
600
|
*/
|
|
601
601
|
basis: [{
|
|
602
|
-
basis: [Ce, "full", "auto", d, ...
|
|
602
|
+
basis: [Ce, "full", "auto", d, ...f()]
|
|
603
603
|
}],
|
|
604
604
|
/**
|
|
605
605
|
* Flex Direction
|
|
@@ -725,28 +725,28 @@ const Qt = (t, r) => {
|
|
|
725
725
|
* @see https://tailwindcss.com/docs/gap
|
|
726
726
|
*/
|
|
727
727
|
gap: [{
|
|
728
|
-
gap:
|
|
728
|
+
gap: f()
|
|
729
729
|
}],
|
|
730
730
|
/**
|
|
731
731
|
* Gap X
|
|
732
732
|
* @see https://tailwindcss.com/docs/gap
|
|
733
733
|
*/
|
|
734
734
|
"gap-x": [{
|
|
735
|
-
"gap-x":
|
|
735
|
+
"gap-x": f()
|
|
736
736
|
}],
|
|
737
737
|
/**
|
|
738
738
|
* Gap Y
|
|
739
739
|
* @see https://tailwindcss.com/docs/gap
|
|
740
740
|
*/
|
|
741
741
|
"gap-y": [{
|
|
742
|
-
"gap-y":
|
|
742
|
+
"gap-y": f()
|
|
743
743
|
}],
|
|
744
744
|
/**
|
|
745
745
|
* Justify Content
|
|
746
746
|
* @see https://tailwindcss.com/docs/justify-content
|
|
747
747
|
*/
|
|
748
748
|
"justify-content": [{
|
|
749
|
-
justify: [...
|
|
749
|
+
justify: [...H(), "normal"]
|
|
750
750
|
}],
|
|
751
751
|
/**
|
|
752
752
|
* Justify Items
|
|
@@ -767,7 +767,7 @@ const Qt = (t, r) => {
|
|
|
767
767
|
* @see https://tailwindcss.com/docs/align-content
|
|
768
768
|
*/
|
|
769
769
|
"align-content": [{
|
|
770
|
-
content: ["normal", ...
|
|
770
|
+
content: ["normal", ...H()]
|
|
771
771
|
}],
|
|
772
772
|
/**
|
|
773
773
|
* Align Items
|
|
@@ -792,7 +792,7 @@ const Qt = (t, r) => {
|
|
|
792
792
|
* @see https://tailwindcss.com/docs/place-content
|
|
793
793
|
*/
|
|
794
794
|
"place-content": [{
|
|
795
|
-
"place-content":
|
|
795
|
+
"place-content": H()
|
|
796
796
|
}],
|
|
797
797
|
/**
|
|
798
798
|
* Place Items
|
|
@@ -814,63 +814,63 @@ const Qt = (t, r) => {
|
|
|
814
814
|
* @see https://tailwindcss.com/docs/padding
|
|
815
815
|
*/
|
|
816
816
|
p: [{
|
|
817
|
-
p:
|
|
817
|
+
p: f()
|
|
818
818
|
}],
|
|
819
819
|
/**
|
|
820
820
|
* Padding X
|
|
821
821
|
* @see https://tailwindcss.com/docs/padding
|
|
822
822
|
*/
|
|
823
823
|
px: [{
|
|
824
|
-
px:
|
|
824
|
+
px: f()
|
|
825
825
|
}],
|
|
826
826
|
/**
|
|
827
827
|
* Padding Y
|
|
828
828
|
* @see https://tailwindcss.com/docs/padding
|
|
829
829
|
*/
|
|
830
830
|
py: [{
|
|
831
|
-
py:
|
|
831
|
+
py: f()
|
|
832
832
|
}],
|
|
833
833
|
/**
|
|
834
834
|
* Padding Start
|
|
835
835
|
* @see https://tailwindcss.com/docs/padding
|
|
836
836
|
*/
|
|
837
837
|
ps: [{
|
|
838
|
-
ps:
|
|
838
|
+
ps: f()
|
|
839
839
|
}],
|
|
840
840
|
/**
|
|
841
841
|
* Padding End
|
|
842
842
|
* @see https://tailwindcss.com/docs/padding
|
|
843
843
|
*/
|
|
844
844
|
pe: [{
|
|
845
|
-
pe:
|
|
845
|
+
pe: f()
|
|
846
846
|
}],
|
|
847
847
|
/**
|
|
848
848
|
* Padding Top
|
|
849
849
|
* @see https://tailwindcss.com/docs/padding
|
|
850
850
|
*/
|
|
851
851
|
pt: [{
|
|
852
|
-
pt:
|
|
852
|
+
pt: f()
|
|
853
853
|
}],
|
|
854
854
|
/**
|
|
855
855
|
* Padding Right
|
|
856
856
|
* @see https://tailwindcss.com/docs/padding
|
|
857
857
|
*/
|
|
858
858
|
pr: [{
|
|
859
|
-
pr:
|
|
859
|
+
pr: f()
|
|
860
860
|
}],
|
|
861
861
|
/**
|
|
862
862
|
* Padding Bottom
|
|
863
863
|
* @see https://tailwindcss.com/docs/padding
|
|
864
864
|
*/
|
|
865
865
|
pb: [{
|
|
866
|
-
pb:
|
|
866
|
+
pb: f()
|
|
867
867
|
}],
|
|
868
868
|
/**
|
|
869
869
|
* Padding Left
|
|
870
870
|
* @see https://tailwindcss.com/docs/padding
|
|
871
871
|
*/
|
|
872
872
|
pl: [{
|
|
873
|
-
pl:
|
|
873
|
+
pl: f()
|
|
874
874
|
}],
|
|
875
875
|
/**
|
|
876
876
|
* Margin
|
|
@@ -940,7 +940,7 @@ const Qt = (t, r) => {
|
|
|
940
940
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
941
941
|
*/
|
|
942
942
|
"space-x": [{
|
|
943
|
-
"space-x":
|
|
943
|
+
"space-x": f()
|
|
944
944
|
}],
|
|
945
945
|
/**
|
|
946
946
|
* Space Between X Reverse
|
|
@@ -952,7 +952,7 @@ const Qt = (t, r) => {
|
|
|
952
952
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
953
953
|
*/
|
|
954
954
|
"space-y": [{
|
|
955
|
-
"space-y":
|
|
955
|
+
"space-y": f()
|
|
956
956
|
}],
|
|
957
957
|
/**
|
|
958
958
|
* Space Between Y Reverse
|
|
@@ -967,14 +967,14 @@ const Qt = (t, r) => {
|
|
|
967
967
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
968
968
|
*/
|
|
969
969
|
size: [{
|
|
970
|
-
size:
|
|
970
|
+
size: V()
|
|
971
971
|
}],
|
|
972
972
|
/**
|
|
973
973
|
* Width
|
|
974
974
|
* @see https://tailwindcss.com/docs/width
|
|
975
975
|
*/
|
|
976
976
|
w: [{
|
|
977
|
-
w: [d, "screen", ...
|
|
977
|
+
w: [d, "screen", ...V()]
|
|
978
978
|
}],
|
|
979
979
|
/**
|
|
980
980
|
* Min-Width
|
|
@@ -986,7 +986,7 @@ const Qt = (t, r) => {
|
|
|
986
986
|
"screen",
|
|
987
987
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
988
988
|
"none",
|
|
989
|
-
...
|
|
989
|
+
...V()
|
|
990
990
|
]
|
|
991
991
|
}],
|
|
992
992
|
/**
|
|
@@ -1004,7 +1004,7 @@ const Qt = (t, r) => {
|
|
|
1004
1004
|
{
|
|
1005
1005
|
screen: [i]
|
|
1006
1006
|
},
|
|
1007
|
-
...
|
|
1007
|
+
...V()
|
|
1008
1008
|
]
|
|
1009
1009
|
}],
|
|
1010
1010
|
/**
|
|
@@ -1012,21 +1012,21 @@ const Qt = (t, r) => {
|
|
|
1012
1012
|
* @see https://tailwindcss.com/docs/height
|
|
1013
1013
|
*/
|
|
1014
1014
|
h: [{
|
|
1015
|
-
h: ["screen", "lh", ...
|
|
1015
|
+
h: ["screen", "lh", ...V()]
|
|
1016
1016
|
}],
|
|
1017
1017
|
/**
|
|
1018
1018
|
* Min-Height
|
|
1019
1019
|
* @see https://tailwindcss.com/docs/min-height
|
|
1020
1020
|
*/
|
|
1021
1021
|
"min-h": [{
|
|
1022
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1022
|
+
"min-h": ["screen", "lh", "none", ...V()]
|
|
1023
1023
|
}],
|
|
1024
1024
|
/**
|
|
1025
1025
|
* Max-Height
|
|
1026
1026
|
* @see https://tailwindcss.com/docs/max-height
|
|
1027
1027
|
*/
|
|
1028
1028
|
"max-h": [{
|
|
1029
|
-
"max-h": ["screen", "lh", ...
|
|
1029
|
+
"max-h": ["screen", "lh", ...V()]
|
|
1030
1030
|
}],
|
|
1031
1031
|
// ------------------
|
|
1032
1032
|
// --- Typography ---
|
|
@@ -1067,7 +1067,7 @@ const Qt = (t, r) => {
|
|
|
1067
1067
|
* @see https://tailwindcss.com/docs/font-family
|
|
1068
1068
|
*/
|
|
1069
1069
|
"font-family": [{
|
|
1070
|
-
font: [
|
|
1070
|
+
font: [Er, S, r]
|
|
1071
1071
|
}],
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Font Variant Numeric
|
|
@@ -1121,7 +1121,7 @@ const Qt = (t, r) => {
|
|
|
1121
1121
|
leading: [
|
|
1122
1122
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1123
1123
|
m,
|
|
1124
|
-
...
|
|
1124
|
+
...f()
|
|
1125
1125
|
]
|
|
1126
1126
|
}],
|
|
1127
1127
|
/**
|
|
@@ -1158,14 +1158,14 @@ const Qt = (t, r) => {
|
|
|
1158
1158
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1159
1159
|
*/
|
|
1160
1160
|
"placeholder-color": [{
|
|
1161
|
-
placeholder:
|
|
1161
|
+
placeholder: b()
|
|
1162
1162
|
}],
|
|
1163
1163
|
/**
|
|
1164
1164
|
* Text Color
|
|
1165
1165
|
* @see https://tailwindcss.com/docs/text-color
|
|
1166
1166
|
*/
|
|
1167
1167
|
"text-color": [{
|
|
1168
|
-
text:
|
|
1168
|
+
text: b()
|
|
1169
1169
|
}],
|
|
1170
1170
|
/**
|
|
1171
1171
|
* Text Decoration
|
|
@@ -1191,7 +1191,7 @@ const Qt = (t, r) => {
|
|
|
1191
1191
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1192
1192
|
*/
|
|
1193
1193
|
"text-decoration-color": [{
|
|
1194
|
-
decoration:
|
|
1194
|
+
decoration: b()
|
|
1195
1195
|
}],
|
|
1196
1196
|
/**
|
|
1197
1197
|
* Text Underline Offset
|
|
@@ -1222,7 +1222,7 @@ const Qt = (t, r) => {
|
|
|
1222
1222
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1223
1223
|
*/
|
|
1224
1224
|
indent: [{
|
|
1225
|
-
indent:
|
|
1225
|
+
indent: f()
|
|
1226
1226
|
}],
|
|
1227
1227
|
/**
|
|
1228
1228
|
* Vertical Alignment
|
|
@@ -1295,7 +1295,7 @@ const Qt = (t, r) => {
|
|
|
1295
1295
|
* @see https://tailwindcss.com/docs/background-position
|
|
1296
1296
|
*/
|
|
1297
1297
|
"bg-position": [{
|
|
1298
|
-
bg:
|
|
1298
|
+
bg: $()
|
|
1299
1299
|
}],
|
|
1300
1300
|
/**
|
|
1301
1301
|
* Background Repeat
|
|
@@ -1322,14 +1322,14 @@ const Qt = (t, r) => {
|
|
|
1322
1322
|
}, ue, M, S],
|
|
1323
1323
|
radial: ["", M, S],
|
|
1324
1324
|
conic: [ue, M, S]
|
|
1325
|
-
},
|
|
1325
|
+
}, Ir, Lr]
|
|
1326
1326
|
}],
|
|
1327
1327
|
/**
|
|
1328
1328
|
* Background Color
|
|
1329
1329
|
* @see https://tailwindcss.com/docs/background-color
|
|
1330
1330
|
*/
|
|
1331
1331
|
"bg-color": [{
|
|
1332
|
-
bg:
|
|
1332
|
+
bg: b()
|
|
1333
1333
|
}],
|
|
1334
1334
|
/**
|
|
1335
1335
|
* Gradient Color Stops From Position
|
|
@@ -1357,21 +1357,21 @@ const Qt = (t, r) => {
|
|
|
1357
1357
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1358
1358
|
*/
|
|
1359
1359
|
"gradient-from": [{
|
|
1360
|
-
from:
|
|
1360
|
+
from: b()
|
|
1361
1361
|
}],
|
|
1362
1362
|
/**
|
|
1363
1363
|
* Gradient Color Stops Via
|
|
1364
1364
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1365
1365
|
*/
|
|
1366
1366
|
"gradient-via": [{
|
|
1367
|
-
via:
|
|
1367
|
+
via: b()
|
|
1368
1368
|
}],
|
|
1369
1369
|
/**
|
|
1370
1370
|
* Gradient Color Stops To
|
|
1371
1371
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1372
1372
|
*/
|
|
1373
1373
|
"gradient-to": [{
|
|
1374
|
-
to:
|
|
1374
|
+
to: b()
|
|
1375
1375
|
}],
|
|
1376
1376
|
// ---------------
|
|
1377
1377
|
// --- Borders ---
|
|
@@ -1587,70 +1587,70 @@ const Qt = (t, r) => {
|
|
|
1587
1587
|
* @see https://tailwindcss.com/docs/border-color
|
|
1588
1588
|
*/
|
|
1589
1589
|
"border-color": [{
|
|
1590
|
-
border:
|
|
1590
|
+
border: b()
|
|
1591
1591
|
}],
|
|
1592
1592
|
/**
|
|
1593
1593
|
* Border Color X
|
|
1594
1594
|
* @see https://tailwindcss.com/docs/border-color
|
|
1595
1595
|
*/
|
|
1596
1596
|
"border-color-x": [{
|
|
1597
|
-
"border-x":
|
|
1597
|
+
"border-x": b()
|
|
1598
1598
|
}],
|
|
1599
1599
|
/**
|
|
1600
1600
|
* Border Color Y
|
|
1601
1601
|
* @see https://tailwindcss.com/docs/border-color
|
|
1602
1602
|
*/
|
|
1603
1603
|
"border-color-y": [{
|
|
1604
|
-
"border-y":
|
|
1604
|
+
"border-y": b()
|
|
1605
1605
|
}],
|
|
1606
1606
|
/**
|
|
1607
1607
|
* Border Color S
|
|
1608
1608
|
* @see https://tailwindcss.com/docs/border-color
|
|
1609
1609
|
*/
|
|
1610
1610
|
"border-color-s": [{
|
|
1611
|
-
"border-s":
|
|
1611
|
+
"border-s": b()
|
|
1612
1612
|
}],
|
|
1613
1613
|
/**
|
|
1614
1614
|
* Border Color E
|
|
1615
1615
|
* @see https://tailwindcss.com/docs/border-color
|
|
1616
1616
|
*/
|
|
1617
1617
|
"border-color-e": [{
|
|
1618
|
-
"border-e":
|
|
1618
|
+
"border-e": b()
|
|
1619
1619
|
}],
|
|
1620
1620
|
/**
|
|
1621
1621
|
* Border Color Top
|
|
1622
1622
|
* @see https://tailwindcss.com/docs/border-color
|
|
1623
1623
|
*/
|
|
1624
1624
|
"border-color-t": [{
|
|
1625
|
-
"border-t":
|
|
1625
|
+
"border-t": b()
|
|
1626
1626
|
}],
|
|
1627
1627
|
/**
|
|
1628
1628
|
* Border Color Right
|
|
1629
1629
|
* @see https://tailwindcss.com/docs/border-color
|
|
1630
1630
|
*/
|
|
1631
1631
|
"border-color-r": [{
|
|
1632
|
-
"border-r":
|
|
1632
|
+
"border-r": b()
|
|
1633
1633
|
}],
|
|
1634
1634
|
/**
|
|
1635
1635
|
* Border Color Bottom
|
|
1636
1636
|
* @see https://tailwindcss.com/docs/border-color
|
|
1637
1637
|
*/
|
|
1638
1638
|
"border-color-b": [{
|
|
1639
|
-
"border-b":
|
|
1639
|
+
"border-b": b()
|
|
1640
1640
|
}],
|
|
1641
1641
|
/**
|
|
1642
1642
|
* Border Color Left
|
|
1643
1643
|
* @see https://tailwindcss.com/docs/border-color
|
|
1644
1644
|
*/
|
|
1645
1645
|
"border-color-l": [{
|
|
1646
|
-
"border-l":
|
|
1646
|
+
"border-l": b()
|
|
1647
1647
|
}],
|
|
1648
1648
|
/**
|
|
1649
1649
|
* Divide Color
|
|
1650
1650
|
* @see https://tailwindcss.com/docs/divide-color
|
|
1651
1651
|
*/
|
|
1652
1652
|
"divide-color": [{
|
|
1653
|
-
divide:
|
|
1653
|
+
divide: b()
|
|
1654
1654
|
}],
|
|
1655
1655
|
/**
|
|
1656
1656
|
* Outline Style
|
|
@@ -1678,7 +1678,7 @@ const Qt = (t, r) => {
|
|
|
1678
1678
|
* @see https://tailwindcss.com/docs/outline-color
|
|
1679
1679
|
*/
|
|
1680
1680
|
"outline-color": [{
|
|
1681
|
-
outline:
|
|
1681
|
+
outline: b()
|
|
1682
1682
|
}],
|
|
1683
1683
|
// ---------------
|
|
1684
1684
|
// --- Effects ---
|
|
@@ -1702,7 +1702,7 @@ const Qt = (t, r) => {
|
|
|
1702
1702
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
1703
1703
|
*/
|
|
1704
1704
|
"shadow-color": [{
|
|
1705
|
-
shadow:
|
|
1705
|
+
shadow: b()
|
|
1706
1706
|
}],
|
|
1707
1707
|
/**
|
|
1708
1708
|
* Inset Box Shadow
|
|
@@ -1716,7 +1716,7 @@ const Qt = (t, r) => {
|
|
|
1716
1716
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
1717
1717
|
*/
|
|
1718
1718
|
"inset-shadow-color": [{
|
|
1719
|
-
"inset-shadow":
|
|
1719
|
+
"inset-shadow": b()
|
|
1720
1720
|
}],
|
|
1721
1721
|
/**
|
|
1722
1722
|
* Ring Width
|
|
@@ -1737,7 +1737,7 @@ const Qt = (t, r) => {
|
|
|
1737
1737
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
1738
1738
|
*/
|
|
1739
1739
|
"ring-color": [{
|
|
1740
|
-
ring:
|
|
1740
|
+
ring: b()
|
|
1741
1741
|
}],
|
|
1742
1742
|
/**
|
|
1743
1743
|
* Ring Offset Width
|
|
@@ -1755,7 +1755,7 @@ const Qt = (t, r) => {
|
|
|
1755
1755
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1756
1756
|
*/
|
|
1757
1757
|
"ring-offset-color": [{
|
|
1758
|
-
"ring-offset":
|
|
1758
|
+
"ring-offset": b()
|
|
1759
1759
|
}],
|
|
1760
1760
|
/**
|
|
1761
1761
|
* Inset Ring Width
|
|
@@ -1769,7 +1769,7 @@ const Qt = (t, r) => {
|
|
|
1769
1769
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
1770
1770
|
*/
|
|
1771
1771
|
"inset-ring-color": [{
|
|
1772
|
-
"inset-ring":
|
|
1772
|
+
"inset-ring": b()
|
|
1773
1773
|
}],
|
|
1774
1774
|
/**
|
|
1775
1775
|
* Text Shadow
|
|
@@ -1783,7 +1783,7 @@ const Qt = (t, r) => {
|
|
|
1783
1783
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
1784
1784
|
*/
|
|
1785
1785
|
"text-shadow-color": [{
|
|
1786
|
-
"text-shadow":
|
|
1786
|
+
"text-shadow": b()
|
|
1787
1787
|
}],
|
|
1788
1788
|
/**
|
|
1789
1789
|
* Opacity
|
|
@@ -1834,10 +1834,10 @@ const Qt = (t, r) => {
|
|
|
1834
1834
|
"mask-linear-to": _()
|
|
1835
1835
|
}],
|
|
1836
1836
|
"mask-image-linear-from-color": [{
|
|
1837
|
-
"mask-linear-from":
|
|
1837
|
+
"mask-linear-from": b()
|
|
1838
1838
|
}],
|
|
1839
1839
|
"mask-image-linear-to-color": [{
|
|
1840
|
-
"mask-linear-to":
|
|
1840
|
+
"mask-linear-to": b()
|
|
1841
1841
|
}],
|
|
1842
1842
|
"mask-image-t-from-pos": [{
|
|
1843
1843
|
"mask-t-from": _()
|
|
@@ -1846,10 +1846,10 @@ const Qt = (t, r) => {
|
|
|
1846
1846
|
"mask-t-to": _()
|
|
1847
1847
|
}],
|
|
1848
1848
|
"mask-image-t-from-color": [{
|
|
1849
|
-
"mask-t-from":
|
|
1849
|
+
"mask-t-from": b()
|
|
1850
1850
|
}],
|
|
1851
1851
|
"mask-image-t-to-color": [{
|
|
1852
|
-
"mask-t-to":
|
|
1852
|
+
"mask-t-to": b()
|
|
1853
1853
|
}],
|
|
1854
1854
|
"mask-image-r-from-pos": [{
|
|
1855
1855
|
"mask-r-from": _()
|
|
@@ -1858,10 +1858,10 @@ const Qt = (t, r) => {
|
|
|
1858
1858
|
"mask-r-to": _()
|
|
1859
1859
|
}],
|
|
1860
1860
|
"mask-image-r-from-color": [{
|
|
1861
|
-
"mask-r-from":
|
|
1861
|
+
"mask-r-from": b()
|
|
1862
1862
|
}],
|
|
1863
1863
|
"mask-image-r-to-color": [{
|
|
1864
|
-
"mask-r-to":
|
|
1864
|
+
"mask-r-to": b()
|
|
1865
1865
|
}],
|
|
1866
1866
|
"mask-image-b-from-pos": [{
|
|
1867
1867
|
"mask-b-from": _()
|
|
@@ -1870,10 +1870,10 @@ const Qt = (t, r) => {
|
|
|
1870
1870
|
"mask-b-to": _()
|
|
1871
1871
|
}],
|
|
1872
1872
|
"mask-image-b-from-color": [{
|
|
1873
|
-
"mask-b-from":
|
|
1873
|
+
"mask-b-from": b()
|
|
1874
1874
|
}],
|
|
1875
1875
|
"mask-image-b-to-color": [{
|
|
1876
|
-
"mask-b-to":
|
|
1876
|
+
"mask-b-to": b()
|
|
1877
1877
|
}],
|
|
1878
1878
|
"mask-image-l-from-pos": [{
|
|
1879
1879
|
"mask-l-from": _()
|
|
@@ -1882,10 +1882,10 @@ const Qt = (t, r) => {
|
|
|
1882
1882
|
"mask-l-to": _()
|
|
1883
1883
|
}],
|
|
1884
1884
|
"mask-image-l-from-color": [{
|
|
1885
|
-
"mask-l-from":
|
|
1885
|
+
"mask-l-from": b()
|
|
1886
1886
|
}],
|
|
1887
1887
|
"mask-image-l-to-color": [{
|
|
1888
|
-
"mask-l-to":
|
|
1888
|
+
"mask-l-to": b()
|
|
1889
1889
|
}],
|
|
1890
1890
|
"mask-image-x-from-pos": [{
|
|
1891
1891
|
"mask-x-from": _()
|
|
@@ -1894,10 +1894,10 @@ const Qt = (t, r) => {
|
|
|
1894
1894
|
"mask-x-to": _()
|
|
1895
1895
|
}],
|
|
1896
1896
|
"mask-image-x-from-color": [{
|
|
1897
|
-
"mask-x-from":
|
|
1897
|
+
"mask-x-from": b()
|
|
1898
1898
|
}],
|
|
1899
1899
|
"mask-image-x-to-color": [{
|
|
1900
|
-
"mask-x-to":
|
|
1900
|
+
"mask-x-to": b()
|
|
1901
1901
|
}],
|
|
1902
1902
|
"mask-image-y-from-pos": [{
|
|
1903
1903
|
"mask-y-from": _()
|
|
@@ -1906,10 +1906,10 @@ const Qt = (t, r) => {
|
|
|
1906
1906
|
"mask-y-to": _()
|
|
1907
1907
|
}],
|
|
1908
1908
|
"mask-image-y-from-color": [{
|
|
1909
|
-
"mask-y-from":
|
|
1909
|
+
"mask-y-from": b()
|
|
1910
1910
|
}],
|
|
1911
1911
|
"mask-image-y-to-color": [{
|
|
1912
|
-
"mask-y-to":
|
|
1912
|
+
"mask-y-to": b()
|
|
1913
1913
|
}],
|
|
1914
1914
|
"mask-image-radial": [{
|
|
1915
1915
|
"mask-radial": [M, S]
|
|
@@ -1921,10 +1921,10 @@ const Qt = (t, r) => {
|
|
|
1921
1921
|
"mask-radial-to": _()
|
|
1922
1922
|
}],
|
|
1923
1923
|
"mask-image-radial-from-color": [{
|
|
1924
|
-
"mask-radial-from":
|
|
1924
|
+
"mask-radial-from": b()
|
|
1925
1925
|
}],
|
|
1926
1926
|
"mask-image-radial-to-color": [{
|
|
1927
|
-
"mask-radial-to":
|
|
1927
|
+
"mask-radial-to": b()
|
|
1928
1928
|
}],
|
|
1929
1929
|
"mask-image-radial-shape": [{
|
|
1930
1930
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -1948,10 +1948,10 @@ const Qt = (t, r) => {
|
|
|
1948
1948
|
"mask-conic-to": _()
|
|
1949
1949
|
}],
|
|
1950
1950
|
"mask-image-conic-from-color": [{
|
|
1951
|
-
"mask-conic-from":
|
|
1951
|
+
"mask-conic-from": b()
|
|
1952
1952
|
}],
|
|
1953
1953
|
"mask-image-conic-to-color": [{
|
|
1954
|
-
"mask-conic-to":
|
|
1954
|
+
"mask-conic-to": b()
|
|
1955
1955
|
}],
|
|
1956
1956
|
/**
|
|
1957
1957
|
* Mask Mode
|
|
@@ -1972,7 +1972,7 @@ const Qt = (t, r) => {
|
|
|
1972
1972
|
* @see https://tailwindcss.com/docs/mask-position
|
|
1973
1973
|
*/
|
|
1974
1974
|
"mask-position": [{
|
|
1975
|
-
mask:
|
|
1975
|
+
mask: $()
|
|
1976
1976
|
}],
|
|
1977
1977
|
/**
|
|
1978
1978
|
* Mask Repeat
|
|
@@ -2058,7 +2058,7 @@ const Qt = (t, r) => {
|
|
|
2058
2058
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2059
2059
|
*/
|
|
2060
2060
|
"drop-shadow-color": [{
|
|
2061
|
-
"drop-shadow":
|
|
2061
|
+
"drop-shadow": b()
|
|
2062
2062
|
}],
|
|
2063
2063
|
/**
|
|
2064
2064
|
* Grayscale
|
|
@@ -2186,21 +2186,21 @@ const Qt = (t, r) => {
|
|
|
2186
2186
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2187
2187
|
*/
|
|
2188
2188
|
"border-spacing": [{
|
|
2189
|
-
"border-spacing":
|
|
2189
|
+
"border-spacing": f()
|
|
2190
2190
|
}],
|
|
2191
2191
|
/**
|
|
2192
2192
|
* Border Spacing X
|
|
2193
2193
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2194
2194
|
*/
|
|
2195
2195
|
"border-spacing-x": [{
|
|
2196
|
-
"border-spacing-x":
|
|
2196
|
+
"border-spacing-x": f()
|
|
2197
2197
|
}],
|
|
2198
2198
|
/**
|
|
2199
2199
|
* Border Spacing Y
|
|
2200
2200
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2201
2201
|
*/
|
|
2202
2202
|
"border-spacing-y": [{
|
|
2203
|
-
"border-spacing-y":
|
|
2203
|
+
"border-spacing-y": f()
|
|
2204
2204
|
}],
|
|
2205
2205
|
/**
|
|
2206
2206
|
* Table Layout
|
|
@@ -2245,7 +2245,7 @@ const Qt = (t, r) => {
|
|
|
2245
2245
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2246
2246
|
*/
|
|
2247
2247
|
ease: [{
|
|
2248
|
-
ease: ["linear", "initial",
|
|
2248
|
+
ease: ["linear", "initial", x, M, S]
|
|
2249
2249
|
}],
|
|
2250
2250
|
/**
|
|
2251
2251
|
* Transition Delay
|
|
@@ -2429,7 +2429,7 @@ const Qt = (t, r) => {
|
|
|
2429
2429
|
* @see https://tailwindcss.com/docs/accent-color
|
|
2430
2430
|
*/
|
|
2431
2431
|
accent: [{
|
|
2432
|
-
accent:
|
|
2432
|
+
accent: b()
|
|
2433
2433
|
}],
|
|
2434
2434
|
/**
|
|
2435
2435
|
* Appearance
|
|
@@ -2443,7 +2443,7 @@ const Qt = (t, r) => {
|
|
|
2443
2443
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2444
2444
|
*/
|
|
2445
2445
|
"caret-color": [{
|
|
2446
|
-
caret:
|
|
2446
|
+
caret: b()
|
|
2447
2447
|
}],
|
|
2448
2448
|
/**
|
|
2449
2449
|
* Color Scheme
|
|
@@ -2492,126 +2492,126 @@ const Qt = (t, r) => {
|
|
|
2492
2492
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2493
2493
|
*/
|
|
2494
2494
|
"scroll-m": [{
|
|
2495
|
-
"scroll-m":
|
|
2495
|
+
"scroll-m": f()
|
|
2496
2496
|
}],
|
|
2497
2497
|
/**
|
|
2498
2498
|
* Scroll Margin X
|
|
2499
2499
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2500
2500
|
*/
|
|
2501
2501
|
"scroll-mx": [{
|
|
2502
|
-
"scroll-mx":
|
|
2502
|
+
"scroll-mx": f()
|
|
2503
2503
|
}],
|
|
2504
2504
|
/**
|
|
2505
2505
|
* Scroll Margin Y
|
|
2506
2506
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2507
2507
|
*/
|
|
2508
2508
|
"scroll-my": [{
|
|
2509
|
-
"scroll-my":
|
|
2509
|
+
"scroll-my": f()
|
|
2510
2510
|
}],
|
|
2511
2511
|
/**
|
|
2512
2512
|
* Scroll Margin Start
|
|
2513
2513
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2514
2514
|
*/
|
|
2515
2515
|
"scroll-ms": [{
|
|
2516
|
-
"scroll-ms":
|
|
2516
|
+
"scroll-ms": f()
|
|
2517
2517
|
}],
|
|
2518
2518
|
/**
|
|
2519
2519
|
* Scroll Margin End
|
|
2520
2520
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2521
2521
|
*/
|
|
2522
2522
|
"scroll-me": [{
|
|
2523
|
-
"scroll-me":
|
|
2523
|
+
"scroll-me": f()
|
|
2524
2524
|
}],
|
|
2525
2525
|
/**
|
|
2526
2526
|
* Scroll Margin Top
|
|
2527
2527
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2528
2528
|
*/
|
|
2529
2529
|
"scroll-mt": [{
|
|
2530
|
-
"scroll-mt":
|
|
2530
|
+
"scroll-mt": f()
|
|
2531
2531
|
}],
|
|
2532
2532
|
/**
|
|
2533
2533
|
* Scroll Margin Right
|
|
2534
2534
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2535
2535
|
*/
|
|
2536
2536
|
"scroll-mr": [{
|
|
2537
|
-
"scroll-mr":
|
|
2537
|
+
"scroll-mr": f()
|
|
2538
2538
|
}],
|
|
2539
2539
|
/**
|
|
2540
2540
|
* Scroll Margin Bottom
|
|
2541
2541
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2542
2542
|
*/
|
|
2543
2543
|
"scroll-mb": [{
|
|
2544
|
-
"scroll-mb":
|
|
2544
|
+
"scroll-mb": f()
|
|
2545
2545
|
}],
|
|
2546
2546
|
/**
|
|
2547
2547
|
* Scroll Margin Left
|
|
2548
2548
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2549
2549
|
*/
|
|
2550
2550
|
"scroll-ml": [{
|
|
2551
|
-
"scroll-ml":
|
|
2551
|
+
"scroll-ml": f()
|
|
2552
2552
|
}],
|
|
2553
2553
|
/**
|
|
2554
2554
|
* Scroll Padding
|
|
2555
2555
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2556
2556
|
*/
|
|
2557
2557
|
"scroll-p": [{
|
|
2558
|
-
"scroll-p":
|
|
2558
|
+
"scroll-p": f()
|
|
2559
2559
|
}],
|
|
2560
2560
|
/**
|
|
2561
2561
|
* Scroll Padding X
|
|
2562
2562
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2563
2563
|
*/
|
|
2564
2564
|
"scroll-px": [{
|
|
2565
|
-
"scroll-px":
|
|
2565
|
+
"scroll-px": f()
|
|
2566
2566
|
}],
|
|
2567
2567
|
/**
|
|
2568
2568
|
* Scroll Padding Y
|
|
2569
2569
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2570
2570
|
*/
|
|
2571
2571
|
"scroll-py": [{
|
|
2572
|
-
"scroll-py":
|
|
2572
|
+
"scroll-py": f()
|
|
2573
2573
|
}],
|
|
2574
2574
|
/**
|
|
2575
2575
|
* Scroll Padding Start
|
|
2576
2576
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2577
2577
|
*/
|
|
2578
2578
|
"scroll-ps": [{
|
|
2579
|
-
"scroll-ps":
|
|
2579
|
+
"scroll-ps": f()
|
|
2580
2580
|
}],
|
|
2581
2581
|
/**
|
|
2582
2582
|
* Scroll Padding End
|
|
2583
2583
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2584
2584
|
*/
|
|
2585
2585
|
"scroll-pe": [{
|
|
2586
|
-
"scroll-pe":
|
|
2586
|
+
"scroll-pe": f()
|
|
2587
2587
|
}],
|
|
2588
2588
|
/**
|
|
2589
2589
|
* Scroll Padding Top
|
|
2590
2590
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2591
2591
|
*/
|
|
2592
2592
|
"scroll-pt": [{
|
|
2593
|
-
"scroll-pt":
|
|
2593
|
+
"scroll-pt": f()
|
|
2594
2594
|
}],
|
|
2595
2595
|
/**
|
|
2596
2596
|
* Scroll Padding Right
|
|
2597
2597
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2598
2598
|
*/
|
|
2599
2599
|
"scroll-pr": [{
|
|
2600
|
-
"scroll-pr":
|
|
2600
|
+
"scroll-pr": f()
|
|
2601
2601
|
}],
|
|
2602
2602
|
/**
|
|
2603
2603
|
* Scroll Padding Bottom
|
|
2604
2604
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2605
2605
|
*/
|
|
2606
2606
|
"scroll-pb": [{
|
|
2607
|
-
"scroll-pb":
|
|
2607
|
+
"scroll-pb": f()
|
|
2608
2608
|
}],
|
|
2609
2609
|
/**
|
|
2610
2610
|
* Scroll Padding Left
|
|
2611
2611
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2612
2612
|
*/
|
|
2613
2613
|
"scroll-pl": [{
|
|
2614
|
-
"scroll-pl":
|
|
2614
|
+
"scroll-pl": f()
|
|
2615
2615
|
}],
|
|
2616
2616
|
/**
|
|
2617
2617
|
* Scroll Snap Align
|
|
@@ -2689,7 +2689,7 @@ const Qt = (t, r) => {
|
|
|
2689
2689
|
* @see https://tailwindcss.com/docs/fill
|
|
2690
2690
|
*/
|
|
2691
2691
|
fill: [{
|
|
2692
|
-
fill: ["none", ...
|
|
2692
|
+
fill: ["none", ...b()]
|
|
2693
2693
|
}],
|
|
2694
2694
|
/**
|
|
2695
2695
|
* Stroke Width
|
|
@@ -2703,7 +2703,7 @@ const Qt = (t, r) => {
|
|
|
2703
2703
|
* @see https://tailwindcss.com/docs/stroke
|
|
2704
2704
|
*/
|
|
2705
2705
|
stroke: [{
|
|
2706
|
-
stroke: ["none", ...
|
|
2706
|
+
stroke: ["none", ...b()]
|
|
2707
2707
|
}],
|
|
2708
2708
|
// ---------------------
|
|
2709
2709
|
// --- Accessibility ---
|
|
@@ -2771,11 +2771,11 @@ const Qt = (t, r) => {
|
|
|
2771
2771
|
},
|
|
2772
2772
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2773
2773
|
};
|
|
2774
|
-
},
|
|
2774
|
+
}, Dr = /* @__PURE__ */ gr(jr);
|
|
2775
2775
|
function p(...t) {
|
|
2776
|
-
return
|
|
2776
|
+
return Dr(Qt(t));
|
|
2777
2777
|
}
|
|
2778
|
-
const Te =
|
|
2778
|
+
const Te = We.forwardRef(
|
|
2779
2779
|
({ variant: t = "primary", size: r = "md", loading: o, icon: a, animate: n = !0, className: m, children: i, disabled: d, ...s }, c) => {
|
|
2780
2780
|
const u = n !== !1, g = "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", v = {
|
|
2781
2781
|
primary: "bg-primary text-white hover:bg-primary-dark active:bg-primary-dark/90 shadow-sm",
|
|
@@ -2797,7 +2797,7 @@ const Te = Ke.forwardRef(
|
|
|
2797
2797
|
disabled: d || o,
|
|
2798
2798
|
...s,
|
|
2799
2799
|
children: [
|
|
2800
|
-
o ? /* @__PURE__ */ e(
|
|
2800
|
+
o ? /* @__PURE__ */ e(it, { className: p("h-5 w-5", u && "animate-spin") }) : a ? /* @__PURE__ */ e("span", { className: "shrink-0", children: a }) : null,
|
|
2801
2801
|
i
|
|
2802
2802
|
]
|
|
2803
2803
|
}
|
|
@@ -2815,7 +2815,7 @@ const ae = ({
|
|
|
2815
2815
|
matchWidth: i = !0
|
|
2816
2816
|
}) => {
|
|
2817
2817
|
const [d, s] = O(!1), [c, u] = O(null);
|
|
2818
|
-
|
|
2818
|
+
K(() => (s(!0), () => s(!1)), []);
|
|
2819
2819
|
const g = Oe(() => {
|
|
2820
2820
|
if (!t || !r.current) return;
|
|
2821
2821
|
const v = r.current.getBoundingClientRect();
|
|
@@ -2827,12 +2827,12 @@ const ae = ({
|
|
|
2827
2827
|
zIndex: 70
|
|
2828
2828
|
});
|
|
2829
2829
|
}, [r, i, m, t, o]);
|
|
2830
|
-
return
|
|
2830
|
+
return K(() => {
|
|
2831
2831
|
if (t)
|
|
2832
2832
|
return g(), window.addEventListener("resize", g), window.addEventListener("scroll", g, !0), () => {
|
|
2833
2833
|
window.removeEventListener("resize", g), window.removeEventListener("scroll", g, !0);
|
|
2834
2834
|
};
|
|
2835
|
-
}, [t, g]), !d || !t || !c ? null :
|
|
2835
|
+
}, [t, g]), !d || !t || !c ? null : Jt(
|
|
2836
2836
|
/* @__PURE__ */ e(
|
|
2837
2837
|
"div",
|
|
2838
2838
|
{
|
|
@@ -2844,7 +2844,7 @@ const ae = ({
|
|
|
2844
2844
|
),
|
|
2845
2845
|
document.body
|
|
2846
2846
|
);
|
|
2847
|
-
},
|
|
2847
|
+
}, Fr = ({
|
|
2848
2848
|
value: t,
|
|
2849
2849
|
onChange: r,
|
|
2850
2850
|
label: o,
|
|
@@ -2858,44 +2858,44 @@ const ae = ({
|
|
|
2858
2858
|
className: u,
|
|
2859
2859
|
animate: g = !0
|
|
2860
2860
|
}) => {
|
|
2861
|
-
const v = g !== !1, [A, N] = O(!1), [w,
|
|
2862
|
-
|
|
2861
|
+
const v = g !== !1, [A, N] = O(!1), [w, y] = O("bottom"), [x, P] = O(!1), [j, B] = O("bottom"), [E, L] = O(!1), [G, f] = O("bottom"), [z, C] = O(t || /* @__PURE__ */ new Date()), T = W(null), U = W(null), J = W(null), H = W(null), k = W(null), F = W(null);
|
|
2862
|
+
K(() => {
|
|
2863
2863
|
const h = (I) => {
|
|
2864
2864
|
T.current && !T.current.contains(I.target) && (N(!1), P(!1), L(!1));
|
|
2865
2865
|
};
|
|
2866
2866
|
return A && document.addEventListener("mousedown", h), () => {
|
|
2867
2867
|
document.removeEventListener("mousedown", h);
|
|
2868
2868
|
};
|
|
2869
|
-
}, [A]),
|
|
2869
|
+
}, [A]), K(() => {
|
|
2870
2870
|
A || (P(!1), L(!1));
|
|
2871
|
-
}, [A]),
|
|
2871
|
+
}, [A]), K(() => {
|
|
2872
2872
|
if (!A) return;
|
|
2873
2873
|
const h = () => {
|
|
2874
2874
|
if (!U.current) return;
|
|
2875
|
-
const I = U.current.getBoundingClientRect(),
|
|
2876
|
-
if (le >=
|
|
2877
|
-
|
|
2875
|
+
const I = U.current.getBoundingClientRect(), Y = 430, le = window.innerHeight - I.bottom - 8, oe = I.top - 8;
|
|
2876
|
+
if (le >= Y) {
|
|
2877
|
+
y("bottom");
|
|
2878
2878
|
return;
|
|
2879
2879
|
}
|
|
2880
|
-
if (oe >=
|
|
2881
|
-
|
|
2880
|
+
if (oe >= Y) {
|
|
2881
|
+
y("top");
|
|
2882
2882
|
return;
|
|
2883
2883
|
}
|
|
2884
|
-
|
|
2884
|
+
y("bottom");
|
|
2885
2885
|
};
|
|
2886
2886
|
return h(), window.addEventListener("resize", h), window.addEventListener("scroll", h, !0), () => {
|
|
2887
2887
|
window.removeEventListener("resize", h), window.removeEventListener("scroll", h, !0);
|
|
2888
2888
|
};
|
|
2889
|
-
}, [A]),
|
|
2890
|
-
if (!
|
|
2889
|
+
}, [A]), K(() => {
|
|
2890
|
+
if (!x) return;
|
|
2891
2891
|
const h = z.getMonth();
|
|
2892
|
-
|
|
2893
|
-
}, [
|
|
2892
|
+
H.current?.querySelector(`button[data-month="${h}"]`)?.scrollIntoView({ block: "center" });
|
|
2893
|
+
}, [x, z]), K(() => {
|
|
2894
2894
|
if (!E) return;
|
|
2895
2895
|
const h = z.getFullYear();
|
|
2896
2896
|
F.current?.querySelector(`button[data-year="${h}"]`)?.scrollIntoView({ block: "center" });
|
|
2897
2897
|
}, [E, z]);
|
|
2898
|
-
const
|
|
2898
|
+
const V = [
|
|
2899
2899
|
"January",
|
|
2900
2900
|
"February",
|
|
2901
2901
|
"March",
|
|
@@ -2908,12 +2908,12 @@ const ae = ({
|
|
|
2908
2908
|
"October",
|
|
2909
2909
|
"November",
|
|
2910
2910
|
"December"
|
|
2911
|
-
],
|
|
2912
|
-
const I = h.getFullYear(),
|
|
2913
|
-
for (let ve = 0; ve <
|
|
2911
|
+
], b = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], $ = (h) => {
|
|
2912
|
+
const I = h.getFullYear(), Y = h.getMonth(), le = new Date(I, Y, 1), St = new Date(I, Y + 1, 0).getDate(), Mt = le.getDay(), Ie = [];
|
|
2913
|
+
for (let ve = 0; ve < Mt; ve++)
|
|
2914
2914
|
Ie.push(null);
|
|
2915
|
-
for (let ve = 1; ve <=
|
|
2916
|
-
Ie.push(new Date(I,
|
|
2915
|
+
for (let ve = 1; ve <= St; ve++)
|
|
2916
|
+
Ie.push(new Date(I, Y, ve));
|
|
2917
2917
|
return Ie;
|
|
2918
2918
|
}, te = () => {
|
|
2919
2919
|
C(new Date(z.getFullYear(), z.getMonth() - 1, 1));
|
|
@@ -2925,14 +2925,14 @@ const ae = ({
|
|
|
2925
2925
|
C(new Date(h, z.getMonth(), 1)), L(!1);
|
|
2926
2926
|
}, q = () => {
|
|
2927
2927
|
if (P(!1), !E && k.current) {
|
|
2928
|
-
const h = k.current.getBoundingClientRect(), I = window.innerHeight - h.bottom,
|
|
2929
|
-
|
|
2928
|
+
const h = k.current.getBoundingClientRect(), I = window.innerHeight - h.bottom, Y = h.top;
|
|
2929
|
+
f(I < 220 && Y > I ? "top" : "bottom");
|
|
2930
2930
|
}
|
|
2931
2931
|
L((h) => !h);
|
|
2932
2932
|
}, pe = () => {
|
|
2933
|
-
if (L(!1), !
|
|
2934
|
-
const h = J.current.getBoundingClientRect(), I = window.innerHeight - h.bottom,
|
|
2935
|
-
B(I < 220 &&
|
|
2933
|
+
if (L(!1), !x && J.current) {
|
|
2934
|
+
const h = J.current.getBoundingClientRect(), I = window.innerHeight - h.bottom, Y = h.top;
|
|
2935
|
+
B(I < 220 && Y > I ? "top" : "bottom");
|
|
2936
2936
|
}
|
|
2937
2937
|
P((h) => !h);
|
|
2938
2938
|
}, be = (h) => {
|
|
@@ -2941,14 +2941,14 @@ const ae = ({
|
|
|
2941
2941
|
year: "numeric",
|
|
2942
2942
|
month: "short",
|
|
2943
2943
|
day: "numeric"
|
|
2944
|
-
}) : "", xe =
|
|
2944
|
+
}) : "", xe = $(z), X = z.getFullYear(), we = z.getMonth(), Je = s ? s.getFullYear() : X - 100, kt = c ? c.getFullYear() : X + 20, Qe = Array.from({ length: kt - Je + 1 }, (h, I) => Je + I), Ze = (h) => {
|
|
2945
2945
|
if (s) {
|
|
2946
|
-
const I = s.getFullYear(),
|
|
2947
|
-
if (X === I && h <
|
|
2946
|
+
const I = s.getFullYear(), Y = s.getMonth();
|
|
2947
|
+
if (X === I && h < Y) return !0;
|
|
2948
2948
|
}
|
|
2949
2949
|
if (c) {
|
|
2950
|
-
const I = c.getFullYear(),
|
|
2951
|
-
if (X === I && h >
|
|
2950
|
+
const I = c.getFullYear(), Y = c.getMonth();
|
|
2951
|
+
if (X === I && h > Y) return !0;
|
|
2952
2952
|
}
|
|
2953
2953
|
return !1;
|
|
2954
2954
|
}, Pe = w === "bottom" ? { initial: { opacity: 0, y: -10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: -10 } } : { initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: 10 } };
|
|
@@ -2977,7 +2977,7 @@ const ae = ({
|
|
|
2977
2977
|
),
|
|
2978
2978
|
children: [
|
|
2979
2979
|
/* @__PURE__ */ e("span", { className: p("truncate", !t && "text-foreground/50"), children: t ? ye(t) : n }),
|
|
2980
|
-
/* @__PURE__ */ e(
|
|
2980
|
+
/* @__PURE__ */ e(Tt, { className: "w-5 h-5 text-primary shrink-0" })
|
|
2981
2981
|
]
|
|
2982
2982
|
}
|
|
2983
2983
|
),
|
|
@@ -3011,24 +3011,24 @@ const ae = ({
|
|
|
3011
3011
|
className: "h-8 min-w-24 max-w-28 rounded-md border border-border bg-background px-2 text-xs font-medium text-foreground focus:outline-none focus:ring-2 focus:ring-primary flex items-center justify-between gap-1",
|
|
3012
3012
|
"aria-label": "Select month",
|
|
3013
3013
|
"aria-haspopup": "listbox",
|
|
3014
|
-
"aria-expanded":
|
|
3014
|
+
"aria-expanded": x,
|
|
3015
3015
|
children: [
|
|
3016
|
-
/* @__PURE__ */ e("span", { className: "truncate", children:
|
|
3017
|
-
/* @__PURE__ */ e(ce, { className: p("w-4 h-4 text-primary transition-transform",
|
|
3016
|
+
/* @__PURE__ */ e("span", { className: "truncate", children: V[we] }),
|
|
3017
|
+
/* @__PURE__ */ e(ce, { className: p("w-4 h-4 text-primary transition-transform", x && "rotate-180") })
|
|
3018
3018
|
]
|
|
3019
3019
|
}
|
|
3020
3020
|
),
|
|
3021
|
-
|
|
3021
|
+
x && /* @__PURE__ */ e(
|
|
3022
3022
|
"div",
|
|
3023
3023
|
{
|
|
3024
|
-
ref:
|
|
3024
|
+
ref: H,
|
|
3025
3025
|
role: "listbox",
|
|
3026
3026
|
className: p(
|
|
3027
3027
|
"absolute z-60 w-36 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",
|
|
3028
3028
|
j === "bottom" ? "top-full mt-1" : "bottom-full mb-1"
|
|
3029
3029
|
),
|
|
3030
|
-
children:
|
|
3031
|
-
const
|
|
3030
|
+
children: V.map((h, I) => {
|
|
3031
|
+
const Y = Ze(I);
|
|
3032
3032
|
return /* @__PURE__ */ e(
|
|
3033
3033
|
"button",
|
|
3034
3034
|
{
|
|
@@ -3036,13 +3036,13 @@ const ae = ({
|
|
|
3036
3036
|
role: "option",
|
|
3037
3037
|
"data-month": I,
|
|
3038
3038
|
"aria-selected": I === we,
|
|
3039
|
-
onClick: () => !
|
|
3040
|
-
disabled:
|
|
3039
|
+
onClick: () => !Y && re(I),
|
|
3040
|
+
disabled: Y,
|
|
3041
3041
|
className: p(
|
|
3042
3042
|
"w-full px-3 py-2 text-sm text-left transition-colors",
|
|
3043
|
-
!
|
|
3043
|
+
!Y && "hover:bg-secondary",
|
|
3044
3044
|
I === we && "bg-border text-foreground font-medium",
|
|
3045
|
-
|
|
3045
|
+
Y && "text-border-dark cursor-not-allowed"
|
|
3046
3046
|
),
|
|
3047
3047
|
children: h
|
|
3048
3048
|
},
|
|
@@ -3078,7 +3078,7 @@ const ae = ({
|
|
|
3078
3078
|
"absolute z-60 w-28 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",
|
|
3079
3079
|
G === "bottom" ? "top-full mt-1" : "bottom-full mb-1"
|
|
3080
3080
|
),
|
|
3081
|
-
children:
|
|
3081
|
+
children: Qe.map((h) => /* @__PURE__ */ e(
|
|
3082
3082
|
"button",
|
|
3083
3083
|
{
|
|
3084
3084
|
type: "button",
|
|
@@ -3108,7 +3108,7 @@ const ae = ({
|
|
|
3108
3108
|
}
|
|
3109
3109
|
)
|
|
3110
3110
|
] }),
|
|
3111
|
-
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-1 pb-1 border-b border-border", children:
|
|
3111
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-1 pb-1 border-b border-border", children: b.map((h) => /* @__PURE__ */ e(
|
|
3112
3112
|
"div",
|
|
3113
3113
|
{
|
|
3114
3114
|
className: "text-center text-[11px] font-medium text-foreground/70 py-1",
|
|
@@ -3119,7 +3119,7 @@ const ae = ({
|
|
|
3119
3119
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: xe.map((h, I) => {
|
|
3120
3120
|
if (!h)
|
|
3121
3121
|
return /* @__PURE__ */ e("div", { className: "aspect-square" }, `empty-${I}`);
|
|
3122
|
-
const
|
|
3122
|
+
const Y = ge(h, t || null), le = fe(h), oe = _(h);
|
|
3123
3123
|
return /* @__PURE__ */ e(
|
|
3124
3124
|
R.button,
|
|
3125
3125
|
{
|
|
@@ -3131,10 +3131,10 @@ const ae = ({
|
|
|
3131
3131
|
"aspect-square cursor-pointer rounded-lg flex items-center justify-center",
|
|
3132
3132
|
"text-[11px] font-medium transition-all duration-200",
|
|
3133
3133
|
"hover:bg-secondary",
|
|
3134
|
-
|
|
3135
|
-
le && !
|
|
3134
|
+
Y && "bg-primary text-white hover:bg-primary-dark",
|
|
3135
|
+
le && !Y && "border-2 border-primary text-primary",
|
|
3136
3136
|
oe && "text-border-dark cursor-not-allowed hover:bg-transparent",
|
|
3137
|
-
!
|
|
3137
|
+
!Y && !le && !oe && "text-foreground"
|
|
3138
3138
|
),
|
|
3139
3139
|
children: h.getDate()
|
|
3140
3140
|
},
|
|
@@ -3174,24 +3174,24 @@ const ae = ({
|
|
|
3174
3174
|
className: "h-8 min-w-24 max-w-28 rounded-md border border-border bg-background px-2 text-xs font-medium text-foreground focus:outline-none focus:ring-2 focus:ring-primary flex items-center justify-between gap-1",
|
|
3175
3175
|
"aria-label": "Select month",
|
|
3176
3176
|
"aria-haspopup": "listbox",
|
|
3177
|
-
"aria-expanded":
|
|
3177
|
+
"aria-expanded": x,
|
|
3178
3178
|
children: [
|
|
3179
|
-
/* @__PURE__ */ e("span", { className: "truncate", children:
|
|
3180
|
-
/* @__PURE__ */ e(ce, { className: p("w-4 h-4 text-primary transition-transform",
|
|
3179
|
+
/* @__PURE__ */ e("span", { className: "truncate", children: V[we] }),
|
|
3180
|
+
/* @__PURE__ */ e(ce, { className: p("w-4 h-4 text-primary transition-transform", x && "rotate-180") })
|
|
3181
3181
|
]
|
|
3182
3182
|
}
|
|
3183
3183
|
),
|
|
3184
|
-
|
|
3184
|
+
x && /* @__PURE__ */ e(
|
|
3185
3185
|
"div",
|
|
3186
3186
|
{
|
|
3187
|
-
ref:
|
|
3187
|
+
ref: H,
|
|
3188
3188
|
role: "listbox",
|
|
3189
3189
|
className: p(
|
|
3190
3190
|
"absolute z-60 w-36 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",
|
|
3191
3191
|
j === "bottom" ? "top-full mt-1" : "bottom-full mb-1"
|
|
3192
3192
|
),
|
|
3193
|
-
children:
|
|
3194
|
-
const
|
|
3193
|
+
children: V.map((h, I) => {
|
|
3194
|
+
const Y = Ze(I);
|
|
3195
3195
|
return /* @__PURE__ */ e(
|
|
3196
3196
|
"button",
|
|
3197
3197
|
{
|
|
@@ -3199,13 +3199,13 @@ const ae = ({
|
|
|
3199
3199
|
role: "option",
|
|
3200
3200
|
"data-month": I,
|
|
3201
3201
|
"aria-selected": I === we,
|
|
3202
|
-
onClick: () => !
|
|
3203
|
-
disabled:
|
|
3202
|
+
onClick: () => !Y && re(I),
|
|
3203
|
+
disabled: Y,
|
|
3204
3204
|
className: p(
|
|
3205
3205
|
"w-full px-3 py-2 text-sm text-left transition-colors",
|
|
3206
|
-
!
|
|
3206
|
+
!Y && "hover:bg-secondary",
|
|
3207
3207
|
I === we && "bg-border text-foreground font-medium",
|
|
3208
|
-
|
|
3208
|
+
Y && "text-border-dark cursor-not-allowed"
|
|
3209
3209
|
),
|
|
3210
3210
|
children: h
|
|
3211
3211
|
},
|
|
@@ -3241,7 +3241,7 @@ const ae = ({
|
|
|
3241
3241
|
"absolute z-60 w-28 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",
|
|
3242
3242
|
G === "bottom" ? "top-full mt-1" : "bottom-full mb-1"
|
|
3243
3243
|
),
|
|
3244
|
-
children:
|
|
3244
|
+
children: Qe.map((h) => /* @__PURE__ */ e(
|
|
3245
3245
|
"button",
|
|
3246
3246
|
{
|
|
3247
3247
|
type: "button",
|
|
@@ -3271,7 +3271,7 @@ const ae = ({
|
|
|
3271
3271
|
}
|
|
3272
3272
|
)
|
|
3273
3273
|
] }),
|
|
3274
|
-
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-1 pb-1 border-b border-border", children:
|
|
3274
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-1 pb-1 border-b border-border", children: b.map((h) => /* @__PURE__ */ e(
|
|
3275
3275
|
"div",
|
|
3276
3276
|
{
|
|
3277
3277
|
className: "text-center text-[11px] font-medium text-primary/70 py-1",
|
|
@@ -3282,7 +3282,7 @@ const ae = ({
|
|
|
3282
3282
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: xe.map((h, I) => {
|
|
3283
3283
|
if (!h)
|
|
3284
3284
|
return /* @__PURE__ */ e("div", { className: "aspect-square" }, `empty-${I}`);
|
|
3285
|
-
const
|
|
3285
|
+
const Y = ge(h, t || null), le = fe(h), oe = _(h);
|
|
3286
3286
|
return /* @__PURE__ */ e(
|
|
3287
3287
|
"button",
|
|
3288
3288
|
{
|
|
@@ -3293,10 +3293,10 @@ const ae = ({
|
|
|
3293
3293
|
"aspect-square rounded-lg flex items-center justify-center",
|
|
3294
3294
|
"text-[11px] font-medium transition-all duration-200",
|
|
3295
3295
|
"hover:bg-secondary",
|
|
3296
|
-
|
|
3297
|
-
le && !
|
|
3296
|
+
Y && "bg-primary text-white hover:bg-primary-dark",
|
|
3297
|
+
le && !Y && "border-2 border-primary text-primary",
|
|
3298
3298
|
oe && "text-border-dark cursor-not-allowed hover:bg-transparent",
|
|
3299
|
-
!
|
|
3299
|
+
!Y && !le && !oe && "text-foreground"
|
|
3300
3300
|
),
|
|
3301
3301
|
children: h.getDate()
|
|
3302
3302
|
},
|
|
@@ -3569,7 +3569,7 @@ const ae = ({
|
|
|
3569
3569
|
], De = (t) => {
|
|
3570
3570
|
const r = t.toUpperCase().split("").map((o) => 127397 + o.charCodeAt(0));
|
|
3571
3571
|
return String.fromCodePoint(...r);
|
|
3572
|
-
},
|
|
3572
|
+
}, vt = ({
|
|
3573
3573
|
value: t,
|
|
3574
3574
|
onChange: r,
|
|
3575
3575
|
onCountryChange: o,
|
|
@@ -3585,22 +3585,22 @@ const ae = ({
|
|
|
3585
3585
|
animate: v = !0,
|
|
3586
3586
|
className: A
|
|
3587
3587
|
}) => {
|
|
3588
|
-
const N = v !== !1, [w,
|
|
3589
|
-
if (!s || !
|
|
3590
|
-
const T =
|
|
3588
|
+
const N = v !== !1, [w, y] = O(!1), [x, P] = O(""), [j, B] = O("bottom"), E = W(null), L = W(null), G = Le(() => me.find((T) => T.iso2 === t), [t]), f = Le(() => {
|
|
3589
|
+
if (!s || !x.trim()) return me;
|
|
3590
|
+
const T = x.toLowerCase();
|
|
3591
3591
|
return me.filter((U) => U.name.toLowerCase().includes(T) || U.iso2.toLowerCase().includes(T) || U.dialCode.replace(/\s/g, "").includes(T.replace(/\s/g, "")));
|
|
3592
|
-
}, [
|
|
3593
|
-
|
|
3592
|
+
}, [x, s]);
|
|
3593
|
+
K(() => {
|
|
3594
3594
|
const T = (U) => {
|
|
3595
|
-
E.current && !E.current.contains(U.target) && (
|
|
3595
|
+
E.current && !E.current.contains(U.target) && (y(!1), P(""));
|
|
3596
3596
|
};
|
|
3597
3597
|
return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
|
|
3598
|
-
}, []),
|
|
3598
|
+
}, []), K(() => {
|
|
3599
3599
|
if (!w) return;
|
|
3600
3600
|
const T = () => {
|
|
3601
3601
|
if (!L.current) return;
|
|
3602
|
-
const U = L.current.getBoundingClientRect(), J = s ? 360 : 300,
|
|
3603
|
-
if (
|
|
3602
|
+
const U = L.current.getBoundingClientRect(), J = s ? 360 : 300, H = window.innerHeight - U.bottom - 8, k = U.top - 8;
|
|
3603
|
+
if (H >= J) {
|
|
3604
3604
|
B("bottom");
|
|
3605
3605
|
return;
|
|
3606
3606
|
}
|
|
@@ -3617,7 +3617,7 @@ const ae = ({
|
|
|
3617
3617
|
const z = (T) => {
|
|
3618
3618
|
r?.(T);
|
|
3619
3619
|
const U = me.find((J) => J.iso2 === T);
|
|
3620
|
-
U && o?.(U),
|
|
3620
|
+
U && o?.(U), y(!1), P("");
|
|
3621
3621
|
}, C = j === "top" ? { initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: 10 } } : { initial: { opacity: 0, y: -10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: -10 } };
|
|
3622
3622
|
return /* @__PURE__ */ l("div", { ref: E, className: p("w-full space-y-1.5", A), children: [
|
|
3623
3623
|
a && /* @__PURE__ */ l("label", { className: "block text-sm font-medium text-foreground", children: [
|
|
@@ -3629,7 +3629,7 @@ const ae = ({
|
|
|
3629
3629
|
"button",
|
|
3630
3630
|
{
|
|
3631
3631
|
type: "button",
|
|
3632
|
-
onClick: () => !g &&
|
|
3632
|
+
onClick: () => !g && y(!w),
|
|
3633
3633
|
disabled: g,
|
|
3634
3634
|
"aria-haspopup": "listbox",
|
|
3635
3635
|
"aria-expanded": w,
|
|
@@ -3679,12 +3679,12 @@ const ae = ({
|
|
|
3679
3679
|
{
|
|
3680
3680
|
type: "text",
|
|
3681
3681
|
placeholder: "Search country or code",
|
|
3682
|
-
value:
|
|
3682
|
+
value: x,
|
|
3683
3683
|
onChange: (T) => P(T.target.value),
|
|
3684
3684
|
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"
|
|
3685
3685
|
}
|
|
3686
3686
|
),
|
|
3687
|
-
|
|
3687
|
+
x && /* @__PURE__ */ e(
|
|
3688
3688
|
"button",
|
|
3689
3689
|
{
|
|
3690
3690
|
type: "button",
|
|
@@ -3712,7 +3712,7 @@ const ae = ({
|
|
|
3712
3712
|
children: /* @__PURE__ */ e("span", { children: "None" })
|
|
3713
3713
|
}
|
|
3714
3714
|
),
|
|
3715
|
-
|
|
3715
|
+
f.map((T) => /* @__PURE__ */ l(
|
|
3716
3716
|
"button",
|
|
3717
3717
|
{
|
|
3718
3718
|
type: "button",
|
|
@@ -3748,12 +3748,12 @@ const ae = ({
|
|
|
3748
3748
|
{
|
|
3749
3749
|
type: "text",
|
|
3750
3750
|
placeholder: "Search country or code",
|
|
3751
|
-
value:
|
|
3751
|
+
value: x,
|
|
3752
3752
|
onChange: (T) => P(T.target.value),
|
|
3753
3753
|
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"
|
|
3754
3754
|
}
|
|
3755
3755
|
),
|
|
3756
|
-
|
|
3756
|
+
x && /* @__PURE__ */ e(
|
|
3757
3757
|
"button",
|
|
3758
3758
|
{
|
|
3759
3759
|
type: "button",
|
|
@@ -3781,7 +3781,7 @@ const ae = ({
|
|
|
3781
3781
|
children: /* @__PURE__ */ e("span", { children: "None" })
|
|
3782
3782
|
}
|
|
3783
3783
|
),
|
|
3784
|
-
|
|
3784
|
+
f.map((T) => /* @__PURE__ */ l(
|
|
3785
3785
|
"button",
|
|
3786
3786
|
{
|
|
3787
3787
|
type: "button",
|
|
@@ -3817,15 +3817,15 @@ const ae = ({
|
|
|
3817
3817
|
d && !i && /* @__PURE__ */ e("p", { className: "text-sm text-primary/70", children: d })
|
|
3818
3818
|
] });
|
|
3819
3819
|
};
|
|
3820
|
-
|
|
3820
|
+
vt.displayName = "CountrySelect";
|
|
3821
3821
|
const Fe = (t) => {
|
|
3822
3822
|
const r = t.toUpperCase().split("").map((o) => 127397 + o.charCodeAt(0));
|
|
3823
3823
|
return String.fromCodePoint(...r);
|
|
3824
|
-
},
|
|
3824
|
+
}, Or = () => {
|
|
3825
3825
|
if (typeof navigator > "u") return null;
|
|
3826
3826
|
const r = (navigator.language || "").match(/[-_](\w{2})$/);
|
|
3827
3827
|
return r ? r[1].toUpperCase() : null;
|
|
3828
|
-
}, ze = (t) => t.replace(/\s/g, ""),
|
|
3828
|
+
}, ze = (t) => t.replace(/\s/g, ""), at = (t) => {
|
|
3829
3829
|
const r = t.replace(/\s/g, "");
|
|
3830
3830
|
return r.startsWith("+") ? [...me].sort(
|
|
3831
3831
|
(a, n) => ze(n.dialCode).length - ze(a.dialCode).length
|
|
@@ -3833,7 +3833,7 @@ const Fe = (t) => {
|
|
|
3833
3833
|
const n = ze(a.dialCode);
|
|
3834
3834
|
return r.startsWith(n);
|
|
3835
3835
|
}) : void 0;
|
|
3836
|
-
},
|
|
3836
|
+
}, Ct = ({
|
|
3837
3837
|
value: t,
|
|
3838
3838
|
onChange: r,
|
|
3839
3839
|
country: o,
|
|
@@ -3850,35 +3850,35 @@ const Fe = (t) => {
|
|
|
3850
3850
|
required: A,
|
|
3851
3851
|
className: N,
|
|
3852
3852
|
placeholder: w,
|
|
3853
|
-
...
|
|
3853
|
+
...y
|
|
3854
3854
|
}) => {
|
|
3855
|
-
const
|
|
3856
|
-
|
|
3855
|
+
const x = g !== !1, [P, j] = O(!1), [B, E] = O(""), [L, G] = O(a), [f, z] = O("bottom"), C = W(null), T = W(null), U = W(null), J = W(!1);
|
|
3856
|
+
K(() => {
|
|
3857
3857
|
o && G(o.toUpperCase());
|
|
3858
|
-
}, [o]),
|
|
3858
|
+
}, [o]), K(() => {
|
|
3859
3859
|
if (!o && n) {
|
|
3860
|
-
const
|
|
3861
|
-
|
|
3860
|
+
const b = Or();
|
|
3861
|
+
b && G(b);
|
|
3862
3862
|
}
|
|
3863
|
-
}, [n, o]),
|
|
3864
|
-
const
|
|
3865
|
-
C.current && !C.current.contains(
|
|
3863
|
+
}, [n, o]), K(() => {
|
|
3864
|
+
const b = ($) => {
|
|
3865
|
+
C.current && !C.current.contains($.target) && (j(!1), E(""));
|
|
3866
3866
|
};
|
|
3867
|
-
return document.addEventListener("mousedown",
|
|
3867
|
+
return document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b);
|
|
3868
3868
|
}, []);
|
|
3869
|
-
const
|
|
3870
|
-
const
|
|
3871
|
-
return me.find((te) => te.iso2 ===
|
|
3869
|
+
const H = Le(() => {
|
|
3870
|
+
const b = t ? at(t) : void 0, $ = (o || L || a).toUpperCase();
|
|
3871
|
+
return me.find((te) => te.iso2 === $) || b || me[0];
|
|
3872
3872
|
}, [o, L, a, t]);
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
}, [
|
|
3876
|
-
J.current || r && (t ?? "").trim() === "" && (J.current = !0, r(
|
|
3877
|
-
}, [r,
|
|
3873
|
+
K(() => {
|
|
3874
|
+
H && U.current !== H.iso2 && (U.current = H.iso2, m?.(H));
|
|
3875
|
+
}, [H, m]), K(() => {
|
|
3876
|
+
J.current || r && (t ?? "").trim() === "" && (J.current = !0, r(H.dialCode));
|
|
3877
|
+
}, [r, H.dialCode, t]), K(() => {
|
|
3878
3878
|
if (!P) return;
|
|
3879
|
-
const
|
|
3879
|
+
const b = () => {
|
|
3880
3880
|
if (!T.current) return;
|
|
3881
|
-
const
|
|
3881
|
+
const $ = T.current.getBoundingClientRect(), te = c ? 360 : 300, ie = window.innerHeight - $.bottom - 8, re = $.top - 8;
|
|
3882
3882
|
if (ie >= te) {
|
|
3883
3883
|
z("bottom");
|
|
3884
3884
|
return;
|
|
@@ -3889,20 +3889,20 @@ const Fe = (t) => {
|
|
|
3889
3889
|
}
|
|
3890
3890
|
z("bottom");
|
|
3891
3891
|
};
|
|
3892
|
-
return
|
|
3893
|
-
window.removeEventListener("resize",
|
|
3892
|
+
return b(), window.addEventListener("resize", b), window.addEventListener("scroll", b, !0), () => {
|
|
3893
|
+
window.removeEventListener("resize", b), window.removeEventListener("scroll", b, !0);
|
|
3894
3894
|
};
|
|
3895
3895
|
}, [P, c]);
|
|
3896
3896
|
const k = Le(() => {
|
|
3897
3897
|
if (!c || !B.trim()) return me;
|
|
3898
|
-
const
|
|
3899
|
-
return me.filter((
|
|
3900
|
-
}, [B, c]), F = (
|
|
3901
|
-
o || G(
|
|
3902
|
-
const
|
|
3903
|
-
let re =
|
|
3904
|
-
|
|
3905
|
-
},
|
|
3898
|
+
const b = B.toLowerCase();
|
|
3899
|
+
return me.filter(($) => $.name.toLowerCase().includes(b) || $.iso2.toLowerCase().includes(b) || $.dialCode.replace(/\s/g, "").includes(b.replace(/\s/g, "")));
|
|
3900
|
+
}, [B, c]), F = (b) => {
|
|
3901
|
+
o || G(b.iso2), m?.(b);
|
|
3902
|
+
const $ = (t ?? "").replace(/\s/g, ""), te = at($), ie = te ? ze(te.dialCode) : "";
|
|
3903
|
+
let re = b.dialCode;
|
|
3904
|
+
$ && (ie && $.startsWith(ie) ? re = `${b.dialCode}${$.slice(ie.length)}` : $.startsWith("+") ? re = `${b.dialCode}${$.replace(/^\+[\d-]*/, "")}` : re = `${b.dialCode}${$}`), r?.(re), j(!1), E("");
|
|
3905
|
+
}, V = f === "top" ? { initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: 10 } } : { initial: { opacity: 0, y: -10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: -10 } };
|
|
3906
3906
|
return /* @__PURE__ */ l("div", { ref: C, className: p("w-full space-y-1.5", N), children: [
|
|
3907
3907
|
i && /* @__PURE__ */ l("label", { className: "block text-sm font-medium text-foreground", children: [
|
|
3908
3908
|
i,
|
|
@@ -3934,8 +3934,8 @@ const Fe = (t) => {
|
|
|
3934
3934
|
"aria-haspopup": "listbox",
|
|
3935
3935
|
"aria-expanded": P,
|
|
3936
3936
|
children: [
|
|
3937
|
-
u && /* @__PURE__ */ e("span", { className: "text-base", "aria-hidden": !0, children: Fe(
|
|
3938
|
-
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-foreground", children:
|
|
3937
|
+
u && /* @__PURE__ */ e("span", { className: "text-base", "aria-hidden": !0, children: Fe(H.iso2) }),
|
|
3938
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-foreground", children: H.iso2 }),
|
|
3939
3939
|
/* @__PURE__ */ e(
|
|
3940
3940
|
ce,
|
|
3941
3941
|
{
|
|
@@ -3954,8 +3954,8 @@ const Fe = (t) => {
|
|
|
3954
3954
|
type: "tel",
|
|
3955
3955
|
inputMode: "tel",
|
|
3956
3956
|
value: t ?? "",
|
|
3957
|
-
onChange: (
|
|
3958
|
-
placeholder: w || `${
|
|
3957
|
+
onChange: (b) => r?.(b.target.value),
|
|
3958
|
+
placeholder: w || `${H.dialCode} Phone number`,
|
|
3959
3959
|
disabled: v,
|
|
3960
3960
|
required: A,
|
|
3961
3961
|
className: p(
|
|
@@ -3963,18 +3963,18 @@ const Fe = (t) => {
|
|
|
3963
3963
|
"placeholder:text-foreground/50 focus:outline-none",
|
|
3964
3964
|
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
3965
3965
|
),
|
|
3966
|
-
...
|
|
3966
|
+
...y
|
|
3967
3967
|
}
|
|
3968
3968
|
)
|
|
3969
3969
|
]
|
|
3970
3970
|
}
|
|
3971
3971
|
),
|
|
3972
|
-
|
|
3972
|
+
x ? /* @__PURE__ */ e(ne, { children: P ? /* @__PURE__ */ e(ae, { open: P, anchorRef: T, placement: f, children: /* @__PURE__ */ l(
|
|
3973
3973
|
R.div,
|
|
3974
3974
|
{
|
|
3975
|
-
initial:
|
|
3976
|
-
animate:
|
|
3977
|
-
exit:
|
|
3975
|
+
initial: V.initial,
|
|
3976
|
+
animate: V.animate,
|
|
3977
|
+
exit: V.exit,
|
|
3978
3978
|
transition: { duration: 0.2 },
|
|
3979
3979
|
role: "listbox",
|
|
3980
3980
|
className: "z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",
|
|
@@ -3987,7 +3987,7 @@ const Fe = (t) => {
|
|
|
3987
3987
|
type: "text",
|
|
3988
3988
|
placeholder: "Search country or code",
|
|
3989
3989
|
value: B,
|
|
3990
|
-
onChange: (
|
|
3990
|
+
onChange: (b) => E(b.target.value),
|
|
3991
3991
|
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"
|
|
3992
3992
|
}
|
|
3993
3993
|
),
|
|
@@ -4002,29 +4002,29 @@ const Fe = (t) => {
|
|
|
4002
4002
|
}
|
|
4003
4003
|
)
|
|
4004
4004
|
] }) }),
|
|
4005
|
-
/* @__PURE__ */ e("div", { className: "overflow-y-auto max-h-64 p-2 space-y-1", children: k.map((
|
|
4005
|
+
/* @__PURE__ */ e("div", { className: "overflow-y-auto max-h-64 p-2 space-y-1", children: k.map((b) => /* @__PURE__ */ l(
|
|
4006
4006
|
"button",
|
|
4007
4007
|
{
|
|
4008
4008
|
type: "button",
|
|
4009
4009
|
role: "option",
|
|
4010
|
-
"aria-selected":
|
|
4011
|
-
onClick: () => F(
|
|
4010
|
+
"aria-selected": b.iso2 === H.iso2,
|
|
4011
|
+
onClick: () => F(b),
|
|
4012
4012
|
className: p(
|
|
4013
4013
|
"w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer",
|
|
4014
4014
|
"hover:bg-secondary transition-colors",
|
|
4015
|
-
|
|
4015
|
+
b.iso2 === H.iso2 && "bg-border text-foreground"
|
|
4016
4016
|
),
|
|
4017
4017
|
children: [
|
|
4018
|
-
u && /* @__PURE__ */ e("span", { className: "text-base", "aria-hidden": !0, children: Fe(
|
|
4019
|
-
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-foreground wrap-break-word whitespace-normal", children:
|
|
4020
|
-
/* @__PURE__ */ e("span", { className: "ml-auto text-xs text-primary/70", children:
|
|
4018
|
+
u && /* @__PURE__ */ e("span", { className: "text-base", "aria-hidden": !0, children: Fe(b.iso2) }),
|
|
4019
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-foreground wrap-break-word whitespace-normal", children: b.name }),
|
|
4020
|
+
/* @__PURE__ */ e("span", { className: "ml-auto text-xs text-primary/70", children: b.dialCode })
|
|
4021
4021
|
]
|
|
4022
4022
|
},
|
|
4023
|
-
|
|
4023
|
+
b.iso2
|
|
4024
4024
|
)) })
|
|
4025
4025
|
]
|
|
4026
4026
|
}
|
|
4027
|
-
) }) : null }) : P && /* @__PURE__ */ e(ae, { open: P, anchorRef: T, placement:
|
|
4027
|
+
) }) : null }) : P && /* @__PURE__ */ e(ae, { open: P, anchorRef: T, placement: f, children: /* @__PURE__ */ l(
|
|
4028
4028
|
"div",
|
|
4029
4029
|
{
|
|
4030
4030
|
role: "listbox",
|
|
@@ -4038,7 +4038,7 @@ const Fe = (t) => {
|
|
|
4038
4038
|
type: "text",
|
|
4039
4039
|
placeholder: "Search country or code",
|
|
4040
4040
|
value: B,
|
|
4041
|
-
onChange: (
|
|
4041
|
+
onChange: (b) => E(b.target.value),
|
|
4042
4042
|
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"
|
|
4043
4043
|
}
|
|
4044
4044
|
),
|
|
@@ -4053,25 +4053,25 @@ const Fe = (t) => {
|
|
|
4053
4053
|
}
|
|
4054
4054
|
)
|
|
4055
4055
|
] }) }),
|
|
4056
|
-
/* @__PURE__ */ e("div", { className: "overflow-y-auto max-h-64 p-2 space-y-1", children: k.map((
|
|
4056
|
+
/* @__PURE__ */ e("div", { className: "overflow-y-auto max-h-64 p-2 space-y-1", children: k.map((b) => /* @__PURE__ */ l(
|
|
4057
4057
|
"button",
|
|
4058
4058
|
{
|
|
4059
4059
|
type: "button",
|
|
4060
4060
|
role: "option",
|
|
4061
|
-
"aria-selected":
|
|
4062
|
-
onClick: () => F(
|
|
4061
|
+
"aria-selected": b.iso2 === H.iso2,
|
|
4062
|
+
onClick: () => F(b),
|
|
4063
4063
|
className: p(
|
|
4064
4064
|
"w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer",
|
|
4065
4065
|
"hover:bg-secondary transition-colors",
|
|
4066
|
-
|
|
4066
|
+
b.iso2 === H.iso2 && "bg-border text-foreground"
|
|
4067
4067
|
),
|
|
4068
4068
|
children: [
|
|
4069
|
-
u && /* @__PURE__ */ e("span", { className: "text-base", "aria-hidden": !0, children: Fe(
|
|
4070
|
-
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-foreground wrap-break-word whitespace-normal", children:
|
|
4071
|
-
/* @__PURE__ */ e("span", { className: "ml-auto text-xs text-primary/70", children:
|
|
4069
|
+
u && /* @__PURE__ */ e("span", { className: "text-base", "aria-hidden": !0, children: Fe(b.iso2) }),
|
|
4070
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-foreground wrap-break-word whitespace-normal", children: b.name }),
|
|
4071
|
+
/* @__PURE__ */ e("span", { className: "ml-auto text-xs text-primary/70", children: b.dialCode })
|
|
4072
4072
|
]
|
|
4073
4073
|
},
|
|
4074
|
-
|
|
4074
|
+
b.iso2
|
|
4075
4075
|
)) })
|
|
4076
4076
|
]
|
|
4077
4077
|
}
|
|
@@ -4080,7 +4080,7 @@ const Fe = (t) => {
|
|
|
4080
4080
|
d && /* @__PURE__ */ e(
|
|
4081
4081
|
R.p,
|
|
4082
4082
|
{
|
|
4083
|
-
...
|
|
4083
|
+
...x ? { initial: { opacity: 0, y: -5 }, animate: { opacity: 1, y: 0 } } : {},
|
|
4084
4084
|
className: "text-sm text-error",
|
|
4085
4085
|
children: d
|
|
4086
4086
|
}
|
|
@@ -4088,8 +4088,8 @@ const Fe = (t) => {
|
|
|
4088
4088
|
s && !d && /* @__PURE__ */ e("p", { className: "text-sm text-primary/70", children: s })
|
|
4089
4089
|
] });
|
|
4090
4090
|
};
|
|
4091
|
-
|
|
4092
|
-
const
|
|
4091
|
+
Ct.displayName = "PhoneInput";
|
|
4092
|
+
const Ur = Ne(
|
|
4093
4093
|
({
|
|
4094
4094
|
label: t,
|
|
4095
4095
|
error: r,
|
|
@@ -4107,12 +4107,12 @@ const Or = Ne(
|
|
|
4107
4107
|
onValueChange: A,
|
|
4108
4108
|
...N
|
|
4109
4109
|
}, w) => {
|
|
4110
|
-
const
|
|
4110
|
+
const y = m !== !1, [x, P] = O(!1), j = (L) => {
|
|
4111
4111
|
v?.(L), A?.(L);
|
|
4112
4112
|
};
|
|
4113
4113
|
if (d === "phone")
|
|
4114
4114
|
return /* @__PURE__ */ e(
|
|
4115
|
-
|
|
4115
|
+
Ct,
|
|
4116
4116
|
{
|
|
4117
4117
|
label: t,
|
|
4118
4118
|
error: r,
|
|
@@ -4128,7 +4128,7 @@ const Or = Ne(
|
|
|
4128
4128
|
);
|
|
4129
4129
|
if (d === "country")
|
|
4130
4130
|
return /* @__PURE__ */ e(
|
|
4131
|
-
|
|
4131
|
+
vt,
|
|
4132
4132
|
{
|
|
4133
4133
|
label: t,
|
|
4134
4134
|
error: r,
|
|
@@ -4144,7 +4144,7 @@ const Or = Ne(
|
|
|
4144
4144
|
);
|
|
4145
4145
|
if (d === "date")
|
|
4146
4146
|
return /* @__PURE__ */ e(
|
|
4147
|
-
|
|
4147
|
+
Fr,
|
|
4148
4148
|
{
|
|
4149
4149
|
label: t,
|
|
4150
4150
|
error: r,
|
|
@@ -4170,7 +4170,7 @@ const Or = Ne(
|
|
|
4170
4170
|
"input",
|
|
4171
4171
|
{
|
|
4172
4172
|
ref: w,
|
|
4173
|
-
type: B &&
|
|
4173
|
+
type: B && x ? "text" : d,
|
|
4174
4174
|
className: p(
|
|
4175
4175
|
"w-full rounded-md border transition-all duration-200",
|
|
4176
4176
|
"bg-background text-foreground placeholder:text-foreground/50",
|
|
@@ -4199,7 +4199,7 @@ const Or = Ne(
|
|
|
4199
4199
|
R.button,
|
|
4200
4200
|
{
|
|
4201
4201
|
type: "button",
|
|
4202
|
-
onClick: () => P(!
|
|
4202
|
+
onClick: () => P(!x),
|
|
4203
4203
|
className: "absolute text-primary hover:text-primary-dark transition-colors",
|
|
4204
4204
|
style: {
|
|
4205
4205
|
right: "14px",
|
|
@@ -4208,11 +4208,11 @@ const Or = Ne(
|
|
|
4208
4208
|
alignItems: "center",
|
|
4209
4209
|
justifyContent: "center"
|
|
4210
4210
|
},
|
|
4211
|
-
"aria-label":
|
|
4212
|
-
whileTap:
|
|
4211
|
+
"aria-label": x ? "Hide password" : "Show password",
|
|
4212
|
+
whileTap: y ? { scale: 0.9, y: "-50%" } : void 0,
|
|
4213
4213
|
animate: { y: "-50%" },
|
|
4214
|
-
transition:
|
|
4215
|
-
children:
|
|
4214
|
+
transition: y ? { duration: 0.1 } : { duration: 0 },
|
|
4215
|
+
children: x ? /* @__PURE__ */ e(zt, { className: "w-5 h-5" }) : /* @__PURE__ */ e(Lt, { className: "w-5 h-5" })
|
|
4216
4216
|
}
|
|
4217
4217
|
),
|
|
4218
4218
|
n && !B && /* @__PURE__ */ e("div", { className: "absolute flex items-center pointer-events-none text-primary", style: { right: "14px", top: "50%", transform: "translateY(-50%)" }, children: n })
|
|
@@ -4220,7 +4220,7 @@ const Or = Ne(
|
|
|
4220
4220
|
r && /* @__PURE__ */ e(
|
|
4221
4221
|
R.p,
|
|
4222
4222
|
{
|
|
4223
|
-
...
|
|
4223
|
+
...y ? { initial: { opacity: 0, y: -5 }, animate: { opacity: 1, y: 0 } } : {},
|
|
4224
4224
|
className: "text-sm text-error",
|
|
4225
4225
|
children: r
|
|
4226
4226
|
}
|
|
@@ -4229,8 +4229,8 @@ const Or = Ne(
|
|
|
4229
4229
|
] });
|
|
4230
4230
|
}
|
|
4231
4231
|
);
|
|
4232
|
-
|
|
4233
|
-
const
|
|
4232
|
+
Ur.displayName = "Input";
|
|
4233
|
+
const Vr = Ne(
|
|
4234
4234
|
({ label: t, error: r, helperText: o, className: a, required: n, animate: m = !0, ...i }, d) => {
|
|
4235
4235
|
const s = m !== !1;
|
|
4236
4236
|
return /* @__PURE__ */ l(
|
|
@@ -4274,8 +4274,8 @@ const Ur = Ne(
|
|
|
4274
4274
|
);
|
|
4275
4275
|
}
|
|
4276
4276
|
);
|
|
4277
|
-
|
|
4278
|
-
const
|
|
4277
|
+
Vr.displayName = "Textarea";
|
|
4278
|
+
const $e = Ne(
|
|
4279
4279
|
({ label: t, description: r, className: o, checked: a, defaultChecked: n, onChange: m, animate: i = !0, ...d }, s) => {
|
|
4280
4280
|
const c = i !== !1, [u, g] = O(n || !1), v = a !== void 0 ? a : u;
|
|
4281
4281
|
return /* @__PURE__ */ l("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
|
|
@@ -4305,7 +4305,7 @@ const Vr = Ne(
|
|
|
4305
4305
|
o
|
|
4306
4306
|
),
|
|
4307
4307
|
whileTap: c ? { scale: 0.95 } : void 0,
|
|
4308
|
-
children: /* @__PURE__ */ e(
|
|
4308
|
+
children: /* @__PURE__ */ e(st, { className: p(
|
|
4309
4309
|
"w-4 h-4 text-white transition-opacity duration-200",
|
|
4310
4310
|
v ? "opacity-100" : "opacity-0"
|
|
4311
4311
|
) })
|
|
@@ -4319,7 +4319,7 @@ const Vr = Ne(
|
|
|
4319
4319
|
] });
|
|
4320
4320
|
}
|
|
4321
4321
|
);
|
|
4322
|
-
|
|
4322
|
+
$e.displayName = "Checkbox";
|
|
4323
4323
|
const lo = ({
|
|
4324
4324
|
options: t,
|
|
4325
4325
|
value: r,
|
|
@@ -4493,9 +4493,9 @@ const co = ({
|
|
|
4493
4493
|
className: u,
|
|
4494
4494
|
animate: g = !0
|
|
4495
4495
|
}) => {
|
|
4496
|
-
const v = g !== !1, A = t + r, N = A > 0 ? t / A * 100 : 50, w = A > 0 ? r / A * 100 : 50,
|
|
4497
|
-
const P = i -
|
|
4498
|
-
o(
|
|
4496
|
+
const v = g !== !1, A = t + r, N = A > 0 ? t / A * 100 : 50, w = A > 0 ? r / A * 100 : 50, y = (x) => {
|
|
4497
|
+
const P = i - x;
|
|
4498
|
+
o(x, Math.max(m, Math.min(i, P)));
|
|
4499
4499
|
};
|
|
4500
4500
|
return /* @__PURE__ */ l("div", { className: p("w-full space-y-3", u), children: [
|
|
4501
4501
|
/* @__PURE__ */ l("div", { className: "space-y-2", children: [
|
|
@@ -4524,7 +4524,7 @@ const co = ({
|
|
|
4524
4524
|
max: i,
|
|
4525
4525
|
step: d,
|
|
4526
4526
|
value: t,
|
|
4527
|
-
onChange: (
|
|
4527
|
+
onChange: (x) => y(Number(x.target.value)),
|
|
4528
4528
|
disabled: c,
|
|
4529
4529
|
className: "absolute inset-0 w-full opacity-0 cursor-pointer disabled:cursor-not-allowed"
|
|
4530
4530
|
}
|
|
@@ -4557,7 +4557,7 @@ const co = ({
|
|
|
4557
4557
|
max: i,
|
|
4558
4558
|
step: d,
|
|
4559
4559
|
value: r,
|
|
4560
|
-
onChange: (
|
|
4560
|
+
onChange: (x) => y(i - Number(x.target.value)),
|
|
4561
4561
|
disabled: c,
|
|
4562
4562
|
className: "absolute inset-0 w-full opacity-0 cursor-pointer disabled:cursor-not-allowed"
|
|
4563
4563
|
}
|
|
@@ -4583,36 +4583,36 @@ const co = ({
|
|
|
4583
4583
|
className: c,
|
|
4584
4584
|
animate: u = !0
|
|
4585
4585
|
}) => {
|
|
4586
|
-
const g = u !== !1, [v, A] = O(!1), [N, w] = O(""), [
|
|
4587
|
-
(
|
|
4586
|
+
const g = u !== !1, [v, A] = O(!1), [N, w] = O(""), [y, x] = O("bottom"), P = W(null), j = W(null), B = t.find((f) => f.value === r), E = i ? t.filter(
|
|
4587
|
+
(f) => f.label.toLowerCase().includes(N.toLowerCase())
|
|
4588
4588
|
) : t;
|
|
4589
|
-
|
|
4590
|
-
const
|
|
4589
|
+
K(() => {
|
|
4590
|
+
const f = (z) => {
|
|
4591
4591
|
P.current && !P.current.contains(z.target) && (A(!1), w(""));
|
|
4592
4592
|
};
|
|
4593
|
-
return document.addEventListener("mousedown",
|
|
4594
|
-
}, []),
|
|
4593
|
+
return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
|
|
4594
|
+
}, []), K(() => {
|
|
4595
4595
|
if (!v) return;
|
|
4596
|
-
const
|
|
4596
|
+
const f = () => {
|
|
4597
4597
|
if (!j.current) return;
|
|
4598
4598
|
const z = j.current.getBoundingClientRect(), C = i ? 360 : 300, T = window.innerHeight - z.bottom - 8, U = z.top - 8;
|
|
4599
4599
|
if (T >= C) {
|
|
4600
|
-
|
|
4600
|
+
x("bottom");
|
|
4601
4601
|
return;
|
|
4602
4602
|
}
|
|
4603
4603
|
if (U >= C) {
|
|
4604
|
-
|
|
4604
|
+
x("top");
|
|
4605
4605
|
return;
|
|
4606
4606
|
}
|
|
4607
|
-
|
|
4607
|
+
x("bottom");
|
|
4608
4608
|
};
|
|
4609
|
-
return
|
|
4610
|
-
window.removeEventListener("resize",
|
|
4609
|
+
return f(), window.addEventListener("resize", f), window.addEventListener("scroll", f, !0), () => {
|
|
4610
|
+
window.removeEventListener("resize", f), window.removeEventListener("scroll", f, !0);
|
|
4611
4611
|
};
|
|
4612
4612
|
}, [v, i]);
|
|
4613
|
-
const L = (
|
|
4614
|
-
o(
|
|
4615
|
-
}, G =
|
|
4613
|
+
const L = (f) => {
|
|
4614
|
+
o(f), A(!1), w("");
|
|
4615
|
+
}, G = y === "top" ? { initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: 10 } } : { initial: { opacity: 0, y: -10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: -10 } };
|
|
4616
4616
|
return /* @__PURE__ */ l("div", { ref: P, className: p("relative w-full", c), children: [
|
|
4617
4617
|
n && /* @__PURE__ */ e("label", { className: "block mb-1.5 text-sm font-medium text-foreground", children: n }),
|
|
4618
4618
|
/* @__PURE__ */ l(
|
|
@@ -4649,7 +4649,7 @@ const co = ({
|
|
|
4649
4649
|
]
|
|
4650
4650
|
}
|
|
4651
4651
|
),
|
|
4652
|
-
g ? /* @__PURE__ */ e(ne, { children: v ? /* @__PURE__ */ e(ae, { open: v, anchorRef: j, placement:
|
|
4652
|
+
g ? /* @__PURE__ */ e(ne, { children: v ? /* @__PURE__ */ e(ae, { open: v, anchorRef: j, placement: y, children: /* @__PURE__ */ l(
|
|
4653
4653
|
R.div,
|
|
4654
4654
|
{
|
|
4655
4655
|
initial: G.initial,
|
|
@@ -4666,7 +4666,7 @@ const co = ({
|
|
|
4666
4666
|
type: "text",
|
|
4667
4667
|
placeholder: "Search...",
|
|
4668
4668
|
value: N,
|
|
4669
|
-
onChange: (
|
|
4669
|
+
onChange: (f) => w(f.target.value),
|
|
4670
4670
|
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"
|
|
4671
4671
|
}
|
|
4672
4672
|
),
|
|
@@ -4694,26 +4694,26 @@ const co = ({
|
|
|
4694
4694
|
children: /* @__PURE__ */ e("span", { children: "None" })
|
|
4695
4695
|
}
|
|
4696
4696
|
),
|
|
4697
|
-
E.length > 0 ? E.map((
|
|
4697
|
+
E.length > 0 ? E.map((f) => /* @__PURE__ */ l(
|
|
4698
4698
|
"button",
|
|
4699
4699
|
{
|
|
4700
|
-
onClick: () => L(
|
|
4700
|
+
onClick: () => L(f.value),
|
|
4701
4701
|
className: p(
|
|
4702
4702
|
"w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer",
|
|
4703
4703
|
"hover:bg-secondary transition-colors",
|
|
4704
|
-
|
|
4704
|
+
f.value === r && "bg-border text-foreground"
|
|
4705
4705
|
),
|
|
4706
4706
|
children: [
|
|
4707
|
-
|
|
4708
|
-
/* @__PURE__ */ e("span", { children:
|
|
4707
|
+
f.icon && /* @__PURE__ */ e("span", { className: "shrink-0", children: f.icon }),
|
|
4708
|
+
/* @__PURE__ */ e("span", { children: f.label })
|
|
4709
4709
|
]
|
|
4710
4710
|
},
|
|
4711
|
-
|
|
4711
|
+
f.value
|
|
4712
4712
|
)) : /* @__PURE__ */ e("div", { className: "px-4 py-6 text-center text-primary/70 text-sm", children: "No options found" })
|
|
4713
4713
|
] })
|
|
4714
4714
|
]
|
|
4715
4715
|
}
|
|
4716
|
-
) }) : null }) : v && /* @__PURE__ */ e(ae, { open: v, anchorRef: j, placement:
|
|
4716
|
+
) }) : null }) : v && /* @__PURE__ */ e(ae, { open: v, anchorRef: j, placement: y, children: /* @__PURE__ */ l(R.div, { className: "z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden", children: [
|
|
4717
4717
|
i && /* @__PURE__ */ e("div", { className: "p-2 border-b border-border", children: /* @__PURE__ */ l("div", { className: "relative", children: [
|
|
4718
4718
|
/* @__PURE__ */ e(se, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50" }),
|
|
4719
4719
|
/* @__PURE__ */ e(
|
|
@@ -4722,7 +4722,7 @@ const co = ({
|
|
|
4722
4722
|
type: "text",
|
|
4723
4723
|
placeholder: "Search...",
|
|
4724
4724
|
value: N,
|
|
4725
|
-
onChange: (
|
|
4725
|
+
onChange: (f) => w(f.target.value),
|
|
4726
4726
|
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"
|
|
4727
4727
|
}
|
|
4728
4728
|
),
|
|
@@ -4750,21 +4750,21 @@ const co = ({
|
|
|
4750
4750
|
children: /* @__PURE__ */ e("span", { children: "None" })
|
|
4751
4751
|
}
|
|
4752
4752
|
),
|
|
4753
|
-
E.length > 0 ? E.map((
|
|
4753
|
+
E.length > 0 ? E.map((f) => /* @__PURE__ */ l(
|
|
4754
4754
|
"button",
|
|
4755
4755
|
{
|
|
4756
|
-
onClick: () => L(
|
|
4756
|
+
onClick: () => L(f.value),
|
|
4757
4757
|
className: p(
|
|
4758
4758
|
"w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer",
|
|
4759
4759
|
"hover:bg-secondary transition-colors",
|
|
4760
|
-
|
|
4760
|
+
f.value === r && "bg-border text-foreground"
|
|
4761
4761
|
),
|
|
4762
4762
|
children: [
|
|
4763
|
-
|
|
4764
|
-
/* @__PURE__ */ e("span", { children:
|
|
4763
|
+
f.icon && /* @__PURE__ */ e("span", { className: "shrink-0", children: f.icon }),
|
|
4764
|
+
/* @__PURE__ */ e("span", { children: f.label })
|
|
4765
4765
|
]
|
|
4766
4766
|
},
|
|
4767
|
-
|
|
4767
|
+
f.value
|
|
4768
4768
|
)) : /* @__PURE__ */ e("div", { className: "px-4 py-6 text-center text-primary/70 text-sm", children: "No options found" })
|
|
4769
4769
|
] })
|
|
4770
4770
|
] }) }),
|
|
@@ -4793,24 +4793,24 @@ const co = ({
|
|
|
4793
4793
|
className: g,
|
|
4794
4794
|
animate: v = !0
|
|
4795
4795
|
}, A) => {
|
|
4796
|
-
const N = v !== !1, [w,
|
|
4797
|
-
(C) => C.label.toLowerCase().includes(
|
|
4796
|
+
const N = v !== !1, [w, y] = O(!1), [x, P] = O(""), [j, B] = O("bottom"), E = W(null), L = t.find((C) => C.value === r), G = d ? t.filter(
|
|
4797
|
+
(C) => C.label.toLowerCase().includes(x.toLowerCase())
|
|
4798
4798
|
) : t;
|
|
4799
|
-
|
|
4799
|
+
K(() => {
|
|
4800
4800
|
const C = (T) => {
|
|
4801
|
-
E.current && !E.current.contains(T.target) && (
|
|
4801
|
+
E.current && !E.current.contains(T.target) && (y(!1), P(""));
|
|
4802
4802
|
};
|
|
4803
4803
|
return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
|
|
4804
|
-
}, []),
|
|
4804
|
+
}, []), K(() => {
|
|
4805
4805
|
if (!w) return;
|
|
4806
4806
|
const C = () => {
|
|
4807
4807
|
if (!E.current) return;
|
|
4808
|
-
const T = E.current.getBoundingClientRect(), U = d ? 360 : 300, J = window.innerHeight - T.bottom - 8,
|
|
4808
|
+
const T = E.current.getBoundingClientRect(), U = d ? 360 : 300, J = window.innerHeight - T.bottom - 8, H = T.top - 8;
|
|
4809
4809
|
if (J >= U) {
|
|
4810
4810
|
B("bottom");
|
|
4811
4811
|
return;
|
|
4812
4812
|
}
|
|
4813
|
-
if (
|
|
4813
|
+
if (H >= U) {
|
|
4814
4814
|
B("top");
|
|
4815
4815
|
return;
|
|
4816
4816
|
}
|
|
@@ -4820,8 +4820,8 @@ const co = ({
|
|
|
4820
4820
|
window.removeEventListener("resize", C), window.removeEventListener("scroll", C, !0);
|
|
4821
4821
|
};
|
|
4822
4822
|
}, [w, d]);
|
|
4823
|
-
const
|
|
4824
|
-
o(C),
|
|
4823
|
+
const f = (C) => {
|
|
4824
|
+
o(C), y(!1), P("");
|
|
4825
4825
|
}, z = j === "top" ? { initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: 10 } } : { initial: { opacity: 0, y: -10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: -10 } };
|
|
4826
4826
|
return /* @__PURE__ */ l("div", { ref: A, className: p("w-full space-y-1.5", g), children: [
|
|
4827
4827
|
n && /* @__PURE__ */ l("label", { className: "block text-sm font-medium text-foreground", children: [
|
|
@@ -4833,7 +4833,7 @@ const co = ({
|
|
|
4833
4833
|
"button",
|
|
4834
4834
|
{
|
|
4835
4835
|
type: "button",
|
|
4836
|
-
onClick: () => !c &&
|
|
4836
|
+
onClick: () => !c && y(!w),
|
|
4837
4837
|
disabled: c,
|
|
4838
4838
|
"aria-haspopup": "listbox",
|
|
4839
4839
|
"aria-expanded": w,
|
|
@@ -4882,13 +4882,13 @@ const co = ({
|
|
|
4882
4882
|
{
|
|
4883
4883
|
type: "text",
|
|
4884
4884
|
placeholder: "Search...",
|
|
4885
|
-
value:
|
|
4885
|
+
value: x,
|
|
4886
4886
|
onChange: (C) => P(C.target.value),
|
|
4887
4887
|
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",
|
|
4888
4888
|
"aria-label": "Search options"
|
|
4889
4889
|
}
|
|
4890
4890
|
),
|
|
4891
|
-
|
|
4891
|
+
x && /* @__PURE__ */ e(
|
|
4892
4892
|
"button",
|
|
4893
4893
|
{
|
|
4894
4894
|
type: "button",
|
|
@@ -4906,7 +4906,7 @@ const co = ({
|
|
|
4906
4906
|
type: "button",
|
|
4907
4907
|
role: "option",
|
|
4908
4908
|
"aria-selected": !r,
|
|
4909
|
-
onClick: () =>
|
|
4909
|
+
onClick: () => f(""),
|
|
4910
4910
|
className: p(
|
|
4911
4911
|
"w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer",
|
|
4912
4912
|
"hover:bg-secondary transition-colors",
|
|
@@ -4922,7 +4922,7 @@ const co = ({
|
|
|
4922
4922
|
type: "button",
|
|
4923
4923
|
role: "option",
|
|
4924
4924
|
"aria-selected": C.value === r,
|
|
4925
|
-
onClick: () => !C.disabled &&
|
|
4925
|
+
onClick: () => !C.disabled && f(C.value),
|
|
4926
4926
|
disabled: C.disabled,
|
|
4927
4927
|
className: p(
|
|
4928
4928
|
"w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer",
|
|
@@ -4953,13 +4953,13 @@ const co = ({
|
|
|
4953
4953
|
{
|
|
4954
4954
|
type: "text",
|
|
4955
4955
|
placeholder: "Search...",
|
|
4956
|
-
value:
|
|
4956
|
+
value: x,
|
|
4957
4957
|
onChange: (C) => P(C.target.value),
|
|
4958
4958
|
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",
|
|
4959
4959
|
"aria-label": "Search options"
|
|
4960
4960
|
}
|
|
4961
4961
|
),
|
|
4962
|
-
|
|
4962
|
+
x && /* @__PURE__ */ e(
|
|
4963
4963
|
"button",
|
|
4964
4964
|
{
|
|
4965
4965
|
type: "button",
|
|
@@ -4977,7 +4977,7 @@ const co = ({
|
|
|
4977
4977
|
type: "button",
|
|
4978
4978
|
role: "option",
|
|
4979
4979
|
"aria-selected": !r,
|
|
4980
|
-
onClick: () =>
|
|
4980
|
+
onClick: () => f(""),
|
|
4981
4981
|
className: p(
|
|
4982
4982
|
"w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer",
|
|
4983
4983
|
"hover:bg-secondary transition-colors",
|
|
@@ -4993,7 +4993,7 @@ const co = ({
|
|
|
4993
4993
|
type: "button",
|
|
4994
4994
|
role: "option",
|
|
4995
4995
|
"aria-selected": C.value === r,
|
|
4996
|
-
onClick: () => !C.disabled &&
|
|
4996
|
+
onClick: () => !C.disabled && f(C.value),
|
|
4997
4997
|
disabled: C.disabled,
|
|
4998
4998
|
className: p(
|
|
4999
4999
|
"w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer",
|
|
@@ -5044,24 +5044,24 @@ const $r = Ne(
|
|
|
5044
5044
|
animate: A = !0,
|
|
5045
5045
|
chipVariant: N = "primary"
|
|
5046
5046
|
}, w) => {
|
|
5047
|
-
const
|
|
5047
|
+
const y = A !== !1, [x, P] = O(!1), [j, B] = O(""), [E, L] = O("bottom"), G = W(null), f = t.filter((k) => r.includes(k.value)), z = d ? t.filter(
|
|
5048
5048
|
(k) => k.label.toLowerCase().includes(j.toLowerCase())
|
|
5049
5049
|
) : t;
|
|
5050
|
-
|
|
5050
|
+
K(() => {
|
|
5051
5051
|
const k = (F) => {
|
|
5052
5052
|
G.current && !G.current.contains(F.target) && (P(!1), B(""));
|
|
5053
5053
|
};
|
|
5054
5054
|
return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
|
|
5055
|
-
}, []),
|
|
5056
|
-
if (!
|
|
5055
|
+
}, []), K(() => {
|
|
5056
|
+
if (!x) return;
|
|
5057
5057
|
const k = () => {
|
|
5058
5058
|
if (!G.current) return;
|
|
5059
|
-
const F = G.current.getBoundingClientRect(),
|
|
5060
|
-
if (
|
|
5059
|
+
const F = G.current.getBoundingClientRect(), V = d ? 360 : 300, b = window.innerHeight - F.bottom - 8, $ = F.top - 8;
|
|
5060
|
+
if (b >= V) {
|
|
5061
5061
|
L("bottom");
|
|
5062
5062
|
return;
|
|
5063
5063
|
}
|
|
5064
|
-
if (
|
|
5064
|
+
if ($ >= V) {
|
|
5065
5065
|
L("top");
|
|
5066
5066
|
return;
|
|
5067
5067
|
}
|
|
@@ -5070,12 +5070,12 @@ const $r = Ne(
|
|
|
5070
5070
|
return k(), window.addEventListener("resize", k), window.addEventListener("scroll", k, !0), () => {
|
|
5071
5071
|
window.removeEventListener("resize", k), window.removeEventListener("scroll", k, !0);
|
|
5072
5072
|
};
|
|
5073
|
-
}, [
|
|
5073
|
+
}, [x, d]);
|
|
5074
5074
|
const C = (k) => {
|
|
5075
|
-
const F = r.includes(k) ? r.filter((
|
|
5075
|
+
const F = r.includes(k) ? r.filter((V) => V !== k) : c && r.length >= c ? r : [...r, k];
|
|
5076
5076
|
o(F);
|
|
5077
5077
|
}, T = (k) => {
|
|
5078
|
-
const F = r.filter((
|
|
5078
|
+
const F = r.filter((V) => V !== k);
|
|
5079
5079
|
o(F);
|
|
5080
5080
|
}, U = () => {
|
|
5081
5081
|
o([]);
|
|
@@ -5086,7 +5086,7 @@ const $r = Ne(
|
|
|
5086
5086
|
warning: "bg-warning/10 text-warning border border-warning/20 hover:bg-warning/20",
|
|
5087
5087
|
danger: "bg-error/10 text-error border border-error/20 hover:bg-error/20",
|
|
5088
5088
|
info: "bg-info/10 text-info border border-info/20 hover:bg-info/20"
|
|
5089
|
-
},
|
|
5089
|
+
}, H = E === "top" ? { initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: 10 } } : { initial: { opacity: 0, y: -10 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: -10 } };
|
|
5090
5090
|
return /* @__PURE__ */ l("div", { ref: w, className: p("w-full space-y-1.5", v), children: [
|
|
5091
5091
|
n && /* @__PURE__ */ l("label", { className: "block text-sm font-medium text-foreground", children: [
|
|
5092
5092
|
n,
|
|
@@ -5097,10 +5097,10 @@ const $r = Ne(
|
|
|
5097
5097
|
"button",
|
|
5098
5098
|
{
|
|
5099
5099
|
type: "button",
|
|
5100
|
-
onClick: () => !u && P(!
|
|
5100
|
+
onClick: () => !u && P(!x),
|
|
5101
5101
|
disabled: u,
|
|
5102
5102
|
"aria-haspopup": "listbox",
|
|
5103
|
-
"aria-expanded":
|
|
5103
|
+
"aria-expanded": x,
|
|
5104
5104
|
"aria-required": g,
|
|
5105
5105
|
className: p(
|
|
5106
5106
|
"w-full px-4 py-3 rounded-md border transition-all duration-200",
|
|
@@ -5110,16 +5110,16 @@ const $r = Ne(
|
|
|
5110
5110
|
"touch-target text-base min-h-12",
|
|
5111
5111
|
m && "border-error focus:ring-error",
|
|
5112
5112
|
!m && "border-border",
|
|
5113
|
-
|
|
5113
|
+
x && "ring-2 ring-primary"
|
|
5114
5114
|
),
|
|
5115
5115
|
children: [
|
|
5116
|
-
r.length > 0 ? /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2 w-full", children:
|
|
5116
|
+
r.length > 0 ? /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2 w-full", children: f.map((k) => /* @__PURE__ */ l(
|
|
5117
5117
|
R.div,
|
|
5118
5118
|
{
|
|
5119
5119
|
layout: !0,
|
|
5120
|
-
initial:
|
|
5121
|
-
animate:
|
|
5122
|
-
exit:
|
|
5120
|
+
initial: y ? { opacity: 0, scale: 0.8 } : {},
|
|
5121
|
+
animate: y ? { opacity: 1, scale: 1 } : {},
|
|
5122
|
+
exit: y ? { opacity: 0, scale: 0.8 } : {},
|
|
5123
5123
|
className: p(
|
|
5124
5124
|
"flex items-center gap-1.5 px-2.5 py-1 rounded-md text-sm font-medium",
|
|
5125
5125
|
J[N]
|
|
@@ -5148,19 +5148,19 @@ const $r = Ne(
|
|
|
5148
5148
|
{
|
|
5149
5149
|
className: p(
|
|
5150
5150
|
"w-5 h-5 text-primary transition-transform shrink-0 ml-auto",
|
|
5151
|
-
|
|
5151
|
+
x && "rotate-180"
|
|
5152
5152
|
)
|
|
5153
5153
|
}
|
|
5154
5154
|
)
|
|
5155
5155
|
]
|
|
5156
5156
|
}
|
|
5157
5157
|
),
|
|
5158
|
-
|
|
5158
|
+
y ? /* @__PURE__ */ e(ne, { children: x ? /* @__PURE__ */ e(ae, { open: x, anchorRef: G, placement: E, children: /* @__PURE__ */ l(
|
|
5159
5159
|
R.div,
|
|
5160
5160
|
{
|
|
5161
|
-
initial:
|
|
5162
|
-
animate:
|
|
5163
|
-
exit:
|
|
5161
|
+
initial: H.initial,
|
|
5162
|
+
animate: H.animate,
|
|
5163
|
+
exit: H.exit,
|
|
5164
5164
|
transition: { duration: 0.2 },
|
|
5165
5165
|
role: "listbox",
|
|
5166
5166
|
className: "z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",
|
|
@@ -5205,38 +5205,34 @@ const $r = Ne(
|
|
|
5205
5205
|
}
|
|
5206
5206
|
),
|
|
5207
5207
|
z.length > 0 ? z.map((k) => {
|
|
5208
|
-
const F = r.includes(k.value);
|
|
5208
|
+
const F = r.includes(k.value), V = k.disabled || c !== void 0 && r.length >= c && !F;
|
|
5209
5209
|
return /* @__PURE__ */ l(
|
|
5210
|
-
"
|
|
5210
|
+
"div",
|
|
5211
5211
|
{
|
|
5212
|
-
type: "button",
|
|
5213
5212
|
role: "option",
|
|
5214
5213
|
"aria-selected": F,
|
|
5215
|
-
|
|
5216
|
-
|
|
5214
|
+
"aria-disabled": V,
|
|
5215
|
+
onClick: () => !V && C(k.value),
|
|
5217
5216
|
className: p(
|
|
5218
5217
|
"w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer",
|
|
5219
5218
|
"hover:bg-secondary transition-colors",
|
|
5220
5219
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
5220
|
+
V && "opacity-50 cursor-not-allowed",
|
|
5221
5221
|
F && "bg-border text-foreground font-medium"
|
|
5222
5222
|
),
|
|
5223
5223
|
children: [
|
|
5224
|
-
/* @__PURE__ */ e(
|
|
5225
|
-
|
|
5224
|
+
/* @__PURE__ */ e(
|
|
5225
|
+
$e,
|
|
5226
5226
|
{
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
5235
|
-
clipRule: "evenodd"
|
|
5236
|
-
}
|
|
5237
|
-
)
|
|
5227
|
+
checked: F,
|
|
5228
|
+
disabled: V,
|
|
5229
|
+
onChange: () => !V && C(k.value),
|
|
5230
|
+
onClick: (b) => b.stopPropagation(),
|
|
5231
|
+
animate: y,
|
|
5232
|
+
className: "w-5 h-5",
|
|
5233
|
+
"aria-label": k.label
|
|
5238
5234
|
}
|
|
5239
|
-
)
|
|
5235
|
+
),
|
|
5240
5236
|
k.icon && /* @__PURE__ */ e("span", { className: "shrink-0", children: k.icon }),
|
|
5241
5237
|
/* @__PURE__ */ e("span", { children: k.label })
|
|
5242
5238
|
]
|
|
@@ -5247,7 +5243,7 @@ const $r = Ne(
|
|
|
5247
5243
|
] })
|
|
5248
5244
|
]
|
|
5249
5245
|
}
|
|
5250
|
-
) }) : null }) :
|
|
5246
|
+
) }) : null }) : x && /* @__PURE__ */ e(ae, { open: x, anchorRef: G, placement: E, children: /* @__PURE__ */ l(
|
|
5251
5247
|
R.div,
|
|
5252
5248
|
{
|
|
5253
5249
|
role: "listbox",
|
|
@@ -5293,38 +5289,34 @@ const $r = Ne(
|
|
|
5293
5289
|
}
|
|
5294
5290
|
),
|
|
5295
5291
|
z.length > 0 ? z.map((k) => {
|
|
5296
|
-
const F = r.includes(k.value);
|
|
5292
|
+
const F = r.includes(k.value), V = k.disabled || c !== void 0 && r.length >= c && !F;
|
|
5297
5293
|
return /* @__PURE__ */ l(
|
|
5298
|
-
"
|
|
5294
|
+
"div",
|
|
5299
5295
|
{
|
|
5300
|
-
type: "button",
|
|
5301
5296
|
role: "option",
|
|
5302
5297
|
"aria-selected": F,
|
|
5303
|
-
|
|
5304
|
-
|
|
5298
|
+
"aria-disabled": V,
|
|
5299
|
+
onClick: () => !V && C(k.value),
|
|
5305
5300
|
className: p(
|
|
5306
5301
|
"w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer",
|
|
5307
5302
|
"hover:bg-secondary transition-colors",
|
|
5308
5303
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
5304
|
+
V && "opacity-50 cursor-not-allowed",
|
|
5309
5305
|
F && "bg-border text-foreground font-medium"
|
|
5310
5306
|
),
|
|
5311
5307
|
children: [
|
|
5312
|
-
/* @__PURE__ */ e(
|
|
5313
|
-
|
|
5308
|
+
/* @__PURE__ */ e(
|
|
5309
|
+
$e,
|
|
5314
5310
|
{
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
5323
|
-
clipRule: "evenodd"
|
|
5324
|
-
}
|
|
5325
|
-
)
|
|
5311
|
+
checked: F,
|
|
5312
|
+
disabled: V,
|
|
5313
|
+
onChange: () => !V && C(k.value),
|
|
5314
|
+
onClick: (b) => b.stopPropagation(),
|
|
5315
|
+
animate: y,
|
|
5316
|
+
className: "w-5 h-5",
|
|
5317
|
+
"aria-label": k.label
|
|
5326
5318
|
}
|
|
5327
|
-
)
|
|
5319
|
+
),
|
|
5328
5320
|
k.icon && /* @__PURE__ */ e("span", { className: "shrink-0", children: k.icon }),
|
|
5329
5321
|
/* @__PURE__ */ e("span", { children: k.label })
|
|
5330
5322
|
]
|
|
@@ -5340,7 +5332,7 @@ const $r = Ne(
|
|
|
5340
5332
|
m && /* @__PURE__ */ e(
|
|
5341
5333
|
R.p,
|
|
5342
5334
|
{
|
|
5343
|
-
...
|
|
5335
|
+
...y ? { initial: { opacity: 0, y: -5 }, animate: { opacity: 1, y: 0 } } : {},
|
|
5344
5336
|
className: "text-sm text-error",
|
|
5345
5337
|
children: m
|
|
5346
5338
|
}
|
|
@@ -5400,7 +5392,7 @@ const po = ({
|
|
|
5400
5392
|
animate: i = !0
|
|
5401
5393
|
}) => {
|
|
5402
5394
|
const d = i !== !1;
|
|
5403
|
-
|
|
5395
|
+
K(() => {
|
|
5404
5396
|
const c = (u) => {
|
|
5405
5397
|
u.key === "Escape" && r();
|
|
5406
5398
|
};
|
|
@@ -5408,7 +5400,7 @@ const po = ({
|
|
|
5408
5400
|
document.removeEventListener("keydown", c), document.body.style.overflow = "unset";
|
|
5409
5401
|
};
|
|
5410
5402
|
}, [t, r]);
|
|
5411
|
-
const s = t ? /* @__PURE__ */ l(
|
|
5403
|
+
const s = t ? /* @__PURE__ */ l(Ke, { children: [
|
|
5412
5404
|
/* @__PURE__ */ e(
|
|
5413
5405
|
R.div,
|
|
5414
5406
|
{
|
|
@@ -5461,7 +5453,7 @@ const po = ({
|
|
|
5461
5453
|
animate: i = !0
|
|
5462
5454
|
}) => {
|
|
5463
5455
|
const d = i !== !1, s = W(null);
|
|
5464
|
-
|
|
5456
|
+
K(() => {
|
|
5465
5457
|
const g = (v) => {
|
|
5466
5458
|
v.key === "Escape" && r();
|
|
5467
5459
|
};
|
|
@@ -5528,7 +5520,7 @@ const po = ({
|
|
|
5528
5520
|
animate: i = !0
|
|
5529
5521
|
}) => {
|
|
5530
5522
|
const d = i !== !1;
|
|
5531
|
-
|
|
5523
|
+
K(() => {
|
|
5532
5524
|
const c = (u) => {
|
|
5533
5525
|
u.key === "Escape" && r();
|
|
5534
5526
|
};
|
|
@@ -5536,7 +5528,7 @@ const po = ({
|
|
|
5536
5528
|
document.removeEventListener("keydown", c), document.body.style.overflow = "unset";
|
|
5537
5529
|
};
|
|
5538
5530
|
}, [t, r]);
|
|
5539
|
-
const s = t ? /* @__PURE__ */ l(
|
|
5531
|
+
const s = t ? /* @__PURE__ */ l(Ke, { children: [
|
|
5540
5532
|
/* @__PURE__ */ e(
|
|
5541
5533
|
R.div,
|
|
5542
5534
|
{
|
|
@@ -5588,12 +5580,12 @@ function No({
|
|
|
5588
5580
|
const d = i !== !1, [s, c] = O(null), [u, g] = O("asc"), v = (N) => {
|
|
5589
5581
|
s === N ? g(u === "asc" ? "desc" : "asc") : (c(N), g("asc"));
|
|
5590
5582
|
}, A = s ? [...t].sort((N, w) => {
|
|
5591
|
-
const
|
|
5592
|
-
return
|
|
5583
|
+
const y = N[s], x = w[s];
|
|
5584
|
+
return y < x ? u === "asc" ? -1 : 1 : y > x ? u === "asc" ? 1 : -1 : 0;
|
|
5593
5585
|
}) : t;
|
|
5594
5586
|
return o ? /* @__PURE__ */ e("div", { className: p("border border-border rounded-lg overflow-hidden", m), children: /* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ l("table", { className: "w-full", children: [
|
|
5595
5587
|
/* @__PURE__ */ e("thead", { className: "border-b border-border", children: /* @__PURE__ */ e("tr", { children: r.map((N, w) => /* @__PURE__ */ e("th", { className: "px-6 py-4 text-left", children: /* @__PURE__ */ e("div", { className: p("h-4 bg-border rounded w-24", d && "animate-pulse") }) }, w)) }) }),
|
|
5596
|
-
/* @__PURE__ */ e("tbody", { children: [...Array(5)].map((N, w) => /* @__PURE__ */ e("tr", { className: "border-b border-border", children: r.map((
|
|
5588
|
+
/* @__PURE__ */ e("tbody", { children: [...Array(5)].map((N, w) => /* @__PURE__ */ e("tr", { className: "border-b border-border", children: r.map((y, x) => /* @__PURE__ */ e("td", { className: "px-6 py-4", children: /* @__PURE__ */ e("div", { className: p("h-4 bg-secondary rounded", d && "animate-pulse") }) }, x)) }, w)) })
|
|
5597
5589
|
] }) }) }) : /* @__PURE__ */ e(
|
|
5598
5590
|
R.div,
|
|
5599
5591
|
{
|
|
@@ -5611,7 +5603,7 @@ function No({
|
|
|
5611
5603
|
onClick: () => N.sortable && v(N.key),
|
|
5612
5604
|
children: /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
5613
5605
|
N.header,
|
|
5614
|
-
N.sortable && /* @__PURE__ */ e("span", { className: "text-primary/50 hover:text-primary transition-colors", children: s === N.key ? u === "asc" ? /* @__PURE__ */ e(
|
|
5606
|
+
N.sortable && /* @__PURE__ */ e("span", { className: "text-primary/50 hover:text-primary transition-colors", children: s === N.key ? u === "asc" ? /* @__PURE__ */ e(Et, { className: "w-4 h-4" }) : /* @__PURE__ */ e(Pt, { className: "w-4 h-4" }) : /* @__PURE__ */ e(It, { className: "w-4 h-4" }) })
|
|
5615
5607
|
] })
|
|
5616
5608
|
},
|
|
5617
5609
|
w
|
|
@@ -5625,18 +5617,18 @@ function No({
|
|
|
5625
5617
|
"border-b border-border transition-colors",
|
|
5626
5618
|
a && "cursor-pointer hover:bg-secondary"
|
|
5627
5619
|
),
|
|
5628
|
-
children: r.map((
|
|
5620
|
+
children: r.map((y, x) => /* @__PURE__ */ e(
|
|
5629
5621
|
"td",
|
|
5630
5622
|
{
|
|
5631
5623
|
className: p(
|
|
5632
5624
|
"px-6 py-4 text-sm text-foreground/70",
|
|
5633
|
-
|
|
5625
|
+
y.width
|
|
5634
5626
|
),
|
|
5635
|
-
style:
|
|
5636
|
-
title:
|
|
5637
|
-
children:
|
|
5627
|
+
style: y.width ? { width: y.width } : void 0,
|
|
5628
|
+
title: y.truncate && !y.render ? String(N[y.key] ?? "") : void 0,
|
|
5629
|
+
children: y.truncate && !y.render ? /* @__PURE__ */ e("div", { className: "truncate", children: String(N[y.key] ?? "") }) : y.render ? y.render(N) : String(N[y.key] ?? "")
|
|
5638
5630
|
},
|
|
5639
|
-
|
|
5631
|
+
x
|
|
5640
5632
|
))
|
|
5641
5633
|
},
|
|
5642
5634
|
n(N)
|
|
@@ -5654,7 +5646,7 @@ const ko = ({
|
|
|
5654
5646
|
className: m,
|
|
5655
5647
|
animate: i = !0
|
|
5656
5648
|
}) => {
|
|
5657
|
-
const d = i !== !1, s =
|
|
5649
|
+
const d = i !== !1, s = We.useMemo(() => {
|
|
5658
5650
|
if (r <= 5)
|
|
5659
5651
|
return Array.from({ length: r }, (N, w) => w + 1);
|
|
5660
5652
|
const g = Math.floor(5 / 2);
|
|
@@ -5699,7 +5691,7 @@ const ko = ({
|
|
|
5699
5691
|
variant: "secondary",
|
|
5700
5692
|
size: "sm",
|
|
5701
5693
|
onClick: () => c(1),
|
|
5702
|
-
icon: /* @__PURE__ */ e(
|
|
5694
|
+
icon: /* @__PURE__ */ e(Bt, { className: "w-4 h-4 text-primary" }),
|
|
5703
5695
|
animate: i,
|
|
5704
5696
|
"aria-label": "Go to first page"
|
|
5705
5697
|
}
|
|
@@ -5773,13 +5765,13 @@ const ko = ({
|
|
|
5773
5765
|
animate: { opacity: 1 },
|
|
5774
5766
|
exit: { opacity: 0 },
|
|
5775
5767
|
className: "absolute bottom-20 right-0 flex flex-col gap-3 mb-2",
|
|
5776
|
-
children: a.map((
|
|
5768
|
+
children: a.map((y, x) => /* @__PURE__ */ l(
|
|
5777
5769
|
R.div,
|
|
5778
5770
|
{
|
|
5779
5771
|
initial: { opacity: 0, y: 20, scale: 0.8 },
|
|
5780
5772
|
animate: { opacity: 1, y: 0, scale: 1 },
|
|
5781
5773
|
exit: { opacity: 0, y: 20, scale: 0.8 },
|
|
5782
|
-
transition: { delay:
|
|
5774
|
+
transition: { delay: x * 0.05 },
|
|
5783
5775
|
className: "flex items-center gap-3",
|
|
5784
5776
|
children: [
|
|
5785
5777
|
/* @__PURE__ */ e(
|
|
@@ -5787,10 +5779,10 @@ const ko = ({
|
|
|
5787
5779
|
{
|
|
5788
5780
|
className: p(
|
|
5789
5781
|
"bg-background border border-border rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap shadow-lg",
|
|
5790
|
-
|
|
5782
|
+
y.labelClassName
|
|
5791
5783
|
),
|
|
5792
|
-
style:
|
|
5793
|
-
children:
|
|
5784
|
+
style: y.labelStyle,
|
|
5785
|
+
children: y.label
|
|
5794
5786
|
}
|
|
5795
5787
|
),
|
|
5796
5788
|
/* @__PURE__ */ e(
|
|
@@ -5799,46 +5791,46 @@ const ko = ({
|
|
|
5799
5791
|
whileHover: c ? { scale: 1.1 } : void 0,
|
|
5800
5792
|
whileTap: c ? { scale: 0.9 } : void 0,
|
|
5801
5793
|
onClick: () => {
|
|
5802
|
-
|
|
5794
|
+
y.onClick(), g(!1);
|
|
5803
5795
|
},
|
|
5804
5796
|
className: p(
|
|
5805
5797
|
"w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all",
|
|
5806
|
-
N[
|
|
5798
|
+
N[y.variant || "primary"]
|
|
5807
5799
|
),
|
|
5808
|
-
children:
|
|
5800
|
+
children: y.icon
|
|
5809
5801
|
}
|
|
5810
5802
|
)
|
|
5811
5803
|
]
|
|
5812
5804
|
},
|
|
5813
|
-
|
|
5805
|
+
x
|
|
5814
5806
|
))
|
|
5815
5807
|
}
|
|
5816
|
-
) : null }) : u && a && /* @__PURE__ */ e("div", { className: "absolute bottom-20 right-0 flex flex-col gap-3 mb-2", children: a.map((
|
|
5808
|
+
) : null }) : u && a && /* @__PURE__ */ e("div", { className: "absolute bottom-20 right-0 flex flex-col gap-3 mb-2", children: a.map((y, x) => /* @__PURE__ */ l("div", { className: "flex items-center gap-3", children: [
|
|
5817
5809
|
/* @__PURE__ */ e(
|
|
5818
5810
|
"span",
|
|
5819
5811
|
{
|
|
5820
5812
|
className: p(
|
|
5821
5813
|
"bg-background border border-border rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap shadow-lg",
|
|
5822
|
-
|
|
5814
|
+
y.labelClassName
|
|
5823
5815
|
),
|
|
5824
|
-
style:
|
|
5825
|
-
children:
|
|
5816
|
+
style: y.labelStyle,
|
|
5817
|
+
children: y.label
|
|
5826
5818
|
}
|
|
5827
5819
|
),
|
|
5828
5820
|
/* @__PURE__ */ e(
|
|
5829
5821
|
"button",
|
|
5830
5822
|
{
|
|
5831
5823
|
onClick: () => {
|
|
5832
|
-
|
|
5824
|
+
y.onClick(), g(!1);
|
|
5833
5825
|
},
|
|
5834
5826
|
className: p(
|
|
5835
5827
|
"w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all",
|
|
5836
|
-
N[
|
|
5828
|
+
N[y.variant || "primary"]
|
|
5837
5829
|
),
|
|
5838
|
-
children:
|
|
5830
|
+
children: y.icon
|
|
5839
5831
|
}
|
|
5840
5832
|
)
|
|
5841
|
-
] },
|
|
5833
|
+
] }, x)) }),
|
|
5842
5834
|
/* @__PURE__ */ l(
|
|
5843
5835
|
R.button,
|
|
5844
5836
|
{
|
|
@@ -5855,7 +5847,7 @@ const ko = ({
|
|
|
5855
5847
|
u && "rotate-45"
|
|
5856
5848
|
),
|
|
5857
5849
|
children: [
|
|
5858
|
-
/* @__PURE__ */ e("span", { className: "flex-shrink-0", children: t || (u ? /* @__PURE__ */ e(ee, { className: "w-6 h-6" }) : /* @__PURE__ */ e(
|
|
5850
|
+
/* @__PURE__ */ e("span", { className: "flex-shrink-0", children: t || (u ? /* @__PURE__ */ e(ee, { className: "w-6 h-6" }) : /* @__PURE__ */ e(Gt, { className: "w-6 h-6" })) }),
|
|
5859
5851
|
o && /* @__PURE__ */ e("span", { className: "font-medium", children: o })
|
|
5860
5852
|
]
|
|
5861
5853
|
}
|
|
@@ -5871,7 +5863,7 @@ const ko = ({
|
|
|
5871
5863
|
return /* @__PURE__ */ l("div", { className: p("w-full", o), children: [
|
|
5872
5864
|
/* @__PURE__ */ e("div", { className: "hidden md:block", children: /* @__PURE__ */ e("div", { className: "relative flex items-center mb-2", children: t.map((i, d) => {
|
|
5873
5865
|
const s = d < r, c = d === r, u = d > r;
|
|
5874
|
-
return /* @__PURE__ */ l(
|
|
5866
|
+
return /* @__PURE__ */ l(We.Fragment, { children: [
|
|
5875
5867
|
/* @__PURE__ */ l("div", { className: "flex flex-col items-center relative z-10", children: [
|
|
5876
5868
|
/* @__PURE__ */ e(
|
|
5877
5869
|
R.div,
|
|
@@ -5885,7 +5877,7 @@ const ko = ({
|
|
|
5885
5877
|
(s || c) && "bg-primary text-white shadow-lg",
|
|
5886
5878
|
u && "bg-border text-muted-foreground"
|
|
5887
5879
|
),
|
|
5888
|
-
children: s ? /* @__PURE__ */ e(
|
|
5880
|
+
children: s ? /* @__PURE__ */ e(st, { className: "w-6 h-6 stroke-[3]" }) : /* @__PURE__ */ e("span", { children: d + 1 })
|
|
5889
5881
|
}
|
|
5890
5882
|
),
|
|
5891
5883
|
/* @__PURE__ */ l("div", { className: "mt-3 text-center max-w-[120px]", children: [
|
|
@@ -6101,8 +6093,8 @@ const ko = ({
|
|
|
6101
6093
|
] });
|
|
6102
6094
|
};
|
|
6103
6095
|
Jr.displayName = "Spinner";
|
|
6104
|
-
const
|
|
6105
|
-
const t =
|
|
6096
|
+
const Nt = At(void 0), zo = () => {
|
|
6097
|
+
const t = Rt(Nt);
|
|
6106
6098
|
if (!t)
|
|
6107
6099
|
throw new Error("useToast must be used within ToastProvider");
|
|
6108
6100
|
return t;
|
|
@@ -6114,11 +6106,11 @@ const Ct = Mt(void 0), zo = () => {
|
|
|
6114
6106
|
loading: "bg-primary text-white border-primary",
|
|
6115
6107
|
default: "bg-background text-foreground border-border"
|
|
6116
6108
|
}, Zr = {
|
|
6117
|
-
success:
|
|
6118
|
-
error:
|
|
6119
|
-
warning:
|
|
6120
|
-
info:
|
|
6121
|
-
loading:
|
|
6109
|
+
success: Ot,
|
|
6110
|
+
error: Ft,
|
|
6111
|
+
warning: Dt,
|
|
6112
|
+
info: jt,
|
|
6113
|
+
loading: it,
|
|
6122
6114
|
default: null
|
|
6123
6115
|
}, qr = {
|
|
6124
6116
|
"top-left": "top-4 left-4",
|
|
@@ -6127,7 +6119,7 @@ const Ct = Mt(void 0), zo = () => {
|
|
|
6127
6119
|
"bottom-left": "bottom-4 left-4",
|
|
6128
6120
|
"bottom-center": "bottom-4 left-1/2 -translate-x-1/2",
|
|
6129
6121
|
"bottom-right": "bottom-4 right-4"
|
|
6130
|
-
},
|
|
6122
|
+
}, nt = ({ toast: t, onRemove: r, animate: o = !0 }) => {
|
|
6131
6123
|
const a = o !== !1, n = t.variant || "default", m = Zr[n], i = n === "loading", d = typeof t.message == "string" ? t.message : String(t.message), s = a ? R.div : "div";
|
|
6132
6124
|
return /* @__PURE__ */ l(
|
|
6133
6125
|
s,
|
|
@@ -6189,9 +6181,9 @@ const Ct = Mt(void 0), zo = () => {
|
|
|
6189
6181
|
},
|
|
6190
6182
|
[o, d]
|
|
6191
6183
|
);
|
|
6192
|
-
return /* @__PURE__ */ l(
|
|
6184
|
+
return /* @__PURE__ */ l(Nt.Provider, { value: { toasts: m, addToast: s, removeToast: d }, children: [
|
|
6193
6185
|
t,
|
|
6194
|
-
/* @__PURE__ */ e("div", { className: p("fixed z-100 flex flex-col gap-2", qr[r]), children: n ? /* @__PURE__ */ e(ne, { mode: "popLayout", children: m.map((c) => /* @__PURE__ */ e(
|
|
6186
|
+
/* @__PURE__ */ e("div", { className: p("fixed z-100 flex flex-col gap-2", qr[r]), children: n ? /* @__PURE__ */ e(ne, { mode: "popLayout", children: m.map((c) => /* @__PURE__ */ e(nt, { toast: c, onRemove: d, animate: n }, c.id)) }) : m.map((c) => /* @__PURE__ */ e(nt, { toast: c, onRemove: d, animate: n }, c.id)) })
|
|
6195
6187
|
] });
|
|
6196
6188
|
};
|
|
6197
6189
|
Xr.displayName = "ToastProvider";
|
|
@@ -6242,7 +6234,7 @@ const Lo = ({
|
|
|
6242
6234
|
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
6243
6235
|
),
|
|
6244
6236
|
children: [
|
|
6245
|
-
/* @__PURE__ */ e(
|
|
6237
|
+
/* @__PURE__ */ e(Ut, { className: "w-6 h-6 text-primary" }),
|
|
6246
6238
|
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children: "Capture Photo" })
|
|
6247
6239
|
]
|
|
6248
6240
|
}
|
|
@@ -6289,7 +6281,7 @@ const Lo = ({
|
|
|
6289
6281
|
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
6290
6282
|
),
|
|
6291
6283
|
children: [
|
|
6292
|
-
/* @__PURE__ */ e(
|
|
6284
|
+
/* @__PURE__ */ e(Vt, { className: "w-6 h-6 text-primary" }),
|
|
6293
6285
|
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children: o ? "Upload Files" : "Upload File" })
|
|
6294
6286
|
]
|
|
6295
6287
|
}
|
|
@@ -6316,32 +6308,32 @@ const Lo = ({
|
|
|
6316
6308
|
className: n,
|
|
6317
6309
|
animate: m = !0
|
|
6318
6310
|
}) => {
|
|
6319
|
-
const i = m !== !1, [d, s] = O(!1), [c, u] = O(!1), [g, v] = O(0), [A, N] = O(null), w = W(null),
|
|
6311
|
+
const i = m !== !1, [d, s] = O(!1), [c, u] = O(!1), [g, v] = O(0), [A, N] = O(null), w = W(null), y = W([]), x = W(null), P = async () => {
|
|
6320
6312
|
try {
|
|
6321
|
-
const
|
|
6322
|
-
w.current = z,
|
|
6323
|
-
C.data.size > 0 &&
|
|
6313
|
+
const f = await navigator.mediaDevices.getUserMedia({ audio: !0 }), z = new MediaRecorder(f);
|
|
6314
|
+
w.current = z, y.current = [], z.ondataavailable = (C) => {
|
|
6315
|
+
C.data.size > 0 && y.current.push(C.data);
|
|
6324
6316
|
}, z.onstop = () => {
|
|
6325
|
-
const C = new Blob(
|
|
6326
|
-
N(T), t(C),
|
|
6327
|
-
}, z.start(), s(!0), v(0),
|
|
6317
|
+
const C = new Blob(y.current, { type: "audio/webm" }), T = URL.createObjectURL(C);
|
|
6318
|
+
N(T), t(C), f.getTracks().forEach((U) => U.stop());
|
|
6319
|
+
}, z.start(), s(!0), v(0), x.current = setInterval(() => {
|
|
6328
6320
|
v((C) => C >= o ? (E(), C) : C + 1);
|
|
6329
6321
|
}, 1e3);
|
|
6330
|
-
} catch (
|
|
6331
|
-
console.error("Error accessing microphone:",
|
|
6322
|
+
} catch (f) {
|
|
6323
|
+
console.error("Error accessing microphone:", f);
|
|
6332
6324
|
}
|
|
6333
6325
|
}, j = () => {
|
|
6334
|
-
w.current?.state === "recording" && (w.current.pause(), u(!0),
|
|
6326
|
+
w.current?.state === "recording" && (w.current.pause(), u(!0), x.current && clearInterval(x.current));
|
|
6335
6327
|
}, B = () => {
|
|
6336
|
-
w.current?.state === "paused" && (w.current.resume(), u(!1),
|
|
6337
|
-
v((
|
|
6328
|
+
w.current?.state === "paused" && (w.current.resume(), u(!1), x.current = setInterval(() => {
|
|
6329
|
+
v((f) => Math.min(f + 1, o));
|
|
6338
6330
|
}, 1e3));
|
|
6339
6331
|
}, E = () => {
|
|
6340
|
-
w.current && (w.current.stop(), s(!1), u(!1),
|
|
6332
|
+
w.current && (w.current.stop(), s(!1), u(!1), x.current && (clearInterval(x.current), x.current = null));
|
|
6341
6333
|
}, L = () => {
|
|
6342
6334
|
N(null), v(0);
|
|
6343
|
-
}, G = (
|
|
6344
|
-
const z = Math.floor(
|
|
6335
|
+
}, G = (f) => {
|
|
6336
|
+
const z = Math.floor(f / 60), C = f % 60;
|
|
6345
6337
|
return `${z.toString().padStart(2, "0")}:${C.toString().padStart(2, "0")}`;
|
|
6346
6338
|
};
|
|
6347
6339
|
return /* @__PURE__ */ l("div", { className: p("w-full", n), children: [
|
|
@@ -6362,7 +6354,7 @@ const Lo = ({
|
|
|
6362
6354
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
6363
6355
|
d ? p("bg-warning text-white", i && "animate-pulse") : "bg-primary text-white hover:bg-primary-dark"
|
|
6364
6356
|
),
|
|
6365
|
-
children: d ? c ? /* @__PURE__ */ e(
|
|
6357
|
+
children: d ? c ? /* @__PURE__ */ e(Yt, { className: "w-6 h-6 md:w-8 md:h-8" }) : /* @__PURE__ */ e(Ht, { className: "w-6 h-6 md:w-8 md:h-8" }) : /* @__PURE__ */ e($t, { className: "w-6 h-6 md:w-8 md:h-8" })
|
|
6366
6358
|
}
|
|
6367
6359
|
),
|
|
6368
6360
|
d && !c && /* @__PURE__ */ e(
|
|
@@ -6386,7 +6378,7 @@ const Lo = ({
|
|
|
6386
6378
|
onClick: E,
|
|
6387
6379
|
className: "px-4 py-2 text-sm bg-error text-white rounded-full font-medium hover:bg-red-600 flex items-center gap-2",
|
|
6388
6380
|
children: [
|
|
6389
|
-
/* @__PURE__ */ e(
|
|
6381
|
+
/* @__PURE__ */ e(Kt, { className: "w-4 h-4" }),
|
|
6390
6382
|
"Stop"
|
|
6391
6383
|
]
|
|
6392
6384
|
}
|
|
@@ -6411,7 +6403,7 @@ const Lo = ({
|
|
|
6411
6403
|
onClick: L,
|
|
6412
6404
|
className: "flex items-center gap-2 px-3 py-1.5 text-sm text-error hover:bg-red-50 rounded-lg transition-colors",
|
|
6413
6405
|
children: [
|
|
6414
|
-
/* @__PURE__ */ e(
|
|
6406
|
+
/* @__PURE__ */ e(Wt, { className: "w-4 h-4" }),
|
|
6415
6407
|
"Delete"
|
|
6416
6408
|
]
|
|
6417
6409
|
}
|
|
@@ -6441,11 +6433,11 @@ const Lo = ({
|
|
|
6441
6433
|
}, c = (u) => {
|
|
6442
6434
|
switch (u) {
|
|
6443
6435
|
case "document":
|
|
6444
|
-
return /* @__PURE__ */ e(
|
|
6436
|
+
return /* @__PURE__ */ e(qe, { className: "w-8 h-8 text-primary" });
|
|
6445
6437
|
case "audio":
|
|
6446
|
-
return /* @__PURE__ */ e(
|
|
6438
|
+
return /* @__PURE__ */ e(qe, { className: "w-8 h-8 text-primary" });
|
|
6447
6439
|
default:
|
|
6448
|
-
return /* @__PURE__ */ e(
|
|
6440
|
+
return /* @__PURE__ */ e(_t, { className: "w-8 h-8 text-primary" });
|
|
6449
6441
|
}
|
|
6450
6442
|
};
|
|
6451
6443
|
return t.length === 0 ? null : /* @__PURE__ */ e("div", { className: p("w-full", n), children: /* @__PURE__ */ e("div", { className: p("grid gap-3", d[a]), children: t.map((u) => /* @__PURE__ */ l(
|
|
@@ -6505,7 +6497,7 @@ const Lo = ({
|
|
|
6505
6497
|
textColor: m = "text-gray-400",
|
|
6506
6498
|
className: i = ""
|
|
6507
6499
|
}) => {
|
|
6508
|
-
const d = r ? /* @__PURE__ */ l(
|
|
6500
|
+
const d = r ? /* @__PURE__ */ l(Ke, { children: [
|
|
6509
6501
|
"Built with ",
|
|
6510
6502
|
/* @__PURE__ */ e("span", { className: "text-red-500 mx-1", children: "❤️" }),
|
|
6511
6503
|
" by ",
|
|
@@ -6569,24 +6561,24 @@ export {
|
|
|
6569
6561
|
ho as CardDescription,
|
|
6570
6562
|
bo as CardHeader,
|
|
6571
6563
|
fo as CardTitle,
|
|
6572
|
-
|
|
6573
|
-
|
|
6564
|
+
$e as Checkbox,
|
|
6565
|
+
vt as CountrySelect,
|
|
6574
6566
|
Bo as CreditBar,
|
|
6575
|
-
|
|
6567
|
+
Fr as DatePicker,
|
|
6576
6568
|
yo as Drawer,
|
|
6577
6569
|
uo as Dropdown,
|
|
6578
6570
|
mo as DualSlider,
|
|
6579
6571
|
So as FAB,
|
|
6580
6572
|
Eo as FileUploader,
|
|
6581
6573
|
Kr as FloatingActionButton,
|
|
6582
|
-
|
|
6574
|
+
Ur as Input,
|
|
6583
6575
|
xo as Modal,
|
|
6584
6576
|
wo as ModalContent,
|
|
6585
6577
|
vo as ModalFooter,
|
|
6586
6578
|
$r as MultiSelect,
|
|
6587
6579
|
Ro as OfflineBadge,
|
|
6588
6580
|
ko as Pagination,
|
|
6589
|
-
|
|
6581
|
+
Ct as PhoneInput,
|
|
6590
6582
|
lo as RadioPills,
|
|
6591
6583
|
Hr as Select,
|
|
6592
6584
|
co as Slider,
|
|
@@ -6594,7 +6586,7 @@ export {
|
|
|
6594
6586
|
Mo as StepProgress,
|
|
6595
6587
|
To as SyncIndicator,
|
|
6596
6588
|
No as Table,
|
|
6597
|
-
|
|
6589
|
+
Vr as Textarea,
|
|
6598
6590
|
Io as ThumbnailGrid,
|
|
6599
6591
|
Xr as ToastProvider,
|
|
6600
6592
|
Yr as Toggle,
|