@carbon/charts-react 1.15.4 → 1.15.6
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/diagrams/CardNode.d.ts +1 -0
- package/dist/diagrams/ShapeNode.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -19743,7 +19743,7 @@ class NN extends xt {
|
|
|
19743
19743
|
name: "meter-bar-update",
|
|
19744
19744
|
animate: t
|
|
19745
19745
|
})
|
|
19746
|
-
).attr("width", (b) => b.value > u ? d(u) : b.width).style("fill", (b) => n.model.getFillColor(b[c], null, b)).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "value").attr("aria-label", (b) => b.value), p.exit().remove();
|
|
19746
|
+
).attr("width", (b) => b.value > u ? d(u) : Math.max(b.width, 2)).style("fill", (b) => n.model.getFillColor(b[c], null, b)).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "value").attr("aria-label", (b) => b.value), p.exit().remove();
|
|
19747
19747
|
const m = x(i, "meter", "peak");
|
|
19748
19748
|
let y = m;
|
|
19749
19749
|
m !== null && (m > u ? y = u : m < a[0].value && (y = a[0].value > u ? u : a[0].value));
|
|
@@ -23619,20 +23619,20 @@ var z0 = { exports: {} };
|
|
|
23619
23619
|
})();
|
|
23620
23620
|
})(z0);
|
|
23621
23621
|
var VH = z0.exports;
|
|
23622
|
-
const Jn = /* @__PURE__ */ Fv(VH), tr = "cds", R3 = ({ tag: e = "div",
|
|
23623
|
-
const
|
|
23624
|
-
[`${
|
|
23625
|
-
[`${
|
|
23626
|
-
[
|
|
23622
|
+
const Jn = /* @__PURE__ */ Fv(VH), tr = "cds", R3 = ({ tag: e = "div", className: t, children: n, color: r, href: i, position: s = "static", stacked: a, ...o }) => {
|
|
23623
|
+
const l = i ? "a" : o.onClick ? "button" : e, c = `${tr}--cc--card-node`, u = Jn(c, {
|
|
23624
|
+
[`${c}--stacked`]: a,
|
|
23625
|
+
[`${c}--${l}`]: l,
|
|
23626
|
+
[t]: t
|
|
23627
23627
|
});
|
|
23628
23628
|
return /* @__PURE__ */ zt.jsx(
|
|
23629
|
-
|
|
23629
|
+
l,
|
|
23630
23630
|
{
|
|
23631
|
-
className:
|
|
23632
|
-
style: { borderColor:
|
|
23631
|
+
className: u,
|
|
23632
|
+
style: { borderColor: r, position: s },
|
|
23633
23633
|
tabIndex: 0,
|
|
23634
|
-
...
|
|
23635
|
-
children:
|
|
23634
|
+
...o,
|
|
23635
|
+
children: n
|
|
23636
23636
|
}
|
|
23637
23637
|
);
|
|
23638
23638
|
}, D3 = ({
|
|
@@ -23733,35 +23733,36 @@ const Jn = /* @__PURE__ */ Fv(VH), tr = "cds", R3 = ({ tag: e = "div", children:
|
|
|
23733
23733
|
shape: e = "circle",
|
|
23734
23734
|
tag: t = "div",
|
|
23735
23735
|
title: n = "Title",
|
|
23736
|
-
|
|
23737
|
-
|
|
23738
|
-
|
|
23739
|
-
|
|
23740
|
-
|
|
23741
|
-
|
|
23742
|
-
|
|
23743
|
-
|
|
23744
|
-
|
|
23736
|
+
className: r,
|
|
23737
|
+
subtitle: i,
|
|
23738
|
+
description: s,
|
|
23739
|
+
renderIcon: a,
|
|
23740
|
+
href: o,
|
|
23741
|
+
size: l = 48,
|
|
23742
|
+
stacked: c,
|
|
23743
|
+
position: u = "fixed",
|
|
23744
|
+
bodyPosition: d = "absolute",
|
|
23745
|
+
...h
|
|
23745
23746
|
}) => {
|
|
23746
|
-
const
|
|
23747
|
-
[`${
|
|
23748
|
-
[`${
|
|
23749
|
-
[`${
|
|
23750
|
-
[
|
|
23751
|
-
}),
|
|
23747
|
+
const f = o ? "a" : h.onClick ? "button" : t, p = `${tr}--cc--shape-node`, v = Jn(p, {
|
|
23748
|
+
[`${p}--stacked`]: c,
|
|
23749
|
+
[`${p}--${e}`]: e,
|
|
23750
|
+
[`${p}--${f}`]: f,
|
|
23751
|
+
[r]: r
|
|
23752
|
+
}), m = n ? /* @__PURE__ */ zt.jsx("div", { className: `${p}__title`, children: n }) : null, y = i ? /* @__PURE__ */ zt.jsx("div", { className: `${p}__subtitle`, children: i }) : null, g = s ? /* @__PURE__ */ zt.jsx("div", { className: `${p}__description`, children: s }) : null;
|
|
23752
23753
|
return /* @__PURE__ */ zt.jsxs(
|
|
23753
|
-
|
|
23754
|
+
f,
|
|
23754
23755
|
{
|
|
23755
|
-
className:
|
|
23756
|
-
style: { height:
|
|
23756
|
+
className: v,
|
|
23757
|
+
style: { height: l, width: l, position: u },
|
|
23757
23758
|
tabIndex: 0,
|
|
23758
|
-
...
|
|
23759
|
+
...h,
|
|
23759
23760
|
children: [
|
|
23760
|
-
/* @__PURE__ */ zt.jsx("div", { className: `${
|
|
23761
|
-
/* @__PURE__ */ zt.jsxs("div", { className: `${
|
|
23762
|
-
v,
|
|
23761
|
+
/* @__PURE__ */ zt.jsx("div", { className: `${p}__icon`, children: a }),
|
|
23762
|
+
/* @__PURE__ */ zt.jsxs("div", { className: `${p}__body`, style: { position: d }, children: [
|
|
23763
23763
|
m,
|
|
23764
|
-
y
|
|
23764
|
+
y,
|
|
23765
|
+
g
|
|
23765
23766
|
] })
|
|
23766
23767
|
]
|
|
23767
23768
|
}
|