@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyber-harbour/ui",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -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} className="cb-ui-backdrop">
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();