import { descriptionVariants, fieldErrorVariants, labelVariants, switchGroupVariants, textFieldVariants, type DescriptionVariants, type FieldErrorVariants, type LabelVariants, type SwitchGroupVariants, type TextFieldVariants, type VariantProps, } from "@heroui-vue/styles"; import { labelVariants as componentsLabelVariants, type LabelVariants as ComponentsLabelVariants, } from "@heroui-vue/components"; const required: LabelVariants = { isRequired: true, isDisabled: false }; labelVariants(required); labelVariants({ isInvalid: true }); descriptionVariants(); fieldErrorVariants(); const wide: TextFieldVariants = { fullWidth: true }; textFieldVariants(wide); const horizontal: SwitchGroupVariants = { orientation: "horizontal" }; switchGroupVariants(horizontal); switchGroupVariants({ orientation: "vertical" }).items(); // Components re-export the same mapping and type. const viaComponents: ComponentsLabelVariants = { isDisabled: true }; componentsLabelVariants(viaComponents); type Description = VariantProps; const base: Description = {}; descriptionVariants(base); // @ts-expect-error variant flags stay boolean-typed const badRequired: LabelVariants = { isRequired: "yes" }; // @ts-expect-error unknown label variant keys stay rejected const badLabelKey: LabelVariants = { isDanger: true }; // @ts-expect-error fullWidth stays boolean-typed const badWidth: TextFieldVariants = { fullWidth: "yes" }; // @ts-expect-error orientation stays a closed union const badOrientation: SwitchGroupVariants = { orientation: "diagonal" }; // @ts-expect-error the exported description shape stays non-nullable object-typed const badDescription: DescriptionVariants = null; // @ts-expect-error the exported field-error shape stays non-nullable object-typed const badFieldError: FieldErrorVariants = null; void badRequired; void badLabelKey; void badWidth; void badOrientation; void badDescription; void badFieldError;