@volverjs/ui-vue 0.0.10-beta.14 → 0.0.10-beta.16

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 +108 -124
  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 +179 -233
  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 +1 -1
  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
@@ -17,6 +17,7 @@ import {
17
17
  ButtonType,
18
18
  ActionTag,
19
19
  } from '@/constants'
20
+ import type { VvIconProps } from '@/components/VvIcon'
20
21
 
21
22
  export const LinkProps = {
22
23
  /**
@@ -35,6 +36,7 @@ export const LinkProps = {
35
36
  */
36
37
  target: {
37
38
  type: String as PropType<`${AnchorTarget}`>,
39
+ default: undefined,
38
40
  validator: (value: AnchorTarget) =>
39
41
  Object.values(AnchorTarget).includes(value),
40
42
  },
@@ -51,29 +53,35 @@ export const ValidProps = {
51
53
  /**
52
54
  * Valid status
53
55
  */
54
- valid: Boolean,
56
+ valid: { type: Boolean, default: false },
55
57
  /**
56
58
  * Valid label
57
59
  */
58
- validLabel: [String, Array],
60
+ validLabel: { type: [String, Array], default: undefined },
59
61
  }
60
62
 
61
63
  export const InvalidProps = {
62
64
  /**
63
65
  * Invalid status
64
66
  */
65
- invalid: Boolean,
67
+ invalid: {
68
+ type: Boolean,
69
+ default: false,
70
+ },
66
71
  /**
67
72
  * Invalid label
68
73
  */
69
- invalidLabel: [String, Array],
74
+ invalidLabel: { type: [String, Array], default: undefined },
70
75
  }
71
76
 
72
77
  export const LoadingProps = {
73
78
  /**
74
79
  * Loading status
75
80
  */
76
- loading: Boolean,
81
+ loading: {
82
+ type: Boolean,
83
+ default: false,
84
+ },
77
85
  /**
78
86
  * Loading label
79
87
  */
@@ -87,56 +95,80 @@ export const DisabledProps = {
87
95
  /**
88
96
  * Whether the form control is disabled
89
97
  */
90
- disabled: Boolean,
98
+ disabled: {
99
+ type: Boolean,
100
+ default: false,
101
+ },
91
102
  }
92
103
 
93
104
  export const SelectedProps = {
94
105
  /**
95
106
  * Whether the item is selected
96
107
  */
97
- selected: Boolean,
108
+ selected: {
109
+ type: Boolean,
110
+ default: false,
111
+ },
98
112
  }
99
113
 
100
114
  export const ActiveProps = {
101
115
  /**
102
116
  * Whether the item is active
103
117
  */
104
- active: Boolean,
118
+ active: {
119
+ type: Boolean,
120
+ default: false,
121
+ },
105
122
  }
106
123
 
107
124
  export const CurrentProps = {
108
125
  /**
109
126
  * Whether the item is current
110
127
  */
111
- current: Boolean,
128
+ current: {
129
+ type: Boolean,
130
+ default: false,
131
+ },
112
132
  }
113
133
 
114
134
  export const PressedProps = {
115
135
  /**
116
136
  * Whether the item is pressed
117
137
  */
118
- pressed: Boolean,
138
+ pressed: {
139
+ type: Boolean,
140
+ default: false,
141
+ },
119
142
  }
120
143
 
121
144
  export const LabelProps = {
122
145
  /**
123
146
  * The item label
124
147
  */
125
- label: [String, Number],
148
+ label: {
149
+ type: [String, Number],
150
+ default: undefined,
151
+ },
126
152
  }
127
153
 
128
154
  export const ReadonlyProps = {
129
155
  /**
130
156
  * The value is not editable
131
157
  */
132
- readonly: Boolean,
158
+ readonly: {
159
+ type: Boolean,
160
+ default: false,
161
+ },
133
162
  }
134
163
 
135
164
  export const ModifiersProps = {
136
165
  /**
137
166
  * Component BEM modifiers
138
167
  */
139
- modifiers: [String, Array] as PropType<string | string[]>,
168
+ modifiers: {
169
+ type: [String, Array] as PropType<string | string[]>,
170
+ default: undefined,
171
+ },
140
172
  }
141
173
 
142
174
  export const HintProps = {
@@ -181,7 +213,10 @@ export const DebounceProps = {
181
213
  /**
182
214
  * Milliseconds to wait before emitting the input event
183
215
  */
184
- debounce: [Number, String],
216
+ debounce: {
217
+ type: [Number, String],
218
+ default: undefined,
219
+ },
185
220
  }
186
221
 
187
222
  export const IconProps = {
@@ -189,7 +224,10 @@ export const IconProps = {
189
224
  * VvIcon name or props
190
225
  * @see VVIcon
191
226
  */
192
- icon: { type: [String, Object] },
227
+ icon: {
228
+ type: [String, Object] as PropType<string | VvIconProps>,
229
+ default: undefined,
230
+ },
193
231
  /**
194
232
  * VvIcon position
195
233
  */
@@ -213,7 +251,10 @@ export const FloatingLabelProps = {
213
251
  /**
214
252
  * If true the label will be floating
215
253
  */
216
- floating: Boolean,
254
+ floating: {
255
+ type: Boolean,
256
+ default: false,
257
+ },
217
258
  }
218
259
 
219
260
  export const UnselectableProps = {
@@ -255,6 +296,7 @@ export const DropdownProps = {
255
296
  */
256
297
  transitionName: {
257
298
  type: String,
299
+ default: undefined,
258
300
  },
259
301
  /**
260
302
  * Offset of the dropdown from the trigger
@@ -325,6 +367,7 @@ export const DropdownProps = {
325
367
  */
326
368
  triggerWidth: {
327
369
  type: Boolean,
370
+ default: false,
328
371
  },
329
372
  }
330
373
 
@@ -343,7 +386,10 @@ export const AutofocusProps = {
343
386
  * Global attribute autofocus
344
387
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus
345
388
  */
346
- autofocus: Boolean,
389
+ autofocus: {
390
+ type: Boolean,
391
+ default: false,
392
+ },
347
393
  }
348
394
 
349
395
  export const AutocompleteProps = {
@@ -377,28 +423,34 @@ export const InputTextareaProps = {
377
423
  * Available for input types: text, search, url, tel, email, password
378
424
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength
379
425
  */
380
- minlength: [String, Number],
426
+ minlength: { type: [String, Number], default: undefined },
381
427
  /**
382
428
  * Input / Textarea maxlength
383
429
  * Maximum length (number of characters) of value
384
430
  * Available for input types: text, search, url, tel, email, password
385
431
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength
386
432
  */
387
- maxlength: [String, Number],
433
+ maxlength: { type: [String, Number], default: undefined },
388
434
  /**
389
435
  * Input / Textarea placeholder
390
436
  * Text that appears in the form control when it has no value set
391
437
  * Available for input types: text, search, url, tel, email, password, number
392
438
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder
393
439
  */
394
- placeholder: String,
440
+ placeholder: {
441
+ type: String,
442
+ default: undefined,
443
+ },
395
444
  /**
396
445
  * Input / Textarea required
397
446
  * A value is required or must be check for the form to be submittable
398
447
  * Available for all input types except color
399
448
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#required
400
449
  */
401
- required: Boolean,
450
+ required: {
451
+ type: Boolean,
452
+ default: false,
453
+ },
402
454
  }
403
455
 
404
456
  export const CheckboxRadioProps = {
@@ -416,11 +468,17 @@ export const CheckboxRadioProps = {
416
468
  * Input value
417
469
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value
418
470
  */
419
- value: [String, Number, Boolean],
471
+ value: {
472
+ type: [String, Number, Boolean],
473
+ default: undefined,
474
+ },
420
475
  /**
421
476
  * Input value
422
477
  */
423
- modelValue: [Object, Number, Boolean, String],
478
+ modelValue: {
479
+ type: [Object, Number, Boolean, String],
480
+ default: undefined,
481
+ },
424
482
  }
425
483
 
426
484
  export const CheckboxRadioGroupProps = {
@@ -436,7 +494,10 @@ export const CheckboxRadioGroupProps = {
436
494
  /**
437
495
  * Input value
438
496
  */
439
- modelValue: [String, Array, Boolean, Number, Symbol],
497
+ modelValue: {
498
+ type: [String, Array, Boolean, Number, Symbol],
499
+ default: undefined,
500
+ },
440
501
  /**
441
502
  * Input name
442
503
  */
@@ -444,7 +505,10 @@ export const CheckboxRadioGroupProps = {
444
505
  /**
445
506
  * If true, the group will be displayed in a vertical column
446
507
  */
447
- vertical: Boolean,
508
+ vertical: {
509
+ type: Boolean,
510
+ default: false,
511
+ },
448
512
  }
449
513
 
450
514
  export const ActionProps = {
@@ -1,11 +1,11 @@
1
- import { VvIconProps } from '@/components/VvIcon'
1
+ import { VvIconPropsDefaults } from '@/components/VvIcon'
2
2
  import normal from '@/assets/icons/normal.json'
3
3
  import { ModifiersArgTypes } from '@/stories/argTypes'
4
4
 
5
5
  export const defaultArgs = {
6
- ...propsToObject(VvIconProps),
6
+ ...VvIconPropsDefaults,
7
7
  name: 'add-circle',
8
- width: 48
8
+ width: 48,
9
9
  }
10
10
 
11
11
  export const argTypes = {