@nextui-org/theme 0.0.0-dev-v2-20230415210725 → 0.0.0-dev-v2-20230420024722
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-64MHH33S.mjs +200 -0
- package/dist/{chunk-7MQD7UA2.mjs → chunk-B66JRVEO.mjs} +1 -1
- package/dist/{chunk-Y52EXP4A.mjs → chunk-BOKISNDL.mjs} +4 -4
- package/dist/{chunk-KWYOTFZ4.mjs → chunk-KVW35URF.mjs} +1 -1
- package/dist/{chunk-XSFNJVJG.mjs → chunk-OCKSB2YQ.mjs} +11 -10
- package/dist/{chunk-UXBWU2G4.mjs → chunk-OS73LTIZ.mjs} +2 -2
- package/dist/colors/index.js +1 -1
- package/dist/colors/index.mjs +3 -3
- package/dist/colors/semantic.js +1 -1
- package/dist/colors/semantic.mjs +2 -2
- package/dist/colors.js +1 -1
- package/dist/colors.mjs +3 -3
- package/dist/components/avatar.mjs +1 -1
- package/dist/components/badge.mjs +1 -1
- package/dist/components/button.mjs +1 -1
- package/dist/components/chip.mjs +1 -1
- package/dist/components/code.mjs +1 -1
- package/dist/components/dropdown-item.js +1 -1
- package/dist/components/dropdown-item.mjs +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +202 -3
- package/dist/components/index.mjs +46 -42
- package/dist/components/link.mjs +1 -1
- package/dist/components/navbar.d.ts +155 -0
- package/dist/components/navbar.js +224 -0
- package/dist/components/navbar.mjs +6 -0
- package/dist/components/pagination.mjs +1 -1
- package/dist/components/popover.mjs +1 -1
- package/dist/components/snippet.mjs +1 -1
- package/dist/components/toggle.js +2 -2
- package/dist/components/toggle.mjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +208 -8
- package/dist/index.mjs +62 -58
- package/dist/plugin.js +3 -2
- package/dist/plugin.mjs +6 -6
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-XUHE5FW2.mjs → chunk-NP4SOC4S.mjs} +0 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
// src/components/navbar.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var navbar = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
base: [
|
|
6
|
+
"relative",
|
|
7
|
+
"z-50",
|
|
8
|
+
"w-full",
|
|
9
|
+
"h-auto",
|
|
10
|
+
"flex",
|
|
11
|
+
"items-center",
|
|
12
|
+
"justify-center",
|
|
13
|
+
"border-b",
|
|
14
|
+
"border-neutral-100",
|
|
15
|
+
"shadow-md"
|
|
16
|
+
],
|
|
17
|
+
wrapper: [
|
|
18
|
+
"flex",
|
|
19
|
+
"flex-row",
|
|
20
|
+
"flex-nowrap",
|
|
21
|
+
"items-center",
|
|
22
|
+
"justify-between",
|
|
23
|
+
"w-full",
|
|
24
|
+
"h-[var(--navbar-height)]",
|
|
25
|
+
"px-6"
|
|
26
|
+
],
|
|
27
|
+
toggle: [
|
|
28
|
+
"group",
|
|
29
|
+
"flex",
|
|
30
|
+
"items-center",
|
|
31
|
+
"justify-center",
|
|
32
|
+
"w-6",
|
|
33
|
+
"h-10",
|
|
34
|
+
"outline-none",
|
|
35
|
+
"rounded-sm",
|
|
36
|
+
"data-[focus-visible=true]:outline-none",
|
|
37
|
+
"data-[focus-visible=true]:ring-2",
|
|
38
|
+
"data-[focus-visible=true]:ring-primary",
|
|
39
|
+
"data-[focus-visible=true]:ring-offset-2",
|
|
40
|
+
"data-[focus-visible=true]:ring-offset-background",
|
|
41
|
+
"data-[focus-visible=true]:dark:ring-offset-background-dark"
|
|
42
|
+
],
|
|
43
|
+
srOnly: ["sr-only"],
|
|
44
|
+
toggleIcon: [
|
|
45
|
+
"w-full",
|
|
46
|
+
"h-full",
|
|
47
|
+
"pointer-events-none",
|
|
48
|
+
"flex",
|
|
49
|
+
"flex-col",
|
|
50
|
+
"items-center",
|
|
51
|
+
"justify-center",
|
|
52
|
+
"text-foreground",
|
|
53
|
+
"group-data-[pressed=true]:opacity-70",
|
|
54
|
+
"transition-opacity",
|
|
55
|
+
"before:content-['']",
|
|
56
|
+
"before:block",
|
|
57
|
+
"before:h-px",
|
|
58
|
+
"before:w-6",
|
|
59
|
+
"before:bg-current",
|
|
60
|
+
"before:transition-transform",
|
|
61
|
+
"before:duration-150",
|
|
62
|
+
"before:-translate-y-1",
|
|
63
|
+
"before:rotate-0",
|
|
64
|
+
"group-data-[open=true]:before:translate-y-px",
|
|
65
|
+
"group-data-[open=true]:before:rotate-45",
|
|
66
|
+
"after:content-['']",
|
|
67
|
+
"after:block",
|
|
68
|
+
"after:h-px",
|
|
69
|
+
"after:w-6",
|
|
70
|
+
"after:bg-current",
|
|
71
|
+
"after:transition-transform",
|
|
72
|
+
"after:duration-150",
|
|
73
|
+
"after:translate-y-1",
|
|
74
|
+
"after:rotate-0",
|
|
75
|
+
"group-data-[open=true]:after:translate-y-0",
|
|
76
|
+
"group-data-[open=true]:after:-rotate-45"
|
|
77
|
+
],
|
|
78
|
+
brand: [
|
|
79
|
+
"flex",
|
|
80
|
+
"flex-row",
|
|
81
|
+
"flex-nowrap",
|
|
82
|
+
"justify-start",
|
|
83
|
+
"bg-transparent",
|
|
84
|
+
"items-center",
|
|
85
|
+
"no-underline",
|
|
86
|
+
"text-base",
|
|
87
|
+
"whitespace-nowrap",
|
|
88
|
+
"box-border"
|
|
89
|
+
],
|
|
90
|
+
content: ["flex", "h-full", "flex-row", "flex-nowrap", "items-center", "gap-4"],
|
|
91
|
+
item: [
|
|
92
|
+
"text-base",
|
|
93
|
+
"whitespace-nowrap",
|
|
94
|
+
"box-border",
|
|
95
|
+
"data-[active=true]:font-semibold"
|
|
96
|
+
],
|
|
97
|
+
menu: [
|
|
98
|
+
"z-50",
|
|
99
|
+
"hidden",
|
|
100
|
+
"px-6",
|
|
101
|
+
"pt-4",
|
|
102
|
+
"absolute",
|
|
103
|
+
"max-w-full",
|
|
104
|
+
"top-[calc(var(--navbar-height)_+_1px)]",
|
|
105
|
+
"h-[calc(100vh_-_var(--navbar-height)_-_1px)]",
|
|
106
|
+
"inset-x-0",
|
|
107
|
+
"bottom-0",
|
|
108
|
+
"w-screen",
|
|
109
|
+
"bg-background",
|
|
110
|
+
"data-[open=true]:flex",
|
|
111
|
+
"flex-col",
|
|
112
|
+
"gap-3",
|
|
113
|
+
"overflow-y-auto"
|
|
114
|
+
],
|
|
115
|
+
menuItem: ["text-lg"]
|
|
116
|
+
},
|
|
117
|
+
variants: {
|
|
118
|
+
position: {
|
|
119
|
+
static: {
|
|
120
|
+
base: "static"
|
|
121
|
+
},
|
|
122
|
+
sticky: {},
|
|
123
|
+
floating: {
|
|
124
|
+
base: "shadow-none border-b-0",
|
|
125
|
+
wrapper: "mt-4 mx-8 shadow-md border border-neutral-100 rounded-xl",
|
|
126
|
+
menu: "mt-5 mx-8 border border-neutral-100 rounded-xl max-w-[calc(100%_-_4rem)]"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
maxWidth: {
|
|
130
|
+
sm: {
|
|
131
|
+
wrapper: "max-w-[640px]"
|
|
132
|
+
},
|
|
133
|
+
md: {
|
|
134
|
+
wrapper: "max-w-[768px]"
|
|
135
|
+
},
|
|
136
|
+
lg: {
|
|
137
|
+
wrapper: "max-w-[1024px]"
|
|
138
|
+
},
|
|
139
|
+
xl: {
|
|
140
|
+
wrapper: "max-w-[1280px]"
|
|
141
|
+
},
|
|
142
|
+
"2xl": {
|
|
143
|
+
wrapper: "max-w-[1536px]"
|
|
144
|
+
},
|
|
145
|
+
full: {
|
|
146
|
+
wrapper: "max-w-full"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
hideOnScroll: {
|
|
150
|
+
true: {
|
|
151
|
+
base: [
|
|
152
|
+
"sticky",
|
|
153
|
+
"top-0",
|
|
154
|
+
"inset-x-0"
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
isBordered: {
|
|
159
|
+
true: {}
|
|
160
|
+
},
|
|
161
|
+
isBlurred: {
|
|
162
|
+
false: {
|
|
163
|
+
base: "bg-background"
|
|
164
|
+
},
|
|
165
|
+
true: {}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
defaultVariants: {
|
|
169
|
+
maxWidth: "lg",
|
|
170
|
+
position: "sticky",
|
|
171
|
+
isBlurred: true
|
|
172
|
+
},
|
|
173
|
+
compoundVariants: [
|
|
174
|
+
{
|
|
175
|
+
position: ["sticky", "floating"],
|
|
176
|
+
class: {
|
|
177
|
+
base: "sticky top-0 inset-x-0"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
isBlurred: true,
|
|
182
|
+
position: ["static", "sticky"],
|
|
183
|
+
class: {
|
|
184
|
+
base: "backdrop-blur-xl backdrop-saturate-200 bg-background/50 data-[menu-open=true]:bg-background"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
isBlurred: true,
|
|
189
|
+
position: "floating",
|
|
190
|
+
class: {
|
|
191
|
+
base: "bg-gradient-to-b from-background to-background/50",
|
|
192
|
+
wrapper: "backdrop-blur-xl backdrop-saturate-200 bg-background/50 data-[menu-open=true]:bg-background"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
export {
|
|
199
|
+
navbar
|
|
200
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
swapColorValues
|
|
3
|
-
} from "./chunk-37PIXVP4.mjs";
|
|
4
1
|
import {
|
|
5
2
|
commonColors
|
|
6
3
|
} from "./chunk-CRCBVLUP.mjs";
|
|
4
|
+
import {
|
|
5
|
+
swapColorValues
|
|
6
|
+
} from "./chunk-37PIXVP4.mjs";
|
|
7
7
|
|
|
8
8
|
// src/colors/semantic.ts
|
|
9
9
|
import twColors from "tailwindcss/colors";
|
|
@@ -38,7 +38,7 @@ var base = {
|
|
|
38
38
|
},
|
|
39
39
|
dark: {
|
|
40
40
|
background: {
|
|
41
|
-
DEFAULT: "#
|
|
41
|
+
DEFAULT: "#0B0B0C"
|
|
42
42
|
},
|
|
43
43
|
foreground: {
|
|
44
44
|
DEFAULT: "#ECEDEE"
|
|
@@ -26,7 +26,7 @@ var dropdownItem = tv({
|
|
|
26
26
|
],
|
|
27
27
|
wrapper: "w-full flex flex-col items-start justify-center",
|
|
28
28
|
title: "flex-1",
|
|
29
|
-
description: ["text-xs", "text-neutral-500", "
|
|
29
|
+
description: ["text-xs", "w-full", "text-neutral-500", "group-hover:text-current"],
|
|
30
30
|
selectedIcon: ["text-inherit", "w-3", "h-3", "flex-shrink-0"],
|
|
31
31
|
shortcut: [
|
|
32
32
|
"px-1",
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
animations
|
|
3
|
+
} from "./chunk-DMASP6FA.mjs";
|
|
1
4
|
import {
|
|
2
5
|
utilities
|
|
3
6
|
} from "./chunk-XLATS5QU.mjs";
|
|
4
|
-
import {
|
|
5
|
-
baseStyles
|
|
6
|
-
} from "./chunk-INZK6TTL.mjs";
|
|
7
7
|
import {
|
|
8
8
|
semanticColors
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BOKISNDL.mjs";
|
|
10
|
+
import {
|
|
11
|
+
commonColors
|
|
12
|
+
} from "./chunk-CRCBVLUP.mjs";
|
|
10
13
|
import {
|
|
11
14
|
removeDefaultKeys
|
|
12
15
|
} from "./chunk-37PIXVP4.mjs";
|
|
13
16
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
commonColors
|
|
18
|
-
} from "./chunk-CRCBVLUP.mjs";
|
|
17
|
+
baseStyles
|
|
18
|
+
} from "./chunk-INZK6TTL.mjs";
|
|
19
19
|
|
|
20
20
|
// src/plugin.ts
|
|
21
21
|
import Color from "color";
|
|
@@ -125,7 +125,8 @@ var corePlugin = (config = {}, defaultTheme) => {
|
|
|
125
125
|
},
|
|
126
126
|
transitionDuration: {
|
|
127
127
|
0: "0ms",
|
|
128
|
-
250: "250ms"
|
|
128
|
+
250: "250ms",
|
|
129
|
+
400: "400ms"
|
|
129
130
|
},
|
|
130
131
|
transitionTimingFunction: {
|
|
131
132
|
"soft-spring": "cubic-bezier(0.155, 1.105, 0.295, 1.12)"
|
|
@@ -147,8 +147,8 @@ var toggle = tv({
|
|
|
147
147
|
thumb: "transition-none"
|
|
148
148
|
},
|
|
149
149
|
false: {
|
|
150
|
-
wrapper: "transition-background
|
|
151
|
-
thumb: "transition-all
|
|
150
|
+
wrapper: "transition-background",
|
|
151
|
+
thumb: "transition-all",
|
|
152
152
|
startIcon: [
|
|
153
153
|
"opacity-0",
|
|
154
154
|
"scale-50",
|
package/dist/colors/index.js
CHANGED
package/dist/colors/index.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colors
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-B66JRVEO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
semanticColors
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-37PIXVP4.mjs";
|
|
6
|
+
} from "../chunk-BOKISNDL.mjs";
|
|
8
7
|
import "../chunk-M63AFAHO.mjs";
|
|
9
8
|
import {
|
|
10
9
|
commonColors
|
|
@@ -16,6 +15,7 @@ import "../chunk-Y4YW5MKL.mjs";
|
|
|
16
15
|
import "../chunk-KZJBCC2H.mjs";
|
|
17
16
|
import "../chunk-T3GWIVAM.mjs";
|
|
18
17
|
import "../chunk-OR5PUD24.mjs";
|
|
18
|
+
import "../chunk-37PIXVP4.mjs";
|
|
19
19
|
export {
|
|
20
20
|
colors,
|
|
21
21
|
commonColors,
|
package/dist/colors/semantic.js
CHANGED
package/dist/colors/semantic.mjs
CHANGED
|
@@ -2,8 +2,7 @@ import {
|
|
|
2
2
|
semanticColors,
|
|
3
3
|
semanticColorsDark,
|
|
4
4
|
semanticColorsLight
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-37PIXVP4.mjs";
|
|
5
|
+
} from "../chunk-BOKISNDL.mjs";
|
|
7
6
|
import "../chunk-CRCBVLUP.mjs";
|
|
8
7
|
import "../chunk-DCEG5LGX.mjs";
|
|
9
8
|
import "../chunk-L2OL7R23.mjs";
|
|
@@ -12,6 +11,7 @@ import "../chunk-Y4YW5MKL.mjs";
|
|
|
12
11
|
import "../chunk-KZJBCC2H.mjs";
|
|
13
12
|
import "../chunk-T3GWIVAM.mjs";
|
|
14
13
|
import "../chunk-OR5PUD24.mjs";
|
|
14
|
+
import "../chunk-37PIXVP4.mjs";
|
|
15
15
|
export {
|
|
16
16
|
semanticColors,
|
|
17
17
|
semanticColorsDark,
|
package/dist/colors.js
CHANGED
package/dist/colors.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "./chunk-WQEDQHKX.mjs";
|
|
2
2
|
import {
|
|
3
3
|
colors
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-B66JRVEO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
semanticColors
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-37PIXVP4.mjs";
|
|
7
|
+
} from "./chunk-BOKISNDL.mjs";
|
|
9
8
|
import "./chunk-M63AFAHO.mjs";
|
|
10
9
|
import {
|
|
11
10
|
commonColors
|
|
@@ -17,6 +16,7 @@ import "./chunk-Y4YW5MKL.mjs";
|
|
|
17
16
|
import "./chunk-KZJBCC2H.mjs";
|
|
18
17
|
import "./chunk-T3GWIVAM.mjs";
|
|
19
18
|
import "./chunk-OR5PUD24.mjs";
|
|
19
|
+
import "./chunk-37PIXVP4.mjs";
|
|
20
20
|
export {
|
|
21
21
|
colors,
|
|
22
22
|
commonColors,
|
package/dist/components/chip.mjs
CHANGED
package/dist/components/code.mjs
CHANGED
|
@@ -50,7 +50,7 @@ var dropdownItem = (0, import_tailwind_variants.tv)({
|
|
|
50
50
|
],
|
|
51
51
|
wrapper: "w-full flex flex-col items-start justify-center",
|
|
52
52
|
title: "flex-1",
|
|
53
|
-
description: ["text-xs", "text-neutral-500", "
|
|
53
|
+
description: ["text-xs", "w-full", "text-neutral-500", "group-hover:text-current"],
|
|
54
54
|
selectedIcon: ["text-inherit", "w-3", "h-3", "flex-shrink-0"],
|
|
55
55
|
shortcut: [
|
|
56
56
|
"px-1",
|
|
@@ -29,5 +29,6 @@ export { DropdownSectionSlots, DropdownSectionVariantProps, dropdownSection } fr
|
|
|
29
29
|
export { dropdownMenu } from './dropdown-menu.js';
|
|
30
30
|
export { ImageSlots, ImageVariantProps, image } from './image.js';
|
|
31
31
|
export { ModalSlots, ModalVariantProps, modal } from './modal.js';
|
|
32
|
+
export { NavbarSlots, NavbarVariantProps, navbar } from './navbar.js';
|
|
32
33
|
import 'tailwind-variants';
|
|
33
34
|
import 'tailwind-variants/dist/config';
|