@volverjs/ui-vue 0.0.10-beta.15 → 0.0.10-beta.17

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 (154) hide show
  1. package/README.md +96 -2
  2. package/auto-imports.d.ts +2 -0
  3. package/dist/components/VvAccordion/VvAccordion.es.js +33 -9
  4. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  5. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +9 -2
  6. package/dist/components/VvAccordion/index.d.ts +4 -1
  7. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +33 -9
  8. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  9. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +9 -2
  10. package/dist/components/VvAccordionGroup/index.d.ts +4 -1
  11. package/dist/components/VvAction/VvAction.es.js +29 -8
  12. package/dist/components/VvAction/VvAction.umd.js +1 -1
  13. package/dist/components/VvAction/VvAction.vue.d.ts +44 -10
  14. package/dist/components/VvAction/index.d.ts +21 -5
  15. package/dist/components/VvAlert/VvAlert.es.js +91 -107
  16. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  17. package/dist/components/VvAlert/VvAlert.vue.d.ts +14 -4
  18. package/dist/components/VvAlert/index.d.ts +7 -3
  19. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +91 -107
  20. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  21. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +9 -2
  22. package/dist/components/VvAlertGroup/index.d.ts +6 -2
  23. package/dist/components/VvAvatar/VvAvatar.es.js +33 -9
  24. package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
  25. package/dist/components/VvAvatar/VvAvatar.vue.d.ts +11 -3
  26. package/dist/components/VvAvatar/index.d.ts +4 -1
  27. package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +33 -9
  28. package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
  29. package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +9 -2
  30. package/dist/components/VvAvatarGroup/index.d.ts +4 -1
  31. package/dist/components/VvBadge/VvBadge.es.js +33 -9
  32. package/dist/components/VvBadge/VvBadge.umd.js +1 -1
  33. package/dist/components/VvBadge/VvBadge.vue.d.ts +11 -3
  34. package/dist/components/VvBadge/index.d.ts +4 -1
  35. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +33 -9
  36. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  37. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +11 -3
  38. package/dist/components/VvBreadcrumb/index.d.ts +4 -1
  39. package/dist/components/VvButton/VvButton.es.js +100 -119
  40. package/dist/components/VvButton/VvButton.umd.js +1 -1
  41. package/dist/components/VvButton/VvButton.vue.d.ts +78 -20
  42. package/dist/components/VvButton/index.d.ts +34 -12
  43. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +33 -9
  44. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  45. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +17 -4
  46. package/dist/components/VvButtonGroup/index.d.ts +8 -2
  47. package/dist/components/VvCard/VvCard.es.js +33 -9
  48. package/dist/components/VvCard/VvCard.umd.js +1 -1
  49. package/dist/components/VvCard/VvCard.vue.d.ts +11 -3
  50. package/dist/components/VvCard/index.d.ts +4 -1
  51. package/dist/components/VvCheckbox/VvCheckbox.es.js +56 -17
  52. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  53. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +94 -22
  54. package/dist/components/VvCheckbox/index.d.ts +44 -11
  55. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +64 -19
  56. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  57. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +93 -22
  58. package/dist/components/VvCheckboxGroup/index.d.ts +44 -11
  59. package/dist/components/VvCombobox/VvCombobox.es.js +108 -165
  60. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  61. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +97 -24
  62. package/dist/components/VvCombobox/index.d.ts +42 -11
  63. package/dist/components/VvDialog/VvDialog.es.js +51 -103
  64. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  65. package/dist/components/VvDropdown/VvDropdown.es.js +33 -9
  66. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  67. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +14 -2
  68. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +61 -12
  69. package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +11 -3
  70. package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +25 -6
  71. package/dist/components/VvDropdown/index.d.ts +6 -1
  72. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +33 -9
  73. package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
  74. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +29 -8
  75. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
  76. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +37 -10
  77. package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
  78. package/dist/components/VvIcon/VvIcon.es.js +22 -95
  79. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  80. package/dist/components/VvIcon/VvIcon.vue.d.ts +81 -44
  81. package/dist/components/VvIcon/index.d.ts +21 -48
  82. package/dist/components/VvInputFile/VvInputFile.es.js +146 -140
  83. package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
  84. package/dist/components/VvInputFile/VvInputFile.vue.d.ts +52 -12
  85. package/dist/components/VvInputFile/index.d.ts +24 -6
  86. package/dist/components/VvInputText/VvInputText.es.js +115 -147
  87. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  88. package/dist/components/VvInputText/VvInputText.vue.d.ts +141 -34
  89. package/dist/components/VvInputText/index.d.ts +71 -26
  90. package/dist/components/VvNav/VvNav.es.js +33 -9
  91. package/dist/components/VvNav/VvNav.umd.js +1 -1
  92. package/dist/components/VvNav/VvNav.vue.d.ts +9 -2
  93. package/dist/components/VvNav/index.d.ts +4 -1
  94. package/dist/components/VvNavItem/VvNavItem.es.js +29 -8
  95. package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
  96. package/dist/components/VvProgress/VvProgress.es.js +33 -9
  97. package/dist/components/VvProgress/VvProgress.umd.js +1 -1
  98. package/dist/components/VvProgress/VvProgress.vue.d.ts +9 -2
  99. package/dist/components/VvProgress/index.d.ts +4 -1
  100. package/dist/components/VvRadio/VvRadio.es.js +56 -17
  101. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  102. package/dist/components/VvRadio/VvRadio.vue.d.ts +94 -22
  103. package/dist/components/VvRadio/index.d.ts +44 -11
  104. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +64 -19
  105. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  106. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +93 -22
  107. package/dist/components/VvRadioGroup/index.d.ts +44 -11
  108. package/dist/components/VvSelect/VvSelect.es.js +95 -138
  109. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  110. package/dist/components/VvSelect/VvSelect.vue.d.ts +97 -24
  111. package/dist/components/VvSelect/index.d.ts +46 -12
  112. package/dist/components/VvTab/VvTab.es.js +33 -9
  113. package/dist/components/VvTab/VvTab.umd.js +1 -1
  114. package/dist/components/VvTab/VvTab.vue.d.ts +9 -2
  115. package/dist/components/VvTab/index.d.ts +4 -1
  116. package/dist/components/VvTextarea/VvTextarea.es.js +109 -143
  117. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  118. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +141 -34
  119. package/dist/components/VvTextarea/index.d.ts +66 -17
  120. package/dist/components/VvTooltip/VvTooltip.es.js +33 -9
  121. package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
  122. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +9 -2
  123. package/dist/components/VvTooltip/index.d.ts +4 -1
  124. package/dist/components/index.es.js +217 -249
  125. package/dist/components/index.umd.js +1 -1
  126. package/dist/composables/useComponentIcon.d.ts +9 -8
  127. package/dist/directives/index.es.js +33 -9
  128. package/dist/directives/index.umd.js +1 -1
  129. package/dist/directives/v-tooltip.es.js +33 -9
  130. package/dist/directives/v-tooltip.umd.js +1 -1
  131. package/dist/icons.es.js +3 -3
  132. package/dist/icons.umd.js +1 -1
  133. package/dist/props/index.d.ts +251 -61
  134. package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +15 -4
  135. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +77 -22
  136. package/dist/stories/Icon/Icon.settings.d.ts +1 -0
  137. package/package.json +33 -33
  138. package/src/assets/icons/detailed.json +1 -1
  139. package/src/assets/icons/normal.json +1 -1
  140. package/src/assets/icons/simple.json +1 -1
  141. package/src/components/VvAlert/index.ts +1 -3
  142. package/src/components/VvAlertGroup/index.ts +2 -1
  143. package/src/components/VvButton/VvButton.vue +6 -6
  144. package/src/components/VvButton/index.ts +2 -4
  145. package/src/components/VvCombobox/VvCombobox.vue +5 -8
  146. package/src/components/VvIcon/VvIcon.vue +2 -2
  147. package/src/components/VvIcon/index.ts +22 -48
  148. package/src/components/VvInputFile/VvInputFile.vue +33 -10
  149. package/src/components/VvInputText/VvInputText.vue +11 -12
  150. package/src/components/VvSelect/VvSelect.vue +5 -8
  151. package/src/components/VvTextarea/VvTextarea.vue +5 -8
  152. package/src/composables/useComponentIcon.ts +15 -14
  153. package/src/props/index.ts +89 -25
  154. package/src/stories/Icon/Icon.settings.ts +3 -3
@@ -68,28 +68,56 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
68
68
  type: BooleanConstructor;
69
69
  default: boolean;
70
70
  };
71
- minlength: (StringConstructor | NumberConstructor)[];
72
- maxlength: (StringConstructor | NumberConstructor)[];
73
- placeholder: StringConstructor;
74
- required: BooleanConstructor;
75
- label: (StringConstructor | NumberConstructor)[];
76
- floating: BooleanConstructor;
71
+ minlength: {
72
+ type: (StringConstructor | NumberConstructor)[];
73
+ default: undefined;
74
+ };
75
+ maxlength: {
76
+ type: (StringConstructor | NumberConstructor)[];
77
+ default: undefined;
78
+ };
79
+ placeholder: {
80
+ type: StringConstructor;
81
+ default: undefined;
82
+ };
83
+ required: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ label: {
88
+ type: (StringConstructor | NumberConstructor)[];
89
+ default: undefined;
90
+ };
91
+ floating: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
77
95
  icon: {
78
- type: (ObjectConstructor | StringConstructor)[];
96
+ type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
97
+ default: undefined;
79
98
  };
80
99
  iconPosition: {
81
100
  type: globalThis.PropType<"before" | "after">;
82
101
  default: import("../../constants").Position;
83
102
  validation: (value: import("../../constants").Position) => boolean;
84
103
  };
85
- debounce: (StringConstructor | NumberConstructor)[];
104
+ debounce: {
105
+ type: (StringConstructor | NumberConstructor)[];
106
+ default: undefined;
107
+ };
86
108
  count: {
87
109
  type: (StringConstructor | BooleanConstructor)[];
88
110
  default: boolean;
89
111
  validator: (value: string) => boolean;
90
112
  };
91
- modifiers: globalThis.PropType<string | string[]>;
92
- loading: BooleanConstructor;
113
+ modifiers: {
114
+ type: globalThis.PropType<string | string[]>;
115
+ default: undefined;
116
+ };
117
+ loading: {
118
+ type: BooleanConstructor;
119
+ default: boolean;
120
+ };
93
121
  loadingLabel: {
94
122
  type: StringConstructor;
95
123
  default: string;
@@ -98,12 +126,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
98
126
  type: StringConstructor;
99
127
  default: string;
100
128
  };
101
- invalid: BooleanConstructor;
102
- invalidLabel: (ArrayConstructor | StringConstructor)[];
103
- valid: BooleanConstructor;
104
- validLabel: (ArrayConstructor | StringConstructor)[];
105
- readonly: BooleanConstructor;
106
- disabled: BooleanConstructor;
129
+ invalid: {
130
+ type: BooleanConstructor;
131
+ default: boolean;
132
+ };
133
+ invalidLabel: {
134
+ type: (ArrayConstructor | StringConstructor)[];
135
+ default: undefined;
136
+ };
137
+ valid: {
138
+ type: BooleanConstructor;
139
+ default: boolean;
140
+ };
141
+ validLabel: {
142
+ type: (ArrayConstructor | StringConstructor)[];
143
+ default: undefined;
144
+ };
145
+ readonly: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
149
+ disabled: {
150
+ type: BooleanConstructor;
151
+ default: boolean;
152
+ };
107
153
  tabindex: {
108
154
  type: (StringConstructor | NumberConstructor)[];
109
155
  default: number;
@@ -112,7 +158,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
112
158
  type: StringConstructor;
113
159
  default: string;
114
160
  };
115
- autofocus: BooleanConstructor;
161
+ autofocus: {
162
+ type: BooleanConstructor;
163
+ default: boolean;
164
+ };
116
165
  name: {
117
166
  type: StringConstructor;
118
167
  required: boolean;
@@ -192,28 +241,56 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
192
241
  type: BooleanConstructor;
193
242
  default: boolean;
194
243
  };
195
- minlength: (StringConstructor | NumberConstructor)[];
196
- maxlength: (StringConstructor | NumberConstructor)[];
197
- placeholder: StringConstructor;
198
- required: BooleanConstructor;
199
- label: (StringConstructor | NumberConstructor)[];
200
- floating: BooleanConstructor;
244
+ minlength: {
245
+ type: (StringConstructor | NumberConstructor)[];
246
+ default: undefined;
247
+ };
248
+ maxlength: {
249
+ type: (StringConstructor | NumberConstructor)[];
250
+ default: undefined;
251
+ };
252
+ placeholder: {
253
+ type: StringConstructor;
254
+ default: undefined;
255
+ };
256
+ required: {
257
+ type: BooleanConstructor;
258
+ default: boolean;
259
+ };
260
+ label: {
261
+ type: (StringConstructor | NumberConstructor)[];
262
+ default: undefined;
263
+ };
264
+ floating: {
265
+ type: BooleanConstructor;
266
+ default: boolean;
267
+ };
201
268
  icon: {
202
- type: (ObjectConstructor | StringConstructor)[];
269
+ type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
270
+ default: undefined;
203
271
  };
204
272
  iconPosition: {
205
273
  type: globalThis.PropType<"before" | "after">;
206
274
  default: import("../../constants").Position;
207
275
  validation: (value: import("../../constants").Position) => boolean;
208
276
  };
209
- debounce: (StringConstructor | NumberConstructor)[];
277
+ debounce: {
278
+ type: (StringConstructor | NumberConstructor)[];
279
+ default: undefined;
280
+ };
210
281
  count: {
211
282
  type: (StringConstructor | BooleanConstructor)[];
212
283
  default: boolean;
213
284
  validator: (value: string) => boolean;
214
285
  };
215
- modifiers: globalThis.PropType<string | string[]>;
216
- loading: BooleanConstructor;
286
+ modifiers: {
287
+ type: globalThis.PropType<string | string[]>;
288
+ default: undefined;
289
+ };
290
+ loading: {
291
+ type: BooleanConstructor;
292
+ default: boolean;
293
+ };
217
294
  loadingLabel: {
218
295
  type: StringConstructor;
219
296
  default: string;
@@ -222,12 +299,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
222
299
  type: StringConstructor;
223
300
  default: string;
224
301
  };
225
- invalid: BooleanConstructor;
226
- invalidLabel: (ArrayConstructor | StringConstructor)[];
227
- valid: BooleanConstructor;
228
- validLabel: (ArrayConstructor | StringConstructor)[];
229
- readonly: BooleanConstructor;
230
- disabled: BooleanConstructor;
302
+ invalid: {
303
+ type: BooleanConstructor;
304
+ default: boolean;
305
+ };
306
+ invalidLabel: {
307
+ type: (ArrayConstructor | StringConstructor)[];
308
+ default: undefined;
309
+ };
310
+ valid: {
311
+ type: BooleanConstructor;
312
+ default: boolean;
313
+ };
314
+ validLabel: {
315
+ type: (ArrayConstructor | StringConstructor)[];
316
+ default: undefined;
317
+ };
318
+ readonly: {
319
+ type: BooleanConstructor;
320
+ default: boolean;
321
+ };
322
+ disabled: {
323
+ type: BooleanConstructor;
324
+ default: boolean;
325
+ };
231
326
  tabindex: {
232
327
  type: (StringConstructor | NumberConstructor)[];
233
328
  default: number;
@@ -236,7 +331,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
236
331
  type: StringConstructor;
237
332
  default: string;
238
333
  };
239
- autofocus: BooleanConstructor;
334
+ autofocus: {
335
+ type: BooleanConstructor;
336
+ default: boolean;
337
+ };
240
338
  name: {
241
339
  type: StringConstructor;
242
340
  required: boolean;
@@ -248,14 +346,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
248
346
  valid: boolean;
249
347
  invalid: boolean;
250
348
  multiple: boolean;
349
+ modifiers: string | string[];
251
350
  floating: boolean;
351
+ label: string | number;
252
352
  type: import("../VvInputText").InputType;
253
353
  required: boolean;
354
+ icon: string | import("../VvIcon").VvIconProps;
254
355
  iconPosition: "before" | "after";
255
356
  loading: boolean;
256
357
  loadingLabel: string;
257
358
  hintLabel: string;
359
+ invalidLabel: string | unknown[];
360
+ validLabel: string | unknown[];
258
361
  tabindex: string | number;
362
+ placeholder: string;
259
363
  autocomplete: string;
260
364
  autofocus: boolean;
261
365
  step: string | number;
@@ -272,6 +376,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
272
376
  autoWidth: boolean;
273
377
  hideActions: boolean;
274
378
  selectOnFocus: boolean;
379
+ minlength: string | number;
380
+ maxlength: string | number;
381
+ debounce: string | number;
275
382
  count: string | boolean;
276
383
  }, {}>, {
277
384
  before?(_: {
@@ -174,57 +174,102 @@ export declare const VvInputTextProps: {
174
174
  type: BooleanConstructor;
175
175
  default: boolean;
176
176
  };
177
- minlength: (StringConstructor | NumberConstructor)[];
178
- maxlength: (StringConstructor | NumberConstructor)[];
179
- placeholder: StringConstructor;
180
- required: BooleanConstructor;
181
- label: (StringConstructor | NumberConstructor)[];
182
- floating: BooleanConstructor;
177
+ minlength: {
178
+ type: (StringConstructor | NumberConstructor)[];
179
+ default: undefined;
180
+ };
181
+ maxlength: {
182
+ type: (StringConstructor | NumberConstructor)[];
183
+ default: undefined;
184
+ };
185
+ placeholder: {
186
+ type: StringConstructor;
187
+ default: undefined;
188
+ };
189
+ required: {
190
+ type: BooleanConstructor;
191
+ default: boolean;
192
+ };
193
+ label: {
194
+ type: (StringConstructor | NumberConstructor)[];
195
+ default: undefined;
196
+ };
197
+ floating: {
198
+ type: BooleanConstructor;
199
+ default: boolean;
200
+ };
183
201
  icon: {
184
- type: (ObjectConstructor | StringConstructor)[];
202
+ type: PropType<string | import("../VvIcon").VvIconProps>;
203
+ default: undefined;
185
204
  };
186
205
  iconPosition: {
187
206
  type: PropType<"before" | "after">;
188
207
  default: import("../../constants").Position;
189
208
  validation: (value: import("../../constants").Position) => boolean;
190
209
  };
191
- debounce: (StringConstructor | NumberConstructor)[];
210
+ debounce: {
211
+ type: (StringConstructor | NumberConstructor)[];
212
+ default: undefined;
213
+ }; /**
214
+ * Hide type number, password and search actions
215
+ */
192
216
  count: {
193
217
  type: (StringConstructor | BooleanConstructor)[];
194
218
  default: boolean;
195
219
  validator: (value: string) => boolean;
196
220
  };
197
- modifiers: PropType<string | string[]>;
198
- loading: BooleanConstructor;
221
+ modifiers: {
222
+ type: PropType<string | string[]>;
223
+ default: undefined;
224
+ };
225
+ loading: {
226
+ type: BooleanConstructor;
227
+ default: boolean;
228
+ };
199
229
  loadingLabel: {
200
230
  type: StringConstructor;
201
231
  default: string;
202
232
  };
203
233
  hintLabel: {
204
234
  type: StringConstructor;
205
- default: string; /**
206
- * Whether to allow multiple values
207
- * Available for input type email
208
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#multiple
209
- */
210
- };
211
- invalid: BooleanConstructor;
212
- invalidLabel: (ArrayConstructor | StringConstructor)[];
213
- valid: BooleanConstructor;
214
- validLabel: (ArrayConstructor | StringConstructor)[];
215
- readonly: BooleanConstructor;
216
- disabled: BooleanConstructor;
235
+ default: string;
236
+ };
237
+ invalid: {
238
+ type: BooleanConstructor;
239
+ default: boolean;
240
+ };
241
+ invalidLabel: {
242
+ type: (ArrayConstructor | StringConstructor)[];
243
+ default: undefined;
244
+ };
245
+ valid: {
246
+ type: BooleanConstructor;
247
+ default: boolean;
248
+ };
249
+ validLabel: {
250
+ type: (ArrayConstructor | StringConstructor)[];
251
+ default: undefined;
252
+ };
253
+ readonly: {
254
+ type: BooleanConstructor;
255
+ default: boolean;
256
+ };
257
+ disabled: {
258
+ type: BooleanConstructor;
259
+ default: boolean;
260
+ };
217
261
  tabindex: {
218
262
  type: (StringConstructor | NumberConstructor)[];
219
- default: number; /**
220
- * Hide type number, password and search actions
221
- */
263
+ default: number;
222
264
  };
223
265
  autocomplete: {
224
266
  type: StringConstructor;
225
267
  default: string;
226
268
  };
227
- autofocus: BooleanConstructor;
269
+ autofocus: {
270
+ type: BooleanConstructor;
271
+ default: boolean;
272
+ };
228
273
  name: {
229
274
  type: StringConstructor;
230
275
  required: boolean;
@@ -71,6 +71,7 @@ const LinkProps = {
71
71
  */
72
72
  target: {
73
73
  type: String,
74
+ default: void 0,
74
75
  validator: (value) => Object.values(AnchorTarget).includes(value)
75
76
  },
76
77
  /**
@@ -85,44 +86,65 @@ const DisabledProps = {
85
86
  /**
86
87
  * Whether the form control is disabled
87
88
  */
88
- disabled: Boolean
89
+ disabled: {
90
+ type: Boolean,
91
+ default: false
92
+ }
89
93
  };
90
94
  const ActiveProps = {
91
95
  /**
92
96
  * Whether the item is active
93
97
  */
94
- active: Boolean
98
+ active: {
99
+ type: Boolean,
100
+ default: false
101
+ }
95
102
  };
96
103
  const CurrentProps = {
97
104
  /**
98
105
  * Whether the item is current
99
106
  */
100
- current: Boolean
107
+ current: {
108
+ type: Boolean,
109
+ default: false
110
+ }
101
111
  };
102
112
  const PressedProps = {
103
113
  /**
104
114
  * Whether the item is pressed
105
115
  */
106
- pressed: Boolean
116
+ pressed: {
117
+ type: Boolean,
118
+ default: false
119
+ }
107
120
  };
108
121
  const LabelProps = {
109
122
  /**
110
123
  * The item label
111
124
  */
112
- label: [String, Number]
125
+ label: {
126
+ type: [String, Number],
127
+ default: void 0
128
+ }
113
129
  };
114
130
  const ModifiersProps = {
115
131
  /**
116
132
  * Component BEM modifiers
117
133
  */
118
- modifiers: [String, Array]
134
+ modifiers: {
135
+ type: [String, Array],
136
+ default: void 0
137
+ }
119
138
  };
120
139
  ({
121
140
  /**
122
141
  * VvIcon name or props
123
142
  * @see VVIcon
124
143
  */
125
- icon: { type: [String, Object] },
144
+ icon: {
145
+ type: [String, Object],
146
+ default: void 0
147
+ },
126
148
  /**
127
149
  * VvIcon position
128
150
  */
@@ -153,7 +175,8 @@ const ModifiersProps = {
153
175
  * Dropdown show / hide transition name
154
176
  */
155
177
  transitionName: {
156
- type: String
178
+ type: String,
179
+ default: void 0
157
180
  },
158
181
  /**
159
182
  * Offset of the dropdown from the trigger
@@ -221,7 +244,8 @@ const ModifiersProps = {
221
244
  * Set dropdown width to the same as the trigger
222
245
  */
223
246
  triggerWidth: {
224
- type: Boolean
247
+ type: Boolean,
248
+ default: false
225
249
  }
226
250
  });
227
251
  const ActionProps = {
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvNav=t(e.vue)}(this,(function(e){"use strict";var t=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(t||{}),o=(e=>(e.before="before",e.after="after",e))(o||{}),n=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(n||{}),r=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(r||{}),a=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(a||{});const l=Symbol.for("volver"),i=Symbol.for("dropdownTrigger"),s=Symbol.for("dropdownAction"),u={to:{type:[String,Object]},href:String,target:{type:String,validator:e=>Object.values(a).includes(e)},rel:{type:String,default:"noopener noreferrer"}},d={disabled:Boolean},c={active:Boolean},v={current:Boolean},f={pressed:Boolean},p={label:[String,Number]},m={modifiers:[String,Array]};o.before,t.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const b={...d,...p,...f,...c,...v,...u,type:{type:String,default:n.button,validator:e=>Object.values(n).includes(e)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:r.button}},k={...m,...{items:{type:Array,default:()=>[]}}},g=b;const y=e.defineComponent({name:"VvAction",props:g,emits:["click","mouseover","mouseleave"],setup(t,{expose:o,emit:n}){const a=t,u=e.inject(l),d=e.ref(null);o({$el:d});const{reference:c,bus:v,aria:f,expanded:p}=e.inject(i,{});e.watch((()=>d.value),(e=>{c&&(c.value=e)}));const m=e.computed((()=>a.pressed||(null==p?void 0:p.value))),{role:b}=e.inject(s,{}),k=e.computed((()=>{switch(!0){case a.disabled:return r.button;case void 0!==a.to:return(null==u?void 0:u.nuxt)?r.nuxtLink:r.routerLink;case void 0!==a.href:return r.a;default:return a.defaultTag}})),g=e.computed((()=>{const e={...null==f?void 0:f.value,ariaPressed:!!m.value||void 0,ariaLabel:a.ariaLabel,role:null==b?void 0:b.value};switch(k.value){case r.a:return{...e,href:a.href,target:a.target,rel:a.rel};case r.routerLink:case r.nuxtLink:return{...e,to:a.to,target:a.target};case r.button:return{...e,type:a.type,disabled:a.disabled};default:return e}})),y=e=>{a.disabled?e.preventDefault():(null==v||v.emit("click",e),n("click",e))},B=e=>{null==v||v.emit("mouseover",e),n("mouseover",e)},_=e=>{null==v||v.emit("mouseleave",e),n("mouseleave",e)};return(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(k)),e.mergeProps(e.unref(g),{ref_key:"element",ref:d,class:{active:t.active,pressed:e.unref(m),disabled:t.disabled,current:t.current},onClickPassive:y,onMouseoverPassive:B,onMouseleavePassive:_}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]))])),_:3},16,["class"]))}}),B={class:"vv-nav__item",role:"presentation"},_=e.defineComponent({name:"VvNavItem",inheritAttrs:!1,setup:t=>(t,o)=>(e.openBlock(),e.createElementBlock("li",B,[e.createVNode(y,e.mergeProps(t.$attrs,{class:"vv-nav__item-label"}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16)]))});const h=["onClick"];return e.defineComponent({__name:"VvNav",props:k,emits:["click"],setup(t,{emit:o}){const n=t,{modifiers:r}=e.toRefs(n),a=e=>{var t;const r=e.target;if(null==r?void 0:r.dataset.index){const e=parseInt(r.dataset.index),a=null==(t=n.items)?void 0:t[e];if(!a||(null==a?void 0:a.disabled))return;o("click",a)}},l=function(t,o,n){return e.computed((()=>{const r={[t]:!0},a="string"==typeof(null==o?void 0:o.value)?o.value.split(" "):null==o?void 0:o.value;return a&&Array.isArray(a)&&a.forEach((e=>{e&&(r[`${t}--${e}`]=!0)})),n&&Object.keys(n.value).forEach((o=>{r[`${t}--${o}`]=e.unref(n.value[o])})),r}))}("vv-nav",r);return(t,o)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(e.unref(l))},[e.createElementVNode("ul",{class:"vv-nav__menu",role:"menu","aria-busy":"true",onClick:e.withModifiers(a,["stop"])},[e.renderSlot(t.$slots,"default",{},(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(({on:o={},data:n,...r},a)=>(e.openBlock(),e.createBlock(_,e.mergeProps({key:a,"data-index":a},r,e.toHandlers(o)),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"item",e.normalizeProps(e.guardReactiveProps({item:r,data:n,index:a})))])),_:2},1040,["data-index"])))),128))]))],8,h)],2))}})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvNav=t(e.vue)}(this,(function(e){"use strict";var t=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(t||{}),o=(e=>(e.before="before",e.after="after",e))(o||{}),n=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(n||{}),r=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(r||{}),a=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(a||{});const l=Symbol.for("volver"),i=Symbol.for("dropdownTrigger"),u=Symbol.for("dropdownAction"),s={to:{type:[String,Object]},href:String,target:{type:String,default:void 0,validator:e=>Object.values(a).includes(e)},rel:{type:String,default:"noopener noreferrer"}},d={disabled:{type:Boolean,default:!1}},c={active:{type:Boolean,default:!1}},v={current:{type:Boolean,default:!1}},f={pressed:{type:Boolean,default:!1}},p={label:{type:[String,Number],default:void 0}},m={modifiers:{type:[String,Array],default:void 0}};o.before,t.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const b={...d,...p,...f,...c,...v,...s,type:{type:String,default:n.button,validator:e=>Object.values(n).includes(e)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:r.button}},y={...m,...{items:{type:Array,default:()=>[]}}},k=b;const g=e.defineComponent({name:"VvAction",props:k,emits:["click","mouseover","mouseleave"],setup(t,{expose:o,emit:n}){const a=t,s=e.inject(l),d=e.ref(null);o({$el:d});const{reference:c,bus:v,aria:f,expanded:p}=e.inject(i,{});e.watch((()=>d.value),(e=>{c&&(c.value=e)}));const m=e.computed((()=>a.pressed||(null==p?void 0:p.value))),{role:b}=e.inject(u,{}),y=e.computed((()=>{switch(!0){case a.disabled:return r.button;case void 0!==a.to:return(null==s?void 0:s.nuxt)?r.nuxtLink:r.routerLink;case void 0!==a.href:return r.a;default:return a.defaultTag}})),k=e.computed((()=>{const e={...null==f?void 0:f.value,ariaPressed:!!m.value||void 0,ariaLabel:a.ariaLabel,role:null==b?void 0:b.value};switch(y.value){case r.a:return{...e,href:a.href,target:a.target,rel:a.rel};case r.routerLink:case r.nuxtLink:return{...e,to:a.to,target:a.target};case r.button:return{...e,type:a.type,disabled:a.disabled};default:return e}})),g=e=>{a.disabled?e.preventDefault():(null==v||v.emit("click",e),n("click",e))},B=e=>{null==v||v.emit("mouseover",e),n("mouseover",e)},_=e=>{null==v||v.emit("mouseleave",e),n("mouseleave",e)};return(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(y)),e.mergeProps(e.unref(k),{ref_key:"element",ref:d,class:{active:t.active,pressed:e.unref(m),disabled:t.disabled,current:t.current},onClickPassive:g,onMouseoverPassive:B,onMouseleavePassive:_}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]))])),_:3},16,["class"]))}}),B={class:"vv-nav__item",role:"presentation"},_=e.defineComponent({name:"VvNavItem",inheritAttrs:!1,setup:t=>(t,o)=>(e.openBlock(),e.createElementBlock("li",B,[e.createVNode(g,e.mergeProps(t.$attrs,{class:"vv-nav__item-label"}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16)]))});const h=["onClick"];return e.defineComponent({__name:"VvNav",props:y,emits:["click"],setup(t,{emit:o}){const n=t,{modifiers:r}=e.toRefs(n),a=e=>{var t;const r=e.target;if(null==r?void 0:r.dataset.index){const e=parseInt(r.dataset.index),a=null==(t=n.items)?void 0:t[e];if(!a||(null==a?void 0:a.disabled))return;o("click",a)}},l=function(t,o,n){return e.computed((()=>{const r={[t]:!0},a="string"==typeof(null==o?void 0:o.value)?o.value.split(" "):null==o?void 0:o.value;return a&&Array.isArray(a)&&a.forEach((e=>{e&&(r[`${t}--${e}`]=!0)})),n&&Object.keys(n.value).forEach((o=>{r[`${t}--${o}`]=e.unref(n.value[o])})),r}))}("vv-nav",r);return(t,o)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(e.unref(l))},[e.createElementVNode("ul",{class:"vv-nav__menu",role:"menu","aria-busy":"true",onClick:e.withModifiers(a,["stop"])},[e.renderSlot(t.$slots,"default",{},(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(({on:o={},data:n,...r},a)=>(e.openBlock(),e.createBlock(_,e.mergeProps({key:a,"data-index":a},r,e.toHandlers(o)),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"item",e.normalizeProps(e.guardReactiveProps({item:r,data:n,index:a})))])),_:2},1040,["data-index"])))),128))]))],8,h)],2))}})}));
@@ -3,7 +3,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
3
  type: globalThis.PropType<import("../..").NavItem[]>;
4
4
  default: () => never[];
5
5
  };
6
- modifiers: globalThis.PropType<string | string[]>;
6
+ modifiers: {
7
+ type: globalThis.PropType<string | string[]>;
8
+ default: undefined;
9
+ };
7
10
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
11
  [x: string]: (...args: any[]) => void;
9
12
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -11,8 +14,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
11
14
  type: globalThis.PropType<import("../..").NavItem[]>;
12
15
  default: () => never[];
13
16
  };
14
- modifiers: globalThis.PropType<string | string[]>;
17
+ modifiers: {
18
+ type: globalThis.PropType<string | string[]>;
19
+ default: undefined;
20
+ };
15
21
  }>>, {
22
+ modifiers: string | string[];
16
23
  items: import("../..").NavItem[];
17
24
  }, {}>, {
18
25
  default?(_: {}): any;
@@ -3,6 +3,9 @@ export declare const VvNavProps: {
3
3
  type: globalThis.PropType<import("../..").NavItem[]>;
4
4
  default: () => never[];
5
5
  };
6
- modifiers: globalThis.PropType<string | string[]>;
6
+ modifiers: {
7
+ type: globalThis.PropType<string | string[]>;
8
+ default: undefined;
9
+ };
7
10
  };
8
11
  export declare const VvNavEvents: string[];
@@ -71,6 +71,7 @@ const LinkProps = {
71
71
  */
72
72
  target: {
73
73
  type: String,
74
+ default: void 0,
74
75
  validator: (value) => Object.values(AnchorTarget).includes(value)
75
76
  },
76
77
  /**
@@ -85,38 +86,56 @@ const DisabledProps = {
85
86
  /**
86
87
  * Whether the form control is disabled
87
88
  */
88
- disabled: Boolean
89
+ disabled: {
90
+ type: Boolean,
91
+ default: false
92
+ }
89
93
  };
90
94
  const ActiveProps = {
91
95
  /**
92
96
  * Whether the item is active
93
97
  */
94
- active: Boolean
98
+ active: {
99
+ type: Boolean,
100
+ default: false
101
+ }
95
102
  };
96
103
  const CurrentProps = {
97
104
  /**
98
105
  * Whether the item is current
99
106
  */
100
- current: Boolean
107
+ current: {
108
+ type: Boolean,
109
+ default: false
110
+ }
101
111
  };
102
112
  const PressedProps = {
103
113
  /**
104
114
  * Whether the item is pressed
105
115
  */
106
- pressed: Boolean
116
+ pressed: {
117
+ type: Boolean,
118
+ default: false
119
+ }
107
120
  };
108
121
  const LabelProps = {
109
122
  /**
110
123
  * The item label
111
124
  */
112
- label: [String, Number]
125
+ label: {
126
+ type: [String, Number],
127
+ default: void 0
128
+ }
113
129
  };
114
130
  ({
115
131
  /**
116
132
  * VvIcon name or props
117
133
  * @see VVIcon
118
134
  */
119
- icon: { type: [String, Object] },
135
+ icon: {
136
+ type: [String, Object],
137
+ default: void 0
138
+ },
120
139
  /**
121
140
  * VvIcon position
122
141
  */
@@ -147,7 +166,8 @@ const LabelProps = {
147
166
  * Dropdown show / hide transition name
148
167
  */
149
168
  transitionName: {
150
- type: String
169
+ type: String,
170
+ default: void 0
151
171
  },
152
172
  /**
153
173
  * Offset of the dropdown from the trigger
@@ -215,7 +235,8 @@ const LabelProps = {
215
235
  * Set dropdown width to the same as the trigger
216
236
  */
217
237
  triggerWidth: {
218
- type: Boolean
238
+ type: Boolean,
239
+ default: false
219
240
  }
220
241
  });
221
242
  const ActionProps = {
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvNavItem=t(e.vue)}(this,(function(e){"use strict";var t=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(t||{}),o=(e=>(e.before="before",e.after="after",e))(o||{}),r=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(r||{}),n=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(n||{}),l=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(l||{});const a=Symbol.for("volver"),u=Symbol.for("dropdownTrigger"),i=Symbol.for("dropdownAction"),s={to:{type:[String,Object]},href:String,target:{type:String,validator:e=>Object.values(l).includes(e)},rel:{type:String,default:"noopener noreferrer"}},d={disabled:Boolean},c={active:Boolean},f={current:Boolean},v={pressed:Boolean},p={label:[String,Number]};o.before,t.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const b={...d,...p,...v,...c,...f,...s,type:{type:String,default:r.button,validator:e=>Object.values(r).includes(e)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:n.button}};const m=e.defineComponent({name:"VvAction",props:b,emits:["click","mouseover","mouseleave"],setup(t,{expose:o,emit:r}){const l=t,s=e.inject(a),d=e.ref(null);o({$el:d});const{reference:c,bus:f,aria:v,expanded:p}=e.inject(u,{});e.watch((()=>d.value),(e=>{c&&(c.value=e)}));const b=e.computed((()=>l.pressed||(null==p?void 0:p.value))),{role:m}=e.inject(i,{}),g=e.computed((()=>{switch(!0){case l.disabled:return n.button;case void 0!==l.to:return(null==s?void 0:s.nuxt)?n.nuxtLink:n.routerLink;case void 0!==l.href:return n.a;default:return l.defaultTag}})),k=e.computed((()=>{const e={...null==v?void 0:v.value,ariaPressed:!!b.value||void 0,ariaLabel:l.ariaLabel,role:null==m?void 0:m.value};switch(g.value){case n.a:return{...e,href:l.href,target:l.target,rel:l.rel};case n.routerLink:case n.nuxtLink:return{...e,to:l.to,target:l.target};case n.button:return{...e,type:l.type,disabled:l.disabled};default:return e}})),y=e=>{l.disabled?e.preventDefault():(null==f||f.emit("click",e),r("click",e))},B=e=>{null==f||f.emit("mouseover",e),r("mouseover",e)},h=e=>{null==f||f.emit("mouseleave",e),r("mouseleave",e)};return(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(g)),e.mergeProps(e.unref(k),{ref_key:"element",ref:d,class:{active:t.active,pressed:e.unref(b),disabled:t.disabled,current:t.current},onClickPassive:y,onMouseoverPassive:B,onMouseleavePassive:h}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]))])),_:3},16,["class"]))}}),g={class:"vv-nav__item",role:"presentation"};return e.defineComponent({name:"VvNavItem",inheritAttrs:!1,setup:t=>(t,o)=>(e.openBlock(),e.createElementBlock("li",g,[e.createVNode(m,e.mergeProps(t.$attrs,{class:"vv-nav__item-label"}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16)]))})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvNavItem=t(e.vue)}(this,(function(e){"use strict";var t=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(t||{}),o=(e=>(e.before="before",e.after="after",e))(o||{}),r=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(r||{}),n=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(n||{}),l=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(l||{});const a=Symbol.for("volver"),u=Symbol.for("dropdownTrigger"),i=Symbol.for("dropdownAction"),s={to:{type:[String,Object]},href:String,target:{type:String,default:void 0,validator:e=>Object.values(l).includes(e)},rel:{type:String,default:"noopener noreferrer"}},d={disabled:{type:Boolean,default:!1}},c={active:{type:Boolean,default:!1}},f={current:{type:Boolean,default:!1}},v={pressed:{type:Boolean,default:!1}},p={label:{type:[String,Number],default:void 0}};o.before,t.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const b={...d,...p,...v,...c,...f,...s,type:{type:String,default:r.button,validator:e=>Object.values(r).includes(e)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:n.button}};const m=e.defineComponent({name:"VvAction",props:b,emits:["click","mouseover","mouseleave"],setup(t,{expose:o,emit:r}){const l=t,s=e.inject(a),d=e.ref(null);o({$el:d});const{reference:c,bus:f,aria:v,expanded:p}=e.inject(u,{});e.watch((()=>d.value),(e=>{c&&(c.value=e)}));const b=e.computed((()=>l.pressed||(null==p?void 0:p.value))),{role:m}=e.inject(i,{}),g=e.computed((()=>{switch(!0){case l.disabled:return n.button;case void 0!==l.to:return(null==s?void 0:s.nuxt)?n.nuxtLink:n.routerLink;case void 0!==l.href:return n.a;default:return l.defaultTag}})),y=e.computed((()=>{const e={...null==v?void 0:v.value,ariaPressed:!!b.value||void 0,ariaLabel:l.ariaLabel,role:null==m?void 0:m.value};switch(g.value){case n.a:return{...e,href:l.href,target:l.target,rel:l.rel};case n.routerLink:case n.nuxtLink:return{...e,to:l.to,target:l.target};case n.button:return{...e,type:l.type,disabled:l.disabled};default:return e}})),k=e=>{l.disabled?e.preventDefault():(null==f||f.emit("click",e),r("click",e))},B=e=>{null==f||f.emit("mouseover",e),r("mouseover",e)},h=e=>{null==f||f.emit("mouseleave",e),r("mouseleave",e)};return(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(g)),e.mergeProps(e.unref(y),{ref_key:"element",ref:d,class:{active:t.active,pressed:e.unref(b),disabled:t.disabled,current:t.current},onClickPassive:k,onMouseoverPassive:B,onMouseleavePassive:h}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]))])),_:3},16,["class"]))}}),g={class:"vv-nav__item",role:"presentation"};return e.defineComponent({name:"VvNavItem",inheritAttrs:!1,setup:t=>(t,o)=>(e.openBlock(),e.createElementBlock("li",g,[e.createVNode(m,e.mergeProps(t.$attrs,{class:"vv-nav__item-label"}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16)]))})}));