@megha-ui/react 1.2.458 → 1.2.460

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.
@@ -58,7 +58,7 @@ const Modal = ({ isOpen, onClose, title, subTitle, titleAlign = "left", children
58
58
  }, onClick: () => overlayClose && onClose(), children: _jsxs("div", { style: modalContentStyle, className: `${modalContentClass} flex flex-col`, onClick: (e) => e.stopPropagation(), children: [title && (_jsxs("div", { style: {
59
59
  position: "relative",
60
60
  marginBottom: 0,
61
- paddingBottom: "1rem",
61
+ padding: "1rem",
62
62
  }, children: [_jsxs("div", { style: { textAlign: titleAlign }, children: [_jsx("h4", { style: { fontSize: "1.25rem" }, children: title }), _jsx("p", { style: { margin: 0 }, children: subTitle })] }), _jsx("button", { type: "button", "aria-label": "Close", style: {
63
63
  position: "absolute",
64
64
  top: 10,
@@ -69,8 +69,11 @@ const Modal = ({ isOpen, onClose, title, subTitle, titleAlign = "left", children
69
69
  display: "flex",
70
70
  alignItems: "center",
71
71
  justifyContent: "center",
72
+ padding: 4,
72
73
  }, onClick: onClose, children: _jsx(MdClose, { size: 18 }) })] })), _jsx("div", { className: `${modalBodyClass} flex-grow overflow-auto`, style: {
73
74
  overflowY: bodyOverflow,
74
- }, children: children }), footer && (_jsx("div", { ref: footerRef, style: { marginTop: "auto", paddingTop: "1rem" }, children: footer }))] }) }));
75
+ paddingLeft: "1rem",
76
+ paddingRight: "1rem",
77
+ }, children: children }), footer && (_jsx("div", { ref: footerRef, style: { marginTop: "auto", padding: "1rem" }, children: footer }))] }) }));
75
78
  };
76
79
  export default Modal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.458",
3
+ "version": "1.2.460",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",