kira-kit 0.4.0 → 0.5.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 +273 -176
- package/dist/index.mjs +4763 -1284
- package/package.json +71 -64
- package/templates/monorepo/components.json +23 -23
- package/templates/monorepo/packages/ui/package.json +37 -32
- package/templates/monorepo/packages/ui/src/components/ui/welcome.tsx +52 -52
- package/templates/monorepo/packages/ui/src/index.css +738 -89
- package/templates/monorepo/packages/ui/src/styles/kira-utilities.css +649 -0
- package/templates/monorepo/packages/ui/tsconfig.json +8 -7
- package/templates/next/app/globals.css +731 -83
- package/templates/next/app/kira-utilities.css +649 -0
- package/templates/next/components/ui/welcome.tsx +62 -62
- package/templates/next/components.json +23 -23
- package/templates/next/package.json +31 -28
- package/templates/next/types/import-meta.d.ts +11 -0
- package/templates/tanstack-start/README.md +16 -16
- package/templates/tanstack-start/components.json +23 -23
- package/templates/tanstack-start/package.json +33 -30
- package/templates/tanstack-start/src/components/ui/route-transition.tsx +116 -0
- package/templates/tanstack-start/src/components/ui/welcome.tsx +52 -52
- package/templates/tanstack-start/src/index.css +738 -89
- package/templates/tanstack-start/src/lib/view-transition.ts +35 -0
- package/templates/tanstack-start/src/router.tsx +23 -15
- package/templates/tanstack-start/src/routes/__root.tsx +70 -41
- package/templates/tanstack-start/src/styles/kira-utilities.css +649 -0
- package/templates/tanstack-start/tsconfig.json +22 -21
- package/templates/vite/components.json +23 -23
- package/templates/vite/package.json +31 -28
- package/templates/vite/src/components/ui/welcome.tsx +60 -60
- package/templates/vite/src/index.css +731 -83
- package/templates/vite/src/styles/kira-utilities.css +649 -0
- package/templates/vite/tsconfig.node.json +25 -22
package/package.json
CHANGED
|
@@ -1,64 +1,71 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "kira-kit",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"publishConfig": {
|
|
5
|
-
"access": "public"
|
|
6
|
-
},
|
|
7
|
-
"description": "CLI for Kira Kit — a
|
|
8
|
-
"type": "module",
|
|
9
|
-
"bin": {
|
|
10
|
-
"kira-kit": "dist/index.mjs"
|
|
11
|
-
},
|
|
12
|
-
"engines": {
|
|
13
|
-
"node": ">=22"
|
|
14
|
-
},
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "kira-kit",
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "CLI for Kira Kit — a native registry of Base UI components, plus OKLCH theme generation and quality checks",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"bin": {
|
|
10
|
+
"kira-kit": "dist/index.mjs"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=22.12.0"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/Kiranaide/Kira-Kit.git",
|
|
18
|
+
"directory": "packages/cli"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://kira-kit.vercel.app",
|
|
21
|
+
"bugs": "https://github.com/Kiranaide/Kira-Kit/issues",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"templates"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "bun scripts/embed-assets.ts && tsdown",
|
|
28
|
+
"dev": "tsdown --watch",
|
|
29
|
+
"start": "node dist/index.mjs",
|
|
30
|
+
"test": "vitest run",
|
|
31
|
+
"test:watch": "vitest",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"lint": "oxlint src test --config ../../oxlint.config.ts --ignore-pattern \"test/fixtures/**\"",
|
|
34
|
+
"changeset": "changeset",
|
|
35
|
+
"version": "changeset version",
|
|
36
|
+
"release": "changeset publish"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"kira-kit",
|
|
40
|
+
"ui-components",
|
|
41
|
+
"base-ui",
|
|
42
|
+
"registry",
|
|
43
|
+
"oklch",
|
|
44
|
+
"theme",
|
|
45
|
+
"cli",
|
|
46
|
+
"react",
|
|
47
|
+
"tailwind"
|
|
48
|
+
],
|
|
49
|
+
"author": "Kiranaide",
|
|
50
|
+
"license": "MIT",
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@clack/prompts": "^1.9.0",
|
|
53
|
+
"apca-w3": "^0.1.9",
|
|
54
|
+
"commander": "^15.1.0",
|
|
55
|
+
"culori": "^4.0.2",
|
|
56
|
+
"diff": "^8.0.2",
|
|
57
|
+
"package-manager-detector": "^1.9.0",
|
|
58
|
+
"picocolors": "^1.1.1",
|
|
59
|
+
"typescript": "^5.9.0",
|
|
60
|
+
"zod": "^4.6.7"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@changesets/changelog-github": "^0.5.1",
|
|
64
|
+
"@changesets/cli": "^3.0.3",
|
|
65
|
+
"@types/culori": "^4.0.1",
|
|
66
|
+
"@types/node": "^22.0.0",
|
|
67
|
+
"lucide-react": "^1.76.0",
|
|
68
|
+
"tsdown": "^0.23.7",
|
|
69
|
+
"vitest": "^5.1.0"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://
|
|
3
|
-
"style": "
|
|
4
|
-
"rsc": false,
|
|
5
|
-
"tsx": true,
|
|
6
|
-
"tailwind": {
|
|
7
|
-
"config": "",
|
|
8
|
-
"css": "packages/ui/src/index.css",
|
|
9
|
-
"baseColor": "neutral",
|
|
10
|
-
"cssVariables": true
|
|
11
|
-
},
|
|
12
|
-
"iconLibrary": "tabler",
|
|
13
|
-
"aliases": {
|
|
14
|
-
"components": "@/components",
|
|
15
|
-
"utils": "@/lib/utils",
|
|
16
|
-
"ui": "@/components/ui",
|
|
17
|
-
"lib": "@/lib",
|
|
18
|
-
"hooks": "@/hooks"
|
|
19
|
-
},
|
|
20
|
-
"registries": {
|
|
21
|
-
"@kira-kit": "https://kira-kit.vercel.app/r/{name}.json"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://kira-kit.vercel.app/schema/components.json",
|
|
3
|
+
"style": "kira",
|
|
4
|
+
"rsc": false,
|
|
5
|
+
"tsx": true,
|
|
6
|
+
"tailwind": {
|
|
7
|
+
"config": "",
|
|
8
|
+
"css": "packages/ui/src/index.css",
|
|
9
|
+
"baseColor": "neutral",
|
|
10
|
+
"cssVariables": true
|
|
11
|
+
},
|
|
12
|
+
"iconLibrary": "tabler",
|
|
13
|
+
"aliases": {
|
|
14
|
+
"components": "@/components",
|
|
15
|
+
"utils": "@/lib/utils",
|
|
16
|
+
"ui": "@/components/ui",
|
|
17
|
+
"lib": "@/lib",
|
|
18
|
+
"hooks": "@/hooks"
|
|
19
|
+
},
|
|
20
|
+
"registries": {
|
|
21
|
+
"@kira-kit": "https://kira-kit.vercel.app/r/{name}.json"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,32 +1,37 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@kira/ui",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"sideEffects": [
|
|
7
|
-
"**/*.css"
|
|
8
|
-
],
|
|
9
|
-
"exports": {
|
|
10
|
-
".": "./src/index.ts",
|
|
11
|
-
"./index.css": "./src/index.css",
|
|
12
|
-
"./components/*": "./src/components/*.tsx",
|
|
13
|
-
"./lib/*": "./src/lib/*.ts",
|
|
14
|
-
"./hooks/*": "./src/hooks/*.ts"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"typecheck": "tsc --noEmit"
|
|
18
|
-
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@base-ui/react": "^1.9.0",
|
|
21
|
-
"@
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
}
|
|
32
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@kira/ui",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.css"
|
|
8
|
+
],
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./src/index.ts",
|
|
11
|
+
"./index.css": "./src/index.css",
|
|
12
|
+
"./components/*": "./src/components/*.tsx",
|
|
13
|
+
"./lib/*": "./src/lib/*.ts",
|
|
14
|
+
"./hooks/*": "./src/hooks/*.ts"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"typecheck": "tsc --noEmit"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@base-ui/react": "^1.9.0",
|
|
21
|
+
"@fontsource-variable/geist": "^5.3.0",
|
|
22
|
+
"@fontsource-variable/geist-mono": "^5.3.0",
|
|
23
|
+
"@tabler/icons-react": "^3.49.0",
|
|
24
|
+
"class-variance-authority": "^0.7.1",
|
|
25
|
+
"cn": "^0.5.2",
|
|
26
|
+
"tailwindcss": "^4.3.3",
|
|
27
|
+
"tw-animate-css": "^1.4.0"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": "^19.3.1"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/react": "^19.3.0",
|
|
34
|
+
"typescript": "~5.9.3",
|
|
35
|
+
"vite": "^8.3.5"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
3
|
-
import { IconSparkles } from "@tabler/icons-react";
|
|
4
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
5
|
-
import { cn } from "
|
|
6
|
-
|
|
7
|
-
const welcomeVariants = cva(
|
|
8
|
-
"inline-flex items-center justify-center gap-2 rounded-lg border text-sm font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring
|
|
9
|
-
{
|
|
10
|
-
variants: {
|
|
11
|
-
variant: {
|
|
12
|
-
default:
|
|
13
|
-
"border-transparent bg-primary text-primary-foreground hover:bg-primary/90",
|
|
14
|
-
outline:
|
|
15
|
-
"border-border bg-background hover:bg-accent hover:text-accent-foreground",
|
|
16
|
-
},
|
|
17
|
-
size: {
|
|
18
|
-
sm: "h-8 px-3 text-xs",
|
|
19
|
-
default: "h-9 px-4",
|
|
20
|
-
lg: "h-10 px-5",
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
variant: "default",
|
|
25
|
-
size: "default",
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
type WelcomeProps = Omit<React.ComponentPropsWithoutRef<"button">, "size"> &
|
|
31
|
-
VariantProps<typeof welcomeVariants>;
|
|
32
|
-
|
|
33
|
-
export function Welcome({
|
|
34
|
-
children = "Start building",
|
|
35
|
-
className,
|
|
36
|
-
variant,
|
|
37
|
-
size,
|
|
38
|
-
...props
|
|
39
|
-
}: WelcomeProps) {
|
|
40
|
-
return (
|
|
41
|
-
<ButtonPrimitive
|
|
42
|
-
data-slot="welcome"
|
|
43
|
-
className={cn(welcomeVariants({ variant, size }), className)}
|
|
44
|
-
{...props}
|
|
45
|
-
>
|
|
46
|
-
<IconSparkles aria-hidden="true" />
|
|
47
|
-
{children}
|
|
48
|
-
</ButtonPrimitive>
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export { welcomeVariants };
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
3
|
+
import { IconSparkles } from "@tabler/icons-react";
|
|
4
|
+
import { cva, type VariantProps } from "class-variance-authority";
|
|
5
|
+
import { cn } from "cn";
|
|
6
|
+
|
|
7
|
+
const welcomeVariants = cva(
|
|
8
|
+
"inline-flex items-center justify-center gap-2 rounded-lg border text-sm font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default:
|
|
13
|
+
"border-transparent bg-primary text-primary-foreground hover:bg-primary/90",
|
|
14
|
+
outline:
|
|
15
|
+
"border-border bg-background hover:bg-accent hover:text-accent-foreground",
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
sm: "h-8 px-3 text-xs",
|
|
19
|
+
default: "h-9 px-4",
|
|
20
|
+
lg: "h-10 px-5",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: "default",
|
|
25
|
+
size: "default",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
type WelcomeProps = Omit<React.ComponentPropsWithoutRef<"button">, "size"> &
|
|
31
|
+
VariantProps<typeof welcomeVariants>;
|
|
32
|
+
|
|
33
|
+
export function Welcome({
|
|
34
|
+
children = "Start building",
|
|
35
|
+
className,
|
|
36
|
+
variant,
|
|
37
|
+
size,
|
|
38
|
+
...props
|
|
39
|
+
}: WelcomeProps) {
|
|
40
|
+
return (
|
|
41
|
+
<ButtonPrimitive
|
|
42
|
+
data-slot="welcome"
|
|
43
|
+
className={cn(welcomeVariants({ variant, size }), className)}
|
|
44
|
+
{...props}
|
|
45
|
+
>
|
|
46
|
+
<IconSparkles aria-hidden="true" />
|
|
47
|
+
{children}
|
|
48
|
+
</ButtonPrimitive>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { welcomeVariants };
|