@madie/madie-design-system 1.0.17 → 1.0.19
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.
- package/components/Footer/FooterUI.jsx +1 -1
- package/components/MadieAlert/index.jsx +12 -0
- package/components/Select/index.jsx +1 -1
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
- package/test/components/MadieAlert.test.js +6 -5
|
@@ -41,7 +41,7 @@ const FooterUI = (props) => {
|
|
|
41
41
|
{!isIESupportPage && (
|
|
42
42
|
<div className="feedback-session-sign-up" />
|
|
43
43
|
)}
|
|
44
|
-
<footer className="global-footer">
|
|
44
|
+
<footer aria-label="Site footer" className="global-footer">
|
|
45
45
|
<div className="build-version" id="build-version">
|
|
46
46
|
{props.buildVersion}
|
|
47
47
|
</div>
|
|
@@ -9,6 +9,8 @@ import { IconButton } from "@mui/material";
|
|
|
9
9
|
import ClearIcon from "@mui/icons-material/Clear";
|
|
10
10
|
|
|
11
11
|
import classNames from "classnames";
|
|
12
|
+
import PropTypes from "prop-types";
|
|
13
|
+
|
|
12
14
|
// warning, info, error, success
|
|
13
15
|
const MadieAlert = ({
|
|
14
16
|
type = "warning",
|
|
@@ -59,4 +61,14 @@ const MadieAlert = ({
|
|
|
59
61
|
);
|
|
60
62
|
};
|
|
61
63
|
|
|
64
|
+
MadieAlert.propTypes = {
|
|
65
|
+
type: PropTypes.string,
|
|
66
|
+
visible: PropTypes.bool,
|
|
67
|
+
content: PropTypes.node,
|
|
68
|
+
canClose: PropTypes.bool,
|
|
69
|
+
alertProps: PropTypes.object,
|
|
70
|
+
closeButtonProps: PropTypes.object
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
|
|
62
74
|
export default MadieAlert;
|
|
@@ -76,7 +76,6 @@ const Select = ({
|
|
|
76
76
|
required={required}
|
|
77
77
|
id={id}
|
|
78
78
|
label={null}
|
|
79
|
-
{...rest}
|
|
80
79
|
renderValue={(selected) => {
|
|
81
80
|
if (placeHolder) {
|
|
82
81
|
if (selected === placeHolder.value) {
|
|
@@ -85,6 +84,7 @@ const Select = ({
|
|
|
85
84
|
}
|
|
86
85
|
return selected;
|
|
87
86
|
}}
|
|
87
|
+
{...rest}
|
|
88
88
|
>
|
|
89
89
|
{options && options}
|
|
90
90
|
</MUISelect>
|