@algorithm-shift/design-system 1.3.121 → 1.3.122
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/README.md +2 -2
- package/dist/{chunk-QZ2QO7MJ.mjs → chunk-A6Q7ZNV7.mjs} +1 -1
- package/dist/chunk-A6Q7ZNV7.mjs.map +1 -0
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +1 -1
- package/dist/client.mjs.map +1 -1
- package/dist/index.css +19 -11
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +347 -347
- package/dist/index.d.ts +347 -347
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +113 -106
- package/dist/chunk-QZ2QO7MJ.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
cn,
|
|
4
4
|
getInitials
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-A6Q7ZNV7.mjs";
|
|
6
6
|
|
|
7
7
|
// src/components/Layout/Modal.tsx
|
|
8
8
|
import { useEffect } from "react";
|
|
@@ -6104,7 +6104,7 @@ var ChartComponent = ({
|
|
|
6104
6104
|
}, [useApi]);
|
|
6105
6105
|
const fetchData = useCallback7(async (page) => {
|
|
6106
6106
|
if (!apiUrl) return;
|
|
6107
|
-
|
|
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]
|