@adecore/charts 0.53.3 → 0.54.0
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/Heatmap.js +6 -5
- package/dist/Root.js +275 -251
- package/dist/SeriesLegend.js +2 -2
- package/dist/Sparkline.js +2 -2
- package/dist/ValuesBox.d.ts +6 -0
- package/dist/ValuesBox.js +43 -0
- package/dist/annotations.js +1 -1
- package/dist/axes.js +3 -3
- package/dist/overlays.js +121 -115
- package/dist/series.d.ts +1 -1
- package/dist/series.js +1 -1
- package/dist/timeline.js +3 -3
- package/dist/values-table.d.ts +1 -4
- package/dist/values-table.js +1 -4
- package/package.json +3 -3
- package/src/Heatmap.tsx +6 -5
- package/src/Root.tsx +98 -88
- package/src/SeriesLegend.tsx +2 -2
- package/src/Sparkline.tsx +3 -3
- package/src/ValuesBox.tsx +19 -0
- package/src/annotations.tsx +1 -1
- package/src/axes.tsx +3 -3
- package/src/overlays.tsx +5 -4
- package/src/scatter.tsx +1 -1
- package/src/series.tsx +2 -2
- package/src/timeline.tsx +3 -3
- package/src/values-table.ts +1 -2
package/dist/Heatmap.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useId, useState, useSyncExternalStore } from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { useTranslation } from 'react-i18next';
|
|
5
2
|
import { Button, Surface } from '@adecore/ui';
|
|
6
3
|
import { formatNumber } from '@adecore/ui/format';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { useId, useState, useSyncExternalStore } from 'react';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { colorOf } from './color.js';
|
|
8
8
|
import { createHeatmapCursor } from './heat-cursor.js';
|
|
9
9
|
import { FLOOR, heatMix, heatShare, moveCell } from './heat.js';
|
|
10
10
|
import { tableClasses } from './values-table.js';
|
|
11
|
+
import { ValuesBox } from "./ValuesBox.js";
|
|
11
12
|
/* Between a cell and the card beside it. */
|
|
12
13
|
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
14
|
const OFFSET = 8;
|
|
@@ -562,9 +563,9 @@ export function Heatmap(t0) {
|
|
|
562
563
|
"aria-controls": `${id}-table`,
|
|
563
564
|
onClick: () => setShown(_temp4),
|
|
564
565
|
children: shown ? t("values.hide") : t("values.show")
|
|
565
|
-
}), /*#__PURE__*/_jsx(
|
|
566
|
+
}), /*#__PURE__*/_jsx(ValuesBox, {
|
|
566
567
|
id: `${id}-table`,
|
|
567
|
-
|
|
568
|
+
shown: table && shown,
|
|
568
569
|
children: /*#__PURE__*/_jsxs("table", {
|
|
569
570
|
className: classes.table,
|
|
570
571
|
children: [/*#__PURE__*/_jsx("caption", {
|