ui-beyable 1.0.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 +1 -0
- package/package.json +44 -0
- package/src/components/Button.css +3 -0
- package/src/components/Button.js +8 -0
- package/src/components/Button.tsx +18 -0
- package/src/components/ByBtn.js +7 -0
- package/src/components/ByBtn.tsx +11 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# beyableUI
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ui-beyable",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Ui library of Beyable projets",
|
|
5
|
+
"main": "src/index.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"src/**/*"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"build": "tsc"
|
|
12
|
+
},
|
|
13
|
+
"plugins": [
|
|
14
|
+
{
|
|
15
|
+
"name": "typescript-plugin-css-modules"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/BEYABLE/beyableUI.git"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"beyable"
|
|
24
|
+
],
|
|
25
|
+
"author": "Beyable",
|
|
26
|
+
"license": "ISC",
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/BEYABLE/beyableUI/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://github.com/BEYABLE/beyableUI#readme",
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
33
|
+
"@tsconfig/recommended": "^1.0.2",
|
|
34
|
+
"react": "^18.2.0",
|
|
35
|
+
"react-dom": "^18.2.0",
|
|
36
|
+
"typescript": "^5.1.3",
|
|
37
|
+
"@types/react": "^18.2.12",
|
|
38
|
+
"@types/react-dom": "^18.2.5",
|
|
39
|
+
"typescript-plugin-css-modules": "^3.4.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const Button = (props) => {
|
|
5
|
+
const { children } = props;
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("button", { children: children }));
|
|
7
|
+
};
|
|
8
|
+
exports.default = Button;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import React from "react";
|
|
3
|
+
interface IButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const Button: React.FunctionComponent<IButtonProps> = (props) => {
|
|
9
|
+
const { children } = props;
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<button >
|
|
14
|
+
{children}
|
|
15
|
+
</button>
|
|
16
|
+
)};
|
|
17
|
+
|
|
18
|
+
export default Button
|