44
55``` ts
66
7- import type { OnUpdateOverflow } from ' @fluentui/priority-overflow' ;
7+ import { OnUpdateItemVisibility } from ' @fluentui/priority-overflow' ;
8+ import { OnUpdateOverflow } from ' @fluentui/priority-overflow' ;
89import type { OverflowDividerEntry } from ' @fluentui/priority-overflow' ;
10+ import { OverflowEventPayload } from ' @fluentui/priority-overflow' ;
911import type { OverflowGroupState } from ' @fluentui/priority-overflow' ;
1012import type { OverflowItemEntry } from ' @fluentui/priority-overflow' ;
11- import type { OverflowOptions } from ' @fluentui/priority-overflow' ;
13+ import { OverflowOptions } from ' @fluentui/priority-overflow' ;
1214import type { OverflowSnapshot } from ' @fluentui/priority-overflow' ;
1315import * as React_2 from ' react' ;
1416
@@ -28,15 +30,65 @@ export const DATA_OVERFLOWING = "data-overflowing";
2830export interface OnOverflowChangeData extends OverflowState {
2931}
3032
33+ export { OnUpdateItemVisibility }
34+
35+ export { OnUpdateOverflow }
36+
3137// @public
32- export const Overflow: React_2 .ForwardRefExoticComponent <Partial <Pick <OverflowOptions , " padding " | " overflowDirection" | " overflowAxis " | " minimumVisible" | " hasHiddenItems" >> & {
38+ export const Overflow: React_2 .ForwardRefExoticComponent <Partial <Pick <OverflowOptions , " overflowAxis " | " overflowDirection" | " padding " | " minimumVisible" | " hasHiddenItems" >> & {
3339 children: React_2 .ReactElement ;
3440 onOverflowChange? : (ev : null , data : OverflowState ) => void ;
3541} & React_2 .RefAttributes <unknown >>;
3642
43+ // @public
44+ export type OverflowComponentState = UseOverflowContainerReturn <HTMLElement > & {
45+ ref: React_2 .Ref <HTMLElement >;
46+ className? : string ;
47+ children: React_2 .ReactElement ;
48+ };
49+
50+ // @public (undocumented)
51+ export interface OverflowContextValue {
52+ // (undocumented)
53+ containerRef? : React_2 .RefObject <HTMLElement | null >;
54+ // (undocumented)
55+ forceUpdateOverflow: () => void ;
56+ // (undocumented)
57+ getSnapshot: () => OverflowSnapshot ;
58+ // @deprecated (undocumented)
59+ groupVisibility: Record <string , OverflowGroupState >;
60+ // @deprecated (undocumented)
61+ hasOverflow: boolean ;
62+ // @deprecated (undocumented)
63+ itemVisibility: Record <string , boolean >;
64+ // (undocumented)
65+ registerDivider: (divider : OverflowDividerEntry ) => () => void ;
66+ // (undocumented)
67+ registerItem: (item : OverflowItemEntry ) => () => void ;
68+ // (undocumented)
69+ registerOverflowMenu: (el : HTMLElement ) => () => void ;
70+ // (undocumented)
71+ subscribe: (listener : () => void ) => () => void ;
72+ // (undocumented)
73+ updateOverflow: (padding ? : number ) => void ;
74+ }
75+
76+ // @public
77+ export type OverflowContextValues = {
78+ overflow: OverflowContextValue ;
79+ };
80+
3781// @public
3882export const OverflowDivider: React_2 .ForwardRefExoticComponent <OverflowDividerProps & React_2 .RefAttributes <unknown >>;
3983
84+ // @public
85+ export type OverflowDividerProps = {
86+ groupId: string ;
87+ children: React_2 .ReactElement ;
88+ };
89+
90+ export { OverflowEventPayload }
91+
4092// @public
4193export const OverflowItem: React_2 .ForwardRefExoticComponent <OverflowItemProps & React_2 .RefAttributes <unknown >>;
4294
@@ -53,25 +105,44 @@ export type OverflowItemProps = {
53105 priority? : number ;
54106});
55107
56- // @public
108+ // @public (undocumented)
57109export type OverflowProps = Partial <Pick <OverflowOptions , ' overflowAxis' | ' overflowDirection' | ' padding' | ' minimumVisible' | ' hasHiddenItems' >> & {
58110 children: React_2 .ReactElement ;
59111 onOverflowChange? : (ev : null , data : OverflowState ) => void ;
60112};
61113
114+ // @public
115+ export const OverflowProvider: React_2 .Provider <OverflowContextValue >;
116+
62117// @public
63118export const OverflowReorderObserver: React_2 .FC ;
64119
120+ // @public (undocumented)
121+ export interface OverflowState {
122+ // (undocumented)
123+ groupVisibility: Record <string , OverflowGroupState >;
124+ // (undocumented)
125+ hasOverflow: boolean ;
126+ // (undocumented)
127+ itemVisibility: Record <string , boolean >;
128+ }
129+
130+ // @public
131+ export const renderOverflow_unstable: (state : OverflowComponentState , contextValues : OverflowContextValues ) => React_2 .ReactElement ;
132+
65133// @public (undocumented)
66134export function useIsOverflowGroupVisible(id : string ): OverflowGroupState ;
67135
68136// @public (undocumented)
69137export function useIsOverflowItemVisible(id : string ): boolean ;
70138
139+ // @public
140+ export const useOverflow_unstable: (props : OverflowProps , ref : React_2 .Ref <HTMLElement >) => OverflowComponentState ;
141+
71142// @internal (undocumented)
72143export const useOverflowContainer: <TElement extends HTMLElement >(update : OnUpdateOverflow , options : Omit <OverflowOptions , " onUpdateOverflow" >) => UseOverflowContainerReturn <TElement >;
73144
74- // @internal (undocumented)
145+ // @public (undocumented)
75146export interface UseOverflowContainerReturn <TElement extends HTMLElement > extends Pick <OverflowContextValue , ' registerItem' | ' updateOverflow' | ' forceUpdateOverflow' | ' registerOverflowMenu' | ' registerDivider' | ' getSnapshot' | ' subscribe' > {
76147 containerRef: React_2 .RefObject <TElement | null >;
77148}
@@ -82,6 +153,9 @@ export function useOverflowContext(): OverflowContextValue;
82153// @internal (undocumented)
83154export function useOverflowContext<SelectedValue >(selector : (context : OverflowContextValue ) => SelectedValue ): SelectedValue ;
84155
156+ // @internal
157+ export const useOverflowContextValues_unstable: (state : OverflowComponentState ) => OverflowContextValues ;
158+
85159// @public (undocumented)
86160export const useOverflowCount: () => number ;
87161
@@ -98,6 +172,9 @@ export function useOverflowMenu<TElement extends HTMLElement>(id?: string): {
98172 isOverflowing: boolean ;
99173};
100174
175+ // @public (undocumented)
176+ export const useOverflowStyles_unstable: (state : OverflowComponentState ) => OverflowComponentState ;
177+
101178// @public
102179export function useOverflowVisibility(): {
103180 itemVisibility: Record <string , boolean >;
0 commit comments