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
@@ -0,0 +1,13 @@
|
||||
import { defineConfig } from "vite"
|
||||
import react from "@vitejs/plugin-react"
|
||||
import tailwindcss from "@tailwindcss/vite"
|
||||
import { fileURLToPath } from "node:url"
|
||||
|
||||
// Consumer example of @hm-design/chart. The fonts come from the repository public folder like the publisher example.
|
||||
export default defineConfig({
|
||||
root: fileURLToPath(new URL("./", import.meta.url)),
|
||||
publicDir: fileURLToPath(new URL("../../public", import.meta.url)),
|
||||
base: "./",
|
||||
plugins: [react(), tailwindcss()],
|
||||
server: { host: "127.0.0.1" },
|
||||
})
|
||||
Reference in new issue
Block a user