@primer/react 0.0.0-20260305173247 → 0.0.0-20260305174612
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 +1 -1
- package/dist/ActionList/Item.js +7 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/ActionList/Item.js
CHANGED
|
@@ -23,36 +23,33 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
23
23
|
* For non-button-semantic items, renders children directly.
|
|
24
24
|
*/
|
|
25
25
|
const ConditionalTooltip = /*#__PURE__*/React.forwardRef(function ConditionalTooltip(t0, forwardedRef) {
|
|
26
|
-
const $ = c(
|
|
26
|
+
const $ = c(4);
|
|
27
27
|
const {
|
|
28
28
|
text,
|
|
29
29
|
enabled,
|
|
30
30
|
children
|
|
31
31
|
} = t0;
|
|
32
|
-
if (!enabled) {
|
|
32
|
+
if (!enabled || !text) {
|
|
33
33
|
return children;
|
|
34
34
|
}
|
|
35
35
|
const t1 = text || "";
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
t3 = /*#__PURE__*/jsx(Tooltip, {
|
|
36
|
+
let t2;
|
|
37
|
+
if ($[0] !== children || $[1] !== forwardedRef || $[2] !== t1) {
|
|
38
|
+
t2 = /*#__PURE__*/jsx(Tooltip, {
|
|
40
39
|
ref: forwardedRef,
|
|
41
40
|
text: t1,
|
|
42
41
|
direction: "e",
|
|
43
42
|
delay: "medium",
|
|
44
|
-
_privateDisableTooltip: t2,
|
|
45
43
|
children: children
|
|
46
44
|
});
|
|
47
45
|
$[0] = children;
|
|
48
46
|
$[1] = forwardedRef;
|
|
49
47
|
$[2] = t1;
|
|
50
48
|
$[3] = t2;
|
|
51
|
-
$[4] = t3;
|
|
52
49
|
} else {
|
|
53
|
-
|
|
50
|
+
t2 = $[3];
|
|
54
51
|
}
|
|
55
|
-
return
|
|
52
|
+
return t2;
|
|
56
53
|
});
|
|
57
54
|
const SubItem = t0 => {
|
|
58
55
|
const $ = c(2);
|
package/package.json
CHANGED