@regardio/react 0.6.0 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/background-slideshow/index.d.mts +1 -3
  2. package/dist/blurry-gradient/index.d.mts +4 -5
  3. package/dist/button/index.d.mts +1 -1
  4. package/dist/carousel/index.d.mts +42 -8
  5. package/dist/carousel/index.mjs +11 -16
  6. package/dist/checkbox/index.d.mts +7 -16
  7. package/dist/checkbox-group/index.d.mts +3 -4
  8. package/dist/countdown/index.d.mts +1 -3
  9. package/dist/field/index.d.mts +40 -38
  10. package/dist/fieldset/index.d.mts +15 -14
  11. package/dist/form/index.d.mts +2 -3
  12. package/dist/generic-error/index.d.mts +20 -23
  13. package/dist/grid/index.d.mts +77 -1173
  14. package/dist/grid/index.mjs +5 -7
  15. package/dist/heading/index.d.mts +7 -11
  16. package/dist/heading/index.mjs +2 -3
  17. package/dist/highlight/index.d.mts +2 -3
  18. package/dist/hooks/use-current-route-data.d.mts +4 -4
  19. package/dist/hooks/use-current-route-data.mjs +3 -1
  20. package/dist/hooks/use-focus-search.mjs +2 -0
  21. package/dist/hooks/use-matches-data.d.mts +5 -5
  22. package/dist/hooks/use-matches-data.mjs +2 -0
  23. package/dist/hooks/use-media-query.d.mts +4 -4
  24. package/dist/hooks/use-media-query.mjs +2 -0
  25. package/dist/hooks/use-mobile.mjs +2 -0
  26. package/dist/hooks/use-nonce.d.mts +2 -4
  27. package/dist/hooks/use-orientation.d.mts +6 -6
  28. package/dist/hooks/use-orientation.mjs +2 -0
  29. package/dist/hooks/use-user.d.mts +23 -25
  30. package/dist/icon-button/index.d.mts +4 -5
  31. package/dist/if/index.d.mts +2 -4
  32. package/dist/if/index.mjs +4 -4
  33. package/dist/{index-Bm-tWhsb.d.mts → index-Bj5_XfEC.d.mts} +2 -3
  34. package/dist/{index-YT2CkvL6.d.mts → index-C_evL5vG.d.mts} +4 -5
  35. package/dist/input/index.d.mts +1 -1
  36. package/dist/link/index.d.mts +9 -11
  37. package/dist/link/index.mjs +3 -3
  38. package/dist/list/index.d.mts +39 -38
  39. package/dist/list/index.mjs +7 -7
  40. package/dist/markdown-container/index.d.mts +1 -1
  41. package/dist/markdown-container/index.mjs +1 -1
  42. package/dist/password-input/index.d.mts +4 -5
  43. package/dist/picture/index.d.mts +10 -10
  44. package/dist/protected-email/index.d.mts +9 -11
  45. package/dist/radio/index.d.mts +7 -16
  46. package/dist/radio-group/index.d.mts +3 -4
  47. package/dist/slider/index.d.mts +19 -41
  48. package/dist/switch/index.d.mts +7 -16
  49. package/dist/text/index.d.mts +2 -3
  50. package/dist/{text-CPlUND-Z.mjs → text-EQC4zJbE.mjs} +7 -13
  51. package/dist/toggle/index.d.mts +4 -38
  52. package/dist/utils/text/index.d.mts +5 -5
  53. package/dist/utils/text/index.mjs +1 -1
  54. package/package.json +170 -11
  55. package/src/background-slideshow/background-slideshow.tsx +1 -2
  56. package/src/blurry-gradient/blurry-gradient.tsx +1 -1
  57. package/src/button/button.stories.tsx +1 -1
  58. package/src/button/button.tsx +7 -1
  59. package/src/carousel/carousel-content.tsx +17 -14
  60. package/src/carousel/carousel-item.tsx +18 -18
  61. package/src/carousel/carousel-next.tsx +21 -16
  62. package/src/carousel/carousel-previous.tsx +21 -16
  63. package/src/carousel/carousel-root.tsx +91 -86
  64. package/src/checkbox/checkbox.tsx +14 -3
  65. package/src/checkbox-group/checkbox-group.tsx +1 -1
  66. package/src/countdown/countdown.tsx +1 -1
  67. package/src/field/field.stories.tsx +1 -1
  68. package/src/field/field.tsx +27 -6
  69. package/src/fieldset/fieldset.stories.tsx +1 -1
  70. package/src/fieldset/fieldset.tsx +14 -3
  71. package/src/form/form.stories.tsx +1 -1
  72. package/src/form/form.tsx +1 -1
  73. package/src/generic-error/generic-error.tsx +2 -3
  74. package/src/grid/grid-item.tsx +77 -36
  75. package/src/grid/grid-root.tsx +49 -22
  76. package/src/heading/heading.tsx +7 -3
  77. package/src/highlight/highlight.tsx +1 -1
  78. package/src/hooks/use-current-route-data.ts +4 -2
  79. package/src/hooks/use-focus-search.ts +3 -1
  80. package/src/hooks/use-matches-data.ts +2 -0
  81. package/src/hooks/use-media-query.ts +2 -0
  82. package/src/hooks/use-mobile.ts +3 -1
  83. package/src/hooks/use-nonce.ts +3 -3
  84. package/src/hooks/use-orientation.ts +2 -0
  85. package/src/hooks/use-user.tsx +3 -2
  86. package/src/icon-button/icon-button.tsx +1 -1
  87. package/src/if/if.tsx +3 -1
  88. package/src/input/input.stories.tsx +1 -1
  89. package/src/input/input.tsx +1 -1
  90. package/src/link/link.tsx +4 -3
  91. package/src/list/list-item.tsx +10 -13
  92. package/src/list/list-root-context.ts +3 -3
  93. package/src/list/list-root.tsx +10 -13
  94. package/src/password-input/password-input.tsx +1 -1
  95. package/src/protected-email/protected-email.tsx +6 -1
  96. package/src/radio/radio.tsx +14 -3
  97. package/src/radio-group/radio-group.tsx +5 -1
  98. package/src/slider/slider.tsx +29 -7
  99. package/src/switch/switch.tsx +14 -3
  100. package/src/text/text.tsx +6 -1
  101. package/src/toggle/toggle.tsx +3 -3
  102. package/src/utils/text/text.tsx +8 -16
@@ -1,1185 +1,80 @@
1
- import * as react5 from "react";
2
1
  import { HTMLAttributes } from "react";
3
- import { VariantProps } from "@regardio/tailwind/utils";
4
- import * as tailwind_variants0 from "tailwind-variants";
5
2
 
6
3
  //#region src/grid/grid-item.d.ts
7
- declare const gridItem: tailwind_variants0.TVReturnType<{
8
- end: {
9
- 1: {
10
- root: string;
11
- };
12
- 2: {
13
- root: string;
14
- };
15
- 3: {
16
- root: string;
17
- };
18
- 4: {
19
- root: string;
20
- };
21
- 5: {
22
- root: string;
23
- };
24
- 6: {
25
- root: string;
26
- };
27
- 7: {
28
- root: string;
29
- };
30
- 8: {
31
- root: string;
32
- };
33
- 9: {
34
- root: string;
35
- };
36
- 10: {
37
- root: string;
38
- };
39
- 11: {
40
- root: string;
41
- };
42
- 12: {
43
- root: string;
44
- };
45
- 13: {
46
- root: string;
47
- };
48
- auto: {
49
- root: string;
50
- };
51
- };
52
- rowSpan: {
53
- 1: {
54
- root: string;
55
- };
56
- 2: {
57
- root: string;
58
- };
59
- 3: {
60
- root: string;
61
- };
62
- 4: {
63
- root: string;
64
- };
65
- 5: {
66
- root: string;
67
- };
68
- 6: {
69
- root: string;
70
- };
71
- full: {
72
- root: string;
73
- };
74
- };
75
- span: {
76
- 1: {
77
- root: string;
78
- };
79
- 2: {
80
- root: string;
81
- };
82
- 3: {
83
- root: string;
84
- };
85
- 4: {
86
- root: string;
87
- };
88
- 5: {
89
- root: string;
90
- };
91
- 6: {
92
- root: string;
93
- };
94
- 7: {
95
- root: string;
96
- };
97
- 8: {
98
- root: string;
99
- };
100
- 9: {
101
- root: string;
102
- };
103
- 10: {
104
- root: string;
105
- };
106
- 11: {
107
- root: string;
108
- };
109
- 12: {
110
- root: string;
111
- };
112
- full: {
113
- root: string;
114
- };
115
- };
116
- spanLg: {
117
- 1: {
118
- root: string;
119
- };
120
- 2: {
121
- root: string;
122
- };
123
- 3: {
124
- root: string;
125
- };
126
- 4: {
127
- root: string;
128
- };
129
- 5: {
130
- root: string;
131
- };
132
- 6: {
133
- root: string;
134
- };
135
- 7: {
136
- root: string;
137
- };
138
- 8: {
139
- root: string;
140
- };
141
- 9: {
142
- root: string;
143
- };
144
- 10: {
145
- root: string;
146
- };
147
- 11: {
148
- root: string;
149
- };
150
- 12: {
151
- root: string;
152
- };
153
- full: {
154
- root: string;
155
- };
156
- };
157
- spanMd: {
158
- 1: {
159
- root: string;
160
- };
161
- 2: {
162
- root: string;
163
- };
164
- 3: {
165
- root: string;
166
- };
167
- 4: {
168
- root: string;
169
- };
170
- 5: {
171
- root: string;
172
- };
173
- 6: {
174
- root: string;
175
- };
176
- 7: {
177
- root: string;
178
- };
179
- 8: {
180
- root: string;
181
- };
182
- 9: {
183
- root: string;
184
- };
185
- 10: {
186
- root: string;
187
- };
188
- 11: {
189
- root: string;
190
- };
191
- 12: {
192
- root: string;
193
- };
194
- full: {
195
- root: string;
196
- };
197
- };
198
- spanSm: {
199
- 1: {
200
- root: string;
201
- };
202
- 2: {
203
- root: string;
204
- };
205
- 3: {
206
- root: string;
207
- };
208
- 4: {
209
- root: string;
210
- };
211
- 5: {
212
- root: string;
213
- };
214
- 6: {
215
- root: string;
216
- };
217
- 7: {
218
- root: string;
219
- };
220
- 8: {
221
- root: string;
222
- };
223
- 9: {
224
- root: string;
225
- };
226
- 10: {
227
- root: string;
228
- };
229
- 11: {
230
- root: string;
231
- };
232
- 12: {
233
- root: string;
234
- };
235
- full: {
236
- root: string;
237
- };
238
- };
239
- spanXl: {
240
- 1: {
241
- root: string;
242
- };
243
- 2: {
244
- root: string;
245
- };
246
- 3: {
247
- root: string;
248
- };
249
- 4: {
250
- root: string;
251
- };
252
- 5: {
253
- root: string;
254
- };
255
- 6: {
256
- root: string;
257
- };
258
- 7: {
259
- root: string;
260
- };
261
- 8: {
262
- root: string;
263
- };
264
- 9: {
265
- root: string;
266
- };
267
- 10: {
268
- root: string;
269
- };
270
- 11: {
271
- root: string;
272
- };
273
- 12: {
274
- root: string;
275
- };
276
- full: {
277
- root: string;
278
- };
279
- };
280
- spanXs: {
281
- 1: {
282
- root: string;
283
- };
284
- 2: {
285
- root: string;
286
- };
287
- 3: {
288
- root: string;
289
- };
290
- 4: {
291
- root: string;
292
- };
293
- 5: {
294
- root: string;
295
- };
296
- 6: {
297
- root: string;
298
- };
299
- 7: {
300
- root: string;
301
- };
302
- 8: {
303
- root: string;
304
- };
305
- 9: {
306
- root: string;
307
- };
308
- 10: {
309
- root: string;
310
- };
311
- 11: {
312
- root: string;
313
- };
314
- 12: {
315
- root: string;
316
- };
317
- full: {
318
- root: string;
319
- };
320
- };
321
- start: {
322
- 1: {
323
- root: string;
324
- };
325
- 2: {
326
- root: string;
327
- };
328
- 3: {
329
- root: string;
330
- };
331
- 4: {
332
- root: string;
333
- };
334
- 5: {
335
- root: string;
336
- };
337
- 6: {
338
- root: string;
339
- };
340
- 7: {
341
- root: string;
342
- };
343
- 8: {
344
- root: string;
345
- };
346
- 9: {
347
- root: string;
348
- };
349
- 10: {
350
- root: string;
351
- };
352
- 11: {
353
- root: string;
354
- };
355
- 12: {
356
- root: string;
357
- };
358
- 13: {
359
- root: string;
360
- };
361
- auto: {
362
- root: string;
363
- };
364
- };
365
- }, {
366
- root: string[];
367
- }, undefined, {
368
- end: {
369
- 1: {
370
- root: string;
371
- };
372
- 2: {
373
- root: string;
374
- };
375
- 3: {
376
- root: string;
377
- };
378
- 4: {
379
- root: string;
380
- };
381
- 5: {
382
- root: string;
383
- };
384
- 6: {
385
- root: string;
386
- };
387
- 7: {
388
- root: string;
389
- };
390
- 8: {
391
- root: string;
392
- };
393
- 9: {
394
- root: string;
395
- };
396
- 10: {
397
- root: string;
398
- };
399
- 11: {
400
- root: string;
401
- };
402
- 12: {
403
- root: string;
404
- };
405
- 13: {
406
- root: string;
407
- };
408
- auto: {
409
- root: string;
410
- };
411
- };
412
- rowSpan: {
413
- 1: {
414
- root: string;
415
- };
416
- 2: {
417
- root: string;
418
- };
419
- 3: {
420
- root: string;
421
- };
422
- 4: {
423
- root: string;
424
- };
425
- 5: {
426
- root: string;
427
- };
428
- 6: {
429
- root: string;
430
- };
431
- full: {
432
- root: string;
433
- };
434
- };
435
- span: {
436
- 1: {
437
- root: string;
438
- };
439
- 2: {
440
- root: string;
441
- };
442
- 3: {
443
- root: string;
444
- };
445
- 4: {
446
- root: string;
447
- };
448
- 5: {
449
- root: string;
450
- };
451
- 6: {
452
- root: string;
453
- };
454
- 7: {
455
- root: string;
456
- };
457
- 8: {
458
- root: string;
459
- };
460
- 9: {
461
- root: string;
462
- };
463
- 10: {
464
- root: string;
465
- };
466
- 11: {
467
- root: string;
468
- };
469
- 12: {
470
- root: string;
471
- };
472
- full: {
473
- root: string;
474
- };
475
- };
476
- spanLg: {
477
- 1: {
478
- root: string;
479
- };
480
- 2: {
481
- root: string;
482
- };
483
- 3: {
484
- root: string;
485
- };
486
- 4: {
487
- root: string;
488
- };
489
- 5: {
490
- root: string;
491
- };
492
- 6: {
493
- root: string;
494
- };
495
- 7: {
496
- root: string;
497
- };
498
- 8: {
499
- root: string;
500
- };
501
- 9: {
502
- root: string;
503
- };
504
- 10: {
505
- root: string;
506
- };
507
- 11: {
508
- root: string;
509
- };
510
- 12: {
511
- root: string;
512
- };
513
- full: {
514
- root: string;
515
- };
516
- };
517
- spanMd: {
518
- 1: {
519
- root: string;
520
- };
521
- 2: {
522
- root: string;
523
- };
524
- 3: {
525
- root: string;
526
- };
527
- 4: {
528
- root: string;
529
- };
530
- 5: {
531
- root: string;
532
- };
533
- 6: {
534
- root: string;
535
- };
536
- 7: {
537
- root: string;
538
- };
539
- 8: {
540
- root: string;
541
- };
542
- 9: {
543
- root: string;
544
- };
545
- 10: {
546
- root: string;
547
- };
548
- 11: {
549
- root: string;
550
- };
551
- 12: {
552
- root: string;
553
- };
554
- full: {
555
- root: string;
556
- };
557
- };
558
- spanSm: {
559
- 1: {
560
- root: string;
561
- };
562
- 2: {
563
- root: string;
564
- };
565
- 3: {
566
- root: string;
567
- };
568
- 4: {
569
- root: string;
570
- };
571
- 5: {
572
- root: string;
573
- };
574
- 6: {
575
- root: string;
576
- };
577
- 7: {
578
- root: string;
579
- };
580
- 8: {
581
- root: string;
582
- };
583
- 9: {
584
- root: string;
585
- };
586
- 10: {
587
- root: string;
588
- };
589
- 11: {
590
- root: string;
591
- };
592
- 12: {
593
- root: string;
594
- };
595
- full: {
596
- root: string;
597
- };
598
- };
599
- spanXl: {
600
- 1: {
601
- root: string;
602
- };
603
- 2: {
604
- root: string;
605
- };
606
- 3: {
607
- root: string;
608
- };
609
- 4: {
610
- root: string;
611
- };
612
- 5: {
613
- root: string;
614
- };
615
- 6: {
616
- root: string;
617
- };
618
- 7: {
619
- root: string;
620
- };
621
- 8: {
622
- root: string;
623
- };
624
- 9: {
625
- root: string;
626
- };
627
- 10: {
628
- root: string;
629
- };
630
- 11: {
631
- root: string;
632
- };
633
- 12: {
634
- root: string;
635
- };
636
- full: {
637
- root: string;
638
- };
639
- };
640
- spanXs: {
641
- 1: {
642
- root: string;
643
- };
644
- 2: {
645
- root: string;
646
- };
647
- 3: {
648
- root: string;
649
- };
650
- 4: {
651
- root: string;
652
- };
653
- 5: {
654
- root: string;
655
- };
656
- 6: {
657
- root: string;
658
- };
659
- 7: {
660
- root: string;
661
- };
662
- 8: {
663
- root: string;
664
- };
665
- 9: {
666
- root: string;
667
- };
668
- 10: {
669
- root: string;
670
- };
671
- 11: {
672
- root: string;
673
- };
674
- 12: {
675
- root: string;
676
- };
677
- full: {
678
- root: string;
679
- };
680
- };
681
- start: {
682
- 1: {
683
- root: string;
684
- };
685
- 2: {
686
- root: string;
687
- };
688
- 3: {
689
- root: string;
690
- };
691
- 4: {
692
- root: string;
693
- };
694
- 5: {
695
- root: string;
696
- };
697
- 6: {
698
- root: string;
699
- };
700
- 7: {
701
- root: string;
702
- };
703
- 8: {
704
- root: string;
705
- };
706
- 9: {
707
- root: string;
708
- };
709
- 10: {
710
- root: string;
711
- };
712
- 11: {
713
- root: string;
714
- };
715
- 12: {
716
- root: string;
717
- };
718
- 13: {
719
- root: string;
720
- };
721
- auto: {
722
- root: string;
723
- };
724
- };
725
- }, {
726
- root: string[];
727
- }, tailwind_variants0.TVReturnType<{
728
- end: {
729
- 1: {
730
- root: string;
731
- };
732
- 2: {
733
- root: string;
734
- };
735
- 3: {
736
- root: string;
737
- };
738
- 4: {
739
- root: string;
740
- };
741
- 5: {
742
- root: string;
743
- };
744
- 6: {
745
- root: string;
746
- };
747
- 7: {
748
- root: string;
749
- };
750
- 8: {
751
- root: string;
752
- };
753
- 9: {
754
- root: string;
755
- };
756
- 10: {
757
- root: string;
758
- };
759
- 11: {
760
- root: string;
761
- };
762
- 12: {
763
- root: string;
764
- };
765
- 13: {
766
- root: string;
767
- };
768
- auto: {
769
- root: string;
770
- };
771
- };
772
- rowSpan: {
773
- 1: {
774
- root: string;
775
- };
776
- 2: {
777
- root: string;
778
- };
779
- 3: {
780
- root: string;
781
- };
782
- 4: {
783
- root: string;
784
- };
785
- 5: {
786
- root: string;
787
- };
788
- 6: {
789
- root: string;
790
- };
791
- full: {
792
- root: string;
793
- };
794
- };
795
- span: {
796
- 1: {
797
- root: string;
798
- };
799
- 2: {
800
- root: string;
801
- };
802
- 3: {
803
- root: string;
804
- };
805
- 4: {
806
- root: string;
807
- };
808
- 5: {
809
- root: string;
810
- };
811
- 6: {
812
- root: string;
813
- };
814
- 7: {
815
- root: string;
816
- };
817
- 8: {
818
- root: string;
819
- };
820
- 9: {
821
- root: string;
822
- };
823
- 10: {
824
- root: string;
825
- };
826
- 11: {
827
- root: string;
828
- };
829
- 12: {
830
- root: string;
831
- };
832
- full: {
833
- root: string;
834
- };
835
- };
836
- spanLg: {
837
- 1: {
838
- root: string;
839
- };
840
- 2: {
841
- root: string;
842
- };
843
- 3: {
844
- root: string;
845
- };
846
- 4: {
847
- root: string;
848
- };
849
- 5: {
850
- root: string;
851
- };
852
- 6: {
853
- root: string;
854
- };
855
- 7: {
856
- root: string;
857
- };
858
- 8: {
859
- root: string;
860
- };
861
- 9: {
862
- root: string;
863
- };
864
- 10: {
865
- root: string;
866
- };
867
- 11: {
868
- root: string;
869
- };
870
- 12: {
871
- root: string;
872
- };
873
- full: {
874
- root: string;
875
- };
876
- };
877
- spanMd: {
878
- 1: {
879
- root: string;
880
- };
881
- 2: {
882
- root: string;
883
- };
884
- 3: {
885
- root: string;
886
- };
887
- 4: {
888
- root: string;
889
- };
890
- 5: {
891
- root: string;
892
- };
893
- 6: {
894
- root: string;
895
- };
896
- 7: {
897
- root: string;
898
- };
899
- 8: {
900
- root: string;
901
- };
902
- 9: {
903
- root: string;
904
- };
905
- 10: {
906
- root: string;
907
- };
908
- 11: {
909
- root: string;
910
- };
911
- 12: {
912
- root: string;
913
- };
914
- full: {
915
- root: string;
916
- };
917
- };
918
- spanSm: {
919
- 1: {
920
- root: string;
921
- };
922
- 2: {
923
- root: string;
924
- };
925
- 3: {
926
- root: string;
927
- };
928
- 4: {
929
- root: string;
930
- };
931
- 5: {
932
- root: string;
933
- };
934
- 6: {
935
- root: string;
936
- };
937
- 7: {
938
- root: string;
939
- };
940
- 8: {
941
- root: string;
942
- };
943
- 9: {
944
- root: string;
945
- };
946
- 10: {
947
- root: string;
948
- };
949
- 11: {
950
- root: string;
951
- };
952
- 12: {
953
- root: string;
954
- };
955
- full: {
956
- root: string;
957
- };
958
- };
959
- spanXl: {
960
- 1: {
961
- root: string;
962
- };
963
- 2: {
964
- root: string;
965
- };
966
- 3: {
967
- root: string;
968
- };
969
- 4: {
970
- root: string;
971
- };
972
- 5: {
973
- root: string;
974
- };
975
- 6: {
976
- root: string;
977
- };
978
- 7: {
979
- root: string;
980
- };
981
- 8: {
982
- root: string;
983
- };
984
- 9: {
985
- root: string;
986
- };
987
- 10: {
988
- root: string;
989
- };
990
- 11: {
991
- root: string;
992
- };
993
- 12: {
994
- root: string;
995
- };
996
- full: {
997
- root: string;
998
- };
999
- };
1000
- spanXs: {
1001
- 1: {
1002
- root: string;
1003
- };
1004
- 2: {
1005
- root: string;
1006
- };
1007
- 3: {
1008
- root: string;
1009
- };
1010
- 4: {
1011
- root: string;
1012
- };
1013
- 5: {
1014
- root: string;
1015
- };
1016
- 6: {
1017
- root: string;
1018
- };
1019
- 7: {
1020
- root: string;
1021
- };
1022
- 8: {
1023
- root: string;
1024
- };
1025
- 9: {
1026
- root: string;
1027
- };
1028
- 10: {
1029
- root: string;
1030
- };
1031
- 11: {
1032
- root: string;
1033
- };
1034
- 12: {
1035
- root: string;
1036
- };
1037
- full: {
1038
- root: string;
1039
- };
1040
- };
1041
- start: {
1042
- 1: {
1043
- root: string;
1044
- };
1045
- 2: {
1046
- root: string;
1047
- };
1048
- 3: {
1049
- root: string;
1050
- };
1051
- 4: {
1052
- root: string;
1053
- };
1054
- 5: {
1055
- root: string;
1056
- };
1057
- 6: {
1058
- root: string;
1059
- };
1060
- 7: {
1061
- root: string;
1062
- };
1063
- 8: {
1064
- root: string;
1065
- };
1066
- 9: {
1067
- root: string;
1068
- };
1069
- 10: {
1070
- root: string;
1071
- };
1072
- 11: {
1073
- root: string;
1074
- };
1075
- 12: {
1076
- root: string;
1077
- };
1078
- 13: {
1079
- root: string;
1080
- };
1081
- auto: {
1082
- root: string;
1083
- };
1084
- };
1085
- }, {
1086
- root: string[];
1087
- }, undefined, unknown, unknown, undefined>>;
1088
- type GridItemVariants = VariantProps<typeof gridItem>;
4
+ declare const GRID_ITEM_VARIANTS: {
5
+ readonly end: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, "auto"];
6
+ readonly rowSpan: readonly [1, 2, 3, 4, 5, 6, "full"];
7
+ readonly span: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, "full"];
8
+ readonly spanLg: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, "full"];
9
+ readonly spanMd: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, "full"];
10
+ readonly spanSm: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, "full"];
11
+ readonly spanXl: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, "full"];
12
+ readonly spanXs: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, "full"];
13
+ readonly start: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, "auto"];
14
+ };
15
+ interface GridItemVariantProps {
16
+ end?: (typeof GRID_ITEM_VARIANTS.end)[number];
17
+ rowSpan?: (typeof GRID_ITEM_VARIANTS.rowSpan)[number];
18
+ span?: (typeof GRID_ITEM_VARIANTS.span)[number];
19
+ spanLg?: (typeof GRID_ITEM_VARIANTS.spanLg)[number];
20
+ spanMd?: (typeof GRID_ITEM_VARIANTS.spanMd)[number];
21
+ spanSm?: (typeof GRID_ITEM_VARIANTS.spanSm)[number];
22
+ spanXl?: (typeof GRID_ITEM_VARIANTS.spanXl)[number];
23
+ spanXs?: (typeof GRID_ITEM_VARIANTS.spanXs)[number];
24
+ start?: (typeof GRID_ITEM_VARIANTS.start)[number];
25
+ }
26
+ interface GridItemSlotProps {
27
+ class?: string;
28
+ className?: string;
29
+ }
30
+ interface GridItemSlots {
31
+ root: (props?: GridItemSlotProps) => string;
32
+ }
33
+ type GridItemStyleFn = (props?: GridItemVariantProps) => GridItemSlots;
34
+ declare const gridItem: GridItemStyleFn;
35
+ type GridItemVariants = GridItemVariantProps;
1089
36
  interface GridItemProps extends HTMLAttributes<HTMLDivElement>, GridItemVariants {
1090
37
  classNames?: {
1091
38
  root?: string;
1092
39
  };
40
+ ref?: React.Ref<HTMLDivElement>;
1093
41
  }
1094
- declare const GridItem: react5.ForwardRefExoticComponent<GridItemProps & react5.RefAttributes<HTMLDivElement>>;
42
+ declare const GridItem: ({
43
+ children,
44
+ className,
45
+ classNames,
46
+ span,
47
+ spanXs,
48
+ spanSm,
49
+ spanMd,
50
+ spanLg,
51
+ spanXl,
52
+ start,
53
+ end,
54
+ rowSpan,
55
+ ref,
56
+ ...props
57
+ }: GridItemProps) => React.JSX.Element;
1095
58
  //#endregion
1096
59
  //#region src/grid/grid-root.d.ts
1097
- declare const grid: tailwind_variants0.TVReturnType<{
1098
- align: {
1099
- center: {
1100
- root: string;
1101
- };
1102
- end: {
1103
- root: string;
1104
- };
1105
- start: {
1106
- root: string;
1107
- };
1108
- stretch: {
1109
- root: string;
1110
- };
1111
- };
1112
- flow: {
1113
- column: {
1114
- root: string;
1115
- };
1116
- dense: {
1117
- root: string;
1118
- };
1119
- row: {
1120
- root: string;
1121
- };
1122
- };
1123
- }, {
1124
- root: string[];
1125
- }, undefined, {
1126
- align: {
1127
- center: {
1128
- root: string;
1129
- };
1130
- end: {
1131
- root: string;
1132
- };
1133
- start: {
1134
- root: string;
1135
- };
1136
- stretch: {
1137
- root: string;
1138
- };
1139
- };
1140
- flow: {
1141
- column: {
1142
- root: string;
1143
- };
1144
- dense: {
1145
- root: string;
1146
- };
1147
- row: {
1148
- root: string;
1149
- };
1150
- };
1151
- }, {
1152
- root: string[];
1153
- }, tailwind_variants0.TVReturnType<{
1154
- align: {
1155
- center: {
1156
- root: string;
1157
- };
1158
- end: {
1159
- root: string;
1160
- };
1161
- start: {
1162
- root: string;
1163
- };
1164
- stretch: {
1165
- root: string;
1166
- };
1167
- };
1168
- flow: {
1169
- column: {
1170
- root: string;
1171
- };
1172
- dense: {
1173
- root: string;
1174
- };
1175
- row: {
1176
- root: string;
1177
- };
1178
- };
1179
- }, {
1180
- root: string[];
1181
- }, undefined, unknown, unknown, undefined>>;
1182
- type GridVariants = VariantProps<typeof grid>;
60
+ declare const GRID_VARIANTS: {
61
+ readonly align: readonly ["center", "end", "start", "stretch"];
62
+ readonly flow: readonly ["column", "dense", "row"];
63
+ };
64
+ interface GridVariantProps {
65
+ align?: (typeof GRID_VARIANTS.align)[number];
66
+ flow?: (typeof GRID_VARIANTS.flow)[number];
67
+ }
68
+ interface GridSlotProps {
69
+ class?: string;
70
+ className?: string;
71
+ }
72
+ interface GridSlots {
73
+ root: (props?: GridSlotProps) => string;
74
+ }
75
+ type GridStyleFn = (props?: GridVariantProps) => GridSlots;
76
+ declare const grid: GridStyleFn;
77
+ type GridVariants = GridVariantProps;
1183
78
  interface GridContextValue {
1184
79
  styles: ReturnType<typeof grid>;
1185
80
  }
@@ -1188,8 +83,17 @@ interface GridRootProps extends HTMLAttributes<HTMLDivElement>, GridVariants {
1188
83
  classNames?: {
1189
84
  root?: string;
1190
85
  };
86
+ ref?: React.Ref<HTMLDivElement>;
1191
87
  }
1192
- declare const GridRoot: react5.ForwardRefExoticComponent<GridRootProps & react5.RefAttributes<HTMLDivElement>>;
88
+ declare const GridRoot: ({
89
+ children,
90
+ className,
91
+ classNames,
92
+ flow,
93
+ align,
94
+ ref,
95
+ ...props
96
+ }: GridRootProps) => React.JSX.Element;
1193
97
  declare namespace index_parts_d_exports {
1194
98
  export { GridItem as Item, GridRoot as Root };
1195
99
  }