import type { ComponentProps, ReactNode } from "react"; import { Label } from "@kandev/ui/label"; import { cn } from "@/lib/utils"; /** * The settings role scale. Keep domain-specific code, status, and badge styles * outside this map so compact technical UI remains intentional. */ export const SETTINGS_TYPOGRAPHY = { pageTitle: "text-2xl font-bold leading-tight", pageDescription: "mt-1 text-sm text-muted-foreground", sectionTitle: "flex items-center gap-2 text-lg font-semibold leading-tight", sectionDescription: "mt-1 text-sm text-muted-foreground", cardTitle: "text-base font-semibold leading-5", cardDescription: "text-sm/relaxed text-muted-foreground", fieldLabel: "text-xs/relaxed font-medium text-foreground", fieldDescription: "text-xs/relaxed text-muted-foreground", error: "text-sm/relaxed text-destructive", meta: "text-[10px]/relaxed text-muted-foreground", control: "text-sm md:text-xs", mobileAction: "min-h-11 text-sm md:min-h-7 md:text-xs", } as const; type SettingsFieldDescriptionProps = ComponentProps<"p">; export function SettingsFieldLabel({ className, ...props }: ComponentProps) { return