@trackunit/react-table-base-components 1.0.16 → 1.0.17

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/index.cjs.js CHANGED
@@ -54,7 +54,7 @@ const TimeSince = ({ date, timeZone, locale }) => {
54
54
  const timeSince = dateAndTimeUtils.timeSinceAuto(date, new Date(Date.now()), timeZone, locale);
55
55
  return jsxRuntime.jsx("p", { className: cvaDateTimeSince$1(), children: timeSince });
56
56
  }
57
- catch (_a) {
57
+ catch {
58
58
  return null;
59
59
  }
60
60
  };
@@ -123,7 +123,7 @@ const MultiValueTextCell = ({ content, count, countTooltip, icon, iconTooltip, d
123
123
  const updateTooltipVisibility = (element) => {
124
124
  setIsTooltipVisible(element ? element.scrollWidth > element.clientWidth : false);
125
125
  };
126
- return count && count > 0 ? (jsxRuntime.jsxs("div", { className: cvaMultiValueTextCellWrapper({ className }), "data-testid": dataTestId, children: [icon ? (jsxRuntime.jsx(reactComponents.Tooltip, { className: "inline-flex items-center", disabled: !iconTooltip, label: iconTooltip !== null && iconTooltip !== void 0 ? iconTooltip : "", placement: "bottom", children: icon })) : null, jsxRuntime.jsx("span", { className: cvaMultiValueTextCellTooltip(), ref: elementRef => updateTooltipVisibility(elementRef), children: jsxRuntime.jsx(reactComponents.Tooltip, { className: "inline", disabled: !isTooltipVisible, label: content !== null && content !== void 0 ? content : "", placement: "bottom", children: content !== null && content !== void 0 ? content : "" }) }), count > 1 ? (jsxRuntime.jsx(reactComponents.Tooltip, { className: "inline", disabled: !countTooltip, label: countTooltip !== null && countTooltip !== void 0 ? countTooltip : "", placement: "bottom", children: jsxRuntime.jsxs(reactComponents.Tag, { color: "neutral", size: "small", children: ["+", count - 1] }) })) : null] })) : null;
126
+ return count && count > 0 ? (jsxRuntime.jsxs("div", { className: cvaMultiValueTextCellWrapper({ className }), "data-testid": dataTestId, children: [icon ? (jsxRuntime.jsx(reactComponents.Tooltip, { className: "inline-flex items-center", disabled: !iconTooltip, label: iconTooltip ?? "", placement: "bottom", children: icon })) : null, jsxRuntime.jsx("span", { className: cvaMultiValueTextCellTooltip(), ref: elementRef => updateTooltipVisibility(elementRef), children: jsxRuntime.jsx(reactComponents.Tooltip, { className: "inline", disabled: !isTooltipVisible, label: content ?? "", placement: "bottom", children: content ?? "" }) }), count > 1 ? (jsxRuntime.jsx(reactComponents.Tooltip, { className: "inline", disabled: !countTooltip, label: countTooltip ?? "", placement: "bottom", children: jsxRuntime.jsxs(reactComponents.Tag, { color: "neutral", size: "small", children: ["+", count - 1] }) })) : null] })) : null;
127
127
  };
128
128
 
129
129
  /**
@@ -177,7 +177,7 @@ const DaysSince = ({ date, locale }) => {
177
177
  const timeSince = dateAndTimeUtils.timeSinceInDays(date.toZonedDateTime("UTC"), polyfill.Temporal.Now.instant().toZonedDateTimeISO("UTC"), "UTC", locale);
178
178
  return jsxRuntime.jsx("p", { className: cvaDateTimeSince(), children: timeSince });
179
179
  }
180
- catch (_a) {
180
+ catch {
181
181
  return null;
182
182
  }
183
183
  };
@@ -198,7 +198,7 @@ const ResizeHandle = ({ isResizing = false, dataTestId, onMouseDown: onMouseDown
198
198
  document.body.classList.remove(resizeCursorClass);
199
199
  });
200
200
  document.body.classList.add(resizeCursorClass);
201
- onMouseDownHandler === null || onMouseDownHandler === void 0 ? void 0 : onMouseDownHandler(event);
201
+ onMouseDownHandler?.(event);
202
202
  };
203
203
  return (jsxRuntime.jsx("div", { className: cvaResizeHandel({ isResizing, className }), "data-testid": dataTestId, onMouseDown: event => onMouseDown(event), role: "separator", ...rest }));
204
204
  };
package/index.esm.js CHANGED
@@ -52,7 +52,7 @@ const TimeSince = ({ date, timeZone, locale }) => {
52
52
  const timeSince = timeSinceAuto(date, new Date(Date.now()), timeZone, locale);
53
53
  return jsx("p", { className: cvaDateTimeSince$1(), children: timeSince });
54
54
  }
55
- catch (_a) {
55
+ catch {
56
56
  return null;
57
57
  }
58
58
  };
@@ -121,7 +121,7 @@ const MultiValueTextCell = ({ content, count, countTooltip, icon, iconTooltip, d
121
121
  const updateTooltipVisibility = (element) => {
122
122
  setIsTooltipVisible(element ? element.scrollWidth > element.clientWidth : false);
123
123
  };
124
- return count && count > 0 ? (jsxs("div", { className: cvaMultiValueTextCellWrapper({ className }), "data-testid": dataTestId, children: [icon ? (jsx(Tooltip, { className: "inline-flex items-center", disabled: !iconTooltip, label: iconTooltip !== null && iconTooltip !== void 0 ? iconTooltip : "", placement: "bottom", children: icon })) : null, jsx("span", { className: cvaMultiValueTextCellTooltip(), ref: elementRef => updateTooltipVisibility(elementRef), children: jsx(Tooltip, { className: "inline", disabled: !isTooltipVisible, label: content !== null && content !== void 0 ? content : "", placement: "bottom", children: content !== null && content !== void 0 ? content : "" }) }), count > 1 ? (jsx(Tooltip, { className: "inline", disabled: !countTooltip, label: countTooltip !== null && countTooltip !== void 0 ? countTooltip : "", placement: "bottom", children: jsxs(Tag, { color: "neutral", size: "small", children: ["+", count - 1] }) })) : null] })) : null;
124
+ return count && count > 0 ? (jsxs("div", { className: cvaMultiValueTextCellWrapper({ className }), "data-testid": dataTestId, children: [icon ? (jsx(Tooltip, { className: "inline-flex items-center", disabled: !iconTooltip, label: iconTooltip ?? "", placement: "bottom", children: icon })) : null, jsx("span", { className: cvaMultiValueTextCellTooltip(), ref: elementRef => updateTooltipVisibility(elementRef), children: jsx(Tooltip, { className: "inline", disabled: !isTooltipVisible, label: content ?? "", placement: "bottom", children: content ?? "" }) }), count > 1 ? (jsx(Tooltip, { className: "inline", disabled: !countTooltip, label: countTooltip ?? "", placement: "bottom", children: jsxs(Tag, { color: "neutral", size: "small", children: ["+", count - 1] }) })) : null] })) : null;
125
125
  };
126
126
 
127
127
  /**
@@ -175,7 +175,7 @@ const DaysSince = ({ date, locale }) => {
175
175
  const timeSince = timeSinceInDays(date.toZonedDateTime("UTC"), Temporal.Now.instant().toZonedDateTimeISO("UTC"), "UTC", locale);
176
176
  return jsx("p", { className: cvaDateTimeSince(), children: timeSince });
177
177
  }
178
- catch (_a) {
178
+ catch {
179
179
  return null;
180
180
  }
181
181
  };
@@ -196,7 +196,7 @@ const ResizeHandle = ({ isResizing = false, dataTestId, onMouseDown: onMouseDown
196
196
  document.body.classList.remove(resizeCursorClass);
197
197
  });
198
198
  document.body.classList.add(resizeCursorClass);
199
- onMouseDownHandler === null || onMouseDownHandler === void 0 ? void 0 : onMouseDownHandler(event);
199
+ onMouseDownHandler?.(event);
200
200
  };
201
201
  return (jsx("div", { className: cvaResizeHandel({ isResizing, className }), "data-testid": dataTestId, onMouseDown: event => onMouseDown(event), role: "separator", ...rest }));
202
202
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table-base-components",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -9,9 +9,9 @@
9
9
  "dependencies": {
10
10
  "react": "18.3.1",
11
11
  "@js-temporal/polyfill": "^0.4.4",
12
- "@trackunit/react-components": "^1.0.13",
12
+ "@trackunit/react-components": "^1.1.0",
13
13
  "@trackunit/ui-icons": "^1.0.3",
14
- "@trackunit/react-form-components": "^1.0.16",
14
+ "@trackunit/react-form-components": "^1.0.17",
15
15
  "@trackunit/css-class-variance-utilities": "^1.0.1",
16
16
  "@trackunit/date-and-time-utils": "^1.0.1",
17
17
  "@trackunit/shared-utils": "^1.0.3"