Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react-aria-components/exports/Button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ import 'client-only';

export {Button, ButtonContext} from '../src/Button';
export type {ButtonProps, ButtonRenderProps} from '../src/Button';
export type {PressEvent} from '@react-types/shared';
export type {PressEvent, FocusableElement, HoverEvent, KeyboardEvent} from '@react-types/shared';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question to the team, do we want to export it here too? What about in S2 ActionButton/Button/LinkButton where PressEvent is also re-exported? Anywhere else?

5 changes: 4 additions & 1 deletion packages/react-aria-components/exports/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,10 @@ export type {
ItemDropTarget,
RootDropTarget,
TextDropItem,
PressEvent
PressEvent,
FocusableElement,
HoverEvent,
KeyboardEvent
} from '@react-types/shared';
export type {CalendarState} from 'react-stately/useCalendarState';
export type {RangeCalendarState} from 'react-stately/useRangeCalendarState';
Expand Down