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