@xipkg/button 0.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/Button.tsx ADDED
@@ -0,0 +1,8 @@
1
+ import { ComponentProps } from 'react';
2
+
3
+ export type ButtonProps = {} & ComponentProps<'button'>;
4
+
5
+ export const Button = ({ type = 'button' }: ButtonProps) => {
6
+ console.log('Button');
7
+ return <button type={type}>Button</button>;
8
+ };
package/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { Button } from './Button';
2
+ export type { ButtonProps } from './Button';
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@xipkg/button",
3
+ "version": "0.0.0",
4
+ "main": "./dist/index.js",
5
+ "types": "./dist/index.d.ts",
6
+ "license": "MIT",
7
+ "scripts": {
8
+ "build": "tsup index.ts --format cjs --dts",
9
+ "start": "npm run build -- --watch",
10
+ "dev": "npm run build -- --watch",
11
+ "lint": "eslint \"**/*.ts*\""
12
+ },
13
+ "dependencies": {
14
+ "@xipkg/icons": "^0.3.0",
15
+ "@emotion/react": "^11.11.1",
16
+ "@emotion/styled": "^11.11.0",
17
+ "@mui/material": "^5.14.0",
18
+ "react": "^18.2.0"
19
+ },
20
+ "devDependencies": {
21
+ "@types/node": "^17.0.12",
22
+ "@types/react": "^18.2.14",
23
+ "@types/react-dom": "^18.2.6",
24
+ "@xipkg/typescript": "^0.0.0",
25
+ "@xipkg/eslint": "^0.0.0",
26
+ "eslint": "^7.32.0",
27
+ "typescript": "^5.1.3"
28
+ },
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "author": "xi.effect",
33
+ "description": ""
34
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "@xipkg/typescript/react-library.json",
3
+ "include": ["*"],
4
+ "exclude": ["dist", "build", "node_modules"]
5
+ }
6
+