@npm_leadtech/legal-lib-components 0.5.8 → 0.8.0
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/__mocks__/file-mock.js +1 -0
- package/build/index.js +1 -1
- package/coverage/clover.xml +18 -6
- package/coverage/coverage-final.json +2 -1
- package/coverage/lcov-report/components/atoms/CardPane/CardPane.js.html +1 -1
- package/coverage/lcov-report/components/atoms/CardPane/index.html +1 -1
- package/coverage/lcov-report/components/atoms/Disclaimer/Disclaimer.js.html +24 -6
- package/coverage/lcov-report/components/atoms/Disclaimer/index.html +1 -1
- package/coverage/lcov-report/components/atoms/DocumentStatus/DocumentStatus.js.html +203 -0
- package/coverage/lcov-report/components/atoms/DocumentStatus/index.html +111 -0
- package/coverage/lcov-report/index.html +23 -8
- package/coverage/lcov-report/utils/envVariables.js.html +1 -1
- package/coverage/lcov-report/utils/index.html +1 -1
- package/coverage/lcov.info +33 -9
- package/images/svgComponents/done-24-px.svg +14 -0
- package/images/svgComponents/new-release-24-p.svg +14 -0
- package/images/svgComponents/time-24-px.svg +14 -0
- package/jest.config.js +9 -0
- package/package.json +8 -5
- package/setupTests.js +1 -0
- package/yarn-error.log +13665 -0
- package/report.20210706.100814.47215.0.001.json +0 -557
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for components/atoms/DocumentStatus/DocumentStatus.js</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">components/atoms/DocumentStatus</a> DocumentStatus.js</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'>6/6</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'>7/7</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'>6/6</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
|
+
</div>
|
|
58
|
+
<div class='status-line high'></div>
|
|
59
|
+
<pre><table class="coverage">
|
|
60
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
61
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
62
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
63
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
64
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
65
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
66
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
67
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
68
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
69
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
70
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
71
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
|
72
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
|
73
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
|
74
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
|
75
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
|
76
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
|
77
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
|
78
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
|
79
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
|
80
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
|
81
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
|
82
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
|
83
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
|
84
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
|
85
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
|
86
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
|
87
|
+
<a name='L28'></a><a href='#L28'>28</a>
|
|
88
|
+
<a name='L29'></a><a href='#L29'>29</a>
|
|
89
|
+
<a name='L30'></a><a href='#L30'>30</a>
|
|
90
|
+
<a name='L31'></a><a href='#L31'>31</a>
|
|
91
|
+
<a name='L32'></a><a href='#L32'>32</a>
|
|
92
|
+
<a name='L33'></a><a href='#L33'>33</a>
|
|
93
|
+
<a name='L34'></a><a href='#L34'>34</a>
|
|
94
|
+
<a name='L35'></a><a href='#L35'>35</a>
|
|
95
|
+
<a name='L36'></a><a href='#L36'>36</a>
|
|
96
|
+
<a name='L37'></a><a href='#L37'>37</a>
|
|
97
|
+
<a name='L38'></a><a href='#L38'>38</a>
|
|
98
|
+
<a name='L39'></a><a href='#L39'>39</a>
|
|
99
|
+
<a name='L40'></a><a href='#L40'>40</a>
|
|
100
|
+
<a name='L41'></a><a href='#L41'>41</a>
|
|
101
|
+
<a name='L42'></a><a href='#L42'>42</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
102
|
+
<span class="cline-any cline-neutral"> </span>
|
|
103
|
+
<span class="cline-any cline-neutral"> </span>
|
|
104
|
+
<span class="cline-any cline-neutral"> </span>
|
|
105
|
+
<span class="cline-any cline-neutral"> </span>
|
|
106
|
+
<span class="cline-any cline-neutral"> </span>
|
|
107
|
+
<span class="cline-any cline-neutral"> </span>
|
|
108
|
+
<span class="cline-any cline-neutral"> </span>
|
|
109
|
+
<span class="cline-any cline-neutral"> </span>
|
|
110
|
+
<span class="cline-any cline-yes">1x</span>
|
|
111
|
+
<span class="cline-any cline-yes">3x</span>
|
|
112
|
+
<span class="cline-any cline-neutral"> </span>
|
|
113
|
+
<span class="cline-any cline-neutral"> </span>
|
|
114
|
+
<span class="cline-any cline-neutral"> </span>
|
|
115
|
+
<span class="cline-any cline-neutral"> </span>
|
|
116
|
+
<span class="cline-any cline-yes">1x</span>
|
|
117
|
+
<span class="cline-any cline-neutral"> </span>
|
|
118
|
+
<span class="cline-any cline-neutral"> </span>
|
|
119
|
+
<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-yes">1x</span>
|
|
123
|
+
<span class="cline-any cline-neutral"> </span>
|
|
124
|
+
<span class="cline-any cline-neutral"> </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-yes">1x</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-yes">1x</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></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
143
|
+
import Completed from '../../../../images/svgComponents/done-24-px.svg';
|
|
144
|
+
import InProgress from '../../../../images/svgComponents/time-24-px.svg';
|
|
145
|
+
import New from '../../../../images/svgComponents/new-release-24-p.svg';
|
|
146
|
+
|
|
147
|
+
import PropTypes from 'prop-types';
|
|
148
|
+
|
|
149
|
+
import './DocumentStatus.scss';
|
|
150
|
+
|
|
151
|
+
export const DocumentStatus = ({ type }) => {
|
|
152
|
+
switch (type) {
|
|
153
|
+
case 'complete':
|
|
154
|
+
case 'downloaded':
|
|
155
|
+
case 'pdf_processing':
|
|
156
|
+
case 'pdf_generated':
|
|
157
|
+
return (
|
|
158
|
+
<div data-testid='document-status' dataclassName={`document-status --is-completed`}>
|
|
159
|
+
<img src={Completed} /> <span className={`sans-serif --small`}>Completed</span>
|
|
160
|
+
</div>
|
|
161
|
+
);
|
|
162
|
+
case 'new':
|
|
163
|
+
return (
|
|
164
|
+
<div data-testid='document-status' className={`document-status --is-new`}>
|
|
165
|
+
<img src={New} /> <span className={`sans-serif --small`}>New</span>
|
|
166
|
+
</div>
|
|
167
|
+
);
|
|
168
|
+
case 'in_progress':
|
|
169
|
+
default:
|
|
170
|
+
return (
|
|
171
|
+
<div data-testid='document-status' className={`document-status --in-progress`}>
|
|
172
|
+
<img src={InProgress}></img>
|
|
173
|
+
<span className={`sans-serif --small`}>In Progress</span>
|
|
174
|
+
</div>
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
DocumentStatus.propTypes = {
|
|
180
|
+
/** Type to document status to show */
|
|
181
|
+
type: PropTypes.string,
|
|
182
|
+
};
|
|
183
|
+
</pre></td></tr></table></pre>
|
|
184
|
+
|
|
185
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
186
|
+
</div><!-- /wrapper -->
|
|
187
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
188
|
+
Code coverage generated by
|
|
189
|
+
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
190
|
+
at Fri Jul 09 2021 09:14:09 GMT+0200 (GMT+02:00)
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
<script src="../../../prettify.js"></script>
|
|
194
|
+
<script>
|
|
195
|
+
window.onload = function () {
|
|
196
|
+
prettyPrint();
|
|
197
|
+
};
|
|
198
|
+
</script>
|
|
199
|
+
<script src="../../../sorter.js"></script>
|
|
200
|
+
<script src="../../../block-navigation.js"></script>
|
|
201
|
+
</body>
|
|
202
|
+
</html>
|
|
203
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for components/atoms/DocumentStatus</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> components/atoms/DocumentStatus</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'>6/6</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'>7/7</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'>6/6</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
|
+
</div>
|
|
58
|
+
<div class='status-line high'></div>
|
|
59
|
+
<div class="pad1">
|
|
60
|
+
<table class="coverage-summary">
|
|
61
|
+
<thead>
|
|
62
|
+
<tr>
|
|
63
|
+
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
|
64
|
+
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
|
65
|
+
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
|
66
|
+
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
67
|
+
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
|
68
|
+
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
69
|
+
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
|
70
|
+
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
71
|
+
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
|
72
|
+
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
73
|
+
</tr>
|
|
74
|
+
</thead>
|
|
75
|
+
<tbody><tr>
|
|
76
|
+
<td class="file high" data-value="DocumentStatus.js"><a href="DocumentStatus.js.html">DocumentStatus.js</a></td>
|
|
77
|
+
<td data-value="100" class="pic high">
|
|
78
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
79
|
+
</td>
|
|
80
|
+
<td data-value="100" class="pct high">100%</td>
|
|
81
|
+
<td data-value="6" class="abs high">6/6</td>
|
|
82
|
+
<td data-value="100" class="pct high">100%</td>
|
|
83
|
+
<td data-value="7" class="abs high">7/7</td>
|
|
84
|
+
<td data-value="100" class="pct high">100%</td>
|
|
85
|
+
<td data-value="1" class="abs high">1/1</td>
|
|
86
|
+
<td data-value="100" class="pct high">100%</td>
|
|
87
|
+
<td data-value="6" class="abs high">6/6</td>
|
|
88
|
+
</tr>
|
|
89
|
+
|
|
90
|
+
</tbody>
|
|
91
|
+
</table>
|
|
92
|
+
</div>
|
|
93
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
94
|
+
</div><!-- /wrapper -->
|
|
95
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
96
|
+
Code coverage generated by
|
|
97
|
+
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
98
|
+
at Fri Jul 09 2021 09:14:09 GMT+0200 (GMT+02:00)
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
<script src="../../../prettify.js"></script>
|
|
102
|
+
<script>
|
|
103
|
+
window.onload = function () {
|
|
104
|
+
prettyPrint();
|
|
105
|
+
};
|
|
106
|
+
</script>
|
|
107
|
+
<script src="../../../sorter.js"></script>
|
|
108
|
+
<script src="../../../block-navigation.js"></script>
|
|
109
|
+
</body>
|
|
110
|
+
</html>
|
|
111
|
+
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">95% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>19/20</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">94.12% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>16/17</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">100% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>4/4</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">95% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>19/20</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -102,6 +102,21 @@
|
|
|
102
102
|
<td data-value="6" class="abs high">6/6</td>
|
|
103
103
|
</tr>
|
|
104
104
|
|
|
105
|
+
<tr>
|
|
106
|
+
<td class="file high" data-value="components/atoms/DocumentStatus"><a href="components/atoms/DocumentStatus/index.html">components/atoms/DocumentStatus</a></td>
|
|
107
|
+
<td data-value="100" class="pic high">
|
|
108
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
109
|
+
</td>
|
|
110
|
+
<td data-value="100" class="pct high">100%</td>
|
|
111
|
+
<td data-value="6" class="abs high">6/6</td>
|
|
112
|
+
<td data-value="100" class="pct high">100%</td>
|
|
113
|
+
<td data-value="7" class="abs high">7/7</td>
|
|
114
|
+
<td data-value="100" class="pct high">100%</td>
|
|
115
|
+
<td data-value="1" class="abs high">1/1</td>
|
|
116
|
+
<td data-value="100" class="pct high">100%</td>
|
|
117
|
+
<td data-value="6" class="abs high">6/6</td>
|
|
118
|
+
</tr>
|
|
119
|
+
|
|
105
120
|
<tr>
|
|
106
121
|
<td class="file high" data-value="utils"><a href="utils/index.html">utils</a></td>
|
|
107
122
|
<td data-value="100" class="pic high">
|
|
@@ -125,7 +140,7 @@
|
|
|
125
140
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
126
141
|
Code coverage generated by
|
|
127
142
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
128
|
-
at
|
|
143
|
+
at Fri Jul 09 2021 09:14:09 GMT+0200 (GMT+02:00)
|
|
129
144
|
</div>
|
|
130
145
|
</div>
|
|
131
146
|
<script src="prettify.js"></script>
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
68
68
|
Code coverage generated by
|
|
69
69
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
70
|
-
at
|
|
70
|
+
at Fri Jul 09 2021 09:14:09 GMT+0200 (GMT+02:00)
|
|
71
71
|
</div>
|
|
72
72
|
</div>
|
|
73
73
|
<script src="../prettify.js"></script>
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
96
96
|
Code coverage generated by
|
|
97
97
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
98
|
-
at
|
|
98
|
+
at Fri Jul 09 2021 09:14:09 GMT+0200 (GMT+02:00)
|
|
99
99
|
</div>
|
|
100
100
|
</div>
|
|
101
101
|
<script src="../prettify.js"></script>
|
package/coverage/lcov.info
CHANGED
|
@@ -29,23 +29,47 @@ FNDA:3,(anonymous_0)
|
|
|
29
29
|
DA:7,1
|
|
30
30
|
DA:8,3
|
|
31
31
|
DA:10,3
|
|
32
|
-
DA:
|
|
33
|
-
DA:
|
|
34
|
-
DA:
|
|
32
|
+
DA:24,3
|
|
33
|
+
DA:38,3
|
|
34
|
+
DA:49,1
|
|
35
35
|
LF:6
|
|
36
36
|
LH:6
|
|
37
37
|
BRDA:10,0,0,3
|
|
38
38
|
BRDA:10,0,1,1
|
|
39
|
-
BRDA:
|
|
40
|
-
BRDA:
|
|
41
|
-
BRDA:
|
|
42
|
-
BRDA:
|
|
43
|
-
BRDA:
|
|
44
|
-
BRDA:
|
|
39
|
+
BRDA:24,1,0,3
|
|
40
|
+
BRDA:24,1,1,1
|
|
41
|
+
BRDA:42,2,0,1
|
|
42
|
+
BRDA:42,2,1,2
|
|
43
|
+
BRDA:43,3,0,3
|
|
44
|
+
BRDA:43,3,1,1
|
|
45
45
|
BRF:8
|
|
46
46
|
BRH:8
|
|
47
47
|
end_of_record
|
|
48
48
|
TN:
|
|
49
|
+
SF:src/components/atoms/DocumentStatus/DocumentStatus.js
|
|
50
|
+
FN:10,(anonymous_0)
|
|
51
|
+
FNF:1
|
|
52
|
+
FNH:1
|
|
53
|
+
FNDA:3,(anonymous_0)
|
|
54
|
+
DA:10,1
|
|
55
|
+
DA:11,3
|
|
56
|
+
DA:16,1
|
|
57
|
+
DA:22,1
|
|
58
|
+
DA:29,1
|
|
59
|
+
DA:38,1
|
|
60
|
+
LF:6
|
|
61
|
+
LH:6
|
|
62
|
+
BRDA:11,0,0,1
|
|
63
|
+
BRDA:11,0,1,1
|
|
64
|
+
BRDA:11,0,2,1
|
|
65
|
+
BRDA:11,0,3,1
|
|
66
|
+
BRDA:11,0,4,1
|
|
67
|
+
BRDA:11,0,5,1
|
|
68
|
+
BRDA:11,0,6,1
|
|
69
|
+
BRF:7
|
|
70
|
+
BRH:7
|
|
71
|
+
end_of_record
|
|
72
|
+
TN:
|
|
49
73
|
SF:src/utils/envVariables.js
|
|
50
74
|
FNF:0
|
|
51
75
|
FNH:0
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
+
<defs>
|
|
3
|
+
<path id="done" d="M5.867 10.6L3.067 7.8 2.133 8.733 5.867 12.467 13.867 4.467 12.933 3.533z"/>
|
|
4
|
+
</defs>
|
|
5
|
+
<g fill="none" fill-rule="evenodd">
|
|
6
|
+
<path d="M0 0H16V16H0z"/>
|
|
7
|
+
<mask id="done2" fill="#fff">
|
|
8
|
+
<use xlink:href="#done"/>
|
|
9
|
+
</mask>
|
|
10
|
+
<g fill="#078080" mask="url(#done2)">
|
|
11
|
+
<path d="M0 0H16V16H0z"/>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
+
<defs>
|
|
3
|
+
<path id="new-release__a" d="M15.333 7.997l-1.626-1.854.226-2.453-2.406-.547-1.26-2.12L8 1.997l-2.267-.974-1.26 2.12-2.406.54.226 2.454-1.626 1.86L2.293 9.85l-.226 2.46 2.406.547 1.26 2.12L8 13.997l2.267.973 1.26-2.12 2.406-.547-.226-2.453 1.626-1.853zm-3.006 1.406l.173 1.86-1.827.414-.953 1.606-1.72-.74-1.72.74-.953-1.606-1.827-.414.173-1.866-1.233-1.4 1.233-1.414L3.5 4.73l1.827-.407.953-1.606L8 3.45l1.72-.74.953 1.607 1.827.413-.173 1.86 1.233 1.407-1.233 1.406zm-4.994.594h1.334v1.333H7.333V9.997zm0-5.334h1.334v4H7.333v-4z"/>
|
|
4
|
+
</defs>
|
|
5
|
+
<g fill="none" fill-rule="evenodd">
|
|
6
|
+
<path d="M0 0H16V16H0z"/>
|
|
7
|
+
<mask id="new-release__b" fill="#fff">
|
|
8
|
+
<use xlink:href="#new-release__a"/>
|
|
9
|
+
</mask>
|
|
10
|
+
<g fill="#FCF4E5" mask="url(#new-release__b)">
|
|
11
|
+
<path d="M0 0H16V16H0z"/>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
+
<defs>
|
|
3
|
+
<path id="time" d="M7.993 1.333c-3.68 0-6.66 2.987-6.66 6.667 0 3.68 2.98 6.667 6.66 6.667 3.687 0 6.674-2.987 6.674-6.667 0-3.68-2.987-6.667-6.674-6.667zm.007 12c-2.947 0-5.333-2.386-5.333-5.333S5.053 2.667 8 2.667 13.333 5.053 13.333 8 10.947 13.333 8 13.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z"/>
|
|
4
|
+
</defs>
|
|
5
|
+
<g fill="none" fill-rule="evenodd">
|
|
6
|
+
<path d="M0 0H16V16H0z"/>
|
|
7
|
+
<mask id="time2" fill="#fff">
|
|
8
|
+
<use xlink:href="#time"/>
|
|
9
|
+
</mask>
|
|
10
|
+
<g fill="#936C2F" mask="url(#time2)">
|
|
11
|
+
<path d="M0 0H16V16H0z"/>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
package/jest.config.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
moduleNameMapper: {
|
|
3
|
+
'.+\\.(css|styl|less|sass|scss)$': `identity-obj-proxy`,
|
|
4
|
+
'.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': `<rootDir>/__mocks__/file-mock.js`,
|
|
5
|
+
},
|
|
6
|
+
testPathIgnorePatterns: [`node_modules`, `\\.cache`, `<rootDir>.*/public`],
|
|
7
|
+
setupFilesAfterEnv: ['<rootDir>/setupTests.js'],
|
|
8
|
+
testEnvironment: `jsdom`,
|
|
9
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-lib-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
+
"@testing-library/jest-dom": "^5.14.1",
|
|
5
6
|
"react": "^17.0.1",
|
|
6
7
|
"react-dom": "^17.0.1"
|
|
7
8
|
},
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
"@storybook/addon-essentials": "^6.1.17",
|
|
32
33
|
"@storybook/addon-links": "^6.1.17",
|
|
33
34
|
"@storybook/react": "^6.1.17",
|
|
34
|
-
"@
|
|
35
|
+
"@svgr/webpack": "^5.5.0",
|
|
35
36
|
"@testing-library/react": "^11.2.5",
|
|
36
37
|
"autoprefixer": "^10.2.4",
|
|
37
38
|
"babel-eslint": "^10.1.0",
|
|
@@ -50,7 +51,8 @@
|
|
|
50
51
|
"gatsby-link": "^2.11.0",
|
|
51
52
|
"husky": "^4.3.8",
|
|
52
53
|
"identity-obj-proxy": "^3.0.0",
|
|
53
|
-
"jest": "^
|
|
54
|
+
"jest": "^27.0.4",
|
|
55
|
+
"jest-svg-transformer": "^1.0.0",
|
|
54
56
|
"node-sass": "^5.0.0",
|
|
55
57
|
"path": "^0.12.7",
|
|
56
58
|
"postcss": "^8.2.4",
|
|
@@ -67,7 +69,7 @@
|
|
|
67
69
|
"style-loader": "^2.0.0"
|
|
68
70
|
},
|
|
69
71
|
"scripts": {
|
|
70
|
-
"start": "start-storybook -p 6006",
|
|
72
|
+
"start": "start-storybook -s ./images -p 6006",
|
|
71
73
|
"build": "rm -rf build && rollup -c",
|
|
72
74
|
"reinstall-force": "rm -f yarn.lock && rm -Rf node_modules && yarn",
|
|
73
75
|
"upgrade-patch": "yarn build && yarn reinstall-force && git add . && git commit -m \"$MSG\" && npm config set tag-version-prefix '' && npm version patch -m \"$MSG\" && git push && git push --tags",
|
|
@@ -78,7 +80,8 @@
|
|
|
78
80
|
},
|
|
79
81
|
"jest": {
|
|
80
82
|
"moduleNameMapper": {
|
|
81
|
-
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "identity-obj-proxy"
|
|
83
|
+
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "identity-obj-proxy",
|
|
84
|
+
"^.+\\.svg$": "jest-svg-transformer"
|
|
82
85
|
}
|
|
83
86
|
},
|
|
84
87
|
"main": "build/index.js"
|
package/setupTests.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|