@solfacil/girassol
Version:
Girassol design system
72 lines (71 loc) • 2.43 kB
TypeScript
import type { Search } from './types';
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
id: Search['id'];
size?: Search['size'];
variant?: Search['variant'];
modelValue?: Search['modelValue'];
placeholder?: Search['placeholder'];
ariaLabel: Search['ariaLabel'];
loading?: Search['loading'];
buttonDisabled?: Search['buttonDisabled'];
inputDisabled?: Search['inputDisabled'];
}>, {
modelValue: string;
loading: boolean;
inputDisabled: boolean;
buttonDisabled: boolean;
placeholder: string;
variant: string;
size: string;
ariaLabel: string;
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
search: (value: string) => void;
} & {
"update:modelValue": (value: string) => void;
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
id: Search['id'];
size?: Search['size'];
variant?: Search['variant'];
modelValue?: Search['modelValue'];
placeholder?: Search['placeholder'];
ariaLabel: Search['ariaLabel'];
loading?: Search['loading'];
buttonDisabled?: Search['buttonDisabled'];
inputDisabled?: Search['inputDisabled'];
}>, {
modelValue: string;
loading: boolean;
inputDisabled: boolean;
buttonDisabled: boolean;
placeholder: string;
variant: string;
size: string;
ariaLabel: string;
}>>> & {
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
onSearch?: ((value: string) => any) | undefined;
}, {
size: "small" | "medium";
loading: boolean;
variant: import("./types").Variants;
placeholder: string;
modelValue: string;
ariaLabel: Search['ariaLabel'];
buttonDisabled: boolean;
inputDisabled: boolean;
}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithDefaults<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
default: D[K];
} : P[K];
};