@volverjs/ui-vue 0.0.9-beta.7 → 0.0.9-beta.9

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 (63) hide show
  1. package/dist/components/VvAlert/VvAlert.es.js +7 -6
  2. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  3. package/dist/components/VvAlert/VvAlert.vue.d.ts +6 -6
  4. package/dist/components/VvAlert/index.d.ts +3 -3
  5. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +7 -6
  6. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  7. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +1 -1
  8. package/dist/components/VvCheckbox/VvCheckbox.es.js +84 -14
  9. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  10. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +4 -4
  11. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +90 -15
  12. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  13. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +4 -4
  14. package/dist/components/VvCombobox/VvCombobox.es.js +81 -68
  15. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  16. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +4 -4
  17. package/dist/components/VvDialog/VvDialog.es.js +21 -20
  18. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  19. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +2 -2
  20. package/dist/components/VvInputText/VvInputText.es.js +80 -14
  21. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  22. package/dist/components/VvInputText/VvInputText.vue.d.ts +4 -4
  23. package/dist/components/VvRadio/VvRadio.es.js +84 -14
  24. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  25. package/dist/components/VvRadio/VvRadio.vue.d.ts +4 -4
  26. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +90 -15
  27. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  28. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +4 -4
  29. package/dist/components/VvSelect/VvSelect.es.js +80 -14
  30. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  31. package/dist/components/VvSelect/VvSelect.vue.d.ts +4 -4
  32. package/dist/components/VvTextarea/VvTextarea.es.js +80 -14
  33. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  34. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +4 -4
  35. package/dist/components/common/HintSlot.d.ts +4 -3
  36. package/dist/components/index.es.js +147 -102
  37. package/dist/components/index.umd.js +1 -1
  38. package/dist/composables/index.d.ts +1 -2
  39. package/dist/icons.es.js +3 -3
  40. package/dist/icons.umd.js +1 -1
  41. package/dist/resolvers/unplugin.es.js +3 -0
  42. package/dist/resolvers/unplugin.umd.js +1 -1
  43. package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +1 -1
  44. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +7 -7
  45. package/package.json +34 -34
  46. package/src/assets/icons/detailed.json +1 -1
  47. package/src/assets/icons/normal.json +1 -1
  48. package/src/assets/icons/simple.json +1 -1
  49. package/src/components/VvAlert/VvAlert.vue +5 -1
  50. package/src/components/VvAlert/index.ts +3 -3
  51. package/src/components/VvAlertGroup/VvAlertGroup.vue +2 -0
  52. package/src/components/VvCheckbox/VvCheckbox.vue +8 -1
  53. package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +8 -1
  54. package/src/components/VvCombobox/VvCombobox.vue +1 -1
  55. package/src/components/VvDialog/VvDialog.vue +10 -11
  56. package/src/components/VvInputText/VvInputText.vue +8 -1
  57. package/src/components/VvRadio/VvRadio.vue +8 -1
  58. package/src/components/VvRadioGroup/VvRadioGroup.vue +8 -1
  59. package/src/components/VvSelect/VvSelect.vue +8 -1
  60. package/src/components/VvTextarea/VvTextarea.vue +8 -1
  61. package/src/components/common/HintSlot.ts +26 -13
  62. package/src/composables/index.ts +1 -3
  63. package/src/resolvers/unplugin.ts +3 -0
@@ -1333,7 +1333,7 @@ const VvAlertProps = {
1333
1333
  */
1334
1334
  title: {
1335
1335
  type: String,
1336
- default: ""
1336
+ default: void 0
1337
1337
  },
1338
1338
  /**
1339
1339
  * The alert content
@@ -1342,7 +1342,7 @@ const VvAlertProps = {
1342
1342
  */
1343
1343
  content: {
1344
1344
  type: String,
1345
- default: ""
1345
+ default: void 0
1346
1346
  },
1347
1347
  /**
1348
1348
  * The alert footer
@@ -1351,7 +1351,7 @@ const VvAlertProps = {
1351
1351
  */
1352
1352
  footer: {
1353
1353
  type: String,
1354
- default: ""
1354
+ default: void 0
1355
1355
  },
1356
1356
  /**
1357
1357
  * The alert role
@@ -1442,9 +1442,9 @@ const _hoisted_1$h = {
1442
1442
  };
1443
1443
  const _hoisted_2$c = ["id"];
1444
1444
  const _hoisted_3$6 = ["aria-label"];
1445
- const _hoisted_4$4 = /* @__PURE__ */ createElementVNode("div", { class: "vv-alert__close-mask" }, null, -1);
1445
+ const _hoisted_4$5 = /* @__PURE__ */ createElementVNode("div", { class: "vv-alert__close-mask" }, null, -1);
1446
1446
  const _hoisted_5$4 = [
1447
- _hoisted_4$4
1447
+ _hoisted_4$5
1448
1448
  ];
1449
1449
  const _hoisted_6$4 = {
1450
1450
  key: 1,
@@ -1471,14 +1471,15 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1471
1471
  unref(hasIcon) ? (openBlock(), createBlock(_sfc_main$n, mergeProps({ key: 0 }, unref(hasIcon), { class: "vv-alert__icon" }), null, 16)) : createCommentVNode("", true),
1472
1472
  renderSlot(_ctx.$slots, "header", {}, () => [
1473
1473
  renderSlot(_ctx.$slots, "title::before"),
1474
- createElementVNode("strong", {
1474
+ _ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("strong", {
1475
+ key: 0,
1475
1476
  id: unref(hasTitleId),
1476
1477
  class: "vv-alert__title"
1477
1478
  }, [
1478
1479
  renderSlot(_ctx.$slots, "title", {}, () => [
1479
1480
  createTextVNode(toDisplayString(_ctx.title), 1)
1480
1481
  ])
1481
- ], 8, _hoisted_2$c),
1482
+ ], 8, _hoisted_2$c)) : createCommentVNode("", true),
1482
1483
  renderSlot(_ctx.$slots, "title::after")
1483
1484
  ]),
1484
1485
  renderSlot(_ctx.$slots, "close", normalizeProps(guardReactiveProps({ close: unref(close) })), () => [
@@ -2013,19 +2014,27 @@ function joinLines(items) {
2013
2014
  }
2014
2015
  return items;
2015
2016
  }
2016
- function HintSlotFactory(props, slots) {
2017
- const invalidLabel = computed(() => joinLines(props.invalidLabel));
2018
- const validLabel = computed(() => joinLines(props.validLabel));
2019
- const loadingLabel = computed(() => props.loadingLabel);
2020
- const hintLabel = computed(() => props.hintLabel);
2017
+ function HintSlotFactory(propsOrRef, slots) {
2018
+ const props = computed(() => {
2019
+ if (isRef(propsOrRef)) {
2020
+ return propsOrRef.value;
2021
+ }
2022
+ return propsOrRef;
2023
+ });
2024
+ const invalidLabel = computed(() => joinLines(props.value.invalidLabel));
2025
+ const validLabel = computed(() => joinLines(props.value.validLabel));
2026
+ const loadingLabel = computed(() => props.value.loadingLabel);
2027
+ const hintLabel = computed(() => props.value.hintLabel);
2021
2028
  const hasLoadingLabelOrSlot = computed(
2022
- () => Boolean(props.loading && (slots.loading || loadingLabel.value))
2029
+ () => Boolean(props.value.loading && (slots.loading || loadingLabel.value))
2023
2030
  );
2024
2031
  const hasInvalidLabelOrSlot = computed(
2025
- () => !hasLoadingLabelOrSlot.value && Boolean(props.invalid && (slots.invalid || invalidLabel.value))
2032
+ () => !hasLoadingLabelOrSlot.value && Boolean(
2033
+ props.value.invalid && (slots.invalid || invalidLabel.value)
2034
+ )
2026
2035
  );
2027
2036
  const hasValidLabelOrSlot = computed(
2028
- () => !hasLoadingLabelOrSlot.value && !hasInvalidLabelOrSlot.value && Boolean(props.valid && (slots.valid || validLabel.value))
2037
+ () => !hasLoadingLabelOrSlot.value && !hasInvalidLabelOrSlot.value && Boolean(props.value.valid && (slots.valid || validLabel.value))
2029
2038
  );
2030
2039
  const hasHintLabelOrSlot = computed(
2031
2040
  () => !hasLoadingLabelOrSlot.value && !hasInvalidLabelOrSlot.value && !hasValidLabelOrSlot.value && Boolean(slots.hint || hintLabel.value)
@@ -2034,10 +2043,10 @@ function HintSlotFactory(props, slots) {
2034
2043
  () => hasInvalidLabelOrSlot.value || hasValidLabelOrSlot.value || hasLoadingLabelOrSlot.value || hasHintLabelOrSlot.value
2035
2044
  );
2036
2045
  const hintSlotScope = computed(() => ({
2037
- modelValue: props.modelValue,
2038
- valid: props.valid,
2039
- invalid: props.invalid,
2040
- loading: props.loading
2046
+ modelValue: props.value.modelValue,
2047
+ valid: props.value.valid,
2048
+ invalid: props.value.invalid,
2049
+ loading: props.value.loading
2041
2050
  }));
2042
2051
  const HintSlot = defineComponent({
2043
2052
  name: "HintSlot",
@@ -2117,6 +2126,59 @@ function HintSlotFactory(props, slots) {
2117
2126
  HintSlot
2118
2127
  };
2119
2128
  }
2129
+ function useDefaults(componentName, propsDefinition, props) {
2130
+ const volver = useVolver();
2131
+ const volverComponentDefaults = computed(() => {
2132
+ var _a;
2133
+ if (!volver || !((_a = volver.defaults.value) == null ? void 0 : _a[componentName])) {
2134
+ return void 0;
2135
+ }
2136
+ return volver.defaults.value[componentName];
2137
+ });
2138
+ return computed(() => {
2139
+ if (volverComponentDefaults.value === void 0) {
2140
+ return props;
2141
+ }
2142
+ const componentDefaults = volverComponentDefaults.value;
2143
+ const simplifiedPropsDefinition = propsDefinition;
2144
+ const simplifiedProps = props;
2145
+ return Object.keys(simplifiedPropsDefinition).reduce((acc, key) => {
2146
+ const propValue = simplifiedProps[key];
2147
+ acc[key] = propValue;
2148
+ if (key in componentDefaults) {
2149
+ if (Array.isArray(simplifiedPropsDefinition[key])) {
2150
+ const typeArray = simplifiedPropsDefinition[key];
2151
+ if (typeArray.length) {
2152
+ const typeFunction = typeArray[0];
2153
+ if (typeFunction === propValue) {
2154
+ acc[key] = componentDefaults[key];
2155
+ }
2156
+ }
2157
+ }
2158
+ if (typeof simplifiedPropsDefinition[key] === "function") {
2159
+ const typeFunction = simplifiedPropsDefinition[key];
2160
+ if (typeFunction() === propValue) {
2161
+ acc[key] = componentDefaults[key];
2162
+ }
2163
+ }
2164
+ if (typeof simplifiedPropsDefinition[key] === "object") {
2165
+ let defaultValue = simplifiedPropsDefinition[key].default;
2166
+ if (typeof defaultValue === "function") {
2167
+ defaultValue = defaultValue();
2168
+ }
2169
+ if (typeof defaultValue === "object") {
2170
+ if (JSON.stringify(defaultValue) === JSON.stringify(propValue)) {
2171
+ acc[key] = componentDefaults[key];
2172
+ }
2173
+ } else if (defaultValue === propValue) {
2174
+ acc[key] = componentDefaults[key];
2175
+ }
2176
+ }
2177
+ }
2178
+ return acc;
2179
+ }, {});
2180
+ });
2181
+ }
2120
2182
  const _hoisted_1$d = ["for"];
2121
2183
  const _hoisted_2$8 = ["id", "name", "disabled", "value", "tabindex", "aria-invalid", "aria-describedby", "aria-errormessage"];
2122
2184
  const __default__$d = {
@@ -2129,6 +2191,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2129
2191
  setup(__props, { emit }) {
2130
2192
  const props = __props;
2131
2193
  const slots = useSlots();
2194
+ const propsDefaults = useDefaults(
2195
+ "VvCheckbox",
2196
+ VvCheckboxProps,
2197
+ props
2198
+ );
2132
2199
  const {
2133
2200
  id,
2134
2201
  disabled,
@@ -2241,7 +2308,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2241
2308
  hasHintLabelOrSlot,
2242
2309
  hasInvalidLabelOrSlot,
2243
2310
  hintSlotScope
2244
- } = HintSlotFactory(props, slots);
2311
+ } = HintSlotFactory(propsDefaults, slots);
2245
2312
  return (_ctx, _cache) => {
2246
2313
  return openBlock(), createElementBlock("label", {
2247
2314
  class: normalizeClass(unref(bemCssClasses)),
@@ -2350,6 +2417,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2350
2417
  setup(__props, { emit }) {
2351
2418
  const props = __props;
2352
2419
  const slots = useSlots();
2420
+ const propsDefaults = useDefaults(
2421
+ "VvCheckboxGroup",
2422
+ VvCheckboxGroupProps,
2423
+ props
2424
+ );
2353
2425
  const modelValue = useVModel(props, "modelValue", emit);
2354
2426
  const { disabled, readonly, vertical, valid, invalid, modifiers } = toRefs(props);
2355
2427
  useProvideGroupState({
@@ -2380,7 +2452,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2380
2452
  value: getOptionValue(option)
2381
2453
  };
2382
2454
  };
2383
- const { HintSlot, hintSlotScope } = HintSlotFactory(props, slots);
2455
+ const { HintSlot, hintSlotScope } = HintSlotFactory(propsDefaults, slots);
2384
2456
  return (_ctx, _cache) => {
2385
2457
  return openBlock(), createElementBlock("fieldset", {
2386
2458
  class: normalizeClass(unref(bemCssClasses))
@@ -3262,7 +3334,7 @@ const _hoisted_3$4 = {
3262
3334
  key: 0,
3263
3335
  class: "vv-select__input-before"
3264
3336
  };
3265
- const _hoisted_4$3 = { class: "vv-select__inner" };
3337
+ const _hoisted_4$4 = { class: "vv-select__inner" };
3266
3338
  const _hoisted_5$3 = ["id"];
3267
3339
  const _hoisted_6$3 = ["disabled", "hidden"];
3268
3340
  const _hoisted_7$3 = ["disabled", "value"];
@@ -3282,13 +3354,18 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3282
3354
  setup(__props, { emit }) {
3283
3355
  const props = __props;
3284
3356
  const slots = useSlots();
3357
+ const propsDefaults = useDefaults(
3358
+ "VvSelect",
3359
+ VvSelectProps,
3360
+ props
3361
+ );
3285
3362
  const select = ref();
3286
3363
  const {
3287
3364
  HintSlot,
3288
3365
  hasHintLabelOrSlot,
3289
3366
  hasInvalidLabelOrSlot,
3290
3367
  hintSlotScope
3291
- } = HintSlotFactory(props, slots);
3368
+ } = HintSlotFactory(propsDefaults, slots);
3292
3369
  const {
3293
3370
  id,
3294
3371
  modifiers,
@@ -3399,7 +3476,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3399
3476
  _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
3400
3477
  renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
3401
3478
  ])) : createCommentVNode("", true),
3402
- createElementVNode("div", _hoisted_4$3, [
3479
+ createElementVNode("div", _hoisted_4$4, [
3403
3480
  unref(hasIconBefore) ? (openBlock(), createBlock(_sfc_main$n, mergeProps({
3404
3481
  key: 0,
3405
3482
  class: "vv-select__icon"
@@ -3486,63 +3563,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3486
3563
  };
3487
3564
  }
3488
3565
  });
3489
- function useDefaults(componentName, propsDefinition, props) {
3490
- const volver = useVolver();
3491
- const volverComponentDefaults = computed(() => {
3492
- var _a;
3493
- if (!volver || !((_a = volver.defaults.value) == null ? void 0 : _a[componentName])) {
3494
- return void 0;
3495
- }
3496
- return volver.defaults.value[componentName];
3497
- });
3498
- return computed(() => {
3499
- if (volverComponentDefaults.value === void 0) {
3500
- return props;
3501
- }
3502
- const componentDefaults = volverComponentDefaults.value;
3503
- const simplifiedPropsDefinition = propsDefinition;
3504
- const simplifiedProps = props;
3505
- return Object.keys(simplifiedPropsDefinition).reduce((acc, key) => {
3506
- const propValue = simplifiedProps[key];
3507
- acc[key] = propValue;
3508
- if (key in componentDefaults) {
3509
- if (Array.isArray(simplifiedPropsDefinition[key])) {
3510
- const typeArray = simplifiedPropsDefinition[key];
3511
- if (typeArray.length) {
3512
- const typeFunction = typeArray[0];
3513
- if (typeFunction === propValue) {
3514
- acc[key] = componentDefaults[key];
3515
- }
3516
- }
3517
- }
3518
- if (typeof simplifiedPropsDefinition[key] === "function") {
3519
- const typeFunction = simplifiedPropsDefinition[key];
3520
- if (typeFunction() === propValue) {
3521
- acc[key] = componentDefaults[key];
3522
- }
3523
- }
3524
- if (typeof simplifiedPropsDefinition[key] === "object") {
3525
- let defaultValue = simplifiedPropsDefinition[key].default;
3526
- if (typeof defaultValue === "function") {
3527
- defaultValue = defaultValue();
3528
- }
3529
- if (typeof defaultValue === "object") {
3530
- if (JSON.stringify(defaultValue) === JSON.stringify(propValue)) {
3531
- acc[key] = componentDefaults[key];
3532
- }
3533
- } else if (defaultValue === propValue) {
3534
- acc[key] = componentDefaults[key];
3535
- }
3536
- }
3537
- }
3538
- return acc;
3539
- }, {});
3540
- });
3541
- }
3542
3566
  const _hoisted_1$7 = ["id"];
3543
3567
  const _hoisted_2$5 = ["id", "for"];
3544
3568
  const _hoisted_3$3 = ["id", "aria-controls", "placeholder"];
3545
- const _hoisted_4$2 = {
3569
+ const _hoisted_4$3 = {
3546
3570
  key: 0,
3547
3571
  class: "vv-select__input-before"
3548
3572
  };
@@ -3589,7 +3613,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3589
3613
  hasHintLabelOrSlot,
3590
3614
  hasInvalidLabelOrSlot,
3591
3615
  hintSlotScope
3592
- } = HintSlotFactory(props, slots);
3616
+ } = HintSlotFactory(propsDefaults, slots);
3593
3617
  const inputEl = ref(null);
3594
3618
  const inputSearchEl = ref(null);
3595
3619
  const wrapperEl = ref(null);
@@ -3857,7 +3881,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3857
3881
  onAfterCollapse
3858
3882
  }), createSlots({
3859
3883
  default: withCtx(({ aria }) => [
3860
- _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
3884
+ _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
3861
3885
  renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
3862
3886
  ])) : createCommentVNode("", true),
3863
3887
  createElementVNode("div", _hoisted_5$2, [
@@ -4112,12 +4136,13 @@ const VvDialogProps = {
4112
4136
  */
4113
4137
  keepOpen: { type: Boolean, default: false }
4114
4138
  };
4115
- const _hoisted_1$6 = {
4139
+ const _hoisted_1$6 = ["onCancel"];
4140
+ const _hoisted_2$4 = {
4116
4141
  key: 0,
4117
4142
  class: "vv-dialog__header"
4118
4143
  };
4119
- const _hoisted_2$4 = { class: "vv-dialog__content" };
4120
- const _hoisted_3$2 = {
4144
+ const _hoisted_3$2 = { class: "vv-dialog__content" };
4145
+ const _hoisted_4$2 = {
4121
4146
  key: 1,
4122
4147
  class: "vv-dialog__footer"
4123
4148
  };
@@ -4133,7 +4158,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4133
4158
  const dialogEl = ref();
4134
4159
  const modelValue = useVModel(props, "modelValue", emit);
4135
4160
  const localModelValue = ref(false);
4136
- const opened = computed({
4161
+ const isOpened = computed({
4137
4162
  get: () => modelValue.value ?? localModelValue.value,
4138
4163
  set: (newValue) => {
4139
4164
  if (modelValue.value === void 0) {
@@ -4190,37 +4215,37 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4190
4215
  }
4191
4216
  };
4192
4217
  onClickOutside(modalWrapper, () => {
4193
- if (!props.keepOpen && opened.value) {
4194
- opened.value = false;
4218
+ if (!props.keepOpen) {
4219
+ close();
4195
4220
  }
4196
4221
  });
4197
4222
  function close() {
4198
- opened.value = false;
4223
+ isOpened.value = false;
4199
4224
  }
4200
4225
  function open() {
4201
- opened.value = true;
4226
+ isOpened.value = true;
4202
4227
  }
4203
4228
  __expose({ close, open });
4204
- onKeyStroke("Escape", (e) => {
4205
- if (opened.value) {
4206
- e.preventDefault();
4229
+ const onCancel = () => {
4230
+ if (!props.keepOpen) {
4207
4231
  close();
4208
4232
  }
4209
- });
4233
+ };
4210
4234
  return (_ctx, _cache) => {
4211
4235
  return openBlock(), createBlock(Transition, mergeProps({ name: unref(transitioName) }, toHandlers(dialogTransitionHandlers)), {
4212
4236
  default: withCtx(() => [
4213
4237
  withDirectives(createElementVNode("dialog", mergeProps(unref(dialogAttrs), {
4214
4238
  ref_key: "dialogEl",
4215
4239
  ref: dialogEl,
4216
- class: unref(dialogClass)
4240
+ class: unref(dialogClass),
4241
+ onCancel: withModifiers(onCancel, ["stop", "prevent"])
4217
4242
  }), [
4218
4243
  createElementVNode("article", {
4219
4244
  ref_key: "modalWrapper",
4220
4245
  ref: modalWrapper,
4221
4246
  class: "vv-dialog__wrapper"
4222
4247
  }, [
4223
- _ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$6, [
4248
+ _ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_2$4, [
4224
4249
  renderSlot(_ctx.$slots, "header", {}, () => [
4225
4250
  createTextVNode(toDisplayString(_ctx.title) + " ", 1),
4226
4251
  createElementVNode("button", {
@@ -4233,15 +4258,15 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4233
4258
  ], 32)
4234
4259
  ])
4235
4260
  ])) : createCommentVNode("", true),
4236
- createElementVNode("div", _hoisted_2$4, [
4261
+ createElementVNode("div", _hoisted_3$2, [
4237
4262
  renderSlot(_ctx.$slots, "default")
4238
4263
  ]),
4239
- _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_3$2, [
4264
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_4$2, [
4240
4265
  renderSlot(_ctx.$slots, "footer")
4241
4266
  ])) : createCommentVNode("", true)
4242
4267
  ], 512)
4243
- ], 16), [
4244
- [vShow, unref(opened)]
4268
+ ], 16, _hoisted_1$6), [
4269
+ [vShow, unref(isOpened)]
4245
4270
  ])
4246
4271
  ]),
4247
4272
  _: 3
@@ -4756,6 +4781,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
4756
4781
  setup(__props, { expose: __expose, emit }) {
4757
4782
  const props = __props;
4758
4783
  const slots = useSlots();
4784
+ const propsDefaults = useDefaults(
4785
+ "VvInputText",
4786
+ VvInputTextProps,
4787
+ props
4788
+ );
4759
4789
  const inputEl = ref();
4760
4790
  const innerEl = ref();
4761
4791
  __expose({ $inner: innerEl });
@@ -4942,7 +4972,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
4942
4972
  hasHintLabelOrSlot,
4943
4973
  hasInvalidLabelOrSlot,
4944
4974
  hintSlotScope
4945
- } = HintSlotFactory(props, slots);
4975
+ } = HintSlotFactory(propsDefaults, slots);
4946
4976
  const PasswordInputActions = VvInputTextActionsFactory(
4947
4977
  INPUT_TYPES.PASSWORD,
4948
4978
  props
@@ -5267,6 +5297,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
5267
5297
  setup(__props, { emit }) {
5268
5298
  const props = __props;
5269
5299
  const slots = useSlots();
5300
+ const propsDefaults = useDefaults(
5301
+ "VvRadio",
5302
+ VvRadioProps,
5303
+ props
5304
+ );
5270
5305
  const { id, disabled, readonly, modelValue, valid, invalid } = useGroupProps(props, emit);
5271
5306
  const hasId = useUniqueId(id);
5272
5307
  const hasHintId = computed(() => `${hasId.value}-hint`);
@@ -5317,7 +5352,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
5317
5352
  hasHintLabelOrSlot,
5318
5353
  hasInvalidLabelOrSlot,
5319
5354
  hintSlotScope
5320
- } = HintSlotFactory(props, slots);
5355
+ } = HintSlotFactory(propsDefaults, slots);
5321
5356
  return (_ctx, _cache) => {
5322
5357
  return openBlock(), createElementBlock("label", {
5323
5358
  class: normalizeClass(unref(bemCssClasses)),
@@ -5394,6 +5429,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
5394
5429
  setup(__props, { emit }) {
5395
5430
  const props = __props;
5396
5431
  const slots = useSlots();
5432
+ const propsDefaults = useDefaults(
5433
+ "VvRadioGroup",
5434
+ VvRadioGroupProps,
5435
+ props
5436
+ );
5397
5437
  const modelValue = useVModel(props, "modelValue", emit);
5398
5438
  const { disabled, readonly, vertical, valid, invalid, modifiers } = toRefs(props);
5399
5439
  useProvideGroupState({
@@ -5424,7 +5464,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
5424
5464
  value: getOptionValue(option)
5425
5465
  };
5426
5466
  };
5427
- const { HintSlot, hintSlotScope } = HintSlotFactory(props, slots);
5467
+ const { HintSlot, hintSlotScope } = HintSlotFactory(propsDefaults, slots);
5428
5468
  return (_ctx, _cache) => {
5429
5469
  return openBlock(), createElementBlock("fieldset", {
5430
5470
  class: normalizeClass(unref(bemCssClasses))
@@ -5595,6 +5635,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5595
5635
  setup(__props, { emit }) {
5596
5636
  const props = __props;
5597
5637
  const slots = useSlots();
5638
+ const propsDefaults = useDefaults(
5639
+ "VvTextarea",
5640
+ VvTextareaProps,
5641
+ props
5642
+ );
5598
5643
  const textarea = ref();
5599
5644
  const {
5600
5645
  id,
@@ -5649,7 +5694,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5649
5694
  hasHintLabelOrSlot,
5650
5695
  hasInvalidLabelOrSlot,
5651
5696
  hintSlotScope
5652
- } = HintSlotFactory(props, slots);
5697
+ } = HintSlotFactory(propsDefaults, slots);
5653
5698
  const bemCssClasses = useModifiers(
5654
5699
  "vv-textarea",
5655
5700
  modifiers,