@primer/react 0.0.0-20260414172626 → 0.0.0-20260414191606

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-20260414172626
3
+ ## 0.0.0-20260414191606
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -288,7 +288,7 @@ const Overlay = /*#__PURE__*/React.forwardRef((t0, forwardedRef) => {
288
288
  let t12;
289
289
  if ($[34] !== cssAnchorPositioning || $[35] !== popover) {
290
290
  t11 = () => {
291
- if (!popover || !overlayRef.current || cssAnchorPositioning) {
291
+ if (!popover || !overlayRef.current || !cssAnchorPositioning) {
292
292
  return;
293
293
  }
294
294
  try {
@@ -309,9 +309,10 @@ const Overlay = /*#__PURE__*/React.forwardRef((t0, forwardedRef) => {
309
309
  useIsomorphicLayoutEffect(t11, t12);
310
310
  const leftPosition = left === undefined && right === undefined ? 0 : left;
311
311
  const t13 = !preventOverflow ? true : undefined;
312
- let t14;
313
- if ($[38] !== height || $[39] !== leftPosition || $[40] !== popover || $[41] !== props || $[42] !== responsiveVariant || $[43] !== right || $[44] !== role || $[45] !== t13 || $[46] !== visibility || $[47] !== width) {
314
- t14 = /*#__PURE__*/jsx(BaseOverlay, {
312
+ const t14 = cssAnchorPositioning ? popover : undefined;
313
+ let t15;
314
+ if ($[38] !== height || $[39] !== leftPosition || $[40] !== props || $[41] !== responsiveVariant || $[42] !== right || $[43] !== role || $[44] !== t13 || $[45] !== t14 || $[46] !== visibility || $[47] !== width) {
315
+ t15 = /*#__PURE__*/jsx(BaseOverlay, {
315
316
  role: role,
316
317
  width: width,
317
318
  "data-reflow-container": t13,
@@ -321,40 +322,40 @@ const Overlay = /*#__PURE__*/React.forwardRef((t0, forwardedRef) => {
321
322
  height: height,
322
323
  visibility: visibility,
323
324
  "data-responsive": responsiveVariant,
324
- popover: popover,
325
+ popover: t14,
325
326
  ...props
326
327
  });
327
328
  $[38] = height;
328
329
  $[39] = leftPosition;
329
- $[40] = popover;
330
- $[41] = props;
331
- $[42] = responsiveVariant;
332
- $[43] = right;
333
- $[44] = role;
334
- $[45] = t13;
330
+ $[40] = props;
331
+ $[41] = responsiveVariant;
332
+ $[42] = right;
333
+ $[43] = role;
334
+ $[44] = t13;
335
+ $[45] = t14;
335
336
  $[46] = visibility;
336
337
  $[47] = width;
337
- $[48] = t14;
338
+ $[48] = t15;
338
339
  } else {
339
- t14 = $[48];
340
+ t15 = $[48];
340
341
  }
341
- const overlayContent = t14;
342
+ const overlayContent = t15;
342
343
  if (_PrivateDisablePortal && cssAnchorPositioning) {
343
344
  return overlayContent;
344
345
  }
345
- let t15;
346
+ let t16;
346
347
  if ($[49] !== overlayContent || $[50] !== portalContainerName) {
347
- t15 = /*#__PURE__*/jsx(Portal, {
348
+ t16 = /*#__PURE__*/jsx(Portal, {
348
349
  containerName: portalContainerName,
349
350
  children: overlayContent
350
351
  });
351
352
  $[49] = overlayContent;
352
353
  $[50] = portalContainerName;
353
- $[51] = t15;
354
+ $[51] = t16;
354
355
  } else {
355
- t15 = $[51];
356
+ t16 = $[51];
356
357
  }
357
- return t15;
358
+ return t16;
358
359
  });
359
360
 
360
361
  export { BaseOverlay, Overlay as default, heightMap, widthMap };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primer/react",
3
3
  "type": "module",
4
- "version": "0.0.0-20260414172626",
4
+ "version": "0.0.0-20260414191606",
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",