@cronocode/react-box 3.0.13 → 3.0.14

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.
Files changed (46) hide show
  1. package/array.d.ts +13 -0
  2. package/components/checkbox.mjs +4 -4
  3. package/components/dataGrid/contracts/dataGridContract.d.ts +36 -0
  4. package/components/dataGrid/dataGridCell.d.ts +8 -0
  5. package/components/dataGrid/dataGridGroupRow.d.ts +6 -0
  6. package/components/dataGrid/dataGridHeaderCell.d.ts +6 -0
  7. package/components/dataGrid/dataGridPagination.d.ts +6 -0
  8. package/components/dataGrid/dataGridRow.d.ts +6 -0
  9. package/components/dataGrid/models/cellModel.d.ts +10 -0
  10. package/components/dataGrid/models/columnModel.d.ts +36 -0
  11. package/components/dataGrid/models/gridModel.d.ts +44 -0
  12. package/components/dataGrid/models/groupRowCellModel.d.ts +10 -0
  13. package/components/dataGrid/models/groupRowModel.d.ts +23 -0
  14. package/components/dataGrid/models/rowModel.d.ts +16 -0
  15. package/components/dataGrid/useGrid.d.ts +3 -0
  16. package/components/dataGrid.cjs +1 -1
  17. package/components/dataGrid.d.ts +2 -7
  18. package/components/dataGrid.mjs +656 -18
  19. package/components/dropdown.cjs +1 -1
  20. package/components/dropdown.d.ts +2 -2
  21. package/components/dropdown.mjs +62 -61
  22. package/components/form.mjs +5 -5
  23. package/components/semantics.d.ts +25 -25
  24. package/components/tooltip.cjs +1 -1
  25. package/components/tooltip.mjs +20 -22
  26. package/core/boxConstants.d.ts +1 -0
  27. package/core/boxStyles.d.ts +108 -35
  28. package/core/boxStylesFormatters.d.ts +1 -1
  29. package/core/classNames.d.ts +1 -1
  30. package/core/extends/boxComponents.d.ts +86 -1
  31. package/core/useStyles.d.ts +2 -2
  32. package/core/variables.d.ts +1 -0
  33. package/core.cjs +4 -4
  34. package/core.mjs +623 -507
  35. package/hooks/useVisibility.d.ts +9 -1
  36. package/icons/arrowIcon.d.ts +2 -0
  37. package/icons/dotsIcon.d.ts +2 -0
  38. package/icons/groupingIcon.d.ts +2 -0
  39. package/icons/pinIcon.d.ts +2 -0
  40. package/package.json +1 -1
  41. package/types.d.ts +12 -23
  42. package/utils/fn/fnUtils.d.ts +4 -0
  43. package/utils/memo.d.ts +5 -0
  44. package/utils/object/objectUtils.d.ts +1 -1
  45. package/components/dataGrid/dataGridContract.d.ts +0 -24
  46. package/components/dataGrid/useGridData.d.ts +0 -7
package/core.mjs CHANGED
@@ -1,77 +1,79 @@
1
- import ye, { useMemo as Q, useLayoutEffect as ie, useEffect as ne, useState as ue, useContext as ge, useRef as he } from "react";
2
- import { jsx as G } from "react/jsx-runtime";
3
- import pe from "./box.mjs";
4
- function we(...e) {
5
- return e.reduce((t, r) => r ? typeof r == "string" ? (t.push(r), t) : Array.isArray(r) ? (t.push(...we(...r)), t) : (Object.entries(r).forEach(([l, s]) => {
6
- s && t.push(l);
1
+ import we, { useMemo as ee, useLayoutEffect as ce, useEffect as de, useState as fe, useContext as xe, useRef as Fe } from "react";
2
+ import { jsx as x, jsxs as Ne } from "react/jsx-runtime";
3
+ import Ce from "./box.mjs";
4
+ import M from "./components/baseSvg.mjs";
5
+ function me(...e) {
6
+ return e.reduce((t, r) => r ? typeof r == "string" ? (t.push(r), t) : Array.isArray(r) ? (t.push(...me(...r)), t) : (Object.entries(r).forEach(([o, i]) => {
7
+ i && t.push(o);
7
8
  }), t) : t, []);
8
9
  }
9
- var u;
10
+ const W = 4;
11
+ var a;
10
12
  ((e) => {
11
13
  ((t) => {
12
- function r(s, n) {
13
- return `${s}${n.replace("/", "-")}`;
14
+ function r(i, n) {
15
+ return `${i}${n.replace("/", "-")}`;
14
16
  }
15
17
  t.fraction = r;
16
- function l(s) {
17
- return [`${s} path`, `${s} circle`, `${s} rect`, `${s} line`];
18
+ function o(i) {
19
+ return [`${i} path`, `${i} circle`, `${i} rect`, `${i} line`];
18
20
  }
19
- t.svg = l;
21
+ t.svg = o;
20
22
  })(e.ClassName || (e.ClassName = {})), ((t) => {
21
- function r(b, i, f = 4) {
22
- return `${b / f}rem`;
23
+ function r(v, c, f = W) {
24
+ return `${v / f}rem`;
23
25
  }
24
26
  t.rem = r;
25
- function l(b) {
26
- return `${b}px`;
27
+ function o(v) {
28
+ return `${v}px`;
27
29
  }
28
- t.px = l;
29
- function s(b, i) {
30
- const [f, m] = i.split("/");
31
- return `${+f / +m * 100}%`;
30
+ t.px = o;
31
+ function i(v) {
32
+ const [c, f] = v.split("/");
33
+ return `${+c / +f * 100}%`;
32
34
  }
33
- t.fraction = s;
34
- function n(b, i) {
35
- switch (i) {
35
+ t.fraction = i;
36
+ function n(v, c) {
37
+ switch (c) {
36
38
  case "fit":
37
39
  return "100%";
38
40
  case "fit-screen":
39
- return b.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
41
+ return v.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
40
42
  default:
41
- return i;
43
+ return c;
42
44
  }
43
45
  }
44
46
  t.widthHeight = n;
45
- function d(b) {
46
- return (i, f) => `var(--${b}${f});`;
47
+ function u(v) {
48
+ return (c, f) => `var(--${v}${f});`;
47
49
  }
48
- t.variables = d;
49
- function a(b) {
50
- return (i, f) => `var(--${b}${f});`;
50
+ t.variables = u;
51
+ function l(v) {
52
+ return (c, f) => `var(--${v}${f});`;
51
53
  }
52
- t.svgVariables = a;
53
- function c(b, i) {
54
- return `repeat(${i},minmax(0,1fr))`;
54
+ t.svgVariables = l;
55
+ function d(v, c) {
56
+ return `repeat(${c},minmax(0,1fr))`;
55
57
  }
56
- t.gridColumns = c;
57
- function y(b, i) {
58
- return i === "full-row" ? "1/-1" : `span ${i}/span ${i}`;
58
+ t.gridColumns = d;
59
+ function b(v, c) {
60
+ return c === "full-row" ? "1/-1" : `span ${c}/span ${c}`;
59
61
  }
60
- t.gridColumn = y;
61
- function o(b, i) {
62
- return `${i}ms`;
62
+ t.gridColumn = b;
63
+ function s(v, c) {
64
+ return `${c}ms`;
63
65
  }
64
- t.ms = o;
65
- function v(b, i) {
66
- return `${i}deg`;
66
+ t.ms = s;
67
+ function h(v, c) {
68
+ return `${c}deg`;
67
69
  }
68
- t.rotate = v;
69
- function g(b, i) {
70
- return i === "xAxis" ? "-1 1" : "1 -1";
70
+ t.rotate = h;
71
+ function g(v, c) {
72
+ return c === "xAxis" ? "-1 1" : "1 -1";
71
73
  }
72
74
  t.flip = g;
73
75
  })(e.Value || (e.Value = {}));
74
- })(u || (u = {}));
76
+ })(a || (a = {}));
75
77
  var K;
76
78
  ((e) => {
77
79
  e.colors = {
@@ -326,7 +328,34 @@ var K;
326
328
  "rose-800": "#9f1239",
327
329
  "rose-900": "#881337",
328
330
  "rose-950": "#4c0519"
329
- };
331
+ }, e.percentages = [
332
+ "1/2",
333
+ "1/3",
334
+ "2/3",
335
+ "1/4",
336
+ "2/4",
337
+ "3/4",
338
+ "1/5",
339
+ "2/5",
340
+ "3/5",
341
+ "4/5",
342
+ "1/6",
343
+ "2/6",
344
+ "3/6",
345
+ "4/6",
346
+ "5/6",
347
+ "1/12",
348
+ "2/12",
349
+ "3/12",
350
+ "4/12",
351
+ "5/12",
352
+ "6/12",
353
+ "7/12",
354
+ "8/12",
355
+ "9/12",
356
+ "10/12",
357
+ "11/12"
358
+ ];
330
359
  const t = {
331
360
  inherit: "inherit",
332
361
  none: "none",
@@ -337,21 +366,21 @@ var K;
337
366
  "medium-shadow": "rgba(0, 0, 0, 0.24) 0px 3px 8px",
338
367
  "large-shadow": "rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px"
339
368
  }, r = {};
340
- let l = {};
341
- function s(a) {
342
- return a in l ? r[a] = l[a] : a in t ? r[a] = t[a] : a in e.colors ? r[a] = e.colors[a] : r[a] = a, `var(--${a})`;
369
+ let o = {};
370
+ function i(l) {
371
+ return l in o ? r[l] = o[l] : l in t ? r[l] = t[l] : l in e.colors ? r[l] = e.colors[l] : r[l] = l, `var(--${l})`;
343
372
  }
344
- e.getVariableValue = s;
373
+ e.getVariableValue = i;
345
374
  function n() {
346
- return Object.entries(r).map(([a, c]) => `--${a}: ${c};`).join("");
375
+ return Object.entries(r).map(([l, d]) => `--${l}: ${d};`).join("");
347
376
  }
348
377
  e.generateVariables = n;
349
- function d(a) {
350
- l = a;
378
+ function u(l) {
379
+ o = l;
351
380
  }
352
- e.setUserVariables = d;
381
+ e.setUserVariables = u;
353
382
  })(K || (K = {}));
354
- const N = K, j = {
383
+ const y = K, E = {
355
384
  /** The appearance CSS property is used to display UI elements with platform-specific styling, based on the operating system's theme. */
356
385
  appearance: [
357
386
  {
@@ -363,7 +392,7 @@ const N = K, j = {
363
392
  {
364
393
  values: 0,
365
394
  styleName: "border-width",
366
- valueFormat: u.Value.px
395
+ valueFormat: a.Value.px
367
396
  }
368
397
  ],
369
398
  /** The border-width shorthand CSS property sets the width of an element's left and right border. */
@@ -371,7 +400,7 @@ const N = K, j = {
371
400
  {
372
401
  values: 0,
373
402
  styleName: "border-inline-width",
374
- valueFormat: u.Value.px
403
+ valueFormat: a.Value.px
375
404
  }
376
405
  ],
377
406
  /** The border-width shorthand CSS property sets the width of an element's top and bottom border. */
@@ -379,7 +408,7 @@ const N = K, j = {
379
408
  {
380
409
  values: 0,
381
410
  styleName: "border-block-width",
382
- valueFormat: u.Value.px
411
+ valueFormat: a.Value.px
383
412
  }
384
413
  ],
385
414
  /** The border-top-width CSS property sets the width of the top border of an element. */
@@ -387,7 +416,7 @@ const N = K, j = {
387
416
  {
388
417
  values: 0,
389
418
  styleName: "border-top-width",
390
- valueFormat: u.Value.px
419
+ valueFormat: a.Value.px
391
420
  }
392
421
  ],
393
422
  /** The border-right-width CSS property sets the width of the right border of an element. */
@@ -395,7 +424,7 @@ const N = K, j = {
395
424
  {
396
425
  values: 0,
397
426
  styleName: "border-right-width",
398
- valueFormat: u.Value.px
427
+ valueFormat: a.Value.px
399
428
  }
400
429
  ],
401
430
  /** The border-bottom-width CSS property sets the width of the bottom border of an element. */
@@ -403,7 +432,7 @@ const N = K, j = {
403
432
  {
404
433
  values: 0,
405
434
  styleName: "border-bottom-width",
406
- valueFormat: u.Value.px
435
+ valueFormat: a.Value.px
407
436
  }
408
437
  ],
409
438
  /** The border-left-width CSS property sets the width of the left border of an element. */
@@ -411,7 +440,7 @@ const N = K, j = {
411
440
  {
412
441
  values: 0,
413
442
  styleName: "border-left-width",
414
- valueFormat: u.Value.px
443
+ valueFormat: a.Value.px
415
444
  }
416
445
  ],
417
446
  /** The border-style shorthand CSS property sets the line style for all four sides of an element's border. */
@@ -426,7 +455,7 @@ const N = K, j = {
426
455
  {
427
456
  styleName: "border-radius",
428
457
  values: 0,
429
- valueFormat: u.Value.rem
458
+ valueFormat: a.Value.rem
430
459
  }
431
460
  ],
432
461
  /** 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. */
@@ -434,7 +463,7 @@ const N = K, j = {
434
463
  {
435
464
  values: 0,
436
465
  styleName: ["border-top-left-radius", "border-top-right-radius"],
437
- valueFormat: u.Value.rem
466
+ valueFormat: a.Value.rem
438
467
  }
439
468
  ],
440
469
  /** 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. */
@@ -442,7 +471,7 @@ const N = K, j = {
442
471
  {
443
472
  values: 0,
444
473
  styleName: ["border-top-right-radius", "border-bottom-right-radius"],
445
- valueFormat: u.Value.rem
474
+ valueFormat: a.Value.rem
446
475
  }
447
476
  ],
448
477
  /** 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. */
@@ -450,7 +479,7 @@ const N = K, j = {
450
479
  {
451
480
  values: 0,
452
481
  styleName: ["border-bottom-left-radius", "border-bottom-right-radius"],
453
- valueFormat: u.Value.rem
482
+ valueFormat: a.Value.rem
454
483
  }
455
484
  ],
456
485
  /** 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. */
@@ -458,7 +487,7 @@ const N = K, j = {
458
487
  {
459
488
  values: 0,
460
489
  styleName: ["border-top-left-radius", "border-bottom-left-radius"],
461
- valueFormat: u.Value.rem
490
+ valueFormat: a.Value.rem
462
491
  }
463
492
  ],
464
493
  /** 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. */
@@ -466,7 +495,7 @@ const N = K, j = {
466
495
  {
467
496
  values: 0,
468
497
  styleName: "border-top-left-radius",
469
- valueFormat: u.Value.rem
498
+ valueFormat: a.Value.rem
470
499
  }
471
500
  ],
472
501
  /** 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. */
@@ -474,7 +503,7 @@ const N = K, j = {
474
503
  {
475
504
  values: 0,
476
505
  styleName: "border-top-right-radius",
477
- valueFormat: u.Value.rem
506
+ valueFormat: a.Value.rem
478
507
  }
479
508
  ],
480
509
  /** 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. */
@@ -482,7 +511,7 @@ const N = K, j = {
482
511
  {
483
512
  values: 0,
484
513
  styleName: "border-bottom-right-radius",
485
- valueFormat: u.Value.rem
514
+ valueFormat: a.Value.rem
486
515
  }
487
516
  ],
488
517
  /** 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. */
@@ -490,7 +519,7 @@ const N = K, j = {
490
519
  {
491
520
  values: 0,
492
521
  styleName: "border-bottom-left-radius",
493
- valueFormat: u.Value.rem
522
+ valueFormat: a.Value.rem
494
523
  }
495
524
  ],
496
525
  /** 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. */
@@ -503,35 +532,51 @@ const N = K, j = {
503
532
  top: [
504
533
  {
505
534
  values: 0,
506
- valueFormat: u.Value.rem
535
+ valueFormat: a.Value.rem
536
+ },
537
+ {
538
+ values: y.percentages,
539
+ valueFormat: a.Value.fraction
507
540
  }
508
541
  ],
509
542
  /** The right CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
510
543
  right: [
511
544
  {
512
545
  values: 0,
513
- valueFormat: u.Value.rem
546
+ valueFormat: a.Value.rem
547
+ },
548
+ {
549
+ values: y.percentages,
550
+ valueFormat: a.Value.fraction
514
551
  }
515
552
  ],
516
553
  /** The bottom CSS property participates in setting the vertical position of a positioned element. This inset property has no effect on non-positioned elements. */
517
554
  bottom: [
518
555
  {
519
556
  values: 0,
520
- valueFormat: u.Value.rem
557
+ valueFormat: a.Value.rem
558
+ },
559
+ {
560
+ values: y.percentages,
561
+ valueFormat: a.Value.fraction
521
562
  }
522
563
  ],
523
564
  /** The left CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
524
565
  left: [
525
566
  {
526
567
  values: 0,
527
- valueFormat: u.Value.rem
568
+ valueFormat: a.Value.rem
569
+ },
570
+ {
571
+ values: y.percentages,
572
+ valueFormat: a.Value.fraction
528
573
  }
529
574
  ],
530
575
  /** 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. */
531
576
  inset: [
532
577
  {
533
578
  values: 0,
534
- valueFormat: u.Value.rem
579
+ valueFormat: a.Value.rem
535
580
  }
536
581
  ],
537
582
  /** The `box-sizing` CSS property sets how the total width and height of an element is calculated. */
@@ -704,7 +749,7 @@ const N = K, j = {
704
749
  {
705
750
  styleName: "font-size",
706
751
  values: 0,
707
- valueFormat: (e) => u.Value.rem(e, void 0, 16)
752
+ valueFormat: (e) => a.Value.rem(e, void 0, 16)
708
753
  },
709
754
  {
710
755
  styleName: "font-size",
@@ -729,7 +774,7 @@ const N = K, j = {
729
774
  gap: [
730
775
  {
731
776
  values: 0,
732
- valueFormat: u.Value.rem
777
+ valueFormat: a.Value.rem
733
778
  }
734
779
  ],
735
780
  /** The row-gap CSS property sets the size of the gap (gutter) between an element's rows. */
@@ -737,7 +782,7 @@ const N = K, j = {
737
782
  {
738
783
  styleName: "row-gap",
739
784
  values: 0,
740
- valueFormat: u.Value.rem
785
+ valueFormat: a.Value.rem
741
786
  }
742
787
  ],
743
788
  /** The column-gap CSS property sets the size of the gap (gutter) between an element's columns. */
@@ -745,7 +790,7 @@ const N = K, j = {
745
790
  {
746
791
  styleName: "column-gap",
747
792
  values: 0,
748
- valueFormat: u.Value.rem
793
+ valueFormat: a.Value.rem
749
794
  }
750
795
  ],
751
796
  /** 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. */
@@ -757,7 +802,7 @@ const N = K, j = {
757
802
  ],
758
803
  /** 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. */
759
804
  height: [
760
- { values: 0, valueFormat: (e) => `${e / 4}rem` },
805
+ { values: 0, valueFormat: a.Value.rem },
761
806
  {
762
807
  values: ["fit"],
763
808
  valueFormat: () => "100%"
@@ -767,38 +812,8 @@ const N = K, j = {
767
812
  valueFormat: () => "100vh"
768
813
  },
769
814
  {
770
- values: [
771
- "1/2",
772
- "1/3",
773
- "2/3",
774
- "1/4",
775
- "2/4",
776
- "3/4",
777
- "1/5",
778
- "2/5",
779
- "3/5",
780
- "4/5",
781
- "1/6",
782
- "2/6",
783
- "3/6",
784
- "4/6",
785
- "5/6",
786
- "1/12",
787
- "2/12",
788
- "3/12",
789
- "4/12",
790
- "5/12",
791
- "6/12",
792
- "7/12",
793
- "8/12",
794
- "9/12",
795
- "10/12",
796
- "11/12"
797
- ],
798
- valueFormat: (e) => {
799
- const [t, r] = e.split("/");
800
- return `${+t / +r * 100}%`;
801
- }
815
+ values: y.percentages,
816
+ valueFormat: a.Value.fraction
802
817
  },
803
818
  {
804
819
  values: ["auto", "fit-content", "max-content", "min-content"]
@@ -806,7 +821,7 @@ const N = K, j = {
806
821
  ],
807
822
  /** 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. */
808
823
  minHeight: [
809
- { styleName: "min-height", values: 0, valueFormat: (e) => `${e / 4}rem` },
824
+ { styleName: "min-height", values: 0, valueFormat: a.Value.rem },
810
825
  {
811
826
  styleName: "min-height",
812
827
  values: ["fit"],
@@ -819,38 +834,8 @@ const N = K, j = {
819
834
  },
820
835
  {
821
836
  styleName: "min-height",
822
- values: [
823
- "1/2",
824
- "1/3",
825
- "2/3",
826
- "1/4",
827
- "2/4",
828
- "3/4",
829
- "1/5",
830
- "2/5",
831
- "3/5",
832
- "4/5",
833
- "1/6",
834
- "2/6",
835
- "3/6",
836
- "4/6",
837
- "5/6",
838
- "1/12",
839
- "2/12",
840
- "3/12",
841
- "4/12",
842
- "5/12",
843
- "6/12",
844
- "7/12",
845
- "8/12",
846
- "9/12",
847
- "10/12",
848
- "11/12"
849
- ],
850
- valueFormat: (e) => {
851
- const [t, r] = e.split("/");
852
- return `${+t / +r * 100}%`;
853
- }
837
+ values: y.percentages,
838
+ valueFormat: a.Value.fraction
854
839
  },
855
840
  {
856
841
  styleName: "min-height",
@@ -859,7 +844,7 @@ const N = K, j = {
859
844
  ],
860
845
  /** 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. */
861
846
  maxHeight: [
862
- { styleName: "max-height", values: 0, valueFormat: (e) => `${e / 4}rem` },
847
+ { styleName: "max-height", values: 0, valueFormat: a.Value.rem },
863
848
  {
864
849
  styleName: "max-height",
865
850
  values: ["fit"],
@@ -872,38 +857,8 @@ const N = K, j = {
872
857
  },
873
858
  {
874
859
  styleName: "max-height",
875
- values: [
876
- "1/2",
877
- "1/3",
878
- "2/3",
879
- "1/4",
880
- "2/4",
881
- "3/4",
882
- "1/5",
883
- "2/5",
884
- "3/5",
885
- "4/5",
886
- "1/6",
887
- "2/6",
888
- "3/6",
889
- "4/6",
890
- "5/6",
891
- "1/12",
892
- "2/12",
893
- "3/12",
894
- "4/12",
895
- "5/12",
896
- "6/12",
897
- "7/12",
898
- "8/12",
899
- "9/12",
900
- "10/12",
901
- "11/12"
902
- ],
903
- valueFormat: (e) => {
904
- const [t, r] = e.split("/");
905
- return `${+t / +r * 100}%`;
906
- }
860
+ values: y.percentages,
861
+ valueFormat: a.Value.fraction
907
862
  },
908
863
  {
909
864
  styleName: "max-height",
@@ -912,7 +867,7 @@ const N = K, j = {
912
867
  ],
913
868
  /** 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. */
914
869
  width: [
915
- { values: 0, valueFormat: (e) => `${e / 4}rem` },
870
+ { values: 0, valueFormat: a.Value.rem },
916
871
  {
917
872
  values: ["fit"],
918
873
  valueFormat: () => "100%"
@@ -922,38 +877,8 @@ const N = K, j = {
922
877
  valueFormat: () => "100vw"
923
878
  },
924
879
  {
925
- values: [
926
- "1/2",
927
- "1/3",
928
- "2/3",
929
- "1/4",
930
- "2/4",
931
- "3/4",
932
- "1/5",
933
- "2/5",
934
- "3/5",
935
- "4/5",
936
- "1/6",
937
- "2/6",
938
- "3/6",
939
- "4/6",
940
- "5/6",
941
- "1/12",
942
- "2/12",
943
- "3/12",
944
- "4/12",
945
- "5/12",
946
- "6/12",
947
- "7/12",
948
- "8/12",
949
- "9/12",
950
- "10/12",
951
- "11/12"
952
- ],
953
- valueFormat: (e) => {
954
- const [t, r] = e.split("/");
955
- return `${+t / +r * 100}%`;
956
- }
880
+ values: y.percentages,
881
+ valueFormat: a.Value.fraction
957
882
  },
958
883
  {
959
884
  values: ["auto", "fit-content", "max-content", "min-content"]
@@ -961,7 +886,7 @@ const N = K, j = {
961
886
  ],
962
887
  /** 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. */
963
888
  minWidth: [
964
- { styleName: "min-width", values: 0, valueFormat: (e) => `${e / 4}rem` },
889
+ { styleName: "min-width", values: 0, valueFormat: a.Value.rem },
965
890
  {
966
891
  styleName: "min-width",
967
892
  values: ["fit"],
@@ -974,38 +899,8 @@ const N = K, j = {
974
899
  },
975
900
  {
976
901
  styleName: "min-width",
977
- values: [
978
- "1/2",
979
- "1/3",
980
- "2/3",
981
- "1/4",
982
- "2/4",
983
- "3/4",
984
- "1/5",
985
- "2/5",
986
- "3/5",
987
- "4/5",
988
- "1/6",
989
- "2/6",
990
- "3/6",
991
- "4/6",
992
- "5/6",
993
- "1/12",
994
- "2/12",
995
- "3/12",
996
- "4/12",
997
- "5/12",
998
- "6/12",
999
- "7/12",
1000
- "8/12",
1001
- "9/12",
1002
- "10/12",
1003
- "11/12"
1004
- ],
1005
- valueFormat: (e) => {
1006
- const [t, r] = e.split("/");
1007
- return `${+t / +r * 100}%`;
1008
- }
902
+ values: y.percentages,
903
+ valueFormat: a.Value.fraction
1009
904
  },
1010
905
  {
1011
906
  styleName: "min-width",
@@ -1014,7 +909,7 @@ const N = K, j = {
1014
909
  ],
1015
910
  /** 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. */
1016
911
  maxWidth: [
1017
- { styleName: "max-width", values: 0, valueFormat: (e) => `${e / 4}rem` },
912
+ { styleName: "max-width", values: 0, valueFormat: a.Value.rem },
1018
913
  {
1019
914
  styleName: "max-width",
1020
915
  values: ["fit"],
@@ -1027,38 +922,8 @@ const N = K, j = {
1027
922
  },
1028
923
  {
1029
924
  styleName: "max-width",
1030
- values: [
1031
- "1/2",
1032
- "1/3",
1033
- "2/3",
1034
- "1/4",
1035
- "2/4",
1036
- "3/4",
1037
- "1/5",
1038
- "2/5",
1039
- "3/5",
1040
- "4/5",
1041
- "1/6",
1042
- "2/6",
1043
- "3/6",
1044
- "4/6",
1045
- "5/6",
1046
- "1/12",
1047
- "2/12",
1048
- "3/12",
1049
- "4/12",
1050
- "5/12",
1051
- "6/12",
1052
- "7/12",
1053
- "8/12",
1054
- "9/12",
1055
- "10/12",
1056
- "11/12"
1057
- ],
1058
- valueFormat: (e) => {
1059
- const [t, r] = e.split("/");
1060
- return `${+t / +r * 100}%`;
1061
- }
925
+ values: y.percentages,
926
+ valueFormat: a.Value.fraction
1062
927
  },
1063
928
  {
1064
929
  styleName: "max-width",
@@ -1070,7 +935,7 @@ const N = K, j = {
1070
935
  {
1071
936
  styleName: "letter-spacing",
1072
937
  values: 0,
1073
- valueFormat: u.Value.px
938
+ valueFormat: a.Value.px
1074
939
  }
1075
940
  ],
1076
941
  /** 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. */
@@ -1078,7 +943,7 @@ const N = K, j = {
1078
943
  {
1079
944
  styleName: "line-height",
1080
945
  values: 0,
1081
- valueFormat: u.Value.px
946
+ valueFormat: a.Value.px
1082
947
  },
1083
948
  {
1084
949
  styleName: "line-height",
@@ -1098,11 +963,15 @@ const N = K, j = {
1098
963
  {
1099
964
  values: 0,
1100
965
  styleName: "margin",
1101
- valueFormat: u.Value.rem
966
+ valueFormat: a.Value.rem
1102
967
  },
1103
968
  {
1104
969
  values: ["auto"],
1105
970
  styleName: "margin"
971
+ },
972
+ {
973
+ values: y.percentages,
974
+ valueFormat: a.Value.fraction
1106
975
  }
1107
976
  ],
1108
977
  /** 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. */
@@ -1110,11 +979,15 @@ const N = K, j = {
1110
979
  {
1111
980
  values: 0,
1112
981
  styleName: "margin-inline",
1113
- valueFormat: u.Value.rem
982
+ valueFormat: a.Value.rem
1114
983
  },
1115
984
  {
1116
985
  values: ["auto"],
1117
986
  styleName: "margin-inline"
987
+ },
988
+ {
989
+ values: y.percentages,
990
+ valueFormat: a.Value.fraction
1118
991
  }
1119
992
  ],
1120
993
  /** 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. */
@@ -1122,11 +995,15 @@ const N = K, j = {
1122
995
  {
1123
996
  values: 0,
1124
997
  styleName: "margin-block",
1125
- valueFormat: u.Value.rem
998
+ valueFormat: a.Value.rem
1126
999
  },
1127
1000
  {
1128
1001
  values: ["auto"],
1129
1002
  styleName: "margin-block"
1003
+ },
1004
+ {
1005
+ values: y.percentages,
1006
+ valueFormat: a.Value.fraction
1130
1007
  }
1131
1008
  ],
1132
1009
  /** 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. */
@@ -1134,11 +1011,15 @@ const N = K, j = {
1134
1011
  {
1135
1012
  values: 0,
1136
1013
  styleName: "margin-top",
1137
- valueFormat: u.Value.rem
1014
+ valueFormat: a.Value.rem
1138
1015
  },
1139
1016
  {
1140
1017
  values: ["auto"],
1141
1018
  styleName: "margin-top"
1019
+ },
1020
+ {
1021
+ values: y.percentages,
1022
+ valueFormat: a.Value.fraction
1142
1023
  }
1143
1024
  ],
1144
1025
  /** 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. */
@@ -1146,11 +1027,15 @@ const N = K, j = {
1146
1027
  {
1147
1028
  values: 0,
1148
1029
  styleName: "margin-right",
1149
- valueFormat: u.Value.rem
1030
+ valueFormat: a.Value.rem
1150
1031
  },
1151
1032
  {
1152
1033
  values: ["auto"],
1153
1034
  styleName: "margin-right"
1035
+ },
1036
+ {
1037
+ values: y.percentages,
1038
+ valueFormat: a.Value.fraction
1154
1039
  }
1155
1040
  ],
1156
1041
  /** 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. */
@@ -1158,11 +1043,15 @@ const N = K, j = {
1158
1043
  {
1159
1044
  values: 0,
1160
1045
  styleName: "margin-bottom",
1161
- valueFormat: u.Value.rem
1046
+ valueFormat: a.Value.rem
1162
1047
  },
1163
1048
  {
1164
1049
  values: ["auto"],
1165
1050
  styleName: "margin-bottom"
1051
+ },
1052
+ {
1053
+ values: y.percentages,
1054
+ valueFormat: a.Value.fraction
1166
1055
  }
1167
1056
  ],
1168
1057
  /** 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. */
@@ -1170,11 +1059,15 @@ const N = K, j = {
1170
1059
  {
1171
1060
  values: 0,
1172
1061
  styleName: "margin-left",
1173
- valueFormat: u.Value.rem
1062
+ valueFormat: a.Value.rem
1174
1063
  },
1175
1064
  {
1176
1065
  values: ["auto"],
1177
1066
  styleName: "margin-left"
1067
+ },
1068
+ {
1069
+ values: y.percentages,
1070
+ valueFormat: a.Value.fraction
1178
1071
  }
1179
1072
  ],
1180
1073
  /** The padding CSS shorthand property sets the padding area on all four sides of an element at once. */
@@ -1182,7 +1075,11 @@ const N = K, j = {
1182
1075
  {
1183
1076
  values: 0,
1184
1077
  styleName: "padding",
1185
- valueFormat: u.Value.rem
1078
+ valueFormat: a.Value.rem
1079
+ },
1080
+ {
1081
+ values: y.percentages,
1082
+ valueFormat: a.Value.fraction
1186
1083
  }
1187
1084
  ],
1188
1085
  /** 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. */
@@ -1190,7 +1087,11 @@ const N = K, j = {
1190
1087
  {
1191
1088
  values: 0,
1192
1089
  styleName: "padding-inline",
1193
- valueFormat: u.Value.rem
1090
+ valueFormat: a.Value.rem
1091
+ },
1092
+ {
1093
+ values: y.percentages,
1094
+ valueFormat: a.Value.fraction
1194
1095
  }
1195
1096
  ],
1196
1097
  /** 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. */
@@ -1198,7 +1099,11 @@ const N = K, j = {
1198
1099
  {
1199
1100
  values: 0,
1200
1101
  styleName: "padding-block",
1201
- valueFormat: u.Value.rem
1102
+ valueFormat: a.Value.rem
1103
+ },
1104
+ {
1105
+ values: y.percentages,
1106
+ valueFormat: a.Value.fraction
1202
1107
  }
1203
1108
  ],
1204
1109
  /** The padding-top CSS property sets the height of the padding area on the top of an element. */
@@ -1206,7 +1111,11 @@ const N = K, j = {
1206
1111
  {
1207
1112
  values: 0,
1208
1113
  styleName: "padding-top",
1209
- valueFormat: u.Value.rem
1114
+ valueFormat: a.Value.rem
1115
+ },
1116
+ {
1117
+ values: y.percentages,
1118
+ valueFormat: a.Value.fraction
1210
1119
  }
1211
1120
  ],
1212
1121
  /** The padding-right CSS property sets the width of the padding area on the right of an element. */
@@ -1214,7 +1123,11 @@ const N = K, j = {
1214
1123
  {
1215
1124
  values: 0,
1216
1125
  styleName: "padding-right",
1217
- valueFormat: u.Value.rem
1126
+ valueFormat: a.Value.rem
1127
+ },
1128
+ {
1129
+ values: y.percentages,
1130
+ valueFormat: a.Value.fraction
1218
1131
  }
1219
1132
  ],
1220
1133
  /** The padding-bottom CSS property sets the height of the padding area on the bottom of an element. */
@@ -1222,7 +1135,11 @@ const N = K, j = {
1222
1135
  {
1223
1136
  values: 0,
1224
1137
  styleName: "padding-bottom",
1225
- valueFormat: u.Value.rem
1138
+ valueFormat: a.Value.rem
1139
+ },
1140
+ {
1141
+ values: y.percentages,
1142
+ valueFormat: a.Value.fraction
1226
1143
  }
1227
1144
  ],
1228
1145
  /** The padding-left CSS property sets the width of the padding area to the left of an element. */
@@ -1230,7 +1147,11 @@ const N = K, j = {
1230
1147
  {
1231
1148
  values: 0,
1232
1149
  styleName: "padding-left",
1233
- valueFormat: u.Value.rem
1150
+ valueFormat: a.Value.rem
1151
+ },
1152
+ {
1153
+ values: y.percentages,
1154
+ valueFormat: a.Value.fraction
1234
1155
  }
1235
1156
  ],
1236
1157
  /** 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. */
@@ -1251,7 +1172,7 @@ const N = K, j = {
1251
1172
  {
1252
1173
  styleName: "outline-width",
1253
1174
  values: 0,
1254
- valueFormat: u.Value.px
1175
+ valueFormat: a.Value.px
1255
1176
  }
1256
1177
  ],
1257
1178
  /** 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. */
@@ -1266,7 +1187,7 @@ const N = K, j = {
1266
1187
  {
1267
1188
  styleName: "outline-offset",
1268
1189
  values: 0,
1269
- valueFormat: u.Value.px
1190
+ valueFormat: a.Value.px
1270
1191
  }
1271
1192
  ],
1272
1193
  /** 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. */
@@ -1419,7 +1340,7 @@ const N = K, j = {
1419
1340
  }
1420
1341
  ],
1421
1342
  /** The grid-column CSS shorthand property specifies a grid item's size and location within a grid column by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the inline-start and inline-end edge of its grid area. */
1422
- colSpan: [
1343
+ gridColumn: [
1423
1344
  {
1424
1345
  styleName: "grid-column",
1425
1346
  values: 0,
@@ -1474,40 +1395,40 @@ const N = K, j = {
1474
1395
  ],
1475
1396
  color: [
1476
1397
  {
1477
- values: Object.keys(N.colors),
1398
+ values: Object.keys(y.colors),
1478
1399
  valueFormat: (e, t) => t(e)
1479
1400
  }
1480
1401
  ],
1481
1402
  bgColor: [
1482
1403
  {
1483
- values: Object.keys(N.colors),
1404
+ values: Object.keys(y.colors),
1484
1405
  valueFormat: (e, t) => t(e),
1485
1406
  styleName: "background-color"
1486
1407
  }
1487
1408
  ],
1488
1409
  borderColor: [
1489
1410
  {
1490
- values: Object.keys(N.colors),
1411
+ values: Object.keys(y.colors),
1491
1412
  valueFormat: (e, t) => t(e),
1492
1413
  styleName: "border-color"
1493
1414
  }
1494
1415
  ],
1495
1416
  outlineColor: [
1496
1417
  {
1497
- values: Object.keys(N.colors),
1418
+ values: Object.keys(y.colors),
1498
1419
  valueFormat: (e, t) => t(e),
1499
1420
  styleName: "outline-color"
1500
1421
  }
1501
1422
  ],
1502
1423
  fill: [
1503
1424
  {
1504
- values: Object.keys(N.colors),
1425
+ values: Object.keys(y.colors),
1505
1426
  valueFormat: (e, t) => t(e)
1506
1427
  }
1507
1428
  ],
1508
1429
  stroke: [
1509
1430
  {
1510
- values: Object.keys(N.colors),
1431
+ values: Object.keys(y.colors),
1511
1432
  valueFormat: (e, t) => t(e)
1512
1433
  }
1513
1434
  ],
@@ -1528,11 +1449,18 @@ const N = K, j = {
1528
1449
  translateX: [
1529
1450
  {
1530
1451
  values: 0,
1531
- valueFormat: (e) => `translateX(${e / 4}rem)`,
1452
+ valueFormat: (e) => `translateX(${e / W}rem)`,
1453
+ styleName: "transform"
1454
+ }
1455
+ ],
1456
+ translateY: [
1457
+ {
1458
+ values: 0,
1459
+ valueFormat: (e) => `translateY(${e / W}rem)`,
1532
1460
  styleName: "transform"
1533
1461
  }
1534
1462
  ]
1535
- }, ce = {
1463
+ }, ve = {
1536
1464
  hover: ":hover",
1537
1465
  focus: ":focus-within",
1538
1466
  hasFocus: ":has(:focus)",
@@ -1551,26 +1479,26 @@ const N = K, j = {
1551
1479
  required: ":required",
1552
1480
  disabled: "[disabled]",
1553
1481
  selected: '[aria-selected="true"]'
1554
- }, xe = {
1482
+ }, Ve = {
1555
1483
  theme: ""
1556
- }, Z = { ...ce, ...H, ...xe }, de = Object.entries(Z).reduce(
1484
+ }, te = { ...ve, ...H, ...Ve }, ye = Object.entries(te).reduce(
1557
1485
  (e, [t], r) => (e[t] = Math.pow(2, r), e),
1558
1486
  {}
1559
- ), D = Object.entries(Z).reduce(
1487
+ ), G = Object.entries(te).reduce(
1560
1488
  (e, [t]) => {
1561
- const r = de[t];
1562
- return Object.entries(e).forEach(([l, s]) => {
1563
- e[+l + r] = [...s, t];
1489
+ const r = ye[t];
1490
+ return Object.entries(e).forEach(([o, i]) => {
1491
+ e[+o + r] = [...i, t];
1564
1492
  }), e;
1565
1493
  },
1566
1494
  { 0: [] }
1567
- ), oe = {
1495
+ ), se = {
1568
1496
  hoverGroup: "hover",
1569
1497
  focusGroup: "focus",
1570
1498
  activeGroup: "active",
1571
1499
  disabledGroup: "disabled",
1572
1500
  theme: "theme"
1573
- }, B = {
1501
+ }, k = {
1574
1502
  /** Styles applied for small screens and larger. >= 640 */
1575
1503
  sm: 640,
1576
1504
  /** Styles applied for medium screens and larger. >= 768 */
@@ -1582,35 +1510,35 @@ const N = K, j = {
1582
1510
  /** Styles applied for 2x extra-large screens and larger. >= 1536 */
1583
1511
  xxl: 1536
1584
1512
  };
1585
- var W;
1513
+ var q;
1586
1514
  ((e) => {
1587
- function t(n, d, a) {
1588
- const c = { ...n }, y = c.props || {};
1589
- return d.forEach((o) => {
1590
- o in c && (y[o] = c[o], delete c[o]);
1591
- }), a && Object.entries(a).forEach(([o, v]) => {
1592
- y[o] = v;
1593
- }), c.props = y, c;
1515
+ function t(n, u, l) {
1516
+ const d = { ...n }, b = d.props || {};
1517
+ return u.forEach((s) => {
1518
+ s in d && (b[s] = d[s], delete d[s]);
1519
+ }), l && Object.entries(l).forEach(([s, h]) => {
1520
+ b[s] = h;
1521
+ }), d.props = b, d;
1594
1522
  }
1595
1523
  e.buildProps = t;
1596
1524
  function r(n) {
1597
1525
  return !!n && typeof n == "object";
1598
1526
  }
1599
1527
  e.isObject = r;
1600
- function l(...n) {
1601
- return n.reduce((d, a) => (Object.keys(a ?? {}).forEach((c) => {
1602
- const y = d[c], o = a[c];
1603
- r(o) && "clean" in o && o.clean ? d[c] = o : c in H && typeof o == "boolean" || (c in H && Array.isArray(o) ? d[c] = l(y, o[1] ?? {}) : Array.isArray(y) && Array.isArray(o) ? d[c] = y.concat(...o) : r(y) && r(o) ? d[c] = l(y, o) : d[c] = o);
1604
- }), d), {});
1528
+ function o(...n) {
1529
+ return n.reduce((u, l) => (Object.keys(l ?? {}).forEach((d) => {
1530
+ const b = u[d], s = l[d];
1531
+ r(s) && "clean" in s && s.clean ? u[d] = s : d in H && typeof s == "boolean" || (d in H && Array.isArray(s) ? u[d] = o(b, s[1] ?? {}) : Array.isArray(b) && Array.isArray(s) ? u[d] = b.concat(...s) : r(b) && r(s) ? u[d] = o(b, s) : u[d] = s);
1532
+ }), u), {});
1605
1533
  }
1606
- e.mergeDeep = l;
1607
- function s(n, d) {
1608
- return n in d;
1534
+ e.mergeDeep = o;
1535
+ function i(n, u) {
1536
+ return n in u;
1609
1537
  }
1610
- e.isKeyOf = s;
1611
- })(W || (W = {}));
1612
- const $ = W;
1613
- class Ne {
1538
+ e.isKeyOf = i;
1539
+ })(q || (q = {}));
1540
+ const C = q;
1541
+ class $e {
1614
1542
  constructor() {
1615
1543
  this._index = 0, this._cache = {};
1616
1544
  }
@@ -1618,17 +1546,17 @@ class Ne {
1618
1546
  return this._cache[t] || (this._cache[t] = this.getByIndex(this._index++)), this._cache[t];
1619
1547
  }
1620
1548
  getByIndex(t) {
1621
- const { first: r, next: l } = Fe, s = t - r.length;
1622
- if (s < 0)
1549
+ const { first: r, next: o } = ze, i = t - r.length;
1550
+ if (i < 0)
1623
1551
  return r[t];
1624
- const n = Math.floor(s / l.length), d = s - n * l.length;
1625
- return this.getByIndex(n) + l[d];
1552
+ const n = Math.floor(i / o.length), u = i - n * o.length;
1553
+ return this.getByIndex(n) + o[u];
1626
1554
  }
1627
1555
  }
1628
- const Fe = {
1556
+ const ze = {
1629
1557
  first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
1630
1558
  next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
1631
- }, ae = {
1559
+ }, ie = {
1632
1560
  button: {
1633
1561
  styles: {
1634
1562
  display: "inline-flex",
@@ -1919,249 +1847,437 @@ const Fe = {
1919
1847
  }
1920
1848
  },
1921
1849
  label: { styles: {} },
1922
- datagrid: { styles: {} }
1850
+ datagrid: {
1851
+ styles: {
1852
+ b: 1,
1853
+ borderColor: "gray-400",
1854
+ overflow: "hidden",
1855
+ borderRadius: 1
1856
+ },
1857
+ children: {
1858
+ header: {
1859
+ styles: {
1860
+ position: "sticky",
1861
+ top: 0,
1862
+ width: "max-content",
1863
+ minWidth: "fit",
1864
+ zIndex: 1
1865
+ },
1866
+ variants: {
1867
+ isResizeMode: { userSelect: "none" }
1868
+ },
1869
+ children: {
1870
+ cell: {
1871
+ styles: {
1872
+ bgColor: "gray-200",
1873
+ borderColor: "gray-400",
1874
+ bb: 1,
1875
+ minHeight: 12,
1876
+ position: "relative",
1877
+ transition: "none"
1878
+ },
1879
+ variants: {
1880
+ isRowNumber: {},
1881
+ isRowSelection: {},
1882
+ isPinned: { position: "sticky", zIndex: 2 },
1883
+ isFirstLeftPinned: {},
1884
+ isLastLeftPinned: { br: 1 },
1885
+ isFirstRightPinned: { bl: 1 },
1886
+ isLastRightPinned: {},
1887
+ isSortable: { cursor: "pointer" }
1888
+ }
1889
+ }
1890
+ }
1891
+ },
1892
+ cell: {
1893
+ styles: {
1894
+ bgColor: "gray-100",
1895
+ bb: 1,
1896
+ borderColor: "gray-400",
1897
+ transition: "none",
1898
+ ai: "center",
1899
+ overflow: "hidden",
1900
+ minHeight: 12,
1901
+ hoverGroup: { "grid-row": { bgColor: "gray-200" } }
1902
+ },
1903
+ variants: {
1904
+ isRowNumber: {
1905
+ bgColor: "gray-200"
1906
+ },
1907
+ isRowSelection: {},
1908
+ isPinned: { position: "sticky" },
1909
+ isFirstLeftPinned: {},
1910
+ isLastLeftPinned: { br: 1 },
1911
+ isFirstRightPinned: { bl: 1 },
1912
+ isLastRightPinned: {}
1913
+ }
1914
+ }
1915
+ }
1916
+ }
1923
1917
  };
1924
- var q;
1918
+ var X;
1925
1919
  ((e) => {
1926
- function t(l, s, n) {
1927
- return N.setUserVariables(l), Object.entries(s).forEach(([d, a]) => {
1928
- j[d] = a;
1929
- }), Object.entries(n).forEach(([d, a]) => {
1930
- const c = j[d];
1931
- j[d] = c ? [...a, ...c] : a;
1932
- }), { extendedProps: s, extendedPropTypes: n };
1920
+ function t(o, i, n) {
1921
+ return y.setUserVariables(o), Object.entries(i).forEach(([u, l]) => {
1922
+ E[u] = l;
1923
+ }), Object.entries(n).forEach(([u, l]) => {
1924
+ const d = E[u];
1925
+ E[u] = d ? [...l, ...d] : l;
1926
+ }), { extendedProps: i, extendedPropTypes: n };
1933
1927
  }
1934
- e.extend = t, e.componentsStyles = ae;
1935
- function r(l) {
1936
- return e.componentsStyles = $.mergeDeep(ae, l), l;
1928
+ e.extend = t, e.componentsStyles = ie;
1929
+ function r(o) {
1930
+ return e.componentsStyles = C.mergeDeep(ie, o), o;
1937
1931
  }
1938
1932
  e.components = r;
1939
- })(q || (q = {}));
1940
- const Ce = q;
1941
- function $e(e) {
1942
- const { clean: t, component: r, variant: l } = e;
1943
- return Q(() => {
1944
- var a;
1933
+ })(X || (X = {}));
1934
+ const Ae = X;
1935
+ function Ee(e) {
1936
+ const { clean: t, component: r, variant: o } = e;
1937
+ return ee(() => {
1945
1938
  if (t) return;
1946
- const s = r == null ? void 0 : r.split(".");
1947
- if (!s) return;
1948
- const n = s.reduce((c, y, o) => {
1949
- var v;
1950
- return o === 0 ? Ce.componentsStyles[y] : (v = c == null ? void 0 : c.children) == null ? void 0 : v[y];
1939
+ const i = r == null ? void 0 : r.split(".");
1940
+ if (!i) return;
1941
+ const n = i.reduce((d, b, s) => {
1942
+ var h;
1943
+ return s === 0 ? Ae.componentsStyles[b] : (h = d == null ? void 0 : d.children) == null ? void 0 : h[b];
1951
1944
  }, void 0);
1952
1945
  if (!n) return;
1953
- const d = (a = n.variants) == null ? void 0 : a[l];
1954
- return d ? $.mergeDeep(n.styles, d) : n.styles;
1955
- }, [t, r, l]);
1946
+ if (!o) return n.styles;
1947
+ const u = me(o);
1948
+ if (u.length === 0) return n.styles;
1949
+ const l = C.mergeDeep(...u.map((d) => {
1950
+ var b;
1951
+ return (b = n.variants) == null ? void 0 : b[d];
1952
+ }));
1953
+ return C.mergeDeep(n.styles, l);
1954
+ }, [t, r, o]);
1956
1955
  }
1957
- const Ve = new Ne(), ze = typeof window < "u" && typeof window.document < "u";
1958
- var se;
1959
- const fe = typeof process == "object" && ((se = process.env) == null ? void 0 : se.NODE_ENV) === "test", je = ze && !fe ? ie : ne, me = "_b", O = "_s";
1960
- function Te(e, t) {
1961
- je(S.flush, [e]);
1962
- const r = $e(e);
1963
- return Q(() => {
1964
- const l = [t ? O : me], s = r ? $.mergeDeep(r, e) : e;
1965
- return S.addClassNames(s, l, []), l;
1956
+ const Oe = new $e(), je = typeof window < "u" && typeof window.document < "u";
1957
+ var ue;
1958
+ const he = typeof process == "object" && ((ue = process.env) == null ? void 0 : ue.NODE_ENV) === "test", Re = je && !he ? ce : de, be = "_b", j = "_s";
1959
+ function Le(e, t) {
1960
+ Re(R.flush, [e]);
1961
+ const r = Ee(e);
1962
+ return ee(() => {
1963
+ const o = [t ? j : be], i = r ? C.mergeDeep(r, e) : e;
1964
+ return R.addClassNames(i, o, []), o;
1966
1965
  }, [e, t, r]);
1967
1966
  }
1968
- var S;
1967
+ var R;
1969
1968
  ((e) => {
1970
1969
  let t = !0, r = {};
1971
- function l(o, v, g, b, i) {
1972
- Object.entries(o).forEach(([f, m]) => {
1973
- if ($.isKeyOf(f, j))
1974
- d(f, m, v, g, b, i);
1975
- else if ($.isKeyOf(f, ce))
1976
- l(m, v, [...g, f], b, i);
1977
- else if ($.isKeyOf(f, H)) {
1970
+ function o(s, h, g, v, c) {
1971
+ Object.entries(s).forEach(([f, m]) => {
1972
+ if (C.isKeyOf(f, E))
1973
+ u(f, m, h, g, v, c);
1974
+ else if (C.isKeyOf(f, ve))
1975
+ o(m, h, [...g, f], v, c);
1976
+ else if (C.isKeyOf(f, H)) {
1978
1977
  if (Array.isArray(m)) {
1979
- const [w, x] = m;
1980
- l(x, v, [...g, f], b, i);
1978
+ const [F, N] = m;
1979
+ o(N, h, [...g, f], v, c);
1981
1980
  }
1982
- $.isObject(m) && l(m, v, [...g, f], b, i);
1983
- } else $.isKeyOf(f, B) ? l(m, v, g, f, i) : $.isKeyOf(f, oe) && Object.entries(m).forEach(([w, x]) => {
1984
- l(x, v, [...g, oe[f]], b, w);
1981
+ C.isObject(m) && o(m, h, [...g, f], v, c);
1982
+ } else C.isKeyOf(f, k) ? o(m, h, g, f, c) : C.isKeyOf(f, se) && Object.entries(m).forEach(([F, N]) => {
1983
+ o(N, h, [...g, se[f]], v, F);
1985
1984
  });
1986
1985
  });
1987
1986
  }
1988
- e.addClassNames = l;
1989
- function s() {
1987
+ e.addClassNames = o;
1988
+ function i() {
1990
1989
  if (!t) return;
1991
1990
  console.debug("\x1B[36m%s\x1B[0m", "[react-box]: flush");
1992
- const o = Object.entries(j).reduce((f, [m], w) => (f[m] = w, f), {}), v = `: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;}
1991
+ const s = Object.entries(E).reduce((f, [m], F) => (f[m] = F, f), {}), h = `: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;}
1993
1992
  html{font-size: 16px;font-family: Arial, sans-serif;}
1994
1993
  body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}
1995
1994
  a,ul{all: unset;}
1996
- .${me}{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;}
1997
- .${O}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}.${O} path,.${O} circle,.${O} rect,.${O} line {transition: all var(--svgTransitionTime);}
1995
+ .${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;}
1996
+ .${j}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}.${j} path,.${j} circle,.${j} rect,.${j} line {transition: all var(--svgTransitionTime);}
1998
1997
  `, g = Object.entries(r);
1999
1998
  g.sort(
2000
- ([f], [m]) => (B[f] ?? 0) - (B[m] ?? 0)
1999
+ ([f], [m]) => (k[f] ?? 0) - (k[m] ?? 0)
2001
2000
  );
2002
- const b = g.reduce(
2003
- (f, [m, w]) => (m !== "normal" && f.push(`@media(min-width: ${B[m]}px){`), Object.entries(w).forEach(([x, L]) => {
2004
- const { __parents: P, ...ve } = L, ee = Object.entries(ve);
2005
- ee.sort(([F], [A]) => o[F] - o[A]), ee.forEach(([F, A]) => {
2006
- A.forEach((V) => {
2007
- var T, I;
2008
- const h = j[F].find((C) => Array.isArray(C.values) ? C.values.includes(V) : typeof V == typeof C.values);
2009
- if (!h) return;
2010
- const z = a(F, V, +x, m), U = D[+x].map((C) => Z[C]).join(""), p = ((T = h.selector) == null ? void 0 : T.call(h, `.${z}`, U)) ?? `.${z}${U}`, R = Array.isArray(h.styleName) ? h.styleName : [h.styleName ?? F], k = ((I = h.valueFormat) == null ? void 0 : I.call(h, V, N.getVariableValue)) ?? V;
2011
- f.push(`${p}{${R.map((C) => `${C}:${k}`).join(";")}}`);
2001
+ const v = g.reduce(
2002
+ (f, [m, F]) => (m !== "normal" && f.push(`@media(min-width: ${k[m]}px){`), Object.entries(F).forEach(([N, D]) => {
2003
+ const { __parents: re, ...ge } = D, ae = Object.entries(ge);
2004
+ ae.sort(([V], [S]) => s[V] - s[S]), ae.forEach(([V, S]) => {
2005
+ S.forEach((z) => {
2006
+ var B, L;
2007
+ const p = E[V].find(($) => Array.isArray($.values) ? $.values.includes(z) : typeof z == typeof $.values);
2008
+ if (!p) return;
2009
+ const A = l(V, z, +N, m), U = G[+N].map(($) => te[$]).join(""), w = ((B = p.selector) == null ? void 0 : B.call(p, `.${A}`, U)) ?? `.${A}${U}`, I = Array.isArray(p.styleName) ? p.styleName : [p.styleName ?? V], _ = ((L = p.valueFormat) == null ? void 0 : L.call(p, z, y.getVariableValue)) ?? z;
2010
+ f.push(`${w}{${I.map(($) => `${$}:${_}`).join(";")}}`);
2012
2011
  });
2013
- }), P && Object.entries(P).forEach(([F, A]) => {
2014
- const V = Object.entries(A);
2015
- V.sort(([E], [h]) => o[E] - o[h]), V.forEach(([E, h]) => {
2016
- h.forEach((z) => {
2017
- var te, re;
2018
- const p = j[E].find((_) => Array.isArray(_.values) ? _.values.includes(z) : typeof z == typeof _.values);
2019
- if (!p) return;
2020
- const R = a(E, z, +x, m, F), [k] = D[+x], T = k === "theme" ? `.${F} .${R}` : `.${F}:${k} .${R}`, I = ((te = p.selector) == null ? void 0 : te.call(p, T, "")) ?? T, C = Array.isArray(p.styleName) ? p.styleName : [p.styleName ?? E], be = ((re = p.valueFormat) == null ? void 0 : re.call(p, z, N.getVariableValue)) ?? z;
2021
- f.push(`${I}{${C.map((_) => `${_}:${be}`).join(";")}}`);
2012
+ }), re && Object.entries(re).forEach(([V, S]) => {
2013
+ const z = Object.entries(S);
2014
+ z.sort(([O], [p]) => s[O] - s[p]), z.forEach(([O, p]) => {
2015
+ p.forEach((A) => {
2016
+ var oe, le;
2017
+ const w = E[O].find((T) => Array.isArray(T.values) ? T.values.includes(A) : typeof A == typeof T.values);
2018
+ if (!w) return;
2019
+ const I = l(O, A, +N, m, V), [_] = G[+N], B = _ === "theme" ? `.${V} .${I}` : `.${V}:${_} .${I}`, L = ((oe = w.selector) == null ? void 0 : oe.call(w, B, "")) ?? B, $ = Array.isArray(w.styleName) ? w.styleName : [w.styleName ?? O], pe = ((le = w.valueFormat) == null ? void 0 : le.call(w, A, y.getVariableValue)) ?? A;
2020
+ f.push(`${L}{${$.map((T) => `${T}:${pe}`).join(";")}}`);
2022
2021
  });
2023
2022
  });
2024
2023
  });
2025
2024
  }), m !== "normal" && f.push("}"), f),
2026
- [v]
2025
+ [h]
2027
2026
  );
2028
- b.unshift(`:root{${N.generateVariables()}}`);
2029
- const i = y();
2030
- i.innerHTML = b.join(""), t = !1;
2027
+ v.unshift(`:root{${y.generateVariables()}}`);
2028
+ const c = b();
2029
+ c.innerHTML = v.join(""), t = !1;
2031
2030
  }
2032
- e.flush = s;
2031
+ e.flush = i;
2033
2032
  function n() {
2034
2033
  r = {};
2035
2034
  }
2036
2035
  e.clear = n;
2037
- function d(o, v, g, b, i = "normal", f) {
2038
- if (v == null) return;
2039
- const m = b.reduce((x, L) => x + de[L], 0);
2040
- r[i] ? r[i][m] ? r[i][m][o] || (r[i][m][o] = /* @__PURE__ */ new Set()) : r[i][m] = { [o]: /* @__PURE__ */ new Set() } : r[i] = { [m]: { [o]: /* @__PURE__ */ new Set() } }, f ? (r[i][m].__parents ? r[i][m].__parents[f] ? r[i][m].__parents[f][o] || (r[i][m].__parents[f][o] = /* @__PURE__ */ new Set()) : r[i][m].__parents[f] = { [o]: /* @__PURE__ */ new Set() } : r[i][m].__parents = { [f]: { [o]: /* @__PURE__ */ new Set() } }, r[i][m].__parents[f][o].has(v) || (r[i][m].__parents[f][o].add(v), t = !0)) : r[i][m][o].has(v) || (r[i][m][o].add(v), t = !0);
2041
- const w = a(o, v, m, i, f);
2042
- g.push(w);
2036
+ function u(s, h, g, v, c = "normal", f) {
2037
+ if (h == null) return;
2038
+ const m = v.reduce((N, D) => N + ye[D], 0);
2039
+ r[c] ? r[c][m] ? r[c][m][s] || (r[c][m][s] = /* @__PURE__ */ new Set()) : r[c][m] = { [s]: /* @__PURE__ */ new Set() } : r[c] = { [m]: { [s]: /* @__PURE__ */ new Set() } }, f ? (r[c][m].__parents ? r[c][m].__parents[f] ? r[c][m].__parents[f][s] || (r[c][m].__parents[f][s] = /* @__PURE__ */ new Set()) : r[c][m].__parents[f] = { [s]: /* @__PURE__ */ new Set() } : r[c][m].__parents = { [f]: { [s]: /* @__PURE__ */ new Set() } }, r[c][m].__parents[f][s].has(h) || (r[c][m].__parents[f][s].add(h), t = !0)) : r[c][m][s].has(h) || (r[c][m][s].add(h), t = !0);
2040
+ const F = l(s, h, m, c, f);
2041
+ g.push(F);
2043
2042
  }
2044
- function a(o, v, g, b, i) {
2045
- const f = D[g], m = `${b === "normal" ? "" : `${b}-`}${f.map((w) => `${w}-`).join("")}${i ? `${i}-` : ""}${o}-${v}`;
2046
- return fe ? m : Ve.getIdentity(m);
2043
+ function l(s, h, g, v, c) {
2044
+ const f = G[g], m = `${v === "normal" ? "" : `${v}-`}${f.map((F) => `${F}-`).join("")}${c ? `${c}-` : ""}${s}-${h}`;
2045
+ return he ? m : Oe.getIdentity(m);
2047
2046
  }
2048
- const c = "crono-styles";
2049
- function y() {
2050
- let o = document.getElementById(c);
2051
- return o || (o = document.createElement("style"), o.setAttribute("id", c), o.setAttribute("type", "text/css"), document.head.insertBefore(o, document.head.firstChild)), o;
2047
+ const d = "crono-styles";
2048
+ function b() {
2049
+ let s = document.getElementById(d);
2050
+ return s || (s = document.createElement("style"), s.setAttribute("id", d), s.setAttribute("type", "text/css"), document.head.insertBefore(s, document.head.firstChild)), s;
2052
2051
  }
2053
- })(S || (S = {}));
2054
- var le;
2052
+ })(R || (R = {}));
2053
+ var ne;
2055
2054
  ((e) => {
2056
- e.flush = S.flush, e.clear = S.clear;
2057
- })(le || (le = {}));
2058
- const M = ye.createContext({ theme: "", setTheme: () => {
2055
+ e.flush = R.flush, e.clear = R.clear;
2056
+ })(ne || (ne = {}));
2057
+ const Y = we.createContext({ theme: "", setTheme: () => {
2059
2058
  } });
2060
- function X(e) {
2061
- const { children: t, theme: r, use: l = "local" } = e, [s, n] = ue(r);
2062
- return ie(() => {
2063
- if (l === "local") return;
2064
- const d = document.documentElement;
2065
- return d.classList.add(s), () => {
2066
- d.classList.remove(s);
2059
+ function Z(e) {
2060
+ const { children: t, theme: r, use: o = "local" } = e, [i, n] = fe(r);
2061
+ return ce(() => {
2062
+ if (o === "local") return;
2063
+ const u = document.documentElement;
2064
+ return u.classList.add(i), () => {
2065
+ u.classList.remove(i);
2067
2066
  };
2068
- }, [s]), l === "local" ? /* @__PURE__ */ G(M.Provider, { value: { theme: s, setTheme: n }, children: /* @__PURE__ */ G(pe, { className: s, children: t }) }) : /* @__PURE__ */ G(M.Provider, { value: { theme: s, setTheme: n }, children: t });
2067
+ }, [i]), o === "local" ? /* @__PURE__ */ x(Y.Provider, { value: { theme: i, setTheme: n }, children: /* @__PURE__ */ x(Ce, { className: i, children: t }) }) : /* @__PURE__ */ x(Y.Provider, { value: { theme: i, setTheme: n }, children: t });
2069
2068
  }
2070
2069
  ((e) => {
2071
2070
  function t() {
2072
- const { theme: r, setTheme: l } = ge(M);
2073
- return [r, l];
2071
+ const { theme: r, setTheme: o } = xe(Y);
2072
+ return [r, o];
2074
2073
  }
2075
2074
  e.useTheme = t;
2076
- })(X || (X = {}));
2077
- const _e = X, Ee = {
2075
+ })(Z || (Z = {}));
2076
+ const ke = Z, Se = {
2078
2077
  selected: "aria-selected"
2079
2078
  };
2080
- var Y;
2079
+ var P;
2081
2080
  ((e) => {
2082
- function t(r, l, s) {
2083
- r !== void 0 && r != null && (s[Ee[l] ?? l] = Array.isArray(r) ? r[0] : r);
2081
+ function t(r, o, i) {
2082
+ r !== void 0 && r != null && (i[Se[o] ?? o] = Array.isArray(r) ? r[0] : r);
2084
2083
  }
2085
2084
  e.assignBooleanProp = t;
2086
- })(Y || (Y = {}));
2087
- const Re = Y;
2085
+ })(P || (P = {}));
2086
+ const He = P;
2088
2087
  Array.prototype.removeBy || (Array.prototype.removeBy = function(e) {
2089
- return this.filter(e);
2088
+ return this.filter((t) => !e(t));
2090
2089
  });
2091
- function ke(e = null) {
2092
- const [t, r] = ue(!1), l = he(null);
2093
- return ne(() => {
2094
- function s(d) {
2095
- const a = e ?? l.current;
2096
- (a == null ? void 0 : a.contains(d.target)) === !1 && r(!1);
2097
- }
2098
- function n(d) {
2099
- d.key === "Escape" && r(!1);
2100
- }
2101
- return t && (window.addEventListener("click", s), window.addEventListener("keydown", n)), () => {
2102
- window.removeEventListener("click", s), window.removeEventListener("keydown", n);
2090
+ Array.prototype.take || (Array.prototype.take = function(e, t = 0) {
2091
+ return this.slice(t, t + e);
2092
+ });
2093
+ Array.prototype.add || (Array.prototype.add = function(...e) {
2094
+ const t = [...this];
2095
+ return t.push(...e), t;
2096
+ });
2097
+ Array.prototype.sumBy || (Array.prototype.sumBy = function(e, t = 0) {
2098
+ return this.reduce((r, o, i) => r + e(o, i), t);
2099
+ });
2100
+ Array.prototype.sortBy || (Array.prototype.sortBy = function(e, t) {
2101
+ return [...this].sort((o, i) => {
2102
+ const n = e(o), u = e(i);
2103
+ return n < u ? t === "DESC" ? 1 : -1 : n > u ? t === "DESC" ? -1 : 1 : 0;
2104
+ });
2105
+ });
2106
+ Array.prototype.maxBy || (Array.prototype.maxBy = function(e) {
2107
+ return Math.max(...this.map(e));
2108
+ });
2109
+ Array.prototype.findOrThrow || (Array.prototype.findOrThrow = function(e) {
2110
+ const t = this.find(e);
2111
+ if (typeof t > "u") throw new Error("No items satisfy the provided condition.");
2112
+ return t;
2113
+ });
2114
+ Array.prototype.toRecord || (Array.prototype.toRecord = function(e) {
2115
+ return this.reduce(
2116
+ (t, r) => {
2117
+ const o = e(r);
2118
+ if (!o) return t;
2119
+ const [i, n] = o;
2120
+ return t[i] = n, t;
2121
+ },
2122
+ {}
2123
+ );
2124
+ });
2125
+ Array.prototype.groupBy || (Array.prototype.groupBy = function(e, t = !1) {
2126
+ const r = this.reduce((o, i, n) => {
2127
+ var l;
2128
+ const u = e(i, n);
2129
+ return t && typeof u != "number" && !u || (o.has(u) === !1 && o.set(u, []), (l = o.get(u)) == null || l.push(i)), o;
2130
+ }, /* @__PURE__ */ new Map());
2131
+ return Array.from(r, ([o, i]) => ({ key: o, values: i }));
2132
+ });
2133
+ function Me(e) {
2134
+ let t;
2135
+ return Object.defineProperty({
2136
+ clear() {
2137
+ t = void 0;
2138
+ }
2139
+ }, "value", {
2140
+ get: () => (t || (t = e()), t)
2141
+ });
2142
+ }
2143
+ var J;
2144
+ ((e) => {
2145
+ function t(r, o = 300) {
2146
+ let i = !1, n;
2147
+ return (...u) => {
2148
+ if (i) {
2149
+ n = u;
2150
+ return;
2151
+ }
2152
+ r(...u), i = !0, setTimeout(() => {
2153
+ i = !1, n && r(...n);
2154
+ }, o);
2103
2155
  };
2104
- }, [e, t]), [t, r, l];
2156
+ }
2157
+ e.throttle = t;
2158
+ })(J || (J = {}));
2159
+ const De = J;
2160
+ function Ue(e) {
2161
+ const { node: t = null, event: r = "click", hideOnScroll: o = !1, hideOnResize: i = !1, hideOnEscape: n = !0 } = e ?? {}, [u, l] = fe(!1), d = Fe(null);
2162
+ return de(() => {
2163
+ function b(c) {
2164
+ const f = t ?? d.current;
2165
+ (f == null ? void 0 : f.contains(c.target)) === !1 && l(!1);
2166
+ }
2167
+ function s() {
2168
+ l(!1);
2169
+ }
2170
+ function h() {
2171
+ l(!1);
2172
+ }
2173
+ function g(c) {
2174
+ c.key === "Escape" && l(!1);
2175
+ }
2176
+ const v = new AbortController();
2177
+ return u && (window.addEventListener(r, b, v), n && window.addEventListener("keydown", g, v), i && window.addEventListener("resize", s, v), o && window.addEventListener("scroll", h, v)), () => {
2178
+ v.abort();
2179
+ };
2180
+ }, [t, u]), [u, l, d];
2105
2181
  }
2106
- function Ie() {
2107
- return Q(() => {
2182
+ function Ge() {
2183
+ return ee(() => {
2108
2184
  const e = "crono-box";
2109
2185
  let t = document.getElementById(e);
2110
2186
  return t || (t = document.createElement("div"), t.id = e, document.body.appendChild(t)), t;
2111
2187
  }, []);
2112
2188
  }
2113
- var J;
2189
+ function We(e) {
2190
+ return /* @__PURE__ */ x(M, { ...e, children: /* @__PURE__ */ x("path", { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" }) });
2191
+ }
2192
+ function Ke(e) {
2193
+ return /* @__PURE__ */ x(M, { viewBox: "0 0 16 16", width: "18", ...e, children: /* @__PURE__ */ x(
2194
+ "path",
2195
+ {
2196
+ strokeWidth: 4,
2197
+ d: "M7.936 12.128a.936.936 0 1 1 0 1.872.936.936 0 0 1 0-1.872ZM7.936 7.052a.936.936 0 1 1 0 1.873.936.936 0 0 1 0-1.873ZM7.936 1.977a.936.936 0 1 1 0 1.872.936.936 0 0 1 0-1.872Z"
2198
+ }
2199
+ ) });
2200
+ }
2201
+ function qe(e) {
2202
+ return /* @__PURE__ */ x(M, { viewBox: "0 0 1024 1024", ...e, children: /* @__PURE__ */ x("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" }) });
2203
+ }
2204
+ function Xe(e) {
2205
+ return /* @__PURE__ */ Ne(M, { viewBox: "0 0 490.6 490.6", ...e, children: [
2206
+ /* @__PURE__ */ x(
2207
+ "path",
2208
+ {
2209
+ d: "M326.8 187.25c14.8 0 26.8-12 26.8-26.8v-117c0-14.8-12-26.8-26.8-26.8h-163c-14.8 0-26.8 12-26.8 26.8v117c0 14.8 12 26.8 26.8 26.8h71.6v22.4h-22.9c-5.5 0-9.9 4.4-9.9 9.9s4.4 9.9 9.9 9.9h65.6c5.5 0 9.9-4.4 9.9-9.9s-4.4-9.9-9.9-9.9h-22.9v-22.4h71.6zm-163-19.8c-3.9 0-7-3.1-7-7v-117c0-3.9 3.1-7 7-7h162.9c3.9 0 7 3.1 7 7v117c0 3.9-3.1 7-7 7H163.8zM189.8 261.15h-163c-14.8 0-26.8 12-26.8 26.8v117c0 14.8 12 26.8 26.8 26.8h71.6v22.4H75.5c-5.5 0-9.9 4.4-9.9 9.9s4.4 9.9 9.9 9.9h65.6c5.5 0 9.9-4.4 9.9-9.9s-4.4-9.9-9.9-9.9h-22.9v-22.4h71.6c14.8 0 26.8-12 26.8-26.8v-117c0-14.7-12.1-26.8-26.8-26.8zm7 143.9c0 3.9-3.1 7-7 7h-163c-3.9 0-7-3.1-7-7v-117c0-3.9 3.1-7 7-7h162.9c3.9 0 7 3.1 7 7v117h.1zM463.8 261.15h-163c-14.8 0-26.8 12-26.8 26.8v117c0 14.8 12 26.8 26.8 26.8h71.6v22.4h-22.9c-5.5 0-9.9 4.4-9.9 9.9s4.4 9.9 9.9 9.9h65.6c5.5 0 9.9-4.4 9.9-9.9s-4.4-9.9-9.9-9.9h-22.9v-22.4h71.6c14.8 0 26.8-12 26.8-26.8v-117c0-14.7-12.1-26.8-26.8-26.8zm7 143.9c0 3.9-3.1 7-7 7h-163c-3.9 0-7-3.1-7-7v-117c0-3.9 3.1-7 7-7h162.9c3.9 0 7 3.1 7 7v117h.1z",
2210
+ fill: "#2c2f33"
2211
+ }
2212
+ ),
2213
+ /* @__PURE__ */ x(
2214
+ "path",
2215
+ {
2216
+ d: "M27.7 86.25v133.3c0 5.5 4.4 9.9 9.9 9.9s9.9-4.4 9.9-9.9V96.15h53.4c5.5 0 9.9-4.4 9.9-9.9s-4.4-9.9-9.9-9.9H37.6c-5.4 0-9.9 4.5-9.9 9.9zM453 229.55c5.5 0 9.9-4.4 9.9-9.9V86.25c0-5.5-4.4-9.9-9.9-9.9h-63.3c-5.5 0-9.9 4.4-9.9 9.9s4.4 9.9 9.9 9.9h53.4v123.4c0 5.5 4.4 10 9.9 10z",
2217
+ fill: "#3c92ca"
2218
+ }
2219
+ )
2220
+ ] });
2221
+ }
2222
+ var Q;
2114
2223
  ((e) => {
2115
- function t(l) {
2116
- const s = Array.from(l.elements).reduce(
2117
- (n, d) => {
2118
- const a = d.name;
2119
- return a && (n[a] || (n[a] = []), n[a].push(d)), n;
2224
+ function t(o) {
2225
+ const i = Array.from(o.elements).reduce(
2226
+ (n, u) => {
2227
+ const l = u.name;
2228
+ return l && (n[l] || (n[l] = []), n[l].push(u)), n;
2120
2229
  },
2121
2230
  {}
2122
2231
  );
2123
- return Object.entries(s).reduce((n, [d, a]) => {
2124
- if (a.length === 1) {
2125
- const c = a[0];
2126
- r(n, d, c.type === "checkbox" || c.type === "radio" ? c.checked : c.value);
2232
+ return Object.entries(i).reduce((n, [u, l]) => {
2233
+ if (l.length === 1) {
2234
+ const d = l[0];
2235
+ r(n, u, d.type === "checkbox" || d.type === "radio" ? d.checked : d.value);
2127
2236
  } else {
2128
- const c = a.reduce((y, o) => (o.type === "checkbox" || o.type === "radio" ? o.checked && y.push(o.value) : y.push(o.value), y), []);
2129
- r(n, d, c);
2237
+ const d = l.reduce((b, s) => (s.type === "checkbox" || s.type === "radio" ? s.checked && b.push(s.value) : b.push(s.value), b), []);
2238
+ r(n, u, d);
2130
2239
  }
2131
2240
  return n;
2132
2241
  }, {});
2133
2242
  }
2134
2243
  e.getFormEntries = t;
2135
- function r(l, s, n) {
2136
- if (s.includes(".")) {
2137
- const d = s.split(".");
2138
- let a = l;
2139
- d.forEach((c, y) => {
2140
- if (d.length > y + 1) {
2141
- const o = c.match(/^(.+)\[(\d)\]$/);
2142
- if (o) {
2143
- const [, v, g] = o;
2144
- a[v] = a[v] || [], a[v][g] = a[v][g] || {}, a = a[v][g];
2244
+ function r(o, i, n) {
2245
+ if (i.includes(".")) {
2246
+ const u = i.split(".");
2247
+ let l = o;
2248
+ u.forEach((d, b) => {
2249
+ if (u.length > b + 1) {
2250
+ const s = d.match(/^(.+)\[(\d)\]$/);
2251
+ if (s) {
2252
+ const [, h, g] = s;
2253
+ l[h] = l[h] || [], l[h][g] = l[h][g] || {}, l = l[h][g];
2145
2254
  } else
2146
- a[c] = a[c] || {}, a = a[c];
2255
+ l[d] = l[d] || {}, l = l[d];
2147
2256
  } else
2148
- a[c] = n;
2257
+ l[d] = n;
2149
2258
  });
2150
2259
  } else
2151
- l[s] = n;
2260
+ o[i] = n;
2152
2261
  }
2153
- })(J || (J = {}));
2154
- const Be = J;
2262
+ })(Q || (Q = {}));
2263
+ const Ye = Q;
2155
2264
  export {
2156
- Ce as B,
2157
- Be as F,
2158
- $ as O,
2159
- le as S,
2160
- _e as T,
2161
- N as V,
2162
- Re as a,
2163
- ke as b,
2164
- we as c,
2165
- Ie as d,
2166
- Te as u
2265
+ We as A,
2266
+ Ae as B,
2267
+ Ke as D,
2268
+ De as F,
2269
+ Xe as G,
2270
+ C as O,
2271
+ qe as P,
2272
+ ne as S,
2273
+ ke as T,
2274
+ y as V,
2275
+ He as a,
2276
+ Ue as b,
2277
+ me as c,
2278
+ W as d,
2279
+ Ye as e,
2280
+ Ge as f,
2281
+ Me as m,
2282
+ Le as u
2167
2283
  };