@trackunit/react-table-base-components 1.7.118 → 1.7.120

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 (40) hide show
  1. package/index.cjs.js +29 -29
  2. package/index.esm.js +29 -29
  3. package/package.json +7 -7
  4. package/src/BaseTable.stories.d.ts +1 -1
  5. package/src/components/ButtonCell/ButtonCell.d.ts +1 -1
  6. package/src/components/ButtonCell/ButtonCell.stories.d.ts +1 -1
  7. package/src/components/CheckboxCell/CheckboxCell.d.ts +1 -1
  8. package/src/components/CheckboxCell/CheckboxCell.stories.d.ts +1 -1
  9. package/src/components/DateTimeCell/DateTimeCell.d.ts +1 -1
  10. package/src/components/DateTimeCell/DateTimeCell.stories.d.ts +1 -1
  11. package/src/components/HighlightCell/HighlightCell.d.ts +2 -2
  12. package/src/components/HighlightCell/HighlightCell.stories.d.ts +1 -1
  13. package/src/components/IdentityCell/IdentityCell.d.ts +2 -2
  14. package/src/components/IdentityCell/IdentityCell.stories.d.ts +1 -1
  15. package/src/components/ImageCell/ImageCell.d.ts +2 -2
  16. package/src/components/ImageCell/ImageCell.stories.d.ts +1 -1
  17. package/src/components/LinkCell/LinkCell.d.ts +1 -1
  18. package/src/components/MultiRowTableCell/MultiRowTableCell.d.ts +1 -1
  19. package/src/components/MultiRowTableCell/MultiRowTableCell.stories.d.ts +1 -1
  20. package/src/components/MultiValueTextCell/ListTooltip.d.ts +2 -2
  21. package/src/components/MultiValueTextCell/MultiValueTextCell.d.ts +1 -1
  22. package/src/components/MultiValueTextCell/MultiValueTextCell.stories.d.ts +2 -2
  23. package/src/components/NumberCell/NumberCell.d.ts +2 -2
  24. package/src/components/NumberCell/NumberCell.stories.d.ts +1 -1
  25. package/src/components/PlainDateCell/PlainDateCell.d.ts +1 -1
  26. package/src/components/PlainDateCell/PlainDateCell.stories.d.ts +1 -1
  27. package/src/components/ResizeHandle.d.ts +2 -2
  28. package/src/components/SortIndicator.d.ts +3 -3
  29. package/src/components/SortIndicator.stories.d.ts +1 -1
  30. package/src/components/TableRoot.d.ts +2 -2
  31. package/src/components/TagsCell/TagsCell.d.ts +2 -2
  32. package/src/components/TagsCell/TagsCell.stories.d.ts +1 -1
  33. package/src/components/Tbody.d.ts +2 -2
  34. package/src/components/Td.d.ts +2 -2
  35. package/src/components/TextCell/TextCell.d.ts +1 -1
  36. package/src/components/TextCell/TextCell.stories.d.ts +1 -1
  37. package/src/components/Tfoot.d.ts +2 -2
  38. package/src/components/Th.d.ts +2 -2
  39. package/src/components/Thead.d.ts +2 -2
  40. package/src/components/Tr.d.ts +2 -2
package/index.cjs.js CHANGED
@@ -16,8 +16,8 @@ var sharedUtils = require('@trackunit/shared-utils');
16
16
  * @param {ButtonCellProps} props - The props for the ButtonCell component
17
17
  * @returns {ReactElement} ButtonCell component
18
18
  */
19
- const ButtonCell = ({ children, className, dataTestId, iconColor = "primary", iconName, variant = "ghost-neutral", ...rest }) => {
20
- return (jsxRuntime.jsx(reactComponents.Button, { prefix: iconName ? jsxRuntime.jsx(reactComponents.Icon, { color: iconColor, name: iconName, size: "small", type: "solid" }) : null, ...rest, className: tailwindMerge.twMerge("px-2 text-sm font-normal text-black hover:text-black", className), dataTestId: `button-cell-${dataTestId}`, variant: variant, children: children }));
19
+ const ButtonCell = ({ children, className, "data-testid": dataTestId, iconColor = "primary", iconName, variant = "ghost-neutral", ...rest }) => {
20
+ return (jsxRuntime.jsx(reactComponents.Button, { prefix: iconName ? jsxRuntime.jsx(reactComponents.Icon, { color: iconColor, name: iconName, size: "small", type: "solid" }) : null, ...rest, className: tailwindMerge.twMerge("px-2 text-sm font-normal text-black hover:text-black", className), "data-testid": `button-cell-${dataTestId}`, variant: variant, children: children }));
21
21
  };
22
22
 
23
23
  const cvaCheckboxCell = cssClassVarianceUtilities.cvaMerge([""]);
@@ -29,7 +29,7 @@ const cvaCheckboxCell = cssClassVarianceUtilities.cvaMerge([""]);
29
29
  * @param {CheckboxCellProps} props - The props for the CheckboxCell component
30
30
  * @returns {ReactElement} CheckboxCell component
31
31
  */
32
- const CheckboxCell = ({ checked, className, dataTestId }) => {
32
+ const CheckboxCell = ({ checked, className, "data-testid": dataTestId }) => {
33
33
  return (jsxRuntime.jsx("div", { className: cvaCheckboxCell({ className }), "data-testid": dataTestId, children: jsxRuntime.jsx(reactFormComponents.Checkbox, { checked: checked, readOnly: true }) }));
34
34
  };
35
35
 
@@ -43,7 +43,7 @@ const cvaDateTimeSince$1 = cssClassVarianceUtilities.cvaMerge(["slashed-zero", "
43
43
  * @param {DateTimeCellProps} props - The props for the DateTimeCell component
44
44
  * @returns {ReactElement} DateTimeCell component
45
45
  */
46
- const DateTimeCell = ({ format, timeZone, locale, date, withTimeSince = true, className, dataTestId, }) => {
46
+ const DateTimeCell = ({ format, timeZone, locale, date, withTimeSince = true, className, "data-testid": dataTestId, }) => {
47
47
  if (!date) {
48
48
  return null;
49
49
  }
@@ -68,10 +68,10 @@ const cvaHighlightCell = cssClassVarianceUtilities.cvaMerge(["flex", "gap-2"]);
68
68
  * @param {HighlightCellProps} props - The props for the HighlightCell component
69
69
  * @returns {ReactElement} HighlightCell component
70
70
  */
71
- const HighlightCell = ({ className, highlights, dataTestId }) => {
71
+ const HighlightCell = ({ className, highlights, "data-testid": dataTestId }) => {
72
72
  return (jsxRuntime.jsx("div", { className: cvaHighlightCell({ className }), "data-testid": dataTestId, children: highlights.map((highlight, index) => (jsxRuntime.jsx(reactComponents.Highlight, { color: "warning",
73
73
  size: "medium",
74
- dataTestId: `${dataTestId}-${index}`,
74
+ "data-testid": `${dataTestId}-${index}`,
75
75
  ...(typeof highlight === "string" ? { children: highlight } : highlight) }, index))) }));
76
76
  };
77
77
 
@@ -93,14 +93,14 @@ const cvaIdentityCell = cssClassVarianceUtilities.cvaMerge(["grid", "items-cente
93
93
  * @param {IdentityCellProps} props - The props for the LinkCell component
94
94
  * @returns {ReactElement} LinkCell component
95
95
  */
96
- const IdentityCell = ({ link, className, dataTestId, title, details = [], thumbnail, }) => {
96
+ const IdentityCell = ({ link, className, "data-testid": dataTestId, title, details = [], thumbnail, }) => {
97
97
  const [href, setHref] = react.useState(undefined);
98
98
  react.useEffect(() => {
99
99
  if (link) {
100
100
  link.href().then(setHref);
101
101
  }
102
102
  }, [link]);
103
- return (jsxRuntime.jsxs("div", { className: cvaIdentityCell({ className, hasThumbnail: !!thumbnail }), "data-testid": dataTestId, children: [thumbnail ? (jsxRuntime.jsx("div", { className: "mr-1 flex h-8 w-8 items-center justify-center overflow-hidden rounded-md", children: thumbnail })) : null, jsxRuntime.jsxs("div", { className: "grid grid-rows-[min-content_auto] items-center text-sm", children: [jsxRuntime.jsx("div", { className: "gap-responsive-space-sm flex w-full min-w-0 items-center truncate text-sm", children: jsxRuntime.jsx(reactComponents.Heading, { className: "truncate text-sm", dataTestId: dataTestId ? `${dataTestId}-name` : undefined, variant: "tertiary", children: !link ? (title) : (jsxRuntime.jsx(reactComponents.ExternalLink, { color: "neutral", href: href ?? "", onClick: async (e) => {
103
+ return (jsxRuntime.jsxs("div", { className: cvaIdentityCell({ className, hasThumbnail: !!thumbnail }), "data-testid": dataTestId, children: [thumbnail ? (jsxRuntime.jsx("div", { className: "mr-1 flex h-8 w-8 items-center justify-center overflow-hidden rounded-md", children: thumbnail })) : null, jsxRuntime.jsxs("div", { className: "grid grid-rows-[min-content_auto] items-center text-sm", children: [jsxRuntime.jsx("div", { className: "gap-responsive-space-sm flex w-full min-w-0 items-center truncate text-sm", children: jsxRuntime.jsx(reactComponents.Heading, { className: "truncate text-sm", "data-testid": dataTestId ? `${dataTestId}-name` : undefined, variant: "tertiary", children: !link ? (title) : (jsxRuntime.jsx(reactComponents.ExternalLink, { color: "neutral", href: href ?? "", onClick: async (e) => {
104
104
  // Allow Cmd/Ctrl+Click, Shift+Click, or middle-click to open in new tab
105
105
  const hasModifierKey = e.ctrlKey || e.metaKey || e.shiftKey;
106
106
  const isMiddleClick = e.button === 1;
@@ -120,7 +120,7 @@ const IdentityCell = ({ link, className, dataTestId, title, details = [], thumbn
120
120
  * @param {ImageCellProps} props - The props for the Image component.
121
121
  * @returns {ReactElement} The Image component.
122
122
  */
123
- const ImageCell = ({ imageUrl, alt = "", width = 100, height = 100, dataTestId, ...rest }) => {
123
+ const ImageCell = ({ imageUrl, alt = "", width = 100, height = 100, "data-testid": dataTestId, ...rest }) => {
124
124
  return jsxRuntime.jsx("img", { alt: alt, "data-testid": dataTestId, height: height, src: imageUrl, width: width, ...rest });
125
125
  };
126
126
 
@@ -161,7 +161,7 @@ const cvaSecondaryRowText = cssClassVarianceUtilities.cvaMerge(["overflow-hidden
161
161
  * @param {MultiRowTableCellProps} props - The props for the MultiRowTableCell component
162
162
  * @returns {ReactElement} MultiRowTableCell component
163
163
  */
164
- const MultiRowTableCell = ({ main, secondary, dataTestId, className }) => {
164
+ const MultiRowTableCell = ({ main, secondary, "data-testid": dataTestId, className, }) => {
165
165
  return (jsxRuntime.jsx("div", { className: cvaMultiRowTableCell({ className }), children: jsxRuntime.jsxs("section", { className: cvaMultiRowTableCellSection(), "data-testid": dataTestId, children: [typeof main === "string" ? jsxRuntime.jsx("div", { className: cvaMainRowText(), children: main }) : main, secondary && typeof secondary === "string" ? (jsxRuntime.jsx("div", { className: cvaSecondaryRowText(), children: secondary })) : (secondary)] }) }));
166
166
  };
167
167
 
@@ -174,7 +174,7 @@ const MultiRowTableCell = ({ main, secondary, dataTestId, className }) => {
174
174
  * @param {ListTooltipProps<TItem>} props Component props.
175
175
  * @returns {ReactNode} Tooltip list markup.
176
176
  */
177
- const ListTooltip = ({ items, dataTestId, getLabel, getKey, loading, }) => {
177
+ const ListTooltip = ({ items, "data-testid": dataTestId, getLabel, getKey, loading, }) => {
178
178
  const toDisplay = (item, index) => {
179
179
  if (getLabel) {
180
180
  return getLabel(item, index);
@@ -225,12 +225,12 @@ const cvaMultiValueTextCellTooltip = cssClassVarianceUtilities.cvaMerge(["whites
225
225
  * @param {MultiValueTextCellProps} props - The props for the MultiValueTextCell component
226
226
  * @returns {ReactElement} MultiValueTextCell component
227
227
  */
228
- const MultiValueTextCell = ({ content, count, countTooltip, icon, iconTooltip, dataTestId, className, onMouseEnter, }) => {
228
+ const MultiValueTextCell = ({ content, count, countTooltip, icon, iconTooltip, "data-testid": dataTestId, className, onMouseEnter, }) => {
229
229
  const [isTooltipVisible, setIsTooltipVisible] = react.useState(false);
230
230
  const updateTooltipVisibility = (element) => {
231
231
  setIsTooltipVisible(element ? element.scrollWidth > element.clientWidth : false);
232
232
  };
233
- return count && count > 0 ? (jsxRuntime.jsxs("div", { className: cvaMultiValueTextCellWrapper({ className }), "data-testid": dataTestId, children: [icon ? (jsxRuntime.jsx(reactComponents.Tooltip, { className: "inline-flex items-center", dataTestId: dataTestId ? `${dataTestId}-icon-tooltip` : undefined, 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", dataTestId: dataTestId ? `${dataTestId}-content-tooltip` : undefined, disabled: !isTooltipVisible, label: content ?? "", placement: "bottom", children: content ?? "" }) }), count > 1 ? (jsxRuntime.jsx(reactComponents.Tooltip, { className: "inline", dataTestId: dataTestId ? `${dataTestId}-count-tooltip` : undefined, disabled: !countTooltip, label: countTooltip ?? "", placement: "bottom", children: jsxRuntime.jsxs(reactComponents.Tag, { color: "neutral", onMouseEnter: onMouseEnter, size: "small", children: ["+", count - 1] }) })) : null] })) : null;
233
+ return count && count > 0 ? (jsxRuntime.jsxs("div", { className: cvaMultiValueTextCellWrapper({ className }), "data-testid": dataTestId, children: [icon ? (jsxRuntime.jsx(reactComponents.Tooltip, { className: "inline-flex items-center", "data-testid": dataTestId ? `${dataTestId}-icon-tooltip` : undefined, 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", "data-testid": dataTestId ? `${dataTestId}-content-tooltip` : undefined, disabled: !isTooltipVisible, label: content ?? "", placement: "bottom", children: content ?? "" }) }), count > 1 ? (jsxRuntime.jsx(reactComponents.Tooltip, { className: "inline", "data-testid": dataTestId ? `${dataTestId}-count-tooltip` : undefined, disabled: !countTooltip, label: countTooltip ?? "", placement: "bottom", children: jsxRuntime.jsxs(reactComponents.Tag, { color: "neutral", onMouseEnter: onMouseEnter, size: "small", children: ["+", count - 1] }) })) : null] })) : null;
234
234
  };
235
235
 
236
236
  /**
@@ -251,7 +251,7 @@ const cvaNumberCell = cssClassVarianceUtilities.cvaMerge(["flex", "gap-1", "slas
251
251
  * @param {NumberCellProps} props - The props for the NumberCell component.
252
252
  * @returns {ReactElement} A React JSX element representing the NumberCell component.
253
253
  */
254
- const NumberCell = ({ value = "", unit, className, dataTestId }) => {
254
+ const NumberCell = ({ value = "", unit, className, "data-testid": dataTestId }) => {
255
255
  return (jsxRuntime.jsxs("div", { className: cvaNumberCell({ className }), "data-testid": dataTestId, children: [jsxRuntime.jsx("span", { children: value }), value && unit ? jsxRuntime.jsx("span", { children: unit }) : null] }));
256
256
  };
257
257
 
@@ -265,7 +265,7 @@ const cvaDateTimeSince = cssClassVarianceUtilities.cvaMerge(["slashed-zero", "te
265
265
  * @param {PlainDateCellProps} props - The props for the PlainDateCell component
266
266
  * @returns {ReactElement} PlainDateCell component
267
267
  */
268
- const PlainDateCell = ({ locale, date, withDaysSince = true, className, dataTestId }) => {
268
+ const PlainDateCell = ({ locale, date, withDaysSince = true, className, "data-testid": dataTestId, }) => {
269
269
  if (!date) {
270
270
  return null;
271
271
  }
@@ -291,11 +291,11 @@ const DaysSince = ({ date, locale }) => {
291
291
  *
292
292
  * @param {ResizeHandelProps} props - Props for the resizable handle.
293
293
  * @param {boolean} [props.isResizing=false] - Indicates whether the handle is in a resizing state.
294
- * @param {string} [props.dataTestId] - A data-testid attribute for testing purposes.
294
+ * @param {string} [props."data-testid"] - A data-testid attribute for testing purposes.
295
295
  * @param {string} [props.className] - Additional CSS classes to apply to the handle.
296
296
  * @returns {ReactElement} A React element representing the resizable handle.
297
297
  */
298
- const ResizeHandle = ({ isResizing = false, dataTestId, onMouseDown: onMouseDownHandler, className, ...rest }) => {
298
+ const ResizeHandle = ({ isResizing = false, "data-testid": dataTestId, onMouseDown: onMouseDownHandler, className, ...rest }) => {
299
299
  const onMouseDown = (event) => {
300
300
  const resizeCursorClass = "cursor-col-resize";
301
301
  document.addEventListener("mouseup", () => {
@@ -388,11 +388,11 @@ const IconWithLoader = ({ action, size }) => {
388
388
  *
389
389
  * @param {object} props - Props for the sorting indicator.
390
390
  * @param {boolean} [props.sortingState=false] - Indicates the sorting state (ascending/descending).
391
- * @param {string} [props.dataTestId] - A data-testid attribute for testing purposes.
391
+ * @param {string} [props."data-testid"] - A data-testid attribute for testing purposes.
392
392
  * @param {string} [props.className] - Additional CSS classes to apply to the sorting indicator.
393
393
  * @returns {ReactElement} A React element representing the sorting indicator.
394
394
  */
395
- const SortIndicator = ({ sortingState = false, dataTestId, className, ...rest }) => {
395
+ const SortIndicator = ({ sortingState = false, "data-testid": dataTestId, className, ...rest }) => {
396
396
  return (jsxRuntime.jsx("div", { className: cvaSortIndicator({ sortingState, className }), "data-testid": dataTestId, role: "separator", ...rest }));
397
397
  };
398
398
  const cvaSortIndicator = cssClassVarianceUtilities.cvaMerge([
@@ -436,7 +436,7 @@ const cvaSortIndicator = cssClassVarianceUtilities.cvaMerge([
436
436
  * @param {TableRootProps} props - The props for the TableRoot component
437
437
  * @returns {ReactElement} TableRoot component
438
438
  */
439
- const TableRoot = ({ dataTestId, className, children, ...rest }) => {
439
+ const TableRoot = ({ "data-testid": dataTestId, className, children, ...rest }) => {
440
440
  return (jsxRuntime.jsx("table", { className: cvaTableRoot({ className }), "data-testid": dataTestId, ...rest, children: children }));
441
441
  };
442
442
  const cvaTableRoot = cssClassVarianceUtilities.cvaMerge(["border-spacing-0", "min-w-full", "border-collapse", "grid-rows-min-fr", "grid"]);
@@ -449,9 +449,9 @@ const cvaTagsCell = cssClassVarianceUtilities.cvaMerge(["flex", "gap-2"]);
449
449
  * @param {TagsCellProps} props - The props for the TagsCell component
450
450
  * @returns {ReactElement} TagsCell component
451
451
  */
452
- const TagsCell = ({ className, tags, dataTestId }) => {
452
+ const TagsCell = ({ className, tags, "data-testid": dataTestId }) => {
453
453
  return (jsxRuntime.jsx("div", { className: cvaTagsCell({ className }), "data-testid": dataTestId, children: tags.map((tag, index) => (jsxRuntime.jsx(reactComponents.Tag, { color: "primary",
454
- dataTestId: `${dataTestId}-${index}`,
454
+ "data-testid": `${dataTestId}-${index}`,
455
455
  ...(typeof tag === "string" ? { children: tag } : tag) }, index))) }));
456
456
  };
457
457
 
@@ -465,7 +465,7 @@ const TagsCell = ({ className, tags, dataTestId }) => {
465
465
  * @param {TbodyProps} props - The props for the Tbody component
466
466
  * @returns {ReactElement} Tbody component
467
467
  */
468
- const Tbody = ({ dataTestId, className, children, ...rest }) => {
468
+ const Tbody = ({ "data-testid": dataTestId, className, children, ...rest }) => {
469
469
  return (jsxRuntime.jsx("tbody", { className: className, "data-testid": dataTestId, ...rest, children: children }));
470
470
  };
471
471
 
@@ -479,7 +479,7 @@ const Tbody = ({ dataTestId, className, children, ...rest }) => {
479
479
  * @param {TdProps} props - The props for the Td component
480
480
  * @returns {ReactElement} Td component
481
481
  */
482
- const Td = ({ dataTestId, className, children, ...rest }) => {
482
+ const Td = ({ "data-testid": dataTestId, className, children, ...rest }) => {
483
483
  return (jsxRuntime.jsx("td", { className: cvaTd({ className }), "data-testid": dataTestId, ...rest, children: Array.isArray(children)
484
484
  ? children
485
485
  .filter(Boolean)
@@ -507,7 +507,7 @@ const cvaTextCellTooltip = cssClassVarianceUtilities.cvaMerge(["grid"]);
507
507
  * @param {TextCellProps} props - The props for the TextCell component
508
508
  * @returns {ReactElement} TextCell component
509
509
  */
510
- const TextCell = ({ content = "", className, dataTestId }) => {
510
+ const TextCell = ({ content = "", className, "data-testid": dataTestId }) => {
511
511
  const [isTooltipVisible, setIsTooltipVisible] = react.useState(false);
512
512
  const updateTooltipVisibility = (element) => {
513
513
  setIsTooltipVisible(element ? element.scrollWidth > element.clientWidth : false);
@@ -525,7 +525,7 @@ const TextCell = ({ content = "", className, dataTestId }) => {
525
525
  * @param {TfootProps} props - The props for the Tfoot component
526
526
  * @returns {ReactElement} Tfoot component
527
527
  */
528
- const Tfoot = ({ dataTestId, className, children, ...rest }) => {
528
+ const Tfoot = ({ "data-testid": dataTestId, className, children, ...rest }) => {
529
529
  return (jsxRuntime.jsx("tfoot", { className: className, "data-testid": dataTestId, ...rest, children: children }));
530
530
  };
531
531
 
@@ -539,7 +539,7 @@ const Tfoot = ({ dataTestId, className, children, ...rest }) => {
539
539
  * @param {ThProps} props - The props for the Th component
540
540
  * @returns {ReactElement} Th component
541
541
  */
542
- const Th = ({ dataTestId, className, children, ...rest }) => {
542
+ const Th = ({ "data-testid": dataTestId, className, children, ...rest }) => {
543
543
  return (jsxRuntime.jsx("th", { className: cvaTh({ className }), "data-testid": dataTestId, ...rest, children: jsxRuntime.jsx("div", { className: cvaChildrenContainer(), children: Array.isArray(children)
544
544
  ? children
545
545
  .filter(Boolean)
@@ -580,7 +580,7 @@ const cvaChildrenContainer = cssClassVarianceUtilities.cvaMerge([
580
580
  * @param {TheadProps} props - The props for the Thead component
581
581
  * @returns {ReactElement} Thead component
582
582
  */
583
- const Thead = ({ dataTestId, className, children, sticky = true, ...rest }) => {
583
+ const Thead = ({ "data-testid": dataTestId, className, children, sticky = true, ...rest }) => {
584
584
  return (jsxRuntime.jsx("thead", { className: cvaThead({ sticky, className }), "data-testid": dataTestId, ...rest, children: children }));
585
585
  };
586
586
  const cvaThead = cssClassVarianceUtilities.cvaMerge(["bg-neutral-100", "text-left"], {
@@ -605,7 +605,7 @@ const cvaThead = cssClassVarianceUtilities.cvaMerge(["bg-neutral-100", "text-lef
605
605
  * @param {TrProps} props - The props for the Tr component
606
606
  * @returns {ReactElement} Tr component
607
607
  */
608
- const Tr = ({ dataTestId, className, children, layout = "default", ...rest }) => {
608
+ const Tr = ({ "data-testid": dataTestId, className, children, layout = "default", ...rest }) => {
609
609
  return (jsxRuntime.jsx("tr", { className: cvaTr({ layout, className }), "data-testid": dataTestId, role: "row", ...rest, children: children }));
610
610
  };
611
611
  const cvaTr = cssClassVarianceUtilities.cvaMerge(["w-full", "h-max", "border-b", "border-neutral-200"], {
package/index.esm.js CHANGED
@@ -14,8 +14,8 @@ import { DateTimeFormat } from '@trackunit/shared-utils';
14
14
  * @param {ButtonCellProps} props - The props for the ButtonCell component
15
15
  * @returns {ReactElement} ButtonCell component
16
16
  */
17
- const ButtonCell = ({ children, className, dataTestId, iconColor = "primary", iconName, variant = "ghost-neutral", ...rest }) => {
18
- return (jsx(Button, { prefix: iconName ? jsx(Icon, { color: iconColor, name: iconName, size: "small", type: "solid" }) : null, ...rest, className: twMerge("px-2 text-sm font-normal text-black hover:text-black", className), dataTestId: `button-cell-${dataTestId}`, variant: variant, children: children }));
17
+ const ButtonCell = ({ children, className, "data-testid": dataTestId, iconColor = "primary", iconName, variant = "ghost-neutral", ...rest }) => {
18
+ return (jsx(Button, { prefix: iconName ? jsx(Icon, { color: iconColor, name: iconName, size: "small", type: "solid" }) : null, ...rest, className: twMerge("px-2 text-sm font-normal text-black hover:text-black", className), "data-testid": `button-cell-${dataTestId}`, variant: variant, children: children }));
19
19
  };
20
20
 
21
21
  const cvaCheckboxCell = cvaMerge([""]);
@@ -27,7 +27,7 @@ const cvaCheckboxCell = cvaMerge([""]);
27
27
  * @param {CheckboxCellProps} props - The props for the CheckboxCell component
28
28
  * @returns {ReactElement} CheckboxCell component
29
29
  */
30
- const CheckboxCell = ({ checked, className, dataTestId }) => {
30
+ const CheckboxCell = ({ checked, className, "data-testid": dataTestId }) => {
31
31
  return (jsx("div", { className: cvaCheckboxCell({ className }), "data-testid": dataTestId, children: jsx(Checkbox, { checked: checked, readOnly: true }) }));
32
32
  };
33
33
 
@@ -41,7 +41,7 @@ const cvaDateTimeSince$1 = cvaMerge(["slashed-zero", "text-neutral-500", "text-x
41
41
  * @param {DateTimeCellProps} props - The props for the DateTimeCell component
42
42
  * @returns {ReactElement} DateTimeCell component
43
43
  */
44
- const DateTimeCell = ({ format, timeZone, locale, date, withTimeSince = true, className, dataTestId, }) => {
44
+ const DateTimeCell = ({ format, timeZone, locale, date, withTimeSince = true, className, "data-testid": dataTestId, }) => {
45
45
  if (!date) {
46
46
  return null;
47
47
  }
@@ -66,10 +66,10 @@ const cvaHighlightCell = cvaMerge(["flex", "gap-2"]);
66
66
  * @param {HighlightCellProps} props - The props for the HighlightCell component
67
67
  * @returns {ReactElement} HighlightCell component
68
68
  */
69
- const HighlightCell = ({ className, highlights, dataTestId }) => {
69
+ const HighlightCell = ({ className, highlights, "data-testid": dataTestId }) => {
70
70
  return (jsx("div", { className: cvaHighlightCell({ className }), "data-testid": dataTestId, children: highlights.map((highlight, index) => (jsx(Highlight, { color: "warning",
71
71
  size: "medium",
72
- dataTestId: `${dataTestId}-${index}`,
72
+ "data-testid": `${dataTestId}-${index}`,
73
73
  ...(typeof highlight === "string" ? { children: highlight } : highlight) }, index))) }));
74
74
  };
75
75
 
@@ -91,14 +91,14 @@ const cvaIdentityCell = cvaMerge(["grid", "items-center", "text-sm", "gap-2"], {
91
91
  * @param {IdentityCellProps} props - The props for the LinkCell component
92
92
  * @returns {ReactElement} LinkCell component
93
93
  */
94
- const IdentityCell = ({ link, className, dataTestId, title, details = [], thumbnail, }) => {
94
+ const IdentityCell = ({ link, className, "data-testid": dataTestId, title, details = [], thumbnail, }) => {
95
95
  const [href, setHref] = useState(undefined);
96
96
  useEffect(() => {
97
97
  if (link) {
98
98
  link.href().then(setHref);
99
99
  }
100
100
  }, [link]);
101
- return (jsxs("div", { className: cvaIdentityCell({ className, hasThumbnail: !!thumbnail }), "data-testid": dataTestId, children: [thumbnail ? (jsx("div", { className: "mr-1 flex h-8 w-8 items-center justify-center overflow-hidden rounded-md", children: thumbnail })) : null, jsxs("div", { className: "grid grid-rows-[min-content_auto] items-center text-sm", children: [jsx("div", { className: "gap-responsive-space-sm flex w-full min-w-0 items-center truncate text-sm", children: jsx(Heading, { className: "truncate text-sm", dataTestId: dataTestId ? `${dataTestId}-name` : undefined, variant: "tertiary", children: !link ? (title) : (jsx(ExternalLink, { color: "neutral", href: href ?? "", onClick: async (e) => {
101
+ return (jsxs("div", { className: cvaIdentityCell({ className, hasThumbnail: !!thumbnail }), "data-testid": dataTestId, children: [thumbnail ? (jsx("div", { className: "mr-1 flex h-8 w-8 items-center justify-center overflow-hidden rounded-md", children: thumbnail })) : null, jsxs("div", { className: "grid grid-rows-[min-content_auto] items-center text-sm", children: [jsx("div", { className: "gap-responsive-space-sm flex w-full min-w-0 items-center truncate text-sm", children: jsx(Heading, { className: "truncate text-sm", "data-testid": dataTestId ? `${dataTestId}-name` : undefined, variant: "tertiary", children: !link ? (title) : (jsx(ExternalLink, { color: "neutral", href: href ?? "", onClick: async (e) => {
102
102
  // Allow Cmd/Ctrl+Click, Shift+Click, or middle-click to open in new tab
103
103
  const hasModifierKey = e.ctrlKey || e.metaKey || e.shiftKey;
104
104
  const isMiddleClick = e.button === 1;
@@ -118,7 +118,7 @@ const IdentityCell = ({ link, className, dataTestId, title, details = [], thumbn
118
118
  * @param {ImageCellProps} props - The props for the Image component.
119
119
  * @returns {ReactElement} The Image component.
120
120
  */
121
- const ImageCell = ({ imageUrl, alt = "", width = 100, height = 100, dataTestId, ...rest }) => {
121
+ const ImageCell = ({ imageUrl, alt = "", width = 100, height = 100, "data-testid": dataTestId, ...rest }) => {
122
122
  return jsx("img", { alt: alt, "data-testid": dataTestId, height: height, src: imageUrl, width: width, ...rest });
123
123
  };
124
124
 
@@ -159,7 +159,7 @@ const cvaSecondaryRowText = cvaMerge(["overflow-hidden", "text-ellipsis", "text-
159
159
  * @param {MultiRowTableCellProps} props - The props for the MultiRowTableCell component
160
160
  * @returns {ReactElement} MultiRowTableCell component
161
161
  */
162
- const MultiRowTableCell = ({ main, secondary, dataTestId, className }) => {
162
+ const MultiRowTableCell = ({ main, secondary, "data-testid": dataTestId, className, }) => {
163
163
  return (jsx("div", { className: cvaMultiRowTableCell({ className }), children: jsxs("section", { className: cvaMultiRowTableCellSection(), "data-testid": dataTestId, children: [typeof main === "string" ? jsx("div", { className: cvaMainRowText(), children: main }) : main, secondary && typeof secondary === "string" ? (jsx("div", { className: cvaSecondaryRowText(), children: secondary })) : (secondary)] }) }));
164
164
  };
165
165
 
@@ -172,7 +172,7 @@ const MultiRowTableCell = ({ main, secondary, dataTestId, className }) => {
172
172
  * @param {ListTooltipProps<TItem>} props Component props.
173
173
  * @returns {ReactNode} Tooltip list markup.
174
174
  */
175
- const ListTooltip = ({ items, dataTestId, getLabel, getKey, loading, }) => {
175
+ const ListTooltip = ({ items, "data-testid": dataTestId, getLabel, getKey, loading, }) => {
176
176
  const toDisplay = (item, index) => {
177
177
  if (getLabel) {
178
178
  return getLabel(item, index);
@@ -223,12 +223,12 @@ const cvaMultiValueTextCellTooltip = cvaMerge(["whitespace-no-wrap", "overflow-h
223
223
  * @param {MultiValueTextCellProps} props - The props for the MultiValueTextCell component
224
224
  * @returns {ReactElement} MultiValueTextCell component
225
225
  */
226
- const MultiValueTextCell = ({ content, count, countTooltip, icon, iconTooltip, dataTestId, className, onMouseEnter, }) => {
226
+ const MultiValueTextCell = ({ content, count, countTooltip, icon, iconTooltip, "data-testid": dataTestId, className, onMouseEnter, }) => {
227
227
  const [isTooltipVisible, setIsTooltipVisible] = useState(false);
228
228
  const updateTooltipVisibility = (element) => {
229
229
  setIsTooltipVisible(element ? element.scrollWidth > element.clientWidth : false);
230
230
  };
231
- return count && count > 0 ? (jsxs("div", { className: cvaMultiValueTextCellWrapper({ className }), "data-testid": dataTestId, children: [icon ? (jsx(Tooltip, { className: "inline-flex items-center", dataTestId: dataTestId ? `${dataTestId}-icon-tooltip` : undefined, disabled: !iconTooltip, label: iconTooltip ?? "", placement: "bottom", children: icon })) : null, jsx("span", { className: cvaMultiValueTextCellTooltip(), ref: elementRef => updateTooltipVisibility(elementRef), children: jsx(Tooltip, { className: "inline", dataTestId: dataTestId ? `${dataTestId}-content-tooltip` : undefined, disabled: !isTooltipVisible, label: content ?? "", placement: "bottom", children: content ?? "" }) }), count > 1 ? (jsx(Tooltip, { className: "inline", dataTestId: dataTestId ? `${dataTestId}-count-tooltip` : undefined, disabled: !countTooltip, label: countTooltip ?? "", placement: "bottom", children: jsxs(Tag, { color: "neutral", onMouseEnter: onMouseEnter, size: "small", children: ["+", count - 1] }) })) : null] })) : null;
231
+ return count && count > 0 ? (jsxs("div", { className: cvaMultiValueTextCellWrapper({ className }), "data-testid": dataTestId, children: [icon ? (jsx(Tooltip, { className: "inline-flex items-center", "data-testid": dataTestId ? `${dataTestId}-icon-tooltip` : undefined, disabled: !iconTooltip, label: iconTooltip ?? "", placement: "bottom", children: icon })) : null, jsx("span", { className: cvaMultiValueTextCellTooltip(), ref: elementRef => updateTooltipVisibility(elementRef), children: jsx(Tooltip, { className: "inline", "data-testid": dataTestId ? `${dataTestId}-content-tooltip` : undefined, disabled: !isTooltipVisible, label: content ?? "", placement: "bottom", children: content ?? "" }) }), count > 1 ? (jsx(Tooltip, { className: "inline", "data-testid": dataTestId ? `${dataTestId}-count-tooltip` : undefined, disabled: !countTooltip, label: countTooltip ?? "", placement: "bottom", children: jsxs(Tag, { color: "neutral", onMouseEnter: onMouseEnter, size: "small", children: ["+", count - 1] }) })) : null] })) : null;
232
232
  };
233
233
 
234
234
  /**
@@ -249,7 +249,7 @@ const cvaNumberCell = cvaMerge(["flex", "gap-1", "slashed-zero", "text-sm", "tex
249
249
  * @param {NumberCellProps} props - The props for the NumberCell component.
250
250
  * @returns {ReactElement} A React JSX element representing the NumberCell component.
251
251
  */
252
- const NumberCell = ({ value = "", unit, className, dataTestId }) => {
252
+ const NumberCell = ({ value = "", unit, className, "data-testid": dataTestId }) => {
253
253
  return (jsxs("div", { className: cvaNumberCell({ className }), "data-testid": dataTestId, children: [jsx("span", { children: value }), value && unit ? jsx("span", { children: unit }) : null] }));
254
254
  };
255
255
 
@@ -263,7 +263,7 @@ const cvaDateTimeSince = cvaMerge(["slashed-zero", "text-neutral-500", "text-xs"
263
263
  * @param {PlainDateCellProps} props - The props for the PlainDateCell component
264
264
  * @returns {ReactElement} PlainDateCell component
265
265
  */
266
- const PlainDateCell = ({ locale, date, withDaysSince = true, className, dataTestId }) => {
266
+ const PlainDateCell = ({ locale, date, withDaysSince = true, className, "data-testid": dataTestId, }) => {
267
267
  if (!date) {
268
268
  return null;
269
269
  }
@@ -289,11 +289,11 @@ const DaysSince = ({ date, locale }) => {
289
289
  *
290
290
  * @param {ResizeHandelProps} props - Props for the resizable handle.
291
291
  * @param {boolean} [props.isResizing=false] - Indicates whether the handle is in a resizing state.
292
- * @param {string} [props.dataTestId] - A data-testid attribute for testing purposes.
292
+ * @param {string} [props."data-testid"] - A data-testid attribute for testing purposes.
293
293
  * @param {string} [props.className] - Additional CSS classes to apply to the handle.
294
294
  * @returns {ReactElement} A React element representing the resizable handle.
295
295
  */
296
- const ResizeHandle = ({ isResizing = false, dataTestId, onMouseDown: onMouseDownHandler, className, ...rest }) => {
296
+ const ResizeHandle = ({ isResizing = false, "data-testid": dataTestId, onMouseDown: onMouseDownHandler, className, ...rest }) => {
297
297
  const onMouseDown = (event) => {
298
298
  const resizeCursorClass = "cursor-col-resize";
299
299
  document.addEventListener("mouseup", () => {
@@ -386,11 +386,11 @@ const IconWithLoader = ({ action, size }) => {
386
386
  *
387
387
  * @param {object} props - Props for the sorting indicator.
388
388
  * @param {boolean} [props.sortingState=false] - Indicates the sorting state (ascending/descending).
389
- * @param {string} [props.dataTestId] - A data-testid attribute for testing purposes.
389
+ * @param {string} [props."data-testid"] - A data-testid attribute for testing purposes.
390
390
  * @param {string} [props.className] - Additional CSS classes to apply to the sorting indicator.
391
391
  * @returns {ReactElement} A React element representing the sorting indicator.
392
392
  */
393
- const SortIndicator = ({ sortingState = false, dataTestId, className, ...rest }) => {
393
+ const SortIndicator = ({ sortingState = false, "data-testid": dataTestId, className, ...rest }) => {
394
394
  return (jsx("div", { className: cvaSortIndicator({ sortingState, className }), "data-testid": dataTestId, role: "separator", ...rest }));
395
395
  };
396
396
  const cvaSortIndicator = cvaMerge([
@@ -434,7 +434,7 @@ const cvaSortIndicator = cvaMerge([
434
434
  * @param {TableRootProps} props - The props for the TableRoot component
435
435
  * @returns {ReactElement} TableRoot component
436
436
  */
437
- const TableRoot = ({ dataTestId, className, children, ...rest }) => {
437
+ const TableRoot = ({ "data-testid": dataTestId, className, children, ...rest }) => {
438
438
  return (jsx("table", { className: cvaTableRoot({ className }), "data-testid": dataTestId, ...rest, children: children }));
439
439
  };
440
440
  const cvaTableRoot = cvaMerge(["border-spacing-0", "min-w-full", "border-collapse", "grid-rows-min-fr", "grid"]);
@@ -447,9 +447,9 @@ const cvaTagsCell = cvaMerge(["flex", "gap-2"]);
447
447
  * @param {TagsCellProps} props - The props for the TagsCell component
448
448
  * @returns {ReactElement} TagsCell component
449
449
  */
450
- const TagsCell = ({ className, tags, dataTestId }) => {
450
+ const TagsCell = ({ className, tags, "data-testid": dataTestId }) => {
451
451
  return (jsx("div", { className: cvaTagsCell({ className }), "data-testid": dataTestId, children: tags.map((tag, index) => (jsx(Tag, { color: "primary",
452
- dataTestId: `${dataTestId}-${index}`,
452
+ "data-testid": `${dataTestId}-${index}`,
453
453
  ...(typeof tag === "string" ? { children: tag } : tag) }, index))) }));
454
454
  };
455
455
 
@@ -463,7 +463,7 @@ const TagsCell = ({ className, tags, dataTestId }) => {
463
463
  * @param {TbodyProps} props - The props for the Tbody component
464
464
  * @returns {ReactElement} Tbody component
465
465
  */
466
- const Tbody = ({ dataTestId, className, children, ...rest }) => {
466
+ const Tbody = ({ "data-testid": dataTestId, className, children, ...rest }) => {
467
467
  return (jsx("tbody", { className: className, "data-testid": dataTestId, ...rest, children: children }));
468
468
  };
469
469
 
@@ -477,7 +477,7 @@ const Tbody = ({ dataTestId, className, children, ...rest }) => {
477
477
  * @param {TdProps} props - The props for the Td component
478
478
  * @returns {ReactElement} Td component
479
479
  */
480
- const Td = ({ dataTestId, className, children, ...rest }) => {
480
+ const Td = ({ "data-testid": dataTestId, className, children, ...rest }) => {
481
481
  return (jsx("td", { className: cvaTd({ className }), "data-testid": dataTestId, ...rest, children: Array.isArray(children)
482
482
  ? children
483
483
  .filter(Boolean)
@@ -505,7 +505,7 @@ const cvaTextCellTooltip = cvaMerge(["grid"]);
505
505
  * @param {TextCellProps} props - The props for the TextCell component
506
506
  * @returns {ReactElement} TextCell component
507
507
  */
508
- const TextCell = ({ content = "", className, dataTestId }) => {
508
+ const TextCell = ({ content = "", className, "data-testid": dataTestId }) => {
509
509
  const [isTooltipVisible, setIsTooltipVisible] = useState(false);
510
510
  const updateTooltipVisibility = (element) => {
511
511
  setIsTooltipVisible(element ? element.scrollWidth > element.clientWidth : false);
@@ -523,7 +523,7 @@ const TextCell = ({ content = "", className, dataTestId }) => {
523
523
  * @param {TfootProps} props - The props for the Tfoot component
524
524
  * @returns {ReactElement} Tfoot component
525
525
  */
526
- const Tfoot = ({ dataTestId, className, children, ...rest }) => {
526
+ const Tfoot = ({ "data-testid": dataTestId, className, children, ...rest }) => {
527
527
  return (jsx("tfoot", { className: className, "data-testid": dataTestId, ...rest, children: children }));
528
528
  };
529
529
 
@@ -537,7 +537,7 @@ const Tfoot = ({ dataTestId, className, children, ...rest }) => {
537
537
  * @param {ThProps} props - The props for the Th component
538
538
  * @returns {ReactElement} Th component
539
539
  */
540
- const Th = ({ dataTestId, className, children, ...rest }) => {
540
+ const Th = ({ "data-testid": dataTestId, className, children, ...rest }) => {
541
541
  return (jsx("th", { className: cvaTh({ className }), "data-testid": dataTestId, ...rest, children: jsx("div", { className: cvaChildrenContainer(), children: Array.isArray(children)
542
542
  ? children
543
543
  .filter(Boolean)
@@ -578,7 +578,7 @@ const cvaChildrenContainer = cvaMerge([
578
578
  * @param {TheadProps} props - The props for the Thead component
579
579
  * @returns {ReactElement} Thead component
580
580
  */
581
- const Thead = ({ dataTestId, className, children, sticky = true, ...rest }) => {
581
+ const Thead = ({ "data-testid": dataTestId, className, children, sticky = true, ...rest }) => {
582
582
  return (jsx("thead", { className: cvaThead({ sticky, className }), "data-testid": dataTestId, ...rest, children: children }));
583
583
  };
584
584
  const cvaThead = cvaMerge(["bg-neutral-100", "text-left"], {
@@ -603,7 +603,7 @@ const cvaThead = cvaMerge(["bg-neutral-100", "text-left"], {
603
603
  * @param {TrProps} props - The props for the Tr component
604
604
  * @returns {ReactElement} Tr component
605
605
  */
606
- const Tr = ({ dataTestId, className, children, layout = "default", ...rest }) => {
606
+ const Tr = ({ "data-testid": dataTestId, className, children, layout = "default", ...rest }) => {
607
607
  return (jsx("tr", { className: cvaTr({ layout, className }), "data-testid": dataTestId, role: "row", ...rest, children: children }));
608
608
  };
609
609
  const cvaTr = cvaMerge(["w-full", "h-max", "border-b", "border-neutral-200"], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table-base-components",
3
- "version": "1.7.118",
3
+ "version": "1.7.120",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,12 +8,12 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "react": "19.0.0",
11
- "@trackunit/react-components": "1.10.49",
12
- "@trackunit/ui-icons": "1.7.76",
13
- "@trackunit/react-form-components": "1.8.116",
14
- "@trackunit/css-class-variance-utilities": "1.7.75",
15
- "@trackunit/date-and-time-utils": "1.7.75",
16
- "@trackunit/shared-utils": "1.9.75",
11
+ "@trackunit/react-components": "1.10.51",
12
+ "@trackunit/ui-icons": "1.7.78",
13
+ "@trackunit/react-form-components": "1.8.118",
14
+ "@trackunit/css-class-variance-utilities": "1.7.77",
15
+ "@trackunit/date-and-time-utils": "1.7.77",
16
+ "@trackunit/shared-utils": "1.9.77",
17
17
  "tailwind-merge": "^2.0.0",
18
18
  "@js-temporal/polyfill": "^0.5.1"
19
19
  },
@@ -4,7 +4,7 @@ import { TableRootProps } from "./components/TableRoot";
4
4
  type Story = StoryObj<typeof meta>;
5
5
  declare const meta: {
6
6
  title: string;
7
- component: ({ dataTestId, className, children, ...rest }: TableRootProps) => import("react/jsx-runtime").JSX.Element;
7
+ component: ({ "data-testid": dataTestId, className, children, ...rest }: TableRootProps) => import("react/jsx-runtime").JSX.Element;
8
8
  subcomponents: {
9
9
  Thead: ComponentType<unknown>;
10
10
  Th: ComponentType<unknown>;
@@ -12,4 +12,4 @@ export interface ButtonCellProps extends ButtonCommonProps {
12
12
  * @param {ButtonCellProps} props - The props for the ButtonCell component
13
13
  * @returns {ReactElement} ButtonCell component
14
14
  */
15
- export declare const ButtonCell: ({ children, className, dataTestId, iconColor, iconName, variant, ...rest }: ButtonCellProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const ButtonCell: ({ children, className, "data-testid": dataTestId, iconColor, iconName, variant, ...rest }: ButtonCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ import { ButtonCellProps } from "./ButtonCell";
4
4
  type Story = StoryObjWithOptionalArgs<typeof meta, "children">;
5
5
  declare const meta: {
6
6
  title: string;
7
- component: ({ children, className, dataTestId, iconColor, iconName, variant, ...rest }: ButtonCellProps) => import("react/jsx-runtime").JSX.Element;
7
+ component: ({ children, className, "data-testid": dataTestId, iconColor, iconName, variant, ...rest }: ButtonCellProps) => import("react/jsx-runtime").JSX.Element;
8
8
  argTypes: {};
9
9
  parameters: {
10
10
  docs: {
@@ -9,4 +9,4 @@ export interface CheckboxCellProps extends CommonProps {
9
9
  * @param {CheckboxCellProps} props - The props for the CheckboxCell component
10
10
  * @returns {ReactElement} CheckboxCell component
11
11
  */
12
- export declare const CheckboxCell: ({ checked, className, dataTestId }: CheckboxCellProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const CheckboxCell: ({ checked, className, "data-testid": dataTestId }: CheckboxCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -5,7 +5,7 @@ import "./CheckboxCell.variants";
5
5
  type Story = StoryObj<typeof meta>;
6
6
  declare const meta: {
7
7
  title: string;
8
- component: ({ checked, className, dataTestId }: CheckboxCellProps) => import("react/jsx-runtime").JSX.Element;
8
+ component: ({ checked, className, "data-testid": dataTestId }: CheckboxCellProps) => import("react/jsx-runtime").JSX.Element;
9
9
  argTypes: {};
10
10
  parameters: {
11
11
  docs: {
@@ -36,7 +36,7 @@ export interface DateTimeCellProps extends CommonProps {
36
36
  * @param {DateTimeCellProps} props - The props for the DateTimeCell component
37
37
  * @returns {ReactElement} DateTimeCell component
38
38
  */
39
- export declare const DateTimeCell: ({ format, timeZone, locale, date, withTimeSince, className, dataTestId, }: DateTimeCellProps) => import("react/jsx-runtime").JSX.Element | null;
39
+ export declare const DateTimeCell: ({ format, timeZone, locale, date, withTimeSince, className, "data-testid": dataTestId, }: DateTimeCellProps) => import("react/jsx-runtime").JSX.Element | null;
40
40
  export interface TimeSinceProps extends Pick<DateTimeCellProps, "date" | "timeZone" | "locale"> {
41
41
  date: Date;
42
42
  }
@@ -5,7 +5,7 @@ import "./DateTimeCell.variants";
5
5
  type Story = StoryObj<typeof meta>;
6
6
  declare const meta: {
7
7
  title: string;
8
- component: ({ format, timeZone, locale, date, withTimeSince, className, dataTestId, }: DateTimeCellProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ component: ({ format, timeZone, locale, date, withTimeSince, className, "data-testid": dataTestId, }: DateTimeCellProps) => import("react/jsx-runtime").JSX.Element | null;
9
9
  argTypes: {};
10
10
  parameters: {
11
11
  docs: {
@@ -4,7 +4,7 @@ export interface HighlightCellProps extends CommonProps, HTMLAttributes<HTMLTabl
4
4
  /**
5
5
  * A id that can be used in tests to get the component
6
6
  */
7
- dataTestId?: string;
7
+ "data-testid"?: string;
8
8
  /**
9
9
  * Custom classNames that will be merged with the default classNames.
10
10
  */
@@ -24,4 +24,4 @@ export interface HighlightCellProps extends CommonProps, HTMLAttributes<HTMLTabl
24
24
  * @param {HighlightCellProps} props - The props for the HighlightCell component
25
25
  * @returns {ReactElement} HighlightCell component
26
26
  */
27
- export declare const HighlightCell: ({ className, highlights, dataTestId }: HighlightCellProps) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const HighlightCell: ({ className, highlights, "data-testid": dataTestId }: HighlightCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ import { HighlightCellProps } from "./HighlightCell";
4
4
  type Story = StoryObj<typeof meta>;
5
5
  declare const meta: {
6
6
  title: string;
7
- component: ({ className, highlights, dataTestId }: HighlightCellProps) => import("react/jsx-runtime").JSX.Element;
7
+ component: ({ className, highlights, "data-testid": dataTestId }: HighlightCellProps) => import("react/jsx-runtime").JSX.Element;
8
8
  argTypes: {};
9
9
  parameters: {
10
10
  docs: {
@@ -2,7 +2,7 @@ import { CommonProps } from "@trackunit/react-components";
2
2
  import { ReactElement, ReactNode } from "react";
3
3
  export interface IdentityCellProps extends CommonProps {
4
4
  className?: string;
5
- dataTestId?: string;
5
+ "data-testid"?: string;
6
6
  /** The main title or name to display */
7
7
  title?: ReactNode;
8
8
  /** Array of detail strings to display below the title (e.g., model, brand, serial number) */
@@ -26,4 +26,4 @@ export interface IdentityCellProps extends CommonProps {
26
26
  * @param {IdentityCellProps} props - The props for the LinkCell component
27
27
  * @returns {ReactElement} LinkCell component
28
28
  */
29
- export declare const IdentityCell: ({ link, className, dataTestId, title, details, thumbnail, }: IdentityCellProps) => ReactElement;
29
+ export declare const IdentityCell: ({ link, className, "data-testid": dataTestId, title, details, thumbnail, }: IdentityCellProps) => ReactElement;
@@ -4,7 +4,7 @@ import { IdentityCellProps } from "./IdentityCell";
4
4
  type Story = StoryObj<typeof meta>;
5
5
  declare const meta: {
6
6
  title: string;
7
- component: ({ link, className, dataTestId, title, details, thumbnail, }: IdentityCellProps) => ReactElement;
7
+ component: ({ link, className, "data-testid": dataTestId, title, details, thumbnail, }: IdentityCellProps) => ReactElement;
8
8
  argTypes: {};
9
9
  parameters: {
10
10
  docs: {
@@ -19,7 +19,7 @@ export interface ImageCellProps extends CommonProps {
19
19
  /**
20
20
  * A custom data-testid attribute for testing purposes.
21
21
  */
22
- dataTestId?: string;
22
+ "data-testid"?: string;
23
23
  }
24
24
  /**
25
25
  * The `<ImageCell>` component is used for displaying images in a table cell.
@@ -27,4 +27,4 @@ export interface ImageCellProps extends CommonProps {
27
27
  * @param {ImageCellProps} props - The props for the Image component.
28
28
  * @returns {ReactElement} The Image component.
29
29
  */
30
- export declare const ImageCell: ({ imageUrl, alt, width, height, dataTestId, ...rest }: ImageCellProps) => import("react/jsx-runtime").JSX.Element;
30
+ export declare const ImageCell: ({ imageUrl, alt, width, height, "data-testid": dataTestId, ...rest }: ImageCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,7 @@ import { ReactElement } from "react";
3
3
  type Story = StoryObj<typeof meta>;
4
4
  declare const meta: {
5
5
  title: string;
6
- component: ({ imageUrl, alt, width, height, dataTestId, ...rest }: import("./ImageCell").ImageCellProps) => import("react/jsx-runtime").JSX.Element;
6
+ component: ({ imageUrl, alt, width, height, "data-testid": dataTestId, ...rest }: import("./ImageCell").ImageCellProps) => import("react/jsx-runtime").JSX.Element;
7
7
  argTypes: {};
8
8
  parameters: {
9
9
  docs: {
@@ -4,7 +4,7 @@ export interface LinkCellProps extends CommonProps, HTMLAttributes<HTMLTableSect
4
4
  /**
5
5
  * A id that can be used in tests to get the component
6
6
  */
7
- dataTestId?: string;
7
+ "data-testid"?: string;
8
8
  /**
9
9
  * Custom classNames that will be merged with the default classNames.
10
10
  */
@@ -16,4 +16,4 @@ export interface MultiRowTableCellProps extends CommonProps {
16
16
  * @param {MultiRowTableCellProps} props - The props for the MultiRowTableCell component
17
17
  * @returns {ReactElement} MultiRowTableCell component
18
18
  */
19
- export declare const MultiRowTableCell: ({ main, secondary, dataTestId, className }: MultiRowTableCellProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const MultiRowTableCell: ({ main, secondary, "data-testid": dataTestId, className, }: MultiRowTableCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ import { MultiRowTableCellProps } from "./MultiRowTableCell";
4
4
  type Story = StoryObj<typeof meta>;
5
5
  declare const meta: {
6
6
  title: string;
7
- component: ({ main, secondary, dataTestId, className }: MultiRowTableCellProps) => import("react/jsx-runtime").JSX.Element;
7
+ component: ({ main, secondary, "data-testid": dataTestId, className, }: MultiRowTableCellProps) => import("react/jsx-runtime").JSX.Element;
8
8
  argTypes: {};
9
9
  parameters: {
10
10
  docs: {
@@ -8,7 +8,7 @@ export type ListTooltipProps<TItem = unknown> = {
8
8
  /** Items to render inside the tooltip. */
9
9
  items: Array<TItem>;
10
10
  /** Data test id for testing. */
11
- dataTestId?: string;
11
+ "data-testid"?: string;
12
12
  /**
13
13
  * Custom label extractor. If omitted, strings/numbers/booleans are stringified,
14
14
  * React elements are returned as-is, and other objects are serialized.
@@ -31,4 +31,4 @@ export type ListTooltipProps<TItem = unknown> = {
31
31
  * @param {ListTooltipProps<TItem>} props Component props.
32
32
  * @returns {ReactNode} Tooltip list markup.
33
33
  */
34
- export declare const ListTooltip: <TItem = unknown>({ items, dataTestId, getLabel, getKey, loading, }: ListTooltipProps<TItem>) => import("react/jsx-runtime").JSX.Element;
34
+ export declare const ListTooltip: <TItem = unknown>({ items, "data-testid": dataTestId, getLabel, getKey, loading, }: ListTooltipProps<TItem>) => import("react/jsx-runtime").JSX.Element;
@@ -42,4 +42,4 @@ export interface MultiValueTextCellProps extends CommonProps {
42
42
  * @param {MultiValueTextCellProps} props - The props for the MultiValueTextCell component
43
43
  * @returns {ReactElement} MultiValueTextCell component
44
44
  */
45
- export declare const MultiValueTextCell: ({ content, count, countTooltip, icon, iconTooltip, dataTestId, className, onMouseEnter, }: MultiValueTextCellProps) => import("react/jsx-runtime").JSX.Element | null;
45
+ export declare const MultiValueTextCell: ({ content, count, countTooltip, icon, iconTooltip, "data-testid": dataTestId, className, onMouseEnter, }: MultiValueTextCellProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -3,7 +3,7 @@ import { MultiValueTextCellProps } from "./MultiValueTextCell";
3
3
  import "./MultiValueTextCell.variants";
4
4
  declare const meta: {
5
5
  title: string;
6
- component: ({ content, count, countTooltip, icon, iconTooltip, dataTestId, className, onMouseEnter, }: MultiValueTextCellProps) => import("react/jsx-runtime").JSX.Element | null;
6
+ component: ({ content, count, countTooltip, icon, iconTooltip, "data-testid": dataTestId, className, onMouseEnter, }: MultiValueTextCellProps) => import("react/jsx-runtime").JSX.Element | null;
7
7
  argTypes: {};
8
8
  parameters: {
9
9
  docs: {
@@ -19,7 +19,7 @@ export declare const PackageName: () => ReactElement;
19
19
  export declare const Default: {
20
20
  render: (props: MultiValueTextCellProps) => import("react/jsx-runtime").JSX.Element;
21
21
  args: {
22
- dataTestId: string;
22
+ "data-testid": string;
23
23
  count: number;
24
24
  content: string;
25
25
  };
@@ -16,7 +16,7 @@ export interface NumberCellProps extends CommonProps {
16
16
  /**
17
17
  * A custom data-testid attribute for testing purposes.
18
18
  */
19
- dataTestId?: string;
19
+ "data-testid"?: string;
20
20
  }
21
21
  /**
22
22
  * The `<NumberCell>` component is used for displaying numbers with units in a table cell.
@@ -24,4 +24,4 @@ export interface NumberCellProps extends CommonProps {
24
24
  * @param {NumberCellProps} props - The props for the NumberCell component.
25
25
  * @returns {ReactElement} A React JSX element representing the NumberCell component.
26
26
  */
27
- export declare const NumberCell: ({ value, unit, className, dataTestId }: NumberCellProps) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const NumberCell: ({ value, unit, className, "data-testid": dataTestId }: NumberCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -5,7 +5,7 @@ import "./NumberCell.variants";
5
5
  type Story = StoryObj<typeof meta>;
6
6
  declare const meta: {
7
7
  title: string;
8
- component: ({ value, unit, className, dataTestId }: NumberCellProps) => import("react/jsx-runtime").JSX.Element;
8
+ component: ({ value, unit, className, "data-testid": dataTestId }: NumberCellProps) => import("react/jsx-runtime").JSX.Element;
9
9
  parameters: {
10
10
  docs: {
11
11
  source: {
@@ -25,7 +25,7 @@ export interface PlainDateCellProps extends CommonProps {
25
25
  * @param {PlainDateCellProps} props - The props for the PlainDateCell component
26
26
  * @returns {ReactElement} PlainDateCell component
27
27
  */
28
- export declare const PlainDateCell: ({ locale, date, withDaysSince, className, dataTestId }: PlainDateCellProps) => import("react/jsx-runtime").JSX.Element | null;
28
+ export declare const PlainDateCell: ({ locale, date, withDaysSince, className, "data-testid": dataTestId, }: PlainDateCellProps) => import("react/jsx-runtime").JSX.Element | null;
29
29
  export interface DaysSinceProps extends Pick<PlainDateCellProps, "date" | "locale"> {
30
30
  date: Temporal.PlainDate;
31
31
  }
@@ -5,7 +5,7 @@ import "./PlainDateCell.variants";
5
5
  type Story = StoryObj<typeof meta>;
6
6
  declare const meta: {
7
7
  title: string;
8
- component: ({ locale, date, withDaysSince, className, dataTestId }: PlainDateCellProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ component: ({ locale, date, withDaysSince, className, "data-testid": dataTestId, }: PlainDateCellProps) => import("react/jsx-runtime").JSX.Element | null;
9
9
  argTypes: {};
10
10
  parameters: {
11
11
  docs: {
@@ -8,8 +8,8 @@ export interface ResizeHandelProps extends CommonProps, HTMLAttributes<HTMLDivEl
8
8
  *
9
9
  * @param {ResizeHandelProps} props - Props for the resizable handle.
10
10
  * @param {boolean} [props.isResizing=false] - Indicates whether the handle is in a resizing state.
11
- * @param {string} [props.dataTestId] - A data-testid attribute for testing purposes.
11
+ * @param {string} [props."data-testid"] - A data-testid attribute for testing purposes.
12
12
  * @param {string} [props.className] - Additional CSS classes to apply to the handle.
13
13
  * @returns {ReactElement} A React element representing the resizable handle.
14
14
  */
15
- export declare const ResizeHandle: ({ isResizing, dataTestId, onMouseDown: onMouseDownHandler, className, ...rest }: ResizeHandelProps) => ReactElement;
15
+ export declare const ResizeHandle: ({ isResizing, "data-testid": dataTestId, onMouseDown: onMouseDownHandler, className, ...rest }: ResizeHandelProps) => ReactElement;
@@ -4,7 +4,7 @@ export interface SortIndicatorProps extends CommonProps, React.HTMLAttributes<HT
4
4
  /**
5
5
  * A id that can be used in tests to get the component
6
6
  */
7
- dataTestId?: string;
7
+ "data-testid"?: string;
8
8
  /**
9
9
  * Custom classNames that will be merged with the default classNames.
10
10
  */
@@ -23,8 +23,8 @@ export interface SortIndicatorProps extends CommonProps, React.HTMLAttributes<HT
23
23
  *
24
24
  * @param {object} props - Props for the sorting indicator.
25
25
  * @param {boolean} [props.sortingState=false] - Indicates the sorting state (ascending/descending).
26
- * @param {string} [props.dataTestId] - A data-testid attribute for testing purposes.
26
+ * @param {string} [props."data-testid"] - A data-testid attribute for testing purposes.
27
27
  * @param {string} [props.className] - Additional CSS classes to apply to the sorting indicator.
28
28
  * @returns {ReactElement} A React element representing the sorting indicator.
29
29
  */
30
- export declare const SortIndicator: ({ sortingState, dataTestId, className, ...rest }: SortIndicatorProps) => ReactElement;
30
+ export declare const SortIndicator: ({ sortingState, "data-testid": dataTestId, className, ...rest }: SortIndicatorProps) => ReactElement;
@@ -4,7 +4,7 @@ import { SortIndicatorProps } from "./SortIndicator";
4
4
  type Story = StoryObj<typeof meta>;
5
5
  declare const meta: {
6
6
  title: string;
7
- component: ({ sortingState, dataTestId, className, ...rest }: SortIndicatorProps) => ReactElement;
7
+ component: ({ sortingState, "data-testid": dataTestId, className, ...rest }: SortIndicatorProps) => ReactElement;
8
8
  parameters: {
9
9
  docs: {
10
10
  source: {
@@ -4,7 +4,7 @@ export interface TableRootProps extends CommonProps, HTMLAttributes<HTMLTableEle
4
4
  /**
5
5
  * A id that can be used in tests to get the component
6
6
  */
7
- dataTestId?: string;
7
+ "data-testid"?: string;
8
8
  /**
9
9
  * Custom classNames that will be merged with the default classNames.
10
10
  */
@@ -24,4 +24,4 @@ export interface TableRootProps extends CommonProps, HTMLAttributes<HTMLTableEle
24
24
  * @param {TableRootProps} props - The props for the TableRoot component
25
25
  * @returns {ReactElement} TableRoot component
26
26
  */
27
- export declare const TableRoot: ({ dataTestId, className, children, ...rest }: TableRootProps) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const TableRoot: ({ "data-testid": dataTestId, className, children, ...rest }: TableRootProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ export interface TagsCellProps extends CommonProps, HTMLAttributes<HTMLTableSect
4
4
  /**
5
5
  * A id that can be used in tests to get the component
6
6
  */
7
- dataTestId?: string;
7
+ "data-testid"?: string;
8
8
  /**
9
9
  * Custom classNames that will be merged with the default classNames.
10
10
  */
@@ -20,4 +20,4 @@ export interface TagsCellProps extends CommonProps, HTMLAttributes<HTMLTableSect
20
20
  * @param {TagsCellProps} props - The props for the TagsCell component
21
21
  * @returns {ReactElement} TagsCell component
22
22
  */
23
- export declare const TagsCell: ({ className, tags, dataTestId }: TagsCellProps) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const TagsCell: ({ className, tags, "data-testid": dataTestId }: TagsCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ import { TagsCellProps } from "./TagsCell";
4
4
  type Story = StoryObj<typeof meta>;
5
5
  declare const meta: {
6
6
  title: string;
7
- component: ({ className, tags, dataTestId }: TagsCellProps) => import("react/jsx-runtime").JSX.Element;
7
+ component: ({ className, tags, "data-testid": dataTestId }: TagsCellProps) => import("react/jsx-runtime").JSX.Element;
8
8
  argTypes: {};
9
9
  parameters: {
10
10
  docs: {
@@ -4,7 +4,7 @@ export interface TbodyProps extends CommonProps, HTMLAttributes<HTMLTableSection
4
4
  /**
5
5
  * A id that can be used in tests to get the component
6
6
  */
7
- dataTestId?: string;
7
+ "data-testid"?: string;
8
8
  /**
9
9
  * Custom classNames that will be merged with the default classNames.
10
10
  */
@@ -24,4 +24,4 @@ export interface TbodyProps extends CommonProps, HTMLAttributes<HTMLTableSection
24
24
  * @param {TbodyProps} props - The props for the Tbody component
25
25
  * @returns {ReactElement} Tbody component
26
26
  */
27
- export declare const Tbody: ({ dataTestId, className, children, ...rest }: TbodyProps) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const Tbody: ({ "data-testid": dataTestId, className, children, ...rest }: TbodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ export interface TdProps extends CommonProps, HTMLAttributes<HTMLTableCellElemen
4
4
  /**
5
5
  * A id that can be used in tests to get the component
6
6
  */
7
- dataTestId?: string;
7
+ "data-testid"?: string;
8
8
  /**
9
9
  * Custom classNames that will be merged with the default classNames.
10
10
  */
@@ -24,4 +24,4 @@ export interface TdProps extends CommonProps, HTMLAttributes<HTMLTableCellElemen
24
24
  * @param {TdProps} props - The props for the Td component
25
25
  * @returns {ReactElement} Td component
26
26
  */
27
- export declare const Td: ({ dataTestId, className, children, ...rest }: TdProps) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const Td: ({ "data-testid": dataTestId, className, children, ...rest }: TdProps) => import("react/jsx-runtime").JSX.Element;
@@ -10,4 +10,4 @@ export interface TextCellProps extends CommonProps {
10
10
  * @param {TextCellProps} props - The props for the TextCell component
11
11
  * @returns {ReactElement} TextCell component
12
12
  */
13
- export declare const TextCell: ({ content, className, dataTestId }: TextCellProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const TextCell: ({ content, className, "data-testid": dataTestId }: TextCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -5,7 +5,7 @@ import "./TextCell.variants";
5
5
  type Story = StoryObj<typeof meta>;
6
6
  declare const meta: {
7
7
  title: string;
8
- component: ({ content, className, dataTestId }: TextCellProps) => import("react/jsx-runtime").JSX.Element;
8
+ component: ({ content, className, "data-testid": dataTestId }: TextCellProps) => import("react/jsx-runtime").JSX.Element;
9
9
  argTypes: {};
10
10
  parameters: {
11
11
  docs: {
@@ -4,7 +4,7 @@ export interface TfootProps extends CommonProps, HTMLAttributes<HTMLTableSection
4
4
  /**
5
5
  * A id that can be used in tests to get the component
6
6
  */
7
- dataTestId?: string;
7
+ "data-testid"?: string;
8
8
  /**
9
9
  * Custom classNames that will be merged with the default classNames.
10
10
  */
@@ -24,4 +24,4 @@ export interface TfootProps extends CommonProps, HTMLAttributes<HTMLTableSection
24
24
  * @param {TfootProps} props - The props for the Tfoot component
25
25
  * @returns {ReactElement} Tfoot component
26
26
  */
27
- export declare const Tfoot: ({ dataTestId, className, children, ...rest }: TfootProps) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const Tfoot: ({ "data-testid": dataTestId, className, children, ...rest }: TfootProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ export interface ThProps extends CommonProps, React.HTMLAttributes<HTMLTableCell
4
4
  /**
5
5
  * A id that can be used in tests to get the component
6
6
  */
7
- dataTestId?: string;
7
+ "data-testid"?: string;
8
8
  /**
9
9
  * Custom classNames that will be merged with the default classNames.
10
10
  */
@@ -24,4 +24,4 @@ export interface ThProps extends CommonProps, React.HTMLAttributes<HTMLTableCell
24
24
  * @param {ThProps} props - The props for the Th component
25
25
  * @returns {ReactElement} Th component
26
26
  */
27
- export declare const Th: ({ dataTestId, className, children, ...rest }: ThProps) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const Th: ({ "data-testid": dataTestId, className, children, ...rest }: ThProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ export interface TheadProps extends CommonProps, HTMLAttributes<HTMLTableSection
4
4
  /**
5
5
  * A id that can be used in tests to get the component
6
6
  */
7
- dataTestId?: string;
7
+ "data-testid"?: string;
8
8
  /**
9
9
  * Custom classNames that will be merged with the default classNames.
10
10
  */
@@ -31,4 +31,4 @@ export interface TheadProps extends CommonProps, HTMLAttributes<HTMLTableSection
31
31
  * @param {TheadProps} props - The props for the Thead component
32
32
  * @returns {ReactElement} Thead component
33
33
  */
34
- export declare const Thead: ({ dataTestId, className, children, sticky, ...rest }: TheadProps) => import("react/jsx-runtime").JSX.Element;
34
+ export declare const Thead: ({ "data-testid": dataTestId, className, children, sticky, ...rest }: TheadProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ export interface TrProps extends CommonProps, HTMLAttributes<HTMLTableRowElement
4
4
  /**
5
5
  * A id that can be used in tests to get the component
6
6
  */
7
- dataTestId?: string;
7
+ "data-testid"?: string;
8
8
  /**
9
9
  * Custom classNames that will be merged with the default classNames.
10
10
  */
@@ -32,4 +32,4 @@ export interface TrProps extends CommonProps, HTMLAttributes<HTMLTableRowElement
32
32
  * @param {TrProps} props - The props for the Tr component
33
33
  * @returns {ReactElement} Tr component
34
34
  */
35
- export declare const Tr: ({ dataTestId, className, children, layout, ...rest }: TrProps) => import("react/jsx-runtime").JSX.Element;
35
+ export declare const Tr: ({ "data-testid": dataTestId, className, children, layout, ...rest }: TrProps) => import("react/jsx-runtime").JSX.Element;