@nextui-org/theme 2.2.10 → 2.2.11
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-XEPPBQPJ.mjs → chunk-22SLLLIZ.mjs} +16 -16
- package/dist/{chunk-WJIRIXV4.mjs → chunk-ARYJFX77.mjs} +22 -31
- package/dist/{chunk-4MIBATA4.mjs → chunk-JYFVXE5E.mjs} +12 -12
- package/dist/{chunk-OUNBTYJ7.mjs → chunk-KUKJUMC3.mjs} +8 -8
- package/dist/{chunk-FE2UYWMQ.mjs → chunk-M3GQ3DWZ.mjs} +32 -42
- package/dist/{chunk-I33PMOA3.mjs → chunk-QWWVIX6M.mjs} +43 -43
- package/dist/{chunk-BOVVTMHS.mjs → chunk-TA7PDZUG.mjs} +4 -4
- package/dist/{chunk-TSTU52NB.mjs → chunk-WGH4WKVU.mjs} +3 -3
- package/dist/components/autocomplete.js +4 -4
- package/dist/components/autocomplete.mjs +1 -1
- package/dist/components/checkbox.js +8 -8
- package/dist/components/checkbox.mjs +1 -1
- package/dist/components/date-input.js +16 -16
- package/dist/components/date-input.mjs +1 -1
- package/dist/components/date-picker.js +3 -3
- package/dist/components/date-picker.mjs +1 -1
- package/dist/components/index.js +140 -159
- package/dist/components/index.mjs +8 -8
- package/dist/components/input.js +43 -43
- package/dist/components/input.mjs +1 -1
- package/dist/components/radio.js +12 -12
- package/dist/components/radio.mjs +1 -1
- package/dist/components/select.js +32 -42
- package/dist/components/select.mjs +1 -1
- package/dist/components/toggle.js +22 -31
- package/dist/components/toggle.mjs +1 -1
- package/dist/index.js +140 -159
- package/dist/index.mjs +8 -8
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "../chunk-42JWJWWX.mjs";
|
|
5
5
|
import {
|
|
6
6
|
toggle
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-ARYJFX77.mjs";
|
|
8
8
|
import {
|
|
9
9
|
user
|
|
10
10
|
} from "../chunk-BJ6IKX32.mjs";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "../chunk-EF6G67MF.mjs";
|
|
14
14
|
import {
|
|
15
15
|
select
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-M3GQ3DWZ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
skeleton
|
|
19
19
|
} from "../chunk-UDSOWFZE.mjs";
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
import {
|
|
57
57
|
radio,
|
|
58
58
|
radioGroup
|
|
59
|
-
} from "../chunk-
|
|
59
|
+
} from "../chunk-JYFVXE5E.mjs";
|
|
60
60
|
import {
|
|
61
61
|
divider
|
|
62
62
|
} from "../chunk-A2DU46QS.mjs";
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
} from "../chunk-U6G6SZ26.mjs";
|
|
75
75
|
import {
|
|
76
76
|
input
|
|
77
|
-
} from "../chunk-
|
|
77
|
+
} from "../chunk-QWWVIX6M.mjs";
|
|
78
78
|
import {
|
|
79
79
|
kbd
|
|
80
80
|
} from "../chunk-F4AOWB64.mjs";
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
import {
|
|
92
92
|
checkbox,
|
|
93
93
|
checkboxGroup
|
|
94
|
-
} from "../chunk-
|
|
94
|
+
} from "../chunk-KUKJUMC3.mjs";
|
|
95
95
|
import {
|
|
96
96
|
chip
|
|
97
97
|
} from "../chunk-MP2JYSMR.mjs";
|
|
@@ -103,18 +103,18 @@ import {
|
|
|
103
103
|
} from "../chunk-PWJWH4MD.mjs";
|
|
104
104
|
import {
|
|
105
105
|
dateInput
|
|
106
|
-
} from "../chunk-
|
|
106
|
+
} from "../chunk-22SLLLIZ.mjs";
|
|
107
107
|
import {
|
|
108
108
|
datePicker,
|
|
109
109
|
dateRangePicker
|
|
110
|
-
} from "../chunk-
|
|
110
|
+
} from "../chunk-WGH4WKVU.mjs";
|
|
111
111
|
import {
|
|
112
112
|
accordion,
|
|
113
113
|
accordionItem
|
|
114
114
|
} from "../chunk-MVG7GLBD.mjs";
|
|
115
115
|
import {
|
|
116
116
|
autocomplete
|
|
117
|
-
} from "../chunk-
|
|
117
|
+
} from "../chunk-TA7PDZUG.mjs";
|
|
118
118
|
import {
|
|
119
119
|
avatar,
|
|
120
120
|
avatarGroup
|
package/dist/components/input.js
CHANGED
|
@@ -83,7 +83,7 @@ var groupDataFocusVisibleClasses = [
|
|
|
83
83
|
// src/components/input.ts
|
|
84
84
|
var input = tv({
|
|
85
85
|
slots: {
|
|
86
|
-
base: "group
|
|
86
|
+
base: "group flex flex-col data-[hidden=true]:hidden",
|
|
87
87
|
label: [
|
|
88
88
|
"absolute",
|
|
89
89
|
"z-10",
|
|
@@ -123,7 +123,7 @@ var input = tv({
|
|
|
123
123
|
"rounded-full",
|
|
124
124
|
...dataFocusVisibleClasses
|
|
125
125
|
],
|
|
126
|
-
helperWrapper: "hidden group-data-[has-helper=true]
|
|
126
|
+
helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
|
|
127
127
|
description: "text-tiny text-foreground-400",
|
|
128
128
|
errorMessage: "text-tiny text-danger"
|
|
129
129
|
},
|
|
@@ -133,7 +133,7 @@ var input = tv({
|
|
|
133
133
|
inputWrapper: [
|
|
134
134
|
"bg-default-100",
|
|
135
135
|
"data-[hover=true]:bg-default-200",
|
|
136
|
-
"group-data-[focus=true]
|
|
136
|
+
"group-data-[focus=true]:bg-default-100"
|
|
137
137
|
]
|
|
138
138
|
},
|
|
139
139
|
faded: {
|
|
@@ -143,14 +143,14 @@ var input = tv({
|
|
|
143
143
|
"border-default-200",
|
|
144
144
|
"data-[hover=true]:border-default-400"
|
|
145
145
|
],
|
|
146
|
-
value: "group-data-[has-value=true]
|
|
146
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
147
147
|
},
|
|
148
148
|
bordered: {
|
|
149
149
|
inputWrapper: [
|
|
150
150
|
"border-medium",
|
|
151
151
|
"border-default-200",
|
|
152
152
|
"data-[hover=true]:border-default-400",
|
|
153
|
-
"group-data-[focus=true]
|
|
153
|
+
"group-data-[focus=true]:border-default-foreground"
|
|
154
154
|
]
|
|
155
155
|
},
|
|
156
156
|
underlined: {
|
|
@@ -174,10 +174,10 @@ var input = tv({
|
|
|
174
174
|
"after:-translate-x-1/2",
|
|
175
175
|
"after:-bottom-[2px]",
|
|
176
176
|
"after:h-[2px]",
|
|
177
|
-
"group-data-[focus=true]
|
|
177
|
+
"group-data-[focus=true]:after:w-full"
|
|
178
178
|
],
|
|
179
179
|
innerWrapper: "pb-1",
|
|
180
|
-
label: "group-data-[filled-within=true]
|
|
180
|
+
label: "group-data-[filled-within=true]:text-foreground"
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
183
|
color: {
|
|
@@ -236,7 +236,7 @@ var input = tv({
|
|
|
236
236
|
inside: {
|
|
237
237
|
label: "text-tiny cursor-text",
|
|
238
238
|
inputWrapper: "flex-col items-start justify-center gap-0",
|
|
239
|
-
innerWrapper: "group-data-[has-label=true]
|
|
239
|
+
innerWrapper: "group-data-[has-label=true]:items-end"
|
|
240
240
|
}
|
|
241
241
|
},
|
|
242
242
|
fullWidth: {
|
|
@@ -272,7 +272,7 @@ var input = tv({
|
|
|
272
272
|
true: {
|
|
273
273
|
label: "relative",
|
|
274
274
|
inputWrapper: "!h-auto",
|
|
275
|
-
innerWrapper: "items-start group-data-[has-label=true]
|
|
275
|
+
innerWrapper: "items-start group-data-[has-label=true]:items-start",
|
|
276
276
|
input: "resize-none data-[hide-scroll=true]:scrollbar-hide"
|
|
277
277
|
}
|
|
278
278
|
},
|
|
@@ -309,7 +309,7 @@ var input = tv({
|
|
|
309
309
|
variant: "flat",
|
|
310
310
|
color: "default",
|
|
311
311
|
class: {
|
|
312
|
-
input: "group-data-[has-value=true]
|
|
312
|
+
input: "group-data-[has-value=true]:text-default-foreground"
|
|
313
313
|
}
|
|
314
314
|
},
|
|
315
315
|
{
|
|
@@ -320,7 +320,7 @@ var input = tv({
|
|
|
320
320
|
"bg-primary-50",
|
|
321
321
|
"data-[hover=true]:bg-primary-100",
|
|
322
322
|
"text-primary",
|
|
323
|
-
"group-data-[focus=true]
|
|
323
|
+
"group-data-[focus=true]:bg-primary-50",
|
|
324
324
|
"placeholder:text-primary"
|
|
325
325
|
],
|
|
326
326
|
input: "placeholder:text-primary",
|
|
@@ -335,7 +335,7 @@ var input = tv({
|
|
|
335
335
|
"bg-secondary-50",
|
|
336
336
|
"text-secondary",
|
|
337
337
|
"data-[hover=true]:bg-secondary-100",
|
|
338
|
-
"group-data-[focus=true]
|
|
338
|
+
"group-data-[focus=true]:bg-secondary-50",
|
|
339
339
|
"placeholder:text-secondary"
|
|
340
340
|
],
|
|
341
341
|
input: "placeholder:text-secondary",
|
|
@@ -353,7 +353,7 @@ var input = tv({
|
|
|
353
353
|
"placeholder:text-success-600",
|
|
354
354
|
"dark:placeholder:text-success",
|
|
355
355
|
"data-[hover=true]:bg-success-100",
|
|
356
|
-
"group-data-[focus=true]
|
|
356
|
+
"group-data-[focus=true]:bg-success-50"
|
|
357
357
|
],
|
|
358
358
|
input: "placeholder:text-success-600 dark:placeholder:text-success",
|
|
359
359
|
label: "text-success-600 dark:text-success"
|
|
@@ -370,7 +370,7 @@ var input = tv({
|
|
|
370
370
|
"placeholder:text-warning-600",
|
|
371
371
|
"dark:placeholder:text-warning",
|
|
372
372
|
"data-[hover=true]:bg-warning-100",
|
|
373
|
-
"group-data-[focus=true]
|
|
373
|
+
"group-data-[focus=true]:bg-warning-50"
|
|
374
374
|
],
|
|
375
375
|
input: "placeholder:text-warning-600 dark:placeholder:text-warning",
|
|
376
376
|
label: "text-warning-600 dark:text-warning"
|
|
@@ -387,7 +387,7 @@ var input = tv({
|
|
|
387
387
|
"placeholder:text-danger",
|
|
388
388
|
"dark:placeholder:text-danger-500",
|
|
389
389
|
"data-[hover=true]:bg-danger-100",
|
|
390
|
-
"group-data-[focus=true]
|
|
390
|
+
"group-data-[focus=true]:bg-danger-50"
|
|
391
391
|
],
|
|
392
392
|
input: "placeholder:text-danger dark:placeholder:text-danger-500",
|
|
393
393
|
label: "text-danger dark:text-danger-500"
|
|
@@ -437,7 +437,7 @@ var input = tv({
|
|
|
437
437
|
variant: "underlined",
|
|
438
438
|
color: "default",
|
|
439
439
|
class: {
|
|
440
|
-
input: "group-data-[has-value=true]
|
|
440
|
+
input: "group-data-[has-value=true]:text-foreground"
|
|
441
441
|
}
|
|
442
442
|
},
|
|
443
443
|
{
|
|
@@ -484,7 +484,7 @@ var input = tv({
|
|
|
484
484
|
variant: "bordered",
|
|
485
485
|
color: "primary",
|
|
486
486
|
class: {
|
|
487
|
-
inputWrapper: "group-data-[focus=true]
|
|
487
|
+
inputWrapper: "group-data-[focus=true]:border-primary",
|
|
488
488
|
label: "text-primary"
|
|
489
489
|
}
|
|
490
490
|
},
|
|
@@ -492,7 +492,7 @@ var input = tv({
|
|
|
492
492
|
variant: "bordered",
|
|
493
493
|
color: "secondary",
|
|
494
494
|
class: {
|
|
495
|
-
inputWrapper: "group-data-[focus=true]
|
|
495
|
+
inputWrapper: "group-data-[focus=true]:border-secondary",
|
|
496
496
|
label: "text-secondary"
|
|
497
497
|
}
|
|
498
498
|
},
|
|
@@ -500,7 +500,7 @@ var input = tv({
|
|
|
500
500
|
variant: "bordered",
|
|
501
501
|
color: "success",
|
|
502
502
|
class: {
|
|
503
|
-
inputWrapper: "group-data-[focus=true]
|
|
503
|
+
inputWrapper: "group-data-[focus=true]:border-success",
|
|
504
504
|
label: "text-success"
|
|
505
505
|
}
|
|
506
506
|
},
|
|
@@ -508,7 +508,7 @@ var input = tv({
|
|
|
508
508
|
variant: "bordered",
|
|
509
509
|
color: "warning",
|
|
510
510
|
class: {
|
|
511
|
-
inputWrapper: "group-data-[focus=true]
|
|
511
|
+
inputWrapper: "group-data-[focus=true]:border-warning",
|
|
512
512
|
label: "text-warning"
|
|
513
513
|
}
|
|
514
514
|
},
|
|
@@ -516,7 +516,7 @@ var input = tv({
|
|
|
516
516
|
variant: "bordered",
|
|
517
517
|
color: "danger",
|
|
518
518
|
class: {
|
|
519
|
-
inputWrapper: "group-data-[focus=true]
|
|
519
|
+
inputWrapper: "group-data-[focus=true]:border-danger",
|
|
520
520
|
label: "text-danger"
|
|
521
521
|
}
|
|
522
522
|
},
|
|
@@ -524,14 +524,14 @@ var input = tv({
|
|
|
524
524
|
labelPlacement: "inside",
|
|
525
525
|
color: "default",
|
|
526
526
|
class: {
|
|
527
|
-
label: "group-data-[filled-within=true]
|
|
527
|
+
label: "group-data-[filled-within=true]:text-default-600"
|
|
528
528
|
}
|
|
529
529
|
},
|
|
530
530
|
{
|
|
531
531
|
labelPlacement: "outside",
|
|
532
532
|
color: "default",
|
|
533
533
|
class: {
|
|
534
|
-
label: "group-data-[filled-within=true]
|
|
534
|
+
label: "group-data-[filled-within=true]:text-foreground"
|
|
535
535
|
}
|
|
536
536
|
},
|
|
537
537
|
{
|
|
@@ -584,7 +584,7 @@ var input = tv({
|
|
|
584
584
|
inputWrapper: [
|
|
585
585
|
"!bg-danger-50",
|
|
586
586
|
"data-[hover=true]:!bg-danger-100",
|
|
587
|
-
"group-data-[focus=true]
|
|
587
|
+
"group-data-[focus=true]:!bg-danger-50"
|
|
588
588
|
]
|
|
589
589
|
}
|
|
590
590
|
},
|
|
@@ -592,7 +592,7 @@ var input = tv({
|
|
|
592
592
|
isInvalid: true,
|
|
593
593
|
variant: "bordered",
|
|
594
594
|
class: {
|
|
595
|
-
inputWrapper: "!border-danger group-data-[focus=true]
|
|
595
|
+
inputWrapper: "!border-danger group-data-[focus=true]:!border-danger"
|
|
596
596
|
}
|
|
597
597
|
},
|
|
598
598
|
{
|
|
@@ -635,7 +635,7 @@ var input = tv({
|
|
|
635
635
|
{
|
|
636
636
|
labelPlacement: ["inside", "outside"],
|
|
637
637
|
class: {
|
|
638
|
-
label: ["group-data-[filled-within=true]
|
|
638
|
+
label: ["group-data-[filled-within=true]:pointer-events-auto"]
|
|
639
639
|
}
|
|
640
640
|
},
|
|
641
641
|
{
|
|
@@ -648,14 +648,14 @@ var input = tv({
|
|
|
648
648
|
"z-20",
|
|
649
649
|
"top-1/2",
|
|
650
650
|
"-translate-y-1/2",
|
|
651
|
-
"group-data-[filled-within=true]
|
|
651
|
+
"group-data-[filled-within=true]:start-0"
|
|
652
652
|
]
|
|
653
653
|
}
|
|
654
654
|
},
|
|
655
655
|
{
|
|
656
656
|
labelPlacement: ["inside"],
|
|
657
657
|
class: {
|
|
658
|
-
label: ["group-data-[filled-within=true]
|
|
658
|
+
label: ["group-data-[filled-within=true]:scale-85"]
|
|
659
659
|
}
|
|
660
660
|
},
|
|
661
661
|
{
|
|
@@ -692,7 +692,7 @@ var input = tv({
|
|
|
692
692
|
size: "sm",
|
|
693
693
|
class: {
|
|
694
694
|
label: [
|
|
695
|
-
"group-data-[filled-within=true]
|
|
695
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"
|
|
696
696
|
]
|
|
697
697
|
}
|
|
698
698
|
},
|
|
@@ -702,7 +702,7 @@ var input = tv({
|
|
|
702
702
|
size: "md",
|
|
703
703
|
class: {
|
|
704
704
|
label: [
|
|
705
|
-
"group-data-[filled-within=true]
|
|
705
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
706
706
|
]
|
|
707
707
|
}
|
|
708
708
|
},
|
|
@@ -713,7 +713,7 @@ var input = tv({
|
|
|
713
713
|
class: {
|
|
714
714
|
label: [
|
|
715
715
|
"text-medium",
|
|
716
|
-
"group-data-[filled-within=true]
|
|
716
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
717
717
|
]
|
|
718
718
|
}
|
|
719
719
|
},
|
|
@@ -724,7 +724,7 @@ var input = tv({
|
|
|
724
724
|
size: "sm",
|
|
725
725
|
class: {
|
|
726
726
|
label: [
|
|
727
|
-
"group-data-[filled-within=true]
|
|
727
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
728
728
|
]
|
|
729
729
|
}
|
|
730
730
|
},
|
|
@@ -735,7 +735,7 @@ var input = tv({
|
|
|
735
735
|
size: "md",
|
|
736
736
|
class: {
|
|
737
737
|
label: [
|
|
738
|
-
"group-data-[filled-within=true]
|
|
738
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
739
739
|
]
|
|
740
740
|
}
|
|
741
741
|
},
|
|
@@ -747,7 +747,7 @@ var input = tv({
|
|
|
747
747
|
class: {
|
|
748
748
|
label: [
|
|
749
749
|
"text-medium",
|
|
750
|
-
"group-data-[filled-within=true]
|
|
750
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
751
751
|
]
|
|
752
752
|
}
|
|
753
753
|
},
|
|
@@ -758,7 +758,7 @@ var input = tv({
|
|
|
758
758
|
size: "sm",
|
|
759
759
|
class: {
|
|
760
760
|
label: [
|
|
761
|
-
"group-data-[filled-within=true]
|
|
761
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"
|
|
762
762
|
]
|
|
763
763
|
}
|
|
764
764
|
},
|
|
@@ -769,7 +769,7 @@ var input = tv({
|
|
|
769
769
|
size: "md",
|
|
770
770
|
class: {
|
|
771
771
|
label: [
|
|
772
|
-
"group-data-[filled-within=true]
|
|
772
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
773
773
|
]
|
|
774
774
|
}
|
|
775
775
|
},
|
|
@@ -781,7 +781,7 @@ var input = tv({
|
|
|
781
781
|
class: {
|
|
782
782
|
label: [
|
|
783
783
|
"text-medium",
|
|
784
|
-
"group-data-[filled-within=true]
|
|
784
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
785
785
|
]
|
|
786
786
|
}
|
|
787
787
|
},
|
|
@@ -793,7 +793,7 @@ var input = tv({
|
|
|
793
793
|
label: [
|
|
794
794
|
"start-2",
|
|
795
795
|
"text-tiny",
|
|
796
|
-
"group-data-[filled-within=true]
|
|
796
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
797
797
|
],
|
|
798
798
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
799
799
|
}
|
|
@@ -807,7 +807,7 @@ var input = tv({
|
|
|
807
807
|
"start-3",
|
|
808
808
|
"end-auto",
|
|
809
809
|
"text-small",
|
|
810
|
-
"group-data-[filled-within=true]
|
|
810
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
811
811
|
],
|
|
812
812
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
813
813
|
}
|
|
@@ -821,7 +821,7 @@ var input = tv({
|
|
|
821
821
|
"start-3",
|
|
822
822
|
"end-auto",
|
|
823
823
|
"text-medium",
|
|
824
|
-
"group-data-[filled-within=true]
|
|
824
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
825
825
|
],
|
|
826
826
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
827
827
|
}
|
|
@@ -830,21 +830,21 @@ var input = tv({
|
|
|
830
830
|
labelPlacement: "outside-left",
|
|
831
831
|
size: "sm",
|
|
832
832
|
class: {
|
|
833
|
-
label: "group-data-[has-helper=true]
|
|
833
|
+
label: "group-data-[has-helper=true]:pt-2"
|
|
834
834
|
}
|
|
835
835
|
},
|
|
836
836
|
{
|
|
837
837
|
labelPlacement: "outside-left",
|
|
838
838
|
size: "md",
|
|
839
839
|
class: {
|
|
840
|
-
label: "group-data-[has-helper=true]
|
|
840
|
+
label: "group-data-[has-helper=true]:pt-3"
|
|
841
841
|
}
|
|
842
842
|
},
|
|
843
843
|
{
|
|
844
844
|
labelPlacement: "outside-left",
|
|
845
845
|
size: "lg",
|
|
846
846
|
class: {
|
|
847
|
-
label: "group-data-[has-helper=true]
|
|
847
|
+
label: "group-data-[has-helper=true]:pt-4"
|
|
848
848
|
}
|
|
849
849
|
},
|
|
850
850
|
{
|
package/dist/components/radio.js
CHANGED
|
@@ -77,7 +77,7 @@ var groupDataFocusVisibleClasses = [
|
|
|
77
77
|
// src/components/radio.ts
|
|
78
78
|
var radio = tv({
|
|
79
79
|
slots: {
|
|
80
|
-
base: "group
|
|
80
|
+
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
|
|
81
81
|
wrapper: [
|
|
82
82
|
"relative",
|
|
83
83
|
"inline-flex",
|
|
@@ -90,7 +90,7 @@ var radio = tv({
|
|
|
90
90
|
"box-border",
|
|
91
91
|
"border-default",
|
|
92
92
|
"rounded-full",
|
|
93
|
-
"group-data-[hover-unselected=true]
|
|
93
|
+
"group-data-[hover-unselected=true]:bg-default-100",
|
|
94
94
|
...groupDataFocusVisibleClasses
|
|
95
95
|
],
|
|
96
96
|
labelWrapper: "flex flex-col ml-1",
|
|
@@ -102,8 +102,8 @@ var radio = tv({
|
|
|
102
102
|
"scale-0",
|
|
103
103
|
"origin-center",
|
|
104
104
|
"rounded-full",
|
|
105
|
-
"group-data-[selected=true]
|
|
106
|
-
"group-data-[selected=true]
|
|
105
|
+
"group-data-[selected=true]:opacity-100",
|
|
106
|
+
"group-data-[selected=true]:scale-100"
|
|
107
107
|
],
|
|
108
108
|
label: "relative text-foreground select-none",
|
|
109
109
|
description: "relative text-foreground-400"
|
|
@@ -112,27 +112,27 @@ var radio = tv({
|
|
|
112
112
|
color: {
|
|
113
113
|
default: {
|
|
114
114
|
control: "bg-default-500 text-default-foreground",
|
|
115
|
-
wrapper: "group-data-[selected=true]
|
|
115
|
+
wrapper: "group-data-[selected=true]:border-default-500"
|
|
116
116
|
},
|
|
117
117
|
primary: {
|
|
118
118
|
control: "bg-primary text-primary-foreground",
|
|
119
|
-
wrapper: "group-data-[selected=true]
|
|
119
|
+
wrapper: "group-data-[selected=true]:border-primary"
|
|
120
120
|
},
|
|
121
121
|
secondary: {
|
|
122
122
|
control: "bg-secondary text-secondary-foreground",
|
|
123
|
-
wrapper: "group-data-[selected=true]
|
|
123
|
+
wrapper: "group-data-[selected=true]:border-secondary"
|
|
124
124
|
},
|
|
125
125
|
success: {
|
|
126
126
|
control: "bg-success text-success-foreground",
|
|
127
|
-
wrapper: "group-data-[selected=true]
|
|
127
|
+
wrapper: "group-data-[selected=true]:border-success"
|
|
128
128
|
},
|
|
129
129
|
warning: {
|
|
130
130
|
control: "bg-warning text-warning-foreground",
|
|
131
|
-
wrapper: "group-data-[selected=true]
|
|
131
|
+
wrapper: "group-data-[selected=true]:border-warning"
|
|
132
132
|
},
|
|
133
133
|
danger: {
|
|
134
134
|
control: "bg-danger text-danger-foreground",
|
|
135
|
-
wrapper: "group-data-[selected=true]
|
|
135
|
+
wrapper: "group-data-[selected=true]:border-danger"
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
138
|
size: {
|
|
@@ -166,7 +166,7 @@ var radio = tv({
|
|
|
166
166
|
isInvalid: {
|
|
167
167
|
true: {
|
|
168
168
|
control: "bg-danger text-danger-foreground",
|
|
169
|
-
wrapper: "border-danger group-data-[selected=true]
|
|
169
|
+
wrapper: "border-danger group-data-[selected=true]:border-danger",
|
|
170
170
|
label: "text-danger",
|
|
171
171
|
description: "text-danger-300"
|
|
172
172
|
}
|
|
@@ -175,7 +175,7 @@ var radio = tv({
|
|
|
175
175
|
true: {},
|
|
176
176
|
false: {
|
|
177
177
|
wrapper: [
|
|
178
|
-
"group-data-[pressed=true]
|
|
178
|
+
"group-data-[pressed=true]:scale-95",
|
|
179
179
|
"transition-transform-colors",
|
|
180
180
|
"motion-reduce:transition-none"
|
|
181
181
|
],
|