belong-ui-lib 1.0.3 → 1.0.5

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/Button.js CHANGED
@@ -1,6 +1,7 @@
1
- import React from "react";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  var Button = function (_a) {
3
3
  var text = _a.text, onClick = _a.onClick;
4
- return (React.createElement("button", { style: { padding: "8px 16px", cursor: "pointer" }, onClick: onClick }, text));
4
+ console.log(11111);
5
+ return (_jsx("button", { style: { padding: "8px 16px", cursor: "pointer" }, onClick: onClick, children: text }));
5
6
  };
6
7
  export default Button;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "belong-ui-lib",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "belong-ui-lib",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,13 +8,11 @@
8
8
  "scripts": {
9
9
  "build": "tsc"
10
10
  },
11
- "dependencies": {
12
- "react": "^19.2.3",
13
- "react-dom": "^19.2.3"
14
- },
15
11
  "devDependencies": {
16
- "@types/react": "^19.2.7",
17
- "@types/react-dom": "^19.2.3",
12
+ "react": "^18.2.0",
13
+ "react-dom": "^18.2.0",
14
+ "@types/react": "^18.0.0",
15
+ "@types/react-dom": "^18.0.0",
18
16
  "typescript": "^5.9.3"
19
17
  },
20
18
  "peerDependencies": {
package/src/Button.tsx CHANGED
@@ -6,6 +6,7 @@ export interface ButtonProps {
6
6
  }
7
7
 
8
8
  const Button: React.FC<ButtonProps> = ({ text, onClick }) => {
9
+ console.log(11111);
9
10
  return (
10
11
  <button
11
12
  style={{ padding: "8px 16px", cursor: "pointer" }}
package/tsconfig.json CHANGED
@@ -7,7 +7,12 @@
7
7
  "outDir": "dist",
8
8
  "esModuleInterop": true,
9
9
  "allowSyntheticDefaultImports": true,
10
- "skipLibCheck": true
10
+ "skipLibCheck": true,
11
+ "types": [
12
+ "react",
13
+ "react-dom"
14
+ ],
15
+ "moduleResolution": "node"
11
16
  },
12
17
  "include": [
13
18
  "src"
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES5",
4
- "module": "ESNext",
5
- "jsx": "react-jsx",
6
- "declaration": true,
7
- "outDir": "dist",
8
- "esModuleInterop": true,
9
- "allowSyntheticDefaultImports": true,
10
- "skipLibCheck": true
11
- },
12
- "include": [
13
- "src"
14
- ]
15
- }