From 1c6f588a7ed5787c5bb438885b74c380394fce26 Mon Sep 17 00:00:00 2001 From: Kevin Abatan Date: Thu, 25 Dec 2025 22:12:17 +0100 Subject: [PATCH 1/5] chore: add FRONTEND_PORT env var to allow worktrees --- apps/docs/app.config.ts | 5 ++++- apps/docs/tsconfig.json | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/docs/app.config.ts b/apps/docs/app.config.ts index b836b7e6..fa4254d6 100644 --- a/apps/docs/app.config.ts +++ b/apps/docs/app.config.ts @@ -20,7 +20,10 @@ export default defineConfig( } }, vite: { - plugins: [tailwindcss()] + plugins: [tailwindcss()], + server: { + port: parseInt(process.env.FRONTEND_PORT || "5173", 10) + } } }, { diff --git a/apps/docs/tsconfig.json b/apps/docs/tsconfig.json index 047b6294..cbd39639 100644 --- a/apps/docs/tsconfig.json +++ b/apps/docs/tsconfig.json @@ -22,10 +22,8 @@ "noFallthroughCasesInSwitch": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, - // Some stricter flags (disabled by default) "noUnusedLocals": true, "noUnusedParameters": true, - "noPropertyAccessFromIndexSignature": true, "baseUrl": ".", "paths": { "~/*": ["./src/*"] From 395c6ea4988546b6ee6f22457443184d450948ab Mon Sep 17 00:00:00 2001 From: Kevin Abatan Date: Fri, 26 Dec 2025 04:19:30 +0100 Subject: [PATCH 2/5] chore: adding trees to gitignore --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index dc1b5dd4..ad08f192 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,10 @@ Thumbs.db # Claude .claude logs +trees/ + +# Worktree environment configs +**/.ports.env app.config.timestamp* From 7552e4479094362b33cb2ce8b054684b4283b677 Mon Sep 17 00:00:00 2001 From: Kevin Abatan Date: Sat, 27 Dec 2025 19:20:00 +0100 Subject: [PATCH 3/5] feat(label): sync label component from shadcn v4 --- apps/docs/src/config/docs.ts | 4 ++ apps/docs/src/registry/__index__.tsx | 28 ++++++++++++ apps/docs/src/registry/examples/_registry.ts | 11 +++++ .../docs/src/registry/examples/label-demo.tsx | 11 +++++ apps/docs/src/registry/ui/_registry.ts | 10 +++++ apps/docs/src/registry/ui/label.tsx | 6 +-- .../docs/src/routes/docs/components/label.mdx | 45 +++++++++++++++++++ 7 files changed, 112 insertions(+), 3 deletions(-) create mode 100644 apps/docs/src/registry/examples/label-demo.tsx create mode 100644 apps/docs/src/routes/docs/components/label.mdx diff --git a/apps/docs/src/config/docs.ts b/apps/docs/src/config/docs.ts index a893e129..1c71952a 100644 --- a/apps/docs/src/config/docs.ts +++ b/apps/docs/src/config/docs.ts @@ -63,6 +63,10 @@ export const docsConfig: Config = { title: "Input Group", href: "/docs/components/input-group" }, + { + title: "Label", + href: "/docs/components/label" + }, { title: "Radio Group", href: "/docs/components/radio-group" diff --git a/apps/docs/src/registry/__index__.tsx b/apps/docs/src/registry/__index__.tsx index 7eddc1d9..1a5330e2 100644 --- a/apps/docs/src/registry/__index__.tsx +++ b/apps/docs/src/registry/__index__.tsx @@ -130,6 +130,20 @@ export const Index: Record = { categories: undefined, meta: undefined, }, + "label": { + name: "label", + description: "", + type: "registry:ui", + registryDependencies: undefined, + component: lazy(() => import("~/registry/ui/label.tsx")), + files: [{ + path: "registry/ui/label.tsx", + type: "registry:ui", + target: "" + }], + categories: undefined, + meta: undefined, + }, "input-group": { name: "input-group", description: "", @@ -676,6 +690,20 @@ export const Index: Record = { categories: undefined, meta: undefined, }, + "label-demo": { + name: "label-demo", + description: "", + type: "registry:example", + registryDependencies: ["label","checkbox"], + component: lazy(() => import("~/registry/examples/label-demo.tsx")), + files: [{ + path: "registry/examples/label-demo.tsx", + type: "registry:example", + target: "" + }], + categories: undefined, + meta: undefined, + }, "radio-group-demo": { name: "radio-group-demo", description: "", diff --git a/apps/docs/src/registry/examples/_registry.ts b/apps/docs/src/registry/examples/_registry.ts index 6cd90966..64fa07a4 100644 --- a/apps/docs/src/registry/examples/_registry.ts +++ b/apps/docs/src/registry/examples/_registry.ts @@ -364,6 +364,17 @@ export const examples: Registry["items"] = [ } ] }, + { + name: "label-demo", + type: "registry:example", + registryDependencies: ["label", "checkbox"], + files: [ + { + path: "examples/label-demo.tsx", + type: "registry:example" + } + ] + }, { name: "radio-group-demo", type: "registry:example", diff --git a/apps/docs/src/registry/examples/label-demo.tsx b/apps/docs/src/registry/examples/label-demo.tsx new file mode 100644 index 00000000..79019529 --- /dev/null +++ b/apps/docs/src/registry/examples/label-demo.tsx @@ -0,0 +1,11 @@ +import { Checkbox } from "~/registry/ui/checkbox" +import { Label } from "~/registry/ui/label" + +export default function LabelDemo() { + return ( +
+ + +
+ ) +} diff --git a/apps/docs/src/registry/ui/_registry.ts b/apps/docs/src/registry/ui/_registry.ts index d4758d03..ad10275c 100644 --- a/apps/docs/src/registry/ui/_registry.ts +++ b/apps/docs/src/registry/ui/_registry.ts @@ -89,6 +89,16 @@ export const ui: Registry["items"] = [ } ] }, + { + name: "label", + type: "registry:ui", + files: [ + { + path: "ui/label.tsx", + type: "registry:ui" + } + ] + }, { name: "input-group", type: "registry:ui", diff --git a/apps/docs/src/registry/ui/label.tsx b/apps/docs/src/registry/ui/label.tsx index afeefcf5..fe7f496f 100644 --- a/apps/docs/src/registry/ui/label.tsx +++ b/apps/docs/src/registry/ui/label.tsx @@ -4,14 +4,14 @@ import { splitProps } from "solid-js" import { cn } from "~/lib/utils" const Label: Component> = (props) => { - const [local, others] = splitProps(props, ["class", "for"]) + const [local, others] = splitProps(props, ["class"]) return (