@@ -10,6 +10,7 @@ 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' ;
1314import type { DividerSlots } from ' @fluentui/react-divider' ;
1415import type { DividerState } from ' @fluentui/react-divider' ;
1516import type { ForwardRefComponent } from ' @fluentui/react-utilities' ;
@@ -21,17 +22,29 @@ import type { ToggleButtonProps } from '@fluentui/react-button';
2122import type { ToggleButtonState } from ' @fluentui/react-button' ;
2223
2324// @public
24- export const renderToolbar_unstable: (state : ToolbarState , contextValues : ToolbarContextValues ) => JSXElement ;
25+ export const renderToolbar_unstable: (state : ToolbarBaseState , contextValues : ToolbarContextValues ) => JSXElement ;
2526
2627// @public
2728export const renderToolbarGroup_unstable: (state : ToolbarGroupState ) => JSXElement ;
2829
2930// @public
3031export const Toolbar: ForwardRefComponent <ToolbarProps >;
3132
33+ // @public (undocumented)
34+ export type ToolbarBaseProps = Omit <ToolbarProps , ' size' >;
35+
36+ // @public (undocumented)
37+ export type ToolbarBaseState = Omit <ToolbarState , ' size' >;
38+
3239// @public
3340export const ToolbarButton: ForwardRefComponent <ToolbarButtonProps >;
3441
42+ // @public (undocumented)
43+ export type ToolbarButtonBaseProps = DistributiveOmit <ToolbarButtonProps , ' appearance' >;
44+
45+ // @public (undocumented)
46+ export type ToolbarButtonBaseState = DistributiveOmit <ToolbarButtonState , ' appearance' | ' size' | ' shape' >;
47+
3548// @public
3649export type ToolbarButtonProps = ComponentProps <ButtonSlots > & Partial <Pick <ButtonProps , ' disabled' | ' disabledFocusable' >> & {
3750 appearance? : ' primary' | ' subtle' | ' transparent' ;
@@ -59,6 +72,12 @@ export type ToolbarContextValues = {
5972// @public
6073export const ToolbarDivider: ForwardRefComponent <ToolbarDividerProps >;
6174
75+ // @public (undocumented)
76+ export type ToolbarDividerBaseProps = ToolbarDividerProps ;
77+
78+ // @public (undocumented)
79+ export type ToolbarDividerBaseState = Omit <ToolbarDividerState , ' appearance' >;
80+
6281// @public
6382export type ToolbarDividerProps = ComponentProps <Partial <DividerSlots >> & {
6483 vertical? : boolean ;
@@ -93,6 +112,12 @@ export type ToolbarProps = ComponentProps<ToolbarSlots> & {
93112// @public
94113export const ToolbarRadioButton: ForwardRefComponent <ToolbarRadioButtonProps >;
95114
115+ // @public (undocumented)
116+ export type ToolbarRadioButtonBaseProps = DistributiveOmit <ToolbarRadioButtonProps , ' appearance' >;
117+
118+ // @public (undocumented)
119+ export type ToolbarRadioButtonBaseState = DistributiveOmit <ToolbarRadioButtonState , ' appearance' | ' size' >;
120+
96121// @public
97122export type ToolbarRadioButtonProps = ComponentProps <ButtonSlots > & Partial <Pick <ToggleButtonProps , ' disabled' | ' disabledFocusable' | ' size' >> & {
98123 appearance? : ' primary' | ' subtle' | ' transparent' ;
@@ -126,6 +151,12 @@ export type ToolbarState = ComponentState<ToolbarSlots> & Required<Pick<ToolbarP
126151// @public
127152export const ToolbarToggleButton: ForwardRefComponent <ToolbarToggleButtonProps >;
128153
154+ // @public (undocumented)
155+ export type ToolbarToggleButtonBaseProps = DistributiveOmit <ToolbarToggleButtonProps , ' appearance' >;
156+
157+ // @public (undocumented)
158+ export type ToolbarToggleButtonBaseState = DistributiveOmit <ToolbarToggleButtonState , ' appearance' >;
159+
129160// @public
130161export type ToolbarToggleButtonProps = ComponentProps <ButtonSlots > & Partial <Pick <ToggleButtonProps , ' disabled' | ' disabledFocusable' | ' size' >> & {
131162 appearance? : ' primary' | ' subtle' | ' transparent' ;
@@ -139,9 +170,15 @@ export type ToolbarToggleButtonState = ComponentState<Partial<ButtonSlots>> & To
139170// @public
140171export const useToolbar_unstable: (props : ToolbarProps , ref : React_2 .Ref <HTMLElement >) => ToolbarState ;
141172
173+ // @internal
174+ export const useToolbarBase_unstable: (props : ToolbarBaseProps , ref : React_2 .Ref <HTMLElement >) => ToolbarBaseState ;
175+
142176// @public
143177export const useToolbarButton_unstable: (props : ToolbarButtonProps , ref : React_2 .Ref <HTMLButtonElement | HTMLAnchorElement >) => ToolbarButtonState ;
144178
179+ // @internal
180+ export const useToolbarButtonBase_unstable: (props : ToolbarButtonBaseProps , ref : React_2 .Ref <HTMLButtonElement | HTMLAnchorElement >) => ToolbarButtonBaseState ;
181+
145182// @public
146183export const useToolbarButtonStyles_unstable: (state : ToolbarButtonState ) => void ;
147184
@@ -154,6 +191,9 @@ export function useToolbarContextValues_unstable(state: ToolbarState): ToolbarCo
154191// @public
155192export const useToolbarDivider_unstable: (props : ToolbarDividerProps , ref : React_2 .Ref <HTMLElement >) => ToolbarDividerState ;
156193
194+ // @internal
195+ export const useToolbarDividerBase_unstable: (props : ToolbarDividerBaseProps , ref : React_2 .Ref <HTMLElement >) => ToolbarDividerBaseState ;
196+
157197// @public
158198export const useToolbarDividerStyles_unstable: (state : ToolbarDividerState ) => ToolbarDividerState ;
159199
@@ -166,6 +206,9 @@ export const useToolbarGroupStyles_unstable: (state: ToolbarGroupState) => Toolb
166206// @public
167207export const useToolbarRadioButton_unstable: (props : ToolbarRadioButtonProps , ref : React_2 .Ref <HTMLButtonElement | HTMLAnchorElement >) => ToolbarRadioButtonState ;
168208
209+ // @internal
210+ export const useToolbarRadioButtonBase_unstable: (props : ToolbarRadioButtonBaseProps , ref : React_2 .Ref <HTMLButtonElement | HTMLAnchorElement >) => ToolbarRadioButtonBaseState ;
211+
169212// @public
170213export const useToolbarRadioButtonStyles_unstable: (state : ToolbarRadioButtonState ) => ToolbarRadioButtonState ;
171214
@@ -175,6 +218,9 @@ export const useToolbarStyles_unstable: (state: ToolbarState) => ToolbarState;
175218// @public
176219export const useToolbarToggleButton_unstable: (props : ToolbarToggleButtonProps , ref : React_2 .Ref <HTMLButtonElement | HTMLAnchorElement >) => ToolbarToggleButtonState ;
177220
221+ // @internal
222+ export const useToolbarToggleButtonBase_unstable: (props : ToolbarToggleButtonBaseProps , ref : React_2 .Ref <HTMLButtonElement | HTMLAnchorElement >) => ToolbarToggleButtonBaseState ;
223+
178224// @public
179225export const useToolbarToggleButtonStyles_unstable: (state : ToolbarToggleButtonState ) => ToolbarToggleButtonState ;
180226
0 commit comments