impaktapps-design 0.2.993-alpha.231 → 0.2.993-alpha.232

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.
@@ -22610,16 +22610,34 @@ const DrawStackBarLineGraph = ({
22610
22610
  var _a2;
22611
22611
  return (_a2 = colorMap == null ? void 0 : colorMap[key]) != null ? _a2 : defaultColour;
22612
22612
  },
22613
- children: (barStacks) => barStacks.map((barStack) => barStack.bars.map((bar) => /* @__PURE__ */ jsx$1("rect", {
22614
- x: bar.x,
22615
- y: bar.y,
22616
- width: bar.width,
22617
- height: bar.height,
22618
- fill: bar.color,
22619
- opacity: 0.88,
22620
- rx: 6,
22621
- ry: 6
22622
- }, `bar-${barStack.index}-${bar.index}`)))
22613
+ children: (barStacks) => {
22614
+ const topStackIndex = barStacks.length - 1;
22615
+ return barStacks.map((barStack, stackIdx) => barStack.bars.map((bar) => {
22616
+ const isTop = stackIdx === topStackIndex;
22617
+ const r2 = 6;
22618
+ return isTop ? /* @__PURE__ */ jsx$1("path", {
22619
+ d: `
22620
+ M ${bar.x + r2},${bar.y}
22621
+ h ${bar.width - 2 * r2}
22622
+ q ${r2},0 ${r2},${r2}
22623
+ v ${bar.height - r2}
22624
+ h ${-bar.width}
22625
+ v ${-(bar.height - r2)}
22626
+ q 0,${-r2} ${r2},${-r2}
22627
+ z
22628
+ `,
22629
+ fill: bar.color,
22630
+ opacity: 0.88
22631
+ }, `bar-${barStack.index}-${bar.index}`) : /* @__PURE__ */ jsx$1("rect", {
22632
+ x: bar.x,
22633
+ y: bar.y,
22634
+ width: bar.width,
22635
+ height: bar.height,
22636
+ fill: bar.color,
22637
+ opacity: 0.88
22638
+ }, `bar-${barStack.index}-${bar.index}`);
22639
+ }));
22640
+ }
22623
22641
  }), /* @__PURE__ */ jsx$1(GridRows$1, {
22624
22642
  scale: barScale,
22625
22643
  width: innerWidth,
@@ -22743,7 +22761,7 @@ const DrawStackBarLineGraph = ({
22743
22761
  border: "none",
22744
22762
  borderRadius: 8,
22745
22763
  boxShadow: "0 4px 16px rgba(0,0,0,0.35)",
22746
- padding: "8px 12px",
22764
+ padding: "15px 12px",
22747
22765
  fontSize: 12,
22748
22766
  minWidth: 160
22749
22767
  },
@@ -22751,7 +22769,7 @@ const DrawStackBarLineGraph = ({
22751
22769
  style: {
22752
22770
  fontWeight: 600,
22753
22771
  color: "#454444",
22754
- margin: "0 0 6px",
22772
+ margin: "0 0 12px",
22755
22773
  fontSize: 13
22756
22774
  },
22757
22775
  children: tooltipData[xAxisValue]
@@ -22759,7 +22777,7 @@ const DrawStackBarLineGraph = ({
22759
22777
  style: {
22760
22778
  display: "flex",
22761
22779
  flexDirection: "column",
22762
- gap: 10
22780
+ gap: 11
22763
22781
  },
22764
22782
  children: labelsArray.map((key) => {
22765
22783
  var _a2, _b2;