File tree Expand file tree Collapse file tree 3 files changed +31
-7
lines changed Expand file tree Collapse file tree 3 files changed +31
-7
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @primer/react ' : major
3
+ ---
4
+
5
+ ` ActionList2 ` exported types are now prefixed with ` ActionList ` :
6
+
7
+ ```
8
+ ListProps → ActionListProps
9
+ GroupProps → ActionListGroupProps
10
+ ItemProps → ActionListItemProps
11
+ DescriptionProps → ActionListDescriptionProps
12
+ LeadingVisualProps → ActionListLeadingVisualProps,
13
+ TrailingVisualProps → ActionListTrailingVisualProps
14
+ ```
15
+
16
+ ` ActionMenu2 ` exported types are now prefixed with ` ActionMenu ` :
17
+
18
+ ```
19
+ MenuButtonProps → ActionMenuButtonProps
20
+ MenuAnchorProps → ActionMenuAnchorProps
21
+ ```
Original file line number Diff line number Diff line change @@ -7,10 +7,13 @@ import {Description} from './Description'
7
7
import { LeadingVisual , TrailingVisual } from './Visuals'
8
8
9
9
export type { ListProps as ActionListProps } from './List'
10
- export type { GroupProps } from './Group'
11
- export type { ItemProps } from './Item'
12
- export type { DescriptionProps } from './Description'
13
- export type { LeadingVisualProps , TrailingVisualProps } from './Visuals'
10
+ export type { GroupProps as ActionListGroupProps } from './Group'
11
+ export type { ItemProps as ActionListItemProps } from './Item'
12
+ export type { DescriptionProps as ActionListDescriptionProps } from './Description'
13
+ export type {
14
+ LeadingVisualProps as ActionListLeadingVisualProps ,
15
+ TrailingVisualProps as ActionListTrailingVisualProps
16
+ } from './Visuals'
14
17
15
18
/**
16
19
* Collection of list-related components.
Original file line number Diff line number Diff line change @@ -64,15 +64,15 @@ const Menu: React.FC<ActionMenuProps> = ({
64
64
)
65
65
}
66
66
67
- export type MenuAnchorProps = { children : React . ReactElement }
68
- const Anchor = React . forwardRef < AnchoredOverlayProps [ 'anchorRef' ] , MenuAnchorProps > (
67
+ export type ActionMenuAnchorProps = { children : React . ReactElement }
68
+ const Anchor = React . forwardRef < AnchoredOverlayProps [ 'anchorRef' ] , ActionMenuAnchorProps > (
69
69
( { children, ...anchorProps } , anchorRef ) => {
70
70
return React . cloneElement ( children , { ...anchorProps , ref : anchorRef } )
71
71
}
72
72
)
73
73
74
74
/** this component is syntactical sugar 🍭 */
75
- export type MenuButtonProps = ButtonProps
75
+ export type ActionMenuButtonProps = ButtonProps
76
76
const MenuButton = React . forwardRef < AnchoredOverlayProps [ 'anchorRef' ] , ButtonProps > ( ( props , anchorRef ) => {
77
77
return (
78
78
< Anchor ref = { anchorRef } >
You can’t perform that action at this time.
0 commit comments