@tap-payments/os-micro-frontend-shared 0.1.60-test.4 → 0.1.60-test.6

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.
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { BackdropProps as MuiBackdropProps } from '@mui/material/Backdrop';
3
+ export type WindowBackdropProps = MuiBackdropProps;
4
+ declare function WindowBackdrop(props: WindowBackdropProps): import("react").ReactPortal;
5
+ declare const _default: import("react").MemoExoticComponent<typeof WindowBackdrop>;
6
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { memo } from 'react';
3
+ import { createPortal } from 'react-dom';
4
+ import Backdrop from '@mui/material/Backdrop';
5
+ import { alpha } from '@mui/material/styles';
6
+ function WindowBackdrop(props) {
7
+ return createPortal(_jsx(Backdrop, Object.assign({ sx: { zIndex: 1, backgroundColor: (theme) => alpha(theme.palette.common.black, 0.3) } }, props)), document.body);
8
+ }
9
+ export default memo(WindowBackdrop);
@@ -0,0 +1 @@
1
+ export { default } from './WindowBackdrop';
@@ -0,0 +1 @@
1
+ export { default } from './WindowBackdrop';
@@ -102,3 +102,4 @@ export { default as StatusChipWithCopy } from './StatusChipWithCopy';
102
102
  export * from './RadioButton';
103
103
  export * from './RadioGroup';
104
104
  export * from './LeftPeekRightExpandingChip';
105
+ export { default as WindowBackdrop } from './WindowBackdrop';
@@ -102,3 +102,4 @@ export { default as StatusChipWithCopy } from './StatusChipWithCopy';
102
102
  export * from './RadioButton';
103
103
  export * from './RadioGroup';
104
104
  export * from './LeftPeekRightExpandingChip';
105
+ export { default as WindowBackdrop } from './WindowBackdrop';
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tap-payments/os-micro-frontend-shared",
3
3
  "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.1.60-test.4",
5
- "testVersion": 4,
4
+ "version": "0.1.60-test.6",
5
+ "testVersion": 6,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",