UNPKG

maz-ui

Version:

A standalone components library for Vue.Js 3 & Nuxt.Js 3

66 lines (65 loc) 2.25 kB
import type { Color, Icon } from './types'; export type { Color }; export interface Step { title?: string; subtitle?: string; titleInfo?: string; disabled?: boolean; error?: boolean; success?: boolean; warning?: boolean; icon?: string | Icon; } export type Steps = Step[]; export interface Props { /** The current step */ modelValue?: number; /** The steps */ steps?: Steps; /** * The color of the stepper * @default primary */ color?: Color; /** Disable the next steps */ disabledNextSteps?: boolean; /** Disable the previous steps */ disabledPreviousSteps?: boolean; /** Auto validate the steps */ autoValidateSteps?: boolean; /** Open all steps */ allStepsOpened?: boolean; /** Validate all steps */ allStepsValidated?: boolean; /** Allow to close the steps */ canCloseSteps?: boolean; } declare function __VLS_template(): { attrs: Partial<{}>; slots: Partial<Record<`icon-${number}`, (_: {}) => any>> & Partial<Record<`title-${number}`, (_: {}) => any>> & Partial<Record<`subtitle-${number}`, (_: {}) => any>> & Partial<Record<`title-info-${number}`, (_: {}) => any>> & Partial<Record<`content-${number}`, (_: { validated: boolean; error: boolean | undefined; warning: boolean | undefined; nextStep: () => void; previousStep: () => void; }) => any>>; refs: {}; rootEl: HTMLDivElement; }; type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { "update:model-value": (value: number) => any; }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{ "onUpdate:model-value"?: ((value: number) => any) | undefined; }>, { color: Color; modelValue: number; steps: Steps; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };