@madie/madie-design-system 1.0.11 → 1.0.12
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/MadieDialog/Index.jsx +256 -0
- package/components/Toast/index.jsx +12 -0
- package/components/index.js +2 -0
- package/coverage/clover.xml +43 -15
- package/coverage/coverage-final.json +2 -1
- package/coverage/lcov-report/Button/index.html +116 -0
- package/coverage/lcov-report/Button/index.js.html +376 -0
- package/coverage/lcov-report/MadieDialog/Index.jsx.html +853 -0
- package/coverage/lcov-report/MadieDialog/index.html +116 -0
- package/coverage/lcov-report/index.html +30 -15
- package/coverage/lcov-report/react/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.js.html +24 -3
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/error.js.html +1 -1
- package/coverage/lcov-report/react/components/Error/index.html +1 -1
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +35 -536
- package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +6 -6
- package/coverage/lcov-report/react/components/Footer/footer.js.html +1 -1
- package/coverage/lcov-report/react/components/Footer/index.html +18 -48
- package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/header.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/hooks.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/index.html +1 -1
- package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Infotip/index.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/InputLabel/index.html +9 -9
- package/coverage/lcov-report/react/components/InputLabel/index.jsx.html +45 -81
- package/coverage/lcov-report/react/components/MadieSpinner/index.html +116 -0
- package/coverage/lcov-report/react/components/MadieSpinner/index.jsx.html +190 -0
- package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Pagination/index.html +1 -1
- package/coverage/lcov-report/react/components/Pagination/index.jsx.html +96 -138
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Select/index.html +5 -5
- package/coverage/lcov-report/react/components/Select/index.jsx.html +63 -36
- package/coverage/lcov-report/react/components/SessionDialog/index.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialog/sessionDialog.js.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialogUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/ScoreChart.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Textfield/index.html +5 -5
- package/coverage/lcov-report/react/components/Textfield/index.jsx.html +32 -50
- package/coverage/lcov-report/react/components/Toast/index.html +116 -0
- package/coverage/lcov-report/react/components/Toast/index.jsx.html +469 -0
- package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +8 -8
- package/coverage/lcov-report/react/components/Tooltip/index.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/position.js.html +1 -1
- package/coverage/lcov-report/react/components/hooks/index.html +1 -1
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +1 -1
- package/coverage/lcov-report/react/components/index.html +1 -1
- package/coverage/lcov-report/react/index.html +1 -1
- package/coverage/lcov-report/react/index.js.html +1 -1
- package/coverage/lcov-report/react/lib/Chevron.jsx.html +1 -1
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +1 -1
- package/coverage/lcov-report/react/lib/index.html +1 -1
- package/coverage/lcov-report/react/lib/svg-definitions.svg.html +1 -1
- package/coverage/lcov-report/react/session/index.html +1 -1
- package/coverage/lcov-report/react/session/index.js.html +1 -1
- package/coverage/lcov-report/react/session/logout.js.html +1 -1
- package/coverage/lcov-report/react/session/refresh.js.html +1 -1
- package/coverage/lcov-report/react/session/ttl.js.html +1 -1
- package/coverage/lcov.info +79 -24
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +19 -19
- package/dist/react/index.js.LICENSE.txt +7 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
- package/test/components/MadieDialog.test.js +103 -0
- package/test/components/MadieSpinner.test.js +15 -11
- package/test/components/Toast.test.js +18 -14
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import CloseIcon from "@mui/icons-material/Close";
|
|
4
|
+
import {
|
|
5
|
+
Dialog,
|
|
6
|
+
DialogContent,
|
|
7
|
+
DialogActions,
|
|
8
|
+
DialogTitle,
|
|
9
|
+
Divider,
|
|
10
|
+
IconButton,
|
|
11
|
+
Typography,
|
|
12
|
+
} from "@mui/material";
|
|
13
|
+
import { Box } from "@mui/system";
|
|
14
|
+
import Button from "../Button";
|
|
15
|
+
|
|
16
|
+
// We have multiple situations to consider
|
|
17
|
+
const MadieDialog = ({
|
|
18
|
+
/*
|
|
19
|
+
Lets make a reusable component
|
|
20
|
+
form booleon determines layout
|
|
21
|
+
Dialog props: props to be passed to the Dialog itself
|
|
22
|
+
{
|
|
23
|
+
open: bool,
|
|
24
|
+
onClose: function on close,
|
|
25
|
+
onSubmit: function onSubmit,
|
|
26
|
+
showRequiredFieldMessage: functional
|
|
27
|
+
}
|
|
28
|
+
Children: React components to be inside
|
|
29
|
+
Action Props for cancel or continue:
|
|
30
|
+
{
|
|
31
|
+
variants listed in design system like cyan
|
|
32
|
+
className
|
|
33
|
+
type
|
|
34
|
+
data-testid,
|
|
35
|
+
onClick
|
|
36
|
+
disabled
|
|
37
|
+
}
|
|
38
|
+
*/
|
|
39
|
+
form,
|
|
40
|
+
title,
|
|
41
|
+
dialogProps,
|
|
42
|
+
cancelButtonProps,
|
|
43
|
+
continueButtonProps,
|
|
44
|
+
children,
|
|
45
|
+
}) => {
|
|
46
|
+
const {
|
|
47
|
+
open,
|
|
48
|
+
onClose,
|
|
49
|
+
onSubmit,
|
|
50
|
+
showRequiredFieldMessage,
|
|
51
|
+
...otherDialogProps
|
|
52
|
+
} = dialogProps;
|
|
53
|
+
const { cancelText, cancelIcon, ...otherCancelButtonProps } =
|
|
54
|
+
cancelButtonProps;
|
|
55
|
+
const { continueText, continueIcon, ...otherContinueButonProps } =
|
|
56
|
+
continueButtonProps;
|
|
57
|
+
|
|
58
|
+
return (
|
|
59
|
+
<Dialog
|
|
60
|
+
open={open}
|
|
61
|
+
onClose={onClose}
|
|
62
|
+
sx={{
|
|
63
|
+
"& .MuiDialog-paper": {
|
|
64
|
+
position: "relative",
|
|
65
|
+
overflow: "visible",
|
|
66
|
+
marginTop: "-20px",
|
|
67
|
+
},
|
|
68
|
+
}}
|
|
69
|
+
maxWidth="sm"
|
|
70
|
+
fullWidth
|
|
71
|
+
{...otherDialogProps}
|
|
72
|
+
>
|
|
73
|
+
{form ? (
|
|
74
|
+
<form
|
|
75
|
+
data-testid="dialog-form"
|
|
76
|
+
onSubmit={(e) => {
|
|
77
|
+
e.preventDefault();
|
|
78
|
+
onSubmit(e);
|
|
79
|
+
}}
|
|
80
|
+
style={{ overflow: "scroll" }}
|
|
81
|
+
>
|
|
82
|
+
<Box
|
|
83
|
+
sx={{
|
|
84
|
+
display: "flex",
|
|
85
|
+
flexDirection: "row",
|
|
86
|
+
justifyContent: "space-between",
|
|
87
|
+
alignItems: "center",
|
|
88
|
+
padding: "24px 32px",
|
|
89
|
+
}}
|
|
90
|
+
>
|
|
91
|
+
<DialogTitle
|
|
92
|
+
sx={{
|
|
93
|
+
fontFamily: "Rubik",
|
|
94
|
+
fontSize: 24,
|
|
95
|
+
padding: 0,
|
|
96
|
+
}}
|
|
97
|
+
>
|
|
98
|
+
{title}
|
|
99
|
+
</DialogTitle>
|
|
100
|
+
<div>
|
|
101
|
+
<IconButton onClick={onClose}>
|
|
102
|
+
<CloseIcon
|
|
103
|
+
sx={{
|
|
104
|
+
color: "#242424",
|
|
105
|
+
}}
|
|
106
|
+
data-testid="close-button"
|
|
107
|
+
/>
|
|
108
|
+
</IconButton>
|
|
109
|
+
</div>
|
|
110
|
+
</Box>
|
|
111
|
+
<Divider />
|
|
112
|
+
<DialogContent>
|
|
113
|
+
{showRequiredFieldMessage && (
|
|
114
|
+
<Box
|
|
115
|
+
sx={{
|
|
116
|
+
display: "flex",
|
|
117
|
+
flexDirection: "row",
|
|
118
|
+
justifyContent: "flex-end",
|
|
119
|
+
marginBottom: "-23px",
|
|
120
|
+
}}
|
|
121
|
+
>
|
|
122
|
+
<Typography
|
|
123
|
+
sx={{
|
|
124
|
+
fontSize: 14,
|
|
125
|
+
fontWeight: 300,
|
|
126
|
+
fontFamily: "Rubik",
|
|
127
|
+
}}
|
|
128
|
+
>
|
|
129
|
+
<Box
|
|
130
|
+
component="span"
|
|
131
|
+
sx={{
|
|
132
|
+
color: "#D92F2F",
|
|
133
|
+
marginRight: "3px",
|
|
134
|
+
}}
|
|
135
|
+
>
|
|
136
|
+
*
|
|
137
|
+
</Box>
|
|
138
|
+
Indicates required field
|
|
139
|
+
</Typography>
|
|
140
|
+
</Box>
|
|
141
|
+
)}
|
|
142
|
+
|
|
143
|
+
{children}
|
|
144
|
+
</DialogContent>
|
|
145
|
+
<Divider sx={{ marginTop: "10px" }} />
|
|
146
|
+
<DialogActions
|
|
147
|
+
sx={{
|
|
148
|
+
padding: "16px",
|
|
149
|
+
"& >:not(:first-of-type)": {
|
|
150
|
+
marginLeft: "16px",
|
|
151
|
+
},
|
|
152
|
+
}}
|
|
153
|
+
>
|
|
154
|
+
<Button
|
|
155
|
+
variant="secondary"
|
|
156
|
+
onClick={onClose}
|
|
157
|
+
{...otherCancelButtonProps}
|
|
158
|
+
>
|
|
159
|
+
<span>
|
|
160
|
+
{cancelText}
|
|
161
|
+
{cancelIcon}
|
|
162
|
+
</span>
|
|
163
|
+
</Button>
|
|
164
|
+
<Button
|
|
165
|
+
className="qpp-c-button--cyan"
|
|
166
|
+
type="submit"
|
|
167
|
+
style={{ marginTop: 0 }}
|
|
168
|
+
{...otherContinueButonProps}
|
|
169
|
+
>
|
|
170
|
+
<span>
|
|
171
|
+
{continueText}
|
|
172
|
+
{continueIcon}
|
|
173
|
+
</span>
|
|
174
|
+
</Button>
|
|
175
|
+
</DialogActions>
|
|
176
|
+
</form>
|
|
177
|
+
) : (
|
|
178
|
+
<>
|
|
179
|
+
<Box
|
|
180
|
+
sx={{
|
|
181
|
+
display: "flex",
|
|
182
|
+
flexDirection: "row",
|
|
183
|
+
justifyContent: "space-between",
|
|
184
|
+
alignItems: "center",
|
|
185
|
+
padding: "24px 32px",
|
|
186
|
+
}}
|
|
187
|
+
>
|
|
188
|
+
<DialogTitle
|
|
189
|
+
sx={{
|
|
190
|
+
fontFamily: "Rubik",
|
|
191
|
+
fontSize: 24,
|
|
192
|
+
padding: 0,
|
|
193
|
+
}}
|
|
194
|
+
>
|
|
195
|
+
{title}
|
|
196
|
+
</DialogTitle>
|
|
197
|
+
<div>
|
|
198
|
+
<IconButton onClick={onClose}>
|
|
199
|
+
<CloseIcon
|
|
200
|
+
sx={{
|
|
201
|
+
color: "#242424",
|
|
202
|
+
}}
|
|
203
|
+
data-testid="close-button"
|
|
204
|
+
/>
|
|
205
|
+
</IconButton>
|
|
206
|
+
</div>
|
|
207
|
+
</Box>
|
|
208
|
+
<Divider />
|
|
209
|
+
<DialogContent>{children}</DialogContent>
|
|
210
|
+
<Divider sx={{ marginTop: "10px" }} />
|
|
211
|
+
<DialogActions
|
|
212
|
+
sx={{
|
|
213
|
+
padding: "16px",
|
|
214
|
+
"& >:not(:first-of-type)": {
|
|
215
|
+
marginLeft: "16px",
|
|
216
|
+
},
|
|
217
|
+
}}
|
|
218
|
+
>
|
|
219
|
+
<Button
|
|
220
|
+
variant="secondary"
|
|
221
|
+
onClick={onClose}
|
|
222
|
+
{...otherCancelButtonProps}
|
|
223
|
+
>
|
|
224
|
+
<span>
|
|
225
|
+
{cancelText}
|
|
226
|
+
{cancelIcon}
|
|
227
|
+
</span>
|
|
228
|
+
</Button>
|
|
229
|
+
<Button
|
|
230
|
+
variant="cyan"
|
|
231
|
+
type="submit"
|
|
232
|
+
style={{ marginTop: 0 }}
|
|
233
|
+
{...otherContinueButonProps}
|
|
234
|
+
>
|
|
235
|
+
<span>
|
|
236
|
+
{continueText}
|
|
237
|
+
{continueIcon}
|
|
238
|
+
</span>
|
|
239
|
+
</Button>
|
|
240
|
+
</DialogActions>
|
|
241
|
+
</>
|
|
242
|
+
)}
|
|
243
|
+
</Dialog>
|
|
244
|
+
);
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
MadieDialog.propTypes = {
|
|
248
|
+
form: PropTypes.bool,
|
|
249
|
+
title: PropTypes.string,
|
|
250
|
+
dialogProps: PropTypes.object,
|
|
251
|
+
cancelButtonProps: PropTypes.object,
|
|
252
|
+
continueButtonProps: PropTypes.object,
|
|
253
|
+
children: PropTypes.object,
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
export default MadieDialog;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
2
3
|
import { IconButton, Snackbar } from "@mui/material";
|
|
3
4
|
import CloseIcon from "@mui/icons-material/Close";
|
|
4
5
|
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
|
|
@@ -45,6 +46,7 @@ const Toast = ({
|
|
|
45
46
|
color="inherit"
|
|
46
47
|
sx={{ p: 0 }}
|
|
47
48
|
onClick={onClose}
|
|
49
|
+
data-testId="close-error-button"
|
|
48
50
|
>
|
|
49
51
|
<CloseIcon />
|
|
50
52
|
</IconButton>
|
|
@@ -113,4 +115,14 @@ const Toast = ({
|
|
|
113
115
|
);
|
|
114
116
|
};
|
|
115
117
|
|
|
118
|
+
Toast.propTypes = {
|
|
119
|
+
open: PropTypes.bool,
|
|
120
|
+
message: PropTypes.string,
|
|
121
|
+
toastType: PropTypes.string, // 'danger | success, more later when mockups come out
|
|
122
|
+
autoHideDuration: PropTypes.number,
|
|
123
|
+
onClose: PropTypes.func,
|
|
124
|
+
testId: PropTypes.string,
|
|
125
|
+
toastKey: PropTypes.string,
|
|
126
|
+
};
|
|
127
|
+
|
|
116
128
|
export default Toast;
|
package/components/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import Footer from "./Footer/FooterUI";
|
|
|
9
9
|
import Header from "./Header/HeaderUI";
|
|
10
10
|
import InputLabel from "./InputLabel";
|
|
11
11
|
import FormControlLabel from "./FormControlLabel";
|
|
12
|
+
import MadieDialog from "./MadieDialog";
|
|
12
13
|
import MadieSpinner from "./MadieSpinner";
|
|
13
14
|
import Modal from "./Modal";
|
|
14
15
|
import { Pagination } from "./Pagination";
|
|
@@ -122,6 +123,7 @@ export {
|
|
|
122
123
|
Icons,
|
|
123
124
|
Infotip,
|
|
124
125
|
Modal,
|
|
126
|
+
MadieDialog,
|
|
125
127
|
MadieSpinner,
|
|
126
128
|
Pagination,
|
|
127
129
|
Search,
|
package/coverage/clover.xml
CHANGED
|
@@ -1,18 +1,46 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
5
|
-
<
|
|
6
|
-
<metrics statements="
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
<coverage generated="1657730454409" clover="3.2.0">
|
|
3
|
+
<project timestamp="1657730454409" name="All files">
|
|
4
|
+
<metrics statements="28" coveredstatements="25" conditionals="25" coveredconditionals="18" methods="5" coveredmethods="4" elements="58" coveredelements="47" complexity="0" loc="28" ncloc="28" packages="2" files="2" classes="2"/>
|
|
5
|
+
<package name="Button">
|
|
6
|
+
<metrics statements="20" coveredstatements="17" conditionals="13" coveredconditionals="7" methods="3" coveredmethods="2"/>
|
|
7
|
+
<file name="index.js" path="/Users/matt.mcphillips/madie/madie-design-system/react/components/Button/index.js">
|
|
8
|
+
<metrics statements="20" coveredstatements="17" conditionals="13" coveredconditionals="7" methods="3" coveredmethods="2"/>
|
|
9
|
+
<line num="4" count="1" type="stmt"/>
|
|
10
|
+
<line num="12" count="1" type="stmt"/>
|
|
11
|
+
<line num="14" count="1" type="stmt"/>
|
|
12
|
+
<line num="25" count="4" type="stmt"/>
|
|
13
|
+
<line num="27" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
14
|
+
<line num="28" count="3" type="stmt"/>
|
|
15
|
+
<line num="30" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
16
|
+
<line num="31" count="0" type="stmt"/>
|
|
17
|
+
<line num="33" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
18
|
+
<line num="34" count="1" type="stmt"/>
|
|
19
|
+
<line num="37" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
20
|
+
<line num="38" count="0" type="stmt"/>
|
|
21
|
+
<line num="49" count="4" type="stmt"/>
|
|
22
|
+
<line num="63" count="1" type="stmt"/>
|
|
23
|
+
<line num="74" count="1" type="stmt"/>
|
|
24
|
+
<line num="79" count="1" type="stmt"/>
|
|
25
|
+
<line num="85" count="1" type="cond" truecount="0" falsecount="1"/>
|
|
26
|
+
<line num="86" count="0" type="stmt"/>
|
|
27
|
+
<line num="89" count="1" type="stmt"/>
|
|
28
|
+
<line num="93" count="1" type="stmt"/>
|
|
29
|
+
</file>
|
|
30
|
+
</package>
|
|
31
|
+
<package name="MadieDialog">
|
|
32
|
+
<metrics statements="8" coveredstatements="8" conditionals="12" coveredconditionals="11" methods="2" coveredmethods="2"/>
|
|
33
|
+
<file name="Index.jsx" path="/Users/matt.mcphillips/madie/madie-design-system/react/components/MadieDialog/Index.jsx">
|
|
34
|
+
<metrics statements="8" coveredstatements="8" conditionals="12" coveredconditionals="11" methods="2" coveredmethods="2"/>
|
|
35
|
+
<line num="17" count="1" type="stmt"/>
|
|
36
|
+
<line num="52" count="2" type="stmt"/>
|
|
37
|
+
<line num="54" count="2" type="stmt"/>
|
|
38
|
+
<line num="56" count="2" type="stmt"/>
|
|
39
|
+
<line num="58" count="2" type="stmt"/>
|
|
40
|
+
<line num="77" count="1" type="stmt"/>
|
|
41
|
+
<line num="78" count="1" type="stmt"/>
|
|
42
|
+
<line num="247" count="1" type="stmt"/>
|
|
43
|
+
</file>
|
|
44
|
+
</package>
|
|
17
45
|
</project>
|
|
18
46
|
</coverage>
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
{"/Users/matt.mcphillips/madie/madie-design-system/react/components/
|
|
1
|
+
{"/Users/matt.mcphillips/madie/madie-design-system/react/components/Button/index.js": {"path":"/Users/matt.mcphillips/madie/madie-design-system/react/components/Button/index.js","statementMap":{"0":{"start":{"line":4,"column":17},"end":{"line":11,"column":1}},"1":{"start":{"line":12,"column":14},"end":{"line":12,"column":21}},"2":{"start":{"line":14,"column":15},"end":{"line":61,"column":1}},"3":{"start":{"line":25,"column":19},"end":{"line":25,"column":33}},"4":{"start":{"line":27,"column":4},"end":{"line":29,"column":5}},"5":{"start":{"line":28,"column":8},"end":{"line":28,"column":68}},"6":{"start":{"line":30,"column":4},"end":{"line":32,"column":5}},"7":{"start":{"line":31,"column":8},"end":{"line":31,"column":65}},"8":{"start":{"line":33,"column":4},"end":{"line":35,"column":5}},"9":{"start":{"line":34,"column":8},"end":{"line":34,"column":51}},"10":{"start":{"line":37,"column":4},"end":{"line":48,"column":5}},"11":{"start":{"line":38,"column":8},"end":{"line":47,"column":10}},"12":{"start":{"line":49,"column":4},"end":{"line":60,"column":6}},"13":{"start":{"line":63,"column":0},"end":{"line":72,"column":2}},"14":{"start":{"line":74,"column":0},"end":{"line":83,"column":2}},"15":{"start":{"line":79,"column":19},"end":{"line":79,"column":23}},"16":{"start":{"line":85,"column":26},"end":{"line":87,"column":1}},"17":{"start":{"line":86,"column":4},"end":{"line":86,"column":71}},"18":{"start":{"line":89,"column":0},"end":{"line":91,"column":2}},"19":{"start":{"line":93,"column":0},"end":{"line":95,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":14,"column":15},"end":{"line":14,"column":16}},"loc":{"start":{"line":24,"column":6},"end":{"line":61,"column":1}},"line":24},"1":{"name":"(anonymous_1)","decl":{"start":{"line":79,"column":13},"end":{"line":79,"column":14}},"loc":{"start":{"line":79,"column":19},"end":{"line":79,"column":23}},"line":79},"2":{"name":"(anonymous_2)","decl":{"start":{"line":85,"column":26},"end":{"line":85,"column":27}},"loc":{"start":{"line":86,"column":4},"end":{"line":86,"column":71}},"line":86}},"branchMap":{"0":{"loc":{"start":{"line":27,"column":4},"end":{"line":29,"column":5}},"type":"if","locations":[{"start":{"line":27,"column":4},"end":{"line":29,"column":5}},{"start":{},"end":{}}],"line":27},"1":{"loc":{"start":{"line":30,"column":4},"end":{"line":32,"column":5}},"type":"if","locations":[{"start":{"line":30,"column":4},"end":{"line":32,"column":5}},{"start":{},"end":{}}],"line":30},"2":{"loc":{"start":{"line":33,"column":4},"end":{"line":35,"column":5}},"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":35,"column":5}},{"start":{},"end":{}}],"line":33},"3":{"loc":{"start":{"line":37,"column":4},"end":{"line":48,"column":5}},"type":"if","locations":[{"start":{"line":37,"column":4},"end":{"line":48,"column":5}},{"start":{},"end":{}}],"line":37},"4":{"loc":{"start":{"line":42,"column":27},"end":{"line":42,"column":41}},"type":"binary-expr","locations":[{"start":{"line":42,"column":27},"end":{"line":42,"column":35}},{"start":{"line":42,"column":39},"end":{"line":42,"column":41}}],"line":42},"5":{"loc":{"start":{"line":52,"column":23},"end":{"line":52,"column":37}},"type":"binary-expr","locations":[{"start":{"line":52,"column":23},"end":{"line":52,"column":31}},{"start":{"line":52,"column":35},"end":{"line":52,"column":37}}],"line":52},"6":{"loc":{"start":{"line":85,"column":29},"end":{"line":85,"column":43}},"type":"default-arg","locations":[{"start":{"line":85,"column":41},"end":{"line":85,"column":43}}],"line":85}},"s":{"0":1,"1":1,"2":1,"3":4,"4":4,"5":3,"6":4,"7":0,"8":4,"9":1,"10":4,"11":0,"12":4,"13":1,"14":1,"15":1,"16":1,"17":0,"18":1,"19":1},"f":{"0":4,"1":1,"2":0},"b":{"0":[3,1],"1":[0,4],"2":[1,3],"3":[0,4],"4":[0,0],"5":[4,0],"6":[0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2e6d0911f31a3bceeb0bcfb1d4707da1e8fd0fcc"}
|
|
2
|
+
,"/Users/matt.mcphillips/madie/madie-design-system/react/components/MadieDialog/Index.jsx": {"path":"/Users/matt.mcphillips/madie/madie-design-system/react/components/MadieDialog/Index.jsx","statementMap":{"0":{"start":{"line":17,"column":20},"end":{"line":245,"column":1}},"1":{"start":{"line":52,"column":6},"end":{"line":52,"column":17}},"2":{"start":{"line":54,"column":4},"end":{"line":54,"column":21}},"3":{"start":{"line":56,"column":4},"end":{"line":56,"column":23}},"4":{"start":{"line":58,"column":2},"end":{"line":244,"column":4}},"5":{"start":{"line":77,"column":12},"end":{"line":77,"column":31}},"6":{"start":{"line":78,"column":12},"end":{"line":78,"column":24}},"7":{"start":{"line":247,"column":0},"end":{"line":254,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":17,"column":20},"end":{"line":17,"column":21}},"loc":{"start":{"line":45,"column":6},"end":{"line":245,"column":1}},"line":45},"1":{"name":"(anonymous_1)","decl":{"start":{"line":76,"column":20},"end":{"line":76,"column":21}},"loc":{"start":{"line":76,"column":27},"end":{"line":79,"column":11}},"line":76}},"branchMap":{"0":{"loc":{"start":{"line":73,"column":7},"end":{"line":242,"column":7}},"type":"cond-expr","locations":[{"start":{"line":74,"column":8},"end":{"line":176,"column":15}},{"start":{"line":178,"column":8},"end":{"line":241,"column":11}}],"line":73},"1":{"loc":{"start":{"line":113,"column":13},"end":{"line":141,"column":13}},"type":"binary-expr","locations":[{"start":{"line":113,"column":13},"end":{"line":113,"column":37}},{"start":{"line":114,"column":14},"end":{"line":140,"column":20}}],"line":113},"2":{"loc":{"start":{"line":161,"column":21},"end":{"line":161,"column":45}},"type":"binary-expr","locations":[{"start":{"line":161,"column":21},"end":{"line":161,"column":31}},{"start":{"line":161,"column":35},"end":{"line":161,"column":45}}],"line":161},"3":{"loc":{"start":{"line":172,"column":17},"end":{"line":172,"column":45}},"type":"binary-expr","locations":[{"start":{"line":172,"column":17},"end":{"line":172,"column":29}},{"start":{"line":172,"column":33},"end":{"line":172,"column":45}}],"line":172},"4":{"loc":{"start":{"line":226,"column":17},"end":{"line":226,"column":41}},"type":"binary-expr","locations":[{"start":{"line":226,"column":17},"end":{"line":226,"column":27}},{"start":{"line":226,"column":31},"end":{"line":226,"column":41}}],"line":226},"5":{"loc":{"start":{"line":237,"column":17},"end":{"line":237,"column":45}},"type":"binary-expr","locations":[{"start":{"line":237,"column":17},"end":{"line":237,"column":29}},{"start":{"line":237,"column":33},"end":{"line":237,"column":45}}],"line":237}},"s":{"0":1,"1":2,"2":2,"3":2,"4":2,"5":1,"6":1,"7":1},"f":{"0":2,"1":1},"b":{"0":[1,1],"1":[1,1],"2":[1,0],"3":[1,1],"4":[1,1],"5":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"6e861c76f6632d49bf02e10515605c491fd08cdd"}
|
|
2
3
|
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for Button</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../index.html">All files</a> Button</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">85% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>17/20</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">53.84% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>7/13</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">66.66% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>2/3</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">85% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>17/20</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line high'></div>
|
|
65
|
+
<div class="pad1">
|
|
66
|
+
<table class="coverage-summary">
|
|
67
|
+
<thead>
|
|
68
|
+
<tr>
|
|
69
|
+
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
|
70
|
+
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
|
71
|
+
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
|
72
|
+
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
73
|
+
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
|
74
|
+
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
75
|
+
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
|
76
|
+
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
77
|
+
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
|
78
|
+
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
79
|
+
</tr>
|
|
80
|
+
</thead>
|
|
81
|
+
<tbody><tr>
|
|
82
|
+
<td class="file high" data-value="index.js"><a href="index.js.html">index.js</a></td>
|
|
83
|
+
<td data-value="85" class="pic high">
|
|
84
|
+
<div class="chart"><div class="cover-fill" style="width: 85%"></div><div class="cover-empty" style="width: 15%"></div></div>
|
|
85
|
+
</td>
|
|
86
|
+
<td data-value="85" class="pct high">85%</td>
|
|
87
|
+
<td data-value="20" class="abs high">17/20</td>
|
|
88
|
+
<td data-value="53.84" class="pct medium">53.84%</td>
|
|
89
|
+
<td data-value="13" class="abs medium">7/13</td>
|
|
90
|
+
<td data-value="66.66" class="pct medium">66.66%</td>
|
|
91
|
+
<td data-value="3" class="abs medium">2/3</td>
|
|
92
|
+
<td data-value="85" class="pct high">85%</td>
|
|
93
|
+
<td data-value="20" class="abs high">17/20</td>
|
|
94
|
+
</tr>
|
|
95
|
+
|
|
96
|
+
</tbody>
|
|
97
|
+
</table>
|
|
98
|
+
</div>
|
|
99
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
100
|
+
</div><!-- /wrapper -->
|
|
101
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
|
+
Code coverage generated by
|
|
103
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
+
at Wed Jul 13 2022 09:40:54 GMT-0700 (Pacific Daylight Time)
|
|
105
|
+
</div>
|
|
106
|
+
<script src="../prettify.js"></script>
|
|
107
|
+
<script>
|
|
108
|
+
window.onload = function () {
|
|
109
|
+
prettyPrint();
|
|
110
|
+
};
|
|
111
|
+
</script>
|
|
112
|
+
<script src="../sorter.js"></script>
|
|
113
|
+
<script src="../block-navigation.js"></script>
|
|
114
|
+
</body>
|
|
115
|
+
</html>
|
|
116
|
+
|