shadcn-chart 0.1.1 → 0.1.3
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 +10 -2
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -29,14 +29,22 @@ pnpm add shadcn-chart
|
|
|
29
29
|
### Peer Dependencies
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
npm install react react-dom recharts lucide-react
|
|
32
|
+
npm install react react-dom recharts lucide-react tailwindcss tw-animate-css
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
> **Note:** This package requires **Tailwind CSS v4+** and uses the new CSS-first configuration.
|
|
36
|
+
|
|
35
37
|
## 🚀 Quick Start
|
|
36
38
|
|
|
37
39
|
### 1. Import Styles
|
|
38
40
|
|
|
39
|
-
Add to your root
|
|
41
|
+
Add to your root CSS file (e.g., `index.css` or `globals.css`):
|
|
42
|
+
|
|
43
|
+
```css
|
|
44
|
+
@import "shadcn-chart/styles";
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Or import in your main entry file:
|
|
40
48
|
|
|
41
49
|
```tsx
|
|
42
50
|
// Next.js: app/layout.tsx or pages/_app.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shadcn-chart",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Headless and styled chart components built with shadcn/ui conventions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -59,10 +59,12 @@
|
|
|
59
59
|
"tailwind-merge": "^3.4.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"lucide-react": "
|
|
63
|
-
"react": "
|
|
64
|
-
"react-dom": "
|
|
65
|
-
"recharts": "
|
|
62
|
+
"lucide-react": ">=0.400.0",
|
|
63
|
+
"react": ">=18.0.0 || >=19.0.0",
|
|
64
|
+
"react-dom": ">=18.0.0 || >=19.0.0",
|
|
65
|
+
"recharts": ">=2.0.0",
|
|
66
|
+
"tailwindcss": ">=4.0.0",
|
|
67
|
+
"tw-animate-css": ">=1.0.0"
|
|
66
68
|
},
|
|
67
69
|
"devDependencies": {
|
|
68
70
|
"@tailwindcss/postcss": "^4.1.18",
|