@dronico/droni-kit 1.12.1 → 1.12.3

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.
@@ -3,6 +3,7 @@ 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;
6
7
  variant: "solid" | "outline" | "ghost";
7
8
  color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
8
9
  size: "sm" | "md" | "lg";
@@ -10,7 +11,7 @@ declare const meta: {
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
+ nuxt: boolean;
14
15
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
15
16
  P: {};
16
17
  B: {};
@@ -19,6 +20,7 @@ declare const meta: {
19
20
  M: {};
20
21
  Defaults: {};
21
22
  }, Readonly<import('./DuiAction.vue').DuiActionProps> & Readonly<{}>, {}, {}, {}, {}, {
23
+ to: import('../Forms/DuiButton.vue').RouteTo;
22
24
  variant: "solid" | "outline" | "ghost";
23
25
  color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
24
26
  size: "sm" | "md" | "lg";
@@ -26,12 +28,13 @@ declare const meta: {
26
28
  block: boolean;
27
29
  title: string;
28
30
  rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
29
- to: import('../Forms/DuiButton.vue').RouteTo;
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, {
37
+ to: import('../Forms/DuiButton.vue').RouteTo;
35
38
  variant: "solid" | "outline" | "ghost";
36
39
  color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
37
40
  size: "sm" | "md" | "lg";
@@ -39,7 +42,7 @@ declare const meta: {
39
42
  block: boolean;
40
43
  title: string;
41
44
  rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
42
- to: import('../Forms/DuiButton.vue').RouteTo;
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<{}>;
@@ -19,6 +20,7 @@ declare function __VLS_template(): {
19
20
  };
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<{}>, {
23
+ to: RouteTo;
22
24
  variant: "solid" | "outline" | "ghost";
23
25
  color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
24
26
  size: "sm" | "md" | "lg";
@@ -26,7 +28,7 @@ declare const __VLS_component: import('vue').DefineComponent<DuiActionProps, {},
26
28
  block: boolean;
27
29
  title: string;
28
30
  rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
29
- to: RouteTo;
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;
@@ -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,6 +3,7 @@ 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;
6
7
  variant: "solid" | "outline" | "ghost";
7
8
  color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
8
9
  size: "sm" | "md" | "lg";
@@ -12,7 +13,7 @@ declare const meta: {
12
13
  block: boolean;
13
14
  title: string;
14
15
  rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
15
- to: import('./DuiButton.vue').RouteTo;
16
+ nuxt: boolean;
16
17
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
17
18
  P: {};
18
19
  B: {};
@@ -21,6 +22,7 @@ declare const meta: {
21
22
  M: {};
22
23
  Defaults: {};
23
24
  }, Readonly<import('./DuiButton.vue').DuiButtonProps> & Readonly<{}>, {}, {}, {}, {}, {
25
+ to: import('./DuiButton.vue').RouteTo;
24
26
  variant: "solid" | "outline" | "ghost";
25
27
  color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
26
28
  size: "sm" | "md" | "lg";
@@ -30,12 +32,13 @@ declare const meta: {
30
32
  block: boolean;
31
33
  title: string;
32
34
  rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
33
- to: import('./DuiButton.vue').RouteTo;
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, {
41
+ to: import('./DuiButton.vue').RouteTo;
39
42
  variant: "solid" | "outline" | "ghost";
40
43
  color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
41
44
  size: "sm" | "md" | "lg";
@@ -45,7 +48,7 @@ declare const meta: {
45
48
  block: boolean;
46
49
  title: string;
47
50
  rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
48
- to: import('./DuiButton.vue').RouteTo;
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<{}>;
@@ -29,6 +30,7 @@ declare function __VLS_template(): {
29
30
  };
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<{}>, {
33
+ to: RouteTo;
32
34
  variant: "solid" | "outline" | "ghost";
33
35
  color: "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
34
36
  size: "sm" | "md" | "lg";
@@ -38,7 +40,7 @@ declare const __VLS_component: import('vue').DefineComponent<DuiButtonProps, {},
38
40
  block: boolean;
39
41
  title: string;
40
42
  rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
41
- to: RouteTo;
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"]>;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Utility for router component handling with explicit framework selection
3
+ */
4
+ /**
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
9
+ */
10
+ export declare function getRouterComponentType(to?: string | object, nuxt?: boolean): string;
11
+ /**
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
16
+ */
17
+ export declare function getRouterComponentProps(to: string | object | undefined, componentType: string, additionalProps?: Record<string, any>): Record<string, any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dronico/droni-kit",
3
3
  "author": "Gustavo Barragan <dev@droni.co>",
4
- "version": "1.12.1",
4
+ "version": "1.12.3",
5
5
  "private": false,
6
6
  "access": "public",
7
7
  "publishConfig": {