anuska-test-npm-package 1.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.
@@ -0,0 +1,19 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ const p = ({ children: o, onClick: r, color: t = "blue" }) => /* @__PURE__ */ e(
3
+ "button",
4
+ {
5
+ onClick: r,
6
+ style: {
7
+ backgroundColor: t,
8
+ color: "white",
9
+ padding: "10px 20px",
10
+ border: "none",
11
+ borderRadius: "5px",
12
+ cursor: "pointer"
13
+ },
14
+ children: o
15
+ }
16
+ );
17
+ export {
18
+ p as Button
19
+ };
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.MyLibrary={},e.jsxRuntime))})(this,function(e,t){"use strict";const n=({children:o,onClick:r,color:i="blue"})=>t.jsx("button",{onClick:r,style:{backgroundColor:i,color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer"},children:o});e.Button=n,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "anuska-test-npm-package",
3
+ "version": "1.0.0",
4
+ "description": "Your component library description",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.js",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "keywords": [
11
+ "react",
12
+ "components",
13
+ "library"
14
+ ],
15
+ "author": "Your Name",
16
+ "license": "MIT",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/yourusername/my-component-library"
20
+ },
21
+ "scripts": {
22
+ "build": "vite build",
23
+ "dev": "vite",
24
+ "preview": "vite preview"
25
+ },
26
+ "peerDependencies": {
27
+ "react": "^18.0.0",
28
+ "react-dom": "^18.0.0"
29
+ },
30
+ "devDependencies": {
31
+ "@vitejs/plugin-react": "^4.7.0",
32
+ "vite": "^4.5.14"
33
+ }
34
+ }