@dronico/droni-kit 1.12.2 → 1.12.4
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.es.js +308 -333
- package/dist/stories/Elements/DuiAction.stories.d.ts +6 -3
- package/dist/stories/Elements/DuiAction.vue.d.ts +3 -1
- package/dist/stories/Elements/DuiCard.stories.d.ts +3 -0
- package/dist/stories/Elements/DuiCard.vue.d.ts +2 -0
- package/dist/stories/Forms/DuiButton.stories.d.ts +6 -3
- package/dist/stories/Forms/DuiButton.vue.d.ts +3 -1
- package/dist/stories/Widgets/DuiNavbar.stories.d.ts +3 -0
- package/dist/stories/Widgets/DuiNavbar.vue.d.ts +2 -0
- package/dist/utils/router-detection.d.ts +9 -15
- package/package.json +1 -1
|
@@ -4,13 +4,14 @@ declare const meta: {
|
|
|
4
4
|
component: {
|
|
5
5
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./DuiAction.vue').DuiActionProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
6
6
|
to: import('../Forms/DuiButton.vue').RouteTo;
|
|
7
|
-
size: "sm" | "md" | "lg";
|
|
8
7
|
variant: "solid" | "outline" | "ghost";
|
|
9
8
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
9
|
+
size: "sm" | "md" | "lg";
|
|
10
10
|
loading: boolean;
|
|
11
11
|
block: boolean;
|
|
12
12
|
title: string;
|
|
13
13
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
14
|
+
nuxt: boolean;
|
|
14
15
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
15
16
|
P: {};
|
|
16
17
|
B: {};
|
|
@@ -20,26 +21,28 @@ declare const meta: {
|
|
|
20
21
|
Defaults: {};
|
|
21
22
|
}, Readonly<import('./DuiAction.vue').DuiActionProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
22
23
|
to: import('../Forms/DuiButton.vue').RouteTo;
|
|
23
|
-
size: "sm" | "md" | "lg";
|
|
24
24
|
variant: "solid" | "outline" | "ghost";
|
|
25
25
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
26
|
+
size: "sm" | "md" | "lg";
|
|
26
27
|
loading: boolean;
|
|
27
28
|
block: boolean;
|
|
28
29
|
title: string;
|
|
29
30
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
31
|
+
nuxt: boolean;
|
|
30
32
|
}>;
|
|
31
33
|
__isFragment?: never;
|
|
32
34
|
__isTeleport?: never;
|
|
33
35
|
__isSuspense?: never;
|
|
34
36
|
} & import('vue').ComponentOptionsBase<Readonly<import('./DuiAction.vue').DuiActionProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
35
37
|
to: import('../Forms/DuiButton.vue').RouteTo;
|
|
36
|
-
size: "sm" | "md" | "lg";
|
|
37
38
|
variant: "solid" | "outline" | "ghost";
|
|
38
39
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
40
|
+
size: "sm" | "md" | "lg";
|
|
39
41
|
loading: boolean;
|
|
40
42
|
block: boolean;
|
|
41
43
|
title: string;
|
|
42
44
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
45
|
+
nuxt: boolean;
|
|
43
46
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
44
47
|
$slots: {
|
|
45
48
|
default?(_: {}): any;
|
|
@@ -8,6 +8,7 @@ export interface DuiActionProps {
|
|
|
8
8
|
title?: string;
|
|
9
9
|
rounded?: 'all' | 'top' | 'bottom' | 'left' | 'right' | 'none';
|
|
10
10
|
to?: RouteTo;
|
|
11
|
+
nuxt?: boolean;
|
|
11
12
|
}
|
|
12
13
|
declare function __VLS_template(): {
|
|
13
14
|
attrs: Partial<{}>;
|
|
@@ -20,13 +21,14 @@ declare function __VLS_template(): {
|
|
|
20
21
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
22
|
declare const __VLS_component: import('vue').DefineComponent<DuiActionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DuiActionProps> & Readonly<{}>, {
|
|
22
23
|
to: RouteTo;
|
|
23
|
-
size: "sm" | "md" | "lg";
|
|
24
24
|
variant: "solid" | "outline" | "ghost";
|
|
25
25
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
26
|
+
size: "sm" | "md" | "lg";
|
|
26
27
|
loading: boolean;
|
|
27
28
|
block: boolean;
|
|
28
29
|
title: string;
|
|
29
30
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
31
|
+
nuxt: boolean;
|
|
30
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
33
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
34
|
export default _default;
|
|
@@ -6,6 +6,7 @@ declare const meta: {
|
|
|
6
6
|
to: string | object;
|
|
7
7
|
size: "s" | "m" | "l";
|
|
8
8
|
title: string;
|
|
9
|
+
nuxt: boolean;
|
|
9
10
|
image: string;
|
|
10
11
|
subtitle: string;
|
|
11
12
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -19,6 +20,7 @@ declare const meta: {
|
|
|
19
20
|
to: string | object;
|
|
20
21
|
size: "s" | "m" | "l";
|
|
21
22
|
title: string;
|
|
23
|
+
nuxt: boolean;
|
|
22
24
|
image: string;
|
|
23
25
|
subtitle: string;
|
|
24
26
|
}>;
|
|
@@ -29,6 +31,7 @@ declare const meta: {
|
|
|
29
31
|
to: string | object;
|
|
30
32
|
size: "s" | "m" | "l";
|
|
31
33
|
title: string;
|
|
34
|
+
nuxt: boolean;
|
|
32
35
|
image: string;
|
|
33
36
|
subtitle: string;
|
|
34
37
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
@@ -4,6 +4,7 @@ export interface DuiCardProps {
|
|
|
4
4
|
title?: string;
|
|
5
5
|
subtitle?: string;
|
|
6
6
|
to?: string | object;
|
|
7
|
+
nuxt?: boolean;
|
|
7
8
|
}
|
|
8
9
|
declare function __VLS_template(): {
|
|
9
10
|
attrs: Partial<{}>;
|
|
@@ -19,6 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<DuiCardProps, {}, {
|
|
|
19
20
|
to: string | object;
|
|
20
21
|
size: "s" | "m" | "l";
|
|
21
22
|
title: string;
|
|
23
|
+
nuxt: boolean;
|
|
22
24
|
image: string;
|
|
23
25
|
subtitle: string;
|
|
24
26
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -4,15 +4,16 @@ declare const meta: {
|
|
|
4
4
|
component: {
|
|
5
5
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./DuiButton.vue').DuiButtonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
6
6
|
to: import('./DuiButton.vue').RouteTo;
|
|
7
|
-
size: "sm" | "md" | "lg";
|
|
8
7
|
variant: "solid" | "outline" | "ghost";
|
|
9
8
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
9
|
+
size: "sm" | "md" | "lg";
|
|
10
10
|
type: "button" | "submit" | "reset";
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
loading: boolean;
|
|
13
13
|
block: boolean;
|
|
14
14
|
title: string;
|
|
15
15
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
16
|
+
nuxt: boolean;
|
|
16
17
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
17
18
|
P: {};
|
|
18
19
|
B: {};
|
|
@@ -22,30 +23,32 @@ declare const meta: {
|
|
|
22
23
|
Defaults: {};
|
|
23
24
|
}, Readonly<import('./DuiButton.vue').DuiButtonProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
24
25
|
to: import('./DuiButton.vue').RouteTo;
|
|
25
|
-
size: "sm" | "md" | "lg";
|
|
26
26
|
variant: "solid" | "outline" | "ghost";
|
|
27
27
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
28
|
+
size: "sm" | "md" | "lg";
|
|
28
29
|
type: "button" | "submit" | "reset";
|
|
29
30
|
disabled: boolean;
|
|
30
31
|
loading: boolean;
|
|
31
32
|
block: boolean;
|
|
32
33
|
title: string;
|
|
33
34
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
35
|
+
nuxt: boolean;
|
|
34
36
|
}>;
|
|
35
37
|
__isFragment?: never;
|
|
36
38
|
__isTeleport?: never;
|
|
37
39
|
__isSuspense?: never;
|
|
38
40
|
} & import('vue').ComponentOptionsBase<Readonly<import('./DuiButton.vue').DuiButtonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
39
41
|
to: import('./DuiButton.vue').RouteTo;
|
|
40
|
-
size: "sm" | "md" | "lg";
|
|
41
42
|
variant: "solid" | "outline" | "ghost";
|
|
42
43
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
44
|
+
size: "sm" | "md" | "lg";
|
|
43
45
|
type: "button" | "submit" | "reset";
|
|
44
46
|
disabled: boolean;
|
|
45
47
|
loading: boolean;
|
|
46
48
|
block: boolean;
|
|
47
49
|
title: string;
|
|
48
50
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
51
|
+
nuxt: boolean;
|
|
49
52
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
50
53
|
$slots: {
|
|
51
54
|
default?(_: {}): any;
|
|
@@ -18,6 +18,7 @@ export interface DuiButtonProps {
|
|
|
18
18
|
title?: string;
|
|
19
19
|
rounded?: 'all' | 'top' | 'bottom' | 'left' | 'right' | 'none';
|
|
20
20
|
to?: RouteTo;
|
|
21
|
+
nuxt?: boolean;
|
|
21
22
|
}
|
|
22
23
|
declare function __VLS_template(): {
|
|
23
24
|
attrs: Partial<{}>;
|
|
@@ -30,15 +31,16 @@ declare function __VLS_template(): {
|
|
|
30
31
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
31
32
|
declare const __VLS_component: import('vue').DefineComponent<DuiButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DuiButtonProps> & Readonly<{}>, {
|
|
32
33
|
to: RouteTo;
|
|
33
|
-
size: "sm" | "md" | "lg";
|
|
34
34
|
variant: "solid" | "outline" | "ghost";
|
|
35
35
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
36
|
+
size: "sm" | "md" | "lg";
|
|
36
37
|
type: "button" | "submit" | "reset";
|
|
37
38
|
disabled: boolean;
|
|
38
39
|
loading: boolean;
|
|
39
40
|
block: boolean;
|
|
40
41
|
title: string;
|
|
41
42
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
43
|
+
nuxt: boolean;
|
|
42
44
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
43
45
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
46
|
export default _default;
|
|
@@ -4,6 +4,7 @@ declare const meta: {
|
|
|
4
4
|
component: {
|
|
5
5
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./DuiNavbar.vue').DuiNavbarProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
6
6
|
size: "s" | "m" | "l";
|
|
7
|
+
nuxt: boolean;
|
|
7
8
|
items: import('./DuiNavbar.vue').NavbarItem[];
|
|
8
9
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLElement, import('vue').ComponentProvideOptions, {
|
|
9
10
|
P: {};
|
|
@@ -14,6 +15,7 @@ declare const meta: {
|
|
|
14
15
|
Defaults: {};
|
|
15
16
|
}, Readonly<import('./DuiNavbar.vue').DuiNavbarProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
16
17
|
size: "s" | "m" | "l";
|
|
18
|
+
nuxt: boolean;
|
|
17
19
|
items: import('./DuiNavbar.vue').NavbarItem[];
|
|
18
20
|
}>;
|
|
19
21
|
__isFragment?: never;
|
|
@@ -21,6 +23,7 @@ declare const meta: {
|
|
|
21
23
|
__isSuspense?: never;
|
|
22
24
|
} & import('vue').ComponentOptionsBase<Readonly<import('./DuiNavbar.vue').DuiNavbarProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
23
25
|
size: "s" | "m" | "l";
|
|
26
|
+
nuxt: boolean;
|
|
24
27
|
items: import('./DuiNavbar.vue').NavbarItem[];
|
|
25
28
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
26
29
|
$slots: {
|
|
@@ -7,6 +7,7 @@ export interface NavbarItem {
|
|
|
7
7
|
export interface DuiNavbarProps {
|
|
8
8
|
items?: NavbarItem[];
|
|
9
9
|
size?: 's' | 'm' | 'l';
|
|
10
|
+
nuxt?: boolean;
|
|
10
11
|
}
|
|
11
12
|
declare function __VLS_template(): {
|
|
12
13
|
attrs: Partial<{}>;
|
|
@@ -21,6 +22,7 @@ declare function __VLS_template(): {
|
|
|
21
22
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
23
|
declare const __VLS_component: import('vue').DefineComponent<DuiNavbarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DuiNavbarProps> & Readonly<{}>, {
|
|
23
24
|
size: "s" | "m" | "l";
|
|
25
|
+
nuxt: boolean;
|
|
24
26
|
items: NavbarItem[];
|
|
25
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
26
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Utility for
|
|
3
|
-
* This helps prevent hydration mismatches in Nuxt applications
|
|
2
|
+
* Utility for router component handling with explicit framework selection
|
|
4
3
|
*/
|
|
5
|
-
interface RouterDetection {
|
|
6
|
-
hasNuxtRouter: boolean;
|
|
7
|
-
hasVueRouter: boolean;
|
|
8
|
-
}
|
|
9
4
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
5
|
+
* Gets the appropriate component type for routing with explicit framework selection
|
|
6
|
+
* @param to - The route destination
|
|
7
|
+
* @param nuxt - Explicitly indicate if this is a Nuxt project
|
|
8
|
+
* @returns The component name as string for dynamic component usage
|
|
12
9
|
*/
|
|
13
|
-
export declare function
|
|
14
|
-
/**
|
|
15
|
-
* Gets the appropriate component type for routing
|
|
16
|
-
* Returns the component name as string for dynamic component usage
|
|
17
|
-
*/
|
|
18
|
-
export declare function getRouterComponentType(to?: string | object): string;
|
|
10
|
+
export declare function getRouterComponentType(to?: string | object, nuxt?: boolean): string;
|
|
19
11
|
/**
|
|
20
12
|
* Gets the appropriate props for the router component
|
|
13
|
+
* @param to - The route destination
|
|
14
|
+
* @param componentType - The component type returned by getRouterComponentType
|
|
15
|
+
* @param additionalProps - Any additional props to merge
|
|
21
16
|
*/
|
|
22
17
|
export declare function getRouterComponentProps(to: string | object | undefined, componentType: string, additionalProps?: Record<string, any>): Record<string, any>;
|
|
23
|
-
export {};
|