@trackunit/react-table-base-components 0.0.386 → 0.0.389

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.
Files changed (36) hide show
  1. package/index.cjs.js +31 -79
  2. package/index.esm.js +31 -77
  3. package/package.json +5 -4
  4. package/src/BaseTable.stories.d.ts +1 -2
  5. package/src/components/ButtonCell/ButtonCell.d.ts +1 -1
  6. package/src/components/ButtonCell/ButtonCell.stories.d.ts +1 -2
  7. package/src/components/CheckboxCell/CheckboxCell.d.ts +1 -2
  8. package/src/components/CheckboxCell/CheckboxCell.stories.d.ts +2 -3
  9. package/src/components/DateTimeCell/DateTimeCell.d.ts +1 -2
  10. package/src/components/DateTimeCell/DateTimeCell.stories.d.ts +2 -3
  11. package/src/components/ImageCell/ImageCell.d.ts +1 -2
  12. package/src/components/ImageCell/ImageCell.stories.d.ts +1 -2
  13. package/src/components/IndicatorCell/IndicatorCell.d.ts +1 -2
  14. package/src/components/IndicatorCell/IndicatorCell.stories.d.ts +1 -2
  15. package/src/components/LinkCell/LinkCell.d.ts +1 -2
  16. package/src/components/LinkCell/LinkCell.stories.d.ts +2 -3
  17. package/src/components/MultiValueTextCell/MultiValueTextCell.d.ts +1 -1
  18. package/src/components/MultiValueTextCell/MultiValueTextCell.stories.d.ts +1 -2
  19. package/src/components/NoticeCell/NoticeCell.d.ts +1 -2
  20. package/src/components/NoticeCell/NoticeCell.stories.d.ts +1 -2
  21. package/src/components/NumberCell/NumberCell.d.ts +1 -2
  22. package/src/components/NumberCell/NumberCell.stories.d.ts +1 -2
  23. package/src/components/PlainDateCell/PlainDateCell.d.ts +1 -2
  24. package/src/components/PlainDateCell/PlainDateCell.stories.d.ts +2 -3
  25. package/src/components/SortIndicator.stories.d.ts +1 -2
  26. package/src/components/TableRoot.d.ts +1 -1
  27. package/src/components/TagsCell/TagsCell.d.ts +1 -2
  28. package/src/components/TagsCell/TagsCell.stories.d.ts +1 -2
  29. package/src/components/Tbody.d.ts +1 -1
  30. package/src/components/Td.d.ts +1 -1
  31. package/src/components/TextCell/TextCell.d.ts +1 -2
  32. package/src/components/TextCell/TextCell.stories.d.ts +1 -2
  33. package/src/components/Tfoot.d.ts +1 -1
  34. package/src/components/Th.d.ts +1 -1
  35. package/src/components/Thead.d.ts +1 -1
  36. package/src/components/Tr.d.ts +1 -1
package/index.cjs.js CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var jsxRuntime = require('react/jsx-runtime');
6
4
  var reactComponents = require('@trackunit/react-components');
7
5
  var reactFormComponents = require('@trackunit/react-form-components');
@@ -11,47 +9,14 @@ var react = require('react');
11
9
  var polyfill = require('@js-temporal/polyfill');
12
10
  var sharedUtils = require('@trackunit/shared-utils');
13
11
 
14
- /******************************************************************************
15
- Copyright (c) Microsoft Corporation.
16
-
17
- Permission to use, copy, modify, and/or distribute this software for any
18
- purpose with or without fee is hereby granted.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
- PERFORMANCE OF THIS SOFTWARE.
27
- ***************************************************************************** */
28
-
29
- function __rest(s, e) {
30
- var t = {};
31
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
32
- t[p] = s[p];
33
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
34
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
35
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
36
- t[p[i]] = s[p[i]];
37
- }
38
- return t;
39
- }
40
-
41
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
42
- var e = new Error(message);
43
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
44
- };
45
-
46
12
  /**
47
13
  * The ButtonCell is used to render buttons in a table cell
48
14
  *
49
15
  * @param {ButtonCellProps} props - The props for the ButtonCell component
50
16
  * @returns {JSX.Element} ButtonCell component
51
17
  */
52
- const ButtonCell = (_a) => {
53
- var { dataTestId, children, iconName, iconColor = "primary", variant = "ghost-neutral" } = _a, rest = __rest(_a, ["dataTestId", "children", "iconName", "iconColor", "variant"]);
54
- return (jsxRuntime.jsx(reactComponents.Button, Object.assign({ prefix: iconName ? jsxRuntime.jsx(reactComponents.Icon, { color: iconColor, name: iconName, size: "small", type: "solid" }) : null }, rest, { dataTestId: `button-cell-${dataTestId}`, variant: variant, children: children })));
18
+ const ButtonCell = ({ dataTestId, children, iconName, iconColor = "primary", variant = "ghost-neutral", ...rest }) => {
19
+ return (jsxRuntime.jsx(reactComponents.Button, { prefix: iconName ? jsxRuntime.jsx(reactComponents.Icon, { color: iconColor, name: iconName, size: "small", type: "solid" }) : null, ...rest, dataTestId: `button-cell-${dataTestId}`, variant: variant, children: children }));
55
20
  };
56
21
 
57
22
  const cvaCheckboxCell = cssClassVarianceUtilities.cvaMerge([""]);
@@ -100,9 +65,8 @@ const TimeSince = ({ date, timeZone, locale }) => {
100
65
  * @param {ImageCellProps} props - The props for the Image component.
101
66
  * @returns {JSX.Element} The Image component.
102
67
  */
103
- const ImageCell = (_a) => {
104
- var { imageUrl, alt = "", width = 100, height = 100, dataTestId } = _a, rest = __rest(_a, ["imageUrl", "alt", "width", "height", "dataTestId"]);
105
- return jsxRuntime.jsx("img", Object.assign({ alt: alt, "data-testid": dataTestId, height: height, src: imageUrl, width: width }, rest));
68
+ const ImageCell = ({ imageUrl, alt = "", width = 100, height = 100, dataTestId, ...rest }) => {
69
+ return jsxRuntime.jsx("img", { alt: alt, "data-testid": dataTestId, height: height, src: imageUrl, width: width, ...rest });
106
70
  };
107
71
 
108
72
  /**
@@ -111,9 +75,8 @@ const ImageCell = (_a) => {
111
75
  * @param {IndicatorCellProps} props - The props for the LinkCell component
112
76
  * @returns {JSX.Element} LinkCell component
113
77
  */
114
- const IndicatorCell = (_a) => {
115
- var rest = __rest(_a, []);
116
- return jsxRuntime.jsx(reactComponents.Indicator, Object.assign({}, rest));
78
+ const IndicatorCell = ({ ...rest }) => {
79
+ return jsxRuntime.jsx(reactComponents.Indicator, { ...rest });
117
80
  };
118
81
 
119
82
  /**
@@ -122,13 +85,12 @@ const IndicatorCell = (_a) => {
122
85
  * @param {LinkCellProps} props - The props for the LinkCell component
123
86
  * @returns {JSX.Element} LinkCell component
124
87
  */
125
- const LinkCell = (_a) => {
126
- var { link, type } = _a, rest = __rest(_a, ["link", "type"]);
88
+ const LinkCell = ({ link, type, ...rest }) => {
127
89
  const linkPrefix = type === "LINK" ? "" : type === "PHONE" ? "tel:" : "mailto:";
128
90
  const handleClick = (event) => {
129
91
  event.stopPropagation();
130
92
  };
131
- return (jsxRuntime.jsx(reactComponents.ExternalLink, Object.assign({ href: `${linkPrefix}${link}` }, rest, { onClick: handleClick, children: link })));
93
+ return (jsxRuntime.jsx(reactComponents.ExternalLink, { href: `${linkPrefix}${link}`, ...rest, onClick: handleClick, children: link }));
132
94
  };
133
95
 
134
96
  const cvaMultiValueTextCellWrapper = cssClassVarianceUtilities.cvaMerge(["flex", "flex-row", "items-center", "gap-1", "overflow-hidden"]);
@@ -155,9 +117,8 @@ const MultiValueTextCell = ({ content, count, countTooltip, icon, iconTooltip, d
155
117
  * @param {NoticeCellProps} props - The props for the NoticeCell component
156
118
  * @returns {JSX.Element} NoticeCell component
157
119
  */
158
- const NoticeCell = (_a) => {
159
- var rest = __rest(_a, []);
160
- return jsxRuntime.jsx(reactComponents.Notice, Object.assign({}, rest));
120
+ const NoticeCell = ({ ...rest }) => {
121
+ return jsxRuntime.jsx(reactComponents.Notice, { ...rest });
161
122
  };
162
123
 
163
124
  const cvaNumberCell = cssClassVarianceUtilities.cvaMerge([
@@ -215,8 +176,7 @@ const DaysSince = ({ date, locale }) => {
215
176
  * @param {string} [props.className] - Additional CSS classes to apply to the handle.
216
177
  * @returns {ReactElement} A React element representing the resizable handle.
217
178
  */
218
- const ResizeHandle = (_a) => {
219
- var { isResizing = false, dataTestId, onMouseDown: onMouseDownHandler, className } = _a, rest = __rest(_a, ["isResizing", "dataTestId", "onMouseDown", "className"]);
179
+ const ResizeHandle = ({ isResizing = false, dataTestId, onMouseDown: onMouseDownHandler, className, ...rest }) => {
220
180
  const onMouseDown = (event) => {
221
181
  const resizeCursorClass = "cursor-col-resize";
222
182
  document.addEventListener("mouseup", () => {
@@ -225,7 +185,7 @@ const ResizeHandle = (_a) => {
225
185
  document.body.classList.add(resizeCursorClass);
226
186
  onMouseDownHandler === null || onMouseDownHandler === void 0 ? void 0 : onMouseDownHandler(event);
227
187
  };
228
- return (jsxRuntime.jsx("div", Object.assign({ className: cvaResizeHandel({ isResizing, className }), "data-testid": dataTestId, onMouseDown: event => onMouseDown(event), role: "separator" }, rest)));
188
+ return (jsxRuntime.jsx("div", { className: cvaResizeHandel({ isResizing, className }), "data-testid": dataTestId, onMouseDown: event => onMouseDown(event), role: "separator", ...rest }));
229
189
  };
230
190
  const cvaResizeHandel = cssClassVarianceUtilities.cvaMerge(["absolute", "cursor-col-resize", "right-0", "top-0", "h-full", "w-1", "select-none", "hover:bg-primary-400"], {
231
191
  variants: {
@@ -249,9 +209,8 @@ const cvaResizeHandel = cssClassVarianceUtilities.cvaMerge(["absolute", "cursor-
249
209
  * @param {string} [props.className] - Additional CSS classes to apply to the sorting indicator.
250
210
  * @returns {ReactElement} A React element representing the sorting indicator.
251
211
  */
252
- const SortIndicator = (_a) => {
253
- var { sortingState = false, dataTestId, className } = _a, rest = __rest(_a, ["sortingState", "dataTestId", "className"]);
254
- return (jsxRuntime.jsx("span", Object.assign({ className: cvaSortIndicator({ sortingState, className }), "data-testid": dataTestId, role: "separator" }, rest)));
212
+ const SortIndicator = ({ sortingState = false, dataTestId, className, ...rest }) => {
213
+ return (jsxRuntime.jsx("span", { className: cvaSortIndicator({ sortingState, className }), "data-testid": dataTestId, role: "separator", ...rest }));
255
214
  };
256
215
  const cvaSortIndicator = cssClassVarianceUtilities.cvaMerge([
257
216
  "relative",
@@ -295,9 +254,8 @@ const cvaSortIndicator = cssClassVarianceUtilities.cvaMerge([
295
254
  * @param {TableRootProps} props - The props for the TableRoot component
296
255
  * @returns {JSX.Element} TableRoot component
297
256
  */
298
- const TableRoot = (_a) => {
299
- var { dataTestId, className, children } = _a, rest = __rest(_a, ["dataTestId", "className", "children"]);
300
- return (jsxRuntime.jsx("table", Object.assign({ className: cvaTableRoot({ className }), "data-testid": dataTestId }, rest, { children: children })));
257
+ const TableRoot = ({ dataTestId, className, children, ...rest }) => {
258
+ return (jsxRuntime.jsx("table", { className: cvaTableRoot({ className }), "data-testid": dataTestId, ...rest, children: children }));
301
259
  };
302
260
  const cvaTableRoot = cssClassVarianceUtilities.cvaMerge(["border-spacing-0", "min-w-full", "grid-rows-min-fr", "grid"]);
303
261
 
@@ -310,9 +268,9 @@ const cvaTagsCell = cssClassVarianceUtilities.cvaMerge(["flex", "gap-2"]);
310
268
  * @returns {JSX.Element} TagsCell component
311
269
  */
312
270
  const TagsCell = ({ className, tags, dataTestId }) => {
313
- return (jsxRuntime.jsx("div", { className: cvaTagsCell({ className }), "data-testid": dataTestId, children: tags.map((tag, index) => (jsxRuntime.jsx(reactComponents.Tag, Object.assign({ color: "primary",
314
- key: index,
315
- dataTestId: `${dataTestId}-${index}` }, (typeof tag === "string" ? { children: tag } : tag))))) }));
271
+ return (jsxRuntime.jsx("div", { className: cvaTagsCell({ className }), "data-testid": dataTestId, children: tags.map((tag, index) => (jsxRuntime.jsx(reactComponents.Tag, { color: "primary",
272
+ dataTestId: `${dataTestId}-${index}`,
273
+ ...(typeof tag === "string" ? { children: tag } : tag) }, index))) }));
316
274
  };
317
275
 
318
276
  /**
@@ -325,9 +283,8 @@ const TagsCell = ({ className, tags, dataTestId }) => {
325
283
  * @param {TbodyProps} props - The props for the Tbody component
326
284
  * @returns {JSX.Element} Tbody component
327
285
  */
328
- const Tbody = (_a) => {
329
- var { dataTestId, className, children } = _a, rest = __rest(_a, ["dataTestId", "className", "children"]);
330
- return (jsxRuntime.jsx("tbody", Object.assign({ className: className, "data-testid": dataTestId }, rest, { children: children })));
286
+ const Tbody = ({ dataTestId, className, children, ...rest }) => {
287
+ return (jsxRuntime.jsx("tbody", { className: className, "data-testid": dataTestId, ...rest, children: children }));
331
288
  };
332
289
 
333
290
  /**
@@ -340,9 +297,8 @@ const Tbody = (_a) => {
340
297
  * @param {TdProps} props - The props for the Td component
341
298
  * @returns {JSX.Element} Td component
342
299
  */
343
- const Td = (_a) => {
344
- var { dataTestId, className, children } = _a, rest = __rest(_a, ["dataTestId", "className", "children"]);
345
- return (jsxRuntime.jsx("td", Object.assign({ className: cvaTd({ className }), "data-testid": dataTestId }, rest, { children: children })));
300
+ const Td = ({ dataTestId, className, children, ...rest }) => {
301
+ return (jsxRuntime.jsx("td", { className: cvaTd({ className }), "data-testid": dataTestId, ...rest, children: children }));
346
302
  };
347
303
  const cvaTd = cssClassVarianceUtilities.cvaMerge(["overflow-hidden", "align-middle", "py-table-spacing", "px-2", "whitespace-nowrap"]);
348
304
 
@@ -374,9 +330,8 @@ const TextCell = ({ content = "", className, dataTestId }) => {
374
330
  * @param {TfootProps} props - The props for the Tfoot component
375
331
  * @returns {JSX.Element} Tfoot component
376
332
  */
377
- const Tfoot = (_a) => {
378
- var { dataTestId, className, children } = _a, rest = __rest(_a, ["dataTestId", "className", "children"]);
379
- return (jsxRuntime.jsx("tfoot", Object.assign({ className: className, "data-testid": dataTestId }, rest, { children: children })));
333
+ const Tfoot = ({ dataTestId, className, children, ...rest }) => {
334
+ return (jsxRuntime.jsx("tfoot", { className: className, "data-testid": dataTestId, ...rest, children: children }));
380
335
  };
381
336
 
382
337
  /**
@@ -389,15 +344,14 @@ const Tfoot = (_a) => {
389
344
  * @param {ThProps} props - The props for the Th component
390
345
  * @returns {JSX.Element} Th component
391
346
  */
392
- const Th = (_a) => {
393
- var { dataTestId, className, children, tooltipLabel } = _a, rest = __rest(_a, ["dataTestId", "className", "children", "tooltipLabel"]);
347
+ const Th = ({ dataTestId, className, children, tooltipLabel, ...rest }) => {
394
348
  const [showToolTip, setShowTooltipVisible] = react.useState(false);
395
349
  const [thWidth, setThWidth] = react.useState(0);
396
350
  const [childrenWidth, setChildrenWidth] = react.useState(0);
397
351
  react.useEffect(() => {
398
352
  setShowTooltipVisible(thWidth > childrenWidth);
399
353
  }, [thWidth, childrenWidth, tooltipLabel]);
400
- return (jsxRuntime.jsx("th", Object.assign({ className: cvaTh({ className }), "data-testid": dataTestId, ref: elementRef => setThWidth(elementRef ? elementRef.clientWidth : 0) }, rest, { children: tooltipLabel ? (jsxRuntime.jsx(reactComponents.Tooltip, { className: cvaTooltip(), disabled: showToolTip, label: tooltipLabel, placement: "bottom", children: jsxRuntime.jsx("div", { className: cvaChildrenContainer(), ref: elementRef => setChildrenWidth(elementRef ? elementRef.clientWidth : 0), children: children }) })) : (jsxRuntime.jsx("div", { className: cvaChildrenContainer(), ref: elementRef => setChildrenWidth(elementRef ? elementRef.clientWidth : 0), children: children })) })));
354
+ return (jsxRuntime.jsx("th", { className: cvaTh({ className }), "data-testid": dataTestId, ref: elementRef => setThWidth(elementRef ? elementRef.clientWidth : 0), ...rest, children: tooltipLabel ? (jsxRuntime.jsx(reactComponents.Tooltip, { className: cvaTooltip(), disabled: showToolTip, label: tooltipLabel, placement: "bottom", children: jsxRuntime.jsx("div", { className: cvaChildrenContainer(), ref: elementRef => setChildrenWidth(elementRef ? elementRef.clientWidth : 0), children: children }) })) : (jsxRuntime.jsx("div", { className: cvaChildrenContainer(), ref: elementRef => setChildrenWidth(elementRef ? elementRef.clientWidth : 0), children: children })) }));
401
355
  };
402
356
  const cvaTh = cssClassVarianceUtilities.cvaMerge([
403
357
  "hover:bg-neutral-200",
@@ -420,9 +374,8 @@ const cvaChildrenContainer = cssClassVarianceUtilities.cvaMerge(["max-w-full", "
420
374
  * @param {TheadProps} props - The props for the Thead component
421
375
  * @returns {JSX.Element} Thead component
422
376
  */
423
- const Thead = (_a) => {
424
- var { dataTestId, className, children, sticky = true } = _a, rest = __rest(_a, ["dataTestId", "className", "children", "sticky"]);
425
- return (jsxRuntime.jsx("thead", Object.assign({ className: cvaThead({ sticky, className }), "data-testid": dataTestId }, rest, { children: children })));
377
+ const Thead = ({ dataTestId, className, children, sticky = true, ...rest }) => {
378
+ return (jsxRuntime.jsx("thead", { className: cvaThead({ sticky, className }), "data-testid": dataTestId, ...rest, children: children }));
426
379
  };
427
380
  const cvaThead = cssClassVarianceUtilities.cvaMerge(["bg-neutral-100", "text-left"], {
428
381
  variants: {
@@ -446,9 +399,8 @@ const cvaThead = cssClassVarianceUtilities.cvaMerge(["bg-neutral-100", "text-lef
446
399
  * @param {TrProps} props - The props for the Tr component
447
400
  * @returns {JSX.Element} Tr component
448
401
  */
449
- const Tr = (_a) => {
450
- var { dataTestId, className, children, layout = "default" } = _a, rest = __rest(_a, ["dataTestId", "className", "children", "layout"]);
451
- return (jsxRuntime.jsx("tr", Object.assign({ className: cvaTr({ layout, className }), "data-testid": dataTestId, role: "row" }, rest, { children: children })));
402
+ const Tr = ({ dataTestId, className, children, layout = "default", ...rest }) => {
403
+ return (jsxRuntime.jsx("tr", { className: cvaTr({ layout, className }), "data-testid": dataTestId, role: "row", ...rest, children: children }));
452
404
  };
453
405
  const cvaTr = cssClassVarianceUtilities.cvaMerge(["border-b", "border-neutral-300", "w-full", "h-max"], {
454
406
  variants: {
package/index.esm.js CHANGED
@@ -7,47 +7,14 @@ import { useState, useEffect } from 'react';
7
7
  import { Temporal } from '@js-temporal/polyfill';
8
8
  import { DateTimeFormat } from '@trackunit/shared-utils';
9
9
 
10
- /******************************************************************************
11
- Copyright (c) Microsoft Corporation.
12
-
13
- Permission to use, copy, modify, and/or distribute this software for any
14
- purpose with or without fee is hereby granted.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
17
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
19
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
20
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
21
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22
- PERFORMANCE OF THIS SOFTWARE.
23
- ***************************************************************************** */
24
-
25
- function __rest(s, e) {
26
- var t = {};
27
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
- t[p] = s[p];
29
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
- t[p[i]] = s[p[i]];
33
- }
34
- return t;
35
- }
36
-
37
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
38
- var e = new Error(message);
39
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
40
- };
41
-
42
10
  /**
43
11
  * The ButtonCell is used to render buttons in a table cell
44
12
  *
45
13
  * @param {ButtonCellProps} props - The props for the ButtonCell component
46
14
  * @returns {JSX.Element} ButtonCell component
47
15
  */
48
- const ButtonCell = (_a) => {
49
- var { dataTestId, children, iconName, iconColor = "primary", variant = "ghost-neutral" } = _a, rest = __rest(_a, ["dataTestId", "children", "iconName", "iconColor", "variant"]);
50
- return (jsx(Button, Object.assign({ prefix: iconName ? jsx(Icon, { color: iconColor, name: iconName, size: "small", type: "solid" }) : null }, rest, { dataTestId: `button-cell-${dataTestId}`, variant: variant, children: children })));
16
+ const ButtonCell = ({ dataTestId, children, iconName, iconColor = "primary", variant = "ghost-neutral", ...rest }) => {
17
+ return (jsx(Button, { prefix: iconName ? jsx(Icon, { color: iconColor, name: iconName, size: "small", type: "solid" }) : null, ...rest, dataTestId: `button-cell-${dataTestId}`, variant: variant, children: children }));
51
18
  };
52
19
 
53
20
  const cvaCheckboxCell = cvaMerge([""]);
@@ -96,9 +63,8 @@ const TimeSince = ({ date, timeZone, locale }) => {
96
63
  * @param {ImageCellProps} props - The props for the Image component.
97
64
  * @returns {JSX.Element} The Image component.
98
65
  */
99
- const ImageCell = (_a) => {
100
- var { imageUrl, alt = "", width = 100, height = 100, dataTestId } = _a, rest = __rest(_a, ["imageUrl", "alt", "width", "height", "dataTestId"]);
101
- return jsx("img", Object.assign({ alt: alt, "data-testid": dataTestId, height: height, src: imageUrl, width: width }, rest));
66
+ const ImageCell = ({ imageUrl, alt = "", width = 100, height = 100, dataTestId, ...rest }) => {
67
+ return jsx("img", { alt: alt, "data-testid": dataTestId, height: height, src: imageUrl, width: width, ...rest });
102
68
  };
103
69
 
104
70
  /**
@@ -107,9 +73,8 @@ const ImageCell = (_a) => {
107
73
  * @param {IndicatorCellProps} props - The props for the LinkCell component
108
74
  * @returns {JSX.Element} LinkCell component
109
75
  */
110
- const IndicatorCell = (_a) => {
111
- var rest = __rest(_a, []);
112
- return jsx(Indicator, Object.assign({}, rest));
76
+ const IndicatorCell = ({ ...rest }) => {
77
+ return jsx(Indicator, { ...rest });
113
78
  };
114
79
 
115
80
  /**
@@ -118,13 +83,12 @@ const IndicatorCell = (_a) => {
118
83
  * @param {LinkCellProps} props - The props for the LinkCell component
119
84
  * @returns {JSX.Element} LinkCell component
120
85
  */
121
- const LinkCell = (_a) => {
122
- var { link, type } = _a, rest = __rest(_a, ["link", "type"]);
86
+ const LinkCell = ({ link, type, ...rest }) => {
123
87
  const linkPrefix = type === "LINK" ? "" : type === "PHONE" ? "tel:" : "mailto:";
124
88
  const handleClick = (event) => {
125
89
  event.stopPropagation();
126
90
  };
127
- return (jsx(ExternalLink, Object.assign({ href: `${linkPrefix}${link}` }, rest, { onClick: handleClick, children: link })));
91
+ return (jsx(ExternalLink, { href: `${linkPrefix}${link}`, ...rest, onClick: handleClick, children: link }));
128
92
  };
129
93
 
130
94
  const cvaMultiValueTextCellWrapper = cvaMerge(["flex", "flex-row", "items-center", "gap-1", "overflow-hidden"]);
@@ -151,9 +115,8 @@ const MultiValueTextCell = ({ content, count, countTooltip, icon, iconTooltip, d
151
115
  * @param {NoticeCellProps} props - The props for the NoticeCell component
152
116
  * @returns {JSX.Element} NoticeCell component
153
117
  */
154
- const NoticeCell = (_a) => {
155
- var rest = __rest(_a, []);
156
- return jsx(Notice, Object.assign({}, rest));
118
+ const NoticeCell = ({ ...rest }) => {
119
+ return jsx(Notice, { ...rest });
157
120
  };
158
121
 
159
122
  const cvaNumberCell = cvaMerge([
@@ -211,8 +174,7 @@ const DaysSince = ({ date, locale }) => {
211
174
  * @param {string} [props.className] - Additional CSS classes to apply to the handle.
212
175
  * @returns {ReactElement} A React element representing the resizable handle.
213
176
  */
214
- const ResizeHandle = (_a) => {
215
- var { isResizing = false, dataTestId, onMouseDown: onMouseDownHandler, className } = _a, rest = __rest(_a, ["isResizing", "dataTestId", "onMouseDown", "className"]);
177
+ const ResizeHandle = ({ isResizing = false, dataTestId, onMouseDown: onMouseDownHandler, className, ...rest }) => {
216
178
  const onMouseDown = (event) => {
217
179
  const resizeCursorClass = "cursor-col-resize";
218
180
  document.addEventListener("mouseup", () => {
@@ -221,7 +183,7 @@ const ResizeHandle = (_a) => {
221
183
  document.body.classList.add(resizeCursorClass);
222
184
  onMouseDownHandler === null || onMouseDownHandler === void 0 ? void 0 : onMouseDownHandler(event);
223
185
  };
224
- return (jsx("div", Object.assign({ className: cvaResizeHandel({ isResizing, className }), "data-testid": dataTestId, onMouseDown: event => onMouseDown(event), role: "separator" }, rest)));
186
+ return (jsx("div", { className: cvaResizeHandel({ isResizing, className }), "data-testid": dataTestId, onMouseDown: event => onMouseDown(event), role: "separator", ...rest }));
225
187
  };
226
188
  const cvaResizeHandel = cvaMerge(["absolute", "cursor-col-resize", "right-0", "top-0", "h-full", "w-1", "select-none", "hover:bg-primary-400"], {
227
189
  variants: {
@@ -245,9 +207,8 @@ const cvaResizeHandel = cvaMerge(["absolute", "cursor-col-resize", "right-0", "t
245
207
  * @param {string} [props.className] - Additional CSS classes to apply to the sorting indicator.
246
208
  * @returns {ReactElement} A React element representing the sorting indicator.
247
209
  */
248
- const SortIndicator = (_a) => {
249
- var { sortingState = false, dataTestId, className } = _a, rest = __rest(_a, ["sortingState", "dataTestId", "className"]);
250
- return (jsx("span", Object.assign({ className: cvaSortIndicator({ sortingState, className }), "data-testid": dataTestId, role: "separator" }, rest)));
210
+ const SortIndicator = ({ sortingState = false, dataTestId, className, ...rest }) => {
211
+ return (jsx("span", { className: cvaSortIndicator({ sortingState, className }), "data-testid": dataTestId, role: "separator", ...rest }));
251
212
  };
252
213
  const cvaSortIndicator = cvaMerge([
253
214
  "relative",
@@ -291,9 +252,8 @@ const cvaSortIndicator = cvaMerge([
291
252
  * @param {TableRootProps} props - The props for the TableRoot component
292
253
  * @returns {JSX.Element} TableRoot component
293
254
  */
294
- const TableRoot = (_a) => {
295
- var { dataTestId, className, children } = _a, rest = __rest(_a, ["dataTestId", "className", "children"]);
296
- return (jsx("table", Object.assign({ className: cvaTableRoot({ className }), "data-testid": dataTestId }, rest, { children: children })));
255
+ const TableRoot = ({ dataTestId, className, children, ...rest }) => {
256
+ return (jsx("table", { className: cvaTableRoot({ className }), "data-testid": dataTestId, ...rest, children: children }));
297
257
  };
298
258
  const cvaTableRoot = cvaMerge(["border-spacing-0", "min-w-full", "grid-rows-min-fr", "grid"]);
299
259
 
@@ -306,9 +266,9 @@ const cvaTagsCell = cvaMerge(["flex", "gap-2"]);
306
266
  * @returns {JSX.Element} TagsCell component
307
267
  */
308
268
  const TagsCell = ({ className, tags, dataTestId }) => {
309
- return (jsx("div", { className: cvaTagsCell({ className }), "data-testid": dataTestId, children: tags.map((tag, index) => (jsx(Tag, Object.assign({ color: "primary",
310
- key: index,
311
- dataTestId: `${dataTestId}-${index}` }, (typeof tag === "string" ? { children: tag } : tag))))) }));
269
+ return (jsx("div", { className: cvaTagsCell({ className }), "data-testid": dataTestId, children: tags.map((tag, index) => (jsx(Tag, { color: "primary",
270
+ dataTestId: `${dataTestId}-${index}`,
271
+ ...(typeof tag === "string" ? { children: tag } : tag) }, index))) }));
312
272
  };
313
273
 
314
274
  /**
@@ -321,9 +281,8 @@ const TagsCell = ({ className, tags, dataTestId }) => {
321
281
  * @param {TbodyProps} props - The props for the Tbody component
322
282
  * @returns {JSX.Element} Tbody component
323
283
  */
324
- const Tbody = (_a) => {
325
- var { dataTestId, className, children } = _a, rest = __rest(_a, ["dataTestId", "className", "children"]);
326
- return (jsx("tbody", Object.assign({ className: className, "data-testid": dataTestId }, rest, { children: children })));
284
+ const Tbody = ({ dataTestId, className, children, ...rest }) => {
285
+ return (jsx("tbody", { className: className, "data-testid": dataTestId, ...rest, children: children }));
327
286
  };
328
287
 
329
288
  /**
@@ -336,9 +295,8 @@ const Tbody = (_a) => {
336
295
  * @param {TdProps} props - The props for the Td component
337
296
  * @returns {JSX.Element} Td component
338
297
  */
339
- const Td = (_a) => {
340
- var { dataTestId, className, children } = _a, rest = __rest(_a, ["dataTestId", "className", "children"]);
341
- return (jsx("td", Object.assign({ className: cvaTd({ className }), "data-testid": dataTestId }, rest, { children: children })));
298
+ const Td = ({ dataTestId, className, children, ...rest }) => {
299
+ return (jsx("td", { className: cvaTd({ className }), "data-testid": dataTestId, ...rest, children: children }));
342
300
  };
343
301
  const cvaTd = cvaMerge(["overflow-hidden", "align-middle", "py-table-spacing", "px-2", "whitespace-nowrap"]);
344
302
 
@@ -370,9 +328,8 @@ const TextCell = ({ content = "", className, dataTestId }) => {
370
328
  * @param {TfootProps} props - The props for the Tfoot component
371
329
  * @returns {JSX.Element} Tfoot component
372
330
  */
373
- const Tfoot = (_a) => {
374
- var { dataTestId, className, children } = _a, rest = __rest(_a, ["dataTestId", "className", "children"]);
375
- return (jsx("tfoot", Object.assign({ className: className, "data-testid": dataTestId }, rest, { children: children })));
331
+ const Tfoot = ({ dataTestId, className, children, ...rest }) => {
332
+ return (jsx("tfoot", { className: className, "data-testid": dataTestId, ...rest, children: children }));
376
333
  };
377
334
 
378
335
  /**
@@ -385,15 +342,14 @@ const Tfoot = (_a) => {
385
342
  * @param {ThProps} props - The props for the Th component
386
343
  * @returns {JSX.Element} Th component
387
344
  */
388
- const Th = (_a) => {
389
- var { dataTestId, className, children, tooltipLabel } = _a, rest = __rest(_a, ["dataTestId", "className", "children", "tooltipLabel"]);
345
+ const Th = ({ dataTestId, className, children, tooltipLabel, ...rest }) => {
390
346
  const [showToolTip, setShowTooltipVisible] = useState(false);
391
347
  const [thWidth, setThWidth] = useState(0);
392
348
  const [childrenWidth, setChildrenWidth] = useState(0);
393
349
  useEffect(() => {
394
350
  setShowTooltipVisible(thWidth > childrenWidth);
395
351
  }, [thWidth, childrenWidth, tooltipLabel]);
396
- return (jsx("th", Object.assign({ className: cvaTh({ className }), "data-testid": dataTestId, ref: elementRef => setThWidth(elementRef ? elementRef.clientWidth : 0) }, rest, { children: tooltipLabel ? (jsx(Tooltip, { className: cvaTooltip(), disabled: showToolTip, label: tooltipLabel, placement: "bottom", children: jsx("div", { className: cvaChildrenContainer(), ref: elementRef => setChildrenWidth(elementRef ? elementRef.clientWidth : 0), children: children }) })) : (jsx("div", { className: cvaChildrenContainer(), ref: elementRef => setChildrenWidth(elementRef ? elementRef.clientWidth : 0), children: children })) })));
352
+ return (jsx("th", { className: cvaTh({ className }), "data-testid": dataTestId, ref: elementRef => setThWidth(elementRef ? elementRef.clientWidth : 0), ...rest, children: tooltipLabel ? (jsx(Tooltip, { className: cvaTooltip(), disabled: showToolTip, label: tooltipLabel, placement: "bottom", children: jsx("div", { className: cvaChildrenContainer(), ref: elementRef => setChildrenWidth(elementRef ? elementRef.clientWidth : 0), children: children }) })) : (jsx("div", { className: cvaChildrenContainer(), ref: elementRef => setChildrenWidth(elementRef ? elementRef.clientWidth : 0), children: children })) }));
397
353
  };
398
354
  const cvaTh = cvaMerge([
399
355
  "hover:bg-neutral-200",
@@ -416,9 +372,8 @@ const cvaChildrenContainer = cvaMerge(["max-w-full", "px-3", "py-table-spacing"]
416
372
  * @param {TheadProps} props - The props for the Thead component
417
373
  * @returns {JSX.Element} Thead component
418
374
  */
419
- const Thead = (_a) => {
420
- var { dataTestId, className, children, sticky = true } = _a, rest = __rest(_a, ["dataTestId", "className", "children", "sticky"]);
421
- return (jsx("thead", Object.assign({ className: cvaThead({ sticky, className }), "data-testid": dataTestId }, rest, { children: children })));
375
+ const Thead = ({ dataTestId, className, children, sticky = true, ...rest }) => {
376
+ return (jsx("thead", { className: cvaThead({ sticky, className }), "data-testid": dataTestId, ...rest, children: children }));
422
377
  };
423
378
  const cvaThead = cvaMerge(["bg-neutral-100", "text-left"], {
424
379
  variants: {
@@ -442,9 +397,8 @@ const cvaThead = cvaMerge(["bg-neutral-100", "text-left"], {
442
397
  * @param {TrProps} props - The props for the Tr component
443
398
  * @returns {JSX.Element} Tr component
444
399
  */
445
- const Tr = (_a) => {
446
- var { dataTestId, className, children, layout = "default" } = _a, rest = __rest(_a, ["dataTestId", "className", "children", "layout"]);
447
- return (jsx("tr", Object.assign({ className: cvaTr({ layout, className }), "data-testid": dataTestId, role: "row" }, rest, { children: children })));
400
+ const Tr = ({ dataTestId, className, children, layout = "default", ...rest }) => {
401
+ return (jsx("tr", { className: cvaTr({ layout, className }), "data-testid": dataTestId, role: "row", ...rest, children: children }));
448
402
  };
449
403
  const cvaTr = cvaMerge(["border-b", "border-neutral-300", "w-full", "h-max"], {
450
404
  variants: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table-base-components",
3
- "version": "0.0.386",
3
+ "version": "0.0.389",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -13,9 +13,10 @@
13
13
  "@trackunit/date-and-time-utils": "*",
14
14
  "@trackunit/shared-utils": "*",
15
15
  "@trackunit/ui-icons": "*",
16
- "react": "^18.2.0",
16
+ "react": "18.3.1",
17
17
  "@js-temporal/polyfill": "^0.4.4"
18
18
  },
19
19
  "module": "./index.esm.js",
20
- "main": "./index.cjs.js"
21
- }
20
+ "main": "./index.cjs.js",
21
+ "types": "./index.esm.d.ts"
22
+ }
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { TableRoot } from "./components/TableRoot";
4
3
  type Story = StoryObj<typeof TableRoot>;
5
4
  declare const meta: Meta<typeof TableRoot>;
6
5
  export default meta;
7
- export declare const packageName: () => JSX.Element;
6
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
8
7
  export declare const Default: Story;
@@ -12,4 +12,4 @@ export interface ButtonCellProps extends ButtonCommonProps {
12
12
  * @param {ButtonCellProps} props - The props for the ButtonCell component
13
13
  * @returns {JSX.Element} ButtonCell component
14
14
  */
15
- export declare const ButtonCell: ({ dataTestId, children, iconName, iconColor, variant, ...rest }: ButtonCellProps) => JSX.Element;
15
+ export declare const ButtonCell: ({ dataTestId, children, iconName, iconColor, variant, ...rest }: ButtonCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { ButtonCell } from "./ButtonCell";
4
3
  type Story = StoryObj<typeof ButtonCell>;
5
4
  declare const meta: Meta<typeof ButtonCell>;
6
5
  export default meta;
7
- export declare const packageName: () => JSX.Element;
6
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
8
7
  export declare const Default: Story;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CommonProps } from "@trackunit/react-components";
3
2
  export interface CheckboxCellProps extends CommonProps {
4
3
  checked: boolean;
@@ -10,4 +9,4 @@ export interface CheckboxCellProps extends CommonProps {
10
9
  * @param {CheckboxCellProps} props - The props for the CheckboxCell component
11
10
  * @returns {JSX.Element} CheckboxCell component
12
11
  */
13
- export declare const CheckboxCell: ({ checked, className, dataTestId }: CheckboxCellProps) => JSX.Element;
12
+ export declare const CheckboxCell: ({ checked, className, dataTestId }: CheckboxCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { CheckboxCell } from "./CheckboxCell";
4
3
  import "./CheckboxCell.variants";
5
4
  type Story = StoryObj<typeof CheckboxCell>;
6
5
  declare const meta: Meta<typeof CheckboxCell>;
7
6
  export default meta;
8
- export declare const packageName: () => JSX.Element;
7
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
9
8
  export declare const Default: Story;
10
- export declare const Variants: () => JSX.Element;
9
+ export declare const Variants: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TemporalFormat } from "@trackunit/date-and-time-utils";
3
2
  import { CommonProps } from "@trackunit/react-components";
4
3
  export interface DateTimeCellProps extends CommonProps {
@@ -37,7 +36,7 @@ export interface DateTimeCellProps extends CommonProps {
37
36
  * @param {DateTimeCellProps} props - The props for the DateTimeCell component
38
37
  * @returns {JSX.Element} DateTimeCell component
39
38
  */
40
- export declare const DateTimeCell: ({ format, timeZone, locale, date, withTimeSince, className, dataTestId, }: DateTimeCellProps) => JSX.Element | null;
39
+ export declare const DateTimeCell: ({ format, timeZone, locale, date, withTimeSince, className, dataTestId, }: DateTimeCellProps) => import("react/jsx-runtime").JSX.Element | null;
41
40
  export interface TimeSinceProps extends Pick<DateTimeCellProps, "date" | "timeZone" | "locale"> {
42
41
  date: Date;
43
42
  }
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { DateTimeCell } from "./DateTimeCell";
4
3
  import "./DateTimeCell.variants";
5
4
  type Story = StoryObj<typeof DateTimeCell>;
6
5
  declare const meta: Meta<typeof DateTimeCell>;
7
6
  export default meta;
8
- export declare const packageName: () => JSX.Element;
7
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
9
8
  export declare const Default: Story;
10
- export declare const Variants: () => JSX.Element;
9
+ export declare const Variants: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CommonProps } from "@trackunit/react-components";
3
2
  export interface ImageCellProps extends CommonProps {
4
3
  /**
@@ -28,4 +27,4 @@ export interface ImageCellProps extends CommonProps {
28
27
  * @param {ImageCellProps} props - The props for the Image component.
29
28
  * @returns {JSX.Element} The Image component.
30
29
  */
31
- export declare const ImageCell: ({ imageUrl, alt, width, height, dataTestId, ...rest }: ImageCellProps) => JSX.Element;
30
+ export declare const ImageCell: ({ imageUrl, alt, width, height, dataTestId, ...rest }: ImageCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  type Story = StoryObj<typeof Image>;
4
3
  declare const meta: Meta<typeof Image>;
5
4
  export default meta;
6
- export declare const packageName: () => JSX.Element;
5
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
7
6
  export declare const Default: Story;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IndicatorProps } from "@trackunit/react-components";
3
2
  export interface IndicatorCellProps extends IndicatorProps, React.HTMLAttributes<HTMLTableSectionElement> {
4
3
  /**
@@ -32,4 +31,4 @@ export interface IndicatorCellProps extends IndicatorProps, React.HTMLAttributes
32
31
  * @param {IndicatorCellProps} props - The props for the LinkCell component
33
32
  * @returns {JSX.Element} LinkCell component
34
33
  */
35
- export declare const IndicatorCell: ({ ...rest }: IndicatorCellProps) => JSX.Element;
34
+ export declare const IndicatorCell: ({ ...rest }: IndicatorCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { IndicatorCell } from "./IndicatorCell";
4
3
  type Story = StoryObj<typeof IndicatorCell>;
5
4
  declare const meta: Meta<typeof IndicatorCell>;
6
5
  export default meta;
7
- export declare const packageName: () => JSX.Element;
6
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
8
7
  export declare const Default: Story;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CommonProps } from "@trackunit/react-components";
3
2
  export interface LinkCellProps extends CommonProps, React.HTMLAttributes<HTMLTableSectionElement> {
4
3
  /**
@@ -24,4 +23,4 @@ export interface LinkCellProps extends CommonProps, React.HTMLAttributes<HTMLTab
24
23
  * @param {LinkCellProps} props - The props for the LinkCell component
25
24
  * @returns {JSX.Element} LinkCell component
26
25
  */
27
- export declare const LinkCell: ({ link, type, ...rest }: LinkCellProps) => JSX.Element;
26
+ export declare const LinkCell: ({ link, type, ...rest }: LinkCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { LinkCell } from "./LinkCell";
4
3
  type Story = StoryObj<typeof LinkCell>;
5
4
  declare const meta: Meta<typeof LinkCell>;
6
5
  export default meta;
7
- export declare const packageName: () => JSX.Element;
6
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
8
7
  export declare const Default: Story;
9
- export declare const Variants: () => JSX.Element;
8
+ export declare const Variants: () => import("react/jsx-runtime").JSX.Element;
@@ -14,4 +14,4 @@ export interface MultiValueTextCellProps extends CommonProps {
14
14
  * @param {MultiValueTextCellProps} props - The props for the MultiValueTextCell component
15
15
  * @returns {JSX.Element} MultiValueTextCell component
16
16
  */
17
- export declare const MultiValueTextCell: ({ content, count, countTooltip, icon, iconTooltip, dataTestId, className, }: MultiValueTextCellProps) => JSX.Element | null;
17
+ export declare const MultiValueTextCell: ({ content, count, countTooltip, icon, iconTooltip, dataTestId, className, }: MultiValueTextCellProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { MultiValueTextCell } from "./MultiValueTextCell";
4
3
  import "./MultiValueTextCell.variants";
5
4
  type Story = StoryObj<typeof MultiValueTextCell>;
6
5
  declare const meta: Meta<typeof MultiValueTextCell>;
7
6
  export default meta;
8
- export declare const packageName: () => JSX.Element;
7
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
9
8
  export declare const Default: Story;
10
9
  export declare const Example: Story;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { NoticeProps } from "@trackunit/react-components";
3
2
  export interface NoticeCellProps extends NoticeProps {
4
3
  }
@@ -8,4 +7,4 @@ export interface NoticeCellProps extends NoticeProps {
8
7
  * @param {NoticeCellProps} props - The props for the NoticeCell component
9
8
  * @returns {JSX.Element} NoticeCell component
10
9
  */
11
- export declare const NoticeCell: ({ ...rest }: NoticeCellProps) => JSX.Element;
10
+ export declare const NoticeCell: ({ ...rest }: NoticeCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { NoticeCell } from "./NoticeCell";
4
3
  type Story = StoryObj<typeof NoticeCell>;
5
4
  declare const meta: Meta<typeof NoticeCell>;
6
5
  export default meta;
7
- export declare const packageName: () => JSX.Element;
6
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
8
7
  export declare const Default: Story;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CommonProps } from "@trackunit/react-components";
3
2
  export interface NumberCellProps extends CommonProps {
4
3
  /**
@@ -25,4 +24,4 @@ export interface NumberCellProps extends CommonProps {
25
24
  * @param {NumberCellProps} props - The props for the NumberCell component.
26
25
  * @returns {JSX.Element} A React JSX element representing the NumberCell component.
27
26
  */
28
- export declare const NumberCell: ({ value, unit, className, dataTestId }: NumberCellProps) => JSX.Element;
27
+ export declare const NumberCell: ({ value, unit, className, dataTestId }: NumberCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { NumberCell } from "./NumberCell";
4
3
  import "./NumberCell.variants";
5
4
  type Story = StoryObj<typeof NumberCell>;
6
5
  declare const meta: Meta<typeof NumberCell>;
7
6
  export default meta;
8
- export declare const packageName: () => JSX.Element;
7
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
9
8
  export declare const Default: Story;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Temporal } from "@js-temporal/polyfill";
3
2
  import { CommonProps } from "@trackunit/react-components";
4
3
  export interface PlainDateCellProps extends CommonProps {
@@ -26,7 +25,7 @@ export interface PlainDateCellProps extends CommonProps {
26
25
  * @param {PlainDateCellProps} props - The props for the PlainDateCell component
27
26
  * @returns {JSX.Element} PlainDateCell component
28
27
  */
29
- export declare const PlainDateCell: ({ locale, date, withDaysSince, className, dataTestId }: PlainDateCellProps) => JSX.Element | null;
28
+ export declare const PlainDateCell: ({ locale, date, withDaysSince, className, dataTestId }: PlainDateCellProps) => import("react/jsx-runtime").JSX.Element | null;
30
29
  export interface DaysSinceProps extends Pick<PlainDateCellProps, "date" | "locale"> {
31
30
  date: Temporal.PlainDate;
32
31
  }
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { PlainDateCell } from "./PlainDateCell";
4
3
  import "./PlainDateCell.variants";
5
4
  type Story = StoryObj<typeof PlainDateCell>;
6
5
  declare const meta: Meta<typeof PlainDateCell>;
7
6
  export default meta;
8
- export declare const packageName: () => JSX.Element;
7
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
9
8
  export declare const Default: Story;
10
- export declare const Variants: () => JSX.Element;
9
+ export declare const Variants: () => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { SortIndicator } from "./SortIndicator";
4
3
  type Story = StoryObj<typeof SortIndicator>;
5
4
  declare const meta: Meta<typeof SortIndicator>;
6
5
  export default meta;
7
- export declare const packageName: () => JSX.Element;
6
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
8
7
  export declare const Default: Story;
@@ -24,4 +24,4 @@ export interface TableRootProps extends CommonProps, React.HTMLAttributes<HTMLTa
24
24
  * @param {TableRootProps} props - The props for the TableRoot component
25
25
  * @returns {JSX.Element} TableRoot component
26
26
  */
27
- export declare const TableRoot: ({ dataTestId, className, children, ...rest }: TableRootProps) => JSX.Element;
27
+ export declare const TableRoot: ({ dataTestId, className, children, ...rest }: TableRootProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CommonProps, TagProps } from "@trackunit/react-components";
3
2
  export interface TagsCellProps extends CommonProps, React.HTMLAttributes<HTMLTableSectionElement> {
4
3
  /**
@@ -20,4 +19,4 @@ export interface TagsCellProps extends CommonProps, React.HTMLAttributes<HTMLTab
20
19
  * @param {TagsCellProps} props - The props for the TagsCell component
21
20
  * @returns {JSX.Element} TagsCell component
22
21
  */
23
- export declare const TagsCell: ({ className, tags, dataTestId }: TagsCellProps) => JSX.Element;
22
+ export declare const TagsCell: ({ className, tags, dataTestId }: TagsCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { TagsCell } from "./TagsCell";
4
3
  type Story = StoryObj<typeof TagsCell>;
5
4
  declare const meta: Meta<typeof TagsCell>;
6
5
  export default meta;
7
- export declare const packageName: () => JSX.Element;
6
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
8
7
  export declare const Default: Story;
@@ -24,4 +24,4 @@ export interface TbodyProps extends CommonProps, React.HTMLAttributes<HTMLTableS
24
24
  * @param {TbodyProps} props - The props for the Tbody component
25
25
  * @returns {JSX.Element} Tbody component
26
26
  */
27
- export declare const Tbody: ({ dataTestId, className, children, ...rest }: TbodyProps) => JSX.Element;
27
+ export declare const Tbody: ({ dataTestId, className, children, ...rest }: TbodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -24,4 +24,4 @@ export interface TdProps extends CommonProps, React.HTMLAttributes<HTMLTableCell
24
24
  * @param {TdProps} props - The props for the Td component
25
25
  * @returns {JSX.Element} Td component
26
26
  */
27
- export declare const Td: ({ dataTestId, className, children, ...rest }: TdProps) => JSX.Element;
27
+ export declare const Td: ({ dataTestId, className, children, ...rest }: TdProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CommonProps } from "@trackunit/react-components";
3
2
  export interface TextCellProps extends CommonProps {
4
3
  content?: string;
@@ -10,4 +9,4 @@ export interface TextCellProps extends CommonProps {
10
9
  * @param {TextCellProps} props - The props for the TextCell component
11
10
  * @returns {JSX.Element} TextCell component
12
11
  */
13
- export declare const TextCell: ({ content, className, dataTestId }: TextCellProps) => JSX.Element;
12
+ export declare const TextCell: ({ content, className, dataTestId }: TextCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { TextCell } from "./TextCell";
4
3
  import "./TextCell.variants";
5
4
  type Story = StoryObj<typeof TextCell>;
6
5
  declare const meta: Meta<typeof TextCell>;
7
6
  export default meta;
8
- export declare const packageName: () => JSX.Element;
7
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
9
8
  export declare const Default: Story;
10
9
  export declare const Example: Story;
@@ -24,4 +24,4 @@ export interface TfootProps extends CommonProps, React.HTMLAttributes<HTMLTableS
24
24
  * @param {TfootProps} props - The props for the Tfoot component
25
25
  * @returns {JSX.Element} Tfoot component
26
26
  */
27
- export declare const Tfoot: ({ dataTestId, className, children, ...rest }: TfootProps) => JSX.Element;
27
+ export declare const Tfoot: ({ dataTestId, className, children, ...rest }: TfootProps) => import("react/jsx-runtime").JSX.Element;
@@ -28,4 +28,4 @@ export interface ThProps extends CommonProps, React.HTMLAttributes<HTMLTableCell
28
28
  * @param {ThProps} props - The props for the Th component
29
29
  * @returns {JSX.Element} Th component
30
30
  */
31
- export declare const Th: ({ dataTestId, className, children, tooltipLabel, ...rest }: ThProps) => JSX.Element;
31
+ export declare const Th: ({ dataTestId, className, children, tooltipLabel, ...rest }: ThProps) => import("react/jsx-runtime").JSX.Element;
@@ -31,4 +31,4 @@ export interface TheadProps extends CommonProps, React.HTMLAttributes<HTMLTableS
31
31
  * @param {TheadProps} props - The props for the Thead component
32
32
  * @returns {JSX.Element} Thead component
33
33
  */
34
- export declare const Thead: ({ dataTestId, className, children, sticky, ...rest }: TheadProps) => JSX.Element;
34
+ export declare const Thead: ({ dataTestId, className, children, sticky, ...rest }: TheadProps) => import("react/jsx-runtime").JSX.Element;
@@ -32,4 +32,4 @@ export interface TrProps extends CommonProps, React.HTMLAttributes<HTMLTableRowE
32
32
  * @param {TrProps} props - The props for the Tr component
33
33
  * @returns {JSX.Element} Tr component
34
34
  */
35
- export declare const Tr: ({ dataTestId, className, children, layout, ...rest }: TrProps) => JSX.Element;
35
+ export declare const Tr: ({ dataTestId, className, children, layout, ...rest }: TrProps) => import("react/jsx-runtime").JSX.Element;