ab-ui-library 1.33.0 → 1.33.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.
|
@@ -88,8 +88,9 @@ var Modal = function Modal(props) {
|
|
|
88
88
|
setContainerRef = _useState2[1];
|
|
89
89
|
useOnOutsideClick(containerRef, onClose, closeOnOutsideClick && isOpen, useId());
|
|
90
90
|
useHideBodyScroll(isOpen);
|
|
91
|
+
var checkbox = checkProps ? /*#__PURE__*/React.createElement(Checkbox, checkProps) : null;
|
|
91
92
|
var buttons = buttonProps ? /*#__PURE__*/React.createElement("div", {
|
|
92
|
-
className:
|
|
93
|
+
className: "flexbox ".concat(checkProps ? '' : 'full-width justify-content--end')
|
|
93
94
|
}, /*#__PURE__*/React.createElement(Button, _extends({
|
|
94
95
|
type: "tertiary",
|
|
95
96
|
className: "modal__footer__btn mr-16",
|
|
@@ -106,7 +107,6 @@ var Modal = function Modal(props) {
|
|
|
106
107
|
onClick: onSubmit,
|
|
107
108
|
dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-confirm-button") : ''
|
|
108
109
|
}, buttonProps.confirm))) : null;
|
|
109
|
-
var checkbox = checkProps ? /*#__PURE__*/React.createElement(Checkbox, checkProps) : null;
|
|
110
110
|
return /*#__PURE__*/React.createElement(AnimatePresenceWrapper, null, isOpen ? /*#__PURE__*/React.createElement(motion.div, {
|
|
111
111
|
className: classNames('modal', "modal--".concat(size), className),
|
|
112
112
|
initial: {
|