@npm_leadtech/legal-lib-components 0.3.36 → 0.3.39
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/build/index.es.js +4 -0
- package/build/index.es.js.map +1 -0
- package/build/index.js +8 -0
- package/build/index.js.map +1 -0
- package/package.json +9 -9
- package/dist/Button.js +0 -41
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../src/index.js"],"sourcesContent":["const { Button } = './components/atoms/Button';\nexport { Button };\n"],"names":[],"mappings":"AAAK,MAAC,EAAE,MAAM,EAAE,GAAG;;;;"}
|
package/build/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.js"],"sourcesContent":["const { Button } = './components/atoms/Button';\nexport { Button };\n"],"names":[],"mappings":";;;;AAAK,MAAC,EAAE,MAAM,EAAE,GAAG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-lib-components",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.39",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"react": "^17.0.1",
|
|
6
6
|
"react-dom": "^17.0.1"
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"@babel/core": "^7.12.10",
|
|
24
24
|
"@babel/preset-env": "^7.12.11",
|
|
25
25
|
"@babel/preset-react": "^7.12.10",
|
|
26
|
-
"@
|
|
26
|
+
"@rollup/plugin-commonjs": "^17.1.0",
|
|
27
|
+
"@rollup/plugin-node-resolve": "^11.1.1",
|
|
27
28
|
"@rollup/plugin-url": "^6.0.0",
|
|
28
29
|
"@storybook/addon-actions": "^6.1.17",
|
|
29
30
|
"@storybook/addon-essentials": "^6.1.17",
|
|
@@ -53,12 +54,10 @@
|
|
|
53
54
|
"react-test-renderer": "^17.0.1",
|
|
54
55
|
"rollup": "^2.38.4",
|
|
55
56
|
"rollup-plugin-babel": "^4.4.0",
|
|
57
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
56
58
|
"rollup-plugin-postcss": "^4.0.0",
|
|
57
59
|
"sass-loader": "^10.1.1",
|
|
58
|
-
"style-loader": "^2.0.0"
|
|
59
|
-
"webpack": "^5.17.0",
|
|
60
|
-
"webpack-cli": "^4.4.0",
|
|
61
|
-
"webpack-node-externals": "^2.5.2"
|
|
60
|
+
"style-loader": "^2.0.0"
|
|
62
61
|
},
|
|
63
62
|
"scripts": {
|
|
64
63
|
"start": "start-storybook -p 6006",
|
|
@@ -75,8 +74,9 @@
|
|
|
75
74
|
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "identity-obj-proxy"
|
|
76
75
|
}
|
|
77
76
|
},
|
|
77
|
+
"main": "build/index.js",
|
|
78
|
+
"module": "build/index.es.js",
|
|
78
79
|
"files": [
|
|
79
|
-
"
|
|
80
|
-
]
|
|
81
|
-
"main": "dist/index.js"
|
|
80
|
+
"build"
|
|
81
|
+
]
|
|
82
82
|
}
|
package/dist/Button.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
function styleInject(css, ref) {
|
|
4
|
-
if ( ref === void 0 ) ref = {};
|
|
5
|
-
var insertAt = ref.insertAt;
|
|
6
|
-
|
|
7
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
8
|
-
|
|
9
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
10
|
-
var style = document.createElement('style');
|
|
11
|
-
style.type = 'text/css';
|
|
12
|
-
|
|
13
|
-
if (insertAt === 'top') {
|
|
14
|
-
if (head.firstChild) {
|
|
15
|
-
head.insertBefore(style, head.firstChild);
|
|
16
|
-
} else {
|
|
17
|
-
head.appendChild(style);
|
|
18
|
-
}
|
|
19
|
-
} else {
|
|
20
|
-
head.appendChild(style);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (style.styleSheet) {
|
|
24
|
-
style.styleSheet.cssText = css;
|
|
25
|
-
} else {
|
|
26
|
-
style.appendChild(document.createTextNode(css));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
var css_248z = ".primary {\n background-color: blue;\n color: white; }\n";
|
|
31
|
-
styleInject(css_248z);
|
|
32
|
-
|
|
33
|
-
var Button = function Button(_ref) {
|
|
34
|
-
var _ref$message = _ref.message,
|
|
35
|
-
message = _ref$message === void 0 ? 'Hello world' : _ref$message;
|
|
36
|
-
return /*#__PURE__*/React.createElement("button", {
|
|
37
|
-
className: "primary"
|
|
38
|
-
}, message);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export { Button };
|