import React from 'react'; import { FiltersMap } from '@wix/bex-core'; import { GridPresetProps } from './Grid.types'; import { GridState, LayoutType } from '../../state'; import { BulkActionToolbarRenderProp } from '../BulkAction'; import { GridItemBaseProps } from './GridItemBaseProps'; import { ToolbarCollectionBaseProps } from '../ToolbarCollection'; import type { GridSectionsContent } from '../GridSections/GridSectionsContent'; import type { GroupBy, RenderSection } from '../CollectionSectionHeader'; import { GridDragAndDrop } from '../GridDragAndDropDndKit/GridDragAndDrop'; interface GridBaseProps extends Omit, 'sticky' | 'maxSelection'>, GridItemBaseProps { dataHook?: string; /** * Adds functionality to allow visitors to reorder items manually. * For more information, see the [Drag and Drop Overview](./?path=/story/features-sort-drag-and-drop--overview). * @overrideType [GridDragAndDrop](./?path=/story/features-sort-drag-and-drop--griddraganddrop) * @external */ dragAndDrop?: typeof GridDragAndDrop; /** * Grid state instance created using [`useGridCollection`](./?path=/story/base-components-collections-grid-usegridcollection--usegridcollection). * @overrideType [GridState](./?path=/story/base-components-collections-grid-gridstate--gridstate) * @external */ state: GridState; /** * A toolbar for performing bulk actions on multiple items.

* Supported parameters:
* -`selectedValues`: [array] Items that are checked in the selection column.
* -`uncheckedValues`: [array] Items that are unchecked in the selection column.
* -`isSelectAll`: [bool] Whether **Select All** is checked.
* -`openModal`: [func] Opens a modal that contains the component from `bulkActionModal` render prop.
* -`clearSelection`: [func] Clears all selections. Call this after the action on the selected items finishes.
* -`total`: [number] Total number of items in the server.
* -`openConfirmModal`: [func] Opens a `` to confirm an action is about to be applied to the selected items.
* -`query`: [object] Current paging, sorting, and filtering. Often used together with bulk actions, such as `updateAll`.
* @external */ bulkActionToolbar?: BulkActionToolbarRenderProp; /** * Creates [grid sections](./?path=/story/features-display-grid-sections--grid-sections) that group data based on the values of a specific field. * @external * @overrideType [SectionsProp](./?path=/story/common-types--sectionsprop) */ sections?: { GridSections: typeof GridSectionsContent; groupBy: GroupBy; renderSection?: RenderSection; }; layoutType?: LayoutType; } export type GridBasePropsWithoutPreset = Omit, 'preset' | 'renderItem'>; export type GridProps = GridPresetProps>; declare function _Grid(props: GridProps): React.JSX.Element; export declare const Grid: typeof _Grid & { displayName: string; }; export {}; //# sourceMappingURL=Grid.d.ts.map