@algorithm-shift/design-system 1.3.121 → 1.3.123

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
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  cn,
4
4
  getInitials
5
- } from "./chunk-QZ2QO7MJ.mjs";
5
+ } from "./chunk-A6Q7ZNV7.mjs";
6
6
 
7
7
  // src/components/Layout/Modal.tsx
8
8
  import { useEffect } from "react";
@@ -5758,7 +5758,7 @@ var StagesComponent = ({
5758
5758
  let stageColor = `text-[${primaryColor}] border-2 border-[${primaryColor}]`;
5759
5759
  let stageStyle = { borderColor: primaryColor, color: showAsActive ? "white" : primaryColor, backgroundColor: showAsActive ? primaryColor : "transparent" };
5760
5760
  if (stage.hasOwnProperty("isSuccess") && stage.isSuccess === false) {
5761
- stageColor = `bg-red-50 text-red-700 border-2 border-red-700`;
5761
+ stageColor = "bg-red-50 text-red-700 border-2 border-red-700";
5762
5762
  stageStyle = { borderColor: "red", color: "red", backgroundColor: "transparent" };
5763
5763
  }
5764
5764
  let stageLabel = stage[dataLabel];
@@ -6104,7 +6104,7 @@ var ChartComponent = ({
6104
6104
  }, [useApi]);
6105
6105
  const fetchData = useCallback7(async (page) => {
6106
6106
  if (!apiUrl) return;
6107
- let cancelled = false;
6107
+ const cancelled = false;
6108
6108
  try {
6109
6109
  setLocalLoading(true);
6110
6110
  const params = new URLSearchParams({
@@ -6165,7 +6165,7 @@ var ChartComponent = ({
6165
6165
  return /* @__PURE__ */ jsx68(
6166
6166
  "div",
6167
6167
  {
6168
- className: isLegendRight2 ? "flex flex-col gap-2 w-full min-w-0 justify-start" : "flex flex-wrap justify-center gap-2 mt-4 w-full max-w-4xl",
6168
+ className: isLegendRight2 ? "flex flex-col gap-2 w-full min-w-0 justify-start overflow-y-auto max-h-[260px]" : "flex flex-wrap justify-center gap-2 mt-4 w-full max-w-4xl",
6169
6169
  children: data.map((d, index) => {
6170
6170
  const value = d[dataKey] ?? 0;
6171
6171
  const displayValue = value >= 1e3 ? `${(value / 1e3).toFixed(0)}k` : value.toLocaleString();
@@ -6333,7 +6333,7 @@ var ChartComponent = ({
6333
6333
  width: 60
6334
6334
  }
6335
6335
  ),
6336
- /* @__PURE__ */ jsx68(Tooltip2, { formatter: (value) => [`${value}`, "Count"] }),
6336
+ /* @__PURE__ */ jsx68(Tooltip2, { formatter: (value) => value != null ? [`${value}`, "Count"] : ["", "Count"] }),
6337
6337
  /* @__PURE__ */ jsx68(
6338
6338
  Bar,
6339
6339
  {
@@ -6375,7 +6375,7 @@ var ChartComponent = ({
6375
6375
  width: 60
6376
6376
  }
6377
6377
  ),
6378
- /* @__PURE__ */ jsx68(Tooltip2, { formatter: (value) => `${value}k` }),
6378
+ /* @__PURE__ */ jsx68(Tooltip2, { formatter: (value) => value != null ? `${value}k` : "" }),
6379
6379
  /* @__PURE__ */ jsx68(
6380
6380
  Area,
6381
6381
  {
@@ -6585,7 +6585,7 @@ var DonutChart = ({
6585
6585
  return /* @__PURE__ */ jsx69(
6586
6586
  "div",
6587
6587
  {
6588
- className: isLegendRight2 ? "flex flex-col gap-2 w-full min-w-0 justify-start" : "flex flex-wrap justify-center gap-2 mt-4 w-full max-w-4xl",
6588
+ className: isLegendRight2 ? "flex flex-col gap-2 w-full min-w-0 justify-start overflow-y-auto max-h-[260px]" : "flex flex-wrap justify-center gap-2 mt-4 w-full max-w-4xl",
6589
6589
  children: chartData.map((d, index) => {
6590
6590
  const actualValue = data.find(
6591
6591
  (item) => item[dataLabel] === d[dataLabel]