@nextui-org/theme 2.2.9 → 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-726LN7M3.mjs → chunk-3LD7T42T.mjs} +1 -1
- package/dist/{chunk-GDIZAU4E.mjs → chunk-42JWJWWX.mjs} +1 -1
- package/dist/{chunk-DXPS72CE.mjs → chunk-63NMFZTF.mjs} +12 -7
- package/dist/{chunk-4YQYZDME.mjs → chunk-7YPXCOW5.mjs} +1 -1
- package/dist/{chunk-WUUKIKPR.mjs → chunk-ARYJFX77.mjs} +1 -1
- package/dist/{chunk-2PIR7DFM.mjs → chunk-BZCSOIUI.mjs} +12 -12
- package/dist/{chunk-YSA7EQBH.mjs → chunk-JFWA3DGK.mjs} +2 -2
- package/dist/{chunk-A4VDWEXY.mjs → chunk-JYFVXE5E.mjs} +1 -1
- package/dist/{chunk-NPRQPDVP.mjs → chunk-KPI62GDB.mjs} +4 -4
- package/dist/{chunk-5AGRECY5.mjs → chunk-KUKJUMC3.mjs} +1 -1
- package/dist/{chunk-XT44N6I6.mjs → chunk-LSQXJEPE.mjs} +9 -27
- package/dist/{chunk-DZGYN4XH.mjs → chunk-M3GQ3DWZ.mjs} +24 -41
- package/dist/{chunk-GFTQERGX.mjs → chunk-MP2JYSMR.mjs} +1 -1
- 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-ARFD2V3F.mjs → chunk-QWWVIX6M.mjs} +10 -13
- package/dist/{chunk-HZX5JB5L.mjs → chunk-R27WO3A6.mjs} +1 -1
- package/dist/{chunk-KKN74BUG.mjs → chunk-TA7PDZUG.mjs} +5 -1
- package/dist/{chunk-D7H5R3VL.mjs → chunk-UDSOWFZE.mjs} +2 -2
- package/dist/{chunk-HPFX3B3F.mjs → chunk-WN6AL2BX.mjs} +2 -2
- package/dist/{chunk-CKTE75OS.mjs → chunk-XAYP4CR3.mjs} +1 -1
- 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 +5 -1
- 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 +1 -1
- 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/dropdown.mjs +1 -1
- package/dist/components/index.js +102 -118
- package/dist/components/index.mjs +21 -21
- package/dist/components/input.js +10 -13
- 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 +1 -1
- package/dist/components/radio.mjs +2 -2
- package/dist/components/select.d.ts +14 -7
- package/dist/components/select.js +24 -41
- 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 +1 -1
- 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 +110 -120
- package/dist/index.mjs +32 -25
- 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
|
@@ -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: [
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
// src/components/toggle.ts
|
|
9
9
|
var toggle = tv({
|
|
10
10
|
slots: {
|
|
11
|
-
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent",
|
|
11
|
+
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent select-none",
|
|
12
12
|
wrapper: [
|
|
13
13
|
"px-1",
|
|
14
14
|
"relative",
|
|
@@ -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 = {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-D2XMP2NC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
utilities
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3LD7T42T.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_TRANSITION_DURATION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WN6AL2BX.mjs";
|
|
10
10
|
import {
|
|
11
11
|
baseStyles
|
|
12
12
|
} from "./chunk-XHQUSKIE.mjs";
|
|
@@ -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 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",
|
|
@@ -13,17 +13,17 @@ var calendar = tv({
|
|
|
13
13
|
"rounded-large overflow-x-auto bg-default-50 dark:bg-background",
|
|
14
14
|
"w-[calc(var(--visible-months)_*_var(--calendar-width))]"
|
|
15
15
|
],
|
|
16
|
-
prevButton: [],
|
|
17
|
-
nextButton: [],
|
|
16
|
+
prevButton: ["order-1"],
|
|
17
|
+
nextButton: ["order-3"],
|
|
18
18
|
headerWrapper: [
|
|
19
|
-
"px-4 py-2 flex items-center justify-between gap-2 bg-content1 overflow-hidden",
|
|
19
|
+
"px-4 py-2 flex items-center justify-between gap-2 bg-content1 overflow-hidden rtl:flex-row-reverse",
|
|
20
20
|
"[&_.chevron-icon]:flex-none",
|
|
21
21
|
"after:content-['']",
|
|
22
22
|
"after:bg-content1 origin-top",
|
|
23
23
|
"after:w-full after:h-0",
|
|
24
24
|
"after:absolute after:top-0 after:left-0"
|
|
25
25
|
],
|
|
26
|
-
header: "flex w-full items-center justify-center gap-2 z-10",
|
|
26
|
+
header: "flex w-full items-center justify-center gap-2 z-10 order-2",
|
|
27
27
|
title: "text-default-500 text-small font-medium",
|
|
28
28
|
content: "w-[calc(var(--visible-months)_*_var(--calendar-width))]",
|
|
29
29
|
gridWrapper: "flex max-w-full overflow-hidden pb-2 h-auto relative",
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
// src/components/checkbox.ts
|
|
9
9
|
var checkbox = 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 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",
|
|
@@ -29,18 +29,15 @@ var table = tv({
|
|
|
29
29
|
"group",
|
|
30
30
|
"px-3",
|
|
31
31
|
"h-10",
|
|
32
|
+
"text-start",
|
|
32
33
|
"align-middle",
|
|
33
34
|
"bg-default-100",
|
|
34
35
|
"whitespace-nowrap",
|
|
35
36
|
"text-foreground-500",
|
|
36
37
|
"text-tiny",
|
|
37
38
|
"font-semibold",
|
|
38
|
-
"first:rounded-
|
|
39
|
-
"
|
|
40
|
-
"rtl:first:rounded-l-[unset]",
|
|
41
|
-
"last:rounded-r-lg",
|
|
42
|
-
"rtl:last:rounded-l-lg",
|
|
43
|
-
"rtl:last:rounded-r-[unset]",
|
|
39
|
+
"first:rounded-s-lg",
|
|
40
|
+
"last:rounded-e-lg",
|
|
44
41
|
"outline-none",
|
|
45
42
|
"data-[sortable=true]:cursor-pointer",
|
|
46
43
|
"data-[hover=true]:text-foreground-400",
|
|
@@ -69,7 +66,7 @@ var table = tv({
|
|
|
69
66
|
],
|
|
70
67
|
tfoot: "",
|
|
71
68
|
sortIcon: [
|
|
72
|
-
"
|
|
69
|
+
"ms-2",
|
|
73
70
|
"mb-px",
|
|
74
71
|
"opacity-0",
|
|
75
72
|
"text-inherit",
|
|
@@ -176,30 +173,15 @@ var table = tv({
|
|
|
176
173
|
isMultiSelectable: {
|
|
177
174
|
true: {
|
|
178
175
|
td: [
|
|
179
|
-
"group-data-[first=true]:first:before:rounded-
|
|
180
|
-
"group-data-[first=true]:
|
|
181
|
-
"group-data-[first=true]:rtl:first:before:rounded-tl-[unset]",
|
|
182
|
-
"group-data-[first=true]:last:before:rounded-tr-lg",
|
|
183
|
-
"group-data-[first=true]:rtl:last:before:rounded-tl-lg",
|
|
184
|
-
"group-data-[first=true]:rtl:last:before:rounded-tr-[unset]",
|
|
176
|
+
"group-data-[first=true]:first:before:rounded-ts-lg",
|
|
177
|
+
"group-data-[first=true]:last:before:rounded-te-lg",
|
|
185
178
|
"group-data-[middle=true]:before:rounded-none",
|
|
186
|
-
"group-data-[last=true]:first:before:rounded-
|
|
187
|
-
"group-data-[last=true]:
|
|
188
|
-
"group-data-[last=true]:rtl:first:before:rounded-bl-[unset]",
|
|
189
|
-
"group-data-[last=true]:last:before:rounded-br-lg",
|
|
190
|
-
"group-data-[last=true]:rtl:last:before:rounded-bl-lg",
|
|
191
|
-
"group-data-[last=true]:rtl:last:before:rounded-br-[unset]"
|
|
179
|
+
"group-data-[last=true]:first:before:rounded-bs-lg",
|
|
180
|
+
"group-data-[last=true]:last:before:rounded-be-lg"
|
|
192
181
|
]
|
|
193
182
|
},
|
|
194
183
|
false: {
|
|
195
|
-
td: [
|
|
196
|
-
"first:before:rounded-l-lg",
|
|
197
|
-
"rtl:first:before:rounded-r-lg",
|
|
198
|
-
"rtl:first:before:rounded-l-[unset]",
|
|
199
|
-
"last:before:rounded-r-lg",
|
|
200
|
-
"rtl:last:before:rounded-l-lg",
|
|
201
|
-
"rtl:last:before:rounded-r-[unset]"
|
|
202
|
-
]
|
|
184
|
+
td: ["first:before:rounded-s-lg", "last:before:rounded-e-lg"]
|
|
203
185
|
}
|
|
204
186
|
},
|
|
205
187
|
fullWidth: {
|
|
@@ -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: "",
|
|
@@ -45,6 +45,7 @@ var select = tv({
|
|
|
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"
|
|
@@ -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]: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]:text-default-foreground",
|
|
222
|
+
trigger: ["bg-default-100", "data-[hover=true]:bg-default-50"]
|
|
220
223
|
}
|
|
221
224
|
},
|
|
222
225
|
{
|
|
@@ -224,9 +227,9 @@ 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-
|
|
232
|
+
"data-[hover=true]:bg-primary-50",
|
|
230
233
|
"group-data-[focus=true]:bg-primary-50"
|
|
231
234
|
],
|
|
232
235
|
value: "text-primary",
|
|
@@ -238,9 +241,9 @@ 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-
|
|
246
|
+
"data-[hover=true]:bg-secondary-50",
|
|
244
247
|
"group-data-[focus=true]:bg-secondary-50"
|
|
245
248
|
],
|
|
246
249
|
value: "text-secondary",
|
|
@@ -252,10 +255,10 @@ 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-
|
|
261
|
+
"data-[hover=true]:bg-success-50",
|
|
259
262
|
"group-data-[focus=true]:bg-success-50"
|
|
260
263
|
],
|
|
261
264
|
value: "text-success-600 dark:text-success",
|
|
@@ -267,10 +270,10 @@ 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-
|
|
276
|
+
"data-[hover=true]:bg-warning-50",
|
|
274
277
|
"group-data-[focus=true]:bg-warning-50"
|
|
275
278
|
],
|
|
276
279
|
value: "text-warning-600 dark:text-warning",
|
|
@@ -282,10 +285,10 @@ 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-
|
|
291
|
+
"data-[hover=true]:bg-danger-50",
|
|
289
292
|
"group-data-[focus=true]:bg-danger-50"
|
|
290
293
|
],
|
|
291
294
|
value: "text-danger dark:text-danger-500",
|
|
@@ -523,26 +526,12 @@ 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,
|
|
535
532
|
class: {
|
|
536
533
|
base: "group relative justify-end",
|
|
537
|
-
label: [
|
|
538
|
-
"pb-0",
|
|
539
|
-
"z-20",
|
|
540
|
-
"top-1/2",
|
|
541
|
-
"-translate-y-1/2",
|
|
542
|
-
"group-data-[filled=true]:left-0",
|
|
543
|
-
"rtl:group-data-[filled=true]:right-0",
|
|
544
|
-
"rtl:group-data-[filled=true]:left-[unset]"
|
|
545
|
-
]
|
|
534
|
+
label: ["pb-0", "z-20", "top-1/2", "-translate-y-1/2", "group-data-[filled=true]:start-0"]
|
|
546
535
|
}
|
|
547
536
|
},
|
|
548
537
|
{
|
|
@@ -662,9 +651,7 @@ var select = tv({
|
|
|
662
651
|
isMultiline: false,
|
|
663
652
|
class: {
|
|
664
653
|
label: [
|
|
665
|
-
"
|
|
666
|
-
"rtl:right-2",
|
|
667
|
-
"rtl:left-[unset]",
|
|
654
|
+
"start-2",
|
|
668
655
|
"text-tiny",
|
|
669
656
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
670
657
|
],
|
|
@@ -677,9 +664,7 @@ var select = tv({
|
|
|
677
664
|
size: "md",
|
|
678
665
|
class: {
|
|
679
666
|
label: [
|
|
680
|
-
"
|
|
681
|
-
"rtl:right-3",
|
|
682
|
-
"rtl:left-[unset]",
|
|
667
|
+
"start-3",
|
|
683
668
|
"text-small",
|
|
684
669
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
685
670
|
],
|
|
@@ -692,9 +677,7 @@ var select = tv({
|
|
|
692
677
|
size: "lg",
|
|
693
678
|
class: {
|
|
694
679
|
label: [
|
|
695
|
-
"
|
|
696
|
-
"rtl:right-3",
|
|
697
|
-
"rtl:left-[unset]",
|
|
680
|
+
"start-3",
|
|
698
681
|
"text-medium",
|
|
699
682
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
700
683
|
],
|
|
@@ -16,7 +16,8 @@ var modal = tv({
|
|
|
16
16
|
"inset-0",
|
|
17
17
|
"z-50",
|
|
18
18
|
"overflow-x-auto",
|
|
19
|
-
"justify-center"
|
|
19
|
+
"justify-center",
|
|
20
|
+
"h-[--visual-viewport-height]"
|
|
20
21
|
],
|
|
21
22
|
base: [
|
|
22
23
|
"flex",
|
|
@@ -85,7 +86,7 @@ var modal = tv({
|
|
|
85
86
|
base: "max-w-5xl"
|
|
86
87
|
},
|
|
87
88
|
full: {
|
|
88
|
-
base: "my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] !rounded-none"
|
|
89
|
+
base: "my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] min-h-[100dvh] !rounded-none"
|
|
89
90
|
}
|
|
90
91
|
},
|
|
91
92
|
radius: {
|
|
@@ -37,9 +37,8 @@ var input = tv({
|
|
|
37
37
|
"z-10",
|
|
38
38
|
"hidden",
|
|
39
39
|
"absolute",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"rtl:left-3",
|
|
40
|
+
"end-3",
|
|
41
|
+
"start-auto",
|
|
43
42
|
"appearance-none",
|
|
44
43
|
"outline-none",
|
|
45
44
|
"select-none",
|
|
@@ -158,7 +157,7 @@ var input = tv({
|
|
|
158
157
|
base: "flex-row items-center flex-nowrap data-[has-helper=true]:items-start",
|
|
159
158
|
inputWrapper: "flex-1",
|
|
160
159
|
mainWrapper: "flex flex-col",
|
|
161
|
-
label: "relative text-foreground
|
|
160
|
+
label: "relative text-foreground pe-2 ps-2 pointer-events-auto"
|
|
162
161
|
},
|
|
163
162
|
inside: {
|
|
164
163
|
label: "text-tiny cursor-text",
|
|
@@ -569,13 +568,13 @@ var input = tv({
|
|
|
569
568
|
labelPlacement: "outside",
|
|
570
569
|
isMultiline: false,
|
|
571
570
|
class: {
|
|
572
|
-
base: "
|
|
571
|
+
base: "relative justify-end",
|
|
573
572
|
label: [
|
|
574
573
|
"pb-0",
|
|
575
574
|
"z-20",
|
|
576
575
|
"top-1/2",
|
|
577
576
|
"-translate-y-1/2",
|
|
578
|
-
"group-data-[filled-within=true]:
|
|
577
|
+
"group-data-[filled-within=true]:start-0"
|
|
579
578
|
]
|
|
580
579
|
}
|
|
581
580
|
},
|
|
@@ -718,7 +717,7 @@ var input = tv({
|
|
|
718
717
|
isMultiline: false,
|
|
719
718
|
class: {
|
|
720
719
|
label: [
|
|
721
|
-
"
|
|
720
|
+
"start-2",
|
|
722
721
|
"text-tiny",
|
|
723
722
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
724
723
|
],
|
|
@@ -731,9 +730,8 @@ var input = tv({
|
|
|
731
730
|
isMultiline: false,
|
|
732
731
|
class: {
|
|
733
732
|
label: [
|
|
734
|
-
"
|
|
735
|
-
"
|
|
736
|
-
"rtl:right-3",
|
|
733
|
+
"start-3",
|
|
734
|
+
"end-auto",
|
|
737
735
|
"text-small",
|
|
738
736
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
739
737
|
],
|
|
@@ -746,9 +744,8 @@ var input = tv({
|
|
|
746
744
|
isMultiline: false,
|
|
747
745
|
class: {
|
|
748
746
|
label: [
|
|
749
|
-
"
|
|
750
|
-
"
|
|
751
|
-
"rtl:right-3",
|
|
747
|
+
"start-3",
|
|
748
|
+
"end-auto",
|
|
752
749
|
"text-medium",
|
|
753
750
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
754
751
|
],
|
|
@@ -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
20
|
"group-data-[invalid=true]: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]:opacity-100",
|
|
27
|
+
"sm:group-data-[hover=true]:data-[visible=true]:pointer-events-auto"
|
|
24
28
|
],
|
|
25
29
|
selectorButton: "text-medium"
|
|
26
30
|
},
|
|
@@ -32,7 +32,7 @@ var skeleton = tv({
|
|
|
32
32
|
"data-[loaded=true]:pointer-events-auto",
|
|
33
33
|
"data-[loaded=true]:overflow-visible",
|
|
34
34
|
"data-[loaded=true]:!bg-transparent",
|
|
35
|
-
"data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:animate-none",
|
|
35
|
+
"data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:-z-10 data-[loaded=true]:before:animate-none",
|
|
36
36
|
"data-[loaded=true]:after:opacity-0"
|
|
37
37
|
],
|
|
38
38
|
content: ["opacity-0", "group-data-[loaded=true]:opacity-100"]
|
|
@@ -44,7 +44,7 @@ var skeleton = tv({
|
|
|
44
44
|
content: "transition-none"
|
|
45
45
|
},
|
|
46
46
|
false: {
|
|
47
|
-
base: "transition-background !duration-300
|
|
47
|
+
base: "transition-background !duration-300",
|
|
48
48
|
content: "transition-opacity motion-reduce:transition-none !duration-300"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -42,12 +42,12 @@ var transition_default = {
|
|
|
42
42
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
43
43
|
},
|
|
44
44
|
".transition-transform-colors": {
|
|
45
|
-
"
|
|
45
|
+
"transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke",
|
|
46
46
|
"transition-timing-function": "ease",
|
|
47
47
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
48
48
|
},
|
|
49
49
|
".transition-transform-colors-opacity": {
|
|
50
|
-
"
|
|
50
|
+
"transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity",
|
|
51
51
|
"transition-timing-function": "ease",
|
|
52
52
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
53
53
|
}
|