diff --git a/docs/lib/examples/InputGroupButtonDropdown.js b/docs/lib/examples/InputGroupButtonDropdown.js deleted file mode 100644 index 51edede82..000000000 --- a/docs/lib/examples/InputGroupButtonDropdown.js +++ /dev/null @@ -1,34 +0,0 @@ -import React, { useState } from 'react'; -import PropTypes from 'prop-types'; -import { InputGroupButtonDropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap'; - -const propTypes = { - addonType: PropTypes.oneOf(['prepend', 'append']).isRequired, -}; - -const Example = (props) => { - const [dropdownOpen, setDropdownOpen] = useState(false); - - const toggle = () => setDropdownOpen(!dropdownOpen); - - const { addonType } = props; - - return ( - - - Button Dropdown - - - Header - Action - Another Action - - Another Action - - - ); -} - -Example.propTypes = propTypes; - -export default Example; diff --git a/src/InputGroupButtonDropdown.js b/src/InputGroupButtonDropdown.js deleted file mode 100644 index 425910d53..000000000 --- a/src/InputGroupButtonDropdown.js +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import Dropdown from './Dropdown'; - -const propTypes = { - addonType: PropTypes.oneOf(['prepend', 'append']).isRequired, - children: PropTypes.node, -}; - -const InputGroupButtonDropdown = (props) => { - return ( - - ); -}; - -InputGroupButtonDropdown.propTypes = propTypes; - -export default InputGroupButtonDropdown; diff --git a/src/__tests__/InputGroupButtonDropdown.spec.js b/src/__tests__/InputGroupButtonDropdown.spec.js deleted file mode 100644 index 8edc32275..000000000 --- a/src/__tests__/InputGroupButtonDropdown.spec.js +++ /dev/null @@ -1,11 +0,0 @@ -import React from 'react'; -import { shallow } from 'enzyme'; -import { InputGroupButtonDropdown, Dropdown } from '../'; - -describe('InputGroupButtonDropdown', () => { - it('should render Dropdown', () => { - const wrapper = shallow(Yo!); - - expect(wrapper.type()).toBe(Dropdown); - }); -}); diff --git a/src/index.js b/src/index.js index 3ddce3224..8e0a63dc4 100644 --- a/src/index.js +++ b/src/index.js @@ -63,7 +63,6 @@ export FormGroup from './FormGroup'; export FormText from './FormText'; export Input from './Input'; export InputGroup from './InputGroup'; -export InputGroupButtonDropdown from './InputGroupButtonDropdown'; export InputGroupText from './InputGroupText'; export Label from './Label'; export Media from './Media'; diff --git a/types/index.d.ts b/types/index.d.ts index d12420a32..bb438a54e 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -82,8 +82,6 @@ export { default as Input } from './lib/Input'; export { InputProps } from './lib/Input'; export { default as InputGroup } from './lib/InputGroup'; export { InputGroupProps } from './lib/InputGroup'; -export { default as InputGroupButtonDropdown } from './lib/InputGroupButtonDropdown'; -export { InputGroupButtonDropdownProps } from './lib/InputGroupButtonDropdown'; export { default as InputGroupText } from './lib/InputGroupText'; export { InputGroupTextProps } from './lib/InputGroupText'; export { default as Label } from './lib/Label'; diff --git a/types/lib/InputGroupButtonDropdown.d.ts b/types/lib/InputGroupButtonDropdown.d.ts deleted file mode 100644 index 85ea5a7c7..000000000 --- a/types/lib/InputGroupButtonDropdown.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import * as React from 'react'; -import { DropdownProps } from './Dropdown'; - -export interface InputGroupButtonDropdownProps extends DropdownProps { - addonType: 'prepend' | 'append'; -} - -declare class InputGroupButtonDropdown extends React.Component< - InputGroupButtonDropdownProps -> {} -export default InputGroupButtonDropdown; diff --git a/types/lib/index.d.ts b/types/lib/index.d.ts index 6a345268d..f19c2fecf 100644 --- a/types/lib/index.d.ts +++ b/types/lib/index.d.ts @@ -86,8 +86,6 @@ export { default as Input } from './Input'; export { InputProps } from './Input'; export { default as InputGroup } from './InputGroup'; export { InputGroupProps } from './InputGroup'; -export { default as InputGroupButtonDropdown } from './InputGroupButtonDropdown'; -export { InputGroupButtonDropdownProps } from './InputGroupButtonDropdown'; export { default as InputGroupText } from './InputGroupText'; export { InputGroupTextProps } from './InputGroupText'; export { default as Label } from './Label'; diff --git a/types/reactstrap-tests.tsx b/types/reactstrap-tests.tsx index 3a7c69854..4180ac8c3 100644 --- a/types/reactstrap-tests.tsx +++ b/types/reactstrap-tests.tsx @@ -44,7 +44,6 @@ import { FormText, Input, InputGroup, - InputGroupButtonDropdown, InputGroupText, Pagination, Label, @@ -4718,35 +4717,6 @@ const Example116 = (props: any) => {
- - - - Button Dropdown - - Header - Action - Another Action - - Another Action - - - -
- - - - - - Header - Action - Another Action - - Another Action - - - - - ); }; @@ -4828,7 +4798,6 @@ import { default as FormGroup_ } from './lib/FormGroup'; /* tslint:disable-line: import { default as FormText_ } from './lib/FormText'; /* tslint:disable-line: no-relative-import-in-test */ import { default as Input_ } from './lib/Input'; /* tslint:disable-line: no-relative-import-in-test */ import { default as InputGroup_ } from './lib/InputGroup'; /* tslint:disable-line: no-relative-import-in-test */ -import { default as InputGroupButtonDropdown_ } from './lib/InputGroupButtonDropdown'; /* tslint:disable-line: no-relative-import-in-test */ import { default as InputGroupText_ } from './lib/InputGroupText'; /* tslint:disable-line: no-relative-import-in-test */ import { default as Label_ } from './lib/Label'; /* tslint:disable-line: no-relative-import-in-test */ import { default as ListGroup_ } from './lib/ListGroup'; /* tslint:disable-line: no-relative-import-in-test */ @@ -4929,12 +4898,6 @@ function AnyPropExample() { -