UNPKG

geostyler

Version:
43 lines (42 loc) 1.16 kB
import { default as React } from 'react'; import { Rule as GsRule } from 'geostyler-style'; export interface RuleComposableProps { amountField?: { visibility?: boolean; }; duplicateField?: { visibility?: boolean; }; maxScaleField?: { visibility?: boolean; }; minScaleField?: { visibility?: boolean; }; scalesField?: { visibility?: boolean; }; filterField?: { visibility?: boolean; }; nameField?: { visibility?: boolean; }; actionsField?: { visibility?: boolean; /** ignored if actionsField.visibility is falsy */ clone?: boolean; /** ignored if actionsField.visibility is falsy */ remove?: boolean; }; } export interface RuleCardInternalProps { /** The rule to display. */ rule: GsRule; /** The number of features that are also matched by other rules. */ duplicates?: number; /** The callback when the card was clicked. */ onClick?: () => void; } export type RuleCardProps = RuleCardInternalProps & RuleComposableProps; export declare const RuleCard: React.FC<RuleCardProps>;