@chumsinc/sortable-tables 3.0.0 → 3.0.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 +67 -54
- package/dist/DataTable.d.ts +6 -6
- package/dist/DataTableCell.d.ts +299 -299
- package/dist/DataTableCols.d.ts +5 -5
- package/dist/DataTableContext.d.ts +10 -10
- package/dist/DataTableProvider.d.ts +12 -12
- package/dist/DataTableTH.d.ts +6 -6
- package/dist/SortableTable.d.ts +6 -6
- package/dist/SortableTableHead.d.ts +6 -6
- package/dist/SortableTableHeadWrapper.d.ts +9 -9
- package/dist/SortableTableTH.d.ts +6 -6
- package/dist/StandaloneDataTable.d.ts +6 -6
- package/dist/StandaloneDataTableRow.d.ts +9 -0
- package/dist/StandaloneSortHelper.d.ts +5 -5
- package/dist/StandaloneSortableTable.d.ts +6 -6
- package/dist/Table.d.ts +6 -6
- package/dist/index.cjs.js +30 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +20 -20
- package/dist/index.es.js +512 -521
- package/dist/index.es.js.map +1 -1
- package/dist/types.d.ts +104 -104
- package/dist/useField.d.ts +6 -6
- package/dist/useTableContext.d.ts +2 -2
- package/dist/useTableFields.d.ts +9 -9
- package/dist/useTableSort.d.ts +9 -9
- package/package.json +1 -1
- package/src/StandaloneDataTableRow.tsx +42 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,15 +7,28 @@ 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
|
-
#### [v3.0.
|
|
10
|
+
#### [v3.0.1](https://github.com/ChumsInc/sortable-tables/compare/v3.0.0...v3.0.1)
|
|
11
|
+
|
|
12
|
+
> 2026-01-19
|
|
13
|
+
|
|
14
|
+
|
|
11
15
|
|
|
12
|
-
> 2025-12-30
|
|
13
16
|
|
|
17
|
+
### Commits
|
|
18
|
+
|
|
19
|
+
- [`34ca622`](https://github.com/ChumsInc/sortable-tables/commit/34ca622de8fc42834d663a4d680091cf69f283cf) chore: npm updates & build
|
|
20
|
+
- [`34d095c`](https://github.com/ChumsInc/sortable-tables/commit/34d095ce9ec7c406b51a771d95e881cbc2459a94) fix: add StandaloneDataTableRow
|
|
21
|
+
- [`830d3ef`](https://github.com/ChumsInc/sortable-tables/commit/830d3ef5375905427c6434f8fd64ccfd34cbe679) chore: update readme
|
|
22
|
+
|
|
23
|
+
#### [v3.0.0](https://github.com/ChumsInc/sortable-tables/compare/v2.2.0...v3.0.0) - 2025-12-30
|
|
24
|
+
|
|
25
|
+
> 2025-12-30
|
|
14
26
|
|
|
15
27
|
|
|
16
28
|
|
|
17
|
-
### Commits
|
|
18
29
|
|
|
30
|
+
### Commits
|
|
31
|
+
|
|
19
32
|
- [`372fb75`](https://github.com/ChumsInc/sortable-tables/commit/372fb75f6401cdafe51a8c94bb725a9b5bb55054) Add DataTableProvider to allow for better modifying of columns.
|
|
20
33
|
- [`54f85e5`](https://github.com/ChumsInc/sortable-tables/commit/54f85e50d2390e7dfd2b9b3f4aad1a215abc51a5) Add DataTableProvider to allow for better modifying of columns.
|
|
21
34
|
- [`ca0dee4`](https://github.com/ChumsInc/sortable-tables/commit/ca0dee45c5f0e76c9239642e5946b171b0559fa0) chore: add type definitions for SortableTableHeadWrapper, declare component with displayName
|
|
@@ -31,8 +44,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
31
44
|
|
|
32
45
|
|
|
33
46
|
|
|
34
|
-
### Commits
|
|
35
|
-
|
|
47
|
+
### Commits
|
|
48
|
+
|
|
36
49
|
- [`78c1ccc`](https://github.com/ChumsInc/sortable-tables/commit/78c1ccc7fe0ccb1a98077ecdbbe75f21a8b08da5) chore: add new context-based table components and integrate TableProvider with useTableFields hook
|
|
37
50
|
|
|
38
51
|
#### [v2.1.3](https://github.com/ChumsInc/sortable-tables/compare/v2.1.2...v2.1.3) - 2025-12-15
|
|
@@ -42,8 +55,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
42
55
|
|
|
43
56
|
|
|
44
57
|
|
|
45
|
-
### Commits
|
|
46
|
-
|
|
58
|
+
### Commits
|
|
59
|
+
|
|
47
60
|
- [`f4bdc3e`](https://github.com/ChumsInc/sortable-tables/commit/f4bdc3e6007cad72623eafe7d823cbb15c5edf68) chore: replace classnames with clsx, add DataTableCols declaration, add DataTableCols with option for visibility:collapse
|
|
48
61
|
|
|
49
62
|
#### [v2.1.2](https://github.com/ChumsInc/sortable-tables/compare/v2.1.1...v2.1.2) - 2025-12-02
|
|
@@ -53,8 +66,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
53
66
|
|
|
54
67
|
|
|
55
68
|
|
|
56
|
-
### Commits
|
|
57
|
-
|
|
69
|
+
### Commits
|
|
70
|
+
|
|
58
71
|
- [`210a01e`](https://github.com/ChumsInc/sortable-tables/commit/210a01e9cf4e62a63d569bd6ced41a26f17b5ae5) chore: update dependencies in package-lock.json
|
|
59
72
|
|
|
60
73
|
#### [v2.1.1](https://github.com/ChumsInc/sortable-tables/compare/v2.1.0...v2.1.1) - 2025-11-04
|
|
@@ -64,8 +77,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
64
77
|
|
|
65
78
|
|
|
66
79
|
|
|
67
|
-
### Commits
|
|
68
|
-
|
|
80
|
+
### Commits
|
|
81
|
+
|
|
69
82
|
- [`be79047`](https://github.com/ChumsInc/sortable-tables/commit/be79047541456eee2006706438b55aa61aed4fc1) chore: update types and dependencies
|
|
70
83
|
|
|
71
84
|
#### [v2.1.0](https://github.com/ChumsInc/sortable-tables/compare/v2.0.14...v2.1.0) - 2025-11-03
|
|
@@ -75,8 +88,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
75
88
|
|
|
76
89
|
|
|
77
90
|
|
|
78
|
-
### Commits
|
|
79
|
-
|
|
91
|
+
### Commits
|
|
92
|
+
|
|
80
93
|
- [`7b2a057`](https://github.com/ChumsInc/sortable-tables/commit/7b2a057454d2b46affe2cccfce060c7812065a23) migrate to vite library build
|
|
81
94
|
- [`ae562e9`](https://github.com/ChumsInc/sortable-tables/commit/ae562e9c631b94c367f87ff5df70e849ee0405a2) migrate to vite library build
|
|
82
95
|
|
|
@@ -87,8 +100,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
87
100
|
|
|
88
101
|
|
|
89
102
|
|
|
90
|
-
### Commits
|
|
91
|
-
|
|
103
|
+
### Commits
|
|
104
|
+
|
|
92
105
|
- [`48f4b1f`](https://github.com/ChumsInc/sortable-tables/commit/48f4b1f0df1e94a4eede5e1333a25262b28f4cdd) chore: npm updates, apply className attribute to rendered table.
|
|
93
106
|
|
|
94
107
|
#### [v2.0.13](https://github.com/ChumsInc/sortable-tables/compare/v2.0.12...v2.0.13) - 2025-07-08
|
|
@@ -98,8 +111,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
98
111
|
|
|
99
112
|
|
|
100
113
|
|
|
101
|
-
### Commits
|
|
102
|
-
|
|
114
|
+
### Commits
|
|
115
|
+
|
|
103
116
|
- [`4f9d4cc`](https://github.com/ChumsInc/sortable-tables/commit/4f9d4cc0cb6da9c27fa26c93bfd6ee302a70ff3c) fix: still trying to make it work for MouseEvent typing ... perhaps I should learn to write tests?
|
|
104
117
|
|
|
105
118
|
#### [v2.0.12](https://github.com/ChumsInc/sortable-tables/compare/v2.0.11...v2.0.12) - 2025-07-08
|
|
@@ -109,8 +122,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
109
122
|
|
|
110
123
|
|
|
111
124
|
|
|
112
|
-
### Commits
|
|
113
|
-
|
|
125
|
+
### Commits
|
|
126
|
+
|
|
114
127
|
- [`23062bc`](https://github.com/ChumsInc/sortable-tables/commit/23062bc7b9bb8764c1a83f96f3c1e75db292fbf4) fix: types.d.ts did not seem to get updated on last build
|
|
115
128
|
|
|
116
129
|
#### [v2.0.11](https://github.com/ChumsInc/sortable-tables/compare/v2.0.10...v2.0.11) - 2025-07-08
|
|
@@ -120,8 +133,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
120
133
|
|
|
121
134
|
|
|
122
135
|
|
|
123
|
-
### Commits
|
|
124
|
-
|
|
136
|
+
### Commits
|
|
137
|
+
|
|
125
138
|
- [`83848ad`](https://github.com/ChumsInc/sortable-tables/commit/83848ad28bad0dcd659f3a4bcf2a9ee1ab44d860) fix: add stricter typing for onSelectRow MouseEvent<HTMLTableRowElement>
|
|
126
139
|
|
|
127
140
|
#### [v2.0.10](https://github.com/ChumsInc/sortable-tables/compare/v2.0.9...v2.0.10) - 2025-07-07
|
|
@@ -131,8 +144,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
131
144
|
|
|
132
145
|
|
|
133
146
|
|
|
134
|
-
### Commits
|
|
135
|
-
|
|
147
|
+
### Commits
|
|
148
|
+
|
|
136
149
|
- [`8f314f4`](https://github.com/ChumsInc/sortable-tables/commit/8f314f4f89a0f47382de3a678b8ec124ac44ebdf) fix: allow key modifiers to be passed on onSelectRow
|
|
137
150
|
- [`7267ff2`](https://github.com/ChumsInc/sortable-tables/commit/7267ff20a6a233043919c53e46113f5300dea9af) fix: allow key modifiers to be passed on onSelectRow
|
|
138
151
|
|
|
@@ -143,8 +156,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
143
156
|
|
|
144
157
|
|
|
145
158
|
|
|
146
|
-
### Commits
|
|
147
|
-
|
|
159
|
+
### Commits
|
|
160
|
+
|
|
148
161
|
- [`08001a6`](https://github.com/ChumsInc/sortable-tables/commit/08001a6604fea9ae723147f36a54261d798153c8) fix: add correct fields type for SortableTableProps, npm updates
|
|
149
162
|
|
|
150
163
|
#### [v2.0.8](https://github.com/ChumsInc/sortable-tables/compare/v2.0.7...v2.0.8) - 2025-03-13
|
|
@@ -154,8 +167,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
154
167
|
|
|
155
168
|
|
|
156
169
|
|
|
157
|
-
### Commits
|
|
158
|
-
|
|
170
|
+
### Commits
|
|
171
|
+
|
|
159
172
|
- [`ad120cd`](https://github.com/ChumsInc/sortable-tables/commit/ad120cd7f521d194613370aa91befd24582aef5d) fix: allow React.ReactNode for rowsPerPage label
|
|
160
173
|
|
|
161
174
|
#### [v2.0.7](https://github.com/ChumsInc/sortable-tables/compare/v2.0.6...v2.0.7) - 2025-02-27
|
|
@@ -165,8 +178,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
165
178
|
|
|
166
179
|
|
|
167
180
|
|
|
168
|
-
### Commits
|
|
169
|
-
|
|
181
|
+
### Commits
|
|
182
|
+
|
|
170
183
|
- [`2350125`](https://github.com/ChumsInc/sortable-tables/commit/2350125f5fca9545c2ca1136191af5f765313e4f) fix: always show datacell contents if the render attribute is not undefined.
|
|
171
184
|
- [`3ffa14a`](https://github.com/ChumsInc/sortable-tables/commit/3ffa14a3f1648173a9d8c896abe886c26928506e) chore: npm updates
|
|
172
185
|
- [`364895d`](https://github.com/ChumsInc/sortable-tables/commit/364895dd31a6aa4a8b8d4911b965323637a7e85f) chore: update README.md
|
|
@@ -181,11 +194,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
181
194
|
|
|
182
195
|
|
|
183
196
|
|
|
184
|
-
### Commits
|
|
185
|
-
|
|
186
|
-
- [`4d7716d`](https://github.com/ChumsInc/sortable-tables/commit/4d7716d5d23eac513b3761c03b722aeba250019b) fix: Accessibility fixes
|
|
187
|
-
- aria labels for pagination buttons
|
|
188
|
-
- allow set table cell as TD or TH
|
|
197
|
+
### Commits
|
|
198
|
+
|
|
199
|
+
- [`4d7716d`](https://github.com/ChumsInc/sortable-tables/commit/4d7716d5d23eac513b3761c03b722aeba250019b) fix: Accessibility fixes
|
|
200
|
+
- aria labels for pagination buttons
|
|
201
|
+
- allow set table cell as TD or TH
|
|
189
202
|
- set scope on sortable table header cell
|
|
190
203
|
|
|
191
204
|
#### [v2.0.5](https://github.com/ChumsInc/sortable-tables/compare/v2.0.4...v2.0.5) - 2025-02-07
|
|
@@ -195,8 +208,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
195
208
|
|
|
196
209
|
|
|
197
210
|
|
|
198
|
-
### Commits
|
|
199
|
-
|
|
211
|
+
### Commits
|
|
212
|
+
|
|
200
213
|
- [`cd6ae46`](https://github.com/ChumsInc/sortable-tables/commit/cd6ae4690642081d649933f3a6828f180db50cc3) fix: RowsPerPage select element was missing id attribute
|
|
201
214
|
|
|
202
215
|
#### [v2.0.4](https://github.com/ChumsInc/sortable-tables/compare/v2.0.3...v2.0.4) - 2025-02-06
|
|
@@ -206,11 +219,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
206
219
|
|
|
207
220
|
|
|
208
221
|
|
|
209
|
-
### Commits
|
|
210
|
-
|
|
211
|
-
- [`82a8737`](https://github.com/ChumsInc/sortable-tables/commit/82a87377d0a63ae4ea4826a7842640c3efc19d6c) feat:
|
|
212
|
-
- add responsive option
|
|
213
|
-
- add sort indicator alignment
|
|
222
|
+
### Commits
|
|
223
|
+
|
|
224
|
+
- [`82a8737`](https://github.com/ChumsInc/sortable-tables/commit/82a87377d0a63ae4ea4826a7842640c3efc19d6c) feat:
|
|
225
|
+
- add responsive option
|
|
226
|
+
- add sort indicator alignment
|
|
214
227
|
- add testing (visual, not automated)
|
|
215
228
|
- [`4f31f68`](https://github.com/ChumsInc/sortable-tables/commit/4f31f68f59875bfde20e7a3bf828b0e41c91bba0) feat: Show sort icon on hover.
|
|
216
229
|
- [`116487f`](https://github.com/ChumsInc/sortable-tables/commit/116487f5edd46c47eedc721c6feb2b71e92c189c) feat: Show sort icon on hover over the TH
|
|
@@ -222,8 +235,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
222
235
|
|
|
223
236
|
|
|
224
237
|
|
|
225
|
-
### Commits
|
|
226
|
-
|
|
238
|
+
### Commits
|
|
239
|
+
|
|
227
240
|
- [`b3e03b4`](https://github.com/ChumsInc/sortable-tables/commit/b3e03b4887b87c7cf744be4fda396cb2f41d7e1d) feat: Show sort icon on hover.
|
|
228
241
|
|
|
229
242
|
#### [v2.0.2](https://github.com/ChumsInc/sortable-tables/compare/v2.0.1...v2.0.2) - 2025-02-05
|
|
@@ -233,8 +246,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
233
246
|
|
|
234
247
|
|
|
235
248
|
|
|
236
|
-
### Commits
|
|
237
|
-
|
|
249
|
+
### Commits
|
|
250
|
+
|
|
238
251
|
- [`6127c13`](https://github.com/ChumsInc/sortable-tables/commit/6127c13ef9c987b28e64c6883ea3c2e12026c9ff) fix: ensure thProps.className gets applied to SortableTH
|
|
239
252
|
|
|
240
253
|
#### v2.0.1 - 2025-02-05
|
|
@@ -244,19 +257,19 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
244
257
|
|
|
245
258
|
|
|
246
259
|
|
|
247
|
-
### Commits
|
|
248
|
-
|
|
260
|
+
### Commits
|
|
261
|
+
|
|
249
262
|
- [`319cf62`](https://github.com/ChumsInc/sortable-tables/commit/319cf620ace584d7a1a5962879d007da898c0905) Initial commit
|
|
250
263
|
- [`76ff58a`](https://github.com/ChumsInc/sortable-tables/commit/76ff58a7005dfea279dbdbb04303b3fca65bcc22) initial commit, time for testing.
|
|
251
|
-
- [`d8639dc`](https://github.com/ChumsInc/sortable-tables/commit/d8639dc51c0373a1123b5e5b751caa89f2873b6a) fix: add dist directory
|
|
252
|
-
- updates to package.json
|
|
264
|
+
- [`d8639dc`](https://github.com/ChumsInc/sortable-tables/commit/d8639dc51c0373a1123b5e5b751caa89f2873b6a) fix: add dist directory
|
|
265
|
+
- updates to package.json
|
|
253
266
|
- updates to tsconfig.json
|
|
254
|
-
- [`e314afe`](https://github.com/ChumsInc/sortable-tables/commit/e314afefd0bb93f493867daca924bcba4992e78e) features:
|
|
255
|
-
- include TablePagination element
|
|
256
|
-
- RowsPerPage select
|
|
267
|
+
- [`e314afe`](https://github.com/ChumsInc/sortable-tables/commit/e314afefd0bb93f493867daca924bcba4992e78e) features:
|
|
268
|
+
- include TablePagination element
|
|
269
|
+
- RowsPerPage select
|
|
257
270
|
- add displayName to each component
|
|
258
|
-
- [`472dac4`](https://github.com/ChumsInc/sortable-tables/commit/472dac4f942d729db8cabccfd15d50acf0ec9d90) fixes
|
|
259
|
-
- add label option for RowsPerPage
|
|
271
|
+
- [`472dac4`](https://github.com/ChumsInc/sortable-tables/commit/472dac4f942d729db8cabccfd15d50acf0ec9d90) fixes
|
|
272
|
+
- add label option for RowsPerPage
|
|
260
273
|
- update TablePagination layout
|
|
261
274
|
- [`29d01eb`](https://github.com/ChumsInc/sortable-tables/commit/29d01eb21114a805c75e64838497c8f309676879) fix: add xs table size
|
|
262
275
|
- [`ef2b963`](https://github.com/ChumsInc/sortable-tables/commit/ef2b963564efd036d052acde54e471d4319aa46e) chore: Update README to specific to that package.
|
package/dist/DataTable.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DataTableProps } from './types';
|
|
2
|
-
declare function DataTable<T = unknown>({ className, size, responsive, sticky, data, keyField, rowClassName, renderRow, onSelectRow, selected, tableHeadProps, children, tfoot, ...rest }: Omit<DataTableProps<T>, 'fields'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare namespace DataTable {
|
|
4
|
-
var displayName: string;
|
|
5
|
-
}
|
|
6
|
-
export default DataTable;
|
|
1
|
+
import { DataTableProps } from './types';
|
|
2
|
+
declare function DataTable<T = unknown>({ className, size, responsive, sticky, data, keyField, rowClassName, renderRow, onSelectRow, selected, tableHeadProps, children, tfoot, ...rest }: Omit<DataTableProps<T>, 'fields'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace DataTable {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export default DataTable;
|