/** * based on react-sidebar-v2: https://github.com/condense/react-leaflet-sidebarv2/blob/master/src/Sidebar.js * converting prop-types to typescript, additional features, cleanning typescript errors, and converting to function component */ import React from 'react'; import './sidebar-resize.css'; /** * Type definitions for react-leaflet-sidebarv2 0.6, taken from Definitely Typed * But some modifications are made * Project: https://github.com/condense/react-leaflet-sidebarv2 * Definitions by: Vikram Pareddy * Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped */ declare type Icon = string | React.ReactElement; declare type Anchor = 'top' | 'bottom'; declare type Position = 'left' | 'right'; declare type TabType = React.ReactElement | Array; export interface TabProps { id: string; header: string; icon: Icon; anchor?: Anchor; disabled?: boolean; onClose?: () => void; closeIcon?: Icon; position?: Position; active?: boolean; children?: TabType; } export interface SidebarProps { id: string; collapsed: boolean; position: Position; selected: string; closeIcon?: Icon; onClose?: () => void; onOpen?: (id: string) => void; children?: TabType; } interface TabPropsAdd extends TabProps { divider?: boolean; } export declare function Tab(props: TabPropsAdd): JSX.Element; export declare function Sidebar(props: SidebarProps): JSX.Element; export {}; //# sourceMappingURL=Sidebar.d.ts.map