diff --git a/www/src/__demos__/index.tsx b/www/src/__demos__/index.tsx index fb459376..cdc23f56 100644 --- a/www/src/__demos__/index.tsx +++ b/www/src/__demos__/index.tsx @@ -39,6 +39,20 @@ export const Index: Record = { files: ["registry/demos/alert/variants.tsx"], component: React.lazy(() => import("@/registry/demos/alert/variants")), }, + "aspect-ratio-as-child": { + name: "aspect-ratio-as-child", + files: ["registry/demos/aspect-ratio/as-child.tsx"], + component: React.lazy( + () => import("@/registry/demos/aspect-ratio/as-child") + ), + }, + "aspect-ratio-default": { + name: "aspect-ratio-default", + files: ["registry/demos/aspect-ratio/default.tsx"], + component: React.lazy( + () => import("@/registry/demos/aspect-ratio/default") + ), + }, "avatar-composition": { name: "avatar-composition", files: ["registry/demos/avatar/composition.tsx"], @@ -61,6 +75,26 @@ export const Index: Record = { files: ["registry/demos/avatar/sizes.tsx"], component: React.lazy(() => import("@/registry/demos/avatar/sizes")), }, + "badge-default": { + name: "badge-default", + files: ["registry/demos/badge/default.tsx"], + component: React.lazy(() => import("@/registry/demos/badge/default")), + }, + "badge-icon": { + name: "badge-icon", + files: ["registry/demos/badge/icon.tsx"], + component: React.lazy(() => import("@/registry/demos/badge/icon")), + }, + "badge-sizes": { + name: "badge-sizes", + files: ["registry/demos/badge/sizes.tsx"], + component: React.lazy(() => import("@/registry/demos/badge/sizes")), + }, + "badge-variants": { + name: "badge-variants", + files: ["registry/demos/badge/variants.tsx"], + component: React.lazy(() => import("@/registry/demos/badge/variants")), + }, "breadcrumbs-basic": { name: "breadcrumbs-basic", files: ["registry/demos/breadcrumbs/basic.tsx"], diff --git a/www/src/lib/get-files-source.ts b/www/src/lib/get-files-source.ts index dfdb9b99..07a7d066 100644 --- a/www/src/lib/get-files-source.ts +++ b/www/src/lib/get-files-source.ts @@ -35,16 +35,5 @@ export const getFilesSource = async (relativePath: string) => { }; const getFilePath = (relativePath: string) => { - if (relativePath.startsWith("core")) { - return path.join( - process.cwd(), - "src", - "registry", - "ui", - "default", - relativePath, - relativePath.split("/").pop() || "" - ); - } return path.join(process.cwd(), "src", "registry", relativePath); }; diff --git a/www/src/registry/index/demos.ts b/www/src/registry/index/demos.ts index edcba4f7..e07451ae 100644 --- a/www/src/registry/index/demos.ts +++ b/www/src/registry/index/demos.ts @@ -24,9 +24,9 @@ export const demos: RegistryDemos = [ "title", "variants", ]), - ...buildDemos("aspect-ratio", []), + ...buildDemos("aspect-ratio", ["as-child", "default"]), ...buildDemos("avatar", ["composition", "default", "shape", "sizes"]), - ...buildDemos("badge", []), + ...buildDemos("badge", ["default", "icon", "sizes", "variants"]), ...buildDemos("breadcrumbs", [ "basic", "composition", diff --git a/www/src/styles/globals.css b/www/src/styles/globals.css index b7205685..56d28995 100644 --- a/www/src/styles/globals.css +++ b/www/src/styles/globals.css @@ -1,6 +1,6 @@ @import "tailwindcss"; @plugin "tailwindcss-animate"; -@plugin "tailwindcss-rac"; +/* @plugin "tailwindcss-rac"; */ @variant dark (&:where(.dark, .dark *)); diff --git a/www/tsconfig.json b/www/tsconfig.json index 70f67d3c..0fd9e740 100644 --- a/www/tsconfig.json +++ b/www/tsconfig.json @@ -9,14 +9,14 @@ "paths": { "@/*": ["./src/*"], "~/*": ["./*"] - }, + } }, "include": [ "next-env.d.ts", "**/*.ts", "**/*.d.ts", "**/*.tsx", - ".next/types/**/*.ts", "src/lib/tw-plugins/tw-rac.js", + ".next/types/**/*.ts", ], "exclude": ["node_modules"] -} \ No newline at end of file +}