@cronocode/react-box 2.0.3 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core.mjs CHANGED
@@ -1,72 +1,72 @@
1
- import { useMemo as X, useLayoutEffect as se, useEffect as ae } from "react";
2
- import { O as Y } from "./utils.mjs";
3
- var e;
4
- ((a) => {
5
- ((u) => {
6
- function t(o, m) {
7
- return `${o}${m.replace("/", "-")}`;
1
+ import { useMemo as U, useLayoutEffect as ee, useEffect as se } from "react";
2
+ import { O as X } from "./utils.mjs";
3
+ var s;
4
+ ((e) => {
5
+ ((l) => {
6
+ function u(t, d) {
7
+ return `${t}${d.replace("/", "-")}`;
8
8
  }
9
- u.fraction = t;
10
- function n(o) {
11
- return [`${o} path`, `${o} circle`, `${o} rect`, `${o} line`];
9
+ l.fraction = u;
10
+ function n(t) {
11
+ return [`${t} path`, `${t} circle`, `${t} rect`, `${t} line`];
12
12
  }
13
- u.svg = n;
14
- })(a.ClassName || (a.ClassName = {})), ((u) => {
15
- function t(l, s) {
16
- return `${s / 4}rem`;
13
+ l.svg = n;
14
+ })(e.ClassName || (e.ClassName = {})), ((l) => {
15
+ function u(r, a) {
16
+ return `${a / 4}rem`;
17
17
  }
18
- u.rem = t;
19
- function n(l, s) {
20
- return `${s}px`;
18
+ l.rem = u;
19
+ function n(r, a) {
20
+ return `${a}px`;
21
21
  }
22
- u.px = n;
23
- function o(l, s) {
24
- const [r, i] = s.split("/");
25
- return `${+r / +i * 100}%`;
22
+ l.px = n;
23
+ function t(r, a) {
24
+ const [o, v] = a.split("/");
25
+ return `${+o / +v * 100}%`;
26
26
  }
27
- u.fraction = o;
28
- function m(l, s) {
29
- switch (s) {
27
+ l.fraction = t;
28
+ function d(r, a) {
29
+ switch (a) {
30
30
  case "fit":
31
31
  return "100%";
32
32
  case "fit-screen":
33
- return l.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
33
+ return r.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
34
34
  default:
35
- return s;
35
+ return a;
36
36
  }
37
37
  }
38
- u.widthHeight = m;
39
- function N(l) {
40
- return (s, r) => `var(--${l}${r});`;
38
+ l.widthHeight = d;
39
+ function p(r) {
40
+ return (a, o) => `var(--${r}${o});`;
41
41
  }
42
- u.variables = N;
43
- function T(l) {
44
- return (s, r) => `var(--${l}${r});`;
42
+ l.variables = p;
43
+ function k(r) {
44
+ return (a, o) => `var(--${r}${o});`;
45
45
  }
46
- u.svgVariables = T;
47
- function S(l, s) {
48
- return `repeat(${s},minmax(0,1fr))`;
46
+ l.svgVariables = k;
47
+ function E(r, a) {
48
+ return `repeat(${a},minmax(0,1fr))`;
49
49
  }
50
- u.gridColumns = S;
51
- function c(l, s) {
52
- return s === "full-row" ? "1/-1" : `span ${s}/span ${s}`;
50
+ l.gridColumns = E;
51
+ function C(r, a) {
52
+ return a === "full-row" ? "1/-1" : `span ${a}/span ${a}`;
53
53
  }
54
- u.gridColumn = c;
55
- function d(l, s) {
56
- return `${s}ms`;
54
+ l.gridColumn = C;
55
+ function i(r, a) {
56
+ return `${a}ms`;
57
57
  }
58
- u.ms = d;
59
- function h(l, s) {
60
- return `${s}deg`;
58
+ l.ms = i;
59
+ function m(r, a) {
60
+ return `${a}deg`;
61
61
  }
62
- u.rotate = h;
63
- function f(l, s) {
64
- return s === "xAxis" ? "-1 1" : "1 -1";
62
+ l.rotate = m;
63
+ function f(r, a) {
64
+ return a === "xAxis" ? "-1 1" : "1 -1";
65
65
  }
66
- u.flip = f;
67
- })(a.Value || (a.Value = {}));
68
- })(e || (e = {}));
69
- const v = [
66
+ l.flip = f;
67
+ })(e.Value || (e.Value = {}));
68
+ })(s || (s = {}));
69
+ const c = [
70
70
  0,
71
71
  1,
72
72
  2,
@@ -139,7 +139,7 @@ const v = [
139
139
  350,
140
140
  384,
141
141
  400
142
- ], le = [
142
+ ], ae = [
143
143
  -1,
144
144
  -2,
145
145
  -3,
@@ -185,7 +185,7 @@ const v = [
185
185
  -92,
186
186
  -96,
187
187
  -100
188
- ], b = [...v, ...le], F = ["solid", "dashed", "dotted", "double", "groove", "ridge", "inset", "outset", "none", "hidden"], G = ["auto", "hidden", "scroll", "visible"], E = [
188
+ ], h = [...c, ...ae], W = ["solid", "dashed", "dotted", "double", "groove", "ridge", "inset", "outset", "none", "hidden"], R = ["auto", "hidden", "scroll", "visible"], z = [
189
189
  "1/2",
190
190
  "1/3",
191
191
  "2/3",
@@ -212,7 +212,7 @@ const v = [
212
212
  "9/12",
213
213
  "10/12",
214
214
  "11/12"
215
- ], z = ["fit", "fit-screen", "auto", "fit-content", "max-content", "min-content"], L = ["auto", "flex-start", "flex-end", "center", "baseline", "stretch"], ue = {
215
+ ], O = ["fit", "fit-screen", "auto", "fit-content", "max-content", "min-content"], F = ["auto", "flex-start", "flex-end", "center", "baseline", "stretch"], le = {
216
216
  /** 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. */
217
217
  display: {
218
218
  cssNames: ["display"],
@@ -236,61 +236,61 @@ const v = [
236
236
  },
237
237
  width: {
238
238
  cssNames: ["width"],
239
- values1: { values: z, formatValue: e.Value.widthHeight },
240
- values2: { values: v, formatValue: e.Value.rem },
239
+ values1: { values: O, formatValue: s.Value.widthHeight },
240
+ values2: { values: c, formatValue: s.Value.rem },
241
241
  values3: {
242
- values: E,
243
- formatValue: e.Value.fraction
242
+ values: z,
243
+ formatValue: s.Value.fraction
244
244
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
245
245
  }
246
246
  },
247
247
  minWidth: {
248
248
  cssNames: ["min-width"],
249
- values1: { values: z, formatValue: e.Value.widthHeight },
250
- values2: { values: v, formatValue: e.Value.rem },
249
+ values1: { values: O, formatValue: s.Value.widthHeight },
250
+ values2: { values: c, formatValue: s.Value.rem },
251
251
  values3: {
252
- values: E,
253
- formatValue: e.Value.fraction
252
+ values: z,
253
+ formatValue: s.Value.fraction
254
254
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
255
255
  }
256
256
  },
257
257
  maxWidth: {
258
258
  cssNames: ["max-width"],
259
- values1: { values: z, formatValue: e.Value.widthHeight },
260
- values2: { values: v, formatValue: e.Value.rem },
259
+ values1: { values: O, formatValue: s.Value.widthHeight },
260
+ values2: { values: c, formatValue: s.Value.rem },
261
261
  values3: {
262
- values: E,
263
- formatValue: e.Value.fraction
262
+ values: z,
263
+ formatValue: s.Value.fraction
264
264
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
265
265
  }
266
266
  },
267
267
  height: {
268
268
  cssNames: ["height"],
269
- values1: { values: z, formatValue: e.Value.widthHeight },
270
- values2: { values: v, formatValue: e.Value.rem },
269
+ values1: { values: O, formatValue: s.Value.widthHeight },
270
+ values2: { values: c, formatValue: s.Value.rem },
271
271
  values3: {
272
- values: E,
273
- formatValue: e.Value.fraction
272
+ values: z,
273
+ formatValue: s.Value.fraction
274
274
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
275
275
  }
276
276
  },
277
277
  minHeight: {
278
278
  cssNames: ["min-height"],
279
- values1: { values: z, formatValue: e.Value.widthHeight },
280
- values2: { values: v, formatValue: e.Value.rem },
279
+ values1: { values: O, formatValue: s.Value.widthHeight },
280
+ values2: { values: c, formatValue: s.Value.rem },
281
281
  values3: {
282
- values: E,
283
- formatValue: e.Value.fraction
282
+ values: z,
283
+ formatValue: s.Value.fraction
284
284
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
285
285
  }
286
286
  },
287
287
  maxHeight: {
288
288
  cssNames: ["max-height"],
289
- values1: { values: z, formatValue: e.Value.widthHeight },
290
- values2: { values: v, formatValue: e.Value.rem },
289
+ values1: { values: O, formatValue: s.Value.widthHeight },
290
+ values2: { values: c, formatValue: s.Value.rem },
291
291
  values3: {
292
- values: E,
293
- formatValue: e.Value.fraction
292
+ values: z,
293
+ formatValue: s.Value.fraction
294
294
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
295
295
  }
296
296
  },
@@ -302,217 +302,217 @@ const v = [
302
302
  },
303
303
  top: {
304
304
  cssNames: ["top"],
305
- values1: { values: b, formatValue: e.Value.rem },
305
+ values1: { values: h, formatValue: s.Value.rem },
306
306
  values2: { values: [] },
307
307
  values3: { values: [] }
308
308
  },
309
309
  right: {
310
310
  cssNames: ["right"],
311
- values1: { values: b, formatValue: e.Value.rem },
311
+ values1: { values: h, formatValue: s.Value.rem },
312
312
  values2: { values: [] },
313
313
  values3: { values: [] }
314
314
  },
315
315
  bottom: {
316
316
  cssNames: ["bottom"],
317
- values1: { values: b, formatValue: e.Value.rem },
317
+ values1: { values: h, formatValue: s.Value.rem },
318
318
  values2: { values: [] },
319
319
  values3: { values: [] }
320
320
  },
321
321
  left: {
322
322
  cssNames: ["left"],
323
- values1: { values: b, formatValue: e.Value.rem },
323
+ values1: { values: h, formatValue: s.Value.rem },
324
324
  values2: { values: [] },
325
325
  values3: { values: [] }
326
326
  },
327
327
  inset: {
328
328
  cssNames: ["inset"],
329
- values1: { values: b, formatValue: e.Value.rem },
329
+ values1: { values: h, formatValue: s.Value.rem },
330
330
  values2: { values: [] },
331
331
  values3: { values: [] }
332
332
  },
333
333
  m: {
334
334
  cssNames: ["margin"],
335
- values1: { values: b, formatValue: e.Value.rem },
335
+ values1: { values: h, formatValue: s.Value.rem },
336
336
  values2: { values: ["auto"] },
337
337
  values3: { values: [] }
338
338
  },
339
339
  mx: {
340
340
  cssNames: ["margin-inline"],
341
- values1: { values: b, formatValue: e.Value.rem },
341
+ values1: { values: h, formatValue: s.Value.rem },
342
342
  values2: { values: ["auto"] },
343
343
  values3: { values: [] }
344
344
  },
345
345
  my: {
346
346
  cssNames: ["margin-block"],
347
- values1: { values: b, formatValue: e.Value.rem },
347
+ values1: { values: h, formatValue: s.Value.rem },
348
348
  values2: { values: ["auto"] },
349
349
  values3: { values: [] }
350
350
  },
351
351
  mt: {
352
352
  cssNames: ["margin-top"],
353
- values1: { values: b, formatValue: e.Value.rem },
353
+ values1: { values: h, formatValue: s.Value.rem },
354
354
  values2: { values: ["auto"] },
355
355
  values3: { values: [] }
356
356
  },
357
357
  mr: {
358
358
  cssNames: ["margin-right"],
359
- values1: { values: b, formatValue: e.Value.rem },
359
+ values1: { values: h, formatValue: s.Value.rem },
360
360
  values2: { values: ["auto"] },
361
361
  values3: { values: [] }
362
362
  },
363
363
  mb: {
364
364
  cssNames: ["margin-bottom"],
365
- values1: { values: b, formatValue: e.Value.rem },
365
+ values1: { values: h, formatValue: s.Value.rem },
366
366
  values2: { values: ["auto"] },
367
367
  values3: { values: [] }
368
368
  },
369
369
  ml: {
370
370
  cssNames: ["margin-left"],
371
- values1: { values: b, formatValue: e.Value.rem },
371
+ values1: { values: h, formatValue: s.Value.rem },
372
372
  values2: { values: ["auto"] },
373
373
  values3: { values: [] }
374
374
  },
375
375
  p: {
376
376
  cssNames: ["padding"],
377
- values1: { values: b, formatValue: e.Value.rem },
377
+ values1: { values: h, formatValue: s.Value.rem },
378
378
  values2: { values: [] },
379
379
  values3: { values: [] }
380
380
  },
381
381
  px: {
382
382
  cssNames: ["padding-inline"],
383
- values1: { values: b, formatValue: e.Value.rem },
383
+ values1: { values: h, formatValue: s.Value.rem },
384
384
  values2: { values: [] },
385
385
  values3: { values: [] }
386
386
  },
387
387
  py: {
388
388
  cssNames: ["padding-block"],
389
- values1: { values: b, formatValue: e.Value.rem },
389
+ values1: { values: h, formatValue: s.Value.rem },
390
390
  values2: { values: [] },
391
391
  values3: { values: [] }
392
392
  },
393
393
  pt: {
394
394
  cssNames: ["padding-top"],
395
- values1: { values: b, formatValue: e.Value.rem },
395
+ values1: { values: h, formatValue: s.Value.rem },
396
396
  values2: { values: [] },
397
397
  values3: { values: [] }
398
398
  },
399
399
  pr: {
400
400
  cssNames: ["padding-right"],
401
- values1: { values: b, formatValue: e.Value.rem },
401
+ values1: { values: h, formatValue: s.Value.rem },
402
402
  values2: { values: [] },
403
403
  values3: { values: [] }
404
404
  },
405
405
  pb: {
406
406
  cssNames: ["padding-bottom"],
407
- values1: { values: b, formatValue: e.Value.rem },
407
+ values1: { values: h, formatValue: s.Value.rem },
408
408
  values2: { values: [] },
409
409
  values3: { values: [] }
410
410
  },
411
411
  pl: {
412
412
  cssNames: ["padding-left"],
413
- values1: { values: b, formatValue: e.Value.rem },
413
+ values1: { values: h, formatValue: s.Value.rem },
414
414
  values2: { values: [] },
415
415
  values3: { values: [] }
416
416
  },
417
417
  b: {
418
418
  cssNames: ["border-width"],
419
- values1: { values: v, formatValue: e.Value.px },
419
+ values1: { values: c, formatValue: s.Value.px },
420
420
  values2: { values: [] },
421
421
  values3: { values: [] }
422
422
  },
423
423
  bx: {
424
424
  cssNames: ["border-inline-width"],
425
- values1: { values: b, formatValue: e.Value.px },
425
+ values1: { values: h, formatValue: s.Value.px },
426
426
  values2: { values: [] },
427
427
  values3: { values: [] }
428
428
  },
429
429
  by: {
430
430
  cssNames: ["border-block-width"],
431
- values1: { values: b, formatValue: e.Value.px },
431
+ values1: { values: h, formatValue: s.Value.px },
432
432
  values2: { values: [] },
433
433
  values3: { values: [] }
434
434
  },
435
435
  bt: {
436
436
  cssNames: ["border-top-width"],
437
- values1: { values: b, formatValue: e.Value.px },
437
+ values1: { values: h, formatValue: s.Value.px },
438
438
  values2: { values: [] },
439
439
  values3: { values: [] }
440
440
  },
441
441
  br: {
442
442
  cssNames: ["border-right-width"],
443
- values1: { values: b, formatValue: e.Value.px },
443
+ values1: { values: h, formatValue: s.Value.px },
444
444
  values2: { values: [] },
445
445
  values3: { values: [] }
446
446
  },
447
447
  bb: {
448
448
  cssNames: ["border-bottom-width"],
449
- values1: { values: b, formatValue: e.Value.px },
449
+ values1: { values: h, formatValue: s.Value.px },
450
450
  values2: { values: [] },
451
451
  values3: { values: [] }
452
452
  },
453
453
  bl: {
454
454
  cssNames: ["border-left-width"],
455
- values1: { values: b, formatValue: e.Value.px },
455
+ values1: { values: h, formatValue: s.Value.px },
456
456
  values2: { values: [] },
457
457
  values3: { values: [] }
458
458
  },
459
459
  borderStyle: {
460
460
  cssNames: ["border-style"],
461
- values1: { values: F },
461
+ values1: { values: W },
462
462
  values2: { values: [] },
463
463
  values3: { values: [] }
464
464
  },
465
465
  borderRadius: {
466
466
  cssNames: ["border-radius"],
467
- values1: { values: v, formatValue: e.Value.rem },
467
+ values1: { values: c, formatValue: s.Value.rem },
468
468
  values2: { values: [] },
469
469
  values3: { values: [] }
470
470
  },
471
471
  borderRadiusTop: {
472
472
  cssNames: ["border-top-left-radius", "border-top-right-radius"],
473
- values1: { values: v, formatValue: e.Value.rem },
473
+ values1: { values: c, formatValue: s.Value.rem },
474
474
  values2: { values: [] },
475
475
  values3: { values: [] }
476
476
  },
477
477
  borderRadiusRight: {
478
478
  cssNames: ["border-top-right-radius", "border-bottom-right-radius"],
479
- values1: { values: v, formatValue: e.Value.rem },
479
+ values1: { values: c, formatValue: s.Value.rem },
480
480
  values2: { values: [] },
481
481
  values3: { values: [] }
482
482
  },
483
483
  borderRadiusBottom: {
484
484
  cssNames: ["border-bottom-left-radius", "border-bottom-right-radius"],
485
- values1: { values: v, formatValue: e.Value.rem },
485
+ values1: { values: c, formatValue: s.Value.rem },
486
486
  values2: { values: [] },
487
487
  values3: { values: [] }
488
488
  },
489
489
  borderRadiusLeft: {
490
490
  cssNames: ["border-top-left-radius", "border-bottom-left-radius"],
491
- values1: { values: v, formatValue: e.Value.rem },
491
+ values1: { values: c, formatValue: s.Value.rem },
492
492
  values2: { values: [] },
493
493
  values3: { values: [] }
494
494
  },
495
495
  borderRadiusTopLeft: {
496
496
  cssNames: ["border-top-left-radius"],
497
- values1: { values: v, formatValue: e.Value.rem },
497
+ values1: { values: c, formatValue: s.Value.rem },
498
498
  values2: { values: [] },
499
499
  values3: { values: [] }
500
500
  },
501
501
  borderRadiusTopRight: {
502
502
  cssNames: ["border-top-right-radius"],
503
- values1: { values: v, formatValue: e.Value.rem },
503
+ values1: { values: c, formatValue: s.Value.rem },
504
504
  values2: { values: [] },
505
505
  values3: { values: [] }
506
506
  },
507
507
  borderRadiusBottomLeft: {
508
508
  cssNames: ["border-bottom-left-radius"],
509
- values1: { values: v, formatValue: e.Value.rem },
509
+ values1: { values: c, formatValue: s.Value.rem },
510
510
  values2: { values: [] },
511
511
  values3: { values: [] }
512
512
  },
513
513
  borderRadiusBottomRight: {
514
514
  cssNames: ["border-bottom-right-radius"],
515
- values1: { values: v, formatValue: e.Value.rem },
515
+ values1: { values: c, formatValue: s.Value.rem },
516
516
  values2: { values: [] },
517
517
  values3: { values: [] }
518
518
  },
@@ -571,19 +571,19 @@ const v = [
571
571
  },
572
572
  overflow: {
573
573
  cssNames: ["overflow"],
574
- values1: { values: G },
574
+ values1: { values: R },
575
575
  values2: { values: [] },
576
576
  values3: { values: [] }
577
577
  },
578
578
  overflowX: {
579
579
  cssNames: ["overflow-x"],
580
- values1: { values: G },
580
+ values1: { values: R },
581
581
  values2: { values: [] },
582
582
  values3: { values: [] }
583
583
  },
584
584
  overflowY: {
585
585
  cssNames: ["overflow-y"],
586
- values1: { values: G },
586
+ values1: { values: R },
587
587
  values2: { values: [] },
588
588
  values3: { values: [] }
589
589
  },
@@ -595,7 +595,7 @@ const v = [
595
595
  },
596
596
  fontSize: {
597
597
  cssNames: ["font-size"],
598
- values1: { values: v, formatValue: e.Value.px },
598
+ values1: { values: c, formatValue: s.Value.px },
599
599
  values2: { values: ["inherit"] },
600
600
  values3: { values: [] }
601
601
  },
@@ -613,13 +613,13 @@ const v = [
613
613
  },
614
614
  letterSpacing: {
615
615
  cssNames: ["letter-spacing"],
616
- values1: { values: v, formatValue: e.Value.px },
616
+ values1: { values: c, formatValue: s.Value.px },
617
617
  values2: { values: [] },
618
618
  values3: { values: [] }
619
619
  },
620
620
  lineHeight: {
621
621
  cssNames: ["line-height"],
622
- values1: { values: v, formatValue: e.Value.px },
622
+ values1: { values: c, formatValue: s.Value.px },
623
623
  values2: { values: ["font-size"], formatValue: () => "1" },
624
624
  values3: { values: [] }
625
625
  },
@@ -708,91 +708,91 @@ const v = [
708
708
  },
709
709
  gap: {
710
710
  cssNames: ["gap"],
711
- values1: { values: v, formatValue: e.Value.rem },
711
+ values1: { values: c, formatValue: s.Value.rem },
712
712
  values2: { values: [] },
713
713
  values3: { values: [] }
714
714
  },
715
715
  rowGap: {
716
716
  cssNames: ["row-gap"],
717
- values1: { values: v, formatValue: e.Value.rem },
717
+ values1: { values: c, formatValue: s.Value.rem },
718
718
  values2: { values: [] },
719
719
  values3: { values: [] }
720
720
  },
721
721
  columnGap: {
722
722
  cssNames: ["column-gap"],
723
- values1: { values: v, formatValue: e.Value.rem },
723
+ values1: { values: c, formatValue: s.Value.rem },
724
724
  values2: { values: [] },
725
725
  values3: { values: [] }
726
726
  },
727
727
  order: {
728
728
  cssNames: ["order"],
729
- values1: { values: v },
729
+ values1: { values: c },
730
730
  values2: { values: [] },
731
731
  values3: { values: [] }
732
732
  },
733
733
  flexGrow: {
734
734
  cssNames: ["flex-grow"],
735
- values1: { values: v },
735
+ values1: { values: c },
736
736
  values2: { values: [] },
737
737
  values3: { values: [] }
738
738
  },
739
739
  flexShrink: {
740
740
  cssNames: ["flex-shrink"],
741
- values1: { values: v },
741
+ values1: { values: c },
742
742
  values2: { values: [] },
743
743
  values3: { values: [] }
744
744
  },
745
745
  alignSelf: {
746
746
  cssNames: ["align-self"],
747
- values1: { values: L },
747
+ values1: { values: F },
748
748
  values2: { values: [] },
749
749
  values3: { values: [] }
750
750
  },
751
751
  justifySelf: {
752
752
  cssNames: ["justify-self"],
753
- values1: { values: L },
753
+ values1: { values: F },
754
754
  values2: { values: [] },
755
755
  values3: { values: [] }
756
756
  },
757
757
  gridColumns: {
758
758
  cssNames: ["grid-template-columns"],
759
- values1: { values: v, formatValue: e.Value.gridColumns },
759
+ values1: { values: c, formatValue: s.Value.gridColumns },
760
760
  values2: { values: [] },
761
761
  values3: { values: [] }
762
762
  },
763
763
  colSpan: {
764
764
  cssNames: ["grid-column"],
765
- values1: { values: v, formatValue: e.Value.gridColumn },
766
- values2: { values: ["full-row"], formatValue: e.Value.gridColumn },
765
+ values1: { values: c, formatValue: s.Value.gridColumn },
766
+ values2: { values: ["full-row"], formatValue: s.Value.gridColumn },
767
767
  values3: { values: [] }
768
768
  },
769
769
  colStart: {
770
770
  cssNames: ["grid-column-start"],
771
- values1: { values: v },
771
+ values1: { values: c },
772
772
  values2: { values: [] },
773
773
  values3: { values: [] }
774
774
  },
775
775
  colEnd: {
776
776
  cssNames: ["grid-column-end"],
777
- values1: { values: v },
777
+ values1: { values: c },
778
778
  values2: { values: [] },
779
779
  values3: { values: [] }
780
780
  },
781
781
  outline: {
782
782
  cssNames: ["outline-width"],
783
- values1: { values: v, formatValue: e.Value.px },
783
+ values1: { values: c, formatValue: s.Value.px },
784
784
  values2: { values: [] },
785
785
  values3: { values: [] }
786
786
  },
787
787
  outlineStyle: {
788
788
  cssNames: ["outline-style"],
789
- values1: { values: F },
789
+ values1: { values: W },
790
790
  values2: { values: [] },
791
791
  values3: { values: [] }
792
792
  },
793
793
  outlineOffset: {
794
794
  cssNames: ["outline-offset"],
795
- values1: { values: v, formatValue: e.Value.px },
795
+ values1: { values: c, formatValue: s.Value.px },
796
796
  values2: { values: [] },
797
797
  values3: { values: [] }
798
798
  },
@@ -806,7 +806,7 @@ const v = [
806
806
  cssNames: ["transition-duration"],
807
807
  values1: {
808
808
  values: [50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950, 1e3],
809
- formatValue: e.Value.ms
809
+ formatValue: s.Value.ms
810
810
  },
811
811
  values2: { values: [] },
812
812
  values3: { values: [] }
@@ -843,188 +843,224 @@ const v = [
843
843
  },
844
844
  rotate: {
845
845
  cssNames: ["rotate"],
846
- values1: { values: [0, 90, 180, 270, -90, -180, -270], formatValue: e.Value.rotate },
846
+ values1: { values: [0, 90, 180, 270, -90, -180, -270], formatValue: s.Value.rotate },
847
847
  values2: { values: [] },
848
848
  values3: { values: [] }
849
849
  },
850
850
  flip: {
851
851
  cssNames: ["scale"],
852
- values1: { values: ["xAxis", "yAxis"], formatValue: e.Value.flip },
852
+ values1: { values: ["xAxis", "yAxis"], formatValue: s.Value.flip },
853
+ values2: { values: [] },
854
+ values3: { values: [] }
855
+ },
856
+ visibility: {
857
+ cssNames: ["visibility"],
858
+ values1: { values: ["visible", "hidden", "collapse"] },
859
+ values2: { values: [] },
860
+ values3: { values: [] }
861
+ },
862
+ resize: {
863
+ cssNames: ["resize"],
864
+ values1: { values: ["none", "both", "horizontal", "vertical", "block", "inline"] },
853
865
  values2: { values: [] },
854
866
  values3: { values: [] }
855
867
  }
856
- }, W = {
857
- shadow: { cssNames: ["box-shadow"], formatValue: e.Value.variables("shadow") },
858
- background: { cssNames: ["background"], formatValue: e.Value.variables("background") },
859
- backgroundImage: { cssNames: ["background-image"], formatValue: e.Value.variables("backgroundImage") },
860
- color: { cssNames: ["color"], formatValue: e.Value.variables("color") },
861
- bgColor: { cssNames: ["background-color"], formatValue: e.Value.variables("color") },
862
- borderColor: { cssNames: ["border-color"], formatValue: e.Value.variables("color") },
863
- outlineColor: { cssNames: ["outline-color"], formatValue: e.Value.variables("color") }
868
+ }, q = {
869
+ shadow: { cssNames: ["box-shadow"], formatValue: s.Value.variables("shadow") },
870
+ background: { cssNames: ["background"], formatValue: s.Value.variables("background") },
871
+ backgroundImage: { cssNames: ["background-image"], formatValue: s.Value.variables("backgroundImage") },
872
+ color: { cssNames: ["color"], formatValue: s.Value.variables("color") },
873
+ bgColor: { cssNames: ["background-color"], formatValue: s.Value.variables("color") },
874
+ borderColor: { cssNames: ["border-color"], formatValue: s.Value.variables("color") },
875
+ outlineColor: { cssNames: ["outline-color"], formatValue: s.Value.variables("color") }
864
876
  }, K = {
865
877
  fill: {
866
878
  cssNames: ["fill"],
867
- formatValue: e.Value.svgVariables("color"),
868
- formatSelector: e.ClassName.svg
879
+ formatValue: s.Value.svgVariables("color"),
880
+ formatSelector: s.ClassName.svg
869
881
  },
870
882
  stroke: {
871
883
  cssNames: ["stroke"],
872
- formatValue: e.Value.svgVariables("color"),
873
- formatSelector: e.ClassName.svg
884
+ formatValue: s.Value.svgVariables("color"),
885
+ formatSelector: s.ClassName.svg
874
886
  }
875
- }, P = [
876
- "Hover",
877
- "Focus",
878
- "Active",
879
- "Checked",
880
- "Indeterminate",
881
- "Valid",
882
- "Invalid",
883
- "Required",
884
- "Optional",
885
- "Disabled"
886
- ], A = ["sm", "md", "lg", "xl", "xxl"], te = {
887
+ }, ue = ["disabledGroup", "hoverGroup", "focusGroup", "activeGroup"], H = [
888
+ "hover",
889
+ "focus",
890
+ "hasFocus",
891
+ "active",
892
+ "checked",
893
+ "hasChecked",
894
+ "indeterminate",
895
+ "valid",
896
+ "hasValid",
897
+ "invalid",
898
+ "hasInvalid",
899
+ "required",
900
+ "optional",
901
+ "disabled",
902
+ "hasDisabled"
903
+ ], B = ["sm", "md", "lg", "xl", "xxl"], te = {
887
904
  sm: 640,
888
905
  md: 768,
889
906
  lg: 1024,
890
907
  xl: 1280,
891
908
  xxl: 1536
892
909
  };
893
- function J() {
894
- const a = { ...ue };
895
- Object.keys(W).forEach((t) => {
896
- a[t] = W[t], a[t].isThemeStyle = !0;
897
- }), Object.keys(K).forEach((t) => {
898
- a[t] = K[t], a[t].isThemeStyle = !0;
910
+ function Y() {
911
+ const e = { ...le };
912
+ Object.keys(q).forEach((u) => {
913
+ e[u] = q[u], e[u].isThemeStyle = !0;
914
+ }), Object.keys(K).forEach((u) => {
915
+ e[u] = K[u], e[u].isThemeStyle = !0;
899
916
  });
900
- let u = Object.keys(a);
901
- return P.forEach((t) => {
902
- u.forEach((n) => {
903
- a[`${n}${t}`] = { ...a[n], pseudoSuffix: t };
917
+ let l = Object.keys(e);
918
+ return H.forEach((u) => {
919
+ l.forEach((n) => {
920
+ e[`${n}${u}`] = { ...e[n], pseudoSuffix: u };
904
921
  });
905
- }), u = Object.keys(a), A.forEach((t) => {
906
- u.forEach((n) => {
907
- a[`${t}${n}`] = { ...a[n], breakpoint: t };
922
+ }), l = Object.keys(e), B.forEach((u) => {
923
+ l.forEach((n) => {
924
+ e[`${u}${n}`] = { ...e[n], breakpoint: u };
908
925
  });
909
- }), a;
926
+ }), e;
910
927
  }
911
- let C = J();
928
+ let $ = Y();
912
929
  function oe() {
913
- C = J();
930
+ $ = Y();
914
931
  }
915
- function re(a, u, t) {
916
- const n = Object.entries(C).filter(
917
- ([o, m]) => m.pseudoSuffix === a && !m.customPseudoSuffix && !(`${o}${u}` in C)
918
- ).map(([o]) => o);
919
- return n.forEach((o) => {
920
- C[`${o}${u}`] = {
921
- ...C[o],
922
- customPseudoSuffix: t + u
932
+ function re(e, l, u) {
933
+ const n = Object.entries($).filter(
934
+ ([t, d]) => d.pseudoSuffix === e && !d.customPseudoSuffix && !(`${t}${l}` in $)
935
+ ).map(([t]) => t);
936
+ return n.forEach((t) => {
937
+ $[`${t}${l}`] = {
938
+ ...$[t],
939
+ customPseudoSuffix: u + l
923
940
  };
924
- }), n.map((o) => `${o}${u}`);
941
+ }), n.map((t) => `${t}${l}`);
925
942
  }
926
943
  class ne {
927
944
  constructor() {
928
945
  this._index = 0, this._cache = {};
929
946
  }
930
- getIdentity(u) {
931
- return this._cache[u] || (this._cache[u] = this.getByIndex(this._index++)), this._cache[u];
947
+ getIdentity(l) {
948
+ return this._cache[l] || (this._cache[l] = this.getByIndex(this._index++)), this._cache[l];
932
949
  }
933
- getByIndex(u) {
934
- const { first: t, next: n } = ve, o = u - t.length;
935
- if (o < 0)
936
- return t[u];
937
- const m = Math.floor(o / n.length), N = o - m * n.length;
938
- return this.getByIndex(m) + n[N];
950
+ getByIndex(l) {
951
+ const { first: u, next: n } = ve, t = l - u.length;
952
+ if (t < 0)
953
+ return u[l];
954
+ const d = Math.floor(t / n.length), p = t - d * n.length;
955
+ return this.getByIndex(d) + n[p];
939
956
  }
940
957
  }
941
958
  const ve = {
942
959
  first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
943
960
  next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
944
961
  };
945
- var D;
946
- ((a) => {
947
- a.boxClassName = "_box", a.svgClassName = "_svg", a.cronoStylesElementId = "crono-styles";
948
- 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;}}
962
+ var _;
963
+ ((e) => {
964
+ e.boxClassName = "_box", e.svgClassName = "_svg", e.cronoStylesElementId = "crono-styles";
965
+ 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;}}
949
966
  html{font-size: 16px;font-family: Arial, sans-serif;}
950
967
  body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}
951
968
  a,ul{all: unset;}
952
- .${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;}
953
- .${a.svgClassName}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}.${a.svgClassName} path,.${a.svgClassName} circle,.${a.svgClassName} rect,.${a.svgClassName} line {transition: all var(--svgTransitionTime);}
954
- `, t = new ne();
955
- let n = !0, o = {};
956
- T();
957
- function m(l, s, r) {
958
- if (l in C)
959
- return c(l, s, r);
960
- if (["disabledGroup", "hoverGroup", "focusGroup", "activeGroup"].includes(l))
961
- return l + s;
969
+ .${e.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;}
970
+ .${e.svgClassName}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}.${e.svgClassName} path,.${e.svgClassName} circle,.${e.svgClassName} rect,.${e.svgClassName} line {transition: all var(--svgTransitionTime);}
971
+ `, u = new ne();
972
+ let n = !0, t = {};
973
+ k();
974
+ function d(a, o, v) {
975
+ if (a in $)
976
+ return C(a, o, v);
977
+ if (ue.includes(a))
978
+ return a + o;
962
979
  }
963
- a.get = m;
964
- function N() {
980
+ e.get = d;
981
+ function p() {
965
982
  if (n) {
966
- let l = d([u]);
967
- P.forEach((r) => {
968
- l = d(l, r);
969
- }), A.forEach((r) => {
970
- l.push(`@media(min-width: ${te[r]}px){`), l = d(l, void 0, r), P.forEach((i) => {
971
- l = d(l, i, r);
972
- }), l.push("}");
983
+ let a = m([l]);
984
+ H.forEach((v) => {
985
+ a = m(a, v);
986
+ }), B.forEach((v) => {
987
+ a.push(`@media(min-width: ${te[v]}px){`), a = m(a, void 0, v), H.forEach((V) => {
988
+ a = m(a, V, v);
989
+ }), a.push("}");
973
990
  });
974
- const s = f();
975
- s.innerHTML = l.join(""), n = !1;
991
+ const o = r();
992
+ o.innerHTML = a.join(""), n = !1;
976
993
  }
977
994
  }
978
- a.flush = N;
979
- function T() {
980
- oe(), o = Object.keys(C).reduce(
981
- (s, r) => (s[r] = /* @__PURE__ */ new Set(), s),
995
+ e.flush = p;
996
+ function k() {
997
+ oe(), t = Object.keys($).reduce(
998
+ (o, v) => (o[v] = /* @__PURE__ */ new Set(), o),
982
999
  {}
983
1000
  );
984
1001
  }
985
- a.clear = T;
986
- function S(l, s, r) {
987
- re(l, s, r).forEach((p) => {
988
- o[p] = /* @__PURE__ */ new Set();
1002
+ e.clear = k;
1003
+ function E(a, o, v) {
1004
+ re(a, o, v).forEach((b) => {
1005
+ t[b] = /* @__PURE__ */ new Set();
989
1006
  });
990
1007
  }
991
- a.addCustomPseudoClass = S;
992
- function c(l, s, r) {
993
- const i = (r ?? "") + l;
994
- o[i].has(s) || (n = !0, o[i].add(s));
995
- const p = `${i}${s}`;
996
- return process.env.NODE_ENV === "test" ? p : t.getIdentity(p);
1008
+ e.addCustomPseudoClass = E;
1009
+ function C(a, o, v) {
1010
+ const V = (v ?? "") + a;
1011
+ t[V].has(o) || (n = !0, t[V].add(o));
1012
+ const b = `${V}${o}`;
1013
+ return process.env.NODE_ENV === "test" ? b : u.getIdentity(b);
997
1014
  }
998
- function d(l, s, r) {
999
- return Object.entries(o).filter(
1000
- ([p, k]) => {
1001
- var x, $;
1002
- return ((x = C[p]) == null ? void 0 : x.pseudoSuffix) === s && (($ = C[p]) == null ? void 0 : $.breakpoint) === r && k.size > 0;
1015
+ const i = {
1016
+ hover: "hover",
1017
+ focus: "focus-within",
1018
+ hasFocus: "has(:focus-within)",
1019
+ active: "active",
1020
+ checked: "checked",
1021
+ hasChecked: "has(:checked)",
1022
+ indeterminate: "indeterminate",
1023
+ valid: "user-valid",
1024
+ hasValid: "has(:valid)",
1025
+ invalid: "user-invalid",
1026
+ hasInvalid: "has(:user-invalid)",
1027
+ required: "required",
1028
+ optional: "optional",
1029
+ disabled: "disabled",
1030
+ hasDisabled: "has(:disabled)"
1031
+ };
1032
+ function m(a, o, v) {
1033
+ return Object.entries(t).filter(
1034
+ ([b, y]) => {
1035
+ var N, x;
1036
+ return ((N = $[b]) == null ? void 0 : N.pseudoSuffix) === o && ((x = $[b]) == null ? void 0 : x.breakpoint) === v && y.size > 0;
1003
1037
  }
1004
- ).reduce((p, [k, x]) => (x.forEach(($) => {
1005
- var q;
1006
- const g = C[k], y = h(g, $), j = `.${c(k, $)}`;
1007
- let w = [];
1008
- s ? s === "Hover" ? w = i(j, g, y, "hover") : s === "Focus" ? w = i(j, g, y, "focus-within") : s === "Active" ? w = i(j, g, y, "active") : s === "Checked" ? w = i(j, g, y, "checked") : s === "Indeterminate" ? w = i(j, g, y, "indeterminate") : s === "Valid" ? w = i(j, g, y, "valid") : s === "Invalid" ? w = i(j, g, y, "invalid") : s === "Required" ? w = i(j, g, y, "required") : s === "Optional" ? w = i(j, g, y, "optional") : s === "Disabled" && (w = i(j, g, y, "disabled")) : w = i(j, g, y);
1009
- const V = ((q = y.formatValue) == null ? void 0 : q.call(y, k, $)) ?? $, Z = C[k].cssNames.map((ee) => `${ee}:${V};`).join("");
1010
- p.push(`${w.join(",")}{${Z}}`);
1011
- }), p), l);
1012
- function i(p, k, x, $) {
1013
- let g = p;
1014
- return $ && (g = k.customPseudoSuffix ? `.${k.customPseudoSuffix}:${$} ${p}` : `${p}:${$}`), x.formatSelector ? x.formatSelector(g) : [g];
1038
+ ).reduce((b, [y, N]) => (N.forEach((x) => {
1039
+ var L;
1040
+ const S = $[y], T = f(S, x), P = `.${C(y, x)}`, G = V(
1041
+ P,
1042
+ S,
1043
+ T,
1044
+ o ? i[o] : void 0
1045
+ ), g = ((L = T.formatValue) == null ? void 0 : L.call(T, y, x)) ?? x, Q = $[y].cssNames.map((Z) => `${Z}:${g};`).join("");
1046
+ b.push(`${G.join(",")}{${Q}}`);
1047
+ }), b), a);
1048
+ function V(b, y, N, x) {
1049
+ let S = b;
1050
+ return x && (S = y.customPseudoSuffix ? `.${y.customPseudoSuffix}:${x} ${b}` : `${b}:${x}`), N.formatSelector ? N.formatSelector(S) : [S];
1015
1051
  }
1016
1052
  }
1017
- function h(l, s) {
1018
- return l.isThemeStyle ? l : l.values1.values.includes(s) ? l.values1 : l.values2.values.includes(s) ? l.values2 : l.values3;
1053
+ function f(a, o) {
1054
+ return a.isThemeStyle ? a : a.values1.values.includes(o) ? a.values1 : a.values2.values.includes(o) ? a.values2 : a.values3;
1019
1055
  }
1020
- function f() {
1021
- const s = typeof window < "u" && typeof window.document < "u" ? window.document : global.document;
1022
- let r = s.getElementById(a.cronoStylesElementId);
1023
- return r || (r = s.createElement("style"), r.setAttribute("id", a.cronoStylesElementId), r.setAttribute("type", "text/css"), s.head.insertBefore(r, s.head.firstChild)), r;
1056
+ function r() {
1057
+ const o = typeof window < "u" && typeof window.document < "u" ? window.document : global.document;
1058
+ let v = o.getElementById(e.cronoStylesElementId);
1059
+ return v || (v = o.createElement("style"), v.setAttribute("id", e.cronoStylesElementId), v.setAttribute("type", "text/css"), o.head.insertBefore(v, o.head.firstChild)), v;
1024
1060
  }
1025
- a.getElement = f;
1026
- })(D || (D = {}));
1027
- const I = D, H = {
1061
+ e.getElement = r;
1062
+ })(_ || (_ = {}));
1063
+ const I = _, ie = {
1028
1064
  button: {
1029
1065
  styles: {
1030
1066
  display: "inline-block",
@@ -1065,41 +1101,30 @@ const I = D, H = {
1065
1101
  borderRadius: 1
1066
1102
  }
1067
1103
  }
1068
- }, ie = {
1069
- Hover: "hover",
1070
- Focus: "focus",
1071
- Active: "active",
1072
- Checked: "checked",
1073
- Indeterminate: "indeterminate",
1074
- Valid: "valid",
1075
- Invalid: "invalid",
1076
- Required: "required",
1077
- Optional: "optional",
1078
- Disabled: "disabled"
1079
1104
  };
1080
- var _;
1081
- ((a) => {
1082
- a.Styles = {};
1083
- function u(c) {
1084
- a.Styles = o(H), a.Styles = n(c);
1105
+ var D;
1106
+ ((e) => {
1107
+ e.Styles = {};
1108
+ function l(i) {
1109
+ e.Styles = t(ie), n(i);
1085
1110
  }
1086
- a.setup = u;
1087
- function t(c, d) {
1088
- const { colors: h = {}, shadows: f = {}, backgrounds: l = {}, backgroundImages: s = {} } = c;
1089
- h.none = "none", f.none = "none", l.none = "none", s.none = "none";
1090
- const r = Object.entries(h).map(([V, O]) => `--color${V}: ${O};`).join(`
1091
- `), i = Object.entries(f).map(([V, O]) => `--shadow${V}: ${O};`).join(`
1092
- `), p = Object.entries(l).map(([V, O]) => `--background${V}: ${O};`).join(`
1093
- `), k = Object.entries(s).map(([V, O]) => `--backgroundImage${V}: ${O};`).join(`
1094
- `), x = [":root {"];
1095
- r && x.push(` ${r}`), i && x.push(` ${i}`), p && x.push(` ${p}`), k && x.push(` ${k}`), x.push("}");
1096
- const $ = Object.keys(h).map((V) => `'${V}'`).join(" | "), g = Object.keys(l).map((V) => `'${V}'`).join(" | "), y = Object.keys(s).map((V) => `'${V}'`).join(" | "), j = Object.keys(f).map((V) => `'${V}'`).join(" | "), w = `import '@cronocode/react-box';
1111
+ e.setup = l;
1112
+ function u(i, m) {
1113
+ const { colors: f = {}, shadows: r = {}, backgrounds: a = {}, backgroundImages: o = {} } = i;
1114
+ f.none = "none", r.none = "none", a.none = "none", o.none = "none";
1115
+ const v = Object.entries(f).map(([g, j]) => `--color${g}: ${j};`).join(`
1116
+ `), V = Object.entries(r).map(([g, j]) => `--shadow${g}: ${j};`).join(`
1117
+ `), b = Object.entries(a).map(([g, j]) => `--background${g}: ${j};`).join(`
1118
+ `), y = Object.entries(o).map(([g, j]) => `--backgroundImage${g}: ${j};`).join(`
1119
+ `), N = [":root {"];
1120
+ v && N.push(` ${v}`), V && N.push(` ${V}`), b && N.push(` ${b}`), y && N.push(` ${y}`), N.push("}");
1121
+ const x = Object.keys(f).map((g) => `'${g}'`).join(" | "), S = Object.keys(a).map((g) => `'${g}'`).join(" | "), T = Object.keys(o).map((g) => `'${g}'`).join(" | "), P = Object.keys(r).map((g) => `'${g}'`).join(" | "), G = `import '@cronocode/react-box';
1097
1122
 
1098
- declare module '${(d == null ? void 0 : d.namespacePath) ?? "@cronocode/react-box/core/types"}' {
1099
- type ColorType = ${$};
1100
- type BackgroundType = ${g};
1101
- type BackgroundImageType = ${y};
1102
- type ShadowType = ${j};
1123
+ declare module '${(m == null ? void 0 : m.namespacePath) ?? "@cronocode/react-box/core/types"}' {
1124
+ type ColorType = ${x};
1125
+ type BackgroundType = ${S};
1126
+ type BackgroundImageType = ${T};
1127
+ type ShadowType = ${P};
1103
1128
 
1104
1129
  namespace Augmented {
1105
1130
  interface BoxProps {
@@ -1120,129 +1145,140 @@ var _;
1120
1145
  }
1121
1146
  `;
1122
1147
  return {
1123
- variables: x.join(`
1148
+ variables: N.join(`
1124
1149
  `),
1125
- boxDts: w
1150
+ boxDts: G
1126
1151
  };
1127
1152
  }
1128
- a.setupAugmentedProps = t;
1129
- function n(c) {
1130
- const d = o(c);
1131
- return Object.keys(H).forEach((f) => {
1132
- const l = d[f], s = H[f];
1133
- l ? l.styles = { ...s.styles, ...l.styles } : d[f] = H[f];
1134
- }), d;
1153
+ e.setupAugmentedProps = u;
1154
+ function n(i) {
1155
+ const m = t(i);
1156
+ if (m.components)
1157
+ return Object.entries(m.components).forEach(([f, r]) => {
1158
+ var o;
1159
+ const a = (o = e.Styles.components) == null ? void 0 : o[f];
1160
+ a ? e.Styles.components[f].styles = { ...a.styles, ...r.styles } : e.Styles.components[f] = r;
1161
+ }), m;
1135
1162
  }
1136
- function o(c) {
1137
- return m(c), T(c), c;
1163
+ function t(i) {
1164
+ return d(i), p(i), E(i), i;
1138
1165
  }
1139
- function m(c) {
1140
- if (!c.components)
1166
+ function d(i) {
1167
+ const { components: m, ...f } = i, r = Object.entries(f);
1168
+ r.length && !i.components && (i.components = {});
1169
+ for (const a of r) {
1170
+ const [o, v] = a;
1171
+ i.components[o] = v, delete i[o];
1172
+ }
1173
+ }
1174
+ function p(i) {
1175
+ if (!i.components)
1141
1176
  return;
1142
- const d = Object.keys(c.components);
1143
- for (const h of d) {
1144
- const f = c.components[h], l = N(h, f);
1145
- delete f.children;
1146
- for (const s of l) {
1147
- const [r, i] = s;
1148
- c.components[r] = i;
1177
+ const m = Object.keys(i.components);
1178
+ for (const f of m) {
1179
+ const r = i.components[f], a = k(f, r);
1180
+ delete r.children;
1181
+ for (const o of a) {
1182
+ const [v, V] = o;
1183
+ i.components[v] = V;
1149
1184
  }
1150
1185
  }
1151
1186
  }
1152
- function N(c, d) {
1153
- if (!d.children)
1187
+ function k(i, m) {
1188
+ if (!m.children)
1154
1189
  return [];
1155
- const h = Object.keys(d.children), f = [];
1156
- for (const l of h) {
1157
- const s = `${c}.${l}`, r = d.children[l], i = N(s, r);
1158
- f.push(...i), delete r.children, f.push([s, r]);
1190
+ const f = Object.keys(m.children), r = [];
1191
+ for (const a of f) {
1192
+ const o = `${i}.${a}`, v = m.children[a], V = k(o, v);
1193
+ r.push(...V), delete v.children, r.push([o, v]);
1159
1194
  }
1160
- return f;
1195
+ return r;
1161
1196
  }
1162
- function T(c) {
1163
- const { components: d, ...h } = c, f = Object.values(h);
1164
- d && f.push(...Object.values(d));
1165
- for (const l of f)
1166
- S(l.styles), A.forEach((s) => {
1167
- if (s in l.styles) {
1168
- const r = l.styles[s];
1169
- S(r);
1197
+ function E(i) {
1198
+ if (!i.components)
1199
+ return;
1200
+ const m = Object.values(i.components);
1201
+ for (const f of m)
1202
+ C(f.styles), B.forEach((r) => {
1203
+ if (r in f.styles) {
1204
+ const a = f.styles[r];
1205
+ C(a);
1170
1206
  }
1171
- }), l.themes && Object.values(l.themes).forEach((s) => {
1172
- S(s), A.forEach((r) => {
1173
- if (r in s) {
1174
- const i = s[r];
1175
- S(i);
1207
+ }), f.themes && Object.values(f.themes).forEach((r) => {
1208
+ C(r), B.forEach((a) => {
1209
+ if (a in r) {
1210
+ const o = r[a];
1211
+ C(o);
1176
1212
  }
1177
1213
  });
1178
1214
  });
1179
1215
  }
1180
- function S(c) {
1181
- Object.entries(ie).forEach(([d, h]) => {
1182
- if (h in c) {
1183
- const f = c[h];
1184
- Object.entries(f).map(([l, s]) => {
1185
- c[`${l}${d}`] = s;
1186
- }), delete c[h];
1216
+ function C(i) {
1217
+ H.forEach((m) => {
1218
+ if (m in i) {
1219
+ const f = i[m];
1220
+ Object.entries(f).map(([r, a]) => {
1221
+ i[`${r}${m}`] = a;
1222
+ }), delete i[m];
1187
1223
  }
1188
1224
  });
1189
1225
  }
1190
- })(_ || (_ = {}));
1191
- const M = _;
1192
- function ce(a) {
1193
- const { clean: u, theme: t, component: n } = a;
1194
- return X(() => {
1195
- var m, N;
1196
- if (u)
1226
+ })(D || (D = {}));
1227
+ const ce = D;
1228
+ function me(e) {
1229
+ const { clean: l, theme: u, component: n } = e;
1230
+ return U(() => {
1231
+ var d, p;
1232
+ if (l)
1197
1233
  return;
1198
- let o = M.Styles[n] ?? ((m = M.Styles.components) == null ? void 0 : m[n]);
1199
- if (o)
1200
- return t ? { ...o.styles, ...(N = o.themes) == null ? void 0 : N[t] } : o.styles;
1201
- }, [n, u, t]);
1234
+ let t = (d = ce.Styles.components) == null ? void 0 : d[n];
1235
+ if (t)
1236
+ return u ? { ...t.styles, ...(p = t.themes) == null ? void 0 : p[u] } : t.styles;
1237
+ }, [n, l, u]);
1202
1238
  }
1203
- const me = typeof window < "u" && typeof window.document < "u", de = me ? se : ae;
1204
- function ge(a, u) {
1205
- const t = ce(a);
1206
- return de(I.flush, [a]), X(() => {
1207
- const n = [u ? I.svgClassName : I.boxClassName], o = t ? { ...t, ...a } : { ...a };
1208
- return U(o), Object.entries(o).forEach(([m, N]) => {
1209
- n.push(I.get(m, N));
1210
- }), A.forEach((m) => {
1211
- if (m in o) {
1212
- const N = o[m];
1213
- U(N), Object.entries(N).forEach(([T, S]) => {
1214
- n.push(I.get(T, S, m));
1215
- }), delete o[m];
1239
+ const de = typeof window < "u" && typeof window.document < "u", fe = de ? ee : se;
1240
+ function pe(e, l) {
1241
+ const u = me(e);
1242
+ return fe(I.flush, [e]), U(() => {
1243
+ const n = [l ? I.svgClassName : I.boxClassName], t = u ? { ...u, ...e } : { ...e };
1244
+ return M(t), Object.entries(t).forEach(([d, p]) => {
1245
+ n.push(I.get(d, p));
1246
+ }), B.forEach((d) => {
1247
+ if (d in t) {
1248
+ const p = t[d];
1249
+ M(p), Object.entries(p).forEach(([k, E]) => {
1250
+ n.push(I.get(k, E, d));
1251
+ }), delete t[d];
1216
1252
  }
1217
1253
  }), n;
1218
- }, [a, t]);
1254
+ }, [e, u]);
1219
1255
  }
1220
- function U(a) {
1221
- 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");
1256
+ function M(e) {
1257
+ w(e, "hover", "hover"), w(e, "focus", "focus"), w(e, "hasFocus", "hasFocus"), w(e, "active", "active"), w(e, "disabled", "disabled"), w(e, "hasDisabled", "hasDisabled"), w(e, "checked", "checked"), w(e, "hasChecked", "hasChecked"), w(e, "valid", "valid"), w(e, "hasValid", "hasValid"), w(e, "invalid", "invalid"), w(e, "hasInvalid", "hasInvalid"), A(e, "hoverGroup", "hover"), A(e, "focusGroup", "focus"), A(e, "activeGroup", "active"), A(e, "disabledGroup", "disabled");
1222
1258
  }
1223
- function B(a, u, t) {
1224
- u in a && Q(a, u, t, a[u]);
1259
+ function w(e, l, u) {
1260
+ l in e && J(e, l, u, e[l]);
1225
1261
  }
1226
- function R(a, u, t) {
1227
- u in a && Y.isObject(a[u]) && Object.entries(a[u]).forEach(([n, o]) => {
1228
- I.addCustomPseudoClass(t, n, u), Q(a, u, t + n, o);
1262
+ function A(e, l, u) {
1263
+ l in e && X.isObject(e[l]) && Object.entries(e[l]).forEach(([n, t]) => {
1264
+ I.addCustomPseudoClass(u, n, l), J(e, l, u + n, t);
1229
1265
  });
1230
1266
  }
1231
- function Q(a, u, t, n) {
1232
- Array.isArray(n) ? (Object.entries(n[1]).forEach(([o, m]) => {
1233
- a[`${o}${t}`] = m;
1234
- }), a[u] = n[0]) : Y.isObject(n) && (Object.entries(n).forEach(([o, m]) => {
1235
- a[`${o}${t}`] = m;
1236
- }), delete a[u]);
1267
+ function J(e, l, u, n) {
1268
+ Array.isArray(n) ? (Object.entries(n[1]).forEach(([t, d]) => {
1269
+ e[`${t}${u}`] = d;
1270
+ }), e[l] = n[0]) : X.isObject(n) && (Object.entries(n).forEach(([t, d]) => {
1271
+ e[`${t}${u}`] = d;
1272
+ }), delete e[l]);
1237
1273
  }
1238
- function fe(...a) {
1239
- return a.reduce((u, t) => t ? typeof t == "string" ? (u.push(t), u) : Array.isArray(t) ? (u.push(...fe(...t)), u) : (Object.entries(t).forEach(([n, o]) => {
1240
- o && u.push(n);
1241
- }), u) : u, []);
1274
+ function he(...e) {
1275
+ return e.reduce((l, u) => u ? typeof u == "string" ? (l.push(u), l) : Array.isArray(u) ? (l.push(...he(...u)), l) : (Object.entries(u).forEach(([n, t]) => {
1276
+ t && l.push(n);
1277
+ }), l) : l, []);
1242
1278
  }
1243
1279
  export {
1244
1280
  I as S,
1245
- M as T,
1246
- fe as c,
1247
- ge as u
1281
+ ce as T,
1282
+ he as c,
1283
+ pe as u
1248
1284
  };