chore: Add ./components/[name]/index.ts map to package.json (#17319)
* chore: Add ./components/[name]/index.ts map to package.json * fix: Clarify Popover exports * fix: re-add dropdown to calcom/ui barrel * chore: Add icon barrel file re-export * Fix all calcom/ui imports of its own barrel * Never say 'fix all remaining..' it's never true * Some type fixeS * Linking fixes * Rename sheet.tsx to Sheet.tsx Done through UI, console does NOT like this. * Fixed some test failures
This commit is contained in:
1 parent
5c86522e28
commit
b9128a7a0b
79 files changed
+216
-195
No files matched your search
@@ -1,2 +1,3 @@
|
||||
export { Editor } from "./Editor";
|
||||
export type { TextEditorProps } from "./Editor";
|
||||
export { AddVariablesDropdown } from "./plugins/AddVariablesDropdown";
|
||||
@@ -10,7 +10,7 @@ vi.mock("@calcom/lib/hooks/useLocale", () => ({
|
||||
}));
|
||||
|
||||
// Mock the Dropdown component
|
||||
vi.mock("../../form/dropdown", () => ({
|
||||
vi.mock("../../dropdown", () => ({
|
||||
Dropdown: ({ children }: { children: React.ReactNode }) => <div>{children}</div>,
|
||||
DropdownMenuTrigger: ({ children }: { children: React.ReactNode }) => <div>{children}</div>,
|
||||
DropdownMenuContent: ({ children }: { children: React.ReactNode }) => <div>{children}</div>,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
|
||||
import { Icon } from "../../..";
|
||||
import { Dropdown, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../form/dropdown";
|
||||
import { Dropdown, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../dropdown";
|
||||
import { Icon } from "../../icon";
|
||||
|
||||
interface IAddVariablesDropdown {
|
||||
addVariable: (variable: string) => void;
|
||||
|
||||
@@ -10,7 +10,7 @@ import { describe, it, expect, vi, beforeEach } from "vitest";
|
||||
import ToolbarPlugin from "./ToolbarPlugin";
|
||||
|
||||
// Mocks
|
||||
vi.mock("../../..", () => ({
|
||||
vi.mock("../../icon", () => ({
|
||||
Icon: ({ name }: { name: string }) => <span data-testid={`icon-${name}`}>{name}</span>,
|
||||
}));
|
||||
|
||||
@@ -23,7 +23,7 @@ vi.mock("../../button", () => ({
|
||||
),
|
||||
}));
|
||||
|
||||
vi.mock("../../form/dropdown", () => ({
|
||||
vi.mock("../../dropdown", () => ({
|
||||
Dropdown: ({ children }: any) => <div data-testid="dropdown">{children}</div>,
|
||||
DropdownMenuTrigger: ({ children }: any) => <div data-testid="dropdown-trigger">{children}</div>,
|
||||
DropdownMenuContent: ({ children }: any) => <div data-testid="dropdown-content">{children}</div>,
|
||||
|
||||
@@ -27,9 +27,9 @@ import {
|
||||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
import { createPortal } from "react-dom";
|
||||
|
||||
import { Icon } from "../../..";
|
||||
import { Button } from "../../button";
|
||||
import { Dropdown, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../form/dropdown";
|
||||
import { Dropdown, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../dropdown";
|
||||
import { Icon } from "../../icon";
|
||||
import type { TextEditorProps } from "../Editor";
|
||||
import { AddVariablesDropdown } from "./AddVariablesDropdown";
|
||||
|
||||
|
||||
Reference in new issue
Block a user