UNPKG

@indielayer/ui

Version:

Indielayer UI Components with Tailwind CSS build for Vue 3

150 lines (149 loc) 5.01 kB
import { type ExtractPublicPropTypes, type MaybeRef } from 'vue'; import { type ThemeComponent } from '../../composables/useTheme'; declare const formGroupProps: { vertical: { type: BooleanConstructor; default: boolean; }; modelValue: { readonly type: import("vue").PropType<string | number | boolean | object | any[] | undefined>; readonly default: undefined; }; id: StringConstructor; name: StringConstructor; readonly: BooleanConstructor; required: BooleanConstructor; validateOnInput: { readonly type: BooleanConstructor; readonly default: true; }; label: StringConstructor; helper: StringConstructor; error: StringConstructor; hideFooter: BooleanConstructor; rules: { readonly type: ArrayConstructor; readonly default: () => never[]; }; tooltip: StringConstructor; skipFormRegistry: BooleanConstructor; disabled: BooleanConstructor; loading: BooleanConstructor; loadingLabel: StringConstructor; loadingStatus: { readonly type: import("vue").PropType<import("../loader/Loader.vue").LoaderStatus>; readonly default: "active"; }; }; export type FormGroupProps = ExtractPublicPropTypes<typeof formGroupProps>; export type FormGroupInjection = { registerInputGroup: (name: string, focus: () => void) => void; unregisterInputGroup: (name: string) => void; setValue: (val: string | number | string[] | number[]) => void; value: MaybeRef<string | number | string[] | number[] | null | undefined>; isInsideFormGroup: boolean; }; export type FormGroupInput = { name: string; focus: () => void; }; type InternalClasses = 'wrapper'; export interface FormGroupTheme extends ThemeComponent<FormGroupProps, InternalClasses> { } declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{ vertical: { type: BooleanConstructor; default: boolean; }; modelValue: { readonly type: import("vue").PropType<string | number | boolean | object | any[] | undefined>; readonly default: undefined; }; id: StringConstructor; name: StringConstructor; readonly: BooleanConstructor; required: BooleanConstructor; validateOnInput: { readonly type: BooleanConstructor; readonly default: true; }; label: StringConstructor; helper: StringConstructor; error: StringConstructor; hideFooter: BooleanConstructor; rules: { readonly type: ArrayConstructor; readonly default: () => never[]; }; tooltip: StringConstructor; skipFormRegistry: BooleanConstructor; disabled: BooleanConstructor; loading: BooleanConstructor; loadingLabel: StringConstructor; loadingStatus: { readonly type: import("vue").PropType<import("../loader/Loader.vue").LoaderStatus>; readonly default: "active"; }; }>, { focus: () => void; blur: () => void; reset: () => void; validate: (val?: any) => boolean; setError: (val: string) => void; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ vertical: { type: BooleanConstructor; default: boolean; }; modelValue: { readonly type: import("vue").PropType<string | number | boolean | object | any[] | undefined>; readonly default: undefined; }; id: StringConstructor; name: StringConstructor; readonly: BooleanConstructor; required: BooleanConstructor; validateOnInput: { readonly type: BooleanConstructor; readonly default: true; }; label: StringConstructor; helper: StringConstructor; error: StringConstructor; hideFooter: BooleanConstructor; rules: { readonly type: ArrayConstructor; readonly default: () => never[]; }; tooltip: StringConstructor; skipFormRegistry: BooleanConstructor; disabled: BooleanConstructor; loading: BooleanConstructor; loadingLabel: StringConstructor; loadingStatus: { readonly type: import("vue").PropType<import("../loader/Loader.vue").LoaderStatus>; readonly default: "active"; }; }>> & Readonly<{ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined; }>, { disabled: boolean; loading: boolean; loadingStatus: import("../loader/Loader.vue").LoaderStatus; modelValue: string | number | boolean | object | any[] | undefined; readonly: boolean; required: boolean; validateOnInput: boolean; hideFooter: boolean; rules: unknown[]; skipFormRegistry: boolean; vertical: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, { default?(_: {}): any; }>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };