@primer/react 0.0.0-20260722001252 → 0.0.0-20260722112739

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
@@ -1,6 +1,6 @@
1
1
  # @primer/react
2
2
 
3
- ## 0.0.0-20260722001252
3
+ ## 0.0.0-20260722112739
4
4
 
5
5
  ### Major Changes
6
6
 
@@ -18,6 +18,8 @@
18
18
 
19
19
  - Fake entry to force publishing
20
20
 
21
+ - [#8211](https://github.com/primer/react/pull/8211) [`a3e669f`](https://github.com/primer/react/commit/a3e669fa551a7d07841ce20224199d172905860f) Thanks [@francinelucca](https://github.com/francinelucca)! - Link: Remove unnecessary `data-hover-color` attribute from rendered DOM element
22
+
21
23
  - [#8169](https://github.com/primer/react/pull/8169) [`1d6f559`](https://github.com/primer/react/commit/1d6f5593f5e482d1d03027522bc882560c7b1f06) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Timeline: `Timeline.Actions` now wraps onto a new row below `Timeline.Body`, left-aligned with the body content, when `Timeline.Item` is narrower than 480px.
22
24
 
23
25
  ## 38.33.0
package/dist/Link/Link.js CHANGED
@@ -8,74 +8,74 @@ import { jsx } from "react/jsx-runtime";
8
8
  import React from "react";
9
9
  //#region src/Link/Link.tsx
10
10
  const UnwrappedLink = (props, ref) => {
11
- const $ = c(19);
11
+ const $ = c(17);
12
12
  let className;
13
- let hoverColor;
14
13
  let inline;
15
14
  let muted;
16
15
  let restProps;
17
16
  let t0;
18
17
  if ($[0] !== props) {
19
- ({as: t0, className, inline, muted, hoverColor, ...restProps} = props);
18
+ const { as: t1, className: t2, inline: t3, muted: t4, hoverColor: _hoverColor, ...t5 } = props;
19
+ t0 = t1;
20
+ className = t2;
21
+ inline = t3;
22
+ muted = t4;
23
+ restProps = t5;
20
24
  $[0] = props;
21
25
  $[1] = className;
22
- $[2] = hoverColor;
23
- $[3] = inline;
24
- $[4] = muted;
25
- $[5] = restProps;
26
- $[6] = t0;
26
+ $[2] = inline;
27
+ $[3] = muted;
28
+ $[4] = restProps;
29
+ $[5] = t0;
27
30
  } else {
28
31
  className = $[1];
29
- hoverColor = $[2];
30
- inline = $[3];
31
- muted = $[4];
32
- restProps = $[5];
33
- t0 = $[6];
32
+ inline = $[2];
33
+ muted = $[3];
34
+ restProps = $[4];
35
+ t0 = $[5];
34
36
  }
35
37
  const Component = t0 === void 0 ? "a" : t0;
36
38
  const innerRef = React.useRef(null);
37
39
  const mergedRef = useMergedRefs(ref, innerRef);
38
40
  let t1;
39
41
  let t2;
40
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
42
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
41
43
  t1 = () => {
42
44
  if (innerRef.current && !(innerRef.current instanceof HTMLButtonElement) && !(innerRef.current instanceof HTMLAnchorElement)) console.error("Error: Found `Link` component that renders an inaccessible element", innerRef.current, "Please ensure `Link` always renders as <a> or <button>");
43
45
  };
44
46
  t2 = [innerRef];
45
- $[7] = t1;
46
- $[8] = t2;
47
+ $[6] = t1;
48
+ $[7] = t2;
47
49
  } else {
48
- t1 = $[7];
49
- t2 = $[8];
50
+ t1 = $[6];
51
+ t2 = $[7];
50
52
  }
51
53
  useDevOnlyEffect(t1, t2);
52
54
  let t3;
53
- if ($[9] !== className) {
55
+ if ($[8] !== className) {
54
56
  t3 = clsx(className, Link_module_css_default.Link);
55
- $[9] = className;
56
- $[10] = t3;
57
- } else t3 = $[10];
57
+ $[8] = className;
58
+ $[9] = t3;
59
+ } else t3 = $[9];
58
60
  const t4 = mergedRef;
59
61
  let t5;
60
- if ($[11] !== Component || $[12] !== hoverColor || $[13] !== inline || $[14] !== muted || $[15] !== restProps || $[16] !== t3 || $[17] !== t4) {
62
+ if ($[10] !== Component || $[11] !== inline || $[12] !== muted || $[13] !== restProps || $[14] !== t3 || $[15] !== t4) {
61
63
  t5 = /*#__PURE__*/ jsx(Component, {
62
64
  className: t3,
63
65
  "data-component": "Link",
64
66
  "data-muted": muted,
65
67
  "data-inline": inline,
66
- "data-hover-color": hoverColor,
67
68
  ...restProps,
68
69
  ref: t4
69
70
  });
70
- $[11] = Component;
71
- $[12] = hoverColor;
72
- $[13] = inline;
73
- $[14] = muted;
74
- $[15] = restProps;
75
- $[16] = t3;
76
- $[17] = t4;
77
- $[18] = t5;
78
- } else t5 = $[18];
71
+ $[10] = Component;
72
+ $[11] = inline;
73
+ $[12] = muted;
74
+ $[13] = restProps;
75
+ $[14] = t3;
76
+ $[15] = t4;
77
+ $[16] = t5;
78
+ } else t5 = $[16];
79
79
  return t5;
80
80
  };
81
81
  const LinkComponent = fixedForwardRef(UnwrappedLink);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primer/react",
3
3
  "type": "module",
4
- "version": "0.0.0-20260722001252",
4
+ "version": "0.0.0-20260722112739",
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",