ui8kit 1.0.5 → 1.1.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 +80 -149
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1896 -0
- package/dist/index.js.map +1 -0
- package/package.json +53 -16
- 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/components/article.json +0 -17
- package/r/components/aside.json +0 -17
- package/r/components/footer.json +0 -17
- package/r/components/header.json +0 -17
- package/r/components/main.json +0 -17
- package/r/components/markup.json +0 -17
- package/r/components/media.json +0 -17
- package/r/components/nav.json +0 -18
- package/r/components/navbar.json +0 -15
- package/r/components/section.json +0 -17
- package/r/components/sheet.json +0 -18
- package/r/index.json +0 -135
- package/r/lib/utils.json +0 -18
- package/r/ui/alert.json +0 -18
- package/r/ui/avatar.json +0 -17
- package/r/ui/badge.json +0 -19
- package/r/ui/breadcrumb.json +0 -19
- package/r/ui/button.json +0 -19
- package/r/ui/card.json +0 -17
- package/r/ui/input.json +0 -17
- package/r/ui/label.json +0 -17
- package/r/ui/link.json +0 -18
- package/r/ui/skeleton.json +0 -15
- package/r/ui/table.json +0 -17
- package/r/ui/textarea.json +0 -17
package/r/components/nav.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "nav",
|
|
4
|
-
"type": "registry:component",
|
|
5
|
-
"description": "CSS-only Navigation component with responsive design\n * \n * No external JavaScript dependencies or runtime requirements.\n * Works with server-side rendering (SSR) and static site generation (SSG).\n * \n * Required Tailwind CSS:\n * ```css\n * @layer components {\n * \n * .peer:checked ~[data - slot=\"nav-mobile\"] {\n * @apply opacity - 100 visible translate - y - 0;\n * }\n * \n * \n * .group: target[data - slot= \"nav-dropdown-content\"] {\n * @apply opacity - 100 visible scale - 100;\n * }\n * \n * \n * details[data - slot=\"nav-mobile-dropdown\"][open] summary {\n * @apply bg - accent text - accent - foreground;\n * }\n * }\n * ```\n * \n * Key features:\n * - Pure CSS dropdowns using :target selector\n * - Checkbox-based mobile menu\n * - Auto-closing mobile menu when clicking outside\n * - Accessible keyboard navigation\n * \n * Usage example:\n * \n * <NavLayout>\n * <NavBar>\n * <h2>Logo</h2>\n *\n * \n * <Nav>\n * <NavList>\n * <NavItem>\n * <NavLink href=\"/\" active>Home</NavLink>\n * </NavItem>\n * <NavItem>\n * <NavDropdown id=\"products-dropdown\" title=\"Products\">\n * <NavDropdownItem href=\"/products/web\">Web</NavDropdownItem>\n * <NavDropdownItem href=\"/products/mobile\">Mobile</NavDropdownItem>\n * </NavDropdown>\n * </NavItem>\n * </NavList>\n * </Nav>\n *\n * \n * <NavTrigger />\n * </NavBar>\n *\n * \n * <NavMobile>\n * <NavMobileList>\n * <NavMobileItem>\n * <NavMobileLink href=\"/\" active>Home</NavMobileLink>\n * </NavMobileItem>\n * <NavMobileItem>\n * <NavMobileDropdown title=\"Products\">\n * <NavMobileDropdownItem href=\"/products/web\">Web</NavMobileDropdownItem>\n * <NavMobileDropdownItem href=\"/products/mobile\">Mobile</NavMobileDropdownItem>\n * </NavMobileDropdown>\n * </NavMobileItem>\n * </NavMobileList>\n * </NavMobile>\n * </NavLayout>\n * ```",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"react",
|
|
8
|
-
"lucide-react"
|
|
9
|
-
],
|
|
10
|
-
"devDependencies": [],
|
|
11
|
-
"files": [
|
|
12
|
-
{
|
|
13
|
-
"path": "utility/components/nav.tsx",
|
|
14
|
-
"content": "import * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\nimport { Menu, X, ChevronDown } from \"lucide-react\"\n\n/**\n * CSS-only Navigation component with responsive design\n * \n * No external JavaScript dependencies or runtime requirements.\n * Works with server-side rendering (SSR) and static site generation (SSG).\n * \n * Required Tailwind CSS:\n * ```css\n * @layer components {\n * \n * .peer:checked ~[data - slot=\"nav-mobile\"] {\n * @apply opacity - 100 visible translate - y - 0;\n * }\n * \n * \n * .group: target[data - slot= \"nav-dropdown-content\"] {\n * @apply opacity - 100 visible scale - 100;\n * }\n * \n * \n * details[data - slot=\"nav-mobile-dropdown\"][open] summary {\n * @apply bg - accent text - accent - foreground;\n * }\n * }\n * ```\n * \n * Key features:\n * - Pure CSS dropdowns using :target selector\n * - Checkbox-based mobile menu\n * - Auto-closing mobile menu when clicking outside\n * - Accessible keyboard navigation\n * \n * Usage example:\n * \n * <NavLayout>\n * <NavBar>\n * <h2>Logo</h2>\n *\n * \n * <Nav>\n * <NavList>\n * <NavItem>\n * <NavLink href=\"/\" active>Home</NavLink>\n * </NavItem>\n * <NavItem>\n * <NavDropdown id=\"products-dropdown\" title=\"Products\">\n * <NavDropdownItem href=\"/products/web\">Web</NavDropdownItem>\n * <NavDropdownItem href=\"/products/mobile\">Mobile</NavDropdownItem>\n * </NavDropdown>\n * </NavItem>\n * </NavList>\n * </Nav>\n *\n * \n * <NavTrigger />\n * </NavBar>\n *\n * \n * <NavMobile>\n * <NavMobileList>\n * <NavMobileItem>\n * <NavMobileLink href=\"/\" active>Home</NavMobileLink>\n * </NavMobileItem>\n * <NavMobileItem>\n * <NavMobileDropdown title=\"Products\">\n * <NavMobileDropdownItem href=\"/products/web\">Web</NavMobileDropdownItem>\n * <NavMobileDropdownItem href=\"/products/mobile\">Mobile</NavMobileDropdownItem>\n * </NavMobileDropdown>\n * </NavMobileItem>\n * </NavMobileList>\n * </NavMobile>\n * </NavLayout>\n * ```\n */\n\n// Main navigation container\nfunction Nav({ className, children, ...props }: React.ComponentProps<\"nav\">) {\n return (\n <nav\n data-slot=\"nav\"\n className={cn(\"hidden lg:flex items-center space-x-1\", className)}\n {...props}\n >\n {children}\n </nav>\n )\n}\n\n// Layout for nav with checkbox for mobile menu\nfunction NavLayout({ className, children, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"nav-layout\"\n className={cn(\"relative\", className)}\n {...props}\n >\n {/* Hidden checkbox for mobile menu toggle */}\n <input\n type=\"checkbox\"\n id=\"nav-toggle\"\n className=\"peer sr-only\"\n aria-hidden=\"true\"\n />\n {children}\n </div>\n )\n}\n\n// Navigation bar wrapper\nfunction NavBar({ className, children, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"nav-bar\"\n className={cn(\"sticky top-0 z-50 w-full border-b border-border bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60\", className)}\n {...props}\n >\n <div className=\"container flex h-16 items-center justify-between px-4\">\n {children}\n </div>\n </div>\n )\n}\n\n// Navigation list\nfunction NavList({ className, children, ...props }: React.ComponentProps<\"ul\">) {\n return (\n <ul\n data-slot=\"nav-list\"\n className={cn(\"flex items-center space-x-1\", className)}\n {...props}\n >\n {children}\n </ul>\n )\n}\n\n// Navigation item\nfunction NavItem({ className, children, ...props }: React.ComponentProps<\"li\">) {\n return (\n <li\n data-slot=\"nav-item\"\n className={cn(\"relative\", className)}\n {...props}\n >\n {children}\n </li>\n )\n}\n\n// Navigation link\nfunction NavLink({\n className,\n children,\n active,\n ...props\n}: React.ComponentProps<\"a\"> & { active?: boolean }) {\n return (\n <a\n data-slot=\"nav-link\"\n data-active={active ? \"true\" : undefined}\n className={cn(\"inline-flex items-center px-3 py-2 text-sm font-medium rounded-md transition-colors hover:bg-accent hover:text-accent-foreground data-[active=true]:bg-accent data-[active=true]:text-accent-foreground\", className)}\n {...props}\n >\n {children}\n </a>\n )\n}\n\n// Dropdown navigation (CSS-only using details/summary)\nfunction NavDropdown({\n className,\n children,\n title,\n id,\n ...props\n}: React.ComponentProps<\"details\"> & { title: string; id: string }) {\n return (\n <details\n id={id}\n data-slot=\"nav-dropdown\"\n className={cn(\"relative\", className)}\n {...props}\n >\n <summary\n className={cn(\"inline-flex items-center px-3 py-2 text-sm font-medium rounded-md transition-colors hover:bg-accent hover:text-accent-foreground cursor-pointer list-none [&::-webkit-details-marker]:hidden [&[open]]:bg-accent [&[open]]:text-accent-foreground\")}\n >\n {title}\n <ChevronDown className={cn(\"ml-1 h-4 w-4 transition-transform duration-200 details-open:rotate-180\")} />\n </summary>\n\n {/* Dropdown content */}\n <div\n data-slot=\"nav-dropdown-content\"\n className={cn(\"absolute top-full left-0 mt-1 w-48 rounded-md bg-popover border border-border shadow-lg z-50 origin-top-left\")}\n >\n <div className=\"py-1\">\n {children}\n </div>\n </div>\n </details>\n )\n}\n\n// Dropdown item\nfunction NavDropdownItem({\n className,\n children,\n ...props\n}: React.ComponentProps<\"a\">) {\n return (\n <a\n data-slot=\"nav-dropdown-item\"\n className={cn(\"block px-4 py-2 text-sm text-popover-foreground transition-colors hover:bg-accent hover:text-accent-foreground\", className)}\n {...props}\n >\n {children}\n </a>\n )\n}\n\n// Mobile menu trigger\nfunction NavTrigger({ className, ...props }: React.ComponentProps<\"label\">) {\n return (\n <label\n htmlFor=\"nav-toggle\"\n data-slot=\"nav-trigger\"\n className={cn(\"lg:hidden inline-flex items-center justify-center p-2 rounded-md text-foreground hover:bg-accent hover:text-accent-foreground focus:outline-none focus:ring-2 focus:ring-ring cursor-pointer\", className)}\n aria-label=\"Toggle navigation menu\"\n {...props}\n >\n <Menu className=\"h-5 w-5\" />\n </label>\n )\n}\n\n// Mobile navigation overlay\nfunction NavMobile({ className, children, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"nav-mobile\"\n className={cn(\"fixed inset-0 z-50 lg:hidden opacity-0 invisible -translate-y-full transition-all duration-300 ease-out peer-checked:opacity-100 peer-checked:visible peer-checked:translate-y-0\", className)}\n {...props}\n >\n {/* Backdrop */}\n <div className=\"absolute inset-0 bg-black/50 backdrop-blur-sm\" />\n\n {/* Mobile menu panel */}\n <div className=\"relative bg-background border-b border-border shadow-lg\">\n {/* Close button */}\n <div className=\"flex items-center justify-between p-4 border-b border-border\">\n <span className=\"text-lg font-semibold\">Menu</span>\n <label\n htmlFor=\"nav-toggle\"\n className=\"p-2 rounded-md hover:bg-accent cursor-pointer\"\n aria-label=\"Close menu\"\n >\n <X className=\"h-5 w-5\" />\n </label>\n </div>\n\n {/* Mobile menu content */}\n <div className=\"p-4\">\n {children}\n </div>\n </div>\n </div>\n )\n}\n\n// Mobile navigation list\nfunction NavMobileList({ className, children, ...props }: React.ComponentProps<\"ul\">) {\n return (\n <ul\n data-slot=\"nav-mobile-list\"\n className={cn(\"space-y-1\", className)}\n {...props}\n >\n {children}\n </ul>\n )\n}\n\n// Mobile navigation item\nfunction NavMobileItem({ className, children, ...props }: React.ComponentProps<\"li\">) {\n return (\n <li\n data-slot=\"nav-mobile-item\"\n className={cn(className)}\n {...props}\n >\n {children}\n </li>\n )\n}\n\n// Mobile navigation link\nfunction NavMobileLink({\n className,\n children,\n active,\n href,\n ...props\n}: React.ComponentProps<\"a\"> & { active?: boolean }) {\n return (\n <a\n href={href}\n data-slot=\"nav-mobile-link\"\n data-active={active ? \"true\" : undefined}\n className={cn(\n \"flex items-center w-full px-3 py-3 text-base font-medium rounded-md transition-colors hover:bg-accent hover:text-accent-foreground data-[active=true]:bg-accent data-[active=true]:text-accent-foreground\",\n className\n\n )}\n {...props}\n >\n {children}\n </a>\n )\n}\n\n// Mobile dropdown item\nfunction NavMobileDropdownItem({\n className,\n children,\n href,\n ...props\n}: React.ComponentProps<\"a\">) {\n return (\n <a\n href={href}\n data-slot=\"nav-mobile-dropdown-item\"\n className={cn(\n \"block px-3 py-2 text-sm rounded-md transition-colors hover:bg-accent hover:text-accent-foreground\",\n className\n\n )}\n {...props}\n >\n {children}\n </a>\n )\n}\n\n// Mobile dropdown (CSS-only with details/summary)\nfunction NavMobileDropdown({\n className,\n children,\n title,\n ...props\n}: React.ComponentProps<\"details\"> & { title: string }) {\n return (\n <details\n data-slot=\"nav-mobile-dropdown\"\n className={cn(\"\", className)}\n {...props}\n >\n <summary\n className={cn(\"flex items-center justify-between w-full px-3 py-3 text-base font-medium rounded-md hover:bg-accent hover:text-accent-foreground cursor-pointer list-none [&::-webkit-details-marker]:hidden [&[open]]:bg-accent [&[open]]:text-accent-foreground\")}\n >\n {title}\n <ChevronDown className={cn(\"h-4 w-4 transition-transform duration-200 group-open:rotate-180\")} />\n </summary>\n <div className=\"mt-1 ml-4 space-y-1\">\n {children}\n </div>\n </details>\n )\n}\n\n// Navigation group for organizing links\nfunction NavGroup({\n className,\n children,\n title,\n ...props\n}: React.ComponentProps<\"div\"> & { title?: string }) {\n return (\n <div\n data-slot=\"nav-group\"\n className={cn(\"py-2\", className)}\n {...props}\n >\n {title && (\n <h4 className=\"mb-2 px-3 text-sm font-semibold tracking-tight text-muted-foreground\">\n {title}\n </h4>\n )}\n <div className=\"space-y-1\">\n {children}\n </div>\n </div>\n )\n}\n\n// Navigation group buttons (e.g. for theme toggle)\nfunction NavGroupButtons({ className, children, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"nav-group-buttons\"\n className={cn(\"flex items-center space-x-2\", className)}\n {...props}\n >\n {children}\n </div>\n )\n}\n\nexport {\n Nav,\n NavBar,\n NavList,\n NavItem,\n NavLink,\n NavDropdown,\n NavDropdownItem,\n NavTrigger,\n NavMobile,\n NavMobileList,\n NavMobileItem,\n NavMobileLink,\n NavMobileDropdownItem,\n NavMobileDropdown,\n NavGroup,\n NavGroupButtons,\n NavLayout,\n}",
|
|
15
|
-
"target": "components"
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|
package/r/components/navbar.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "navbar",
|
|
4
|
-
"type": "registry:component",
|
|
5
|
-
"description": "A responsive navigation bar component with logo and menu items",
|
|
6
|
-
"dependencies": [],
|
|
7
|
-
"devDependencies": [],
|
|
8
|
-
"files": [
|
|
9
|
-
{
|
|
10
|
-
"path": "utility/components/navbar.js",
|
|
11
|
-
"content": "/**\r\n * A responsive navigation bar component with logo and menu items\r\n */\r\nexport function Navbar({ logo, menuItems = [], className = \"\" }) {\r\n const menuHtml = menuItems.map(item => `\r\n <a href=\"${item.href}\" class=\"text-foreground hover:text-primary transition-colors\">\r\n ${item.label}\r\n </a>\r\n `).join('')\r\n\r\n return `\r\n <nav class=\"sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 ${className}\">\r\n <div class=\"container flex h-14 items-center\">\r\n <div class=\"mr-4 flex\">\r\n <a class=\"mr-6 flex items-center space-x-2\" href=\"/\">\r\n <span class=\"font-bold text-xl\">${logo || 'Logo'}</span>\r\n </a>\r\n <nav class=\"hidden md:flex items-center space-x-6 text-sm font-medium\">\r\n ${menuHtml}\r\n </nav>\r\n </div>\r\n <div class=\"flex flex-1 items-center justify-between space-x-2 md:justify-end\">\r\n <div class=\"w-full flex-1 md:w-auto md:flex-none\">\r\n <!-- Search or other content -->\r\n </div>\r\n <nav class=\"flex items-center\">\r\n <button class=\"md:hidden p-2\">\r\n <span class=\"sr-only\">Toggle menu</span>\r\n <svg class=\"h-6 w-6\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\r\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 6h16M4 12h16M4 18h16\"></path>\r\n </svg>\r\n </button>\r\n </nav>\r\n </div>\r\n </div>\r\n </nav>\r\n `\r\n}\r\n\r\nexport function NavbarItem({ href, label, active = false }) {\r\n return `\r\n <a href=\"${href}\" class=\"text-sm font-medium transition-colors hover:text-primary ${active ? 'text-primary' : 'text-muted-foreground'}\">\r\n ${label}\r\n </a>\r\n `\r\n} ",
|
|
12
|
-
"target": "components"
|
|
13
|
-
}
|
|
14
|
-
]
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "section",
|
|
4
|
-
"type": "registry:component",
|
|
5
|
-
"description": "",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"react"
|
|
8
|
-
],
|
|
9
|
-
"devDependencies": [],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "utility/components/section.tsx",
|
|
13
|
-
"content": "import * as React from \"react\"\nimport { cn } from \"@/lib/utils\";\n\nfunction Section({ className, ...props }: React.ComponentProps<\"section\">) {\n // TODO: py-6 md:py-12 lg:py-24\n return (\n <section\n data-slot=\"section\"\n className={cn(\"w-full py-6 md:py-12 lg:py-18\", className)}\n {...props}\n />\n )\n}\n\nSection.displayName = \"Section\"\n\nfunction Container({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"container\"\n className={cn(\"container mx-auto px-4 md:px-6 lg:px-8\", className)}\n {...props}\n />\n )\n}\n\nContainer.displayName = \"Container\"\n\nfunction FullWidth({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"full-width\"\n className={cn(\"w-full\", className)}\n {...props}\n />\n )\n}\n\nFullWidth.displayName = \"FullWidth\"\n\nfunction SectionHeader({ className, ...props }: React.ComponentProps<\"header\">) {\n return (\n <header\n data-slot=\"section-header\"\n className={cn(\"w-full py-6 md:py-12 lg:py-18\", className)}\n {...props}\n />\n )\n}\n\nSectionHeader.displayName = \"SectionHeader\"\n\nfunction SectionTitle({ className, ...props }: React.ComponentProps<\"h2\">) {\n return (\n <h2\n data-slot=\"section-title\"\n className={cn(\"text-3xl font-bold mb-4\", className)}\n {...props}\n />\n )\n}\n\nSectionTitle.displayName = \"SectionTitle\"\n\nfunction SectionDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"section-description\"\n className={cn(\"text-secondary-foreground mb-4\", className)}\n {...props}\n />\n )\n}\n\nSectionDescription.displayName = \"SectionDescription\"\n\nfunction SectionFooter({ className, ...props }: React.ComponentProps<\"footer\">) {\n return (\n <footer\n data-slot=\"section-footer\"\n className={cn(\"py-8\", className)}\n {...props}\n />\n )\n}\n\nSectionFooter.displayName = \"SectionFooter\"\n\nfunction SectionContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"section-content\"\n className={cn(\"w-full\", className)}\n {...props}\n />\n )\n}\n\nSectionContent.displayName = \"SectionContent\"\n\nfunction Row({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"row\"\n className={cn(\"flex flex-wrap -mx-4\", className)}\n {...props}\n />\n )\n}\n\nRow.displayName = \"Row\"\n\nfunction Col({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"col\"\n className={cn(\"w-full px-4\", className)}\n {...props}\n />\n )\n}\n\nCol.displayName = \"Col\"\n\nfunction Grid({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"grid\"\n className={cn(\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6\", className)}\n {...props}\n />\n )\n}\n\nGrid.displayName = \"Grid\"\n\nexport { Section, Container, FullWidth, Row, Col, Grid, SectionContent, SectionHeader, SectionTitle, SectionDescription, SectionFooter }",
|
|
14
|
-
"target": "components"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
package/r/components/sheet.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "sheet",
|
|
4
|
-
"type": "registry:component",
|
|
5
|
-
"description": "CSS-only Sheet component for SSR/SSG compatibility\n * \n * Usage example:\n * ```tsx\n * <Sheet>\n * <SheetTrigger href=\"#my-sheet\">Open Sheet</SheetTrigger>\n * <SheetContent id=\"my-sheet\">\n * <SheetHeader>\n * <SheetTitle>Sheet Title</SheetTitle>\n * <SheetDescription>Description text</SheetDescription>\n * </SheetHeader>\n * <div className=\"p-6\">Content here</div>\n * <SheetFooter>\n * <SheetClose>Close</SheetClose>\n * </SheetFooter>\n * </SheetContent>\n * </Sheet>\n * ```",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"react",
|
|
8
|
-
"lucide-react"
|
|
9
|
-
],
|
|
10
|
-
"devDependencies": [],
|
|
11
|
-
"files": [
|
|
12
|
-
{
|
|
13
|
-
"path": "utility/components/sheet.tsx",
|
|
14
|
-
"content": "import * as React from \"react\"\nimport { XIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\n/**\n * CSS-only Sheet component for SSR/SSG compatibility\n * \n * Usage example:\n * ```tsx\n * <Sheet>\n * <SheetTrigger href=\"#my-sheet\">Open Sheet</SheetTrigger>\n * <SheetContent id=\"my-sheet\">\n * <SheetHeader>\n * <SheetTitle>Sheet Title</SheetTitle>\n * <SheetDescription>Description text</SheetDescription>\n * </SheetHeader>\n * <div className=\"p-6\">Content here</div>\n * <SheetFooter>\n * <SheetClose>Close</SheetClose>\n * </SheetFooter>\n * </SheetContent>\n * </Sheet>\n * ```\n */\n\n// Layout for sheet with checkbox\ninterface SheetLayoutProps {\n children: React.ReactNode\n className?: string\n trigger?: React.ReactNode\n}\n\nfunction SheetLayout({ trigger, children, className }: SheetLayoutProps) {\n return (\n <div className={cn(\"relative\", className)}>\n <input type=\"checkbox\" id=\"sheet-toggle\" className=\"peer sr-only\" aria-hidden=\"true\" />\n {trigger}\n {children}\n </div>\n )\n}\n\n// Props interfaces\ninterface SheetTriggerProps {\n children: React.ReactNode\n className?: string\n}\n\ninterface SheetContentProps {\n children: React.ReactNode\n className?: string\n}\n\n// Trigger component - uses peer checkbox\nfunction SheetTrigger({ children, className, ...props }: SheetTriggerProps) {\n return (\n <label htmlFor=\"sheet-toggle\" data-slot=\"sheet-trigger\" className={cn(\"inline-flex md:hidden items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all h-9 p-2 border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground cursor-pointer\", className)} {...props}>\n {children}\n </label>\n )\n}\n\n// Content component - pure CSS off-canvas\n// To change the side from which the panel slides in:\n// For LEFT: use 'inset-y-0 left-0 border-r transform -translate-x-full peer-checked:translate-x-0'\n// For RIGHT: use 'inset-y-0 right-0 border-l transform translate-x-full peer-checked:translate-x-0'\nfunction SheetContent({ children, className, ...props }: SheetContentProps) {\n // Example usage (choose one line):\n // LEFT PANEL: className={cn(\"fixed inset-y-0 left-0 z-50 w-full max-w-sm bg-background shadow-lg border-r transform -translate-x-full transition-transform duration-300 ease-out peer-checked:translate-x-0 flex flex-col overflow-hidden\", className)}\n // RIGHT PANEL: className={cn(\"fixed inset-y-0 right-0 z-50 w-full max-w-sm bg-background shadow-lg border-l transform translate-x-full transition-transform duration-300 ease-out peer-checked:translate-x-0 flex flex-col overflow-hidden\", className)}\n return (\n <div data-slot=\"sheet-content\" role=\"dialog\" aria-modal=\"true\" className={cn(\"fixed inset-y-0 left-0 z-50 w-full max-w-sm bg-background shadow-lg border-r transform -translate-x-full transition-transform duration-300 ease-out peer-checked:translate-x-0 flex flex-col overflow-hidden\", className)} {...props}>\n {/* Close button */}\n <div className=\"absolute top-4 right-4 z-10\">\n <label htmlFor=\"sheet-toggle\" className={cn(\"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 inline-flex h-6 w-6 items-center justify-center bg-background/80 backdrop-blur-sm cursor-pointer\")}>\n <XIcon className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </label>\n </div>\n {children}\n </div>\n )\n}\n\n// Overlay component\nfunction SheetOverlay({ className, ...props }: { className?: string }) {\n return (\n <label\n htmlFor=\"sheet-toggle\"\n data-slot=\"sheet-overlay\"\n className={cn(\n \"fixed inset-0 z-40 bg-black/50 backdrop-blur-sm opacity-0 invisible transition-all duration-300 ease-out peer-checked:opacity-100 peer-checked:visible peer-checked:pointer-events-auto transform-gpu cursor-pointer\",\n className\n )}\n {...props}\n />\n )\n}\n\n// Header component\ninterface SheetHeaderProps {\n children: React.ReactNode\n className?: string\n}\n\nfunction SheetHeader({ children, className, ...props }: SheetHeaderProps) {\n return (\n <div data-slot=\"sheet-header\" className={cn(\"flex flex-col space-y-2 p-6\", className)} {...props}>\n {children}\n </div>\n )\n}\n\n// Body component for main content\ninterface SheetBodyProps {\n children: React.ReactNode\n className?: string\n}\n\nfunction SheetBody({ children, className, ...props }: SheetBodyProps) {\n return (\n <div data-slot=\"sheet-body\" className={cn(\"flex-1 overflow-y-auto p-6\", className)} {...props}>\n {children}\n </div>\n )\n}\n\n// Footer component\ninterface SheetFooterProps {\n children: React.ReactNode\n className?: string\n}\n\nfunction SheetFooter({ children, className, ...props }: SheetFooterProps) {\n return (\n <div data-slot=\"sheet-footer\" className={cn(\"mt-auto flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 p-6\", className)} {...props}>\n {children}\n </div>\n )\n}\n\n// Title component\ninterface SheetTitleProps {\n children: React.ReactNode\n className?: string\n}\n\nfunction SheetTitle({ children, className, ...props }: SheetTitleProps) {\n return (\n <h2 data-slot=\"sheet-title\" className={cn(\"text-lg font-semibold text-foreground\", className)} {...props}>\n {children}\n </h2>\n )\n}\n\n// Description component\ninterface SheetDescriptionProps {\n children: React.ReactNode\n className?: string\n}\n\nfunction SheetDescription({ children, className, ...props }: SheetDescriptionProps) {\n return (\n <p data-slot=\"sheet-description\" className={cn(\"text-sm text-muted-foreground\", className)} {...props}>\n {children}\n </p>\n )\n}\n\n// Close component - simple link to close\ninterface SheetCloseProps {\n children: React.ReactNode\n className?: string\n}\n\nfunction SheetClose({ children, className, ...props }: SheetCloseProps) {\n return (\n <label htmlFor=\"sheet-toggle\" data-slot=\"sheet-close\" className={cn(\"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-pointer\", className)} {...props}>\n {children}\n </label>\n )\n}\n\nexport {\n SheetLayout,\n SheetTrigger,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n SheetClose,\n SheetBody,\n SheetOverlay,\n}",
|
|
15
|
-
"target": "components"
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|
package/r/index.json
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry.json",
|
|
3
|
-
"components": [
|
|
4
|
-
{
|
|
5
|
-
"name": "textarea",
|
|
6
|
-
"type": "registry:ui",
|
|
7
|
-
"description": ""
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"name": "table",
|
|
11
|
-
"type": "registry:ui",
|
|
12
|
-
"description": ""
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "skeleton",
|
|
16
|
-
"type": "registry:ui",
|
|
17
|
-
"description": ""
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "link",
|
|
21
|
-
"type": "registry:ui",
|
|
22
|
-
"description": ""
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "label",
|
|
26
|
-
"type": "registry:ui",
|
|
27
|
-
"description": ""
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "input",
|
|
31
|
-
"type": "registry:ui",
|
|
32
|
-
"description": ""
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "card",
|
|
36
|
-
"type": "registry:ui",
|
|
37
|
-
"description": ""
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "button",
|
|
41
|
-
"type": "registry:ui",
|
|
42
|
-
"description": ""
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"name": "breadcrumb",
|
|
46
|
-
"type": "registry:ui",
|
|
47
|
-
"description": ""
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "badge",
|
|
51
|
-
"type": "registry:ui",
|
|
52
|
-
"description": ""
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "avatar",
|
|
56
|
-
"type": "registry:ui",
|
|
57
|
-
"description": "Avatar context for image loading status"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"name": "alert",
|
|
61
|
-
"type": "registry:ui",
|
|
62
|
-
"description": ""
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"name": "sheet",
|
|
66
|
-
"type": "registry:component",
|
|
67
|
-
"description": "CSS-only Sheet component for SSR/SSG compatibility\n * \n * Usage example:\n * ```tsx\n * <Sheet>\n * <SheetTrigger href=\"#my-sheet\">Open Sheet</SheetTrigger>\n * <SheetContent id=\"my-sheet\">\n * <SheetHeader>\n * <SheetTitle>Sheet Title</SheetTitle>\n * <SheetDescription>Description text</SheetDescription>\n * </SheetHeader>\n * <div className=\"p-6\">Content here</div>\n * <SheetFooter>\n * <SheetClose>Close</SheetClose>\n * </SheetFooter>\n * </SheetContent>\n * </Sheet>\n * ```"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "section",
|
|
71
|
-
"type": "registry:component",
|
|
72
|
-
"description": ""
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"name": "navbar",
|
|
76
|
-
"type": "registry:component",
|
|
77
|
-
"description": "A responsive navigation bar component with logo and menu items"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"name": "nav",
|
|
81
|
-
"type": "registry:component",
|
|
82
|
-
"description": "CSS-only Navigation component with responsive design\n * \n * No external JavaScript dependencies or runtime requirements.\n * Works with server-side rendering (SSR) and static site generation (SSG).\n * \n * Required Tailwind CSS:\n * ```css\n * @layer components {\n * \n * .peer:checked ~[data - slot=\"nav-mobile\"] {\n * @apply opacity - 100 visible translate - y - 0;\n * }\n * \n * \n * .group: target[data - slot= \"nav-dropdown-content\"] {\n * @apply opacity - 100 visible scale - 100;\n * }\n * \n * \n * details[data - slot=\"nav-mobile-dropdown\"][open] summary {\n * @apply bg - accent text - accent - foreground;\n * }\n * }\n * ```\n * \n * Key features:\n * - Pure CSS dropdowns using :target selector\n * - Checkbox-based mobile menu\n * - Auto-closing mobile menu when clicking outside\n * - Accessible keyboard navigation\n * \n * Usage example:\n * \n * <NavLayout>\n * <NavBar>\n * <h2>Logo</h2>\n *\n * \n * <Nav>\n * <NavList>\n * <NavItem>\n * <NavLink href=\"/\" active>Home</NavLink>\n * </NavItem>\n * <NavItem>\n * <NavDropdown id=\"products-dropdown\" title=\"Products\">\n * <NavDropdownItem href=\"/products/web\">Web</NavDropdownItem>\n * <NavDropdownItem href=\"/products/mobile\">Mobile</NavDropdownItem>\n * </NavDropdown>\n * </NavItem>\n * </NavList>\n * </Nav>\n *\n * \n * <NavTrigger />\n * </NavBar>\n *\n * \n * <NavMobile>\n * <NavMobileList>\n * <NavMobileItem>\n * <NavMobileLink href=\"/\" active>Home</NavMobileLink>\n * </NavMobileItem>\n * <NavMobileItem>\n * <NavMobileDropdown title=\"Products\">\n * <NavMobileDropdownItem href=\"/products/web\">Web</NavMobileDropdownItem>\n * <NavMobileDropdownItem href=\"/products/mobile\">Mobile</NavMobileDropdownItem>\n * </NavMobileDropdown>\n * </NavMobileItem>\n * </NavMobileList>\n * </NavMobile>\n * </NavLayout>\n * ```"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "media",
|
|
86
|
-
"type": "registry:component",
|
|
87
|
-
"description": ""
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"name": "markup",
|
|
91
|
-
"type": "registry:component",
|
|
92
|
-
"description": ""
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"name": "main",
|
|
96
|
-
"type": "registry:component",
|
|
97
|
-
"description": ""
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "header",
|
|
101
|
-
"type": "registry:component",
|
|
102
|
-
"description": ""
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"name": "footer",
|
|
106
|
-
"type": "registry:component",
|
|
107
|
-
"description": ""
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"name": "aside",
|
|
111
|
-
"type": "registry:component",
|
|
112
|
-
"description": ""
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"name": "article",
|
|
116
|
-
"type": "registry:component",
|
|
117
|
-
"description": "Helper function for determining styles that the parser will be able to process"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "utils",
|
|
121
|
-
"type": "registry:lib",
|
|
122
|
-
"description": ""
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
"categories": [
|
|
126
|
-
"ui",
|
|
127
|
-
"components",
|
|
128
|
-
"blocks",
|
|
129
|
-
"lib",
|
|
130
|
-
"templates"
|
|
131
|
-
],
|
|
132
|
-
"version": "1.0.0",
|
|
133
|
-
"lastUpdated": "2025-06-11T09:34:40.175Z",
|
|
134
|
-
"registry": "utility"
|
|
135
|
-
}
|
package/r/lib/utils.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "utils",
|
|
4
|
-
"type": "registry:lib",
|
|
5
|
-
"description": "",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"clsx",
|
|
8
|
-
"tailwind-merge"
|
|
9
|
-
],
|
|
10
|
-
"devDependencies": [],
|
|
11
|
-
"files": [
|
|
12
|
-
{
|
|
13
|
-
"path": "lib/utils.ts",
|
|
14
|
-
"content": "import { type ClassValue, clsx } from \"clsx\"\r\nimport { twMerge } from \"tailwind-merge\"\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n return twMerge(clsx(inputs))\r\n} ",
|
|
15
|
-
"target": "lib"
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|
package/r/ui/alert.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "alert",
|
|
4
|
-
"type": "registry:ui",
|
|
5
|
-
"description": "",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"react",
|
|
8
|
-
"class-variance-authority"
|
|
9
|
-
],
|
|
10
|
-
"devDependencies": [],
|
|
11
|
-
"files": [
|
|
12
|
-
{
|
|
13
|
-
"path": "utility/ui/alert.tsx",
|
|
14
|
-
"content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst alertVariants = cva(\n \"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current\",\n {\n variants: {\n variant: {\n default: \"bg-card text-card-foreground\",\n destructive:\n \"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction Alert({\n className,\n variant,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof alertVariants>) {\n return (\n <div\n data-slot=\"alert\"\n role=\"alert\"\n className={cn(alertVariants({ variant }), className)}\n {...props}\n />\n )\n}\n\nfunction AlertTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-title\"\n className={cn(\n \"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction AlertDescription({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-description\"\n className={cn(\n \"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Alert, AlertTitle, AlertDescription }",
|
|
15
|
-
"target": "ui"
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|
package/r/ui/avatar.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "avatar",
|
|
4
|
-
"type": "registry:ui",
|
|
5
|
-
"description": "Avatar context for image loading status",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"react"
|
|
8
|
-
],
|
|
9
|
-
"devDependencies": [],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "utility/ui/avatar.tsx",
|
|
13
|
-
"content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\n// Avatar context for image loading status\nconst AvatarContext = React.createContext<{\n imageStatus: \"idle\" | \"loading\" | \"loaded\" | \"error\"\n setImageStatus: (status: \"idle\" | \"loading\" | \"loaded\" | \"error\") => void\n} | null>(null)\n\nfunction Avatar({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) {\n // Manage image loading status in context\n const [imageStatus, setImageStatus] = React.useState<\"idle\" | \"loading\" | \"loaded\" | \"error\">(\"idle\")\n return (\n <AvatarContext.Provider value={{ imageStatus, setImageStatus }}>\n <span\n data-slot=\"avatar\"\n className={cn(\n \"relative flex size-8 shrink-0 overflow-hidden rounded-full\",\n className\n )}\n {...props}\n />\n </AvatarContext.Provider>\n )\n}\n\ninterface AvatarImageProps extends React.ImgHTMLAttributes<HTMLImageElement> { }\n\nfunction AvatarImage({ className, src, ...props }: AvatarImageProps) {\n const ctx = React.useContext(AvatarContext)\n const [status, setStatus] = React.useState<\"idle\" | \"loading\" | \"loaded\" | \"error\">(\"idle\")\n\n React.useEffect(() => {\n if (!src) {\n setStatus(\"error\")\n ctx?.setImageStatus(\"error\")\n return\n }\n setStatus(\"loading\")\n ctx?.setImageStatus(\"loading\")\n const img = new window.Image()\n img.src = src\n img.onload = () => {\n setStatus(\"loaded\")\n ctx?.setImageStatus(\"loaded\")\n }\n img.onerror = () => {\n setStatus(\"error\")\n ctx?.setImageStatus(\"error\")\n }\n // Clean up\n return () => {\n img.onload = null\n img.onerror = null\n }\n }, [src])\n\n if (status !== \"loaded\") return null\n return (\n <img\n data-slot=\"avatar-image\"\n className={cn(\"aspect-square size-full\", className)}\n src={src}\n {...props}\n />\n )\n}\n\ninterface AvatarFallbackProps extends React.HTMLAttributes<HTMLSpanElement> {\n delayMs?: number\n}\n\nfunction AvatarFallback({ className, delayMs, ...props }: AvatarFallbackProps) {\n const ctx = React.useContext(AvatarContext)\n const [canRender, setCanRender] = React.useState(delayMs === undefined)\n\n React.useEffect(() => {\n if (delayMs !== undefined) {\n const timer = setTimeout(() => setCanRender(true), delayMs)\n return () => clearTimeout(timer)\n }\n }, [delayMs])\n\n if (!canRender) return null\n if (ctx?.imageStatus === \"loaded\") return null\n return (\n <span\n data-slot=\"avatar-fallback\"\n className={cn(\n \"bg-muted flex size-full items-center justify-center rounded-full\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Avatar, AvatarImage, AvatarFallback }",
|
|
14
|
-
"target": "ui"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
package/r/ui/badge.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://buildy.tw/schema/registry-item.json",
|
|
3
|
-
"name": "badge",
|
|
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/badge.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 badgeVariants = cva(\n \"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-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 transition-[color,box-shadow] overflow-hidden\",\n {\n variants: {\n variant: {\n default:\n \"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90\",\n destructive:\n \"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60\",\n outline:\n \"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction Badge({\n className,\n variant,\n asChild = false,\n ...props\n}: React.ComponentProps<\"span\"> &\n VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : \"span\"\n\n return (\n <Comp\n data-slot=\"badge\"\n className={cn(badgeVariants({ variant }), className)}\n {...props}\n />\n )\n}\n\nexport { Badge, badgeVariants }",
|
|
16
|
-
"target": "ui"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
}
|
package/r/ui/breadcrumb.json
DELETED
|
@@ -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/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/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/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/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/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
|
-
}
|
package/r/ui/skeleton.json
DELETED
|
@@ -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/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
|
-
}
|
package/r/ui/textarea.json
DELETED
|
@@ -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
|
-
}
|