@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,48 @@
|
|
|
1
|
+
export interface AccordionProps {
|
|
2
|
+
open?: boolean;
|
|
3
|
+
label?: string;
|
|
4
|
+
card?: boolean;
|
|
5
|
+
unstyled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare function open(): void;
|
|
8
|
+
declare function close(): void;
|
|
9
|
+
declare function toggle(): void;
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
trigger?(_: {
|
|
14
|
+
open: typeof open;
|
|
15
|
+
close: typeof close;
|
|
16
|
+
toggle: typeof toggle;
|
|
17
|
+
isOpen: boolean;
|
|
18
|
+
}): any;
|
|
19
|
+
header?(_: {}): any;
|
|
20
|
+
default?(_: {}): any;
|
|
21
|
+
};
|
|
22
|
+
refs: {
|
|
23
|
+
content: HTMLDivElement;
|
|
24
|
+
};
|
|
25
|
+
rootEl: HTMLDivElement;
|
|
26
|
+
};
|
|
27
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
|
+
declare const __VLS_component: import('vue').DefineComponent<AccordionProps, {
|
|
29
|
+
open: typeof open;
|
|
30
|
+
close: typeof close;
|
|
31
|
+
toggle: typeof toggle;
|
|
32
|
+
isOpen: import('vue').Ref<boolean, boolean>;
|
|
33
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
+
open: () => any;
|
|
35
|
+
close: () => any;
|
|
36
|
+
}, string, import('vue').PublicProps, Readonly<AccordionProps> & Readonly<{
|
|
37
|
+
onOpen?: (() => any) | undefined;
|
|
38
|
+
onClose?: (() => any) | undefined;
|
|
39
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
40
|
+
content: HTMLDivElement;
|
|
41
|
+
}, HTMLDivElement>;
|
|
42
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
/**
|
|
3
|
+
* If set to true, if an accordion opens, all other close
|
|
4
|
+
*/
|
|
5
|
+
single?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
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>;
|
|
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,36 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
variant?: 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
3
|
+
/**
|
|
4
|
+
* Override the variant's default icon
|
|
5
|
+
*/
|
|
6
|
+
icon?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Setting a title and description will use slightly different styling other
|
|
9
|
+
* than slots.
|
|
10
|
+
*/
|
|
11
|
+
title?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Use strong color
|
|
14
|
+
*/
|
|
15
|
+
filled?: boolean;
|
|
16
|
+
description?: string;
|
|
17
|
+
}
|
|
18
|
+
declare function __VLS_template(): {
|
|
19
|
+
attrs: Partial<{}>;
|
|
20
|
+
slots: {
|
|
21
|
+
default?(_: {}): any;
|
|
22
|
+
default?(_: {}): any;
|
|
23
|
+
end?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
refs: {};
|
|
26
|
+
rootEl: HTMLDivElement;
|
|
27
|
+
};
|
|
28
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
+
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, {}, HTMLDivElement>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Sizes } from '../../shared/types';
|
|
2
|
+
interface Props {
|
|
3
|
+
size?: Sizes | number;
|
|
4
|
+
url?: string;
|
|
5
|
+
fallback?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
alt?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
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, {}, HTMLDivElement>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
variant?: 'neutral' | 'danger' | 'warning' | 'success' | 'info' | 'accent';
|
|
3
|
+
outline?: boolean;
|
|
4
|
+
filled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
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, {}, HTMLDivElement>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface BreadcrumbItemProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
href?: string;
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLLIElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<BreadcrumbItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BreadcrumbItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
separator?: string;
|
|
3
|
+
}
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLUListElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
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, {}, HTMLUListElement>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Sizes } from '../../shared/types';
|
|
2
|
+
export type Variants = 'fill' | 'danger' | 'success' | 'link' | 'accent' | 'gray';
|
|
3
|
+
interface Props {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
size?: Sizes;
|
|
6
|
+
expand?: boolean;
|
|
7
|
+
square?: boolean;
|
|
8
|
+
icon?: string;
|
|
9
|
+
variant?: Variants;
|
|
10
|
+
outline?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
plain?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
slots: {
|
|
17
|
+
start?(_: {}): any;
|
|
18
|
+
default?(_: {}): any;
|
|
19
|
+
end?(_: {}): any;
|
|
20
|
+
};
|
|
21
|
+
refs: {};
|
|
22
|
+
rootEl: HTMLButtonElement;
|
|
23
|
+
};
|
|
24
|
+
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, {}, HTMLButtonElement>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Space } from '../../shared/types';
|
|
2
|
+
interface Props {
|
|
3
|
+
vertical?: boolean;
|
|
4
|
+
gap?: Space | number;
|
|
5
|
+
}
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
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, {}, HTMLDivElement>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { VueDatePickerProps } from '@vuepic/vue-datepicker';
|
|
2
|
+
type __VLS_Props = VueDatePickerProps & {
|
|
3
|
+
expand?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
trigger?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
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<{}>, {
|
|
15
|
+
expand: boolean;
|
|
16
|
+
format: string | ((date: Date) => string) | ((dates: Date[]) => string);
|
|
17
|
+
autoApply: boolean;
|
|
18
|
+
autoPosition: boolean | "top" | "bottom";
|
|
19
|
+
monthNameFormat: "long" | "short";
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface Props {
|
|
2
|
+
separators?: boolean;
|
|
3
|
+
headerSeparator?: boolean;
|
|
4
|
+
footerSeparator?: boolean;
|
|
5
|
+
padding?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
header?(_: {}): any;
|
|
11
|
+
'header-end'?(_: {}): any;
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
footer?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
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, {}, HTMLDivElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
label?: string;
|
|
3
|
+
iconOn?: string;
|
|
4
|
+
iconOff?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
accent?: boolean;
|
|
8
|
+
}
|
|
9
|
+
type __VLS_Props = Props;
|
|
10
|
+
type __VLS_PublicProps = {
|
|
11
|
+
modelValue?: boolean;
|
|
12
|
+
} & __VLS_Props;
|
|
13
|
+
declare function __VLS_template(): {
|
|
14
|
+
attrs: Partial<{}>;
|
|
15
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
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
|
+
change: (checked: boolean) => any;
|
|
22
|
+
"update:modelValue": (value: boolean) => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
+
onChange?: ((checked: boolean) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Placement } from '@floating-ui/vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
/**
|
|
4
|
+
* Text to copy
|
|
5
|
+
*/
|
|
6
|
+
text: string;
|
|
7
|
+
/**
|
|
8
|
+
* Wether to show a tooltip after successful copy
|
|
9
|
+
*/
|
|
10
|
+
confirm?: string | boolean;
|
|
11
|
+
/**
|
|
12
|
+
* How long will the copy confirmation tooltip be visible in milliseconds.
|
|
13
|
+
*/
|
|
14
|
+
confirmTime?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Tooltip position. Default is top
|
|
17
|
+
*/
|
|
18
|
+
confirmPlacement?: Placement;
|
|
19
|
+
}
|
|
20
|
+
declare function __VLS_template(): {
|
|
21
|
+
attrs: Partial<{}>;
|
|
22
|
+
slots: {
|
|
23
|
+
default?(_: {
|
|
24
|
+
copy: (text: string) => Promise<void>;
|
|
25
|
+
copied: boolean;
|
|
26
|
+
}): any;
|
|
27
|
+
confirm?(_: {}): any;
|
|
28
|
+
};
|
|
29
|
+
refs: {
|
|
30
|
+
anchor: HTMLDivElement;
|
|
31
|
+
tooltip: HTMLDivElement;
|
|
32
|
+
};
|
|
33
|
+
rootEl: any;
|
|
34
|
+
};
|
|
35
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
36
|
+
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, {
|
|
37
|
+
anchor: HTMLDivElement;
|
|
38
|
+
tooltip: HTMLDivElement;
|
|
39
|
+
}, any>;
|
|
40
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
thickness?: number;
|
|
3
|
+
size?: number | string;
|
|
4
|
+
vertical?: boolean;
|
|
5
|
+
margin?: string | number;
|
|
6
|
+
}
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
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, {}, HTMLDivElement>;
|
|
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,53 @@
|
|
|
1
|
+
import { DrawerPortalProps, DrawerRootProps } from 'vaul-vue';
|
|
2
|
+
import { Sizes, VueClass } from '../../shared/types';
|
|
3
|
+
interface Props {
|
|
4
|
+
/**
|
|
5
|
+
* Controls the visibility of the drawer
|
|
6
|
+
*/
|
|
7
|
+
open?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Title for accessibility.
|
|
10
|
+
*/
|
|
11
|
+
title?: string;
|
|
12
|
+
/**
|
|
13
|
+
* CSS class applied to the container of the drawer content. Accepts Vue's
|
|
14
|
+
* class conditional declaration, string, object or an array.
|
|
15
|
+
*/
|
|
16
|
+
containerClass?: VueClass;
|
|
17
|
+
/**
|
|
18
|
+
* Size of the container. Either use a preset size or number to specify
|
|
19
|
+
* max-width of the container.
|
|
20
|
+
*/
|
|
21
|
+
containerSize?: Sizes | 'xl' | 'full' | number;
|
|
22
|
+
/**
|
|
23
|
+
* Wether to display the handle symbol. It doesn't actually do anything, it's
|
|
24
|
+
* just for the visuals.
|
|
25
|
+
*/
|
|
26
|
+
handle?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Control the underlying Vaul root component
|
|
29
|
+
*/
|
|
30
|
+
rootProps?: DrawerRootProps;
|
|
31
|
+
portalProps?: DrawerPortalProps;
|
|
32
|
+
}
|
|
33
|
+
declare function __VLS_template(): {
|
|
34
|
+
attrs: Partial<{}>;
|
|
35
|
+
slots: {
|
|
36
|
+
default?(_: {}): any;
|
|
37
|
+
};
|
|
38
|
+
refs: {};
|
|
39
|
+
rootEl: any;
|
|
40
|
+
};
|
|
41
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
42
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
close: () => any;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
45
|
+
onClose?: (() => any) | undefined;
|
|
46
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { Placement } from '../../shared/types';
|
|
2
|
+
export interface Props {
|
|
3
|
+
/**
|
|
4
|
+
* Tooltip placement related to the anchor
|
|
5
|
+
*/
|
|
6
|
+
placement?: Placement;
|
|
7
|
+
/**
|
|
8
|
+
* Set the minimum width of the dropdown element
|
|
9
|
+
*/
|
|
10
|
+
minWidth?: number | string;
|
|
11
|
+
/**
|
|
12
|
+
* Sets the width of the dropdown to the width of its anchor
|
|
13
|
+
*/
|
|
14
|
+
expand?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Set he max height of the dropdown element before it starts scrolling
|
|
17
|
+
*/
|
|
18
|
+
maxHeight?: number | string;
|
|
19
|
+
}
|
|
20
|
+
declare function open(): void;
|
|
21
|
+
declare function close(): void;
|
|
22
|
+
declare function toggle(): void;
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
attrs: Partial<{}>;
|
|
25
|
+
slots: {
|
|
26
|
+
trigger?(_: {
|
|
27
|
+
open: typeof open;
|
|
28
|
+
isOpen: boolean;
|
|
29
|
+
close: typeof close;
|
|
30
|
+
toggle: typeof toggle;
|
|
31
|
+
}): any;
|
|
32
|
+
default?(_: {
|
|
33
|
+
open: typeof open;
|
|
34
|
+
close: typeof close;
|
|
35
|
+
toggle: typeof toggle;
|
|
36
|
+
isOpen: boolean;
|
|
37
|
+
}): any;
|
|
38
|
+
};
|
|
39
|
+
refs: {
|
|
40
|
+
anchor: HTMLDivElement;
|
|
41
|
+
dropdown: ({
|
|
42
|
+
$: import('vue').ComponentInternalInstance;
|
|
43
|
+
$data: {};
|
|
44
|
+
$props: {
|
|
45
|
+
readonly anchor: import('../../shared/types').PopoutMaybeElement<HTMLElement>;
|
|
46
|
+
readonly placement?: Placement | undefined;
|
|
47
|
+
readonly offset?: number | undefined;
|
|
48
|
+
readonly visible: boolean;
|
|
49
|
+
readonly onClickOutside?: (() => any) | undefined;
|
|
50
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
51
|
+
$attrs: {
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
};
|
|
54
|
+
$refs: any;
|
|
55
|
+
$slots: Readonly<{
|
|
56
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
59
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
60
|
+
$host: Element | null;
|
|
61
|
+
$emit: (event: "clickOutside") => void;
|
|
62
|
+
$el: any;
|
|
63
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
|
|
64
|
+
onClickOutside?: (() => any) | undefined;
|
|
65
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
66
|
+
clickOutside: () => any;
|
|
67
|
+
}, string, {
|
|
68
|
+
offset: number;
|
|
69
|
+
placement: Placement;
|
|
70
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
71
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
72
|
+
created?: (() => void) | (() => void)[];
|
|
73
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
74
|
+
mounted?: (() => void) | (() => void)[];
|
|
75
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
76
|
+
updated?: (() => void) | (() => void)[];
|
|
77
|
+
activated?: (() => void) | (() => void)[];
|
|
78
|
+
deactivated?: (() => void) | (() => void)[];
|
|
79
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
80
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
81
|
+
destroyed?: (() => void) | (() => void)[];
|
|
82
|
+
unmounted?: (() => void) | (() => void)[];
|
|
83
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
84
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
85
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
86
|
+
};
|
|
87
|
+
$forceUpdate: () => void;
|
|
88
|
+
$nextTick: typeof import('vue').nextTick;
|
|
89
|
+
$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;
|
|
90
|
+
} & Readonly<{
|
|
91
|
+
offset: number;
|
|
92
|
+
placement: Placement;
|
|
93
|
+
}> & Omit<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
|
|
94
|
+
onClickOutside?: (() => any) | undefined;
|
|
95
|
+
}>, "offset" | "placement"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
96
|
+
$slots: any;
|
|
97
|
+
}) | null;
|
|
98
|
+
};
|
|
99
|
+
rootEl: any;
|
|
100
|
+
};
|
|
101
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
102
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
103
|
+
open: typeof open;
|
|
104
|
+
close: typeof close;
|
|
105
|
+
toggle: typeof toggle;
|
|
106
|
+
isOpen: import('vue').Ref<boolean, boolean>;
|
|
107
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
108
|
+
close: () => any;
|
|
109
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
110
|
+
onClose?: (() => any) | undefined;
|
|
111
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
112
|
+
anchor: HTMLDivElement;
|
|
113
|
+
dropdown: ({
|
|
114
|
+
$: import('vue').ComponentInternalInstance;
|
|
115
|
+
$data: {};
|
|
116
|
+
$props: {
|
|
117
|
+
readonly anchor: import('../../shared/types').PopoutMaybeElement<HTMLElement>;
|
|
118
|
+
readonly placement?: Placement | undefined;
|
|
119
|
+
readonly offset?: number | undefined;
|
|
120
|
+
readonly visible: boolean;
|
|
121
|
+
readonly onClickOutside?: (() => any) | undefined;
|
|
122
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
123
|
+
$attrs: {
|
|
124
|
+
[x: string]: unknown;
|
|
125
|
+
};
|
|
126
|
+
$refs: any;
|
|
127
|
+
$slots: Readonly<{
|
|
128
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
129
|
+
}>;
|
|
130
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
131
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
132
|
+
$host: Element | null;
|
|
133
|
+
$emit: (event: "clickOutside") => void;
|
|
134
|
+
$el: any;
|
|
135
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
|
|
136
|
+
onClickOutside?: (() => any) | undefined;
|
|
137
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
138
|
+
clickOutside: () => any;
|
|
139
|
+
}, string, {
|
|
140
|
+
offset: number;
|
|
141
|
+
placement: Placement;
|
|
142
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
143
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
144
|
+
created?: (() => void) | (() => void)[];
|
|
145
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
146
|
+
mounted?: (() => void) | (() => void)[];
|
|
147
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
148
|
+
updated?: (() => void) | (() => void)[];
|
|
149
|
+
activated?: (() => void) | (() => void)[];
|
|
150
|
+
deactivated?: (() => void) | (() => void)[];
|
|
151
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
152
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
153
|
+
destroyed?: (() => void) | (() => void)[];
|
|
154
|
+
unmounted?: (() => void) | (() => void)[];
|
|
155
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
156
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
157
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
158
|
+
};
|
|
159
|
+
$forceUpdate: () => void;
|
|
160
|
+
$nextTick: typeof import('vue').nextTick;
|
|
161
|
+
$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;
|
|
162
|
+
} & Readonly<{
|
|
163
|
+
offset: number;
|
|
164
|
+
placement: Placement;
|
|
165
|
+
}> & Omit<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
|
|
166
|
+
onClickOutside?: (() => any) | undefined;
|
|
167
|
+
}>, "offset" | "placement"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
168
|
+
$slots: any;
|
|
169
|
+
}) | null;
|
|
170
|
+
}, any>;
|
|
171
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
172
|
+
export default _default;
|
|
173
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
174
|
+
new (): {
|
|
175
|
+
$slots: S;
|
|
176
|
+
};
|
|
177
|
+
};
|