UNPKG

@wulperstudio/cms

Version:
27 lines (26 loc) 1.46 kB
import React from 'react'; import { DraggableProvidedDragHandleProps } from 'react-beautiful-dnd'; import { BaseModel } from '../Board/Board.types'; import { FreeColumnContainer } from './styled'; import { EntryModel } from '../../components'; interface FreeColumnModel<T extends BaseModel> extends Omit<React.ComponentPropsWithRef<typeof FreeColumnContainer>, 'children' | 'ref'> { title?: string; counter?: React.ReactNode; items?: Array<T> | undefined | null; children?: (item: T, idx: number) => React.ReactNode; draggableId?: string; onCreate?: (text: string, columnId: string) => void; onUpdate?: (text: string, columnId: string) => void; onDelete?: (columnId: string) => void; variant?: 'float' | 'fixed' | 'transparent' | 'border'; isDragDisabled?: boolean; EntryProps?: EntryModel; innerRef?: React.RefObject<HTMLDivElement>; HeaderComponent?: React.ReactNode; FooterComponent?: React.ReactNode; AdornmentHeaderComponent?: React.ReactNode; dragHandleProps?: DraggableProvidedDragHandleProps | undefined; } declare const FreeColumn: <T extends BaseModel>({ items, children, draggableId, onUpdate, HeaderComponent, FooterComponent, variant, customColorBorder, title, AdornmentHeaderComponent, dragHandleProps, innerRef, columnWidth, counter, EntryProps, ...props }: FreeColumnModel<T>) => import("react/jsx-runtime").JSX.Element; export default FreeColumn; export type { FreeColumnModel };