@cronocode/react-box 3.1.3 → 3.1.6

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/core.mjs CHANGED
@@ -1,80 +1,80 @@
1
- import { jsx as h, jsxs as he } from "react/jsx-runtime";
2
- import we, { useContext as xe, useState as ie, useLayoutEffect as ne, useMemo as Q, useEffect as ue, useRef as Fe } from "react";
1
+ import we, { useContext as xe, useState as de, useLayoutEffect as ae, useMemo as le, useEffect as ge, useRef as Fe } from "react";
2
+ import { jsx as z } from "react/jsx-runtime";
3
+ import T from "./components/baseSvg.mjs";
3
4
  import Ne from "./box.mjs";
4
- import B from "./components/baseSvg.mjs";
5
- function ce(...e) {
6
- return e.reduce((t, r) => r ? typeof r == "string" ? (t.push(r), t) : Array.isArray(r) ? (t.push(...ce(...r)), t) : (Object.entries(r).forEach(([o, i]) => {
7
- i && t.push(o);
8
- }), t) : t, []);
5
+ function fe(...e) {
6
+ return e.reduce((r, l) => l ? typeof l == "string" ? (r.push(l), r) : Array.isArray(l) ? (r.push(...fe(...l)), r) : (Object.entries(l).forEach(([a, o]) => {
7
+ o && r.push(a);
8
+ }), r) : r, []);
9
9
  }
10
- const G = 4;
11
- var a;
10
+ const Y = 4;
11
+ var t;
12
12
  ((e) => {
13
- ((t) => {
14
- function r(i, n) {
15
- return `${i}${n.replace("/", "-")}`;
16
- }
17
- t.fraction = r;
18
- function o(i) {
19
- return [`${i} path`, `${i} circle`, `${i} rect`, `${i} line`];
20
- }
21
- t.svg = o;
22
- })(e.ClassName || (e.ClassName = {})), ((t) => {
23
- function r(v, c, f = G) {
24
- return `${v / f}rem`;
25
- }
26
- t.rem = r;
27
- function o(v) {
28
- return `${v}px`;
29
- }
30
- t.px = o;
31
- function i(v) {
32
- const [c, f] = v.split("/");
33
- return `${+c / +f * 100}%`;
34
- }
35
- t.fraction = i;
36
- function n(v, c) {
37
- switch (c) {
13
+ ((r) => {
14
+ function l(o, n) {
15
+ return `${o}${n.replace("/", "-")}`;
16
+ }
17
+ r.fraction = l;
18
+ function a(o) {
19
+ return [`${o} path`, `${o} circle`, `${o} rect`, `${o} line`];
20
+ }
21
+ r.svg = a;
22
+ })(e.ClassName || (e.ClassName = {})), ((r) => {
23
+ function l(x, C, R = Y) {
24
+ return `${x / R}rem`;
25
+ }
26
+ r.rem = l;
27
+ function a(x) {
28
+ return `${x}px`;
29
+ }
30
+ r.px = a;
31
+ function o(x) {
32
+ const [C, R] = x.split("/");
33
+ return `${+C / +R * 100}%`;
34
+ }
35
+ r.fraction = o;
36
+ function n(x, C) {
37
+ switch (C) {
38
38
  case "fit":
39
39
  return "100%";
40
40
  case "fit-screen":
41
- return v.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
41
+ return x.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
42
42
  default:
43
- return c;
43
+ return C;
44
44
  }
45
45
  }
46
- t.widthHeight = n;
47
- function u(v) {
48
- return (c, f) => `var(--${v}${f});`;
46
+ r.widthHeight = n;
47
+ function s(x) {
48
+ return (C, R) => `var(--${x}${R});`;
49
49
  }
50
- t.variables = u;
51
- function s(v) {
52
- return (c, f) => `var(--${v}${f});`;
50
+ r.variables = s;
51
+ function u(x) {
52
+ return (C, R) => `var(--${x}${R});`;
53
53
  }
54
- t.svgVariables = s;
55
- function d(v, c) {
56
- return `repeat(${c},minmax(0,1fr))`;
54
+ r.svgVariables = u;
55
+ function i(x, C) {
56
+ return `repeat(${C},minmax(0,1fr))`;
57
57
  }
58
- t.gridColumns = d;
59
- function b(v, c) {
60
- return c === "full-row" ? "1/-1" : `span ${c}/span ${c}`;
58
+ r.gridColumns = i;
59
+ function m(x, C) {
60
+ return C === "full-row" ? "1/-1" : `span ${C}/span ${C}`;
61
61
  }
62
- t.gridColumn = b;
63
- function l(v, c) {
64
- return `${c}ms`;
62
+ r.gridColumn = m;
63
+ function f(x, C) {
64
+ return `${C}ms`;
65
65
  }
66
- t.ms = l;
67
- function g(v, c) {
68
- return `${c}deg`;
66
+ r.ms = f;
67
+ function y(x, C) {
68
+ return `${C}deg`;
69
69
  }
70
- t.rotate = g;
71
- function p(v, c) {
72
- return c === "xAxis" ? "-1 1" : "1 -1";
70
+ r.rotate = y;
71
+ function k(x, C) {
72
+ return C === "xAxis" ? "-1 1" : "1 -1";
73
73
  }
74
- t.flip = p;
74
+ r.flip = k;
75
75
  })(e.Value || (e.Value = {}));
76
- })(a || (a = {}));
77
- var W;
76
+ })(t || (t = {}));
77
+ var X;
78
78
  ((e) => {
79
79
  e.colors = {
80
80
  currentColor: "currentColor",
@@ -328,7 +328,21 @@ var W;
328
328
  "rose-800": "#9f1239",
329
329
  "rose-900": "#881337",
330
330
  "rose-950": "#4c0519"
331
- }, e.percentages = [
331
+ }, e.colorValues = Object.keys(e.colors), e.colorValues.push("none"), e.bgImages = {
332
+ "gradient-primary": "linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%)",
333
+ "gradient-aurora-light": "radial-gradient(900px circle at 18% 18%, rgba(99, 102, 241, 0.12), transparent 46%), radial-gradient(780px circle at 82% 12%, rgba(14, 165, 233, 0.1), transparent 45%), radial-gradient(960px circle at 48% 78%, rgba(236, 72, 153, 0.08), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%)",
334
+ "gradient-aurora-dark": "radial-gradient(900px circle at 18% 18%, rgba(129, 140, 248, 0.16), transparent 46%), radial-gradient(820px circle at 82% 10%, rgba(45, 212, 191, 0.12), transparent 48%), radial-gradient(980px circle at 50% 80%, rgba(59, 130, 246, 0.12), transparent 55%), linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.9) 100%)",
335
+ "gradient-accent": "linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%)",
336
+ // checkbox/radio images
337
+ "bg-img-checked": `url("data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' width='100%' viewBox='0 0 20 20'><path fill='none' stroke='#FFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 10l3 3l6-6'/></svg>")}")`,
338
+ "bg-img-indeterminate": `url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' width='100%' viewBox='0 0 20 20'><line stroke='${e.colors["violet-400"]}' x1='4' y1='10' x2='16' y2='10' stroke-width='1' /></svg>`)}")`,
339
+ "bg-img-radio": `url("data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' width='100%' viewBox='0 0 20 20'><circle fill='#FFF' cx='10' cy='10' r='5'/></svg>")}")`
340
+ }, e.bgImageValues = Object.keys(e.bgImages), e.bgImageValues.push("none"), e.shadows = {
341
+ small: "rgba(0, 0, 0, 0.16) 0px 1px 4px",
342
+ medium: "rgba(0, 0, 0, 0.24) 0px 3px 8px",
343
+ large: "rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px"
344
+ }, e.shadowValues = Object.keys(e.shadows), e.shadowValues.push("none"), e.percentages = [
345
+ "1/1",
332
346
  "1/2",
333
347
  "1/3",
334
348
  "2/3",
@@ -355,32 +369,63 @@ var W;
355
369
  "9/12",
356
370
  "10/12",
357
371
  "11/12"
372
+ ], e.negativePercentages = [
373
+ "-1/1",
374
+ "-1/2",
375
+ "-1/3",
376
+ "-2/3",
377
+ "-1/4",
378
+ "-2/4",
379
+ "-3/4",
380
+ "-1/5",
381
+ "-2/5",
382
+ "-3/5",
383
+ "-4/5",
384
+ "-1/6",
385
+ "-2/6",
386
+ "-3/6",
387
+ "-4/6",
388
+ "-5/6",
389
+ "-1/12",
390
+ "-2/12",
391
+ "-3/12",
392
+ "-4/12",
393
+ "-5/12",
394
+ "-6/12",
395
+ "-7/12",
396
+ "-8/12",
397
+ "-9/12",
398
+ "-10/12",
399
+ "-11/12"
358
400
  ];
359
- const t = {
401
+ const l = { ...{
360
402
  inherit: "inherit",
361
- none: "none",
362
- "bg-img-checked": `url("data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' width='100%' viewBox='0 0 20 20'><path fill='none' stroke='#FFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 10l3 3l6-6'/></svg>")}")`,
363
- "bg-img-indeterminate": `url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' width='100%' viewBox='0 0 20 20'><line stroke='${e.colors["violet-400"]}' x1='4' y1='10' x2='16' y2='10' stroke-width='1' /></svg>`)}")`,
364
- "bg-img-radio": `url("data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' width='100%' viewBox='0 0 20 20'><circle fill='#FFF' cx='10' cy='10' r='5'/></svg>")}")`,
365
- "small-shadow": "rgba(0, 0, 0, 0.16) 0px 1px 4px",
366
- "medium-shadow": "rgba(0, 0, 0, 0.24) 0px 3px 8px",
367
- "large-shadow": "rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px"
368
- }, r = {};
369
- let o = {};
370
- function i(s) {
371
- return s in o ? r[s] = o[s] : s in t ? r[s] = t[s] : s in e.colors ? r[s] = e.colors[s] : r[s] = s, `var(--${s})`;
403
+ none: "none"
404
+ }, ...e.colors, ...e.bgImages, ...e.shadows }, a = {}, o = {};
405
+ let n = {};
406
+ function s(y) {
407
+ return y in a || (y in n ? (o[y] = n[y], a[y] = n[y]) : y in l ? (o[y] = l[y], a[y] = l[y]) : (o[y] = y, a[y] = y)), `var(--${y})`;
408
+ }
409
+ e.getVariableValue = s;
410
+ function u() {
411
+ return Object.entries(a).map(([y, k]) => `--${y}: ${k};`).join("");
412
+ }
413
+ e.generateVariables = u;
414
+ function i() {
415
+ const y = { ...o };
416
+ return Object.keys(o).forEach((k) => delete o[k]), y;
372
417
  }
373
- e.getVariableValue = i;
374
- function n() {
375
- return Object.entries(r).map(([s, d]) => `--${s}: ${d};`).join("");
418
+ e.getPendingVariables = i;
419
+ function m() {
420
+ return Object.keys(o).length > 0;
376
421
  }
377
- e.generateVariables = n;
378
- function u(s) {
379
- o = s;
422
+ e.hasPendingVariables = m;
423
+ function f(y) {
424
+ n = y;
380
425
  }
381
- e.setUserVariables = u;
382
- })(W || (W = {}));
383
- const y = W, R = {
426
+ e.setUserVariables = f;
427
+ })(X || (X = {}));
428
+ const d = X, L = {
384
429
  /** The appearance CSS property is used to display UI elements with platform-specific styling, based on the operating system's theme. */
385
430
  appearance: [
386
431
  {
@@ -392,7 +437,7 @@ const y = W, R = {
392
437
  {
393
438
  values: 0,
394
439
  styleName: "border-width",
395
- valueFormat: a.Value.px
440
+ valueFormat: t.Value.px
396
441
  }
397
442
  ],
398
443
  /** The border-width shorthand CSS property sets the width of an element's left and right border. */
@@ -400,7 +445,7 @@ const y = W, R = {
400
445
  {
401
446
  values: 0,
402
447
  styleName: "border-inline-width",
403
- valueFormat: a.Value.px
448
+ valueFormat: t.Value.px
404
449
  }
405
450
  ],
406
451
  /** The border-width shorthand CSS property sets the width of an element's top and bottom border. */
@@ -408,7 +453,7 @@ const y = W, R = {
408
453
  {
409
454
  values: 0,
410
455
  styleName: "border-block-width",
411
- valueFormat: a.Value.px
456
+ valueFormat: t.Value.px
412
457
  }
413
458
  ],
414
459
  /** The border-top-width CSS property sets the width of the top border of an element. */
@@ -416,7 +461,7 @@ const y = W, R = {
416
461
  {
417
462
  values: 0,
418
463
  styleName: "border-top-width",
419
- valueFormat: a.Value.px
464
+ valueFormat: t.Value.px
420
465
  }
421
466
  ],
422
467
  /** The border-right-width CSS property sets the width of the right border of an element. */
@@ -424,7 +469,7 @@ const y = W, R = {
424
469
  {
425
470
  values: 0,
426
471
  styleName: "border-right-width",
427
- valueFormat: a.Value.px
472
+ valueFormat: t.Value.px
428
473
  }
429
474
  ],
430
475
  /** The border-bottom-width CSS property sets the width of the bottom border of an element. */
@@ -432,7 +477,7 @@ const y = W, R = {
432
477
  {
433
478
  values: 0,
434
479
  styleName: "border-bottom-width",
435
- valueFormat: a.Value.px
480
+ valueFormat: t.Value.px
436
481
  }
437
482
  ],
438
483
  /** The border-left-width CSS property sets the width of the left border of an element. */
@@ -440,7 +485,7 @@ const y = W, R = {
440
485
  {
441
486
  values: 0,
442
487
  styleName: "border-left-width",
443
- valueFormat: a.Value.px
488
+ valueFormat: t.Value.px
444
489
  }
445
490
  ],
446
491
  /** The border-style shorthand CSS property sets the line style for all four sides of an element's border. */
@@ -455,7 +500,7 @@ const y = W, R = {
455
500
  {
456
501
  styleName: "border-radius",
457
502
  values: 0,
458
- valueFormat: a.Value.rem
503
+ valueFormat: t.Value.rem
459
504
  }
460
505
  ],
461
506
  /** The border-top-radius CSS property rounds the top corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -463,7 +508,7 @@ const y = W, R = {
463
508
  {
464
509
  values: 0,
465
510
  styleName: ["border-top-left-radius", "border-top-right-radius"],
466
- valueFormat: a.Value.rem
511
+ valueFormat: t.Value.rem
467
512
  }
468
513
  ],
469
514
  /** The border-right-radius CSS property rounds the right corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -471,7 +516,7 @@ const y = W, R = {
471
516
  {
472
517
  values: 0,
473
518
  styleName: ["border-top-right-radius", "border-bottom-right-radius"],
474
- valueFormat: a.Value.rem
519
+ valueFormat: t.Value.rem
475
520
  }
476
521
  ],
477
522
  /** The border-bottom-radius CSS property rounds the bottom corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -479,7 +524,7 @@ const y = W, R = {
479
524
  {
480
525
  values: 0,
481
526
  styleName: ["border-bottom-left-radius", "border-bottom-right-radius"],
482
- valueFormat: a.Value.rem
527
+ valueFormat: t.Value.rem
483
528
  }
484
529
  ],
485
530
  /** The border-left-radius CSS property rounds the left corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -487,7 +532,7 @@ const y = W, R = {
487
532
  {
488
533
  values: 0,
489
534
  styleName: ["border-top-left-radius", "border-bottom-left-radius"],
490
- valueFormat: a.Value.rem
535
+ valueFormat: t.Value.rem
491
536
  }
492
537
  ],
493
538
  /** The border-top-left-radius CSS property rounds the top-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -495,7 +540,7 @@ const y = W, R = {
495
540
  {
496
541
  values: 0,
497
542
  styleName: "border-top-left-radius",
498
- valueFormat: a.Value.rem
543
+ valueFormat: t.Value.rem
499
544
  }
500
545
  ],
501
546
  /** The border-top-right-radius CSS property rounds the top-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -503,7 +548,7 @@ const y = W, R = {
503
548
  {
504
549
  values: 0,
505
550
  styleName: "border-top-right-radius",
506
- valueFormat: a.Value.rem
551
+ valueFormat: t.Value.rem
507
552
  }
508
553
  ],
509
554
  /** The border-bottom-right-radius CSS property rounds the bottom-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -511,7 +556,7 @@ const y = W, R = {
511
556
  {
512
557
  values: 0,
513
558
  styleName: "border-bottom-right-radius",
514
- valueFormat: a.Value.rem
559
+ valueFormat: t.Value.rem
515
560
  }
516
561
  ],
517
562
  /** The border-bottom-left-radius CSS property rounds the bottom-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -519,7 +564,7 @@ const y = W, R = {
519
564
  {
520
565
  values: 0,
521
566
  styleName: "border-bottom-left-radius",
522
- valueFormat: a.Value.rem
567
+ valueFormat: t.Value.rem
523
568
  }
524
569
  ],
525
570
  /** The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements. */
@@ -532,51 +577,67 @@ const y = W, R = {
532
577
  top: [
533
578
  {
534
579
  values: 0,
535
- valueFormat: a.Value.rem
580
+ valueFormat: t.Value.rem
536
581
  },
537
582
  {
538
- values: y.percentages,
539
- valueFormat: a.Value.fraction
583
+ values: d.percentages,
584
+ valueFormat: t.Value.fraction
585
+ },
586
+ {
587
+ values: d.negativePercentages,
588
+ valueFormat: t.Value.fraction
540
589
  }
541
590
  ],
542
591
  /** The right CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
543
592
  right: [
544
593
  {
545
594
  values: 0,
546
- valueFormat: a.Value.rem
595
+ valueFormat: t.Value.rem
596
+ },
597
+ {
598
+ values: d.percentages,
599
+ valueFormat: t.Value.fraction
547
600
  },
548
601
  {
549
- values: y.percentages,
550
- valueFormat: a.Value.fraction
602
+ values: d.negativePercentages,
603
+ valueFormat: t.Value.fraction
551
604
  }
552
605
  ],
553
606
  /** The bottom CSS property participates in setting the vertical position of a positioned element. This inset property has no effect on non-positioned elements. */
554
607
  bottom: [
555
608
  {
556
609
  values: 0,
557
- valueFormat: a.Value.rem
610
+ valueFormat: t.Value.rem
611
+ },
612
+ {
613
+ values: d.percentages,
614
+ valueFormat: t.Value.fraction
558
615
  },
559
616
  {
560
- values: y.percentages,
561
- valueFormat: a.Value.fraction
617
+ values: d.negativePercentages,
618
+ valueFormat: t.Value.fraction
562
619
  }
563
620
  ],
564
621
  /** The left CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
565
622
  left: [
566
623
  {
567
624
  values: 0,
568
- valueFormat: a.Value.rem
625
+ valueFormat: t.Value.rem
569
626
  },
570
627
  {
571
- values: y.percentages,
572
- valueFormat: a.Value.fraction
628
+ values: d.percentages,
629
+ valueFormat: t.Value.fraction
630
+ },
631
+ {
632
+ values: d.negativePercentages,
633
+ valueFormat: t.Value.fraction
573
634
  }
574
635
  ],
575
636
  /** The inset CSS property is a shorthand that corresponds to the top, right, bottom, and/or left properties. It has the same multi-value syntax of the margin shorthand. */
576
637
  inset: [
577
638
  {
578
639
  values: 0,
579
- valueFormat: a.Value.rem
640
+ valueFormat: t.Value.rem
580
641
  }
581
642
  ],
582
643
  /** The `box-sizing` CSS property sets how the total width and height of an element is calculated. */
@@ -755,7 +816,7 @@ const y = W, R = {
755
816
  {
756
817
  styleName: "font-size",
757
818
  values: 0,
758
- valueFormat: (e) => a.Value.rem(e, void 0, 16)
819
+ valueFormat: (e) => t.Value.rem(e, void 0, 16)
759
820
  },
760
821
  {
761
822
  styleName: "font-size",
@@ -780,7 +841,7 @@ const y = W, R = {
780
841
  gap: [
781
842
  {
782
843
  values: 0,
783
- valueFormat: a.Value.rem
844
+ valueFormat: t.Value.rem
784
845
  }
785
846
  ],
786
847
  /** The row-gap CSS property sets the size of the gap (gutter) between an element's rows. */
@@ -788,7 +849,7 @@ const y = W, R = {
788
849
  {
789
850
  styleName: "row-gap",
790
851
  values: 0,
791
- valueFormat: a.Value.rem
852
+ valueFormat: t.Value.rem
792
853
  }
793
854
  ],
794
855
  /** The column-gap CSS property sets the size of the gap (gutter) between an element's columns. */
@@ -796,7 +857,7 @@ const y = W, R = {
796
857
  {
797
858
  styleName: "column-gap",
798
859
  values: 0,
799
- valueFormat: a.Value.rem
860
+ valueFormat: t.Value.rem
800
861
  }
801
862
  ],
802
863
  /** The order CSS property sets the order to lay out an item in a flex or grid container. Items in a container are sorted by ascending order value and then by their source code order. Items not given an explicit order value are assigned the default value of 0. */
@@ -808,7 +869,7 @@ const y = W, R = {
808
869
  ],
809
870
  /** The height CSS property specifies the height of an element. By default, the property defines the height of the content area. If box-sizing is set to border-box, however, it instead determines the height of the border area. */
810
871
  height: [
811
- { values: 0, valueFormat: a.Value.rem },
872
+ { values: 0, valueFormat: t.Value.rem },
812
873
  {
813
874
  values: ["fit"],
814
875
  valueFormat: () => "100%"
@@ -818,8 +879,8 @@ const y = W, R = {
818
879
  valueFormat: () => "100vh"
819
880
  },
820
881
  {
821
- values: y.percentages,
822
- valueFormat: a.Value.fraction
882
+ values: d.percentages,
883
+ valueFormat: t.Value.fraction
823
884
  },
824
885
  {
825
886
  values: ["auto", "fit-content", "max-content", "min-content"]
@@ -827,7 +888,7 @@ const y = W, R = {
827
888
  ],
828
889
  /** The min-height CSS property sets the minimum height of an element. It prevents the used value of the height property from becoming smaller than the value specified for min-height. */
829
890
  minHeight: [
830
- { styleName: "min-height", values: 0, valueFormat: a.Value.rem },
891
+ { styleName: "min-height", values: 0, valueFormat: t.Value.rem },
831
892
  {
832
893
  styleName: "min-height",
833
894
  values: ["fit"],
@@ -840,8 +901,8 @@ const y = W, R = {
840
901
  },
841
902
  {
842
903
  styleName: "min-height",
843
- values: y.percentages,
844
- valueFormat: a.Value.fraction
904
+ values: d.percentages,
905
+ valueFormat: t.Value.fraction
845
906
  },
846
907
  {
847
908
  styleName: "min-height",
@@ -850,7 +911,7 @@ const y = W, R = {
850
911
  ],
851
912
  /** The max-height CSS property sets the maximum height of an element. It prevents the used value of the height property from becoming larger than the value specified for max-height. */
852
913
  maxHeight: [
853
- { styleName: "max-height", values: 0, valueFormat: a.Value.rem },
914
+ { styleName: "max-height", values: 0, valueFormat: t.Value.rem },
854
915
  {
855
916
  styleName: "max-height",
856
917
  values: ["fit"],
@@ -863,8 +924,8 @@ const y = W, R = {
863
924
  },
864
925
  {
865
926
  styleName: "max-height",
866
- values: y.percentages,
867
- valueFormat: a.Value.fraction
927
+ values: d.percentages,
928
+ valueFormat: t.Value.fraction
868
929
  },
869
930
  {
870
931
  styleName: "max-height",
@@ -873,7 +934,7 @@ const y = W, R = {
873
934
  ],
874
935
  /** The width CSS property sets an element's width. By default, it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area. */
875
936
  width: [
876
- { values: 0, valueFormat: a.Value.rem },
937
+ { values: 0, valueFormat: t.Value.rem },
877
938
  {
878
939
  values: ["fit"],
879
940
  valueFormat: () => "100%"
@@ -883,8 +944,8 @@ const y = W, R = {
883
944
  valueFormat: () => "100vw"
884
945
  },
885
946
  {
886
- values: y.percentages,
887
- valueFormat: a.Value.fraction
947
+ values: d.percentages,
948
+ valueFormat: t.Value.fraction
888
949
  },
889
950
  {
890
951
  values: ["auto", "fit-content", "max-content", "min-content"]
@@ -892,7 +953,7 @@ const y = W, R = {
892
953
  ],
893
954
  /** The min-width CSS property sets the minimum width of an element. It prevents the used value of the width property from becoming smaller than the value specified for min-width. */
894
955
  minWidth: [
895
- { styleName: "min-width", values: 0, valueFormat: a.Value.rem },
956
+ { styleName: "min-width", values: 0, valueFormat: t.Value.rem },
896
957
  {
897
958
  styleName: "min-width",
898
959
  values: ["fit"],
@@ -905,8 +966,8 @@ const y = W, R = {
905
966
  },
906
967
  {
907
968
  styleName: "min-width",
908
- values: y.percentages,
909
- valueFormat: a.Value.fraction
969
+ values: d.percentages,
970
+ valueFormat: t.Value.fraction
910
971
  },
911
972
  {
912
973
  styleName: "min-width",
@@ -915,7 +976,7 @@ const y = W, R = {
915
976
  ],
916
977
  /** The max-width CSS property sets the maximum width of an element. It prevents the used value of the width property from becoming larger than the value specified by max-width. */
917
978
  maxWidth: [
918
- { styleName: "max-width", values: 0, valueFormat: a.Value.rem },
979
+ { styleName: "max-width", values: 0, valueFormat: t.Value.rem },
919
980
  {
920
981
  styleName: "max-width",
921
982
  values: ["fit"],
@@ -928,8 +989,8 @@ const y = W, R = {
928
989
  },
929
990
  {
930
991
  styleName: "max-width",
931
- values: y.percentages,
932
- valueFormat: a.Value.fraction
992
+ values: d.percentages,
993
+ valueFormat: t.Value.fraction
933
994
  },
934
995
  {
935
996
  styleName: "max-width",
@@ -941,7 +1002,7 @@ const y = W, R = {
941
1002
  {
942
1003
  styleName: "letter-spacing",
943
1004
  values: 0,
944
- valueFormat: a.Value.px
1005
+ valueFormat: t.Value.px
945
1006
  }
946
1007
  ],
947
1008
  /** The line-height CSS property sets the height of a line box in horizontal writing modes. In vertical writing modes, it sets the width of a line box. It's commonly used to set the distance between lines of text. On block-level elements in horizontal writing modes, it specifies the preferred height of line boxes within the element, and on non-replaced inline elements, it specifies the height that is used to calculate line box height. */
@@ -949,7 +1010,7 @@ const y = W, R = {
949
1010
  {
950
1011
  styleName: "line-height",
951
1012
  values: 0,
952
- valueFormat: a.Value.px
1013
+ valueFormat: t.Value.px
953
1014
  },
954
1015
  {
955
1016
  styleName: "line-height",
@@ -969,15 +1030,15 @@ const y = W, R = {
969
1030
  {
970
1031
  values: 0,
971
1032
  styleName: "margin",
972
- valueFormat: a.Value.rem
1033
+ valueFormat: t.Value.rem
973
1034
  },
974
1035
  {
975
1036
  values: ["auto"],
976
1037
  styleName: "margin"
977
1038
  },
978
1039
  {
979
- values: y.percentages,
980
- valueFormat: a.Value.fraction
1040
+ values: d.percentages,
1041
+ valueFormat: t.Value.fraction
981
1042
  }
982
1043
  ],
983
1044
  /** The margin-inline CSS shorthand property is a shorthand property that defines both the logical inline start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation. */
@@ -985,15 +1046,15 @@ const y = W, R = {
985
1046
  {
986
1047
  values: 0,
987
1048
  styleName: "margin-inline",
988
- valueFormat: a.Value.rem
1049
+ valueFormat: t.Value.rem
989
1050
  },
990
1051
  {
991
1052
  values: ["auto"],
992
1053
  styleName: "margin-inline"
993
1054
  },
994
1055
  {
995
- values: y.percentages,
996
- valueFormat: a.Value.fraction
1056
+ values: d.percentages,
1057
+ valueFormat: t.Value.fraction
997
1058
  }
998
1059
  ],
999
1060
  /** The margin-block CSS shorthand property defines the logical block start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation. */
@@ -1001,15 +1062,15 @@ const y = W, R = {
1001
1062
  {
1002
1063
  values: 0,
1003
1064
  styleName: "margin-block",
1004
- valueFormat: a.Value.rem
1065
+ valueFormat: t.Value.rem
1005
1066
  },
1006
1067
  {
1007
1068
  values: ["auto"],
1008
1069
  styleName: "margin-block"
1009
1070
  },
1010
1071
  {
1011
- values: y.percentages,
1012
- valueFormat: a.Value.fraction
1072
+ values: d.percentages,
1073
+ valueFormat: t.Value.fraction
1013
1074
  }
1014
1075
  ],
1015
1076
  /** The margin-top CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer. */
@@ -1017,15 +1078,15 @@ const y = W, R = {
1017
1078
  {
1018
1079
  values: 0,
1019
1080
  styleName: "margin-top",
1020
- valueFormat: a.Value.rem
1081
+ valueFormat: t.Value.rem
1021
1082
  },
1022
1083
  {
1023
1084
  values: ["auto"],
1024
1085
  styleName: "margin-top"
1025
1086
  },
1026
1087
  {
1027
- values: y.percentages,
1028
- valueFormat: a.Value.fraction
1088
+ values: d.percentages,
1089
+ valueFormat: t.Value.fraction
1029
1090
  }
1030
1091
  ],
1031
1092
  /** The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer. */
@@ -1033,15 +1094,15 @@ const y = W, R = {
1033
1094
  {
1034
1095
  values: 0,
1035
1096
  styleName: "margin-right",
1036
- valueFormat: a.Value.rem
1097
+ valueFormat: t.Value.rem
1037
1098
  },
1038
1099
  {
1039
1100
  values: ["auto"],
1040
1101
  styleName: "margin-right"
1041
1102
  },
1042
1103
  {
1043
- values: y.percentages,
1044
- valueFormat: a.Value.fraction
1104
+ values: d.percentages,
1105
+ valueFormat: t.Value.fraction
1045
1106
  }
1046
1107
  ],
1047
1108
  /** The margin-bottom CSS property sets the margin area on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer. */
@@ -1049,15 +1110,15 @@ const y = W, R = {
1049
1110
  {
1050
1111
  values: 0,
1051
1112
  styleName: "margin-bottom",
1052
- valueFormat: a.Value.rem
1113
+ valueFormat: t.Value.rem
1053
1114
  },
1054
1115
  {
1055
1116
  values: ["auto"],
1056
1117
  styleName: "margin-bottom"
1057
1118
  },
1058
1119
  {
1059
- values: y.percentages,
1060
- valueFormat: a.Value.fraction
1120
+ values: d.percentages,
1121
+ valueFormat: t.Value.fraction
1061
1122
  }
1062
1123
  ],
1063
1124
  /** The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer. */
@@ -1065,15 +1126,15 @@ const y = W, R = {
1065
1126
  {
1066
1127
  values: 0,
1067
1128
  styleName: "margin-left",
1068
- valueFormat: a.Value.rem
1129
+ valueFormat: t.Value.rem
1069
1130
  },
1070
1131
  {
1071
1132
  values: ["auto"],
1072
1133
  styleName: "margin-left"
1073
1134
  },
1074
1135
  {
1075
- values: y.percentages,
1076
- valueFormat: a.Value.fraction
1136
+ values: d.percentages,
1137
+ valueFormat: t.Value.fraction
1077
1138
  }
1078
1139
  ],
1079
1140
  /** The padding CSS shorthand property sets the padding area on all four sides of an element at once. */
@@ -1081,11 +1142,11 @@ const y = W, R = {
1081
1142
  {
1082
1143
  values: 0,
1083
1144
  styleName: "padding",
1084
- valueFormat: a.Value.rem
1145
+ valueFormat: t.Value.rem
1085
1146
  },
1086
1147
  {
1087
- values: y.percentages,
1088
- valueFormat: a.Value.fraction
1148
+ values: d.percentages,
1149
+ valueFormat: t.Value.fraction
1089
1150
  }
1090
1151
  ],
1091
1152
  /** The padding-inline CSS shorthand property defines the logical inline start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation. */
@@ -1093,11 +1154,11 @@ const y = W, R = {
1093
1154
  {
1094
1155
  values: 0,
1095
1156
  styleName: "padding-inline",
1096
- valueFormat: a.Value.rem
1157
+ valueFormat: t.Value.rem
1097
1158
  },
1098
1159
  {
1099
- values: y.percentages,
1100
- valueFormat: a.Value.fraction
1160
+ values: d.percentages,
1161
+ valueFormat: t.Value.fraction
1101
1162
  }
1102
1163
  ],
1103
1164
  /** The padding-block CSS shorthand property defines the logical block start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation. */
@@ -1105,11 +1166,11 @@ const y = W, R = {
1105
1166
  {
1106
1167
  values: 0,
1107
1168
  styleName: "padding-block",
1108
- valueFormat: a.Value.rem
1169
+ valueFormat: t.Value.rem
1109
1170
  },
1110
1171
  {
1111
- values: y.percentages,
1112
- valueFormat: a.Value.fraction
1172
+ values: d.percentages,
1173
+ valueFormat: t.Value.fraction
1113
1174
  }
1114
1175
  ],
1115
1176
  /** The padding-top CSS property sets the height of the padding area on the top of an element. */
@@ -1117,11 +1178,11 @@ const y = W, R = {
1117
1178
  {
1118
1179
  values: 0,
1119
1180
  styleName: "padding-top",
1120
- valueFormat: a.Value.rem
1181
+ valueFormat: t.Value.rem
1121
1182
  },
1122
1183
  {
1123
- values: y.percentages,
1124
- valueFormat: a.Value.fraction
1184
+ values: d.percentages,
1185
+ valueFormat: t.Value.fraction
1125
1186
  }
1126
1187
  ],
1127
1188
  /** The padding-right CSS property sets the width of the padding area on the right of an element. */
@@ -1129,11 +1190,11 @@ const y = W, R = {
1129
1190
  {
1130
1191
  values: 0,
1131
1192
  styleName: "padding-right",
1132
- valueFormat: a.Value.rem
1193
+ valueFormat: t.Value.rem
1133
1194
  },
1134
1195
  {
1135
- values: y.percentages,
1136
- valueFormat: a.Value.fraction
1196
+ values: d.percentages,
1197
+ valueFormat: t.Value.fraction
1137
1198
  }
1138
1199
  ],
1139
1200
  /** The padding-bottom CSS property sets the height of the padding area on the bottom of an element. */
@@ -1141,11 +1202,11 @@ const y = W, R = {
1141
1202
  {
1142
1203
  values: 0,
1143
1204
  styleName: "padding-bottom",
1144
- valueFormat: a.Value.rem
1205
+ valueFormat: t.Value.rem
1145
1206
  },
1146
1207
  {
1147
- values: y.percentages,
1148
- valueFormat: a.Value.fraction
1208
+ values: d.percentages,
1209
+ valueFormat: t.Value.fraction
1149
1210
  }
1150
1211
  ],
1151
1212
  /** The padding-left CSS property sets the width of the padding area to the left of an element. */
@@ -1153,11 +1214,11 @@ const y = W, R = {
1153
1214
  {
1154
1215
  values: 0,
1155
1216
  styleName: "padding-left",
1156
- valueFormat: a.Value.rem
1217
+ valueFormat: t.Value.rem
1157
1218
  },
1158
1219
  {
1159
- values: y.percentages,
1160
- valueFormat: a.Value.fraction
1220
+ values: d.percentages,
1221
+ valueFormat: t.Value.fraction
1161
1222
  }
1162
1223
  ],
1163
1224
  /** The object-fit CSS property sets how the content of a replaced element, such as an <img> or <video>, should be resized to fit its container. */
@@ -1178,7 +1239,7 @@ const y = W, R = {
1178
1239
  {
1179
1240
  styleName: "outline-width",
1180
1241
  values: 0,
1181
- valueFormat: a.Value.px
1242
+ valueFormat: t.Value.px
1182
1243
  }
1183
1244
  ],
1184
1245
  /** The outline-style CSS property sets the style of an element's outline. An outline is a line that is drawn around an element, outside the border. */
@@ -1193,7 +1254,7 @@ const y = W, R = {
1193
1254
  {
1194
1255
  styleName: "outline-offset",
1195
1256
  values: 0,
1196
- valueFormat: a.Value.px
1257
+ valueFormat: t.Value.px
1197
1258
  }
1198
1259
  ],
1199
1260
  /** The overflow CSS shorthand property sets the desired behavior when content does not fit in the element's padding box (overflows) in the horizontal and/or vertical direction. */
@@ -1409,69 +1470,79 @@ const y = W, R = {
1409
1470
  /** The color CSS property sets the foreground color value of an element's text and text decorations, and sets the currentcolor value. */
1410
1471
  color: [
1411
1472
  {
1412
- values: Object.keys(y.colors),
1413
- valueFormat: (e, t) => t(e)
1473
+ values: d.colorValues,
1474
+ valueFormat: (e, r) => r(e)
1414
1475
  }
1415
1476
  ],
1416
1477
  /** The background-color CSS property sets the background color of an element. */
1417
1478
  bgColor: [
1418
1479
  {
1419
- values: Object.keys(y.colors),
1420
- valueFormat: (e, t) => t(e),
1480
+ values: d.colorValues,
1481
+ valueFormat: (e, r) => r(e),
1421
1482
  styleName: "background-color"
1422
1483
  }
1423
1484
  ],
1424
1485
  /** The border-color shorthand CSS property sets the color of an element's border. */
1425
1486
  borderColor: [
1426
1487
  {
1427
- values: Object.keys(y.colors),
1428
- valueFormat: (e, t) => t(e),
1488
+ values: d.colorValues,
1489
+ valueFormat: (e, r) => r(e),
1429
1490
  styleName: "border-color"
1430
1491
  }
1431
1492
  ],
1432
1493
  /** The outline-color CSS property sets the color of an element's outline. */
1433
1494
  outlineColor: [
1434
1495
  {
1435
- values: Object.keys(y.colors),
1436
- valueFormat: (e, t) => t(e),
1496
+ values: d.colorValues,
1497
+ valueFormat: (e, r) => r(e),
1437
1498
  styleName: "outline-color"
1438
1499
  }
1439
1500
  ],
1440
1501
  /** The fill CSS property defines how SVG text content and the interior canvas of SVG shapes are filled or painted. If present, it overrides the element's fill attribute. */
1441
1502
  fill: [
1442
1503
  {
1443
- values: Object.keys(y.colors),
1444
- valueFormat: (e, t) => t(e)
1504
+ values: d.colorValues,
1505
+ valueFormat: (e, r) => r(e)
1445
1506
  }
1446
1507
  ],
1447
1508
  /** The stroke CSS property defines the color or SVG paint server used to draw an element's stroke. */
1448
1509
  stroke: [
1449
1510
  {
1450
- values: Object.keys(y.colors),
1451
- valueFormat: (e, t) => t(e)
1511
+ values: d.colorValues,
1512
+ valueFormat: (e, r) => r(e)
1452
1513
  }
1453
1514
  ],
1454
1515
  /** The background-image CSS property sets one or more background images on an element. */
1455
1516
  bgImage: [
1456
1517
  {
1457
- values: ["none", "bg-img-checked", "bg-img-indeterminate", "bg-img-radio"],
1458
- valueFormat: (e, t) => t(e),
1518
+ values: d.bgImageValues,
1519
+ valueFormat: (e, r) => r(e),
1459
1520
  styleName: "background-image"
1460
1521
  }
1461
1522
  ],
1462
1523
  /** The box-shadow CSS property adds shadow effects around an element's frame */
1463
1524
  shadow: [
1464
1525
  {
1465
- values: ["small", "medium", "large"],
1466
- valueFormat: (e, t) => t(`${e}-shadow`),
1526
+ values: d.shadowValues,
1527
+ valueFormat: (e, r) => r(e),
1467
1528
  styleName: "box-shadow"
1468
1529
  }
1469
1530
  ],
1470
- /** The translateY() CSS function repositions an element vertically on the 2D plane. */
1531
+ /** The translateX() CSS function repositions an element horizontally on the 2D plane. */
1471
1532
  translateX: [
1472
1533
  {
1473
1534
  values: 0,
1474
- valueFormat: (e) => `translateX(${e / G}rem)`,
1535
+ valueFormat: (e) => `translateX(${e / Y}rem)`,
1536
+ styleName: "transform"
1537
+ },
1538
+ {
1539
+ values: d.percentages,
1540
+ valueFormat: (e) => `translateX(${t.Value.fraction(e)})`,
1541
+ styleName: "transform"
1542
+ },
1543
+ {
1544
+ values: d.negativePercentages,
1545
+ valueFormat: (e) => `translateX(${t.Value.fraction(e)})`,
1475
1546
  styleName: "transform"
1476
1547
  }
1477
1548
  ],
@@ -1479,7 +1550,17 @@ const y = W, R = {
1479
1550
  translateY: [
1480
1551
  {
1481
1552
  values: 0,
1482
- valueFormat: (e) => `translateY(${e / G}rem)`,
1553
+ valueFormat: (e) => `translateY(${e / Y}rem)`,
1554
+ styleName: "transform"
1555
+ },
1556
+ {
1557
+ values: d.percentages,
1558
+ valueFormat: (e) => `translateY(${t.Value.fraction(e)})`,
1559
+ styleName: "transform"
1560
+ },
1561
+ {
1562
+ values: d.negativePercentages,
1563
+ valueFormat: (e) => `translateY(${t.Value.fraction(e)})`,
1483
1564
  styleName: "transform"
1484
1565
  }
1485
1566
  ],
@@ -1489,8 +1570,14 @@ const y = W, R = {
1489
1570
  values: ["empty"],
1490
1571
  valueFormat: () => "''"
1491
1572
  }
1573
+ ],
1574
+ backdropFilter: [
1575
+ {
1576
+ values: ["none", "blur(12px)", "blur(8px)", "blur(4px)"],
1577
+ styleName: "backdrop-filter"
1578
+ }
1492
1579
  ]
1493
- }, de = {
1580
+ }, me = {
1494
1581
  hover: ":hover",
1495
1582
  focus: ":focus-within",
1496
1583
  hasFocus: ":has(:focus)",
@@ -1505,33 +1592,34 @@ const y = W, R = {
1505
1592
  hasDisabled: ":has([disabled])",
1506
1593
  before: "::before",
1507
1594
  after: "::after"
1508
- }, k = {
1595
+ }, U = {
1509
1596
  indeterminate: ":indeterminate",
1510
1597
  checked: ":checked",
1511
1598
  required: ":required",
1512
1599
  disabled: "[disabled]",
1513
1600
  selected: '[aria-selected="true"]'
1514
- }, Ce = {
1601
+ }, Ve = {
1515
1602
  theme: ""
1516
- }, M = { ...de, ...k, ...Ce }, fe = Object.entries(M).reduce(
1517
- (e, [t], r) => (e[t] = Math.pow(2, r), e),
1603
+ }, W = { ...me, ...U, ...Ve }, ye = Object.entries(W).reduce(
1604
+ (e, [r], l) => (e[r] = Math.pow(2, l), e),
1518
1605
  {}
1519
- ), I = Object.entries(M).reduce(
1520
- (e, [t]) => {
1521
- const r = fe[t];
1522
- return Object.entries(e).forEach(([o, i]) => {
1523
- e[+o + r] = [...i, t];
1606
+ ), q = Object.entries(W).reduce(
1607
+ (e, [r]) => {
1608
+ const l = ye[r];
1609
+ return Object.entries(e).forEach(([a, o]) => {
1610
+ e[+a + l] = [...o, r];
1524
1611
  }), e;
1525
1612
  },
1526
1613
  { 0: [] }
1527
- ), ae = {
1614
+ ), P = {
1528
1615
  hoverGroup: "hover",
1529
1616
  focusGroup: "focus",
1530
1617
  activeGroup: "active",
1531
1618
  disabledGroup: "disabled",
1532
- selectedGroup: "selected",
1619
+ selectedGroup: "selected"
1620
+ }, ie = {
1533
1621
  theme: "theme"
1534
- }, _ = {
1622
+ }, D = {
1535
1623
  /** Styles applied for small screens and larger. >= 640 */
1536
1624
  sm: 640,
1537
1625
  /** Styles applied for medium screens and larger. >= 768 */
@@ -1543,34 +1631,34 @@ const y = W, R = {
1543
1631
  /** Styles applied for 2x extra-large screens and larger. >= 1536 */
1544
1632
  xxl: 1536
1545
1633
  };
1546
- var K;
1634
+ var Z;
1547
1635
  ((e) => {
1548
- function t(n, u, s) {
1549
- const d = { ...n }, b = d.props || {};
1550
- return u.forEach((l) => {
1551
- l in d && (b[l] = d[l], delete d[l]);
1552
- }), s && Object.entries(s).forEach(([l, g]) => {
1553
- b[l] = g;
1554
- }), d.props = b, d;
1636
+ function r(n, s, u) {
1637
+ const i = { ...n }, m = i.props || {};
1638
+ return s.forEach((f) => {
1639
+ f in i && (m[f] = i[f], delete i[f]);
1640
+ }), u && Object.entries(u).forEach(([f, y]) => {
1641
+ m[f] = y;
1642
+ }), i.props = m, i;
1555
1643
  }
1556
- e.buildProps = t;
1557
- function r(n) {
1644
+ e.buildProps = r;
1645
+ function l(n) {
1558
1646
  return !!n && typeof n == "object";
1559
1647
  }
1560
- e.isObject = r;
1561
- function o(...n) {
1562
- return n.reduce((u, s) => (Object.keys(s ?? {}).forEach((d) => {
1563
- const b = u[d], l = s[d];
1564
- r(l) && "clean" in l && l.clean ? u[d] = l : d in k && typeof l == "boolean" || (d in k && Array.isArray(l) ? u[d] = o(b, l[1] ?? {}) : Array.isArray(b) && Array.isArray(l) ? u[d] = b.concat(...l) : r(b) && r(l) ? u[d] = o(b, l) : u[d] = l);
1565
- }), u), {});
1648
+ e.isObject = l;
1649
+ function a(...n) {
1650
+ return n.reduce((s, u) => (Object.keys(u ?? {}).forEach((i) => {
1651
+ const m = s[i], f = u[i];
1652
+ l(f) && "clean" in f && f.clean ? s[i] = f : i in U && typeof f == "boolean" || (i in U && Array.isArray(f) ? s[i] = a(m, f[1] ?? {}) : Array.isArray(m) && Array.isArray(f) ? s[i] = m.concat(...f) : l(m) && l(f) ? s[i] = a(m, f) : s[i] = f);
1653
+ }), s), {});
1566
1654
  }
1567
- e.mergeDeep = o;
1568
- function i(n, u) {
1569
- return n in u;
1655
+ e.mergeDeep = a;
1656
+ function o(n, s) {
1657
+ return n in s;
1570
1658
  }
1571
- e.isKeyOf = i;
1572
- })(K || (K = {}));
1573
- const N = K, oe = {
1659
+ e.isKeyOf = o;
1660
+ })(Z || (Z = {}));
1661
+ const S = Z, se = {
1574
1662
  h1: {
1575
1663
  styles: { fontSize: 14 * 2.5 }
1576
1664
  },
@@ -1595,42 +1683,131 @@ const N = K, oe = {
1595
1683
  button: {
1596
1684
  styles: {
1597
1685
  display: "inline-flex",
1686
+ ai: "center",
1687
+ jc: "center",
1688
+ gap: 2,
1689
+ bgColor: "indigo-600",
1598
1690
  color: "white",
1599
- bgColor: "violet-500",
1600
- borderColor: "violet-500",
1601
- p: 3,
1691
+ fontWeight: 500,
1692
+ py: 2.5,
1693
+ px: 5,
1694
+ borderRadius: 2,
1695
+ b: 0,
1602
1696
  cursor: "pointer",
1603
- b: 1,
1604
- borderRadius: 1,
1605
- userSelect: "none",
1606
- lineHeight: 20,
1607
1697
  hover: {
1608
- bgColor: "violet-600",
1609
- borderColor: "violet-600"
1698
+ bgColor: "indigo-700"
1699
+ },
1700
+ active: {
1701
+ bgColor: "indigo-800"
1702
+ },
1703
+ focus: {
1704
+ outline: 2,
1705
+ outlineOffset: 2,
1706
+ outlineColor: "indigo-200"
1610
1707
  },
1611
1708
  disabled: {
1612
- cursor: "not-allowed",
1613
- bgColor: "violet-50",
1709
+ bgColor: "gray-200",
1614
1710
  color: "gray-400",
1615
- borderColor: "gray-300"
1711
+ cursor: "not-allowed",
1712
+ hover: {
1713
+ bgColor: "gray-200"
1714
+ }
1715
+ },
1716
+ theme: {
1717
+ dark: {
1718
+ bgColor: "indigo-500",
1719
+ hover: {
1720
+ bgColor: "indigo-400"
1721
+ },
1722
+ active: {
1723
+ bgColor: "indigo-600"
1724
+ },
1725
+ focus: {
1726
+ outlineColor: "indigo-800"
1727
+ },
1728
+ disabled: {
1729
+ bgColor: "gray-800",
1730
+ color: "gray-600",
1731
+ hover: {
1732
+ bgColor: "gray-800"
1733
+ }
1734
+ }
1735
+ }
1616
1736
  }
1617
1737
  },
1618
1738
  variants: {
1619
- hover: {
1620
- position: "relative",
1621
- overflow: "hidden",
1622
- b: 0,
1623
- before: {
1624
- position: "absolute",
1625
- top: 0,
1626
- left: 0,
1627
- width: 0,
1628
- height: "fit",
1629
- bgColor: "violet-700",
1630
- content: "empty",
1631
- transitionDuration: 300
1739
+ secondary: {
1740
+ bgColor: "white",
1741
+ color: "gray-900",
1742
+ b: 1,
1743
+ borderColor: "gray-300",
1744
+ hover: {
1745
+ bgColor: "gray-50"
1746
+ },
1747
+ active: {
1748
+ bgColor: "gray-100"
1749
+ },
1750
+ focus: {
1751
+ borderColor: "indigo-500",
1752
+ outlineColor: "indigo-100"
1753
+ },
1754
+ disabled: {
1755
+ bgColor: "gray-50",
1756
+ color: "gray-400",
1757
+ borderColor: "gray-200"
1758
+ },
1759
+ theme: {
1760
+ dark: {
1761
+ bgColor: "gray-800",
1762
+ color: "gray-100",
1763
+ borderColor: "gray-700",
1764
+ hover: {
1765
+ bgColor: "gray-700"
1766
+ },
1767
+ active: {
1768
+ bgColor: "gray-600"
1769
+ },
1770
+ focus: {
1771
+ borderColor: "indigo-400",
1772
+ outlineColor: "indigo-900"
1773
+ },
1774
+ disabled: {
1775
+ bgColor: "gray-900",
1776
+ color: "gray-600",
1777
+ borderColor: "gray-800"
1778
+ }
1779
+ }
1780
+ }
1781
+ },
1782
+ ghost: {
1783
+ bgColor: "transparent",
1784
+ color: "gray-700",
1785
+ hover: {
1786
+ bgColor: "gray-100"
1787
+ },
1788
+ active: {
1789
+ bgColor: "gray-200"
1790
+ },
1791
+ disabled: {
1792
+ bgColor: "transparent",
1793
+ color: "gray-400"
1632
1794
  },
1633
- hover: { before: { width: "fit" } }
1795
+ theme: {
1796
+ dark: {
1797
+ bgColor: "transparent",
1798
+ color: "gray-300",
1799
+ hover: {
1800
+ bgColor: "gray-800"
1801
+ },
1802
+ active: {
1803
+ bgColor: "gray-700"
1804
+ },
1805
+ disabled: {
1806
+ bgColor: "transparent",
1807
+ color: "gray-600"
1808
+ }
1809
+ }
1810
+ }
1634
1811
  }
1635
1812
  }
1636
1813
  },
@@ -1638,26 +1815,53 @@ const N = K, oe = {
1638
1815
  styles: {
1639
1816
  display: "inline-block",
1640
1817
  b: 1,
1641
- borderColor: "violet-200",
1642
- bgColor: "violet-50",
1643
- color: "violet-950",
1644
- borderRadius: 1,
1818
+ borderColor: "gray-300",
1819
+ bgColor: "white",
1820
+ color: "gray-900",
1821
+ borderRadius: 2,
1645
1822
  p: 3,
1646
- transition: "none",
1823
+ px: 4,
1647
1824
  lineHeight: 20,
1648
1825
  hover: {
1649
- borderColor: "violet-300"
1826
+ borderColor: "gray-400"
1650
1827
  },
1651
1828
  focus: {
1652
- outline: 1,
1653
- borderColor: "violet-500",
1654
- outlineColor: "violet-500"
1829
+ outline: 2,
1830
+ outlineOffset: 0,
1831
+ borderColor: "indigo-500",
1832
+ outlineColor: "indigo-200"
1655
1833
  },
1656
1834
  disabled: {
1657
1835
  cursor: "not-allowed",
1658
- bgColor: "violet-50",
1836
+ bgColor: "gray-100",
1659
1837
  color: "gray-400",
1660
- borderColor: "gray-300"
1838
+ borderColor: "gray-200"
1839
+ },
1840
+ theme: {
1841
+ dark: {
1842
+ bgColor: "gray-800",
1843
+ color: "gray-100",
1844
+ borderColor: "gray-700",
1845
+ hover: {
1846
+ borderColor: "gray-600"
1847
+ },
1848
+ focus: {
1849
+ borderColor: "indigo-400",
1850
+ outlineColor: "indigo-900"
1851
+ },
1852
+ disabled: {
1853
+ bgColor: "gray-900",
1854
+ color: "gray-600",
1855
+ borderColor: "gray-800"
1856
+ }
1857
+ }
1858
+ }
1859
+ },
1860
+ variants: {
1861
+ compact: {
1862
+ px: 2,
1863
+ py: 1,
1864
+ fontSize: 13
1661
1865
  }
1662
1866
  }
1663
1867
  },
@@ -1665,26 +1869,46 @@ const N = K, oe = {
1665
1869
  styles: {
1666
1870
  display: "inline-block",
1667
1871
  b: 1,
1668
- borderColor: "violet-200",
1669
- bgColor: "violet-50",
1670
- color: "violet-950",
1671
- borderRadius: 1,
1872
+ borderColor: "gray-300",
1873
+ bgColor: "white",
1874
+ color: "gray-900",
1875
+ borderRadius: 2,
1672
1876
  p: 3,
1673
- transition: "none",
1877
+ px: 4,
1674
1878
  hover: {
1675
- borderColor: "violet-300"
1879
+ borderColor: "gray-400"
1676
1880
  },
1677
1881
  focus: {
1678
- outline: 1,
1679
- borderColor: "violet-500",
1680
- outlineColor: "violet-500"
1882
+ outline: 2,
1883
+ outlineOffset: 0,
1884
+ borderColor: "indigo-500",
1885
+ outlineColor: "indigo-200"
1681
1886
  },
1682
1887
  disabled: {
1683
1888
  cursor: "not-allowed",
1684
- bgColor: "violet-50",
1889
+ bgColor: "gray-100",
1685
1890
  color: "gray-400",
1686
- borderColor: "gray-300",
1891
+ borderColor: "gray-200",
1687
1892
  resize: "none"
1893
+ },
1894
+ theme: {
1895
+ dark: {
1896
+ bgColor: "gray-800",
1897
+ color: "gray-100",
1898
+ borderColor: "gray-700",
1899
+ hover: {
1900
+ borderColor: "gray-600"
1901
+ },
1902
+ focus: {
1903
+ borderColor: "indigo-400",
1904
+ outlineColor: "indigo-900"
1905
+ },
1906
+ disabled: {
1907
+ bgColor: "gray-900",
1908
+ color: "gray-600",
1909
+ borderColor: "gray-800"
1910
+ }
1911
+ }
1688
1912
  }
1689
1913
  }
1690
1914
  },
@@ -1692,34 +1916,64 @@ const N = K, oe = {
1692
1916
  styles: {
1693
1917
  display: "inline-block",
1694
1918
  appearance: "none",
1695
- b: 1,
1696
- borderColor: "violet-300",
1919
+ b: 2,
1920
+ borderColor: "gray-300",
1697
1921
  borderRadius: 1,
1698
1922
  p: 2,
1699
1923
  cursor: "pointer",
1700
- transition: "none",
1701
1924
  hover: {
1702
- borderColor: "violet-500"
1925
+ borderColor: "indigo-400"
1703
1926
  },
1704
1927
  focus: {
1705
1928
  outline: 2,
1706
1929
  outlineOffset: 2,
1707
- outlineColor: "violet-500"
1930
+ outlineColor: "indigo-200"
1708
1931
  },
1709
1932
  checked: {
1710
- bgColor: "violet-500",
1711
- borderColor: "violet-500",
1933
+ bgColor: "indigo-500",
1934
+ borderColor: "indigo-500",
1712
1935
  bgImage: "bg-img-checked"
1713
1936
  },
1714
1937
  indeterminate: {
1715
- color: "violet-500",
1938
+ borderColor: "indigo-500",
1716
1939
  bgImage: "bg-img-indeterminate"
1717
1940
  },
1718
1941
  disabled: {
1719
1942
  cursor: "not-allowed",
1720
- bgColor: "violet-100",
1721
- color: "gray-400",
1722
- borderColor: "gray-300"
1943
+ borderColor: "gray-200",
1944
+ checked: {
1945
+ bgColor: "gray-300"
1946
+ },
1947
+ hover: {
1948
+ borderColor: "gray-200"
1949
+ }
1950
+ },
1951
+ theme: {
1952
+ dark: {
1953
+ borderColor: "gray-600",
1954
+ hover: {
1955
+ borderColor: "indigo-400"
1956
+ },
1957
+ focus: {
1958
+ outlineColor: "indigo-900"
1959
+ },
1960
+ checked: {
1961
+ bgColor: "indigo-500",
1962
+ borderColor: "indigo-500"
1963
+ },
1964
+ indeterminate: {
1965
+ borderColor: "indigo-500"
1966
+ },
1967
+ disabled: {
1968
+ borderColor: "gray-700",
1969
+ checked: {
1970
+ bgColor: "gray-600"
1971
+ },
1972
+ hover: {
1973
+ borderColor: "gray-700"
1974
+ }
1975
+ }
1976
+ }
1723
1977
  }
1724
1978
  },
1725
1979
  variants: {
@@ -1730,72 +1984,122 @@ const N = K, oe = {
1730
1984
  styles: {
1731
1985
  appearance: "none",
1732
1986
  b: 1,
1733
- borderColor: "violet-300",
1987
+ borderColor: "gray-300",
1734
1988
  borderRadius: 3,
1735
1989
  p: 2,
1736
1990
  cursor: "pointer",
1737
- transition: "none",
1738
1991
  hover: {
1739
- borderColor: "violet-500"
1992
+ borderColor: "indigo-400"
1740
1993
  },
1741
1994
  focus: {
1742
1995
  outline: 2,
1743
1996
  outlineOffset: 2,
1744
- outlineColor: "violet-500"
1997
+ outlineColor: "indigo-200"
1745
1998
  },
1746
1999
  checked: {
1747
- bgColor: "violet-500",
1748
- borderColor: "violet-500",
2000
+ bgColor: "indigo-500",
2001
+ borderColor: "indigo-500",
1749
2002
  bgImage: "bg-img-radio"
1750
2003
  },
1751
2004
  disabled: {
2005
+ checked: {
2006
+ bgColor: "gray-300",
2007
+ borderColor: "gray-200"
2008
+ },
1752
2009
  cursor: "not-allowed",
1753
- bgColor: "violet-100",
1754
- color: "gray-400",
1755
- borderColor: "violet-200"
2010
+ borderColor: "gray-200",
2011
+ hover: {
2012
+ borderColor: "gray-200"
2013
+ }
2014
+ },
2015
+ theme: {
2016
+ dark: {
2017
+ borderColor: "gray-600",
2018
+ hover: {
2019
+ borderColor: "indigo-400"
2020
+ },
2021
+ focus: {
2022
+ outlineColor: "indigo-900"
2023
+ },
2024
+ checked: {
2025
+ bgColor: "indigo-500",
2026
+ borderColor: "indigo-500"
2027
+ },
2028
+ disabled: {
2029
+ borderColor: "gray-700",
2030
+ checked: {
2031
+ bgColor: "gray-600"
2032
+ },
2033
+ hover: {
2034
+ borderColor: "gray-700"
2035
+ }
2036
+ }
2037
+ }
1756
2038
  }
1757
2039
  }
1758
2040
  },
1759
2041
  dropdown: {
1760
2042
  styles: {
1761
- display: "inline-flex",
1762
- ai: "center",
2043
+ display: "inline-block",
2044
+ overflow: "hidden",
2045
+ whiteSpace: "nowrap",
2046
+ textOverflow: "ellipsis",
2047
+ textAlign: "left",
1763
2048
  gap: 2,
1764
- jc: "space-between",
1765
2049
  p: 3,
1766
2050
  cursor: "pointer",
1767
- bgColor: "violet-50",
1768
- color: "violet-950",
2051
+ bgColor: "white",
2052
+ color: "gray-900",
1769
2053
  b: 1,
1770
- borderColor: "violet-200",
1771
- borderRadius: 1,
2054
+ borderColor: "gray-300",
2055
+ borderRadius: 2,
1772
2056
  userSelect: "none",
1773
2057
  lineHeight: 20,
1774
2058
  minWidth: 40,
1775
2059
  transition: "none",
1776
2060
  hover: {
1777
- borderColor: "violet-300"
2061
+ borderColor: "gray-400"
1778
2062
  },
1779
2063
  focus: {
1780
- outline: 1,
1781
- borderColor: "violet-500",
1782
- outlineColor: "violet-500"
2064
+ outline: 2,
2065
+ outlineOffset: 0,
2066
+ borderColor: "indigo-500",
2067
+ outlineColor: "indigo-200"
1783
2068
  },
1784
2069
  disabled: {
1785
2070
  cursor: "not-allowed",
1786
- bgColor: "violet-50",
2071
+ bgColor: "gray-100",
1787
2072
  color: "gray-400",
1788
2073
  borderColor: "gray-300"
2074
+ },
2075
+ theme: {
2076
+ dark: {
2077
+ bgColor: "gray-800",
2078
+ color: "gray-100",
2079
+ borderColor: "gray-700",
2080
+ hover: {
2081
+ borderColor: "gray-600"
2082
+ },
2083
+ focus: {
2084
+ borderColor: "indigo-400",
2085
+ outlineColor: "indigo-900"
2086
+ },
2087
+ disabled: {
2088
+ bgColor: "gray-900",
2089
+ color: "gray-500",
2090
+ borderColor: "gray-700"
2091
+ }
2092
+ }
2093
+ }
2094
+ },
2095
+ variants: {
2096
+ compact: {
2097
+ px: 2,
2098
+ py: 1,
2099
+ fontSize: 13
1789
2100
  }
1790
2101
  },
1791
2102
  children: {
1792
- display: {
1793
- styles: {
1794
- whiteSpace: "nowrap",
1795
- textOverflow: "ellipsis",
1796
- overflow: "hidden"
1797
- }
1798
- },
1799
2103
  items: {
1800
2104
  styles: {
1801
2105
  display: "flex",
@@ -1803,15 +2107,21 @@ const N = K, oe = {
1803
2107
  gap: 1,
1804
2108
  p: 1,
1805
2109
  b: 1,
1806
- borderRadius: 1,
2110
+ borderRadius: 2,
1807
2111
  position: "relative",
1808
- top: 1,
1809
2112
  bgColor: "white",
1810
2113
  overflow: "auto",
1811
2114
  maxHeight: 62,
1812
- borderColor: "violet-300",
1813
- color: "violet-950",
1814
- shadow: "medium"
2115
+ borderColor: "gray-300",
2116
+ color: "gray-900",
2117
+ shadow: "medium",
2118
+ theme: {
2119
+ dark: {
2120
+ bgColor: "gray-800",
2121
+ borderColor: "gray-700",
2122
+ color: "gray-100"
2123
+ }
2124
+ }
1815
2125
  }
1816
2126
  },
1817
2127
  item: {
@@ -1821,21 +2131,42 @@ const N = K, oe = {
1821
2131
  p: 3,
1822
2132
  cursor: "pointer",
1823
2133
  borderRadius: 1,
2134
+ lineHeight: 20,
1824
2135
  hover: {
1825
2136
  bgColor: "gray-100"
1826
2137
  },
1827
2138
  focus: {
1828
- bgColor: "violet-50"
2139
+ bgColor: "indigo-50"
1829
2140
  },
1830
2141
  selected: {
1831
- bgColor: "violet-50",
2142
+ bgColor: "indigo-50",
1832
2143
  cursor: "default",
1833
2144
  hover: {
1834
- bgColor: "violet-100"
2145
+ bgColor: "indigo-100"
2146
+ }
2147
+ },
2148
+ theme: {
2149
+ dark: {
2150
+ hover: {
2151
+ bgColor: "gray-700"
2152
+ },
2153
+ focus: {
2154
+ bgColor: "gray-700"
2155
+ },
2156
+ selected: {
2157
+ bgColor: "indigo-900",
2158
+ hover: {
2159
+ bgColor: "indigo-800"
2160
+ }
2161
+ }
1835
2162
  }
1836
2163
  }
1837
2164
  },
1838
2165
  variants: {
2166
+ compact: {
2167
+ px: 2,
2168
+ py: 1
2169
+ },
1839
2170
  multiple: {
1840
2171
  selected: {
1841
2172
  cursor: "pointer"
@@ -1851,16 +2182,36 @@ const N = K, oe = {
1851
2182
  cursor: "pointer",
1852
2183
  lineHeight: 20,
1853
2184
  borderRadius: 1,
1854
- color: "violet-400",
2185
+ color: "gray-500",
1855
2186
  hover: {
1856
- bgColor: "violet-50"
2187
+ bgColor: "gray-100"
1857
2188
  },
1858
2189
  focus: {
1859
- bgColor: "violet-50"
2190
+ bgColor: "gray-100"
1860
2191
  },
1861
2192
  selected: {
1862
- bgColor: "violet-50",
2193
+ bgColor: "gray-100",
1863
2194
  cursor: "default"
2195
+ },
2196
+ theme: {
2197
+ dark: {
2198
+ color: "gray-400",
2199
+ hover: {
2200
+ bgColor: "gray-700"
2201
+ },
2202
+ focus: {
2203
+ bgColor: "gray-700"
2204
+ },
2205
+ selected: {
2206
+ bgColor: "gray-700"
2207
+ }
2208
+ }
2209
+ }
2210
+ },
2211
+ variants: {
2212
+ compact: {
2213
+ px: 2,
2214
+ py: 1
1864
2215
  }
1865
2216
  }
1866
2217
  },
@@ -1872,16 +2223,36 @@ const N = K, oe = {
1872
2223
  cursor: "pointer",
1873
2224
  lineHeight: 20,
1874
2225
  borderRadius: 1,
1875
- color: "violet-400",
2226
+ color: "gray-500",
1876
2227
  hover: {
1877
- bgColor: "violet-50"
2228
+ bgColor: "gray-100"
1878
2229
  },
1879
2230
  focus: {
1880
- bgColor: "violet-50"
2231
+ bgColor: "gray-100"
1881
2232
  },
1882
2233
  selected: {
1883
- bgColor: "violet-50",
2234
+ bgColor: "gray-100",
1884
2235
  cursor: "default"
2236
+ },
2237
+ theme: {
2238
+ dark: {
2239
+ color: "gray-400",
2240
+ hover: {
2241
+ bgColor: "gray-700"
2242
+ },
2243
+ focus: {
2244
+ bgColor: "gray-700"
2245
+ },
2246
+ selected: {
2247
+ bgColor: "gray-700"
2248
+ }
2249
+ }
2250
+ }
2251
+ },
2252
+ variants: {
2253
+ compact: {
2254
+ px: 2,
2255
+ py: 1
1885
2256
  }
1886
2257
  }
1887
2258
  },
@@ -1893,7 +2264,27 @@ const N = K, oe = {
1893
2264
  cursor: "default",
1894
2265
  lineHeight: 20,
1895
2266
  borderRadius: 1,
1896
- color: "violet-400"
2267
+ color: "gray-400",
2268
+ theme: {
2269
+ dark: {
2270
+ color: "gray-500"
2271
+ }
2272
+ }
2273
+ },
2274
+ variants: {
2275
+ compact: {
2276
+ px: 2,
2277
+ py: 1
2278
+ }
2279
+ }
2280
+ },
2281
+ icon: {
2282
+ styles: {
2283
+ position: "absolute",
2284
+ top: 0,
2285
+ right: 0,
2286
+ height: "fit",
2287
+ px: 1.5
1897
2288
  }
1898
2289
  }
1899
2290
  }
@@ -1903,44 +2294,177 @@ const N = K, oe = {
1903
2294
  styles: {
1904
2295
  b: 1,
1905
2296
  bgColor: "white",
1906
- borderColor: "gray-400",
2297
+ borderColor: "gray-200",
1907
2298
  overflow: "hidden",
1908
- borderRadius: 1
2299
+ borderRadius: 3,
2300
+ shadow: "large",
2301
+ theme: {
2302
+ dark: {
2303
+ bgColor: "gray-900",
2304
+ borderColor: "gray-800"
2305
+ }
2306
+ }
1909
2307
  },
1910
2308
  children: {
1911
2309
  topBar: {
1912
2310
  styles: {
1913
- p: 2,
2311
+ py: 3,
2312
+ px: 4,
1914
2313
  bb: 1,
1915
- borderColor: "gray-400",
1916
- color: "gray-400",
1917
- gap: 2,
1918
- ai: "center"
2314
+ borderColor: "gray-200",
2315
+ color: "gray-800",
2316
+ gap: 3,
2317
+ ai: "center",
2318
+ bgColor: "gray-50",
2319
+ theme: {
2320
+ dark: {
2321
+ bgColor: "gray-800",
2322
+ borderColor: "gray-700",
2323
+ color: "gray-200"
2324
+ }
2325
+ }
1919
2326
  },
1920
2327
  children: {
2328
+ globalFilter: {
2329
+ styles: {
2330
+ display: "flex",
2331
+ ai: "center",
2332
+ gap: 2
2333
+ },
2334
+ children: {
2335
+ stats: {
2336
+ styles: {
2337
+ fontSize: 13,
2338
+ color: "gray-500",
2339
+ textWrap: "nowrap",
2340
+ theme: {
2341
+ dark: {
2342
+ color: "gray-400"
2343
+ }
2344
+ }
2345
+ }
2346
+ },
2347
+ inputWrapper: {
2348
+ styles: {
2349
+ display: "flex",
2350
+ position: "relative"
2351
+ },
2352
+ children: {
2353
+ icon: {
2354
+ styles: {
2355
+ display: "flex",
2356
+ position: "absolute",
2357
+ left: 2,
2358
+ top: "1/2",
2359
+ translateY: "-1/2",
2360
+ pointerEvents: "none",
2361
+ color: "gray-500",
2362
+ theme: {
2363
+ dark: {
2364
+ color: "gray-400"
2365
+ }
2366
+ }
2367
+ }
2368
+ },
2369
+ input: {
2370
+ styles: {
2371
+ display: "inline-block",
2372
+ b: 1,
2373
+ borderColor: "gray-300",
2374
+ bgColor: "white",
2375
+ color: "gray-900",
2376
+ borderRadius: 2,
2377
+ py: 2,
2378
+ fontSize: 13,
2379
+ focus: {
2380
+ outline: 2,
2381
+ outlineOffset: 0,
2382
+ borderColor: "violet-500",
2383
+ outlineColor: "violet-100"
2384
+ },
2385
+ theme: {
2386
+ dark: {
2387
+ bgColor: "gray-800",
2388
+ borderColor: "gray-700",
2389
+ color: "gray-100",
2390
+ focus: {
2391
+ borderColor: "violet-500",
2392
+ outlineColor: "violet-950"
2393
+ }
2394
+ }
2395
+ }
2396
+ }
2397
+ },
2398
+ clear: {
2399
+ styles: {
2400
+ display: "flex",
2401
+ position: "absolute",
2402
+ right: 2,
2403
+ top: "1/2",
2404
+ translateY: "-1/2",
2405
+ cursor: "pointer",
2406
+ fontSize: 13,
2407
+ color: "gray-500",
2408
+ hover: {
2409
+ color: "gray-700"
2410
+ },
2411
+ theme: {
2412
+ dark: {
2413
+ color: "gray-400",
2414
+ hover: {
2415
+ color: "gray-200"
2416
+ }
2417
+ }
2418
+ }
2419
+ }
2420
+ }
2421
+ }
2422
+ }
2423
+ }
2424
+ },
1921
2425
  contextMenu: {
1922
2426
  clean: !0,
1923
2427
  styles: {
1924
2428
  cursor: "pointer",
1925
- p: 1,
1926
- hover: { bgColor: "gray-200", borderRadius: 1 }
2429
+ p: 2,
2430
+ borderRadius: 2,
2431
+ color: "gray-700",
2432
+ hover: {
2433
+ bgColor: "gray-100"
2434
+ },
2435
+ theme: {
2436
+ dark: {
2437
+ color: "gray-300",
2438
+ hover: {
2439
+ bgColor: "gray-800"
2440
+ }
2441
+ }
2442
+ }
1927
2443
  },
1928
2444
  children: {
1929
2445
  tooltip: {
1930
2446
  styles: {
1931
2447
  bgColor: "white",
2448
+ color: "gray-900",
1932
2449
  width: 56,
1933
2450
  b: 1,
1934
2451
  borderColor: "gray-300",
1935
- borderRadius: 1,
2452
+ borderRadius: 3,
1936
2453
  display: "flex",
1937
2454
  d: "column",
1938
- mt: 4,
2455
+ mt: 2,
1939
2456
  py: 2,
1940
2457
  translateX: -1,
1941
- shadow: "medium",
2458
+ shadow: "large",
1942
2459
  overflow: "auto",
1943
- maxHeight: 100
2460
+ maxHeight: 100,
2461
+ theme: {
2462
+ dark: {
2463
+ bgColor: "gray-800",
2464
+ borderColor: "gray-700",
2465
+ color: "gray-100"
2466
+ }
2467
+ }
1944
2468
  },
1945
2469
  children: {
1946
2470
  item: {
@@ -1950,7 +2474,31 @@ const N = K, oe = {
1950
2474
  gap: 2,
1951
2475
  p: 3,
1952
2476
  cursor: "pointer",
1953
- hover: { bgColor: "gray-200" }
2477
+ color: "gray-900",
2478
+ hover: {
2479
+ bgColor: "violet-50"
2480
+ },
2481
+ theme: {
2482
+ dark: {
2483
+ color: "gray-100",
2484
+ hover: {
2485
+ bgColor: "gray-700"
2486
+ }
2487
+ }
2488
+ }
2489
+ },
2490
+ children: {
2491
+ icon: {
2492
+ styles: {
2493
+ width: 4,
2494
+ color: "violet-950",
2495
+ theme: {
2496
+ dark: {
2497
+ color: "violet-300"
2498
+ }
2499
+ }
2500
+ }
2501
+ }
1954
2502
  }
1955
2503
  }
1956
2504
  }
@@ -1965,8 +2513,13 @@ const N = K, oe = {
1965
2513
  children: {
1966
2514
  icon: {
1967
2515
  styles: {
1968
- color: "violet-950",
1969
- width: 4
2516
+ color: "gray-700",
2517
+ width: 4,
2518
+ theme: {
2519
+ dark: {
2520
+ color: "gray-300"
2521
+ }
2522
+ }
1970
2523
  }
1971
2524
  },
1972
2525
  separator: {
@@ -1977,20 +2530,41 @@ const N = K, oe = {
1977
2530
  gap: 2,
1978
2531
  ai: "center",
1979
2532
  b: 1,
1980
- borderColor: "gray-400",
1981
- bgColor: "gray-100",
1982
- borderRadius: 1,
1983
- py: 1,
1984
- pl: 2,
1985
- pr: 1,
1986
- color: "violet-950"
2533
+ borderColor: "gray-300",
2534
+ bgColor: "white",
2535
+ borderRadius: 2,
2536
+ py: 2,
2537
+ pl: 3,
2538
+ pr: 2,
2539
+ color: "gray-800",
2540
+ fontSize: 14,
2541
+ fontWeight: 500,
2542
+ shadow: "small",
2543
+ theme: {
2544
+ dark: {
2545
+ bgColor: "gray-800",
2546
+ borderColor: "gray-700",
2547
+ color: "gray-200"
2548
+ }
2549
+ }
1987
2550
  },
1988
2551
  children: {
1989
2552
  icon: {
1990
2553
  styles: {
1991
2554
  width: 3,
1992
- color: "gray-400",
1993
- cursor: "pointer"
2555
+ color: "gray-500",
2556
+ cursor: "pointer",
2557
+ hover: {
2558
+ color: "gray-700"
2559
+ },
2560
+ theme: {
2561
+ dark: {
2562
+ color: "gray-400",
2563
+ hover: {
2564
+ color: "gray-200"
2565
+ }
2566
+ }
2567
+ }
1994
2568
  }
1995
2569
  }
1996
2570
  }
@@ -1999,6 +2573,64 @@ const N = K, oe = {
1999
2573
  }
2000
2574
  }
2001
2575
  },
2576
+ filter: {
2577
+ styles: {},
2578
+ children: {
2579
+ row: {
2580
+ styles: {
2581
+ bgColor: "gray-50",
2582
+ bb: 1,
2583
+ borderColor: "gray-200",
2584
+ theme: {
2585
+ dark: {
2586
+ bgColor: "gray-800",
2587
+ borderColor: "gray-700"
2588
+ }
2589
+ }
2590
+ }
2591
+ },
2592
+ cell: {
2593
+ styles: {
2594
+ display: "flex",
2595
+ ai: "center",
2596
+ p: 2,
2597
+ transition: "none"
2598
+ },
2599
+ variants: {
2600
+ isPinned: {
2601
+ position: "sticky",
2602
+ bgColor: "gray-50",
2603
+ zIndex: 2,
2604
+ theme: {
2605
+ dark: {
2606
+ bgColor: "gray-800"
2607
+ }
2608
+ }
2609
+ },
2610
+ isFirstLeftPinned: {},
2611
+ isLastLeftPinned: {
2612
+ br: 1,
2613
+ borderColor: "gray-200",
2614
+ theme: {
2615
+ dark: {
2616
+ borderColor: "gray-700"
2617
+ }
2618
+ }
2619
+ },
2620
+ isFirstRightPinned: {
2621
+ bl: 1,
2622
+ borderColor: "gray-200",
2623
+ theme: {
2624
+ dark: {
2625
+ borderColor: "gray-700"
2626
+ }
2627
+ }
2628
+ },
2629
+ isLastRightPinned: {}
2630
+ }
2631
+ }
2632
+ }
2633
+ },
2002
2634
  header: {
2003
2635
  styles: {
2004
2636
  position: "sticky",
@@ -2006,7 +2638,12 @@ const N = K, oe = {
2006
2638
  width: "max-content",
2007
2639
  minWidth: "fit",
2008
2640
  zIndex: 1,
2009
- bgColor: "gray-200"
2641
+ bgColor: "gray-50",
2642
+ theme: {
2643
+ dark: {
2644
+ bgColor: "gray-800"
2645
+ }
2646
+ }
2010
2647
  },
2011
2648
  variants: {
2012
2649
  isResizeMode: { userSelect: "none" }
@@ -2014,19 +2651,66 @@ const N = K, oe = {
2014
2651
  children: {
2015
2652
  cell: {
2016
2653
  styles: {
2017
- borderColor: "gray-400",
2654
+ borderColor: "gray-200",
2018
2655
  bb: 1,
2019
2656
  minHeight: 12,
2020
2657
  position: "relative",
2021
- transition: "none"
2658
+ transition: "none",
2659
+ fontSize: 13,
2660
+ fontWeight: 600,
2661
+ color: "gray-800",
2662
+ py: 3.5,
2663
+ theme: {
2664
+ dark: {
2665
+ borderColor: "gray-700",
2666
+ color: "gray-200"
2667
+ }
2668
+ }
2022
2669
  },
2023
2670
  variants: {
2024
- isPinned: { position: "sticky", zIndex: 2, bgColor: "gray-200" },
2671
+ isPinned: {
2672
+ position: "sticky",
2673
+ zIndex: 2,
2674
+ bgColor: "gray-50",
2675
+ theme: {
2676
+ dark: {
2677
+ bgColor: "gray-800"
2678
+ }
2679
+ }
2680
+ },
2025
2681
  isFirstLeftPinned: {},
2026
- isLastLeftPinned: { br: 1 },
2027
- isFirstRightPinned: { bl: 1 },
2682
+ isLastLeftPinned: {
2683
+ br: 1,
2684
+ borderColor: "gray-200",
2685
+ theme: {
2686
+ dark: {
2687
+ borderColor: "gray-700"
2688
+ }
2689
+ }
2690
+ },
2691
+ isFirstRightPinned: {
2692
+ bl: 1,
2693
+ borderColor: "gray-200",
2694
+ theme: {
2695
+ dark: {
2696
+ borderColor: "gray-700"
2697
+ }
2698
+ }
2699
+ },
2028
2700
  isLastRightPinned: {},
2029
- isSortable: { cursor: "pointer" },
2701
+ isSortable: {
2702
+ cursor: "pointer",
2703
+ hover: {
2704
+ bgColor: "gray-100"
2705
+ },
2706
+ theme: {
2707
+ dark: {
2708
+ hover: {
2709
+ bgColor: "gray-800"
2710
+ }
2711
+ }
2712
+ }
2713
+ },
2030
2714
  isRowSelected: {},
2031
2715
  isRowSelection: {},
2032
2716
  isRowNumber: { jc: "center" }
@@ -2045,7 +2729,14 @@ const N = K, oe = {
2045
2729
  jc: "center",
2046
2730
  ai: "center",
2047
2731
  transition: "none",
2048
- hover: { bgColor: "gray-300" }
2732
+ color: "gray-600",
2733
+ hover: { bgColor: "gray-300" },
2734
+ theme: {
2735
+ dark: {
2736
+ color: "gray-400",
2737
+ hover: { bgColor: "gray-700" }
2738
+ }
2739
+ }
2049
2740
  },
2050
2741
  children: {
2051
2742
  icon: {
@@ -2054,20 +2745,23 @@ const N = K, oe = {
2054
2745
  tooltip: {
2055
2746
  styles: {
2056
2747
  bgColor: "white",
2748
+ color: "gray-900",
2057
2749
  width: 56,
2058
2750
  b: 1,
2059
2751
  borderColor: "gray-300",
2060
- borderRadius: 1,
2752
+ borderRadius: 3,
2061
2753
  display: "flex",
2062
2754
  d: "column",
2063
- mt: 4,
2064
2755
  py: 2,
2065
2756
  overflow: "hidden",
2066
- translateX: -5,
2067
- shadow: "medium"
2068
- },
2069
- variants: {
2070
- openLeft: { translateX: -55 }
2757
+ shadow: "medium",
2758
+ theme: {
2759
+ dark: {
2760
+ bgColor: "gray-800",
2761
+ borderColor: "gray-700",
2762
+ color: "gray-100"
2763
+ }
2764
+ }
2071
2765
  },
2072
2766
  children: {
2073
2767
  item: {
@@ -2077,13 +2771,37 @@ const N = K, oe = {
2077
2771
  gap: 2,
2078
2772
  p: 3,
2079
2773
  cursor: "pointer",
2080
- hover: { bgColor: "gray-200" }
2774
+ color: "gray-900",
2775
+ hover: { bgColor: "violet-50" },
2776
+ theme: {
2777
+ dark: {
2778
+ color: "gray-100",
2779
+ hover: { bgColor: "gray-700" }
2780
+ }
2781
+ }
2081
2782
  },
2082
2783
  children: {
2083
2784
  icon: {
2084
2785
  styles: {
2085
2786
  width: 4,
2086
- color: "violet-950"
2787
+ color: "violet-950",
2788
+ theme: {
2789
+ dark: {
2790
+ color: "violet-300"
2791
+ }
2792
+ }
2793
+ }
2794
+ },
2795
+ separator: {
2796
+ styles: {
2797
+ bb: 1,
2798
+ my: 2,
2799
+ borderColor: "gray-300",
2800
+ theme: {
2801
+ dark: {
2802
+ borderColor: "gray-700"
2803
+ }
2804
+ }
2087
2805
  }
2088
2806
  }
2089
2807
  }
@@ -2110,18 +2828,57 @@ const N = K, oe = {
2110
2828
  cell: {
2111
2829
  styles: {
2112
2830
  bb: 1,
2113
- borderColor: "gray-400",
2831
+ borderColor: "gray-200",
2114
2832
  transition: "none",
2115
2833
  ai: "center",
2116
- hoverGroup: { "grid-row": { bgColor: "gray-200" } }
2834
+ hoverGroup: {
2835
+ "grid-row": {
2836
+ bgColor: "gray-100"
2837
+ }
2838
+ },
2839
+ theme: {
2840
+ dark: {
2841
+ borderColor: "gray-800",
2842
+ hoverGroup: {
2843
+ "grid-row": {
2844
+ bgColor: "gray-700"
2845
+ }
2846
+ }
2847
+ }
2848
+ }
2117
2849
  },
2118
2850
  variants: {
2119
- isPinned: { position: "sticky", bgColor: "gray-100", zIndex: 1 },
2851
+ isPinned: {
2852
+ position: "sticky",
2853
+ bgColor: "white",
2854
+ zIndex: 1,
2855
+ theme: {
2856
+ dark: {
2857
+ bgColor: "gray-900"
2858
+ }
2859
+ }
2860
+ },
2120
2861
  isFirstLeftPinned: {},
2121
- isLastLeftPinned: { br: 1 },
2122
- isFirstRightPinned: { bl: 1 },
2862
+ isLastLeftPinned: {
2863
+ br: 1,
2864
+ borderColor: "gray-200",
2865
+ theme: {
2866
+ dark: {
2867
+ borderColor: "gray-800"
2868
+ }
2869
+ }
2870
+ },
2871
+ isFirstRightPinned: {
2872
+ bl: 1,
2873
+ borderColor: "gray-200",
2874
+ theme: {
2875
+ dark: {
2876
+ borderColor: "gray-800"
2877
+ }
2878
+ }
2879
+ },
2123
2880
  isLastRightPinned: {},
2124
- isRowNumber: { bgColor: "gray-200", jc: "right" },
2881
+ isRowNumber: { jc: "right" },
2125
2882
  isRowSelection: {},
2126
2883
  isRowSelected: {}
2127
2884
  }
@@ -2130,288 +2887,381 @@ const N = K, oe = {
2130
2887
  },
2131
2888
  bottomBar: {
2132
2889
  styles: {
2133
- p: 3,
2134
- bgColor: "gray-200",
2890
+ py: 3,
2891
+ px: 4,
2892
+ lineHeight: 36,
2893
+ bgColor: "gray-50",
2135
2894
  bt: 1,
2136
- borderColor: "gray-400",
2137
- gap: 4
2895
+ borderColor: "gray-200",
2896
+ gap: 4,
2897
+ ai: "center",
2898
+ fontSize: 14,
2899
+ color: "gray-800",
2900
+ theme: {
2901
+ dark: {
2902
+ bgColor: "gray-800",
2903
+ borderColor: "gray-700",
2904
+ color: "gray-200"
2905
+ }
2906
+ }
2138
2907
  }
2139
2908
  }
2140
2909
  }
2141
2910
  }
2142
2911
  };
2143
- var q;
2912
+ var J;
2144
2913
  ((e) => {
2145
- function t(o, i, n) {
2146
- return y.setUserVariables(o), Object.entries(i).forEach(([u, s]) => {
2147
- R[u] = s;
2148
- }), Object.entries(n).forEach(([u, s]) => {
2149
- const d = R[u];
2150
- R[u] = d ? [...s, ...d] : s;
2151
- }), { extendedProps: i, extendedPropTypes: n };
2914
+ function r(a, o, n) {
2915
+ return d.setUserVariables(a), Object.entries(o).forEach(([s, u]) => {
2916
+ L[s] = u;
2917
+ }), Object.entries(n).forEach(([s, u]) => {
2918
+ const i = L[s];
2919
+ L[s] = i ? [...u, ...i] : u;
2920
+ }), { extendedProps: o, extendedPropTypes: n };
2152
2921
  }
2153
- e.extend = t, e.componentsStyles = oe;
2154
- function r(o) {
2155
- return e.componentsStyles = N.mergeDeep(oe, o), o;
2922
+ e.extend = r, e.componentsStyles = se;
2923
+ function l(a) {
2924
+ return e.componentsStyles = S.mergeDeep(se, a), a;
2156
2925
  }
2157
- e.components = r;
2158
- })(q || (q = {}));
2159
- const Ve = q, X = we.createContext({ theme: "", setTheme: () => {
2926
+ e.components = l;
2927
+ })(J || (J = {}));
2928
+ const $e = J, Q = we.createContext({ theme: "", setTheme: () => {
2160
2929
  } });
2161
- function Z(e) {
2162
- const { children: t, theme: r, use: o = "local" } = e, [i, n] = ie(r);
2163
- return ne(() => {
2164
- if (o === "local") return;
2165
- const u = document.documentElement;
2166
- return u.classList.add(i), () => {
2167
- u.classList.remove(i);
2930
+ function ee(e) {
2931
+ const { children: r, theme: l, use: a = "local" } = e, [o, n] = de(l);
2932
+ return ae(() => {
2933
+ if (a === "local") return;
2934
+ const s = document.documentElement;
2935
+ return s.classList.add(o), () => {
2936
+ s.classList.remove(o);
2168
2937
  };
2169
- }, [i]), o === "local" ? /* @__PURE__ */ h(X.Provider, { value: { theme: i, setTheme: n }, children: /* @__PURE__ */ h(Ne, { className: i, children: t }) }) : /* @__PURE__ */ h(X.Provider, { value: { theme: i, setTheme: n }, children: t });
2938
+ }, [o, a]), a === "local" ? /* @__PURE__ */ z(Q.Provider, { value: { theme: o, setTheme: n }, children: /* @__PURE__ */ z(Ne, { className: o, children: r }) }) : /* @__PURE__ */ z(Q.Provider, { value: { theme: o, setTheme: n }, children: r });
2170
2939
  }
2171
2940
  ((e) => {
2172
- function t() {
2173
- const { theme: r, setTheme: o } = xe(X);
2174
- return [r, o];
2941
+ function r() {
2942
+ const { theme: l, setTheme: a } = xe(Q);
2943
+ return [l, a];
2175
2944
  }
2176
- e.useTheme = t;
2177
- })(Z || (Z = {}));
2178
- const Ie = Z;
2179
- class ze {
2945
+ e.useTheme = r;
2946
+ })(ee || (ee = {}));
2947
+ const ze = ee;
2948
+ class ke {
2180
2949
  constructor() {
2181
2950
  this._index = 0, this._cache = {};
2182
2951
  }
2183
- getIdentity(t) {
2184
- return this._cache[t] || (this._cache[t] = this.getByIndex(this._index++)), this._cache[t];
2952
+ getIdentity(r) {
2953
+ return this._cache[r] || (this._cache[r] = this.getByIndex(this._index++)), this._cache[r];
2185
2954
  }
2186
- getByIndex(t) {
2187
- const { first: r, next: o } = $e, i = t - r.length;
2188
- if (i < 0)
2189
- return r[t];
2190
- const n = Math.floor(i / o.length), u = i - n * o.length;
2191
- return this.getByIndex(n) + o[u];
2955
+ getByIndex(r) {
2956
+ const { first: l, next: a } = Re, o = r - l.length;
2957
+ if (o < 0)
2958
+ return l[r];
2959
+ const n = Math.floor(o / a.length), s = o - n * a.length;
2960
+ return this.getByIndex(n) + a[s];
2192
2961
  }
2193
2962
  }
2194
- const $e = {
2963
+ const Re = {
2195
2964
  first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
2196
2965
  next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
2197
2966
  };
2198
- function Ae(e) {
2199
- const { clean: t, component: r, variant: o } = e;
2200
- return Q(() => {
2201
- if (t) return;
2202
- const i = r?.split(".");
2203
- if (!i) return;
2204
- const n = i.reduce((d, b, l) => l === 0 ? Ve.componentsStyles[b] : d?.children?.[b], void 0);
2967
+ function Se(e) {
2968
+ const { clean: r, component: l, variant: a } = e;
2969
+ return le(() => {
2970
+ if (r) return;
2971
+ const o = l?.split(".");
2972
+ if (!o) return;
2973
+ const n = o.reduce((i, m, f) => f === 0 ? $e.componentsStyles[m] : i?.children?.[m], void 0);
2205
2974
  if (!n) return;
2206
- if (!o) return n.styles;
2207
- const u = ce(o);
2208
- if (u.length === 0) return n.styles;
2209
- const s = N.mergeDeep(...u.map((d) => n.variants?.[d]));
2210
- return n.styles ? N.mergeDeep(n.styles, s) : s;
2211
- }, [t, r, o]);
2975
+ if (!a) return n.styles;
2976
+ const s = fe(a);
2977
+ if (s.length === 0) return n.styles;
2978
+ const u = S.mergeDeep(...s.map((i) => n.variants?.[i]));
2979
+ return n.styles ? S.mergeDeep(n.styles, u) : u;
2980
+ }, [r, l, a]);
2212
2981
  }
2213
- const Se = new ze(), Re = typeof window < "u" && typeof window.document < "u", me = typeof process == "object" && process.env?.NODE_ENV === "test", je = Re && !me ? ne : ue, ve = "_b", E = "_s";
2214
- function _e(e, t) {
2215
- je(O.flush, [e]);
2216
- const r = Ae(e);
2217
- return Q(() => {
2218
- const o = [t ? E : ve], i = r ? N.mergeDeep(r, e) : e;
2219
- return O.addClassNames(i, o, []), o;
2220
- }, [e, t, r]);
2982
+ const Ae = new ke(), Oe = typeof window < "u" && typeof window.document < "u", H = typeof process == "object" && process.env?.NODE_ENV === "test", je = Oe && !H ? ae : ge, be = "_b", E = "_s";
2983
+ function He(e, r) {
2984
+ const l = Se(e), a = le(() => l ? S.mergeDeep(l, e) : e, [e, l]), o = [r ? E : be];
2985
+ return B.addClassNames(a, o, []), je(() => {
2986
+ B.flush();
2987
+ }, [a]), o;
2221
2988
  }
2222
- var O;
2989
+ var B;
2223
2990
  ((e) => {
2224
- let t = !0, r = {};
2225
- function o(l, g, p, v, c) {
2226
- Object.entries(l).forEach(([f, m]) => {
2227
- if (N.isKeyOf(f, R))
2228
- u(f, m, g, p, v, c);
2229
- else if (N.isKeyOf(f, de))
2230
- o(m, g, [...p, f], v, c);
2231
- else if (N.isKeyOf(f, k)) {
2232
- if (Array.isArray(m)) {
2233
- const [x, w] = m;
2234
- o(w, g, [...p, f], v, c);
2991
+ let r = !0, l = !1;
2992
+ const a = /* @__PURE__ */ new Set(), o = [], n = [];
2993
+ let s = 0;
2994
+ const u = Object.keys(L).reduce((b, h, w) => (b[h] = w, b), {});
2995
+ let i = {};
2996
+ function m(b, h, w, p, g) {
2997
+ Object.entries(b).forEach(([v, c]) => {
2998
+ if (S.isKeyOf(v, L))
2999
+ x(v, c, h, w, p, g);
3000
+ else if (S.isKeyOf(v, me))
3001
+ m(c, h, [...w, v], p, g);
3002
+ else if (S.isKeyOf(v, U)) {
3003
+ if (Array.isArray(c)) {
3004
+ const [F, N] = c;
3005
+ m(N, h, [...w, v], p, g);
2235
3006
  }
2236
- N.isObject(m) && o(m, g, [...p, f], v, c);
2237
- } else N.isKeyOf(f, _) ? o(m, g, p, f, c) : N.isKeyOf(f, ae) && Object.entries(m).forEach(([x, w]) => {
2238
- o(w, g, [...p, ae[f]], v, x);
3007
+ S.isObject(c) && m(c, h, [...w, v], p, g);
3008
+ } else S.isKeyOf(v, D) ? m(c, h, w, v, g) : S.isKeyOf(v, P) ? Object.entries(c).forEach(([F, N]) => {
3009
+ m(N, h, [...w, P[v]], p, F);
3010
+ }) : S.isKeyOf(v, ie) && Object.entries(c).forEach(([F, N]) => {
3011
+ const $ = [...w, ie[v]];
3012
+ Object.entries(N).forEach(([V, O]) => {
3013
+ S.isKeyOf(V, P) ? Object.entries(O).forEach(([M, j]) => {
3014
+ m(
3015
+ j,
3016
+ h,
3017
+ [...$, P[V]],
3018
+ p,
3019
+ // Use | as separator to distinguish theme from group name
3020
+ `${F}|${M}`
3021
+ );
3022
+ }) : m({ [V]: O }, h, $, p, F);
3023
+ });
2239
3024
  });
2240
3025
  });
2241
3026
  }
2242
- e.addClassNames = o;
2243
- function i() {
2244
- if (!t) return;
3027
+ e.addClassNames = m;
3028
+ function f() {
3029
+ const b = d.hasPendingVariables();
3030
+ if (!r && !b) return;
2245
3031
  console.debug("\x1B[36m%s\x1B[0m", "[react-box]: flush");
2246
- const l = Object.entries(R).reduce((f, [m], x) => (f[m] = x, f), {}), g = `:root{--borderColor: black;--outlineColor: black;--lineHeight: 1.2;--fontSize: 14px;--transitionTime: 0.25s;--svgTransitionTime: 0.3s;}#crono-box {position: absolute;top: 0;left: 0;height: 0;z-index:99999;}
2247
- html{font-size: 16px;font-family: Arial, sans-serif;}
2248
- body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}
2249
- a,ul{all: unset;}
2250
- .${ve}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;background-color: initial;transition: all var(--transitionTime);box-sizing: border-box;font-family: inherit;font-size: inherit;}
2251
- .${E}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}.${E} path,.${E} circle,.${E} rect,.${E} line {transition: all var(--svgTransitionTime);}
2252
- `, p = Object.entries(r);
2253
- p.sort(
2254
- ([f], [m]) => (_[f] ?? 0) - (_[m] ?? 0)
2255
- );
2256
- const v = p.reduce(
2257
- (f, [m, x]) => (m !== "normal" && f.push(`@media(min-width: ${_[m]}px){`), Object.entries(x).forEach(([w, H]) => {
2258
- const { __parents: ee, ...ye } = H, te = Object.entries(ye);
2259
- te.sort(([C], [T]) => l[C] - l[T]), te.forEach(([C, T]) => {
2260
- T.forEach((z) => {
2261
- const F = R[C].find((V) => Array.isArray(V.values) ? V.values.includes(z) : typeof z == typeof V.values);
2262
- if (!F) return;
2263
- const $ = s(C, z, +w, m), U = I[+w].map((V) => M[V]).join(""), A = F.selector?.(`.${$}`, U) ?? `.${$}${U}`, L = Array.isArray(F.styleName) ? F.styleName : [F.styleName ?? C], D = F.valueFormat?.(z, y.getVariableValue) ?? z;
2264
- f.push(`${A}{${L.map((V) => `${V}:${D}`).join(";")}}`);
2265
- });
2266
- }), ee && Object.entries(ee).forEach(([C, T]) => {
2267
- const z = Object.entries(T);
2268
- z.sort(([j], [F]) => l[j] - l[F]), z.forEach(([j, F]) => {
2269
- F.forEach(($) => {
2270
- const A = R[j].find((S) => Array.isArray(S.values) ? S.values.includes($) : typeof $ == typeof S.values);
2271
- if (!A) return;
2272
- const L = s(j, $, +w, m, C), [D] = I[+w], V = I[+w].map((S) => M[S]).join(""), re = D === "theme" ? `.${C} .${L}` : `.${C}${V} .${L}`, ge = A.selector?.(re, "") ?? re, be = Array.isArray(A.styleName) ? A.styleName : [A.styleName ?? j], pe = A.valueFormat?.($, y.getVariableValue) ?? $;
2273
- f.push(`${ge}{${be.map((S) => `${S}:${pe}`).join(";")}}`);
2274
- });
2275
- });
2276
- });
2277
- }), m !== "normal" && f.push("}"), f),
2278
- [g]
3032
+ const h = K(), w = h.sheet;
3033
+ if (l) {
3034
+ if (d.hasPendingVariables()) {
3035
+ const p = d.getPendingVariables(), g = `:root{${Object.entries(p).map(([v, c]) => `--${v}: ${c};`).join("")}}`;
3036
+ if (w && !H)
3037
+ try {
3038
+ w.insertRule(g, 0), s++;
3039
+ } catch {
3040
+ }
3041
+ else
3042
+ h.textContent = g + `
3043
+ ` + h.textContent;
3044
+ }
3045
+ } else {
3046
+ const p = [
3047
+ `:root{${d.generateVariables()}}`,
3048
+ ":root{--borderColor: black;--outlineColor: black;--lineHeight: 1.2;--fontSize: 14px;--transitionTime: 0.25s;--svgTransitionTime: 0.3s;}",
3049
+ "#crono-box {position: absolute;top: 0;left: 0;height: 0;z-index:99999;}",
3050
+ "html{font-size: 16px;font-family: Arial, sans-serif;}",
3051
+ "body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}",
3052
+ "a,ul{all: unset;}",
3053
+ "button{color: inherit;}",
3054
+ 'input[type="number"]{-moz-appearance: textfield;}',
3055
+ 'input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button{-webkit-appearance: none;margin: 0;}',
3056
+ `.${be}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;background-color: initial;transition: all var(--transitionTime);box-sizing: border-box;font-family: inherit;font-size: inherit;}`,
3057
+ `.${E}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}`,
3058
+ `.${E} path,.${E} circle,.${E} rect,.${E} line {transition: all var(--svgTransitionTime);}`
3059
+ ];
3060
+ if (w && !H)
3061
+ for (const g of p)
3062
+ try {
3063
+ w.insertRule(g, s), s++;
3064
+ } catch {
3065
+ }
3066
+ else
3067
+ h.textContent = p.join(`
3068
+ `);
3069
+ l = !0;
3070
+ }
3071
+ if (o.length > 0) {
3072
+ if (o.sort((p, g) => p[1] - g[1] || p[0] - g[0]), w && !H)
3073
+ for (const [p, g, v] of o) {
3074
+ const c = g * 1e5 + p;
3075
+ let F = n.length;
3076
+ for (let N = 0; N < n.length; N++)
3077
+ if (c < n[N]) {
3078
+ F = N;
3079
+ break;
3080
+ }
3081
+ try {
3082
+ w.insertRule(v, s + F), n.splice(F, 0, c);
3083
+ } catch {
3084
+ w.insertRule(v, w.cssRules.length), n.push(c);
3085
+ }
3086
+ }
3087
+ else
3088
+ h.textContent += o.map((p) => p[2]).join("");
3089
+ o.length = 0;
3090
+ }
3091
+ r = !1;
3092
+ }
3093
+ e.flush = f;
3094
+ function y(b, h, w, p, g) {
3095
+ const c = L[b].find((V) => Array.isArray(V.values) ? V.values.includes(h) : typeof h == typeof V.values);
3096
+ if (!c) return null;
3097
+ const F = u[b] ?? 0, N = D[p] ?? 0, $ = C(
3098
+ b,
3099
+ h,
3100
+ w,
3101
+ p,
3102
+ g
2279
3103
  );
2280
- v.unshift(`:root{${y.generateVariables()}}`);
2281
- const c = b();
2282
- c.innerHTML = v.join(""), t = !1;
3104
+ if (g) {
3105
+ const V = q[w], O = V.includes("theme"), j = (O ? V.filter((I) => I !== "theme") : V).map((I) => W[I]).join(""), G = g.includes("|");
3106
+ let A;
3107
+ if (G) {
3108
+ const [I, Ce] = g.split("|");
3109
+ A = `.${I} .${Ce}${j} .${$}`;
3110
+ } else O ? A = `.${g} .${$}${j}` : A = `.${g}${j} .${$}`;
3111
+ const he = c.selector?.(A, "") ?? A, ve = Array.isArray(c.styleName) ? c.styleName : [c.styleName ?? b], pe = c.valueFormat?.(h, d.getVariableValue) ?? h, ne = `${he}{${ve.map((I) => `${I}:${pe}`).join(";")}}`;
3112
+ return p !== "normal" ? { rule: `@media(min-width: ${D[p]}px){${ne}}`, sortIndex: F, breakpointOrder: N } : { rule: ne, sortIndex: F, breakpointOrder: N };
3113
+ } else {
3114
+ const V = q[w].map((A) => W[A]).join(""), O = c.selector?.(`.${$}`, V) ?? `.${$}${V}`, M = Array.isArray(c.styleName) ? c.styleName : [c.styleName ?? b], j = c.valueFormat?.(h, d.getVariableValue) ?? h, G = `${O}{${M.map((A) => `${A}:${j}`).join(";")}}`;
3115
+ return p !== "normal" ? { rule: `@media(min-width: ${D[p]}px){${G}}`, sortIndex: F, breakpointOrder: N } : { rule: G, sortIndex: F, breakpointOrder: N };
3116
+ }
2283
3117
  }
2284
- e.flush = i;
2285
- function n() {
2286
- r = {};
3118
+ function k() {
3119
+ i = {}, a.clear(), o.length = 0, n.length = 0, s = 0, l = !1;
2287
3120
  }
2288
- e.clear = n;
2289
- function u(l, g, p, v, c = "normal", f) {
2290
- if (g == null) return;
2291
- const m = v.reduce((w, H) => w + fe[H], 0);
2292
- r[c] ? r[c][m] ? r[c][m][l] || (r[c][m][l] = /* @__PURE__ */ new Set()) : r[c][m] = { [l]: /* @__PURE__ */ new Set() } : r[c] = { [m]: { [l]: /* @__PURE__ */ new Set() } }, f ? (r[c][m].__parents ? r[c][m].__parents[f] ? r[c][m].__parents[f][l] || (r[c][m].__parents[f][l] = /* @__PURE__ */ new Set()) : r[c][m].__parents[f] = { [l]: /* @__PURE__ */ new Set() } : r[c][m].__parents = { [f]: { [l]: /* @__PURE__ */ new Set() } }, r[c][m].__parents[f][l].has(g) || (r[c][m].__parents[f][l].add(g), t = !0)) : r[c][m][l].has(g) || (r[c][m][l].add(g), t = !0);
2293
- const x = s(l, g, m, c, f);
2294
- p.push(x);
3121
+ e.clear = k;
3122
+ function x(b, h, w, p, g = "normal", v) {
3123
+ if (h == null) return;
3124
+ const c = p.reduce(($, V) => $ + ye[V], 0), F = C(b, h, c, g, v), N = `${g}-${c}-${b}-${h}-${v ?? ""}`;
3125
+ if (!a.has(N)) {
3126
+ a.add(N);
3127
+ const $ = y(b, h, c, g, v);
3128
+ $ && (o.push([$.sortIndex, $.breakpointOrder, $.rule]), r = !0), i[g] ? i[g][c] ? i[g][c][b] || (i[g][c][b] = /* @__PURE__ */ new Set()) : i[g][c] = { [b]: /* @__PURE__ */ new Set() } : i[g] = { [c]: { [b]: /* @__PURE__ */ new Set() } }, v ? (i[g][c].__parents ? i[g][c].__parents[v] ? i[g][c].__parents[v][b] || (i[g][c].__parents[v][b] = /* @__PURE__ */ new Set()) : i[g][c].__parents[v] = { [b]: /* @__PURE__ */ new Set() } : i[g][c].__parents = { [v]: { [b]: /* @__PURE__ */ new Set() } }, i[g][c].__parents[v][b].add(h)) : i[g][c][b].add(h);
3129
+ }
3130
+ w.push(F);
2295
3131
  }
2296
- function s(l, g, p, v, c) {
2297
- const f = I[p], m = `${v === "normal" ? "" : `${v}-`}${f.map((x) => `${x}-`).join("")}${c ? `${c}-` : ""}${l}-${g}`;
2298
- return me ? m : Se.getIdentity(m);
3132
+ function C(b, h, w, p, g) {
3133
+ const v = q[w], c = `${p === "normal" ? "" : `${p}-`}${v.map((F) => `${F}-`).join("")}${g ? `${g}-` : ""}${b}-${h}`;
3134
+ return H ? c : Ae.getIdentity(c);
2299
3135
  }
2300
- const d = "crono-styles";
2301
- function b() {
2302
- let l = document.getElementById(d);
2303
- return l || (l = document.createElement("style"), l.setAttribute("id", d), l.setAttribute("type", "text/css"), document.head.insertBefore(l, document.head.firstChild)), l;
3136
+ const R = "crono-styles";
3137
+ function K() {
3138
+ let b = document.getElementById(R);
3139
+ return b || (b = document.createElement("style"), b.setAttribute("id", R), b.setAttribute("type", "text/css"), document.head.insertBefore(b, document.head.firstChild)), b;
2304
3140
  }
2305
- })(O || (O = {}));
2306
- var le;
3141
+ })(B || (B = {}));
3142
+ var ue;
2307
3143
  ((e) => {
2308
- e.flush = O.flush, e.clear = O.clear;
2309
- })(le || (le = {}));
3144
+ e.flush = B.flush, e.clear = B.clear;
3145
+ })(ue || (ue = {}));
2310
3146
  Array.prototype.removeBy || (Array.prototype.removeBy = function(e) {
2311
- return this.filter((t) => !e(t));
3147
+ return this.filter((r) => !e(r));
2312
3148
  });
2313
- Array.prototype.take || (Array.prototype.take = function(e, t = 0) {
2314
- return this.slice(t, t + e);
3149
+ Array.prototype.take || (Array.prototype.take = function(e, r = 0) {
3150
+ return this.slice(r, r + e);
2315
3151
  });
2316
3152
  Array.prototype.add || (Array.prototype.add = function(...e) {
2317
- const t = [...this];
2318
- return t.push(...e), t;
3153
+ const r = [...this];
3154
+ return r.push(...e), r;
2319
3155
  });
2320
- Array.prototype.sumBy || (Array.prototype.sumBy = function(e, t = 0) {
2321
- return this.reduce((r, o, i) => r + e(o, i), t);
3156
+ Array.prototype.sumBy || (Array.prototype.sumBy = function(e, r = 0) {
3157
+ return this.reduce((l, a, o) => l + e(a, o), r);
2322
3158
  });
2323
- Array.prototype.sortBy || (Array.prototype.sortBy = function(e, t) {
2324
- return [...this].sort((o, i) => {
2325
- const n = e(o), u = e(i);
2326
- return n < u ? t === "DESC" ? 1 : -1 : n > u ? t === "DESC" ? -1 : 1 : 0;
3159
+ Array.prototype.sortBy || (Array.prototype.sortBy = function(e, r) {
3160
+ return [...this].sort((a, o) => {
3161
+ const n = e(a), s = e(o);
3162
+ return n < s ? r === "DESC" ? 1 : -1 : n > s ? r === "DESC" ? -1 : 1 : 0;
2327
3163
  });
2328
3164
  });
2329
3165
  Array.prototype.maxBy || (Array.prototype.maxBy = function(e) {
2330
3166
  return Math.max(...this.map(e));
2331
3167
  });
2332
3168
  Array.prototype.findOrThrow || (Array.prototype.findOrThrow = function(e) {
2333
- const t = this.find(e);
2334
- if (typeof t > "u") throw new Error("No items satisfy the provided condition.");
2335
- return t;
3169
+ const r = this.find(e);
3170
+ if (typeof r > "u") throw new Error("No items satisfy the provided condition.");
3171
+ return r;
2336
3172
  });
2337
3173
  Array.prototype.toRecord || (Array.prototype.toRecord = function(e) {
2338
3174
  return this.reduce(
2339
- (t, r) => {
2340
- const o = e(r);
2341
- if (!o) return t;
2342
- const [i, n] = o;
2343
- return t[i] = n, t;
3175
+ (r, l) => {
3176
+ const a = e(l);
3177
+ if (!a) return r;
3178
+ const [o, n] = a;
3179
+ return r[o] = n, r;
2344
3180
  },
2345
3181
  {}
2346
3182
  );
2347
3183
  });
2348
- Array.prototype.groupBy || (Array.prototype.groupBy = function(e, t = !1) {
2349
- const r = this.reduce((o, i, n) => {
2350
- const u = e(i, n);
2351
- return t && typeof u != "number" && !u || (o.has(u) === !1 && o.set(u, []), o.get(u)?.push(i)), o;
3184
+ Array.prototype.groupBy || (Array.prototype.groupBy = function(e, r = !1) {
3185
+ const l = this.reduce((a, o, n) => {
3186
+ const s = e(o, n);
3187
+ return r && typeof s != "number" && !s || (a.has(s) === !1 && a.set(s, []), a.get(s)?.push(o)), a;
2352
3188
  }, /* @__PURE__ */ new Map());
2353
- return Array.from(r, ([o, i]) => ({ key: o, values: i }));
3189
+ return Array.from(l, ([a, o]) => ({ key: a, values: o }));
2354
3190
  });
2355
- function ke(e) {
2356
- const { node: t = null, event: r = "click", hideOnScroll: o = !1, hideOnResize: i = !1, hideOnEscape: n = !0 } = e ?? {}, [u, s] = ie(!1), d = Fe(null);
2357
- return ue(() => {
2358
- function b(c) {
2359
- (t ?? d.current)?.contains(c.target) === !1 && s(!1);
3191
+ function Me(e) {
3192
+ const { node: r = null, event: l = "click", hideOnScroll: a = !1, hideOnResize: o = !1, hideOnEscape: n = !0 } = e ?? {}, [s, u] = de(!1), i = Fe(null);
3193
+ return ge(() => {
3194
+ function m(C) {
3195
+ (r ?? i.current)?.contains(C.target) === !1 && u(!1);
2360
3196
  }
2361
- function l() {
2362
- s(!1);
3197
+ function f() {
3198
+ u(!1);
2363
3199
  }
2364
- function g(c) {
2365
- (t ?? d.current)?.contains(c.target) === !1 && s(!1);
3200
+ function y(C) {
3201
+ (r ?? i.current)?.contains(C.target) === !1 && u(!1);
2366
3202
  }
2367
- function p(c) {
2368
- c.key === "Escape" && s(!1);
3203
+ function k(C) {
3204
+ C.key === "Escape" && u(!1);
2369
3205
  }
2370
- const v = new AbortController();
2371
- return u && (window.addEventListener(r, b, v), n && window.addEventListener("keydown", p, v), i && window.addEventListener("resize", l, v), o && window.addEventListener("scroll", g, { signal: v.signal, capture: !0 })), () => {
2372
- v.abort();
3206
+ const x = new AbortController();
3207
+ return s && (window.addEventListener(l, m, x), n && window.addEventListener("keydown", k, x), o && window.addEventListener("resize", f, x), a && window.addEventListener("scroll", y, { signal: x.signal, capture: !0 })), () => {
3208
+ x.abort();
2373
3209
  };
2374
- }, [t, u]), [u, s, d];
3210
+ }, [r, s]), [s, u, i];
2375
3211
  }
2376
- const Ee = {
3212
+ const Ie = {
2377
3213
  selected: "aria-selected"
2378
3214
  };
2379
- var se;
2380
- ((e) => {
2381
- function t(r, o, i) {
2382
- r !== void 0 && r != null && (i[Ee[o] ?? o] = Array.isArray(r) ? r[0] : r);
2383
- }
2384
- e.assignBooleanProp = t;
2385
- })(se || (se = {}));
2386
- var Y;
3215
+ var ce;
2387
3216
  ((e) => {
2388
- function t(r, o = 300) {
2389
- let i = !1, n;
2390
- return (...u) => {
2391
- if (i) {
2392
- n = u;
2393
- return;
2394
- }
2395
- r(...u), i = !0, setTimeout(() => {
2396
- i = !1, n && r(...n);
2397
- }, o);
2398
- };
3217
+ function r(l, a, o) {
3218
+ l !== void 0 && l != null && (o[Ie[a] ?? a] = Array.isArray(l) ? l[0] : l);
2399
3219
  }
2400
- e.throttle = t;
2401
- })(Y || (Y = {}));
2402
- const Me = Y;
2403
- function He(e) {
2404
- let t;
3220
+ e.assignBooleanProp = r;
3221
+ })(ce || (ce = {}));
3222
+ function Ge(e) {
3223
+ let r;
2405
3224
  return Object.defineProperty({
2406
3225
  clear() {
2407
- t = void 0;
3226
+ r = void 0;
2408
3227
  }
2409
3228
  }, "value", {
2410
- get: () => (t === void 0 && (t = e()), t)
3229
+ get: () => (r === void 0 && (r = e()), r)
2411
3230
  });
2412
3231
  }
3232
+ function Ee(e, r) {
3233
+ if (!e) return { score: 1, matches: [] };
3234
+ if (!r) return null;
3235
+ const l = e.toLowerCase(), a = r.toLowerCase();
3236
+ let o = 0, n = 0;
3237
+ const s = [];
3238
+ let u = -1, i = 0, m = 0;
3239
+ for (; o < l.length && n < a.length; )
3240
+ l[o] === a[n] ? (u === -1 && (u = n), o++, m++, i += m, (n === 0 || /\s|_|-/.test(r[n - 1])) && (i += 5), e[o - 1] === r[n] && (i += 1)) : (u !== -1 && (s.push([u, n]), u = -1), m = 0), n++;
3241
+ return u !== -1 && s.push([u, n]), o < l.length ? null : (i = i / r.length, { score: i, matches: s });
3242
+ }
3243
+ function Pe(e, r) {
3244
+ return Ee(e, r) !== null;
3245
+ }
3246
+ var re;
3247
+ ((e) => {
3248
+ function r(l, a = 300) {
3249
+ let o = !1, n;
3250
+ return (...s) => {
3251
+ if (o) {
3252
+ n = s;
3253
+ return;
3254
+ }
3255
+ l(...s), o = !0, setTimeout(() => {
3256
+ o = !1, n && l(...n);
3257
+ }, a);
3258
+ };
3259
+ }
3260
+ e.throttle = r;
3261
+ })(re || (re = {}));
3262
+ const De = re;
2413
3263
  function Ue(e) {
2414
- return /* @__PURE__ */ h(B, { viewBox: "4 2 16 18", width: "1rem", fill: "currentColor", ...e, children: /* @__PURE__ */ h(
3264
+ return /* @__PURE__ */ z(T, { viewBox: "4 2 16 18", width: "1rem", fill: "currentColor", ...e, children: /* @__PURE__ */ z(
2415
3265
  "path",
2416
3266
  {
2417
3267
  fillRule: "evenodd",
@@ -2420,11 +3270,27 @@ function Ue(e) {
2420
3270
  }
2421
3271
  ) });
2422
3272
  }
2423
- function De(e) {
2424
- return /* @__PURE__ */ h(B, { ...e, children: /* @__PURE__ */ h("path", { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" }) });
3273
+ const _ = /* @__PURE__ */ new Map();
3274
+ function We() {
3275
+ const [e] = ze.useTheme(), r = le(() => {
3276
+ const l = "crono-box";
3277
+ let a = document.getElementById(l);
3278
+ return a || (a = document.createElement("div"), a.id = l, document.body.appendChild(a)), a;
3279
+ }, []);
3280
+ return ae(() => {
3281
+ if (!e) return;
3282
+ const l = _.get(e) ?? 0;
3283
+ return _.set(e, l + 1), l === 0 && r.classList.add(e), () => {
3284
+ const o = (_.get(e) ?? 1) - 1;
3285
+ o <= 0 ? (_.delete(e), r.classList.remove(e)) : _.set(e, o);
3286
+ };
3287
+ }, [r, e]), r;
2425
3288
  }
2426
- function Ge(e) {
2427
- return /* @__PURE__ */ h(B, { viewBox: "0 0 16 16", width: "18", ...e, children: /* @__PURE__ */ h(
3289
+ function Ke(e) {
3290
+ return /* @__PURE__ */ z(T, { ...e, children: /* @__PURE__ */ z("path", { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" }) });
3291
+ }
3292
+ function qe(e) {
3293
+ return /* @__PURE__ */ z(T, { viewBox: "0 0 16 16", width: "18", ...e, children: /* @__PURE__ */ z(
2428
3294
  "path",
2429
3295
  {
2430
3296
  strokeWidth: 4,
@@ -2432,97 +3298,85 @@ function Ge(e) {
2432
3298
  }
2433
3299
  ) });
2434
3300
  }
2435
- function We(e) {
2436
- return /* @__PURE__ */ he(B, { viewBox: "0 0 490.6 490.6", ...e, children: [
2437
- /* @__PURE__ */ h("path", { d: "M151.549 145.274c0 23.39 9.145 50.385 24.462 72.214 17.389 24.78 39.376 38.427 61.911 38.427 22.534 0 44.521-13.647 61.91-38.428 15.317-21.828 24.462-48.824 24.462-72.213 0-47.626-38.746-86.372-86.372-86.372s-86.373 38.746-86.373 86.372zm86.373-71.372c39.354 0 71.372 32.018 71.372 71.372 0 20.118-8.33 44.487-21.74 63.598-14.29 20.364-32.38 32.043-49.632 32.043-17.252 0-35.342-11.679-49.632-32.043-13.41-19.11-21.741-43.479-21.741-63.598 0-39.355 32.018-71.372 71.373-71.372z" }),
2438
- /* @__PURE__ */ h("path", { d: "M302.372 239.167a7.502 7.502 0 0 0-8.52 1.461c-16.775 16.728-36.117 25.569-55.935 25.569-19.821 0-39.158-8.841-55.923-25.567a7.5 7.5 0 0 0-8.521-1.463c-25.254 12.022-46.628 30.829-61.811 54.388-15.596 24.2-23.84 52.277-23.84 81.195v.121c0 2.116.894 4.134 2.461 5.556 40.492 36.722 92.922 56.945 147.633 56.945s107.141-20.224 147.632-56.945a7.499 7.499 0 0 0 2.462-5.556v-.121c0-28.918-8.242-56.995-23.834-81.194-15.179-23.561-36.551-42.368-61.804-54.389zm-64.454 183.205c-49.861 0-97.685-18.023-135.057-50.827.583-24.896 7.956-48.986 21.411-69.865 12.741-19.77 30.322-35.823 51.058-46.676 18.746 17.157 40.285 26.193 62.588 26.193 22.3 0 43.842-9.035 62.598-26.193 20.734 10.853 38.313 26.906 51.053 46.676 13.452 20.877 20.823 44.968 21.406 69.865-37.373 32.804-85.197 50.827-135.057 50.827z" }),
2439
- /* @__PURE__ */ h("path", { d: "M455.077 243.89c-13.23-20.532-31.856-36.923-53.864-47.399a7.501 7.501 0 0 0-8.52 1.461c-14.312 14.271-30.79 21.815-47.654 21.815-9.142 0-18.184-2.205-26.873-6.553a7.5 7.5 0 0 0-6.712 13.414c10.793 5.401 22.093 8.139 33.586 8.139 19.335 0 38.004-7.737 54.288-22.437a116.088 116.088 0 0 1 43.141 39.685c11.445 17.763 17.756 38.243 18.338 59.416-18.524 16.158-40.553 28.449-63.91 35.634a7.5 7.5 0 0 0 4.41 14.338c26.509-8.154 51.435-22.362 72.082-41.088a7.499 7.499 0 0 0 2.462-5.556v-.105c-.001-25.204-7.185-49.674-20.774-70.764zM130.493 210.473c7.93 0 15.841-1.934 23.516-5.748a7.5 7.5 0 0 0-6.675-13.433c-5.582 2.774-11.248 4.18-16.841 4.18-14.541 0-29.836-9.914-41.964-27.2-11.449-16.318-18.562-37.112-18.562-54.266 0-33.375 27.152-60.527 60.526-60.527 15.752 0 30.67 6.022 42.006 16.958a7.499 7.499 0 0 0 10.604-.19 7.499 7.499 0 0 0-.19-10.604c-14.146-13.647-32.763-21.163-52.42-21.163-41.646 0-75.526 33.881-75.526 75.527 0 20.38 7.957 43.887 21.283 62.881 15.195 21.657 34.459 33.585 54.243 33.585z" }),
2440
- /* @__PURE__ */ h("path", { d: "M61.034 340.143a175.333 175.333 0 0 1-45.989-29.004c.582-21.112 6.875-41.53 18.291-59.243a115.795 115.795 0 0 1 43.01-39.566c16.239 14.662 34.856 22.376 54.139 22.376 11.587 0 22.969-2.785 33.829-8.277a7.501 7.501 0 0 0-6.77-13.386c-8.742 4.421-17.846 6.663-27.059 6.663-16.811 0-33.238-7.522-47.504-21.754a7.501 7.501 0 0 0-8.521-1.462c-21.954 10.451-40.534 26.8-53.733 47.28C7.167 264.811 0 289.221 0 314.362v.103c0 2.116.894 4.134 2.461 5.556 15.629 14.174 33.338 25.579 52.634 33.897a7.481 7.481 0 0 0 2.966.615 7.503 7.503 0 0 0 2.973-14.39zM69.854 351.003c-2.671 6.443 4.532 12.832 10.617 9.387 3.238-1.834 4.683-5.937 3.227-9.385-2.407-6.145-11.378-5.952-13.844-.002z" }),
2441
- /* @__PURE__ */ h("path", { d: "M83.698 351.005c.19.45-.18-.46 0 0zM303.345 70.438c11.336-10.936 26.254-16.958 42.006-16.958 33.374 0 60.526 27.152 60.526 60.527 0 17.154-7.112 37.947-18.563 54.266-12.128 17.286-27.424 27.2-41.964 27.2-5.593 0-11.259-1.406-16.841-4.18a7.5 7.5 0 0 0-6.676 13.433c7.675 3.814 15.587 5.748 23.517 5.748 19.783 0 39.048-11.927 54.243-33.585 13.327-18.994 21.283-42.501 21.283-62.881 0-41.646-33.881-75.527-75.526-75.527-19.657 0-38.273 7.516-52.42 21.163a7.5 7.5 0 0 0 10.415 10.794z" })
2442
- ] });
3301
+ function Ye(e) {
3302
+ return /* @__PURE__ */ z(T, { viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ z("path", { d: "M3 5h8v2H3V5zm0 6h8v2H3v-2zm0 6h8v2H3v-2zm12-12h6v6h-6V5zm1 1v4h4V6h-4zm-1 7h6v6h-6v-6zm1 1v4h4v-4h-4z" }) });
2443
3303
  }
2444
- function Ke(e) {
2445
- return /* @__PURE__ */ h(B, { viewBox: "0 0 1024 1024", ...e, children: /* @__PURE__ */ h("path", { d: "M31.997 1023.957a31.699 31.699 0 0 1-22.611-9.386C3.328 1008.556 0 1000.493 0 991.96s3.328-16.596 9.386-22.611L328.25 650.484l-152.52-152.52a95.907 95.907 0 0 1-25.087-92.152 95.31 95.31 0 0 1 44.327-58.62l.896-.512a353.464 353.464 0 0 1 176.156-47.398c20.137 0 40.36 1.749 60.283 5.205L597.71 44.54A95.224 95.224 0 0 1 678.685.085c25.64 0 49.745 9.983 67.877 28.073l249.195 249.195a95.224 95.224 0 0 1 25.897 88.74 95.139 95.139 0 0 1-42.152 60.154L719.513 591.695a352.227 352.227 0 0 1-42.663 237.292A95.395 95.395 0 0 1 594 876.514a95.523 95.523 0 0 1-67.963-28.2L373.43 695.706 54.61 1014.614a31.912 31.912 0 0 1-22.612 9.343zm340.025-660.68c-50.64 0-100.685 13.566-144.798 39.207a31.57 31.57 0 0 0-14.676 19.497 31.699 31.699 0 0 0 8.362 30.675L571.344 803.09c6.059 6.059 14.122 9.386 22.697 9.386a31.699 31.699 0 0 0 27.56-15.785 287.421 287.421 0 0 0 31.06-212.676 31.997 31.997 0 0 1 13.907-34.471l278.59-177.266a31.57 31.57 0 0 0 14.037-20.051 31.699 31.699 0 0 0-8.618-29.566l-249.28-249.28a31.912 31.912 0 0 0-49.618 5.418l-177.308 278.59a31.827 31.827 0 0 1-34.472 13.908 293.778 293.778 0 0 0-67.877-8.02z" }) });
3304
+ function Xe(e) {
3305
+ return /* @__PURE__ */ z(T, { viewBox: "0 0 1024 1024", ...e, children: /* @__PURE__ */ z("path", { d: "M31.997 1023.957a31.699 31.699 0 0 1-22.611-9.386C3.328 1008.556 0 1000.493 0 991.96s3.328-16.596 9.386-22.611L328.25 650.484l-152.52-152.52a95.907 95.907 0 0 1-25.087-92.152 95.31 95.31 0 0 1 44.327-58.62l.896-.512a353.464 353.464 0 0 1 176.156-47.398c20.137 0 40.36 1.749 60.283 5.205L597.71 44.54A95.224 95.224 0 0 1 678.685.085c25.64 0 49.745 9.983 67.877 28.073l249.195 249.195a95.224 95.224 0 0 1 25.897 88.74 95.139 95.139 0 0 1-42.152 60.154L719.513 591.695a352.227 352.227 0 0 1-42.663 237.292A95.395 95.395 0 0 1 594 876.514a95.523 95.523 0 0 1-67.963-28.2L373.43 695.706 54.61 1014.614a31.912 31.912 0 0 1-22.612 9.343zm340.025-660.68c-50.64 0-100.685 13.566-144.798 39.207a31.57 31.57 0 0 0-14.676 19.497 31.699 31.699 0 0 0 8.362 30.675L571.344 803.09c6.059 6.059 14.122 9.386 22.697 9.386a31.699 31.699 0 0 0 27.56-15.785 287.421 287.421 0 0 0 31.06-212.676 31.997 31.997 0 0 1 13.907-34.471l278.59-177.266a31.57 31.57 0 0 0 14.037-20.051 31.699 31.699 0 0 0-8.618-29.566l-249.28-249.28a31.912 31.912 0 0 0-49.618 5.418l-177.308 278.59a31.827 31.827 0 0 1-34.472 13.908 293.778 293.778 0 0 0-67.877-8.02z" }) });
2446
3306
  }
2447
- var P;
3307
+ var oe;
2448
3308
  ((e) => {
2449
- function t(r) {
2450
- return r.charAt(0).toUpperCase() + r.slice(1);
3309
+ function r(l) {
3310
+ return l.charAt(0).toUpperCase() + l.slice(1);
2451
3311
  }
2452
- e.capitalize = t;
2453
- })(P || (P = {}));
2454
- const qe = P;
2455
- function Xe() {
2456
- return Q(() => {
2457
- const e = "crono-box";
2458
- let t = document.getElementById(e);
2459
- return t || (t = document.createElement("div"), t.id = e, document.body.appendChild(t)), t;
2460
- }, []);
3312
+ e.capitalize = r;
3313
+ })(oe || (oe = {}));
3314
+ const Ze = oe;
3315
+ function Je(e) {
3316
+ return /* @__PURE__ */ z(T, { viewBox: "0 0 488.4 488.4", ...e, children: /* @__PURE__ */ z("path", { d: "M0 203.25c0 112.1 91.2 203.2 203.2 203.2 51.6 0 98.8-19.4 134.7-51.2l129.5 129.5c2.4 2.4 5.5 3.6 8.7 3.6s6.3-1.2 8.7-3.6c4.8-4.8 4.8-12.5 0-17.3l-129.6-129.5c31.8-35.9 51.2-83 51.2-134.7C406.4 91.15 315.2.05 203.2.05S0 91.15 0 203.25zm381.9 0c0 98.5-80.2 178.7-178.7 178.7s-178.7-80.2-178.7-178.7 80.2-178.7 178.7-178.7 178.7 80.1 178.7 178.7z" }) });
2461
3317
  }
2462
- function Ze(e) {
2463
- return /* @__PURE__ */ h(B, { viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ h("path", { d: "M4.238 2.988a1.25 1.25 0 0 0-.87 2.147L10.231 12l-6.87 6.87a1.251 1.251 0 1 0 1.769 1.769L12 13.768l6.865 6.865a1.25 1.25 0 1 0 1.768-1.768L13.768 12l6.857-6.857a1.25 1.25 0 1 0-1.768-1.768L12 10.232 5.135 3.367a1.25 1.25 0 0 0-.897-.379z" }) });
2464
- }
2465
- var J;
3318
+ var te;
2466
3319
  ((e) => {
2467
- function t(o) {
2468
- const i = Array.from(o.elements).reduce(
2469
- (n, u) => {
2470
- const s = u.name;
2471
- return s && (n[s] || (n[s] = []), n[s].push(u)), n;
3320
+ function r(a) {
3321
+ const o = Array.from(a.elements).reduce(
3322
+ (n, s) => {
3323
+ const u = s.name;
3324
+ return u && (n[u] || (n[u] = []), n[u].push(s)), n;
2472
3325
  },
2473
3326
  {}
2474
3327
  );
2475
- return Object.entries(i).reduce((n, [u, s]) => {
2476
- if (s.length === 1) {
2477
- const d = s[0];
2478
- r(n, u, d.type === "checkbox" || d.type === "radio" ? d.checked : d.value);
3328
+ return Object.entries(o).reduce((n, [s, u]) => {
3329
+ if (u.length === 1) {
3330
+ const i = u[0];
3331
+ l(n, s, i.type === "checkbox" || i.type === "radio" ? i.checked : i.value);
2479
3332
  } else {
2480
- const d = s.reduce((b, l) => (l.type === "checkbox" || l.type === "radio" ? l.checked && b.push(l.value) : b.push(l.value), b), []);
2481
- r(n, u, d);
3333
+ const i = u.reduce((m, f) => (f.type === "checkbox" || f.type === "radio" ? f.checked && m.push(f.value) : m.push(f.value), m), []);
3334
+ l(n, s, i);
2482
3335
  }
2483
3336
  return n;
2484
3337
  }, {});
2485
3338
  }
2486
- e.getFormEntries = t;
2487
- function r(o, i, n) {
2488
- if (i.includes(".")) {
2489
- const u = i.split(".");
2490
- let s = o;
2491
- u.forEach((d, b) => {
2492
- if (u.length > b + 1) {
2493
- const l = d.match(/^(.+)\[(\d)\]$/);
2494
- if (l) {
2495
- const [, g, p] = l;
2496
- s[g] = s[g] || [], s[g][p] = s[g][p] || {}, s = s[g][p];
3339
+ e.getFormEntries = r;
3340
+ function l(a, o, n) {
3341
+ if (o.includes(".")) {
3342
+ const s = o.split(".");
3343
+ let u = a;
3344
+ s.forEach((i, m) => {
3345
+ if (s.length > m + 1) {
3346
+ const f = i.match(/^(.+)\[(\d)\]$/);
3347
+ if (f) {
3348
+ const [, y, k] = f;
3349
+ u[y] = u[y] || [], u[y][k] = u[y][k] || {}, u = u[y][k];
2497
3350
  } else
2498
- s[d] = s[d] || {}, s = s[d];
3351
+ u[i] = u[i] || {}, u = u[i];
2499
3352
  } else
2500
- s[d] = n;
3353
+ u[i] = n;
2501
3354
  });
2502
3355
  } else
2503
- o[i] = n;
3356
+ a[o] = n;
2504
3357
  }
2505
- })(J || (J = {}));
2506
- const Ye = J;
3358
+ })(te || (te = {}));
3359
+ const Qe = te;
2507
3360
  export {
2508
- se as B,
2509
- Ze as C,
2510
- Ge as D,
3361
+ ce as B,
3362
+ qe as D,
2511
3363
  Ue as E,
2512
- Me as F,
2513
- We as G,
2514
- N as O,
2515
- Ke as P,
2516
- De as S,
2517
- Ie as T,
2518
- y as V,
2519
- Ve as a,
2520
- ke as b,
2521
- ce as c,
2522
- Ye as d,
2523
- qe as e,
2524
- Xe as f,
2525
- le as g,
2526
- He as m,
2527
- _e as u
3364
+ De as F,
3365
+ Ye as G,
3366
+ S as O,
3367
+ Xe as P,
3368
+ Ke as S,
3369
+ ze as T,
3370
+ d as V,
3371
+ $e as a,
3372
+ Me as b,
3373
+ fe as c,
3374
+ Je as d,
3375
+ Qe as e,
3376
+ Pe as f,
3377
+ Ze as g,
3378
+ We as h,
3379
+ ue as i,
3380
+ Ge as m,
3381
+ He as u
2528
3382
  };