@chumsinc/sortable-tables 2.0.8 → 2.0.9

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
@@ -7,7 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
9
9
 
10
- #### [v2.0.8](https://github.com/ChumsInc/sortable-tables/compare/v2.0.7...v2.0.8)
10
+ #### [v2.0.9](https://github.com/ChumsInc/sortable-tables/compare/v2.0.8...v2.0.9)
11
+
12
+ > 2025-05-21
13
+
14
+
15
+
16
+
17
+ ### Commits
18
+
19
+ - [`08001a6`](https://github.com/ChumsInc/sortable-tables/commit/08001a6604fea9ae723147f36a54261d798153c8) fix: add correct fields type for SortableTableProps, npm updates
20
+
21
+ #### [v2.0.8](https://github.com/ChumsInc/sortable-tables/compare/v2.0.7...v2.0.8) - 2025-03-13
11
22
 
12
23
  > 2025-03-13
13
24
 
@@ -63,6 +63,8 @@ export default function DataTableCell<T = unknown>({ field, row, className, as,
63
63
  inert?: boolean | undefined;
64
64
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
65
65
  is?: string | undefined;
66
+ exportparts?: string | undefined;
67
+ part?: string | undefined;
66
68
  "aria-activedescendant"?: string | undefined;
67
69
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
68
70
  "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
@@ -137,7 +139,7 @@ export default function DataTableCell<T = unknown>({ field, row, className, as,
137
139
  onBlurCapture?: React.FocusEventHandler<HTMLTableCellElement> | undefined;
138
140
  onChange?: React.FormEventHandler<HTMLTableCellElement> | undefined;
139
141
  onChangeCapture?: React.FormEventHandler<HTMLTableCellElement> | undefined;
140
- onBeforeInput?: React.FormEventHandler<HTMLTableCellElement> | undefined;
142
+ onBeforeInput?: React.InputEventHandler<HTMLTableCellElement> | undefined;
141
143
  onBeforeInputCapture?: React.FormEventHandler<HTMLTableCellElement> | undefined;
142
144
  onInput?: React.FormEventHandler<HTMLTableCellElement> | undefined;
143
145
  onInputCapture?: React.FormEventHandler<HTMLTableCellElement> | undefined;
@@ -187,8 +189,6 @@ export default function DataTableCell<T = unknown>({ field, row, className, as,
187
189
  onProgressCapture?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
188
190
  onRateChange?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
189
191
  onRateChangeCapture?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
190
- onResize?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
191
- onResizeCapture?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
192
192
  onSeeked?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
193
193
  onSeekedCapture?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
194
194
  onSeeking?: React.ReactEventHandler<HTMLTableCellElement> | undefined;
@@ -269,6 +269,8 @@ export default function DataTableCell<T = unknown>({ field, row, className, as,
269
269
  onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLTableCellElement> | undefined;
270
270
  onScroll?: React.UIEventHandler<HTMLTableCellElement> | undefined;
271
271
  onScrollCapture?: React.UIEventHandler<HTMLTableCellElement> | undefined;
272
+ onScrollEnd?: React.UIEventHandler<HTMLTableCellElement> | undefined;
273
+ onScrollEndCapture?: React.UIEventHandler<HTMLTableCellElement> | undefined;
272
274
  onWheel?: React.WheelEventHandler<HTMLTableCellElement> | undefined;
273
275
  onWheelCapture?: React.WheelEventHandler<HTMLTableCellElement> | undefined;
274
276
  onAnimationStart?: React.AnimationEventHandler<HTMLTableCellElement> | undefined;
package/dist/index.d.ts CHANGED
@@ -7,4 +7,4 @@ export { default as SortableTableHead } from './SortableTableHead';
7
7
  export { default as SortableTableTH } from './SortableTableTH';
8
8
  export { default as RowsPerPage, defaultRowsPerPageValues } from './RowsPerPage';
9
9
  export { default as TablePagination } from './TablePagination';
10
- export type { DataTableHeadProps, DataTableField, DataTableTHProps, DataTableClassNames, DataTableProps, SortableTableField, DataTableRowProps, DataTableTBodyProps, SortableTableTHProps, SortableTableHeadProps, SortProps, SortableTableProps, UISize, UIFlexAlign, TablePaginationProps, RowsPerPageProps } from './types';
10
+ export type { DataTableHeadProps, DataTableField, DataTableTHProps, DataTableClassNames, DataTableProps, SortableTableField, DataTableRowProps, DataTableTBodyProps, SortableTableTHProps, SortableTableHeadProps, SortProps, SortableTableProps, UISize, UIFlexAlign, TablePaginationProps, RowsPerPageProps, UITableSize, DataTableCellProps } from './types';
package/dist/types.d.ts CHANGED
@@ -70,6 +70,7 @@ export interface DataTableRowProps<T = unknown> extends Omit<TableHTMLAttributes
70
70
  onClick?: (row?: T) => T | void;
71
71
  }
72
72
  export interface SortableTableProps<T = unknown> extends DataTableProps<T> {
73
+ fields: SortableTableField<T>[];
73
74
  currentSort: SortProps<T>;
74
75
  onChangeSort: (sort: SortProps<T>) => void;
75
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chumsinc/sortable-tables",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "main": "./dist/index.js",
5
5
  "source": "./src/index.tsx",
6
6
  "types": "./dist/index.d.ts",
package/src/index.tsx CHANGED
@@ -8,7 +8,22 @@ export {default as SortableTableTH} from './SortableTableTH';
8
8
  export {default as RowsPerPage, defaultRowsPerPageValues} from './RowsPerPage';
9
9
  export {default as TablePagination} from './TablePagination';
10
10
  export type {
11
- DataTableHeadProps, DataTableField, DataTableTHProps, DataTableClassNames, DataTableProps,
12
- SortableTableField, DataTableRowProps, DataTableTBodyProps, SortableTableTHProps, SortableTableHeadProps,
13
- SortProps, SortableTableProps, UISize, UIFlexAlign, TablePaginationProps, RowsPerPageProps
11
+ DataTableHeadProps,
12
+ DataTableField,
13
+ DataTableTHProps,
14
+ DataTableClassNames,
15
+ DataTableProps,
16
+ SortableTableField,
17
+ DataTableRowProps,
18
+ DataTableTBodyProps,
19
+ SortableTableTHProps,
20
+ SortableTableHeadProps,
21
+ SortProps,
22
+ SortableTableProps,
23
+ UISize,
24
+ UIFlexAlign,
25
+ TablePaginationProps,
26
+ RowsPerPageProps,
27
+ UITableSize,
28
+ DataTableCellProps
14
29
  } from './types';
package/src/types.ts CHANGED
@@ -88,6 +88,7 @@ export interface DataTableRowProps<T = unknown> extends Omit <TableHTMLAttribute
88
88
  }
89
89
 
90
90
  export interface SortableTableProps<T = unknown> extends DataTableProps<T> {
91
+ fields: SortableTableField<T>[];
91
92
  currentSort: SortProps<T>;
92
93
  onChangeSort: (sort: SortProps<T>) => void;
93
94
  }