@nextui-org/theme 0.0.0-dev-v2-20230424224035 → 0.0.0-dev-v2-20230428031422
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-W2RCO7SN.mjs → chunk-2CM64WDJ.mjs} +3 -2
- package/dist/{chunk-LCSLO6UV.mjs → chunk-2GCBADI6.mjs} +1 -1
- package/dist/{chunk-TDD767J7.mjs → chunk-2P6VSEDG.mjs} +12 -1
- package/dist/{chunk-TYA6TT57.mjs → chunk-AYYAXZNC.mjs} +6 -3
- package/dist/{chunk-DBYBIR6S.mjs → chunk-DO44X4Z2.mjs} +2 -2
- package/dist/chunk-EWJ66GUE.mjs +371 -0
- package/dist/chunk-KUQBSI5S.mjs +29 -0
- package/dist/{chunk-NQJBJXX3.mjs → chunk-OUCCVCYU.mjs} +3 -3
- package/dist/{chunk-ACYWLBDN.mjs → chunk-U3BMJPED.mjs} +5 -3
- package/dist/components/avatar.mjs +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/badge.mjs +2 -2
- package/dist/components/button.js +3 -2
- package/dist/components/button.mjs +2 -2
- package/dist/components/card.d.ts +2 -2
- package/dist/components/card.js +12 -1
- package/dist/components/card.mjs +1 -1
- package/dist/components/chip.js +3 -3
- package/dist/components/chip.mjs +2 -2
- package/dist/components/code.mjs +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +426 -15
- package/dist/components/index.mjs +22 -14
- package/dist/components/input.js +2 -2
- package/dist/components/input.mjs +1 -1
- package/dist/components/kbd.d.ts +43 -0
- package/dist/components/kbd.js +53 -0
- package/dist/components/kbd.mjs +6 -0
- package/dist/components/navbar.js +5 -3
- package/dist/components/navbar.mjs +1 -1
- package/dist/components/pagination.d.ts +3 -0
- package/dist/components/pagination.js +6 -3
- package/dist/components/pagination.mjs +2 -2
- package/dist/components/popover.mjs +1 -1
- package/dist/components/snippet.mjs +1 -1
- package/dist/components/tabs.d.ts +220 -0
- package/dist/components/tabs.js +467 -0
- package/dist/components/tabs.mjs +10 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +430 -19
- package/dist/index.mjs +22 -14
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-FD464FGG.mjs → chunk-T6HAGWX5.mjs} +0 -0
|
@@ -7,6 +7,7 @@ import { tv } from "tailwind-variants";
|
|
|
7
7
|
var button = tv({
|
|
8
8
|
base: [
|
|
9
9
|
"z-0",
|
|
10
|
+
"group",
|
|
10
11
|
"relative",
|
|
11
12
|
"inline-flex",
|
|
12
13
|
"items-center",
|
|
@@ -19,7 +20,7 @@ var button = tv({
|
|
|
19
20
|
"subpixel-antialiased",
|
|
20
21
|
"data-[pressed=true]:scale-95",
|
|
21
22
|
"overflow-hidden",
|
|
22
|
-
"gap-
|
|
23
|
+
"gap-1.5",
|
|
23
24
|
"[&>svg]:max-w-[2em]",
|
|
24
25
|
"data-[focus-visible=true]:outline-none",
|
|
25
26
|
"data-[focus-visible=true]:ring-2",
|
|
@@ -34,7 +35,7 @@ var button = tv({
|
|
|
34
35
|
bordered: "border-2 !bg-transparent",
|
|
35
36
|
light: "!bg-transparent",
|
|
36
37
|
flat: "",
|
|
37
|
-
faded: "border-
|
|
38
|
+
faded: "border-2.5",
|
|
38
39
|
shadow: "",
|
|
39
40
|
ghost: "border-2 !bg-transparent"
|
|
40
41
|
},
|
|
@@ -12,6 +12,7 @@ var card = tv({
|
|
|
12
12
|
"outline-none",
|
|
13
13
|
"text-foreground",
|
|
14
14
|
"box-border",
|
|
15
|
+
"bg-background",
|
|
15
16
|
"dark:bg-content1",
|
|
16
17
|
"border border-neutral-100",
|
|
17
18
|
"data-[focus-visible=true]:outline-none",
|
|
@@ -145,7 +146,17 @@ var card = tv({
|
|
|
145
146
|
},
|
|
146
147
|
isFooterBlurred: {
|
|
147
148
|
true: {
|
|
148
|
-
footer:
|
|
149
|
+
footer: [
|
|
150
|
+
"before:content-['']",
|
|
151
|
+
"before:block",
|
|
152
|
+
"before:z-[-1]",
|
|
153
|
+
"before:absolute",
|
|
154
|
+
"before:-top-px",
|
|
155
|
+
"before:inset-0",
|
|
156
|
+
"before:bg-background/10",
|
|
157
|
+
"before:backdrop-blur",
|
|
158
|
+
"before:backdrop-saturate-150"
|
|
159
|
+
]
|
|
149
160
|
}
|
|
150
161
|
},
|
|
151
162
|
isDisabled: {
|
|
@@ -18,13 +18,16 @@ var pagination = tv({
|
|
|
18
18
|
"justify-center",
|
|
19
19
|
"origin-center",
|
|
20
20
|
"left-0"
|
|
21
|
-
]
|
|
21
|
+
],
|
|
22
|
+
forwardIcon: "hidden group-hover:block data-[before=true]:rotate-180",
|
|
23
|
+
ellipsis: "group-hover:hidden",
|
|
24
|
+
chevronNext: "rotate-180"
|
|
22
25
|
},
|
|
23
26
|
variants: {
|
|
24
27
|
variant: {
|
|
25
28
|
bordered: {
|
|
26
29
|
item: [
|
|
27
|
-
"border-
|
|
30
|
+
"border-2.5",
|
|
28
31
|
"border-neutral",
|
|
29
32
|
"bg-transparent",
|
|
30
33
|
"data-[hover=true]:bg-neutral-100"
|
|
@@ -35,7 +38,7 @@ var pagination = tv({
|
|
|
35
38
|
},
|
|
36
39
|
flat: {},
|
|
37
40
|
faded: {
|
|
38
|
-
item: "border-
|
|
41
|
+
item: "border-2.5"
|
|
39
42
|
}
|
|
40
43
|
},
|
|
41
44
|
color: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { tv } from "tailwind-variants";
|
|
3
3
|
var input = tv({
|
|
4
4
|
slots: {
|
|
5
|
-
base: "group flex flex-col gap-2",
|
|
5
|
+
base: "group flex flex-col data-[has-elements=true]:gap-2",
|
|
6
6
|
label: "block text-sm font-medium text-neutral-600",
|
|
7
7
|
inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
|
|
8
8
|
innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
|
|
@@ -225,7 +225,7 @@ var input = tv({
|
|
|
225
225
|
variant: "flat",
|
|
226
226
|
color: "neutral",
|
|
227
227
|
size: "md",
|
|
228
|
-
radius: "
|
|
228
|
+
radius: "lg",
|
|
229
229
|
fullWidth: true,
|
|
230
230
|
labelPosition: "inside",
|
|
231
231
|
isDisabled: false,
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colorVariants
|
|
3
|
+
} from "./chunk-RO3WUCFF.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/tabs.ts
|
|
6
|
+
import { tv } from "tailwind-variants";
|
|
7
|
+
var tabs = tv({
|
|
8
|
+
slots: {
|
|
9
|
+
base: "inline-block",
|
|
10
|
+
tabList: ["flex", "items-center", "gap-2", "bg-neutral-100", "p-1"],
|
|
11
|
+
tab: [
|
|
12
|
+
"z-0",
|
|
13
|
+
"w-full",
|
|
14
|
+
"px-3",
|
|
15
|
+
"py-1",
|
|
16
|
+
"flex",
|
|
17
|
+
"group",
|
|
18
|
+
"relative",
|
|
19
|
+
"justify-center",
|
|
20
|
+
"items-center",
|
|
21
|
+
"outline-none",
|
|
22
|
+
"cursor-pointer",
|
|
23
|
+
"transition-opacity",
|
|
24
|
+
"data-[disabled=true]:cursor-not-allowed",
|
|
25
|
+
"data-[disabled=true]:opacity-30",
|
|
26
|
+
"data-[hover-unselected=true]:opacity-70",
|
|
27
|
+
"data-[focus-visible=true]:outline-none",
|
|
28
|
+
"data-[focus-visible=true]:ring-2",
|
|
29
|
+
"data-[focus-visible=true]:ring-primary",
|
|
30
|
+
"data-[focus-visible=true]:ring-offset-2",
|
|
31
|
+
"data-[focus-visible=true]:ring-offset-background",
|
|
32
|
+
"data-[focus-visible=true]:dark:ring-offset-background-dark"
|
|
33
|
+
],
|
|
34
|
+
tabContent: [
|
|
35
|
+
"relative",
|
|
36
|
+
"z-10",
|
|
37
|
+
"text-inherit",
|
|
38
|
+
"transition-colors",
|
|
39
|
+
"text-neutral-500",
|
|
40
|
+
"group-data-[selected=true]:text-foreground"
|
|
41
|
+
],
|
|
42
|
+
cursor: ["absolute", "z-0", "bg-white", "shadow-md"],
|
|
43
|
+
panel: [
|
|
44
|
+
"mt-3",
|
|
45
|
+
"outline-none",
|
|
46
|
+
"data-[focus-visible=true]:outline-none",
|
|
47
|
+
"data-[focus-visible=true]:ring-2",
|
|
48
|
+
"data-[focus-visible=true]:ring-primary",
|
|
49
|
+
"data-[focus-visible=true]:ring-offset-2",
|
|
50
|
+
"data-[focus-visible=true]:ring-offset-background",
|
|
51
|
+
"data-[focus-visible=true]:dark:ring-offset-background-dark"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
variants: {
|
|
55
|
+
variant: {
|
|
56
|
+
solid: {
|
|
57
|
+
cursor: "inset-0"
|
|
58
|
+
},
|
|
59
|
+
underlined: {
|
|
60
|
+
tabList: "bg-transparent",
|
|
61
|
+
cursor: "h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"
|
|
62
|
+
},
|
|
63
|
+
bordered: {
|
|
64
|
+
tabList: "bg-transparent border-2 border-neutral-200 shadow-sm",
|
|
65
|
+
cursor: "inset-0"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
color: {
|
|
69
|
+
neutral: {},
|
|
70
|
+
primary: {},
|
|
71
|
+
secondary: {},
|
|
72
|
+
success: {},
|
|
73
|
+
warning: {},
|
|
74
|
+
danger: {}
|
|
75
|
+
},
|
|
76
|
+
size: {
|
|
77
|
+
xs: {
|
|
78
|
+
tab: "h-7 text-xs"
|
|
79
|
+
},
|
|
80
|
+
sm: {
|
|
81
|
+
tab: "h-8 text-sm"
|
|
82
|
+
},
|
|
83
|
+
md: {
|
|
84
|
+
tab: "h-9 text-sm"
|
|
85
|
+
},
|
|
86
|
+
lg: {
|
|
87
|
+
tab: "h-10 text-base"
|
|
88
|
+
},
|
|
89
|
+
xl: {
|
|
90
|
+
tab: "h-11 text-base"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
radius: {
|
|
94
|
+
none: {
|
|
95
|
+
tabList: "rounded-none",
|
|
96
|
+
tab: "rounded-none",
|
|
97
|
+
cursor: "rounded-none"
|
|
98
|
+
},
|
|
99
|
+
base: {
|
|
100
|
+
tabList: "rounded",
|
|
101
|
+
tab: "rounded",
|
|
102
|
+
cursor: "rounded"
|
|
103
|
+
},
|
|
104
|
+
sm: {
|
|
105
|
+
tabList: "rounded-md",
|
|
106
|
+
tab: "rounded-sm",
|
|
107
|
+
cursor: "rounded-sm"
|
|
108
|
+
},
|
|
109
|
+
md: {
|
|
110
|
+
tabList: "rounded-lg",
|
|
111
|
+
tab: "rounded-md",
|
|
112
|
+
cursor: "rounded-md"
|
|
113
|
+
},
|
|
114
|
+
lg: {
|
|
115
|
+
tabList: "rounded-xl",
|
|
116
|
+
tab: "rounded-lg",
|
|
117
|
+
cursor: "rounded-lg"
|
|
118
|
+
},
|
|
119
|
+
xl: {
|
|
120
|
+
tabList: "rounded-2xl",
|
|
121
|
+
tab: "rounded-xl",
|
|
122
|
+
cursor: "rounded-xl"
|
|
123
|
+
},
|
|
124
|
+
full: {
|
|
125
|
+
tabList: "rounded-full",
|
|
126
|
+
tab: "rounded-full",
|
|
127
|
+
cursor: "rounded-full"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
fullWidth: {
|
|
131
|
+
true: {
|
|
132
|
+
base: "w-full",
|
|
133
|
+
tabList: "w-full"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
isDisabled: {
|
|
137
|
+
true: {
|
|
138
|
+
tabList: "opacity-50 pointer-events-none"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
disableAnimation: {
|
|
142
|
+
true: {
|
|
143
|
+
tab: "transition-none",
|
|
144
|
+
tabContent: "transition-none"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
defaultVariants: {
|
|
149
|
+
radius: "xl",
|
|
150
|
+
color: "neutral",
|
|
151
|
+
variant: "solid",
|
|
152
|
+
size: "md",
|
|
153
|
+
fullWidth: false,
|
|
154
|
+
isDisabled: false,
|
|
155
|
+
disableAnimation: false
|
|
156
|
+
},
|
|
157
|
+
compoundVariants: [
|
|
158
|
+
{
|
|
159
|
+
variant: ["solid", "bordered"],
|
|
160
|
+
color: "neutral",
|
|
161
|
+
class: {
|
|
162
|
+
cursor: ["bg-background", "dark:bg-neutral"],
|
|
163
|
+
tabContent: "group-data-[selected=true]:text-neutral-foreground"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
variant: ["solid", "bordered"],
|
|
168
|
+
color: "primary",
|
|
169
|
+
class: {
|
|
170
|
+
cursor: colorVariants.solid.primary,
|
|
171
|
+
tabContent: "group-data-[selected=true]:text-primary-foreground"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
variant: ["solid", "bordered"],
|
|
176
|
+
color: "secondary",
|
|
177
|
+
class: {
|
|
178
|
+
cursor: colorVariants.solid.secondary,
|
|
179
|
+
tabContent: "group-data-[selected=true]:text-secondary-foreground"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
variant: ["solid", "bordered"],
|
|
184
|
+
color: "success",
|
|
185
|
+
class: {
|
|
186
|
+
cursor: colorVariants.solid.success,
|
|
187
|
+
tabContent: "group-data-[selected=true]:text-success-foreground"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
variant: ["solid", "bordered"],
|
|
192
|
+
color: "warning",
|
|
193
|
+
class: {
|
|
194
|
+
cursor: colorVariants.solid.warning,
|
|
195
|
+
tabContent: "group-data-[selected=true]:text-warning-foreground"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
variant: ["solid", "bordered"],
|
|
200
|
+
color: "danger",
|
|
201
|
+
class: {
|
|
202
|
+
cursor: colorVariants.solid.danger,
|
|
203
|
+
tabContent: "group-data-[selected=true]:text-danger-foreground"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
variant: "underlined",
|
|
208
|
+
color: "neutral",
|
|
209
|
+
class: {
|
|
210
|
+
cursor: "bg-foreground",
|
|
211
|
+
tabContent: "group-data-[selected=true]:text-foreground"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
variant: "underlined",
|
|
216
|
+
color: "primary",
|
|
217
|
+
class: {
|
|
218
|
+
cursor: "bg-primary",
|
|
219
|
+
tabContent: "group-data-[selected=true]:text-primary"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
variant: "underlined",
|
|
224
|
+
color: "secondary",
|
|
225
|
+
class: {
|
|
226
|
+
cursor: "bg-secondary",
|
|
227
|
+
tabContent: "group-data-[selected=true]:text-secondary"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
variant: "underlined",
|
|
232
|
+
color: "success",
|
|
233
|
+
class: {
|
|
234
|
+
cursor: "bg-success",
|
|
235
|
+
tabContent: "group-data-[selected=true]:text-success"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
variant: "underlined",
|
|
240
|
+
color: "warning",
|
|
241
|
+
class: {
|
|
242
|
+
cursor: "bg-warning",
|
|
243
|
+
tabContent: "group-data-[selected=true]:text-warning"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
variant: "underlined",
|
|
248
|
+
color: "danger",
|
|
249
|
+
class: {
|
|
250
|
+
cursor: "bg-danger",
|
|
251
|
+
tabContent: "group-data-[selected=true]:text-danger"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
disableAnimation: true,
|
|
256
|
+
variant: "underlined",
|
|
257
|
+
class: {
|
|
258
|
+
tab: [
|
|
259
|
+
"after:content-['']",
|
|
260
|
+
"after:absolute",
|
|
261
|
+
"after:bottom-0",
|
|
262
|
+
"after:h-[2px]",
|
|
263
|
+
"after:w-[80%]",
|
|
264
|
+
"after:opacity-0",
|
|
265
|
+
"after:shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]",
|
|
266
|
+
"data-[selected=true]:after:opacity-100"
|
|
267
|
+
]
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
disableAnimation: true,
|
|
272
|
+
color: "neutral",
|
|
273
|
+
variant: ["solid", "bordered"],
|
|
274
|
+
class: {
|
|
275
|
+
tab: "data-[selected=true]:bg-neutral data-[selected=true]:text-neutral-foreground"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
disableAnimation: true,
|
|
280
|
+
color: "primary",
|
|
281
|
+
variant: ["solid", "bordered"],
|
|
282
|
+
class: {
|
|
283
|
+
tab: "data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
disableAnimation: true,
|
|
288
|
+
color: "secondary",
|
|
289
|
+
variant: ["solid", "bordered"],
|
|
290
|
+
class: {
|
|
291
|
+
tab: "data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
disableAnimation: true,
|
|
296
|
+
color: "success",
|
|
297
|
+
variant: ["solid", "bordered"],
|
|
298
|
+
class: {
|
|
299
|
+
tab: "data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
disableAnimation: true,
|
|
304
|
+
color: "warning",
|
|
305
|
+
variant: ["solid", "bordered"],
|
|
306
|
+
class: {
|
|
307
|
+
tab: "data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
disableAnimation: true,
|
|
312
|
+
color: "danger",
|
|
313
|
+
variant: ["solid", "bordered"],
|
|
314
|
+
class: {
|
|
315
|
+
tab: "data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
disableAnimation: true,
|
|
320
|
+
color: "neutral",
|
|
321
|
+
variant: "underlined",
|
|
322
|
+
class: {
|
|
323
|
+
tab: "data-[selected=true]:after:bg-foreground"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
disableAnimation: true,
|
|
328
|
+
color: "primary",
|
|
329
|
+
variant: "underlined",
|
|
330
|
+
class: {
|
|
331
|
+
tab: "data-[selected=true]:after:bg-primary"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
disableAnimation: true,
|
|
336
|
+
color: "secondary",
|
|
337
|
+
variant: "underlined",
|
|
338
|
+
class: {
|
|
339
|
+
tab: "data-[selected=true]:after:bg-secondary"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
disableAnimation: true,
|
|
344
|
+
color: "success",
|
|
345
|
+
variant: "underlined",
|
|
346
|
+
class: {
|
|
347
|
+
tab: "data-[selected=true]:after:bg-success"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
disableAnimation: true,
|
|
352
|
+
color: "warning",
|
|
353
|
+
variant: "underlined",
|
|
354
|
+
class: {
|
|
355
|
+
tab: "data-[selected=true]:after:bg-warning"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
disableAnimation: true,
|
|
360
|
+
color: "danger",
|
|
361
|
+
variant: "underlined",
|
|
362
|
+
class: {
|
|
363
|
+
tab: "data-[selected=true]:after:bg-danger"
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
]
|
|
367
|
+
});
|
|
368
|
+
|
|
369
|
+
export {
|
|
370
|
+
tabs
|
|
371
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// src/components/kbd.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var kbd = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
base: [
|
|
6
|
+
"px-2",
|
|
7
|
+
"py-1",
|
|
8
|
+
"inline-block",
|
|
9
|
+
"space-x-0.5",
|
|
10
|
+
"font-sans",
|
|
11
|
+
"font-medium",
|
|
12
|
+
"text-center",
|
|
13
|
+
"text-sm",
|
|
14
|
+
"border",
|
|
15
|
+
"border-neutral",
|
|
16
|
+
"bg-neutral-100",
|
|
17
|
+
"text-neutral-600",
|
|
18
|
+
"rounded-md"
|
|
19
|
+
],
|
|
20
|
+
abbr: "no-underline",
|
|
21
|
+
content: ""
|
|
22
|
+
},
|
|
23
|
+
variants: {},
|
|
24
|
+
defaultVariants: {}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
kbd
|
|
29
|
+
};
|
|
@@ -29,18 +29,18 @@ var chip = tv({
|
|
|
29
29
|
variant: {
|
|
30
30
|
solid: {},
|
|
31
31
|
bordered: {
|
|
32
|
-
base: "border-
|
|
32
|
+
base: "border-2.5 bg-transparent"
|
|
33
33
|
},
|
|
34
34
|
light: {
|
|
35
35
|
base: "bg-transparent"
|
|
36
36
|
},
|
|
37
37
|
flat: {},
|
|
38
38
|
faded: {
|
|
39
|
-
base: "border-
|
|
39
|
+
base: "border-2.5"
|
|
40
40
|
},
|
|
41
41
|
shadow: {},
|
|
42
42
|
dot: {
|
|
43
|
-
base: "border-
|
|
43
|
+
base: "border-2.5 border-neutral text-foreground bg-transparent"
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
color: {
|
|
@@ -10,9 +10,11 @@ var navbar = tv({
|
|
|
10
10
|
"flex",
|
|
11
11
|
"items-center",
|
|
12
12
|
"justify-center",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
13
|
+
"shadow-lg",
|
|
14
|
+
"shadow-neutral-300/40",
|
|
15
|
+
"dark:border-b",
|
|
16
|
+
"dark:border-neutral-100",
|
|
17
|
+
"dark:shadow-none"
|
|
16
18
|
],
|
|
17
19
|
wrapper: [
|
|
18
20
|
"flex",
|
package/dist/components/badge.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
badge
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-2GCBADI6.mjs";
|
|
4
4
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
|
-
import "../chunk-RO3WUCFF.mjs";
|
|
6
5
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
|
+
import "../chunk-RO3WUCFF.mjs";
|
|
7
7
|
import "../chunk-INZK6TTL.mjs";
|
|
8
8
|
export {
|
|
9
9
|
badge
|
|
@@ -103,6 +103,7 @@ var colorVariants = {
|
|
|
103
103
|
var button = (0, import_tailwind_variants.tv)({
|
|
104
104
|
base: [
|
|
105
105
|
"z-0",
|
|
106
|
+
"group",
|
|
106
107
|
"relative",
|
|
107
108
|
"inline-flex",
|
|
108
109
|
"items-center",
|
|
@@ -115,7 +116,7 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
115
116
|
"subpixel-antialiased",
|
|
116
117
|
"data-[pressed=true]:scale-95",
|
|
117
118
|
"overflow-hidden",
|
|
118
|
-
"gap-
|
|
119
|
+
"gap-1.5",
|
|
119
120
|
"[&>svg]:max-w-[2em]",
|
|
120
121
|
"data-[focus-visible=true]:outline-none",
|
|
121
122
|
"data-[focus-visible=true]:ring-2",
|
|
@@ -130,7 +131,7 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
130
131
|
bordered: "border-2 !bg-transparent",
|
|
131
132
|
light: "!bg-transparent",
|
|
132
133
|
flat: "",
|
|
133
|
-
faded: "border-
|
|
134
|
+
faded: "border-2.5",
|
|
134
135
|
shadow: "",
|
|
135
136
|
ghost: "border-2 !bg-transparent"
|
|
136
137
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
button
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-2CM64WDJ.mjs";
|
|
4
4
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
|
-
import "../chunk-RO3WUCFF.mjs";
|
|
6
5
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
|
+
import "../chunk-RO3WUCFF.mjs";
|
|
7
7
|
import "../chunk-INZK6TTL.mjs";
|
|
8
8
|
export {
|
|
9
9
|
button
|
|
@@ -104,7 +104,7 @@ declare const card: tailwind_variants.TVReturnType<{
|
|
|
104
104
|
};
|
|
105
105
|
isFooterBlurred: {
|
|
106
106
|
true: {
|
|
107
|
-
footer: string;
|
|
107
|
+
footer: string[];
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
110
|
isDisabled: {
|
|
@@ -211,7 +211,7 @@ declare const card: tailwind_variants.TVReturnType<{
|
|
|
211
211
|
};
|
|
212
212
|
isFooterBlurred: {
|
|
213
213
|
true: {
|
|
214
|
-
footer: string;
|
|
214
|
+
footer: string[];
|
|
215
215
|
};
|
|
216
216
|
};
|
|
217
217
|
isDisabled: {
|
package/dist/components/card.js
CHANGED
|
@@ -36,6 +36,7 @@ var card = (0, import_tailwind_variants.tv)({
|
|
|
36
36
|
"outline-none",
|
|
37
37
|
"text-foreground",
|
|
38
38
|
"box-border",
|
|
39
|
+
"bg-background",
|
|
39
40
|
"dark:bg-content1",
|
|
40
41
|
"border border-neutral-100",
|
|
41
42
|
"data-[focus-visible=true]:outline-none",
|
|
@@ -169,7 +170,17 @@ var card = (0, import_tailwind_variants.tv)({
|
|
|
169
170
|
},
|
|
170
171
|
isFooterBlurred: {
|
|
171
172
|
true: {
|
|
172
|
-
footer:
|
|
173
|
+
footer: [
|
|
174
|
+
"before:content-['']",
|
|
175
|
+
"before:block",
|
|
176
|
+
"before:z-[-1]",
|
|
177
|
+
"before:absolute",
|
|
178
|
+
"before:-top-px",
|
|
179
|
+
"before:inset-0",
|
|
180
|
+
"before:bg-background/10",
|
|
181
|
+
"before:backdrop-blur",
|
|
182
|
+
"before:backdrop-saturate-150"
|
|
183
|
+
]
|
|
173
184
|
}
|
|
174
185
|
},
|
|
175
186
|
isDisabled: {
|