kira-kit 0.4.0 → 0.6.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.
Files changed (36) hide show
  1. package/README.md +275 -176
  2. package/dist/index.mjs +4795 -1216
  3. package/package.json +71 -64
  4. package/templates/monorepo/kira-kit.json +21 -0
  5. package/templates/monorepo/packages/ui/package.json +37 -32
  6. package/templates/monorepo/packages/ui/src/components/ui/welcome.tsx +52 -52
  7. package/templates/monorepo/packages/ui/src/index.css +738 -89
  8. package/templates/monorepo/packages/ui/src/styles/kira-utilities.css +649 -0
  9. package/templates/monorepo/packages/ui/tsconfig.json +8 -7
  10. package/templates/next/app/globals.css +731 -83
  11. package/templates/next/app/kira-utilities.css +649 -0
  12. package/templates/next/components/ui/welcome.tsx +62 -62
  13. package/templates/next/kira-kit.json +21 -0
  14. package/templates/next/package.json +31 -28
  15. package/templates/next/types/import-meta.d.ts +11 -0
  16. package/templates/tanstack-start/README.md +16 -16
  17. package/templates/tanstack-start/kira-kit.json +21 -0
  18. package/templates/tanstack-start/package.json +33 -30
  19. package/templates/tanstack-start/src/components/ui/route-transition.tsx +116 -0
  20. package/templates/tanstack-start/src/components/ui/welcome.tsx +52 -52
  21. package/templates/tanstack-start/src/index.css +738 -89
  22. package/templates/tanstack-start/src/lib/view-transition.ts +35 -0
  23. package/templates/tanstack-start/src/router.tsx +23 -15
  24. package/templates/tanstack-start/src/routes/__root.tsx +70 -41
  25. package/templates/tanstack-start/src/styles/kira-utilities.css +649 -0
  26. package/templates/tanstack-start/tsconfig.json +22 -21
  27. package/templates/vite/kira-kit.json +21 -0
  28. package/templates/vite/package.json +31 -28
  29. package/templates/vite/src/components/ui/welcome.tsx +60 -60
  30. package/templates/vite/src/index.css +731 -83
  31. package/templates/vite/src/styles/kira-utilities.css +649 -0
  32. package/templates/vite/tsconfig.node.json +25 -22
  33. package/templates/monorepo/components.json +0 -23
  34. package/templates/next/components.json +0 -23
  35. package/templates/tanstack-start/components.json +0 -23
  36. package/templates/vite/components.json +0 -23
package/package.json CHANGED
@@ -1,64 +1,71 @@
1
- {
2
- "name": "kira-kit",
3
- "version": "0.4.0",
4
- "publishConfig": {
5
- "access": "public"
6
- },
7
- "description": "CLI for Kira Kit — a shadcn-compatible 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"
14
- },
15
- "files": [
16
- "dist",
17
- "templates"
18
- ],
19
- "scripts": {
20
- "build": "tsdown",
21
- "dev": "tsdown --watch",
22
- "start": "node dist/index.mjs",
23
- "test": "vitest run",
24
- "test:watch": "vitest",
25
- "typecheck": "tsc --noEmit",
26
- "lint": "oxlint src test --config ../../oxlint.config.ts --ignore-pattern \"test/fixtures/**\"",
27
- "changeset": "changeset",
28
- "version": "changeset version",
29
- "release": "changeset publish"
30
- },
31
- "keywords": [
32
- "kira-kit",
33
- "shadcn",
34
- "ui-components",
35
- "base-ui",
36
- "registry",
37
- "oklch",
38
- "theme",
39
- "cli",
40
- "react",
41
- "tailwind"
42
- ],
43
- "author": "Kiranaide",
44
- "license": "MIT",
45
- "dependencies": {
46
- "@clack/prompts": "^1.9.0",
47
- "apca-w3": "^0.1.9",
48
- "commander": "^15.1.0",
49
- "culori": "^4.0.2",
50
- "package-manager-detector": "^1.9.0",
51
- "picocolors": "^1.1.1",
52
- "shadcn": "4.22.1",
53
- "typescript": "^5.9.0",
54
- "zod": "^4.6.7"
55
- },
56
- "devDependencies": {
57
- "@changesets/changelog-github": "^0.5.1",
58
- "@changesets/cli": "^3.0.3",
59
- "@types/culori": "^4.0.1",
60
- "@types/node": "^22.0.0",
61
- "tsdown": "^0.23.7",
62
- "vitest": "^5.1.0"
63
- }
64
- }
1
+ {
2
+ "name": "kira-kit",
3
+ "version": "0.6.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
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://kira-kit.vercel.app/schema/kira-kit.json",
3
+ "css": "packages/ui/src/index.css",
4
+ "rsc": false,
5
+ "iconLibrary": "tabler",
6
+ "theme": {
7
+ "preset": "default",
8
+ "baseColor": "neutral",
9
+ "font": "geist",
10
+ "fontMono": "geist-mono"
11
+ },
12
+ "aliases": {
13
+ "components": "@/components",
14
+ "ui": "@/components/ui",
15
+ "hooks": "@/hooks",
16
+ "lib": "@/lib"
17
+ },
18
+ "registries": {
19
+ "@kira-kit": "https://kira-kit.vercel.app/r/{name}.json"
20
+ }
21
+ }
@@ -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
- "@tabler/icons-react": "^3.49.0",
22
- "class-variance-authority": "^0.7.1",
23
- "cn": "^0.5.2"
24
- },
25
- "peerDependencies": {
26
- "react": "^19.3.1"
27
- },
28
- "devDependencies": {
29
- "@types/react": "^19.3.0",
30
- "typescript": "~5.9.3"
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 "@/lib/utils";
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/50 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 };
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 };