code7-leia 0.1.0 → 0.1.5

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.
@@ -8,7 +8,7 @@ var React = _interopDefault(require('react'));
8
8
 
9
9
  var Leia = function Leia(props) {
10
10
  console.log('Props', props);
11
- return React.createElement("div", null, "Aqui \xE9 a Leia");
11
+ return React.createElement("div", null, "Aqui \xE9 a Leia, seu id \xE9 ", props.id);
12
12
  };
13
13
 
14
14
  function Code7(props) {
@@ -1 +1 @@
1
- {"version":3,"file":"code7-leia.cjs.development.js","sources":["../src/Leia.tsx","../src/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport type { Props } from './index';\n\nexport const Leia = (props: Props) => {\n\n console.log('Props', props);\n\n return (\n <div>Aqui é a Leia</div>\n );\n};","import type { PropsWithChildren } from 'react';\nimport React from 'react';\nimport { Leia } from './Leia';\n\nexport type Props = PropsWithChildren<{\n id: string;\n}>;\n\nexport function Code7(props: Props) {\n return <Leia {...props} />;\n}"],"names":["Leia","props","console","log","React","Code7"],"mappings":";;;;;;;;AAIO,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAIC,KAAY;EAE/BC,OAAO,CAACC,GAAG,CAAC,OAAO,EAAEF,KAAK,CAAC;EAE3B,OACEG,oDAAwB;AAE5B,CAAC;;SCHeC,KAAKA,CAACJ,KAAY;EAChC,OAAOG,oBAACJ,IAAI,oBAAKC,KAAK,EAAI;AAC5B;;;;"}
1
+ {"version":3,"file":"code7-leia.cjs.development.js","sources":["../src/Leia.tsx","../src/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport type { Props } from './index';\n\nexport const Leia = (props: Props) => {\n\n console.log('Props', props);\n\n return (\n <div>Aqui é a Leia, seu id é {props.id}</div>\n );\n};","import type { PropsWithChildren } from 'react';\nimport React from 'react';\nimport { Leia } from './Leia';\n\nexport type Props = PropsWithChildren<{\n id: string;\n}>;\n\nexport function Code7(props: Props) {\n return <Leia {...props} />;\n}"],"names":["Leia","props","console","log","React","id","Code7"],"mappings":";;;;;;;;AAIO,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAIC,KAAY;EAE/BC,OAAO,CAACC,GAAG,CAAC,OAAO,EAAEF,KAAK,CAAC;EAE3B,OACEG,mEAA8BH,KAAK,CAACI,EAAE,CAAO;AAEjD,CAAC;;SCHeC,KAAKA,CAACL,KAAY;EAChC,OAAOG,oBAACJ,IAAI,oBAAKC,KAAK,EAAI;AAC5B;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=(e=require("react"))&&"object"==typeof e&&"default"in e?e.default:e,r=function(e){return console.log("Props",e),t.createElement("div",null,"Aqui é a Leia")};exports.Code7=function(e){return t.createElement(r,Object.assign({},e))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=(e=require("react"))&&"object"==typeof e&&"default"in e?e.default:e,r=function(e){return console.log("Props",e),t.createElement("div",null,"Aqui é a Leia, seu id é ",e.id)};exports.Code7=function(e){return t.createElement(r,Object.assign({},e))};
2
2
  //# sourceMappingURL=code7-leia.cjs.production.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"code7-leia.cjs.production.min.js","sources":["../src/Leia.tsx","../src/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport type { Props } from './index';\n\nexport const Leia = (props: Props) => {\n\n console.log('Props', props);\n\n return (\n <div>Aqui é a Leia</div>\n );\n};","import type { PropsWithChildren } from 'react';\nimport React from 'react';\nimport { Leia } from './Leia';\n\nexport type Props = PropsWithChildren<{\n id: string;\n}>;\n\nexport function Code7(props: Props) {\n return <Leia {...props} />;\n}"],"names":["Leia","props","console","log","React"],"mappings":"gJAIaA,EAAO,SAACC,GAInB,OAFAC,QAAQC,IAAI,QAASF,GAGnBG,oECDkBH,GACpB,OAAOG,gBAACJ,mBAASC"}
1
+ {"version":3,"file":"code7-leia.cjs.production.min.js","sources":["../src/Leia.tsx","../src/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport type { Props } from './index';\n\nexport const Leia = (props: Props) => {\n\n console.log('Props', props);\n\n return (\n <div>Aqui é a Leia, seu id é {props.id}</div>\n );\n};","import type { PropsWithChildren } from 'react';\nimport React from 'react';\nimport { Leia } from './Leia';\n\nexport type Props = PropsWithChildren<{\n id: string;\n}>;\n\nexport function Code7(props: Props) {\n return <Leia {...props} />;\n}"],"names":["Leia","props","console","log","React","id"],"mappings":"gJAIaA,EAAO,SAACC,GAInB,OAFAC,QAAQC,IAAI,QAASF,GAGnBG,sDAA8BH,EAAMI,4BCDlBJ,GACpB,OAAOG,gBAACJ,mBAASC"}
@@ -2,7 +2,7 @@ import React from 'react';
2
2
 
3
3
  var Leia = function Leia(props) {
4
4
  console.log('Props', props);
5
- return React.createElement("div", null, "Aqui \xE9 a Leia");
5
+ return React.createElement("div", null, "Aqui \xE9 a Leia, seu id \xE9 ", props.id);
6
6
  };
7
7
 
8
8
  function Code7(props) {
@@ -1 +1 @@
1
- {"version":3,"file":"code7-leia.esm.js","sources":["../src/Leia.tsx","../src/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport type { Props } from './index';\n\nexport const Leia = (props: Props) => {\n\n console.log('Props', props);\n\n return (\n <div>Aqui é a Leia</div>\n );\n};","import type { PropsWithChildren } from 'react';\nimport React from 'react';\nimport { Leia } from './Leia';\n\nexport type Props = PropsWithChildren<{\n id: string;\n}>;\n\nexport function Code7(props: Props) {\n return <Leia {...props} />;\n}"],"names":["Leia","props","console","log","React","Code7"],"mappings":";;AAIO,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAIC,KAAY;EAE/BC,OAAO,CAACC,GAAG,CAAC,OAAO,EAAEF,KAAK,CAAC;EAE3B,OACEG,oDAAwB;AAE5B,CAAC;;SCHeC,KAAKA,CAACJ,KAAY;EAChC,OAAOG,oBAACJ,IAAI,oBAAKC,KAAK,EAAI;AAC5B;;;;"}
1
+ {"version":3,"file":"code7-leia.esm.js","sources":["../src/Leia.tsx","../src/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport type { Props } from './index';\n\nexport const Leia = (props: Props) => {\n\n console.log('Props', props);\n\n return (\n <div>Aqui é a Leia, seu id é {props.id}</div>\n );\n};","import type { PropsWithChildren } from 'react';\nimport React from 'react';\nimport { Leia } from './Leia';\n\nexport type Props = PropsWithChildren<{\n id: string;\n}>;\n\nexport function Code7(props: Props) {\n return <Leia {...props} />;\n}"],"names":["Leia","props","console","log","React","id","Code7"],"mappings":";;AAIO,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAIC,KAAY;EAE/BC,OAAO,CAACC,GAAG,CAAC,OAAO,EAAEF,KAAK,CAAC;EAE3B,OACEG,mEAA8BH,KAAK,CAACI,EAAE,CAAO;AAEjD,CAAC;;SCHeC,KAAKA,CAACL,KAAY;EAChC,OAAOG,oBAACJ,IAAI,oBAAKC,KAAK,EAAI;AAC5B;;;;"}
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.0",
2
+ "version": "0.1.5",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
package/src/Leia.tsx CHANGED
@@ -7,6 +7,6 @@ export const Leia = (props: Props) => {
7
7
  console.log('Props', props);
8
8
 
9
9
  return (
10
- <div>Aqui é a Leia</div>
10
+ <div>Aqui é a Leia, seu id é {props.id}</div>
11
11
  );
12
12
  };