@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
package/dist/components/tabs.js
CHANGED
|
@@ -27,7 +27,7 @@ var import_tailwind_variants = require("tailwind-variants");
|
|
|
27
27
|
|
|
28
28
|
// src/utils/variants.ts
|
|
29
29
|
var solid = {
|
|
30
|
-
|
|
30
|
+
default: "bg-default text-default-foreground",
|
|
31
31
|
primary: "bg-primary text-primary-foreground",
|
|
32
32
|
secondary: "bg-secondary text-secondary-foreground",
|
|
33
33
|
success: "bg-success text-success-foreground",
|
|
@@ -36,7 +36,7 @@ var solid = {
|
|
|
36
36
|
foreground: "bg-foreground text-background"
|
|
37
37
|
};
|
|
38
38
|
var shadow = {
|
|
39
|
-
|
|
39
|
+
default: "shadow-lg shadow-default/50 bg-default text-default-foreground",
|
|
40
40
|
primary: "shadow-lg shadow-primary/40 bg-primary text-primary-foreground",
|
|
41
41
|
secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",
|
|
42
42
|
success: "shadow-lg shadow-success/40 bg-success text-success-foreground",
|
|
@@ -45,7 +45,7 @@ var shadow = {
|
|
|
45
45
|
foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
|
|
46
46
|
};
|
|
47
47
|
var bordered = {
|
|
48
|
-
|
|
48
|
+
default: "bg-transparent border-default text-foreground",
|
|
49
49
|
primary: "bg-transparent border-primary text-primary",
|
|
50
50
|
secondary: "bg-transparent border-secondary text-secondary",
|
|
51
51
|
success: "bg-transparent border-success text-success",
|
|
@@ -54,7 +54,7 @@ var bordered = {
|
|
|
54
54
|
foreground: "bg-transparent border-foreground text-foreground"
|
|
55
55
|
};
|
|
56
56
|
var flat = {
|
|
57
|
-
|
|
57
|
+
default: "bg-default-100 text-default-foreground",
|
|
58
58
|
primary: "bg-primary-50 text-primary",
|
|
59
59
|
secondary: "bg-secondary-100 text-secondary",
|
|
60
60
|
success: "bg-success-50 text-success",
|
|
@@ -63,16 +63,16 @@ var flat = {
|
|
|
63
63
|
foreground: "bg-foreground/10 text-foreground"
|
|
64
64
|
};
|
|
65
65
|
var faded = {
|
|
66
|
-
|
|
67
|
-
primary: "border-
|
|
68
|
-
secondary: "border-
|
|
69
|
-
success: "border-
|
|
70
|
-
warning: "border-
|
|
71
|
-
danger: "border-
|
|
72
|
-
foreground: "border-
|
|
66
|
+
default: "border-default bg-default-100 text-default-foreground",
|
|
67
|
+
primary: "border-default bg-default-100 text-primary",
|
|
68
|
+
secondary: "border-default bg-default-100 text-secondary",
|
|
69
|
+
success: "border-default bg-default-100 text-success",
|
|
70
|
+
warning: "border-default bg-default-100 text-warning",
|
|
71
|
+
danger: "border-default bg-default-100 text-danger",
|
|
72
|
+
foreground: "border-default bg-default-100 text-foreground"
|
|
73
73
|
};
|
|
74
74
|
var light = {
|
|
75
|
-
|
|
75
|
+
default: "bg-transparent text-default-foreground",
|
|
76
76
|
primary: "bg-transparent text-primary",
|
|
77
77
|
secondary: "bg-transparent text-secondary",
|
|
78
78
|
success: "bg-transparent text-success",
|
|
@@ -81,7 +81,7 @@ var light = {
|
|
|
81
81
|
foreground: "bg-transparent text-foreground"
|
|
82
82
|
};
|
|
83
83
|
var ghost = {
|
|
84
|
-
|
|
84
|
+
default: "border-default text-default-foreground hover:!bg-default",
|
|
85
85
|
primary: "border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",
|
|
86
86
|
secondary: "border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",
|
|
87
87
|
success: "border-success text-success hover:!text-success-foreground hover:!bg-success",
|
|
@@ -103,7 +103,7 @@ var colorVariants = {
|
|
|
103
103
|
var tabs = (0, import_tailwind_variants.tv)({
|
|
104
104
|
slots: {
|
|
105
105
|
base: "inline-block",
|
|
106
|
-
tabList: ["flex", "items-center", "gap-2", "bg-
|
|
106
|
+
tabList: ["flex", "items-center", "gap-2", "bg-default-100", "p-1"],
|
|
107
107
|
tab: [
|
|
108
108
|
"z-0",
|
|
109
109
|
"w-full",
|
|
@@ -132,7 +132,7 @@ var tabs = (0, import_tailwind_variants.tv)({
|
|
|
132
132
|
"z-10",
|
|
133
133
|
"text-inherit",
|
|
134
134
|
"transition-colors",
|
|
135
|
-
"text-
|
|
135
|
+
"text-default-500",
|
|
136
136
|
"group-data-[selected=true]:text-foreground"
|
|
137
137
|
],
|
|
138
138
|
cursor: ["absolute", "z-0", "bg-white", "shadow-md"],
|
|
@@ -161,12 +161,12 @@ var tabs = (0, import_tailwind_variants.tv)({
|
|
|
161
161
|
cursor: "h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"
|
|
162
162
|
},
|
|
163
163
|
bordered: {
|
|
164
|
-
tabList: "bg-transparent border-2 border-
|
|
164
|
+
tabList: "bg-transparent border-2 border-default-200 shadow-sm",
|
|
165
165
|
cursor: "inset-0"
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
168
|
color: {
|
|
169
|
-
|
|
169
|
+
default: {},
|
|
170
170
|
primary: {},
|
|
171
171
|
secondary: {},
|
|
172
172
|
success: {},
|
|
@@ -247,7 +247,7 @@ var tabs = (0, import_tailwind_variants.tv)({
|
|
|
247
247
|
},
|
|
248
248
|
defaultVariants: {
|
|
249
249
|
radius: "xl",
|
|
250
|
-
color: "
|
|
250
|
+
color: "default",
|
|
251
251
|
variant: "solid",
|
|
252
252
|
size: "md",
|
|
253
253
|
fullWidth: false,
|
|
@@ -257,10 +257,10 @@ var tabs = (0, import_tailwind_variants.tv)({
|
|
|
257
257
|
compoundVariants: [
|
|
258
258
|
{
|
|
259
259
|
variant: ["solid", "bordered", "light"],
|
|
260
|
-
color: "
|
|
260
|
+
color: "default",
|
|
261
261
|
class: {
|
|
262
|
-
cursor: ["bg-background", "dark:bg-
|
|
263
|
-
tabContent: "group-data-[selected=true]:text-
|
|
262
|
+
cursor: ["bg-background", "dark:bg-default"],
|
|
263
|
+
tabContent: "group-data-[selected=true]:text-default-foreground"
|
|
264
264
|
}
|
|
265
265
|
},
|
|
266
266
|
{
|
|
@@ -305,7 +305,7 @@ var tabs = (0, import_tailwind_variants.tv)({
|
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
variant: "underlined",
|
|
308
|
-
color: "
|
|
308
|
+
color: "default",
|
|
309
309
|
class: {
|
|
310
310
|
cursor: "bg-foreground",
|
|
311
311
|
tabContent: "group-data-[selected=true]:text-foreground"
|
|
@@ -369,10 +369,10 @@ var tabs = (0, import_tailwind_variants.tv)({
|
|
|
369
369
|
},
|
|
370
370
|
{
|
|
371
371
|
disableAnimation: true,
|
|
372
|
-
color: "
|
|
372
|
+
color: "default",
|
|
373
373
|
variant: ["solid", "bordered", "light"],
|
|
374
374
|
class: {
|
|
375
|
-
tab: "data-[selected=true]:bg-
|
|
375
|
+
tab: "data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"
|
|
376
376
|
}
|
|
377
377
|
},
|
|
378
378
|
{
|
|
@@ -417,7 +417,7 @@ var tabs = (0, import_tailwind_variants.tv)({
|
|
|
417
417
|
},
|
|
418
418
|
{
|
|
419
419
|
disableAnimation: true,
|
|
420
|
-
color: "
|
|
420
|
+
color: "default",
|
|
421
421
|
variant: "underlined",
|
|
422
422
|
class: {
|
|
423
423
|
tab: "data-[selected=true]:after:bg-foreground"
|
package/dist/components/tabs.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tabs
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-5DRF22QY.mjs";
|
|
4
4
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
|
-
import "../chunk-RO3WUCFF.mjs";
|
|
6
5
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
|
+
import "../chunk-IQPW7V4N.mjs";
|
|
7
7
|
import "../chunk-INZK6TTL.mjs";
|
|
8
8
|
export {
|
|
9
9
|
tabs
|
|
@@ -29,7 +29,7 @@ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
|
29
29
|
*/
|
|
30
30
|
declare const toggle: tailwind_variants.TVReturnType<{
|
|
31
31
|
color: {
|
|
32
|
-
|
|
32
|
+
default: {
|
|
33
33
|
wrapper: string[];
|
|
34
34
|
};
|
|
35
35
|
primary: {
|
|
@@ -112,7 +112,7 @@ declare const toggle: tailwind_variants.TVReturnType<{
|
|
|
112
112
|
label: string;
|
|
113
113
|
}, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
114
114
|
color: {
|
|
115
|
-
|
|
115
|
+
default: {
|
|
116
116
|
wrapper: string[];
|
|
117
117
|
};
|
|
118
118
|
primary: {
|
|
@@ -35,7 +35,7 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
35
35
|
"justify-start",
|
|
36
36
|
"flex-shrink-0",
|
|
37
37
|
"overflow-hidden",
|
|
38
|
-
"bg-
|
|
38
|
+
"bg-default-200",
|
|
39
39
|
"rounded-full",
|
|
40
40
|
"group-data-[focus-visible]:outline-none",
|
|
41
41
|
"group-data-[focus-visible]:ring-2",
|
|
@@ -55,16 +55,16 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
55
55
|
"origin-right"
|
|
56
56
|
],
|
|
57
57
|
startIcon: "z-0 absolute left-1.5 text-current",
|
|
58
|
-
endIcon: "z-0 absolute right-1.5 text-
|
|
58
|
+
endIcon: "z-0 absolute right-1.5 text-default-600",
|
|
59
59
|
thumbIcon: "text-black",
|
|
60
60
|
label: "relative text-foreground select-none"
|
|
61
61
|
},
|
|
62
62
|
variants: {
|
|
63
63
|
color: {
|
|
64
|
-
|
|
64
|
+
default: {
|
|
65
65
|
wrapper: [
|
|
66
|
-
"group-data-[checked=true]:bg-
|
|
67
|
-
"group-data-[checked=true]:text-
|
|
66
|
+
"group-data-[checked=true]:bg-default-400",
|
|
67
|
+
"group-data-[checked=true]:text-default-foreground"
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
primary: {
|
package/dist/components/user.js
CHANGED
|
@@ -37,7 +37,7 @@ var user = (0, import_tailwind_variants.tv)({
|
|
|
37
37
|
],
|
|
38
38
|
wrapper: "inline-flex flex-col items-start",
|
|
39
39
|
name: "text-sm text-inherit",
|
|
40
|
-
description: "text-xs text-
|
|
40
|
+
description: "text-xs text-default-400"
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
// Annotate the CommonJS export names for ESM import in node:
|