code7-leia 0.1.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.
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/Leia.d.ts +3 -0
- package/dist/code7-leia.cjs.development.js +19 -0
- package/dist/code7-leia.cjs.development.js.map +1 -0
- package/dist/code7-leia.cjs.production.min.js +2 -0
- package/dist/code7-leia.cjs.production.min.js.map +1 -0
- package/dist/code7-leia.esm.js +13 -0
- package/dist/code7-leia.esm.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8 -0
- package/package.json +62 -0
- package/src/Leia.tsx +12 -0
- package/src/index.tsx +11 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Yan Guilherme
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# code7-boteria-lib-leia
|
package/dist/Leia.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
|
+
|
|
7
|
+
var React = _interopDefault(require('react'));
|
|
8
|
+
|
|
9
|
+
var Leia = function Leia(props) {
|
|
10
|
+
console.log('Props', props);
|
|
11
|
+
return React.createElement("div", null, "Aqui \xE9 a Leia");
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
function Code7(props) {
|
|
15
|
+
return React.createElement(Leia, Object.assign({}, props));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
exports.Code7 = Code7;
|
|
19
|
+
//# sourceMappingURL=code7-leia.cjs.development.js.map
|
|
@@ -0,0 +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;;;;"}
|
|
@@ -0,0 +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))};
|
|
2
|
+
//# sourceMappingURL=code7-leia.cjs.production.min.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
var Leia = function Leia(props) {
|
|
4
|
+
console.log('Props', props);
|
|
5
|
+
return React.createElement("div", null, "Aqui \xE9 a Leia");
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
function Code7(props) {
|
|
9
|
+
return React.createElement(Leia, Object.assign({}, props));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { Code7 };
|
|
13
|
+
//# sourceMappingURL=code7-leia.esm.js.map
|
|
@@ -0,0 +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;;;;"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.1.0",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"typings": "dist/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"src"
|
|
9
|
+
],
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=10"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"start": "tsdx watch",
|
|
15
|
+
"build": "tsdx build",
|
|
16
|
+
"test": "tsdx test --passWithNoTests",
|
|
17
|
+
"lint": "tsdx lint",
|
|
18
|
+
"prepare": "tsdx build",
|
|
19
|
+
"size": "size-limit",
|
|
20
|
+
"analyze": "size-limit --why",
|
|
21
|
+
"deploy": "npm version patch && npm publish"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": ">=16"
|
|
25
|
+
},
|
|
26
|
+
"husky": {
|
|
27
|
+
"hooks": {
|
|
28
|
+
"pre-commit": "tsdx lint"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"prettier": {
|
|
32
|
+
"printWidth": 80,
|
|
33
|
+
"semi": true,
|
|
34
|
+
"singleQuote": true,
|
|
35
|
+
"trailingComma": "es5"
|
|
36
|
+
},
|
|
37
|
+
"name": "code7-leia",
|
|
38
|
+
"author": "Yan Guilherme",
|
|
39
|
+
"module": "dist/lib-leia.esm.js",
|
|
40
|
+
"size-limit": [
|
|
41
|
+
{
|
|
42
|
+
"path": "dist/lib-leia.cjs.production.min.js",
|
|
43
|
+
"limit": "10 KB"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"path": "dist/lib-leia.esm.js",
|
|
47
|
+
"limit": "10 KB"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@size-limit/preset-small-lib": "^11.0.2",
|
|
52
|
+
"@types/react": "^18.2.48",
|
|
53
|
+
"@types/react-dom": "^18.2.18",
|
|
54
|
+
"husky": "^9.0.6",
|
|
55
|
+
"react": "^18.2.0",
|
|
56
|
+
"react-dom": "^18.2.0",
|
|
57
|
+
"size-limit": "^11.0.2",
|
|
58
|
+
"tsdx": "^0.14.1",
|
|
59
|
+
"tslib": "^2.6.2",
|
|
60
|
+
"typescript": "^5.3.3"
|
|
61
|
+
}
|
|
62
|
+
}
|
package/src/Leia.tsx
ADDED
package/src/index.tsx
ADDED