krl-alfred 1.74.5 → 1.74.6
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.
|
@@ -56,7 +56,7 @@ var Modal = function (props) {
|
|
|
56
56
|
};
|
|
57
57
|
var onPrimaryAction = props.onPrimaryAction, onSecondaryAction = props.onSecondaryAction, onBack = props.onBack, other = __rest(props, ["onPrimaryAction", "onSecondaryAction", "onBack"]);
|
|
58
58
|
var modalRef = (0, react_1.useRef)();
|
|
59
|
-
(0, useOnClickOutside_1.default)(modalRef,
|
|
59
|
+
(0, useOnClickOutside_1.default)(modalRef, props.onClose, props.hasCloseOnOutsideClick);
|
|
60
60
|
return (showModal &&
|
|
61
61
|
react_dom_1.default.createPortal((0, jsx_runtime_1.jsx)(Modal_styled_1.OverlayStyled, { children: (0, jsx_runtime_1.jsxs)(Modal_styled_1.ModalStyled, __assign({ ref: modalRef }, other, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: "header" }, { children: [props.showBackIcon ? ((0, jsx_runtime_1.jsx)("div", __assign({ onClick: onBack, className: "icon" }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "ArrowMedium" }) }))) : (props.titleAlignment === "center" && (0, jsx_runtime_1.jsx)("div", { className: "empty" })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "title" }, { children: [props.title && ((0, jsx_runtime_1.jsx)("h5", __assign({ className: props.titleAlignment === "left" ? (["small", "xsmall"].includes(props.size) ? "title-semi-bold-16-19" : "headline-semi-bold-18-22") : "headline-semi-bold-20-24" }, { children: props.title }))), props.titleDescription && ((0, jsx_runtime_1.jsx)("p", __assign({ className: "body-regular-14-17" }, { children: props.titleDescription })))] })), props.showCloseIcon ? ((0, jsx_runtime_1.jsx)("div", __assign({ onClick: onClose, className: "icon" }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "Close" }) }))) : ((0, jsx_runtime_1.jsx)("div", { className: "empty" }))] })), (0, jsx_runtime_1.jsx)("div", __assign({ className: "content" }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "contentInner" }, { children: props.children })) })), props.modalFooter ? props.modalFooter : (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (props.showPrimaryButton || props.showSecondaryButton) && (0, jsx_runtime_1.jsxs)("div", __assign({ className: "buttons" }, { children: [props.showPrimaryButton && ((0, jsx_runtime_1.jsx)(Button_1.default, __assign({ onClick: onPrimaryAction, size: "big", variant: "primary", isLoading: props.isPrimaryButtonLoading, disabled: props.isPrimaryButtonDisabled, width: props.primaryButtonWidth, icon: props.primaryButtonIcon }, { children: props.primaryButtonText }))), props.showSecondaryButton && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [props.buttonsAlignment === "vertical" && props.showDivider && ((0, jsx_runtime_1.jsx)(Divider_1.default, { text: t("or") })), (0, jsx_runtime_1.jsx)(Button_1.default, __assign({ onClick: onSecondaryAction, size: "big", variant: "inverted", isLoading: props.isSecondaryButtonLoading, disabled: props.isSecondaryButtonDisabled, width: props.secondaryButtonWidth, icon: props.secondaryButtonIcon }, { children: props.secondaryButtonText }))] }))] })) })] })) }), document.body));
|
|
62
62
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "krl-alfred",
|
|
3
|
-
"version": "1.74.
|
|
3
|
+
"version": "1.74.6",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@storybook/react-webpack5": "7.2.1",
|
|
92
92
|
"@svgr/cli": "^7.0.0",
|
|
93
93
|
"@svgr/webpack": "^7.0.0",
|
|
94
|
-
"semantic-release": "^21.
|
|
94
|
+
"semantic-release": "^21.1.2",
|
|
95
95
|
"storybook": "7.2.1",
|
|
96
96
|
"storybook-addon-locale": "^0.3.6"
|
|
97
97
|
}
|