@npm_leadtech/legal-lib-components 0.3.36 → 0.3.37

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/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ !function(e,t){for(var o in t)e[o]=t[o];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,function(){"use strict";var e={579:function(e,t,o){o.r(t),o.d(t,{Button:function(){return r}});var r="./components/atoms/Button".Button}},t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}return o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(579)}());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "0.3.36",
3
+ "version": "0.3.37",
4
4
  "dependencies": {
5
5
  "react": "^17.0.1",
6
6
  "react-dom": "^17.0.1"
@@ -23,8 +23,6 @@
23
23
  "@babel/core": "^7.12.10",
24
24
  "@babel/preset-env": "^7.12.11",
25
25
  "@babel/preset-react": "^7.12.10",
26
- "@npm_leadtech/legal-lib-components": "0.3.11",
27
- "@rollup/plugin-url": "^6.0.0",
28
26
  "@storybook/addon-actions": "^6.1.17",
29
27
  "@storybook/addon-essentials": "^6.1.17",
30
28
  "@storybook/addon-links": "^6.1.17",
@@ -51,18 +49,15 @@
51
49
  "prettier": "^2.2.1",
52
50
  "prop-types": "^15.7.2",
53
51
  "react-test-renderer": "^17.0.1",
54
- "rollup": "^2.38.4",
55
- "rollup-plugin-babel": "^4.4.0",
56
- "rollup-plugin-postcss": "^4.0.0",
57
52
  "sass-loader": "^10.1.1",
58
53
  "style-loader": "^2.0.0",
59
- "webpack": "^5.17.0",
60
- "webpack-cli": "^4.4.0",
54
+ "webpack": "^5.21.2",
55
+ "webpack-cli": "^4.5.0",
61
56
  "webpack-node-externals": "^2.5.2"
62
57
  },
63
58
  "scripts": {
64
59
  "start": "start-storybook -p 6006",
65
- "build": "NODE_ENV=production rollup -c",
60
+ "build": "webpack --config webpack.config.js",
66
61
  "reinstall-force": "rm -f yarn.lock && rm -Rf node_modules && yarn",
67
62
  "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",
68
63
  "upgrade-minor": "yarn build && yarn reinstall-force && git add . && git commit -m \"$MSG\" && npm config set tag-version-prefix '' && npm version minor -m \"$MSG\" && git push && git push --tags",
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 };