@harnessio/ui 1.3.35 → 1.3.36

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
@@ -2111,7 +2111,7 @@ declare interface CustomToastProps {
2111
2111
  errorMessage?: string;
2112
2112
  }
2113
2113
 
2114
- 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, initiallyExpandAllRows, currentExpanded, onExpandedChange: externalOnExpandedChange, renderSubComponent, getSubRows, _enableColumnResizing, getRowId, visibleColumns, columnPinning, manualSorting, stickyHeader, maxHeight, rowPinning, onRowPinningChange: externalOnRowPinningChange, enableRowPinning }: DataTableProps<TData>) => JSX_2.Element) & {
2114
+ 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, initiallyExpandAllRows, currentExpanded, onExpandedChange: externalOnExpandedChange, renderSubComponent, getSubRows, enableColumnResizing, getRowId, visibleColumns, columnPinning, manualSorting, stickyHeader, maxHeight, rowPinning, onRowPinningChange: externalOnRowPinningChange, enableRowPinning }: DataTableProps<TData>) => JSX_2.Element) & {
2115
2115
  ColumnFilter: FC<DataTableColumnFilterDropdownProps>;
2116
2116
  };
2117
2117
 
@@ -2210,7 +2210,12 @@ declare interface DataTableProps<TData> {
2210
2210
  * sharing the same column structure, instead of a detail-panel sub-component.
2211
2211
  */
2212
2212
  getSubRows?: (originalRow: TData, index: number) => TData[] | undefined;
2213
- /* Excluded from this release type: _enableColumnResizing */
2213
+ /**
2214
+ * Enable column resizing. Defaults to false. Opt individual columns out with
2215
+ * `ColumnDef.enableResizing`, and set initial/min/max widths with `size`,
2216
+ * `minSize`, and `maxSize`. Only leaf columns expose resize handles.
2217
+ */
2218
+ enableColumnResizing?: boolean;
2214
2219
  /**
2215
2220
  * Opt-in sticky headers. Renders the table inside a single scroll viewport
2216
2221
  * so header cells stick to the top while the body scrolls.
@@ -8195,6 +8200,12 @@ declare interface TableHeadProps extends ThHTMLAttributes<HTMLTableCellElement>
8195
8200
  containerProps?: FlexProps;
8196
8201
  hideDivider?: boolean;
8197
8202
  contentClassName?: string;
8203
+ /**
8204
+ * Optional chrome rendered as a direct child of the `<th>`, outside the
8205
+ * label/sort layout. Used by DataTable for column resize handles so they
8206
+ * can be positioned against the cell boundary.
8207
+ */
8208
+ resizeHandle?: ReactNode;
8198
8209
  }
8199
8210
 
8200
8211
  declare interface TableRootV2Props extends HTMLAttributes<HTMLTableElement>, VariantProps<typeof tableVariants> {
@@ -8216,6 +8227,12 @@ declare interface TableRootV2Props extends HTMLAttributes<HTMLTableElement>, Var
8216
8227
  * Ref forwarded to the scroll viewport element. Only applies in sticky mode.
8217
8228
  */
8218
8229
  viewportRef?: Ref<HTMLDivElement>;
8230
+ /**
8231
+ * Optional overlay rendered as a sibling of `<table>` inside the scroll
8232
+ * viewport. Used by DataTable for a column-resize indicator that is not
8233
+ * clipped by header cells.
8234
+ */
8235
+ overlay?: ReactNode;
8219
8236
  }
8220
8237
 
8221
8238
  declare interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as s } from "./index-DlSn4SRO.js";
2
- import { i as e } from "./index-C80kaiT7.js";
2
+ import { i as e } from "./index-ChuI9KgU.js";
3
3
  import { i as a } from "./index-Dm5jNmUi.js";
4
4
  import { i as m } from "./index-C4bDY5-3.js";
5
5
  import { i as f } from "./index-DchZrYRY.js";