@primer/react 38.39.0-rc.fa0bd106b → 38.39.0-rc.fbea7df95

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 CHANGED
@@ -10,6 +10,8 @@
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
+
13
15
  ## 38.38.0
14
16
 
15
17
  ### Minor Changes
@@ -181,7 +181,7 @@ function TableHeader(t0) {
181
181
  return t2;
182
182
  }
183
183
  function TableSortHeader(t0) {
184
- const $ = c(23);
184
+ const $ = c(24);
185
185
  let align;
186
186
  let children;
187
187
  let direction;
@@ -203,6 +203,7 @@ 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";
206
207
  let t1;
207
208
  if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
208
209
  t1 = clsx("TableSortButton", Table_module_css_default.TableSortButton);
@@ -218,7 +219,7 @@ function TableSortHeader(t0) {
218
219
  } else t2 = $[8];
219
220
  let t3;
220
221
  if ($[9] !== direction) {
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;
222
+ t3 = direction === SortDirection.NONE || direction === SortDirection.ASC ? /*#__PURE__*/ jsx(Fragment$1, { children: /*#__PURE__*/ jsx(SortAscIcon, { className: clsx("TableSortIcon", "TableSortIcon--ascending", Table_module_css_default.TableSortIcon, Table_module_css_default["TableSortIcon--ascending"]) }) }) : null;
222
223
  $[9] = direction;
223
224
  $[10] = t3;
224
225
  } else t3 = $[10];
@@ -229,11 +230,12 @@ function TableSortHeader(t0) {
229
230
  $[12] = t4;
230
231
  } else t4 = $[12];
231
232
  let t5;
232
- if ($[13] !== children || $[14] !== t2 || $[15] !== t3 || $[16] !== t4) {
233
+ if ($[13] !== children || $[14] !== sortAction || $[15] !== t2 || $[16] !== t3 || $[17] !== t4) {
233
234
  t5 = /*#__PURE__*/ jsxs(Button, {
234
235
  type: "button",
235
236
  className: t1,
236
237
  "data-component": "Table.SortHeader.Button",
238
+ "aria-description": sortAction,
237
239
  onClick: t2,
238
240
  children: [
239
241
  children,
@@ -242,13 +244,14 @@ function TableSortHeader(t0) {
242
244
  ]
243
245
  });
244
246
  $[13] = children;
245
- $[14] = t2;
246
- $[15] = t3;
247
- $[16] = t4;
248
- $[17] = t5;
249
- } else t5 = $[17];
247
+ $[14] = sortAction;
248
+ $[15] = t2;
249
+ $[16] = t3;
250
+ $[17] = t4;
251
+ $[18] = t5;
252
+ } else t5 = $[18];
250
253
  let t6;
251
- if ($[18] !== align || $[19] !== ariaSort || $[20] !== rest || $[21] !== t5) {
254
+ if ($[19] !== align || $[20] !== ariaSort || $[21] !== rest || $[22] !== t5) {
252
255
  t6 = /*#__PURE__*/ jsx(TableHeader, {
253
256
  ...rest,
254
257
  "aria-sort": ariaSort,
@@ -256,12 +259,12 @@ function TableSortHeader(t0) {
256
259
  "data-component": "Table.SortHeader",
257
260
  children: t5
258
261
  });
259
- $[18] = align;
260
- $[19] = ariaSort;
261
- $[20] = rest;
262
- $[21] = t5;
263
- $[22] = t6;
264
- } else t6 = $[22];
262
+ $[19] = align;
263
+ $[20] = ariaSort;
264
+ $[21] = rest;
265
+ $[22] = t5;
266
+ $[23] = t6;
267
+ } else t6 = $[23];
265
268
  return t6;
266
269
  }
267
270
  function TableRow(t0) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primer/react",
3
3
  "type": "module",
4
- "version": "38.39.0-rc.fa0bd106b",
4
+ "version": "38.39.0-rc.fbea7df95",
5
5
  "description": "An implementation of GitHub's Primer Design System using React",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -166,7 +166,7 @@
166
166
  "react-is": "18.3.1",
167
167
  "recast": "0.23.7",
168
168
  "rimraf": "5.0.5",
169
- "rolldown": "^1.2.5",
169
+ "rolldown": "^1.2.6",
170
170
  "rolldown-plugin-dts": "^0.26.0",
171
171
  "rolldown-plugin-import-css": "^0.0.0",
172
172
  "rolldown-plugin-preserve-directives": "^0.0.0",