@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 +1 -1
- package/dist/Overlay/Overlay.js +20 -19
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/Overlay/Overlay.js
CHANGED
|
@@ -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
|
-
|
|
313
|
-
|
|
314
|
-
|
|
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:
|
|
325
|
+
popover: t14,
|
|
325
326
|
...props
|
|
326
327
|
});
|
|
327
328
|
$[38] = height;
|
|
328
329
|
$[39] = leftPosition;
|
|
329
|
-
$[40] =
|
|
330
|
-
$[41] =
|
|
331
|
-
$[42] =
|
|
332
|
-
$[43] =
|
|
333
|
-
$[44] =
|
|
334
|
-
$[45] =
|
|
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] =
|
|
338
|
+
$[48] = t15;
|
|
338
339
|
} else {
|
|
339
|
-
|
|
340
|
+
t15 = $[48];
|
|
340
341
|
}
|
|
341
|
-
const overlayContent =
|
|
342
|
+
const overlayContent = t15;
|
|
342
343
|
if (_PrivateDisablePortal && cssAnchorPositioning) {
|
|
343
344
|
return overlayContent;
|
|
344
345
|
}
|
|
345
|
-
let
|
|
346
|
+
let t16;
|
|
346
347
|
if ($[49] !== overlayContent || $[50] !== portalContainerName) {
|
|
347
|
-
|
|
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] =
|
|
354
|
+
$[51] = t16;
|
|
354
355
|
} else {
|
|
355
|
-
|
|
356
|
+
t16 = $[51];
|
|
356
357
|
}
|
|
357
|
-
return
|
|
358
|
+
return t16;
|
|
358
359
|
});
|
|
359
360
|
|
|
360
361
|
export { BaseOverlay, Overlay as default, heightMap, widthMap };
|
package/package.json
CHANGED