@npm_leadtech/legal-lib-components 0.5.9 → 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/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
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';
|