UNPKG

@cerberus-design/styled-system

Version:

Cerberus Design System Panda-CSS styled-system.

31 lines (25 loc) 1.14 kB
/* eslint-disable */ import type { ConditionalValue } from '../types/index'; import type { DistributiveOmit, Pretty } from '../types/system-types'; interface SelectVariant { /** * @default "md" */ size: "sm" | "md" | "lg" } type SelectVariantMap = { [key in keyof SelectVariant]: Array<SelectVariant[key]> } export type SelectVariantProps = { [key in keyof SelectVariant]?: ConditionalValue<SelectVariant[key]> | undefined } export interface SelectRecipe { __type: SelectVariantProps (props?: SelectVariantProps): Pretty<Record<"label" | "positioner" | "trigger" | "indicator" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "list" | "content" | "root" | "control" | "valueText", string>> raw: (props?: SelectVariantProps) => SelectVariantProps variantMap: SelectVariantMap variantKeys: Array<keyof SelectVariant> splitVariantProps<Props extends SelectVariantProps>(props: Props): [SelectVariantProps, Pretty<DistributiveOmit<Props, keyof SelectVariantProps>>] getVariantProps: (props?: SelectVariantProps) => SelectVariantProps } export declare const select: SelectRecipe