@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 +3 -1
- package/dist/Link/Link.js +33 -33
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
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(
|
|
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
|
-
|
|
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] =
|
|
23
|
-
$[3] =
|
|
24
|
-
$[4] =
|
|
25
|
-
$[5] =
|
|
26
|
-
$[6] = t0;
|
|
26
|
+
$[2] = inline;
|
|
27
|
+
$[3] = muted;
|
|
28
|
+
$[4] = restProps;
|
|
29
|
+
$[5] = t0;
|
|
27
30
|
} else {
|
|
28
31
|
className = $[1];
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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 ($[
|
|
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
|
-
$[
|
|
46
|
-
$[
|
|
47
|
+
$[6] = t1;
|
|
48
|
+
$[7] = t2;
|
|
47
49
|
} else {
|
|
48
|
-
t1 = $[
|
|
49
|
-
t2 = $[
|
|
50
|
+
t1 = $[6];
|
|
51
|
+
t2 = $[7];
|
|
50
52
|
}
|
|
51
53
|
useDevOnlyEffect(t1, t2);
|
|
52
54
|
let t3;
|
|
53
|
-
if ($[
|
|
55
|
+
if ($[8] !== className) {
|
|
54
56
|
t3 = clsx(className, Link_module_css_default.Link);
|
|
55
|
-
$[
|
|
56
|
-
$[
|
|
57
|
-
} else t3 = $[
|
|
57
|
+
$[8] = className;
|
|
58
|
+
$[9] = t3;
|
|
59
|
+
} else t3 = $[9];
|
|
58
60
|
const t4 = mergedRef;
|
|
59
61
|
let t5;
|
|
60
|
-
if ($[
|
|
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
|
-
$[
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
$[
|
|
74
|
-
$[
|
|
75
|
-
$[
|
|
76
|
-
$[
|
|
77
|
-
|
|
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