@cronocode/react-box 3.0.2 → 3.0.4
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/README.md +1 -1
- package/box.cjs +1 -1
- package/box.d.ts +2 -0
- package/box.mjs +14 -13
- package/components/dropdown.cjs +1 -0
- package/components/dropdown.d.ts +18 -0
- package/components/dropdown.mjs +46 -0
- package/components/flex.mjs +3 -3
- package/components/tooltip.mjs +1 -1
- package/core/boxStyles.d.ts +4 -4
- package/core/coreTypes.d.ts +1 -1
- package/core/variables.d.ts +1 -1
- package/core.cjs +3 -3
- package/core.mjs +367 -283
- package/hooks/useVisibility.d.ts +1 -0
- package/package.json +1 -1
- package/types.d.ts +2 -1
- package/utils/box/boxUtils.d.ts +5 -0
package/core.mjs
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { useMemo as
|
|
2
|
-
function
|
|
3
|
-
return e.reduce((t, a) => a ? typeof a == "string" ? (t.push(a), t) : Array.isArray(a) ? (t.push(...
|
|
4
|
-
|
|
1
|
+
import { useMemo as Q, useLayoutEffect as fe, useEffect as se, useState as de, useRef as me } from "react";
|
|
2
|
+
function ve(...e) {
|
|
3
|
+
return e.reduce((t, a) => a ? typeof a == "string" ? (t.push(a), t) : Array.isArray(a) ? (t.push(...ve(...a)), t) : (Object.entries(a).forEach(([o, c]) => {
|
|
4
|
+
c && t.push(o);
|
|
5
5
|
}), t) : t, []);
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var u;
|
|
8
8
|
((e) => {
|
|
9
9
|
((t) => {
|
|
10
|
-
function a(
|
|
11
|
-
return `${
|
|
10
|
+
function a(c, s) {
|
|
11
|
+
return `${c}${s.replace("/", "-")}`;
|
|
12
12
|
}
|
|
13
13
|
t.fraction = a;
|
|
14
|
-
function
|
|
15
|
-
return [`${
|
|
14
|
+
function o(c) {
|
|
15
|
+
return [`${c} path`, `${c} circle`, `${c} rect`, `${c} line`];
|
|
16
16
|
}
|
|
17
|
-
t.svg =
|
|
17
|
+
t.svg = o;
|
|
18
18
|
})(e.ClassName || (e.ClassName = {})), ((t) => {
|
|
19
|
-
function a(
|
|
20
|
-
return `${
|
|
19
|
+
function a(b) {
|
|
20
|
+
return `${b / 4}rem`;
|
|
21
21
|
}
|
|
22
22
|
t.rem = a;
|
|
23
|
-
function
|
|
24
|
-
return `${
|
|
23
|
+
function o(b) {
|
|
24
|
+
return `${b}px`;
|
|
25
25
|
}
|
|
26
|
-
t.px =
|
|
27
|
-
function
|
|
28
|
-
const [
|
|
29
|
-
return `${+
|
|
26
|
+
t.px = o;
|
|
27
|
+
function c(b, n) {
|
|
28
|
+
const [m, d] = n.split("/");
|
|
29
|
+
return `${+m / +d * 100}%`;
|
|
30
30
|
}
|
|
31
|
-
t.fraction =
|
|
32
|
-
function
|
|
33
|
-
switch (
|
|
31
|
+
t.fraction = c;
|
|
32
|
+
function s(b, n) {
|
|
33
|
+
switch (n) {
|
|
34
34
|
case "fit":
|
|
35
35
|
return "100%";
|
|
36
36
|
case "fit-screen":
|
|
37
|
-
return
|
|
37
|
+
return b.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
|
|
38
38
|
default:
|
|
39
|
-
return
|
|
39
|
+
return n;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
t.widthHeight =
|
|
43
|
-
function
|
|
44
|
-
return (
|
|
42
|
+
t.widthHeight = s;
|
|
43
|
+
function l(b) {
|
|
44
|
+
return (n, m) => `var(--${b}${m});`;
|
|
45
45
|
}
|
|
46
|
-
t.variables =
|
|
47
|
-
function i(
|
|
48
|
-
return (
|
|
46
|
+
t.variables = l;
|
|
47
|
+
function i(b) {
|
|
48
|
+
return (n, m) => `var(--${b}${m});`;
|
|
49
49
|
}
|
|
50
50
|
t.svgVariables = i;
|
|
51
|
-
function
|
|
52
|
-
return `repeat(${
|
|
51
|
+
function f(b, n) {
|
|
52
|
+
return `repeat(${n},minmax(0,1fr))`;
|
|
53
53
|
}
|
|
54
|
-
t.gridColumns =
|
|
55
|
-
function b
|
|
56
|
-
return
|
|
54
|
+
t.gridColumns = f;
|
|
55
|
+
function y(b, n) {
|
|
56
|
+
return n === "full-row" ? "1/-1" : `span ${n}/span ${n}`;
|
|
57
57
|
}
|
|
58
|
-
t.gridColumn =
|
|
59
|
-
function r(
|
|
60
|
-
return `${
|
|
58
|
+
t.gridColumn = y;
|
|
59
|
+
function r(b, n) {
|
|
60
|
+
return `${n}ms`;
|
|
61
61
|
}
|
|
62
62
|
t.ms = r;
|
|
63
|
-
function v(
|
|
64
|
-
return `${
|
|
63
|
+
function v(b, n) {
|
|
64
|
+
return `${n}deg`;
|
|
65
65
|
}
|
|
66
66
|
t.rotate = v;
|
|
67
|
-
function h(
|
|
68
|
-
return
|
|
67
|
+
function h(b, n) {
|
|
68
|
+
return n === "xAxis" ? "-1 1" : "1 -1";
|
|
69
69
|
}
|
|
70
70
|
t.flip = h;
|
|
71
71
|
})(e.Value || (e.Value = {}));
|
|
72
|
-
})(
|
|
73
|
-
var
|
|
72
|
+
})(u || (u = {}));
|
|
73
|
+
var q;
|
|
74
74
|
((e) => {
|
|
75
75
|
e.colors = {
|
|
76
76
|
inherit: "inherit",
|
|
@@ -323,20 +323,20 @@ var W;
|
|
|
323
323
|
};
|
|
324
324
|
const t = {};
|
|
325
325
|
let a = {};
|
|
326
|
-
function
|
|
327
|
-
return
|
|
326
|
+
function o(l) {
|
|
327
|
+
return l in a ? t[l] = a[l] : l in e.colors && (t[l] = e.colors[l]), `var(--${l})`;
|
|
328
328
|
}
|
|
329
|
-
e.
|
|
330
|
-
function
|
|
331
|
-
return Object.entries(t).map(([
|
|
329
|
+
e.getVariableValue = o;
|
|
330
|
+
function c() {
|
|
331
|
+
return Object.entries(t).map(([l, i]) => `--${l}: ${i};`).join("");
|
|
332
332
|
}
|
|
333
|
-
e.generateVariables =
|
|
334
|
-
function l
|
|
335
|
-
a =
|
|
333
|
+
e.generateVariables = c;
|
|
334
|
+
function s(l) {
|
|
335
|
+
a = l;
|
|
336
336
|
}
|
|
337
|
-
e.setUserVariables =
|
|
338
|
-
})(
|
|
339
|
-
const E =
|
|
337
|
+
e.setUserVariables = s;
|
|
338
|
+
})(q || (q = {}));
|
|
339
|
+
const E = q, C = {
|
|
340
340
|
/** The appearance CSS property is used to display UI elements with platform-specific styling, based on the operating system's theme. */
|
|
341
341
|
appearance: [
|
|
342
342
|
{
|
|
@@ -348,7 +348,7 @@ const E = W, j = {
|
|
|
348
348
|
{
|
|
349
349
|
values: 0,
|
|
350
350
|
styleName: "border-width",
|
|
351
|
-
valueFormat:
|
|
351
|
+
valueFormat: u.Value.px
|
|
352
352
|
}
|
|
353
353
|
],
|
|
354
354
|
/** The border-width shorthand CSS property sets the width of an element's left and right border. */
|
|
@@ -356,7 +356,7 @@ const E = W, j = {
|
|
|
356
356
|
{
|
|
357
357
|
values: 0,
|
|
358
358
|
styleName: "border-inline-width",
|
|
359
|
-
valueFormat:
|
|
359
|
+
valueFormat: u.Value.px
|
|
360
360
|
}
|
|
361
361
|
],
|
|
362
362
|
/** The border-width shorthand CSS property sets the width of an element's top and bottom border. */
|
|
@@ -364,7 +364,7 @@ const E = W, j = {
|
|
|
364
364
|
{
|
|
365
365
|
values: 0,
|
|
366
366
|
styleName: "border-block-width",
|
|
367
|
-
valueFormat:
|
|
367
|
+
valueFormat: u.Value.px
|
|
368
368
|
}
|
|
369
369
|
],
|
|
370
370
|
/** The border-top-width CSS property sets the width of the top border of an element. */
|
|
@@ -372,7 +372,7 @@ const E = W, j = {
|
|
|
372
372
|
{
|
|
373
373
|
values: 0,
|
|
374
374
|
styleName: "border-top-width",
|
|
375
|
-
valueFormat:
|
|
375
|
+
valueFormat: u.Value.px
|
|
376
376
|
}
|
|
377
377
|
],
|
|
378
378
|
/** The border-right-width CSS property sets the width of the right border of an element. */
|
|
@@ -380,7 +380,7 @@ const E = W, j = {
|
|
|
380
380
|
{
|
|
381
381
|
values: 0,
|
|
382
382
|
styleName: "border-right-width",
|
|
383
|
-
valueFormat:
|
|
383
|
+
valueFormat: u.Value.px
|
|
384
384
|
}
|
|
385
385
|
],
|
|
386
386
|
/** The border-bottom-width CSS property sets the width of the bottom border of an element. */
|
|
@@ -388,7 +388,7 @@ const E = W, j = {
|
|
|
388
388
|
{
|
|
389
389
|
values: 0,
|
|
390
390
|
styleName: "border-bottom-width",
|
|
391
|
-
valueFormat:
|
|
391
|
+
valueFormat: u.Value.px
|
|
392
392
|
}
|
|
393
393
|
],
|
|
394
394
|
/** The border-left-width CSS property sets the width of the left border of an element. */
|
|
@@ -396,7 +396,7 @@ const E = W, j = {
|
|
|
396
396
|
{
|
|
397
397
|
values: 0,
|
|
398
398
|
styleName: "border-left-width",
|
|
399
|
-
valueFormat:
|
|
399
|
+
valueFormat: u.Value.px
|
|
400
400
|
}
|
|
401
401
|
],
|
|
402
402
|
/** The border-style shorthand CSS property sets the line style for all four sides of an element's border. */
|
|
@@ -411,7 +411,7 @@ const E = W, j = {
|
|
|
411
411
|
{
|
|
412
412
|
styleName: "border-radius",
|
|
413
413
|
values: 0,
|
|
414
|
-
valueFormat:
|
|
414
|
+
valueFormat: u.Value.rem
|
|
415
415
|
}
|
|
416
416
|
],
|
|
417
417
|
/** 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 +419,7 @@ const E = W, j = {
|
|
|
419
419
|
{
|
|
420
420
|
values: 0,
|
|
421
421
|
styleName: ["border-top-left-radius", "border-top-right-radius"],
|
|
422
|
-
valueFormat:
|
|
422
|
+
valueFormat: u.Value.rem
|
|
423
423
|
}
|
|
424
424
|
],
|
|
425
425
|
/** 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 +427,7 @@ const E = W, j = {
|
|
|
427
427
|
{
|
|
428
428
|
values: 0,
|
|
429
429
|
styleName: ["border-top-right-radius", "border-bottom-right-radius"],
|
|
430
|
-
valueFormat:
|
|
430
|
+
valueFormat: u.Value.rem
|
|
431
431
|
}
|
|
432
432
|
],
|
|
433
433
|
/** 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 +435,7 @@ const E = W, j = {
|
|
|
435
435
|
{
|
|
436
436
|
values: 0,
|
|
437
437
|
styleName: ["border-bottom-left-radius", "border-bottom-right-radius"],
|
|
438
|
-
valueFormat:
|
|
438
|
+
valueFormat: u.Value.rem
|
|
439
439
|
}
|
|
440
440
|
],
|
|
441
441
|
/** 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 +443,7 @@ const E = W, j = {
|
|
|
443
443
|
{
|
|
444
444
|
values: 0,
|
|
445
445
|
styleName: ["border-top-left-radius", "border-bottom-left-radius"],
|
|
446
|
-
valueFormat:
|
|
446
|
+
valueFormat: u.Value.rem
|
|
447
447
|
}
|
|
448
448
|
],
|
|
449
449
|
/** 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 +451,7 @@ const E = W, j = {
|
|
|
451
451
|
{
|
|
452
452
|
values: 0,
|
|
453
453
|
styleName: "border-top-left-radius",
|
|
454
|
-
valueFormat:
|
|
454
|
+
valueFormat: u.Value.rem
|
|
455
455
|
}
|
|
456
456
|
],
|
|
457
457
|
/** 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 +459,7 @@ const E = W, j = {
|
|
|
459
459
|
{
|
|
460
460
|
values: 0,
|
|
461
461
|
styleName: "border-top-right-radius",
|
|
462
|
-
valueFormat:
|
|
462
|
+
valueFormat: u.Value.rem
|
|
463
463
|
}
|
|
464
464
|
],
|
|
465
465
|
/** 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 +467,7 @@ const E = W, j = {
|
|
|
467
467
|
{
|
|
468
468
|
values: 0,
|
|
469
469
|
styleName: "border-bottom-right-radius",
|
|
470
|
-
valueFormat:
|
|
470
|
+
valueFormat: u.Value.rem
|
|
471
471
|
}
|
|
472
472
|
],
|
|
473
473
|
/** 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 +475,7 @@ const E = W, j = {
|
|
|
475
475
|
{
|
|
476
476
|
values: 0,
|
|
477
477
|
styleName: "border-bottom-left-radius",
|
|
478
|
-
valueFormat:
|
|
478
|
+
valueFormat: u.Value.rem
|
|
479
479
|
}
|
|
480
480
|
],
|
|
481
481
|
/** 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 +488,35 @@ const E = W, j = {
|
|
|
488
488
|
top: [
|
|
489
489
|
{
|
|
490
490
|
values: 0,
|
|
491
|
-
valueFormat:
|
|
491
|
+
valueFormat: u.Value.rem
|
|
492
492
|
}
|
|
493
493
|
],
|
|
494
494
|
/** 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
495
|
right: [
|
|
496
496
|
{
|
|
497
497
|
values: 0,
|
|
498
|
-
valueFormat:
|
|
498
|
+
valueFormat: u.Value.rem
|
|
499
499
|
}
|
|
500
500
|
],
|
|
501
501
|
/** 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
502
|
bottom: [
|
|
503
503
|
{
|
|
504
504
|
values: 0,
|
|
505
|
-
valueFormat:
|
|
505
|
+
valueFormat: u.Value.rem
|
|
506
506
|
}
|
|
507
507
|
],
|
|
508
508
|
/** 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
509
|
left: [
|
|
510
510
|
{
|
|
511
511
|
values: 0,
|
|
512
|
-
valueFormat:
|
|
512
|
+
valueFormat: u.Value.rem
|
|
513
513
|
}
|
|
514
514
|
],
|
|
515
515
|
/** 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
516
|
inset: [
|
|
517
517
|
{
|
|
518
518
|
values: 0,
|
|
519
|
-
valueFormat:
|
|
519
|
+
valueFormat: u.Value.rem
|
|
520
520
|
}
|
|
521
521
|
],
|
|
522
522
|
/** The `box-sizing` CSS property sets how the total width and height of an element is calculated. */
|
|
@@ -689,7 +689,7 @@ const E = W, j = {
|
|
|
689
689
|
{
|
|
690
690
|
styleName: "font-size",
|
|
691
691
|
values: 0,
|
|
692
|
-
valueFormat:
|
|
692
|
+
valueFormat: u.Value.px
|
|
693
693
|
},
|
|
694
694
|
{
|
|
695
695
|
styleName: "font-size",
|
|
@@ -714,7 +714,7 @@ const E = W, j = {
|
|
|
714
714
|
gap: [
|
|
715
715
|
{
|
|
716
716
|
values: 0,
|
|
717
|
-
valueFormat:
|
|
717
|
+
valueFormat: u.Value.rem
|
|
718
718
|
}
|
|
719
719
|
],
|
|
720
720
|
/** The row-gap CSS property sets the size of the gap (gutter) between an element's rows. */
|
|
@@ -722,7 +722,7 @@ const E = W, j = {
|
|
|
722
722
|
{
|
|
723
723
|
styleName: "row-gap",
|
|
724
724
|
values: 0,
|
|
725
|
-
valueFormat:
|
|
725
|
+
valueFormat: u.Value.rem
|
|
726
726
|
}
|
|
727
727
|
],
|
|
728
728
|
/** The column-gap CSS property sets the size of the gap (gutter) between an element's columns. */
|
|
@@ -730,7 +730,7 @@ const E = W, j = {
|
|
|
730
730
|
{
|
|
731
731
|
styleName: "column-gap",
|
|
732
732
|
values: 0,
|
|
733
|
-
valueFormat:
|
|
733
|
+
valueFormat: u.Value.rem
|
|
734
734
|
}
|
|
735
735
|
],
|
|
736
736
|
/** 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. */
|
|
@@ -1055,7 +1055,7 @@ const E = W, j = {
|
|
|
1055
1055
|
{
|
|
1056
1056
|
styleName: "letter-spacing",
|
|
1057
1057
|
values: 0,
|
|
1058
|
-
valueFormat:
|
|
1058
|
+
valueFormat: u.Value.px
|
|
1059
1059
|
}
|
|
1060
1060
|
],
|
|
1061
1061
|
/** 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 +1063,7 @@ const E = W, j = {
|
|
|
1063
1063
|
{
|
|
1064
1064
|
styleName: "line-height",
|
|
1065
1065
|
values: 0,
|
|
1066
|
-
valueFormat:
|
|
1066
|
+
valueFormat: u.Value.px
|
|
1067
1067
|
},
|
|
1068
1068
|
{
|
|
1069
1069
|
styleName: "line-height",
|
|
@@ -1083,7 +1083,7 @@ const E = W, j = {
|
|
|
1083
1083
|
{
|
|
1084
1084
|
values: 0,
|
|
1085
1085
|
styleName: "margin",
|
|
1086
|
-
valueFormat:
|
|
1086
|
+
valueFormat: u.Value.rem
|
|
1087
1087
|
},
|
|
1088
1088
|
{
|
|
1089
1089
|
values: ["auto"],
|
|
@@ -1095,7 +1095,7 @@ const E = W, j = {
|
|
|
1095
1095
|
{
|
|
1096
1096
|
values: 0,
|
|
1097
1097
|
styleName: "margin-inline",
|
|
1098
|
-
valueFormat:
|
|
1098
|
+
valueFormat: u.Value.rem
|
|
1099
1099
|
},
|
|
1100
1100
|
{
|
|
1101
1101
|
values: ["auto"],
|
|
@@ -1107,7 +1107,7 @@ const E = W, j = {
|
|
|
1107
1107
|
{
|
|
1108
1108
|
values: 0,
|
|
1109
1109
|
styleName: "margin-block",
|
|
1110
|
-
valueFormat:
|
|
1110
|
+
valueFormat: u.Value.rem
|
|
1111
1111
|
},
|
|
1112
1112
|
{
|
|
1113
1113
|
values: ["auto"],
|
|
@@ -1119,7 +1119,7 @@ const E = W, j = {
|
|
|
1119
1119
|
{
|
|
1120
1120
|
values: 0,
|
|
1121
1121
|
styleName: "margin-top",
|
|
1122
|
-
valueFormat:
|
|
1122
|
+
valueFormat: u.Value.rem
|
|
1123
1123
|
},
|
|
1124
1124
|
{
|
|
1125
1125
|
values: ["auto"],
|
|
@@ -1131,7 +1131,7 @@ const E = W, j = {
|
|
|
1131
1131
|
{
|
|
1132
1132
|
values: 0,
|
|
1133
1133
|
styleName: "margin-right",
|
|
1134
|
-
valueFormat:
|
|
1134
|
+
valueFormat: u.Value.rem
|
|
1135
1135
|
},
|
|
1136
1136
|
{
|
|
1137
1137
|
values: ["auto"],
|
|
@@ -1143,7 +1143,7 @@ const E = W, j = {
|
|
|
1143
1143
|
{
|
|
1144
1144
|
values: 0,
|
|
1145
1145
|
styleName: "margin-bottom",
|
|
1146
|
-
valueFormat:
|
|
1146
|
+
valueFormat: u.Value.rem
|
|
1147
1147
|
},
|
|
1148
1148
|
{
|
|
1149
1149
|
values: ["auto"],
|
|
@@ -1155,7 +1155,7 @@ const E = W, j = {
|
|
|
1155
1155
|
{
|
|
1156
1156
|
values: 0,
|
|
1157
1157
|
styleName: "margin-left",
|
|
1158
|
-
valueFormat:
|
|
1158
|
+
valueFormat: u.Value.rem
|
|
1159
1159
|
},
|
|
1160
1160
|
{
|
|
1161
1161
|
values: ["auto"],
|
|
@@ -1167,7 +1167,7 @@ const E = W, j = {
|
|
|
1167
1167
|
{
|
|
1168
1168
|
values: 0,
|
|
1169
1169
|
styleName: "padding",
|
|
1170
|
-
valueFormat:
|
|
1170
|
+
valueFormat: u.Value.rem
|
|
1171
1171
|
}
|
|
1172
1172
|
],
|
|
1173
1173
|
/** 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 +1175,7 @@ const E = W, j = {
|
|
|
1175
1175
|
{
|
|
1176
1176
|
values: 0,
|
|
1177
1177
|
styleName: "padding-inline",
|
|
1178
|
-
valueFormat:
|
|
1178
|
+
valueFormat: u.Value.rem
|
|
1179
1179
|
}
|
|
1180
1180
|
],
|
|
1181
1181
|
/** 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 +1183,7 @@ const E = W, j = {
|
|
|
1183
1183
|
{
|
|
1184
1184
|
values: 0,
|
|
1185
1185
|
styleName: "padding-block",
|
|
1186
|
-
valueFormat:
|
|
1186
|
+
valueFormat: u.Value.rem
|
|
1187
1187
|
}
|
|
1188
1188
|
],
|
|
1189
1189
|
/** The padding-top CSS property sets the height of the padding area on the top of an element. */
|
|
@@ -1191,7 +1191,7 @@ const E = W, j = {
|
|
|
1191
1191
|
{
|
|
1192
1192
|
values: 0,
|
|
1193
1193
|
styleName: "padding-top",
|
|
1194
|
-
valueFormat:
|
|
1194
|
+
valueFormat: u.Value.rem
|
|
1195
1195
|
}
|
|
1196
1196
|
],
|
|
1197
1197
|
/** The padding-right CSS property sets the width of the padding area on the right of an element. */
|
|
@@ -1199,7 +1199,7 @@ const E = W, j = {
|
|
|
1199
1199
|
{
|
|
1200
1200
|
values: 0,
|
|
1201
1201
|
styleName: "padding-right",
|
|
1202
|
-
valueFormat:
|
|
1202
|
+
valueFormat: u.Value.rem
|
|
1203
1203
|
}
|
|
1204
1204
|
],
|
|
1205
1205
|
/** The padding-bottom CSS property sets the height of the padding area on the bottom of an element. */
|
|
@@ -1207,7 +1207,7 @@ const E = W, j = {
|
|
|
1207
1207
|
{
|
|
1208
1208
|
values: 0,
|
|
1209
1209
|
styleName: "padding-bottom",
|
|
1210
|
-
valueFormat:
|
|
1210
|
+
valueFormat: u.Value.rem
|
|
1211
1211
|
}
|
|
1212
1212
|
],
|
|
1213
1213
|
/** The padding-left CSS property sets the width of the padding area to the left of an element. */
|
|
@@ -1215,7 +1215,7 @@ const E = W, j = {
|
|
|
1215
1215
|
{
|
|
1216
1216
|
values: 0,
|
|
1217
1217
|
styleName: "padding-left",
|
|
1218
|
-
valueFormat:
|
|
1218
|
+
valueFormat: u.Value.rem
|
|
1219
1219
|
}
|
|
1220
1220
|
],
|
|
1221
1221
|
/** 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 +1236,7 @@ const E = W, j = {
|
|
|
1236
1236
|
{
|
|
1237
1237
|
styleName: "outline-width",
|
|
1238
1238
|
values: 0,
|
|
1239
|
-
valueFormat:
|
|
1239
|
+
valueFormat: u.Value.px
|
|
1240
1240
|
}
|
|
1241
1241
|
],
|
|
1242
1242
|
/** 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 +1251,7 @@ const E = W, j = {
|
|
|
1251
1251
|
{
|
|
1252
1252
|
styleName: "outline-offset",
|
|
1253
1253
|
values: 0,
|
|
1254
|
-
valueFormat:
|
|
1254
|
+
valueFormat: u.Value.px
|
|
1255
1255
|
}
|
|
1256
1256
|
],
|
|
1257
1257
|
/** 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. */
|
|
@@ -1484,7 +1484,7 @@ const E = W, j = {
|
|
|
1484
1484
|
styleName: "outline-color"
|
|
1485
1485
|
}
|
|
1486
1486
|
]
|
|
1487
|
-
},
|
|
1487
|
+
}, oe = {
|
|
1488
1488
|
hover: ":hover",
|
|
1489
1489
|
focus: ":focus-within",
|
|
1490
1490
|
hasFocus: ":has(:focus)",
|
|
@@ -1497,63 +1497,63 @@ const E = W, j = {
|
|
|
1497
1497
|
hasChecked: ":has(:checked)",
|
|
1498
1498
|
hasRequired: ":has(:required)",
|
|
1499
1499
|
hasDisabled: ":has([disabled])"
|
|
1500
|
-
},
|
|
1500
|
+
}, L = {
|
|
1501
1501
|
indeterminate: ":indeterminate",
|
|
1502
1502
|
checked: ":checked",
|
|
1503
1503
|
required: ":required",
|
|
1504
1504
|
disabled: "[disabled]"
|
|
1505
|
-
},
|
|
1505
|
+
}, Z = { ...oe, ...L }, ie = Object.entries(Z).reduce(
|
|
1506
1506
|
(e, [t], a) => (e[t] = Math.pow(2, a), e),
|
|
1507
1507
|
{}
|
|
1508
|
-
),
|
|
1508
|
+
), D = Object.entries(Z).reduce(
|
|
1509
1509
|
(e, [t]) => {
|
|
1510
|
-
const a =
|
|
1511
|
-
return Object.entries(e).forEach(([
|
|
1512
|
-
e[+
|
|
1510
|
+
const a = ie[t];
|
|
1511
|
+
return Object.entries(e).forEach(([o, c]) => {
|
|
1512
|
+
e[+o + a] = [...c, t];
|
|
1513
1513
|
}), e;
|
|
1514
1514
|
},
|
|
1515
1515
|
{ 0: [] }
|
|
1516
|
-
),
|
|
1516
|
+
), K = {
|
|
1517
1517
|
hoverGroup: "hover",
|
|
1518
1518
|
focusGroup: "focus",
|
|
1519
1519
|
activeGroup: "active",
|
|
1520
1520
|
disabledGroup: "disabled"
|
|
1521
|
-
},
|
|
1521
|
+
}, H = {
|
|
1522
1522
|
sm: 640,
|
|
1523
1523
|
md: 768,
|
|
1524
1524
|
lg: 1024,
|
|
1525
1525
|
xl: 1280,
|
|
1526
1526
|
xxl: 1536
|
|
1527
1527
|
};
|
|
1528
|
-
var
|
|
1528
|
+
var W;
|
|
1529
1529
|
((e) => {
|
|
1530
|
-
function t(
|
|
1531
|
-
const
|
|
1532
|
-
return
|
|
1533
|
-
r in
|
|
1530
|
+
function t(s, l, i) {
|
|
1531
|
+
const f = { ...s }, y = f.props || {};
|
|
1532
|
+
return l.forEach((r) => {
|
|
1533
|
+
r in f && (y[r] = f[r], delete f[r]);
|
|
1534
1534
|
}), i && Object.entries(i).forEach(([r, v]) => {
|
|
1535
|
-
|
|
1536
|
-
}),
|
|
1535
|
+
y[r] = v;
|
|
1536
|
+
}), f.props = y, f;
|
|
1537
1537
|
}
|
|
1538
1538
|
e.buildProps = t;
|
|
1539
|
-
function a(
|
|
1540
|
-
return !!
|
|
1539
|
+
function a(s) {
|
|
1540
|
+
return !!s && typeof s == "object";
|
|
1541
1541
|
}
|
|
1542
1542
|
e.isObject = a;
|
|
1543
|
-
function
|
|
1544
|
-
return
|
|
1545
|
-
const
|
|
1546
|
-
|
|
1547
|
-
}),
|
|
1543
|
+
function o(...s) {
|
|
1544
|
+
return s.reduce((l, i) => (Object.keys(i).forEach((f) => {
|
|
1545
|
+
const y = l[f], r = i[f];
|
|
1546
|
+
f in L && typeof r == "boolean" || (f in L && Array.isArray(r) ? l[f] = o(y, r[1] ?? {}) : Array.isArray(y) && Array.isArray(r) ? l[f] = y.concat(...r) : a(y) && a(r) ? l[f] = o(y, r) : l[f] = r);
|
|
1547
|
+
}), l), {});
|
|
1548
1548
|
}
|
|
1549
|
-
e.mergeDeep =
|
|
1550
|
-
function
|
|
1551
|
-
return
|
|
1549
|
+
e.mergeDeep = o;
|
|
1550
|
+
function c(s, l) {
|
|
1551
|
+
return s in l;
|
|
1552
1552
|
}
|
|
1553
|
-
e.isKeyOf =
|
|
1554
|
-
})(
|
|
1555
|
-
const $ =
|
|
1556
|
-
class
|
|
1553
|
+
e.isKeyOf = c;
|
|
1554
|
+
})(W || (W = {}));
|
|
1555
|
+
const $ = W;
|
|
1556
|
+
class be {
|
|
1557
1557
|
constructor() {
|
|
1558
1558
|
this._index = 0, this._cache = {};
|
|
1559
1559
|
}
|
|
@@ -1561,166 +1561,189 @@ class de {
|
|
|
1561
1561
|
return this._cache[t] || (this._cache[t] = this.getByIndex(this._index++)), this._cache[t];
|
|
1562
1562
|
}
|
|
1563
1563
|
getByIndex(t) {
|
|
1564
|
-
const { first: a, next:
|
|
1565
|
-
if (
|
|
1564
|
+
const { first: a, next: o } = ye, c = t - a.length;
|
|
1565
|
+
if (c < 0)
|
|
1566
1566
|
return a[t];
|
|
1567
|
-
const
|
|
1568
|
-
return this.getByIndex(
|
|
1567
|
+
const s = Math.floor(c / o.length), l = c - s * o.length;
|
|
1568
|
+
return this.getByIndex(s) + o[l];
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
|
-
const
|
|
1571
|
+
const ye = {
|
|
1572
1572
|
first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
|
1573
1573
|
next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
|
1574
1574
|
};
|
|
1575
|
-
var
|
|
1575
|
+
var G;
|
|
1576
1576
|
((e) => {
|
|
1577
1577
|
e.components = {};
|
|
1578
|
-
})(
|
|
1579
|
-
function
|
|
1580
|
-
const { clean: t, theme: a, component:
|
|
1581
|
-
return
|
|
1582
|
-
var
|
|
1578
|
+
})(G || (G = {}));
|
|
1579
|
+
function he(e) {
|
|
1580
|
+
const { clean: t, theme: a, component: o } = e;
|
|
1581
|
+
return Q(() => {
|
|
1582
|
+
var l;
|
|
1583
1583
|
if (t) return;
|
|
1584
|
-
const
|
|
1585
|
-
if (!
|
|
1586
|
-
const
|
|
1584
|
+
const c = o == null ? void 0 : o.split(".");
|
|
1585
|
+
if (!c) return;
|
|
1586
|
+
const s = c.reduce((i, f, y) => {
|
|
1587
1587
|
var r, v;
|
|
1588
|
-
return
|
|
1588
|
+
return y === 0 ? (r = G.components) == null ? void 0 : r[f] : (v = i == null ? void 0 : i.children) == null ? void 0 : v[f];
|
|
1589
1589
|
}, void 0);
|
|
1590
|
-
if (
|
|
1591
|
-
return a ? $.mergeDeep(
|
|
1592
|
-
}, [
|
|
1590
|
+
if (s)
|
|
1591
|
+
return a ? $.mergeDeep(s.styles, ((l = s.themes) == null ? void 0 : l[a]) ?? {}) : s.styles;
|
|
1592
|
+
}, [o, t, a]);
|
|
1593
1593
|
}
|
|
1594
|
-
const
|
|
1595
|
-
var
|
|
1596
|
-
const
|
|
1597
|
-
function
|
|
1598
|
-
|
|
1599
|
-
const a =
|
|
1600
|
-
return
|
|
1601
|
-
var
|
|
1602
|
-
const
|
|
1603
|
-
(
|
|
1604
|
-
const
|
|
1605
|
-
return A.addClassNames(
|
|
1594
|
+
const ge = new be(), pe = typeof window < "u" && typeof window.document < "u";
|
|
1595
|
+
var le;
|
|
1596
|
+
const ne = typeof process == "object" && ((le = process.env) == null ? void 0 : le.NODE_ENV) === "test", xe = pe && !ne ? fe : se, ue = "_b", S = "_s";
|
|
1597
|
+
function Ne(e, t) {
|
|
1598
|
+
xe(A.flush, [e]);
|
|
1599
|
+
const a = he(e);
|
|
1600
|
+
return Q(() => {
|
|
1601
|
+
var s;
|
|
1602
|
+
const o = [t ? S : ue];
|
|
1603
|
+
(s = e.props) == null || s.name;
|
|
1604
|
+
const c = a ? $.mergeDeep(a, e) : e;
|
|
1605
|
+
return A.addClassNames(c, o, []), o;
|
|
1606
1606
|
}, [e, t, a]);
|
|
1607
1607
|
}
|
|
1608
1608
|
var A;
|
|
1609
1609
|
((e) => {
|
|
1610
1610
|
let t = !0, a = {};
|
|
1611
|
-
function
|
|
1612
|
-
Object.entries(r).forEach(([
|
|
1613
|
-
if ($.isKeyOf(
|
|
1614
|
-
|
|
1615
|
-
else if ($.isKeyOf(
|
|
1616
|
-
|
|
1617
|
-
else if ($.isKeyOf(
|
|
1618
|
-
if (Array.isArray(
|
|
1619
|
-
const [x,
|
|
1620
|
-
|
|
1611
|
+
function o(r, v, h, b, n) {
|
|
1612
|
+
Object.entries(r).forEach(([m, d]) => {
|
|
1613
|
+
if ($.isKeyOf(m, C))
|
|
1614
|
+
l(m, d, v, h, b, n);
|
|
1615
|
+
else if ($.isKeyOf(m, oe))
|
|
1616
|
+
o(d, v, [...h, m], b, n);
|
|
1617
|
+
else if ($.isKeyOf(m, L)) {
|
|
1618
|
+
if (Array.isArray(d)) {
|
|
1619
|
+
const [x, w] = d;
|
|
1620
|
+
o(w, v, [...h, m], b, n);
|
|
1621
1621
|
}
|
|
1622
|
-
$.isObject(
|
|
1623
|
-
} else $.isKeyOf(
|
|
1624
|
-
|
|
1622
|
+
$.isObject(d) && o(d, v, [...h, m], b, n);
|
|
1623
|
+
} else $.isKeyOf(m, H) ? o(d, v, h, m, n) : $.isKeyOf(m, K) && (typeof d == "string" ? v.push(`${K[m]}-${d}`) : Object.entries(d).forEach(([x, w]) => {
|
|
1624
|
+
o(w, v, [...h, K[m]], b, x);
|
|
1625
1625
|
}));
|
|
1626
1626
|
});
|
|
1627
1627
|
}
|
|
1628
|
-
e.addClassNames =
|
|
1629
|
-
function
|
|
1628
|
+
e.addClassNames = o;
|
|
1629
|
+
function c() {
|
|
1630
1630
|
if (!t) return;
|
|
1631
1631
|
console.debug("\x1B[36m%s\x1B[0m", "[react-box]: flush");
|
|
1632
|
-
const r = Object.entries(
|
|
1632
|
+
const r = Object.entries(C).reduce((m, [d], x) => (m[d] = x, m), {}), v = `:root{--borderColor: black;--outlineColor: black;--lineHeight: 1.2;--fontSize: 14px;--transitionTime: 0.25s;--svgTransitionTime: 0.3s;}#crono-box {position: absolute;top: 0;left: 0;height: 0;}
|
|
1633
1633
|
html{font-size: 16px;font-family: Arial, sans-serif;}
|
|
1634
1634
|
body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}
|
|
1635
1635
|
a,ul{all: unset;}
|
|
1636
|
-
.${
|
|
1636
|
+
.${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
1637
|
.${S}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}.${S} path,.${S} circle,.${S} rect,.${S} line {transition: all var(--svgTransitionTime);}
|
|
1638
1638
|
`, h = Object.entries(a);
|
|
1639
1639
|
h.sort(
|
|
1640
|
-
([
|
|
1640
|
+
([m], [d]) => (H[m] ?? 0) - (H[d] ?? 0)
|
|
1641
1641
|
);
|
|
1642
|
-
const
|
|
1643
|
-
(
|
|
1644
|
-
const { __parents:
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
var
|
|
1648
|
-
const
|
|
1649
|
-
if (!
|
|
1650
|
-
const z = i(
|
|
1651
|
-
|
|
1642
|
+
const b = h.reduce(
|
|
1643
|
+
(m, [d, x]) => (d !== "normal" && m.push(`@media(min-width: ${H[d]}px){`), Object.entries(x).forEach(([w, k]) => {
|
|
1644
|
+
const { __parents: P, ...ce } = k, ee = Object.entries(ce);
|
|
1645
|
+
ee.sort(([N], [_]) => r[N] - r[_]), ee.forEach(([N, _]) => {
|
|
1646
|
+
_.forEach((V) => {
|
|
1647
|
+
var R, I;
|
|
1648
|
+
const g = C[N].find((F) => Array.isArray(F.values) ? F.values.includes(V) : typeof V == typeof F.values);
|
|
1649
|
+
if (!g) return;
|
|
1650
|
+
const z = i(N, V, +w, d), U = D[+w].map((F) => Z[F]).join(""), p = ((R = g.selector) == null ? void 0 : R.call(g, `.${z}`, U)) ?? `.${z}${U}`, B = Array.isArray(g.styleName) ? g.styleName : [g.styleName ?? N], O = ((I = g.valueFormat) == null ? void 0 : I.call(g, V, E.getVariableValue)) ?? V;
|
|
1651
|
+
m.push(`${p}{${B.map((F) => `${F}:${O}`).join(";")}}`);
|
|
1652
1652
|
});
|
|
1653
|
-
}),
|
|
1654
|
-
const V = Object.entries(
|
|
1655
|
-
V.sort(([
|
|
1656
|
-
|
|
1657
|
-
var
|
|
1658
|
-
const
|
|
1659
|
-
if (!
|
|
1660
|
-
const
|
|
1661
|
-
|
|
1653
|
+
}), P && Object.entries(P).forEach(([N, _]) => {
|
|
1654
|
+
const V = Object.entries(_);
|
|
1655
|
+
V.sort(([j], [g]) => r[j] - r[g]), V.forEach(([j, g]) => {
|
|
1656
|
+
g.forEach((z) => {
|
|
1657
|
+
var te, ae;
|
|
1658
|
+
const p = C[j].find((T) => Array.isArray(T.values) ? T.values.includes(z) : typeof z == typeof T.values);
|
|
1659
|
+
if (!p) return;
|
|
1660
|
+
const B = i(j, z, +w, d, N), [O] = D[+w], R = ((te = p.selector) == null ? void 0 : te.call(p, `.${O}-${N}:${O} .${B}`, "")) ?? `.${O}-${N}:${O} .${B}`, I = Array.isArray(p.styleName) ? p.styleName : [p.styleName ?? j], F = ((ae = p.valueFormat) == null ? void 0 : ae.call(p, z, E.getVariableValue)) ?? z;
|
|
1661
|
+
m.push(`${R}{${I.map((T) => `${T}:${F}`).join(";")}}`);
|
|
1662
1662
|
});
|
|
1663
1663
|
});
|
|
1664
1664
|
});
|
|
1665
|
-
}),
|
|
1665
|
+
}), d !== "normal" && m.push("}"), m),
|
|
1666
1666
|
[v]
|
|
1667
1667
|
);
|
|
1668
|
-
|
|
1669
|
-
const
|
|
1670
|
-
|
|
1668
|
+
b.unshift(`:root{${E.generateVariables()}}`);
|
|
1669
|
+
const n = y();
|
|
1670
|
+
n.innerHTML = b.join(""), t = !1;
|
|
1671
1671
|
}
|
|
1672
|
-
e.flush =
|
|
1673
|
-
function
|
|
1672
|
+
e.flush = c;
|
|
1673
|
+
function s() {
|
|
1674
1674
|
a = {};
|
|
1675
1675
|
}
|
|
1676
|
-
e.clear =
|
|
1677
|
-
function
|
|
1676
|
+
e.clear = s;
|
|
1677
|
+
function l(r, v, h, b, n = "normal", m) {
|
|
1678
1678
|
if (v == null) return;
|
|
1679
|
-
const
|
|
1680
|
-
a[
|
|
1681
|
-
const x = i(r, v,
|
|
1679
|
+
const d = b.reduce((w, k) => w + ie[k], 0);
|
|
1680
|
+
a[n] ? a[n][d] ? a[n][d][r] || (a[n][d][r] = /* @__PURE__ */ new Set()) : a[n][d] = { [r]: /* @__PURE__ */ new Set() } : a[n] = { [d]: { [r]: /* @__PURE__ */ new Set() } }, m ? (a[n][d].__parents ? a[n][d].__parents[m] ? a[n][d].__parents[m][r] || (a[n][d].__parents[m][r] = /* @__PURE__ */ new Set()) : a[n][d].__parents[m] = { [r]: /* @__PURE__ */ new Set() } : a[n][d].__parents = { [m]: { [r]: /* @__PURE__ */ new Set() } }, a[n][d].__parents[m][r].has(v) || (a[n][d].__parents[m][r].add(v), t = !0)) : a[n][d][r].has(v) || (a[n][d][r].add(v), t = !0);
|
|
1681
|
+
const x = i(r, v, d, n, m);
|
|
1682
1682
|
h.push(x);
|
|
1683
1683
|
}
|
|
1684
|
-
function i(r, v, h,
|
|
1685
|
-
const
|
|
1686
|
-
return
|
|
1684
|
+
function i(r, v, h, b, n) {
|
|
1685
|
+
const m = D[h], d = `${b === "normal" ? "" : `${b}-`}${m.map((x) => `${x}-`).join("")}${n ? `${n}-` : ""}${r}-${v}`;
|
|
1686
|
+
return ne ? d : ge.getIdentity(d);
|
|
1687
1687
|
}
|
|
1688
|
-
const
|
|
1689
|
-
function
|
|
1690
|
-
let r = document.getElementById(
|
|
1691
|
-
return r || (r = document.createElement("style"), r.setAttribute("id",
|
|
1688
|
+
const f = "crono-styles";
|
|
1689
|
+
function y() {
|
|
1690
|
+
let r = document.getElementById(f);
|
|
1691
|
+
return r || (r = document.createElement("style"), r.setAttribute("id", f), r.setAttribute("type", "text/css"), document.head.insertBefore(r, document.head.firstChild)), r;
|
|
1692
1692
|
}
|
|
1693
1693
|
})(A || (A = {}));
|
|
1694
|
-
var
|
|
1694
|
+
var re;
|
|
1695
1695
|
((e) => {
|
|
1696
1696
|
e.flush = A.flush, e.clear = A.clear;
|
|
1697
|
-
})(
|
|
1697
|
+
})(re || (re = {}));
|
|
1698
1698
|
var M;
|
|
1699
1699
|
((e) => {
|
|
1700
|
-
function t(a,
|
|
1701
|
-
return E.setUserVariables(a), Object.entries(
|
|
1702
|
-
|
|
1703
|
-
}), Object.entries(
|
|
1704
|
-
const i =
|
|
1705
|
-
|
|
1706
|
-
}), { extendedProps:
|
|
1700
|
+
function t(a, o, c) {
|
|
1701
|
+
return E.setUserVariables(a), Object.entries(o).forEach(([s, l]) => {
|
|
1702
|
+
C[s] = l;
|
|
1703
|
+
}), Object.entries(c).forEach(([s, l]) => {
|
|
1704
|
+
const i = C[s];
|
|
1705
|
+
C[s] = i ? [...l, ...i] : l;
|
|
1706
|
+
}), { extendedProps: o, extendedPropTypes: c };
|
|
1707
1707
|
}
|
|
1708
1708
|
e.extend = t;
|
|
1709
1709
|
})(M || (M = {}));
|
|
1710
|
-
const
|
|
1710
|
+
const Fe = M;
|
|
1711
1711
|
var X;
|
|
1712
1712
|
((e) => {
|
|
1713
1713
|
const t = {
|
|
1714
1714
|
button: {
|
|
1715
1715
|
styles: {
|
|
1716
|
-
display: "inline-
|
|
1716
|
+
display: "inline-flex",
|
|
1717
|
+
color: "white",
|
|
1718
|
+
bgColor: "violet-400",
|
|
1719
|
+
borderColor: "violet-500",
|
|
1717
1720
|
p: 3,
|
|
1718
1721
|
cursor: "pointer",
|
|
1719
1722
|
b: 1,
|
|
1720
1723
|
borderRadius: 1,
|
|
1721
1724
|
userSelect: "none",
|
|
1725
|
+
hover: {
|
|
1726
|
+
color: "slate-700",
|
|
1727
|
+
bgColor: "violet-100",
|
|
1728
|
+
borderColor: "violet-300"
|
|
1729
|
+
},
|
|
1722
1730
|
disabled: {
|
|
1723
|
-
cursor: "
|
|
1731
|
+
cursor: "not-allowed",
|
|
1732
|
+
bgColor: "violet-50",
|
|
1733
|
+
color: "slate-400",
|
|
1734
|
+
borderColor: "gray-300"
|
|
1735
|
+
}
|
|
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
|
+
}
|
|
1724
1747
|
}
|
|
1725
1748
|
}
|
|
1726
1749
|
},
|
|
@@ -1750,89 +1773,150 @@ var X;
|
|
|
1750
1773
|
b: 1,
|
|
1751
1774
|
borderRadius: 1
|
|
1752
1775
|
}
|
|
1776
|
+
},
|
|
1777
|
+
dropdown: {
|
|
1778
|
+
styles: {
|
|
1779
|
+
display: "inline-flex",
|
|
1780
|
+
bgColor: "white",
|
|
1781
|
+
color: "violet-800",
|
|
1782
|
+
p: 3,
|
|
1783
|
+
cursor: "pointer",
|
|
1784
|
+
b: 1,
|
|
1785
|
+
borderRadius: 1,
|
|
1786
|
+
userSelect: "none",
|
|
1787
|
+
borderColor: "violet-400",
|
|
1788
|
+
lineHeight: 20,
|
|
1789
|
+
hover: {
|
|
1790
|
+
bgColor: "violet-50"
|
|
1791
|
+
},
|
|
1792
|
+
disabled: {
|
|
1793
|
+
cursor: "not-allowed",
|
|
1794
|
+
bgColor: "violet-200",
|
|
1795
|
+
color: "gray-400",
|
|
1796
|
+
borderColor: "gray-300"
|
|
1797
|
+
}
|
|
1798
|
+
},
|
|
1799
|
+
children: {
|
|
1800
|
+
items: {
|
|
1801
|
+
styles: {
|
|
1802
|
+
b: 1,
|
|
1803
|
+
borderRadius: 1,
|
|
1804
|
+
position: "relative",
|
|
1805
|
+
top: 1,
|
|
1806
|
+
bgColor: "white",
|
|
1807
|
+
overflow: "auto",
|
|
1808
|
+
maxHeight: 45,
|
|
1809
|
+
borderColor: "violet-400",
|
|
1810
|
+
color: "violet-800"
|
|
1811
|
+
}
|
|
1812
|
+
},
|
|
1813
|
+
item: {
|
|
1814
|
+
styles: {
|
|
1815
|
+
p: 3,
|
|
1816
|
+
cursor: "pointer",
|
|
1817
|
+
lineHeight: 20,
|
|
1818
|
+
hover: {
|
|
1819
|
+
bgColor: "violet-50"
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1753
1824
|
}
|
|
1754
|
-
// dropdown: {
|
|
1755
|
-
// styles: {
|
|
1756
|
-
// width: 'min-content',
|
|
1757
|
-
// b: 1,
|
|
1758
|
-
// borderRadius: 1,
|
|
1759
|
-
// p: 3,
|
|
1760
|
-
// cursor: 'pointer',
|
|
1761
|
-
// },
|
|
1762
|
-
// children: {
|
|
1763
|
-
// items: {
|
|
1764
|
-
// styles: {
|
|
1765
|
-
// b: 1,
|
|
1766
|
-
// },
|
|
1767
|
-
// },
|
|
1768
|
-
// },
|
|
1769
|
-
// },
|
|
1770
1825
|
};
|
|
1771
|
-
function a(
|
|
1772
|
-
const { components:
|
|
1773
|
-
Object.entries(
|
|
1774
|
-
|
|
1775
|
-
}),
|
|
1826
|
+
function a(o) {
|
|
1827
|
+
const { components: c, ...s } = o, l = c ?? {};
|
|
1828
|
+
Object.entries(s).forEach(([i, f]) => {
|
|
1829
|
+
l[i] = f;
|
|
1830
|
+
}), G.components = $.mergeDeep(t, l);
|
|
1776
1831
|
}
|
|
1777
1832
|
e.setup = a;
|
|
1778
1833
|
})(X || (X = {}));
|
|
1779
|
-
const
|
|
1834
|
+
const $e = X;
|
|
1780
1835
|
var Y;
|
|
1781
1836
|
((e) => {
|
|
1782
|
-
function t(
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1837
|
+
function t(a, o, c) {
|
|
1838
|
+
a !== void 0 && a != null && (c[o] = Array.isArray(a) ? a[0] : a);
|
|
1839
|
+
}
|
|
1840
|
+
e.assignBooleanProp = t;
|
|
1841
|
+
})(Y || (Y = {}));
|
|
1842
|
+
const Ve = Y;
|
|
1843
|
+
function ze() {
|
|
1844
|
+
return Q(() => {
|
|
1845
|
+
const e = "crono-box";
|
|
1846
|
+
let t = document.getElementById(e);
|
|
1847
|
+
return t || (t = document.createElement("div"), t.id = e, document.body.appendChild(t)), t;
|
|
1848
|
+
}, []);
|
|
1849
|
+
}
|
|
1850
|
+
function Ee(e = null) {
|
|
1851
|
+
const [t, a] = de(!1), o = me(null);
|
|
1852
|
+
return se(() => {
|
|
1853
|
+
function c(i) {
|
|
1854
|
+
const f = e ?? o.current;
|
|
1855
|
+
(f == null ? void 0 : f.contains(i.target)) === !1 && a(!1);
|
|
1856
|
+
}
|
|
1857
|
+
function s() {
|
|
1858
|
+
a(!1);
|
|
1859
|
+
}
|
|
1860
|
+
function l(i) {
|
|
1861
|
+
i.key === "Escape" && a(!1);
|
|
1862
|
+
}
|
|
1863
|
+
return t && (window.addEventListener("click", c), window.addEventListener("resize", s), window.addEventListener("keydown", l)), () => {
|
|
1864
|
+
window.removeEventListener("click", c), window.removeEventListener("resize", s), window.removeEventListener("keydown", l);
|
|
1865
|
+
};
|
|
1866
|
+
}, [e, t]), [t, a, o];
|
|
1867
|
+
}
|
|
1868
|
+
var J;
|
|
1869
|
+
((e) => {
|
|
1870
|
+
function t(o) {
|
|
1871
|
+
const c = Array.from(o.elements).reduce(
|
|
1872
|
+
(s, l) => {
|
|
1873
|
+
const i = l.name;
|
|
1874
|
+
return i && (s[i] || (s[i] = []), s[i].push(l)), s;
|
|
1787
1875
|
},
|
|
1788
1876
|
{}
|
|
1789
1877
|
);
|
|
1790
|
-
return Object.entries(
|
|
1878
|
+
return Object.entries(c).reduce((s, [l, i]) => {
|
|
1791
1879
|
if (i.length === 1) {
|
|
1792
|
-
const
|
|
1793
|
-
a(
|
|
1880
|
+
const f = i[0];
|
|
1881
|
+
a(s, l, f.type === "checkbox" || f.type === "radio" ? f.checked : f.value);
|
|
1794
1882
|
} else {
|
|
1795
|
-
const
|
|
1796
|
-
a(
|
|
1883
|
+
const f = i.reduce((y, r) => (r.type === "checkbox" || r.type === "radio" ? r.checked && y.push(r.value) : y.push(r.value), y), []);
|
|
1884
|
+
a(s, l, f);
|
|
1797
1885
|
}
|
|
1798
|
-
return
|
|
1886
|
+
return s;
|
|
1799
1887
|
}, {});
|
|
1800
1888
|
}
|
|
1801
1889
|
e.getFormEntries = t;
|
|
1802
|
-
function a(
|
|
1803
|
-
if (
|
|
1804
|
-
const
|
|
1805
|
-
let i =
|
|
1806
|
-
|
|
1807
|
-
if (
|
|
1808
|
-
const r =
|
|
1890
|
+
function a(o, c, s) {
|
|
1891
|
+
if (c.includes(".")) {
|
|
1892
|
+
const l = c.split(".");
|
|
1893
|
+
let i = o;
|
|
1894
|
+
l.forEach((f, y) => {
|
|
1895
|
+
if (l.length > y + 1) {
|
|
1896
|
+
const r = f.match(/^(.+)\[(\d)\]$/);
|
|
1809
1897
|
if (r) {
|
|
1810
1898
|
const [, v, h] = r;
|
|
1811
1899
|
i[v] = i[v] || [], i[v][h] = i[v][h] || {}, i = i[v][h];
|
|
1812
1900
|
} else
|
|
1813
|
-
i[
|
|
1901
|
+
i[f] = i[f] || {}, i = i[f];
|
|
1814
1902
|
} else
|
|
1815
|
-
i[
|
|
1903
|
+
i[f] = s;
|
|
1816
1904
|
});
|
|
1817
1905
|
} else
|
|
1818
|
-
|
|
1906
|
+
o[c] = s;
|
|
1819
1907
|
}
|
|
1820
|
-
})(
|
|
1821
|
-
const
|
|
1822
|
-
function Fe() {
|
|
1823
|
-
return J(() => {
|
|
1824
|
-
const e = "crono-box";
|
|
1825
|
-
let t = document.getElementById(e);
|
|
1826
|
-
return t || (t = document.createElement("div"), t.id = e, document.body.appendChild(t)), t;
|
|
1827
|
-
}, []);
|
|
1828
|
-
}
|
|
1908
|
+
})(J || (J = {}));
|
|
1909
|
+
const Ce = J;
|
|
1829
1910
|
export {
|
|
1830
|
-
|
|
1831
|
-
|
|
1911
|
+
Fe as B,
|
|
1912
|
+
Ce as F,
|
|
1832
1913
|
$ as O,
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1914
|
+
re as S,
|
|
1915
|
+
$e as T,
|
|
1916
|
+
E as V,
|
|
1917
|
+
Ve as a,
|
|
1918
|
+
Ee as b,
|
|
1919
|
+
ve as c,
|
|
1920
|
+
ze as d,
|
|
1921
|
+
Ne as u
|
|
1838
1922
|
};
|