@chumsinc/sortable-tables 3.0.0 → 3.0.2
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 +78 -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 +22 -20
- package/dist/index.es.js +538 -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/src/index.tsx +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,15 +7,39 @@ 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.2](https://github.com/ChumsInc/sortable-tables/compare/v3.0.1...v3.0.2)
|
|
11
|
+
|
|
12
|
+
> 2026-01-19
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Commits
|
|
18
|
+
|
|
19
|
+
- [`257cd6b`](https://github.com/ChumsInc/sortable-tables/commit/257cd6b3413045f481b4bf3cc689e07a2835bfa3) chore: update source mappings for index.es.js
|
|
20
|
+
|
|
21
|
+
#### [v3.0.1](https://github.com/ChumsInc/sortable-tables/compare/v3.0.0...v3.0.1) - 2026-01-19
|
|
22
|
+
|
|
23
|
+
> 2026-01-19
|
|
11
24
|
|
|
12
|
-
> 2025-12-30
|
|
13
25
|
|
|
14
26
|
|
|
15
27
|
|
|
28
|
+
### Commits
|
|
29
|
+
|
|
30
|
+
- [`34ca622`](https://github.com/ChumsInc/sortable-tables/commit/34ca622de8fc42834d663a4d680091cf69f283cf) chore: npm updates & build
|
|
31
|
+
- [`34d095c`](https://github.com/ChumsInc/sortable-tables/commit/34d095ce9ec7c406b51a771d95e881cbc2459a94) fix: add StandaloneDataTableRow
|
|
32
|
+
- [`830d3ef`](https://github.com/ChumsInc/sortable-tables/commit/830d3ef5375905427c6434f8fd64ccfd34cbe679) chore: update readme
|
|
16
33
|
|
|
17
|
-
|
|
34
|
+
#### [v3.0.0](https://github.com/ChumsInc/sortable-tables/compare/v2.2.0...v3.0.0) - 2025-12-30
|
|
18
35
|
|
|
36
|
+
> 2025-12-30
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Commits
|
|
42
|
+
|
|
19
43
|
- [`372fb75`](https://github.com/ChumsInc/sortable-tables/commit/372fb75f6401cdafe51a8c94bb725a9b5bb55054) Add DataTableProvider to allow for better modifying of columns.
|
|
20
44
|
- [`54f85e5`](https://github.com/ChumsInc/sortable-tables/commit/54f85e50d2390e7dfd2b9b3f4aad1a215abc51a5) Add DataTableProvider to allow for better modifying of columns.
|
|
21
45
|
- [`ca0dee4`](https://github.com/ChumsInc/sortable-tables/commit/ca0dee45c5f0e76c9239642e5946b171b0559fa0) chore: add type definitions for SortableTableHeadWrapper, declare component with displayName
|
|
@@ -31,8 +55,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
31
55
|
|
|
32
56
|
|
|
33
57
|
|
|
34
|
-
### Commits
|
|
35
|
-
|
|
58
|
+
### Commits
|
|
59
|
+
|
|
36
60
|
- [`78c1ccc`](https://github.com/ChumsInc/sortable-tables/commit/78c1ccc7fe0ccb1a98077ecdbbe75f21a8b08da5) chore: add new context-based table components and integrate TableProvider with useTableFields hook
|
|
37
61
|
|
|
38
62
|
#### [v2.1.3](https://github.com/ChumsInc/sortable-tables/compare/v2.1.2...v2.1.3) - 2025-12-15
|
|
@@ -42,8 +66,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
42
66
|
|
|
43
67
|
|
|
44
68
|
|
|
45
|
-
### Commits
|
|
46
|
-
|
|
69
|
+
### Commits
|
|
70
|
+
|
|
47
71
|
- [`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
72
|
|
|
49
73
|
#### [v2.1.2](https://github.com/ChumsInc/sortable-tables/compare/v2.1.1...v2.1.2) - 2025-12-02
|
|
@@ -53,8 +77,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
53
77
|
|
|
54
78
|
|
|
55
79
|
|
|
56
|
-
### Commits
|
|
57
|
-
|
|
80
|
+
### Commits
|
|
81
|
+
|
|
58
82
|
- [`210a01e`](https://github.com/ChumsInc/sortable-tables/commit/210a01e9cf4e62a63d569bd6ced41a26f17b5ae5) chore: update dependencies in package-lock.json
|
|
59
83
|
|
|
60
84
|
#### [v2.1.1](https://github.com/ChumsInc/sortable-tables/compare/v2.1.0...v2.1.1) - 2025-11-04
|
|
@@ -64,8 +88,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
64
88
|
|
|
65
89
|
|
|
66
90
|
|
|
67
|
-
### Commits
|
|
68
|
-
|
|
91
|
+
### Commits
|
|
92
|
+
|
|
69
93
|
- [`be79047`](https://github.com/ChumsInc/sortable-tables/commit/be79047541456eee2006706438b55aa61aed4fc1) chore: update types and dependencies
|
|
70
94
|
|
|
71
95
|
#### [v2.1.0](https://github.com/ChumsInc/sortable-tables/compare/v2.0.14...v2.1.0) - 2025-11-03
|
|
@@ -75,8 +99,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
75
99
|
|
|
76
100
|
|
|
77
101
|
|
|
78
|
-
### Commits
|
|
79
|
-
|
|
102
|
+
### Commits
|
|
103
|
+
|
|
80
104
|
- [`7b2a057`](https://github.com/ChumsInc/sortable-tables/commit/7b2a057454d2b46affe2cccfce060c7812065a23) migrate to vite library build
|
|
81
105
|
- [`ae562e9`](https://github.com/ChumsInc/sortable-tables/commit/ae562e9c631b94c367f87ff5df70e849ee0405a2) migrate to vite library build
|
|
82
106
|
|
|
@@ -87,8 +111,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
87
111
|
|
|
88
112
|
|
|
89
113
|
|
|
90
|
-
### Commits
|
|
91
|
-
|
|
114
|
+
### Commits
|
|
115
|
+
|
|
92
116
|
- [`48f4b1f`](https://github.com/ChumsInc/sortable-tables/commit/48f4b1f0df1e94a4eede5e1333a25262b28f4cdd) chore: npm updates, apply className attribute to rendered table.
|
|
93
117
|
|
|
94
118
|
#### [v2.0.13](https://github.com/ChumsInc/sortable-tables/compare/v2.0.12...v2.0.13) - 2025-07-08
|
|
@@ -98,8 +122,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
98
122
|
|
|
99
123
|
|
|
100
124
|
|
|
101
|
-
### Commits
|
|
102
|
-
|
|
125
|
+
### Commits
|
|
126
|
+
|
|
103
127
|
- [`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
128
|
|
|
105
129
|
#### [v2.0.12](https://github.com/ChumsInc/sortable-tables/compare/v2.0.11...v2.0.12) - 2025-07-08
|
|
@@ -109,8 +133,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
109
133
|
|
|
110
134
|
|
|
111
135
|
|
|
112
|
-
### Commits
|
|
113
|
-
|
|
136
|
+
### Commits
|
|
137
|
+
|
|
114
138
|
- [`23062bc`](https://github.com/ChumsInc/sortable-tables/commit/23062bc7b9bb8764c1a83f96f3c1e75db292fbf4) fix: types.d.ts did not seem to get updated on last build
|
|
115
139
|
|
|
116
140
|
#### [v2.0.11](https://github.com/ChumsInc/sortable-tables/compare/v2.0.10...v2.0.11) - 2025-07-08
|
|
@@ -120,8 +144,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
120
144
|
|
|
121
145
|
|
|
122
146
|
|
|
123
|
-
### Commits
|
|
124
|
-
|
|
147
|
+
### Commits
|
|
148
|
+
|
|
125
149
|
- [`83848ad`](https://github.com/ChumsInc/sortable-tables/commit/83848ad28bad0dcd659f3a4bcf2a9ee1ab44d860) fix: add stricter typing for onSelectRow MouseEvent<HTMLTableRowElement>
|
|
126
150
|
|
|
127
151
|
#### [v2.0.10](https://github.com/ChumsInc/sortable-tables/compare/v2.0.9...v2.0.10) - 2025-07-07
|
|
@@ -131,8 +155,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
131
155
|
|
|
132
156
|
|
|
133
157
|
|
|
134
|
-
### Commits
|
|
135
|
-
|
|
158
|
+
### Commits
|
|
159
|
+
|
|
136
160
|
- [`8f314f4`](https://github.com/ChumsInc/sortable-tables/commit/8f314f4f89a0f47382de3a678b8ec124ac44ebdf) fix: allow key modifiers to be passed on onSelectRow
|
|
137
161
|
- [`7267ff2`](https://github.com/ChumsInc/sortable-tables/commit/7267ff20a6a233043919c53e46113f5300dea9af) fix: allow key modifiers to be passed on onSelectRow
|
|
138
162
|
|
|
@@ -143,8 +167,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
143
167
|
|
|
144
168
|
|
|
145
169
|
|
|
146
|
-
### Commits
|
|
147
|
-
|
|
170
|
+
### Commits
|
|
171
|
+
|
|
148
172
|
- [`08001a6`](https://github.com/ChumsInc/sortable-tables/commit/08001a6604fea9ae723147f36a54261d798153c8) fix: add correct fields type for SortableTableProps, npm updates
|
|
149
173
|
|
|
150
174
|
#### [v2.0.8](https://github.com/ChumsInc/sortable-tables/compare/v2.0.7...v2.0.8) - 2025-03-13
|
|
@@ -154,8 +178,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
154
178
|
|
|
155
179
|
|
|
156
180
|
|
|
157
|
-
### Commits
|
|
158
|
-
|
|
181
|
+
### Commits
|
|
182
|
+
|
|
159
183
|
- [`ad120cd`](https://github.com/ChumsInc/sortable-tables/commit/ad120cd7f521d194613370aa91befd24582aef5d) fix: allow React.ReactNode for rowsPerPage label
|
|
160
184
|
|
|
161
185
|
#### [v2.0.7](https://github.com/ChumsInc/sortable-tables/compare/v2.0.6...v2.0.7) - 2025-02-27
|
|
@@ -165,8 +189,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
165
189
|
|
|
166
190
|
|
|
167
191
|
|
|
168
|
-
### Commits
|
|
169
|
-
|
|
192
|
+
### Commits
|
|
193
|
+
|
|
170
194
|
- [`2350125`](https://github.com/ChumsInc/sortable-tables/commit/2350125f5fca9545c2ca1136191af5f765313e4f) fix: always show datacell contents if the render attribute is not undefined.
|
|
171
195
|
- [`3ffa14a`](https://github.com/ChumsInc/sortable-tables/commit/3ffa14a3f1648173a9d8c896abe886c26928506e) chore: npm updates
|
|
172
196
|
- [`364895d`](https://github.com/ChumsInc/sortable-tables/commit/364895dd31a6aa4a8b8d4911b965323637a7e85f) chore: update README.md
|
|
@@ -181,11 +205,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
181
205
|
|
|
182
206
|
|
|
183
207
|
|
|
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
|
|
208
|
+
### Commits
|
|
209
|
+
|
|
210
|
+
- [`4d7716d`](https://github.com/ChumsInc/sortable-tables/commit/4d7716d5d23eac513b3761c03b722aeba250019b) fix: Accessibility fixes
|
|
211
|
+
- aria labels for pagination buttons
|
|
212
|
+
- allow set table cell as TD or TH
|
|
189
213
|
- set scope on sortable table header cell
|
|
190
214
|
|
|
191
215
|
#### [v2.0.5](https://github.com/ChumsInc/sortable-tables/compare/v2.0.4...v2.0.5) - 2025-02-07
|
|
@@ -195,8 +219,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
195
219
|
|
|
196
220
|
|
|
197
221
|
|
|
198
|
-
### Commits
|
|
199
|
-
|
|
222
|
+
### Commits
|
|
223
|
+
|
|
200
224
|
- [`cd6ae46`](https://github.com/ChumsInc/sortable-tables/commit/cd6ae4690642081d649933f3a6828f180db50cc3) fix: RowsPerPage select element was missing id attribute
|
|
201
225
|
|
|
202
226
|
#### [v2.0.4](https://github.com/ChumsInc/sortable-tables/compare/v2.0.3...v2.0.4) - 2025-02-06
|
|
@@ -206,11 +230,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
206
230
|
|
|
207
231
|
|
|
208
232
|
|
|
209
|
-
### Commits
|
|
210
|
-
|
|
211
|
-
- [`82a8737`](https://github.com/ChumsInc/sortable-tables/commit/82a87377d0a63ae4ea4826a7842640c3efc19d6c) feat:
|
|
212
|
-
- add responsive option
|
|
213
|
-
- add sort indicator alignment
|
|
233
|
+
### Commits
|
|
234
|
+
|
|
235
|
+
- [`82a8737`](https://github.com/ChumsInc/sortable-tables/commit/82a87377d0a63ae4ea4826a7842640c3efc19d6c) feat:
|
|
236
|
+
- add responsive option
|
|
237
|
+
- add sort indicator alignment
|
|
214
238
|
- add testing (visual, not automated)
|
|
215
239
|
- [`4f31f68`](https://github.com/ChumsInc/sortable-tables/commit/4f31f68f59875bfde20e7a3bf828b0e41c91bba0) feat: Show sort icon on hover.
|
|
216
240
|
- [`116487f`](https://github.com/ChumsInc/sortable-tables/commit/116487f5edd46c47eedc721c6feb2b71e92c189c) feat: Show sort icon on hover over the TH
|
|
@@ -222,8 +246,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
222
246
|
|
|
223
247
|
|
|
224
248
|
|
|
225
|
-
### Commits
|
|
226
|
-
|
|
249
|
+
### Commits
|
|
250
|
+
|
|
227
251
|
- [`b3e03b4`](https://github.com/ChumsInc/sortable-tables/commit/b3e03b4887b87c7cf744be4fda396cb2f41d7e1d) feat: Show sort icon on hover.
|
|
228
252
|
|
|
229
253
|
#### [v2.0.2](https://github.com/ChumsInc/sortable-tables/compare/v2.0.1...v2.0.2) - 2025-02-05
|
|
@@ -233,8 +257,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
233
257
|
|
|
234
258
|
|
|
235
259
|
|
|
236
|
-
### Commits
|
|
237
|
-
|
|
260
|
+
### Commits
|
|
261
|
+
|
|
238
262
|
- [`6127c13`](https://github.com/ChumsInc/sortable-tables/commit/6127c13ef9c987b28e64c6883ea3c2e12026c9ff) fix: ensure thProps.className gets applied to SortableTH
|
|
239
263
|
|
|
240
264
|
#### v2.0.1 - 2025-02-05
|
|
@@ -244,19 +268,19 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
244
268
|
|
|
245
269
|
|
|
246
270
|
|
|
247
|
-
### Commits
|
|
248
|
-
|
|
271
|
+
### Commits
|
|
272
|
+
|
|
249
273
|
- [`319cf62`](https://github.com/ChumsInc/sortable-tables/commit/319cf620ace584d7a1a5962879d007da898c0905) Initial commit
|
|
250
274
|
- [`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
|
|
275
|
+
- [`d8639dc`](https://github.com/ChumsInc/sortable-tables/commit/d8639dc51c0373a1123b5e5b751caa89f2873b6a) fix: add dist directory
|
|
276
|
+
- updates to package.json
|
|
253
277
|
- updates to tsconfig.json
|
|
254
|
-
- [`e314afe`](https://github.com/ChumsInc/sortable-tables/commit/e314afefd0bb93f493867daca924bcba4992e78e) features:
|
|
255
|
-
- include TablePagination element
|
|
256
|
-
- RowsPerPage select
|
|
278
|
+
- [`e314afe`](https://github.com/ChumsInc/sortable-tables/commit/e314afefd0bb93f493867daca924bcba4992e78e) features:
|
|
279
|
+
- include TablePagination element
|
|
280
|
+
- RowsPerPage select
|
|
257
281
|
- add displayName to each component
|
|
258
|
-
- [`472dac4`](https://github.com/ChumsInc/sortable-tables/commit/472dac4f942d729db8cabccfd15d50acf0ec9d90) fixes
|
|
259
|
-
- add label option for RowsPerPage
|
|
282
|
+
- [`472dac4`](https://github.com/ChumsInc/sortable-tables/commit/472dac4f942d729db8cabccfd15d50acf0ec9d90) fixes
|
|
283
|
+
- add label option for RowsPerPage
|
|
260
284
|
- update TablePagination layout
|
|
261
285
|
- [`29d01eb`](https://github.com/ChumsInc/sortable-tables/commit/29d01eb21114a805c75e64838497c8f309676879) fix: add xs table size
|
|
262
286
|
- [`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;
|