{"version":3,"file":"index22.mjs","sources":["../src/components/modal/Modal/index.tsx"],"sourcesContent":["import { FunctionComponent, ReactNode } from \"react\";\nimport ModalBase from \"../base\";\nimport { BasicButtonType } from \"../../buttons/basic\";\n\nexport type ModalType = {\n  className?: string;\n  description?: string;\n  title?: string;\n  showCloseButton?: boolean;\n  showHandleBar?: boolean;\n  \n  /** Content prop */\n  content?: ReactNode;\n\n  /** Variant props */\n  height?: \"hug-content\" | \"fill-container\";\n  type?: \"auto\" | \"bottom\" | \"overlay\";\n\n  /* Custom props */\n  buttonPrimary?: BasicButtonType;\n  buttonSecondary?: BasicButtonType;\n  show: boolean;\n  onClose?: () => void;\n  customIcon?: ReactNode;\n  customImage?: string;\n};\n\nexport const Modal: FunctionComponent<ModalType> = ({\n  className = \"\",\n  height = \"hug-content\",\n  type = \"bottom\",\n  description = \"Add the content here\",\n  title = \"Title\",\n  buttonPrimary,\n  buttonSecondary,\n  show,\n  onClose,\n  showCloseButton,\n  showHandleBar,\n  customIcon,\n  customImage,\n  content,\n}) => {\n  return (\n    <ModalBase\n      className={className}\n      height={height}\n      type={type}\n      description={description}\n      title={title}\n      buttonPrimary={buttonPrimary}\n      buttonSecondary={buttonSecondary}\n      show={show}\n      onClose={onClose}\n      showCloseButton={showCloseButton}\n      showHandleBar={showHandleBar}\n      customIcon={customIcon}\n      customImage={customImage}\n      content={content}\n    />\n  );\n};\n\nexport default Modal;\n"],"names":[],"mappings":";;AA2BO,MAAM,QAAsC,CAAC;AAAA,EAClD,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AAAA,EACP,cAAc;AAAA,EACd,QAAQ;AAAA,EACR;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AAEF,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,EACF;AAEJ;"}