@nmorph/nmorph-ui-kit 0.2.81 → 0.2.83
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/index.es.js
CHANGED
|
@@ -2955,7 +2955,7 @@ const Of = /* @__PURE__ */ D({
|
|
|
2955
2955
|
size: { default: 48 },
|
|
2956
2956
|
shape: { default: "circle" },
|
|
2957
2957
|
frameBorder: { default: 2 },
|
|
2958
|
-
|
|
2958
|
+
imagePadding: { default: 4 },
|
|
2959
2959
|
src: {},
|
|
2960
2960
|
srcSet: {},
|
|
2961
2961
|
fit: {},
|
|
@@ -2964,10 +2964,10 @@ const Of = /* @__PURE__ */ D({
|
|
|
2964
2964
|
emits: ["error", "load"],
|
|
2965
2965
|
setup(e, { emit: t }) {
|
|
2966
2966
|
N((y) => ({
|
|
2967
|
-
"
|
|
2968
|
-
|
|
2969
|
-
"
|
|
2970
|
-
"
|
|
2967
|
+
"6ffc72a6": x.value,
|
|
2968
|
+
"034b7fcd": p.value,
|
|
2969
|
+
"5c3b495e": M.value,
|
|
2970
|
+
"8dafdbfc": h.value
|
|
2971
2971
|
}));
|
|
2972
2972
|
const a = e, l = t, r = w(!1), c = _(
|
|
2973
2973
|
() => A({
|
|
@@ -2978,7 +2978,7 @@ const Of = /* @__PURE__ */ D({
|
|
|
2978
2978
|
l("error", y), r.value = !0;
|
|
2979
2979
|
}, d = (y) => {
|
|
2980
2980
|
l("load", y), r.value = !1;
|
|
2981
|
-
}, h = _(() => `${a.
|
|
2981
|
+
}, h = _(() => `${a.imagePadding}px`), p = _(() => ` ${a.size}px`), f = _(() => `${a.size / 100 * 60}px`), M = _(() => a.shape === "circle" ? "50%" : "4px"), x = _(() => `${a.frameBorder}px`);
|
|
2982
2982
|
return (y, $) => (o(), s("div", {
|
|
2983
2983
|
class: z(c.value)
|
|
2984
2984
|
}, [
|
|
@@ -3007,7 +3007,7 @@ const de = (e, t) => {
|
|
|
3007
3007
|
for (const [l, r] of t)
|
|
3008
3008
|
a[l] = r;
|
|
3009
3009
|
return a;
|
|
3010
|
-
}, Pf = /* @__PURE__ */ de(Of, [["__scopeId", "data-v-
|
|
3010
|
+
}, Pf = /* @__PURE__ */ de(Of, [["__scopeId", "data-v-a04856bd"]]), qf = {
|
|
3011
3011
|
key: 0,
|
|
3012
3012
|
class: "nmorph-badge__dot"
|
|
3013
3013
|
}, Ef = {
|
|
@@ -3022,11 +3022,12 @@ const de = (e, t) => {
|
|
|
3022
3022
|
hidden: { type: Boolean, default: !1 },
|
|
3023
3023
|
color: { default: "var(--nmorph-accent-color)" },
|
|
3024
3024
|
offsetY: { default: 0 },
|
|
3025
|
-
offsetX: { default: 0 }
|
|
3025
|
+
offsetX: { default: 0 },
|
|
3026
|
+
disabled: { type: Boolean, default: !1 }
|
|
3026
3027
|
},
|
|
3027
3028
|
setup(e) {
|
|
3028
3029
|
N((p) => ({
|
|
3029
|
-
"
|
|
3030
|
+
"68e4a285": p.color
|
|
3030
3031
|
}));
|
|
3031
3032
|
const t = e, a = _(
|
|
3032
3033
|
() => A({
|
|
@@ -3045,7 +3046,8 @@ const de = (e, t) => {
|
|
|
3045
3046
|
}), u = w(null), d = w(0), h = w(0);
|
|
3046
3047
|
return K(() => {
|
|
3047
3048
|
u.value && (d.value = u.value.clientWidth, h.value = u.value.clientHeight);
|
|
3048
|
-
}), (p, f) => (o(), s("div", {
|
|
3049
|
+
}), (p, f) => t.disabled ? S(p.$slots, "default", { key: 1 }) : (o(), s("div", {
|
|
3050
|
+
key: 0,
|
|
3049
3051
|
class: z(a.value)
|
|
3050
3052
|
}, [
|
|
3051
3053
|
S(p.$slots, "default"),
|
|
@@ -3055,7 +3057,11 @@ const de = (e, t) => {
|
|
|
3055
3057
|
class: z(l.value),
|
|
3056
3058
|
style: I({ right: c.value.x, top: c.value.y })
|
|
3057
3059
|
}, [
|
|
3058
|
-
t.isDot ? (o(), s("div", qf)) : (o(), s("div", Ef,
|
|
3060
|
+
t.isDot ? (o(), s("div", qf)) : (o(), s("div", Ef, [
|
|
3061
|
+
S(p.$slots, "value", {}, () => [
|
|
3062
|
+
ee(R(r.value), 1)
|
|
3063
|
+
])
|
|
3064
|
+
]))
|
|
3059
3065
|
], 6)
|
|
3060
3066
|
], 2));
|
|
3061
3067
|
}
|
|
@@ -4482,7 +4488,7 @@ const Le = (e) => {
|
|
|
4482
4488
|
};
|
|
4483
4489
|
return { placement: u, placementCoords: d };
|
|
4484
4490
|
}, Yx = () => {
|
|
4485
|
-
}, ew = "@nmorph/nmorph-ui-kit", tw = "module", nw = "0.2.
|
|
4491
|
+
}, ew = "@nmorph/nmorph-ui-kit", tw = "module", nw = "0.2.83", ow = "MIT", aw = {
|
|
4486
4492
|
node: "18.13.0",
|
|
4487
4493
|
npm: "8.19.3"
|
|
4488
4494
|
}, sw = "./dist/index.d.ts", lw = "./dist/index.umd.js", rw = "./dist/index.es.js", cw = "./dist/style.css", iw = [
|