@volverjs/ui-vue 0.0.10-beta.42 → 0.0.10-beta.44

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 (84) hide show
  1. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +12 -12
  2. package/dist/components/VvAccordionGroup/index.d.ts +4 -4
  3. package/dist/components/VvAction/VvAction.vue.d.ts +2 -2
  4. package/dist/components/VvAction/index.d.ts +1 -1
  5. package/dist/components/VvAlert/VvAlert.vue.d.ts +6 -6
  6. package/dist/components/VvAlert/index.d.ts +4 -3
  7. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +9 -9
  8. package/dist/components/VvAlertGroup/index.d.ts +4 -4
  9. package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +4 -4
  10. package/dist/components/VvAvatarGroup/index.d.ts +2 -2
  11. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +13 -13
  12. package/dist/components/VvBreadcrumb/index.d.ts +1 -1
  13. package/dist/components/VvButton/VvButton.vue.d.ts +4 -4
  14. package/dist/components/VvButton/index.d.ts +2 -2
  15. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +4 -4
  16. package/dist/components/VvButtonGroup/index.d.ts +2 -2
  17. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +1 -1
  18. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +3 -3
  19. package/dist/components/VvCheckboxGroup/index.d.ts +1 -1
  20. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +438 -559
  21. package/dist/components/VvCombobox/index.d.ts +21 -241
  22. package/dist/components/VvDialog/VvDialog.es.js +41 -165
  23. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  24. package/dist/components/VvDialog/VvDialog.vue.d.ts +9 -0
  25. package/dist/components/VvDialog/index.d.ts +7 -0
  26. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +33 -268
  27. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +8 -6
  28. package/dist/components/VvDropdown/index.d.ts +9 -117
  29. package/dist/components/VvIcon/VvIcon.vue.d.ts +1 -1
  30. package/dist/components/VvInputFile/VvInputFile.es.js +11 -6
  31. package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
  32. package/dist/components/VvInputFile/VvInputFile.vue.d.ts +31 -105
  33. package/dist/components/VvInputFile/index.d.ts +11 -28
  34. package/dist/components/VvInputText/VvInputClearAction.d.ts +2 -2
  35. package/dist/components/VvInputText/VvInputPasswordAction.d.ts +4 -4
  36. package/dist/components/VvInputText/VvInputText.vue.d.ts +4 -4
  37. package/dist/components/VvInputText/index.d.ts +4 -9
  38. package/dist/components/VvNav/VvNav.vue.d.ts +9 -9
  39. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +3 -3
  40. package/dist/components/VvRadioGroup/index.d.ts +1 -1
  41. package/dist/components/VvSelect/VvSelect.vue.d.ts +174 -184
  42. package/dist/components/VvSelect/index.d.ts +4 -4
  43. package/dist/components/VvTab/VvTab.vue.d.ts +13 -13
  44. package/dist/components/VvTab/index.d.ts +2 -2
  45. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +2 -2
  46. package/dist/components/VvTextarea/index.d.ts +1 -1
  47. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +2 -2
  48. package/dist/components/VvTooltip/index.d.ts +1 -1
  49. package/dist/components/index.es.js +34 -31
  50. package/dist/components/index.umd.js +1 -1
  51. package/dist/composables/alert/useAlert.d.ts +47 -77
  52. package/dist/composables/index.es.js +1 -2
  53. package/dist/composables/useBlurhash.d.ts +1 -1
  54. package/dist/composables/useOptions.d.ts +3 -3
  55. package/dist/icons.es.js +3 -3
  56. package/dist/icons.umd.js +1 -1
  57. package/dist/index.es.js +1 -4
  58. package/dist/index.umd.js +1 -1
  59. package/dist/props/index.d.ts +14 -121
  60. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +283 -347
  61. package/dist/stories/InputFile/InputFile.stories.d.ts +1 -0
  62. package/dist/test/expect.d.ts +0 -1
  63. package/dist/types/input-file.d.ts +2 -9
  64. package/dist/utils/ObjectUtilities.d.ts +1 -1
  65. package/package.json +29 -30
  66. package/src/Volver.ts +6 -6
  67. package/src/assets/icons/detailed.json +1 -1
  68. package/src/assets/icons/normal.json +1 -1
  69. package/src/assets/icons/simple.json +1 -1
  70. package/src/components/VvButtonGroup/index.ts +1 -1
  71. package/src/components/VvCombobox/index.ts +6 -6
  72. package/src/components/VvDialog/VvDialog.vue +3 -5
  73. package/src/components/VvDialog/index.ts +4 -0
  74. package/src/components/VvInputFile/VvInputFile.vue +8 -3
  75. package/src/components/VvInputFile/index.ts +2 -0
  76. package/src/components/VvInputText/VvInputText.vue +18 -18
  77. package/src/components/common/HintSlot.ts +2 -2
  78. package/src/composables/group/useInjectedGroupState.ts +3 -3
  79. package/src/composables/group/useProvideGroupState.ts +3 -3
  80. package/src/composables/useDefaults.ts +4 -4
  81. package/src/props/index.ts +1 -1
  82. package/src/stories/InputFile/InputFile.stories.ts +8 -0
  83. package/src/types/group.ts +1 -1
  84. package/src/types/input-file.ts +10 -18
@@ -1679,7 +1679,7 @@ const _hoisted_1$l = {
1679
1679
  };
1680
1680
  const _hoisted_2$e = ["id"];
1681
1681
  const _hoisted_3$7 = ["aria-label"];
1682
- const _hoisted_4$5 = /* @__PURE__ */ createElementVNode(
1682
+ const _hoisted_4$6 = /* @__PURE__ */ createElementVNode(
1683
1683
  "div",
1684
1684
  { class: "vv-alert__close-mask" },
1685
1685
  null,
@@ -1687,7 +1687,7 @@ const _hoisted_4$5 = /* @__PURE__ */ createElementVNode(
1687
1687
  /* HOISTED */
1688
1688
  );
1689
1689
  const _hoisted_5$5 = [
1690
- _hoisted_4$5
1690
+ _hoisted_4$6
1691
1691
  ];
1692
1692
  const _hoisted_6$5 = {
1693
1693
  key: 1,
@@ -4071,7 +4071,7 @@ const _hoisted_3$5 = {
4071
4071
  key: 0,
4072
4072
  class: "vv-select__input-before"
4073
4073
  };
4074
- const _hoisted_4$4 = { class: "vv-select__inner" };
4074
+ const _hoisted_4$5 = { class: "vv-select__inner" };
4075
4075
  const _hoisted_5$4 = ["id"];
4076
4076
  const _hoisted_6$4 = ["disabled", "hidden"];
4077
4077
  const _hoisted_7$4 = ["disabled", "value"];
@@ -4236,7 +4236,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
4236
4236
  _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
4237
4237
  renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
4238
4238
  ])) : createCommentVNode("v-if", true),
4239
- createElementVNode("div", _hoisted_4$4, [
4239
+ createElementVNode("div", _hoisted_4$5, [
4240
4240
  unref(hasIconBefore) ? (openBlock(), createBlock(
4241
4241
  _sfc_main$u,
4242
4242
  mergeProps({ key: 0 }, unref(hasIconBefore), { class: "vv-select__icon" }),
@@ -4531,7 +4531,7 @@ function useVvComboboxProps() {
4531
4531
  const _hoisted_1$8 = ["id"];
4532
4532
  const _hoisted_2$6 = ["id", "for"];
4533
4533
  const _hoisted_3$4 = ["id", "aria-controls", "placeholder"];
4534
- const _hoisted_4$3 = {
4534
+ const _hoisted_4$4 = {
4535
4535
  key: 0,
4536
4536
  class: "vv-select__input-before"
4537
4537
  };
@@ -4889,7 +4889,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4889
4889
  onAfterCollapse
4890
4890
  }), createSlots({
4891
4891
  default: withCtx(({ aria }) => [
4892
- _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
4892
+ _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
4893
4893
  renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
4894
4894
  ])) : createCommentVNode("v-if", true),
4895
4895
  createElementVNode("div", _hoisted_5$3, [
@@ -5250,14 +5250,19 @@ const VvDialogProps = {
5250
5250
  /**
5251
5251
  * Keep open dialog on click outside
5252
5252
  */
5253
- keepOpen: { type: Boolean, default: false }
5253
+ keepOpen: { type: Boolean, default: false },
5254
+ /**
5255
+ * Close button label
5256
+ */
5257
+ labelClose: { type: String, default: "Close" }
5254
5258
  };
5255
5259
  const _hoisted_1$7 = {
5256
5260
  key: 0,
5257
5261
  class: "vv-dialog__header"
5258
5262
  };
5259
- const _hoisted_2$5 = { class: "vv-dialog__content" };
5260
- const _hoisted_3$3 = {
5263
+ const _hoisted_2$5 = ["aria-label", "title"];
5264
+ const _hoisted_3$3 = { class: "vv-dialog__content" };
5265
+ const _hoisted_4$3 = {
5261
5266
  key: 1,
5262
5267
  class: "vv-dialog__footer"
5263
5268
  };
@@ -5384,26 +5389,19 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
5384
5389
  1
5385
5390
  /* TEXT */
5386
5391
  ),
5387
- createElementVNode(
5388
- "button",
5389
- {
5390
- type: "button",
5391
- "aria-label": "Close",
5392
- class: "vv-dialog__close",
5393
- onClickPassive: close
5394
- },
5395
- [
5396
- createVNode(_sfc_main$u, { name: "close" })
5397
- ],
5398
- 32
5399
- /* NEED_HYDRATION */
5400
- )
5392
+ createElementVNode("button", {
5393
+ type: "button",
5394
+ "aria-label": _ctx.labelClose,
5395
+ title: _ctx.labelClose,
5396
+ class: "vv-dialog__close",
5397
+ onClickPassive: close
5398
+ }, null, 40, _hoisted_2$5)
5401
5399
  ])
5402
5400
  ])) : createCommentVNode("v-if", true),
5403
- createElementVNode("div", _hoisted_2$5, [
5401
+ createElementVNode("div", _hoisted_3$3, [
5404
5402
  renderSlot(_ctx.$slots, "default")
5405
5403
  ]),
5406
- _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_3$3, [
5404
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_4$3, [
5407
5405
  renderSlot(_ctx.$slots, "footer")
5408
5406
  ])) : createCommentVNode("v-if", true)
5409
5407
  ],
@@ -7526,6 +7524,7 @@ const VvInputFileProps = {
7526
7524
  ...LabelProps,
7527
7525
  ...LoadingProps,
7528
7526
  ...ReadonlyProps,
7527
+ ...DisabledProps,
7529
7528
  ...IconProps,
7530
7529
  /**
7531
7530
  * Input value
@@ -7636,13 +7635,13 @@ const _hoisted_1 = ["for"];
7636
7635
  const _hoisted_2 = { class: "vv-input-file__preview" };
7637
7636
  const _hoisted_3 = ["src", "alt"];
7638
7637
  const _hoisted_4 = { class: "vv-input-file__wrapper" };
7639
- const _hoisted_5 = ["id", "readonly", "placeholder", "aria-describedby", "aria-invalid", "aria-errormessage", "multiple", "accept", "capture", "name"];
7638
+ const _hoisted_5 = ["id", "readonly", "disabled", "placeholder", "aria-describedby", "aria-invalid", "aria-errormessage", "multiple", "accept", "capture", "name"];
7640
7639
  const _hoisted_6 = ["value"];
7641
7640
  const _hoisted_7 = ["onClick"];
7642
7641
  const _hoisted_8 = ["title", "onClick"];
7643
7642
  const _hoisted_9 = { class: "vv-input-file__item-name" };
7644
7643
  const _hoisted_10 = { class: "vv-input-file__item-info" };
7645
- const _hoisted_11 = ["title", "onClick"];
7644
+ const _hoisted_11 = ["title", "disabled", "onClick"];
7646
7645
  const __default__ = {
7647
7646
  name: "VvInputFile"
7648
7647
  };
@@ -7659,7 +7658,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7659
7658
  VvInputFileProps,
7660
7659
  props
7661
7660
  );
7662
- const { modifiers, id, readonly, icon, iconPosition, iconDownload } = toRefs(props);
7661
+ const { modifiers, id, readonly, disabled, icon, iconPosition, iconDownload } = toRefs(props);
7663
7662
  const hasId = useUniqueId(id);
7664
7663
  const hasHintId = computed(() => `${hasId.value}-hint`);
7665
7664
  const hasProgress = computed(() => {
@@ -7707,11 +7706,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7707
7706
  localModelValue.value = value == null ? void 0 : value[0];
7708
7707
  }
7709
7708
  });
7709
+ const isDisabledOrReadonly = computed(() => props.disabled || props.readonly);
7710
7710
  const hasMax = computed(() => {
7711
7711
  return typeof props.max === "string" ? Number.parseInt(props.max) : props.max;
7712
7712
  });
7713
7713
  const hasDropArea = computed(() => {
7714
- return props.dropArea && !readonly.value;
7714
+ return props.dropArea && !isDisabledOrReadonly.value;
7715
7715
  });
7716
7716
  const isMultiple = computed(() => {
7717
7717
  if (!props.multiple) {
@@ -7774,7 +7774,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7774
7774
  if (!inputEl.value) {
7775
7775
  return;
7776
7776
  }
7777
- if (!readonly.value) {
7777
+ if (!isDisabledOrReadonly.value) {
7778
7778
  inputEl.value.click();
7779
7779
  }
7780
7780
  }
@@ -7907,12 +7907,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7907
7907
  modifiers: "action",
7908
7908
  label: !previewSrc.value ? dropdAreaActionLabel.value : void 0,
7909
7909
  title: previewSrc.value ? dropdAreaActionLabel.value : void 0,
7910
+ disabled: unref(disabled),
7910
7911
  class: normalizeClass({
7911
7912
  "vv-input-file__drop-area-action": previewSrc.value
7912
7913
  }),
7913
7914
  icon: dropAreaActionIcon.value,
7914
7915
  onClick: withModifiers(onClickDropArea, ["stop"])
7915
- }, null, 8, ["label", "title", "class", "icon"])) : createCommentVNode("v-if", true)
7916
+ }, null, 8, ["label", "title", "disabled", "class", "icon"])) : createCommentVNode("v-if", true)
7916
7917
  ])
7917
7918
  ],
7918
7919
  32
@@ -7932,6 +7933,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7932
7933
  ref: inputEl,
7933
7934
  type: "file",
7934
7935
  readonly: unref(readonly),
7936
+ disabled: unref(disabled),
7935
7937
  placeholder: _ctx.placeholder,
7936
7938
  "aria-describedby": unref(hasHintLabelOrSlot) ? hasHintId.value : void 0,
7937
7939
  "aria-invalid": _ctx.invalid,
@@ -8007,6 +8009,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8007
8009
  type: "button",
8008
8010
  class: "vv-input-file__item-remove",
8009
8011
  title: _ctx.labelRemove,
8012
+ disabled: unref(disabled),
8010
8013
  onClick: withModifiers(($event) => onClickRemoveFile(index), ["stop"])
8011
8014
  }, null, 8, _hoisted_11)) : createCommentVNode("v-if", true)
8012
8015
  ], 10, _hoisted_7)