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