Skip to content

Add shared control primitives#2

Merged
brxs merged 1 commit into
mainfrom
codex/control-primitives
Jul 18, 2026
Merged

Add shared control primitives#2
brxs merged 1 commit into
mainfrom
codex/control-primitives

Conversation

@brxs

@brxs brxs commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • release @protocol-works/ui 0.2.0 with reusable checkbox, switch, slider, number field, segmented control, empty state, section header, modal, popover, and tooltip primitives
  • keep the package’s established Button, Input, Card, Tag, Note, and typography variants canonical instead of importing Rabbithole-specific variants
  • extend Note with optional action and dismissal support for product toast adapters
  • add Radix Tooltip as a package-owned accessibility dependency
  • document every new direct subpath export and retain the no-barrel package contract

Why

Rabbithole and the protocol.works website should consume one shared primitive layer. Product repositories should own only runtime adapters, domain composites, and genuinely product-specific visual recipes such as Rabbithole’s instrument Select.

Verification

  • npm ci
  • npm run check
  • npm pack --dry-run --workspace @protocol-works/ui
  • Rabbithole integration tested against the generated 0.2.0 tarball
  • Rabbithole formatting, lint, 37 frontend tests, production build, and dark-theme browser validation pass

@brxs
brxs marked this pull request as ready for review July 18, 2026 21:25
@brxs
brxs merged commit 79bcbd1 into main Jul 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant