@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/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/toggle 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",
|
|
@@ -40,37 +40,37 @@ var toggle = tv({
|
|
|
40
40
|
color: {
|
|
41
41
|
default: {
|
|
42
42
|
wrapper: [
|
|
43
|
-
"group-data-[selected=true]:bg-default-400",
|
|
44
|
-
"group-data-[selected=true]:text-default-foreground"
|
|
43
|
+
"group-data-[selected=true]/toggle:bg-default-400",
|
|
44
|
+
"group-data-[selected=true]/toggle:text-default-foreground"
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
primary: {
|
|
48
48
|
wrapper: [
|
|
49
|
-
"group-data-[selected=true]:bg-primary",
|
|
50
|
-
"group-data-[selected=true]:text-primary-foreground"
|
|
49
|
+
"group-data-[selected=true]/toggle:bg-primary",
|
|
50
|
+
"group-data-[selected=true]/toggle:text-primary-foreground"
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
53
|
secondary: {
|
|
54
54
|
wrapper: [
|
|
55
|
-
"group-data-[selected=true]:bg-secondary",
|
|
56
|
-
"group-data-[selected=true]:text-secondary-foreground"
|
|
55
|
+
"group-data-[selected=true]/toggle:bg-secondary",
|
|
56
|
+
"group-data-[selected=true]/toggle:text-secondary-foreground"
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
59
|
success: {
|
|
60
60
|
wrapper: [
|
|
61
|
-
"group-data-[selected=true]:bg-success",
|
|
62
|
-
"group-data-[selected=true]:text-success-foreground"
|
|
61
|
+
"group-data-[selected=true]/toggle:bg-success",
|
|
62
|
+
"group-data-[selected=true]/toggle:text-success-foreground"
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
65
|
warning: {
|
|
66
66
|
wrapper: [
|
|
67
|
-
"group-data-[selected=true]:bg-warning",
|
|
68
|
-
"group-data-[selected=true]:text-warning-foreground"
|
|
67
|
+
"group-data-[selected=true]/toggle:bg-warning",
|
|
68
|
+
"group-data-[selected=true]/toggle:text-warning-foreground"
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
71
|
danger: {
|
|
72
72
|
wrapper: [
|
|
73
|
-
"group-data-[selected=true]:bg-danger",
|
|
73
|
+
"group-data-[selected=true]/toggle:bg-danger",
|
|
74
74
|
"data-[selected=true]:text-danger-foreground"
|
|
75
75
|
]
|
|
76
76
|
}
|
|
@@ -80,7 +80,7 @@ var toggle = tv({
|
|
|
80
80
|
wrapper: "w-10 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
|
81
81
|
thumb: [
|
|
82
82
|
"w-4 h-4 text-tiny",
|
|
83
|
-
"group-data-[selected=true]:ml-4 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-4"
|
|
83
|
+
"group-data-[selected=true]/toggle:ml-4 rtl:group-data-[selected=true]/toggle:ml-0 rtl:group-data-[selected=true]/toggle:mr-4"
|
|
84
84
|
],
|
|
85
85
|
endContent: "text-tiny",
|
|
86
86
|
startContent: "text-tiny",
|
|
@@ -90,7 +90,7 @@ var toggle = tv({
|
|
|
90
90
|
wrapper: "w-12 h-7 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
|
91
91
|
thumb: [
|
|
92
92
|
"w-5 h-5 text-small",
|
|
93
|
-
"group-data-[selected=true]:ml-5 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-5"
|
|
93
|
+
"group-data-[selected=true]/toggle:ml-5 rtl:group-data-[selected=true]/toggle:ml-0 rtl:group-data-[selected=true]/toggle:mr-5"
|
|
94
94
|
],
|
|
95
95
|
endContent: "text-small",
|
|
96
96
|
startContent: "text-small",
|
|
@@ -100,7 +100,7 @@ var toggle = tv({
|
|
|
100
100
|
wrapper: "w-14 h-8 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
|
101
101
|
thumb: [
|
|
102
102
|
"w-6 h-6 text-medium",
|
|
103
|
-
"group-data-[selected=true]:ml-6 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-6"
|
|
103
|
+
"group-data-[selected=true]/toggle:ml-6 rtl:group-data-[selected=true]/toggle:ml-0 rtl:group-data-[selected=true]/toggle:mr-6"
|
|
104
104
|
],
|
|
105
105
|
endContent: "text-medium",
|
|
106
106
|
startContent: "text-medium",
|
|
@@ -124,14 +124,14 @@ var toggle = tv({
|
|
|
124
124
|
"opacity-0",
|
|
125
125
|
"scale-50",
|
|
126
126
|
"transition-transform-opacity",
|
|
127
|
-
"group-data-[selected=true]:scale-100",
|
|
128
|
-
"group-data-[selected=true]:opacity-100"
|
|
127
|
+
"group-data-[selected=true]/toggle:scale-100",
|
|
128
|
+
"group-data-[selected=true]/toggle:opacity-100"
|
|
129
129
|
],
|
|
130
130
|
endContent: [
|
|
131
131
|
"opacity-100",
|
|
132
132
|
"transition-transform-opacity",
|
|
133
|
-
"group-data-[selected=true]:translate-x-3",
|
|
134
|
-
"group-data-[selected=true]:opacity-0"
|
|
133
|
+
"group-data-[selected=true]/toggle:translate-x-3",
|
|
134
|
+
"group-data-[selected=true]/toggle:opacity-0"
|
|
135
135
|
]
|
|
136
136
|
}
|
|
137
137
|
}
|
|
@@ -146,21 +146,30 @@ var toggle = tv({
|
|
|
146
146
|
disableAnimation: false,
|
|
147
147
|
size: "sm",
|
|
148
148
|
class: {
|
|
149
|
-
thumb: [
|
|
149
|
+
thumb: [
|
|
150
|
+
"group-data-[pressed=true]/toggle:w-5",
|
|
151
|
+
"group-data-[selected]/toggle:group-data-[pressed]/toggle:ml-3"
|
|
152
|
+
]
|
|
150
153
|
}
|
|
151
154
|
},
|
|
152
155
|
{
|
|
153
156
|
disableAnimation: false,
|
|
154
157
|
size: "md",
|
|
155
158
|
class: {
|
|
156
|
-
thumb: [
|
|
159
|
+
thumb: [
|
|
160
|
+
"group-data-[pressed=true]/toggle:w-6",
|
|
161
|
+
"group-data-[selected]/toggle:group-data-[pressed]/toggle:ml-4"
|
|
162
|
+
]
|
|
157
163
|
}
|
|
158
164
|
},
|
|
159
165
|
{
|
|
160
166
|
disableAnimation: false,
|
|
161
167
|
size: "lg",
|
|
162
168
|
class: {
|
|
163
|
-
thumb: [
|
|
169
|
+
thumb: [
|
|
170
|
+
"group-data-[pressed=true]/toggle:w-7",
|
|
171
|
+
"group-data-[selected]/toggle:group-data-[pressed]/toggle:ml-5"
|
|
172
|
+
]
|
|
164
173
|
}
|
|
165
174
|
}
|
|
166
175
|
]
|
|
@@ -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
|
}
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
// src/components/date-input.ts
|
|
6
6
|
var dateInput = tv({
|
|
7
7
|
slots: {
|
|
8
|
-
base: "group flex flex-col",
|
|
8
|
+
base: "group/dateinput flex flex-col",
|
|
9
9
|
label: [
|
|
10
10
|
"block subpixel-antialiased text-small text-default-600",
|
|
11
|
-
"group-data-[required=true]:after:content-['*'] group-data-[required=true]:after:text-danger group-data-[required=true]:after:ml-0.5",
|
|
12
|
-
"group-data-[invalid=true]:text-danger"
|
|
11
|
+
"group-data-[required=true]/dateinput:after:content-['*'] group-data-[required=true]/dateinput:after:text-danger group-data-[required=true]/dateinput:after:ml-0.5",
|
|
12
|
+
"group-data-[invalid=true]/dateinput:text-danger"
|
|
13
13
|
],
|
|
14
14
|
inputWrapper: [
|
|
15
15
|
"relative px-3 gap-3 w-full inline-flex flex-row items-center",
|
|
@@ -18,10 +18,10 @@ var dateInput = tv({
|
|
|
18
18
|
input: "flex h-full gap-x-0.5 w-full font-normal",
|
|
19
19
|
innerWrapper: [
|
|
20
20
|
"flex items-center text-default-400 w-full gap-x-2 h-6",
|
|
21
|
-
"group-data-[invalid=true]:text-danger"
|
|
21
|
+
"group-data-[invalid=true]/dateinput:text-danger"
|
|
22
22
|
],
|
|
23
23
|
segment: [
|
|
24
|
-
"group first:-ml-0.5 [&:not(:first-child)]:-ml-1 px-0.5 my-auto box-content tabular-nums text-start",
|
|
24
|
+
"group/dateinput first:-ml-0.5 [&:not(:first-child)]:-ml-1 px-0.5 my-auto box-content tabular-nums text-start",
|
|
25
25
|
"inline-block outline-none focus:shadow-sm rounded-md",
|
|
26
26
|
"text-foreground-500 data-[editable=true]:text-foreground",
|
|
27
27
|
"data-[editable=true]:data-[placeholder=true]:text-foreground-500",
|
|
@@ -29,7 +29,7 @@ var dateInput = tv({
|
|
|
29
29
|
"data-[invalid=true]:focus:bg-danger-400/50 dark:data-[invalid=true]:focus:bg-danger-400/20",
|
|
30
30
|
"data-[invalid=true]:data-[editable=true]:focus:text-danger"
|
|
31
31
|
],
|
|
32
|
-
helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
|
|
32
|
+
helperWrapper: "hidden group-data-[has-helper=true]/dateinput:flex p-1 relative flex-col gap-1.5",
|
|
33
33
|
description: "text-tiny text-foreground-400",
|
|
34
34
|
errorMessage: "text-tiny text-danger"
|
|
35
35
|
},
|
|
@@ -40,9 +40,9 @@ var dateInput = tv({
|
|
|
40
40
|
"bg-default-100",
|
|
41
41
|
"hover:bg-default-200",
|
|
42
42
|
"focus-within:hover:bg-default-100",
|
|
43
|
-
"group-data-[invalid=true]:bg-danger-50",
|
|
44
|
-
"group-data-[invalid=true]:hover:bg-danger-100",
|
|
45
|
-
"group-data-[invalid=true]:focus-within:hover:bg-danger-50"
|
|
43
|
+
"group-data-[invalid=true]/dateinput:bg-danger-50",
|
|
44
|
+
"group-data-[invalid=true]/dateinput:hover:bg-danger-100",
|
|
45
|
+
"group-data-[invalid=true]/dateinput:focus-within:hover:bg-danger-50"
|
|
46
46
|
]
|
|
47
47
|
},
|
|
48
48
|
faded: {
|
|
@@ -51,9 +51,9 @@ var dateInput = tv({
|
|
|
51
51
|
"border-medium",
|
|
52
52
|
"border-default-200",
|
|
53
53
|
"hover:border-default-400",
|
|
54
|
-
"group-data-[invalid=true]:bg-danger-50",
|
|
55
|
-
"group-data-[invalid=true]:hover:bg-danger-100",
|
|
56
|
-
"group-data-[invalid=true]:focus-within:hover:bg-danger-50"
|
|
54
|
+
"group-data-[invalid=true]/dateinput:bg-danger-50",
|
|
55
|
+
"group-data-[invalid=true]/dateinput:hover:bg-danger-100",
|
|
56
|
+
"group-data-[invalid=true]/dateinput:focus-within:hover:bg-danger-50"
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
59
|
bordered: {
|
|
@@ -63,9 +63,9 @@ var dateInput = tv({
|
|
|
63
63
|
"hover:border-default-400",
|
|
64
64
|
"focus-within:border-default-foreground",
|
|
65
65
|
"focus-within:hover:border-default-foreground",
|
|
66
|
-
"group-data-[invalid=true]:border-danger",
|
|
67
|
-
"group-data-[invalid=true]:hover:border-danger",
|
|
68
|
-
"group-data-[invalid=true]:focus-within:hover:border-danger"
|
|
66
|
+
"group-data-[invalid=true]/dateinput:border-danger",
|
|
67
|
+
"group-data-[invalid=true]/dateinput:hover:border-danger",
|
|
68
|
+
"group-data-[invalid=true]/dateinput:focus-within:hover:border-danger"
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
71
|
underlined: {
|
|
@@ -90,7 +90,7 @@ var dateInput = tv({
|
|
|
90
90
|
"after:-bottom-[2px]",
|
|
91
91
|
"after:h-[2px]",
|
|
92
92
|
"focus-within:after:w-full",
|
|
93
|
-
"group-data-[invalid=true]:after:bg-danger"
|
|
93
|
+
"group-data-[invalid=true]/dateinput:after:bg-danger"
|
|
94
94
|
]
|
|
95
95
|
}
|
|
96
96
|
},
|
|
@@ -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";
|
|
@@ -271,32 +271,44 @@ var button = tv({
|
|
|
271
271
|
{
|
|
272
272
|
variant: "ghost",
|
|
273
273
|
color: "default",
|
|
274
|
-
class: colorVariants.ghost.default
|
|
274
|
+
class: [colorVariants.ghost.default, "data-[hover=true]:!bg-default"]
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
277
|
variant: "ghost",
|
|
278
278
|
color: "primary",
|
|
279
|
-
class:
|
|
279
|
+
class: [
|
|
280
|
+
colorVariants.ghost.primary,
|
|
281
|
+
"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"
|
|
282
|
+
]
|
|
280
283
|
},
|
|
281
284
|
{
|
|
282
285
|
variant: "ghost",
|
|
283
286
|
color: "secondary",
|
|
284
|
-
class:
|
|
287
|
+
class: [
|
|
288
|
+
colorVariants.ghost.secondary,
|
|
289
|
+
"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"
|
|
290
|
+
]
|
|
285
291
|
},
|
|
286
292
|
{
|
|
287
293
|
variant: "ghost",
|
|
288
294
|
color: "success",
|
|
289
|
-
class:
|
|
295
|
+
class: [
|
|
296
|
+
colorVariants.ghost.success,
|
|
297
|
+
"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"
|
|
298
|
+
]
|
|
290
299
|
},
|
|
291
300
|
{
|
|
292
301
|
variant: "ghost",
|
|
293
302
|
color: "warning",
|
|
294
|
-
class:
|
|
303
|
+
class: [
|
|
304
|
+
colorVariants.ghost.warning,
|
|
305
|
+
"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"
|
|
306
|
+
]
|
|
295
307
|
},
|
|
296
308
|
{
|
|
297
309
|
variant: "ghost",
|
|
298
310
|
color: "danger",
|
|
299
|
-
class: colorVariants.ghost.danger
|
|
311
|
+
class: [colorVariants.ghost.danger, "data-[hover=true]:!bg-danger !text-danger-foreground"]
|
|
300
312
|
},
|
|
301
313
|
{
|
|
302
314
|
isInGroup: true,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "../chunk-MVG7GLBD.mjs";
|
|
5
5
|
import "../chunk-IV3K5WDK.mjs";
|
|
6
6
|
import "../chunk-3XVMTUU7.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-BZCSOIUI.mjs";
|
|
8
8
|
import "../chunk-N2KXC5ZE.mjs";
|
|
9
9
|
import "../chunk-BYWORP66.mjs";
|
|
10
10
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -66,7 +66,7 @@ var tv = (options, config) => {
|
|
|
66
66
|
// src/components/autocomplete.ts
|
|
67
67
|
var autocomplete = tv({
|
|
68
68
|
slots: {
|
|
69
|
-
base: "group inline-flex flex-column w-full",
|
|
69
|
+
base: "group/autocomplete inline-flex flex-column w-full",
|
|
70
70
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
71
71
|
listbox: "",
|
|
72
72
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
@@ -76,12 +76,16 @@ var autocomplete = tv({
|
|
|
76
76
|
"translate-x-1",
|
|
77
77
|
"cursor-text",
|
|
78
78
|
"opacity-0",
|
|
79
|
+
"pointer-events-none",
|
|
79
80
|
"text-default-500",
|
|
80
|
-
"group-data-[invalid=true]:text-danger",
|
|
81
|
+
"group-data-[invalid=true]/autocomplete:text-danger",
|
|
81
82
|
"data-[visible=true]:opacity-100",
|
|
83
|
+
"data-[visible=true]:pointer-events-auto",
|
|
82
84
|
"data-[visible=true]:cursor-pointer",
|
|
83
85
|
"sm:data-[visible=true]:opacity-0",
|
|
84
|
-
"sm:
|
|
86
|
+
"sm:data-[visible=true]:pointer-events-none",
|
|
87
|
+
"sm:group-data-[hover=true]:data-[visible=true]/autocomplete:opacity-100",
|
|
88
|
+
"sm:group-data-[hover=true]:data-[visible=true]/autocomplete:pointer-events-auto"
|
|
85
89
|
],
|
|
86
90
|
selectorButton: "text-medium"
|
|
87
91
|
},
|
|
@@ -109,12 +109,12 @@ var bordered = {
|
|
|
109
109
|
foreground: "bg-transparent border-foreground text-foreground"
|
|
110
110
|
};
|
|
111
111
|
var flat = {
|
|
112
|
-
default: "bg-default/40 text-default-
|
|
113
|
-
primary: "bg-primary/20 text-primary",
|
|
114
|
-
secondary: "bg-secondary/20 text-secondary",
|
|
115
|
-
success: "bg-success/20 text-success-
|
|
116
|
-
warning: "bg-warning/20 text-warning-
|
|
117
|
-
danger: "bg-danger/20 text-danger dark:text-danger-500",
|
|
112
|
+
default: "bg-default/40 text-default-700",
|
|
113
|
+
primary: "bg-primary/20 text-primary-700",
|
|
114
|
+
secondary: "bg-secondary/20 text-secondary-700",
|
|
115
|
+
success: "bg-success/20 text-success-800 dark:text-success",
|
|
116
|
+
warning: "bg-warning/20 text-warning-800 dark:text-warning",
|
|
117
|
+
danger: "bg-danger/20 text-danger-800 dark:text-danger-500",
|
|
118
118
|
foreground: "bg-foreground/10 text-foreground"
|
|
119
119
|
};
|
|
120
120
|
var faded = {
|
|
@@ -136,12 +136,12 @@ var light = {
|
|
|
136
136
|
foreground: "bg-transparent text-foreground"
|
|
137
137
|
};
|
|
138
138
|
var ghost = {
|
|
139
|
-
default: "border-default text-default-foreground
|
|
140
|
-
primary: "border-primary text-primary
|
|
141
|
-
secondary: "border-secondary text-secondary
|
|
142
|
-
success: "border-success text-success
|
|
143
|
-
warning: "border-warning text-warning
|
|
144
|
-
danger: "border-danger text-danger
|
|
139
|
+
default: "border-default text-default-foreground",
|
|
140
|
+
primary: "border-primary text-primary",
|
|
141
|
+
secondary: "border-secondary text-secondary",
|
|
142
|
+
success: "border-success text-success",
|
|
143
|
+
warning: "border-warning text-warning",
|
|
144
|
+
danger: "border-danger text-danger",
|
|
145
145
|
foreground: "border-foreground text-foreground hover:!bg-foreground"
|
|
146
146
|
};
|
|
147
147
|
var colorVariants = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
avatar,
|
|
3
3
|
avatarGroup
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-R27WO3A6.mjs";
|
|
5
5
|
import "../chunk-IV3K5WDK.mjs";
|
|
6
6
|
import "../chunk-3XVMTUU7.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-BZCSOIUI.mjs";
|
|
8
8
|
import "../chunk-N2KXC5ZE.mjs";
|
|
9
9
|
import "../chunk-BYWORP66.mjs";
|
|
10
10
|
import "../chunk-XHQUSKIE.mjs";
|
package/dist/components/badge.js
CHANGED
|
@@ -92,12 +92,12 @@ var bordered = {
|
|
|
92
92
|
foreground: "bg-transparent border-foreground text-foreground"
|
|
93
93
|
};
|
|
94
94
|
var flat = {
|
|
95
|
-
default: "bg-default/40 text-default-
|
|
96
|
-
primary: "bg-primary/20 text-primary",
|
|
97
|
-
secondary: "bg-secondary/20 text-secondary",
|
|
98
|
-
success: "bg-success/20 text-success-
|
|
99
|
-
warning: "bg-warning/20 text-warning-
|
|
100
|
-
danger: "bg-danger/20 text-danger dark:text-danger-500",
|
|
95
|
+
default: "bg-default/40 text-default-700",
|
|
96
|
+
primary: "bg-primary/20 text-primary-700",
|
|
97
|
+
secondary: "bg-secondary/20 text-secondary-700",
|
|
98
|
+
success: "bg-success/20 text-success-800 dark:text-success",
|
|
99
|
+
warning: "bg-warning/20 text-warning-800 dark:text-warning",
|
|
100
|
+
danger: "bg-danger/20 text-danger-800 dark:text-danger-500",
|
|
101
101
|
foreground: "bg-foreground/10 text-foreground"
|
|
102
102
|
};
|
|
103
103
|
var faded = {
|
|
@@ -119,12 +119,12 @@ var light = {
|
|
|
119
119
|
foreground: "bg-transparent text-foreground"
|
|
120
120
|
};
|
|
121
121
|
var ghost = {
|
|
122
|
-
default: "border-default text-default-foreground
|
|
123
|
-
primary: "border-primary text-primary
|
|
124
|
-
secondary: "border-secondary text-secondary
|
|
125
|
-
success: "border-success text-success
|
|
126
|
-
warning: "border-warning text-warning
|
|
127
|
-
danger: "border-danger text-danger
|
|
122
|
+
default: "border-default text-default-foreground",
|
|
123
|
+
primary: "border-primary text-primary",
|
|
124
|
+
secondary: "border-secondary text-secondary",
|
|
125
|
+
success: "border-success text-success",
|
|
126
|
+
warning: "border-warning text-warning",
|
|
127
|
+
danger: "border-danger text-danger",
|
|
128
128
|
foreground: "border-foreground text-foreground hover:!bg-foreground"
|
|
129
129
|
};
|
|
130
130
|
var colorVariants = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
badge
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-QV3ALCMB.mjs";
|
|
4
4
|
import "../chunk-IV3K5WDK.mjs";
|
|
5
5
|
import "../chunk-3XVMTUU7.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-BZCSOIUI.mjs";
|
|
7
7
|
import "../chunk-N2KXC5ZE.mjs";
|
|
8
8
|
import "../chunk-BYWORP66.mjs";
|
|
9
9
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "../chunk-C43Y2OOL.mjs";
|
|
5
5
|
import "../chunk-IV3K5WDK.mjs";
|
|
6
6
|
import "../chunk-3XVMTUU7.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-BZCSOIUI.mjs";
|
|
8
8
|
import "../chunk-N2KXC5ZE.mjs";
|
|
9
9
|
import "../chunk-BYWORP66.mjs";
|
|
10
10
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -110,12 +110,12 @@ var bordered = {
|
|
|
110
110
|
foreground: "bg-transparent border-foreground text-foreground"
|
|
111
111
|
};
|
|
112
112
|
var flat = {
|
|
113
|
-
default: "bg-default/40 text-default-
|
|
114
|
-
primary: "bg-primary/20 text-primary",
|
|
115
|
-
secondary: "bg-secondary/20 text-secondary",
|
|
116
|
-
success: "bg-success/20 text-success-
|
|
117
|
-
warning: "bg-warning/20 text-warning-
|
|
118
|
-
danger: "bg-danger/20 text-danger dark:text-danger-500",
|
|
113
|
+
default: "bg-default/40 text-default-700",
|
|
114
|
+
primary: "bg-primary/20 text-primary-700",
|
|
115
|
+
secondary: "bg-secondary/20 text-secondary-700",
|
|
116
|
+
success: "bg-success/20 text-success-800 dark:text-success",
|
|
117
|
+
warning: "bg-warning/20 text-warning-800 dark:text-warning",
|
|
118
|
+
danger: "bg-danger/20 text-danger-800 dark:text-danger-500",
|
|
119
119
|
foreground: "bg-foreground/10 text-foreground"
|
|
120
120
|
};
|
|
121
121
|
var faded = {
|
|
@@ -137,12 +137,12 @@ var light = {
|
|
|
137
137
|
foreground: "bg-transparent text-foreground"
|
|
138
138
|
};
|
|
139
139
|
var ghost = {
|
|
140
|
-
default: "border-default text-default-foreground
|
|
141
|
-
primary: "border-primary text-primary
|
|
142
|
-
secondary: "border-secondary text-secondary
|
|
143
|
-
success: "border-success text-success
|
|
144
|
-
warning: "border-warning text-warning
|
|
145
|
-
danger: "border-danger text-danger
|
|
140
|
+
default: "border-default text-default-foreground",
|
|
141
|
+
primary: "border-primary text-primary",
|
|
142
|
+
secondary: "border-secondary text-secondary",
|
|
143
|
+
success: "border-success text-success",
|
|
144
|
+
warning: "border-warning text-warning",
|
|
145
|
+
danger: "border-danger text-danger",
|
|
146
146
|
foreground: "border-foreground text-foreground hover:!bg-foreground"
|
|
147
147
|
};
|
|
148
148
|
var colorVariants = {
|
|
@@ -417,32 +417,44 @@ var button = tv({
|
|
|
417
417
|
{
|
|
418
418
|
variant: "ghost",
|
|
419
419
|
color: "default",
|
|
420
|
-
class: colorVariants.ghost.default
|
|
420
|
+
class: [colorVariants.ghost.default, "data-[hover=true]:!bg-default"]
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
variant: "ghost",
|
|
424
424
|
color: "primary",
|
|
425
|
-
class:
|
|
425
|
+
class: [
|
|
426
|
+
colorVariants.ghost.primary,
|
|
427
|
+
"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"
|
|
428
|
+
]
|
|
426
429
|
},
|
|
427
430
|
{
|
|
428
431
|
variant: "ghost",
|
|
429
432
|
color: "secondary",
|
|
430
|
-
class:
|
|
433
|
+
class: [
|
|
434
|
+
colorVariants.ghost.secondary,
|
|
435
|
+
"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"
|
|
436
|
+
]
|
|
431
437
|
},
|
|
432
438
|
{
|
|
433
439
|
variant: "ghost",
|
|
434
440
|
color: "success",
|
|
435
|
-
class:
|
|
441
|
+
class: [
|
|
442
|
+
colorVariants.ghost.success,
|
|
443
|
+
"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"
|
|
444
|
+
]
|
|
436
445
|
},
|
|
437
446
|
{
|
|
438
447
|
variant: "ghost",
|
|
439
448
|
color: "warning",
|
|
440
|
-
class:
|
|
449
|
+
class: [
|
|
450
|
+
colorVariants.ghost.warning,
|
|
451
|
+
"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"
|
|
452
|
+
]
|
|
441
453
|
},
|
|
442
454
|
{
|
|
443
455
|
variant: "ghost",
|
|
444
456
|
color: "danger",
|
|
445
|
-
class: colorVariants.ghost.danger
|
|
457
|
+
class: [colorVariants.ghost.danger, "data-[hover=true]:!bg-danger !text-danger-foreground"]
|
|
446
458
|
},
|
|
447
459
|
{
|
|
448
460
|
isInGroup: true,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
button,
|
|
3
3
|
buttonGroup
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-XXQSA25O.mjs";
|
|
5
5
|
import "../chunk-IV3K5WDK.mjs";
|
|
6
6
|
import "../chunk-3XVMTUU7.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-BZCSOIUI.mjs";
|
|
8
8
|
import "../chunk-N2KXC5ZE.mjs";
|
|
9
9
|
import "../chunk-BYWORP66.mjs";
|
|
10
10
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -63,8 +63,8 @@ declare const calendar: tailwind_variants.TVReturnType<{
|
|
|
63
63
|
};
|
|
64
64
|
}, {
|
|
65
65
|
base: string[];
|
|
66
|
-
prevButton:
|
|
67
|
-
nextButton:
|
|
66
|
+
prevButton: string[];
|
|
67
|
+
nextButton: string[];
|
|
68
68
|
headerWrapper: string[];
|
|
69
69
|
header: string;
|
|
70
70
|
title: string;
|
|
@@ -264,8 +264,8 @@ declare const calendar: tailwind_variants.TVReturnType<{
|
|
|
264
264
|
};
|
|
265
265
|
}, {
|
|
266
266
|
base: string[];
|
|
267
|
-
prevButton:
|
|
268
|
-
nextButton:
|
|
267
|
+
prevButton: string[];
|
|
268
|
+
nextButton: string[];
|
|
269
269
|
headerWrapper: string[];
|
|
270
270
|
header: string;
|
|
271
271
|
title: string;
|
|
@@ -347,8 +347,8 @@ declare const calendar: tailwind_variants.TVReturnType<{
|
|
|
347
347
|
};
|
|
348
348
|
}, {
|
|
349
349
|
base: string[];
|
|
350
|
-
prevButton:
|
|
351
|
-
nextButton:
|
|
350
|
+
prevButton: string[];
|
|
351
|
+
nextButton: string[];
|
|
352
352
|
headerWrapper: string[];
|
|
353
353
|
header: string;
|
|
354
354
|
title: string;
|
|
@@ -78,17 +78,17 @@ var calendar = tv({
|
|
|
78
78
|
"rounded-large overflow-x-auto bg-default-50 dark:bg-background",
|
|
79
79
|
"w-[calc(var(--visible-months)_*_var(--calendar-width))]"
|
|
80
80
|
],
|
|
81
|
-
prevButton: [],
|
|
82
|
-
nextButton: [],
|
|
81
|
+
prevButton: ["order-1"],
|
|
82
|
+
nextButton: ["order-3"],
|
|
83
83
|
headerWrapper: [
|
|
84
|
-
"px-4 py-2 flex items-center justify-between gap-2 bg-content1 overflow-hidden",
|
|
84
|
+
"px-4 py-2 flex items-center justify-between gap-2 bg-content1 overflow-hidden rtl:flex-row-reverse",
|
|
85
85
|
"[&_.chevron-icon]:flex-none",
|
|
86
86
|
"after:content-['']",
|
|
87
87
|
"after:bg-content1 origin-top",
|
|
88
88
|
"after:w-full after:h-0",
|
|
89
89
|
"after:absolute after:top-0 after:left-0"
|
|
90
90
|
],
|
|
91
|
-
header: "flex w-full items-center justify-center gap-2 z-10",
|
|
91
|
+
header: "flex w-full items-center justify-center gap-2 z-10 order-2",
|
|
92
92
|
title: "text-default-500 text-small font-medium",
|
|
93
93
|
content: "w-[calc(var(--visible-months)_*_var(--calendar-width))]",
|
|
94
94
|
gridWrapper: "flex max-w-full overflow-hidden pb-2 h-auto relative",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
calendar
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-KPI62GDB.mjs";
|
|
4
4
|
import "../chunk-IV3K5WDK.mjs";
|
|
5
5
|
import "../chunk-3XVMTUU7.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-BZCSOIUI.mjs";
|
|
7
7
|
import "../chunk-N2KXC5ZE.mjs";
|
|
8
8
|
import "../chunk-BYWORP66.mjs";
|
|
9
9
|
import "../chunk-XHQUSKIE.mjs";
|