@cronocode/react-box 1.8.1 → 1.8.3

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,30 +1,30 @@
1
- import { useMemo as q, useLayoutEffect as U, useEffect as X } from "react";
1
+ import { useMemo as P, useLayoutEffect as G, useEffect as M } from "react";
2
2
  var e;
3
3
  ((u) => {
4
- ((t) => {
5
- function d(a, p) {
6
- return `${a}${p.replace("/", "-")}`;
4
+ ((r) => {
5
+ function m(a, b) {
6
+ return `${a}${b.replace("/", "-")}`;
7
7
  }
8
- t.fraction = d;
9
- function i(a) {
8
+ r.fraction = m;
9
+ function n(a) {
10
10
  return [`${a} path`, `${a} circle`, `${a} rect`, `${a} line`];
11
11
  }
12
- t.svg = i;
13
- })(u.ClassName || (u.ClassName = {})), ((t) => {
14
- function d(l, s) {
12
+ r.svg = n;
13
+ })(u.ClassName || (u.ClassName = {})), ((r) => {
14
+ function m(l, s) {
15
15
  return `${s / 4}rem`;
16
16
  }
17
- t.rem = d;
18
- function i(l, s) {
17
+ r.rem = m;
18
+ function n(l, s) {
19
19
  return `${s}px`;
20
20
  }
21
- t.px = i;
21
+ r.px = n;
22
22
  function a(l, s) {
23
- const [r, w] = s.split("/");
24
- return `${+r / +w * 100}%`;
23
+ const [t, V] = s.split("/");
24
+ return `${+t / +V * 100}%`;
25
25
  }
26
- t.fraction = a;
27
- function p(l, s) {
26
+ r.fraction = a;
27
+ function b(l, s) {
28
28
  switch (s) {
29
29
  case "fit":
30
30
  return "100%";
@@ -34,38 +34,38 @@ var e;
34
34
  return s;
35
35
  }
36
36
  }
37
- t.widthHeight = p;
37
+ r.widthHeight = b;
38
38
  function y(l) {
39
- return (s, r) => `var(--${l}${r});`;
39
+ return (s, t) => `var(--${l}${t});`;
40
40
  }
41
- t.variables = y;
41
+ r.variables = y;
42
42
  function $(l) {
43
- return (s, r) => `var(--${l}${r});`;
43
+ return (s, t) => `var(--${l}${t});`;
44
44
  }
45
- t.svgVariables = $;
46
- function c(l, s) {
45
+ r.svgVariables = $;
46
+ function v(l, s) {
47
47
  return `repeat(${s},minmax(0,1fr))`;
48
48
  }
49
- t.gridColumns = c;
50
- function f(l, s) {
49
+ r.gridColumns = v;
50
+ function d(l, s) {
51
51
  return s === "full-row" ? "1/-1" : `span ${s}/span ${s}`;
52
52
  }
53
- t.gridColumn = f;
54
- function m(l, s) {
53
+ r.gridColumn = d;
54
+ function c(l, s) {
55
55
  return `${s}ms`;
56
56
  }
57
- t.ms = m;
58
- function b(l, s) {
57
+ r.ms = c;
58
+ function p(l, s) {
59
59
  return `${s}deg`;
60
60
  }
61
- t.rotate = b;
62
- function V(l, s) {
61
+ r.rotate = p;
62
+ function g(l, s) {
63
63
  return s === "xAxis" ? "-1 1" : "1 -1";
64
64
  }
65
- t.flip = V;
65
+ r.flip = g;
66
66
  })(u.Value || (u.Value = {}));
67
67
  })(e || (e = {}));
68
- const v = [
68
+ const i = [
69
69
  0,
70
70
  1,
71
71
  2,
@@ -116,8 +116,15 @@ const v = [
116
116
  88,
117
117
  92,
118
118
  96,
119
- 100
120
- ], Y = [
119
+ 100,
120
+ 120,
121
+ 140,
122
+ 160,
123
+ 180,
124
+ 200,
125
+ 250,
126
+ 300
127
+ ], U = [
121
128
  -1,
122
129
  -2,
123
130
  -3,
@@ -163,7 +170,7 @@ const v = [
163
170
  -92,
164
171
  -96,
165
172
  -100
166
- ], g = [...v, ...Y], L = ["solid", "dashed", "dotted", "double", "groove", "ridge", "inset", "outset", "none", "hidden"], A = ["auto", "hidden", "scroll", "visible"], C = [
173
+ ], f = [...i, ...U], B = ["solid", "dashed", "dotted", "double", "groove", "ridge", "inset", "outset", "none", "hidden"], H = ["auto", "hidden", "scroll", "visible"], C = [
167
174
  "1/2",
168
175
  "1/3",
169
176
  "2/3",
@@ -190,7 +197,7 @@ const v = [
190
197
  "9/12",
191
198
  "10/12",
192
199
  "11/12"
193
- ], j = ["fit", "fit-screen", "auto", "fit-content", "max-content", "min-content"], F = ["auto", "flex-start", "flex-end", "center", "baseline", "stretch"], o = {
200
+ ], j = ["fit", "fit-screen", "auto", "fit-content", "max-content", "min-content"], F = ["auto", "flex-start", "flex-end", "center", "baseline", "stretch"], w = {
194
201
  /** 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. */
195
202
  display: {
196
203
  cssNames: ["display"],
@@ -215,7 +222,7 @@ const v = [
215
222
  width: {
216
223
  cssNames: ["width"],
217
224
  values1: { values: j, formatValue: e.Value.widthHeight },
218
- values2: { values: v, formatValue: e.Value.rem },
225
+ values2: { values: i, formatValue: e.Value.rem },
219
226
  values3: {
220
227
  values: C,
221
228
  formatValue: e.Value.fraction
@@ -225,7 +232,7 @@ const v = [
225
232
  minWidth: {
226
233
  cssNames: ["min-width"],
227
234
  values1: { values: j, formatValue: e.Value.widthHeight },
228
- values2: { values: v, formatValue: e.Value.rem },
235
+ values2: { values: i, formatValue: e.Value.rem },
229
236
  values3: {
230
237
  values: C,
231
238
  formatValue: e.Value.fraction
@@ -235,7 +242,7 @@ const v = [
235
242
  maxWidth: {
236
243
  cssNames: ["max-width"],
237
244
  values1: { values: j, formatValue: e.Value.widthHeight },
238
- values2: { values: v, formatValue: e.Value.rem },
245
+ values2: { values: i, formatValue: e.Value.rem },
239
246
  values3: {
240
247
  values: C,
241
248
  formatValue: e.Value.fraction
@@ -245,7 +252,7 @@ const v = [
245
252
  height: {
246
253
  cssNames: ["height"],
247
254
  values1: { values: j, formatValue: e.Value.widthHeight },
248
- values2: { values: v, formatValue: e.Value.rem },
255
+ values2: { values: i, formatValue: e.Value.rem },
249
256
  values3: {
250
257
  values: C,
251
258
  formatValue: e.Value.fraction
@@ -255,7 +262,7 @@ const v = [
255
262
  minHeight: {
256
263
  cssNames: ["min-height"],
257
264
  values1: { values: j, formatValue: e.Value.widthHeight },
258
- values2: { values: v, formatValue: e.Value.rem },
265
+ values2: { values: i, formatValue: e.Value.rem },
259
266
  values3: {
260
267
  values: C,
261
268
  formatValue: e.Value.fraction
@@ -265,7 +272,7 @@ const v = [
265
272
  maxHeight: {
266
273
  cssNames: ["max-height"],
267
274
  values1: { values: j, formatValue: e.Value.widthHeight },
268
- values2: { values: v, formatValue: e.Value.rem },
275
+ values2: { values: i, formatValue: e.Value.rem },
269
276
  values3: {
270
277
  values: C,
271
278
  formatValue: e.Value.fraction
@@ -280,217 +287,217 @@ const v = [
280
287
  },
281
288
  top: {
282
289
  cssNames: ["top"],
283
- values1: { values: g, formatValue: e.Value.rem },
290
+ values1: { values: f, formatValue: e.Value.rem },
284
291
  values2: { values: [] },
285
292
  values3: { values: [] }
286
293
  },
287
294
  right: {
288
295
  cssNames: ["right"],
289
- values1: { values: g, formatValue: e.Value.rem },
296
+ values1: { values: f, formatValue: e.Value.rem },
290
297
  values2: { values: [] },
291
298
  values3: { values: [] }
292
299
  },
293
300
  bottom: {
294
301
  cssNames: ["bottom"],
295
- values1: { values: g, formatValue: e.Value.rem },
302
+ values1: { values: f, formatValue: e.Value.rem },
296
303
  values2: { values: [] },
297
304
  values3: { values: [] }
298
305
  },
299
306
  left: {
300
307
  cssNames: ["left"],
301
- values1: { values: g, formatValue: e.Value.rem },
308
+ values1: { values: f, formatValue: e.Value.rem },
302
309
  values2: { values: [] },
303
310
  values3: { values: [] }
304
311
  },
305
312
  inset: {
306
313
  cssNames: ["inset"],
307
- values1: { values: g, formatValue: e.Value.rem },
314
+ values1: { values: f, formatValue: e.Value.rem },
308
315
  values2: { values: [] },
309
316
  values3: { values: [] }
310
317
  },
311
- margin: {
318
+ m: {
312
319
  cssNames: ["margin"],
313
- values1: { values: g, formatValue: e.Value.rem },
320
+ values1: { values: f, formatValue: e.Value.rem },
314
321
  values2: { values: ["auto"] },
315
322
  values3: { values: [] }
316
323
  },
317
- marginHorizontal: {
324
+ mx: {
318
325
  cssNames: ["margin-inline"],
319
- values1: { values: g, formatValue: e.Value.rem },
326
+ values1: { values: f, formatValue: e.Value.rem },
320
327
  values2: { values: ["auto"] },
321
328
  values3: { values: [] }
322
329
  },
323
- marginVertical: {
330
+ my: {
324
331
  cssNames: ["margin-block"],
325
- values1: { values: g, formatValue: e.Value.rem },
332
+ values1: { values: f, formatValue: e.Value.rem },
326
333
  values2: { values: ["auto"] },
327
334
  values3: { values: [] }
328
335
  },
329
- marginTop: {
336
+ mt: {
330
337
  cssNames: ["margin-top"],
331
- values1: { values: g, formatValue: e.Value.rem },
338
+ values1: { values: f, formatValue: e.Value.rem },
332
339
  values2: { values: ["auto"] },
333
340
  values3: { values: [] }
334
341
  },
335
- marginRight: {
342
+ mr: {
336
343
  cssNames: ["margin-right"],
337
- values1: { values: g, formatValue: e.Value.rem },
344
+ values1: { values: f, formatValue: e.Value.rem },
338
345
  values2: { values: ["auto"] },
339
346
  values3: { values: [] }
340
347
  },
341
- marginBottom: {
348
+ mb: {
342
349
  cssNames: ["margin-bottom"],
343
- values1: { values: g, formatValue: e.Value.rem },
350
+ values1: { values: f, formatValue: e.Value.rem },
344
351
  values2: { values: ["auto"] },
345
352
  values3: { values: [] }
346
353
  },
347
- marginLeft: {
354
+ ml: {
348
355
  cssNames: ["margin-left"],
349
- values1: { values: g, formatValue: e.Value.rem },
356
+ values1: { values: f, formatValue: e.Value.rem },
350
357
  values2: { values: ["auto"] },
351
358
  values3: { values: [] }
352
359
  },
353
- padding: {
360
+ p: {
354
361
  cssNames: ["padding"],
355
- values1: { values: g, formatValue: e.Value.rem },
362
+ values1: { values: f, formatValue: e.Value.rem },
356
363
  values2: { values: [] },
357
364
  values3: { values: [] }
358
365
  },
359
- paddingHorizontal: {
366
+ px: {
360
367
  cssNames: ["padding-inline"],
361
- values1: { values: g, formatValue: e.Value.rem },
368
+ values1: { values: f, formatValue: e.Value.rem },
362
369
  values2: { values: [] },
363
370
  values3: { values: [] }
364
371
  },
365
- paddingVertical: {
372
+ py: {
366
373
  cssNames: ["padding-block"],
367
- values1: { values: g, formatValue: e.Value.rem },
374
+ values1: { values: f, formatValue: e.Value.rem },
368
375
  values2: { values: [] },
369
376
  values3: { values: [] }
370
377
  },
371
- paddingTop: {
378
+ pt: {
372
379
  cssNames: ["padding-top"],
373
- values1: { values: g, formatValue: e.Value.rem },
380
+ values1: { values: f, formatValue: e.Value.rem },
374
381
  values2: { values: [] },
375
382
  values3: { values: [] }
376
383
  },
377
- paddingRight: {
384
+ pr: {
378
385
  cssNames: ["padding-right"],
379
- values1: { values: g, formatValue: e.Value.rem },
386
+ values1: { values: f, formatValue: e.Value.rem },
380
387
  values2: { values: [] },
381
388
  values3: { values: [] }
382
389
  },
383
- paddingBottom: {
390
+ pb: {
384
391
  cssNames: ["padding-bottom"],
385
- values1: { values: g, formatValue: e.Value.rem },
392
+ values1: { values: f, formatValue: e.Value.rem },
386
393
  values2: { values: [] },
387
394
  values3: { values: [] }
388
395
  },
389
- paddingLeft: {
396
+ pl: {
390
397
  cssNames: ["padding-left"],
391
- values1: { values: g, formatValue: e.Value.rem },
398
+ values1: { values: f, formatValue: e.Value.rem },
392
399
  values2: { values: [] },
393
400
  values3: { values: [] }
394
401
  },
395
- border: {
402
+ b: {
396
403
  cssNames: ["border-width"],
397
- values1: { values: v, formatValue: e.Value.px },
404
+ values1: { values: i, formatValue: e.Value.px },
398
405
  values2: { values: [] },
399
406
  values3: { values: [] }
400
407
  },
401
- borderHorizontal: {
408
+ bx: {
402
409
  cssNames: ["border-inline-width"],
403
- values1: { values: g, formatValue: e.Value.px },
410
+ values1: { values: f, formatValue: e.Value.px },
404
411
  values2: { values: [] },
405
412
  values3: { values: [] }
406
413
  },
407
- borderVertical: {
414
+ by: {
408
415
  cssNames: ["border-block-width"],
409
- values1: { values: g, formatValue: e.Value.px },
416
+ values1: { values: f, formatValue: e.Value.px },
410
417
  values2: { values: [] },
411
418
  values3: { values: [] }
412
419
  },
413
- borderTop: {
420
+ bt: {
414
421
  cssNames: ["border-top-width"],
415
- values1: { values: g, formatValue: e.Value.px },
422
+ values1: { values: f, formatValue: e.Value.px },
416
423
  values2: { values: [] },
417
424
  values3: { values: [] }
418
425
  },
419
- borderRight: {
426
+ br: {
420
427
  cssNames: ["border-right-width"],
421
- values1: { values: g, formatValue: e.Value.px },
428
+ values1: { values: f, formatValue: e.Value.px },
422
429
  values2: { values: [] },
423
430
  values3: { values: [] }
424
431
  },
425
- borderBottom: {
432
+ bb: {
426
433
  cssNames: ["border-bottom-width"],
427
- values1: { values: g, formatValue: e.Value.px },
434
+ values1: { values: f, formatValue: e.Value.px },
428
435
  values2: { values: [] },
429
436
  values3: { values: [] }
430
437
  },
431
- borderLeft: {
438
+ bl: {
432
439
  cssNames: ["border-left-width"],
433
- values1: { values: g, formatValue: e.Value.px },
440
+ values1: { values: f, formatValue: e.Value.px },
434
441
  values2: { values: [] },
435
442
  values3: { values: [] }
436
443
  },
437
444
  borderStyle: {
438
445
  cssNames: ["border-style"],
439
- values1: { values: L },
446
+ values1: { values: B },
440
447
  values2: { values: [] },
441
448
  values3: { values: [] }
442
449
  },
443
450
  borderRadius: {
444
451
  cssNames: ["border-radius"],
445
- values1: { values: v, formatValue: e.Value.rem },
452
+ values1: { values: i, formatValue: e.Value.rem },
446
453
  values2: { values: [] },
447
454
  values3: { values: [] }
448
455
  },
449
456
  borderRadiusTop: {
450
457
  cssNames: ["border-top-left-radius", "border-top-right-radius"],
451
- values1: { values: v, formatValue: e.Value.rem },
458
+ values1: { values: i, formatValue: e.Value.rem },
452
459
  values2: { values: [] },
453
460
  values3: { values: [] }
454
461
  },
455
462
  borderRadiusRight: {
456
463
  cssNames: ["border-top-right-radius", "border-bottom-right-radius"],
457
- values1: { values: v, formatValue: e.Value.rem },
464
+ values1: { values: i, formatValue: e.Value.rem },
458
465
  values2: { values: [] },
459
466
  values3: { values: [] }
460
467
  },
461
468
  borderRadiusBottom: {
462
469
  cssNames: ["border-bottom-left-radius", "border-bottom-right-radius"],
463
- values1: { values: v, formatValue: e.Value.rem },
470
+ values1: { values: i, formatValue: e.Value.rem },
464
471
  values2: { values: [] },
465
472
  values3: { values: [] }
466
473
  },
467
474
  borderRadiusLeft: {
468
475
  cssNames: ["border-top-left-radius", "border-bottom-left-radius"],
469
- values1: { values: v, formatValue: e.Value.rem },
476
+ values1: { values: i, formatValue: e.Value.rem },
470
477
  values2: { values: [] },
471
478
  values3: { values: [] }
472
479
  },
473
480
  borderRadiusTopLeft: {
474
481
  cssNames: ["border-top-left-radius"],
475
- values1: { values: v, formatValue: e.Value.rem },
482
+ values1: { values: i, formatValue: e.Value.rem },
476
483
  values2: { values: [] },
477
484
  values3: { values: [] }
478
485
  },
479
486
  borderRadiusTopRight: {
480
487
  cssNames: ["border-top-right-radius"],
481
- values1: { values: v, formatValue: e.Value.rem },
488
+ values1: { values: i, formatValue: e.Value.rem },
482
489
  values2: { values: [] },
483
490
  values3: { values: [] }
484
491
  },
485
492
  borderRadiusBottomLeft: {
486
493
  cssNames: ["border-bottom-left-radius"],
487
- values1: { values: v, formatValue: e.Value.rem },
494
+ values1: { values: i, formatValue: e.Value.rem },
488
495
  values2: { values: [] },
489
496
  values3: { values: [] }
490
497
  },
491
498
  borderRadiusBottomRight: {
492
499
  cssNames: ["border-bottom-right-radius"],
493
- values1: { values: v, formatValue: e.Value.rem },
500
+ values1: { values: i, formatValue: e.Value.rem },
494
501
  values2: { values: [] },
495
502
  values3: { values: [] }
496
503
  },
@@ -549,19 +556,19 @@ const v = [
549
556
  },
550
557
  overflow: {
551
558
  cssNames: ["overflow"],
552
- values1: { values: A },
559
+ values1: { values: H },
553
560
  values2: { values: [] },
554
561
  values3: { values: [] }
555
562
  },
556
563
  overflowX: {
557
564
  cssNames: ["overflow-x"],
558
- values1: { values: A },
565
+ values1: { values: H },
559
566
  values2: { values: [] },
560
567
  values3: { values: [] }
561
568
  },
562
569
  overflowY: {
563
570
  cssNames: ["overflow-y"],
564
- values1: { values: A },
571
+ values1: { values: H },
565
572
  values2: { values: [] },
566
573
  values3: { values: [] }
567
574
  },
@@ -573,7 +580,7 @@ const v = [
573
580
  },
574
581
  fontSize: {
575
582
  cssNames: ["font-size"],
576
- values1: { values: v, formatValue: e.Value.px },
583
+ values1: { values: i, formatValue: e.Value.px },
577
584
  values2: { values: ["inherit"] },
578
585
  values3: { values: [] }
579
586
  },
@@ -591,13 +598,13 @@ const v = [
591
598
  },
592
599
  letterSpacing: {
593
600
  cssNames: ["letter-spacing"],
594
- values1: { values: v, formatValue: e.Value.px },
601
+ values1: { values: i, formatValue: e.Value.px },
595
602
  values2: { values: [] },
596
603
  values3: { values: [] }
597
604
  },
598
605
  lineHeight: {
599
606
  cssNames: ["line-height"],
600
- values1: { values: v, formatValue: e.Value.px },
607
+ values1: { values: i, formatValue: e.Value.px },
601
608
  values2: { values: ["font-size"], formatValue: () => "1" },
602
609
  values3: { values: [] }
603
610
  },
@@ -625,7 +632,7 @@ const v = [
625
632
  values2: { values: [] },
626
633
  values3: { values: [] }
627
634
  },
628
- justifyContent: {
635
+ jc: {
629
636
  cssNames: ["justify-content"],
630
637
  values1: {
631
638
  values: [
@@ -645,7 +652,7 @@ const v = [
645
652
  values2: { values: [] },
646
653
  values3: { values: [] }
647
654
  },
648
- alignItems: {
655
+ ai: {
649
656
  cssNames: ["align-items"],
650
657
  values1: {
651
658
  values: ["stretch", "flex-start", "flex-end", "center", "baseline", "start", "end", "self-start", "self-end"]
@@ -678,7 +685,7 @@ const v = [
678
685
  values2: { values: [] },
679
686
  values3: { values: [] }
680
687
  },
681
- flexDirection: {
688
+ d: {
682
689
  cssNames: ["flex-direction"],
683
690
  values1: { values: ["row", "row-reverse", "column", "column-reverse"] },
684
691
  values2: { values: [] },
@@ -686,37 +693,37 @@ const v = [
686
693
  },
687
694
  gap: {
688
695
  cssNames: ["gap"],
689
- values1: { values: v, formatValue: e.Value.rem },
696
+ values1: { values: i, formatValue: e.Value.rem },
690
697
  values2: { values: [] },
691
698
  values3: { values: [] }
692
699
  },
693
700
  rowGap: {
694
701
  cssNames: ["row-gap"],
695
- values1: { values: v, formatValue: e.Value.rem },
702
+ values1: { values: i, formatValue: e.Value.rem },
696
703
  values2: { values: [] },
697
704
  values3: { values: [] }
698
705
  },
699
706
  columnGap: {
700
707
  cssNames: ["column-gap"],
701
- values1: { values: v, formatValue: e.Value.rem },
708
+ values1: { values: i, formatValue: e.Value.rem },
702
709
  values2: { values: [] },
703
710
  values3: { values: [] }
704
711
  },
705
712
  order: {
706
713
  cssNames: ["order"],
707
- values1: { values: v },
714
+ values1: { values: i },
708
715
  values2: { values: [] },
709
716
  values3: { values: [] }
710
717
  },
711
718
  flexGrow: {
712
719
  cssNames: ["flex-grow"],
713
- values1: { values: v },
720
+ values1: { values: i },
714
721
  values2: { values: [] },
715
722
  values3: { values: [] }
716
723
  },
717
724
  flexShrink: {
718
725
  cssNames: ["flex-shrink"],
719
- values1: { values: v },
726
+ values1: { values: i },
720
727
  values2: { values: [] },
721
728
  values3: { values: [] }
722
729
  },
@@ -734,43 +741,43 @@ const v = [
734
741
  },
735
742
  gridColumns: {
736
743
  cssNames: ["grid-template-columns"],
737
- values1: { values: v, formatValue: e.Value.gridColumns },
744
+ values1: { values: i, formatValue: e.Value.gridColumns },
738
745
  values2: { values: [] },
739
746
  values3: { values: [] }
740
747
  },
741
748
  colSpan: {
742
749
  cssNames: ["grid-column"],
743
- values1: { values: v, formatValue: e.Value.gridColumn },
750
+ values1: { values: i, formatValue: e.Value.gridColumn },
744
751
  values2: { values: ["full-row"], formatValue: e.Value.gridColumn },
745
752
  values3: { values: [] }
746
753
  },
747
754
  colStart: {
748
755
  cssNames: ["grid-column-start"],
749
- values1: { values: v },
756
+ values1: { values: i },
750
757
  values2: { values: [] },
751
758
  values3: { values: [] }
752
759
  },
753
760
  colEnd: {
754
761
  cssNames: ["grid-column-end"],
755
- values1: { values: v },
762
+ values1: { values: i },
756
763
  values2: { values: [] },
757
764
  values3: { values: [] }
758
765
  },
759
766
  outline: {
760
767
  cssNames: ["outline-width"],
761
- values1: { values: v, formatValue: e.Value.px },
768
+ values1: { values: i, formatValue: e.Value.px },
762
769
  values2: { values: [] },
763
770
  values3: { values: [] }
764
771
  },
765
772
  outlineStyle: {
766
773
  cssNames: ["outline-style"],
767
- values1: { values: L },
774
+ values1: { values: B },
768
775
  values2: { values: [] },
769
776
  values3: { values: [] }
770
777
  },
771
778
  outlineOffset: {
772
779
  cssNames: ["outline-offset"],
773
- values1: { values: v, formatValue: e.Value.px },
780
+ values1: { values: i, formatValue: e.Value.px },
774
781
  values2: { values: [] },
775
782
  values3: { values: [] }
776
783
  },
@@ -831,7 +838,7 @@ const v = [
831
838
  values2: { values: [] },
832
839
  values3: { values: [] }
833
840
  }
834
- }, D = {
841
+ }, R = {
835
842
  shadow: { cssNames: ["box-shadow"], formatValue: e.Value.variables("shadow") },
836
843
  background: { cssNames: ["background"], formatValue: e.Value.variables("background") },
837
844
  backgroundImage: { cssNames: ["background-image"], formatValue: e.Value.variables("backgroundImage") },
@@ -839,7 +846,7 @@ const v = [
839
846
  bgColor: { cssNames: ["background-color"], formatValue: e.Value.variables("color") },
840
847
  borderColor: { cssNames: ["border-color"], formatValue: e.Value.variables("color") },
841
848
  outlineColor: { cssNames: ["outline-color"], formatValue: e.Value.variables("color") }
842
- }, P = {
849
+ }, _ = {
843
850
  fill: {
844
851
  cssNames: ["fill"],
845
852
  formatValue: e.Value.svgVariables("color"),
@@ -850,7 +857,7 @@ const v = [
850
857
  formatValue: e.Value.svgVariables("color"),
851
858
  formatSelector: e.ClassName.svg
852
859
  }
853
- }, J = ["H", "F", "A", "Checked", "Indeterminate", "Valid", "Invalid", "Required", "Optional"], Q = [
860
+ }, X = ["H", "F", "A"], Y = [
854
861
  "H",
855
862
  "F",
856
863
  "A",
@@ -861,147 +868,117 @@ const v = [
861
868
  "Required",
862
869
  "Optional",
863
870
  "Disabled"
864
- ], H = {
871
+ ], z = {
865
872
  hover: { className: "_h" },
866
873
  focus: { className: "_f" }
867
874
  };
868
- Object.keys(D).forEach((u) => {
869
- o[u] = D[u], o[u].isThemeStyle = !0;
875
+ Object.keys(R).forEach((u) => {
876
+ w[u] = R[u], w[u].isThemeStyle = !0;
870
877
  });
871
- Object.keys(P).forEach((u) => {
872
- o[u] = P[u], o[u].isThemeStyle = !0;
878
+ Object.keys(_).forEach((u) => {
879
+ w[u] = _[u], w[u].isThemeStyle = !0;
873
880
  });
874
- const T = {
875
- w: { ...o.width, key: "width" },
876
- h: { ...o.height, key: "height" },
877
- m: { ...o.margin, key: "margin" },
878
- mx: { ...o.marginHorizontal, key: "marginHorizontal" },
879
- my: { ...o.marginVertical, key: "marginVertical" },
880
- mt: { ...o.marginTop, key: "marginTop" },
881
- mr: { ...o.marginRight, key: "marginRight" },
882
- mb: { ...o.marginBottom, key: "marginBottom" },
883
- ml: { ...o.marginLeft, key: "marginLeft" },
884
- p: { ...o.padding, key: "padding" },
885
- px: { ...o.paddingHorizontal, key: "paddingHorizontal" },
886
- py: { ...o.paddingVertical, key: "paddingVertical" },
887
- pt: { ...o.paddingTop, key: "paddingTop" },
888
- pr: { ...o.paddingRight, key: "paddingRight" },
889
- pb: { ...o.paddingBottom, key: "paddingBottom" },
890
- pl: { ...o.paddingLeft, key: "paddingLeft" },
891
- b: { ...o.border, key: "border" },
892
- bx: { ...o.borderHorizontal, key: "borderHorizontal" },
893
- by: { ...o.borderVertical, key: "borderVertical" },
894
- bt: { ...o.borderTop, key: "borderTop" },
895
- br: { ...o.borderRight, key: "borderRight" },
896
- bb: { ...o.borderBottom, key: "borderBottom" },
897
- bl: { ...o.borderLeft, key: "borderLeft" },
898
- jc: { ...o.justifyContent, key: "justifyContent" },
899
- ai: { ...o.alignItems, key: "alignItems" },
900
- ac: { ...o.alignContent, key: "alignContent" },
901
- d: { ...o.flexDirection, key: "flexDirection" }
902
- }, Z = Object.keys(o), K = Object.keys(T);
903
- Q.forEach((u) => {
904
- Z.forEach((t) => {
905
- o[`${t}${u}`] = { ...o[t] }, o[`${t}${u}`].pseudoSuffix = u;
906
- }), K.forEach((t) => {
907
- T[`${t}${u}`] = { ...T[t], key: `${T[t].key}${u}` }, T[`${t}${u}`].pseudoSuffix = u;
881
+ const J = Object.keys(w);
882
+ Y.forEach((u) => {
883
+ J.forEach((r) => {
884
+ w[`${r}${u}`] = { ...w[r] }, w[`${r}${u}`].pseudoSuffix = u;
908
885
  });
909
886
  });
910
- class ee {
887
+ class Q {
911
888
  constructor() {
912
889
  this._index = 0, this._cache = {};
913
890
  }
914
- getIdentity(t) {
915
- return this._cache[t] || (this._cache[t] = this.getByIndex(this._index++)), this._cache[t];
891
+ getIdentity(r) {
892
+ return this._cache[r] || (this._cache[r] = this.getByIndex(this._index++)), this._cache[r];
916
893
  }
917
- getByIndex(t) {
918
- const { first: d, next: i } = se, a = t - d.length;
894
+ getByIndex(r) {
895
+ const { first: m, next: n } = Z, a = r - m.length;
919
896
  if (a < 0)
920
- return d[t];
921
- const p = Math.floor(a / i.length), y = a - p * i.length;
922
- return this.getByIndex(p) + i[y];
897
+ return m[r];
898
+ const b = Math.floor(a / n.length), y = a - b * n.length;
899
+ return this.getByIndex(b) + n[y];
923
900
  }
924
901
  }
925
- const se = {
902
+ const Z = {
926
903
  first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
927
904
  next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
928
905
  };
929
- var B;
906
+ var A;
930
907
  ((u) => {
931
908
  u.boxClassName = "_box", u.svgClassName = "_svg", u.cronoStylesElementId = "crono-styles";
932
- const t = `: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;}}
909
+ const r = `: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;}}
933
910
  html{font-size: 16px;font-family: Arial, sans-serif;}
934
911
  body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}
935
912
  a,ul{all: unset;}
936
913
  .${u.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;}
937
914
  .${u.svgClassName}{transition: all var(--svgTransitionTime);}.${u.svgClassName} path,.${u.svgClassName} circle,.${u.svgClassName} rect,.${u.svgClassName} line {transition: all var(--svgTransitionTime);}
938
- `, d = new ee(), i = Object.keys(o);
939
- let a = !0, p = i.reduce(
915
+ `, m = new Q(), n = Object.keys(w);
916
+ let a = !0, b = n.reduce(
940
917
  (l, s) => (l[s] = /* @__PURE__ */ new Set(), l),
941
918
  {}
942
919
  );
943
920
  function y(l, s) {
944
- if (l in o)
945
- return f(l, s);
946
- if (l in H)
947
- return H[l].className;
921
+ if (l in w)
922
+ return d(l, s);
923
+ if (l in z)
924
+ return z[l].className;
948
925
  }
949
926
  u.get = y;
950
927
  function $() {
951
928
  if (a) {
952
- let l = m([t]);
953
- l = m(l, "H"), l = m(l, "F"), l = m(l, "A"), l = m(l, "Checked"), l = m(l, "Indeterminate"), l = m(l, "Valid"), l = m(l, "Invalid"), l = m(l, "Required"), l = m(l, "Disabled");
954
- const s = V();
929
+ let l = c([r]);
930
+ l = c(l, "H"), l = c(l, "F"), l = c(l, "A"), l = c(l, "Checked"), l = c(l, "Indeterminate"), l = c(l, "Valid"), l = c(l, "Invalid"), l = c(l, "Required"), l = c(l, "Disabled");
931
+ const s = g();
955
932
  s.innerHTML = l.join(""), a = !1;
956
933
  }
957
934
  }
958
935
  u.flush = $;
959
- function c() {
960
- p = i.reduce(
936
+ function v() {
937
+ b = n.reduce(
961
938
  (l, s) => (l[s] = /* @__PURE__ */ new Set(), l),
962
939
  {}
963
940
  );
964
941
  }
965
- u.clear = c;
966
- function f(l, s) {
942
+ u.clear = v;
943
+ function d(l, s) {
967
944
  var N;
968
- p[l].has(s) || (a = !0, p[l].add(s));
969
- const r = b(l, s), w = ((N = r.formatClassName) == null ? void 0 : N.call(r, l, s)) ?? `${l}${s}`;
970
- return d.getIdentity(w);
945
+ b[l].has(s) || (a = !0, b[l].add(s));
946
+ const t = p(l, s), V = ((N = t.formatClassName) == null ? void 0 : N.call(t, l, s)) ?? `${l}${s}`;
947
+ return m.getIdentity(V);
971
948
  }
972
- function m(l, s) {
973
- return Object.entries(p).filter(([w]) => {
949
+ function c(l, s) {
950
+ return Object.entries(b).filter(([V]) => {
974
951
  var N;
975
- return ((N = o[w]) == null ? void 0 : N.pseudoSuffix) === s;
976
- }).reduce((w, [N, O]) => (O.forEach((x) => {
977
- var R;
978
- const n = b(N, x), h = `.${f(N, x)}`;
979
- let k = [];
980
- s ? s === "H" ? k = [
981
- ...r(`${h}:hover`, n),
982
- ...r(`.${H.hover.className}:hover>${h}`, n)
983
- ] : s === "F" ? k = [
984
- ...r(`${h}:focus-within`, n),
985
- ...r(`.${H.focus.className}:focus-within>${h}`, n)
986
- ] : s === "A" ? k = r(`${h}:active`, n) : s === "Checked" ? k = r(`${h}:checked`, n) : s === "Indeterminate" ? k = r(`${h}:indeterminate`, n) : s === "Valid" ? k = r(`${h}:valid`, n) : s === "Invalid" ? k = r(`${h}:invalid`, n) : s === "Required" ? k = r(`${h}:required`, n) : s === "Optional" ? k = r(`${h}:optional`, n) : s === "Disabled" && (k = r(`${h}:disabled`, n)) : k = r(h, n);
987
- const W = ((R = n.formatValue) == null ? void 0 : R.call(n, N, x)) ?? x, G = o[N].cssNames.map((M) => `${M}:${W};`).join("");
988
- w.push(`${k.join(",")}{${G}}`);
989
- }), w), l);
990
- function r(w, N) {
991
- return N.formatSelector ? N.formatSelector(w) : [w];
952
+ return ((N = w[V]) == null ? void 0 : N.pseudoSuffix) === s;
953
+ }).reduce((V, [N, I]) => (I.forEach((k) => {
954
+ var E;
955
+ const o = p(N, k), h = `.${d(N, k)}`;
956
+ let x = [];
957
+ s ? s === "H" ? x = [
958
+ ...t(`${h}:hover`, o),
959
+ ...t(`.${z.hover.className}:hover>${h}`, o)
960
+ ] : s === "F" ? x = [
961
+ ...t(`${h}:focus-within`, o),
962
+ ...t(`.${z.focus.className}:focus-within>${h}`, o)
963
+ ] : s === "A" ? x = t(`${h}:active`, o) : s === "Checked" ? x = t(`${h}:checked`, o) : s === "Indeterminate" ? x = t(`${h}:indeterminate`, o) : s === "Valid" ? x = t(`${h}:valid`, o) : s === "Invalid" ? x = t(`${h}:invalid`, o) : s === "Required" ? x = t(`${h}:required`, o) : s === "Optional" ? x = t(`${h}:optional`, o) : s === "Disabled" && (x = t(`${h}:disabled`, o)) : x = t(h, o);
964
+ const L = ((E = o.formatValue) == null ? void 0 : E.call(o, N, k)) ?? k, q = w[N].cssNames.map((W) => `${W}:${L};`).join("");
965
+ V.push(`${x.join(",")}{${q}}`);
966
+ }), V), l);
967
+ function t(V, N) {
968
+ return N.formatSelector ? N.formatSelector(V) : [V];
992
969
  }
993
970
  }
994
- function b(l, s) {
995
- const r = o[l];
996
- return r.isThemeStyle ? r : r.values1.values.includes(s) ? r.values1 : r.values2.values.includes(s) ? r.values2 : r.values3;
971
+ function p(l, s) {
972
+ const t = w[l];
973
+ return t.isThemeStyle ? t : t.values1.values.includes(s) ? t.values1 : t.values2.values.includes(s) ? t.values2 : t.values3;
997
974
  }
998
- function V() {
975
+ function g() {
999
976
  const s = typeof window < "u" && typeof window.document < "u" ? window.document : global.document;
1000
- let r = s.getElementById(u.cronoStylesElementId);
1001
- return r || (r = s.createElement("style"), r.setAttribute("id", u.cronoStylesElementId), r.setAttribute("type", "text/css"), s.head.insertBefore(r, s.head.firstChild)), r;
977
+ let t = s.getElementById(u.cronoStylesElementId);
978
+ return t || (t = s.createElement("style"), t.setAttribute("id", u.cronoStylesElementId), t.setAttribute("type", "text/css"), s.head.insertBefore(t, s.head.firstChild)), t;
1002
979
  }
1003
- })(B || (B = {}));
1004
- const I = B, z = {
980
+ })(A || (A = {}));
981
+ const S = A, T = {
1005
982
  button: {
1006
983
  styles: {
1007
984
  display: "inline-block",
@@ -1043,41 +1020,41 @@ const I = B, z = {
1043
1020
  }
1044
1021
  }
1045
1022
  };
1046
- var E;
1023
+ var O;
1047
1024
  ((u) => {
1048
- function t(c) {
1049
- p(c), $(c), u.Styles = c, a();
1025
+ function r(v) {
1026
+ b(v), $(v), u.Styles = v, a();
1050
1027
  }
1051
- u.setup = t;
1052
- function d(c, f) {
1053
- const m = Object.entries(c.colors).map(([n, h]) => `--color${n}: ${h};`).join(`
1054
- `), b = Object.entries(c.shadows).map(([n, h]) => `--shadow${n}: ${h};`).join(`
1055
- `), V = Object.entries(c.backgrounds).map(([n, h]) => `--background${n}: ${h};`).join(`
1056
- `), l = Object.entries(c.backgroundImages).map(([n, h]) => `--backgroundImage${n}: ${h};`).join(`
1028
+ u.setup = r;
1029
+ function m(v, d) {
1030
+ const c = Object.entries(v.colors).map(([o, h]) => `--color${o}: ${h};`).join(`
1031
+ `), p = Object.entries(v.shadows).map(([o, h]) => `--shadow${o}: ${h};`).join(`
1032
+ `), g = Object.entries(v.backgrounds).map(([o, h]) => `--background${o}: ${h};`).join(`
1033
+ `), l = Object.entries(v.backgroundImages).map(([o, h]) => `--backgroundImage${o}: ${h};`).join(`
1057
1034
  `), s = [":root {"];
1058
- m && s.push(` ${m}`), b && s.push(` ${b}`), V && s.push(` ${V}`), l && s.push(` ${l}`), s.push("}");
1059
- const r = Object.keys(c.colors).map((n) => `'${n}'`).join(" | "), w = Object.keys(c.backgrounds).map((n) => `'${n}'`).join(" | "), N = Object.keys(c.backgroundImages).map((n) => `'${n}'`).join(" | "), O = Object.keys(c.shadows).map((n) => `'${n}'`).join(" | "), x = `import '@cronocode/react-box';
1035
+ c && s.push(` ${c}`), p && s.push(` ${p}`), g && s.push(` ${g}`), l && s.push(` ${l}`), s.push("}");
1036
+ const t = Object.keys(v.colors).map((o) => `'${o}'`).join(" | "), V = Object.keys(v.backgrounds).map((o) => `'${o}'`).join(" | "), N = Object.keys(v.backgroundImages).map((o) => `'${o}'`).join(" | "), I = Object.keys(v.shadows).map((o) => `'${o}'`).join(" | "), k = `import '@cronocode/react-box';
1060
1037
 
1061
- declare module '${(f == null ? void 0 : f.namespacePath) ?? "@cronocode/react-box/core/types"}' {
1062
- type ColorType = ${r};
1063
- type BackgroundType = ${w};
1038
+ declare module '${(d == null ? void 0 : d.namespacePath) ?? "@cronocode/react-box/core/types"}' {
1039
+ type ColorType = ${t};
1040
+ type BackgroundType = ${V};
1064
1041
  type BackgroundImageType = ${N};
1065
- type ShadowType = ${O};
1042
+ type ShadowType = ${I};
1066
1043
 
1067
1044
  namespace Augmented {
1068
1045
  interface BoxProps {
1069
- ${i("color", "ColorType")}
1070
- ${i("bgColor", "ColorType")}
1071
- ${i("borderColor", "ColorType")}
1072
- ${i("outlineColor", "ColorType")}
1073
- ${i("background", "BackgroundType")}
1074
- ${i("backgroundImage", "BackgroundImageType")}
1075
- ${i("shadow", "ShadowType")}
1046
+ ${n("color", "ColorType")}
1047
+ ${n("bgColor", "ColorType")}
1048
+ ${n("borderColor", "ColorType")}
1049
+ ${n("outlineColor", "ColorType")}
1050
+ ${n("background", "BackgroundType")}
1051
+ ${n("backgroundImage", "BackgroundImageType")}
1052
+ ${n("shadow", "ShadowType")}
1076
1053
  }
1077
1054
 
1078
1055
  interface SvgProps {
1079
- ${i("fill", "ColorType")}
1080
- ${i("stroke", "ColorType")}
1056
+ ${n("fill", "ColorType")}
1057
+ ${n("stroke", "ColorType")}
1081
1058
  }
1082
1059
  }
1083
1060
  }
@@ -1085,92 +1062,91 @@ ${i("stroke", "ColorType")}
1085
1062
  return {
1086
1063
  variables: s.join(`
1087
1064
  `),
1088
- boxDts: x
1065
+ boxDts: k
1089
1066
  };
1090
1067
  }
1091
- u.setupAugmentedProps = d;
1092
- function i(c, f) {
1093
- const m = J.map((b) => ` ${c}${b}?: ${f};`);
1094
- return m.unshift(` ${c}?: ${f};`), m.join(`
1068
+ u.setupAugmentedProps = m;
1069
+ function n(v, d) {
1070
+ const c = X.map((p) => ` ${v}${p}?: ${d};`);
1071
+ return c.unshift(` ${v}?: ${d};`), c.join(`
1095
1072
  `);
1096
1073
  }
1097
1074
  function a() {
1098
- p(z), $(z), Object.keys(z).forEach((f) => {
1099
- const m = u.Styles[f], b = z[f];
1100
- m ? m.styles = { ...b.styles, ...m.styles } : u.Styles[f] = z[f];
1075
+ b(T), $(T), Object.keys(T).forEach((d) => {
1076
+ const c = u.Styles[d], p = T[d];
1077
+ c ? c.styles = { ...p.styles, ...c.styles } : u.Styles[d] = T[d];
1101
1078
  });
1102
1079
  }
1103
- function p(c) {
1104
- if (!c.components)
1080
+ function b(v) {
1081
+ if (!v.components)
1105
1082
  return;
1106
- const f = Object.keys(c.components);
1107
- for (const m of f) {
1108
- const b = c.components[m], V = y(m, b);
1109
- delete b.children;
1110
- for (const l of V) {
1111
- const [s, r] = l;
1112
- c.components[s] = r;
1083
+ const d = Object.keys(v.components);
1084
+ for (const c of d) {
1085
+ const p = v.components[c], g = y(c, p);
1086
+ delete p.children;
1087
+ for (const l of g) {
1088
+ const [s, t] = l;
1089
+ v.components[s] = t;
1113
1090
  }
1114
1091
  }
1115
1092
  }
1116
- function y(c, f) {
1117
- if (!f.children)
1093
+ function y(v, d) {
1094
+ if (!d.children)
1118
1095
  return [];
1119
- const m = Object.keys(f.children), b = [];
1120
- for (const V of m) {
1121
- const l = `${c}.${V}`, s = f.children[V], r = y(l, s);
1122
- b.push(...r), delete s.children, b.push([l, s]);
1096
+ const c = Object.keys(d.children), p = [];
1097
+ for (const g of c) {
1098
+ const l = `${v}.${g}`, s = d.children[g], t = y(l, s);
1099
+ p.push(...t), delete s.children, p.push([l, s]);
1123
1100
  }
1124
- return b;
1101
+ return p;
1125
1102
  }
1126
- function $(c) {
1127
- const { components: f, ...m } = c, b = Object.values(m);
1128
- f && b.push(...Object.values(f));
1129
- for (const V of b)
1130
- "disabled" in V.styles && (Object.entries(V.styles.disabled).map(([l, s]) => {
1131
- V.styles[`${l}Disabled`] = s;
1132
- }), delete V.styles.disabled);
1103
+ function $(v) {
1104
+ const { components: d, ...c } = v, p = Object.values(c);
1105
+ d && p.push(...Object.values(d));
1106
+ for (const g of p)
1107
+ [
1108
+ ["disabled", "Disabled"],
1109
+ ["indeterminate", "Indeterminate"],
1110
+ ["checked", "Checked"]
1111
+ ].forEach(([l, s]) => {
1112
+ l in g.styles && (Object.entries(g.styles[l]).map(([t, V]) => {
1113
+ g.styles[`${t}${s}`] = V;
1114
+ }), delete g.styles[l]);
1115
+ });
1133
1116
  }
1134
- })(E || (E = {}));
1135
- const _ = E;
1136
- function ae(u) {
1137
- const { clean: t, theme: d, component: i } = u;
1138
- return q(() => {
1139
- var p, y;
1140
- if (t)
1117
+ })(O || (O = {}));
1118
+ const D = O;
1119
+ function K(u) {
1120
+ const { clean: r, theme: m, component: n } = u;
1121
+ return P(() => {
1122
+ var b, y;
1123
+ if (r)
1141
1124
  return;
1142
- let a = _.Styles[i] ?? ((p = _.Styles.components) == null ? void 0 : p[i]);
1125
+ let a = D.Styles[n] ?? ((b = D.Styles.components) == null ? void 0 : b[n]);
1143
1126
  if (a)
1144
- return d ? { ...a.styles, ...(y = a.themes) == null ? void 0 : y[d].styles } : a.styles;
1145
- }, [i, t, d]);
1146
- }
1147
- const le = typeof window < "u" && typeof window.document < "u", ue = le ? U : X;
1148
- function ie(u, t) {
1149
- const d = ae(u);
1150
- return ue(I.flush, [u]), q(() => {
1151
- const i = [t ? I.svgClassName : I.boxClassName], a = d ? { ...S(d), ...S(u) } : S(u);
1152
- return Array.isArray(a.disabled) && (Object.entries(a.disabled[1]).forEach(([p, y]) => {
1153
- a[`${p}Disabled`] = y;
1154
- }), delete a.disabled), "inline" in a && (a.display === "block" || !a.display ? a.display = "inline-block" : a.display === "flex" ? a.display = "inline-flex" : a.display === "grid" && (a.display = "inline-grid"), delete a.inline), "inlineH" in a && (a.displayH === "block" || !a.displayH ? a.displayH = "inline-block" : a.displayH === "flex" ? a.displayH = "inline-flex" : a.displayH === "grid" && (a.displayH = "inline-grid"), delete a.inlineH), "inlineF" in a && (a.displayF === "block" || !a.displayF ? a.displayF = "inline-block" : a.displayF === "flex" ? a.displayF = "inline-flex" : a.displayF === "grid" && (a.displayF = "inline-grid"), delete a.inlineF), "inlineA" in a && (a.displayA === "block" || !a.displayA ? a.displayA = "inline-block" : a.displayA === "flex" ? a.displayA = "inline-flex" : a.displayA === "grid" && (a.displayA = "inline-grid"), delete a.inlineA), Object.entries(a).forEach(([p, y]) => {
1155
- i.push(I.get(p, y));
1156
- }), i;
1157
- }, [u, d]);
1127
+ return m ? { ...a.styles, ...(y = a.themes) == null ? void 0 : y[m].styles } : a.styles;
1128
+ }, [n, r, m]);
1158
1129
  }
1159
- function S(u) {
1160
- const t = { ...u };
1161
- return Object.keys(t).forEach((i) => {
1162
- const a = T[i];
1163
- a && (a.key in t || (t[a.key] = t[i]), delete t[i]);
1164
- }), t;
1130
+ const ee = typeof window < "u" && typeof window.document < "u", se = ee ? G : M;
1131
+ function te(u, r) {
1132
+ const m = K(u);
1133
+ return se(S.flush, [u]), P(() => {
1134
+ const n = [r ? S.svgClassName : S.boxClassName], a = m ? { ...m, ...u } : { ...u };
1135
+ return Array.isArray(a.disabled) && (Object.entries(a.disabled[1]).forEach(([b, y]) => {
1136
+ a[`${b}Disabled`] = y;
1137
+ }), delete a.disabled), "inline" in a && (a.display === "block" || !a.display ? a.display = "inline-block" : a.display === "flex" ? a.display = "inline-flex" : a.display === "grid" && (a.display = "inline-grid"), delete a.inline), "inlineH" in a && (a.displayH === "block" || !a.displayH ? a.displayH = "inline-block" : a.displayH === "flex" ? a.displayH = "inline-flex" : a.displayH === "grid" && (a.displayH = "inline-grid"), delete a.inlineH), "inlineF" in a && (a.displayF === "block" || !a.displayF ? a.displayF = "inline-block" : a.displayF === "flex" ? a.displayF = "inline-flex" : a.displayF === "grid" && (a.displayF = "inline-grid"), delete a.inlineF), "inlineA" in a && (a.displayA === "block" || !a.displayA ? a.displayA = "inline-block" : a.displayA === "flex" ? a.displayA = "inline-flex" : a.displayA === "grid" && (a.displayA = "inline-grid"), delete a.inlineA), Object.entries(a).forEach(([b, y]) => {
1138
+ n.push(S.get(b, y));
1139
+ }), n;
1140
+ }, [u, m]);
1165
1141
  }
1166
- function te(...u) {
1167
- return u.reduce((t, d) => d ? typeof d == "string" ? (t.push(d), t) : Array.isArray(d) ? (t.push(...te(...d)), t) : (Object.entries(d).forEach(([i, a]) => {
1168
- a && t.push(i);
1169
- }), t) : t, []);
1142
+ function ae(...u) {
1143
+ return u.reduce((r, m) => m ? typeof m == "string" ? (r.push(m), r) : Array.isArray(m) ? (r.push(...ae(...m)), r) : (Object.entries(m).forEach(([n, a]) => {
1144
+ a && r.push(n);
1145
+ }), r) : r, []);
1170
1146
  }
1171
1147
  export {
1172
- I as S,
1173
- _ as T,
1174
- te as c,
1175
- ie as u
1148
+ S,
1149
+ D as T,
1150
+ ae as c,
1151
+ te as u
1176
1152
  };