@ansible/ansible-ui-framework 0.0.587 → 0.0.589
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.
@@ -200,10 +200,10 @@ function ToolbarTextFilter(props) {
|
|
200
200
|
}
|
201
201
|
}, placeholder: props.placeholder }), value !== '' && ((0, jsx_runtime_1.jsx)(react_core_1.TextInputGroupUtilities, { children: (0, jsx_runtime_1.jsx)(react_core_1.Button, __assign({ variant: "plain", "aria-label": "clear filter", onClick: function () { return setValue(''); }, style: { opacity: value ? undefined : 0 },
|
202
202
|
// tabIndex={value ? undefined : -1}
|
203
|
-
tabIndex: -1 }, { children: (0, jsx_runtime_1.jsx)(react_icons_1.TimesIcon, {}) })) }))] })),
|
203
|
+
tabIndex: -1 }, { children: (0, jsx_runtime_1.jsx)(react_icons_1.TimesIcon, {}) })) }))] })), (0, jsx_runtime_1.jsx)(react_core_1.Button, __assign({ variant: value ? 'primary' : 'control', "aria-label": "apply filter", onClick: function () {
|
204
204
|
props.addFilter(value);
|
205
205
|
setValue('');
|
206
|
-
}, tabIndex: -1 }, { children: (0, jsx_runtime_1.jsx)(react_icons_1.ArrowRightIcon, {}) }))
|
206
|
+
}, tabIndex: -1, isDisabled: !value }, { children: (0, jsx_runtime_1.jsx)(react_icons_1.ArrowRightIcon, {}) }))] }));
|
207
207
|
}
|
208
208
|
function ToolbarSelectFilter(props) {
|
209
209
|
var _a = __read((0, useFrameworkTranslations_1.useFrameworkTranslations)(), 1), translations = _a[0];
|
@@ -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;
|