@madie/madie-design-system 1.2.8 → 1.2.10
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/.ignore~ +1 -0
- package/components/DateField/DateField.jsx +27 -4
- package/components/DateTimeField/DateTimeField.jsx +2 -0
- package/components/TextArea/index.jsx +1 -1
- package/coverage/clover.xml +529 -34
- package/coverage/coverage-final.json +36 -5
- package/coverage/lcov-report/DateField/DateField.jsx.html +424 -0
- package/coverage/lcov-report/DateField/index.html +116 -0
- package/coverage/lcov-report/{MadieTooltip/index.scss.html → DateTimeField/DateTimeField.jsx.html} +141 -69
- package/coverage/lcov-report/DateTimeField/index.html +116 -0
- package/coverage/lcov-report/InputLabel/index.html +6 -6
- package/coverage/lcov-report/InputLabel/index.jsx.html +8 -8
- package/coverage/lcov-report/MadieTooltip/index.html +22 -37
- package/coverage/lcov-report/MadieTooltip/index.jsx.html +34 -34
- package/coverage/lcov-report/MadieTooltipIcon/index.html +22 -22
- package/coverage/lcov-report/MadieTooltipIcon/index.jsx.html +15 -15
- package/coverage/lcov-report/TextField/index.html +18 -18
- package/coverage/lcov-report/TextField/index.jsx.html +104 -20
- package/coverage/lcov-report/index.html +347 -17
- package/coverage/lcov-report/react/components/Accordion/index.html +2 -2
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Button/index.html +2 -2
- package/coverage/lcov-report/react/components/Button/index.js.html +2 -2
- package/coverage/lcov-report/react/components/DateField/DateField.jsx.html +83 -14
- package/coverage/lcov-report/react/components/DateField/index.html +12 -12
- package/coverage/lcov-report/react/components/DateTimeField/DateTimeField.jsx.html +9 -3
- package/coverage/lcov-report/react/components/DateTimeField/index.html +2 -2
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Error/error.js.html +2 -2
- package/coverage/lcov-report/react/components/Error/index.html +2 -2
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Footer/footer.js.html +2 -2
- package/coverage/lcov-report/react/components/Footer/index.html +2 -2
- 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 +2 -2
- package/coverage/lcov-report/react/components/Infotip/index.js.html +2 -2
- package/coverage/lcov-report/react/components/InputLabel/index.html +2 -2
- package/coverage/lcov-report/react/components/InputLabel/index.jsx.html +3 -3
- package/coverage/lcov-report/react/components/MadieAlert/index.html +2 -2
- package/coverage/lcov-report/react/components/MadieAlert/index.jsx.html +2 -2
- package/coverage/lcov-report/react/components/MadieDeleteDialog/index.html +2 -2
- package/coverage/lcov-report/react/components/MadieDeleteDialog/index.jsx.html +2 -2
- package/coverage/lcov-report/react/components/MadieDialog/index.html +2 -2
- package/coverage/lcov-report/react/components/MadieDialog/index.jsx.html +2 -2
- package/coverage/lcov-report/react/components/MadieDiscardDialog/index.html +2 -2
- package/coverage/lcov-report/react/components/MadieDiscardDialog/index.jsx.html +2 -2
- package/coverage/lcov-report/react/components/MadieSpinner/index.html +2 -2
- package/coverage/lcov-report/react/components/MadieSpinner/index.jsx.html +2 -2
- package/coverage/lcov-report/react/components/MadieTooltip/index.html +17 -32
- package/coverage/lcov-report/react/components/MadieTooltip/index.jsx.html +29 -35
- package/coverage/lcov-report/react/components/MadieTooltipIcon/index.html +2 -2
- package/coverage/lcov-report/react/components/MadieTooltipIcon/index.jsx.html +6 -6
- package/coverage/lcov-report/react/components/Pagination/index.html +2 -2
- package/coverage/lcov-report/react/components/Pagination/index.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Popover/index.html +2 -2
- package/coverage/lcov-report/react/components/Popover/index.js.html +2 -2
- package/coverage/lcov-report/react/components/ReadOnlyTextField/index.html +2 -2
- package/coverage/lcov-report/react/components/ReadOnlyTextField/index.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Select/index.html +2 -2
- package/coverage/lcov-report/react/components/Select/index.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Tabs/Tab.js.html +2 -2
- package/coverage/lcov-report/react/components/Tabs/index.html +2 -2
- package/coverage/lcov-report/react/components/Tabs/index.js.html +2 -2
- package/coverage/lcov-report/react/components/TextArea/index.html +2 -2
- package/coverage/lcov-report/react/components/TextArea/index.jsx.html +3 -3
- package/coverage/lcov-report/react/components/TextField/index.html +10 -10
- package/coverage/lcov-report/react/components/TextField/index.jsx.html +94 -10
- package/coverage/lcov-report/react/components/Toast/index.html +2 -2
- package/coverage/lcov-report/react/components/Toast/index.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Tooltip/index.html +2 -2
- package/coverage/lcov-report/react/components/Tooltip/index.js.html +2 -2
- package/coverage/lcov-report/react/components/Tooltip/position.js.html +2 -2
- package/coverage/lcov-report/react/index.html +2 -2
- package/coverage/lcov-report/react/index.js.html +2 -2
- package/coverage/lcov-report/react/lib/Chevron.jsx.html +2 -2
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +2 -2
- package/coverage/lcov-report/react/lib/index.html +2 -2
- package/coverage/lcov.info +1101 -62
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +21 -21
- package/dist/react/index.js.LICENSE.txt +5 -3
- package/dist/react/index.js.map +1 -1
- package/package.json +5 -5
- package/test/components/DateField.test.js +22 -0
- package/test/components/DateTimeField.test.js +1 -1
- package/coverage/lcov-report/react/components/MadieTooltip/index.scss.html +0 -274
- package/storybook-static/115.d30f56a6.iframe.bundle.js +0 -2
- package/storybook-static/115.d30f56a6.iframe.bundle.js.LICENSE.txt +0 -11
- package/storybook-static/229.39437e22abb0122d8468.manager.bundle.js +0 -1
- package/storybook-static/229.4bb41a80.iframe.bundle.js +0 -1
- package/storybook-static/295.2254430070adaf39d242.manager.bundle.js +0 -1
- package/storybook-static/468.c08904a03c7e948966c6.manager.bundle.js +0 -2
- package/storybook-static/468.c08904a03c7e948966c6.manager.bundle.js.LICENSE.txt +0 -94
- package/storybook-static/51.5c11732a.iframe.bundle.js +0 -2
- package/storybook-static/51.5c11732a.iframe.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/51.760aa05a4333dd8a752e.manager.bundle.js +0 -2
- package/storybook-static/51.760aa05a4333dd8a752e.manager.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/551.3428ed3c.iframe.bundle.js +0 -1
- package/storybook-static/551.8c8f45eb9d74974aa18a.manager.bundle.js +0 -1
- package/storybook-static/721.b2cb1bef.iframe.bundle.js +0 -2
- package/storybook-static/721.b2cb1bef.iframe.bundle.js.LICENSE.txt +0 -14
- package/storybook-static/768.a56f8dc5.iframe.bundle.js +0 -1
- package/storybook-static/807.ab5e54b0.iframe.bundle.js +0 -2
- package/storybook-static/807.ab5e54b0.iframe.bundle.js.LICENSE.txt +0 -31
- package/storybook-static/807.d9b6543fdd7c2d6a261f.manager.bundle.js +0 -2
- package/storybook-static/807.d9b6543fdd7c2d6a261f.manager.bundle.js.LICENSE.txt +0 -31
- package/storybook-static/875.f84e25ca.iframe.bundle.js +0 -103
- package/storybook-static/875.f84e25ca.iframe.bundle.js.LICENSE.txt +0 -140
- package/storybook-static/875.f84e25ca.iframe.bundle.js.map +0 -1
- package/storybook-static/897.28a9da99b07676500653.manager.bundle.js +0 -2
- package/storybook-static/897.28a9da99b07676500653.manager.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/897.55fef906.iframe.bundle.js +0 -2
- package/storybook-static/897.55fef906.iframe.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/935.21bb37c1.iframe.bundle.js +0 -1
- package/storybook-static/935.3dd376a177921dc3fe3b.manager.bundle.js +0 -1
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +0 -364
- package/storybook-static/index.html +0 -59
- package/storybook-static/main.e049ced5d8ce985fef37.manager.bundle.js +0 -1
- package/storybook-static/main.e57b4407.iframe.bundle.js +0 -1
- package/storybook-static/project.json +0 -1
- package/storybook-static/runtime~main.5389bf219a9b1108d544.manager.bundle.js +0 -1
- package/storybook-static/runtime~main.57b908d8.iframe.bundle.js +0 -1
- package/storybook-static/static/media/Bitter-Bold.091bd4b7.woff +0 -0
- package/storybook-static/static/media/Bitter-Bold.24bf01e4.woff2 +0 -0
- package/storybook-static/static/media/Bitter-Bold.46bc29e4.ttf +0 -0
- package/storybook-static/static/media/Bitter-Bold.790f4f2f.eot +0 -0
- package/storybook-static/static/media/Bitter-Italic.1fa5390c.eot +0 -0
- package/storybook-static/static/media/Bitter-Italic.25e5675f.woff +0 -0
- package/storybook-static/static/media/Bitter-Italic.2eb18f5a.ttf +0 -0
- package/storybook-static/static/media/Bitter-Italic.34644574.woff2 +0 -0
- package/storybook-static/static/media/Bitter-Regular.4b22b6e8.woff +0 -0
- package/storybook-static/static/media/Bitter-Regular.559e7075.eot +0 -0
- package/storybook-static/static/media/Bitter-Regular.8db0301b.ttf +0 -0
- package/storybook-static/static/media/Bitter-Regular.f4e2f1f1.woff2 +0 -0
- package/storybook-static/static/media/FontAwesome.91f80bba.otf +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.202d819d.eot +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.92e570c6.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.da71e99a.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.e75949bb.woff +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.72daa33a.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.74ead3a8.woff +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.ae19388f.eot +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.ec7a2746.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.63a5fa7d.woff +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.66451be4.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.7882d20f.eot +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.ca4dd835.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.17ded75f.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.2a5adf6c.woff +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.6059fecb.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.c9808185.eot +0 -0
- package/storybook-static/static/media/Rubik-Bold.31bbd4d2.ttf +0 -0
- package/storybook-static/static/media/Rubik-Light.c90e2014.ttf +0 -0
- package/storybook-static/static/media/Rubik-Medium.5daa89aa.ttf +0 -0
- package/storybook-static/static/media/Rubik-Regular.cdf97d58.ttf +0 -0
- package/storybook-static/static/media/arrow-both.a0959e13.svg +0 -3
- package/storybook-static/static/media/fontawesome-webfont.1e59d233.ttf +0 -0
- package/storybook-static/static/media/fontawesome-webfont.20fd1704.woff2 +0 -0
- package/storybook-static/static/media/fontawesome-webfont.8b43027f.eot +0 -0
- package/storybook-static/static/media/fontawesome-webfont.c1e38fd9.svg +0 -2671
- package/storybook-static/static/media/fontawesome-webfont.f691f37e.woff +0 -0
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">78.57% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>11/14</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">43.33% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>13/30</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">78.57% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>11/14</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
<template id="filterTemplate">
|
|
58
58
|
<div class="quiet">
|
|
59
59
|
Filter:
|
|
60
|
-
<input
|
|
60
|
+
<input type="search" id="fileSearch">
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line medium'></div>
|
|
65
65
|
<pre><table class="coverage">
|
|
66
66
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
67
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
@@ -220,7 +220,35 @@
|
|
|
220
220
|
<a name='L155'></a><a href='#L155'>155</a>
|
|
221
221
|
<a name='L156'></a><a href='#L156'>156</a>
|
|
222
222
|
<a name='L157'></a><a href='#L157'>157</a>
|
|
223
|
-
<a name='L158'></a><a href='#L158'>158</a
|
|
223
|
+
<a name='L158'></a><a href='#L158'>158</a>
|
|
224
|
+
<a name='L159'></a><a href='#L159'>159</a>
|
|
225
|
+
<a name='L160'></a><a href='#L160'>160</a>
|
|
226
|
+
<a name='L161'></a><a href='#L161'>161</a>
|
|
227
|
+
<a name='L162'></a><a href='#L162'>162</a>
|
|
228
|
+
<a name='L163'></a><a href='#L163'>163</a>
|
|
229
|
+
<a name='L164'></a><a href='#L164'>164</a>
|
|
230
|
+
<a name='L165'></a><a href='#L165'>165</a>
|
|
231
|
+
<a name='L166'></a><a href='#L166'>166</a>
|
|
232
|
+
<a name='L167'></a><a href='#L167'>167</a>
|
|
233
|
+
<a name='L168'></a><a href='#L168'>168</a>
|
|
234
|
+
<a name='L169'></a><a href='#L169'>169</a>
|
|
235
|
+
<a name='L170'></a><a href='#L170'>170</a>
|
|
236
|
+
<a name='L171'></a><a href='#L171'>171</a>
|
|
237
|
+
<a name='L172'></a><a href='#L172'>172</a>
|
|
238
|
+
<a name='L173'></a><a href='#L173'>173</a>
|
|
239
|
+
<a name='L174'></a><a href='#L174'>174</a>
|
|
240
|
+
<a name='L175'></a><a href='#L175'>175</a>
|
|
241
|
+
<a name='L176'></a><a href='#L176'>176</a>
|
|
242
|
+
<a name='L177'></a><a href='#L177'>177</a>
|
|
243
|
+
<a name='L178'></a><a href='#L178'>178</a>
|
|
244
|
+
<a name='L179'></a><a href='#L179'>179</a>
|
|
245
|
+
<a name='L180'></a><a href='#L180'>180</a>
|
|
246
|
+
<a name='L181'></a><a href='#L181'>181</a>
|
|
247
|
+
<a name='L182'></a><a href='#L182'>182</a>
|
|
248
|
+
<a name='L183'></a><a href='#L183'>183</a>
|
|
249
|
+
<a name='L184'></a><a href='#L184'>184</a>
|
|
250
|
+
<a name='L185'></a><a href='#L185'>185</a>
|
|
251
|
+
<a name='L186'></a><a href='#L186'>186</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
224
252
|
<span class="cline-any cline-neutral"> </span>
|
|
225
253
|
<span class="cline-any cline-neutral"> </span>
|
|
226
254
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -240,7 +268,34 @@
|
|
|
240
268
|
<span class="cline-any cline-neutral"> </span>
|
|
241
269
|
<span class="cline-any cline-neutral"> </span>
|
|
242
270
|
<span class="cline-any cline-neutral"> </span>
|
|
243
|
-
<span class="cline-any cline-
|
|
271
|
+
<span class="cline-any cline-neutral"> </span>
|
|
272
|
+
<span class="cline-any cline-neutral"> </span>
|
|
273
|
+
<span class="cline-any cline-yes">4x</span>
|
|
274
|
+
<span class="cline-any cline-neutral"> </span>
|
|
275
|
+
<span class="cline-any cline-yes">4x</span>
|
|
276
|
+
<span class="cline-any cline-yes">4x</span>
|
|
277
|
+
<span class="cline-any cline-neutral"> </span>
|
|
278
|
+
<span class="cline-any cline-neutral"> </span>
|
|
279
|
+
<span class="cline-any cline-yes">4x</span>
|
|
280
|
+
<span class="cline-any cline-yes">4x</span>
|
|
281
|
+
<span class="cline-any cline-yes">4x</span>
|
|
282
|
+
<span class="cline-any cline-no"> </span>
|
|
283
|
+
<span class="cline-any cline-neutral"> </span>
|
|
284
|
+
<span class="cline-any cline-yes">4x</span>
|
|
285
|
+
<span class="cline-any cline-no"> </span>
|
|
286
|
+
<span class="cline-any cline-neutral"> </span>
|
|
287
|
+
<span class="cline-any cline-yes">4x</span>
|
|
288
|
+
<span class="cline-any cline-no"> </span>
|
|
289
|
+
<span class="cline-any cline-neutral"> </span>
|
|
290
|
+
<span class="cline-any cline-neutral"> </span>
|
|
291
|
+
<span class="cline-any cline-neutral"> </span>
|
|
292
|
+
<span class="cline-any cline-yes">4x</span>
|
|
293
|
+
<span class="cline-any cline-neutral"> </span>
|
|
294
|
+
<span class="cline-any cline-neutral"> </span>
|
|
295
|
+
<span class="cline-any cline-neutral"> </span>
|
|
296
|
+
<span class="cline-any cline-neutral"> </span>
|
|
297
|
+
<span class="cline-any cline-neutral"> </span>
|
|
298
|
+
<span class="cline-any cline-neutral"> </span>
|
|
244
299
|
<span class="cline-any cline-neutral"> </span>
|
|
245
300
|
<span class="cline-any cline-neutral"> </span>
|
|
246
301
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -377,6 +432,7 @@
|
|
|
377
432
|
<span class="cline-any cline-neutral"> </span>
|
|
378
433
|
<span class="cline-any cline-neutral"> </span>
|
|
379
434
|
<span class="cline-any cline-neutral"> </span>
|
|
435
|
+
<span class="cline-any cline-neutral"> </span>
|
|
380
436
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
381
437
|
import {
|
|
382
438
|
FormControl,
|
|
@@ -389,14 +445,35 @@ import PropTypes from "prop-types";
|
|
|
389
445
|
|
|
390
446
|
const TextField = ({
|
|
391
447
|
id,
|
|
392
|
-
error = false
|
|
393
|
-
helperText = undefined
|
|
448
|
+
error = <span class="branch-0 cbranch-no" title="branch not covered" >false,</span>
|
|
449
|
+
helperText = <span class="branch-0 cbranch-no" title="branch not covered" >undefined,</span>
|
|
394
450
|
required = false,
|
|
395
|
-
disabled = false
|
|
451
|
+
disabled = <span class="branch-0 cbranch-no" title="branch not covered" >false,</span>
|
|
396
452
|
label,
|
|
397
453
|
tooltipText,
|
|
454
|
+
inputProps,
|
|
398
455
|
...rest
|
|
399
456
|
}) => {
|
|
457
|
+
// get a copy of input props
|
|
458
|
+
const newInputProps = { ...inputProps } || <span class="branch-1 cbranch-no" title="branch not covered" >{};</span>
|
|
459
|
+
|
|
460
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (!newInputProps["data-testid"]) {
|
|
461
|
+
newInputProps["data-testid"] = `${id}-input`;
|
|
462
|
+
}
|
|
463
|
+
// if aria-describedBy is not provided, add it depending on helper-text and tooltip presence
|
|
464
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (!newInputProps["aria-describedby"]) {
|
|
465
|
+
let newDescribedBy = "";
|
|
466
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (helperText) {
|
|
467
|
+
<span class="cstat-no" title="statement not covered" > newDescribedBy += `${id}-helper-text `;</span>
|
|
468
|
+
}
|
|
469
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (tooltipText) {
|
|
470
|
+
<span class="cstat-no" title="statement not covered" > newDescribedBy += `${id}-tooltip`;</span>
|
|
471
|
+
}
|
|
472
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (newDescribedBy) {
|
|
473
|
+
<span class="cstat-no" title="statement not covered" > newInputProps["aria-describedby"] = newDescribedBy;</span>
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
400
477
|
return (
|
|
401
478
|
<FormControl fullWidth error={error}>
|
|
402
479
|
<div
|
|
@@ -434,27 +511,32 @@ const TextField = ({
|
|
|
434
511
|
marginRight: "3px !important", //this was
|
|
435
512
|
},
|
|
436
513
|
},
|
|
437
|
-
required && {
|
|
514
|
+
required && <span class="branch-1 cbranch-no" title="branch not covered" >{</span>
|
|
438
515
|
transform: "translateX(-12px) translateY(0px)",
|
|
439
516
|
"& .MuiInputLabel-asterisk": {
|
|
440
517
|
color: "#D92F2",
|
|
441
518
|
marginRight: "3px !important", //this was
|
|
442
519
|
},
|
|
443
520
|
},
|
|
444
|
-
disabled && {
|
|
521
|
+
disabled && <span class="branch-1 cbranch-no" title="branch not covered" >{</span>
|
|
445
522
|
color: "rgba(0,0,0,0.6)",
|
|
446
523
|
},
|
|
447
|
-
error && {
|
|
524
|
+
error && <span class="branch-1 cbranch-no" title="branch not covered" >{</span>
|
|
448
525
|
color: "#AE1C1C !important",
|
|
449
526
|
},
|
|
450
527
|
]}
|
|
451
528
|
>
|
|
452
529
|
{label}
|
|
453
530
|
</InputLabel>
|
|
454
|
-
{tooltipText &&
|
|
531
|
+
{tooltipText && (
|
|
532
|
+
<span class="branch-1 cbranch-no" title="branch not covered" > <MadieToolTip</span>
|
|
533
|
+
tooltipText={tooltipText}
|
|
534
|
+
id={`${id}-tooltip`}
|
|
535
|
+
/>
|
|
536
|
+
)}
|
|
455
537
|
</div>
|
|
456
538
|
{helperText && (
|
|
457
|
-
<FormHelperText
|
|
539
|
+
<span class="branch-1 cbranch-no" title="branch not covered" > <FormHelperText</span>
|
|
458
540
|
tabIndex={0}
|
|
459
541
|
aria-live="polite"
|
|
460
542
|
id={`${id}-helper-text`}
|
|
@@ -507,7 +589,7 @@ const TextField = ({
|
|
|
507
589
|
},
|
|
508
590
|
},
|
|
509
591
|
},
|
|
510
|
-
error && {
|
|
592
|
+
error && <span class="branch-1 cbranch-no" title="branch not covered" >{</span>
|
|
511
593
|
"& .MuiOutlinedInput-notchedOutline": {
|
|
512
594
|
borderColor: "#AE1C1C !important",
|
|
513
595
|
},
|
|
@@ -517,6 +599,7 @@ const TextField = ({
|
|
|
517
599
|
error={error}
|
|
518
600
|
disabled={disabled}
|
|
519
601
|
id={id}
|
|
602
|
+
inputProps={newInputProps}
|
|
520
603
|
{...rest}
|
|
521
604
|
/>
|
|
522
605
|
</FormControl>
|
|
@@ -532,6 +615,7 @@ TextField.propTypes = {
|
|
|
532
615
|
placeholder: PropTypes.string, // expects placeholder objects of { name: value } and inserts into the render item function.
|
|
533
616
|
label: PropTypes.string,
|
|
534
617
|
tooltipText: PropTypes.string,
|
|
618
|
+
inputProps: PropTypes.object,
|
|
535
619
|
};
|
|
536
620
|
export default TextField;
|
|
537
621
|
</pre></td></tr></table></pre>
|
|
@@ -541,7 +625,7 @@ export default TextField;
|
|
|
541
625
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
542
626
|
Code coverage generated by
|
|
543
627
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
544
|
-
at 2024-
|
|
628
|
+
at 2024-03-20T15:56:48.583Z
|
|
545
629
|
</div>
|
|
546
630
|
<script src="../prettify.js"></script>
|
|
547
631
|
<script>
|