@hirobius/design-system 0.16.0 → 0.18.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 +41 -69
- package/codemods/patterns-subpath.mjs +254 -0
- package/codemods/patterns-subpath.names.json +26 -0
- package/dist/chunks/LanguageContext-CH_bwzCq.js +83 -0
- package/dist/chunks/TokenDisplayContext-evZi_214.js +18 -0
- package/dist/chunks/activity-feed-C8_e-Btq.js +19955 -0
- package/dist/contexts.js +17 -16
- package/dist/hirobius-ui.js +3652 -23311
- package/dist/manifest.js +5 -5
- package/dist/patterns.js +423 -0
- package/dist/static.css +4 -4
- package/dist/styles.css +1 -1
- package/dist/tokens.css +1 -1
- package/dist/tokens.js +34 -13
- package/dist/types/src/app/components/activity-feed.d.ts +6 -4
- package/dist/types/src/app/components/app-shell.d.ts +6 -4
- package/dist/types/src/app/components/asset-img.d.ts +3 -1
- package/dist/types/src/app/components/avatar-group.d.ts +3 -3
- package/dist/types/src/app/components/avatar.d.ts +3 -3
- package/dist/types/src/app/components/badge.d.ts +3 -3
- package/dist/types/src/app/components/blockquote.d.ts +3 -3
- package/dist/types/src/app/components/breadcrumb.d.ts +3 -3
- package/dist/types/src/app/components/button-group.d.ts +3 -3
- package/dist/types/src/app/components/button.d.ts +6 -6
- package/dist/types/src/app/components/calendar.d.ts +3 -1
- package/dist/types/src/app/components/callout.d.ts +4 -4
- package/dist/types/src/app/components/card.d.ts +5 -5
- package/dist/types/src/app/components/carousel.d.ts +6 -4
- package/dist/types/src/app/components/checkbox.d.ts +3 -3
- package/dist/types/src/app/components/circular-progress.d.ts +3 -3
- package/dist/types/src/app/components/code-block.d.ts +20 -18
- package/dist/types/src/app/components/command-palette.d.ts +9 -9
- package/dist/types/src/app/components/component-instance-matrix.d.ts +1 -1
- package/dist/types/src/app/components/disclosure.d.ts +3 -3
- package/dist/types/src/app/components/divider.d.ts +4 -4
- package/dist/types/src/app/components/doc-link-card.d.ts +6 -4
- package/dist/types/src/app/components/error-pattern.d.ts +3 -1
- package/dist/types/src/app/components/field.d.ts +4 -4
- package/dist/types/src/app/components/file-input.d.ts +7 -5
- package/dist/types/src/app/components/hds-tooltip.d.ts +11 -11
- package/dist/types/src/app/components/heading-stack.d.ts +6 -6
- package/dist/types/src/app/components/hover-card.d.ts +1 -1
- package/dist/types/src/app/components/image-lightbox.d.ts +2 -0
- package/dist/types/src/app/components/inline-code.d.ts +3 -3
- package/dist/types/src/app/components/input-group.d.ts +3 -3
- package/dist/types/src/app/components/input.d.ts +5 -5
- package/dist/types/src/app/components/kbd.d.ts +3 -3
- package/dist/types/src/app/components/metadata-list.d.ts +3 -3
- package/dist/types/src/app/components/nav-group.d.ts +3 -3
- package/dist/types/src/app/components/nav-item.d.ts +10 -8
- package/dist/types/src/app/components/overflow-list.d.ts +3 -1
- package/dist/types/src/app/components/page.d.ts +3 -1
- package/dist/types/src/app/components/progress.d.ts +3 -3
- package/dist/types/src/app/components/radio.d.ts +3 -3
- package/dist/types/src/app/components/reveal.d.ts +3 -1
- package/dist/types/src/app/components/segmented-control.d.ts +31 -31
- package/dist/types/src/app/components/select.d.ts +3 -3
- package/dist/types/src/app/components/selectable-card.d.ts +3 -3
- package/dist/types/src/app/components/side-nav.d.ts +6 -4
- package/dist/types/src/app/components/skeleton.d.ts +3 -3
- package/dist/types/src/app/components/slider.d.ts +3 -3
- package/dist/types/src/app/components/spinner.d.ts +3 -3
- package/dist/types/src/app/components/stacked-card-rail.d.ts +32 -0
- package/dist/types/src/app/components/stat.d.ts +3 -3
- package/dist/types/src/app/components/status-dot.d.ts +4 -4
- package/dist/types/src/app/components/status-list-item.d.ts +3 -3
- package/dist/types/src/app/components/stepper.d.ts +6 -4
- package/dist/types/src/app/components/surface.d.ts +4 -4
- package/dist/types/src/app/components/table.d.ts +22 -11
- package/dist/types/src/app/components/tag.d.ts +4 -4
- package/dist/types/src/app/components/text.d.ts +3 -3
- package/dist/types/src/app/components/textarea.d.ts +4 -4
- package/dist/types/src/app/components/time-input.d.ts +3 -3
- package/dist/types/src/app/components/toast.d.ts +3 -3
- package/dist/types/src/app/components/toggle-button.d.ts +4 -4
- package/dist/types/src/app/components/toggle.d.ts +3 -3
- package/dist/types/src/app/components/token.d.ts +16 -16
- package/dist/types/src/app/components/toolbar.d.ts +1 -1
- package/dist/types/src/app/components/tooltip.d.ts +2 -2
- package/dist/types/src/app/components/top-nav.d.ts +3 -1
- package/dist/types/src/app/components/tree-list.d.ts +3 -1
- package/dist/types/src/app/design-system/generated-token-refs.d.ts +36 -0
- package/dist/types/src/app/design-system/generated-token-values.d.ts +10 -10
- package/dist/types/src/app/design-system/tokens.d.ts +16 -0
- package/dist/types/src/index.d.ts +193 -8
- package/dist/types/src/patterns.d.ts +37 -0
- package/dist/variables.css +42 -22
- package/hirobius.tokens.json +178 -57
- package/package.json +21 -11
- package/public/hds-manifest.json +473 -445
- package/dist/chunks/TokenDisplayContext-B3gxyQN7.js +0 -96
package/package.json
CHANGED
|
@@ -17,9 +17,10 @@
|
|
|
17
17
|
"type": "git",
|
|
18
18
|
"url": "git+https://github.com/hirobius/hds.git"
|
|
19
19
|
},
|
|
20
|
+
"author": "Adrian Milsap",
|
|
20
21
|
"license": "SEE LICENSE IN NOTICE.md",
|
|
21
22
|
"private": false,
|
|
22
|
-
"version": "0.
|
|
23
|
+
"version": "0.18.0",
|
|
23
24
|
"engines": {
|
|
24
25
|
"node": ">=20",
|
|
25
26
|
"pnpm": ">=8"
|
|
@@ -85,13 +86,20 @@
|
|
|
85
86
|
"import": "./dist/scroll.js",
|
|
86
87
|
"default": "./dist/scroll.js"
|
|
87
88
|
},
|
|
89
|
+
"./patterns": {
|
|
90
|
+
"types": "./dist/types/src/patterns.d.ts",
|
|
91
|
+
"import": "./dist/patterns.js",
|
|
92
|
+
"default": "./dist/patterns.js"
|
|
93
|
+
},
|
|
88
94
|
"./package.json": "./package.json"
|
|
89
95
|
},
|
|
90
96
|
"files": [
|
|
91
97
|
"dist",
|
|
92
98
|
"NOTICE.md",
|
|
93
99
|
"hirobius.tokens.json",
|
|
94
|
-
"public/hds-manifest.json"
|
|
100
|
+
"public/hds-manifest.json",
|
|
101
|
+
"codemods/patterns-subpath.mjs",
|
|
102
|
+
"codemods/patterns-subpath.names.json"
|
|
95
103
|
],
|
|
96
104
|
"publishConfig": {
|
|
97
105
|
"registry": "https://registry.npmjs.org",
|
|
@@ -166,6 +174,7 @@
|
|
|
166
174
|
"@tailwindcss/vite": "^4.2.4",
|
|
167
175
|
"@testing-library/dom": "^10.4.0",
|
|
168
176
|
"@testing-library/react": "^16.1.0",
|
|
177
|
+
"@testing-library/user-event": "^14.6.7",
|
|
169
178
|
"@types/react": "^18.3.0",
|
|
170
179
|
"@types/react-dom": "^18.3.0",
|
|
171
180
|
"@types/three": "^0.183.1",
|
|
@@ -225,6 +234,9 @@
|
|
|
225
234
|
"lint-staged": {
|
|
226
235
|
"*.{ts,tsx,js,jsx,mjs,cjs,json,md,mdx,css,scss,html,yaml,yml}": "prettier --write"
|
|
227
236
|
},
|
|
237
|
+
"bin": {
|
|
238
|
+
"hds-patterns-subpath": "codemods/patterns-subpath.mjs"
|
|
239
|
+
},
|
|
228
240
|
"scripts": {
|
|
229
241
|
"_comment:a11y-high-value": "The following check:* validators are high-value accessibility checks that catch real violations (check:focus found 1 missing focus class). Kept dormant/manual-only to avoid pre-commit performance regression. Candidates to wire into pretest after CI stability review.",
|
|
230
242
|
"_comment:editorconfig-version": "check:mojibake routes through scripts/lib/mojibake.mjs, which pins EC_VERSION=v3.7.0. The editorconfig-checker@6.1.x npm wrapper expects binary v3.7.0 but downloads the latest Go release (v3.8.0, 2026-06-25), so a fresh install fails with a version mismatch (binary != config). Pinning the download to the wrapper's expected version keeps CI + pre-commit green. Bump both together when upgrading the npm package. The wrapper also SKIPS gracefully (like check:secrets) when the binary download is network-blocked (remote agent sessions), so hooks no longer need --no-verify (#18/#52); the gate still enforces wherever the binary is present.",
|
|
@@ -291,9 +303,11 @@
|
|
|
291
303
|
"check:secrets": "node scripts/check-secrets.mjs",
|
|
292
304
|
"check:security": "node scripts/check-security-baseline.mjs",
|
|
293
305
|
"check:semantic-report": "node scripts/audit-tokens.mjs --report-only",
|
|
294
|
-
"check:size": "pnpm build:lib && size-limit",
|
|
306
|
+
"check:size": "pnpm build:lib && node scripts/build-button-probe.mjs && size-limit",
|
|
295
307
|
"check:spacing": "node scripts/check-hardcoded-spacing.mjs",
|
|
308
|
+
"check:spacing-vocabulary": "node scripts/check-spacing-vocabulary.mjs",
|
|
296
309
|
"check:story-coverage": "node scripts/check-story-coverage.mjs",
|
|
310
|
+
"check:storybook-axe": "node scripts/check-storybook-axe.mjs",
|
|
297
311
|
"check:style-props": "node scripts/check-style-discipline.mjs --style-props-only",
|
|
298
312
|
"check:sync-map": "node scripts/check-sync-map.mjs",
|
|
299
313
|
"check:status-claims": "node scripts/check-status-claims.mjs --check",
|
|
@@ -346,7 +360,7 @@
|
|
|
346
360
|
"prebuild-storybook": "node scripts/generate-component-api.mjs",
|
|
347
361
|
"prebuild:lib": "node scripts/generate-component-api.mjs",
|
|
348
362
|
"prestorybook": "node scripts/generate-component-api.mjs",
|
|
349
|
-
"pretest": "node scripts/validate-manifest.mjs && node scripts/check-manifest-drift.mjs && node scripts/check-manifest-schema-semver.mjs && node scripts/audit-component-integrity.mjs --completeness && node scripts/check-source-canon.mjs && node scripts/check-binding-drift.mjs && node scripts/check-registry.mjs && node scripts/check-tenant-tokens.mjs && node scripts/check-props-exports.mjs && knip --no-exit-code && node scripts/check-dark-alias-flip.mjs && node scripts/generate-staging-inventory.mjs --check",
|
|
363
|
+
"pretest": "node scripts/validate-manifest.mjs && node scripts/check-manifest-drift.mjs && node scripts/check-manifest-schema-semver.mjs && node scripts/audit-component-integrity.mjs --completeness && node scripts/check-source-canon.mjs && node scripts/check-binding-drift.mjs && node scripts/check-registry.mjs && node scripts/check-tenant-tokens.mjs && node scripts/check-props-exports.mjs && knip --no-exit-code && node scripts/check-dark-alias-flip.mjs && node scripts/check-focus-states.mjs && node scripts/generate-staging-inventory.mjs --check",
|
|
350
364
|
"pretypecheck": "node scripts/audit-tokens.mjs --report-only",
|
|
351
365
|
"preview:build": "vite build --config preview/vite.config.mjs",
|
|
352
366
|
"promote": "node scripts/promote.mjs",
|
|
@@ -362,16 +376,10 @@
|
|
|
362
376
|
"sync-map": "node scripts/check-sync-map.mjs --gaps",
|
|
363
377
|
"sync:health": "node scripts/generate-manifest.mjs && node scripts/generate-component-api.mjs && node scripts/enrich-manifest.mjs && node scripts/build-tokens.mjs && node scripts/audit-tokens.mjs --report-only && node scripts/build-design-md.mjs",
|
|
364
378
|
"test": "vitest run --passWithNoTests",
|
|
365
|
-
"test:a11y": "echo 'RETIRED (#161): the Playwright browser suite drove the docs SPA deleted in #90 — see tests-archive/README.md. Storybook is the verification surface.' && exit 1",
|
|
366
|
-
"test:collision": "echo 'RETIRED (#161): the Playwright browser suite drove the docs SPA deleted in #90 — see tests-archive/README.md. Storybook is the verification surface.' && exit 1",
|
|
367
379
|
"test:compiler": "node -e \"import('./scripts/hds-jsx-compiler.mjs').then(m => console.log(JSON.stringify(m.compile(process.argv[1]), null, 2)))\" --",
|
|
368
380
|
"test:coverage": "vitest run --coverage",
|
|
369
381
|
"test:figma": "npx tsx scripts/figma-sync.ts",
|
|
370
|
-
"test:layout": "echo 'RETIRED (#161): the Playwright browser suite drove the docs SPA deleted in #90 — see tests-archive/README.md. Storybook is the verification surface.' && exit 1",
|
|
371
382
|
"test:phase1": "node scripts/test-phase1.mjs",
|
|
372
|
-
"test:responsive": "echo 'RETIRED (#161): the Playwright browser suite drove the docs SPA deleted in #90 — see tests-archive/README.md. Storybook is the verification surface.' && exit 1",
|
|
373
|
-
"test:visual": "echo 'RETIRED (#161): the Playwright browser suite drove the docs SPA deleted in #90 — see tests-archive/README.md. Storybook is the verification surface.' && exit 1",
|
|
374
|
-
"test:visual:update": "echo 'RETIRED (#161): the Playwright browser suite drove the docs SPA deleted in #90 — see tests-archive/README.md. Storybook is the verification surface.' && exit 1",
|
|
375
383
|
"test:watch": "vitest",
|
|
376
384
|
"tokens": "node scripts/generate-manifest.mjs && node scripts/generate-component-api.mjs && node scripts/enrich-manifest.mjs && node scripts/build-tokens.mjs && node scripts/audit-tokens.mjs --forbidden && node scripts/check-typography-discipline.mjs --overrides-only && node scripts/build-handoff.mjs && node scripts/build-design-md.mjs && node scripts/generate-llms-txt.mjs && node scripts/build-readme-counts.mjs",
|
|
377
385
|
"tokens:audit": "node scripts/audit-component-integrity.mjs --tokens",
|
|
@@ -383,6 +391,8 @@
|
|
|
383
391
|
"validate:manifest": "node scripts/validate-manifest.mjs",
|
|
384
392
|
"visual-ingest": "node scripts/visual-ingest.mjs",
|
|
385
393
|
"watch:guardrails": "nodemon --watch CLAUDE.md --watch .cursorrules --watch eslint.config.js --watch .github/workflows -e md,json,js,yml,yaml --exec \"node scripts/audit-guardrails.js\"",
|
|
386
|
-
"watch:metrics": "nodemon --watch src/app/components --watch src/app/pages --watch src/app/design-system --watch src/app/styles -e tsx,ts,css --exec \"node scripts/audit-tokens.mjs --full && node scripts/generate-manifest.mjs\""
|
|
394
|
+
"watch:metrics": "nodemon --watch src/app/components --watch src/app/pages --watch src/app/design-system --watch src/app/styles -e tsx,ts,css --exec \"node scripts/audit-tokens.mjs --full && node scripts/generate-manifest.mjs\"",
|
|
395
|
+
"consumer:usage": "node scripts/count-consumer-usage.mjs",
|
|
396
|
+
"codemod:names": "node scripts/build-codemod-pattern-names.mjs"
|
|
387
397
|
}
|
|
388
398
|
}
|