ui8kit 1.0.4 → 1.0.6

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/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "ui8kit",
3
- "version": "1.0.4",
4
- "description": "UI8Kit components registry for buildy-ui cli",
3
+ "version": "1.0.6",
4
+ "description": "UI8Kit components registry for buildy-ui CLI - published from npm to CDN",
5
5
  "main": "index.js",
6
6
  "files": [
7
7
  "*.css",
8
8
  "**/*.css",
9
9
  "semantic/",
10
10
  "dist/",
11
+ "src/",
11
12
  "r/",
12
13
  "index.json"
13
14
  ],
@@ -34,12 +34,12 @@
34
34
  {
35
35
  "name": "card",
36
36
  "type": "registry:ui",
37
- "description": "A flexible card component for displaying content"
37
+ "description": ""
38
38
  },
39
39
  {
40
40
  "name": "button",
41
41
  "type": "registry:ui",
42
- "description": "A customizable button component with multiple variants and sizes"
42
+ "description": ""
43
43
  },
44
44
  {
45
45
  "name": "breadcrumb",
@@ -61,16 +61,6 @@
61
61
  "type": "registry:ui",
62
62
  "description": ""
63
63
  },
64
- {
65
- "name": "hero-section",
66
- "type": "registry:block",
67
- "description": ""
68
- },
69
- {
70
- "name": "hero-section",
71
- "type": "registry:block",
72
- "description": "A hero section component for landing pages"
73
- },
74
64
  {
75
65
  "name": "sheet",
76
66
  "type": "registry:component",
@@ -126,11 +116,6 @@
126
116
  "type": "registry:component",
127
117
  "description": "Helper function for determining styles that the parser will be able to process"
128
118
  },
129
- {
130
- "name": "landing-page",
131
- "type": "registry:template",
132
- "description": "A complete landing page template with hero, features, and footer sections"
133
- },
134
119
  {
135
120
  "name": "utils",
136
121
  "type": "registry:lib",
@@ -145,6 +130,6 @@
145
130
  "templates"
146
131
  ],
147
132
  "version": "1.0.0",
148
- "lastUpdated": "2025-06-02T13:06:19.458Z",
133
+ "lastUpdated": "2025-06-11T09:34:40.175Z",
149
134
  "registry": "utility"
150
135
  }
@@ -2,15 +2,17 @@
2
2
  "$schema": "https://buildy.tw/schema/registry-item.json",
3
3
  "name": "button",
4
4
  "type": "registry:ui",
5
- "description": "A customizable button component with multiple variants and sizes",
5
+ "description": "",
6
6
  "dependencies": [
7
- "react"
7
+ "react",
8
+ "@radix-ui/react-slot",
9
+ "class-variance-authority"
8
10
  ],
9
11
  "devDependencies": [],
10
12
  "files": [
11
13
  {
12
14
  "path": "utility/ui/button.tsx",
13
- "content": "/**\n * A customizable button component with multiple variants and sizes\n */\nimport React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\ninterface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: \"default\" | \"destructive\" | \"outline\" | \"secondary\" | \"ghost\" | \"link\"\n size?: \"default\" | \"sm\" | \"lg\" | \"icon\"\n asChild?: boolean\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant = \"default\", size = \"default\", asChild = false, ...props }, ref) => {\n const Comp = asChild ? \"span\" : \"button\"\n \n return (\n <Comp\n className={cn(\n \"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\",\n {\n \"bg-primary text-primary-foreground hover:bg-primary/90\": variant === \"default\",\n \"bg-destructive text-destructive-foreground hover:bg-destructive/90\": variant === \"destructive\",\n \"border border-input bg-background hover:bg-accent hover:text-accent-foreground\": variant === \"outline\",\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\": variant === \"secondary\",\n \"hover:bg-accent hover:text-accent-foreground\": variant === \"ghost\",\n \"text-primary underline-offset-4 hover:underline\": variant === \"link\",\n },\n {\n \"h-10 px-4 py-2\": size === \"default\",\n \"h-9 rounded-md px-3\": size === \"sm\",\n \"h-11 rounded-md px-8\": size === \"lg\",\n \"h-10 w-10\": size === \"icon\",\n },\n className\n )}\n ref={ref}\n {...props}\n />\n )\n }\n)\n\nButton.displayName = \"Button\"\n\nexport { Button, type ButtonProps }",
15
+ "content": "import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n {\n variants: {\n variant: {\n default:\n \"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60\",\n outline:\n \"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50\",\n secondary:\n \"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80\",\n ghost:\n \"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2 has-[>svg]:px-3\",\n sm: \"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5\",\n lg: \"h-10 rounded-md px-6 has-[>svg]:px-4\",\n icon: \"size-9\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nfunction Button({\n className,\n variant,\n size,\n asChild = false,\n ...props\n}: React.ComponentProps<\"button\"> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean\n }) {\n const Comp = asChild ? Slot : \"button\"\n\n return (\n <Comp\n data-slot=\"button\"\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n )\n}\n\nexport { Button, buttonVariants }",
14
16
  "target": "ui"
15
17
  }
16
18
  ]
@@ -2,13 +2,15 @@
2
2
  "$schema": "https://buildy.tw/schema/registry-item.json",
3
3
  "name": "card",
4
4
  "type": "registry:ui",
5
- "description": "A flexible card component for displaying content",
6
- "dependencies": [],
5
+ "description": "",
6
+ "dependencies": [
7
+ "react"
8
+ ],
7
9
  "devDependencies": [],
8
10
  "files": [
9
11
  {
10
12
  "path": "utility/ui/card.tsx",
11
- "content": "/**\n * A flexible card component for displaying content\n */\nimport { cn } from \"../../lib/utils\"\n\nexport function Card({ className, ...props }) {\n return (\n <div\n className={cn(\n \"rounded-lg border bg-card text-card-foreground shadow-sm\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport function CardHeader({ className, ...props }) {\n return (\n <div className={cn(\"flex flex-col space-y-1.5 p-6\", className)} {...props} />\n )\n}\n\nexport function CardTitle({ className, ...props }) {\n return (\n <h3\n className={cn(\n \"text-2xl font-semibold leading-none tracking-tight\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport function CardDescription({ className, ...props }) {\n return (\n <p className={cn(\"text-sm text-muted-foreground\", className)} {...props} />\n )\n}\n\nexport function CardContent({ className, ...props }) {\n return <div className={cn(\"p-6 pt-0\", className)} {...props} />\n}\n\nexport function CardFooter({ className, ...props }) {\n return (\n <div className={cn(\"flex items-center p-6 pt-0\", className)} {...props} />\n )\n}\n",
13
+ "content": "import * as React from \"react\"\nimport { cn } from \"@/lib/utils\";\n\nfunction Card({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card\"\n className={cn(\n \"bg-card text-card-foreground flex flex-col gap-6 rounded-md border shadow-sm\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n \"@container/card-header grid-rows-[auto_auto] grid auto-rows-min items-start gap-1.5 mt-4 px-6 has-[data-slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"h3\">) {\n return (\n <h3\n data-slot=\"card-title\"\n className={cn(\"leading-none font-bold text-xl mb-2\", className)}\n {...props}\n />\n )\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-description\"\n className={cn(\"text-muted-foreground text-sm mb-4\", className)}\n {...props}\n />\n )\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\n \"col-start-2 row-span-2 row-start-1 self-start justify-self-end\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardMeta({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-meta\"\n className={cn(\n \"flex flex-wrap items-center gap-3 text-sm text-muted-foreground\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction CardFigure({\n className,\n ...props\n}: React.ComponentProps<\"figure\">) {\n return (\n <figure\n data-slot=\"card-figure\"\n className={cn(\n \"overflow-hidden\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction CardImage({\n className,\n ...props\n}: React.ComponentProps<\"img\">) {\n return (\n <img\n data-slot=\"card-image\"\n className={cn(\n \"aspect-video w-full object-cover rounded-t-md\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction CardFigcaption({\n className,\n ...props\n}: React.ComponentProps<\"figcaption\">) {\n return (\n <figcaption\n data-slot=\"card-figcaption\"\n className={cn(\n \"mt-2 text-center text-sm text-muted-foreground\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-content\"\n className={cn(\"px-6 py-4\", className)}\n {...props}\n />\n )\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn(\"flex items-center px-6 [.border-t]:pt-6\", className)}\n {...props}\n />\n )\n}\n\nexport {\n Card,\n CardHeader,\n CardFooter,\n CardTitle,\n CardAction,\n CardDescription,\n CardMeta,\n CardFigure,\n CardImage,\n CardFigcaption,\n CardContent,\n}\n",
12
14
  "target": "ui"
13
15
  }
14
16
  ]
@@ -10,7 +10,7 @@
10
10
  "files": [
11
11
  {
12
12
  "path": "utility/ui/input.tsx",
13
- "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n \"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n \"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]\",\n \"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Input }",
13
+ "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n \"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Input }",
14
14
  "target": "ui"
15
15
  }
16
16
  ]
@@ -1,15 +0,0 @@
1
- {
2
- "$schema": "https://buildy.tw/schema/registry-item.json",
3
- "name": "hero-section",
4
- "type": "registry:block",
5
- "description": "A hero section component for landing pages",
6
- "dependencies": [],
7
- "devDependencies": [],
8
- "files": [
9
- {
10
- "path": "utility/blocks/hero-section.js",
11
- "content": "/**\r\n * A hero section component for landing pages\r\n */\r\nexport function HeroSection({ title, subtitle, children, className = \"\" }) {\r\n return `\r\n <section class=\"relative py-20 px-4 text-center ${className}\">\r\n <div class=\"max-w-4xl mx-auto\">\r\n ${title ? `<h1 class=\"text-4xl md:text-6xl font-bold mb-6\">${title}</h1>` : ''}\r\n ${subtitle ? `<p class=\"text-xl text-muted-foreground mb-8\">${subtitle}</p>` : ''}\r\n ${children || ''}\r\n </div>\r\n </section>\r\n `\r\n}\r\n\r\nexport function HeroActions({ children, className = \"\" }) {\r\n return `\r\n <div class=\"flex flex-col sm:flex-row gap-4 justify-center ${className}\">\r\n ${children || ''}\r\n </div>\r\n `\r\n} ",
12
- "target": "blocks"
13
- }
14
- ]
15
- }
@@ -1,15 +0,0 @@
1
- {
2
- "$schema": "https://buildy.tw/schema/registry-item.json",
3
- "name": "landing-page",
4
- "type": "registry:template",
5
- "description": "A complete landing page template with hero, features, and footer sections",
6
- "dependencies": [],
7
- "devDependencies": [],
8
- "files": [
9
- {
10
- "path": "utility/templates/landing-page.js",
11
- "content": "/**\r\n * A complete landing page template with hero, features, and footer sections\r\n */\r\nexport function LandingPageTemplate({ \r\n heroTitle, \r\n heroSubtitle, \r\n features = [], \r\n className = \"\" \r\n}) {\r\n const featuresHtml = features.map(feature => `\r\n <div class=\"p-6 border rounded-lg\">\r\n <h3 class=\"text-xl font-semibold mb-2\">${feature.title}</h3>\r\n <p class=\"text-muted-foreground\">${feature.description}</p>\r\n </div>\r\n `).join('')\r\n\r\n return `\r\n <div class=\"min-h-screen ${className}\">\r\n <!-- Hero Section -->\r\n <section class=\"relative py-20 px-4 text-center bg-gradient-to-b from-background to-muted\">\r\n <div class=\"max-w-4xl mx-auto\">\r\n <h1 class=\"text-4xl md:text-6xl font-bold mb-6\">${heroTitle}</h1>\r\n <p class=\"text-xl text-muted-foreground mb-8\">${heroSubtitle}</p>\r\n <div class=\"flex flex-col sm:flex-row gap-4 justify-center\">\r\n <button class=\"px-6 py-3 bg-primary text-primary-foreground rounded-md font-medium\">\r\n Get Started\r\n </button>\r\n <button class=\"px-6 py-3 border border-input rounded-md font-medium\">\r\n Learn More\r\n </button>\r\n </div>\r\n </div>\r\n </section>\r\n\r\n <!-- Features Section -->\r\n <section class=\"py-20 px-4\">\r\n <div class=\"max-w-6xl mx-auto\">\r\n <h2 class=\"text-3xl font-bold text-center mb-12\">Features</h2>\r\n <div class=\"grid grid-cols-1 md:grid-cols-3 gap-8\">\r\n ${featuresHtml}\r\n </div>\r\n </div>\r\n </section>\r\n\r\n <!-- Footer -->\r\n <footer class=\"py-12 px-4 border-t\">\r\n <div class=\"max-w-6xl mx-auto text-center\">\r\n <p class=\"text-muted-foreground\">© 2024 Your Company. All rights reserved.</p>\r\n </div>\r\n </footer>\r\n </div>\r\n `\r\n} ",
12
- "target": "templates"
13
- }
14
- ]
15
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes