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/react@35.0.0
Major Changes
#1883
310e6553
Thanks @siddharthkp! -ActionList2
exported types are now prefixed withActionList
:ActionMenu2
exported types are now prefixed withActionMenu
:#1893
17ef5ef8
Thanks @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
d4023572
Thanks @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:
items
prop, useActionList
insideActionMenu
anchorContent
onActionMenu
, useActionMenu.Button
withchildren
onAction
prop onActionMenu
, useonSelect
prop onActionList.Item
groupMetadata
onActionMenu
, useActionList.Group
overlayProps
onActionMenu
, useActionMenu.Overlay
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.
#1898
d6d1ca4c
Thanks @siddharthkp! - ### DropdownMenuDropdownMenu has been deprecated in favor of ActionMenu with ActionList
See example with selection: https://primer.style/react/ActionMenu#with-selection
Migration guide:
items
prop, useActionList
insideActionMenu
selectionVariant="single"
onActionList
to set the right semantics for selectionselectedItem
prop, useselected
prop onActionList.Item
renderAnchor
andplaceholder
props onDropdownMenu
, useActionMenu.Button
orActionMenu.Anchor
onChange
prop onDropdownMenu
, useonSelect
prop onActionList.Item
groupMetadata
onDropdownMenu
, useActionList.Group
overlayProps
onDropdownMenu
, useActionMenu.Overlay
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.
drafts/DropdownMenu2
DropdownMenu2 has been removed in favor of ActionMenu with ActionList
#1879
fdd6915a
Thanks @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
df757521
Thanks @colebemis! -PageLayout
is being graduated from thedrafts
bundle to themain
bundle.To upgrade, rewrite your imports accordingly:
#1881
8cd12439
Thanks @pksjce! - ### SelectMenuSelectMenu
has been deprecated. Please useActionMenu
instead.See https://primer.style/react/ActionMenu for more migration examples.
Dropdown
Dropdown
has been deprecated. Please useActionMenu
instead.See https://primer.style/react/ActionMenu for more migration examples.
Flex
Flex
has been deprecated. Please useBox
instead.Grid
Grid
has been deprecated. Please useActionMenu
instead.BorderBox
BorderBox
has been deprecated. Please useBox
instead.Position
Position
has been deprecated. Please useBox
instead.Minor Changes
eebb3f27
Thanks @mperrotti! - Adds CheckboxGroup and RadioGroup components to replace the ChoiceFieldset componentPatch Changes
ecbf923e
Thanks @mperrotti! - Makes it possible to render leading and trailing visuals in TextInputWithTokens just like we do in TextInput