{"version":3,"file":"token.mjs","sources":["../../../../../packages/components/select/src/token.ts"],"sourcesContent":["import type { OptionProps, SelectProps } from './defaults'\nimport type { ExtractPropTypes, InjectionKey, Ref, ComputedRef } from 'vue'\n\nexport interface SelectContext {\n  props: ExtractPropTypes<typeof SelectProps>\n  expanded: Ref<boolean>\n  states: Record<string, any>\n  filteredOptions: ComputedRef<any[]>\n  handleSelect: (option: any, index: number, byClick?: boolean) => void\n  onKeyboardNavigate: (direction: 'forward' | 'backward') => void\n  onKeyboardSelect: () => void\n  onHover: (idx: number) => void\n  getLabel: (item: any) => string | number\n  getValue: (item: any) => string | number\n  update: (\n    val: (string | number)[],\n    label: string[],\n    option: Record<string, any>[]\n  ) => void\n}\n\nexport const selectInjectionKey: InjectionKey<SelectContext> = Symbol()\n\nexport type IOptionProps = ExtractPropTypes<typeof OptionProps>\n\nexport type ISelectProps = ExtractPropTypes<typeof SelectProps>\n"],"names":[],"mappings":"AAqBO,MAAM,qBAAkD,MAAO;;;;"}