@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.
- package/dist/cjs/index.cjs +2 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/components/avatar/AvatarGroup.js.map +1 -1
- package/dist/components/avatar/AvatarGroup.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/components/avatar/AvatarGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/button/Button.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/button/Button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/list-box/ListBox.js.map +1 -1
- package/dist/components/list-box/ListBox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/toolbar/ToolbarToggleGroup.js.map +1 -1
- package/dist/components/toolbar/ToolbarToggleGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -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)({
|