select.d.ts•1.26 kB
/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { DistributiveOmit, Pretty } from '../types/system-types';
interface SelectVariant {
/**
* @default "outline"
*/
variant: "outline" | "ghost"
/**
* @default "md"
*/
size: "xs" | "sm" | "md" | "lg"
}
type SelectVariantMap = {
[key in keyof SelectVariant]: Array<SelectVariant[key]>
}
type SelectSlot = "label" | "positioner" | "trigger" | "indicator" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "list" | "content" | "root" | "control" | "valueText"
export type SelectVariantProps = {
[key in keyof SelectVariant]?: ConditionalValue<SelectVariant[key]> | undefined
}
export interface SelectRecipe {
__slot: SelectSlot
__type: SelectVariantProps
(props?: SelectVariantProps): Pretty<Record<SelectSlot, 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