kofi-stack-types 2.0.22 → 2.1.0
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/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-typecheck.log +4 -0
- package/dist/index.d.ts +120 -100
- package/dist/index.js +64 -35
- package/package.json +1 -1
- package/src/index.ts +18 -8
- package/src/schemas.ts +72 -39
- package/src/types.ts +16 -8
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> kofi-stack-types@2.0
|
|
2
|
+
> kofi-stack-types@2.1.0 build /Users/theodenanyoh/Documents/Krumalabs/create-kofi-stack-v2/packages/types
|
|
3
3
|
> tsup src/index.ts --format esm --dts
|
|
4
4
|
|
|
5
5
|
CLI Building entry: src/index.ts
|
|
@@ -7,8 +7,8 @@ CLI Using tsconfig: tsconfig.json
|
|
|
7
7
|
CLI tsup v8.5.1
|
|
8
8
|
CLI Target: es2022
|
|
9
9
|
ESM Build start
|
|
10
|
-
ESM dist/index.js 4.
|
|
11
|
-
ESM ⚡️ Build success in
|
|
10
|
+
ESM dist/index.js 4.66 KB
|
|
11
|
+
ESM ⚡️ Build success in 29ms
|
|
12
12
|
DTS Build start
|
|
13
|
-
DTS ⚡️ Build success in
|
|
14
|
-
DTS dist/index.d.ts
|
|
13
|
+
DTS ⚡️ Build success in 517ms
|
|
14
|
+
DTS dist/index.d.ts 19.39 KB
|
package/dist/index.d.ts
CHANGED
|
@@ -5,42 +5,48 @@ declare const MarketingSiteSchema: z.ZodEnum<["none", "nextjs", "payload"]>;
|
|
|
5
5
|
declare const AuthProviderSchema: z.ZodEnum<["github", "google", "discord", "twitter", "apple", "microsoft", "linkedin"]>;
|
|
6
6
|
declare const AnalyticsProviderSchema: z.ZodEnum<["none", "posthog", "vercel"]>;
|
|
7
7
|
declare const UploadsProviderSchema: z.ZodEnum<["none", "convex-fs", "r2", "uploadthing", "s3", "vercel-blob"]>;
|
|
8
|
-
declare const
|
|
9
|
-
declare const
|
|
10
|
-
declare const
|
|
11
|
-
declare const
|
|
12
|
-
declare const
|
|
13
|
-
declare const
|
|
14
|
-
declare const
|
|
8
|
+
declare const PaymentProviderSchema: z.ZodEnum<["none", "stripe", "polar"]>;
|
|
9
|
+
declare const ComponentLibrarySchema: z.ZodEnum<["base", "radix"]>;
|
|
10
|
+
declare const ShadcnStyleSchema: z.ZodEnum<["vega", "nova", "maia", "lyra", "mira"]>;
|
|
11
|
+
declare const BaseColorSchema: z.ZodEnum<["neutral", "stone", "zinc", "gray"]>;
|
|
12
|
+
declare const ThemeColorSchema: z.ZodEnum<["neutral", "amber", "blue", "cyan", "emerald", "fuchsia", "green", "indigo", "lime", "orange", "pink", "purple", "red", "rose", "sky", "teal", "violet", "yellow"]>;
|
|
13
|
+
declare const IconLibrarySchema: z.ZodEnum<["lucide", "tabler", "hugeicons", "phosphor"]>;
|
|
14
|
+
declare const FontSchema: z.ZodEnum<["inter", "noto-sans", "nunito-sans", "figtree", "roboto", "raleway", "dm-sans", "public-sans", "outfit", "jetbrains-mono"]>;
|
|
15
|
+
declare const MenuAccentSchema: z.ZodEnum<["subtle", "bold"]>;
|
|
16
|
+
declare const MenuColorSchema: z.ZodEnum<["default", "inverted"]>;
|
|
17
|
+
declare const RadiusSchema: z.ZodEnum<["default", "none", "small", "medium", "large"]>;
|
|
15
18
|
declare const PackageManagerSchema: z.ZodEnum<["pnpm", "npm", "bun"]>;
|
|
16
19
|
declare const AddonSchema: z.ZodEnum<["biome", "husky", "turborepo", "playwright", "vitest", "rate-limiting", "monitoring"]>;
|
|
17
20
|
declare const DesignSystemConfigSchema: z.ZodObject<{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
componentLibrary: z.ZodEnum<["base", "radix"]>;
|
|
22
|
+
style: z.ZodEnum<["vega", "nova", "maia", "lyra", "mira"]>;
|
|
23
|
+
baseColor: z.ZodEnum<["neutral", "stone", "zinc", "gray"]>;
|
|
24
|
+
themeColor: z.ZodEnum<["neutral", "amber", "blue", "cyan", "emerald", "fuchsia", "green", "indigo", "lime", "orange", "pink", "purple", "red", "rose", "sky", "teal", "violet", "yellow"]>;
|
|
25
|
+
iconLibrary: z.ZodEnum<["lucide", "tabler", "hugeicons", "phosphor"]>;
|
|
26
|
+
font: z.ZodEnum<["inter", "noto-sans", "nunito-sans", "figtree", "roboto", "raleway", "dm-sans", "public-sans", "outfit", "jetbrains-mono"]>;
|
|
27
|
+
menuAccent: z.ZodEnum<["subtle", "bold"]>;
|
|
28
|
+
menuColor: z.ZodEnum<["default", "inverted"]>;
|
|
29
|
+
radius: z.ZodEnum<["default", "none", "small", "medium", "large"]>;
|
|
26
30
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
componentLibrary: "base" | "radix";
|
|
32
|
+
style: "vega" | "nova" | "maia" | "lyra" | "mira";
|
|
33
|
+
baseColor: "neutral" | "stone" | "zinc" | "gray";
|
|
34
|
+
themeColor: "neutral" | "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "green" | "indigo" | "lime" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "teal" | "violet" | "yellow";
|
|
35
|
+
iconLibrary: "lucide" | "tabler" | "hugeicons" | "phosphor";
|
|
36
|
+
font: "inter" | "noto-sans" | "nunito-sans" | "figtree" | "roboto" | "raleway" | "dm-sans" | "public-sans" | "outfit" | "jetbrains-mono";
|
|
37
|
+
menuAccent: "subtle" | "bold";
|
|
38
|
+
menuColor: "default" | "inverted";
|
|
39
|
+
radius: "none" | "default" | "small" | "medium" | "large";
|
|
35
40
|
}, {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
componentLibrary: "base" | "radix";
|
|
42
|
+
style: "vega" | "nova" | "maia" | "lyra" | "mira";
|
|
43
|
+
baseColor: "neutral" | "stone" | "zinc" | "gray";
|
|
44
|
+
themeColor: "neutral" | "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "green" | "indigo" | "lime" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "teal" | "violet" | "yellow";
|
|
45
|
+
iconLibrary: "lucide" | "tabler" | "hugeicons" | "phosphor";
|
|
46
|
+
font: "inter" | "noto-sans" | "nunito-sans" | "figtree" | "roboto" | "raleway" | "dm-sans" | "public-sans" | "outfit" | "jetbrains-mono";
|
|
47
|
+
menuAccent: "subtle" | "bold";
|
|
48
|
+
menuColor: "default" | "inverted";
|
|
49
|
+
radius: "none" | "default" | "small" | "medium" | "large";
|
|
44
50
|
}>;
|
|
45
51
|
declare const AuthConfigSchema: z.ZodObject<{
|
|
46
52
|
providers: z.ZodArray<z.ZodEnum<["github", "google", "discord", "twitter", "apple", "microsoft", "linkedin"]>, "many">;
|
|
@@ -71,32 +77,35 @@ declare const ProjectConfigSchema: z.ZodObject<{
|
|
|
71
77
|
structure: z.ZodEnum<["standalone", "monorepo"]>;
|
|
72
78
|
marketingSite: z.ZodEnum<["none", "nextjs", "payload"]>;
|
|
73
79
|
shadcn: z.ZodObject<{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
componentLibrary: z.ZodEnum<["base", "radix"]>;
|
|
81
|
+
style: z.ZodEnum<["vega", "nova", "maia", "lyra", "mira"]>;
|
|
82
|
+
baseColor: z.ZodEnum<["neutral", "stone", "zinc", "gray"]>;
|
|
83
|
+
themeColor: z.ZodEnum<["neutral", "amber", "blue", "cyan", "emerald", "fuchsia", "green", "indigo", "lime", "orange", "pink", "purple", "red", "rose", "sky", "teal", "violet", "yellow"]>;
|
|
84
|
+
iconLibrary: z.ZodEnum<["lucide", "tabler", "hugeicons", "phosphor"]>;
|
|
85
|
+
font: z.ZodEnum<["inter", "noto-sans", "nunito-sans", "figtree", "roboto", "raleway", "dm-sans", "public-sans", "outfit", "jetbrains-mono"]>;
|
|
86
|
+
menuAccent: z.ZodEnum<["subtle", "bold"]>;
|
|
87
|
+
menuColor: z.ZodEnum<["default", "inverted"]>;
|
|
88
|
+
radius: z.ZodEnum<["default", "none", "small", "medium", "large"]>;
|
|
82
89
|
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
componentLibrary: "base" | "radix";
|
|
91
|
+
style: "vega" | "nova" | "maia" | "lyra" | "mira";
|
|
92
|
+
baseColor: "neutral" | "stone" | "zinc" | "gray";
|
|
93
|
+
themeColor: "neutral" | "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "green" | "indigo" | "lime" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "teal" | "violet" | "yellow";
|
|
94
|
+
iconLibrary: "lucide" | "tabler" | "hugeicons" | "phosphor";
|
|
95
|
+
font: "inter" | "noto-sans" | "nunito-sans" | "figtree" | "roboto" | "raleway" | "dm-sans" | "public-sans" | "outfit" | "jetbrains-mono";
|
|
96
|
+
menuAccent: "subtle" | "bold";
|
|
97
|
+
menuColor: "default" | "inverted";
|
|
98
|
+
radius: "none" | "default" | "small" | "medium" | "large";
|
|
91
99
|
}, {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
componentLibrary: "base" | "radix";
|
|
101
|
+
style: "vega" | "nova" | "maia" | "lyra" | "mira";
|
|
102
|
+
baseColor: "neutral" | "stone" | "zinc" | "gray";
|
|
103
|
+
themeColor: "neutral" | "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "green" | "indigo" | "lime" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "teal" | "violet" | "yellow";
|
|
104
|
+
iconLibrary: "lucide" | "tabler" | "hugeicons" | "phosphor";
|
|
105
|
+
font: "inter" | "noto-sans" | "nunito-sans" | "figtree" | "roboto" | "raleway" | "dm-sans" | "public-sans" | "outfit" | "jetbrains-mono";
|
|
106
|
+
menuAccent: "subtle" | "bold";
|
|
107
|
+
menuColor: "default" | "inverted";
|
|
108
|
+
radius: "none" | "default" | "small" | "medium" | "large";
|
|
100
109
|
}>;
|
|
101
110
|
auth: z.ZodObject<{
|
|
102
111
|
providers: z.ZodArray<z.ZodEnum<["github", "google", "discord", "twitter", "apple", "microsoft", "linkedin"]>, "many">;
|
|
@@ -129,14 +138,15 @@ declare const ProjectConfigSchema: z.ZodObject<{
|
|
|
129
138
|
structure: "standalone" | "monorepo";
|
|
130
139
|
marketingSite: "none" | "nextjs" | "payload";
|
|
131
140
|
shadcn: {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
141
|
+
componentLibrary: "base" | "radix";
|
|
142
|
+
style: "vega" | "nova" | "maia" | "lyra" | "mira";
|
|
143
|
+
baseColor: "neutral" | "stone" | "zinc" | "gray";
|
|
144
|
+
themeColor: "neutral" | "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "green" | "indigo" | "lime" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "teal" | "violet" | "yellow";
|
|
145
|
+
iconLibrary: "lucide" | "tabler" | "hugeicons" | "phosphor";
|
|
146
|
+
font: "inter" | "noto-sans" | "nunito-sans" | "figtree" | "roboto" | "raleway" | "dm-sans" | "public-sans" | "outfit" | "jetbrains-mono";
|
|
147
|
+
menuAccent: "subtle" | "bold";
|
|
148
|
+
menuColor: "default" | "inverted";
|
|
149
|
+
radius: "none" | "default" | "small" | "medium" | "large";
|
|
140
150
|
};
|
|
141
151
|
auth: {
|
|
142
152
|
providers: ("github" | "google" | "discord" | "twitter" | "apple" | "microsoft" | "linkedin")[];
|
|
@@ -155,14 +165,15 @@ declare const ProjectConfigSchema: z.ZodObject<{
|
|
|
155
165
|
structure: "standalone" | "monorepo";
|
|
156
166
|
marketingSite: "none" | "nextjs" | "payload";
|
|
157
167
|
shadcn: {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
168
|
+
componentLibrary: "base" | "radix";
|
|
169
|
+
style: "vega" | "nova" | "maia" | "lyra" | "mira";
|
|
170
|
+
baseColor: "neutral" | "stone" | "zinc" | "gray";
|
|
171
|
+
themeColor: "neutral" | "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "green" | "indigo" | "lime" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "teal" | "violet" | "yellow";
|
|
172
|
+
iconLibrary: "lucide" | "tabler" | "hugeicons" | "phosphor";
|
|
173
|
+
font: "inter" | "noto-sans" | "nunito-sans" | "figtree" | "roboto" | "raleway" | "dm-sans" | "public-sans" | "outfit" | "jetbrains-mono";
|
|
174
|
+
menuAccent: "subtle" | "bold";
|
|
175
|
+
menuColor: "default" | "inverted";
|
|
176
|
+
radius: "none" | "default" | "small" | "medium" | "large";
|
|
166
177
|
};
|
|
167
178
|
auth: {
|
|
168
179
|
providers: ("github" | "google" | "discord" | "twitter" | "apple" | "microsoft" | "linkedin")[];
|
|
@@ -180,35 +191,39 @@ declare const CLIInputSchema: z.ZodObject<{
|
|
|
180
191
|
projectName: z.ZodOptional<z.ZodString>;
|
|
181
192
|
structure: z.ZodOptional<z.ZodEnum<["standalone", "monorepo"]>>;
|
|
182
193
|
marketingSite: z.ZodOptional<z.ZodEnum<["none", "nextjs", "payload"]>>;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
194
|
+
componentLibrary: z.ZodOptional<z.ZodEnum<["base", "radix"]>>;
|
|
195
|
+
style: z.ZodOptional<z.ZodEnum<["vega", "nova", "maia", "lyra", "mira"]>>;
|
|
196
|
+
baseColor: z.ZodOptional<z.ZodEnum<["neutral", "stone", "zinc", "gray"]>>;
|
|
197
|
+
themeColor: z.ZodOptional<z.ZodEnum<["neutral", "amber", "blue", "cyan", "emerald", "fuchsia", "green", "indigo", "lime", "orange", "pink", "purple", "red", "rose", "sky", "teal", "violet", "yellow"]>>;
|
|
198
|
+
iconLibrary: z.ZodOptional<z.ZodEnum<["lucide", "tabler", "hugeicons", "phosphor"]>>;
|
|
199
|
+
font: z.ZodOptional<z.ZodEnum<["inter", "noto-sans", "nunito-sans", "figtree", "roboto", "raleway", "dm-sans", "public-sans", "outfit", "jetbrains-mono"]>>;
|
|
200
|
+
menuAccent: z.ZodOptional<z.ZodEnum<["subtle", "bold"]>>;
|
|
201
|
+
menuColor: z.ZodOptional<z.ZodEnum<["default", "inverted"]>>;
|
|
202
|
+
radius: z.ZodOptional<z.ZodEnum<["default", "none", "small", "medium", "large"]>>;
|
|
191
203
|
authProviders: z.ZodOptional<z.ZodArray<z.ZodEnum<["github", "google", "discord", "twitter", "apple", "microsoft", "linkedin"]>, "many">>;
|
|
192
204
|
organizations: z.ZodOptional<z.ZodBoolean>;
|
|
193
205
|
analytics: z.ZodOptional<z.ZodEnum<["none", "posthog", "vercel"]>>;
|
|
194
206
|
uploads: z.ZodOptional<z.ZodEnum<["none", "convex-fs", "r2", "uploadthing", "s3", "vercel-blob"]>>;
|
|
207
|
+
payments: z.ZodOptional<z.ZodEnum<["none", "stripe", "polar"]>>;
|
|
195
208
|
addons: z.ZodOptional<z.ZodArray<z.ZodEnum<["biome", "husky", "turborepo", "playwright", "vitest", "rate-limiting", "monitoring"]>, "many">>;
|
|
196
209
|
git: z.ZodOptional<z.ZodBoolean>;
|
|
197
210
|
packageManager: z.ZodOptional<z.ZodEnum<["pnpm", "npm", "bun"]>>;
|
|
198
211
|
install: z.ZodOptional<z.ZodBoolean>;
|
|
199
212
|
yes: z.ZodOptional<z.ZodBoolean>;
|
|
200
213
|
}, "strip", z.ZodTypeAny, {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
214
|
+
componentLibrary?: "base" | "radix" | undefined;
|
|
215
|
+
style?: "vega" | "nova" | "maia" | "lyra" | "mira" | undefined;
|
|
216
|
+
baseColor?: "neutral" | "stone" | "zinc" | "gray" | undefined;
|
|
217
|
+
themeColor?: "neutral" | "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "green" | "indigo" | "lime" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "teal" | "violet" | "yellow" | undefined;
|
|
218
|
+
iconLibrary?: "lucide" | "tabler" | "hugeicons" | "phosphor" | undefined;
|
|
219
|
+
font?: "inter" | "noto-sans" | "nunito-sans" | "figtree" | "roboto" | "raleway" | "dm-sans" | "public-sans" | "outfit" | "jetbrains-mono" | undefined;
|
|
220
|
+
menuAccent?: "subtle" | "bold" | undefined;
|
|
221
|
+
menuColor?: "default" | "inverted" | undefined;
|
|
222
|
+
radius?: "none" | "default" | "small" | "medium" | "large" | undefined;
|
|
209
223
|
organizations?: boolean | undefined;
|
|
210
224
|
analytics?: "none" | "posthog" | "vercel" | undefined;
|
|
211
225
|
uploads?: "none" | "convex-fs" | "r2" | "uploadthing" | "s3" | "vercel-blob" | undefined;
|
|
226
|
+
payments?: "none" | "stripe" | "polar" | undefined;
|
|
212
227
|
projectName?: string | undefined;
|
|
213
228
|
structure?: "standalone" | "monorepo" | undefined;
|
|
214
229
|
marketingSite?: "none" | "nextjs" | "payload" | undefined;
|
|
@@ -219,17 +234,19 @@ declare const CLIInputSchema: z.ZodObject<{
|
|
|
219
234
|
install?: boolean | undefined;
|
|
220
235
|
yes?: boolean | undefined;
|
|
221
236
|
}, {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
237
|
+
componentLibrary?: "base" | "radix" | undefined;
|
|
238
|
+
style?: "vega" | "nova" | "maia" | "lyra" | "mira" | undefined;
|
|
239
|
+
baseColor?: "neutral" | "stone" | "zinc" | "gray" | undefined;
|
|
240
|
+
themeColor?: "neutral" | "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "green" | "indigo" | "lime" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "teal" | "violet" | "yellow" | undefined;
|
|
241
|
+
iconLibrary?: "lucide" | "tabler" | "hugeicons" | "phosphor" | undefined;
|
|
242
|
+
font?: "inter" | "noto-sans" | "nunito-sans" | "figtree" | "roboto" | "raleway" | "dm-sans" | "public-sans" | "outfit" | "jetbrains-mono" | undefined;
|
|
243
|
+
menuAccent?: "subtle" | "bold" | undefined;
|
|
244
|
+
menuColor?: "default" | "inverted" | undefined;
|
|
245
|
+
radius?: "none" | "default" | "small" | "medium" | "large" | undefined;
|
|
230
246
|
organizations?: boolean | undefined;
|
|
231
247
|
analytics?: "none" | "posthog" | "vercel" | undefined;
|
|
232
248
|
uploads?: "none" | "convex-fs" | "r2" | "uploadthing" | "s3" | "vercel-blob" | undefined;
|
|
249
|
+
payments?: "none" | "stripe" | "polar" | undefined;
|
|
233
250
|
projectName?: string | undefined;
|
|
234
251
|
structure?: "standalone" | "monorepo" | undefined;
|
|
235
252
|
marketingSite?: "none" | "nextjs" | "payload" | undefined;
|
|
@@ -247,13 +264,16 @@ type MarketingSite = z.infer<typeof MarketingSiteSchema>;
|
|
|
247
264
|
type AuthProvider = z.infer<typeof AuthProviderSchema>;
|
|
248
265
|
type AnalyticsProvider = z.infer<typeof AnalyticsProviderSchema>;
|
|
249
266
|
type UploadsProvider = z.infer<typeof UploadsProviderSchema>;
|
|
267
|
+
type PaymentProvider = z.infer<typeof PaymentProviderSchema>;
|
|
268
|
+
type ComponentLibrary = z.infer<typeof ComponentLibrarySchema>;
|
|
269
|
+
type ShadcnStyle = z.infer<typeof ShadcnStyleSchema>;
|
|
250
270
|
type BaseColor = z.infer<typeof BaseColorSchema>;
|
|
251
271
|
type ThemeColor = z.infer<typeof ThemeColorSchema>;
|
|
252
|
-
type MenuAccent = z.infer<typeof MenuAccentSchema>;
|
|
253
272
|
type IconLibrary = z.infer<typeof IconLibrarySchema>;
|
|
254
|
-
type
|
|
255
|
-
type
|
|
256
|
-
type
|
|
273
|
+
type Font = z.infer<typeof FontSchema>;
|
|
274
|
+
type MenuAccent = z.infer<typeof MenuAccentSchema>;
|
|
275
|
+
type MenuColor = z.infer<typeof MenuColorSchema>;
|
|
276
|
+
type Radius = z.infer<typeof RadiusSchema>;
|
|
257
277
|
type PackageManager = z.infer<typeof PackageManagerSchema>;
|
|
258
278
|
type Addon = z.infer<typeof AddonSchema>;
|
|
259
279
|
type DesignSystemConfig = z.infer<typeof DesignSystemConfigSchema>;
|
|
@@ -291,4 +311,4 @@ interface GeneratorResult {
|
|
|
291
311
|
errors?: string[];
|
|
292
312
|
}
|
|
293
313
|
|
|
294
|
-
export { type Addon, AddonSchema, type AnalyticsProvider, AnalyticsProviderSchema, type AuthConfig, AuthConfigSchema, type AuthProvider, AuthProviderSchema, type BaseColor, BaseColorSchema, type
|
|
314
|
+
export { type Addon, AddonSchema, type AnalyticsProvider, AnalyticsProviderSchema, type AuthConfig, AuthConfigSchema, type AuthProvider, AuthProviderSchema, type BaseColor, BaseColorSchema, type CLIInput, CLIInputSchema, type ComponentLibrary, ComponentLibrarySchema, DEFAULT_CONFIG, type DesignSystemConfig, DesignSystemConfigSchema, type Font, FontSchema, type GeneratorOptions, type GeneratorResult, type IconLibrary, IconLibrarySchema, type IntegrationsConfig, IntegrationsConfigSchema, type MarketingSite, MarketingSiteSchema, type MenuAccent, MenuAccentSchema, type MenuColor, MenuColorSchema, type PackageManager, PackageManagerSchema, type PaymentProvider, PaymentProviderSchema, type ProjectConfig, ProjectConfigSchema, type ProjectStructure, ProjectStructureSchema, type Radius, RadiusSchema, type ShadcnStyle, ShadcnStyleSchema, type ThemeColor, ThemeColorSchema, type UploadsProvider, UploadsProviderSchema, type VirtualDirectory, type VirtualFile, type VirtualFileTree, type VirtualNode };
|
package/dist/index.js
CHANGED
|
@@ -21,26 +21,45 @@ var UploadsProviderSchema = z.enum([
|
|
|
21
21
|
"vercel-blob"
|
|
22
22
|
]);
|
|
23
23
|
var PaymentProviderSchema = z.enum(["none", "stripe", "polar"]);
|
|
24
|
-
var
|
|
24
|
+
var ComponentLibrarySchema = z.enum(["base", "radix"]);
|
|
25
|
+
var ShadcnStyleSchema = z.enum(["vega", "nova", "maia", "lyra", "mira"]);
|
|
26
|
+
var BaseColorSchema = z.enum(["neutral", "stone", "zinc", "gray"]);
|
|
25
27
|
var ThemeColorSchema = z.enum([
|
|
26
|
-
"zinc",
|
|
27
|
-
"slate",
|
|
28
|
-
"stone",
|
|
29
|
-
"gray",
|
|
30
28
|
"neutral",
|
|
29
|
+
"amber",
|
|
30
|
+
"blue",
|
|
31
|
+
"cyan",
|
|
32
|
+
"emerald",
|
|
33
|
+
"fuchsia",
|
|
34
|
+
"green",
|
|
35
|
+
"indigo",
|
|
36
|
+
"lime",
|
|
37
|
+
"orange",
|
|
38
|
+
"pink",
|
|
39
|
+
"purple",
|
|
31
40
|
"red",
|
|
32
41
|
"rose",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"yellow"
|
|
37
|
-
|
|
42
|
+
"sky",
|
|
43
|
+
"teal",
|
|
44
|
+
"violet",
|
|
45
|
+
"yellow"
|
|
46
|
+
]);
|
|
47
|
+
var IconLibrarySchema = z.enum(["lucide", "tabler", "hugeicons", "phosphor"]);
|
|
48
|
+
var FontSchema = z.enum([
|
|
49
|
+
"inter",
|
|
50
|
+
"noto-sans",
|
|
51
|
+
"nunito-sans",
|
|
52
|
+
"figtree",
|
|
53
|
+
"roboto",
|
|
54
|
+
"raleway",
|
|
55
|
+
"dm-sans",
|
|
56
|
+
"public-sans",
|
|
57
|
+
"outfit",
|
|
58
|
+
"jetbrains-mono"
|
|
38
59
|
]);
|
|
39
|
-
var MenuAccentSchema = z.enum(["
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var BorderRadiusSchema = z.enum(["0", "0.3", "0.5", "0.75", "1.0"]);
|
|
43
|
-
var SpacingScaleSchema = z.enum(["default", "compact", "comfortable"]);
|
|
60
|
+
var MenuAccentSchema = z.enum(["subtle", "bold"]);
|
|
61
|
+
var MenuColorSchema = z.enum(["default", "inverted"]);
|
|
62
|
+
var RadiusSchema = z.enum(["default", "none", "small", "medium", "large"]);
|
|
44
63
|
var PackageManagerSchema = z.enum(["pnpm", "npm", "bun"]);
|
|
45
64
|
var AddonSchema = z.enum([
|
|
46
65
|
"biome",
|
|
@@ -52,14 +71,15 @@ var AddonSchema = z.enum([
|
|
|
52
71
|
"monitoring"
|
|
53
72
|
]);
|
|
54
73
|
var DesignSystemConfigSchema = z.object({
|
|
74
|
+
componentLibrary: ComponentLibrarySchema,
|
|
75
|
+
style: ShadcnStyleSchema,
|
|
55
76
|
baseColor: BaseColorSchema,
|
|
56
77
|
themeColor: ThemeColorSchema,
|
|
57
|
-
menuAccent: MenuAccentSchema,
|
|
58
78
|
iconLibrary: IconLibrarySchema,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
79
|
+
font: FontSchema,
|
|
80
|
+
menuAccent: MenuAccentSchema,
|
|
81
|
+
menuColor: MenuColorSchema,
|
|
82
|
+
radius: RadiusSchema
|
|
63
83
|
});
|
|
64
84
|
var AuthConfigSchema = z.object({
|
|
65
85
|
providers: z.array(AuthProviderSchema),
|
|
@@ -92,18 +112,23 @@ var CLIInputSchema = z.object({
|
|
|
92
112
|
projectName: z.string().optional(),
|
|
93
113
|
structure: ProjectStructureSchema.optional(),
|
|
94
114
|
marketingSite: MarketingSiteSchema.optional(),
|
|
115
|
+
// shadcn v4 options
|
|
116
|
+
componentLibrary: ComponentLibrarySchema.optional(),
|
|
117
|
+
style: ShadcnStyleSchema.optional(),
|
|
95
118
|
baseColor: BaseColorSchema.optional(),
|
|
96
119
|
themeColor: ThemeColorSchema.optional(),
|
|
97
|
-
menuAccent: MenuAccentSchema.optional(),
|
|
98
120
|
iconLibrary: IconLibrarySchema.optional(),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
121
|
+
font: FontSchema.optional(),
|
|
122
|
+
menuAccent: MenuAccentSchema.optional(),
|
|
123
|
+
menuColor: MenuColorSchema.optional(),
|
|
124
|
+
radius: RadiusSchema.optional(),
|
|
125
|
+
// Auth
|
|
103
126
|
authProviders: z.array(AuthProviderSchema).optional(),
|
|
104
127
|
organizations: z.boolean().optional(),
|
|
128
|
+
// Integrations
|
|
105
129
|
analytics: AnalyticsProviderSchema.optional(),
|
|
106
130
|
uploads: UploadsProviderSchema.optional(),
|
|
131
|
+
payments: PaymentProviderSchema.optional(),
|
|
107
132
|
addons: z.array(AddonSchema).optional(),
|
|
108
133
|
git: z.boolean().optional(),
|
|
109
134
|
packageManager: PackageManagerSchema.optional(),
|
|
@@ -117,14 +142,15 @@ var DEFAULT_CONFIG = {
|
|
|
117
142
|
structure: "standalone",
|
|
118
143
|
marketingSite: "none",
|
|
119
144
|
shadcn: {
|
|
145
|
+
componentLibrary: "base",
|
|
146
|
+
style: "nova",
|
|
120
147
|
baseColor: "neutral",
|
|
121
|
-
themeColor: "
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
spacingScale: "default"
|
|
148
|
+
themeColor: "neutral",
|
|
149
|
+
iconLibrary: "hugeicons",
|
|
150
|
+
font: "inter",
|
|
151
|
+
menuAccent: "subtle",
|
|
152
|
+
menuColor: "default",
|
|
153
|
+
radius: "default"
|
|
128
154
|
},
|
|
129
155
|
auth: {
|
|
130
156
|
providers: ["github", "google"],
|
|
@@ -144,19 +170,22 @@ export {
|
|
|
144
170
|
AuthConfigSchema,
|
|
145
171
|
AuthProviderSchema,
|
|
146
172
|
BaseColorSchema,
|
|
147
|
-
BorderRadiusSchema,
|
|
148
173
|
CLIInputSchema,
|
|
174
|
+
ComponentLibrarySchema,
|
|
149
175
|
DEFAULT_CONFIG,
|
|
150
176
|
DesignSystemConfigSchema,
|
|
151
|
-
|
|
177
|
+
FontSchema,
|
|
152
178
|
IconLibrarySchema,
|
|
153
179
|
IntegrationsConfigSchema,
|
|
154
180
|
MarketingSiteSchema,
|
|
155
181
|
MenuAccentSchema,
|
|
182
|
+
MenuColorSchema,
|
|
156
183
|
PackageManagerSchema,
|
|
184
|
+
PaymentProviderSchema,
|
|
157
185
|
ProjectConfigSchema,
|
|
158
186
|
ProjectStructureSchema,
|
|
159
|
-
|
|
187
|
+
RadiusSchema,
|
|
188
|
+
ShadcnStyleSchema,
|
|
160
189
|
ThemeColorSchema,
|
|
161
190
|
UploadsProviderSchema
|
|
162
191
|
};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -5,13 +5,18 @@ export {
|
|
|
5
5
|
AuthProviderSchema,
|
|
6
6
|
AnalyticsProviderSchema,
|
|
7
7
|
UploadsProviderSchema,
|
|
8
|
+
PaymentProviderSchema,
|
|
9
|
+
// shadcn v4 schemas
|
|
10
|
+
ComponentLibrarySchema,
|
|
11
|
+
ShadcnStyleSchema,
|
|
8
12
|
BaseColorSchema,
|
|
9
13
|
ThemeColorSchema,
|
|
10
|
-
MenuAccentSchema,
|
|
11
14
|
IconLibrarySchema,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
FontSchema,
|
|
16
|
+
MenuAccentSchema,
|
|
17
|
+
MenuColorSchema,
|
|
18
|
+
RadiusSchema,
|
|
19
|
+
// Config schemas
|
|
15
20
|
PackageManagerSchema,
|
|
16
21
|
AddonSchema,
|
|
17
22
|
DesignSystemConfigSchema,
|
|
@@ -29,13 +34,18 @@ export type {
|
|
|
29
34
|
AuthProvider,
|
|
30
35
|
AnalyticsProvider,
|
|
31
36
|
UploadsProvider,
|
|
37
|
+
PaymentProvider,
|
|
38
|
+
// shadcn v4 types
|
|
39
|
+
ComponentLibrary,
|
|
40
|
+
ShadcnStyle,
|
|
32
41
|
BaseColor,
|
|
33
42
|
ThemeColor,
|
|
34
|
-
MenuAccent,
|
|
35
43
|
IconLibrary,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
44
|
+
Font,
|
|
45
|
+
MenuAccent,
|
|
46
|
+
MenuColor,
|
|
47
|
+
Radius,
|
|
48
|
+
// Config types
|
|
39
49
|
PackageManager,
|
|
40
50
|
Addon,
|
|
41
51
|
DesignSystemConfig,
|
package/src/schemas.ts
CHANGED
|
@@ -33,40 +33,66 @@ export const UploadsProviderSchema = z.enum([
|
|
|
33
33
|
// Payment providers
|
|
34
34
|
export const PaymentProviderSchema = z.enum(['none', 'stripe', 'polar'])
|
|
35
35
|
|
|
36
|
+
// ============================================
|
|
37
|
+
// shadcn UI v4 Design System Options
|
|
38
|
+
// ============================================
|
|
36
39
|
|
|
37
|
-
//
|
|
38
|
-
export const
|
|
40
|
+
// Component library (base or radix primitives)
|
|
41
|
+
export const ComponentLibrarySchema = z.enum(['base', 'radix'])
|
|
39
42
|
|
|
40
|
-
//
|
|
43
|
+
// Style presets (shadcn v4)
|
|
44
|
+
export const ShadcnStyleSchema = z.enum(['vega', 'nova', 'maia', 'lyra', 'mira'])
|
|
45
|
+
|
|
46
|
+
// Base color (background/surface colors)
|
|
47
|
+
export const BaseColorSchema = z.enum(['neutral', 'stone', 'zinc', 'gray'])
|
|
48
|
+
|
|
49
|
+
// Theme color (accent/primary color)
|
|
41
50
|
export const ThemeColorSchema = z.enum([
|
|
42
|
-
'zinc',
|
|
43
|
-
'slate',
|
|
44
|
-
'stone',
|
|
45
|
-
'gray',
|
|
46
51
|
'neutral',
|
|
52
|
+
'amber',
|
|
53
|
+
'blue',
|
|
54
|
+
'cyan',
|
|
55
|
+
'emerald',
|
|
56
|
+
'fuchsia',
|
|
57
|
+
'green',
|
|
58
|
+
'indigo',
|
|
59
|
+
'lime',
|
|
60
|
+
'orange',
|
|
61
|
+
'pink',
|
|
62
|
+
'purple',
|
|
47
63
|
'red',
|
|
48
64
|
'rose',
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'blue',
|
|
52
|
-
'yellow',
|
|
65
|
+
'sky',
|
|
66
|
+
'teal',
|
|
53
67
|
'violet',
|
|
68
|
+
'yellow',
|
|
54
69
|
])
|
|
55
70
|
|
|
56
|
-
// Menu accent
|
|
57
|
-
export const MenuAccentSchema = z.enum(['none', 'muted', 'primary'])
|
|
58
|
-
|
|
59
71
|
// Icon library
|
|
60
|
-
export const IconLibrarySchema = z.enum(['lucide', 'hugeicons'])
|
|
72
|
+
export const IconLibrarySchema = z.enum(['lucide', 'tabler', 'hugeicons', 'phosphor'])
|
|
73
|
+
|
|
74
|
+
// Font
|
|
75
|
+
export const FontSchema = z.enum([
|
|
76
|
+
'inter',
|
|
77
|
+
'noto-sans',
|
|
78
|
+
'nunito-sans',
|
|
79
|
+
'figtree',
|
|
80
|
+
'roboto',
|
|
81
|
+
'raleway',
|
|
82
|
+
'dm-sans',
|
|
83
|
+
'public-sans',
|
|
84
|
+
'outfit',
|
|
85
|
+
'jetbrains-mono',
|
|
86
|
+
])
|
|
87
|
+
|
|
88
|
+
// Menu accent
|
|
89
|
+
export const MenuAccentSchema = z.enum(['subtle', 'bold'])
|
|
61
90
|
|
|
62
|
-
//
|
|
63
|
-
export const
|
|
91
|
+
// Menu color
|
|
92
|
+
export const MenuColorSchema = z.enum(['default', 'inverted'])
|
|
64
93
|
|
|
65
94
|
// Border radius
|
|
66
|
-
export const
|
|
67
|
-
|
|
68
|
-
// Spacing scale
|
|
69
|
-
export const SpacingScaleSchema = z.enum(['default', 'compact', 'comfortable'])
|
|
95
|
+
export const RadiusSchema = z.enum(['default', 'none', 'small', 'medium', 'large'])
|
|
70
96
|
|
|
71
97
|
// Package manager
|
|
72
98
|
export const PackageManagerSchema = z.enum(['pnpm', 'npm', 'bun'])
|
|
@@ -82,16 +108,17 @@ export const AddonSchema = z.enum([
|
|
|
82
108
|
'monitoring',
|
|
83
109
|
])
|
|
84
110
|
|
|
85
|
-
// Design system configuration
|
|
111
|
+
// Design system configuration (shadcn v4)
|
|
86
112
|
export const DesignSystemConfigSchema = z.object({
|
|
113
|
+
componentLibrary: ComponentLibrarySchema,
|
|
114
|
+
style: ShadcnStyleSchema,
|
|
87
115
|
baseColor: BaseColorSchema,
|
|
88
116
|
themeColor: ThemeColorSchema,
|
|
89
|
-
menuAccent: MenuAccentSchema,
|
|
90
117
|
iconLibrary: IconLibrarySchema,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
118
|
+
font: FontSchema,
|
|
119
|
+
menuAccent: MenuAccentSchema,
|
|
120
|
+
menuColor: MenuColorSchema,
|
|
121
|
+
radius: RadiusSchema,
|
|
95
122
|
})
|
|
96
123
|
|
|
97
124
|
// Auth configuration
|
|
@@ -138,18 +165,23 @@ export const CLIInputSchema = z.object({
|
|
|
138
165
|
projectName: z.string().optional(),
|
|
139
166
|
structure: ProjectStructureSchema.optional(),
|
|
140
167
|
marketingSite: MarketingSiteSchema.optional(),
|
|
168
|
+
// shadcn v4 options
|
|
169
|
+
componentLibrary: ComponentLibrarySchema.optional(),
|
|
170
|
+
style: ShadcnStyleSchema.optional(),
|
|
141
171
|
baseColor: BaseColorSchema.optional(),
|
|
142
172
|
themeColor: ThemeColorSchema.optional(),
|
|
143
|
-
menuAccent: MenuAccentSchema.optional(),
|
|
144
173
|
iconLibrary: IconLibrarySchema.optional(),
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
174
|
+
font: FontSchema.optional(),
|
|
175
|
+
menuAccent: MenuAccentSchema.optional(),
|
|
176
|
+
menuColor: MenuColorSchema.optional(),
|
|
177
|
+
radius: RadiusSchema.optional(),
|
|
178
|
+
// Auth
|
|
149
179
|
authProviders: z.array(AuthProviderSchema).optional(),
|
|
150
180
|
organizations: z.boolean().optional(),
|
|
181
|
+
// Integrations
|
|
151
182
|
analytics: AnalyticsProviderSchema.optional(),
|
|
152
183
|
uploads: UploadsProviderSchema.optional(),
|
|
184
|
+
payments: PaymentProviderSchema.optional(),
|
|
153
185
|
addons: z.array(AddonSchema).optional(),
|
|
154
186
|
git: z.boolean().optional(),
|
|
155
187
|
packageManager: PackageManagerSchema.optional(),
|
|
@@ -164,14 +196,15 @@ export const DEFAULT_CONFIG: z.infer<typeof ProjectConfigSchema> = {
|
|
|
164
196
|
structure: 'standalone',
|
|
165
197
|
marketingSite: 'none',
|
|
166
198
|
shadcn: {
|
|
199
|
+
componentLibrary: 'base',
|
|
200
|
+
style: 'nova',
|
|
167
201
|
baseColor: 'neutral',
|
|
168
|
-
themeColor: '
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
spacingScale: 'default',
|
|
202
|
+
themeColor: 'neutral',
|
|
203
|
+
iconLibrary: 'hugeicons',
|
|
204
|
+
font: 'inter',
|
|
205
|
+
menuAccent: 'subtle',
|
|
206
|
+
menuColor: 'default',
|
|
207
|
+
radius: 'default',
|
|
175
208
|
},
|
|
176
209
|
auth: {
|
|
177
210
|
providers: ['github', 'google'],
|
package/src/types.ts
CHANGED
|
@@ -6,13 +6,16 @@ import type {
|
|
|
6
6
|
AnalyticsProviderSchema,
|
|
7
7
|
UploadsProviderSchema,
|
|
8
8
|
PaymentProviderSchema,
|
|
9
|
+
// shadcn v4 schemas
|
|
10
|
+
ComponentLibrarySchema,
|
|
11
|
+
ShadcnStyleSchema,
|
|
9
12
|
BaseColorSchema,
|
|
10
13
|
ThemeColorSchema,
|
|
11
|
-
MenuAccentSchema,
|
|
12
14
|
IconLibrarySchema,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
FontSchema,
|
|
16
|
+
MenuAccentSchema,
|
|
17
|
+
MenuColorSchema,
|
|
18
|
+
RadiusSchema,
|
|
16
19
|
PackageManagerSchema,
|
|
17
20
|
AddonSchema,
|
|
18
21
|
DesignSystemConfigSchema,
|
|
@@ -29,13 +32,18 @@ export type AuthProvider = z.infer<typeof AuthProviderSchema>
|
|
|
29
32
|
export type AnalyticsProvider = z.infer<typeof AnalyticsProviderSchema>
|
|
30
33
|
export type UploadsProvider = z.infer<typeof UploadsProviderSchema>
|
|
31
34
|
export type PaymentProvider = z.infer<typeof PaymentProviderSchema>
|
|
35
|
+
|
|
36
|
+
// shadcn v4 types
|
|
37
|
+
export type ComponentLibrary = z.infer<typeof ComponentLibrarySchema>
|
|
38
|
+
export type ShadcnStyle = z.infer<typeof ShadcnStyleSchema>
|
|
32
39
|
export type BaseColor = z.infer<typeof BaseColorSchema>
|
|
33
40
|
export type ThemeColor = z.infer<typeof ThemeColorSchema>
|
|
34
|
-
export type MenuAccent = z.infer<typeof MenuAccentSchema>
|
|
35
41
|
export type IconLibrary = z.infer<typeof IconLibrarySchema>
|
|
36
|
-
export type
|
|
37
|
-
export type
|
|
38
|
-
export type
|
|
42
|
+
export type Font = z.infer<typeof FontSchema>
|
|
43
|
+
export type MenuAccent = z.infer<typeof MenuAccentSchema>
|
|
44
|
+
export type MenuColor = z.infer<typeof MenuColorSchema>
|
|
45
|
+
export type Radius = z.infer<typeof RadiusSchema>
|
|
46
|
+
|
|
39
47
|
export type PackageManager = z.infer<typeof PackageManagerSchema>
|
|
40
48
|
export type Addon = z.infer<typeof AddonSchema>
|
|
41
49
|
export type DesignSystemConfig = z.infer<typeof DesignSystemConfigSchema>
|