/*! * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and limitations under the License. */ import { CSSObject } from "@emotion/styled"; import { MRT_Row, MRT_RowData, MRT_RowSelectionState, MRT_TableInstance } from "material-react-table"; import { Dispatch, type JSX, ReactNode, SetStateAction } from "react"; import { CardLayout, CardLayoutProps, UniversalProps } from "./componentTypes.js"; export type CardLayoutContentProps = { cardLayoutOptions: CardLayoutProps; currentLayout: CardLayout; data: TData[]; draggingRow?: MRT_Row | null; emptyState: ReactNode; getRowId: UniversalProps["getRowId"]; hasRowReordering: UniversalProps["hasRowReordering"]; hasRowSelection: UniversalProps["hasRowSelection"]; isEmpty?: boolean; isLoading: boolean; isNoResults?: boolean; isRowReorderingDisabled?: boolean; isRowSelectionDisabled?: UniversalProps["isRowSelectionDisabled"]; onReorderRows: UniversalProps["onReorderRows"]; pagination: { pageIndex: number; pageSize: number; }; rowReorderingUtilities: { draggableTableBodyRowClassName: ({ currentRowId, draggingRowId, hoveredRowId, }: { currentRowId: string; draggingRowId?: string; hoveredRowId?: string; }) => string | undefined; dragHandleStyles: CSSObject; dragHandleText: { "aria-label": string; title: string; }; handleDragHandleKeyDown: ({ table, row, event, }: { event: React.KeyboardEvent; row: MRT_Row; table: MRT_TableInstance; }) => void; handleDragHandleOnDragCapture: (table: MRT_TableInstance) => void; handleDragHandleOnDragEnd: (table: MRT_TableInstance) => void; resetDraggingAndHoveredRow: (table: MRT_TableInstance) => void; updateRowOrder: ({ rowId, newRowIndex, }: { newRowIndex: number; rowId: string; }) => void; }; rowSelection: MRT_RowSelectionState; setRowSelection: Dispatch>; totalRows: UniversalProps["totalRows"]; }; type CardLayoutContentComponent = ((props: CardLayoutContentProps) => JSX.Element) & { displayName?: string; }; declare const MemoizedCardLayoutContent: CardLayoutContentComponent; export { MemoizedCardLayoutContent as CardLayoutContent }; //# sourceMappingURL=CardLayoutContent.d.ts.map