opus-toolkit-components 0.4.9 → 0.5.0
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.
|
@@ -9451,17 +9451,13 @@ const XMarkIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(XMarkIcon)
|
|
|
9451
9451
|
;// ./src/components/Modals/Modal.js
|
|
9452
9452
|
|
|
9453
9453
|
|
|
9454
|
-
|
|
9455
9454
|
const Modal = _ref => {
|
|
9456
9455
|
let {
|
|
9457
9456
|
isOpen,
|
|
9458
|
-
title,
|
|
9459
|
-
text,
|
|
9460
9457
|
onClose,
|
|
9461
|
-
|
|
9462
|
-
|
|
9463
|
-
|
|
9464
|
-
secondaryAction // Props for the secondary button
|
|
9458
|
+
header,
|
|
9459
|
+
body,
|
|
9460
|
+
footer
|
|
9465
9461
|
} = _ref;
|
|
9466
9462
|
if (!isOpen) return null;
|
|
9467
9463
|
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
@@ -9477,13 +9473,9 @@ const Modal = _ref => {
|
|
|
9477
9473
|
width: "24px"
|
|
9478
9474
|
}))), /*#__PURE__*/external_react_default().createElement("div", {
|
|
9479
9475
|
className: "border-b border-greyLight100 pb-4"
|
|
9480
|
-
}, /*#__PURE__*/external_react_default().createElement("
|
|
9481
|
-
className: "
|
|
9482
|
-
},
|
|
9483
|
-
className: "mt-4"
|
|
9484
|
-
}, children), /*#__PURE__*/external_react_default().createElement("div", {
|
|
9485
|
-
className: "mt-6 flex justify-end gap-2"
|
|
9486
|
-
}, secondaryAction && /*#__PURE__*/external_react_default().createElement(Button, secondaryAction), primaryAction && /*#__PURE__*/external_react_default().createElement(Button, primaryAction))));
|
|
9476
|
+
}, header), /*#__PURE__*/external_react_default().createElement("div", {
|
|
9477
|
+
className: "my-2"
|
|
9478
|
+
}, body), /*#__PURE__*/external_react_default().createElement("div", null, footer)));
|
|
9487
9479
|
};
|
|
9488
9480
|
/* harmony default export */ const Modals_Modal = (Modal);
|
|
9489
9481
|
;// ./src/index.js
|
|
@@ -9501,4 +9493,4 @@ const Modal = _ref => {
|
|
|
9501
9493
|
/******/ })()
|
|
9502
9494
|
;
|
|
9503
9495
|
});
|
|
9504
|
-
//# sourceMappingURL=main.
|
|
9496
|
+
//# sourceMappingURL=main.a19a73517a94be49c0dc.js.map
|