kofi-stack-types 2.0.2 → 2.0.4
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/dist/index.d.ts +1 -27
- package/dist/index.js +1 -11
- package/package.json +1 -1
- package/src/index.ts +0 -4
- package/src/schemas.ts +1 -12
- package/src/types.ts +0 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> kofi-stack-types@2.0.
|
|
2
|
+
> kofi-stack-types@2.0.4 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.02 KB
|
|
11
|
+
ESM ⚡️ Build success in 55ms
|
|
12
12
|
DTS Build start
|
|
13
|
-
DTS ⚡️ Build success in
|
|
14
|
-
DTS dist/index.d.ts
|
|
13
|
+
DTS ⚡️ Build success in 568ms
|
|
14
|
+
DTS dist/index.d.ts 15.79 KB
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,6 @@ 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", "uploadthing", "s3", "vercel-blob"]>;
|
|
8
|
-
declare const ComponentLibrarySchema: z.ZodEnum<["base-ui", "radix"]>;
|
|
9
|
-
declare const StyleVariantSchema: z.ZodEnum<["default", "new-york"]>;
|
|
10
8
|
declare const BaseColorSchema: z.ZodEnum<["neutral", "gray", "zinc", "slate", "stone"]>;
|
|
11
9
|
declare const ThemeColorSchema: z.ZodEnum<["zinc", "slate", "stone", "gray", "neutral", "red", "rose", "orange", "green", "blue", "yellow", "violet"]>;
|
|
12
10
|
declare const MenuAccentSchema: z.ZodEnum<["none", "muted", "primary"]>;
|
|
@@ -17,8 +15,6 @@ declare const SpacingScaleSchema: z.ZodEnum<["default", "compact", "comfortable"
|
|
|
17
15
|
declare const PackageManagerSchema: z.ZodEnum<["pnpm", "npm", "bun"]>;
|
|
18
16
|
declare const AddonSchema: z.ZodEnum<["biome", "husky", "turborepo", "playwright", "vitest", "rate-limiting", "monitoring"]>;
|
|
19
17
|
declare const DesignSystemConfigSchema: z.ZodObject<{
|
|
20
|
-
componentLibrary: z.ZodEnum<["base-ui", "radix"]>;
|
|
21
|
-
styleVariant: z.ZodEnum<["default", "new-york"]>;
|
|
22
18
|
baseColor: z.ZodEnum<["neutral", "gray", "zinc", "slate", "stone"]>;
|
|
23
19
|
themeColor: z.ZodEnum<["zinc", "slate", "stone", "gray", "neutral", "red", "rose", "orange", "green", "blue", "yellow", "violet"]>;
|
|
24
20
|
menuAccent: z.ZodEnum<["none", "muted", "primary"]>;
|
|
@@ -28,8 +24,6 @@ declare const DesignSystemConfigSchema: z.ZodObject<{
|
|
|
28
24
|
borderRadius: z.ZodEnum<["0", "0.3", "0.5", "0.75", "1.0"]>;
|
|
29
25
|
spacingScale: z.ZodEnum<["default", "compact", "comfortable"]>;
|
|
30
26
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
componentLibrary: "base-ui" | "radix";
|
|
32
|
-
styleVariant: "default" | "new-york";
|
|
33
27
|
baseColor: "neutral" | "gray" | "zinc" | "slate" | "stone";
|
|
34
28
|
themeColor: "neutral" | "gray" | "zinc" | "slate" | "stone" | "red" | "rose" | "orange" | "green" | "blue" | "yellow" | "violet";
|
|
35
29
|
menuAccent: "none" | "muted" | "primary";
|
|
@@ -39,8 +33,6 @@ declare const DesignSystemConfigSchema: z.ZodObject<{
|
|
|
39
33
|
borderRadius: "0" | "0.3" | "0.5" | "0.75" | "1.0";
|
|
40
34
|
spacingScale: "default" | "compact" | "comfortable";
|
|
41
35
|
}, {
|
|
42
|
-
componentLibrary: "base-ui" | "radix";
|
|
43
|
-
styleVariant: "default" | "new-york";
|
|
44
36
|
baseColor: "neutral" | "gray" | "zinc" | "slate" | "stone";
|
|
45
37
|
themeColor: "neutral" | "gray" | "zinc" | "slate" | "stone" | "red" | "rose" | "orange" | "green" | "blue" | "yellow" | "violet";
|
|
46
38
|
menuAccent: "none" | "muted" | "primary";
|
|
@@ -76,8 +68,6 @@ declare const ProjectConfigSchema: z.ZodObject<{
|
|
|
76
68
|
structure: z.ZodEnum<["standalone", "monorepo"]>;
|
|
77
69
|
marketingSite: z.ZodEnum<["none", "nextjs", "payload"]>;
|
|
78
70
|
shadcn: z.ZodObject<{
|
|
79
|
-
componentLibrary: z.ZodEnum<["base-ui", "radix"]>;
|
|
80
|
-
styleVariant: z.ZodEnum<["default", "new-york"]>;
|
|
81
71
|
baseColor: z.ZodEnum<["neutral", "gray", "zinc", "slate", "stone"]>;
|
|
82
72
|
themeColor: z.ZodEnum<["zinc", "slate", "stone", "gray", "neutral", "red", "rose", "orange", "green", "blue", "yellow", "violet"]>;
|
|
83
73
|
menuAccent: z.ZodEnum<["none", "muted", "primary"]>;
|
|
@@ -87,8 +77,6 @@ declare const ProjectConfigSchema: z.ZodObject<{
|
|
|
87
77
|
borderRadius: z.ZodEnum<["0", "0.3", "0.5", "0.75", "1.0"]>;
|
|
88
78
|
spacingScale: z.ZodEnum<["default", "compact", "comfortable"]>;
|
|
89
79
|
}, "strip", z.ZodTypeAny, {
|
|
90
|
-
componentLibrary: "base-ui" | "radix";
|
|
91
|
-
styleVariant: "default" | "new-york";
|
|
92
80
|
baseColor: "neutral" | "gray" | "zinc" | "slate" | "stone";
|
|
93
81
|
themeColor: "neutral" | "gray" | "zinc" | "slate" | "stone" | "red" | "rose" | "orange" | "green" | "blue" | "yellow" | "violet";
|
|
94
82
|
menuAccent: "none" | "muted" | "primary";
|
|
@@ -98,8 +86,6 @@ declare const ProjectConfigSchema: z.ZodObject<{
|
|
|
98
86
|
borderRadius: "0" | "0.3" | "0.5" | "0.75" | "1.0";
|
|
99
87
|
spacingScale: "default" | "compact" | "comfortable";
|
|
100
88
|
}, {
|
|
101
|
-
componentLibrary: "base-ui" | "radix";
|
|
102
|
-
styleVariant: "default" | "new-york";
|
|
103
89
|
baseColor: "neutral" | "gray" | "zinc" | "slate" | "stone";
|
|
104
90
|
themeColor: "neutral" | "gray" | "zinc" | "slate" | "stone" | "red" | "rose" | "orange" | "green" | "blue" | "yellow" | "violet";
|
|
105
91
|
menuAccent: "none" | "muted" | "primary";
|
|
@@ -137,8 +123,6 @@ declare const ProjectConfigSchema: z.ZodObject<{
|
|
|
137
123
|
structure: "standalone" | "monorepo";
|
|
138
124
|
marketingSite: "none" | "nextjs" | "payload";
|
|
139
125
|
shadcn: {
|
|
140
|
-
componentLibrary: "base-ui" | "radix";
|
|
141
|
-
styleVariant: "default" | "new-york";
|
|
142
126
|
baseColor: "neutral" | "gray" | "zinc" | "slate" | "stone";
|
|
143
127
|
themeColor: "neutral" | "gray" | "zinc" | "slate" | "stone" | "red" | "rose" | "orange" | "green" | "blue" | "yellow" | "violet";
|
|
144
128
|
menuAccent: "none" | "muted" | "primary";
|
|
@@ -164,8 +148,6 @@ declare const ProjectConfigSchema: z.ZodObject<{
|
|
|
164
148
|
structure: "standalone" | "monorepo";
|
|
165
149
|
marketingSite: "none" | "nextjs" | "payload";
|
|
166
150
|
shadcn: {
|
|
167
|
-
componentLibrary: "base-ui" | "radix";
|
|
168
|
-
styleVariant: "default" | "new-york";
|
|
169
151
|
baseColor: "neutral" | "gray" | "zinc" | "slate" | "stone";
|
|
170
152
|
themeColor: "neutral" | "gray" | "zinc" | "slate" | "stone" | "red" | "rose" | "orange" | "green" | "blue" | "yellow" | "violet";
|
|
171
153
|
menuAccent: "none" | "muted" | "primary";
|
|
@@ -190,8 +172,6 @@ declare const CLIInputSchema: z.ZodObject<{
|
|
|
190
172
|
projectName: z.ZodOptional<z.ZodString>;
|
|
191
173
|
structure: z.ZodOptional<z.ZodEnum<["standalone", "monorepo"]>>;
|
|
192
174
|
marketingSite: z.ZodOptional<z.ZodEnum<["none", "nextjs", "payload"]>>;
|
|
193
|
-
componentLibrary: z.ZodOptional<z.ZodEnum<["base-ui", "radix"]>>;
|
|
194
|
-
styleVariant: z.ZodOptional<z.ZodEnum<["default", "new-york"]>>;
|
|
195
175
|
baseColor: z.ZodOptional<z.ZodEnum<["neutral", "gray", "zinc", "slate", "stone"]>>;
|
|
196
176
|
themeColor: z.ZodOptional<z.ZodEnum<["zinc", "slate", "stone", "gray", "neutral", "red", "rose", "orange", "green", "blue", "yellow", "violet"]>>;
|
|
197
177
|
menuAccent: z.ZodOptional<z.ZodEnum<["none", "muted", "primary"]>>;
|
|
@@ -210,8 +190,6 @@ declare const CLIInputSchema: z.ZodObject<{
|
|
|
210
190
|
install: z.ZodOptional<z.ZodBoolean>;
|
|
211
191
|
yes: z.ZodOptional<z.ZodBoolean>;
|
|
212
192
|
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
componentLibrary?: "base-ui" | "radix" | undefined;
|
|
214
|
-
styleVariant?: "default" | "new-york" | undefined;
|
|
215
193
|
baseColor?: "neutral" | "gray" | "zinc" | "slate" | "stone" | undefined;
|
|
216
194
|
themeColor?: "neutral" | "gray" | "zinc" | "slate" | "stone" | "red" | "rose" | "orange" | "green" | "blue" | "yellow" | "violet" | undefined;
|
|
217
195
|
menuAccent?: "none" | "muted" | "primary" | undefined;
|
|
@@ -233,8 +211,6 @@ declare const CLIInputSchema: z.ZodObject<{
|
|
|
233
211
|
install?: boolean | undefined;
|
|
234
212
|
yes?: boolean | undefined;
|
|
235
213
|
}, {
|
|
236
|
-
componentLibrary?: "base-ui" | "radix" | undefined;
|
|
237
|
-
styleVariant?: "default" | "new-york" | undefined;
|
|
238
214
|
baseColor?: "neutral" | "gray" | "zinc" | "slate" | "stone" | undefined;
|
|
239
215
|
themeColor?: "neutral" | "gray" | "zinc" | "slate" | "stone" | "red" | "rose" | "orange" | "green" | "blue" | "yellow" | "violet" | undefined;
|
|
240
216
|
menuAccent?: "none" | "muted" | "primary" | undefined;
|
|
@@ -263,8 +239,6 @@ type MarketingSite = z.infer<typeof MarketingSiteSchema>;
|
|
|
263
239
|
type AuthProvider = z.infer<typeof AuthProviderSchema>;
|
|
264
240
|
type AnalyticsProvider = z.infer<typeof AnalyticsProviderSchema>;
|
|
265
241
|
type UploadsProvider = z.infer<typeof UploadsProviderSchema>;
|
|
266
|
-
type ComponentLibrary = z.infer<typeof ComponentLibrarySchema>;
|
|
267
|
-
type StyleVariant = z.infer<typeof StyleVariantSchema>;
|
|
268
242
|
type BaseColor = z.infer<typeof BaseColorSchema>;
|
|
269
243
|
type ThemeColor = z.infer<typeof ThemeColorSchema>;
|
|
270
244
|
type MenuAccent = z.infer<typeof MenuAccentSchema>;
|
|
@@ -309,4 +283,4 @@ interface GeneratorResult {
|
|
|
309
283
|
errors?: string[];
|
|
310
284
|
}
|
|
311
285
|
|
|
312
|
-
export { type Addon, AddonSchema, type AnalyticsProvider, AnalyticsProviderSchema, type AuthConfig, AuthConfigSchema, type AuthProvider, AuthProviderSchema, type BaseColor, BaseColorSchema, type BorderRadius, BorderRadiusSchema, type CLIInput, CLIInputSchema,
|
|
286
|
+
export { type Addon, AddonSchema, type AnalyticsProvider, AnalyticsProviderSchema, type AuthConfig, AuthConfigSchema, type AuthProvider, AuthProviderSchema, type BaseColor, BaseColorSchema, type BorderRadius, BorderRadiusSchema, type CLIInput, CLIInputSchema, DEFAULT_CONFIG, type DesignSystemConfig, DesignSystemConfigSchema, type FontFamily, FontFamilySchema, type GeneratorOptions, type GeneratorResult, type IconLibrary, IconLibrarySchema, type IntegrationsConfig, IntegrationsConfigSchema, type MarketingSite, MarketingSiteSchema, type MenuAccent, MenuAccentSchema, type PackageManager, PackageManagerSchema, type ProjectConfig, ProjectConfigSchema, type ProjectStructure, ProjectStructureSchema, type SpacingScale, SpacingScaleSchema, type ThemeColor, ThemeColorSchema, type UploadsProvider, UploadsProviderSchema, type VirtualDirectory, type VirtualFile, type VirtualFileTree, type VirtualNode };
|
package/dist/index.js
CHANGED
|
@@ -18,8 +18,6 @@ var UploadsProviderSchema = z.enum([
|
|
|
18
18
|
"s3",
|
|
19
19
|
"vercel-blob"
|
|
20
20
|
]);
|
|
21
|
-
var ComponentLibrarySchema = z.enum(["base-ui", "radix"]);
|
|
22
|
-
var StyleVariantSchema = z.enum(["default", "new-york"]);
|
|
23
21
|
var BaseColorSchema = z.enum(["neutral", "gray", "zinc", "slate", "stone"]);
|
|
24
22
|
var ThemeColorSchema = z.enum([
|
|
25
23
|
"zinc",
|
|
@@ -51,8 +49,6 @@ var AddonSchema = z.enum([
|
|
|
51
49
|
"monitoring"
|
|
52
50
|
]);
|
|
53
51
|
var DesignSystemConfigSchema = z.object({
|
|
54
|
-
componentLibrary: ComponentLibrarySchema,
|
|
55
|
-
styleVariant: StyleVariantSchema,
|
|
56
52
|
baseColor: BaseColorSchema,
|
|
57
53
|
themeColor: ThemeColorSchema,
|
|
58
54
|
menuAccent: MenuAccentSchema,
|
|
@@ -92,8 +88,6 @@ var CLIInputSchema = z.object({
|
|
|
92
88
|
projectName: z.string().optional(),
|
|
93
89
|
structure: ProjectStructureSchema.optional(),
|
|
94
90
|
marketingSite: MarketingSiteSchema.optional(),
|
|
95
|
-
componentLibrary: ComponentLibrarySchema.optional(),
|
|
96
|
-
styleVariant: StyleVariantSchema.optional(),
|
|
97
91
|
baseColor: BaseColorSchema.optional(),
|
|
98
92
|
themeColor: ThemeColorSchema.optional(),
|
|
99
93
|
menuAccent: MenuAccentSchema.optional(),
|
|
@@ -119,12 +113,10 @@ var DEFAULT_CONFIG = {
|
|
|
119
113
|
structure: "standalone",
|
|
120
114
|
marketingSite: "none",
|
|
121
115
|
shadcn: {
|
|
122
|
-
componentLibrary: "base-ui",
|
|
123
|
-
styleVariant: "default",
|
|
124
116
|
baseColor: "neutral",
|
|
125
117
|
themeColor: "zinc",
|
|
126
118
|
menuAccent: "muted",
|
|
127
|
-
iconLibrary: "
|
|
119
|
+
iconLibrary: "lucide",
|
|
128
120
|
headingFont: "geist",
|
|
129
121
|
bodyFont: "geist",
|
|
130
122
|
borderRadius: "0.5",
|
|
@@ -149,7 +141,6 @@ export {
|
|
|
149
141
|
BaseColorSchema,
|
|
150
142
|
BorderRadiusSchema,
|
|
151
143
|
CLIInputSchema,
|
|
152
|
-
ComponentLibrarySchema,
|
|
153
144
|
DEFAULT_CONFIG,
|
|
154
145
|
DesignSystemConfigSchema,
|
|
155
146
|
FontFamilySchema,
|
|
@@ -161,7 +152,6 @@ export {
|
|
|
161
152
|
ProjectConfigSchema,
|
|
162
153
|
ProjectStructureSchema,
|
|
163
154
|
SpacingScaleSchema,
|
|
164
|
-
StyleVariantSchema,
|
|
165
155
|
ThemeColorSchema,
|
|
166
156
|
UploadsProviderSchema
|
|
167
157
|
};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -5,8 +5,6 @@ export {
|
|
|
5
5
|
AuthProviderSchema,
|
|
6
6
|
AnalyticsProviderSchema,
|
|
7
7
|
UploadsProviderSchema,
|
|
8
|
-
ComponentLibrarySchema,
|
|
9
|
-
StyleVariantSchema,
|
|
10
8
|
BaseColorSchema,
|
|
11
9
|
ThemeColorSchema,
|
|
12
10
|
MenuAccentSchema,
|
|
@@ -31,8 +29,6 @@ export type {
|
|
|
31
29
|
AuthProvider,
|
|
32
30
|
AnalyticsProvider,
|
|
33
31
|
UploadsProvider,
|
|
34
|
-
ComponentLibrary,
|
|
35
|
-
StyleVariant,
|
|
36
32
|
BaseColor,
|
|
37
33
|
ThemeColor,
|
|
38
34
|
MenuAccent,
|
package/src/schemas.ts
CHANGED
|
@@ -28,11 +28,6 @@ export const UploadsProviderSchema = z.enum([
|
|
|
28
28
|
'vercel-blob',
|
|
29
29
|
])
|
|
30
30
|
|
|
31
|
-
// Component library (shadcn style)
|
|
32
|
-
export const ComponentLibrarySchema = z.enum(['base-ui', 'radix'])
|
|
33
|
-
|
|
34
|
-
// Style variant
|
|
35
|
-
export const StyleVariantSchema = z.enum(['default', 'new-york'])
|
|
36
31
|
|
|
37
32
|
// Base color
|
|
38
33
|
export const BaseColorSchema = z.enum(['neutral', 'gray', 'zinc', 'slate', 'stone'])
|
|
@@ -84,8 +79,6 @@ export const AddonSchema = z.enum([
|
|
|
84
79
|
|
|
85
80
|
// Design system configuration
|
|
86
81
|
export const DesignSystemConfigSchema = z.object({
|
|
87
|
-
componentLibrary: ComponentLibrarySchema,
|
|
88
|
-
styleVariant: StyleVariantSchema,
|
|
89
82
|
baseColor: BaseColorSchema,
|
|
90
83
|
themeColor: ThemeColorSchema,
|
|
91
84
|
menuAccent: MenuAccentSchema,
|
|
@@ -139,8 +132,6 @@ export const CLIInputSchema = z.object({
|
|
|
139
132
|
projectName: z.string().optional(),
|
|
140
133
|
structure: ProjectStructureSchema.optional(),
|
|
141
134
|
marketingSite: MarketingSiteSchema.optional(),
|
|
142
|
-
componentLibrary: ComponentLibrarySchema.optional(),
|
|
143
|
-
styleVariant: StyleVariantSchema.optional(),
|
|
144
135
|
baseColor: BaseColorSchema.optional(),
|
|
145
136
|
themeColor: ThemeColorSchema.optional(),
|
|
146
137
|
menuAccent: MenuAccentSchema.optional(),
|
|
@@ -167,12 +158,10 @@ export const DEFAULT_CONFIG: z.infer<typeof ProjectConfigSchema> = {
|
|
|
167
158
|
structure: 'standalone',
|
|
168
159
|
marketingSite: 'none',
|
|
169
160
|
shadcn: {
|
|
170
|
-
componentLibrary: 'base-ui',
|
|
171
|
-
styleVariant: 'default',
|
|
172
161
|
baseColor: 'neutral',
|
|
173
162
|
themeColor: 'zinc',
|
|
174
163
|
menuAccent: 'muted',
|
|
175
|
-
iconLibrary: '
|
|
164
|
+
iconLibrary: 'lucide',
|
|
176
165
|
headingFont: 'geist',
|
|
177
166
|
bodyFont: 'geist',
|
|
178
167
|
borderRadius: '0.5',
|
package/src/types.ts
CHANGED
|
@@ -5,8 +5,6 @@ import type {
|
|
|
5
5
|
AuthProviderSchema,
|
|
6
6
|
AnalyticsProviderSchema,
|
|
7
7
|
UploadsProviderSchema,
|
|
8
|
-
ComponentLibrarySchema,
|
|
9
|
-
StyleVariantSchema,
|
|
10
8
|
BaseColorSchema,
|
|
11
9
|
ThemeColorSchema,
|
|
12
10
|
MenuAccentSchema,
|
|
@@ -29,8 +27,6 @@ export type MarketingSite = z.infer<typeof MarketingSiteSchema>
|
|
|
29
27
|
export type AuthProvider = z.infer<typeof AuthProviderSchema>
|
|
30
28
|
export type AnalyticsProvider = z.infer<typeof AnalyticsProviderSchema>
|
|
31
29
|
export type UploadsProvider = z.infer<typeof UploadsProviderSchema>
|
|
32
|
-
export type ComponentLibrary = z.infer<typeof ComponentLibrarySchema>
|
|
33
|
-
export type StyleVariant = z.infer<typeof StyleVariantSchema>
|
|
34
30
|
export type BaseColor = z.infer<typeof BaseColorSchema>
|
|
35
31
|
export type ThemeColor = z.infer<typeof ThemeColorSchema>
|
|
36
32
|
export type MenuAccent = z.infer<typeof MenuAccentSchema>
|