@hirobius/design-system 0.8.1 → 0.9.0
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 +34 -39
- package/dist/hirobius-ui.js +150 -131
- package/dist/manifest.js +3 -3
- package/dist/mui.js +26 -0
- package/dist/styles.css +5 -0
- package/dist/tokens.css +1 -1
- package/dist/tokens.js +6 -0
- package/dist/types/src/app/components/badge.d.ts +1 -1
- package/dist/types/src/app/components/button.d.ts +1 -0
- package/dist/types/src/app/design-system/generated-token-refs.d.ts +8 -0
- package/dist/types/src/app/design-system/generated-token-values.d.ts +6 -0
- package/dist/types/src/index.d.ts +43 -0
- package/dist/types/src/mui/index.d.ts +64 -0
- package/dist/variables.css +8 -0
- package/hirobius.tokens.json +43 -0
- package/package.json +8 -2
- package/public/hds-manifest.json +53 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Hirobius Design System
|
|
1
|
+
# Hirobius Design System
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A publishable React + TypeScript component library, backed by a governed design-token pipeline, a documentation site, and an automated verification suite — all in one repository.
|
|
4
4
|
|
|
5
5
|
## Using the published package
|
|
6
6
|
|
|
@@ -46,58 +46,54 @@ pnpm test:layout
|
|
|
46
46
|
pnpm check:size
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
##
|
|
49
|
+
## Architecture
|
|
50
50
|
|
|
51
|
-
HDS
|
|
51
|
+
HDS is built around three structural rules:
|
|
52
52
|
|
|
53
|
-
- Strict semantics
|
|
54
|
-
- Polymorphism
|
|
55
|
-
- 12-column grid
|
|
53
|
+
- **Strict semantics** — public surfaces prefer system primitives such as `HdsStack`, `HdsGrid`, `HdsSurface`, `HdsTextLockup`, `DocLayout`, and `CaseStudyLayout` instead of raw layout divs or ad hoc CSS.
|
|
54
|
+
- **Polymorphism** — primitives preserve semantic HTML while staying composable through governed APIs such as `forwardRef`, `as`, and layout slots.
|
|
55
|
+
- **12-column grid** — page structure follows a consistent editorial grid: readable center columns, intentional breakout zones, and explicit `gap` ownership rather than one-off spacing math.
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
Source-of-truth files:
|
|
58
58
|
|
|
59
|
-
- `hirobius.tokens.json
|
|
60
|
-
- `public/hds-manifest.json
|
|
61
|
-
- `src/app/data/component-api.json
|
|
62
|
-
- `DESIGN.md
|
|
63
|
-
- `DESIGN-HANDOFF.md
|
|
59
|
+
- `hirobius.tokens.json` — token values and alias chain.
|
|
60
|
+
- `public/hds-manifest.json` — machine-readable system inventory, metadata, and docs linkage.
|
|
61
|
+
- `src/app/data/component-api.json` — generated prop tables and reflected component API.
|
|
62
|
+
- `DESIGN.md` — lean visual spec for agents and engineers.
|
|
63
|
+
- `DESIGN-HANDOFF.md` — verbose visual mirror for handoff and review.
|
|
64
64
|
|
|
65
|
-
## Editorial Enterprise
|
|
65
|
+
## Visual direction: Editorial Enterprise
|
|
66
66
|
|
|
67
|
-
The governing
|
|
68
|
-
|
|
69
|
-
In practice that means:
|
|
67
|
+
The governing direction is "Editorial Enterprise" — enterprise rigor with editorial pacing. It favors sharp hierarchy, open whitespace, monochrome neutrals, and a single electric-blue accent. In practice:
|
|
70
68
|
|
|
71
69
|
- documentation reads like a designed publication, not a component dump
|
|
72
70
|
- cards are used sparingly; whitespace, rails, dividers, and bands carry structure first
|
|
73
|
-
- motion
|
|
74
|
-
- surfaces, spacing, and type are token-governed so the visual language stays coherent across
|
|
75
|
-
|
|
76
|
-
## Autonomous agentic workflow
|
|
77
|
-
|
|
78
|
-
Regression prevention is intentionally layered.
|
|
71
|
+
- motion clarifies rather than decorates
|
|
72
|
+
- surfaces, spacing, and type are token-governed, so the visual language stays coherent across the docs site and any consuming app
|
|
79
73
|
|
|
80
|
-
|
|
74
|
+
## Verification workflow
|
|
81
75
|
|
|
82
|
-
|
|
76
|
+
Regression prevention is layered:
|
|
83
77
|
|
|
84
|
-
|
|
78
|
+
- `CLAUDE.md` is the operating contract — agent execution protocol, UI guardrails, required validation steps, and the self-heal requirement before a task is considered done.
|
|
79
|
+
- `scripts/self-heal.mjs` (`pnpm run heal`) runs the local static and smoke checks, captures failures, and gives a consistent path to fix type, layout, and runtime drift.
|
|
80
|
+
- The Playwright suite covers accessibility, layout integrity, collision detection, responsiveness, and visual regression, so changes that break containment, overlap, or responsive behavior fail automatically.
|
|
85
81
|
|
|
86
|
-
|
|
82
|
+
Typical loop:
|
|
87
83
|
|
|
88
|
-
1. Change code
|
|
84
|
+
1. Change code within the token and component constraints.
|
|
89
85
|
2. Run `pnpm typecheck` and `pnpm run heal`.
|
|
90
86
|
3. Let Playwright catch runtime and visual regressions.
|
|
91
|
-
4. If a regression
|
|
92
|
-
5.
|
|
87
|
+
4. If self-healing fixes a regression, log the root cause and resolution.
|
|
88
|
+
5. Update the verification checklist and ship.
|
|
93
89
|
|
|
94
90
|
## Bundle and release hygiene
|
|
95
91
|
|
|
96
|
-
This repo tracks both runtime quality and size drift:
|
|
97
|
-
|
|
98
92
|
- `pnpm check:size` builds the library bundle and runs `size-limit`.
|
|
99
93
|
- `pnpm perf:budget` runs Lighthouse CI assertions for page performance budgets.
|
|
100
|
-
- `pnpm check:release` runs the full release gate
|
|
94
|
+
- `pnpm check:release` runs the full release gate (accessibility, responsive, collision, visual, and bundle-size checks).
|
|
95
|
+
|
|
96
|
+
Releases are cut with [Changesets](https://github.com/changesets/changesets): a merged changeset opens a "Version Packages" PR, and merging that PR publishes the new version to public npm via `.github/workflows/release.yml`.
|
|
101
97
|
|
|
102
98
|
## Repository shape
|
|
103
99
|
|
|
@@ -116,9 +112,8 @@ public/
|
|
|
116
112
|
## Primary docs
|
|
117
113
|
|
|
118
114
|
- [`docs/CONSUMING.md`](docs/CONSUMING.md) — installing & using the published package
|
|
119
|
-
- `CLAUDE.md`
|
|
120
|
-
- `DESIGN.md`
|
|
121
|
-
- `DESIGN-HANDOFF.md`
|
|
122
|
-
- `
|
|
123
|
-
- `
|
|
124
|
-
- `SYSTEMS_REGISTRY.md`
|
|
115
|
+
- `CLAUDE.md` — agent operating contract
|
|
116
|
+
- `DESIGN.md` — lean visual spec
|
|
117
|
+
- `DESIGN-HANDOFF.md` — verbose visual mirror
|
|
118
|
+
- `TOKEN_GOVERNANCE.md` — token system rules
|
|
119
|
+
- `SYSTEMS_REGISTRY.md` — systems & guardrail registry
|