opus-toolkit-components 0.4.7 → 0.4.8
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.
|
@@ -591,6 +591,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
591
591
|
DatePicker: () => (/* reexport */ DatePicker),
|
|
592
592
|
Dropdown: () => (/* reexport */ Dropdown),
|
|
593
593
|
Input: () => (/* reexport */ Inputs_Input),
|
|
594
|
+
Modal: () => (/* reexport */ Modals_Modal),
|
|
594
595
|
Navbar: () => (/* reexport */ Navbar_Navbar),
|
|
595
596
|
RadioButton: () => (/* reexport */ Radios_RadioButton),
|
|
596
597
|
Table: () => (/* reexport */ Table)
|
|
@@ -9370,6 +9371,69 @@ const Navbar = _ref => {
|
|
|
9370
9371
|
}, children)));
|
|
9371
9372
|
};
|
|
9372
9373
|
/* harmony default export */ const Navbar_Navbar = (Navbar);
|
|
9374
|
+
;// ./node_modules/@heroicons/react/24/solid/esm/XMarkIcon.js
|
|
9375
|
+
|
|
9376
|
+
function XMarkIcon({
|
|
9377
|
+
title,
|
|
9378
|
+
titleId,
|
|
9379
|
+
...props
|
|
9380
|
+
}, svgRef) {
|
|
9381
|
+
return /*#__PURE__*/external_react_.createElement("svg", Object.assign({
|
|
9382
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9383
|
+
viewBox: "0 0 24 24",
|
|
9384
|
+
fill: "currentColor",
|
|
9385
|
+
"aria-hidden": "true",
|
|
9386
|
+
"data-slot": "icon",
|
|
9387
|
+
ref: svgRef,
|
|
9388
|
+
"aria-labelledby": titleId
|
|
9389
|
+
}, props), title ? /*#__PURE__*/external_react_.createElement("title", {
|
|
9390
|
+
id: titleId
|
|
9391
|
+
}, title) : null, /*#__PURE__*/external_react_.createElement("path", {
|
|
9392
|
+
fillRule: "evenodd",
|
|
9393
|
+
d: "M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",
|
|
9394
|
+
clipRule: "evenodd"
|
|
9395
|
+
}));
|
|
9396
|
+
}
|
|
9397
|
+
const XMarkIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(XMarkIcon);
|
|
9398
|
+
/* harmony default export */ const esm_XMarkIcon = (XMarkIcon_ForwardRef);
|
|
9399
|
+
;// ./src/components/Modals/Modal.js
|
|
9400
|
+
|
|
9401
|
+
|
|
9402
|
+
|
|
9403
|
+
const Modal = _ref => {
|
|
9404
|
+
let {
|
|
9405
|
+
isOpen,
|
|
9406
|
+
title,
|
|
9407
|
+
text,
|
|
9408
|
+
onClose,
|
|
9409
|
+
children,
|
|
9410
|
+
primaryAction,
|
|
9411
|
+
// Props for the primary button
|
|
9412
|
+
secondaryAction // Props for the secondary button
|
|
9413
|
+
} = _ref;
|
|
9414
|
+
if (!isOpen) return null;
|
|
9415
|
+
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
9416
|
+
className: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"
|
|
9417
|
+
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
9418
|
+
className: "bg-greyBaseLight rounded-lg shadow-lg w-11/12 max-w-md p-6"
|
|
9419
|
+
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
9420
|
+
className: "flex justify-end items-center pb-3"
|
|
9421
|
+
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
9422
|
+
onClick: onClose,
|
|
9423
|
+
className: "hover:cursor-pointer"
|
|
9424
|
+
}, /*#__PURE__*/external_react_default().createElement(esm_XMarkIcon, {
|
|
9425
|
+
width: "24px"
|
|
9426
|
+
}))), /*#__PURE__*/external_react_default().createElement("div", {
|
|
9427
|
+
className: "border-b border-greyLight100 pb-4"
|
|
9428
|
+
}, /*#__PURE__*/external_react_default().createElement("h4", {
|
|
9429
|
+
className: "text-h4"
|
|
9430
|
+
}, title), /*#__PURE__*/external_react_default().createElement("p", null, text)), /*#__PURE__*/external_react_default().createElement("div", {
|
|
9431
|
+
className: "mt-4"
|
|
9432
|
+
}, children), /*#__PURE__*/external_react_default().createElement("div", {
|
|
9433
|
+
className: "mt-6 flex justify-end gap-2"
|
|
9434
|
+
}, secondaryAction && /*#__PURE__*/external_react_default().createElement(Button, secondaryAction), primaryAction && /*#__PURE__*/external_react_default().createElement(Button, primaryAction))));
|
|
9435
|
+
};
|
|
9436
|
+
/* harmony default export */ const Modals_Modal = (Modal);
|
|
9373
9437
|
;// ./src/index.js
|
|
9374
9438
|
|
|
9375
9439
|
|
|
@@ -9380,8 +9444,9 @@ const Navbar = _ref => {
|
|
|
9380
9444
|
|
|
9381
9445
|
|
|
9382
9446
|
|
|
9447
|
+
|
|
9383
9448
|
/******/ return __webpack_exports__;
|
|
9384
9449
|
/******/ })()
|
|
9385
9450
|
;
|
|
9386
9451
|
});
|
|
9387
|
-
//# sourceMappingURL=main.
|
|
9452
|
+
//# sourceMappingURL=main.27e38fb8f2be4aafc01b.js.map
|