@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 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
@@ -181,7 +181,7 @@ function TableHeader(t0) {
181
181
  return t2;
182
182
  }
183
183
  function TableSortHeader(t0) {
184
- const $ = c(24);
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__*/ jsx(Fragment$1, { children: /*#__PURE__*/ jsx(SortAscIcon, { className: clsx("TableSortIcon", "TableSortIcon--ascending", Table_module_css_default.TableSortIcon, Table_module_css_default["TableSortIcon--ascending"]) }) }) : null;
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] !== sortAction || $[15] !== t2 || $[16] !== t3 || $[17] !== t4) {
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] = sortAction;
248
- $[15] = t2;
249
- $[16] = t3;
250
- $[17] = t4;
251
- $[18] = t5;
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 ($[19] !== align || $[20] !== ariaSort || $[21] !== rest || $[22] !== t5) {
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
- $[19] = align;
263
- $[20] = ariaSort;
264
- $[21] = rest;
265
- $[22] = t5;
266
- $[23] = t6;
267
- } else t6 = $[23];
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primer/react",
3
3
  "type": "module",
4
- "version": "38.39.0-rc.e451fc572",
4
+ "version": "38.39.0-rc.fa0bd106b",
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",