@dronico/droni-kit 1.12.0 → 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/dist/index.d.ts CHANGED
@@ -2,9 +2,10 @@ import { default as DuiButton } from './stories/Forms/DuiButton.vue';
2
2
  import { default as DuiInput } from './stories/Forms/DuiInput.vue';
3
3
  import { default as DuiTextarea } from './stories/Forms/DuiTextarea.vue';
4
4
  import { default as DuiSelect } from './stories/Forms/DuiSelect.vue';
5
+ import { default as DuiLabel } from './stories/Forms/DuiLabel.vue';
5
6
  import { default as DuiAlert } from './stories/Elements/DuiAlert.vue';
6
7
  import { default as DuiTable } from './stories/Elements/DuiTable.vue';
7
8
  import { default as DuiAction } from './stories/Elements/DuiAction.vue';
8
9
  import { default as DuiCard } from './stories/Elements/DuiCard.vue';
9
10
  import { default as DuiNavbar } from './stories/Widgets/DuiNavbar.vue';
10
- export { DuiButton, DuiInput, DuiTextarea, DuiAction, DuiCard, DuiSelect, DuiAlert, DuiTable, DuiNavbar };
11
+ export { DuiButton, DuiInput, DuiTextarea, DuiAction, DuiCard, DuiSelect, DuiLabel, DuiAlert, DuiTable, DuiNavbar };
@@ -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;
@@ -30,10 +30,10 @@ declare const meta: {
30
30
  }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
31
31
  size: "s" | "m" | "l";
32
32
  title: string;
33
- required: boolean;
34
33
  icon: string;
35
34
  helpText: string;
36
35
  error: string;
36
+ required: boolean;
37
37
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLLabelElement, import('vue').ComponentProvideOptions, {
38
38
  P: {};
39
39
  B: {};
@@ -69,10 +69,10 @@ declare const meta: {
69
69
  }>> & Readonly<{}>, {}, {}, {}, {}, {
70
70
  size: "s" | "m" | "l";
71
71
  title: string;
72
- required: boolean;
73
72
  icon: string;
74
73
  helpText: string;
75
74
  error: string;
75
+ required: boolean;
76
76
  }>;
77
77
  __isFragment?: never;
78
78
  __isTeleport?: never;
@@ -105,10 +105,10 @@ declare const meta: {
105
105
  }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
106
106
  size: "s" | "m" | "l";
107
107
  title: string;
108
- required: boolean;
109
108
  icon: string;
110
109
  helpText: string;
111
110
  error: string;
111
+ required: boolean;
112
112
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
113
113
  $slots: {
114
114
  default?(_: {}): any;
@@ -60,10 +60,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
60
60
  }>> & Readonly<{}>, {
61
61
  size: "s" | "m" | "l";
62
62
  title: string;
63
- required: boolean;
64
63
  icon: string;
65
64
  helpText: string;
66
65
  error: string;
66
+ required: boolean;
67
67
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLLabelElement>;
68
68
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
69
69
  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 {};
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.0",
4
+ "version": "1.12.2",
5
5
  "private": false,
6
6
  "access": "public",
7
7
  "publishConfig": {