| 1 |
import { Component } from 'react'; |
| 2 |
import { ToolbarGroupProps } from './ToolbarGroup'; |
| 3 |
export interface ToolbarToggleGroupProps extends ToolbarGroupProps { |
| 4 |
/** Flag indicating when toggle group is expanded for non-managed toolbar toggle groups. */ |
| 5 |
isExpanded?: boolean; |
| 6 |
/** Callback for toggle group click event for non-managed toolbar toggle groups. */ |
| 7 |
onToggle?: (event: React.MouseEvent) => void; |
| 8 |
/** An icon to be rendered when the toggle group has collapsed down */ |
| 9 |
toggleIcon: React.ReactNode; |
| 10 |
/** Controls when filters are shown and when the toggle button is hidden. */ |
| 11 |
breakpoint: 'md' | 'lg' | 'xl' | '2xl'; |
| 12 |
/** Visibility at various breakpoints. */ |
| 13 |
visibility?: { |
| 14 |
default?: 'hidden' | 'visible'; |
| 15 |
md?: 'hidden' | 'visible'; |
| 16 |
lg?: 'hidden' | 'visible'; |
| 17 |
xl?: 'hidden' | 'visible'; |
| 18 |
'2xl'?: 'hidden' | 'visible'; |
| 19 |
}; |
| 20 |
/** Sets both the column and row gap at various breakpoints. */ |
| 21 |
gap?: { |
| 22 |
default?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl'; |
| 23 |
md?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl'; |
| 24 |
lg?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl'; |
| 25 |
xl?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl'; |
| 26 |
'2xl'?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl'; |
| 27 |
}; |
| 28 |
/** Sets only the column gap at various breakpoints. */ |
| 29 |
columnGap?: { |
| 30 |
default?: 'columnGapNone' | 'columnGapXs' | 'columnGapSm' | 'columnGapMd' | 'columnGapLg' | 'columnGapXl' | 'columnGap_2xl' | 'columnGap_3xl' | 'columnGap_4xl'; |
| 31 |
md?: 'columnGapNone' | 'columnGapXs' | 'columnGapSm' | 'columnGapMd' | 'columnGapLg' | 'columnGapXl' | 'columnGap_2xl' | 'columnGap_3xl' | 'columnGap_4xl'; |
| 32 |
lg?: 'columnGapNone' | 'columnGapXs' | 'columnGapSm' | 'columnGapMd' | 'columnGapLg' | 'columnGapXl' | 'columnGap_2xl' | 'columnGap_3xl' | 'columnGap_4xl'; |
| 33 |
xl?: 'columnGapNone' | 'columnGapXs' | 'columnGapSm' | 'columnGapMd' | 'columnGapLg' | 'columnGapXl' | 'columnGap_2xl' | 'columnGap_3xl' | 'columnGap_4xl'; |
| 34 |
'2xl'?: 'columnGapNone' | 'columnGapXs' | 'columnGapSm' | 'columnGapMd' | 'columnGapLg' | 'columnGapXl' | 'columnGap_2xl' | 'columnGap_3xl' | 'columnGap_4xl'; |
| 35 |
}; |
| 36 |
/** Sets only the row gap at various breakpoints. */ |
| 37 |
rowGap?: { |
| 38 |
default?: 'rowGapNone' | 'rowGapXs' | 'rowGapSm' | 'rowGapMd' | 'rowGapLg' | 'rowGapXl' | 'rowGap_2xl' | 'rowGap_3xl' | 'rowGap_4xl'; |
| 39 |
md?: 'rowGapNone' | 'rowGapXs' | 'rowGapSm' | 'rowGapMd' | 'rowGapLg' | 'rowGapXl' | 'rowGap_2xl' | 'rowGap_3xl' | 'rowGap_4xl'; |
| 40 |
lg?: 'rowGapNone' | 'rowGapXs' | 'rowGapSm' | 'rowGapMd' | 'rowGapLg' | 'rowGapXl' | 'rowGap_2xl' | 'rowGap_3xl' | 'rowGap_4xl'; |
| 41 |
xl?: 'rowGapNone' | 'rowGapXs' | 'rowGapSm' | 'rowGapMd' | 'rowGapLg' | 'rowGapXl' | 'rowGap_2xl' | 'rowGap_3xl' | 'rowGap_4xl'; |
| 42 |
'2xl'?: 'rowGapNone' | 'rowGapXs' | 'rowGapSm' | 'rowGapMd' | 'rowGapLg' | 'rowGapXl' | 'rowGap_2xl' | 'rowGap_3xl' | 'rowGap_4xl'; |
| 43 |
}; |
| 44 |
/** Reference to a label container group for filters inside the toolbar toggle group */ |
| 45 |
labelContainerRef?: React.RefObject<any>; |
| 46 |
/** Optional callback for clearing all filters in the toolbar toggle group */ |
| 47 |
clearAllFilters?: () => void; |
| 48 |
/** Flag indicating that the clear all filters button should be visible in the toolbar toggle group */ |
| 49 |
showClearFiltersButton?: boolean; |
| 50 |
/** Text to display in the clear all filters button of the toolbar toggle group */ |
| 51 |
clearFiltersButtonText?: string; |
| 52 |
} |
| 53 |
declare class ToolbarToggleGroup extends Component<ToolbarToggleGroupProps> { |
| 54 |
static displayName: string; |
| 55 |
toggleRef: import("react").RefObject<HTMLButtonElement>; |
| 56 |
expandableContentRef: import("react").RefObject<HTMLDivElement>; |
| 57 |
isContentPopup: () => boolean; |
| 58 |
render(): import("react/jsx-runtime").JSX.Element; |
| 59 |
} |
| 60 |
export { ToolbarToggleGroup }; |
| 61 |
//# sourceMappingURL=ToolbarToggleGroup.d.ts.map |