@primer/react 0.0.0-20260305181729 → 0.0.0-20260305182938

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-20260305181729
3
+ ## 0.0.0-20260305182938
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -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(5);
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
- const t2 = !text;
37
- let t3;
38
- if ($[0] !== children || $[1] !== forwardedRef || $[2] !== t1 || $[3] !== t2) {
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
- t3 = $[4];
50
+ t2 = $[3];
54
51
  }
55
- return t3;
52
+ return t2;
56
53
  });
57
54
  const SubItem = t0 => {
58
55
  const $ = c(2);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primer/react",
3
3
  "type": "module",
4
- "version": "0.0.0-20260305181729",
4
+ "version": "0.0.0-20260305182938",
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",