UNPKG

mycrossword

Version:
24 lines (22 loc) 1.13 kB
import { CellChange, CellFocus, GuardianCrossword, GuessGrid } from '~/types'; import { IntroProps } from '~/components/Intro/Intro'; type Theme = 'red' | 'pink' | 'purple' | 'deepPurple' | 'indigo' | 'blue' | 'lightBlue' | 'cyan' | 'teal' | 'green' | 'deepOrange' | 'blueGrey'; export interface MyCrosswordProps { allowedHtmlTags?: string[]; allowMissingSolutions?: boolean; cellMatcher?: RegExp; cellSize?: number; className?: string; data: GuardianCrossword; id: string; intro?: Omit<IntroProps, 'onContinue'>; loadGrid?: GuessGrid; onCellChange?: (cellChange: CellChange) => void; onCellFocus?: (cellFocus: CellFocus) => void; onComplete?: () => void; saveGrid?: (value: GuessGrid | ((val: GuessGrid) => GuessGrid)) => void; stickyClue?: 'always' | 'never' | 'auto'; theme?: Theme; } export default function MyCrossword({ allowedHtmlTags, allowMissingSolutions, cellSize, cellMatcher, className, data, id, loadGrid, onCellChange, onCellFocus, onComplete, saveGrid, stickyClue, theme, intro, }: MyCrosswordProps): import("react/jsx-runtime").JSX.Element; export {};