@cronocode/react-box 1.7.9 → 1.8.1

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