UNPKG

react-ui-mat

Version:

- ANIMATE - BADGES ( success, danger, info, light, primary, green ) - BEHAVIOR - BUTTONS - CHECKBOX - COLLAPSE - CONTEXT PANEL - DATE PICKER - DATEPICKER - DATEUTIL - DIVIDER - DRAGABLE MODAL - INCORRECT_ENTRY - INPUT - INPUT_FIELDS - MULTISELECT - MUPLAY

82 lines (81 loc) 3.06 kB
import React from "react"; import { MFilterPanelPosition, MFilterPanelProps } from "./types"; declare class PositionConfigBuilder { private config; setLeft(value?: number): this; setTop(value?: number): this; setRight(value?: number): this; setBottom(value?: number): this; setScrollOverSize(value?: boolean): this; build(): { left?: number; top?: number; right?: number; bottom?: number; scrollOverSize?: boolean; }; } declare function _open(): { id: () => string; setProps: (props?: MFilterPanelProps) => { setPosition: (position?: MFilterPanelPosition) => { show: (customUI: (onClose: () => void) => JSX.Element | React.ReactNode) => { onDismissed: (cb: () => void) => void; }; }; show: (customUI: (onClose: () => void) => JSX.Element | React.ReactNode) => { onDismissed: (cb: () => void) => void; }; }; setPosition: (position?: MFilterPanelPosition) => { show: (customUI: (onClose: () => void) => JSX.Element | React.ReactNode) => { onDismissed: (cb: () => void) => void; }; }; show: (customUI: (onClose: () => void) => JSX.Element | React.ReactNode) => { onDismissed: (cb: () => void) => void; }; close: () => void; }; declare function FilterPanelContainer(): JSX.Element; declare function getDefaultPosition(): MFilterPanelPosition; declare function setDefaultPosition(position: MFilterPanelPosition): void; declare function setIsAllSingle(value: boolean): void; declare function config(): PositionConfigBuilder; declare function open(): ReturnType<typeof _open>; declare function close(id?: string): void; declare function usePanel(): { open: () => { id: () => string; setProps: (props?: MFilterPanelProps) => { setPosition: (position?: MFilterPanelPosition) => { show: (customUI: (onClose: () => void) => React.ReactNode | JSX.Element) => { onDismissed: (cb: () => void) => void; }; }; show: (customUI: (onClose: () => void) => React.ReactNode | JSX.Element) => { onDismissed: (cb: () => void) => void; }; }; setPosition: (position?: MFilterPanelPosition) => { show: (customUI: (onClose: () => void) => React.ReactNode | JSX.Element) => { onDismissed: (cb: () => void) => void; }; }; show: (customUI: (onClose: () => void) => React.ReactNode | JSX.Element) => { onDismissed: (cb: () => void) => void; }; close: () => void; }; }; export declare const MFilterPanel: { getDefaultPosition: typeof getDefaultPosition; setDefaultPosition: typeof setDefaultPosition; setIsAllSingle: typeof setIsAllSingle; config: typeof config; open: typeof open; close: typeof close; FilterPanelContainer: typeof FilterPanelContainer; usePanel: typeof usePanel; }; export {};