hwasa-package-ui 0.0.1

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,9 @@
1
+ import * as react from 'react';
2
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
3
+
4
+ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
5
+ children: ReactNode;
6
+ }
7
+ declare function Button({ children, ...props }: ButtonProps): react.JSX.Element;
8
+
9
+ export { Button, type ButtonProps };
@@ -0,0 +1,9 @@
1
+ import * as react from 'react';
2
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
3
+
4
+ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
5
+ children: ReactNode;
6
+ }
7
+ declare function Button({ children, ...props }: ButtonProps): react.JSX.Element;
8
+
9
+ export { Button, type ButtonProps };
package/dist/index.js ADDED
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ Button: () => Button
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+
27
+ // src/Button.tsx
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ function Button({ children, ...props }) {
30
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { type: "button", ...props, children });
31
+ }
32
+ // Annotate the CommonJS export names for ESM import in node:
33
+ 0 && (module.exports = {
34
+ Button
35
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,8 @@
1
+ // src/Button.tsx
2
+ import { jsx } from "react/jsx-runtime";
3
+ function Button({ children, ...props }) {
4
+ return /* @__PURE__ */ jsx("button", { type: "button", ...props, children });
5
+ }
6
+ export {
7
+ Button
8
+ };
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "hwasa-package-ui",
3
+ "version": "0.0.1",
4
+ "description": "Pacote simples com componente Button para teste de publicação no npm",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "scripts": {
19
+ "build": "tsup src/index.ts --format cjs,esm --dts --external react",
20
+ "prepublishOnly": "npm run build"
21
+ },
22
+ "keywords": [
23
+ "react",
24
+ "button",
25
+ "ui"
26
+ ],
27
+ "author": "",
28
+ "license": "MIT",
29
+ "peerDependencies": {
30
+ "react": ">=17"
31
+ },
32
+ "devDependencies": {
33
+ "@types/react": "^19.1.8",
34
+ "react": "^19.1.0",
35
+ "tsup": "^8.5.0",
36
+ "typescript": "^5.8.3"
37
+ }
38
+ }