@dolanske/vui 0.1.0 → 0.1.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/README.md +7 -0
- package/dist/components/Accordion/Accordion.vue.d.ts +45 -0
- package/dist/components/Accordion/AccordionGroup.vue.d.ts +32 -0
- package/dist/components/Alert/Alert.vue.d.ts +29 -0
- package/dist/components/Avatar/Avatar.vue.d.ts +9 -0
- package/dist/components/Badge/Badge.vue.d.ts +21 -0
- package/dist/components/Breadcrumbs/BreadcrumbItem.vue.d.ts +21 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +27 -0
- package/dist/components/Button/Button.vue.d.ts +41 -0
- package/dist/components/ButtonGroup/ButtonGroup.vue.d.ts +19 -0
- package/dist/components/Calendar/Calendar.vue.d.ts +27 -0
- package/dist/components/Card/Card.vue.d.ts +25 -0
- package/dist/components/Checkbox/Checkbox.vue.d.ts +31 -0
- package/dist/components/CopyClipboard/CopyClipboard.vue.d.ts +40 -0
- package/dist/components/Divider/Divider.vue.d.ts +24 -0
- package/dist/components/Drawer/Drawer.vue.d.ts +52 -0
- package/dist/components/Dropdown/DropdownItem.vue.d.ts +21 -0
- package/dist/components/Dropdown/DropdownTitle.vue.d.ts +17 -0
- package/dist/components/Flex/Flex.vue.d.ts +38 -0
- package/dist/components/Grid/Grid.vue.d.ts +27 -0
- package/dist/components/Input/Counter.vue.d.ts +19 -0
- package/dist/components/Input/Dropzone.vue.d.ts +107 -0
- package/dist/components/Input/File.vue.d.ts +7 -0
- package/dist/components/Input/Input.vue.d.ts +54 -0
- package/dist/components/Input/Password.vue.d.ts +6 -0
- package/dist/components/Input/Textarea.vue.d.ts +30 -0
- package/dist/components/Kbd/Kbd.vue.d.ts +23 -0
- package/dist/components/Kbd/KbdGroup.vue.d.ts +31 -0
- package/dist/components/Modal/Confirm.vue.d.ts +45 -0
- package/dist/components/Modal/Modal.vue.d.ts +55 -0
- package/dist/components/Pagination/Pagination.vue.d.ts +42 -0
- package/dist/components/Pagination/pagination.d.ts +12 -0
- package/dist/components/Popout/Popout.vue.d.ts +34 -0
- package/dist/components/Progress/Progress.vue.d.ts +31 -0
- package/dist/components/Radio/Radio.vue.d.ts +27 -0
- package/dist/components/Radio/RadioGroup.vue.d.ts +40 -0
- package/dist/components/Select/Select.vue.d.ts +37 -0
- package/dist/components/Sheet/Sheet.vue.d.ts +35 -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 +26 -0
- package/dist/components/Table/Cell.vue.d.ts +19 -0
- package/dist/components/Table/Header.vue.d.ts +29 -0
- package/dist/components/Table/Row.vue.d.ts +16 -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/Table.vue.d.ts +40 -0
- package/dist/components/Table/table.d.ts +68 -0
- package/dist/components/Tabs/Tab.vue.d.ts +8 -0
- package/dist/components/Tabs/Tabs.vue.d.ts +43 -0
- package/dist/components/Toast/Toasts.vue.d.ts +2 -0
- package/dist/components/Toast/toast.d.ts +42 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts +32 -0
- package/dist/index.d.ts +54 -1
- package/dist/internal/Backdrop/Backdrop.vue.d.ts +20 -0
- package/dist/shared/composables.d.ts +3 -0
- package/dist/shared/helpers.d.ts +16 -0
- package/dist/shared/types.d.ts +10 -0
- package/dist/style.css +1 -1
- package/package.json +11 -9
- package/src/App.vue +158 -0
- package/src/components/Accordion/Accordion.vue +75 -0
- package/src/components/Accordion/AccordionGroup.vue +43 -0
- package/src/components/Accordion/accordion.scss +44 -0
- package/src/components/Alert/Alert.vue +53 -0
- package/src/components/Alert/alert.scss +80 -0
- package/src/components/Avatar/Avatar.vue +36 -0
- package/src/components/Avatar/avatar.scss +46 -0
- package/src/components/Badge/Badge.vue +21 -0
- package/src/components/Badge/badge.scss +89 -0
- package/src/components/Breadcrumbs/BreadcrumbItem.vue +26 -0
- package/src/components/Breadcrumbs/Breadcrumbs.vue +33 -0
- package/src/components/Breadcrumbs/breadcrumbs.scss +30 -0
- package/src/components/Button/Button.vue +90 -0
- package/src/components/Button/button.scss +176 -0
- package/src/components/ButtonGroup/ButtonGroup.vue +25 -0
- package/src/components/ButtonGroup/button-group.scss +51 -0
- package/src/components/Calendar/Calendar.vue +58 -0
- package/src/components/Calendar/calendar.scss +56 -0
- package/src/components/Card/Card.vue +48 -0
- package/src/components/Card/card.scss +53 -0
- package/src/components/Checkbox/Checkbox.vue +49 -0
- package/src/components/Checkbox/checkbox.scss +60 -0
- package/src/components/CopyClipboard/CopyClipboard.vue +82 -0
- package/src/components/CopyClipboard/copy-clipboard.scss +17 -0
- package/src/components/Divider/Divider.vue +34 -0
- package/src/components/Divider/divider.scss +35 -0
- package/src/components/Drawer/Drawer.vue +93 -0
- package/src/components/Drawer/drawer.scss +49 -0
- package/src/components/Dropdown/Dropdown.vue +100 -0
- package/src/components/Dropdown/DropdownItem.vue +29 -0
- package/src/components/Dropdown/DropdownTitle.vue +8 -0
- package/src/components/Dropdown/dropdown.scss +112 -0
- package/src/components/Flex/Flex.vue +109 -0
- package/src/components/Grid/Grid.vue +59 -0
- package/src/components/Input/Counter.vue +70 -0
- package/src/components/Input/Dropzone.vue +63 -0
- package/src/components/Input/File.vue +15 -0
- package/src/components/Input/Input.vue +118 -0
- package/src/components/Input/Password.vue +47 -0
- package/src/components/Input/Textarea.vue +73 -0
- package/src/components/Input/input.scss +199 -0
- package/src/components/Kbd/Kbd.vue +48 -0
- package/src/components/Kbd/KbdGroup.vue +31 -0
- package/src/components/Kbd/kbd.scss +18 -0
- package/src/components/Modal/Confirm.vue +56 -0
- package/src/components/Modal/Modal.vue +91 -0
- package/src/components/Modal/modal.scss +49 -0
- package/src/components/Pagination/Pagination.vue +74 -0
- package/src/components/Pagination/pagination.ts +78 -0
- package/src/components/Popout/Popout.vue +39 -0
- package/src/components/Popout/popout.scss +7 -0
- package/src/components/Progress/Progress.vue +84 -0
- package/src/components/Progress/progress.scss +41 -0
- package/src/components/Radio/Radio.vue +36 -0
- package/src/components/Radio/RadioGroup.vue +35 -0
- package/src/components/Radio/radio.scss +59 -0
- package/src/components/Select/Select.vue +180 -0
- package/src/components/Select/select.scss +43 -0
- package/src/components/Sheet/Sheet.vue +91 -0
- package/src/components/Sheet/sheet.scss +56 -0
- package/src/components/Skeleton/Skeleton.vue +46 -0
- package/src/components/Skeleton/skeleton.scss +14 -0
- package/src/components/Spinner/Spinner.vue +44 -0
- package/src/components/Spinner/spinner.scss +46 -0
- package/src/components/Switch/Switch.vue +30 -0
- package/src/components/Switch/switch.scss +52 -0
- package/src/components/Table/Cell.vue +23 -0
- package/src/components/Table/Header.vue +59 -0
- package/src/components/Table/Row.vue +9 -0
- package/src/components/Table/SelectAll.vue +23 -0
- package/src/components/Table/SelectRow.vue +29 -0
- package/src/components/Table/Table.vue +66 -0
- package/src/components/Table/table.scss +134 -0
- package/src/components/Table/table.ts +243 -0
- package/src/components/Tabs/Tab.vue +21 -0
- package/src/components/Tabs/Tabs.vue +76 -0
- package/src/components/Tabs/tabs.scss +78 -0
- package/src/components/Toast/Toasts.vue +47 -0
- package/src/components/Toast/toast.scss +41 -0
- package/src/components/Toast/toast.ts +92 -0
- package/src/components/Tooltip/Tooltip.vue +80 -0
- package/src/components/Tooltip/tooltip.scss +4 -0
- package/src/index.scss +1 -0
- package/src/index.ts +111 -0
- package/src/internal/Backdrop/Backdrop.vue +22 -0
- package/src/internal/Backdrop/backdrop.scss +28 -0
- package/src/main.ts +5 -0
- package/src/shared/composables.ts +18 -0
- package/src/shared/helpers.ts +53 -0
- package/src/shared/types.ts +11 -0
- package/src/style/animation.scss +21 -0
- package/src/style/core.scss +128 -0
- package/src/style/fonts.scss +0 -0
- package/src/style/layout.scss +9 -0
- package/src/style/media-query.scss +29 -0
- package/src/style/reset.scss +135 -0
- package/src/style/tooltip.scss +128 -0
- package/src/style/typography.scss +339 -0
- package/src/style/utils.scss +22 -0
- package/src/vite-env.d.ts +1 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
label?: string;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare let __VLS_typeProps: Props;
|
|
6
|
+
type __VLS_PublicProps = {
|
|
7
|
+
modelValue?: boolean;
|
|
8
|
+
} & typeof __VLS_typeProps;
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
11
|
+
refs: {};
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (modelValue: boolean) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
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,19 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
context?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {
|
|
7
|
+
context: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, 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,29 @@
|
|
|
1
|
+
import { Header } from './table';
|
|
2
|
+
interface Props {
|
|
3
|
+
/**
|
|
4
|
+
* Main header data. This can be empty in case we are just adding an empty
|
|
5
|
+
* padder. It is recommended to just use <th> instead, but this shouldn't fail
|
|
6
|
+
* anyway
|
|
7
|
+
*/
|
|
8
|
+
header?: Header;
|
|
9
|
+
/**
|
|
10
|
+
* Enable sorting on this column
|
|
11
|
+
*/
|
|
12
|
+
sort?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
slots: {
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
attrs: Partial<{}>;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
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>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {};
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseRow } from './table';
|
|
2
|
+
interface Props {
|
|
3
|
+
row: BaseRow;
|
|
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>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
/**
|
|
3
|
+
* Sets the `table-layout` property
|
|
4
|
+
*/
|
|
5
|
+
fixed?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Table cells with content overflowing on new line will be cropped
|
|
8
|
+
*/
|
|
9
|
+
nowrap?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Add a visual separator between each row
|
|
12
|
+
*/
|
|
13
|
+
separateRows?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Add a visual separator between each cell
|
|
16
|
+
*/
|
|
17
|
+
separateCells?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Wrap table with a border
|
|
20
|
+
*/
|
|
21
|
+
outerBorder?: boolean;
|
|
22
|
+
}
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
slots: {
|
|
25
|
+
header?(_: {}): any;
|
|
26
|
+
body?(_: {}): any;
|
|
27
|
+
pagination?(_: {}): any;
|
|
28
|
+
};
|
|
29
|
+
refs: {};
|
|
30
|
+
attrs: Partial<{}>;
|
|
31
|
+
};
|
|
32
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
33
|
+
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>;
|
|
34
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey, MaybeRefOrGetter, Ref } from 'vue';
|
|
2
|
+
import { DeepRequired } from '../../shared/types';
|
|
3
|
+
export type BaseRow = Record<string, string | number>;
|
|
4
|
+
export interface TableSelectionProvide {
|
|
5
|
+
selectedRows: Ref<Set<BaseRow>>;
|
|
6
|
+
selectRow: (row: BaseRow) => void;
|
|
7
|
+
selectAllRows: () => void;
|
|
8
|
+
enabled: ComputedRef<boolean>;
|
|
9
|
+
isSelectedAll: ComputedRef<boolean>;
|
|
10
|
+
}
|
|
11
|
+
export declare const TableSelectionProvideSymbol: InjectionKey<TableSelectionProvide>;
|
|
12
|
+
export interface Header {
|
|
13
|
+
label: string;
|
|
14
|
+
sortToggle: () => void;
|
|
15
|
+
sortKey?: 'asc' | 'desc';
|
|
16
|
+
}
|
|
17
|
+
interface TableOptionsInput {
|
|
18
|
+
pagination?: {
|
|
19
|
+
enabled?: boolean;
|
|
20
|
+
perPage?: number;
|
|
21
|
+
maxPages?: number;
|
|
22
|
+
};
|
|
23
|
+
select?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare function defineTable<const Dataset extends Array<BaseRow>>(computedDataset: MaybeRefOrGetter<Dataset>, tableOptions?: TableOptionsInput): {
|
|
26
|
+
setSort: (key: keyof Dataset[number], type?: "asc" | "desc" | "toggle") => void;
|
|
27
|
+
clearSort: () => void;
|
|
28
|
+
search: Ref<string | undefined, string | undefined>;
|
|
29
|
+
rows: Readonly<Ref<import('vue').DeepReadonly<Dataset>, import('vue').DeepReadonly<Dataset>>>;
|
|
30
|
+
allRows: Readonly<Ref<import('vue').DeepReadonly<Dataset>, import('vue').DeepReadonly<Dataset>>>;
|
|
31
|
+
selectedRows: Readonly<Ref<ReadonlySet<{
|
|
32
|
+
readonly [x: string]: string | number;
|
|
33
|
+
}>, ReadonlySet<{
|
|
34
|
+
readonly [x: string]: string | number;
|
|
35
|
+
}>>>;
|
|
36
|
+
headers: Readonly<Ref<readonly {
|
|
37
|
+
readonly label: string;
|
|
38
|
+
readonly sortToggle: () => void;
|
|
39
|
+
readonly sortKey?: ("asc" | "desc") | undefined;
|
|
40
|
+
}[], readonly {
|
|
41
|
+
readonly label: string;
|
|
42
|
+
readonly sortToggle: () => void;
|
|
43
|
+
readonly sortKey?: ("asc" | "desc") | undefined;
|
|
44
|
+
}[]>>;
|
|
45
|
+
pagination: ComputedRef<import('../Pagination/pagination').Pagination>;
|
|
46
|
+
canPrevPage: ComputedRef<boolean>;
|
|
47
|
+
canNextPage: ComputedRef<boolean>;
|
|
48
|
+
setPage: (page: number) => void;
|
|
49
|
+
options: Ref<{
|
|
50
|
+
pagination: {
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
perPage: number;
|
|
53
|
+
maxPages: number;
|
|
54
|
+
};
|
|
55
|
+
select: boolean;
|
|
56
|
+
}, DeepRequired<TableOptionsInput> | {
|
|
57
|
+
pagination: {
|
|
58
|
+
enabled: boolean;
|
|
59
|
+
perPage: number;
|
|
60
|
+
maxPages: number;
|
|
61
|
+
};
|
|
62
|
+
select: boolean;
|
|
63
|
+
}>;
|
|
64
|
+
selectRow: (row: Dataset[number]) => void;
|
|
65
|
+
selectAllRows: () => void;
|
|
66
|
+
isSelectedAll: ComputedRef<boolean>;
|
|
67
|
+
};
|
|
68
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface TabProps {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
id?: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<TabProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { TabProps } from './Tab.vue';
|
|
2
|
+
import { VNode } from 'vue';
|
|
3
|
+
interface Props {
|
|
4
|
+
variant?: 'default' | 'filled';
|
|
5
|
+
expand?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare let __VLS_typeProps: Props;
|
|
9
|
+
type __VLS_PublicProps = {
|
|
10
|
+
modelValue?: any;
|
|
11
|
+
} & typeof __VLS_typeProps;
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
slots: Readonly<{
|
|
14
|
+
default: () => Array<VNode & {
|
|
15
|
+
props: TabProps;
|
|
16
|
+
}>;
|
|
17
|
+
}> & {
|
|
18
|
+
default: () => Array<VNode & {
|
|
19
|
+
props: TabProps;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
refs: {
|
|
23
|
+
tabs: HTMLDivElement;
|
|
24
|
+
underline: HTMLDivElement;
|
|
25
|
+
};
|
|
26
|
+
attrs: Partial<{}>;
|
|
27
|
+
};
|
|
28
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
"update:modelValue": (modelValue: any) => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
32
|
+
"onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
|
|
33
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
34
|
+
tabs: HTMLDivElement;
|
|
35
|
+
underline: HTMLDivElement;
|
|
36
|
+
}, 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,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
interface ToastAction {
|
|
2
|
+
label: string;
|
|
3
|
+
handler: (toastId: number) => void;
|
|
4
|
+
}
|
|
5
|
+
interface ToastOptions {
|
|
6
|
+
persist?: boolean;
|
|
7
|
+
timeout?: number;
|
|
8
|
+
action?: ToastAction;
|
|
9
|
+
description?: string;
|
|
10
|
+
}
|
|
11
|
+
interface Toast {
|
|
12
|
+
id: number;
|
|
13
|
+
title: string;
|
|
14
|
+
action?: ToastAction;
|
|
15
|
+
createdAt: number;
|
|
16
|
+
expiresAt: number;
|
|
17
|
+
description?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const toasts: import('vue').Ref<Map<number, {
|
|
20
|
+
id: number;
|
|
21
|
+
title: string;
|
|
22
|
+
action?: {
|
|
23
|
+
label: string;
|
|
24
|
+
handler: (toastId: number) => void;
|
|
25
|
+
} | undefined;
|
|
26
|
+
createdAt: number;
|
|
27
|
+
expiresAt: number;
|
|
28
|
+
description?: string | undefined;
|
|
29
|
+
}> & Omit<Map<number, Toast>, keyof Map<any, any>>, Map<number, Toast> | (Map<number, {
|
|
30
|
+
id: number;
|
|
31
|
+
title: string;
|
|
32
|
+
action?: {
|
|
33
|
+
label: string;
|
|
34
|
+
handler: (toastId: number) => void;
|
|
35
|
+
} | undefined;
|
|
36
|
+
createdAt: number;
|
|
37
|
+
expiresAt: number;
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
}> & Omit<Map<number, Toast>, keyof Map<any, any>>)>;
|
|
40
|
+
export declare function pushToast(title: string, options?: ToastOptions): Toast;
|
|
41
|
+
export declare function removeToast(id: number): void;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Placement } from '@floating-ui/vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
/**
|
|
4
|
+
* Tooltip placement related to the anchor
|
|
5
|
+
*/
|
|
6
|
+
placement?: Placement;
|
|
7
|
+
/**
|
|
8
|
+
* Amount of time user should hover the anchor until the tooltip shows up
|
|
9
|
+
*/
|
|
10
|
+
delay?: number;
|
|
11
|
+
}
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
slots: {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
tooltip?(_: {}): any;
|
|
16
|
+
};
|
|
17
|
+
refs: {
|
|
18
|
+
popoutAnchor: HTMLDivElement;
|
|
19
|
+
};
|
|
20
|
+
attrs: Partial<{}>;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
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, {
|
|
24
|
+
popoutAnchor: HTMLDivElement;
|
|
25
|
+
}, any>;
|
|
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
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,54 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as Accordion } from './components/Accordion/Accordion.vue';
|
|
2
|
+
import { default as AccordionGroup } from './components/Accordion/AccordionGroup.vue';
|
|
3
|
+
import { default as Alert } from './components/Alert/Alert.vue';
|
|
4
|
+
import { default as Avatar } from './components/Avatar/Avatar.vue';
|
|
5
|
+
import { default as Badge } from './components/Badge/Badge.vue';
|
|
6
|
+
import { default as BreadcrumbItem } from './components/Breadcrumbs/BreadcrumbItem.vue';
|
|
7
|
+
import { default as Breadcrumbs } from './components/Breadcrumbs/Breadcrumbs.vue';
|
|
8
|
+
import { default as Button } from './components/Button/Button.vue';
|
|
9
|
+
import { default as ButtonGroup } from './components/ButtonGroup/ButtonGroup.vue';
|
|
10
|
+
import { default as Calendar } from './components/Calendar/Calendar.vue';
|
|
11
|
+
import { default as Card } from './components/Card/Card.vue';
|
|
12
|
+
import { default as Checkbox } from './components/Checkbox/Checkbox.vue';
|
|
13
|
+
import { default as CopyClipboard } from './components/CopyClipboard/CopyClipboard.vue';
|
|
14
|
+
import { default as Divider } from './components/Divider/Divider.vue';
|
|
15
|
+
import { default as Drawer } from './components/Drawer/Drawer.vue';
|
|
16
|
+
import { default as Dropdown } from './components/Dropdown/Dropdown.vue';
|
|
17
|
+
import { default as DropdownItem } from './components/Dropdown/DropdownItem.vue';
|
|
18
|
+
import { default as DropdownTitle } from './components/Dropdown/DropdownTitle.vue';
|
|
19
|
+
import { default as Flex } from './components/Flex/Flex.vue';
|
|
20
|
+
import { default as Grid } from './components/Grid/Grid.vue';
|
|
21
|
+
import { default as Counter } from './components/Input/Counter.vue';
|
|
22
|
+
import { default as Dropzone } from './components/Input/Dropzone.vue';
|
|
23
|
+
import { default as File } from './components/Input/File.vue';
|
|
24
|
+
import { default as Input } from './components/Input/Input.vue';
|
|
25
|
+
import { default as Password } from './components/Input/Password.vue';
|
|
26
|
+
import { default as Textarea } from './components/Input/Textarea.vue';
|
|
27
|
+
import { default as Kbd } from './components/Kbd/Kbd.vue';
|
|
28
|
+
import { default as KbdGroup } from './components/Kbd/KbdGroup.vue';
|
|
29
|
+
import { default as Confirm } from './components/Modal/Confirm.vue';
|
|
30
|
+
import { default as Modal } from './components/Modal/Modal.vue';
|
|
31
|
+
import { default as Pagination } from './components/Pagination/Pagination.vue';
|
|
32
|
+
import { default as Popout } from './components/Popout/Popout.vue';
|
|
33
|
+
import { default as Progress } from './components/Progress/Progress.vue';
|
|
34
|
+
import { default as Radio } from './components/Radio/Radio.vue';
|
|
35
|
+
import { default as RadioGroup } from './components/Radio/RadioGroup.vue';
|
|
36
|
+
import { default as Select } from './components/Select/Select.vue';
|
|
37
|
+
import { default as Sheet } from './components/Sheet/Sheet.vue';
|
|
38
|
+
import { default as Skeleton } from './components/Skeleton/Skeleton.vue';
|
|
39
|
+
import { default as Spinner } from './components/Spinner/Spinner.vue';
|
|
40
|
+
import { default as Switch } from './components/Switch/Switch.vue';
|
|
41
|
+
import { default as Cell } from './components/Table/Cell.vue';
|
|
42
|
+
import { default as Header } from './components/Table/Header.vue';
|
|
43
|
+
import { default as Row } from './components/Table/Row.vue';
|
|
44
|
+
import { default as SelectAll } from './components/Table/SelectAll.vue';
|
|
45
|
+
import { default as SelectRow } from './components/Table/SelectRow.vue';
|
|
46
|
+
import { default as Table } from './components/Table/Table.vue';
|
|
47
|
+
import { default as Tab } from './components/Tabs/Tab.vue';
|
|
48
|
+
import { default as Tabs } from './components/Tabs/Tabs.vue';
|
|
49
|
+
import { pushToast, removeToast } from './components/Toast/toast';
|
|
50
|
+
import { default as Toasts } from './components/Toast/Toasts.vue';
|
|
51
|
+
import { default as Tooltip } from './components/Tooltip/Tooltip.vue';
|
|
52
|
+
import { default as Backdrop } from './internal/Backdrop/Backdrop.vue';
|
|
53
|
+
import { searchString } from './shared/helpers';
|
|
54
|
+
export { Accordion, AccordionGroup, Alert, Avatar, Backdrop, Badge, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Cell, Checkbox, Confirm, CopyClipboard, Counter, Divider, Drawer, Dropdown, DropdownItem, DropdownTitle, Dropzone, File, Flex, Grid, Header, Input, Kbd, KbdGroup, Modal, Pagination, Password, Popout, Progress, pushToast, Radio, RadioGroup, removeToast, Row, searchString, Select, SelectAll, SelectRow, Sheet, Skeleton, Spinner, Switch, Tab, Table, Tabs, Textarea, Toasts, Tooltip, };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {};
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
close: () => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
12
|
+
onClose?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare function createArray(length: number, startOffset?: number): number[];
|
|
2
|
+
export declare function searchString(match: string | string[], input: string): boolean;
|
|
3
|
+
export declare function getMaybeRefLength(value: string | number): number;
|
|
4
|
+
export declare function isNil(value: any): value is undefined;
|
|
5
|
+
/**
|
|
6
|
+
* Checks wether a color is light or dark, depending on
|
|
7
|
+
*/
|
|
8
|
+
export declare function calculateColorLightness(r: number, g: number, b: number): 'dark' | 'light';
|
|
9
|
+
/**
|
|
10
|
+
* Convert a CSS rgb string to a tuple of actual r,g,b values
|
|
11
|
+
*
|
|
12
|
+
* 'rgb(12,16,24)' --> [12, 16, 24]
|
|
13
|
+
*/
|
|
14
|
+
export declare function stringRgbToValues(rgbString: string): [number, number, number];
|
|
15
|
+
export declare function randomMinMax(min: number, max: number): number;
|
|
16
|
+
export declare function delay(amount: number): Promise<any>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum Size {
|
|
2
|
+
s = "s",
|
|
3
|
+
m = "m",
|
|
4
|
+
l = "l"
|
|
5
|
+
}
|
|
6
|
+
export type Sizes = 's' | 'm' | 'l';
|
|
7
|
+
export type DeepRequired<T> = {
|
|
8
|
+
[K in keyof T]: DeepRequired<T[K]>;
|
|
9
|
+
} & Required<T>;
|
|
10
|
+
export type VueClass = string | Record<string, boolean> | Array<string | Record<string, string | boolean>>;
|