@enya-learning/nova 0.4.0 → 0.4.2
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/chunks/{button-npy7isi3nsvlhf86.js → button-kvgr8g13fe959ju0.js} +19 -19
- package/dist/chunks/{button-npy7isi3nsvlhf86.js.map → button-kvgr8g13fe959ju0.js.map} +1 -1
- package/dist/chunks/vendor-utils-egkaeebaqpft6cxj.js +473 -0
- package/dist/chunks/vendor-utils-egkaeebaqpft6cxj.js.map +1 -0
- package/dist/components/button.js +1 -1
- package/dist/components/enya-logo.js +1 -1
- package/dist/index.js +6782 -7036
- package/dist/index.js.map +1 -1
- package/package.json +26 -11
- package/changelog.md +0 -44
- package/components.json +0 -23
- package/dist/chunks/vendor-base-ui-efqwzv4oinwg1f0d.js +0 -16049
- package/dist/chunks/vendor-base-ui-efqwzv4oinwg1f0d.js.map +0 -1
- package/eslint.config.js +0 -30
- package/plopfile.mjs +0 -49
- package/src/components/.gitkeep +0 -0
- package/src/components/accordion/accordion.mdx +0 -83
- package/src/components/accordion/accordion.tsx +0 -81
- package/src/components/accordion/index.ts +0 -1
- package/src/components/alert/alert.tsx +0 -76
- package/src/components/alert/index.ts +0 -1
- package/src/components/alert-dialog/alert-dialog.tsx +0 -187
- package/src/components/alert-dialog/index.ts +0 -1
- package/src/components/aspect-ratio/aspect-ratio.tsx +0 -22
- package/src/components/aspect-ratio/index.ts +0 -1
- package/src/components/avatar/avatar.tsx +0 -107
- package/src/components/avatar/index.ts +0 -1
- package/src/components/badge/badge.tsx +0 -52
- package/src/components/badge/index.ts +0 -1
- package/src/components/breadcrumb/breadcrumb.tsx +0 -122
- package/src/components/breadcrumb/index.ts +0 -1
- package/src/components/button/button.mdx +0 -255
- package/src/components/button/button.tsx +0 -59
- package/src/components/button/index.ts +0 -1
- package/src/components/button-group/button-group.tsx +0 -87
- package/src/components/button-group/index.ts +0 -1
- package/src/components/calendar/calendar.tsx +0 -228
- package/src/components/calendar/index.ts +0 -1
- package/src/components/card/card.tsx +0 -100
- package/src/components/card/index.ts +0 -1
- package/src/components/carousel/carousel.tsx +0 -243
- package/src/components/carousel/index.ts +0 -1
- package/src/components/chart/chart.tsx +0 -371
- package/src/components/chart/index.ts +0 -1
- package/src/components/checkbox/checkbox.tsx +0 -28
- package/src/components/checkbox/index.ts +0 -1
- package/src/components/collapsible/collapsible.tsx +0 -19
- package/src/components/collapsible/index.ts +0 -1
- package/src/components/combobox/combobox.tsx +0 -298
- package/src/components/combobox/index.ts +0 -1
- package/src/components/command/command.tsx +0 -193
- package/src/components/command/index.ts +0 -1
- package/src/components/context-menu/context-menu.tsx +0 -272
- package/src/components/context-menu/index.ts +0 -1
- package/src/components/dialog/dialog.tsx +0 -157
- package/src/components/dialog/index.ts +0 -1
- package/src/components/direction/direction.tsx +0 -4
- package/src/components/direction/index.ts +0 -1
- package/src/components/drawer/drawer.tsx +0 -134
- package/src/components/drawer/index.ts +0 -1
- package/src/components/dropdown-menu/dropdown-menu.tsx +0 -270
- package/src/components/dropdown-menu/index.ts +0 -1
- package/src/components/empty/empty.tsx +0 -104
- package/src/components/empty/index.ts +0 -1
- package/src/components/enya-logo/enya-logo.mdx +0 -174
- package/src/components/enya-logo/enya-logo.tsx +0 -383
- package/src/components/enya-logo/index.ts +0 -1
- package/src/components/field/field.tsx +0 -236
- package/src/components/field/index.ts +0 -1
- package/src/components/hover-card/hover-card.tsx +0 -51
- package/src/components/hover-card/index.ts +0 -1
- package/src/components/input/index.ts +0 -1
- package/src/components/input/input.tsx +0 -20
- package/src/components/input-group/index.ts +0 -1
- package/src/components/input-group/input-group.tsx +0 -157
- package/src/components/input-otp/index.ts +0 -1
- package/src/components/input-otp/input-otp.tsx +0 -84
- package/src/components/item/index.ts +0 -1
- package/src/components/item/item.tsx +0 -201
- package/src/components/kbd/index.ts +0 -1
- package/src/components/kbd/kbd.tsx +0 -26
- package/src/components/label/index.ts +0 -1
- package/src/components/label/label.tsx +0 -20
- package/src/components/menubar/index.ts +0 -1
- package/src/components/menubar/menubar.tsx +0 -281
- package/src/components/native-select/index.ts +0 -1
- package/src/components/native-select/native-select.tsx +0 -65
- package/src/components/navigation-menu/index.ts +0 -1
- package/src/components/navigation-menu/navigation-menu.tsx +0 -171
- package/src/components/pagination/index.ts +0 -1
- package/src/components/pagination/pagination.tsx +0 -133
- package/src/components/popover/index.ts +0 -1
- package/src/components/popover/popover.tsx +0 -88
- package/src/components/progress/index.ts +0 -1
- package/src/components/progress/progress.tsx +0 -83
- package/src/components/radio-group/index.ts +0 -1
- package/src/components/radio-group/radio-group.tsx +0 -36
- package/src/components/resizable/index.ts +0 -1
- package/src/components/resizable/resizable.tsx +0 -50
- package/src/components/scroll-area/index.ts +0 -1
- package/src/components/scroll-area/scroll-area.tsx +0 -53
- package/src/components/select/index.ts +0 -1
- package/src/components/select/select.tsx +0 -205
- package/src/components/separator/index.ts +0 -1
- package/src/components/separator/separator.tsx +0 -23
- package/src/components/sheet/index.ts +0 -1
- package/src/components/sheet/sheet.tsx +0 -137
- package/src/components/sidebar/index.ts +0 -1
- package/src/components/sidebar/sidebar.tsx +0 -722
- package/src/components/skeleton/index.ts +0 -1
- package/src/components/skeleton/skeleton.tsx +0 -13
- package/src/components/slider/index.ts +0 -1
- package/src/components/slider/slider.tsx +0 -52
- package/src/components/sonner/index.ts +0 -1
- package/src/components/sonner/sonner.tsx +0 -45
- package/src/components/spinner/index.ts +0 -1
- package/src/components/spinner/spinner.tsx +0 -15
- package/src/components/switch/index.ts +0 -1
- package/src/components/switch/switch.tsx +0 -30
- package/src/components/table/index.ts +0 -1
- package/src/components/table/table.tsx +0 -116
- package/src/components/tabs/index.ts +0 -1
- package/src/components/tabs/tabs.tsx +0 -80
- package/src/components/textarea/index.ts +0 -1
- package/src/components/textarea/textarea.tsx +0 -18
- package/src/components/toggle/index.ts +0 -1
- package/src/components/toggle/toggle.tsx +0 -45
- package/src/components/toggle-group/index.ts +0 -1
- package/src/components/toggle-group/toggle-group.tsx +0 -87
- package/src/components/tooltip/index.ts +0 -1
- package/src/components/tooltip/tooltip.tsx +0 -64
- package/src/hooks/use-mobile.ts +0 -21
- package/src/index.ts +0 -58
- package/src/lib/.gitkeep +0 -0
- package/src/lib/utils.ts +0 -6
- package/src/styles/nova-binding.css +0 -290
- package/src/styles/nova.css +0 -58
- package/src/styles/theme-nova.css +0 -201
- package/src/styles/typography.css +0 -215
- package/src/utils/index.ts +0 -1
- package/templates/component/component.tsx.hbs +0 -16
- package/templates/component/index.ts.hbs +0 -1
- package/templates/component/stories.tsx.hbs +0 -13
- package/tsconfig.json +0 -18
- package/tsconfig.lint.json +0 -14
- package/vite.config.ts +0 -101
- /package/{Readme.md → README.md} +0 -0
- /package/{src → dist}/styles/globals.css +0 -0
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
/* Geist-style typography utilities.
|
|
2
|
-
Each class pre-sets font-size, line-height, letter-spacing, and font-weight.
|
|
3
|
-
All classes work with Tailwind variants: md:text-heading-32, hover:text-label-14, etc. */
|
|
4
|
-
|
|
5
|
-
/* ─── Headings ─────────────────────────────────────────────────────────────── */
|
|
6
|
-
|
|
7
|
-
@utility text-heading-72 {
|
|
8
|
-
font-size: 4.5rem;
|
|
9
|
-
line-height: 4.5rem;
|
|
10
|
-
letter-spacing: -0.02em;
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@utility text-heading-64 {
|
|
15
|
-
font-size: 4rem;
|
|
16
|
-
line-height: 4rem;
|
|
17
|
-
letter-spacing: -0.02em;
|
|
18
|
-
font-weight: 600;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@utility text-heading-56 {
|
|
22
|
-
font-size: 3.5rem;
|
|
23
|
-
line-height: 3.5rem;
|
|
24
|
-
letter-spacing: -0.02em;
|
|
25
|
-
font-weight: 600;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@utility text-heading-48 {
|
|
29
|
-
font-size: 3rem;
|
|
30
|
-
line-height: 3.5rem;
|
|
31
|
-
letter-spacing: -0.02em;
|
|
32
|
-
font-weight: 600;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@utility text-heading-40 {
|
|
36
|
-
font-size: 2.5rem;
|
|
37
|
-
line-height: 3rem;
|
|
38
|
-
letter-spacing: -0.02em;
|
|
39
|
-
font-weight: 600;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@utility text-heading-32 {
|
|
43
|
-
font-size: 2rem;
|
|
44
|
-
line-height: 2.5rem;
|
|
45
|
-
letter-spacing: -0.02em;
|
|
46
|
-
font-weight: 600;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@utility text-heading-24 {
|
|
50
|
-
font-size: 1.5rem;
|
|
51
|
-
line-height: 2rem;
|
|
52
|
-
letter-spacing: -0.02em;
|
|
53
|
-
font-weight: 600;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@utility text-heading-20 {
|
|
57
|
-
font-size: 1.25rem;
|
|
58
|
-
line-height: 1.625;
|
|
59
|
-
letter-spacing: -0.02em;
|
|
60
|
-
font-weight: 600;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@utility text-heading-16 {
|
|
64
|
-
font-size: 1rem;
|
|
65
|
-
line-height: 1.5;
|
|
66
|
-
letter-spacing: -0.02em;
|
|
67
|
-
font-weight: 600;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@utility text-heading-14 {
|
|
71
|
-
font-size: 0.875rem;
|
|
72
|
-
line-height: 1.25;
|
|
73
|
-
font-weight: 600;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* ─── Buttons ──────────────────────────────────────────────────────────────── */
|
|
77
|
-
|
|
78
|
-
@utility text-button-16 {
|
|
79
|
-
font-size: 1rem;
|
|
80
|
-
line-height: 1.5;
|
|
81
|
-
letter-spacing: -0.01em;
|
|
82
|
-
font-weight: 500;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@utility text-button-14 {
|
|
86
|
-
font-size: 0.875rem;
|
|
87
|
-
line-height: 1.4286;
|
|
88
|
-
letter-spacing: -0.01em;
|
|
89
|
-
font-weight: 500;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
@utility text-button-12 {
|
|
93
|
-
font-size: 0.75rem;
|
|
94
|
-
line-height: 1.3333;
|
|
95
|
-
letter-spacing: 0;
|
|
96
|
-
font-weight: 500;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/* ─── Labels ───────────────────────────────────────────────────────────────── */
|
|
100
|
-
|
|
101
|
-
@utility text-label-20 {
|
|
102
|
-
font-size: 1.25rem;
|
|
103
|
-
line-height: 1.4;
|
|
104
|
-
letter-spacing: -0.01em;
|
|
105
|
-
font-weight: 500;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@utility text-label-18 {
|
|
109
|
-
font-size: 1.125rem;
|
|
110
|
-
line-height: 1.3333;
|
|
111
|
-
letter-spacing: -0.01em;
|
|
112
|
-
font-weight: 500;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@utility text-label-16 {
|
|
116
|
-
font-size: 1rem;
|
|
117
|
-
line-height: 1.5;
|
|
118
|
-
letter-spacing: -0.01em;
|
|
119
|
-
font-weight: 500;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@utility text-label-14 {
|
|
123
|
-
font-size: 0.875rem;
|
|
124
|
-
line-height: 1.4286;
|
|
125
|
-
letter-spacing: -0.01em;
|
|
126
|
-
font-weight: 500;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@utility text-label-14-mono {
|
|
130
|
-
font-size: 0.875rem;
|
|
131
|
-
line-height: 1.4286;
|
|
132
|
-
letter-spacing: 0;
|
|
133
|
-
font-weight: 500;
|
|
134
|
-
font-family: var(--font-mono);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
@utility text-label-13 {
|
|
138
|
-
font-size: 0.8125rem;
|
|
139
|
-
line-height: 1.2308;
|
|
140
|
-
letter-spacing: 0;
|
|
141
|
-
font-weight: 500;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
@utility text-label-13-mono {
|
|
145
|
-
font-size: 0.8125rem;
|
|
146
|
-
line-height: 1.2308;
|
|
147
|
-
letter-spacing: 0;
|
|
148
|
-
font-weight: 500;
|
|
149
|
-
font-family: var(--font-mono);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
@utility text-label-12 {
|
|
153
|
-
font-size: 0.75rem;
|
|
154
|
-
line-height: 1.3333;
|
|
155
|
-
letter-spacing: 0;
|
|
156
|
-
font-weight: 500;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
@utility text-label-12-mono {
|
|
160
|
-
font-size: 0.75rem;
|
|
161
|
-
line-height: 1.3333;
|
|
162
|
-
letter-spacing: 0;
|
|
163
|
-
font-weight: 500;
|
|
164
|
-
font-family: var(--font-mono);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/* ─── Copy ─────────────────────────────────────────────────────────────────── */
|
|
168
|
-
|
|
169
|
-
@utility text-copy-24 {
|
|
170
|
-
font-size: 1.5rem;
|
|
171
|
-
line-height: 1.6667;
|
|
172
|
-
font-weight: 400;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
@utility text-copy-20 {
|
|
176
|
-
font-size: 1.25rem;
|
|
177
|
-
line-height: 1.6;
|
|
178
|
-
font-weight: 400;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
@utility text-copy-18 {
|
|
182
|
-
font-size: 1.125rem;
|
|
183
|
-
line-height: 1.5556;
|
|
184
|
-
font-weight: 400;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
@utility text-copy-16 {
|
|
188
|
-
font-size: 1rem;
|
|
189
|
-
line-height: 1.625;
|
|
190
|
-
font-weight: 400;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
@utility text-copy-14 {
|
|
194
|
-
font-size: 0.875rem;
|
|
195
|
-
line-height: 1.7143;
|
|
196
|
-
font-weight: 400;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
@utility text-copy-13 {
|
|
200
|
-
font-size: 0.8125rem;
|
|
201
|
-
line-height: 1.5385;
|
|
202
|
-
font-weight: 400;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
@utility text-copy-13-mono {
|
|
206
|
-
font-size: 0.8125rem;
|
|
207
|
-
line-height: 1.5385;
|
|
208
|
-
font-weight: 400;
|
|
209
|
-
font-family: var(--font-mono);
|
|
210
|
-
}
|
|
211
|
-
@utility text-copy-12 {
|
|
212
|
-
font-size: 0.75rem;
|
|
213
|
-
line-height: 150%;
|
|
214
|
-
font-weight: 400;
|
|
215
|
-
}
|
package/src/utils/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../lib/utils"
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { cn } from "../../lib/utils"
|
|
2
|
-
|
|
3
|
-
function {{pascalCase name}}({
|
|
4
|
-
className,
|
|
5
|
-
...props
|
|
6
|
-
}: React.ComponentProps<"div">) {
|
|
7
|
-
return (
|
|
8
|
-
<div
|
|
9
|
-
data-slot="{{kebabCase name}}"
|
|
10
|
-
className={cn("", className)}
|
|
11
|
-
{...props}
|
|
12
|
-
/>
|
|
13
|
-
)
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { {{pascalCase name}} }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./{{kebabCase name}}"
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
-
import { {{pascalCase name}} } from "./{{kebabCase name}}"
|
|
3
|
-
|
|
4
|
-
const meta: Meta<typeof {{pascalCase name}}> = {
|
|
5
|
-
title: "Components/{{pascalCase name}}",
|
|
6
|
-
component: {{pascalCase name}},
|
|
7
|
-
tags: ["autodocs"],
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export default meta
|
|
11
|
-
type Story = StoryObj<typeof meta>
|
|
12
|
-
|
|
13
|
-
export const Default: Story = {}
|
package/tsconfig.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
5
|
-
"module": "ESNext",
|
|
6
|
-
"moduleResolution": "bundler",
|
|
7
|
-
"jsx": "react-jsx",
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"noEmit": true,
|
|
11
|
-
"allowArbitraryExtensions": true,
|
|
12
|
-
"paths": {
|
|
13
|
-
"@/*": ["./src/*"]
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"include": ["."],
|
|
17
|
-
"exclude": ["node_modules", "dist"]
|
|
18
|
-
}
|
package/tsconfig.lint.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
5
|
-
"module": "ESNext",
|
|
6
|
-
"moduleResolution": "bundler",
|
|
7
|
-
"jsx": "react-jsx",
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"outDir": "dist"
|
|
11
|
-
},
|
|
12
|
-
"include": ["src", "turbo"],
|
|
13
|
-
"exclude": ["node_modules", "dist"]
|
|
14
|
-
}
|
package/vite.config.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "vitest/config"
|
|
2
|
-
import { resolve, dirname } from "path"
|
|
3
|
-
import { fileURLToPath } from "url"
|
|
4
|
-
import react from "@vitejs/plugin-react"
|
|
5
|
-
import dts from "vite-plugin-dts"
|
|
6
|
-
|
|
7
|
-
const __filename = fileURLToPath(import.meta.url)
|
|
8
|
-
const __dirname = dirname(__filename)
|
|
9
|
-
|
|
10
|
-
export default defineConfig(({ mode }) => {
|
|
11
|
-
const isDev = mode === "development"
|
|
12
|
-
|
|
13
|
-
return {
|
|
14
|
-
plugins: [
|
|
15
|
-
react(),
|
|
16
|
-
dts({
|
|
17
|
-
include: ["src/**/*"],
|
|
18
|
-
exclude: [
|
|
19
|
-
"**/*.test.ts",
|
|
20
|
-
"**/*.test.tsx",
|
|
21
|
-
"**/*.stories.ts",
|
|
22
|
-
"**/*.stories.tsx",
|
|
23
|
-
],
|
|
24
|
-
compilerOptions: {
|
|
25
|
-
incremental: isDev,
|
|
26
|
-
tsBuildInfoFile: isDev ? "./.tsbuildinfo" : undefined,
|
|
27
|
-
},
|
|
28
|
-
}),
|
|
29
|
-
],
|
|
30
|
-
build: {
|
|
31
|
-
lib: {
|
|
32
|
-
entry: {
|
|
33
|
-
index: resolve(__dirname, "src/index.ts"),
|
|
34
|
-
"components/button": resolve(
|
|
35
|
-
__dirname,
|
|
36
|
-
"src/components/button/index.ts"
|
|
37
|
-
),
|
|
38
|
-
"components/enya-logo": resolve(
|
|
39
|
-
__dirname,
|
|
40
|
-
"src/components/enya-logo/index.ts"
|
|
41
|
-
),
|
|
42
|
-
// ADD_COMPONENT_ENTRY_HERE
|
|
43
|
-
utils: resolve(__dirname, "src/utils/index.ts"),
|
|
44
|
-
},
|
|
45
|
-
formats: ["es"],
|
|
46
|
-
fileName: (_, entryName) => `${entryName}.js`,
|
|
47
|
-
},
|
|
48
|
-
rollupOptions: {
|
|
49
|
-
external: (id) => {
|
|
50
|
-
switch (true) {
|
|
51
|
-
case id === "react":
|
|
52
|
-
case id.startsWith("react/"):
|
|
53
|
-
case id === "react-dom":
|
|
54
|
-
case id.startsWith("react-dom/"):
|
|
55
|
-
case id === "lucide-react":
|
|
56
|
-
case id.startsWith("lucide-react/"):
|
|
57
|
-
return true
|
|
58
|
-
default:
|
|
59
|
-
return false
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
output: {
|
|
63
|
-
preserveModules: false,
|
|
64
|
-
chunkFileNames: (chunkInfo) => {
|
|
65
|
-
const name = chunkInfo.name.replace(/[-_]+$/, "") || "chunk"
|
|
66
|
-
return `chunks/${name}-[hash:16].js`
|
|
67
|
-
},
|
|
68
|
-
hashCharacters: "base36",
|
|
69
|
-
hoistTransitiveImports: false,
|
|
70
|
-
banner: (chunk) => {
|
|
71
|
-
if (
|
|
72
|
-
chunk.name?.includes("server") ||
|
|
73
|
-
chunk.fileName?.includes("server")
|
|
74
|
-
) {
|
|
75
|
-
return ""
|
|
76
|
-
}
|
|
77
|
-
return '"use client";\n'
|
|
78
|
-
},
|
|
79
|
-
manualChunks: (id) => {
|
|
80
|
-
if (id.includes("node_modules")) {
|
|
81
|
-
if (id.includes("clsx") || id.includes("tailwind-merge"))
|
|
82
|
-
return "vendor-styling"
|
|
83
|
-
if (id.includes("@floating-ui")) return "vendor-floating-ui"
|
|
84
|
-
if (id.includes("@base-ui")) return "vendor-base-ui"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
cache: isDev,
|
|
89
|
-
},
|
|
90
|
-
sourcemap: isDev ? "inline" : true,
|
|
91
|
-
minify: isDev ? false : "esbuild",
|
|
92
|
-
emptyOutDir: !isDev,
|
|
93
|
-
},
|
|
94
|
-
resolve: {
|
|
95
|
-
alias: { "@": resolve(__dirname, "src") },
|
|
96
|
-
},
|
|
97
|
-
test: {
|
|
98
|
-
include: ["src/**/*.test.{ts,tsx}"],
|
|
99
|
-
},
|
|
100
|
-
}
|
|
101
|
-
})
|
/package/{Readme.md → README.md}
RENAMED
|
File without changes
|
|
File without changes
|