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 next/v35.0.0, this PR will be updated.
Releases
@primer/[email protected]
Major Changes
#1883
310e6553Thanks @siddharthkp! -ActionList2exported types are now prefixed withActionList:ActionMenu2exported types are now prefixed withActionMenu:#1893
17ef5ef8Thanks @siddharthkp! - ### ActionListActionList has been rewritten with a composable API, design updates and accessibility fixes.
See full list of props and examples: https://primer.style/react/ActionList
To continue to use the deprecated API for now, change the import path to
@primer/react/deprecated:You can use the one-time codemod to change your import statements automatically.
#1897
d4023572Thanks @siddharthkp! - ### ActionMenuActionMenu has been rewritten with a composable API, design updates and accessibility fixes.
See full list of props and examples: https://primer.style/react/ActionMenu
Main changes:
itemsprop, useActionListinsideActionMenuanchorContentonActionMenu, useActionMenu.ButtonwithchildrenonActionprop onActionMenu, useonSelectprop onActionList.ItemgroupMetadataonActionMenu, useActionList.GroupoverlayPropsonActionMenu, useActionMenu.OverlayTo continue to use the deprecated API for now, change the import path to
@primer/react/deprecated:You can use the one-time codemod to change your import statements automatically.
#1898
d6d1ca4cThanks @siddharthkp! - ### DropdownMenuDropdownMenu has been deprecated in favor of ActionMenu with ActionList
See example with selection: https://primer.style/react/ActionMenu#with-selection
Migration guide:
itemsprop, useActionListinsideActionMenuselectionVariant="single"onActionListto set the right semantics for selectionselectedItemprop, useselectedprop onActionList.ItemrenderAnchorandplaceholderprops onDropdownMenu, useActionMenu.ButtonorActionMenu.AnchoronChangeprop onDropdownMenu, useonSelectprop onActionList.ItemgroupMetadataonDropdownMenu, useActionList.GroupoverlayPropsonDropdownMenu, useActionMenu.OverlayTo continue to use the deprecated API for now, change the import path to
@primer/react/deprecated:You can use the one-time codemod to change your import statements automatically.
drafts/DropdownMenu2
DropdownMenu2 has been removed in favor of ActionMenu with ActionList
#1879
fdd6915aThanks @rezrah! - ### ActionListActionList now ships a composable API.
See full list of props and examples: https://primer.style/react/ActionList
To continue to use the deprecated API for now, change the import path to
@primer/react/deprecated:#1882
df757521Thanks @colebemis! -PageLayoutis being graduated from thedraftsbundle to themainbundle.To upgrade, rewrite your imports accordingly:
#1881
8cd12439Thanks @pksjce! - ### SelectMenuSelectMenuhas been deprecated. Please useActionMenuinstead.See https://primer.style/react/ActionMenu for more migration examples.
Dropdown
Dropdownhas been deprecated. Please useActionMenuinstead.See https://primer.style/react/ActionMenu for more migration examples.
Flex
Flexhas been deprecated. Please useBoxinstead.Grid
Gridhas been deprecated. Please useActionMenuinstead.BorderBox
BorderBoxhas been deprecated. Please useBoxinstead.Position
Positionhas been deprecated. Please useBoxinstead.Minor Changes
eebb3f27Thanks @mperrotti! - Adds CheckboxGroup and RadioGroup components to replace the ChoiceFieldset componentPatch Changes
ecbf923eThanks @mperrotti! - Makes it possible to render leading and trailing visuals in TextInputWithTokens just like we do in TextInput