@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,98 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('vue').DefineComponent<import('./DuiPagination.vue').DuiPaginationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
+
"update:modelValue": (page: number) => any;
|
|
6
|
+
change: (page: number) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<import('./DuiPagination.vue').DuiPaginationProps> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((page: number) => any) | undefined;
|
|
9
|
+
onChange?: ((page: number) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
variant: "solid" | "outline" | "ghost";
|
|
12
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
13
|
+
size: "sm" | "md" | "lg";
|
|
14
|
+
rounded: "full" | "md" | "none";
|
|
15
|
+
ariaLabel: string;
|
|
16
|
+
perPage: number;
|
|
17
|
+
siblingCount: number;
|
|
18
|
+
showBoundary: boolean;
|
|
19
|
+
showLabels: boolean;
|
|
20
|
+
prevLabel: string;
|
|
21
|
+
nextLabel: string;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
23
|
+
tags: string[];
|
|
24
|
+
argTypes: {
|
|
25
|
+
modelValue: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "number";
|
|
28
|
+
};
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
total: {
|
|
32
|
+
control: {
|
|
33
|
+
type: "number";
|
|
34
|
+
};
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
perPage: {
|
|
38
|
+
control: {
|
|
39
|
+
type: "number";
|
|
40
|
+
};
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
siblingCount: {
|
|
44
|
+
control: {
|
|
45
|
+
type: "number";
|
|
46
|
+
};
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
color: {
|
|
50
|
+
control: {
|
|
51
|
+
type: "select";
|
|
52
|
+
};
|
|
53
|
+
options: string[];
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
variant: {
|
|
57
|
+
control: {
|
|
58
|
+
type: "select";
|
|
59
|
+
};
|
|
60
|
+
options: string[];
|
|
61
|
+
description: string;
|
|
62
|
+
};
|
|
63
|
+
size: {
|
|
64
|
+
control: {
|
|
65
|
+
type: "select";
|
|
66
|
+
};
|
|
67
|
+
options: string[];
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
70
|
+
rounded: {
|
|
71
|
+
control: {
|
|
72
|
+
type: "select";
|
|
73
|
+
};
|
|
74
|
+
options: string[];
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
showLabels: {
|
|
78
|
+
control: {
|
|
79
|
+
type: "boolean";
|
|
80
|
+
};
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
parameters: {
|
|
85
|
+
docs: {
|
|
86
|
+
description: {
|
|
87
|
+
component: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
export default meta;
|
|
93
|
+
type Story = StoryObj<typeof meta>;
|
|
94
|
+
export declare const Default: Story;
|
|
95
|
+
export declare const Variants: Story;
|
|
96
|
+
export declare const Colors: Story;
|
|
97
|
+
export declare const LargePagination: Story;
|
|
98
|
+
export declare const Sizes: Story;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface DuiPaginationProps {
|
|
2
|
+
modelValue: number;
|
|
3
|
+
total: number;
|
|
4
|
+
perPage?: number;
|
|
5
|
+
siblingCount?: number;
|
|
6
|
+
showBoundary?: boolean;
|
|
7
|
+
color?: 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
8
|
+
variant?: 'solid' | 'outline' | 'ghost';
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
rounded?: 'full' | 'md' | 'none';
|
|
11
|
+
showLabels?: boolean;
|
|
12
|
+
prevLabel?: string;
|
|
13
|
+
nextLabel?: string;
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: import('vue').DefineComponent<DuiPaginationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
17
|
+
"update:modelValue": (page: number) => any;
|
|
18
|
+
change: (page: number) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<DuiPaginationProps> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((page: number) => any) | undefined;
|
|
21
|
+
onChange?: ((page: number) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
variant: "solid" | "outline" | "ghost";
|
|
24
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
25
|
+
size: "sm" | "md" | "lg";
|
|
26
|
+
rounded: "full" | "md" | "none";
|
|
27
|
+
ariaLabel: string;
|
|
28
|
+
perPage: number;
|
|
29
|
+
siblingCount: number;
|
|
30
|
+
showBoundary: boolean;
|
|
31
|
+
showLabels: boolean;
|
|
32
|
+
prevLabel: string;
|
|
33
|
+
nextLabel: string;
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('vue').DefineComponent<import('./DuiSkeleton.vue').DuiSkeletonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./DuiSkeleton.vue').DuiSkeletonProps> & Readonly<{}>, {
|
|
5
|
+
variant: "text" | "circular" | "rectangular" | "rounded";
|
|
6
|
+
animation: "pulse" | "wave" | "none";
|
|
7
|
+
width: string | number;
|
|
8
|
+
height: string | number;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
10
|
+
tags: string[];
|
|
11
|
+
argTypes: {
|
|
12
|
+
variant: {
|
|
13
|
+
control: {
|
|
14
|
+
type: "select";
|
|
15
|
+
};
|
|
16
|
+
options: string[];
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
width: {
|
|
20
|
+
control: {
|
|
21
|
+
type: "text";
|
|
22
|
+
};
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
height: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "text";
|
|
28
|
+
};
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
animation: {
|
|
32
|
+
control: {
|
|
33
|
+
type: "select";
|
|
34
|
+
};
|
|
35
|
+
options: string[];
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
parameters: {
|
|
40
|
+
docs: {
|
|
41
|
+
description: {
|
|
42
|
+
component: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export default meta;
|
|
48
|
+
type Story = StoryObj<typeof meta>;
|
|
49
|
+
export declare const Default: Story;
|
|
50
|
+
export declare const Variants: Story;
|
|
51
|
+
export declare const CardSkeleton: Story;
|
|
52
|
+
export declare const ListSkeleton: Story;
|
|
53
|
+
export declare const TableSkeleton: Story;
|
|
54
|
+
export declare const LoadingToggle: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface DuiSkeletonProps {
|
|
2
|
+
variant?: 'text' | 'circular' | 'rectangular' | 'rounded';
|
|
3
|
+
width?: string | number;
|
|
4
|
+
height?: string | number;
|
|
5
|
+
animation?: 'pulse' | 'wave' | 'none';
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<DuiSkeletonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DuiSkeletonProps> & Readonly<{}>, {
|
|
8
|
+
variant: "text" | "circular" | "rectangular" | "rounded";
|
|
9
|
+
animation: "pulse" | "wave" | "none";
|
|
10
|
+
width: string | number;
|
|
11
|
+
height: string | number;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
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('./DuiTabs.vue').DuiTabsProps> & Readonly<{
|
|
6
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
7
|
+
onChange?: ((value: string) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
|
+
"update:modelValue": (value: string) => any;
|
|
10
|
+
change: (value: string) => any;
|
|
11
|
+
}, import('vue').PublicProps, {
|
|
12
|
+
variant: "underline" | "pills" | "boxed";
|
|
13
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
14
|
+
size: "sm" | "md" | "lg";
|
|
15
|
+
ariaLabel: string;
|
|
16
|
+
fullWidth: boolean;
|
|
17
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
18
|
+
P: {};
|
|
19
|
+
B: {};
|
|
20
|
+
D: {};
|
|
21
|
+
C: {};
|
|
22
|
+
M: {};
|
|
23
|
+
Defaults: {};
|
|
24
|
+
}, Readonly<import('./DuiTabs.vue').DuiTabsProps> & Readonly<{
|
|
25
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
26
|
+
onChange?: ((value: string) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, {
|
|
28
|
+
variant: "underline" | "pills" | "boxed";
|
|
29
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
30
|
+
size: "sm" | "md" | "lg";
|
|
31
|
+
ariaLabel: string;
|
|
32
|
+
fullWidth: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
__isFragment?: never;
|
|
35
|
+
__isTeleport?: never;
|
|
36
|
+
__isSuspense?: never;
|
|
37
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./DuiTabs.vue').DuiTabsProps> & Readonly<{
|
|
38
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
39
|
+
onChange?: ((value: string) => any) | undefined;
|
|
40
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
41
|
+
"update:modelValue": (value: string) => any;
|
|
42
|
+
change: (value: string) => any;
|
|
43
|
+
}, string, {
|
|
44
|
+
variant: "underline" | "pills" | "boxed";
|
|
45
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
46
|
+
size: "sm" | "md" | "lg";
|
|
47
|
+
ariaLabel: string;
|
|
48
|
+
fullWidth: boolean;
|
|
49
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
50
|
+
$slots: Partial<Record<string, (_: {}) => any>>;
|
|
51
|
+
});
|
|
52
|
+
tags: string[];
|
|
53
|
+
argTypes: {
|
|
54
|
+
variant: {
|
|
55
|
+
control: {
|
|
56
|
+
type: "select";
|
|
57
|
+
};
|
|
58
|
+
options: string[];
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
color: {
|
|
62
|
+
control: {
|
|
63
|
+
type: "select";
|
|
64
|
+
};
|
|
65
|
+
options: string[];
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
size: {
|
|
69
|
+
control: {
|
|
70
|
+
type: "select";
|
|
71
|
+
};
|
|
72
|
+
options: string[];
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
fullWidth: {
|
|
76
|
+
control: {
|
|
77
|
+
type: "boolean";
|
|
78
|
+
};
|
|
79
|
+
description: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
parameters: {
|
|
83
|
+
docs: {
|
|
84
|
+
description: {
|
|
85
|
+
component: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export default meta;
|
|
91
|
+
type Story = StoryObj<typeof meta>;
|
|
92
|
+
export declare const Default: Story;
|
|
93
|
+
export declare const Pills: Story;
|
|
94
|
+
export declare const Boxed: Story;
|
|
95
|
+
export declare const Colors: Story;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface DuiTab {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
badge?: number | string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface DuiTabsProps {
|
|
9
|
+
modelValue: string;
|
|
10
|
+
tabs: DuiTab[];
|
|
11
|
+
variant?: 'underline' | 'pills' | 'boxed';
|
|
12
|
+
color?: 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
13
|
+
size?: 'sm' | 'md' | 'lg';
|
|
14
|
+
fullWidth?: boolean;
|
|
15
|
+
ariaLabel?: string;
|
|
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<DuiTabsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
25
|
+
"update:modelValue": (value: string) => any;
|
|
26
|
+
change: (value: string) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<DuiTabsProps> & Readonly<{
|
|
28
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
29
|
+
onChange?: ((value: string) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
variant: "underline" | "pills" | "boxed";
|
|
32
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
33
|
+
size: "sm" | "md" | "lg";
|
|
34
|
+
ariaLabel: string;
|
|
35
|
+
fullWidth: boolean;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
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,44 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('vue').DefineComponent<import('./DuiToast.vue').DuiToastProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./DuiToast.vue').DuiToastProps> & Readonly<{}>, {
|
|
5
|
+
zIndex: number;
|
|
6
|
+
position: import('./useToast').ToastPosition;
|
|
7
|
+
maxToasts: number;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
position: {
|
|
12
|
+
control: {
|
|
13
|
+
type: "select";
|
|
14
|
+
};
|
|
15
|
+
options: string[];
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
maxToasts: {
|
|
19
|
+
control: {
|
|
20
|
+
type: "number";
|
|
21
|
+
};
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
zIndex: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "number";
|
|
27
|
+
};
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
parameters: {
|
|
32
|
+
docs: {
|
|
33
|
+
description: {
|
|
34
|
+
component: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export default meta;
|
|
40
|
+
type Story = StoryObj<typeof meta>;
|
|
41
|
+
export declare const Default: Story;
|
|
42
|
+
export declare const WithTitles: Story;
|
|
43
|
+
export declare const Persistent: Story;
|
|
44
|
+
export declare const AllColors: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ToastPosition } from './useToast';
|
|
2
|
+
export interface DuiToastProps {
|
|
3
|
+
position?: ToastPosition;
|
|
4
|
+
maxToasts?: number;
|
|
5
|
+
zIndex?: number;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<DuiToastProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DuiToastProps> & Readonly<{}>, {
|
|
8
|
+
zIndex: number;
|
|
9
|
+
position: ToastPosition;
|
|
10
|
+
maxToasts: number;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type ToastColor = 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
2
|
+
export type ToastPosition = 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';
|
|
3
|
+
export interface ToastItem {
|
|
4
|
+
id: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
message: string;
|
|
7
|
+
color: ToastColor;
|
|
8
|
+
duration: number;
|
|
9
|
+
closable: boolean;
|
|
10
|
+
icon?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ToastOptions {
|
|
13
|
+
title?: string;
|
|
14
|
+
message: string;
|
|
15
|
+
color?: ToastColor;
|
|
16
|
+
duration?: number;
|
|
17
|
+
closable?: boolean;
|
|
18
|
+
icon?: string;
|
|
19
|
+
}
|
|
20
|
+
declare function add(options: ToastOptions): string;
|
|
21
|
+
declare function remove(id: string): void;
|
|
22
|
+
declare function clear(): void;
|
|
23
|
+
export declare function useToast(): {
|
|
24
|
+
toasts: readonly {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly title?: string | undefined;
|
|
27
|
+
readonly message: string;
|
|
28
|
+
readonly color: ToastColor;
|
|
29
|
+
readonly duration: number;
|
|
30
|
+
readonly closable: boolean;
|
|
31
|
+
readonly icon?: string | undefined;
|
|
32
|
+
}[];
|
|
33
|
+
add: typeof add;
|
|
34
|
+
remove: typeof remove;
|
|
35
|
+
clear: typeof clear;
|
|
36
|
+
success: (message: string, options?: Omit<ToastOptions, "message" | "color">) => string;
|
|
37
|
+
error: (message: string, options?: Omit<ToastOptions, "message" | "color">) => string;
|
|
38
|
+
warning: (message: string, options?: Omit<ToastOptions, "message" | "color">) => string;
|
|
39
|
+
info: (message: string, options?: Omit<ToastOptions, "message" | "color">) => string;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('vue').DefineComponent<import('./DuiRadio.vue').DuiRadioProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
+
"update:modelValue": (value: string) => any;
|
|
6
|
+
change: (value: string) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<import('./DuiRadio.vue').DuiRadioProps> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
|
+
onChange?: ((value: string) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
name: string;
|
|
12
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
13
|
+
size: "sm" | "md" | "lg";
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
block: boolean;
|
|
16
|
+
modelValue: string;
|
|
17
|
+
groupLabel: string;
|
|
18
|
+
orientation: "vertical" | "horizontal";
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
tags: string[];
|
|
21
|
+
argTypes: {
|
|
22
|
+
color: {
|
|
23
|
+
control: {
|
|
24
|
+
type: "select";
|
|
25
|
+
};
|
|
26
|
+
options: string[];
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
size: {
|
|
30
|
+
control: {
|
|
31
|
+
type: "select";
|
|
32
|
+
};
|
|
33
|
+
options: string[];
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
orientation: {
|
|
37
|
+
control: {
|
|
38
|
+
type: "select";
|
|
39
|
+
};
|
|
40
|
+
options: string[];
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
block: {
|
|
44
|
+
control: {
|
|
45
|
+
type: "boolean";
|
|
46
|
+
};
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
disabled: {
|
|
50
|
+
control: {
|
|
51
|
+
type: "boolean";
|
|
52
|
+
};
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
parameters: {
|
|
57
|
+
docs: {
|
|
58
|
+
description: {
|
|
59
|
+
component: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export default meta;
|
|
65
|
+
type Story = StoryObj<typeof meta>;
|
|
66
|
+
export declare const Default: Story;
|
|
67
|
+
export declare const Horizontal: Story;
|
|
68
|
+
export declare const Colors: Story;
|
|
69
|
+
export declare const WithDescriptions: Story;
|
|
70
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface DuiRadioOption {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface DuiRadioProps {
|
|
8
|
+
modelValue?: string;
|
|
9
|
+
options: DuiRadioOption[];
|
|
10
|
+
name?: string;
|
|
11
|
+
groupLabel?: string;
|
|
12
|
+
color?: 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
13
|
+
size?: 'sm' | 'md' | 'lg';
|
|
14
|
+
orientation?: 'vertical' | 'horizontal';
|
|
15
|
+
block?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: import('vue').DefineComponent<DuiRadioProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
|
+
"update:modelValue": (value: string) => any;
|
|
20
|
+
change: (value: string) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<DuiRadioProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
23
|
+
onChange?: ((value: string) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
name: string;
|
|
26
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
27
|
+
size: "sm" | "md" | "lg";
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
block: boolean;
|
|
30
|
+
modelValue: string;
|
|
31
|
+
groupLabel: string;
|
|
32
|
+
orientation: "vertical" | "horizontal";
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
export default _default;
|