@kong/kongponents 9.14.2 → 9.14.3-pr.2491.6cd538000.0
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/kongponents.es.js +2 -2
- package/dist/kongponents.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +29 -30
package/dist/kongponents.es.js
CHANGED
|
@@ -3663,7 +3663,7 @@ const wf = {
|
|
|
3663
3663
|
setup(e) {
|
|
3664
3664
|
const t = e, a = At(), n = Wt(), r = b(() => t.to && typeof t.to == "string" ? "a" : t.to ? "router-link" : "button"), i = b(() => Object.values(ys).indexOf(t.appearance) === -1 ? ["primary", t.appearance] : t.appearance), s = b(() => t.appearance === "none" && !t.icon ? null : t.size), l = b(() => {
|
|
3665
3665
|
const c = Object.assign({}, n);
|
|
3666
|
-
return t.
|
|
3666
|
+
return t.to && (typeof t.to == "string" ? c.href = t.to : c.to = t.to, t.disabled && (c.href = null)), t.disabled !== void 0 && t.disabled !== !1 || delete c.disabled, c;
|
|
3667
3667
|
}), o = (c) => {
|
|
3668
3668
|
c.preventDefault(), c.stopPropagation();
|
|
3669
3669
|
}, u = b(() => !t.disabled || r.value === "button" ? {} : {
|
|
@@ -3687,7 +3687,7 @@ const wf = {
|
|
|
3687
3687
|
_: 3
|
|
3688
3688
|
}, 16, ["class", "disabled", "tabindex", "type"]));
|
|
3689
3689
|
}
|
|
3690
|
-
}), ct = /* @__PURE__ */ Ie(Yg, [["__scopeId", "data-v-
|
|
3690
|
+
}), ct = /* @__PURE__ */ Ie(Yg, [["__scopeId", "data-v-e73e1593"]]), Fg = ["top", "right", "bottom", "left"], Xu = ["start", "end"], Ju = /* @__PURE__ */ Fg.reduce((e, t) => e.concat(t, t + "-" + Xu[0], t + "-" + Xu[1]), []), un = Math.min, na = Math.max, Li = Math.round, vi = Math.floor, dn = (e) => ({
|
|
3691
3691
|
x: e,
|
|
3692
3692
|
y: e
|
|
3693
3693
|
}), zg = {
|