logitude-dashboard-library 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.
- package/README.md +30 -0
- package/dist/index.css +9 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/index.modern.js +13 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/index.test.d.ts +1 -0
- package/package.json +63 -0
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# logitude-dashboard-library
|
|
2
|
+
|
|
3
|
+
> Made with create-react-library
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/logitude-dashboard-library) [](https://standardjs.com)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install --save logitude-dashboard-library
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import React, { Component } from 'react'
|
|
17
|
+
|
|
18
|
+
import MyComponent from 'logitude-dashboard-library'
|
|
19
|
+
import 'logitude-dashboard-library/dist/index.css'
|
|
20
|
+
|
|
21
|
+
class Example extends Component {
|
|
22
|
+
render() {
|
|
23
|
+
return <MyComponent />
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## License
|
|
29
|
+
|
|
30
|
+
MIT © [logitude](https://github.com/logitude)
|
package/dist/index.css
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var React = require('react');
|
|
2
|
+
|
|
3
|
+
var styles = {"test":"_3ybTi"};
|
|
4
|
+
|
|
5
|
+
var ExampleComponent = function ExampleComponent(_ref) {
|
|
6
|
+
var text = _ref.text;
|
|
7
|
+
return React.createElement("div", {
|
|
8
|
+
className: styles.test
|
|
9
|
+
}, "Example Component: ", text);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.ExampleComponent = ExampleComponent;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport styles from './styles.module.css'\n\ninterface Props {\n text: string\n}\n\nexport const ExampleComponent = ({ text }: Props) => {\n return <div className={styles.test}>Example Component: {text}</div>\n}\n"],"names":["ExampleComponent","text","React","className","styles","test"],"mappings":";;;;IAOaA,gBAAgB,GAAG,SAAnBA,gBAAmB;MAAGC,YAAAA;EACjC,OAAOC,mBAAA,MAAA;IAAKC,SAAS,EAAEC,MAAM,CAACC;GAAvB,uBAAA,EAAiDJ,IAAjD,CAAP;AACD,CAFM;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createElement } from 'react';
|
|
2
|
+
|
|
3
|
+
var styles = {"test":"_3ybTi"};
|
|
4
|
+
|
|
5
|
+
var ExampleComponent = function ExampleComponent(_ref) {
|
|
6
|
+
var text = _ref.text;
|
|
7
|
+
return createElement("div", {
|
|
8
|
+
className: styles.test
|
|
9
|
+
}, "Example Component: ", text);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { ExampleComponent };
|
|
13
|
+
//# sourceMappingURL=index.modern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.modern.js","sources":["../src/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport styles from './styles.module.css'\n\ninterface Props {\n text: string\n}\n\nexport const ExampleComponent = ({ text }: Props) => {\n return <div className={styles.test}>Example Component: {text}</div>\n}\n"],"names":["ExampleComponent","text","React","className","styles","test"],"mappings":";;;;IAOaA,gBAAgB,GAAG,SAAnBA,gBAAmB;MAAGC,YAAAA;EACjC,OAAOC,aAAA,MAAA;IAAKC,SAAS,EAAEC,MAAM,CAACC;GAAvB,uBAAA,EAAiDJ,IAAjD,CAAP;AACD,CAFM;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "logitude-dashboard-library",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Made with create-react-library",
|
|
5
|
+
"author": "logitude",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "logitude/logitude-dashboard-library",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"module": "dist/index.modern.js",
|
|
10
|
+
"source": "src/index.tsx",
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=10"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "microbundle-crl --no-compress --format modern,cjs",
|
|
16
|
+
"start": "microbundle-crl watch --no-compress --format modern,cjs",
|
|
17
|
+
"prepare": "run-s build",
|
|
18
|
+
"test": "run-s test:unit test:lint test:build",
|
|
19
|
+
"test:build": "run-s build",
|
|
20
|
+
"test:lint": "eslint .",
|
|
21
|
+
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
22
|
+
"test:watch": "react-scripts test --env=jsdom",
|
|
23
|
+
"predeploy": "cd example && npm install && npm run build",
|
|
24
|
+
"deploy": "gh-pages -d example/build"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"react": "^16.0.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@testing-library/jest-dom": "^4.2.4",
|
|
31
|
+
"@testing-library/react": "^9.5.0",
|
|
32
|
+
"@testing-library/user-event": "^7.2.1",
|
|
33
|
+
"@types/jest": "^25.1.4",
|
|
34
|
+
"@types/node": "^12.12.38",
|
|
35
|
+
"@types/react": "^16.9.27",
|
|
36
|
+
"@types/react-dom": "^16.9.7",
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^2.26.0",
|
|
38
|
+
"@typescript-eslint/parser": "^2.26.0",
|
|
39
|
+
"microbundle-crl": "^0.13.10",
|
|
40
|
+
"babel-eslint": "^10.0.3",
|
|
41
|
+
"cross-env": "^7.0.2",
|
|
42
|
+
"eslint": "^6.8.0",
|
|
43
|
+
"eslint-config-prettier": "^6.7.0",
|
|
44
|
+
"eslint-config-standard": "^14.1.0",
|
|
45
|
+
"eslint-config-standard-react": "^9.2.0",
|
|
46
|
+
"eslint-plugin-import": "^2.18.2",
|
|
47
|
+
"eslint-plugin-node": "^11.0.0",
|
|
48
|
+
"eslint-plugin-prettier": "^3.1.1",
|
|
49
|
+
"eslint-plugin-promise": "^4.2.1",
|
|
50
|
+
"eslint-plugin-react": "^7.17.0",
|
|
51
|
+
"eslint-plugin-standard": "^4.0.1",
|
|
52
|
+
"gh-pages": "^2.2.0",
|
|
53
|
+
"npm-run-all": "^4.1.5",
|
|
54
|
+
"prettier": "^2.0.4",
|
|
55
|
+
"react": "^16.13.1",
|
|
56
|
+
"react-dom": "^16.13.1",
|
|
57
|
+
"react-scripts": "^3.4.1",
|
|
58
|
+
"typescript": "^3.7.5"
|
|
59
|
+
},
|
|
60
|
+
"files": [
|
|
61
|
+
"dist"
|
|
62
|
+
]
|
|
63
|
+
}
|