@riishabh/react-calender-heatmap 1.0.1 → 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.
Files changed (2) hide show
  1. package/README.md +13 -14
  2. package/package.json +2 -1
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
- const data = [
18
- { date: '2022-01-01T00:00:00.000Z', status: 'success' },
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
- return (
25
- <TileChart
26
- data={data}
27
- range={6}
28
- onTileHover={(date, status) => console.log(date, status)}
29
- tileText="Day"
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@riishabh/react-calender-heatmap",
3
- "version": "1.0.1",
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",
@@ -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",