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
@@ -45,6 +45,8 @@ const preview: Preview = {
|
||||
],
|
||||
"Patterns",
|
||||
["Data", ["Data Table", "Filter Bar"], "Layout", ["GNB", "LNB", "Dashboard Layout", "Loading Screen"]],
|
||||
"Chart",
|
||||
["Bar Chart", "Line Chart", "Donut Chart", "Pie Chart", "Radar Chart", "Area Chart", "Radial Chart"],
|
||||
"OrgChart",
|
||||
["Overview", "Department Colors", "Full Composition", "Expanded OrgChart"],
|
||||
"Center Graphic",
|
||||
|
||||
@@ -6,16 +6,16 @@ This is a classification record. No Story IDs, exports or titles are renamed. HI
|
||||
|
||||
## Summary
|
||||
|
||||
- PRIMARY: 82
|
||||
- PRIMARY: 89
|
||||
- VERIFICATION: 252
|
||||
- UTILITY: 38
|
||||
- LEGACY / DUPLICATE: 0
|
||||
- KEEP: 82
|
||||
- KEEP: 89
|
||||
- HIDE: 290
|
||||
- MERGE_CANDIDATE: 33
|
||||
- DELETE_CANDIDATE: 0
|
||||
- Story files: 82
|
||||
- Stories: 372
|
||||
- Story files: 89
|
||||
- Stories: 379
|
||||
- Hierarchy: Foundation → Components → Patterns → Center Graphic → Theme
|
||||
|
||||
## Full inventory
|
||||
@@ -58,6 +58,48 @@ Source: `src/center/center-title.stories.tsx`; meta.tags: []
|
||||
- Compositions — Title; tags: []; PRIMARY; KEEP. Representative story or distinct reference page.
|
||||
- Playground — Playground; tags: ["verification"]; UTILITY; HIDE. Keep direct URL and tag-filter access; excluded from default sidebar.
|
||||
|
||||
### Chart/Area Chart
|
||||
|
||||
Source: `src/chart/area-chart.stories.tsx`; meta.tags: []
|
||||
|
||||
- Area — Area Chart; tags: []; PRIMARY; KEEP. Representative story or distinct reference page.
|
||||
|
||||
### Chart/Bar Chart
|
||||
|
||||
Source: `src/chart/bar-chart.stories.tsx`; meta.tags: []
|
||||
|
||||
- Bar — Bar Chart; tags: []; PRIMARY; KEEP. Representative story or distinct reference page.
|
||||
|
||||
### Chart/Donut Chart
|
||||
|
||||
Source: `src/chart/donut-chart.stories.tsx`; meta.tags: []
|
||||
|
||||
- Donut — Donut Chart; tags: []; PRIMARY; KEEP. Representative story or distinct reference page.
|
||||
|
||||
### Chart/Line Chart
|
||||
|
||||
Source: `src/chart/line-chart.stories.tsx`; meta.tags: []
|
||||
|
||||
- Line — Line Chart; tags: []; PRIMARY; KEEP. Representative story or distinct reference page.
|
||||
|
||||
### Chart/Pie Chart
|
||||
|
||||
Source: `src/chart/pie-chart.stories.tsx`; meta.tags: []
|
||||
|
||||
- Pie — Pie Chart; tags: []; PRIMARY; KEEP. Representative story or distinct reference page.
|
||||
|
||||
### Chart/Radar Chart
|
||||
|
||||
Source: `src/chart/radar-chart.stories.tsx`; meta.tags: []
|
||||
|
||||
- Radar — Radar Chart; tags: []; PRIMARY; KEEP. Representative story or distinct reference page.
|
||||
|
||||
### Chart/Radial Chart
|
||||
|
||||
Source: `src/chart/radial-chart.stories.tsx`; meta.tags: []
|
||||
|
||||
- Radial — Radial Chart; tags: []; PRIMARY; KEEP. Representative story or distinct reference page.
|
||||
|
||||
### Components/Disclosure/Accordion
|
||||
|
||||
Source: `src/components/accordion.stories.tsx`; meta.tags: []
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"summary": {
|
||||
"storyFiles": 82,
|
||||
"stories": 372,
|
||||
"storyFiles": 89,
|
||||
"stories": 379,
|
||||
"categories": {
|
||||
"PRIMARY": 82,
|
||||
"PRIMARY": 89,
|
||||
"VERIFICATION": 252,
|
||||
"UTILITY": 38,
|
||||
"LEGACY / DUPLICATE": 0
|
||||
},
|
||||
"decisions": {
|
||||
"KEEP": 82,
|
||||
"KEEP": 89,
|
||||
"HIDE": 290,
|
||||
"MERGE_CANDIDATE": 33,
|
||||
"DELETE_CANDIDATE": 0
|
||||
@@ -213,6 +213,132 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "src/chart/area-chart.stories.tsx",
|
||||
"title": "Chart/Area Chart",
|
||||
"metaTags": [],
|
||||
"stories": [
|
||||
{
|
||||
"id": "chart-area-chart--area",
|
||||
"exportName": "Area",
|
||||
"name": "Area Chart",
|
||||
"storyTags": [],
|
||||
"effectiveTags": [],
|
||||
"category": "PRIMARY",
|
||||
"decision": "KEEP",
|
||||
"candidate": null,
|
||||
"reason": "Representative story or distinct reference page."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "src/chart/bar-chart.stories.tsx",
|
||||
"title": "Chart/Bar Chart",
|
||||
"metaTags": [],
|
||||
"stories": [
|
||||
{
|
||||
"id": "chart-bar-chart--bar",
|
||||
"exportName": "Bar",
|
||||
"name": "Bar Chart",
|
||||
"storyTags": [],
|
||||
"effectiveTags": [],
|
||||
"category": "PRIMARY",
|
||||
"decision": "KEEP",
|
||||
"candidate": null,
|
||||
"reason": "Representative story or distinct reference page."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "src/chart/donut-chart.stories.tsx",
|
||||
"title": "Chart/Donut Chart",
|
||||
"metaTags": [],
|
||||
"stories": [
|
||||
{
|
||||
"id": "chart-donut-chart--donut",
|
||||
"exportName": "Donut",
|
||||
"name": "Donut Chart",
|
||||
"storyTags": [],
|
||||
"effectiveTags": [],
|
||||
"category": "PRIMARY",
|
||||
"decision": "KEEP",
|
||||
"candidate": null,
|
||||
"reason": "Representative story or distinct reference page."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "src/chart/line-chart.stories.tsx",
|
||||
"title": "Chart/Line Chart",
|
||||
"metaTags": [],
|
||||
"stories": [
|
||||
{
|
||||
"id": "chart-line-chart--line",
|
||||
"exportName": "Line",
|
||||
"name": "Line Chart",
|
||||
"storyTags": [],
|
||||
"effectiveTags": [],
|
||||
"category": "PRIMARY",
|
||||
"decision": "KEEP",
|
||||
"candidate": null,
|
||||
"reason": "Representative story or distinct reference page."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "src/chart/pie-chart.stories.tsx",
|
||||
"title": "Chart/Pie Chart",
|
||||
"metaTags": [],
|
||||
"stories": [
|
||||
{
|
||||
"id": "chart-pie-chart--pie",
|
||||
"exportName": "Pie",
|
||||
"name": "Pie Chart",
|
||||
"storyTags": [],
|
||||
"effectiveTags": [],
|
||||
"category": "PRIMARY",
|
||||
"decision": "KEEP",
|
||||
"candidate": null,
|
||||
"reason": "Representative story or distinct reference page."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "src/chart/radar-chart.stories.tsx",
|
||||
"title": "Chart/Radar Chart",
|
||||
"metaTags": [],
|
||||
"stories": [
|
||||
{
|
||||
"id": "chart-radar-chart--radar",
|
||||
"exportName": "Radar",
|
||||
"name": "Radar Chart",
|
||||
"storyTags": [],
|
||||
"effectiveTags": [],
|
||||
"category": "PRIMARY",
|
||||
"decision": "KEEP",
|
||||
"candidate": null,
|
||||
"reason": "Representative story or distinct reference page."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "src/chart/radial-chart.stories.tsx",
|
||||
"title": "Chart/Radial Chart",
|
||||
"metaTags": [],
|
||||
"stories": [
|
||||
{
|
||||
"id": "chart-radial-chart--radial",
|
||||
"exportName": "Radial",
|
||||
"name": "Radial Chart",
|
||||
"storyTags": [],
|
||||
"effectiveTags": [],
|
||||
"category": "PRIMARY",
|
||||
"decision": "KEEP",
|
||||
"candidate": null,
|
||||
"reason": "Representative story or distinct reference page."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "src/components/accordion.stories.tsx",
|
||||
"title": "Components/Disclosure/Accordion",
|
||||
|
||||
Reference in new issue
Block a user