import { BoxProps, ElementProps, Factory, MantineColor, MantineRadius, MantineSize, StylesApiProps } from '../../core'; import { ToggleVariant } from '../Toggle'; import { ToolbarDivider, ToolbarDividerStylesNames } from './ToolbarDivider/ToolbarDivider'; import { ToolbarGroup, ToolbarGroupStylesNames } from './ToolbarGroup/ToolbarGroup'; import { ToolbarToggle, ToolbarToggleStylesNames } from './ToolbarToggle/ToolbarToggle'; import { ToolbarToggleGroup } from './ToolbarToggleGroup/ToolbarToggleGroup'; import { ToolbarToggleItem, ToolbarToggleItemStylesNames } from './ToolbarToggleItem/ToolbarToggleItem'; export type ToolbarStylesNames = 'root' | ToolbarGroupStylesNames | ToolbarToggleStylesNames | ToolbarToggleItemStylesNames | ToolbarDividerStylesNames; export type ToolbarCssVariables = { root: '--toolbar-toggle-size' | '--toolbar-padding' | '--toolbar-gap' | '--toolbar-radius'; toggle: '--toolbar-toggle-active-bg' | '--toolbar-toggle-active-hover' | '--toolbar-toggle-active-color'; }; export interface ToolbarProps extends BoxProps, StylesApiProps, ElementProps<'div'> { /** Toolbar orientation, `'horizontal'` by default */ orientation?: 'horizontal' | 'vertical'; /** Whether arrow key navigation wraps from last to first item, `true` by default */ loop?: boolean; /** Controls size of toggle components, padding, and gap, `'md'` by default */ size?: MantineSize | (string & {}); /** Key of `theme.radius` or any valid CSS value to set `border-radius`, propagated to all children, `theme.defaultRadius` by default */ radius?: MantineRadius; /** Determines whether the toolbar has a border, `true` by default */ withBorder?: boolean; /** Key of `theme.colors` or any valid CSS color, controls color of child toggle components */ color?: MantineColor; /** Determines whether icon color with filled variant should be changed based on the given `color` prop */ autoContrast?: boolean; /** Toolbar content */ children: React.ReactNode; } export type ToolbarFactory = Factory<{ props: ToolbarProps; ref: HTMLDivElement; stylesNames: ToolbarStylesNames; vars: ToolbarCssVariables; variant: ToggleVariant; staticComponents: { Group: typeof ToolbarGroup; Toggle: typeof ToolbarToggle; ToggleGroup: typeof ToolbarToggleGroup; ToggleItem: typeof ToolbarToggleItem; Divider: typeof ToolbarDivider; }; }>; export declare const Toolbar: import("../..").MantineComponent<{ props: ToolbarProps; ref: HTMLDivElement; stylesNames: ToolbarStylesNames; vars: ToolbarCssVariables; variant: ToggleVariant; staticComponents: { Group: typeof ToolbarGroup; Toggle: typeof ToolbarToggle; ToggleGroup: typeof ToolbarToggleGroup; ToggleItem: typeof ToolbarToggleItem; Divider: typeof ToolbarDivider; }; }>;