ab-ui-library 1.52.0 → 1.53.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.
|
@@ -75,7 +75,8 @@ var ModalConfirmation = function ModalConfirmation(props) {
|
|
|
75
75
|
_props$closeOnOutside = props.closeOnOutsideClick,
|
|
76
76
|
closeOnOutsideClick = _props$closeOnOutside === void 0 ? true : _props$closeOnOutside,
|
|
77
77
|
iconProps = props.iconProps,
|
|
78
|
-
subtitle = props.subtitle
|
|
78
|
+
subtitle = props.subtitle,
|
|
79
|
+
children = props.children;
|
|
79
80
|
var _useState = useState(null),
|
|
80
81
|
_useState2 = _slicedToArray(_useState, 2),
|
|
81
82
|
containerRef = _useState2[0],
|
|
@@ -111,7 +112,9 @@ var ModalConfirmation = function ModalConfirmation(props) {
|
|
|
111
112
|
dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-title") : ''
|
|
112
113
|
}, title) : null, subtitle ? /*#__PURE__*/React.createElement(Text, {
|
|
113
114
|
className: 'mt-12'
|
|
114
|
-
}, subtitle) : null,
|
|
115
|
+
}, subtitle) : null, children ? /*#__PURE__*/React.createElement("div", {
|
|
116
|
+
className: 'mt-32'
|
|
117
|
+
}, children) : null, buttonProps ? /*#__PURE__*/React.createElement("div", {
|
|
115
118
|
className: "modal__footer mt-32 ".concat(isFooterInline ? 'modal__footer-inline' : 'modal__footer-block')
|
|
116
119
|
}, buttonProps !== null && buttonProps !== void 0 && buttonProps.cancel ? /*#__PURE__*/React.createElement(Button, _extends({
|
|
117
120
|
type: "secondary",
|