@dolanske/vui 1.4.6 → 1.5.0
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/LICENSE +1 -1
- package/dist/components/Alert/Alert.vue.d.ts +2 -4
- package/dist/components/Avatar/Avatar.vue.d.ts +2 -0
- package/dist/components/Button/Button.vue.d.ts +9 -3
- package/dist/components/Checkbox/Checkbox.vue.d.ts +0 -2
- package/dist/components/CopyClipboard/CopyClipboard.vue.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +16 -4
- package/dist/components/Dropdown/DropdownItem.vue.d.ts +2 -2
- package/dist/components/Input/Textarea.vue.d.ts +2 -0
- package/dist/components/Kbd/Kbd.vue.d.ts +16 -1
- package/dist/components/Modal/Confirm.vue.d.ts +1 -1
- package/dist/components/Modal/Modal.vue.d.ts +1 -1
- package/dist/components/Popout/Popout.vue.d.ts +13 -2
- package/dist/components/Radio/RadioGroup.vue.d.ts +2 -2
- package/dist/components/Sheet/Sheet.vue.d.ts +4 -2
- package/dist/components/Tabs/Tab.vue.d.ts +0 -1
- package/dist/components/Toast/Toasts.vue.d.ts +5 -1
- package/dist/vui.css +1 -1
- package/dist/vui.js +5928 -7087
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -671,4 +671,4 @@ into proprietary programs. If your program is a subroutine library, you
|
|
|
671
671
|
may consider it more useful to permit linking proprietary applications with
|
|
672
672
|
the library. If this is what you want to do, use the GNU Lesser General
|
|
673
673
|
Public License instead of this License. But first, please read
|
|
674
|
-
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
|
674
|
+
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
variant?: 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
3
|
-
/**
|
|
4
|
-
* Override the variant's default icon
|
|
5
|
-
*/
|
|
6
|
-
icon?: string;
|
|
7
3
|
/**
|
|
8
4
|
* Setting a title and description will use slightly different styling other
|
|
9
5
|
* than slots.
|
|
@@ -13,11 +9,13 @@ interface Props {
|
|
|
13
9
|
* Use strong color
|
|
14
10
|
*/
|
|
15
11
|
filled?: boolean;
|
|
12
|
+
filledStrong?: boolean;
|
|
16
13
|
description?: string;
|
|
17
14
|
}
|
|
18
15
|
declare function __VLS_template(): {
|
|
19
16
|
attrs: Partial<{}>;
|
|
20
17
|
slots: {
|
|
18
|
+
icon?(_: {}): any;
|
|
21
19
|
default?(_: {}): any;
|
|
22
20
|
default?(_: {}): any;
|
|
23
21
|
end?(_: {}): any;
|
|
@@ -5,11 +5,13 @@ interface Props {
|
|
|
5
5
|
fallback?: string;
|
|
6
6
|
icon?: string;
|
|
7
7
|
alt?: string;
|
|
8
|
+
radius?: Sizes | 'xs' | number;
|
|
8
9
|
}
|
|
9
10
|
declare function __VLS_template(): {
|
|
10
11
|
attrs: Partial<{}>;
|
|
11
12
|
slots: {
|
|
12
13
|
default?(_: {}): any;
|
|
14
|
+
icon?(_: {}): any;
|
|
13
15
|
};
|
|
14
16
|
refs: {};
|
|
15
17
|
rootEl: HTMLDivElement;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { Sizes } from '../../shared/types';
|
|
2
2
|
export type Variants = 'fill' | 'danger' | 'success' | 'link' | 'accent' | 'gray';
|
|
3
3
|
interface Props {
|
|
4
|
+
/**
|
|
5
|
+
* Allows rendering the button as a HTML anchor element.
|
|
6
|
+
*/
|
|
7
|
+
href?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Display a spinner.
|
|
10
|
+
*/
|
|
4
11
|
loading?: boolean;
|
|
5
12
|
size?: Sizes;
|
|
6
13
|
expand?: boolean;
|
|
7
14
|
square?: boolean;
|
|
8
|
-
icon?: string;
|
|
9
15
|
variant?: Variants;
|
|
10
16
|
outline?: boolean;
|
|
11
17
|
disabled?: boolean;
|
|
@@ -19,10 +25,10 @@ declare function __VLS_template(): {
|
|
|
19
25
|
end?(_: {}): any;
|
|
20
26
|
};
|
|
21
27
|
refs: {};
|
|
22
|
-
rootEl:
|
|
28
|
+
rootEl: any;
|
|
23
29
|
};
|
|
24
30
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
|
-
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, {},
|
|
31
|
+
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, {}, any>;
|
|
26
32
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
33
|
export default _default;
|
|
28
34
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -51,7 +51,11 @@ declare function __VLS_template(): {
|
|
|
51
51
|
$attrs: {
|
|
52
52
|
[x: string]: unknown;
|
|
53
53
|
};
|
|
54
|
-
$refs:
|
|
54
|
+
$refs: {
|
|
55
|
+
[x: string]: unknown;
|
|
56
|
+
} & {
|
|
57
|
+
popout: HTMLDivElement;
|
|
58
|
+
};
|
|
55
59
|
$slots: Readonly<{
|
|
56
60
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
57
61
|
}>;
|
|
@@ -93,7 +97,9 @@ declare function __VLS_template(): {
|
|
|
93
97
|
}> & Omit<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
|
|
94
98
|
onClickOutside?: (() => any) | undefined;
|
|
95
99
|
}>, "offset" | "placement"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
96
|
-
$slots:
|
|
100
|
+
$slots: {
|
|
101
|
+
default?(_: {}): any;
|
|
102
|
+
};
|
|
97
103
|
}) | null;
|
|
98
104
|
};
|
|
99
105
|
rootEl: any;
|
|
@@ -123,7 +129,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
123
129
|
$attrs: {
|
|
124
130
|
[x: string]: unknown;
|
|
125
131
|
};
|
|
126
|
-
$refs:
|
|
132
|
+
$refs: {
|
|
133
|
+
[x: string]: unknown;
|
|
134
|
+
} & {
|
|
135
|
+
popout: HTMLDivElement;
|
|
136
|
+
};
|
|
127
137
|
$slots: Readonly<{
|
|
128
138
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
129
139
|
}>;
|
|
@@ -165,7 +175,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
165
175
|
}> & Omit<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
|
|
166
176
|
onClickOutside?: (() => any) | undefined;
|
|
167
177
|
}>, "offset" | "placement"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
168
|
-
$slots:
|
|
178
|
+
$slots: {
|
|
179
|
+
default?(_: {}): any;
|
|
180
|
+
};
|
|
169
181
|
}) | null;
|
|
170
182
|
}, any>;
|
|
171
183
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
disabled?: boolean;
|
|
3
|
-
icon?: string;
|
|
4
|
-
iconEnd?: string;
|
|
5
3
|
}
|
|
6
4
|
declare function __VLS_template(): {
|
|
7
5
|
attrs: Partial<{}>;
|
|
8
6
|
slots: {
|
|
7
|
+
icon?(_: {}): any;
|
|
9
8
|
default?(_: {}): any;
|
|
10
9
|
hint?(_: {}): any;
|
|
10
|
+
iconEnd?(_: {}): any;
|
|
11
11
|
};
|
|
12
12
|
refs: {};
|
|
13
13
|
rootEl: HTMLButtonElement;
|
|
@@ -15,9 +15,24 @@ interface Props {
|
|
|
15
15
|
*/
|
|
16
16
|
highlight?: boolean;
|
|
17
17
|
}
|
|
18
|
-
declare
|
|
18
|
+
declare function __VLS_template(): {
|
|
19
|
+
attrs: Partial<{}>;
|
|
20
|
+
slots: {
|
|
21
|
+
default?(_: {}): any;
|
|
22
|
+
};
|
|
23
|
+
refs: {};
|
|
24
|
+
rootEl: HTMLElement;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
28
|
trigger: () => any;
|
|
20
29
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
21
30
|
onTrigger?: (() => any) | undefined;
|
|
22
31
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
33
|
export default _default;
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -27,7 +27,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
27
27
|
onCancel?: (() => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
open: boolean;
|
|
30
|
-
size: import('../../shared/types').Sizes | "
|
|
30
|
+
size: import('../../shared/types').Sizes | "screen";
|
|
31
31
|
cancelText: string;
|
|
32
32
|
canDismiss: boolean;
|
|
33
33
|
confirmText: string;
|
|
@@ -8,7 +8,7 @@ export interface ModalProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* Controls the width of the modal
|
|
10
10
|
*/
|
|
11
|
-
size?: Sizes | '
|
|
11
|
+
size?: Sizes | 'screen';
|
|
12
12
|
/**
|
|
13
13
|
* Modal wraps a floating card. You can optinally pass in any props you'd pass
|
|
14
14
|
* into the <Card /> component.
|
|
@@ -17,7 +17,16 @@ export interface Props {
|
|
|
17
17
|
*/
|
|
18
18
|
visible: boolean;
|
|
19
19
|
}
|
|
20
|
-
declare function __VLS_template():
|
|
20
|
+
declare function __VLS_template(): {
|
|
21
|
+
attrs: Partial<{}>;
|
|
22
|
+
slots: {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
refs: {
|
|
26
|
+
popout: HTMLDivElement;
|
|
27
|
+
};
|
|
28
|
+
rootEl: any;
|
|
29
|
+
};
|
|
21
30
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
31
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
32
|
clickOutside: () => any;
|
|
@@ -26,7 +35,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
26
35
|
}>, {
|
|
27
36
|
offset: number;
|
|
28
37
|
placement: Placement;
|
|
29
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false,
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
39
|
+
popout: HTMLDivElement;
|
|
40
|
+
}, any>;
|
|
30
41
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
42
|
export default _default;
|
|
32
43
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -10,14 +10,14 @@ declare function __VLS_template(): {
|
|
|
10
10
|
attrs: Partial<{}>;
|
|
11
11
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
12
12
|
refs: {};
|
|
13
|
-
rootEl:
|
|
13
|
+
rootEl: HTMLFieldSetElement;
|
|
14
14
|
};
|
|
15
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
16
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
17
|
"update:modelValue": (value: any) => any;
|
|
18
18
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
19
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
20
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
|
|
21
21
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
22
|
export default _default;
|
|
23
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Props as CardProps } from '../Card/Card.vue';
|
|
1
2
|
interface Props {
|
|
2
3
|
/**
|
|
3
4
|
* Controls the visibility of the sheet
|
|
@@ -12,9 +13,10 @@ interface Props {
|
|
|
12
13
|
*/
|
|
13
14
|
size?: number | string;
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
+
* Modal wraps a floating card. You can optinally pass in any props you'd pass
|
|
17
|
+
* into the <Card /> component.
|
|
16
18
|
*/
|
|
17
|
-
|
|
19
|
+
card?: CardProps;
|
|
18
20
|
}
|
|
19
21
|
declare function __VLS_template(): {
|
|
20
22
|
attrs: Partial<{}>;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { Placement } from '../../shared/types';
|
|
2
|
+
interface Props {
|
|
3
|
+
placement?: Placement;
|
|
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, {}, any>;
|
|
2
6
|
export default _default;
|