@@ -10,6 +10,8 @@ import { ButtonState } from '@fluentui/react-button';
1010import type { ComponentProps } from ' @fluentui/react-utilities' ;
1111import type { ComponentState } from ' @fluentui/react-utilities' ;
1212import { ContextSelector } from ' @fluentui/react-context-selector' ;
13+ import type { DistributiveOmit } from ' @fluentui/react-utilities' ;
14+ import type { DividerBaseState } from ' @fluentui/react-divider' ;
1315import type { DividerSlots } from ' @fluentui/react-divider' ;
1416import type { DividerState } from ' @fluentui/react-divider' ;
1517import type { ForwardRefComponent } from ' @fluentui/react-utilities' ;
@@ -21,17 +23,29 @@ import type { ToggleButtonProps } from '@fluentui/react-button';
2123import type { ToggleButtonState } from ' @fluentui/react-button' ;
2224
2325// @public
24- export const renderToolbar_unstable: (state : ToolbarState , contextValues : ToolbarContextValues ) => JSXElement ;
26+ export const renderToolbar_unstable: (state : ToolbarBaseState , contextValues : ToolbarContextValues ) => JSXElement ;
2527
2628// @public
2729export const renderToolbarGroup_unstable: (state : ToolbarGroupState ) => JSXElement ;
2830
2931// @public
3032export const Toolbar: ForwardRefComponent <ToolbarProps >;
3133
34+ // @public (undocumented)
35+ export type ToolbarBaseProps = Omit <ToolbarProps , ' size' >;
36+
37+ // @public (undocumented)
38+ export type ToolbarBaseState = Omit <ToolbarState , ' size' >;
39+
3240// @public
3341export const ToolbarButton: ForwardRefComponent <ToolbarButtonProps >;
3442
43+ // @public (undocumented)
44+ export type ToolbarButtonBaseProps = DistributiveOmit <ToolbarButtonProps , ' appearance' >;
45+
46+ // @public (undocumented)
47+ export type ToolbarButtonBaseState = DistributiveOmit <ToolbarButtonState , ' appearance' | ' size' | ' shape' >;
48+
3549// @public
3650export type ToolbarButtonProps = ComponentProps <ButtonSlots > & Partial <Pick <ButtonProps , ' disabled' | ' disabledFocusable' >> & {
3751 appearance? : ' primary' | ' subtle' | ' transparent' ;
@@ -59,6 +73,12 @@ export type ToolbarContextValues = {
5973// @public
6074export const ToolbarDivider: ForwardRefComponent <ToolbarDividerProps >;
6175
76+ // @public (undocumented)
77+ export type ToolbarDividerBaseProps = ToolbarDividerProps ;
78+
79+ // @public (undocumented)
80+ export type ToolbarDividerBaseState = ComponentState <Partial <DividerSlots >> & DividerBaseState ;
81+
6282// @public
6383export type ToolbarDividerProps = ComponentProps <Partial <DividerSlots >> & {
6484 vertical? : boolean ;
@@ -93,6 +113,12 @@ export type ToolbarProps = ComponentProps<ToolbarSlots> & {
93113// @public
94114export const ToolbarRadioButton: ForwardRefComponent <ToolbarRadioButtonProps >;
95115
116+ // @public (undocumented)
117+ export type ToolbarRadioButtonBaseProps = DistributiveOmit <ToolbarRadioButtonProps , ' appearance' >;
118+
119+ // @public (undocumented)
120+ export type ToolbarRadioButtonBaseState = DistributiveOmit <ToolbarRadioButtonState , ' appearance' | ' size' | ' shape' >;
121+
96122// @public
97123export type ToolbarRadioButtonProps = ComponentProps <ButtonSlots > & Partial <Pick <ToggleButtonProps , ' disabled' | ' disabledFocusable' | ' size' >> & {
98124 appearance? : ' primary' | ' subtle' | ' transparent' ;
@@ -126,6 +152,12 @@ export type ToolbarState = ComponentState<ToolbarSlots> & Required<Pick<ToolbarP
126152// @public
127153export const ToolbarToggleButton: ForwardRefComponent <ToolbarToggleButtonProps >;
128154
155+ // @public (undocumented)
156+ export type ToolbarToggleButtonBaseProps = DistributiveOmit <ToolbarToggleButtonProps , ' appearance' >;
157+
158+ // @public (undocumented)
159+ export type ToolbarToggleButtonBaseState = DistributiveOmit <ToolbarToggleButtonState , ' appearance' | ' size' | ' shape' >;
160+
129161// @public
130162export type ToolbarToggleButtonProps = ComponentProps <ButtonSlots > & Partial <Pick <ToggleButtonProps , ' disabled' | ' disabledFocusable' | ' size' >> & {
131163 appearance? : ' primary' | ' subtle' | ' transparent' ;
@@ -139,9 +171,15 @@ export type ToolbarToggleButtonState = ComponentState<Partial<ButtonSlots>> & To
139171// @public
140172export const useToolbar_unstable: (props : ToolbarProps , ref : React_2 .Ref <HTMLElement >) => ToolbarState ;
141173
174+ // @internal
175+ export const useToolbarBase_unstable: (props : ToolbarBaseProps , ref : React_2 .Ref <HTMLElement >) => ToolbarBaseState ;
176+
142177// @public
143178export const useToolbarButton_unstable: (props : ToolbarButtonProps , ref : React_2 .Ref <HTMLButtonElement | HTMLAnchorElement >) => ToolbarButtonState ;
144179
180+ // @internal
181+ export const useToolbarButtonBase_unstable: (props : ToolbarButtonBaseProps , ref : React_2 .Ref <HTMLButtonElement | HTMLAnchorElement >) => ToolbarButtonBaseState ;
182+
145183// @public
146184export const useToolbarButtonStyles_unstable: (state : ToolbarButtonState ) => void ;
147185
@@ -154,6 +192,9 @@ export function useToolbarContextValues_unstable(state: ToolbarState): ToolbarCo
154192// @public
155193export const useToolbarDivider_unstable: (props : ToolbarDividerProps , ref : React_2 .Ref <HTMLElement >) => ToolbarDividerState ;
156194
195+ // @internal
196+ export const useToolbarDividerBase_unstable: (props : ToolbarDividerBaseProps , ref : React_2 .Ref <HTMLElement >) => ToolbarDividerBaseState ;
197+
157198// @public
158199export const useToolbarDividerStyles_unstable: (state : ToolbarDividerState ) => ToolbarDividerState ;
159200
@@ -166,6 +207,9 @@ export const useToolbarGroupStyles_unstable: (state: ToolbarGroupState) => Toolb
166207// @public
167208export const useToolbarRadioButton_unstable: (props : ToolbarRadioButtonProps , ref : React_2 .Ref <HTMLButtonElement | HTMLAnchorElement >) => ToolbarRadioButtonState ;
168209
210+ // @internal
211+ export const useToolbarRadioButtonBase_unstable: (props : ToolbarRadioButtonBaseProps , ref : React_2 .Ref <HTMLButtonElement | HTMLAnchorElement >) => ToolbarRadioButtonBaseState ;
212+
169213// @public
170214export const useToolbarRadioButtonStyles_unstable: (state : ToolbarRadioButtonState ) => ToolbarRadioButtonState ;
171215
@@ -175,6 +219,9 @@ export const useToolbarStyles_unstable: (state: ToolbarState) => ToolbarState;
175219// @public
176220export const useToolbarToggleButton_unstable: (props : ToolbarToggleButtonProps , ref : React_2 .Ref <HTMLButtonElement | HTMLAnchorElement >) => ToolbarToggleButtonState ;
177221
222+ // @internal
223+ export const useToolbarToggleButtonBase_unstable: (props : ToolbarToggleButtonBaseProps , ref : React_2 .Ref <HTMLButtonElement | HTMLAnchorElement >) => ToolbarToggleButtonBaseState ;
224+
178225// @public
179226export const useToolbarToggleButtonStyles_unstable: (state : ToolbarToggleButtonState ) => ToolbarToggleButtonState ;
180227
0 commit comments