@cronocode/react-box 1.8.8 → 1.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core.mjs CHANGED
@@ -1,72 +1,72 @@
1
- import { useMemo as Y, useLayoutEffect as se, useEffect as ae } from "react";
2
- import { O as J } from "./utils.mjs";
1
+ import { useMemo as X, useLayoutEffect as se, useEffect as ae } from "react";
2
+ import { O as Y } from "./utils.mjs";
3
3
  var e;
4
- ((s) => {
5
- ((l) => {
6
- function r(t, c) {
7
- return `${t}${c.replace("/", "-")}`;
4
+ ((a) => {
5
+ ((u) => {
6
+ function t(o, m) {
7
+ return `${o}${m.replace("/", "-")}`;
8
8
  }
9
- l.fraction = r;
10
- function n(t) {
11
- return [`${t} path`, `${t} circle`, `${t} rect`, `${t} line`];
9
+ u.fraction = t;
10
+ function n(o) {
11
+ return [`${o} path`, `${o} circle`, `${o} rect`, `${o} line`];
12
12
  }
13
- l.svg = n;
14
- })(s.ClassName || (s.ClassName = {})), ((l) => {
15
- function r(o, a) {
16
- return `${a / 4}rem`;
13
+ u.svg = n;
14
+ })(a.ClassName || (a.ClassName = {})), ((u) => {
15
+ function t(l, s) {
16
+ return `${s / 4}rem`;
17
17
  }
18
- l.rem = r;
19
- function n(o, a) {
20
- return `${a}px`;
18
+ u.rem = t;
19
+ function n(l, s) {
20
+ return `${s}px`;
21
21
  }
22
- l.px = n;
23
- function t(o, a) {
24
- const [u, v] = a.split("/");
25
- return `${+u / +v * 100}%`;
22
+ u.px = n;
23
+ function o(l, s) {
24
+ const [r, i] = s.split("/");
25
+ return `${+r / +i * 100}%`;
26
26
  }
27
- l.fraction = t;
28
- function c(o, a) {
29
- switch (a) {
27
+ u.fraction = o;
28
+ function m(l, s) {
29
+ switch (s) {
30
30
  case "fit":
31
31
  return "100%";
32
32
  case "fit-screen":
33
- return o.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
33
+ return l.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
34
34
  default:
35
- return a;
35
+ return s;
36
36
  }
37
37
  }
38
- l.widthHeight = c;
39
- function w(o) {
40
- return (a, u) => `var(--${o}${u});`;
38
+ u.widthHeight = m;
39
+ function N(l) {
40
+ return (s, r) => `var(--${l}${r});`;
41
41
  }
42
- l.variables = w;
43
- function E(o) {
44
- return (a, u) => `var(--${o}${u});`;
42
+ u.variables = N;
43
+ function T(l) {
44
+ return (s, r) => `var(--${l}${r});`;
45
45
  }
46
- l.svgVariables = E;
47
- function C(o, a) {
48
- return `repeat(${a},minmax(0,1fr))`;
46
+ u.svgVariables = T;
47
+ function S(l, s) {
48
+ return `repeat(${s},minmax(0,1fr))`;
49
49
  }
50
- l.gridColumns = C;
51
- function f(o, a) {
52
- return a === "full-row" ? "1/-1" : `span ${a}/span ${a}`;
50
+ u.gridColumns = S;
51
+ function c(l, s) {
52
+ return s === "full-row" ? "1/-1" : `span ${s}/span ${s}`;
53
53
  }
54
- l.gridColumn = f;
55
- function b(o, a) {
56
- return `${a}ms`;
54
+ u.gridColumn = c;
55
+ function f(l, s) {
56
+ return `${s}ms`;
57
57
  }
58
- l.ms = b;
59
- function g(o, a) {
60
- return `${a}deg`;
58
+ u.ms = f;
59
+ function b(l, s) {
60
+ return `${s}deg`;
61
61
  }
62
- l.rotate = g;
63
- function h(o, a) {
64
- return a === "xAxis" ? "-1 1" : "1 -1";
62
+ u.rotate = b;
63
+ function d(l, s) {
64
+ return s === "xAxis" ? "-1 1" : "1 -1";
65
65
  }
66
- l.flip = h;
67
- })(s.Value || (s.Value = {}));
66
+ u.flip = d;
67
+ })(a.Value || (a.Value = {}));
68
68
  })(e || (e = {}));
69
- const i = [
69
+ const v = [
70
70
  0,
71
71
  1,
72
72
  2,
@@ -171,7 +171,7 @@ const i = [
171
171
  -92,
172
172
  -96,
173
173
  -100
174
- ], d = [...i, ...le], F = ["solid", "dashed", "dotted", "double", "groove", "ridge", "inset", "outset", "none", "hidden"], G = ["auto", "hidden", "scroll", "visible"], S = [
174
+ ], h = [...v, ...le], F = ["solid", "dashed", "dotted", "double", "groove", "ridge", "inset", "outset", "none", "hidden"], G = ["auto", "hidden", "scroll", "visible"], E = [
175
175
  "1/2",
176
176
  "1/3",
177
177
  "2/3",
@@ -198,7 +198,7 @@ const i = [
198
198
  "9/12",
199
199
  "10/12",
200
200
  "11/12"
201
- ], z = ["fit", "fit-screen", "auto", "fit-content", "max-content", "min-content"], W = ["auto", "flex-start", "flex-end", "center", "baseline", "stretch"], V = {
201
+ ], z = ["fit", "fit-screen", "auto", "fit-content", "max-content", "min-content"], L = ["auto", "flex-start", "flex-end", "center", "baseline", "stretch"], ue = {
202
202
  /** The `display` CSS property sets whether an element is treated as a block or inline box and the layout used for its children, such as flow layout, grid or flex. */
203
203
  display: {
204
204
  cssNames: ["display"],
@@ -223,9 +223,9 @@ const i = [
223
223
  width: {
224
224
  cssNames: ["width"],
225
225
  values1: { values: z, formatValue: e.Value.widthHeight },
226
- values2: { values: i, formatValue: e.Value.rem },
226
+ values2: { values: v, formatValue: e.Value.rem },
227
227
  values3: {
228
- values: S,
228
+ values: E,
229
229
  formatValue: e.Value.fraction
230
230
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
231
231
  }
@@ -233,9 +233,9 @@ const i = [
233
233
  minWidth: {
234
234
  cssNames: ["min-width"],
235
235
  values1: { values: z, formatValue: e.Value.widthHeight },
236
- values2: { values: i, formatValue: e.Value.rem },
236
+ values2: { values: v, formatValue: e.Value.rem },
237
237
  values3: {
238
- values: S,
238
+ values: E,
239
239
  formatValue: e.Value.fraction
240
240
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
241
241
  }
@@ -243,9 +243,9 @@ const i = [
243
243
  maxWidth: {
244
244
  cssNames: ["max-width"],
245
245
  values1: { values: z, formatValue: e.Value.widthHeight },
246
- values2: { values: i, formatValue: e.Value.rem },
246
+ values2: { values: v, formatValue: e.Value.rem },
247
247
  values3: {
248
- values: S,
248
+ values: E,
249
249
  formatValue: e.Value.fraction
250
250
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
251
251
  }
@@ -253,9 +253,9 @@ const i = [
253
253
  height: {
254
254
  cssNames: ["height"],
255
255
  values1: { values: z, formatValue: e.Value.widthHeight },
256
- values2: { values: i, formatValue: e.Value.rem },
256
+ values2: { values: v, formatValue: e.Value.rem },
257
257
  values3: {
258
- values: S,
258
+ values: E,
259
259
  formatValue: e.Value.fraction
260
260
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
261
261
  }
@@ -263,9 +263,9 @@ const i = [
263
263
  minHeight: {
264
264
  cssNames: ["min-height"],
265
265
  values1: { values: z, formatValue: e.Value.widthHeight },
266
- values2: { values: i, formatValue: e.Value.rem },
266
+ values2: { values: v, formatValue: e.Value.rem },
267
267
  values3: {
268
- values: S,
268
+ values: E,
269
269
  formatValue: e.Value.fraction
270
270
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
271
271
  }
@@ -273,9 +273,9 @@ const i = [
273
273
  maxHeight: {
274
274
  cssNames: ["max-height"],
275
275
  values1: { values: z, formatValue: e.Value.widthHeight },
276
- values2: { values: i, formatValue: e.Value.rem },
276
+ values2: { values: v, formatValue: e.Value.rem },
277
277
  values3: {
278
- values: S,
278
+ values: E,
279
279
  formatValue: e.Value.fraction
280
280
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
281
281
  }
@@ -288,157 +288,157 @@ const i = [
288
288
  },
289
289
  top: {
290
290
  cssNames: ["top"],
291
- values1: { values: d, formatValue: e.Value.rem },
291
+ values1: { values: h, formatValue: e.Value.rem },
292
292
  values2: { values: [] },
293
293
  values3: { values: [] }
294
294
  },
295
295
  right: {
296
296
  cssNames: ["right"],
297
- values1: { values: d, formatValue: e.Value.rem },
297
+ values1: { values: h, formatValue: e.Value.rem },
298
298
  values2: { values: [] },
299
299
  values3: { values: [] }
300
300
  },
301
301
  bottom: {
302
302
  cssNames: ["bottom"],
303
- values1: { values: d, formatValue: e.Value.rem },
303
+ values1: { values: h, formatValue: e.Value.rem },
304
304
  values2: { values: [] },
305
305
  values3: { values: [] }
306
306
  },
307
307
  left: {
308
308
  cssNames: ["left"],
309
- values1: { values: d, formatValue: e.Value.rem },
309
+ values1: { values: h, formatValue: e.Value.rem },
310
310
  values2: { values: [] },
311
311
  values3: { values: [] }
312
312
  },
313
313
  inset: {
314
314
  cssNames: ["inset"],
315
- values1: { values: d, formatValue: e.Value.rem },
315
+ values1: { values: h, formatValue: e.Value.rem },
316
316
  values2: { values: [] },
317
317
  values3: { values: [] }
318
318
  },
319
319
  m: {
320
320
  cssNames: ["margin"],
321
- values1: { values: d, formatValue: e.Value.rem },
321
+ values1: { values: h, formatValue: e.Value.rem },
322
322
  values2: { values: ["auto"] },
323
323
  values3: { values: [] }
324
324
  },
325
325
  mx: {
326
326
  cssNames: ["margin-inline"],
327
- values1: { values: d, formatValue: e.Value.rem },
327
+ values1: { values: h, formatValue: e.Value.rem },
328
328
  values2: { values: ["auto"] },
329
329
  values3: { values: [] }
330
330
  },
331
331
  my: {
332
332
  cssNames: ["margin-block"],
333
- values1: { values: d, formatValue: e.Value.rem },
333
+ values1: { values: h, formatValue: e.Value.rem },
334
334
  values2: { values: ["auto"] },
335
335
  values3: { values: [] }
336
336
  },
337
337
  mt: {
338
338
  cssNames: ["margin-top"],
339
- values1: { values: d, formatValue: e.Value.rem },
339
+ values1: { values: h, formatValue: e.Value.rem },
340
340
  values2: { values: ["auto"] },
341
341
  values3: { values: [] }
342
342
  },
343
343
  mr: {
344
344
  cssNames: ["margin-right"],
345
- values1: { values: d, formatValue: e.Value.rem },
345
+ values1: { values: h, formatValue: e.Value.rem },
346
346
  values2: { values: ["auto"] },
347
347
  values3: { values: [] }
348
348
  },
349
349
  mb: {
350
350
  cssNames: ["margin-bottom"],
351
- values1: { values: d, formatValue: e.Value.rem },
351
+ values1: { values: h, formatValue: e.Value.rem },
352
352
  values2: { values: ["auto"] },
353
353
  values3: { values: [] }
354
354
  },
355
355
  ml: {
356
356
  cssNames: ["margin-left"],
357
- values1: { values: d, formatValue: e.Value.rem },
357
+ values1: { values: h, formatValue: e.Value.rem },
358
358
  values2: { values: ["auto"] },
359
359
  values3: { values: [] }
360
360
  },
361
361
  p: {
362
362
  cssNames: ["padding"],
363
- values1: { values: d, formatValue: e.Value.rem },
363
+ values1: { values: h, formatValue: e.Value.rem },
364
364
  values2: { values: [] },
365
365
  values3: { values: [] }
366
366
  },
367
367
  px: {
368
368
  cssNames: ["padding-inline"],
369
- values1: { values: d, formatValue: e.Value.rem },
369
+ values1: { values: h, formatValue: e.Value.rem },
370
370
  values2: { values: [] },
371
371
  values3: { values: [] }
372
372
  },
373
373
  py: {
374
374
  cssNames: ["padding-block"],
375
- values1: { values: d, formatValue: e.Value.rem },
375
+ values1: { values: h, formatValue: e.Value.rem },
376
376
  values2: { values: [] },
377
377
  values3: { values: [] }
378
378
  },
379
379
  pt: {
380
380
  cssNames: ["padding-top"],
381
- values1: { values: d, formatValue: e.Value.rem },
381
+ values1: { values: h, formatValue: e.Value.rem },
382
382
  values2: { values: [] },
383
383
  values3: { values: [] }
384
384
  },
385
385
  pr: {
386
386
  cssNames: ["padding-right"],
387
- values1: { values: d, formatValue: e.Value.rem },
387
+ values1: { values: h, formatValue: e.Value.rem },
388
388
  values2: { values: [] },
389
389
  values3: { values: [] }
390
390
  },
391
391
  pb: {
392
392
  cssNames: ["padding-bottom"],
393
- values1: { values: d, formatValue: e.Value.rem },
393
+ values1: { values: h, formatValue: e.Value.rem },
394
394
  values2: { values: [] },
395
395
  values3: { values: [] }
396
396
  },
397
397
  pl: {
398
398
  cssNames: ["padding-left"],
399
- values1: { values: d, formatValue: e.Value.rem },
399
+ values1: { values: h, formatValue: e.Value.rem },
400
400
  values2: { values: [] },
401
401
  values3: { values: [] }
402
402
  },
403
403
  b: {
404
404
  cssNames: ["border-width"],
405
- values1: { values: i, formatValue: e.Value.px },
405
+ values1: { values: v, formatValue: e.Value.px },
406
406
  values2: { values: [] },
407
407
  values3: { values: [] }
408
408
  },
409
409
  bx: {
410
410
  cssNames: ["border-inline-width"],
411
- values1: { values: d, formatValue: e.Value.px },
411
+ values1: { values: h, formatValue: e.Value.px },
412
412
  values2: { values: [] },
413
413
  values3: { values: [] }
414
414
  },
415
415
  by: {
416
416
  cssNames: ["border-block-width"],
417
- values1: { values: d, formatValue: e.Value.px },
417
+ values1: { values: h, formatValue: e.Value.px },
418
418
  values2: { values: [] },
419
419
  values3: { values: [] }
420
420
  },
421
421
  bt: {
422
422
  cssNames: ["border-top-width"],
423
- values1: { values: d, formatValue: e.Value.px },
423
+ values1: { values: h, formatValue: e.Value.px },
424
424
  values2: { values: [] },
425
425
  values3: { values: [] }
426
426
  },
427
427
  br: {
428
428
  cssNames: ["border-right-width"],
429
- values1: { values: d, formatValue: e.Value.px },
429
+ values1: { values: h, formatValue: e.Value.px },
430
430
  values2: { values: [] },
431
431
  values3: { values: [] }
432
432
  },
433
433
  bb: {
434
434
  cssNames: ["border-bottom-width"],
435
- values1: { values: d, formatValue: e.Value.px },
435
+ values1: { values: h, formatValue: e.Value.px },
436
436
  values2: { values: [] },
437
437
  values3: { values: [] }
438
438
  },
439
439
  bl: {
440
440
  cssNames: ["border-left-width"],
441
- values1: { values: d, formatValue: e.Value.px },
441
+ values1: { values: h, formatValue: e.Value.px },
442
442
  values2: { values: [] },
443
443
  values3: { values: [] }
444
444
  },
@@ -450,55 +450,55 @@ const i = [
450
450
  },
451
451
  borderRadius: {
452
452
  cssNames: ["border-radius"],
453
- values1: { values: i, formatValue: e.Value.rem },
453
+ values1: { values: v, formatValue: e.Value.rem },
454
454
  values2: { values: [] },
455
455
  values3: { values: [] }
456
456
  },
457
457
  borderRadiusTop: {
458
458
  cssNames: ["border-top-left-radius", "border-top-right-radius"],
459
- values1: { values: i, formatValue: e.Value.rem },
459
+ values1: { values: v, formatValue: e.Value.rem },
460
460
  values2: { values: [] },
461
461
  values3: { values: [] }
462
462
  },
463
463
  borderRadiusRight: {
464
464
  cssNames: ["border-top-right-radius", "border-bottom-right-radius"],
465
- values1: { values: i, formatValue: e.Value.rem },
465
+ values1: { values: v, formatValue: e.Value.rem },
466
466
  values2: { values: [] },
467
467
  values3: { values: [] }
468
468
  },
469
469
  borderRadiusBottom: {
470
470
  cssNames: ["border-bottom-left-radius", "border-bottom-right-radius"],
471
- values1: { values: i, formatValue: e.Value.rem },
471
+ values1: { values: v, formatValue: e.Value.rem },
472
472
  values2: { values: [] },
473
473
  values3: { values: [] }
474
474
  },
475
475
  borderRadiusLeft: {
476
476
  cssNames: ["border-top-left-radius", "border-bottom-left-radius"],
477
- values1: { values: i, formatValue: e.Value.rem },
477
+ values1: { values: v, formatValue: e.Value.rem },
478
478
  values2: { values: [] },
479
479
  values3: { values: [] }
480
480
  },
481
481
  borderRadiusTopLeft: {
482
482
  cssNames: ["border-top-left-radius"],
483
- values1: { values: i, formatValue: e.Value.rem },
483
+ values1: { values: v, formatValue: e.Value.rem },
484
484
  values2: { values: [] },
485
485
  values3: { values: [] }
486
486
  },
487
487
  borderRadiusTopRight: {
488
488
  cssNames: ["border-top-right-radius"],
489
- values1: { values: i, formatValue: e.Value.rem },
489
+ values1: { values: v, formatValue: e.Value.rem },
490
490
  values2: { values: [] },
491
491
  values3: { values: [] }
492
492
  },
493
493
  borderRadiusBottomLeft: {
494
494
  cssNames: ["border-bottom-left-radius"],
495
- values1: { values: i, formatValue: e.Value.rem },
495
+ values1: { values: v, formatValue: e.Value.rem },
496
496
  values2: { values: [] },
497
497
  values3: { values: [] }
498
498
  },
499
499
  borderRadiusBottomRight: {
500
500
  cssNames: ["border-bottom-right-radius"],
501
- values1: { values: i, formatValue: e.Value.rem },
501
+ values1: { values: v, formatValue: e.Value.rem },
502
502
  values2: { values: [] },
503
503
  values3: { values: [] }
504
504
  },
@@ -581,7 +581,7 @@ const i = [
581
581
  },
582
582
  fontSize: {
583
583
  cssNames: ["font-size"],
584
- values1: { values: i, formatValue: e.Value.px },
584
+ values1: { values: v, formatValue: e.Value.px },
585
585
  values2: { values: ["inherit"] },
586
586
  values3: { values: [] }
587
587
  },
@@ -599,13 +599,13 @@ const i = [
599
599
  },
600
600
  letterSpacing: {
601
601
  cssNames: ["letter-spacing"],
602
- values1: { values: i, formatValue: e.Value.px },
602
+ values1: { values: v, formatValue: e.Value.px },
603
603
  values2: { values: [] },
604
604
  values3: { values: [] }
605
605
  },
606
606
  lineHeight: {
607
607
  cssNames: ["line-height"],
608
- values1: { values: i, formatValue: e.Value.px },
608
+ values1: { values: v, formatValue: e.Value.px },
609
609
  values2: { values: ["font-size"], formatValue: () => "1" },
610
610
  values3: { values: [] }
611
611
  },
@@ -694,79 +694,79 @@ const i = [
694
694
  },
695
695
  gap: {
696
696
  cssNames: ["gap"],
697
- values1: { values: i, formatValue: e.Value.rem },
697
+ values1: { values: v, formatValue: e.Value.rem },
698
698
  values2: { values: [] },
699
699
  values3: { values: [] }
700
700
  },
701
701
  rowGap: {
702
702
  cssNames: ["row-gap"],
703
- values1: { values: i, formatValue: e.Value.rem },
703
+ values1: { values: v, formatValue: e.Value.rem },
704
704
  values2: { values: [] },
705
705
  values3: { values: [] }
706
706
  },
707
707
  columnGap: {
708
708
  cssNames: ["column-gap"],
709
- values1: { values: i, formatValue: e.Value.rem },
709
+ values1: { values: v, formatValue: e.Value.rem },
710
710
  values2: { values: [] },
711
711
  values3: { values: [] }
712
712
  },
713
713
  order: {
714
714
  cssNames: ["order"],
715
- values1: { values: i },
715
+ values1: { values: v },
716
716
  values2: { values: [] },
717
717
  values3: { values: [] }
718
718
  },
719
719
  flexGrow: {
720
720
  cssNames: ["flex-grow"],
721
- values1: { values: i },
721
+ values1: { values: v },
722
722
  values2: { values: [] },
723
723
  values3: { values: [] }
724
724
  },
725
725
  flexShrink: {
726
726
  cssNames: ["flex-shrink"],
727
- values1: { values: i },
727
+ values1: { values: v },
728
728
  values2: { values: [] },
729
729
  values3: { values: [] }
730
730
  },
731
731
  alignSelf: {
732
732
  cssNames: ["align-self"],
733
- values1: { values: W },
733
+ values1: { values: L },
734
734
  values2: { values: [] },
735
735
  values3: { values: [] }
736
736
  },
737
737
  justifySelf: {
738
738
  cssNames: ["justify-self"],
739
- values1: { values: W },
739
+ values1: { values: L },
740
740
  values2: { values: [] },
741
741
  values3: { values: [] }
742
742
  },
743
743
  gridColumns: {
744
744
  cssNames: ["grid-template-columns"],
745
- values1: { values: i, formatValue: e.Value.gridColumns },
745
+ values1: { values: v, formatValue: e.Value.gridColumns },
746
746
  values2: { values: [] },
747
747
  values3: { values: [] }
748
748
  },
749
749
  colSpan: {
750
750
  cssNames: ["grid-column"],
751
- values1: { values: i, formatValue: e.Value.gridColumn },
751
+ values1: { values: v, formatValue: e.Value.gridColumn },
752
752
  values2: { values: ["full-row"], formatValue: e.Value.gridColumn },
753
753
  values3: { values: [] }
754
754
  },
755
755
  colStart: {
756
756
  cssNames: ["grid-column-start"],
757
- values1: { values: i },
757
+ values1: { values: v },
758
758
  values2: { values: [] },
759
759
  values3: { values: [] }
760
760
  },
761
761
  colEnd: {
762
762
  cssNames: ["grid-column-end"],
763
- values1: { values: i },
763
+ values1: { values: v },
764
764
  values2: { values: [] },
765
765
  values3: { values: [] }
766
766
  },
767
767
  outline: {
768
768
  cssNames: ["outline-width"],
769
- values1: { values: i, formatValue: e.Value.px },
769
+ values1: { values: v, formatValue: e.Value.px },
770
770
  values2: { values: [] },
771
771
  values3: { values: [] }
772
772
  },
@@ -778,7 +778,7 @@ const i = [
778
778
  },
779
779
  outlineOffset: {
780
780
  cssNames: ["outline-offset"],
781
- values1: { values: i, formatValue: e.Value.px },
781
+ values1: { values: v, formatValue: e.Value.px },
782
782
  values2: { values: [] },
783
783
  values3: { values: [] }
784
784
  },
@@ -839,7 +839,7 @@ const i = [
839
839
  values2: { values: [] },
840
840
  values3: { values: [] }
841
841
  }
842
- }, M = {
842
+ }, W = {
843
843
  shadow: { cssNames: ["box-shadow"], formatValue: e.Value.variables("shadow") },
844
844
  background: { cssNames: ["background"], formatValue: e.Value.variables("background") },
845
845
  backgroundImage: { cssNames: ["background-image"], formatValue: e.Value.variables("backgroundImage") },
@@ -869,148 +869,148 @@ const i = [
869
869
  "Required",
870
870
  "Optional",
871
871
  "Disabled"
872
- ], H = ["sm", "md", "lg", "xl", "xxl"], ue = {
872
+ ], A = ["sm", "md", "lg", "xl", "xxl"], te = {
873
873
  sm: 640,
874
874
  md: 768,
875
875
  lg: 1024,
876
876
  xl: 1280,
877
877
  xxl: 1536
878
878
  };
879
- Object.keys(M).forEach((s) => {
880
- V[s] = M[s], V[s].isThemeStyle = !0;
881
- });
882
- Object.keys(K).forEach((s) => {
883
- V[s] = K[s], V[s].isThemeStyle = !0;
884
- });
885
- let L = Object.keys(V);
886
- P.forEach((s) => {
887
- L.forEach((l) => {
888
- V[`${l}${s}`] = { ...V[l], pseudoSuffix: s };
879
+ function J() {
880
+ const a = { ...ue };
881
+ Object.keys(W).forEach((t) => {
882
+ a[t] = W[t], a[t].isThemeStyle = !0;
883
+ }), Object.keys(K).forEach((t) => {
884
+ a[t] = K[t], a[t].isThemeStyle = !0;
889
885
  });
890
- });
891
- L = Object.keys(V);
892
- H.forEach((s) => {
893
- L.forEach((l) => {
894
- V[`${s}${l}`] = { ...V[l], breakpoint: s };
895
- });
896
- });
897
- function te(s, l, r) {
898
- const n = Object.entries(V).filter(
899
- ([t, c]) => c.pseudoSuffix === s && !c.customPseudoSuffix && !(`${t}${l}` in V)
900
- ).map(([t]) => t);
901
- return n.forEach((t) => {
902
- V[`${t}${l}`] = {
903
- ...V[t],
904
- customPseudoSuffix: r + l
886
+ let u = Object.keys(a);
887
+ return P.forEach((t) => {
888
+ u.forEach((n) => {
889
+ a[`${n}${t}`] = { ...a[n], pseudoSuffix: t };
890
+ });
891
+ }), u = Object.keys(a), A.forEach((t) => {
892
+ u.forEach((n) => {
893
+ a[`${t}${n}`] = { ...a[n], breakpoint: t };
894
+ });
895
+ }), a;
896
+ }
897
+ let C = J();
898
+ function oe() {
899
+ C = J();
900
+ }
901
+ function re(a, u, t) {
902
+ const n = Object.entries(C).filter(
903
+ ([o, m]) => m.pseudoSuffix === a && !m.customPseudoSuffix && !(`${o}${u}` in C)
904
+ ).map(([o]) => o);
905
+ return n.forEach((o) => {
906
+ C[`${o}${u}`] = {
907
+ ...C[o],
908
+ customPseudoSuffix: t + u
905
909
  };
906
- }), n.map((t) => `${t}${l}`);
910
+ }), n.map((o) => `${o}${u}`);
907
911
  }
908
- class oe {
912
+ class ne {
909
913
  constructor() {
910
914
  this._index = 0, this._cache = {};
911
915
  }
912
- getIdentity(l) {
913
- return this._cache[l] || (this._cache[l] = this.getByIndex(this._index++)), this._cache[l];
916
+ getIdentity(u) {
917
+ return this._cache[u] || (this._cache[u] = this.getByIndex(this._index++)), this._cache[u];
914
918
  }
915
- getByIndex(l) {
916
- const { first: r, next: n } = re, t = l - r.length;
917
- if (t < 0)
918
- return r[l];
919
- const c = Math.floor(t / n.length), w = t - c * n.length;
920
- return this.getByIndex(c) + n[w];
919
+ getByIndex(u) {
920
+ const { first: t, next: n } = ve, o = u - t.length;
921
+ if (o < 0)
922
+ return t[u];
923
+ const m = Math.floor(o / n.length), N = o - m * n.length;
924
+ return this.getByIndex(m) + n[N];
921
925
  }
922
926
  }
923
- const re = {
927
+ const ve = {
924
928
  first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
925
929
  next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
926
930
  };
927
931
  var D;
928
- ((s) => {
929
- s.boxClassName = "_box", s.svgClassName = "_svg", s.cronoStylesElementId = "crono-styles";
930
- const l = `: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;}}
932
+ ((a) => {
933
+ a.boxClassName = "_box", a.svgClassName = "_svg", a.cronoStylesElementId = "crono-styles";
934
+ const u = `: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;}}
931
935
  html{font-size: 16px;font-family: Arial, sans-serif;}
932
936
  body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}
933
937
  a,ul{all: unset;}
934
- .${s.boxClassName}{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;}
935
- .${s.svgClassName}{transition: all var(--svgTransitionTime);}.${s.svgClassName} path,.${s.svgClassName} circle,.${s.svgClassName} rect,.${s.svgClassName} line {transition: all var(--svgTransitionTime);}
936
- `, r = new oe(), n = Object.keys(V);
937
- let t = !0, c = n.reduce(
938
- (a, u) => (a[u] = /* @__PURE__ */ new Set(), a),
939
- {}
940
- );
941
- function w(a, u, v) {
942
- if (a in V)
943
- return b(a, u, v);
944
- if (["disabledGroup", "hoverGroup", "focusGroup", "activeGroup"].includes(a))
945
- return a + u;
938
+ .${a.boxClassName}{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;}
939
+ .${a.svgClassName}{transition: all var(--svgTransitionTime);}.${a.svgClassName} path,.${a.svgClassName} circle,.${a.svgClassName} rect,.${a.svgClassName} line {transition: all var(--svgTransitionTime);}
940
+ `, t = new ne();
941
+ let n = !0, o = {};
942
+ T();
943
+ function m(l, s, r) {
944
+ if (l in C)
945
+ return c(l, s, r);
946
+ if (["disabledGroup", "hoverGroup", "focusGroup", "activeGroup"].includes(l))
947
+ return l + s;
946
948
  }
947
- s.get = w;
948
- function E() {
949
- if (t) {
950
- let a = g([l]);
951
- P.forEach((v) => {
952
- a = g(a, v);
953
- }), H.forEach((v) => {
954
- a.push(`@media(min-width: ${ue[v]}px){`), a = g(a, void 0, v), P.forEach((p) => {
955
- a = g(a, p, v);
956
- }), a.push("}");
949
+ a.get = m;
950
+ function N() {
951
+ if (n) {
952
+ let l = f([u]);
953
+ P.forEach((r) => {
954
+ l = f(l, r);
955
+ }), A.forEach((r) => {
956
+ l.push(`@media(min-width: ${te[r]}px){`), l = f(l, void 0, r), P.forEach((i) => {
957
+ l = f(l, i, r);
958
+ }), l.push("}");
957
959
  });
958
- const u = o();
959
- u.innerHTML = a.join(""), t = !1;
960
+ const s = d();
961
+ s.innerHTML = l.join(""), n = !1;
960
962
  }
961
963
  }
962
- s.flush = E;
963
- function C() {
964
- c = n.reduce(
965
- (u, v) => (u[v] = /* @__PURE__ */ new Set(), u),
964
+ a.flush = N;
965
+ function T() {
966
+ oe(), o = Object.keys(C).reduce(
967
+ (s, r) => (s[r] = /* @__PURE__ */ new Set(), s),
966
968
  {}
967
969
  );
968
- const a = o();
969
- a.innerHTML = "";
970
970
  }
971
- s.clear = C;
972
- function f(a, u, v) {
973
- te(a, u, v).forEach((y) => {
974
- c[y] = /* @__PURE__ */ new Set();
971
+ a.clear = T;
972
+ function S(l, s, r) {
973
+ re(l, s, r).forEach((p) => {
974
+ o[p] = /* @__PURE__ */ new Set();
975
975
  });
976
976
  }
977
- s.addCustomPseudoClass = f;
978
- function b(a, u, v) {
979
- const p = (v ?? "") + a;
980
- c[p].has(u) || (t = !0, c[p].add(u));
981
- const y = `${p}${u}`;
982
- return process.env.NODE_ENV === "test" ? y : r.getIdentity(y);
977
+ a.addCustomPseudoClass = S;
978
+ function c(l, s, r) {
979
+ const i = (r ?? "") + l;
980
+ o[i].has(s) || (n = !0, o[i].add(s));
981
+ const p = `${i}${s}`;
982
+ return process.env.NODE_ENV === "test" ? p : t.getIdentity(p);
983
983
  }
984
- function g(a, u, v) {
985
- return Object.entries(c).filter(
986
- ([y, x]) => {
987
- var T, j;
988
- return ((T = V[y]) == null ? void 0 : T.pseudoSuffix) === u && ((j = V[y]) == null ? void 0 : j.breakpoint) === v && x.size > 0;
984
+ function f(l, s, r) {
985
+ return Object.entries(o).filter(
986
+ ([p, k]) => {
987
+ var w, $;
988
+ return ((w = C[p]) == null ? void 0 : w.pseudoSuffix) === s && (($ = C[p]) == null ? void 0 : $.breakpoint) === r && k.size > 0;
989
989
  }
990
- ).reduce((y, [x, T]) => (T.forEach((j) => {
990
+ ).reduce((p, [k, w]) => (w.forEach(($) => {
991
991
  var q;
992
- const N = V[x], $ = h(N, j), k = `.${b(x, j)}`;
993
- let m = [];
994
- u ? u === "Hover" ? m = p(k, N, $, "hover") : u === "Focus" ? m = p(k, N, $, "focus-within") : u === "Active" ? m = p(k, N, $, "active") : u === "Checked" ? m = p(k, N, $, "checked") : u === "Indeterminate" ? m = p(k, N, $, "indeterminate") : u === "Valid" ? m = p(k, N, $, "valid") : u === "Invalid" ? m = p(k, N, $, "invalid") : u === "Required" ? m = p(k, N, $, "required") : u === "Optional" ? m = p(k, N, $, "optional") : u === "Disabled" && (m = p(k, N, $, "disabled")) : m = p(k, N, $);
995
- const O = ((q = $.formatValue) == null ? void 0 : q.call($, x, j)) ?? j, Z = V[x].cssNames.map((ee) => `${ee}:${O};`).join("");
996
- y.push(`${m.join(",")}{${Z}}`);
997
- }), y), a);
998
- function p(y, x, T, j) {
999
- let N = y;
1000
- return j && (N = x.customPseudoSuffix ? `.${x.customPseudoSuffix}:${j} ${y}` : `${y}:${j}`), T.formatSelector ? T.formatSelector(N) : [N];
992
+ const g = C[k], y = b(g, $), j = `.${c(k, $)}`;
993
+ let x = [];
994
+ s ? s === "Hover" ? x = i(j, g, y, "hover") : s === "Focus" ? x = i(j, g, y, "focus-within") : s === "Active" ? x = i(j, g, y, "active") : s === "Checked" ? x = i(j, g, y, "checked") : s === "Indeterminate" ? x = i(j, g, y, "indeterminate") : s === "Valid" ? x = i(j, g, y, "valid") : s === "Invalid" ? x = i(j, g, y, "invalid") : s === "Required" ? x = i(j, g, y, "required") : s === "Optional" ? x = i(j, g, y, "optional") : s === "Disabled" && (x = i(j, g, y, "disabled")) : x = i(j, g, y);
995
+ const V = ((q = y.formatValue) == null ? void 0 : q.call(y, k, $)) ?? $, Z = C[k].cssNames.map((ee) => `${ee}:${V};`).join("");
996
+ p.push(`${x.join(",")}{${Z}}`);
997
+ }), p), l);
998
+ function i(p, k, w, $) {
999
+ let g = p;
1000
+ return $ && (g = k.customPseudoSuffix ? `.${k.customPseudoSuffix}:${$} ${p}` : `${p}:${$}`), w.formatSelector ? w.formatSelector(g) : [g];
1001
1001
  }
1002
1002
  }
1003
- function h(a, u) {
1004
- return a.isThemeStyle ? a : a.values1.values.includes(u) ? a.values1 : a.values2.values.includes(u) ? a.values2 : a.values3;
1003
+ function b(l, s) {
1004
+ return l.isThemeStyle ? l : l.values1.values.includes(s) ? l.values1 : l.values2.values.includes(s) ? l.values2 : l.values3;
1005
1005
  }
1006
- function o() {
1007
- const u = typeof window < "u" && typeof window.document < "u" ? window.document : global.document;
1008
- let v = u.getElementById(s.cronoStylesElementId);
1009
- return v || (v = u.createElement("style"), v.setAttribute("id", s.cronoStylesElementId), v.setAttribute("type", "text/css"), u.head.insertBefore(v, u.head.firstChild)), v;
1006
+ function d() {
1007
+ const s = typeof window < "u" && typeof window.document < "u" ? window.document : global.document;
1008
+ let r = s.getElementById(a.cronoStylesElementId);
1009
+ return r || (r = s.createElement("style"), r.setAttribute("id", a.cronoStylesElementId), r.setAttribute("type", "text/css"), s.head.insertBefore(r, s.head.firstChild)), r;
1010
1010
  }
1011
- s.getElement = o;
1011
+ a.getElement = d;
1012
1012
  })(D || (D = {}));
1013
- const I = D, A = {
1013
+ const I = D, H = {
1014
1014
  button: {
1015
1015
  styles: {
1016
1016
  display: "inline-block",
@@ -1051,7 +1051,7 @@ const I = D, A = {
1051
1051
  borderRadius: 1
1052
1052
  }
1053
1053
  }
1054
- }, ne = {
1054
+ }, ie = {
1055
1055
  Hover: "hover",
1056
1056
  Focus: "focus",
1057
1057
  Active: "active",
@@ -1064,28 +1064,28 @@ const I = D, A = {
1064
1064
  Disabled: "disabled"
1065
1065
  };
1066
1066
  var _;
1067
- ((s) => {
1068
- s.Styles = {};
1069
- function l(f) {
1070
- s.Styles = t(A), s.Styles = n(f);
1067
+ ((a) => {
1068
+ a.Styles = {};
1069
+ function u(c) {
1070
+ a.Styles = o(H), a.Styles = n(c);
1071
1071
  }
1072
- s.setup = l;
1073
- function r(f, b) {
1074
- const { colors: g = {}, shadows: h = {}, backgrounds: o = {}, backgroundImages: a = {} } = f;
1075
- g.none = "none", h.none = "none", o.none = "none", a.none = "none";
1076
- const u = Object.entries(g).map(([m, O]) => `--color${m}: ${O};`).join(`
1077
- `), v = Object.entries(h).map(([m, O]) => `--shadow${m}: ${O};`).join(`
1078
- `), p = Object.entries(o).map(([m, O]) => `--background${m}: ${O};`).join(`
1079
- `), y = Object.entries(a).map(([m, O]) => `--backgroundImage${m}: ${O};`).join(`
1080
- `), x = [":root {"];
1081
- u && x.push(` ${u}`), v && x.push(` ${v}`), p && x.push(` ${p}`), y && x.push(` ${y}`), x.push("}");
1082
- const T = Object.keys(g).map((m) => `'${m}'`).join(" | "), j = Object.keys(o).map((m) => `'${m}'`).join(" | "), N = Object.keys(a).map((m) => `'${m}'`).join(" | "), $ = Object.keys(h).map((m) => `'${m}'`).join(" | "), k = `import '@cronocode/react-box';
1072
+ a.setup = u;
1073
+ function t(c, f) {
1074
+ const { colors: b = {}, shadows: d = {}, backgrounds: l = {}, backgroundImages: s = {} } = c;
1075
+ b.none = "none", d.none = "none", l.none = "none", s.none = "none";
1076
+ const r = Object.entries(b).map(([V, O]) => `--color${V}: ${O};`).join(`
1077
+ `), i = Object.entries(d).map(([V, O]) => `--shadow${V}: ${O};`).join(`
1078
+ `), p = Object.entries(l).map(([V, O]) => `--background${V}: ${O};`).join(`
1079
+ `), k = Object.entries(s).map(([V, O]) => `--backgroundImage${V}: ${O};`).join(`
1080
+ `), w = [":root {"];
1081
+ r && w.push(` ${r}`), i && w.push(` ${i}`), p && w.push(` ${p}`), k && w.push(` ${k}`), w.push("}");
1082
+ const $ = Object.keys(b).map((V) => `'${V}'`).join(" | "), g = Object.keys(l).map((V) => `'${V}'`).join(" | "), y = Object.keys(s).map((V) => `'${V}'`).join(" | "), j = Object.keys(d).map((V) => `'${V}'`).join(" | "), x = `import '@cronocode/react-box';
1083
1083
 
1084
- declare module '${(b == null ? void 0 : b.namespacePath) ?? "@cronocode/react-box/core/types"}' {
1085
- type ColorType = ${T};
1086
- type BackgroundType = ${j};
1087
- type BackgroundImageType = ${N};
1088
- type ShadowType = ${$};
1084
+ declare module '${(f == null ? void 0 : f.namespacePath) ?? "@cronocode/react-box/core/types"}' {
1085
+ type ColorType = ${$};
1086
+ type BackgroundType = ${g};
1087
+ type BackgroundImageType = ${y};
1088
+ type ShadowType = ${j};
1089
1089
 
1090
1090
  namespace Augmented {
1091
1091
  interface BoxProps {
@@ -1106,129 +1106,129 @@ var _;
1106
1106
  }
1107
1107
  `;
1108
1108
  return {
1109
- variables: x.join(`
1109
+ variables: w.join(`
1110
1110
  `),
1111
- boxDts: k
1111
+ boxDts: x
1112
1112
  };
1113
1113
  }
1114
- s.setupAugmentedProps = r;
1115
- function n(f) {
1116
- const b = t(f);
1117
- return Object.keys(A).forEach((h) => {
1118
- const o = b[h], a = A[h];
1119
- o ? o.styles = { ...a.styles, ...o.styles } : b[h] = A[h];
1120
- }), b;
1114
+ a.setupAugmentedProps = t;
1115
+ function n(c) {
1116
+ const f = o(c);
1117
+ return Object.keys(H).forEach((d) => {
1118
+ const l = f[d], s = H[d];
1119
+ l ? l.styles = { ...s.styles, ...l.styles } : f[d] = H[d];
1120
+ }), f;
1121
1121
  }
1122
- function t(f) {
1123
- return c(f), E(f), f;
1122
+ function o(c) {
1123
+ return m(c), T(c), c;
1124
1124
  }
1125
- function c(f) {
1126
- if (!f.components)
1125
+ function m(c) {
1126
+ if (!c.components)
1127
1127
  return;
1128
- const b = Object.keys(f.components);
1129
- for (const g of b) {
1130
- const h = f.components[g], o = w(g, h);
1131
- delete h.children;
1132
- for (const a of o) {
1133
- const [u, v] = a;
1134
- f.components[u] = v;
1128
+ const f = Object.keys(c.components);
1129
+ for (const b of f) {
1130
+ const d = c.components[b], l = N(b, d);
1131
+ delete d.children;
1132
+ for (const s of l) {
1133
+ const [r, i] = s;
1134
+ c.components[r] = i;
1135
1135
  }
1136
1136
  }
1137
1137
  }
1138
- function w(f, b) {
1139
- if (!b.children)
1138
+ function N(c, f) {
1139
+ if (!f.children)
1140
1140
  return [];
1141
- const g = Object.keys(b.children), h = [];
1142
- for (const o of g) {
1143
- const a = `${f}.${o}`, u = b.children[o], v = w(a, u);
1144
- h.push(...v), delete u.children, h.push([a, u]);
1141
+ const b = Object.keys(f.children), d = [];
1142
+ for (const l of b) {
1143
+ const s = `${c}.${l}`, r = f.children[l], i = N(s, r);
1144
+ d.push(...i), delete r.children, d.push([s, r]);
1145
1145
  }
1146
- return h;
1146
+ return d;
1147
1147
  }
1148
- function E(f) {
1149
- const { components: b, ...g } = f, h = Object.values(g);
1150
- b && h.push(...Object.values(b));
1151
- for (const o of h)
1152
- C(o.styles), H.forEach((a) => {
1153
- if (a in o.styles) {
1154
- const u = o.styles[a];
1155
- C(u);
1148
+ function T(c) {
1149
+ const { components: f, ...b } = c, d = Object.values(b);
1150
+ f && d.push(...Object.values(f));
1151
+ for (const l of d)
1152
+ S(l.styles), A.forEach((s) => {
1153
+ if (s in l.styles) {
1154
+ const r = l.styles[s];
1155
+ S(r);
1156
1156
  }
1157
- }), o.themes && Object.values(o.themes).forEach((a) => {
1158
- C(a), H.forEach((u) => {
1159
- if (u in a) {
1160
- const v = a[u];
1161
- C(v);
1157
+ }), l.themes && Object.values(l.themes).forEach((s) => {
1158
+ S(s), A.forEach((r) => {
1159
+ if (r in s) {
1160
+ const i = s[r];
1161
+ S(i);
1162
1162
  }
1163
1163
  });
1164
1164
  });
1165
1165
  }
1166
- function C(f) {
1167
- Object.entries(ne).forEach(([b, g]) => {
1168
- if (g in f) {
1169
- const h = f[g];
1170
- Object.entries(h).map(([o, a]) => {
1171
- f[`${o}${b}`] = a;
1172
- }), delete f[g];
1166
+ function S(c) {
1167
+ Object.entries(ie).forEach(([f, b]) => {
1168
+ if (b in c) {
1169
+ const d = c[b];
1170
+ Object.entries(d).map(([l, s]) => {
1171
+ c[`${l}${f}`] = s;
1172
+ }), delete c[b];
1173
1173
  }
1174
1174
  });
1175
1175
  }
1176
1176
  })(_ || (_ = {}));
1177
- const U = _;
1178
- function ve(s) {
1179
- const { clean: l, theme: r, component: n } = s;
1180
- return Y(() => {
1181
- var c, w;
1182
- if (l)
1177
+ const M = _;
1178
+ function ce(a) {
1179
+ const { clean: u, theme: t, component: n } = a;
1180
+ return X(() => {
1181
+ var m, N;
1182
+ if (u)
1183
1183
  return;
1184
- let t = U.Styles[n] ?? ((c = U.Styles.components) == null ? void 0 : c[n]);
1185
- if (t)
1186
- return r ? { ...t.styles, ...(w = t.themes) == null ? void 0 : w[r] } : t.styles;
1187
- }, [n, l, r]);
1184
+ let o = M.Styles[n] ?? ((m = M.Styles.components) == null ? void 0 : m[n]);
1185
+ if (o)
1186
+ return t ? { ...o.styles, ...(N = o.themes) == null ? void 0 : N[t] } : o.styles;
1187
+ }, [n, u, t]);
1188
1188
  }
1189
- const ie = typeof window < "u" && typeof window.document < "u", ce = ie ? se : ae;
1190
- function be(s, l) {
1191
- const r = ve(s);
1192
- return ce(I.flush, [s]), Y(() => {
1193
- const n = [l ? I.svgClassName : I.boxClassName], t = r ? { ...r, ...s } : { ...s };
1194
- return X(t), Object.entries(t).forEach(([c, w]) => {
1195
- n.push(I.get(c, w));
1196
- }), H.forEach((c) => {
1197
- if (c in t) {
1198
- const w = t[c];
1199
- X(w), Object.entries(w).forEach(([E, C]) => {
1200
- n.push(I.get(E, C, c));
1201
- }), delete t[c];
1189
+ const me = typeof window < "u" && typeof window.document < "u", fe = me ? se : ae;
1190
+ function ge(a, u) {
1191
+ const t = ce(a);
1192
+ return fe(I.flush, [a]), X(() => {
1193
+ const n = [u ? I.svgClassName : I.boxClassName], o = t ? { ...t, ...a } : { ...a };
1194
+ return U(o), Object.entries(o).forEach(([m, N]) => {
1195
+ n.push(I.get(m, N));
1196
+ }), A.forEach((m) => {
1197
+ if (m in o) {
1198
+ const N = o[m];
1199
+ U(N), Object.entries(N).forEach(([T, S]) => {
1200
+ n.push(I.get(T, S, m));
1201
+ }), delete o[m];
1202
1202
  }
1203
1203
  }), n;
1204
- }, [s, r]);
1204
+ }, [a, t]);
1205
1205
  }
1206
- function X(s) {
1207
- B(s, "hover", "Hover"), B(s, "focus", "Focus"), B(s, "active", "Active"), B(s, "disabled", "Disabled"), R(s, "hoverGroup", "Hover"), R(s, "focusGroup", "Focus"), R(s, "activeGroup", "Active"), R(s, "disabledGroup", "Disabled");
1206
+ function U(a) {
1207
+ B(a, "hover", "Hover"), B(a, "focus", "Focus"), B(a, "active", "Active"), B(a, "disabled", "Disabled"), R(a, "hoverGroup", "Hover"), R(a, "focusGroup", "Focus"), R(a, "activeGroup", "Active"), R(a, "disabledGroup", "Disabled");
1208
1208
  }
1209
- function B(s, l, r) {
1210
- l in s && Q(s, l, r, s[l]);
1209
+ function B(a, u, t) {
1210
+ u in a && Q(a, u, t, a[u]);
1211
1211
  }
1212
- function R(s, l, r) {
1213
- l in s && J.isObject(s[l]) && Object.entries(s[l]).forEach(([n, t]) => {
1214
- I.addCustomPseudoClass(r, n, l), Q(s, l, r + n, t);
1212
+ function R(a, u, t) {
1213
+ u in a && Y.isObject(a[u]) && Object.entries(a[u]).forEach(([n, o]) => {
1214
+ I.addCustomPseudoClass(t, n, u), Q(a, u, t + n, o);
1215
1215
  });
1216
1216
  }
1217
- function Q(s, l, r, n) {
1218
- Array.isArray(n) ? (Object.entries(n[1]).forEach(([t, c]) => {
1219
- s[`${t}${r}`] = c;
1220
- }), s[l] = n[0]) : J.isObject(n) && (Object.entries(n).forEach(([t, c]) => {
1221
- s[`${t}${r}`] = c;
1222
- }), delete s[l]);
1217
+ function Q(a, u, t, n) {
1218
+ Array.isArray(n) ? (Object.entries(n[1]).forEach(([o, m]) => {
1219
+ a[`${o}${t}`] = m;
1220
+ }), a[u] = n[0]) : Y.isObject(n) && (Object.entries(n).forEach(([o, m]) => {
1221
+ a[`${o}${t}`] = m;
1222
+ }), delete a[u]);
1223
1223
  }
1224
- function me(...s) {
1225
- return s.reduce((l, r) => r ? typeof r == "string" ? (l.push(r), l) : Array.isArray(r) ? (l.push(...me(...r)), l) : (Object.entries(r).forEach(([n, t]) => {
1226
- t && l.push(n);
1227
- }), l) : l, []);
1224
+ function de(...a) {
1225
+ return a.reduce((u, t) => t ? typeof t == "string" ? (u.push(t), u) : Array.isArray(t) ? (u.push(...de(...t)), u) : (Object.entries(t).forEach(([n, o]) => {
1226
+ o && u.push(n);
1227
+ }), u) : u, []);
1228
1228
  }
1229
1229
  export {
1230
1230
  I as S,
1231
- U as T,
1232
- me as c,
1233
- be as u
1231
+ M as T,
1232
+ de as c,
1233
+ ge as u
1234
1234
  };