@nextui-org/theme 0.0.0-dev-v2-20230505232443 → 0.0.0-dev-v2-20230514151437
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-X577FDRG.mjs → chunk-5ZJFAFZA.mjs} +2 -0
- package/dist/{chunk-S7ZC2I7Y.mjs → chunk-74YO36XH.mjs} +1 -1
- package/dist/{chunk-XICTHLAR.mjs → chunk-YQXYRWJP.mjs} +4 -2
- package/dist/components/avatar.js +1 -1
- package/dist/components/avatar.mjs +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +7 -2
- package/dist/components/index.mjs +6 -4
- package/dist/components/link.d.ts +2 -1
- package/dist/components/link.js +6 -3
- package/dist/components/link.mjs +5 -3
- package/dist/components/snippet.d.ts +5 -2
- package/dist/components/snippet.js +2 -0
- package/dist/components/snippet.mjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -2
- package/dist/index.mjs +6 -4
- package/package.json +1 -1
|
@@ -8,6 +8,8 @@ var snippet = tv({
|
|
|
8
8
|
slots: {
|
|
9
9
|
base: "inline-flex items-center justify-between rounded-md",
|
|
10
10
|
pre: "bg-transparent text-inherit font-mono whitespace-pre-wrap",
|
|
11
|
+
content: "flex flex-col",
|
|
12
|
+
symbol: "select-none",
|
|
11
13
|
copyButton: ["group", "relative", "z-10", "text-inherit", "data-[hover=true]:bg-transparent"],
|
|
12
14
|
copyIcon: [
|
|
13
15
|
"absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50"
|
|
@@ -37,7 +37,7 @@ var avatar = tv({
|
|
|
37
37
|
"data-[loaded=true]:opacity-100"
|
|
38
38
|
],
|
|
39
39
|
fallback: [...translateCenterClasses, "flex", "items-center", "justify-center"],
|
|
40
|
-
name: [...translateCenterClasses, "font-
|
|
40
|
+
name: [...translateCenterClasses, "font-normal", "text-center", "text-inherit"],
|
|
41
41
|
icon: [
|
|
42
42
|
...translateCenterClasses,
|
|
43
43
|
"flex",
|
|
@@ -60,7 +60,7 @@ var link = tv({
|
|
|
60
60
|
{
|
|
61
61
|
isBlock: true,
|
|
62
62
|
color: "foreground",
|
|
63
|
-
class: "hover:after:bg-foreground/
|
|
63
|
+
class: "hover:after:bg-foreground/10"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
isBlock: true,
|
|
@@ -101,7 +101,9 @@ var link = tv({
|
|
|
101
101
|
disableAnimation: false
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
|
+
var linkAnchorClasses = "flex mx-1 text-current self-center";
|
|
104
105
|
|
|
105
106
|
export {
|
|
106
|
-
link
|
|
107
|
+
link,
|
|
108
|
+
linkAnchorClasses
|
|
107
109
|
};
|
|
@@ -139,7 +139,7 @@ var avatar = (0, import_tailwind_variants.tv)({
|
|
|
139
139
|
"data-[loaded=true]:opacity-100"
|
|
140
140
|
],
|
|
141
141
|
fallback: [...translateCenterClasses, "flex", "items-center", "justify-center"],
|
|
142
|
-
name: [...translateCenterClasses, "font-
|
|
142
|
+
name: [...translateCenterClasses, "font-normal", "text-center", "text-inherit"],
|
|
143
143
|
icon: [
|
|
144
144
|
...translateCenterClasses,
|
|
145
145
|
"flex",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AvatarSlots, AvatarVariantProps, avatar } from './avatar.js';
|
|
2
2
|
export { AvatarGroupVariantProps, avatarGroup } from './avatar-group.js';
|
|
3
3
|
export { CardReturnType, CardSlots, CardVariantProps, card } from './card.js';
|
|
4
|
-
export { LinkVariantProps, link } from './link.js';
|
|
4
|
+
export { LinkVariantProps, link, linkAnchorClasses } from './link.js';
|
|
5
5
|
export { UserSlots, user } from './user.js';
|
|
6
6
|
export { ButtonVariantProps, button } from './button.js';
|
|
7
7
|
export { ButtonGroupVariantProps, buttonGroup } from './button-group.js';
|
package/dist/components/index.js
CHANGED
|
@@ -43,6 +43,7 @@ __export(components_exports, {
|
|
|
43
43
|
input: () => input,
|
|
44
44
|
kbd: () => kbd,
|
|
45
45
|
link: () => link,
|
|
46
|
+
linkAnchorClasses: () => linkAnchorClasses,
|
|
46
47
|
modal: () => modal,
|
|
47
48
|
navbar: () => navbar,
|
|
48
49
|
pagination: () => pagination,
|
|
@@ -186,7 +187,7 @@ var avatar = (0, import_tailwind_variants.tv)({
|
|
|
186
187
|
"data-[loaded=true]:opacity-100"
|
|
187
188
|
],
|
|
188
189
|
fallback: [...translateCenterClasses, "flex", "items-center", "justify-center"],
|
|
189
|
-
name: [...translateCenterClasses, "font-
|
|
190
|
+
name: [...translateCenterClasses, "font-normal", "text-center", "text-inherit"],
|
|
190
191
|
icon: [
|
|
191
192
|
...translateCenterClasses,
|
|
192
193
|
"flex",
|
|
@@ -625,7 +626,7 @@ var link = (0, import_tailwind_variants4.tv)({
|
|
|
625
626
|
{
|
|
626
627
|
isBlock: true,
|
|
627
628
|
color: "foreground",
|
|
628
|
-
class: "hover:after:bg-foreground/
|
|
629
|
+
class: "hover:after:bg-foreground/10"
|
|
629
630
|
},
|
|
630
631
|
{
|
|
631
632
|
isBlock: true,
|
|
@@ -666,6 +667,7 @@ var link = (0, import_tailwind_variants4.tv)({
|
|
|
666
667
|
disableAnimation: false
|
|
667
668
|
}
|
|
668
669
|
});
|
|
670
|
+
var linkAnchorClasses = "flex mx-1 text-current self-center";
|
|
669
671
|
|
|
670
672
|
// src/components/user.ts
|
|
671
673
|
var import_tailwind_variants5 = require("tailwind-variants");
|
|
@@ -1555,6 +1557,8 @@ var snippet = (0, import_tailwind_variants12.tv)({
|
|
|
1555
1557
|
slots: {
|
|
1556
1558
|
base: "inline-flex items-center justify-between rounded-md",
|
|
1557
1559
|
pre: "bg-transparent text-inherit font-mono whitespace-pre-wrap",
|
|
1560
|
+
content: "flex flex-col",
|
|
1561
|
+
symbol: "select-none",
|
|
1558
1562
|
copyButton: ["group", "relative", "z-10", "text-inherit", "data-[hover=true]:bg-transparent"],
|
|
1559
1563
|
copyIcon: [
|
|
1560
1564
|
"absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50"
|
|
@@ -6273,6 +6277,7 @@ var skeleton = (0, import_tailwind_variants38.tv)({
|
|
|
6273
6277
|
input,
|
|
6274
6278
|
kbd,
|
|
6275
6279
|
link,
|
|
6280
|
+
linkAnchorClasses,
|
|
6276
6281
|
modal,
|
|
6277
6282
|
navbar,
|
|
6278
6283
|
pagination,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "../chunk-G23VRPTF.mjs";
|
|
29
29
|
import {
|
|
30
30
|
snippet
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-5ZJFAFZA.mjs";
|
|
32
32
|
import {
|
|
33
33
|
spacer
|
|
34
34
|
} from "../chunk-3B4SYPW2.mjs";
|
|
@@ -45,8 +45,9 @@ import {
|
|
|
45
45
|
kbd
|
|
46
46
|
} from "../chunk-KUQBSI5S.mjs";
|
|
47
47
|
import {
|
|
48
|
-
link
|
|
49
|
-
|
|
48
|
+
link,
|
|
49
|
+
linkAnchorClasses
|
|
50
|
+
} from "../chunk-YQXYRWJP.mjs";
|
|
50
51
|
import {
|
|
51
52
|
modal
|
|
52
53
|
} from "../chunk-YMIOHWCD.mjs";
|
|
@@ -82,7 +83,7 @@ import {
|
|
|
82
83
|
} from "../chunk-UNMHV7HH.mjs";
|
|
83
84
|
import {
|
|
84
85
|
avatar
|
|
85
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-74YO36XH.mjs";
|
|
86
87
|
import {
|
|
87
88
|
badge
|
|
88
89
|
} from "../chunk-CPWIXBDM.mjs";
|
|
@@ -141,6 +142,7 @@ export {
|
|
|
141
142
|
input,
|
|
142
143
|
kbd,
|
|
143
144
|
link,
|
|
145
|
+
linkAnchorClasses,
|
|
144
146
|
modal,
|
|
145
147
|
navbar,
|
|
146
148
|
pagination,
|
|
@@ -75,6 +75,7 @@ declare const link: tailwind_variants.TVReturnType<{
|
|
|
75
75
|
true: string;
|
|
76
76
|
};
|
|
77
77
|
}, unknown>>;
|
|
78
|
+
declare const linkAnchorClasses = "flex mx-1 text-current self-center";
|
|
78
79
|
type LinkVariantProps = VariantProps<typeof link>;
|
|
79
80
|
|
|
80
|
-
export { LinkVariantProps, link };
|
|
81
|
+
export { LinkVariantProps, link, linkAnchorClasses };
|
package/dist/components/link.js
CHANGED
|
@@ -20,7 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/components/link.ts
|
|
21
21
|
var link_exports = {};
|
|
22
22
|
__export(link_exports, {
|
|
23
|
-
link: () => link
|
|
23
|
+
link: () => link,
|
|
24
|
+
linkAnchorClasses: () => linkAnchorClasses
|
|
24
25
|
});
|
|
25
26
|
module.exports = __toCommonJS(link_exports);
|
|
26
27
|
var import_tailwind_variants = require("tailwind-variants");
|
|
@@ -84,7 +85,7 @@ var link = (0, import_tailwind_variants.tv)({
|
|
|
84
85
|
{
|
|
85
86
|
isBlock: true,
|
|
86
87
|
color: "foreground",
|
|
87
|
-
class: "hover:after:bg-foreground/
|
|
88
|
+
class: "hover:after:bg-foreground/10"
|
|
88
89
|
},
|
|
89
90
|
{
|
|
90
91
|
isBlock: true,
|
|
@@ -125,7 +126,9 @@ var link = (0, import_tailwind_variants.tv)({
|
|
|
125
126
|
disableAnimation: false
|
|
126
127
|
}
|
|
127
128
|
});
|
|
129
|
+
var linkAnchorClasses = "flex mx-1 text-current self-center";
|
|
128
130
|
// Annotate the CommonJS export names for ESM import in node:
|
|
129
131
|
0 && (module.exports = {
|
|
130
|
-
link
|
|
132
|
+
link,
|
|
133
|
+
linkAnchorClasses
|
|
131
134
|
});
|
package/dist/components/link.mjs
CHANGED
|
@@ -5,16 +5,17 @@ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
|
5
5
|
/**
|
|
6
6
|
* Snippet wrapper **Tailwind Variants** component
|
|
7
7
|
*
|
|
8
|
-
* const {base, pre, copy} = snippet({...})
|
|
8
|
+
* const {base, content, pre, copy} = snippet({...})
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* <div className={base())}>
|
|
12
12
|
* <pre className={pre()}>
|
|
13
13
|
* // code snippet
|
|
14
|
+
* <div className={content()}>...</div>
|
|
14
15
|
* </pre>
|
|
15
16
|
* <button className={copy()}>
|
|
16
17
|
* <svg>
|
|
17
|
-
* // copy icon
|
|
18
|
+
* // copy icon / check icon
|
|
18
19
|
* </svg>
|
|
19
20
|
* </button>
|
|
20
21
|
* </div>
|
|
@@ -101,6 +102,8 @@ declare const snippet: tailwind_variants.TVReturnType<{
|
|
|
101
102
|
}, unknown, {
|
|
102
103
|
base: string;
|
|
103
104
|
pre: string;
|
|
105
|
+
content: string;
|
|
106
|
+
symbol: string;
|
|
104
107
|
copyButton: string[];
|
|
105
108
|
copyIcon: string[];
|
|
106
109
|
checkIcon: string[];
|
|
@@ -104,6 +104,8 @@ var snippet = (0, import_tailwind_variants.tv)({
|
|
|
104
104
|
slots: {
|
|
105
105
|
base: "inline-flex items-center justify-between rounded-md",
|
|
106
106
|
pre: "bg-transparent text-inherit font-mono whitespace-pre-wrap",
|
|
107
|
+
content: "flex flex-col",
|
|
108
|
+
symbol: "select-none",
|
|
107
109
|
copyButton: ["group", "relative", "z-10", "text-inherit", "data-[hover=true]:bg-transparent"],
|
|
108
110
|
copyIcon: [
|
|
109
111
|
"absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50"
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { VariantProps, tv } from 'tailwind-variants';
|
|
|
3
3
|
export { AvatarSlots, AvatarVariantProps, avatar } from './components/avatar.js';
|
|
4
4
|
export { AvatarGroupVariantProps, avatarGroup } from './components/avatar-group.js';
|
|
5
5
|
export { CardReturnType, CardSlots, CardVariantProps, card } from './components/card.js';
|
|
6
|
-
export { LinkVariantProps, link } from './components/link.js';
|
|
6
|
+
export { LinkVariantProps, link, linkAnchorClasses } from './components/link.js';
|
|
7
7
|
export { UserSlots, user } from './components/user.js';
|
|
8
8
|
export { ButtonVariantProps, button } from './components/button.js';
|
|
9
9
|
export { ButtonGroupVariantProps, buttonGroup } from './components/button-group.js';
|
package/dist/index.js
CHANGED
|
@@ -56,6 +56,7 @@ __export(src_exports, {
|
|
|
56
56
|
input: () => input,
|
|
57
57
|
kbd: () => kbd,
|
|
58
58
|
link: () => link,
|
|
59
|
+
linkAnchorClasses: () => linkAnchorClasses,
|
|
59
60
|
modal: () => modal,
|
|
60
61
|
navbar: () => navbar,
|
|
61
62
|
nextui: () => nextui,
|
|
@@ -218,7 +219,7 @@ var avatar = (0, import_tailwind_variants.tv)({
|
|
|
218
219
|
"data-[loaded=true]:opacity-100"
|
|
219
220
|
],
|
|
220
221
|
fallback: [...translateCenterClasses, "flex", "items-center", "justify-center"],
|
|
221
|
-
name: [...translateCenterClasses, "font-
|
|
222
|
+
name: [...translateCenterClasses, "font-normal", "text-center", "text-inherit"],
|
|
222
223
|
icon: [
|
|
223
224
|
...translateCenterClasses,
|
|
224
225
|
"flex",
|
|
@@ -657,7 +658,7 @@ var link = (0, import_tailwind_variants4.tv)({
|
|
|
657
658
|
{
|
|
658
659
|
isBlock: true,
|
|
659
660
|
color: "foreground",
|
|
660
|
-
class: "hover:after:bg-foreground/
|
|
661
|
+
class: "hover:after:bg-foreground/10"
|
|
661
662
|
},
|
|
662
663
|
{
|
|
663
664
|
isBlock: true,
|
|
@@ -698,6 +699,7 @@ var link = (0, import_tailwind_variants4.tv)({
|
|
|
698
699
|
disableAnimation: false
|
|
699
700
|
}
|
|
700
701
|
});
|
|
702
|
+
var linkAnchorClasses = "flex mx-1 text-current self-center";
|
|
701
703
|
|
|
702
704
|
// src/components/user.ts
|
|
703
705
|
var import_tailwind_variants5 = require("tailwind-variants");
|
|
@@ -1587,6 +1589,8 @@ var snippet = (0, import_tailwind_variants12.tv)({
|
|
|
1587
1589
|
slots: {
|
|
1588
1590
|
base: "inline-flex items-center justify-between rounded-md",
|
|
1589
1591
|
pre: "bg-transparent text-inherit font-mono whitespace-pre-wrap",
|
|
1592
|
+
content: "flex flex-col",
|
|
1593
|
+
symbol: "select-none",
|
|
1590
1594
|
copyButton: ["group", "relative", "z-10", "text-inherit", "data-[hover=true]:bg-transparent"],
|
|
1591
1595
|
copyIcon: [
|
|
1592
1596
|
"absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50"
|
|
@@ -6879,6 +6883,7 @@ var cn = (...classes) => (0, import_tailwind_variants39.cn)(classes)();
|
|
|
6879
6883
|
input,
|
|
6880
6884
|
kbd,
|
|
6881
6885
|
link,
|
|
6886
|
+
linkAnchorClasses,
|
|
6882
6887
|
modal,
|
|
6883
6888
|
navbar,
|
|
6884
6889
|
nextui,
|
package/dist/index.mjs
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-G23VRPTF.mjs";
|
|
29
29
|
import {
|
|
30
30
|
snippet
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5ZJFAFZA.mjs";
|
|
32
32
|
import {
|
|
33
33
|
spacer
|
|
34
34
|
} from "./chunk-3B4SYPW2.mjs";
|
|
@@ -45,8 +45,9 @@ import {
|
|
|
45
45
|
kbd
|
|
46
46
|
} from "./chunk-KUQBSI5S.mjs";
|
|
47
47
|
import {
|
|
48
|
-
link
|
|
49
|
-
|
|
48
|
+
link,
|
|
49
|
+
linkAnchorClasses
|
|
50
|
+
} from "./chunk-YQXYRWJP.mjs";
|
|
50
51
|
import {
|
|
51
52
|
modal
|
|
52
53
|
} from "./chunk-YMIOHWCD.mjs";
|
|
@@ -82,7 +83,7 @@ import {
|
|
|
82
83
|
} from "./chunk-UNMHV7HH.mjs";
|
|
83
84
|
import {
|
|
84
85
|
avatar
|
|
85
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-74YO36XH.mjs";
|
|
86
87
|
import {
|
|
87
88
|
badge
|
|
88
89
|
} from "./chunk-CPWIXBDM.mjs";
|
|
@@ -185,6 +186,7 @@ export {
|
|
|
185
186
|
input,
|
|
186
187
|
kbd,
|
|
187
188
|
link,
|
|
189
|
+
linkAnchorClasses,
|
|
188
190
|
modal,
|
|
189
191
|
navbar,
|
|
190
192
|
nextui,
|