cecomponent 2.0.72 → 2.0.73

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.
@@ -43478,12 +43478,6 @@ const CESkeletonTable = ({ columns: e, rows: t }) => /* @__PURE__ */ jsxRuntimeE
43478
43478
  }, [b, S]), useEffect(() => {
43479
43479
  b || F(-1);
43480
43480
  }, [b]), useEffect(() => {
43481
- const B = (Y) => {
43482
- var H;
43483
- (H = V.current) != null && H.contains(Y.target) || T(!1);
43484
- };
43485
- return document.addEventListener("mousedown", B), () => document.removeEventListener("mousedown", B);
43486
- }, []), useEffect(() => {
43487
43481
  b && S && requestAnimationFrame(() => {
43488
43482
  var B;
43489
43483
  (B = I.current) == null || B.focus();
@@ -43519,9 +43513,9 @@ const CESkeletonTable = ({ columns: e, rows: t }) => /* @__PURE__ */ jsxRuntimeE
43519
43513
  {
43520
43514
  className: `dropdown-input ${b ? "open" : ""}`,
43521
43515
  onFocus: () => {
43522
- T(!0), R(!0);
43516
+ R(!0);
43523
43517
  },
43524
- onClick: () => T(!0),
43518
+ onClick: () => T((B) => !B),
43525
43519
  onKeyDown: X,
43526
43520
  tabIndex: 0,
43527
43521
  children: [
@@ -63849,7 +63843,14 @@ const CEBarChart = ({
63849
63843
  I && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ce-tooltip-card-subtitle", style: U, children: I })
63850
63844
  ] }),
63851
63845
  j.map((q, M) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ce-tooltip-card-section", children: [
63852
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ce-tooltip-card-section-title", children: q.label }),
63846
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
63847
+ "div",
63848
+ {
63849
+ className: "ce-tooltip-card-section-title",
63850
+ style: q.textColor ? { color: q.textColor } : { color: "#374151" },
63851
+ children: q.label
63852
+ }
63853
+ ),
63853
63854
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ce-tooltip-card-items", children: q.items.map((L, X) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ce-tooltip-card-item", children: [
63854
63855
  /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "ce-tooltip-card-item-label", children: [
63855
63856
  L.label,
@@ -20,6 +20,7 @@ export interface CETooltipProps {
20
20
  subtitle?: string;
21
21
  sections?: Array<{
22
22
  label: string;
23
+ textColor?: string;
23
24
  items: Array<{
24
25
  label: string;
25
26
  value: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cecomponent",
3
3
  "description": "A React component library for building modern UIs for Cleanearth",
4
- "version": "2.0.72",
4
+ "version": "2.0.73",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/idex.d.ts",