@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/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", children: t, color: n, href: r, position: i = "static", stacked: s, ...a }) => {
23623
- const o = r ? "a" : a.onClick ? "button" : e, l = `${tr}--cc--card-node`, c = Jn(l, {
23624
- [`${l}--stacked`]: s,
23625
- [`${l}--${o}`]: o,
23626
- [a.className]: a.className
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
- o,
23629
+ l,
23630
23630
  {
23631
- className: c,
23632
- style: { borderColor: n, position: i },
23631
+ className: u,
23632
+ style: { borderColor: r, position: s },
23633
23633
  tabIndex: 0,
23634
- ...a,
23635
- children: t
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
- subtitle: r,
23737
- description: i,
23738
- renderIcon: s,
23739
- href: a,
23740
- size: o = 48,
23741
- stacked: l,
23742
- position: c = "fixed",
23743
- bodyPosition: u = "absolute",
23744
- ...d
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 h = a ? "a" : d.onClick ? "button" : t, f = `${tr}--cc--shape-node`, p = Jn(f, {
23747
- [`${f}--stacked`]: l,
23748
- [`${f}--${e}`]: e,
23749
- [`${f}--${h}`]: h,
23750
- [d.className]: d.className
23751
- }), v = n ? /* @__PURE__ */ zt.jsx("div", { className: `${f}__title`, children: n }) : null, m = r ? /* @__PURE__ */ zt.jsx("div", { className: `${f}__subtitle`, children: r }) : null, y = i ? /* @__PURE__ */ zt.jsx("div", { className: `${f}__description`, children: i }) : null;
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
- h,
23754
+ f,
23754
23755
  {
23755
- className: p,
23756
- style: { height: o, width: o, position: c },
23756
+ className: v,
23757
+ style: { height: l, width: l, position: u },
23757
23758
  tabIndex: 0,
23758
- ...d,
23759
+ ...h,
23759
23760
  children: [
23760
- /* @__PURE__ */ zt.jsx("div", { className: `${f}__icon`, children: s }),
23761
- /* @__PURE__ */ zt.jsxs("div", { className: `${f}__body`, style: { position: u }, children: [
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
  }