perf: do not import from @calcom/ui barrel file (#20184)

* Icon and IconName

* Button and ButtonGroup

* UserAvatar

* AvatarGroup

* Avatar

* WizardLayout

* Dialogs

* EmptyScreen

* showToast and TextField

* Editor

* Skeleton

* Skeleton

* TopBanner and showToast

* Button again

* more

* perf: Remove app-store reference from @calcom/ui

* more

* Fixing types

* Icon

* Fixed casing

* dropdown

* more

* Select

* more

* Badge

* List

* more

* Divider

* more

* fix

* fix type check

* refactor

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix type check

* fix

* fix

* fix

* fix

* more

* more

* more

* more

* add index file to components/command

* fix

* fix

* fix

* fix imports

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix build errors

* fix build errors

* fix

---------

Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
Benny JooandKeith Williams authored and GitHub committed 2025-03-19 19:00:55 -03:00
1 parent ca19aa00c1
commit 853f9bc436
548 files changed
+1860 -1502

No files matched your search

+9 -15
View File
@@ -8,19 +8,13 @@ import type {
import Widgets from "@calcom/app-store/routing-forms/components/react-awesome-query-builder/widgets";
import PhoneInput from "@calcom/features/components/phone-input";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import {
AddressInput,
Button,
CheckboxField,
EmailField,
Group,
Icon,
InfoBadge,
InputField,
Label,
RadioField,
Tooltip,
} from "@calcom/ui";
import { AddressInput } from "@calcom/ui/components/address";
import { InfoBadge } from "@calcom/ui/components/badge";
import { Button } from "@calcom/ui/components/button";
import { Label, CheckboxField, EmailField, InputField } from "@calcom/ui/components/form";
import { Icon } from "@calcom/ui/components/icon";
import { RadioGroup, RadioField } from "@calcom/ui/components/radio";
import { Tooltip } from "@calcom/ui/components/tooltip";
import { ComponentForField } from "./FormBuilderField";
import { propsTypes } from "./propsTypes";
@@ -366,7 +360,7 @@ export const Components: Record<FieldType, Component> = {
propsType: propsTypes.radio,
factory: ({ setValue, name, value, options, readOnly }) => {
return (
<Group
<RadioGroup
disabled={readOnly}
value={value}
onValueChange={(e) => {
@@ -382,7 +376,7 @@ export const Components: Record<FieldType, Component> = {
/>
))}
</>
</Group>
</RadioGroup>
);
},
},
+11 -15
View File
@@ -9,27 +9,23 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
import { md } from "@calcom/lib/markdownIt";
import { markdownToSafeHTMLClient } from "@calcom/lib/markdownToSafeHTMLClient";
import turndown from "@calcom/lib/turndownService";
import classNames from "@calcom/ui/classNames";
import { Badge } from "@calcom/ui/components/badge";
import { Button } from "@calcom/ui/components/button";
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogClose } from "@calcom/ui/components/dialog";
import { Editor } from "@calcom/ui/components/editor";
import {
Badge,
BooleanToggleGroupField,
Button,
Switch,
CheckboxField,
Dialog,
DialogClose,
DialogContent,
DialogFooter,
DialogHeader,
SelectField,
Form,
Icon,
Input,
InputField,
Label,
SelectField,
showToast,
Editor,
Switch,
} from "@calcom/ui";
import classNames from "@calcom/ui/classNames";
BooleanToggleGroupField,
} from "@calcom/ui/components/form";
import { Icon } from "@calcom/ui/components/icon";
import { showToast } from "@calcom/ui/components/toast";
import { fieldTypesConfigMap } from "./fieldTypes";
import { fieldsThatSupportLabelAsSafeHtml } from "./fieldsThatSupportLabelAsSafeHtml";
@@ -4,8 +4,10 @@ import { Controller, useFormContext } from "react-hook-form";
import type { z } from "zod";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Icon, InfoBadge, Label } from "@calcom/ui";
import { InfoBadge } from "@calcom/ui/components/badge";
import classNames from "@calcom/ui/classNames";
import { Label } from "@calcom/ui/components/form";
import { Icon } from "@calcom/ui/components/icon";
import { Components, isValidValueProp } from "./Components";
import { fieldTypesConfigMap } from "./fieldTypes";