UNPKG

@cerberus-design/styled-system

Version:

Cerberus Design System Panda-CSS styled-system.

35 lines (28 loc) 1.16 kB
/* eslint-disable */ import type { ConditionalValue } from '../types/index'; import type { DistributiveOmit, Pretty } from '../types/system-types'; interface SwitchRecipeVariant { /** * @default "sm" */ size: "sm" | "lg" } type SwitchRecipeVariantMap = { [key in keyof SwitchRecipeVariant]: Array<SwitchRecipeVariant[key]> } export type SwitchRecipeVariantProps = { [key in keyof SwitchRecipeVariant]?: ConditionalValue<SwitchRecipeVariant[key]> | undefined } export interface SwitchRecipeRecipe { __type: SwitchRecipeVariantProps (props?: SwitchRecipeVariantProps): Pretty<Record<"root" | "label" | "control" | "thumb", string>> raw: (props?: SwitchRecipeVariantProps) => SwitchRecipeVariantProps variantMap: SwitchRecipeVariantMap variantKeys: Array<keyof SwitchRecipeVariant> splitVariantProps<Props extends SwitchRecipeVariantProps>(props: Props): [SwitchRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SwitchRecipeVariantProps>>] getVariantProps: (props?: SwitchRecipeVariantProps) => SwitchRecipeVariantProps } /** * The styles for the Switch component */ export declare const switchRecipe: SwitchRecipeRecipe