UNPKG

@dndbuilder.com/react

Version:

Drag and drop builder for React

46 lines (45 loc) 1.26 kB
import { BlockGroup, BlockConfig } from './block'; import { BreakpointConfig } from './responsive'; export * from './block'; export * from './responsive'; export * from './style'; export * from './theme'; export * from './media'; export type AnyObject = Record<string, unknown>; export type OptionalKeys<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>; export type RequiredKeys<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>; export declare enum Direction { HORIZONTAL = "horizontal", VERTICAL = "vertical" } export type SelectOption = { label: string; value: string; }; export declare enum SettingsType { BLOCK = "block", ADVANCED = "advanced", THEME = "theme" } export type BuilderConfig = { blocks?: Partial<BlockConfig>[]; groups?: BlockGroup[]; breakpoints?: Partial<BreakpointConfig>[]; }; export declare enum ThemeSettingsType { GLOBAL = "global", LAYOUT = "layout", COLOR = "color", TYPOGRAPHY = "typography", BUTTON = "button", LINK = "link", CUSTOM_CSS = "custom-css" } export type LocalizedValue<T = string> = { [key: string]: T; }; export declare enum BuilderRightPanelType { SETTINGS = "settings", LAYER = "layer" } //# sourceMappingURL=index.d.ts.map