From fc22a6999a09096d7d81b6f370c4452e56be12ec Mon Sep 17 00:00:00 2001 From: Pasquale Vitiello Date: Thu, 2 Jul 2026 12:59:21 +0200 Subject: [PATCH 01/49] fix: badge 19 example (#812) --- apps/ui/public/r/p-badge-19.json | 5 ++++- apps/ui/public/r/registry.json | 3 +++ apps/ui/registry.json | 3 +++ apps/ui/registry/__index__.tsx | 2 +- apps/ui/registry/default/particles/p-badge-19.tsx | 10 +++------- apps/ui/registry/registry-particles.ts | 3 +++ 6 files changed, 17 insertions(+), 9 deletions(-) diff --git a/apps/ui/public/r/p-badge-19.json b/apps/ui/public/r/p-badge-19.json index 8903bb25d..35b928538 100644 --- a/apps/ui/public/r/p-badge-19.json +++ b/apps/ui/public/r/p-badge-19.json @@ -12,10 +12,13 @@ "files": [ { "path": "registry/default/particles/p-badge-19.tsx", - "content": "\"use client\";\n\nimport { CheckIcon } from \"lucide-react\";\nimport { useId } from \"react\";\nimport { Badge } from \"@/registry/default/ui/badge\";\nimport { Checkbox } from \"@/registry/default/ui/checkbox\";\n\nexport default function Particle() {\n const id = useId();\n return (\n \n \n \n \n Selectable\n \n \n );\n}\n", + "content": "\"use client\";\n\nimport { CheckIcon } from \"lucide-react\";\nimport { useId } from \"react\";\nimport { Badge } from \"@/registry/default/ui/badge\";\nimport { Checkbox } from \"@/registry/default/ui/checkbox\";\n\nexport default function Particle() {\n const id = useId();\n return (\n \n \n \n \n Selectable\n \n \n );\n}\n", "type": "registry:block" } ], + "meta": { + "className": "**:data-[slot=preview]:flex" + }, "categories": [ "badge", "checkbox" diff --git a/apps/ui/public/r/registry.json b/apps/ui/public/r/registry.json index bc39b64af..217515665 100644 --- a/apps/ui/public/r/registry.json +++ b/apps/ui/public/r/registry.json @@ -2143,6 +2143,9 @@ "type": "registry:block" } ], + "meta": { + "className": "**:data-[slot=preview]:flex" + }, "name": "p-badge-19", "registryDependencies": [ "@coss/badge", diff --git a/apps/ui/registry.json b/apps/ui/registry.json index bc39b64af..217515665 100644 --- a/apps/ui/registry.json +++ b/apps/ui/registry.json @@ -2143,6 +2143,9 @@ "type": "registry:block" } ], + "meta": { + "className": "**:data-[slot=preview]:flex" + }, "name": "p-badge-19", "registryDependencies": [ "@coss/badge", diff --git a/apps/ui/registry/__index__.tsx b/apps/ui/registry/__index__.tsx index 416cd059d..1907fce55 100644 --- a/apps/ui/registry/__index__.tsx +++ b/apps/ui/registry/__index__.tsx @@ -2075,7 +2075,7 @@ export const Index: Record = { return { default: mod.default || mod[exportName] } }), categories: ["badge","checkbox"], - meta: undefined, + meta: {"className":"**:data-[slot=preview]:flex"}, }, "p-badge-20": { name: "p-badge-20", diff --git a/apps/ui/registry/default/particles/p-badge-19.tsx b/apps/ui/registry/default/particles/p-badge-19.tsx index 6ba64860f..39d2a1d76 100644 --- a/apps/ui/registry/default/particles/p-badge-19.tsx +++ b/apps/ui/registry/default/particles/p-badge-19.tsx @@ -8,15 +8,11 @@ import { Checkbox } from "@/registry/default/ui/checkbox"; export default function Particle() { const id = useId(); return ( - - + +