Se implementa la libreria de create-react-library para que funcione la libreria.

Se sube a version 1.0.6
Se sube a GitHub 1.0.6
This commit is contained in:
2019-12-05 13:07:01 -06:00
parent 57a1f1835f
commit 6a86b929c3
24 changed files with 45893 additions and 129 deletions

2164
example/README.md Normal file

File diff suppressed because it is too large Load Diff

26081
example/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

20
example/package.json Normal file
View File

@ -0,0 +1,20 @@
{
"name": "chart-2-react-example",
"homepage": "https://aleleba.github.io/chart-2-react",
"version": "0.0.0",
"license": "MIT",
"private": true,
"dependencies": {
"prop-types": "^15.6.2",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"react-scripts": "^1.1.4",
"chart-2-react": "file:.."
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}

20
example/public/index.html Normal file
View File

@ -0,0 +1,20 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<title>chart-2-react</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
</body>
</html>

View File

@ -0,0 +1,8 @@
{
"short_name": "chart-2-react",
"name": "chart-2-react",
"start_url": "./index.html",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}

14
example/src/App.js Normal file
View File

@ -0,0 +1,14 @@
import React, { Component } from 'react'
import { RadialGaugue } from 'chart-2-react'
export default class App extends Component {
render () {
return (
<div style={{maxWidth: '600px', marginTop: '25px'}}>
<h3 style={{textAlign: 'center'}}>RadialGaugue Component:</h3>
<RadialGaugue />
</div>
)
}
}

5
example/src/index.css Normal file
View File

@ -0,0 +1,5 @@
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}

7
example/src/index.js Normal file
View File

@ -0,0 +1,7 @@
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
ReactDOM.render(<App />, document.getElementById('root'))