@volverjs/ui-vue 0.0.5 → 0.0.6-beta.15

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 (478) hide show
  1. package/README.md +3 -4
  2. package/auto-imports.d.ts +11 -0
  3. package/dist/Volver.d.ts +1 -1
  4. package/dist/components/VvAccordion/VvAccordion.es.js +238 -5
  5. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  6. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +8 -8
  7. package/dist/components/VvAccordion/index.d.ts +3 -6
  8. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +243 -10
  9. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  10. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +10 -62
  11. package/dist/components/VvAccordionGroup/index.d.ts +4 -33
  12. package/dist/components/VvAction/VvAction.es.js +12 -8
  13. package/dist/components/VvAction/VvAction.umd.js +1 -1
  14. package/dist/components/VvAction/VvAction.vue.d.ts +4 -4
  15. package/dist/components/VvAction/index.d.ts +1 -1
  16. package/dist/components/VvAlert/VvAlert.es.js +661 -0
  17. package/dist/components/VvAlert/VvAlert.umd.js +1 -0
  18. package/dist/components/VvAlert/VvAlert.vue.d.ts +104 -0
  19. package/dist/components/VvAlert/index.d.ts +95 -0
  20. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +799 -0
  21. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -0
  22. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +89 -0
  23. package/dist/components/VvAlertGroup/index.d.ts +55 -0
  24. package/dist/components/VvAvatar/VvAvatar.es.js +279 -0
  25. package/dist/components/VvAvatar/VvAvatar.umd.js +1 -0
  26. package/dist/components/VvAvatar/VvAvatar.vue.d.ts +15 -0
  27. package/dist/components/VvAvatar/index.d.ts +7 -0
  28. package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +363 -0
  29. package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -0
  30. package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +42 -0
  31. package/dist/components/VvAvatarGroup/index.d.ts +25 -0
  32. package/dist/components/VvBadge/VvBadge.es.js +3 -3
  33. package/dist/components/VvBadge/VvBadge.vue.d.ts +2 -2
  34. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +3 -3
  35. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +5 -31
  36. package/dist/components/VvBreadcrumb/index.d.ts +1 -14
  37. package/dist/components/VvButton/VvButton.es.js +90 -49
  38. package/dist/components/VvButton/VvButton.umd.js +1 -1
  39. package/dist/components/VvButton/VvButton.vue.d.ts +38 -13
  40. package/dist/components/VvButton/index.d.ts +27 -4
  41. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +13 -7
  42. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  43. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +10 -62
  44. package/dist/components/VvButtonGroup/index.d.ts +3 -29
  45. package/dist/components/VvCard/VvCard.es.js +221 -2
  46. package/dist/components/VvCard/VvCard.umd.js +1 -1
  47. package/dist/components/VvCard/VvCard.vue.d.ts +7 -7
  48. package/dist/components/VvCard/index.d.ts +1 -1
  49. package/dist/components/VvCheckbox/VvCheckbox.es.js +154 -101
  50. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  51. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +47 -11
  52. package/dist/components/VvCheckbox/index.d.ts +9 -4
  53. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +190 -104
  54. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  55. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +44 -8
  56. package/dist/components/VvCheckboxGroup/index.d.ts +8 -3
  57. package/dist/components/VvCombobox/VvCombobox.es.js +272 -175
  58. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  59. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +73 -37
  60. package/dist/components/VvCombobox/index.d.ts +13 -7
  61. package/dist/components/VvDialog/VvDialog.es.js +45 -34
  62. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  63. package/dist/components/VvDialog/VvDialog.vue.d.ts +7 -7
  64. package/dist/components/VvDialog/index.d.ts +2 -2
  65. package/dist/components/VvDropdown/VvDropdown.es.js +39 -25
  66. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  67. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +24 -20
  68. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +4 -4
  69. package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +2 -2
  70. package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +1 -1
  71. package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +4 -4
  72. package/dist/components/VvDropdown/index.d.ts +2 -2
  73. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +17 -11
  74. package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
  75. package/dist/components/VvDropdownItem/VvDropdownItem.es.js +9 -5
  76. package/dist/components/VvDropdownItem/VvDropdownItem.umd.js +1 -1
  77. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +3 -3
  78. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +12 -8
  79. package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
  80. package/dist/components/VvIcon/VvIcon.es.js +26 -20
  81. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  82. package/dist/components/VvIcon/VvIcon.vue.d.ts +3 -3
  83. package/dist/components/VvIcon/index.d.ts +3 -3
  84. package/dist/components/VvInputText/VvInputClearAction.d.ts +2 -2
  85. package/dist/components/VvInputText/VvInputPasswordAction.d.ts +1 -1
  86. package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
  87. package/dist/components/VvInputText/VvInputText.es.js +166 -142
  88. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  89. package/dist/components/VvInputText/VvInputText.vue.d.ts +46 -22
  90. package/dist/components/VvInputText/index.d.ts +5 -5
  91. package/dist/components/VvNav/VvNav.es.js +454 -0
  92. package/dist/components/VvNav/VvNav.umd.js +1 -0
  93. package/dist/components/VvNav/VvNav.vue.d.ts +21 -0
  94. package/dist/components/VvNav/index.d.ts +19 -0
  95. package/dist/components/VvNavItemTitle/VvNavItemTitle.es.js +19 -0
  96. package/dist/components/VvNavItemTitle/VvNavItemTitle.umd.js +1 -0
  97. package/dist/components/VvNavItemTitle/VvNavItemTitle.vue.d.ts +6 -0
  98. package/dist/components/VvNavSeparator/VvNavSeparator.d.ts +2 -0
  99. package/dist/components/VvProgress/VvProgress.es.js +3 -3
  100. package/dist/components/VvProgress/VvProgress.vue.d.ts +1 -1
  101. package/dist/components/VvRadio/VvRadio.es.js +154 -101
  102. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  103. package/dist/components/VvRadio/VvRadio.vue.d.ts +47 -11
  104. package/dist/components/VvRadio/index.d.ts +9 -4
  105. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +190 -104
  106. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  107. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +44 -8
  108. package/dist/components/VvRadioGroup/index.d.ts +8 -3
  109. package/dist/components/VvSelect/VvSelect.es.js +167 -141
  110. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  111. package/dist/components/VvSelect/VvSelect.vue.d.ts +42 -18
  112. package/dist/components/VvSelect/index.d.ts +4 -4
  113. package/dist/components/VvTab/VvTab.es.js +509 -0
  114. package/dist/components/VvTab/VvTab.umd.js +1 -0
  115. package/dist/components/VvTab/VvTab.vue.d.ts +26 -0
  116. package/dist/components/VvTab/index.d.ts +10 -0
  117. package/dist/components/VvTextarea/VvTextarea.es.js +164 -140
  118. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  119. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +40 -16
  120. package/dist/components/VvTextarea/index.d.ts +3 -3
  121. package/dist/components/VvTooltip/VvTooltip.es.js +3 -3
  122. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +2 -2
  123. package/dist/components/common/HintSlot.d.ts +38 -12
  124. package/dist/components/index.es.js +1336 -981
  125. package/dist/components/index.umd.js +1 -1
  126. package/dist/composables/alert/useInjectAlert.d.ts +9 -0
  127. package/dist/composables/alert/useProvideAlert.d.ts +10 -0
  128. package/dist/composables/dropdown/useInjectDropdown.d.ts +17 -16
  129. package/dist/composables/dropdown/useProvideDropdown.d.ts +7 -3
  130. package/dist/composables/group/useInjectedGroupState.d.ts +1 -1
  131. package/dist/composables/useOptions.d.ts +2 -2
  132. package/dist/composables/useVolver.d.ts +1 -2
  133. package/dist/constants.d.ts +33 -4
  134. package/dist/directives/index.d.ts +2 -2
  135. package/dist/directives/index.es.js +3 -3
  136. package/dist/directives/v-tooltip.es.js +3 -3
  137. package/dist/icons.es.js +3 -3
  138. package/dist/icons.umd.js +1 -1
  139. package/dist/props/index.d.ts +38 -16
  140. package/dist/resolvers/unplugin.es.js +6 -3
  141. package/dist/resolvers/unplugin.umd.js +1 -1
  142. package/dist/stories/Accordion/Accordion.settings.d.ts +18 -17
  143. package/dist/stories/Accordion/Accordion.stories.d.ts +7 -0
  144. package/dist/stories/Accordion/AccordionSlots.stories.d.ts +7 -0
  145. package/dist/stories/AccordionGroup/AccordionGroup.settings.d.ts +23 -4
  146. package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +134 -0
  147. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +894 -0
  148. package/dist/stories/Alert/Alert.settings.d.ts +105 -0
  149. package/dist/stories/Alert/Alert.stories.d.ts +9 -0
  150. package/dist/stories/Alert/Alert.test.d.ts +2 -0
  151. package/dist/stories/Alert/AlertModifiers.stories.d.ts +13 -0
  152. package/dist/stories/Alert/AlertSlots.stories.d.ts +10 -0
  153. package/dist/stories/AlertGroup/AlertGroup.settings.d.ts +97 -0
  154. package/dist/stories/AlertGroup/AlertGroup.stories.d.ts +8 -0
  155. package/dist/stories/AlertGroup/AlertGroup.test.d.ts +2 -0
  156. package/dist/stories/AlertGroup/AlertGroupPosition.stories.d.ts +14 -0
  157. package/dist/stories/AlertGroup/AlertGroupSlots.stories.d.ts +8 -0
  158. package/dist/stories/Avatar/Avatar.settings.d.ts +5 -0
  159. package/dist/stories/Avatar/Avatar.stories.d.ts +7 -0
  160. package/dist/stories/Avatar/Avatar.test.d.ts +2 -0
  161. package/dist/stories/Avatar/AvatarBadge.stories.d.ts +6 -0
  162. package/dist/stories/Avatar/AvatarModifiers.stories.d.ts +13 -0
  163. package/dist/stories/Avatar/AvatarSlots.stories.d.ts +6 -0
  164. package/dist/stories/AvatarGroup/AvatarGroup.settings.d.ts +50 -0
  165. package/dist/stories/AvatarGroup/AvatarGroup.stories.d.ts +6 -0
  166. package/dist/stories/AvatarGroup/AvatarGroup.test.d.ts +2 -0
  167. package/dist/stories/AvatarGroup/AvatarGroupModifiers.stories.d.ts +7 -0
  168. package/dist/stories/AvatarGroup/AvatarGroupSlotDefault.stories.d.ts +6 -0
  169. package/dist/stories/Badge/Badge.settings.d.ts +0 -3
  170. package/dist/stories/Badge/Badge.stories.d.ts +7 -0
  171. package/dist/stories/Badge/BadgeSlots.stories.d.ts +6 -0
  172. package/dist/stories/Breadcrumb/Breadcrumb.stories.d.ts +7 -0
  173. package/dist/stories/Breadcrumb/Breadcrumb.test.d.ts +1 -1
  174. package/dist/stories/Breadcrumb/BreadcrumbSlots.stories.d.ts +6 -0
  175. package/dist/stories/Button/Button.settings.d.ts +17 -9
  176. package/dist/stories/Button/Button.stories.d.ts +6 -0
  177. package/dist/stories/Button/ButtonIcon.stories.d.ts +10 -0
  178. package/dist/stories/Button/ButtonLink.stories.d.ts +7 -0
  179. package/dist/stories/Button/ButtonLoading.stories.d.ts +8 -0
  180. package/dist/stories/Button/ButtonModifiers.stories.d.ts +17 -0
  181. package/dist/stories/Button/ButtonSlots.stories.d.ts +9 -0
  182. package/dist/stories/Button/ButtonState.stories.d.ts +8 -0
  183. package/dist/stories/Button/ButtonToggle.stories.d.ts +9 -0
  184. package/dist/stories/ButtonGroup/ButtonGroup.settings.d.ts +0 -4
  185. package/dist/stories/ButtonGroup/ButtonGroup.stories.d.ts +6 -0
  186. package/dist/stories/ButtonGroup/ButtonGroupModifiers.stories.d.ts +8 -0
  187. package/dist/stories/ButtonGroup/ButtonGroupSlots.stories.d.ts +6 -0
  188. package/dist/stories/ButtonGroup/ButtonGroupToggle.stories.d.ts +8 -0
  189. package/dist/stories/Card/Card.settings.d.ts +0 -3
  190. package/dist/stories/Card/Card.stories.d.ts +6 -0
  191. package/dist/stories/Card/CardSlots.stories.d.ts +9 -0
  192. package/dist/stories/Checkbox/Checkbox.settings.d.ts +1 -21
  193. package/dist/stories/Checkbox/Checkbox.stories.d.ts +13 -0
  194. package/dist/stories/Checkbox/CheckboxBinary.stories.d.ts +7 -0
  195. package/dist/stories/Checkbox/CheckboxSlots.stories.d.ts +7 -0
  196. package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +1 -27
  197. package/dist/stories/CheckboxGroup/CheckboxGroup.stories.d.ts +12 -0
  198. package/dist/stories/CheckboxGroup/CheckboxGroupOptions.stories.d.ts +8 -0
  199. package/dist/stories/CheckboxGroup/CheckboxGroupSlots.stories.d.ts +7 -0
  200. package/dist/stories/Combobox/Combobox.settings.d.ts +2 -54
  201. package/dist/stories/Combobox/Combobox.stories.d.ts +21 -0
  202. package/dist/stories/Combobox/ComboboxIconPosition.stories.d.ts +8 -0
  203. package/dist/stories/Combobox/ComboboxMultiple.stories.d.ts +8 -0
  204. package/dist/stories/Combobox/ComboboxOptions.stories.d.ts +9 -0
  205. package/dist/stories/Combobox/ComboboxSlots.stories.d.ts +10 -0
  206. package/dist/stories/Dialog/Dialog.settings.d.ts +1 -1
  207. package/dist/stories/Dialog/Dialog.stories.d.ts +7 -0
  208. package/dist/stories/Dialog/DialogSlots.stories.d.ts +8 -0
  209. package/dist/stories/Dropdown/Dropdown.settings.d.ts +1 -1
  210. package/dist/stories/Dropdown/Dropdown.stories.d.ts +9 -0
  211. package/dist/stories/Dropdown/DropdownContextmenuDirective.stories.d.ts +6 -0
  212. package/dist/stories/Dropdown/DropdownMultilevel.stories.d.ts +6 -0
  213. package/dist/stories/Dropdown/DropdownSlots.stories.d.ts +8 -0
  214. package/dist/stories/Icon/Icon.settings.d.ts +1 -3
  215. package/dist/stories/Icon/Icon.stories.d.ts +8 -0
  216. package/dist/stories/Icon/IconsCollection.stories.d.ts +6 -0
  217. package/dist/stories/InputText/InputText.settings.d.ts +1 -74
  218. package/dist/stories/InputText/InputText.stories.d.ts +15 -0
  219. package/dist/stories/InputText/InputTextIconPosition.stories.d.ts +8 -0
  220. package/dist/stories/InputText/InputTextLength.stories.d.ts +10 -0
  221. package/dist/stories/InputText/InputTextMinMax.stories.d.ts +9 -0
  222. package/dist/stories/InputText/InputTextSlots.stories.d.ts +8 -0
  223. package/dist/stories/InputText/InputTextType.stories.d.ts +18 -0
  224. package/dist/stories/Nav/Nav.settings.d.ts +30 -0
  225. package/dist/stories/Nav/Nav.stories.d.ts +6 -0
  226. package/dist/stories/Nav/Nav.test.d.ts +2 -0
  227. package/dist/stories/Nav/NavModifiers.stories.d.ts +9 -0
  228. package/dist/stories/Progress/Progress.settings.d.ts +0 -6
  229. package/dist/stories/Progress/Progress.stories.d.ts +7 -0
  230. package/dist/stories/Radio/Radio.settings.d.ts +1 -19
  231. package/dist/stories/Radio/Radio.stories.d.ts +11 -0
  232. package/dist/stories/Radio/RadioSlots.stories.d.ts +7 -0
  233. package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +1 -27
  234. package/dist/stories/RadioGroup/RadioGroup.stories.d.ts +12 -0
  235. package/dist/stories/RadioGroup/RadioGroupOptions.stories.d.ts +8 -0
  236. package/dist/stories/RadioGroup/RadioGroupSlots.stories.d.ts +7 -0
  237. package/dist/stories/Select/Select.settings.d.ts +1 -47
  238. package/dist/stories/Select/Select.stories.d.ts +15 -0
  239. package/dist/stories/Select/SelectIconPosition.stories.d.ts +8 -0
  240. package/dist/stories/Select/SelectOptions.stories.d.ts +9 -0
  241. package/dist/stories/Select/SelectSlots.stories.d.ts +8 -0
  242. package/dist/stories/Tab/Tab.settings.d.ts +37 -0
  243. package/dist/stories/Tab/Tab.stories.d.ts +6 -0
  244. package/dist/stories/Tab/Tab.test.d.ts +2 -0
  245. package/dist/stories/Textarea/Textarea.settings.d.ts +1 -43
  246. package/dist/stories/Textarea/Textarea.stories.d.ts +14 -0
  247. package/dist/stories/Textarea/TextareaLength.stories.d.ts +10 -0
  248. package/dist/stories/Textarea/TextareaSlots.stories.d.ts +8 -0
  249. package/dist/stories/Textarea/TextareatIconPosition.stories.d.ts +8 -0
  250. package/dist/stories/Tooltip/Tooltip.settings.d.ts +2 -39
  251. package/dist/stories/Tooltip/Tooltip.stories.d.ts +6 -0
  252. package/dist/stories/Tooltip/TooltipDirective.stories.d.ts +10 -0
  253. package/dist/stories/argTypes.d.ts +5 -125
  254. package/dist/test/expect.d.ts +3 -0
  255. package/package.json +112 -56
  256. package/src/assets/icons/detailed.json +1 -1
  257. package/src/assets/icons/normal.json +1 -1
  258. package/src/assets/icons/simple.json +1 -1
  259. package/src/components/VvAccordion/index.ts +22 -7
  260. package/src/components/VvAccordionGroup/index.ts +8 -6
  261. package/src/components/VvAction/VvAction.vue +1 -1
  262. package/src/components/VvAlert/VvAlert.vue +54 -0
  263. package/src/components/VvAlert/index.ts +162 -0
  264. package/src/components/VvAlertGroup/VvAlertGroup.vue +34 -0
  265. package/src/components/VvAlertGroup/index.ts +122 -0
  266. package/src/components/VvAvatar/VvAvatar.vue +21 -0
  267. package/src/components/VvAvatar/index.ts +9 -0
  268. package/src/components/VvAvatarGroup/VvAvatarGroup.vue +65 -0
  269. package/src/components/VvAvatarGroup/index.ts +28 -0
  270. package/src/components/VvBreadcrumb/index.ts +1 -1
  271. package/src/components/VvButton/VvButton.vue +9 -6
  272. package/src/components/VvButton/index.ts +44 -21
  273. package/src/components/VvButtonGroup/VvButtonGroup.vue +2 -2
  274. package/src/components/VvButtonGroup/index.ts +14 -2
  275. package/src/components/VvCard/index.ts +3 -1
  276. package/src/components/VvCheckbox/VvCheckbox.vue +23 -2
  277. package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +15 -2
  278. package/src/components/VvCombobox/VvCombobox.vue +41 -24
  279. package/src/components/VvCombobox/index.ts +11 -5
  280. package/src/components/VvDialog/VvDialog.vue +11 -7
  281. package/src/components/VvDialog/index.ts +2 -2
  282. package/src/components/VvDropdown/VvDropdown.vue +23 -5
  283. package/src/components/VvDropdown/VvDropdownItem.vue +2 -2
  284. package/src/components/VvIcon/VvIcon.vue +37 -34
  285. package/src/components/VvIcon/index.ts +3 -3
  286. package/src/components/VvInputText/VvInputText.vue +26 -9
  287. package/src/components/VvNav/VvNav.vue +66 -0
  288. package/src/components/VvNav/index.ts +21 -0
  289. package/src/components/VvNavItemTitle/VvNavItemTitle.vue +11 -0
  290. package/src/components/VvNavSeparator/VvNavSeparator.ts +8 -0
  291. package/src/components/VvRadio/VvRadio.vue +23 -2
  292. package/src/components/VvRadioGroup/VvRadioGroup.vue +15 -2
  293. package/src/components/VvSelect/VvSelect.vue +26 -9
  294. package/src/components/VvTab/VvTab.vue +53 -0
  295. package/src/components/VvTab/index.ts +13 -0
  296. package/src/components/VvTextarea/VvTextarea.vue +26 -9
  297. package/src/components/common/HintSlot.ts +129 -170
  298. package/src/composables/alert/useInjectAlert.ts +8 -0
  299. package/src/composables/alert/useProvideAlert.ts +23 -0
  300. package/src/composables/dropdown/useInjectDropdown.ts +3 -28
  301. package/src/composables/dropdown/useProvideDropdown.ts +14 -15
  302. package/src/composables/useOptions.ts +9 -7
  303. package/src/composables/useVolver.ts +1 -2
  304. package/src/constants.ts +42 -4
  305. package/src/props/index.ts +7 -5
  306. package/src/resolvers/unplugin.ts +6 -3
  307. package/src/stories/Accordion/Accordion.settings.ts +18 -7
  308. package/src/stories/Accordion/Accordion.stories.ts +45 -0
  309. package/src/stories/Accordion/AccordionSlots.stories.ts +29 -0
  310. package/src/stories/AccordionGroup/AccordionGroup.settings.ts +22 -0
  311. package/src/stories/AccordionGroup/AccordionGroup.stories.ts +62 -0
  312. package/src/stories/AccordionGroup/AccordionGroupSlots.stories.ts +53 -0
  313. package/src/stories/Alert/Alert.settings.ts +110 -0
  314. package/src/stories/Alert/Alert.stories.ts +60 -0
  315. package/src/stories/Alert/Alert.test.ts +95 -0
  316. package/src/stories/Alert/AlertModifiers.stories.ts +77 -0
  317. package/src/stories/Alert/AlertSlots.stories.ts +74 -0
  318. package/src/stories/AlertGroup/AlertGroup.settings.ts +110 -0
  319. package/src/stories/AlertGroup/AlertGroup.stories.ts +50 -0
  320. package/src/stories/AlertGroup/AlertGroup.test.ts +76 -0
  321. package/src/stories/AlertGroup/AlertGroupPosition.stories.ts +103 -0
  322. package/src/stories/AlertGroup/AlertGroupSlots.stories.ts +67 -0
  323. package/src/stories/Avatar/Avatar.settings.ts +37 -0
  324. package/src/stories/Avatar/Avatar.stories.ts +42 -0
  325. package/src/stories/Avatar/Avatar.test.ts +34 -0
  326. package/src/stories/Avatar/AvatarBadge.stories.ts +36 -0
  327. package/src/stories/Avatar/AvatarModifiers.stories.ts +100 -0
  328. package/src/stories/Avatar/AvatarSlots.stories.ts +34 -0
  329. package/src/stories/AvatarGroup/AvatarGroup.settings.ts +60 -0
  330. package/src/stories/AvatarGroup/AvatarGroup.stories.ts +35 -0
  331. package/src/stories/AvatarGroup/AvatarGroup.test.ts +36 -0
  332. package/src/stories/AvatarGroup/AvatarGroupModifiers.stories.ts +31 -0
  333. package/src/stories/AvatarGroup/AvatarGroupSlotDefault.stories.ts +39 -0
  334. package/src/stories/Badge/Badge.stories.ts +43 -0
  335. package/src/stories/Badge/BadgeSlots.stories.ts +23 -0
  336. package/src/stories/Breadcrumb/Breadcrumb.stories.ts +41 -0
  337. package/src/stories/Breadcrumb/Breadcrumb.test.ts +1 -1
  338. package/src/stories/Breadcrumb/BreadcrumbSlots.stories.ts +37 -0
  339. package/src/stories/Button/Button.settings.ts +14 -2
  340. package/src/stories/Button/Button.stories.ts +38 -0
  341. package/src/stories/Button/ButtonIcon.stories.ts +67 -0
  342. package/src/stories/Button/ButtonLink.stories.ts +40 -0
  343. package/src/stories/Button/ButtonLoading.stories.ts +41 -0
  344. package/src/stories/Button/ButtonModifiers.stories.ts +158 -0
  345. package/src/stories/Button/ButtonSlots.stories.ts +87 -0
  346. package/src/stories/Button/ButtonState.stories.ts +42 -0
  347. package/src/stories/Button/ButtonToggle.stories.ts +52 -0
  348. package/src/stories/ButtonGroup/ButtonGroup.stories.ts +39 -0
  349. package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.ts +39 -0
  350. package/src/stories/ButtonGroup/ButtonGroupSlots.stories.ts +38 -0
  351. package/src/stories/ButtonGroup/ButtonGroupToggle.stories.ts +41 -0
  352. package/src/stories/Card/Card.stories.ts +46 -0
  353. package/src/stories/Card/CardSlots.stories.ts +81 -0
  354. package/src/stories/Checkbox/Checkbox.settings.ts +0 -2
  355. package/src/stories/Checkbox/Checkbox.stories.ts +97 -0
  356. package/src/stories/Checkbox/CheckboxBinary.stories.ts +33 -0
  357. package/src/stories/Checkbox/CheckboxSlots.stories.ts +31 -0
  358. package/src/stories/CheckboxGroup/CheckboxGroup.stories.ts +87 -0
  359. package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.ts +53 -0
  360. package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.ts +47 -0
  361. package/src/stories/Combobox/Combobox.settings.ts +3 -23
  362. package/src/stories/Combobox/Combobox.stories.ts +176 -0
  363. package/src/stories/Combobox/Combobox.test.ts +2 -2
  364. package/src/stories/Combobox/ComboboxIconPosition.stories.ts +43 -0
  365. package/src/stories/Combobox/ComboboxMultiple.stories.ts +41 -0
  366. package/src/stories/Combobox/ComboboxOptions.stories.ts +78 -0
  367. package/src/stories/Combobox/ComboboxSlots.stories.ts +104 -0
  368. package/src/stories/Dialog/Dialog.settings.ts +1 -1
  369. package/src/stories/Dialog/Dialog.stories.ts +51 -0
  370. package/src/stories/Dialog/Dialog.test.ts +2 -2
  371. package/src/stories/Dialog/DialogSlots.stories.ts +39 -0
  372. package/src/stories/Dropdown/Dropdown.stories.ts +107 -0
  373. package/src/stories/Dropdown/DropdownContextmenuDirective.stories.ts +49 -0
  374. package/src/stories/Dropdown/DropdownMultilevel.stories.ts +61 -0
  375. package/src/stories/Dropdown/DropdownSlots.stories.ts +95 -0
  376. package/src/stories/Icon/Icon.settings.ts +1 -0
  377. package/src/stories/Icon/Icon.stories.ts +48 -0
  378. package/src/stories/Icon/IconsCollection.stories.ts +53 -0
  379. package/src/stories/InputText/InputText.settings.ts +3 -39
  380. package/src/stories/InputText/InputText.stories.ts +121 -0
  381. package/src/stories/InputText/InputTextIconPosition.stories.ts +43 -0
  382. package/src/stories/InputText/InputTextLength.stories.ts +58 -0
  383. package/src/stories/InputText/InputTextMinMax.stories.ts +51 -0
  384. package/src/stories/InputText/InputTextSlots.stories.ts +39 -0
  385. package/src/stories/InputText/InputTextType.stories.ts +119 -0
  386. package/src/stories/Nav/Nav.settings.ts +34 -0
  387. package/src/stories/Nav/Nav.stories.ts +33 -0
  388. package/src/stories/Nav/Nav.test.ts +32 -0
  389. package/src/stories/Nav/NavModifiers.stories.ts +47 -0
  390. package/src/stories/Progress/Progress.settings.ts +0 -3
  391. package/src/stories/Progress/Progress.stories.ts +41 -0
  392. package/src/stories/Radio/Radio.stories.ts +81 -0
  393. package/src/stories/Radio/RadioSlots.stories.ts +31 -0
  394. package/src/stories/RadioGroup/RadioGroup.stories.ts +88 -0
  395. package/src/stories/RadioGroup/RadioGroupOptions.stories.ts +53 -0
  396. package/src/stories/RadioGroup/RadioGroupSlots.stories.ts +47 -0
  397. package/src/stories/Select/Select.settings.ts +0 -5
  398. package/src/stories/Select/Select.stories.ts +113 -0
  399. package/src/stories/Select/SelectIconPosition.stories.ts +43 -0
  400. package/src/stories/Select/SelectOptions.stories.ts +77 -0
  401. package/src/stories/Select/SelectSlots.stories.ts +39 -0
  402. package/src/stories/Tab/Tab.settings.ts +41 -0
  403. package/src/stories/Tab/Tab.stories.ts +70 -0
  404. package/src/stories/Tab/Tab.test.ts +37 -0
  405. package/src/stories/Textarea/Textarea.settings.ts +0 -8
  406. package/src/stories/Textarea/Textarea.stories.ts +107 -0
  407. package/src/stories/Textarea/TextareaLength.stories.ts +58 -0
  408. package/src/stories/Textarea/TextareaSlots.stories.ts +39 -0
  409. package/src/stories/Textarea/TextareatIconPosition.stories.ts +43 -0
  410. package/src/stories/Tooltip/Tooltip.settings.ts +4 -4
  411. package/src/stories/Tooltip/Tooltip.stories.ts +40 -0
  412. package/src/stories/Tooltip/TooltipDirective.stories.ts +68 -0
  413. package/src/stories/argTypes.ts +5 -59
  414. package/src/test/expect.ts +15 -0
  415. package/src/types/group.d.ts +5 -3
  416. package/src/stories/Accordion/Accordion.stories.mdx +0 -45
  417. package/src/stories/Accordion/AccordionSlots.stories.mdx +0 -58
  418. package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +0 -58
  419. package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +0 -59
  420. package/src/stories/Badge/Badge.stories.mdx +0 -51
  421. package/src/stories/Badge/BadgeSlots.stories.mdx +0 -20
  422. package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +0 -50
  423. package/src/stories/Breadcrumb/BreadcrumbSlots.stories.mdx +0 -43
  424. package/src/stories/Button/Button.stories.mdx +0 -35
  425. package/src/stories/Button/ButtonIcon.stories.mdx +0 -153
  426. package/src/stories/Button/ButtonLink.stories.mdx +0 -72
  427. package/src/stories/Button/ButtonLoading.stories.mdx +0 -108
  428. package/src/stories/Button/ButtonModifiers.stories.mdx +0 -257
  429. package/src/stories/Button/ButtonSlots.stories.mdx +0 -116
  430. package/src/stories/Button/ButtonState.stories.mdx +0 -66
  431. package/src/stories/Button/ButtonToggle.stories.mdx +0 -50
  432. package/src/stories/ButtonGroup/ButtonGroup.stories.mdx +0 -37
  433. package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.mdx +0 -52
  434. package/src/stories/ButtonGroup/ButtonGroupSlots.stories.mdx +0 -37
  435. package/src/stories/ButtonGroup/ButtonGroupToggle.stories.mdx +0 -73
  436. package/src/stories/Card/Card.stories.mdx +0 -40
  437. package/src/stories/Card/CardSlots.stories.mdx +0 -98
  438. package/src/stories/Checkbox/Checkbox.stories.mdx +0 -164
  439. package/src/stories/Checkbox/CheckboxBinary.stories.mdx +0 -68
  440. package/src/stories/Checkbox/CheckboxSlots.stories.mdx +0 -46
  441. package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +0 -135
  442. package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.mdx +0 -100
  443. package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +0 -68
  444. package/src/stories/Combobox/Combobox.stories.mdx +0 -324
  445. package/src/stories/Combobox/ComboboxIconPosition.stories.mdx +0 -78
  446. package/src/stories/Combobox/ComboboxMultiple.stories.mdx +0 -73
  447. package/src/stories/Combobox/ComboboxOptions.stories.mdx +0 -135
  448. package/src/stories/Combobox/ComboboxSlots.stories.mdx +0 -153
  449. package/src/stories/Dialog/Dialog.stories.mdx +0 -56
  450. package/src/stories/Dialog/DialogSlots.stories.mdx +0 -63
  451. package/src/stories/Dropdown/Dropdown.stories.mdx +0 -124
  452. package/src/stories/Dropdown/DropdownContextmenuDirective.stories.mdx +0 -41
  453. package/src/stories/Dropdown/DropdownMultilevel.stories.mdx +0 -56
  454. package/src/stories/Dropdown/DropdownSlots.stories.mdx +0 -114
  455. package/src/stories/Icon/Icon.stories.mdx +0 -91
  456. package/src/stories/Icon/IconsCollection.stories.mdx +0 -69
  457. package/src/stories/InputText/InputText.stories.mdx +0 -211
  458. package/src/stories/InputText/InputTextIconPosition.stories.mdx +0 -78
  459. package/src/stories/InputText/InputTextLength.stories.mdx +0 -110
  460. package/src/stories/InputText/InputTextMinMax.stories.mdx +0 -112
  461. package/src/stories/InputText/InputTextSlots.stories.mdx +0 -69
  462. package/src/stories/InputText/InputTextType.stories.mdx +0 -259
  463. package/src/stories/Progress/Progress.stories.mdx +0 -30
  464. package/src/stories/Radio/Radio.stories.mdx +0 -128
  465. package/src/stories/Radio/RadioSlots.stories.mdx +0 -46
  466. package/src/stories/RadioGroup/RadioGroup.stories.mdx +0 -135
  467. package/src/stories/RadioGroup/RadioGroupOptions.stories.mdx +0 -100
  468. package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +0 -68
  469. package/src/stories/Select/Select.stories.mdx +0 -196
  470. package/src/stories/Select/SelectIconPosition.stories.mdx +0 -78
  471. package/src/stories/Select/SelectOptions.stories.mdx +0 -135
  472. package/src/stories/Select/SelectSlots.stories.mdx +0 -48
  473. package/src/stories/Textarea/Textarea.stories.mdx +0 -187
  474. package/src/stories/Textarea/TextareaLength.stories.mdx +0 -110
  475. package/src/stories/Textarea/TextareaSlots.stories.mdx +0 -69
  476. package/src/stories/Textarea/TextareatIconPosition.stories.mdx +0 -78
  477. package/src/stories/Tooltip/Tooltip.stories.mdx +0 -102
  478. package/src/stories/Tooltip/TooltipDirective.stories.mdx +0 -99
@@ -0,0 +1,48 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3'
2
+ import VvIcon from '@/components/VvIcon/VvIcon.vue'
3
+ import { defaultArgs, argTypes } from './Icon.settings'
4
+ import NormalIcons from '@/assets/icons/normal.json'
5
+
6
+ const meta: Meta<typeof VvIcon> = {
7
+ title: 'Components/Icon',
8
+ component: VvIcon,
9
+ args: defaultArgs,
10
+ argTypes,
11
+ tags: ['autodocs'],
12
+ }
13
+
14
+ export default meta
15
+
16
+ type Story = StoryObj<typeof VvIcon>
17
+
18
+ export const Default: Story = {
19
+ args: {
20
+ ...defaultArgs,
21
+ },
22
+ render: (args) => ({
23
+ components: { VvIcon },
24
+ setup() {
25
+ return { args }
26
+ },
27
+ template: /*html*/ `<vv-icon v-bind="args" />`,
28
+ }),
29
+ }
30
+
31
+ export const Remote: Story = {
32
+ ...Default,
33
+ args: {
34
+ ...defaultArgs,
35
+ name: 'fingerprint',
36
+ src: 'https://raw.githubusercontent.com/google/material-design-icons/master/src/action/fingerprint/materialicons/24px.svg',
37
+ },
38
+ }
39
+
40
+ export const Inline: Story = {
41
+ ...Default,
42
+ args: {
43
+ ...defaultArgs,
44
+ name: 'bell-2',
45
+ svg: `<svg viewBox="0 0 24 24">${NormalIcons.icons.bell.body}</svg>`,
46
+ },
47
+ }
48
+
@@ -0,0 +1,53 @@
1
+ import { ref, watch } from 'vue'
2
+ import type { Meta, StoryObj } from '@storybook/vue3'
3
+ import VvIcon from '@/components/VvIcon/VvIcon.vue'
4
+ import { icons as NormalIcons } from '@/assets/icons/normal.json'
5
+ import { defaultArgs, argTypes } from './Icon.settings'
6
+
7
+ const meta: Meta<typeof VvIcon> = {
8
+ title: 'Components/Icon/Collection',
9
+ component: VvIcon,
10
+ args: defaultArgs,
11
+ argTypes,
12
+ }
13
+
14
+ export default meta
15
+
16
+ type Story = StoryObj<typeof VvIcon>
17
+
18
+ export const Default: Story = {
19
+ args: {
20
+ ...defaultArgs,
21
+ width: 24,
22
+ },
23
+ render: (args) => ({
24
+ components: { VvIcon },
25
+ setup() {
26
+ const allIcons = Object.keys(NormalIcons)
27
+ const icons = ref(allIcons)
28
+ const search = ref('')
29
+ watch(search, (newValue) => {
30
+ icons.value = allIcons.filter((icon) => icon.includes(newValue))
31
+ })
32
+ return { args, search, icons }
33
+ },
34
+ template: /*html*/ `
35
+ <div class="absolute inset-0 overflow-y-auto p-16">
36
+ <div class="vv-input-text">
37
+ <div class="vv-input-text__wrapper">
38
+ <input v-model="search" type="search" placeholder="Search..." />
39
+ </div>
40
+ </div>
41
+ <div class="grid grid-cols-5 gap-16 mt-16">
42
+ <div
43
+ v-for="iconName in icons"
44
+ :key="iconName"
45
+ class="flex items-center gap-16">
46
+ <VvIcon v-bind="args" :name="iconName" />
47
+ {{ iconName }}
48
+ </div>
49
+ </div>
50
+ </div>
51
+ `,
52
+ }),
53
+ }
@@ -45,7 +45,6 @@ export const argTypes = {
45
45
  min: {
46
46
  description:
47
47
  'Minimum value. Available for input types: date, month, week, time, datetime-local, number, range.',
48
- type: ['number', 'string'],
49
48
  control: {
50
49
  type: 'text',
51
50
  },
@@ -53,7 +52,6 @@ export const argTypes = {
53
52
  max: {
54
53
  description:
55
54
  'Maximum value. Available for input types: date, month, week, time, datetime-local, number, range.',
56
- type: ['number', 'string'],
57
55
  control: {
58
56
  type: 'text',
59
57
  },
@@ -61,9 +59,6 @@ export const argTypes = {
61
59
  step: {
62
60
  description:
63
61
  'Incremental values that are valid. Available for input types: date, month, week, time, datetime-local and number.',
64
- type: {
65
- summary: 'number',
66
- },
67
62
  table: {
68
63
  defaultValue: {
69
64
  summary: 1,
@@ -73,15 +68,11 @@ export const argTypes = {
73
68
  pattern: {
74
69
  description:
75
70
  'Pattern the value must match to be valid. Available for input types: text, search, url, tel, email and password.',
76
- type: {
77
- summary: 'regex',
78
- },
79
71
  control: {
80
72
  type: 'text',
81
73
  },
82
74
  },
83
75
  multiple: {
84
- type: 'boolean',
85
76
  description:
86
77
  'Whether to allow multiple values. Available for input type email.',
87
78
  table: {
@@ -128,9 +119,6 @@ export const argTypes = {
128
119
  },
129
120
  labelStepUp: {
130
121
  description: 'Label for step up button',
131
- type: {
132
- summary: 'string',
133
- },
134
122
  control: {
135
123
  type: 'text',
136
124
  },
@@ -142,9 +130,6 @@ export const argTypes = {
142
130
  },
143
131
  labelStepDown: {
144
132
  description: 'Label for step down button',
145
- type: {
146
- summary: 'string',
147
- },
148
133
  control: {
149
134
  type: 'text',
150
135
  },
@@ -156,9 +141,6 @@ export const argTypes = {
156
141
  },
157
142
  labelShowPassword: {
158
143
  description: 'Label for show password button',
159
- type: {
160
- summary: 'string',
161
- },
162
144
  control: {
163
145
  type: 'text',
164
146
  },
@@ -170,9 +152,7 @@ export const argTypes = {
170
152
  },
171
153
  labelHidePassword: {
172
154
  description: 'Label for hide password button',
173
- type: {
174
- summary: 'string',
175
- },
155
+
176
156
  control: {
177
157
  type: 'text',
178
158
  },
@@ -184,9 +164,7 @@ export const argTypes = {
184
164
  },
185
165
  labelClear: {
186
166
  description: 'Label for clear button',
187
- type: {
188
- summary: 'string',
189
- },
167
+
190
168
  control: {
191
169
  type: 'text',
192
170
  },
@@ -198,18 +176,13 @@ export const argTypes = {
198
176
  },
199
177
  mask: {
200
178
  description: 'Input mask, only for text type',
201
- type: {
202
- summary: 'string',
203
- },
179
+
204
180
  control: {
205
181
  type: 'text',
206
182
  },
207
183
  },
208
184
  maskEager: {
209
185
  description: 'Show mask before typing',
210
- type: {
211
- summary: 'boolean',
212
- },
213
186
  table: {
214
187
  defaultValue: {
215
188
  summary: false,
@@ -218,9 +191,6 @@ export const argTypes = {
218
191
  },
219
192
  maskReversed: {
220
193
  description: 'Write typing reverse (ex. for numbers)',
221
- type: {
222
- summary: 'boolean',
223
- },
224
194
  table: {
225
195
  defaultValue: {
226
196
  summary: false,
@@ -229,9 +199,6 @@ export const argTypes = {
229
199
  },
230
200
  maskTokens: {
231
201
  description: 'Add mask custom tokens',
232
- type: {
233
- summary: 'Object',
234
- },
235
202
  table: {
236
203
  defaultValue: {
237
204
  summary: 'undefined',
@@ -240,9 +207,6 @@ export const argTypes = {
240
207
  },
241
208
  maskTokensReplace: {
242
209
  description: 'Replace default tokens',
243
- type: {
244
- summary: 'boolean',
245
- },
246
210
  table: {
247
211
  defaultValue: {
248
212
  summary: false,
@@ -0,0 +1,121 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3'
2
+ import VvInputText from '@/components/VvInputText/VvInputText.vue'
3
+ import { defaultArgs, argTypes } from './InputText.settings'
4
+ import { defaultTest } from './InputText.test'
5
+ import { Position } from '@/constants'
6
+
7
+ const meta: Meta<typeof VvInputText> = {
8
+ title: 'Components/InputText',
9
+ component: VvInputText,
10
+ args: defaultArgs,
11
+ argTypes,
12
+ tags: ['autodocs'],
13
+ }
14
+
15
+ export default meta
16
+
17
+ type Story = StoryObj<typeof VvInputText>
18
+
19
+ export const Default: Story = {
20
+ args: {
21
+ ...defaultArgs,
22
+ },
23
+ render: (args) => ({
24
+ components: { VvInputText },
25
+ setup() {
26
+ return { args }
27
+ },
28
+ data: () => ({ inputValue: undefined }),
29
+ template: /* html */ `
30
+ <vv-input-text v-bind="args" v-model="inputValue" :data-testData="inputValue" data-testId="element">
31
+ <template #before v-if="args.before"><div class="flex" v-html="args.before"></div></template>
32
+ <template #after v-if="args.after"><div class="flex" v-html="args.after"></div></template>
33
+ <template #hint v-if="args.hint"><span v-html="args.hint"></span></template>
34
+ </vv-input-text>
35
+ <div>Value: <span data-testId="value">{{inputValue}}</span></div>
36
+ `,
37
+ }),
38
+ play: defaultTest,
39
+ }
40
+
41
+ export const Disabled: Story = {
42
+ ...Default,
43
+ args: {
44
+ ...defaultArgs,
45
+ disabled: true,
46
+ },
47
+ }
48
+
49
+ export const Readonly: Story = {
50
+ ...Default,
51
+ args: {
52
+ ...defaultArgs,
53
+ readonly: true,
54
+ },
55
+ }
56
+
57
+ export const Valid: Story = {
58
+ ...Default,
59
+ args: {
60
+ ...defaultArgs,
61
+ valid: true,
62
+ validLabel: 'The field is valid.',
63
+ icon: 'check',
64
+ iconPosition: Position.after,
65
+ },
66
+ }
67
+
68
+ export const Invalid: Story = {
69
+ ...Default,
70
+ args: {
71
+ ...defaultArgs,
72
+ invalid: true,
73
+ invalidLabel: 'The field is required.',
74
+ icon: 'error-2',
75
+ iconPosition: Position.after,
76
+ },
77
+ }
78
+
79
+ export const Hint: Story = {
80
+ ...Default,
81
+ args: {
82
+ ...defaultArgs,
83
+ hintLabel: 'Please enter your name.',
84
+ },
85
+
86
+ }
87
+
88
+ export const Loading: Story = {
89
+ ...Default,
90
+ args: {
91
+ ...defaultArgs,
92
+ loading: true,
93
+ loadingLabel: 'Loading...',
94
+ },
95
+ }
96
+
97
+ export const Floating: Story = {
98
+ ...Default,
99
+ args: {
100
+ ...defaultArgs,
101
+ floating: true,
102
+ },
103
+ }
104
+
105
+ export const Mask: Story = {
106
+ ...Default,
107
+ args: {
108
+ ...defaultArgs,
109
+ mask: '##-###-##',
110
+ },
111
+ }
112
+
113
+ export const Unit: Story = {
114
+ ...Default,
115
+ args: {
116
+ ...defaultArgs,
117
+ unit: 'km',
118
+ autoWidth: true,
119
+ type: 'number',
120
+ },
121
+ }
@@ -0,0 +1,43 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3'
2
+ import VvInputText from '@/components/VvInputText/VvInputText.vue'
3
+ import { Default } from './InputText.stories'
4
+ import { defaultArgs, argTypes } from './InputText.settings'
5
+
6
+ const meta: Meta<typeof VvInputText> = {
7
+ title: 'Components/InputText/Icon',
8
+ component: VvInputText,
9
+ args: defaultArgs,
10
+ argTypes,
11
+ }
12
+
13
+ export default meta
14
+
15
+ type Story = StoryObj<typeof VvInputText>
16
+
17
+ export const DefaultPosition: Story = {
18
+ ...Default,
19
+ args: {
20
+ ...Default.args,
21
+ icon: 'heart',
22
+ },
23
+ }
24
+
25
+ export const After: Story = {
26
+ ...Default,
27
+ args: {
28
+ ...Default.args,
29
+ icon: 'heart',
30
+ iconPosition: 'after',
31
+ },
32
+ }
33
+
34
+ export const Src: Story = {
35
+ ...Default,
36
+ args: {
37
+ ...Default.args,
38
+ icon: {
39
+ name: 'engineering',
40
+ src: 'https://raw.githubusercontent.com/google/material-design-icons/master/src/social/engineering/materialicons/24px.svg',
41
+ },
42
+ },
43
+ }
@@ -0,0 +1,58 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3'
2
+ import VvInputText from '@/components/VvInputText/VvInputText.vue'
3
+ import { Default } from './InputText.stories'
4
+ import { defaultArgs, argTypes } from './InputText.settings'
5
+
6
+ const meta: Meta<typeof VvInputText> = {
7
+ title: 'Components/InputText/Length',
8
+ component: VvInputText,
9
+ args: defaultArgs,
10
+ argTypes,
11
+ }
12
+
13
+ export default meta
14
+
15
+ type Story = StoryObj<typeof VvInputText>
16
+
17
+ export const MaxLength: Story = {
18
+ ...Default,
19
+ args: {
20
+ ...Default.args,
21
+ maxlength: 5,
22
+ },
23
+ }
24
+
25
+ export const MinLength: Story = {
26
+ ...Default,
27
+ args: {
28
+ ...Default.args,
29
+ minlength: 5,
30
+ },
31
+ }
32
+
33
+ export const Count: Story = {
34
+ ...Default,
35
+ args: {
36
+ ...Default.args,
37
+ count: true,
38
+ minlength: 100,
39
+ },
40
+ }
41
+
42
+ export const Limit: Story = {
43
+ ...Default,
44
+ args: {
45
+ ...Default.args,
46
+ count: 'limit',
47
+ maxlength: 100,
48
+ },
49
+ }
50
+
51
+ export const Countdown: Story = {
52
+ ...Default,
53
+ args: {
54
+ ...Default.args,
55
+ count: 'countdown',
56
+ maxlength: 100,
57
+ },
58
+ }
@@ -0,0 +1,51 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3'
2
+ import VvInputText from '@/components/VvInputText/VvInputText.vue'
3
+ import { Default } from './InputText.stories'
4
+ import { defaultArgs, argTypes } from './InputText.settings'
5
+
6
+ const meta: Meta<typeof VvInputText> = {
7
+ title: 'Components/InputText/MinMax',
8
+ component: VvInputText,
9
+ args: defaultArgs,
10
+ argTypes,
11
+ }
12
+
13
+ export default meta
14
+
15
+ type Story = StoryObj<typeof VvInputText>
16
+
17
+ export const MinNumber: Story = {
18
+ ...Default,
19
+ args: {
20
+ ...Default.args,
21
+ type: 'number',
22
+ min: -15,
23
+ },
24
+ }
25
+
26
+ export const MaxNumber: Story = {
27
+ ...Default,
28
+ args: {
29
+ ...Default.args,
30
+ type: 'number',
31
+ max: 15,
32
+ },
33
+ }
34
+
35
+ export const MinDate: Story = {
36
+ ...Default,
37
+ args: {
38
+ ...Default.args,
39
+ type: 'date',
40
+ min: new Date().toISOString().split('T')[0],
41
+ },
42
+ }
43
+
44
+ export const MaxDate: Story = {
45
+ ...Default,
46
+ args: {
47
+ ...Default.args,
48
+ type: 'date',
49
+ max: new Date().toISOString().split('T')[0],
50
+ },
51
+ }
@@ -0,0 +1,39 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3'
2
+ import VvInputText from '@/components/VvInputText/VvInputText.vue'
3
+ import { Default } from './InputText.stories'
4
+ import { defaultArgs, argTypes } from './InputText.settings'
5
+
6
+ const meta: Meta<typeof VvInputText> = {
7
+ title: 'Components/InputText/Slots',
8
+ component: VvInputText,
9
+ args: defaultArgs,
10
+ argTypes,
11
+ }
12
+
13
+ export default meta
14
+
15
+ type Story = StoryObj<typeof VvInputText>
16
+
17
+ export const Before: Story = {
18
+ ...Default,
19
+ args: {
20
+ ...Default.args,
21
+ before: '<div class="vv-badge vv-badge--sm uppercase">Before</div>',
22
+ },
23
+ }
24
+
25
+ export const After: Story = {
26
+ ...Default,
27
+ args: {
28
+ ...Default.args,
29
+ after: '<div class="vv-badge vv-badge--sm uppercase">After</div>',
30
+ },
31
+ }
32
+
33
+ export const Hint: Story = {
34
+ ...Default,
35
+ args: {
36
+ ...Default.args,
37
+ hint: 'Hint <em class="italic">slot!</em>',
38
+ },
39
+ }
@@ -0,0 +1,119 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3'
2
+ import VvInputText from '@/components/VvInputText/VvInputText.vue'
3
+ import { Default } from './InputText.stories'
4
+ import { defaultArgs, argTypes } from './InputText.settings'
5
+
6
+ const meta: Meta<typeof VvInputText> = {
7
+ title: 'Components/InputText/Type',
8
+ component: VvInputText,
9
+ args: defaultArgs,
10
+ argTypes,
11
+ }
12
+
13
+ export default meta
14
+
15
+ type Story = StoryObj<typeof VvInputText>
16
+
17
+ export const Text: Story = {
18
+ ...Default,
19
+ args: {
20
+ ...Default.args,
21
+ type: 'text',
22
+ },
23
+ }
24
+
25
+ export const Password: Story = {
26
+ ...Default,
27
+ args: {
28
+ ...Default.args,
29
+ type: 'password',
30
+ },
31
+ }
32
+
33
+ export const Date: Story = {
34
+ ...Default,
35
+ args: {
36
+ ...Default.args,
37
+ type: 'date',
38
+ },
39
+ }
40
+
41
+ export const DateTime: Story = {
42
+ ...Default,
43
+ args: {
44
+ ...Default.args,
45
+ type: 'datetime-local',
46
+ },
47
+ }
48
+
49
+ export const Time: Story = {
50
+ ...Default,
51
+ args: {
52
+ ...Default.args,
53
+ type: 'time',
54
+ },
55
+ }
56
+
57
+ export const Month: Story = {
58
+ ...Default,
59
+ args: {
60
+ ...Default.args,
61
+ type: 'month',
62
+ },
63
+ }
64
+
65
+ export const Week: Story = {
66
+ ...Default,
67
+ args: {
68
+ ...Default.args,
69
+ type: 'week',
70
+ },
71
+ }
72
+
73
+ export const Number: Story = {
74
+ ...Default,
75
+ args: {
76
+ ...Default.args,
77
+ type: 'number',
78
+ },
79
+ }
80
+
81
+ export const Email: Story = {
82
+ ...Default,
83
+ args: {
84
+ ...Default.args,
85
+ type: 'email',
86
+ },
87
+ }
88
+
89
+ export const Tel: Story = {
90
+ ...Default,
91
+ args: {
92
+ ...Default.args,
93
+ type: 'tel',
94
+ },
95
+ }
96
+
97
+ export const Url: Story = {
98
+ ...Default,
99
+ args: {
100
+ ...Default.args,
101
+ type: 'url',
102
+ },
103
+ }
104
+
105
+ export const Color: Story = {
106
+ ...Default,
107
+ args: {
108
+ ...Default.args,
109
+ type: 'color',
110
+ },
111
+ }
112
+
113
+ export const Search: Story = {
114
+ ...Default,
115
+ args: {
116
+ ...Default.args,
117
+ type: 'search',
118
+ },
119
+ }
@@ -0,0 +1,34 @@
1
+ import { VvNavProps } from '@/components/VvNav'
2
+ import { ModifiersArgTypes } from '@/stories/argTypes'
3
+
4
+ export const defaultArgs = {
5
+ ...propsToObject(VvNavProps),
6
+ items: [
7
+ {
8
+ title: 'Item 1',
9
+ href: 'javascript:void(0)',
10
+ },
11
+ {
12
+ title: 'Item 2',
13
+ to: 'about',
14
+ },
15
+ {
16
+ title: 'Item 3',
17
+ to: 'contacts',
18
+ on: {
19
+ click: () => {
20
+ // eslint-disable-next-line no-console
21
+ console.log('clicked Item 3')
22
+ },
23
+ },
24
+ },
25
+ ],
26
+ modifiers: 'sidebar',
27
+ }
28
+
29
+ export const argTypes = {
30
+ modifiers: {
31
+ ...ModifiersArgTypes.modifiers,
32
+ options: ['sidebar', 'aside', 'tabs', 'full'],
33
+ },
34
+ }