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