@madie/madie-design-system 1.2.7 → 1.2.8
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/AutoComplete/AutoComplete.jsx +2 -2
- package/components/DateField/DateField.jsx +4 -4
- package/components/DateTimeField/DateTimeField.jsx +11 -6
- package/components/DateTimeField/DateTimeField.stories.jsx +2 -2
- package/components/MadieDialog/MadieDialog.stories.js +66 -58
- package/components/MadieDialog/index.jsx +29 -15
- package/components/MadieTooltip/MadieTooltip.stories.js +28 -0
- package/components/MadieTooltip/index.jsx +48 -0
- package/components/MadieTooltipIcon/MadieTooltipIcon.stories.js +23 -0
- package/components/MadieTooltipIcon/index.jsx +31 -0
- package/components/Popover/index.js +3 -2
- package/components/ReadOnlyTextField/index.jsx +5 -4
- package/components/Search/index.js +1 -1
- package/components/TextArea/index.jsx +1 -1
- package/components/TextField/TextField.stories.js +20 -0
- package/components/TextField/index.jsx +76 -42
- package/components/index.js +4 -0
- package/coverage/clover.xml +53 -0
- package/coverage/coverage-final.json +6 -0
- package/coverage/lcov-report/InputLabel/index.html +116 -0
- package/coverage/lcov-report/InputLabel/index.jsx.html +244 -0
- package/coverage/lcov-report/MadieTooltip/index.html +131 -0
- package/coverage/lcov-report/MadieTooltip/index.jsx.html +229 -0
- package/coverage/lcov-report/MadieTooltip/index.scss.html +274 -0
- package/coverage/lcov-report/MadieTooltipIcon/index.html +116 -0
- package/coverage/lcov-report/MadieTooltipIcon/index.jsx.html +178 -0
- package/coverage/lcov-report/TextField/index.html +116 -0
- package/coverage/lcov-report/TextField/index.jsx.html +556 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +161 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/react/components/Accordion/index.html +116 -0
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +370 -0
- package/coverage/lcov-report/react/components/Button/index.html +116 -0
- package/coverage/lcov-report/react/components/Button/index.js.html +385 -0
- package/coverage/lcov-report/react/components/DateField/DateField.jsx.html +355 -0
- package/coverage/lcov-report/react/components/DateField/index.html +116 -0
- package/coverage/lcov-report/react/components/DateTimeField/DateTimeField.jsx.html +340 -0
- package/coverage/lcov-report/react/components/DateTimeField/index.html +116 -0
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +364 -0
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +178 -0
- package/coverage/lcov-report/react/components/Error/error.js.html +163 -0
- package/coverage/lcov-report/react/components/Error/index.html +146 -0
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +496 -0
- package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +697 -0
- package/coverage/lcov-report/react/components/Footer/footer.js.html +175 -0
- package/coverage/lcov-report/react/components/Footer/index.html +146 -0
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +310 -0
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +208 -0
- package/coverage/lcov-report/react/components/Infotip/index.html +146 -0
- package/coverage/lcov-report/react/components/Infotip/index.js.html +94 -0
- package/coverage/lcov-report/react/components/InputLabel/index.html +116 -0
- package/coverage/lcov-report/react/components/InputLabel/index.jsx.html +244 -0
- package/coverage/lcov-report/react/components/MadieAlert/index.html +116 -0
- package/coverage/lcov-report/react/components/MadieAlert/index.jsx.html +304 -0
- package/coverage/lcov-report/react/components/MadieDeleteDialog/index.html +116 -0
- package/coverage/lcov-report/react/components/MadieDeleteDialog/index.jsx.html +247 -0
- package/coverage/lcov-report/react/components/MadieDialog/index.html +116 -0
- package/coverage/lcov-report/react/components/MadieDialog/index.jsx.html +955 -0
- package/coverage/lcov-report/react/components/MadieDiscardDialog/index.html +116 -0
- package/coverage/lcov-report/react/components/MadieDiscardDialog/index.jsx.html +232 -0
- 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/MadieTooltip/index.html +131 -0
- package/coverage/lcov-report/react/components/MadieTooltip/index.jsx.html +235 -0
- package/coverage/lcov-report/react/components/MadieTooltip/index.scss.html +274 -0
- package/coverage/lcov-report/react/components/MadieTooltipIcon/index.html +116 -0
- package/coverage/lcov-report/react/components/MadieTooltipIcon/index.jsx.html +178 -0
- package/coverage/lcov-report/react/components/Pagination/index.html +116 -0
- package/coverage/lcov-report/react/components/Pagination/index.jsx.html +736 -0
- package/coverage/lcov-report/react/components/Popover/index.html +116 -0
- package/coverage/lcov-report/react/components/Popover/index.js.html +478 -0
- package/coverage/lcov-report/react/components/ReadOnlyTextField/index.html +116 -0
- package/coverage/lcov-report/react/components/ReadOnlyTextField/index.jsx.html +514 -0
- package/coverage/lcov-report/react/components/Select/index.html +116 -0
- package/coverage/lcov-report/react/components/Select/index.jsx.html +646 -0
- package/coverage/lcov-report/react/components/Tabs/Tab.js.html +325 -0
- package/coverage/lcov-report/react/components/Tabs/index.html +131 -0
- package/coverage/lcov-report/react/components/Tabs/index.js.html +370 -0
- package/coverage/lcov-report/react/components/TextArea/index.html +116 -0
- package/coverage/lcov-report/react/components/TextArea/index.jsx.html +436 -0
- package/coverage/lcov-report/react/components/TextField/index.html +116 -0
- package/coverage/lcov-report/react/components/TextField/index.jsx.html +556 -0
- package/coverage/lcov-report/react/components/Toast/index.html +116 -0
- package/coverage/lcov-report/react/components/Toast/index.jsx.html +436 -0
- package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +349 -0
- package/coverage/lcov-report/react/components/Tooltip/index.html +146 -0
- package/coverage/lcov-report/react/components/Tooltip/index.js.html +94 -0
- package/coverage/lcov-report/react/components/Tooltip/position.js.html +313 -0
- package/coverage/lcov-report/react/index.html +116 -0
- package/coverage/lcov-report/react/index.js.html +133 -0
- package/coverage/lcov-report/react/lib/Chevron.jsx.html +181 -0
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +1777 -0
- package/coverage/lcov-report/react/lib/index.html +131 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov.info +113 -0
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +11 -11
- package/dist/react/index.js.map +1 -1
- package/jest/mediaFileTransformer.js +7 -7
- package/package.json +2 -2
- package/storybook-static/875.f84e25ca.iframe.bundle.js +103 -0
- package/storybook-static/{173.0b985e58.iframe.bundle.js.map → 875.f84e25ca.iframe.bundle.js.map} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/main.e57b4407.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/styles/_qpp-style.scss +1 -0
- package/styles/components/_madie-tooltip.scss +63 -0
- package/styles/qppds/components/_madie-tooltip.scss +63 -0
- package/styles/qppds/components/index.scss +1 -0
- package/styles/qppds/settings/variables/_color.scss +2 -0
- package/test/components/TextField.test.js +55 -1
- package/storybook-static/173.0b985e58.iframe.bundle.js +0 -103
- package/storybook-static/main.4051ebc5.iframe.bundle.js +0 -1
- /package/storybook-static/{173.0b985e58.iframe.bundle.js.LICENSE.txt → 875.f84e25ca.iframe.bundle.js.LICENSE.txt} +0 -0
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
FormHelperText,
|
|
6
6
|
} from "@mui/material";
|
|
7
7
|
import InputLabel from "../InputLabel";
|
|
8
|
+
import MadieToolTip from "../MadieTooltip";
|
|
8
9
|
import PropTypes from "prop-types";
|
|
9
10
|
|
|
10
11
|
const TextField = ({
|
|
@@ -14,8 +15,30 @@ const TextField = ({
|
|
|
14
15
|
required = false,
|
|
15
16
|
disabled = false,
|
|
16
17
|
label,
|
|
18
|
+
tooltipText,
|
|
19
|
+
inputProps,
|
|
17
20
|
...rest
|
|
18
21
|
}) => {
|
|
22
|
+
// get a copy of input props
|
|
23
|
+
const newInputProps = { ...inputProps } || {};
|
|
24
|
+
|
|
25
|
+
if (!newInputProps["data-testid"]) {
|
|
26
|
+
newInputProps["data-testid"] = `${id}-input`;
|
|
27
|
+
}
|
|
28
|
+
// if aria-describedBy is not provided, add it depending on helper-text and tooltip presence
|
|
29
|
+
if (!newInputProps["aria-describedby"]) {
|
|
30
|
+
let newDescribedBy = "";
|
|
31
|
+
if (helperText) {
|
|
32
|
+
newDescribedBy += `${id}-helper-text `;
|
|
33
|
+
}
|
|
34
|
+
if (tooltipText) {
|
|
35
|
+
newDescribedBy += `${id}-tooltip`;
|
|
36
|
+
}
|
|
37
|
+
if (newDescribedBy) {
|
|
38
|
+
newInputProps["aria-describedby"] = newDescribedBy;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
19
42
|
return (
|
|
20
43
|
<FormControl fullWidth error={error}>
|
|
21
44
|
<div
|
|
@@ -26,49 +49,57 @@ const TextField = ({
|
|
|
26
49
|
flexGrow: 1,
|
|
27
50
|
}}
|
|
28
51
|
/>
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
<div style={{ display: "flex", flexDirection: "row" }}>
|
|
53
|
+
<InputLabel
|
|
54
|
+
disabled={disabled}
|
|
55
|
+
shrink
|
|
56
|
+
required={required}
|
|
57
|
+
error={error}
|
|
58
|
+
htmlFor={id}
|
|
59
|
+
style={{ marginBottom: 0, height: 16 }} // force a heignt
|
|
60
|
+
sx={[
|
|
61
|
+
{
|
|
62
|
+
backgroundColor: "transparent",
|
|
63
|
+
display: "flex",
|
|
64
|
+
flexDirection: "row-reverse",
|
|
65
|
+
alignSelf: "baseline",
|
|
66
|
+
textTransform: "none",
|
|
67
|
+
// force it outside the select box
|
|
68
|
+
position: "initial",
|
|
69
|
+
transform: "translateX(0px) translateY(0px)",
|
|
70
|
+
fontFamily: "Rubik",
|
|
71
|
+
fontWeight: 500,
|
|
72
|
+
fontSize: 14,
|
|
73
|
+
color: "#333",
|
|
74
|
+
"& .MuiInputLabel-asterisk": {
|
|
75
|
+
color: "#AE1C1C !important",
|
|
76
|
+
marginRight: "3px !important", //this was
|
|
77
|
+
},
|
|
53
78
|
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
79
|
+
required && {
|
|
80
|
+
transform: "translateX(-12px) translateY(0px)",
|
|
81
|
+
"& .MuiInputLabel-asterisk": {
|
|
82
|
+
color: "#D92F2",
|
|
83
|
+
marginRight: "3px !important", //this was
|
|
84
|
+
},
|
|
60
85
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
86
|
+
disabled && {
|
|
87
|
+
color: "rgba(0,0,0,0.6)",
|
|
88
|
+
},
|
|
89
|
+
error && {
|
|
90
|
+
color: "#AE1C1C !important",
|
|
91
|
+
},
|
|
92
|
+
]}
|
|
93
|
+
>
|
|
94
|
+
{label}
|
|
95
|
+
</InputLabel>
|
|
96
|
+
{tooltipText && (
|
|
97
|
+
<MadieToolTip
|
|
98
|
+
tooltipText={tooltipText}
|
|
99
|
+
id={`${id}-tooltip`}
|
|
100
|
+
/>
|
|
101
|
+
)}
|
|
102
|
+
</div>
|
|
72
103
|
{helperText && (
|
|
73
104
|
<FormHelperText
|
|
74
105
|
tabIndex={0}
|
|
@@ -103,7 +134,7 @@ const TextField = ({
|
|
|
103
134
|
},
|
|
104
135
|
},
|
|
105
136
|
"& .MuiInputBase-root": {
|
|
106
|
-
height:
|
|
137
|
+
height: "40px",
|
|
107
138
|
},
|
|
108
139
|
"& .MuiOutlinedInput-root": {
|
|
109
140
|
"&&": {
|
|
@@ -133,6 +164,7 @@ const TextField = ({
|
|
|
133
164
|
error={error}
|
|
134
165
|
disabled={disabled}
|
|
135
166
|
id={id}
|
|
167
|
+
inputProps={newInputProps}
|
|
136
168
|
{...rest}
|
|
137
169
|
/>
|
|
138
170
|
</FormControl>
|
|
@@ -147,5 +179,7 @@ TextField.propTypes = {
|
|
|
147
179
|
disabled: PropTypes.bool,
|
|
148
180
|
placeholder: PropTypes.string, // expects placeholder objects of { name: value } and inserts into the render item function.
|
|
149
181
|
label: PropTypes.string,
|
|
182
|
+
tooltipText: PropTypes.string,
|
|
183
|
+
inputProps: PropTypes.object,
|
|
150
184
|
};
|
|
151
185
|
export default TextField;
|
package/components/index.js
CHANGED
|
@@ -16,6 +16,8 @@ import MadieDialog from "./MadieDialog";
|
|
|
16
16
|
import MadieDiscardDialog from "./MadieDiscardDialog";
|
|
17
17
|
import MadieDeleteDialog from "./MadieDeleteDialog";
|
|
18
18
|
import MadieSpinner from "./MadieSpinner";
|
|
19
|
+
import MadieTooltip from "./MadieTooltip";
|
|
20
|
+
import MadieTooltipIcon from "./MadieTooltipIcon";
|
|
19
21
|
import Modal from "./Modal";
|
|
20
22
|
import Popover from "./Popover";
|
|
21
23
|
import { Pagination } from "./Pagination";
|
|
@@ -140,6 +142,8 @@ export {
|
|
|
140
142
|
MadieDiscardDialog,
|
|
141
143
|
MadieDeleteDialog,
|
|
142
144
|
MadieSpinner,
|
|
145
|
+
MadieTooltipIcon,
|
|
146
|
+
MadieTooltip,
|
|
143
147
|
Pagination,
|
|
144
148
|
Popover,
|
|
145
149
|
RadioButton,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<coverage generated="1706116691457" clover="3.2.0">
|
|
3
|
+
<project timestamp="1706116691457" name="All files">
|
|
4
|
+
<metrics statements="20" coveredstatements="20" conditionals="30" coveredconditionals="28" methods="9" coveredmethods="9" elements="59" coveredelements="57" complexity="0" loc="20" ncloc="20" packages="4" files="5" classes="5"/>
|
|
5
|
+
<package name="InputLabel">
|
|
6
|
+
<metrics statements="3" coveredstatements="3" conditionals="6" coveredconditionals="6" methods="1" coveredmethods="1"/>
|
|
7
|
+
<file name="index.jsx" path="/Users/43161/madie/madie-design-system/react/components/InputLabel/index.jsx">
|
|
8
|
+
<metrics statements="3" coveredstatements="3" conditionals="6" coveredconditionals="6" methods="1" coveredmethods="1"/>
|
|
9
|
+
<line num="5" count="1" type="stmt"/>
|
|
10
|
+
<line num="6" count="5" type="stmt"/>
|
|
11
|
+
<line num="48" count="1" type="stmt"/>
|
|
12
|
+
</file>
|
|
13
|
+
</package>
|
|
14
|
+
<package name="MadieTooltip">
|
|
15
|
+
<metrics statements="11" coveredstatements="11" conditionals="5" coveredconditionals="3" methods="6" coveredmethods="6"/>
|
|
16
|
+
<file name="index.jsx" path="/Users/43161/madie/madie-design-system/react/components/MadieTooltip/index.jsx">
|
|
17
|
+
<metrics statements="10" coveredstatements="10" conditionals="5" coveredconditionals="3" methods="6" coveredmethods="6"/>
|
|
18
|
+
<line num="7" count="1" type="cond" truecount="0" falsecount="1"/>
|
|
19
|
+
<line num="8" count="5" type="stmt"/>
|
|
20
|
+
<line num="9" count="5" type="stmt"/>
|
|
21
|
+
<line num="13" count="1" type="stmt"/>
|
|
22
|
+
<line num="15" count="1" type="stmt"/>
|
|
23
|
+
<line num="18" count="1" type="stmt"/>
|
|
24
|
+
<line num="21" count="1" type="stmt"/>
|
|
25
|
+
<line num="24" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
26
|
+
<line num="25" count="1" type="stmt"/>
|
|
27
|
+
<line num="44" count="1" type="stmt"/>
|
|
28
|
+
</file>
|
|
29
|
+
<file name="index.scss" path="/Users/43161/madie/madie-design-system/react/components/MadieTooltip/index.scss">
|
|
30
|
+
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
31
|
+
<line num="1" count="1" type="stmt"/>
|
|
32
|
+
</file>
|
|
33
|
+
</package>
|
|
34
|
+
<package name="MadieTooltipIcon">
|
|
35
|
+
<metrics statements="3" coveredstatements="3" conditionals="1" coveredconditionals="1" methods="1" coveredmethods="1"/>
|
|
36
|
+
<file name="index.jsx" path="/Users/43161/madie/madie-design-system/react/components/MadieTooltipIcon/index.jsx">
|
|
37
|
+
<metrics statements="3" coveredstatements="3" conditionals="1" coveredconditionals="1" methods="1" coveredmethods="1"/>
|
|
38
|
+
<line num="4" count="1" type="cond" truecount="1" falsecount="0"/>
|
|
39
|
+
<line num="5" count="5" type="stmt"/>
|
|
40
|
+
<line num="29" count="1" type="stmt"/>
|
|
41
|
+
</file>
|
|
42
|
+
</package>
|
|
43
|
+
<package name="TextField">
|
|
44
|
+
<metrics statements="3" coveredstatements="3" conditionals="18" coveredconditionals="18" methods="1" coveredmethods="1"/>
|
|
45
|
+
<file name="index.jsx" path="/Users/43161/madie/madie-design-system/react/components/TextField/index.jsx">
|
|
46
|
+
<metrics statements="3" coveredstatements="3" conditionals="18" coveredconditionals="18" methods="1" coveredmethods="1"/>
|
|
47
|
+
<line num="11" count="1" type="stmt"/>
|
|
48
|
+
<line num="21" count="5" type="stmt"/>
|
|
49
|
+
<line num="147" count="1" type="stmt"/>
|
|
50
|
+
</file>
|
|
51
|
+
</package>
|
|
52
|
+
</project>
|
|
53
|
+
</coverage>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{"/Users/43161/madie/madie-design-system/react/components/InputLabel/index.jsx": {"path":"/Users/43161/madie/madie-design-system/react/components/InputLabel/index.jsx","statementMap":{"0":{"start":{"line":5,"column":14},"end":{"line":47,"column":1}},"1":{"start":{"line":6,"column":4},"end":{"line":46,"column":6}},"2":{"start":{"line":48,"column":0},"end":{"line":52,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":5,"column":14},"end":{"line":5,"column":15}},"loc":{"start":{"line":5,"column":58},"end":{"line":47,"column":1}},"line":5}},"branchMap":{"0":{"loc":{"start":{"line":30,"column":16},"end":{"line":36,"column":17}},"type":"binary-expr","locations":[{"start":{"line":30,"column":16},"end":{"line":30,"column":24}},{"start":{"line":30,"column":28},"end":{"line":36,"column":17}}],"line":30},"1":{"loc":{"start":{"line":37,"column":16},"end":{"line":39,"column":17}},"type":"binary-expr","locations":[{"start":{"line":37,"column":16},"end":{"line":37,"column":24}},{"start":{"line":37,"column":28},"end":{"line":39,"column":17}}],"line":37},"2":{"loc":{"start":{"line":40,"column":16},"end":{"line":42,"column":17}},"type":"binary-expr","locations":[{"start":{"line":40,"column":16},"end":{"line":40,"column":21}},{"start":{"line":40,"column":25},"end":{"line":42,"column":17}}],"line":40}},"s":{"0":1,"1":5,"2":1},"f":{"0":5},"b":{"0":[5,1],"1":[5,1],"2":[5,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"0a1310bec710ee6300495741f01b1fdda262e348"}
|
|
2
|
+
,"/Users/43161/madie/madie-design-system/react/components/MadieTooltip/index.jsx": {"path":"/Users/43161/madie/madie-design-system/react/components/MadieTooltip/index.jsx","statementMap":{"0":{"start":{"line":7,"column":21},"end":{"line":42,"column":1}},"1":{"start":{"line":8,"column":38},"end":{"line":8,"column":53}},"2":{"start":{"line":9,"column":4},"end":{"line":41,"column":6}},"3":{"start":{"line":13,"column":27},"end":{"line":13,"column":45}},"4":{"start":{"line":15,"column":16},"end":{"line":15,"column":36}},"5":{"start":{"line":18,"column":16},"end":{"line":18,"column":35}},"6":{"start":{"line":21,"column":16},"end":{"line":21,"column":36}},"7":{"start":{"line":24,"column":16},"end":{"line":26,"column":17}},"8":{"start":{"line":25,"column":20},"end":{"line":25,"column":40}},"9":{"start":{"line":44,"column":0},"end":{"line":46,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":7,"column":21},"end":{"line":7,"column":22}},"loc":{"start":{"line":7,"column":69},"end":{"line":42,"column":1}},"line":7},"1":{"name":"(anonymous_1)","decl":{"start":{"line":13,"column":21},"end":{"line":13,"column":22}},"loc":{"start":{"line":13,"column":27},"end":{"line":13,"column":45}},"line":13},"2":{"name":"(anonymous_2)","decl":{"start":{"line":14,"column":20},"end":{"line":14,"column":21}},"loc":{"start":{"line":14,"column":26},"end":{"line":16,"column":13}},"line":14},"3":{"name":"(anonymous_3)","decl":{"start":{"line":17,"column":26},"end":{"line":17,"column":27}},"loc":{"start":{"line":17,"column":32},"end":{"line":19,"column":13}},"line":17},"4":{"name":"(anonymous_4)","decl":{"start":{"line":20,"column":26},"end":{"line":20,"column":27}},"loc":{"start":{"line":20,"column":32},"end":{"line":22,"column":13}},"line":20},"5":{"name":"(anonymous_5)","decl":{"start":{"line":23,"column":23},"end":{"line":23,"column":24}},"loc":{"start":{"line":23,"column":30},"end":{"line":27,"column":13}},"line":23}},"branchMap":{"0":{"loc":{"start":{"line":7,"column":24},"end":{"line":7,"column":58}},"type":"default-arg","locations":[{"start":{"line":7,"column":38},"end":{"line":7,"column":58}}],"line":7},"1":{"loc":{"start":{"line":24,"column":16},"end":{"line":26,"column":17}},"type":"if","locations":[{"start":{"line":24,"column":16},"end":{"line":26,"column":17}},{"start":{},"end":{}}],"line":24},"2":{"loc":{"start":{"line":36,"column":27},"end":{"line":36,"column":79}},"type":"cond-expr","locations":[{"start":{"line":36,"column":39},"end":{"line":36,"column":54}},{"start":{"line":36,"column":57},"end":{"line":36,"column":79}}],"line":36}},"s":{"0":1,"1":5,"2":5,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1},"f":{"0":5,"1":1,"2":1,"3":1,"4":1,"5":1},"b":{"0":[0],"1":[1,0],"2":[2,3]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"151cca9169e9a05e4e41a09b68509ed2f5921d5e"}
|
|
3
|
+
,"/Users/43161/madie/madie-design-system/react/components/MadieTooltip/index.scss": {"path":"/Users/43161/madie/madie-design-system/react/components/MadieTooltip/index.scss","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}},"fnMap":{},"branchMap":{},"s":{"0":1},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"eb5f8857f4418f79e16718a46a340ceadc6852db"}
|
|
4
|
+
,"/Users/43161/madie/madie-design-system/react/components/MadieTooltipIcon/index.jsx": {"path":"/Users/43161/madie/madie-design-system/react/components/MadieTooltipIcon/index.jsx","statementMap":{"0":{"start":{"line":4,"column":20},"end":{"line":25,"column":1}},"1":{"start":{"line":5,"column":4},"end":{"line":24,"column":10}},"2":{"start":{"line":29,"column":0},"end":{"line":31,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":20},"end":{"line":4,"column":21}},"loc":{"start":{"line":5,"column":4},"end":{"line":24,"column":10}},"line":5}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":23},"end":{"line":4,"column":40}},"type":"default-arg","locations":[{"start":{"line":4,"column":31},"end":{"line":4,"column":40}}],"line":4}},"s":{"0":1,"1":5,"2":1},"f":{"0":5},"b":{"0":[5]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"e3b77d78c8ee4bd89b3ba7f2f93ae20868b303c7"}
|
|
5
|
+
,"/Users/43161/madie/madie-design-system/react/components/TextField/index.jsx": {"path":"/Users/43161/madie/madie-design-system/react/components/TextField/index.jsx","statementMap":{"0":{"start":{"line":11,"column":18},"end":{"line":145,"column":1}},"1":{"start":{"line":21,"column":4},"end":{"line":144,"column":6}},"2":{"start":{"line":147,"column":0},"end":{"line":156,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":11,"column":18},"end":{"line":11,"column":19}},"loc":{"start":{"line":20,"column":6},"end":{"line":145,"column":1}},"line":20}},"branchMap":{"0":{"loc":{"start":{"line":13,"column":4},"end":{"line":13,"column":17}},"type":"default-arg","locations":[{"start":{"line":13,"column":12},"end":{"line":13,"column":17}}],"line":13},"1":{"loc":{"start":{"line":14,"column":4},"end":{"line":14,"column":26}},"type":"default-arg","locations":[{"start":{"line":14,"column":17},"end":{"line":14,"column":26}}],"line":14},"2":{"loc":{"start":{"line":15,"column":4},"end":{"line":15,"column":20}},"type":"default-arg","locations":[{"start":{"line":15,"column":15},"end":{"line":15,"column":20}}],"line":15},"3":{"loc":{"start":{"line":16,"column":4},"end":{"line":16,"column":20}},"type":"default-arg","locations":[{"start":{"line":16,"column":15},"end":{"line":16,"column":20}}],"line":16},"4":{"loc":{"start":{"line":58,"column":24},"end":{"line":64,"column":25}},"type":"binary-expr","locations":[{"start":{"line":58,"column":24},"end":{"line":58,"column":32}},{"start":{"line":58,"column":36},"end":{"line":64,"column":25}}],"line":58},"5":{"loc":{"start":{"line":65,"column":24},"end":{"line":67,"column":25}},"type":"binary-expr","locations":[{"start":{"line":65,"column":24},"end":{"line":65,"column":32}},{"start":{"line":65,"column":36},"end":{"line":67,"column":25}}],"line":65},"6":{"loc":{"start":{"line":68,"column":24},"end":{"line":70,"column":25}},"type":"binary-expr","locations":[{"start":{"line":68,"column":24},"end":{"line":68,"column":29}},{"start":{"line":68,"column":33},"end":{"line":70,"column":25}}],"line":68},"7":{"loc":{"start":{"line":75,"column":17},"end":{"line":75,"column":94}},"type":"binary-expr","locations":[{"start":{"line":75,"column":17},"end":{"line":75,"column":28}},{"start":{"line":75,"column":32},"end":{"line":75,"column":94}}],"line":75},"8":{"loc":{"start":{"line":77,"column":13},"end":{"line":96,"column":13}},"type":"binary-expr","locations":[{"start":{"line":77,"column":13},"end":{"line":77,"column":23}},{"start":{"line":78,"column":16},"end":{"line":95,"column":33}}],"line":77},"9":{"loc":{"start":{"line":89,"column":24},"end":{"line":91,"column":25}},"type":"binary-expr","locations":[{"start":{"line":89,"column":24},"end":{"line":89,"column":29}},{"start":{"line":89,"column":33},"end":{"line":91,"column":25}}],"line":89},"10":{"loc":{"start":{"line":131,"column":20},"end":{"line":135,"column":21}},"type":"binary-expr","locations":[{"start":{"line":131,"column":20},"end":{"line":131,"column":25}},{"start":{"line":131,"column":29},"end":{"line":135,"column":21}}],"line":131}},"s":{"0":1,"1":5,"2":1},"f":{"0":5},"b":{"0":[4],"1":[1],"2":[4],"3":[4],"4":[5,1],"5":[5,1],"6":[5,1],"7":[5,1],"8":[5,4],"9":[4,1],"10":[5,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"4c420249fd02b6fe9b98a7e62616178e83f751f8"}
|
|
6
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for InputLabel</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> InputLabel</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">100% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>3/3</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>6/6</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">100% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>1/1</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">100% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>3/3</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.jsx"><a href="index.jsx.html">index.jsx</a></td>
|
|
83
|
+
<td data-value="100" class="pic high">
|
|
84
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
85
|
+
</td>
|
|
86
|
+
<td data-value="100" class="pct high">100%</td>
|
|
87
|
+
<td data-value="3" class="abs high">3/3</td>
|
|
88
|
+
<td data-value="100" class="pct high">100%</td>
|
|
89
|
+
<td data-value="6" class="abs high">6/6</td>
|
|
90
|
+
<td data-value="100" class="pct high">100%</td>
|
|
91
|
+
<td data-value="1" class="abs high">1/1</td>
|
|
92
|
+
<td data-value="100" class="pct high">100%</td>
|
|
93
|
+
<td data-value="3" class="abs high">3/3</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 2024-01-24T17:18:11.426Z
|
|
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
|
+
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for InputLabel/index.jsx</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> / <a href="index.html">InputLabel</a> index.jsx</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">100% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>3/3</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>6/6</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">100% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>1/1</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">100% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>3/3</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
|
+
<pre><table class="coverage">
|
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
|
89
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
|
90
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
|
91
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
|
92
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
|
93
|
+
<a name='L28'></a><a href='#L28'>28</a>
|
|
94
|
+
<a name='L29'></a><a href='#L29'>29</a>
|
|
95
|
+
<a name='L30'></a><a href='#L30'>30</a>
|
|
96
|
+
<a name='L31'></a><a href='#L31'>31</a>
|
|
97
|
+
<a name='L32'></a><a href='#L32'>32</a>
|
|
98
|
+
<a name='L33'></a><a href='#L33'>33</a>
|
|
99
|
+
<a name='L34'></a><a href='#L34'>34</a>
|
|
100
|
+
<a name='L35'></a><a href='#L35'>35</a>
|
|
101
|
+
<a name='L36'></a><a href='#L36'>36</a>
|
|
102
|
+
<a name='L37'></a><a href='#L37'>37</a>
|
|
103
|
+
<a name='L38'></a><a href='#L38'>38</a>
|
|
104
|
+
<a name='L39'></a><a href='#L39'>39</a>
|
|
105
|
+
<a name='L40'></a><a href='#L40'>40</a>
|
|
106
|
+
<a name='L41'></a><a href='#L41'>41</a>
|
|
107
|
+
<a name='L42'></a><a href='#L42'>42</a>
|
|
108
|
+
<a name='L43'></a><a href='#L43'>43</a>
|
|
109
|
+
<a name='L44'></a><a href='#L44'>44</a>
|
|
110
|
+
<a name='L45'></a><a href='#L45'>45</a>
|
|
111
|
+
<a name='L46'></a><a href='#L46'>46</a>
|
|
112
|
+
<a name='L47'></a><a href='#L47'>47</a>
|
|
113
|
+
<a name='L48'></a><a href='#L48'>48</a>
|
|
114
|
+
<a name='L49'></a><a href='#L49'>49</a>
|
|
115
|
+
<a name='L50'></a><a href='#L50'>50</a>
|
|
116
|
+
<a name='L51'></a><a href='#L51'>51</a>
|
|
117
|
+
<a name='L52'></a><a href='#L52'>52</a>
|
|
118
|
+
<a name='L53'></a><a href='#L53'>53</a>
|
|
119
|
+
<a name='L54'></a><a href='#L54'>54</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
120
|
+
<span class="cline-any cline-neutral"> </span>
|
|
121
|
+
<span class="cline-any cline-neutral"> </span>
|
|
122
|
+
<span class="cline-any cline-neutral"> </span>
|
|
123
|
+
<span class="cline-any cline-yes">1x</span>
|
|
124
|
+
<span class="cline-any cline-yes">5x</span>
|
|
125
|
+
<span class="cline-any cline-neutral"> </span>
|
|
126
|
+
<span class="cline-any cline-neutral"> </span>
|
|
127
|
+
<span class="cline-any cline-neutral"> </span>
|
|
128
|
+
<span class="cline-any cline-neutral"> </span>
|
|
129
|
+
<span class="cline-any cline-neutral"> </span>
|
|
130
|
+
<span class="cline-any cline-neutral"> </span>
|
|
131
|
+
<span class="cline-any cline-neutral"> </span>
|
|
132
|
+
<span class="cline-any cline-neutral"> </span>
|
|
133
|
+
<span class="cline-any cline-neutral"> </span>
|
|
134
|
+
<span class="cline-any cline-neutral"> </span>
|
|
135
|
+
<span class="cline-any cline-neutral"> </span>
|
|
136
|
+
<span class="cline-any cline-neutral"> </span>
|
|
137
|
+
<span class="cline-any cline-neutral"> </span>
|
|
138
|
+
<span class="cline-any cline-neutral"> </span>
|
|
139
|
+
<span class="cline-any cline-neutral"> </span>
|
|
140
|
+
<span class="cline-any cline-neutral"> </span>
|
|
141
|
+
<span class="cline-any cline-neutral"> </span>
|
|
142
|
+
<span class="cline-any cline-neutral"> </span>
|
|
143
|
+
<span class="cline-any cline-neutral"> </span>
|
|
144
|
+
<span class="cline-any cline-neutral"> </span>
|
|
145
|
+
<span class="cline-any cline-neutral"> </span>
|
|
146
|
+
<span class="cline-any cline-neutral"> </span>
|
|
147
|
+
<span class="cline-any cline-neutral"> </span>
|
|
148
|
+
<span class="cline-any cline-neutral"> </span>
|
|
149
|
+
<span class="cline-any cline-neutral"> </span>
|
|
150
|
+
<span class="cline-any cline-neutral"> </span>
|
|
151
|
+
<span class="cline-any cline-neutral"> </span>
|
|
152
|
+
<span class="cline-any cline-neutral"> </span>
|
|
153
|
+
<span class="cline-any cline-neutral"> </span>
|
|
154
|
+
<span class="cline-any cline-neutral"> </span>
|
|
155
|
+
<span class="cline-any cline-neutral"> </span>
|
|
156
|
+
<span class="cline-any cline-neutral"> </span>
|
|
157
|
+
<span class="cline-any cline-neutral"> </span>
|
|
158
|
+
<span class="cline-any cline-neutral"> </span>
|
|
159
|
+
<span class="cline-any cline-neutral"> </span>
|
|
160
|
+
<span class="cline-any cline-neutral"> </span>
|
|
161
|
+
<span class="cline-any cline-neutral"> </span>
|
|
162
|
+
<span class="cline-any cline-neutral"> </span>
|
|
163
|
+
<span class="cline-any cline-neutral"> </span>
|
|
164
|
+
<span class="cline-any cline-neutral"> </span>
|
|
165
|
+
<span class="cline-any cline-neutral"> </span>
|
|
166
|
+
<span class="cline-any cline-yes">1x</span>
|
|
167
|
+
<span class="cline-any cline-neutral"> </span>
|
|
168
|
+
<span class="cline-any cline-neutral"> </span>
|
|
169
|
+
<span class="cline-any cline-neutral"> </span>
|
|
170
|
+
<span class="cline-any cline-neutral"> </span>
|
|
171
|
+
<span class="cline-any cline-neutral"> </span>
|
|
172
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
173
|
+
import { InputLabel as MUIInputLabel } from "@mui/material";
|
|
174
|
+
import PropTypes from "prop-types";
|
|
175
|
+
|
|
176
|
+
const Label = ({ required, disabled, error, ...rest }) => {
|
|
177
|
+
return (
|
|
178
|
+
<MUIInputLabel
|
|
179
|
+
required={required}
|
|
180
|
+
disabled={disabled}
|
|
181
|
+
error={error}
|
|
182
|
+
sx={[
|
|
183
|
+
{
|
|
184
|
+
backgroundColor: "transparent",
|
|
185
|
+
display: "flex",
|
|
186
|
+
flexDirection: "row-reverse",
|
|
187
|
+
alignSelf: "baseline",
|
|
188
|
+
textTransform: "none",
|
|
189
|
+
// force it outside the select box
|
|
190
|
+
position: "initial",
|
|
191
|
+
transform: "translateX(0px) translateY(0px)",
|
|
192
|
+
fontFamily: "Rubik",
|
|
193
|
+
fontWeight: 500,
|
|
194
|
+
fontSize: 14,
|
|
195
|
+
color: "#333",
|
|
196
|
+
"& .MuiInputLabel-asterisk": {
|
|
197
|
+
color: "#AE1C1C !important",
|
|
198
|
+
marginRight: "3px !important", //this was
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
required && {
|
|
202
|
+
transform: "translateX(-12px) translateY(0px)",
|
|
203
|
+
"& .MuiInputLabel-asterisk": {
|
|
204
|
+
color: "#D92F2",
|
|
205
|
+
marginRight: "3px !important", //this was
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
disabled && {
|
|
209
|
+
color: "#333333 !important",
|
|
210
|
+
},
|
|
211
|
+
error && {
|
|
212
|
+
color: "#AE1C1C !important",
|
|
213
|
+
},
|
|
214
|
+
]}
|
|
215
|
+
{...rest}
|
|
216
|
+
/>
|
|
217
|
+
);
|
|
218
|
+
};
|
|
219
|
+
Label.propTypes = {
|
|
220
|
+
required: PropTypes.bool.isRequired,
|
|
221
|
+
disabled: PropTypes.bool.isRequired,
|
|
222
|
+
error: PropTypes.bool,
|
|
223
|
+
};
|
|
224
|
+
export default Label;
|
|
225
|
+
</pre></td></tr></table></pre>
|
|
226
|
+
|
|
227
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
228
|
+
</div><!-- /wrapper -->
|
|
229
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
230
|
+
Code coverage generated by
|
|
231
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
232
|
+
at 2024-01-24T17:18:11.426Z
|
|
233
|
+
</div>
|
|
234
|
+
<script src="../prettify.js"></script>
|
|
235
|
+
<script>
|
|
236
|
+
window.onload = function () {
|
|
237
|
+
prettyPrint();
|
|
238
|
+
};
|
|
239
|
+
</script>
|
|
240
|
+
<script src="../sorter.js"></script>
|
|
241
|
+
<script src="../block-navigation.js"></script>
|
|
242
|
+
</body>
|
|
243
|
+
</html>
|
|
244
|
+
|