@indico-data/design-system 2.47.0 → 2.47.1
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.
- package/lib/components/modal/Modal.d.ts +1 -1
- package/lib/components/modal/types.d.ts +1 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.esm.js +2 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/modal/Modal.mdx +15 -5
- package/src/components/modal/Modal.stories.tsx +11 -0
- package/src/components/modal/Modal.tsx +2 -0
- package/src/components/modal/types.ts +1 -0
package/lib/index.js
CHANGED
|
@@ -22358,10 +22358,10 @@ var libExports = lib.exports;
|
|
|
22358
22358
|
var ReactModal = /*@__PURE__*/getDefaultExportFromCjs(libExports);
|
|
22359
22359
|
|
|
22360
22360
|
const Modal = (_a) => {
|
|
22361
|
-
var { className = '', children, isOpen, onRequestClose, portalClassName, overlayClassName, appElement, shouldCloseOnOverlayClick, shouldCloseOnEsc, testId, contentElement, overlayElement, position = 'center' } = _a, rest = __rest(_a, ["className", "children", "isOpen", "onRequestClose", "portalClassName", "overlayClassName", "appElement", "shouldCloseOnOverlayClick", "shouldCloseOnEsc", "testId", "contentElement", "overlayElement", "position"]);
|
|
22361
|
+
var { className = '', children, isOpen, onRequestClose, portalClassName, overlayClassName, appElement, shouldCloseOnOverlayClick, shouldCloseOnEsc, testId, contentElement, overlayElement, position = 'center', parentSelector } = _a, rest = __rest(_a, ["className", "children", "isOpen", "onRequestClose", "portalClassName", "overlayClassName", "appElement", "shouldCloseOnOverlayClick", "shouldCloseOnEsc", "testId", "contentElement", "overlayElement", "position", "parentSelector"]);
|
|
22362
22362
|
const modalClasses = classNames('modal', `modal--${position}`, className);
|
|
22363
22363
|
const overlayClasses = classNames('modal-overlay', overlayClassName);
|
|
22364
|
-
return (jsxRuntime.jsx(ReactModal, Object.assign({ style: {}, className: modalClasses, overlayClassName: overlayClasses, testId: testId, isOpen: isOpen, onRequestClose: onRequestClose, portalClassName: portalClassName, appElement: appElement, shouldCloseOnOverlayClick: shouldCloseOnOverlayClick, shouldCloseOnEsc: shouldCloseOnEsc, contentElement: contentElement, overlayElement: overlayElement }, rest, { children: jsxRuntime.jsxs("div", { className: "modal-content", children: [jsxRuntime.jsx("div", { className: "modal-header", children: jsxRuntime.jsx(Row, { nogutter: true, children: jsxRuntime.jsx(Col, { xs: 12, className: "modal-close", children: jsxRuntime.jsx(Button$1, { className: "modal-close-button", onClick: onRequestClose, variant: "link", size: "md", iconLeft: "fa-xmark", ariaLabel: "Close" }) }) }) }), jsxRuntime.jsx("div", { className: "modal-body", children: children })] }) })));
|
|
22364
|
+
return (jsxRuntime.jsx(ReactModal, Object.assign({ style: {}, className: modalClasses, overlayClassName: overlayClasses, testId: testId, isOpen: isOpen, onRequestClose: onRequestClose, portalClassName: portalClassName, appElement: appElement, parentSelector: parentSelector, shouldCloseOnOverlayClick: shouldCloseOnOverlayClick, shouldCloseOnEsc: shouldCloseOnEsc, contentElement: contentElement, overlayElement: overlayElement }, rest, { children: jsxRuntime.jsxs("div", { className: "modal-content", children: [jsxRuntime.jsx("div", { className: "modal-header", children: jsxRuntime.jsx(Row, { nogutter: true, children: jsxRuntime.jsx(Col, { xs: 12, className: "modal-close", children: jsxRuntime.jsx(Button$1, { className: "modal-close-button", onClick: onRequestClose, variant: "link", size: "md", iconLeft: "fa-xmark", ariaLabel: "Close" }) }) }) }), jsxRuntime.jsx("div", { className: "modal-body", children: children })] }) })));
|
|
22365
22365
|
};
|
|
22366
22366
|
|
|
22367
22367
|
exports.Badge = Badge;
|