maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
64 lines (63 loc) • 2.41 kB
TypeScript
import type { FilterCurrencyOptions } from '../modules/filters/currency';
export interface Props {
/** @model The value of the input */
modelValue?: number;
/** The currency to use */
currency?: string;
/** The locale to use */
locale?: string;
/** The minimum value that the input can accept */
min?: number;
/** The maximum value that the input can accept */
max?: number;
/** The input will be displayed without icon */
noIcon?: boolean;
/** The input will be displayed in full width */
block?: boolean;
/** Will display the input in error state. */
error?: boolean;
/** The hint text to display below the input. */
hint?: string;
/** Will display the input in success state. */
success?: boolean;
/** Will display the input in warning state. */
warning?: boolean;
/** Options for the currency helper - [see](https://maz-ui.com/helpers/currency) */
currencyOptions?: Omit<FilterCurrencyOptions, 'currency'>;
}
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
"left-icon"?(_: {}): any;
};
refs: {};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
input: (value: number | undefined) => any;
blur: (value: Event) => any;
focus: (value: Event) => any;
"update:model-value": (value: number | undefined) => any;
formatted: (value: string | undefined) => any;
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
onInput?: ((value: number | undefined) => any) | undefined;
onBlur?: ((value: Event) => any) | undefined;
onFocus?: ((value: Event) => any) | undefined;
"onUpdate:model-value"?: ((value: number | undefined) => any) | undefined;
onFormatted?: ((value: string | undefined) => any) | undefined;
}>, {
modelValue: number;
currency: string;
locale: string;
max: number;
min: number;
noIcon: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};