@nextui-org/theme 2.1.9 → 2.1.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-77O7KLUI.mjs → chunk-362LGETO.mjs} +1 -1
- package/dist/{chunk-23KK2ZAZ.mjs → chunk-5GLH2ERS.mjs} +2 -2
- package/dist/{chunk-F76574GG.mjs → chunk-6RI6HHSE.mjs} +126 -46
- package/dist/{chunk-RYOZQSNI.mjs → chunk-6XG3Y4GM.mjs} +12 -7
- package/dist/chunk-76A2UI6G.mjs +243 -0
- package/dist/chunk-AQDGQGUV.mjs +391 -0
- package/dist/{chunk-NAY2XKLY.mjs → chunk-B6QMTIF2.mjs} +1 -1
- package/dist/{chunk-LGRQRHJJ.mjs → chunk-BR6V72YY.mjs} +6 -3
- package/dist/{chunk-5VJPQADB.mjs → chunk-CLW3JMFF.mjs} +2 -2
- package/dist/{chunk-NW5W5ANO.mjs → chunk-DGMET46Q.mjs} +4 -3
- package/dist/{chunk-WBNF66V7.mjs → chunk-F36W5Y6O.mjs} +1 -1
- package/dist/{chunk-GNLIYZAQ.mjs → chunk-FUMNSN2H.mjs} +1 -1
- package/dist/{chunk-KPK2JQIF.mjs → chunk-G3PB7L4N.mjs} +10 -0
- package/dist/{chunk-4DKVPW5Z.mjs → chunk-HBLCAYSX.mjs} +2 -2
- package/dist/{chunk-XPLXQDB3.mjs → chunk-HYA3WURA.mjs} +1 -1
- package/dist/{chunk-UHF2F2WJ.mjs → chunk-I5E37FAL.mjs} +4 -4
- package/dist/{chunk-RPMLQF4Y.mjs → chunk-J6EGGODL.mjs} +5 -5
- package/dist/{chunk-XY766PDD.mjs → chunk-J7FVLFSZ.mjs} +1 -1
- package/dist/{chunk-GKYVNUGL.mjs → chunk-JMOQB2OS.mjs} +3 -3
- package/dist/{chunk-EUS2SEYI.mjs → chunk-JX6O4KJS.mjs} +2 -2
- package/dist/{chunk-PJV3MWBL.mjs → chunk-KNUJMWVH.mjs} +185 -52
- package/dist/{chunk-YSXRNNDV.mjs → chunk-N7N2LONM.mjs} +1 -1
- package/dist/{chunk-RHIZZ5XX.mjs → chunk-ODGTGSNM.mjs} +2 -2
- package/dist/{chunk-EC4F6RJF.mjs → chunk-PFGLTKGJ.mjs} +1 -1
- package/dist/{chunk-FZZINZOQ.mjs → chunk-QF56VSRK.mjs} +23 -6
- package/dist/{chunk-YKWIBFFV.mjs → chunk-QWYWYOG6.mjs} +18 -4
- package/dist/{chunk-Y32IWEMZ.mjs → chunk-S7W5DQP2.mjs} +3 -3
- package/dist/{chunk-TIMHSW45.mjs → chunk-TUUOVVH3.mjs} +2 -2
- package/dist/{chunk-B55QBA5E.mjs → chunk-VD4MGTVP.mjs} +1 -1
- package/dist/{chunk-4JBYJQSP.mjs → chunk-VGHVBXXT.mjs} +1 -1
- package/dist/{chunk-WM43BKYH.mjs → chunk-VOTIIGIW.mjs} +3 -3
- package/dist/{chunk-O24TFHPZ.mjs → chunk-VPYXYIZ5.mjs} +2 -2
- package/dist/{chunk-ADNJ6GPZ.mjs → chunk-VU5TSYMO.mjs} +2 -2
- package/dist/{chunk-7MCHEQXT.mjs → chunk-VZI6SR6H.mjs} +4 -1
- package/dist/chunk-WBUVHAJX.mjs +37 -0
- package/dist/chunk-WHT6K6RC.mjs +58 -0
- package/dist/chunk-WNVF6X3M.mjs +171 -0
- package/dist/{chunk-EQIZ7W7V.mjs → chunk-WYVG7NY6.mjs} +3 -3
- package/dist/{chunk-LQGOKGQV.mjs → chunk-XHQNEGB6.mjs} +1 -1
- package/dist/{chunk-T7JNS25F.mjs → chunk-XHQUSKIE.mjs} +10 -1
- package/dist/{chunk-MOHT4OBR.mjs → chunk-XNF3KCH7.mjs} +2 -2
- package/dist/{chunk-XJU7LDVX.mjs → chunk-Y5WLFHBC.mjs} +74 -9
- package/dist/{chunk-XCWQAA5D.mjs → chunk-YRDQW7V4.mjs} +5 -5
- package/dist/components/accordion.js +27 -34
- package/dist/components/accordion.mjs +3 -3
- package/dist/components/autocomplete.d.ts +180 -0
- package/dist/components/autocomplete.js +165 -0
- package/dist/components/autocomplete.mjs +8 -0
- package/dist/components/avatar.js +28 -35
- package/dist/components/avatar.mjs +3 -3
- package/dist/components/badge.d.ts +7 -7
- package/dist/components/badge.js +29 -36
- package/dist/components/badge.mjs +3 -3
- package/dist/components/breadcrumbs.d.ts +816 -0
- package/dist/components/breadcrumbs.js +357 -0
- package/dist/components/breadcrumbs.mjs +14 -0
- package/dist/components/button.d.ts +7 -7
- package/dist/components/button.js +104 -39
- package/dist/components/button.mjs +3 -3
- package/dist/components/card.js +26 -33
- package/dist/components/card.mjs +3 -3
- package/dist/components/checkbox.js +25 -32
- package/dist/components/checkbox.mjs +3 -3
- package/dist/components/chip.js +26 -33
- package/dist/components/chip.mjs +3 -3
- package/dist/components/circular-progress.js +25 -32
- package/dist/components/circular-progress.mjs +2 -2
- package/dist/components/code.js +25 -32
- package/dist/components/code.mjs +3 -3
- package/dist/components/divider.js +25 -32
- package/dist/components/divider.mjs +2 -2
- package/dist/components/drip.d.ts +29 -3
- package/dist/components/drip.js +25 -32
- package/dist/components/drip.mjs +2 -2
- package/dist/components/dropdown.d.ts +103 -35
- package/dist/components/dropdown.js +25 -32
- package/dist/components/dropdown.mjs +3 -3
- package/dist/components/image.js +25 -32
- package/dist/components/image.mjs +2 -2
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +1213 -218
- package/dist/components/index.mjs +62 -48
- package/dist/components/input.d.ts +37 -44
- package/dist/components/input.js +208 -82
- package/dist/components/input.mjs +3 -3
- package/dist/components/kbd.js +25 -32
- package/dist/components/kbd.mjs +2 -2
- package/dist/components/link.js +25 -32
- package/dist/components/link.mjs +3 -3
- package/dist/components/listbox.d.ts +1 -1
- package/dist/components/listbox.js +41 -34
- package/dist/components/listbox.mjs +3 -3
- package/dist/components/menu.d.ts +119 -40
- package/dist/components/menu.js +41 -34
- package/dist/components/menu.mjs +3 -3
- package/dist/components/modal.js +25 -32
- package/dist/components/modal.mjs +3 -3
- package/dist/components/navbar.js +29 -33
- package/dist/components/navbar.mjs +3 -3
- package/dist/components/pagination.js +46 -36
- package/dist/components/pagination.mjs +3 -3
- package/dist/components/popover.d.ts +136 -132
- package/dist/components/popover.js +98 -94
- package/dist/components/popover.mjs +3 -3
- package/dist/components/progress.js +25 -32
- package/dist/components/progress.mjs +2 -2
- package/dist/components/radio.js +26 -33
- package/dist/components/radio.mjs +3 -3
- package/dist/components/scroll-shadow.js +25 -32
- package/dist/components/scroll-shadow.mjs +2 -2
- package/dist/components/select.d.ts +40 -54
- package/dist/components/select.js +149 -76
- package/dist/components/select.mjs +3 -3
- package/dist/components/skeleton.js +26 -33
- package/dist/components/skeleton.mjs +2 -2
- package/dist/components/slider.d.ts +1024 -0
- package/dist/components/slider.js +504 -0
- package/dist/components/slider.mjs +12 -0
- package/dist/components/snippet.js +25 -32
- package/dist/components/snippet.mjs +3 -3
- package/dist/components/spacer.js +25 -32
- package/dist/components/spacer.mjs +2 -2
- package/dist/components/spinner.js +25 -32
- package/dist/components/spinner.mjs +2 -2
- package/dist/components/table.js +25 -32
- package/dist/components/table.mjs +3 -3
- package/dist/components/tabs.js +25 -32
- package/dist/components/tabs.mjs +3 -3
- package/dist/components/toggle.js +25 -32
- package/dist/components/toggle.mjs +3 -3
- package/dist/components/user.d.ts +45 -29
- package/dist/components/user.js +25 -32
- package/dist/components/user.mjs +3 -3
- package/dist/default-layout.js +4 -1
- package/dist/default-layout.mjs +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1403 -387
- package/dist/index.mjs +69 -53
- package/dist/plugin.js +24 -5
- package/dist/plugin.mjs +6 -6
- package/dist/types.d.ts +8 -0
- package/dist/utilities/index.d.ts +10 -0
- package/dist/utilities/index.js +10 -0
- package/dist/utilities/index.mjs +2 -2
- package/dist/utilities/transition.d.ts +10 -0
- package/dist/utilities/transition.js +10 -0
- package/dist/utilities/transition.mjs +1 -1
- package/dist/utils/classes.d.ts +13 -1
- package/dist/utils/classes.js +10 -0
- package/dist/utils/classes.mjs +3 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +10 -0
- package/dist/utils/index.mjs +3 -1
- package/dist/utils/theme.js +4 -3
- package/dist/utils/theme.mjs +1 -1
- package/dist/utils/tv.d.ts +2 -2
- package/dist/utils/tv.js +25 -32
- package/dist/utils/tv.mjs +1 -1
- package/package.json +9 -9
- package/dist/chunk-6AEINX52.mjs +0 -44
- package/dist/chunk-SN5GEHHN.mjs +0 -160
- /package/dist/{chunk-RH7YHIQY.mjs → chunk-T6HAGWX5.mjs} +0 -0
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-WBUVHAJX.mjs";
|
|
4
|
+
import {
|
|
5
|
+
dataFocusVisibleClasses
|
|
6
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/slider.ts
|
|
9
|
+
var slider = tv({
|
|
10
|
+
slots: {
|
|
11
|
+
base: "flex flex-col w-full gap-1",
|
|
12
|
+
labelWrapper: "w-full flex justify-between items-center",
|
|
13
|
+
label: "",
|
|
14
|
+
value: "",
|
|
15
|
+
step: [
|
|
16
|
+
"h-1.5",
|
|
17
|
+
"w-1.5",
|
|
18
|
+
"absolute",
|
|
19
|
+
"rounded-full",
|
|
20
|
+
"bg-default-300/50",
|
|
21
|
+
"data-[in-range=true]:bg-background/50"
|
|
22
|
+
],
|
|
23
|
+
mark: [
|
|
24
|
+
"absolute",
|
|
25
|
+
"text-small",
|
|
26
|
+
"cursor-default",
|
|
27
|
+
"opacity-50",
|
|
28
|
+
"data-[in-range=true]:opacity-100"
|
|
29
|
+
],
|
|
30
|
+
trackWrapper: "relative flex gap-2",
|
|
31
|
+
track: ["flex", "w-full", "relative", "rounded-full", "bg-default-300/50"],
|
|
32
|
+
filler: "h-full absolute",
|
|
33
|
+
thumb: [
|
|
34
|
+
"flex",
|
|
35
|
+
"justify-center",
|
|
36
|
+
"items-center",
|
|
37
|
+
"before:absolute",
|
|
38
|
+
"before:w-11",
|
|
39
|
+
"before:h-11",
|
|
40
|
+
"before:rounded-full",
|
|
41
|
+
"after:shadow-small",
|
|
42
|
+
"after:shadow-small",
|
|
43
|
+
"after:bg-background",
|
|
44
|
+
"data-[focused=true]:z-10",
|
|
45
|
+
dataFocusVisibleClasses
|
|
46
|
+
],
|
|
47
|
+
startContent: [],
|
|
48
|
+
endContent: []
|
|
49
|
+
},
|
|
50
|
+
variants: {
|
|
51
|
+
size: {
|
|
52
|
+
sm: {
|
|
53
|
+
label: "text-small",
|
|
54
|
+
value: "text-small",
|
|
55
|
+
thumb: "w-5 h-5 after:w-4 after:h-4",
|
|
56
|
+
step: "data-[in-range=false]:bg-default-200"
|
|
57
|
+
},
|
|
58
|
+
md: {
|
|
59
|
+
thumb: "w-6 h-6 after:w-5 after:h-5",
|
|
60
|
+
label: "text-small",
|
|
61
|
+
value: "text-small"
|
|
62
|
+
},
|
|
63
|
+
lg: {
|
|
64
|
+
thumb: "h-7 w-7 after:w-5 after:h-5",
|
|
65
|
+
step: "w-2 h-2",
|
|
66
|
+
label: "text-medium",
|
|
67
|
+
value: "text-medium",
|
|
68
|
+
mark: "mt-2"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
radius: {
|
|
72
|
+
none: {
|
|
73
|
+
thumb: "rounded-none after:rounded-none"
|
|
74
|
+
},
|
|
75
|
+
sm: {
|
|
76
|
+
thumb: "rounded-[calc(theme(borderRadius.small)/2)] after:rounded-[calc(theme(borderRadius.small)/3)]"
|
|
77
|
+
},
|
|
78
|
+
md: {
|
|
79
|
+
thumb: "rounded-[calc(theme(borderRadius.medium)/2)] after:rounded-[calc(theme(borderRadius.medium)/3)]"
|
|
80
|
+
},
|
|
81
|
+
lg: {
|
|
82
|
+
thumb: "rounded-[calc(theme(borderRadius.large)/1.5)] after:rounded-[calc(theme(borderRadius.large)/2)]"
|
|
83
|
+
},
|
|
84
|
+
full: {
|
|
85
|
+
thumb: "rounded-full after:rounded-full"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
color: {
|
|
89
|
+
foreground: {
|
|
90
|
+
filler: "bg-foreground",
|
|
91
|
+
thumb: "bg-foreground"
|
|
92
|
+
},
|
|
93
|
+
primary: {
|
|
94
|
+
filler: "bg-primary",
|
|
95
|
+
thumb: "bg-primary"
|
|
96
|
+
},
|
|
97
|
+
secondary: {
|
|
98
|
+
filler: "bg-secondary",
|
|
99
|
+
thumb: "bg-secondary"
|
|
100
|
+
},
|
|
101
|
+
success: {
|
|
102
|
+
filler: "bg-success",
|
|
103
|
+
thumb: "bg-success"
|
|
104
|
+
},
|
|
105
|
+
warning: {
|
|
106
|
+
filler: "bg-warning",
|
|
107
|
+
thumb: "bg-warning"
|
|
108
|
+
},
|
|
109
|
+
danger: {
|
|
110
|
+
filler: "bg-danger",
|
|
111
|
+
thumb: "bg-danger"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
isVertical: {
|
|
115
|
+
true: {
|
|
116
|
+
base: "w-auto h-full flex-col-reverse items-center",
|
|
117
|
+
trackWrapper: "flex-col h-full justify-center items-center",
|
|
118
|
+
filler: "w-full h-auto",
|
|
119
|
+
thumb: "left-1/2",
|
|
120
|
+
track: "h-full border-y-transparent",
|
|
121
|
+
labelWrapper: "flex-col justify-center items-center",
|
|
122
|
+
step: ["left-1/2", "-translate-x-1/2", "translate-y-1/2"],
|
|
123
|
+
mark: ["left-1/2", "ml-1", "translate-x-1/2", "-translate-y-1/2"]
|
|
124
|
+
},
|
|
125
|
+
false: {
|
|
126
|
+
thumb: "top-1/2",
|
|
127
|
+
trackWrapper: "items-center",
|
|
128
|
+
track: "border-x-transparent",
|
|
129
|
+
step: ["top-1/2", "-translate-x-1/2", "-translate-y-1/2"],
|
|
130
|
+
mark: ["top-1/2", "mt-1", "-translate-x-1/2", "translate-y-1/2"]
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
isDisabled: {
|
|
134
|
+
false: {
|
|
135
|
+
thumb: ["cursor-grab", "data-[dragging=true]:cursor-grabbing"]
|
|
136
|
+
},
|
|
137
|
+
true: {
|
|
138
|
+
base: "opacity-disabled",
|
|
139
|
+
thumb: "cursor-default"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
hasMarks: {
|
|
143
|
+
true: {
|
|
144
|
+
base: "mb-5"
|
|
145
|
+
},
|
|
146
|
+
false: {}
|
|
147
|
+
},
|
|
148
|
+
showOutline: {
|
|
149
|
+
true: {
|
|
150
|
+
thumb: "ring-2 ring-background"
|
|
151
|
+
},
|
|
152
|
+
false: {
|
|
153
|
+
thumb: "ring-transparent border-0"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
hideValue: {
|
|
157
|
+
true: {
|
|
158
|
+
value: "sr-only"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
hideThumb: {
|
|
162
|
+
true: {
|
|
163
|
+
thumb: "sr-only",
|
|
164
|
+
track: "overflow-hidden cursor-pointer"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
hasSingleThumb: {
|
|
168
|
+
true: {},
|
|
169
|
+
false: {}
|
|
170
|
+
},
|
|
171
|
+
disableAnimation: {
|
|
172
|
+
true: {
|
|
173
|
+
thumb: "data-[dragging=true]:after:scale-100"
|
|
174
|
+
},
|
|
175
|
+
false: {
|
|
176
|
+
thumb: "after:transition-all motion-reduce:after:transition-none",
|
|
177
|
+
mark: "transition-opacity motion-reduce:transition-none"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
disableThumbScale: {
|
|
181
|
+
true: {},
|
|
182
|
+
false: {
|
|
183
|
+
thumb: "data-[dragging=true]:after:scale-80"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
compoundVariants: [
|
|
188
|
+
{
|
|
189
|
+
size: ["sm", "md"],
|
|
190
|
+
showOutline: false,
|
|
191
|
+
class: {
|
|
192
|
+
thumb: "shadow-small"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
size: "sm",
|
|
197
|
+
color: "foreground",
|
|
198
|
+
class: {
|
|
199
|
+
step: "data-[in-range=true]:bg-foreground"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
size: "sm",
|
|
204
|
+
color: "primary",
|
|
205
|
+
class: {
|
|
206
|
+
step: "data-[in-range=true]:bg-primary"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
size: "sm",
|
|
211
|
+
color: "secondary",
|
|
212
|
+
class: {
|
|
213
|
+
step: "data-[in-range=true]:bg-secondary"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
size: "sm",
|
|
218
|
+
color: "success",
|
|
219
|
+
class: {
|
|
220
|
+
step: "data-[in-range=true]:bg-success"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
size: "sm",
|
|
225
|
+
color: "warning",
|
|
226
|
+
class: {
|
|
227
|
+
step: "data-[in-range=true]:bg-warning"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
size: "sm",
|
|
232
|
+
color: "danger",
|
|
233
|
+
class: {
|
|
234
|
+
step: "data-[in-range=true]:bg-danger"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
size: "sm",
|
|
239
|
+
isVertical: false,
|
|
240
|
+
class: {
|
|
241
|
+
track: "h-1 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.5)/2)]"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
size: "md",
|
|
246
|
+
isVertical: false,
|
|
247
|
+
class: {
|
|
248
|
+
track: "h-3 my-[calc((theme(spacing.6)-theme(spacing.3))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.6)/2)]"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
size: "lg",
|
|
253
|
+
isVertical: false,
|
|
254
|
+
class: {
|
|
255
|
+
track: "h-7 my-[calc((theme(spacing.7)-theme(spacing.5))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.7)/2)]"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
size: "sm",
|
|
260
|
+
isVertical: true,
|
|
261
|
+
class: {
|
|
262
|
+
track: "w-1 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.5)/2)]"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
size: "md",
|
|
267
|
+
isVertical: true,
|
|
268
|
+
class: {
|
|
269
|
+
track: "w-3 mx-[calc((theme(spacing.6)-theme(spacing.3))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.6)/2)]"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
size: "lg",
|
|
274
|
+
isVertical: true,
|
|
275
|
+
class: {
|
|
276
|
+
track: "w-7 mx-[calc((theme(spacing.7)-theme(spacing.5))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.7)/2)]"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
color: "foreground",
|
|
281
|
+
isVertical: false,
|
|
282
|
+
hasSingleThumb: true,
|
|
283
|
+
class: {
|
|
284
|
+
track: "border-s-foreground"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
color: "primary",
|
|
289
|
+
isVertical: false,
|
|
290
|
+
hasSingleThumb: true,
|
|
291
|
+
class: {
|
|
292
|
+
track: "border-s-primary"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
color: "secondary",
|
|
297
|
+
isVertical: false,
|
|
298
|
+
hasSingleThumb: true,
|
|
299
|
+
class: {
|
|
300
|
+
track: "border-s-secondary"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
color: "success",
|
|
305
|
+
isVertical: false,
|
|
306
|
+
hasSingleThumb: true,
|
|
307
|
+
class: {
|
|
308
|
+
track: "border-s-success"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
color: "warning",
|
|
313
|
+
isVertical: false,
|
|
314
|
+
hasSingleThumb: true,
|
|
315
|
+
class: {
|
|
316
|
+
track: "border-s-warning"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
color: "danger",
|
|
321
|
+
isVertical: false,
|
|
322
|
+
hasSingleThumb: true,
|
|
323
|
+
class: {
|
|
324
|
+
track: "border-s-danger"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
color: "foreground",
|
|
329
|
+
isVertical: true,
|
|
330
|
+
hasSingleThumb: true,
|
|
331
|
+
class: {
|
|
332
|
+
track: "border-b-foreground"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
color: "primary",
|
|
337
|
+
isVertical: true,
|
|
338
|
+
hasSingleThumb: true,
|
|
339
|
+
class: {
|
|
340
|
+
track: "border-b-primary"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
color: "secondary",
|
|
345
|
+
isVertical: true,
|
|
346
|
+
hasSingleThumb: true,
|
|
347
|
+
class: {
|
|
348
|
+
track: "border-b-secondary"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
color: "success",
|
|
353
|
+
isVertical: true,
|
|
354
|
+
hasSingleThumb: true,
|
|
355
|
+
class: {
|
|
356
|
+
track: "border-b-success"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
color: "warning",
|
|
361
|
+
isVertical: true,
|
|
362
|
+
hasSingleThumb: true,
|
|
363
|
+
class: {
|
|
364
|
+
track: "border-b-warning"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
color: "danger",
|
|
369
|
+
isVertical: true,
|
|
370
|
+
hasSingleThumb: true,
|
|
371
|
+
class: {
|
|
372
|
+
track: "border-b-danger"
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
defaultVariants: {
|
|
377
|
+
size: "md",
|
|
378
|
+
color: "primary",
|
|
379
|
+
radius: "full",
|
|
380
|
+
hideValue: false,
|
|
381
|
+
hideThumb: false,
|
|
382
|
+
isDisabled: false,
|
|
383
|
+
disableThumbScale: false,
|
|
384
|
+
disableAnimation: false,
|
|
385
|
+
showOutline: false
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
export {
|
|
390
|
+
slider
|
|
391
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WBUVHAJX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataFocusVisibleClasses
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
7
7
|
|
|
8
8
|
// src/components/navbar.ts
|
|
9
9
|
var navbar = tv({
|
|
@@ -128,7 +128,10 @@ var navbar = tv({
|
|
|
128
128
|
"gap-2",
|
|
129
129
|
"overflow-y-auto"
|
|
130
130
|
],
|
|
131
|
-
menuItem: [
|
|
131
|
+
menuItem: [
|
|
132
|
+
"text-large",
|
|
133
|
+
"data-[active=true]:font-semibold"
|
|
134
|
+
]
|
|
132
135
|
},
|
|
133
136
|
variants: {
|
|
134
137
|
position: {
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// src/utils/theme.ts
|
|
6
6
|
var isBaseTheme = (theme) => theme === "light" || theme === "dark";
|
|
7
|
+
var ROOT_FONT_SIZE = 16;
|
|
7
8
|
var baseScale = [1, 2, 3, 3.5, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18];
|
|
8
9
|
var extendedScale = [20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 72, 80, 96];
|
|
9
10
|
var generateSpacingScale = (spacingUnit) => {
|
|
@@ -24,7 +25,7 @@ var generateSpacingScale = (spacingUnit) => {
|
|
|
24
25
|
};
|
|
25
26
|
const scale = { 0: "0px" };
|
|
26
27
|
Object.entries(scaleLabels).forEach(([label, multiplier]) => {
|
|
27
|
-
scale[label] = multiplier ? `${spacingUnit * multiplier}
|
|
28
|
+
scale[label] = multiplier ? `${spacingUnit * multiplier / ROOT_FONT_SIZE}rem` : `${spacingUnit / ROOT_FONT_SIZE}rem`;
|
|
28
29
|
});
|
|
29
30
|
baseScale.forEach((i) => {
|
|
30
31
|
let key = `${i}`;
|
|
@@ -32,11 +33,11 @@ var generateSpacingScale = (spacingUnit) => {
|
|
|
32
33
|
const [first, second] = key.split(".");
|
|
33
34
|
key = `${first}_${second}`;
|
|
34
35
|
}
|
|
35
|
-
scale[key] = `${spacingUnit * i}
|
|
36
|
+
scale[key] = `${spacingUnit * i / ROOT_FONT_SIZE}rem`;
|
|
36
37
|
});
|
|
37
38
|
extendedScale.forEach((i) => {
|
|
38
39
|
const key = `${i}`;
|
|
39
|
-
scale[key] = `${spacingUnit * i}
|
|
40
|
+
scale[key] = `${spacingUnit * i / ROOT_FONT_SIZE}rem`;
|
|
40
41
|
});
|
|
41
42
|
return scale;
|
|
42
43
|
};
|
|
@@ -41,6 +41,11 @@ var transition_default = {
|
|
|
41
41
|
"transition-timing-function": "ease",
|
|
42
42
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
43
43
|
},
|
|
44
|
+
".transition-size": {
|
|
45
|
+
"transition-property": "width, height",
|
|
46
|
+
"transition-timing-function": "ease",
|
|
47
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
48
|
+
},
|
|
44
49
|
".transition-left": {
|
|
45
50
|
"transition-property": "left",
|
|
46
51
|
"transition-timing-function": "ease",
|
|
@@ -70,6 +75,11 @@ var transition_default = {
|
|
|
70
75
|
" transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke",
|
|
71
76
|
"transition-timing-function": "ease",
|
|
72
77
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
78
|
+
},
|
|
79
|
+
".transition-transform-colors-opacity": {
|
|
80
|
+
" transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity",
|
|
81
|
+
"transition-timing-function": "ease",
|
|
82
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
73
83
|
}
|
|
74
84
|
};
|
|
75
85
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WBUVHAJX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataFocusVisibleClasses
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
7
7
|
|
|
8
8
|
// src/components/accordion.ts
|
|
9
9
|
var accordion = tv({
|
|
@@ -39,7 +39,7 @@ var accordionItem = tv({
|
|
|
39
39
|
],
|
|
40
40
|
startContent: "flex-shrink-0",
|
|
41
41
|
indicator: "text-default-400",
|
|
42
|
-
titleWrapper: "flex-1 flex flex-col text-
|
|
42
|
+
titleWrapper: "flex-1 flex flex-col text-start",
|
|
43
43
|
title: "text-foreground text-large",
|
|
44
44
|
subtitle: "text-small text-foreground-500 font-normal",
|
|
45
45
|
content: "py-2"
|
|
@@ -78,7 +78,7 @@ var accordionItem = tv({
|
|
|
78
78
|
indicator: "transition-none"
|
|
79
79
|
},
|
|
80
80
|
false: {
|
|
81
|
-
indicator: "rotate-0 data-[open=true]:-rotate-90"
|
|
81
|
+
indicator: "rotate-0 data-[open=true]:-rotate-90 rtl:-rotate-180 rtl:data-[open=true]:-rotate-90"
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
},
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-2PIR7DFM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
tv
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WBUVHAJX.mjs";
|
|
7
7
|
import {
|
|
8
8
|
dataFocusVisibleClasses,
|
|
9
9
|
translateCenterClasses
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/avatar.ts
|
|
13
13
|
var avatar = tv({
|
|
@@ -21,7 +21,7 @@ var avatar = tv({
|
|
|
21
21
|
"overflow-hidden",
|
|
22
22
|
"align-middle",
|
|
23
23
|
"text-white",
|
|
24
|
-
"z-
|
|
24
|
+
"z-0",
|
|
25
25
|
...dataFocusVisibleClasses
|
|
26
26
|
],
|
|
27
27
|
img: [
|
|
@@ -108,7 +108,7 @@ var avatar = tv({
|
|
|
108
108
|
isInGroup: {
|
|
109
109
|
true: {
|
|
110
110
|
base: [
|
|
111
|
-
"-
|
|
111
|
+
"-ms-2 data-[hover=true]:-translate-x-3 transition-transform",
|
|
112
112
|
"data-[focus-visible=true]:-translate-x-3"
|
|
113
113
|
]
|
|
114
114
|
}
|
|
@@ -136,7 +136,7 @@ var avatar = tv({
|
|
|
136
136
|
color: "primary",
|
|
137
137
|
isBordered: true,
|
|
138
138
|
class: {
|
|
139
|
-
base: "ring-
|
|
139
|
+
base: "ring-primary"
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
142
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WBUVHAJX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataFocusVisibleClasses
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
7
7
|
|
|
8
8
|
// src/components/card.ts
|
|
9
9
|
var card = tv({
|
|
@@ -37,7 +37,7 @@ var card = tv({
|
|
|
37
37
|
"flex",
|
|
38
38
|
"flex-1",
|
|
39
39
|
"w-full",
|
|
40
|
-
"p-
|
|
40
|
+
"p-3",
|
|
41
41
|
"flex-auto",
|
|
42
42
|
"flex-col",
|
|
43
43
|
"place-content-inherit",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WBUVHAJX.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/skeleton.ts
|
|
6
6
|
var skeleton = tv({
|
|
@@ -28,7 +28,7 @@ var skeleton = tv({
|
|
|
28
28
|
"after:-z-10",
|
|
29
29
|
"after:bg-content3",
|
|
30
30
|
"dark:after:bg-content2",
|
|
31
|
-
"data-[loaded=true]
|
|
31
|
+
"data-[loaded=true]:!bg-transparent",
|
|
32
32
|
"data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:animate-none",
|
|
33
33
|
"data-[loaded=true]:after:opacity-0"
|
|
34
34
|
],
|