perf: remove atoms monorepo imports (#19688)

* perf: Remove atoms/monorepo barrel exports

* Removed more exports

* completely removed the monorepo file

* fixed types

* fixing tests

* fixing package errors

* Pushing latest

* Fixed atoms build

* hack to fix type

* Fixed web build
This commit is contained in:
Keith Williams authored and GitHub committed 2025-03-05 09:49:13 -03:00
1 parent 6f62c6ad5d
commit 381f2781a3
25 files changed
+43 -54

No files matched your search

+1 -1
View File
@@ -7,11 +7,11 @@ import type { ForwardRefExoticComponent, ReactElement, ReactNode } from "react";
import React, { useMemo, useState } from "react";
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
import { Dialog as PlatformDialogPrimitives } from "@calcom/atoms/monorepo";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import classNames from "@calcom/ui/classNames";
import * as PlatformDialogPrimitives from "../../../platform/atoms/src/components/ui/dialog";
import type { ButtonProps } from "../button";
import { Button } from "../button";
import type { IconName } from "../icon";
+1 -1
View File
@@ -57,7 +57,7 @@ vi.mock("@calcom/lib/hooks/useLocale", () => ({
},
}));
vi.mock("@calcom/atoms/monorepo", () => ({
vi.mock("@calcom/atoms/hooks/useIsPlatform", () => ({
useIsPlatform: () => {
return false;
},