@nextui-org/theme 2.2.8 → 2.2.10
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-726LN7M3.mjs → chunk-3LD7T42T.mjs} +1 -1
- package/dist/{chunk-GDIZAU4E.mjs → chunk-42JWJWWX.mjs} +1 -1
- package/dist/{chunk-A4VDWEXY.mjs → chunk-4MIBATA4.mjs} +12 -12
- package/dist/{chunk-DXPS72CE.mjs → chunk-63NMFZTF.mjs} +12 -7
- package/dist/{chunk-4YQYZDME.mjs → chunk-7YPXCOW5.mjs} +1 -1
- package/dist/{chunk-KKN74BUG.mjs → chunk-BOVVTMHS.mjs} +7 -3
- package/dist/{chunk-2PIR7DFM.mjs → chunk-BZCSOIUI.mjs} +12 -12
- package/dist/{chunk-DZGYN4XH.mjs → chunk-FE2UYWMQ.mjs} +57 -64
- package/dist/{chunk-ARFD2V3F.mjs → chunk-I33PMOA3.mjs} +52 -55
- package/dist/{chunk-YSA7EQBH.mjs → chunk-JFWA3DGK.mjs} +2 -2
- package/dist/{chunk-NPRQPDVP.mjs → chunk-KPI62GDB.mjs} +4 -4
- package/dist/{chunk-XT44N6I6.mjs → chunk-LSQXJEPE.mjs} +9 -27
- package/dist/{chunk-GFTQERGX.mjs → chunk-MP2JYSMR.mjs} +1 -1
- package/dist/{chunk-5AGRECY5.mjs → chunk-OUNBTYJ7.mjs} +8 -8
- package/dist/{chunk-N4MWCCMM.mjs → chunk-P73E5YV7.mjs} +3 -2
- package/dist/{chunk-BT3FGTF7.mjs → chunk-PWJWH4MD.mjs} +1 -1
- package/dist/{chunk-SKQWKT6K.mjs → chunk-QV3ALCMB.mjs} +1 -1
- package/dist/{chunk-HZX5JB5L.mjs → chunk-R27WO3A6.mjs} +1 -1
- package/dist/{chunk-WGH4WKVU.mjs → chunk-TSTU52NB.mjs} +3 -3
- package/dist/{chunk-D7H5R3VL.mjs → chunk-UDSOWFZE.mjs} +2 -2
- package/dist/{chunk-WUUKIKPR.mjs → chunk-WJIRIXV4.mjs} +31 -22
- package/dist/{chunk-HPFX3B3F.mjs → chunk-WN6AL2BX.mjs} +2 -2
- package/dist/{chunk-CKTE75OS.mjs → chunk-XAYP4CR3.mjs} +1 -1
- package/dist/{chunk-22SLLLIZ.mjs → chunk-XEPPBQPJ.mjs} +16 -16
- package/dist/{chunk-IISEDJRF.mjs → chunk-XL6AWNU3.mjs} +1 -1
- package/dist/{chunk-MERQJVXF.mjs → chunk-XXQSA25O.mjs} +19 -7
- package/dist/components/accordion.mjs +1 -1
- package/dist/components/autocomplete.js +7 -3
- package/dist/components/autocomplete.mjs +1 -1
- package/dist/components/avatar.js +12 -12
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/badge.js +12 -12
- package/dist/components/badge.mjs +2 -2
- package/dist/components/breadcrumbs.mjs +1 -1
- package/dist/components/button.js +30 -18
- package/dist/components/button.mjs +2 -2
- package/dist/components/calendar.d.ts +6 -6
- package/dist/components/calendar.js +4 -4
- package/dist/components/calendar.mjs +2 -2
- package/dist/components/card.mjs +1 -1
- package/dist/components/checkbox.js +8 -8
- package/dist/components/checkbox.mjs +2 -2
- package/dist/components/chip.js +12 -12
- package/dist/components/chip.mjs +2 -2
- package/dist/components/code.js +12 -12
- package/dist/components/code.mjs +2 -2
- 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/dropdown.mjs +1 -1
- package/dist/components/index.js +246 -243
- package/dist/components/index.mjs +23 -23
- package/dist/components/input.js +52 -55
- package/dist/components/input.mjs +2 -2
- package/dist/components/link.mjs +1 -1
- package/dist/components/listbox.js +1 -1
- package/dist/components/listbox.mjs +2 -2
- package/dist/components/menu.js +1 -1
- package/dist/components/menu.mjs +2 -2
- package/dist/components/modal.js +3 -2
- package/dist/components/modal.mjs +2 -2
- package/dist/components/navbar.mjs +1 -1
- package/dist/components/pagination.d.ts +3 -3
- package/dist/components/pagination.js +23 -18
- package/dist/components/pagination.mjs +2 -2
- package/dist/components/popover.js +12 -12
- package/dist/components/popover.mjs +2 -2
- package/dist/components/radio.js +12 -12
- package/dist/components/radio.mjs +2 -2
- package/dist/components/select.d.ts +14 -7
- package/dist/components/select.js +57 -64
- package/dist/components/select.mjs +2 -2
- package/dist/components/skeleton.js +2 -2
- package/dist/components/skeleton.mjs +1 -1
- package/dist/components/slider.mjs +1 -1
- package/dist/components/snippet.js +12 -12
- package/dist/components/snippet.mjs +2 -2
- package/dist/components/table.js +9 -27
- package/dist/components/table.mjs +2 -2
- package/dist/components/tabs.js +12 -12
- package/dist/components/tabs.mjs +2 -2
- package/dist/components/toggle.js +31 -22
- package/dist/components/toggle.mjs +2 -2
- package/dist/components/user.mjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +254 -245
- package/dist/index.mjs +34 -27
- package/dist/plugin.js +2 -2
- package/dist/plugin.mjs +3 -3
- package/dist/utilities/index.d.ts +2 -2
- package/dist/utilities/index.js +2 -2
- package/dist/utilities/index.mjs +2 -2
- package/dist/utilities/transition.d.ts +2 -2
- package/dist/utilities/transition.js +2 -2
- package/dist/utilities/transition.mjs +1 -1
- package/dist/utils/index.js +12 -12
- package/dist/utils/index.mjs +1 -1
- package/dist/utils/variants.js +12 -12
- package/dist/utils/variants.mjs +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
// src/components/radio.ts
|
|
9
9
|
var radio = tv({
|
|
10
10
|
slots: {
|
|
11
|
-
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",
|
|
11
|
+
base: "group/radio relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
|
|
12
12
|
wrapper: [
|
|
13
13
|
"relative",
|
|
14
14
|
"inline-flex",
|
|
@@ -21,7 +21,7 @@ var radio = tv({
|
|
|
21
21
|
"box-border",
|
|
22
22
|
"border-default",
|
|
23
23
|
"rounded-full",
|
|
24
|
-
"group-data-[hover-unselected=true]:bg-default-100",
|
|
24
|
+
"group-data-[hover-unselected=true]/radio:bg-default-100",
|
|
25
25
|
...groupDataFocusVisibleClasses
|
|
26
26
|
],
|
|
27
27
|
labelWrapper: "flex flex-col ml-1",
|
|
@@ -33,8 +33,8 @@ var radio = tv({
|
|
|
33
33
|
"scale-0",
|
|
34
34
|
"origin-center",
|
|
35
35
|
"rounded-full",
|
|
36
|
-
"group-data-[selected=true]:opacity-100",
|
|
37
|
-
"group-data-[selected=true]:scale-100"
|
|
36
|
+
"group-data-[selected=true]/radio:opacity-100",
|
|
37
|
+
"group-data-[selected=true]/radio:scale-100"
|
|
38
38
|
],
|
|
39
39
|
label: "relative text-foreground select-none",
|
|
40
40
|
description: "relative text-foreground-400"
|
|
@@ -43,27 +43,27 @@ var radio = tv({
|
|
|
43
43
|
color: {
|
|
44
44
|
default: {
|
|
45
45
|
control: "bg-default-500 text-default-foreground",
|
|
46
|
-
wrapper: "group-data-[selected=true]:border-default-500"
|
|
46
|
+
wrapper: "group-data-[selected=true]/radio:border-default-500"
|
|
47
47
|
},
|
|
48
48
|
primary: {
|
|
49
49
|
control: "bg-primary text-primary-foreground",
|
|
50
|
-
wrapper: "group-data-[selected=true]:border-primary"
|
|
50
|
+
wrapper: "group-data-[selected=true]/radio:border-primary"
|
|
51
51
|
},
|
|
52
52
|
secondary: {
|
|
53
53
|
control: "bg-secondary text-secondary-foreground",
|
|
54
|
-
wrapper: "group-data-[selected=true]:border-secondary"
|
|
54
|
+
wrapper: "group-data-[selected=true]/radio:border-secondary"
|
|
55
55
|
},
|
|
56
56
|
success: {
|
|
57
57
|
control: "bg-success text-success-foreground",
|
|
58
|
-
wrapper: "group-data-[selected=true]:border-success"
|
|
58
|
+
wrapper: "group-data-[selected=true]/radio:border-success"
|
|
59
59
|
},
|
|
60
60
|
warning: {
|
|
61
61
|
control: "bg-warning text-warning-foreground",
|
|
62
|
-
wrapper: "group-data-[selected=true]:border-warning"
|
|
62
|
+
wrapper: "group-data-[selected=true]/radio:border-warning"
|
|
63
63
|
},
|
|
64
64
|
danger: {
|
|
65
65
|
control: "bg-danger text-danger-foreground",
|
|
66
|
-
wrapper: "group-data-[selected=true]:border-danger"
|
|
66
|
+
wrapper: "group-data-[selected=true]/radio:border-danger"
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
size: {
|
|
@@ -97,7 +97,7 @@ var radio = tv({
|
|
|
97
97
|
isInvalid: {
|
|
98
98
|
true: {
|
|
99
99
|
control: "bg-danger text-danger-foreground",
|
|
100
|
-
wrapper: "border-danger group-data-[selected=true]:border-danger",
|
|
100
|
+
wrapper: "border-danger group-data-[selected=true]/radio:border-danger",
|
|
101
101
|
label: "text-danger",
|
|
102
102
|
description: "text-danger-300"
|
|
103
103
|
}
|
|
@@ -106,7 +106,7 @@ var radio = tv({
|
|
|
106
106
|
true: {},
|
|
107
107
|
false: {
|
|
108
108
|
wrapper: [
|
|
109
|
-
"group-data-[pressed=true]:scale-95",
|
|
109
|
+
"group-data-[pressed=true]/radio:scale-95",
|
|
110
110
|
"transition-transform-colors",
|
|
111
111
|
"motion-reduce:transition-none"
|
|
112
112
|
],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colorVariants
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BZCSOIUI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
tv
|
|
6
6
|
} from "./chunk-N2KXC5ZE.mjs";
|
|
@@ -38,7 +38,12 @@ var pagination = tv({
|
|
|
38
38
|
"pointer-events-none",
|
|
39
39
|
"z-20"
|
|
40
40
|
],
|
|
41
|
-
forwardIcon:
|
|
41
|
+
forwardIcon: [
|
|
42
|
+
"hidden",
|
|
43
|
+
"group-hover:block",
|
|
44
|
+
"group-data-[focus-visible=true]:block",
|
|
45
|
+
"data-[before=true]:rotate-180"
|
|
46
|
+
],
|
|
42
47
|
ellipsis: "group-hover:hidden group-data-[focus-visible=true]:hidden",
|
|
43
48
|
chevronNext: "rotate-180"
|
|
44
49
|
},
|
|
@@ -97,12 +102,12 @@ var pagination = tv({
|
|
|
97
102
|
wrapper: "gap-0 shadow-sm",
|
|
98
103
|
item: [
|
|
99
104
|
"shadow-none",
|
|
100
|
-
"first-of-type:rounded-
|
|
101
|
-
"last-of-type:rounded-
|
|
105
|
+
"first-of-type:rounded-e-none",
|
|
106
|
+
"last-of-type:rounded-s-none",
|
|
102
107
|
"[&:not(:first-of-type):not(:last-of-type)]:rounded-none"
|
|
103
108
|
],
|
|
104
|
-
prev: "!rounded-
|
|
105
|
-
next: "!rounded-
|
|
109
|
+
prev: "!rounded-e-none",
|
|
110
|
+
next: "!rounded-s-none"
|
|
106
111
|
}
|
|
107
112
|
},
|
|
108
113
|
isDisabled: {
|
|
@@ -191,7 +196,7 @@ var pagination = tv({
|
|
|
191
196
|
isCompact: true,
|
|
192
197
|
variant: "bordered",
|
|
193
198
|
class: {
|
|
194
|
-
item: "[&:not(:first-of-type)]:
|
|
199
|
+
item: "[&:not(:first-of-type)]:ms-[calc(theme(borderWidth.2)*-1)]"
|
|
195
200
|
}
|
|
196
201
|
},
|
|
197
202
|
{
|
|
@@ -44,7 +44,7 @@ var menuItem = tv({
|
|
|
44
44
|
"data-[focus-visible=true]:dark:ring-offset-background-content1"
|
|
45
45
|
],
|
|
46
46
|
wrapper: "w-full flex flex-col items-start justify-center",
|
|
47
|
-
title: "flex-1 text-small font-normal
|
|
47
|
+
title: "flex-1 text-small font-normal",
|
|
48
48
|
description: ["w-full", "text-tiny", "text-foreground-500", "group-hover:text-current"],
|
|
49
49
|
selectedIcon: ["text-inherit", "w-3", "h-3", "flex-shrink-0"],
|
|
50
50
|
shortcut: [
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/components/autocomplete.ts
|
|
6
6
|
var autocomplete = tv({
|
|
7
7
|
slots: {
|
|
8
|
-
base: "group inline-flex flex-column w-full",
|
|
8
|
+
base: "group/autocomplete inline-flex flex-column w-full",
|
|
9
9
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
10
10
|
listbox: "",
|
|
11
11
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
@@ -15,12 +15,16 @@ var autocomplete = tv({
|
|
|
15
15
|
"translate-x-1",
|
|
16
16
|
"cursor-text",
|
|
17
17
|
"opacity-0",
|
|
18
|
+
"pointer-events-none",
|
|
18
19
|
"text-default-500",
|
|
19
|
-
"group-data-[invalid=true]:text-danger",
|
|
20
|
+
"group-data-[invalid=true]/autocomplete:text-danger",
|
|
20
21
|
"data-[visible=true]:opacity-100",
|
|
22
|
+
"data-[visible=true]:pointer-events-auto",
|
|
21
23
|
"data-[visible=true]:cursor-pointer",
|
|
22
24
|
"sm:data-[visible=true]:opacity-0",
|
|
23
|
-
"sm:
|
|
25
|
+
"sm:data-[visible=true]:pointer-events-none",
|
|
26
|
+
"sm:group-data-[hover=true]:data-[visible=true]/autocomplete:opacity-100",
|
|
27
|
+
"sm:group-data-[hover=true]:data-[visible=true]/autocomplete:pointer-events-auto"
|
|
24
28
|
],
|
|
25
29
|
selectorButton: "text-medium"
|
|
26
30
|
},
|
|
@@ -27,12 +27,12 @@ var bordered = {
|
|
|
27
27
|
foreground: "bg-transparent border-foreground text-foreground"
|
|
28
28
|
};
|
|
29
29
|
var flat = {
|
|
30
|
-
default: "bg-default/40 text-default-
|
|
31
|
-
primary: "bg-primary/20 text-primary",
|
|
32
|
-
secondary: "bg-secondary/20 text-secondary",
|
|
33
|
-
success: "bg-success/20 text-success-
|
|
34
|
-
warning: "bg-warning/20 text-warning-
|
|
35
|
-
danger: "bg-danger/20 text-danger dark:text-danger-500",
|
|
30
|
+
default: "bg-default/40 text-default-700",
|
|
31
|
+
primary: "bg-primary/20 text-primary-700",
|
|
32
|
+
secondary: "bg-secondary/20 text-secondary-700",
|
|
33
|
+
success: "bg-success/20 text-success-800 dark:text-success",
|
|
34
|
+
warning: "bg-warning/20 text-warning-800 dark:text-warning",
|
|
35
|
+
danger: "bg-danger/20 text-danger-800 dark:text-danger-500",
|
|
36
36
|
foreground: "bg-foreground/10 text-foreground"
|
|
37
37
|
};
|
|
38
38
|
var faded = {
|
|
@@ -54,12 +54,12 @@ var light = {
|
|
|
54
54
|
foreground: "bg-transparent text-foreground"
|
|
55
55
|
};
|
|
56
56
|
var ghost = {
|
|
57
|
-
default: "border-default text-default-foreground
|
|
58
|
-
primary: "border-primary text-primary
|
|
59
|
-
secondary: "border-secondary text-secondary
|
|
60
|
-
success: "border-success text-success
|
|
61
|
-
warning: "border-warning text-warning
|
|
62
|
-
danger: "border-danger text-danger
|
|
57
|
+
default: "border-default text-default-foreground",
|
|
58
|
+
primary: "border-primary text-primary",
|
|
59
|
+
secondary: "border-secondary text-secondary",
|
|
60
|
+
success: "border-success text-success",
|
|
61
|
+
warning: "border-warning text-warning",
|
|
62
|
+
danger: "border-danger text-danger",
|
|
63
63
|
foreground: "border-foreground text-foreground hover:!bg-foreground"
|
|
64
64
|
};
|
|
65
65
|
var colorVariants = {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
// src/components/select.ts
|
|
9
9
|
var select = tv({
|
|
10
10
|
slots: {
|
|
11
|
-
base: ["group inline-flex flex-col relative w-full"],
|
|
11
|
+
base: ["group/select inline-flex flex-col relative w-full"],
|
|
12
12
|
label: [
|
|
13
13
|
"block",
|
|
14
14
|
"absolute",
|
|
@@ -23,8 +23,8 @@ var select = tv({
|
|
|
23
23
|
mainWrapper: "w-full flex flex-col",
|
|
24
24
|
trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
|
|
25
25
|
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",
|
|
26
|
-
selectorIcon: "absolute
|
|
27
|
-
spinner: "absolute
|
|
26
|
+
selectorIcon: "absolute end-3 w-4 h-4",
|
|
27
|
+
spinner: "absolute end-3",
|
|
28
28
|
value: ["text-foreground-500", "font-normal", "w-full", "text-left", "rtl:text-right"],
|
|
29
29
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
30
30
|
listbox: "",
|
|
@@ -39,17 +39,18 @@ var select = tv({
|
|
|
39
39
|
trigger: [
|
|
40
40
|
"bg-default-100",
|
|
41
41
|
"data-[hover=true]:bg-default-200",
|
|
42
|
-
"group-data-[focus=true]:bg-default-100"
|
|
42
|
+
"group-data-[focus=true]/select:bg-default-100"
|
|
43
43
|
]
|
|
44
44
|
},
|
|
45
45
|
faded: {
|
|
46
46
|
trigger: [
|
|
47
47
|
"bg-default-100",
|
|
48
|
+
"data-[hover=true]:bg-default-200",
|
|
48
49
|
"border-medium",
|
|
49
50
|
"border-default-200",
|
|
50
51
|
"data-[hover=true]:border-default-400"
|
|
51
52
|
],
|
|
52
|
-
value: "group-data-[has-value=true]:text-default-foreground"
|
|
53
|
+
value: "group-data-[has-value=true]/select:text-default-foreground"
|
|
53
54
|
},
|
|
54
55
|
bordered: {
|
|
55
56
|
trigger: [
|
|
@@ -59,7 +60,8 @@ var select = tv({
|
|
|
59
60
|
"data-[open=true]:border-default-foreground",
|
|
60
61
|
"data-[focus=true]:border-default-foreground",
|
|
61
62
|
"data-[focus=true]:border-default-foreground"
|
|
62
|
-
]
|
|
63
|
+
],
|
|
64
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
63
65
|
},
|
|
64
66
|
underlined: {
|
|
65
67
|
trigger: [
|
|
@@ -85,7 +87,7 @@ var select = tv({
|
|
|
85
87
|
"data-[open=true]:after:w-full",
|
|
86
88
|
"data-[focus=true]:after:w-full"
|
|
87
89
|
],
|
|
88
|
-
|
|
90
|
+
value: "group-data-[has-value=true]/select:text-default-foreground"
|
|
89
91
|
}
|
|
90
92
|
},
|
|
91
93
|
color: {
|
|
@@ -134,7 +136,7 @@ var select = tv({
|
|
|
134
136
|
},
|
|
135
137
|
"outside-left": {
|
|
136
138
|
base: "flex-row items-center flex-nowrap items-start",
|
|
137
|
-
label: "relative
|
|
139
|
+
label: "relative pe-2 text-foreground"
|
|
138
140
|
},
|
|
139
141
|
inside: {
|
|
140
142
|
label: "text-tiny cursor-pointer",
|
|
@@ -161,7 +163,7 @@ var select = tv({
|
|
|
161
163
|
},
|
|
162
164
|
isRequired: {
|
|
163
165
|
true: {
|
|
164
|
-
label: "after:content-['*'] after:text-danger after:
|
|
166
|
+
label: "after:content-['*'] after:text-danger after:ms-0.5"
|
|
165
167
|
}
|
|
166
168
|
},
|
|
167
169
|
isMultiline: {
|
|
@@ -216,7 +218,8 @@ var select = tv({
|
|
|
216
218
|
variant: "flat",
|
|
217
219
|
color: "default",
|
|
218
220
|
class: {
|
|
219
|
-
value: "group-data-[has-value=true]:text-default-foreground"
|
|
221
|
+
value: "group-data-[has-value=true]/select:text-default-foreground",
|
|
222
|
+
trigger: ["bg-default-100", "data-[hover=true]:bg-default-50"]
|
|
220
223
|
}
|
|
221
224
|
},
|
|
222
225
|
{
|
|
@@ -224,10 +227,10 @@ var select = tv({
|
|
|
224
227
|
color: "primary",
|
|
225
228
|
class: {
|
|
226
229
|
trigger: [
|
|
227
|
-
"bg-primary-
|
|
230
|
+
"bg-primary-100",
|
|
228
231
|
"text-primary",
|
|
229
|
-
"data-[hover=true]:bg-primary-
|
|
230
|
-
"group-data-[focus=true]:bg-primary-50"
|
|
232
|
+
"data-[hover=true]:bg-primary-50",
|
|
233
|
+
"group-data-[focus=true]/select:bg-primary-50"
|
|
231
234
|
],
|
|
232
235
|
value: "text-primary",
|
|
233
236
|
label: "text-primary"
|
|
@@ -238,10 +241,10 @@ var select = tv({
|
|
|
238
241
|
color: "secondary",
|
|
239
242
|
class: {
|
|
240
243
|
trigger: [
|
|
241
|
-
"bg-secondary-
|
|
244
|
+
"bg-secondary-100",
|
|
242
245
|
"text-secondary",
|
|
243
|
-
"data-[hover=true]:bg-secondary-
|
|
244
|
-
"group-data-[focus=true]:bg-secondary-50"
|
|
246
|
+
"data-[hover=true]:bg-secondary-50",
|
|
247
|
+
"group-data-[focus=true]/select:bg-secondary-50"
|
|
245
248
|
],
|
|
246
249
|
value: "text-secondary",
|
|
247
250
|
label: "text-secondary"
|
|
@@ -252,11 +255,11 @@ var select = tv({
|
|
|
252
255
|
color: "success",
|
|
253
256
|
class: {
|
|
254
257
|
trigger: [
|
|
255
|
-
"bg-success-
|
|
258
|
+
"bg-success-100",
|
|
256
259
|
"text-success-600",
|
|
257
260
|
"dark:text-success",
|
|
258
|
-
"data-[hover=true]:bg-success-
|
|
259
|
-
"group-data-[focus=true]:bg-success-50"
|
|
261
|
+
"data-[hover=true]:bg-success-50",
|
|
262
|
+
"group-data-[focus=true]/select:bg-success-50"
|
|
260
263
|
],
|
|
261
264
|
value: "text-success-600 dark:text-success",
|
|
262
265
|
label: "text-success-600 dark:text-success"
|
|
@@ -267,11 +270,11 @@ var select = tv({
|
|
|
267
270
|
color: "warning",
|
|
268
271
|
class: {
|
|
269
272
|
trigger: [
|
|
270
|
-
"bg-warning-
|
|
273
|
+
"bg-warning-100",
|
|
271
274
|
"text-warning-600",
|
|
272
275
|
"dark:text-warning",
|
|
273
|
-
"data-[hover=true]:bg-warning-
|
|
274
|
-
"group-data-[focus=true]:bg-warning-50"
|
|
276
|
+
"data-[hover=true]:bg-warning-50",
|
|
277
|
+
"group-data-[focus=true]/select:bg-warning-50"
|
|
275
278
|
],
|
|
276
279
|
value: "text-warning-600 dark:text-warning",
|
|
277
280
|
label: "text-warning-600 dark:text-warning"
|
|
@@ -282,11 +285,11 @@ var select = tv({
|
|
|
282
285
|
color: "danger",
|
|
283
286
|
class: {
|
|
284
287
|
trigger: [
|
|
285
|
-
"bg-danger-
|
|
288
|
+
"bg-danger-100",
|
|
286
289
|
"text-danger",
|
|
287
290
|
"dark:text-danger-500",
|
|
288
|
-
"data-[hover=true]:bg-danger-
|
|
289
|
-
"group-data-[focus=true]:bg-danger-50"
|
|
291
|
+
"data-[hover=true]:bg-danger-50",
|
|
292
|
+
"group-data-[focus=true]/select:bg-danger-50"
|
|
290
293
|
],
|
|
291
294
|
value: "text-danger dark:text-danger-500",
|
|
292
295
|
label: "text-danger dark:text-danger-500"
|
|
@@ -336,7 +339,7 @@ var select = tv({
|
|
|
336
339
|
variant: "underlined",
|
|
337
340
|
color: "default",
|
|
338
341
|
class: {
|
|
339
|
-
value: "group-data-[has-value=true]:text-foreground"
|
|
342
|
+
value: "group-data-[has-value=true]/select:text-foreground"
|
|
340
343
|
}
|
|
341
344
|
},
|
|
342
345
|
{
|
|
@@ -423,14 +426,14 @@ var select = tv({
|
|
|
423
426
|
labelPlacement: "inside",
|
|
424
427
|
color: "default",
|
|
425
428
|
class: {
|
|
426
|
-
label: "group-data-[filled=true]:text-default-600"
|
|
429
|
+
label: "group-data-[filled=true]/select:text-default-600"
|
|
427
430
|
}
|
|
428
431
|
},
|
|
429
432
|
{
|
|
430
433
|
labelPlacement: "outside",
|
|
431
434
|
color: "default",
|
|
432
435
|
class: {
|
|
433
|
-
label: "group-data-[filled=true]:text-foreground"
|
|
436
|
+
label: "group-data-[filled=true]/select:text-foreground"
|
|
434
437
|
}
|
|
435
438
|
},
|
|
436
439
|
{
|
|
@@ -483,7 +486,7 @@ var select = tv({
|
|
|
483
486
|
trigger: [
|
|
484
487
|
"bg-danger-50",
|
|
485
488
|
"data-[hover=true]:bg-danger-100",
|
|
486
|
-
"group-data-[focus=true]:bg-danger-50"
|
|
489
|
+
"group-data-[focus=true]/select:bg-danger-50"
|
|
487
490
|
]
|
|
488
491
|
}
|
|
489
492
|
},
|
|
@@ -491,7 +494,7 @@ var select = tv({
|
|
|
491
494
|
isInvalid: true,
|
|
492
495
|
variant: "bordered",
|
|
493
496
|
class: {
|
|
494
|
-
trigger: "!border-danger group-data-[focus=true]:border-danger"
|
|
497
|
+
trigger: "!border-danger group-data-[focus=true]/select:border-danger"
|
|
495
498
|
}
|
|
496
499
|
},
|
|
497
500
|
{
|
|
@@ -523,12 +526,6 @@ var select = tv({
|
|
|
523
526
|
trigger: "h-16 min-h-16 py-2.5 gap-0"
|
|
524
527
|
}
|
|
525
528
|
},
|
|
526
|
-
{
|
|
527
|
-
labelPlacement: ["inside", "outside"],
|
|
528
|
-
class: {
|
|
529
|
-
label: ["group-data-[filled=true]:pointer-events-auto"]
|
|
530
|
-
}
|
|
531
|
-
},
|
|
532
529
|
{
|
|
533
530
|
labelPlacement: "outside",
|
|
534
531
|
isMultiline: false,
|
|
@@ -539,16 +536,14 @@ var select = tv({
|
|
|
539
536
|
"z-20",
|
|
540
537
|
"top-1/2",
|
|
541
538
|
"-translate-y-1/2",
|
|
542
|
-
"group-data-[filled=true]:
|
|
543
|
-
"rtl:group-data-[filled=true]:right-0",
|
|
544
|
-
"rtl:group-data-[filled=true]:left-[unset]"
|
|
539
|
+
"group-data-[filled=true]/select:start-0"
|
|
545
540
|
]
|
|
546
541
|
}
|
|
547
542
|
},
|
|
548
543
|
{
|
|
549
544
|
labelPlacement: ["inside"],
|
|
550
545
|
class: {
|
|
551
|
-
label: "group-data-[filled=true]:scale-85"
|
|
546
|
+
label: "group-data-[filled=true]/select:scale-85"
|
|
552
547
|
}
|
|
553
548
|
},
|
|
554
549
|
{
|
|
@@ -563,8 +558,10 @@ var select = tv({
|
|
|
563
558
|
isMultiline: false,
|
|
564
559
|
size: "sm",
|
|
565
560
|
class: {
|
|
566
|
-
label: [
|
|
567
|
-
|
|
561
|
+
label: [
|
|
562
|
+
"group-data-[filled=true]/select:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"
|
|
563
|
+
],
|
|
564
|
+
innerWrapper: "group-data-[has-label=true]/select:pt-4"
|
|
568
565
|
}
|
|
569
566
|
},
|
|
570
567
|
{
|
|
@@ -573,9 +570,9 @@ var select = tv({
|
|
|
573
570
|
size: "md",
|
|
574
571
|
class: {
|
|
575
572
|
label: [
|
|
576
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
573
|
+
"group-data-[filled=true]/select:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
577
574
|
],
|
|
578
|
-
innerWrapper: "group-data-[has-label=true]:pt-4"
|
|
575
|
+
innerWrapper: "group-data-[has-label=true]/select:pt-4"
|
|
579
576
|
}
|
|
580
577
|
},
|
|
581
578
|
{
|
|
@@ -585,9 +582,9 @@ var select = tv({
|
|
|
585
582
|
class: {
|
|
586
583
|
label: [
|
|
587
584
|
"text-medium",
|
|
588
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
585
|
+
"group-data-[filled=true]/select:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
589
586
|
],
|
|
590
|
-
innerWrapper: "group-data-[has-label=true]:pt-5"
|
|
587
|
+
innerWrapper: "group-data-[has-label=true]/select:pt-5"
|
|
591
588
|
}
|
|
592
589
|
},
|
|
593
590
|
{
|
|
@@ -597,7 +594,7 @@ var select = tv({
|
|
|
597
594
|
size: "sm",
|
|
598
595
|
class: {
|
|
599
596
|
label: [
|
|
600
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
597
|
+
"group-data-[filled=true]/select:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
601
598
|
]
|
|
602
599
|
}
|
|
603
600
|
},
|
|
@@ -608,7 +605,7 @@ var select = tv({
|
|
|
608
605
|
size: "md",
|
|
609
606
|
class: {
|
|
610
607
|
label: [
|
|
611
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
608
|
+
"group-data-[filled=true]/select:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
612
609
|
]
|
|
613
610
|
}
|
|
614
611
|
},
|
|
@@ -620,7 +617,7 @@ var select = tv({
|
|
|
620
617
|
class: {
|
|
621
618
|
label: [
|
|
622
619
|
"text-medium",
|
|
623
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
620
|
+
"group-data-[filled=true]/select:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
624
621
|
]
|
|
625
622
|
}
|
|
626
623
|
},
|
|
@@ -630,7 +627,9 @@ var select = tv({
|
|
|
630
627
|
isMultiline: false,
|
|
631
628
|
size: "sm",
|
|
632
629
|
class: {
|
|
633
|
-
label: [
|
|
630
|
+
label: [
|
|
631
|
+
"group-data-[filled=true]/select:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"
|
|
632
|
+
]
|
|
634
633
|
}
|
|
635
634
|
},
|
|
636
635
|
{
|
|
@@ -640,7 +639,7 @@ var select = tv({
|
|
|
640
639
|
size: "md",
|
|
641
640
|
class: {
|
|
642
641
|
label: [
|
|
643
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
642
|
+
"group-data-[filled=true]/select:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
644
643
|
]
|
|
645
644
|
}
|
|
646
645
|
},
|
|
@@ -652,7 +651,7 @@ var select = tv({
|
|
|
652
651
|
class: {
|
|
653
652
|
label: [
|
|
654
653
|
"text-medium",
|
|
655
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
654
|
+
"group-data-[filled=true]/select:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
656
655
|
]
|
|
657
656
|
}
|
|
658
657
|
},
|
|
@@ -662,11 +661,9 @@ var select = tv({
|
|
|
662
661
|
isMultiline: false,
|
|
663
662
|
class: {
|
|
664
663
|
label: [
|
|
665
|
-
"
|
|
666
|
-
"rtl:right-2",
|
|
667
|
-
"rtl:left-[unset]",
|
|
664
|
+
"start-2",
|
|
668
665
|
"text-tiny",
|
|
669
|
-
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
666
|
+
"group-data-[filled=true]/select:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
670
667
|
],
|
|
671
668
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
672
669
|
}
|
|
@@ -677,11 +674,9 @@ var select = tv({
|
|
|
677
674
|
size: "md",
|
|
678
675
|
class: {
|
|
679
676
|
label: [
|
|
680
|
-
"
|
|
681
|
-
"rtl:right-3",
|
|
682
|
-
"rtl:left-[unset]",
|
|
677
|
+
"start-3",
|
|
683
678
|
"text-small",
|
|
684
|
-
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
679
|
+
"group-data-[filled=true]/select:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
685
680
|
],
|
|
686
681
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
687
682
|
}
|
|
@@ -692,11 +687,9 @@ var select = tv({
|
|
|
692
687
|
size: "lg",
|
|
693
688
|
class: {
|
|
694
689
|
label: [
|
|
695
|
-
"
|
|
696
|
-
"rtl:right-3",
|
|
697
|
-
"rtl:left-[unset]",
|
|
690
|
+
"start-3",
|
|
698
691
|
"text-medium",
|
|
699
|
-
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
692
|
+
"group-data-[filled=true]/select:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
700
693
|
],
|
|
701
694
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
702
695
|
}
|