@maxtropy/v-components 0.1.16-beta.3 → 0.1.16-beta.4

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.
@@ -26060,7 +26060,7 @@ function mh(e) {
26060
26060
  }
26061
26061
  });
26062
26062
  }
26063
- const EN = /* @__PURE__ */ hp('<div class="line line--left" data-v-118f4691></div><div class="line line--right" data-v-118f4691></div><div class="dot dot--top-left" data-v-118f4691></div><div class="dot dot--bottom-left" data-v-118f4691></div><div class="dot dot--top-right" data-v-118f4691></div><div class="dot dot--bottom-right" data-v-118f4691></div>', 6), IN = [
26063
+ const EN = /* @__PURE__ */ hp('<div class="line line--left" data-v-85f141fa></div><div class="line line--right" data-v-85f141fa></div><div class="dot dot--top-left" data-v-85f141fa></div><div class="dot dot--bottom-left" data-v-85f141fa></div><div class="dot dot--top-right" data-v-85f141fa></div><div class="dot dot--bottom-right" data-v-85f141fa></div>', 6), IN = [
26064
26064
  EN
26065
26065
  ], BN = /* @__PURE__ */ Y({
26066
26066
  __name: "MxButton",
@@ -26086,30 +26086,35 @@ const EN = /* @__PURE__ */ hp('<div class="line line--left" data-v-118f4691></di
26086
26086
  disabled: {
26087
26087
  type: Boolean,
26088
26088
  default: !1
26089
+ },
26090
+ shouldAddSpace: {
26091
+ type: Boolean,
26092
+ default: !0
26089
26093
  }
26090
26094
  },
26091
26095
  emits: ["click"],
26092
26096
  setup(e, { emit: t }) {
26093
- const n = e, o = T(0), r = (p) => {
26094
- let d = p.target;
26095
- p.target.nodeName === "SPAN" && (d = p.target.parentNode), d.blur(), (/* @__PURE__ */ new Date()).getTime() - o.value > n.wait && t("click", p), o.value = (/* @__PURE__ */ new Date()).getTime();
26096
- }, a = gh(n.authCode), l = Uo.get(Wo), i = E(() => n.type === "dashed" ? "" : n.type), u = E(() => (n.disabled ?? !1) || !!n.authCode && !a.value), c = E(() => n.authCode && !a.value ? !n.noShowWhenNotAuth : !0);
26097
- return (p, d) => Le((C(), N("div", {
26097
+ const n = e, o = T(0), r = (d) => {
26098
+ let f = d.target;
26099
+ d.target.nodeName === "SPAN" && (f = d.target.parentNode), f.blur(), (/* @__PURE__ */ new Date()).getTime() - o.value > n.wait && t("click", d), o.value = (/* @__PURE__ */ new Date()).getTime();
26100
+ }, a = gh(n.authCode), l = Uo.get(Wo), i = E(() => n.type === "dashed" ? "" : n.type), u = E(() => (n.disabled ?? !1) || !!n.authCode && !a.value), c = E(() => n.authCode && !a.value ? !n.noShowWhenNotAuth : !0), p = E(() => n.shouldAddSpace);
26101
+ return (d, f) => Le((C(), N("div", {
26098
26102
  class: S({ "mx-button": !0, "mx-btn-dark": s(l) === s(sn).DARK })
26099
26103
  }, [
26100
26104
  q(s(ho), Pe(n, {
26101
26105
  type: i.value,
26102
26106
  disabled: u.value,
26107
+ "should-add-space": p.value,
26103
26108
  class: { "mx-button--dashed": n.type === "dashed" },
26104
26109
  onClick: r
26105
26110
  }), tt({ _: 2 }, [
26106
- Me(p.$slots, (f, v, m) => ({
26107
- name: v,
26111
+ Me(d.$slots, (v, m, g) => ({
26112
+ name: m,
26108
26113
  fn: Q(() => [
26109
- oe(p.$slots, v, {}, void 0, !0)
26114
+ oe(d.$slots, m, {}, void 0, !0)
26110
26115
  ])
26111
26116
  }))
26112
- ]), 1040, ["type", "disabled", "class"]),
26117
+ ]), 1040, ["type", "disabled", "should-add-space", "class"]),
26113
26118
  n.type === "primary" && s(l) === s(sn).DARK ? (C(), N("div", {
26114
26119
  key: 0,
26115
26120
  class: S({ "mx-button-dot--disabled": u.value })
@@ -26119,7 +26124,7 @@ const EN = /* @__PURE__ */ hp('<div class="line line--left" data-v-118f4691></di
26119
26124
  ]);
26120
26125
  }
26121
26126
  });
26122
- const un = /* @__PURE__ */ kt(BN, [["__scopeId", "data-v-118f4691"]]);
26127
+ const un = /* @__PURE__ */ kt(BN, [["__scopeId", "data-v-85f141fa"]]);
26123
26128
  un.install = (e) => {
26124
26129
  e.component(un.__name, un);
26125
26130
  };