@rh-support/components 2.0.0 → 2.0.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.
|
@@ -22,7 +22,7 @@ function AlertMessage(props) {
|
|
|
22
22
|
if (!props.show) {
|
|
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
26
|
var alertMsg = props.title || props.children;
|
|
27
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)));
|
|
28
28
|
}
|
|
@@ -16,7 +16,7 @@ function AlertMessage(props) {
|
|
|
16
16
|
if (!props.show) {
|
|
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
20
|
const alertMsg = props.title || props.children;
|
|
21
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)));
|
|
22
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Contains all reusabel components for support app",
|
|
5
5
|
"author": "Vikas Rathee <vrathee@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"@patternfly/patternfly": "4.196.7",
|
|
85
85
|
"@patternfly/react-core": "4.264.0",
|
|
86
86
|
"@patternfly/react-table": "4.111.33",
|
|
87
|
-
"@rh-support/types": "2.0.
|
|
88
|
-
"@rh-support/user-permissions": "2.0.
|
|
89
|
-
"@rh-support/utils": "2.0.
|
|
87
|
+
"@rh-support/types": "2.0.1",
|
|
88
|
+
"@rh-support/user-permissions": "2.0.1",
|
|
89
|
+
"@rh-support/utils": "2.0.1",
|
|
90
90
|
"@storybook/addon-a11y": "^5.3.19",
|
|
91
91
|
"@storybook/addon-actions": "^5.3.19",
|
|
92
92
|
"@storybook/addon-docs": "^5.3.19",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"not ie <= 11",
|
|
132
132
|
"not op_mini all"
|
|
133
133
|
],
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "98c698c7f5ca8e1ec943598ef96a6fb816babc1e"
|
|
135
135
|
}
|