feat(chart): add @hm-design/chart package with Bar, Line, Donut, Pie, Radar, Area and Radial charts
- new workspace package packages/chart (shadcn/ui Chart + Recharts, HM Theme tokens), examples entry with sample data - Storybook Chart group (src/chart), consumer example (examples/chart), build:chart / build:chart-example scripts - README rewritten as the AI usage guide (install, CSS wiring, chart selection, data rules, verification) - docs: package count/list, Submodule guide (chart workspace, React dedupe), shared AI_GUIDE row, MAINTAINING, story inventory
This commit is contained in:
1 parent
228944a06b
commit
dc9258599c
56 files changed
+3979
-28
No files matched your search
+5
-1
@@ -26,6 +26,9 @@
|
||||
"typecheck": "tsc -b && npm run typecheck --workspaces --if-present",
|
||||
"build:ui": "npm run build -w @hm-design/ui",
|
||||
"build:center-graphic": "npm run build -w @hm-design/center-graphic",
|
||||
"build:chart": "npm run build -w @hm-design/chart",
|
||||
"build:chart-example": "vite build --config examples/chart/vite.config.ts",
|
||||
"dev:chart-example": "vite --config examples/chart/vite.config.ts",
|
||||
"build:org-chart": "npm run build -w @hm-design/org-chart",
|
||||
"typecheck:org-chart": "npm run typecheck -w @hm-design/org-chart",
|
||||
"test:org-chart": "npm run test -w @hm-design/org-chart",
|
||||
@@ -39,12 +42,13 @@
|
||||
"build:org-chart-react-example": "vite build --config examples/org-chart-react/vite.config.ts",
|
||||
"dev:org-chart-react-example": "vite --config examples/org-chart-react/vite.config.ts",
|
||||
"test:org-chart-react-browser": "node examples/org-chart-react/verify.mjs",
|
||||
"build:packages": "npm run build:org-chart && npm run build:ui && npm run build:center-graphic && npm run build:org-chart-react && npm run build:sw"
|
||||
"build:packages": "npm run build:org-chart && npm run build:ui && npm run build:center-graphic && npm run build:chart && npm run build:org-chart-react && npm run build:sw"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hm-design/org-chart": "*",
|
||||
"@hm-design/org-chart-react": "*",
|
||||
"@hm-design/center-graphic": "*",
|
||||
"@hm-design/chart": "*",
|
||||
"@hm-design/sw": "*",
|
||||
"@hm-design/ui": "*",
|
||||
"lucide-react": "^1.49.0",
|
||||
|
||||
Reference in new issue
Block a user