@dronico/droni-kit 1.22.2 → 1.24.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/dist/index.d.ts
CHANGED
|
@@ -23,5 +23,7 @@ import { default as DuiPagination } from './stories/Elements/DuiPagination.vue';
|
|
|
23
23
|
import { default as DuiSkeleton } from './stories/Elements/DuiSkeleton.vue';
|
|
24
24
|
import { default as DuiTabs } from './stories/Elements/DuiTabs.vue';
|
|
25
25
|
import { default as DuiToast } from './stories/Elements/DuiToast.vue';
|
|
26
|
+
import { default as DuiConfirmation } from './stories/Widgets/DuiConfirmation.vue';
|
|
26
27
|
import { default as DuiNavbar } from './stories/Widgets/DuiNavbar.vue';
|
|
27
|
-
|
|
28
|
+
import { useToast } from './stories/Elements/useToast';
|
|
29
|
+
export { DuiButton, DuiFile, DuiInput, DuiTextarea, DuiAction, DuiCard, DuiSelect, DuiLabel, DuiCheckbox, DuiRadio, DuiSwitch, DuiAlert, DuiTable, DuiModal, DuiDrawer, DuiTooltip, DuiAccordion, DuiBadge, DuiDropdown, DuiDropdownItem, DuiDropdownSeparator, DuiPagination, DuiSkeleton, DuiTabs, DuiToast, DuiConfirmation, DuiNavbar, useToast };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('vue').DefineComponent<import('./DuiConfirmation.vue').DuiButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
confirmed: (...args: any[]) => void;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<import('./DuiConfirmation.vue').DuiButtonProps> & Readonly<{
|
|
7
|
+
onConfirmed?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
variant: "solid" | "outline" | "ghost";
|
|
10
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
11
|
+
size: "sm" | "md" | "lg";
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
tags: string[];
|
|
14
|
+
argTypes: {
|
|
15
|
+
label: {
|
|
16
|
+
control: {
|
|
17
|
+
type: "text";
|
|
18
|
+
};
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
checkLabel: {
|
|
22
|
+
control: {
|
|
23
|
+
type: "text";
|
|
24
|
+
};
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
confirmLabel: {
|
|
28
|
+
control: {
|
|
29
|
+
type: "text";
|
|
30
|
+
};
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
33
|
+
variant: {
|
|
34
|
+
control: {
|
|
35
|
+
type: "select";
|
|
36
|
+
};
|
|
37
|
+
options: string[];
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
color: {
|
|
41
|
+
control: {
|
|
42
|
+
type: "select";
|
|
43
|
+
};
|
|
44
|
+
options: string[];
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
size: {
|
|
48
|
+
control: {
|
|
49
|
+
type: "select";
|
|
50
|
+
};
|
|
51
|
+
options: string[];
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
onConfirmed: {
|
|
55
|
+
action: string;
|
|
56
|
+
description: string;
|
|
57
|
+
table: {
|
|
58
|
+
category: string;
|
|
59
|
+
};
|
|
60
|
+
control: false;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
parameters: {
|
|
64
|
+
docs: {
|
|
65
|
+
description: {
|
|
66
|
+
component: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export default meta;
|
|
72
|
+
type Story = StoryObj<typeof meta>;
|
|
73
|
+
export declare const Default: Story;
|
|
74
|
+
export declare const PrimaryAction: Story;
|
|
75
|
+
export declare const Compact: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface DuiButtonProps {
|
|
2
|
+
label: string;
|
|
3
|
+
checkLabel: string;
|
|
4
|
+
confirmLabel: string;
|
|
5
|
+
variant?: 'solid' | 'outline' | 'ghost';
|
|
6
|
+
color?: 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import('vue').DefineComponent<DuiButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
confirmed: (...args: any[]) => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<DuiButtonProps> & Readonly<{
|
|
12
|
+
onConfirmed?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
variant: "solid" | "outline" | "ghost";
|
|
15
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
16
|
+
size: "sm" | "md" | "lg";
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|