@rh-support/components 2.0.5 → 2.0.7

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.
@@ -23,8 +23,8 @@ function AlertMessage(props) {
23
23
  return null;
24
24
  }
25
25
  // If there is no title then the children node becomes the title to have a better styling
26
- var alertMsg = props.title || props.children;
27
- return (react_1.default.createElement(react_core_1.Alert, { label: props.title, className: props.className, variant: props.variant, title: alertMsg, isInline: props.isInline, actionClose: !!props.onClose ? react_1.default.createElement(react_core_1.AlertActionCloseButton, { onClose: props.onClose }) : null }, props.title ? props.children : react_1.default.createElement(react_1.default.Fragment, null)));
26
+ var alertMsgTitle = props.title || props.children;
27
+ return (react_1.default.createElement(react_core_1.Alert, { label: props.title, className: props.className, variant: props.variant, title: alertMsgTitle, isInline: props.isInline, actionClose: !!props.onClose ? react_1.default.createElement(react_core_1.AlertActionCloseButton, { onClose: props.onClose }) : null }, props.title ? props.children : react_1.default.createElement(react_1.default.Fragment, null)));
28
28
  }
29
29
  exports.AlertMessage = AlertMessage;
30
30
  AlertMessage.defaultProps = defaultProps;
@@ -17,8 +17,8 @@ function AlertMessage(props) {
17
17
  return null;
18
18
  }
19
19
  // If there is no title then the children node becomes the title to have a better styling
20
- const alertMsg = props.title || props.children;
21
- return (React.createElement(Alert, { label: props.title, className: props.className, variant: props.variant, title: alertMsg, isInline: props.isInline, actionClose: !!props.onClose ? React.createElement(AlertActionCloseButton, { onClose: props.onClose }) : null }, props.title ? props.children : React.createElement(React.Fragment, null)));
20
+ const alertMsgTitle = props.title || props.children;
21
+ return (React.createElement(Alert, { label: props.title, className: props.className, variant: props.variant, title: alertMsgTitle, isInline: props.isInline, actionClose: !!props.onClose ? React.createElement(AlertActionCloseButton, { onClose: props.onClose }) : null }, props.title ? props.children : React.createElement(React.Fragment, null)));
22
22
  }
23
23
  AlertMessage.defaultProps = defaultProps;
24
24
  export { AlertMessage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/components",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "Contains all reusabel components for support app",
5
5
  "author": "Vikas Rathee <vrathee@redhat.com>",
6
6
  "license": "ISC",
@@ -52,7 +52,7 @@
52
52
  "prepublishOnly": "npm run build"
53
53
  },
54
54
  "peerDependencies": {
55
- "@cee-eng/hydrajs": "4.15.78",
55
+ "@cee-eng/hydrajs": "4.15.81",
56
56
  "@cee-eng/ui-toolkit": "1.1.6",
57
57
  "@patternfly/patternfly": "4.196.7",
58
58
  "@patternfly/react-core": "4.264.0",
@@ -71,14 +71,14 @@
71
71
  "use-deep-compare-effect": "^1.6.1"
72
72
  },
73
73
  "dependencies": {
74
- "@cee-eng/hydrajs": "4.15.78",
74
+ "@cee-eng/hydrajs": "4.15.81",
75
75
  "@cee-eng/ui-toolkit": "1.1.6",
76
76
  "@patternfly/patternfly": "4.196.7",
77
77
  "@patternfly/react-core": "4.264.0",
78
78
  "@patternfly/react-table": "4.111.33",
79
- "@rh-support/types": "2.0.1",
80
- "@rh-support/user-permissions": "2.0.5",
81
- "@rh-support/utils": "2.0.5",
79
+ "@rh-support/types": "2.0.2",
80
+ "@rh-support/user-permissions": "2.0.7",
81
+ "@rh-support/utils": "2.0.7",
82
82
  "dompurify": "^2.2.6",
83
83
  "downshift": "^6.0.5",
84
84
  "js-worker-search": "^1.4.1",
@@ -115,5 +115,5 @@
115
115
  "not ie <= 11",
116
116
  "not op_mini all"
117
117
  ],
118
- "gitHead": "f4106bdae110f32d4968b2a9544fc4bbf76ce11e"
118
+ "gitHead": "c05aa6c2542ab83bfc1984ec113a116f0885d123"
119
119
  }