@riishabh/react-calender-heatmap 1.0.0 → 1.0.2
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 +13 -14
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -12,23 +12,22 @@ The `TileChart` is a React component that displays data in a tile format, where
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
14
14
|
```tsx
|
|
15
|
-
import TileChart from './TileChart';
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{ date: '2022-01-02T00:00:00.000Z', status: 'warning' },
|
|
20
|
-
// More data...
|
|
21
|
-
];
|
|
16
|
+
import { TileChart } from "@riishabh/react-calender-heatmap";
|
|
17
|
+
|
|
22
18
|
|
|
23
19
|
function App() {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
|
|
21
|
+
const dummydata = [
|
|
22
|
+
{ date: "2022-01-01", status: "success" as const },
|
|
23
|
+
{ date: "2022-01-02", status: "warning" as const },
|
|
24
|
+
{ date: "2022-01-03", status: "alert" as const },
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<TileChart data={dummydata} range={6} />
|
|
31
30
|
);
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
export default App;
|
|
33
|
+
export default App;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riishabh/react-calender-heatmap",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"author": "Rishabh Sharma",
|
|
5
5
|
"description": "A simple and customizable React calendar heatmap component",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/
|
|
9
|
+
"url": "git+https://github.com/badcaptain0001/react-calendar-heatmap.git"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"dev": "rollup -c --watch",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"storybook": "storybook dev -p 6006",
|
|
16
16
|
"build-storybook": "storybook build"
|
|
17
17
|
},
|
|
18
|
+
"homepage": "https://react-calendar-heatmap.vercel.app/",
|
|
18
19
|
"main": "dist/cjs/index.js",
|
|
19
20
|
"module": "dist/esm/index.js",
|
|
20
21
|
"types": "dist/index.d.ts",
|