@dronico/droni-kit 1.21.2 → 1.22.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/CHANGELOG.md +14 -0
- package/dist/droni-kit.cjs.js +9 -9
- package/dist/droni-kit.css +1 -1
- package/dist/droni-kit.es.js +1133 -928
- package/dist/index.d.ts +2 -1
- package/dist/stories/Elements/DuiDrawer.stories.d.ts +178 -0
- package/dist/stories/Elements/DuiDrawer.vue.d.ts +58 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { default as DuiTable } from './stories/Elements/DuiTable.vue';
|
|
|
12
12
|
import { default as DuiAction } from './stories/Elements/DuiAction.vue';
|
|
13
13
|
import { default as DuiCard } from './stories/Elements/DuiCard.vue';
|
|
14
14
|
import { default as DuiModal } from './stories/Elements/DuiModal.vue';
|
|
15
|
+
import { default as DuiDrawer } from './stories/Elements/DuiDrawer.vue';
|
|
15
16
|
import { default as DuiTooltip } from './stories/Elements/DuiTooltip.vue';
|
|
16
17
|
import { default as DuiAccordion } from './stories/Elements/DuiAccordion.vue';
|
|
17
18
|
import { default as DuiBadge } from './stories/Elements/DuiBadge.vue';
|
|
@@ -23,4 +24,4 @@ import { default as DuiSkeleton } from './stories/Elements/DuiSkeleton.vue';
|
|
|
23
24
|
import { default as DuiTabs } from './stories/Elements/DuiTabs.vue';
|
|
24
25
|
import { default as DuiToast } from './stories/Elements/DuiToast.vue';
|
|
25
26
|
import { default as DuiNavbar } from './stories/Widgets/DuiNavbar.vue';
|
|
26
|
-
export { DuiButton, DuiFile, DuiInput, DuiTextarea, DuiAction, DuiCard, DuiSelect, DuiLabel, DuiCheckbox, DuiRadio, DuiSwitch, DuiAlert, DuiTable, DuiModal, DuiTooltip, DuiAccordion, DuiBadge, DuiDropdown, DuiDropdownItem, DuiDropdownSeparator, DuiPagination, DuiSkeleton, DuiTabs, DuiToast, DuiNavbar };
|
|
27
|
+
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, DuiNavbar };
|
|
@@ -0,0 +1,178 @@
|
|
|
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('./DuiDrawer.vue').DuiDrawerProps> & Readonly<{
|
|
6
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
7
|
+
onOpen?: (() => any) | undefined;
|
|
8
|
+
onClose?: ((source: "button" | "backdrop" | "escape") => any) | undefined;
|
|
9
|
+
onBackdrop?: (() => any) | undefined;
|
|
10
|
+
onEscape?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
12
|
+
"update:modelValue": (value: boolean) => any;
|
|
13
|
+
open: () => any;
|
|
14
|
+
close: (source: "button" | "backdrop" | "escape") => any;
|
|
15
|
+
backdrop: () => any;
|
|
16
|
+
escape: () => any;
|
|
17
|
+
}, import('vue').PublicProps, {
|
|
18
|
+
name: string;
|
|
19
|
+
variant: "solid" | "outline" | "ghost";
|
|
20
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
21
|
+
size: "sm" | "md" | "lg" | "xl";
|
|
22
|
+
modelValue: boolean;
|
|
23
|
+
showClose: boolean;
|
|
24
|
+
closeOnBackdrop: boolean;
|
|
25
|
+
closeOnEsc: boolean;
|
|
26
|
+
persistent: boolean;
|
|
27
|
+
blurBackdrop: boolean;
|
|
28
|
+
zIndex: number;
|
|
29
|
+
position: "left" | "right" | "top" | "bottom";
|
|
30
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
31
|
+
P: {};
|
|
32
|
+
B: {};
|
|
33
|
+
D: {};
|
|
34
|
+
C: {};
|
|
35
|
+
M: {};
|
|
36
|
+
Defaults: {};
|
|
37
|
+
}, Readonly<import('./DuiDrawer.vue').DuiDrawerProps> & Readonly<{
|
|
38
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
39
|
+
onOpen?: (() => any) | undefined;
|
|
40
|
+
onClose?: ((source: "button" | "backdrop" | "escape") => any) | undefined;
|
|
41
|
+
onBackdrop?: (() => any) | undefined;
|
|
42
|
+
onEscape?: (() => any) | undefined;
|
|
43
|
+
}>, {}, {}, {}, {}, {
|
|
44
|
+
name: string;
|
|
45
|
+
variant: "solid" | "outline" | "ghost";
|
|
46
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
47
|
+
size: "sm" | "md" | "lg" | "xl";
|
|
48
|
+
modelValue: boolean;
|
|
49
|
+
showClose: boolean;
|
|
50
|
+
closeOnBackdrop: boolean;
|
|
51
|
+
closeOnEsc: boolean;
|
|
52
|
+
persistent: boolean;
|
|
53
|
+
blurBackdrop: boolean;
|
|
54
|
+
zIndex: number;
|
|
55
|
+
position: "left" | "right" | "top" | "bottom";
|
|
56
|
+
}>;
|
|
57
|
+
__isFragment?: never;
|
|
58
|
+
__isTeleport?: never;
|
|
59
|
+
__isSuspense?: never;
|
|
60
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./DuiDrawer.vue').DuiDrawerProps> & Readonly<{
|
|
61
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
62
|
+
onOpen?: (() => any) | undefined;
|
|
63
|
+
onClose?: ((source: "button" | "backdrop" | "escape") => any) | undefined;
|
|
64
|
+
onBackdrop?: (() => any) | undefined;
|
|
65
|
+
onEscape?: (() => any) | undefined;
|
|
66
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
67
|
+
"update:modelValue": (value: boolean) => any;
|
|
68
|
+
open: () => any;
|
|
69
|
+
close: (source: "button" | "backdrop" | "escape") => any;
|
|
70
|
+
backdrop: () => any;
|
|
71
|
+
escape: () => any;
|
|
72
|
+
}, string, {
|
|
73
|
+
name: string;
|
|
74
|
+
variant: "solid" | "outline" | "ghost";
|
|
75
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
76
|
+
size: "sm" | "md" | "lg" | "xl";
|
|
77
|
+
modelValue: boolean;
|
|
78
|
+
showClose: boolean;
|
|
79
|
+
closeOnBackdrop: boolean;
|
|
80
|
+
closeOnEsc: boolean;
|
|
81
|
+
persistent: boolean;
|
|
82
|
+
blurBackdrop: boolean;
|
|
83
|
+
zIndex: number;
|
|
84
|
+
position: "left" | "right" | "top" | "bottom";
|
|
85
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
86
|
+
$slots: {
|
|
87
|
+
header?(_: {}): any;
|
|
88
|
+
default?(_: {}): any;
|
|
89
|
+
actions?(_: {}): any;
|
|
90
|
+
};
|
|
91
|
+
});
|
|
92
|
+
tags: string[];
|
|
93
|
+
argTypes: {
|
|
94
|
+
modelValue: {
|
|
95
|
+
control: {
|
|
96
|
+
type: "boolean";
|
|
97
|
+
};
|
|
98
|
+
defaultValue: boolean;
|
|
99
|
+
};
|
|
100
|
+
name: {
|
|
101
|
+
control: {
|
|
102
|
+
type: "text";
|
|
103
|
+
};
|
|
104
|
+
defaultValue: string;
|
|
105
|
+
};
|
|
106
|
+
position: {
|
|
107
|
+
control: {
|
|
108
|
+
type: "select";
|
|
109
|
+
};
|
|
110
|
+
options: string[];
|
|
111
|
+
defaultValue: string;
|
|
112
|
+
};
|
|
113
|
+
size: {
|
|
114
|
+
control: {
|
|
115
|
+
type: "select";
|
|
116
|
+
};
|
|
117
|
+
options: string[];
|
|
118
|
+
defaultValue: string;
|
|
119
|
+
};
|
|
120
|
+
variant: {
|
|
121
|
+
control: {
|
|
122
|
+
type: "select";
|
|
123
|
+
};
|
|
124
|
+
options: string[];
|
|
125
|
+
defaultValue: string;
|
|
126
|
+
};
|
|
127
|
+
color: {
|
|
128
|
+
control: {
|
|
129
|
+
type: "select";
|
|
130
|
+
};
|
|
131
|
+
options: string[];
|
|
132
|
+
defaultValue: string;
|
|
133
|
+
};
|
|
134
|
+
showClose: {
|
|
135
|
+
control: {
|
|
136
|
+
type: "boolean";
|
|
137
|
+
};
|
|
138
|
+
defaultValue: boolean;
|
|
139
|
+
};
|
|
140
|
+
closeOnBackdrop: {
|
|
141
|
+
control: {
|
|
142
|
+
type: "boolean";
|
|
143
|
+
};
|
|
144
|
+
defaultValue: boolean;
|
|
145
|
+
};
|
|
146
|
+
closeOnEsc: {
|
|
147
|
+
control: {
|
|
148
|
+
type: "boolean";
|
|
149
|
+
};
|
|
150
|
+
defaultValue: boolean;
|
|
151
|
+
};
|
|
152
|
+
persistent: {
|
|
153
|
+
control: {
|
|
154
|
+
type: "boolean";
|
|
155
|
+
};
|
|
156
|
+
defaultValue: boolean;
|
|
157
|
+
};
|
|
158
|
+
blurBackdrop: {
|
|
159
|
+
control: {
|
|
160
|
+
type: "boolean";
|
|
161
|
+
};
|
|
162
|
+
defaultValue: boolean;
|
|
163
|
+
};
|
|
164
|
+
zIndex: {
|
|
165
|
+
control: {
|
|
166
|
+
type: "number";
|
|
167
|
+
};
|
|
168
|
+
defaultValue: number;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
export default meta;
|
|
173
|
+
type Story = StoryObj<typeof meta>;
|
|
174
|
+
export declare const Default: Story;
|
|
175
|
+
export declare const Positions: Story;
|
|
176
|
+
export declare const Sizes: Story;
|
|
177
|
+
export declare const Persistent: Story;
|
|
178
|
+
export declare const EscapeClose: Story;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export interface DuiDrawerProps {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
name?: string;
|
|
4
|
+
position?: 'left' | 'right' | 'top' | 'bottom';
|
|
5
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
variant?: 'solid' | 'outline' | 'ghost';
|
|
7
|
+
color?: 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
8
|
+
showClose?: boolean;
|
|
9
|
+
closeOnBackdrop?: boolean;
|
|
10
|
+
closeOnEsc?: boolean;
|
|
11
|
+
persistent?: boolean;
|
|
12
|
+
blurBackdrop?: boolean;
|
|
13
|
+
zIndex?: number;
|
|
14
|
+
}
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
slots: {
|
|
18
|
+
header?(_: {}): any;
|
|
19
|
+
default?(_: {}): any;
|
|
20
|
+
actions?(_: {}): any;
|
|
21
|
+
};
|
|
22
|
+
refs: {};
|
|
23
|
+
rootEl: any;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<DuiDrawerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
27
|
+
"update:modelValue": (value: boolean) => any;
|
|
28
|
+
open: () => any;
|
|
29
|
+
close: (source: "button" | "backdrop" | "escape") => any;
|
|
30
|
+
backdrop: () => any;
|
|
31
|
+
escape: () => any;
|
|
32
|
+
}, string, import('vue').PublicProps, Readonly<DuiDrawerProps> & Readonly<{
|
|
33
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
34
|
+
onOpen?: (() => any) | undefined;
|
|
35
|
+
onClose?: ((source: "button" | "backdrop" | "escape") => any) | undefined;
|
|
36
|
+
onBackdrop?: (() => any) | undefined;
|
|
37
|
+
onEscape?: (() => any) | undefined;
|
|
38
|
+
}>, {
|
|
39
|
+
name: string;
|
|
40
|
+
variant: "solid" | "outline" | "ghost";
|
|
41
|
+
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
42
|
+
size: "sm" | "md" | "lg" | "xl";
|
|
43
|
+
modelValue: boolean;
|
|
44
|
+
showClose: boolean;
|
|
45
|
+
closeOnBackdrop: boolean;
|
|
46
|
+
closeOnEsc: boolean;
|
|
47
|
+
persistent: boolean;
|
|
48
|
+
blurBackdrop: boolean;
|
|
49
|
+
zIndex: number;
|
|
50
|
+
position: "left" | "right" | "top" | "bottom";
|
|
51
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
52
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|