@volverjs/ui-vue 0.0.10-beta.1 → 0.0.10-beta.10

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 (176) hide show
  1. package/README.md +64 -1
  2. package/auto-imports.d.ts +1 -1
  3. package/bin/icons.cjs +1 -1
  4. package/bin/icons.js +34 -19
  5. package/dist/components/VvAccordion/VvAccordion.es.js +33 -4
  6. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  7. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +4 -4
  8. package/dist/components/VvAccordion/index.d.ts +1 -1
  9. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +75 -27
  10. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  11. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +5 -5
  12. package/dist/components/VvAction/VvAction.es.js +26 -4
  13. package/dist/components/VvAction/VvAction.umd.js +1 -1
  14. package/dist/components/VvAction/VvAction.vue.d.ts +17 -4
  15. package/dist/components/VvAction/index.d.ts +5 -0
  16. package/dist/components/VvAlert/VvAlert.es.js +96 -45
  17. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  18. package/dist/components/VvAlert/VvAlert.vue.d.ts +4 -4
  19. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +136 -66
  20. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  21. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +4 -4
  22. package/dist/components/VvAvatar/VvAvatar.es.js +22 -1
  23. package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
  24. package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +79 -28
  25. package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
  26. package/dist/components/VvBadge/VvBadge.es.js +39 -8
  27. package/dist/components/VvBadge/VvBadge.umd.js +1 -1
  28. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +224 -41
  29. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  30. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +14 -3
  31. package/dist/components/VvBreadcrumb/index.d.ts +2 -9
  32. package/dist/components/VvButton/VvButton.es.js +67 -22
  33. package/dist/components/VvButton/VvButton.umd.js +1 -1
  34. package/dist/components/VvButton/VvButton.vue.d.ts +25 -9
  35. package/dist/components/VvButton/index.d.ts +5 -0
  36. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +33 -6
  37. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  38. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +6 -6
  39. package/dist/components/VvCard/VvCard.es.js +47 -16
  40. package/dist/components/VvCard/VvCard.umd.js +1 -1
  41. package/dist/components/VvCheckbox/VvCheckbox.es.js +32 -4
  42. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  43. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +8 -8
  44. package/dist/components/VvCheckbox/index.d.ts +1 -1
  45. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +101 -46
  46. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  47. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +7 -7
  48. package/dist/components/VvCheckboxGroup/index.d.ts +1 -1
  49. package/dist/components/VvCombobox/VvCombobox.es.js +625 -379
  50. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  51. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +112 -112
  52. package/dist/components/VvCombobox/index.d.ts +32 -32
  53. package/dist/components/VvDialog/VvDialog.es.js +65 -27
  54. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  55. package/dist/components/VvDialog/VvDialog.vue.d.ts +4 -4
  56. package/dist/components/VvDropdown/VvDropdown.es.js +87 -46
  57. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  58. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +203 -189
  59. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +12 -0
  60. package/dist/components/VvDropdown/index.d.ts +32 -32
  61. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +46 -12
  62. package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
  63. package/dist/components/VvDropdownItem/VvDropdownItem.es.js +13 -7
  64. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +28 -1
  65. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
  66. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +40 -8
  67. package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
  68. package/dist/components/VvIcon/VvIcon.es.js +1 -1
  69. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  70. package/dist/components/VvInputText/VvInputClearAction.d.ts +1 -1
  71. package/dist/components/VvInputText/VvInputText.es.js +149 -99
  72. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  73. package/dist/components/VvInputText/VvInputText.vue.d.ts +10 -10
  74. package/dist/components/VvInputText/index.d.ts +8 -2
  75. package/dist/components/VvNav/VvNav.es.js +115 -63
  76. package/dist/components/VvNav/VvNav.umd.js +1 -1
  77. package/dist/components/VvNav/VvNav.vue.d.ts +31 -12
  78. package/dist/components/VvNav/VvNavItem.vue.d.ts +9 -0
  79. package/dist/components/VvNav/index.d.ts +1 -12
  80. package/dist/components/VvNavItem/VvNavItem.es.js +413 -0
  81. package/dist/components/VvNavItem/VvNavItem.umd.js +1 -0
  82. package/dist/components/VvNavSeparator/VvNavSeparator.es.js +24 -0
  83. package/dist/components/VvNavSeparator/VvNavSeparator.umd.js +1 -0
  84. package/dist/components/VvProgress/VvProgress.es.js +33 -6
  85. package/dist/components/VvProgress/VvProgress.umd.js +1 -1
  86. package/dist/components/VvRadio/VvRadio.es.js +32 -4
  87. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  88. package/dist/components/VvRadio/VvRadio.vue.d.ts +8 -8
  89. package/dist/components/VvRadio/index.d.ts +1 -1
  90. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +101 -46
  91. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  92. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +7 -7
  93. package/dist/components/VvRadioGroup/index.d.ts +1 -1
  94. package/dist/components/VvSelect/VvSelect.es.js +156 -96
  95. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  96. package/dist/components/VvSelect/VvSelect.vue.d.ts +13 -13
  97. package/dist/components/VvSelect/index.d.ts +1 -1
  98. package/dist/components/VvTab/VvTab.es.js +214 -99
  99. package/dist/components/VvTab/VvTab.umd.js +1 -1
  100. package/dist/components/VvTab/VvTab.vue.d.ts +40 -11
  101. package/dist/components/VvTab/index.d.ts +9 -3
  102. package/dist/components/VvTextarea/VvTextarea.es.js +123 -77
  103. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  104. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +10 -10
  105. package/dist/components/VvTooltip/VvTooltip.es.js +40 -9
  106. package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
  107. package/dist/components/index.es.js +1583 -991
  108. package/dist/components/index.umd.js +1 -1
  109. package/dist/composables/group/useInjectedGroupState.d.ts +1 -1
  110. package/dist/composables/useVolver.d.ts +1 -1
  111. package/dist/directives/index.d.ts +3 -5
  112. package/dist/directives/index.es.js +60 -23
  113. package/dist/directives/index.umd.js +1 -1
  114. package/dist/directives/v-tooltip.es.js +58 -18
  115. package/dist/directives/v-tooltip.umd.js +1 -1
  116. package/dist/icons.es.js +3 -3
  117. package/dist/icons.umd.js +1 -1
  118. package/dist/index.d.ts +3 -1
  119. package/dist/index.es.js +19 -16
  120. package/dist/index.umd.js +1 -1
  121. package/dist/props/index.d.ts +58 -34
  122. package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +50 -15
  123. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +332 -83
  124. package/dist/stories/Combobox/Combobox.settings.d.ts +8 -0
  125. package/dist/stories/Tab/Tab.settings.d.ts +4 -37
  126. package/dist/types/alert.d.ts +13 -0
  127. package/dist/types/floating-ui.d.ts +6 -0
  128. package/dist/types/generic.d.ts +4 -0
  129. package/dist/types/group.d.ts +37 -0
  130. package/dist/types/index.d.ts +5 -0
  131. package/dist/types/nav.d.ts +17 -0
  132. package/package.json +60 -51
  133. package/src/Volver.ts +22 -16
  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 +2 -2
  138. package/src/components/VvAction/VvAction.vue +5 -2
  139. package/src/components/VvBreadcrumb/VvBreadcrumb.vue +20 -19
  140. package/src/components/VvBreadcrumb/index.ts +2 -8
  141. package/src/components/VvCombobox/VvCombobox.vue +19 -8
  142. package/src/components/VvCombobox/index.ts +4 -0
  143. package/src/components/VvInputText/VvInputText.vue +2 -2
  144. package/src/components/VvNav/VvNav.vue +30 -50
  145. package/src/components/VvNav/VvNavItem.vue +18 -0
  146. package/src/components/VvNav/VvNavSeparator.vue +11 -0
  147. package/src/components/VvNav/index.ts +2 -15
  148. package/src/components/VvTab/VvTab.vue +63 -35
  149. package/src/components/VvTab/index.ts +10 -4
  150. package/src/components/VvTextarea/VvTextarea.vue +1 -1
  151. package/src/composables/useUniqueId.ts +2 -2
  152. package/src/directives/index.ts +1 -4
  153. package/src/directives/v-tooltip.ts +19 -10
  154. package/src/index.ts +3 -1
  155. package/src/props/index.ts +27 -3
  156. package/src/stories/Button/ButtonModifiers.stories.ts +4 -14
  157. package/src/stories/Combobox/Combobox.settings.ts +8 -0
  158. package/src/stories/Nav/Nav.settings.ts +3 -4
  159. package/src/stories/Nav/Nav.test.ts +4 -15
  160. package/src/stories/Tab/Tab.settings.ts +9 -9
  161. package/src/stories/Tab/Tab.stories.ts +2 -2
  162. package/src/stories/Tab/Tab.test.ts +6 -14
  163. package/src/stories/argTypes.ts +1 -1
  164. package/src/types/generic.ts +6 -0
  165. package/src/types/index.ts +5 -0
  166. package/src/types/nav.ts +19 -0
  167. package/dist/components/VvNav/VvNavItemTitle.vue.d.ts +0 -6
  168. package/dist/components/VvNavItemTitle/VvNavItemTitle.es.js +0 -19
  169. package/dist/components/VvNavItemTitle/VvNavItemTitle.umd.js +0 -1
  170. package/src/components/VvNav/VvNavItemTitle.vue +0 -11
  171. package/src/components/VvNav/VvNavSeparator.ts +0 -8
  172. package/src/types/generic.d.ts +0 -6
  173. /package/dist/components/VvNav/{VvNavSeparator.d.ts → VvNavSeparator.vue.d.ts} +0 -0
  174. /package/src/types/{alert.d.ts → alert.ts} +0 -0
  175. /package/src/types/{floating-ui.d.ts → floating-ui.ts} +0 -0
  176. /package/src/types/{group.d.ts → group.ts} +0 -0
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).directives=t(e.vue)}(this,(function(e){"use strict";var t=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(t||{}),o=(e=>(e.before="before",e.after="after",e))(o||{}),n=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(n||{});Boolean,Boolean,Boolean;const l={modifiers:[String,Array]};o.before,t.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,n.button;const i={...l,position:{type:String,default:t.bottom},value:{type:String}};const r=e.defineComponent({__name:"VvTooltip",props:i,setup(t){const o=t,{modifiers:n}=e.toRefs(o),l=function(t,o,n){return e.computed((()=>{const l={[t]:!0},i="string"==typeof(null==o?void 0:o.value)?o.value.split(" "):null==o?void 0:o.value;return i&&Array.isArray(i)&&i.forEach((e=>{e&&(l[`${t}--${e}`]=!0)})),n&&Object.keys(n.value).forEach((o=>{l[`${t}--${o}`]=e.unref(n.value[o])})),l}))}("vv-tooltip",n,e.computed((()=>({[o.position]:!0}))));return(t,o)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(l)),role:"tooltip",inert:""},[e.renderSlot(t.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(t.value),1)]))],2))}});return{tooltip:{beforeMount(t,o){const n=e.h(r,{value:o.value,position:o.arg});e.render(n,t)}},contextmenu:{beforeUpdate(t,o){var n,l,i;const r=e.ref(0),u=e.ref(0),a={getBoundingClientRect:()=>({width:0,height:0,x:r.value,y:u.value,top:u.value,left:r.value,right:r.value,bottom:u.value})};(null==(n=o.value)?void 0:n.init)&&(null==(i=(l=o.value).init)||i.call(l,a)),t.addEventListener("contextmenu",(function(e){var t,n,l;if(null==(t=o.value)?void 0:t.show)return e.preventDefault(),r.value=e.clientX,u.value=e.clientY,null==(l=(n=o.value).show)||l.call(n),!1}),!1)}}}}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).directives={},e.vue)}(this,(function(e,t){"use strict";var o=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(o||{}),n=(e=>(e.before="before",e.after="after",e))(n||{}),l=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(l||{}),u=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(u||{});Boolean,Boolean,Boolean,Boolean;const r={modifiers:[String,Array]};n.before,o.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,l.button,u.button;const i={...r,position:{type:String,default:o.bottom},value:{type:String}};const a=t.defineComponent({__name:"VvTooltip",props:i,setup(e){const o=e,{modifiers:n}=t.toRefs(o),l=function(e,o,n){return t.computed((()=>{const l={[e]:!0},u="string"==typeof(null==o?void 0:o.value)?o.value.split(" "):null==o?void 0:o.value;return u&&Array.isArray(u)&&u.forEach((t=>{t&&(l[`${e}--${t}`]=!0)})),n&&Object.keys(n.value).forEach((o=>{l[`${e}--${o}`]=t.unref(n.value[o])})),l}))}("vv-tooltip",n,t.computed((()=>({[o.position]:!0}))));return(e,o)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(t.unref(l)),role:"tooltip",inert:""},[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.value),1)]))],2))}}),s={beforeMount(e,o){const n=t.h(a,{value:o.value,position:o.arg});t.render(n,e)},updated(e,o){const n=t.h(a,{value:o.value,position:o.arg});t.render(n,e)}},f={beforeUpdate(e,o){var n,l,u;const r=t.ref(0),i=t.ref(0),a={getBoundingClientRect:()=>({width:0,height:0,x:r.value,y:i.value,top:i.value,left:r.value,right:r.value,bottom:i.value})};(null==(n=o.value)?void 0:n.init)&&(null==(u=(l=o.value).init)||u.call(l,a)),e.addEventListener("contextmenu",(function(e){var t,n,l;if(null==(t=o.value)?void 0:t.show)return e.preventDefault(),r.value=e.clientX,i.value=e.clientY,null==(l=(n=o.value).show)||l.call(n),!1}),!1)}};e.contextmenu=f,e.tooltip=s,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
@@ -33,6 +33,13 @@ var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
33
33
  ButtonType2["reset"] = "reset";
34
34
  return ButtonType2;
35
35
  })(ButtonType || {});
36
+ var ActionTag = /* @__PURE__ */ ((ActionTag2) => {
37
+ ActionTag2["nuxtLink"] = "nuxt-link";
38
+ ActionTag2["routerLink"] = "router-link";
39
+ ActionTag2["a"] = "a";
40
+ ActionTag2["button"] = "button";
41
+ return ActionTag2;
42
+ })(ActionTag || {});
36
43
  var AnchorTarget = /* @__PURE__ */ ((AnchorTarget2) => {
37
44
  AnchorTarget2["_blank"] = "_blank";
38
45
  AnchorTarget2["_self"] = "_self";
@@ -79,6 +86,12 @@ const ActiveProps = {
79
86
  */
80
87
  active: Boolean
81
88
  };
89
+ const CurrentProps = {
90
+ /**
91
+ * Whether the item is current
92
+ */
93
+ current: Boolean
94
+ };
82
95
  const PressedProps = {
83
96
  /**
84
97
  * Whether the item is pressed
@@ -209,6 +222,7 @@ const ModifiersProps = {
209
222
  ...LabelProps,
210
223
  ...PressedProps,
211
224
  ...ActiveProps,
225
+ ...CurrentProps,
212
226
  ...LinkProps,
213
227
  /**
214
228
  * Button type
@@ -224,6 +238,13 @@ const ModifiersProps = {
224
238
  ariaLabel: {
225
239
  type: String,
226
240
  default: void 0
241
+ },
242
+ /**
243
+ * Default tag for the action
244
+ */
245
+ defaultTag: {
246
+ type: String,
247
+ default: ActionTag.button
227
248
  }
228
249
  });
229
250
  const VvTooltipProps = {
@@ -277,27 +298,46 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
277
298
  }))
278
299
  );
279
300
  return (_ctx, _cache) => {
280
- return openBlock(), createElementBlock("span", {
281
- class: normalizeClass(unref(bemCssClasses)),
282
- role: "tooltip",
283
- inert: ""
284
- }, [
285
- renderSlot(_ctx.$slots, "default", {}, () => [
286
- createTextVNode(toDisplayString(_ctx.value), 1)
287
- ])
288
- ], 2);
301
+ return openBlock(), createElementBlock(
302
+ "span",
303
+ {
304
+ class: normalizeClass(unref(bemCssClasses)),
305
+ role: "tooltip",
306
+ inert: ""
307
+ },
308
+ [
309
+ renderSlot(_ctx.$slots, "default", {}, () => [
310
+ createTextVNode(
311
+ toDisplayString(_ctx.value),
312
+ 1
313
+ /* TEXT */
314
+ )
315
+ ])
316
+ ],
317
+ 2
318
+ /* CLASS */
319
+ );
289
320
  };
290
321
  }
291
322
  });
292
- const tooltip = {
293
- beforeMount(el, binding) {
294
- const tooltip2 = h(_sfc_main, {
295
- value: binding.value,
296
- position: binding.arg
297
- });
298
- render(tooltip2, el);
299
- }
300
- };
323
+ const tooltip = (() => {
324
+ return {
325
+ beforeMount(el, binding) {
326
+ const tooltip2 = h(_sfc_main, {
327
+ value: binding.value,
328
+ position: binding.arg
329
+ });
330
+ render(tooltip2, el);
331
+ },
332
+ updated(el, binding) {
333
+ const tooltip2 = h(_sfc_main, {
334
+ value: binding.value,
335
+ position: binding.arg
336
+ });
337
+ render(tooltip2, el);
338
+ }
339
+ };
340
+ })();
301
341
  export {
302
342
  tooltip as default
303
343
  };
@@ -1 +1 @@
1
- !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("vue")):"function"==typeof define&&define.amd?define(["vue"],o):(e="undefined"!=typeof globalThis?globalThis:e||self)["v-tooltip"]=o(e.vue)}(this,(function(e){"use strict";var o=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(o||{}),t=(e=>(e.before="before",e.after="after",e))(t||{}),n=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(n||{});Boolean,Boolean,Boolean;const r={modifiers:[String,Array]};t.before,o.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,n.button;const l={...r,position:{type:String,default:o.bottom},value:{type:String}};const i=e.defineComponent({__name:"VvTooltip",props:l,setup(o){const t=o,{modifiers:n}=e.toRefs(t),r=function(o,t,n){return e.computed((()=>{const r={[o]:!0},l="string"==typeof(null==t?void 0:t.value)?t.value.split(" "):null==t?void 0:t.value;return l&&Array.isArray(l)&&l.forEach((e=>{e&&(r[`${o}--${e}`]=!0)})),n&&Object.keys(n.value).forEach((t=>{r[`${o}--${t}`]=e.unref(n.value[t])})),r}))}("vv-tooltip",n,e.computed((()=>({[t.position]:!0}))));return(o,t)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(r)),role:"tooltip",inert:""},[e.renderSlot(o.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(o.value),1)]))],2))}});return{beforeMount(o,t){const n=e.h(i,{value:t.value,position:t.arg});e.render(n,o)}}}));
1
+ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("vue")):"function"==typeof define&&define.amd?define(["vue"],o):(e="undefined"!=typeof globalThis?globalThis:e||self)["v-tooltip"]=o(e.vue)}(this,(function(e){"use strict";var o=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(o||{}),t=(e=>(e.before="before",e.after="after",e))(t||{}),n=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(n||{}),r=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(r||{});Boolean,Boolean,Boolean,Boolean;const l={modifiers:[String,Array]};t.before,o.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,n.button,r.button;const i={...l,position:{type:String,default:o.bottom},value:{type:String}};const u=e.defineComponent({__name:"VvTooltip",props:i,setup(o){const t=o,{modifiers:n}=e.toRefs(t),r=function(o,t,n){return e.computed((()=>{const r={[o]:!0},l="string"==typeof(null==t?void 0:t.value)?t.value.split(" "):null==t?void 0:t.value;return l&&Array.isArray(l)&&l.forEach((e=>{e&&(r[`${o}--${e}`]=!0)})),n&&Object.keys(n.value).forEach((t=>{r[`${o}--${t}`]=e.unref(n.value[t])})),r}))}("vv-tooltip",n,e.computed((()=>({[t.position]:!0}))));return(o,t)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(r)),role:"tooltip",inert:""},[e.renderSlot(o.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(o.value),1)]))],2))}});return{beforeMount(o,t){const n=e.h(u,{value:t.value,position:t.arg});e.render(n,o)},updated(o,t){const n=e.h(u,{value:t.value,position:t.arg});e.render(n,o)}}}));
package/dist/icons.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const prefix$2 = "normal";
2
- const lastModified$2 = 1693408910;
2
+ const lastModified$2 = 1697042794;
3
3
  const icons$3 = {
4
4
  add: {
5
5
  body: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M4 12h16m-8-8v16"/>'
@@ -614,7 +614,7 @@ const normal = {
614
614
  height: height$1
615
615
  };
616
616
  const prefix$1 = "detailed";
617
- const lastModified$1 = 1693408910;
617
+ const lastModified$1 = 1697042794;
618
618
  const icons$2 = {
619
619
  add: {
620
620
  body: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M4 15.999h24m-12-12v24"/>'
@@ -1227,7 +1227,7 @@ const detailed = {
1227
1227
  height
1228
1228
  };
1229
1229
  const prefix = "simple";
1230
- const lastModified = 1693408910;
1230
+ const lastModified = 1697042794;
1231
1231
  const icons$1 = {
1232
1232
  add: {
1233
1233
  body: '<path fill="none" stroke="currentColor" stroke-linecap="round" d="M.5 8h15M8 .5v15"/>'