@volverjs/ui-vue 0.0.9 → 0.0.10-beta.10

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.
Files changed (184) hide show
  1. package/README.md +64 -1
  2. package/auto-imports.d.ts +1 -1
  3. package/bin/icons.cjs +1 -1
  4. package/bin/icons.js +34 -19
  5. package/dist/components/VvAccordion/VvAccordion.es.js +33 -4
  6. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  7. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +4 -4
  8. package/dist/components/VvAccordion/index.d.ts +1 -1
  9. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +75 -27
  10. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  11. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +5 -5
  12. package/dist/components/VvAction/VvAction.es.js +26 -4
  13. package/dist/components/VvAction/VvAction.umd.js +1 -1
  14. package/dist/components/VvAction/VvAction.vue.d.ts +17 -4
  15. package/dist/components/VvAction/index.d.ts +5 -0
  16. package/dist/components/VvAlert/VvAlert.es.js +96 -45
  17. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  18. package/dist/components/VvAlert/VvAlert.vue.d.ts +4 -4
  19. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +136 -66
  20. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  21. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +4 -4
  22. package/dist/components/VvAvatar/VvAvatar.es.js +22 -1
  23. package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
  24. package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +79 -28
  25. package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
  26. package/dist/components/VvBadge/VvBadge.es.js +39 -8
  27. package/dist/components/VvBadge/VvBadge.umd.js +1 -1
  28. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +224 -41
  29. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  30. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +14 -3
  31. package/dist/components/VvBreadcrumb/index.d.ts +2 -9
  32. package/dist/components/VvButton/VvButton.es.js +70 -25
  33. package/dist/components/VvButton/VvButton.umd.js +1 -1
  34. package/dist/components/VvButton/VvButton.vue.d.ts +25 -9
  35. package/dist/components/VvButton/index.d.ts +5 -0
  36. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +33 -6
  37. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  38. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +6 -6
  39. package/dist/components/VvCard/VvCard.es.js +47 -16
  40. package/dist/components/VvCard/VvCard.umd.js +1 -1
  41. package/dist/components/VvCheckbox/VvCheckbox.es.js +35 -7
  42. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  43. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +8 -8
  44. package/dist/components/VvCheckbox/index.d.ts +1 -1
  45. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +106 -51
  46. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  47. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +7 -7
  48. package/dist/components/VvCheckboxGroup/index.d.ts +1 -1
  49. package/dist/components/VvCombobox/VvCombobox.es.js +635 -400
  50. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  51. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +112 -112
  52. package/dist/components/VvCombobox/index.d.ts +32 -32
  53. package/dist/components/VvDialog/VvDialog.es.js +65 -27
  54. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  55. package/dist/components/VvDialog/VvDialog.vue.d.ts +4 -4
  56. package/dist/components/VvDropdown/VvDropdown.es.js +87 -46
  57. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  58. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +203 -189
  59. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +12 -0
  60. package/dist/components/VvDropdown/index.d.ts +32 -32
  61. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +46 -12
  62. package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
  63. package/dist/components/VvDropdownItem/VvDropdownItem.es.js +13 -7
  64. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +28 -1
  65. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
  66. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +40 -8
  67. package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
  68. package/dist/components/VvIcon/VvIcon.es.js +1 -1
  69. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  70. package/dist/components/VvInputText/VvInputClearAction.d.ts +1 -1
  71. package/dist/components/VvInputText/VvInputText.es.js +149 -99
  72. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  73. package/dist/components/VvInputText/VvInputText.vue.d.ts +10 -10
  74. package/dist/components/VvInputText/index.d.ts +8 -2
  75. package/dist/components/VvNav/VvNav.es.js +115 -63
  76. package/dist/components/VvNav/VvNav.umd.js +1 -1
  77. package/dist/components/VvNav/VvNav.vue.d.ts +31 -12
  78. package/dist/components/VvNav/VvNavItem.vue.d.ts +9 -0
  79. package/dist/components/VvNav/index.d.ts +1 -12
  80. package/dist/components/VvNavItem/VvNavItem.es.js +413 -0
  81. package/dist/components/VvNavItem/VvNavItem.umd.js +1 -0
  82. package/dist/components/VvNavSeparator/VvNavSeparator.es.js +24 -0
  83. package/dist/components/VvNavSeparator/VvNavSeparator.umd.js +1 -0
  84. package/dist/components/VvProgress/VvProgress.es.js +33 -6
  85. package/dist/components/VvProgress/VvProgress.umd.js +1 -1
  86. package/dist/components/VvRadio/VvRadio.es.js +35 -7
  87. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  88. package/dist/components/VvRadio/VvRadio.vue.d.ts +8 -8
  89. package/dist/components/VvRadio/index.d.ts +1 -1
  90. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +106 -51
  91. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  92. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +7 -7
  93. package/dist/components/VvRadioGroup/index.d.ts +1 -1
  94. package/dist/components/VvSelect/VvSelect.es.js +159 -99
  95. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  96. package/dist/components/VvSelect/VvSelect.vue.d.ts +13 -13
  97. package/dist/components/VvSelect/index.d.ts +1 -1
  98. package/dist/components/VvTab/VvTab.es.js +214 -99
  99. package/dist/components/VvTab/VvTab.umd.js +1 -1
  100. package/dist/components/VvTab/VvTab.vue.d.ts +40 -11
  101. package/dist/components/VvTab/index.d.ts +9 -3
  102. package/dist/components/VvTextarea/VvTextarea.es.js +123 -77
  103. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  104. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +10 -10
  105. package/dist/components/VvTooltip/VvTooltip.es.js +40 -9
  106. package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
  107. package/dist/components/index.es.js +1593 -1012
  108. package/dist/components/index.umd.js +1 -1
  109. package/dist/composables/group/useInjectedGroupState.d.ts +1 -1
  110. package/dist/composables/useOptions.d.ts +1 -1
  111. package/dist/composables/useVolver.d.ts +1 -1
  112. package/dist/directives/index.d.ts +3 -5
  113. package/dist/directives/index.es.js +60 -23
  114. package/dist/directives/index.umd.js +1 -1
  115. package/dist/directives/v-tooltip.es.js +58 -18
  116. package/dist/directives/v-tooltip.umd.js +1 -1
  117. package/dist/icons.es.js +3 -3
  118. package/dist/icons.umd.js +1 -1
  119. package/dist/index.d.ts +3 -1
  120. package/dist/index.es.js +19 -16
  121. package/dist/index.umd.js +1 -1
  122. package/dist/props/index.d.ts +58 -34
  123. package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +50 -15
  124. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +332 -83
  125. package/dist/stories/Combobox/Combobox.settings.d.ts +8 -0
  126. package/dist/stories/Combobox/ComboboxOptions.stories.d.ts +1 -0
  127. package/dist/stories/InputText/InputTextMask.stories.d.ts +1 -1
  128. package/dist/stories/Tab/Tab.settings.d.ts +4 -37
  129. package/dist/types/alert.d.ts +13 -0
  130. package/dist/types/floating-ui.d.ts +6 -0
  131. package/dist/types/generic.d.ts +4 -0
  132. package/dist/types/group.d.ts +37 -0
  133. package/dist/types/index.d.ts +5 -0
  134. package/dist/types/nav.d.ts +17 -0
  135. package/package.json +61 -52
  136. package/src/Volver.ts +22 -16
  137. package/src/assets/icons/detailed.json +1 -1
  138. package/src/assets/icons/normal.json +1 -1
  139. package/src/assets/icons/simple.json +1 -1
  140. package/src/components/VvAccordion/VvAccordion.vue +2 -2
  141. package/src/components/VvAction/VvAction.vue +5 -2
  142. package/src/components/VvBreadcrumb/VvBreadcrumb.vue +20 -19
  143. package/src/components/VvBreadcrumb/index.ts +2 -8
  144. package/src/components/VvCombobox/VvCombobox.vue +32 -33
  145. package/src/components/VvCombobox/index.ts +4 -0
  146. package/src/components/VvInputText/VvInputText.vue +2 -2
  147. package/src/components/VvNav/VvNav.vue +30 -50
  148. package/src/components/VvNav/VvNavItem.vue +18 -0
  149. package/src/components/VvNav/VvNavSeparator.vue +11 -0
  150. package/src/components/VvNav/index.ts +2 -15
  151. package/src/components/VvSelect/VvSelect.vue +4 -4
  152. package/src/components/VvTab/VvTab.vue +63 -35
  153. package/src/components/VvTab/index.ts +10 -4
  154. package/src/components/VvTextarea/VvTextarea.vue +1 -1
  155. package/src/composables/useOptions.ts +2 -2
  156. package/src/composables/useUniqueId.ts +2 -2
  157. package/src/directives/index.ts +1 -4
  158. package/src/directives/v-tooltip.ts +19 -10
  159. package/src/index.ts +3 -1
  160. package/src/props/index.ts +27 -3
  161. package/src/stories/Button/ButtonModifiers.stories.ts +4 -14
  162. package/src/stories/Combobox/Combobox.settings.ts +8 -0
  163. package/src/stories/Combobox/ComboboxOptions.stories.ts +18 -0
  164. package/src/stories/InputText/InputTextMask.stories.ts +1 -1
  165. package/src/stories/Nav/Nav.settings.ts +3 -4
  166. package/src/stories/Nav/Nav.test.ts +4 -15
  167. package/src/stories/Tab/Tab.settings.ts +9 -9
  168. package/src/stories/Tab/Tab.stories.ts +2 -2
  169. package/src/stories/Tab/Tab.test.ts +6 -14
  170. package/src/stories/argTypes.ts +1 -1
  171. package/src/types/generic.ts +6 -0
  172. package/src/types/index.ts +5 -0
  173. package/src/types/nav.ts +19 -0
  174. package/src/utils/ObjectUtilities.ts +3 -2
  175. package/dist/components/VvNav/VvNavItemTitle.vue.d.ts +0 -6
  176. package/dist/components/VvNavItemTitle/VvNavItemTitle.es.js +0 -19
  177. package/dist/components/VvNavItemTitle/VvNavItemTitle.umd.js +0 -1
  178. package/src/components/VvNav/VvNavItemTitle.vue +0 -11
  179. package/src/components/VvNav/VvNavSeparator.ts +0 -8
  180. package/src/types/generic.d.ts +0 -6
  181. /package/dist/components/VvNav/{VvNavSeparator.d.ts → VvNavSeparator.vue.d.ts} +0 -0
  182. /package/src/types/{alert.d.ts → alert.ts} +0 -0
  183. /package/src/types/{floating-ui.d.ts → floating-ui.ts} +0 -0
  184. /package/src/types/{group.d.ts → group.ts} +0 -0
@@ -332,6 +332,14 @@ export declare const argTypes: {
332
332
  };
333
333
  };
334
334
  };
335
+ 'update:search': {
336
+ table: {
337
+ category: string;
338
+ type: {
339
+ summary: string;
340
+ };
341
+ };
342
+ };
335
343
  placement: {
336
344
  description: string;
337
345
  options: (import("../../constants").Side | import("../../constants").Placement)[];
@@ -8,3 +8,4 @@ export declare const OptionLabelKey: Story;
8
8
  export declare const OptionValueKey: Story;
9
9
  export declare const GroupedOptions: Story;
10
10
  export declare const DotPathOptions: Story;
11
+ export declare const ObjectValue: Story;
@@ -3,7 +3,7 @@ import VvInputText from '@/components/VvInputText/VvInputText.vue';
3
3
  declare const meta: Meta<typeof VvInputText>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof VvInputText>;
6
- export declare const RegExp: Story;
6
+ export declare const Regex: Story;
7
7
  export declare const PhoneNumber: Story;
8
8
  export declare const Pattern: Story;
9
9
  export declare const IntlNumber: Story;
@@ -1,37 +1,4 @@
1
- export declare const defaultArgs: {
2
- items: ({
3
- title: string;
4
- href: string;
5
- to?: undefined;
6
- id?: undefined;
7
- on?: undefined;
8
- } | {
9
- title: string;
10
- to: string;
11
- href?: undefined;
12
- id?: undefined;
13
- on?: undefined;
14
- } | {
15
- id: string;
16
- title: string;
17
- to: string;
18
- on: {
19
- click: () => void;
20
- };
21
- href?: undefined;
22
- })[];
23
- };
24
- export declare const defaultArgTypes: {
25
- tabId: {
26
- description: string;
27
- control: {
28
- type: string;
29
- };
30
- table: {
31
- category: string;
32
- type: {
33
- summary: string;
34
- };
35
- };
36
- };
37
- };
1
+ import type { ArgTypes, Meta } from '@storybook/vue3';
2
+ import type { VvTab } from '@/components';
3
+ export declare const defaultArgs: Meta<typeof VvTab>['args'];
4
+ export declare const defaultArgTypes: ArgTypes;
@@ -0,0 +1,13 @@
1
+ export type AlertModifiers = 'success' | 'info' | 'warning' | 'danger' | 'brand' | 'accent';
2
+ export type Alert = {
3
+ id: string | number;
4
+ group: string;
5
+ title?: string;
6
+ icon: string | Record<string, unknown>;
7
+ content?: string;
8
+ footer?: string;
9
+ modifiers: AlertModifiers;
10
+ dismissable: boolean;
11
+ autoClose: number;
12
+ timestamp: number;
13
+ };
@@ -0,0 +1,6 @@
1
+ import type { flip, autoPlacement, shift, offset, size } from '@floating-ui/vue';
2
+ export type AutoPlacementOptions = Parameters<typeof autoPlacement>[0];
3
+ export type FlipOptions = Parameters<typeof flip>[0];
4
+ export type ShiftOptions = Parameters<typeof shift>[0];
5
+ export type OffsetOptions = Parameters<typeof offset>[0];
6
+ export type SizeOptions = Parameters<typeof size>[0];
@@ -0,0 +1,4 @@
1
+ export type Nullable<T> = T | null | undefined;
2
+ export type Option = Record<string | number | symbol, any> & {
3
+ options?: Option[];
4
+ };
@@ -0,0 +1,37 @@
1
+ import type { Ref } from 'vue';
2
+ /**
3
+ * State shared for a group of elements
4
+ */
5
+ export default interface GroupState {
6
+ [itemKey: string]: Ref<unknown> | unknown | undefined;
7
+ key: string | number | symbol;
8
+ }
9
+ /**
10
+ * State shared in a group of inputs
11
+ */
12
+ export interface InputGroupState extends GroupState {
13
+ readonly: Ref<boolean>;
14
+ disabled: Ref<boolean>;
15
+ valid: Ref<boolean>;
16
+ invalid: Ref<boolean>;
17
+ }
18
+ /**
19
+ * State shared in a group of buttons
20
+ */
21
+ export interface ButtonGroupState extends GroupState {
22
+ modelValue: Ref<string | number | boolean | (string | number | boolean)[] | undefined>;
23
+ disabled: Ref<boolean>;
24
+ toggle: Ref<boolean>;
25
+ multiple: Ref<boolean>;
26
+ unselectable: Ref<boolean>;
27
+ modifiers: Ref<string | string[] | undefined>;
28
+ }
29
+ /**
30
+ * State shared in a group of accordions
31
+ */
32
+ export interface AccordionGroupState extends GroupState {
33
+ collapse: Ref<boolean>;
34
+ disabled: Ref<boolean>;
35
+ modifiers: Ref<string[] | string | undefined>;
36
+ not: Ref<boolean>;
37
+ }
@@ -0,0 +1,5 @@
1
+ export * from './alert';
2
+ export * from './floating-ui';
3
+ export * from './generic';
4
+ export * from './group';
5
+ export * from './nav';
@@ -0,0 +1,17 @@
1
+ import type { AnchorTarget } from '@/constants';
2
+ export type NavItem = {
3
+ label: string;
4
+ ariaLabel?: string;
5
+ title?: string;
6
+ to?: string | Record<string, unknown>;
7
+ href?: string;
8
+ target?: `${AnchorTarget}`;
9
+ rel?: string;
10
+ disabled?: boolean;
11
+ current?: boolean;
12
+ class?: string | string[];
13
+ on?: Record<'click' | string, () => void>;
14
+ };
15
+ export type NavItemTab = NavItem & {
16
+ tab?: string;
17
+ };
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "bugs": {
20
20
  "url": "https://github.com/volverjs/ui-vue/issues"
21
21
  },
22
- "version": "0.0.9",
22
+ "version": "0.0.10-beta.10",
23
23
  "engines": {
24
24
  "node": ">= 16.x"
25
25
  },
@@ -44,8 +44,8 @@
44
44
  "@vueuse/core": "^10.4.1",
45
45
  "jsdom": "^22.1.0",
46
46
  "mitt": "^3.0.1",
47
- "nanoid": "^4.0.2",
48
47
  "ts-dot-prop": "^2.1.3",
48
+ "uid": "^2.0.2",
49
49
  "vue": "^3.3.4",
50
50
  "vue-imask": "^7.1.3"
51
51
  },
@@ -53,78 +53,79 @@
53
53
  "@volverjs/style": "0.*"
54
54
  },
55
55
  "devDependencies": {
56
- "@babel/core": "^7.22.11",
57
- "@babel/preset-env": "^7.22.10",
58
- "@babel/preset-typescript": "^7.22.11",
56
+ "@babel/core": "^7.23.0",
57
+ "@babel/preset-env": "^7.22.20",
58
+ "@babel/preset-typescript": "^7.23.0",
59
59
  "@iconify/types": "^2.0.0",
60
- "@iconify/utils": "^2.1.9",
60
+ "@iconify/utils": "^2.1.11",
61
61
  "@mdx-js/react": "^2.3.0",
62
- "@rushstack/eslint-patch": "^1.3.3",
63
- "@storybook/addon-a11y": "^7.4.0",
64
- "@storybook/addon-actions": "^7.4.0",
65
- "@storybook/addon-docs": "^7.4.0",
66
- "@storybook/addon-essentials": "^7.4.0",
67
- "@storybook/addon-interactions": "^7.4.0",
68
- "@storybook/addon-links": "^7.4.0",
69
- "@storybook/channel-postmessage": "^7.4.0",
70
- "@storybook/channel-websocket": "^7.4.0",
71
- "@storybook/cli": "^7.4.0",
72
- "@storybook/client-api": "^7.4.0",
73
- "@storybook/client-logger": "^7.4.0",
74
- "@storybook/core-common": "^7.4.0",
75
- "@storybook/jest": "^0.2.2",
76
- "@storybook/preview-api": "^7.4.0",
77
- "@storybook/preview-web": "^7.4.0",
62
+ "@rushstack/eslint-patch": "^1.5.1",
63
+ "@storybook/addon-a11y": "^7.4.6",
64
+ "@storybook/addon-actions": "^7.4.6",
65
+ "@storybook/addon-docs": "^7.4.6",
66
+ "@storybook/addon-essentials": "^7.4.6",
67
+ "@storybook/addon-interactions": "^7.4.6",
68
+ "@storybook/addon-links": "^7.4.6",
69
+ "@storybook/channel-postmessage": "^7.4.6",
70
+ "@storybook/channel-websocket": "^7.4.6",
71
+ "@storybook/cli": "^7.4.6",
72
+ "@storybook/client-api": "^7.4.6",
73
+ "@storybook/client-logger": "^7.4.6",
74
+ "@storybook/core-common": "^7.4.6",
75
+ "@storybook/jest": "^0.2.3",
76
+ "@storybook/preview-api": "^7.4.6",
77
+ "@storybook/preview-web": "^7.4.6",
78
78
  "@storybook/test-runner": "^0.13.0",
79
- "@storybook/testing-library": "^0.2.0",
80
- "@storybook/vue3": "^7.4.0",
81
- "@storybook/vue3-vite": "^7.4.0",
82
- "@tsconfig/node18": "^18.2.1",
83
- "@types/jest-axe": "^3.5.5",
84
- "@types/jsdom": "^21.1.2",
85
- "@types/node": "^20.5.7",
86
- "@types/react": "^18.2.21",
87
- "@types/yargs": "^17.0.24",
88
- "@vitejs/plugin-vue": "^4.3.4",
89
- "@volverjs/style": "0.1.12-beta.4",
79
+ "@storybook/testing-library": "^0.2.2",
80
+ "@storybook/vue3": "^7.4.6",
81
+ "@storybook/vue3-vite": "^7.4.6",
82
+ "@tsconfig/node18": "^18.2.2",
83
+ "@types/jest-axe": "^3.5.6",
84
+ "@types/jsdom": "^21.1.3",
85
+ "@types/node": "^20.8.2",
86
+ "@types/react": "^18.2.25",
87
+ "@types/yargs": "^17.0.26",
88
+ "@vitejs/plugin-vue": "^4.4.0",
89
+ "@volverjs/style": "0.1.12-beta.11",
90
90
  "@vue/compiler-sfc": "^3.3.4",
91
91
  "@vue/eslint-config-prettier": "^8.0.0",
92
- "@vue/eslint-config-typescript": "^11.0.3",
92
+ "@vue/eslint-config-typescript": "^12.0.0",
93
93
  "@vue/test-utils": "^2.4.1",
94
94
  "@vue/tsconfig": "^0.4.0",
95
- "change-case": "^4.1.2",
96
- "eslint": "^8.48.0",
95
+ "change-case": "^5.0.2",
96
+ "chokidar": "^3.5.3",
97
+ "eslint": "^8.50.0",
97
98
  "eslint-config-prettier": "^9.0.0",
98
99
  "eslint-mdx": "^2.2.0",
99
100
  "eslint-plugin-mdx": "^2.2.0",
100
101
  "eslint-plugin-prettier": "^5.0.0",
101
- "eslint-plugin-storybook": "^0.6.13",
102
+ "eslint-plugin-storybook": "^0.6.14",
102
103
  "eslint-plugin-vue": "^9.17.0",
103
104
  "glob": "7.2.3",
104
105
  "jest-axe": "^8.0.0",
105
- "jest-diff": "^29.6.4",
106
+ "jest-diff": "^29.7.0",
106
107
  "jest-get-type": "^29.6.3",
107
108
  "jsdom": "^22.1.0",
108
109
  "npm-run-all": "^4.1.5",
109
110
  "prettier": "^3.0.3",
110
- "pretty-format": "^29.6.3",
111
+ "pretty-format": "^29.7.0",
111
112
  "react": "^18.2.0",
112
113
  "react-dom": "^18.2.0",
113
- "remark": "^14.0.3",
114
- "sass": "^1.66.1",
115
- "storybook": "^7.4.0",
114
+ "remark": "^15.0.1",
115
+ "sass": "^1.69.0",
116
+ "storybook": "^7.4.6",
116
117
  "storybook-addon-markdown-docs": "^2.0.0",
117
118
  "storybook-dark-mode": "^3.0.1",
118
119
  "storybook-version": "^0.1.1",
119
- "terser": "^5.19.3",
120
+ "terser": "^5.21.0",
120
121
  "ts-node": "^10.9.1",
121
122
  "typescript": "~5.2.2",
122
123
  "unplugin-auto-import": "^0.16.6",
123
- "unplugin-vue-components": "^0.25.1",
124
- "vite": "^4.4.9",
124
+ "unplugin-vue-components": "^0.25.2",
125
+ "vite": "^4.4.11",
125
126
  "vite-plugin-eslint": "^1.8.1",
126
127
  "vite-plugin-externalize-deps": "^0.7.0",
127
- "vue-tsc": "^1.8.8",
128
+ "vue-tsc": "^1.8.15",
128
129
  "yargs": "^17.7.2"
129
130
  },
130
131
  "typesVersions": {
@@ -225,8 +226,11 @@
225
226
  "vv-nav": [
226
227
  "dist/components/VvNav/VvNav.vue.d.ts"
227
228
  ],
228
- "vv-nav-item-title": [
229
- "dist/components/VvNavItemTitle/VvNavItemTitle.vue.d.ts"
229
+ "vv-nav-item": [
230
+ "dist/components/VvNavItem/VvNavItem.vue.d.ts"
231
+ ],
232
+ "vv-nav-separator": [
233
+ "dist/components/VvNavSeparator/VvNavSeparator.vue.d.ts"
230
234
  ],
231
235
  "vv-progress": [
232
236
  "dist/components/VvProgress/VvProgress.vue.d.ts"
@@ -414,10 +418,15 @@
414
418
  "import": "./dist/components/VvNav/VvNav.es.js",
415
419
  "default": "./dist/components/VvNav/VvNav.umd.js"
416
420
  },
417
- "./vv-nav-item-title": {
418
- "types": "./dist/components/VvNavItemTitle/VvNavItemTitle.vue.d.ts",
419
- "import": "./dist/components/VvNavItemTitle/VvNavItemTitle.es.js",
420
- "default": "./dist/components/VvNavItemTitle/VvNavItemTitle.umd.js"
421
+ "./vv-nav-item": {
422
+ "types": "./dist/components/VvNavItem/VvNavItem.vue.d.ts",
423
+ "import": "./dist/components/VvNavItem/VvNavItem.es.js",
424
+ "default": "./dist/components/VvNavItem/VvNavItem.umd.js"
425
+ },
426
+ "./vv-nav-separator": {
427
+ "types": "./dist/components/VvNavSeparator/VvNavSeparator.vue.d.ts",
428
+ "import": "./dist/components/VvNavSeparator/VvNavSeparator.es.js",
429
+ "default": "./dist/components/VvNavSeparator/VvNavSeparator.umd.js"
421
430
  },
422
431
  "./vv-progress": {
423
432
  "types": "./dist/components/VvProgress/VvProgress.vue.d.ts",
package/src/Volver.ts CHANGED
@@ -36,25 +36,31 @@ export function useDefaultProps(
36
36
  return {
37
37
  ...component,
38
38
  name: componentName,
39
- props: Object.keys(props).reduce((acc, key) => {
40
- if (!(key in componentDefaults)) {
41
- acc[key] = props[key]
42
- return acc
43
- }
44
- const customDefault = componentDefaults[key]
45
- if (typeof props[key] === 'function' || Array.isArray(props[key])) {
39
+ props: Object.keys(props).reduce(
40
+ (acc, key) => {
41
+ if (!(key in componentDefaults)) {
42
+ acc[key] = props[key]
43
+ return acc
44
+ }
45
+ const customDefault = componentDefaults[key]
46
+ if (
47
+ typeof props[key] === 'function' ||
48
+ Array.isArray(props[key])
49
+ ) {
50
+ acc[key] = {
51
+ type: props[key],
52
+ default: customDefault,
53
+ }
54
+ return acc
55
+ }
46
56
  acc[key] = {
47
- type: props[key],
57
+ ...(props[key] as Record<string, unknown>),
48
58
  default: customDefault,
49
59
  }
50
60
  return acc
51
- }
52
- acc[key] = {
53
- ...(props[key] as Record<string, unknown>),
54
- default: customDefault,
55
- }
56
- return acc
57
- }, {} as Record<string, unknown>),
61
+ },
62
+ {} as Record<string, unknown>,
63
+ ),
58
64
  }
59
65
  }
60
66
 
@@ -248,7 +254,7 @@ const VolverPlugin: Plugin = {
248
254
  * @param {App} Vue
249
255
  * @param {Object} options
250
256
  */
251
- install(app: App, options: VolverOptions) {
257
+ install(app: App, options: VolverOptions = {}) {
252
258
  const volver = new Volver(options)
253
259
 
254
260
  // register global methods