@williamggv/williamggv 1.0.2 → 1.0.4

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.
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ interface ButtonProps {
3
+ label: string;
4
+ className?: string;
5
+ }
6
+ declare const Button: React.FC<ButtonProps>;
7
+ export default Button;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Button as AntButton } from "antd";
3
+ const Button = ({ label, className = "" }) => {
4
+ return (_jsx(AntButton, { className: className, type: "primary", children: label }));
5
+ };
6
+ export default Button;
@@ -0,0 +1 @@
1
+ export { default } from './Button';
@@ -0,0 +1 @@
1
+ export { default } from './Button';
@@ -0,0 +1 @@
1
+ export { default as Button } from './components/Button';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { default as Button } from './components/Button';
package/package.json CHANGED
@@ -1,28 +1,23 @@
1
1
  {
2
2
  "name": "@williamggv/williamggv",
3
- "version": "1.0.2",
4
- "description": "",
3
+ "version": "1.0.4",
5
4
  "main": "dist/index.js",
5
+ "module": "dist/index.js",
6
+ "types": "dist/index.d.ts",
6
7
  "scripts": {
7
8
  "build": "tsc"
8
9
  },
9
- "files": [
10
- "dist",
11
- "src/components",
12
- "src/styles"
13
- ],
14
- "keywords": [],
15
- "author": "",
16
- "license": "ISC",
17
- "type": "module",
18
- "devDependencies": {
19
- "@types/react": "^19.2.9",
20
- "@types/react-dom": "^19.2.3",
21
- "typescript": "^5.9.3"
22
- },
23
10
  "peerDependencies": {
24
11
  "react": ">=18.0.0",
25
12
  "react-dom": ">=18.0.0",
26
13
  "antd": "^6.2.1"
14
+ },
15
+ "dependencies": {
16
+ "antd": "^6.2.1"
17
+ },
18
+ "devDependencies": {
19
+ "typescript": "^5.9.3",
20
+ "@types/react": "^18.2.15",
21
+ "@types/react-dom": "^18.2.7"
27
22
  }
28
23
  }
@@ -1,15 +1,14 @@
1
1
  import React from "react";
2
2
  import { Button as AntButton } from "antd";
3
- import "../../styles/index.css";
4
3
 
5
4
  interface ButtonProps {
6
5
  label: string;
7
- className?: string; // Permitimos que se le pasen clases de Tailwind
6
+ className?: string;
8
7
  }
9
8
 
10
9
  const Button: React.FC<ButtonProps> = ({ label, className = "" }) => {
11
10
  return (
12
- <AntButton className={`${className} rounded-lg`} type="primary">
11
+ <AntButton className={className} type="primary">
13
12
  {label}
14
13
  </AntButton>
15
14
  );
@@ -1 +1 @@
1
- export { default } from './Button'
1
+ export { default } from './Button';
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { default as Button } from './components/Button';
package/tsconfig.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "dist",
4
+ "declaration": true,
5
+ "declarationDir": "dist",
6
+ "module": "ESNext",
7
+ "target": "ES6",
8
+ "moduleResolution": "Node",
9
+ "jsx": "react-jsx",
10
+ "esModuleInterop": true,
11
+ "strict": true,
12
+ "skipLibCheck": true
13
+ },
14
+ "include": ["src/**/*"]
15
+ }