// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import * as React from 'react'; import { Button as BPButton, IButtonProps as IBPButtonProps } from '@blueprintjs/core/lib/cjs/components/button/buttons'; import { Icon as BPIcon, IIconProps } from '@blueprintjs/core/lib/cjs/components/icon/icon'; import { Collapse as BPCollapse, ICollapseProps } from '@blueprintjs/core/lib/cjs/components/collapse/collapse'; import { InputGroup as BPInputGroup, IInputGroupProps as IBPInputGroupProps } from '@blueprintjs/core/lib/cjs/components/forms/inputGroup'; import { Select as BPSelect, ISelectProps } from '@blueprintjs/select/lib/cjs/components/select/select'; export { Intent } from '@blueprintjs/core/lib/cjs/common/intent'; import { classes } from './utils'; interface IButtonProps extends IBPButtonProps { title?: string; type?: 'button' | 'submit' | 'reset'; } interface IInputGroupProps extends IBPInputGroupProps { rightIcon?: IIconProps['icon']; } type CommonProps = React.DOMAttributes; export const Button = (props: IButtonProps & CommonProps) => ( ); export const InputGroup = (props: IInputGroupProps & CommonProps) => { if (props.rightIcon) { return ( } /> ); } return ( ); }; export const Collapse = (props: ICollapseProps & CommonProps) => ( ); export const Select = (props: ISelectProps & CommonProps) => ( );