UNPKG

maz-ui

Version:

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

61 lines (60 loc) 2.24 kB
import { IconComponent } from '@maz-ui/icons'; import { MazColor } from './types'; export interface MazStepperStep { title?: string; subtitle?: string; titleInfo?: string; disabled?: boolean; error?: boolean; success?: boolean; warning?: boolean; icon?: string | IconComponent; } export interface MazStepperProps { /** The current step */ modelValue?: number; /** The steps */ steps?: MazStepperStep[]; /** * The color of the stepper * @default primary */ color?: MazColor; /** 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<MazStepperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { "update:model-value": (value: number) => any; }, string, import('vue').PublicProps, Readonly<MazStepperProps> & Readonly<{ "onUpdate:model-value"?: ((value: number) => any) | undefined; }>, {}, {}, {}, {}, 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; }; };