sme-pos-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,7 @@
1
+ interface ButtonProps {
2
+ label: string;
3
+ onClick: () => void;
4
+ }
5
+ declare const ExampleButton: React.FC<ButtonProps>;
6
+
7
+ export { ExampleButton };
@@ -0,0 +1,7 @@
1
+ interface ButtonProps {
2
+ label: string;
3
+ onClick: () => void;
4
+ }
5
+ declare const ExampleButton: React.FC<ButtonProps>;
6
+
7
+ export { ExampleButton };
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ var c=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(o,t)=>{for(var e in t)c(o,e,{get:t[e],enumerable:!0})},f=(o,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of i(t))!d.call(o,l)&&l!==e&&c(o,l,{get:()=>t[l],enumerable:!(n=u(t,l))||n.enumerable});return o};var k=o=>f(c({},"__esModule",{value:!0}),o);var C={};p(C,{ExampleButton:()=>r});module.exports=k(C);var a=require("react"),s=require("react/jsx-runtime"),m=({label:o,onClick:t})=>{let[e,n]=(0,a.useState)(!1);return(0,s.jsx)("button",{className:"custom",onClick:()=>{n(!0),t()},children:e?"Clicked!":o})},r=m;0&&(module.exports={ExampleButton});
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/components/button.tsx"],"sourcesContent":["export * from \"./components\";\n","import { useState } from \"react\";\n\ninterface ButtonProps {\n label: string;\n onClick: () => void;\n}\nconst ExampleButton: React.FC<ButtonProps> = ({ label, onClick }) => {\n const [clicked, setClicked] = useState(false);\n const handleClick = () => {\n setClicked(true);\n onClick();\n };\n return (\n <button className=\"custom\" onClick={handleClick}>\n {clicked ? \"Clicked!\" : label}\n </button>\n );\n};\nexport default ExampleButton;\n"],"mappings":"4ZAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,IAAA,eAAAC,EAAAH,GCAA,IAAAI,EAAyB,iBAarBC,EAAA,6BAPEC,EAAuC,CAAC,CAAE,MAAAC,EAAO,QAAAC,CAAQ,IAAM,CACnE,GAAM,CAACC,EAASC,CAAU,KAAI,YAAS,EAAK,EAK5C,SACE,OAAC,UAAO,UAAU,SAAS,QALT,IAAM,CACxBA,EAAW,EAAI,EACfF,EAAQ,CACV,EAGK,SAAAC,EAAU,WAAaF,EAC1B,CAEJ,EACOI,EAAQL","names":["index_exports","__export","button_default","__toCommonJS","import_react","import_jsx_runtime","ExampleButton","label","onClick","clicked","setClicked","button_default"]}
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import{useState as n}from"react";import{jsx as r}from"react/jsx-runtime";var c=({label:t,onClick:o})=>{let[e,l]=n(!1);return r("button",{className:"custom",onClick:()=>{l(!0),o()},children:e?"Clicked!":t})},a=c;export{a as ExampleButton};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/button.tsx"],"sourcesContent":["import { useState } from \"react\";\n\ninterface ButtonProps {\n label: string;\n onClick: () => void;\n}\nconst ExampleButton: React.FC<ButtonProps> = ({ label, onClick }) => {\n const [clicked, setClicked] = useState(false);\n const handleClick = () => {\n setClicked(true);\n onClick();\n };\n return (\n <button className=\"custom\" onClick={handleClick}>\n {clicked ? \"Clicked!\" : label}\n </button>\n );\n};\nexport default ExampleButton;\n"],"mappings":"AAAA,OAAS,YAAAA,MAAgB,QAarB,cAAAC,MAAA,oBAPJ,IAAMC,EAAuC,CAAC,CAAE,MAAAC,EAAO,QAAAC,CAAQ,IAAM,CACnE,GAAM,CAACC,EAASC,CAAU,EAAIN,EAAS,EAAK,EAK5C,OACEC,EAAC,UAAO,UAAU,SAAS,QALT,IAAM,CACxBK,EAAW,EAAI,EACfF,EAAQ,CACV,EAGK,SAAAC,EAAU,WAAaF,EAC1B,CAEJ,EACOI,EAAQL","names":["useState","jsx","ExampleButton","label","onClick","clicked","setClicked","button_default"]}
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "sme-pos-package",
3
+ "version": "1.0.0",
4
+ "main": "dist/index.js",
5
+ "module": "dist/index.mjs",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "build": "tsup"
12
+ },
13
+ "peerDependencies": {
14
+ "react": "^18.0.0",
15
+ "react-dom": "^18.0.0"
16
+ },
17
+ "devDependencies": {
18
+ "typescript": "^5.8.2",
19
+ "tsup": "^8.4.0",
20
+ "@types/react": "^19.0.10",
21
+ "@types/react-dom": "^19.0.4"
22
+ }
23
+ }