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