@auronui/vue 1.0.18 → 1.0.20

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.
@@ -1118,11 +1118,12 @@ var Button_default = /* @__PURE__ */ (0, vue.defineComponent)({
1118
1118
  };
1119
1119
  const resolvedVariant = (0, vue.computed)(() => {
1120
1120
  const v = finalVariant.value;
1121
+ if (!v) return v;
1121
1122
  return LEGACY_VARIANTS[v]?.variant ?? v;
1122
1123
  });
1123
1124
  const resolvedColor = (0, vue.computed)(() => {
1124
1125
  const v = finalVariant.value;
1125
- if (props.color === void 0 && LEGACY_VARIANTS[v]) return LEGACY_VARIANTS[v].color;
1126
+ if (props.color === void 0 && v && LEGACY_VARIANTS[v]) return LEGACY_VARIANTS[v].color;
1126
1127
  return finalColor.value;
1127
1128
  });
1128
1129
  const slotFns = (0, vue.computed)(() => (0, _auronui_styles.buttonVariants)({