@atlaskit/table 0.5.0 → 0.5.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 +136 -123
- package/dist/cjs/head-cell.js +3 -8
- package/dist/cjs/thead.js +2 -0
- package/dist/cjs/ui/base-cell.js +3 -1
- package/dist/cjs/ui/selectable-cell.js +1 -1
- package/dist/cjs/ui/tr.js +2 -2
- package/dist/es2019/head-cell.js +3 -8
- package/dist/es2019/thead.js +2 -0
- package/dist/es2019/ui/base-cell.js +3 -1
- package/dist/es2019/ui/selectable-cell.js +1 -1
- package/dist/es2019/ui/tr.js +2 -2
- package/dist/esm/head-cell.js +3 -8
- package/dist/esm/thead.js +2 -0
- package/dist/esm/ui/base-cell.js +3 -1
- package/dist/esm/ui/selectable-cell.js +1 -1
- package/dist/esm/ui/tr.js +2 -2
- package/dist/types/body.d.ts +1 -1
- package/dist/types/head-cell.d.ts +1 -1
- package/dist/types/hooks/selection-provider.d.ts +2 -2
- package/dist/types/hooks/use-sorting.d.ts +1 -1
- package/dist/types/row.d.ts +1 -1
- package/dist/types/sortable-column.d.ts +1 -1
- package/dist/types/table.d.ts +2 -2
- package/dist/types/thead.d.ts +1 -1
- package/dist/types/ui/bulk-action-overlay.d.ts +1 -1
- package/dist/types/ui/expandable-cell.d.ts +1 -1
- package/dist/types/ui/selectable-cell.d.ts +1 -1
- package/dist/types/ui/sort-icon.d.ts +1 -1
- package/dist/types/ui/table.d.ts +1 -1
- package/dist/types/ui/tbody.d.ts +1 -1
- package/dist/types/ui/td.d.ts +1 -1
- package/dist/types-ts4.5/body.d.ts +1 -1
- package/dist/types-ts4.5/head-cell.d.ts +1 -1
- package/dist/types-ts4.5/hooks/selection-provider.d.ts +2 -2
- package/dist/types-ts4.5/hooks/use-sorting.d.ts +1 -1
- package/dist/types-ts4.5/row.d.ts +1 -1
- package/dist/types-ts4.5/sortable-column.d.ts +1 -1
- package/dist/types-ts4.5/table.d.ts +2 -2
- package/dist/types-ts4.5/thead.d.ts +1 -1
- package/dist/types-ts4.5/ui/bulk-action-overlay.d.ts +1 -1
- package/dist/types-ts4.5/ui/expandable-cell.d.ts +1 -1
- package/dist/types-ts4.5/ui/selectable-cell.d.ts +1 -1
- package/dist/types-ts4.5/ui/sort-icon.d.ts +1 -1
- package/dist/types-ts4.5/ui/table.d.ts +1 -1
- package/dist/types-ts4.5/ui/tbody.d.ts +1 -1
- package/dist/types-ts4.5/ui/td.d.ts +1 -1
- package/extract-react-types/cell.tsx +1 -1
- package/extract-react-types/row.tsx +1 -1
- package/extract-react-types/table.tsx +1 -1
- package/package.json +7 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,386 +1,399 @@
|
|
|
1
1
|
# @atlaskit/table
|
|
2
2
|
|
|
3
|
+
## 0.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.5.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#106791](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/106791)
|
|
14
|
+
[`b2e191b63def`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b2e191b63def) -
|
|
15
|
+
Internal change to use typography components and update size tokens to hard-coded rems.
|
|
16
|
+
|
|
3
17
|
## 0.5.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
6
20
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
21
|
+
- [#99184](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99184)
|
|
22
|
+
[`3755cda305d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3755cda305d7) -
|
|
23
|
+
Add support for React 18.
|
|
10
24
|
|
|
11
25
|
### Patch Changes
|
|
12
26
|
|
|
13
|
-
-
|
|
27
|
+
- Updated dependencies
|
|
14
28
|
|
|
15
29
|
## 0.4.30
|
|
16
30
|
|
|
17
31
|
### Patch Changes
|
|
18
32
|
|
|
19
|
-
-
|
|
33
|
+
- Updated dependencies
|
|
20
34
|
|
|
21
35
|
## 0.4.29
|
|
22
36
|
|
|
23
37
|
### Patch Changes
|
|
24
38
|
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
39
|
+
- [#95783](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95783)
|
|
40
|
+
[`3c001bfc3c35`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3c001bfc3c35) -
|
|
41
|
+
Added `rowSpan` prop to `<BaseCell>`. Added `colSpan` prop to `<TH>`.
|
|
28
42
|
|
|
29
43
|
## 0.4.28
|
|
30
44
|
|
|
31
45
|
### Patch Changes
|
|
32
46
|
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
-
|
|
47
|
+
- [#92007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92007)
|
|
48
|
+
[`85525725cb0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/85525725cb0d) -
|
|
49
|
+
Migrated to the new button component
|
|
50
|
+
- Updated dependencies
|
|
37
51
|
|
|
38
52
|
## 0.4.27
|
|
39
53
|
|
|
40
54
|
### Patch Changes
|
|
41
55
|
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
56
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
57
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
58
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
45
59
|
|
|
46
60
|
## 0.4.26
|
|
47
61
|
|
|
48
62
|
### Patch Changes
|
|
49
63
|
|
|
50
|
-
-
|
|
64
|
+
- Updated dependencies
|
|
51
65
|
|
|
52
66
|
## 0.4.25
|
|
53
67
|
|
|
54
68
|
### Patch Changes
|
|
55
69
|
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
70
|
+
- [#78598](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78598)
|
|
71
|
+
[`cabae83473c3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cabae83473c3) -
|
|
72
|
+
[ux] Focus styles for Checkbox and Radio components
|
|
59
73
|
|
|
60
74
|
## 0.4.24
|
|
61
75
|
|
|
62
76
|
### Patch Changes
|
|
63
77
|
|
|
64
|
-
-
|
|
78
|
+
- Updated dependencies
|
|
65
79
|
|
|
66
80
|
## 0.4.23
|
|
67
81
|
|
|
68
82
|
### Patch Changes
|
|
69
83
|
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
-
|
|
84
|
+
- [#77488](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77488)
|
|
85
|
+
[`27e6fdab53dc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/27e6fdab53dc) -
|
|
86
|
+
Cells now use logical property styles.
|
|
87
|
+
- Updated dependencies
|
|
74
88
|
|
|
75
89
|
## 0.4.22
|
|
76
90
|
|
|
77
91
|
### Patch Changes
|
|
78
92
|
|
|
79
|
-
-
|
|
93
|
+
- Updated dependencies
|
|
80
94
|
|
|
81
95
|
## 0.4.21
|
|
82
96
|
|
|
83
97
|
### Patch Changes
|
|
84
98
|
|
|
85
|
-
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
-
|
|
99
|
+
- [#75714](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75714)
|
|
100
|
+
[`33f4a64132a3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/33f4a64132a3) -
|
|
101
|
+
Remove duplicate accessible labels on Icon buttons, which were unnecessarily added through the
|
|
102
|
+
`aria-label` attribute.
|
|
103
|
+
- Updated dependencies
|
|
90
104
|
|
|
91
105
|
## 0.4.20
|
|
92
106
|
|
|
93
107
|
### Patch Changes
|
|
94
108
|
|
|
95
|
-
-
|
|
109
|
+
- Updated dependencies
|
|
96
110
|
|
|
97
111
|
## 0.4.19
|
|
98
112
|
|
|
99
113
|
### Patch Changes
|
|
100
114
|
|
|
101
|
-
-
|
|
102
|
-
|
|
103
|
-
|
|
115
|
+
- [#65875](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65875)
|
|
116
|
+
[`98e49fd3f04d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/98e49fd3f04d) -
|
|
117
|
+
[ux] Updated buttons in table to consume new buttons.
|
|
104
118
|
|
|
105
119
|
## 0.4.18
|
|
106
120
|
|
|
107
121
|
### Patch Changes
|
|
108
122
|
|
|
109
|
-
-
|
|
123
|
+
- Updated dependencies
|
|
110
124
|
|
|
111
125
|
## 0.4.17
|
|
112
126
|
|
|
113
127
|
### Patch Changes
|
|
114
128
|
|
|
115
|
-
-
|
|
129
|
+
- Updated dependencies
|
|
116
130
|
|
|
117
131
|
## 0.4.16
|
|
118
132
|
|
|
119
133
|
### Patch Changes
|
|
120
134
|
|
|
121
|
-
-
|
|
135
|
+
- Updated dependencies
|
|
122
136
|
|
|
123
137
|
## 0.4.15
|
|
124
138
|
|
|
125
139
|
### Patch Changes
|
|
126
140
|
|
|
127
|
-
-
|
|
141
|
+
- Updated dependencies
|
|
128
142
|
|
|
129
143
|
## 0.4.14
|
|
130
144
|
|
|
131
145
|
### Patch Changes
|
|
132
146
|
|
|
133
|
-
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
-
|
|
137
|
-
|
|
138
|
-
|
|
147
|
+
- [#37533](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37533)
|
|
148
|
+
[`1ed303de3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed303de3e8) - Updated
|
|
149
|
+
dependencies
|
|
150
|
+
- [#37419](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37419)
|
|
151
|
+
[`95401cac781`](https://bitbucket.org/atlassian/atlassian-frontend/commits/95401cac781) - Internal
|
|
152
|
+
change to component composition. There is no expected change.
|
|
139
153
|
|
|
140
154
|
## 0.4.13
|
|
141
155
|
|
|
142
156
|
### Patch Changes
|
|
143
157
|
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
158
|
+
- [#36900](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36900)
|
|
159
|
+
[`a981691b65e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a981691b65e) - Updated
|
|
160
|
+
internal dependencies.
|
|
147
161
|
|
|
148
162
|
## 0.4.12
|
|
149
163
|
|
|
150
164
|
### Patch Changes
|
|
151
165
|
|
|
152
|
-
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
166
|
+
- [#36754](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36754)
|
|
167
|
+
[`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use
|
|
168
|
+
`@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility
|
|
169
|
+
testing.
|
|
156
170
|
|
|
157
171
|
## 0.4.11
|
|
158
172
|
|
|
159
173
|
### Patch Changes
|
|
160
174
|
|
|
161
|
-
-
|
|
175
|
+
- Updated dependencies
|
|
162
176
|
|
|
163
177
|
## 0.4.10
|
|
164
178
|
|
|
165
179
|
### Patch Changes
|
|
166
180
|
|
|
167
|
-
-
|
|
181
|
+
- Updated dependencies
|
|
168
182
|
|
|
169
183
|
## 0.4.9
|
|
170
184
|
|
|
171
185
|
### Patch Changes
|
|
172
186
|
|
|
173
|
-
-
|
|
187
|
+
- Updated dependencies
|
|
174
188
|
|
|
175
189
|
## 0.4.8
|
|
176
190
|
|
|
177
191
|
### Patch Changes
|
|
178
192
|
|
|
179
|
-
-
|
|
193
|
+
- Updated dependencies
|
|
180
194
|
|
|
181
195
|
## 0.4.7
|
|
182
196
|
|
|
183
197
|
### Patch Changes
|
|
184
198
|
|
|
185
|
-
-
|
|
199
|
+
- Updated dependencies
|
|
186
200
|
|
|
187
201
|
## 0.4.6
|
|
188
202
|
|
|
189
203
|
### Patch Changes
|
|
190
204
|
|
|
191
|
-
-
|
|
205
|
+
- Updated dependencies
|
|
192
206
|
|
|
193
207
|
## 0.4.5
|
|
194
208
|
|
|
195
209
|
### Patch Changes
|
|
196
210
|
|
|
197
|
-
-
|
|
211
|
+
- Updated dependencies
|
|
198
212
|
|
|
199
213
|
## 0.4.4
|
|
200
214
|
|
|
201
215
|
### Patch Changes
|
|
202
216
|
|
|
203
|
-
-
|
|
217
|
+
- Updated dependencies
|
|
204
218
|
|
|
205
219
|
## 0.4.3
|
|
206
220
|
|
|
207
221
|
### Patch Changes
|
|
208
222
|
|
|
209
|
-
-
|
|
210
|
-
|
|
211
|
-
|
|
223
|
+
- [#34443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34443)
|
|
224
|
+
[`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing
|
|
225
|
+
unused dependencies and dev dependencies
|
|
212
226
|
|
|
213
227
|
## 0.4.2
|
|
214
228
|
|
|
215
229
|
### Patch Changes
|
|
216
230
|
|
|
217
|
-
-
|
|
218
|
-
|
|
219
|
-
|
|
231
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
232
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
233
|
+
legacy types are published for TS 4.5-4.8
|
|
220
234
|
|
|
221
235
|
## 0.4.1
|
|
222
236
|
|
|
223
237
|
### Patch Changes
|
|
224
238
|
|
|
225
|
-
-
|
|
226
|
-
|
|
227
|
-
|
|
239
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
240
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
|
|
241
|
+
Typescript from `4.5.5` to `4.9.5`
|
|
228
242
|
|
|
229
243
|
## 0.4.0
|
|
230
244
|
|
|
231
245
|
### Minor Changes
|
|
232
246
|
|
|
233
|
-
-
|
|
234
|
-
|
|
235
|
-
|
|
247
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
248
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
249
|
+
minor dependency bump
|
|
236
250
|
|
|
237
251
|
### Patch Changes
|
|
238
252
|
|
|
239
|
-
-
|
|
253
|
+
- Updated dependencies
|
|
240
254
|
|
|
241
255
|
## 0.3.4
|
|
242
256
|
|
|
243
257
|
### Patch Changes
|
|
244
258
|
|
|
245
|
-
-
|
|
246
|
-
|
|
247
|
-
|
|
259
|
+
- [#32211](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32211)
|
|
260
|
+
[`4ba10567310`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ba10567310) - Internal
|
|
261
|
+
changes.
|
|
248
262
|
|
|
249
263
|
## 0.3.3
|
|
250
264
|
|
|
251
265
|
### Patch Changes
|
|
252
266
|
|
|
253
|
-
-
|
|
254
|
-
|
|
255
|
-
|
|
267
|
+
- [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424)
|
|
268
|
+
[`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY
|
|
269
|
+
remove before merging to master; dupe adf-schema via adf-utils
|
|
256
270
|
|
|
257
271
|
## 0.3.2
|
|
258
272
|
|
|
259
273
|
### Patch Changes
|
|
260
274
|
|
|
261
|
-
-
|
|
275
|
+
- Updated dependencies
|
|
262
276
|
|
|
263
277
|
## 0.3.1
|
|
264
278
|
|
|
265
279
|
### Patch Changes
|
|
266
280
|
|
|
267
|
-
-
|
|
281
|
+
- Updated dependencies
|
|
268
282
|
|
|
269
283
|
## 0.3.0
|
|
270
284
|
|
|
271
285
|
### Minor Changes
|
|
272
286
|
|
|
273
|
-
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
287
|
+
- [#31531](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31531)
|
|
288
|
+
[`bc489da7472`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc489da7472) - [ux] -
|
|
289
|
+
Adds new primitives to support expandable row functionality. This will supersede the
|
|
290
|
+
`@atlaskit/table-tree` package.
|
|
277
291
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
292
|
+
- `<ExpandableRow>`
|
|
293
|
+
- `<ExpandableRowContent>`
|
|
294
|
+
- `<ExpandableCell>`
|
|
281
295
|
|
|
282
296
|
## 0.2.8
|
|
283
297
|
|
|
284
298
|
### Patch Changes
|
|
285
299
|
|
|
286
|
-
-
|
|
300
|
+
- Updated dependencies
|
|
287
301
|
|
|
288
302
|
## 0.2.7
|
|
289
303
|
|
|
290
304
|
### Patch Changes
|
|
291
305
|
|
|
292
|
-
-
|
|
306
|
+
- Updated dependencies
|
|
293
307
|
|
|
294
308
|
## 0.2.6
|
|
295
309
|
|
|
296
310
|
### Patch Changes
|
|
297
311
|
|
|
298
|
-
-
|
|
312
|
+
- Updated dependencies
|
|
299
313
|
|
|
300
314
|
## 0.2.5
|
|
301
315
|
|
|
302
316
|
### Patch Changes
|
|
303
317
|
|
|
304
|
-
-
|
|
305
|
-
|
|
306
|
-
|
|
318
|
+
- [#31206](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31206)
|
|
319
|
+
[`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) - Upgrades
|
|
320
|
+
component types to support React 18.
|
|
307
321
|
|
|
308
322
|
## 0.2.4
|
|
309
323
|
|
|
310
324
|
### Patch Changes
|
|
311
325
|
|
|
312
|
-
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
`@atlaskit/primitives`.
|
|
326
|
+
- [#31242](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31242)
|
|
327
|
+
[`cfe48bb7ece`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfe48bb7ece) - Internal
|
|
328
|
+
change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
316
329
|
|
|
317
330
|
## 0.2.3
|
|
318
331
|
|
|
319
332
|
### Patch Changes
|
|
320
333
|
|
|
321
|
-
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
334
|
+
- [#31055](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31055)
|
|
335
|
+
[`8fb961ffa76`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8fb961ffa76) - [ux]
|
|
336
|
+
Fixed some accessibility bugs. Now checkboxes in selectable cells are labelled for assistive
|
|
337
|
+
technology users, sortable columns have their sorting state programmatically associated through
|
|
338
|
+
the `aria-sort` attribute, and the sort button has an `aria-roledescription` to ensure that
|
|
339
|
+
assistive technology users are informed that the column headers are sortable in nature.
|
|
327
340
|
|
|
328
341
|
## 0.2.2
|
|
329
342
|
|
|
330
343
|
### Patch Changes
|
|
331
344
|
|
|
332
|
-
-
|
|
345
|
+
- Updated dependencies
|
|
333
346
|
|
|
334
347
|
## 0.2.1
|
|
335
348
|
|
|
336
349
|
### Patch Changes
|
|
337
350
|
|
|
338
|
-
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
-
|
|
351
|
+
- [#27891](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27891)
|
|
352
|
+
[`eadbf13d8c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eadbf13d8c0) - Updated
|
|
353
|
+
usages of `Text`, `Box`, `Stack`, and `Inline` primitives to reflect their updated APIs. There are
|
|
354
|
+
no visual or behaviour changes.
|
|
355
|
+
- Updated dependencies
|
|
343
356
|
|
|
344
357
|
## 0.2.0
|
|
345
358
|
|
|
346
359
|
### Minor Changes
|
|
347
360
|
|
|
348
|
-
-
|
|
349
|
-
|
|
350
|
-
|
|
361
|
+
- [#28885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28885)
|
|
362
|
+
[`0fc5e276eb4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0fc5e276eb4) - [ux] Fix
|
|
363
|
+
borders not showing in Safari. Table is shifted down slightly as a result.
|
|
351
364
|
|
|
352
365
|
## 0.1.4
|
|
353
366
|
|
|
354
367
|
### Patch Changes
|
|
355
368
|
|
|
356
|
-
-
|
|
369
|
+
- Updated dependencies
|
|
357
370
|
|
|
358
371
|
## 0.1.3
|
|
359
372
|
|
|
360
373
|
### Patch Changes
|
|
361
374
|
|
|
362
|
-
-
|
|
375
|
+
- Updated dependencies
|
|
363
376
|
|
|
364
377
|
## 0.1.2
|
|
365
378
|
|
|
366
379
|
### Patch Changes
|
|
367
380
|
|
|
368
|
-
-
|
|
369
|
-
|
|
370
|
-
|
|
381
|
+
- [#28013](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28013)
|
|
382
|
+
[`d2c17ae6f14`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d2c17ae6f14) - Adds the
|
|
383
|
+
`width` prop to '@atlaskit/table' header elements.
|
|
371
384
|
|
|
372
385
|
## 0.1.1
|
|
373
386
|
|
|
374
387
|
### Patch Changes
|
|
375
388
|
|
|
376
|
-
-
|
|
377
|
-
|
|
378
|
-
|
|
389
|
+
- [#27929](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27929)
|
|
390
|
+
[`7d3f2c3c117`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d3f2c3c117) - Iterate
|
|
391
|
+
on typings and component performance
|
|
379
392
|
|
|
380
393
|
## 0.1.0
|
|
381
394
|
|
|
382
395
|
### Minor Changes
|
|
383
396
|
|
|
384
|
-
-
|
|
385
|
-
|
|
386
|
-
|
|
397
|
+
- [#27738](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27738)
|
|
398
|
+
[`e2e5705f5d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e2e5705f5d8) - Create
|
|
399
|
+
initial component from Figma spec. Dev release, not intended for consumption.
|
package/dist/cjs/head-cell.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _primitives = require("@atlaskit/primitives");
|
|
8
9
|
var _th = require("./ui/th");
|
|
9
10
|
/* eslint-disable no-unused-vars */
|
|
10
11
|
/** @jsx jsx */
|
|
@@ -26,14 +27,8 @@ var HeadCell = function HeadCell(_ref) {
|
|
|
26
27
|
align: align,
|
|
27
28
|
testId: testId,
|
|
28
29
|
backgroundColor: backgroundColor
|
|
29
|
-
}, children &&
|
|
30
|
-
|
|
31
|
-
(0, _react.jsx)("span", {
|
|
32
|
-
style: {
|
|
33
|
-
color: "var(--ds-text, #172B4D)",
|
|
34
|
-
/* @ts-ignore migrate to Text */
|
|
35
|
-
fontWeight: "var(--ds-font-weight-medium, 500)"
|
|
36
|
-
}
|
|
30
|
+
}, children && (0, _react.jsx)(_primitives.Text, {
|
|
31
|
+
weight: "medium"
|
|
37
32
|
}, children));
|
|
38
33
|
};
|
|
39
34
|
var _default = exports.default = HeadCell;
|
package/dist/cjs/thead.js
CHANGED
|
@@ -43,8 +43,10 @@ var THead = function THead(_ref) {
|
|
|
43
43
|
isIndeterminate: state.anyChecked && !state.allChecked
|
|
44
44
|
})), children, isSelectable && isChecked && (0, _react.jsx)(_bulkActionOverlay.BulkActionOverlay, null, (0, _react.jsx)("span", {
|
|
45
45
|
style: {
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
46
47
|
color: "var(--ds-text, #172B4D)",
|
|
47
48
|
/* @ts-ignore migrate to Text */
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
48
50
|
fontWeight: "var(--ds-font-weight-medium, 500)"
|
|
49
51
|
}
|
|
50
52
|
}, state.checked.length, " selected"), actions && (0, _react.jsx)(_inline.default, {
|
package/dist/cjs/ui/base-cell.js
CHANGED
|
@@ -73,7 +73,9 @@ var BaseCell = exports.BaseCell = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
|
73
73
|
paddingBlock: paddingBlock,
|
|
74
74
|
paddingInline: paddingInline,
|
|
75
75
|
as: as,
|
|
76
|
-
testId: testId
|
|
76
|
+
testId: testId
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
78
|
+
,
|
|
77
79
|
style: width ? {
|
|
78
80
|
width: width
|
|
79
81
|
} : undefined,
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _primitives = require("@atlaskit/primitives");
|
|
10
10
|
var _baseCell = require("./base-cell");
|
|
11
11
|
var spacingStyles = (0, _primitives.xcss)({
|
|
12
|
-
width: '
|
|
12
|
+
width: '2rem',
|
|
13
13
|
padding: 'space.0'
|
|
14
14
|
});
|
|
15
15
|
/**
|
package/dist/cjs/ui/tr.js
CHANGED
|
@@ -10,7 +10,7 @@ var _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring"));
|
|
|
10
10
|
/** @jsx jsx */
|
|
11
11
|
|
|
12
12
|
var baseStyles = (0, _react.css)({
|
|
13
|
-
height:
|
|
13
|
+
height: '3rem',
|
|
14
14
|
position: 'relative',
|
|
15
15
|
border: 'none',
|
|
16
16
|
borderImageWidth: 0,
|
|
@@ -26,7 +26,7 @@ var subitemStyles = (0, _react.css)({
|
|
|
26
26
|
backgroundColor: "var(--ds-background-neutral, #091E420F)"
|
|
27
27
|
});
|
|
28
28
|
var bodyRowStyles = (0, _react.css)({
|
|
29
|
-
|
|
29
|
+
borderBlockEnd: "1px solid ".concat("var(--ds-border, #eee)"),
|
|
30
30
|
'&:hover': {
|
|
31
31
|
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #f8f8f8)"
|
|
32
32
|
},
|
package/dist/es2019/head-cell.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
|
+
import { Text } from '@atlaskit/primitives';
|
|
5
6
|
import { TH } from './ui/th';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -21,14 +22,8 @@ const HeadCell = ({
|
|
|
21
22
|
align: align,
|
|
22
23
|
testId: testId,
|
|
23
24
|
backgroundColor: backgroundColor
|
|
24
|
-
}, children &&
|
|
25
|
-
|
|
26
|
-
jsx("span", {
|
|
27
|
-
style: {
|
|
28
|
-
color: "var(--ds-text, #172B4D)",
|
|
29
|
-
/* @ts-ignore migrate to Text */
|
|
30
|
-
fontWeight: "var(--ds-font-weight-medium, 500)"
|
|
31
|
-
}
|
|
25
|
+
}, children && jsx(Text, {
|
|
26
|
+
weight: "medium"
|
|
32
27
|
}, children));
|
|
33
28
|
};
|
|
34
29
|
export default HeadCell;
|
package/dist/es2019/thead.js
CHANGED
|
@@ -35,8 +35,10 @@ const THead = ({
|
|
|
35
35
|
isIndeterminate: state.anyChecked && !state.allChecked
|
|
36
36
|
})), children, isSelectable && isChecked && jsx(BulkActionOverlayPrimitive, null, jsx("span", {
|
|
37
37
|
style: {
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
38
39
|
color: "var(--ds-text, #172B4D)",
|
|
39
40
|
/* @ts-ignore migrate to Text */
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
40
42
|
fontWeight: "var(--ds-font-weight-medium, 500)"
|
|
41
43
|
}
|
|
42
44
|
}, state.checked.length, " selected"), actions && jsx(Inline, {
|
|
@@ -61,7 +61,9 @@ export const BaseCell = /*#__PURE__*/forwardRef(({
|
|
|
61
61
|
paddingBlock: paddingBlock,
|
|
62
62
|
paddingInline: paddingInline,
|
|
63
63
|
as: as,
|
|
64
|
-
testId: testId
|
|
64
|
+
testId: testId
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
66
|
+
,
|
|
65
67
|
style: width ? {
|
|
66
68
|
width
|
|
67
69
|
} : undefined,
|
package/dist/es2019/ui/tr.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import FocusRing from '@atlaskit/focus-ring';
|
|
5
5
|
const baseStyles = css({
|
|
6
|
-
height:
|
|
6
|
+
height: '3rem',
|
|
7
7
|
position: 'relative',
|
|
8
8
|
border: 'none',
|
|
9
9
|
borderImageWidth: 0,
|
|
@@ -19,7 +19,7 @@ const subitemStyles = css({
|
|
|
19
19
|
backgroundColor: "var(--ds-background-neutral, #091E420F)"
|
|
20
20
|
});
|
|
21
21
|
const bodyRowStyles = css({
|
|
22
|
-
|
|
22
|
+
borderBlockEnd: `1px solid ${"var(--ds-border, #eee)"}`,
|
|
23
23
|
'&:hover': {
|
|
24
24
|
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #f8f8f8)"
|
|
25
25
|
},
|
package/dist/esm/head-cell.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
|
+
import { Text } from '@atlaskit/primitives';
|
|
5
6
|
import { TH } from './ui/th';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -21,14 +22,8 @@ var HeadCell = function HeadCell(_ref) {
|
|
|
21
22
|
align: align,
|
|
22
23
|
testId: testId,
|
|
23
24
|
backgroundColor: backgroundColor
|
|
24
|
-
}, children &&
|
|
25
|
-
|
|
26
|
-
jsx("span", {
|
|
27
|
-
style: {
|
|
28
|
-
color: "var(--ds-text, #172B4D)",
|
|
29
|
-
/* @ts-ignore migrate to Text */
|
|
30
|
-
fontWeight: "var(--ds-font-weight-medium, 500)"
|
|
31
|
-
}
|
|
25
|
+
}, children && jsx(Text, {
|
|
26
|
+
weight: "medium"
|
|
32
27
|
}, children));
|
|
33
28
|
};
|
|
34
29
|
export default HeadCell;
|
package/dist/esm/thead.js
CHANGED
|
@@ -36,8 +36,10 @@ var THead = function THead(_ref) {
|
|
|
36
36
|
isIndeterminate: state.anyChecked && !state.allChecked
|
|
37
37
|
})), children, isSelectable && isChecked && jsx(BulkActionOverlayPrimitive, null, jsx("span", {
|
|
38
38
|
style: {
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
39
40
|
color: "var(--ds-text, #172B4D)",
|
|
40
41
|
/* @ts-ignore migrate to Text */
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
41
43
|
fontWeight: "var(--ds-font-weight-medium, 500)"
|
|
42
44
|
}
|
|
43
45
|
}, state.checked.length, " selected"), actions && jsx(Inline, {
|
package/dist/esm/ui/base-cell.js
CHANGED
|
@@ -64,7 +64,9 @@ export var BaseCell = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
64
64
|
paddingBlock: paddingBlock,
|
|
65
65
|
paddingInline: paddingInline,
|
|
66
66
|
as: as,
|
|
67
|
-
testId: testId
|
|
67
|
+
testId: testId
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
69
|
+
,
|
|
68
70
|
style: width ? {
|
|
69
71
|
width: width
|
|
70
72
|
} : undefined,
|
package/dist/esm/ui/tr.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import FocusRing from '@atlaskit/focus-ring';
|
|
5
5
|
var baseStyles = css({
|
|
6
|
-
height:
|
|
6
|
+
height: '3rem',
|
|
7
7
|
position: 'relative',
|
|
8
8
|
border: 'none',
|
|
9
9
|
borderImageWidth: 0,
|
|
@@ -19,7 +19,7 @@ var subitemStyles = css({
|
|
|
19
19
|
backgroundColor: "var(--ds-background-neutral, #091E420F)"
|
|
20
20
|
});
|
|
21
21
|
var bodyRowStyles = css({
|
|
22
|
-
|
|
22
|
+
borderBlockEnd: "1px solid ".concat("var(--ds-border, #eee)"),
|
|
23
23
|
'&:hover': {
|
|
24
24
|
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #f8f8f8)"
|
|
25
25
|
},
|
package/dist/types/body.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { FC, ReactNode } from 'react';
|
|
2
|
-
import { SelectableActions, SelectableState } from './use-selectable';
|
|
1
|
+
import React, { type FC, type ReactNode } from 'react';
|
|
2
|
+
import { type SelectableActions, type SelectableState } from './use-selectable';
|
|
3
3
|
type SelectionContext = [
|
|
4
4
|
SelectableState,
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SortDirection, SortKey } from './use-table';
|
|
1
|
+
import { type SortDirection, type SortKey } from './use-table';
|
|
2
2
|
export declare const useSorting: <ItemType extends object>(sortKey: SortKey<keyof ItemType>) => {
|
|
3
3
|
sortKey: "unset" | keyof ItemType;
|
|
4
4
|
sortDirection: SortDirection | undefined;
|
package/dist/types/row.d.ts
CHANGED
package/dist/types/table.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { ReactElement } from 'react';
|
|
2
|
+
import { type ReactElement } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { SortKey } from './hooks/use-table';
|
|
4
|
+
import { type SortKey } from './hooks/use-table';
|
|
5
5
|
export type TableProps<ItemType extends object = {}> = {
|
|
6
6
|
/**
|
|
7
7
|
* A `testId` prop is a unique string that appears as a data attribute `data-testid`
|
package/dist/types/thead.d.ts
CHANGED
package/dist/types/ui/table.d.ts
CHANGED
package/dist/types/ui/tbody.d.ts
CHANGED
package/dist/types/ui/td.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { FC, ReactNode } from 'react';
|
|
2
|
-
import { SelectableActions, SelectableState } from './use-selectable';
|
|
1
|
+
import React, { type FC, type ReactNode } from 'react';
|
|
2
|
+
import { type SelectableActions, type SelectableState } from './use-selectable';
|
|
3
3
|
type SelectionContext = [
|
|
4
4
|
SelectableState,
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SortDirection, SortKey } from './use-table';
|
|
1
|
+
import { type SortDirection, type SortKey } from './use-table';
|
|
2
2
|
export declare const useSorting: <ItemType extends object>(sortKey: SortKey<keyof ItemType>) => {
|
|
3
3
|
sortKey: "unset" | keyof ItemType;
|
|
4
4
|
sortDirection: SortDirection | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { ReactElement } from 'react';
|
|
2
|
+
import { type ReactElement } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { SortKey } from './hooks/use-table';
|
|
4
|
+
import { type SortKey } from './hooks/use-table';
|
|
5
5
|
export type TableProps<ItemType extends object = {}> = {
|
|
6
6
|
/**
|
|
7
7
|
* A `testId` prop is a unique string that appears as a data attribute `data-testid`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "A table is used to display data.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"./primitives": "./src/ui/index.tsx"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@atlaskit/button": "^17.
|
|
45
|
-
"@atlaskit/checkbox": "^13.
|
|
44
|
+
"@atlaskit/button": "^17.17.0",
|
|
45
|
+
"@atlaskit/checkbox": "^13.4.0",
|
|
46
46
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
47
47
|
"@atlaskit/focus-ring": "^1.4.0",
|
|
48
|
-
"@atlaskit/icon": "^22.
|
|
49
|
-
"@atlaskit/primitives": "^
|
|
50
|
-
"@atlaskit/tokens": "^1.
|
|
48
|
+
"@atlaskit/icon": "^22.3.0",
|
|
49
|
+
"@atlaskit/primitives": "^7.0.0",
|
|
50
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
51
51
|
"@atlaskit/tooltip": "^18.4.0",
|
|
52
52
|
"@atlaskit/visually-hidden": "^1.3.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
"@af/accessibility-testing": "*",
|
|
62
62
|
"@atlaskit/ssr": "*",
|
|
63
63
|
"@atlaskit/visual-regression": "*",
|
|
64
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
65
64
|
"@testing-library/react": "^12.1.5",
|
|
66
65
|
"@testing-library/react-hooks": "^8.0.1",
|
|
67
66
|
"react-dom": "^16.8.0",
|
|
@@ -100,6 +99,5 @@
|
|
|
100
99
|
"emotion"
|
|
101
100
|
]
|
|
102
101
|
}
|
|
103
|
-
}
|
|
104
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
102
|
+
}
|
|
105
103
|
}
|