@nextui-org/theme 2.1.8 → 2.1.9
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/dist/{chunk-2T5RQ7SK.mjs → chunk-5VJPQADB.mjs} +34 -4
- package/dist/{chunk-Y33ZY7KH.mjs → chunk-EQIZ7W7V.mjs} +31 -2
- package/dist/components/checkbox.d.ts +163 -36
- package/dist/components/checkbox.js +34 -4
- package/dist/components/checkbox.mjs +1 -1
- package/dist/components/index.js +65 -6
- package/dist/components/index.mjs +2 -2
- package/dist/components/radio.d.ts +135 -36
- package/dist/components/radio.js +31 -2
- package/dist/components/radio.mjs +1 -1
- package/dist/index.js +65 -6
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -140,6 +140,12 @@ var checkbox = tv({
|
|
|
140
140
|
base: "opacity-disabled pointer-events-none"
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
|
+
isInvalid: {
|
|
144
|
+
true: {
|
|
145
|
+
wrapper: "before:border-danger",
|
|
146
|
+
label: "text-danger"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
143
149
|
disableAnimation: {
|
|
144
150
|
true: {
|
|
145
151
|
wrapper: "transition-none",
|
|
@@ -148,15 +154,16 @@ var checkbox = tv({
|
|
|
148
154
|
},
|
|
149
155
|
false: {
|
|
150
156
|
wrapper: [
|
|
151
|
-
"before:transition-
|
|
157
|
+
"before:transition-colors",
|
|
152
158
|
"group-data-[pressed=true]:scale-95",
|
|
153
159
|
"transition-transform",
|
|
154
160
|
"after:transition-transform-opacity",
|
|
155
161
|
"after:!ease-linear",
|
|
156
|
-
"after:!duration-200"
|
|
162
|
+
"after:!duration-200",
|
|
163
|
+
"motion-reduce:transition-none"
|
|
157
164
|
],
|
|
158
|
-
icon: "transition-opacity",
|
|
159
|
-
label: "transition-opacity before:transition-width"
|
|
165
|
+
icon: "transition-opacity motion-reduce:transition-none",
|
|
166
|
+
label: "transition-colors-opacity before:transition-width motion-reduce:transition-none"
|
|
160
167
|
}
|
|
161
168
|
}
|
|
162
169
|
},
|
|
@@ -175,6 +182,29 @@ var checkboxGroup = tv({
|
|
|
175
182
|
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",
|
|
176
183
|
description: "text-small text-foreground-400",
|
|
177
184
|
errorMessage: "text-small text-danger"
|
|
185
|
+
},
|
|
186
|
+
variants: {
|
|
187
|
+
isRequired: {
|
|
188
|
+
true: {
|
|
189
|
+
label: "after:content-['*'] after:text-danger after:ml-0.5"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
isInvalid: {
|
|
193
|
+
true: {
|
|
194
|
+
description: "text-danger"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
disableAnimation: {
|
|
198
|
+
true: {},
|
|
199
|
+
false: {
|
|
200
|
+
description: "transition-colors !duration-150 motion-reduce:transition-none"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
defaultVariants: {
|
|
205
|
+
isInvalid: false,
|
|
206
|
+
isRequired: false,
|
|
207
|
+
disableAnimation: false
|
|
178
208
|
}
|
|
179
209
|
});
|
|
180
210
|
|
|
@@ -105,8 +105,14 @@ var radio = tv({
|
|
|
105
105
|
disableAnimation: {
|
|
106
106
|
true: {},
|
|
107
107
|
false: {
|
|
108
|
-
wrapper: [
|
|
109
|
-
|
|
108
|
+
wrapper: [
|
|
109
|
+
"group-data-[pressed=true]:scale-95",
|
|
110
|
+
"transition-transform-colors",
|
|
111
|
+
"motion-reduce:transition-none"
|
|
112
|
+
],
|
|
113
|
+
control: "transition-transform-opacity motion-reduce:transition-none",
|
|
114
|
+
label: "transition-colors motion-reduce:transition-none",
|
|
115
|
+
description: "transition-colors motion-reduce:transition-none"
|
|
110
116
|
}
|
|
111
117
|
}
|
|
112
118
|
},
|
|
@@ -125,6 +131,29 @@ var radioGroup = tv({
|
|
|
125
131
|
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",
|
|
126
132
|
description: "text-tiny text-foreground-400",
|
|
127
133
|
errorMessage: "text-tiny text-danger"
|
|
134
|
+
},
|
|
135
|
+
variants: {
|
|
136
|
+
isRequired: {
|
|
137
|
+
true: {
|
|
138
|
+
label: "after:content-['*'] after:text-danger after:ml-0.5"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
isInvalid: {
|
|
142
|
+
true: {
|
|
143
|
+
description: "text-danger"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
disableAnimation: {
|
|
147
|
+
true: {},
|
|
148
|
+
false: {
|
|
149
|
+
description: "transition-colors !duration-150 motion-reduce:transition-none"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
defaultVariants: {
|
|
154
|
+
isInvalid: false,
|
|
155
|
+
isRequired: false,
|
|
156
|
+
disableAnimation: false
|
|
128
157
|
}
|
|
129
158
|
});
|
|
130
159
|
|
|
@@ -83,6 +83,12 @@ declare const checkbox: tailwind_variants.TVReturnType<{
|
|
|
83
83
|
base: string;
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
|
+
isInvalid: {
|
|
87
|
+
true: {
|
|
88
|
+
wrapper: string;
|
|
89
|
+
label: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
86
92
|
disableAnimation: {
|
|
87
93
|
true: {
|
|
88
94
|
wrapper: string;
|
|
@@ -165,6 +171,12 @@ declare const checkbox: tailwind_variants.TVReturnType<{
|
|
|
165
171
|
base: string;
|
|
166
172
|
};
|
|
167
173
|
};
|
|
174
|
+
isInvalid: {
|
|
175
|
+
true: {
|
|
176
|
+
wrapper: string;
|
|
177
|
+
label: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
168
180
|
disableAnimation: {
|
|
169
181
|
true: {
|
|
170
182
|
wrapper: string;
|
|
@@ -242,6 +254,12 @@ declare const checkbox: tailwind_variants.TVReturnType<{
|
|
|
242
254
|
base: string;
|
|
243
255
|
};
|
|
244
256
|
};
|
|
257
|
+
isInvalid: {
|
|
258
|
+
true: {
|
|
259
|
+
wrapper: string;
|
|
260
|
+
label: string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
245
263
|
disableAnimation: {
|
|
246
264
|
true: {
|
|
247
265
|
wrapper: string;
|
|
@@ -319,6 +337,12 @@ declare const checkbox: tailwind_variants.TVReturnType<{
|
|
|
319
337
|
base: string;
|
|
320
338
|
};
|
|
321
339
|
};
|
|
340
|
+
isInvalid: {
|
|
341
|
+
true: {
|
|
342
|
+
wrapper: string;
|
|
343
|
+
label: string;
|
|
344
|
+
};
|
|
345
|
+
};
|
|
322
346
|
disableAnimation: {
|
|
323
347
|
true: {
|
|
324
348
|
wrapper: string;
|
|
@@ -401,6 +425,12 @@ declare const checkbox: tailwind_variants.TVReturnType<{
|
|
|
401
425
|
base: string;
|
|
402
426
|
};
|
|
403
427
|
};
|
|
428
|
+
isInvalid: {
|
|
429
|
+
true: {
|
|
430
|
+
wrapper: string;
|
|
431
|
+
label: string;
|
|
432
|
+
};
|
|
433
|
+
};
|
|
404
434
|
disableAnimation: {
|
|
405
435
|
true: {
|
|
406
436
|
wrapper: string;
|
|
@@ -483,6 +513,12 @@ declare const checkbox: tailwind_variants.TVReturnType<{
|
|
|
483
513
|
base: string;
|
|
484
514
|
};
|
|
485
515
|
};
|
|
516
|
+
isInvalid: {
|
|
517
|
+
true: {
|
|
518
|
+
wrapper: string;
|
|
519
|
+
label: string;
|
|
520
|
+
};
|
|
521
|
+
};
|
|
486
522
|
disableAnimation: {
|
|
487
523
|
true: {
|
|
488
524
|
wrapper: string;
|
|
@@ -560,6 +596,12 @@ declare const checkbox: tailwind_variants.TVReturnType<{
|
|
|
560
596
|
base: string;
|
|
561
597
|
};
|
|
562
598
|
};
|
|
599
|
+
isInvalid: {
|
|
600
|
+
true: {
|
|
601
|
+
wrapper: string;
|
|
602
|
+
label: string;
|
|
603
|
+
};
|
|
604
|
+
};
|
|
563
605
|
disableAnimation: {
|
|
564
606
|
true: {
|
|
565
607
|
wrapper: string;
|
|
@@ -586,59 +628,144 @@ declare const checkbox: tailwind_variants.TVReturnType<{
|
|
|
586
628
|
* </div>
|
|
587
629
|
* </div>
|
|
588
630
|
*/
|
|
589
|
-
declare const checkboxGroup: tailwind_variants.TVReturnType<
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
wrapper: string;
|
|
593
|
-
description: string;
|
|
594
|
-
errorMessage: string;
|
|
595
|
-
}, undefined> | {
|
|
596
|
-
[x: string]: {
|
|
597
|
-
[x: string]: tailwind_variants.ClassValue | tailwind_variants.SlotsClassValue<{
|
|
598
|
-
base: string;
|
|
631
|
+
declare const checkboxGroup: tailwind_variants.TVReturnType<{
|
|
632
|
+
isRequired: {
|
|
633
|
+
true: {
|
|
599
634
|
label: string;
|
|
600
|
-
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
isInvalid: {
|
|
638
|
+
true: {
|
|
601
639
|
description: string;
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
}, undefined, tailwind_variants_dist_config.TVConfig<unknown, tailwind_variants.TVVariantsDefault<{
|
|
612
|
-
base: string;
|
|
613
|
-
label: string;
|
|
614
|
-
wrapper: string;
|
|
615
|
-
description: string;
|
|
616
|
-
errorMessage: string;
|
|
617
|
-
}, undefined> | {}>, tailwind_variants.TVVariantsDefault<{
|
|
618
|
-
base: string;
|
|
619
|
-
label: string;
|
|
620
|
-
wrapper: string;
|
|
621
|
-
description: string;
|
|
622
|
-
errorMessage: string;
|
|
623
|
-
}, undefined> | {}, {
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
disableAnimation: {
|
|
643
|
+
true: {};
|
|
644
|
+
false: {
|
|
645
|
+
description: string;
|
|
646
|
+
};
|
|
647
|
+
};
|
|
648
|
+
}, {
|
|
624
649
|
base: string;
|
|
625
650
|
label: string;
|
|
626
651
|
wrapper: string;
|
|
627
652
|
description: string;
|
|
628
653
|
errorMessage: string;
|
|
629
|
-
},
|
|
654
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
655
|
+
isRequired: {
|
|
656
|
+
true: {
|
|
657
|
+
label: string;
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
isInvalid: {
|
|
661
|
+
true: {
|
|
662
|
+
description: string;
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
disableAnimation: {
|
|
666
|
+
true: {};
|
|
667
|
+
false: {
|
|
668
|
+
description: string;
|
|
669
|
+
};
|
|
670
|
+
};
|
|
671
|
+
}, {
|
|
672
|
+
isRequired: {
|
|
673
|
+
true: {
|
|
674
|
+
label: string;
|
|
675
|
+
};
|
|
676
|
+
};
|
|
677
|
+
isInvalid: {
|
|
678
|
+
true: {
|
|
679
|
+
description: string;
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
disableAnimation: {
|
|
683
|
+
true: {};
|
|
684
|
+
false: {
|
|
685
|
+
description: string;
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
}>, {
|
|
689
|
+
isRequired: {
|
|
690
|
+
true: {
|
|
691
|
+
label: string;
|
|
692
|
+
};
|
|
693
|
+
};
|
|
694
|
+
isInvalid: {
|
|
695
|
+
true: {
|
|
696
|
+
description: string;
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
disableAnimation: {
|
|
700
|
+
true: {};
|
|
701
|
+
false: {
|
|
702
|
+
description: string;
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
}, {
|
|
630
706
|
base: string;
|
|
631
707
|
label: string;
|
|
632
708
|
wrapper: string;
|
|
633
709
|
description: string;
|
|
634
710
|
errorMessage: string;
|
|
635
|
-
},
|
|
711
|
+
}, tailwind_variants.TVReturnType<{
|
|
712
|
+
isRequired: {
|
|
713
|
+
true: {
|
|
714
|
+
label: string;
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
isInvalid: {
|
|
718
|
+
true: {
|
|
719
|
+
description: string;
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
disableAnimation: {
|
|
723
|
+
true: {};
|
|
724
|
+
false: {
|
|
725
|
+
description: string;
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
}, {
|
|
636
729
|
base: string;
|
|
637
730
|
label: string;
|
|
638
731
|
wrapper: string;
|
|
639
732
|
description: string;
|
|
640
733
|
errorMessage: string;
|
|
641
|
-
}, undefined
|
|
734
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
735
|
+
isRequired: {
|
|
736
|
+
true: {
|
|
737
|
+
label: string;
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
isInvalid: {
|
|
741
|
+
true: {
|
|
742
|
+
description: string;
|
|
743
|
+
};
|
|
744
|
+
};
|
|
745
|
+
disableAnimation: {
|
|
746
|
+
true: {};
|
|
747
|
+
false: {
|
|
748
|
+
description: string;
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
}, {
|
|
752
|
+
isRequired: {
|
|
753
|
+
true: {
|
|
754
|
+
label: string;
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
isInvalid: {
|
|
758
|
+
true: {
|
|
759
|
+
description: string;
|
|
760
|
+
};
|
|
761
|
+
};
|
|
762
|
+
disableAnimation: {
|
|
763
|
+
true: {};
|
|
764
|
+
false: {
|
|
765
|
+
description: string;
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
}>, unknown, unknown, undefined>>;
|
|
642
769
|
type CheckboxGroupSlots = keyof ReturnType<typeof checkboxGroup>;
|
|
643
770
|
type CheckboxVariantProps = VariantProps<typeof checkbox>;
|
|
644
771
|
type CheckboxSlots = keyof ReturnType<typeof checkbox>;
|
|
@@ -262,6 +262,12 @@ var checkbox = tv({
|
|
|
262
262
|
base: "opacity-disabled pointer-events-none"
|
|
263
263
|
}
|
|
264
264
|
},
|
|
265
|
+
isInvalid: {
|
|
266
|
+
true: {
|
|
267
|
+
wrapper: "before:border-danger",
|
|
268
|
+
label: "text-danger"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
265
271
|
disableAnimation: {
|
|
266
272
|
true: {
|
|
267
273
|
wrapper: "transition-none",
|
|
@@ -270,15 +276,16 @@ var checkbox = tv({
|
|
|
270
276
|
},
|
|
271
277
|
false: {
|
|
272
278
|
wrapper: [
|
|
273
|
-
"before:transition-
|
|
279
|
+
"before:transition-colors",
|
|
274
280
|
"group-data-[pressed=true]:scale-95",
|
|
275
281
|
"transition-transform",
|
|
276
282
|
"after:transition-transform-opacity",
|
|
277
283
|
"after:!ease-linear",
|
|
278
|
-
"after:!duration-200"
|
|
284
|
+
"after:!duration-200",
|
|
285
|
+
"motion-reduce:transition-none"
|
|
279
286
|
],
|
|
280
|
-
icon: "transition-opacity",
|
|
281
|
-
label: "transition-opacity before:transition-width"
|
|
287
|
+
icon: "transition-opacity motion-reduce:transition-none",
|
|
288
|
+
label: "transition-colors-opacity before:transition-width motion-reduce:transition-none"
|
|
282
289
|
}
|
|
283
290
|
}
|
|
284
291
|
},
|
|
@@ -297,6 +304,29 @@ var checkboxGroup = tv({
|
|
|
297
304
|
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",
|
|
298
305
|
description: "text-small text-foreground-400",
|
|
299
306
|
errorMessage: "text-small text-danger"
|
|
307
|
+
},
|
|
308
|
+
variants: {
|
|
309
|
+
isRequired: {
|
|
310
|
+
true: {
|
|
311
|
+
label: "after:content-['*'] after:text-danger after:ml-0.5"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
isInvalid: {
|
|
315
|
+
true: {
|
|
316
|
+
description: "text-danger"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
disableAnimation: {
|
|
320
|
+
true: {},
|
|
321
|
+
false: {
|
|
322
|
+
description: "transition-colors !duration-150 motion-reduce:transition-none"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
defaultVariants: {
|
|
327
|
+
isInvalid: false,
|
|
328
|
+
isRequired: false,
|
|
329
|
+
disableAnimation: false
|
|
300
330
|
}
|
|
301
331
|
});
|
|
302
332
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/components/index.js
CHANGED
|
@@ -2591,6 +2591,12 @@ var checkbox = tv({
|
|
|
2591
2591
|
base: "opacity-disabled pointer-events-none"
|
|
2592
2592
|
}
|
|
2593
2593
|
},
|
|
2594
|
+
isInvalid: {
|
|
2595
|
+
true: {
|
|
2596
|
+
wrapper: "before:border-danger",
|
|
2597
|
+
label: "text-danger"
|
|
2598
|
+
}
|
|
2599
|
+
},
|
|
2594
2600
|
disableAnimation: {
|
|
2595
2601
|
true: {
|
|
2596
2602
|
wrapper: "transition-none",
|
|
@@ -2599,15 +2605,16 @@ var checkbox = tv({
|
|
|
2599
2605
|
},
|
|
2600
2606
|
false: {
|
|
2601
2607
|
wrapper: [
|
|
2602
|
-
"before:transition-
|
|
2608
|
+
"before:transition-colors",
|
|
2603
2609
|
"group-data-[pressed=true]:scale-95",
|
|
2604
2610
|
"transition-transform",
|
|
2605
2611
|
"after:transition-transform-opacity",
|
|
2606
2612
|
"after:!ease-linear",
|
|
2607
|
-
"after:!duration-200"
|
|
2613
|
+
"after:!duration-200",
|
|
2614
|
+
"motion-reduce:transition-none"
|
|
2608
2615
|
],
|
|
2609
|
-
icon: "transition-opacity",
|
|
2610
|
-
label: "transition-opacity before:transition-width"
|
|
2616
|
+
icon: "transition-opacity motion-reduce:transition-none",
|
|
2617
|
+
label: "transition-colors-opacity before:transition-width motion-reduce:transition-none"
|
|
2611
2618
|
}
|
|
2612
2619
|
}
|
|
2613
2620
|
},
|
|
@@ -2626,6 +2633,29 @@ var checkboxGroup = tv({
|
|
|
2626
2633
|
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",
|
|
2627
2634
|
description: "text-small text-foreground-400",
|
|
2628
2635
|
errorMessage: "text-small text-danger"
|
|
2636
|
+
},
|
|
2637
|
+
variants: {
|
|
2638
|
+
isRequired: {
|
|
2639
|
+
true: {
|
|
2640
|
+
label: "after:content-['*'] after:text-danger after:ml-0.5"
|
|
2641
|
+
}
|
|
2642
|
+
},
|
|
2643
|
+
isInvalid: {
|
|
2644
|
+
true: {
|
|
2645
|
+
description: "text-danger"
|
|
2646
|
+
}
|
|
2647
|
+
},
|
|
2648
|
+
disableAnimation: {
|
|
2649
|
+
true: {},
|
|
2650
|
+
false: {
|
|
2651
|
+
description: "transition-colors !duration-150 motion-reduce:transition-none"
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
},
|
|
2655
|
+
defaultVariants: {
|
|
2656
|
+
isInvalid: false,
|
|
2657
|
+
isRequired: false,
|
|
2658
|
+
disableAnimation: false
|
|
2629
2659
|
}
|
|
2630
2660
|
});
|
|
2631
2661
|
|
|
@@ -2729,8 +2759,14 @@ var radio = tv({
|
|
|
2729
2759
|
disableAnimation: {
|
|
2730
2760
|
true: {},
|
|
2731
2761
|
false: {
|
|
2732
|
-
wrapper: [
|
|
2733
|
-
|
|
2762
|
+
wrapper: [
|
|
2763
|
+
"group-data-[pressed=true]:scale-95",
|
|
2764
|
+
"transition-transform-colors",
|
|
2765
|
+
"motion-reduce:transition-none"
|
|
2766
|
+
],
|
|
2767
|
+
control: "transition-transform-opacity motion-reduce:transition-none",
|
|
2768
|
+
label: "transition-colors motion-reduce:transition-none",
|
|
2769
|
+
description: "transition-colors motion-reduce:transition-none"
|
|
2734
2770
|
}
|
|
2735
2771
|
}
|
|
2736
2772
|
},
|
|
@@ -2749,6 +2785,29 @@ var radioGroup = tv({
|
|
|
2749
2785
|
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",
|
|
2750
2786
|
description: "text-tiny text-foreground-400",
|
|
2751
2787
|
errorMessage: "text-tiny text-danger"
|
|
2788
|
+
},
|
|
2789
|
+
variants: {
|
|
2790
|
+
isRequired: {
|
|
2791
|
+
true: {
|
|
2792
|
+
label: "after:content-['*'] after:text-danger after:ml-0.5"
|
|
2793
|
+
}
|
|
2794
|
+
},
|
|
2795
|
+
isInvalid: {
|
|
2796
|
+
true: {
|
|
2797
|
+
description: "text-danger"
|
|
2798
|
+
}
|
|
2799
|
+
},
|
|
2800
|
+
disableAnimation: {
|
|
2801
|
+
true: {},
|
|
2802
|
+
false: {
|
|
2803
|
+
description: "transition-colors !duration-150 motion-reduce:transition-none"
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
},
|
|
2807
|
+
defaultVariants: {
|
|
2808
|
+
isInvalid: false,
|
|
2809
|
+
isRequired: false,
|
|
2810
|
+
disableAnimation: false
|
|
2752
2811
|
}
|
|
2753
2812
|
});
|
|
2754
2813
|
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
radio,
|
|
25
25
|
radioGroup
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-EQIZ7W7V.mjs";
|
|
27
27
|
import {
|
|
28
28
|
scrollShadow
|
|
29
29
|
} from "../chunk-4JBYJQSP.mjs";
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
import {
|
|
110
110
|
checkbox,
|
|
111
111
|
checkboxGroup
|
|
112
|
-
} from "../chunk-
|
|
112
|
+
} from "../chunk-5VJPQADB.mjs";
|
|
113
113
|
import "../chunk-CMYR6AOY.mjs";
|
|
114
114
|
import "../chunk-K7LK7NCE.mjs";
|
|
115
115
|
import "../chunk-2PIR7DFM.mjs";
|
|
@@ -92,6 +92,8 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
92
92
|
false: {
|
|
93
93
|
wrapper: string[];
|
|
94
94
|
control: string;
|
|
95
|
+
label: string;
|
|
96
|
+
description: string;
|
|
95
97
|
};
|
|
96
98
|
};
|
|
97
99
|
}, {
|
|
@@ -169,6 +171,8 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
169
171
|
false: {
|
|
170
172
|
wrapper: string[];
|
|
171
173
|
control: string;
|
|
174
|
+
label: string;
|
|
175
|
+
description: string;
|
|
172
176
|
};
|
|
173
177
|
};
|
|
174
178
|
}, {
|
|
@@ -239,6 +243,8 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
239
243
|
false: {
|
|
240
244
|
wrapper: string[];
|
|
241
245
|
control: string;
|
|
246
|
+
label: string;
|
|
247
|
+
description: string;
|
|
242
248
|
};
|
|
243
249
|
};
|
|
244
250
|
}>, {
|
|
@@ -309,6 +315,8 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
309
315
|
false: {
|
|
310
316
|
wrapper: string[];
|
|
311
317
|
control: string;
|
|
318
|
+
label: string;
|
|
319
|
+
description: string;
|
|
312
320
|
};
|
|
313
321
|
};
|
|
314
322
|
}, {
|
|
@@ -386,6 +394,8 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
386
394
|
false: {
|
|
387
395
|
wrapper: string[];
|
|
388
396
|
control: string;
|
|
397
|
+
label: string;
|
|
398
|
+
description: string;
|
|
389
399
|
};
|
|
390
400
|
};
|
|
391
401
|
}, {
|
|
@@ -463,6 +473,8 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
463
473
|
false: {
|
|
464
474
|
wrapper: string[];
|
|
465
475
|
control: string;
|
|
476
|
+
label: string;
|
|
477
|
+
description: string;
|
|
466
478
|
};
|
|
467
479
|
};
|
|
468
480
|
}, {
|
|
@@ -533,6 +545,8 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
533
545
|
false: {
|
|
534
546
|
wrapper: string[];
|
|
535
547
|
control: string;
|
|
548
|
+
label: string;
|
|
549
|
+
description: string;
|
|
536
550
|
};
|
|
537
551
|
};
|
|
538
552
|
}>, unknown, unknown, undefined>>;
|
|
@@ -549,59 +563,144 @@ declare const radio: tailwind_variants.TVReturnType<{
|
|
|
549
563
|
* </div>
|
|
550
564
|
* </div>
|
|
551
565
|
*/
|
|
552
|
-
declare const radioGroup: tailwind_variants.TVReturnType<
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
wrapper: string;
|
|
556
|
-
description: string;
|
|
557
|
-
errorMessage: string;
|
|
558
|
-
}, undefined> | {
|
|
559
|
-
[x: string]: {
|
|
560
|
-
[x: string]: tailwind_variants.ClassValue | tailwind_variants.SlotsClassValue<{
|
|
561
|
-
base: string;
|
|
566
|
+
declare const radioGroup: tailwind_variants.TVReturnType<{
|
|
567
|
+
isRequired: {
|
|
568
|
+
true: {
|
|
562
569
|
label: string;
|
|
563
|
-
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
isInvalid: {
|
|
573
|
+
true: {
|
|
564
574
|
description: string;
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
}, undefined, tailwind_variants_dist_config.TVConfig<unknown, tailwind_variants.TVVariantsDefault<{
|
|
575
|
-
base: string;
|
|
576
|
-
label: string;
|
|
577
|
-
wrapper: string;
|
|
578
|
-
description: string;
|
|
579
|
-
errorMessage: string;
|
|
580
|
-
}, undefined> | {}>, tailwind_variants.TVVariantsDefault<{
|
|
581
|
-
base: string;
|
|
582
|
-
label: string;
|
|
583
|
-
wrapper: string;
|
|
584
|
-
description: string;
|
|
585
|
-
errorMessage: string;
|
|
586
|
-
}, undefined> | {}, {
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
disableAnimation: {
|
|
578
|
+
true: {};
|
|
579
|
+
false: {
|
|
580
|
+
description: string;
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
}, {
|
|
587
584
|
base: string;
|
|
588
585
|
label: string;
|
|
589
586
|
wrapper: string;
|
|
590
587
|
description: string;
|
|
591
588
|
errorMessage: string;
|
|
592
|
-
},
|
|
589
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
590
|
+
isRequired: {
|
|
591
|
+
true: {
|
|
592
|
+
label: string;
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
isInvalid: {
|
|
596
|
+
true: {
|
|
597
|
+
description: string;
|
|
598
|
+
};
|
|
599
|
+
};
|
|
600
|
+
disableAnimation: {
|
|
601
|
+
true: {};
|
|
602
|
+
false: {
|
|
603
|
+
description: string;
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
}, {
|
|
607
|
+
isRequired: {
|
|
608
|
+
true: {
|
|
609
|
+
label: string;
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
isInvalid: {
|
|
613
|
+
true: {
|
|
614
|
+
description: string;
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
disableAnimation: {
|
|
618
|
+
true: {};
|
|
619
|
+
false: {
|
|
620
|
+
description: string;
|
|
621
|
+
};
|
|
622
|
+
};
|
|
623
|
+
}>, {
|
|
624
|
+
isRequired: {
|
|
625
|
+
true: {
|
|
626
|
+
label: string;
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
isInvalid: {
|
|
630
|
+
true: {
|
|
631
|
+
description: string;
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
disableAnimation: {
|
|
635
|
+
true: {};
|
|
636
|
+
false: {
|
|
637
|
+
description: string;
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
}, {
|
|
593
641
|
base: string;
|
|
594
642
|
label: string;
|
|
595
643
|
wrapper: string;
|
|
596
644
|
description: string;
|
|
597
645
|
errorMessage: string;
|
|
598
|
-
},
|
|
646
|
+
}, tailwind_variants.TVReturnType<{
|
|
647
|
+
isRequired: {
|
|
648
|
+
true: {
|
|
649
|
+
label: string;
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
isInvalid: {
|
|
653
|
+
true: {
|
|
654
|
+
description: string;
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
disableAnimation: {
|
|
658
|
+
true: {};
|
|
659
|
+
false: {
|
|
660
|
+
description: string;
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
}, {
|
|
599
664
|
base: string;
|
|
600
665
|
label: string;
|
|
601
666
|
wrapper: string;
|
|
602
667
|
description: string;
|
|
603
668
|
errorMessage: string;
|
|
604
|
-
}, undefined
|
|
669
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
670
|
+
isRequired: {
|
|
671
|
+
true: {
|
|
672
|
+
label: string;
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
isInvalid: {
|
|
676
|
+
true: {
|
|
677
|
+
description: string;
|
|
678
|
+
};
|
|
679
|
+
};
|
|
680
|
+
disableAnimation: {
|
|
681
|
+
true: {};
|
|
682
|
+
false: {
|
|
683
|
+
description: string;
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
}, {
|
|
687
|
+
isRequired: {
|
|
688
|
+
true: {
|
|
689
|
+
label: string;
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
isInvalid: {
|
|
693
|
+
true: {
|
|
694
|
+
description: string;
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
disableAnimation: {
|
|
698
|
+
true: {};
|
|
699
|
+
false: {
|
|
700
|
+
description: string;
|
|
701
|
+
};
|
|
702
|
+
};
|
|
703
|
+
}>, unknown, unknown, undefined>>;
|
|
605
704
|
type RadioGroupSlots = keyof ReturnType<typeof radioGroup>;
|
|
606
705
|
type RadioVariantProps = VariantProps<typeof radio>;
|
|
607
706
|
type RadioSlots = keyof ReturnType<typeof radio>;
|
package/dist/components/radio.js
CHANGED
|
@@ -227,8 +227,14 @@ var radio = tv({
|
|
|
227
227
|
disableAnimation: {
|
|
228
228
|
true: {},
|
|
229
229
|
false: {
|
|
230
|
-
wrapper: [
|
|
231
|
-
|
|
230
|
+
wrapper: [
|
|
231
|
+
"group-data-[pressed=true]:scale-95",
|
|
232
|
+
"transition-transform-colors",
|
|
233
|
+
"motion-reduce:transition-none"
|
|
234
|
+
],
|
|
235
|
+
control: "transition-transform-opacity motion-reduce:transition-none",
|
|
236
|
+
label: "transition-colors motion-reduce:transition-none",
|
|
237
|
+
description: "transition-colors motion-reduce:transition-none"
|
|
232
238
|
}
|
|
233
239
|
}
|
|
234
240
|
},
|
|
@@ -247,6 +253,29 @@ var radioGroup = tv({
|
|
|
247
253
|
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",
|
|
248
254
|
description: "text-tiny text-foreground-400",
|
|
249
255
|
errorMessage: "text-tiny text-danger"
|
|
256
|
+
},
|
|
257
|
+
variants: {
|
|
258
|
+
isRequired: {
|
|
259
|
+
true: {
|
|
260
|
+
label: "after:content-['*'] after:text-danger after:ml-0.5"
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
isInvalid: {
|
|
264
|
+
true: {
|
|
265
|
+
description: "text-danger"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
disableAnimation: {
|
|
269
|
+
true: {},
|
|
270
|
+
false: {
|
|
271
|
+
description: "transition-colors !duration-150 motion-reduce:transition-none"
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
defaultVariants: {
|
|
276
|
+
isInvalid: false,
|
|
277
|
+
isRequired: false,
|
|
278
|
+
disableAnimation: false
|
|
250
279
|
}
|
|
251
280
|
});
|
|
252
281
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.js
CHANGED
|
@@ -2623,6 +2623,12 @@ var checkbox = tv({
|
|
|
2623
2623
|
base: "opacity-disabled pointer-events-none"
|
|
2624
2624
|
}
|
|
2625
2625
|
},
|
|
2626
|
+
isInvalid: {
|
|
2627
|
+
true: {
|
|
2628
|
+
wrapper: "before:border-danger",
|
|
2629
|
+
label: "text-danger"
|
|
2630
|
+
}
|
|
2631
|
+
},
|
|
2626
2632
|
disableAnimation: {
|
|
2627
2633
|
true: {
|
|
2628
2634
|
wrapper: "transition-none",
|
|
@@ -2631,15 +2637,16 @@ var checkbox = tv({
|
|
|
2631
2637
|
},
|
|
2632
2638
|
false: {
|
|
2633
2639
|
wrapper: [
|
|
2634
|
-
"before:transition-
|
|
2640
|
+
"before:transition-colors",
|
|
2635
2641
|
"group-data-[pressed=true]:scale-95",
|
|
2636
2642
|
"transition-transform",
|
|
2637
2643
|
"after:transition-transform-opacity",
|
|
2638
2644
|
"after:!ease-linear",
|
|
2639
|
-
"after:!duration-200"
|
|
2645
|
+
"after:!duration-200",
|
|
2646
|
+
"motion-reduce:transition-none"
|
|
2640
2647
|
],
|
|
2641
|
-
icon: "transition-opacity",
|
|
2642
|
-
label: "transition-opacity before:transition-width"
|
|
2648
|
+
icon: "transition-opacity motion-reduce:transition-none",
|
|
2649
|
+
label: "transition-colors-opacity before:transition-width motion-reduce:transition-none"
|
|
2643
2650
|
}
|
|
2644
2651
|
}
|
|
2645
2652
|
},
|
|
@@ -2658,6 +2665,29 @@ var checkboxGroup = tv({
|
|
|
2658
2665
|
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",
|
|
2659
2666
|
description: "text-small text-foreground-400",
|
|
2660
2667
|
errorMessage: "text-small text-danger"
|
|
2668
|
+
},
|
|
2669
|
+
variants: {
|
|
2670
|
+
isRequired: {
|
|
2671
|
+
true: {
|
|
2672
|
+
label: "after:content-['*'] after:text-danger after:ml-0.5"
|
|
2673
|
+
}
|
|
2674
|
+
},
|
|
2675
|
+
isInvalid: {
|
|
2676
|
+
true: {
|
|
2677
|
+
description: "text-danger"
|
|
2678
|
+
}
|
|
2679
|
+
},
|
|
2680
|
+
disableAnimation: {
|
|
2681
|
+
true: {},
|
|
2682
|
+
false: {
|
|
2683
|
+
description: "transition-colors !duration-150 motion-reduce:transition-none"
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
},
|
|
2687
|
+
defaultVariants: {
|
|
2688
|
+
isInvalid: false,
|
|
2689
|
+
isRequired: false,
|
|
2690
|
+
disableAnimation: false
|
|
2661
2691
|
}
|
|
2662
2692
|
});
|
|
2663
2693
|
|
|
@@ -2761,8 +2791,14 @@ var radio = tv({
|
|
|
2761
2791
|
disableAnimation: {
|
|
2762
2792
|
true: {},
|
|
2763
2793
|
false: {
|
|
2764
|
-
wrapper: [
|
|
2765
|
-
|
|
2794
|
+
wrapper: [
|
|
2795
|
+
"group-data-[pressed=true]:scale-95",
|
|
2796
|
+
"transition-transform-colors",
|
|
2797
|
+
"motion-reduce:transition-none"
|
|
2798
|
+
],
|
|
2799
|
+
control: "transition-transform-opacity motion-reduce:transition-none",
|
|
2800
|
+
label: "transition-colors motion-reduce:transition-none",
|
|
2801
|
+
description: "transition-colors motion-reduce:transition-none"
|
|
2766
2802
|
}
|
|
2767
2803
|
}
|
|
2768
2804
|
},
|
|
@@ -2781,6 +2817,29 @@ var radioGroup = tv({
|
|
|
2781
2817
|
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",
|
|
2782
2818
|
description: "text-tiny text-foreground-400",
|
|
2783
2819
|
errorMessage: "text-tiny text-danger"
|
|
2820
|
+
},
|
|
2821
|
+
variants: {
|
|
2822
|
+
isRequired: {
|
|
2823
|
+
true: {
|
|
2824
|
+
label: "after:content-['*'] after:text-danger after:ml-0.5"
|
|
2825
|
+
}
|
|
2826
|
+
},
|
|
2827
|
+
isInvalid: {
|
|
2828
|
+
true: {
|
|
2829
|
+
description: "text-danger"
|
|
2830
|
+
}
|
|
2831
|
+
},
|
|
2832
|
+
disableAnimation: {
|
|
2833
|
+
true: {},
|
|
2834
|
+
false: {
|
|
2835
|
+
description: "transition-colors !duration-150 motion-reduce:transition-none"
|
|
2836
|
+
}
|
|
2837
|
+
}
|
|
2838
|
+
},
|
|
2839
|
+
defaultVariants: {
|
|
2840
|
+
isInvalid: false,
|
|
2841
|
+
isRequired: false,
|
|
2842
|
+
disableAnimation: false
|
|
2784
2843
|
}
|
|
2785
2844
|
});
|
|
2786
2845
|
|
package/dist/index.mjs
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
radio,
|
|
25
25
|
radioGroup
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EQIZ7W7V.mjs";
|
|
27
27
|
import {
|
|
28
28
|
scrollShadow
|
|
29
29
|
} from "./chunk-4JBYJQSP.mjs";
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
import {
|
|
110
110
|
checkbox,
|
|
111
111
|
checkboxGroup
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-5VJPQADB.mjs";
|
|
113
113
|
import "./chunk-CMYR6AOY.mjs";
|
|
114
114
|
import "./chunk-K7LK7NCE.mjs";
|
|
115
115
|
import {
|