@nextui-org/theme 0.0.0-dev-v2-20230526220125 → 0.0.0-dev-v2-20230527145118
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-HAR22HFA.mjs → chunk-3YUVISFE.mjs} +17 -17
- package/dist/{chunk-3LME35GX.mjs → chunk-4MSPP245.mjs} +17 -17
- package/dist/{chunk-UUJTS7XS.mjs → chunk-5DRF22QY.mjs} +13 -13
- package/dist/{chunk-LC5AFIW7.mjs → chunk-6LITGDC7.mjs} +4 -4
- package/dist/{chunk-LQHWK6UV.mjs → chunk-6QXUR7SY.mjs} +2 -2
- package/dist/{chunk-7CTZKPXG.mjs → chunk-76WBK7WN.mjs} +6 -6
- package/dist/{chunk-M74ZSXB7.mjs → chunk-7PRU5S35.mjs} +1 -1
- package/dist/{chunk-4A7R2B5L.mjs → chunk-ANKTYY3U.mjs} +17 -17
- package/dist/{chunk-5ZJFAFZA.mjs → chunk-AWAXOLMA.mjs} +10 -10
- package/dist/{chunk-25QTQFHB.mjs → chunk-BUDAC6TR.mjs} +10 -10
- package/dist/{chunk-G23VRPTF.mjs → chunk-D6P5YDBJ.mjs} +1 -1
- package/dist/{chunk-WFCALVUC.mjs → chunk-E3HXNSRG.mjs} +4 -4
- package/dist/{chunk-MFJMHP3B.mjs → chunk-EQNNT2LH.mjs} +19 -17
- package/dist/{chunk-LMXA7XIQ.mjs → chunk-G7ZYYWZD.mjs} +6 -6
- package/dist/{chunk-6IVGIMY2.mjs → chunk-GYSMGV7B.mjs} +3 -3
- package/dist/{chunk-RO3WUCFF.mjs → chunk-IQPW7V4N.mjs} +13 -13
- package/dist/{chunk-O42UMOT5.mjs → chunk-IVZYEA5N.mjs} +3 -3
- package/dist/{chunk-7EC2WH7W.mjs → chunk-NYEYKHJ3.mjs} +21 -21
- package/dist/{chunk-WIZLPJM6.mjs → chunk-QGXXHT3T.mjs} +6 -6
- package/dist/{chunk-NFNV2TXA.mjs → chunk-QW2ZGOKD.mjs} +1 -1
- package/dist/{chunk-YMIOHWCD.mjs → chunk-QYXL3KZR.mjs} +4 -4
- package/dist/{chunk-KWWWVBJL.mjs → chunk-U54UQOTS.mjs} +10 -10
- package/dist/{chunk-FVTLDCTS.mjs → chunk-UPBFQDTD.mjs} +3 -3
- package/dist/{chunk-NGOZQK3L.mjs → chunk-UVH5HICF.mjs} +5 -5
- package/dist/{chunk-JWVJZEAT.mjs → chunk-V5673FD5.mjs} +13 -13
- package/dist/{chunk-WLLBJIBU.mjs → chunk-W36MFWI6.mjs} +7 -7
- package/dist/{chunk-6D57DOQF.mjs → chunk-X4S56RGZ.mjs} +1 -1
- package/dist/{chunk-ZNBW4PQF.mjs → chunk-ZFYINWFR.mjs} +1 -1
- package/dist/{chunk-7EDXWCUZ.mjs → chunk-ZHKZR5C3.mjs} +17 -17
- package/dist/{chunk-Y43NAEAT.mjs → chunk-ZL6WUYLC.mjs} +6 -6
- package/dist/colors/index.js +2 -2
- package/dist/colors/index.mjs +2 -2
- package/dist/colors/semantic.js +2 -2
- package/dist/colors/semantic.mjs +1 -1
- package/dist/colors/types.d.ts +1 -1
- package/dist/colors.js +2 -2
- package/dist/colors.mjs +2 -2
- package/dist/components/accordion.js +6 -6
- package/dist/components/accordion.mjs +1 -1
- package/dist/components/avatar.d.ts +2 -2
- package/dist/components/avatar.js +18 -18
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/badge.d.ts +2 -2
- package/dist/components/badge.js +22 -22
- package/dist/components/badge.mjs +2 -2
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +29 -29
- package/dist/components/button.mjs +2 -2
- package/dist/components/card.js +1 -1
- package/dist/components/card.mjs +1 -1
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +6 -6
- package/dist/components/checkbox.mjs +1 -1
- package/dist/components/chip.d.ts +2 -2
- package/dist/components/chip.js +29 -29
- package/dist/components/chip.mjs +2 -2
- package/dist/components/circular-progress.d.ts +2 -2
- package/dist/components/circular-progress.js +3 -3
- package/dist/components/circular-progress.mjs +1 -1
- package/dist/components/code.d.ts +2 -2
- package/dist/components/code.js +16 -16
- package/dist/components/code.mjs +2 -2
- package/dist/components/dropdown.d.ts +2 -2
- package/dist/components/dropdown.js +21 -21
- package/dist/components/dropdown.mjs +1 -1
- package/dist/components/image.js +1 -1
- package/dist/components/image.mjs +1 -1
- package/dist/components/index.js +223 -221
- package/dist/components/index.mjs +55 -55
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +17 -17
- package/dist/components/input.mjs +1 -1
- package/dist/components/kbd.js +3 -3
- package/dist/components/kbd.mjs +1 -1
- package/dist/components/modal.js +4 -4
- package/dist/components/modal.mjs +1 -1
- package/dist/components/navbar.js +4 -4
- package/dist/components/navbar.mjs +1 -1
- package/dist/components/pagination.d.ts +2 -2
- package/dist/components/pagination.js +29 -29
- package/dist/components/pagination.mjs +2 -2
- package/dist/components/popover.d.ts +2 -2
- package/dist/components/popover.js +25 -25
- package/dist/components/popover.mjs +2 -2
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +3 -3
- package/dist/components/progress.mjs +1 -1
- package/dist/components/radio.d.ts +2 -2
- package/dist/components/radio.js +7 -7
- package/dist/components/radio.mjs +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/skeleton.mjs +1 -1
- package/dist/components/snippet.d.ts +2 -2
- package/dist/components/snippet.js +22 -22
- package/dist/components/snippet.mjs +2 -2
- package/dist/components/spinner.d.ts +15 -14
- package/dist/components/spinner.js +19 -17
- package/dist/components/spinner.mjs +1 -1
- package/dist/components/table.d.ts +2 -2
- package/dist/components/table.js +10 -10
- package/dist/components/table.mjs +1 -1
- package/dist/components/tabs.d.ts +2 -2
- package/dist/components/tabs.js +25 -25
- package/dist/components/tabs.mjs +2 -2
- package/dist/components/toggle.d.ts +2 -2
- package/dist/components/toggle.js +5 -5
- package/dist/components/toggle.mjs +1 -1
- package/dist/components/user.js +1 -1
- package/dist/components/user.mjs +1 -1
- package/dist/index.js +225 -223
- package/dist/index.mjs +69 -69
- package/dist/plugin.js +2 -2
- package/dist/plugin.mjs +5 -5
- package/dist/utils/index.js +13 -13
- package/dist/utils/index.mjs +1 -1
- package/dist/utils/variants.d.ts +7 -7
- package/dist/utils/variants.js +13 -13
- package/dist/utils/variants.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colorVariants
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IQPW7V4N.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/button.ts
|
|
6
6
|
import { tv } from "tailwind-variants";
|
|
@@ -46,7 +46,7 @@ var button = tv({
|
|
|
46
46
|
xl: "px-8 h-14 text-lg"
|
|
47
47
|
},
|
|
48
48
|
color: {
|
|
49
|
-
|
|
49
|
+
default: "",
|
|
50
50
|
primary: "",
|
|
51
51
|
secondary: "",
|
|
52
52
|
success: "",
|
|
@@ -88,7 +88,7 @@ var button = tv({
|
|
|
88
88
|
defaultVariants: {
|
|
89
89
|
size: "md",
|
|
90
90
|
variant: "solid",
|
|
91
|
-
color: "
|
|
91
|
+
color: "default",
|
|
92
92
|
radius: "xl",
|
|
93
93
|
fullWidth: false,
|
|
94
94
|
isDisabled: false,
|
|
@@ -99,8 +99,8 @@ var button = tv({
|
|
|
99
99
|
compoundVariants: [
|
|
100
100
|
{
|
|
101
101
|
variant: "solid",
|
|
102
|
-
color: "
|
|
103
|
-
class: colorVariants.solid.
|
|
102
|
+
color: "default",
|
|
103
|
+
class: colorVariants.solid.default
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
variant: "solid",
|
|
@@ -129,8 +129,8 @@ var button = tv({
|
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
variant: "shadow",
|
|
132
|
-
color: "
|
|
133
|
-
class: colorVariants.shadow.
|
|
132
|
+
color: "default",
|
|
133
|
+
class: colorVariants.shadow.default
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
variant: "shadow",
|
|
@@ -159,8 +159,8 @@ var button = tv({
|
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
variant: "bordered",
|
|
162
|
-
color: "
|
|
163
|
-
class: colorVariants.bordered.
|
|
162
|
+
color: "default",
|
|
163
|
+
class: colorVariants.bordered.default
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
variant: "bordered",
|
|
@@ -189,8 +189,8 @@ var button = tv({
|
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
variant: "flat",
|
|
192
|
-
color: "
|
|
193
|
-
class: colorVariants.flat.
|
|
192
|
+
color: "default",
|
|
193
|
+
class: colorVariants.flat.default
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
variant: "flat",
|
|
@@ -219,8 +219,8 @@ var button = tv({
|
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
variant: "faded",
|
|
222
|
-
color: "
|
|
223
|
-
class: colorVariants.faded.
|
|
222
|
+
color: "default",
|
|
223
|
+
class: colorVariants.faded.default
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
226
|
variant: "faded",
|
|
@@ -249,8 +249,8 @@ var button = tv({
|
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
variant: "light",
|
|
252
|
-
color: "
|
|
253
|
-
class: [colorVariants.light.
|
|
252
|
+
color: "default",
|
|
253
|
+
class: [colorVariants.light.default, "data-[hover=true]:bg-default-100"]
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
256
|
variant: "light",
|
|
@@ -279,8 +279,8 @@ var button = tv({
|
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
281
|
variant: "ghost",
|
|
282
|
-
color: "
|
|
283
|
-
class: colorVariants.ghost.
|
|
282
|
+
color: "default",
|
|
283
|
+
class: colorVariants.ghost.default
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
variant: "ghost",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colorVariants
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IQPW7V4N.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/pagination.ts
|
|
6
6
|
import { tv } from "tailwind-variants";
|
|
@@ -26,7 +26,7 @@ var pagination = tv({
|
|
|
26
26
|
variants: {
|
|
27
27
|
variant: {
|
|
28
28
|
bordered: {
|
|
29
|
-
item: ["border-2", "border-
|
|
29
|
+
item: ["border-2", "border-default", "bg-transparent", "data-[hover=true]:bg-default-100"]
|
|
30
30
|
},
|
|
31
31
|
light: {
|
|
32
32
|
item: "bg-transparent"
|
|
@@ -37,8 +37,8 @@ var pagination = tv({
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
color: {
|
|
40
|
-
|
|
41
|
-
cursor: colorVariants.solid.
|
|
40
|
+
default: {
|
|
41
|
+
cursor: colorVariants.solid.default
|
|
42
42
|
},
|
|
43
43
|
primary: {
|
|
44
44
|
cursor: colorVariants.solid.primary
|
|
@@ -122,9 +122,9 @@ var pagination = tv({
|
|
|
122
122
|
compoundVariants: [
|
|
123
123
|
{
|
|
124
124
|
showShadow: true,
|
|
125
|
-
color: "
|
|
125
|
+
color: "default",
|
|
126
126
|
class: {
|
|
127
|
-
cursor: colorVariants.shadow.
|
|
127
|
+
cursor: colorVariants.shadow.default
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
{
|
|
@@ -171,12 +171,12 @@ var pagination = tv({
|
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
disableCursor: true,
|
|
174
|
-
color: "
|
|
174
|
+
color: "default",
|
|
175
175
|
class: {
|
|
176
176
|
item: [
|
|
177
|
-
"data-[active=true]:bg-
|
|
178
|
-
"data-[active=true]:border-
|
|
179
|
-
"data-[active=true]:text-
|
|
177
|
+
"data-[active=true]:bg-default-400",
|
|
178
|
+
"data-[active=true]:border-default-400",
|
|
179
|
+
"data-[active=true]:text-default-foreground"
|
|
180
180
|
]
|
|
181
181
|
}
|
|
182
182
|
},
|
|
@@ -238,9 +238,9 @@ var pagination = tv({
|
|
|
238
238
|
{
|
|
239
239
|
disableCursor: true,
|
|
240
240
|
showShadow: true,
|
|
241
|
-
color: "
|
|
241
|
+
color: "default",
|
|
242
242
|
class: {
|
|
243
|
-
item: ["data-[active=true]:shadow-lg", "data-[active=true]:shadow-
|
|
243
|
+
item: ["data-[active=true]:shadow-lg", "data-[active=true]:shadow-default/50"]
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
246
|
{
|
|
@@ -295,31 +295,31 @@ var pagination = tv({
|
|
|
295
295
|
"outline-none",
|
|
296
296
|
"items-center",
|
|
297
297
|
"justify-center",
|
|
298
|
-
"text-
|
|
298
|
+
"text-default-foreground",
|
|
299
299
|
"data-[focus-visible=true]:outline-none",
|
|
300
300
|
"data-[focus-visible=true]:ring-2",
|
|
301
301
|
"data-[focus-visible=true]:ring-primary",
|
|
302
302
|
"data-[focus-visible=true]:ring-offset-2",
|
|
303
303
|
"data-[focus-visible=true]:ring-offset-background",
|
|
304
304
|
"data-[focus-visible=true]:dark:ring-offset-background-dark",
|
|
305
|
-
"data-[disabled=true]:text-
|
|
305
|
+
"data-[disabled=true]:text-default-300",
|
|
306
306
|
"data-[disabled=true]:pointer-events-none"
|
|
307
307
|
]
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
310
|
slots: ["item", "prev", "next"],
|
|
311
311
|
variant: "flat",
|
|
312
|
-
class: ["bg-
|
|
312
|
+
class: ["bg-default-100", "data-[hover=true]:bg-default-200", "active:bg-default-300"]
|
|
313
313
|
},
|
|
314
314
|
{
|
|
315
315
|
slots: ["item", "prev", "next"],
|
|
316
316
|
variant: "faded",
|
|
317
|
-
class: ["bg-
|
|
317
|
+
class: ["bg-default-100", "data-[hover=true]:bg-default-200", "active:bg-default-300"]
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
320
|
slots: ["item", "prev", "next"],
|
|
321
321
|
variant: "light",
|
|
322
|
-
class: ["data-[hover=true]:bg-
|
|
322
|
+
class: ["data-[hover=true]:bg-default-100", "active:bg-default-200"]
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
325
|
slots: ["item", "cursor", "prev", "next"],
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colorVariants
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IQPW7V4N.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/tabs.ts
|
|
6
6
|
import { tv } from "tailwind-variants";
|
|
7
7
|
var tabs = tv({
|
|
8
8
|
slots: {
|
|
9
9
|
base: "inline-block",
|
|
10
|
-
tabList: ["flex", "items-center", "gap-2", "bg-
|
|
10
|
+
tabList: ["flex", "items-center", "gap-2", "bg-default-100", "p-1"],
|
|
11
11
|
tab: [
|
|
12
12
|
"z-0",
|
|
13
13
|
"w-full",
|
|
@@ -36,7 +36,7 @@ var tabs = tv({
|
|
|
36
36
|
"z-10",
|
|
37
37
|
"text-inherit",
|
|
38
38
|
"transition-colors",
|
|
39
|
-
"text-
|
|
39
|
+
"text-default-500",
|
|
40
40
|
"group-data-[selected=true]:text-foreground"
|
|
41
41
|
],
|
|
42
42
|
cursor: ["absolute", "z-0", "bg-white", "shadow-md"],
|
|
@@ -65,12 +65,12 @@ var tabs = tv({
|
|
|
65
65
|
cursor: "h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"
|
|
66
66
|
},
|
|
67
67
|
bordered: {
|
|
68
|
-
tabList: "bg-transparent border-2 border-
|
|
68
|
+
tabList: "bg-transparent border-2 border-default-200 shadow-sm",
|
|
69
69
|
cursor: "inset-0"
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
color: {
|
|
73
|
-
|
|
73
|
+
default: {},
|
|
74
74
|
primary: {},
|
|
75
75
|
secondary: {},
|
|
76
76
|
success: {},
|
|
@@ -151,7 +151,7 @@ var tabs = tv({
|
|
|
151
151
|
},
|
|
152
152
|
defaultVariants: {
|
|
153
153
|
radius: "xl",
|
|
154
|
-
color: "
|
|
154
|
+
color: "default",
|
|
155
155
|
variant: "solid",
|
|
156
156
|
size: "md",
|
|
157
157
|
fullWidth: false,
|
|
@@ -161,10 +161,10 @@ var tabs = tv({
|
|
|
161
161
|
compoundVariants: [
|
|
162
162
|
{
|
|
163
163
|
variant: ["solid", "bordered", "light"],
|
|
164
|
-
color: "
|
|
164
|
+
color: "default",
|
|
165
165
|
class: {
|
|
166
|
-
cursor: ["bg-background", "dark:bg-
|
|
167
|
-
tabContent: "group-data-[selected=true]:text-
|
|
166
|
+
cursor: ["bg-background", "dark:bg-default"],
|
|
167
|
+
tabContent: "group-data-[selected=true]:text-default-foreground"
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
170
|
{
|
|
@@ -209,7 +209,7 @@ var tabs = tv({
|
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
variant: "underlined",
|
|
212
|
-
color: "
|
|
212
|
+
color: "default",
|
|
213
213
|
class: {
|
|
214
214
|
cursor: "bg-foreground",
|
|
215
215
|
tabContent: "group-data-[selected=true]:text-foreground"
|
|
@@ -273,10 +273,10 @@ var tabs = tv({
|
|
|
273
273
|
},
|
|
274
274
|
{
|
|
275
275
|
disableAnimation: true,
|
|
276
|
-
color: "
|
|
276
|
+
color: "default",
|
|
277
277
|
variant: ["solid", "bordered", "light"],
|
|
278
278
|
class: {
|
|
279
|
-
tab: "data-[selected=true]:bg-
|
|
279
|
+
tab: "data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"
|
|
280
280
|
}
|
|
281
281
|
},
|
|
282
282
|
{
|
|
@@ -321,7 +321,7 @@ var tabs = tv({
|
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
323
|
disableAnimation: true,
|
|
324
|
-
color: "
|
|
324
|
+
color: "default",
|
|
325
325
|
variant: "underlined",
|
|
326
326
|
class: {
|
|
327
327
|
tab: "data-[selected=true]:after:bg-foreground"
|
|
@@ -11,8 +11,8 @@ var navbar = tv({
|
|
|
11
11
|
"items-center",
|
|
12
12
|
"justify-center",
|
|
13
13
|
"border-b",
|
|
14
|
-
"border-
|
|
15
|
-
"dark:border-
|
|
14
|
+
"border-default-200",
|
|
15
|
+
"dark:border-default-100"
|
|
16
16
|
],
|
|
17
17
|
wrapper: [
|
|
18
18
|
"flex",
|
|
@@ -135,8 +135,8 @@ var navbar = tv({
|
|
|
135
135
|
sticky: {},
|
|
136
136
|
floating: {
|
|
137
137
|
base: "shadow-none border-b-0",
|
|
138
|
-
wrapper: "mt-4 mx-8 shadow-md border border-
|
|
139
|
-
menu: "mt-5 mx-8 border border-
|
|
138
|
+
wrapper: "mt-4 mx-8 shadow-md border border-default-200 dark:border-default-100 rounded-xl",
|
|
139
|
+
menu: "mt-5 mx-8 border border-default-200 dark:border-default-100 rounded-xl max-w-[calc(100%_-_4rem)]"
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
142
|
maxWidth: {
|
|
@@ -66,7 +66,7 @@ var base = {
|
|
|
66
66
|
};
|
|
67
67
|
var semanticColorsLight = {
|
|
68
68
|
...base.light,
|
|
69
|
-
|
|
69
|
+
default: {
|
|
70
70
|
...twColors.zinc,
|
|
71
71
|
foreground: readableColor(twColors.zinc[300]),
|
|
72
72
|
DEFAULT: twColors.zinc[300]
|
|
@@ -99,7 +99,7 @@ var semanticColorsLight = {
|
|
|
99
99
|
};
|
|
100
100
|
var semanticColorsDark = {
|
|
101
101
|
...base.dark,
|
|
102
|
-
|
|
102
|
+
default: {
|
|
103
103
|
...swapColorValues(twColors.zinc),
|
|
104
104
|
foreground: readableColor(twColors.zinc[700]),
|
|
105
105
|
DEFAULT: twColors.zinc[700]
|
|
@@ -5,8 +5,8 @@ var accordion = tv({
|
|
|
5
5
|
variants: {
|
|
6
6
|
variant: {
|
|
7
7
|
light: "",
|
|
8
|
-
shadow: "px-4 shadow-lg rounded-xl bg-background dark:bg-content1 border border-
|
|
9
|
-
bordered: "px-4 border border-
|
|
8
|
+
shadow: "px-4 shadow-lg rounded-xl bg-background dark:bg-content1 border border-default-100",
|
|
9
|
+
bordered: "px-4 border border-default rounded-lg",
|
|
10
10
|
splitted: "group is-splitted flex flex-col gap-2"
|
|
11
11
|
},
|
|
12
12
|
fullWidth: {
|
|
@@ -21,7 +21,7 @@ var accordion = tv({
|
|
|
21
21
|
var accordionItem = tv({
|
|
22
22
|
slots: {
|
|
23
23
|
base: [
|
|
24
|
-
"border-
|
|
24
|
+
"border-default",
|
|
25
25
|
"[&:not(:last-of-type)]:border-b",
|
|
26
26
|
"group-[.is-splitted]:px-4",
|
|
27
27
|
"group-[.is-splitted]:bg-background",
|
|
@@ -29,7 +29,7 @@ var accordionItem = tv({
|
|
|
29
29
|
"group-[.is-splitted]:shadow-lg",
|
|
30
30
|
"group-[.is-splitted]:rounded-lg",
|
|
31
31
|
"group-[.is-splitted]:border",
|
|
32
|
-
"group-[.is-splitted]:border-
|
|
32
|
+
"group-[.is-splitted]:border-default-100"
|
|
33
33
|
],
|
|
34
34
|
heading: "",
|
|
35
35
|
trigger: [
|
|
@@ -42,10 +42,10 @@ var accordionItem = tv({
|
|
|
42
42
|
"data-[focus-visible=true]:dark:ring-offset-background-dark"
|
|
43
43
|
],
|
|
44
44
|
startContent: "flex-shrink-0",
|
|
45
|
-
indicator: "text-
|
|
45
|
+
indicator: "text-default-400",
|
|
46
46
|
titleWrapper: "flex-1 flex flex-col text-left",
|
|
47
47
|
title: "text-foreground text-lg",
|
|
48
|
-
subtitle: "text-sm text-
|
|
48
|
+
subtitle: "text-sm text-default-500 font-normal",
|
|
49
49
|
content: "py-2"
|
|
50
50
|
},
|
|
51
51
|
variants: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colorVariants
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IQPW7V4N.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ringClasses
|
|
6
6
|
} from "./chunk-INZK6TTL.mjs";
|
|
@@ -40,12 +40,12 @@ var chip = tv({
|
|
|
40
40
|
},
|
|
41
41
|
shadow: {},
|
|
42
42
|
dot: {
|
|
43
|
-
base: "border-2 border-
|
|
43
|
+
base: "border-2 border-default text-foreground bg-transparent"
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
color: {
|
|
47
|
-
|
|
48
|
-
dot: "bg-
|
|
47
|
+
default: {
|
|
48
|
+
dot: "bg-default-400"
|
|
49
49
|
},
|
|
50
50
|
primary: {
|
|
51
51
|
dot: "bg-primary"
|
|
@@ -129,7 +129,7 @@ var chip = tv({
|
|
|
129
129
|
},
|
|
130
130
|
defaultVariants: {
|
|
131
131
|
variant: "solid",
|
|
132
|
-
color: "
|
|
132
|
+
color: "default",
|
|
133
133
|
size: "md",
|
|
134
134
|
radius: "full",
|
|
135
135
|
isDisabled: false
|
|
@@ -137,9 +137,9 @@ var chip = tv({
|
|
|
137
137
|
compoundVariants: [
|
|
138
138
|
{
|
|
139
139
|
variant: "solid",
|
|
140
|
-
color: "
|
|
140
|
+
color: "default",
|
|
141
141
|
class: {
|
|
142
|
-
base: colorVariants.solid.
|
|
142
|
+
base: colorVariants.solid.default
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
{
|
|
@@ -179,9 +179,9 @@ var chip = tv({
|
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
variant: "shadow",
|
|
182
|
-
color: "
|
|
182
|
+
color: "default",
|
|
183
183
|
class: {
|
|
184
|
-
base: colorVariants.shadow.
|
|
184
|
+
base: colorVariants.shadow.default
|
|
185
185
|
}
|
|
186
186
|
},
|
|
187
187
|
{
|
|
@@ -221,9 +221,9 @@ var chip = tv({
|
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
variant: "bordered",
|
|
224
|
-
color: "
|
|
224
|
+
color: "default",
|
|
225
225
|
class: {
|
|
226
|
-
base: colorVariants.bordered.
|
|
226
|
+
base: colorVariants.bordered.default
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
229
|
{
|
|
@@ -263,9 +263,9 @@ var chip = tv({
|
|
|
263
263
|
},
|
|
264
264
|
{
|
|
265
265
|
variant: "flat",
|
|
266
|
-
color: "
|
|
266
|
+
color: "default",
|
|
267
267
|
class: {
|
|
268
|
-
base: colorVariants.flat.
|
|
268
|
+
base: colorVariants.flat.default
|
|
269
269
|
}
|
|
270
270
|
},
|
|
271
271
|
{
|
|
@@ -305,9 +305,9 @@ var chip = tv({
|
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
variant: "faded",
|
|
308
|
-
color: "
|
|
308
|
+
color: "default",
|
|
309
309
|
class: {
|
|
310
|
-
base: colorVariants.faded.
|
|
310
|
+
base: colorVariants.faded.default
|
|
311
311
|
}
|
|
312
312
|
},
|
|
313
313
|
{
|
|
@@ -347,9 +347,9 @@ var chip = tv({
|
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
variant: "light",
|
|
350
|
-
color: "
|
|
350
|
+
color: "default",
|
|
351
351
|
class: {
|
|
352
|
-
base: colorVariants.light.
|
|
352
|
+
base: colorVariants.light.default
|
|
353
353
|
}
|
|
354
354
|
},
|
|
355
355
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colorVariants
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IQPW7V4N.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/snippet.ts
|
|
6
6
|
import { tv } from "tailwind-variants";
|
|
@@ -26,8 +26,8 @@ var snippet = tv({
|
|
|
26
26
|
shadow: ""
|
|
27
27
|
},
|
|
28
28
|
color: {
|
|
29
|
-
|
|
30
|
-
base: colorVariants.flat.
|
|
29
|
+
default: {
|
|
30
|
+
base: colorVariants.flat.default
|
|
31
31
|
},
|
|
32
32
|
primary: {
|
|
33
33
|
base: colorVariants.flat.primary
|
|
@@ -99,7 +99,7 @@ var snippet = tv({
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
defaultVariants: {
|
|
102
|
-
color: "
|
|
102
|
+
color: "default",
|
|
103
103
|
variant: "flat",
|
|
104
104
|
size: "md",
|
|
105
105
|
radius: "lg",
|
|
@@ -109,9 +109,9 @@ var snippet = tv({
|
|
|
109
109
|
compoundVariants: [
|
|
110
110
|
{
|
|
111
111
|
variant: "solid",
|
|
112
|
-
color: "
|
|
112
|
+
color: "default",
|
|
113
113
|
class: {
|
|
114
|
-
base: colorVariants.solid.
|
|
114
|
+
base: colorVariants.solid.default
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
{
|
|
@@ -151,9 +151,9 @@ var snippet = tv({
|
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
variant: "shadow",
|
|
154
|
-
color: "
|
|
154
|
+
color: "default",
|
|
155
155
|
class: {
|
|
156
|
-
base: colorVariants.shadow.
|
|
156
|
+
base: colorVariants.shadow.default
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
{
|
|
@@ -193,9 +193,9 @@ var snippet = tv({
|
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
195
|
variant: "bordered",
|
|
196
|
-
color: "
|
|
196
|
+
color: "default",
|
|
197
197
|
class: {
|
|
198
|
-
base: colorVariants.bordered.
|
|
198
|
+
base: colorVariants.bordered.default
|
|
199
199
|
}
|
|
200
200
|
},
|
|
201
201
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colorVariants
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IQPW7V4N.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/badge.ts
|
|
6
6
|
import { tv } from "tailwind-variants";
|
|
@@ -37,8 +37,8 @@ var badge = tv({
|
|
|
37
37
|
shadow: {}
|
|
38
38
|
},
|
|
39
39
|
color: {
|
|
40
|
-
|
|
41
|
-
badge: colorVariants.solid.
|
|
40
|
+
default: {
|
|
41
|
+
badge: colorVariants.solid.default
|
|
42
42
|
},
|
|
43
43
|
primary: {
|
|
44
44
|
badge: colorVariants.solid.primary
|
|
@@ -122,7 +122,7 @@ var badge = tv({
|
|
|
122
122
|
},
|
|
123
123
|
defaultVariants: {
|
|
124
124
|
variant: "solid",
|
|
125
|
-
color: "
|
|
125
|
+
color: "default",
|
|
126
126
|
size: "md",
|
|
127
127
|
radius: "full",
|
|
128
128
|
shape: "rectangle",
|
|
@@ -134,9 +134,9 @@ var badge = tv({
|
|
|
134
134
|
compoundVariants: [
|
|
135
135
|
{
|
|
136
136
|
variant: "shadow",
|
|
137
|
-
color: "
|
|
137
|
+
color: "default",
|
|
138
138
|
class: {
|
|
139
|
-
badge: colorVariants.shadow.
|
|
139
|
+
badge: colorVariants.shadow.default
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
142
|
{
|
|
@@ -176,9 +176,9 @@ var badge = tv({
|
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
variant: "flat",
|
|
179
|
-
color: "
|
|
179
|
+
color: "default",
|
|
180
180
|
class: {
|
|
181
|
-
badge: colorVariants.flat.
|
|
181
|
+
badge: colorVariants.flat.default
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
184
|
{
|
|
@@ -218,9 +218,9 @@ var badge = tv({
|
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
variant: "faded",
|
|
221
|
-
color: "
|
|
221
|
+
color: "default",
|
|
222
222
|
class: {
|
|
223
|
-
badge: colorVariants.faded.
|
|
223
|
+
badge: colorVariants.faded.default
|
|
224
224
|
}
|
|
225
225
|
},
|
|
226
226
|
{
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colorVariants
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IQPW7V4N.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/code.ts
|
|
6
6
|
import { tv } from "tailwind-variants";
|
|
7
7
|
var code = tv({
|
|
8
|
-
base: ["px-2", "py-1", "font-mono", "
|
|
8
|
+
base: ["px-2", "py-1", "h-fit", "font-mono", "font-normal", "inline-block", "whitespace-nowrap"],
|
|
9
9
|
variants: {
|
|
10
10
|
color: {
|
|
11
|
-
|
|
11
|
+
default: colorVariants.flat.default,
|
|
12
12
|
primary: colorVariants.flat.primary,
|
|
13
13
|
secondary: colorVariants.flat.secondary,
|
|
14
14
|
success: colorVariants.flat.success,
|
|
@@ -33,7 +33,7 @@ var code = tv({
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
defaultVariants: {
|
|
36
|
-
color: "
|
|
36
|
+
color: "default",
|
|
37
37
|
size: "sm",
|
|
38
38
|
radius: "lg"
|
|
39
39
|
}
|