diff --git a/package.json b/package.json index cde2354b3..f210ba136 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "dependencies": { "@eeacms/volto-eea-design-system": "*", "@elastic/react-search-ui": "^1.9.0", - "@elastic/react-search-ui-views": "^1.9.0", "@elastic/search-ui": "^1.9.0", "@visx/group": "^1.7.0", "@visx/responsive": "^1.10.1", diff --git a/searchlib/components/SearchBox/SearchBoxView.jsx b/searchlib/components/SearchBox/SearchBoxView.jsx index cfb4e9659..378bfcb48 100644 --- a/searchlib/components/SearchBox/SearchBoxView.jsx +++ b/searchlib/components/SearchBox/SearchBoxView.jsx @@ -2,7 +2,6 @@ import React from 'react'; import PropTypes from 'prop-types'; import Downshift from 'downshift'; import cx from 'classnames'; -import { Result } from '@elastic/react-search-ui-views'; import { useAppConfig } from '@eeacms/search/lib/hocs'; import Autocomplete from './Autocomplete'; @@ -143,7 +142,7 @@ function SearchBoxView(props) { SearchBoxView.propTypes = { // Provided by container allAutocompletedItemsCount: PropTypes.number.isRequired, - autocompletedResults: PropTypes.arrayOf(Result).isRequired, + // autocompletedResults: PropTypes.arrayOf(Result).isRequired, // autocompletedSuggestions: PropTypes.objectOf(PropTypes.arrayOf(Suggestion)) // .isRequired, autocompletedSuggestionsCount: PropTypes.number.isRequired, diff --git a/searchlib/stories/Button.js b/searchlib/stories/Button.js deleted file mode 100644 index 15dde3920..000000000 --- a/searchlib/stories/Button.js +++ /dev/null @@ -1,50 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import './button.css'; - -/** - * Primary UI component for user interaction - */ -export const Button = ({ primary, backgroundColor, size, label, ...props }) => { - const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary'; - return ( - - ); -}; - -Button.propTypes = { - /** - * Is this the principal call to action on the page? - */ - primary: PropTypes.bool, - /** - * What background color to use - */ - backgroundColor: PropTypes.string, - /** - * How large should the button be? - */ - size: PropTypes.oneOf(['small', 'medium', 'large']), - /** - * Button contents - */ - label: PropTypes.string.isRequired, - /** - * Optional click handler - */ - onClick: PropTypes.func, -}; - -Button.defaultProps = { - backgroundColor: null, - primary: false, - size: 'medium', - onClick: undefined, -}; diff --git a/searchlib/stories/Button.stories-.js b/searchlib/stories/Button.stories-.js deleted file mode 100644 index 7fee217c1..000000000 --- a/searchlib/stories/Button.stories-.js +++ /dev/null @@ -1,36 +0,0 @@ -import React from 'react'; - -import { Button } from './Button'; - -export default { - title: 'Example/Button', - component: Button, - argTypes: { - backgroundColor: { control: 'color' }, - }, -}; - -const Template = (args) =>