@nextui-org/theme 2.2.11 → 2.3.0-beta.0
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-LSQXJEPE.mjs → chunk-2ODFPLXN.mjs} +22 -22
- package/dist/{chunk-TA7PDZUG.mjs → chunk-2TAKWWRG.mjs} +1 -1
- package/dist/chunk-3XDFZGUJ.mjs +216 -0
- package/dist/{chunk-3XVMTUU7.mjs → chunk-46U6G7UJ.mjs} +2 -2
- package/dist/{chunk-MP2JYSMR.mjs → chunk-5VB7JNVX.mjs} +2 -2
- package/dist/{chunk-JBKBSMXM.mjs → chunk-7IYRK3EV.mjs} +1 -1
- package/dist/{chunk-T2VR4T5R.mjs → chunk-AKXXHKTO.mjs} +1 -1
- package/dist/{chunk-EF6G67MF.mjs → chunk-AN5I7NTT.mjs} +1 -1
- package/dist/{chunk-KPVV2V7V.mjs → chunk-AUN4SP2F.mjs} +1 -1
- package/dist/{chunk-A2DU46QS.mjs → chunk-AXSF7SRE.mjs} +1 -1
- package/dist/{chunk-V4SD44VK.mjs → chunk-BWPOLXFL.mjs} +1 -1
- package/dist/{chunk-AXXUQWWC.mjs → chunk-DBPAK7QN.mjs} +1 -1
- package/dist/{chunk-63NMFZTF.mjs → chunk-EGGHND3C.mjs} +2 -2
- package/dist/chunk-EP7KPCL3.mjs +62 -0
- package/dist/{chunk-GQDFLFNG.mjs → chunk-EQPJSVMB.mjs} +1 -1
- package/dist/{chunk-KUKJUMC3.mjs → chunk-FB2NWPDB.mjs} +4 -4
- package/dist/{chunk-ARYJFX77.mjs → chunk-FJGKW3ZE.mjs} +10 -10
- package/dist/{chunk-BYWORP66.mjs → chunk-GIXI35A3.mjs} +8 -1
- package/dist/{chunk-BJ6IKX32.mjs → chunk-GMZHMFEU.mjs} +1 -1
- package/dist/{chunk-BZCSOIUI.mjs → chunk-GQT3YUX3.mjs} +5 -5
- package/dist/{chunk-XL6AWNU3.mjs → chunk-HHK47K4W.mjs} +2 -2
- package/dist/{chunk-MVG7GLBD.mjs → chunk-HIFLYEAM.mjs} +1 -1
- package/dist/{chunk-22SLLLIZ.mjs → chunk-HNRFZTEX.mjs} +3 -3
- package/dist/{chunk-M3GQ3DWZ.mjs → chunk-HZ7J23VD.mjs} +6 -3
- package/dist/{chunk-C3SML4G4.mjs → chunk-IAHJC7C4.mjs} +1 -1
- package/dist/{chunk-2KK3SUMT.mjs → chunk-IZOPFGDE.mjs} +37 -2
- package/dist/{chunk-PWJWH4MD.mjs → chunk-JE6SPRGQ.mjs} +2 -2
- package/dist/{chunk-7YPXCOW5.mjs → chunk-K6KPB2U5.mjs} +1 -1
- package/dist/{chunk-42JWJWWX.mjs → chunk-KTTXIYK2.mjs} +2 -2
- package/dist/{chunk-C43Y2OOL.mjs → chunk-KZ2I3V4D.mjs} +2 -2
- package/dist/{chunk-JFWA3DGK.mjs → chunk-LCMN7HGG.mjs} +19 -13
- package/dist/{chunk-JYFVXE5E.mjs → chunk-LVAEW6WR.mjs} +3 -3
- package/dist/{chunk-R27WO3A6.mjs → chunk-LWG2RR7B.mjs} +2 -2
- package/dist/{chunk-P73E5YV7.mjs → chunk-N67DL6BW.mjs} +2 -4
- package/dist/{chunk-UDSOWFZE.mjs → chunk-OAHW4NON.mjs} +1 -1
- package/dist/{chunk-WGH4WKVU.mjs → chunk-QFGVVQRM.mjs} +2 -2
- package/dist/{chunk-XAYP4CR3.mjs → chunk-SC2SILVU.mjs} +2 -2
- package/dist/{chunk-QWWVIX6M.mjs → chunk-TNFNBUPA.mjs} +5 -4
- package/dist/{chunk-U6G6SZ26.mjs → chunk-TOQXZATI.mjs} +1 -1
- package/dist/{chunk-3QYYLFUC.mjs → chunk-UQZHSMVI.mjs} +1 -1
- package/dist/{chunk-N2KXC5ZE.mjs → chunk-UWE6H66T.mjs} +1 -1
- package/dist/{chunk-KPI62GDB.mjs → chunk-VKSIQ7SR.mjs} +1 -1
- package/dist/{chunk-F4AOWB64.mjs → chunk-VX7HAPUO.mjs} +1 -1
- package/dist/{chunk-DI2L75XK.mjs → chunk-W5UU3F46.mjs} +5 -0
- package/dist/{chunk-QV3ALCMB.mjs → chunk-XQI5RD6S.mjs} +2 -2
- package/dist/{chunk-3LD7T42T.mjs → chunk-XZMJGJQX.mjs} +4 -4
- package/dist/{chunk-VLE2FQQR.mjs → chunk-YLHKOIZS.mjs} +1 -1
- package/dist/{chunk-XXQSA25O.mjs → chunk-YRDDKYYT.mjs} +6 -3
- package/dist/components/accordion.js +8 -1
- package/dist/components/accordion.mjs +5 -5
- package/dist/components/alert.d.ts +344 -0
- package/dist/components/alert.js +355 -0
- package/dist/components/alert.mjs +12 -0
- package/dist/components/autocomplete.js +8 -1
- package/dist/components/autocomplete.mjs +3 -3
- package/dist/components/avatar.js +13 -6
- package/dist/components/avatar.mjs +5 -5
- package/dist/components/badge.js +13 -6
- package/dist/components/badge.mjs +5 -5
- package/dist/components/breadcrumbs.js +9 -2
- package/dist/components/breadcrumbs.mjs +5 -5
- package/dist/components/button.js +17 -7
- package/dist/components/button.mjs +5 -5
- package/dist/components/calendar.js +8 -1
- package/dist/components/calendar.mjs +5 -5
- package/dist/components/card.js +8 -1
- package/dist/components/card.mjs +5 -5
- package/dist/components/checkbox.js +11 -4
- package/dist/components/checkbox.mjs +5 -5
- package/dist/components/chip.js +13 -6
- package/dist/components/chip.mjs +5 -5
- package/dist/components/circular-progress.js +8 -1
- package/dist/components/circular-progress.mjs +3 -3
- package/dist/components/code.js +13 -6
- package/dist/components/code.mjs +5 -5
- package/dist/components/date-input.js +10 -3
- package/dist/components/date-input.mjs +3 -3
- package/dist/components/date-picker.js +9 -2
- package/dist/components/date-picker.mjs +3 -3
- package/dist/components/divider.js +8 -1
- package/dist/components/divider.mjs +3 -3
- package/dist/components/drawer.d.ts +358 -0
- package/dist/components/drawer.js +130 -0
- package/dist/components/drawer.mjs +8 -0
- package/dist/components/drip.js +8 -1
- package/dist/components/drip.mjs +3 -3
- package/dist/components/dropdown.js +8 -1
- package/dist/components/dropdown.mjs +5 -5
- package/dist/components/image.js +8 -1
- package/dist/components/image.mjs +3 -3
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +367 -55
- package/dist/components/index.mjs +68 -60
- package/dist/components/input.d.ts +7 -0
- package/dist/components/input.js +12 -4
- package/dist/components/input.mjs +5 -5
- package/dist/components/kbd.js +8 -1
- package/dist/components/kbd.mjs +3 -3
- package/dist/components/link.js +8 -1
- package/dist/components/link.mjs +5 -5
- package/dist/components/listbox.js +8 -1
- package/dist/components/listbox.mjs +5 -5
- package/dist/components/menu.js +8 -1
- package/dist/components/menu.mjs +5 -5
- package/dist/components/modal.js +9 -4
- package/dist/components/modal.mjs +5 -5
- package/dist/components/navbar.js +8 -1
- package/dist/components/navbar.mjs +5 -5
- package/dist/components/pagination.js +13 -6
- package/dist/components/pagination.mjs +5 -5
- package/dist/components/popover.js +13 -6
- package/dist/components/popover.mjs +5 -5
- package/dist/components/progress.js +44 -2
- package/dist/components/progress.mjs +3 -3
- package/dist/components/radio.js +10 -3
- package/dist/components/radio.mjs +5 -5
- package/dist/components/scroll-shadow.js +8 -1
- package/dist/components/scroll-shadow.mjs +3 -3
- package/dist/components/select.d.ts +21 -0
- package/dist/components/select.js +13 -3
- package/dist/components/select.mjs +5 -5
- package/dist/components/skeleton.js +8 -1
- package/dist/components/skeleton.mjs +3 -3
- package/dist/components/slider.js +8 -1
- package/dist/components/slider.mjs +5 -5
- package/dist/components/snippet.js +13 -6
- package/dist/components/snippet.mjs +5 -5
- package/dist/components/spacer.js +8 -1
- package/dist/components/spacer.mjs +3 -3
- package/dist/components/spinner.js +8 -1
- package/dist/components/spinner.mjs +3 -3
- package/dist/components/table.js +29 -22
- package/dist/components/table.mjs +5 -5
- package/dist/components/tabs.js +13 -6
- package/dist/components/tabs.mjs +5 -5
- package/dist/components/toggle.js +17 -10
- package/dist/components/toggle.mjs +5 -5
- package/dist/components/user.d.ts +26 -27
- package/dist/components/user.js +8 -1
- package/dist/components/user.mjs +5 -5
- package/dist/index.d.ts +2 -1
- package/dist/index.js +392 -69
- package/dist/index.mjs +74 -66
- package/dist/plugin.js +24 -13
- package/dist/plugin.mjs +4 -4
- package/dist/utilities/custom.d.ts +5 -0
- package/dist/utilities/custom.js +5 -0
- package/dist/utilities/custom.mjs +1 -1
- package/dist/utilities/index.d.ts +5 -0
- package/dist/utilities/index.js +5 -0
- package/dist/utilities/index.mjs +3 -3
- package/dist/utils/cn.js +9 -2
- package/dist/utils/cn.mjs +2 -2
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +14 -7
- package/dist/utils/index.mjs +5 -5
- package/dist/utils/tv.js +8 -1
- package/dist/utils/tv.mjs +2 -2
- package/dist/utils/tw-merge-config.d.ts +17 -3
- package/dist/utils/tw-merge-config.js +8 -1
- package/dist/utils/tw-merge-config.mjs +1 -1
- package/dist/utils/variants.js +5 -5
- package/dist/utils/variants.mjs +1 -1
- package/package.json +3 -12
- /package/dist/{chunk-UVXYPGDZ.mjs → chunk-MA4DKK64.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataFocusVisibleClasses
|
|
6
6
|
} from "./chunk-XHQUSKIE.mjs";
|
|
@@ -24,9 +24,9 @@ var table = tv({
|
|
|
24
24
|
table: "min-w-full h-auto",
|
|
25
25
|
thead: "[&>tr]:first:rounded-lg",
|
|
26
26
|
tbody: "",
|
|
27
|
-
tr: ["group", "outline-none", ...dataFocusVisibleClasses],
|
|
27
|
+
tr: ["group/tr", "outline-none", ...dataFocusVisibleClasses],
|
|
28
28
|
th: [
|
|
29
|
-
"group",
|
|
29
|
+
"group/th",
|
|
30
30
|
"px-3",
|
|
31
31
|
"h-10",
|
|
32
32
|
"text-start",
|
|
@@ -61,8 +61,8 @@ var table = tv({
|
|
|
61
61
|
"before:inset-0",
|
|
62
62
|
"before:opacity-0",
|
|
63
63
|
"data-[selected=true]:before:opacity-100",
|
|
64
|
-
"group-data-[disabled=true]:text-foreground-300",
|
|
65
|
-
"group-data-[disabled=true]:cursor-not-allowed"
|
|
64
|
+
"group-data-[disabled=true]/tr:text-foreground-300",
|
|
65
|
+
"group-data-[disabled=true]/tr:cursor-not-allowed"
|
|
66
66
|
],
|
|
67
67
|
tfoot: "",
|
|
68
68
|
sortIcon: [
|
|
@@ -73,7 +73,7 @@ var table = tv({
|
|
|
73
73
|
"inline-block",
|
|
74
74
|
"transition-transform-opacity",
|
|
75
75
|
"data-[visible=true]:opacity-100",
|
|
76
|
-
"group-data-[hover=true]:opacity-100",
|
|
76
|
+
"group-data-[hover=true]/th:opacity-100",
|
|
77
77
|
"data-[direction=ascending]:rotate-180"
|
|
78
78
|
],
|
|
79
79
|
emptyWrapper: "text-foreground-400 align-middle text-center h-40",
|
|
@@ -144,9 +144,9 @@ var table = tv({
|
|
|
144
144
|
isStriped: {
|
|
145
145
|
true: {
|
|
146
146
|
td: [
|
|
147
|
-
"group-data-[odd=true]:before:bg-default-100",
|
|
148
|
-
"group-data-[odd=true]:before:opacity-100",
|
|
149
|
-
"group-data-[odd=true]:before:-z-10"
|
|
147
|
+
"group-data-[odd=true]/tr:before:bg-default-100",
|
|
148
|
+
"group-data-[odd=true]/tr:before:opacity-100",
|
|
149
|
+
"group-data-[odd=true]/tr:before:-z-10"
|
|
150
150
|
]
|
|
151
151
|
}
|
|
152
152
|
},
|
|
@@ -165,19 +165,19 @@ var table = tv({
|
|
|
165
165
|
true: {
|
|
166
166
|
tr: "cursor-default",
|
|
167
167
|
td: [
|
|
168
|
-
"group-aria-[selected=false]:group-data-[hover=true]:before:bg-default-100",
|
|
169
|
-
"group-aria-[selected=false]:group-data-[hover=true]:before:opacity-70"
|
|
168
|
+
"group-aria-[selected=false]/tr:group-data-[hover=true]/tr:before:bg-default-100",
|
|
169
|
+
"group-aria-[selected=false]/tr:group-data-[hover=true]/tr:before:opacity-70"
|
|
170
170
|
]
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
isMultiSelectable: {
|
|
174
174
|
true: {
|
|
175
175
|
td: [
|
|
176
|
-
"group-data-[first=true]:first:before:rounded-ts-lg",
|
|
177
|
-
"group-data-[first=true]:last:before:rounded-te-lg",
|
|
178
|
-
"group-data-[middle=true]:before:rounded-none",
|
|
179
|
-
"group-data-[last=true]:first:before:rounded-bs-lg",
|
|
180
|
-
"group-data-[last=true]:last:before:rounded-be-lg"
|
|
176
|
+
"group-data-[first=true]/tr:first:before:rounded-ts-lg",
|
|
177
|
+
"group-data-[first=true]/tr:last:before:rounded-te-lg",
|
|
178
|
+
"group-data-[middle=true]/tr:before:rounded-none",
|
|
179
|
+
"group-data-[last=true]/tr:first:before:rounded-bs-lg",
|
|
180
|
+
"group-data-[last=true]/tr:last:before:rounded-be-lg"
|
|
181
181
|
]
|
|
182
182
|
},
|
|
183
183
|
false: {
|
|
@@ -222,42 +222,42 @@ var table = tv({
|
|
|
222
222
|
isStriped: true,
|
|
223
223
|
color: "default",
|
|
224
224
|
class: {
|
|
225
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-default/60"
|
|
225
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-default/60"
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
isStriped: true,
|
|
230
230
|
color: "primary",
|
|
231
231
|
class: {
|
|
232
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-primary/20"
|
|
232
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-primary/20"
|
|
233
233
|
}
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
isStriped: true,
|
|
237
237
|
color: "secondary",
|
|
238
238
|
class: {
|
|
239
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-secondary/20"
|
|
239
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-secondary/20"
|
|
240
240
|
}
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
isStriped: true,
|
|
244
244
|
color: "success",
|
|
245
245
|
class: {
|
|
246
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-success/20"
|
|
246
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-success/20"
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
250
|
isStriped: true,
|
|
251
251
|
color: "warning",
|
|
252
252
|
class: {
|
|
253
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-warning/20"
|
|
253
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-warning/20"
|
|
254
254
|
}
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
257
|
isStriped: true,
|
|
258
258
|
color: "danger",
|
|
259
259
|
class: {
|
|
260
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-danger/20"
|
|
260
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-danger/20"
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
]
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colorVariants
|
|
3
|
+
} from "./chunk-GQT3YUX3.mjs";
|
|
4
|
+
import {
|
|
5
|
+
tv
|
|
6
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/alert.ts
|
|
9
|
+
var alert = tv({
|
|
10
|
+
slots: {
|
|
11
|
+
base: "flex flex-row w-full flex-grow min-h-17 max-h-full py-3 px-4",
|
|
12
|
+
mainWrapper: [
|
|
13
|
+
"flex-grow min-h-11 max-h-full ms-2 flex flex-col box-border items-start text-inherit"
|
|
14
|
+
],
|
|
15
|
+
title: "w-full text-medium font-normal block min-h-6 max-h-full text-inherit",
|
|
16
|
+
description: "text-small font-normal min-h-5 max-h-full text-inherit",
|
|
17
|
+
closeButton: "relative text-inherit",
|
|
18
|
+
alertIcon: "fill-current w-6"
|
|
19
|
+
},
|
|
20
|
+
variants: {
|
|
21
|
+
color: {
|
|
22
|
+
default: {},
|
|
23
|
+
primary: {},
|
|
24
|
+
secondary: {},
|
|
25
|
+
success: {},
|
|
26
|
+
warning: {},
|
|
27
|
+
danger: {}
|
|
28
|
+
},
|
|
29
|
+
variant: {
|
|
30
|
+
solid: {},
|
|
31
|
+
flat: {},
|
|
32
|
+
bordered: {
|
|
33
|
+
base: "border-medium bg-transparent"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
radius: {
|
|
37
|
+
none: {
|
|
38
|
+
base: "rounded-none"
|
|
39
|
+
},
|
|
40
|
+
sm: {
|
|
41
|
+
base: "rounded-small"
|
|
42
|
+
},
|
|
43
|
+
md: {
|
|
44
|
+
base: "rounded-medium"
|
|
45
|
+
},
|
|
46
|
+
lg: {
|
|
47
|
+
base: "rounded-large"
|
|
48
|
+
},
|
|
49
|
+
full: {
|
|
50
|
+
base: "rounded-full"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
hasDescription: {
|
|
54
|
+
true: {
|
|
55
|
+
alertIcon: "mt-0.5"
|
|
56
|
+
},
|
|
57
|
+
false: {
|
|
58
|
+
base: "items-center",
|
|
59
|
+
mainWrapper: "justify-center"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
defaultVariants: {
|
|
64
|
+
color: "default",
|
|
65
|
+
variant: "flat",
|
|
66
|
+
radius: "md"
|
|
67
|
+
},
|
|
68
|
+
compoundVariants: [
|
|
69
|
+
{
|
|
70
|
+
variant: "solid",
|
|
71
|
+
color: "default",
|
|
72
|
+
class: {
|
|
73
|
+
base: colorVariants.solid.default,
|
|
74
|
+
closeButton: "data-[hover]:bg-default-100",
|
|
75
|
+
alertIcon: "text-default-foreground"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
variant: "solid",
|
|
80
|
+
color: "primary",
|
|
81
|
+
class: {
|
|
82
|
+
base: colorVariants.solid.primary
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
variant: "solid",
|
|
87
|
+
color: "secondary",
|
|
88
|
+
class: {
|
|
89
|
+
base: colorVariants.solid.secondary
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
variant: "solid",
|
|
94
|
+
color: "success",
|
|
95
|
+
class: {
|
|
96
|
+
base: colorVariants.solid.success
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
variant: "solid",
|
|
101
|
+
color: "warning",
|
|
102
|
+
class: {
|
|
103
|
+
base: colorVariants.solid.warning
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
variant: "solid",
|
|
108
|
+
color: "danger",
|
|
109
|
+
class: {
|
|
110
|
+
base: colorVariants.solid.danger
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
variant: "flat",
|
|
115
|
+
color: "default",
|
|
116
|
+
class: {
|
|
117
|
+
base: [colorVariants.flat.default, "text-default-foreground"],
|
|
118
|
+
description: "text-default-600",
|
|
119
|
+
closeButton: "text-default-400"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
variant: "flat",
|
|
124
|
+
color: "primary",
|
|
125
|
+
class: {
|
|
126
|
+
base: colorVariants.flat.primary,
|
|
127
|
+
closeButton: "text-primary-400 data-[hover]:bg-primary-100"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
variant: "flat",
|
|
132
|
+
color: "secondary",
|
|
133
|
+
class: {
|
|
134
|
+
base: colorVariants.flat.secondary,
|
|
135
|
+
closeButton: "text-secondary-400 data-[hover]:bg-secondary-100"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
variant: "flat",
|
|
140
|
+
color: "success",
|
|
141
|
+
class: {
|
|
142
|
+
base: colorVariants.flat.success,
|
|
143
|
+
closeButton: "text-success-400 data-[hover]:bg-success-100"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
variant: "flat",
|
|
148
|
+
color: "warning",
|
|
149
|
+
class: {
|
|
150
|
+
base: colorVariants.flat.warning,
|
|
151
|
+
closeButton: "text-warning-500 data-[hover]:bg-warning-200"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
variant: "flat",
|
|
156
|
+
color: "danger",
|
|
157
|
+
class: {
|
|
158
|
+
base: colorVariants.flat.danger,
|
|
159
|
+
closeButton: "text-danger-400 data-[hover]:bg-danger-100"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
variant: "bordered",
|
|
164
|
+
color: "default",
|
|
165
|
+
class: {
|
|
166
|
+
base: [colorVariants.bordered.default],
|
|
167
|
+
description: "text-default-600",
|
|
168
|
+
closeButton: "text-default-400"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
variant: "bordered",
|
|
173
|
+
color: "primary",
|
|
174
|
+
class: {
|
|
175
|
+
base: [colorVariants.bordered.primary],
|
|
176
|
+
closeButton: "data-[hover]:bg-primary-50"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
variant: "bordered",
|
|
181
|
+
color: "secondary",
|
|
182
|
+
class: {
|
|
183
|
+
base: [colorVariants.bordered.secondary],
|
|
184
|
+
closeButton: "data-[hover]:bg-secondary-50"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
variant: "bordered",
|
|
189
|
+
color: "success",
|
|
190
|
+
class: {
|
|
191
|
+
base: [colorVariants.bordered.success],
|
|
192
|
+
closeButton: "data-[hover]:bg-success-50"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
variant: "bordered",
|
|
197
|
+
color: "warning",
|
|
198
|
+
class: {
|
|
199
|
+
base: [colorVariants.bordered.warning],
|
|
200
|
+
closeButton: "data-[hover]:bg-warning-100"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
variant: "bordered",
|
|
205
|
+
color: "danger",
|
|
206
|
+
class: {
|
|
207
|
+
base: [colorVariants.bordered.danger],
|
|
208
|
+
closeButton: "data-[hover]:bg-danger-50"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
export {
|
|
215
|
+
alert
|
|
216
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
twMergeConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GIXI35A3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/utils/cn.ts
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { extendTailwindMerge } from "tailwind-merge";
|
|
8
|
-
var twMerge = extendTailwindMerge(twMergeConfig);
|
|
8
|
+
var twMerge = extendTailwindMerge({ extend: twMergeConfig });
|
|
9
9
|
function cn(...inputs) {
|
|
10
10
|
return twMerge(clsx(inputs));
|
|
11
11
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/drawer.ts
|
|
6
|
+
var drawer = tv({
|
|
7
|
+
slots: {
|
|
8
|
+
base: ["absolute", "m-0", "sm:m-0", "overflow-y-auto"]
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
size: {
|
|
12
|
+
xs: {
|
|
13
|
+
base: "max-w-xs max-h-[20rem]"
|
|
14
|
+
},
|
|
15
|
+
sm: {
|
|
16
|
+
base: "max-w-sm max-h-[24rem]"
|
|
17
|
+
},
|
|
18
|
+
md: {
|
|
19
|
+
base: "max-w-md max-h-[28rem]"
|
|
20
|
+
},
|
|
21
|
+
lg: {
|
|
22
|
+
base: "max-w-lg max-h-[32rem]"
|
|
23
|
+
},
|
|
24
|
+
xl: {
|
|
25
|
+
base: "max-w-xl max-h-[36rem]"
|
|
26
|
+
},
|
|
27
|
+
"2xl": {
|
|
28
|
+
base: "max-w-2xl max-h-[42rem]"
|
|
29
|
+
},
|
|
30
|
+
"3xl": {
|
|
31
|
+
base: "max-w-3xl max-h-[48rem]"
|
|
32
|
+
},
|
|
33
|
+
"4xl": {
|
|
34
|
+
base: "max-w-4xl max-h-[56rem]"
|
|
35
|
+
},
|
|
36
|
+
"5xl": {
|
|
37
|
+
base: "max-w-5xl max-h-[64rem]"
|
|
38
|
+
},
|
|
39
|
+
full: {
|
|
40
|
+
base: "max-w-full max-h-full h-[100dvh] !rounded-none"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
placement: {
|
|
44
|
+
top: {
|
|
45
|
+
base: "inset-x-0 top-0 max-w-[none] rounded-t-none"
|
|
46
|
+
},
|
|
47
|
+
right: {
|
|
48
|
+
base: "inset-y-0 right-0 max-h-[none] rounded-r-none"
|
|
49
|
+
},
|
|
50
|
+
bottom: {
|
|
51
|
+
base: "inset-x-0 bottom-0 max-w-[none] rounded-b-none"
|
|
52
|
+
},
|
|
53
|
+
left: {
|
|
54
|
+
base: "inset-y-0 left-0 max-h-[none] rounded-l-none"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
drawer
|
|
62
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
4
4
|
import {
|
|
5
5
|
groupDataFocusVisibleClasses
|
|
6
6
|
} from "./chunk-XHQUSKIE.mjs";
|
|
@@ -61,7 +61,7 @@ var checkbox = tv({
|
|
|
61
61
|
size: {
|
|
62
62
|
sm: {
|
|
63
63
|
wrapper: [
|
|
64
|
-
"w-4 h-4
|
|
64
|
+
"w-4 h-4 me-2",
|
|
65
65
|
"rounded-[calc(theme(borderRadius.medium)*0.5)]",
|
|
66
66
|
"before:rounded-[calc(theme(borderRadius.medium)*0.5)]",
|
|
67
67
|
"after:rounded-[calc(theme(borderRadius.medium)*0.5)]"
|
|
@@ -71,7 +71,7 @@ var checkbox = tv({
|
|
|
71
71
|
},
|
|
72
72
|
md: {
|
|
73
73
|
wrapper: [
|
|
74
|
-
"w-5 h-5
|
|
74
|
+
"w-5 h-5 me-2",
|
|
75
75
|
"rounded-[calc(theme(borderRadius.medium)*0.6)]",
|
|
76
76
|
"before:rounded-[calc(theme(borderRadius.medium)*0.6)]",
|
|
77
77
|
"after:rounded-[calc(theme(borderRadius.medium)*0.6)]"
|
|
@@ -81,7 +81,7 @@ var checkbox = tv({
|
|
|
81
81
|
},
|
|
82
82
|
lg: {
|
|
83
83
|
wrapper: [
|
|
84
|
-
"w-6 h-6
|
|
84
|
+
"w-6 h-6 me-2",
|
|
85
85
|
"rounded-[calc(theme(borderRadius.medium)*0.7)]",
|
|
86
86
|
"before:rounded-[calc(theme(borderRadius.medium)*0.7)]",
|
|
87
87
|
"after:rounded-[calc(theme(borderRadius.medium)*0.7)]"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
4
4
|
import {
|
|
5
5
|
groupDataFocusVisibleClasses
|
|
6
6
|
} from "./chunk-XHQUSKIE.mjs";
|
|
@@ -31,10 +31,10 @@ var toggle = tv({
|
|
|
31
31
|
"rounded-full",
|
|
32
32
|
"origin-right"
|
|
33
33
|
],
|
|
34
|
-
startContent: "z-0 absolute
|
|
35
|
-
endContent: "z-0 absolute
|
|
34
|
+
startContent: "z-0 absolute start-1.5 text-current",
|
|
35
|
+
endContent: "z-0 absolute end-1.5 text-default-600",
|
|
36
36
|
thumbIcon: "text-black",
|
|
37
|
-
label: "relative text-foreground select-none"
|
|
37
|
+
label: "relative text-foreground select-none ms-2"
|
|
38
38
|
},
|
|
39
39
|
variants: {
|
|
40
40
|
color: {
|
|
@@ -77,30 +77,30 @@ var toggle = tv({
|
|
|
77
77
|
},
|
|
78
78
|
size: {
|
|
79
79
|
sm: {
|
|
80
|
-
wrapper: "w-10 h-6
|
|
80
|
+
wrapper: "w-10 h-6",
|
|
81
81
|
thumb: [
|
|
82
82
|
"w-4 h-4 text-tiny",
|
|
83
|
-
"group-data-[selected=true]:
|
|
83
|
+
"group-data-[selected=true]:ms-4"
|
|
84
84
|
],
|
|
85
85
|
endContent: "text-tiny",
|
|
86
86
|
startContent: "text-tiny",
|
|
87
87
|
label: "text-small"
|
|
88
88
|
},
|
|
89
89
|
md: {
|
|
90
|
-
wrapper: "w-12 h-7
|
|
90
|
+
wrapper: "w-12 h-7",
|
|
91
91
|
thumb: [
|
|
92
92
|
"w-5 h-5 text-small",
|
|
93
|
-
"group-data-[selected=true]:
|
|
93
|
+
"group-data-[selected=true]:ms-5"
|
|
94
94
|
],
|
|
95
95
|
endContent: "text-small",
|
|
96
96
|
startContent: "text-small",
|
|
97
97
|
label: "text-medium"
|
|
98
98
|
},
|
|
99
99
|
lg: {
|
|
100
|
-
wrapper: "w-14 h-8
|
|
100
|
+
wrapper: "w-14 h-8",
|
|
101
101
|
thumb: [
|
|
102
102
|
"w-6 h-6 text-medium",
|
|
103
|
-
"group-data-[selected=true]:
|
|
103
|
+
"group-data-[selected=true]:ms-6"
|
|
104
104
|
],
|
|
105
105
|
endContent: "text-medium",
|
|
106
106
|
startContent: "text-medium",
|
|
@@ -10,7 +10,14 @@ var twMergeConfig = {
|
|
|
10
10
|
classGroups: {
|
|
11
11
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
12
12
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
13
|
-
"bg-image": [
|
|
13
|
+
"bg-image": [
|
|
14
|
+
"bg-stripe-gradient-default",
|
|
15
|
+
"bg-stripe-gradient-primary",
|
|
16
|
+
"bg-stripe-gradient-secondary",
|
|
17
|
+
"bg-stripe-gradient-success",
|
|
18
|
+
"bg-stripe-gradient-warning",
|
|
19
|
+
"bg-stripe-gradient-danger"
|
|
20
|
+
]
|
|
14
21
|
}
|
|
15
22
|
};
|
|
16
23
|
|
|
@@ -28,11 +28,11 @@ var bordered = {
|
|
|
28
28
|
};
|
|
29
29
|
var flat = {
|
|
30
30
|
default: "bg-default/40 text-default-700",
|
|
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-
|
|
31
|
+
primary: "bg-primary/20 text-primary-600",
|
|
32
|
+
secondary: "bg-secondary/20 text-secondary-600",
|
|
33
|
+
success: "bg-success/20 text-success-700 dark:text-success",
|
|
34
|
+
warning: "bg-warning/20 text-warning-700 dark:text-warning",
|
|
35
|
+
danger: "bg-danger/20 text-danger-600 dark:text-danger-500",
|
|
36
36
|
foreground: "bg-foreground/10 text-foreground"
|
|
37
37
|
};
|
|
38
38
|
var faded = {
|