Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import type { UiAdapterDefinition } from "./types.js";
|
||||
|
||||
export const buttonAdapterNames = ["Button", "buttonVariants"] as const;
|
||||
|
||||
export type ButtonAdapterName = (typeof buttonAdapterNames)[number];
|
||||
|
||||
export type ButtonAdapter = UiAdapterDefinition<"buttons"> & {
|
||||
readonly status: "available";
|
||||
readonly name: ButtonAdapterName;
|
||||
readonly source: "apps/web/app/components/ui/button.tsx";
|
||||
readonly implementation: "shadcn/radix";
|
||||
readonly packageExport: "@toolctrl/ui/buttons";
|
||||
};
|
||||
|
||||
export const buttonAdapters = buttonAdapterNames.map((name) => ({
|
||||
category: "buttons",
|
||||
name,
|
||||
status: "available",
|
||||
source: "apps/web/app/components/ui/button.tsx",
|
||||
implementation: "shadcn/radix",
|
||||
packageExport: "@toolctrl/ui/buttons",
|
||||
description: name === "Button" ? "Primary application button primitive adapter target." : "Button variant class generator adapter target.",
|
||||
})) satisfies readonly ButtonAdapter[];
|
||||
Reference in new issue
Block a user