@primer/react 38.39.0-rc.e451fc572 → 38.39.0-rc.fa0bd106b
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 +0 -2
- package/dist/DataTable/Table.js +15 -18
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
- [#8370](https://github.com/primer/react/pull/8370) [`56ebdc4`](https://github.com/primer/react/commit/56ebdc49f8f6c862288ee653a4cdc7a70afe829c) Thanks [@rickyzhangca](https://github.com/rickyzhangca)! - ScrollableRegion: Remove focusability when content no longer overflows
|
|
12
12
|
|
|
13
|
-
- [#8371](https://github.com/primer/react/pull/8371) [`dc8387f`](https://github.com/primer/react/commit/dc8387f4fa07cf00887cb2412d358fb7eb54be63) Thanks [@rickyzhangca](https://github.com/rickyzhangca)! - DataTable: Keep sortable column names concise and convey the next sort action as an accessible description
|
|
14
|
-
|
|
15
13
|
## 38.38.0
|
|
16
14
|
|
|
17
15
|
### Minor Changes
|
package/dist/DataTable/Table.js
CHANGED
|
@@ -181,7 +181,7 @@ function TableHeader(t0) {
|
|
|
181
181
|
return t2;
|
|
182
182
|
}
|
|
183
183
|
function TableSortHeader(t0) {
|
|
184
|
-
const $ = c(
|
|
184
|
+
const $ = c(23);
|
|
185
185
|
let align;
|
|
186
186
|
let children;
|
|
187
187
|
let direction;
|
|
@@ -203,7 +203,6 @@ function TableSortHeader(t0) {
|
|
|
203
203
|
rest = $[5];
|
|
204
204
|
}
|
|
205
205
|
const ariaSort = direction === "DESC" ? "descending" : direction === "ASC" ? "ascending" : void 0;
|
|
206
|
-
const sortAction = direction === SortDirection.ASC ? "Sort descending" : "Sort ascending";
|
|
207
206
|
let t1;
|
|
208
207
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
209
208
|
t1 = clsx("TableSortButton", Table_module_css_default.TableSortButton);
|
|
@@ -219,7 +218,7 @@ function TableSortHeader(t0) {
|
|
|
219
218
|
} else t2 = $[8];
|
|
220
219
|
let t3;
|
|
221
220
|
if ($[9] !== direction) {
|
|
222
|
-
t3 = direction === SortDirection.NONE || direction === SortDirection.ASC ? /*#__PURE__*/
|
|
221
|
+
t3 = direction === SortDirection.NONE || direction === SortDirection.ASC ? /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx(SortAscIcon, { className: clsx("TableSortIcon", "TableSortIcon--ascending", Table_module_css_default.TableSortIcon, Table_module_css_default["TableSortIcon--ascending"]) }), direction === SortDirection.NONE ? /*#__PURE__*/ jsx(VisuallyHidden, { children: "sort ascending" }) : null] }) : null;
|
|
223
222
|
$[9] = direction;
|
|
224
223
|
$[10] = t3;
|
|
225
224
|
} else t3 = $[10];
|
|
@@ -230,12 +229,11 @@ function TableSortHeader(t0) {
|
|
|
230
229
|
$[12] = t4;
|
|
231
230
|
} else t4 = $[12];
|
|
232
231
|
let t5;
|
|
233
|
-
if ($[13] !== children || $[14] !==
|
|
232
|
+
if ($[13] !== children || $[14] !== t2 || $[15] !== t3 || $[16] !== t4) {
|
|
234
233
|
t5 = /*#__PURE__*/ jsxs(Button, {
|
|
235
234
|
type: "button",
|
|
236
235
|
className: t1,
|
|
237
236
|
"data-component": "Table.SortHeader.Button",
|
|
238
|
-
"aria-description": sortAction,
|
|
239
237
|
onClick: t2,
|
|
240
238
|
children: [
|
|
241
239
|
children,
|
|
@@ -244,14 +242,13 @@ function TableSortHeader(t0) {
|
|
|
244
242
|
]
|
|
245
243
|
});
|
|
246
244
|
$[13] = children;
|
|
247
|
-
$[14] =
|
|
248
|
-
$[15] =
|
|
249
|
-
$[16] =
|
|
250
|
-
$[17] =
|
|
251
|
-
|
|
252
|
-
} else t5 = $[18];
|
|
245
|
+
$[14] = t2;
|
|
246
|
+
$[15] = t3;
|
|
247
|
+
$[16] = t4;
|
|
248
|
+
$[17] = t5;
|
|
249
|
+
} else t5 = $[17];
|
|
253
250
|
let t6;
|
|
254
|
-
if ($[
|
|
251
|
+
if ($[18] !== align || $[19] !== ariaSort || $[20] !== rest || $[21] !== t5) {
|
|
255
252
|
t6 = /*#__PURE__*/ jsx(TableHeader, {
|
|
256
253
|
...rest,
|
|
257
254
|
"aria-sort": ariaSort,
|
|
@@ -259,12 +256,12 @@ function TableSortHeader(t0) {
|
|
|
259
256
|
"data-component": "Table.SortHeader",
|
|
260
257
|
children: t5
|
|
261
258
|
});
|
|
262
|
-
$[
|
|
263
|
-
$[
|
|
264
|
-
$[
|
|
265
|
-
$[
|
|
266
|
-
$[
|
|
267
|
-
} else t6 = $[
|
|
259
|
+
$[18] = align;
|
|
260
|
+
$[19] = ariaSort;
|
|
261
|
+
$[20] = rest;
|
|
262
|
+
$[21] = t5;
|
|
263
|
+
$[22] = t6;
|
|
264
|
+
} else t6 = $[22];
|
|
268
265
|
return t6;
|
|
269
266
|
}
|
|
270
267
|
function TableRow(t0) {
|
package/package.json
CHANGED