kira-kit 0.2.1 → 0.4.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/README.md +132 -43
- package/dist/index.mjs +2544 -0
- package/package.json +38 -17
- package/templates/monorepo/components.json +23 -0
- package/templates/monorepo/package.json +13 -0
- package/templates/monorepo/packages/app/index.html +13 -0
- package/templates/monorepo/packages/app/package.json +27 -0
- package/templates/monorepo/packages/app/src/App.tsx +21 -0
- package/templates/monorepo/packages/app/src/index.css +3 -0
- package/templates/monorepo/packages/app/src/main.tsx +10 -0
- package/templates/monorepo/packages/app/tsconfig.json +8 -0
- package/templates/monorepo/packages/app/vite.config.ts +10 -0
- package/templates/monorepo/packages/ui/package.json +32 -0
- package/templates/monorepo/packages/ui/src/components/ui/welcome.tsx +52 -0
- package/templates/monorepo/packages/ui/src/index.css +123 -0
- package/templates/monorepo/packages/ui/src/index.ts +3 -0
- package/templates/monorepo/packages/ui/src/lib/utils.ts +1 -0
- package/templates/monorepo/packages/ui/tsconfig.json +7 -0
- package/templates/monorepo/tsconfig.json +23 -0
- package/templates/next/app/globals.css +124 -0
- package/templates/next/app/layout.tsx +18 -0
- package/templates/next/app/page.tsx +9 -0
- package/templates/next/components/ui/welcome.tsx +62 -0
- package/templates/next/components.json +23 -0
- package/templates/next/lib/utils.ts +1 -0
- package/templates/next/next-env.d.ts +2 -0
- package/templates/next/next.config.ts +5 -0
- package/templates/next/package.json +28 -0
- package/templates/next/postcss.config.mjs +7 -0
- package/templates/next/tsconfig.json +24 -0
- package/templates/tanstack-start/README.md +16 -0
- package/templates/tanstack-start/components.json +23 -0
- package/templates/tanstack-start/package.json +30 -0
- package/templates/tanstack-start/src/components/ui/welcome.tsx +52 -0
- package/templates/tanstack-start/src/index.css +123 -0
- package/templates/tanstack-start/src/lib/utils.ts +1 -0
- package/templates/tanstack-start/src/router.tsx +15 -0
- package/templates/tanstack-start/src/routes/__root.tsx +41 -0
- package/templates/tanstack-start/src/routes/index.tsx +26 -0
- package/{tsconfig.json → templates/tanstack-start/tsconfig.json} +6 -7
- package/templates/tanstack-start/vite.config.ts +11 -0
- package/templates/vite/components.json +23 -0
- package/templates/vite/index.html +16 -0
- package/templates/vite/package.json +28 -0
- package/templates/vite/src/App.tsx +9 -0
- package/templates/vite/src/components/ui/welcome.tsx +60 -0
- package/templates/vite/src/index.css +124 -0
- package/templates/vite/src/lib/utils.ts +1 -0
- package/templates/vite/src/main.tsx +10 -0
- package/templates/vite/tsconfig.json +29 -0
- package/templates/vite/tsconfig.node.json +22 -0
- package/templates/vite/vite.config.ts +13 -0
- package/bin/kira-kit.js +0 -27329
- package/bun.lock +0 -247
- package/src/commands/add.ts +0 -146
- package/src/commands/build.ts +0 -212
- package/src/commands/init.ts +0 -164
- package/src/commands/list.ts +0 -31
- package/src/index.ts +0 -118
- package/src/lib/build-config.ts +0 -81
- package/src/lib/config.ts +0 -109
- package/src/lib/deps.ts +0 -135
- package/src/lib/file.ts +0 -64
- package/src/lib/logger.ts +0 -102
- package/src/lib/registry.ts +0 -81
- package/src/lib/templates.ts +0 -123
- package/src/lib/theme-generator.ts +0 -246
- package/src/prompts/base-color.ts +0 -20
- package/src/prompts/primary-color.ts +0 -23
- package/src/prompts/project-type.ts +0 -71
- package/src/types.ts +0 -61
package/src/types.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export interface RegistryItem {
|
|
2
|
-
name: string;
|
|
3
|
-
type: "registry:ui" | "registry:hook";
|
|
4
|
-
title: string;
|
|
5
|
-
description: string;
|
|
6
|
-
dependencies: string[];
|
|
7
|
-
registryDependencies: string[];
|
|
8
|
-
files: Array<{
|
|
9
|
-
path: string;
|
|
10
|
-
type: "registry:component" | "registry:hook";
|
|
11
|
-
content: string;
|
|
12
|
-
}>;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface Registry {
|
|
16
|
-
$schema: string;
|
|
17
|
-
name: string;
|
|
18
|
-
homepage: string;
|
|
19
|
-
items: RegistryItem[];
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface ComponentsConfig {
|
|
23
|
-
$schema: string;
|
|
24
|
-
style: string;
|
|
25
|
-
rsc: boolean;
|
|
26
|
-
tsx: boolean;
|
|
27
|
-
registryUrl: string;
|
|
28
|
-
tailwind: {
|
|
29
|
-
config: string;
|
|
30
|
-
css: string;
|
|
31
|
-
baseColor: string;
|
|
32
|
-
cssVariables: boolean;
|
|
33
|
-
prefix?: string;
|
|
34
|
-
};
|
|
35
|
-
iconLibrary: string;
|
|
36
|
-
aliases: {
|
|
37
|
-
components: string;
|
|
38
|
-
utils: string;
|
|
39
|
-
ui: string;
|
|
40
|
-
lib: string;
|
|
41
|
-
hooks: string;
|
|
42
|
-
};
|
|
43
|
-
menuColor: string;
|
|
44
|
-
menuAccent: string;
|
|
45
|
-
registries: Record<string, string>;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface AddOptions {
|
|
49
|
-
components: string[];
|
|
50
|
-
cwd: string;
|
|
51
|
-
overwrite: boolean;
|
|
52
|
-
yes: boolean;
|
|
53
|
-
all: boolean;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface InitOptions {
|
|
57
|
-
cwd: string;
|
|
58
|
-
baseColor: string;
|
|
59
|
-
primaryColor: string;
|
|
60
|
-
yes: boolean;
|
|
61
|
-
}
|