bitys-react-components 0.1.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/README.md +2 -0
- package/dist/ErrorComponent.js +50 -0
- package/dist/index.js +13 -0
- package/package.json +33 -0
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
var ErrorComponent = function ErrorComponent(_ref) {
|
|
11
|
+
var error = _ref.error,
|
|
12
|
+
description = _ref.description;
|
|
13
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
14
|
+
style: styles.root
|
|
15
|
+
}, /*#__PURE__*/_react["default"].createElement("h2", {
|
|
16
|
+
style: styles.error
|
|
17
|
+
}, error), /*#__PURE__*/_react["default"].createElement("h4", {
|
|
18
|
+
style: styles.description
|
|
19
|
+
}, description));
|
|
20
|
+
};
|
|
21
|
+
var styles = {
|
|
22
|
+
root: {
|
|
23
|
+
display: "flex",
|
|
24
|
+
width: "100%",
|
|
25
|
+
height: "100%",
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
justifyContent: "center",
|
|
28
|
+
flexDirection: "column",
|
|
29
|
+
padding: "0 30%",
|
|
30
|
+
boxSizing: "border-box",
|
|
31
|
+
textAlign: "center",
|
|
32
|
+
backgroundColor: "#EAEAEA",
|
|
33
|
+
fontFamily: "arial"
|
|
34
|
+
},
|
|
35
|
+
error: {
|
|
36
|
+
fontSize: 100,
|
|
37
|
+
fontWeight: 700,
|
|
38
|
+
margin: 0
|
|
39
|
+
},
|
|
40
|
+
description: {
|
|
41
|
+
fontSize: 40,
|
|
42
|
+
fontWeight: 100,
|
|
43
|
+
margin: 0
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
ErrorComponent.propTypes = {
|
|
47
|
+
error: _propTypes["default"].number,
|
|
48
|
+
description: _propTypes["default"].string
|
|
49
|
+
};
|
|
50
|
+
var _default = exports["default"] = ErrorComponent;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _ErrorComponent["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _ErrorComponent = _interopRequireDefault(require("./ErrorComponent"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bitys-react-components",
|
|
3
|
+
"description": "",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"private": false,
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"start": "webpack serve --progress --hot --port 8080",
|
|
14
|
+
"build": "cross-env NODE_ENV=production babel src --out-dir dist"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"prop-types": "^15.8.1",
|
|
18
|
+
"react": "^18.3.1",
|
|
19
|
+
"react-dom": "^18.3.1"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@babel/cli": "^7.24.8",
|
|
23
|
+
"@babel/core": "^7.24.9",
|
|
24
|
+
"@babel/preset-env": "^7.24.8",
|
|
25
|
+
"@babel/preset-react": "^7.24.7",
|
|
26
|
+
"babel-loader": "^9.1.3",
|
|
27
|
+
"cross-env": "^7.0.3",
|
|
28
|
+
"html-webpack-plugin": "^5.6.0",
|
|
29
|
+
"webpack": "^5.93.0",
|
|
30
|
+
"webpack-cli": "^5.1.4",
|
|
31
|
+
"webpack-dev-server": "^5.0.4"
|
|
32
|
+
}
|
|
33
|
+
}
|