sme-pos-package 1.0.2 → 1.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.css ADDED
@@ -0,0 +1,5 @@
1
+ .custom {
2
+ color: red;
3
+ background-color: blue;
4
+ font-size: 20px;
5
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.css"],"sourcesContent":[".custom {\n color: red;\n background-color: blue;\n font-size: 20px;\n}\n"],"mappings":"AAAA,CAAC,OACC,MAAO,IACP,iBAAkB,KAClB,UAAW,IACb","names":[]}
package/dist/index.js CHANGED
@@ -1,2 +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});
1
+ var n=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(o,t)=>{for(var e in t)n(o,e,{get:t[e],enumerable:!0})},m=(o,t,e,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of i(t))!d.call(o,l)&&l!==e&&n(o,l,{get:()=>t[l],enumerable:!(c=u(t,l))||c.enumerable});return o};var f=o=>m(n({},"__esModule",{value:!0}),o);var C={};p(C,{ExampleButton:()=>a});module.exports=f(C);var r=require("react"),s=require("react/jsx-runtime"),k=({label:o,onClick:t})=>{let[e,c]=(0,r.useState)(!1);return(0,s.jsx)("button",{className:"custom",onClick:()=>{c(!0),t()},children:e?"Clicked!":o})},a=k;0&&(module.exports={ExampleButton});
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +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"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/components/button.tsx"],"sourcesContent":["export * from \"./components\";\nimport \"./index.css\";\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 CHANGED
@@ -1,2 +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};
1
+ import{useState as c}from"react";import{jsx as a}from"react/jsx-runtime";var n=({label:t,onClick:o})=>{let[e,l]=c(!1);return a("button",{className:"custom",onClick:()=>{l(!0),o()},children:e?"Clicked!":t})},r=n;export{r as ExampleButton};
2
2
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sme-pos-package",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",