Skip to content

Commit

Permalink
chore: export GroupedListV2 types (#26052)
Browse files Browse the repository at this point in the history
* chore: export GroupedListV2 types

Exports updated to mirror GroupedList.

* Change files
  • Loading branch information
spmonahan authored Dec 20, 2022
1 parent 0d8c7dc commit cf10f5b
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "chore: export GroupedListV2 types",
"packageName": "@fluentui/react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
28 changes: 26 additions & 2 deletions packages/react/etc/react.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2012,8 +2012,6 @@ export class GroupedListSection extends React_2.Component<IGroupedListSectionPro
render(): JSX.Element;
}

// Warning: (ae-forgotten-export) The symbol "IGroupedListV2Props" needs to be exported by the entry point index.d.ts
//
// @public
export const GroupedListV2_unstable: React_2.FunctionComponent<IGroupedListV2Props>;

Expand Down Expand Up @@ -6128,6 +6126,32 @@ export interface IGroupedListStyles {
root: IStyle;
}

// @public (undocumented)
export interface IGroupedListV2Props extends IGroupedListProps {
groupExpandedVersion?: {};
listRef?: React_2.Ref<List>;
onRenderCell: (nestingDepth?: number, item?: any, index?: number, group?: IGroup) => React_2.ReactNode;
version?: {};
}

// @public (undocumented)
export interface IGroupedListV2State {
// (undocumented)
compact?: IGroupedListV2Props['compact'];
// (undocumented)
groupExpandedVersion: {};
// (undocumented)
groups?: IGroup[];
// (undocumented)
items?: IGroupedListV2Props['items'];
// (undocumented)
listProps?: IGroupedListV2Props['listProps'];
// (undocumented)
selectionMode?: IGroupedListV2Props['selectionMode'];
// (undocumented)
version: {};
}

// @public (undocumented)
export interface IGroupFooterProps extends IGroupDividerProps {
styles?: IStyleFunctionOrObject<IGroupFooterStyleProps, IGroupFooterStyles>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ const GroupedListV2: React.FunctionComponent<IGroupedListV2Props> = styled<
GroupedListV2.displayName = 'GroupedListV2_unstable';

export { GroupedListV2 as GroupedListV2_unstable };
export type { IGroupedListV2Props } from './GroupedListV2.types';
4 changes: 3 additions & 1 deletion packages/react/src/components/GroupedList/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ export type { IGroupHeaderStyleProps, IGroupHeaderStyles, IGroupHeaderCheckboxPr
export type { IGroupFooterStyleProps, IGroupFooterStyles } from './GroupFooter.types';
export type { IGroupShowAllStyleProps, IGroupShowAllStyles } from './GroupShowAll.types';

export { GroupedListV2_unstable } from './GroupedListV2';
export * from './GroupedListV2';
export * from './GroupedListV2.base';
export * from './GroupedListV2.types';
2 changes: 2 additions & 0 deletions packages/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@ export type {
IGroupedListSectionProps,
IGroupedListSectionState,
IGroupedListState,
IGroupedListV2Props,
IGroupedListV2State,
} from './GroupedList';
export {
ExpandingCard,
Expand Down

0 comments on commit cf10f5b

Please sign in to comment.