kira-kit 0.3.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.
Files changed (32) hide show
  1. package/README.md +273 -176
  2. package/dist/index.mjs +4755 -1204
  3. package/package.json +71 -64
  4. package/templates/monorepo/components.json +23 -23
  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/components.json +23 -23
  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/components.json +23 -23
  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/components.json +23 -23
  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
@@ -1,23 +1,23 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema.json",
3
- "style": "base-nova",
4
- "rsc": false,
5
- "tsx": true,
6
- "tailwind": {
7
- "config": "",
8
- "css": "src/index.css",
9
- "baseColor": "neutral",
10
- "cssVariables": true
11
- },
12
- "aliases": {
13
- "components": "@/components",
14
- "utils": "@/lib/utils",
15
- "ui": "@/components/ui",
16
- "lib": "@/lib",
17
- "hooks": "@/hooks"
18
- },
19
- "iconLibrary": "tabler",
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": "src/index.css",
9
+ "baseColor": "neutral",
10
+ "cssVariables": true
11
+ },
12
+ "aliases": {
13
+ "components": "@/components",
14
+ "utils": "@/lib/utils",
15
+ "ui": "@/components/ui",
16
+ "lib": "@/lib",
17
+ "hooks": "@/hooks"
18
+ },
19
+ "iconLibrary": "tabler",
20
+ "registries": {
21
+ "@kira-kit": "https://kira-kit.vercel.app/r/{name}.json"
22
+ }
23
+ }
@@ -1,28 +1,31 @@
1
- {
2
- "name": "kira-vite-app",
3
- "private": true,
4
- "type": "module",
5
- "scripts": {
6
- "dev": "vite",
7
- "build": "tsc -b && vite build",
8
- "preview": "vite preview"
9
- },
10
- "dependencies": {
11
- "@base-ui/react": "^1.9.0",
12
- "@tabler/icons-react": "^3.49.0",
13
- "@tailwindcss/vite": "^4.3.3",
14
- "class-variance-authority": "^0.7.1",
15
- "cn": "^0.5.2",
16
- "react": "^19.3.1",
17
- "react-dom": "^19.3.1",
18
- "tailwindcss": "^4.3.3"
19
- },
20
- "devDependencies": {
21
- "@types/node": "^22.0.0",
22
- "@types/react": "^19.3.0",
23
- "@types/react-dom": "^19.3.0",
24
- "@vitejs/plugin-react": "^6.1.2",
25
- "typescript": "~5.9.3",
26
- "vite": "^8.3.5"
27
- }
28
- }
1
+ {
2
+ "name": "kira-vite-app",
3
+ "private": true,
4
+ "type": "module",
5
+ "scripts": {
6
+ "dev": "vite",
7
+ "build": "tsc -b && vite build",
8
+ "preview": "vite preview"
9
+ },
10
+ "dependencies": {
11
+ "@base-ui/react": "^1.9.0",
12
+ "@fontsource-variable/geist": "^5.3.0",
13
+ "@fontsource-variable/geist-mono": "^5.3.0",
14
+ "@tabler/icons-react": "^3.49.0",
15
+ "@tailwindcss/vite": "^4.3.3",
16
+ "class-variance-authority": "^0.7.1",
17
+ "cn": "^0.5.2",
18
+ "react": "^19.3.1",
19
+ "react-dom": "^19.3.1",
20
+ "tailwindcss": "^4.3.3",
21
+ "tw-animate-css": "^1.4.0"
22
+ },
23
+ "devDependencies": {
24
+ "@types/node": "^22.0.0",
25
+ "@types/react": "^19.3.0",
26
+ "@types/react-dom": "^19.3.0",
27
+ "@vitejs/plugin-react": "^6.1.2",
28
+ "typescript": "~5.9.3",
29
+ "vite": "^8.3.5"
30
+ }
31
+ }
@@ -1,60 +1,60 @@
1
- import type { ComponentPropsWithoutRef } 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
- export const welcomeVariants = cva(
8
- "w-full max-w-lg rounded-xl border bg-card p-8 text-card-foreground shadow-sm",
9
- {
10
- variants: {
11
- variant: {
12
- default: "border-border",
13
- accent: "border-primary/20 bg-primary/5",
14
- },
15
- },
16
- defaultVariants: {
17
- variant: "default",
18
- },
19
- },
20
- );
21
-
22
- type WelcomeProps = ComponentPropsWithoutRef<"section"> &
23
- VariantProps<typeof welcomeVariants>;
24
-
25
- export function Welcome({ className, variant, ...props }: WelcomeProps) {
26
- return (
27
- <section
28
- data-slot="welcome"
29
- className={cn(welcomeVariants({ variant }), className)}
30
- {...props}
31
- >
32
- <div className="flex items-start gap-4">
33
- <IconSparkles
34
- aria-hidden="true"
35
- className="size-10 shrink-0 rounded-lg bg-primary p-2 text-primary-foreground"
36
- />
37
- <div className="space-y-2">
38
- <h1 className="text-2xl font-semibold tracking-tight">
39
- Kira Kit is ready
40
- </h1>
41
- <p className="text-sm leading-6 text-muted-foreground">
42
- Your project is configured for Base UI, Tailwind CSS, and the Kira
43
- Kit registry.
44
- </p>
45
- </div>
46
- </div>
47
- <div className="mt-6 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
48
- <code className="rounded-md bg-muted px-3 py-2 text-xs sm:text-sm">
49
- shadcn add @kira-kit/button
50
- </code>
51
- <ButtonPrimitive
52
- type="button"
53
- className="inline-flex h-9 shrink-0 items-center justify-center rounded-lg bg-primary px-4 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"
54
- >
55
- Start building
56
- </ButtonPrimitive>
57
- </div>
58
- </section>
59
- );
60
- }
1
+ import type { ComponentPropsWithoutRef } 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
+ export const welcomeVariants = cva(
8
+ "w-full max-w-lg rounded-xl border bg-card p-8 text-card-foreground shadow-sm",
9
+ {
10
+ variants: {
11
+ variant: {
12
+ default: "border-border",
13
+ accent: "border-primary/20 bg-primary/5",
14
+ },
15
+ },
16
+ defaultVariants: {
17
+ variant: "default",
18
+ },
19
+ },
20
+ );
21
+
22
+ type WelcomeProps = ComponentPropsWithoutRef<"section"> &
23
+ VariantProps<typeof welcomeVariants>;
24
+
25
+ export function Welcome({ className, variant, ...props }: WelcomeProps) {
26
+ return (
27
+ <section
28
+ data-slot="welcome"
29
+ className={cn(welcomeVariants({ variant }), className)}
30
+ {...props}
31
+ >
32
+ <div className="flex items-start gap-4">
33
+ <IconSparkles
34
+ aria-hidden="true"
35
+ className="size-10 shrink-0 rounded-lg bg-primary p-2 text-primary-foreground"
36
+ />
37
+ <div className="space-y-2">
38
+ <h1 className="text-2xl font-semibold tracking-tight">
39
+ Kira Kit is ready
40
+ </h1>
41
+ <p className="text-sm leading-6 text-muted-foreground">
42
+ Your project is configured for Base UI, Tailwind CSS, and the Kira
43
+ Kit registry.
44
+ </p>
45
+ </div>
46
+ </div>
47
+ <div className="mt-6 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
48
+ <code className="rounded-md bg-muted px-3 py-2 text-xs sm:text-sm">
49
+ kira-kit add @kira-kit/button
50
+ </code>
51
+ <ButtonPrimitive
52
+ type="button"
53
+ className="inline-flex h-9 shrink-0 items-center justify-center rounded-lg bg-primary px-4 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"
54
+ >
55
+ Start building
56
+ </ButtonPrimitive>
57
+ </div>
58
+ </section>
59
+ );
60
+ }