@atlaskit/table 0.4.28 → 0.4.30
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 +129 -57
- package/dist/cjs/ui/base-cell.js +4 -2
- package/dist/cjs/ui/th.js +4 -2
- package/dist/es2019/ui/base-cell.js +4 -2
- package/dist/es2019/ui/th.js +4 -2
- package/dist/esm/ui/base-cell.js +4 -2
- package/dist/esm/ui/th.js +4 -2
- package/dist/types/ui/base-cell.d.ts +10 -2
- package/dist/types/ui/th.d.ts +2 -2
- package/dist/types-ts4.5/ui/base-cell.d.ts +10 -2
- package/dist/types-ts4.5/ui/th.d.ts +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,302 +1,374 @@
|
|
|
1
1
|
# @atlaskit/table
|
|
2
2
|
|
|
3
|
+
## 0.4.30
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.4.29
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#95783](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95783)
|
|
14
|
+
[`3c001bfc3c35`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3c001bfc3c35) -
|
|
15
|
+
Added `rowSpan` prop to `<BaseCell>`. Added `colSpan` prop to `<TH>`.
|
|
16
|
+
|
|
3
17
|
## 0.4.28
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
6
20
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
21
|
+
- [#92007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92007)
|
|
22
|
+
[`85525725cb0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/85525725cb0d) -
|
|
23
|
+
Migrated to the new button component
|
|
24
|
+
- Updated dependencies
|
|
9
25
|
|
|
10
26
|
## 0.4.27
|
|
11
27
|
|
|
12
28
|
### Patch Changes
|
|
13
29
|
|
|
14
|
-
-
|
|
30
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
31
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
32
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
15
33
|
|
|
16
34
|
## 0.4.26
|
|
17
35
|
|
|
18
36
|
### Patch Changes
|
|
19
37
|
|
|
20
|
-
-
|
|
38
|
+
- Updated dependencies
|
|
21
39
|
|
|
22
40
|
## 0.4.25
|
|
23
41
|
|
|
24
42
|
### Patch Changes
|
|
25
43
|
|
|
26
|
-
-
|
|
44
|
+
- [#78598](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78598)
|
|
45
|
+
[`cabae83473c3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cabae83473c3) -
|
|
46
|
+
[ux] Focus styles for Checkbox and Radio components
|
|
27
47
|
|
|
28
48
|
## 0.4.24
|
|
29
49
|
|
|
30
50
|
### Patch Changes
|
|
31
51
|
|
|
32
|
-
-
|
|
52
|
+
- Updated dependencies
|
|
33
53
|
|
|
34
54
|
## 0.4.23
|
|
35
55
|
|
|
36
56
|
### Patch Changes
|
|
37
57
|
|
|
38
|
-
-
|
|
39
|
-
-
|
|
58
|
+
- [#77488](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77488)
|
|
59
|
+
[`27e6fdab53dc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/27e6fdab53dc) -
|
|
60
|
+
Cells now use logical property styles.
|
|
61
|
+
- Updated dependencies
|
|
40
62
|
|
|
41
63
|
## 0.4.22
|
|
42
64
|
|
|
43
65
|
### Patch Changes
|
|
44
66
|
|
|
45
|
-
-
|
|
67
|
+
- Updated dependencies
|
|
46
68
|
|
|
47
69
|
## 0.4.21
|
|
48
70
|
|
|
49
71
|
### Patch Changes
|
|
50
72
|
|
|
51
|
-
-
|
|
52
|
-
-
|
|
73
|
+
- [#75714](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75714)
|
|
74
|
+
[`33f4a64132a3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/33f4a64132a3) -
|
|
75
|
+
Remove duplicate accessible labels on Icon buttons, which were unnecessarily added through the
|
|
76
|
+
`aria-label` attribute.
|
|
77
|
+
- Updated dependencies
|
|
53
78
|
|
|
54
79
|
## 0.4.20
|
|
55
80
|
|
|
56
81
|
### Patch Changes
|
|
57
82
|
|
|
58
|
-
-
|
|
83
|
+
- Updated dependencies
|
|
59
84
|
|
|
60
85
|
## 0.4.19
|
|
61
86
|
|
|
62
87
|
### Patch Changes
|
|
63
88
|
|
|
64
|
-
-
|
|
89
|
+
- [#65875](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65875)
|
|
90
|
+
[`98e49fd3f04d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/98e49fd3f04d) -
|
|
91
|
+
[ux] Updated buttons in table to consume new buttons.
|
|
65
92
|
|
|
66
93
|
## 0.4.18
|
|
67
94
|
|
|
68
95
|
### Patch Changes
|
|
69
96
|
|
|
70
|
-
-
|
|
97
|
+
- Updated dependencies
|
|
71
98
|
|
|
72
99
|
## 0.4.17
|
|
73
100
|
|
|
74
101
|
### Patch Changes
|
|
75
102
|
|
|
76
|
-
-
|
|
103
|
+
- Updated dependencies
|
|
77
104
|
|
|
78
105
|
## 0.4.16
|
|
79
106
|
|
|
80
107
|
### Patch Changes
|
|
81
108
|
|
|
82
|
-
-
|
|
109
|
+
- Updated dependencies
|
|
83
110
|
|
|
84
111
|
## 0.4.15
|
|
85
112
|
|
|
86
113
|
### Patch Changes
|
|
87
114
|
|
|
88
|
-
-
|
|
115
|
+
- Updated dependencies
|
|
89
116
|
|
|
90
117
|
## 0.4.14
|
|
91
118
|
|
|
92
119
|
### Patch Changes
|
|
93
120
|
|
|
94
|
-
-
|
|
95
|
-
|
|
121
|
+
- [#37533](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37533)
|
|
122
|
+
[`1ed303de3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed303de3e8) -
|
|
123
|
+
Updated dependencies
|
|
124
|
+
- [#37419](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37419)
|
|
125
|
+
[`95401cac781`](https://bitbucket.org/atlassian/atlassian-frontend/commits/95401cac781) -
|
|
126
|
+
Internal change to component composition. There is no expected change.
|
|
96
127
|
|
|
97
128
|
## 0.4.13
|
|
98
129
|
|
|
99
130
|
### Patch Changes
|
|
100
131
|
|
|
101
|
-
-
|
|
132
|
+
- [#36900](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36900)
|
|
133
|
+
[`a981691b65e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a981691b65e) -
|
|
134
|
+
Updated internal dependencies.
|
|
102
135
|
|
|
103
136
|
## 0.4.12
|
|
104
137
|
|
|
105
138
|
### Patch Changes
|
|
106
139
|
|
|
107
|
-
-
|
|
140
|
+
- [#36754](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36754)
|
|
141
|
+
[`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use
|
|
142
|
+
`@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility
|
|
143
|
+
testing.
|
|
108
144
|
|
|
109
145
|
## 0.4.11
|
|
110
146
|
|
|
111
147
|
### Patch Changes
|
|
112
148
|
|
|
113
|
-
-
|
|
149
|
+
- Updated dependencies
|
|
114
150
|
|
|
115
151
|
## 0.4.10
|
|
116
152
|
|
|
117
153
|
### Patch Changes
|
|
118
154
|
|
|
119
|
-
-
|
|
155
|
+
- Updated dependencies
|
|
120
156
|
|
|
121
157
|
## 0.4.9
|
|
122
158
|
|
|
123
159
|
### Patch Changes
|
|
124
160
|
|
|
125
|
-
-
|
|
161
|
+
- Updated dependencies
|
|
126
162
|
|
|
127
163
|
## 0.4.8
|
|
128
164
|
|
|
129
165
|
### Patch Changes
|
|
130
166
|
|
|
131
|
-
-
|
|
167
|
+
- Updated dependencies
|
|
132
168
|
|
|
133
169
|
## 0.4.7
|
|
134
170
|
|
|
135
171
|
### Patch Changes
|
|
136
172
|
|
|
137
|
-
-
|
|
173
|
+
- Updated dependencies
|
|
138
174
|
|
|
139
175
|
## 0.4.6
|
|
140
176
|
|
|
141
177
|
### Patch Changes
|
|
142
178
|
|
|
143
|
-
-
|
|
179
|
+
- Updated dependencies
|
|
144
180
|
|
|
145
181
|
## 0.4.5
|
|
146
182
|
|
|
147
183
|
### Patch Changes
|
|
148
184
|
|
|
149
|
-
-
|
|
185
|
+
- Updated dependencies
|
|
150
186
|
|
|
151
187
|
## 0.4.4
|
|
152
188
|
|
|
153
189
|
### Patch Changes
|
|
154
190
|
|
|
155
|
-
-
|
|
191
|
+
- Updated dependencies
|
|
156
192
|
|
|
157
193
|
## 0.4.3
|
|
158
194
|
|
|
159
195
|
### Patch Changes
|
|
160
196
|
|
|
161
|
-
-
|
|
197
|
+
- [#34443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34443)
|
|
198
|
+
[`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) -
|
|
199
|
+
Removing unused dependencies and dev dependencies
|
|
162
200
|
|
|
163
201
|
## 0.4.2
|
|
164
202
|
|
|
165
203
|
### Patch Changes
|
|
166
204
|
|
|
167
|
-
-
|
|
205
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
206
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
207
|
+
legacy types are published for TS 4.5-4.8
|
|
168
208
|
|
|
169
209
|
## 0.4.1
|
|
170
210
|
|
|
171
211
|
### Patch Changes
|
|
172
212
|
|
|
173
|
-
-
|
|
213
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
214
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) -
|
|
215
|
+
Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
174
216
|
|
|
175
217
|
## 0.4.0
|
|
176
218
|
|
|
177
219
|
### Minor Changes
|
|
178
220
|
|
|
179
|
-
-
|
|
221
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
222
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
223
|
+
minor dependency bump
|
|
180
224
|
|
|
181
225
|
### Patch Changes
|
|
182
226
|
|
|
183
|
-
-
|
|
227
|
+
- Updated dependencies
|
|
184
228
|
|
|
185
229
|
## 0.3.4
|
|
186
230
|
|
|
187
231
|
### Patch Changes
|
|
188
232
|
|
|
189
|
-
-
|
|
233
|
+
- [#32211](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32211)
|
|
234
|
+
[`4ba10567310`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ba10567310) -
|
|
235
|
+
Internal changes.
|
|
190
236
|
|
|
191
237
|
## 0.3.3
|
|
192
238
|
|
|
193
239
|
### Patch Changes
|
|
194
240
|
|
|
195
|
-
-
|
|
241
|
+
- [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424)
|
|
242
|
+
[`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY
|
|
243
|
+
remove before merging to master; dupe adf-schema via adf-utils
|
|
196
244
|
|
|
197
245
|
## 0.3.2
|
|
198
246
|
|
|
199
247
|
### Patch Changes
|
|
200
248
|
|
|
201
|
-
-
|
|
249
|
+
- Updated dependencies
|
|
202
250
|
|
|
203
251
|
## 0.3.1
|
|
204
252
|
|
|
205
253
|
### Patch Changes
|
|
206
254
|
|
|
207
|
-
-
|
|
255
|
+
- Updated dependencies
|
|
208
256
|
|
|
209
257
|
## 0.3.0
|
|
210
258
|
|
|
211
259
|
### Minor Changes
|
|
212
260
|
|
|
213
|
-
-
|
|
261
|
+
- [#31531](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31531)
|
|
262
|
+
[`bc489da7472`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc489da7472) - [ux] -
|
|
263
|
+
Adds new primitives to support expandable row functionality. This will supersede the
|
|
264
|
+
`@atlaskit/table-tree` package.
|
|
214
265
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
266
|
+
- `<ExpandableRow>`
|
|
267
|
+
- `<ExpandableRowContent>`
|
|
268
|
+
- `<ExpandableCell>`
|
|
218
269
|
|
|
219
270
|
## 0.2.8
|
|
220
271
|
|
|
221
272
|
### Patch Changes
|
|
222
273
|
|
|
223
|
-
-
|
|
274
|
+
- Updated dependencies
|
|
224
275
|
|
|
225
276
|
## 0.2.7
|
|
226
277
|
|
|
227
278
|
### Patch Changes
|
|
228
279
|
|
|
229
|
-
-
|
|
280
|
+
- Updated dependencies
|
|
230
281
|
|
|
231
282
|
## 0.2.6
|
|
232
283
|
|
|
233
284
|
### Patch Changes
|
|
234
285
|
|
|
235
|
-
-
|
|
286
|
+
- Updated dependencies
|
|
236
287
|
|
|
237
288
|
## 0.2.5
|
|
238
289
|
|
|
239
290
|
### Patch Changes
|
|
240
291
|
|
|
241
|
-
-
|
|
292
|
+
- [#31206](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31206)
|
|
293
|
+
[`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) -
|
|
294
|
+
Upgrades component types to support React 18.
|
|
242
295
|
|
|
243
296
|
## 0.2.4
|
|
244
297
|
|
|
245
298
|
### Patch Changes
|
|
246
299
|
|
|
247
|
-
-
|
|
300
|
+
- [#31242](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31242)
|
|
301
|
+
[`cfe48bb7ece`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfe48bb7ece) -
|
|
302
|
+
Internal change only. Replace usages of Inline/Stack with stable version from
|
|
303
|
+
`@atlaskit/primitives`.
|
|
248
304
|
|
|
249
305
|
## 0.2.3
|
|
250
306
|
|
|
251
307
|
### Patch Changes
|
|
252
308
|
|
|
253
|
-
-
|
|
309
|
+
- [#31055](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31055)
|
|
310
|
+
[`8fb961ffa76`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8fb961ffa76) - [ux]
|
|
311
|
+
Fixed some accessibility bugs. Now checkboxes in selectable cells are labelled for assistive
|
|
312
|
+
technology users, sortable columns have their sorting state programmatically associated through
|
|
313
|
+
the `aria-sort` attribute, and the sort button has an `aria-roledescription` to ensure that
|
|
314
|
+
assistive technology users are informed that the column headers are sortable in nature.
|
|
254
315
|
|
|
255
316
|
## 0.2.2
|
|
256
317
|
|
|
257
318
|
### Patch Changes
|
|
258
319
|
|
|
259
|
-
-
|
|
320
|
+
- Updated dependencies
|
|
260
321
|
|
|
261
322
|
## 0.2.1
|
|
262
323
|
|
|
263
324
|
### Patch Changes
|
|
264
325
|
|
|
265
|
-
-
|
|
266
|
-
-
|
|
326
|
+
- [#27891](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27891)
|
|
327
|
+
[`eadbf13d8c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eadbf13d8c0) -
|
|
328
|
+
Updated usages of `Text`, `Box`, `Stack`, and `Inline` primitives to reflect their updated APIs.
|
|
329
|
+
There are no visual or behaviour changes.
|
|
330
|
+
- Updated dependencies
|
|
267
331
|
|
|
268
332
|
## 0.2.0
|
|
269
333
|
|
|
270
334
|
### Minor Changes
|
|
271
335
|
|
|
272
|
-
-
|
|
336
|
+
- [#28885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28885)
|
|
337
|
+
[`0fc5e276eb4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0fc5e276eb4) - [ux]
|
|
338
|
+
Fix borders not showing in Safari. Table is shifted down slightly as a result.
|
|
273
339
|
|
|
274
340
|
## 0.1.4
|
|
275
341
|
|
|
276
342
|
### Patch Changes
|
|
277
343
|
|
|
278
|
-
-
|
|
344
|
+
- Updated dependencies
|
|
279
345
|
|
|
280
346
|
## 0.1.3
|
|
281
347
|
|
|
282
348
|
### Patch Changes
|
|
283
349
|
|
|
284
|
-
-
|
|
350
|
+
- Updated dependencies
|
|
285
351
|
|
|
286
352
|
## 0.1.2
|
|
287
353
|
|
|
288
354
|
### Patch Changes
|
|
289
355
|
|
|
290
|
-
-
|
|
356
|
+
- [#28013](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28013)
|
|
357
|
+
[`d2c17ae6f14`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d2c17ae6f14) - Adds
|
|
358
|
+
the `width` prop to '@atlaskit/table' header elements.
|
|
291
359
|
|
|
292
360
|
## 0.1.1
|
|
293
361
|
|
|
294
362
|
### Patch Changes
|
|
295
363
|
|
|
296
|
-
-
|
|
364
|
+
- [#27929](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27929)
|
|
365
|
+
[`7d3f2c3c117`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d3f2c3c117) -
|
|
366
|
+
Iterate on typings and component performance
|
|
297
367
|
|
|
298
368
|
## 0.1.0
|
|
299
369
|
|
|
300
370
|
### Minor Changes
|
|
301
371
|
|
|
302
|
-
-
|
|
372
|
+
- [#27738](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27738)
|
|
373
|
+
[`e2e5705f5d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e2e5705f5d8) - Create
|
|
374
|
+
initial component from Figma spec. Dev release, not intended for consumption.
|
package/dist/cjs/ui/base-cell.js
CHANGED
|
@@ -59,7 +59,8 @@ var BaseCell = exports.BaseCell = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
|
59
59
|
width = _ref.width,
|
|
60
60
|
xcss = _ref.xcss,
|
|
61
61
|
sortDirection = _ref.sortDirection,
|
|
62
|
-
colSpan = _ref.colSpan
|
|
62
|
+
colSpan = _ref.colSpan,
|
|
63
|
+
rowSpan = _ref.rowSpan;
|
|
63
64
|
// We're type coercing this as Compiled styles in an array isn't supported by the types
|
|
64
65
|
// But the runtime accepts it none-the-wiser. We can remove this entire block and replace
|
|
65
66
|
// it with cx(defaultStyles, focusRingStyles, xcssStyles) when we've moved away from Emotion.
|
|
@@ -77,6 +78,7 @@ var BaseCell = exports.BaseCell = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
|
77
78
|
width: width
|
|
78
79
|
} : undefined,
|
|
79
80
|
"aria-sort": sortDirection,
|
|
80
|
-
colSpan: colSpan
|
|
81
|
+
colSpan: colSpan,
|
|
82
|
+
rowSpan: rowSpan
|
|
81
83
|
}, children);
|
|
82
84
|
});
|
package/dist/cjs/ui/th.js
CHANGED
|
@@ -21,7 +21,8 @@ var TH = exports.TH = function TH(_ref) {
|
|
|
21
21
|
scope = _ref.scope,
|
|
22
22
|
backgroundColor = _ref.backgroundColor,
|
|
23
23
|
width = _ref.width,
|
|
24
|
-
sortDirection = _ref.sortDirection
|
|
24
|
+
sortDirection = _ref.sortDirection,
|
|
25
|
+
colSpan = _ref.colSpan;
|
|
25
26
|
return /*#__PURE__*/_react.default.createElement(_baseCell.BaseCell, {
|
|
26
27
|
as: "th",
|
|
27
28
|
testId: testId,
|
|
@@ -29,6 +30,7 @@ var TH = exports.TH = function TH(_ref) {
|
|
|
29
30
|
scope: scope,
|
|
30
31
|
width: width,
|
|
31
32
|
backgroundColor: backgroundColor,
|
|
32
|
-
sortDirection: sortDirection
|
|
33
|
+
sortDirection: sortDirection,
|
|
34
|
+
colSpan: colSpan
|
|
33
35
|
}, children);
|
|
34
36
|
};
|
|
@@ -46,7 +46,8 @@ export const BaseCell = /*#__PURE__*/forwardRef(({
|
|
|
46
46
|
width,
|
|
47
47
|
xcss,
|
|
48
48
|
sortDirection,
|
|
49
|
-
colSpan
|
|
49
|
+
colSpan,
|
|
50
|
+
rowSpan
|
|
50
51
|
}, ref) => {
|
|
51
52
|
// We're type coercing this as Compiled styles in an array isn't supported by the types
|
|
52
53
|
// But the runtime accepts it none-the-wiser. We can remove this entire block and replace
|
|
@@ -65,6 +66,7 @@ export const BaseCell = /*#__PURE__*/forwardRef(({
|
|
|
65
66
|
width
|
|
66
67
|
} : undefined,
|
|
67
68
|
"aria-sort": sortDirection,
|
|
68
|
-
colSpan: colSpan
|
|
69
|
+
colSpan: colSpan,
|
|
70
|
+
rowSpan: rowSpan
|
|
69
71
|
}, children);
|
|
70
72
|
});
|
package/dist/es2019/ui/th.js
CHANGED
|
@@ -14,7 +14,8 @@ export const TH = ({
|
|
|
14
14
|
scope,
|
|
15
15
|
backgroundColor,
|
|
16
16
|
width,
|
|
17
|
-
sortDirection
|
|
17
|
+
sortDirection,
|
|
18
|
+
colSpan
|
|
18
19
|
}) => /*#__PURE__*/React.createElement(BaseCell, {
|
|
19
20
|
as: "th",
|
|
20
21
|
testId: testId,
|
|
@@ -22,5 +23,6 @@ export const TH = ({
|
|
|
22
23
|
scope: scope,
|
|
23
24
|
width: width,
|
|
24
25
|
backgroundColor: backgroundColor,
|
|
25
|
-
sortDirection: sortDirection
|
|
26
|
+
sortDirection: sortDirection,
|
|
27
|
+
colSpan: colSpan
|
|
26
28
|
}, children);
|
package/dist/esm/ui/base-cell.js
CHANGED
|
@@ -50,7 +50,8 @@ export var BaseCell = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50
50
|
width = _ref.width,
|
|
51
51
|
xcss = _ref.xcss,
|
|
52
52
|
sortDirection = _ref.sortDirection,
|
|
53
|
-
colSpan = _ref.colSpan
|
|
53
|
+
colSpan = _ref.colSpan,
|
|
54
|
+
rowSpan = _ref.rowSpan;
|
|
54
55
|
// We're type coercing this as Compiled styles in an array isn't supported by the types
|
|
55
56
|
// But the runtime accepts it none-the-wiser. We can remove this entire block and replace
|
|
56
57
|
// it with cx(defaultStyles, focusRingStyles, xcssStyles) when we've moved away from Emotion.
|
|
@@ -68,6 +69,7 @@ export var BaseCell = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
68
69
|
width: width
|
|
69
70
|
} : undefined,
|
|
70
71
|
"aria-sort": sortDirection,
|
|
71
|
-
colSpan: colSpan
|
|
72
|
+
colSpan: colSpan,
|
|
73
|
+
rowSpan: rowSpan
|
|
72
74
|
}, children);
|
|
73
75
|
});
|
package/dist/esm/ui/th.js
CHANGED
|
@@ -14,7 +14,8 @@ export var TH = function TH(_ref) {
|
|
|
14
14
|
scope = _ref.scope,
|
|
15
15
|
backgroundColor = _ref.backgroundColor,
|
|
16
16
|
width = _ref.width,
|
|
17
|
-
sortDirection = _ref.sortDirection
|
|
17
|
+
sortDirection = _ref.sortDirection,
|
|
18
|
+
colSpan = _ref.colSpan;
|
|
18
19
|
return /*#__PURE__*/React.createElement(BaseCell, {
|
|
19
20
|
as: "th",
|
|
20
21
|
testId: testId,
|
|
@@ -22,6 +23,7 @@ export var TH = function TH(_ref) {
|
|
|
22
23
|
scope: scope,
|
|
23
24
|
width: width,
|
|
24
25
|
backgroundColor: backgroundColor,
|
|
25
|
-
sortDirection: sortDirection
|
|
26
|
+
sortDirection: sortDirection,
|
|
27
|
+
colSpan: colSpan
|
|
26
28
|
}, children);
|
|
27
29
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { BoxProps } from '@atlaskit/primitives';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type BoxProps } from '@atlaskit/primitives';
|
|
3
3
|
export type BaseCellProps = {
|
|
4
4
|
/**
|
|
5
5
|
* A percentage of pixel width of the table to apply to a column.
|
|
@@ -32,6 +32,10 @@ export type BaseCellProps = {
|
|
|
32
32
|
* Number of columns to span.
|
|
33
33
|
*/
|
|
34
34
|
colSpan?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Number of rows to span.
|
|
37
|
+
*/
|
|
38
|
+
rowSpan?: number;
|
|
35
39
|
} & Pick<BoxProps<any>, 'paddingBlock' | 'paddingInline' | 'backgroundColor' | 'xcss'>;
|
|
36
40
|
/**
|
|
37
41
|
* https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-sort
|
|
@@ -76,6 +80,10 @@ export declare const BaseCell: React.ForwardRefExoticComponent<{
|
|
|
76
80
|
* Number of columns to span.
|
|
77
81
|
*/
|
|
78
82
|
colSpan?: number | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Number of rows to span.
|
|
85
|
+
*/
|
|
86
|
+
rowSpan?: number | undefined;
|
|
79
87
|
} & Pick<BoxProps<any>, "backgroundColor" | "paddingBlock" | "paddingInline" | "xcss"> & {
|
|
80
88
|
sortDirection?: SortDirection | undefined;
|
|
81
89
|
} & React.RefAttributes<HTMLTableCellElement>>;
|
package/dist/types/ui/th.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { BaseCellProps, SortDirection } from './base-cell';
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type BaseCellProps, type SortDirection } from './base-cell';
|
|
3
3
|
export type THProps = Omit<BaseCellProps, 'as'>;
|
|
4
4
|
type InternalTHProps = THProps & {
|
|
5
5
|
sortDirection?: SortDirection;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { BoxProps } from '@atlaskit/primitives';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type BoxProps } from '@atlaskit/primitives';
|
|
3
3
|
export type BaseCellProps = {
|
|
4
4
|
/**
|
|
5
5
|
* A percentage of pixel width of the table to apply to a column.
|
|
@@ -32,6 +32,10 @@ export type BaseCellProps = {
|
|
|
32
32
|
* Number of columns to span.
|
|
33
33
|
*/
|
|
34
34
|
colSpan?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Number of rows to span.
|
|
37
|
+
*/
|
|
38
|
+
rowSpan?: number;
|
|
35
39
|
} & Pick<BoxProps<any>, 'paddingBlock' | 'paddingInline' | 'backgroundColor' | 'xcss'>;
|
|
36
40
|
/**
|
|
37
41
|
* https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-sort
|
|
@@ -76,6 +80,10 @@ export declare const BaseCell: React.ForwardRefExoticComponent<{
|
|
|
76
80
|
* Number of columns to span.
|
|
77
81
|
*/
|
|
78
82
|
colSpan?: number | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Number of rows to span.
|
|
85
|
+
*/
|
|
86
|
+
rowSpan?: number | undefined;
|
|
79
87
|
} & Pick<BoxProps<any>, "backgroundColor" | "paddingBlock" | "paddingInline" | "xcss"> & {
|
|
80
88
|
sortDirection?: SortDirection | undefined;
|
|
81
89
|
} & React.RefAttributes<HTMLTableCellElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { BaseCellProps, SortDirection } from './base-cell';
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type BaseCellProps, type SortDirection } from './base-cell';
|
|
3
3
|
export type THProps = Omit<BaseCellProps, 'as'>;
|
|
4
4
|
type InternalTHProps = THProps & {
|
|
5
5
|
sortDirection?: SortDirection;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.30",
|
|
4
4
|
"description": "A table is used to display data.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@atlaskit/button": "^17.14.0",
|
|
44
|
-
"@atlaskit/checkbox": "^13.
|
|
44
|
+
"@atlaskit/checkbox": "^13.3.0",
|
|
45
45
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
46
|
-
"@atlaskit/focus-ring": "^1.
|
|
46
|
+
"@atlaskit/focus-ring": "^1.4.0",
|
|
47
47
|
"@atlaskit/icon": "^22.1.0",
|
|
48
|
-
"@atlaskit/primitives": "^
|
|
49
|
-
"@atlaskit/tokens": "^1.
|
|
50
|
-
"@atlaskit/tooltip": "^18.
|
|
51
|
-
"@atlaskit/visually-hidden": "^1.
|
|
48
|
+
"@atlaskit/primitives": "^6.0.0",
|
|
49
|
+
"@atlaskit/tokens": "^1.45.0",
|
|
50
|
+
"@atlaskit/tooltip": "^18.3.0",
|
|
51
|
+
"@atlaskit/visually-hidden": "^1.3.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1",
|
|
54
54
|
"tiny-invariant": "^1.2.0"
|