ui8kit 1.0.6 → 1.3.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 +211 -194
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2930 -0
- package/dist/index.js.map +1 -0
- package/package.json +70 -28
- package/css/dist/styles.css +0 -3325
- package/css/src/semantic/alert.css +0 -11
- package/css/src/semantic/article.css +0 -59
- package/css/src/semantic/avatar.css +0 -11
- package/css/src/semantic/badge.css +0 -19
- package/css/src/semantic/breadcrumb.css +0 -23
- package/css/src/semantic/button.css +0 -39
- package/css/src/semantic/card.css +0 -43
- package/css/src/semantic/index.css +0 -19
- package/css/src/semantic/input.css +0 -3
- package/css/src/semantic/label.css +0 -3
- package/css/src/semantic/link.css +0 -39
- package/css/src/semantic/main.css +0 -3
- package/css/src/semantic/markup.css +0 -23
- package/css/src/semantic/nav.css +0 -63
- package/css/src/semantic/pagination.css +0 -11
- package/css/src/semantic/section.css +0 -43
- package/css/src/semantic/sheet.css +0 -35
- package/css/src/semantic/skeleton.css +0 -3
- package/css/src/semantic/table.css +0 -31
- package/css/src/semantic/textarea.css +0 -3
- package/r/schema/registry-item.json +0 -68
- package/r/schema/registry.json +0 -93
- package/r/schema.json +0 -60
- package/r/semantic/components/article.json +0 -17
- package/r/semantic/components/aside.json +0 -17
- package/r/semantic/components/footer.json +0 -17
- package/r/semantic/components/header.json +0 -17
- package/r/semantic/components/main.json +0 -17
- package/r/semantic/components/markup.json +0 -17
- package/r/semantic/components/media.json +0 -17
- package/r/semantic/components/nav.json +0 -18
- package/r/semantic/components/section.json +0 -17
- package/r/semantic/components/sheet.json +0 -18
- package/r/semantic/index.json +0 -130
- package/r/semantic/lib/utils.json +0 -18
- package/r/semantic/ui/alert.json +0 -18
- package/r/semantic/ui/avatar.json +0 -17
- package/r/semantic/ui/badge.json +0 -18
- package/r/semantic/ui/breadcrumb.json +0 -19
- package/r/semantic/ui/button.json +0 -18
- package/r/semantic/ui/card.json +0 -17
- package/r/semantic/ui/input.json +0 -17
- package/r/semantic/ui/label.json +0 -17
- package/r/semantic/ui/link.json +0 -18
- package/r/semantic/ui/skeleton.json +0 -15
- package/r/semantic/ui/table.json +0 -17
- package/r/semantic/ui/textarea.json +0 -17
- package/r/utility/components/article.json +0 -17
- package/r/utility/components/aside.json +0 -17
- package/r/utility/components/footer.json +0 -17
- package/r/utility/components/header.json +0 -17
- package/r/utility/components/main.json +0 -17
- package/r/utility/components/markup.json +0 -17
- package/r/utility/components/media.json +0 -17
- package/r/utility/components/nav.json +0 -18
- package/r/utility/components/navbar.json +0 -15
- package/r/utility/components/section.json +0 -17
- package/r/utility/components/sheet.json +0 -18
- package/r/utility/index.json +0 -135
- package/r/utility/lib/utils.json +0 -18
- package/r/utility/ui/alert.json +0 -18
- package/r/utility/ui/avatar.json +0 -17
- package/r/utility/ui/badge.json +0 -19
- package/r/utility/ui/breadcrumb.json +0 -19
- package/r/utility/ui/button.json +0 -19
- package/r/utility/ui/card.json +0 -17
- package/r/utility/ui/input.json +0 -17
- package/r/utility/ui/label.json +0 -17
- package/r/utility/ui/link.json +0 -18
- package/r/utility/ui/skeleton.json +0 -15
- package/r/utility/ui/table.json +0 -17
- package/r/utility/ui/textarea.json +0 -17
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "breadcrumb",
|
|
4
|
-
"type": "registry:ui",
|
|
5
|
-
"description": "",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"react",
|
|
8
|
-
"@radix-ui/react-slot",
|
|
9
|
-
"lucide-react"
|
|
10
|
-
],
|
|
11
|
-
"devDependencies": [],
|
|
12
|
-
"files": [
|
|
13
|
-
{
|
|
14
|
-
"path": "utility/ui/breadcrumb.tsx",
|
|
15
|
-
"content": "import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { ChevronRight, MoreHorizontal } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Breadcrumb({ ...props }: React.ComponentProps<\"nav\">) {\n return <nav aria-label=\"breadcrumb\" data-slot=\"breadcrumb\" {...props} />\n}\n\nfunction BreadcrumbList({ className, ...props }: React.ComponentProps<\"ol\">) {\n return (\n <ol\n data-slot=\"breadcrumb-list\"\n className={cn(\n \"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction BreadcrumbItem({ className, ...props }: React.ComponentProps<\"li\">) {\n return (\n <li\n data-slot=\"breadcrumb-item\"\n className={cn(\"inline-flex items-center gap-1.5\", className)}\n {...props}\n />\n )\n}\n\nfunction BreadcrumbLink({\n asChild,\n className,\n ...props\n}: React.ComponentProps<\"a\"> & {\n asChild?: boolean\n}) {\n const Comp = asChild ? Slot : \"a\"\n\n return (\n <Comp\n data-slot=\"breadcrumb-link\"\n className={cn(\"hover:text-foreground transition-colors\", className)}\n {...props}\n />\n )\n}\n\nfunction BreadcrumbPage({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"breadcrumb-page\"\n role=\"link\"\n aria-disabled=\"true\"\n aria-current=\"page\"\n className={cn(\"text-foreground font-normal\", className)}\n {...props}\n />\n )\n}\n\nfunction BreadcrumbSeparator({\n children,\n className,\n ...props\n}: React.ComponentProps<\"li\">) {\n return (\n <li\n data-slot=\"breadcrumb-separator\"\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(\"[&>svg]:size-3.5\", className)}\n {...props}\n >\n {children ?? <ChevronRight />}\n </li>\n )\n}\n\nfunction BreadcrumbEllipsis({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"breadcrumb-ellipsis\"\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(\"flex size-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontal className=\"size-4\" />\n <span className=\"sr-only\">More</span>\n </span>\n )\n}\n\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n}",
|
|
16
|
-
"target": "ui"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
}
|
package/r/utility/ui/button.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "button",
|
|
4
|
-
"type": "registry:ui",
|
|
5
|
-
"description": "",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"react",
|
|
8
|
-
"@radix-ui/react-slot",
|
|
9
|
-
"class-variance-authority"
|
|
10
|
-
],
|
|
11
|
-
"devDependencies": [],
|
|
12
|
-
"files": [
|
|
13
|
-
{
|
|
14
|
-
"path": "utility/ui/button.tsx",
|
|
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 }",
|
|
16
|
-
"target": "ui"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
}
|
package/r/utility/ui/card.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "card",
|
|
4
|
-
"type": "registry:ui",
|
|
5
|
-
"description": "",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"react"
|
|
8
|
-
],
|
|
9
|
-
"devDependencies": [],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "utility/ui/card.tsx",
|
|
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",
|
|
14
|
-
"target": "ui"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
package/r/utility/ui/input.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "input",
|
|
4
|
-
"type": "registry:ui",
|
|
5
|
-
"description": "",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"react"
|
|
8
|
-
],
|
|
9
|
-
"devDependencies": [],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
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 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
|
-
"target": "ui"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
package/r/utility/ui/label.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "label",
|
|
4
|
-
"type": "registry:ui",
|
|
5
|
-
"description": "",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"react"
|
|
8
|
-
],
|
|
9
|
-
"devDependencies": [],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "utility/ui/label.tsx",
|
|
13
|
-
"content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Label({ className, ...props }: React.ComponentProps<\"label\">) {\n return (\n <label\n data-slot=\"label\"\n className={cn(\n \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Label }",
|
|
14
|
-
"target": "ui"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
package/r/utility/ui/link.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "link",
|
|
4
|
-
"type": "registry:ui",
|
|
5
|
-
"description": "",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"react",
|
|
8
|
-
"class-variance-authority"
|
|
9
|
-
],
|
|
10
|
-
"devDependencies": [],
|
|
11
|
-
"files": [
|
|
12
|
-
{
|
|
13
|
-
"path": "utility/ui/link.tsx",
|
|
14
|
-
"content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst linkVariants = 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 Link({\n className,\n variant = \"link\",\n size,\n href,\n type,\n ...props\n}: React.ComponentProps<\"a\"> &\n VariantProps<typeof linkVariants>) {\n return (\n <a\n data-slot=\"link-button\"\n className={cn(linkVariants({ variant, size, className }))}\n href={href}\n type=\"button\"\n {...props}\n />\n )\n}\n\nLink.displayName = \"Link\"\n\nfunction LinkButton({\n className,\n variant,\n size,\n href,\n type,\n ...props\n}: React.ComponentProps<\"a\"> &\n VariantProps<typeof linkVariants>) {\n return (\n <a\n data-slot=\"button\"\n className={cn(linkVariants({ variant, size, className }))}\n href={href}\n type=\"button\"\n {...props}\n />\n )\n}\n\nLinkButton.displayName = \"LinkButton\"\n\nfunction A({\n href,\n ...props\n}: React.ComponentProps<\"a\">) {\n return (\n <a\n data-slot=\"a\"\n href={href}\n {...props}\n />\n )\n}\n\nA.displayName = \"A\"\n\nexport { Link, LinkButton, A, linkVariants }",
|
|
15
|
-
"target": "ui"
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "skeleton",
|
|
4
|
-
"type": "registry:ui",
|
|
5
|
-
"description": "",
|
|
6
|
-
"dependencies": [],
|
|
7
|
-
"devDependencies": [],
|
|
8
|
-
"files": [
|
|
9
|
-
{
|
|
10
|
-
"path": "utility/ui/skeleton.tsx",
|
|
11
|
-
"content": "import { cn } from \"@/lib/utils\"\n\nfunction Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"skeleton\"\n className={cn(\"bg-accent animate-pulse rounded-md\", className)}\n {...props}\n />\n )\n}\n\nexport { Skeleton }",
|
|
12
|
-
"target": "ui"
|
|
13
|
-
}
|
|
14
|
-
]
|
|
15
|
-
}
|
package/r/utility/ui/table.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "table",
|
|
4
|
-
"type": "registry:ui",
|
|
5
|
-
"description": "",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"react"
|
|
8
|
-
],
|
|
9
|
-
"devDependencies": [],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "utility/ui/table.tsx",
|
|
13
|
-
"content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Table({ className, ...props }: React.ComponentProps<\"table\">) {\n return (\n <div\n data-slot=\"table-container\"\n className=\"relative w-full overflow-x-auto\"\n >\n <table\n data-slot=\"table\"\n className={cn(\"w-full caption-bottom text-sm\", className)}\n {...props}\n />\n </div>\n )\n}\n\nfunction TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n return (\n <thead\n data-slot=\"table-header\"\n className={cn(\"[&_tr]:border-b\", className)}\n {...props}\n />\n )\n}\n\nfunction TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n return (\n <tbody\n data-slot=\"table-body\"\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n )\n}\n\nfunction TableFooter({ className, ...props }: React.ComponentProps<\"tfoot\">) {\n return (\n <tfoot\n data-slot=\"table-footer\"\n className={cn(\n \"bg-muted/50 border-t font-medium [&>tr]:last:border-b-0\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n return (\n <tr\n data-slot=\"table-row\"\n className={cn(\n \"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n return (\n <th\n data-slot=\"table-head\"\n className={cn(\n \"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableCell({ className, ...props }: React.ComponentProps<\"td\">) {\n return (\n <td\n data-slot=\"table-cell\"\n className={cn(\n \"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableCaption({\n className,\n ...props\n}: React.ComponentProps<\"caption\">) {\n return (\n <caption\n data-slot=\"table-caption\"\n className={cn(\"text-muted-foreground mt-4 text-sm\", className)}\n {...props}\n />\n )\n}\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n}",
|
|
14
|
-
"target": "ui"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "textarea",
|
|
4
|
-
"type": "registry:ui",
|
|
5
|
-
"description": "",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"react"
|
|
8
|
-
],
|
|
9
|
-
"devDependencies": [],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "utility/ui/textarea.tsx",
|
|
13
|
-
"content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Textarea({ className, ...props }: React.ComponentProps<\"textarea\">) {\n return (\n <textarea\n data-slot=\"textarea\"\n className={cn(\n \"border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Textarea }",
|
|
14
|
-
"target": "ui"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|