@spark-web/data-table 0.2.0 → 0.2.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @spark-web/data-table
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#456](https://github.com/brighte-labs/spark-web/pull/456)
8
+ [`5faf8fe`](https://github.com/brighte-labs/spark-web/commit/5faf8fe3f0aebefe6cae4b4904d6d4613f8c5d8a)
9
+ Thanks [@michtntbrighte](https://github.com/michtntbrighte)! - feat: allow
10
+ custom row id
11
+
3
12
  ## 0.2.0
4
13
 
5
14
  ### Minor Changes
@@ -8,7 +8,7 @@ import { type HTMLAttributes } from 'react';
8
8
  */
9
9
  declare function DataTable<T>({ data, items, className, columns, enableHiding, enableMultiRowSelection, enableClickableRow, headerClassName, footerClassName, showBottomSpinner: showSpinner, onBottomSpinnerShown, onRowSelectionChange, ...tableOptions }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
10
10
  declare type TableSubsetAttributes = Pick<HTMLAttributes<HTMLTableElement>, 'className'>;
11
- declare type TableSubsetOptions<T> = Pick<TableOptions<T>, 'columns' | 'enableHiding' | 'enableMultiRowSelection' | 'state' | 'onStateChange' | 'onRowSelectionChange'>;
11
+ declare type TableSubsetOptions<T> = Pick<TableOptions<T>, 'columns' | 'enableHiding' | 'enableMultiRowSelection' | 'state' | 'onStateChange' | 'onRowSelectionChange' | 'getRowId'>;
12
12
  declare type DataTableProps<T> = TableSubsetAttributes & TableSubsetOptions<T> & {
13
13
  headerClassName?: string;
14
14
  footerClassName?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-web/data-table",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "homepage": "https://github.com/brighte-labs/spark-web#readme",
5
5
  "repository": {
6
6
  "type": "git",