19 lines
809 B
TypeScript
19 lines
809 B
TypeScript
|
|
import { TooltipInstance } from "../../tooltip/src/tooltip.js";
|
||
|
|
import { Option } from "./select.types.js";
|
||
|
|
import { OptionV2Props, SelectV2Instance, SelectV2Props } from "./defaults.js";
|
||
|
|
import { InjectionKey, Ref } from "vue";
|
||
|
|
|
||
|
|
//#region ../../packages/components/select-v2/src/token.d.ts
|
||
|
|
interface SelectV2Context {
|
||
|
|
props: SelectV2Props;
|
||
|
|
expanded: Ref<boolean>;
|
||
|
|
tooltipRef: Ref<TooltipInstance | undefined>;
|
||
|
|
contentId: Ref<string>;
|
||
|
|
onSelect: (option: Option) => void;
|
||
|
|
onHover: (idx?: number) => void;
|
||
|
|
onKeyboardNavigate: (direction: 'forward' | 'backward') => void;
|
||
|
|
onKeyboardSelect: () => void;
|
||
|
|
}
|
||
|
|
declare const selectV2InjectionKey: InjectionKey<SelectV2Context>;
|
||
|
|
//#endregion
|
||
|
|
export { type OptionV2Props, SelectV2Context, type SelectV2Instance, type SelectV2Props, selectV2InjectionKey };
|