@ansible/ansible-ui-framework 0.0.586 → 0.0.588
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.
@@ -15,9 +15,7 @@ exports.DetailInfo = void 0;
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
16
16
|
var react_core_1 = require("@patternfly/react-core");
|
17
17
|
function DetailInfo(props) {
|
18
|
-
|
19
|
-
|
20
|
-
paddingTop: props.disablePaddingTop ? 0 : undefined,
|
21
|
-
} }, { children: props.children })));
|
18
|
+
var title = props.title, description = props.description;
|
19
|
+
return ((0, jsx_runtime_1.jsx)(react_core_1.PageSection, __assign({ variant: "light" }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Alert, __assign({ isInline: true, isPlain: true, variant: "info", title: title }, { children: description && (0, jsx_runtime_1.jsx)("p", { children: description }) })) })));
|
22
20
|
}
|
23
21
|
exports.DetailInfo = DetailInfo;
|
@@ -41,7 +41,7 @@ function SelectMultipleDialog(props) {
|
|
41
41
|
var onClose = (0, react_1.useCallback)(function () { return setDialog(undefined); }, [setDialog]);
|
42
42
|
var _d = __read((0, useFrameworkTranslations_1.useFrameworkTranslations)(), 1), translations = _d[0];
|
43
43
|
return ((0, jsx_runtime_1.jsx)(react_core_1.Modal, __assign({ title: title, isOpen: true, onClose: onClose, variant: react_core_1.ModalVariant.medium, tabIndex: 0, actions: [
|
44
|
-
(0, jsx_runtime_1.jsx)(react_core_1.Button, __assign({ variant: "primary", onClick: function () {
|
44
|
+
(0, jsx_runtime_1.jsx)(react_core_1.Button, __assign({ variant: "primary", id: "confirm", onClick: function () {
|
45
45
|
onClose();
|
46
46
|
onSelect(view.selectedItems);
|
47
47
|
}, isAriaDisabled: view.selectedItems.length === 0 }, { children: confirmText !== null && confirmText !== void 0 ? confirmText : translations.confirmText }), "confirm"),
|