chore: version packages#62
Merged
Merged
Conversation
|
Tip All tests passed and all changes approved!🟢 UI Tests: 59 tests unchanged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@code-sherpas/pharos-react@0.10.0
Minor Changes
a3f5ef3: Add
IconButtonatom — icon-only pressable control. Dedicated atom rather than a<Button size="icon">variant (Decision D13, 2026-04-30): six of eight top-tier DSes ship a dedicatedIconButton(Material 3, MUI, Chakra, Radix Themes, IBM Carbon, plus Mantine'sActionIcon), and a dedicated atom enforcesaria-label(oraria-labelledby) at the type level instead of leaving WCAG 4.1.2 compliance as a runtime warning the way Chakra / Mantine do.Public API mirrors Button:
intent="primary | secondary | ghost | destructive"×size="sm | md | lg"× native<button>props × Base UIrenderprop for composition (<IconButton render={<Link to="/next" />} aria-label="Next">). Defaults:intent="ghost"(the dominant icon-only case is low-emphasis — close, dismiss, toolbar action),size="md". Square dimensions matching the Button height grid (32 / 40 / 48 px);border-radius: var(--pharos-radius-full)produces a perfect circle. Direct-child> svgselector sizes Lucide icons (which ship with hardcodedwidth="24" height="24") to 16 / 20 / 24 px to match the icon slot.isLoadingprop wired into the atom because the icon-only case is materially worse without it: with a Button the consumer can compose<Button disabled><Spinner /><span>Saving</span></Button>, but with an IconButton the slot has to be swapped (icon while idle, Spinner while loading), forcing two render branches at every async call-site. SettingisLoadingswaps the slot for<Spinner size={size}/>, setsdisabled, and exposesaria-busy="true".No integrated Tooltip (diverges from IBM Carbon's mandatory tooltip):
aria-labelalready satisfies WCAG 4.1.2; tooltip is a separate composition concern and a separate atom (not yet shipped). Noselectedtoggle state in v1: no Alexandria call-site exercises the toggle pattern today; additive when needed.Adoption contract documented in
NAMING-decisions.md— the release pairs with an Alexandria PR that replacesCloseButton,CloseButtonCircle,NextCircleButton,PreviousCircleButtonwith the corresponding<IconButton>mappings, and folds the icon-only call-sites ofAsyncLoadingButton/PublishButton/UnpublishButton/AddButtoninto the atom's built-inisLoading.