@cronocode/react-box 3.0.6 → 3.0.8
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/array.d.ts +6 -0
- package/box.cjs +1 -1
- package/box.d.ts +3 -1
- package/box.mjs +16 -14
- package/components/dataGrid.cjs +1 -1
- package/components/dataGrid.mjs +11 -11
- package/components/dropdown.cjs +1 -1
- package/components/dropdown.d.ts +16 -16
- package/components/dropdown.mjs +123 -89
- package/core/boxStyles.d.ts +23 -0
- package/core/theme/defaultTheme.d.ts +3 -0
- package/core/theme/theme.d.ts +13 -0
- package/core/theme/themeContext.d.ts +9 -0
- package/core/{theme.d.ts → theme/themeContract.d.ts} +9 -10
- package/core/theme/useTheme.d.ts +2 -0
- package/core.cjs +3 -3
- package/core.mjs +594 -530
- package/package.json +1 -1
- package/core/useTheme.d.ts +0 -8
package/core.mjs
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { useMemo as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import ve, { useContext as se, useMemo as L, useLayoutEffect as be, useEffect as ie, useState as ne, useRef as ye } from "react";
|
|
2
|
+
import { jsx as ge } from "react/jsx-runtime";
|
|
3
|
+
function he(...e) {
|
|
4
|
+
return e.reduce((t, r) => r ? typeof r == "string" ? (t.push(r), t) : Array.isArray(r) ? (t.push(...he(...r)), t) : (Object.entries(r).forEach(([l, s]) => {
|
|
5
|
+
s && t.push(l);
|
|
5
6
|
}), t) : t, []);
|
|
6
7
|
}
|
|
7
|
-
var
|
|
8
|
+
var u;
|
|
8
9
|
((e) => {
|
|
9
10
|
((t) => {
|
|
10
|
-
function r(
|
|
11
|
-
return `${
|
|
11
|
+
function r(s, n) {
|
|
12
|
+
return `${s}${n.replace("/", "-")}`;
|
|
12
13
|
}
|
|
13
14
|
t.fraction = r;
|
|
14
|
-
function l(
|
|
15
|
-
return [`${
|
|
15
|
+
function l(s) {
|
|
16
|
+
return [`${s} path`, `${s} circle`, `${s} rect`, `${s} line`];
|
|
16
17
|
}
|
|
17
18
|
t.svg = l;
|
|
18
19
|
})(e.ClassName || (e.ClassName = {})), ((t) => {
|
|
@@ -24,12 +25,12 @@ var n;
|
|
|
24
25
|
return `${b}px`;
|
|
25
26
|
}
|
|
26
27
|
t.px = l;
|
|
27
|
-
function d(b, i) {
|
|
28
|
-
const [m, c] = i.split("/");
|
|
29
|
-
return `${+m / +c * 100}%`;
|
|
30
|
-
}
|
|
31
|
-
t.fraction = d;
|
|
32
28
|
function s(b, i) {
|
|
29
|
+
const [m, f] = i.split("/");
|
|
30
|
+
return `${+m / +f * 100}%`;
|
|
31
|
+
}
|
|
32
|
+
t.fraction = s;
|
|
33
|
+
function n(b, i) {
|
|
33
34
|
switch (i) {
|
|
34
35
|
case "fit":
|
|
35
36
|
return "100%";
|
|
@@ -39,23 +40,23 @@ var n;
|
|
|
39
40
|
return i;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
|
-
t.widthHeight =
|
|
43
|
-
function
|
|
43
|
+
t.widthHeight = n;
|
|
44
|
+
function d(b) {
|
|
44
45
|
return (i, m) => `var(--${b}${m});`;
|
|
45
46
|
}
|
|
46
|
-
t.variables =
|
|
47
|
+
t.variables = d;
|
|
47
48
|
function o(b) {
|
|
48
49
|
return (i, m) => `var(--${b}${m});`;
|
|
49
50
|
}
|
|
50
51
|
t.svgVariables = o;
|
|
51
|
-
function
|
|
52
|
+
function c(b, i) {
|
|
52
53
|
return `repeat(${i},minmax(0,1fr))`;
|
|
53
54
|
}
|
|
54
|
-
t.gridColumns =
|
|
55
|
-
function
|
|
55
|
+
t.gridColumns = c;
|
|
56
|
+
function y(b, i) {
|
|
56
57
|
return i === "full-row" ? "1/-1" : `span ${i}/span ${i}`;
|
|
57
58
|
}
|
|
58
|
-
t.gridColumn =
|
|
59
|
+
t.gridColumn = y;
|
|
59
60
|
function a(b, i) {
|
|
60
61
|
return `${i}ms`;
|
|
61
62
|
}
|
|
@@ -64,13 +65,13 @@ var n;
|
|
|
64
65
|
return `${i}deg`;
|
|
65
66
|
}
|
|
66
67
|
t.rotate = v;
|
|
67
|
-
function
|
|
68
|
+
function g(b, i) {
|
|
68
69
|
return i === "xAxis" ? "-1 1" : "1 -1";
|
|
69
70
|
}
|
|
70
|
-
t.flip =
|
|
71
|
+
t.flip = g;
|
|
71
72
|
})(e.Value || (e.Value = {}));
|
|
72
|
-
})(
|
|
73
|
-
var
|
|
73
|
+
})(u || (u = {}));
|
|
74
|
+
var M;
|
|
74
75
|
((e) => {
|
|
75
76
|
e.colors = {
|
|
76
77
|
currentColor: "currentColor",
|
|
@@ -330,23 +331,26 @@ var W;
|
|
|
330
331
|
none: "none",
|
|
331
332
|
"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
333
|
"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
|
+
"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>")}")`,
|
|
335
|
+
"small-shadow": "rgba(0, 0, 0, 0.16) 0px 1px 4px",
|
|
336
|
+
"medium-shadow": "rgba(0, 0, 0, 0.24) 0px 3px 8px",
|
|
337
|
+
"large-shadow": "rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px"
|
|
334
338
|
}, r = {};
|
|
335
339
|
let l = {};
|
|
336
|
-
function
|
|
340
|
+
function s(o) {
|
|
337
341
|
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})`;
|
|
338
342
|
}
|
|
339
|
-
e.getVariableValue =
|
|
340
|
-
function
|
|
341
|
-
return Object.entries(r).map(([o,
|
|
343
|
+
e.getVariableValue = s;
|
|
344
|
+
function n() {
|
|
345
|
+
return Object.entries(r).map(([o, c]) => `--${o}: ${c};`).join("");
|
|
342
346
|
}
|
|
343
|
-
e.generateVariables =
|
|
344
|
-
function
|
|
347
|
+
e.generateVariables = n;
|
|
348
|
+
function d(o) {
|
|
345
349
|
l = o;
|
|
346
350
|
}
|
|
347
|
-
e.setUserVariables =
|
|
348
|
-
})(
|
|
349
|
-
const
|
|
351
|
+
e.setUserVariables = d;
|
|
352
|
+
})(M || (M = {}));
|
|
353
|
+
const N = M, E = {
|
|
350
354
|
/** The appearance CSS property is used to display UI elements with platform-specific styling, based on the operating system's theme. */
|
|
351
355
|
appearance: [
|
|
352
356
|
{
|
|
@@ -358,7 +362,7 @@ const z = W, E = {
|
|
|
358
362
|
{
|
|
359
363
|
values: 0,
|
|
360
364
|
styleName: "border-width",
|
|
361
|
-
valueFormat:
|
|
365
|
+
valueFormat: u.Value.px
|
|
362
366
|
}
|
|
363
367
|
],
|
|
364
368
|
/** The border-width shorthand CSS property sets the width of an element's left and right border. */
|
|
@@ -366,7 +370,7 @@ const z = W, E = {
|
|
|
366
370
|
{
|
|
367
371
|
values: 0,
|
|
368
372
|
styleName: "border-inline-width",
|
|
369
|
-
valueFormat:
|
|
373
|
+
valueFormat: u.Value.px
|
|
370
374
|
}
|
|
371
375
|
],
|
|
372
376
|
/** The border-width shorthand CSS property sets the width of an element's top and bottom border. */
|
|
@@ -374,7 +378,7 @@ const z = W, E = {
|
|
|
374
378
|
{
|
|
375
379
|
values: 0,
|
|
376
380
|
styleName: "border-block-width",
|
|
377
|
-
valueFormat:
|
|
381
|
+
valueFormat: u.Value.px
|
|
378
382
|
}
|
|
379
383
|
],
|
|
380
384
|
/** The border-top-width CSS property sets the width of the top border of an element. */
|
|
@@ -382,7 +386,7 @@ const z = W, E = {
|
|
|
382
386
|
{
|
|
383
387
|
values: 0,
|
|
384
388
|
styleName: "border-top-width",
|
|
385
|
-
valueFormat:
|
|
389
|
+
valueFormat: u.Value.px
|
|
386
390
|
}
|
|
387
391
|
],
|
|
388
392
|
/** The border-right-width CSS property sets the width of the right border of an element. */
|
|
@@ -390,7 +394,7 @@ const z = W, E = {
|
|
|
390
394
|
{
|
|
391
395
|
values: 0,
|
|
392
396
|
styleName: "border-right-width",
|
|
393
|
-
valueFormat:
|
|
397
|
+
valueFormat: u.Value.px
|
|
394
398
|
}
|
|
395
399
|
],
|
|
396
400
|
/** The border-bottom-width CSS property sets the width of the bottom border of an element. */
|
|
@@ -398,7 +402,7 @@ const z = W, E = {
|
|
|
398
402
|
{
|
|
399
403
|
values: 0,
|
|
400
404
|
styleName: "border-bottom-width",
|
|
401
|
-
valueFormat:
|
|
405
|
+
valueFormat: u.Value.px
|
|
402
406
|
}
|
|
403
407
|
],
|
|
404
408
|
/** The border-left-width CSS property sets the width of the left border of an element. */
|
|
@@ -406,7 +410,7 @@ const z = W, E = {
|
|
|
406
410
|
{
|
|
407
411
|
values: 0,
|
|
408
412
|
styleName: "border-left-width",
|
|
409
|
-
valueFormat:
|
|
413
|
+
valueFormat: u.Value.px
|
|
410
414
|
}
|
|
411
415
|
],
|
|
412
416
|
/** The border-style shorthand CSS property sets the line style for all four sides of an element's border. */
|
|
@@ -421,7 +425,7 @@ const z = W, E = {
|
|
|
421
425
|
{
|
|
422
426
|
styleName: "border-radius",
|
|
423
427
|
values: 0,
|
|
424
|
-
valueFormat:
|
|
428
|
+
valueFormat: u.Value.rem
|
|
425
429
|
}
|
|
426
430
|
],
|
|
427
431
|
/** 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. */
|
|
@@ -429,7 +433,7 @@ const z = W, E = {
|
|
|
429
433
|
{
|
|
430
434
|
values: 0,
|
|
431
435
|
styleName: ["border-top-left-radius", "border-top-right-radius"],
|
|
432
|
-
valueFormat:
|
|
436
|
+
valueFormat: u.Value.rem
|
|
433
437
|
}
|
|
434
438
|
],
|
|
435
439
|
/** 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. */
|
|
@@ -437,7 +441,7 @@ const z = W, E = {
|
|
|
437
441
|
{
|
|
438
442
|
values: 0,
|
|
439
443
|
styleName: ["border-top-right-radius", "border-bottom-right-radius"],
|
|
440
|
-
valueFormat:
|
|
444
|
+
valueFormat: u.Value.rem
|
|
441
445
|
}
|
|
442
446
|
],
|
|
443
447
|
/** 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. */
|
|
@@ -445,7 +449,7 @@ const z = W, E = {
|
|
|
445
449
|
{
|
|
446
450
|
values: 0,
|
|
447
451
|
styleName: ["border-bottom-left-radius", "border-bottom-right-radius"],
|
|
448
|
-
valueFormat:
|
|
452
|
+
valueFormat: u.Value.rem
|
|
449
453
|
}
|
|
450
454
|
],
|
|
451
455
|
/** 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. */
|
|
@@ -453,7 +457,7 @@ const z = W, E = {
|
|
|
453
457
|
{
|
|
454
458
|
values: 0,
|
|
455
459
|
styleName: ["border-top-left-radius", "border-bottom-left-radius"],
|
|
456
|
-
valueFormat:
|
|
460
|
+
valueFormat: u.Value.rem
|
|
457
461
|
}
|
|
458
462
|
],
|
|
459
463
|
/** 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. */
|
|
@@ -461,7 +465,7 @@ const z = W, E = {
|
|
|
461
465
|
{
|
|
462
466
|
values: 0,
|
|
463
467
|
styleName: "border-top-left-radius",
|
|
464
|
-
valueFormat:
|
|
468
|
+
valueFormat: u.Value.rem
|
|
465
469
|
}
|
|
466
470
|
],
|
|
467
471
|
/** 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. */
|
|
@@ -469,7 +473,7 @@ const z = W, E = {
|
|
|
469
473
|
{
|
|
470
474
|
values: 0,
|
|
471
475
|
styleName: "border-top-right-radius",
|
|
472
|
-
valueFormat:
|
|
476
|
+
valueFormat: u.Value.rem
|
|
473
477
|
}
|
|
474
478
|
],
|
|
475
479
|
/** 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. */
|
|
@@ -477,7 +481,7 @@ const z = W, E = {
|
|
|
477
481
|
{
|
|
478
482
|
values: 0,
|
|
479
483
|
styleName: "border-bottom-right-radius",
|
|
480
|
-
valueFormat:
|
|
484
|
+
valueFormat: u.Value.rem
|
|
481
485
|
}
|
|
482
486
|
],
|
|
483
487
|
/** 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. */
|
|
@@ -485,7 +489,7 @@ const z = W, E = {
|
|
|
485
489
|
{
|
|
486
490
|
values: 0,
|
|
487
491
|
styleName: "border-bottom-left-radius",
|
|
488
|
-
valueFormat:
|
|
492
|
+
valueFormat: u.Value.rem
|
|
489
493
|
}
|
|
490
494
|
],
|
|
491
495
|
/** 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. */
|
|
@@ -498,35 +502,35 @@ const z = W, E = {
|
|
|
498
502
|
top: [
|
|
499
503
|
{
|
|
500
504
|
values: 0,
|
|
501
|
-
valueFormat:
|
|
505
|
+
valueFormat: u.Value.rem
|
|
502
506
|
}
|
|
503
507
|
],
|
|
504
508
|
/** The right CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
505
509
|
right: [
|
|
506
510
|
{
|
|
507
511
|
values: 0,
|
|
508
|
-
valueFormat:
|
|
512
|
+
valueFormat: u.Value.rem
|
|
509
513
|
}
|
|
510
514
|
],
|
|
511
515
|
/** The bottom CSS property participates in setting the vertical position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
512
516
|
bottom: [
|
|
513
517
|
{
|
|
514
518
|
values: 0,
|
|
515
|
-
valueFormat:
|
|
519
|
+
valueFormat: u.Value.rem
|
|
516
520
|
}
|
|
517
521
|
],
|
|
518
522
|
/** The left CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
519
523
|
left: [
|
|
520
524
|
{
|
|
521
525
|
values: 0,
|
|
522
|
-
valueFormat:
|
|
526
|
+
valueFormat: u.Value.rem
|
|
523
527
|
}
|
|
524
528
|
],
|
|
525
529
|
/** 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. */
|
|
526
530
|
inset: [
|
|
527
531
|
{
|
|
528
532
|
values: 0,
|
|
529
|
-
valueFormat:
|
|
533
|
+
valueFormat: u.Value.rem
|
|
530
534
|
}
|
|
531
535
|
],
|
|
532
536
|
/** The `box-sizing` CSS property sets how the total width and height of an element is calculated. */
|
|
@@ -699,7 +703,7 @@ const z = W, E = {
|
|
|
699
703
|
{
|
|
700
704
|
styleName: "font-size",
|
|
701
705
|
values: 0,
|
|
702
|
-
valueFormat:
|
|
706
|
+
valueFormat: u.Value.px
|
|
703
707
|
},
|
|
704
708
|
{
|
|
705
709
|
styleName: "font-size",
|
|
@@ -724,7 +728,7 @@ const z = W, E = {
|
|
|
724
728
|
gap: [
|
|
725
729
|
{
|
|
726
730
|
values: 0,
|
|
727
|
-
valueFormat:
|
|
731
|
+
valueFormat: u.Value.rem
|
|
728
732
|
}
|
|
729
733
|
],
|
|
730
734
|
/** The row-gap CSS property sets the size of the gap (gutter) between an element's rows. */
|
|
@@ -732,7 +736,7 @@ const z = W, E = {
|
|
|
732
736
|
{
|
|
733
737
|
styleName: "row-gap",
|
|
734
738
|
values: 0,
|
|
735
|
-
valueFormat:
|
|
739
|
+
valueFormat: u.Value.rem
|
|
736
740
|
}
|
|
737
741
|
],
|
|
738
742
|
/** The column-gap CSS property sets the size of the gap (gutter) between an element's columns. */
|
|
@@ -740,7 +744,7 @@ const z = W, E = {
|
|
|
740
744
|
{
|
|
741
745
|
styleName: "column-gap",
|
|
742
746
|
values: 0,
|
|
743
|
-
valueFormat:
|
|
747
|
+
valueFormat: u.Value.rem
|
|
744
748
|
}
|
|
745
749
|
],
|
|
746
750
|
/** 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. */
|
|
@@ -1065,7 +1069,7 @@ const z = W, E = {
|
|
|
1065
1069
|
{
|
|
1066
1070
|
styleName: "letter-spacing",
|
|
1067
1071
|
values: 0,
|
|
1068
|
-
valueFormat:
|
|
1072
|
+
valueFormat: u.Value.px
|
|
1069
1073
|
}
|
|
1070
1074
|
],
|
|
1071
1075
|
/** 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. */
|
|
@@ -1073,7 +1077,7 @@ const z = W, E = {
|
|
|
1073
1077
|
{
|
|
1074
1078
|
styleName: "line-height",
|
|
1075
1079
|
values: 0,
|
|
1076
|
-
valueFormat:
|
|
1080
|
+
valueFormat: u.Value.px
|
|
1077
1081
|
},
|
|
1078
1082
|
{
|
|
1079
1083
|
styleName: "line-height",
|
|
@@ -1093,7 +1097,7 @@ const z = W, E = {
|
|
|
1093
1097
|
{
|
|
1094
1098
|
values: 0,
|
|
1095
1099
|
styleName: "margin",
|
|
1096
|
-
valueFormat:
|
|
1100
|
+
valueFormat: u.Value.rem
|
|
1097
1101
|
},
|
|
1098
1102
|
{
|
|
1099
1103
|
values: ["auto"],
|
|
@@ -1105,7 +1109,7 @@ const z = W, E = {
|
|
|
1105
1109
|
{
|
|
1106
1110
|
values: 0,
|
|
1107
1111
|
styleName: "margin-inline",
|
|
1108
|
-
valueFormat:
|
|
1112
|
+
valueFormat: u.Value.rem
|
|
1109
1113
|
},
|
|
1110
1114
|
{
|
|
1111
1115
|
values: ["auto"],
|
|
@@ -1117,7 +1121,7 @@ const z = W, E = {
|
|
|
1117
1121
|
{
|
|
1118
1122
|
values: 0,
|
|
1119
1123
|
styleName: "margin-block",
|
|
1120
|
-
valueFormat:
|
|
1124
|
+
valueFormat: u.Value.rem
|
|
1121
1125
|
},
|
|
1122
1126
|
{
|
|
1123
1127
|
values: ["auto"],
|
|
@@ -1129,7 +1133,7 @@ const z = W, E = {
|
|
|
1129
1133
|
{
|
|
1130
1134
|
values: 0,
|
|
1131
1135
|
styleName: "margin-top",
|
|
1132
|
-
valueFormat:
|
|
1136
|
+
valueFormat: u.Value.rem
|
|
1133
1137
|
},
|
|
1134
1138
|
{
|
|
1135
1139
|
values: ["auto"],
|
|
@@ -1141,7 +1145,7 @@ const z = W, E = {
|
|
|
1141
1145
|
{
|
|
1142
1146
|
values: 0,
|
|
1143
1147
|
styleName: "margin-right",
|
|
1144
|
-
valueFormat:
|
|
1148
|
+
valueFormat: u.Value.rem
|
|
1145
1149
|
},
|
|
1146
1150
|
{
|
|
1147
1151
|
values: ["auto"],
|
|
@@ -1153,7 +1157,7 @@ const z = W, E = {
|
|
|
1153
1157
|
{
|
|
1154
1158
|
values: 0,
|
|
1155
1159
|
styleName: "margin-bottom",
|
|
1156
|
-
valueFormat:
|
|
1160
|
+
valueFormat: u.Value.rem
|
|
1157
1161
|
},
|
|
1158
1162
|
{
|
|
1159
1163
|
values: ["auto"],
|
|
@@ -1165,7 +1169,7 @@ const z = W, E = {
|
|
|
1165
1169
|
{
|
|
1166
1170
|
values: 0,
|
|
1167
1171
|
styleName: "margin-left",
|
|
1168
|
-
valueFormat:
|
|
1172
|
+
valueFormat: u.Value.rem
|
|
1169
1173
|
},
|
|
1170
1174
|
{
|
|
1171
1175
|
values: ["auto"],
|
|
@@ -1177,7 +1181,7 @@ const z = W, E = {
|
|
|
1177
1181
|
{
|
|
1178
1182
|
values: 0,
|
|
1179
1183
|
styleName: "padding",
|
|
1180
|
-
valueFormat:
|
|
1184
|
+
valueFormat: u.Value.rem
|
|
1181
1185
|
}
|
|
1182
1186
|
],
|
|
1183
1187
|
/** 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. */
|
|
@@ -1185,7 +1189,7 @@ const z = W, E = {
|
|
|
1185
1189
|
{
|
|
1186
1190
|
values: 0,
|
|
1187
1191
|
styleName: "padding-inline",
|
|
1188
|
-
valueFormat:
|
|
1192
|
+
valueFormat: u.Value.rem
|
|
1189
1193
|
}
|
|
1190
1194
|
],
|
|
1191
1195
|
/** 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. */
|
|
@@ -1193,7 +1197,7 @@ const z = W, E = {
|
|
|
1193
1197
|
{
|
|
1194
1198
|
values: 0,
|
|
1195
1199
|
styleName: "padding-block",
|
|
1196
|
-
valueFormat:
|
|
1200
|
+
valueFormat: u.Value.rem
|
|
1197
1201
|
}
|
|
1198
1202
|
],
|
|
1199
1203
|
/** The padding-top CSS property sets the height of the padding area on the top of an element. */
|
|
@@ -1201,7 +1205,7 @@ const z = W, E = {
|
|
|
1201
1205
|
{
|
|
1202
1206
|
values: 0,
|
|
1203
1207
|
styleName: "padding-top",
|
|
1204
|
-
valueFormat:
|
|
1208
|
+
valueFormat: u.Value.rem
|
|
1205
1209
|
}
|
|
1206
1210
|
],
|
|
1207
1211
|
/** The padding-right CSS property sets the width of the padding area on the right of an element. */
|
|
@@ -1209,7 +1213,7 @@ const z = W, E = {
|
|
|
1209
1213
|
{
|
|
1210
1214
|
values: 0,
|
|
1211
1215
|
styleName: "padding-right",
|
|
1212
|
-
valueFormat:
|
|
1216
|
+
valueFormat: u.Value.rem
|
|
1213
1217
|
}
|
|
1214
1218
|
],
|
|
1215
1219
|
/** The padding-bottom CSS property sets the height of the padding area on the bottom of an element. */
|
|
@@ -1217,7 +1221,7 @@ const z = W, E = {
|
|
|
1217
1221
|
{
|
|
1218
1222
|
values: 0,
|
|
1219
1223
|
styleName: "padding-bottom",
|
|
1220
|
-
valueFormat:
|
|
1224
|
+
valueFormat: u.Value.rem
|
|
1221
1225
|
}
|
|
1222
1226
|
],
|
|
1223
1227
|
/** The padding-left CSS property sets the width of the padding area to the left of an element. */
|
|
@@ -1225,7 +1229,7 @@ const z = W, E = {
|
|
|
1225
1229
|
{
|
|
1226
1230
|
values: 0,
|
|
1227
1231
|
styleName: "padding-left",
|
|
1228
|
-
valueFormat:
|
|
1232
|
+
valueFormat: u.Value.rem
|
|
1229
1233
|
}
|
|
1230
1234
|
],
|
|
1231
1235
|
/** 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. */
|
|
@@ -1246,7 +1250,7 @@ const z = W, E = {
|
|
|
1246
1250
|
{
|
|
1247
1251
|
styleName: "outline-width",
|
|
1248
1252
|
values: 0,
|
|
1249
|
-
valueFormat:
|
|
1253
|
+
valueFormat: u.Value.px
|
|
1250
1254
|
}
|
|
1251
1255
|
],
|
|
1252
1256
|
/** 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. */
|
|
@@ -1261,7 +1265,7 @@ const z = W, E = {
|
|
|
1261
1265
|
{
|
|
1262
1266
|
styleName: "outline-offset",
|
|
1263
1267
|
values: 0,
|
|
1264
|
-
valueFormat:
|
|
1268
|
+
valueFormat: u.Value.px
|
|
1265
1269
|
}
|
|
1266
1270
|
],
|
|
1267
1271
|
/** 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. */
|
|
@@ -1469,39 +1473,65 @@ const z = W, E = {
|
|
|
1469
1473
|
],
|
|
1470
1474
|
color: [
|
|
1471
1475
|
{
|
|
1472
|
-
values: Object.keys(
|
|
1476
|
+
values: Object.keys(N.colors),
|
|
1473
1477
|
valueFormat: (e, t) => t(e)
|
|
1474
1478
|
}
|
|
1475
1479
|
],
|
|
1476
1480
|
bgColor: [
|
|
1477
1481
|
{
|
|
1478
|
-
values: Object.keys(
|
|
1482
|
+
values: Object.keys(N.colors),
|
|
1479
1483
|
valueFormat: (e, t) => t(e),
|
|
1480
1484
|
styleName: "background-color"
|
|
1481
1485
|
}
|
|
1482
1486
|
],
|
|
1483
1487
|
borderColor: [
|
|
1484
1488
|
{
|
|
1485
|
-
values: Object.keys(
|
|
1489
|
+
values: Object.keys(N.colors),
|
|
1486
1490
|
valueFormat: (e, t) => t(e),
|
|
1487
1491
|
styleName: "border-color"
|
|
1488
1492
|
}
|
|
1489
1493
|
],
|
|
1490
1494
|
outlineColor: [
|
|
1491
1495
|
{
|
|
1492
|
-
values: Object.keys(
|
|
1496
|
+
values: Object.keys(N.colors),
|
|
1493
1497
|
valueFormat: (e, t) => t(e),
|
|
1494
1498
|
styleName: "outline-color"
|
|
1495
1499
|
}
|
|
1496
1500
|
],
|
|
1501
|
+
fill: [
|
|
1502
|
+
{
|
|
1503
|
+
values: Object.keys(N.colors),
|
|
1504
|
+
valueFormat: (e, t) => t(e)
|
|
1505
|
+
}
|
|
1506
|
+
],
|
|
1507
|
+
stroke: [
|
|
1508
|
+
{
|
|
1509
|
+
values: Object.keys(N.colors),
|
|
1510
|
+
valueFormat: (e, t) => t(e)
|
|
1511
|
+
}
|
|
1512
|
+
],
|
|
1497
1513
|
bgImage: [
|
|
1498
1514
|
{
|
|
1499
1515
|
values: ["none", "bg-img-checked", "bg-img-indeterminate", "bg-img-radio"],
|
|
1500
1516
|
valueFormat: (e, t) => t(e),
|
|
1501
1517
|
styleName: "background-image"
|
|
1502
1518
|
}
|
|
1519
|
+
],
|
|
1520
|
+
shadow: [
|
|
1521
|
+
{
|
|
1522
|
+
values: ["small-shadow", "medium-shadow", "large-shadow"],
|
|
1523
|
+
valueFormat: (e, t) => t(e),
|
|
1524
|
+
styleName: "box-shadow"
|
|
1525
|
+
}
|
|
1526
|
+
],
|
|
1527
|
+
translateX: [
|
|
1528
|
+
{
|
|
1529
|
+
values: 0,
|
|
1530
|
+
valueFormat: (e) => `translateX(${e / 4}rem)`,
|
|
1531
|
+
styleName: "transform"
|
|
1532
|
+
}
|
|
1503
1533
|
]
|
|
1504
|
-
},
|
|
1534
|
+
}, ue = {
|
|
1505
1535
|
hover: ":hover",
|
|
1506
1536
|
focus: ":focus-within",
|
|
1507
1537
|
hasFocus: ":has(:focus)",
|
|
@@ -1514,64 +1544,69 @@ const z = W, E = {
|
|
|
1514
1544
|
hasChecked: ":has(:checked)",
|
|
1515
1545
|
hasRequired: ":has(:required)",
|
|
1516
1546
|
hasDisabled: ":has([disabled])"
|
|
1517
|
-
},
|
|
1547
|
+
}, U = {
|
|
1518
1548
|
indeterminate: ":indeterminate",
|
|
1519
1549
|
checked: ":checked",
|
|
1520
1550
|
required: ":required",
|
|
1521
1551
|
disabled: "[disabled]",
|
|
1522
1552
|
selected: '[aria-selected="true"]'
|
|
1523
|
-
}, Z = { ...
|
|
1553
|
+
}, Z = { ...ue, ...U }, de = Object.entries(Z).reduce(
|
|
1524
1554
|
(e, [t], r) => (e[t] = Math.pow(2, r), e),
|
|
1525
1555
|
{}
|
|
1526
|
-
),
|
|
1556
|
+
), W = Object.entries(Z).reduce(
|
|
1527
1557
|
(e, [t]) => {
|
|
1528
|
-
const r =
|
|
1529
|
-
return Object.entries(e).forEach(([l,
|
|
1530
|
-
e[+l + r] = [...
|
|
1558
|
+
const r = de[t];
|
|
1559
|
+
return Object.entries(e).forEach(([l, s]) => {
|
|
1560
|
+
e[+l + r] = [...s, t];
|
|
1531
1561
|
}), e;
|
|
1532
1562
|
},
|
|
1533
1563
|
{ 0: [] }
|
|
1534
|
-
),
|
|
1564
|
+
), q = {
|
|
1535
1565
|
hoverGroup: "hover",
|
|
1536
1566
|
focusGroup: "focus",
|
|
1537
1567
|
activeGroup: "active",
|
|
1538
1568
|
disabledGroup: "disabled"
|
|
1539
|
-
},
|
|
1569
|
+
}, H = {
|
|
1570
|
+
/** Styles applied for small screens and larger. >= 640 */
|
|
1540
1571
|
sm: 640,
|
|
1572
|
+
/** Styles applied for medium screens and larger. >= 768 */
|
|
1541
1573
|
md: 768,
|
|
1574
|
+
/** Styles applied for large screens and larger. >= 1024 */
|
|
1542
1575
|
lg: 1024,
|
|
1576
|
+
/** Styles applied for extra-large screens and larger. >= 1280 */
|
|
1543
1577
|
xl: 1280,
|
|
1578
|
+
/** Styles applied for 2x extra-large screens and larger. >= 1536 */
|
|
1544
1579
|
xxl: 1536
|
|
1545
1580
|
};
|
|
1546
|
-
var
|
|
1581
|
+
var X;
|
|
1547
1582
|
((e) => {
|
|
1548
|
-
function t(
|
|
1549
|
-
const
|
|
1550
|
-
return
|
|
1551
|
-
a in
|
|
1583
|
+
function t(n, d, o) {
|
|
1584
|
+
const c = { ...n }, y = c.props || {};
|
|
1585
|
+
return d.forEach((a) => {
|
|
1586
|
+
a in c && (y[a] = c[a], delete c[a]);
|
|
1552
1587
|
}), o && Object.entries(o).forEach(([a, v]) => {
|
|
1553
|
-
|
|
1554
|
-
}),
|
|
1588
|
+
y[a] = v;
|
|
1589
|
+
}), c.props = y, c;
|
|
1555
1590
|
}
|
|
1556
1591
|
e.buildProps = t;
|
|
1557
|
-
function r(
|
|
1558
|
-
return !!
|
|
1592
|
+
function r(n) {
|
|
1593
|
+
return !!n && typeof n == "object";
|
|
1559
1594
|
}
|
|
1560
1595
|
e.isObject = r;
|
|
1561
|
-
function l(...
|
|
1562
|
-
return
|
|
1563
|
-
const
|
|
1564
|
-
|
|
1565
|
-
}),
|
|
1596
|
+
function l(...n) {
|
|
1597
|
+
return n.reduce((d, o) => (Object.keys(o ?? {}).forEach((c) => {
|
|
1598
|
+
const y = d[c], a = o[c];
|
|
1599
|
+
c in U && typeof a == "boolean" || (c in U && Array.isArray(a) ? d[c] = l(y, a[1] ?? {}) : Array.isArray(y) && Array.isArray(a) ? d[c] = y.concat(...a) : r(y) && r(a) ? d[c] = l(y, a) : d[c] = a);
|
|
1600
|
+
}), d), {});
|
|
1566
1601
|
}
|
|
1567
1602
|
e.mergeDeep = l;
|
|
1568
|
-
function
|
|
1569
|
-
return
|
|
1603
|
+
function s(n, d) {
|
|
1604
|
+
return n in d;
|
|
1570
1605
|
}
|
|
1571
|
-
e.isKeyOf =
|
|
1572
|
-
})(
|
|
1573
|
-
const
|
|
1574
|
-
class
|
|
1606
|
+
e.isKeyOf = s;
|
|
1607
|
+
})(X || (X = {}));
|
|
1608
|
+
const C = X;
|
|
1609
|
+
class pe {
|
|
1575
1610
|
constructor() {
|
|
1576
1611
|
this._index = 0, this._cache = {};
|
|
1577
1612
|
}
|
|
@@ -1579,497 +1614,526 @@ class be {
|
|
|
1579
1614
|
return this._cache[t] || (this._cache[t] = this.getByIndex(this._index++)), this._cache[t];
|
|
1580
1615
|
}
|
|
1581
1616
|
getByIndex(t) {
|
|
1582
|
-
const { first: r, next: l } =
|
|
1583
|
-
if (
|
|
1617
|
+
const { first: r, next: l } = we, s = t - r.length;
|
|
1618
|
+
if (s < 0)
|
|
1584
1619
|
return r[t];
|
|
1585
|
-
const
|
|
1586
|
-
return this.getByIndex(
|
|
1620
|
+
const n = Math.floor(s / l.length), d = s - n * l.length;
|
|
1621
|
+
return this.getByIndex(n) + l[d];
|
|
1587
1622
|
}
|
|
1588
1623
|
}
|
|
1589
|
-
const
|
|
1624
|
+
const we = {
|
|
1590
1625
|
first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
|
1591
1626
|
next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1627
|
+
}, R = {
|
|
1628
|
+
button: {
|
|
1629
|
+
styles: {
|
|
1630
|
+
display: "inline-flex",
|
|
1631
|
+
color: "white",
|
|
1632
|
+
bgColor: "violet-500",
|
|
1633
|
+
borderColor: "violet-500",
|
|
1634
|
+
p: 3,
|
|
1635
|
+
cursor: "pointer",
|
|
1636
|
+
b: 1,
|
|
1637
|
+
borderRadius: 1,
|
|
1638
|
+
userSelect: "none",
|
|
1639
|
+
lineHeight: 20,
|
|
1640
|
+
hover: {
|
|
1641
|
+
bgColor: "violet-600",
|
|
1642
|
+
borderColor: "violet-600"
|
|
1643
|
+
},
|
|
1644
|
+
disabled: {
|
|
1645
|
+
cursor: "not-allowed",
|
|
1646
|
+
bgColor: "violet-50",
|
|
1647
|
+
color: "gray-400",
|
|
1648
|
+
borderColor: "gray-300"
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
},
|
|
1652
|
+
textbox: {
|
|
1653
|
+
styles: {
|
|
1654
|
+
display: "inline-block",
|
|
1655
|
+
b: 1,
|
|
1656
|
+
borderColor: "violet-200",
|
|
1657
|
+
bgColor: "violet-50",
|
|
1658
|
+
color: "violet-950",
|
|
1659
|
+
borderRadius: 1,
|
|
1660
|
+
p: 3,
|
|
1661
|
+
transition: "none",
|
|
1662
|
+
lineHeight: 20,
|
|
1663
|
+
hover: {
|
|
1664
|
+
borderColor: "violet-300"
|
|
1665
|
+
},
|
|
1666
|
+
focus: {
|
|
1667
|
+
outline: 1,
|
|
1668
|
+
borderColor: "violet-500",
|
|
1669
|
+
outlineColor: "violet-500"
|
|
1670
|
+
},
|
|
1671
|
+
disabled: {
|
|
1672
|
+
cursor: "not-allowed",
|
|
1673
|
+
bgColor: "violet-50",
|
|
1674
|
+
color: "gray-400",
|
|
1675
|
+
borderColor: "gray-300"
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
},
|
|
1679
|
+
textarea: {
|
|
1680
|
+
styles: {
|
|
1681
|
+
display: "inline-block",
|
|
1682
|
+
b: 1,
|
|
1683
|
+
borderColor: "violet-200",
|
|
1684
|
+
bgColor: "violet-50",
|
|
1685
|
+
color: "violet-950",
|
|
1686
|
+
borderRadius: 1,
|
|
1687
|
+
p: 3,
|
|
1688
|
+
transition: "none",
|
|
1689
|
+
hover: {
|
|
1690
|
+
borderColor: "violet-300"
|
|
1691
|
+
},
|
|
1692
|
+
focus: {
|
|
1693
|
+
outline: 1,
|
|
1694
|
+
borderColor: "violet-500",
|
|
1695
|
+
outlineColor: "violet-500"
|
|
1696
|
+
},
|
|
1697
|
+
disabled: {
|
|
1698
|
+
cursor: "not-allowed",
|
|
1699
|
+
bgColor: "violet-50",
|
|
1700
|
+
color: "gray-400",
|
|
1701
|
+
borderColor: "gray-300",
|
|
1702
|
+
resize: "none"
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
},
|
|
1706
|
+
checkbox: {
|
|
1707
|
+
styles: {
|
|
1708
|
+
display: "inline-block",
|
|
1709
|
+
appearance: "none",
|
|
1710
|
+
b: 1,
|
|
1711
|
+
borderColor: "violet-300",
|
|
1712
|
+
borderRadius: 1,
|
|
1713
|
+
p: 2,
|
|
1714
|
+
cursor: "pointer",
|
|
1715
|
+
transition: "none",
|
|
1716
|
+
hover: {
|
|
1717
|
+
borderColor: "violet-500"
|
|
1718
|
+
},
|
|
1719
|
+
focus: {
|
|
1720
|
+
outline: 2,
|
|
1721
|
+
outlineOffset: 2,
|
|
1722
|
+
outlineColor: "violet-500"
|
|
1723
|
+
},
|
|
1724
|
+
checked: {
|
|
1725
|
+
bgColor: "violet-500",
|
|
1726
|
+
borderColor: "violet-500",
|
|
1727
|
+
bgImage: "bg-img-checked"
|
|
1728
|
+
},
|
|
1729
|
+
indeterminate: {
|
|
1730
|
+
color: "violet-500",
|
|
1731
|
+
bgImage: "bg-img-indeterminate"
|
|
1732
|
+
},
|
|
1733
|
+
disabled: {
|
|
1734
|
+
cursor: "not-allowed",
|
|
1735
|
+
bgColor: "violet-100",
|
|
1736
|
+
color: "gray-400",
|
|
1737
|
+
borderColor: "gray-300"
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
},
|
|
1741
|
+
radioButton: {
|
|
1742
|
+
styles: {
|
|
1743
|
+
appearance: "none",
|
|
1744
|
+
b: 1,
|
|
1745
|
+
borderColor: "violet-300",
|
|
1746
|
+
borderRadius: 3,
|
|
1747
|
+
p: 2,
|
|
1748
|
+
cursor: "pointer",
|
|
1749
|
+
transition: "none",
|
|
1750
|
+
hover: {
|
|
1751
|
+
borderColor: "violet-500"
|
|
1752
|
+
},
|
|
1753
|
+
focus: {
|
|
1754
|
+
outline: 2,
|
|
1755
|
+
outlineOffset: 2,
|
|
1756
|
+
outlineColor: "violet-500"
|
|
1757
|
+
},
|
|
1758
|
+
checked: {
|
|
1759
|
+
bgColor: "violet-500",
|
|
1760
|
+
borderColor: "violet-500",
|
|
1761
|
+
bgImage: "bg-img-radio"
|
|
1762
|
+
},
|
|
1763
|
+
disabled: {
|
|
1764
|
+
cursor: "not-allowed",
|
|
1765
|
+
bgColor: "violet-100",
|
|
1766
|
+
color: "gray-400",
|
|
1767
|
+
borderColor: "violet-200"
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
},
|
|
1771
|
+
dropdown: {
|
|
1772
|
+
styles: {
|
|
1773
|
+
display: "inline-flex",
|
|
1774
|
+
ai: "center",
|
|
1775
|
+
gap: 2,
|
|
1776
|
+
jc: "space-between",
|
|
1777
|
+
p: 3,
|
|
1778
|
+
cursor: "pointer",
|
|
1779
|
+
bgColor: "violet-50",
|
|
1780
|
+
color: "violet-950",
|
|
1781
|
+
b: 1,
|
|
1782
|
+
borderColor: "violet-200",
|
|
1783
|
+
borderRadius: 1,
|
|
1784
|
+
userSelect: "none",
|
|
1785
|
+
lineHeight: 20,
|
|
1786
|
+
minWidth: 40,
|
|
1787
|
+
transition: "none",
|
|
1788
|
+
hover: {
|
|
1789
|
+
borderColor: "violet-300"
|
|
1790
|
+
},
|
|
1791
|
+
focus: {
|
|
1792
|
+
outline: 1,
|
|
1793
|
+
borderColor: "violet-500",
|
|
1794
|
+
outlineColor: "violet-500"
|
|
1795
|
+
},
|
|
1796
|
+
disabled: {
|
|
1797
|
+
cursor: "not-allowed",
|
|
1798
|
+
bgColor: "violet-50",
|
|
1799
|
+
color: "gray-400",
|
|
1800
|
+
borderColor: "gray-300"
|
|
1801
|
+
}
|
|
1802
|
+
},
|
|
1803
|
+
children: {
|
|
1804
|
+
display: {
|
|
1805
|
+
styles: {
|
|
1806
|
+
whiteSpace: "nowrap",
|
|
1807
|
+
textOverflow: "ellipsis",
|
|
1808
|
+
overflow: "hidden"
|
|
1809
|
+
}
|
|
1810
|
+
},
|
|
1811
|
+
items: {
|
|
1812
|
+
styles: {
|
|
1813
|
+
display: "flex",
|
|
1814
|
+
d: "column",
|
|
1815
|
+
gap: 1,
|
|
1816
|
+
p: 1,
|
|
1817
|
+
b: 1,
|
|
1818
|
+
borderRadius: 1,
|
|
1819
|
+
position: "relative",
|
|
1820
|
+
top: 1,
|
|
1821
|
+
bgColor: "white",
|
|
1822
|
+
overflow: "auto",
|
|
1823
|
+
maxHeight: 62,
|
|
1824
|
+
borderColor: "violet-300",
|
|
1825
|
+
color: "violet-950",
|
|
1826
|
+
shadow: "medium-shadow"
|
|
1827
|
+
}
|
|
1828
|
+
},
|
|
1829
|
+
item: {
|
|
1830
|
+
styles: {
|
|
1831
|
+
display: "flex",
|
|
1832
|
+
width: "fit",
|
|
1833
|
+
p: 3,
|
|
1834
|
+
cursor: "pointer",
|
|
1835
|
+
borderRadius: 1,
|
|
1836
|
+
hover: {
|
|
1837
|
+
bgColor: "gray-100"
|
|
1838
|
+
},
|
|
1839
|
+
focus: {
|
|
1840
|
+
bgColor: "violet-50"
|
|
1841
|
+
},
|
|
1842
|
+
selected: {
|
|
1843
|
+
bgColor: "violet-50",
|
|
1844
|
+
cursor: "default",
|
|
1845
|
+
hover: {
|
|
1846
|
+
bgColor: "violet-100"
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
},
|
|
1850
|
+
themes: {
|
|
1851
|
+
multiple: {
|
|
1852
|
+
selected: {
|
|
1853
|
+
cursor: "pointer"
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
},
|
|
1858
|
+
unselectItem: {
|
|
1859
|
+
styles: {
|
|
1860
|
+
display: "flex",
|
|
1861
|
+
width: "fit",
|
|
1862
|
+
p: 3,
|
|
1863
|
+
cursor: "pointer",
|
|
1864
|
+
lineHeight: 20,
|
|
1865
|
+
borderRadius: 1,
|
|
1866
|
+
color: "violet-400",
|
|
1867
|
+
hover: {
|
|
1868
|
+
bgColor: "violet-50"
|
|
1869
|
+
},
|
|
1870
|
+
focus: {
|
|
1871
|
+
bgColor: "violet-50"
|
|
1872
|
+
},
|
|
1873
|
+
selected: {
|
|
1874
|
+
bgColor: "violet-50",
|
|
1875
|
+
cursor: "default"
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
},
|
|
1879
|
+
emptyItem: {
|
|
1880
|
+
styles: {
|
|
1881
|
+
display: "flex",
|
|
1882
|
+
width: "fit",
|
|
1883
|
+
p: 3,
|
|
1884
|
+
cursor: "default",
|
|
1885
|
+
lineHeight: 20,
|
|
1886
|
+
borderRadius: 1,
|
|
1887
|
+
color: "violet-400"
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
}, P = ve.createContext({ themeStyles: R, theme: "", setTheme: () => {
|
|
1893
|
+
} });
|
|
1894
|
+
function xe(e) {
|
|
1895
|
+
const { clean: t, theme: r, component: l } = e, { themeStyles: s } = se(P);
|
|
1896
|
+
return L(() => {
|
|
1897
|
+
var o;
|
|
1601
1898
|
if (t) return;
|
|
1602
|
-
const
|
|
1603
|
-
if (!
|
|
1604
|
-
const
|
|
1605
|
-
var
|
|
1606
|
-
return
|
|
1899
|
+
const n = l == null ? void 0 : l.split(".");
|
|
1900
|
+
if (!n) return;
|
|
1901
|
+
const d = n.reduce((c, y, a) => {
|
|
1902
|
+
var v;
|
|
1903
|
+
return a === 0 ? s == null ? void 0 : s[y] : (v = c == null ? void 0 : c.children) == null ? void 0 : v[y];
|
|
1607
1904
|
}, void 0);
|
|
1608
|
-
if (
|
|
1609
|
-
return r ?
|
|
1610
|
-
}, [l, t, r]);
|
|
1905
|
+
if (d)
|
|
1906
|
+
return r ? C.mergeDeep(d.styles, ((o = d.themes) == null ? void 0 : o[r]) ?? {}) : d.styles;
|
|
1907
|
+
}, [l, t, r, s]);
|
|
1611
1908
|
}
|
|
1612
|
-
const
|
|
1613
|
-
var
|
|
1614
|
-
const
|
|
1615
|
-
function
|
|
1616
|
-
|
|
1617
|
-
const r =
|
|
1618
|
-
return
|
|
1619
|
-
const l = [t ?
|
|
1620
|
-
return
|
|
1909
|
+
const Ne = new pe(), Fe = typeof window < "u" && typeof window.document < "u";
|
|
1910
|
+
var le;
|
|
1911
|
+
const ce = typeof process == "object" && ((le = process.env) == null ? void 0 : le.NODE_ENV) === "test", $e = Fe && !ce ? be : ie, fe = "_b", S = "_s";
|
|
1912
|
+
function Ee(e, t) {
|
|
1913
|
+
$e(A.flush, [e]);
|
|
1914
|
+
const r = xe(e);
|
|
1915
|
+
return L(() => {
|
|
1916
|
+
const l = [t ? S : fe], s = r ? C.mergeDeep(r, e) : e;
|
|
1917
|
+
return A.addClassNames(s, l, []), l;
|
|
1621
1918
|
}, [e, t, r]);
|
|
1622
1919
|
}
|
|
1623
|
-
var
|
|
1920
|
+
var A;
|
|
1624
1921
|
((e) => {
|
|
1625
1922
|
let t = !0, r = {};
|
|
1626
|
-
function l(a, v,
|
|
1627
|
-
Object.entries(a).forEach(([m,
|
|
1628
|
-
if (
|
|
1629
|
-
|
|
1630
|
-
else if (
|
|
1631
|
-
l(
|
|
1632
|
-
else if (
|
|
1633
|
-
if (Array.isArray(
|
|
1634
|
-
const [w, x] =
|
|
1635
|
-
l(x, v, [...
|
|
1923
|
+
function l(a, v, g, b, i) {
|
|
1924
|
+
Object.entries(a).forEach(([m, f]) => {
|
|
1925
|
+
if (C.isKeyOf(m, E))
|
|
1926
|
+
d(m, f, v, g, b, i);
|
|
1927
|
+
else if (C.isKeyOf(m, ue))
|
|
1928
|
+
l(f, v, [...g, m], b, i);
|
|
1929
|
+
else if (C.isKeyOf(m, U)) {
|
|
1930
|
+
if (Array.isArray(f)) {
|
|
1931
|
+
const [w, x] = f;
|
|
1932
|
+
l(x, v, [...g, m], b, i);
|
|
1636
1933
|
}
|
|
1637
|
-
|
|
1638
|
-
} else
|
|
1639
|
-
l(x, v, [...
|
|
1934
|
+
C.isObject(f) && l(f, v, [...g, m], b, i);
|
|
1935
|
+
} else C.isKeyOf(m, H) ? l(f, v, g, m, i) : C.isKeyOf(m, q) && (typeof f == "string" ? v.push(`${q[m]}-${f}`) : Object.entries(f).forEach(([w, x]) => {
|
|
1936
|
+
l(x, v, [...g, q[m]], b, w);
|
|
1640
1937
|
}));
|
|
1641
1938
|
});
|
|
1642
1939
|
}
|
|
1643
1940
|
e.addClassNames = l;
|
|
1644
|
-
function
|
|
1941
|
+
function s() {
|
|
1645
1942
|
if (!t) return;
|
|
1646
1943
|
console.debug("\x1B[36m%s\x1B[0m", "[react-box]: flush");
|
|
1647
|
-
const a = Object.entries(E).reduce((m, [
|
|
1944
|
+
const a = Object.entries(E).reduce((m, [f], w) => (m[f] = 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;}
|
|
1648
1945
|
html{font-size: 16px;font-family: Arial, sans-serif;}
|
|
1649
1946
|
body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}
|
|
1650
1947
|
a,ul{all: unset;}
|
|
1651
|
-
.${
|
|
1652
|
-
.${
|
|
1653
|
-
`,
|
|
1654
|
-
|
|
1655
|
-
([m], [
|
|
1948
|
+
.${fe}{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;}
|
|
1949
|
+
.${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);}
|
|
1950
|
+
`, g = Object.entries(r);
|
|
1951
|
+
g.sort(
|
|
1952
|
+
([m], [f]) => (H[m] ?? 0) - (H[f] ?? 0)
|
|
1656
1953
|
);
|
|
1657
|
-
const b =
|
|
1658
|
-
(m, [
|
|
1659
|
-
const { __parents:
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
var
|
|
1663
|
-
const h = E[
|
|
1954
|
+
const b = g.reduce(
|
|
1955
|
+
(m, [f, w]) => (f !== "normal" && m.push(`@media(min-width: ${H[f]}px){`), Object.entries(w).forEach(([x, D]) => {
|
|
1956
|
+
const { __parents: ee, ...me } = D, te = Object.entries(me);
|
|
1957
|
+
te.sort(([F], [T]) => a[F] - a[T]), te.forEach(([F, T]) => {
|
|
1958
|
+
T.forEach((V) => {
|
|
1959
|
+
var I, k;
|
|
1960
|
+
const h = E[F].find(($) => Array.isArray($.values) ? $.values.includes(V) : typeof V == typeof $.values);
|
|
1664
1961
|
if (!h) return;
|
|
1665
|
-
const
|
|
1666
|
-
m.push(`${p}{${
|
|
1962
|
+
const z = o(F, V, +x, f), K = W[+x].map(($) => Z[$]).join(""), p = ((I = h.selector) == null ? void 0 : I.call(h, `.${z}`, K)) ?? `.${z}${K}`, B = Array.isArray(h.styleName) ? h.styleName : [h.styleName ?? F], O = ((k = h.valueFormat) == null ? void 0 : k.call(h, V, N.getVariableValue)) ?? V;
|
|
1963
|
+
m.push(`${p}{${B.map(($) => `${$}:${O}`).join(";")}}`);
|
|
1667
1964
|
});
|
|
1668
|
-
}),
|
|
1669
|
-
const
|
|
1670
|
-
|
|
1671
|
-
h.forEach((
|
|
1672
|
-
var
|
|
1673
|
-
const p = E[j].find((
|
|
1965
|
+
}), ee && Object.entries(ee).forEach(([F, T]) => {
|
|
1966
|
+
const V = Object.entries(T);
|
|
1967
|
+
V.sort(([j], [h]) => a[j] - a[h]), V.forEach(([j, h]) => {
|
|
1968
|
+
h.forEach((z) => {
|
|
1969
|
+
var re, oe;
|
|
1970
|
+
const p = E[j].find((_) => Array.isArray(_.values) ? _.values.includes(z) : typeof z == typeof _.values);
|
|
1674
1971
|
if (!p) return;
|
|
1675
|
-
const
|
|
1676
|
-
m.push(`${
|
|
1972
|
+
const B = o(j, z, +x, f, F), [O] = W[+x], I = ((re = p.selector) == null ? void 0 : re.call(p, `.${O}-${F}:${O} .${B}`, "")) ?? `.${O}-${F}:${O} .${B}`, k = Array.isArray(p.styleName) ? p.styleName : [p.styleName ?? j], $ = ((oe = p.valueFormat) == null ? void 0 : oe.call(p, z, N.getVariableValue)) ?? z;
|
|
1973
|
+
m.push(`${I}{${k.map((_) => `${_}:${$}`).join(";")}}`);
|
|
1677
1974
|
});
|
|
1678
1975
|
});
|
|
1679
1976
|
});
|
|
1680
|
-
}),
|
|
1977
|
+
}), f !== "normal" && m.push("}"), m),
|
|
1681
1978
|
[v]
|
|
1682
1979
|
);
|
|
1683
|
-
b.unshift(`:root{${
|
|
1684
|
-
const i =
|
|
1980
|
+
b.unshift(`:root{${N.generateVariables()}}`);
|
|
1981
|
+
const i = y();
|
|
1685
1982
|
i.innerHTML = b.join(""), t = !1;
|
|
1686
1983
|
}
|
|
1687
|
-
e.flush =
|
|
1688
|
-
function
|
|
1984
|
+
e.flush = s;
|
|
1985
|
+
function n() {
|
|
1689
1986
|
r = {};
|
|
1690
1987
|
}
|
|
1691
|
-
e.clear =
|
|
1692
|
-
function
|
|
1988
|
+
e.clear = n;
|
|
1989
|
+
function d(a, v, g, b, i = "normal", m) {
|
|
1693
1990
|
if (v == null) return;
|
|
1694
|
-
const
|
|
1695
|
-
r[i] ? r[i][
|
|
1696
|
-
const w = o(a, v,
|
|
1697
|
-
|
|
1991
|
+
const f = b.reduce((x, D) => x + de[D], 0);
|
|
1992
|
+
r[i] ? r[i][f] ? r[i][f][a] || (r[i][f][a] = /* @__PURE__ */ new Set()) : r[i][f] = { [a]: /* @__PURE__ */ new Set() } : r[i] = { [f]: { [a]: /* @__PURE__ */ new Set() } }, m ? (r[i][f].__parents ? r[i][f].__parents[m] ? r[i][f].__parents[m][a] || (r[i][f].__parents[m][a] = /* @__PURE__ */ new Set()) : r[i][f].__parents[m] = { [a]: /* @__PURE__ */ new Set() } : r[i][f].__parents = { [m]: { [a]: /* @__PURE__ */ new Set() } }, r[i][f].__parents[m][a].has(v) || (r[i][f].__parents[m][a].add(v), t = !0)) : r[i][f][a].has(v) || (r[i][f][a].add(v), t = !0);
|
|
1993
|
+
const w = o(a, v, f, i, m);
|
|
1994
|
+
g.push(w);
|
|
1698
1995
|
}
|
|
1699
|
-
function o(a, v,
|
|
1700
|
-
const m =
|
|
1701
|
-
return
|
|
1996
|
+
function o(a, v, g, b, i) {
|
|
1997
|
+
const m = W[g], f = `${b === "normal" ? "" : `${b}-`}${m.map((w) => `${w}-`).join("")}${i ? `${i}-` : ""}${a}-${v}`;
|
|
1998
|
+
return ce ? f : Ne.getIdentity(f);
|
|
1702
1999
|
}
|
|
1703
|
-
const
|
|
1704
|
-
function
|
|
1705
|
-
let a = document.getElementById(
|
|
1706
|
-
return a || (a = document.createElement("style"), a.setAttribute("id",
|
|
2000
|
+
const c = "crono-styles";
|
|
2001
|
+
function y() {
|
|
2002
|
+
let a = document.getElementById(c);
|
|
2003
|
+
return a || (a = document.createElement("style"), a.setAttribute("id", c), a.setAttribute("type", "text/css"), document.head.insertBefore(a, document.head.firstChild)), a;
|
|
1707
2004
|
}
|
|
1708
|
-
})(
|
|
1709
|
-
var
|
|
2005
|
+
})(A || (A = {}));
|
|
2006
|
+
var ae;
|
|
1710
2007
|
((e) => {
|
|
1711
|
-
e.flush =
|
|
1712
|
-
})(
|
|
1713
|
-
var
|
|
2008
|
+
e.flush = A.flush, e.clear = A.clear;
|
|
2009
|
+
})(ae || (ae = {}));
|
|
2010
|
+
var Y;
|
|
1714
2011
|
((e) => {
|
|
1715
|
-
function t(r, l,
|
|
1716
|
-
return
|
|
1717
|
-
E[
|
|
1718
|
-
}), Object.entries(
|
|
1719
|
-
const o = E[
|
|
1720
|
-
E[
|
|
1721
|
-
}), { extendedProps: l, extendedPropTypes:
|
|
2012
|
+
function t(r, l, s) {
|
|
2013
|
+
return N.setUserVariables(r), Object.entries(l).forEach(([n, d]) => {
|
|
2014
|
+
E[n] = d;
|
|
2015
|
+
}), Object.entries(s).forEach(([n, d]) => {
|
|
2016
|
+
const o = E[n];
|
|
2017
|
+
E[n] = o ? [...d, ...o] : d;
|
|
2018
|
+
}), { extendedProps: l, extendedPropTypes: s };
|
|
1722
2019
|
}
|
|
1723
2020
|
e.extend = t;
|
|
1724
|
-
})(
|
|
1725
|
-
const
|
|
1726
|
-
|
|
2021
|
+
})(Y || (Y = {}));
|
|
2022
|
+
const je = Y;
|
|
2023
|
+
function G(e) {
|
|
2024
|
+
const { children: t, theme: r } = e, [l, s] = ne(r), n = L(() => {
|
|
2025
|
+
var a;
|
|
2026
|
+
const d = (a = G.userThemes) == null ? void 0 : a[l];
|
|
2027
|
+
if (!d) return R;
|
|
2028
|
+
const { components: o, ...c } = d, y = o ?? {};
|
|
2029
|
+
return Object.entries(c).forEach(([v, g]) => {
|
|
2030
|
+
y[v] = g;
|
|
2031
|
+
}), Object.keys(y).forEach((v) => {
|
|
2032
|
+
y[v].clean && v in R && delete R[v];
|
|
2033
|
+
}), C.mergeDeep(R, y);
|
|
2034
|
+
}, [l]);
|
|
2035
|
+
return /* @__PURE__ */ ge(P.Provider, { value: { themeStyles: n, theme: l, setTheme: s }, children: t });
|
|
2036
|
+
}
|
|
1727
2037
|
((e) => {
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
display: "inline-flex",
|
|
1732
|
-
color: "white",
|
|
1733
|
-
bgColor: "violet-500",
|
|
1734
|
-
borderColor: "violet-500",
|
|
1735
|
-
p: 3,
|
|
1736
|
-
cursor: "pointer",
|
|
1737
|
-
b: 1,
|
|
1738
|
-
borderRadius: 1,
|
|
1739
|
-
userSelect: "none",
|
|
1740
|
-
lineHeight: 20,
|
|
1741
|
-
hover: {
|
|
1742
|
-
bgColor: "violet-600",
|
|
1743
|
-
borderColor: "violet-600"
|
|
1744
|
-
},
|
|
1745
|
-
disabled: {
|
|
1746
|
-
cursor: "not-allowed",
|
|
1747
|
-
bgColor: "violet-50",
|
|
1748
|
-
color: "gray-400",
|
|
1749
|
-
borderColor: "gray-300"
|
|
1750
|
-
}
|
|
1751
|
-
}
|
|
1752
|
-
},
|
|
1753
|
-
textbox: {
|
|
1754
|
-
styles: {
|
|
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
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
},
|
|
1780
|
-
textarea: {
|
|
1781
|
-
styles: {
|
|
1782
|
-
display: "inline-block",
|
|
1783
|
-
b: 1,
|
|
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
|
-
}
|
|
1805
|
-
}
|
|
1806
|
-
},
|
|
1807
|
-
checkbox: {
|
|
1808
|
-
styles: {
|
|
1809
|
-
display: "inline-block",
|
|
1810
|
-
appearance: "none",
|
|
1811
|
-
b: 1,
|
|
1812
|
-
borderColor: "violet-300",
|
|
1813
|
-
borderRadius: 1,
|
|
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
|
-
}
|
|
1840
|
-
}
|
|
1841
|
-
},
|
|
1842
|
-
radioButton: {
|
|
1843
|
-
styles: {
|
|
1844
|
-
appearance: "none",
|
|
1845
|
-
b: 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
|
-
}
|
|
1870
|
-
}
|
|
1871
|
-
},
|
|
1872
|
-
dropdown: {
|
|
1873
|
-
styles: {
|
|
1874
|
-
display: "inline-flex",
|
|
1875
|
-
ai: "center",
|
|
1876
|
-
gap: 2,
|
|
1877
|
-
jc: "space-between",
|
|
1878
|
-
p: 3,
|
|
1879
|
-
cursor: "pointer",
|
|
1880
|
-
bgColor: "violet-50",
|
|
1881
|
-
color: "violet-950",
|
|
1882
|
-
b: 1,
|
|
1883
|
-
borderColor: "violet-200",
|
|
1884
|
-
borderRadius: 1,
|
|
1885
|
-
userSelect: "none",
|
|
1886
|
-
lineHeight: 20,
|
|
1887
|
-
minWidth: 40,
|
|
1888
|
-
transition: "none",
|
|
1889
|
-
hover: {
|
|
1890
|
-
borderColor: "violet-300"
|
|
1891
|
-
},
|
|
1892
|
-
focus: {
|
|
1893
|
-
outline: 1,
|
|
1894
|
-
borderColor: "violet-500",
|
|
1895
|
-
outlineColor: "violet-500"
|
|
1896
|
-
},
|
|
1897
|
-
disabled: {
|
|
1898
|
-
cursor: "not-allowed",
|
|
1899
|
-
bgColor: "violet-50",
|
|
1900
|
-
color: "gray-400",
|
|
1901
|
-
borderColor: "gray-300"
|
|
1902
|
-
}
|
|
1903
|
-
},
|
|
1904
|
-
children: {
|
|
1905
|
-
items: {
|
|
1906
|
-
styles: {
|
|
1907
|
-
display: "flex",
|
|
1908
|
-
d: "column",
|
|
1909
|
-
gap: 1,
|
|
1910
|
-
p: 1,
|
|
1911
|
-
b: 1,
|
|
1912
|
-
borderRadius: 1,
|
|
1913
|
-
position: "relative",
|
|
1914
|
-
top: 1,
|
|
1915
|
-
bgColor: "white",
|
|
1916
|
-
overflow: "auto",
|
|
1917
|
-
maxHeight: 62,
|
|
1918
|
-
borderColor: "violet-300",
|
|
1919
|
-
color: "violet-950"
|
|
1920
|
-
}
|
|
1921
|
-
},
|
|
1922
|
-
item: {
|
|
1923
|
-
styles: {
|
|
1924
|
-
display: "flex",
|
|
1925
|
-
width: "fit",
|
|
1926
|
-
p: 3,
|
|
1927
|
-
cursor: "pointer",
|
|
1928
|
-
lineHeight: 20,
|
|
1929
|
-
borderRadius: 1,
|
|
1930
|
-
hover: {
|
|
1931
|
-
bgColor: "violet-50"
|
|
1932
|
-
},
|
|
1933
|
-
focus: {
|
|
1934
|
-
bgColor: "violet-50"
|
|
1935
|
-
},
|
|
1936
|
-
selected: {
|
|
1937
|
-
bgColor: "violet-50",
|
|
1938
|
-
cursor: "default"
|
|
1939
|
-
}
|
|
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
|
-
}
|
|
1973
|
-
}
|
|
1974
|
-
}
|
|
1975
|
-
}
|
|
1976
|
-
};
|
|
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);
|
|
2038
|
+
e.userThemes = void 0;
|
|
2039
|
+
function t(l) {
|
|
2040
|
+
e.userThemes = l;
|
|
1982
2041
|
}
|
|
1983
|
-
e.setup =
|
|
1984
|
-
|
|
1985
|
-
const
|
|
2042
|
+
e.setup = t;
|
|
2043
|
+
function r() {
|
|
2044
|
+
const { theme: l, setTheme: s } = se(P);
|
|
2045
|
+
return [l, s];
|
|
2046
|
+
}
|
|
2047
|
+
e.useTheme = r;
|
|
2048
|
+
})(G || (G = {}));
|
|
2049
|
+
const Oe = G, Ce = {
|
|
1986
2050
|
selected: "aria-selected"
|
|
1987
2051
|
};
|
|
1988
|
-
var
|
|
2052
|
+
var J;
|
|
1989
2053
|
((e) => {
|
|
1990
|
-
function t(r, l,
|
|
1991
|
-
r !== void 0 && r != null && (
|
|
2054
|
+
function t(r, l, s) {
|
|
2055
|
+
r !== void 0 && r != null && (s[Ce[l] ?? l] = Array.isArray(r) ? r[0] : r);
|
|
1992
2056
|
}
|
|
1993
2057
|
e.assignBooleanProp = t;
|
|
1994
|
-
})(
|
|
1995
|
-
const
|
|
1996
|
-
|
|
1997
|
-
return
|
|
2058
|
+
})(J || (J = {}));
|
|
2059
|
+
const Se = J;
|
|
2060
|
+
Array.prototype.removeBy || (Array.prototype.removeBy = function(e) {
|
|
2061
|
+
return this.filter(e);
|
|
2062
|
+
});
|
|
2063
|
+
function Ae(e = null) {
|
|
2064
|
+
const [t, r] = ne(!1), l = ye(null);
|
|
2065
|
+
return ie(() => {
|
|
2066
|
+
function s(d) {
|
|
2067
|
+
const o = e ?? l.current;
|
|
2068
|
+
(o == null ? void 0 : o.contains(d.target)) === !1 && r(!1);
|
|
2069
|
+
}
|
|
2070
|
+
function n(d) {
|
|
2071
|
+
d.key === "Escape" && r(!1);
|
|
2072
|
+
}
|
|
2073
|
+
return t && (window.addEventListener("mousedown", s), window.addEventListener("keydown", n)), () => {
|
|
2074
|
+
window.removeEventListener("mousedown", s), window.removeEventListener("keydown", n);
|
|
2075
|
+
};
|
|
2076
|
+
}, [e, t]), [t, r, l];
|
|
2077
|
+
}
|
|
2078
|
+
function Te() {
|
|
2079
|
+
return L(() => {
|
|
1998
2080
|
const e = "crono-box";
|
|
1999
2081
|
let t = document.getElementById(e);
|
|
2000
2082
|
return t || (t = document.createElement("div"), t.id = e, document.body.appendChild(t)), t;
|
|
2001
2083
|
}, []);
|
|
2002
2084
|
}
|
|
2003
|
-
|
|
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);
|
|
2009
|
-
}
|
|
2010
|
-
function s() {
|
|
2011
|
-
r(!1);
|
|
2012
|
-
}
|
|
2013
|
-
function f(o) {
|
|
2014
|
-
o.key === "Escape" && r(!1);
|
|
2015
|
-
}
|
|
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);
|
|
2018
|
-
};
|
|
2019
|
-
}, [e, t]), [t, r, l];
|
|
2020
|
-
}
|
|
2021
|
-
var J;
|
|
2085
|
+
var Q;
|
|
2022
2086
|
((e) => {
|
|
2023
2087
|
function t(l) {
|
|
2024
|
-
const
|
|
2025
|
-
(
|
|
2026
|
-
const o =
|
|
2027
|
-
return o && (
|
|
2088
|
+
const s = Array.from(l.elements).reduce(
|
|
2089
|
+
(n, d) => {
|
|
2090
|
+
const o = d.name;
|
|
2091
|
+
return o && (n[o] || (n[o] = []), n[o].push(d)), n;
|
|
2028
2092
|
},
|
|
2029
2093
|
{}
|
|
2030
2094
|
);
|
|
2031
|
-
return Object.entries(
|
|
2095
|
+
return Object.entries(s).reduce((n, [d, o]) => {
|
|
2032
2096
|
if (o.length === 1) {
|
|
2033
|
-
const
|
|
2034
|
-
r(
|
|
2097
|
+
const c = o[0];
|
|
2098
|
+
r(n, d, c.type === "checkbox" || c.type === "radio" ? c.checked : c.value);
|
|
2035
2099
|
} else {
|
|
2036
|
-
const
|
|
2037
|
-
r(
|
|
2100
|
+
const c = o.reduce((y, a) => (a.type === "checkbox" || a.type === "radio" ? a.checked && y.push(a.value) : y.push(a.value), y), []);
|
|
2101
|
+
r(n, d, c);
|
|
2038
2102
|
}
|
|
2039
|
-
return
|
|
2103
|
+
return n;
|
|
2040
2104
|
}, {});
|
|
2041
2105
|
}
|
|
2042
2106
|
e.getFormEntries = t;
|
|
2043
|
-
function r(l,
|
|
2044
|
-
if (
|
|
2045
|
-
const
|
|
2107
|
+
function r(l, s, n) {
|
|
2108
|
+
if (s.includes(".")) {
|
|
2109
|
+
const d = s.split(".");
|
|
2046
2110
|
let o = l;
|
|
2047
|
-
|
|
2048
|
-
if (
|
|
2049
|
-
const a =
|
|
2111
|
+
d.forEach((c, y) => {
|
|
2112
|
+
if (d.length > y + 1) {
|
|
2113
|
+
const a = c.match(/^(.+)\[(\d)\]$/);
|
|
2050
2114
|
if (a) {
|
|
2051
|
-
const [, v,
|
|
2052
|
-
o[v] = o[v] || [], o[v][
|
|
2115
|
+
const [, v, g] = a;
|
|
2116
|
+
o[v] = o[v] || [], o[v][g] = o[v][g] || {}, o = o[v][g];
|
|
2053
2117
|
} else
|
|
2054
|
-
o[
|
|
2118
|
+
o[c] = o[c] || {}, o = o[c];
|
|
2055
2119
|
} else
|
|
2056
|
-
o[
|
|
2120
|
+
o[c] = n;
|
|
2057
2121
|
});
|
|
2058
2122
|
} else
|
|
2059
|
-
l[
|
|
2123
|
+
l[s] = n;
|
|
2060
2124
|
}
|
|
2061
|
-
})(
|
|
2062
|
-
const
|
|
2125
|
+
})(Q || (Q = {}));
|
|
2126
|
+
const _e = Q;
|
|
2063
2127
|
export {
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2128
|
+
je as B,
|
|
2129
|
+
_e as F,
|
|
2130
|
+
C as O,
|
|
2131
|
+
ae as S,
|
|
2132
|
+
Oe as T,
|
|
2133
|
+
N as V,
|
|
2134
|
+
Se as a,
|
|
2135
|
+
Ae as b,
|
|
2136
|
+
he as c,
|
|
2137
|
+
Te as d,
|
|
2138
|
+
Ee as u
|
|
2075
2139
|
};
|