Skip to content

Scheduling infrastructure for absolutely everyone.

refactor: Move classNames from @calcom/lib to @calcom/ui (#19674)

Keith Williams78d06c6d0116
diff --git a/apps/storybook/components/Examples.tsx b/apps/storybook/components/Examples.tsx
index 0245d57c382..2f2b2cb4061 100644
--- a/apps/storybook/components/Examples.tsx
+++ b/apps/storybook/components/Examples.tsx
@@ -1,4 +1,4 @@
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
interface ExampleProps {
children: React.ReactNode;
diff --git a/apps/storybook/components/VariantsTable.tsx b/apps/storybook/components/VariantsTable.tsx
index 1120d4b8ba9..0186eb8bf43 100644
--- a/apps/storybook/components/VariantsTable.tsx
+++ b/apps/storybook/components/VariantsTable.tsx
@@ -1,7 +1,7 @@
import type { ReactElement, ReactNode } from "react";
import React from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
export function VariantsTable({
children,
diff --git a/apps/web/app/(use-page-wrapper)/settings/(settings-layout)/SettingsLayoutAppDirClient.tsx b/apps/web/app/(use-page-wrapper)/settings/(settings-layout)/SettingsLayoutAppDirClient.tsx
index 15c34724438..a59dfdbe3b4 100644
--- a/apps/web/app/(use-page-wrapper)/settings/(settings-layout)/SettingsLayoutAppDirClient.tsx
+++ b/apps/web/app/(use-page-wrapper)/settings/(settings-layout)/SettingsLayoutAppDirClient.tsx
@@ -10,7 +10,6 @@ import React, { useEffect, useState, useMemo } from "react";
import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider";
import type { OrganizationBranding } from "@calcom/features/ee/organizations/context/provider";
import Shell from "@calcom/features/shell/Shell";
-import { classNames } from "@calcom/lib";
import { HOSTED_CAL_FEATURES, IS_CALCOM, WEBAPP_URL } from "@calcom/lib/constants";
import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";
import { getUserAvatarUrl } from "@calcom/lib/getAvatarUrl";
@@ -21,6 +20,7 @@ import { IdentityProvider, MembershipRole, UserPermissionRole } from "@calcom/pr
import { trpc } from "@calcom/trpc/react";
import type { VerticalTabItemProps } from "@calcom/ui";
import { Badge, Button, ErrorBoundary, Icon, Skeleton, VerticalTabItem } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
const getTabs = (orgBranding: OrganizationBranding | null) => {
const tabs: VerticalTabItemProps[] = [
diff --git a/apps/web/components/apps/AppPage.tsx b/apps/web/components/apps/AppPage.tsx
index 495376ca1ca..dc25b785fc6 100644
--- a/apps/web/components/apps/AppPage.tsx
+++ b/apps/web/components/apps/AppPage.tsx
@@ -9,13 +9,13 @@ import { doesAppSupportTeamInstall, isConferencing } from "@calcom/app-store/uti
import DisconnectIntegration from "@calcom/features/apps/components/DisconnectIntegration";
import { AppOnboardingSteps } from "@calcom/lib/apps/appOnboardingSteps";
import { getAppOnboardingUrl } from "@calcom/lib/apps/getAppOnboardingUrl";
-import classNames from "@calcom/lib/classNames";
import { APP_NAME, COMPANY_NAME, SUPPORT_MAIL_ADDRESS, WEBAPP_URL } from "@calcom/lib/constants";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
import type { App as AppType } from "@calcom/types/App";
import { Badge, Button, Icon, SkeletonButton, SkeletonText, showToast } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { InstallAppButtonChild } from "./InstallAppButtonChild";
import { MultiDisconnectIntegration } from "./MultiDisconnectIntegration";
diff --git a/apps/web/components/apps/installation/AccountsStepCard.tsx b/apps/web/components/apps/installation/AccountsStepCard.tsx
index 314d4e931c4..bbcc4622a07 100644
--- a/apps/web/components/apps/installation/AccountsStepCard.tsx
+++ b/apps/web/components/apps/installation/AccountsStepCard.tsx
@@ -1,12 +1,12 @@
import type { FC } from "react";
import React, { useState } from "react";
-import { classNames } from "@calcom/lib";
import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { User } from "@calcom/prisma/client";
import { StepCard } from "@calcom/ui";
import { Avatar } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { TTeams } from "~/apps/installation/[[...step]]/step-view";
diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx
index 9b7a2c4e022..c696d71bb2d 100644
--- a/apps/web/components/booking/BookingListItem.tsx
+++ b/apps/web/components/booking/BookingListItem.tsx
@@ -9,7 +9,6 @@ import dayjs from "@calcom/dayjs";
// TODO: Use browser locale, implement Intl in Dayjs maybe?
import "@calcom/dayjs/locales";
import ViewRecordingsDialog from "@calcom/features/ee/video/ViewRecordingsDialog";
-import classNames from "@calcom/lib/classNames";
import { formatTime } from "@calcom/lib/date-fns";
import { getPaymentAppData } from "@calcom/lib/getPaymentAppData";
import { useCopy } from "@calcom/lib/hooks/useCopy";
@@ -46,6 +45,7 @@ import {
TextAreaField,
Tooltip,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import assignmentReasonBadgeTitleMap from "@lib/booking/assignmentReasonBadgeTitleMap";
diff --git a/apps/web/components/dialog/ReassignDialog.tsx b/apps/web/components/dialog/ReassignDialog.tsx
index 0b005c873e3..8de68ab3eb0 100644
--- a/apps/web/components/dialog/ReassignDialog.tsx
+++ b/apps/web/components/dialog/ReassignDialog.tsx
@@ -5,7 +5,6 @@ import { useMemo, useState } from "react";
import { useForm } from "react-hook-form";
import { z } from "zod";
-import { classNames } from "@calcom/lib";
import { ErrorCode } from "@calcom/lib/errorCodes";
import { useDebounce } from "@calcom/lib/hooks/useDebounce";
import { useInViewObserver } from "@calcom/lib/hooks/useInViewObserver";
@@ -26,6 +25,7 @@ import {
RadioGroup as RadioArea,
TextAreaField,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
enum ReassignType {
ROUND_ROBIN = "round_robin",
diff --git a/apps/web/components/getting-started/steps-views/ConnectCalendars.tsx b/apps/web/components/getting-started/steps-views/ConnectCalendars.tsx
index 9aef5353768..88e95a6b745 100644
--- a/apps/web/components/getting-started/steps-views/ConnectCalendars.tsx
+++ b/apps/web/components/getting-started/steps-views/ConnectCalendars.tsx
@@ -1,7 +1,7 @@
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
import { Icon, List } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { AppConnectionItem } from "../components/AppConnectionItem";
import { ConnectedCalendarItem } from "../components/ConnectedCalendarItem";
diff --git a/apps/web/components/getting-started/steps-views/ConnectedVideoStep.tsx b/apps/web/components/getting-started/steps-views/ConnectedVideoStep.tsx
index 4edace7be5a..51caedda58a 100644
--- a/apps/web/components/getting-started/steps-views/ConnectedVideoStep.tsx
+++ b/apps/web/components/getting-started/steps-views/ConnectedVideoStep.tsx
@@ -1,9 +1,9 @@
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { userMetadata } from "@calcom/prisma/zod-utils";
import { trpc } from "@calcom/trpc/react";
import useMeQuery from "@calcom/trpc/react/hooks/useMeQuery";
import { Icon, List } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { AppConnectionItem } from "../components/AppConnectionItem";
import { StepConnectionLoader } from "../components/StepConnectionLoader";
diff --git a/apps/web/components/settings/platform/oauth-clients/OAuthClientCard.tsx b/apps/web/components/settings/platform/oauth-clients/OAuthClientCard.tsx
index a961cd053ff..3ec156d9df4 100644
--- a/apps/web/components/settings/platform/oauth-clients/OAuthClientCard.tsx
+++ b/apps/web/components/settings/platform/oauth-clients/OAuthClientCard.tsx
@@ -1,11 +1,11 @@
import { useRouter } from "next/navigation";
import React from "react";
-import { classNames } from "@calcom/lib";
import type { PERMISSION_MAP } from "@calcom/platform-constants";
import { PERMISSIONS_GROUPED_MAP } from "@calcom/platform-constants";
import type { Avatar } from "@calcom/prisma/client";
import { Button, Icon, showToast } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type OAuthClientCardProps = {
name: string;
diff --git a/apps/web/components/setup/EnterpriseLicense.tsx b/apps/web/components/setup/EnterpriseLicense.tsx
index cd049742aff..24ba9eeb9b9 100644
--- a/apps/web/components/setup/EnterpriseLicense.tsx
+++ b/apps/web/components/setup/EnterpriseLicense.tsx
@@ -5,13 +5,13 @@ import { useCallback, useState } from "react";
import { Controller, FormProvider, useForm, useFormState } from "react-hook-form";
import { z } from "zod";
-import { classNames } from "@calcom/lib";
import { CONSOLE_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { RouterInputs, RouterOutputs } from "@calcom/trpc/react";
import { trpc } from "@calcom/trpc/react";
import { Button, TextField } from "@calcom/ui";
import { Icon } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type EnterpriseLicenseFormValues = {
licenseKey: string;
diff --git a/apps/web/components/ui/form/DatePicker.tsx b/apps/web/components/ui/form/DatePicker.tsx
index 968996d5bc1..ece13861a48 100644
--- a/apps/web/components/ui/form/DatePicker.tsx
+++ b/apps/web/components/ui/form/DatePicker.tsx
@@ -4,8 +4,7 @@ import "react-date-picker/dist/DatePicker.css";
import PrimitiveDatePicker from "react-date-picker/dist/entry.nostyle";
import { Icon } from "@calcom/ui";
-
-import classNames from "@lib/classNames";
+import classNames from "@calcom/ui/classNames";
type Props = {
date: Date;
diff --git a/apps/web/lib/classNames.ts b/apps/web/lib/classNames.ts
deleted file mode 100644
index 9878582171a..00000000000
--- a/apps/web/lib/classNames.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-// TODO: Remove this file once every `classNames` is imported from `@calcom/lib`
-export { default } from "@calcom/lib/classNames";
diff --git a/apps/web/modules/apps/apps-view.tsx b/apps/web/modules/apps/apps-view.tsx
index b28ec76d7f7..3aaadb75118 100644
--- a/apps/web/modules/apps/apps-view.tsx
+++ b/apps/web/modules/apps/apps-view.tsx
@@ -3,7 +3,6 @@
import type { ChangeEventHandler } from "react";
import { useState } from "react";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { inferSSRProps } from "@calcom/types/inferSSRProps";
import type { HorizontalTabItemProps } from "@calcom/ui";
@@ -16,6 +15,7 @@ import {
RecentAppsSlider,
} from "@calcom/ui";
import { Icon } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { type getServerSideProps } from "@lib/apps/getServerSideProps";
diff --git a/apps/web/modules/auth/verify-view.tsx b/apps/web/modules/auth/verify-view.tsx
index 7f368e90a33..e29e1e2359c 100644
--- a/apps/web/modules/auth/verify-view.tsx
+++ b/apps/web/modules/auth/verify-view.tsx
@@ -6,13 +6,13 @@ import { usePathname, useRouter } from "next/navigation";
import { useEffect, useRef, useState } from "react";
import z from "zod";
-import { classNames } from "@calcom/lib";
import { WEBAPP_URL } from "@calcom/lib/constants";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import { useRouterQuery } from "@calcom/lib/hooks/useRouterQuery";
import { trpc } from "@calcom/trpc/react";
import { Button, showToast } from "@calcom/ui";
import { Icon } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import Loader from "@components/Loader";
diff --git a/apps/web/modules/event-types/views/event-types-listing-view.tsx b/apps/web/modules/event-types/views/event-types-listing-view.tsx
index 74a27bdc0c4..32a7f677704 100644
--- a/apps/web/modules/event-types/views/event-types-listing-view.tsx
+++ b/apps/web/modules/event-types/views/event-types-listing-view.tsx
@@ -15,7 +15,7 @@ import CreateEventTypeDialog from "@calcom/features/eventtypes/components/Create
import { DuplicateDialog } from "@calcom/features/eventtypes/components/DuplicateDialog";
import { InfiniteSkeletonLoader } from "@calcom/features/eventtypes/components/SkeletonLoader";
import { getTeamsFiltersFromQuery } from "@calcom/features/filters/lib/getTeamsFiltersFromQuery";
-import { classNames, parseEventTypeColor } from "@calcom/lib";
+import { parseEventTypeColor } from "@calcom/lib";
import { APP_NAME, WEBSITE_URL } from "@calcom/lib/constants";
import { useCopy } from "@calcom/lib/hooks/useCopy";
import { useDebounce } from "@calcom/lib/hooks/useDebounce";
@@ -56,6 +56,7 @@ import {
ArrowButton,
UserAvatarGroup,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import useMeQuery from "@lib/hooks/useMeQuery";
diff --git a/apps/web/modules/getting-started/[[...step]]/onboarding-view.tsx b/apps/web/modules/getting-started/[[...step]]/onboarding-view.tsx
index 0254d6ceafe..e101727d7da 100644
--- a/apps/web/modules/getting-started/[[...step]]/onboarding-view.tsx
+++ b/apps/web/modules/getting-started/[[...step]]/onboarding-view.tsx
@@ -7,7 +7,6 @@ import { Suspense } from "react";
import { Toaster } from "sonner";
import { z } from "zod";
-import { classNames } from "@calcom/lib";
import { APP_NAME } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { useParamsWithFallback } from "@calcom/lib/hooks/useParamsWithFallback";
@@ -15,6 +14,7 @@ import { trpc } from "@calcom/trpc";
import type { inferSSRProps } from "@calcom/types/inferSSRProps";
import { Button, StepCard, Steps } from "@calcom/ui";
import { Icon } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { getServerSideProps } from "@lib/getting-started/[[...step]]/getServerSideProps";
diff --git a/apps/web/modules/settings/billing/billing-view.tsx b/apps/web/modules/settings/billing/billing-view.tsx
index 900c6991042..f8d4325ef9b 100644
--- a/apps/web/modules/settings/billing/billing-view.tsx
+++ b/apps/web/modules/settings/billing/billing-view.tsx
@@ -2,10 +2,10 @@
import { usePathname } from "next/navigation";
-import { classNames } from "@calcom/lib";
import { WEBAPP_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Button } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
interface CtaRowProps {
title: string;
diff --git a/apps/web/modules/settings/my-account/general-view.tsx b/apps/web/modules/settings/my-account/general-view.tsx
index 8482de931b9..7bdbd2ce420 100644
--- a/apps/web/modules/settings/my-account/general-view.tsx
+++ b/apps/web/modules/settings/my-account/general-view.tsx
@@ -5,7 +5,6 @@ import { useState } from "react";
import { Controller, useForm } from "react-hook-form";
import SectionBottomActions from "@calcom/features/settings/SectionBottomActions";
-import { classNames } from "@calcom/lib";
import { formatLocalizedDateTime } from "@calcom/lib/date-fns";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { localeOptions } from "@calcom/lib/i18n";
@@ -24,6 +23,7 @@ import {
TimezoneSelect,
SettingsToggle,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import TravelScheduleModal from "@components/settings/TravelScheduleModal";
diff --git a/apps/web/modules/settings/security/password-view.tsx b/apps/web/modules/settings/security/password-view.tsx
index 48106836e1c..56975be804f 100644
--- a/apps/web/modules/settings/security/password-view.tsx
+++ b/apps/web/modules/settings/security/password-view.tsx
@@ -6,7 +6,6 @@ import { useForm } from "react-hook-form";
import { identityProviderNameMap } from "@calcom/features/auth/lib/identityProviderNameMap";
import SectionBottomActions from "@calcom/features/settings/SectionBottomActions";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { IdentityProvider } from "@calcom/prisma/enums";
import { userMetadata as userMetadataSchema } from "@calcom/prisma/zod-utils";
@@ -24,6 +23,7 @@ import {
SkeletonContainer,
SkeletonText,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type ChangePasswordSessionFormValues = {
oldPassword: string;
diff --git a/apps/web/modules/signup-view.tsx b/apps/web/modules/signup-view.tsx
index 7c1b748e80e..4863b1ad498 100644
--- a/apps/web/modules/signup-view.tsx
+++ b/apps/web/modules/signup-view.tsx
@@ -18,7 +18,6 @@ import getStripe from "@calcom/app-store/stripepayment/lib/client";
import { getPremiumPlanPriceValue } from "@calcom/app-store/stripepayment/lib/utils";
import { getOrgUsernameFromEmail } from "@calcom/features/auth/signup/utils/getOrgUsernameFromEmail";
import { getOrgFullOrigin } from "@calcom/features/ee/organizations/lib/orgDomains";
-import { classNames } from "@calcom/lib";
import {
APP_NAME,
URL_PROTOCOL_REGEX,
@@ -40,6 +39,7 @@ import { collectPageParameters, telemetryEventTypes, useTelemetry } from "@calco
import { signupSchema as apiSignupSchema } from "@calcom/prisma/zod-utils";
import type { inferSSRProps } from "@calcom/types/inferSSRProps";
import { Button, PasswordField, TextField, Form, Alert, CheckboxField, Icon, showToast } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { getServerSideProps } from "@lib/signup/getServerSideProps";
diff --git a/apps/web/modules/videos/views/videos-single-view.tsx b/apps/web/modules/videos/views/videos-single-view.tsx
index 77ab60d6930..f145ffd93fe 100644
--- a/apps/web/modules/videos/views/videos-single-view.tsx
+++ b/apps/web/modules/videos/views/videos-single-view.tsx
@@ -6,7 +6,6 @@ import { DailyProvider } from "@daily-co/daily-react";
import { useState, useEffect, useRef } from "react";
import dayjs from "@calcom/dayjs";
-import classNames from "@calcom/lib/classNames";
import { WEBSITE_URL } from "@calcom/lib/constants";
import { TRANSCRIPTION_STOPPED_ICON, RECORDING_DEFAULT_ICON } from "@calcom/lib/constants";
import { formatToLocalizedDate, formatToLocalizedTime } from "@calcom/lib/date-fns";
@@ -14,6 +13,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
import { markdownToSafeHTML } from "@calcom/lib/markdownToSafeHTML";
import type { inferSSRProps } from "@calcom/types/inferSSRProps";
import { Icon } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { getServerSideProps } from "@lib/video/[uid]/getServerSideProps";
diff --git a/packages/app-store/_components/AppCard.tsx b/packages/app-store/_components/AppCard.tsx
index f086b8bfaf5..030c56d5706 100644
--- a/packages/app-store/_components/AppCard.tsx
+++ b/packages/app-store/_components/AppCard.tsx
@@ -4,9 +4,9 @@ import { useTranslation } from "react-i18next";
import { useAppContextWithSchema } from "@calcom/app-store/EventTypeAppContext";
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
-import { classNames } from "@calcom/lib";
import type { RouterOutputs } from "@calcom/trpc/react";
import { Switch, Badge, Avatar, Button, Icon } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { CredentialOwner } from "../types";
import OmniInstallAppButton from "./OmniInstallAppButton";
diff --git a/packages/app-store/_components/AppCategoryNavigation.tsx b/packages/app-store/_components/AppCategoryNavigation.tsx
index 39845f404ef..0b5863b7a3b 100644
--- a/packages/app-store/_components/AppCategoryNavigation.tsx
+++ b/packages/app-store/_components/AppCategoryNavigation.tsx
@@ -1,8 +1,8 @@
import { useAutoAnimate } from "@formkit/auto-animate/react";
import { useMemo } from "react";
-import { classNames as cs } from "@calcom/lib";
import { HorizontalTabs, VerticalTabs } from "@calcom/ui";
+import cs from "@calcom/ui/classNames";
import getAppCategories from "../_utils/getAppCategories";
diff --git a/packages/app-store/_components/OmniInstallAppButton.tsx b/packages/app-store/_components/OmniInstallAppButton.tsx
index f772ed8683a..6bb048c1f3b 100644
--- a/packages/app-store/_components/OmniInstallAppButton.tsx
+++ b/packages/app-store/_components/OmniInstallAppButton.tsx
@@ -1,8 +1,8 @@
-import { classNames } from "@calcom/lib";
import useApp from "@calcom/lib/hooks/useApp";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
import { Button, showToast } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import useAddAppMutation from "../_utils/useAddAppMutation";
import { InstallAppButton } from "../components";
diff --git a/packages/app-store/components.tsx b/packages/app-store/components.tsx
index fa704b98e42..6cba4fb4ba8 100644
--- a/packages/app-store/components.tsx
+++ b/packages/app-store/components.tsx
@@ -6,7 +6,6 @@ import { useEffect, useRef } from "react";
import type { UseAddAppMutationOptions } from "@calcom/app-store/_utils/useAddAppMutation";
import useAddAppMutation from "@calcom/app-store/_utils/useAddAppMutation";
-import classNames from "@calcom/lib/classNames";
import { WEBAPP_URL } from "@calcom/lib/constants";
import { deriveAppDictKeyFromType } from "@calcom/lib/deriveAppDictKeyFromType";
import { useHasTeamPlan } from "@calcom/lib/hooks/useHasPaidPlan";
@@ -15,6 +14,7 @@ import { trpc } from "@calcom/trpc/react";
import type { RouterOutputs } from "@calcom/trpc/react";
import type { App } from "@calcom/types/App";
import { Icon } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { InstallAppButtonMap } from "./apps.browser.generated";
import type { InstallAppButtonProps } from "./types";
diff --git a/packages/app-store/giphy/components/SearchDialog.tsx b/packages/app-store/giphy/components/SearchDialog.tsx
index 45a9689eb22..950e137ee3c 100644
--- a/packages/app-store/giphy/components/SearchDialog.tsx
+++ b/packages/app-store/giphy/components/SearchDialog.tsx
@@ -1,10 +1,10 @@
import type { Dispatch, SetStateAction } from "react";
import { useState } from "react";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { IconName } from "@calcom/ui";
import { Alert, Button, Dialog, DialogClose, DialogContent, DialogFooter, Icon, Input } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
interface ISearchDialog {
isOpenDialog: boolean;
diff --git a/packages/app-store/hitpay/components/KeyInput.tsx b/packages/app-store/hitpay/components/KeyInput.tsx
index 16a80e4f5e2..7bc2c5359b3 100644
--- a/packages/app-store/hitpay/components/KeyInput.tsx
+++ b/packages/app-store/hitpay/components/KeyInput.tsx
@@ -3,9 +3,9 @@
import type { FormEvent } from "react";
import React, { forwardRef, useState, useEffect, useId, useCallback } from "react";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Input, Skeleton, Icon, Label } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { InputFieldProps } from "@calcom/ui/components/form/inputs/types";
type AddonProps = {
diff --git a/packages/app-store/qr_code/components/EventTypeAppSettingsInterface.tsx b/packages/app-store/qr_code/components/EventTypeAppSettingsInterface.tsx
index c88b3c2a8c7..6813bc0a6d7 100644
--- a/packages/app-store/qr_code/components/EventTypeAppSettingsInterface.tsx
+++ b/packages/app-store/qr_code/components/EventTypeAppSettingsInterface.tsx
@@ -1,9 +1,9 @@
import { useState } from "react";
import type { EventTypeAppSettingsComponent } from "@calcom/app-store/types";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { TextField, Tooltip } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
const EventTypeAppSettingsInterface: EventTypeAppSettingsComponent = ({ eventType, disabled }) => {
const { t } = useLocale();
diff --git a/packages/app-store/routing-forms/components/FormActions.tsx b/packages/app-store/routing-forms/components/FormActions.tsx
index 1e04b9cef83..03e5824f413 100644
--- a/packages/app-store/routing-forms/components/FormActions.tsx
+++ b/packages/app-store/routing-forms/components/FormActions.tsx
@@ -6,7 +6,6 @@ import { v4 as uuidv4 } from "uuid";
import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider";
import { RoutingFormEmbedButton, RoutingFormEmbedDialog } from "@calcom/features/embed/RoutingFormEmbed";
import { EmbedDialogProvider } from "@calcom/features/embed/lib/hooks/useEmbedDialogCtx";
-import { classNames } from "@calcom/lib";
import { WEBSITE_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import slugify from "@calcom/lib/slugify";
@@ -30,6 +29,7 @@ import {
TextAreaField,
TextField,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import getFieldIdentifier from "../lib/getFieldIdentifier";
diff --git a/packages/app-store/routing-forms/components/SingleForm.tsx b/packages/app-store/routing-forms/components/SingleForm.tsx
index d4d7ccab58e..310f33f8b9a 100644
--- a/packages/app-store/routing-forms/components/SingleForm.tsx
+++ b/packages/app-store/routing-forms/components/SingleForm.tsx
@@ -7,7 +7,6 @@ import { Controller, useFormContext } from "react-hook-form";
import LicenseRequired from "@calcom/features/ee/common/components/LicenseRequired";
import AddMembersWithSwitch from "@calcom/features/eventtypes/components/AddMembersWithSwitch";
import { ShellMain } from "@calcom/features/shell/Shell";
-import cn from "@calcom/lib/classNames";
import { IS_CALCOM } from "@calcom/lib/constants";
import useApp from "@calcom/lib/hooks/useApp";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
@@ -35,6 +34,7 @@ import {
Tooltip,
VerticalDivider,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { getAbsoluteEventTypeRedirectUrl } from "../getEventTypeRedirectUrl";
import { RoutingPages } from "../lib/RoutingPages";
@@ -368,7 +368,7 @@ const TeamMembersMatchResult = ({
<div data-testid="chosen-route">
{t("chosen_route")}: <span className="font-semibold">{chosenRouteName}</span>
</div>
- <div data-testid="attribute-logic-matched" className={cn(hasMainWarnings && "text-error")}>
+ <div data-testid="attribute-logic-matched" className={classNames(hasMainWarnings && "text-error")}>
{t("attribute_logic_matched")}: <span className="font-semibold">{renderMainLogicStatus()}</span>
{hasMainWarnings && (
<Alert
@@ -380,7 +380,7 @@ const TeamMembersMatchResult = ({
</div>
<div
data-testid="attribute-logic-fallback-matched"
- className={cn(hasFallbackWarnings && "text-error")}>
+ className={classNames(hasFallbackWarnings && "text-error")}>
{t("attribute_logic_fallback_matched")}:{" "}
<span className="font-semibold">{renderFallbackLogicStatus()}</span>
{hasFallbackWarnings && (
@@ -591,7 +591,7 @@ export const TestForm = ({
<span className="text-default underline">
<a
target="_blank"
- className={cn(
+ className={classNames(
findTeamMembersMatchingAttributeLogicMutation.isPending && "pointer-events-none"
)}
href={membersMatchResult?.eventTypeRedirectUrl ?? eventTypeUrlWithoutParams}
diff --git a/packages/app-store/routing-forms/pages/form-edit/[...appPages].tsx b/packages/app-store/routing-forms/pages/form-edit/[...appPages].tsx
index d9c36603764..10f515f599e 100644
--- a/packages/app-store/routing-forms/pages/form-edit/[...appPages].tsx
+++ b/packages/app-store/routing-forms/pages/form-edit/[...appPages].tsx
@@ -6,7 +6,6 @@ import type { UseFormReturn } from "react-hook-form";
import { Controller, useFieldArray, useWatch } from "react-hook-form";
import { v4 as uuidv4 } from "uuid";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import {
BooleanToggleGroupField,
@@ -19,6 +18,7 @@ import {
Skeleton,
TextField,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { inferSSRProps } from "@lib/types/inferSSRProps";
diff --git a/packages/app-store/routing-forms/pages/reporting/[...appPages].tsx b/packages/app-store/routing-forms/pages/reporting/[...appPages].tsx
index 7ba1f7e1d4d..71761616562 100644
--- a/packages/app-store/routing-forms/pages/reporting/[...appPages].tsx
+++ b/packages/app-store/routing-forms/pages/reporting/[...appPages].tsx
@@ -10,13 +10,13 @@ import type {
} from "react-awesome-query-builder";
import { Builder, Query, Utils as QbUtils } from "react-awesome-query-builder";
-import { classNames } from "@calcom/lib";
import { downloadAsCsv, sanitizeValue } from "@calcom/lib/csvUtils";
import { useInViewObserver } from "@calcom/lib/hooks/useInViewObserver";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
import type { inferSSRProps } from "@calcom/types/inferSSRProps";
import { Button, showToast } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import SingleForm, {
getServerSidePropsForSingleFormView as getServerSideProps,
diff --git a/packages/app-store/routing-forms/pages/routing-link/[...appPages].tsx b/packages/app-store/routing-forms/pages/routing-link/[...appPages].tsx
index 57c4bab4461..9c4ff63f115 100644
--- a/packages/app-store/routing-forms/pages/routing-link/[...appPages].tsx
+++ b/packages/app-store/routing-forms/pages/routing-link/[...appPages].tsx
@@ -7,7 +7,6 @@ import { Toaster } from "sonner";
import { v4 as uuidv4 } from "uuid";
import { sdkActionManager, useIsEmbed } from "@calcom/embed-core/embed-iframe";
-import classNames from "@calcom/lib/classNames";
import useGetBrandingColours from "@calcom/lib/getBrandColours";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import { useLocale } from "@calcom/lib/hooks/useLocale";
@@ -16,6 +15,7 @@ import { navigateInTopWindow } from "@calcom/lib/navigateInTopWindow";
import { trpc } from "@calcom/trpc/react";
import type { inferSSRProps } from "@calcom/types/inferSSRProps";
import { Button, showToast, useCalcomTheme } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import FormInputFields from "../../components/FormInputFields";
import { getAbsoluteEventTypeRedirectUrlWithEmbedSupport } from "../../getEventTypeRedirectUrl";
diff --git a/packages/app-store/stripepayment/components/EventTypeAppSettingsInterface.tsx b/packages/app-store/stripepayment/components/EventTypeAppSettingsInterface.tsx
index ceae9d195dc..98ad17c20fb 100644
--- a/packages/app-store/stripepayment/components/EventTypeAppSettingsInterface.tsx
+++ b/packages/app-store/stripepayment/components/EventTypeAppSettingsInterface.tsx
@@ -2,10 +2,10 @@ import * as RadioGroup from "@radix-ui/react-radio-group";
import { useState, useEffect } from "react";
import type { EventTypeAppSettingsComponent } from "@calcom/app-store/types";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { RefundPolicy } from "@calcom/lib/payment/types";
import { Alert, RadioField, Select, TextField } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import {
convertToSmallestCurrencyUnit,
diff --git a/packages/features/Segment.tsx b/packages/features/Segment.tsx
index 9f2ae2b1725..f8260e694ef 100644
--- a/packages/features/Segment.tsx
+++ b/packages/features/Segment.tsx
@@ -10,12 +10,12 @@ import {
ConfigFor,
} from "@calcom/app-store/routing-forms/components/react-awesome-query-builder/config/uiConfig";
import { getQueryBuilderConfigForAttributes } from "@calcom/app-store/routing-forms/lib/getQueryBuilderConfig";
-import { classNames as cn } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { isEqual } from "@calcom/lib/isEqual";
import { buildStateFromQueryValue } from "@calcom/lib/raqb/raqbUtils";
import type { AttributesQueryValue } from "@calcom/lib/raqb/types";
import { trpc, type RouterOutputs } from "@calcom/trpc";
+import cn from "@calcom/ui/classNames";
export type Attributes = RouterOutputs["viewer"]["appRoutingForms"]["getAttributesForTeam"];
export function useAttributes(teamId: number) {
diff --git a/packages/features/apps/AdminAppsList.tsx b/packages/features/apps/AdminAppsList.tsx
index 2a9b7f282a4..5c9af795e55 100644
--- a/packages/features/apps/AdminAppsList.tsx
+++ b/packages/features/apps/AdminAppsList.tsx
@@ -11,7 +11,6 @@ import { z } from "zod";
import AppCategoryNavigation from "@calcom/app-store/_components/AppCategoryNavigation";
import { appKeysSchemas } from "@calcom/app-store/apps.keys-schemas.generated";
import AppListCard from "@calcom/features/apps/components/AppListCard";
-import { classNames as cs } from "@calcom/lib";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { AppCategories } from "@calcom/prisma/enums";
@@ -35,6 +34,7 @@ import {
Switch,
TextField,
} from "@calcom/ui";
+import cs from "@calcom/ui/classNames";
type App = RouterOutputs["viewer"]["appsRouter"]["listLocal"][number];
@@ -158,7 +158,7 @@ const AdminAppsList = ({
<form
{...rest}
className={
- classNames?.form ?? "bg-default mb-4 max-w-80 rounded-md px-0 pt-0 md:max-w-full md:px-8 md:pt-10"
+ classNames?.form ?? "bg-default max-w-80 mb-4 rounded-md px-0 pt-0 md:max-w-full md:px-8 md:pt-10"
}
onSubmit={(e) => {
e.preventDefault();
diff --git a/packages/features/availability/components/SkeletonLoader.tsx b/packages/features/availability/components/SkeletonLoader.tsx
index bccb4bbf6bd..a2660e166ee 100644
--- a/packages/features/availability/components/SkeletonLoader.tsx
+++ b/packages/features/availability/components/SkeletonLoader.tsx
@@ -1,5 +1,5 @@
-import classNames from "@calcom/lib/classNames";
import { Button, SkeletonText } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
function SkeletonLoader() {
return (
diff --git a/packages/features/bookings/Booker/Booker.tsx b/packages/features/bookings/Booker/Booker.tsx
index e1f6f9ce439..8495b11a3c8 100644
--- a/packages/features/bookings/Booker/Booker.tsx
+++ b/packages/features/bookings/Booker/Booker.tsx
@@ -11,11 +11,11 @@ import dayjs from "@calcom/dayjs";
import useSkipConfirmStep from "@calcom/features/bookings/Booker/components/hooks/useSkipConfirmStep";
import { getQueryParam } from "@calcom/features/bookings/Booker/utils/query-param";
import { useNonEmptyScheduleDays } from "@calcom/features/schedules";
-import classNames from "@calcom/lib/classNames";
import { PUBLIC_INVALIDATE_AVAILABLE_SLOTS_ON_BOOKING_FORM } from "@calcom/lib/constants";
import { CLOUDFLARE_SITE_ID, CLOUDFLARE_USE_TURNSTILE_IN_BOOKER } from "@calcom/lib/constants";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import { BookerLayouts } from "@calcom/prisma/zod-utils";
+import classNames from "@calcom/ui/classNames";
import { VerifyCodeDialog } from "../components/VerifyCodeDialog";
import { AvailableTimeSlots } from "./components/AvailableTimeSlots";
diff --git a/packages/features/bookings/Booker/components/AvailableTimeSlots.tsx b/packages/features/bookings/Booker/components/AvailableTimeSlots.tsx
index cd5d87a546d..fa82497b9ed 100644
--- a/packages/features/bookings/Booker/components/AvailableTimeSlots.tsx
+++ b/packages/features/bookings/Booker/components/AvailableTimeSlots.tsx
@@ -7,9 +7,9 @@ import type { BookerEvent } from "@calcom/features/bookings/types";
import { useNonEmptyScheduleDays } from "@calcom/features/schedules";
import type { Slot } from "@calcom/features/schedules";
import { useSlotsForAvailableDates } from "@calcom/features/schedules/lib/use-schedule/useSlotsForDate";
-import { classNames } from "@calcom/lib";
import { PUBLIC_INVALIDATE_AVAILABLE_SLOTS_ON_BOOKING_FORM } from "@calcom/lib/constants";
import { BookerLayouts } from "@calcom/prisma/zod-utils";
+import classNames from "@calcom/ui/classNames";
import { AvailableTimesHeader } from "../../components/AvailableTimesHeader";
import { useBookerStore } from "../store";
diff --git a/packages/features/bookings/Booker/components/OutOfOfficeInSlots.tsx b/packages/features/bookings/Booker/components/OutOfOfficeInSlots.tsx
index c0a1ee7bd56..dc4d6ccd8b9 100644
--- a/packages/features/bookings/Booker/components/OutOfOfficeInSlots.tsx
+++ b/packages/features/bookings/Booker/components/OutOfOfficeInSlots.tsx
@@ -1,11 +1,11 @@
import { Trans } from "next-i18next";
import { useRouter } from "next/navigation";
-import { classNames } from "@calcom/lib";
import type { IOutOfOfficeData } from "@calcom/lib/getUserAvailability";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Button } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
interface IOutOfOfficeInSlotsProps {
date: string;
diff --git a/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendarSettingsModal.tsx b/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendarSettingsModal.tsx
index 046394fc6e8..0667e2a0520 100644
--- a/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendarSettingsModal.tsx
+++ b/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendarSettingsModal.tsx
@@ -2,7 +2,6 @@ import Link from "next/link";
import { Fragment } from "react";
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import {
Alert,
@@ -17,6 +16,7 @@ import {
SkeletonText,
Switch,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { UseCalendarsReturnType } from "../hooks/useCalendars";
diff --git a/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendarSwitch.tsx b/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendarSwitch.tsx
index ac6ac18fe95..c98600473c0 100644
--- a/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendarSwitch.tsx
+++ b/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendarSwitch.tsx
@@ -1,8 +1,8 @@
import { useEffect } from "react";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Button, Switch } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { useBookerStore } from "../../store";
import { useOverlayCalendarStore } from "./store";
diff --git a/packages/features/bookings/Booker/components/Section.tsx b/packages/features/bookings/Booker/components/Section.tsx
index b2450a3866c..ed8f96c2c30 100644
--- a/packages/features/bookings/Booker/components/Section.tsx
+++ b/packages/features/bookings/Booker/components/Section.tsx
@@ -2,7 +2,7 @@ import type { MotionProps } from "framer-motion";
import { m } from "framer-motion";
import { forwardRef } from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import { useBookerStore } from "../store";
import type { BookerAreas, BookerLayout } from "../types";
diff --git a/packages/features/bookings/Booker/utils/getBookerWrapperClasses.ts b/packages/features/bookings/Booker/utils/getBookerWrapperClasses.ts
index 43361e5dc6a..36f21d1ba6b 100644
--- a/packages/features/bookings/Booker/utils/getBookerWrapperClasses.ts
+++ b/packages/features/bookings/Booker/utils/getBookerWrapperClasses.ts
@@ -1,4 +1,4 @@
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
export function getBookerWrapperClasses({ isEmbed }: { isEmbed: boolean }) {
// We don't want any margins for Embed. Any margin needed should be added by Embed user.
diff --git a/packages/features/bookings/components/AvailableTimes.tsx b/packages/features/bookings/components/AvailableTimes.tsx
index ad2fda06b1a..a85284b7fdc 100644
--- a/packages/features/bookings/components/AvailableTimes.tsx
+++ b/packages/features/bookings/components/AvailableTimes.tsx
@@ -9,13 +9,13 @@ import { OutOfOfficeInSlots } from "@calcom/features/bookings/Booker/components/
import type { IUseBookingLoadingStates } from "@calcom/features/bookings/Booker/components/hooks/useBookings";
import type { BookerEvent } from "@calcom/features/bookings/types";
import type { Slot } from "@calcom/features/schedules";
-import { classNames } from "@calcom/lib";
import { getPaymentAppData } from "@calcom/lib/getPaymentAppData";
import type { IOutOfOfficeData } from "@calcom/lib/getUserAvailability";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { localStorage } from "@calcom/lib/webstorage";
import type { IGetAvailableSlots } from "@calcom/trpc/server/routers/viewer/slots/util";
import { Button, Icon, SkeletonText } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { useBookerTime } from "../Booker/components/hooks/useBookerTime";
import { useBookerStore } from "../Booker/store";
diff --git a/packages/features/bookings/components/AvailableTimesHeader.tsx b/packages/features/bookings/components/AvailableTimesHeader.tsx
index f3525fdaef8..74e11494ec0 100644
--- a/packages/features/bookings/components/AvailableTimesHeader.tsx
+++ b/packages/features/bookings/components/AvailableTimesHeader.tsx
@@ -2,10 +2,10 @@ import { shallow } from "zustand/shallow";
import type { Dayjs } from "@calcom/dayjs";
import dayjs from "@calcom/dayjs";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { nameOfDay } from "@calcom/lib/weekday";
import { BookerLayouts } from "@calcom/prisma/zod-utils";
+import classNames from "@calcom/ui/classNames";
import { useBookerStore } from "../Booker/store";
import { TimeFormatToggle } from "./TimeFormatToggle";
diff --git a/packages/features/bookings/components/SeatsAvailabilityText.tsx b/packages/features/bookings/components/SeatsAvailabilityText.tsx
index 3b33c22f2ca..8390e29fbde 100644
--- a/packages/features/bookings/components/SeatsAvailabilityText.tsx
+++ b/packages/features/bookings/components/SeatsAvailabilityText.tsx
@@ -1,5 +1,5 @@
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
+import classNames from "@calcom/ui/classNames";
type Props = {
/**
diff --git a/packages/features/bookings/components/event-meta/AvailableEventLocations.tsx b/packages/features/bookings/components/event-meta/AvailableEventLocations.tsx
index 50e5881d841..7ff8f5dbc51 100644
--- a/packages/features/bookings/components/event-meta/AvailableEventLocations.tsx
+++ b/packages/features/bookings/components/event-meta/AvailableEventLocations.tsx
@@ -5,10 +5,10 @@ import type {
} from "@calcom/app-store/locations";
import { getEventLocationType, getTranslatedLocation } from "@calcom/app-store/locations";
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import invertLogoOnDark from "@calcom/lib/invertLogoOnDark";
import { Icon, Tooltip } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
const excludeNullValues = (value: unknown) => !!value;
diff --git a/packages/features/bookings/components/event-meta/Details.tsx b/packages/features/bookings/components/event-meta/Details.tsx
index 3a77bd292a3..cfe742e8023 100644
--- a/packages/features/bookings/components/event-meta/Details.tsx
+++ b/packages/features/bookings/components/event-meta/Details.tsx
@@ -3,10 +3,10 @@ import React, { Fragment } from "react";
import { useBookerStore } from "@calcom/features/bookings/Booker/store";
import { PriceIcon } from "@calcom/features/bookings/components/event-meta/PriceIcon";
import type { BookerEvent } from "@calcom/features/bookings/types";
-import classNames from "@calcom/lib/classNames";
import { getPaymentAppData } from "@calcom/lib/getPaymentAppData";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Icon, type IconName } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { EventDetailBlocks } from "../../types";
import { AvailableEventLocations } from "./AvailableEventLocations";
diff --git a/packages/features/bookings/components/event-meta/Duration.tsx b/packages/features/bookings/components/event-meta/Duration.tsx
index 6ee65edbc6d..7d98f0e2c11 100644
--- a/packages/features/bookings/components/event-meta/Duration.tsx
+++ b/packages/features/bookings/components/event-meta/Duration.tsx
@@ -5,9 +5,9 @@ import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
import { useIsEmbed } from "@calcom/embed-core/embed-iframe";
import { useBookerStore } from "@calcom/features/bookings/Booker/store";
import type { BookerEvent } from "@calcom/features/bookings/types";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { useShouldShowArrows, Icon } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
/** Render X mins as X hours or X hours Y mins instead of in minutes once >= 60 minutes */
export const getDurationFormatted = (mins: number | undefined, t: TFunction) => {
diff --git a/packages/features/bookings/components/event-meta/Locations.tsx b/packages/features/bookings/components/event-meta/Locations.tsx
index c201ed3c381..72fe72960e7 100644
--- a/packages/features/bookings/components/event-meta/Locations.tsx
+++ b/packages/features/bookings/components/event-meta/Locations.tsx
@@ -1,8 +1,8 @@
import { getEventLocationType, getTranslatedLocation } from "@calcom/app-store/locations";
import type { BookerEvent } from "@calcom/features/bookings/types";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Tooltip } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { EventMetaBlock } from "./Details";
diff --git a/packages/features/bookings/components/event-meta/Skeleton.tsx b/packages/features/bookings/components/event-meta/Skeleton.tsx
index cc7f73d255a..9740c76069a 100644
--- a/packages/features/bookings/components/event-meta/Skeleton.tsx
+++ b/packages/features/bookings/components/event-meta/Skeleton.tsx
@@ -1,5 +1,5 @@
-import classNames from "@calcom/lib/classNames";
import { SkeletonText } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export const EventMetaSkeleton = () => (
<div className="flex flex-col">
diff --git a/packages/features/bookings/components/event-meta/Title.tsx b/packages/features/bookings/components/event-meta/Title.tsx
index 7046a0185aa..f41db8f6467 100644
--- a/packages/features/bookings/components/event-meta/Title.tsx
+++ b/packages/features/bookings/components/event-meta/Title.tsx
@@ -1,4 +1,4 @@
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
interface EventTitleProps {
children: React.ReactNode;
diff --git a/packages/features/calendars/CalendarSwitch.tsx b/packages/features/calendars/CalendarSwitch.tsx
index 5ba91e4554b..ef8eefc9160 100644
--- a/packages/features/calendars/CalendarSwitch.tsx
+++ b/packages/features/calendars/CalendarSwitch.tsx
@@ -3,10 +3,10 @@
import { useMutation } from "@tanstack/react-query";
import { useState } from "react";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
import { Icon, showToast, Switch } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export type ICalendarSwitchProps = {
title: string;
diff --git a/packages/features/calendars/DatePicker.tsx b/packages/features/calendars/DatePicker.tsx
index 9aae86e8975..1b450557ff4 100644
--- a/packages/features/calendars/DatePicker.tsx
+++ b/packages/features/calendars/DatePicker.tsx
@@ -6,12 +6,12 @@ import dayjs from "@calcom/dayjs";
import { useEmbedStyles } from "@calcom/embed-core/embed-iframe";
import { useBookerStore } from "@calcom/features/bookings/Booker/store";
import { getAvailableDatesInMonth } from "@calcom/features/calendars/lib/getAvailableDatesInMonth";
-import classNames from "@calcom/lib/classNames";
import { daysInMonth, yyyymmdd } from "@calcom/lib/date-fns";
import type { IFromUser, IToUser } from "@calcom/lib/getUserAvailability";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { weekdayNames } from "@calcom/lib/weekday";
import { Button, SkeletonText } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export type DatePickerProps = {
/** which day of the week to render the calendar. Usually Sunday (=0) or Monday (=1) - default: Sunday */
diff --git a/packages/features/calendars/weeklyview/components/Calendar.tsx b/packages/features/calendars/weeklyview/components/Calendar.tsx
index dc79bff41c5..878a82a0dbf 100644
--- a/packages/features/calendars/weeklyview/components/Calendar.tsx
+++ b/packages/features/calendars/weeklyview/components/Calendar.tsx
@@ -1,6 +1,6 @@
import React, { useEffect, useMemo, useRef } from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import { useBookerTime } from "../../../bookings/Booker/components/hooks/useBookerTime";
import { useCalendarStore } from "../state/store";
diff --git a/packages/features/calendars/weeklyview/components/DateValues/index.tsx b/packages/features/calendars/weeklyview/components/DateValues/index.tsx
index 1fefead3d10..8b1efaa46e2 100644
--- a/packages/features/calendars/weeklyview/components/DateValues/index.tsx
+++ b/packages/features/calendars/weeklyview/components/DateValues/index.tsx
@@ -1,8 +1,8 @@
import React from "react";
import dayjs from "@calcom/dayjs";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
+import classNames from "@calcom/ui/classNames";
type Props = {
days: dayjs.Dayjs[];
diff --git a/packages/features/calendars/weeklyview/components/blocking/BlockedTimeCell.tsx b/packages/features/calendars/weeklyview/components/blocking/BlockedTimeCell.tsx
index c21fd67e6ad..6dc6e70378c 100644
--- a/packages/features/calendars/weeklyview/components/blocking/BlockedTimeCell.tsx
+++ b/packages/features/calendars/weeklyview/components/blocking/BlockedTimeCell.tsx
@@ -1,4 +1,4 @@
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
export function BlockedTimeCell() {
return (
diff --git a/packages/features/calendars/weeklyview/components/event/Empty.tsx b/packages/features/calendars/weeklyview/components/event/Empty.tsx
index e121195fd98..913f09980c2 100644
--- a/packages/features/calendars/weeklyview/components/event/Empty.tsx
+++ b/packages/features/calendars/weeklyview/components/event/Empty.tsx
@@ -3,7 +3,7 @@ import { shallow } from "zustand/shallow";
import type { Dayjs } from "@calcom/dayjs";
import dayjs from "@calcom/dayjs";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import { OutOfOfficeInSlots } from "../../../../bookings/Booker/components/OutOfOfficeInSlots";
import { useBookerTime } from "../../../../bookings/Booker/components/hooks/useBookerTime";
diff --git a/packages/features/calendars/weeklyview/components/event/Event.tsx b/packages/features/calendars/weeklyview/components/event/Event.tsx
index 1e508b733a9..8213bc3ec7c 100644
--- a/packages/features/calendars/weeklyview/components/event/Event.tsx
+++ b/packages/features/calendars/weeklyview/components/event/Event.tsx
@@ -1,8 +1,8 @@
import { cva } from "class-variance-authority";
import dayjs from "@calcom/dayjs";
-import classNames from "@calcom/lib/classNames";
import { Tooltip } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { CalendarEvent } from "../../types/events";
diff --git a/packages/features/calendars/weeklyview/components/spinner/Spinner.tsx b/packages/features/calendars/weeklyview/components/spinner/Spinner.tsx
index 2d5dac0a576..138e10b8c3c 100644
--- a/packages/features/calendars/weeklyview/components/spinner/Spinner.tsx
+++ b/packages/features/calendars/weeklyview/components/spinner/Spinner.tsx
@@ -1,4 +1,4 @@
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
export const Spinner = ({ className }: { className?: string }) => (
<div
diff --git a/packages/features/data-table/components/DataTable.tsx b/packages/features/data-table/components/DataTable.tsx
index ef22c505065..1e741e1f476 100644
--- a/packages/features/data-table/components/DataTable.tsx
+++ b/packages/features/data-table/components/DataTable.tsx
@@ -9,7 +9,6 @@ import kebabCase from "lodash/kebabCase";
import { usePathname } from "next/navigation";
import { useEffect, useState, memo } from "react";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import {
TableNew,
@@ -26,6 +25,7 @@ import {
CommandItem,
Icon,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { useColumnSizingVars } from "../hooks";
import { usePersistentColumnResizing } from "../lib/resizing";
diff --git a/packages/features/data-table/components/DataTableSelectionBar.tsx b/packages/features/data-table/components/DataTableSelectionBar.tsx
index 4f0c530b937..abe557aa3aa 100644
--- a/packages/features/data-table/components/DataTableSelectionBar.tsx
+++ b/packages/features/data-table/components/DataTableSelectionBar.tsx
@@ -4,9 +4,9 @@ import type { Table } from "@tanstack/react-table";
import { forwardRef } from "react";
import { createPortal } from "react-dom";
-import { classNames } from "@calcom/lib";
import { Button, Icon } from "@calcom/ui";
import type { IconName, ButtonProps } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export type ActionItem<TData> =
| {
diff --git a/packages/features/data-table/components/DataTableToolbar.tsx b/packages/features/data-table/components/DataTableToolbar.tsx
index af3ffd91979..79d7adcacca 100644
--- a/packages/features/data-table/components/DataTableToolbar.tsx
+++ b/packages/features/data-table/components/DataTableToolbar.tsx
@@ -4,11 +4,11 @@ import type { Table } from "@tanstack/react-table";
import { useEffect, useState, forwardRef } from "react";
import type { ComponentPropsWithoutRef } from "react";
-import { classNames } from "@calcom/lib";
import { useDebounce } from "@calcom/lib/hooks/useDebounce";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { ButtonProps } from "@calcom/ui";
import { Button, Input } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { useColumnFilters } from "../hooks";
diff --git a/packages/features/data-table/components/DataTableWrapper.tsx b/packages/features/data-table/components/DataTableWrapper.tsx
index 35b19c49924..6c36ad6ddde 100644
--- a/packages/features/data-table/components/DataTableWrapper.tsx
+++ b/packages/features/data-table/components/DataTableWrapper.tsx
@@ -10,7 +10,7 @@ import {
useDataTable,
useColumnFilters,
} from "@calcom/features/data-table";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
export type DataTableWrapperProps<TData, TValue> = {
testId?: string;
diff --git a/packages/features/data-table/components/filters/BaseSelectFilterOptions.tsx b/packages/features/data-table/components/filters/BaseSelectFilterOptions.tsx
index 7b2af4c05b5..212ea9fee24 100644
--- a/packages/features/data-table/components/filters/BaseSelectFilterOptions.tsx
+++ b/packages/features/data-table/components/filters/BaseSelectFilterOptions.tsx
@@ -2,7 +2,6 @@
import { useMemo } from "react";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import {
Command,
@@ -15,6 +14,7 @@ import {
buttonClasses,
Icon,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { useDataTable, useFilterValue } from "../../hooks";
import type {
diff --git a/packages/features/data-table/components/filters/ColumnVisibilityButton.tsx b/packages/features/data-table/components/filters/ColumnVisibilityButton.tsx
index 938db7f65b0..de5976a148b 100644
--- a/packages/features/data-table/components/filters/ColumnVisibilityButton.tsx
+++ b/packages/features/data-table/components/filters/ColumnVisibilityButton.tsx
@@ -4,7 +4,6 @@ import { type Table } from "@tanstack/react-table";
// eslint-disable-next-line no-restricted-imports
import { forwardRef, useState } from "react";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { ButtonProps } from "@calcom/ui";
import {
@@ -22,6 +21,7 @@ import {
CommandSeparator,
Icon,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export interface ColumnVisiblityProps<TData> {
table: Table<TData>;
diff --git a/packages/features/data-table/components/filters/DateRangeFilter.tsx b/packages/features/data-table/components/filters/DateRangeFilter.tsx
index beffc2305de..edb31579651 100644
--- a/packages/features/data-table/components/filters/DateRangeFilter.tsx
+++ b/packages/features/data-table/components/filters/DateRangeFilter.tsx
@@ -3,7 +3,6 @@ import type { Dayjs } from "dayjs";
import { useState, useEffect, useCallback } from "react";
import dayjs from "@calcom/dayjs";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import {
DateRangePicker,
@@ -19,6 +18,7 @@ import {
CommandSeparator,
buttonClasses,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { useDataTable, useFilterValue } from "../../hooks";
import {
diff --git a/packages/features/ee/api-keys/components/ApiKeyListItem.tsx b/packages/features/ee/api-keys/components/ApiKeyListItem.tsx
index ffa57fd08fe..3a0fd9cabfc 100644
--- a/packages/features/ee/api-keys/components/ApiKeyListItem.tsx
+++ b/packages/features/ee/api-keys/components/ApiKeyListItem.tsx
@@ -1,5 +1,4 @@
import dayjs from "@calcom/dayjs";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { RouterOutputs } from "@calcom/trpc/react";
import { trpc } from "@calcom/trpc/react";
@@ -13,6 +12,7 @@ import {
DropdownMenuTrigger,
showToast,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export type TApiKeys = RouterOutputs["viewer"]["apiKeys"]["list"][number];
diff --git a/packages/features/ee/components/BrandColorsForm.tsx b/packages/features/ee/components/BrandColorsForm.tsx
index a51f21e39d0..613ce31e3f1 100644
--- a/packages/features/ee/components/BrandColorsForm.tsx
+++ b/packages/features/ee/components/BrandColorsForm.tsx
@@ -2,11 +2,11 @@ import { useState } from "react";
import { Controller, useFormContext } from "react-hook-form";
import SectionBottomActions from "@calcom/features/settings/SectionBottomActions";
-import { classNames } from "@calcom/lib";
import { DEFAULT_LIGHT_BRAND_COLOR, DEFAULT_DARK_BRAND_COLOR } from "@calcom/lib/constants";
import { checkWCAGContrastColor } from "@calcom/lib/getBrandColours";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Button, ColorPicker, SettingsToggle, Alert } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type BrandColorsFormValues = {
brandColor: string;
diff --git a/packages/features/ee/dsync/components/GroupNameCell.tsx b/packages/features/ee/dsync/components/GroupNameCell.tsx
index 9953d15dbff..6802a9b5d7f 100644
--- a/packages/features/ee/dsync/components/GroupNameCell.tsx
+++ b/packages/features/ee/dsync/components/GroupNameCell.tsx
@@ -1,9 +1,9 @@
import { useState } from "react";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
import { Badge, Icon, showToast, TextField } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
interface GroupNameCellProps {
groupNames: string[];
diff --git a/packages/features/ee/managed-event-types/hooks/useLockedFieldsManager.tsx b/packages/features/ee/managed-event-types/hooks/useLockedFieldsManager.tsx
index b998d850d02..f47bc84c8e5 100644
--- a/packages/features/ee/managed-event-types/hooks/useLockedFieldsManager.tsx
+++ b/packages/features/ee/managed-event-types/hooks/useLockedFieldsManager.tsx
@@ -7,11 +7,11 @@ import type { UseFormReturn } from "react-hook-form";
import type z from "zod";
import type { FormValues } from "@calcom/features/eventtypes/lib/types";
-import { classNames } from "@calcom/lib";
import type { Prisma } from "@calcom/prisma/client";
import { SchedulingType } from "@calcom/prisma/enums";
import type { _EventTypeModel } from "@calcom/prisma/zod/eventtype";
import { Badge, Icon, Switch, Tooltip } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export const LockedSwitch = (
isManagedEventType: boolean,
diff --git a/packages/features/ee/organizations/components/AddNewTeamsForm.tsx b/packages/features/ee/organizations/components/AddNewTeamsForm.tsx
index cfde9559b42..edb088ded1c 100644
--- a/packages/features/ee/organizations/components/AddNewTeamsForm.tsx
+++ b/packages/features/ee/organizations/components/AddNewTeamsForm.tsx
@@ -6,7 +6,6 @@ import { useState } from "react";
import { Controller, useFieldArray, useForm } from "react-hook-form";
import { z } from "zod";
-import { classNames } from "@calcom/lib";
import { IS_TEAM_BILLING_ENABLED_CLIENT } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { useRouterQuery } from "@calcom/lib/hooks/useRouterQuery";
@@ -14,6 +13,7 @@ import { CreationSource } from "@calcom/prisma/enums";
import { UserPermissionRole } from "@calcom/prisma/enums";
import { trpc } from "@calcom/trpc/react";
import { Button, CheckboxField, Form, Icon, showToast, TextField } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
const querySchema = z.object({
id: z.string().transform((val) => parseInt(val)),
diff --git a/packages/features/ee/organizations/components/CreateANewOrganizationForm.tsx b/packages/features/ee/organizations/components/CreateANewOrganizationForm.tsx
index b01b9a15c03..a6286fedb72 100644
--- a/packages/features/ee/organizations/components/CreateANewOrganizationForm.tsx
+++ b/packages/features/ee/organizations/components/CreateANewOrganizationForm.tsx
@@ -7,7 +7,6 @@ import { useState } from "react";
import { Controller, useForm } from "react-hook-form";
import { subdomainSuffix } from "@calcom/features/ee/organizations/lib/orgDomains";
-import classNames from "@calcom/lib/classNames";
import { MINIMUM_NUMBER_OF_ORG_SEATS } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import slugify from "@calcom/lib/slugify";
@@ -17,6 +16,7 @@ import { CreationSource } from "@calcom/prisma/enums";
import { trpc } from "@calcom/trpc/react";
import type { Ensure } from "@calcom/types/utils";
import { Alert, Button, Form, Label, RadioGroup as RadioArea, TextField, ToggleGroup } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
function extractDomainFromEmail(email: string) {
let out = "";
diff --git a/packages/features/ee/organizations/components/TeamInviteFromOrg.tsx b/packages/features/ee/organizations/components/TeamInviteFromOrg.tsx
index 5daab6af706..a9274ca0e23 100644
--- a/packages/features/ee/organizations/components/TeamInviteFromOrg.tsx
+++ b/packages/features/ee/organizations/components/TeamInviteFromOrg.tsx
@@ -1,9 +1,9 @@
import type { PropsWithChildren } from "react";
import { useState } from "react";
-import classNames from "@calcom/lib/classNames";
import type { RouterOutputs } from "@calcom/trpc";
import { Avatar, TextField } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type TeamInviteFromOrgProps = PropsWithChildren<{
selectedEmails?: string | string[];
diff --git a/packages/features/ee/organizations/pages/components/LockEventTypeSwitch.tsx b/packages/features/ee/organizations/pages/components/LockEventTypeSwitch.tsx
index 0c91616dce5..e2ff4df716f 100644
--- a/packages/features/ee/organizations/pages/components/LockEventTypeSwitch.tsx
+++ b/packages/features/ee/organizations/pages/components/LockEventTypeSwitch.tsx
@@ -1,7 +1,6 @@
import { useState } from "react";
import { useForm } from "react-hook-form";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { RouterOutputs } from "@calcom/trpc";
import { trpc } from "@calcom/trpc";
@@ -17,6 +16,7 @@ import {
Button,
RadioGroup as RadioArea,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
enum CurrentEventTypeOptions {
DELETE = "DELETE",
diff --git a/packages/features/ee/organizations/pages/settings/general.tsx b/packages/features/ee/organizations/pages/settings/general.tsx
index 4941e63ba4e..01d2d176de1 100644
--- a/packages/features/ee/organizations/pages/settings/general.tsx
+++ b/packages/features/ee/organizations/pages/settings/general.tsx
@@ -7,7 +7,6 @@ import { Controller, useForm } from "react-hook-form";
import LicenseRequired from "@calcom/features/ee/common/components/LicenseRequired";
import SectionBottomActions from "@calcom/features/settings/SectionBottomActions";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { nameOfDay } from "@calcom/lib/weekday";
import { MembershipRole } from "@calcom/prisma/enums";
@@ -24,6 +23,7 @@ import {
SkeletonText,
TimezoneSelect,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { LockEventTypeSwitch } from "../components/LockEventTypeSwitch";
import { NoSlotsNotificationSwitch } from "../components/NoSlotsNotificationSwitch";
diff --git a/packages/features/ee/teams/components/AddNewTeamMembers.tsx b/packages/features/ee/teams/components/AddNewTeamMembers.tsx
index a682a25b8a8..24a92af3506 100644
--- a/packages/features/ee/teams/components/AddNewTeamMembers.tsx
+++ b/packages/features/ee/teams/components/AddNewTeamMembers.tsx
@@ -6,7 +6,6 @@ import { useEffect, useState, useMemo } from "react";
import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider";
import InviteLinkSettingsModal from "@calcom/features/ee/teams/components/InviteLinkSettingsModal";
import { MemberInvitationModalWithoutMembers } from "@calcom/features/ee/teams/components/MemberInvitationModal";
-import { classNames } from "@calcom/lib";
import { APP_NAME } from "@calcom/lib/constants";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import { useLocale } from "@calcom/lib/hooks/useLocale";
@@ -23,6 +22,7 @@ import {
SkeletonText,
UserAvatar,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type TeamMember = RouterOutputs["viewer"]["teams"]["listMembers"]["members"][number];
diff --git a/packages/features/ee/teams/components/EventTypesList.tsx b/packages/features/ee/teams/components/EventTypesList.tsx
index a823e7dcc0f..2aa63b3b31e 100644
--- a/packages/features/ee/teams/components/EventTypesList.tsx
+++ b/packages/features/ee/teams/components/EventTypesList.tsx
@@ -3,7 +3,6 @@ import type { Dispatch, SetStateAction } from "react";
import { useState, Fragment } from "react";
import { DataTableSelectionBar } from "@calcom/features/data-table";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { SchedulingType } from "@calcom/prisma/enums";
import { trpc } from "@calcom/trpc";
@@ -21,6 +20,7 @@ import {
PopoverTrigger,
Icon,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { User } from "./MemberList";
diff --git a/packages/features/ee/teams/components/InternalNotePresetsView.tsx b/packages/features/ee/teams/components/InternalNotePresetsView.tsx
index 8ddc7a6dc7a..c48740658c5 100644
--- a/packages/features/ee/teams/components/InternalNotePresetsView.tsx
+++ b/packages/features/ee/teams/components/InternalNotePresetsView.tsx
@@ -5,12 +5,12 @@ import { useMemo } from "react";
import { useForm, useFieldArray, Controller } from "react-hook-form";
import SectionBottomActions from "@calcom/features/settings/SectionBottomActions";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { MembershipRole } from "@calcom/prisma/enums";
import { trpc } from "@calcom/trpc/react";
import type { RouterOutputs } from "@calcom/trpc/react";
import { Button, Form, SettingsToggle, showToast, Icon, Input } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
interface ProfileViewProps {
team: RouterOutputs["viewer"]["teams"]["get"];
diff --git a/packages/features/ee/teams/components/MemberInvitationModal.tsx b/packages/features/ee/teams/components/MemberInvitationModal.tsx
index 3e9ea74b7da..58f9199a699 100644
--- a/packages/features/ee/teams/components/MemberInvitationModal.tsx
+++ b/packages/features/ee/teams/components/MemberInvitationModal.tsx
@@ -5,7 +5,6 @@ import { useMemo, useRef, useState } from "react";
import { Controller, useForm } from "react-hook-form";
import TeamInviteFromOrg from "@calcom/ee/organizations/components/TeamInviteFromOrg";
-import { classNames } from "@calcom/lib";
import { IS_TEAM_BILLING_ENABLED_CLIENT, MAX_NB_INVITES } from "@calcom/lib/constants";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import { useLocale } from "@calcom/lib/hooks/useLocale";
@@ -28,6 +27,7 @@ import {
TextField,
ToggleGroup,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { PendingMember } from "../lib/types";
import { GoogleWorkspaceInviteButton } from "./GoogleWorkspaceInviteButton";
diff --git a/packages/features/ee/teams/components/TeamEventTypeForm.tsx b/packages/features/ee/teams/components/TeamEventTypeForm.tsx
index a71e22525a5..c8fcc089a0b 100644
--- a/packages/features/ee/teams/components/TeamEventTypeForm.tsx
+++ b/packages/features/ee/teams/components/TeamEventTypeForm.tsx
@@ -2,13 +2,13 @@ import type { ReactNode } from "react";
import type { UseFormReturn } from "react-hook-form";
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
-import { classNames } from "@calcom/lib";
import type { CreateEventTypeFormValues } from "@calcom/lib/hooks/useCreateEventType";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import slugify from "@calcom/lib/slugify";
import { SchedulingType } from "@calcom/prisma/enums";
import { Form, TextField, Tooltip } from "@calcom/ui";
import { Alert, RadioGroup as RadioArea } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type props = {
isTeamAdminOrOwner: boolean;
diff --git a/packages/features/ee/teams/components/TeamInviteListItem.tsx b/packages/features/ee/teams/components/TeamInviteListItem.tsx
index 7ec579a7e2d..2537fe4a828 100644
--- a/packages/features/ee/teams/components/TeamInviteListItem.tsx
+++ b/packages/features/ee/teams/components/TeamInviteListItem.tsx
@@ -1,4 +1,3 @@
-import classNames from "@calcom/lib/classNames";
import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { MembershipRole } from "@calcom/prisma/enums";
@@ -13,6 +12,7 @@ import {
DropdownMenuTrigger,
showToast,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
interface Props {
team: {
diff --git a/packages/features/ee/teams/components/TeamListItem.tsx b/packages/features/ee/teams/components/TeamListItem.tsx
index 6dacdd1ff93..77607693a48 100644
--- a/packages/features/ee/teams/components/TeamListItem.tsx
+++ b/packages/features/ee/teams/components/TeamListItem.tsx
@@ -4,7 +4,6 @@ import { useState } from "react";
import InviteLinkSettingsModal from "@calcom/ee/teams/components/InviteLinkSettingsModal";
import { MemberInvitationModalWithoutMembers } from "@calcom/ee/teams/components/MemberInvitationModal";
-import classNames from "@calcom/lib/classNames";
import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";
import { getTeamUrlSync } from "@calcom/lib/getBookerUrl/client";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
@@ -30,6 +29,7 @@ import {
showToast,
Tooltip,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { TeamRole } from "./TeamPill";
diff --git a/packages/features/ee/teams/pages/team-settings-view.tsx b/packages/features/ee/teams/pages/team-settings-view.tsx
index 0a23d06ce6a..655ca7d87ad 100644
--- a/packages/features/ee/teams/pages/team-settings-view.tsx
+++ b/packages/features/ee/teams/pages/team-settings-view.tsx
@@ -7,7 +7,7 @@ import { useForm, Controller } from "react-hook-form";
import { AppearanceSkeletonLoader } from "@calcom/features/ee/components/CommonSkeletonLoaders";
import { IntervalLimitsManager } from "@calcom/features/eventtypes/components/tabs/limits/EventLimitsTab";
import SectionBottomActions from "@calcom/features/settings/SectionBottomActions";
-import { classNames, validateIntervalLimitOrder } from "@calcom/lib";
+import { validateIntervalLimitOrder } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { useParamsWithFallback } from "@calcom/lib/hooks/useParamsWithFallback";
import { MembershipRole } from "@calcom/prisma/enums";
@@ -15,6 +15,7 @@ import { trpc } from "@calcom/trpc/react";
import type { RouterOutputs } from "@calcom/trpc/react";
import type { IntervalLimit } from "@calcom/types/Calendar";
import { Button, CheckboxField, Form, SettingsToggle, showToast } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { default as InternalNotePresetsView } from "../components/InternalNotePresetsView";
diff --git a/packages/features/ee/workflows/components/WorkflowListPage.tsx b/packages/features/ee/workflows/components/WorkflowListPage.tsx
index 5ca5c1bf3e1..1c2fbddb8d5 100644
--- a/packages/features/ee/workflows/components/WorkflowListPage.tsx
+++ b/packages/features/ee/workflows/components/WorkflowListPage.tsx
@@ -4,7 +4,6 @@ import Link from "next/link";
import { useRouter } from "next/navigation";
import { useState } from "react";
-import classNames from "@calcom/lib/classNames";
import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
@@ -22,6 +21,7 @@ import {
Icon,
Tooltip,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { getActionIcon } from "../lib/getActionIcon";
import type { WorkflowStep } from "../lib/types";
diff --git a/packages/features/ee/workflows/components/WorkflowStepContainer.tsx b/packages/features/ee/workflows/components/WorkflowStepContainer.tsx
index bfde3f9e63b..00355f16e9b 100644
--- a/packages/features/ee/workflows/components/WorkflowStepContainer.tsx
+++ b/packages/features/ee/workflows/components/WorkflowStepContainer.tsx
@@ -6,7 +6,6 @@ import type { UseFormReturn } from "react-hook-form";
import { Controller } from "react-hook-form";
import "react-phone-number-input/style.css";
-import { classNames } from "@calcom/lib";
import { SENDER_ID, SENDER_NAME } from "@calcom/lib/constants";
import { useHasActiveTeamPlan } from "@calcom/lib/hooks/useHasPaidPlan";
import { useLocale } from "@calcom/lib/hooks/useLocale";
@@ -41,6 +40,7 @@ import {
TextField,
Tooltip,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import {
getWhatsappTemplateForAction,
diff --git a/packages/features/ee/workflows/lib/getActionIcon.tsx b/packages/features/ee/workflows/lib/getActionIcon.tsx
index 930c3506d1c..64a8cda3e6e 100644
--- a/packages/features/ee/workflows/lib/getActionIcon.tsx
+++ b/packages/features/ee/workflows/lib/getActionIcon.tsx
@@ -1,6 +1,6 @@
import { isSMSOrWhatsappAction } from "@calcom/features/ee/workflows/lib/actionHelperFunctions";
-import { classNames } from "@calcom/lib";
import { Icon } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { WorkflowStep } from "../lib/types";
diff --git a/packages/features/ee/workflows/pages/index.tsx b/packages/features/ee/workflows/pages/index.tsx
index 6bd9d37b593..28fe9c5ed84 100644
--- a/packages/features/ee/workflows/pages/index.tsx
+++ b/packages/features/ee/workflows/pages/index.tsx
@@ -6,7 +6,6 @@ import type { Dispatch, SetStateAction } from "react";
import { useState } from "react";
import Shell, { ShellMain } from "@calcom/features/shell/Shell";
-import { classNames } from "@calcom/lib";
import { WEBAPP_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { useRouterQuery } from "@calcom/lib/hooks/useRouterQuery";
@@ -14,6 +13,7 @@ import { HttpError } from "@calcom/lib/http-error";
import type { WorkflowRepository } from "@calcom/lib/server/repository/workflow";
import { trpc } from "@calcom/trpc/react";
import { AnimatedPopover, Avatar, CreateButtonWithTeamsList, showToast } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { FilterResults } from "../../../filters/components/FilterResults";
import { TeamsFilter } from "../../../filters/components/TeamsFilter";
diff --git a/packages/features/ee/workflows/pages/workflow.tsx b/packages/features/ee/workflows/pages/workflow.tsx
index f44e50b95cd..cf8e9eb1937 100644
--- a/packages/features/ee/workflows/pages/workflow.tsx
+++ b/packages/features/ee/workflows/pages/workflow.tsx
@@ -7,7 +7,6 @@ import { useEffect, useState } from "react";
import { useForm } from "react-hook-form";
import Shell, { ShellMain } from "@calcom/features/shell/Shell";
-import { classNames } from "@calcom/lib";
import { SENDER_ID } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { HttpError } from "@calcom/lib/http-error";
@@ -19,6 +18,7 @@ import { trpc } from "@calcom/trpc/react";
import useMeQuery from "@calcom/trpc/react/hooks/useMeQuery";
import type { MultiSelectCheckboxesOptionType as Option } from "@calcom/ui";
import { Alert, Badge, Button, Form, showToast } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import LicenseRequired from "../../common/components/LicenseRequired";
import SkeletonLoader from "../components/SkeletonLoaderEdit";
diff --git a/packages/features/eventtypes/components/AssignAllTeamMembers.tsx b/packages/features/eventtypes/components/AssignAllTeamMembers.tsx
index 62b45fde9c5..b812cf44d44 100644
--- a/packages/features/eventtypes/components/AssignAllTeamMembers.tsx
+++ b/packages/features/eventtypes/components/AssignAllTeamMembers.tsx
@@ -2,9 +2,9 @@ import type { Dispatch, SetStateAction } from "react";
import { Controller, useFormContext } from "react-hook-form";
import type { FormValues, SettingsToggleClassNames } from "@calcom/features/eventtypes/lib/types";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { SettingsToggle } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
const AssignAllTeamMembers = ({
assignAllTeamMembers,
diff --git a/packages/features/eventtypes/components/CheckedTeamSelect.tsx b/packages/features/eventtypes/components/CheckedTeamSelect.tsx
index f1140b5140b..675672b15be 100644
--- a/packages/features/eventtypes/components/CheckedTeamSelect.tsx
+++ b/packages/features/eventtypes/components/CheckedTeamSelect.tsx
@@ -6,9 +6,9 @@ import type { Props } from "react-select";
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
import type { SelectClassNames } from "@calcom/features/eventtypes/lib/types";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Avatar, Button, Icon, Select, Tooltip } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { PriorityDialogCustomClassNames, WeightDialogCustomClassNames } from "./HostEditDialogs";
import { PriorityDialog, WeightDialog } from "./HostEditDialogs";
diff --git a/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsx b/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsx
index 16c42fa902a..1b409792aef 100644
--- a/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsx
+++ b/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsx
@@ -2,12 +2,12 @@ import { useAutoAnimate } from "@formkit/auto-animate/react";
import type { Props } from "react-select";
import type { SelectClassNames } from "@calcom/features/eventtypes/lib/types";
-import { classNames } from "@calcom/lib";
import { getBookerBaseUrlSync } from "@calcom/lib/getBookerUrl/client";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { MembershipRole } from "@calcom/prisma/enums";
import type { UserProfile } from "@calcom/types/UserProfile";
import { Avatar, Badge, Button, ButtonGroup, Select, Switch, Tooltip } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export type ChildrenEventType = {
value: string;
diff --git a/packages/features/eventtypes/components/EventTypeDescription.tsx b/packages/features/eventtypes/components/EventTypeDescription.tsx
index 810ee4c1c10..2e6ba8c84d0 100644
--- a/packages/features/eventtypes/components/EventTypeDescription.tsx
+++ b/packages/features/eventtypes/components/EventTypeDescription.tsx
@@ -4,7 +4,7 @@ import type { z } from "zod";
import { Price } from "@calcom/features/bookings/components/event-meta/Price";
import { PriceIcon } from "@calcom/features/bookings/components/event-meta/PriceIcon";
-import { classNames, parseRecurringEvent } from "@calcom/lib";
+import { parseRecurringEvent } from "@calcom/lib";
import { getPaymentAppData } from "@calcom/lib/getPaymentAppData";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { markdownToSafeHTML } from "@calcom/lib/markdownToSafeHTML";
@@ -13,6 +13,7 @@ import { SchedulingType } from "@calcom/prisma/enums";
import type { EventTypeModel } from "@calcom/prisma/zod";
import { eventTypeMetaDataSchemaWithTypedApps } from "@calcom/prisma/zod-utils";
import { Badge } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export type EventTypeDescriptionProps = {
eventType: Pick<
diff --git a/packages/features/eventtypes/components/EventTypeLayout.tsx b/packages/features/eventtypes/components/EventTypeLayout.tsx
index e32e8c70b9b..5af3ceb208a 100644
--- a/packages/features/eventtypes/components/EventTypeLayout.tsx
+++ b/packages/features/eventtypes/components/EventTypeLayout.tsx
@@ -7,7 +7,6 @@ import { EventTypeEmbedButton, EventTypeEmbedDialog } from "@calcom/features/emb
import type { FormValues } from "@calcom/features/eventtypes/lib/types";
import type { EventTypeSetupProps } from "@calcom/features/eventtypes/lib/types";
import WebShell from "@calcom/features/shell/Shell";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { SchedulingType } from "@calcom/prisma/enums";
import type { VerticalTabItemProps } from "@calcom/ui";
@@ -30,6 +29,7 @@ import {
VerticalDivider,
VerticalTabs,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { DeleteDialog } from "./dialogs/DeleteDialog";
diff --git a/packages/features/eventtypes/components/HostEditDialogs.tsx b/packages/features/eventtypes/components/HostEditDialogs.tsx
index f82c1181223..07fd15b3b53 100644
--- a/packages/features/eventtypes/components/HostEditDialogs.tsx
+++ b/packages/features/eventtypes/components/HostEditDialogs.tsx
@@ -10,7 +10,6 @@ import type {
InputClassNames,
SelectClassNames,
} from "@calcom/features/eventtypes/lib/types";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import {
Dialog,
@@ -22,6 +21,7 @@ import {
Select,
TextField,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { CheckedSelectOption } from "./CheckedTeamSelect";
diff --git a/packages/features/eventtypes/components/Locations.tsx b/packages/features/eventtypes/components/Locations.tsx
index 6a735c759ee..f77dc885efe 100644
--- a/packages/features/eventtypes/components/Locations.tsx
+++ b/packages/features/eventtypes/components/Locations.tsx
@@ -20,10 +20,10 @@ import type {
SingleValueLocationOption,
} from "@calcom/features/form/components/LocationSelect";
import LocationSelect from "@calcom/features/form/components/LocationSelect";
-import { classNames } from "@calcom/lib";
import { WEBAPP_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Icon, Input, PhoneInput, Button, showToast } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export type TEventTypeLocation = Pick<EventTypeSetupProps["eventType"], "locations">;
export type TLocationOptions = Pick<EventTypeSetupProps, "locationOptions">["locationOptions"];
diff --git a/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.tsx b/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.tsx
index b41bfcf0131..aa67e8f175f 100644
--- a/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.tsx
+++ b/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.tsx
@@ -4,11 +4,11 @@ import { FormProvider } from "react-hook-form";
import { useForm, useFormContext } from "react-hook-form";
import type { InputClassNames } from "@calcom/features/eventtypes/lib/types";
-import { classNames } from "@calcom/lib";
import type { EventNameObjectType } from "@calcom/lib/event";
import { getEventName, validateCustomEventName } from "@calcom/lib/event";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Button, Dialog, DialogClose, DialogFooter, DialogContent, TextField } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
interface FormValues {
customEventName: string;
diff --git a/packages/features/eventtypes/components/tabs/advanced/DisableAllEmailsSetting.tsx b/packages/features/eventtypes/components/tabs/advanced/DisableAllEmailsSetting.tsx
index ccf2d82d808..a8504adb652 100644
--- a/packages/features/eventtypes/components/tabs/advanced/DisableAllEmailsSetting.tsx
+++ b/packages/features/eventtypes/components/tabs/advanced/DisableAllEmailsSetting.tsx
@@ -3,7 +3,6 @@ import { Trans } from "next-i18next";
import { useState } from "react";
import type { InputClassNames, SettingsToggleClassNames } from "@calcom/features/eventtypes/lib/types";
-import { classNames } from "@calcom/lib";
import {
SettingsToggle,
Dialog,
@@ -13,6 +12,7 @@ import {
DialogClose,
Button,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export type EmailNotificationToggleCustomClassNames = SettingsToggleClassNames & {
confirmationDialog?: {
diff --git a/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.tsx b/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.tsx
index 9fb52d025c0..edd97b10385 100644
--- a/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.tsx
+++ b/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.tsx
@@ -30,8 +30,6 @@ import { FormBuilder } from "@calcom/features/form-builder/FormBuilder";
import type { fieldSchema } from "@calcom/features/form-builder/schema";
import type { EditableSchema } from "@calcom/features/form-builder/schema";
import { BookerLayoutSelector } from "@calcom/features/settings/BookerLayoutSelector";
-import { classNames } from "@calcom/lib";
-import cx from "@calcom/lib/classNames";
import { DEFAULT_LIGHT_BRAND_COLOR, DEFAULT_DARK_BRAND_COLOR, APP_NAME } from "@calcom/lib/constants";
import type { EventNameObjectType } from "@calcom/lib/event";
import { getEventName } from "@calcom/lib/event";
@@ -54,6 +52,7 @@ import {
TextField,
ColorPicker,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { CustomEventTypeModalClassNames } from "./CustomEventTypeModal";
import CustomEventTypeModal from "./CustomEventTypeModal";
@@ -241,7 +240,7 @@ const destinationCalendarComponents = {
{!useEventTypeDestinationCalendarEmail &&
verifiedSecondaryEmails.length > 0 &&
!isTeamEventType && (
- <div className={cx("flex w-full flex-col", showConnectedCalendarSettings && "pl-11")}>
+ <div className={classNames("flex w-full flex-col", showConnectedCalendarSettings && "pl-11")}>
<SelectField
placeholder={
selectedSecondaryEmailId === -1 && (
diff --git a/packages/features/eventtypes/components/tabs/advanced/RequiresConfirmationController.tsx b/packages/features/eventtypes/components/tabs/advanced/RequiresConfirmationController.tsx
index 9e2e4f17d56..177b68e93ea 100644
--- a/packages/features/eventtypes/components/tabs/advanced/RequiresConfirmationController.tsx
+++ b/packages/features/eventtypes/components/tabs/advanced/RequiresConfirmationController.tsx
@@ -9,10 +9,10 @@ import type z from "zod";
import useLockedFieldsManager from "@calcom/features/ee/managed-event-types/hooks/useLockedFieldsManager";
import type { EventTypeSetup, SettingsToggleClassNames } from "@calcom/features/eventtypes/lib/types";
import type { FormValues } from "@calcom/features/eventtypes/lib/types";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { EventTypeMetaDataSchema } from "@calcom/prisma/zod-utils";
import { Input, SettingsToggle, RadioField, Select, CheckboxField } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export type RequiresConfirmationCustomClassNames = SettingsToggleClassNames & {
radioGroupContainer?: string;
diff --git a/packages/features/eventtypes/components/tabs/ai/AIEventController.tsx b/packages/features/eventtypes/components/tabs/ai/AIEventController.tsx
index 632e6f28ee9..f36a780d30e 100644
--- a/packages/features/eventtypes/components/tabs/ai/AIEventController.tsx
+++ b/packages/features/eventtypes/components/tabs/ai/AIEventController.tsx
@@ -10,7 +10,6 @@ import type { TemplateType } from "@calcom/features/ee/cal-ai-phone/zod-utils";
import LicenseRequired from "@calcom/features/ee/common/components/LicenseRequired";
import type { EventTypeSetup, FormValues } from "@calcom/features/eventtypes/lib/types";
import { ComponentForField } from "@calcom/features/form-builder/FormBuilderField";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
import {
@@ -24,6 +23,7 @@ import {
showToast,
Icon,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type AIEventControllerProps = {
eventType: EventTypeSetup;
diff --git a/packages/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab.tsx b/packages/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab.tsx
index 3a49e903816..b2256f8a431 100644
--- a/packages/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab.tsx
+++ b/packages/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab.tsx
@@ -21,10 +21,10 @@ import type {
SelectClassNames,
SettingsToggleClassNames,
} from "@calcom/features/eventtypes/lib/types";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { SchedulingType } from "@calcom/prisma/enums";
import { Label, Select, SettingsToggle, RadioGroup as RadioArea } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { EditWeightsForAllTeamMembers } from "../../EditWeightsForAllTeamMembers";
diff --git a/packages/features/eventtypes/components/tabs/availability/EventAvailabilityTab.tsx b/packages/features/eventtypes/components/tabs/availability/EventAvailabilityTab.tsx
index 2f2d00abd7d..918e7578a75 100644
--- a/packages/features/eventtypes/components/tabs/availability/EventAvailabilityTab.tsx
+++ b/packages/features/eventtypes/components/tabs/availability/EventAvailabilityTab.tsx
@@ -18,13 +18,13 @@ import type {
Host,
SelectClassNames,
} from "@calcom/features/eventtypes/lib/types";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { weekdayNames } from "@calcom/lib/weekday";
import { weekStartNum } from "@calcom/lib/weekstart";
import { SchedulingType } from "@calcom/prisma/enums";
import type { RouterOutputs } from "@calcom/trpc/react";
import { Avatar, Badge, Button, Icon, Label, Select, SettingsToggle, SkeletonText } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { Spinner } from "@calcom/ui/components/icon/Spinner";
type ScheduleQueryData = RouterOutputs["viewer"]["availability"]["schedule"]["get"];
diff --git a/packages/features/eventtypes/components/tabs/instant/InstantEventController.tsx b/packages/features/eventtypes/components/tabs/instant/InstantEventController.tsx
index a763ad9268a..6a073980ca3 100644
--- a/packages/features/eventtypes/components/tabs/instant/InstantEventController.tsx
+++ b/packages/features/eventtypes/components/tabs/instant/InstantEventController.tsx
@@ -12,7 +12,6 @@ import { WebhookForm } from "@calcom/features/webhooks/components";
import type { WebhookFormSubmitData } from "@calcom/features/webhooks/components/WebhookForm";
import WebhookListItem from "@calcom/features/webhooks/components/WebhookListItem";
import { subscriberUrlReserved } from "@calcom/features/webhooks/lib/subscriberUrlReserved";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { WebhookTriggerEvents } from "@calcom/prisma/enums";
import { trpc } from "@calcom/trpc/react";
@@ -29,6 +28,7 @@ import {
Select,
Badge,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type InstantEventControllerProps = {
eventType: EventTypeSetup;
diff --git a/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.tsx b/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.tsx
index 1b5428095ce..aaa805c4fb4 100644
--- a/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.tsx
+++ b/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.tsx
@@ -11,7 +11,6 @@ import { getDefinedBufferTimes } from "@calcom/features/eventtypes/lib/getDefine
import type { FormValues, EventTypeSetupProps, InputClassNames } from "@calcom/features/eventtypes/lib/types";
import type { SelectClassNames, SettingsToggleClassNames } from "@calcom/features/eventtypes/lib/types";
import CheckboxField from "@calcom/features/form/components/CheckboxField";
-import { classNames } from "@calcom/lib";
import { ROLLING_WINDOW_PERIOD_MAX_DAYS_TO_CHECK } from "@calcom/lib/constants";
import type { DurationType } from "@calcom/lib/convertToNewDurationType";
import convertToNewDurationType from "@calcom/lib/convertToNewDurationType";
@@ -21,6 +20,7 @@ import { ascendingLimitKeys, intervalLimitKeyToUnit } from "@calcom/lib/interval
import { PeriodType } from "@calcom/prisma/enums";
import type { IntervalLimit } from "@calcom/types/Calendar";
import { Button, DateRangePicker, InputField, Label, Select, SettingsToggle, TextField } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type IPeriodType = (typeof PeriodType)[keyof typeof PeriodType];
diff --git a/packages/features/eventtypes/components/tabs/recurring/RecurringEventController.tsx b/packages/features/eventtypes/components/tabs/recurring/RecurringEventController.tsx
index 65c475c56be..9f301f28080 100644
--- a/packages/features/eventtypes/components/tabs/recurring/RecurringEventController.tsx
+++ b/packages/features/eventtypes/components/tabs/recurring/RecurringEventController.tsx
@@ -9,11 +9,11 @@ import type {
SettingsToggleClassNames,
} from "@calcom/features/eventtypes/lib/types";
import type { FormValues } from "@calcom/features/eventtypes/lib/types";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Frequency } from "@calcom/prisma/zod-utils";
import type { RecurringEvent } from "@calcom/types/Calendar";
import { Alert, Select, SettingsToggle, TextField } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export type RecurringEventControllerProps = {
eventType: EventTypeSetup;
diff --git a/packages/features/eventtypes/components/tabs/setup/EventSetupTab.tsx b/packages/features/eventtypes/components/tabs/setup/EventSetupTab.tsx
index 06368513d67..793de43a3bb 100644
--- a/packages/features/eventtypes/components/tabs/setup/EventSetupTab.tsx
+++ b/packages/features/eventtypes/components/tabs/setup/EventSetupTab.tsx
@@ -14,12 +14,12 @@ import type {
SettingsToggleClassNames,
} from "@calcom/features/eventtypes/lib/types";
import type { FormValues, LocationFormValues } from "@calcom/features/eventtypes/lib/types";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { md } from "@calcom/lib/markdownIt";
import { slugify } from "@calcom/lib/slugify";
import turndown from "@calcom/lib/turndownService";
import { Label, Select, SettingsToggle, Skeleton, TextField, Editor, TextAreaField } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export type EventSetupTabCustomClassNames = {
wrapper?: string;
diff --git a/packages/features/eventtypes/components/tabs/workflows/EventWorkfowsTab.tsx b/packages/features/eventtypes/components/tabs/workflows/EventWorkfowsTab.tsx
index fcd6365e1b3..dd61d95a77a 100644
--- a/packages/features/eventtypes/components/tabs/workflows/EventWorkfowsTab.tsx
+++ b/packages/features/eventtypes/components/tabs/workflows/EventWorkfowsTab.tsx
@@ -10,13 +10,13 @@ import SkeletonLoader from "@calcom/features/ee/workflows/components/SkeletonLoa
import type { WorkflowType } from "@calcom/features/ee/workflows/components/WorkflowListPage";
import { getActionIcon } from "@calcom/features/ee/workflows/lib/getActionIcon";
import type { FormValues } from "@calcom/features/eventtypes/lib/types";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { HttpError } from "@calcom/lib/http-error";
import { WorkflowActions } from "@calcom/prisma/enums";
import type { RouterOutputs } from "@calcom/trpc/react";
import { trpc } from "@calcom/trpc/react";
import { Alert, Button, EmptyScreen, Icon, showToast, Switch, Tooltip } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type PartialWorkflowType = Pick<WorkflowType, "name" | "activeOn" | "isOrg" | "steps" | "id" | "readOnly">;
diff --git a/packages/features/filters/components/TeamsFilter.tsx b/packages/features/filters/components/TeamsFilter.tsx
index c3714d6722b..97342b8ef41 100644
--- a/packages/features/filters/components/TeamsFilter.tsx
+++ b/packages/features/filters/components/TeamsFilter.tsx
@@ -2,7 +2,6 @@ import { useSession } from "next-auth/react";
import type { InputHTMLAttributes, ReactNode } from "react";
import { forwardRef, useState } from "react";
-import { classNames } from "@calcom/lib";
import { getOrgOrTeamAvatar } from "@calcom/lib/defaultAvatarImage";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { useTypedQuery } from "@calcom/lib/hooks/useTypedQuery";
@@ -16,6 +15,7 @@ import {
Tooltip,
VerticalDivider,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { filterQuerySchema } from "../lib/getTeamsFiltersFromQuery";
diff --git a/packages/features/form-builder/FormBuilder.tsx b/packages/features/form-builder/FormBuilder.tsx
index ea46c023d99..5dc4b01f13e 100644
--- a/packages/features/form-builder/FormBuilder.tsx
+++ b/packages/features/form-builder/FormBuilder.tsx
@@ -5,7 +5,6 @@ import { Controller, useFieldArray, useForm, useFormContext } from "react-hook-f
import type { z } from "zod";
import { ZodError } from "zod";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { md } from "@calcom/lib/markdownIt";
import { markdownToSafeHTMLClient } from "@calcom/lib/markdownToSafeHTMLClient";
@@ -30,6 +29,7 @@ import {
Editor,
Switch,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { fieldTypesConfigMap } from "./fieldTypes";
import { fieldsThatSupportLabelAsSafeHtml } from "./fieldsThatSupportLabelAsSafeHtml";
diff --git a/packages/features/form-builder/FormBuilderField.tsx b/packages/features/form-builder/FormBuilderField.tsx
index 5934a76c9fc..74d256a310b 100644
--- a/packages/features/form-builder/FormBuilderField.tsx
+++ b/packages/features/form-builder/FormBuilderField.tsx
@@ -3,9 +3,9 @@ import type { TFunction } from "next-i18next";
import { Controller, useFormContext } from "react-hook-form";
import type { z } from "zod";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Icon, InfoBadge, Label } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { Components, isValidValueProp } from "./Components";
import { fieldTypesConfigMap } from "./fieldTypes";
diff --git a/packages/features/form/components/CheckboxField.tsx b/packages/features/form/components/CheckboxField.tsx
index 87decd4f2c0..e06807330cb 100644
--- a/packages/features/form/components/CheckboxField.tsx
+++ b/packages/features/form/components/CheckboxField.tsx
@@ -1,8 +1,8 @@
import type { InputHTMLAttributes } from "react";
import React, { forwardRef } from "react";
-import classNames from "@calcom/lib/classNames";
import { InfoBadge } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type Props = InputHTMLAttributes<HTMLInputElement> & {
label?: React.ReactNode;
diff --git a/packages/features/form/components/LocationSelect.tsx b/packages/features/form/components/LocationSelect.tsx
index 696e1f92c01..b4e8b0115fc 100644
--- a/packages/features/form/components/LocationSelect.tsx
+++ b/packages/features/form/components/LocationSelect.tsx
@@ -3,9 +3,9 @@ import { components } from "react-select";
import type { EventLocationType } from "@calcom/app-store/locations";
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
-import { classNames } from "@calcom/lib";
import invertLogoOnDark from "@calcom/lib/invertLogoOnDark";
import { Select, Icon } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export type LocationSelectCustomClassNames = {
optionIcon?: string;
diff --git a/packages/features/form/components/Select.tsx b/packages/features/form/components/Select.tsx
index 369118dd456..044f49740e5 100644
--- a/packages/features/form/components/Select.tsx
+++ b/packages/features/form/components/Select.tsx
@@ -2,8 +2,8 @@ import React, { useCallback, useEffect, useState } from "react";
import type { GroupBase, Props, InputProps, SingleValue, MultiValue } from "react-select";
import ReactSelect, { components } from "react-select";
-import classNames from "@calcom/lib/classNames";
import { useGetTheme } from "@calcom/lib/hooks/useTheme";
+import classNames from "@calcom/ui/classNames";
export type SelectProps<
Option,
diff --git a/packages/features/insights/components/Card.tsx b/packages/features/insights/components/Card.tsx
index b27cba04228..33b33fa9f1d 100644
--- a/packages/features/insights/components/Card.tsx
+++ b/packages/features/insights/components/Card.tsx
@@ -1,6 +1,6 @@
import { Card } from "@tremor/react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
interface ICardProps {
children: React.ReactNode;
diff --git a/packages/features/insights/components/CellWithOverflowX.tsx b/packages/features/insights/components/CellWithOverflowX.tsx
index a98b8ee9966..ac269fb8c93 100644
--- a/packages/features/insights/components/CellWithOverflowX.tsx
+++ b/packages/features/insights/components/CellWithOverflowX.tsx
@@ -1,4 +1,4 @@
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
export function CellWithOverflowX({
children,
diff --git a/packages/features/insights/components/FailedBookingsByField.tsx b/packages/features/insights/components/FailedBookingsByField.tsx
index 5280d218d8e..07c4545d944 100644
--- a/packages/features/insights/components/FailedBookingsByField.tsx
+++ b/packages/features/insights/components/FailedBookingsByField.tsx
@@ -1,8 +1,8 @@
import { useState } from "react";
-import { classNames } from "@calcom/lib";
import { trpc } from "@calcom/trpc";
import { ToggleGroup } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { useInsightsParameters } from "../hooks/useInsightsParameters";
import { BarList } from "./tremor/BarList";
diff --git a/packages/features/insights/components/LoadingInsights.tsx b/packages/features/insights/components/LoadingInsights.tsx
index b11d0f1dd50..2e67751128c 100644
--- a/packages/features/insights/components/LoadingInsights.tsx
+++ b/packages/features/insights/components/LoadingInsights.tsx
@@ -1,5 +1,5 @@
-import { classNames } from "@calcom/lib";
import { SkeletonText } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { CardInsights } from "./Card";
diff --git a/packages/features/insights/components/RoutedToPerPeriod.tsx b/packages/features/insights/components/RoutedToPerPeriod.tsx
index ada306c1301..42506b98310 100644
--- a/packages/features/insights/components/RoutedToPerPeriod.tsx
+++ b/packages/features/insights/components/RoutedToPerPeriod.tsx
@@ -3,7 +3,6 @@ import { useQueryState } from "nuqs";
import { type ReactNode, useMemo, useRef, useState } from "react";
import { DataTableSkeleton } from "@calcom/features/data-table";
-import classNames from "@calcom/lib/classNames";
import { downloadAsCsv } from "@calcom/lib/csvUtils";
import { useInViewObserver } from "@calcom/lib/hooks/useInViewObserver";
import { useLocale } from "@calcom/lib/hooks/useLocale";
@@ -19,6 +18,7 @@ import {
Input,
Button,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import {
Table,
TableBody,
diff --git a/packages/features/insights/components/tremor/BarList.tsx b/packages/features/insights/components/tremor/BarList.tsx
index ba50273b8ca..ea76ba61f43 100644
--- a/packages/features/insights/components/tremor/BarList.tsx
+++ b/packages/features/insights/components/tremor/BarList.tsx
@@ -1,7 +1,7 @@
// Tremor BarList [v0.1.1]
import React from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
type Bar<T> = T & {
key?: string;
diff --git a/packages/features/mintlify-chat/MintlifyChat.tsx b/packages/features/mintlify-chat/MintlifyChat.tsx
index 956d5890236..6aceea6589e 100644
--- a/packages/features/mintlify-chat/MintlifyChat.tsx
+++ b/packages/features/mintlify-chat/MintlifyChat.tsx
@@ -2,10 +2,10 @@
import type { Dispatch, SetStateAction } from "react";
import { useState } from "react";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { markdownToSafeHTML } from "@calcom/lib/markdownToSafeHTML";
import { Icon, SkeletonContainer, SkeletonText } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { getFormattedCitations, handleAiChat, optionallyAddBaseUrl } from "../mintlify-chat/util";
diff --git a/packages/features/schedules/components/DateOverrideInputDialog.tsx b/packages/features/schedules/components/DateOverrideInputDialog.tsx
index eca6f5b5660..1060fde0c49 100644
--- a/packages/features/schedules/components/DateOverrideInputDialog.tsx
+++ b/packages/features/schedules/components/DateOverrideInputDialog.tsx
@@ -3,7 +3,6 @@ import { useForm } from "react-hook-form";
import type { Dayjs } from "@calcom/dayjs";
import dayjs from "@calcom/dayjs";
-import { classNames as cs } from "@calcom/lib";
import { yyyymmdd } from "@calcom/lib/date-fns";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { WorkingHours } from "@calcom/types/schedule";
@@ -18,6 +17,7 @@ import {
Form,
Button,
} from "@calcom/ui";
+import cs from "@calcom/ui/classNames";
import DatePicker from "../../calendars/DatePicker";
import type { TimeRange } from "./Schedule";
diff --git a/packages/features/schedules/components/Schedule.tsx b/packages/features/schedules/components/Schedule.tsx
index ddf55313ab0..942affa582f 100644
--- a/packages/features/schedules/components/Schedule.tsx
+++ b/packages/features/schedules/components/Schedule.tsx
@@ -15,7 +15,6 @@ import type { GroupBase, Props } from "react-select";
import type { ConfigType } from "@calcom/dayjs";
import dayjs from "@calcom/dayjs";
import { defaultDayRange as DEFAULT_DAY_RANGE } from "@calcom/lib/availability";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { weekdayNames } from "@calcom/lib/weekday";
import useMeQuery from "@calcom/trpc/react/hooks/useMeQuery";
@@ -30,6 +29,7 @@ import {
SkeletonText,
Switch,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export type { TimeRange };
diff --git a/packages/features/settings/BookerLayoutSelector.tsx b/packages/features/settings/BookerLayoutSelector.tsx
index d4bfa2dcebc..1373071b6cb 100644
--- a/packages/features/settings/BookerLayoutSelector.tsx
+++ b/packages/features/settings/BookerLayoutSelector.tsx
@@ -4,12 +4,12 @@ import Link from "next/link";
import { useCallback, useState } from "react";
import { Controller, useFormContext } from "react-hook-form";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { BookerLayouts, defaultBookerLayoutSettings } from "@calcom/prisma/zod-utils";
import { bookerLayoutOptions, type BookerLayoutSettings } from "@calcom/prisma/zod-utils";
import type { RouterOutputs } from "@calcom/trpc/react";
import { Label, CheckboxField, Button } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import SectionBottomActions from "./SectionBottomActions";
diff --git a/packages/features/settings/SectionBottomActions.tsx b/packages/features/settings/SectionBottomActions.tsx
index 12458dd9127..e128ce235fd 100644
--- a/packages/features/settings/SectionBottomActions.tsx
+++ b/packages/features/settings/SectionBottomActions.tsx
@@ -1,6 +1,6 @@
import type { ReactNode } from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
const SectionBottomActions = ({
align = "start",
diff --git a/packages/features/settings/appDir/SettingsHeader.tsx b/packages/features/settings/appDir/SettingsHeader.tsx
index 8299b0d7fc4..eca1df85a2f 100644
--- a/packages/features/settings/appDir/SettingsHeader.tsx
+++ b/packages/features/settings/appDir/SettingsHeader.tsx
@@ -1,7 +1,7 @@
import React, { Suspense } from "react";
-import { classNames } from "@calcom/lib";
import { Icon } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
interface HeaderProps {
children: React.ReactNode;
diff --git a/packages/features/settings/outOfOffice/CreateOrEditOutOfOfficeModal.tsx b/packages/features/settings/outOfOffice/CreateOrEditOutOfOfficeModal.tsx
index 1c2797cce0a..b814f367921 100644
--- a/packages/features/settings/outOfOffice/CreateOrEditOutOfOfficeModal.tsx
+++ b/packages/features/settings/outOfOffice/CreateOrEditOutOfOfficeModal.tsx
@@ -2,7 +2,6 @@ import { useState } from "react";
import { Controller, useForm } from "react-hook-form";
import dayjs from "@calcom/dayjs";
-import { classNames } from "@calcom/lib";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import { useDebounce } from "@calcom/lib/hooks/useDebounce";
import { useHasTeamPlan } from "@calcom/lib/hooks/useHasPaidPlan";
@@ -25,6 +24,7 @@ import {
Label,
Input,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { OutOfOfficeTab } from "./OutOfOfficeToggleGroup";
diff --git a/packages/features/shell/Shell.tsx b/packages/features/shell/Shell.tsx
index aaeb379d568..734af9f2e2c 100644
--- a/packages/features/shell/Shell.tsx
+++ b/packages/features/shell/Shell.tsx
@@ -10,12 +10,12 @@ import { useRedirectToLoginIfUnauthenticated } from "@calcom/features/auth/lib/h
import { useRedirectToOnboardingIfNeeded } from "@calcom/features/auth/lib/hooks/useRedirectToOnboardingIfNeeded";
import { KBarContent, KBarRoot } from "@calcom/features/kbar/Kbar";
import TimezoneChangeDialog from "@calcom/features/settings/TimezoneChangeDialog";
-import classNames from "@calcom/lib/classNames";
import { APP_NAME } from "@calcom/lib/constants";
import { useFormbricks } from "@calcom/lib/formbricks-client";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { useNotifications } from "@calcom/lib/hooks/useNotifications";
import { Button, ErrorBoundary, HeadSeo, SkeletonText } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { SideBarContainer } from "./SideBar";
import { TopNavContainer } from "./TopNav";
diff --git a/packages/features/shell/SideBar.tsx b/packages/features/shell/SideBar.tsx
index 329dfaa45a8..f35865f01b3 100644
--- a/packages/features/shell/SideBar.tsx
+++ b/packages/features/shell/SideBar.tsx
@@ -4,13 +4,13 @@ import dynamic from "next/dynamic";
import Link from "next/link";
import { usePathname } from "next/navigation";
-import { classNames } from "@calcom/lib";
import { IS_VISUAL_REGRESSION_TESTING, ENABLE_PROFILE_SWITCHER } from "@calcom/lib/constants";
import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";
import { getBookerBaseUrlSync } from "@calcom/lib/getBookerUrl/client";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { UserPermissionRole } from "@calcom/prisma/enums";
import { Avatar, ButtonOrLink, Credits, Icon, SkeletonText, Tooltip, Logo } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { KBarTrigger } from "../kbar/Kbar";
import { Navigation } from "./navigation/Navigation";
diff --git a/packages/features/shell/navigation/Navigation.tsx b/packages/features/shell/navigation/Navigation.tsx
index f5696f7ff69..f74bc81255a 100644
--- a/packages/features/shell/navigation/Navigation.tsx
+++ b/packages/features/shell/navigation/Navigation.tsx
@@ -8,7 +8,7 @@ import {
type OrganizationBranding,
} from "@calcom/features/ee/organizations/context/provider";
import { KBarTrigger } from "@calcom/features/kbar/Kbar";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import { TeamInviteBadge } from "../TeamInviteBadge";
import type { NavigationItemType } from "./NavigationItem";
diff --git a/packages/features/shell/navigation/NavigationItem.tsx b/packages/features/shell/navigation/NavigationItem.tsx
index 0b0dd4d02fd..5c7ad2a2d4d 100644
--- a/packages/features/shell/navigation/NavigationItem.tsx
+++ b/packages/features/shell/navigation/NavigationItem.tsx
@@ -2,10 +2,10 @@ import Link from "next/link";
import { usePathname } from "next/navigation";
import React, { Fragment } from "react";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Tooltip, Icon, SkeletonText } from "@calcom/ui";
import type { IconName } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { useShouldDisplayNavigationItem } from "./useShouldDisplayNavigationItem";
diff --git a/packages/features/shell/user-dropdown/ProfileDropdown.tsx b/packages/features/shell/user-dropdown/ProfileDropdown.tsx
index f2798dfb0cd..8d7e99e6fa3 100644
--- a/packages/features/shell/user-dropdown/ProfileDropdown.tsx
+++ b/packages/features/shell/user-dropdown/ProfileDropdown.tsx
@@ -1,7 +1,6 @@
import { useSession } from "next-auth/react";
import { useState } from "react";
-import { classNames } from "@calcom/lib";
import { ENABLE_PROFILE_SWITCHER } from "@calcom/lib/constants";
import { useRefreshData } from "@calcom/lib/hooks/useRefreshData";
import { trpc } from "@calcom/trpc";
@@ -15,6 +14,7 @@ import {
DropdownMenuTrigger,
Icon,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export function ProfileDropdown() {
const { update, data: sessionData } = useSession();
diff --git a/packages/features/shell/user-dropdown/UserDropdown.tsx b/packages/features/shell/user-dropdown/UserDropdown.tsx
index 6932d5f0e25..876682ca218 100644
--- a/packages/features/shell/user-dropdown/UserDropdown.tsx
+++ b/packages/features/shell/user-dropdown/UserDropdown.tsx
@@ -2,7 +2,6 @@ import { signOut } from "next-auth/react";
import { usePathname } from "next/navigation";
import { useEffect, useState } from "react";
-import { classNames } from "@calcom/lib";
import { ROADMAP, DESKTOP_APP_LINK } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import useMeQuery from "@calcom/trpc/react/hooks/useMeQuery";
@@ -17,6 +16,7 @@ import {
DropdownMenuTrigger,
Icon,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
// TODO (Platform): we shouldnt be importing from web here
import { useGetUserAttributes } from "@calcom/web/components/settings/platform/hooks/useGetUserAttributes";
diff --git a/packages/features/timezone-buddy/components/TimeDial.tsx b/packages/features/timezone-buddy/components/TimeDial.tsx
index 29d558a883f..b8810522e9f 100644
--- a/packages/features/timezone-buddy/components/TimeDial.tsx
+++ b/packages/features/timezone-buddy/components/TimeDial.tsx
@@ -4,8 +4,8 @@ import { useStore } from "zustand";
import type { Dayjs } from "@calcom/dayjs";
import dayjs from "@calcom/dayjs";
-import { classNames } from "@calcom/lib";
import type { DateRange } from "@calcom/lib/date-ranges";
+import classNames from "@calcom/ui/classNames";
import { DAY_CELL_WIDTH } from "../constants";
import { TBContext } from "../store";
diff --git a/packages/features/tips/UpgradeTip.tsx b/packages/features/tips/UpgradeTip.tsx
index 73b0485e762..f3454546214 100644
--- a/packages/features/tips/UpgradeTip.tsx
+++ b/packages/features/tips/UpgradeTip.tsx
@@ -1,10 +1,10 @@
import type { ReactNode } from "react";
-import { classNames } from "@calcom/lib";
import { useHasTeamPlan } from "@calcom/lib/hooks/useHasPaidPlan";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { useGetTheme } from "@calcom/lib/hooks/useTheme";
import { trpc } from "@calcom/trpc";
+import classNames from "@calcom/ui/classNames";
export function UpgradeTip({
title,
diff --git a/packages/features/troubleshooter/Troubleshooter.tsx b/packages/features/troubleshooter/Troubleshooter.tsx
index be30ea9fde6..029064d9d92 100644
--- a/packages/features/troubleshooter/Troubleshooter.tsx
+++ b/packages/features/troubleshooter/Troubleshooter.tsx
@@ -1,5 +1,5 @@
-import classNames from "@calcom/lib/classNames";
import useMediaQuery from "@calcom/lib/hooks/useMediaQuery";
+import classNames from "@calcom/ui/classNames";
import { LargeCalendar } from "./components/LargeCalendar";
import { TroubleshooterHeader } from "./components/TroubleshooterHeader";
diff --git a/packages/features/troubleshooter/components/TroubleshooterListItemContainer.tsx b/packages/features/troubleshooter/components/TroubleshooterListItemContainer.tsx
index 0d5bb956a30..81a51c73280 100644
--- a/packages/features/troubleshooter/components/TroubleshooterListItemContainer.tsx
+++ b/packages/features/troubleshooter/components/TroubleshooterListItemContainer.tsx
@@ -1,6 +1,6 @@
import type { PropsWithChildren } from "react";
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
interface TroubleshooterListItemContainerProps {
title: string;
diff --git a/packages/features/users/components/UserTable/BulkActions/EventTypesList.tsx b/packages/features/users/components/UserTable/BulkActions/EventTypesList.tsx
index cb02fb6c7b4..95d13270961 100644
--- a/packages/features/users/components/UserTable/BulkActions/EventTypesList.tsx
+++ b/packages/features/users/components/UserTable/BulkActions/EventTypesList.tsx
@@ -3,7 +3,6 @@ import type { Dispatch, SetStateAction } from "react";
import { useState, Fragment } from "react";
import { DataTableSelectionBar } from "@calcom/features/data-table";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { SchedulingType } from "@calcom/prisma/enums";
import { trpc } from "@calcom/trpc";
@@ -22,6 +21,7 @@ import {
PopoverTrigger,
Icon,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { UserTableUser } from "../types";
diff --git a/packages/features/users/components/UserTable/BulkActions/MassAssignAttributes.tsx b/packages/features/users/components/UserTable/BulkActions/MassAssignAttributes.tsx
index d1c4acabe6f..ff7abccabb7 100644
--- a/packages/features/users/components/UserTable/BulkActions/MassAssignAttributes.tsx
+++ b/packages/features/users/components/UserTable/BulkActions/MassAssignAttributes.tsx
@@ -3,7 +3,6 @@ import { createContext, useContext, useState, useMemo, type PropsWithChildren }
import type { Dispatch, SetStateAction } from "react";
import { DataTableSelectionBar, type ColumnFilter } from "@calcom/features/data-table";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import slugify from "@calcom/lib/slugify";
import type { Attribute as _Attribute, AttributeOption } from "@calcom/prisma/client";
@@ -24,6 +23,7 @@ import {
PopoverTrigger,
showToast,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { UserTableUser } from "../types";
diff --git a/packages/features/users/components/UserTable/BulkActions/TeamList.tsx b/packages/features/users/components/UserTable/BulkActions/TeamList.tsx
index 7b73a5bfbc5..2b3553cc21f 100644
--- a/packages/features/users/components/UserTable/BulkActions/TeamList.tsx
+++ b/packages/features/users/components/UserTable/BulkActions/TeamList.tsx
@@ -3,7 +3,6 @@ import type { Dispatch, SetStateAction } from "react";
import { useState } from "react";
import { DataTableSelectionBar } from "@calcom/features/data-table";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc";
import {
@@ -20,6 +19,7 @@ import {
PopoverTrigger,
showToast,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { UserTableUser } from "../types";
diff --git a/packages/features/users/components/UserTable/UserListTable.tsx b/packages/features/users/components/UserTable/UserListTable.tsx
index cf66c7f9101..69563cbb0a0 100644
--- a/packages/features/users/components/UserTable/UserListTable.tsx
+++ b/packages/features/users/components/UserTable/UserListTable.tsx
@@ -23,7 +23,6 @@ import {
convertFacetedValuesToMap,
} from "@calcom/features/data-table";
import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider";
-import classNames from "@calcom/lib/classNames";
import { WEBAPP_URL } from "@calcom/lib/constants";
import {
downloadAsCsv,
@@ -34,6 +33,7 @@ import { getUserAvatarUrl } from "@calcom/lib/getAvatarUrl";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc";
import { Avatar, Badge, Checkbox, showToast } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { useGetUserAttributes } from "@calcom/web/components/settings/platform/hooks/useGetUserAttributes";
import { DeleteBulkUsers } from "./BulkActions/DeleteBulkUsers";
diff --git a/packages/features/users/components/UserTable/UserTableActions.tsx b/packages/features/users/components/UserTable/UserTableActions.tsx
index 40ee9d9a587..b60ef235d82 100644
--- a/packages/features/users/components/UserTable/UserTableActions.tsx
+++ b/packages/features/users/components/UserTable/UserTableActions.tsx
@@ -1,6 +1,5 @@
import { useSession } from "next-auth/react";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
import {
@@ -16,6 +15,7 @@ import {
DropdownMenuSeparator,
showToast,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import type { UserTableUser, UserTableAction } from "./types";
diff --git a/packages/features/webhooks/components/EventTypeWebhookListItem.tsx b/packages/features/webhooks/components/EventTypeWebhookListItem.tsx
index c34a6e90b30..b6a85c5c207 100644
--- a/packages/features/webhooks/components/EventTypeWebhookListItem.tsx
+++ b/packages/features/webhooks/components/EventTypeWebhookListItem.tsx
@@ -1,4 +1,3 @@
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { WebhookTriggerEvents } from "@calcom/prisma/enums";
import { trpc } from "@calcom/trpc/react";
@@ -15,6 +14,7 @@ import {
Switch,
Tooltip,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type WebhookProps = {
id: string;
diff --git a/packages/features/webhooks/components/WebhookListItem.tsx b/packages/features/webhooks/components/WebhookListItem.tsx
index 6371899a1fd..cce2a4d7a8f 100644
--- a/packages/features/webhooks/components/WebhookListItem.tsx
+++ b/packages/features/webhooks/components/WebhookListItem.tsx
@@ -1,4 +1,3 @@
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { WebhookTriggerEvents } from "@calcom/prisma/enums";
import { trpc } from "@calcom/trpc/react";
@@ -15,6 +14,7 @@ import {
Switch,
Tooltip,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type WebhookProps = {
id: string;
diff --git a/packages/features/webhooks/pages/webhooks-view.tsx b/packages/features/webhooks/pages/webhooks-view.tsx
index 2c6a41b9780..e2ee9442a93 100644
--- a/packages/features/webhooks/pages/webhooks-view.tsx
+++ b/packages/features/webhooks/pages/webhooks-view.tsx
@@ -4,7 +4,6 @@ import { useSession } from "next-auth/react";
import { useRouter } from "next/navigation";
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader";
-import classNames from "@calcom/lib/classNames";
import { APP_NAME, WEBAPP_URL } from "@calcom/lib/constants";
import { useBookerUrl } from "@calcom/lib/hooks/useBookerUrl";
import { useLocale } from "@calcom/lib/hooks/useLocale";
@@ -12,6 +11,7 @@ import { UserPermissionRole } from "@calcom/prisma/enums";
import { trpc } from "@calcom/trpc/react";
import type { WebhooksByViewer } from "@calcom/trpc/server/routers/viewer/webhook/getByViewer.handler";
import { Avatar, EmptyScreen, SkeletonContainer, SkeletonText } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { WebhookListItem, CreateNewWebhookButton } from "../components";
diff --git a/packages/lib/hooks/useLastUsed.tsx b/packages/lib/hooks/useLastUsed.tsx
index e6ba6cc2b32..0ab3a23f0a8 100644
--- a/packages/lib/hooks/useLastUsed.tsx
+++ b/packages/lib/hooks/useLastUsed.tsx
@@ -1,8 +1,8 @@
import { useState, useEffect } from "react";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { localStorage } from "@calcom/lib/webstorage";
+import classNames from "@calcom/ui/classNames";
type LoginType = "saml" | "google" | "credentials";
diff --git a/packages/lib/index.ts b/packages/lib/index.ts
index 96f77226b6d..bee6e6177b3 100644
--- a/packages/lib/index.ts
+++ b/packages/lib/index.ts
@@ -1,4 +1,3 @@
-export { default as classNames } from "./classNames";
export { default as isPrismaObj, isPrismaObjOrUndefined } from "./isPrismaObj";
export * from "./isRecurringEvent";
export * from "./isBookingLimits";
diff --git a/packages/lib/package.json b/packages/lib/package.json
index 81b1d83e278..34f32e5e807 100644
--- a/packages/lib/package.json
+++ b/packages/lib/package.json
@@ -28,7 +28,6 @@
"next-i18next": "^13.2.2",
"rrule": "^2.7.1",
"sonner": "^1.7.4",
- "tailwind-merge": "^1.13.2",
"tsdav": "2.0.3",
"tslog": "^4.9.2",
"uuid": "^8.3.2"
diff --git a/packages/platform/atoms/availability/AvailabilitySettings.tsx b/packages/platform/atoms/availability/AvailabilitySettings.tsx
index 888f1b63589..0dd0d44b7eb 100644
--- a/packages/platform/atoms/availability/AvailabilitySettings.tsx
+++ b/packages/platform/atoms/availability/AvailabilitySettings.tsx
@@ -16,7 +16,6 @@ import WebSchedule, {
} from "@calcom/features/schedules/components/Schedule";
import WebShell from "@calcom/features/shell/Shell";
import { availabilityAsString } from "@calcom/lib/availability";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { sortAvailabilityStrings } from "@calcom/lib/weekstart";
import type { RouterOutputs } from "@calcom/trpc/react";
@@ -38,6 +37,7 @@ import {
VerticalDivider,
} from "@calcom/ui";
import { Icon } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { Shell as PlatformShell } from "../src/components/ui/shell";
import { cn } from "../src/lib/utils";
diff --git a/packages/platform/atoms/destination-calendar/DestinationCalendarSelector.tsx b/packages/platform/atoms/destination-calendar/DestinationCalendarSelector.tsx
index 4ab23e8a532..e1c299e194e 100644
--- a/packages/platform/atoms/destination-calendar/DestinationCalendarSelector.tsx
+++ b/packages/platform/atoms/destination-calendar/DestinationCalendarSelector.tsx
@@ -4,10 +4,10 @@ import { useState, useEffect, useMemo } from "react";
import { SingleValueComponent } from "@calcom/features/calendars/DestinationCalendarSelector";
import { OptionComponent } from "@calcom/features/calendars/DestinationCalendarSelector";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { ConnectedDestinationCalendars } from "@calcom/platform-libraries";
import { Badge, Select } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { getPlaceholderContent } from "../lib/getPlaceholderContent";
diff --git a/packages/platform/atoms/src/components/atoms-wrapper.tsx b/packages/platform/atoms/src/components/atoms-wrapper.tsx
index dd8548c9352..d683bfdbd0f 100644
--- a/packages/platform/atoms/src/components/atoms-wrapper.tsx
+++ b/packages/platform/atoms/src/components/atoms-wrapper.tsx
@@ -1,6 +1,6 @@
import type { ReactNode } from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import { useAtomsContext } from "../../hooks/useAtomsContext";
import { CALCOM_ATOMS_WRAPPER_CLASS } from "../constants/styles";
diff --git a/packages/lib/classNames.ts b/packages/ui/classNames.ts
similarity index 100%
rename from packages/lib/classNames.ts
rename to packages/ui/classNames.ts
diff --git a/packages/ui/components/app-list-card/AppListCard.tsx b/packages/ui/components/app-list-card/AppListCard.tsx
index cf1988d1414..a391a6d588e 100644
--- a/packages/ui/components/app-list-card/AppListCard.tsx
+++ b/packages/ui/components/app-list-card/AppListCard.tsx
@@ -1,10 +1,10 @@
"use client";
import type { AppListCardProps } from "@calcom/features/apps/components/AppListCard";
-import classNames from "@calcom/lib/classNames";
import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Avatar, Badge, Icon, ListItemText } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export const AppListCard = (props: AppListCardProps & { highlight?: boolean }) => {
const { t } = useLocale();
diff --git a/packages/ui/components/apps/AllApps.tsx b/packages/ui/components/apps/AllApps.tsx
index 02264aec24f..9b19b6a78cf 100644
--- a/packages/ui/components/apps/AllApps.tsx
+++ b/packages/ui/components/apps/AllApps.tsx
@@ -5,11 +5,11 @@ import type { AppCategories } from "@prisma/client";
import type { UIEvent } from "react";
import { useEffect, useRef, useState } from "react";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { UserAdminTeams } from "@calcom/lib/server/repository/user";
import type { AppFrontendPayload as App } from "@calcom/types/App";
import type { CredentialFrontendPayload as Credential } from "@calcom/types/Credential";
+import classNames from "@calcom/ui/classNames";
import { EmptyScreen } from "../empty-screen";
import { Icon } from "../icon";
diff --git a/packages/ui/components/apps/AppCard.tsx b/packages/ui/components/apps/AppCard.tsx
index 81d72432310..caa41347fd7 100644
--- a/packages/ui/components/apps/AppCard.tsx
+++ b/packages/ui/components/apps/AppCard.tsx
@@ -8,7 +8,6 @@ import { InstallAppButton } from "@calcom/app-store/components";
import { doesAppSupportTeamInstall, isConferencing } from "@calcom/app-store/utils";
import { AppOnboardingSteps } from "@calcom/lib/apps/appOnboardingSteps";
import { getAppOnboardingUrl } from "@calcom/lib/apps/getAppOnboardingUrl";
-import classNames from "@calcom/lib/classNames";
import { WEBAPP_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { UserAdminTeams } from "@calcom/lib/server/repository/user";
@@ -16,6 +15,7 @@ import type { AppFrontendPayload as App } from "@calcom/types/App";
import type { CredentialFrontendPayload as Credential } from "@calcom/types/Credential";
import type { ButtonProps } from "@calcom/ui";
import { Badge, showToast } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { Button } from "../button";
diff --git a/packages/ui/components/avatar/Avatar.tsx b/packages/ui/components/avatar/Avatar.tsx
index 2ffebce8356..68fe60640dc 100644
--- a/packages/ui/components/avatar/Avatar.tsx
+++ b/packages/ui/components/avatar/Avatar.tsx
@@ -3,8 +3,8 @@ import { Provider as TooltipPrimitiveProvider } from "@radix-ui/react-tooltip";
import { cva } from "class-variance-authority";
import Link from "next/link";
-import classNames from "@calcom/lib/classNames";
import { AVATAR_FALLBACK } from "@calcom/lib/constants";
+import classNames from "@calcom/ui/classNames";
import { Tooltip } from "../tooltip";
diff --git a/packages/ui/components/avatar/AvatarGroup.tsx b/packages/ui/components/avatar/AvatarGroup.tsx
index 68a9018c1d0..ae8c37f748a 100644
--- a/packages/ui/components/avatar/AvatarGroup.tsx
+++ b/packages/ui/components/avatar/AvatarGroup.tsx
@@ -1,4 +1,4 @@
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
import { Avatar } from "./Avatar";
diff --git a/packages/ui/components/avatar/UserAvatar.tsx b/packages/ui/components/avatar/UserAvatar.tsx
index f209a097e64..811c963df50 100644
--- a/packages/ui/components/avatar/UserAvatar.tsx
+++ b/packages/ui/components/avatar/UserAvatar.tsx
@@ -1,9 +1,9 @@
-import { classNames } from "@calcom/lib";
import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";
import { getUserAvatarUrl } from "@calcom/lib/getAvatarUrl";
import type { User } from "@calcom/prisma/client";
import type { UserProfile } from "@calcom/types/UserProfile";
import { Avatar } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
type Organization = {
id: number;
diff --git a/packages/ui/components/badge/Badge.tsx b/packages/ui/components/badge/Badge.tsx
index 64c364fc6d5..eba2054b83e 100644
--- a/packages/ui/components/badge/Badge.tsx
+++ b/packages/ui/components/badge/Badge.tsx
@@ -2,7 +2,7 @@ import type { VariantProps } from "class-variance-authority";
import { cva } from "class-variance-authority";
import React from "react";
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
import { Icon } from "../icon";
import type { IconName } from "../icon";
diff --git a/packages/ui/components/button/Button.tsx b/packages/ui/components/button/Button.tsx
index f9de090fa3c..3add1deeaa2 100644
--- a/packages/ui/components/button/Button.tsx
+++ b/packages/ui/components/button/Button.tsx
@@ -4,7 +4,7 @@ import type { LinkProps } from "next/link";
import Link from "next/link";
import React, { forwardRef } from "react";
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
import { Icon } from "../icon";
import type { IconName } from "../icon";
diff --git a/packages/ui/components/buttonGroup/ButtonGroup.tsx b/packages/ui/components/buttonGroup/ButtonGroup.tsx
index 93f92b94360..d35e910f004 100644
--- a/packages/ui/components/buttonGroup/ButtonGroup.tsx
+++ b/packages/ui/components/buttonGroup/ButtonGroup.tsx
@@ -1,6 +1,6 @@
import React from "react";
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
type Props = { children: React.ReactNode; combined?: boolean; containerProps?: JSX.IntrinsicElements["div"] };
diff --git a/packages/ui/components/calendar-switch/CalendarSwitch.tsx b/packages/ui/components/calendar-switch/CalendarSwitch.tsx
index d8b02de0b4a..1dc616de1d8 100644
--- a/packages/ui/components/calendar-switch/CalendarSwitch.tsx
+++ b/packages/ui/components/calendar-switch/CalendarSwitch.tsx
@@ -3,7 +3,7 @@
import type { ReactNode } from "react";
import { type ICalendarSwitchProps } from "@calcom/features/calendars/CalendarSwitch";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import { Icon } from "../icon";
diff --git a/packages/ui/components/card/Card.tsx b/packages/ui/components/card/Card.tsx
index 62ea4b4206e..b9d42dba885 100644
--- a/packages/ui/components/card/Card.tsx
+++ b/packages/ui/components/card/Card.tsx
@@ -5,7 +5,7 @@ import Link from "next/link";
import type { ReactNode } from "react";
import React from "react";
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
import { Button } from "../button";
diff --git a/packages/ui/components/card/FormCard.tsx b/packages/ui/components/card/FormCard.tsx
index f31f605038e..0a5cd57e213 100644
--- a/packages/ui/components/card/FormCard.tsx
+++ b/packages/ui/components/card/FormCard.tsx
@@ -3,7 +3,7 @@
import Link from "next/link";
import { useState } from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import type { BadgeProps } from "../badge";
import { Badge } from "../badge";
diff --git a/packages/ui/components/command/index.tsx b/packages/ui/components/command/index.tsx
index 96442f31d07..802e83f5638 100644
--- a/packages/ui/components/command/index.tsx
+++ b/packages/ui/components/command/index.tsx
@@ -2,7 +2,7 @@ import type { DialogProps } from "@radix-ui/react-dialog";
import { Command as CommandPrimitive } from "cmdk";
import * as React from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import { Dialog, DialogContent } from "../dialog";
diff --git a/packages/ui/components/dialog/Dialog.tsx b/packages/ui/components/dialog/Dialog.tsx
index f6893336838..035731f2705 100644
--- a/packages/ui/components/dialog/Dialog.tsx
+++ b/packages/ui/components/dialog/Dialog.tsx
@@ -8,9 +8,9 @@ import React, { useMemo, useState } from "react";
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
import { Dialog as PlatformDialogPrimitives } from "@calcom/atoms/monorepo";
-import { classNames } from "@calcom/lib";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import { useLocale } from "@calcom/lib/hooks/useLocale";
+import classNames from "@calcom/ui/classNames";
import type { ButtonProps } from "../button";
import { Button } from "../button";
diff --git a/packages/ui/components/divider/Divider.tsx b/packages/ui/components/divider/Divider.tsx
index 791126fc244..c568b9c4e03 100644
--- a/packages/ui/components/divider/Divider.tsx
+++ b/packages/ui/components/divider/Divider.tsx
@@ -1,4 +1,4 @@
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
export function Divider({ className, ...props }: JSX.IntrinsicElements["hr"]) {
className = classNames("border-subtle my-1", className);
diff --git a/packages/ui/components/dropdown/Dropdown.tsx b/packages/ui/components/dropdown/Dropdown.tsx
index cd7e873dad3..259ef473333 100644
--- a/packages/ui/components/dropdown/Dropdown.tsx
+++ b/packages/ui/components/dropdown/Dropdown.tsx
@@ -3,7 +3,7 @@ import Link from "next/link";
import type { ComponentProps } from "react";
import { forwardRef } from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import type { ButtonColor } from "../button";
import { Icon } from "../icon";
diff --git a/packages/ui/components/editor/Editor.tsx b/packages/ui/components/editor/Editor.tsx
index 1f9cc24a610..c7b1de53f26 100644
--- a/packages/ui/components/editor/Editor.tsx
+++ b/packages/ui/components/editor/Editor.tsx
@@ -14,7 +14,7 @@ import { HeadingNode, QuoteNode } from "@lexical/rich-text";
import { TableCellNode, TableNode, TableRowNode } from "@lexical/table";
import type { Dispatch, SetStateAction } from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import ExampleTheme from "./ExampleTheme";
import { VariableNode } from "./nodes/VariableNode";
diff --git a/packages/ui/components/editor/plugins/AddVariablesPlugin.tsx b/packages/ui/components/editor/plugins/AddVariablesPlugin.tsx
index 13959961a1b..1d670edaaeb 100644
--- a/packages/ui/components/editor/plugins/AddVariablesPlugin.tsx
+++ b/packages/ui/components/editor/plugins/AddVariablesPlugin.tsx
@@ -11,8 +11,8 @@ import { TextNode } from "lexical";
import { useCallback, useEffect, useMemo, useState } from "react";
import { createPortal } from "react-dom";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
+import classNames from "@calcom/ui/classNames";
import { VariableNode, $createVariableNode } from "../nodes/VariableNode";
diff --git a/packages/ui/components/empty-screen/EmptyScreen.tsx b/packages/ui/components/empty-screen/EmptyScreen.tsx
index e171a48804d..5ef55d35960 100644
--- a/packages/ui/components/empty-screen/EmptyScreen.tsx
+++ b/packages/ui/components/empty-screen/EmptyScreen.tsx
@@ -1,7 +1,7 @@
import type { ReactNode } from "react";
import React from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import { Button } from "../button";
import type { IconName } from "../icon";
diff --git a/packages/ui/components/filter-select/index.tsx b/packages/ui/components/filter-select/index.tsx
index c8a07e078a3..3b47d4a5953 100644
--- a/packages/ui/components/filter-select/index.tsx
+++ b/packages/ui/components/filter-select/index.tsx
@@ -1,4 +1,3 @@
-import { classNames } from "@calcom/lib";
import type { IconName } from "@calcom/ui";
import {
Button,
@@ -15,6 +14,7 @@ import {
Badge,
Icon,
} from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
export interface FilterOption {
value: string | number;
diff --git a/packages/ui/components/form/checkbox/Checkbox.tsx b/packages/ui/components/form/checkbox/Checkbox.tsx
index c63a5fe9cbc..f45c194d598 100644
--- a/packages/ui/components/form/checkbox/Checkbox.tsx
+++ b/packages/ui/components/form/checkbox/Checkbox.tsx
@@ -3,8 +3,8 @@ import { useId } from "@radix-ui/react-id";
import type { InputHTMLAttributes } from "react";
import React, { forwardRef } from "react";
-import classNames from "@calcom/lib/classNames";
import { markdownToSafeHTML } from "@calcom/lib/markdownToSafeHTML";
+import classNames from "@calcom/ui/classNames";
import { Icon } from "../../icon";
diff --git a/packages/ui/components/form/checkbox/MultiSelectCheckboxes.tsx b/packages/ui/components/form/checkbox/MultiSelectCheckboxes.tsx
index 8a684ab7670..d421a018402 100644
--- a/packages/ui/components/form/checkbox/MultiSelectCheckboxes.tsx
+++ b/packages/ui/components/form/checkbox/MultiSelectCheckboxes.tsx
@@ -10,8 +10,8 @@ import type {
import { components } from "react-select";
import type { Props } from "react-select";
-import { classNames } from "@calcom/lib";
import { useLocale } from "@calcom/lib/hooks/useLocale";
+import classNames from "@calcom/ui/classNames";
import { Select } from "../select";
diff --git a/packages/ui/components/form/color-picker/colorpicker.tsx b/packages/ui/components/form/color-picker/colorpicker.tsx
index d30482c98e7..bd506ba6ad5 100644
--- a/packages/ui/components/form/color-picker/colorpicker.tsx
+++ b/packages/ui/components/form/color-picker/colorpicker.tsx
@@ -4,9 +4,9 @@ import * as Popover from "@radix-ui/react-popover";
import { useState } from "react";
import { HexColorInput, HexColorPicker } from "react-colorful";
-import cx from "@calcom/lib/classNames";
import { fallBackHex, isValidHexCode } from "@calcom/lib/getBrandColours";
import { Button } from "@calcom/ui";
+import cx from "@calcom/ui/classNames";
export type ColorPickerProps = {
defaultValue: string;
diff --git a/packages/ui/components/form/date-range-picker/Calendar.tsx b/packages/ui/components/form/date-range-picker/Calendar.tsx
index effc2c941a0..fc71b535f70 100644
--- a/packages/ui/components/form/date-range-picker/Calendar.tsx
+++ b/packages/ui/components/form/date-range-picker/Calendar.tsx
@@ -4,7 +4,7 @@ import * as React from "react";
import { DayPicker } from "react-day-picker";
import dayjs from "@calcom/dayjs";
-import { classNames as cn } from "@calcom/lib";
+import cn from "@calcom/ui/classNames";
import { buttonClasses } from "../../button/Button";
import { Icon } from "../../icon";
diff --git a/packages/ui/components/form/date-range-picker/DateRangePicker.tsx b/packages/ui/components/form/date-range-picker/DateRangePicker.tsx
index 2140697e8ef..a8d371de527 100644
--- a/packages/ui/components/form/date-range-picker/DateRangePicker.tsx
+++ b/packages/ui/components/form/date-range-picker/DateRangePicker.tsx
@@ -4,7 +4,7 @@ import * as Popover from "@radix-ui/react-popover";
import { format } from "date-fns";
import * as React from "react";
-import { classNames as cn } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import { Button } from "../../button";
import { Calendar } from "./Calendar";
@@ -61,14 +61,14 @@ export function DatePickerWithRange({
}
return (
- <div className={cn("grid gap-2", className)}>
+ <div className={classNames("grid gap-2", className)}>
<Popover.Root>
<Popover.Trigger asChild>
<Button
data-testid="date-range"
color="secondary"
EndIcon="calendar"
- className={cn("justify-between text-left font-normal", !dates && "text-subtle")}>
+ className={classNames("justify-between text-left font-normal", !dates && "text-subtle")}>
{dates?.startDate ? (
dates?.endDate ? (
<>
diff --git a/packages/ui/components/form/datepicker/DatePicker.tsx b/packages/ui/components/form/datepicker/DatePicker.tsx
index 26ba50f3e99..985e144f60f 100644
--- a/packages/ui/components/form/datepicker/DatePicker.tsx
+++ b/packages/ui/components/form/datepicker/DatePicker.tsx
@@ -1,8 +1,8 @@
import * as Popover from "@radix-ui/react-popover";
import { format } from "date-fns";
-import { classNames as cn } from "@calcom/lib";
import { Button } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
import { Calendar } from "../date-range-picker/Calendar";
@@ -34,14 +34,14 @@ const DatePicker = ({ minDate, disabled, date, onDatesChange, className }: Props
);
return (
- <div className={cn("grid gap-2", className)}>
+ <div className={classNames("grid gap-2", className)}>
<Popover.Root>
<Popover.Trigger asChild>
<Button
data-testid="pick-date"
color="secondary"
EndIcon="calendar"
- className={cn("justify-between text-left font-normal", !date && "text-subtle")}>
+ className={classNames("justify-between text-left font-normal", !date && "text-subtle")}>
{date ? <>{format(date, "LLL dd, y")}</> : <span>Pick a date</span>}
</Button>
</Popover.Trigger>
diff --git a/packages/ui/components/form/inputs/Input.tsx b/packages/ui/components/form/inputs/Input.tsx
index 0f623ca6c92..18a182086ba 100644
--- a/packages/ui/components/form/inputs/Input.tsx
+++ b/packages/ui/components/form/inputs/Input.tsx
@@ -4,8 +4,8 @@ import type { ReactNode } from "react";
import React, { forwardRef, useCallback, useId, useState } from "react";
import { useFormContext } from "react-hook-form";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
+import classNames from "@calcom/ui/classNames";
import { Alert } from "../../alert";
import { Icon } from "../../icon";
diff --git a/packages/ui/components/form/inputs/Label.tsx b/packages/ui/components/form/inputs/Label.tsx
index eda371a89b5..c4517318057 100644
--- a/packages/ui/components/form/inputs/Label.tsx
+++ b/packages/ui/components/form/inputs/Label.tsx
@@ -1,4 +1,4 @@
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
export function Label(props: JSX.IntrinsicElements["label"]) {
const { className, ...restProps } = props;
diff --git a/packages/ui/components/form/inputs/TextField.tsx b/packages/ui/components/form/inputs/TextField.tsx
index f9da1822787..ad01e84ebd9 100644
--- a/packages/ui/components/form/inputs/TextField.tsx
+++ b/packages/ui/components/form/inputs/TextField.tsx
@@ -3,8 +3,8 @@
import { cva } from "class-variance-authority";
import React, { forwardRef, useId, useState } from "react";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
+import classNames from "@calcom/ui/classNames";
import { Icon } from "../../icon";
import { HintsOrErrors } from "./HintOrErrors";
diff --git a/packages/ui/components/form/select/Select.tsx b/packages/ui/components/form/select/Select.tsx
index d26d54d32cb..33eb270615e 100644
--- a/packages/ui/components/form/select/Select.tsx
+++ b/packages/ui/components/form/select/Select.tsx
@@ -3,8 +3,8 @@ import * as React from "react";
import type { GroupBase, Props, SingleValue, MultiValue } from "react-select";
import ReactSelect from "react-select";
-import cx from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
+import cx from "@calcom/ui/classNames";
import { Label } from "../inputs/Label";
import { inputStyles } from "../inputs/TextField";
diff --git a/packages/ui/components/form/select/components.tsx b/packages/ui/components/form/select/components.tsx
index c68d248c06a..98431f2c2ab 100644
--- a/packages/ui/components/form/select/components.tsx
+++ b/packages/ui/components/form/select/components.tsx
@@ -1,7 +1,7 @@
import type { GroupBase, InputProps, OptionProps, ControlProps } from "react-select";
import { components as reactSelectComponents } from "react-select";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import { UpgradeTeamsBadge } from "../../badge";
import { Icon } from "../../icon";
diff --git a/packages/ui/components/form/slider/index.tsx b/packages/ui/components/form/slider/index.tsx
index a837ba18c38..d89744bd255 100644
--- a/packages/ui/components/form/slider/index.tsx
+++ b/packages/ui/components/form/slider/index.tsx
@@ -3,7 +3,7 @@
import * as SliderPrimitive from "@radix-ui/react-slider";
import * as React from "react";
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
const Slider = React.forwardRef<
React.ElementRef<typeof SliderPrimitive.Root>,
diff --git a/packages/ui/components/form/step/FormStep.tsx b/packages/ui/components/form/step/FormStep.tsx
index ead893f51a9..9866880b9e2 100644
--- a/packages/ui/components/form/step/FormStep.tsx
+++ b/packages/ui/components/form/step/FormStep.tsx
@@ -1,6 +1,6 @@
import React from "react";
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
type Props = {
steps: number;
diff --git a/packages/ui/components/form/step/Steps.tsx b/packages/ui/components/form/step/Steps.tsx
index e1f62674cc1..329842693e6 100644
--- a/packages/ui/components/form/step/Steps.tsx
+++ b/packages/ui/components/form/step/Steps.tsx
@@ -1,4 +1,4 @@
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
type StepWithNav = {
maxSteps: number;
diff --git a/packages/ui/components/form/switch/SettingsToggle.tsx b/packages/ui/components/form/switch/SettingsToggle.tsx
index 77081183c9c..a58ec94fe98 100644
--- a/packages/ui/components/form/switch/SettingsToggle.tsx
+++ b/packages/ui/components/form/switch/SettingsToggle.tsx
@@ -1,7 +1,7 @@
import { useAutoAnimate } from "@formkit/auto-animate/react";
import type { ReactNode } from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import { Label } from "../inputs/Label";
import Switch from "./Switch";
diff --git a/packages/ui/components/form/switch/Switch.tsx b/packages/ui/components/form/switch/Switch.tsx
index 08d8d3c4eda..2c97b2313b3 100644
--- a/packages/ui/components/form/switch/Switch.tsx
+++ b/packages/ui/components/form/switch/Switch.tsx
@@ -4,7 +4,7 @@ import * as PrimitiveSwitch from "@radix-ui/react-switch";
import type { ReactNode } from "react";
import React from "react";
-import cx from "@calcom/lib/classNames";
+import cx from "@calcom/ui/classNames";
import { Tooltip } from "../../tooltip";
diff --git a/packages/ui/components/form/timezone-select/TimezoneSelect.tsx b/packages/ui/components/form/timezone-select/TimezoneSelect.tsx
index 835d7507b55..cbd9364604e 100644
--- a/packages/ui/components/form/timezone-select/TimezoneSelect.tsx
+++ b/packages/ui/components/form/timezone-select/TimezoneSelect.tsx
@@ -4,11 +4,11 @@ import { useMemo, useState } from "react";
import type { ITimezoneOption, ITimezone, Props as SelectProps } from "react-timezone-select";
import BaseSelect from "react-timezone-select";
-import { classNames } from "@calcom/lib";
import { CALCOM_VERSION } from "@calcom/lib/constants";
import { filterBySearchText, addTimezonesToDropdown, handleOptionLabel } from "@calcom/lib/timezone";
import type { Timezones } from "@calcom/lib/timezone";
import { trpc } from "@calcom/trpc/react";
+import classNames from "@calcom/ui/classNames";
import { inputStyles } from "../inputs/TextField";
import { getReactSelectProps } from "../select";
diff --git a/packages/ui/components/form/toggleGroup/BooleanToggleGroup.tsx b/packages/ui/components/form/toggleGroup/BooleanToggleGroup.tsx
index b2182f2a08f..bfc62ecfe4a 100644
--- a/packages/ui/components/form/toggleGroup/BooleanToggleGroup.tsx
+++ b/packages/ui/components/form/toggleGroup/BooleanToggleGroup.tsx
@@ -4,8 +4,8 @@ import { useId } from "@radix-ui/react-id";
import { Root as ToggleGroupPrimitive, Item as ToggleGroupItemPrimitive } from "@radix-ui/react-toggle-group";
import { useState } from "react";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
+import classNames from "@calcom/ui/classNames";
import { Label } from "../../../components/form/inputs/Label";
diff --git a/packages/ui/components/form/toggleGroup/ToggleGroup.tsx b/packages/ui/components/form/toggleGroup/ToggleGroup.tsx
index 494cda9f71b..0e080d9cee7 100644
--- a/packages/ui/components/form/toggleGroup/ToggleGroup.tsx
+++ b/packages/ui/components/form/toggleGroup/ToggleGroup.tsx
@@ -1,8 +1,8 @@
import * as RadixToggleGroup from "@radix-ui/react-toggle-group";
import type { ReactNode } from "react";
-import { classNames } from "@calcom/lib";
import { Tooltip } from "@calcom/ui";
+import classNames from "@calcom/ui/classNames";
interface ToggleGroupProps extends Omit<RadixToggleGroup.ToggleGroupSingleProps, "type"> {
options: {
diff --git a/packages/ui/components/form/wizard/WizardForm.tsx b/packages/ui/components/form/wizard/WizardForm.tsx
index 01595c5d73f..434ae7e7a3f 100644
--- a/packages/ui/components/form/wizard/WizardForm.tsx
+++ b/packages/ui/components/form/wizard/WizardForm.tsx
@@ -6,8 +6,8 @@ import { useRouter } from "next/navigation";
import type { Dispatch, SetStateAction } from "react";
import { useEffect, useState } from "react";
-import classNames from "@calcom/lib/classNames";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
+import classNames from "@calcom/ui/classNames";
import { Button } from "../../button";
import { Steps } from "../../form/step";
diff --git a/packages/ui/components/hover-card/index.tsx b/packages/ui/components/hover-card/index.tsx
index 8af636396d7..2765b8a6edb 100644
--- a/packages/ui/components/hover-card/index.tsx
+++ b/packages/ui/components/hover-card/index.tsx
@@ -3,7 +3,7 @@
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
import * as React from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
const HoverCard = HoverCardPrimitive.Root;
diff --git a/packages/ui/components/icon/Icon.tsx b/packages/ui/components/icon/Icon.tsx
index ef1aa296813..14e0f519e9b 100644
--- a/packages/ui/components/icon/Icon.tsx
+++ b/packages/ui/components/icon/Icon.tsx
@@ -1,6 +1,6 @@
import { type SVGProps } from "react";
-import cn from "@calcom/lib/classNames";
+import cn from "@calcom/ui/classNames";
import type { IconName } from "./icon-names";
diff --git a/packages/ui/components/layout/ShellSubHeading.tsx b/packages/ui/components/layout/ShellSubHeading.tsx
index ba09fe9338f..e70b5fe242d 100644
--- a/packages/ui/components/layout/ShellSubHeading.tsx
+++ b/packages/ui/components/layout/ShellSubHeading.tsx
@@ -1,6 +1,6 @@
import type { ReactNode } from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
export function ShellSubHeading(props: {
title: ReactNode;
diff --git a/packages/ui/components/list/List.tsx b/packages/ui/components/list/List.tsx
index dffc0370532..09dd61eb479 100644
--- a/packages/ui/components/list/List.tsx
+++ b/packages/ui/components/list/List.tsx
@@ -1,8 +1,8 @@
import Link from "next/link";
import { createElement } from "react";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
+import classNames from "@calcom/ui/classNames";
import { Badge } from "../badge";
diff --git a/packages/ui/components/logo/Logo.tsx b/packages/ui/components/logo/Logo.tsx
index 1f8d301687f..3abf13e73cd 100644
--- a/packages/ui/components/logo/Logo.tsx
+++ b/packages/ui/components/logo/Logo.tsx
@@ -1,4 +1,4 @@
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
export default function Logo({
small,
diff --git a/packages/ui/components/navigation/NavigationItem.tsx b/packages/ui/components/navigation/NavigationItem.tsx
index 7cf79d44828..021fbecba3d 100644
--- a/packages/ui/components/navigation/NavigationItem.tsx
+++ b/packages/ui/components/navigation/NavigationItem.tsx
@@ -1,7 +1,7 @@
import { cva } from "class-variance-authority";
import { Fragment } from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import { ButtonOrLink } from "../dropdown";
import { Icon } from "../icon";
diff --git a/packages/ui/components/navigation/tabs/HorizontalTabItem.tsx b/packages/ui/components/navigation/tabs/HorizontalTabItem.tsx
index 2cca8a64fae..c974de3ab9f 100644
--- a/packages/ui/components/navigation/tabs/HorizontalTabItem.tsx
+++ b/packages/ui/components/navigation/tabs/HorizontalTabItem.tsx
@@ -1,7 +1,7 @@
import Link from "next/link";
-import classNames from "@calcom/lib/classNames";
import { useUrlMatchesCurrentUrl } from "@calcom/lib/hooks/useUrlMatchesCurrentUrl";
+import classNames from "@calcom/ui/classNames";
import { Avatar } from "../../avatar";
import { Icon } from "../../icon";
diff --git a/packages/ui/components/navigation/tabs/VerticalTabItem.tsx b/packages/ui/components/navigation/tabs/VerticalTabItem.tsx
index a1d857794c1..1663a443009 100644
--- a/packages/ui/components/navigation/tabs/VerticalTabItem.tsx
+++ b/packages/ui/components/navigation/tabs/VerticalTabItem.tsx
@@ -1,8 +1,8 @@
import Link from "next/link";
import { Fragment } from "react";
-import classNames from "@calcom/lib/classNames";
import { useUrlMatchesCurrentUrl } from "@calcom/lib/hooks/useUrlMatchesCurrentUrl";
+import classNames from "@calcom/ui/classNames";
import { Icon } from "../../icon";
import type { IconName } from "../../icon";
diff --git a/packages/ui/components/navigation/tabs/VerticalTabs.tsx b/packages/ui/components/navigation/tabs/VerticalTabs.tsx
index 84a27a5ffd7..15eea0c2040 100644
--- a/packages/ui/components/navigation/tabs/VerticalTabs.tsx
+++ b/packages/ui/components/navigation/tabs/VerticalTabs.tsx
@@ -1,4 +1,4 @@
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import type { VerticalTabItemProps } from "./VerticalTabItem";
import VerticalTabItem from "./VerticalTabItem";
diff --git a/packages/ui/components/organization-banner/OrgBanner.tsx b/packages/ui/components/organization-banner/OrgBanner.tsx
index 41f0e7cc73f..dd4b6e299f9 100644
--- a/packages/ui/components/organization-banner/OrgBanner.tsx
+++ b/packages/ui/components/organization-banner/OrgBanner.tsx
@@ -1,6 +1,6 @@
import Image from "next/image";
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
type Maybe<T> = T | null | undefined;
diff --git a/packages/ui/components/popover/AnimatedPopover.tsx b/packages/ui/components/popover/AnimatedPopover.tsx
index f81778ba2b3..5eaaa9c9005 100644
--- a/packages/ui/components/popover/AnimatedPopover.tsx
+++ b/packages/ui/components/popover/AnimatedPopover.tsx
@@ -1,7 +1,7 @@
import * as Popover from "@radix-ui/react-popover";
import React from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
import { buttonClasses } from "../button";
import { Icon } from "../icon";
diff --git a/packages/ui/components/popover/Popover.tsx b/packages/ui/components/popover/Popover.tsx
index 748915e780a..53e1d10d2d6 100644
--- a/packages/ui/components/popover/Popover.tsx
+++ b/packages/ui/components/popover/Popover.tsx
@@ -1,7 +1,7 @@
import * as PopoverPrimitive from "@radix-ui/react-popover";
import * as React from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
const Popover = PopoverPrimitive.Root;
diff --git a/packages/ui/components/scrollable/ScrollableArea.tsx b/packages/ui/components/scrollable/ScrollableArea.tsx
index 0b52dd2d21a..e58c2e3f841 100644
--- a/packages/ui/components/scrollable/ScrollableArea.tsx
+++ b/packages/ui/components/scrollable/ScrollableArea.tsx
@@ -3,7 +3,7 @@
import type { PropsWithChildren } from "react";
import React, { useRef, useEffect, useState } from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
const ScrollableArea = ({ children, className }: PropsWithChildren<{ className?: string }>) => {
const scrollableRef = useRef<HTMLDivElement>(null);
diff --git a/packages/ui/components/sheet/Sheet.tsx b/packages/ui/components/sheet/Sheet.tsx
index df6e35a4559..f22aad421a9 100644
--- a/packages/ui/components/sheet/Sheet.tsx
+++ b/packages/ui/components/sheet/Sheet.tsx
@@ -1,7 +1,7 @@
import * as SheetPrimitives from "@radix-ui/react-dialog";
import * as React from "react";
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
import { Button } from "../button";
diff --git a/packages/ui/components/skeleton/Skeleton.tsx b/packages/ui/components/skeleton/Skeleton.tsx
index 5d21ebb8f97..49cfdcb7cd0 100644
--- a/packages/ui/components/skeleton/Skeleton.tsx
+++ b/packages/ui/components/skeleton/Skeleton.tsx
@@ -1,7 +1,7 @@
import React from "react";
-import classNames from "@calcom/lib/classNames";
import { useLocale } from "@calcom/lib/hooks/useLocale";
+import classNames from "@calcom/ui/classNames";
type SkeletonBaseProps = {
className?: string;
diff --git a/packages/ui/components/table/Table.tsx b/packages/ui/components/table/Table.tsx
index de9174f999a..333e98122da 100644
--- a/packages/ui/components/table/Table.tsx
+++ b/packages/ui/components/table/Table.tsx
@@ -1,4 +1,4 @@
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
interface TableProps {
children: React.ReactNode;
diff --git a/packages/ui/components/table/TableNew.tsx b/packages/ui/components/table/TableNew.tsx
index 3791a4d76bc..9907fa350a9 100644
--- a/packages/ui/components/table/TableNew.tsx
+++ b/packages/ui/components/table/TableNew.tsx
@@ -1,6 +1,6 @@
import * as React from "react";
-import { classNames } from "@calcom/lib";
+import classNames from "@calcom/ui/classNames";
const Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(
({ className, ...props }, ref) => (
diff --git a/packages/ui/components/tooltip/Tooltip.tsx b/packages/ui/components/tooltip/Tooltip.tsx
index 6354cbeef9d..dd430ba6d03 100644
--- a/packages/ui/components/tooltip/Tooltip.tsx
+++ b/packages/ui/components/tooltip/Tooltip.tsx
@@ -4,7 +4,7 @@ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
import React from "react";
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
export function Tooltip({
children,
diff --git a/packages/ui/form/AddressInput.tsx b/packages/ui/form/AddressInput.tsx
index 78de4c58e45..35e5bb139fc 100644
--- a/packages/ui/form/AddressInput.tsx
+++ b/packages/ui/form/AddressInput.tsx
@@ -1,4 +1,4 @@
-import cx from "@calcom/lib/classNames";
+import cx from "@calcom/ui/classNames";
import { Input } from "../components/form";
import { Icon } from "../components/icon";
diff --git a/packages/ui/form/PhoneInput.tsx b/packages/ui/form/PhoneInput.tsx
index 8bf7e20abca..3b14c9199fd 100644
--- a/packages/ui/form/PhoneInput.tsx
+++ b/packages/ui/form/PhoneInput.tsx
@@ -6,8 +6,8 @@ import PhoneInput from "react-phone-input-2";
import "react-phone-input-2/lib/style.css";
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
-import { classNames } from "@calcom/lib";
import { trpc } from "@calcom/trpc/react";
+import classNames from "@calcom/ui/classNames";
export type PhoneInputProps = {
value?: string;
diff --git a/packages/ui/form/Select.tsx b/packages/ui/form/Select.tsx
index a9cd7add686..917f42f8c09 100644
--- a/packages/ui/form/Select.tsx
+++ b/packages/ui/form/Select.tsx
@@ -1,7 +1,7 @@
import type { GroupBase, InputProps, Props } from "react-select";
import ReactSelect, { components } from "react-select";
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
export type SelectProps<
Option,
diff --git a/packages/ui/form/fields.tsx b/packages/ui/form/fields.tsx
index a11ea5a98f3..0a2b1811e7d 100644
--- a/packages/ui/form/fields.tsx
+++ b/packages/ui/form/fields.tsx
@@ -4,9 +4,9 @@ import React, { forwardRef } from "react";
import type { FieldValues, SubmitHandler, UseFormReturn } from "react-hook-form";
import { FormProvider, useFormContext } from "react-hook-form";
-import classNames from "@calcom/lib/classNames";
import { getErrorFromUnknown } from "@calcom/lib/errors";
import { useLocale } from "@calcom/lib/hooks/useLocale";
+import classNames from "@calcom/ui/classNames";
import { Alert } from "../components/alert";
import { showToast } from "../components/toast";
diff --git a/packages/ui/form/radio-area/Radio.tsx b/packages/ui/form/radio-area/Radio.tsx
index 7fcc9df16de..cc1805b7fff 100644
--- a/packages/ui/form/radio-area/Radio.tsx
+++ b/packages/ui/form/radio-area/Radio.tsx
@@ -2,7 +2,7 @@ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
import type { ReactNode } from "react";
import React from "react";
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
export const Group = (props: RadioGroupPrimitive.RadioGroupProps & { children: ReactNode }) => (
<RadioGroupPrimitive.Root {...props}>{props.children}</RadioGroupPrimitive.Root>
diff --git a/packages/ui/form/radio-area/RadioAreaGroup.tsx b/packages/ui/form/radio-area/RadioAreaGroup.tsx
index 44e20671a6c..ee0a789893d 100644
--- a/packages/ui/form/radio-area/RadioAreaGroup.tsx
+++ b/packages/ui/form/radio-area/RadioAreaGroup.tsx
@@ -2,7 +2,7 @@ import { useId } from "@radix-ui/react-id";
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
import type { ReactNode } from "react";
-import classNames from "@calcom/lib/classNames";
+import classNames from "@calcom/ui/classNames";
type RadioAreaProps = RadioGroupPrimitive.RadioGroupItemProps & {
children: ReactNode;
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 016dd6fc839..c10300e9277 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -6,6 +6,7 @@
"main": "./index.ts",
"exports": {
".": "./index.ts",
+ "./classNames": "./classNames.ts",
"./alert": "./components/alert/index.ts",
"./app-list-card": "./components/app-list-card/index.ts",
"./apps": "./components/apps/index.ts",
@@ -93,7 +94,8 @@
"react-day-picker": "^8.10.1",
"react-hook-form": "^7.43.3",
"react-inlinesvg": "^4.1.3",
- "react-select": "^5.7.0"
+ "react-select": "^5.7.0",
+ "tailwind-merge": "^1.13.2"
},
"devDependencies": {
"@calcom/config": "*",
diff --git a/yarn.lock b/yarn.lock
index 1fb8b720c0b..fa19e55dcd6 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4391,7 +4391,6 @@ __metadata:
next-i18next: ^13.2.2
rrule: ^2.7.1
sonner: ^1.7.4
- tailwind-merge: ^1.13.2
tsdav: 2.0.3
tslog: ^4.9.2
typescript: ^4.9.4
@@ -5024,6 +5023,7 @@ __metadata:
react-hook-form: ^7.43.3
react-inlinesvg: ^4.1.3
react-select: ^5.7.0
+ tailwind-merge: ^1.13.2
typescript: ^4.9.4
languageName: unknown
linkType: soft