@harnessio/ui 0.5.11 → 0.5.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1787,7 +1787,7 @@ declare interface CustomItemProps extends React.HTMLAttributes<HTMLDivElement> {
1787
1787
  children: ReactNode;
1788
1788
  }
1789
1789
 
1790
- declare const DataTable: (<TData>({ data, columns, size, variant, paginationProps, getRowClassName, onRowClick, disableHighlightOnHover, className, currentSorting, currentRowSelection, onSortingChange: externalOnSortingChange, enableRowSelection, onRowSelectionChange: externalOnRowSelectionChange, enableExpanding, getRowCanExpand, getRowCanSelect, getIsRowDisabled, currentExpanded, onExpandedChange: externalOnExpandedChange, renderSubComponent, _enableColumnResizing, getRowId, visibleColumns, columnPinning }: DataTableProps<TData>) => JSX_2.Element) & {
1790
+ declare const DataTable: (<TData>({ data, columns, size, variant, paginationProps, getRowClassName, onRowClick, getRowLink, disableHighlightOnHover, className, currentSorting, currentRowSelection, onSortingChange: externalOnSortingChange, enableRowSelection, onRowSelectionChange: externalOnRowSelectionChange, enableExpanding, getRowCanExpand, getRowCanSelect, getIsRowDisabled, currentExpanded, onExpandedChange: externalOnExpandedChange, renderSubComponent, _enableColumnResizing, getRowId, visibleColumns, columnPinning }: DataTableProps<TData>) => JSX_2.Element) & {
1791
1791
  ColumnFilter: FC<DataTableColumnFilterDropdownProps>;
1792
1792
  };
1793
1793
 
@@ -1850,6 +1850,11 @@ declare interface DataTableProps<TData> {
1850
1850
  * and cannot be clicked, selected, or expanded.
1851
1851
  */
1852
1852
  getIsRowDisabled?: (row: Row<TData>) => boolean;
1853
+ /**
1854
+ * Function to generate a navigation link for a row.
1855
+ * When provided, the row renders as a link navigating to the returned URL.
1856
+ */
1857
+ getRowLink?: (data: TData, index: number) => string;
1853
1858
  /**
1854
1859
  * Current expanded rows state
1855
1860
  */
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as s } from "./index-Bvr23CG5.js";
2
- import { i as e } from "./index-c3D9Ti6H.js";
2
+ import { i as e } from "./index-CC22tE94.js";
3
3
  import { i as a } from "./index-D6BuUbRP.js";
4
4
  import { i as m } from "./index-BhO-bCC5.js";
5
5
  import { i as f } from "./index-yGuTXfMI.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@harnessio/ui",
3
3
  "description": "Harness Canary UI component library",
4
- "version": "0.5.11",
4
+ "version": "0.5.12",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",