@ah-automation.nl/component-lib 0.0.17 → 0.0.18
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/components/virtual-multi-select.d.ts +1 -1
- package/dist/components/virtual-multi-select.d.ts.map +1 -1
- package/dist/components/virtual-single-select.d.ts.map +1 -1
- package/dist/index.js +997 -992
- package/dist/types/multi-select.d.ts +1 -0
- package/dist/types/multi-select.d.ts.map +1 -1
- package/dist/types/single-select.d.ts +1 -0
- package/dist/types/single-select.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as h, jsxs as
|
|
1
|
+
import { jsx as h, jsxs as W, Fragment as yn } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import
|
|
3
|
+
import P, { forwardRef as qr, createElement as Cn, useState as At, useMemo as Ki, useLayoutEffect as Xi, useEffect as Yi, useRef as Zi } from "react";
|
|
4
4
|
import { Slot as Tn, Collapsible as zn, Dialog as Ge, Select as he, Popover as Vt, Checkbox as ir } from "radix-ui";
|
|
5
5
|
import * as Ji from "react-dom";
|
|
6
6
|
import Qi, { flushSync as ea } from "react-dom";
|
|
@@ -268,26 +268,26 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
268
268
|
l = c + (l.length > 0 ? " " + l : l);
|
|
269
269
|
continue;
|
|
270
270
|
}
|
|
271
|
-
let S = !!p,
|
|
272
|
-
if (!
|
|
271
|
+
let S = !!p, w = r(S ? v.substring(0, p) : v);
|
|
272
|
+
if (!w) {
|
|
273
273
|
if (!S) {
|
|
274
274
|
l = c + (l.length > 0 ? " " + l : l);
|
|
275
275
|
continue;
|
|
276
276
|
}
|
|
277
|
-
if (
|
|
277
|
+
if (w = r(v), !w) {
|
|
278
278
|
l = c + (l.length > 0 ? " " + l : l);
|
|
279
279
|
continue;
|
|
280
280
|
}
|
|
281
281
|
S = !1;
|
|
282
282
|
}
|
|
283
|
-
const
|
|
284
|
-
if (a.indexOf(
|
|
283
|
+
const x = d.length === 0 ? "" : d.length === 1 ? d[0] : i(d).join(":"), y = f ? x + xn : x, b = y + w;
|
|
284
|
+
if (a.indexOf(b) > -1)
|
|
285
285
|
continue;
|
|
286
|
-
a.push(
|
|
287
|
-
const _ = o(
|
|
288
|
-
for (let
|
|
289
|
-
const
|
|
290
|
-
a.push(
|
|
286
|
+
a.push(b);
|
|
287
|
+
const _ = o(w, S);
|
|
288
|
+
for (let k = 0; k < _.length; ++k) {
|
|
289
|
+
const R = _[k];
|
|
290
|
+
a.push(y + R);
|
|
291
291
|
}
|
|
292
292
|
l = c + (l.length > 0 ? " " + l : l);
|
|
293
293
|
}
|
|
@@ -325,14 +325,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
325
325
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
326
326
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
327
327
|
Ea.test(e) && !_a.test(e)
|
|
328
|
-
), Hn = () => !1, Fa = (e) => Ma.test(e), Da = (e) => Ia.test(e), Pa = (e) => !
|
|
328
|
+
), Hn = () => !1, Fa = (e) => Ma.test(e), Da = (e) => Ia.test(e), Pa = (e) => !N(e) && !O(e), Na = (e) => $e(e, io, Hn), N = (e) => eo.test(e), He = (e) => $e(e, ao, ka), dr = (e) => $e(e, Ha, q), Oa = (e) => $e(e, lo, no), Aa = (e) => $e(e, so, Hn), fr = (e) => $e(e, ro, Hn), $a = (e) => $e(e, oo, Da), xt = (e) => $e(e, uo, Fa), O = (e) => to.test(e), lt = (e) => qe(e, ao), Ta = (e) => qe(e, so), gr = (e) => qe(e, ro), za = (e) => qe(e, io), Va = (e) => qe(e, oo), Rt = (e) => qe(e, uo, !0), La = (e) => qe(e, lo, !0), $e = (e, n, t) => {
|
|
329
329
|
const r = eo.exec(e);
|
|
330
330
|
return r ? r[1] ? n(r[1]) : t(r[2]) : !1;
|
|
331
331
|
}, qe = (e, n, t = !1) => {
|
|
332
332
|
const r = to.exec(e);
|
|
333
333
|
return r ? r[1] ? n(r[1]) : t : !1;
|
|
334
334
|
}, ro = (e) => e === "position" || e === "percentage", oo = (e) => e === "image" || e === "url", io = (e) => e === "length" || e === "size" || e === "bg-size", ao = (e) => e === "length", Ha = (e) => e === "number", so = (e) => e === "family-name", lo = (e) => e === "number" || e === "weight", uo = (e) => e === "shadow", Ba = () => {
|
|
335
|
-
const e = se("color"), n = se("font"), t = se("text"), r = se("font-weight"), o = se("tracking"), i = se("leading"), a = se("breakpoint"), s = se("container"), l = se("spacing"), u = se("radius"), c = se("shadow"), m = se("inset-shadow"), d = se("text-shadow"), f = se("drop-shadow"), v = se("blur"), p = se("perspective"), S = se("aspect"),
|
|
335
|
+
const e = se("color"), n = se("font"), t = se("text"), r = se("font-weight"), o = se("tracking"), i = se("leading"), a = se("breakpoint"), s = se("container"), l = se("spacing"), u = se("radius"), c = se("shadow"), m = se("inset-shadow"), d = se("text-shadow"), f = se("drop-shadow"), v = se("blur"), p = se("perspective"), S = se("aspect"), w = se("ease"), x = se("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], b = () => [
|
|
336
336
|
"center",
|
|
337
337
|
"top",
|
|
338
338
|
"bottom",
|
|
@@ -350,30 +350,30 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
350
350
|
"bottom-left",
|
|
351
351
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
352
352
|
"left-bottom"
|
|
353
|
-
], _ = () => [...
|
|
354
|
-
span: ["full", Fe,
|
|
355
|
-
}, Fe,
|
|
356
|
-
position: [
|
|
353
|
+
], _ = () => [...b(), O, N], k = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], C = () => [O, N, l], E = () => [ke, "full", "auto", ...C()], I = () => [Fe, "none", "subgrid", O, N], T = () => ["auto", {
|
|
354
|
+
span: ["full", Fe, O, N]
|
|
355
|
+
}, Fe, O, N], H = () => [Fe, "auto", O, N], $ = () => ["auto", "min", "max", "fr", O, N], ne = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], J = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Q = () => ["auto", ...C()], ee = () => [ke, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], ce = () => [ke, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...C()], fe = () => [ke, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...C()], A = () => [e, O, N], ze = () => [...b(), gr, fr, {
|
|
356
|
+
position: [O, N]
|
|
357
357
|
}], M = () => ["no-repeat", {
|
|
358
358
|
repeat: ["", "x", "y", "space", "round"]
|
|
359
|
-
}],
|
|
360
|
-
size: [
|
|
361
|
-
}], U = () => [Xt, lt, He],
|
|
359
|
+
}], z = () => ["auto", "cover", "contain", za, Na, {
|
|
360
|
+
size: [O, N]
|
|
361
|
+
}], U = () => [Xt, lt, He], D = () => [
|
|
362
362
|
// Deprecated since Tailwind CSS v4.0.0
|
|
363
363
|
"",
|
|
364
364
|
"none",
|
|
365
365
|
"full",
|
|
366
366
|
u,
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
],
|
|
367
|
+
O,
|
|
368
|
+
N
|
|
369
|
+
], B = () => ["", q, lt, He], X = () => ["solid", "dashed", "dotted", "double"], oe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => [q, Xt, gr, fr], ve = () => [
|
|
370
370
|
// Deprecated since Tailwind CSS v4.0.0
|
|
371
371
|
"",
|
|
372
372
|
"none",
|
|
373
373
|
v,
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
], be = () => ["none", q,
|
|
374
|
+
O,
|
|
375
|
+
N
|
|
376
|
+
], be = () => ["none", q, O, N], Ve = () => ["none", q, O, N], Xe = () => [q, O, N], j = () => [ke, "full", ...C()];
|
|
377
377
|
return {
|
|
378
378
|
cacheSize: 500,
|
|
379
379
|
theme: {
|
|
@@ -406,7 +406,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
406
406
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
407
407
|
*/
|
|
408
408
|
aspect: [{
|
|
409
|
-
aspect: ["auto", "square", ke,
|
|
409
|
+
aspect: ["auto", "square", ke, N, O, S]
|
|
410
410
|
}],
|
|
411
411
|
/**
|
|
412
412
|
* Container
|
|
@@ -419,21 +419,21 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
419
419
|
* @see https://tailwindcss.com/docs/columns
|
|
420
420
|
*/
|
|
421
421
|
columns: [{
|
|
422
|
-
columns: [q,
|
|
422
|
+
columns: [q, N, O, s]
|
|
423
423
|
}],
|
|
424
424
|
/**
|
|
425
425
|
* Break After
|
|
426
426
|
* @see https://tailwindcss.com/docs/break-after
|
|
427
427
|
*/
|
|
428
428
|
"break-after": [{
|
|
429
|
-
"break-after":
|
|
429
|
+
"break-after": y()
|
|
430
430
|
}],
|
|
431
431
|
/**
|
|
432
432
|
* Break Before
|
|
433
433
|
* @see https://tailwindcss.com/docs/break-before
|
|
434
434
|
*/
|
|
435
435
|
"break-before": [{
|
|
436
|
-
"break-before":
|
|
436
|
+
"break-before": y()
|
|
437
437
|
}],
|
|
438
438
|
/**
|
|
439
439
|
* Break Inside
|
|
@@ -504,42 +504,42 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
504
504
|
* @see https://tailwindcss.com/docs/overflow
|
|
505
505
|
*/
|
|
506
506
|
overflow: [{
|
|
507
|
-
overflow:
|
|
507
|
+
overflow: k()
|
|
508
508
|
}],
|
|
509
509
|
/**
|
|
510
510
|
* Overflow X
|
|
511
511
|
* @see https://tailwindcss.com/docs/overflow
|
|
512
512
|
*/
|
|
513
513
|
"overflow-x": [{
|
|
514
|
-
"overflow-x":
|
|
514
|
+
"overflow-x": k()
|
|
515
515
|
}],
|
|
516
516
|
/**
|
|
517
517
|
* Overflow Y
|
|
518
518
|
* @see https://tailwindcss.com/docs/overflow
|
|
519
519
|
*/
|
|
520
520
|
"overflow-y": [{
|
|
521
|
-
"overflow-y":
|
|
521
|
+
"overflow-y": k()
|
|
522
522
|
}],
|
|
523
523
|
/**
|
|
524
524
|
* Overscroll Behavior
|
|
525
525
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
526
526
|
*/
|
|
527
527
|
overscroll: [{
|
|
528
|
-
overscroll:
|
|
528
|
+
overscroll: R()
|
|
529
529
|
}],
|
|
530
530
|
/**
|
|
531
531
|
* Overscroll Behavior X
|
|
532
532
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
533
533
|
*/
|
|
534
534
|
"overscroll-x": [{
|
|
535
|
-
"overscroll-x":
|
|
535
|
+
"overscroll-x": R()
|
|
536
536
|
}],
|
|
537
537
|
/**
|
|
538
538
|
* Overscroll Behavior Y
|
|
539
539
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
540
540
|
*/
|
|
541
541
|
"overscroll-y": [{
|
|
542
|
-
"overscroll-y":
|
|
542
|
+
"overscroll-y": R()
|
|
543
543
|
}],
|
|
544
544
|
/**
|
|
545
545
|
* Position
|
|
@@ -551,21 +551,21 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
551
551
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
552
552
|
*/
|
|
553
553
|
inset: [{
|
|
554
|
-
inset:
|
|
554
|
+
inset: E()
|
|
555
555
|
}],
|
|
556
556
|
/**
|
|
557
557
|
* Inset Inline
|
|
558
558
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
559
559
|
*/
|
|
560
560
|
"inset-x": [{
|
|
561
|
-
"inset-x":
|
|
561
|
+
"inset-x": E()
|
|
562
562
|
}],
|
|
563
563
|
/**
|
|
564
564
|
* Inset Block
|
|
565
565
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
566
566
|
*/
|
|
567
567
|
"inset-y": [{
|
|
568
|
-
"inset-y":
|
|
568
|
+
"inset-y": E()
|
|
569
569
|
}],
|
|
570
570
|
/**
|
|
571
571
|
* Inset Inline Start
|
|
@@ -573,12 +573,12 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
573
573
|
* @todo class group will be renamed to `inset-s` in next major release
|
|
574
574
|
*/
|
|
575
575
|
start: [{
|
|
576
|
-
"inset-s":
|
|
576
|
+
"inset-s": E(),
|
|
577
577
|
/**
|
|
578
578
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
|
|
579
579
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
580
580
|
*/
|
|
581
|
-
start:
|
|
581
|
+
start: E()
|
|
582
582
|
}],
|
|
583
583
|
/**
|
|
584
584
|
* Inset Inline End
|
|
@@ -586,54 +586,54 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
586
586
|
* @todo class group will be renamed to `inset-e` in next major release
|
|
587
587
|
*/
|
|
588
588
|
end: [{
|
|
589
|
-
"inset-e":
|
|
589
|
+
"inset-e": E(),
|
|
590
590
|
/**
|
|
591
591
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
|
|
592
592
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
593
593
|
*/
|
|
594
|
-
end:
|
|
594
|
+
end: E()
|
|
595
595
|
}],
|
|
596
596
|
/**
|
|
597
597
|
* Inset Block Start
|
|
598
598
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
599
599
|
*/
|
|
600
600
|
"inset-bs": [{
|
|
601
|
-
"inset-bs":
|
|
601
|
+
"inset-bs": E()
|
|
602
602
|
}],
|
|
603
603
|
/**
|
|
604
604
|
* Inset Block End
|
|
605
605
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
606
606
|
*/
|
|
607
607
|
"inset-be": [{
|
|
608
|
-
"inset-be":
|
|
608
|
+
"inset-be": E()
|
|
609
609
|
}],
|
|
610
610
|
/**
|
|
611
611
|
* Top
|
|
612
612
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
613
613
|
*/
|
|
614
614
|
top: [{
|
|
615
|
-
top:
|
|
615
|
+
top: E()
|
|
616
616
|
}],
|
|
617
617
|
/**
|
|
618
618
|
* Right
|
|
619
619
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
620
620
|
*/
|
|
621
621
|
right: [{
|
|
622
|
-
right:
|
|
622
|
+
right: E()
|
|
623
623
|
}],
|
|
624
624
|
/**
|
|
625
625
|
* Bottom
|
|
626
626
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
627
627
|
*/
|
|
628
628
|
bottom: [{
|
|
629
|
-
bottom:
|
|
629
|
+
bottom: E()
|
|
630
630
|
}],
|
|
631
631
|
/**
|
|
632
632
|
* Left
|
|
633
633
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
634
634
|
*/
|
|
635
635
|
left: [{
|
|
636
|
-
left:
|
|
636
|
+
left: E()
|
|
637
637
|
}],
|
|
638
638
|
/**
|
|
639
639
|
* Visibility
|
|
@@ -645,7 +645,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
645
645
|
* @see https://tailwindcss.com/docs/z-index
|
|
646
646
|
*/
|
|
647
647
|
z: [{
|
|
648
|
-
z: [Fe, "auto",
|
|
648
|
+
z: [Fe, "auto", O, N]
|
|
649
649
|
}],
|
|
650
650
|
// ------------------------
|
|
651
651
|
// --- Flexbox and Grid ---
|
|
@@ -655,7 +655,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
655
655
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
656
656
|
*/
|
|
657
657
|
basis: [{
|
|
658
|
-
basis: [ke, "full", "auto", s, ...
|
|
658
|
+
basis: [ke, "full", "auto", s, ...C()]
|
|
659
659
|
}],
|
|
660
660
|
/**
|
|
661
661
|
* Flex Direction
|
|
@@ -676,84 +676,84 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
676
676
|
* @see https://tailwindcss.com/docs/flex
|
|
677
677
|
*/
|
|
678
678
|
flex: [{
|
|
679
|
-
flex: [q, ke, "auto", "initial", "none",
|
|
679
|
+
flex: [q, ke, "auto", "initial", "none", N]
|
|
680
680
|
}],
|
|
681
681
|
/**
|
|
682
682
|
* Flex Grow
|
|
683
683
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
684
684
|
*/
|
|
685
685
|
grow: [{
|
|
686
|
-
grow: ["", q,
|
|
686
|
+
grow: ["", q, O, N]
|
|
687
687
|
}],
|
|
688
688
|
/**
|
|
689
689
|
* Flex Shrink
|
|
690
690
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
691
691
|
*/
|
|
692
692
|
shrink: [{
|
|
693
|
-
shrink: ["", q,
|
|
693
|
+
shrink: ["", q, O, N]
|
|
694
694
|
}],
|
|
695
695
|
/**
|
|
696
696
|
* Order
|
|
697
697
|
* @see https://tailwindcss.com/docs/order
|
|
698
698
|
*/
|
|
699
699
|
order: [{
|
|
700
|
-
order: [Fe, "first", "last", "none",
|
|
700
|
+
order: [Fe, "first", "last", "none", O, N]
|
|
701
701
|
}],
|
|
702
702
|
/**
|
|
703
703
|
* Grid Template Columns
|
|
704
704
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
705
705
|
*/
|
|
706
706
|
"grid-cols": [{
|
|
707
|
-
"grid-cols":
|
|
707
|
+
"grid-cols": I()
|
|
708
708
|
}],
|
|
709
709
|
/**
|
|
710
710
|
* Grid Column Start / End
|
|
711
711
|
* @see https://tailwindcss.com/docs/grid-column
|
|
712
712
|
*/
|
|
713
713
|
"col-start-end": [{
|
|
714
|
-
col:
|
|
714
|
+
col: T()
|
|
715
715
|
}],
|
|
716
716
|
/**
|
|
717
717
|
* Grid Column Start
|
|
718
718
|
* @see https://tailwindcss.com/docs/grid-column
|
|
719
719
|
*/
|
|
720
720
|
"col-start": [{
|
|
721
|
-
"col-start":
|
|
721
|
+
"col-start": H()
|
|
722
722
|
}],
|
|
723
723
|
/**
|
|
724
724
|
* Grid Column End
|
|
725
725
|
* @see https://tailwindcss.com/docs/grid-column
|
|
726
726
|
*/
|
|
727
727
|
"col-end": [{
|
|
728
|
-
"col-end":
|
|
728
|
+
"col-end": H()
|
|
729
729
|
}],
|
|
730
730
|
/**
|
|
731
731
|
* Grid Template Rows
|
|
732
732
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
733
733
|
*/
|
|
734
734
|
"grid-rows": [{
|
|
735
|
-
"grid-rows":
|
|
735
|
+
"grid-rows": I()
|
|
736
736
|
}],
|
|
737
737
|
/**
|
|
738
738
|
* Grid Row Start / End
|
|
739
739
|
* @see https://tailwindcss.com/docs/grid-row
|
|
740
740
|
*/
|
|
741
741
|
"row-start-end": [{
|
|
742
|
-
row:
|
|
742
|
+
row: T()
|
|
743
743
|
}],
|
|
744
744
|
/**
|
|
745
745
|
* Grid Row Start
|
|
746
746
|
* @see https://tailwindcss.com/docs/grid-row
|
|
747
747
|
*/
|
|
748
748
|
"row-start": [{
|
|
749
|
-
"row-start":
|
|
749
|
+
"row-start": H()
|
|
750
750
|
}],
|
|
751
751
|
/**
|
|
752
752
|
* Grid Row End
|
|
753
753
|
* @see https://tailwindcss.com/docs/grid-row
|
|
754
754
|
*/
|
|
755
755
|
"row-end": [{
|
|
756
|
-
"row-end":
|
|
756
|
+
"row-end": H()
|
|
757
757
|
}],
|
|
758
758
|
/**
|
|
759
759
|
* Grid Auto Flow
|
|
@@ -767,35 +767,35 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
767
767
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
768
768
|
*/
|
|
769
769
|
"auto-cols": [{
|
|
770
|
-
"auto-cols":
|
|
770
|
+
"auto-cols": $()
|
|
771
771
|
}],
|
|
772
772
|
/**
|
|
773
773
|
* Grid Auto Rows
|
|
774
774
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
775
775
|
*/
|
|
776
776
|
"auto-rows": [{
|
|
777
|
-
"auto-rows":
|
|
777
|
+
"auto-rows": $()
|
|
778
778
|
}],
|
|
779
779
|
/**
|
|
780
780
|
* Gap
|
|
781
781
|
* @see https://tailwindcss.com/docs/gap
|
|
782
782
|
*/
|
|
783
783
|
gap: [{
|
|
784
|
-
gap:
|
|
784
|
+
gap: C()
|
|
785
785
|
}],
|
|
786
786
|
/**
|
|
787
787
|
* Gap X
|
|
788
788
|
* @see https://tailwindcss.com/docs/gap
|
|
789
789
|
*/
|
|
790
790
|
"gap-x": [{
|
|
791
|
-
"gap-x":
|
|
791
|
+
"gap-x": C()
|
|
792
792
|
}],
|
|
793
793
|
/**
|
|
794
794
|
* Gap Y
|
|
795
795
|
* @see https://tailwindcss.com/docs/gap
|
|
796
796
|
*/
|
|
797
797
|
"gap-y": [{
|
|
798
|
-
"gap-y":
|
|
798
|
+
"gap-y": C()
|
|
799
799
|
}],
|
|
800
800
|
/**
|
|
801
801
|
* Justify Content
|
|
@@ -870,77 +870,77 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
870
870
|
* @see https://tailwindcss.com/docs/padding
|
|
871
871
|
*/
|
|
872
872
|
p: [{
|
|
873
|
-
p:
|
|
873
|
+
p: C()
|
|
874
874
|
}],
|
|
875
875
|
/**
|
|
876
876
|
* Padding Inline
|
|
877
877
|
* @see https://tailwindcss.com/docs/padding
|
|
878
878
|
*/
|
|
879
879
|
px: [{
|
|
880
|
-
px:
|
|
880
|
+
px: C()
|
|
881
881
|
}],
|
|
882
882
|
/**
|
|
883
883
|
* Padding Block
|
|
884
884
|
* @see https://tailwindcss.com/docs/padding
|
|
885
885
|
*/
|
|
886
886
|
py: [{
|
|
887
|
-
py:
|
|
887
|
+
py: C()
|
|
888
888
|
}],
|
|
889
889
|
/**
|
|
890
890
|
* Padding Inline Start
|
|
891
891
|
* @see https://tailwindcss.com/docs/padding
|
|
892
892
|
*/
|
|
893
893
|
ps: [{
|
|
894
|
-
ps:
|
|
894
|
+
ps: C()
|
|
895
895
|
}],
|
|
896
896
|
/**
|
|
897
897
|
* Padding Inline End
|
|
898
898
|
* @see https://tailwindcss.com/docs/padding
|
|
899
899
|
*/
|
|
900
900
|
pe: [{
|
|
901
|
-
pe:
|
|
901
|
+
pe: C()
|
|
902
902
|
}],
|
|
903
903
|
/**
|
|
904
904
|
* Padding Block Start
|
|
905
905
|
* @see https://tailwindcss.com/docs/padding
|
|
906
906
|
*/
|
|
907
907
|
pbs: [{
|
|
908
|
-
pbs:
|
|
908
|
+
pbs: C()
|
|
909
909
|
}],
|
|
910
910
|
/**
|
|
911
911
|
* Padding Block End
|
|
912
912
|
* @see https://tailwindcss.com/docs/padding
|
|
913
913
|
*/
|
|
914
914
|
pbe: [{
|
|
915
|
-
pbe:
|
|
915
|
+
pbe: C()
|
|
916
916
|
}],
|
|
917
917
|
/**
|
|
918
918
|
* Padding Top
|
|
919
919
|
* @see https://tailwindcss.com/docs/padding
|
|
920
920
|
*/
|
|
921
921
|
pt: [{
|
|
922
|
-
pt:
|
|
922
|
+
pt: C()
|
|
923
923
|
}],
|
|
924
924
|
/**
|
|
925
925
|
* Padding Right
|
|
926
926
|
* @see https://tailwindcss.com/docs/padding
|
|
927
927
|
*/
|
|
928
928
|
pr: [{
|
|
929
|
-
pr:
|
|
929
|
+
pr: C()
|
|
930
930
|
}],
|
|
931
931
|
/**
|
|
932
932
|
* Padding Bottom
|
|
933
933
|
* @see https://tailwindcss.com/docs/padding
|
|
934
934
|
*/
|
|
935
935
|
pb: [{
|
|
936
|
-
pb:
|
|
936
|
+
pb: C()
|
|
937
937
|
}],
|
|
938
938
|
/**
|
|
939
939
|
* Padding Left
|
|
940
940
|
* @see https://tailwindcss.com/docs/padding
|
|
941
941
|
*/
|
|
942
942
|
pl: [{
|
|
943
|
-
pl:
|
|
943
|
+
pl: C()
|
|
944
944
|
}],
|
|
945
945
|
/**
|
|
946
946
|
* Margin
|
|
@@ -1024,7 +1024,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1024
1024
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1025
1025
|
*/
|
|
1026
1026
|
"space-x": [{
|
|
1027
|
-
"space-x":
|
|
1027
|
+
"space-x": C()
|
|
1028
1028
|
}],
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Space Between X Reverse
|
|
@@ -1036,7 +1036,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1036
1036
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1037
1037
|
*/
|
|
1038
1038
|
"space-y": [{
|
|
1039
|
-
"space-y":
|
|
1039
|
+
"space-y": C()
|
|
1040
1040
|
}],
|
|
1041
1041
|
/**
|
|
1042
1042
|
* Space Between Y Reverse
|
|
@@ -1186,7 +1186,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1186
1186
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1187
1187
|
*/
|
|
1188
1188
|
"font-stretch": [{
|
|
1189
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Xt,
|
|
1189
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Xt, N]
|
|
1190
1190
|
}],
|
|
1191
1191
|
/**
|
|
1192
1192
|
* Font Family
|
|
@@ -1200,7 +1200,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1200
1200
|
* @see https://tailwindcss.com/docs/font-feature-settings
|
|
1201
1201
|
*/
|
|
1202
1202
|
"font-features": [{
|
|
1203
|
-
"font-features": [
|
|
1203
|
+
"font-features": [N]
|
|
1204
1204
|
}],
|
|
1205
1205
|
/**
|
|
1206
1206
|
* Font Variant Numeric
|
|
@@ -1237,14 +1237,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1237
1237
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1238
1238
|
*/
|
|
1239
1239
|
tracking: [{
|
|
1240
|
-
tracking: [o,
|
|
1240
|
+
tracking: [o, O, N]
|
|
1241
1241
|
}],
|
|
1242
1242
|
/**
|
|
1243
1243
|
* Line Clamp
|
|
1244
1244
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1245
1245
|
*/
|
|
1246
1246
|
"line-clamp": [{
|
|
1247
|
-
"line-clamp": [q, "none",
|
|
1247
|
+
"line-clamp": [q, "none", O, dr]
|
|
1248
1248
|
}],
|
|
1249
1249
|
/**
|
|
1250
1250
|
* Line Height
|
|
@@ -1254,7 +1254,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1254
1254
|
leading: [
|
|
1255
1255
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1256
1256
|
i,
|
|
1257
|
-
...
|
|
1257
|
+
...C()
|
|
1258
1258
|
]
|
|
1259
1259
|
}],
|
|
1260
1260
|
/**
|
|
@@ -1262,7 +1262,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1262
1262
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1263
1263
|
*/
|
|
1264
1264
|
"list-image": [{
|
|
1265
|
-
"list-image": ["none",
|
|
1265
|
+
"list-image": ["none", O, N]
|
|
1266
1266
|
}],
|
|
1267
1267
|
/**
|
|
1268
1268
|
* List Style Position
|
|
@@ -1276,7 +1276,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1276
1276
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1277
1277
|
*/
|
|
1278
1278
|
"list-style-type": [{
|
|
1279
|
-
list: ["disc", "decimal", "none",
|
|
1279
|
+
list: ["disc", "decimal", "none", O, N]
|
|
1280
1280
|
}],
|
|
1281
1281
|
/**
|
|
1282
1282
|
* Text Alignment
|
|
@@ -1291,14 +1291,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1291
1291
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1292
1292
|
*/
|
|
1293
1293
|
"placeholder-color": [{
|
|
1294
|
-
placeholder:
|
|
1294
|
+
placeholder: A()
|
|
1295
1295
|
}],
|
|
1296
1296
|
/**
|
|
1297
1297
|
* Text Color
|
|
1298
1298
|
* @see https://tailwindcss.com/docs/text-color
|
|
1299
1299
|
*/
|
|
1300
1300
|
"text-color": [{
|
|
1301
|
-
text:
|
|
1301
|
+
text: A()
|
|
1302
1302
|
}],
|
|
1303
1303
|
/**
|
|
1304
1304
|
* Text Decoration
|
|
@@ -1317,21 +1317,21 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1317
1317
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1318
1318
|
*/
|
|
1319
1319
|
"text-decoration-thickness": [{
|
|
1320
|
-
decoration: [q, "from-font", "auto",
|
|
1320
|
+
decoration: [q, "from-font", "auto", O, He]
|
|
1321
1321
|
}],
|
|
1322
1322
|
/**
|
|
1323
1323
|
* Text Decoration Color
|
|
1324
1324
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1325
1325
|
*/
|
|
1326
1326
|
"text-decoration-color": [{
|
|
1327
|
-
decoration:
|
|
1327
|
+
decoration: A()
|
|
1328
1328
|
}],
|
|
1329
1329
|
/**
|
|
1330
1330
|
* Text Underline Offset
|
|
1331
1331
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1332
1332
|
*/
|
|
1333
1333
|
"underline-offset": [{
|
|
1334
|
-
"underline-offset": [q, "auto",
|
|
1334
|
+
"underline-offset": [q, "auto", O, N]
|
|
1335
1335
|
}],
|
|
1336
1336
|
/**
|
|
1337
1337
|
* Text Transform
|
|
@@ -1355,14 +1355,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1355
1355
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1356
1356
|
*/
|
|
1357
1357
|
indent: [{
|
|
1358
|
-
indent:
|
|
1358
|
+
indent: C()
|
|
1359
1359
|
}],
|
|
1360
1360
|
/**
|
|
1361
1361
|
* Vertical Alignment
|
|
1362
1362
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1363
1363
|
*/
|
|
1364
1364
|
"vertical-align": [{
|
|
1365
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1365
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", O, N]
|
|
1366
1366
|
}],
|
|
1367
1367
|
/**
|
|
1368
1368
|
* Whitespace
|
|
@@ -1397,7 +1397,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1397
1397
|
* @see https://tailwindcss.com/docs/content
|
|
1398
1398
|
*/
|
|
1399
1399
|
content: [{
|
|
1400
|
-
content: ["none",
|
|
1400
|
+
content: ["none", O, N]
|
|
1401
1401
|
}],
|
|
1402
1402
|
// -------------------
|
|
1403
1403
|
// --- Backgrounds ---
|
|
@@ -1442,7 +1442,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1442
1442
|
* @see https://tailwindcss.com/docs/background-size
|
|
1443
1443
|
*/
|
|
1444
1444
|
"bg-size": [{
|
|
1445
|
-
bg:
|
|
1445
|
+
bg: z()
|
|
1446
1446
|
}],
|
|
1447
1447
|
/**
|
|
1448
1448
|
* Background Image
|
|
@@ -1452,9 +1452,9 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1452
1452
|
bg: ["none", {
|
|
1453
1453
|
linear: [{
|
|
1454
1454
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1455
|
-
}, Fe,
|
|
1456
|
-
radial: ["",
|
|
1457
|
-
conic: [Fe,
|
|
1455
|
+
}, Fe, O, N],
|
|
1456
|
+
radial: ["", O, N],
|
|
1457
|
+
conic: [Fe, O, N]
|
|
1458
1458
|
}, Va, $a]
|
|
1459
1459
|
}],
|
|
1460
1460
|
/**
|
|
@@ -1462,7 +1462,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1462
1462
|
* @see https://tailwindcss.com/docs/background-color
|
|
1463
1463
|
*/
|
|
1464
1464
|
"bg-color": [{
|
|
1465
|
-
bg:
|
|
1465
|
+
bg: A()
|
|
1466
1466
|
}],
|
|
1467
1467
|
/**
|
|
1468
1468
|
* Gradient Color Stops From Position
|
|
@@ -1490,21 +1490,21 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1490
1490
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1491
1491
|
*/
|
|
1492
1492
|
"gradient-from": [{
|
|
1493
|
-
from:
|
|
1493
|
+
from: A()
|
|
1494
1494
|
}],
|
|
1495
1495
|
/**
|
|
1496
1496
|
* Gradient Color Stops Via
|
|
1497
1497
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1498
1498
|
*/
|
|
1499
1499
|
"gradient-via": [{
|
|
1500
|
-
via:
|
|
1500
|
+
via: A()
|
|
1501
1501
|
}],
|
|
1502
1502
|
/**
|
|
1503
1503
|
* Gradient Color Stops To
|
|
1504
1504
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1505
1505
|
*/
|
|
1506
1506
|
"gradient-to": [{
|
|
1507
|
-
to:
|
|
1507
|
+
to: A()
|
|
1508
1508
|
}],
|
|
1509
1509
|
// ---------------
|
|
1510
1510
|
// --- Borders ---
|
|
@@ -1514,189 +1514,189 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1514
1514
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1515
1515
|
*/
|
|
1516
1516
|
rounded: [{
|
|
1517
|
-
rounded:
|
|
1517
|
+
rounded: D()
|
|
1518
1518
|
}],
|
|
1519
1519
|
/**
|
|
1520
1520
|
* Border Radius Start
|
|
1521
1521
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1522
1522
|
*/
|
|
1523
1523
|
"rounded-s": [{
|
|
1524
|
-
"rounded-s":
|
|
1524
|
+
"rounded-s": D()
|
|
1525
1525
|
}],
|
|
1526
1526
|
/**
|
|
1527
1527
|
* Border Radius End
|
|
1528
1528
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1529
1529
|
*/
|
|
1530
1530
|
"rounded-e": [{
|
|
1531
|
-
"rounded-e":
|
|
1531
|
+
"rounded-e": D()
|
|
1532
1532
|
}],
|
|
1533
1533
|
/**
|
|
1534
1534
|
* Border Radius Top
|
|
1535
1535
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1536
1536
|
*/
|
|
1537
1537
|
"rounded-t": [{
|
|
1538
|
-
"rounded-t":
|
|
1538
|
+
"rounded-t": D()
|
|
1539
1539
|
}],
|
|
1540
1540
|
/**
|
|
1541
1541
|
* Border Radius Right
|
|
1542
1542
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1543
1543
|
*/
|
|
1544
1544
|
"rounded-r": [{
|
|
1545
|
-
"rounded-r":
|
|
1545
|
+
"rounded-r": D()
|
|
1546
1546
|
}],
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Border Radius Bottom
|
|
1549
1549
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1550
1550
|
*/
|
|
1551
1551
|
"rounded-b": [{
|
|
1552
|
-
"rounded-b":
|
|
1552
|
+
"rounded-b": D()
|
|
1553
1553
|
}],
|
|
1554
1554
|
/**
|
|
1555
1555
|
* Border Radius Left
|
|
1556
1556
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1557
1557
|
*/
|
|
1558
1558
|
"rounded-l": [{
|
|
1559
|
-
"rounded-l":
|
|
1559
|
+
"rounded-l": D()
|
|
1560
1560
|
}],
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Border Radius Start Start
|
|
1563
1563
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1564
1564
|
*/
|
|
1565
1565
|
"rounded-ss": [{
|
|
1566
|
-
"rounded-ss":
|
|
1566
|
+
"rounded-ss": D()
|
|
1567
1567
|
}],
|
|
1568
1568
|
/**
|
|
1569
1569
|
* Border Radius Start End
|
|
1570
1570
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1571
1571
|
*/
|
|
1572
1572
|
"rounded-se": [{
|
|
1573
|
-
"rounded-se":
|
|
1573
|
+
"rounded-se": D()
|
|
1574
1574
|
}],
|
|
1575
1575
|
/**
|
|
1576
1576
|
* Border Radius End End
|
|
1577
1577
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1578
1578
|
*/
|
|
1579
1579
|
"rounded-ee": [{
|
|
1580
|
-
"rounded-ee":
|
|
1580
|
+
"rounded-ee": D()
|
|
1581
1581
|
}],
|
|
1582
1582
|
/**
|
|
1583
1583
|
* Border Radius End Start
|
|
1584
1584
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1585
1585
|
*/
|
|
1586
1586
|
"rounded-es": [{
|
|
1587
|
-
"rounded-es":
|
|
1587
|
+
"rounded-es": D()
|
|
1588
1588
|
}],
|
|
1589
1589
|
/**
|
|
1590
1590
|
* Border Radius Top Left
|
|
1591
1591
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1592
1592
|
*/
|
|
1593
1593
|
"rounded-tl": [{
|
|
1594
|
-
"rounded-tl":
|
|
1594
|
+
"rounded-tl": D()
|
|
1595
1595
|
}],
|
|
1596
1596
|
/**
|
|
1597
1597
|
* Border Radius Top Right
|
|
1598
1598
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1599
1599
|
*/
|
|
1600
1600
|
"rounded-tr": [{
|
|
1601
|
-
"rounded-tr":
|
|
1601
|
+
"rounded-tr": D()
|
|
1602
1602
|
}],
|
|
1603
1603
|
/**
|
|
1604
1604
|
* Border Radius Bottom Right
|
|
1605
1605
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1606
1606
|
*/
|
|
1607
1607
|
"rounded-br": [{
|
|
1608
|
-
"rounded-br":
|
|
1608
|
+
"rounded-br": D()
|
|
1609
1609
|
}],
|
|
1610
1610
|
/**
|
|
1611
1611
|
* Border Radius Bottom Left
|
|
1612
1612
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1613
1613
|
*/
|
|
1614
1614
|
"rounded-bl": [{
|
|
1615
|
-
"rounded-bl":
|
|
1615
|
+
"rounded-bl": D()
|
|
1616
1616
|
}],
|
|
1617
1617
|
/**
|
|
1618
1618
|
* Border Width
|
|
1619
1619
|
* @see https://tailwindcss.com/docs/border-width
|
|
1620
1620
|
*/
|
|
1621
1621
|
"border-w": [{
|
|
1622
|
-
border:
|
|
1622
|
+
border: B()
|
|
1623
1623
|
}],
|
|
1624
1624
|
/**
|
|
1625
1625
|
* Border Width Inline
|
|
1626
1626
|
* @see https://tailwindcss.com/docs/border-width
|
|
1627
1627
|
*/
|
|
1628
1628
|
"border-w-x": [{
|
|
1629
|
-
"border-x":
|
|
1629
|
+
"border-x": B()
|
|
1630
1630
|
}],
|
|
1631
1631
|
/**
|
|
1632
1632
|
* Border Width Block
|
|
1633
1633
|
* @see https://tailwindcss.com/docs/border-width
|
|
1634
1634
|
*/
|
|
1635
1635
|
"border-w-y": [{
|
|
1636
|
-
"border-y":
|
|
1636
|
+
"border-y": B()
|
|
1637
1637
|
}],
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Border Width Inline Start
|
|
1640
1640
|
* @see https://tailwindcss.com/docs/border-width
|
|
1641
1641
|
*/
|
|
1642
1642
|
"border-w-s": [{
|
|
1643
|
-
"border-s":
|
|
1643
|
+
"border-s": B()
|
|
1644
1644
|
}],
|
|
1645
1645
|
/**
|
|
1646
1646
|
* Border Width Inline End
|
|
1647
1647
|
* @see https://tailwindcss.com/docs/border-width
|
|
1648
1648
|
*/
|
|
1649
1649
|
"border-w-e": [{
|
|
1650
|
-
"border-e":
|
|
1650
|
+
"border-e": B()
|
|
1651
1651
|
}],
|
|
1652
1652
|
/**
|
|
1653
1653
|
* Border Width Block Start
|
|
1654
1654
|
* @see https://tailwindcss.com/docs/border-width
|
|
1655
1655
|
*/
|
|
1656
1656
|
"border-w-bs": [{
|
|
1657
|
-
"border-bs":
|
|
1657
|
+
"border-bs": B()
|
|
1658
1658
|
}],
|
|
1659
1659
|
/**
|
|
1660
1660
|
* Border Width Block End
|
|
1661
1661
|
* @see https://tailwindcss.com/docs/border-width
|
|
1662
1662
|
*/
|
|
1663
1663
|
"border-w-be": [{
|
|
1664
|
-
"border-be":
|
|
1664
|
+
"border-be": B()
|
|
1665
1665
|
}],
|
|
1666
1666
|
/**
|
|
1667
1667
|
* Border Width Top
|
|
1668
1668
|
* @see https://tailwindcss.com/docs/border-width
|
|
1669
1669
|
*/
|
|
1670
1670
|
"border-w-t": [{
|
|
1671
|
-
"border-t":
|
|
1671
|
+
"border-t": B()
|
|
1672
1672
|
}],
|
|
1673
1673
|
/**
|
|
1674
1674
|
* Border Width Right
|
|
1675
1675
|
* @see https://tailwindcss.com/docs/border-width
|
|
1676
1676
|
*/
|
|
1677
1677
|
"border-w-r": [{
|
|
1678
|
-
"border-r":
|
|
1678
|
+
"border-r": B()
|
|
1679
1679
|
}],
|
|
1680
1680
|
/**
|
|
1681
1681
|
* Border Width Bottom
|
|
1682
1682
|
* @see https://tailwindcss.com/docs/border-width
|
|
1683
1683
|
*/
|
|
1684
1684
|
"border-w-b": [{
|
|
1685
|
-
"border-b":
|
|
1685
|
+
"border-b": B()
|
|
1686
1686
|
}],
|
|
1687
1687
|
/**
|
|
1688
1688
|
* Border Width Left
|
|
1689
1689
|
* @see https://tailwindcss.com/docs/border-width
|
|
1690
1690
|
*/
|
|
1691
1691
|
"border-w-l": [{
|
|
1692
|
-
"border-l":
|
|
1692
|
+
"border-l": B()
|
|
1693
1693
|
}],
|
|
1694
1694
|
/**
|
|
1695
1695
|
* Divide Width X
|
|
1696
1696
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1697
1697
|
*/
|
|
1698
1698
|
"divide-x": [{
|
|
1699
|
-
"divide-x":
|
|
1699
|
+
"divide-x": B()
|
|
1700
1700
|
}],
|
|
1701
1701
|
/**
|
|
1702
1702
|
* Divide Width X Reverse
|
|
@@ -1708,7 +1708,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1708
1708
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1709
1709
|
*/
|
|
1710
1710
|
"divide-y": [{
|
|
1711
|
-
"divide-y":
|
|
1711
|
+
"divide-y": B()
|
|
1712
1712
|
}],
|
|
1713
1713
|
/**
|
|
1714
1714
|
* Divide Width Y Reverse
|
|
@@ -1734,84 +1734,84 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1734
1734
|
* @see https://tailwindcss.com/docs/border-color
|
|
1735
1735
|
*/
|
|
1736
1736
|
"border-color": [{
|
|
1737
|
-
border:
|
|
1737
|
+
border: A()
|
|
1738
1738
|
}],
|
|
1739
1739
|
/**
|
|
1740
1740
|
* Border Color Inline
|
|
1741
1741
|
* @see https://tailwindcss.com/docs/border-color
|
|
1742
1742
|
*/
|
|
1743
1743
|
"border-color-x": [{
|
|
1744
|
-
"border-x":
|
|
1744
|
+
"border-x": A()
|
|
1745
1745
|
}],
|
|
1746
1746
|
/**
|
|
1747
1747
|
* Border Color Block
|
|
1748
1748
|
* @see https://tailwindcss.com/docs/border-color
|
|
1749
1749
|
*/
|
|
1750
1750
|
"border-color-y": [{
|
|
1751
|
-
"border-y":
|
|
1751
|
+
"border-y": A()
|
|
1752
1752
|
}],
|
|
1753
1753
|
/**
|
|
1754
1754
|
* Border Color Inline Start
|
|
1755
1755
|
* @see https://tailwindcss.com/docs/border-color
|
|
1756
1756
|
*/
|
|
1757
1757
|
"border-color-s": [{
|
|
1758
|
-
"border-s":
|
|
1758
|
+
"border-s": A()
|
|
1759
1759
|
}],
|
|
1760
1760
|
/**
|
|
1761
1761
|
* Border Color Inline End
|
|
1762
1762
|
* @see https://tailwindcss.com/docs/border-color
|
|
1763
1763
|
*/
|
|
1764
1764
|
"border-color-e": [{
|
|
1765
|
-
"border-e":
|
|
1765
|
+
"border-e": A()
|
|
1766
1766
|
}],
|
|
1767
1767
|
/**
|
|
1768
1768
|
* Border Color Block Start
|
|
1769
1769
|
* @see https://tailwindcss.com/docs/border-color
|
|
1770
1770
|
*/
|
|
1771
1771
|
"border-color-bs": [{
|
|
1772
|
-
"border-bs":
|
|
1772
|
+
"border-bs": A()
|
|
1773
1773
|
}],
|
|
1774
1774
|
/**
|
|
1775
1775
|
* Border Color Block End
|
|
1776
1776
|
* @see https://tailwindcss.com/docs/border-color
|
|
1777
1777
|
*/
|
|
1778
1778
|
"border-color-be": [{
|
|
1779
|
-
"border-be":
|
|
1779
|
+
"border-be": A()
|
|
1780
1780
|
}],
|
|
1781
1781
|
/**
|
|
1782
1782
|
* Border Color Top
|
|
1783
1783
|
* @see https://tailwindcss.com/docs/border-color
|
|
1784
1784
|
*/
|
|
1785
1785
|
"border-color-t": [{
|
|
1786
|
-
"border-t":
|
|
1786
|
+
"border-t": A()
|
|
1787
1787
|
}],
|
|
1788
1788
|
/**
|
|
1789
1789
|
* Border Color Right
|
|
1790
1790
|
* @see https://tailwindcss.com/docs/border-color
|
|
1791
1791
|
*/
|
|
1792
1792
|
"border-color-r": [{
|
|
1793
|
-
"border-r":
|
|
1793
|
+
"border-r": A()
|
|
1794
1794
|
}],
|
|
1795
1795
|
/**
|
|
1796
1796
|
* Border Color Bottom
|
|
1797
1797
|
* @see https://tailwindcss.com/docs/border-color
|
|
1798
1798
|
*/
|
|
1799
1799
|
"border-color-b": [{
|
|
1800
|
-
"border-b":
|
|
1800
|
+
"border-b": A()
|
|
1801
1801
|
}],
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Border Color Left
|
|
1804
1804
|
* @see https://tailwindcss.com/docs/border-color
|
|
1805
1805
|
*/
|
|
1806
1806
|
"border-color-l": [{
|
|
1807
|
-
"border-l":
|
|
1807
|
+
"border-l": A()
|
|
1808
1808
|
}],
|
|
1809
1809
|
/**
|
|
1810
1810
|
* Divide Color
|
|
1811
1811
|
* @see https://tailwindcss.com/docs/divide-color
|
|
1812
1812
|
*/
|
|
1813
1813
|
"divide-color": [{
|
|
1814
|
-
divide:
|
|
1814
|
+
divide: A()
|
|
1815
1815
|
}],
|
|
1816
1816
|
/**
|
|
1817
1817
|
* Outline Style
|
|
@@ -1825,7 +1825,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1825
1825
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1826
1826
|
*/
|
|
1827
1827
|
"outline-offset": [{
|
|
1828
|
-
"outline-offset": [q,
|
|
1828
|
+
"outline-offset": [q, O, N]
|
|
1829
1829
|
}],
|
|
1830
1830
|
/**
|
|
1831
1831
|
* Outline Width
|
|
@@ -1839,7 +1839,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1839
1839
|
* @see https://tailwindcss.com/docs/outline-color
|
|
1840
1840
|
*/
|
|
1841
1841
|
"outline-color": [{
|
|
1842
|
-
outline:
|
|
1842
|
+
outline: A()
|
|
1843
1843
|
}],
|
|
1844
1844
|
// ---------------
|
|
1845
1845
|
// --- Effects ---
|
|
@@ -1863,7 +1863,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1863
1863
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
1864
1864
|
*/
|
|
1865
1865
|
"shadow-color": [{
|
|
1866
|
-
shadow:
|
|
1866
|
+
shadow: A()
|
|
1867
1867
|
}],
|
|
1868
1868
|
/**
|
|
1869
1869
|
* Inset Box Shadow
|
|
@@ -1877,14 +1877,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1877
1877
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
1878
1878
|
*/
|
|
1879
1879
|
"inset-shadow-color": [{
|
|
1880
|
-
"inset-shadow":
|
|
1880
|
+
"inset-shadow": A()
|
|
1881
1881
|
}],
|
|
1882
1882
|
/**
|
|
1883
1883
|
* Ring Width
|
|
1884
1884
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
1885
1885
|
*/
|
|
1886
1886
|
"ring-w": [{
|
|
1887
|
-
ring:
|
|
1887
|
+
ring: B()
|
|
1888
1888
|
}],
|
|
1889
1889
|
/**
|
|
1890
1890
|
* Ring Width Inset
|
|
@@ -1898,7 +1898,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1898
1898
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
1899
1899
|
*/
|
|
1900
1900
|
"ring-color": [{
|
|
1901
|
-
ring:
|
|
1901
|
+
ring: A()
|
|
1902
1902
|
}],
|
|
1903
1903
|
/**
|
|
1904
1904
|
* Ring Offset Width
|
|
@@ -1916,21 +1916,21 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1916
1916
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1917
1917
|
*/
|
|
1918
1918
|
"ring-offset-color": [{
|
|
1919
|
-
"ring-offset":
|
|
1919
|
+
"ring-offset": A()
|
|
1920
1920
|
}],
|
|
1921
1921
|
/**
|
|
1922
1922
|
* Inset Ring Width
|
|
1923
1923
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
1924
1924
|
*/
|
|
1925
1925
|
"inset-ring-w": [{
|
|
1926
|
-
"inset-ring":
|
|
1926
|
+
"inset-ring": B()
|
|
1927
1927
|
}],
|
|
1928
1928
|
/**
|
|
1929
1929
|
* Inset Ring Color
|
|
1930
1930
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
1931
1931
|
*/
|
|
1932
1932
|
"inset-ring-color": [{
|
|
1933
|
-
"inset-ring":
|
|
1933
|
+
"inset-ring": A()
|
|
1934
1934
|
}],
|
|
1935
1935
|
/**
|
|
1936
1936
|
* Text Shadow
|
|
@@ -1944,14 +1944,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1944
1944
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
1945
1945
|
*/
|
|
1946
1946
|
"text-shadow-color": [{
|
|
1947
|
-
"text-shadow":
|
|
1947
|
+
"text-shadow": A()
|
|
1948
1948
|
}],
|
|
1949
1949
|
/**
|
|
1950
1950
|
* Opacity
|
|
1951
1951
|
* @see https://tailwindcss.com/docs/opacity
|
|
1952
1952
|
*/
|
|
1953
1953
|
opacity: [{
|
|
1954
|
-
opacity: [q,
|
|
1954
|
+
opacity: [q, O, N]
|
|
1955
1955
|
}],
|
|
1956
1956
|
/**
|
|
1957
1957
|
* Mix Blend Mode
|
|
@@ -1995,10 +1995,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1995
1995
|
"mask-linear-to": K()
|
|
1996
1996
|
}],
|
|
1997
1997
|
"mask-image-linear-from-color": [{
|
|
1998
|
-
"mask-linear-from":
|
|
1998
|
+
"mask-linear-from": A()
|
|
1999
1999
|
}],
|
|
2000
2000
|
"mask-image-linear-to-color": [{
|
|
2001
|
-
"mask-linear-to":
|
|
2001
|
+
"mask-linear-to": A()
|
|
2002
2002
|
}],
|
|
2003
2003
|
"mask-image-t-from-pos": [{
|
|
2004
2004
|
"mask-t-from": K()
|
|
@@ -2007,10 +2007,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2007
2007
|
"mask-t-to": K()
|
|
2008
2008
|
}],
|
|
2009
2009
|
"mask-image-t-from-color": [{
|
|
2010
|
-
"mask-t-from":
|
|
2010
|
+
"mask-t-from": A()
|
|
2011
2011
|
}],
|
|
2012
2012
|
"mask-image-t-to-color": [{
|
|
2013
|
-
"mask-t-to":
|
|
2013
|
+
"mask-t-to": A()
|
|
2014
2014
|
}],
|
|
2015
2015
|
"mask-image-r-from-pos": [{
|
|
2016
2016
|
"mask-r-from": K()
|
|
@@ -2019,10 +2019,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2019
2019
|
"mask-r-to": K()
|
|
2020
2020
|
}],
|
|
2021
2021
|
"mask-image-r-from-color": [{
|
|
2022
|
-
"mask-r-from":
|
|
2022
|
+
"mask-r-from": A()
|
|
2023
2023
|
}],
|
|
2024
2024
|
"mask-image-r-to-color": [{
|
|
2025
|
-
"mask-r-to":
|
|
2025
|
+
"mask-r-to": A()
|
|
2026
2026
|
}],
|
|
2027
2027
|
"mask-image-b-from-pos": [{
|
|
2028
2028
|
"mask-b-from": K()
|
|
@@ -2031,10 +2031,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2031
2031
|
"mask-b-to": K()
|
|
2032
2032
|
}],
|
|
2033
2033
|
"mask-image-b-from-color": [{
|
|
2034
|
-
"mask-b-from":
|
|
2034
|
+
"mask-b-from": A()
|
|
2035
2035
|
}],
|
|
2036
2036
|
"mask-image-b-to-color": [{
|
|
2037
|
-
"mask-b-to":
|
|
2037
|
+
"mask-b-to": A()
|
|
2038
2038
|
}],
|
|
2039
2039
|
"mask-image-l-from-pos": [{
|
|
2040
2040
|
"mask-l-from": K()
|
|
@@ -2043,10 +2043,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2043
2043
|
"mask-l-to": K()
|
|
2044
2044
|
}],
|
|
2045
2045
|
"mask-image-l-from-color": [{
|
|
2046
|
-
"mask-l-from":
|
|
2046
|
+
"mask-l-from": A()
|
|
2047
2047
|
}],
|
|
2048
2048
|
"mask-image-l-to-color": [{
|
|
2049
|
-
"mask-l-to":
|
|
2049
|
+
"mask-l-to": A()
|
|
2050
2050
|
}],
|
|
2051
2051
|
"mask-image-x-from-pos": [{
|
|
2052
2052
|
"mask-x-from": K()
|
|
@@ -2055,10 +2055,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2055
2055
|
"mask-x-to": K()
|
|
2056
2056
|
}],
|
|
2057
2057
|
"mask-image-x-from-color": [{
|
|
2058
|
-
"mask-x-from":
|
|
2058
|
+
"mask-x-from": A()
|
|
2059
2059
|
}],
|
|
2060
2060
|
"mask-image-x-to-color": [{
|
|
2061
|
-
"mask-x-to":
|
|
2061
|
+
"mask-x-to": A()
|
|
2062
2062
|
}],
|
|
2063
2063
|
"mask-image-y-from-pos": [{
|
|
2064
2064
|
"mask-y-from": K()
|
|
@@ -2067,13 +2067,13 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2067
2067
|
"mask-y-to": K()
|
|
2068
2068
|
}],
|
|
2069
2069
|
"mask-image-y-from-color": [{
|
|
2070
|
-
"mask-y-from":
|
|
2070
|
+
"mask-y-from": A()
|
|
2071
2071
|
}],
|
|
2072
2072
|
"mask-image-y-to-color": [{
|
|
2073
|
-
"mask-y-to":
|
|
2073
|
+
"mask-y-to": A()
|
|
2074
2074
|
}],
|
|
2075
2075
|
"mask-image-radial": [{
|
|
2076
|
-
"mask-radial": [
|
|
2076
|
+
"mask-radial": [O, N]
|
|
2077
2077
|
}],
|
|
2078
2078
|
"mask-image-radial-from-pos": [{
|
|
2079
2079
|
"mask-radial-from": K()
|
|
@@ -2082,10 +2082,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2082
2082
|
"mask-radial-to": K()
|
|
2083
2083
|
}],
|
|
2084
2084
|
"mask-image-radial-from-color": [{
|
|
2085
|
-
"mask-radial-from":
|
|
2085
|
+
"mask-radial-from": A()
|
|
2086
2086
|
}],
|
|
2087
2087
|
"mask-image-radial-to-color": [{
|
|
2088
|
-
"mask-radial-to":
|
|
2088
|
+
"mask-radial-to": A()
|
|
2089
2089
|
}],
|
|
2090
2090
|
"mask-image-radial-shape": [{
|
|
2091
2091
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -2097,7 +2097,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2097
2097
|
}]
|
|
2098
2098
|
}],
|
|
2099
2099
|
"mask-image-radial-pos": [{
|
|
2100
|
-
"mask-radial-at":
|
|
2100
|
+
"mask-radial-at": b()
|
|
2101
2101
|
}],
|
|
2102
2102
|
"mask-image-conic-pos": [{
|
|
2103
2103
|
"mask-conic": [q]
|
|
@@ -2109,10 +2109,10 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2109
2109
|
"mask-conic-to": K()
|
|
2110
2110
|
}],
|
|
2111
2111
|
"mask-image-conic-from-color": [{
|
|
2112
|
-
"mask-conic-from":
|
|
2112
|
+
"mask-conic-from": A()
|
|
2113
2113
|
}],
|
|
2114
2114
|
"mask-image-conic-to-color": [{
|
|
2115
|
-
"mask-conic-to":
|
|
2115
|
+
"mask-conic-to": A()
|
|
2116
2116
|
}],
|
|
2117
2117
|
/**
|
|
2118
2118
|
* Mask Mode
|
|
@@ -2147,7 +2147,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2147
2147
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2148
2148
|
*/
|
|
2149
2149
|
"mask-size": [{
|
|
2150
|
-
mask:
|
|
2150
|
+
mask: z()
|
|
2151
2151
|
}],
|
|
2152
2152
|
/**
|
|
2153
2153
|
* Mask Type
|
|
@@ -2161,7 +2161,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2161
2161
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2162
2162
|
*/
|
|
2163
2163
|
"mask-image": [{
|
|
2164
|
-
mask: ["none",
|
|
2164
|
+
mask: ["none", O, N]
|
|
2165
2165
|
}],
|
|
2166
2166
|
// ---------------
|
|
2167
2167
|
// --- Filters ---
|
|
@@ -2175,8 +2175,8 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2175
2175
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2176
2176
|
"",
|
|
2177
2177
|
"none",
|
|
2178
|
-
|
|
2179
|
-
|
|
2178
|
+
O,
|
|
2179
|
+
N
|
|
2180
2180
|
]
|
|
2181
2181
|
}],
|
|
2182
2182
|
/**
|
|
@@ -2191,14 +2191,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2191
2191
|
* @see https://tailwindcss.com/docs/brightness
|
|
2192
2192
|
*/
|
|
2193
2193
|
brightness: [{
|
|
2194
|
-
brightness: [q,
|
|
2194
|
+
brightness: [q, O, N]
|
|
2195
2195
|
}],
|
|
2196
2196
|
/**
|
|
2197
2197
|
* Contrast
|
|
2198
2198
|
* @see https://tailwindcss.com/docs/contrast
|
|
2199
2199
|
*/
|
|
2200
2200
|
contrast: [{
|
|
2201
|
-
contrast: [q,
|
|
2201
|
+
contrast: [q, O, N]
|
|
2202
2202
|
}],
|
|
2203
2203
|
/**
|
|
2204
2204
|
* Drop Shadow
|
|
@@ -2219,42 +2219,42 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2219
2219
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2220
2220
|
*/
|
|
2221
2221
|
"drop-shadow-color": [{
|
|
2222
|
-
"drop-shadow":
|
|
2222
|
+
"drop-shadow": A()
|
|
2223
2223
|
}],
|
|
2224
2224
|
/**
|
|
2225
2225
|
* Grayscale
|
|
2226
2226
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2227
2227
|
*/
|
|
2228
2228
|
grayscale: [{
|
|
2229
|
-
grayscale: ["", q,
|
|
2229
|
+
grayscale: ["", q, O, N]
|
|
2230
2230
|
}],
|
|
2231
2231
|
/**
|
|
2232
2232
|
* Hue Rotate
|
|
2233
2233
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2234
2234
|
*/
|
|
2235
2235
|
"hue-rotate": [{
|
|
2236
|
-
"hue-rotate": [q,
|
|
2236
|
+
"hue-rotate": [q, O, N]
|
|
2237
2237
|
}],
|
|
2238
2238
|
/**
|
|
2239
2239
|
* Invert
|
|
2240
2240
|
* @see https://tailwindcss.com/docs/invert
|
|
2241
2241
|
*/
|
|
2242
2242
|
invert: [{
|
|
2243
|
-
invert: ["", q,
|
|
2243
|
+
invert: ["", q, O, N]
|
|
2244
2244
|
}],
|
|
2245
2245
|
/**
|
|
2246
2246
|
* Saturate
|
|
2247
2247
|
* @see https://tailwindcss.com/docs/saturate
|
|
2248
2248
|
*/
|
|
2249
2249
|
saturate: [{
|
|
2250
|
-
saturate: [q,
|
|
2250
|
+
saturate: [q, O, N]
|
|
2251
2251
|
}],
|
|
2252
2252
|
/**
|
|
2253
2253
|
* Sepia
|
|
2254
2254
|
* @see https://tailwindcss.com/docs/sepia
|
|
2255
2255
|
*/
|
|
2256
2256
|
sepia: [{
|
|
2257
|
-
sepia: ["", q,
|
|
2257
|
+
sepia: ["", q, O, N]
|
|
2258
2258
|
}],
|
|
2259
2259
|
/**
|
|
2260
2260
|
* Backdrop Filter
|
|
@@ -2265,8 +2265,8 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2265
2265
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2266
2266
|
"",
|
|
2267
2267
|
"none",
|
|
2268
|
-
|
|
2269
|
-
|
|
2268
|
+
O,
|
|
2269
|
+
N
|
|
2270
2270
|
]
|
|
2271
2271
|
}],
|
|
2272
2272
|
/**
|
|
@@ -2281,56 +2281,56 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2281
2281
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2282
2282
|
*/
|
|
2283
2283
|
"backdrop-brightness": [{
|
|
2284
|
-
"backdrop-brightness": [q,
|
|
2284
|
+
"backdrop-brightness": [q, O, N]
|
|
2285
2285
|
}],
|
|
2286
2286
|
/**
|
|
2287
2287
|
* Backdrop Contrast
|
|
2288
2288
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2289
2289
|
*/
|
|
2290
2290
|
"backdrop-contrast": [{
|
|
2291
|
-
"backdrop-contrast": [q,
|
|
2291
|
+
"backdrop-contrast": [q, O, N]
|
|
2292
2292
|
}],
|
|
2293
2293
|
/**
|
|
2294
2294
|
* Backdrop Grayscale
|
|
2295
2295
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2296
2296
|
*/
|
|
2297
2297
|
"backdrop-grayscale": [{
|
|
2298
|
-
"backdrop-grayscale": ["", q,
|
|
2298
|
+
"backdrop-grayscale": ["", q, O, N]
|
|
2299
2299
|
}],
|
|
2300
2300
|
/**
|
|
2301
2301
|
* Backdrop Hue Rotate
|
|
2302
2302
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2303
2303
|
*/
|
|
2304
2304
|
"backdrop-hue-rotate": [{
|
|
2305
|
-
"backdrop-hue-rotate": [q,
|
|
2305
|
+
"backdrop-hue-rotate": [q, O, N]
|
|
2306
2306
|
}],
|
|
2307
2307
|
/**
|
|
2308
2308
|
* Backdrop Invert
|
|
2309
2309
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2310
2310
|
*/
|
|
2311
2311
|
"backdrop-invert": [{
|
|
2312
|
-
"backdrop-invert": ["", q,
|
|
2312
|
+
"backdrop-invert": ["", q, O, N]
|
|
2313
2313
|
}],
|
|
2314
2314
|
/**
|
|
2315
2315
|
* Backdrop Opacity
|
|
2316
2316
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2317
2317
|
*/
|
|
2318
2318
|
"backdrop-opacity": [{
|
|
2319
|
-
"backdrop-opacity": [q,
|
|
2319
|
+
"backdrop-opacity": [q, O, N]
|
|
2320
2320
|
}],
|
|
2321
2321
|
/**
|
|
2322
2322
|
* Backdrop Saturate
|
|
2323
2323
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2324
2324
|
*/
|
|
2325
2325
|
"backdrop-saturate": [{
|
|
2326
|
-
"backdrop-saturate": [q,
|
|
2326
|
+
"backdrop-saturate": [q, O, N]
|
|
2327
2327
|
}],
|
|
2328
2328
|
/**
|
|
2329
2329
|
* Backdrop Sepia
|
|
2330
2330
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2331
2331
|
*/
|
|
2332
2332
|
"backdrop-sepia": [{
|
|
2333
|
-
"backdrop-sepia": ["", q,
|
|
2333
|
+
"backdrop-sepia": ["", q, O, N]
|
|
2334
2334
|
}],
|
|
2335
2335
|
// --------------
|
|
2336
2336
|
// --- Tables ---
|
|
@@ -2347,21 +2347,21 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2347
2347
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2348
2348
|
*/
|
|
2349
2349
|
"border-spacing": [{
|
|
2350
|
-
"border-spacing":
|
|
2350
|
+
"border-spacing": C()
|
|
2351
2351
|
}],
|
|
2352
2352
|
/**
|
|
2353
2353
|
* Border Spacing X
|
|
2354
2354
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2355
2355
|
*/
|
|
2356
2356
|
"border-spacing-x": [{
|
|
2357
|
-
"border-spacing-x":
|
|
2357
|
+
"border-spacing-x": C()
|
|
2358
2358
|
}],
|
|
2359
2359
|
/**
|
|
2360
2360
|
* Border Spacing Y
|
|
2361
2361
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2362
2362
|
*/
|
|
2363
2363
|
"border-spacing-y": [{
|
|
2364
|
-
"border-spacing-y":
|
|
2364
|
+
"border-spacing-y": C()
|
|
2365
2365
|
}],
|
|
2366
2366
|
/**
|
|
2367
2367
|
* Table Layout
|
|
@@ -2385,7 +2385,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2385
2385
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2386
2386
|
*/
|
|
2387
2387
|
transition: [{
|
|
2388
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2388
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", O, N]
|
|
2389
2389
|
}],
|
|
2390
2390
|
/**
|
|
2391
2391
|
* Transition Behavior
|
|
@@ -2399,28 +2399,28 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2399
2399
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2400
2400
|
*/
|
|
2401
2401
|
duration: [{
|
|
2402
|
-
duration: [q, "initial",
|
|
2402
|
+
duration: [q, "initial", O, N]
|
|
2403
2403
|
}],
|
|
2404
2404
|
/**
|
|
2405
2405
|
* Transition Timing Function
|
|
2406
2406
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2407
2407
|
*/
|
|
2408
2408
|
ease: [{
|
|
2409
|
-
ease: ["linear", "initial",
|
|
2409
|
+
ease: ["linear", "initial", w, O, N]
|
|
2410
2410
|
}],
|
|
2411
2411
|
/**
|
|
2412
2412
|
* Transition Delay
|
|
2413
2413
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2414
2414
|
*/
|
|
2415
2415
|
delay: [{
|
|
2416
|
-
delay: [q,
|
|
2416
|
+
delay: [q, O, N]
|
|
2417
2417
|
}],
|
|
2418
2418
|
/**
|
|
2419
2419
|
* Animation
|
|
2420
2420
|
* @see https://tailwindcss.com/docs/animation
|
|
2421
2421
|
*/
|
|
2422
2422
|
animate: [{
|
|
2423
|
-
animate: ["none",
|
|
2423
|
+
animate: ["none", x, O, N]
|
|
2424
2424
|
}],
|
|
2425
2425
|
// ------------------
|
|
2426
2426
|
// --- Transforms ---
|
|
@@ -2437,7 +2437,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2437
2437
|
* @see https://tailwindcss.com/docs/perspective
|
|
2438
2438
|
*/
|
|
2439
2439
|
perspective: [{
|
|
2440
|
-
perspective: [p,
|
|
2440
|
+
perspective: [p, O, N]
|
|
2441
2441
|
}],
|
|
2442
2442
|
/**
|
|
2443
2443
|
* Perspective Origin
|
|
@@ -2533,7 +2533,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2533
2533
|
* @see https://tailwindcss.com/docs/transform
|
|
2534
2534
|
*/
|
|
2535
2535
|
transform: [{
|
|
2536
|
-
transform: [
|
|
2536
|
+
transform: [O, N, "", "none", "gpu", "cpu"]
|
|
2537
2537
|
}],
|
|
2538
2538
|
/**
|
|
2539
2539
|
* Transform Origin
|
|
@@ -2590,7 +2590,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2590
2590
|
* @see https://tailwindcss.com/docs/accent-color
|
|
2591
2591
|
*/
|
|
2592
2592
|
accent: [{
|
|
2593
|
-
accent:
|
|
2593
|
+
accent: A()
|
|
2594
2594
|
}],
|
|
2595
2595
|
/**
|
|
2596
2596
|
* Appearance
|
|
@@ -2604,7 +2604,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2604
2604
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2605
2605
|
*/
|
|
2606
2606
|
"caret-color": [{
|
|
2607
|
-
caret:
|
|
2607
|
+
caret: A()
|
|
2608
2608
|
}],
|
|
2609
2609
|
/**
|
|
2610
2610
|
* Color Scheme
|
|
@@ -2618,7 +2618,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2618
2618
|
* @see https://tailwindcss.com/docs/cursor
|
|
2619
2619
|
*/
|
|
2620
2620
|
cursor: [{
|
|
2621
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
2621
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", O, N]
|
|
2622
2622
|
}],
|
|
2623
2623
|
/**
|
|
2624
2624
|
* Field Sizing
|
|
@@ -2653,154 +2653,154 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2653
2653
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2654
2654
|
*/
|
|
2655
2655
|
"scroll-m": [{
|
|
2656
|
-
"scroll-m":
|
|
2656
|
+
"scroll-m": C()
|
|
2657
2657
|
}],
|
|
2658
2658
|
/**
|
|
2659
2659
|
* Scroll Margin Inline
|
|
2660
2660
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2661
2661
|
*/
|
|
2662
2662
|
"scroll-mx": [{
|
|
2663
|
-
"scroll-mx":
|
|
2663
|
+
"scroll-mx": C()
|
|
2664
2664
|
}],
|
|
2665
2665
|
/**
|
|
2666
2666
|
* Scroll Margin Block
|
|
2667
2667
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2668
2668
|
*/
|
|
2669
2669
|
"scroll-my": [{
|
|
2670
|
-
"scroll-my":
|
|
2670
|
+
"scroll-my": C()
|
|
2671
2671
|
}],
|
|
2672
2672
|
/**
|
|
2673
2673
|
* Scroll Margin Inline Start
|
|
2674
2674
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2675
2675
|
*/
|
|
2676
2676
|
"scroll-ms": [{
|
|
2677
|
-
"scroll-ms":
|
|
2677
|
+
"scroll-ms": C()
|
|
2678
2678
|
}],
|
|
2679
2679
|
/**
|
|
2680
2680
|
* Scroll Margin Inline End
|
|
2681
2681
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2682
2682
|
*/
|
|
2683
2683
|
"scroll-me": [{
|
|
2684
|
-
"scroll-me":
|
|
2684
|
+
"scroll-me": C()
|
|
2685
2685
|
}],
|
|
2686
2686
|
/**
|
|
2687
2687
|
* Scroll Margin Block Start
|
|
2688
2688
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2689
2689
|
*/
|
|
2690
2690
|
"scroll-mbs": [{
|
|
2691
|
-
"scroll-mbs":
|
|
2691
|
+
"scroll-mbs": C()
|
|
2692
2692
|
}],
|
|
2693
2693
|
/**
|
|
2694
2694
|
* Scroll Margin Block End
|
|
2695
2695
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2696
2696
|
*/
|
|
2697
2697
|
"scroll-mbe": [{
|
|
2698
|
-
"scroll-mbe":
|
|
2698
|
+
"scroll-mbe": C()
|
|
2699
2699
|
}],
|
|
2700
2700
|
/**
|
|
2701
2701
|
* Scroll Margin Top
|
|
2702
2702
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2703
2703
|
*/
|
|
2704
2704
|
"scroll-mt": [{
|
|
2705
|
-
"scroll-mt":
|
|
2705
|
+
"scroll-mt": C()
|
|
2706
2706
|
}],
|
|
2707
2707
|
/**
|
|
2708
2708
|
* Scroll Margin Right
|
|
2709
2709
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2710
2710
|
*/
|
|
2711
2711
|
"scroll-mr": [{
|
|
2712
|
-
"scroll-mr":
|
|
2712
|
+
"scroll-mr": C()
|
|
2713
2713
|
}],
|
|
2714
2714
|
/**
|
|
2715
2715
|
* Scroll Margin Bottom
|
|
2716
2716
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2717
2717
|
*/
|
|
2718
2718
|
"scroll-mb": [{
|
|
2719
|
-
"scroll-mb":
|
|
2719
|
+
"scroll-mb": C()
|
|
2720
2720
|
}],
|
|
2721
2721
|
/**
|
|
2722
2722
|
* Scroll Margin Left
|
|
2723
2723
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2724
2724
|
*/
|
|
2725
2725
|
"scroll-ml": [{
|
|
2726
|
-
"scroll-ml":
|
|
2726
|
+
"scroll-ml": C()
|
|
2727
2727
|
}],
|
|
2728
2728
|
/**
|
|
2729
2729
|
* Scroll Padding
|
|
2730
2730
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2731
2731
|
*/
|
|
2732
2732
|
"scroll-p": [{
|
|
2733
|
-
"scroll-p":
|
|
2733
|
+
"scroll-p": C()
|
|
2734
2734
|
}],
|
|
2735
2735
|
/**
|
|
2736
2736
|
* Scroll Padding Inline
|
|
2737
2737
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2738
2738
|
*/
|
|
2739
2739
|
"scroll-px": [{
|
|
2740
|
-
"scroll-px":
|
|
2740
|
+
"scroll-px": C()
|
|
2741
2741
|
}],
|
|
2742
2742
|
/**
|
|
2743
2743
|
* Scroll Padding Block
|
|
2744
2744
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2745
2745
|
*/
|
|
2746
2746
|
"scroll-py": [{
|
|
2747
|
-
"scroll-py":
|
|
2747
|
+
"scroll-py": C()
|
|
2748
2748
|
}],
|
|
2749
2749
|
/**
|
|
2750
2750
|
* Scroll Padding Inline Start
|
|
2751
2751
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2752
2752
|
*/
|
|
2753
2753
|
"scroll-ps": [{
|
|
2754
|
-
"scroll-ps":
|
|
2754
|
+
"scroll-ps": C()
|
|
2755
2755
|
}],
|
|
2756
2756
|
/**
|
|
2757
2757
|
* Scroll Padding Inline End
|
|
2758
2758
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2759
2759
|
*/
|
|
2760
2760
|
"scroll-pe": [{
|
|
2761
|
-
"scroll-pe":
|
|
2761
|
+
"scroll-pe": C()
|
|
2762
2762
|
}],
|
|
2763
2763
|
/**
|
|
2764
2764
|
* Scroll Padding Block Start
|
|
2765
2765
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2766
2766
|
*/
|
|
2767
2767
|
"scroll-pbs": [{
|
|
2768
|
-
"scroll-pbs":
|
|
2768
|
+
"scroll-pbs": C()
|
|
2769
2769
|
}],
|
|
2770
2770
|
/**
|
|
2771
2771
|
* Scroll Padding Block End
|
|
2772
2772
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2773
2773
|
*/
|
|
2774
2774
|
"scroll-pbe": [{
|
|
2775
|
-
"scroll-pbe":
|
|
2775
|
+
"scroll-pbe": C()
|
|
2776
2776
|
}],
|
|
2777
2777
|
/**
|
|
2778
2778
|
* Scroll Padding Top
|
|
2779
2779
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2780
2780
|
*/
|
|
2781
2781
|
"scroll-pt": [{
|
|
2782
|
-
"scroll-pt":
|
|
2782
|
+
"scroll-pt": C()
|
|
2783
2783
|
}],
|
|
2784
2784
|
/**
|
|
2785
2785
|
* Scroll Padding Right
|
|
2786
2786
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2787
2787
|
*/
|
|
2788
2788
|
"scroll-pr": [{
|
|
2789
|
-
"scroll-pr":
|
|
2789
|
+
"scroll-pr": C()
|
|
2790
2790
|
}],
|
|
2791
2791
|
/**
|
|
2792
2792
|
* Scroll Padding Bottom
|
|
2793
2793
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2794
2794
|
*/
|
|
2795
2795
|
"scroll-pb": [{
|
|
2796
|
-
"scroll-pb":
|
|
2796
|
+
"scroll-pb": C()
|
|
2797
2797
|
}],
|
|
2798
2798
|
/**
|
|
2799
2799
|
* Scroll Padding Left
|
|
2800
2800
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2801
2801
|
*/
|
|
2802
2802
|
"scroll-pl": [{
|
|
2803
|
-
"scroll-pl":
|
|
2803
|
+
"scroll-pl": C()
|
|
2804
2804
|
}],
|
|
2805
2805
|
/**
|
|
2806
2806
|
* Scroll Snap Align
|
|
@@ -2868,7 +2868,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2868
2868
|
* @see https://tailwindcss.com/docs/will-change
|
|
2869
2869
|
*/
|
|
2870
2870
|
"will-change": [{
|
|
2871
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2871
|
+
"will-change": ["auto", "scroll", "contents", "transform", O, N]
|
|
2872
2872
|
}],
|
|
2873
2873
|
// -----------
|
|
2874
2874
|
// --- SVG ---
|
|
@@ -2878,7 +2878,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2878
2878
|
* @see https://tailwindcss.com/docs/fill
|
|
2879
2879
|
*/
|
|
2880
2880
|
fill: [{
|
|
2881
|
-
fill: ["none", ...
|
|
2881
|
+
fill: ["none", ...A()]
|
|
2882
2882
|
}],
|
|
2883
2883
|
/**
|
|
2884
2884
|
* Stroke Width
|
|
@@ -2892,7 +2892,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2892
2892
|
* @see https://tailwindcss.com/docs/stroke
|
|
2893
2893
|
*/
|
|
2894
2894
|
stroke: [{
|
|
2895
|
-
stroke: ["none", ...
|
|
2895
|
+
stroke: ["none", ...A()]
|
|
2896
2896
|
}],
|
|
2897
2897
|
// ---------------------
|
|
2898
2898
|
// --- Accessibility ---
|
|
@@ -2961,7 +2961,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2961
2961
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2962
2962
|
};
|
|
2963
2963
|
}, Ga = /* @__PURE__ */ ya(Ba);
|
|
2964
|
-
function
|
|
2964
|
+
function F(...e) {
|
|
2965
2965
|
return Ga(Xr(e));
|
|
2966
2966
|
}
|
|
2967
2967
|
const Wa = Vn(
|
|
@@ -3007,7 +3007,7 @@ function vt({
|
|
|
3007
3007
|
"data-slot": "button",
|
|
3008
3008
|
"data-variant": n,
|
|
3009
3009
|
"data-size": t,
|
|
3010
|
-
className:
|
|
3010
|
+
className: F(Wa({ variant: n, size: t, className: e })),
|
|
3011
3011
|
...o
|
|
3012
3012
|
}
|
|
3013
3013
|
);
|
|
@@ -3356,15 +3356,15 @@ var Es = "DismissableLayer", Rn = "dismissableLayer.update", _s = "dismissableLa
|
|
|
3356
3356
|
onInteractOutside: a,
|
|
3357
3357
|
onDismiss: s,
|
|
3358
3358
|
...l
|
|
3359
|
-
} = e, u = g.useContext(po), [c, m] = g.useState(null), d = c?.ownerDocument ?? globalThis?.document, [, f] = g.useState({}), v = Ke(n, (
|
|
3360
|
-
const
|
|
3361
|
-
!
|
|
3362
|
-
}, d),
|
|
3363
|
-
const
|
|
3364
|
-
[...u.branches].some((
|
|
3359
|
+
} = e, u = g.useContext(po), [c, m] = g.useState(null), d = c?.ownerDocument ?? globalThis?.document, [, f] = g.useState({}), v = Ke(n, (R) => m(R)), p = Array.from(u.layers), [S] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), w = p.indexOf(S), x = c ? p.indexOf(c) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= w, _ = Fs((R) => {
|
|
3360
|
+
const C = R.target, E = [...u.branches].some((I) => I.contains(C));
|
|
3361
|
+
!b || E || (o?.(R), a?.(R), R.defaultPrevented || s?.());
|
|
3362
|
+
}, d), k = Ds((R) => {
|
|
3363
|
+
const C = R.target;
|
|
3364
|
+
[...u.branches].some((I) => I.contains(C)) || (i?.(R), a?.(R), R.defaultPrevented || s?.());
|
|
3365
3365
|
}, d);
|
|
3366
|
-
return Rs((
|
|
3367
|
-
|
|
3366
|
+
return Rs((R) => {
|
|
3367
|
+
x === u.layers.size - 1 && (r?.(R), !R.defaultPrevented && s && (R.preventDefault(), s()));
|
|
3368
3368
|
}, d), g.useEffect(() => {
|
|
3369
3369
|
if (c)
|
|
3370
3370
|
return t && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (hr = d.body.style.pointerEvents, d.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(c)), u.layers.add(c), vr(), () => {
|
|
@@ -3373,19 +3373,19 @@ var Es = "DismissableLayer", Rn = "dismissableLayer.update", _s = "dismissableLa
|
|
|
3373
3373
|
}, [c, d, t, u]), g.useEffect(() => () => {
|
|
3374
3374
|
c && (u.layers.delete(c), u.layersWithOutsidePointerEventsDisabled.delete(c), vr());
|
|
3375
3375
|
}, [c, u]), g.useEffect(() => {
|
|
3376
|
-
const
|
|
3377
|
-
return document.addEventListener(Rn,
|
|
3376
|
+
const R = () => f({});
|
|
3377
|
+
return document.addEventListener(Rn, R), () => document.removeEventListener(Rn, R);
|
|
3378
3378
|
}, []), /* @__PURE__ */ h(
|
|
3379
3379
|
ue.div,
|
|
3380
3380
|
{
|
|
3381
3381
|
...l,
|
|
3382
3382
|
ref: v,
|
|
3383
3383
|
style: {
|
|
3384
|
-
pointerEvents:
|
|
3384
|
+
pointerEvents: y ? b ? "auto" : "none" : void 0,
|
|
3385
3385
|
...e.style
|
|
3386
3386
|
},
|
|
3387
|
-
onFocusCapture: Ne(e.onFocusCapture,
|
|
3388
|
-
onBlurCapture: Ne(e.onBlurCapture,
|
|
3387
|
+
onFocusCapture: Ne(e.onFocusCapture, k.onFocusCapture),
|
|
3388
|
+
onBlurCapture: Ne(e.onBlurCapture, k.onBlurCapture),
|
|
3389
3389
|
onPointerDownCapture: Ne(
|
|
3390
3390
|
e.onPointerDownCapture,
|
|
3391
3391
|
_.onPointerDownCapture
|
|
@@ -3476,23 +3476,23 @@ var Yt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", br
|
|
|
3476
3476
|
}).current;
|
|
3477
3477
|
g.useEffect(() => {
|
|
3478
3478
|
if (r) {
|
|
3479
|
-
let p = function(
|
|
3479
|
+
let p = function(y) {
|
|
3480
3480
|
if (f.paused || !s) return;
|
|
3481
|
-
const
|
|
3482
|
-
s.contains(
|
|
3483
|
-
}, S = function(
|
|
3481
|
+
const b = y.target;
|
|
3482
|
+
s.contains(b) ? m.current = b : De(m.current, { select: !0 });
|
|
3483
|
+
}, S = function(y) {
|
|
3484
3484
|
if (f.paused || !s) return;
|
|
3485
|
-
const
|
|
3486
|
-
|
|
3487
|
-
},
|
|
3485
|
+
const b = y.relatedTarget;
|
|
3486
|
+
b !== null && (s.contains(b) || De(m.current, { select: !0 }));
|
|
3487
|
+
}, w = function(y) {
|
|
3488
3488
|
if (document.activeElement === document.body)
|
|
3489
|
-
for (const _ of
|
|
3489
|
+
for (const _ of y)
|
|
3490
3490
|
_.removedNodes.length > 0 && De(s);
|
|
3491
3491
|
};
|
|
3492
3492
|
document.addEventListener("focusin", p), document.addEventListener("focusout", S);
|
|
3493
|
-
const
|
|
3494
|
-
return s &&
|
|
3495
|
-
document.removeEventListener("focusin", p), document.removeEventListener("focusout", S),
|
|
3493
|
+
const x = new MutationObserver(w);
|
|
3494
|
+
return s && x.observe(s, { childList: !0, subtree: !0 }), () => {
|
|
3495
|
+
document.removeEventListener("focusin", p), document.removeEventListener("focusout", S), x.disconnect();
|
|
3496
3496
|
};
|
|
3497
3497
|
}
|
|
3498
3498
|
}, [r, s, f.paused]), g.useEffect(() => {
|
|
@@ -3500,13 +3500,13 @@ var Yt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", br
|
|
|
3500
3500
|
Sr.add(f);
|
|
3501
3501
|
const p = document.activeElement;
|
|
3502
3502
|
if (!s.contains(p)) {
|
|
3503
|
-
const
|
|
3504
|
-
s.addEventListener(Yt, u), s.dispatchEvent(
|
|
3503
|
+
const w = new CustomEvent(Yt, br);
|
|
3504
|
+
s.addEventListener(Yt, u), s.dispatchEvent(w), w.defaultPrevented || (Ns(zs(wo(s)), { select: !0 }), document.activeElement === p && De(s));
|
|
3505
3505
|
}
|
|
3506
3506
|
return () => {
|
|
3507
3507
|
s.removeEventListener(Yt, u), setTimeout(() => {
|
|
3508
|
-
const
|
|
3509
|
-
s.addEventListener(Zt, c), s.dispatchEvent(
|
|
3508
|
+
const w = new CustomEvent(Zt, br);
|
|
3509
|
+
s.addEventListener(Zt, c), s.dispatchEvent(w), w.defaultPrevented || De(p ?? document.body, { select: !0 }), s.removeEventListener(Zt, c), Sr.remove(f);
|
|
3510
3510
|
}, 0);
|
|
3511
3511
|
};
|
|
3512
3512
|
}
|
|
@@ -3514,10 +3514,10 @@ var Yt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", br
|
|
|
3514
3514
|
const v = g.useCallback(
|
|
3515
3515
|
(p) => {
|
|
3516
3516
|
if (!t && !r || f.paused) return;
|
|
3517
|
-
const S = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey,
|
|
3518
|
-
if (S &&
|
|
3519
|
-
const
|
|
3520
|
-
|
|
3517
|
+
const S = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, w = document.activeElement;
|
|
3518
|
+
if (S && w) {
|
|
3519
|
+
const x = p.currentTarget, [y, b] = Os(x);
|
|
3520
|
+
y && b ? !p.shiftKey && w === b ? (p.preventDefault(), t && De(y, { select: !0 })) : p.shiftKey && w === y && (p.preventDefault(), t && De(b, { select: !0 })) : w === x && p.preventDefault();
|
|
3521
3521
|
}
|
|
3522
3522
|
},
|
|
3523
3523
|
[t, r, f.paused]
|
|
@@ -3819,12 +3819,12 @@ var xo = Js(), en = function() {
|
|
|
3819
3819
|
onScrollCapture: en,
|
|
3820
3820
|
onWheelCapture: en,
|
|
3821
3821
|
onTouchMoveCapture: en
|
|
3822
|
-
}), o = r[0], i = r[1], a = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, c = e.enabled, m = e.shards, d = e.sideCar, f = e.noRelative, v = e.noIsolation, p = e.inert, S = e.allowPinchZoom,
|
|
3822
|
+
}), o = r[0], i = r[1], a = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, c = e.enabled, m = e.shards, d = e.sideCar, f = e.noRelative, v = e.noIsolation, p = e.inert, S = e.allowPinchZoom, w = e.as, x = w === void 0 ? "div" : w, y = e.gapMode, b = yo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), _ = d, k = Xs([t, n]), R = xe(xe({}, b), o);
|
|
3823
3823
|
return g.createElement(
|
|
3824
3824
|
g.Fragment,
|
|
3825
3825
|
null,
|
|
3826
|
-
c && g.createElement(_, { sideCar: xo, removeScrollBar: u, shards: m, noRelative: f, noIsolation: v, inert: p, setCallbacks: i, allowPinchZoom: !!S, lockRef: t, gapMode:
|
|
3827
|
-
a ? g.cloneElement(g.Children.only(s), xe(xe({},
|
|
3826
|
+
c && g.createElement(_, { sideCar: xo, removeScrollBar: u, shards: m, noRelative: f, noIsolation: v, inert: p, setCallbacks: i, allowPinchZoom: !!S, lockRef: t, gapMode: y }),
|
|
3827
|
+
a ? g.cloneElement(g.Children.only(s), xe(xe({}, R), { ref: k })) : g.createElement(x, xe({}, R, { className: l, ref: k }), s)
|
|
3828
3828
|
);
|
|
3829
3829
|
});
|
|
3830
3830
|
Wt.defaultProps = {
|
|
@@ -4026,10 +4026,10 @@ var Ze = En ? { passive: !1 } : !1, gl = function(e) {
|
|
|
4026
4026
|
do {
|
|
4027
4027
|
if (!s)
|
|
4028
4028
|
break;
|
|
4029
|
-
var f = Mo(e, s), v = f[0], p = f[1], S = f[2],
|
|
4030
|
-
(v ||
|
|
4031
|
-
var
|
|
4032
|
-
s =
|
|
4029
|
+
var f = Mo(e, s), v = f[0], p = f[1], S = f[2], w = p - S - i * v;
|
|
4030
|
+
(v || w) && _o(e, s) && (m += w, d += v);
|
|
4031
|
+
var x = s.parentNode;
|
|
4032
|
+
s = x && x.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? x.host : x;
|
|
4033
4033
|
} while (
|
|
4034
4034
|
// portaled content
|
|
4035
4035
|
!l && s !== document.body || // self content
|
|
@@ -4070,43 +4070,43 @@ function xl(e) {
|
|
|
4070
4070
|
var s = g.useCallback(function(p, S) {
|
|
4071
4071
|
if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
|
|
4072
4072
|
return !a.current.allowPinchZoom;
|
|
4073
|
-
var
|
|
4074
|
-
if ("touches" in p &&
|
|
4073
|
+
var w = Mt(p), x = t.current, y = "deltaX" in p ? p.deltaX : x[0] - w[0], b = "deltaY" in p ? p.deltaY : x[1] - w[1], _, k = p.target, R = Math.abs(y) > Math.abs(b) ? "h" : "v";
|
|
4074
|
+
if ("touches" in p && R === "h" && k.type === "range")
|
|
4075
4075
|
return !1;
|
|
4076
|
-
var
|
|
4077
|
-
if (
|
|
4076
|
+
var C = window.getSelection(), E = C && C.anchorNode, I = E ? E === k || E.contains(k) : !1;
|
|
4077
|
+
if (I)
|
|
4078
4078
|
return !1;
|
|
4079
|
-
var
|
|
4080
|
-
if (!
|
|
4079
|
+
var T = Er(R, k);
|
|
4080
|
+
if (!T)
|
|
4081
4081
|
return !0;
|
|
4082
|
-
if (
|
|
4082
|
+
if (T ? _ = R : (_ = R === "v" ? "h" : "v", T = Er(R, k)), !T)
|
|
4083
4083
|
return !1;
|
|
4084
|
-
if (!r.current && "changedTouches" in p && (
|
|
4084
|
+
if (!r.current && "changedTouches" in p && (y || b) && (r.current = _), !_)
|
|
4085
4085
|
return !0;
|
|
4086
|
-
var
|
|
4087
|
-
return wl(
|
|
4086
|
+
var H = r.current || _;
|
|
4087
|
+
return wl(H, S, p, H === "h" ? y : b);
|
|
4088
4088
|
}, []), l = g.useCallback(function(p) {
|
|
4089
4089
|
var S = p;
|
|
4090
4090
|
if (!(!Je.length || Je[Je.length - 1] !== i)) {
|
|
4091
|
-
var
|
|
4092
|
-
return _.name === S.type && (_.target === S.target || S.target === _.shadowParent) && Sl(_.delta,
|
|
4091
|
+
var w = "deltaY" in S ? _r(S) : Mt(S), x = n.current.filter(function(_) {
|
|
4092
|
+
return _.name === S.type && (_.target === S.target || S.target === _.shadowParent) && Sl(_.delta, w);
|
|
4093
4093
|
})[0];
|
|
4094
|
-
if (
|
|
4094
|
+
if (x && x.should) {
|
|
4095
4095
|
S.cancelable && S.preventDefault();
|
|
4096
4096
|
return;
|
|
4097
4097
|
}
|
|
4098
|
-
if (!
|
|
4099
|
-
var
|
|
4098
|
+
if (!x) {
|
|
4099
|
+
var y = (a.current.shards || []).map(Mr).filter(Boolean).filter(function(_) {
|
|
4100
4100
|
return _.contains(S.target);
|
|
4101
|
-
}),
|
|
4102
|
-
|
|
4101
|
+
}), b = y.length > 0 ? s(S, y[0]) : !a.current.noIsolation;
|
|
4102
|
+
b && S.cancelable && S.preventDefault();
|
|
4103
4103
|
}
|
|
4104
4104
|
}
|
|
4105
|
-
}, []), u = g.useCallback(function(p, S,
|
|
4106
|
-
var
|
|
4107
|
-
n.current.push(
|
|
4108
|
-
n.current = n.current.filter(function(
|
|
4109
|
-
return
|
|
4105
|
+
}, []), u = g.useCallback(function(p, S, w, x) {
|
|
4106
|
+
var y = { name: p, delta: S, target: w, should: x, shadowParent: Rl(w) };
|
|
4107
|
+
n.current.push(y), setTimeout(function() {
|
|
4108
|
+
n.current = n.current.filter(function(b) {
|
|
4109
|
+
return b !== y;
|
|
4110
4110
|
});
|
|
4111
4111
|
}, 1);
|
|
4112
4112
|
}, []), c = g.useCallback(function(p) {
|
|
@@ -4176,8 +4176,8 @@ var _l = function(e) {
|
|
|
4176
4176
|
try {
|
|
4177
4177
|
var f = d.getAttribute(r), v = f !== null && f !== "false", p = (Qe.get(d) || 0) + 1, S = (i.get(d) || 0) + 1;
|
|
4178
4178
|
Qe.set(d, p), i.set(d, S), a.push(d), p === 1 && v && It.set(d, !0), S === 1 && d.setAttribute(t, "true"), v || d.setAttribute(r, "true");
|
|
4179
|
-
} catch (
|
|
4180
|
-
console.error("aria-hidden: cannot operate on ", d,
|
|
4179
|
+
} catch (w) {
|
|
4180
|
+
console.error("aria-hidden: cannot operate on ", d, w);
|
|
4181
4181
|
}
|
|
4182
4182
|
});
|
|
4183
4183
|
};
|
|
@@ -4333,7 +4333,7 @@ var Al = g.forwardRef(
|
|
|
4333
4333
|
), To = g.forwardRef(
|
|
4334
4334
|
(e, n) => {
|
|
4335
4335
|
const { __scopeDialog: t, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...a } = e, s = ye(je, t), l = g.useRef(null), u = Ke(n, l);
|
|
4336
|
-
return Gs(), /* @__PURE__ */
|
|
4336
|
+
return Gs(), /* @__PURE__ */ W(yn, { children: [
|
|
4337
4337
|
/* @__PURE__ */ h(
|
|
4338
4338
|
bo,
|
|
4339
4339
|
{
|
|
@@ -4357,7 +4357,7 @@ var Al = g.forwardRef(
|
|
|
4357
4357
|
)
|
|
4358
4358
|
}
|
|
4359
4359
|
),
|
|
4360
|
-
/* @__PURE__ */
|
|
4360
|
+
/* @__PURE__ */ W(yn, { children: [
|
|
4361
4361
|
/* @__PURE__ */ h(zl, { titleId: s.titleId }),
|
|
4362
4362
|
/* @__PURE__ */ h(Ll, { contentRef: l, descriptionId: s.descriptionId })
|
|
4363
4363
|
] })
|
|
@@ -4420,7 +4420,7 @@ function Gl(e) {
|
|
|
4420
4420
|
let n = document.head || document.getElementsByTagName("head")[0], t = document.createElement("style");
|
|
4421
4421
|
t.type = "text/css", n.appendChild(t), t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
4422
4422
|
}
|
|
4423
|
-
const Ko =
|
|
4423
|
+
const Ko = P.createContext({
|
|
4424
4424
|
drawerRef: {
|
|
4425
4425
|
current: null
|
|
4426
4426
|
},
|
|
@@ -4468,7 +4468,7 @@ const Ko = D.createContext({
|
|
|
4468
4468
|
container: null,
|
|
4469
4469
|
autoFocus: !1
|
|
4470
4470
|
}), wt = () => {
|
|
4471
|
-
const e =
|
|
4471
|
+
const e = P.useContext(Ko);
|
|
4472
4472
|
if (!e)
|
|
4473
4473
|
throw new Error("useDrawerContext must be used within a Drawer.Root");
|
|
4474
4474
|
return e;
|
|
@@ -4683,14 +4683,14 @@ const re = {
|
|
|
4683
4683
|
]
|
|
4684
4684
|
}, Qo = 0.4, iu = 0.25, au = 100, ei = 8, Be = 16, Mn = 26, sn = "vaul-dragging";
|
|
4685
4685
|
function ti(e) {
|
|
4686
|
-
const n =
|
|
4687
|
-
return
|
|
4686
|
+
const n = P.useRef(e);
|
|
4687
|
+
return P.useEffect(() => {
|
|
4688
4688
|
n.current = e;
|
|
4689
|
-
}),
|
|
4689
|
+
}), P.useMemo(() => (...t) => n.current == null ? void 0 : n.current.call(n, ...t), []);
|
|
4690
4690
|
}
|
|
4691
4691
|
function su({ defaultProp: e, onChange: n }) {
|
|
4692
|
-
const t =
|
|
4693
|
-
return
|
|
4692
|
+
const t = P.useState(e), [r] = t, o = P.useRef(r), i = ti(n);
|
|
4693
|
+
return P.useEffect(() => {
|
|
4694
4694
|
o.current !== r && (i(r), o.current = r);
|
|
4695
4695
|
}, [
|
|
4696
4696
|
r,
|
|
@@ -4703,7 +4703,7 @@ function ni({ prop: e, defaultProp: n, onChange: t = () => {
|
|
|
4703
4703
|
const [r, o] = su({
|
|
4704
4704
|
defaultProp: n,
|
|
4705
4705
|
onChange: t
|
|
4706
|
-
}), i = e !== void 0, a = i ? e : r, s = ti(t), l =
|
|
4706
|
+
}), i = e !== void 0, a = i ? e : r, s = ti(t), l = P.useCallback((u) => {
|
|
4707
4707
|
if (i) {
|
|
4708
4708
|
const m = typeof u == "function" ? u(e) : u;
|
|
4709
4709
|
m !== e && s(m);
|
|
@@ -4725,30 +4725,30 @@ function lu({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: t,
|
|
|
4725
4725
|
prop: e,
|
|
4726
4726
|
defaultProp: t?.[0],
|
|
4727
4727
|
onChange: n
|
|
4728
|
-
}), [d, f] =
|
|
4728
|
+
}), [d, f] = P.useState(typeof window < "u" ? {
|
|
4729
4729
|
innerWidth: window.innerWidth,
|
|
4730
4730
|
innerHeight: window.innerHeight
|
|
4731
4731
|
} : void 0);
|
|
4732
|
-
|
|
4733
|
-
function
|
|
4732
|
+
P.useEffect(() => {
|
|
4733
|
+
function R() {
|
|
4734
4734
|
f({
|
|
4735
4735
|
innerWidth: window.innerWidth,
|
|
4736
4736
|
innerHeight: window.innerHeight
|
|
4737
4737
|
});
|
|
4738
4738
|
}
|
|
4739
|
-
return window.addEventListener("resize",
|
|
4739
|
+
return window.addEventListener("resize", R), () => window.removeEventListener("resize", R);
|
|
4740
4740
|
}, []);
|
|
4741
|
-
const v =
|
|
4741
|
+
const v = P.useMemo(() => c === t?.[t.length - 1] || null, [
|
|
4742
4742
|
t,
|
|
4743
4743
|
c
|
|
4744
|
-
]), p =
|
|
4745
|
-
var
|
|
4746
|
-
return (
|
|
4744
|
+
]), p = P.useMemo(() => {
|
|
4745
|
+
var R;
|
|
4746
|
+
return (R = t?.findIndex((C) => C === c)) != null ? R : null;
|
|
4747
4747
|
}, [
|
|
4748
4748
|
t,
|
|
4749
4749
|
c
|
|
4750
|
-
]), S = t && t.length > 0 && (i || i === 0) && !Number.isNaN(i) && t[i] === c || !t,
|
|
4751
|
-
const
|
|
4750
|
+
]), S = t && t.length > 0 && (i || i === 0) && !Number.isNaN(i) && t[i] === c || !t, w = P.useMemo(() => {
|
|
4751
|
+
const R = l ? {
|
|
4752
4752
|
width: l.getBoundingClientRect().width,
|
|
4753
4753
|
height: l.getBoundingClientRect().height
|
|
4754
4754
|
} : typeof window < "u" ? {
|
|
@@ -4758,121 +4758,121 @@ function lu({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: t,
|
|
|
4758
4758
|
width: 0,
|
|
4759
4759
|
height: 0
|
|
4760
4760
|
};
|
|
4761
|
-
var
|
|
4762
|
-
return (
|
|
4763
|
-
const
|
|
4764
|
-
let
|
|
4765
|
-
if (
|
|
4766
|
-
const
|
|
4767
|
-
return d ? s === "bottom" ?
|
|
4761
|
+
var C;
|
|
4762
|
+
return (C = t?.map((E) => {
|
|
4763
|
+
const I = typeof E == "string";
|
|
4764
|
+
let T = 0;
|
|
4765
|
+
if (I && (T = parseInt(E, 10)), ae(s)) {
|
|
4766
|
+
const $ = I ? T : d ? E * R.height : 0;
|
|
4767
|
+
return d ? s === "bottom" ? R.height - $ : -R.height + $ : $;
|
|
4768
4768
|
}
|
|
4769
|
-
const
|
|
4770
|
-
return d ? s === "right" ?
|
|
4771
|
-
})) != null ?
|
|
4769
|
+
const H = I ? T : d ? E * R.width : 0;
|
|
4770
|
+
return d ? s === "right" ? R.width - H : -R.width + H : H;
|
|
4771
|
+
})) != null ? C : [];
|
|
4772
4772
|
}, [
|
|
4773
4773
|
t,
|
|
4774
4774
|
d,
|
|
4775
4775
|
l
|
|
4776
|
-
]),
|
|
4777
|
-
|
|
4776
|
+
]), x = P.useMemo(() => p !== null ? w?.[p] : null, [
|
|
4777
|
+
w,
|
|
4778
4778
|
p
|
|
4779
|
-
]),
|
|
4780
|
-
var
|
|
4781
|
-
const
|
|
4782
|
-
a(
|
|
4779
|
+
]), y = P.useCallback((R) => {
|
|
4780
|
+
var C;
|
|
4781
|
+
const E = (C = w?.findIndex((I) => I === R)) != null ? C : null;
|
|
4782
|
+
a(E), le(r.current, {
|
|
4783
4783
|
transition: `transform ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`,
|
|
4784
|
-
transform: ae(s) ? `translate3d(0, ${
|
|
4785
|
-
}),
|
|
4784
|
+
transform: ae(s) ? `translate3d(0, ${R}px, 0)` : `translate3d(${R}px, 0, 0)`
|
|
4785
|
+
}), w && E !== w.length - 1 && i !== void 0 && E !== i && E < i ? le(o.current, {
|
|
4786
4786
|
transition: `opacity ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`,
|
|
4787
4787
|
opacity: "0"
|
|
4788
4788
|
}) : le(o.current, {
|
|
4789
4789
|
transition: `opacity ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`,
|
|
4790
4790
|
opacity: "1"
|
|
4791
|
-
}), m(t?.[Math.max(
|
|
4791
|
+
}), m(t?.[Math.max(E, 0)]);
|
|
4792
4792
|
}, [
|
|
4793
4793
|
r.current,
|
|
4794
4794
|
t,
|
|
4795
|
-
|
|
4795
|
+
w,
|
|
4796
4796
|
i,
|
|
4797
4797
|
o,
|
|
4798
4798
|
m
|
|
4799
4799
|
]);
|
|
4800
|
-
|
|
4800
|
+
P.useEffect(() => {
|
|
4801
4801
|
if (c || e) {
|
|
4802
|
-
var
|
|
4803
|
-
const
|
|
4804
|
-
|
|
4802
|
+
var R;
|
|
4803
|
+
const C = (R = t?.findIndex((E) => E === e || E === c)) != null ? R : -1;
|
|
4804
|
+
w && C !== -1 && typeof w[C] == "number" && y(w[C]);
|
|
4805
4805
|
}
|
|
4806
4806
|
}, [
|
|
4807
4807
|
c,
|
|
4808
4808
|
e,
|
|
4809
4809
|
t,
|
|
4810
|
-
|
|
4811
|
-
|
|
4810
|
+
w,
|
|
4811
|
+
y
|
|
4812
4812
|
]);
|
|
4813
|
-
function
|
|
4813
|
+
function b({ draggedDistance: R, closeDrawer: C, velocity: E, dismissible: I }) {
|
|
4814
4814
|
if (i === void 0) return;
|
|
4815
|
-
const
|
|
4816
|
-
if (
|
|
4815
|
+
const T = s === "bottom" || s === "right" ? (x ?? 0) - R : (x ?? 0) + R, H = p === i - 1, $ = p === 0, ne = R > 0;
|
|
4816
|
+
if (H && le(o.current, {
|
|
4817
4817
|
transition: `opacity ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`
|
|
4818
|
-
}), !u &&
|
|
4819
|
-
|
|
4818
|
+
}), !u && E > 2 && !ne) {
|
|
4819
|
+
I ? C() : y(w[0]);
|
|
4820
4820
|
return;
|
|
4821
4821
|
}
|
|
4822
|
-
if (!u &&
|
|
4823
|
-
w
|
|
4822
|
+
if (!u && E > 2 && ne && w && t) {
|
|
4823
|
+
y(w[t.length - 1]);
|
|
4824
4824
|
return;
|
|
4825
4825
|
}
|
|
4826
|
-
const J =
|
|
4827
|
-
if (
|
|
4826
|
+
const J = w?.reduce((ee, ce) => typeof ee != "number" || typeof ce != "number" ? ee : Math.abs(ce - T) < Math.abs(ee - T) ? ce : ee), Q = ae(s) ? window.innerHeight : window.innerWidth;
|
|
4827
|
+
if (E > Qo && Math.abs(R) < Q * 0.4) {
|
|
4828
4828
|
const ee = ne ? 1 : -1;
|
|
4829
4829
|
if (ee > 0 && v && t) {
|
|
4830
|
-
w
|
|
4830
|
+
y(w[t.length - 1]);
|
|
4831
4831
|
return;
|
|
4832
4832
|
}
|
|
4833
|
-
if (
|
|
4834
|
-
w
|
|
4833
|
+
if ($ && ee < 0 && I && C(), p === null) return;
|
|
4834
|
+
y(w[p + ee]);
|
|
4835
4835
|
return;
|
|
4836
4836
|
}
|
|
4837
|
-
|
|
4837
|
+
y(J);
|
|
4838
4838
|
}
|
|
4839
|
-
function _({ draggedDistance:
|
|
4840
|
-
if (
|
|
4841
|
-
const
|
|
4842
|
-
(s === "bottom" || s === "right") &&
|
|
4843
|
-
transform: ae(s) ? `translate3d(0, ${
|
|
4839
|
+
function _({ draggedDistance: R }) {
|
|
4840
|
+
if (x === null) return;
|
|
4841
|
+
const C = s === "bottom" || s === "right" ? x - R : x + R;
|
|
4842
|
+
(s === "bottom" || s === "right") && C < w[w.length - 1] || (s === "top" || s === "left") && C > w[w.length - 1] || le(r.current, {
|
|
4843
|
+
transform: ae(s) ? `translate3d(0, ${C}px, 0)` : `translate3d(${C}px, 0, 0)`
|
|
4844
4844
|
});
|
|
4845
4845
|
}
|
|
4846
|
-
function
|
|
4847
|
-
if (!t || typeof p != "number" || !
|
|
4848
|
-
const
|
|
4849
|
-
if (p >= i &&
|
|
4846
|
+
function k(R, C) {
|
|
4847
|
+
if (!t || typeof p != "number" || !w || i === void 0) return null;
|
|
4848
|
+
const E = p === i - 1;
|
|
4849
|
+
if (p >= i && C)
|
|
4850
4850
|
return 0;
|
|
4851
|
-
if (
|
|
4852
|
-
if (!S && !
|
|
4853
|
-
const
|
|
4854
|
-
return
|
|
4851
|
+
if (E && !C) return 1;
|
|
4852
|
+
if (!S && !E) return null;
|
|
4853
|
+
const T = E ? p + 1 : p - 1, H = E ? w[T] - w[T - 1] : w[T + 1] - w[T], $ = R / Math.abs(H);
|
|
4854
|
+
return E ? 1 - $ : $;
|
|
4855
4855
|
}
|
|
4856
4856
|
return {
|
|
4857
4857
|
isLastSnapPoint: v,
|
|
4858
4858
|
activeSnapPoint: c,
|
|
4859
4859
|
shouldFade: S,
|
|
4860
|
-
getPercentageDragged:
|
|
4860
|
+
getPercentageDragged: k,
|
|
4861
4861
|
setActiveSnapPoint: m,
|
|
4862
4862
|
activeSnapPointIndex: p,
|
|
4863
|
-
onRelease:
|
|
4863
|
+
onRelease: b,
|
|
4864
4864
|
onDrag: _,
|
|
4865
|
-
snapPointsOffset:
|
|
4865
|
+
snapPointsOffset: w
|
|
4866
4866
|
};
|
|
4867
4867
|
}
|
|
4868
4868
|
const uu = () => () => {
|
|
4869
4869
|
};
|
|
4870
4870
|
function cu() {
|
|
4871
|
-
const { direction: e, isOpen: n, shouldScaleBackground: t, setBackgroundColorOnScale: r, noBodyStyles: o } = wt(), i =
|
|
4871
|
+
const { direction: e, isOpen: n, shouldScaleBackground: t, setBackgroundColorOnScale: r, noBodyStyles: o } = wt(), i = P.useRef(null), a = Ki(() => document.body.style.backgroundColor, []);
|
|
4872
4872
|
function s() {
|
|
4873
4873
|
return (window.innerWidth - Mn) / window.innerWidth;
|
|
4874
4874
|
}
|
|
4875
|
-
|
|
4875
|
+
P.useEffect(() => {
|
|
4876
4876
|
if (n && t) {
|
|
4877
4877
|
i.current && clearTimeout(i.current);
|
|
4878
4878
|
const l = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
|
|
@@ -4908,7 +4908,7 @@ function cu() {
|
|
|
4908
4908
|
}
|
|
4909
4909
|
let ct = null;
|
|
4910
4910
|
function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: i }) {
|
|
4911
|
-
const [a, s] =
|
|
4911
|
+
const [a, s] = P.useState(() => typeof window < "u" ? window.location.href : ""), l = P.useRef(0), u = P.useCallback(() => {
|
|
4912
4912
|
if (Ir() && ct === null && e && !i) {
|
|
4913
4913
|
ct = {
|
|
4914
4914
|
position: document.body.style.position,
|
|
@@ -4930,7 +4930,7 @@ function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRes
|
|
|
4930
4930
|
}
|
|
4931
4931
|
}, [
|
|
4932
4932
|
e
|
|
4933
|
-
]), c =
|
|
4933
|
+
]), c = P.useCallback(() => {
|
|
4934
4934
|
if (Ir() && ct !== null && !i) {
|
|
4935
4935
|
const m = -parseInt(document.body.style.top, 10), d = -parseInt(document.body.style.left, 10);
|
|
4936
4936
|
Object.assign(document.body.style, ct), window.requestAnimationFrame(() => {
|
|
@@ -4944,14 +4944,14 @@ function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRes
|
|
|
4944
4944
|
}, [
|
|
4945
4945
|
a
|
|
4946
4946
|
]);
|
|
4947
|
-
return
|
|
4947
|
+
return P.useEffect(() => {
|
|
4948
4948
|
function m() {
|
|
4949
4949
|
l.current = window.scrollY;
|
|
4950
4950
|
}
|
|
4951
4951
|
return m(), window.addEventListener("scroll", m), () => {
|
|
4952
4952
|
window.removeEventListener("scroll", m);
|
|
4953
4953
|
};
|
|
4954
|
-
}, []),
|
|
4954
|
+
}, []), P.useEffect(() => {
|
|
4955
4955
|
if (n)
|
|
4956
4956
|
return () => {
|
|
4957
4957
|
typeof document > "u" || document.querySelector("[data-vaul-drawer]") || c();
|
|
@@ -4959,7 +4959,7 @@ function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRes
|
|
|
4959
4959
|
}, [
|
|
4960
4960
|
n,
|
|
4961
4961
|
c
|
|
4962
|
-
]),
|
|
4962
|
+
]), P.useEffect(() => {
|
|
4963
4963
|
t || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && u(), n || window.setTimeout(() => {
|
|
4964
4964
|
c();
|
|
4965
4965
|
}, 500)) : c());
|
|
@@ -4975,63 +4975,63 @@ function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRes
|
|
|
4975
4975
|
restorePositionSetting: c
|
|
4976
4976
|
};
|
|
4977
4977
|
}
|
|
4978
|
-
function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, snapPoints: i, shouldScaleBackground: a = !1, setBackgroundColorOnScale: s = !0, closeThreshold: l = iu, scrollLockTimeout: u = au, dismissible: c = !0, handleOnly: m = !1, fadeFromIndex: d = i && i.length - 1, activeSnapPoint: f, setActiveSnapPoint: v, fixed: p, modal: S = !0, onClose:
|
|
4979
|
-
var
|
|
4978
|
+
function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, snapPoints: i, shouldScaleBackground: a = !1, setBackgroundColorOnScale: s = !0, closeThreshold: l = iu, scrollLockTimeout: u = au, dismissible: c = !0, handleOnly: m = !1, fadeFromIndex: d = i && i.length - 1, activeSnapPoint: f, setActiveSnapPoint: v, fixed: p, modal: S = !0, onClose: w, nested: x, noBodyStyles: y = !1, direction: b = "bottom", defaultOpen: _ = !1, disablePreventScroll: k = !0, snapToSequentialPoint: R = !1, preventScrollRestoration: C = !1, repositionInputs: E = !0, onAnimationEnd: I, container: T, autoFocus: H = !1 }) {
|
|
4979
|
+
var $, ne;
|
|
4980
4980
|
const [J = !1, Q] = ni({
|
|
4981
4981
|
defaultProp: _,
|
|
4982
4982
|
prop: e,
|
|
4983
|
-
onChange: (
|
|
4984
|
-
n?.(
|
|
4985
|
-
|
|
4986
|
-
}, re.DURATION * 1e3),
|
|
4983
|
+
onChange: (G) => {
|
|
4984
|
+
n?.(G), !G && !x && Li(), setTimeout(() => {
|
|
4985
|
+
I?.(G);
|
|
4986
|
+
}, re.DURATION * 1e3), G && !S && typeof window < "u" && window.requestAnimationFrame(() => {
|
|
4987
4987
|
document.body.style.pointerEvents = "auto";
|
|
4988
|
-
}),
|
|
4988
|
+
}), G || (document.body.style.pointerEvents = "auto");
|
|
4989
4989
|
}
|
|
4990
|
-
}), [ee, ce] =
|
|
4991
|
-
i &&
|
|
4990
|
+
}), [ee, ce] = P.useState(!1), [fe, A] = P.useState(!1), [ze, M] = P.useState(!1), z = P.useRef(null), U = P.useRef(null), D = P.useRef(null), B = P.useRef(null), X = P.useRef(null), oe = P.useRef(!1), K = P.useRef(null), ve = P.useRef(0), be = P.useRef(!1), Ve = P.useRef(!_), Xe = P.useRef(0), j = P.useRef(null), Jn = P.useRef((($ = j.current) == null ? void 0 : $.getBoundingClientRect().height) || 0), Qn = P.useRef(((ne = j.current) == null ? void 0 : ne.getBoundingClientRect().width) || 0), Kt = P.useRef(0), Ai = P.useCallback((G) => {
|
|
4991
|
+
i && G === at.length - 1 && (U.current = /* @__PURE__ */ new Date());
|
|
4992
4992
|
}, []), { activeSnapPoint: $i, activeSnapPointIndex: Ye, setActiveSnapPoint: er, onRelease: Ti, snapPointsOffset: at, onDrag: zi, shouldFade: tr, getPercentageDragged: Vi } = lu({
|
|
4993
4993
|
snapPoints: i,
|
|
4994
4994
|
activeSnapPointProp: f,
|
|
4995
4995
|
setActiveSnapPointProp: v,
|
|
4996
4996
|
drawerRef: j,
|
|
4997
4997
|
fadeFromIndex: d,
|
|
4998
|
-
overlayRef:
|
|
4998
|
+
overlayRef: z,
|
|
4999
4999
|
onSnapPointChange: Ai,
|
|
5000
|
-
direction:
|
|
5001
|
-
container:
|
|
5002
|
-
snapToSequentialPoint:
|
|
5000
|
+
direction: b,
|
|
5001
|
+
container: T,
|
|
5002
|
+
snapToSequentialPoint: R
|
|
5003
5003
|
});
|
|
5004
5004
|
Zl({
|
|
5005
|
-
isDisabled: !J || fe || !S || ze || !ee || !
|
|
5005
|
+
isDisabled: !J || fe || !S || ze || !ee || !E || !k
|
|
5006
5006
|
});
|
|
5007
5007
|
const { restorePositionSetting: Li } = du({
|
|
5008
5008
|
isOpen: J,
|
|
5009
5009
|
modal: S,
|
|
5010
|
-
nested:
|
|
5010
|
+
nested: x ?? !1,
|
|
5011
5011
|
hasBeenOpened: ee,
|
|
5012
|
-
preventScrollRestoration:
|
|
5013
|
-
noBodyStyles:
|
|
5012
|
+
preventScrollRestoration: C,
|
|
5013
|
+
noBodyStyles: y
|
|
5014
5014
|
});
|
|
5015
5015
|
function yt() {
|
|
5016
5016
|
return (window.innerWidth - Mn) / window.innerWidth;
|
|
5017
5017
|
}
|
|
5018
|
-
function Hi(
|
|
5018
|
+
function Hi(G) {
|
|
5019
5019
|
var Z, te;
|
|
5020
|
-
!c && !i || j.current && !j.current.contains(
|
|
5020
|
+
!c && !i || j.current && !j.current.contains(G.target) || (Jn.current = ((Z = j.current) == null ? void 0 : Z.getBoundingClientRect().height) || 0, Qn.current = ((te = j.current) == null ? void 0 : te.getBoundingClientRect().width) || 0, A(!0), D.current = /* @__PURE__ */ new Date(), Xo() && window.addEventListener("touchend", () => oe.current = !1, {
|
|
5021
5021
|
once: !0
|
|
5022
|
-
}),
|
|
5022
|
+
}), G.target.setPointerCapture(G.pointerId), ve.current = ae(b) ? G.pageY : G.pageX);
|
|
5023
5023
|
}
|
|
5024
|
-
function nr(
|
|
5024
|
+
function nr(G, Z) {
|
|
5025
5025
|
var te;
|
|
5026
|
-
let Y =
|
|
5027
|
-
const ie = (te = window.getSelection()) == null ? void 0 : te.toString(), me = j.current ? Dt(j.current,
|
|
5026
|
+
let Y = G;
|
|
5027
|
+
const ie = (te = window.getSelection()) == null ? void 0 : te.toString(), me = j.current ? Dt(j.current, b) : null, ge = /* @__PURE__ */ new Date();
|
|
5028
5028
|
if (Y.tagName === "SELECT" || Y.hasAttribute("data-vaul-no-drag") || Y.closest("[data-vaul-no-drag]"))
|
|
5029
5029
|
return !1;
|
|
5030
|
-
if (
|
|
5030
|
+
if (b === "right" || b === "left")
|
|
5031
5031
|
return !0;
|
|
5032
5032
|
if (U.current && ge.getTime() - U.current.getTime() < 500)
|
|
5033
5033
|
return !1;
|
|
5034
|
-
if (me !== null && (
|
|
5034
|
+
if (me !== null && (b === "bottom" ? me > 0 : me < 0))
|
|
5035
5035
|
return !0;
|
|
5036
5036
|
if (ie && ie.length > 0)
|
|
5037
5037
|
return !1;
|
|
@@ -5048,55 +5048,55 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
|
|
|
5048
5048
|
}
|
|
5049
5049
|
return !0;
|
|
5050
5050
|
}
|
|
5051
|
-
function Bi(
|
|
5051
|
+
function Bi(G) {
|
|
5052
5052
|
if (j.current && fe) {
|
|
5053
|
-
const Z =
|
|
5053
|
+
const Z = b === "bottom" || b === "right" ? 1 : -1, te = (ve.current - (ae(b) ? G.pageY : G.pageX)) * Z, Y = te > 0, ie = i && !c && !Y;
|
|
5054
5054
|
if (ie && Ye === 0) return;
|
|
5055
|
-
const me = Math.abs(te), ge = document.querySelector("[data-vaul-drawer-wrapper]"), Me =
|
|
5055
|
+
const me = Math.abs(te), ge = document.querySelector("[data-vaul-drawer-wrapper]"), Me = b === "bottom" || b === "top" ? Jn.current : Qn.current;
|
|
5056
5056
|
let we = me / Me;
|
|
5057
5057
|
const Le = Vi(me, Y);
|
|
5058
|
-
if (Le !== null && (we = Le), ie && we >= 1 || !oe.current && !nr(
|
|
5058
|
+
if (Le !== null && (we = Le), ie && we >= 1 || !oe.current && !nr(G.target, Y)) return;
|
|
5059
5059
|
if (j.current.classList.add(sn), oe.current = !0, le(j.current, {
|
|
5060
5060
|
transition: "none"
|
|
5061
|
-
}), le(
|
|
5061
|
+
}), le(z.current, {
|
|
5062
5062
|
transition: "none"
|
|
5063
5063
|
}), i && zi({
|
|
5064
5064
|
draggedDistance: te
|
|
5065
5065
|
}), Y && !i) {
|
|
5066
5066
|
const Ce = ru(te), Ct = Math.min(Ce * -1, 0) * Z;
|
|
5067
5067
|
le(j.current, {
|
|
5068
|
-
transform: ae(
|
|
5068
|
+
transform: ae(b) ? `translate3d(0, ${Ct}px, 0)` : `translate3d(${Ct}px, 0, 0)`
|
|
5069
5069
|
});
|
|
5070
5070
|
return;
|
|
5071
5071
|
}
|
|
5072
5072
|
const Ie = 1 - we;
|
|
5073
|
-
if ((tr || d && Ye === d - 1) && (r?.(
|
|
5073
|
+
if ((tr || d && Ye === d - 1) && (r?.(G, we), le(z.current, {
|
|
5074
5074
|
opacity: `${Ie}`,
|
|
5075
5075
|
transition: "none"
|
|
5076
|
-
}, !0)), ge &&
|
|
5076
|
+
}, !0)), ge && z.current && a) {
|
|
5077
5077
|
const Ce = Math.min(yt() + we * (1 - yt()), 1), Ct = 8 - we * 8, or = Math.max(0, 14 - we * 14);
|
|
5078
5078
|
le(ge, {
|
|
5079
5079
|
borderRadius: `${Ct}px`,
|
|
5080
|
-
transform: ae(
|
|
5080
|
+
transform: ae(b) ? `scale(${Ce}) translate3d(0, ${or}px, 0)` : `scale(${Ce}) translate3d(${or}px, 0, 0)`,
|
|
5081
5081
|
transition: "none"
|
|
5082
5082
|
}, !0);
|
|
5083
5083
|
}
|
|
5084
5084
|
if (!i) {
|
|
5085
5085
|
const Ce = me * Z;
|
|
5086
5086
|
le(j.current, {
|
|
5087
|
-
transform: ae(
|
|
5087
|
+
transform: ae(b) ? `translate3d(0, ${Ce}px, 0)` : `translate3d(${Ce}px, 0, 0)`
|
|
5088
5088
|
});
|
|
5089
5089
|
}
|
|
5090
5090
|
}
|
|
5091
5091
|
}
|
|
5092
|
-
|
|
5092
|
+
P.useEffect(() => {
|
|
5093
5093
|
window.requestAnimationFrame(() => {
|
|
5094
5094
|
Ve.current = !0;
|
|
5095
5095
|
});
|
|
5096
|
-
}, []),
|
|
5097
|
-
var
|
|
5096
|
+
}, []), P.useEffect(() => {
|
|
5097
|
+
var G;
|
|
5098
5098
|
function Z() {
|
|
5099
|
-
if (!j.current || !
|
|
5099
|
+
if (!j.current || !E) return;
|
|
5100
5100
|
const te = document.activeElement;
|
|
5101
5101
|
if (_n(te) || be.current) {
|
|
5102
5102
|
var Y;
|
|
@@ -5117,7 +5117,7 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
|
|
|
5117
5117
|
i && i.length > 0 && !be.current ? j.current.style.bottom = "0px" : j.current.style.bottom = `${Math.max(ge, 0)}px`;
|
|
5118
5118
|
}
|
|
5119
5119
|
}
|
|
5120
|
-
return (
|
|
5120
|
+
return (G = window.visualViewport) == null || G.addEventListener("resize", Z), () => {
|
|
5121
5121
|
var te;
|
|
5122
5122
|
return (te = window.visualViewport) == null ? void 0 : te.removeEventListener("resize", Z);
|
|
5123
5123
|
};
|
|
@@ -5126,24 +5126,24 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
|
|
|
5126
5126
|
i,
|
|
5127
5127
|
at
|
|
5128
5128
|
]);
|
|
5129
|
-
function st(
|
|
5130
|
-
Gi(),
|
|
5129
|
+
function st(G) {
|
|
5130
|
+
Gi(), w?.(), G || Q(!1), setTimeout(() => {
|
|
5131
5131
|
i && er(i[0]);
|
|
5132
5132
|
}, re.DURATION * 1e3);
|
|
5133
5133
|
}
|
|
5134
5134
|
function rr() {
|
|
5135
5135
|
if (!j.current) return;
|
|
5136
|
-
const
|
|
5136
|
+
const G = document.querySelector("[data-vaul-drawer-wrapper]"), Z = Dt(j.current, b);
|
|
5137
5137
|
le(j.current, {
|
|
5138
5138
|
transform: "translate3d(0, 0, 0)",
|
|
5139
5139
|
transition: `transform ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`
|
|
5140
|
-
}), le(
|
|
5140
|
+
}), le(z.current, {
|
|
5141
5141
|
transition: `opacity ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`,
|
|
5142
5142
|
opacity: "1"
|
|
5143
|
-
}), a && Z && Z > 0 && J && le(
|
|
5143
|
+
}), a && Z && Z > 0 && J && le(G, {
|
|
5144
5144
|
borderRadius: `${ei}px`,
|
|
5145
5145
|
overflow: "hidden",
|
|
5146
|
-
...ae(
|
|
5146
|
+
...ae(b) ? {
|
|
5147
5147
|
transform: `scale(${yt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
|
5148
5148
|
transformOrigin: "top"
|
|
5149
5149
|
} : {
|
|
@@ -5156,97 +5156,97 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
|
|
|
5156
5156
|
}, !0);
|
|
5157
5157
|
}
|
|
5158
5158
|
function Gi() {
|
|
5159
|
-
!fe || !j.current || (j.current.classList.remove(sn), oe.current = !1,
|
|
5159
|
+
!fe || !j.current || (j.current.classList.remove(sn), oe.current = !1, A(!1), B.current = /* @__PURE__ */ new Date());
|
|
5160
5160
|
}
|
|
5161
|
-
function Wi(
|
|
5161
|
+
function Wi(G) {
|
|
5162
5162
|
if (!fe || !j.current) return;
|
|
5163
|
-
j.current.classList.remove(sn), oe.current = !1,
|
|
5164
|
-
const Z = Dt(j.current,
|
|
5165
|
-
if (!
|
|
5166
|
-
const te =
|
|
5163
|
+
j.current.classList.remove(sn), oe.current = !1, A(!1), B.current = /* @__PURE__ */ new Date();
|
|
5164
|
+
const Z = Dt(j.current, b);
|
|
5165
|
+
if (!G || !nr(G.target, !1) || !Z || Number.isNaN(Z) || D.current === null) return;
|
|
5166
|
+
const te = B.current.getTime() - D.current.getTime(), Y = ve.current - (ae(b) ? G.pageY : G.pageX), ie = Math.abs(Y) / te;
|
|
5167
5167
|
if (ie > 0.05 && (M(!0), setTimeout(() => {
|
|
5168
5168
|
M(!1);
|
|
5169
5169
|
}, 200)), i) {
|
|
5170
5170
|
Ti({
|
|
5171
|
-
draggedDistance: Y * (
|
|
5171
|
+
draggedDistance: Y * (b === "bottom" || b === "right" ? 1 : -1),
|
|
5172
5172
|
closeDrawer: st,
|
|
5173
5173
|
velocity: ie,
|
|
5174
5174
|
dismissible: c
|
|
5175
|
-
}), o?.(
|
|
5175
|
+
}), o?.(G, !0);
|
|
5176
5176
|
return;
|
|
5177
5177
|
}
|
|
5178
|
-
if (
|
|
5179
|
-
rr(), o?.(
|
|
5178
|
+
if (b === "bottom" || b === "right" ? Y > 0 : Y < 0) {
|
|
5179
|
+
rr(), o?.(G, !0);
|
|
5180
5180
|
return;
|
|
5181
5181
|
}
|
|
5182
5182
|
if (ie > Qo) {
|
|
5183
|
-
st(), o?.(
|
|
5183
|
+
st(), o?.(G, !1);
|
|
5184
5184
|
return;
|
|
5185
5185
|
}
|
|
5186
5186
|
var me;
|
|
5187
5187
|
const ge = Math.min((me = j.current.getBoundingClientRect().height) != null ? me : 0, window.innerHeight);
|
|
5188
5188
|
var Me;
|
|
5189
|
-
const we = Math.min((Me = j.current.getBoundingClientRect().width) != null ? Me : 0, window.innerWidth), Le =
|
|
5189
|
+
const we = Math.min((Me = j.current.getBoundingClientRect().width) != null ? Me : 0, window.innerWidth), Le = b === "left" || b === "right";
|
|
5190
5190
|
if (Math.abs(Z) >= (Le ? we : ge) * l) {
|
|
5191
|
-
st(), o?.(
|
|
5191
|
+
st(), o?.(G, !1);
|
|
5192
5192
|
return;
|
|
5193
5193
|
}
|
|
5194
|
-
o?.(
|
|
5194
|
+
o?.(G, !0), rr();
|
|
5195
5195
|
}
|
|
5196
|
-
|
|
5196
|
+
P.useEffect(() => (J && (le(document.documentElement, {
|
|
5197
5197
|
scrollBehavior: "auto"
|
|
5198
5198
|
}), U.current = /* @__PURE__ */ new Date()), () => {
|
|
5199
5199
|
nu(document.documentElement, "scrollBehavior");
|
|
5200
5200
|
}), [
|
|
5201
5201
|
J
|
|
5202
5202
|
]);
|
|
5203
|
-
function ji(
|
|
5204
|
-
const Z =
|
|
5203
|
+
function ji(G) {
|
|
5204
|
+
const Z = G ? (window.innerWidth - Be) / window.innerWidth : 1, te = G ? -Be : 0;
|
|
5205
5205
|
K.current && window.clearTimeout(K.current), le(j.current, {
|
|
5206
5206
|
transition: `transform ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`,
|
|
5207
|
-
transform: ae(
|
|
5208
|
-
}), !
|
|
5209
|
-
const Y = Dt(j.current,
|
|
5207
|
+
transform: ae(b) ? `scale(${Z}) translate3d(0, ${te}px, 0)` : `scale(${Z}) translate3d(${te}px, 0, 0)`
|
|
5208
|
+
}), !G && j.current && (K.current = setTimeout(() => {
|
|
5209
|
+
const Y = Dt(j.current, b);
|
|
5210
5210
|
le(j.current, {
|
|
5211
5211
|
transition: "none",
|
|
5212
|
-
transform: ae(
|
|
5212
|
+
transform: ae(b) ? `translate3d(0, ${Y}px, 0)` : `translate3d(${Y}px, 0, 0)`
|
|
5213
5213
|
});
|
|
5214
5214
|
}, 500));
|
|
5215
5215
|
}
|
|
5216
|
-
function Ui(
|
|
5216
|
+
function Ui(G, Z) {
|
|
5217
5217
|
if (Z < 0) return;
|
|
5218
5218
|
const te = (window.innerWidth - Be) / window.innerWidth, Y = te + Z * (1 - te), ie = -Be + Z * Be;
|
|
5219
5219
|
le(j.current, {
|
|
5220
|
-
transform: ae(
|
|
5220
|
+
transform: ae(b) ? `scale(${Y}) translate3d(0, ${ie}px, 0)` : `scale(${Y}) translate3d(${ie}px, 0, 0)`,
|
|
5221
5221
|
transition: "none"
|
|
5222
5222
|
});
|
|
5223
5223
|
}
|
|
5224
|
-
function qi(
|
|
5225
|
-
const te = ae(
|
|
5224
|
+
function qi(G, Z) {
|
|
5225
|
+
const te = ae(b) ? window.innerHeight : window.innerWidth, Y = Z ? (te - Be) / te : 1, ie = Z ? -Be : 0;
|
|
5226
5226
|
Z && le(j.current, {
|
|
5227
5227
|
transition: `transform ${re.DURATION}s cubic-bezier(${re.EASE.join(",")})`,
|
|
5228
|
-
transform: ae(
|
|
5228
|
+
transform: ae(b) ? `scale(${Y}) translate3d(0, ${ie}px, 0)` : `scale(${Y}) translate3d(${ie}px, 0, 0)`
|
|
5229
5229
|
});
|
|
5230
5230
|
}
|
|
5231
|
-
return
|
|
5231
|
+
return P.useEffect(() => {
|
|
5232
5232
|
S || window.requestAnimationFrame(() => {
|
|
5233
5233
|
document.body.style.pointerEvents = "auto";
|
|
5234
5234
|
});
|
|
5235
5235
|
}, [
|
|
5236
5236
|
S
|
|
5237
|
-
]), /* @__PURE__ */
|
|
5237
|
+
]), /* @__PURE__ */ P.createElement(Wo, {
|
|
5238
5238
|
defaultOpen: _,
|
|
5239
|
-
onOpenChange: (
|
|
5240
|
-
!c && !
|
|
5239
|
+
onOpenChange: (G) => {
|
|
5240
|
+
!c && !G || (G ? ce(!0) : st(!0), Q(G));
|
|
5241
5241
|
},
|
|
5242
5242
|
open: J
|
|
5243
|
-
}, /* @__PURE__ */
|
|
5243
|
+
}, /* @__PURE__ */ P.createElement(Ko.Provider, {
|
|
5244
5244
|
value: {
|
|
5245
5245
|
activeSnapPoint: $i,
|
|
5246
5246
|
snapPoints: i,
|
|
5247
5247
|
setActiveSnapPoint: er,
|
|
5248
5248
|
drawerRef: j,
|
|
5249
|
-
overlayRef:
|
|
5249
|
+
overlayRef: z,
|
|
5250
5250
|
onOpenChange: n,
|
|
5251
5251
|
onPress: Hi,
|
|
5252
5252
|
onRelease: Wi,
|
|
@@ -5265,23 +5265,23 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
|
|
|
5265
5265
|
modal: S,
|
|
5266
5266
|
snapPointsOffset: at,
|
|
5267
5267
|
activeSnapPointIndex: Ye,
|
|
5268
|
-
direction:
|
|
5268
|
+
direction: b,
|
|
5269
5269
|
shouldScaleBackground: a,
|
|
5270
5270
|
setBackgroundColorOnScale: s,
|
|
5271
|
-
noBodyStyles:
|
|
5272
|
-
container:
|
|
5273
|
-
autoFocus:
|
|
5271
|
+
noBodyStyles: y,
|
|
5272
|
+
container: T,
|
|
5273
|
+
autoFocus: H
|
|
5274
5274
|
}
|
|
5275
5275
|
}, t));
|
|
5276
5276
|
}
|
|
5277
|
-
const ri = /* @__PURE__ */
|
|
5277
|
+
const ri = /* @__PURE__ */ P.forwardRef(function({ ...e }, n) {
|
|
5278
5278
|
const { overlayRef: t, snapPoints: r, onRelease: o, shouldFade: i, isOpen: a, modal: s, shouldAnimate: l } = wt(), u = Zo(n, t), c = r && r.length > 0;
|
|
5279
5279
|
if (!s)
|
|
5280
5280
|
return null;
|
|
5281
|
-
const m =
|
|
5281
|
+
const m = P.useCallback((d) => o(d), [
|
|
5282
5282
|
o
|
|
5283
5283
|
]);
|
|
5284
|
-
return /* @__PURE__ */
|
|
5284
|
+
return /* @__PURE__ */ P.createElement(Uo, {
|
|
5285
5285
|
onMouseUp: m,
|
|
5286
5286
|
ref: u,
|
|
5287
5287
|
"data-vaul-overlay": "",
|
|
@@ -5292,102 +5292,102 @@ const ri = /* @__PURE__ */ D.forwardRef(function({ ...e }, n) {
|
|
|
5292
5292
|
});
|
|
5293
5293
|
});
|
|
5294
5294
|
ri.displayName = "Drawer.Overlay";
|
|
5295
|
-
const oi = /* @__PURE__ */
|
|
5296
|
-
const { drawerRef: i, onPress: a, onRelease: s, onDrag: l, keyboardIsOpen: u, snapPointsOffset: c, activeSnapPointIndex: m, modal: d, isOpen: f, direction: v, snapPoints: p, container: S, handleOnly:
|
|
5295
|
+
const oi = /* @__PURE__ */ P.forwardRef(function({ onPointerDownOutside: e, style: n, onOpenAutoFocus: t, ...r }, o) {
|
|
5296
|
+
const { drawerRef: i, onPress: a, onRelease: s, onDrag: l, keyboardIsOpen: u, snapPointsOffset: c, activeSnapPointIndex: m, modal: d, isOpen: f, direction: v, snapPoints: p, container: S, handleOnly: w, shouldAnimate: x, autoFocus: y } = wt(), [b, _] = P.useState(!1), k = Zo(o, i), R = P.useRef(null), C = P.useRef(null), E = P.useRef(!1), I = p && p.length > 0;
|
|
5297
5297
|
cu();
|
|
5298
|
-
const
|
|
5299
|
-
if (
|
|
5300
|
-
const Q = Math.abs(
|
|
5298
|
+
const T = ($, ne, J = 0) => {
|
|
5299
|
+
if (E.current) return !0;
|
|
5300
|
+
const Q = Math.abs($.y), ee = Math.abs($.x), ce = ee > Q, fe = [
|
|
5301
5301
|
"bottom",
|
|
5302
5302
|
"right"
|
|
5303
5303
|
].includes(ne) ? 1 : -1;
|
|
5304
5304
|
if (ne === "left" || ne === "right") {
|
|
5305
|
-
if (!(
|
|
5305
|
+
if (!($.x * fe < 0) && ee >= 0 && ee <= J)
|
|
5306
5306
|
return ce;
|
|
5307
|
-
} else if (!(
|
|
5307
|
+
} else if (!($.y * fe < 0) && Q >= 0 && Q <= J)
|
|
5308
5308
|
return !ce;
|
|
5309
|
-
return
|
|
5309
|
+
return E.current = !0, !0;
|
|
5310
5310
|
};
|
|
5311
|
-
|
|
5312
|
-
|
|
5311
|
+
P.useEffect(() => {
|
|
5312
|
+
I && window.requestAnimationFrame(() => {
|
|
5313
5313
|
_(!0);
|
|
5314
5314
|
});
|
|
5315
5315
|
}, []);
|
|
5316
|
-
function
|
|
5317
|
-
|
|
5316
|
+
function H($) {
|
|
5317
|
+
R.current = null, E.current = !1, s($);
|
|
5318
5318
|
}
|
|
5319
|
-
return /* @__PURE__ */
|
|
5319
|
+
return /* @__PURE__ */ P.createElement(qo, {
|
|
5320
5320
|
"data-vaul-drawer-direction": v,
|
|
5321
5321
|
"data-vaul-drawer": "",
|
|
5322
|
-
"data-vaul-delayed-snap-points":
|
|
5323
|
-
"data-vaul-snap-points": f &&
|
|
5322
|
+
"data-vaul-delayed-snap-points": b ? "true" : "false",
|
|
5323
|
+
"data-vaul-snap-points": f && I ? "true" : "false",
|
|
5324
5324
|
"data-vaul-custom-container": S ? "true" : "false",
|
|
5325
|
-
"data-vaul-animate":
|
|
5325
|
+
"data-vaul-animate": x?.current ? "true" : "false",
|
|
5326
5326
|
...r,
|
|
5327
|
-
ref:
|
|
5327
|
+
ref: k,
|
|
5328
5328
|
style: c && c.length > 0 ? {
|
|
5329
5329
|
"--snap-point-height": `${c[m ?? 0]}px`,
|
|
5330
5330
|
...n
|
|
5331
5331
|
} : n,
|
|
5332
|
-
onPointerDown: (
|
|
5333
|
-
|
|
5334
|
-
x:
|
|
5335
|
-
y:
|
|
5336
|
-
}, a(
|
|
5332
|
+
onPointerDown: ($) => {
|
|
5333
|
+
w || (r.onPointerDown == null || r.onPointerDown.call(r, $), R.current = {
|
|
5334
|
+
x: $.pageX,
|
|
5335
|
+
y: $.pageY
|
|
5336
|
+
}, a($));
|
|
5337
5337
|
},
|
|
5338
|
-
onOpenAutoFocus: (
|
|
5339
|
-
t?.(
|
|
5338
|
+
onOpenAutoFocus: ($) => {
|
|
5339
|
+
t?.($), y || $.preventDefault();
|
|
5340
5340
|
},
|
|
5341
|
-
onPointerDownOutside: (
|
|
5342
|
-
if (e?.(
|
|
5343
|
-
|
|
5341
|
+
onPointerDownOutside: ($) => {
|
|
5342
|
+
if (e?.($), !d || $.defaultPrevented) {
|
|
5343
|
+
$.preventDefault();
|
|
5344
5344
|
return;
|
|
5345
5345
|
}
|
|
5346
5346
|
u.current && (u.current = !1);
|
|
5347
5347
|
},
|
|
5348
|
-
onFocusOutside: (
|
|
5348
|
+
onFocusOutside: ($) => {
|
|
5349
5349
|
if (!d) {
|
|
5350
|
-
|
|
5350
|
+
$.preventDefault();
|
|
5351
5351
|
return;
|
|
5352
5352
|
}
|
|
5353
5353
|
},
|
|
5354
|
-
onPointerMove: (
|
|
5355
|
-
if (
|
|
5356
|
-
const ne =
|
|
5357
|
-
|
|
5354
|
+
onPointerMove: ($) => {
|
|
5355
|
+
if (C.current = $, w || (r.onPointerMove == null || r.onPointerMove.call(r, $), !R.current)) return;
|
|
5356
|
+
const ne = $.pageY - R.current.y, J = $.pageX - R.current.x, Q = $.pointerType === "touch" ? 10 : 2;
|
|
5357
|
+
T({
|
|
5358
5358
|
x: J,
|
|
5359
5359
|
y: ne
|
|
5360
|
-
}, v, Q) ? l(
|
|
5360
|
+
}, v, Q) ? l($) : (Math.abs(J) > Q || Math.abs(ne) > Q) && (R.current = null);
|
|
5361
5361
|
},
|
|
5362
|
-
onPointerUp: (
|
|
5363
|
-
r.onPointerUp == null || r.onPointerUp.call(r,
|
|
5362
|
+
onPointerUp: ($) => {
|
|
5363
|
+
r.onPointerUp == null || r.onPointerUp.call(r, $), R.current = null, E.current = !1, s($);
|
|
5364
5364
|
},
|
|
5365
|
-
onPointerOut: (
|
|
5366
|
-
r.onPointerOut == null || r.onPointerOut.call(r,
|
|
5365
|
+
onPointerOut: ($) => {
|
|
5366
|
+
r.onPointerOut == null || r.onPointerOut.call(r, $), H(C.current);
|
|
5367
5367
|
},
|
|
5368
|
-
onContextMenu: (
|
|
5369
|
-
r.onContextMenu == null || r.onContextMenu.call(r,
|
|
5368
|
+
onContextMenu: ($) => {
|
|
5369
|
+
r.onContextMenu == null || r.onContextMenu.call(r, $), C.current && H(C.current);
|
|
5370
5370
|
}
|
|
5371
5371
|
});
|
|
5372
5372
|
});
|
|
5373
5373
|
oi.displayName = "Drawer.Content";
|
|
5374
|
-
const gu = 250, mu = 120, pu = /* @__PURE__ */
|
|
5375
|
-
const { closeDrawer: o, isDragging: i, snapPoints: a, activeSnapPoint: s, setActiveSnapPoint: l, dismissible: u, handleOnly: c, isOpen: m, onPress: d, onDrag: f } = wt(), v =
|
|
5374
|
+
const gu = 250, mu = 120, pu = /* @__PURE__ */ P.forwardRef(function({ preventCycle: e = !1, children: n, ...t }, r) {
|
|
5375
|
+
const { closeDrawer: o, isDragging: i, snapPoints: a, activeSnapPoint: s, setActiveSnapPoint: l, dismissible: u, handleOnly: c, isOpen: m, onPress: d, onDrag: f } = wt(), v = P.useRef(null), p = P.useRef(!1);
|
|
5376
5376
|
function S() {
|
|
5377
5377
|
if (p.current) {
|
|
5378
|
-
|
|
5378
|
+
y();
|
|
5379
5379
|
return;
|
|
5380
5380
|
}
|
|
5381
5381
|
window.setTimeout(() => {
|
|
5382
|
-
|
|
5382
|
+
w();
|
|
5383
5383
|
}, mu);
|
|
5384
5384
|
}
|
|
5385
|
-
function
|
|
5385
|
+
function w() {
|
|
5386
5386
|
if (i || e || p.current) {
|
|
5387
|
-
|
|
5387
|
+
y();
|
|
5388
5388
|
return;
|
|
5389
5389
|
}
|
|
5390
|
-
if (
|
|
5390
|
+
if (y(), !a || a.length === 0) {
|
|
5391
5391
|
u || o();
|
|
5392
5392
|
return;
|
|
5393
5393
|
}
|
|
@@ -5395,27 +5395,27 @@ const gu = 250, mu = 120, pu = /* @__PURE__ */ D.forwardRef(function({ preventCy
|
|
|
5395
5395
|
o();
|
|
5396
5396
|
return;
|
|
5397
5397
|
}
|
|
5398
|
-
const _ = a.findIndex((
|
|
5398
|
+
const _ = a.findIndex((R) => R === s);
|
|
5399
5399
|
if (_ === -1) return;
|
|
5400
|
-
const
|
|
5401
|
-
l(
|
|
5400
|
+
const k = a[_ + 1];
|
|
5401
|
+
l(k);
|
|
5402
5402
|
}
|
|
5403
|
-
function
|
|
5403
|
+
function x() {
|
|
5404
5404
|
v.current = window.setTimeout(() => {
|
|
5405
5405
|
p.current = !0;
|
|
5406
5406
|
}, gu);
|
|
5407
5407
|
}
|
|
5408
|
-
function
|
|
5408
|
+
function y() {
|
|
5409
5409
|
v.current && window.clearTimeout(v.current), p.current = !1;
|
|
5410
5410
|
}
|
|
5411
|
-
return /* @__PURE__ */
|
|
5411
|
+
return /* @__PURE__ */ P.createElement("div", {
|
|
5412
5412
|
onClick: S,
|
|
5413
|
-
onPointerCancel:
|
|
5414
|
-
onPointerDown: (
|
|
5415
|
-
c && d(
|
|
5413
|
+
onPointerCancel: y,
|
|
5414
|
+
onPointerDown: (b) => {
|
|
5415
|
+
c && d(b), x();
|
|
5416
5416
|
},
|
|
5417
|
-
onPointerMove: (
|
|
5418
|
-
c && f(
|
|
5417
|
+
onPointerMove: (b) => {
|
|
5418
|
+
c && f(b);
|
|
5419
5419
|
},
|
|
5420
5420
|
// onPointerUp is already handled by the content component
|
|
5421
5421
|
ref: r,
|
|
@@ -5423,7 +5423,7 @@ const gu = 250, mu = 120, pu = /* @__PURE__ */ D.forwardRef(function({ preventCy
|
|
|
5423
5423
|
"data-vaul-handle": "",
|
|
5424
5424
|
"aria-hidden": "true",
|
|
5425
5425
|
...t
|
|
5426
|
-
}, /* @__PURE__ */
|
|
5426
|
+
}, /* @__PURE__ */ P.createElement("span", {
|
|
5427
5427
|
"data-vaul-handle-hitarea": "",
|
|
5428
5428
|
"aria-hidden": "true"
|
|
5429
5429
|
}, n));
|
|
@@ -5431,7 +5431,7 @@ const gu = 250, mu = 120, pu = /* @__PURE__ */ D.forwardRef(function({ preventCy
|
|
|
5431
5431
|
pu.displayName = "Drawer.Handle";
|
|
5432
5432
|
function hu(e) {
|
|
5433
5433
|
const n = wt(), { container: t = n.container, ...r } = e;
|
|
5434
|
-
return /* @__PURE__ */
|
|
5434
|
+
return /* @__PURE__ */ P.createElement(jo, {
|
|
5435
5435
|
container: t,
|
|
5436
5436
|
...r
|
|
5437
5437
|
});
|
|
@@ -5467,7 +5467,7 @@ function Su({
|
|
|
5467
5467
|
ot.Overlay,
|
|
5468
5468
|
{
|
|
5469
5469
|
"data-slot": "drawer-overlay",
|
|
5470
|
-
className:
|
|
5470
|
+
className: F(
|
|
5471
5471
|
"fixed inset-0 z-50 bg-black/10 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
|
|
5472
5472
|
e
|
|
5473
5473
|
),
|
|
@@ -5480,14 +5480,14 @@ function yu({
|
|
|
5480
5480
|
children: n,
|
|
5481
5481
|
...t
|
|
5482
5482
|
}) {
|
|
5483
|
-
return /* @__PURE__ */
|
|
5483
|
+
return /* @__PURE__ */ W(bu, { "data-slot": "drawer-portal", children: [
|
|
5484
5484
|
/* @__PURE__ */ h(Su, {}),
|
|
5485
|
-
/* @__PURE__ */
|
|
5485
|
+
/* @__PURE__ */ W(
|
|
5486
5486
|
ot.Content,
|
|
5487
5487
|
{
|
|
5488
5488
|
"aria-describedby": void 0,
|
|
5489
5489
|
"data-slot": "drawer-content",
|
|
5490
|
-
className:
|
|
5490
|
+
className: F(
|
|
5491
5491
|
"group/drawer-content fixed z-50 flex h-auto flex-col bg-background text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
5492
5492
|
e
|
|
5493
5493
|
),
|
|
@@ -5508,7 +5508,7 @@ function Cu({
|
|
|
5508
5508
|
ot.Title,
|
|
5509
5509
|
{
|
|
5510
5510
|
"data-slot": "drawer-title",
|
|
5511
|
-
className:
|
|
5511
|
+
className: F("text-base font-medium text-foreground", e),
|
|
5512
5512
|
...n
|
|
5513
5513
|
}
|
|
5514
5514
|
);
|
|
@@ -5534,16 +5534,16 @@ function Qd({
|
|
|
5534
5534
|
children: /* @__PURE__ */ h(
|
|
5535
5535
|
yu,
|
|
5536
5536
|
{
|
|
5537
|
-
className:
|
|
5537
|
+
className: F(
|
|
5538
5538
|
"data-[vaul-drawer-direction=right]:w-[560px] data-[vaul-drawer-direction=right]:max-w-[90vw] border-l border-border bg-card text-card-foreground",
|
|
5539
5539
|
s
|
|
5540
5540
|
),
|
|
5541
|
-
children: /* @__PURE__ */
|
|
5542
|
-
/* @__PURE__ */
|
|
5541
|
+
children: /* @__PURE__ */ W("div", { className: F("flex h-full min-h-0 flex-col", a), children: [
|
|
5542
|
+
/* @__PURE__ */ W("div", { className: "flex shrink-0 items-center justify-between border-b border-border p-6", children: [
|
|
5543
5543
|
/* @__PURE__ */ h(Cu, { className: "m-0 text-xl font-semibold text-foreground", children: t }),
|
|
5544
|
-
/* @__PURE__ */
|
|
5544
|
+
/* @__PURE__ */ W("div", { className: "flex items-center gap-3", children: [
|
|
5545
5545
|
i,
|
|
5546
|
-
/* @__PURE__ */ h(wu, { asChild: !0, children: /* @__PURE__ */
|
|
5546
|
+
/* @__PURE__ */ h(wu, { asChild: !0, children: /* @__PURE__ */ W(vt, { variant: "ghost", size: "icon", className: "cursor-pointer", children: [
|
|
5547
5547
|
/* @__PURE__ */ h(go, {}),
|
|
5548
5548
|
/* @__PURE__ */ h("span", { className: "sr-only", children: "Close drawer" })
|
|
5549
5549
|
] }) })
|
|
@@ -5575,7 +5575,7 @@ function Eu({
|
|
|
5575
5575
|
zn.Content,
|
|
5576
5576
|
{
|
|
5577
5577
|
"data-slot": "collapsible-content",
|
|
5578
|
-
className:
|
|
5578
|
+
className: F("overflow-hidden", e),
|
|
5579
5579
|
...n
|
|
5580
5580
|
}
|
|
5581
5581
|
);
|
|
@@ -5608,7 +5608,7 @@ function ku({
|
|
|
5608
5608
|
Ge.Overlay,
|
|
5609
5609
|
{
|
|
5610
5610
|
"data-slot": "sheet-overlay",
|
|
5611
|
-
className:
|
|
5611
|
+
className: F(
|
|
5612
5612
|
"fixed inset-0 z-50 bg-primary/14 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
|
|
5613
5613
|
e
|
|
5614
5614
|
),
|
|
@@ -5623,21 +5623,21 @@ function Fu({
|
|
|
5623
5623
|
showCloseButton: r = !0,
|
|
5624
5624
|
...o
|
|
5625
5625
|
}) {
|
|
5626
|
-
return /* @__PURE__ */
|
|
5626
|
+
return /* @__PURE__ */ W(Iu, { children: [
|
|
5627
5627
|
/* @__PURE__ */ h(ku, {}),
|
|
5628
|
-
/* @__PURE__ */
|
|
5628
|
+
/* @__PURE__ */ W(
|
|
5629
5629
|
Ge.Content,
|
|
5630
5630
|
{
|
|
5631
5631
|
"data-slot": "sheet-content",
|
|
5632
5632
|
"data-side": t,
|
|
5633
|
-
className:
|
|
5633
|
+
className: F(
|
|
5634
5634
|
"fixed z-50 flex flex-col gap-4 bg-background bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10",
|
|
5635
5635
|
e
|
|
5636
5636
|
),
|
|
5637
5637
|
...o,
|
|
5638
5638
|
children: [
|
|
5639
5639
|
n,
|
|
5640
|
-
r && /* @__PURE__ */ h(Ge.Close, { "data-slot": "sheet-close", asChild: !0, children: /* @__PURE__ */
|
|
5640
|
+
r && /* @__PURE__ */ h(Ge.Close, { "data-slot": "sheet-close", asChild: !0, children: /* @__PURE__ */ W(
|
|
5641
5641
|
vt,
|
|
5642
5642
|
{
|
|
5643
5643
|
variant: "ghost",
|
|
@@ -5659,7 +5659,7 @@ function Du({ className: e, ...n }) {
|
|
|
5659
5659
|
"div",
|
|
5660
5660
|
{
|
|
5661
5661
|
"data-slot": "sheet-header",
|
|
5662
|
-
className:
|
|
5662
|
+
className: F("flex flex-col gap-0.5 p-4", e),
|
|
5663
5663
|
...n
|
|
5664
5664
|
}
|
|
5665
5665
|
);
|
|
@@ -5672,7 +5672,7 @@ function Pu({
|
|
|
5672
5672
|
Ge.Title,
|
|
5673
5673
|
{
|
|
5674
5674
|
"data-slot": "sheet-title",
|
|
5675
|
-
className:
|
|
5675
|
+
className: F("text-base font-medium text-foreground", e),
|
|
5676
5676
|
...n
|
|
5677
5677
|
}
|
|
5678
5678
|
);
|
|
@@ -5685,7 +5685,7 @@ function Nu({
|
|
|
5685
5685
|
Ge.Description,
|
|
5686
5686
|
{
|
|
5687
5687
|
"data-slot": "sheet-description",
|
|
5688
|
-
className:
|
|
5688
|
+
className: F("text-sm text-muted-foreground", e),
|
|
5689
5689
|
...n
|
|
5690
5690
|
}
|
|
5691
5691
|
);
|
|
@@ -5707,17 +5707,17 @@ function Lu({
|
|
|
5707
5707
|
...a
|
|
5708
5708
|
}) {
|
|
5709
5709
|
const s = _u(), [l, u] = g.useState(!1), [c, m] = g.useState(e), d = n ?? c, f = g.useCallback(
|
|
5710
|
-
(
|
|
5711
|
-
const
|
|
5712
|
-
t ? t(
|
|
5710
|
+
(w) => {
|
|
5711
|
+
const x = typeof w == "function" ? w(d) : w;
|
|
5712
|
+
t ? t(x) : m(x), document.cookie = `${Ou}=${x}; path=/; max-age=${Au}`;
|
|
5713
5713
|
},
|
|
5714
5714
|
[t, d]
|
|
5715
|
-
), v = g.useCallback(() => s ? u((
|
|
5715
|
+
), v = g.useCallback(() => s ? u((w) => !w) : f((w) => !w), [s, f, u]);
|
|
5716
5716
|
g.useEffect(() => {
|
|
5717
|
-
const
|
|
5718
|
-
|
|
5717
|
+
const w = (x) => {
|
|
5718
|
+
x.key === Vu && (x.metaKey || x.ctrlKey) && (x.preventDefault(), v());
|
|
5719
5719
|
};
|
|
5720
|
-
return window.addEventListener("keydown",
|
|
5720
|
+
return window.addEventListener("keydown", w), () => window.removeEventListener("keydown", w);
|
|
5721
5721
|
}, [v]);
|
|
5722
5722
|
const p = d ? "expanded" : "collapsed", S = g.useMemo(
|
|
5723
5723
|
() => ({
|
|
@@ -5740,7 +5740,7 @@ function Lu({
|
|
|
5740
5740
|
"--sidebar-width-icon": zu,
|
|
5741
5741
|
...o
|
|
5742
5742
|
},
|
|
5743
|
-
className:
|
|
5743
|
+
className: F(
|
|
5744
5744
|
"group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
|
|
5745
5745
|
r
|
|
5746
5746
|
),
|
|
@@ -5763,14 +5763,14 @@ function Hu({
|
|
|
5763
5763
|
"div",
|
|
5764
5764
|
{
|
|
5765
5765
|
"data-slot": "sidebar",
|
|
5766
|
-
className:
|
|
5766
|
+
className: F(
|
|
5767
5767
|
"flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",
|
|
5768
5768
|
r
|
|
5769
5769
|
),
|
|
5770
5770
|
...a,
|
|
5771
5771
|
children: o
|
|
5772
5772
|
}
|
|
5773
|
-
) : s ? /* @__PURE__ */ h(Mu, { open: u, onOpenChange: c, ...a, children: /* @__PURE__ */
|
|
5773
|
+
) : s ? /* @__PURE__ */ h(Mu, { open: u, onOpenChange: c, ...a, children: /* @__PURE__ */ W(
|
|
5774
5774
|
Fu,
|
|
5775
5775
|
{
|
|
5776
5776
|
dir: i,
|
|
@@ -5783,14 +5783,14 @@ function Hu({
|
|
|
5783
5783
|
},
|
|
5784
5784
|
side: e,
|
|
5785
5785
|
children: [
|
|
5786
|
-
/* @__PURE__ */
|
|
5786
|
+
/* @__PURE__ */ W(Du, { className: "sr-only", children: [
|
|
5787
5787
|
/* @__PURE__ */ h(Pu, { children: "Sidebar" }),
|
|
5788
5788
|
/* @__PURE__ */ h(Nu, { children: "Displays the mobile sidebar." })
|
|
5789
5789
|
] }),
|
|
5790
5790
|
/* @__PURE__ */ h("div", { className: "flex h-full w-full flex-col", children: o })
|
|
5791
5791
|
]
|
|
5792
5792
|
}
|
|
5793
|
-
) }) : /* @__PURE__ */
|
|
5793
|
+
) }) : /* @__PURE__ */ W(
|
|
5794
5794
|
"div",
|
|
5795
5795
|
{
|
|
5796
5796
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -5804,7 +5804,7 @@ function Hu({
|
|
|
5804
5804
|
"div",
|
|
5805
5805
|
{
|
|
5806
5806
|
"data-slot": "sidebar-gap",
|
|
5807
|
-
className:
|
|
5807
|
+
className: F(
|
|
5808
5808
|
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
5809
5809
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
5810
5810
|
"group-data-[side=right]:rotate-180",
|
|
@@ -5817,7 +5817,7 @@ function Hu({
|
|
|
5817
5817
|
{
|
|
5818
5818
|
"data-slot": "sidebar-container",
|
|
5819
5819
|
"data-side": e,
|
|
5820
|
-
className:
|
|
5820
|
+
className: F(
|
|
5821
5821
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",
|
|
5822
5822
|
// Adjust the padding for floating and inset variants.
|
|
5823
5823
|
n === "floating" || n === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
@@ -5845,14 +5845,14 @@ function Bu({
|
|
|
5845
5845
|
...t
|
|
5846
5846
|
}) {
|
|
5847
5847
|
const { toggleSidebar: r } = ai();
|
|
5848
|
-
return /* @__PURE__ */
|
|
5848
|
+
return /* @__PURE__ */ W(
|
|
5849
5849
|
vt,
|
|
5850
5850
|
{
|
|
5851
5851
|
"data-sidebar": "trigger",
|
|
5852
5852
|
"data-slot": "sidebar-trigger",
|
|
5853
5853
|
variant: "ghost",
|
|
5854
5854
|
size: "icon-sm",
|
|
5855
|
-
className:
|
|
5855
|
+
className: F(e),
|
|
5856
5856
|
onClick: (o) => {
|
|
5857
5857
|
n?.(o), r();
|
|
5858
5858
|
},
|
|
@@ -5870,7 +5870,7 @@ function Gu({ className: e, ...n }) {
|
|
|
5870
5870
|
{
|
|
5871
5871
|
"data-slot": "sidebar-header",
|
|
5872
5872
|
"data-sidebar": "header",
|
|
5873
|
-
className:
|
|
5873
|
+
className: F("flex flex-col gap-2 p-2", e),
|
|
5874
5874
|
...n
|
|
5875
5875
|
}
|
|
5876
5876
|
);
|
|
@@ -5881,7 +5881,7 @@ function Wu({ className: e, ...n }) {
|
|
|
5881
5881
|
{
|
|
5882
5882
|
"data-slot": "sidebar-footer",
|
|
5883
5883
|
"data-sidebar": "footer",
|
|
5884
|
-
className:
|
|
5884
|
+
className: F("flex flex-col gap-2 p-2", e),
|
|
5885
5885
|
...n
|
|
5886
5886
|
}
|
|
5887
5887
|
);
|
|
@@ -5892,7 +5892,7 @@ function ju({ className: e, ...n }) {
|
|
|
5892
5892
|
{
|
|
5893
5893
|
"data-slot": "sidebar-content",
|
|
5894
5894
|
"data-sidebar": "content",
|
|
5895
|
-
className:
|
|
5895
|
+
className: F(
|
|
5896
5896
|
"no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
5897
5897
|
e
|
|
5898
5898
|
),
|
|
@@ -5906,7 +5906,7 @@ function Uu({ className: e, ...n }) {
|
|
|
5906
5906
|
{
|
|
5907
5907
|
"data-slot": "sidebar-group",
|
|
5908
5908
|
"data-sidebar": "group",
|
|
5909
|
-
className:
|
|
5909
|
+
className: F("relative flex w-full min-w-0 flex-col p-2", e),
|
|
5910
5910
|
...n
|
|
5911
5911
|
}
|
|
5912
5912
|
);
|
|
@@ -5920,7 +5920,7 @@ function qu({
|
|
|
5920
5920
|
{
|
|
5921
5921
|
"data-slot": "sidebar-group-content",
|
|
5922
5922
|
"data-sidebar": "group-content",
|
|
5923
|
-
className:
|
|
5923
|
+
className: F("w-full text-sm", e),
|
|
5924
5924
|
...n
|
|
5925
5925
|
}
|
|
5926
5926
|
);
|
|
@@ -5931,7 +5931,7 @@ function Pr({ className: e, ...n }) {
|
|
|
5931
5931
|
{
|
|
5932
5932
|
"data-slot": "sidebar-menu",
|
|
5933
5933
|
"data-sidebar": "menu",
|
|
5934
|
-
className:
|
|
5934
|
+
className: F("flex w-full min-w-0 flex-col gap-0", e),
|
|
5935
5935
|
...n
|
|
5936
5936
|
}
|
|
5937
5937
|
);
|
|
@@ -5942,7 +5942,7 @@ function Nr({ className: e, ...n }) {
|
|
|
5942
5942
|
{
|
|
5943
5943
|
"data-slot": "sidebar-menu-item",
|
|
5944
5944
|
"data-sidebar": "menu-item",
|
|
5945
|
-
className:
|
|
5945
|
+
className: F("group/menu-item relative", e),
|
|
5946
5946
|
...n
|
|
5947
5947
|
}
|
|
5948
5948
|
);
|
|
@@ -5983,7 +5983,7 @@ function Or({
|
|
|
5983
5983
|
"data-sidebar": "menu-button",
|
|
5984
5984
|
"data-size": r,
|
|
5985
5985
|
"data-active": n,
|
|
5986
|
-
className:
|
|
5986
|
+
className: F(Ku({ variant: t, size: r }), o),
|
|
5987
5987
|
...i
|
|
5988
5988
|
}
|
|
5989
5989
|
);
|
|
@@ -5997,7 +5997,7 @@ function Xu({
|
|
|
5997
5997
|
{
|
|
5998
5998
|
"data-slot": "sidebar-menu-badge",
|
|
5999
5999
|
"data-sidebar": "menu-badge",
|
|
6000
|
-
className:
|
|
6000
|
+
className: F(
|
|
6001
6001
|
"pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 peer-data-active/menu-button:text-sidebar-accent-foreground",
|
|
6002
6002
|
e
|
|
6003
6003
|
),
|
|
@@ -6011,7 +6011,7 @@ function Yu({ className: e, ...n }) {
|
|
|
6011
6011
|
{
|
|
6012
6012
|
"data-slot": "sidebar-menu-sub",
|
|
6013
6013
|
"data-sidebar": "menu-sub",
|
|
6014
|
-
className:
|
|
6014
|
+
className: F(
|
|
6015
6015
|
"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",
|
|
6016
6016
|
e
|
|
6017
6017
|
),
|
|
@@ -6028,7 +6028,7 @@ function Zu({
|
|
|
6028
6028
|
{
|
|
6029
6029
|
"data-slot": "sidebar-menu-sub-item",
|
|
6030
6030
|
"data-sidebar": "menu-sub-item",
|
|
6031
|
-
className:
|
|
6031
|
+
className: F("group/menu-sub-item relative", e),
|
|
6032
6032
|
...n
|
|
6033
6033
|
}
|
|
6034
6034
|
);
|
|
@@ -6048,7 +6048,7 @@ function Ju({
|
|
|
6048
6048
|
"data-sidebar": "menu-sub-button",
|
|
6049
6049
|
"data-size": n,
|
|
6050
6050
|
"data-active": t,
|
|
6051
|
-
className:
|
|
6051
|
+
className: F(
|
|
6052
6052
|
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
|
|
6053
6053
|
r
|
|
6054
6054
|
),
|
|
@@ -6082,138 +6082,138 @@ function ef({
|
|
|
6082
6082
|
footerClassName: d
|
|
6083
6083
|
}) {
|
|
6084
6084
|
const f = g.useMemo(() => [
|
|
6085
|
-
...e.map((
|
|
6085
|
+
...e.map((b, _) => ({
|
|
6086
6086
|
kind: "item",
|
|
6087
|
-
item:
|
|
6088
|
-
order: un(
|
|
6087
|
+
item: b,
|
|
6088
|
+
order: un(b.order),
|
|
6089
6089
|
originalIndex: _
|
|
6090
6090
|
})),
|
|
6091
|
-
...n.map((
|
|
6091
|
+
...n.map((b, _) => ({
|
|
6092
6092
|
kind: "group",
|
|
6093
|
-
group:
|
|
6093
|
+
group: b,
|
|
6094
6094
|
groupIndex: _,
|
|
6095
|
-
order: un(
|
|
6095
|
+
order: un(b.order),
|
|
6096
6096
|
originalIndex: e.length + _
|
|
6097
6097
|
}))
|
|
6098
|
-
].sort((
|
|
6099
|
-
(
|
|
6100
|
-
const
|
|
6101
|
-
return
|
|
6098
|
+
].sort((b, _) => b.order !== _.order ? b.order - _.order : b.originalIndex - _.originalIndex), [n, e]), [v, p] = g.useState(() => n.reduce(
|
|
6099
|
+
(y, b, _) => {
|
|
6100
|
+
const k = cn(b, _);
|
|
6101
|
+
return y[k] = !!(b.defaultOpen || Ar(b, t)), y;
|
|
6102
6102
|
},
|
|
6103
6103
|
{}
|
|
6104
6104
|
));
|
|
6105
6105
|
g.useEffect(() => {
|
|
6106
|
-
p((
|
|
6107
|
-
(
|
|
6108
|
-
const
|
|
6109
|
-
return typeof
|
|
6106
|
+
p((y) => n.reduce(
|
|
6107
|
+
(b, _, k) => {
|
|
6108
|
+
const R = cn(_, k), C = y[R], E = Ar(_, t);
|
|
6109
|
+
return typeof C == "boolean" ? (b[R] = E ? !0 : C, b) : (b[R] = !!(_.defaultOpen || E), b);
|
|
6110
6110
|
},
|
|
6111
6111
|
{}
|
|
6112
6112
|
));
|
|
6113
6113
|
}, [t, n]);
|
|
6114
6114
|
const S = g.useCallback(
|
|
6115
|
-
(
|
|
6116
|
-
if (
|
|
6117
|
-
|
|
6115
|
+
(y, b) => {
|
|
6116
|
+
if (y.disabled) {
|
|
6117
|
+
b.preventDefault();
|
|
6118
6118
|
return;
|
|
6119
6119
|
}
|
|
6120
|
-
o?.(
|
|
6120
|
+
o?.(y, b);
|
|
6121
6121
|
},
|
|
6122
6122
|
[o]
|
|
6123
|
-
),
|
|
6124
|
-
(
|
|
6125
|
-
const
|
|
6126
|
-
return /* @__PURE__ */ h(Pr, { className: "gap-1", children: /* @__PURE__ */
|
|
6123
|
+
), w = g.useCallback(
|
|
6124
|
+
(y) => {
|
|
6125
|
+
const b = y.icon, _ = y.route === t;
|
|
6126
|
+
return /* @__PURE__ */ h(Pr, { className: "gap-1", children: /* @__PURE__ */ W(Nr, { className: F(m, y.className), children: [
|
|
6127
6127
|
/* @__PURE__ */ h(
|
|
6128
6128
|
Or,
|
|
6129
6129
|
{
|
|
6130
6130
|
asChild: !0,
|
|
6131
6131
|
isActive: _,
|
|
6132
6132
|
className: "transition-colors hover:bg-sidebar-accent/55 data-open:hover:bg-sidebar-accent/55",
|
|
6133
|
-
children: /* @__PURE__ */
|
|
6133
|
+
children: /* @__PURE__ */ W(
|
|
6134
6134
|
"a",
|
|
6135
6135
|
{
|
|
6136
|
-
href:
|
|
6136
|
+
href: y.route,
|
|
6137
6137
|
"aria-current": _ ? "page" : void 0,
|
|
6138
|
-
"aria-disabled":
|
|
6139
|
-
onClick: (
|
|
6138
|
+
"aria-disabled": y.disabled,
|
|
6139
|
+
onClick: (k) => S(y, k),
|
|
6140
6140
|
children: [
|
|
6141
|
-
|
|
6142
|
-
/* @__PURE__ */ h("span", { className: "group-data-[collapsible=icon]:hidden", children:
|
|
6141
|
+
b ? /* @__PURE__ */ h(b, { className: "size-4" }) : null,
|
|
6142
|
+
/* @__PURE__ */ h("span", { className: "group-data-[collapsible=icon]:hidden", children: y.label })
|
|
6143
6143
|
]
|
|
6144
6144
|
}
|
|
6145
6145
|
)
|
|
6146
6146
|
}
|
|
6147
6147
|
),
|
|
6148
|
-
|
|
6149
|
-
] }) }, `${
|
|
6148
|
+
y.badge ? /* @__PURE__ */ h(Xu, { children: y.badge }) : null
|
|
6149
|
+
] }) }, `${y.route}-${y.label}`);
|
|
6150
6150
|
},
|
|
6151
6151
|
[t, S, m]
|
|
6152
|
-
),
|
|
6153
|
-
(
|
|
6154
|
-
const _ = cn(
|
|
6155
|
-
groupItem:
|
|
6156
|
-
order: un(
|
|
6157
|
-
index:
|
|
6158
|
-
})).sort((
|
|
6152
|
+
), x = g.useCallback(
|
|
6153
|
+
(y, b) => {
|
|
6154
|
+
const _ = cn(y, b), k = v[_] ?? !1, R = y.icon, C = [...y.items].map((E, I) => ({
|
|
6155
|
+
groupItem: E,
|
|
6156
|
+
order: un(E.order),
|
|
6157
|
+
index: I
|
|
6158
|
+
})).sort((E, I) => E.order !== I.order ? E.order - I.order : E.index - I.index).map(({ groupItem: E }) => E);
|
|
6159
6159
|
return /* @__PURE__ */ h(
|
|
6160
6160
|
xu,
|
|
6161
6161
|
{
|
|
6162
|
-
open:
|
|
6163
|
-
onOpenChange: (
|
|
6164
|
-
|
|
6165
|
-
[_]:
|
|
6162
|
+
open: k,
|
|
6163
|
+
onOpenChange: (E) => p((I) => ({
|
|
6164
|
+
...I,
|
|
6165
|
+
[_]: E
|
|
6166
6166
|
})),
|
|
6167
6167
|
className: "group/collapsible",
|
|
6168
|
-
children: /* @__PURE__ */
|
|
6169
|
-
/* @__PURE__ */ h(Pr, { className: "gap-1", children: /* @__PURE__ */ h(Nr, { children: /* @__PURE__ */ h(Ru, { asChild: !0, children: /* @__PURE__ */
|
|
6168
|
+
children: /* @__PURE__ */ W(Uu, { className: y.className + " !p-0", children: [
|
|
6169
|
+
/* @__PURE__ */ h(Pr, { className: "gap-1", children: /* @__PURE__ */ h(Nr, { children: /* @__PURE__ */ h(Ru, { asChild: !0, children: /* @__PURE__ */ W(
|
|
6170
6170
|
Or,
|
|
6171
6171
|
{
|
|
6172
|
-
className:
|
|
6172
|
+
className: F(
|
|
6173
6173
|
"transition-colors hover:bg-sidebar-accent/55 data-open:hover:bg-sidebar-accent/55 !px-2",
|
|
6174
|
-
|
|
6174
|
+
y.labelClassName
|
|
6175
6175
|
),
|
|
6176
6176
|
children: [
|
|
6177
|
-
|
|
6178
|
-
/* @__PURE__ */ h("span", { className: "truncate group-data-[collapsible=icon]:hidden", children:
|
|
6177
|
+
R ? /* @__PURE__ */ h(R, { className: "size-4" }) : null,
|
|
6178
|
+
/* @__PURE__ */ h("span", { className: "truncate group-data-[collapsible=icon]:hidden", children: y.label }),
|
|
6179
6179
|
/* @__PURE__ */ h(bt, { className: "ml-auto size-4 transition-transform group-data-[collapsible=icon]:hidden group-data-[state=open]/collapsible:rotate-180" })
|
|
6180
6180
|
]
|
|
6181
6181
|
}
|
|
6182
6182
|
) }) }) }),
|
|
6183
|
-
/* @__PURE__ */ h(Eu, { children: /* @__PURE__ */ h(qu, { className:
|
|
6184
|
-
const
|
|
6183
|
+
/* @__PURE__ */ h(Eu, { children: /* @__PURE__ */ h(qu, { className: y.contentClassName, children: /* @__PURE__ */ h(Yu, { className: y.menuClassName + " !m-2 pr-0", children: C.map((E) => {
|
|
6184
|
+
const I = E.icon, T = E.route === t;
|
|
6185
6185
|
return /* @__PURE__ */ h(
|
|
6186
6186
|
Zu,
|
|
6187
6187
|
{
|
|
6188
|
-
className:
|
|
6188
|
+
className: F(
|
|
6189
6189
|
m,
|
|
6190
|
-
|
|
6191
|
-
|
|
6190
|
+
y.itemClassName,
|
|
6191
|
+
E.className
|
|
6192
6192
|
),
|
|
6193
6193
|
children: /* @__PURE__ */ h(
|
|
6194
6194
|
Ju,
|
|
6195
6195
|
{
|
|
6196
6196
|
asChild: !0,
|
|
6197
|
-
isActive:
|
|
6197
|
+
isActive: T,
|
|
6198
6198
|
className: "transition-colors hover:bg-sidebar-accent/55",
|
|
6199
|
-
children: /* @__PURE__ */
|
|
6199
|
+
children: /* @__PURE__ */ W(
|
|
6200
6200
|
"a",
|
|
6201
6201
|
{
|
|
6202
|
-
href:
|
|
6203
|
-
"aria-current":
|
|
6204
|
-
"aria-disabled":
|
|
6205
|
-
onClick: (
|
|
6202
|
+
href: E.route,
|
|
6203
|
+
"aria-current": T ? "page" : void 0,
|
|
6204
|
+
"aria-disabled": E.disabled,
|
|
6205
|
+
onClick: (H) => S(E, H),
|
|
6206
6206
|
children: [
|
|
6207
|
-
|
|
6208
|
-
/* @__PURE__ */ h("span", { children:
|
|
6209
|
-
|
|
6207
|
+
I ? /* @__PURE__ */ h(I, { className: "size-4" }) : null,
|
|
6208
|
+
/* @__PURE__ */ h("span", { children: E.label }),
|
|
6209
|
+
E.badge ? /* @__PURE__ */ h("span", { className: "ml-auto text-xs font-medium tabular-nums", children: E.badge }) : null
|
|
6210
6210
|
]
|
|
6211
6211
|
}
|
|
6212
6212
|
)
|
|
6213
6213
|
}
|
|
6214
6214
|
)
|
|
6215
6215
|
},
|
|
6216
|
-
`${_}-${
|
|
6216
|
+
`${_}-${E.route}-${E.label}`
|
|
6217
6217
|
);
|
|
6218
6218
|
}) }) }) })
|
|
6219
6219
|
] })
|
|
@@ -6228,30 +6228,30 @@ function ef({
|
|
|
6228
6228
|
{
|
|
6229
6229
|
className: "!w-auto !min-h-full shrink-0",
|
|
6230
6230
|
defaultOpen: !r,
|
|
6231
|
-
children: /* @__PURE__ */
|
|
6231
|
+
children: /* @__PURE__ */ W(
|
|
6232
6232
|
Hu,
|
|
6233
6233
|
{
|
|
6234
6234
|
collapsible: "icon",
|
|
6235
|
-
className:
|
|
6235
|
+
className: F("h-full border-r border-sidebar-border/70", s),
|
|
6236
6236
|
children: [
|
|
6237
6237
|
/* @__PURE__ */ h(
|
|
6238
6238
|
Gu,
|
|
6239
6239
|
{
|
|
6240
|
-
className:
|
|
6240
|
+
className: F(
|
|
6241
6241
|
"border-b border-sidebar-border/70 p-2",
|
|
6242
6242
|
l
|
|
6243
6243
|
),
|
|
6244
|
-
children: /* @__PURE__ */
|
|
6244
|
+
children: /* @__PURE__ */ W("div", { className: "flex min-h-8 items-center gap-2", children: [
|
|
6245
6245
|
i ? /* @__PURE__ */ h("div", { className: "min-w-0 flex-1 group-data-[collapsible=icon]:hidden p-2", children: i }) : null,
|
|
6246
6246
|
/* @__PURE__ */ h(Bu, { className: "ml-auto" })
|
|
6247
6247
|
] })
|
|
6248
6248
|
}
|
|
6249
6249
|
),
|
|
6250
|
-
/* @__PURE__ */ h(ju, { className:
|
|
6250
|
+
/* @__PURE__ */ h(ju, { className: F("p-2", u), children: /* @__PURE__ */ h("div", { className: F("flex flex-col gap-1", c), children: f.map((y) => y.kind === "item" ? w(y.item) : x(y.group, y.groupIndex)) }) }),
|
|
6251
6251
|
a ? /* @__PURE__ */ h(
|
|
6252
6252
|
Wu,
|
|
6253
6253
|
{
|
|
6254
|
-
className:
|
|
6254
|
+
className: F(
|
|
6255
6255
|
"border-t border-sidebar-border/70 p-2",
|
|
6256
6256
|
d
|
|
6257
6257
|
),
|
|
@@ -6281,12 +6281,12 @@ function rc({
|
|
|
6281
6281
|
children: t,
|
|
6282
6282
|
...r
|
|
6283
6283
|
}) {
|
|
6284
|
-
return /* @__PURE__ */
|
|
6284
|
+
return /* @__PURE__ */ W(
|
|
6285
6285
|
he.Trigger,
|
|
6286
6286
|
{
|
|
6287
6287
|
"data-slot": "select-trigger",
|
|
6288
6288
|
"data-size": n,
|
|
6289
|
-
className:
|
|
6289
|
+
className: F(si, e),
|
|
6290
6290
|
...r,
|
|
6291
6291
|
children: [
|
|
6292
6292
|
t,
|
|
@@ -6304,12 +6304,12 @@ function oc({
|
|
|
6304
6304
|
sideOffset: i = 4,
|
|
6305
6305
|
...a
|
|
6306
6306
|
}) {
|
|
6307
|
-
return /* @__PURE__ */ h(he.Portal, { children: /* @__PURE__ */
|
|
6307
|
+
return /* @__PURE__ */ h(he.Portal, { children: /* @__PURE__ */ W(
|
|
6308
6308
|
he.Content,
|
|
6309
6309
|
{
|
|
6310
6310
|
"data-slot": "select-content",
|
|
6311
6311
|
"data-align-trigger": t === "item-aligned",
|
|
6312
|
-
className:
|
|
6312
|
+
className: F(
|
|
6313
6313
|
"min-w-36 origin-(--radix-select-content-transform-origin) duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
6314
6314
|
li,
|
|
6315
6315
|
t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
@@ -6340,11 +6340,11 @@ function ic({
|
|
|
6340
6340
|
children: n,
|
|
6341
6341
|
...t
|
|
6342
6342
|
}) {
|
|
6343
|
-
return /* @__PURE__ */
|
|
6343
|
+
return /* @__PURE__ */ W(
|
|
6344
6344
|
he.Item,
|
|
6345
6345
|
{
|
|
6346
6346
|
"data-slot": "select-item",
|
|
6347
|
-
className:
|
|
6347
|
+
className: F(ec, e),
|
|
6348
6348
|
...t,
|
|
6349
6349
|
children: [
|
|
6350
6350
|
/* @__PURE__ */ h(he.ItemText, { className: "flex-1", children: n }),
|
|
@@ -6361,7 +6361,7 @@ function ac({
|
|
|
6361
6361
|
he.ScrollUpButton,
|
|
6362
6362
|
{
|
|
6363
6363
|
"data-slot": "select-scroll-up-button",
|
|
6364
|
-
className:
|
|
6364
|
+
className: F(
|
|
6365
6365
|
"z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
6366
6366
|
e
|
|
6367
6367
|
),
|
|
@@ -6378,7 +6378,7 @@ function sc({
|
|
|
6378
6378
|
he.ScrollDownButton,
|
|
6379
6379
|
{
|
|
6380
6380
|
"data-slot": "select-scroll-down-button",
|
|
6381
|
-
className:
|
|
6381
|
+
className: F(
|
|
6382
6382
|
"z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
6383
6383
|
e
|
|
6384
6384
|
),
|
|
@@ -6407,7 +6407,7 @@ function tf({
|
|
|
6407
6407
|
() => new Set(m.map((v) => v.value)),
|
|
6408
6408
|
[m]
|
|
6409
6409
|
).has(t) ? t : "";
|
|
6410
|
-
return /* @__PURE__ */ h("div", { className:
|
|
6410
|
+
return /* @__PURE__ */ h("div", { className: F("w-full", l), children: /* @__PURE__ */ W(
|
|
6411
6411
|
tc,
|
|
6412
6412
|
{
|
|
6413
6413
|
value: f,
|
|
@@ -6415,7 +6415,7 @@ function tf({
|
|
|
6415
6415
|
disabled: i,
|
|
6416
6416
|
name: a,
|
|
6417
6417
|
children: [
|
|
6418
|
-
/* @__PURE__ */ h(rc, { size: s, className:
|
|
6418
|
+
/* @__PURE__ */ h(rc, { size: s, className: F("w-full", u), children: /* @__PURE__ */ h(nc, { placeholder: o }) }),
|
|
6419
6419
|
/* @__PURE__ */ h(oc, { className: c, children: m.map((v) => /* @__PURE__ */ h(
|
|
6420
6420
|
ic,
|
|
6421
6421
|
{
|
|
@@ -6445,110 +6445,110 @@ function hc(e, n, t) {
|
|
|
6445
6445
|
}
|
|
6446
6446
|
var dt = '[cmdk-group=""]', gn = '[cmdk-group-items=""]', vc = '[cmdk-group-heading=""]', ci = '[cmdk-item=""]', zr = `${ci}:not([aria-disabled="true"])`, kn = "cmdk-item-select", tt = "data-value", bc = (e, n, t) => hc(e, n, t), di = g.createContext(void 0), St = () => g.useContext(di), fi = g.createContext(void 0), Un = () => g.useContext(fi), gi = g.createContext(void 0), mi = g.forwardRef((e, n) => {
|
|
6447
6447
|
let t = nt(() => {
|
|
6448
|
-
var M,
|
|
6449
|
-
return { search: "", value: (
|
|
6450
|
-
}), r = nt(() => /* @__PURE__ */ new Set()), o = nt(() => /* @__PURE__ */ new Map()), i = nt(() => /* @__PURE__ */ new Map()), a = nt(() => /* @__PURE__ */ new Set()), s = pi(e), { label: l, children: u, value: c, onValueChange: m, filter: d, shouldFilter: f, loop: v, disablePointerSelection: p = !1, vimBindings: S = !0, ...
|
|
6448
|
+
var M, z;
|
|
6449
|
+
return { search: "", value: (z = (M = e.value) != null ? M : e.defaultValue) != null ? z : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
6450
|
+
}), r = nt(() => /* @__PURE__ */ new Set()), o = nt(() => /* @__PURE__ */ new Map()), i = nt(() => /* @__PURE__ */ new Map()), a = nt(() => /* @__PURE__ */ new Set()), s = pi(e), { label: l, children: u, value: c, onValueChange: m, filter: d, shouldFilter: f, loop: v, disablePointerSelection: p = !1, vimBindings: S = !0, ...w } = e, x = _e(), y = _e(), b = _e(), _ = g.useRef(null), k = kc();
|
|
6451
6451
|
Ue(() => {
|
|
6452
6452
|
if (c !== void 0) {
|
|
6453
6453
|
let M = c.trim();
|
|
6454
|
-
t.current.value = M,
|
|
6454
|
+
t.current.value = M, R.emit();
|
|
6455
6455
|
}
|
|
6456
6456
|
}, [c]), Ue(() => {
|
|
6457
|
-
|
|
6457
|
+
k(6, $);
|
|
6458
6458
|
}, []);
|
|
6459
|
-
let
|
|
6460
|
-
var
|
|
6461
|
-
if (!Object.is(t.current[M],
|
|
6462
|
-
if (t.current[M] =
|
|
6459
|
+
let R = g.useMemo(() => ({ subscribe: (M) => (a.current.add(M), () => a.current.delete(M)), snapshot: () => t.current, setState: (M, z, U) => {
|
|
6460
|
+
var D, B, X, oe;
|
|
6461
|
+
if (!Object.is(t.current[M], z)) {
|
|
6462
|
+
if (t.current[M] = z, M === "search") H(), I(), k(1, T);
|
|
6463
6463
|
else if (M === "value") {
|
|
6464
6464
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
6465
|
-
let K = document.getElementById(
|
|
6466
|
-
K ? K.focus() : (
|
|
6465
|
+
let K = document.getElementById(b);
|
|
6466
|
+
K ? K.focus() : (D = document.getElementById(x)) == null || D.focus();
|
|
6467
6467
|
}
|
|
6468
|
-
if (
|
|
6468
|
+
if (k(7, () => {
|
|
6469
6469
|
var K;
|
|
6470
|
-
t.current.selectedItemId = (K = ne()) == null ? void 0 : K.id,
|
|
6471
|
-
}), U ||
|
|
6472
|
-
let K =
|
|
6470
|
+
t.current.selectedItemId = (K = ne()) == null ? void 0 : K.id, R.emit();
|
|
6471
|
+
}), U || k(5, $), ((B = s.current) == null ? void 0 : B.value) !== void 0) {
|
|
6472
|
+
let K = z ?? "";
|
|
6473
6473
|
(oe = (X = s.current).onValueChange) == null || oe.call(X, K);
|
|
6474
6474
|
return;
|
|
6475
6475
|
}
|
|
6476
6476
|
}
|
|
6477
|
-
|
|
6477
|
+
R.emit();
|
|
6478
6478
|
}
|
|
6479
6479
|
}, emit: () => {
|
|
6480
6480
|
a.current.forEach((M) => M());
|
|
6481
|
-
} }), []),
|
|
6482
|
-
var
|
|
6483
|
-
|
|
6484
|
-
|
|
6481
|
+
} }), []), C = g.useMemo(() => ({ value: (M, z, U) => {
|
|
6482
|
+
var D;
|
|
6483
|
+
z !== ((D = i.current.get(M)) == null ? void 0 : D.value) && (i.current.set(M, { value: z, keywords: U }), t.current.filtered.items.set(M, E(z, U)), k(2, () => {
|
|
6484
|
+
I(), R.emit();
|
|
6485
6485
|
}));
|
|
6486
|
-
}, item: (M,
|
|
6487
|
-
|
|
6486
|
+
}, item: (M, z) => (r.current.add(M), z && (o.current.has(z) ? o.current.get(z).add(M) : o.current.set(z, /* @__PURE__ */ new Set([M]))), k(3, () => {
|
|
6487
|
+
H(), I(), t.current.value || T(), R.emit();
|
|
6488
6488
|
}), () => {
|
|
6489
6489
|
i.current.delete(M), r.current.delete(M), t.current.filtered.items.delete(M);
|
|
6490
6490
|
let U = ne();
|
|
6491
|
-
|
|
6492
|
-
|
|
6491
|
+
k(4, () => {
|
|
6492
|
+
H(), U?.getAttribute("id") === M && T(), R.emit();
|
|
6493
6493
|
});
|
|
6494
6494
|
}), group: (M) => (o.current.has(M) || o.current.set(M, /* @__PURE__ */ new Set()), () => {
|
|
6495
6495
|
i.current.delete(M), o.current.delete(M);
|
|
6496
|
-
}), filter: () => s.current.shouldFilter, label: l || e["aria-label"], getDisablePointerSelection: () => s.current.disablePointerSelection, listId:
|
|
6497
|
-
function
|
|
6498
|
-
var U,
|
|
6499
|
-
let
|
|
6500
|
-
return M ?
|
|
6496
|
+
}), filter: () => s.current.shouldFilter, label: l || e["aria-label"], getDisablePointerSelection: () => s.current.disablePointerSelection, listId: x, inputId: b, labelId: y, listInnerRef: _ }), []);
|
|
6497
|
+
function E(M, z) {
|
|
6498
|
+
var U, D;
|
|
6499
|
+
let B = (D = (U = s.current) == null ? void 0 : U.filter) != null ? D : bc;
|
|
6500
|
+
return M ? B(M, t.current.search, z) : 0;
|
|
6501
6501
|
}
|
|
6502
|
-
function
|
|
6502
|
+
function I() {
|
|
6503
6503
|
if (!t.current.search || s.current.shouldFilter === !1) return;
|
|
6504
|
-
let M = t.current.filtered.items,
|
|
6505
|
-
t.current.filtered.groups.forEach((
|
|
6506
|
-
let
|
|
6507
|
-
|
|
6504
|
+
let M = t.current.filtered.items, z = [];
|
|
6505
|
+
t.current.filtered.groups.forEach((D) => {
|
|
6506
|
+
let B = o.current.get(D), X = 0;
|
|
6507
|
+
B.forEach((oe) => {
|
|
6508
6508
|
let K = M.get(oe);
|
|
6509
6509
|
X = Math.max(K, X);
|
|
6510
|
-
}),
|
|
6510
|
+
}), z.push([D, X]);
|
|
6511
6511
|
});
|
|
6512
6512
|
let U = _.current;
|
|
6513
|
-
J().sort((
|
|
6513
|
+
J().sort((D, B) => {
|
|
6514
6514
|
var X, oe;
|
|
6515
|
-
let K =
|
|
6515
|
+
let K = D.getAttribute("id"), ve = B.getAttribute("id");
|
|
6516
6516
|
return ((X = M.get(ve)) != null ? X : 0) - ((oe = M.get(K)) != null ? oe : 0);
|
|
6517
|
-
}).forEach((
|
|
6518
|
-
let
|
|
6519
|
-
|
|
6520
|
-
}),
|
|
6521
|
-
var
|
|
6522
|
-
let X = (
|
|
6517
|
+
}).forEach((D) => {
|
|
6518
|
+
let B = D.closest(gn);
|
|
6519
|
+
B ? B.appendChild(D.parentElement === B ? D : D.closest(`${gn} > *`)) : U.appendChild(D.parentElement === U ? D : D.closest(`${gn} > *`));
|
|
6520
|
+
}), z.sort((D, B) => B[1] - D[1]).forEach((D) => {
|
|
6521
|
+
var B;
|
|
6522
|
+
let X = (B = _.current) == null ? void 0 : B.querySelector(`${dt}[${tt}="${encodeURIComponent(D[0])}"]`);
|
|
6523
6523
|
X?.parentElement.appendChild(X);
|
|
6524
6524
|
});
|
|
6525
6525
|
}
|
|
6526
|
-
function
|
|
6527
|
-
let M = J().find((U) => U.getAttribute("aria-disabled") !== "true"),
|
|
6528
|
-
|
|
6526
|
+
function T() {
|
|
6527
|
+
let M = J().find((U) => U.getAttribute("aria-disabled") !== "true"), z = M?.getAttribute(tt);
|
|
6528
|
+
R.setState("value", z || void 0);
|
|
6529
6529
|
}
|
|
6530
|
-
function
|
|
6531
|
-
var M,
|
|
6530
|
+
function H() {
|
|
6531
|
+
var M, z, U, D;
|
|
6532
6532
|
if (!t.current.search || s.current.shouldFilter === !1) {
|
|
6533
6533
|
t.current.filtered.count = r.current.size;
|
|
6534
6534
|
return;
|
|
6535
6535
|
}
|
|
6536
6536
|
t.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
6537
|
-
let
|
|
6537
|
+
let B = 0;
|
|
6538
6538
|
for (let X of r.current) {
|
|
6539
|
-
let oe = (
|
|
6540
|
-
t.current.filtered.items.set(X, ve), ve > 0 &&
|
|
6539
|
+
let oe = (z = (M = i.current.get(X)) == null ? void 0 : M.value) != null ? z : "", K = (D = (U = i.current.get(X)) == null ? void 0 : U.keywords) != null ? D : [], ve = E(oe, K);
|
|
6540
|
+
t.current.filtered.items.set(X, ve), ve > 0 && B++;
|
|
6541
6541
|
}
|
|
6542
6542
|
for (let [X, oe] of o.current) for (let K of oe) if (t.current.filtered.items.get(K) > 0) {
|
|
6543
6543
|
t.current.filtered.groups.add(X);
|
|
6544
6544
|
break;
|
|
6545
6545
|
}
|
|
6546
|
-
t.current.filtered.count =
|
|
6546
|
+
t.current.filtered.count = B;
|
|
6547
6547
|
}
|
|
6548
|
-
function
|
|
6549
|
-
var M,
|
|
6550
|
-
let
|
|
6551
|
-
|
|
6548
|
+
function $() {
|
|
6549
|
+
var M, z, U;
|
|
6550
|
+
let D = ne();
|
|
6551
|
+
D && (((M = D.parentElement) == null ? void 0 : M.firstChild) === D && ((U = (z = D.closest(dt)) == null ? void 0 : z.querySelector(vc)) == null || U.scrollIntoView({ block: "nearest" })), D.scrollIntoView({ block: "nearest" }));
|
|
6552
6552
|
}
|
|
6553
6553
|
function ne() {
|
|
6554
6554
|
var M;
|
|
@@ -6559,36 +6559,36 @@ var dt = '[cmdk-group=""]', gn = '[cmdk-group-items=""]', vc = '[cmdk-group-head
|
|
|
6559
6559
|
return Array.from(((M = _.current) == null ? void 0 : M.querySelectorAll(zr)) || []);
|
|
6560
6560
|
}
|
|
6561
6561
|
function Q(M) {
|
|
6562
|
-
let
|
|
6563
|
-
|
|
6562
|
+
let z = J()[M];
|
|
6563
|
+
z && R.setState("value", z.getAttribute(tt));
|
|
6564
6564
|
}
|
|
6565
6565
|
function ee(M) {
|
|
6566
|
-
var
|
|
6567
|
-
let U = ne(),
|
|
6568
|
-
(
|
|
6566
|
+
var z;
|
|
6567
|
+
let U = ne(), D = J(), B = D.findIndex((oe) => oe === U), X = D[B + M];
|
|
6568
|
+
(z = s.current) != null && z.loop && (X = B + M < 0 ? D[D.length - 1] : B + M === D.length ? D[0] : D[B + M]), X && R.setState("value", X.getAttribute(tt));
|
|
6569
6569
|
}
|
|
6570
6570
|
function ce(M) {
|
|
6571
|
-
let
|
|
6572
|
-
for (; U && !
|
|
6573
|
-
|
|
6571
|
+
let z = ne(), U = z?.closest(dt), D;
|
|
6572
|
+
for (; U && !D; ) U = M > 0 ? Mc(U, dt) : Ic(U, dt), D = U?.querySelector(zr);
|
|
6573
|
+
D ? R.setState("value", D.getAttribute(tt)) : ee(M);
|
|
6574
6574
|
}
|
|
6575
|
-
let fe = () => Q(J().length - 1),
|
|
6575
|
+
let fe = () => Q(J().length - 1), A = (M) => {
|
|
6576
6576
|
M.preventDefault(), M.metaKey ? fe() : M.altKey ? ce(1) : ee(1);
|
|
6577
6577
|
}, ze = (M) => {
|
|
6578
6578
|
M.preventDefault(), M.metaKey ? Q(0) : M.altKey ? ce(-1) : ee(-1);
|
|
6579
6579
|
};
|
|
6580
|
-
return g.createElement(ue.div, { ref: n, tabIndex: -1, ...
|
|
6581
|
-
var
|
|
6582
|
-
(
|
|
6580
|
+
return g.createElement(ue.div, { ref: n, tabIndex: -1, ...w, "cmdk-root": "", onKeyDown: (M) => {
|
|
6581
|
+
var z;
|
|
6582
|
+
(z = w.onKeyDown) == null || z.call(w, M);
|
|
6583
6583
|
let U = M.nativeEvent.isComposing || M.keyCode === 229;
|
|
6584
6584
|
if (!(M.defaultPrevented || U)) switch (M.key) {
|
|
6585
6585
|
case "n":
|
|
6586
6586
|
case "j": {
|
|
6587
|
-
S && M.ctrlKey &&
|
|
6587
|
+
S && M.ctrlKey && A(M);
|
|
6588
6588
|
break;
|
|
6589
6589
|
}
|
|
6590
6590
|
case "ArrowDown": {
|
|
6591
|
-
|
|
6591
|
+
A(M);
|
|
6592
6592
|
break;
|
|
6593
6593
|
}
|
|
6594
6594
|
case "p":
|
|
@@ -6610,34 +6610,34 @@ var dt = '[cmdk-group=""]', gn = '[cmdk-group-items=""]', vc = '[cmdk-group-head
|
|
|
6610
6610
|
}
|
|
6611
6611
|
case "Enter": {
|
|
6612
6612
|
M.preventDefault();
|
|
6613
|
-
let
|
|
6614
|
-
if (
|
|
6615
|
-
let
|
|
6616
|
-
|
|
6613
|
+
let D = ne();
|
|
6614
|
+
if (D) {
|
|
6615
|
+
let B = new Event(kn);
|
|
6616
|
+
D.dispatchEvent(B);
|
|
6617
6617
|
}
|
|
6618
6618
|
}
|
|
6619
6619
|
}
|
|
6620
|
-
} }, g.createElement("label", { "cmdk-label": "", htmlFor:
|
|
6620
|
+
} }, g.createElement("label", { "cmdk-label": "", htmlFor: C.inputId, id: C.labelId, style: Dc }, l), Ut(e, (M) => g.createElement(fi.Provider, { value: R }, g.createElement(di.Provider, { value: C }, M))));
|
|
6621
6621
|
}), wc = g.forwardRef((e, n) => {
|
|
6622
6622
|
var t, r;
|
|
6623
6623
|
let o = _e(), i = g.useRef(null), a = g.useContext(gi), s = St(), l = pi(e), u = (r = (t = l.current) == null ? void 0 : t.forceMount) != null ? r : a?.forceMount;
|
|
6624
6624
|
Ue(() => {
|
|
6625
6625
|
if (!u) return s.item(o, a?.id);
|
|
6626
6626
|
}, [u]);
|
|
6627
|
-
let c = hi(o, i, [e.value, e.children, i], e.keywords), m = Un(), d = Oe((
|
|
6627
|
+
let c = hi(o, i, [e.value, e.children, i], e.keywords), m = Un(), d = Oe((k) => k.value && k.value === c.current), f = Oe((k) => u || s.filter() === !1 ? !0 : k.search ? k.filtered.items.get(o) > 0 : !0);
|
|
6628
6628
|
g.useEffect(() => {
|
|
6629
|
-
let
|
|
6630
|
-
if (!(!
|
|
6629
|
+
let k = i.current;
|
|
6630
|
+
if (!(!k || e.disabled)) return k.addEventListener(kn, v), () => k.removeEventListener(kn, v);
|
|
6631
6631
|
}, [f, e.onSelect, e.disabled]);
|
|
6632
6632
|
function v() {
|
|
6633
|
-
var
|
|
6634
|
-
p(), (
|
|
6633
|
+
var k, R;
|
|
6634
|
+
p(), (R = (k = l.current).onSelect) == null || R.call(k, c.current);
|
|
6635
6635
|
}
|
|
6636
6636
|
function p() {
|
|
6637
6637
|
m.setState("value", c.current, !0);
|
|
6638
6638
|
}
|
|
6639
6639
|
if (!f) return null;
|
|
6640
|
-
let { disabled: S, value:
|
|
6640
|
+
let { disabled: S, value: w, onSelect: x, forceMount: y, keywords: b, ..._ } = e;
|
|
6641
6641
|
return g.createElement(ue.div, { ref: We(i, n), ..._, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!S, "aria-selected": !!d, "data-disabled": !!S, "data-selected": !!d, onPointerMove: S || s.getDisablePointerSelection() ? void 0 : p, onClick: S ? void 0 : v }, e.children);
|
|
6642
6642
|
}), Sc = g.forwardRef((e, n) => {
|
|
6643
6643
|
let { heading: t, children: r, forceMount: o, ...i } = e, a = _e(), s = g.useRef(null), l = g.useRef(null), u = _e(), c = St(), m = Oe((f) => o || c.filter() === !1 ? !0 : f.search ? f.filtered.groups.has(a) : !0);
|
|
@@ -6741,7 +6741,7 @@ function Pc({ className: e, ...n }) {
|
|
|
6741
6741
|
{
|
|
6742
6742
|
"data-slot": "input-group",
|
|
6743
6743
|
role: "group",
|
|
6744
|
-
className:
|
|
6744
|
+
className: F(
|
|
6745
6745
|
"group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",
|
|
6746
6746
|
e
|
|
6747
6747
|
),
|
|
@@ -6776,7 +6776,7 @@ function Oc({
|
|
|
6776
6776
|
role: "group",
|
|
6777
6777
|
"data-slot": "input-group-addon",
|
|
6778
6778
|
"data-align": n,
|
|
6779
|
-
className:
|
|
6779
|
+
className: F(Nc({ align: n }), e),
|
|
6780
6780
|
onClick: (r) => {
|
|
6781
6781
|
r.target.closest("button") || r.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
6782
6782
|
},
|
|
@@ -6792,7 +6792,7 @@ function vi({
|
|
|
6792
6792
|
it,
|
|
6793
6793
|
{
|
|
6794
6794
|
"data-slot": "command",
|
|
6795
|
-
className:
|
|
6795
|
+
className: F(
|
|
6796
6796
|
"flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",
|
|
6797
6797
|
e
|
|
6798
6798
|
),
|
|
@@ -6804,12 +6804,12 @@ function bi({
|
|
|
6804
6804
|
className: e,
|
|
6805
6805
|
...n
|
|
6806
6806
|
}) {
|
|
6807
|
-
return /* @__PURE__ */ h("div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */
|
|
6807
|
+
return /* @__PURE__ */ h("div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */ W(Pc, { className: "h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!", children: [
|
|
6808
6808
|
/* @__PURE__ */ h(
|
|
6809
6809
|
it.Input,
|
|
6810
6810
|
{
|
|
6811
6811
|
"data-slot": "command-input",
|
|
6812
|
-
className:
|
|
6812
|
+
className: F(
|
|
6813
6813
|
"w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
6814
6814
|
e
|
|
6815
6815
|
),
|
|
@@ -6827,7 +6827,7 @@ function wi({
|
|
|
6827
6827
|
it.List,
|
|
6828
6828
|
{
|
|
6829
6829
|
"data-slot": "command-list",
|
|
6830
|
-
className:
|
|
6830
|
+
className: F(
|
|
6831
6831
|
"no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",
|
|
6832
6832
|
e
|
|
6833
6833
|
),
|
|
@@ -6843,7 +6843,7 @@ function Si({
|
|
|
6843
6843
|
it.Empty,
|
|
6844
6844
|
{
|
|
6845
6845
|
"data-slot": "command-empty",
|
|
6846
|
-
className:
|
|
6846
|
+
className: F("py-6 text-center text-sm", e),
|
|
6847
6847
|
...n
|
|
6848
6848
|
}
|
|
6849
6849
|
);
|
|
@@ -6856,7 +6856,7 @@ function yi({
|
|
|
6856
6856
|
it.Group,
|
|
6857
6857
|
{
|
|
6858
6858
|
"data-slot": "command-group",
|
|
6859
|
-
className:
|
|
6859
|
+
className: F(
|
|
6860
6860
|
"overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",
|
|
6861
6861
|
e
|
|
6862
6862
|
),
|
|
@@ -6869,11 +6869,11 @@ function Fn({
|
|
|
6869
6869
|
children: n,
|
|
6870
6870
|
...t
|
|
6871
6871
|
}) {
|
|
6872
|
-
return /* @__PURE__ */
|
|
6872
|
+
return /* @__PURE__ */ W(
|
|
6873
6873
|
it.Item,
|
|
6874
6874
|
{
|
|
6875
6875
|
"data-slot": "command-item",
|
|
6876
|
-
className:
|
|
6876
|
+
className: F(
|
|
6877
6877
|
"group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",
|
|
6878
6878
|
e
|
|
6879
6879
|
),
|
|
@@ -6904,7 +6904,7 @@ function Ri({
|
|
|
6904
6904
|
"data-slot": "popover-content",
|
|
6905
6905
|
align: n,
|
|
6906
6906
|
sideOffset: t,
|
|
6907
|
-
className:
|
|
6907
|
+
className: F(
|
|
6908
6908
|
"relative z-60 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-none data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
6909
6909
|
e
|
|
6910
6910
|
),
|
|
@@ -6924,13 +6924,13 @@ function et(e, n, t) {
|
|
|
6924
6924
|
r = m;
|
|
6925
6925
|
let f;
|
|
6926
6926
|
if (t.key && ((l = t.debug) != null && l.call(t)) && (f = Date.now()), o = n(...m), t.key && ((u = t.debug) != null && u.call(t))) {
|
|
6927
|
-
const v = Math.round((Date.now() - c) * 100) / 100, p = Math.round((Date.now() - f) * 100) / 100, S = p / 16,
|
|
6928
|
-
for (
|
|
6929
|
-
|
|
6930
|
-
return
|
|
6927
|
+
const v = Math.round((Date.now() - c) * 100) / 100, p = Math.round((Date.now() - f) * 100) / 100, S = p / 16, w = (x, y) => {
|
|
6928
|
+
for (x = String(x); x.length < y; )
|
|
6929
|
+
x = " " + x;
|
|
6930
|
+
return x;
|
|
6931
6931
|
};
|
|
6932
6932
|
console.info(
|
|
6933
|
-
`%c⏱ ${
|
|
6933
|
+
`%c⏱ ${w(p, 5)} /${w(v, 5)} ms`,
|
|
6934
6934
|
`
|
|
6935
6935
|
font-size: .6rem;
|
|
6936
6936
|
font-weight: bold;
|
|
@@ -7215,18 +7215,18 @@ class Gc {
|
|
|
7215
7215
|
let p, S;
|
|
7216
7216
|
if (v !== void 0 && this.options.lanes > 1) {
|
|
7217
7217
|
p = v;
|
|
7218
|
-
const
|
|
7218
|
+
const b = m[p], _ = b !== void 0 ? c[b] : void 0;
|
|
7219
7219
|
S = _ ? _.end + this.options.gap : r + o;
|
|
7220
7220
|
} else {
|
|
7221
|
-
const
|
|
7222
|
-
S =
|
|
7221
|
+
const b = this.options.lanes === 1 ? c[d - 1] : this.getFurthestMeasurement(c, d);
|
|
7222
|
+
S = b ? b.end + this.options.gap : r + o, p = b ? b.lane : d % this.options.lanes, this.options.lanes > 1 && this.laneAssignments.set(d, p);
|
|
7223
7223
|
}
|
|
7224
|
-
const
|
|
7224
|
+
const w = l.get(f), x = typeof w == "number" ? w : this.options.estimateSize(d), y = S + x;
|
|
7225
7225
|
c[d] = {
|
|
7226
7226
|
index: d,
|
|
7227
7227
|
start: S,
|
|
7228
|
-
size:
|
|
7229
|
-
end:
|
|
7228
|
+
size: x,
|
|
7229
|
+
end: y,
|
|
7230
7230
|
key: f,
|
|
7231
7231
|
lane: p
|
|
7232
7232
|
}, m[p] = d;
|
|
@@ -7546,110 +7546,111 @@ const Uc = ({
|
|
|
7546
7546
|
selectedOption: t,
|
|
7547
7547
|
onSelectOption: r,
|
|
7548
7548
|
virtualizationOverscan: o = 10,
|
|
7549
|
-
virtualizationItemHeight: i = 34
|
|
7549
|
+
virtualizationItemHeight: i = 34,
|
|
7550
|
+
showSearch: a = !0
|
|
7550
7551
|
}) => {
|
|
7551
|
-
const [
|
|
7552
|
-
count:
|
|
7553
|
-
getScrollElement: () =>
|
|
7552
|
+
const [s, l] = g.useState(e), [u, c] = g.useState(0), [m, d] = g.useState(!1), f = g.useRef(null), v = qn({
|
|
7553
|
+
count: s.length,
|
|
7554
|
+
getScrollElement: () => f.current,
|
|
7554
7555
|
estimateSize: () => i,
|
|
7555
7556
|
overscan: o
|
|
7556
|
-
}),
|
|
7557
|
-
|
|
7557
|
+
}), p = v.getVirtualItems(), S = (y) => {
|
|
7558
|
+
v.scrollToIndex(y, {
|
|
7558
7559
|
align: "center"
|
|
7559
7560
|
});
|
|
7560
|
-
},
|
|
7561
|
-
|
|
7561
|
+
}, w = (y) => {
|
|
7562
|
+
d(!1), l(
|
|
7562
7563
|
e.filter(
|
|
7563
|
-
(
|
|
7564
|
+
(b) => b.value.toLowerCase().includes(y.toLowerCase() ?? [])
|
|
7564
7565
|
)
|
|
7565
7566
|
);
|
|
7566
|
-
},
|
|
7567
|
-
switch (
|
|
7567
|
+
}, x = (y) => {
|
|
7568
|
+
switch (y.key) {
|
|
7568
7569
|
case "ArrowDown": {
|
|
7569
|
-
|
|
7570
|
-
const
|
|
7571
|
-
return
|
|
7570
|
+
y.preventDefault(), d(!0), c((b) => {
|
|
7571
|
+
const _ = b === -1 ? 0 : Math.min(b + 1, s.length - 1);
|
|
7572
|
+
return S(_), _;
|
|
7572
7573
|
});
|
|
7573
7574
|
break;
|
|
7574
7575
|
}
|
|
7575
7576
|
case "ArrowUp": {
|
|
7576
|
-
|
|
7577
|
-
const
|
|
7578
|
-
return
|
|
7577
|
+
y.preventDefault(), d(!0), c((b) => {
|
|
7578
|
+
const _ = b === -1 ? s.length - 1 : Math.max(b - 1, 0);
|
|
7579
|
+
return S(_), _;
|
|
7579
7580
|
});
|
|
7580
7581
|
break;
|
|
7581
7582
|
}
|
|
7582
7583
|
case "Enter": {
|
|
7583
|
-
|
|
7584
|
+
y.preventDefault(), s[u] && r?.(s[u].value);
|
|
7584
7585
|
break;
|
|
7585
7586
|
}
|
|
7586
7587
|
}
|
|
7587
7588
|
};
|
|
7588
7589
|
return g.useEffect(() => {
|
|
7589
7590
|
if (t) {
|
|
7590
|
-
const
|
|
7591
|
-
(
|
|
7591
|
+
const y = s.find(
|
|
7592
|
+
(b) => b.value === t
|
|
7592
7593
|
);
|
|
7593
|
-
if (
|
|
7594
|
-
const
|
|
7595
|
-
|
|
7594
|
+
if (y) {
|
|
7595
|
+
const b = s.indexOf(y);
|
|
7596
|
+
c(b), v.scrollToIndex(b, {
|
|
7596
7597
|
align: "center"
|
|
7597
7598
|
});
|
|
7598
7599
|
}
|
|
7599
7600
|
}
|
|
7600
|
-
}, [t,
|
|
7601
|
-
/* @__PURE__ */ h(bi, { onValueChange:
|
|
7602
|
-
/* @__PURE__ */
|
|
7601
|
+
}, [t, s, v]), /* @__PURE__ */ W(vi, { shouldFilter: !1, onKeyDown: x, children: [
|
|
7602
|
+
a && /* @__PURE__ */ h(bi, { onValueChange: w, placeholder: n }),
|
|
7603
|
+
/* @__PURE__ */ W(
|
|
7603
7604
|
wi,
|
|
7604
7605
|
{
|
|
7605
|
-
ref:
|
|
7606
|
+
ref: f,
|
|
7606
7607
|
style: {
|
|
7607
7608
|
width: "100%",
|
|
7608
7609
|
overflow: "auto"
|
|
7609
7610
|
},
|
|
7610
|
-
onMouseDown: () =>
|
|
7611
|
-
onMouseMove: () =>
|
|
7611
|
+
onMouseDown: () => d(!1),
|
|
7612
|
+
onMouseMove: () => d(!1),
|
|
7612
7613
|
children: [
|
|
7613
7614
|
/* @__PURE__ */ h(Si, { children: "No item found." }),
|
|
7614
7615
|
/* @__PURE__ */ h(yi, { children: /* @__PURE__ */ h(
|
|
7615
7616
|
"div",
|
|
7616
7617
|
{
|
|
7617
7618
|
style: {
|
|
7618
|
-
height: `${
|
|
7619
|
+
height: `${v.getTotalSize()}px`,
|
|
7619
7620
|
width: "100%",
|
|
7620
7621
|
position: "relative"
|
|
7621
7622
|
},
|
|
7622
|
-
children:
|
|
7623
|
+
children: p.map((y) => /* @__PURE__ */ W(
|
|
7623
7624
|
Fn,
|
|
7624
7625
|
{
|
|
7625
|
-
disabled:
|
|
7626
|
-
className:
|
|
7626
|
+
disabled: m || s[y.index].disabled,
|
|
7627
|
+
className: F(
|
|
7627
7628
|
"absolute left-0 top-0 w-full bg-transparent cursor-pointer",
|
|
7628
|
-
|
|
7629
|
-
|
|
7629
|
+
u === y.index && "bg-accent text-accent-foreground",
|
|
7630
|
+
m && u !== y.index && "aria-selected:bg-transparent aria-selected:text-primary"
|
|
7630
7631
|
),
|
|
7631
7632
|
style: {
|
|
7632
|
-
height: `${
|
|
7633
|
-
transform: `translateY(${
|
|
7633
|
+
height: `${y.size}px`,
|
|
7634
|
+
transform: `translateY(${y.start}px)`
|
|
7634
7635
|
},
|
|
7635
|
-
value:
|
|
7636
|
-
onMouseEnter: () => !
|
|
7637
|
-
onMouseLeave: () => !
|
|
7636
|
+
value: s[y.index].value,
|
|
7637
|
+
onMouseEnter: () => !m && c(y.index),
|
|
7638
|
+
onMouseLeave: () => !m && c(-1),
|
|
7638
7639
|
onSelect: r,
|
|
7639
7640
|
children: [
|
|
7640
7641
|
/* @__PURE__ */ h(
|
|
7641
7642
|
Bt,
|
|
7642
7643
|
{
|
|
7643
|
-
className:
|
|
7644
|
+
className: F(
|
|
7644
7645
|
"mr-2 h-4 w-4",
|
|
7645
|
-
t ===
|
|
7646
|
+
t === s[y.index].value ? "opacity-100" : "opacity-0"
|
|
7646
7647
|
)
|
|
7647
7648
|
}
|
|
7648
7649
|
),
|
|
7649
|
-
|
|
7650
|
+
s[y.index].label
|
|
7650
7651
|
]
|
|
7651
7652
|
},
|
|
7652
|
-
|
|
7653
|
+
s[y.index].value
|
|
7653
7654
|
))
|
|
7654
7655
|
}
|
|
7655
7656
|
) })
|
|
@@ -7671,15 +7672,15 @@ function nf(e) {
|
|
|
7671
7672
|
() => new Set(r.map((l) => l.value)),
|
|
7672
7673
|
[r]
|
|
7673
7674
|
).has(e.value) ? e.value : "", s = a.length > 0 ? o.get(a) ?? a : e.placeholder;
|
|
7674
|
-
return /* @__PURE__ */ h("div", { className:
|
|
7675
|
-
/* @__PURE__ */ h(xi, { asChild: !0, children: /* @__PURE__ */
|
|
7675
|
+
return /* @__PURE__ */ h("div", { className: F("w-full", e.className), children: /* @__PURE__ */ W(Ci, { open: n, onOpenChange: t, children: [
|
|
7676
|
+
/* @__PURE__ */ h(xi, { asChild: !0, children: /* @__PURE__ */ W(
|
|
7676
7677
|
vt,
|
|
7677
7678
|
{
|
|
7678
7679
|
variant: "outline",
|
|
7679
7680
|
role: "combobox",
|
|
7680
7681
|
"aria-expanded": n,
|
|
7681
7682
|
disabled: e.disabled,
|
|
7682
|
-
className:
|
|
7683
|
+
className: F(
|
|
7683
7684
|
"w-full flex justify-between",
|
|
7684
7685
|
e.triggerClassName
|
|
7685
7686
|
),
|
|
@@ -7702,6 +7703,7 @@ function nf(e) {
|
|
|
7702
7703
|
label: l.label,
|
|
7703
7704
|
disabled: l.disabled
|
|
7704
7705
|
})),
|
|
7706
|
+
showSearch: e.showSearch,
|
|
7705
7707
|
placeholder: e.placeholder ?? "Select an option",
|
|
7706
7708
|
selectedOption: a,
|
|
7707
7709
|
onSelectOption: (l) => {
|
|
@@ -7721,7 +7723,7 @@ function Wr({
|
|
|
7721
7723
|
ir.Root,
|
|
7722
7724
|
{
|
|
7723
7725
|
"data-slot": "checkbox",
|
|
7724
|
-
className:
|
|
7726
|
+
className: F(
|
|
7725
7727
|
"peer size-4 shrink-0 rounded-[4px] border border-input bg-background shadow-xs outline-none transition-shadow focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
7726
7728
|
e
|
|
7727
7729
|
),
|
|
@@ -7747,72 +7749,73 @@ function qc({
|
|
|
7747
7749
|
allValue: a,
|
|
7748
7750
|
disabled: s,
|
|
7749
7751
|
virtualizationOverscan: l = 10,
|
|
7750
|
-
virtualizationItemHeight: u = 34
|
|
7752
|
+
virtualizationItemHeight: u = 34,
|
|
7753
|
+
showSearch: c = !0
|
|
7751
7754
|
}) {
|
|
7752
|
-
const [
|
|
7753
|
-
const
|
|
7754
|
-
return
|
|
7755
|
-
}, [e,
|
|
7755
|
+
const [m, d] = g.useState(""), [f, v] = g.useState(-1), [p, S] = g.useState(!1), w = g.useRef(null), x = g.useMemo(() => {
|
|
7756
|
+
const C = m.trim().toLowerCase();
|
|
7757
|
+
return C.length === 0 ? e : e.filter((E) => `${E.label} ${E.value}`.toLowerCase().includes(C));
|
|
7758
|
+
}, [e, m]), y = g.useMemo(
|
|
7756
7759
|
() => new Set(t),
|
|
7757
7760
|
[t]
|
|
7758
|
-
),
|
|
7759
|
-
count:
|
|
7760
|
-
getScrollElement: () =>
|
|
7761
|
+
), b = qn({
|
|
7762
|
+
count: x.length,
|
|
7763
|
+
getScrollElement: () => w.current,
|
|
7761
7764
|
estimateSize: () => u,
|
|
7762
7765
|
overscan: l
|
|
7763
|
-
}),
|
|
7764
|
-
(
|
|
7765
|
-
|
|
7766
|
+
}), _ = b.getVirtualItems(), k = g.useCallback(
|
|
7767
|
+
(C) => {
|
|
7768
|
+
b.scrollToIndex(C, { align: "center" });
|
|
7766
7769
|
},
|
|
7767
|
-
[
|
|
7770
|
+
[b]
|
|
7768
7771
|
);
|
|
7769
|
-
return /* @__PURE__ */
|
|
7770
|
-
switch (
|
|
7772
|
+
return /* @__PURE__ */ W(vi, { shouldFilter: !1, onKeyDown: (C) => {
|
|
7773
|
+
switch (C.key) {
|
|
7771
7774
|
case "ArrowDown": {
|
|
7772
|
-
|
|
7773
|
-
const
|
|
7774
|
-
return
|
|
7775
|
+
C.preventDefault(), S(!0), v((E) => {
|
|
7776
|
+
const I = Math.min(E + 1, x.length - 1);
|
|
7777
|
+
return I >= 0 && k(I), I;
|
|
7775
7778
|
});
|
|
7776
7779
|
break;
|
|
7777
7780
|
}
|
|
7778
7781
|
case "ArrowUp": {
|
|
7779
|
-
|
|
7780
|
-
const
|
|
7781
|
-
return
|
|
7782
|
+
C.preventDefault(), S(!0), v((E) => {
|
|
7783
|
+
const I = Math.max(E - 1, 0);
|
|
7784
|
+
return I >= 0 && k(I), I;
|
|
7782
7785
|
});
|
|
7783
7786
|
break;
|
|
7784
7787
|
}
|
|
7785
7788
|
case "Enter": {
|
|
7786
|
-
if (
|
|
7789
|
+
if (f < 0 || !x[f])
|
|
7787
7790
|
return;
|
|
7788
|
-
const E =
|
|
7791
|
+
const E = x[f];
|
|
7789
7792
|
if (s || E.disabled)
|
|
7790
7793
|
return;
|
|
7791
|
-
|
|
7794
|
+
C.preventDefault(), r(E.value);
|
|
7792
7795
|
break;
|
|
7793
7796
|
}
|
|
7794
7797
|
}
|
|
7795
7798
|
}, children: [
|
|
7796
|
-
/* @__PURE__ */ h(
|
|
7799
|
+
c && /* @__PURE__ */ h(
|
|
7797
7800
|
bi,
|
|
7798
7801
|
{
|
|
7799
|
-
value:
|
|
7800
|
-
onValueChange: (
|
|
7801
|
-
|
|
7802
|
+
value: m,
|
|
7803
|
+
onValueChange: (C) => {
|
|
7804
|
+
d(C), v(-1), S(!1);
|
|
7802
7805
|
},
|
|
7803
7806
|
placeholder: n
|
|
7804
7807
|
}
|
|
7805
7808
|
),
|
|
7806
|
-
/* @__PURE__ */
|
|
7809
|
+
/* @__PURE__ */ W(
|
|
7807
7810
|
wi,
|
|
7808
7811
|
{
|
|
7809
|
-
ref:
|
|
7810
|
-
onMouseDown: () =>
|
|
7811
|
-
onMouseMove: () =>
|
|
7812
|
+
ref: w,
|
|
7813
|
+
onMouseDown: () => S(!1),
|
|
7814
|
+
onMouseMove: () => S(!1),
|
|
7812
7815
|
children: [
|
|
7813
7816
|
/* @__PURE__ */ h(Si, { children: "No item found." }),
|
|
7814
|
-
/* @__PURE__ */
|
|
7815
|
-
o ? /* @__PURE__ */
|
|
7817
|
+
/* @__PURE__ */ W(yi, { children: [
|
|
7818
|
+
o ? /* @__PURE__ */ W(
|
|
7816
7819
|
Fn,
|
|
7817
7820
|
{
|
|
7818
7821
|
value: a,
|
|
@@ -7823,7 +7826,7 @@ function qc({
|
|
|
7823
7826
|
/* @__PURE__ */ h(
|
|
7824
7827
|
Wr,
|
|
7825
7828
|
{
|
|
7826
|
-
checked:
|
|
7829
|
+
checked: y.has(a),
|
|
7827
7830
|
className: "pointer-events-none"
|
|
7828
7831
|
}
|
|
7829
7832
|
),
|
|
@@ -7836,34 +7839,34 @@ function qc({
|
|
|
7836
7839
|
"div",
|
|
7837
7840
|
{
|
|
7838
7841
|
style: {
|
|
7839
|
-
height: `${
|
|
7842
|
+
height: `${b.getTotalSize()}px`,
|
|
7840
7843
|
width: "100%",
|
|
7841
7844
|
position: "relative"
|
|
7842
7845
|
},
|
|
7843
|
-
children:
|
|
7844
|
-
const E =
|
|
7845
|
-
return /* @__PURE__ */
|
|
7846
|
+
children: _.map((C) => {
|
|
7847
|
+
const E = x[C.index], I = y.has(E.value);
|
|
7848
|
+
return /* @__PURE__ */ W(
|
|
7846
7849
|
Fn,
|
|
7847
7850
|
{
|
|
7848
7851
|
value: E.value,
|
|
7849
|
-
disabled: s || E.disabled ||
|
|
7852
|
+
disabled: s || E.disabled || p,
|
|
7850
7853
|
onSelect: () => r(E.value),
|
|
7851
|
-
onMouseEnter: () => !
|
|
7852
|
-
onMouseLeave: () => !
|
|
7853
|
-
className:
|
|
7854
|
+
onMouseEnter: () => !p && v(C.index),
|
|
7855
|
+
onMouseLeave: () => !p && v(-1),
|
|
7856
|
+
className: F(
|
|
7854
7857
|
"absolute left-0 top-0 w-full bg-transparent cursor-pointer",
|
|
7855
|
-
|
|
7856
|
-
|
|
7858
|
+
f === C.index && "bg-accent text-accent-foreground",
|
|
7859
|
+
p && f !== C.index && "aria-selected:bg-transparent aria-selected:text-primary"
|
|
7857
7860
|
),
|
|
7858
7861
|
style: {
|
|
7859
|
-
height: `${
|
|
7860
|
-
transform: `translateY(${
|
|
7862
|
+
height: `${C.size}px`,
|
|
7863
|
+
transform: `translateY(${C.start}px)`
|
|
7861
7864
|
},
|
|
7862
7865
|
children: [
|
|
7863
7866
|
/* @__PURE__ */ h(
|
|
7864
7867
|
Wr,
|
|
7865
7868
|
{
|
|
7866
|
-
checked:
|
|
7869
|
+
checked: I,
|
|
7867
7870
|
className: "pointer-events-none"
|
|
7868
7871
|
}
|
|
7869
7872
|
),
|
|
@@ -7897,78 +7900,79 @@ function rf({
|
|
|
7897
7900
|
allValue: d = "all",
|
|
7898
7901
|
selectedCountLabel: f = "geselecteerd",
|
|
7899
7902
|
virtualizationOverscan: v = 10,
|
|
7900
|
-
virtualizationItemHeight: p = 34
|
|
7903
|
+
virtualizationItemHeight: p = 34,
|
|
7904
|
+
showSearch: S = !0
|
|
7901
7905
|
}) {
|
|
7902
|
-
const
|
|
7903
|
-
const
|
|
7904
|
-
return e.forEach((
|
|
7905
|
-
|
|
7906
|
-
}), Array.from(
|
|
7907
|
-
}, [e]),
|
|
7908
|
-
() =>
|
|
7909
|
-
[d,
|
|
7910
|
-
),
|
|
7911
|
-
() => /* @__PURE__ */ new Set([d, ...
|
|
7912
|
-
[d,
|
|
7913
|
-
),
|
|
7914
|
-
const
|
|
7915
|
-
(
|
|
7906
|
+
const w = g.useMemo(() => {
|
|
7907
|
+
const I = /* @__PURE__ */ new Map();
|
|
7908
|
+
return e.forEach((T) => {
|
|
7909
|
+
I.has(T.value) || I.set(T.value, T);
|
|
7910
|
+
}), Array.from(I.values());
|
|
7911
|
+
}, [e]), x = g.useMemo(
|
|
7912
|
+
() => w.filter((I) => I.value !== d),
|
|
7913
|
+
[d, w]
|
|
7914
|
+
), y = g.useMemo(
|
|
7915
|
+
() => /* @__PURE__ */ new Set([d, ...x.map((I) => I.value)]),
|
|
7916
|
+
[d, x]
|
|
7917
|
+
), b = g.useMemo(() => {
|
|
7918
|
+
const I = Array.from(new Set(n)).filter(
|
|
7919
|
+
(T) => y.has(T)
|
|
7916
7920
|
);
|
|
7917
|
-
return
|
|
7918
|
-
}, [d, c,
|
|
7919
|
-
const
|
|
7920
|
-
return
|
|
7921
|
-
|
|
7922
|
-
}),
|
|
7923
|
-
}, [d, m,
|
|
7924
|
-
(
|
|
7925
|
-
).join(", ") : `${
|
|
7926
|
-
(
|
|
7927
|
-
if (
|
|
7921
|
+
return I.includes(d) ? [d] : I.length === 0 && c ? [d] : I;
|
|
7922
|
+
}, [d, c, y, n]), _ = g.useMemo(() => {
|
|
7923
|
+
const I = /* @__PURE__ */ new Map();
|
|
7924
|
+
return x.forEach((T) => {
|
|
7925
|
+
I.set(T.value, T.label);
|
|
7926
|
+
}), I.set(d, m), I;
|
|
7927
|
+
}, [d, m, x]), k = g.useMemo(() => b.length === 0 ? r : b.length <= 2 ? b.map(
|
|
7928
|
+
(I) => _.get(I) ?? I
|
|
7929
|
+
).join(", ") : `${b.length} ${f}`, [_, b, r, f]), R = g.useCallback(
|
|
7930
|
+
(I) => {
|
|
7931
|
+
if (I === d) {
|
|
7928
7932
|
t([d]);
|
|
7929
7933
|
return;
|
|
7930
7934
|
}
|
|
7931
|
-
if (
|
|
7932
|
-
const
|
|
7933
|
-
(
|
|
7935
|
+
if (b.includes(I)) {
|
|
7936
|
+
const H = b.filter(
|
|
7937
|
+
($) => $ !== I
|
|
7934
7938
|
);
|
|
7935
7939
|
t(
|
|
7936
|
-
|
|
7940
|
+
H.length === 0 && c ? [d] : H
|
|
7937
7941
|
);
|
|
7938
7942
|
return;
|
|
7939
7943
|
}
|
|
7940
7944
|
t([
|
|
7941
|
-
...
|
|
7942
|
-
(
|
|
7945
|
+
...b.filter(
|
|
7946
|
+
(H) => H !== d
|
|
7943
7947
|
),
|
|
7944
|
-
|
|
7948
|
+
I
|
|
7945
7949
|
]);
|
|
7946
7950
|
},
|
|
7947
|
-
[d,
|
|
7948
|
-
), [
|
|
7949
|
-
return /* @__PURE__ */
|
|
7950
|
-
i ?
|
|
7951
|
+
[d, b, t, c]
|
|
7952
|
+
), [C, E] = g.useState(!1);
|
|
7953
|
+
return /* @__PURE__ */ W("div", { className: F("w-full", a), children: [
|
|
7954
|
+
i ? b.map((I) => /* @__PURE__ */ h(
|
|
7951
7955
|
"input",
|
|
7952
7956
|
{
|
|
7953
7957
|
type: "hidden",
|
|
7954
7958
|
name: i,
|
|
7955
|
-
value:
|
|
7959
|
+
value: I
|
|
7956
7960
|
},
|
|
7957
|
-
`${i}-${
|
|
7961
|
+
`${i}-${I}`
|
|
7958
7962
|
)) : null,
|
|
7959
|
-
/* @__PURE__ */
|
|
7960
|
-
/* @__PURE__ */ h(xi, { asChild: !0, children: /* @__PURE__ */
|
|
7963
|
+
/* @__PURE__ */ W(Ci, { open: C, onOpenChange: E, children: [
|
|
7964
|
+
/* @__PURE__ */ h(xi, { asChild: !0, children: /* @__PURE__ */ W(
|
|
7961
7965
|
"button",
|
|
7962
7966
|
{
|
|
7963
7967
|
type: "button",
|
|
7964
7968
|
disabled: o,
|
|
7965
|
-
className:
|
|
7969
|
+
className: F(
|
|
7966
7970
|
si,
|
|
7967
|
-
|
|
7971
|
+
b.length === 0 && "text-muted-foreground",
|
|
7968
7972
|
s
|
|
7969
7973
|
),
|
|
7970
7974
|
children: [
|
|
7971
|
-
/* @__PURE__ */ h("span", { className: "line-clamp-1 text-left", children:
|
|
7975
|
+
/* @__PURE__ */ h("span", { className: "line-clamp-1 text-left", children: k }),
|
|
7972
7976
|
/* @__PURE__ */ h(bt, { className: "size-4 text-muted-foreground" })
|
|
7973
7977
|
]
|
|
7974
7978
|
}
|
|
@@ -7978,7 +7982,7 @@ function rf({
|
|
|
7978
7982
|
{
|
|
7979
7983
|
align: "start",
|
|
7980
7984
|
portalContainer: u,
|
|
7981
|
-
className:
|
|
7985
|
+
className: F(
|
|
7982
7986
|
li,
|
|
7983
7987
|
"w-auto min-w-(--radix-popover-trigger-width) border-0 p-0",
|
|
7984
7988
|
l
|
|
@@ -7986,10 +7990,11 @@ function rf({
|
|
|
7986
7990
|
children: /* @__PURE__ */ h(
|
|
7987
7991
|
qc,
|
|
7988
7992
|
{
|
|
7989
|
-
|
|
7993
|
+
showSearch: S,
|
|
7994
|
+
options: x,
|
|
7990
7995
|
placeholder: r,
|
|
7991
|
-
selectedValues:
|
|
7992
|
-
onToggleOption:
|
|
7996
|
+
selectedValues: b,
|
|
7997
|
+
onToggleOption: R,
|
|
7993
7998
|
showSelectAll: c,
|
|
7994
7999
|
selectAllLabel: m,
|
|
7995
8000
|
allValue: d,
|
|
@@ -8204,15 +8209,15 @@ function Pt(e, n, t, r) {
|
|
|
8204
8209
|
headers: []
|
|
8205
8210
|
}, p = [];
|
|
8206
8211
|
d.forEach((S) => {
|
|
8207
|
-
const
|
|
8208
|
-
let
|
|
8209
|
-
if (
|
|
8210
|
-
|
|
8212
|
+
const w = [...p].reverse()[0], x = S.column.depth === v.depth;
|
|
8213
|
+
let y, b = !1;
|
|
8214
|
+
if (x && S.column.parent ? y = S.column.parent : (y = S.column, b = !0), w && w?.column === y)
|
|
8215
|
+
w.subHeaders.push(S);
|
|
8211
8216
|
else {
|
|
8212
|
-
const _ = jr(t,
|
|
8213
|
-
id: [r, f,
|
|
8214
|
-
isPlaceholder:
|
|
8215
|
-
placeholderId:
|
|
8217
|
+
const _ = jr(t, y, {
|
|
8218
|
+
id: [r, f, y.id, S?.id].filter(Boolean).join("_"),
|
|
8219
|
+
isPlaceholder: b,
|
|
8220
|
+
placeholderId: b ? `${p.filter((k) => k.column === y).length}` : void 0,
|
|
8216
8221
|
depth: f,
|
|
8217
8222
|
index: p.length
|
|
8218
8223
|
});
|
|
@@ -8226,16 +8231,16 @@ function Pt(e, n, t, r) {
|
|
|
8226
8231
|
}));
|
|
8227
8232
|
u(c, a - 1), l.reverse();
|
|
8228
8233
|
const m = (d) => d.filter((v) => v.column.getIsVisible()).map((v) => {
|
|
8229
|
-
let p = 0, S = 0,
|
|
8230
|
-
v.subHeaders && v.subHeaders.length ? (
|
|
8234
|
+
let p = 0, S = 0, w = [0];
|
|
8235
|
+
v.subHeaders && v.subHeaders.length ? (w = [], m(v.subHeaders).forEach((y) => {
|
|
8231
8236
|
let {
|
|
8232
|
-
colSpan:
|
|
8237
|
+
colSpan: b,
|
|
8233
8238
|
rowSpan: _
|
|
8234
|
-
} =
|
|
8235
|
-
p +=
|
|
8239
|
+
} = y;
|
|
8240
|
+
p += b, w.push(_);
|
|
8236
8241
|
})) : p = 1;
|
|
8237
|
-
const
|
|
8238
|
-
return S = S +
|
|
8242
|
+
const x = Math.min(...w);
|
|
8243
|
+
return S = S + x, v.colSpan = p, v.rowSpan = S, {
|
|
8239
8244
|
colSpan: p,
|
|
8240
8245
|
rowSpan: S
|
|
8241
8246
|
};
|
|
@@ -8742,25 +8747,25 @@ const Nt = {
|
|
|
8742
8747
|
return (i) => {
|
|
8743
8748
|
if (!r || !o || (i.persist == null || i.persist(), vn(i) && i.touches && i.touches.length > 1))
|
|
8744
8749
|
return;
|
|
8745
|
-
const a = e.getSize(), s = e ? e.getLeafHeaders().map((
|
|
8746
|
-
typeof
|
|
8747
|
-
var
|
|
8748
|
-
const
|
|
8749
|
-
return
|
|
8750
|
-
let [
|
|
8751
|
-
u[
|
|
8750
|
+
const a = e.getSize(), s = e ? e.getLeafHeaders().map((w) => [w.column.id, w.column.getSize()]) : [[r.id, r.getSize()]], l = vn(i) ? Math.round(i.touches[0].clientX) : i.clientX, u = {}, c = (w, x) => {
|
|
8751
|
+
typeof x == "number" && (n.setColumnSizingInfo((y) => {
|
|
8752
|
+
var b, _;
|
|
8753
|
+
const k = n.options.columnResizeDirection === "rtl" ? -1 : 1, R = (x - ((b = y?.startOffset) != null ? b : 0)) * k, C = Math.max(R / ((_ = y?.startSize) != null ? _ : 0), -0.999999);
|
|
8754
|
+
return y.columnSizingStart.forEach((E) => {
|
|
8755
|
+
let [I, T] = E;
|
|
8756
|
+
u[I] = Math.round(Math.max(T + T * C, 0) * 100) / 100;
|
|
8752
8757
|
}), {
|
|
8753
|
-
...
|
|
8754
|
-
deltaOffset:
|
|
8755
|
-
deltaPercentage:
|
|
8758
|
+
...y,
|
|
8759
|
+
deltaOffset: R,
|
|
8760
|
+
deltaPercentage: C
|
|
8756
8761
|
};
|
|
8757
|
-
}), (n.options.columnResizeMode === "onChange" ||
|
|
8758
|
-
...
|
|
8762
|
+
}), (n.options.columnResizeMode === "onChange" || w === "end") && n.setColumnSizing((y) => ({
|
|
8763
|
+
...y,
|
|
8759
8764
|
...u
|
|
8760
8765
|
})));
|
|
8761
|
-
}, m = (
|
|
8762
|
-
c("end",
|
|
8763
|
-
...
|
|
8766
|
+
}, m = (w) => c("move", w), d = (w) => {
|
|
8767
|
+
c("end", w), n.setColumnSizingInfo((x) => ({
|
|
8768
|
+
...x,
|
|
8764
8769
|
isResizingColumn: !1,
|
|
8765
8770
|
startOffset: null,
|
|
8766
8771
|
startSize: null,
|
|
@@ -8769,21 +8774,21 @@ const Nt = {
|
|
|
8769
8774
|
columnSizingStart: []
|
|
8770
8775
|
}));
|
|
8771
8776
|
}, f = md(t), v = {
|
|
8772
|
-
moveHandler: (
|
|
8773
|
-
upHandler: (
|
|
8774
|
-
f?.removeEventListener("mousemove", v.moveHandler), f?.removeEventListener("mouseup", v.upHandler), d(
|
|
8777
|
+
moveHandler: (w) => m(w.clientX),
|
|
8778
|
+
upHandler: (w) => {
|
|
8779
|
+
f?.removeEventListener("mousemove", v.moveHandler), f?.removeEventListener("mouseup", v.upHandler), d(w.clientX);
|
|
8775
8780
|
}
|
|
8776
8781
|
}, p = {
|
|
8777
|
-
moveHandler: (
|
|
8778
|
-
upHandler: (
|
|
8779
|
-
var
|
|
8780
|
-
f?.removeEventListener("touchmove", p.moveHandler), f?.removeEventListener("touchend", p.upHandler),
|
|
8782
|
+
moveHandler: (w) => (w.cancelable && (w.preventDefault(), w.stopPropagation()), m(w.touches[0].clientX), !1),
|
|
8783
|
+
upHandler: (w) => {
|
|
8784
|
+
var x;
|
|
8785
|
+
f?.removeEventListener("touchmove", p.moveHandler), f?.removeEventListener("touchend", p.upHandler), w.cancelable && (w.preventDefault(), w.stopPropagation()), d((x = w.touches[0]) == null ? void 0 : x.clientX);
|
|
8781
8786
|
}
|
|
8782
8787
|
}, S = hd() ? {
|
|
8783
8788
|
passive: !1
|
|
8784
8789
|
} : !1;
|
|
8785
|
-
vn(i) ? (f?.addEventListener("touchmove", p.moveHandler, S), f?.addEventListener("touchend", p.upHandler, S)) : (f?.addEventListener("mousemove", v.moveHandler, S), f?.addEventListener("mouseup", v.upHandler, S)), n.setColumnSizingInfo((
|
|
8786
|
-
...
|
|
8790
|
+
vn(i) ? (f?.addEventListener("touchmove", p.moveHandler, S), f?.addEventListener("touchend", p.upHandler, S)) : (f?.addEventListener("mousemove", v.moveHandler, S), f?.addEventListener("mouseup", v.upHandler, S)), n.setColumnSizingInfo((w) => ({
|
|
8791
|
+
...w,
|
|
8787
8792
|
startOffset: l,
|
|
8788
8793
|
startSize: a,
|
|
8789
8794
|
deltaOffset: 0,
|
|
@@ -9582,9 +9587,9 @@ function Pd(e) {
|
|
|
9582
9587
|
_getColumnDefs: () => o.options.columns,
|
|
9583
9588
|
getAllColumns: V(() => [o._getColumnDefs()], (d) => {
|
|
9584
9589
|
const f = function(v, p, S) {
|
|
9585
|
-
return S === void 0 && (S = 0), v.map((
|
|
9586
|
-
const
|
|
9587
|
-
return
|
|
9590
|
+
return S === void 0 && (S = 0), v.map((w) => {
|
|
9591
|
+
const x = Zc(o, w, S, p), y = w;
|
|
9592
|
+
return x.columns = y.columns ? f(y.columns, x, S + 1) : [], x;
|
|
9588
9593
|
});
|
|
9589
9594
|
};
|
|
9590
9595
|
return f(d);
|
|
@@ -9774,18 +9779,18 @@ function zd() {
|
|
|
9774
9779
|
return u.sort((c, m) => {
|
|
9775
9780
|
for (let f = 0; f < i.length; f += 1) {
|
|
9776
9781
|
var d;
|
|
9777
|
-
const v = i[f], p = a[v.id], S = p.sortUndefined,
|
|
9778
|
-
let
|
|
9782
|
+
const v = i[f], p = a[v.id], S = p.sortUndefined, w = (d = v?.desc) != null ? d : !1;
|
|
9783
|
+
let x = 0;
|
|
9779
9784
|
if (S) {
|
|
9780
|
-
const
|
|
9781
|
-
if (_ ||
|
|
9785
|
+
const y = c.getValue(v.id), b = m.getValue(v.id), _ = y === void 0, k = b === void 0;
|
|
9786
|
+
if (_ || k) {
|
|
9782
9787
|
if (S === "first") return _ ? -1 : 1;
|
|
9783
9788
|
if (S === "last") return _ ? 1 : -1;
|
|
9784
|
-
|
|
9789
|
+
x = _ && k ? 0 : _ ? S : -S;
|
|
9785
9790
|
}
|
|
9786
9791
|
}
|
|
9787
|
-
if (
|
|
9788
|
-
return
|
|
9792
|
+
if (x === 0 && (x = p.sortingFn(c, m, v.id)), x !== 0)
|
|
9793
|
+
return w && (x *= -1), p.invertSorting && (x *= -1), x;
|
|
9789
9794
|
}
|
|
9790
9795
|
return c.index - m.index;
|
|
9791
9796
|
}), u.forEach((c) => {
|
|
@@ -9851,7 +9856,7 @@ function Gd({ className: e, ...n }) {
|
|
|
9851
9856
|
"table",
|
|
9852
9857
|
{
|
|
9853
9858
|
"data-slot": "table",
|
|
9854
|
-
className:
|
|
9859
|
+
className: F("w-full caption-bottom text-sm", e),
|
|
9855
9860
|
...n
|
|
9856
9861
|
}
|
|
9857
9862
|
)
|
|
@@ -9863,7 +9868,7 @@ function Wd({ className: e, ...n }) {
|
|
|
9863
9868
|
"thead",
|
|
9864
9869
|
{
|
|
9865
9870
|
"data-slot": "table-header",
|
|
9866
|
-
className:
|
|
9871
|
+
className: F("[&_tr]:border-b", e),
|
|
9867
9872
|
...n
|
|
9868
9873
|
}
|
|
9869
9874
|
);
|
|
@@ -9873,7 +9878,7 @@ function jd({ className: e, ...n }) {
|
|
|
9873
9878
|
"tbody",
|
|
9874
9879
|
{
|
|
9875
9880
|
"data-slot": "table-body",
|
|
9876
|
-
className:
|
|
9881
|
+
className: F("[&_tr:last-child]:border-0", e),
|
|
9877
9882
|
...n
|
|
9878
9883
|
}
|
|
9879
9884
|
);
|
|
@@ -9883,7 +9888,7 @@ function gt({ className: e, ...n }) {
|
|
|
9883
9888
|
"tr",
|
|
9884
9889
|
{
|
|
9885
9890
|
"data-slot": "table-row",
|
|
9886
|
-
className:
|
|
9891
|
+
className: F(
|
|
9887
9892
|
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted text-xs",
|
|
9888
9893
|
e
|
|
9889
9894
|
),
|
|
@@ -9896,7 +9901,7 @@ function Ud({ className: e, ...n }) {
|
|
|
9896
9901
|
"th",
|
|
9897
9902
|
{
|
|
9898
9903
|
"data-slot": "table-head",
|
|
9899
|
-
className:
|
|
9904
|
+
className: F(
|
|
9900
9905
|
"h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",
|
|
9901
9906
|
e
|
|
9902
9907
|
),
|
|
@@ -9909,7 +9914,7 @@ function zt({ className: e, ...n }) {
|
|
|
9909
9914
|
"td",
|
|
9910
9915
|
{
|
|
9911
9916
|
"data-slot": "table-cell",
|
|
9912
|
-
className:
|
|
9917
|
+
className: F(
|
|
9913
9918
|
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",
|
|
9914
9919
|
e
|
|
9915
9920
|
),
|
|
@@ -9932,37 +9937,37 @@ function of({
|
|
|
9932
9937
|
virtualizationItemHeight: m = 36,
|
|
9933
9938
|
className: d
|
|
9934
9939
|
}) {
|
|
9935
|
-
const [f, v] = At(l), [p, S] = At(""), [
|
|
9940
|
+
const [f, v] = At(l), [p, S] = At(""), [w, x] = At([]), y = Zi(null), b = Bd({
|
|
9936
9941
|
data: e,
|
|
9937
9942
|
columns: n,
|
|
9938
9943
|
getRowId: t,
|
|
9939
9944
|
state: {
|
|
9940
9945
|
sorting: f,
|
|
9941
9946
|
globalFilter: p,
|
|
9942
|
-
columnFilters:
|
|
9947
|
+
columnFilters: w
|
|
9943
9948
|
},
|
|
9944
9949
|
onSortingChange: v,
|
|
9945
9950
|
onGlobalFilterChange: S,
|
|
9946
|
-
onColumnFiltersChange:
|
|
9951
|
+
onColumnFiltersChange: x,
|
|
9947
9952
|
globalFilterFn: "includesString",
|
|
9948
9953
|
getCoreRowModel: Nd(),
|
|
9949
9954
|
getSortedRowModel: zd(),
|
|
9950
9955
|
getFilteredRowModel: Td()
|
|
9951
|
-
}), _ =
|
|
9956
|
+
}), _ = b.getRowModel().rows, k = qn({
|
|
9952
9957
|
count: _.length,
|
|
9953
|
-
getScrollElement: () =>
|
|
9954
|
-
getItemKey: (
|
|
9958
|
+
getScrollElement: () => y.current,
|
|
9959
|
+
getItemKey: (T) => _[T]?.id ?? T,
|
|
9955
9960
|
estimateSize: () => m,
|
|
9956
9961
|
overscan: c
|
|
9957
|
-
}),
|
|
9958
|
-
return /* @__PURE__ */
|
|
9959
|
-
|
|
9960
|
-
i?.(
|
|
9962
|
+
}), R = k.getVirtualItems(), C = R[0]?.start ?? 0, E = R.length > 0 ? k.getTotalSize() - (R.at(-1)?.end ?? 0) : 0, I = u || i;
|
|
9963
|
+
return /* @__PURE__ */ W("div", { className: F("min-h-0 space-y-3", d), children: [
|
|
9964
|
+
I && /* @__PURE__ */ W("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
9965
|
+
i?.(b),
|
|
9961
9966
|
u && /* @__PURE__ */ h(
|
|
9962
9967
|
"input",
|
|
9963
9968
|
{
|
|
9964
9969
|
value: p,
|
|
9965
|
-
onChange: (
|
|
9970
|
+
onChange: (T) => S(T.target.value),
|
|
9966
9971
|
placeholder: a,
|
|
9967
9972
|
className: "ml-auto h-8 w-full rounded-md border border-input bg-background px-2 text-sm outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 sm:w-72"
|
|
9968
9973
|
}
|
|
@@ -9971,44 +9976,44 @@ function of({
|
|
|
9971
9976
|
/* @__PURE__ */ h(
|
|
9972
9977
|
"div",
|
|
9973
9978
|
{
|
|
9974
|
-
ref:
|
|
9979
|
+
ref: y,
|
|
9975
9980
|
className: "max-h-[min(68vh,42rem)] min-h-[16rem] overflow-y-auto rounded-md border border-border",
|
|
9976
|
-
children: /* @__PURE__ */
|
|
9977
|
-
/* @__PURE__ */ h(Wd, { children:
|
|
9978
|
-
const
|
|
9981
|
+
children: /* @__PURE__ */ W(Gd, { children: [
|
|
9982
|
+
/* @__PURE__ */ h(Wd, { children: b.getHeaderGroups().map((T) => /* @__PURE__ */ h(gt, { className: "hover:bg-transparent", children: T.headers.map((H) => {
|
|
9983
|
+
const $ = H.column.columnDef.meta;
|
|
9979
9984
|
return /* @__PURE__ */ h(
|
|
9980
9985
|
Ud,
|
|
9981
9986
|
{
|
|
9982
|
-
className:
|
|
9987
|
+
className: F(
|
|
9983
9988
|
"sticky top-0 z-20 bg-card",
|
|
9984
|
-
|
|
9989
|
+
$?.headerClassName
|
|
9985
9990
|
),
|
|
9986
|
-
children:
|
|
9991
|
+
children: H.isPlaceholder ? null : H.column.getCanSort() ? /* @__PURE__ */ W(
|
|
9987
9992
|
vt,
|
|
9988
9993
|
{
|
|
9989
9994
|
type: "button",
|
|
9990
9995
|
variant: "ghost",
|
|
9991
9996
|
size: "sm",
|
|
9992
9997
|
className: "-ml-2 h-8 cursor-pointer px-2 hover:bg-muted/60",
|
|
9993
|
-
onClick: () =>
|
|
9994
|
-
|
|
9998
|
+
onClick: () => H.column.toggleSorting(
|
|
9999
|
+
H.column.getIsSorted() === "asc"
|
|
9995
10000
|
),
|
|
9996
10001
|
children: [
|
|
9997
10002
|
$n(
|
|
9998
|
-
|
|
9999
|
-
|
|
10003
|
+
H.column.columnDef.header,
|
|
10004
|
+
H.getContext()
|
|
10000
10005
|
),
|
|
10001
|
-
|
|
10006
|
+
H.column.getIsSorted() === "asc" ? /* @__PURE__ */ h(fo, { className: "size-4" }) : H.column.getIsSorted() === "desc" ? /* @__PURE__ */ h(bt, { className: "size-4" }) : /* @__PURE__ */ h(Za, { className: "size-4 opacity-60" })
|
|
10002
10007
|
]
|
|
10003
10008
|
}
|
|
10004
10009
|
) : $n(
|
|
10005
|
-
|
|
10006
|
-
|
|
10010
|
+
H.column.columnDef.header,
|
|
10011
|
+
H.getContext()
|
|
10007
10012
|
)
|
|
10008
10013
|
},
|
|
10009
|
-
|
|
10014
|
+
H.id
|
|
10010
10015
|
);
|
|
10011
|
-
}) },
|
|
10016
|
+
}) }, T.id)) }),
|
|
10012
10017
|
/* @__PURE__ */ h(jd, { children: _.length === 0 ? /* @__PURE__ */ h(gt, { children: /* @__PURE__ */ h(
|
|
10013
10018
|
zt,
|
|
10014
10019
|
{
|
|
@@ -10016,8 +10021,8 @@ function of({
|
|
|
10016
10021
|
className: "h-20 text-center text-muted-foreground",
|
|
10017
10022
|
children: s
|
|
10018
10023
|
}
|
|
10019
|
-
) }) : /* @__PURE__ */
|
|
10020
|
-
|
|
10024
|
+
) }) : /* @__PURE__ */ W(yn, { children: [
|
|
10025
|
+
C > 0 && /* @__PURE__ */ h(
|
|
10021
10026
|
gt,
|
|
10022
10027
|
{
|
|
10023
10028
|
"aria-hidden": "true",
|
|
@@ -10027,24 +10032,24 @@ function of({
|
|
|
10027
10032
|
{
|
|
10028
10033
|
colSpan: n.length,
|
|
10029
10034
|
className: "h-0 p-0",
|
|
10030
|
-
style: { height: `${
|
|
10035
|
+
style: { height: `${C}px` }
|
|
10031
10036
|
}
|
|
10032
10037
|
)
|
|
10033
10038
|
}
|
|
10034
10039
|
),
|
|
10035
|
-
|
|
10036
|
-
const
|
|
10037
|
-
return
|
|
10040
|
+
R.map((T) => {
|
|
10041
|
+
const H = _[T.index];
|
|
10042
|
+
return H ? /* @__PURE__ */ h(
|
|
10038
10043
|
qd,
|
|
10039
10044
|
{
|
|
10040
|
-
row:
|
|
10045
|
+
row: H,
|
|
10041
10046
|
getRowIsSelected: r,
|
|
10042
10047
|
onRowClick: o
|
|
10043
10048
|
},
|
|
10044
|
-
|
|
10049
|
+
H.id
|
|
10045
10050
|
) : null;
|
|
10046
10051
|
}),
|
|
10047
|
-
|
|
10052
|
+
E > 0 && /* @__PURE__ */ h(
|
|
10048
10053
|
gt,
|
|
10049
10054
|
{
|
|
10050
10055
|
"aria-hidden": "true",
|
|
@@ -10054,7 +10059,7 @@ function of({
|
|
|
10054
10059
|
{
|
|
10055
10060
|
colSpan: n.length,
|
|
10056
10061
|
className: "h-0 p-0",
|
|
10057
|
-
style: { height: `${
|
|
10062
|
+
style: { height: `${E}px` }
|
|
10058
10063
|
}
|
|
10059
10064
|
)
|
|
10060
10065
|
}
|
|
@@ -10075,7 +10080,7 @@ function qd({
|
|
|
10075
10080
|
gt,
|
|
10076
10081
|
{
|
|
10077
10082
|
"data-state": r ? "selected" : void 0,
|
|
10078
|
-
className:
|
|
10083
|
+
className: F(t ? "cursor-pointer" : void 0),
|
|
10079
10084
|
onClick: t ? (o) => t(e, o) : void 0,
|
|
10080
10085
|
children: e.getVisibleCells().map((o) => {
|
|
10081
10086
|
const i = o.column.columnDef.meta;
|