@dronico/droni-kit 1.12.1 → 1.12.2
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 +7 -0
- package/dist/droni-kit.cjs.js +9 -9
- package/dist/droni-kit.es.js +380 -391
- package/dist/stories/Elements/DuiAction.stories.d.ts +6 -6
- package/dist/stories/Elements/DuiAction.vue.d.ts +2 -2
- package/dist/stories/Elements/DuiCard.stories.d.ts +3 -3
- package/dist/stories/Elements/DuiCard.vue.d.ts +1 -1
- package/dist/stories/Forms/DuiButton.stories.d.ts +6 -6
- package/dist/stories/Forms/DuiButton.vue.d.ts +2 -2
- package/dist/utils/router-detection.d.ts +23 -0
- package/package.json +1 -1
|
@@ -3,14 +3,14 @@ declare const meta: {
|
|
|
3
3
|
title: string;
|
|
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
|
+
to: import('../Forms/DuiButton.vue').RouteTo;
|
|
7
|
+
size: "sm" | "md" | "lg";
|
|
6
8
|
variant: "solid" | "outline" | "ghost";
|
|
7
9
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
8
|
-
size: "sm" | "md" | "lg";
|
|
9
10
|
loading: boolean;
|
|
10
11
|
block: boolean;
|
|
11
12
|
title: string;
|
|
12
13
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
13
|
-
to: import('../Forms/DuiButton.vue').RouteTo;
|
|
14
14
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
15
15
|
P: {};
|
|
16
16
|
B: {};
|
|
@@ -19,27 +19,27 @@ declare const meta: {
|
|
|
19
19
|
M: {};
|
|
20
20
|
Defaults: {};
|
|
21
21
|
}, Readonly<import('./DuiAction.vue').DuiActionProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
22
|
+
to: import('../Forms/DuiButton.vue').RouteTo;
|
|
23
|
+
size: "sm" | "md" | "lg";
|
|
22
24
|
variant: "solid" | "outline" | "ghost";
|
|
23
25
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
24
|
-
size: "sm" | "md" | "lg";
|
|
25
26
|
loading: boolean;
|
|
26
27
|
block: boolean;
|
|
27
28
|
title: string;
|
|
28
29
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
29
|
-
to: import('../Forms/DuiButton.vue').RouteTo;
|
|
30
30
|
}>;
|
|
31
31
|
__isFragment?: never;
|
|
32
32
|
__isTeleport?: never;
|
|
33
33
|
__isSuspense?: never;
|
|
34
34
|
} & import('vue').ComponentOptionsBase<Readonly<import('./DuiAction.vue').DuiActionProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
35
|
+
to: import('../Forms/DuiButton.vue').RouteTo;
|
|
36
|
+
size: "sm" | "md" | "lg";
|
|
35
37
|
variant: "solid" | "outline" | "ghost";
|
|
36
38
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
37
|
-
size: "sm" | "md" | "lg";
|
|
38
39
|
loading: boolean;
|
|
39
40
|
block: boolean;
|
|
40
41
|
title: string;
|
|
41
42
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
42
|
-
to: import('../Forms/DuiButton.vue').RouteTo;
|
|
43
43
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
44
44
|
$slots: {
|
|
45
45
|
default?(_: {}): any;
|
|
@@ -19,14 +19,14 @@ declare function __VLS_template(): {
|
|
|
19
19
|
};
|
|
20
20
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
21
|
declare const __VLS_component: import('vue').DefineComponent<DuiActionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DuiActionProps> & Readonly<{}>, {
|
|
22
|
+
to: RouteTo;
|
|
23
|
+
size: "sm" | "md" | "lg";
|
|
22
24
|
variant: "solid" | "outline" | "ghost";
|
|
23
25
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
24
|
-
size: "sm" | "md" | "lg";
|
|
25
26
|
loading: boolean;
|
|
26
27
|
block: boolean;
|
|
27
28
|
title: string;
|
|
28
29
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
29
|
-
to: RouteTo;
|
|
30
30
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
32
|
export default _default;
|
|
@@ -3,9 +3,9 @@ declare const meta: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
component: {
|
|
5
5
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./DuiCard.vue').DuiCardProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
6
|
+
to: string | object;
|
|
6
7
|
size: "s" | "m" | "l";
|
|
7
8
|
title: string;
|
|
8
|
-
to: string | object;
|
|
9
9
|
image: string;
|
|
10
10
|
subtitle: string;
|
|
11
11
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -16,9 +16,9 @@ declare const meta: {
|
|
|
16
16
|
M: {};
|
|
17
17
|
Defaults: {};
|
|
18
18
|
}, Readonly<import('./DuiCard.vue').DuiCardProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
19
|
+
to: string | object;
|
|
19
20
|
size: "s" | "m" | "l";
|
|
20
21
|
title: string;
|
|
21
|
-
to: string | object;
|
|
22
22
|
image: string;
|
|
23
23
|
subtitle: string;
|
|
24
24
|
}>;
|
|
@@ -26,9 +26,9 @@ declare const meta: {
|
|
|
26
26
|
__isTeleport?: never;
|
|
27
27
|
__isSuspense?: never;
|
|
28
28
|
} & import('vue').ComponentOptionsBase<Readonly<import('./DuiCard.vue').DuiCardProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
29
|
+
to: string | object;
|
|
29
30
|
size: "s" | "m" | "l";
|
|
30
31
|
title: string;
|
|
31
|
-
to: string | object;
|
|
32
32
|
image: string;
|
|
33
33
|
subtitle: string;
|
|
34
34
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
@@ -16,9 +16,9 @@ declare function __VLS_template(): {
|
|
|
16
16
|
};
|
|
17
17
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
18
|
declare const __VLS_component: import('vue').DefineComponent<DuiCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DuiCardProps> & Readonly<{}>, {
|
|
19
|
+
to: string | object;
|
|
19
20
|
size: "s" | "m" | "l";
|
|
20
21
|
title: string;
|
|
21
|
-
to: string | object;
|
|
22
22
|
image: string;
|
|
23
23
|
subtitle: string;
|
|
24
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -3,16 +3,16 @@ declare const meta: {
|
|
|
3
3
|
title: string;
|
|
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
|
+
to: import('./DuiButton.vue').RouteTo;
|
|
7
|
+
size: "sm" | "md" | "lg";
|
|
6
8
|
variant: "solid" | "outline" | "ghost";
|
|
7
9
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
8
|
-
size: "sm" | "md" | "lg";
|
|
9
10
|
type: "button" | "submit" | "reset";
|
|
10
11
|
disabled: boolean;
|
|
11
12
|
loading: boolean;
|
|
12
13
|
block: boolean;
|
|
13
14
|
title: string;
|
|
14
15
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
15
|
-
to: import('./DuiButton.vue').RouteTo;
|
|
16
16
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
17
17
|
P: {};
|
|
18
18
|
B: {};
|
|
@@ -21,31 +21,31 @@ declare const meta: {
|
|
|
21
21
|
M: {};
|
|
22
22
|
Defaults: {};
|
|
23
23
|
}, Readonly<import('./DuiButton.vue').DuiButtonProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
24
|
+
to: import('./DuiButton.vue').RouteTo;
|
|
25
|
+
size: "sm" | "md" | "lg";
|
|
24
26
|
variant: "solid" | "outline" | "ghost";
|
|
25
27
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
26
|
-
size: "sm" | "md" | "lg";
|
|
27
28
|
type: "button" | "submit" | "reset";
|
|
28
29
|
disabled: boolean;
|
|
29
30
|
loading: boolean;
|
|
30
31
|
block: boolean;
|
|
31
32
|
title: string;
|
|
32
33
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
33
|
-
to: import('./DuiButton.vue').RouteTo;
|
|
34
34
|
}>;
|
|
35
35
|
__isFragment?: never;
|
|
36
36
|
__isTeleport?: never;
|
|
37
37
|
__isSuspense?: never;
|
|
38
38
|
} & import('vue').ComponentOptionsBase<Readonly<import('./DuiButton.vue').DuiButtonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
39
|
+
to: import('./DuiButton.vue').RouteTo;
|
|
40
|
+
size: "sm" | "md" | "lg";
|
|
39
41
|
variant: "solid" | "outline" | "ghost";
|
|
40
42
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
41
|
-
size: "sm" | "md" | "lg";
|
|
42
43
|
type: "button" | "submit" | "reset";
|
|
43
44
|
disabled: boolean;
|
|
44
45
|
loading: boolean;
|
|
45
46
|
block: boolean;
|
|
46
47
|
title: string;
|
|
47
48
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
48
|
-
to: import('./DuiButton.vue').RouteTo;
|
|
49
49
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
50
50
|
$slots: {
|
|
51
51
|
default?(_: {}): any;
|
|
@@ -29,16 +29,16 @@ declare function __VLS_template(): {
|
|
|
29
29
|
};
|
|
30
30
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
31
31
|
declare const __VLS_component: import('vue').DefineComponent<DuiButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DuiButtonProps> & Readonly<{}>, {
|
|
32
|
+
to: RouteTo;
|
|
33
|
+
size: "sm" | "md" | "lg";
|
|
32
34
|
variant: "solid" | "outline" | "ghost";
|
|
33
35
|
color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
34
|
-
size: "sm" | "md" | "lg";
|
|
35
36
|
type: "button" | "submit" | "reset";
|
|
36
37
|
disabled: boolean;
|
|
37
38
|
loading: boolean;
|
|
38
39
|
block: boolean;
|
|
39
40
|
title: string;
|
|
40
41
|
rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
|
|
41
|
-
to: RouteTo;
|
|
42
42
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
43
43
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
44
|
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility for detecting router environment in a SSR-safe way
|
|
3
|
+
* This helps prevent hydration mismatches in Nuxt applications
|
|
4
|
+
*/
|
|
5
|
+
interface RouterDetection {
|
|
6
|
+
hasNuxtRouter: boolean;
|
|
7
|
+
hasVueRouter: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Detects if we're in a Nuxt environment using SSR-safe methods
|
|
11
|
+
* This function ensures consistent behavior between server and client
|
|
12
|
+
*/
|
|
13
|
+
export declare function detectRouterEnvironment(): RouterDetection;
|
|
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;
|
|
19
|
+
/**
|
|
20
|
+
* Gets the appropriate props for the router component
|
|
21
|
+
*/
|
|
22
|
+
export declare function getRouterComponentProps(to: string | object | undefined, componentType: string, additionalProps?: Record<string, any>): Record<string, any>;
|
|
23
|
+
export {};
|