From 20a88e1f1585e610406d18201ce635718462a0db Mon Sep 17 00:00:00 2001 From: "xabierlameiro.com" <44481156+xabierlameiro@users.noreply.github.com> Date: Mon, 16 Jun 2025 14:13:51 +0200 Subject: [PATCH] fix(components): resolve duplicate id conflict in calendar-24 component (#7611) * fix(components): resolve duplicate id conflict in calendar-24 component - Changed Button id from 'date' to 'date-picker' - Changed Input id from 'time' to 'time-picker' - Updated corresponding Label htmlFor attributes to match new unique IDs Fixes #7561 * chore: rebuild registry after calendar-24 fixes --- apps/v4/public/r/styles/new-york-v4/calendar-24.json | 2 +- apps/v4/registry/new-york-v4/blocks/calendar-24.tsx | 8 ++++---- apps/www/public/r/styles/new-york-v4/calendar-24.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/v4/public/r/styles/new-york-v4/calendar-24.json b/apps/v4/public/r/styles/new-york-v4/calendar-24.json index 226c5041a8..e637869404 100644 --- a/apps/v4/public/r/styles/new-york-v4/calendar-24.json +++ b/apps/v4/public/r/styles/new-york-v4/calendar-24.json @@ -12,7 +12,7 @@ "files": [ { "path": "registry/new-york-v4/blocks/calendar-24.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { ChevronDownIcon } from \"lucide-react\"\n\nimport { Button } from \"@/registry/new-york-v4/ui/button\"\nimport { Calendar } from \"@/registry/new-york-v4/ui/calendar\"\nimport { Input } from \"@/registry/new-york-v4/ui/input\"\nimport { Label } from \"@/registry/new-york-v4/ui/label\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/new-york-v4/ui/popover\"\n\nexport default function Calendar24() {\n const [open, setOpen] = React.useState(false)\n const [date, setDate] = React.useState(undefined)\n\n return (\n
\n
\n \n \n \n \n {date ? date.toLocaleDateString() : \"Select date\"}\n \n \n \n \n {\n setDate(date)\n setOpen(false)\n }}\n />\n \n \n
\n
\n \n \n
\n
\n )\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { ChevronDownIcon } from \"lucide-react\"\n\nimport { Button } from \"@/registry/new-york-v4/ui/button\"\nimport { Calendar } from \"@/registry/new-york-v4/ui/calendar\"\nimport { Input } from \"@/registry/new-york-v4/ui/input\"\nimport { Label } from \"@/registry/new-york-v4/ui/label\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/new-york-v4/ui/popover\"\n\nexport default function Calendar24() {\n const [open, setOpen] = React.useState(false)\n const [date, setDate] = React.useState(undefined)\n\n return (\n
\n
\n \n \n \n \n {date ? date.toLocaleDateString() : \"Select date\"}\n \n \n \n \n {\n setDate(date)\n setOpen(false)\n }}\n />\n \n \n
\n
\n \n \n
\n
\n )\n}\n", "type": "registry:component" } ], diff --git a/apps/v4/registry/new-york-v4/blocks/calendar-24.tsx b/apps/v4/registry/new-york-v4/blocks/calendar-24.tsx index 0e9cca2796..f2a8d5e32b 100644 --- a/apps/v4/registry/new-york-v4/blocks/calendar-24.tsx +++ b/apps/v4/registry/new-york-v4/blocks/calendar-24.tsx @@ -20,14 +20,14 @@ export default function Calendar24() { return (
-
-