@stackloop/ui 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +223 -219
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as d, jsx as r, Fragment as ae } from "react/jsx-runtime";
|
|
2
2
|
import Le, { forwardRef as se, useState as D, useRef as H, useEffect as Z, createContext as er, useCallback as ze, useContext as rr } from "react";
|
|
3
|
-
import { motion as g, AnimatePresence as
|
|
4
|
-
import { Loader2 as tr, EyeOff as or, Eye as ar, Check as
|
|
3
|
+
import { motion as g, AnimatePresence as K } from "framer-motion";
|
|
4
|
+
import { Loader2 as tr, EyeOff as or, Eye as ar, Check as Ee, X as $, ChevronDown as Oe, Search as Fe, Calendar as sr, ChevronLeft as Pe, ChevronRight as Ge, ArrowUp as nr, ArrowDown as ir, ChevronsUpDown as lr, Plus as cr, WifiOff as ge, Wifi as Te, Info as dr, AlertTriangle as mr, AlertCircle as ur, CheckCircle as pr, Camera as br, Upload as hr, Play as fr, Pause as gr, Mic as yr, Square as xr, Trash2 as wr, Image as vr, FileText as Me } from "lucide-react";
|
|
5
5
|
function Be(e) {
|
|
6
6
|
var t, a, o = "";
|
|
7
7
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
@@ -122,7 +122,7 @@ const kr = (e, t) => {
|
|
|
122
122
|
c || (c = Ue(), a.nextPart.set(n, c)), a = c;
|
|
123
123
|
}
|
|
124
124
|
return a;
|
|
125
|
-
}, Lr = (e) => "isThemeGetter" in e && e.isThemeGetter === !0,
|
|
125
|
+
}, Lr = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Er = (e) => {
|
|
126
126
|
if (e < 1)
|
|
127
127
|
return {
|
|
128
128
|
get: () => {
|
|
@@ -146,7 +146,7 @@ const kr = (e, t) => {
|
|
|
146
146
|
l in a ? a[l] = n : s(l, n);
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
|
-
}, ye = "!", Ae = ":",
|
|
149
|
+
}, ye = "!", Ae = ":", Or = [], Ie = (e, t, a, o, s) => ({
|
|
150
150
|
modifiers: e,
|
|
151
151
|
hasImportantModifier: t,
|
|
152
152
|
baseClassName: a,
|
|
@@ -176,20 +176,20 @@ const kr = (e, t) => {
|
|
|
176
176
|
M === "[" ? n++ : M === "]" ? n-- : M === "(" ? c++ : M === ")" && c--;
|
|
177
177
|
}
|
|
178
178
|
const y = l.length === 0 ? s : s.slice(i);
|
|
179
|
-
let h = y,
|
|
180
|
-
y.endsWith(ye) ? (h = y.slice(0, -1),
|
|
179
|
+
let h = y, C = !1;
|
|
180
|
+
y.endsWith(ye) ? (h = y.slice(0, -1), C = !0) : (
|
|
181
181
|
/**
|
|
182
182
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
183
183
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
184
184
|
*/
|
|
185
|
-
y.startsWith(ye) && (h = y.slice(1),
|
|
185
|
+
y.startsWith(ye) && (h = y.slice(1), C = !0)
|
|
186
186
|
);
|
|
187
187
|
const w = m && m > i ? m - i : void 0;
|
|
188
|
-
return Ie(l,
|
|
188
|
+
return Ie(l, C, h, w);
|
|
189
189
|
};
|
|
190
190
|
if (t) {
|
|
191
191
|
const s = t + Ae, l = o;
|
|
192
|
-
o = (n) => n.startsWith(s) ? l(n.slice(s.length)) : Ie(
|
|
192
|
+
o = (n) => n.startsWith(s) ? l(n.slice(s.length)) : Ie(Or, !1, n, void 0, !0);
|
|
193
193
|
}
|
|
194
194
|
if (a) {
|
|
195
195
|
const s = o;
|
|
@@ -213,7 +213,7 @@ const kr = (e, t) => {
|
|
|
213
213
|
return s.length > 0 && (s.sort(), o.push(...s)), o;
|
|
214
214
|
};
|
|
215
215
|
}, Gr = (e) => ({
|
|
216
|
-
cache:
|
|
216
|
+
cache: Er(e.cacheSize),
|
|
217
217
|
parseClassName: Fr(e),
|
|
218
218
|
sortModifiers: Pr(e),
|
|
219
219
|
...zr(e)
|
|
@@ -229,7 +229,7 @@ const kr = (e, t) => {
|
|
|
229
229
|
const x = c[m], {
|
|
230
230
|
isExternal: y,
|
|
231
231
|
modifiers: h,
|
|
232
|
-
hasImportantModifier:
|
|
232
|
+
hasImportantModifier: C,
|
|
233
233
|
baseClassName: w,
|
|
234
234
|
maybePostfixModifierPosition: v
|
|
235
235
|
} = a(x);
|
|
@@ -249,14 +249,14 @@ const kr = (e, t) => {
|
|
|
249
249
|
}
|
|
250
250
|
M = !1;
|
|
251
251
|
}
|
|
252
|
-
const L = h.length === 0 ? "" : h.length === 1 ? h[0] : l(h).join(":"), T =
|
|
253
|
-
if (n.indexOf(
|
|
252
|
+
const L = h.length === 0 ? "" : h.length === 1 ? h[0] : l(h).join(":"), T = C ? L + ye : L, P = T + j;
|
|
253
|
+
if (n.indexOf(P) > -1)
|
|
254
254
|
continue;
|
|
255
|
-
n.push(
|
|
256
|
-
const
|
|
257
|
-
for (let
|
|
258
|
-
const
|
|
259
|
-
n.push(T +
|
|
255
|
+
n.push(P);
|
|
256
|
+
const O = s(j, M);
|
|
257
|
+
for (let N = 0; N < O.length; ++N) {
|
|
258
|
+
const E = O[N];
|
|
259
|
+
n.push(T + E);
|
|
260
260
|
}
|
|
261
261
|
i = x + (i.length > 0 ? " " + i : i);
|
|
262
262
|
}
|
|
@@ -289,19 +289,19 @@ const kr = (e, t) => {
|
|
|
289
289
|
}, Vr = [], R = (e) => {
|
|
290
290
|
const t = (a) => a[e] || Vr;
|
|
291
291
|
return t.isThemeGetter = !0, t;
|
|
292
|
-
}, We = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Wr = /^\d+\/\d+$/, Yr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Hr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, qr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Jr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,
|
|
292
|
+
}, We = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Wr = /^\d+\/\d+$/, Yr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Hr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, qr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Jr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Kr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, X = (e) => Wr.test(e), z = (e) => !!e && !Number.isNaN(Number(e)), J = (e) => !!e && Number.isInteger(Number(e)), he = (e) => e.endsWith("%") && z(e.slice(0, -1)), Y = (e) => Yr.test(e), Qr = () => !0, Xr = (e) => (
|
|
293
293
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
294
294
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
295
295
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
296
296
|
Hr.test(e) && !qr.test(e)
|
|
297
|
-
), He = () => !1, Zr = (e) => Jr.test(e), et = (e) =>
|
|
297
|
+
), He = () => !1, Zr = (e) => Jr.test(e), et = (e) => Kr.test(e), rt = (e) => !p(e) && !b(e), tt = (e) => ee(e, Ke, He), p = (e) => We.test(e), Q = (e) => ee(e, Qe, Xr), fe = (e) => ee(e, it, z), je = (e) => ee(e, qe, He), ot = (e) => ee(e, Je, et), de = (e) => ee(e, Xe, Zr), b = (e) => Ye.test(e), oe = (e) => re(e, Qe), at = (e) => re(e, lt), De = (e) => re(e, qe), st = (e) => re(e, Ke), nt = (e) => re(e, Je), me = (e) => re(e, Xe, !0), ee = (e, t, a) => {
|
|
298
298
|
const o = We.exec(e);
|
|
299
299
|
return o ? o[1] ? t(o[1]) : a(o[2]) : !1;
|
|
300
300
|
}, re = (e, t, a = !1) => {
|
|
301
301
|
const o = Ye.exec(e);
|
|
302
302
|
return o ? o[1] ? t(o[1]) : a : !1;
|
|
303
|
-
}, qe = (e) => e === "position" || e === "percentage", Je = (e) => e === "image" || e === "url",
|
|
304
|
-
const e = R("color"), t = R("font"), a = R("text"), o = R("font-weight"), s = R("tracking"), l = R("leading"), n = R("breakpoint"), c = R("container"), i = R("spacing"), m = R("radius"), x = R("shadow"), y = R("inset-shadow"), h = R("text-shadow"),
|
|
303
|
+
}, qe = (e) => e === "position" || e === "percentage", Je = (e) => e === "image" || e === "url", Ke = (e) => e === "length" || e === "size" || e === "bg-size", Qe = (e) => e === "length", it = (e) => e === "number", lt = (e) => e === "family-name", Xe = (e) => e === "shadow", ct = () => {
|
|
304
|
+
const e = R("color"), t = R("font"), a = R("text"), o = R("font-weight"), s = R("tracking"), l = R("leading"), n = R("breakpoint"), c = R("container"), i = R("spacing"), m = R("radius"), x = R("shadow"), y = R("inset-shadow"), h = R("text-shadow"), C = R("drop-shadow"), w = R("blur"), v = R("perspective"), M = R("aspect"), j = R("ease"), L = R("animate"), T = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [
|
|
305
305
|
"center",
|
|
306
306
|
"top",
|
|
307
307
|
"bottom",
|
|
@@ -319,15 +319,15 @@ const kr = (e, t) => {
|
|
|
319
319
|
"bottom-left",
|
|
320
320
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
321
321
|
"left-bottom"
|
|
322
|
-
],
|
|
322
|
+
], O = () => [...P(), b, p], N = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], f = () => [b, p, i], S = () => [X, "full", "auto", ...f()], A = () => [J, "none", "subgrid", b, p], _ = () => ["auto", {
|
|
323
323
|
span: ["full", J, b, p]
|
|
324
|
-
}, J, b, p], V = () => [J, "auto", b, p], W = () => ["auto", "min", "max", "fr", b, p], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...f()], G = () => [X, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()],
|
|
324
|
+
}, J, b, p], V = () => [J, "auto", b, p], W = () => ["auto", "min", "max", "fr", b, p], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...f()], G = () => [X, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], k = () => [e, b, p], ve = () => [...P(), De, je, {
|
|
325
325
|
position: [b, p]
|
|
326
326
|
}], Ne = () => ["no-repeat", {
|
|
327
327
|
repeat: ["", "x", "y", "space", "round"]
|
|
328
328
|
}], ke = () => ["auto", "cover", "contain", st, tt, {
|
|
329
329
|
size: [b, p]
|
|
330
|
-
}], pe = () => [he, oe,
|
|
330
|
+
}], pe = () => [he, oe, Q], F = () => [
|
|
331
331
|
// Deprecated since Tailwind CSS v4.0.0
|
|
332
332
|
"",
|
|
333
333
|
"none",
|
|
@@ -335,7 +335,7 @@ const kr = (e, t) => {
|
|
|
335
335
|
m,
|
|
336
336
|
b,
|
|
337
337
|
p
|
|
338
|
-
], U = () => ["", z, oe,
|
|
338
|
+
], U = () => ["", z, oe, Q], ne = () => ["solid", "dashed", "dotted", "double"], Ce = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], I = () => [z, he, De, je], Se = () => [
|
|
339
339
|
// Deprecated since Tailwind CSS v4.0.0
|
|
340
340
|
"",
|
|
341
341
|
"none",
|
|
@@ -350,7 +350,7 @@ const kr = (e, t) => {
|
|
|
350
350
|
aspect: ["video"],
|
|
351
351
|
blur: [Y],
|
|
352
352
|
breakpoint: [Y],
|
|
353
|
-
color: [
|
|
353
|
+
color: [Qr],
|
|
354
354
|
container: [Y],
|
|
355
355
|
"drop-shadow": [Y],
|
|
356
356
|
ease: ["in", "out", "in-out"],
|
|
@@ -466,49 +466,49 @@ const kr = (e, t) => {
|
|
|
466
466
|
* @see https://tailwindcss.com/docs/object-position
|
|
467
467
|
*/
|
|
468
468
|
"object-position": [{
|
|
469
|
-
object:
|
|
469
|
+
object: O()
|
|
470
470
|
}],
|
|
471
471
|
/**
|
|
472
472
|
* Overflow
|
|
473
473
|
* @see https://tailwindcss.com/docs/overflow
|
|
474
474
|
*/
|
|
475
475
|
overflow: [{
|
|
476
|
-
overflow:
|
|
476
|
+
overflow: N()
|
|
477
477
|
}],
|
|
478
478
|
/**
|
|
479
479
|
* Overflow X
|
|
480
480
|
* @see https://tailwindcss.com/docs/overflow
|
|
481
481
|
*/
|
|
482
482
|
"overflow-x": [{
|
|
483
|
-
"overflow-x":
|
|
483
|
+
"overflow-x": N()
|
|
484
484
|
}],
|
|
485
485
|
/**
|
|
486
486
|
* Overflow Y
|
|
487
487
|
* @see https://tailwindcss.com/docs/overflow
|
|
488
488
|
*/
|
|
489
489
|
"overflow-y": [{
|
|
490
|
-
"overflow-y":
|
|
490
|
+
"overflow-y": N()
|
|
491
491
|
}],
|
|
492
492
|
/**
|
|
493
493
|
* Overscroll Behavior
|
|
494
494
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
495
495
|
*/
|
|
496
496
|
overscroll: [{
|
|
497
|
-
overscroll:
|
|
497
|
+
overscroll: E()
|
|
498
498
|
}],
|
|
499
499
|
/**
|
|
500
500
|
* Overscroll Behavior X
|
|
501
501
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
502
502
|
*/
|
|
503
503
|
"overscroll-x": [{
|
|
504
|
-
"overscroll-x":
|
|
504
|
+
"overscroll-x": E()
|
|
505
505
|
}],
|
|
506
506
|
/**
|
|
507
507
|
* Overscroll Behavior Y
|
|
508
508
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
509
509
|
*/
|
|
510
510
|
"overscroll-y": [{
|
|
511
|
-
"overscroll-y":
|
|
511
|
+
"overscroll-y": E()
|
|
512
512
|
}],
|
|
513
513
|
/**
|
|
514
514
|
* Position
|
|
@@ -520,63 +520,63 @@ const kr = (e, t) => {
|
|
|
520
520
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
521
521
|
*/
|
|
522
522
|
inset: [{
|
|
523
|
-
inset:
|
|
523
|
+
inset: S()
|
|
524
524
|
}],
|
|
525
525
|
/**
|
|
526
526
|
* Right / Left
|
|
527
527
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
528
528
|
*/
|
|
529
529
|
"inset-x": [{
|
|
530
|
-
"inset-x":
|
|
530
|
+
"inset-x": S()
|
|
531
531
|
}],
|
|
532
532
|
/**
|
|
533
533
|
* Top / Bottom
|
|
534
534
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
535
535
|
*/
|
|
536
536
|
"inset-y": [{
|
|
537
|
-
"inset-y":
|
|
537
|
+
"inset-y": S()
|
|
538
538
|
}],
|
|
539
539
|
/**
|
|
540
540
|
* Start
|
|
541
541
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
542
542
|
*/
|
|
543
543
|
start: [{
|
|
544
|
-
start:
|
|
544
|
+
start: S()
|
|
545
545
|
}],
|
|
546
546
|
/**
|
|
547
547
|
* End
|
|
548
548
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
549
549
|
*/
|
|
550
550
|
end: [{
|
|
551
|
-
end:
|
|
551
|
+
end: S()
|
|
552
552
|
}],
|
|
553
553
|
/**
|
|
554
554
|
* Top
|
|
555
555
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
556
556
|
*/
|
|
557
557
|
top: [{
|
|
558
|
-
top:
|
|
558
|
+
top: S()
|
|
559
559
|
}],
|
|
560
560
|
/**
|
|
561
561
|
* Right
|
|
562
562
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
563
563
|
*/
|
|
564
564
|
right: [{
|
|
565
|
-
right:
|
|
565
|
+
right: S()
|
|
566
566
|
}],
|
|
567
567
|
/**
|
|
568
568
|
* Bottom
|
|
569
569
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
570
570
|
*/
|
|
571
571
|
bottom: [{
|
|
572
|
-
bottom:
|
|
572
|
+
bottom: S()
|
|
573
573
|
}],
|
|
574
574
|
/**
|
|
575
575
|
* Left
|
|
576
576
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
577
577
|
*/
|
|
578
578
|
left: [{
|
|
579
|
-
left:
|
|
579
|
+
left: S()
|
|
580
580
|
}],
|
|
581
581
|
/**
|
|
582
582
|
* Visibility
|
|
@@ -1035,7 +1035,7 @@ const kr = (e, t) => {
|
|
|
1035
1035
|
* @see https://tailwindcss.com/docs/font-size
|
|
1036
1036
|
*/
|
|
1037
1037
|
"font-size": [{
|
|
1038
|
-
text: ["base", a, oe,
|
|
1038
|
+
text: ["base", a, oe, Q]
|
|
1039
1039
|
}],
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Font Smoothing
|
|
@@ -1157,14 +1157,14 @@ const kr = (e, t) => {
|
|
|
1157
1157
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1158
1158
|
*/
|
|
1159
1159
|
"placeholder-color": [{
|
|
1160
|
-
placeholder:
|
|
1160
|
+
placeholder: k()
|
|
1161
1161
|
}],
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Text Color
|
|
1164
1164
|
* @see https://tailwindcss.com/docs/text-color
|
|
1165
1165
|
*/
|
|
1166
1166
|
"text-color": [{
|
|
1167
|
-
text:
|
|
1167
|
+
text: k()
|
|
1168
1168
|
}],
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Text Decoration
|
|
@@ -1183,14 +1183,14 @@ const kr = (e, t) => {
|
|
|
1183
1183
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1184
1184
|
*/
|
|
1185
1185
|
"text-decoration-thickness": [{
|
|
1186
|
-
decoration: [z, "from-font", "auto", b,
|
|
1186
|
+
decoration: [z, "from-font", "auto", b, Q]
|
|
1187
1187
|
}],
|
|
1188
1188
|
/**
|
|
1189
1189
|
* Text Decoration Color
|
|
1190
1190
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1191
1191
|
*/
|
|
1192
1192
|
"text-decoration-color": [{
|
|
1193
|
-
decoration:
|
|
1193
|
+
decoration: k()
|
|
1194
1194
|
}],
|
|
1195
1195
|
/**
|
|
1196
1196
|
* Text Underline Offset
|
|
@@ -1328,7 +1328,7 @@ const kr = (e, t) => {
|
|
|
1328
1328
|
* @see https://tailwindcss.com/docs/background-color
|
|
1329
1329
|
*/
|
|
1330
1330
|
"bg-color": [{
|
|
1331
|
-
bg:
|
|
1331
|
+
bg: k()
|
|
1332
1332
|
}],
|
|
1333
1333
|
/**
|
|
1334
1334
|
* Gradient Color Stops From Position
|
|
@@ -1356,21 +1356,21 @@ const kr = (e, t) => {
|
|
|
1356
1356
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1357
1357
|
*/
|
|
1358
1358
|
"gradient-from": [{
|
|
1359
|
-
from:
|
|
1359
|
+
from: k()
|
|
1360
1360
|
}],
|
|
1361
1361
|
/**
|
|
1362
1362
|
* Gradient Color Stops Via
|
|
1363
1363
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1364
1364
|
*/
|
|
1365
1365
|
"gradient-via": [{
|
|
1366
|
-
via:
|
|
1366
|
+
via: k()
|
|
1367
1367
|
}],
|
|
1368
1368
|
/**
|
|
1369
1369
|
* Gradient Color Stops To
|
|
1370
1370
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1371
1371
|
*/
|
|
1372
1372
|
"gradient-to": [{
|
|
1373
|
-
to:
|
|
1373
|
+
to: k()
|
|
1374
1374
|
}],
|
|
1375
1375
|
// ---------------
|
|
1376
1376
|
// --- Borders ---
|
|
@@ -1380,105 +1380,105 @@ const kr = (e, t) => {
|
|
|
1380
1380
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1381
1381
|
*/
|
|
1382
1382
|
rounded: [{
|
|
1383
|
-
rounded:
|
|
1383
|
+
rounded: F()
|
|
1384
1384
|
}],
|
|
1385
1385
|
/**
|
|
1386
1386
|
* Border Radius Start
|
|
1387
1387
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1388
1388
|
*/
|
|
1389
1389
|
"rounded-s": [{
|
|
1390
|
-
"rounded-s":
|
|
1390
|
+
"rounded-s": F()
|
|
1391
1391
|
}],
|
|
1392
1392
|
/**
|
|
1393
1393
|
* Border Radius End
|
|
1394
1394
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1395
1395
|
*/
|
|
1396
1396
|
"rounded-e": [{
|
|
1397
|
-
"rounded-e":
|
|
1397
|
+
"rounded-e": F()
|
|
1398
1398
|
}],
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Border Radius Top
|
|
1401
1401
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1402
1402
|
*/
|
|
1403
1403
|
"rounded-t": [{
|
|
1404
|
-
"rounded-t":
|
|
1404
|
+
"rounded-t": F()
|
|
1405
1405
|
}],
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Border Radius Right
|
|
1408
1408
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1409
1409
|
*/
|
|
1410
1410
|
"rounded-r": [{
|
|
1411
|
-
"rounded-r":
|
|
1411
|
+
"rounded-r": F()
|
|
1412
1412
|
}],
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Border Radius Bottom
|
|
1415
1415
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1416
1416
|
*/
|
|
1417
1417
|
"rounded-b": [{
|
|
1418
|
-
"rounded-b":
|
|
1418
|
+
"rounded-b": F()
|
|
1419
1419
|
}],
|
|
1420
1420
|
/**
|
|
1421
1421
|
* Border Radius Left
|
|
1422
1422
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1423
1423
|
*/
|
|
1424
1424
|
"rounded-l": [{
|
|
1425
|
-
"rounded-l":
|
|
1425
|
+
"rounded-l": F()
|
|
1426
1426
|
}],
|
|
1427
1427
|
/**
|
|
1428
1428
|
* Border Radius Start Start
|
|
1429
1429
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1430
1430
|
*/
|
|
1431
1431
|
"rounded-ss": [{
|
|
1432
|
-
"rounded-ss":
|
|
1432
|
+
"rounded-ss": F()
|
|
1433
1433
|
}],
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Border Radius Start End
|
|
1436
1436
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1437
1437
|
*/
|
|
1438
1438
|
"rounded-se": [{
|
|
1439
|
-
"rounded-se":
|
|
1439
|
+
"rounded-se": F()
|
|
1440
1440
|
}],
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Border Radius End End
|
|
1443
1443
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1444
1444
|
*/
|
|
1445
1445
|
"rounded-ee": [{
|
|
1446
|
-
"rounded-ee":
|
|
1446
|
+
"rounded-ee": F()
|
|
1447
1447
|
}],
|
|
1448
1448
|
/**
|
|
1449
1449
|
* Border Radius End Start
|
|
1450
1450
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1451
1451
|
*/
|
|
1452
1452
|
"rounded-es": [{
|
|
1453
|
-
"rounded-es":
|
|
1453
|
+
"rounded-es": F()
|
|
1454
1454
|
}],
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Border Radius Top Left
|
|
1457
1457
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1458
1458
|
*/
|
|
1459
1459
|
"rounded-tl": [{
|
|
1460
|
-
"rounded-tl":
|
|
1460
|
+
"rounded-tl": F()
|
|
1461
1461
|
}],
|
|
1462
1462
|
/**
|
|
1463
1463
|
* Border Radius Top Right
|
|
1464
1464
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1465
1465
|
*/
|
|
1466
1466
|
"rounded-tr": [{
|
|
1467
|
-
"rounded-tr":
|
|
1467
|
+
"rounded-tr": F()
|
|
1468
1468
|
}],
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Border Radius Bottom Right
|
|
1471
1471
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1472
1472
|
*/
|
|
1473
1473
|
"rounded-br": [{
|
|
1474
|
-
"rounded-br":
|
|
1474
|
+
"rounded-br": F()
|
|
1475
1475
|
}],
|
|
1476
1476
|
/**
|
|
1477
1477
|
* Border Radius Bottom Left
|
|
1478
1478
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1479
1479
|
*/
|
|
1480
1480
|
"rounded-bl": [{
|
|
1481
|
-
"rounded-bl":
|
|
1481
|
+
"rounded-bl": F()
|
|
1482
1482
|
}],
|
|
1483
1483
|
/**
|
|
1484
1484
|
* Border Width
|
|
@@ -1586,70 +1586,70 @@ const kr = (e, t) => {
|
|
|
1586
1586
|
* @see https://tailwindcss.com/docs/border-color
|
|
1587
1587
|
*/
|
|
1588
1588
|
"border-color": [{
|
|
1589
|
-
border:
|
|
1589
|
+
border: k()
|
|
1590
1590
|
}],
|
|
1591
1591
|
/**
|
|
1592
1592
|
* Border Color X
|
|
1593
1593
|
* @see https://tailwindcss.com/docs/border-color
|
|
1594
1594
|
*/
|
|
1595
1595
|
"border-color-x": [{
|
|
1596
|
-
"border-x":
|
|
1596
|
+
"border-x": k()
|
|
1597
1597
|
}],
|
|
1598
1598
|
/**
|
|
1599
1599
|
* Border Color Y
|
|
1600
1600
|
* @see https://tailwindcss.com/docs/border-color
|
|
1601
1601
|
*/
|
|
1602
1602
|
"border-color-y": [{
|
|
1603
|
-
"border-y":
|
|
1603
|
+
"border-y": k()
|
|
1604
1604
|
}],
|
|
1605
1605
|
/**
|
|
1606
1606
|
* Border Color S
|
|
1607
1607
|
* @see https://tailwindcss.com/docs/border-color
|
|
1608
1608
|
*/
|
|
1609
1609
|
"border-color-s": [{
|
|
1610
|
-
"border-s":
|
|
1610
|
+
"border-s": k()
|
|
1611
1611
|
}],
|
|
1612
1612
|
/**
|
|
1613
1613
|
* Border Color E
|
|
1614
1614
|
* @see https://tailwindcss.com/docs/border-color
|
|
1615
1615
|
*/
|
|
1616
1616
|
"border-color-e": [{
|
|
1617
|
-
"border-e":
|
|
1617
|
+
"border-e": k()
|
|
1618
1618
|
}],
|
|
1619
1619
|
/**
|
|
1620
1620
|
* Border Color Top
|
|
1621
1621
|
* @see https://tailwindcss.com/docs/border-color
|
|
1622
1622
|
*/
|
|
1623
1623
|
"border-color-t": [{
|
|
1624
|
-
"border-t":
|
|
1624
|
+
"border-t": k()
|
|
1625
1625
|
}],
|
|
1626
1626
|
/**
|
|
1627
1627
|
* Border Color Right
|
|
1628
1628
|
* @see https://tailwindcss.com/docs/border-color
|
|
1629
1629
|
*/
|
|
1630
1630
|
"border-color-r": [{
|
|
1631
|
-
"border-r":
|
|
1631
|
+
"border-r": k()
|
|
1632
1632
|
}],
|
|
1633
1633
|
/**
|
|
1634
1634
|
* Border Color Bottom
|
|
1635
1635
|
* @see https://tailwindcss.com/docs/border-color
|
|
1636
1636
|
*/
|
|
1637
1637
|
"border-color-b": [{
|
|
1638
|
-
"border-b":
|
|
1638
|
+
"border-b": k()
|
|
1639
1639
|
}],
|
|
1640
1640
|
/**
|
|
1641
1641
|
* Border Color Left
|
|
1642
1642
|
* @see https://tailwindcss.com/docs/border-color
|
|
1643
1643
|
*/
|
|
1644
1644
|
"border-color-l": [{
|
|
1645
|
-
"border-l":
|
|
1645
|
+
"border-l": k()
|
|
1646
1646
|
}],
|
|
1647
1647
|
/**
|
|
1648
1648
|
* Divide Color
|
|
1649
1649
|
* @see https://tailwindcss.com/docs/divide-color
|
|
1650
1650
|
*/
|
|
1651
1651
|
"divide-color": [{
|
|
1652
|
-
divide:
|
|
1652
|
+
divide: k()
|
|
1653
1653
|
}],
|
|
1654
1654
|
/**
|
|
1655
1655
|
* Outline Style
|
|
@@ -1670,14 +1670,14 @@ const kr = (e, t) => {
|
|
|
1670
1670
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1671
1671
|
*/
|
|
1672
1672
|
"outline-w": [{
|
|
1673
|
-
outline: ["", z, oe,
|
|
1673
|
+
outline: ["", z, oe, Q]
|
|
1674
1674
|
}],
|
|
1675
1675
|
/**
|
|
1676
1676
|
* Outline Color
|
|
1677
1677
|
* @see https://tailwindcss.com/docs/outline-color
|
|
1678
1678
|
*/
|
|
1679
1679
|
"outline-color": [{
|
|
1680
|
-
outline:
|
|
1680
|
+
outline: k()
|
|
1681
1681
|
}],
|
|
1682
1682
|
// ---------------
|
|
1683
1683
|
// --- Effects ---
|
|
@@ -1701,7 +1701,7 @@ const kr = (e, t) => {
|
|
|
1701
1701
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
1702
1702
|
*/
|
|
1703
1703
|
"shadow-color": [{
|
|
1704
|
-
shadow:
|
|
1704
|
+
shadow: k()
|
|
1705
1705
|
}],
|
|
1706
1706
|
/**
|
|
1707
1707
|
* Inset Box Shadow
|
|
@@ -1715,7 +1715,7 @@ const kr = (e, t) => {
|
|
|
1715
1715
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
1716
1716
|
*/
|
|
1717
1717
|
"inset-shadow-color": [{
|
|
1718
|
-
"inset-shadow":
|
|
1718
|
+
"inset-shadow": k()
|
|
1719
1719
|
}],
|
|
1720
1720
|
/**
|
|
1721
1721
|
* Ring Width
|
|
@@ -1736,7 +1736,7 @@ const kr = (e, t) => {
|
|
|
1736
1736
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
1737
1737
|
*/
|
|
1738
1738
|
"ring-color": [{
|
|
1739
|
-
ring:
|
|
1739
|
+
ring: k()
|
|
1740
1740
|
}],
|
|
1741
1741
|
/**
|
|
1742
1742
|
* Ring Offset Width
|
|
@@ -1745,7 +1745,7 @@ const kr = (e, t) => {
|
|
|
1745
1745
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1746
1746
|
*/
|
|
1747
1747
|
"ring-offset-w": [{
|
|
1748
|
-
"ring-offset": [z,
|
|
1748
|
+
"ring-offset": [z, Q]
|
|
1749
1749
|
}],
|
|
1750
1750
|
/**
|
|
1751
1751
|
* Ring Offset Color
|
|
@@ -1754,7 +1754,7 @@ const kr = (e, t) => {
|
|
|
1754
1754
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1755
1755
|
*/
|
|
1756
1756
|
"ring-offset-color": [{
|
|
1757
|
-
"ring-offset":
|
|
1757
|
+
"ring-offset": k()
|
|
1758
1758
|
}],
|
|
1759
1759
|
/**
|
|
1760
1760
|
* Inset Ring Width
|
|
@@ -1768,7 +1768,7 @@ const kr = (e, t) => {
|
|
|
1768
1768
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
1769
1769
|
*/
|
|
1770
1770
|
"inset-ring-color": [{
|
|
1771
|
-
"inset-ring":
|
|
1771
|
+
"inset-ring": k()
|
|
1772
1772
|
}],
|
|
1773
1773
|
/**
|
|
1774
1774
|
* Text Shadow
|
|
@@ -1782,7 +1782,7 @@ const kr = (e, t) => {
|
|
|
1782
1782
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
1783
1783
|
*/
|
|
1784
1784
|
"text-shadow-color": [{
|
|
1785
|
-
"text-shadow":
|
|
1785
|
+
"text-shadow": k()
|
|
1786
1786
|
}],
|
|
1787
1787
|
/**
|
|
1788
1788
|
* Opacity
|
|
@@ -1833,10 +1833,10 @@ const kr = (e, t) => {
|
|
|
1833
1833
|
"mask-linear-to": I()
|
|
1834
1834
|
}],
|
|
1835
1835
|
"mask-image-linear-from-color": [{
|
|
1836
|
-
"mask-linear-from":
|
|
1836
|
+
"mask-linear-from": k()
|
|
1837
1837
|
}],
|
|
1838
1838
|
"mask-image-linear-to-color": [{
|
|
1839
|
-
"mask-linear-to":
|
|
1839
|
+
"mask-linear-to": k()
|
|
1840
1840
|
}],
|
|
1841
1841
|
"mask-image-t-from-pos": [{
|
|
1842
1842
|
"mask-t-from": I()
|
|
@@ -1845,10 +1845,10 @@ const kr = (e, t) => {
|
|
|
1845
1845
|
"mask-t-to": I()
|
|
1846
1846
|
}],
|
|
1847
1847
|
"mask-image-t-from-color": [{
|
|
1848
|
-
"mask-t-from":
|
|
1848
|
+
"mask-t-from": k()
|
|
1849
1849
|
}],
|
|
1850
1850
|
"mask-image-t-to-color": [{
|
|
1851
|
-
"mask-t-to":
|
|
1851
|
+
"mask-t-to": k()
|
|
1852
1852
|
}],
|
|
1853
1853
|
"mask-image-r-from-pos": [{
|
|
1854
1854
|
"mask-r-from": I()
|
|
@@ -1857,10 +1857,10 @@ const kr = (e, t) => {
|
|
|
1857
1857
|
"mask-r-to": I()
|
|
1858
1858
|
}],
|
|
1859
1859
|
"mask-image-r-from-color": [{
|
|
1860
|
-
"mask-r-from":
|
|
1860
|
+
"mask-r-from": k()
|
|
1861
1861
|
}],
|
|
1862
1862
|
"mask-image-r-to-color": [{
|
|
1863
|
-
"mask-r-to":
|
|
1863
|
+
"mask-r-to": k()
|
|
1864
1864
|
}],
|
|
1865
1865
|
"mask-image-b-from-pos": [{
|
|
1866
1866
|
"mask-b-from": I()
|
|
@@ -1869,10 +1869,10 @@ const kr = (e, t) => {
|
|
|
1869
1869
|
"mask-b-to": I()
|
|
1870
1870
|
}],
|
|
1871
1871
|
"mask-image-b-from-color": [{
|
|
1872
|
-
"mask-b-from":
|
|
1872
|
+
"mask-b-from": k()
|
|
1873
1873
|
}],
|
|
1874
1874
|
"mask-image-b-to-color": [{
|
|
1875
|
-
"mask-b-to":
|
|
1875
|
+
"mask-b-to": k()
|
|
1876
1876
|
}],
|
|
1877
1877
|
"mask-image-l-from-pos": [{
|
|
1878
1878
|
"mask-l-from": I()
|
|
@@ -1881,10 +1881,10 @@ const kr = (e, t) => {
|
|
|
1881
1881
|
"mask-l-to": I()
|
|
1882
1882
|
}],
|
|
1883
1883
|
"mask-image-l-from-color": [{
|
|
1884
|
-
"mask-l-from":
|
|
1884
|
+
"mask-l-from": k()
|
|
1885
1885
|
}],
|
|
1886
1886
|
"mask-image-l-to-color": [{
|
|
1887
|
-
"mask-l-to":
|
|
1887
|
+
"mask-l-to": k()
|
|
1888
1888
|
}],
|
|
1889
1889
|
"mask-image-x-from-pos": [{
|
|
1890
1890
|
"mask-x-from": I()
|
|
@@ -1893,10 +1893,10 @@ const kr = (e, t) => {
|
|
|
1893
1893
|
"mask-x-to": I()
|
|
1894
1894
|
}],
|
|
1895
1895
|
"mask-image-x-from-color": [{
|
|
1896
|
-
"mask-x-from":
|
|
1896
|
+
"mask-x-from": k()
|
|
1897
1897
|
}],
|
|
1898
1898
|
"mask-image-x-to-color": [{
|
|
1899
|
-
"mask-x-to":
|
|
1899
|
+
"mask-x-to": k()
|
|
1900
1900
|
}],
|
|
1901
1901
|
"mask-image-y-from-pos": [{
|
|
1902
1902
|
"mask-y-from": I()
|
|
@@ -1905,10 +1905,10 @@ const kr = (e, t) => {
|
|
|
1905
1905
|
"mask-y-to": I()
|
|
1906
1906
|
}],
|
|
1907
1907
|
"mask-image-y-from-color": [{
|
|
1908
|
-
"mask-y-from":
|
|
1908
|
+
"mask-y-from": k()
|
|
1909
1909
|
}],
|
|
1910
1910
|
"mask-image-y-to-color": [{
|
|
1911
|
-
"mask-y-to":
|
|
1911
|
+
"mask-y-to": k()
|
|
1912
1912
|
}],
|
|
1913
1913
|
"mask-image-radial": [{
|
|
1914
1914
|
"mask-radial": [b, p]
|
|
@@ -1920,10 +1920,10 @@ const kr = (e, t) => {
|
|
|
1920
1920
|
"mask-radial-to": I()
|
|
1921
1921
|
}],
|
|
1922
1922
|
"mask-image-radial-from-color": [{
|
|
1923
|
-
"mask-radial-from":
|
|
1923
|
+
"mask-radial-from": k()
|
|
1924
1924
|
}],
|
|
1925
1925
|
"mask-image-radial-to-color": [{
|
|
1926
|
-
"mask-radial-to":
|
|
1926
|
+
"mask-radial-to": k()
|
|
1927
1927
|
}],
|
|
1928
1928
|
"mask-image-radial-shape": [{
|
|
1929
1929
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -1935,7 +1935,7 @@ const kr = (e, t) => {
|
|
|
1935
1935
|
}]
|
|
1936
1936
|
}],
|
|
1937
1937
|
"mask-image-radial-pos": [{
|
|
1938
|
-
"mask-radial-at":
|
|
1938
|
+
"mask-radial-at": P()
|
|
1939
1939
|
}],
|
|
1940
1940
|
"mask-image-conic-pos": [{
|
|
1941
1941
|
"mask-conic": [z]
|
|
@@ -1947,10 +1947,10 @@ const kr = (e, t) => {
|
|
|
1947
1947
|
"mask-conic-to": I()
|
|
1948
1948
|
}],
|
|
1949
1949
|
"mask-image-conic-from-color": [{
|
|
1950
|
-
"mask-conic-from":
|
|
1950
|
+
"mask-conic-from": k()
|
|
1951
1951
|
}],
|
|
1952
1952
|
"mask-image-conic-to-color": [{
|
|
1953
|
-
"mask-conic-to":
|
|
1953
|
+
"mask-conic-to": k()
|
|
1954
1954
|
}],
|
|
1955
1955
|
/**
|
|
1956
1956
|
* Mask Mode
|
|
@@ -2047,7 +2047,7 @@ const kr = (e, t) => {
|
|
|
2047
2047
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2048
2048
|
"",
|
|
2049
2049
|
"none",
|
|
2050
|
-
|
|
2050
|
+
C,
|
|
2051
2051
|
me,
|
|
2052
2052
|
de
|
|
2053
2053
|
]
|
|
@@ -2057,7 +2057,7 @@ const kr = (e, t) => {
|
|
|
2057
2057
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2058
2058
|
*/
|
|
2059
2059
|
"drop-shadow-color": [{
|
|
2060
|
-
"drop-shadow":
|
|
2060
|
+
"drop-shadow": k()
|
|
2061
2061
|
}],
|
|
2062
2062
|
/**
|
|
2063
2063
|
* Grayscale
|
|
@@ -2282,7 +2282,7 @@ const kr = (e, t) => {
|
|
|
2282
2282
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2283
2283
|
*/
|
|
2284
2284
|
"perspective-origin": [{
|
|
2285
|
-
"perspective-origin":
|
|
2285
|
+
"perspective-origin": O()
|
|
2286
2286
|
}],
|
|
2287
2287
|
/**
|
|
2288
2288
|
* Rotate
|
|
@@ -2378,7 +2378,7 @@ const kr = (e, t) => {
|
|
|
2378
2378
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2379
2379
|
*/
|
|
2380
2380
|
"transform-origin": [{
|
|
2381
|
-
origin:
|
|
2381
|
+
origin: O()
|
|
2382
2382
|
}],
|
|
2383
2383
|
/**
|
|
2384
2384
|
* Transform Style
|
|
@@ -2428,7 +2428,7 @@ const kr = (e, t) => {
|
|
|
2428
2428
|
* @see https://tailwindcss.com/docs/accent-color
|
|
2429
2429
|
*/
|
|
2430
2430
|
accent: [{
|
|
2431
|
-
accent:
|
|
2431
|
+
accent: k()
|
|
2432
2432
|
}],
|
|
2433
2433
|
/**
|
|
2434
2434
|
* Appearance
|
|
@@ -2442,7 +2442,7 @@ const kr = (e, t) => {
|
|
|
2442
2442
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2443
2443
|
*/
|
|
2444
2444
|
"caret-color": [{
|
|
2445
|
-
caret:
|
|
2445
|
+
caret: k()
|
|
2446
2446
|
}],
|
|
2447
2447
|
/**
|
|
2448
2448
|
* Color Scheme
|
|
@@ -2688,21 +2688,21 @@ const kr = (e, t) => {
|
|
|
2688
2688
|
* @see https://tailwindcss.com/docs/fill
|
|
2689
2689
|
*/
|
|
2690
2690
|
fill: [{
|
|
2691
|
-
fill: ["none", ...
|
|
2691
|
+
fill: ["none", ...k()]
|
|
2692
2692
|
}],
|
|
2693
2693
|
/**
|
|
2694
2694
|
* Stroke Width
|
|
2695
2695
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2696
2696
|
*/
|
|
2697
2697
|
"stroke-w": [{
|
|
2698
|
-
stroke: [z, oe,
|
|
2698
|
+
stroke: [z, oe, Q, fe]
|
|
2699
2699
|
}],
|
|
2700
2700
|
/**
|
|
2701
2701
|
* Stroke
|
|
2702
2702
|
* @see https://tailwindcss.com/docs/stroke
|
|
2703
2703
|
*/
|
|
2704
2704
|
stroke: [{
|
|
2705
|
-
stroke: ["none", ...
|
|
2705
|
+
stroke: ["none", ...k()]
|
|
2706
2706
|
}],
|
|
2707
2707
|
// ---------------------
|
|
2708
2708
|
// --- Accessibility ---
|
|
@@ -2949,7 +2949,7 @@ const pt = se(
|
|
|
2949
2949
|
a
|
|
2950
2950
|
),
|
|
2951
2951
|
whileTap: { scale: 0.95 },
|
|
2952
|
-
children: /* @__PURE__ */ r(
|
|
2952
|
+
children: /* @__PURE__ */ r(Ee, { className: u(
|
|
2953
2953
|
"w-4 h-4 text-white transition-opacity duration-200",
|
|
2954
2954
|
x ? "opacity-100" : "opacity-0"
|
|
2955
2955
|
) })
|
|
@@ -3088,7 +3088,7 @@ const At = ({
|
|
|
3088
3088
|
max: o,
|
|
3089
3089
|
step: s,
|
|
3090
3090
|
value: e,
|
|
3091
|
-
onChange: (
|
|
3091
|
+
onChange: (C) => t(Number(C.target.value)),
|
|
3092
3092
|
onMouseDown: () => y(!0),
|
|
3093
3093
|
onMouseUp: () => y(!1),
|
|
3094
3094
|
onTouchStart: () => y(!0),
|
|
@@ -3126,7 +3126,7 @@ const At = ({
|
|
|
3126
3126
|
disabled: m,
|
|
3127
3127
|
className: x
|
|
3128
3128
|
}) => {
|
|
3129
|
-
const y = e + t, h = y > 0 ? e / y * 100 : 50,
|
|
3129
|
+
const y = e + t, h = y > 0 ? e / y * 100 : 50, C = y > 0 ? t / y * 100 : 50, w = (v) => {
|
|
3130
3130
|
const M = n - v;
|
|
3131
3131
|
a(v, Math.max(l, Math.min(n, M)));
|
|
3132
3132
|
};
|
|
@@ -3178,7 +3178,7 @@ const At = ({
|
|
|
3178
3178
|
{
|
|
3179
3179
|
className: "h-full bg-success",
|
|
3180
3180
|
initial: !1,
|
|
3181
|
-
animate: { width: `${
|
|
3181
|
+
animate: { width: `${C}%` },
|
|
3182
3182
|
transition: { type: "spring", stiffness: 300, damping: 30 }
|
|
3183
3183
|
}
|
|
3184
3184
|
) }),
|
|
@@ -3215,17 +3215,17 @@ const At = ({
|
|
|
3215
3215
|
disabled: i,
|
|
3216
3216
|
className: m
|
|
3217
3217
|
}) => {
|
|
3218
|
-
const [x, y] = D(!1), [h,
|
|
3218
|
+
const [x, y] = D(!1), [h, C] = D(""), w = H(null), v = e.find((T) => T.value === t), M = n ? e.filter(
|
|
3219
3219
|
(T) => T.label.toLowerCase().includes(h.toLowerCase())
|
|
3220
3220
|
) : e;
|
|
3221
3221
|
Z(() => {
|
|
3222
|
-
const T = (
|
|
3223
|
-
w.current && !w.current.contains(
|
|
3222
|
+
const T = (P) => {
|
|
3223
|
+
w.current && !w.current.contains(P.target) && (y(!1), C(""));
|
|
3224
3224
|
};
|
|
3225
3225
|
return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
|
|
3226
3226
|
}, []);
|
|
3227
3227
|
const j = (T) => {
|
|
3228
|
-
a(T), y(!1),
|
|
3228
|
+
a(T), y(!1), C("");
|
|
3229
3229
|
}, L = (T) => {
|
|
3230
3230
|
T.stopPropagation(), a("");
|
|
3231
3231
|
};
|
|
@@ -3263,7 +3263,7 @@ const At = ({
|
|
|
3263
3263
|
}
|
|
3264
3264
|
),
|
|
3265
3265
|
/* @__PURE__ */ r(
|
|
3266
|
-
|
|
3266
|
+
Oe,
|
|
3267
3267
|
{
|
|
3268
3268
|
className: u(
|
|
3269
3269
|
"w-5 h-5 text-primary transition-transform",
|
|
@@ -3275,7 +3275,7 @@ const At = ({
|
|
|
3275
3275
|
]
|
|
3276
3276
|
}
|
|
3277
3277
|
),
|
|
3278
|
-
/* @__PURE__ */ r(
|
|
3278
|
+
/* @__PURE__ */ r(K, { children: x && /* @__PURE__ */ d(
|
|
3279
3279
|
g.div,
|
|
3280
3280
|
{
|
|
3281
3281
|
initial: { opacity: 0, y: -10 },
|
|
@@ -3292,14 +3292,14 @@ const At = ({
|
|
|
3292
3292
|
type: "text",
|
|
3293
3293
|
placeholder: "Search...",
|
|
3294
3294
|
value: h,
|
|
3295
|
-
onChange: (T) =>
|
|
3295
|
+
onChange: (T) => C(T.target.value),
|
|
3296
3296
|
className: "w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-primary"
|
|
3297
3297
|
}
|
|
3298
3298
|
),
|
|
3299
3299
|
h && /* @__PURE__ */ r(
|
|
3300
3300
|
"button",
|
|
3301
3301
|
{
|
|
3302
|
-
onClick: () =>
|
|
3302
|
+
onClick: () => C(""),
|
|
3303
3303
|
className: "absolute right-2 top-1/2 -translate-y-1/2",
|
|
3304
3304
|
children: /* @__PURE__ */ r($, { className: "w-4 h-4 text-primary/50 hover:text-primary" })
|
|
3305
3305
|
}
|
|
@@ -3349,19 +3349,19 @@ const At = ({
|
|
|
3349
3349
|
required: x,
|
|
3350
3350
|
className: y
|
|
3351
3351
|
}, h) => {
|
|
3352
|
-
const [
|
|
3353
|
-
(
|
|
3352
|
+
const [C, w] = D(!1), [v, M] = D(""), j = H(null), L = e.find((N) => N.value === t), T = c ? e.filter(
|
|
3353
|
+
(N) => N.label.toLowerCase().includes(v.toLowerCase())
|
|
3354
3354
|
) : e;
|
|
3355
3355
|
Z(() => {
|
|
3356
|
-
const
|
|
3357
|
-
j.current && !j.current.contains(
|
|
3356
|
+
const N = (E) => {
|
|
3357
|
+
j.current && !j.current.contains(E.target) && (w(!1), M(""));
|
|
3358
3358
|
};
|
|
3359
|
-
return document.addEventListener("mousedown",
|
|
3359
|
+
return document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
|
|
3360
3360
|
}, []);
|
|
3361
|
-
const
|
|
3362
|
-
a(
|
|
3363
|
-
},
|
|
3364
|
-
|
|
3361
|
+
const P = (N) => {
|
|
3362
|
+
a(N), w(!1), M("");
|
|
3363
|
+
}, O = (N) => {
|
|
3364
|
+
N.stopPropagation(), a("");
|
|
3365
3365
|
};
|
|
3366
3366
|
return /* @__PURE__ */ d("div", { ref: h, className: u("w-full space-y-1.5", y), children: [
|
|
3367
3367
|
s && /* @__PURE__ */ d("label", { className: "block text-sm font-medium text-foreground", children: [
|
|
@@ -3373,10 +3373,10 @@ const At = ({
|
|
|
3373
3373
|
"button",
|
|
3374
3374
|
{
|
|
3375
3375
|
type: "button",
|
|
3376
|
-
onClick: () => !m && w(!
|
|
3376
|
+
onClick: () => !m && w(!C),
|
|
3377
3377
|
disabled: m,
|
|
3378
3378
|
"aria-haspopup": "listbox",
|
|
3379
|
-
"aria-expanded":
|
|
3379
|
+
"aria-expanded": C,
|
|
3380
3380
|
"aria-required": x,
|
|
3381
3381
|
className: u(
|
|
3382
3382
|
"w-full px-4 py-3 rounded-md border transition-all duration-200",
|
|
@@ -3386,7 +3386,7 @@ const At = ({
|
|
|
3386
3386
|
"touch-target text-base",
|
|
3387
3387
|
l && "border-error focus:ring-error",
|
|
3388
3388
|
!l && "border-border",
|
|
3389
|
-
|
|
3389
|
+
C && "ring-2 ring-primary"
|
|
3390
3390
|
),
|
|
3391
3391
|
children: [
|
|
3392
3392
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
@@ -3395,21 +3395,25 @@ const At = ({
|
|
|
3395
3395
|
] }),
|
|
3396
3396
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-1 flex-shrink-0", children: [
|
|
3397
3397
|
i && L && !m && /* @__PURE__ */ r(
|
|
3398
|
-
"
|
|
3398
|
+
"span",
|
|
3399
3399
|
{
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3400
|
+
role: "button",
|
|
3401
|
+
tabIndex: 0,
|
|
3402
|
+
onClick: O,
|
|
3403
|
+
onKeyDown: (N) => {
|
|
3404
|
+
(N.key === "Enter" || N.key === " ") && (N.preventDefault(), O(N));
|
|
3405
|
+
},
|
|
3406
|
+
className: "p-1 hover:bg-secondary rounded transition-colors cursor-pointer",
|
|
3403
3407
|
"aria-label": "Clear selection",
|
|
3404
3408
|
children: /* @__PURE__ */ r($, { className: "w-4 h-4 text-primary" })
|
|
3405
3409
|
}
|
|
3406
3410
|
),
|
|
3407
3411
|
/* @__PURE__ */ r(
|
|
3408
|
-
|
|
3412
|
+
Oe,
|
|
3409
3413
|
{
|
|
3410
3414
|
className: u(
|
|
3411
3415
|
"w-5 h-5 text-primary transition-transform",
|
|
3412
|
-
|
|
3416
|
+
C && "rotate-180"
|
|
3413
3417
|
)
|
|
3414
3418
|
}
|
|
3415
3419
|
)
|
|
@@ -3417,7 +3421,7 @@ const At = ({
|
|
|
3417
3421
|
]
|
|
3418
3422
|
}
|
|
3419
3423
|
),
|
|
3420
|
-
/* @__PURE__ */ r(
|
|
3424
|
+
/* @__PURE__ */ r(K, { children: C && /* @__PURE__ */ d(
|
|
3421
3425
|
g.div,
|
|
3422
3426
|
{
|
|
3423
3427
|
initial: { opacity: 0, y: -10 },
|
|
@@ -3435,7 +3439,7 @@ const At = ({
|
|
|
3435
3439
|
type: "text",
|
|
3436
3440
|
placeholder: "Search...",
|
|
3437
3441
|
value: v,
|
|
3438
|
-
onChange: (
|
|
3442
|
+
onChange: (N) => M(N.target.value),
|
|
3439
3443
|
className: "w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary",
|
|
3440
3444
|
"aria-label": "Search options"
|
|
3441
3445
|
}
|
|
@@ -3451,26 +3455,26 @@ const At = ({
|
|
|
3451
3455
|
}
|
|
3452
3456
|
)
|
|
3453
3457
|
] }) }),
|
|
3454
|
-
/* @__PURE__ */ r("div", { className: "overflow-y-auto max-h-64", children: T.length > 0 ? T.map((
|
|
3458
|
+
/* @__PURE__ */ r("div", { className: "overflow-y-auto max-h-64", children: T.length > 0 ? T.map((N) => /* @__PURE__ */ d(
|
|
3455
3459
|
"button",
|
|
3456
3460
|
{
|
|
3457
3461
|
type: "button",
|
|
3458
3462
|
role: "option",
|
|
3459
|
-
"aria-selected":
|
|
3460
|
-
onClick: () => !
|
|
3461
|
-
disabled:
|
|
3463
|
+
"aria-selected": N.value === t,
|
|
3464
|
+
onClick: () => !N.disabled && P(N.value),
|
|
3465
|
+
disabled: N.disabled,
|
|
3462
3466
|
className: u(
|
|
3463
3467
|
"w-full px-4 py-3 text-left flex items-center gap-2",
|
|
3464
3468
|
"hover:bg-secondary transition-colors",
|
|
3465
3469
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
3466
|
-
|
|
3470
|
+
N.value === t && "bg-border text-foreground font-medium"
|
|
3467
3471
|
),
|
|
3468
3472
|
children: [
|
|
3469
|
-
|
|
3470
|
-
/* @__PURE__ */ r("span", { children:
|
|
3473
|
+
N.icon && /* @__PURE__ */ r("span", { className: "flex-shrink-0", children: N.icon }),
|
|
3474
|
+
/* @__PURE__ */ r("span", { children: N.label })
|
|
3471
3475
|
]
|
|
3472
3476
|
},
|
|
3473
|
-
|
|
3477
|
+
N.value
|
|
3474
3478
|
)) : /* @__PURE__ */ r("div", { className: "px-4 py-6 text-center text-primary/70 text-sm", children: "No options found" }) })
|
|
3475
3479
|
]
|
|
3476
3480
|
}
|
|
@@ -3501,13 +3505,13 @@ const Dt = ({
|
|
|
3501
3505
|
maxDate: c,
|
|
3502
3506
|
className: i
|
|
3503
3507
|
}) => {
|
|
3504
|
-
const [m, x] = D(!1), [y, h] = D(e || /* @__PURE__ */ new Date()),
|
|
3508
|
+
const [m, x] = D(!1), [y, h] = D(e || /* @__PURE__ */ new Date()), C = H(null);
|
|
3505
3509
|
Z(() => {
|
|
3506
|
-
const
|
|
3507
|
-
|
|
3510
|
+
const S = (A) => {
|
|
3511
|
+
C.current && !C.current.contains(A.target) && x(!1);
|
|
3508
3512
|
};
|
|
3509
|
-
return m && document.addEventListener("mousedown",
|
|
3510
|
-
document.removeEventListener("mousedown",
|
|
3513
|
+
return m && document.addEventListener("mousedown", S), () => {
|
|
3514
|
+
document.removeEventListener("mousedown", S);
|
|
3511
3515
|
};
|
|
3512
3516
|
}, [m]);
|
|
3513
3517
|
const w = [
|
|
@@ -3523,8 +3527,8 @@ const Dt = ({
|
|
|
3523
3527
|
"October",
|
|
3524
3528
|
"November",
|
|
3525
3529
|
"December"
|
|
3526
|
-
], v = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], M = (
|
|
3527
|
-
const A =
|
|
3530
|
+
], v = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], M = (S) => {
|
|
3531
|
+
const A = S.getFullYear(), _ = S.getMonth(), V = new Date(A, _, 1), te = new Date(A, _ + 1, 0).getDate(), q = V.getDay(), B = [];
|
|
3528
3532
|
for (let G = 0; G < q; G++)
|
|
3529
3533
|
B.push(null);
|
|
3530
3534
|
for (let G = 1; G <= te; G++)
|
|
@@ -3534,14 +3538,14 @@ const Dt = ({
|
|
|
3534
3538
|
h(new Date(y.getFullYear(), y.getMonth() - 1, 1));
|
|
3535
3539
|
}, L = () => {
|
|
3536
3540
|
h(new Date(y.getFullYear(), y.getMonth() + 1, 1));
|
|
3537
|
-
}, T = (
|
|
3538
|
-
t(
|
|
3539
|
-
},
|
|
3541
|
+
}, T = (S) => {
|
|
3542
|
+
t(S), x(!1);
|
|
3543
|
+
}, P = (S) => !!(n && S < n || c && S > c), O = (S, A) => !S || !A ? !1 : S.getDate() === A.getDate() && S.getMonth() === A.getMonth() && S.getFullYear() === A.getFullYear(), N = (S) => S ? O(S, /* @__PURE__ */ new Date()) : !1, E = (S) => S ? S.toLocaleDateString("en-US", {
|
|
3540
3544
|
year: "numeric",
|
|
3541
3545
|
month: "short",
|
|
3542
3546
|
day: "numeric"
|
|
3543
3547
|
}) : "", f = M(y);
|
|
3544
|
-
return /* @__PURE__ */ d("div", { ref:
|
|
3548
|
+
return /* @__PURE__ */ d("div", { ref: C, className: u("relative w-full", i), children: [
|
|
3545
3549
|
a && /* @__PURE__ */ r("label", { className: "block mb-1.5 text-sm font-medium text-foreground", children: a }),
|
|
3546
3550
|
/* @__PURE__ */ d(
|
|
3547
3551
|
"button",
|
|
@@ -3560,12 +3564,12 @@ const Dt = ({
|
|
|
3560
3564
|
m && "ring-2 ring-primary"
|
|
3561
3565
|
),
|
|
3562
3566
|
children: [
|
|
3563
|
-
/* @__PURE__ */ r("span", { className: u("truncate", !e && "text-foreground/50"), children: e ?
|
|
3567
|
+
/* @__PURE__ */ r("span", { className: u("truncate", !e && "text-foreground/50"), children: e ? E(e) : o }),
|
|
3564
3568
|
/* @__PURE__ */ r(sr, { className: "w-5 h-5 text-primary flex-shrink-0" })
|
|
3565
3569
|
]
|
|
3566
3570
|
}
|
|
3567
3571
|
),
|
|
3568
|
-
/* @__PURE__ */ r(
|
|
3572
|
+
/* @__PURE__ */ r(K, { children: m && /* @__PURE__ */ d(
|
|
3569
3573
|
g.div,
|
|
3570
3574
|
{
|
|
3571
3575
|
initial: { opacity: 0, y: -10 },
|
|
@@ -3599,24 +3603,24 @@ const Dt = ({
|
|
|
3599
3603
|
}
|
|
3600
3604
|
)
|
|
3601
3605
|
] }),
|
|
3602
|
-
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1 mb-2", children: v.map((
|
|
3606
|
+
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1 mb-2", children: v.map((S) => /* @__PURE__ */ r(
|
|
3603
3607
|
"div",
|
|
3604
3608
|
{
|
|
3605
3609
|
className: "text-center text-xs font-medium text-primary/70 py-2",
|
|
3606
|
-
children:
|
|
3610
|
+
children: S
|
|
3607
3611
|
},
|
|
3608
|
-
|
|
3612
|
+
S
|
|
3609
3613
|
)) }),
|
|
3610
|
-
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1", children: f.map((
|
|
3611
|
-
if (!
|
|
3614
|
+
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1", children: f.map((S, A) => {
|
|
3615
|
+
if (!S)
|
|
3612
3616
|
return /* @__PURE__ */ r("div", { className: "aspect-square" }, `empty-${A}`);
|
|
3613
|
-
const _ =
|
|
3617
|
+
const _ = O(S, e || null), V = N(S), W = P(S);
|
|
3614
3618
|
return /* @__PURE__ */ r(
|
|
3615
3619
|
g.button,
|
|
3616
3620
|
{
|
|
3617
3621
|
type: "button",
|
|
3618
3622
|
whileTap: { scale: W ? 1 : 0.95 },
|
|
3619
|
-
onClick: () => !W && T(
|
|
3623
|
+
onClick: () => !W && T(S),
|
|
3620
3624
|
disabled: W,
|
|
3621
3625
|
className: u(
|
|
3622
3626
|
"aspect-square rounded-lg flex items-center justify-center",
|
|
@@ -3627,9 +3631,9 @@ const Dt = ({
|
|
|
3627
3631
|
W && "text-border-dark cursor-not-allowed hover:bg-transparent",
|
|
3628
3632
|
!_ && !V && !W && "text-foreground"
|
|
3629
3633
|
),
|
|
3630
|
-
children:
|
|
3634
|
+
children: S.getDate()
|
|
3631
3635
|
},
|
|
3632
|
-
|
|
3636
|
+
S.toISOString()
|
|
3633
3637
|
);
|
|
3634
3638
|
}) }),
|
|
3635
3639
|
/* @__PURE__ */ r("div", { className: "mt-4 pt-4 border-t border-border", children: /* @__PURE__ */ r(
|
|
@@ -3691,7 +3695,7 @@ const Dt = ({
|
|
|
3691
3695
|
children: e
|
|
3692
3696
|
}
|
|
3693
3697
|
);
|
|
3694
|
-
},
|
|
3698
|
+
}, Et = ({ children: e, className: t }) => /* @__PURE__ */ r("div", { className: u("mb-4", t), children: e }), Ot = ({ children: e, className: t }) => /* @__PURE__ */ r("h3", { className: u("text-lg font-semibold text-foreground", t), children: e }), Ft = ({ children: e, className: t }) => /* @__PURE__ */ r("p", { className: u("text-sm text-foreground/70 mt-1", t), children: e }), Pt = ({ children: e, className: t }) => /* @__PURE__ */ r("div", { className: t, children: e }), Gt = ({
|
|
3695
3699
|
isOpen: e,
|
|
3696
3700
|
onClose: t,
|
|
3697
3701
|
children: a,
|
|
@@ -3705,7 +3709,7 @@ const Dt = ({
|
|
|
3705
3709
|
return e && (document.addEventListener("keydown", n), document.body.style.overflow = "hidden"), () => {
|
|
3706
3710
|
document.removeEventListener("keydown", n), document.body.style.overflow = "unset";
|
|
3707
3711
|
};
|
|
3708
|
-
}, [e, t]), /* @__PURE__ */ r(
|
|
3712
|
+
}, [e, t]), /* @__PURE__ */ r(K, { children: e && /* @__PURE__ */ d(ae, { children: [
|
|
3709
3713
|
/* @__PURE__ */ r(
|
|
3710
3714
|
g.div,
|
|
3711
3715
|
{
|
|
@@ -3771,7 +3775,7 @@ const Dt = ({
|
|
|
3771
3775
|
xl: "max-w-6xl",
|
|
3772
3776
|
full: "max-w-full mx-4"
|
|
3773
3777
|
};
|
|
3774
|
-
return /* @__PURE__ */ r(
|
|
3778
|
+
return /* @__PURE__ */ r(K, { children: e && /* @__PURE__ */ r(
|
|
3775
3779
|
"div",
|
|
3776
3780
|
{
|
|
3777
3781
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",
|
|
@@ -3825,7 +3829,7 @@ const Dt = ({
|
|
|
3825
3829
|
className: l
|
|
3826
3830
|
}) => (Z(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
3827
3831
|
document.body.style.overflow = "unset";
|
|
3828
|
-
}), [e]), /* @__PURE__ */ r(
|
|
3832
|
+
}), [e]), /* @__PURE__ */ r(K, { children: e && /* @__PURE__ */ d(ae, { children: [
|
|
3829
3833
|
/* @__PURE__ */ r(
|
|
3830
3834
|
g.div,
|
|
3831
3835
|
{
|
|
@@ -3877,13 +3881,13 @@ function Vt({
|
|
|
3877
3881
|
}) {
|
|
3878
3882
|
const [n, c] = D(null), [i, m] = D("asc"), x = (h) => {
|
|
3879
3883
|
n === h ? m(i === "asc" ? "desc" : "asc") : (c(h), m("asc"));
|
|
3880
|
-
}, y = n ? [...e].sort((h,
|
|
3881
|
-
const w = h[n], v =
|
|
3884
|
+
}, y = n ? [...e].sort((h, C) => {
|
|
3885
|
+
const w = h[n], v = C[n];
|
|
3882
3886
|
return w < v ? i === "asc" ? -1 : 1 : w > v ? i === "asc" ? 1 : -1 : 0;
|
|
3883
3887
|
}) : e;
|
|
3884
3888
|
return a ? /* @__PURE__ */ r("div", { className: u("border border-border rounded-lg overflow-hidden", l), children: /* @__PURE__ */ r("div", { className: "overflow-x-auto", children: /* @__PURE__ */ d("table", { className: "w-full", children: [
|
|
3885
|
-
/* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((h,
|
|
3886
|
-
/* @__PURE__ */ r("tbody", { children: [...Array(5)].map((h,
|
|
3889
|
+
/* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((h, C) => /* @__PURE__ */ r("th", { className: "px-6 py-4 text-left", children: /* @__PURE__ */ r("div", { className: "h-4 bg-border rounded w-24 animate-pulse" }) }, C)) }) }),
|
|
3890
|
+
/* @__PURE__ */ r("tbody", { children: [...Array(5)].map((h, C) => /* @__PURE__ */ r("tr", { className: "border-b border-border", children: t.map((w, v) => /* @__PURE__ */ r("td", { className: "px-6 py-4", children: /* @__PURE__ */ r("div", { className: "h-4 bg-secondary rounded animate-pulse" }) }, v)) }, C)) })
|
|
3887
3891
|
] }) }) }) : /* @__PURE__ */ r(
|
|
3888
3892
|
g.div,
|
|
3889
3893
|
{
|
|
@@ -3892,7 +3896,7 @@ function Vt({
|
|
|
3892
3896
|
transition: { duration: 0.3 },
|
|
3893
3897
|
className: u("border border-border rounded-lg overflow-hidden", l),
|
|
3894
3898
|
children: /* @__PURE__ */ r("div", { className: "overflow-x-auto", children: /* @__PURE__ */ d("table", { className: "w-full", children: [
|
|
3895
|
-
/* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((h,
|
|
3899
|
+
/* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((h, C) => /* @__PURE__ */ r(
|
|
3896
3900
|
"th",
|
|
3897
3901
|
{
|
|
3898
3902
|
className: u(
|
|
@@ -3906,14 +3910,14 @@ function Vt({
|
|
|
3906
3910
|
h.sortable && /* @__PURE__ */ r("span", { className: "text-primary/50 hover:text-primary transition-colors", children: n === h.key ? i === "asc" ? /* @__PURE__ */ r(nr, { className: "w-4 h-4" }) : /* @__PURE__ */ r(ir, { className: "w-4 h-4" }) : /* @__PURE__ */ r(lr, { className: "w-4 h-4" }) })
|
|
3907
3911
|
] })
|
|
3908
3912
|
},
|
|
3909
|
-
|
|
3913
|
+
C
|
|
3910
3914
|
)) }) }),
|
|
3911
|
-
/* @__PURE__ */ r("tbody", { children: y.map((h,
|
|
3915
|
+
/* @__PURE__ */ r("tbody", { children: y.map((h, C) => /* @__PURE__ */ r(
|
|
3912
3916
|
g.tr,
|
|
3913
3917
|
{
|
|
3914
3918
|
initial: { opacity: 0, y: 10 },
|
|
3915
3919
|
animate: { opacity: 1, y: 0 },
|
|
3916
|
-
transition: { duration: 0.2, delay:
|
|
3920
|
+
transition: { duration: 0.2, delay: C * 0.05 },
|
|
3917
3921
|
onClick: () => o && o(h),
|
|
3918
3922
|
className: u(
|
|
3919
3923
|
"border-b border-border transition-colors",
|
|
@@ -4060,11 +4064,11 @@ const Wt = ({
|
|
|
4060
4064
|
success: "bg-success text-white",
|
|
4061
4065
|
danger: "bg-error text-white",
|
|
4062
4066
|
warning: "bg-warning text-white"
|
|
4063
|
-
},
|
|
4067
|
+
}, C = () => {
|
|
4064
4068
|
o && o.length > 0 ? m(!i) : t && t();
|
|
4065
4069
|
};
|
|
4066
4070
|
return /* @__PURE__ */ d("div", { className: u(x[l], "z-50", c), children: [
|
|
4067
|
-
/* @__PURE__ */ r(
|
|
4071
|
+
/* @__PURE__ */ r(K, { children: i && o && /* @__PURE__ */ r(
|
|
4068
4072
|
g.div,
|
|
4069
4073
|
{
|
|
4070
4074
|
initial: { opacity: 0 },
|
|
@@ -4117,7 +4121,7 @@ const Wt = ({
|
|
|
4117
4121
|
{
|
|
4118
4122
|
whileTap: { scale: n ? 1 : 0.9 },
|
|
4119
4123
|
whileHover: { scale: n ? 1 : 1.05 },
|
|
4120
|
-
onClick:
|
|
4124
|
+
onClick: C,
|
|
4121
4125
|
disabled: n,
|
|
4122
4126
|
className: u(
|
|
4123
4127
|
"z-30 rounded-full p-4 transition-all duration-200",
|
|
@@ -4159,7 +4163,7 @@ const Wt = ({
|
|
|
4159
4163
|
(n || c) && "bg-primary text-white shadow-lg",
|
|
4160
4164
|
i && "bg-border text-muted-foreground"
|
|
4161
4165
|
),
|
|
4162
|
-
children: n ? /* @__PURE__ */ r(
|
|
4166
|
+
children: n ? /* @__PURE__ */ r(Ee, { className: "w-6 h-6 stroke-[3]" }) : /* @__PURE__ */ r("span", { children: l + 1 })
|
|
4163
4167
|
}
|
|
4164
4168
|
),
|
|
4165
4169
|
/* @__PURE__ */ d("div", { className: "mt-3 text-center max-w-[120px]", children: [
|
|
@@ -4298,7 +4302,7 @@ const Wt = ({
|
|
|
4298
4302
|
/* @__PURE__ */ r("span", { children: "Offline Mode" })
|
|
4299
4303
|
]
|
|
4300
4304
|
}
|
|
4301
|
-
) : null,
|
|
4305
|
+
) : null, Kt = ({
|
|
4302
4306
|
status: e,
|
|
4303
4307
|
count: t,
|
|
4304
4308
|
className: a
|
|
@@ -4378,7 +4382,7 @@ const Wt = ({
|
|
|
4378
4382
|
o && /* @__PURE__ */ r("span", { className: "text-sm text-foreground/70", children: o })
|
|
4379
4383
|
] });
|
|
4380
4384
|
xt.displayName = "Spinner";
|
|
4381
|
-
const Ze = er(void 0),
|
|
4385
|
+
const Ze = er(void 0), Qt = () => {
|
|
4382
4386
|
const e = rr(Ze);
|
|
4383
4387
|
if (!e)
|
|
4384
4388
|
throw new Error("useToast must be used within ToastProvider");
|
|
@@ -4463,7 +4467,7 @@ const Ze = er(void 0), Kt = () => {
|
|
|
4463
4467
|
);
|
|
4464
4468
|
return /* @__PURE__ */ d(Ze.Provider, { value: { toasts: o, addToast: n, removeToast: l }, children: [
|
|
4465
4469
|
e,
|
|
4466
|
-
/* @__PURE__ */ r("div", { className: u("fixed z-[100] flex flex-col gap-2", Nt[t]), children: /* @__PURE__ */ r(
|
|
4470
|
+
/* @__PURE__ */ r("div", { className: u("fixed z-[100] flex flex-col gap-2", Nt[t]), children: /* @__PURE__ */ r(K, { mode: "popLayout", children: o.map((c) => /* @__PURE__ */ r(kt, { toast: c, onRemove: l }, c.id)) }) })
|
|
4467
4471
|
] });
|
|
4468
4472
|
};
|
|
4469
4473
|
Ct.displayName = "ToastProvider";
|
|
@@ -4585,33 +4589,33 @@ const Xt = ({
|
|
|
4585
4589
|
disabled: o,
|
|
4586
4590
|
className: s
|
|
4587
4591
|
}) => {
|
|
4588
|
-
const [l, n] = D(!1), [c, i] = D(!1), [m, x] = D(0), [y, h] = D(null),
|
|
4592
|
+
const [l, n] = D(!1), [c, i] = D(!1), [m, x] = D(0), [y, h] = D(null), C = H(null), w = H([]), v = H(null), M = async () => {
|
|
4589
4593
|
try {
|
|
4590
|
-
const
|
|
4591
|
-
|
|
4594
|
+
const N = await navigator.mediaDevices.getUserMedia({ audio: !0 }), E = new MediaRecorder(N);
|
|
4595
|
+
C.current = E, w.current = [], E.ondataavailable = (f) => {
|
|
4592
4596
|
f.data.size > 0 && w.current.push(f.data);
|
|
4593
|
-
},
|
|
4594
|
-
const f = new Blob(w.current, { type: "audio/webm" }),
|
|
4595
|
-
h(
|
|
4596
|
-
},
|
|
4597
|
+
}, E.onstop = () => {
|
|
4598
|
+
const f = new Blob(w.current, { type: "audio/webm" }), S = URL.createObjectURL(f);
|
|
4599
|
+
h(S), e(f), N.getTracks().forEach((A) => A.stop());
|
|
4600
|
+
}, E.start(), n(!0), x(0), v.current = setInterval(() => {
|
|
4597
4601
|
x((f) => f >= a ? (T(), f) : f + 1);
|
|
4598
4602
|
}, 1e3);
|
|
4599
|
-
} catch (
|
|
4600
|
-
console.error("Error accessing microphone:",
|
|
4603
|
+
} catch (N) {
|
|
4604
|
+
console.error("Error accessing microphone:", N);
|
|
4601
4605
|
}
|
|
4602
4606
|
}, j = () => {
|
|
4603
|
-
|
|
4607
|
+
C.current?.state === "recording" && (C.current.pause(), i(!0), v.current && clearInterval(v.current));
|
|
4604
4608
|
}, L = () => {
|
|
4605
|
-
|
|
4606
|
-
x((
|
|
4609
|
+
C.current?.state === "paused" && (C.current.resume(), i(!1), v.current = setInterval(() => {
|
|
4610
|
+
x((N) => Math.min(N + 1, a));
|
|
4607
4611
|
}, 1e3));
|
|
4608
4612
|
}, T = () => {
|
|
4609
|
-
|
|
4610
|
-
},
|
|
4613
|
+
C.current && (C.current.stop(), n(!1), i(!1), v.current && (clearInterval(v.current), v.current = null));
|
|
4614
|
+
}, P = () => {
|
|
4611
4615
|
h(null), x(0);
|
|
4612
|
-
},
|
|
4613
|
-
const
|
|
4614
|
-
return `${
|
|
4616
|
+
}, O = (N) => {
|
|
4617
|
+
const E = Math.floor(N / 60), f = N % 60;
|
|
4618
|
+
return `${E.toString().padStart(2, "0")}:${f.toString().padStart(2, "0")}`;
|
|
4615
4619
|
};
|
|
4616
4620
|
return /* @__PURE__ */ d("div", { className: u("w-full", s), children: [
|
|
4617
4621
|
t && /* @__PURE__ */ r("label", { className: "block mb-2 text-sm font-medium text-primary", children: t }),
|
|
@@ -4644,7 +4648,7 @@ const Xt = ({
|
|
|
4644
4648
|
)
|
|
4645
4649
|
] }),
|
|
4646
4650
|
/* @__PURE__ */ d("div", { className: "text-center", children: [
|
|
4647
|
-
/* @__PURE__ */ r("p", { className: "text-xl md:text-2xl font-mono font-semibold text-foreground", children:
|
|
4651
|
+
/* @__PURE__ */ r("p", { className: "text-xl md:text-2xl font-mono font-semibold text-foreground", children: O(m) }),
|
|
4648
4652
|
/* @__PURE__ */ r("p", { className: "text-xs md:text-sm text-primary/70 mt-1", children: l ? c ? "Paused" : "Recording..." : "Tap to record" })
|
|
4649
4653
|
] }),
|
|
4650
4654
|
l && /* @__PURE__ */ d(
|
|
@@ -4673,13 +4677,13 @@ const Xt = ({
|
|
|
4673
4677
|
/* @__PURE__ */ d("div", { className: "flex items-center justify-between", children: [
|
|
4674
4678
|
/* @__PURE__ */ d("span", { className: "text-sm text-primary/70", children: [
|
|
4675
4679
|
"Duration: ",
|
|
4676
|
-
|
|
4680
|
+
O(m)
|
|
4677
4681
|
] }),
|
|
4678
4682
|
/* @__PURE__ */ d(
|
|
4679
4683
|
"button",
|
|
4680
4684
|
{
|
|
4681
4685
|
type: "button",
|
|
4682
|
-
onClick:
|
|
4686
|
+
onClick: P,
|
|
4683
4687
|
className: "flex items-center gap-2 px-3 py-1.5 text-sm text-error hover:bg-red-50 rounded-lg transition-colors",
|
|
4684
4688
|
children: [
|
|
4685
4689
|
/* @__PURE__ */ r(wr, { className: "w-4 h-4" }),
|
|
@@ -4811,8 +4815,8 @@ export {
|
|
|
4811
4815
|
Lt as Card,
|
|
4812
4816
|
Pt as CardContent,
|
|
4813
4817
|
Ft as CardDescription,
|
|
4814
|
-
|
|
4815
|
-
|
|
4818
|
+
Et as CardHeader,
|
|
4819
|
+
Ot as CardTitle,
|
|
4816
4820
|
pt as Checkbox,
|
|
4817
4821
|
to as CreditBar,
|
|
4818
4822
|
Dt as DatePicker,
|
|
@@ -4833,13 +4837,13 @@ export {
|
|
|
4833
4837
|
At as Slider,
|
|
4834
4838
|
xt as Spinner,
|
|
4835
4839
|
Ht as StepProgress,
|
|
4836
|
-
|
|
4840
|
+
Kt as SyncIndicator,
|
|
4837
4841
|
Vt as Table,
|
|
4838
4842
|
ut as Textarea,
|
|
4839
4843
|
ro as ThumbnailGrid,
|
|
4840
4844
|
Ct as ToastProvider,
|
|
4841
4845
|
bt as Toggle,
|
|
4842
4846
|
u as cn,
|
|
4843
|
-
|
|
4847
|
+
Qt as useToast
|
|
4844
4848
|
};
|
|
4845
4849
|
//# sourceMappingURL=index.js.map
|