UNPKG

@cerberus-design/styled-system

Version:

Cerberus Design System Panda-CSS styled-system.

31 lines (25 loc) 968 B
/* eslint-disable */ import type { ConditionalValue } from '../types/index'; import type { DistributiveOmit, Pretty } from '../types/system-types'; interface InputVariant { /** * @default "lg" */ size: "sm" | "md" | "lg" } type InputVariantMap = { [key in keyof InputVariant]: Array<InputVariant[key]> } export type InputVariantProps = { [key in keyof InputVariant]?: ConditionalValue<InputVariant[key]> | undefined } export interface InputRecipe { __type: InputVariantProps (props?: InputVariantProps): Pretty<Record<"root" | "input" | "icon" | "startIcon", string>> raw: (props?: InputVariantProps) => InputVariantProps variantMap: InputVariantMap variantKeys: Array<keyof InputVariant> splitVariantProps<Props extends InputVariantProps>(props: Props): [InputVariantProps, Pretty<DistributiveOmit<Props, keyof InputVariantProps>>] getVariantProps: (props?: InputVariantProps) => InputVariantProps } export declare const input: InputRecipe