@cronocode/react-box 1.8.7 → 1.8.8

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.
Files changed (54) hide show
  1. package/README.md +6 -17
  2. package/box.cjs +1 -1
  3. package/box.d.ts +4 -3
  4. package/box.mjs +7 -8
  5. package/components/baseSvg.cjs +1 -1
  6. package/components/baseSvg.d.ts +4 -4
  7. package/components/baseSvg.mjs +10 -12
  8. package/components/button.cjs +1 -1
  9. package/components/button.d.ts +3 -3
  10. package/components/button.mjs +8 -9
  11. package/components/checkbox.cjs +1 -1
  12. package/components/checkbox.d.ts +2 -1
  13. package/components/checkbox.mjs +8 -9
  14. package/components/dataGrid/useGrid.d.ts +1 -0
  15. package/components/dataGrid.cjs +1 -1
  16. package/components/dataGrid.mjs +11 -14
  17. package/components/flex.cjs +1 -1
  18. package/components/flex.d.ts +3 -2
  19. package/components/flex.mjs +6 -8
  20. package/components/form.cjs +1 -1
  21. package/components/form.d.ts +2 -2
  22. package/components/form.mjs +7 -8
  23. package/components/grid.cjs +1 -1
  24. package/components/grid.d.ts +3 -2
  25. package/components/grid.mjs +6 -8
  26. package/components/radioButton.cjs +1 -1
  27. package/components/radioButton.d.ts +3 -2
  28. package/components/radioButton.mjs +6 -7
  29. package/components/textarea.cjs +1 -1
  30. package/components/textarea.d.ts +3 -2
  31. package/components/textarea.mjs +7 -8
  32. package/components/textbox.cjs +1 -1
  33. package/components/textbox.d.ts +3 -2
  34. package/components/textbox.mjs +3 -4
  35. package/components/tooltip.cjs +1 -1
  36. package/components/tooltip.d.ts +3 -2
  37. package/components/tooltip.mjs +7 -9
  38. package/core/boxStyles.d.ts +5 -11
  39. package/core/stylesContext.d.ts +4 -1
  40. package/core/theme.d.ts +1 -0
  41. package/core/types.d.ts +15 -5
  42. package/core/useStyles.cssClass.test.d.ts +1 -0
  43. package/core/useStyles.d.ts +1 -0
  44. package/core/useStyles.styles.test.d.ts +1 -0
  45. package/core/useTheme.d.ts +2 -1
  46. package/core.cjs +15 -15
  47. package/core.mjs +357 -334
  48. package/package.json +16 -17
  49. package/ssg.cjs +65 -65
  50. package/ssg.d.ts +2 -1
  51. package/ssg.mjs +8373 -8390
  52. package/theme.cjs +1 -1
  53. package/theme.d.ts +2 -1
  54. package/theme.mjs +2 -4
package/core.mjs CHANGED
@@ -1,72 +1,72 @@
1
- import { useMemo as X, useLayoutEffect as J, useEffect as Q } from "react";
2
- import { O as Z } from "./utils.mjs";
3
- var s;
4
- ((l) => {
5
- ((u) => {
6
- function i(o, h) {
7
- return `${o}${h.replace("/", "-")}`;
1
+ import { useMemo as Y, useLayoutEffect as se, useEffect as ae } from "react";
2
+ import { O as J } from "./utils.mjs";
3
+ var e;
4
+ ((s) => {
5
+ ((l) => {
6
+ function r(t, c) {
7
+ return `${t}${c.replace("/", "-")}`;
8
8
  }
9
- u.fraction = i;
10
- function m(o) {
11
- return [`${o} path`, `${o} circle`, `${o} rect`, `${o} line`];
9
+ l.fraction = r;
10
+ function n(t) {
11
+ return [`${t} path`, `${t} circle`, `${t} rect`, `${t} line`];
12
12
  }
13
- u.svg = m;
14
- })(l.ClassName || (l.ClassName = {})), ((u) => {
15
- function i(e, a) {
13
+ l.svg = n;
14
+ })(s.ClassName || (s.ClassName = {})), ((l) => {
15
+ function r(o, a) {
16
16
  return `${a / 4}rem`;
17
17
  }
18
- u.rem = i;
19
- function m(e, a) {
18
+ l.rem = r;
19
+ function n(o, a) {
20
20
  return `${a}px`;
21
21
  }
22
- u.px = m;
23
- function o(e, a) {
24
- const [t, v] = a.split("/");
25
- return `${+t / +v * 100}%`;
22
+ l.px = n;
23
+ function t(o, a) {
24
+ const [u, v] = a.split("/");
25
+ return `${+u / +v * 100}%`;
26
26
  }
27
- u.fraction = o;
28
- function h(e, a) {
27
+ l.fraction = t;
28
+ function c(o, a) {
29
29
  switch (a) {
30
30
  case "fit":
31
31
  return "100%";
32
32
  case "fit-screen":
33
- return e.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
33
+ return o.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
34
34
  default:
35
35
  return a;
36
36
  }
37
37
  }
38
- u.widthHeight = h;
39
- function V(e) {
40
- return (a, t) => `var(--${e}${t});`;
38
+ l.widthHeight = c;
39
+ function w(o) {
40
+ return (a, u) => `var(--${o}${u});`;
41
41
  }
42
- u.variables = V;
43
- function T(e) {
44
- return (a, t) => `var(--${e}${t});`;
42
+ l.variables = w;
43
+ function E(o) {
44
+ return (a, u) => `var(--${o}${u});`;
45
45
  }
46
- u.svgVariables = T;
47
- function C(e, a) {
46
+ l.svgVariables = E;
47
+ function C(o, a) {
48
48
  return `repeat(${a},minmax(0,1fr))`;
49
49
  }
50
- u.gridColumns = C;
51
- function c(e, a) {
50
+ l.gridColumns = C;
51
+ function f(o, a) {
52
52
  return a === "full-row" ? "1/-1" : `span ${a}/span ${a}`;
53
53
  }
54
- u.gridColumn = c;
55
- function r(e, a) {
54
+ l.gridColumn = f;
55
+ function b(o, a) {
56
56
  return `${a}ms`;
57
57
  }
58
- u.ms = r;
59
- function b(e, a) {
58
+ l.ms = b;
59
+ function g(o, a) {
60
60
  return `${a}deg`;
61
61
  }
62
- u.rotate = b;
63
- function f(e, a) {
62
+ l.rotate = g;
63
+ function h(o, a) {
64
64
  return a === "xAxis" ? "-1 1" : "1 -1";
65
65
  }
66
- u.flip = f;
67
- })(l.Value || (l.Value = {}));
68
- })(s || (s = {}));
69
- const n = [
66
+ l.flip = h;
67
+ })(s.Value || (s.Value = {}));
68
+ })(e || (e = {}));
69
+ const i = [
70
70
  0,
71
71
  1,
72
72
  2,
@@ -125,7 +125,7 @@ const n = [
125
125
  200,
126
126
  250,
127
127
  300
128
- ], ee = [
128
+ ], le = [
129
129
  -1,
130
130
  -2,
131
131
  -3,
@@ -171,7 +171,7 @@ const n = [
171
171
  -92,
172
172
  -96,
173
173
  -100
174
- ], d = [...n, ...ee], P = ["solid", "dashed", "dotted", "double", "groove", "ridge", "inset", "outset", "none", "hidden"], _ = ["auto", "hidden", "scroll", "visible"], S = [
174
+ ], d = [...i, ...le], F = ["solid", "dashed", "dotted", "double", "groove", "ridge", "inset", "outset", "none", "hidden"], G = ["auto", "hidden", "scroll", "visible"], S = [
175
175
  "1/2",
176
176
  "1/3",
177
177
  "2/3",
@@ -198,7 +198,7 @@ const n = [
198
198
  "9/12",
199
199
  "10/12",
200
200
  "11/12"
201
- ], z = ["fit", "fit-screen", "auto", "fit-content", "max-content", "min-content"], W = ["auto", "flex-start", "flex-end", "center", "baseline", "stretch"], N = {
201
+ ], z = ["fit", "fit-screen", "auto", "fit-content", "max-content", "min-content"], W = ["auto", "flex-start", "flex-end", "center", "baseline", "stretch"], V = {
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"],
@@ -222,61 +222,61 @@ const n = [
222
222
  },
223
223
  width: {
224
224
  cssNames: ["width"],
225
- values1: { values: z, formatValue: s.Value.widthHeight },
226
- values2: { values: n, formatValue: s.Value.rem },
225
+ values1: { values: z, formatValue: e.Value.widthHeight },
226
+ values2: { values: i, formatValue: e.Value.rem },
227
227
  values3: {
228
228
  values: S,
229
- formatValue: s.Value.fraction
229
+ formatValue: e.Value.fraction
230
230
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
231
231
  }
232
232
  },
233
233
  minWidth: {
234
234
  cssNames: ["min-width"],
235
- values1: { values: z, formatValue: s.Value.widthHeight },
236
- values2: { values: n, formatValue: s.Value.rem },
235
+ values1: { values: z, formatValue: e.Value.widthHeight },
236
+ values2: { values: i, formatValue: e.Value.rem },
237
237
  values3: {
238
238
  values: S,
239
- formatValue: s.Value.fraction
239
+ formatValue: e.Value.fraction
240
240
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
241
241
  }
242
242
  },
243
243
  maxWidth: {
244
244
  cssNames: ["max-width"],
245
- values1: { values: z, formatValue: s.Value.widthHeight },
246
- values2: { values: n, formatValue: s.Value.rem },
245
+ values1: { values: z, formatValue: e.Value.widthHeight },
246
+ values2: { values: i, formatValue: e.Value.rem },
247
247
  values3: {
248
248
  values: S,
249
- formatValue: s.Value.fraction
249
+ formatValue: e.Value.fraction
250
250
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
251
251
  }
252
252
  },
253
253
  height: {
254
254
  cssNames: ["height"],
255
- values1: { values: z, formatValue: s.Value.widthHeight },
256
- values2: { values: n, formatValue: s.Value.rem },
255
+ values1: { values: z, formatValue: e.Value.widthHeight },
256
+ values2: { values: i, formatValue: e.Value.rem },
257
257
  values3: {
258
258
  values: S,
259
- formatValue: s.Value.fraction
259
+ formatValue: e.Value.fraction
260
260
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
261
261
  }
262
262
  },
263
263
  minHeight: {
264
264
  cssNames: ["min-height"],
265
- values1: { values: z, formatValue: s.Value.widthHeight },
266
- values2: { values: n, formatValue: s.Value.rem },
265
+ values1: { values: z, formatValue: e.Value.widthHeight },
266
+ values2: { values: i, formatValue: e.Value.rem },
267
267
  values3: {
268
268
  values: S,
269
- formatValue: s.Value.fraction
269
+ formatValue: e.Value.fraction
270
270
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
271
271
  }
272
272
  },
273
273
  maxHeight: {
274
274
  cssNames: ["max-height"],
275
- values1: { values: z, formatValue: s.Value.widthHeight },
276
- values2: { values: n, formatValue: s.Value.rem },
275
+ values1: { values: z, formatValue: e.Value.widthHeight },
276
+ values2: { values: i, formatValue: e.Value.rem },
277
277
  values3: {
278
278
  values: S,
279
- formatValue: s.Value.fraction
279
+ formatValue: e.Value.fraction
280
280
  // formatClassName: BoxStylesFormatters.ClassName.fraction,
281
281
  }
282
282
  },
@@ -288,217 +288,217 @@ const n = [
288
288
  },
289
289
  top: {
290
290
  cssNames: ["top"],
291
- values1: { values: d, formatValue: s.Value.rem },
291
+ values1: { values: d, formatValue: e.Value.rem },
292
292
  values2: { values: [] },
293
293
  values3: { values: [] }
294
294
  },
295
295
  right: {
296
296
  cssNames: ["right"],
297
- values1: { values: d, formatValue: s.Value.rem },
297
+ values1: { values: d, formatValue: e.Value.rem },
298
298
  values2: { values: [] },
299
299
  values3: { values: [] }
300
300
  },
301
301
  bottom: {
302
302
  cssNames: ["bottom"],
303
- values1: { values: d, formatValue: s.Value.rem },
303
+ values1: { values: d, formatValue: e.Value.rem },
304
304
  values2: { values: [] },
305
305
  values3: { values: [] }
306
306
  },
307
307
  left: {
308
308
  cssNames: ["left"],
309
- values1: { values: d, formatValue: s.Value.rem },
309
+ values1: { values: d, formatValue: e.Value.rem },
310
310
  values2: { values: [] },
311
311
  values3: { values: [] }
312
312
  },
313
313
  inset: {
314
314
  cssNames: ["inset"],
315
- values1: { values: d, formatValue: s.Value.rem },
315
+ values1: { values: d, formatValue: e.Value.rem },
316
316
  values2: { values: [] },
317
317
  values3: { values: [] }
318
318
  },
319
319
  m: {
320
320
  cssNames: ["margin"],
321
- values1: { values: d, formatValue: s.Value.rem },
321
+ values1: { values: d, formatValue: e.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: s.Value.rem },
327
+ values1: { values: d, formatValue: e.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: s.Value.rem },
333
+ values1: { values: d, formatValue: e.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: s.Value.rem },
339
+ values1: { values: d, formatValue: e.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: s.Value.rem },
345
+ values1: { values: d, formatValue: e.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: s.Value.rem },
351
+ values1: { values: d, formatValue: e.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: s.Value.rem },
357
+ values1: { values: d, formatValue: e.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: s.Value.rem },
363
+ values1: { values: d, formatValue: e.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: s.Value.rem },
369
+ values1: { values: d, formatValue: e.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: s.Value.rem },
375
+ values1: { values: d, formatValue: e.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: s.Value.rem },
381
+ values1: { values: d, formatValue: e.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: s.Value.rem },
387
+ values1: { values: d, formatValue: e.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: s.Value.rem },
393
+ values1: { values: d, formatValue: e.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: s.Value.rem },
399
+ values1: { values: d, formatValue: e.Value.rem },
400
400
  values2: { values: [] },
401
401
  values3: { values: [] }
402
402
  },
403
403
  b: {
404
404
  cssNames: ["border-width"],
405
- values1: { values: n, formatValue: s.Value.px },
405
+ values1: { values: i, formatValue: e.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: s.Value.px },
411
+ values1: { values: d, formatValue: e.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: s.Value.px },
417
+ values1: { values: d, formatValue: e.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: s.Value.px },
423
+ values1: { values: d, formatValue: e.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: s.Value.px },
429
+ values1: { values: d, formatValue: e.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: s.Value.px },
435
+ values1: { values: d, formatValue: e.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: s.Value.px },
441
+ values1: { values: d, formatValue: e.Value.px },
442
442
  values2: { values: [] },
443
443
  values3: { values: [] }
444
444
  },
445
445
  borderStyle: {
446
446
  cssNames: ["border-style"],
447
- values1: { values: P },
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: n, formatValue: s.Value.rem },
453
+ values1: { values: i, formatValue: e.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: n, formatValue: s.Value.rem },
459
+ values1: { values: i, formatValue: e.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: n, formatValue: s.Value.rem },
465
+ values1: { values: i, formatValue: e.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: n, formatValue: s.Value.rem },
471
+ values1: { values: i, formatValue: e.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: n, formatValue: s.Value.rem },
477
+ values1: { values: i, formatValue: e.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: n, formatValue: s.Value.rem },
483
+ values1: { values: i, formatValue: e.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: n, formatValue: s.Value.rem },
489
+ values1: { values: i, formatValue: e.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: n, formatValue: s.Value.rem },
495
+ values1: { values: i, formatValue: e.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: n, formatValue: s.Value.rem },
501
+ values1: { values: i, formatValue: e.Value.rem },
502
502
  values2: { values: [] },
503
503
  values3: { values: [] }
504
504
  },
@@ -557,19 +557,19 @@ const n = [
557
557
  },
558
558
  overflow: {
559
559
  cssNames: ["overflow"],
560
- values1: { values: _ },
560
+ values1: { values: G },
561
561
  values2: { values: [] },
562
562
  values3: { values: [] }
563
563
  },
564
564
  overflowX: {
565
565
  cssNames: ["overflow-x"],
566
- values1: { values: _ },
566
+ values1: { values: G },
567
567
  values2: { values: [] },
568
568
  values3: { values: [] }
569
569
  },
570
570
  overflowY: {
571
571
  cssNames: ["overflow-y"],
572
- values1: { values: _ },
572
+ values1: { values: G },
573
573
  values2: { values: [] },
574
574
  values3: { values: [] }
575
575
  },
@@ -581,7 +581,7 @@ const n = [
581
581
  },
582
582
  fontSize: {
583
583
  cssNames: ["font-size"],
584
- values1: { values: n, formatValue: s.Value.px },
584
+ values1: { values: i, formatValue: e.Value.px },
585
585
  values2: { values: ["inherit"] },
586
586
  values3: { values: [] }
587
587
  },
@@ -599,13 +599,13 @@ const n = [
599
599
  },
600
600
  letterSpacing: {
601
601
  cssNames: ["letter-spacing"],
602
- values1: { values: n, formatValue: s.Value.px },
602
+ values1: { values: i, formatValue: e.Value.px },
603
603
  values2: { values: [] },
604
604
  values3: { values: [] }
605
605
  },
606
606
  lineHeight: {
607
607
  cssNames: ["line-height"],
608
- values1: { values: n, formatValue: s.Value.px },
608
+ values1: { values: i, formatValue: e.Value.px },
609
609
  values2: { values: ["font-size"], formatValue: () => "1" },
610
610
  values3: { values: [] }
611
611
  },
@@ -694,37 +694,37 @@ const n = [
694
694
  },
695
695
  gap: {
696
696
  cssNames: ["gap"],
697
- values1: { values: n, formatValue: s.Value.rem },
697
+ values1: { values: i, formatValue: e.Value.rem },
698
698
  values2: { values: [] },
699
699
  values3: { values: [] }
700
700
  },
701
701
  rowGap: {
702
702
  cssNames: ["row-gap"],
703
- values1: { values: n, formatValue: s.Value.rem },
703
+ values1: { values: i, formatValue: e.Value.rem },
704
704
  values2: { values: [] },
705
705
  values3: { values: [] }
706
706
  },
707
707
  columnGap: {
708
708
  cssNames: ["column-gap"],
709
- values1: { values: n, formatValue: s.Value.rem },
709
+ values1: { values: i, formatValue: e.Value.rem },
710
710
  values2: { values: [] },
711
711
  values3: { values: [] }
712
712
  },
713
713
  order: {
714
714
  cssNames: ["order"],
715
- values1: { values: n },
715
+ values1: { values: i },
716
716
  values2: { values: [] },
717
717
  values3: { values: [] }
718
718
  },
719
719
  flexGrow: {
720
720
  cssNames: ["flex-grow"],
721
- values1: { values: n },
721
+ values1: { values: i },
722
722
  values2: { values: [] },
723
723
  values3: { values: [] }
724
724
  },
725
725
  flexShrink: {
726
726
  cssNames: ["flex-shrink"],
727
- values1: { values: n },
727
+ values1: { values: i },
728
728
  values2: { values: [] },
729
729
  values3: { values: [] }
730
730
  },
@@ -742,43 +742,43 @@ const n = [
742
742
  },
743
743
  gridColumns: {
744
744
  cssNames: ["grid-template-columns"],
745
- values1: { values: n, formatValue: s.Value.gridColumns },
745
+ values1: { values: i, formatValue: e.Value.gridColumns },
746
746
  values2: { values: [] },
747
747
  values3: { values: [] }
748
748
  },
749
749
  colSpan: {
750
750
  cssNames: ["grid-column"],
751
- values1: { values: n, formatValue: s.Value.gridColumn },
752
- values2: { values: ["full-row"], formatValue: s.Value.gridColumn },
751
+ values1: { values: i, formatValue: e.Value.gridColumn },
752
+ values2: { values: ["full-row"], formatValue: e.Value.gridColumn },
753
753
  values3: { values: [] }
754
754
  },
755
755
  colStart: {
756
756
  cssNames: ["grid-column-start"],
757
- values1: { values: n },
757
+ values1: { values: i },
758
758
  values2: { values: [] },
759
759
  values3: { values: [] }
760
760
  },
761
761
  colEnd: {
762
762
  cssNames: ["grid-column-end"],
763
- values1: { values: n },
763
+ values1: { values: i },
764
764
  values2: { values: [] },
765
765
  values3: { values: [] }
766
766
  },
767
767
  outline: {
768
768
  cssNames: ["outline-width"],
769
- values1: { values: n, formatValue: s.Value.px },
769
+ values1: { values: i, formatValue: e.Value.px },
770
770
  values2: { values: [] },
771
771
  values3: { values: [] }
772
772
  },
773
773
  outlineStyle: {
774
774
  cssNames: ["outline-style"],
775
- values1: { values: P },
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: n, formatValue: s.Value.px },
781
+ values1: { values: i, formatValue: e.Value.px },
782
782
  values2: { values: [] },
783
783
  values3: { values: [] }
784
784
  },
@@ -792,7 +792,7 @@ const n = [
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: s.Value.ms
795
+ formatValue: e.Value.ms
796
796
  },
797
797
  values2: { values: [] },
798
798
  values3: { values: [] }
@@ -829,39 +829,39 @@ const n = [
829
829
  },
830
830
  rotate: {
831
831
  cssNames: ["rotate"],
832
- values1: { values: [0, 90, 180, 270, -90, -180, -270], formatValue: s.Value.rotate },
832
+ values1: { values: [0, 90, 180, 270, -90, -180, -270], formatValue: e.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: s.Value.flip },
838
+ values1: { values: ["xAxis", "yAxis"], formatValue: e.Value.flip },
839
839
  values2: { values: [] },
840
840
  values3: { values: [] }
841
841
  }
842
842
  }, M = {
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
- }, G = {
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
+ }, K = {
851
851
  fill: {
852
852
  cssNames: ["fill"],
853
- formatValue: s.Value.svgVariables("color"),
854
- formatSelector: s.ClassName.svg
853
+ formatValue: e.Value.svgVariables("color"),
854
+ formatSelector: e.ClassName.svg
855
855
  },
856
856
  stroke: {
857
857
  cssNames: ["stroke"],
858
- formatValue: s.Value.svgVariables("color"),
859
- formatSelector: s.ClassName.svg
858
+ formatValue: e.Value.svgVariables("color"),
859
+ formatSelector: e.ClassName.svg
860
860
  }
861
- }, se = [
862
- "H",
863
- "F",
864
- "A",
861
+ }, P = [
862
+ "Hover",
863
+ "Focus",
864
+ "Active",
865
865
  "Checked",
866
866
  "Indeterminate",
867
867
  "Valid",
@@ -869,131 +869,146 @@ const n = [
869
869
  "Required",
870
870
  "Optional",
871
871
  "Disabled"
872
- ], E = ["sm", "md", "lg", "xl", "xxl"], ae = {
872
+ ], H = ["sm", "md", "lg", "xl", "xxl"], ue = {
873
873
  sm: 640,
874
874
  md: 768,
875
875
  lg: 1024,
876
876
  xl: 1280,
877
877
  xxl: 1536
878
- }, H = {
879
- hover: { className: "_h" },
880
- focus: { className: "_f" }
881
878
  };
882
- Object.keys(M).forEach((l) => {
883
- N[l] = M[l], N[l].isThemeStyle = !0;
879
+ Object.keys(M).forEach((s) => {
880
+ V[s] = M[s], V[s].isThemeStyle = !0;
884
881
  });
885
- Object.keys(G).forEach((l) => {
886
- N[l] = G[l], N[l].isThemeStyle = !0;
882
+ Object.keys(K).forEach((s) => {
883
+ V[s] = K[s], V[s].isThemeStyle = !0;
887
884
  });
888
- let F = Object.keys(N);
889
- se.forEach((l) => {
890
- F.forEach((u) => {
891
- N[`${u}${l}`] = { ...N[u], pseudoSuffix: l };
885
+ let L = Object.keys(V);
886
+ P.forEach((s) => {
887
+ L.forEach((l) => {
888
+ V[`${l}${s}`] = { ...V[l], pseudoSuffix: s };
892
889
  });
893
890
  });
894
- F = Object.keys(N);
895
- E.forEach((l) => {
896
- F.forEach((u) => {
897
- N[`${l}${u}`] = { ...N[u], breakpoint: l };
891
+ L = Object.keys(V);
892
+ H.forEach((s) => {
893
+ L.forEach((l) => {
894
+ V[`${s}${l}`] = { ...V[l], breakpoint: s };
898
895
  });
899
896
  });
900
- class le {
897
+ function te(s, l, r) {
898
+ const n = Object.entries(V).filter(
899
+ ([t, c]) => c.pseudoSuffix === s && !c.customPseudoSuffix && !(`${t}${l}` in V)
900
+ ).map(([t]) => t);
901
+ return n.forEach((t) => {
902
+ V[`${t}${l}`] = {
903
+ ...V[t],
904
+ customPseudoSuffix: r + l
905
+ };
906
+ }), n.map((t) => `${t}${l}`);
907
+ }
908
+ class oe {
901
909
  constructor() {
902
910
  this._index = 0, this._cache = {};
903
911
  }
904
- getIdentity(u) {
905
- return this._cache[u] || (this._cache[u] = this.getByIndex(this._index++)), this._cache[u];
912
+ getIdentity(l) {
913
+ return this._cache[l] || (this._cache[l] = this.getByIndex(this._index++)), this._cache[l];
906
914
  }
907
- getByIndex(u) {
908
- const { first: i, next: m } = ue, o = u - i.length;
909
- if (o < 0)
910
- return i[u];
911
- const h = Math.floor(o / m.length), V = o - h * m.length;
912
- return this.getByIndex(h) + m[V];
915
+ getByIndex(l) {
916
+ const { first: r, next: n } = re, t = l - r.length;
917
+ if (t < 0)
918
+ return r[l];
919
+ const c = Math.floor(t / n.length), w = t - c * n.length;
920
+ return this.getByIndex(c) + n[w];
913
921
  }
914
922
  }
915
- const ue = {
923
+ const re = {
916
924
  first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
917
925
  next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
918
926
  };
919
927
  var D;
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;}}
928
+ ((s) => {
929
+ s.boxClassName = "_box", s.svgClassName = "_svg", s.cronoStylesElementId = "crono-styles";
930
+ 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;}}
923
931
  html{font-size: 16px;font-family: Arial, sans-serif;}
924
932
  body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}
925
933
  a,ul{all: unset;}
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 le(), m = Object.keys(N);
929
- let o = !0, h = m.reduce(
930
- (e, a) => (e[a] = /* @__PURE__ */ new Set(), e),
934
+ .${s.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;}
935
+ .${s.svgClassName}{transition: all var(--svgTransitionTime);}.${s.svgClassName} path,.${s.svgClassName} circle,.${s.svgClassName} rect,.${s.svgClassName} line {transition: all var(--svgTransitionTime);}
936
+ `, r = new oe(), n = Object.keys(V);
937
+ let t = !0, c = n.reduce(
938
+ (a, u) => (a[u] = /* @__PURE__ */ new Set(), a),
931
939
  {}
932
940
  );
933
- function V(e, a, t) {
934
- if (e in N)
935
- return c(e, a, t);
936
- if (e in H && a)
937
- return H[e].className;
941
+ function w(a, u, v) {
942
+ if (a in V)
943
+ return b(a, u, v);
944
+ if (["disabledGroup", "hoverGroup", "focusGroup", "activeGroup"].includes(a))
945
+ return a + u;
938
946
  }
939
- l.get = V;
940
- function T() {
941
- if (o) {
942
- let e = r([u]);
943
- e = r(e, "H"), e = r(e, "F"), e = r(e, "A"), e = r(e, "Checked"), e = r(e, "Indeterminate"), e = r(e, "Valid"), e = r(e, "Invalid"), e = r(e, "Required"), e = r(e, "Disabled"), E.forEach((t) => {
944
- e.push(`@media(min-width: ${ae[t]}px){`), e = r(e, void 0, t), e = r(e, "H", t), e = r(e, "F", t), e = r(e, "A", t), e = r(e, "Checked", t), e = r(e, "Indeterminate", t), e = r(e, "Valid", t), e = r(e, "Invalid", t), e = r(e, "Required", t), e = r(e, "Disabled", t), e.push("}");
947
+ s.get = w;
948
+ function E() {
949
+ if (t) {
950
+ let a = g([l]);
951
+ P.forEach((v) => {
952
+ a = g(a, v);
953
+ }), H.forEach((v) => {
954
+ a.push(`@media(min-width: ${ue[v]}px){`), a = g(a, void 0, v), P.forEach((p) => {
955
+ a = g(a, p, v);
956
+ }), a.push("}");
945
957
  });
946
- const a = f();
947
- a.innerHTML = e.join(""), o = !1;
958
+ const u = o();
959
+ u.innerHTML = a.join(""), t = !1;
948
960
  }
949
961
  }
950
- l.flush = T;
962
+ s.flush = E;
951
963
  function C() {
952
- h = m.reduce(
953
- (e, a) => (e[a] = /* @__PURE__ */ new Set(), e),
964
+ c = n.reduce(
965
+ (u, v) => (u[v] = /* @__PURE__ */ new Set(), u),
954
966
  {}
955
967
  );
968
+ const a = o();
969
+ a.innerHTML = "";
970
+ }
971
+ s.clear = C;
972
+ function f(a, u, v) {
973
+ te(a, u, v).forEach((y) => {
974
+ c[y] = /* @__PURE__ */ new Set();
975
+ });
956
976
  }
957
- l.clear = C;
958
- function c(e, a, t) {
959
- const v = (t ?? "") + e;
960
- h[v].has(a) || (o = !0, h[v].add(a));
961
- const x = `${v}${a}`;
962
- return i.getIdentity(x);
977
+ s.addCustomPseudoClass = f;
978
+ function b(a, u, v) {
979
+ const p = (v ?? "") + a;
980
+ c[p].has(u) || (t = !0, c[p].add(u));
981
+ const y = `${p}${u}`;
982
+ return process.env.NODE_ENV === "test" ? y : r.getIdentity(y);
963
983
  }
964
- function r(e, a, t) {
965
- return Object.entries(h).filter(
966
- ([x]) => {
967
- var $, j;
968
- return (($ = N[x]) == null ? void 0 : $.pseudoSuffix) === a && ((j = N[x]) == null ? void 0 : j.breakpoint) === t;
984
+ function g(a, u, v) {
985
+ return Object.entries(c).filter(
986
+ ([y, x]) => {
987
+ var T, j;
988
+ return ((T = V[y]) == null ? void 0 : T.pseudoSuffix) === u && ((j = V[y]) == null ? void 0 : j.breakpoint) === v && x.size > 0;
969
989
  }
970
- ).reduce((x, [$, j]) => (j.forEach((O) => {
971
- var L;
972
- const g = b($, O), y = `.${c($, O)}`;
973
- let w = [];
974
- a ? a === "H" ? w = [
975
- ...v(`${y}:hover`, g),
976
- ...v(`.${H.hover.className}:hover>${y}`, g)
977
- ] : a === "F" ? w = [
978
- ...v(`${y}:focus-within`, g),
979
- ...v(`.${H.focus.className}:focus-within>${y}`, g)
980
- ] : a === "A" ? w = v(`${y}:active`, g) : a === "Checked" ? w = v(`${y}:checked`, g) : a === "Indeterminate" ? w = v(`${y}:indeterminate`, g) : a === "Valid" ? w = v(`${y}:valid`, g) : a === "Invalid" ? w = v(`${y}:invalid`, g) : a === "Required" ? w = v(`${y}:required`, g) : a === "Optional" ? w = v(`${y}:optional`, g) : a === "Disabled" && (w = v(`${y}:disabled`, g)) : w = v(y, g);
981
- const B = ((L = g.formatValue) == null ? void 0 : L.call(g, $, O)) ?? O, k = N[$].cssNames.map((Y) => `${Y}:${B};`).join("");
982
- x.push(`${w.join(",")}{${k}}`);
983
- }), x), e);
984
- function v(x, $) {
985
- return $.formatSelector ? $.formatSelector(x) : [x];
990
+ ).reduce((y, [x, T]) => (T.forEach((j) => {
991
+ var q;
992
+ const N = V[x], $ = h(N, j), k = `.${b(x, j)}`;
993
+ let m = [];
994
+ u ? u === "Hover" ? m = p(k, N, $, "hover") : u === "Focus" ? m = p(k, N, $, "focus-within") : u === "Active" ? m = p(k, N, $, "active") : u === "Checked" ? m = p(k, N, $, "checked") : u === "Indeterminate" ? m = p(k, N, $, "indeterminate") : u === "Valid" ? m = p(k, N, $, "valid") : u === "Invalid" ? m = p(k, N, $, "invalid") : u === "Required" ? m = p(k, N, $, "required") : u === "Optional" ? m = p(k, N, $, "optional") : u === "Disabled" && (m = p(k, N, $, "disabled")) : m = p(k, N, $);
995
+ const O = ((q = $.formatValue) == null ? void 0 : q.call($, x, j)) ?? j, Z = V[x].cssNames.map((ee) => `${ee}:${O};`).join("");
996
+ y.push(`${m.join(",")}{${Z}}`);
997
+ }), y), a);
998
+ function p(y, x, T, j) {
999
+ let N = y;
1000
+ return j && (N = x.customPseudoSuffix ? `.${x.customPseudoSuffix}:${j} ${y}` : `${y}:${j}`), T.formatSelector ? T.formatSelector(N) : [N];
986
1001
  }
987
1002
  }
988
- function b(e, a) {
989
- const t = N[e];
990
- return t.isThemeStyle ? t : t.values1.values.includes(a) ? t.values1 : t.values2.values.includes(a) ? t.values2 : t.values3;
1003
+ function h(a, u) {
1004
+ return a.isThemeStyle ? a : a.values1.values.includes(u) ? a.values1 : a.values2.values.includes(u) ? a.values2 : a.values3;
991
1005
  }
992
- function f() {
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;
1006
+ function o() {
1007
+ const u = typeof window < "u" && typeof window.document < "u" ? window.document : global.document;
1008
+ let v = u.getElementById(s.cronoStylesElementId);
1009
+ return v || (v = u.createElement("style"), v.setAttribute("id", s.cronoStylesElementId), v.setAttribute("type", "text/css"), u.head.insertBefore(v, u.head.firstChild)), v;
996
1010
  }
1011
+ s.getElement = o;
997
1012
  })(D || (D = {}));
998
1013
  const I = D, A = {
999
1014
  button: {
@@ -1036,10 +1051,10 @@ const I = D, A = {
1036
1051
  borderRadius: 1
1037
1052
  }
1038
1053
  }
1039
- }, te = {
1040
- H: "hover",
1041
- F: "focus",
1042
- A: "active",
1054
+ }, ne = {
1055
+ Hover: "hover",
1056
+ Focus: "focus",
1057
+ Active: "active",
1043
1058
  Checked: "checked",
1044
1059
  Indeterminate: "indeterminate",
1045
1060
  Valid: "valid",
@@ -1048,29 +1063,29 @@ const I = D, A = {
1048
1063
  Optional: "optional",
1049
1064
  Disabled: "disabled"
1050
1065
  };
1051
- var q;
1052
- ((l) => {
1053
- l.Styles = {};
1054
- function u(c) {
1055
- l.Styles = o(A), l.Styles = m(c);
1066
+ var _;
1067
+ ((s) => {
1068
+ s.Styles = {};
1069
+ function l(f) {
1070
+ s.Styles = t(A), s.Styles = n(f);
1056
1071
  }
1057
- l.setup = u;
1058
- function i(c, r) {
1059
- const { colors: b = {}, shadows: f = {}, backgrounds: e = {}, backgroundImages: a = {} } = c;
1060
- b.none = "none", f.none = "none", e.none = "none", a.none = "none";
1061
- const t = Object.entries(b).map(([p, k]) => `--color${p}: ${k};`).join(`
1062
- `), v = Object.entries(f).map(([p, k]) => `--shadow${p}: ${k};`).join(`
1063
- `), x = Object.entries(e).map(([p, k]) => `--background${p}: ${k};`).join(`
1064
- `), $ = Object.entries(a).map(([p, k]) => `--backgroundImage${p}: ${k};`).join(`
1065
- `), j = [":root {"];
1066
- t && j.push(` ${t}`), v && j.push(` ${v}`), x && j.push(` ${x}`), $ && j.push(` ${$}`), j.push("}");
1067
- const O = Object.keys(b).map((p) => `'${p}'`).join(" | "), g = Object.keys(e).map((p) => `'${p}'`).join(" | "), y = Object.keys(a).map((p) => `'${p}'`).join(" | "), w = Object.keys(f).map((p) => `'${p}'`).join(" | "), B = `import '@cronocode/react-box';
1072
+ s.setup = l;
1073
+ function r(f, b) {
1074
+ const { colors: g = {}, shadows: h = {}, backgrounds: o = {}, backgroundImages: a = {} } = f;
1075
+ g.none = "none", h.none = "none", o.none = "none", a.none = "none";
1076
+ const u = Object.entries(g).map(([m, O]) => `--color${m}: ${O};`).join(`
1077
+ `), v = Object.entries(h).map(([m, O]) => `--shadow${m}: ${O};`).join(`
1078
+ `), p = Object.entries(o).map(([m, O]) => `--background${m}: ${O};`).join(`
1079
+ `), y = Object.entries(a).map(([m, O]) => `--backgroundImage${m}: ${O};`).join(`
1080
+ `), x = [":root {"];
1081
+ u && x.push(` ${u}`), v && x.push(` ${v}`), p && x.push(` ${p}`), y && x.push(` ${y}`), x.push("}");
1082
+ const T = Object.keys(g).map((m) => `'${m}'`).join(" | "), j = Object.keys(o).map((m) => `'${m}'`).join(" | "), N = Object.keys(a).map((m) => `'${m}'`).join(" | "), $ = Object.keys(h).map((m) => `'${m}'`).join(" | "), k = `import '@cronocode/react-box';
1068
1083
 
1069
- declare module '${(r == null ? void 0 : r.namespacePath) ?? "@cronocode/react-box/core/types"}' {
1070
- type ColorType = ${O};
1071
- type BackgroundType = ${g};
1072
- type BackgroundImageType = ${y};
1073
- type ShadowType = ${w};
1084
+ declare module '${(b == null ? void 0 : b.namespacePath) ?? "@cronocode/react-box/core/types"}' {
1085
+ type ColorType = ${T};
1086
+ type BackgroundType = ${j};
1087
+ type BackgroundImageType = ${N};
1088
+ type ShadowType = ${$};
1074
1089
 
1075
1090
  namespace Augmented {
1076
1091
  interface BoxProps {
@@ -1091,121 +1106,129 @@ var q;
1091
1106
  }
1092
1107
  `;
1093
1108
  return {
1094
- variables: j.join(`
1109
+ variables: x.join(`
1095
1110
  `),
1096
- boxDts: B
1111
+ boxDts: k
1097
1112
  };
1098
1113
  }
1099
- l.setupAugmentedProps = i;
1100
- function m(c) {
1101
- const r = o(c);
1102
- return Object.keys(A).forEach((f) => {
1103
- const e = r[f], a = A[f];
1104
- e ? e.styles = { ...a.styles, ...e.styles } : r[f] = A[f];
1105
- }), r;
1114
+ s.setupAugmentedProps = r;
1115
+ function n(f) {
1116
+ const b = t(f);
1117
+ return Object.keys(A).forEach((h) => {
1118
+ const o = b[h], a = A[h];
1119
+ o ? o.styles = { ...a.styles, ...o.styles } : b[h] = A[h];
1120
+ }), b;
1106
1121
  }
1107
- function o(c) {
1108
- return h(c), T(c), c;
1122
+ function t(f) {
1123
+ return c(f), E(f), f;
1109
1124
  }
1110
- function h(c) {
1111
- if (!c.components)
1125
+ function c(f) {
1126
+ if (!f.components)
1112
1127
  return;
1113
- const r = Object.keys(c.components);
1114
- for (const b of r) {
1115
- const f = c.components[b], e = V(b, f);
1116
- delete f.children;
1117
- for (const a of e) {
1118
- const [t, v] = a;
1119
- c.components[t] = v;
1128
+ const b = Object.keys(f.components);
1129
+ for (const g of b) {
1130
+ const h = f.components[g], o = w(g, h);
1131
+ delete h.children;
1132
+ for (const a of o) {
1133
+ const [u, v] = a;
1134
+ f.components[u] = v;
1120
1135
  }
1121
1136
  }
1122
1137
  }
1123
- function V(c, r) {
1124
- if (!r.children)
1138
+ function w(f, b) {
1139
+ if (!b.children)
1125
1140
  return [];
1126
- const b = Object.keys(r.children), f = [];
1127
- for (const e of b) {
1128
- const a = `${c}.${e}`, t = r.children[e], v = V(a, t);
1129
- f.push(...v), delete t.children, f.push([a, t]);
1141
+ const g = Object.keys(b.children), h = [];
1142
+ for (const o of g) {
1143
+ const a = `${f}.${o}`, u = b.children[o], v = w(a, u);
1144
+ h.push(...v), delete u.children, h.push([a, u]);
1130
1145
  }
1131
- return f;
1146
+ return h;
1132
1147
  }
1133
- function T(c) {
1134
- const { components: r, ...b } = c, f = Object.values(b);
1135
- r && f.push(...Object.values(r));
1136
- for (const e of f)
1137
- C(e.styles), E.forEach((a) => {
1138
- if (a in e.styles) {
1139
- const t = e.styles[a];
1140
- C(t);
1148
+ function E(f) {
1149
+ const { components: b, ...g } = f, h = Object.values(g);
1150
+ b && h.push(...Object.values(b));
1151
+ for (const o of h)
1152
+ C(o.styles), H.forEach((a) => {
1153
+ if (a in o.styles) {
1154
+ const u = o.styles[a];
1155
+ C(u);
1141
1156
  }
1142
- }), e.themes && Object.values(e.themes).forEach((a) => {
1143
- C(a), E.forEach((t) => {
1144
- if (t in a) {
1145
- const v = a[t];
1157
+ }), o.themes && Object.values(o.themes).forEach((a) => {
1158
+ C(a), H.forEach((u) => {
1159
+ if (u in a) {
1160
+ const v = a[u];
1146
1161
  C(v);
1147
1162
  }
1148
1163
  });
1149
1164
  });
1150
1165
  }
1151
- function C(c) {
1152
- Object.entries(te).forEach(([r, b]) => {
1153
- if (b in c) {
1154
- const f = c[b];
1155
- Object.entries(f).map(([e, a]) => {
1156
- c[`${e}${r}`] = a;
1157
- }), delete c[b];
1166
+ function C(f) {
1167
+ Object.entries(ne).forEach(([b, g]) => {
1168
+ if (g in f) {
1169
+ const h = f[g];
1170
+ Object.entries(h).map(([o, a]) => {
1171
+ f[`${o}${b}`] = a;
1172
+ }), delete f[g];
1158
1173
  }
1159
1174
  });
1160
1175
  }
1161
- })(q || (q = {}));
1162
- const K = q;
1163
- function re(l) {
1164
- const { clean: u, theme: i, component: m } = l;
1165
- return X(() => {
1166
- var h, V;
1167
- if (u)
1176
+ })(_ || (_ = {}));
1177
+ const U = _;
1178
+ function ve(s) {
1179
+ const { clean: l, theme: r, component: n } = s;
1180
+ return Y(() => {
1181
+ var c, w;
1182
+ if (l)
1168
1183
  return;
1169
- let o = K.Styles[m] ?? ((h = K.Styles.components) == null ? void 0 : h[m]);
1170
- if (o)
1171
- return i ? { ...o.styles, ...(V = o.themes) == null ? void 0 : V[i] } : o.styles;
1172
- }, [m, u, i]);
1184
+ let t = U.Styles[n] ?? ((c = U.Styles.components) == null ? void 0 : c[n]);
1185
+ if (t)
1186
+ return r ? { ...t.styles, ...(w = t.themes) == null ? void 0 : w[r] } : t.styles;
1187
+ }, [n, l, r]);
1173
1188
  }
1174
- const oe = typeof window < "u" && typeof window.document < "u", ne = oe ? J : Q;
1175
- function me(l, u) {
1176
- const i = re(l);
1177
- return ne(I.flush, [l]), X(() => {
1178
- const m = [u ? I.svgClassName : I.boxClassName], o = i ? { ...i, ...l } : { ...l };
1179
- return U(o), E.forEach((h) => {
1180
- if (h in o) {
1181
- const V = o[h];
1182
- U(V), Object.entries(V).forEach(([T, C]) => {
1183
- m.push(I.get(T, C, h));
1184
- }), delete o[h];
1189
+ const ie = typeof window < "u" && typeof window.document < "u", ce = ie ? se : ae;
1190
+ function be(s, l) {
1191
+ const r = ve(s);
1192
+ return ce(I.flush, [s]), Y(() => {
1193
+ const n = [l ? I.svgClassName : I.boxClassName], t = r ? { ...r, ...s } : { ...s };
1194
+ return X(t), Object.entries(t).forEach(([c, w]) => {
1195
+ n.push(I.get(c, w));
1196
+ }), H.forEach((c) => {
1197
+ if (c in t) {
1198
+ const w = t[c];
1199
+ X(w), Object.entries(w).forEach(([E, C]) => {
1200
+ n.push(I.get(E, C, c));
1201
+ }), delete t[c];
1185
1202
  }
1186
- }), Object.entries(o).forEach(([h, V]) => {
1187
- m.push(I.get(h, V));
1188
- }), m;
1189
- }, [l, i]);
1203
+ }), n;
1204
+ }, [s, r]);
1190
1205
  }
1191
- function U(l) {
1192
- R(l, "disabled", "Disabled"), R(l, "hover", "H"), R(l, "focus", "F"), R(l, "active", "A");
1206
+ function X(s) {
1207
+ B(s, "hover", "Hover"), B(s, "focus", "Focus"), B(s, "active", "Active"), B(s, "disabled", "Disabled"), R(s, "hoverGroup", "Hover"), R(s, "focusGroup", "Focus"), R(s, "activeGroup", "Active"), R(s, "disabledGroup", "Disabled");
1208
+ }
1209
+ function B(s, l, r) {
1210
+ l in s && Q(s, l, r, s[l]);
1211
+ }
1212
+ function R(s, l, r) {
1213
+ l in s && J.isObject(s[l]) && Object.entries(s[l]).forEach(([n, t]) => {
1214
+ I.addCustomPseudoClass(r, n, l), Q(s, l, r + n, t);
1215
+ });
1193
1216
  }
1194
- function R(l, u, i) {
1195
- u in l && (Array.isArray(l[u]) ? (Object.entries(l[u][1]).forEach(([m, o]) => {
1196
- l[`${m}${i}`] = o;
1197
- }), l[u] = l[u][0]) : Z.isObject(l[u]) && (Object.entries(l[u]).forEach(([m, o]) => {
1198
- l[`${m}${i}`] = o;
1199
- }), delete l[u]));
1217
+ function Q(s, l, r, n) {
1218
+ Array.isArray(n) ? (Object.entries(n[1]).forEach(([t, c]) => {
1219
+ s[`${t}${r}`] = c;
1220
+ }), s[l] = n[0]) : J.isObject(n) && (Object.entries(n).forEach(([t, c]) => {
1221
+ s[`${t}${r}`] = c;
1222
+ }), delete s[l]);
1200
1223
  }
1201
- function ve(...l) {
1202
- 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(([m, o]) => {
1203
- o && u.push(m);
1204
- }), u) : u, []);
1224
+ function me(...s) {
1225
+ return s.reduce((l, r) => r ? typeof r == "string" ? (l.push(r), l) : Array.isArray(r) ? (l.push(...me(...r)), l) : (Object.entries(r).forEach(([n, t]) => {
1226
+ t && l.push(n);
1227
+ }), l) : l, []);
1205
1228
  }
1206
1229
  export {
1207
1230
  I as S,
1208
- K as T,
1209
- ve as c,
1210
- me as u
1231
+ U as T,
1232
+ me as c,
1233
+ be as u
1211
1234
  };