Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,31 @@
"registry:build": "shadcn build"
},
"dependencies": {
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-label": "^2.1.7",
"@radix-ui/react-slot": "^1.2.3",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lodash": "^4.17.21",
"lucide-react": "^0.487.0",
"mobx": "^6.15.0",
"mobx-i18n": "^0.7.2",
"mobx-react": "^9.2.1",
"mobx-react-helper": "^0.5.1",
"mobx-restful": "^2.1.4",
"next": "15.5.2",
"react": "19.1.0",
"react-dom": "19.1.0",
"shadcn": "^3.0.0",
"tailwind-merge": "^3.3.1",
"tw-animate-css": "^1.3.6",
"web-utility": "^4.6.4",
"zod": "^3.25.76"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@tailwindcss/postcss": "^4.1.11",
"@types/lodash": "^4.17.20",
"@types/node": "^20.19.9",
"@types/react": "19.1.2",
"@types/react-dom": "19.1.2",
Expand Down
692 changes: 692 additions & 0 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions public/r/badge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "badge",
"type": "registry:ui",
"title": "Badge",
"description": "A badge component for displaying tags and labels.",
"files": [
{
"path": "registry/new-york/ui/badge.tsx",
"content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst badgeVariants = cva(\n \"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",\n {\n variants: {\n variant: {\n default:\n \"border-transparent bg-primary text-primary-foreground hover:bg-primary/80\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n destructive:\n \"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80\",\n outline: \"text-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nexport interface BadgeProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof badgeVariants> {}\n\nfunction Badge({ className, variant, ...props }: BadgeProps) {\n return (\n <div className={cn(badgeVariants({ variant }), className)} {...props} />\n )\n}\n\nexport { Badge, badgeVariants }\n",
"type": "registry:ui"
}
]
}
18 changes: 18 additions & 0 deletions public/r/checkbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "checkbox",
"type": "registry:ui",
"title": "Checkbox",
"description": "A checkbox component with Radix UI.",
"dependencies": [
"@radix-ui/react-checkbox",
"lucide-react"
],
"files": [
{
"path": "registry/new-york/ui/checkbox.tsx",
"content": "import * as React from \"react\"\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\"\nimport { Check } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n \"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground\",\n className\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n className={cn(\"flex items-center justify-center text-current\")}\n >\n <Check className=\"h-4 w-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n))\nCheckbox.displayName = CheckboxPrimitive.Root.displayName\n\nexport { Checkbox }\n",
"type": "registry:ui"
}
]
}
88 changes: 88 additions & 0 deletions public/r/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,94 @@
"type": "registry:component"
}
]
},
{
"name": "table",
"type": "registry:ui",
"title": "Table",
"description": "A responsive table component.",
"files": [
{
"path": "registry/new-york/ui/table.tsx",
"type": "registry:ui"
}
]
},
{
"name": "checkbox",
"type": "registry:ui",
"title": "Checkbox",
"description": "A checkbox component with Radix UI.",
"dependencies": ["@radix-ui/react-checkbox", "lucide-react"],
"files": [
{
"path": "registry/new-york/ui/checkbox.tsx",
"type": "registry:ui"
}
]
},
{
"name": "spinner",
"type": "registry:ui",
"title": "Spinner",
"description": "A loading spinner component.",
"dependencies": ["lucide-react"],
"files": [
{
"path": "registry/new-york/ui/spinner.tsx",
"type": "registry:ui"
}
]
},
{
"name": "badge",
"type": "registry:ui",
"title": "Badge",
"description": "A badge component for displaying tags and labels.",
"files": [
{
"path": "registry/new-york/ui/badge.tsx",
"type": "registry:ui"
}
]
},
{
"name": "rest-table",
"type": "registry:component",
"title": "REST Table",
"description": "A MobX-powered table component with CRUD operations.",
"dependencies": [
"lodash",
"mobx",
"mobx-i18n",
"mobx-react",
"mobx-react-helper",
"mobx-restful",
"web-utility"
],
"registryDependencies": ["button", "checkbox", "spinner", "table", "badge", "card", "input", "label"],
"files": [
{
"path": "registry/new-york/blocks/rest-table/rest-table.tsx",
"type": "registry:component"
},
{
"path": "registry/new-york/blocks/rest-table/components/badge-bar.tsx",
"type": "registry:component"
},
{
"path": "registry/new-york/blocks/rest-table/components/file-preview.tsx",
"type": "registry:component"
},
{
"path": "registry/new-york/blocks/rest-table/components/pager.tsx",
"type": "registry:component"
},
{
"path": "registry/new-york/blocks/rest-table/components/rest-form-modal.tsx",
"type": "registry:component"
}
]
}
]
}
Loading
Loading