@volverjs/ui-vue 0.0.10-beta.2 → 0.0.10-beta.21

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 (258) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +98 -3
  3. package/auto-imports.d.ts +6 -2
  4. package/bin/icons.cjs +1 -1
  5. package/bin/icons.js +23 -16
  6. package/dist/Volver.d.ts +1 -1
  7. package/dist/components/VvAccordion/VvAccordion.es.js +70 -14
  8. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  9. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +13 -6
  10. package/dist/components/VvAccordion/index.d.ts +4 -1
  11. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +117 -38
  12. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  13. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +15 -8
  14. package/dist/components/VvAccordionGroup/index.d.ts +4 -1
  15. package/dist/components/VvAction/VvAction.es.js +58 -13
  16. package/dist/components/VvAction/VvAction.umd.js +1 -1
  17. package/dist/components/VvAction/VvAction.vue.d.ts +59 -12
  18. package/dist/components/VvAction/index.d.ts +25 -4
  19. package/dist/components/VvAlert/VvAlert.es.js +195 -152
  20. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  21. package/dist/components/VvAlert/VvAlert.vue.d.ts +18 -8
  22. package/dist/components/VvAlert/index.d.ts +9 -5
  23. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +240 -174
  24. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  25. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +13 -6
  26. package/dist/components/VvAlertGroup/index.d.ts +6 -2
  27. package/dist/components/VvAvatar/VvAvatar.es.js +54 -9
  28. package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
  29. package/dist/components/VvAvatar/VvAvatar.vue.d.ts +12 -4
  30. package/dist/components/VvAvatar/index.d.ts +4 -1
  31. package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +111 -36
  32. package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
  33. package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +10 -3
  34. package/dist/components/VvAvatarGroup/index.d.ts +4 -1
  35. package/dist/components/VvBadge/VvBadge.es.js +73 -17
  36. package/dist/components/VvBadge/VvBadge.umd.js +1 -1
  37. package/dist/components/VvBadge/VvBadge.vue.d.ts +12 -4
  38. package/dist/components/VvBadge/index.d.ts +4 -1
  39. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +259 -49
  40. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  41. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +27 -7
  42. package/dist/components/VvBreadcrumb/index.d.ts +6 -10
  43. package/dist/components/VvButton/VvButton.es.js +187 -141
  44. package/dist/components/VvButton/VvButton.umd.js +1 -1
  45. package/dist/components/VvButton/VvButton.vue.d.ts +101 -27
  46. package/dist/components/VvButton/index.d.ts +41 -14
  47. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +69 -16
  48. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  49. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +23 -10
  50. package/dist/components/VvButtonGroup/index.d.ts +8 -2
  51. package/dist/components/VvCard/VvCard.es.js +84 -25
  52. package/dist/components/VvCard/VvCard.umd.js +1 -1
  53. package/dist/components/VvCard/VvCard.vue.d.ts +12 -4
  54. package/dist/components/VvCard/index.d.ts +4 -1
  55. package/dist/components/VvCheckbox/VvCheckbox.es.js +91 -22
  56. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  57. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +104 -32
  58. package/dist/components/VvCheckbox/index.d.ts +45 -12
  59. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +180 -67
  60. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  61. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +100 -29
  62. package/dist/components/VvCheckboxGroup/index.d.ts +45 -12
  63. package/dist/components/VvCombobox/VvCombobox.es.js +758 -531
  64. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  65. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +181 -108
  66. package/dist/components/VvCombobox/index.d.ts +53 -22
  67. package/dist/components/VvDialog/VvDialog.es.js +136 -141
  68. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  69. package/dist/components/VvDialog/VvDialog.vue.d.ts +4 -4
  70. package/dist/components/VvDropdown/VvDropdown.es.js +121 -55
  71. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  72. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +101 -75
  73. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +72 -11
  74. package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +1 -1
  75. package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +12 -4
  76. package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +26 -7
  77. package/dist/components/VvDropdown/index.d.ts +16 -11
  78. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +82 -22
  79. package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
  80. package/dist/components/VvDropdownItem/VvDropdownItem.es.js +13 -7
  81. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +56 -8
  82. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
  83. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +76 -17
  84. package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
  85. package/dist/components/VvIcon/VvIcon.es.js +23 -96
  86. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  87. package/dist/components/VvIcon/VvIcon.vue.d.ts +23 -66
  88. package/dist/components/VvIcon/index.d.ts +33 -48
  89. package/dist/components/VvInputFile/VvInputFile.es.js +1734 -0
  90. package/dist/components/VvInputFile/VvInputFile.umd.js +1 -0
  91. package/dist/components/VvInputFile/VvInputFile.vue.d.ts +313 -0
  92. package/dist/components/VvInputFile/index.d.ts +179 -0
  93. package/dist/components/VvInputText/VvInputClearAction.d.ts +7 -5
  94. package/dist/components/VvInputText/VvInputPasswordAction.d.ts +10 -8
  95. package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
  96. package/dist/components/VvInputText/VvInputText.es.js +331 -293
  97. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  98. package/dist/components/VvInputText/VvInputText.vue.d.ts +162 -55
  99. package/dist/components/VvInputText/index.d.ts +71 -29
  100. package/dist/components/VvNav/VvNav.es.js +151 -73
  101. package/dist/components/VvNav/VvNav.umd.js +1 -1
  102. package/dist/components/VvNav/VvNav.vue.d.ts +41 -14
  103. package/dist/components/VvNav/VvNavItem.vue.d.ts +9 -0
  104. package/dist/components/VvNav/VvNavSeparator.vue.d.ts +2 -0
  105. package/dist/components/VvNav/index.d.ts +5 -13
  106. package/dist/components/VvNavItem/VvNavItem.es.js +436 -0
  107. package/dist/components/VvNavItem/VvNavItem.umd.js +1 -0
  108. package/dist/components/VvNavSeparator/VvNavSeparator.es.js +24 -0
  109. package/dist/components/VvNavSeparator/VvNavSeparator.umd.js +1 -0
  110. package/dist/components/VvProgress/VvProgress.es.js +65 -14
  111. package/dist/components/VvProgress/VvProgress.umd.js +1 -1
  112. package/dist/components/VvProgress/VvProgress.vue.d.ts +10 -3
  113. package/dist/components/VvProgress/index.d.ts +4 -1
  114. package/dist/components/VvRadio/VvRadio.es.js +89 -21
  115. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  116. package/dist/components/VvRadio/VvRadio.vue.d.ts +102 -30
  117. package/dist/components/VvRadio/index.d.ts +44 -11
  118. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +180 -66
  119. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  120. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +100 -29
  121. package/dist/components/VvRadioGroup/index.d.ts +45 -12
  122. package/dist/components/VvSelect/VvSelect.es.js +248 -226
  123. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  124. package/dist/components/VvSelect/VvSelect.vue.d.ts +112 -39
  125. package/dist/components/VvSelect/index.d.ts +48 -14
  126. package/dist/components/VvTab/VvTab.es.js +256 -110
  127. package/dist/components/VvTab/VvTab.umd.js +1 -1
  128. package/dist/components/VvTab/VvTab.vue.d.ts +50 -13
  129. package/dist/components/VvTab/index.d.ts +13 -4
  130. package/dist/components/VvTextarea/VvTextarea.es.js +229 -212
  131. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  132. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +155 -48
  133. package/dist/components/VvTextarea/index.d.ts +68 -19
  134. package/dist/components/VvTooltip/VvTooltip.es.js +72 -17
  135. package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
  136. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +10 -3
  137. package/dist/components/VvTooltip/index.d.ts +4 -1
  138. package/dist/components/common/HintSlot.d.ts +1 -1
  139. package/dist/components/index.d.ts +10 -0
  140. package/dist/components/index.es.js +2902 -1329
  141. package/dist/components/index.umd.js +1 -1
  142. package/dist/composables/alert/useAlert.d.ts +37 -4
  143. package/dist/composables/dropdown/useProvideDropdown.d.ts +1 -1
  144. package/dist/composables/index.d.ts +1 -0
  145. package/dist/composables/index.es.js +88 -1
  146. package/dist/composables/index.umd.js +1 -1
  147. package/dist/composables/useBlurhash.d.ts +7 -0
  148. package/dist/composables/useComponentIcon.d.ts +9 -8
  149. package/dist/composables/useVolver.d.ts +1 -1
  150. package/dist/directives/index.d.ts +3 -5
  151. package/dist/directives/index.es.js +92 -31
  152. package/dist/directives/index.umd.js +1 -1
  153. package/dist/directives/v-tooltip.es.js +90 -26
  154. package/dist/directives/v-tooltip.umd.js +1 -1
  155. package/dist/icons.es.js +210 -210
  156. package/dist/icons.umd.js +1 -1
  157. package/dist/index.d.ts +3 -1
  158. package/dist/index.es.js +81 -16
  159. package/dist/index.umd.js +1 -1
  160. package/dist/props/index.d.ts +287 -73
  161. package/dist/resolvers/unplugin.d.ts +6 -1
  162. package/dist/resolvers/unplugin.es.js +78 -10
  163. package/dist/resolvers/unplugin.umd.js +1 -1
  164. package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +72 -84
  165. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +623 -461
  166. package/dist/stories/AlertGroup/AlertGroupWithComposable.stories.d.ts +1 -1
  167. package/dist/stories/Blurhash/BlurhashComposable.stories.d.ts +4 -0
  168. package/dist/stories/Combobox/Combobox.settings.d.ts +8 -0
  169. package/dist/stories/Icon/Icon.settings.d.ts +1 -0
  170. package/dist/stories/InputFile/InputFile.settings.d.ts +56 -0
  171. package/dist/stories/InputFile/InputFile.stories.d.ts +12 -0
  172. package/dist/stories/InputFile/InputFileDropArea.stories.d.ts +9 -0
  173. package/dist/stories/InputFile/InputFileIconPosition.stories.d.ts +8 -0
  174. package/dist/stories/InputFile/InputFileSlots.stories.d.ts +7 -0
  175. package/dist/stories/Tab/Tab.settings.d.ts +4 -37
  176. package/dist/types/alert.d.ts +13 -0
  177. package/dist/types/blurhash.d.ts +12 -0
  178. package/dist/types/floating-ui.d.ts +6 -0
  179. package/dist/types/generic.d.ts +4 -0
  180. package/dist/types/group.d.ts +37 -0
  181. package/dist/types/index.d.ts +7 -0
  182. package/dist/types/input-file.d.ts +16 -0
  183. package/dist/types/nav.d.ts +18 -0
  184. package/dist/utils/ObjectUtilities.d.ts +0 -1
  185. package/dist/workers/blurhash.d.ts +1 -0
  186. package/package.json +97 -80
  187. package/src/Volver.ts +31 -20
  188. package/src/assets/icons/detailed.json +1 -1
  189. package/src/assets/icons/normal.json +1 -1
  190. package/src/assets/icons/simple.json +1 -1
  191. package/src/components/VvAccordion/VvAccordion.vue +2 -2
  192. package/src/components/VvAction/VvAction.vue +5 -2
  193. package/src/components/VvAlert/index.ts +1 -3
  194. package/src/components/VvAlertGroup/index.ts +2 -1
  195. package/src/components/VvBreadcrumb/VvBreadcrumb.vue +20 -19
  196. package/src/components/VvBreadcrumb/index.ts +2 -8
  197. package/src/components/VvButton/VvButton.vue +6 -6
  198. package/src/components/VvButton/index.ts +2 -4
  199. package/src/components/VvCombobox/VvCombobox.vue +24 -16
  200. package/src/components/VvCombobox/index.ts +4 -0
  201. package/src/components/VvIcon/VvIcon.vue +2 -2
  202. package/src/components/VvIcon/index.ts +35 -48
  203. package/src/components/VvInputFile/VvInputFile.vue +365 -0
  204. package/src/components/VvInputFile/index.ts +116 -0
  205. package/src/components/VvInputText/VvInputClearAction.ts +10 -6
  206. package/src/components/VvInputText/VvInputPasswordAction.ts +13 -9
  207. package/src/components/VvInputText/VvInputText.vue +17 -18
  208. package/src/components/VvInputText/index.ts +7 -15
  209. package/src/components/VvNav/VvNav.vue +30 -50
  210. package/src/components/VvNav/VvNavItem.vue +18 -0
  211. package/src/components/VvNav/VvNavSeparator.vue +11 -0
  212. package/src/components/VvNav/index.ts +2 -15
  213. package/src/components/VvSelect/VvSelect.vue +5 -8
  214. package/src/components/VvTab/VvTab.vue +63 -35
  215. package/src/components/VvTab/index.ts +10 -4
  216. package/src/components/VvTextarea/VvTextarea.vue +6 -9
  217. package/src/components/index.ts +10 -0
  218. package/src/composables/index.ts +1 -0
  219. package/src/composables/useBlurhash.ts +76 -0
  220. package/src/composables/useComponentIcon.ts +15 -14
  221. package/src/composables/useUniqueId.ts +2 -2
  222. package/src/directives/index.ts +3 -6
  223. package/src/directives/v-tooltip.ts +19 -10
  224. package/src/index.ts +3 -1
  225. package/src/props/index.ts +115 -27
  226. package/src/resolvers/unplugin.ts +24 -14
  227. package/src/stories/AlertGroup/AlertGroupWithComposable.stories.ts +2 -2
  228. package/src/stories/Blurhash/BlurhashComposable.stories.ts +195 -0
  229. package/src/stories/Combobox/Combobox.settings.ts +8 -0
  230. package/src/stories/Icon/Icon.settings.ts +3 -3
  231. package/src/stories/InputFile/InputFile.settings.ts +36 -0
  232. package/src/stories/InputFile/InputFile.stories.ts +89 -0
  233. package/src/stories/InputFile/InputFileDropArea.stories.ts +56 -0
  234. package/src/stories/InputFile/InputFileIconPosition.stories.ts +43 -0
  235. package/src/stories/InputFile/InputFileSlots.stories.ts +33 -0
  236. package/src/stories/Nav/Nav.settings.ts +3 -4
  237. package/src/stories/Nav/Nav.test.ts +4 -15
  238. package/src/stories/Tab/Tab.settings.ts +9 -9
  239. package/src/stories/Tab/Tab.stories.ts +2 -2
  240. package/src/stories/Tab/Tab.test.ts +6 -14
  241. package/src/stories/argTypes.ts +1 -1
  242. package/src/types/blurhash.ts +21 -0
  243. package/src/types/generic.ts +6 -0
  244. package/src/types/index.ts +7 -0
  245. package/src/types/input-file.ts +18 -0
  246. package/src/types/nav.ts +20 -0
  247. package/src/utils/ObjectUtilities.ts +0 -11
  248. package/src/workers/blurhash.ts +9 -0
  249. package/dist/components/VvNav/VvNavItemTitle.vue.d.ts +0 -6
  250. package/dist/components/VvNav/VvNavSeparator.d.ts +0 -2
  251. package/dist/components/VvNavItemTitle/VvNavItemTitle.es.js +0 -19
  252. package/dist/components/VvNavItemTitle/VvNavItemTitle.umd.js +0 -1
  253. package/src/components/VvNav/VvNavItemTitle.vue +0 -11
  254. package/src/components/VvNav/VvNavSeparator.ts +0 -8
  255. package/src/types/generic.d.ts +0 -6
  256. /package/src/types/{alert.d.ts → alert.ts} +0 -0
  257. /package/src/types/{floating-ui.d.ts → floating-ui.ts} +0 -0
  258. /package/src/types/{group.d.ts → group.ts} +0 -0
@@ -35,6 +35,13 @@ var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
35
35
  ButtonType2["reset"] = "reset";
36
36
  return ButtonType2;
37
37
  })(ButtonType || {});
38
+ var ActionTag = /* @__PURE__ */ ((ActionTag2) => {
39
+ ActionTag2["nuxtLink"] = "nuxt-link";
40
+ ActionTag2["routerLink"] = "router-link";
41
+ ActionTag2["a"] = "a";
42
+ ActionTag2["button"] = "button";
43
+ return ActionTag2;
44
+ })(ActionTag || {});
38
45
  var ActionRoles = /* @__PURE__ */ ((ActionRoles2) => {
39
46
  ActionRoles2["button"] = "button";
40
47
  ActionRoles2["link"] = "link";
@@ -83,13 +90,19 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
83
90
  }
84
91
  });
85
92
  return (_ctx, _cache) => {
86
- return openBlock(), createElementBlock("div", mergeProps({ role: unref(role) }, {
87
- ref_key: "element",
88
- ref: element,
89
- class: ["vv-dropdown__item", { "focus-visible": unref(focused) || unref(focusedWithin) }]
90
- }), [
91
- renderSlot(_ctx.$slots, "default")
92
- ], 16);
93
+ return openBlock(), createElementBlock(
94
+ "div",
95
+ mergeProps({ role: unref(role) }, {
96
+ ref_key: "element",
97
+ ref: element,
98
+ class: ["vv-dropdown__item", { "focus-visible": unref(focused) || unref(focusedWithin) }]
99
+ }),
100
+ [
101
+ renderSlot(_ctx.$slots, "default")
102
+ ],
103
+ 16
104
+ /* FULL_PROPS */
105
+ );
93
106
  };
94
107
  }
95
108
  });
@@ -110,6 +123,7 @@ const LinkProps = {
110
123
  */
111
124
  target: {
112
125
  type: String,
126
+ default: void 0,
113
127
  validator: (value) => Object.values(AnchorTarget).includes(value)
114
128
  },
115
129
  /**
@@ -124,44 +138,74 @@ const DisabledProps = {
124
138
  /**
125
139
  * Whether the form control is disabled
126
140
  */
127
- disabled: Boolean
141
+ disabled: {
142
+ type: Boolean,
143
+ default: false
144
+ }
128
145
  };
129
146
  const SelectedProps = {
130
147
  /**
131
148
  * Whether the item is selected
132
149
  */
133
- selected: Boolean
150
+ selected: {
151
+ type: Boolean,
152
+ default: false
153
+ }
134
154
  };
135
155
  const ActiveProps = {
136
156
  /**
137
157
  * Whether the item is active
138
158
  */
139
- active: Boolean
159
+ active: {
160
+ type: Boolean,
161
+ default: false
162
+ }
163
+ };
164
+ const CurrentProps = {
165
+ /**
166
+ * Whether the item is current
167
+ */
168
+ current: {
169
+ type: Boolean,
170
+ default: false
171
+ }
140
172
  };
141
173
  const PressedProps = {
142
174
  /**
143
175
  * Whether the item is pressed
144
176
  */
145
- pressed: Boolean
177
+ pressed: {
178
+ type: Boolean,
179
+ default: false
180
+ }
146
181
  };
147
182
  const LabelProps = {
148
183
  /**
149
184
  * The item label
150
185
  */
151
- label: [String, Number]
186
+ label: {
187
+ type: [String, Number],
188
+ default: void 0
189
+ }
152
190
  };
153
191
  const ModifiersProps = {
154
192
  /**
155
193
  * Component BEM modifiers
156
194
  */
157
- modifiers: [String, Array]
195
+ modifiers: {
196
+ type: [String, Array],
197
+ default: void 0
198
+ }
158
199
  };
159
200
  ({
160
201
  /**
161
202
  * VvIcon name or props
162
203
  * @see VVIcon
163
204
  */
164
- icon: { type: [String, Object] },
205
+ icon: {
206
+ type: [String, Object],
207
+ default: void 0
208
+ },
165
209
  /**
166
210
  * VvIcon position
167
211
  */
@@ -198,7 +242,8 @@ const UnselectableProps = {
198
242
  * Dropdown show / hide transition name
199
243
  */
200
244
  transitionName: {
201
- type: String
245
+ type: String,
246
+ default: void 0
202
247
  },
203
248
  /**
204
249
  * Offset of the dropdown from the trigger
@@ -266,7 +311,8 @@ const UnselectableProps = {
266
311
  * Set dropdown width to the same as the trigger
267
312
  */
268
313
  triggerWidth: {
269
- type: Boolean
314
+ type: Boolean,
315
+ default: false
270
316
  }
271
317
  });
272
318
  ({
@@ -274,6 +320,7 @@ const UnselectableProps = {
274
320
  ...LabelProps,
275
321
  ...PressedProps,
276
322
  ...ActiveProps,
323
+ ...CurrentProps,
277
324
  ...LinkProps,
278
325
  /**
279
326
  * Button type
@@ -289,6 +336,13 @@ const UnselectableProps = {
289
336
  ariaLabel: {
290
337
  type: String,
291
338
  default: void 0
339
+ },
340
+ /**
341
+ * Default tag for the action
342
+ */
343
+ defaultTag: {
344
+ type: String,
345
+ default: ActionTag.button
292
346
  }
293
347
  });
294
348
  function useModifiers(prefix, modifiers, others) {
@@ -369,11 +423,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
369
423
  title: unref(hintLabel)
370
424
  }, [
371
425
  renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps({ disabled: _ctx.disabled, selected: _ctx.selected, unselectable: _ctx.unselectable })), () => [
372
- createTextVNode(toDisplayString(unref(hintLabel)), 1)
426
+ createTextVNode(
427
+ toDisplayString(unref(hintLabel)),
428
+ 1
429
+ /* TEXT */
430
+ )
373
431
  ])
374
432
  ], 8, _hoisted_1)
375
433
  ]),
376
434
  _: 3
435
+ /* FORWARDED */
377
436
  }, 8, ["class", "tabindex", "aria-selected", "aria-disabled"]);
378
437
  };
379
438
  }
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue"),require("mitt"),require("@vueuse/core")):"function"==typeof define&&define.amd?define(["vue","mitt","@vueuse/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvDropdownOption=t(e.vue,null,e.core)}(this,(function(e,t,o){"use strict";var n=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(n||{}),l=(e=>(e.before="before",e.after="after",e))(l||{}),r=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(r||{}),s=(e=>(e.button="button",e.link="link",e.menuitem="menuitem",e))(s||{});const d=Symbol.for("dropdownItem"),i=Symbol.for("dropdownAction");const a=e.defineComponent({name:"VvDropdownItem",setup(t){const{role:n,expanded:l}=e.inject(d,{}),r=e.ref(null);!function({expanded:t}){e.provide(i,{role:e.ref(s.menuitem),expanded:t})}({expanded:l});const a=o.useElementHover(r),{focused:u}=o.useFocus(r),{focused:c}=o.useFocusWithin(r);return e.watch(a,(e=>{e&&(u.value=!0)})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({role:e.unref(n)},{ref_key:"element",ref:r,class:["vv-dropdown__item",{"focus-visible":e.unref(u)||e.unref(c)}]}),[e.renderSlot(t.$slots,"default")],16))}}),u={disabled:Boolean},c={selected:Boolean},f=(Boolean,Boolean,{modifiers:[String,Array]});l.before;const p={unselectable:{type:Boolean,default:!0}};n.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,r.button;const b=["title"];return e.defineComponent({name:"VvDropdownOption",props:{...u,...c,...p,...f,deselectHintLabel:{type:String},selectHintLabel:{type:String},selectedHintLabel:{type:String}},setup(t){const o=t,{modifiers:n}=e.toRefs(o),l=function(t,o,n){return e.computed((()=>{const l={[t]:!0},r="string"==typeof(null==o?void 0:o.value)?o.value.split(" "):null==o?void 0:o.value;return r&&Array.isArray(r)&&r.forEach((e=>{e&&(l[`${t}--${e}`]=!0)})),n&&Object.keys(n.value).forEach((o=>{l[`${t}--${o}`]=e.unref(n.value[o])})),l}))}("vv-dropdown-option",n,e.computed((()=>({disabled:o.disabled,selected:o.selected,unselectable:o.unselectable&&o.selected})))),r=e.computed((()=>o.selected?o.unselectable?o.deselectHintLabel:o.selectedHintLabel:o.disabled?void 0:o.selectHintLabel));return(t,o)=>(e.openBlock(),e.createBlock(a,{class:e.normalizeClass(e.unref(l)),tabindex:t.disabled?-1:0,"aria-selected":t.selected,"aria-disabled":t.disabled},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default"),e.createElementVNode("span",{class:"vv-dropdown-option__hint",title:e.unref(r)},[e.renderSlot(t.$slots,"hint",e.normalizeProps(e.guardReactiveProps({disabled:t.disabled,selected:t.selected,unselectable:t.unselectable})),(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)),1)]))],8,b)])),_:3},8,["class","tabindex","aria-selected","aria-disabled"]))}})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue"),require("mitt"),require("@vueuse/core")):"function"==typeof define&&define.amd?define(["vue","mitt","@vueuse/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvDropdownOption=t(e.vue,null,e.core)}(this,(function(e,t,o){"use strict";var n=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(n||{}),l=(e=>(e.before="before",e.after="after",e))(l||{}),r=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(r||{}),d=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(d||{}),a=(e=>(e.button="button",e.link="link",e.menuitem="menuitem",e))(a||{});const i=Symbol.for("dropdownItem"),s=Symbol.for("dropdownAction");const u=e.defineComponent({name:"VvDropdownItem",setup(t){const{role:n,expanded:l}=e.inject(i,{}),r=e.ref(null);!function({expanded:t}){e.provide(s,{role:e.ref(a.menuitem),expanded:t})}({expanded:l});const d=o.useElementHover(r),{focused:u}=o.useFocus(r),{focused:c}=o.useFocusWithin(r);return e.watch(d,(e=>{e&&(u.value=!0)})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({role:e.unref(n)},{ref_key:"element",ref:r,class:["vv-dropdown__item",{"focus-visible":e.unref(u)||e.unref(c)}]}),[e.renderSlot(t.$slots,"default")],16))}}),c={disabled:{type:Boolean,default:!1}},f={selected:{type:Boolean,default:!1}},p=(Boolean,Boolean,Boolean,{modifiers:{type:[String,Array],default:void 0}});l.before;const b={unselectable:{type:Boolean,default:!0}};n.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,r.button,d.button;const m=["title"];return e.defineComponent({name:"VvDropdownOption",props:{...c,...f,...b,...p,deselectHintLabel:{type:String},selectHintLabel:{type:String},selectedHintLabel:{type:String}},setup(t){const o=t,{modifiers:n}=e.toRefs(o),l=function(t,o,n){return e.computed((()=>{const l={[t]:!0},r="string"==typeof(null==o?void 0:o.value)?o.value.split(" "):null==o?void 0:o.value;return r&&Array.isArray(r)&&r.forEach((e=>{e&&(l[`${t}--${e}`]=!0)})),n&&Object.keys(n.value).forEach((o=>{l[`${t}--${o}`]=e.unref(n.value[o])})),l}))}("vv-dropdown-option",n,e.computed((()=>({disabled:o.disabled,selected:o.selected,unselectable:o.unselectable&&o.selected})))),r=e.computed((()=>o.selected?o.unselectable?o.deselectHintLabel:o.selectedHintLabel:o.disabled?void 0:o.selectHintLabel));return(t,o)=>(e.openBlock(),e.createBlock(u,{class:e.normalizeClass(e.unref(l)),tabindex:t.disabled?-1:0,"aria-selected":t.selected,"aria-disabled":t.disabled},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default"),e.createElementVNode("span",{class:"vv-dropdown-option__hint",title:e.unref(r)},[e.renderSlot(t.$slots,"hint",e.normalizeProps(e.guardReactiveProps({disabled:t.disabled,selected:t.selected,unselectable:t.unselectable})),(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)),1)]))],8,m)])),_:3},8,["class","tabindex","aria-selected","aria-disabled"]))}})}));
@@ -1,98 +1,8 @@
1
- import { inject, computed, unref, defineComponent, ref, toRefs, openBlock, createBlock, mergeProps, createCommentVNode } from "vue";
1
+ import { inject, computed, unref, defineComponent, mergeDefaults, ref, toRefs, openBlock, createBlock, mergeProps, createCommentVNode } from "vue";
2
2
  import { iconExists, Icon, addIcon } from "@iconify/vue";
3
- const VvIconProps = {
4
- /**
5
- * Color
6
- */
7
- color: String,
8
- /**
9
- * Width
10
- */
11
- width: {
12
- type: [String, Number]
13
- },
14
- /**
15
- * Height
16
- */
17
- height: {
18
- type: [String, Number]
19
- },
20
- /**
21
- * Icon name
22
- * Can be the full composition of iconify name "@{provider}:{prefix}:{name}" or "{prefix}:{name}" or "{name}"
23
- * https://docs.iconify.design/api/providers.html#provider-in-icon-name
24
- */
25
- name: {
26
- type: String,
27
- required: true
28
- },
29
- /**
30
- * By default 'vv'
31
- * If custom collection is not added with "addCollection" DS class method, this prop could not be used
32
- * Icon provider: https://docs.iconify.design/api/providers.html#provider-in-icon-name
33
- */
34
- provider: {
35
- type: String
36
- },
37
- /**
38
- * The name of icon set.
39
- * Icon default options prefix: simple | normal | detailed
40
- */
41
- prefix: {
42
- type: String,
43
- default: "normal"
44
- },
45
- /**
46
- * Url remote SVG icon
47
- */
48
- src: String,
49
- /**
50
- * Horizontal flip
51
- */
52
- horizontalFlip: Boolean,
53
- /**
54
- * Vertical flip
55
- */
56
- verticalFlip: Boolean,
57
- /**
58
- * String alternative to "horizontalFlip" and "verticalFlip".
59
- * Example: https://docs.iconify.design/icon-components/vue/transform.html
60
- */
61
- flip: String,
62
- /**
63
- * Icon render mode
64
- * 'style' = 'bg' or 'mask', depending on icon content
65
- * 'bg' = span with style using `background`
66
- * 'mask' = span with style using `mask`
67
- * 'svg' = svg
68
- * Iconify doc: https://docs.iconify.design/iconify-icon/modes.html
69
- */
70
- mode: String,
71
- /**
72
- * Toggles inline or block mode
73
- * Example https://docs.iconify.design/icon-components/vue/inline.html
74
- */
75
- inline: Boolean,
76
- /**
77
- * rotates icon
78
- * Example https://docs.iconify.design/icon-components/vue/transform.html
79
- */
80
- rotate: [Number, String],
81
- /**
82
- * A callback that is called when icon data has been loaded
83
- */
84
- onLoad: Function,
85
- /**
86
- * SVG icon string
87
- */
88
- svg: String,
89
- /**
90
- * Icon modifiers: vv-icon css helper classes, value/s are concatened with prefix 'vv-icon--'
91
- * @values string | string[]
92
- */
93
- modifiers: {
94
- type: [String, Array]
95
- }
3
+ const VvIconPropsDefaults = {
4
+ prefix: "normal"
5
+ /* normal */
96
6
  };
97
7
  const INJECTION_KEY_VOLVER = Symbol.for("volver");
98
8
  function useVolver() {
@@ -126,7 +36,24 @@ const __default__ = {
126
36
  };
127
37
  const _sfc_main = /* @__PURE__ */ defineComponent({
128
38
  ...__default__,
129
- props: VvIconProps,
39
+ props: /* @__PURE__ */ mergeDefaults({
40
+ name: {},
41
+ color: {},
42
+ width: {},
43
+ height: {},
44
+ provider: {},
45
+ prefix: {},
46
+ src: {},
47
+ horizontalFlip: { type: Boolean },
48
+ verticalFlip: { type: Boolean },
49
+ flip: {},
50
+ mode: {},
51
+ inline: { type: Boolean },
52
+ rotate: {},
53
+ onLoad: { type: Function },
54
+ svg: {},
55
+ modifiers: {}
56
+ }, VvIconPropsDefaults),
130
57
  setup(__props) {
131
58
  const props = __props;
132
59
  const hasRotate = computed(() => {
@@ -213,7 +140,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
213
140
  color: _ctx.color,
214
141
  onLoad: _ctx.onLoad,
215
142
  icon: unref(icon)
216
- }), null, 16, ["class"])) : createCommentVNode("", true);
143
+ }), null, 16, ["class"])) : createCommentVNode("v-if", true);
217
144
  };
218
145
  }
219
146
  });
@@ -1 +1 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("vue"),require("@iconify/vue")):"function"==typeof define&&define.amd?define(["vue","@iconify/vue"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).VvIcon=n(e.vue,e.vue$1)}(this,(function(e,n){"use strict";const o={color:String,width:{type:[String,Number]},height:{type:[String,Number]},name:{type:String,required:!0},provider:{type:String},prefix:{type:String,default:"normal"},src:String,horizontalFlip:Boolean,verticalFlip:Boolean,flip:String,mode:String,inline:Boolean,rotate:[Number,String],onLoad:Function,svg:String,modifiers:{type:[String,Array]}},r=Symbol.for("volver");return e.defineComponent({name:"VvIcon",props:o,setup(o){const i=o,t=e.computed((()=>"string"==typeof i.rotate?parseFloat(i.rotate):i.rotate)),l=e.ref(!0),u=e.inject(r),{modifiers:c}=e.toRefs(i),a=function(n,o,r){return e.computed((()=>{const i={[n]:!0},t="string"==typeof(null==o?void 0:o.value)?o.value.split(" "):null==o?void 0:o.value;return t&&Array.isArray(t)&&t.forEach((e=>{e&&(i[`${n}--${e}`]=!0)})),r&&Object.keys(r.value).forEach((o=>{i[`${n}--${o}`]=e.unref(r.value[o])})),i}))}("vv-icon",c),s=e.computed((()=>i.provider||(null==u?void 0:u.iconsProvider))),f=e.computed((()=>{const e=i.name??"",o=`@${s.value}:${i.prefix}:${e}`;if(n.iconExists(o))return o;const r=null==u?void 0:u.iconsCollections.find((o=>{const r=`@${s.value}:${o.prefix}:${e}`;return n.iconExists(r)}));return r?`@${s.value}:${r.prefix}:${e}`:e}));function d(e){const o=function(e){let n;if("undefined"==typeof window){const{JSDOM:e}=require("jsdom");n=(new e).window}return(n?new n.DOMParser:new window.DOMParser).parseFromString(e,"text/html").querySelector("svg")}(e),r=(null==o?void 0:o.innerHTML.trim())||"";o&&r&&n.addIcon(`@${s.value}:${i.prefix}:${i.name}`,{body:r,height:o.viewBox.baseVal.height,width:o.viewBox.baseVal.width})}return u&&i.src&&!n.iconExists(`@${s.value}:${i.prefix}:${i.name}`)&&(l.value=!1,u.fetchIcon(i.src).then((e=>{e&&(d(e),l.value=!0)})).catch((e=>{throw new Error(`Error during fetch icon: ${null==e?void 0:e.message}`)}))),i.svg&&d(i.svg),(o,r)=>e.unref(l)?(e.openBlock(),e.createBlock(e.unref(n.Icon),e.mergeProps({key:0,class:e.unref(a)},{inline:o.inline,width:o.width,height:o.height,horizontalFlip:o.horizontalFlip,verticalFlip:o.verticalFlip,flip:o.flip,rotate:e.unref(t),color:o.color,onLoad:o.onLoad,icon:e.unref(f)}),null,16,["class"])):e.createCommentVNode("",!0)}})}));
1
+ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("vue"),require("@iconify/vue")):"function"==typeof define&&define.amd?define(["vue","@iconify/vue"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).VvIcon=o(e.vue,e.vue$1)}(this,(function(e,o){"use strict";const n={prefix:"normal"},i=Symbol.for("volver");return e.defineComponent({name:"VvIcon",props:e.mergeDefaults({name:{},color:{},width:{},height:{},provider:{},prefix:{},src:{},horizontalFlip:{type:Boolean},verticalFlip:{type:Boolean},flip:{},mode:{},inline:{type:Boolean},rotate:{},onLoad:{type:Function},svg:{},modifiers:{}},n),setup(n){const r=n,t=e.computed((()=>"string"==typeof r.rotate?parseFloat(r.rotate):r.rotate)),l=e.ref(!0),u=e.inject(i),{modifiers:c}=e.toRefs(r),a=function(o,n,i){return e.computed((()=>{const r={[o]:!0},t="string"==typeof(null==n?void 0:n.value)?n.value.split(" "):null==n?void 0:n.value;return t&&Array.isArray(t)&&t.forEach((e=>{e&&(r[`${o}--${e}`]=!0)})),i&&Object.keys(i.value).forEach((n=>{r[`${o}--${n}`]=e.unref(i.value[n])})),r}))}("vv-icon",c),s=e.computed((()=>r.provider||(null==u?void 0:u.iconsProvider))),f=e.computed((()=>{const e=r.name??"",n=`@${s.value}:${r.prefix}:${e}`;if(o.iconExists(n))return n;const i=null==u?void 0:u.iconsCollections.find((n=>{const i=`@${s.value}:${n.prefix}:${e}`;return o.iconExists(i)}));return i?`@${s.value}:${i.prefix}:${e}`:e}));function d(e){const n=function(e){let o;if("undefined"==typeof window){const{JSDOM:e}=require("jsdom");o=(new e).window}return(o?new o.DOMParser:new window.DOMParser).parseFromString(e,"text/html").querySelector("svg")}(e),i=(null==n?void 0:n.innerHTML.trim())||"";n&&i&&o.addIcon(`@${s.value}:${r.prefix}:${r.name}`,{body:i,height:n.viewBox.baseVal.height,width:n.viewBox.baseVal.width})}return u&&r.src&&!o.iconExists(`@${s.value}:${r.prefix}:${r.name}`)&&(l.value=!1,u.fetchIcon(r.src).then((e=>{e&&(d(e),l.value=!0)})).catch((e=>{throw new Error(`Error during fetch icon: ${null==e?void 0:e.message}`)}))),r.svg&&d(r.svg),(n,i)=>e.unref(l)?(e.openBlock(),e.createBlock(e.unref(o.Icon),e.mergeProps({key:0,class:e.unref(a)},{inline:n.inline,width:n.width,height:n.height,horizontalFlip:n.horizontalFlip,verticalFlip:n.verticalFlip,flip:n.flip,rotate:e.unref(t),color:n.color,onLoad:n.onLoad,icon:e.unref(f)}),null,16,["class"])):e.createCommentVNode("v-if",!0)}})}));
@@ -1,69 +1,26 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- color: StringConstructor;
3
- width: {
4
- type: (StringConstructor | NumberConstructor)[];
5
- };
6
- height: {
7
- type: (StringConstructor | NumberConstructor)[];
8
- };
9
- name: {
10
- type: StringConstructor;
11
- required: boolean;
12
- };
13
- provider: {
14
- type: StringConstructor;
15
- };
16
- prefix: {
17
- type: globalThis.PropType<string>;
18
- default: string;
19
- };
20
- src: StringConstructor;
21
- horizontalFlip: BooleanConstructor;
22
- verticalFlip: BooleanConstructor;
23
- flip: StringConstructor;
24
- mode: globalThis.PropType<import("@iconify/vue").IconifyRenderMode>;
25
- inline: BooleanConstructor;
26
- rotate: (StringConstructor | NumberConstructor)[];
27
- onLoad: globalThis.PropType<import("@iconify/vue").IconifyIconOnLoad>;
28
- svg: StringConstructor;
29
- modifiers: {
30
- type: globalThis.PropType<string | string[]>;
31
- };
32
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
- color: StringConstructor;
34
- width: {
35
- type: (StringConstructor | NumberConstructor)[];
36
- };
37
- height: {
38
- type: (StringConstructor | NumberConstructor)[];
39
- };
40
- name: {
41
- type: StringConstructor;
42
- required: boolean;
43
- };
44
- provider: {
45
- type: StringConstructor;
46
- };
47
- prefix: {
48
- type: globalThis.PropType<string>;
49
- default: string;
50
- };
51
- src: StringConstructor;
52
- horizontalFlip: BooleanConstructor;
53
- verticalFlip: BooleanConstructor;
54
- flip: StringConstructor;
55
- mode: globalThis.PropType<import("@iconify/vue").IconifyRenderMode>;
56
- inline: BooleanConstructor;
57
- rotate: (StringConstructor | NumberConstructor)[];
58
- onLoad: globalThis.PropType<import("@iconify/vue").IconifyIconOnLoad>;
59
- svg: StringConstructor;
60
- modifiers: {
61
- type: globalThis.PropType<string | string[]>;
62
- };
63
- }>>, {
1
+ import { type VvIconProps } from '.';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VvIconProps>, {
3
+ prefix: import(".").IconPrefix;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VvIconProps>, {
5
+ prefix: import(".").IconPrefix;
6
+ }>>>, {
64
7
  prefix: string;
65
- horizontalFlip: boolean;
66
- verticalFlip: boolean;
67
- inline: boolean;
68
8
  }, {}>;
69
9
  export default _default;
10
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
19
+ type __VLS_WithDefaults<P, D> = {
20
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
21
+ default: D[K];
22
+ }> : P[K];
23
+ };
24
+ type __VLS_Prettify<T> = {
25
+ [K in keyof T]: T[K];
26
+ } & {};
@@ -1,69 +1,53 @@
1
- import type { PropType } from 'vue';
2
1
  import type { IconifyIconOnLoad, IconifyRenderMode } from '@iconify/vue';
2
+ export declare const ACTION_ICONS: {
3
+ readonly showPassword: "eye-on";
4
+ readonly hidePassword: "eye-off";
5
+ readonly showDatePicker: "calendar";
6
+ readonly showTimePicker: "time";
7
+ readonly showColorPicker: "color";
8
+ readonly clear: "close";
9
+ readonly add: "add";
10
+ readonly remove: "trash";
11
+ readonly edit: "edit";
12
+ readonly download: "download";
13
+ };
3
14
  export declare enum IconPrefix {
4
15
  simple = "simple",
5
16
  normal = "normal",
6
17
  detailed = "detailed"
7
18
  }
8
- export declare const VvIconProps: {
9
- /**
10
- * Color
11
- */
12
- color: StringConstructor;
13
- /**
14
- * Width
15
- */
16
- width: {
17
- type: (StringConstructor | NumberConstructor)[];
18
- };
19
- /**
20
- * Height
21
- */
22
- height: {
23
- type: (StringConstructor | NumberConstructor)[];
24
- };
19
+ export type VvIconProps = {
25
20
  /**
26
21
  * Icon name
27
22
  * Can be the full composition of iconify name "@{provider}:{prefix}:{name}" or "{prefix}:{name}" or "{name}"
28
23
  * https://docs.iconify.design/api/providers.html#provider-in-icon-name
29
24
  */
30
- name: {
31
- type: StringConstructor;
32
- required: boolean;
33
- };
25
+ name: string;
26
+ color?: string;
27
+ width?: string | number;
28
+ height?: string | number;
34
29
  /**
35
- * By default 'vv'
36
30
  * If custom collection is not added with "addCollection" DS class method, this prop could not be used
37
31
  * Icon provider: https://docs.iconify.design/api/providers.html#provider-in-icon-name
38
32
  */
39
- provider: {
40
- type: StringConstructor;
41
- };
33
+ provider?: string;
42
34
  /**
35
+ * @default 'normal'
43
36
  * The name of icon set.
44
37
  * Icon default options prefix: simple | normal | detailed
45
38
  */
46
- prefix: {
47
- type: PropType<string>;
48
- default: string;
49
- };
39
+ prefix?: IconPrefix | string;
50
40
  /**
51
41
  * Url remote SVG icon
52
42
  */
53
- src: StringConstructor;
54
- /**
55
- * Horizontal flip
56
- */
57
- horizontalFlip: BooleanConstructor;
58
- /**
59
- * Vertical flip
60
- */
61
- verticalFlip: BooleanConstructor;
43
+ src?: string;
44
+ horizontalFlip?: boolean;
45
+ verticalFlip?: boolean;
62
46
  /**
63
47
  * String alternative to "horizontalFlip" and "verticalFlip".
64
48
  * Example: https://docs.iconify.design/icon-components/vue/transform.html
65
49
  */
66
- flip: StringConstructor;
50
+ flip?: string;
67
51
  /**
68
52
  * Icon render mode
69
53
  * 'style' = 'bg' or 'mask', depending on icon content
@@ -72,30 +56,31 @@ export declare const VvIconProps: {
72
56
  * 'svg' = svg
73
57
  * Iconify doc: https://docs.iconify.design/iconify-icon/modes.html
74
58
  */
75
- mode: PropType<IconifyRenderMode>;
59
+ mode?: IconifyRenderMode;
76
60
  /**
77
61
  * Toggles inline or block mode
78
62
  * Example https://docs.iconify.design/icon-components/vue/inline.html
79
63
  */
80
- inline: BooleanConstructor;
64
+ inline?: boolean;
81
65
  /**
82
66
  * rotates icon
83
67
  * Example https://docs.iconify.design/icon-components/vue/transform.html
84
68
  */
85
- rotate: (StringConstructor | NumberConstructor)[];
69
+ rotate?: number | string;
86
70
  /**
87
71
  * A callback that is called when icon data has been loaded
88
72
  */
89
- onLoad: PropType<IconifyIconOnLoad>;
73
+ onLoad?: IconifyIconOnLoad;
90
74
  /**
91
75
  * SVG icon string
92
76
  */
93
- svg: StringConstructor;
77
+ svg?: string;
94
78
  /**
95
79
  * Icon modifiers: vv-icon css helper classes, value/s are concatened with prefix 'vv-icon--'
96
80
  * @values string | string[]
97
81
  */
98
- modifiers: {
99
- type: PropType<string | string[]>;
100
- };
82
+ modifiers?: string | string[];
83
+ };
84
+ export declare const VvIconPropsDefaults: {
85
+ prefix: IconPrefix;
101
86
  };