From 101d0772b9df85ad0972b9e8bda2a152affb42ca Mon Sep 17 00:00:00 2001 From: Daniel Lu Date: Fri, 10 Jan 2025 11:49:32 -0800 Subject: [PATCH] chore: Update JSDocs and apis for release (#7595) * Update JSDocs and apis for release * typo --- packages/@react-spectrum/s2/src/CardView.tsx | 1 + packages/@react-spectrum/s2/src/TableView.tsx | 1 + packages/@react-spectrum/s2/src/Tabs.tsx | 44 +++++++++++-------- .../@react-spectrum/s2/src/TabsPicker.tsx | 17 ++++--- .../@react-stately/selection/src/types.ts | 1 + packages/react-aria-components/src/index.ts | 1 + 6 files changed, 41 insertions(+), 24 deletions(-) diff --git a/packages/@react-spectrum/s2/src/CardView.tsx b/packages/@react-spectrum/s2/src/CardView.tsx index 28745d3ae4f..8d275df67ec 100644 --- a/packages/@react-spectrum/s2/src/CardView.tsx +++ b/packages/@react-spectrum/s2/src/CardView.tsx @@ -62,6 +62,7 @@ export interface CardViewProps extends Omit, 'layout' | 'key onLoadMore?: () => void, /** Spectrum-defined styles, returned by the `style()` macro. */ styles?: StylesPropWithHeight, + /** Provides the ActionBar to render when cards are selected in the CardView. */ renderActionBar?: (selectedKeys: 'all' | Set) => ReactElement } diff --git a/packages/@react-spectrum/s2/src/TableView.tsx b/packages/@react-spectrum/s2/src/TableView.tsx index dd281833cc2..73663391b86 100644 --- a/packages/@react-spectrum/s2/src/TableView.tsx +++ b/packages/@react-spectrum/s2/src/TableView.tsx @@ -105,6 +105,7 @@ interface S2TableProps { loadingState?: LoadingState, /** Handler that is called when more items should be loaded, e.g. while scrolling near the bottom. */ onLoadMore?: () => any, + /** Provides the ActionBar to display when rows are selected in the TableView. */ renderActionBar?: (selectedKeys: 'all' | Set) => ReactElement } diff --git a/packages/@react-spectrum/s2/src/Tabs.tsx b/packages/@react-spectrum/s2/src/Tabs.tsx index 486ded1fdce..7791c902370 100644 --- a/packages/@react-spectrum/s2/src/Tabs.tsx +++ b/packages/@react-spectrum/s2/src/Tabs.tsx @@ -53,9 +53,11 @@ export interface TabsProps extends Omit