diff --git a/apps/web/package.json b/apps/web/package.json index 848b8d4cd9..574ccf9177 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -111,8 +111,8 @@ "react-multi-email": "^0.5.3", "react-phone-number-input": "^3.2.7", "react-schemaorg": "^2.0.0", - "react-select": "^5.4.0", - "react-timezone-select": "^1.3.2", + "react-select": "^5.7.0", + "react-timezone-select": "^1.4.0", "react-use-intercom": "1.5.1", "react-virtualized-auto-sizer": "^1.0.6", "react-window": "^1.8.7", diff --git a/packages/ui/components/form/select/Select.tsx b/packages/ui/components/form/select/Select.tsx index 9e60e13875..3d02e18932 100644 --- a/packages/ui/components/form/select/Select.tsx +++ b/packages/ui/components/form/select/Select.tsx @@ -1,29 +1,13 @@ import { useId } from "@radix-ui/react-id"; import * as React from "react"; -import type { - GroupBase, - Props, - SingleValue, - MultiValue, - SelectComponentsConfig, - MenuPlacement, -} from "react-select"; -import ReactSelect, { components as reactSelectComponents } from "react-select"; +import type { GroupBase, Props, SingleValue, MultiValue } from "react-select"; +import ReactSelect from "react-select"; import classNames from "@calcom/lib/classNames"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Label } from "../inputs/Label"; -import { - ControlComponent, - InputComponent, - MenuComponent, - MenuListComponent, - OptionComponent, - SingleValueComponent, - ValueContainerComponent, - MultiValueComponent, -} from "./components"; +import { getReactSelectProps } from "./selectTheme"; export type SelectProps< Option, @@ -31,79 +15,82 @@ export type SelectProps< Group extends GroupBase