drizzle-cube
Version:
Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.
22 lines (21 loc) • 963 B
TypeScript
import { default as React } from 'react';
import { AxisDropZoneConfig } from '../charts/chartConfigs';
interface FieldStyling {
IconComponent: React.ComponentType<{
className?: string;
}>;
baseClasses: string;
hoverClasses: string;
}
interface AxisDropZoneProps {
config: AxisDropZoneConfig;
fields: string[];
onDrop: (e: React.DragEvent<HTMLDivElement>, toKey: string) => void;
onRemove: (field: string, fromKey: string) => void;
onDragStart: (e: React.DragEvent<HTMLDivElement>, field: string, fromKey: string) => void;
onDragOver: (e: React.DragEvent<HTMLDivElement>) => void;
getFieldStyling: (field: string) => FieldStyling;
onReorder?: (fromIndex: number, toIndex: number, axisKey: string) => void;
}
export default function AxisDropZone({ config, fields, onDrop, onRemove, onDragStart, onDragOver, getFieldStyling, onReorder }: AxisDropZoneProps): import("react/jsx-runtime").JSX.Element;
export {};