@linzjs/lui 12.1.4 → 12.2.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.
- package/CHANGELOG.md +7 -0
- package/dist/components/LuiModal/LuiModal.d.ts +1 -0
- package/dist/components/LuiModal/LuiModal.stories.d.ts +1 -0
- package/dist/lui.cjs.development.js +6 -3
- package/dist/lui.cjs.development.js.map +1 -1
- package/dist/lui.cjs.production.min.js +1 -1
- package/dist/lui.cjs.production.min.js.map +1 -1
- package/dist/lui.esm.js +6 -3
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/lui.esm.js
CHANGED
|
@@ -18712,7 +18712,7 @@ var LuiModal = function LuiModal(props) {
|
|
|
18712
18712
|
}
|
|
18713
18713
|
}
|
|
18714
18714
|
|
|
18715
|
-
return React__default.createElement(Modal, {
|
|
18715
|
+
return React__default.createElement(Modal, Object.assign({
|
|
18716
18716
|
key: props.key,
|
|
18717
18717
|
isOpen: true,
|
|
18718
18718
|
shouldCloseOnOverlayClick: props.shouldCloseOnOverlayClick,
|
|
@@ -18720,7 +18720,9 @@ var LuiModal = function LuiModal(props) {
|
|
|
18720
18720
|
overlayClassName: "modal",
|
|
18721
18721
|
className: props.lowContrast ? 'lui-scrim-low-contrast' : 'lui-scrim',
|
|
18722
18722
|
ariaHideApp: !isTest
|
|
18723
|
-
},
|
|
18723
|
+
}, props.appendToElement && {
|
|
18724
|
+
parentSelector: props.appendToElement
|
|
18725
|
+
}), React__default.createElement("div", {
|
|
18724
18726
|
ref: node,
|
|
18725
18727
|
className: clsx('lui-modal lui-box-shadow', props.maxWidth && 'lui-max-width', props.headingText && 'lui-modal-no-padding', props.className)
|
|
18726
18728
|
}, props.headingText && React__default.createElement(LuiModalHeader, {
|
|
@@ -18736,7 +18738,8 @@ var LuiAlertModal = function LuiAlertModal(props) {
|
|
|
18736
18738
|
key: props.key,
|
|
18737
18739
|
shouldCloseOnOverlayClick: props.shouldCloseOnOverlayClick,
|
|
18738
18740
|
onClose: props.onClose,
|
|
18739
|
-
className: clsx("lui-modal-" + props.level, props.className)
|
|
18741
|
+
className: clsx("lui-modal-" + props.level, props.className),
|
|
18742
|
+
appendToElement: props.appendToElement
|
|
18740
18743
|
}, React__default.createElement("i", {
|
|
18741
18744
|
className: "lui-msg-status-icon material-icons-round"
|
|
18742
18745
|
}, materialIcon), props.children);
|