@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 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("div", {
566
+ }), /*#__PURE__*/_jsx(ValuesBox, {
566
567
  id: `${id}-table`,
567
- className: classes.box,
568
+ shown: table && shown,
568
569
  children: /*#__PURE__*/_jsxs("table", {
569
570
  className: classes.table,
570
571
  children: [/*#__PURE__*/_jsx("caption", {