diff --git a/package.json b/package.json index cfe1aa2..e9a2a32 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "axios-simple-cache-adapter": "^1.1.0", "babel-polyfill": "^6.26.0", "better-docs": "^2.3.2", - "calibre-opds": "^1.0.7", "comlink-loader": "^2.0.0", "compromise": "^13.11.3", "compromise-dates": "^2.2.1", @@ -51,11 +50,11 @@ "jsdoc": "^3.6.7", "opds-extra": "^3.0.9", "pretty-bytes": "^5.6.0", - "react": "^18.0.0", + "react": "^18.1.0", "react-collapsible": "^2.8.3", "react-comic-viewer": "^0.3.5", "react-datepicker": "^4.5.0", - "react-dom": "^18.0.0", + "react-dom": "^18.1.0", "react-fast-compare": "^3.2.0", "react-final-form": "^6.5.3", "react-final-form-arrays": "^3.1.3", @@ -68,7 +67,7 @@ "react-redux": "^7.2.6", "react-router": "^6.2.2", "react-router-dom": "^6.2.2", - "react-select": "^5.2.1", + "react-select": "^5.3.2", "react-select-async-paginate": "^0.6.1", "react-slick": "^0.28.1", "react-sliding-pane": "^7.0.0", @@ -88,7 +87,6 @@ "voca": "^1.4.0", "websocket": "^1.0.34", "ws": "^7.5.3", - "ws-calibre": "https://github.com/bluelovers/ws-calibre", "xml2js": "^0.4.23", "xregexp": "^5.0.2" }, diff --git a/src/client/components/Navbar.tsx b/src/client/components/Navbar.tsx index 353abc5..4d4a389 100644 --- a/src/client/components/Navbar.tsx +++ b/src/client/components/Navbar.tsx @@ -1,7 +1,44 @@ -import React from "react"; +import React, { ReactElement } from "react"; import { Link } from "react-router-dom"; +import Select, { + components, + DropdownIndicatorProps, + IndicatorSeparatorProps, +} from "react-select"; const Navbar: React.FunctionComponent = (props) => { + const DropdownIndicator = ( + props: DropdownIndicatorProps, + ) => { + return ( + + <> + + ); + }; + + const IndicatorSeparator = ({ + innerProps, + }: IndicatorSeparatorProps) => { + return <>; + }; + + const searchPlaceholder = (): ReactElement => ( + <> + Search Library... + + ); + + const customStyles = { + control: () => ({ + width: 250, + marginTop: 0, + border: "1px solid #CCC", + height: 40, + borderRadius: 8, + }), + }; + return (