@npm_leadtech/legal-lib-components 0.29.0 → 0.32.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.
Files changed (42) hide show
  1. package/build/index.js +1 -1
  2. package/coverage/clover.xml +19 -9
  3. package/coverage/coverage-final.json +2 -1
  4. package/coverage/lcov-report/components/atoms/AddButton/AddButton.js.html +1 -1
  5. package/coverage/lcov-report/components/atoms/AddButton/index.html +1 -1
  6. package/coverage/lcov-report/components/atoms/Button/Button.js.html +1 -1
  7. package/coverage/lcov-report/components/atoms/Button/index.html +1 -1
  8. package/coverage/lcov-report/components/atoms/CardPane/CardPane.js.html +1 -1
  9. package/coverage/lcov-report/components/atoms/CardPane/index.html +1 -1
  10. package/coverage/lcov-report/components/atoms/Checkbox/Checkbox.js.html +1 -1
  11. package/coverage/lcov-report/components/atoms/Checkbox/index.html +1 -1
  12. package/coverage/lcov-report/components/atoms/Disclaimer/Disclaimer.js.html +1 -1
  13. package/coverage/lcov-report/components/atoms/Disclaimer/index.html +1 -1
  14. package/coverage/lcov-report/components/atoms/DocumentStatus/DocumentStatus.js.html +1 -1
  15. package/coverage/lcov-report/components/atoms/DocumentStatus/index.html +1 -1
  16. package/coverage/lcov-report/components/atoms/FormFaq/FormFaq.js.html +1 -1
  17. package/coverage/lcov-report/components/atoms/FormFaq/index.html +1 -1
  18. package/coverage/lcov-report/components/atoms/InfoBox/InfoBox.js.html +1 -1
  19. package/coverage/lcov-report/components/atoms/InfoBox/index.html +1 -1
  20. package/coverage/lcov-report/components/atoms/LogoText/LogoText.js.html +1 -1
  21. package/coverage/lcov-report/components/atoms/LogoText/index.html +1 -1
  22. package/coverage/lcov-report/components/atoms/Message/Message.js.html +1 -1
  23. package/coverage/lcov-report/components/atoms/Message/index.html +1 -1
  24. package/coverage/lcov-report/components/atoms/ProgressBar/ProgressBar.js.html +142 -0
  25. package/coverage/lcov-report/components/atoms/ProgressBar/index.html +116 -0
  26. package/coverage/lcov-report/components/atoms/RemoveButton/RemoveButton.js.html +1 -1
  27. package/coverage/lcov-report/components/atoms/RemoveButton/index.html +1 -1
  28. package/coverage/lcov-report/components/atoms/SearchSelect/SearchSelect.js.html +1 -1
  29. package/coverage/lcov-report/components/atoms/SearchSelect/index.html +1 -1
  30. package/coverage/lcov-report/components/atoms/Toggle/Toggle.js.html +1 -1
  31. package/coverage/lcov-report/components/atoms/Toggle/index.html +1 -1
  32. package/coverage/lcov-report/index.html +27 -12
  33. package/coverage/lcov-report/utils/envVariables.js.html +1 -1
  34. package/coverage/lcov-report/utils/index.html +1 -1
  35. package/coverage/lcov.info +23 -6
  36. package/package.json +6 -10
  37. package/build/static/media/images/png/buy-logo-large-en.png +0 -0
  38. package/build/static/media/images/svg/done_24px_outlined.svg +0 -20
  39. package/build/static/media/images/svg/expand_dropdown_24px.svg +0 -23
  40. package/build/static/media/images/svg/info-error_24px_outlined.svg +0 -15
  41. package/images/png/buy-logo-large-en.png +0 -0
  42. package/webpack.config.js +0 -46
@@ -214,7 +214,7 @@ RemoveButton.propTypes = {
214
214
  <div class='footer quiet pad2 space-top1 center small'>
215
215
  Code coverage generated by
216
216
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
217
- at Thu Dec 30 2021 14:56:58 GMT+0100 (GMT+01:00)
217
+ at Mon Jan 03 2022 17:26:56 GMT+0100 (GMT+01:00)
218
218
  </div>
219
219
  <script src="../../../prettify.js"></script>
220
220
  <script>
@@ -101,7 +101,7 @@
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
103
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
104
- at Thu Dec 30 2021 14:56:58 GMT+0100 (GMT+01:00)
104
+ at Mon Jan 03 2022 17:26:56 GMT+0100 (GMT+01:00)
105
105
  </div>
106
106
  <script src="../../../prettify.js"></script>
107
107
  <script>
@@ -367,7 +367,7 @@ SearchSelect.propTypes = {
367
367
  <div class='footer quiet pad2 space-top1 center small'>
368
368
  Code coverage generated by
369
369
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
370
- at Thu Dec 30 2021 14:56:58 GMT+0100 (GMT+01:00)
370
+ at Mon Jan 03 2022 17:26:56 GMT+0100 (GMT+01:00)
371
371
  </div>
372
372
  <script src="../../../prettify.js"></script>
373
373
  <script>
@@ -101,7 +101,7 @@
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
103
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
104
- at Thu Dec 30 2021 14:56:58 GMT+0100 (GMT+01:00)
104
+ at Mon Jan 03 2022 17:26:56 GMT+0100 (GMT+01:00)
105
105
  </div>
106
106
  <script src="../../../prettify.js"></script>
107
107
  <script>
@@ -148,7 +148,7 @@ Toggle.propTypes = {
148
148
  <div class='footer quiet pad2 space-top1 center small'>
149
149
  Code coverage generated by
150
150
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
151
- at Thu Dec 30 2021 14:56:58 GMT+0100 (GMT+01:00)
151
+ at Mon Jan 03 2022 17:26:56 GMT+0100 (GMT+01:00)
152
152
  </div>
153
153
  <script src="../../../prettify.js"></script>
154
154
  <script>
@@ -101,7 +101,7 @@
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
103
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
104
- at Thu Dec 30 2021 14:56:58 GMT+0100 (GMT+01:00)
104
+ at Mon Jan 03 2022 17:26:56 GMT+0100 (GMT+01:00)
105
105
  </div>
106
106
  <script src="../../../prettify.js"></script>
107
107
  <script>
@@ -23,30 +23,30 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">89.81% </span>
26
+ <span class="strong">90.17% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>97/108</span>
28
+ <span class='fraction'>101/112</span>
29
29
  </div>
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
- <span class="strong">68.03% </span>
33
+ <span class="strong">68.54% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>83/122</span>
35
+ <span class='fraction'>85/124</span>
36
36
  </div>
37
37
 
38
38
 
39
39
  <div class='fl pad1y space-right2'>
40
- <span class="strong">85.71% </span>
40
+ <span class="strong">86.36% </span>
41
41
  <span class="quiet">Functions</span>
42
- <span class='fraction'>18/21</span>
42
+ <span class='fraction'>19/22</span>
43
43
  </div>
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">90.56% </span>
47
+ <span class="strong">90.9% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>96/106</span>
49
+ <span class='fraction'>100/110</span>
50
50
  </div>
51
51
 
52
52
 
@@ -183,6 +183,21 @@
183
183
  <td data-value="13" class="abs medium">10/13</td>
184
184
  </tr>
185
185
 
186
+ <tr>
187
+ <td class="file high" data-value="components/atoms/InfoBox"><a href="components/atoms/InfoBox/index.html">components/atoms/InfoBox</a></td>
188
+ <td data-value="100" class="pic high">
189
+ <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
190
+ </td>
191
+ <td data-value="100" class="pct high">100%</td>
192
+ <td data-value="3" class="abs high">3/3</td>
193
+ <td data-value="100" class="pct high">100%</td>
194
+ <td data-value="2" class="abs high">2/2</td>
195
+ <td data-value="100" class="pct high">100%</td>
196
+ <td data-value="1" class="abs high">1/1</td>
197
+ <td data-value="100" class="pct high">100%</td>
198
+ <td data-value="3" class="abs high">3/3</td>
199
+ </tr>
200
+
186
201
  <tr>
187
202
  <td class="file high" data-value="components/atoms/LogoText"><a href="components/atoms/LogoText/index.html">components/atoms/LogoText</a></td>
188
203
  <td data-value="100" class="pic high">
@@ -214,18 +229,18 @@
214
229
  </tr>
215
230
 
216
231
  <tr>
217
- <td class="file high" data-value="components/atoms/PaypalButton"><a href="components/atoms/PaypalButton/index.html">components/atoms/PaypalButton</a></td>
232
+ <td class="file high" data-value="components/atoms/ProgressBar"><a href="components/atoms/ProgressBar/index.html">components/atoms/ProgressBar</a></td>
218
233
  <td data-value="100" class="pic high">
219
234
  <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
220
235
  </td>
221
236
  <td data-value="100" class="pct high">100%</td>
222
- <td data-value="3" class="abs high">3/3</td>
237
+ <td data-value="4" class="abs high">4/4</td>
223
238
  <td data-value="100" class="pct high">100%</td>
224
239
  <td data-value="0" class="abs high">0/0</td>
225
240
  <td data-value="100" class="pct high">100%</td>
226
241
  <td data-value="1" class="abs high">1/1</td>
227
242
  <td data-value="100" class="pct high">100%</td>
228
- <td data-value="3" class="abs high">3/3</td>
243
+ <td data-value="4" class="abs high">4/4</td>
229
244
  </tr>
230
245
 
231
246
  <tr>
@@ -296,7 +311,7 @@
296
311
  <div class='footer quiet pad2 space-top1 center small'>
297
312
  Code coverage generated by
298
313
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
299
- at Thu Dec 30 2021 14:56:58 GMT+0100 (GMT+01:00)
314
+ at Mon Jan 03 2022 17:26:56 GMT+0100 (GMT+01:00)
300
315
  </div>
301
316
  <script src="prettify.js"></script>
302
317
  <script>
@@ -73,7 +73,7 @@
73
73
  <div class='footer quiet pad2 space-top1 center small'>
74
74
  Code coverage generated by
75
75
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
76
- at Thu Dec 30 2021 14:56:58 GMT+0100 (GMT+01:00)
76
+ at Mon Jan 03 2022 17:26:56 GMT+0100 (GMT+01:00)
77
77
  </div>
78
78
  <script src="../prettify.js"></script>
79
79
  <script>
@@ -101,7 +101,7 @@
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
103
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
104
- at Thu Dec 30 2021 14:56:58 GMT+0100 (GMT+01:00)
104
+ at Mon Jan 03 2022 17:26:56 GMT+0100 (GMT+01:00)
105
105
  </div>
106
106
  <script src="../prettify.js"></script>
107
107
  <script>
@@ -239,6 +239,22 @@ BRF:15
239
239
  BRH:7
240
240
  end_of_record
241
241
  TN:
242
+ SF:src/components/atoms/InfoBox/InfoBox.js
243
+ FN:6,(anonymous_0)
244
+ FNF:1
245
+ FNH:1
246
+ FNDA:4,(anonymous_0)
247
+ DA:6,1
248
+ DA:7,4
249
+ DA:19,1
250
+ LF:3
251
+ LH:3
252
+ BRDA:9,0,0,4
253
+ BRDA:9,0,1,3
254
+ BRF:2
255
+ BRH:2
256
+ end_of_record
257
+ TN:
242
258
  SF:src/components/atoms/LogoText/LogoText.js
243
259
  FN:6,(anonymous_0)
244
260
  FNF:1
@@ -269,16 +285,17 @@ BRF:0
269
285
  BRH:0
270
286
  end_of_record
271
287
  TN:
272
- SF:src/components/atoms/PaypalButton/PaypalButton.js
273
- FN:6,(anonymous_0)
288
+ SF:src/components/atoms/ProgressBar/ProgressBar.js
289
+ FN:5,(anonymous_0)
274
290
  FNF:1
275
291
  FNH:1
276
292
  FNDA:1,(anonymous_0)
293
+ DA:5,1
277
294
  DA:6,1
278
- DA:7,1
279
- DA:14,1
280
- LF:3
281
- LH:3
295
+ DA:8,1
296
+ DA:16,1
297
+ LF:4
298
+ LH:4
282
299
  BRF:0
283
300
  BRH:0
284
301
  end_of_record
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "0.29.0",
3
+ "version": "0.32.0",
4
4
  "dependencies": {
5
5
  "@testing-library/jest-dom": "^5.14.1",
6
6
  "postcss-url": "^10.1.3",
@@ -27,7 +27,6 @@
27
27
  "@babel/preset-react": "^7.12.13",
28
28
  "@rollup/plugin-babel": "^5.2.3",
29
29
  "@rollup/plugin-commonjs": "^17.1.0",
30
- "@rollup/plugin-image": "^2.1.1",
31
30
  "@rollup/plugin-node-resolve": "^11.1.1",
32
31
  "@rollup/plugin-url": "^6.0.0",
33
32
  "@storybook/addon-actions": "^6.1.17",
@@ -63,8 +62,6 @@
63
62
  "postcss-loader": "^5.0.0",
64
63
  "prettier": "^2.2.1",
65
64
  "prop-types": "^15.7.2",
66
- "react": "^16.12.0",
67
- "react-dom": "^16.12.0",
68
65
  "react-test-renderer": "^17.0.1",
69
66
  "rollup": "^2.39.0",
70
67
  "rollup-plugin-babel": "^4.4.0",
@@ -73,8 +70,8 @@
73
70
  "rollup-plugin-uglify": "^6.0.4",
74
71
  "sass-loader": "10.1.1",
75
72
  "style-loader": "^2.0.0",
76
- "webpack-cli": "^4.9.1",
77
- "webpack-node-externals": "^3.0.0"
73
+ "react": "^16.12.0",
74
+ "react-dom": "^16.12.0"
78
75
  },
79
76
  "peerDependencies": {
80
77
  "react": "^16.12.0",
@@ -83,11 +80,10 @@
83
80
  "scripts": {
84
81
  "start": "start-storybook -p 6006",
85
82
  "build": "rm -rf build && rollup -c",
86
- "build-webpack": "rm -rf build && webpack --mode=production",
87
83
  "reinstall-force": "rm -Rf node_modules && yarn",
88
- "upgrade-patch": "yarn build-webpack && yarn reinstall-force && git add . && git commit -m \"$MSG\" && npm config set tag-version-prefix '' && npm version patch -m \"Update patch version number\" && git push && git push --tags",
89
- "upgrade-minor": "yarn build-webpack && yarn reinstall-force && git add . && git commit -m \"$MSG\" && npm config set tag-version-prefix '' && npm version minor -m \"Update minor version number\" && git push && git push --tags",
90
- "upgrade-major": "yarn build-webpack && yarn reinstall-force && git add . && git commit -m \"$MSG\" && npm config set tag-version-prefix '' && npm version major -m \"Update major version number\" && git push && git push --tags",
84
+ "upgrade-patch": "yarn build && yarn reinstall-force && git add . && git commit -m \"$MSG\" && npm config set tag-version-prefix '' && npm version patch -m \"Update patch version number\" && git push && git push --tags",
85
+ "upgrade-minor": "yarn build && yarn reinstall-force && git add . && git commit -m \"$MSG\" && npm config set tag-version-prefix '' && npm version minor -m \"Update minor version number\" && git push && git push --tags",
86
+ "upgrade-major": "yarn build && yarn reinstall-force && git add . && git commit -m \"$MSG\" && npm config set tag-version-prefix '' && npm version major -m \"Update major version number\" && git push && git push --tags",
91
87
  "format": "prettier --write \"**/*.(js|jsx|json|md)\"",
92
88
  "test": "jest --coverage"
93
89
  },
@@ -1,20 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: sketchtool 60 (101010) - https://sketch.com -->
4
- <title>A726BA30-305F-468D-ADB2-E35785BB1EB9_outlined</title>
5
- <desc>Created with sketchtool.</desc>
6
- <defs>
7
- <polygon id="path-1" points="5.86666678 10.5999999 3.06666672 7.80000001 2.13333337 8.73333331 5.86666678 12.4666665 13.866667 4.46666677 12.9333336 3.53333346"></polygon>
8
- </defs>
9
- <g id="Asset-Artboard-Page" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
10
- <g id="icon/done_24px">
11
- <mask id="mask-2" fill="white">
12
- <use xlink:href="#path-1"></use>
13
- </mask>
14
- <g id="icon/action/done_24px" fill-rule="nonzero"></g>
15
- <g id="↳-Color-Color-/-Icons-/-Neutrals-/-White" mask="url(#mask-2)" fill="#05646E">
16
- <rect id="Rectangle" x="0" y="0" width="16" height="16"></rect>
17
- </g>
18
- </g>
19
- </g>
20
- </svg>
@@ -1,23 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="8px" height="20px" viewBox="0 0 8 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: sketchtool 63.1 (101010) - https://sketch.com -->
4
- <title>57CA73BF-61CC-46FF-8A9B-C333E41AFC30</title>
5
- <desc>Created with sketchtool.</desc>
6
- <defs>
7
- <path d="M15.06,16.295 L16,17.235 L12,21.235 L8,17.235 L8.94,16.295 L12,19.3483333 L15.06,16.295 Z M12,2.295 L16,6.295 L15.06,7.235 L12,4.18166667 L8.94,7.235 L8,6.295 L12,2.295 Z" id="path-1"></path>
8
- </defs>
9
- <g id="UI-Style-Guide---LD" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
10
- <g id="UI-Style-Guide---LawDistrict-02" transform="translate(-761.000000, -966.000000)">
11
- <g id="icon/expand_dropdown_24px" transform="translate(753.000000, 964.000000)">
12
- <rect id="Bound" x="0" y="0" width="24" height="24"></rect>
13
- <mask id="mask-2" fill="white">
14
- <use xlink:href="#path-1"></use>
15
- </mask>
16
- <g id="Combined-Shape" fill-rule="nonzero"></g>
17
- <g id="↳-Color" mask="url(#mask-2)" fill="#1E2021">
18
- <rect id="Rectangle" x="0" y="0" width="24" height="24"></rect>
19
- </g>
20
- </g>
21
- </g>
22
- </g>
23
- </svg>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
4
- <title>icon/info-error_24px_outlined</title>
5
- <desc>Created with Sketch.</desc>
6
- <defs>
7
- <path d="M12,2 C6.47,2 2,6.47 2,12 C2,17.53 6.47,22 12,22 C17.53,22 22,17.53 22,12 C22,6.47 17.53,2 12,2 Z M12,20 C7.59,20 4,16.41 4,12 C4,7.59 7.59,4 12,4 C16.41,4 20,7.59 20,12 C20,16.41 16.41,20 12,20 Z M11,11 L13,11 L13,17 L11,17 L11,11 Z M11,7 L13,7 L13,9 L11,9 L11,7 Z" id="path-1"></path>
8
- </defs>
9
- <g id="icon/info-error_24px" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
10
- <mask id="mask-2" fill="white">
11
- <use xlink:href="#path-1"></use>
12
- </mask>
13
- <use id="icon/navigation/cancel_24px" fill="#D63737" fill-rule="nonzero" xlink:href="#path-1"></use>
14
- </g>
15
- </svg>
Binary file
package/webpack.config.js DELETED
@@ -1,46 +0,0 @@
1
- const path = require('path');
2
- const { CleanWebpackPlugin } = require('clean-webpack-plugin');
3
- const nodeExternals = require('webpack-node-externals');
4
- module.exports = {
5
- mode: 'production',
6
- entry: './src/index.js',
7
- externals: [nodeExternals()],
8
- output: {
9
- filename: 'index.js',
10
- path: path.resolve(__dirname, 'build'),
11
- library: '',
12
- libraryTarget: 'commonjs',
13
- },
14
- plugins: [new CleanWebpackPlugin()],
15
- module: {
16
- rules: [
17
- {
18
- test: /\.(js|jsx)$/,
19
- exclude: /node_modules/,
20
- use: ['babel-loader'],
21
- },
22
- {
23
- test: /\.(ico|jpg|jpeg|png|apng|gif|eot|otf|webp|ttf|woff|woff2|cur|ani|pdf)(\?.*)?$/,
24
- loader: 'file-loader',
25
- options: { esModule: false, name: 'static/media/[path][name].[ext]' },
26
- },
27
- {
28
- test: /\.svg$/,
29
- include: [path.resolve(__dirname, './images/svg')],
30
- loader: 'file-loader',
31
- options: { esModule: false, name: 'static/media/[path][name].[ext]' },
32
- },
33
- {
34
- test: /\.svg$/,
35
- include: [path.resolve(__dirname, './images/componentsSvg')],
36
- enforce: 'pre',
37
- loader: require.resolve('@svgr/webpack'),
38
- },
39
- {
40
- test: /\.scss$/,
41
- use: ['style-loader', 'css-loader', 'sass-loader'],
42
- include: path.resolve(__dirname, './src'),
43
- },
44
- ],
45
- },
46
- };