odaptos_design_system 1.4.311 → 1.4.312

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.
@@ -13,9 +13,10 @@ interface ModalProps {
13
13
  onPressEnter?: () => void;
14
14
  onConfirm?: () => void;
15
15
  width?: string;
16
+ height?: string;
16
17
  }
17
18
  /** Figma link full-height : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=997-7695&mode=dev
18
19
  * Figma link overlay : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=2447-42540&mode=dev
19
20
  */
20
- export declare const Modal: ({ className, type, onClose, open, children, title, hideCloseButton, cancelText, disabled, validationText, onPressEnter, onConfirm, width, }: ModalProps) => React.JSX.Element;
21
+ export declare const Modal: ({ className, type, onClose, open, children, title, hideCloseButton, cancelText, disabled, validationText, onPressEnter, onConfirm, width, height, }: ModalProps) => React.JSX.Element;
21
22
  export {};
@@ -11761,7 +11761,8 @@ const Modal = ({
11761
11761
  validationText,
11762
11762
  onPressEnter,
11763
11763
  onConfirm,
11764
- width
11764
+ width,
11765
+ height
11765
11766
  }) => {
11766
11767
  React.useEffect(() => {
11767
11768
  const handleKeyDown = e => {
@@ -11789,7 +11790,8 @@ const Modal = ({
11789
11790
  }, /*#__PURE__*/React__default.createElement("div", {
11790
11791
  className: styles$w.modal_content,
11791
11792
  style: {
11792
- width: width ?? '21rem'
11793
+ width: width ?? '21rem',
11794
+ height: height ?? 'fit-content'
11793
11795
  }
11794
11796
  }, /*#__PURE__*/React__default.createElement("div", {
11795
11797
  className: `${styles$w.modal_header}`