🧹 One calcom/ui import to rule them all (#5561)
* Removed emptyscreen component v1 version, migrated pages that still used it to v2, and removed v1 of workflow pages and components. * updated workflow pages imports to remove v2 from path. * Deleted v1 switch component, deleted v1 api-keys components, deleted old web integrations components that were unused. * Removed v1 list component. * Fixed event workflows tab path. * Fixed import path for button in sandbox page. * Cleanup and type fixes * Making explicit indexes * UI import migrations * More import fixes * More import fixes * Submodule sync * Type fixes * Build fixes Co-authored-by: zomars <[email protected]>
This commit is contained in:
1 parent
a36b46bd81
commit
ccc2bdd25e
325 files changed
+2152
-5271
No files matched your search
@@ -2,9 +2,10 @@ import * as DialogPrimitive from "@radix-ui/react-dialog";
|
||||
import React, { PropsWithChildren, ReactNode } from "react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
import { Button } from "@calcom/ui/components";
|
||||
import { DialogClose, DialogContent } from "@calcom/ui/v2";
|
||||
|
||||
import { Icon } from "../../Icon";
|
||||
import { Button } from "../../components";
|
||||
import { DialogClose, DialogContent } from "./Dialog";
|
||||
|
||||
export type ConfirmationDialogContentProps = {
|
||||
confirmBtn?: ReactNode;
|
||||
|
||||
@@ -65,7 +65,7 @@ export function Dialog(props: DialogProps) {
|
||||
}
|
||||
type DialogContentProps = React.ComponentProps<typeof DialogPrimitive["Content"]> & {
|
||||
size?: "xl" | "lg" | "md";
|
||||
type: "creation" | "confirmation";
|
||||
type?: "creation" | "confirmation";
|
||||
title?: string;
|
||||
description?: string | JSX.Element | undefined;
|
||||
closeText?: string;
|
||||
@@ -80,7 +80,10 @@ type DialogContentProps = React.ComponentProps<typeof DialogPrimitive["Content"]
|
||||
};
|
||||
|
||||
export const DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps>(
|
||||
({ children, title, Icon, actionProps, useOwnActionButtons, ...props }, forwardedRef) => {
|
||||
(
|
||||
{ children, title, Icon, actionProps, useOwnActionButtons, type = "creation", ...props },
|
||||
forwardedRef
|
||||
) => {
|
||||
const { t } = useLocale();
|
||||
|
||||
return (
|
||||
@@ -102,14 +105,14 @@ export const DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps
|
||||
`${props.className || ""}`
|
||||
)}
|
||||
ref={forwardedRef}>
|
||||
{props.type === "creation" && (
|
||||
{type === "creation" && (
|
||||
<div>
|
||||
{title && <DialogHeader title={title} />}
|
||||
{props.description && <p className="pb-5 text-sm text-gray-500">{props.description}</p>}
|
||||
<div className="flex flex-col space-y-6">{children}</div>
|
||||
</div>
|
||||
)}
|
||||
{props.type === "confirmation" && (
|
||||
{type === "confirmation" && (
|
||||
<div className="flex">
|
||||
{Icon && (
|
||||
<div className="mr-4 inline-flex h-10 w-10 items-center justify-center rounded-full bg-gray-300">
|
||||
|
||||
@@ -3,8 +3,8 @@ import { FormEvent, useCallback, useEffect, useState } from "react";
|
||||
import Cropper from "react-easy-crop";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Dialog, DialogClose, DialogContent, DialogTrigger } from "@calcom/ui/Dialog";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
|
||||
import { Button, Dialog, DialogClose, DialogContent, DialogTrigger } from "../../";
|
||||
|
||||
type ReadAsMethod = "readAsText" | "readAsDataURL" | "readAsArrayBuffer" | "readAsBinaryString";
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { ReactNode } from "react";
|
||||
|
||||
import { Badge, badgeClassNameByVariant } from "../../components/badge";
|
||||
import { Badge, BadgeProps } from "../../components/badge";
|
||||
|
||||
type Props = {
|
||||
title: string;
|
||||
description?: string;
|
||||
badgeText?: string;
|
||||
badgeVariant?: keyof typeof badgeClassNameByVariant;
|
||||
badgeVariant?: BadgeProps["variant"];
|
||||
infoIcon?: string;
|
||||
rightAlignedComponent?: ReactNode;
|
||||
};
|
||||
|
||||
@@ -21,18 +21,20 @@ import isCalcom from "@calcom/lib/isCalcom";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import useMeQuery from "@calcom/trpc/react/hooks/useMeQuery";
|
||||
import { SVGComponent } from "@calcom/types/SVGComponent";
|
||||
import Dropdown, {
|
||||
|
||||
import {
|
||||
Button,
|
||||
Dropdown,
|
||||
DropdownMenuContent,
|
||||
DropdownMenuItem,
|
||||
DropdownMenuPortal,
|
||||
DropdownMenuSeparator,
|
||||
DropdownMenuTrigger,
|
||||
} from "@calcom/ui/Dropdown";
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
import TimezoneChangeDialog from "@calcom/ui/TimezoneChangeDialog";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import showToast from "@calcom/ui/v2/core/notifications";
|
||||
import Tips from "@calcom/ui/v2/modules/tips/Tips";
|
||||
Icon,
|
||||
showToast,
|
||||
TimezoneChangeDialog,
|
||||
Tips,
|
||||
} from "../..";
|
||||
|
||||
/* TODO: Get this from endpoint */
|
||||
import pkg from "../../../../apps/web/package.json";
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
import React, { FC } from "react";
|
||||
|
||||
import { SVGComponent } from "@calcom/types/SVGComponent";
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
|
||||
import {
|
||||
Button,
|
||||
Dropdown,
|
||||
DropdownMenuContent,
|
||||
DropdownMenuItem,
|
||||
DropdownMenuTrigger,
|
||||
DropdownMenuPortal,
|
||||
} from "@calcom/ui/v2/core/Dropdown";
|
||||
import Dropdown from "@calcom/ui/v2/core/Dropdown";
|
||||
DropdownMenuTrigger,
|
||||
Icon,
|
||||
} from "../..";
|
||||
|
||||
export type ActionType = {
|
||||
id: string;
|
||||
|
||||
@@ -6,7 +6,7 @@ import BaseSelect, {
|
||||
Props as SelectProps,
|
||||
} from "react-timezone-select";
|
||||
|
||||
import { getReactSelectProps } from "@calcom/ui/v2/core/form/select";
|
||||
import { getReactSelectProps } from "../..";
|
||||
|
||||
function TimezoneSelect({ className, components, ...props }: SelectProps) {
|
||||
const reactSelectProps = useMemo(() => {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { useRouter } from "next/router";
|
||||
|
||||
import classNames from "@calcom/lib/classNames";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import Stepper from "@calcom/ui/v2/core/Stepper";
|
||||
|
||||
import { Button, Stepper } from "../..";
|
||||
|
||||
type DefaultStep = {
|
||||
title: string;
|
||||
|
||||
@@ -5,9 +5,9 @@ import useAddAppMutation from "@calcom/app-store/_utils/useAddAppMutation";
|
||||
import { InstallAppButton } from "@calcom/app-store/components";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { App } from "@calcom/types/App";
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { showToast } from "@calcom/ui/v2";
|
||||
|
||||
import { Button, Icon } from "../../..";
|
||||
import { showToast } from "../notifications";
|
||||
|
||||
interface AppCardProps {
|
||||
app: App;
|
||||
@@ -71,6 +71,7 @@ export default function AppCard({ app, credentials }: AppCardProps) {
|
||||
render={({ useDefaultComponent, ...props }) => {
|
||||
if (useDefaultComponent) {
|
||||
props = {
|
||||
...props,
|
||||
onClick: () => {
|
||||
mutation.mutate({ type: app.type, variant: app.variant, slug: app.slug });
|
||||
},
|
||||
@@ -97,11 +98,14 @@ export default function AppCard({ app, credentials }: AppCardProps) {
|
||||
render={({ useDefaultComponent, ...props }) => {
|
||||
if (useDefaultComponent) {
|
||||
props = {
|
||||
...props,
|
||||
onClick: () => {
|
||||
mutation.mutate({ type: app.type, variant: app.variant, slug: app.slug });
|
||||
},
|
||||
};
|
||||
}
|
||||
props.color;
|
||||
// ^?
|
||||
return (
|
||||
<Button
|
||||
StartIcon={Icon.FiPlus}
|
||||
|
||||
@@ -4,8 +4,8 @@ import "@glidejs/glide/dist/css/glide.theme.min.css";
|
||||
import { useEffect, useRef } from "react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
|
||||
import { Icon } from "../../..";
|
||||
import { SkeletonText } from "../skeleton";
|
||||
|
||||
const Slider = <T extends string | unknown>({
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { useCallback, useRef, useState } from "react";
|
||||
import { useEffect } from "react";
|
||||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
import { HexColorInput, HexColorPicker } from "react-colorful";
|
||||
|
||||
import { isValidHexCode, fallBackHex } from "@calcom/lib/CustomBranding";
|
||||
import Swatch from "@calcom/ui/v2/core/Swatch";
|
||||
import { fallBackHex, isValidHexCode } from "@calcom/lib/CustomBranding";
|
||||
|
||||
import { Swatch } from "../..";
|
||||
|
||||
type Handler = (event: MouseEvent | Event) => void;
|
||||
function useEventListener<
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { classNames } from "@calcom/lib";
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
|
||||
import { Icon } from "../../..";
|
||||
import Divider from "../Divider";
|
||||
|
||||
type Action = { check: () => boolean; fn: () => void };
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
// @see: https://github.com/wojtekmaj/react-daterange-picker/issues/91
|
||||
import "@wojtekmaj/react-daterange-picker/dist/DateRangePicker.css";
|
||||
import PrimitiveDateRangePicker from "@wojtekmaj/react-daterange-picker/dist/entry.nostyle";
|
||||
import React from "react";
|
||||
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
import "@calcom/ui/v2/core/form/date-range-picker/styles.css";
|
||||
import { Icon } from "../../../..";
|
||||
import "./styles.css";
|
||||
|
||||
type Props = {
|
||||
disabled?: boolean | undefined;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export * from "./radio-area";
|
||||
export { RadioGroup, /* TODO: solve this conflict -> Select, */ Radio } from "./radio-area";
|
||||
export { default as Checkbox } from "../../../components/form/checkbox/Checkbox";
|
||||
export { default as DatePicker } from "./DatePicker";
|
||||
export { default as Select, SelectWithValidation, SelectField, getReactSelectProps } from "./select";
|
||||
|
||||
@@ -4,7 +4,8 @@ import React from "react";
|
||||
|
||||
import classNames from "@calcom/lib/classNames";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { RadioArea, RadioAreaGroup } from "@calcom/ui/v2/core/form/radio-area/RadioAreaGroup";
|
||||
|
||||
import { RadioArea, RadioAreaGroup } from "./RadioAreaGroup";
|
||||
|
||||
interface OptionProps
|
||||
extends Pick<React.OptionHTMLAttributes<HTMLOptionElement>, "value" | "label" | "className"> {
|
||||
|
||||
@@ -12,7 +12,8 @@ import {
|
||||
} from "react-select";
|
||||
|
||||
import { classNames } from "@calcom/lib";
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
|
||||
import { Icon } from "../../../..";
|
||||
|
||||
export const InputComponent = <
|
||||
Option,
|
||||
|
||||
@@ -1,29 +1,58 @@
|
||||
export * from "./Alert";
|
||||
export * from "./Card";
|
||||
export * from "./Dialog";
|
||||
export { default as Dropdown } from "./Dropdown";
|
||||
export * from "./Dropdown";
|
||||
export { Alert } from "./Alert";
|
||||
export type { AlertProps } from "./Alert";
|
||||
export { default as Banner } from "./banner";
|
||||
export { Card } from "./Card";
|
||||
export type { BaseCardProps } from "./Card";
|
||||
export { default as ColorPicker } from "./colorpicker";
|
||||
export { Dialog, DialogClose, DialogContent, DialogFooter, DialogHeader, DialogTrigger } from "./Dialog";
|
||||
export type { DialogProps } from "./Dialog";
|
||||
export {
|
||||
ButtonOrLink,
|
||||
Dropdown,
|
||||
DropdownItem,
|
||||
DropdownMenuCheckboxItem,
|
||||
DropdownMenuContent,
|
||||
DropdownMenuGroup,
|
||||
DropdownMenuItem,
|
||||
DropdownMenuLabel,
|
||||
DropdownMenuPortal,
|
||||
DropdownMenuRadioGroup,
|
||||
DropdownMenuRadioItem,
|
||||
DropdownMenuSeparator,
|
||||
DropdownMenuTrigger,
|
||||
DropdownMenuTriggerItem,
|
||||
} from "./Dropdown";
|
||||
export { default as EmptyScreen } from "./EmptyScreen";
|
||||
export {
|
||||
Checkbox,
|
||||
DatePicker,
|
||||
FormStep,
|
||||
getReactSelectProps,
|
||||
Radio,
|
||||
RadioGroup,
|
||||
Select,
|
||||
SelectField,
|
||||
SelectWithValidation,
|
||||
} from "./form";
|
||||
export { default as LinkIconButton } from "./LinkIconButton";
|
||||
export { List, ListItem } from "./List";
|
||||
export type { ListItemProps } from "./List";
|
||||
export { default as Loader } from "./Loader";
|
||||
export { default as MeetingTimeInTimezones } from "./MeetingTimeInTimezones";
|
||||
export type { HorizontalTabItemProps } from "./navigation/tabs/HorizontalTabItem";
|
||||
export { default as HorizontalTabs, HorizontalTabItem } from "./navigation/tabs/HorizontalTabs";
|
||||
export type { VerticalTabItemProps } from "./navigation/tabs/VerticalTabItem";
|
||||
export { default as VerticalTabs, VerticalTabItem } from "./navigation/tabs/VerticalTabs";
|
||||
export { default as showToast } from "./notifications";
|
||||
export { default as PageHeader } from "./PageHeader";
|
||||
export { Portal } from "./Portal";
|
||||
export { Segment, SegmentOption } from "./Segment";
|
||||
export { default as SettingsToggle } from "./SettingsToggle";
|
||||
export { default as Shell } from "./Shell";
|
||||
export { Skeleton, SkeletonAvatar, SkeletonButton, SkeletonContainer, SkeletonText } from "./skeleton";
|
||||
export { default as Stepper } from "./Stepper";
|
||||
export { default as Swatch } from "./Swatch";
|
||||
export { default as Switch } from "./Switch";
|
||||
export { default as Tooltip } from "./Tooltip";
|
||||
export { default as WizardForm } from "./WizardForm";
|
||||
export { default as Banner } from "./banner";
|
||||
export { default as ColorPicker } from "./colorpicker";
|
||||
export * from "./form";
|
||||
export { default as showToast } from "./notifications";
|
||||
export { default as LinkIconButton } from "./LinkIconButton";
|
||||
export { default as VerticalDivider } from "./VerticalDivider";
|
||||
export * from "./skeleton";
|
||||
export { default as VerticalTabs, VerticalTabItem } from "./navigation/tabs/VerticalTabs";
|
||||
export { default as HorizontalTabs, HorizontalTabItem } from "./navigation/tabs/HorizontalTabs";
|
||||
export type { VerticalTabItemProps } from "./navigation/tabs/VerticalTabItem";
|
||||
export type { HorizontalTabItemProps } from "./navigation/tabs/HorizontalTabItem";
|
||||
export * from "./Portal";
|
||||
export * from "./Segment";
|
||||
export { default as SettingsToggle } from "./SettingsToggle";
|
||||
export { default as WizardForm } from "./WizardForm";
|
||||
@@ -1,10 +1,8 @@
|
||||
import React, { ComponentProps } from "react";
|
||||
|
||||
import { Icon } from "@calcom/ui";
|
||||
import HorizontalTabs from "@calcom/ui/v2/core/navigation/tabs/HorizontalTabs";
|
||||
import type { VerticalTabItemProps } from "@calcom/ui/v2/core/navigation/tabs/VerticalTabItem";
|
||||
import VerticalTabs from "@calcom/ui/v2/core/navigation/tabs/VerticalTabs";
|
||||
|
||||
import type { VerticalTabItemProps } from "../";
|
||||
import { HorizontalTabs, VerticalTabs } from "../";
|
||||
import { Icon } from "../../../Icon";
|
||||
import Shell from "../Shell";
|
||||
import type { HorizontalTabItemProps } from "../navigation/tabs/HorizontalTabItem";
|
||||
|
||||
|
||||
@@ -6,16 +6,12 @@ import { useRouter } from "next/router";
|
||||
import React, { ComponentProps, useEffect, useState } from "react";
|
||||
|
||||
import { classNames } from "@calcom/lib";
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants";
|
||||
import { HOSTED_CAL_FEATURES, WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
|
||||
import ErrorBoundary from "../../../ErrorBoundary";
|
||||
import { Icon } from "../../../Icon";
|
||||
import { Badge } from "../../../components/badge";
|
||||
import { Badge, Button, ErrorBoundary, Icon } from "../../..";
|
||||
import { useMeta } from "../Meta";
|
||||
import Shell from "../Shell";
|
||||
import { VerticalTabItemProps } from "../navigation/tabs/VerticalTabItem";
|
||||
|
||||
@@ -3,8 +3,7 @@ import { useRouter } from "next/router";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { Toaster } from "react-hot-toast";
|
||||
|
||||
import { StepCard } from "@calcom/ui/v2/core/StepCard";
|
||||
import { Steps } from "@calcom/ui/v2/core/Steps";
|
||||
import { StepCard, Steps } from "../../..";
|
||||
|
||||
export default function WizardLayout({
|
||||
children,
|
||||
|
||||
@@ -5,8 +5,8 @@ import { ComponentProps, Fragment } from "react";
|
||||
import classNames from "@calcom/lib/classNames";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { SVGComponent } from "@calcom/types/SVGComponent";
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
|
||||
import { Icon } from "../../../..";
|
||||
import { Skeleton } from "../../skeleton";
|
||||
|
||||
export type VerticalTabItemProps = {
|
||||
|
||||
@@ -2,7 +2,7 @@ import classNames from "classnames";
|
||||
import { Check, Info } from "react-feather";
|
||||
import toast from "react-hot-toast";
|
||||
|
||||
export default function showToast(message: string, variant: "success" | "warning" | "error") {
|
||||
export function showToast(message: string, variant: "success" | "warning" | "error") {
|
||||
switch (variant) {
|
||||
case "success":
|
||||
toast.custom(
|
||||
@@ -66,3 +66,4 @@ export default function showToast(message: string, variant: "success" | "warning
|
||||
break;
|
||||
}
|
||||
}
|
||||
export default showToast;
|
||||
@@ -1,2 +1,3 @@
|
||||
/* TODO: Make this index explicit */
|
||||
export * from "./core";
|
||||
export * from "./modules";
|
||||
@@ -7,8 +7,8 @@ import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { collectPageParameters, telemetryEventTypes, useTelemetry } from "@calcom/lib/telemetry";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Icon } from "@calcom/ui";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
|
||||
import { Button, Icon } from "../../..";
|
||||
|
||||
interface Props {
|
||||
samlTenantID: string;
|
||||
|
||||
@@ -6,7 +6,8 @@ import classNames from "@calcom/lib/classNames";
|
||||
import { daysInMonth, yyyymmdd } from "@calcom/lib/date-fns";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { weekdayNames } from "@calcom/lib/weekday";
|
||||
import { SkeletonText } from "@calcom/ui/v2";
|
||||
|
||||
import { SkeletonText } from "../../..";
|
||||
|
||||
export type DatePickerProps = {
|
||||
/** which day of the week to render the calendar. Usually Sunday (=0) or Monday (=1) - default: Sunday */
|
||||
|
||||
@@ -3,10 +3,8 @@ import { Props } from "react-select";
|
||||
|
||||
import { classNames } from "@calcom/lib";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
|
||||
import { Avatar } from "../../../components";
|
||||
import { Select } from "../../core/form";
|
||||
import { Avatar, Icon, Select } from "../../..";
|
||||
|
||||
type CheckedSelectOption = {
|
||||
avatar: string;
|
||||
|
||||
@@ -13,21 +13,27 @@ import { HttpError } from "@calcom/lib/http-error";
|
||||
import slugify from "@calcom/lib/slugify";
|
||||
import { createEventTypeInput } from "@calcom/prisma/zod/custom/eventtype";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Alert } from "@calcom/ui/Alert";
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
import { Avatar } from "@calcom/ui/components/avatar";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Form, TextAreaField, TextField } from "@calcom/ui/components/form";
|
||||
import { Dialog, DialogClose, DialogContent } from "@calcom/ui/v2/core/Dialog";
|
||||
import Dropdown, {
|
||||
|
||||
import {
|
||||
Alert,
|
||||
Avatar,
|
||||
Button,
|
||||
Dialog,
|
||||
DialogClose,
|
||||
DialogContent,
|
||||
Dropdown,
|
||||
DropdownMenuContent,
|
||||
DropdownMenuItem,
|
||||
DropdownMenuLabel,
|
||||
DropdownMenuSeparator,
|
||||
DropdownMenuTrigger,
|
||||
} from "@calcom/ui/v2/core/Dropdown";
|
||||
import * as RadioArea from "@calcom/ui/v2/core/form/radio-area/RadioAreaGroup";
|
||||
import showToast from "@calcom/ui/v2/core/notifications";
|
||||
Form,
|
||||
Icon,
|
||||
RadioGroup as RadioArea,
|
||||
showToast,
|
||||
TextAreaField,
|
||||
TextField,
|
||||
} from "../../..";
|
||||
|
||||
// this describes the uniform data needed to create a new event type on Profile or Team
|
||||
export interface EventTypeParent {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Icon } from "@calcom/ui";
|
||||
import { Badge } from "@calcom/ui/components/badge";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { ButtonGroup } from "@calcom/ui/components/buttonGroup";
|
||||
|
||||
import { Badge, Button, ButtonGroup, Icon } from "../../..";
|
||||
|
||||
type Props = {
|
||||
required?: boolean;
|
||||
|
||||
@@ -8,8 +8,8 @@ import getStripeAppData from "@calcom/lib/getStripeAppData";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { baseEventTypeSelect } from "@calcom/prisma";
|
||||
import { EventTypeModel } from "@calcom/prisma/zod";
|
||||
import { Icon } from "@calcom/ui";
|
||||
import { Badge } from "@calcom/ui/components/badge";
|
||||
|
||||
import { Badge, Icon } from "../../..";
|
||||
|
||||
export type EventTypeDescriptionProps = {
|
||||
eventType: Pick<
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { components, GroupBase, Props, ValueContainerProps } from "react-select";
|
||||
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
|
||||
import { Select } from "../..";
|
||||
import { Icon } from "../../..";
|
||||
|
||||
const LimitedChipsContainer = <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({
|
||||
children,
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
export { default as CheckedTeamSelect } from "./CheckedTeamSelect";
|
||||
export { default as CreateEventType } from "./CreateEventType";
|
||||
export { default as CustomInputItem } from "./CustomInputItem";
|
||||
export { default as CheckedTeamSelect } from "./CheckedTeamSelect";
|
||||
export const EventTypeDescriptionLazy = dynamic(() => import("./EventTypeDescription"));
|
||||
@@ -2,10 +2,8 @@ import { useState } from "react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Icon } from "@calcom/ui";
|
||||
import { Button, ButtonProps } from "@calcom/ui/components/button";
|
||||
import { Dialog, DialogTrigger, DialogContent } from "@calcom/ui/v2/core/Dialog";
|
||||
import showToast from "@calcom/ui/v2/core/notifications";
|
||||
|
||||
import { Button, ButtonProps, Dialog, DialogContent, DialogTrigger, Icon, showToast } from "../../..";
|
||||
|
||||
export default function DisconnectIntegration({
|
||||
credentialId,
|
||||
|
||||
@@ -1,17 +1,12 @@
|
||||
import { MembershipRole } from "@prisma/client";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/router";
|
||||
import React from "react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { TeamWithMembers } from "@calcom/lib/server/queries/teams";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import ConfirmationDialogContent from "@calcom/ui/ConfirmationDialogContent";
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
import { Dialog, DialogTrigger } from "@calcom/ui/v2/core/Dialog";
|
||||
import LinkIconButton from "@calcom/ui/v2/core/LinkIconButton";
|
||||
import showToast from "@calcom/ui/v2/core/notifications";
|
||||
|
||||
import { ConfirmationDialogContent, Dialog, DialogTrigger, Icon, LinkIconButton, showToast } from "../../..";
|
||||
import CreateEventTypeButton from "../event-types/CreateEventType";
|
||||
|
||||
export default function TeamSettingsRightSidebar(props: { team: TeamWithMembers; role: MembershipRole }) {
|
||||
|
||||
Reference in new issue
Block a user