@volverjs/ui-vue 0.0.3 → 0.0.5-beta.1

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 (236) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +54 -15
  3. package/auto-imports.d.ts +12 -3
  4. package/bin/icons.cjs +1 -73
  5. package/dist/Volver.d.ts +23 -11
  6. package/dist/components/VvAccordion/VvAccordion.es.js +180 -74
  7. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  8. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +4 -1
  9. package/dist/components/VvAccordion/index.d.ts +8 -3
  10. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +280 -122
  11. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  12. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +15 -12
  13. package/dist/components/VvAccordionGroup/index.d.ts +8 -0
  14. package/dist/components/VvAction/VvAction.es.js +338 -0
  15. package/dist/components/VvAction/VvAction.umd.js +1 -0
  16. package/dist/components/VvAction/VvAction.vue.d.ts +63 -0
  17. package/dist/components/VvAction/index.d.ts +24 -0
  18. package/dist/components/VvBadge/VvBadge.es.js +251 -22
  19. package/dist/components/VvBadge/VvBadge.umd.js +1 -1
  20. package/dist/components/VvBadge/VvBadge.vue.d.ts +2 -2
  21. package/dist/components/VvBadge/index.d.ts +1 -1
  22. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +280 -62
  23. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  24. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +11 -11
  25. package/dist/components/VvBreadcrumb/index.d.ts +1 -1
  26. package/dist/components/VvButton/VvButton.es.js +720 -261
  27. package/dist/components/VvButton/VvButton.umd.js +1 -1
  28. package/dist/components/VvButton/VvButton.vue.d.ts +54 -54
  29. package/dist/components/VvButton/index.d.ts +30 -75
  30. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +296 -49
  31. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  32. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +2 -2
  33. package/dist/components/VvButtonGroup/index.d.ts +1 -1
  34. package/dist/components/VvCard/VvCard.es.js +60 -28
  35. package/dist/components/VvCard/VvCard.umd.js +1 -1
  36. package/dist/components/VvCheckbox/VvCheckbox.es.js +630 -172
  37. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  38. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +4 -4
  39. package/dist/components/VvCheckbox/index.d.ts +6 -6
  40. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +736 -228
  41. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  42. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +9 -9
  43. package/dist/components/VvCheckboxGroup/index.d.ts +4 -4
  44. package/dist/components/VvCombobox/VvCombobox.es.js +1673 -768
  45. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  46. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +159 -61
  47. package/dist/components/VvCombobox/index.d.ts +54 -23
  48. package/dist/components/VvDialog/VvDialog.es.js +426 -115
  49. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  50. package/dist/components/VvDialog/VvDialog.vue.d.ts +12 -3
  51. package/dist/components/VvDialog/index.d.ts +4 -1
  52. package/dist/components/VvDropdown/VvDropdown.es.js +504 -190
  53. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  54. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +114 -42
  55. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +61 -0
  56. package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +52 -0
  57. package/dist/components/VvDropdown/index.d.ts +35 -14
  58. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +454 -0
  59. package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -0
  60. package/dist/components/VvDropdownItem/VvDropdownItem.es.js +48 -18
  61. package/dist/components/VvDropdownItem/VvDropdownItem.umd.js +1 -1
  62. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +361 -0
  63. package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -0
  64. package/dist/components/VvIcon/VvIcon.es.js +116 -52
  65. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  66. package/dist/components/VvIcon/VvIcon.vue.d.ts +7 -7
  67. package/dist/components/VvIcon/index.d.ts +2 -2
  68. package/dist/components/VvInputText/VvInputPasswordAction.d.ts +2 -2
  69. package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
  70. package/dist/components/VvInputText/VvInputText.es.js +1054 -376
  71. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  72. package/dist/components/VvInputText/VvInputText.vue.d.ts +107 -20
  73. package/dist/components/VvInputText/VvInputTextActions.d.ts +1 -1
  74. package/dist/components/VvInputText/index.d.ts +67 -3
  75. package/dist/components/VvProgress/VvProgress.es.js +254 -23
  76. package/dist/components/VvProgress/VvProgress.umd.js +1 -1
  77. package/dist/components/VvProgress/VvProgress.vue.d.ts +2 -2
  78. package/dist/components/VvProgress/index.d.ts +1 -1
  79. package/dist/components/VvRadio/VvRadio.es.js +568 -137
  80. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  81. package/dist/components/VvRadio/VvRadio.vue.d.ts +4 -4
  82. package/dist/components/VvRadio/index.d.ts +6 -6
  83. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +674 -193
  84. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  85. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +9 -9
  86. package/dist/components/VvRadioGroup/index.d.ts +4 -4
  87. package/dist/components/VvSelect/VvSelect.es.js +703 -251
  88. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  89. package/dist/components/VvSelect/VvSelect.vue.d.ts +24 -17
  90. package/dist/components/VvSelect/index.d.ts +8 -8
  91. package/dist/components/VvTextarea/VvTextarea.es.js +747 -272
  92. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  93. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +21 -14
  94. package/dist/components/VvTextarea/index.d.ts +7 -7
  95. package/dist/components/VvTooltip/VvTooltip.es.js +252 -24
  96. package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
  97. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +7 -7
  98. package/dist/components/VvTooltip/index.d.ts +2 -2
  99. package/dist/components/index.es.js +3676 -2007
  100. package/dist/components/index.umd.js +1 -1
  101. package/dist/composables/dropdown/useInjectDropdown.d.ts +1 -1
  102. package/dist/composables/dropdown/useProvideDropdown.d.ts +3 -3
  103. package/dist/composables/group/useInjectedGroupState.d.ts +2 -2
  104. package/dist/composables/group/useProvideGroupState.d.ts +1 -1
  105. package/dist/composables/useComponentFocus.d.ts +1 -1
  106. package/dist/composables/useComponentIcon.d.ts +7 -7
  107. package/dist/composables/useDebouncedInput.d.ts +4 -1
  108. package/dist/composables/useDefaults.d.ts +2 -0
  109. package/dist/composables/useModifiers.d.ts +1 -1
  110. package/dist/composables/useOptions.d.ts +2 -2
  111. package/dist/composables/useTextCount.d.ts +3 -3
  112. package/dist/composables/useUniqueId.d.ts +1 -1
  113. package/dist/composables/useVolver.d.ts +1 -1
  114. package/dist/constants.d.ts +30 -0
  115. package/dist/directives/index.es.js +288 -0
  116. package/dist/directives/index.umd.js +1 -0
  117. package/dist/directives/v-tooltip.es.js +285 -0
  118. package/dist/directives/v-tooltip.umd.js +1 -0
  119. package/dist/icons.es.js +38 -23
  120. package/dist/icons.umd.js +1 -1
  121. package/dist/index.d.ts +0 -1
  122. package/dist/index.es.js +115 -3269
  123. package/dist/index.umd.js +1 -1
  124. package/dist/props/index.d.ts +215 -23
  125. package/dist/resolvers/unplugin.d.ts +14 -8
  126. package/dist/resolvers/unplugin.es.js +94 -33
  127. package/dist/resolvers/unplugin.umd.js +1 -1
  128. package/dist/stories/Combobox/Combobox.settings.d.ts +44 -0
  129. package/dist/stories/Dropdown/Dropdown.settings.d.ts +3 -2
  130. package/dist/stories/InputText/InputText.settings.d.ts +53 -0
  131. package/dist/stories/argTypes.d.ts +1 -1
  132. package/package.json +167 -63
  133. package/src/Volver.ts +60 -26
  134. package/src/assets/icons/detailed.json +1 -1
  135. package/src/assets/icons/normal.json +1 -1
  136. package/src/assets/icons/simple.json +1 -1
  137. package/src/components/VvAccordion/VvAccordion.vue +19 -22
  138. package/src/components/VvAccordion/index.ts +12 -4
  139. package/src/components/VvAccordionGroup/VvAccordionGroup.vue +19 -10
  140. package/src/components/VvAccordionGroup/index.ts +8 -0
  141. package/src/components/VvAction/VvAction.vue +144 -0
  142. package/src/components/VvAction/index.ts +5 -0
  143. package/src/components/VvBadge/VvBadge.vue +2 -2
  144. package/src/components/VvBadge/index.ts +1 -1
  145. package/src/components/VvBreadcrumb/VvBreadcrumb.vue +3 -3
  146. package/src/components/VvButton/VvButton.vue +41 -124
  147. package/src/components/VvButton/index.ts +16 -88
  148. package/src/components/VvButtonGroup/VvButtonGroup.vue +4 -7
  149. package/src/components/VvButtonGroup/index.ts +1 -1
  150. package/src/components/VvCard/VvCard.vue +2 -2
  151. package/src/components/VvCheckbox/VvCheckbox.vue +3 -7
  152. package/src/components/VvCheckbox/index.ts +11 -7
  153. package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +7 -10
  154. package/src/components/VvCheckboxGroup/index.ts +1 -1
  155. package/src/components/VvCombobox/VvCombobox.vue +85 -57
  156. package/src/components/VvCombobox/index.ts +12 -10
  157. package/src/components/VvDialog/VvDialog.vue +28 -11
  158. package/src/components/VvDialog/index.ts +5 -2
  159. package/src/components/VvDropdown/VvDropdown.vue +6 -5
  160. package/src/components/VvDropdown/VvDropdownAction.vue +46 -0
  161. package/src/components/VvDropdown/VvDropdownOption.vue +72 -0
  162. package/src/components/VvDropdown/index.ts +6 -11
  163. package/src/components/VvIcon/VvIcon.vue +3 -3
  164. package/src/components/VvIcon/index.ts +3 -3
  165. package/src/components/VvInputText/VvInputClearAction.ts +2 -2
  166. package/src/components/VvInputText/VvInputPasswordAction.ts +3 -4
  167. package/src/components/VvInputText/VvInputStepAction.ts +3 -2
  168. package/src/components/VvInputText/VvInputText.vue +128 -35
  169. package/src/components/VvInputText/VvInputTextActions.ts +5 -8
  170. package/src/components/VvInputText/index.ts +62 -1
  171. package/src/components/VvProgress/VvProgress.vue +2 -2
  172. package/src/components/VvProgress/index.ts +1 -1
  173. package/src/components/VvRadio/VvRadio.vue +3 -7
  174. package/src/components/VvRadio/index.ts +11 -7
  175. package/src/components/VvRadioGroup/VvRadioGroup.vue +7 -10
  176. package/src/components/VvRadioGroup/index.ts +1 -1
  177. package/src/components/VvSelect/VvSelect.vue +4 -4
  178. package/src/components/VvSelect/index.ts +3 -5
  179. package/src/components/VvTextarea/VvTextarea.vue +4 -4
  180. package/src/components/VvTextarea/index.ts +1 -1
  181. package/src/components/VvTooltip/VvTooltip.vue +2 -2
  182. package/src/components/VvTooltip/index.ts +3 -3
  183. package/src/composables/dropdown/useInjectDropdown.ts +2 -2
  184. package/src/composables/dropdown/useProvideDropdown.ts +9 -11
  185. package/src/composables/group/useInjectedGroupState.ts +1 -1
  186. package/src/composables/group/useProvideGroupState.ts +1 -1
  187. package/src/composables/useComponentIcon.ts +1 -1
  188. package/src/composables/useDebouncedInput.ts +10 -3
  189. package/src/composables/useDefaults.ts +89 -0
  190. package/src/composables/useModifiers.ts +8 -9
  191. package/src/composables/useOptions.ts +1 -1
  192. package/src/composables/useVolver.ts +2 -2
  193. package/src/constants.ts +36 -0
  194. package/src/directives/index.ts +1 -1
  195. package/src/directives/v-tooltip.ts +2 -2
  196. package/src/index.ts +0 -2
  197. package/src/props/index.ts +111 -19
  198. package/src/resolvers/unplugin.ts +96 -49
  199. package/src/stories/Accordion/Accordion.stories.mdx +8 -2
  200. package/src/stories/Accordion/Accordion.test.ts +21 -15
  201. package/src/stories/Accordion/AccordionSlots.stories.mdx +8 -8
  202. package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +17 -1
  203. package/src/stories/AccordionGroup/AccordionGroup.test.ts +18 -12
  204. package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +3 -2
  205. package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +2 -1
  206. package/src/stories/Button/Button.stories.mdx +4 -2
  207. package/src/stories/Button/Button.test.ts +3 -1
  208. package/src/stories/Button/ButtonModifiers.stories.mdx +2 -2
  209. package/src/stories/Button/ButtonSlots.stories.mdx +8 -7
  210. package/src/stories/Button/ButtonState.stories.mdx +2 -11
  211. package/src/stories/Card/Card.stories.mdx +2 -1
  212. package/src/stories/Checkbox/Checkbox.stories.mdx +2 -1
  213. package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +2 -1
  214. package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +2 -1
  215. package/src/stories/Combobox/Combobox.settings.ts +44 -0
  216. package/src/stories/Combobox/Combobox.stories.mdx +40 -1
  217. package/src/stories/Dialog/Dialog.stories.mdx +2 -1
  218. package/src/stories/Dropdown/Dropdown.settings.ts +3 -2
  219. package/src/stories/Dropdown/Dropdown.stories.mdx +14 -12
  220. package/src/stories/Dropdown/DropdownMultilevel.stories.mdx +56 -0
  221. package/src/stories/Dropdown/DropdownSlots.stories.mdx +14 -13
  222. package/src/stories/Icon/Icon.stories.mdx +2 -1
  223. package/src/stories/Icon/IconsCollection.stories.mdx +2 -1
  224. package/src/stories/InputText/InputText.settings.ts +53 -0
  225. package/src/stories/InputText/InputText.stories.mdx +42 -1
  226. package/src/stories/InputText/InputText.test.ts +5 -2
  227. package/src/stories/Progress/Progress.stories.mdx +2 -1
  228. package/src/stories/Radio/Radio.stories.mdx +2 -1
  229. package/src/stories/RadioGroup/RadioGroup.stories.mdx +2 -1
  230. package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +2 -1
  231. package/src/stories/Select/Select.stories.mdx +2 -1
  232. package/src/stories/Textarea/Textarea.stories.mdx +2 -1
  233. package/src/stories/Tooltip/Tooltip.stories.mdx +2 -1
  234. package/src/stories/Tooltip/TooltipDirective.stories.mdx +2 -1
  235. package/src/stories/argTypes.ts +2 -2
  236. package/src/types/group.d.ts +5 -0
@@ -1,42 +1,103 @@
1
- function u(r, e) {
2
- if (typeof r != "string")
1
+ function kebabCase(str, options) {
2
+ if (typeof str !== "string")
3
3
  throw new TypeError("expected a string");
4
- return r.trim().replace(/([a-z])([A-Z])/g, "$1-$2").replace(/\W/g, (o) => /[À-ž]/.test(o) ? o : "-").replace(/^-+|-+$/g, "").replace(/-{2,}/g, (o) => e != null && e.condense ? "-" : o).toLowerCase();
4
+ return str.trim().replace(/([a-z])([A-Z])/g, "$1-$2").replace(/\W/g, (m) => /[À-ž]/.test(m) ? m : "-").replace(/^-+|-+$/g, "").replace(/-{2,}/g, (m) => (options == null ? void 0 : options.condense) ? "-" : m).toLowerCase();
5
5
  }
6
- const d = ["vv-icon"], s = "vv", p = function(r) {
7
- if (!d.includes(r))
8
- return r === "vv-dropdown" ? ["vv-dropdown", "vv-dropdown-action"] : r === "vv-combobox" ? ["vv-select", "vv-dropdown", "vv-dropdown-action"] : r === "vv-accordion-group" ? ["vv-accordion-group", "vv-accordion"] : r === "vv-checkbox-group" ? ["vv-checkbox-group", "vv-checkbox"] : r === "vv-radio-group" ? ["vv-radio-group", "vv-radio"] : [r];
6
+ const STYLE_EXCLUDE = ["vv-icon", "vv-action"];
7
+ const VOLVER_PREFIX = "vv";
8
+ const DIRECTIVES = ["v-tooltip"];
9
+ const getStyleNames = function(kebabName) {
10
+ if (STYLE_EXCLUDE.includes(kebabName)) {
11
+ return void 0;
12
+ }
13
+ if (kebabName === "vv-dropdown") {
14
+ return ["vv-dropdown", "vv-dropdown-option", "vv-dropdown-action"];
15
+ }
16
+ if (kebabName === "vv-combobox") {
17
+ return [
18
+ "vv-select",
19
+ "vv-dropdown",
20
+ "vv-dropdown-option",
21
+ "vv-dropdown-action"
22
+ ];
23
+ }
24
+ if (kebabName === "vv-accordion-group") {
25
+ return ["vv-accordion-group", "vv-accordion"];
26
+ }
27
+ if (kebabName === "vv-checkbox-group") {
28
+ return ["vv-checkbox-group", "vv-checkbox"];
29
+ }
30
+ if (kebabName === "vv-radio-group") {
31
+ return ["vv-radio-group", "vv-radio"];
32
+ }
33
+ if (kebabName === "v-tooltip") {
34
+ return ["vv-tooltip"];
35
+ }
36
+ return [kebabName];
9
37
  };
10
- function f({
11
- prefix: r = s,
12
- importStyle: e,
13
- customStylePath: o
14
- } = {}) {
15
- return {
16
- type: "component",
17
- resolve: (c) => {
18
- if (!r || !c.toLowerCase().startsWith(r.toLowerCase()))
19
- return;
20
- const v = [], n = u(c).replace(
21
- `${r}-`,
22
- `${s}-`
38
+ const getSideEffects = function(kebabName, importStyle) {
39
+ const sideEffects = [];
40
+ if (!importStyle) {
41
+ return sideEffects;
42
+ }
43
+ const styleNames = getStyleNames(kebabName);
44
+ if (styleNames) {
45
+ styleNames.forEach((name) => {
46
+ sideEffects.push(
47
+ `@volverjs/style/${importStyle === "scss" ? "scss/" : ""}components/${name}`
23
48
  );
24
- if (e) {
25
- o && v.push(o);
26
- const t = p(n);
27
- t && t.forEach((i) => {
28
- v.push(
29
- `@volverjs/style/${e === "scss" ? "scss/" : ""}components/${i}`
30
- );
31
- });
49
+ });
50
+ }
51
+ return sideEffects;
52
+ };
53
+ function VolverResolver({
54
+ prefix = VOLVER_PREFIX,
55
+ importStyle,
56
+ directives,
57
+ ignore
58
+ } = {}) {
59
+ return [
60
+ {
61
+ type: "component",
62
+ resolve: (name) => {
63
+ if (!prefix || !name.toLowerCase().startsWith(prefix.toLowerCase())) {
64
+ return;
65
+ }
66
+ const kebabName = kebabCase(name).replace(
67
+ `${prefix}-`,
68
+ `${VOLVER_PREFIX}-`
69
+ );
70
+ if (ignore && ignore.includes(kebabName)) {
71
+ return;
72
+ }
73
+ return {
74
+ from: `@volverjs/ui-vue/${kebabName}`,
75
+ sideEffects: getSideEffects(kebabName, importStyle)
76
+ };
77
+ }
78
+ },
79
+ {
80
+ type: "directive",
81
+ resolve: (name) => {
82
+ if (!directives) {
83
+ return;
84
+ }
85
+ const kebabName = `v-${kebabCase(name)}`;
86
+ if (!DIRECTIVES.includes(kebabName)) {
87
+ return;
88
+ }
89
+ if (ignore && ignore.includes(kebabName)) {
90
+ return;
91
+ }
92
+ return {
93
+ from: `@volverjs/ui-vue/${kebabName}`,
94
+ sideEffects: getSideEffects(kebabName, importStyle)
95
+ };
32
96
  }
33
- return {
34
- from: `@volverjs/ui-vue/${n}`,
35
- sideEffects: v
36
- };
37
97
  }
38
- };
98
+ ];
39
99
  }
40
100
  export {
41
- f as VolverResolver
101
+ VolverResolver,
102
+ getStyleNames
42
103
  };
@@ -1 +1 @@
1
- (function(r,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(r=typeof globalThis<"u"?globalThis:r||self,t(r.components={}))})(this,function(r){"use strict";function t(e,n){if(typeof e!="string")throw new TypeError("expected a string");return e.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\W/g,o=>/[À-ž]/.test(o)?o:"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,o=>n!=null&&n.condense?"-":o).toLowerCase()}const d=["vv-icon"],c="vv",f=function(e){if(!d.includes(e))return e==="vv-dropdown"?["vv-dropdown","vv-dropdown-action"]:e==="vv-combobox"?["vv-select","vv-dropdown","vv-dropdown-action"]:e==="vv-accordion-group"?["vv-accordion-group","vv-accordion"]:e==="vv-checkbox-group"?["vv-checkbox-group","vv-checkbox"]:e==="vv-radio-group"?["vv-radio-group","vv-radio"]:[e]};function p({prefix:e=c,importStyle:n,customStylePath:o}={}){return{type:"component",resolve:s=>{if(!e||!s.toLowerCase().startsWith(e.toLowerCase()))return;const v=[],i=t(s).replace(`${e}-`,`${c}-`);if(n){o&&v.push(o);const u=f(i);u&&u.forEach(l=>{v.push(`@volverjs/style/${n==="scss"?"scss/":""}components/${l}`)})}return{from:`@volverjs/ui-vue/${i}`,sideEffects:v}}}}r.VolverResolver=p,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
1
+ !function(o,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((o="undefined"!=typeof globalThis?globalThis:o||self).components={})}(this,(function(o){"use strict";function e(o,e){if("string"!=typeof o)throw new TypeError("expected a string");return o.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\W/g,(o=>/[À-ž]/.test(o)?o:"-")).replace(/^-+|-+$/g,"").replace(/-{2,}/g,(o=>(null==e?void 0:e.condense)?"-":o)).toLowerCase()}const t=["vv-icon","vv-action"],r="vv",n=["v-tooltip"],v=function(o){if(!t.includes(o))return"vv-dropdown"===o?["vv-dropdown","vv-dropdown-option","vv-dropdown-action"]:"vv-combobox"===o?["vv-select","vv-dropdown","vv-dropdown-option","vv-dropdown-action"]:"vv-accordion-group"===o?["vv-accordion-group","vv-accordion"]:"vv-checkbox-group"===o?["vv-checkbox-group","vv-checkbox"]:"vv-radio-group"===o?["vv-radio-group","vv-radio"]:"v-tooltip"===o?["vv-tooltip"]:[o]},i=function(o,e){const t=[];if(!e)return t;const r=v(o);return r&&r.forEach((o=>{t.push(`@volverjs/style/${"scss"===e?"scss/":""}components/${o}`)})),t};o.VolverResolver=function({prefix:o=r,importStyle:t,directives:v,ignore:c}={}){return[{type:"component",resolve:n=>{if(!o||!n.toLowerCase().startsWith(o.toLowerCase()))return;const v=e(n).replace(`${o}-`,`${r}-`);return c&&c.includes(v)?void 0:{from:`@volverjs/ui-vue/${v}`,sideEffects:i(v,t)}}},{type:"directive",resolve:o=>{if(!v)return;const r=`v-${e(o)}`;return!n.includes(r)||c&&c.includes(r)?void 0:{from:`@volverjs/ui-vue/${r}`,sideEffects:i(r,t)}}}]},o.getStyleNames=v,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}));
@@ -177,6 +177,28 @@ export declare const argTypes: {
177
177
  };
178
178
  };
179
179
  };
180
+ 'dropdown::before': {
181
+ control: {
182
+ type: string;
183
+ };
184
+ table: {
185
+ category: string;
186
+ type: {
187
+ summary: string;
188
+ };
189
+ };
190
+ };
191
+ 'dropdown::after': {
192
+ control: {
193
+ type: string;
194
+ };
195
+ table: {
196
+ category: string;
197
+ type: {
198
+ summary: string;
199
+ };
200
+ };
201
+ };
180
202
  value: {
181
203
  control: {
182
204
  type: string;
@@ -199,6 +221,28 @@ export declare const argTypes: {
199
221
  };
200
222
  };
201
223
  };
224
+ 'no-options': {
225
+ control: {
226
+ type: string;
227
+ };
228
+ table: {
229
+ category: string;
230
+ type: {
231
+ summary: string;
232
+ };
233
+ };
234
+ };
235
+ 'no-results': {
236
+ control: {
237
+ type: string;
238
+ };
239
+ table: {
240
+ category: string;
241
+ type: {
242
+ summary: string;
243
+ };
244
+ };
245
+ };
202
246
  placement: {
203
247
  description: string;
204
248
  options: (import("../../constants").Side | import("../../constants").Placement)[];
@@ -1,10 +1,11 @@
1
+ import { DropdownRole } from '@/constants';
1
2
  export declare const defaultArgs: {
2
3
  [x: string]: unknown;
3
4
  };
4
5
  export declare const argTypes: {
5
6
  role: {
6
7
  description: string;
7
- options: readonly ["listbox", "menu"];
8
+ options: DropdownRole[];
8
9
  control: {
9
10
  type: string;
10
11
  };
@@ -64,7 +65,7 @@ export declare const argTypes: {
64
65
  };
65
66
  placement: {
66
67
  description: string;
67
- options: (import("../../constants").Side | import("../../constants").Placement)[];
68
+ options: (import("@/constants").Side | import("@/constants").Placement)[];
68
69
  control: {
69
70
  type: string;
70
71
  };
@@ -169,6 +169,59 @@ export declare const argTypes: {
169
169
  };
170
170
  };
171
171
  };
172
+ mask: {
173
+ description: string;
174
+ type: {
175
+ summary: string;
176
+ };
177
+ control: {
178
+ type: string;
179
+ };
180
+ };
181
+ maskEager: {
182
+ description: string;
183
+ type: {
184
+ summary: string;
185
+ };
186
+ table: {
187
+ defaultValue: {
188
+ summary: boolean;
189
+ };
190
+ };
191
+ };
192
+ maskReversed: {
193
+ description: string;
194
+ type: {
195
+ summary: string;
196
+ };
197
+ table: {
198
+ defaultValue: {
199
+ summary: boolean;
200
+ };
201
+ };
202
+ };
203
+ maskTokens: {
204
+ description: string;
205
+ type: {
206
+ summary: string;
207
+ };
208
+ table: {
209
+ defaultValue: {
210
+ summary: string;
211
+ };
212
+ };
213
+ };
214
+ maskTokensReplace: {
215
+ description: string;
216
+ type: {
217
+ summary: string;
218
+ };
219
+ table: {
220
+ defaultValue: {
221
+ summary: boolean;
222
+ };
223
+ };
224
+ };
172
225
  before: {
173
226
  control: {
174
227
  type: string;
@@ -1,4 +1,4 @@
1
- import { Placement, Position, Side } from '@/constants';
1
+ import { Placement, Position, Side } from '../constants';
2
2
  export declare const ValidArgTypes: {
3
3
  valid: {
4
4
  type: string;
package/package.json CHANGED
@@ -19,11 +19,11 @@
19
19
  "bugs": {
20
20
  "url": "https://github.com/volverjs/ui-vue/issues"
21
21
  },
22
- "version": "0.0.3",
22
+ "version": "0.0.5-beta.1",
23
23
  "engines": {
24
24
  "node": ">= 16.x"
25
25
  },
26
- "packageManager": "pnpm@7.8.0",
26
+ "packageManager": "pnpm@7.29.0",
27
27
  "type": "module",
28
28
  "main": "./dist/Volver.umd.js",
29
29
  "module": "./dist/Volver.es.js",
@@ -38,91 +38,89 @@
38
38
  "*.d.ts"
39
39
  ],
40
40
  "dependencies": {
41
- "@floating-ui/vue": "^0.2.0",
42
- "@iconify/tools": "^2.2.2",
41
+ "@floating-ui/vue": "^0.2.1",
42
+ "@iconify/tools": "^2.2.6",
43
43
  "@iconify/vue": "^4.1.0",
44
- "@vueuse/core": "^9.12.0",
44
+ "@volverjs/style": "0.1.9-beta.1",
45
+ "@vueuse/core": "^9.13.0",
45
46
  "jsdom": "^21.1.0",
47
+ "maska": "^2.1.7",
46
48
  "mitt": "^3.0.0",
47
- "nanoid": "^4.0.0",
48
- "vue": "^3.2.45"
49
+ "nanoid": "^4.0.1",
50
+ "vue": "^3.2.47"
49
51
  },
50
52
  "devDependencies": {
51
- "@babel/core": "^7.20.12",
53
+ "@babel/core": "^7.21.0",
52
54
  "@babel/preset-env": "^7.20.2",
55
+ "@babel/preset-typescript": "^7.21.0",
53
56
  "@iconify/types": "^2.0.0",
54
- "@iconify/utils": "^2.1.0",
55
- "@mdx-js/react": "^2.2.1",
57
+ "@iconify/utils": "^2.1.4",
58
+ "@mdx-js/react": "^2.3.0",
56
59
  "@rushstack/eslint-patch": "^1.2.0",
57
- "@storybook/addon-a11y": "7.0.0-beta.29",
58
- "@storybook/addon-actions": "7.0.0-beta.29",
59
- "@storybook/addon-docs": "7.0.0-beta.29",
60
- "@storybook/addon-essentials": "7.0.0-beta.29",
61
- "@storybook/addon-interactions": "7.0.0-beta.29",
62
- "@storybook/addon-links": "7.0.0-beta.29",
63
- "@storybook/addons": "7.0.0-beta.29",
64
- "@storybook/builder-vite": "7.0.0-beta.29",
65
- "@storybook/channel-postmessage": "7.0.0-beta.29",
66
- "@storybook/channel-websocket": "7.0.0-beta.29",
67
- "@storybook/cli": "7.0.0-beta.29",
68
- "@storybook/client-api": "7.0.0-beta.29",
69
- "@storybook/client-logger": "7.0.0-beta.29",
70
- "@storybook/core-common": "7.0.0-beta.29",
71
- "@storybook/jest": "^0.0.10",
72
- "@storybook/preview-api": "7.0.0-beta.29",
73
- "@storybook/preview-web": "7.0.0-beta.29",
74
- "@storybook/test-runner": "^0.9.3",
75
- "@storybook/testing-library": "^0.0.13",
76
- "@storybook/theming": "7.0.0-beta.29",
77
- "@storybook/vue3": "7.0.0-beta.29",
78
- "@storybook/vue3-vite": "7.0.0-beta.29",
60
+ "@storybook/addon-a11y": "7.0.0-beta.40",
61
+ "@storybook/addon-actions": "7.0.0-beta.40",
62
+ "@storybook/addon-docs": "7.0.0-beta.40",
63
+ "@storybook/addon-essentials": "7.0.0-beta.40",
64
+ "@storybook/addon-interactions": "7.0.0-beta.40",
65
+ "@storybook/addon-links": "7.0.0-beta.40",
66
+ "@storybook/builder-vite": "7.0.0-beta.40",
67
+ "@storybook/channel-postmessage": "7.0.0-beta.40",
68
+ "@storybook/channel-websocket": "7.0.0-beta.40",
69
+ "@storybook/cli": "7.0.0-beta.40",
70
+ "@storybook/client-api": "7.0.0-beta.40",
71
+ "@storybook/client-logger": "7.0.0-beta.40",
72
+ "@storybook/core-common": "7.0.0-beta.40",
73
+ "@storybook/jest": "^0.0.11-next.0",
74
+ "@storybook/preview-api": "7.0.0-beta.40",
75
+ "@storybook/preview-web": "7.0.0-beta.40",
76
+ "@storybook/test-runner": "^0.10.0-next.8",
77
+ "@storybook/testing-library": "^0.0.14-next.1",
78
+ "@storybook/vue3": "7.0.0-beta.40",
79
+ "@storybook/vue3-vite": "7.0.0-beta.40",
79
80
  "@types/jest-axe": "^3.5.5",
80
- "@types/jsdom": "^20.0.1",
81
- "@types/node": "18.11.18",
82
- "@types/react": "^18.0.27",
81
+ "@types/jsdom": "^21.1.0",
82
+ "@types/node": "18.14.6",
83
+ "@types/react": "^18.0.28",
83
84
  "@types/yargs": "^17.0.22",
84
85
  "@vitejs/plugin-vue": "^4.0.0",
85
- "@volverjs/style": "0.1.7",
86
- "@vue/compiler-sfc": "^3.2.45",
87
- "@vue/eslint-config-prettier": "^7.0.0",
86
+ "@vue/compiler-sfc": "^3.2.47",
87
+ "@vue/eslint-config-prettier": "^7.1.0",
88
88
  "@vue/eslint-config-typescript": "^11.0.2",
89
- "@vue/test-utils": "^2.2.8",
89
+ "@vue/test-utils": "^2.3.0",
90
90
  "@vue/tsconfig": "^0.1.3",
91
91
  "change-case": "^4.1.2",
92
- "eslint": "^8.33.0",
93
- "eslint-config-prettier": "^8.6.0",
92
+ "eslint": "^8.35.0",
93
+ "eslint-config-prettier": "^8.7.0",
94
94
  "eslint-mdx": "^2.0.5",
95
95
  "eslint-plugin-mdx": "^2.0.5",
96
- "eslint-plugin-storybook": "^0.6.10",
96
+ "eslint-plugin-storybook": "^0.6.11",
97
97
  "eslint-plugin-vue": "^9.9.0",
98
- "glob": "^8.1.0",
98
+ "glob": "^7.2.3",
99
99
  "jest-axe": "^7.0.0",
100
- "jest-diff": "^29.4.1",
101
- "jest-get-type": "^29.2.0",
100
+ "jest-diff": "^29.5.0",
101
+ "jest-get-type": "^29.4.3",
102
102
  "jsdom": "^21.1.0",
103
103
  "npm-run-all": "^4.1.5",
104
- "preact": "^10.11.3",
105
- "prettier": "^2.8.3",
106
- "pretty-format": "^29.4.1",
104
+ "prettier": "^2.8.4",
105
+ "pretty-format": "^29.5.0",
107
106
  "react": "^18.2.0",
108
107
  "react-dom": "^18.2.0",
109
108
  "remark": "^14.0.2",
110
- "sass": "^1.58.0",
111
- "sass-loader": "^13.2.0",
112
- "storybook": "7.0.0-beta.29",
109
+ "sass": "^1.58.3",
110
+ "storybook": "7.0.0-beta.40",
113
111
  "storybook-addon-markdown-docs": "^1.0.5",
114
- "storybook-dark-mode": "^2.0.5",
112
+ "storybook-dark-mode": "^2.1.1",
115
113
  "storybook-version": "^0.1.1",
114
+ "terser": "^5.16.5",
116
115
  "ts-node": "^10.9.1",
117
116
  "typescript": "~4.9.5",
118
- "unplugin-auto-import": "^0.13.0",
119
- "unplugin-vue-components": "^0.23.0",
120
- "vite": "^4.0.4",
117
+ "unplugin-auto-import": "^0.15.1",
118
+ "unplugin-vue-components": "^0.24.0",
119
+ "vite": "^4.1.4",
121
120
  "vite-plugin-eslint": "^1.8.1",
122
121
  "vite-plugin-externalize-deps": "^0.5.0",
123
- "vue-loader": "^17.0.1",
124
- "vue-tsc": "^1.0.24",
125
- "yargs": "^17.6.2"
122
+ "vue-tsc": "^1.2.0",
123
+ "yargs": "^17.7.1"
126
124
  },
127
125
  "typesVersions": {
128
126
  "*": {
@@ -134,6 +132,87 @@
134
132
  ],
135
133
  "icons": [
136
134
  "dist/icons.d.ts"
135
+ ],
136
+ "directives": [
137
+ "dist/directives/index.d.ts"
138
+ ],
139
+ "v-tooltip": [
140
+ "dist/directives/v-tooltip.d.ts"
141
+ ],
142
+ "components": [
143
+ "dist/components/index.d.ts"
144
+ ],
145
+ "vv-accordion": [
146
+ "./dist/components/VvAccordion/VvAccordion.vue.d.ts"
147
+ ],
148
+ "vv-accordion-group": [
149
+ "./dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts"
150
+ ],
151
+ "vv-action": [
152
+ "./dist/components/VvAction/VvAction.vue.d.ts"
153
+ ],
154
+ "vv-badge": [
155
+ "./dist/components/VvBadge/VvBadge.vue.d.ts"
156
+ ],
157
+ "vv-breadcrumb": [
158
+ "./dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts"
159
+ ],
160
+ "vv-button": [
161
+ "./dist/components/VvButton/VvButton.vue.d.ts"
162
+ ],
163
+ "vv-button-group": [
164
+ "./dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts"
165
+ ],
166
+ "vv-card": [
167
+ "./dist/components/VvCard/VvCard.vue.d.ts"
168
+ ],
169
+ "vv-checkbox": [
170
+ "./dist/components/VvCheckbox/VvCheckbox.vue.d.ts"
171
+ ],
172
+ "vv-checkbox-group": [
173
+ "./dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts"
174
+ ],
175
+ "vv-combobox": [
176
+ "./dist/components/VvCombobox/VvCombobox.vue.d.ts"
177
+ ],
178
+ "vv-dialog": [
179
+ "./dist/components/VvDialog/VvDialog.vue.d.ts"
180
+ ],
181
+ "vv-dropdown": [
182
+ "./dist/components/VvDropdown/VvDropdown.vue.d.ts"
183
+ ],
184
+ "vv-dropdown-action": [
185
+ "./dist/components/VvDropdownAction/VvDropdownAction.vue.d.ts"
186
+ ],
187
+ "vv-dropdown-item": [
188
+ "./dist/components/VvDropdownItem/VvDropdownItem.vue.d.ts"
189
+ ],
190
+ "vv-dropdown-option": [
191
+ "./dist/components/VvDropdownOption/VvDropdownOption.vue.d.ts"
192
+ ],
193
+ "vv-icon": [
194
+ "./dist/components/VvIcon/VvIcon.vue.d.ts"
195
+ ],
196
+ "vv-input-text": [
197
+ "./dist/components/VvInputText/VvInputText.vue.d.ts"
198
+ ],
199
+ "vv-progress": [
200
+ "./dist/components/VvProgress/VvProgress.vue.d.ts"
201
+ ],
202
+ "vv-radio": [
203
+ "./dist/components/VvRadio/VvRadio.vue.d.ts"
204
+ ],
205
+ "vv-radio-group": [
206
+ "./dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts"
207
+ ],
208
+ "vv-select": [
209
+ "./dist/components/VvSelect/VvSelect.vue.d.ts"
210
+ ],
211
+ "vv-textarea": [
212
+ "./dist/components/VvTextarea/VvTextarea.vue.d.ts"
213
+ ],
214
+ "vv-tooltip": [
215
+ "./dist/components/VvTooltip/VvTooltip.vue.d.ts"
137
216
  ]
138
217
  }
139
218
  },
@@ -145,11 +224,6 @@
145
224
  },
146
225
  "./src/*": "./src/*",
147
226
  "./dist/*": "./dist/*",
148
- "./components": {
149
- "types": "./dist/components/index.d.ts",
150
- "import": "./dist/components/index.es.js",
151
- "default": "./dist/components/index.umd.js"
152
- },
153
227
  "./resolvers/unplugin": {
154
228
  "types": "./dist/resolvers/unplugin.d.ts",
155
229
  "import": "./dist/resolvers/unplugin.es.js",
@@ -160,6 +234,21 @@
160
234
  "import": "./dist/icons.es.js",
161
235
  "default": "./dist/icons.umd.js"
162
236
  },
237
+ "./directives": {
238
+ "types": "./dist/directives/index.d.ts",
239
+ "import": "./dist/directives/index.es.js",
240
+ "default": "./dist/directives/index.umd.js"
241
+ },
242
+ "./v-tooltip": {
243
+ "types": "./dist/directives/v-tooltip.d.ts",
244
+ "import": "./dist/directives/v-tooltip.es.js",
245
+ "default": "./dist/directives/v-tooltip.umd.js"
246
+ },
247
+ "./components": {
248
+ "types": "./dist/components/index.d.ts",
249
+ "import": "./dist/components/index.es.js",
250
+ "default": "./dist/components/index.umd.js"
251
+ },
163
252
  "./vv-accordion": {
164
253
  "types": "./dist/components/VvAccordion/VvAccordion.vue.d.ts",
165
254
  "import": "./dist/components/VvAccordion/VvAccordion.es.js",
@@ -170,6 +259,11 @@
170
259
  "import": "./dist/components/VvAccordionGroup/VvAccordionGroup.es.js",
171
260
  "default": "./dist/components/VvAccordionGroup/VvAccordionGroup.umd.js"
172
261
  },
262
+ "./vv-action": {
263
+ "types": "./dist/components/VvAction/VvAction.vue.d.ts",
264
+ "import": "./dist/components/VvAction/VvAction.es.js",
265
+ "default": "./dist/components/VvAction/VvAction.umd.js"
266
+ },
173
267
  "./vv-badge": {
174
268
  "types": "./dist/components/VvBadge/VvBadge.vue.d.ts",
175
269
  "import": "./dist/components/VvBadge/VvBadge.es.js",
@@ -220,11 +314,21 @@
220
314
  "import": "./dist/components/VvDropdown/VvDropdown.es.js",
221
315
  "default": "./dist/components/VvDropdown/VvDropdown.umd.js"
222
316
  },
317
+ "./vv-dropdown-action": {
318
+ "types": "./dist/components/VvDropdownAction/VvDropdownAction.vue.d.ts",
319
+ "import": "./dist/components/VvDropdownAction/VvDropdownAction.es.js",
320
+ "default": "./dist/components/VvDropdownAction/VvDropdownAction.umd.js"
321
+ },
223
322
  "./vv-dropdown-item": {
224
323
  "types": "./dist/components/VvDropdownItem/VvDropdownItem.vue.d.ts",
225
324
  "import": "./dist/components/VvDropdownItem/VvDropdownItem.es.js",
226
325
  "default": "./dist/components/VvDropdownItem/VvDropdownItem.umd.js"
227
326
  },
327
+ "./vv-dropdown-option": {
328
+ "types": "./dist/components/VvDropdownOption/VvDropdownOption.vue.d.ts",
329
+ "import": "./dist/components/VvDropdownOption/VvDropdownOption.es.js",
330
+ "default": "./dist/components/VvDropdownOption/VvDropdownOption.umd.js"
331
+ },
228
332
  "./vv-icon": {
229
333
  "types": "./dist/components/VvIcon/VvIcon.vue.d.ts",
230
334
  "import": "./dist/components/VvIcon/VvIcon.es.js",