@nextui-org/theme 0.0.0-dev-v2-20230527131721 → 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-TFNTYAAW.mjs → chunk-6QXUR7SY.mjs} +5 -5
- package/dist/{chunk-7CTZKPXG.mjs → chunk-76WBK7WN.mjs} +6 -6
- package/dist/{chunk-MZAUPTXE.mjs → chunk-7PRU5S35.mjs} +2 -2
- 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-DTLDG5KJ.mjs → chunk-E3HXNSRG.mjs} +3 -3
- package/dist/{chunk-5FMGABPD.mjs → chunk-EQNNT2LH.mjs} +3 -3
- 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-XUFLJ7RP.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/common.mjs +3 -3
- package/dist/colors/index.js +2 -2
- package/dist/colors/index.mjs +6 -6
- package/dist/colors/semantic.js +2 -2
- package/dist/colors/semantic.mjs +5 -5
- package/dist/colors/types.d.ts +1 -1
- package/dist/colors.js +2 -2
- package/dist/colors.mjs +6 -6
- 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 +15 -15
- 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 +206 -206
- 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 +2 -2
- package/dist/components/spinner.js +3 -3
- 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 +208 -208
- package/dist/index.mjs +73 -73
- package/dist/plugin.js +2 -2
- package/dist/plugin.mjs +9 -9
- package/dist/utils/index.js +13 -13
- package/dist/utils/index.mjs +2 -2
- 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
- package/dist/{chunk-W4HTBNGS.mjs → chunk-CRCBVLUP.mjs} +6 -6
|
@@ -16,7 +16,7 @@ var checkbox = tv({
|
|
|
16
16
|
"before:border-solid",
|
|
17
17
|
"before:border-2",
|
|
18
18
|
"before:box-border",
|
|
19
|
-
"before:border-
|
|
19
|
+
"before:border-default",
|
|
20
20
|
"after:content-['']",
|
|
21
21
|
"after:absolute",
|
|
22
22
|
"after:inset-0",
|
|
@@ -25,8 +25,8 @@ var checkbox = tv({
|
|
|
25
25
|
"after:origin-center",
|
|
26
26
|
"group-data-[selected=true]:after:scale-100",
|
|
27
27
|
"group-data-[selected=true]:after:opacity-100",
|
|
28
|
-
"group-data-[hover=true]:before:bg-
|
|
29
|
-
"group-data-[hover=true]:before:bg-
|
|
28
|
+
"group-data-[hover=true]:before:bg-default-100",
|
|
29
|
+
"group-data-[hover=true]:before:bg-default-100",
|
|
30
30
|
"group-data-[focus-visible=true]:outline-none",
|
|
31
31
|
"group-data-[focus-visible=true]:ring-2",
|
|
32
32
|
"group-data-[focus-visible=true]:!ring-primary",
|
|
@@ -39,8 +39,8 @@ var checkbox = tv({
|
|
|
39
39
|
},
|
|
40
40
|
variants: {
|
|
41
41
|
color: {
|
|
42
|
-
|
|
43
|
-
wrapper: "after:bg-
|
|
42
|
+
default: {
|
|
43
|
+
wrapper: "after:bg-default after:text-default-foreground text-default-foreground"
|
|
44
44
|
},
|
|
45
45
|
primary: {
|
|
46
46
|
wrapper: "after:bg-primary after:text-primary-foreground text-primary-foreground"
|
|
@@ -159,7 +159,7 @@ var checkbox = tv({
|
|
|
159
159
|
var checkboxGroup = tv({
|
|
160
160
|
slots: {
|
|
161
161
|
base: "relative flex flex-col gap-2",
|
|
162
|
-
label: "relative text-
|
|
162
|
+
label: "relative text-default-500",
|
|
163
163
|
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row "
|
|
164
164
|
}
|
|
165
165
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/utils/variants.ts
|
|
2
2
|
var solid = {
|
|
3
|
-
|
|
3
|
+
default: "bg-default text-default-foreground",
|
|
4
4
|
primary: "bg-primary text-primary-foreground",
|
|
5
5
|
secondary: "bg-secondary text-secondary-foreground",
|
|
6
6
|
success: "bg-success text-success-foreground",
|
|
@@ -9,7 +9,7 @@ var solid = {
|
|
|
9
9
|
foreground: "bg-foreground text-background"
|
|
10
10
|
};
|
|
11
11
|
var shadow = {
|
|
12
|
-
|
|
12
|
+
default: "shadow-lg shadow-default/50 bg-default text-default-foreground",
|
|
13
13
|
primary: "shadow-lg shadow-primary/40 bg-primary text-primary-foreground",
|
|
14
14
|
secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",
|
|
15
15
|
success: "shadow-lg shadow-success/40 bg-success text-success-foreground",
|
|
@@ -18,7 +18,7 @@ var shadow = {
|
|
|
18
18
|
foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
|
|
19
19
|
};
|
|
20
20
|
var bordered = {
|
|
21
|
-
|
|
21
|
+
default: "bg-transparent border-default text-foreground",
|
|
22
22
|
primary: "bg-transparent border-primary text-primary",
|
|
23
23
|
secondary: "bg-transparent border-secondary text-secondary",
|
|
24
24
|
success: "bg-transparent border-success text-success",
|
|
@@ -27,7 +27,7 @@ var bordered = {
|
|
|
27
27
|
foreground: "bg-transparent border-foreground text-foreground"
|
|
28
28
|
};
|
|
29
29
|
var flat = {
|
|
30
|
-
|
|
30
|
+
default: "bg-default-100 text-default-foreground",
|
|
31
31
|
primary: "bg-primary-50 text-primary",
|
|
32
32
|
secondary: "bg-secondary-100 text-secondary",
|
|
33
33
|
success: "bg-success-50 text-success",
|
|
@@ -36,16 +36,16 @@ var flat = {
|
|
|
36
36
|
foreground: "bg-foreground/10 text-foreground"
|
|
37
37
|
};
|
|
38
38
|
var faded = {
|
|
39
|
-
|
|
40
|
-
primary: "border-
|
|
41
|
-
secondary: "border-
|
|
42
|
-
success: "border-
|
|
43
|
-
warning: "border-
|
|
44
|
-
danger: "border-
|
|
45
|
-
foreground: "border-
|
|
39
|
+
default: "border-default bg-default-100 text-default-foreground",
|
|
40
|
+
primary: "border-default bg-default-100 text-primary",
|
|
41
|
+
secondary: "border-default bg-default-100 text-secondary",
|
|
42
|
+
success: "border-default bg-default-100 text-success",
|
|
43
|
+
warning: "border-default bg-default-100 text-warning",
|
|
44
|
+
danger: "border-default bg-default-100 text-danger",
|
|
45
|
+
foreground: "border-default bg-default-100 text-foreground"
|
|
46
46
|
};
|
|
47
47
|
var light = {
|
|
48
|
-
|
|
48
|
+
default: "bg-transparent text-default-foreground",
|
|
49
49
|
primary: "bg-transparent text-primary",
|
|
50
50
|
secondary: "bg-transparent text-secondary",
|
|
51
51
|
success: "bg-transparent text-success",
|
|
@@ -54,7 +54,7 @@ var light = {
|
|
|
54
54
|
foreground: "bg-transparent text-foreground"
|
|
55
55
|
};
|
|
56
56
|
var ghost = {
|
|
57
|
-
|
|
57
|
+
default: "border-default text-default-foreground hover:!bg-default",
|
|
58
58
|
primary: "border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",
|
|
59
59
|
secondary: "border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",
|
|
60
60
|
success: "border-success text-success hover:!text-success-foreground hover:!bg-success",
|
|
@@ -7,13 +7,13 @@ var progress = tv(
|
|
|
7
7
|
label: "",
|
|
8
8
|
labelWrapper: "flex justify-between",
|
|
9
9
|
value: "",
|
|
10
|
-
track: "z-0 relative bg-
|
|
10
|
+
track: "z-0 relative bg-default-300/50 overflow-hidden",
|
|
11
11
|
filler: "h-full"
|
|
12
12
|
},
|
|
13
13
|
variants: {
|
|
14
14
|
color: {
|
|
15
|
-
|
|
16
|
-
filler: "bg-
|
|
15
|
+
default: {
|
|
16
|
+
filler: "bg-default-400"
|
|
17
17
|
},
|
|
18
18
|
primary: {
|
|
19
19
|
filler: "bg-primary"
|
|
@@ -10,7 +10,7 @@ var dropdown = tv({
|
|
|
10
10
|
"bg-white",
|
|
11
11
|
"dark:bg-content1",
|
|
12
12
|
"border",
|
|
13
|
-
"border-
|
|
13
|
+
"border-default-100"
|
|
14
14
|
]
|
|
15
15
|
});
|
|
16
16
|
var dropdownItem = tv({
|
|
@@ -39,7 +39,7 @@ var dropdownItem = tv({
|
|
|
39
39
|
],
|
|
40
40
|
wrapper: "w-full flex flex-col items-start justify-center",
|
|
41
41
|
title: "flex-1",
|
|
42
|
-
description: ["text-xs", "w-full", "text-
|
|
42
|
+
description: ["text-xs", "w-full", "text-default-500", "group-hover:text-current"],
|
|
43
43
|
selectedIcon: ["text-inherit", "w-3", "h-3", "flex-shrink-0"],
|
|
44
44
|
shortcut: [
|
|
45
45
|
"px-1",
|
|
@@ -50,7 +50,7 @@ var dropdownItem = tv({
|
|
|
50
50
|
"text-inherit",
|
|
51
51
|
"text-xs",
|
|
52
52
|
"border",
|
|
53
|
-
"border-
|
|
53
|
+
"border-default-200",
|
|
54
54
|
"group-hover:border-current"
|
|
55
55
|
]
|
|
56
56
|
},
|
|
@@ -66,7 +66,7 @@ var dropdownItem = tv({
|
|
|
66
66
|
base: "bg-transparent"
|
|
67
67
|
},
|
|
68
68
|
faded: {
|
|
69
|
-
base: "border border-transparent hover:border-
|
|
69
|
+
base: "border border-transparent hover:border-default data-[hover=true]:bg-default-100"
|
|
70
70
|
},
|
|
71
71
|
flat: {
|
|
72
72
|
base: ""
|
|
@@ -76,7 +76,7 @@ var dropdownItem = tv({
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
color: {
|
|
79
|
-
|
|
79
|
+
default: {},
|
|
80
80
|
primary: {},
|
|
81
81
|
secondary: {},
|
|
82
82
|
success: {},
|
|
@@ -93,7 +93,7 @@ var dropdownItem = tv({
|
|
|
93
93
|
"before:left-0",
|
|
94
94
|
"before:right-0",
|
|
95
95
|
"before:h-px",
|
|
96
|
-
"before:bg-
|
|
96
|
+
"before:bg-default-200"
|
|
97
97
|
]
|
|
98
98
|
}
|
|
99
99
|
},
|
|
@@ -109,15 +109,15 @@ var dropdownItem = tv({
|
|
|
109
109
|
},
|
|
110
110
|
defaultVariants: {
|
|
111
111
|
variant: "solid",
|
|
112
|
-
color: "
|
|
112
|
+
color: "default",
|
|
113
113
|
disableAnimation: false
|
|
114
114
|
},
|
|
115
115
|
compoundVariants: [
|
|
116
116
|
{
|
|
117
117
|
variant: "solid",
|
|
118
|
-
color: "
|
|
118
|
+
color: "default",
|
|
119
119
|
class: {
|
|
120
|
-
base: "data-[hover=true]:bg-
|
|
120
|
+
base: "data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
{
|
|
@@ -157,9 +157,9 @@ var dropdownItem = tv({
|
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
variant: "shadow",
|
|
160
|
-
color: "
|
|
160
|
+
color: "default",
|
|
161
161
|
class: {
|
|
162
|
-
base: "data-[hover=true]:shadow-
|
|
162
|
+
base: "data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"
|
|
163
163
|
}
|
|
164
164
|
},
|
|
165
165
|
{
|
|
@@ -199,9 +199,9 @@ var dropdownItem = tv({
|
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
variant: "bordered",
|
|
202
|
-
color: "
|
|
202
|
+
color: "default",
|
|
203
203
|
class: {
|
|
204
|
-
base: "data-[hover=true]:border-
|
|
204
|
+
base: "data-[hover=true]:border-default"
|
|
205
205
|
}
|
|
206
206
|
},
|
|
207
207
|
{
|
|
@@ -241,9 +241,9 @@ var dropdownItem = tv({
|
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
variant: "flat",
|
|
244
|
-
color: "
|
|
244
|
+
color: "default",
|
|
245
245
|
class: {
|
|
246
|
-
base: "data-[hover=true]:bg-
|
|
246
|
+
base: "data-[hover=true]:bg-default-100 data-[hover=true]:text-default-foreground"
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
249
|
{
|
|
@@ -283,9 +283,9 @@ var dropdownItem = tv({
|
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
285
|
variant: "faded",
|
|
286
|
-
color: "
|
|
286
|
+
color: "default",
|
|
287
287
|
class: {
|
|
288
|
-
base: "data-[hover=true]:text-
|
|
288
|
+
base: "data-[hover=true]:text-default-foreground"
|
|
289
289
|
}
|
|
290
290
|
},
|
|
291
291
|
{
|
|
@@ -325,9 +325,9 @@ var dropdownItem = tv({
|
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
327
|
variant: "light",
|
|
328
|
-
color: "
|
|
328
|
+
color: "default",
|
|
329
329
|
class: {
|
|
330
|
-
base: "data-[hover=true]:text-
|
|
330
|
+
base: "data-[hover=true]:text-default-500"
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
333
|
{
|
|
@@ -370,7 +370,7 @@ var dropdownItem = tv({
|
|
|
370
370
|
var dropdownSection = tv({
|
|
371
371
|
slots: {
|
|
372
372
|
section: "relative mb-2",
|
|
373
|
-
heading: "pl-1 text-xs text-
|
|
373
|
+
heading: "pl-1 text-xs text-default-500"
|
|
374
374
|
},
|
|
375
375
|
variants: {
|
|
376
376
|
showDivider: {
|
|
@@ -383,7 +383,7 @@ var dropdownSection = tv({
|
|
|
383
383
|
"before:left-0",
|
|
384
384
|
"before:right-0",
|
|
385
385
|
"before:h-px",
|
|
386
|
-
"before:bg-
|
|
386
|
+
"before:bg-default-200"
|
|
387
387
|
]
|
|
388
388
|
}
|
|
389
389
|
}
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
utilities
|
|
3
3
|
} from "./chunk-XLATS5QU.mjs";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
baseStyles
|
|
6
|
+
} from "./chunk-INZK6TTL.mjs";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
semanticColors
|
|
9
|
+
} from "./chunk-6QXUR7SY.mjs";
|
|
10
10
|
import {
|
|
11
11
|
removeDefaultKeys
|
|
12
12
|
} from "./chunk-37PIXVP4.mjs";
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
animations
|
|
15
15
|
} from "./chunk-DMASP6FA.mjs";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./chunk-
|
|
17
|
+
commonColors
|
|
18
|
+
} from "./chunk-CRCBVLUP.mjs";
|
|
19
19
|
|
|
20
20
|
// src/plugin.ts
|
|
21
21
|
import Color from "color";
|
|
@@ -13,7 +13,7 @@ var card = tv({
|
|
|
13
13
|
"box-border",
|
|
14
14
|
"bg-background",
|
|
15
15
|
"dark:bg-content1",
|
|
16
|
-
"border border-
|
|
16
|
+
"border border-default-100",
|
|
17
17
|
"data-[focus-visible=true]:outline-none",
|
|
18
18
|
"data-[focus-visible=true]:ring-2",
|
|
19
19
|
"data-[focus-visible=true]:ring-primary",
|
|
@@ -24,7 +24,7 @@ var modal = tv({
|
|
|
24
24
|
"shadow-lg",
|
|
25
25
|
"box-border",
|
|
26
26
|
"dark:bg-content1",
|
|
27
|
-
"border border-
|
|
27
|
+
"border border-default-100",
|
|
28
28
|
"outline-none"
|
|
29
29
|
],
|
|
30
30
|
trigger: [],
|
|
@@ -40,10 +40,10 @@ var modal = tv({
|
|
|
40
40
|
"top-1",
|
|
41
41
|
"right-1",
|
|
42
42
|
"p-2",
|
|
43
|
-
"text-
|
|
43
|
+
"text-default-500",
|
|
44
44
|
"rounded-full",
|
|
45
|
-
"hover:bg-
|
|
46
|
-
"active:bg-
|
|
45
|
+
"hover:bg-default-100",
|
|
46
|
+
"active:bg-default-200",
|
|
47
47
|
"data-[focus-visible]:outline-none",
|
|
48
48
|
"data-[focus-visible]:ring-2",
|
|
49
49
|
"data-[focus-visible]:!ring-primary",
|
|
@@ -18,7 +18,7 @@ var table = tv({
|
|
|
18
18
|
"justify-between",
|
|
19
19
|
"gap-4",
|
|
20
20
|
"border",
|
|
21
|
-
"border-
|
|
21
|
+
"border-default-100",
|
|
22
22
|
"overflow-auto"
|
|
23
23
|
],
|
|
24
24
|
table: "min-w-full h-auto",
|
|
@@ -31,8 +31,8 @@ var table = tv({
|
|
|
31
31
|
"h-10",
|
|
32
32
|
"text-left",
|
|
33
33
|
"align-middle",
|
|
34
|
-
"bg-
|
|
35
|
-
"text-
|
|
34
|
+
"bg-default-100",
|
|
35
|
+
"text-default-500",
|
|
36
36
|
"text-xs",
|
|
37
37
|
"font-semibold",
|
|
38
38
|
"first:rounded-l-lg",
|
|
@@ -40,7 +40,7 @@ var table = tv({
|
|
|
40
40
|
"outline-none",
|
|
41
41
|
"data-[sortable=true]:transition-colors",
|
|
42
42
|
"data-[sortable=true]:cursor-pointer",
|
|
43
|
-
"data-[hover=true]:text-
|
|
43
|
+
"data-[hover=true]:text-default-400",
|
|
44
44
|
...focusRing
|
|
45
45
|
],
|
|
46
46
|
td: [
|
|
@@ -59,7 +59,7 @@ var table = tv({
|
|
|
59
59
|
"before:inset-0",
|
|
60
60
|
"before:opacity-0",
|
|
61
61
|
"data-[selected=true]:before:opacity-100",
|
|
62
|
-
"group-data-[disabled=true]:text-
|
|
62
|
+
"group-data-[disabled=true]:text-default-300"
|
|
63
63
|
],
|
|
64
64
|
tfoot: "",
|
|
65
65
|
sortIcon: [
|
|
@@ -73,13 +73,13 @@ var table = tv({
|
|
|
73
73
|
"group-data-[hover=true]:opacity-100",
|
|
74
74
|
"data-[direction=ascending]:rotate-180"
|
|
75
75
|
],
|
|
76
|
-
emptyWrapper: "text-
|
|
76
|
+
emptyWrapper: "text-default-400 align-middle text-center h-40",
|
|
77
77
|
loadingWrapper: "absolute inset-0 flex items-center justify-center"
|
|
78
78
|
},
|
|
79
79
|
variants: {
|
|
80
80
|
color: {
|
|
81
|
-
|
|
82
|
-
td: "before:bg-
|
|
81
|
+
default: {
|
|
82
|
+
td: "before:bg-default-200 dark:before:bg-default-100 data-[selected=true]:text-default-foreground"
|
|
83
83
|
},
|
|
84
84
|
primary: {
|
|
85
85
|
td: "before:bg-primary-50 data-[selected=true]:text-primary"
|
|
@@ -159,7 +159,7 @@ var table = tv({
|
|
|
159
159
|
isStriped: {
|
|
160
160
|
true: {
|
|
161
161
|
td: [
|
|
162
|
-
"group-data-[odd=true]:before:bg-
|
|
162
|
+
"group-data-[odd=true]:before:bg-default-100",
|
|
163
163
|
"group-data-[odd=true]:before:opacity-100"
|
|
164
164
|
]
|
|
165
165
|
}
|
|
@@ -200,7 +200,7 @@ var table = tv({
|
|
|
200
200
|
layout: "auto",
|
|
201
201
|
shadow: "lg",
|
|
202
202
|
radius: "xl",
|
|
203
|
-
color: "
|
|
203
|
+
color: "default",
|
|
204
204
|
hideHeader: false,
|
|
205
205
|
isStriped: false,
|
|
206
206
|
fullWidth: true
|
|
@@ -6,14 +6,14 @@ var circularProgress = tv({
|
|
|
6
6
|
label: "",
|
|
7
7
|
svgWrapper: "relative block",
|
|
8
8
|
svg: "z-0 relative overflow-hidden",
|
|
9
|
-
track: "h-full stroke-
|
|
9
|
+
track: "h-full stroke-default-300/50",
|
|
10
10
|
indicator: "h-full stroke-current",
|
|
11
11
|
value: "absolute font-normal inset-0 flex items-center justify-center"
|
|
12
12
|
},
|
|
13
13
|
variants: {
|
|
14
14
|
color: {
|
|
15
|
-
|
|
16
|
-
svg: "text-
|
|
15
|
+
default: {
|
|
16
|
+
svg: "text-default-400"
|
|
17
17
|
},
|
|
18
18
|
primary: {
|
|
19
19
|
svg: "text-primary"
|
|
@@ -11,7 +11,7 @@ var toggle = tv({
|
|
|
11
11
|
"justify-start",
|
|
12
12
|
"flex-shrink-0",
|
|
13
13
|
"overflow-hidden",
|
|
14
|
-
"bg-
|
|
14
|
+
"bg-default-200",
|
|
15
15
|
"rounded-full",
|
|
16
16
|
"group-data-[focus-visible]:outline-none",
|
|
17
17
|
"group-data-[focus-visible]:ring-2",
|
|
@@ -31,16 +31,16 @@ var toggle = tv({
|
|
|
31
31
|
"origin-right"
|
|
32
32
|
],
|
|
33
33
|
startIcon: "z-0 absolute left-1.5 text-current",
|
|
34
|
-
endIcon: "z-0 absolute right-1.5 text-
|
|
34
|
+
endIcon: "z-0 absolute right-1.5 text-default-600",
|
|
35
35
|
thumbIcon: "text-black",
|
|
36
36
|
label: "relative text-foreground select-none"
|
|
37
37
|
},
|
|
38
38
|
variants: {
|
|
39
39
|
color: {
|
|
40
|
-
|
|
40
|
+
default: {
|
|
41
41
|
wrapper: [
|
|
42
|
-
"group-data-[checked=true]:bg-
|
|
43
|
-
"group-data-[checked=true]:text-
|
|
42
|
+
"group-data-[checked=true]:bg-default-400",
|
|
43
|
+
"group-data-[checked=true]:text-default-foreground"
|
|
44
44
|
]
|
|
45
45
|
},
|
|
46
46
|
primary: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colorVariants
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IQPW7V4N.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/popover.ts
|
|
6
6
|
import { tv } from "tailwind-variants";
|
|
@@ -74,7 +74,7 @@ var popover = tv({
|
|
|
74
74
|
shadow: { base: "" }
|
|
75
75
|
},
|
|
76
76
|
color: {
|
|
77
|
-
|
|
77
|
+
default: { base: colorVariants.solid.default },
|
|
78
78
|
foreground: { base: colorVariants.solid.foreground },
|
|
79
79
|
primary: { base: colorVariants.solid.primary },
|
|
80
80
|
secondary: { base: colorVariants.solid.secondary },
|
|
@@ -114,7 +114,7 @@ var popover = tv({
|
|
|
114
114
|
},
|
|
115
115
|
defaultVariants: {
|
|
116
116
|
variant: "solid",
|
|
117
|
-
color: "
|
|
117
|
+
color: "default",
|
|
118
118
|
radius: "xl",
|
|
119
119
|
backdropVariant: "transparent",
|
|
120
120
|
disableAnimation: false,
|
|
@@ -123,9 +123,9 @@ var popover = tv({
|
|
|
123
123
|
compoundVariants: [
|
|
124
124
|
{
|
|
125
125
|
variant: "shadow",
|
|
126
|
-
color: "
|
|
126
|
+
color: "default",
|
|
127
127
|
class: {
|
|
128
|
-
base: colorVariants.shadow.
|
|
128
|
+
base: colorVariants.shadow.default
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
{
|
|
@@ -160,8 +160,8 @@ var popover = tv({
|
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
variant: "bordered",
|
|
163
|
-
color: "
|
|
164
|
-
class: { base: colorVariants.bordered.
|
|
163
|
+
color: "default",
|
|
164
|
+
class: { base: colorVariants.bordered.default }
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
variant: "bordered",
|
|
@@ -195,8 +195,8 @@ var popover = tv({
|
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
variant: "flat",
|
|
198
|
-
color: "
|
|
199
|
-
class: { base: colorVariants.flat.
|
|
198
|
+
color: "default",
|
|
199
|
+
class: { base: colorVariants.flat.default }
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
variant: "flat",
|
|
@@ -230,8 +230,8 @@ var popover = tv({
|
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
variant: "faded",
|
|
233
|
-
color: "
|
|
234
|
-
class: { base: colorVariants.faded.
|
|
233
|
+
color: "default",
|
|
234
|
+
class: { base: colorVariants.faded.default }
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
variant: "faded",
|
|
@@ -265,8 +265,8 @@ var popover = tv({
|
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
267
|
variant: "light",
|
|
268
|
-
color: "
|
|
269
|
-
class: { base: colorVariants.light.
|
|
268
|
+
color: "default",
|
|
269
|
+
class: { base: colorVariants.light.default }
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
272
|
variant: "light",
|
|
@@ -13,8 +13,8 @@ var radio = tv({
|
|
|
13
13
|
"border-solid",
|
|
14
14
|
"border-2",
|
|
15
15
|
"box-border",
|
|
16
|
-
"border-
|
|
17
|
-
"group-data-[hover-unchecked=true]:bg-
|
|
16
|
+
"border-default",
|
|
17
|
+
"group-data-[hover-unchecked=true]:bg-default-100",
|
|
18
18
|
"group-data-[focus-visible=true]:outline-none",
|
|
19
19
|
"group-data-[focus-visible=true]:ring-2",
|
|
20
20
|
"group-data-[focus-visible=true]:!ring-primary",
|
|
@@ -34,13 +34,13 @@ var radio = tv({
|
|
|
34
34
|
"group-data-[checked=true]:scale-100"
|
|
35
35
|
],
|
|
36
36
|
label: "relative text-foreground select-none",
|
|
37
|
-
description: "relative text-
|
|
37
|
+
description: "relative text-default-400"
|
|
38
38
|
},
|
|
39
39
|
variants: {
|
|
40
40
|
color: {
|
|
41
|
-
|
|
42
|
-
control: "bg-
|
|
43
|
-
wrapper: "group-data-[checked=true]:border-
|
|
41
|
+
default: {
|
|
42
|
+
control: "bg-default-500 text-default-foreground",
|
|
43
|
+
wrapper: "group-data-[checked=true]:border-default-500"
|
|
44
44
|
},
|
|
45
45
|
primary: {
|
|
46
46
|
control: "bg-primary text-primary-foreground",
|
|
@@ -163,7 +163,7 @@ var radio = tv({
|
|
|
163
163
|
var radioGroup = tv({
|
|
164
164
|
slots: {
|
|
165
165
|
base: "relative flex flex-col gap-2",
|
|
166
|
-
label: "relative text-
|
|
166
|
+
label: "relative text-default-500",
|
|
167
167
|
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row "
|
|
168
168
|
}
|
|
169
169
|
});
|