@cronocode/react-box 3.0.4 → 3.0.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,81 +1,84 @@
1
- import { useMemo as Q, useLayoutEffect as fe, useEffect as se, useState as de, useRef as me } from "react";
1
+ import { useMemo as Q, useLayoutEffect as ce, useEffect as le, useState as fe, useRef as me } from "react";
2
2
  function ve(...e) {
3
- return e.reduce((t, a) => a ? typeof a == "string" ? (t.push(a), t) : Array.isArray(a) ? (t.push(...ve(...a)), t) : (Object.entries(a).forEach(([o, c]) => {
4
- c && t.push(o);
3
+ return e.reduce((t, r) => r ? typeof r == "string" ? (t.push(r), t) : Array.isArray(r) ? (t.push(...ve(...r)), t) : (Object.entries(r).forEach(([l, d]) => {
4
+ d && t.push(l);
5
5
  }), t) : t, []);
6
6
  }
7
- var u;
7
+ var n;
8
8
  ((e) => {
9
9
  ((t) => {
10
- function a(c, s) {
11
- return `${c}${s.replace("/", "-")}`;
10
+ function r(d, s) {
11
+ return `${d}${s.replace("/", "-")}`;
12
12
  }
13
- t.fraction = a;
14
- function o(c) {
15
- return [`${c} path`, `${c} circle`, `${c} rect`, `${c} line`];
13
+ t.fraction = r;
14
+ function l(d) {
15
+ return [`${d} path`, `${d} circle`, `${d} rect`, `${d} line`];
16
16
  }
17
- t.svg = o;
17
+ t.svg = l;
18
18
  })(e.ClassName || (e.ClassName = {})), ((t) => {
19
- function a(b) {
19
+ function r(b) {
20
20
  return `${b / 4}rem`;
21
21
  }
22
- t.rem = a;
23
- function o(b) {
22
+ t.rem = r;
23
+ function l(b) {
24
24
  return `${b}px`;
25
25
  }
26
- t.px = o;
27
- function c(b, n) {
28
- const [m, d] = n.split("/");
29
- return `${+m / +d * 100}%`;
26
+ t.px = l;
27
+ function d(b, i) {
28
+ const [m, c] = i.split("/");
29
+ return `${+m / +c * 100}%`;
30
30
  }
31
- t.fraction = c;
32
- function s(b, n) {
33
- switch (n) {
31
+ t.fraction = d;
32
+ function s(b, i) {
33
+ switch (i) {
34
34
  case "fit":
35
35
  return "100%";
36
36
  case "fit-screen":
37
37
  return b.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
38
38
  default:
39
- return n;
39
+ return i;
40
40
  }
41
41
  }
42
42
  t.widthHeight = s;
43
- function l(b) {
44
- return (n, m) => `var(--${b}${m});`;
43
+ function f(b) {
44
+ return (i, m) => `var(--${b}${m});`;
45
45
  }
46
- t.variables = l;
47
- function i(b) {
48
- return (n, m) => `var(--${b}${m});`;
46
+ t.variables = f;
47
+ function o(b) {
48
+ return (i, m) => `var(--${b}${m});`;
49
49
  }
50
- t.svgVariables = i;
51
- function f(b, n) {
52
- return `repeat(${n},minmax(0,1fr))`;
50
+ t.svgVariables = o;
51
+ function u(b, i) {
52
+ return `repeat(${i},minmax(0,1fr))`;
53
53
  }
54
- t.gridColumns = f;
55
- function y(b, n) {
56
- return n === "full-row" ? "1/-1" : `span ${n}/span ${n}`;
54
+ t.gridColumns = u;
55
+ function g(b, i) {
56
+ return i === "full-row" ? "1/-1" : `span ${i}/span ${i}`;
57
57
  }
58
- t.gridColumn = y;
59
- function r(b, n) {
60
- return `${n}ms`;
58
+ t.gridColumn = g;
59
+ function a(b, i) {
60
+ return `${i}ms`;
61
61
  }
62
- t.ms = r;
63
- function v(b, n) {
64
- return `${n}deg`;
62
+ t.ms = a;
63
+ function v(b, i) {
64
+ return `${i}deg`;
65
65
  }
66
66
  t.rotate = v;
67
- function h(b, n) {
68
- return n === "xAxis" ? "-1 1" : "1 -1";
67
+ function y(b, i) {
68
+ return i === "xAxis" ? "-1 1" : "1 -1";
69
69
  }
70
- t.flip = h;
70
+ t.flip = y;
71
71
  })(e.Value || (e.Value = {}));
72
- })(u || (u = {}));
73
- var q;
72
+ })(n || (n = {}));
73
+ var W;
74
74
  ((e) => {
75
75
  e.colors = {
76
- inherit: "inherit",
77
- current: "currentColor",
76
+ currentColor: "currentColor",
78
77
  transparent: "transparent",
78
+ green: "green",
79
+ red: "red",
80
+ blue: "blue",
81
+ gray: "gray",
79
82
  black: "#000",
80
83
  white: "#fff",
81
84
  "slate-50": "#f8fafc",
@@ -276,6 +279,7 @@ var q;
276
279
  "violet-800": "#5b21b6",
277
280
  "violet-900": "#4c1d95",
278
281
  "violet-950": "#2e1065",
282
+ vi: "#7949FF",
279
283
  "purple-50": "#faf5ff",
280
284
  "purple-100": "#f3e8ff",
281
285
  "purple-200": "#e9d5ff",
@@ -321,22 +325,28 @@ var q;
321
325
  "rose-900": "#881337",
322
326
  "rose-950": "#4c0519"
323
327
  };
324
- const t = {};
325
- let a = {};
326
- function o(l) {
327
- return l in a ? t[l] = a[l] : l in e.colors && (t[l] = e.colors[l]), `var(--${l})`;
328
+ const t = {
329
+ inherit: "inherit",
330
+ none: "none",
331
+ "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>")}")`,
332
+ "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>`)}")`,
333
+ "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>")}")`
334
+ }, r = {};
335
+ let l = {};
336
+ function d(o) {
337
+ return o in l ? r[o] = l[o] : o in t ? r[o] = t[o] : o in e.colors ? r[o] = e.colors[o] : r[o] = o, `var(--${o})`;
328
338
  }
329
- e.getVariableValue = o;
330
- function c() {
331
- return Object.entries(t).map(([l, i]) => `--${l}: ${i};`).join("");
339
+ e.getVariableValue = d;
340
+ function s() {
341
+ return Object.entries(r).map(([o, u]) => `--${o}: ${u};`).join("");
332
342
  }
333
- e.generateVariables = c;
334
- function s(l) {
335
- a = l;
343
+ e.generateVariables = s;
344
+ function f(o) {
345
+ l = o;
336
346
  }
337
- e.setUserVariables = s;
338
- })(q || (q = {}));
339
- const E = q, C = {
347
+ e.setUserVariables = f;
348
+ })(W || (W = {}));
349
+ const z = W, E = {
340
350
  /** The appearance CSS property is used to display UI elements with platform-specific styling, based on the operating system's theme. */
341
351
  appearance: [
342
352
  {
@@ -348,7 +358,7 @@ const E = q, C = {
348
358
  {
349
359
  values: 0,
350
360
  styleName: "border-width",
351
- valueFormat: u.Value.px
361
+ valueFormat: n.Value.px
352
362
  }
353
363
  ],
354
364
  /** The border-width shorthand CSS property sets the width of an element's left and right border. */
@@ -356,7 +366,7 @@ const E = q, C = {
356
366
  {
357
367
  values: 0,
358
368
  styleName: "border-inline-width",
359
- valueFormat: u.Value.px
369
+ valueFormat: n.Value.px
360
370
  }
361
371
  ],
362
372
  /** The border-width shorthand CSS property sets the width of an element's top and bottom border. */
@@ -364,7 +374,7 @@ const E = q, C = {
364
374
  {
365
375
  values: 0,
366
376
  styleName: "border-block-width",
367
- valueFormat: u.Value.px
377
+ valueFormat: n.Value.px
368
378
  }
369
379
  ],
370
380
  /** The border-top-width CSS property sets the width of the top border of an element. */
@@ -372,7 +382,7 @@ const E = q, C = {
372
382
  {
373
383
  values: 0,
374
384
  styleName: "border-top-width",
375
- valueFormat: u.Value.px
385
+ valueFormat: n.Value.px
376
386
  }
377
387
  ],
378
388
  /** The border-right-width CSS property sets the width of the right border of an element. */
@@ -380,7 +390,7 @@ const E = q, C = {
380
390
  {
381
391
  values: 0,
382
392
  styleName: "border-right-width",
383
- valueFormat: u.Value.px
393
+ valueFormat: n.Value.px
384
394
  }
385
395
  ],
386
396
  /** The border-bottom-width CSS property sets the width of the bottom border of an element. */
@@ -388,7 +398,7 @@ const E = q, C = {
388
398
  {
389
399
  values: 0,
390
400
  styleName: "border-bottom-width",
391
- valueFormat: u.Value.px
401
+ valueFormat: n.Value.px
392
402
  }
393
403
  ],
394
404
  /** The border-left-width CSS property sets the width of the left border of an element. */
@@ -396,7 +406,7 @@ const E = q, C = {
396
406
  {
397
407
  values: 0,
398
408
  styleName: "border-left-width",
399
- valueFormat: u.Value.px
409
+ valueFormat: n.Value.px
400
410
  }
401
411
  ],
402
412
  /** The border-style shorthand CSS property sets the line style for all four sides of an element's border. */
@@ -411,7 +421,7 @@ const E = q, C = {
411
421
  {
412
422
  styleName: "border-radius",
413
423
  values: 0,
414
- valueFormat: u.Value.rem
424
+ valueFormat: n.Value.rem
415
425
  }
416
426
  ],
417
427
  /** 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. */
@@ -419,7 +429,7 @@ const E = q, C = {
419
429
  {
420
430
  values: 0,
421
431
  styleName: ["border-top-left-radius", "border-top-right-radius"],
422
- valueFormat: u.Value.rem
432
+ valueFormat: n.Value.rem
423
433
  }
424
434
  ],
425
435
  /** 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. */
@@ -427,7 +437,7 @@ const E = q, C = {
427
437
  {
428
438
  values: 0,
429
439
  styleName: ["border-top-right-radius", "border-bottom-right-radius"],
430
- valueFormat: u.Value.rem
440
+ valueFormat: n.Value.rem
431
441
  }
432
442
  ],
433
443
  /** 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. */
@@ -435,7 +445,7 @@ const E = q, C = {
435
445
  {
436
446
  values: 0,
437
447
  styleName: ["border-bottom-left-radius", "border-bottom-right-radius"],
438
- valueFormat: u.Value.rem
448
+ valueFormat: n.Value.rem
439
449
  }
440
450
  ],
441
451
  /** 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. */
@@ -443,7 +453,7 @@ const E = q, C = {
443
453
  {
444
454
  values: 0,
445
455
  styleName: ["border-top-left-radius", "border-bottom-left-radius"],
446
- valueFormat: u.Value.rem
456
+ valueFormat: n.Value.rem
447
457
  }
448
458
  ],
449
459
  /** 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. */
@@ -451,7 +461,7 @@ const E = q, C = {
451
461
  {
452
462
  values: 0,
453
463
  styleName: "border-top-left-radius",
454
- valueFormat: u.Value.rem
464
+ valueFormat: n.Value.rem
455
465
  }
456
466
  ],
457
467
  /** 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. */
@@ -459,7 +469,7 @@ const E = q, C = {
459
469
  {
460
470
  values: 0,
461
471
  styleName: "border-top-right-radius",
462
- valueFormat: u.Value.rem
472
+ valueFormat: n.Value.rem
463
473
  }
464
474
  ],
465
475
  /** 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. */
@@ -467,7 +477,7 @@ const E = q, C = {
467
477
  {
468
478
  values: 0,
469
479
  styleName: "border-bottom-right-radius",
470
- valueFormat: u.Value.rem
480
+ valueFormat: n.Value.rem
471
481
  }
472
482
  ],
473
483
  /** 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. */
@@ -475,7 +485,7 @@ const E = q, C = {
475
485
  {
476
486
  values: 0,
477
487
  styleName: "border-bottom-left-radius",
478
- valueFormat: u.Value.rem
488
+ valueFormat: n.Value.rem
479
489
  }
480
490
  ],
481
491
  /** 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. */
@@ -488,35 +498,35 @@ const E = q, C = {
488
498
  top: [
489
499
  {
490
500
  values: 0,
491
- valueFormat: u.Value.rem
501
+ valueFormat: n.Value.rem
492
502
  }
493
503
  ],
494
504
  /** The right CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
495
505
  right: [
496
506
  {
497
507
  values: 0,
498
- valueFormat: u.Value.rem
508
+ valueFormat: n.Value.rem
499
509
  }
500
510
  ],
501
511
  /** The bottom CSS property participates in setting the vertical position of a positioned element. This inset property has no effect on non-positioned elements. */
502
512
  bottom: [
503
513
  {
504
514
  values: 0,
505
- valueFormat: u.Value.rem
515
+ valueFormat: n.Value.rem
506
516
  }
507
517
  ],
508
518
  /** The left CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
509
519
  left: [
510
520
  {
511
521
  values: 0,
512
- valueFormat: u.Value.rem
522
+ valueFormat: n.Value.rem
513
523
  }
514
524
  ],
515
525
  /** 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. */
516
526
  inset: [
517
527
  {
518
528
  values: 0,
519
- valueFormat: u.Value.rem
529
+ valueFormat: n.Value.rem
520
530
  }
521
531
  ],
522
532
  /** The `box-sizing` CSS property sets how the total width and height of an element is calculated. */
@@ -689,7 +699,7 @@ const E = q, C = {
689
699
  {
690
700
  styleName: "font-size",
691
701
  values: 0,
692
- valueFormat: u.Value.px
702
+ valueFormat: n.Value.px
693
703
  },
694
704
  {
695
705
  styleName: "font-size",
@@ -714,7 +724,7 @@ const E = q, C = {
714
724
  gap: [
715
725
  {
716
726
  values: 0,
717
- valueFormat: u.Value.rem
727
+ valueFormat: n.Value.rem
718
728
  }
719
729
  ],
720
730
  /** The row-gap CSS property sets the size of the gap (gutter) between an element's rows. */
@@ -722,7 +732,7 @@ const E = q, C = {
722
732
  {
723
733
  styleName: "row-gap",
724
734
  values: 0,
725
- valueFormat: u.Value.rem
735
+ valueFormat: n.Value.rem
726
736
  }
727
737
  ],
728
738
  /** The column-gap CSS property sets the size of the gap (gutter) between an element's columns. */
@@ -730,7 +740,7 @@ const E = q, C = {
730
740
  {
731
741
  styleName: "column-gap",
732
742
  values: 0,
733
- valueFormat: u.Value.rem
743
+ valueFormat: n.Value.rem
734
744
  }
735
745
  ],
736
746
  /** 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. */
@@ -781,8 +791,8 @@ const E = q, C = {
781
791
  "11/12"
782
792
  ],
783
793
  valueFormat: (e) => {
784
- const [t, a] = e.split("/");
785
- return `${+t / +a * 100}%`;
794
+ const [t, r] = e.split("/");
795
+ return `${+t / +r * 100}%`;
786
796
  }
787
797
  },
788
798
  {
@@ -833,8 +843,8 @@ const E = q, C = {
833
843
  "11/12"
834
844
  ],
835
845
  valueFormat: (e) => {
836
- const [t, a] = e.split("/");
837
- return `${+t / +a * 100}%`;
846
+ const [t, r] = e.split("/");
847
+ return `${+t / +r * 100}%`;
838
848
  }
839
849
  },
840
850
  {
@@ -886,8 +896,8 @@ const E = q, C = {
886
896
  "11/12"
887
897
  ],
888
898
  valueFormat: (e) => {
889
- const [t, a] = e.split("/");
890
- return `${+t / +a * 100}%`;
899
+ const [t, r] = e.split("/");
900
+ return `${+t / +r * 100}%`;
891
901
  }
892
902
  },
893
903
  {
@@ -936,8 +946,8 @@ const E = q, C = {
936
946
  "11/12"
937
947
  ],
938
948
  valueFormat: (e) => {
939
- const [t, a] = e.split("/");
940
- return `${+t / +a * 100}%`;
949
+ const [t, r] = e.split("/");
950
+ return `${+t / +r * 100}%`;
941
951
  }
942
952
  },
943
953
  {
@@ -988,8 +998,8 @@ const E = q, C = {
988
998
  "11/12"
989
999
  ],
990
1000
  valueFormat: (e) => {
991
- const [t, a] = e.split("/");
992
- return `${+t / +a * 100}%`;
1001
+ const [t, r] = e.split("/");
1002
+ return `${+t / +r * 100}%`;
993
1003
  }
994
1004
  },
995
1005
  {
@@ -1041,8 +1051,8 @@ const E = q, C = {
1041
1051
  "11/12"
1042
1052
  ],
1043
1053
  valueFormat: (e) => {
1044
- const [t, a] = e.split("/");
1045
- return `${+t / +a * 100}%`;
1054
+ const [t, r] = e.split("/");
1055
+ return `${+t / +r * 100}%`;
1046
1056
  }
1047
1057
  },
1048
1058
  {
@@ -1055,7 +1065,7 @@ const E = q, C = {
1055
1065
  {
1056
1066
  styleName: "letter-spacing",
1057
1067
  values: 0,
1058
- valueFormat: u.Value.px
1068
+ valueFormat: n.Value.px
1059
1069
  }
1060
1070
  ],
1061
1071
  /** 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. */
@@ -1063,7 +1073,7 @@ const E = q, C = {
1063
1073
  {
1064
1074
  styleName: "line-height",
1065
1075
  values: 0,
1066
- valueFormat: u.Value.px
1076
+ valueFormat: n.Value.px
1067
1077
  },
1068
1078
  {
1069
1079
  styleName: "line-height",
@@ -1083,7 +1093,7 @@ const E = q, C = {
1083
1093
  {
1084
1094
  values: 0,
1085
1095
  styleName: "margin",
1086
- valueFormat: u.Value.rem
1096
+ valueFormat: n.Value.rem
1087
1097
  },
1088
1098
  {
1089
1099
  values: ["auto"],
@@ -1095,7 +1105,7 @@ const E = q, C = {
1095
1105
  {
1096
1106
  values: 0,
1097
1107
  styleName: "margin-inline",
1098
- valueFormat: u.Value.rem
1108
+ valueFormat: n.Value.rem
1099
1109
  },
1100
1110
  {
1101
1111
  values: ["auto"],
@@ -1107,7 +1117,7 @@ const E = q, C = {
1107
1117
  {
1108
1118
  values: 0,
1109
1119
  styleName: "margin-block",
1110
- valueFormat: u.Value.rem
1120
+ valueFormat: n.Value.rem
1111
1121
  },
1112
1122
  {
1113
1123
  values: ["auto"],
@@ -1119,7 +1129,7 @@ const E = q, C = {
1119
1129
  {
1120
1130
  values: 0,
1121
1131
  styleName: "margin-top",
1122
- valueFormat: u.Value.rem
1132
+ valueFormat: n.Value.rem
1123
1133
  },
1124
1134
  {
1125
1135
  values: ["auto"],
@@ -1131,7 +1141,7 @@ const E = q, C = {
1131
1141
  {
1132
1142
  values: 0,
1133
1143
  styleName: "margin-right",
1134
- valueFormat: u.Value.rem
1144
+ valueFormat: n.Value.rem
1135
1145
  },
1136
1146
  {
1137
1147
  values: ["auto"],
@@ -1143,7 +1153,7 @@ const E = q, C = {
1143
1153
  {
1144
1154
  values: 0,
1145
1155
  styleName: "margin-bottom",
1146
- valueFormat: u.Value.rem
1156
+ valueFormat: n.Value.rem
1147
1157
  },
1148
1158
  {
1149
1159
  values: ["auto"],
@@ -1155,7 +1165,7 @@ const E = q, C = {
1155
1165
  {
1156
1166
  values: 0,
1157
1167
  styleName: "margin-left",
1158
- valueFormat: u.Value.rem
1168
+ valueFormat: n.Value.rem
1159
1169
  },
1160
1170
  {
1161
1171
  values: ["auto"],
@@ -1167,7 +1177,7 @@ const E = q, C = {
1167
1177
  {
1168
1178
  values: 0,
1169
1179
  styleName: "padding",
1170
- valueFormat: u.Value.rem
1180
+ valueFormat: n.Value.rem
1171
1181
  }
1172
1182
  ],
1173
1183
  /** 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. */
@@ -1175,7 +1185,7 @@ const E = q, C = {
1175
1185
  {
1176
1186
  values: 0,
1177
1187
  styleName: "padding-inline",
1178
- valueFormat: u.Value.rem
1188
+ valueFormat: n.Value.rem
1179
1189
  }
1180
1190
  ],
1181
1191
  /** 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. */
@@ -1183,7 +1193,7 @@ const E = q, C = {
1183
1193
  {
1184
1194
  values: 0,
1185
1195
  styleName: "padding-block",
1186
- valueFormat: u.Value.rem
1196
+ valueFormat: n.Value.rem
1187
1197
  }
1188
1198
  ],
1189
1199
  /** The padding-top CSS property sets the height of the padding area on the top of an element. */
@@ -1191,7 +1201,7 @@ const E = q, C = {
1191
1201
  {
1192
1202
  values: 0,
1193
1203
  styleName: "padding-top",
1194
- valueFormat: u.Value.rem
1204
+ valueFormat: n.Value.rem
1195
1205
  }
1196
1206
  ],
1197
1207
  /** The padding-right CSS property sets the width of the padding area on the right of an element. */
@@ -1199,7 +1209,7 @@ const E = q, C = {
1199
1209
  {
1200
1210
  values: 0,
1201
1211
  styleName: "padding-right",
1202
- valueFormat: u.Value.rem
1212
+ valueFormat: n.Value.rem
1203
1213
  }
1204
1214
  ],
1205
1215
  /** The padding-bottom CSS property sets the height of the padding area on the bottom of an element. */
@@ -1207,7 +1217,7 @@ const E = q, C = {
1207
1217
  {
1208
1218
  values: 0,
1209
1219
  styleName: "padding-bottom",
1210
- valueFormat: u.Value.rem
1220
+ valueFormat: n.Value.rem
1211
1221
  }
1212
1222
  ],
1213
1223
  /** The padding-left CSS property sets the width of the padding area to the left of an element. */
@@ -1215,7 +1225,7 @@ const E = q, C = {
1215
1225
  {
1216
1226
  values: 0,
1217
1227
  styleName: "padding-left",
1218
- valueFormat: u.Value.rem
1228
+ valueFormat: n.Value.rem
1219
1229
  }
1220
1230
  ],
1221
1231
  /** 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. */
@@ -1236,7 +1246,7 @@ const E = q, C = {
1236
1246
  {
1237
1247
  styleName: "outline-width",
1238
1248
  values: 0,
1239
- valueFormat: u.Value.px
1249
+ valueFormat: n.Value.px
1240
1250
  }
1241
1251
  ],
1242
1252
  /** 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. */
@@ -1251,7 +1261,7 @@ const E = q, C = {
1251
1261
  {
1252
1262
  styleName: "outline-offset",
1253
1263
  values: 0,
1254
- valueFormat: u.Value.px
1264
+ valueFormat: n.Value.px
1255
1265
  }
1256
1266
  ],
1257
1267
  /** 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. */
@@ -1459,32 +1469,39 @@ const E = q, C = {
1459
1469
  ],
1460
1470
  color: [
1461
1471
  {
1462
- values: Object.keys(E.colors),
1472
+ values: Object.keys(z.colors),
1463
1473
  valueFormat: (e, t) => t(e)
1464
1474
  }
1465
1475
  ],
1466
1476
  bgColor: [
1467
1477
  {
1468
- values: Object.keys(E.colors),
1478
+ values: Object.keys(z.colors),
1469
1479
  valueFormat: (e, t) => t(e),
1470
1480
  styleName: "background-color"
1471
1481
  }
1472
1482
  ],
1473
1483
  borderColor: [
1474
1484
  {
1475
- values: Object.keys(E.colors),
1485
+ values: Object.keys(z.colors),
1476
1486
  valueFormat: (e, t) => t(e),
1477
1487
  styleName: "border-color"
1478
1488
  }
1479
1489
  ],
1480
1490
  outlineColor: [
1481
1491
  {
1482
- values: Object.keys(E.colors),
1492
+ values: Object.keys(z.colors),
1483
1493
  valueFormat: (e, t) => t(e),
1484
1494
  styleName: "outline-color"
1485
1495
  }
1496
+ ],
1497
+ bgImage: [
1498
+ {
1499
+ values: ["none", "bg-img-checked", "bg-img-indeterminate", "bg-img-radio"],
1500
+ valueFormat: (e, t) => t(e),
1501
+ styleName: "background-image"
1502
+ }
1486
1503
  ]
1487
- }, oe = {
1504
+ }, se = {
1488
1505
  hover: ":hover",
1489
1506
  focus: ":focus-within",
1490
1507
  hasFocus: ":has(:focus)",
@@ -1501,15 +1518,16 @@ const E = q, C = {
1501
1518
  indeterminate: ":indeterminate",
1502
1519
  checked: ":checked",
1503
1520
  required: ":required",
1504
- disabled: "[disabled]"
1505
- }, Z = { ...oe, ...L }, ie = Object.entries(Z).reduce(
1506
- (e, [t], a) => (e[t] = Math.pow(2, a), e),
1521
+ disabled: "[disabled]",
1522
+ selected: '[aria-selected="true"]'
1523
+ }, Z = { ...se, ...L }, ie = Object.entries(Z).reduce(
1524
+ (e, [t], r) => (e[t] = Math.pow(2, r), e),
1507
1525
  {}
1508
1526
  ), D = Object.entries(Z).reduce(
1509
1527
  (e, [t]) => {
1510
- const a = ie[t];
1511
- return Object.entries(e).forEach(([o, c]) => {
1512
- e[+o + a] = [...c, t];
1528
+ const r = ie[t];
1529
+ return Object.entries(e).forEach(([l, d]) => {
1530
+ e[+l + r] = [...d, t];
1513
1531
  }), e;
1514
1532
  },
1515
1533
  { 0: [] }
@@ -1518,41 +1536,41 @@ const E = q, C = {
1518
1536
  focusGroup: "focus",
1519
1537
  activeGroup: "active",
1520
1538
  disabledGroup: "disabled"
1521
- }, H = {
1539
+ }, k = {
1522
1540
  sm: 640,
1523
1541
  md: 768,
1524
1542
  lg: 1024,
1525
1543
  xl: 1280,
1526
1544
  xxl: 1536
1527
1545
  };
1528
- var W;
1546
+ var q;
1529
1547
  ((e) => {
1530
- function t(s, l, i) {
1531
- const f = { ...s }, y = f.props || {};
1532
- return l.forEach((r) => {
1533
- r in f && (y[r] = f[r], delete f[r]);
1534
- }), i && Object.entries(i).forEach(([r, v]) => {
1535
- y[r] = v;
1536
- }), f.props = y, f;
1548
+ function t(s, f, o) {
1549
+ const u = { ...s }, g = u.props || {};
1550
+ return f.forEach((a) => {
1551
+ a in u && (g[a] = u[a], delete u[a]);
1552
+ }), o && Object.entries(o).forEach(([a, v]) => {
1553
+ g[a] = v;
1554
+ }), u.props = g, u;
1537
1555
  }
1538
1556
  e.buildProps = t;
1539
- function a(s) {
1557
+ function r(s) {
1540
1558
  return !!s && typeof s == "object";
1541
1559
  }
1542
- e.isObject = a;
1543
- function o(...s) {
1544
- return s.reduce((l, i) => (Object.keys(i).forEach((f) => {
1545
- const y = l[f], r = i[f];
1546
- f in L && typeof r == "boolean" || (f in L && Array.isArray(r) ? l[f] = o(y, r[1] ?? {}) : Array.isArray(y) && Array.isArray(r) ? l[f] = y.concat(...r) : a(y) && a(r) ? l[f] = o(y, r) : l[f] = r);
1547
- }), l), {});
1560
+ e.isObject = r;
1561
+ function l(...s) {
1562
+ return s.reduce((f, o) => (Object.keys(o ?? {}).forEach((u) => {
1563
+ const g = f[u], a = o[u];
1564
+ u in L && typeof a == "boolean" || (u in L && Array.isArray(a) ? f[u] = l(g, a[1] ?? {}) : Array.isArray(g) && Array.isArray(a) ? f[u] = g.concat(...a) : r(g) && r(a) ? f[u] = l(g, a) : f[u] = a);
1565
+ }), f), {});
1548
1566
  }
1549
- e.mergeDeep = o;
1550
- function c(s, l) {
1551
- return s in l;
1567
+ e.mergeDeep = l;
1568
+ function d(s, f) {
1569
+ return s in f;
1552
1570
  }
1553
- e.isKeyOf = c;
1554
- })(W || (W = {}));
1555
- const $ = W;
1571
+ e.isKeyOf = d;
1572
+ })(q || (q = {}));
1573
+ const $ = q;
1556
1574
  class be {
1557
1575
  constructor() {
1558
1576
  this._index = 0, this._cache = {};
@@ -1561,153 +1579,150 @@ class be {
1561
1579
  return this._cache[t] || (this._cache[t] = this.getByIndex(this._index++)), this._cache[t];
1562
1580
  }
1563
1581
  getByIndex(t) {
1564
- const { first: a, next: o } = ye, c = t - a.length;
1565
- if (c < 0)
1566
- return a[t];
1567
- const s = Math.floor(c / o.length), l = c - s * o.length;
1568
- return this.getByIndex(s) + o[l];
1582
+ const { first: r, next: l } = ge, d = t - r.length;
1583
+ if (d < 0)
1584
+ return r[t];
1585
+ const s = Math.floor(d / l.length), f = d - s * l.length;
1586
+ return this.getByIndex(s) + l[f];
1569
1587
  }
1570
1588
  }
1571
- const ye = {
1589
+ const ge = {
1572
1590
  first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
1573
1591
  next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
1574
1592
  };
1575
- var G;
1593
+ var I;
1576
1594
  ((e) => {
1577
1595
  e.components = {};
1578
- })(G || (G = {}));
1579
- function he(e) {
1580
- const { clean: t, theme: a, component: o } = e;
1596
+ })(I || (I = {}));
1597
+ function ye(e) {
1598
+ const { clean: t, theme: r, component: l } = e;
1581
1599
  return Q(() => {
1582
- var l;
1600
+ var f;
1583
1601
  if (t) return;
1584
- const c = o == null ? void 0 : o.split(".");
1585
- if (!c) return;
1586
- const s = c.reduce((i, f, y) => {
1587
- var r, v;
1588
- return y === 0 ? (r = G.components) == null ? void 0 : r[f] : (v = i == null ? void 0 : i.children) == null ? void 0 : v[f];
1602
+ const d = l == null ? void 0 : l.split(".");
1603
+ if (!d) return;
1604
+ const s = d.reduce((o, u, g) => {
1605
+ var a, v;
1606
+ return g === 0 ? (a = I.components) == null ? void 0 : a[u] : (v = o == null ? void 0 : o.children) == null ? void 0 : v[u];
1589
1607
  }, void 0);
1590
1608
  if (s)
1591
- return a ? $.mergeDeep(s.styles, ((l = s.themes) == null ? void 0 : l[a]) ?? {}) : s.styles;
1592
- }, [o, t, a]);
1609
+ return r ? $.mergeDeep(s.styles, ((f = s.themes) == null ? void 0 : f[r]) ?? {}) : s.styles;
1610
+ }, [l, t, r]);
1593
1611
  }
1594
- const ge = new be(), pe = typeof window < "u" && typeof window.document < "u";
1595
- var le;
1596
- const ne = typeof process == "object" && ((le = process.env) == null ? void 0 : le.NODE_ENV) === "test", xe = pe && !ne ? fe : se, ue = "_b", S = "_s";
1597
- function Ne(e, t) {
1598
- xe(A.flush, [e]);
1599
- const a = he(e);
1612
+ const he = new be(), pe = typeof window < "u" && typeof window.document < "u";
1613
+ var ae;
1614
+ const ne = typeof process == "object" && ((ae = process.env) == null ? void 0 : ae.NODE_ENV) === "test", we = pe && !ne ? ce : le, ue = "_b", A = "_s";
1615
+ function Fe(e, t) {
1616
+ we(S.flush, [e]);
1617
+ const r = ye(e);
1600
1618
  return Q(() => {
1601
- var s;
1602
- const o = [t ? S : ue];
1603
- (s = e.props) == null || s.name;
1604
- const c = a ? $.mergeDeep(a, e) : e;
1605
- return A.addClassNames(c, o, []), o;
1606
- }, [e, t, a]);
1619
+ const l = [t ? A : ue], d = r ? $.mergeDeep(r, e) : e;
1620
+ return S.addClassNames(d, l, []), l;
1621
+ }, [e, t, r]);
1607
1622
  }
1608
- var A;
1623
+ var S;
1609
1624
  ((e) => {
1610
- let t = !0, a = {};
1611
- function o(r, v, h, b, n) {
1612
- Object.entries(r).forEach(([m, d]) => {
1613
- if ($.isKeyOf(m, C))
1614
- l(m, d, v, h, b, n);
1615
- else if ($.isKeyOf(m, oe))
1616
- o(d, v, [...h, m], b, n);
1625
+ let t = !0, r = {};
1626
+ function l(a, v, y, b, i) {
1627
+ Object.entries(a).forEach(([m, c]) => {
1628
+ if ($.isKeyOf(m, E))
1629
+ f(m, c, v, y, b, i);
1630
+ else if ($.isKeyOf(m, se))
1631
+ l(c, v, [...y, m], b, i);
1617
1632
  else if ($.isKeyOf(m, L)) {
1618
- if (Array.isArray(d)) {
1619
- const [x, w] = d;
1620
- o(w, v, [...h, m], b, n);
1633
+ if (Array.isArray(c)) {
1634
+ const [w, x] = c;
1635
+ l(x, v, [...y, m], b, i);
1621
1636
  }
1622
- $.isObject(d) && o(d, v, [...h, m], b, n);
1623
- } else $.isKeyOf(m, H) ? o(d, v, h, m, n) : $.isKeyOf(m, K) && (typeof d == "string" ? v.push(`${K[m]}-${d}`) : Object.entries(d).forEach(([x, w]) => {
1624
- o(w, v, [...h, K[m]], b, x);
1637
+ $.isObject(c) && l(c, v, [...y, m], b, i);
1638
+ } else $.isKeyOf(m, k) ? l(c, v, y, m, i) : $.isKeyOf(m, K) && (typeof c == "string" ? v.push(`${K[m]}-${c}`) : Object.entries(c).forEach(([w, x]) => {
1639
+ l(x, v, [...y, K[m]], b, w);
1625
1640
  }));
1626
1641
  });
1627
1642
  }
1628
- e.addClassNames = o;
1629
- function c() {
1643
+ e.addClassNames = l;
1644
+ function d() {
1630
1645
  if (!t) return;
1631
1646
  console.debug("\x1B[36m%s\x1B[0m", "[react-box]: flush");
1632
- const r = Object.entries(C).reduce((m, [d], x) => (m[d] = x, m), {}), 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;}
1647
+ const a = Object.entries(E).reduce((m, [c], w) => (m[c] = w, m), {}), 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;}
1633
1648
  html{font-size: 16px;font-family: Arial, sans-serif;}
1634
1649
  body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}
1635
1650
  a,ul{all: unset;}
1636
1651
  .${ue}{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;}
1637
- .${S}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}.${S} path,.${S} circle,.${S} rect,.${S} line {transition: all var(--svgTransitionTime);}
1638
- `, h = Object.entries(a);
1639
- h.sort(
1640
- ([m], [d]) => (H[m] ?? 0) - (H[d] ?? 0)
1652
+ .${A}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}.${A} path,.${A} circle,.${A} rect,.${A} line {transition: all var(--svgTransitionTime);}
1653
+ `, y = Object.entries(r);
1654
+ y.sort(
1655
+ ([m], [c]) => (k[m] ?? 0) - (k[c] ?? 0)
1641
1656
  );
1642
- const b = h.reduce(
1643
- (m, [d, x]) => (d !== "normal" && m.push(`@media(min-width: ${H[d]}px){`), Object.entries(x).forEach(([w, k]) => {
1644
- const { __parents: P, ...ce } = k, ee = Object.entries(ce);
1645
- ee.sort(([N], [_]) => r[N] - r[_]), ee.forEach(([N, _]) => {
1646
- _.forEach((V) => {
1647
- var R, I;
1648
- const g = C[N].find((F) => Array.isArray(F.values) ? F.values.includes(V) : typeof V == typeof F.values);
1649
- if (!g) return;
1650
- const z = i(N, V, +w, d), U = D[+w].map((F) => Z[F]).join(""), p = ((R = g.selector) == null ? void 0 : R.call(g, `.${z}`, U)) ?? `.${z}${U}`, B = Array.isArray(g.styleName) ? g.styleName : [g.styleName ?? N], O = ((I = g.valueFormat) == null ? void 0 : I.call(g, V, E.getVariableValue)) ?? V;
1651
- m.push(`${p}{${B.map((F) => `${F}:${O}`).join(";")}}`);
1657
+ const b = y.reduce(
1658
+ (m, [c, w]) => (c !== "normal" && m.push(`@media(min-width: ${k[c]}px){`), Object.entries(w).forEach(([x, U]) => {
1659
+ const { __parents: P, ...de } = U, ee = Object.entries(de);
1660
+ ee.sort(([N], [_]) => a[N] - a[_]), ee.forEach(([N, _]) => {
1661
+ _.forEach((C) => {
1662
+ var B, H;
1663
+ const h = E[N].find((F) => Array.isArray(F.values) ? F.values.includes(C) : typeof C == typeof F.values);
1664
+ if (!h) return;
1665
+ const V = o(N, C, +x, c), G = D[+x].map((F) => Z[F]).join(""), p = ((B = h.selector) == null ? void 0 : B.call(h, `.${V}`, G)) ?? `.${V}${G}`, T = Array.isArray(h.styleName) ? h.styleName : [h.styleName ?? N], O = ((H = h.valueFormat) == null ? void 0 : H.call(h, C, z.getVariableValue)) ?? C;
1666
+ m.push(`${p}{${T.map((F) => `${F}:${O}`).join(";")}}`);
1652
1667
  });
1653
1668
  }), P && Object.entries(P).forEach(([N, _]) => {
1654
- const V = Object.entries(_);
1655
- V.sort(([j], [g]) => r[j] - r[g]), V.forEach(([j, g]) => {
1656
- g.forEach((z) => {
1657
- var te, ae;
1658
- const p = C[j].find((T) => Array.isArray(T.values) ? T.values.includes(z) : typeof z == typeof T.values);
1669
+ const C = Object.entries(_);
1670
+ C.sort(([j], [h]) => a[j] - a[h]), C.forEach(([j, h]) => {
1671
+ h.forEach((V) => {
1672
+ var te, re;
1673
+ const p = E[j].find((R) => Array.isArray(R.values) ? R.values.includes(V) : typeof V == typeof R.values);
1659
1674
  if (!p) return;
1660
- const B = i(j, z, +w, d, N), [O] = D[+w], R = ((te = p.selector) == null ? void 0 : te.call(p, `.${O}-${N}:${O} .${B}`, "")) ?? `.${O}-${N}:${O} .${B}`, I = Array.isArray(p.styleName) ? p.styleName : [p.styleName ?? j], F = ((ae = p.valueFormat) == null ? void 0 : ae.call(p, z, E.getVariableValue)) ?? z;
1661
- m.push(`${R}{${I.map((T) => `${T}:${F}`).join(";")}}`);
1675
+ const T = o(j, V, +x, c, N), [O] = D[+x], B = ((te = p.selector) == null ? void 0 : te.call(p, `.${O}-${N}:${O} .${T}`, "")) ?? `.${O}-${N}:${O} .${T}`, H = Array.isArray(p.styleName) ? p.styleName : [p.styleName ?? j], F = ((re = p.valueFormat) == null ? void 0 : re.call(p, V, z.getVariableValue)) ?? V;
1676
+ m.push(`${B}{${H.map((R) => `${R}:${F}`).join(";")}}`);
1662
1677
  });
1663
1678
  });
1664
1679
  });
1665
- }), d !== "normal" && m.push("}"), m),
1680
+ }), c !== "normal" && m.push("}"), m),
1666
1681
  [v]
1667
1682
  );
1668
- b.unshift(`:root{${E.generateVariables()}}`);
1669
- const n = y();
1670
- n.innerHTML = b.join(""), t = !1;
1683
+ b.unshift(`:root{${z.generateVariables()}}`);
1684
+ const i = g();
1685
+ i.innerHTML = b.join(""), t = !1;
1671
1686
  }
1672
- e.flush = c;
1687
+ e.flush = d;
1673
1688
  function s() {
1674
- a = {};
1689
+ r = {};
1675
1690
  }
1676
1691
  e.clear = s;
1677
- function l(r, v, h, b, n = "normal", m) {
1692
+ function f(a, v, y, b, i = "normal", m) {
1678
1693
  if (v == null) return;
1679
- const d = b.reduce((w, k) => w + ie[k], 0);
1680
- a[n] ? a[n][d] ? a[n][d][r] || (a[n][d][r] = /* @__PURE__ */ new Set()) : a[n][d] = { [r]: /* @__PURE__ */ new Set() } : a[n] = { [d]: { [r]: /* @__PURE__ */ new Set() } }, m ? (a[n][d].__parents ? a[n][d].__parents[m] ? a[n][d].__parents[m][r] || (a[n][d].__parents[m][r] = /* @__PURE__ */ new Set()) : a[n][d].__parents[m] = { [r]: /* @__PURE__ */ new Set() } : a[n][d].__parents = { [m]: { [r]: /* @__PURE__ */ new Set() } }, a[n][d].__parents[m][r].has(v) || (a[n][d].__parents[m][r].add(v), t = !0)) : a[n][d][r].has(v) || (a[n][d][r].add(v), t = !0);
1681
- const x = i(r, v, d, n, m);
1682
- h.push(x);
1694
+ const c = b.reduce((x, U) => x + ie[U], 0);
1695
+ r[i] ? r[i][c] ? r[i][c][a] || (r[i][c][a] = /* @__PURE__ */ new Set()) : r[i][c] = { [a]: /* @__PURE__ */ new Set() } : r[i] = { [c]: { [a]: /* @__PURE__ */ new Set() } }, m ? (r[i][c].__parents ? r[i][c].__parents[m] ? r[i][c].__parents[m][a] || (r[i][c].__parents[m][a] = /* @__PURE__ */ new Set()) : r[i][c].__parents[m] = { [a]: /* @__PURE__ */ new Set() } : r[i][c].__parents = { [m]: { [a]: /* @__PURE__ */ new Set() } }, r[i][c].__parents[m][a].has(v) || (r[i][c].__parents[m][a].add(v), t = !0)) : r[i][c][a].has(v) || (r[i][c][a].add(v), t = !0);
1696
+ const w = o(a, v, c, i, m);
1697
+ y.push(w);
1683
1698
  }
1684
- function i(r, v, h, b, n) {
1685
- const m = D[h], d = `${b === "normal" ? "" : `${b}-`}${m.map((x) => `${x}-`).join("")}${n ? `${n}-` : ""}${r}-${v}`;
1686
- return ne ? d : ge.getIdentity(d);
1699
+ function o(a, v, y, b, i) {
1700
+ const m = D[y], c = `${b === "normal" ? "" : `${b}-`}${m.map((w) => `${w}-`).join("")}${i ? `${i}-` : ""}${a}-${v}`;
1701
+ return ne ? c : he.getIdentity(c);
1687
1702
  }
1688
- const f = "crono-styles";
1689
- function y() {
1690
- let r = document.getElementById(f);
1691
- return r || (r = document.createElement("style"), r.setAttribute("id", f), r.setAttribute("type", "text/css"), document.head.insertBefore(r, document.head.firstChild)), r;
1703
+ const u = "crono-styles";
1704
+ function g() {
1705
+ let a = document.getElementById(u);
1706
+ return a || (a = document.createElement("style"), a.setAttribute("id", u), a.setAttribute("type", "text/css"), document.head.insertBefore(a, document.head.firstChild)), a;
1692
1707
  }
1693
- })(A || (A = {}));
1694
- var re;
1708
+ })(S || (S = {}));
1709
+ var oe;
1695
1710
  ((e) => {
1696
- e.flush = A.flush, e.clear = A.clear;
1697
- })(re || (re = {}));
1711
+ e.flush = S.flush, e.clear = S.clear;
1712
+ })(oe || (oe = {}));
1698
1713
  var M;
1699
1714
  ((e) => {
1700
- function t(a, o, c) {
1701
- return E.setUserVariables(a), Object.entries(o).forEach(([s, l]) => {
1702
- C[s] = l;
1703
- }), Object.entries(c).forEach(([s, l]) => {
1704
- const i = C[s];
1705
- C[s] = i ? [...l, ...i] : l;
1706
- }), { extendedProps: o, extendedPropTypes: c };
1715
+ function t(r, l, d) {
1716
+ return z.setUserVariables(r), Object.entries(l).forEach(([s, f]) => {
1717
+ E[s] = f;
1718
+ }), Object.entries(d).forEach(([s, f]) => {
1719
+ const o = E[s];
1720
+ E[s] = o ? [...f, ...o] : f;
1721
+ }), { extendedProps: l, extendedPropTypes: d };
1707
1722
  }
1708
1723
  e.extend = t;
1709
1724
  })(M || (M = {}));
1710
- const Fe = M;
1725
+ const $e = M;
1711
1726
  var X;
1712
1727
  ((e) => {
1713
1728
  const t = {
@@ -1715,83 +1730,173 @@ var X;
1715
1730
  styles: {
1716
1731
  display: "inline-flex",
1717
1732
  color: "white",
1718
- bgColor: "violet-400",
1733
+ bgColor: "violet-500",
1719
1734
  borderColor: "violet-500",
1720
1735
  p: 3,
1721
1736
  cursor: "pointer",
1722
1737
  b: 1,
1723
1738
  borderRadius: 1,
1724
1739
  userSelect: "none",
1740
+ lineHeight: 20,
1725
1741
  hover: {
1726
- color: "slate-700",
1727
- bgColor: "violet-100",
1728
- borderColor: "violet-300"
1742
+ bgColor: "violet-600",
1743
+ borderColor: "violet-600"
1729
1744
  },
1730
1745
  disabled: {
1731
1746
  cursor: "not-allowed",
1732
1747
  bgColor: "violet-50",
1733
- color: "slate-400",
1748
+ color: "gray-400",
1734
1749
  borderColor: "gray-300"
1735
1750
  }
1736
- },
1737
- themes: {
1738
- reverse: {
1739
- color: "slate-700",
1740
- bgColor: "violet-100",
1741
- borderColor: "violet-300",
1742
- hover: {
1743
- color: "white",
1744
- bgColor: "violet-400",
1745
- borderColor: "violet-500"
1746
- }
1747
- }
1748
1751
  }
1749
1752
  },
1750
- checkbox: {
1753
+ textbox: {
1751
1754
  styles: {
1752
- display: "inline-block"
1755
+ display: "inline-block",
1756
+ b: 1,
1757
+ borderColor: "violet-200",
1758
+ bgColor: "violet-50",
1759
+ color: "violet-950",
1760
+ borderRadius: 1,
1761
+ p: 3,
1762
+ transition: "none",
1763
+ lineHeight: 20,
1764
+ hover: {
1765
+ borderColor: "violet-300"
1766
+ },
1767
+ focus: {
1768
+ outline: 1,
1769
+ borderColor: "violet-500",
1770
+ outlineColor: "violet-500"
1771
+ },
1772
+ disabled: {
1773
+ cursor: "not-allowed",
1774
+ bgColor: "violet-50",
1775
+ color: "gray-400",
1776
+ borderColor: "gray-300"
1777
+ }
1753
1778
  }
1754
1779
  },
1755
- radioButton: {
1780
+ textarea: {
1756
1781
  styles: {
1757
1782
  display: "inline-block",
1758
1783
  b: 1,
1759
- p: 2
1784
+ borderColor: "violet-200",
1785
+ bgColor: "violet-50",
1786
+ color: "violet-950",
1787
+ borderRadius: 1,
1788
+ p: 3,
1789
+ transition: "none",
1790
+ hover: {
1791
+ borderColor: "violet-300"
1792
+ },
1793
+ focus: {
1794
+ outline: 1,
1795
+ borderColor: "violet-500",
1796
+ outlineColor: "violet-500"
1797
+ },
1798
+ disabled: {
1799
+ cursor: "not-allowed",
1800
+ bgColor: "violet-50",
1801
+ color: "gray-400",
1802
+ borderColor: "gray-300",
1803
+ resize: "none"
1804
+ }
1760
1805
  }
1761
1806
  },
1762
- textbox: {
1807
+ checkbox: {
1763
1808
  styles: {
1764
1809
  display: "inline-block",
1810
+ appearance: "none",
1765
1811
  b: 1,
1812
+ borderColor: "violet-300",
1766
1813
  borderRadius: 1,
1767
- p: 3
1814
+ p: 2,
1815
+ cursor: "pointer",
1816
+ transition: "none",
1817
+ hover: {
1818
+ borderColor: "violet-500"
1819
+ },
1820
+ focus: {
1821
+ outline: 2,
1822
+ outlineOffset: 2,
1823
+ outlineColor: "violet-500"
1824
+ },
1825
+ checked: {
1826
+ bgColor: "violet-500",
1827
+ borderColor: "violet-500",
1828
+ bgImage: "bg-img-checked"
1829
+ },
1830
+ indeterminate: {
1831
+ color: "violet-500",
1832
+ bgImage: "bg-img-indeterminate"
1833
+ },
1834
+ disabled: {
1835
+ cursor: "not-allowed",
1836
+ bgColor: "violet-100",
1837
+ color: "gray-400",
1838
+ borderColor: "gray-300"
1839
+ }
1768
1840
  }
1769
1841
  },
1770
- textarea: {
1842
+ radioButton: {
1771
1843
  styles: {
1772
- display: "inline-block",
1844
+ appearance: "none",
1773
1845
  b: 1,
1774
- borderRadius: 1
1846
+ borderColor: "violet-300",
1847
+ borderRadius: 3,
1848
+ p: 2,
1849
+ cursor: "pointer",
1850
+ transition: "none",
1851
+ hover: {
1852
+ borderColor: "violet-500"
1853
+ },
1854
+ focus: {
1855
+ outline: 2,
1856
+ outlineOffset: 2,
1857
+ outlineColor: "violet-500"
1858
+ },
1859
+ checked: {
1860
+ bgColor: "violet-500",
1861
+ borderColor: "violet-500",
1862
+ bgImage: "bg-img-radio"
1863
+ },
1864
+ disabled: {
1865
+ cursor: "not-allowed",
1866
+ bgColor: "violet-100",
1867
+ color: "gray-400",
1868
+ borderColor: "violet-200"
1869
+ }
1775
1870
  }
1776
1871
  },
1777
1872
  dropdown: {
1778
1873
  styles: {
1779
1874
  display: "inline-flex",
1780
- bgColor: "white",
1781
- color: "violet-800",
1875
+ ai: "center",
1876
+ gap: 2,
1877
+ jc: "space-between",
1782
1878
  p: 3,
1783
1879
  cursor: "pointer",
1880
+ bgColor: "violet-50",
1881
+ color: "violet-950",
1784
1882
  b: 1,
1883
+ borderColor: "violet-200",
1785
1884
  borderRadius: 1,
1786
1885
  userSelect: "none",
1787
- borderColor: "violet-400",
1788
1886
  lineHeight: 20,
1887
+ minWidth: 40,
1888
+ transition: "none",
1789
1889
  hover: {
1790
- bgColor: "violet-50"
1890
+ borderColor: "violet-300"
1891
+ },
1892
+ focus: {
1893
+ outline: 1,
1894
+ borderColor: "violet-500",
1895
+ outlineColor: "violet-500"
1791
1896
  },
1792
1897
  disabled: {
1793
1898
  cursor: "not-allowed",
1794
- bgColor: "violet-200",
1899
+ bgColor: "violet-50",
1795
1900
  color: "gray-400",
1796
1901
  borderColor: "gray-300"
1797
1902
  }
@@ -1799,43 +1904,91 @@ var X;
1799
1904
  children: {
1800
1905
  items: {
1801
1906
  styles: {
1907
+ display: "flex",
1908
+ d: "column",
1909
+ gap: 1,
1910
+ p: 1,
1802
1911
  b: 1,
1803
1912
  borderRadius: 1,
1804
1913
  position: "relative",
1805
1914
  top: 1,
1806
1915
  bgColor: "white",
1807
1916
  overflow: "auto",
1808
- maxHeight: 45,
1809
- borderColor: "violet-400",
1810
- color: "violet-800"
1917
+ maxHeight: 62,
1918
+ borderColor: "violet-300",
1919
+ color: "violet-950"
1811
1920
  }
1812
1921
  },
1813
1922
  item: {
1814
1923
  styles: {
1924
+ display: "flex",
1925
+ width: "fit",
1815
1926
  p: 3,
1816
1927
  cursor: "pointer",
1817
1928
  lineHeight: 20,
1929
+ borderRadius: 1,
1818
1930
  hover: {
1819
1931
  bgColor: "violet-50"
1932
+ },
1933
+ focus: {
1934
+ bgColor: "violet-50"
1935
+ },
1936
+ selected: {
1937
+ bgColor: "violet-50",
1938
+ cursor: "default"
1820
1939
  }
1821
1940
  }
1941
+ },
1942
+ nullItem: {
1943
+ styles: {
1944
+ display: "flex",
1945
+ width: "fit",
1946
+ p: 3,
1947
+ cursor: "pointer",
1948
+ lineHeight: 20,
1949
+ borderRadius: 1,
1950
+ color: "violet-400",
1951
+ hover: {
1952
+ bgColor: "violet-50"
1953
+ },
1954
+ focus: {
1955
+ bgColor: "violet-50"
1956
+ },
1957
+ selected: {
1958
+ bgColor: "violet-50",
1959
+ cursor: "default"
1960
+ }
1961
+ }
1962
+ },
1963
+ noItems: {
1964
+ styles: {
1965
+ display: "flex",
1966
+ width: "fit",
1967
+ p: 3,
1968
+ cursor: "default",
1969
+ lineHeight: 20,
1970
+ borderRadius: 1,
1971
+ color: "violet-400"
1972
+ }
1822
1973
  }
1823
1974
  }
1824
1975
  }
1825
1976
  };
1826
- function a(o) {
1827
- const { components: c, ...s } = o, l = c ?? {};
1828
- Object.entries(s).forEach(([i, f]) => {
1829
- l[i] = f;
1830
- }), G.components = $.mergeDeep(t, l);
1977
+ function r(l) {
1978
+ const { components: d, ...s } = l, f = d ?? {};
1979
+ Object.entries(s).forEach(([o, u]) => {
1980
+ f[o] = u;
1981
+ }), I.components = $.mergeDeep(t, f);
1831
1982
  }
1832
- e.setup = a;
1983
+ e.setup = r, I.components = { ...t };
1833
1984
  })(X || (X = {}));
1834
- const $e = X;
1985
+ const Ce = X, xe = {
1986
+ selected: "aria-selected"
1987
+ };
1835
1988
  var Y;
1836
1989
  ((e) => {
1837
- function t(a, o, c) {
1838
- a !== void 0 && a != null && (c[o] = Array.isArray(a) ? a[0] : a);
1990
+ function t(r, l, d) {
1991
+ r !== void 0 && r != null && (d[xe[l] ?? l] = Array.isArray(r) ? r[0] : r);
1839
1992
  }
1840
1993
  e.assignBooleanProp = t;
1841
1994
  })(Y || (Y = {}));
@@ -1848,75 +2001,75 @@ function ze() {
1848
2001
  }, []);
1849
2002
  }
1850
2003
  function Ee(e = null) {
1851
- const [t, a] = de(!1), o = me(null);
1852
- return se(() => {
1853
- function c(i) {
1854
- const f = e ?? o.current;
1855
- (f == null ? void 0 : f.contains(i.target)) === !1 && a(!1);
2004
+ const [t, r] = fe(!1), l = me(null);
2005
+ return le(() => {
2006
+ function d(o) {
2007
+ const u = e ?? l.current;
2008
+ (u == null ? void 0 : u.contains(o.target)) === !1 && r(!1);
1856
2009
  }
1857
2010
  function s() {
1858
- a(!1);
2011
+ r(!1);
1859
2012
  }
1860
- function l(i) {
1861
- i.key === "Escape" && a(!1);
2013
+ function f(o) {
2014
+ o.key === "Escape" && r(!1);
1862
2015
  }
1863
- return t && (window.addEventListener("click", c), window.addEventListener("resize", s), window.addEventListener("keydown", l)), () => {
1864
- window.removeEventListener("click", c), window.removeEventListener("resize", s), window.removeEventListener("keydown", l);
2016
+ return t && (window.addEventListener("mousedown", d), window.addEventListener("resize", s), window.addEventListener("keydown", f)), () => {
2017
+ window.removeEventListener("mousedown", d), window.removeEventListener("resize", s), window.removeEventListener("keydown", f);
1865
2018
  };
1866
- }, [e, t]), [t, a, o];
2019
+ }, [e, t]), [t, r, l];
1867
2020
  }
1868
2021
  var J;
1869
2022
  ((e) => {
1870
- function t(o) {
1871
- const c = Array.from(o.elements).reduce(
1872
- (s, l) => {
1873
- const i = l.name;
1874
- return i && (s[i] || (s[i] = []), s[i].push(l)), s;
2023
+ function t(l) {
2024
+ const d = Array.from(l.elements).reduce(
2025
+ (s, f) => {
2026
+ const o = f.name;
2027
+ return o && (s[o] || (s[o] = []), s[o].push(f)), s;
1875
2028
  },
1876
2029
  {}
1877
2030
  );
1878
- return Object.entries(c).reduce((s, [l, i]) => {
1879
- if (i.length === 1) {
1880
- const f = i[0];
1881
- a(s, l, f.type === "checkbox" || f.type === "radio" ? f.checked : f.value);
2031
+ return Object.entries(d).reduce((s, [f, o]) => {
2032
+ if (o.length === 1) {
2033
+ const u = o[0];
2034
+ r(s, f, u.type === "checkbox" || u.type === "radio" ? u.checked : u.value);
1882
2035
  } else {
1883
- const f = i.reduce((y, r) => (r.type === "checkbox" || r.type === "radio" ? r.checked && y.push(r.value) : y.push(r.value), y), []);
1884
- a(s, l, f);
2036
+ const u = o.reduce((g, a) => (a.type === "checkbox" || a.type === "radio" ? a.checked && g.push(a.value) : g.push(a.value), g), []);
2037
+ r(s, f, u);
1885
2038
  }
1886
2039
  return s;
1887
2040
  }, {});
1888
2041
  }
1889
2042
  e.getFormEntries = t;
1890
- function a(o, c, s) {
1891
- if (c.includes(".")) {
1892
- const l = c.split(".");
1893
- let i = o;
1894
- l.forEach((f, y) => {
1895
- if (l.length > y + 1) {
1896
- const r = f.match(/^(.+)\[(\d)\]$/);
1897
- if (r) {
1898
- const [, v, h] = r;
1899
- i[v] = i[v] || [], i[v][h] = i[v][h] || {}, i = i[v][h];
2043
+ function r(l, d, s) {
2044
+ if (d.includes(".")) {
2045
+ const f = d.split(".");
2046
+ let o = l;
2047
+ f.forEach((u, g) => {
2048
+ if (f.length > g + 1) {
2049
+ const a = u.match(/^(.+)\[(\d)\]$/);
2050
+ if (a) {
2051
+ const [, v, y] = a;
2052
+ o[v] = o[v] || [], o[v][y] = o[v][y] || {}, o = o[v][y];
1900
2053
  } else
1901
- i[f] = i[f] || {}, i = i[f];
2054
+ o[u] = o[u] || {}, o = o[u];
1902
2055
  } else
1903
- i[f] = s;
2056
+ o[u] = s;
1904
2057
  });
1905
2058
  } else
1906
- o[c] = s;
2059
+ l[d] = s;
1907
2060
  }
1908
2061
  })(J || (J = {}));
1909
- const Ce = J;
2062
+ const je = J;
1910
2063
  export {
1911
- Fe as B,
1912
- Ce as F,
2064
+ $e as B,
2065
+ je as F,
1913
2066
  $ as O,
1914
- re as S,
1915
- $e as T,
1916
- E as V,
2067
+ oe as S,
2068
+ Ce as T,
2069
+ z as V,
1917
2070
  Ve as a,
1918
2071
  Ee as b,
1919
2072
  ve as c,
1920
2073
  ze as d,
1921
- Ne as u
2074
+ Fe as u
1922
2075
  };