@dronico/droni-kit 1.16.0 → 1.17.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/CHANGELOG.md +18 -2
- package/dist/droni-kit.css +1 -1
- package/dist/stories/Elements/DuiAccordion.stories.d.ts +104 -0
- package/dist/stories/Elements/DuiAccordion.vue.d.ts +44 -0
- package/dist/stories/Elements/DuiBadge.stories.d.ts +124 -0
- package/dist/stories/Elements/DuiBadge.vue.d.ts +41 -0
- package/dist/stories/Elements/DuiDropdown.stories.d.ts +131 -0
- package/dist/stories/Elements/DuiDropdown.vue.d.ts +51 -0
- package/dist/stories/Elements/DuiDropdownItem.vue.d.ts +40 -0
- package/dist/stories/Elements/DuiDropdownSeparator.vue.d.ts +2 -0
- package/dist/stories/Elements/DuiEmptyState.stories.d.ts +99 -0
- package/dist/stories/Elements/DuiEmptyState.vue.d.ts +34 -0
- package/dist/stories/Elements/DuiPagination.stories.d.ts +98 -0
- package/dist/stories/Elements/DuiPagination.vue.d.ts +35 -0
- package/dist/stories/Elements/DuiSkeleton.stories.d.ts +54 -0
- package/dist/stories/Elements/DuiSkeleton.vue.d.ts +13 -0
- package/dist/stories/Elements/DuiTabs.stories.d.ts +95 -0
- package/dist/stories/Elements/DuiTabs.vue.d.ts +43 -0
- package/dist/stories/Elements/DuiToast.stories.d.ts +44 -0
- package/dist/stories/Elements/DuiToast.vue.d.ts +12 -0
- package/dist/stories/Elements/useToast.d.ts +41 -0
- package/dist/stories/Forms/DuiRadio.stories.d.ts +70 -0
- package/dist/stories/Forms/DuiRadio.vue.d.ts +34 -0
- package/dist/stories/Forms/DuiSwitch.stories.d.ts +252 -0
- package/dist/stories/Forms/DuiSwitch.vue.d.ts +108 -0
- package/package.json +1 -1
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: {
|
|
5
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./DuiAccordion.vue').DuiAccordionProps> & Readonly<{
|
|
6
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
7
|
+
onChange?: ((value: string) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
|
+
"update:modelValue": (value: string | string[]) => any;
|
|
10
|
+
change: (value: string) => any;
|
|
11
|
+
}, import('vue').PublicProps, {
|
|
12
|
+
variant: "bordered" | "separated" | "ghost";
|
|
13
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
14
|
+
size: "sm" | "md" | "lg";
|
|
15
|
+
modelValue: string | string[];
|
|
16
|
+
multiple: boolean;
|
|
17
|
+
flush: boolean;
|
|
18
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
19
|
+
P: {};
|
|
20
|
+
B: {};
|
|
21
|
+
D: {};
|
|
22
|
+
C: {};
|
|
23
|
+
M: {};
|
|
24
|
+
Defaults: {};
|
|
25
|
+
}, Readonly<import('./DuiAccordion.vue').DuiAccordionProps> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
27
|
+
onChange?: ((value: string) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, {
|
|
29
|
+
variant: "bordered" | "separated" | "ghost";
|
|
30
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
31
|
+
size: "sm" | "md" | "lg";
|
|
32
|
+
modelValue: string | string[];
|
|
33
|
+
multiple: boolean;
|
|
34
|
+
flush: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
__isFragment?: never;
|
|
37
|
+
__isTeleport?: never;
|
|
38
|
+
__isSuspense?: never;
|
|
39
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./DuiAccordion.vue').DuiAccordionProps> & Readonly<{
|
|
40
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
41
|
+
onChange?: ((value: string) => any) | undefined;
|
|
42
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
43
|
+
"update:modelValue": (value: string | string[]) => any;
|
|
44
|
+
change: (value: string) => any;
|
|
45
|
+
}, string, {
|
|
46
|
+
variant: "bordered" | "separated" | "ghost";
|
|
47
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
48
|
+
size: "sm" | "md" | "lg";
|
|
49
|
+
modelValue: string | string[];
|
|
50
|
+
multiple: boolean;
|
|
51
|
+
flush: boolean;
|
|
52
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
53
|
+
$slots: Partial<Record<string, (_: {}) => any>>;
|
|
54
|
+
});
|
|
55
|
+
tags: string[];
|
|
56
|
+
argTypes: {
|
|
57
|
+
variant: {
|
|
58
|
+
control: {
|
|
59
|
+
type: "select";
|
|
60
|
+
};
|
|
61
|
+
options: string[];
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
color: {
|
|
65
|
+
control: {
|
|
66
|
+
type: "select";
|
|
67
|
+
};
|
|
68
|
+
options: string[];
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
size: {
|
|
72
|
+
control: {
|
|
73
|
+
type: "select";
|
|
74
|
+
};
|
|
75
|
+
options: string[];
|
|
76
|
+
description: string;
|
|
77
|
+
};
|
|
78
|
+
multiple: {
|
|
79
|
+
control: {
|
|
80
|
+
type: "boolean";
|
|
81
|
+
};
|
|
82
|
+
description: string;
|
|
83
|
+
};
|
|
84
|
+
flush: {
|
|
85
|
+
control: {
|
|
86
|
+
type: "boolean";
|
|
87
|
+
};
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
parameters: {
|
|
92
|
+
docs: {
|
|
93
|
+
description: {
|
|
94
|
+
component: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export default meta;
|
|
100
|
+
type Story = StoryObj<typeof meta>;
|
|
101
|
+
export declare const Default: Story;
|
|
102
|
+
export declare const Multiple: Story;
|
|
103
|
+
export declare const Variants: Story;
|
|
104
|
+
export declare const WithIcons: Story;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface DuiAccordionItem {
|
|
2
|
+
title: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
content?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface DuiAccordionProps {
|
|
9
|
+
items: DuiAccordionItem[];
|
|
10
|
+
modelValue?: string | string[];
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
variant?: 'bordered' | 'separated' | 'ghost';
|
|
13
|
+
color?: 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
14
|
+
size?: 'sm' | 'md' | 'lg';
|
|
15
|
+
flush?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare function __VLS_template(): {
|
|
18
|
+
attrs: Partial<{}>;
|
|
19
|
+
slots: Partial<Record<string, (_: {}) => any>>;
|
|
20
|
+
refs: {};
|
|
21
|
+
rootEl: HTMLDivElement;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<DuiAccordionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
25
|
+
"update:modelValue": (value: string | string[]) => any;
|
|
26
|
+
change: (value: string) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<DuiAccordionProps> & Readonly<{
|
|
28
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
29
|
+
onChange?: ((value: string) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
variant: "bordered" | "separated" | "ghost";
|
|
32
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
33
|
+
size: "sm" | "md" | "lg";
|
|
34
|
+
modelValue: string | string[];
|
|
35
|
+
multiple: boolean;
|
|
36
|
+
flush: boolean;
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, 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,124 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: {
|
|
5
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./DuiBadge.vue').DuiBadgeProps> & Readonly<{
|
|
6
|
+
onDismiss?: (() => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
dismiss: () => any;
|
|
9
|
+
}, import('vue').PublicProps, {
|
|
10
|
+
href: string;
|
|
11
|
+
variant: "solid" | "soft" | "outline";
|
|
12
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
13
|
+
size: "xs" | "sm" | "md" | "lg";
|
|
14
|
+
rounded: "full" | "md" | "none";
|
|
15
|
+
label: string;
|
|
16
|
+
dot: boolean;
|
|
17
|
+
dismissible: boolean;
|
|
18
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
19
|
+
P: {};
|
|
20
|
+
B: {};
|
|
21
|
+
D: {};
|
|
22
|
+
C: {};
|
|
23
|
+
M: {};
|
|
24
|
+
Defaults: {};
|
|
25
|
+
}, Readonly<import('./DuiBadge.vue').DuiBadgeProps> & Readonly<{
|
|
26
|
+
onDismiss?: (() => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, {
|
|
28
|
+
href: string;
|
|
29
|
+
variant: "solid" | "soft" | "outline";
|
|
30
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
31
|
+
size: "xs" | "sm" | "md" | "lg";
|
|
32
|
+
rounded: "full" | "md" | "none";
|
|
33
|
+
label: string;
|
|
34
|
+
dot: boolean;
|
|
35
|
+
dismissible: boolean;
|
|
36
|
+
}>;
|
|
37
|
+
__isFragment?: never;
|
|
38
|
+
__isTeleport?: never;
|
|
39
|
+
__isSuspense?: never;
|
|
40
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./DuiBadge.vue').DuiBadgeProps> & Readonly<{
|
|
41
|
+
onDismiss?: (() => any) | undefined;
|
|
42
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
43
|
+
dismiss: () => any;
|
|
44
|
+
}, string, {
|
|
45
|
+
href: string;
|
|
46
|
+
variant: "solid" | "soft" | "outline";
|
|
47
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
48
|
+
size: "xs" | "sm" | "md" | "lg";
|
|
49
|
+
rounded: "full" | "md" | "none";
|
|
50
|
+
label: string;
|
|
51
|
+
dot: boolean;
|
|
52
|
+
dismissible: boolean;
|
|
53
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
54
|
+
$slots: {
|
|
55
|
+
icon?(_: {}): any;
|
|
56
|
+
default?(_: {}): any;
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
tags: string[];
|
|
60
|
+
argTypes: {
|
|
61
|
+
label: {
|
|
62
|
+
control: {
|
|
63
|
+
type: "text";
|
|
64
|
+
};
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
color: {
|
|
68
|
+
control: {
|
|
69
|
+
type: "select";
|
|
70
|
+
};
|
|
71
|
+
options: string[];
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
variant: {
|
|
75
|
+
control: {
|
|
76
|
+
type: "select";
|
|
77
|
+
};
|
|
78
|
+
options: string[];
|
|
79
|
+
description: string;
|
|
80
|
+
};
|
|
81
|
+
size: {
|
|
82
|
+
control: {
|
|
83
|
+
type: "select";
|
|
84
|
+
};
|
|
85
|
+
options: string[];
|
|
86
|
+
description: string;
|
|
87
|
+
};
|
|
88
|
+
rounded: {
|
|
89
|
+
control: {
|
|
90
|
+
type: "select";
|
|
91
|
+
};
|
|
92
|
+
options: string[];
|
|
93
|
+
description: string;
|
|
94
|
+
};
|
|
95
|
+
dot: {
|
|
96
|
+
control: {
|
|
97
|
+
type: "boolean";
|
|
98
|
+
};
|
|
99
|
+
description: string;
|
|
100
|
+
};
|
|
101
|
+
dismissible: {
|
|
102
|
+
control: {
|
|
103
|
+
type: "boolean";
|
|
104
|
+
};
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
parameters: {
|
|
109
|
+
docs: {
|
|
110
|
+
description: {
|
|
111
|
+
component: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
export default meta;
|
|
117
|
+
type Story = StoryObj<typeof meta>;
|
|
118
|
+
export declare const Default: Story;
|
|
119
|
+
export declare const Colors: Story;
|
|
120
|
+
export declare const Variants: Story;
|
|
121
|
+
export declare const Sizes: Story;
|
|
122
|
+
export declare const WithDot: Story;
|
|
123
|
+
export declare const Dismissible: Story;
|
|
124
|
+
export declare const WithIcon: Story;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface DuiBadgeProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
color?: 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
4
|
+
variant?: 'solid' | 'soft' | 'outline';
|
|
5
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
6
|
+
rounded?: 'full' | 'md' | 'none';
|
|
7
|
+
dot?: boolean;
|
|
8
|
+
dismissible?: boolean;
|
|
9
|
+
href?: string;
|
|
10
|
+
}
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: {
|
|
14
|
+
icon?(_: {}): any;
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
};
|
|
17
|
+
refs: {};
|
|
18
|
+
rootEl: any;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<DuiBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
22
|
+
dismiss: () => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<DuiBadgeProps> & Readonly<{
|
|
24
|
+
onDismiss?: (() => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
href: string;
|
|
27
|
+
variant: "solid" | "soft" | "outline";
|
|
28
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
29
|
+
size: "xs" | "sm" | "md" | "lg";
|
|
30
|
+
rounded: "full" | "md" | "none";
|
|
31
|
+
label: string;
|
|
32
|
+
dot: boolean;
|
|
33
|
+
dismissible: boolean;
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
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,131 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: {
|
|
5
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./DuiDropdown.vue').DuiDropdownProps> & Readonly<{
|
|
6
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
7
|
+
onOpen?: (() => any) | undefined;
|
|
8
|
+
onClose?: (() => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
"update:modelValue": (value: boolean) => any;
|
|
11
|
+
open: () => any;
|
|
12
|
+
close: () => any;
|
|
13
|
+
}, import('vue').PublicProps, {
|
|
14
|
+
variant: "solid" | "outline" | "ghost";
|
|
15
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
16
|
+
size: "sm" | "md" | "lg";
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
rounded: "all" | "none" | "sm";
|
|
19
|
+
modelValue: boolean;
|
|
20
|
+
placement: "bottom-start" | "bottom-end" | "top-start" | "top-end" | "bottom" | "top";
|
|
21
|
+
minWidth: string;
|
|
22
|
+
ariaLabel: string;
|
|
23
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
24
|
+
wrapperRef: HTMLDivElement;
|
|
25
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
26
|
+
P: {};
|
|
27
|
+
B: {};
|
|
28
|
+
D: {};
|
|
29
|
+
C: {};
|
|
30
|
+
M: {};
|
|
31
|
+
Defaults: {};
|
|
32
|
+
}, Readonly<import('./DuiDropdown.vue').DuiDropdownProps> & Readonly<{
|
|
33
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
34
|
+
onOpen?: (() => any) | undefined;
|
|
35
|
+
onClose?: (() => any) | undefined;
|
|
36
|
+
}>, {}, {}, {}, {}, {
|
|
37
|
+
variant: "solid" | "outline" | "ghost";
|
|
38
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
39
|
+
size: "sm" | "md" | "lg";
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
rounded: "all" | "none" | "sm";
|
|
42
|
+
modelValue: boolean;
|
|
43
|
+
placement: "bottom-start" | "bottom-end" | "top-start" | "top-end" | "bottom" | "top";
|
|
44
|
+
minWidth: string;
|
|
45
|
+
ariaLabel: string;
|
|
46
|
+
}>;
|
|
47
|
+
__isFragment?: never;
|
|
48
|
+
__isTeleport?: never;
|
|
49
|
+
__isSuspense?: never;
|
|
50
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./DuiDropdown.vue').DuiDropdownProps> & Readonly<{
|
|
51
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
52
|
+
onOpen?: (() => any) | undefined;
|
|
53
|
+
onClose?: (() => any) | undefined;
|
|
54
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
55
|
+
"update:modelValue": (value: boolean) => any;
|
|
56
|
+
open: () => any;
|
|
57
|
+
close: () => any;
|
|
58
|
+
}, string, {
|
|
59
|
+
variant: "solid" | "outline" | "ghost";
|
|
60
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
61
|
+
size: "sm" | "md" | "lg";
|
|
62
|
+
disabled: boolean;
|
|
63
|
+
rounded: "all" | "none" | "sm";
|
|
64
|
+
modelValue: boolean;
|
|
65
|
+
placement: "bottom-start" | "bottom-end" | "top-start" | "top-end" | "bottom" | "top";
|
|
66
|
+
minWidth: string;
|
|
67
|
+
ariaLabel: string;
|
|
68
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
69
|
+
$slots: {
|
|
70
|
+
trigger?(_: {}): any;
|
|
71
|
+
default?(_: {}): any;
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
tags: string[];
|
|
75
|
+
argTypes: {
|
|
76
|
+
placement: {
|
|
77
|
+
control: {
|
|
78
|
+
type: "select";
|
|
79
|
+
};
|
|
80
|
+
options: string[];
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
variant: {
|
|
84
|
+
control: {
|
|
85
|
+
type: "select";
|
|
86
|
+
};
|
|
87
|
+
options: string[];
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
color: {
|
|
91
|
+
control: {
|
|
92
|
+
type: "select";
|
|
93
|
+
};
|
|
94
|
+
options: string[];
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
size: {
|
|
98
|
+
control: {
|
|
99
|
+
type: "select";
|
|
100
|
+
};
|
|
101
|
+
options: string[];
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
rounded: {
|
|
105
|
+
control: {
|
|
106
|
+
type: "select";
|
|
107
|
+
};
|
|
108
|
+
options: string[];
|
|
109
|
+
description: string;
|
|
110
|
+
};
|
|
111
|
+
disabled: {
|
|
112
|
+
control: {
|
|
113
|
+
type: "boolean";
|
|
114
|
+
};
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
parameters: {
|
|
119
|
+
docs: {
|
|
120
|
+
description: {
|
|
121
|
+
component: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
export default meta;
|
|
127
|
+
type Story = StoryObj<typeof meta>;
|
|
128
|
+
export declare const Default: Story;
|
|
129
|
+
export declare const Placements: Story;
|
|
130
|
+
export declare const Variants: Story;
|
|
131
|
+
export declare const WithIcons: Story;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export interface DuiDropdownProps {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
placement?: 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'bottom' | 'top';
|
|
4
|
+
variant?: 'solid' | 'outline' | 'ghost';
|
|
5
|
+
color?: 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
rounded?: 'all' | 'none' | 'sm';
|
|
8
|
+
minWidth?: string;
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
slots: {
|
|
15
|
+
trigger?(_: {}): any;
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
};
|
|
18
|
+
refs: {
|
|
19
|
+
wrapperRef: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
rootEl: HTMLDivElement;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<DuiDropdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
25
|
+
"update:modelValue": (value: boolean) => any;
|
|
26
|
+
open: () => any;
|
|
27
|
+
close: () => any;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<DuiDropdownProps> & Readonly<{
|
|
29
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
30
|
+
onOpen?: (() => any) | undefined;
|
|
31
|
+
onClose?: (() => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
variant: "solid" | "outline" | "ghost";
|
|
34
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
35
|
+
size: "sm" | "md" | "lg";
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
rounded: "all" | "none" | "sm";
|
|
38
|
+
modelValue: boolean;
|
|
39
|
+
placement: "bottom-start" | "bottom-end" | "top-start" | "top-end" | "bottom" | "top";
|
|
40
|
+
minWidth: string;
|
|
41
|
+
ariaLabel: string;
|
|
42
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
43
|
+
wrapperRef: HTMLDivElement;
|
|
44
|
+
}, HTMLDivElement>;
|
|
45
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface DuiDropdownItemProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
icon?: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
target?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
danger?: boolean;
|
|
8
|
+
size?: 'sm' | 'md' | 'lg';
|
|
9
|
+
}
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
icon?(_: {}): any;
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
trailing?(_: {}): any;
|
|
16
|
+
};
|
|
17
|
+
refs: {};
|
|
18
|
+
rootEl: any;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<DuiDropdownItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
22
|
+
click: (event: MouseEvent) => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<DuiDropdownItemProps> & Readonly<{
|
|
24
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
href: string;
|
|
27
|
+
danger: boolean;
|
|
28
|
+
size: "sm" | "md" | "lg";
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
label: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
target: string;
|
|
33
|
+
}, {}, {}, {}, 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,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, {}, HTMLHRElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: {
|
|
5
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./DuiEmptyState.vue').DuiEmptyStateProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
6
|
+
variant: "default" | "bordered" | "dashed";
|
|
7
|
+
size: "sm" | "md" | "lg";
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
align: "center" | "left";
|
|
11
|
+
illustration: string;
|
|
12
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
13
|
+
P: {};
|
|
14
|
+
B: {};
|
|
15
|
+
D: {};
|
|
16
|
+
C: {};
|
|
17
|
+
M: {};
|
|
18
|
+
Defaults: {};
|
|
19
|
+
}, Readonly<import('./DuiEmptyState.vue').DuiEmptyStateProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
20
|
+
variant: "default" | "bordered" | "dashed";
|
|
21
|
+
size: "sm" | "md" | "lg";
|
|
22
|
+
title: string;
|
|
23
|
+
description: string;
|
|
24
|
+
align: "center" | "left";
|
|
25
|
+
illustration: string;
|
|
26
|
+
}>;
|
|
27
|
+
__isFragment?: never;
|
|
28
|
+
__isTeleport?: never;
|
|
29
|
+
__isSuspense?: never;
|
|
30
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./DuiEmptyState.vue').DuiEmptyStateProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
31
|
+
variant: "default" | "bordered" | "dashed";
|
|
32
|
+
size: "sm" | "md" | "lg";
|
|
33
|
+
title: string;
|
|
34
|
+
description: string;
|
|
35
|
+
align: "center" | "left";
|
|
36
|
+
illustration: string;
|
|
37
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
38
|
+
$slots: {
|
|
39
|
+
illustration?(_: {}): any;
|
|
40
|
+
description?(_: {}): any;
|
|
41
|
+
actions?(_: {}): any;
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
tags: string[];
|
|
45
|
+
argTypes: {
|
|
46
|
+
title: {
|
|
47
|
+
control: {
|
|
48
|
+
type: "text";
|
|
49
|
+
};
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
description: {
|
|
53
|
+
control: {
|
|
54
|
+
type: "text";
|
|
55
|
+
};
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
illustration: {
|
|
59
|
+
control: {
|
|
60
|
+
type: "text";
|
|
61
|
+
};
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
variant: {
|
|
65
|
+
control: {
|
|
66
|
+
type: "select";
|
|
67
|
+
};
|
|
68
|
+
options: string[];
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
size: {
|
|
72
|
+
control: {
|
|
73
|
+
type: "select";
|
|
74
|
+
};
|
|
75
|
+
options: string[];
|
|
76
|
+
description: string;
|
|
77
|
+
};
|
|
78
|
+
align: {
|
|
79
|
+
control: {
|
|
80
|
+
type: "select";
|
|
81
|
+
};
|
|
82
|
+
options: string[];
|
|
83
|
+
description: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
parameters: {
|
|
87
|
+
docs: {
|
|
88
|
+
description: {
|
|
89
|
+
component: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export default meta;
|
|
95
|
+
type Story = StoryObj<typeof meta>;
|
|
96
|
+
export declare const Default: Story;
|
|
97
|
+
export declare const Variants: Story;
|
|
98
|
+
export declare const NoData: Story;
|
|
99
|
+
export declare const Error: Story;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface DuiEmptyStateProps {
|
|
2
|
+
title?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
illustration?: string;
|
|
5
|
+
variant?: 'default' | 'bordered' | 'dashed';
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
align?: 'center' | 'left';
|
|
8
|
+
}
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
illustration?(_: {}): any;
|
|
13
|
+
description?(_: {}): any;
|
|
14
|
+
actions?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<DuiEmptyStateProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DuiEmptyStateProps> & Readonly<{}>, {
|
|
21
|
+
variant: "default" | "bordered" | "dashed";
|
|
22
|
+
size: "sm" | "md" | "lg";
|
|
23
|
+
title: string;
|
|
24
|
+
description: string;
|
|
25
|
+
align: "center" | "left";
|
|
26
|
+
illustration: string;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|