umayer-say-hello-function 0.0.2 → 0.0.3

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/index.cjs CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ Button: () => Button,
23
24
  syaHello: () => syaHello
24
25
  });
25
26
  module.exports = __toCommonJS(index_exports);
@@ -34,7 +35,14 @@ function syaHello({ firstName, lastName, age }) {
34
35
  console.log(`Your age is ${age}`);
35
36
  }
36
37
  }
38
+
39
+ // src/components/Button.tsx
40
+ var import_jsx_runtime = require("react/jsx-runtime");
41
+ var Button = ({ children }) => {
42
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "bg-blue-500 text-white px-4 py-2 rounded", children });
43
+ };
37
44
  // Annotate the CommonJS export names for ESM import in node:
38
45
  0 && (module.exports = {
46
+ Button,
39
47
  syaHello
40
48
  });
package/dist/index.d.cts CHANGED
@@ -1,3 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+
1
4
  type SayHelloProps = {
2
5
  firstName: string;
3
6
  lastName?: string;
@@ -6,4 +9,9 @@ type SayHelloProps = {
6
9
 
7
10
  declare function syaHello({ firstName, lastName, age }: SayHelloProps): void;
8
11
 
9
- export { type SayHelloProps, syaHello };
12
+ type ButtonProps = {
13
+ children: React.ReactNode;
14
+ };
15
+ declare const Button: ({ children }: ButtonProps) => react_jsx_runtime.JSX.Element;
16
+
17
+ export { Button, type SayHelloProps, syaHello };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+
1
4
  type SayHelloProps = {
2
5
  firstName: string;
3
6
  lastName?: string;
@@ -6,4 +9,9 @@ type SayHelloProps = {
6
9
 
7
10
  declare function syaHello({ firstName, lastName, age }: SayHelloProps): void;
8
11
 
9
- export { type SayHelloProps, syaHello };
12
+ type ButtonProps = {
13
+ children: React.ReactNode;
14
+ };
15
+ declare const Button: ({ children }: ButtonProps) => react_jsx_runtime.JSX.Element;
16
+
17
+ export { Button, type SayHelloProps, syaHello };
package/dist/index.js CHANGED
@@ -8,6 +8,13 @@ function syaHello({ firstName, lastName, age }) {
8
8
  console.log(`Your age is ${age}`);
9
9
  }
10
10
  }
11
+
12
+ // src/components/Button.tsx
13
+ import { jsx } from "react/jsx-runtime";
14
+ var Button = ({ children }) => {
15
+ return /* @__PURE__ */ jsx("button", { className: "bg-blue-500 text-white px-4 py-2 rounded", children });
16
+ };
11
17
  export {
18
+ Button,
12
19
  syaHello
13
20
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "umayer-say-hello-function",
3
3
  "description": "Just a test package",
4
- "version": "0.0.2",
4
+ "version": "0.0.3",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
@@ -16,7 +16,16 @@
16
16
  "license": "MIT",
17
17
  "type": "module",
18
18
  "devDependencies": {
19
+ "@types/react": "^19.2.14",
20
+ "@types/react-dom": "^19.2.3",
21
+ "autoprefixer": "^10.4.27",
22
+ "postcss": "^8.5.9",
23
+ "tailwindcss": "^3.4.3",
19
24
  "tsup": "^8.5.1",
20
25
  "typescript": "^6.0.2"
26
+ },
27
+ "dependencies": {
28
+ "react": "^19.2.5",
29
+ "react-dom": "^19.2.5"
21
30
  }
22
31
  }
@@ -0,0 +1,6 @@
1
+ export default {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ }
@@ -0,0 +1,11 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ export default {
3
+ content: [
4
+ "./src/**/*.{ts,tsx}",
5
+ ],
6
+ theme: {
7
+ extend: {},
8
+ },
9
+ plugins: [],
10
+ }
11
+