@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,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-WBUVHAJX.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/autocomplete.ts
|
|
6
|
+
var autocomplete = tv({
|
|
7
|
+
slots: {
|
|
8
|
+
base: "group inline-flex flex-column w-full",
|
|
9
|
+
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
10
|
+
listbox: "",
|
|
11
|
+
popoverContent: "w-full p-1 overflow-hidden",
|
|
12
|
+
endContentWrapper: "relative flex h-full items-center -mr-2",
|
|
13
|
+
clearButton: [
|
|
14
|
+
"text-medium",
|
|
15
|
+
"translate-x-1",
|
|
16
|
+
"cursor-text",
|
|
17
|
+
"opacity-0",
|
|
18
|
+
"text-default-500",
|
|
19
|
+
"group-data-[invalid=true]:text-danger",
|
|
20
|
+
"data-[visible=true]:opacity-100",
|
|
21
|
+
"data-[visible=true]:cursor-pointer",
|
|
22
|
+
"sm:data-[visible=true]:opacity-0",
|
|
23
|
+
"sm:group-data-[hover=true]:data-[visible=true]:opacity-100"
|
|
24
|
+
],
|
|
25
|
+
selectorButton: "text-medium"
|
|
26
|
+
},
|
|
27
|
+
variants: {
|
|
28
|
+
disableClearable: {
|
|
29
|
+
true: {
|
|
30
|
+
clearButton: "hidden"
|
|
31
|
+
},
|
|
32
|
+
false: {}
|
|
33
|
+
},
|
|
34
|
+
disableAnimation: {
|
|
35
|
+
true: {
|
|
36
|
+
selectorButton: "transition-none"
|
|
37
|
+
},
|
|
38
|
+
false: {
|
|
39
|
+
selectorButton: "transition-transform duration-150 ease motion-reduce:transition-none"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
disableSelectorIconRotation: {
|
|
43
|
+
true: {},
|
|
44
|
+
false: {
|
|
45
|
+
selectorButton: "data-[open=true]:rotate-180"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
defaultVariants: {
|
|
50
|
+
disableAnimation: false,
|
|
51
|
+
disableClearable: false,
|
|
52
|
+
disableSelectorIconRotation: false
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
autocomplete
|
|
58
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colorVariants
|
|
3
|
+
} from "./chunk-2PIR7DFM.mjs";
|
|
4
|
+
import {
|
|
5
|
+
tv
|
|
6
|
+
} from "./chunk-WBUVHAJX.mjs";
|
|
7
|
+
import {
|
|
8
|
+
dataFocusVisibleClasses
|
|
9
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
10
|
+
|
|
11
|
+
// src/components/popover.ts
|
|
12
|
+
var popover = tv({
|
|
13
|
+
slots: {
|
|
14
|
+
base: [
|
|
15
|
+
"z-0",
|
|
16
|
+
"relative",
|
|
17
|
+
"bg-transparent",
|
|
18
|
+
"before:content-['']",
|
|
19
|
+
"before:hidden",
|
|
20
|
+
"before:z-[-1]",
|
|
21
|
+
"before:absolute",
|
|
22
|
+
"before:rotate-45",
|
|
23
|
+
"before:w-2.5",
|
|
24
|
+
"before:h-2.5",
|
|
25
|
+
"before:rounded-sm",
|
|
26
|
+
"data-[arrow=true]:before:block",
|
|
27
|
+
"data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
28
|
+
"data-[placement=top]:before:left-1/2",
|
|
29
|
+
"data-[placement=top]:before:-translate-x-1/2",
|
|
30
|
+
"data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
31
|
+
"data-[placement=top-start]:before:left-3",
|
|
32
|
+
"data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
33
|
+
"data-[placement=top-end]:before:right-3",
|
|
34
|
+
"data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
35
|
+
"data-[placement=bottom]:before:left-1/2",
|
|
36
|
+
"data-[placement=bottom]:before:-translate-x-1/2",
|
|
37
|
+
"data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
38
|
+
"data-[placement=bottom-start]:before:left-3",
|
|
39
|
+
"data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
40
|
+
"data-[placement=bottom-end]:before:right-3",
|
|
41
|
+
"data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]",
|
|
42
|
+
"data-[placement=left]:before:top-1/2",
|
|
43
|
+
"data-[placement=left]:before:-translate-y-1/2",
|
|
44
|
+
"data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]",
|
|
45
|
+
"data-[placement=left-start]:before:top-1/4",
|
|
46
|
+
"data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]",
|
|
47
|
+
"data-[placement=left-end]:before:bottom-1/4",
|
|
48
|
+
"data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]",
|
|
49
|
+
"data-[placement=right]:before:top-1/2",
|
|
50
|
+
"data-[placement=right]:before:-translate-y-1/2",
|
|
51
|
+
"data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]",
|
|
52
|
+
"data-[placement=right-start]:before:top-1/4",
|
|
53
|
+
"data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]",
|
|
54
|
+
"data-[placement=right-end]:before:bottom-1/4",
|
|
55
|
+
...dataFocusVisibleClasses
|
|
56
|
+
],
|
|
57
|
+
content: [
|
|
58
|
+
"z-10",
|
|
59
|
+
"px-2.5",
|
|
60
|
+
"py-1",
|
|
61
|
+
"w-full",
|
|
62
|
+
"inline-flex",
|
|
63
|
+
"flex-col",
|
|
64
|
+
"items-center",
|
|
65
|
+
"justify-center",
|
|
66
|
+
"box-border",
|
|
67
|
+
"subpixel-antialiased",
|
|
68
|
+
"outline-none",
|
|
69
|
+
"box-border"
|
|
70
|
+
],
|
|
71
|
+
trigger: ["z-10"],
|
|
72
|
+
backdrop: ["hidden"],
|
|
73
|
+
arrow: []
|
|
74
|
+
},
|
|
75
|
+
variants: {
|
|
76
|
+
size: {
|
|
77
|
+
sm: { content: "text-tiny" },
|
|
78
|
+
md: { content: "text-small" },
|
|
79
|
+
lg: { content: "text-medium" }
|
|
80
|
+
},
|
|
81
|
+
color: {
|
|
82
|
+
default: {
|
|
83
|
+
base: "before:bg-content1 before:shadow-small",
|
|
84
|
+
content: "bg-content1"
|
|
85
|
+
},
|
|
86
|
+
foreground: {
|
|
87
|
+
base: "before:bg-foreground",
|
|
88
|
+
content: colorVariants.solid.foreground
|
|
89
|
+
},
|
|
90
|
+
primary: {
|
|
91
|
+
base: "before:bg-primary",
|
|
92
|
+
content: colorVariants.solid.primary
|
|
93
|
+
},
|
|
94
|
+
secondary: {
|
|
95
|
+
base: "before:bg-secondary",
|
|
96
|
+
content: colorVariants.solid.secondary
|
|
97
|
+
},
|
|
98
|
+
success: {
|
|
99
|
+
base: "before:bg-success",
|
|
100
|
+
content: colorVariants.solid.success
|
|
101
|
+
},
|
|
102
|
+
warning: {
|
|
103
|
+
base: "before:bg-warning",
|
|
104
|
+
content: colorVariants.solid.warning
|
|
105
|
+
},
|
|
106
|
+
danger: {
|
|
107
|
+
base: "before:bg-danger",
|
|
108
|
+
content: colorVariants.solid.danger
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
radius: {
|
|
112
|
+
none: { content: "rounded-none" },
|
|
113
|
+
sm: { content: "rounded-small" },
|
|
114
|
+
md: { content: "rounded-medium" },
|
|
115
|
+
lg: { content: "rounded-large" },
|
|
116
|
+
full: { content: "rounded-full" }
|
|
117
|
+
},
|
|
118
|
+
shadow: {
|
|
119
|
+
sm: {
|
|
120
|
+
content: "shadow-small"
|
|
121
|
+
},
|
|
122
|
+
md: {
|
|
123
|
+
content: "shadow-medium"
|
|
124
|
+
},
|
|
125
|
+
lg: {
|
|
126
|
+
content: "shadow-large"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
backdrop: {
|
|
130
|
+
transparent: {},
|
|
131
|
+
opaque: {
|
|
132
|
+
backdrop: "bg-overlay/50 backdrop-opacity-disabled"
|
|
133
|
+
},
|
|
134
|
+
blur: {
|
|
135
|
+
backdrop: "backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
triggerScaleOnOpen: {
|
|
139
|
+
true: {
|
|
140
|
+
trigger: ["aria-expanded:scale-[0.97]", "aria-expanded:opacity-70", "subpixel-antialiased"]
|
|
141
|
+
},
|
|
142
|
+
false: {}
|
|
143
|
+
},
|
|
144
|
+
disableAnimation: {
|
|
145
|
+
true: {
|
|
146
|
+
base: "animate-none"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
defaultVariants: {
|
|
151
|
+
color: "default",
|
|
152
|
+
radius: "lg",
|
|
153
|
+
size: "md",
|
|
154
|
+
shadow: "md",
|
|
155
|
+
backdrop: "transparent",
|
|
156
|
+
disableAnimation: false,
|
|
157
|
+
triggerScaleOnOpen: true
|
|
158
|
+
},
|
|
159
|
+
compoundVariants: [
|
|
160
|
+
{
|
|
161
|
+
backdrop: ["opaque", "blur"],
|
|
162
|
+
class: {
|
|
163
|
+
backdrop: "block w-full h-full fixed inset-0 -z-30"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
export {
|
|
170
|
+
popover
|
|
171
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WBUVHAJX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
groupDataFocusVisibleClasses
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
7
7
|
|
|
8
8
|
// src/components/radio.ts
|
|
9
9
|
var radio = tv({
|
|
@@ -97,7 +97,7 @@ var radio = tv({
|
|
|
97
97
|
isInvalid: {
|
|
98
98
|
true: {
|
|
99
99
|
control: "bg-danger text-danger-foreground",
|
|
100
|
-
wrapper: "border-danger data-[selected=true]:border-danger",
|
|
100
|
+
wrapper: "border-danger group-data-[selected=true]:border-danger",
|
|
101
101
|
label: "text-danger",
|
|
102
102
|
description: "text-danger-300"
|
|
103
103
|
}
|
|
@@ -39,6 +39,14 @@ var translateCenterClasses = [
|
|
|
39
39
|
"-translate-y-1/2"
|
|
40
40
|
];
|
|
41
41
|
var absoluteFullClasses = ["absolute", "inset-0"];
|
|
42
|
+
var collapseAdjacentVariantBorders = {
|
|
43
|
+
default: ["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
44
|
+
primary: ["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
45
|
+
secondary: ["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
46
|
+
success: ["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
47
|
+
warning: ["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
48
|
+
danger: ["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]
|
|
49
|
+
};
|
|
42
50
|
|
|
43
51
|
export {
|
|
44
52
|
baseStyles,
|
|
@@ -47,5 +55,6 @@ export {
|
|
|
47
55
|
groupDataFocusVisibleClasses,
|
|
48
56
|
ringClasses,
|
|
49
57
|
translateCenterClasses,
|
|
50
|
-
absoluteFullClasses
|
|
58
|
+
absoluteFullClasses,
|
|
59
|
+
collapseAdjacentVariantBorders
|
|
51
60
|
};
|
|
@@ -3,10 +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
|
+
collapseAdjacentVariantBorders,
|
|
8
9
|
dataFocusVisibleClasses
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
10
11
|
|
|
11
12
|
// src/components/button.ts
|
|
12
13
|
var button = tv({
|
|
@@ -74,7 +75,7 @@ var button = tv({
|
|
|
74
75
|
},
|
|
75
76
|
disableAnimation: {
|
|
76
77
|
true: "!transition-none",
|
|
77
|
-
false: "data-[pressed=true]:scale-[0.97] transition-transform-colors motion-reduce:transition-none"
|
|
78
|
+
false: "data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none"
|
|
78
79
|
}
|
|
79
80
|
},
|
|
80
81
|
defaultVariants: {
|
|
@@ -297,30 +298,90 @@ var button = tv({
|
|
|
297
298
|
color: "danger",
|
|
298
299
|
class: colorVariants.ghost.danger
|
|
299
300
|
},
|
|
301
|
+
{
|
|
302
|
+
isInGroup: true,
|
|
303
|
+
class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
|
|
304
|
+
},
|
|
300
305
|
{
|
|
301
306
|
isInGroup: true,
|
|
302
307
|
size: "sm",
|
|
303
|
-
class: "rounded-none first:rounded-
|
|
308
|
+
class: "rounded-none first:rounded-s-small last:rounded-e-small"
|
|
304
309
|
},
|
|
305
310
|
{
|
|
306
311
|
isInGroup: true,
|
|
307
312
|
size: "md",
|
|
308
|
-
class: "rounded-none first:rounded-
|
|
313
|
+
class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
|
|
309
314
|
},
|
|
310
315
|
{
|
|
311
316
|
isInGroup: true,
|
|
312
317
|
size: "lg",
|
|
313
|
-
class: "rounded-none first:rounded-
|
|
318
|
+
class: "rounded-none first:rounded-s-large last:rounded-e-large"
|
|
314
319
|
},
|
|
315
320
|
{
|
|
316
321
|
isInGroup: true,
|
|
317
322
|
isRounded: true,
|
|
318
|
-
class: "rounded-none first:rounded-
|
|
323
|
+
class: "rounded-none first:rounded-s-full last:rounded-e-full"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
isInGroup: true,
|
|
327
|
+
radius: "none",
|
|
328
|
+
class: "rounded-none first:rounded-s-none last:rounded-e-none"
|
|
319
329
|
},
|
|
320
330
|
{
|
|
321
331
|
isInGroup: true,
|
|
322
|
-
|
|
323
|
-
class: "
|
|
332
|
+
radius: "sm",
|
|
333
|
+
class: "rounded-none first:rounded-s-small last:rounded-e-small"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
isInGroup: true,
|
|
337
|
+
radius: "md",
|
|
338
|
+
class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
isInGroup: true,
|
|
342
|
+
radius: "lg",
|
|
343
|
+
class: "rounded-none first:rounded-s-large last:rounded-e-large"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
isInGroup: true,
|
|
347
|
+
radius: "full",
|
|
348
|
+
class: "rounded-none first:rounded-s-full last:rounded-e-full"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
isInGroup: true,
|
|
352
|
+
variant: ["ghost", "bordered"],
|
|
353
|
+
color: "default",
|
|
354
|
+
className: collapseAdjacentVariantBorders.default
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
isInGroup: true,
|
|
358
|
+
variant: ["ghost", "bordered"],
|
|
359
|
+
color: "primary",
|
|
360
|
+
className: collapseAdjacentVariantBorders.primary
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
isInGroup: true,
|
|
364
|
+
variant: ["ghost", "bordered"],
|
|
365
|
+
color: "secondary",
|
|
366
|
+
className: collapseAdjacentVariantBorders.secondary
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
isInGroup: true,
|
|
370
|
+
variant: ["ghost", "bordered"],
|
|
371
|
+
color: "success",
|
|
372
|
+
className: collapseAdjacentVariantBorders.success
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
isInGroup: true,
|
|
376
|
+
variant: ["ghost", "bordered"],
|
|
377
|
+
color: "warning",
|
|
378
|
+
className: collapseAdjacentVariantBorders.warning
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
isInGroup: true,
|
|
382
|
+
variant: ["ghost", "bordered"],
|
|
383
|
+
color: "danger",
|
|
384
|
+
className: collapseAdjacentVariantBorders.danger
|
|
324
385
|
},
|
|
325
386
|
{
|
|
326
387
|
isIconOnly: true,
|
|
@@ -336,6 +397,10 @@ var button = tv({
|
|
|
336
397
|
isIconOnly: true,
|
|
337
398
|
size: "lg",
|
|
338
399
|
class: "min-w-unit-12 w-unit-12 h-unit-12"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
variant: ["solid", "faded", "flat", "bordered", "shadow"],
|
|
403
|
+
class: "data-[hover=true]:opacity-hover"
|
|
339
404
|
}
|
|
340
405
|
]
|
|
341
406
|
});
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-2PIR7DFM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
tv
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WBUVHAJX.mjs";
|
|
7
7
|
|
|
8
8
|
// src/components/badge.ts
|
|
9
9
|
var badge = tv({
|
|
@@ -87,12 +87,12 @@ var badge = tv({
|
|
|
87
87
|
badge: "transition-transform-opacity !ease-soft-spring !duration-300"
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
-
|
|
90
|
+
showOutline: {
|
|
91
91
|
true: {
|
|
92
|
-
badge: "border-
|
|
92
|
+
badge: "border-2 border-background"
|
|
93
93
|
},
|
|
94
94
|
false: {
|
|
95
|
-
badge: "border-
|
|
95
|
+
badge: "border-transparent border-0"
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
},
|
|
@@ -102,7 +102,7 @@ var badge = tv({
|
|
|
102
102
|
size: "md",
|
|
103
103
|
shape: "rectangle",
|
|
104
104
|
placement: "top-right",
|
|
105
|
-
|
|
105
|
+
showOutline: true,
|
|
106
106
|
disableAnimation: false,
|
|
107
107
|
isInvisible: false
|
|
108
108
|
},
|
|
@@ -83,39 +83,32 @@ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
|
83
83
|
|
|
84
84
|
// src/utils/tv.ts
|
|
85
85
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
86
|
-
var tv = (
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
],
|
|
110
|
-
"min-h": [
|
|
111
|
-
{
|
|
112
|
-
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
113
|
-
}
|
|
114
|
-
]
|
|
115
|
-
}
|
|
86
|
+
var tv = (0, import_tailwind_variants.createTV)({
|
|
87
|
+
twMerge: true,
|
|
88
|
+
twMergeConfig: {
|
|
89
|
+
theme: {
|
|
90
|
+
opacity: ["disabled"],
|
|
91
|
+
spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
|
|
92
|
+
borderWidth: COMMON_UNITS,
|
|
93
|
+
borderRadius: COMMON_UNITS
|
|
94
|
+
},
|
|
95
|
+
classGroups: {
|
|
96
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
97
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
98
|
+
"bg-image": ["bg-stripe-gradient"],
|
|
99
|
+
"min-w": [
|
|
100
|
+
{
|
|
101
|
+
"min-w": ["unit", ...mappedSpacingScaleKeys]
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"min-h": [
|
|
105
|
+
{
|
|
106
|
+
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
107
|
+
}
|
|
108
|
+
]
|
|
116
109
|
}
|
|
117
|
-
}
|
|
118
|
-
};
|
|
110
|
+
}
|
|
111
|
+
});
|
|
119
112
|
|
|
120
113
|
// src/utils/classes.ts
|
|
121
114
|
var dataFocusVisibleClasses = [
|
|
@@ -160,7 +153,7 @@ var accordionItem = tv({
|
|
|
160
153
|
],
|
|
161
154
|
startContent: "flex-shrink-0",
|
|
162
155
|
indicator: "text-default-400",
|
|
163
|
-
titleWrapper: "flex-1 flex flex-col text-
|
|
156
|
+
titleWrapper: "flex-1 flex flex-col text-start",
|
|
164
157
|
title: "text-foreground text-large",
|
|
165
158
|
subtitle: "text-small text-foreground-500 font-normal",
|
|
166
159
|
content: "py-2"
|
|
@@ -199,7 +192,7 @@ var accordionItem = tv({
|
|
|
199
192
|
indicator: "transition-none"
|
|
200
193
|
},
|
|
201
194
|
false: {
|
|
202
|
-
indicator: "rotate-0 data-[open=true]:-rotate-90"
|
|
195
|
+
indicator: "rotate-0 data-[open=true]:-rotate-90 rtl:-rotate-180 rtl:data-[open=true]:-rotate-90"
|
|
203
196
|
}
|
|
204
197
|
}
|
|
205
198
|
},
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
accordion,
|
|
3
3
|
accordionItem
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-I5E37FAL.mjs";
|
|
5
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
6
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
7
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-WBUVHAJX.mjs";
|
|
9
|
+
import "../chunk-XHQUSKIE.mjs";
|
|
10
10
|
import "../chunk-WA5F6AED.mjs";
|
|
11
11
|
export {
|
|
12
12
|
accordion,
|