24 lines
916 B
TypeScript
24 lines
916 B
TypeScript
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: "@hivegrid/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: "@hivegrid/ui/buttons",
|
|
description: name === "Button" ? "Primary application button primitive adapter target." : "Button variant class generator adapter target.",
|
|
})) satisfies readonly ButtonAdapter[];
|