@cyber-harbour/ui 1.0.73 → 1.0.74
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.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Core/Modal/Modal.tsx +2 -2
- package/src/Core/Overlay/Overlay.tsx +1 -1
package/package.json
CHANGED
package/src/Core/Modal/Modal.tsx
CHANGED
|
@@ -15,7 +15,7 @@ interface ModalChildrenProps extends FabricComponent<Omit<React.HTMLAttributes<H
|
|
|
15
15
|
|
|
16
16
|
export const Modal = ({ children, onClose, isNested = false, width }: ModalProps) => {
|
|
17
17
|
return (
|
|
18
|
-
<Overlay onOutsideClick={onClose} isLocked={!isNested}
|
|
18
|
+
<Overlay onOutsideClick={onClose} isLocked={!isNested}>
|
|
19
19
|
<StyledContainer $width={width}>{children}</StyledContainer>
|
|
20
20
|
</Overlay>
|
|
21
21
|
);
|
|
@@ -106,7 +106,7 @@ const StyledContainer = styled.div<{ $width?: number }>(
|
|
|
106
106
|
transform: translate(-50%, -50%);
|
|
107
107
|
height: auto;
|
|
108
108
|
max-height: 90dvh;
|
|
109
|
-
width: ${propToRem($width)};
|
|
109
|
+
width: ${propToRem($width, theme.baseSize)};
|
|
110
110
|
max-width: 90vw;
|
|
111
111
|
border: 1px solid ${theme.modal.borderColor};
|
|
112
112
|
box-shadow: ${theme.modal.shadow};
|
|
@@ -13,7 +13,6 @@ export type OverlayProps = {
|
|
|
13
13
|
prepend?: any;
|
|
14
14
|
prependPosition?: Position;
|
|
15
15
|
isLocked?: boolean;
|
|
16
|
-
className?: string;
|
|
17
16
|
};
|
|
18
17
|
|
|
19
18
|
export const Overlay = createComponent<OverlayProps>(
|
|
@@ -22,6 +21,7 @@ export const Overlay = createComponent<OverlayProps>(
|
|
|
22
21
|
return createPortal(
|
|
23
22
|
<Container
|
|
24
23
|
{...props}
|
|
24
|
+
className="cb-ui-backdrop"
|
|
25
25
|
onClick={(e) => {
|
|
26
26
|
if (e.target === e.currentTarget && onOutsideClick) {
|
|
27
27
|
onOutsideClick();
|