@dolanske/vui 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.vue.d.ts +48 -0
- package/dist/components/Accordion/AccordionGroup.vue.d.ts +21 -0
- package/dist/components/Alert/Alert.vue.d.ts +36 -0
- package/dist/components/Avatar/Avatar.vue.d.ts +25 -0
- package/dist/components/Badge/Badge.vue.d.ts +22 -0
- package/dist/components/Breadcrumbs/BreadcrumbItem.vue.d.ts +22 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +18 -0
- package/dist/components/Button/Button.vue.d.ts +32 -0
- package/dist/components/ButtonGroup/ButtonGroup.vue.d.ts +22 -0
- package/dist/components/Calendar/Calendar.vue.d.ts +27 -0
- package/dist/components/Card/Card.vue.d.ts +26 -0
- package/dist/components/Checkbox/Checkbox.vue.d.ts +33 -0
- package/dist/components/CopyClipboard/CopyClipboard.vue.d.ts +46 -0
- package/dist/components/Divider/Divider.vue.d.ts +23 -0
- package/dist/components/Drawer/Drawer.vue.d.ts +53 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts +177 -0
- package/dist/components/Dropdown/DropdownItem.vue.d.ts +23 -0
- package/dist/components/Dropdown/DropdownTitle.vue.d.ts +21 -0
- package/dist/components/Flex/Flex.vue.d.ts +41 -0
- package/dist/components/Grid/Grid.vue.d.ts +35 -0
- package/dist/components/Input/Color.vue.d.ts +11 -0
- package/dist/components/Input/Counter.vue.d.ts +19 -0
- package/dist/components/Input/Dropzone.vue.d.ts +193 -0
- package/dist/components/Input/File.vue.d.ts +8 -0
- package/dist/components/Input/Input.vue.d.ts +56 -0
- package/dist/components/Input/Password.vue.d.ts +6 -0
- package/dist/components/Input/Textarea.vue.d.ts +31 -0
- package/dist/components/Kbd/Kbd.vue.d.ts +23 -0
- package/dist/components/Kbd/KbdGroup.vue.d.ts +19 -0
- package/dist/components/Modal/Confirm.vue.d.ts +43 -0
- package/dist/components/Modal/Modal.vue.d.ts +58 -0
- package/dist/components/OTP/OTP.vue.d.ts +44 -0
- package/dist/components/OTP/OTPItem.vue.d.ts +5 -0
- package/dist/components/Pagination/Pagination.vue.d.ts +46 -0
- package/dist/components/Pagination/pagination.d.ts +12 -0
- package/dist/components/Popout/Popout.vue.d.ts +36 -0
- package/dist/components/Progress/Progress.vue.d.ts +33 -0
- package/dist/components/Radio/Radio.vue.d.ts +29 -0
- package/dist/components/Radio/RadioGroup.vue.d.ts +27 -0
- package/dist/components/Select/Select.vue.d.ts +35 -0
- package/dist/components/Sheet/Sheet.vue.d.ts +47 -0
- package/dist/components/Sidebar/Sidebar.vue.d.ts +70 -0
- package/dist/components/Skeleton/Skeleton.vue.d.ts +8 -0
- package/dist/components/Spinner/Spinner.vue.d.ts +6 -0
- package/dist/components/Switch/Switch.vue.d.ts +28 -0
- package/dist/components/Table/Cell.vue.d.ts +22 -0
- package/dist/components/Table/Head.vue.d.ts +30 -0
- package/dist/components/Table/Root.vue.d.ts +41 -0
- package/dist/components/Table/SelectAll.vue.d.ts +2 -0
- package/dist/components/Table/SelectRow.vue.d.ts +6 -0
- package/dist/components/Table/index.d.ts +6 -0
- package/dist/components/Table/table.d.ts +68 -0
- package/dist/components/Tabs/Tab.vue.d.ts +22 -0
- package/dist/components/Tabs/Tabs.vue.d.ts +34 -0
- package/dist/components/Toast/Toasts.vue.d.ts +2 -0
- package/dist/components/Toast/toast.d.ts +287 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts +33 -0
- package/dist/fonts/GeistMono-Regular.ttf +0 -0
- package/dist/fonts/GeistMono-SemiBold.ttf +0 -0
- package/dist/fonts/Inter_18pt-Black.ttf +0 -0
- package/dist/fonts/Inter_18pt-Bold.ttf +0 -0
- package/dist/fonts/Inter_18pt-ExtraBold.ttf +0 -0
- package/dist/fonts/Inter_18pt-Light.ttf +0 -0
- package/dist/fonts/Inter_18pt-Medium.ttf +0 -0
- package/dist/fonts/Inter_18pt-Regular.ttf +0 -0
- package/dist/fonts/Inter_18pt-SemiBold.ttf +0 -0
- package/dist/index.d.ts +56 -0
- package/dist/internal/Backdrop/Backdrop.vue.d.ts +21 -0
- package/dist/shared/helpers.d.ts +34 -0
- package/dist/shared/slots.d.ts +20 -0
- package/dist/shared/theme.d.ts +3 -0
- package/dist/shared/types.d.ts +24 -0
- package/dist/vui.css +1 -0
- package/dist/vui.js +16215 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
icon?: string;
|
|
4
|
+
iconEnd?: string;
|
|
5
|
+
}
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
hint?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLButtonElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
sticky?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
end?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Space } from '../../shared/types';
|
|
2
|
+
export interface FlexProps {
|
|
3
|
+
inline?: boolean;
|
|
4
|
+
wrap?: boolean;
|
|
5
|
+
wrapReverse?: boolean;
|
|
6
|
+
row?: boolean;
|
|
7
|
+
column?: boolean;
|
|
8
|
+
rowReverse?: boolean;
|
|
9
|
+
columnReverse?: boolean;
|
|
10
|
+
gap?: Space | number;
|
|
11
|
+
xStart?: boolean;
|
|
12
|
+
xEnd?: boolean;
|
|
13
|
+
xCenter?: boolean;
|
|
14
|
+
xBetween?: boolean;
|
|
15
|
+
xAround?: boolean;
|
|
16
|
+
xEvenly?: boolean;
|
|
17
|
+
yCenter?: boolean;
|
|
18
|
+
yStart?: boolean;
|
|
19
|
+
yEnd?: boolean;
|
|
20
|
+
yBaseline?: boolean;
|
|
21
|
+
expand?: boolean;
|
|
22
|
+
}
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
attrs: Partial<{}>;
|
|
25
|
+
slots: {
|
|
26
|
+
default?(_: {}): any;
|
|
27
|
+
};
|
|
28
|
+
refs: {};
|
|
29
|
+
rootEl: HTMLDivElement;
|
|
30
|
+
};
|
|
31
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
32
|
+
declare const __VLS_component: import('vue').DefineComponent<FlexProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FlexProps> & Readonly<{}>, {
|
|
33
|
+
gap: Space | number;
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
35
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Space } from '../../shared/types';
|
|
2
|
+
/**
|
|
3
|
+
* This component is not meant for complex grids
|
|
4
|
+
*/
|
|
5
|
+
interface Props {
|
|
6
|
+
inline?: boolean;
|
|
7
|
+
gap?: Space | number;
|
|
8
|
+
rows?: number | string;
|
|
9
|
+
columns?: number | string;
|
|
10
|
+
yCenter?: boolean;
|
|
11
|
+
yStart?: boolean;
|
|
12
|
+
yEnd?: boolean;
|
|
13
|
+
yBaseline?: boolean;
|
|
14
|
+
yStretch?: boolean;
|
|
15
|
+
expand?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare function __VLS_template(): {
|
|
18
|
+
attrs: Partial<{}>;
|
|
19
|
+
slots: {
|
|
20
|
+
default?(_: {}): any;
|
|
21
|
+
};
|
|
22
|
+
refs: {};
|
|
23
|
+
rootEl: HTMLDivElement;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
27
|
+
gap: Space | number;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputProps } from './Input.vue';
|
|
2
|
+
type __VLS_Props = InputProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: string;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: string) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { InputProps } from './Input.vue';
|
|
2
|
+
type Props = Omit<InputProps, 'type'> & {
|
|
3
|
+
incrementBy?: number;
|
|
4
|
+
incrementEnabled?: boolean;
|
|
5
|
+
hideIncrement?: boolean;
|
|
6
|
+
decrementBy?: number;
|
|
7
|
+
decrementEnabled?: boolean;
|
|
8
|
+
hideDecrement?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Props = Props;
|
|
11
|
+
type __VLS_PublicProps = {
|
|
12
|
+
modelValue?: number;
|
|
13
|
+
} & __VLS_Props;
|
|
14
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: number) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { InputProps } from './Input.vue';
|
|
2
|
+
type Props = Omit<InputProps, 'type' | 'modelValue' | 'focus' | 'limit' | 'placeholder'>;
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {
|
|
7
|
+
dragging: boolean;
|
|
8
|
+
}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {
|
|
11
|
+
dropzone: ({
|
|
12
|
+
$: import('vue').ComponentInternalInstance;
|
|
13
|
+
$data: {};
|
|
14
|
+
$props: {
|
|
15
|
+
readonly modelValue?: string | number | undefined;
|
|
16
|
+
readonly type?: import('./Input.vue').InputType | undefined;
|
|
17
|
+
readonly label?: string | undefined;
|
|
18
|
+
readonly hint?: string | undefined;
|
|
19
|
+
readonly limit?: number | string | undefined;
|
|
20
|
+
readonly expand?: boolean | undefined;
|
|
21
|
+
readonly placeholder?: string | undefined;
|
|
22
|
+
readonly required?: boolean | undefined;
|
|
23
|
+
readonly readonly?: boolean | undefined;
|
|
24
|
+
readonly focus?: boolean | undefined;
|
|
25
|
+
readonly errors?: string[] | undefined;
|
|
26
|
+
readonly accept?: string | undefined;
|
|
27
|
+
readonly multiple?: boolean | undefined;
|
|
28
|
+
readonly min?: number | undefined;
|
|
29
|
+
readonly max?: number | undefined;
|
|
30
|
+
readonly disabled?: boolean | undefined;
|
|
31
|
+
readonly "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
32
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
33
|
+
$attrs: {
|
|
34
|
+
[x: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
$refs: {
|
|
37
|
+
[x: string]: unknown;
|
|
38
|
+
} & {
|
|
39
|
+
input: HTMLInputElement;
|
|
40
|
+
};
|
|
41
|
+
$slots: Readonly<{
|
|
42
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
45
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
46
|
+
$host: Element | null;
|
|
47
|
+
$emit: (event: "update:modelValue", value: string | number) => void;
|
|
48
|
+
$el: HTMLDivElement;
|
|
49
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
50
|
+
modelValue?: string | number;
|
|
51
|
+
} & InputProps> & Readonly<{
|
|
52
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
53
|
+
}>, {
|
|
54
|
+
focus: () => void;
|
|
55
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
56
|
+
"update:modelValue": (value: string | number) => any;
|
|
57
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
58
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
59
|
+
created?: (() => void) | (() => void)[];
|
|
60
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
61
|
+
mounted?: (() => void) | (() => void)[];
|
|
62
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
63
|
+
updated?: (() => void) | (() => void)[];
|
|
64
|
+
activated?: (() => void) | (() => void)[];
|
|
65
|
+
deactivated?: (() => void) | (() => void)[];
|
|
66
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
67
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
68
|
+
destroyed?: (() => void) | (() => void)[];
|
|
69
|
+
unmounted?: (() => void) | (() => void)[];
|
|
70
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
71
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
72
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
73
|
+
};
|
|
74
|
+
$forceUpdate: () => void;
|
|
75
|
+
$nextTick: typeof import('vue').nextTick;
|
|
76
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
77
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
78
|
+
modelValue?: string | number;
|
|
79
|
+
} & InputProps> & Readonly<{
|
|
80
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
81
|
+
}>, "focus"> & import('vue').ShallowUnwrapRef<{
|
|
82
|
+
focus: () => void;
|
|
83
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
84
|
+
$slots: {
|
|
85
|
+
before?(_: {}): any;
|
|
86
|
+
start?(_: {}): any;
|
|
87
|
+
__internal_replace_input?(_: {
|
|
88
|
+
inputId: string;
|
|
89
|
+
}): any;
|
|
90
|
+
end?(_: {}): any;
|
|
91
|
+
after?(_: {}): any;
|
|
92
|
+
};
|
|
93
|
+
}) | null;
|
|
94
|
+
};
|
|
95
|
+
rootEl: HTMLDivElement;
|
|
96
|
+
};
|
|
97
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
98
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
99
|
+
files: (args_0: FileList) => any;
|
|
100
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
101
|
+
onFiles?: ((args_0: FileList) => any) | undefined;
|
|
102
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
103
|
+
dropzone: ({
|
|
104
|
+
$: import('vue').ComponentInternalInstance;
|
|
105
|
+
$data: {};
|
|
106
|
+
$props: {
|
|
107
|
+
readonly modelValue?: string | number | undefined;
|
|
108
|
+
readonly type?: import('./Input.vue').InputType | undefined;
|
|
109
|
+
readonly label?: string | undefined;
|
|
110
|
+
readonly hint?: string | undefined;
|
|
111
|
+
readonly limit?: number | string | undefined;
|
|
112
|
+
readonly expand?: boolean | undefined;
|
|
113
|
+
readonly placeholder?: string | undefined;
|
|
114
|
+
readonly required?: boolean | undefined;
|
|
115
|
+
readonly readonly?: boolean | undefined;
|
|
116
|
+
readonly focus?: boolean | undefined;
|
|
117
|
+
readonly errors?: string[] | undefined;
|
|
118
|
+
readonly accept?: string | undefined;
|
|
119
|
+
readonly multiple?: boolean | undefined;
|
|
120
|
+
readonly min?: number | undefined;
|
|
121
|
+
readonly max?: number | undefined;
|
|
122
|
+
readonly disabled?: boolean | undefined;
|
|
123
|
+
readonly "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
124
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
125
|
+
$attrs: {
|
|
126
|
+
[x: string]: unknown;
|
|
127
|
+
};
|
|
128
|
+
$refs: {
|
|
129
|
+
[x: string]: unknown;
|
|
130
|
+
} & {
|
|
131
|
+
input: HTMLInputElement;
|
|
132
|
+
};
|
|
133
|
+
$slots: Readonly<{
|
|
134
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
135
|
+
}>;
|
|
136
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
137
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
138
|
+
$host: Element | null;
|
|
139
|
+
$emit: (event: "update:modelValue", value: string | number) => void;
|
|
140
|
+
$el: HTMLDivElement;
|
|
141
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
142
|
+
modelValue?: string | number;
|
|
143
|
+
} & InputProps> & Readonly<{
|
|
144
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
145
|
+
}>, {
|
|
146
|
+
focus: () => void;
|
|
147
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
148
|
+
"update:modelValue": (value: string | number) => any;
|
|
149
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
150
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
151
|
+
created?: (() => void) | (() => void)[];
|
|
152
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
153
|
+
mounted?: (() => void) | (() => void)[];
|
|
154
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
155
|
+
updated?: (() => void) | (() => void)[];
|
|
156
|
+
activated?: (() => void) | (() => void)[];
|
|
157
|
+
deactivated?: (() => void) | (() => void)[];
|
|
158
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
159
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
160
|
+
destroyed?: (() => void) | (() => void)[];
|
|
161
|
+
unmounted?: (() => void) | (() => void)[];
|
|
162
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
163
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
164
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
165
|
+
};
|
|
166
|
+
$forceUpdate: () => void;
|
|
167
|
+
$nextTick: typeof import('vue').nextTick;
|
|
168
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
169
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
170
|
+
modelValue?: string | number;
|
|
171
|
+
} & InputProps> & Readonly<{
|
|
172
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
173
|
+
}>, "focus"> & import('vue').ShallowUnwrapRef<{
|
|
174
|
+
focus: () => void;
|
|
175
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
176
|
+
$slots: {
|
|
177
|
+
before?(_: {}): any;
|
|
178
|
+
start?(_: {}): any;
|
|
179
|
+
__internal_replace_input?(_: {
|
|
180
|
+
inputId: string;
|
|
181
|
+
}): any;
|
|
182
|
+
end?(_: {}): any;
|
|
183
|
+
after?(_: {}): any;
|
|
184
|
+
};
|
|
185
|
+
}) | null;
|
|
186
|
+
}, HTMLDivElement>;
|
|
187
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
188
|
+
export default _default;
|
|
189
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
190
|
+
new (): {
|
|
191
|
+
$slots: S;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InputProps } from './Input.vue';
|
|
2
|
+
type __VLS_Props = Omit<InputProps, 'type'>;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
files: (args_0: FileList) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
6
|
+
onFiles?: ((args_0: FileList) => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export type InputType = 'text' | 'password' | 'color' | 'date' | 'email' | 'number' | 'range' | 'search' | 'tel' | 'time' | 'url' | 'file';
|
|
2
|
+
export interface InputProps {
|
|
3
|
+
type?: InputType;
|
|
4
|
+
label?: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
limit?: number | string;
|
|
7
|
+
expand?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
modelValue?: string | number;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
focus?: boolean;
|
|
13
|
+
errors?: string[];
|
|
14
|
+
accept?: string;
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
min?: number;
|
|
17
|
+
max?: number;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
type __VLS_Props = InputProps;
|
|
21
|
+
type __VLS_PublicProps = {
|
|
22
|
+
modelValue?: string | number;
|
|
23
|
+
} & __VLS_Props;
|
|
24
|
+
declare function __VLS_template(): {
|
|
25
|
+
attrs: Partial<{}>;
|
|
26
|
+
slots: {
|
|
27
|
+
before?(_: {}): any;
|
|
28
|
+
start?(_: {}): any;
|
|
29
|
+
__internal_replace_input?(_: {
|
|
30
|
+
inputId: string;
|
|
31
|
+
}): any;
|
|
32
|
+
end?(_: {}): any;
|
|
33
|
+
after?(_: {}): any;
|
|
34
|
+
};
|
|
35
|
+
refs: {
|
|
36
|
+
input: HTMLInputElement;
|
|
37
|
+
};
|
|
38
|
+
rootEl: HTMLDivElement;
|
|
39
|
+
};
|
|
40
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
41
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
42
|
+
focus: () => void;
|
|
43
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
44
|
+
"update:modelValue": (value: string | number) => any;
|
|
45
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
46
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
47
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
48
|
+
input: HTMLInputElement;
|
|
49
|
+
}, HTMLDivElement>;
|
|
50
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InputProps } from './Input.vue';
|
|
2
|
+
type Props = Omit<InputProps, 'type'> & {
|
|
3
|
+
showPassword?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { InputProps } from './Input.vue';
|
|
2
|
+
type Props = Omit<InputProps, 'type'> & {
|
|
3
|
+
resize?: boolean | 'vertical' | 'horizontal';
|
|
4
|
+
autoResize?: boolean;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Props = Props;
|
|
7
|
+
type __VLS_PublicProps = {
|
|
8
|
+
modelValue?: string;
|
|
9
|
+
} & __VLS_Props;
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
before?(_: {}): any;
|
|
14
|
+
after?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: string) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
/**
|
|
3
|
+
* Specify the key or the combination of keys connected with "+". Make sure
|
|
4
|
+
* there are no white spaces between letters.
|
|
5
|
+
*
|
|
6
|
+
* keys="Escape" keys="Ctrl+A"
|
|
7
|
+
*/
|
|
8
|
+
keys: string;
|
|
9
|
+
/**
|
|
10
|
+
* Display custom label instead of the automatically formatted keys.
|
|
11
|
+
*/
|
|
12
|
+
label?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Show active state when this combination of keys is pressed.
|
|
15
|
+
*/
|
|
16
|
+
highlight?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
trigger: () => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
21
|
+
onTrigger?: (() => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
4
|
+
refs: {};
|
|
5
|
+
rootEl: any;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
8
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
trigger: () => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
11
|
+
onTrigger?: (() => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Variants } from '../Button/Button.vue';
|
|
2
|
+
import { ModalProps } from './Modal.vue';
|
|
3
|
+
type Props = {
|
|
4
|
+
title?: string;
|
|
5
|
+
content?: string;
|
|
6
|
+
confirmText?: string;
|
|
7
|
+
confirmVariant?: Variants;
|
|
8
|
+
cancelText?: string;
|
|
9
|
+
showCancel?: boolean;
|
|
10
|
+
} & Partial<ModalProps>;
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: any;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
close: () => any;
|
|
22
|
+
confirm: () => any;
|
|
23
|
+
cancel: () => any;
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
25
|
+
onClose?: (() => any) | undefined;
|
|
26
|
+
onConfirm?: (() => any) | undefined;
|
|
27
|
+
onCancel?: (() => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
open: boolean;
|
|
30
|
+
size: import('../../shared/types').Sizes | "full" | "screen";
|
|
31
|
+
cancelText: string;
|
|
32
|
+
canDismiss: boolean;
|
|
33
|
+
confirmText: string;
|
|
34
|
+
confirmVariant: Variants;
|
|
35
|
+
showCancel: boolean;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Sizes } from '../../shared/types';
|
|
2
|
+
import { Props as CardProps } from '../Card/Card.vue';
|
|
3
|
+
export interface ModalProps {
|
|
4
|
+
/**
|
|
5
|
+
* Controls the visibility of the modal
|
|
6
|
+
*/
|
|
7
|
+
open?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Controls the width of the modal
|
|
10
|
+
*/
|
|
11
|
+
size?: Sizes | 'full' | 'screen';
|
|
12
|
+
/**
|
|
13
|
+
* Modal wraps a floating card. You can optinally pass in any props you'd pass
|
|
14
|
+
* into the <Card /> component.
|
|
15
|
+
*/
|
|
16
|
+
card?: CardProps;
|
|
17
|
+
/**
|
|
18
|
+
* Modal will not overflow the screen, but its card's content will be scrollable instead.
|
|
19
|
+
*/
|
|
20
|
+
scrollable?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Modal appears in the center of the screen
|
|
23
|
+
*/
|
|
24
|
+
centered?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Wether modal can be closed by clicking the X button
|
|
27
|
+
*/
|
|
28
|
+
canDismiss?: boolean;
|
|
29
|
+
}
|
|
30
|
+
declare function __VLS_template(): {
|
|
31
|
+
attrs: Partial<{}>;
|
|
32
|
+
slots: {
|
|
33
|
+
header?(_: {
|
|
34
|
+
close: () => void;
|
|
35
|
+
}): any;
|
|
36
|
+
default?(_: {
|
|
37
|
+
close: () => void;
|
|
38
|
+
}): any;
|
|
39
|
+
footer?(_: {
|
|
40
|
+
close: () => void;
|
|
41
|
+
}): any;
|
|
42
|
+
};
|
|
43
|
+
refs: {};
|
|
44
|
+
rootEl: any;
|
|
45
|
+
};
|
|
46
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
47
|
+
declare const __VLS_component: import('vue').DefineComponent<ModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
48
|
+
close: () => any;
|
|
49
|
+
}, string, import('vue').PublicProps, Readonly<ModalProps> & Readonly<{
|
|
50
|
+
onClose?: (() => any) | undefined;
|
|
51
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
52
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ModelRef, Ref } from 'vue';
|
|
2
|
+
export interface OtpContext {
|
|
3
|
+
otpValue: ModelRef<string>;
|
|
4
|
+
cursorIndex: Ref<number>;
|
|
5
|
+
redacted: Ref<boolean>;
|
|
6
|
+
register: () => void;
|
|
7
|
+
}
|
|
8
|
+
interface Props {
|
|
9
|
+
mode?: 'num' | 'char' | 'both';
|
|
10
|
+
redacted?: boolean;
|
|
11
|
+
}
|
|
12
|
+
type __VLS_Props = Props;
|
|
13
|
+
type __VLS_PublicProps = {
|
|
14
|
+
modelValue?: string;
|
|
15
|
+
} & __VLS_Props;
|
|
16
|
+
declare function __VLS_template(): {
|
|
17
|
+
attrs: Partial<{}>;
|
|
18
|
+
slots: {
|
|
19
|
+
default?(_: {}): any;
|
|
20
|
+
};
|
|
21
|
+
refs: {
|
|
22
|
+
inputRef: HTMLInputElement;
|
|
23
|
+
};
|
|
24
|
+
rootEl: HTMLDivElement;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
change: (value?: string | undefined) => any;
|
|
29
|
+
"update:modelValue": (value: string) => any;
|
|
30
|
+
complete: (value: string) => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
32
|
+
onChange?: ((value?: string | undefined) => any) | undefined;
|
|
33
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
34
|
+
onComplete?: ((value: string) => any) | undefined;
|
|
35
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
36
|
+
inputRef: HTMLInputElement;
|
|
37
|
+
}, HTMLDivElement>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
i: number;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|