@carbonid1/design-system 7.3.0 → 7.4.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 +2 -2
- package/dist/Button/Button.variants.js +1 -1
- package/dist/ContextMenu/ContextMenu.d.ts +29 -45
- package/dist/ContextMenu/ContextMenu.js +6 -33
- package/dist/Item/Item.d.ts +1 -1
- package/dist/Kbd/Kbd.js +11 -4
- package/dist/Menu/Menu.d.ts +7 -2
- package/dist/Menu/Menu.js +3 -2
- package/dist/MessageScroller/MessageScroller.js +77 -34
- package/dist/Popover/Popover.js +1 -1
- package/dist/Text/Text.d.ts +2 -2
- package/dist/Tooltip/Tooltip.js +1 -1
- package/dist/helpers/cn/cn.d.ts +2 -2
- package/dist/helpers/cn/cn.js +3 -12
- package/dist/helpers/cn/cn.tables.d.ts +51 -0
- package/dist/helpers/cn/cn.tables.js +125 -0
- package/package.json +2 -3
- package/skills/design-system/SKILL.md +46 -131
- package/skills/design-system/references/controls.md +29 -0
- package/skills/design-system/references/destructive-actions.md +10 -0
- package/skills/design-system/references/theming.md +13 -31
- package/skills/design-system/references/typeset.md +13 -0
- package/skills/design-system-package/SKILL.md +48 -57
- package/skills/design-system-package/references/release.md +9 -0
- package/skills/design-system-package/references/tokens.md +7 -0
- package/skills/design-system-package/references/verification.md +16 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Package verification
|
|
2
|
+
|
|
3
|
+
## Storybook
|
|
4
|
+
|
|
5
|
+
Run these commands from `packages/design-system`:
|
|
6
|
+
|
|
7
|
+
- `pnpm storybook` starts the standalone component browser at `http://localhost:7006`.
|
|
8
|
+
- `pnpm build-storybook` builds the static component documentation.
|
|
9
|
+
- `pnpm test:run:storybook` runs story interaction and accessibility tests through Vitest.
|
|
10
|
+
|
|
11
|
+
## Verify before you ship
|
|
12
|
+
|
|
13
|
+
- **Stories for everything visual** — `Component.stories.tsx`, one story per visual state, each rendering under both palettes × both modes (the `.storybook/preview.ts` toolbar switchers prove it in isolation before shipping). Story-level `.test()` methods for interaction behavior. **Vitest** for non-visual helpers in `src/helpers/`.
|
|
14
|
+
- **Run the story tests** with `pnpm test:run:storybook` and resolve interaction and accessibility failures before shipping.
|
|
15
|
+
- **UI/UX Pro Max accessibility review** — For any visual, interactive, or token change, invoke the UI/UX Pro Max plugin review lens when available (prefer `ui-ux-pro-max:design-system` for primitives and tokens, `ui-ux-pro-max:ui-styling` for component styling, and `ui-ux-pro-max:ui-ux-pro-max` when unsure) and let it choose the relevant checks for the diff. The review must still cover keyboard navigation, visible focus states, contrast, accessible names/ARIA, screen-reader semantics, responsive behavior, interaction states, and reduced-motion behavior where they apply. In the handoff, name the lens used and summarize findings; for non-visual package housekeeping, say it does not apply. Package rules stay authoritative over broad style suggestions.
|
|
16
|
+
- **Prove it downstream.** The real proof a change works is at least one app or fixture outside the package rendering it; a primitive that type-checks can still look wrong under a palette you never opened.
|