@sonic-equipment/ui 0.0.29 → 0.0.30

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/dist/index.js CHANGED
@@ -6415,6 +6415,8 @@ function OverlayBackground({ isOpen, onClick }) {
6415
6415
  };
6416
6416
  node.addEventListener('animationend', handleAnimationEnd);
6417
6417
  }, [isOpen]);
6418
+ if (typeof window === 'undefined')
6419
+ return null;
6418
6420
  return ReactDOM.createPortal(jsx("div", { ref: nodeRef, className: clsx(styles$4['overlay-background'], {
6419
6421
  [styles$4['open']]: isOpen,
6420
6422
  [styles$4['close']]: !isOpen,
@@ -3,5 +3,5 @@ interface OverlayBackgroundProps {
3
3
  isOpen: boolean;
4
4
  onClick: VoidFunction;
5
5
  }
6
- export declare function OverlayBackground({ isOpen, onClick }: OverlayBackgroundProps): React.ReactPortal;
6
+ export declare function OverlayBackground({ isOpen, onClick }: OverlayBackgroundProps): React.ReactPortal | null;
7
7
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -15,10 +15,7 @@
15
15
  "default": "./dist/index.js"
16
16
  }
17
17
  },
18
- "files": [
19
- "dist",
20
- "README.md"
21
- ],
18
+ "files": ["dist", "README.md"],
22
19
  "main": "dist/index.js",
23
20
  "types": "./dist/index.d.ts",
24
21
  "scripts": {