@ansible/ansible-ui-framework 0.0.586 → 0.0.588

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
1
+ /// <reference types="react" />
2
2
  export declare function DetailInfo(props: {
3
- children: ReactNode;
4
- disablePaddingTop?: boolean;
3
+ title: string;
4
+ description?: string;
5
5
  }): JSX.Element;
@@ -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
- return ((0, jsx_runtime_1.jsx)(react_core_1.PageSection, __assign({ className: "pf-c-alert pf-m-inline pf-m-info", style: {
19
- border: 0,
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"),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "A framework for building applications using PatternFly.",
4
- "version": "0.0.586",
4
+ "version": "0.0.588",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",