@authdog/react-elements 0.0.2 → 0.0.4

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/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # Authdog React Elements
2
+
3
+ ## Installation
4
+
5
+ `npm i @authdog/react-elements`
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface INavbarProps {
4
+ siteName?: string;
5
+ }
6
+ declare const Navbar: ({ siteName }: INavbarProps) => react_jsx_runtime.JSX.Element;
7
+
8
+ export { Navbar };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
 
3
- declare const Navbar: () => react_jsx_runtime.JSX.Element;
3
+ interface INavbarProps {
4
+ siteName?: string;
5
+ }
6
+ declare const Navbar: ({ siteName }: INavbarProps) => react_jsx_runtime.JSX.Element;
4
7
 
5
8
  export { Navbar };
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";var i=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var l=(e,r)=>{for(var o in r)i(e,o,{get:r[o],enumerable:!0})},v=(e,r,o,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of p(r))!b.call(e,a)&&a!==o&&i(e,a,{get:()=>r[a],enumerable:!(s=n(r,a))||s.enumerable});return e};var N=e=>v(i({},"__esModule",{value:!0}),e);var c={};l(c,{Navbar:()=>d});module.exports=N(c);var t=require("react/jsx-runtime"),d=({siteName:e="Authdog"})=>(0,t.jsxs)("div",{style:{backgroundColor:"blue",padding:"10px",color:"white"},children:[e,(0,t.jsx)("div",{style:{display:"flex",justifyContent:"space-between"}})]});
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/navigation/index.tsx"],"sourcesContent":["export { Navbar } from \"./navigation\";\n","interface INavbarProps {\n siteName?: string;\n}\n\nexport const Navbar = ({ siteName = \"Authdog\" }: INavbarProps) => {\n return (\n <div style={{ backgroundColor: \"blue\", padding: \"10px\", color: \"white\" }}>\n {siteName}\n <div style={{ display: \"flex\", justifyContent: \"space-between\" }} />\n </div>\n );\n};\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,YAAAE,IAAA,eAAAC,EAAAH,GCMI,IAAAI,EAAA,6BAFSC,EAAS,CAAC,CAAE,SAAAC,EAAW,SAAU,OAE1C,QAAC,OAAI,MAAO,CAAE,gBAAiB,OAAQ,QAAS,OAAQ,MAAO,OAAQ,EACpE,UAAAA,KACD,OAAC,OAAI,MAAO,CAAE,QAAS,OAAQ,eAAgB,eAAgB,EAAG,GACpE","names":["index_exports","__export","Navbar","__toCommonJS","import_jsx_runtime","Navbar","siteName"]}
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{jsx as r}from"react/jsx-runtime";var o=()=>r("div",{style:{backgroundColor:"blue",padding:"10px",color:"white"},children:"Some change"});export{o as Navbar};
1
+ import{jsx as a,jsxs as o}from"react/jsx-runtime";var r=({siteName:e="Authdog"})=>o("div",{style:{backgroundColor:"blue",padding:"10px",color:"white"},children:[e,a("div",{style:{display:"flex",justifyContent:"space-between"}})]});export{r as Navbar};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/navigation/index.tsx"],"sourcesContent":["export const Navbar = () => {\n return (\n <div style={{ backgroundColor: 'blue', padding: '10px', color: 'white' }}>\n Some change\n </div>\n )\n}"],"mappings":"AAEQ,cAAAA,MAAA,oBAFD,IAAMC,EAAS,IAEdD,EAAC,OAAI,MAAO,CAAE,gBAAiB,OAAQ,QAAS,OAAQ,MAAO,OAAQ,EAAG,uBAE1E","names":["jsx","Navbar"]}
1
+ {"version":3,"sources":["../src/navigation/index.tsx"],"sourcesContent":["interface INavbarProps {\n siteName?: string;\n}\n\nexport const Navbar = ({ siteName = \"Authdog\" }: INavbarProps) => {\n return (\n <div style={{ backgroundColor: \"blue\", padding: \"10px\", color: \"white\" }}>\n {siteName}\n <div style={{ display: \"flex\", justifyContent: \"space-between\" }} />\n </div>\n );\n};\n"],"mappings":"AAMI,OAEE,OAAAA,EAFF,QAAAC,MAAA,oBAFG,IAAMC,EAAS,CAAC,CAAE,SAAAC,EAAW,SAAU,IAE1CF,EAAC,OAAI,MAAO,CAAE,gBAAiB,OAAQ,QAAS,OAAQ,MAAO,OAAQ,EACpE,UAAAE,EACDH,EAAC,OAAI,MAAO,CAAE,QAAS,OAAQ,eAAgB,eAAgB,EAAG,GACpE","names":["jsx","jsxs","Navbar","siteName"]}
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@authdog/react-elements",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Authdog React Elements",
5
- "type": "module",
6
5
  "source": "src/index.ts",
7
- "main": "./dist/index.mjs",
8
- "types": "./dist/index.d.mts",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
- "types": "./dist/index.d.mts",
12
- "import": "./dist/index.mjs"
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.mjs",
13
+ "require": "./dist/index.js"
13
14
  }
14
15
  },
15
16
  "files": [
@@ -21,9 +22,10 @@
21
22
  },
22
23
  "dependencies": {
23
24
  "react": "^18.2.0",
24
- "@authdog/node-commons": "0.0.19"
25
+ "@authdog/node-commons": "0.0.21"
25
26
  },
26
27
  "devDependencies": {
28
+ "@types/node": "^22.14.1",
27
29
  "@types/react": "^18.2.0"
28
30
  },
29
31
  "scripts": {