Reduce bundle size by importing single icons at a time (#6644)
* Removed barrel import for icons to reduce bundle size. * Fixed replacement mistakes * Reverted unneccesary yarn.lock updates * Added some missed Icon. import conversions * Remove merge artifact import in @calcom/ui * Don't import Icon in pages/[user] * Update packages/ui/package.json Co-authored-by: Alex van Andel <[email protected]> Co-authored-by: Omar López <[email protected]>
This commit is contained in:
155 files changed
+881
-768
No files matched your search
@@ -17,7 +17,6 @@ import {
|
||||
Dialog,
|
||||
EmptyScreen,
|
||||
Form,
|
||||
Icon,
|
||||
showToast,
|
||||
SkeletonButton,
|
||||
SkeletonContainer,
|
||||
@@ -26,6 +25,7 @@ import {
|
||||
TextField,
|
||||
VerticalDivider,
|
||||
} from "@calcom/ui";
|
||||
import { FiAlertCircle, FiEdit } from "@calcom/ui/components/icon";
|
||||
|
||||
const IntegrationContainer = ({
|
||||
app,
|
||||
@@ -110,7 +110,7 @@ const IntegrationContainer = ({
|
||||
variant="icon"
|
||||
tooltip={t("edit_keys")}
|
||||
onClick={() => setShowKeys(!showKeys)}>
|
||||
<Icon.FiEdit />
|
||||
<FiEdit />
|
||||
</Button>
|
||||
</CollapsibleTrigger>
|
||||
</>
|
||||
@@ -224,7 +224,7 @@ const AdminAppsListContainer = () => {
|
||||
if (!apps) {
|
||||
return (
|
||||
<EmptyScreen
|
||||
Icon={Icon.FiAlertCircle}
|
||||
Icon={FiAlertCircle}
|
||||
headline={t("no_available_apps")}
|
||||
description={t("no_available_apps_description")}
|
||||
/>
|
||||
|
||||
@@ -8,11 +8,11 @@ import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogTrigger,
|
||||
Icon,
|
||||
showToast,
|
||||
DialogFooter,
|
||||
DialogClose,
|
||||
} from "@calcom/ui";
|
||||
import { FiTrash, FiAlertCircle } from "@calcom/ui/components/icon";
|
||||
|
||||
export default function DisconnectIntegration({
|
||||
credentialId,
|
||||
@@ -54,7 +54,7 @@ export default function DisconnectIntegration({
|
||||
<DialogTrigger asChild>
|
||||
<Button
|
||||
color={buttonProps?.color || "destructive"}
|
||||
StartIcon={trashIcon ? Icon.FiTrash : undefined}
|
||||
StartIcon={trashIcon ? FiTrash : undefined}
|
||||
size="base"
|
||||
variant={trashIcon && !label ? "icon" : "button"}
|
||||
disabled={isGlobal}
|
||||
@@ -66,7 +66,7 @@ export default function DisconnectIntegration({
|
||||
title={t("remove_app")}
|
||||
description={t("are_you_sure_you_want_to_remove_this_app")}
|
||||
type="confirmation"
|
||||
Icon={Icon.FiAlertCircle}>
|
||||
Icon={FiAlertCircle}>
|
||||
<DialogFooter>
|
||||
<DialogClose onClick={() => setModalOpen(false)} />
|
||||
<DialogClose color="primary" onClick={() => mutation.mutate({ id: credentialId })}>
|
||||
|
||||
@@ -7,7 +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 { Button, Icon } from "@calcom/ui";
|
||||
import { Button } from "@calcom/ui";
|
||||
import { FiLock } from "@calcom/ui/components/icon";
|
||||
|
||||
interface Props {
|
||||
samlTenantID: string;
|
||||
@@ -35,7 +36,7 @@ export function SAMLLogin({ samlTenantID, samlProductID, setErrorMessage }: Prop
|
||||
|
||||
return (
|
||||
<Button
|
||||
StartIcon={Icon.FiLock}
|
||||
StartIcon={FiLock}
|
||||
color="secondary"
|
||||
data-testid="saml"
|
||||
className="flex w-full justify-center"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { AnimatedPopover, Avatar, Icon } from "@calcom/ui";
|
||||
import { AnimatedPopover, Avatar } from "@calcom/ui";
|
||||
import { FiUser } from "@calcom/ui/components/icon";
|
||||
|
||||
import { useFilterQuery } from "../lib/useFilterQuery";
|
||||
|
||||
@@ -19,7 +20,7 @@ export const PeopleFilter = () => {
|
||||
text={userNames && userNames.length > 0 ? `${userNames.join(", ")}` : t("all_users_filter_label")}>
|
||||
<div className="item-center flex px-4 py-[6px] focus-within:bg-gray-100 hover:cursor-pointer hover:bg-gray-50">
|
||||
<div className="flex h-6 w-6 items-center justify-center ltr:mr-2 rtl:ml-2">
|
||||
<Icon.FiUser className="h-5 w-5" />
|
||||
<FiUser className="h-5 w-5" />
|
||||
</div>
|
||||
<label htmlFor="allUsers" className="mr-auto self-center truncate text-sm font-medium text-gray-700">
|
||||
{t("all_users_filter_label")}
|
||||
|
||||
@@ -2,7 +2,8 @@ import { useSession } from "next-auth/react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { AnimatedPopover, Avatar, Icon } from "@calcom/ui";
|
||||
import { AnimatedPopover, Avatar } from "@calcom/ui";
|
||||
import { FiLayers, FiUser } from "@calcom/ui/components/icon";
|
||||
|
||||
import { useFilterQuery } from "../lib/useFilterQuery";
|
||||
|
||||
@@ -22,7 +23,7 @@ export const TeamsMemberFilter = () => {
|
||||
text={teamNames && teamNames.length > 0 ? `${teamNames.join(", ")}` : t("all_bookings_filter_label")}>
|
||||
<div className="item-center flex px-4 py-[6px] focus-within:bg-gray-100 hover:cursor-pointer hover:bg-gray-50">
|
||||
<div className="flex h-6 w-6 items-center justify-center ltr:mr-2 rtl:ml-2">
|
||||
<Icon.FiLayers className="h-5 w-5" />
|
||||
<FiLayers className="h-5 w-5" />
|
||||
</div>
|
||||
<label
|
||||
htmlFor="allBookings"
|
||||
@@ -42,7 +43,7 @@ export const TeamsMemberFilter = () => {
|
||||
</div>
|
||||
<div className="item-center flex px-4 py-[6px] focus-within:bg-gray-100 hover:cursor-pointer hover:bg-gray-50">
|
||||
<div className="flex h-6 w-6 items-center justify-center ltr:mr-2 rtl:ml-2">
|
||||
<Icon.FiUser className="h-5 w-5" />
|
||||
<FiUser className="h-5 w-5" />
|
||||
</div>
|
||||
<label
|
||||
htmlFor="yourBookings"
|
||||
|
||||
@@ -7,7 +7,8 @@ import { daysInMonth, yyyymmdd } from "@calcom/lib/date-fns";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import useMediaQuery from "@calcom/lib/hooks/useMediaQuery";
|
||||
import { weekdayNames } from "@calcom/lib/weekday";
|
||||
import { Button, Icon, SkeletonText } from "@calcom/ui";
|
||||
import { Button, SkeletonText } from "@calcom/ui";
|
||||
import { FiArrowRight } from "@calcom/ui/components/icon";
|
||||
|
||||
export type DatePickerProps = {
|
||||
/** which day of the week to render the calendar. Usually Sunday (=0) or Monday (=1) - default: Sunday */
|
||||
@@ -83,7 +84,7 @@ const NoAvailabilityOverlay = ({
|
||||
<h4 className="mb-4 font-medium text-gray-900 dark:text-white">
|
||||
{t("no_availability_in_month", { month: month })}
|
||||
</h4>
|
||||
<Button onClick={nextMonthButton} color="primary" EndIcon={Icon.FiArrowRight}>
|
||||
<Button onClick={nextMonthButton} color="primary" EndIcon={FiArrowRight}>
|
||||
{t("view_next_month")}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import dayjs from "@calcom/dayjs";
|
||||
import { Icon, Button, ButtonGroup } from "@calcom/ui";
|
||||
import { Button, ButtonGroup } from "@calcom/ui";
|
||||
import { FiChevronLeft, FiChevronRight } from "@calcom/ui/components/icon";
|
||||
|
||||
import { useCalendarStore } from "../../state/store";
|
||||
|
||||
@@ -29,7 +30,7 @@ export function SchedulerHeading() {
|
||||
<ButtonGroup combined>
|
||||
{/* TODO: i18n label with correct view */}
|
||||
<Button
|
||||
StartIcon={Icon.FiChevronLeft}
|
||||
StartIcon={FiChevronLeft}
|
||||
variant="icon"
|
||||
color="secondary"
|
||||
aria-label="Previous Week"
|
||||
@@ -38,7 +39,7 @@ export function SchedulerHeading() {
|
||||
}}
|
||||
/>
|
||||
<Button
|
||||
StartIcon={Icon.FiChevronRight}
|
||||
StartIcon={FiChevronRight}
|
||||
variant="icon"
|
||||
color="secondary"
|
||||
aria-label="Next Week"
|
||||
|
||||
@@ -6,17 +6,8 @@ import { TApiKeys } from "@calcom/ee/api-keys/components/ApiKeyListItem";
|
||||
import LicenseRequired from "@calcom/ee/common/components/v2/LicenseRequired";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import {
|
||||
Button,
|
||||
Icon,
|
||||
DatePicker,
|
||||
DialogFooter,
|
||||
Form,
|
||||
showToast,
|
||||
Switch,
|
||||
TextField,
|
||||
Tooltip,
|
||||
} from "@calcom/ui";
|
||||
import { Button, DatePicker, DialogFooter, Form, showToast, Switch, TextField, Tooltip } from "@calcom/ui";
|
||||
import { ClipboardCopyIcon } from "@calcom/ui/components/icon";
|
||||
|
||||
export default function ApiKeyDialogForm({
|
||||
defaultValues,
|
||||
@@ -83,7 +74,7 @@ export default function ApiKeyDialogForm({
|
||||
}}
|
||||
type="button"
|
||||
className="rounded-l-none py-[19px] text-base ">
|
||||
<Icon.ClipboardCopyIcon className="h-5 w-5 text-gray-100 ltr:mr-2 rtl:ml-2" />
|
||||
<ClipboardCopyIcon className="h-5 w-5 text-gray-100 ltr:mr-2 rtl:ml-2" />
|
||||
{t("copy")}
|
||||
</Button>
|
||||
</Tooltip>
|
||||
|
||||
@@ -10,8 +10,8 @@ import {
|
||||
DropdownMenuContent,
|
||||
DropdownMenuItem,
|
||||
DropdownMenuTrigger,
|
||||
Icon,
|
||||
} from "@calcom/ui";
|
||||
import { FiMoreHorizontal, FiEdit2, FiTrash } from "@calcom/ui/components/icon";
|
||||
|
||||
export type TApiKeys = RouterOutputs["viewer"]["apiKeys"]["list"][number];
|
||||
|
||||
@@ -66,12 +66,12 @@ const ApiKeyListItem = ({
|
||||
<div>
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button type="button" variant="icon" color="secondary" StartIcon={Icon.FiMoreHorizontal} />
|
||||
<Button type="button" variant="icon" color="secondary" StartIcon={FiMoreHorizontal} />
|
||||
</DropdownMenuTrigger>
|
||||
|
||||
<DropdownMenuContent>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem type="button" onClick={onEditClick} StartIcon={Icon.FiEdit2}>
|
||||
<DropdownItem type="button" onClick={onEditClick} StartIcon={FiEdit2}>
|
||||
{t("edit") as string}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -83,7 +83,7 @@ const ApiKeyListItem = ({
|
||||
id: apiKey.id,
|
||||
})
|
||||
}
|
||||
StartIcon={Icon.FiTrash}>
|
||||
StartIcon={FiTrash}>
|
||||
{t("delete") as string}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
|
||||
@@ -9,7 +9,8 @@ import React, { AriaRole, ComponentType, Fragment } from "react";
|
||||
|
||||
import { APP_NAME, SUPPORT_MAIL_ADDRESS } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { EmptyScreen, Icon } from "@calcom/ui";
|
||||
import { EmptyScreen } from "@calcom/ui";
|
||||
import { FiAlertTriangle } from "@calcom/ui/components/icon";
|
||||
|
||||
type LicenseRequiredProps = {
|
||||
as?: keyof JSX.IntrinsicElements | "";
|
||||
@@ -35,7 +36,7 @@ const LicenseRequired = ({ children, as = "", ...rest }: LicenseRequiredProps) =
|
||||
children
|
||||
) : (
|
||||
<EmptyScreen
|
||||
Icon={Icon.FiAlertTriangle}
|
||||
Icon={FiAlertTriangle}
|
||||
headline={t("enterprise_license")}
|
||||
description={
|
||||
<div
|
||||
|
||||
@@ -4,7 +4,8 @@ import React, { AriaRole, ComponentType, Fragment } from "react";
|
||||
|
||||
import { APP_NAME, CONSOLE_URL, SUPPORT_MAIL_ADDRESS } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { EmptyScreen, Icon } from "@calcom/ui";
|
||||
import { EmptyScreen } from "@calcom/ui";
|
||||
import { FiAlertTriangle } from "@calcom/ui/components/icon";
|
||||
|
||||
type LicenseRequiredProps = {
|
||||
as?: keyof JSX.IntrinsicElements | "";
|
||||
@@ -25,7 +26,7 @@ const LicenseRequired = ({ children, as = "", ...rest }: LicenseRequiredProps) =
|
||||
children
|
||||
) : (
|
||||
<EmptyScreen
|
||||
Icon={Icon.FiAlertTriangle}
|
||||
Icon={FiAlertTriangle}
|
||||
headline={t("enterprise_license")}
|
||||
description={
|
||||
<div
|
||||
|
||||
@@ -14,7 +14,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import useTheme from "@calcom/lib/hooks/useTheme";
|
||||
import { getIs24hClockFromLocalStorage, isBrowserLocale24h } from "@calcom/lib/timeFormat";
|
||||
import { localStorage } from "@calcom/lib/webstorage";
|
||||
import { Icon } from "@calcom/ui";
|
||||
import { FiCreditCard } from "@calcom/ui/components/icon";
|
||||
|
||||
import type { PaymentPageProps } from "../pages/payment";
|
||||
import PaymentComponent from "./Payment";
|
||||
@@ -79,7 +79,7 @@ const PaymentPage: FC<PaymentPageProps> = (props) => {
|
||||
aria-labelledby="modal-headline">
|
||||
<div>
|
||||
<div className="mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-green-100">
|
||||
<Icon.FiCreditCard className="h-8 w-8 text-green-600" />
|
||||
<FiCreditCard className="h-8 w-8 text-green-600" />
|
||||
</div>
|
||||
|
||||
<div className="mt-3 text-center sm:mt-5">
|
||||
|
||||
@@ -13,12 +13,12 @@ import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogTrigger,
|
||||
Icon,
|
||||
Label,
|
||||
Meta,
|
||||
showToast,
|
||||
AppSkeletonLoader as SkeletonLoader,
|
||||
} from "@calcom/ui";
|
||||
import { ClipboardCopyIcon, FiDatabase, FiTrash2 } from "@calcom/ui/components/icon";
|
||||
|
||||
export default function SAMLConfiguration({ teamId }: { teamId: number | null }) {
|
||||
const { t } = useLocale();
|
||||
@@ -90,7 +90,7 @@ export default function SAMLConfiguration({ teamId }: { teamId: number | null })
|
||||
<div>
|
||||
<Button
|
||||
color="secondary"
|
||||
StartIcon={Icon.FiDatabase}
|
||||
StartIcon={FiDatabase}
|
||||
onClick={() => {
|
||||
setConfigModal(true);
|
||||
}}>
|
||||
@@ -122,7 +122,7 @@ export default function SAMLConfiguration({ teamId }: { teamId: number | null })
|
||||
}}
|
||||
type="button"
|
||||
className="px-4 text-base">
|
||||
<Icon.ClipboardCopyIcon className="h-5 w-5 text-gray-100" />
|
||||
<ClipboardCopyIcon className="h-5 w-5 text-gray-100" />
|
||||
{t("copy")}
|
||||
</Button>
|
||||
</div>
|
||||
@@ -142,7 +142,7 @@ export default function SAMLConfiguration({ teamId }: { teamId: number | null })
|
||||
}}
|
||||
type="button"
|
||||
className="px-4 text-base">
|
||||
<Icon.ClipboardCopyIcon className="h-5 w-5 text-gray-100" />
|
||||
<ClipboardCopyIcon className="h-5 w-5 text-gray-100" />
|
||||
{t("copy")}
|
||||
</Button>
|
||||
</div>
|
||||
@@ -157,7 +157,7 @@ export default function SAMLConfiguration({ teamId }: { teamId: number | null })
|
||||
<div className="mb-3 text-base font-semibold">{t("danger_zone")}</div>
|
||||
<Dialog>
|
||||
<DialogTrigger asChild>
|
||||
<Button color="destructive" className="border" StartIcon={Icon.FiTrash2}>
|
||||
<Button color="destructive" className="border" StartIcon={FiTrash2}>
|
||||
{t("delete_saml_configuration")}
|
||||
</Button>
|
||||
</DialogTrigger>
|
||||
|
||||
@@ -4,7 +4,8 @@ import { useChat } from "react-live-chat-loader";
|
||||
import classNames from "@calcom/lib/classNames";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button, Icon, showToast } from "@calcom/ui";
|
||||
import { Button, showToast } from "@calcom/ui";
|
||||
import { FiExternalLink, FiAlertTriangle } from "@calcom/ui/components/icon";
|
||||
|
||||
import ContactMenuItem from "./ContactMenuItem";
|
||||
|
||||
@@ -48,7 +49,7 @@ export default function HelpMenuItem({ onHelpItemSelect }: HelpMenuItemProps) {
|
||||
className="flex w-full px-5 py-2 pr-4 text-sm font-medium text-gray-700 hover:bg-gray-100 hover:text-gray-900"
|
||||
rel="noreferrer">
|
||||
{t("support_documentation")}
|
||||
<Icon.FiExternalLink
|
||||
<FiExternalLink
|
||||
className={classNames(
|
||||
"text-gray-400 group-hover:text-gray-500",
|
||||
"ml-1 mt-px h-4 w-4 flex-shrink-0 ltr:mr-3"
|
||||
@@ -62,7 +63,7 @@ export default function HelpMenuItem({ onHelpItemSelect }: HelpMenuItemProps) {
|
||||
className="flex w-full px-5 py-2 pr-4 text-sm font-medium text-gray-700 hover:bg-gray-100 hover:text-gray-900"
|
||||
rel="noreferrer">
|
||||
{t("developer_documentation")}
|
||||
<Icon.FiExternalLink
|
||||
<FiExternalLink
|
||||
className={classNames(
|
||||
"text-gray-400 group-hover:text-gray-500",
|
||||
"ml-1 mt-px h-4 w-4 flex-shrink-0 ltr:mr-3"
|
||||
@@ -186,7 +187,7 @@ export default function HelpMenuItem({ onHelpItemSelect }: HelpMenuItemProps) {
|
||||
{mutation.isError && (
|
||||
<div className="mb-4 flex bg-red-100 p-4 text-sm text-red-700">
|
||||
<div className="flex-shrink-0">
|
||||
<Icon.FiAlertTriangle className="h-5 w-5" />
|
||||
<FiAlertTriangle className="h-5 w-5" />
|
||||
</div>
|
||||
<div className="ml-3 flex-grow">
|
||||
<p className="font-medium">{t("feedback_error")}</p>
|
||||
|
||||
@@ -8,7 +8,8 @@ import { classNames } from "@calcom/lib";
|
||||
import { WEBAPP_URL, APP_NAME } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { RouterOutputs, trpc } from "@calcom/trpc/react";
|
||||
import { Avatar, Badge, Button, Icon, showToast, SkeletonContainer, SkeletonText } from "@calcom/ui";
|
||||
import { Avatar, Badge, Button, showToast, SkeletonContainer, SkeletonText } from "@calcom/ui";
|
||||
import { FiPlus, FiArrowRight, FiTrash2 } from "@calcom/ui/components/icon";
|
||||
|
||||
const querySchema = z.object({
|
||||
id: z.string().transform((val) => parseInt(val)),
|
||||
@@ -70,7 +71,7 @@ export const AddNewTeamMembersForm = ({
|
||||
<Button
|
||||
color="secondary"
|
||||
data-testid="new-member-button"
|
||||
StartIcon={Icon.FiPlus}
|
||||
StartIcon={FiPlus}
|
||||
onClick={() => setMemberInviteModal(true)}
|
||||
className="mt-6 w-full justify-center">
|
||||
{t("add_team_member")}
|
||||
@@ -92,7 +93,7 @@ export const AddNewTeamMembersForm = ({
|
||||
/>
|
||||
<hr className="my-6 border-neutral-200" />
|
||||
<Button
|
||||
EndIcon={Icon.FiArrowRight}
|
||||
EndIcon={FiArrowRight}
|
||||
className="mt-6 w-full justify-center"
|
||||
disabled={publishTeamMutation.isLoading}
|
||||
onClick={() => {
|
||||
@@ -169,7 +170,7 @@ const PendingMemberItem = (props: { member: TeamMember; index: number; teamId: n
|
||||
{member.role !== "OWNER" && (
|
||||
<Button
|
||||
data-testid="remove-member-button"
|
||||
StartIcon={Icon.FiTrash2}
|
||||
StartIcon={FiTrash2}
|
||||
variant="icon"
|
||||
color="secondary"
|
||||
className="h-[36px] w-[36px]"
|
||||
|
||||
@@ -6,7 +6,8 @@ import { getSafeRedirectUrl } from "@calcom/lib/getSafeRedirectUrl";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import slugify from "@calcom/lib/slugify";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Avatar, Button, Form, Icon, ImageUploader, TextField } from "@calcom/ui";
|
||||
import { Avatar, Button, Form, ImageUploader, TextField } from "@calcom/ui";
|
||||
import { FiArrowRight } from "@calcom/ui/components/icon";
|
||||
|
||||
import { NewTeamFormValues } from "../lib/types";
|
||||
|
||||
@@ -140,7 +141,7 @@ export const CreateANewTeamForm = () => {
|
||||
disabled={createTeamMutation.isLoading}
|
||||
color="primary"
|
||||
type="submit"
|
||||
EndIcon={Icon.FiArrowRight}
|
||||
EndIcon={FiArrowRight}
|
||||
className="w-full justify-center">
|
||||
{t("continue")}
|
||||
</Button>
|
||||
|
||||
@@ -22,10 +22,17 @@ import {
|
||||
DropdownMenuItem,
|
||||
DropdownMenuSeparator,
|
||||
DropdownMenuTrigger,
|
||||
Icon,
|
||||
showToast,
|
||||
Tooltip,
|
||||
} from "@calcom/ui";
|
||||
import {
|
||||
FiClock,
|
||||
FiExternalLink,
|
||||
FiMoreHorizontal,
|
||||
FiEdit2,
|
||||
FiLock,
|
||||
FiTrash,
|
||||
} from "@calcom/ui/components/icon";
|
||||
|
||||
import MemberChangeRoleModal from "./MemberChangeRoleModal";
|
||||
import TeamPill, { TeamRole } from "./TeamPill";
|
||||
@@ -134,7 +141,7 @@ export default function MemberListItem(props: Props) {
|
||||
onClick={() => (props.member.accepted ? setShowTeamAvailabilityModal(true) : null)}
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiClock}
|
||||
StartIcon={FiClock}
|
||||
/>
|
||||
</Tooltip>
|
||||
<Tooltip content={t("view_public_page")}>
|
||||
@@ -144,7 +151,7 @@ export default function MemberListItem(props: Props) {
|
||||
color="secondary"
|
||||
className={classNames(!editMode ? "rounded-r-md" : "")}
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiExternalLink}
|
||||
StartIcon={FiExternalLink}
|
||||
/>
|
||||
</Tooltip>
|
||||
{editMode && (
|
||||
@@ -154,7 +161,7 @@ export default function MemberListItem(props: Props) {
|
||||
className="radix-state-open:rounded-r-md"
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiMoreHorizontal}
|
||||
StartIcon={FiMoreHorizontal}
|
||||
/>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent>
|
||||
@@ -162,7 +169,7 @@ export default function MemberListItem(props: Props) {
|
||||
<DropdownItem
|
||||
type="button"
|
||||
onClick={() => setShowChangeMemberRoleModal(true)}
|
||||
StartIcon={Icon.FiEdit2}>
|
||||
StartIcon={FiEdit2}>
|
||||
{t("edit")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -172,7 +179,7 @@ export default function MemberListItem(props: Props) {
|
||||
<DropdownItem
|
||||
type="button"
|
||||
onClick={() => setShowImpersonateModal(true)}
|
||||
StartIcon={Icon.FiLock}>
|
||||
StartIcon={FiLock}>
|
||||
{t("impersonate")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -184,7 +191,7 @@ export default function MemberListItem(props: Props) {
|
||||
type="button"
|
||||
onClick={() => setShowDeleteModal(true)}
|
||||
color="destructive"
|
||||
StartIcon={Icon.FiTrash}>
|
||||
StartIcon={FiTrash}>
|
||||
{t("delete")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -195,18 +202,18 @@ export default function MemberListItem(props: Props) {
|
||||
<div className="flex md:hidden">
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button type="button" variant="icon" color="minimal" StartIcon={Icon.FiMoreHorizontal} />
|
||||
<Button type="button" variant="icon" color="minimal" StartIcon={FiMoreHorizontal} />
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent>
|
||||
{props.member.accepted && (
|
||||
<DropdownMenuItem className="outline-none">
|
||||
<DropdownItem type="button" StartIcon={Icon.FiClock}>
|
||||
<DropdownItem type="button" StartIcon={FiClock}>
|
||||
{t("team_view_user_availability")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
)}
|
||||
<DropdownMenuItem className="outline-none">
|
||||
<DropdownItem type="button" StartIcon={Icon.FiExternalLink}>
|
||||
<DropdownItem type="button" StartIcon={FiExternalLink}>
|
||||
{t("view_public_page")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -216,7 +223,7 @@ export default function MemberListItem(props: Props) {
|
||||
<DropdownItem
|
||||
type="button"
|
||||
onClick={() => setShowChangeMemberRoleModal(true)}
|
||||
StartIcon={Icon.FiEdit2}>
|
||||
StartIcon={FiEdit2}>
|
||||
{t("edit")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -225,7 +232,7 @@ export default function MemberListItem(props: Props) {
|
||||
type="button"
|
||||
color="destructive"
|
||||
onClick={() => setShowDeleteModal(true)}
|
||||
StartIcon={Icon.FiTrash}>
|
||||
StartIcon={FiTrash}>
|
||||
{t("delete")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
|
||||
@@ -12,8 +12,8 @@ import {
|
||||
DropdownMenuItem,
|
||||
DropdownItem,
|
||||
DropdownMenuTrigger,
|
||||
Icon,
|
||||
} from "@calcom/ui";
|
||||
import { FiSlash, FiCheck, FiMoreHorizontal, FiX } from "@calcom/ui/components/icon";
|
||||
|
||||
interface Props {
|
||||
team: {
|
||||
@@ -93,7 +93,7 @@ export default function TeamInviteListItem(props: Props) {
|
||||
variant="icon"
|
||||
color="secondary"
|
||||
onClick={declineInvite}
|
||||
StartIcon={Icon.FiSlash}
|
||||
StartIcon={FiSlash}
|
||||
/>
|
||||
<Button
|
||||
type="button"
|
||||
@@ -101,26 +101,22 @@ export default function TeamInviteListItem(props: Props) {
|
||||
variant="icon"
|
||||
color="secondary"
|
||||
onClick={acceptInvite}
|
||||
StartIcon={Icon.FiCheck}
|
||||
StartIcon={FiCheck}
|
||||
/>
|
||||
</div>
|
||||
<div className="block sm:hidden">
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button type="button" color="minimal" variant="icon" StartIcon={Icon.FiMoreHorizontal} />
|
||||
<Button type="button" color="minimal" variant="icon" StartIcon={FiMoreHorizontal} />
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem type="button" StartIcon={Icon.FiCheck} onClick={acceptInvite}>
|
||||
<DropdownItem type="button" StartIcon={FiCheck} onClick={acceptInvite}>
|
||||
{t("accept")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
color="destructive"
|
||||
type="button"
|
||||
StartIcon={Icon.FiX}
|
||||
onClick={declineInvite}>
|
||||
<DropdownItem color="destructive" type="button" StartIcon={FiX} onClick={declineInvite}>
|
||||
{t("reject")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
|
||||
@@ -21,10 +21,21 @@ import {
|
||||
DropdownMenuItem,
|
||||
DropdownMenuSeparator,
|
||||
DropdownMenuTrigger,
|
||||
Icon,
|
||||
showToast,
|
||||
Tooltip,
|
||||
} from "@calcom/ui";
|
||||
import {
|
||||
FiMoreHorizontal,
|
||||
FiCheck,
|
||||
FiX,
|
||||
FiLink,
|
||||
FiEdit2,
|
||||
FiExternalLink,
|
||||
FiTrash,
|
||||
FiLogOut,
|
||||
FiGlobe,
|
||||
FiSend,
|
||||
} from "@calcom/ui/components/icon";
|
||||
|
||||
import { TeamRole } from "./TeamPill";
|
||||
|
||||
@@ -144,20 +155,16 @@ export default function TeamListItem(props: Props) {
|
||||
<div className="block sm:hidden">
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button type="button" color="minimal" variant="icon" StartIcon={Icon.FiMoreHorizontal} />
|
||||
<Button type="button" color="minimal" variant="icon" StartIcon={FiMoreHorizontal} />
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem type="button" StartIcon={Icon.FiCheck} onClick={acceptInvite}>
|
||||
<DropdownItem type="button" StartIcon={FiCheck} onClick={acceptInvite}>
|
||||
{t("accept")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
color="destructive"
|
||||
type="button"
|
||||
StartIcon={Icon.FiX}
|
||||
onClick={declineInvite}>
|
||||
<DropdownItem color="destructive" type="button" StartIcon={FiX} onClick={declineInvite}>
|
||||
{t("reject")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -180,7 +187,7 @@ export default function TeamListItem(props: Props) {
|
||||
showToast(t("link_copied"), "success");
|
||||
}}
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiLink}
|
||||
StartIcon={FiLink}
|
||||
/>
|
||||
</Tooltip>
|
||||
)}
|
||||
@@ -191,7 +198,7 @@ export default function TeamListItem(props: Props) {
|
||||
type="button"
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiMoreHorizontal}
|
||||
StartIcon={FiMoreHorizontal}
|
||||
/>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent hidden={hideDropdown}>
|
||||
@@ -200,7 +207,7 @@ export default function TeamListItem(props: Props) {
|
||||
<DropdownItem
|
||||
type="button"
|
||||
href={"/settings/teams/" + team.id + "/profile"}
|
||||
StartIcon={Icon.FiEdit2}>
|
||||
StartIcon={FiEdit2}>
|
||||
{t("edit_team") as string}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -212,7 +219,7 @@ export default function TeamListItem(props: Props) {
|
||||
type="button"
|
||||
target="_blank"
|
||||
href={`${process.env.NEXT_PUBLIC_WEBSITE_URL}/team/${team.slug}`}
|
||||
StartIcon={Icon.FiExternalLink}>
|
||||
StartIcon={FiExternalLink}>
|
||||
{t("preview_team") as string}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -223,7 +230,7 @@ export default function TeamListItem(props: Props) {
|
||||
onClick={() => {
|
||||
setOpenMemberInvitationModal(true);
|
||||
}}
|
||||
StartIcon={Icon.FiSend}>
|
||||
StartIcon={FiSend}>
|
||||
{t("invite_team_member") as string}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -235,7 +242,7 @@ export default function TeamListItem(props: Props) {
|
||||
<DropdownItem
|
||||
color="destructive"
|
||||
type="button"
|
||||
StartIcon={Icon.FiTrash}
|
||||
StartIcon={FiTrash}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
}}>
|
||||
@@ -264,7 +271,7 @@ export default function TeamListItem(props: Props) {
|
||||
type="button"
|
||||
color="destructive"
|
||||
size="lg"
|
||||
StartIcon={Icon.FiLogOut}
|
||||
StartIcon={FiLogOut}
|
||||
className="w-full rounded-none"
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
@@ -312,7 +319,7 @@ const TeamPublishButton = ({ teamId }: { teamId: number }) => {
|
||||
onClick={() => {
|
||||
publishTeamMutation.mutate({ teamId });
|
||||
}}
|
||||
StartIcon={Icon.FiGlobe}>
|
||||
StartIcon={FiGlobe}>
|
||||
{t("team_publish")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
|
||||
@@ -4,7 +4,8 @@ import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { APP_NAME } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Alert, Button, ButtonGroup, Icon } from "@calcom/ui";
|
||||
import { Alert, Button, ButtonGroup } from "@calcom/ui";
|
||||
import { FiUsers, FiRefreshCcw, FiUserPlus, FiMail, FiVideo, FiEyeOff } from "@calcom/ui/components/icon";
|
||||
|
||||
import { UpgradeTip } from "../../../tips";
|
||||
import SkeletonLoaderTeamList from "./SkeletonloaderTeamList";
|
||||
@@ -24,32 +25,32 @@ export function TeamsListing() {
|
||||
|
||||
const features = [
|
||||
{
|
||||
icon: <Icon.FiUsers className="h-5 w-5 text-red-500" />,
|
||||
icon: <FiUsers className="h-5 w-5 text-red-500" />,
|
||||
title: t("collective_scheduling"),
|
||||
description: t("make_it_easy_to_book"),
|
||||
},
|
||||
{
|
||||
icon: <Icon.FiRefreshCcw className="h-5 w-5 text-blue-500" />,
|
||||
icon: <FiRefreshCcw className="h-5 w-5 text-blue-500" />,
|
||||
title: t("round_robin"),
|
||||
description: t("find_the_best_person"),
|
||||
},
|
||||
{
|
||||
icon: <Icon.FiUserPlus className="h-5 w-5 text-green-500" />,
|
||||
icon: <FiUserPlus className="h-5 w-5 text-green-500" />,
|
||||
title: t("fixed_round_robin"),
|
||||
description: t("add_one_fixed_attendee"),
|
||||
},
|
||||
{
|
||||
icon: <Icon.FiMail className="h-5 w-5 text-orange-500" />,
|
||||
icon: <FiMail className="h-5 w-5 text-orange-500" />,
|
||||
title: t("sms_attendee_action"),
|
||||
description: t("make_it_easy_to_book"),
|
||||
},
|
||||
{
|
||||
icon: <Icon.FiVideo className="h-5 w-5 text-purple-500" />,
|
||||
icon: <FiVideo className="h-5 w-5 text-purple-500" />,
|
||||
title: "Cal Video" + " " + t("recordings_title"),
|
||||
description: t("upgrade_to_access_recordings_description"),
|
||||
},
|
||||
{
|
||||
icon: <Icon.FiEyeOff className="h-5 w-5 text-indigo-500" />,
|
||||
icon: <FiEyeOff className="h-5 w-5 text-indigo-500" />,
|
||||
title: t("disable_cal_branding", { appName: APP_NAME }),
|
||||
description: t("disable_cal_branding_description", { appName: APP_NAME }),
|
||||
},
|
||||
|
||||
@@ -2,7 +2,8 @@ import { useRouter } from "next/router";
|
||||
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button, Icon, Meta } from "@calcom/ui";
|
||||
import { Button, Meta } from "@calcom/ui";
|
||||
import { FiExternalLink } from "@calcom/ui/components/icon";
|
||||
|
||||
import { getLayout } from "../../../settings/layouts/SettingsLayout";
|
||||
|
||||
@@ -20,7 +21,7 @@ const BillingView = () => {
|
||||
<p>{t("billing_manage_details_description")}</p>
|
||||
</div>
|
||||
<div className="flex-shrink-0 pt-3 sm:ml-auto sm:pt-0 sm:pl-3">
|
||||
<Button color="primary" href={billingHref} target="_blank" EndIcon={Icon.FiExternalLink}>
|
||||
<Button color="primary" href={billingHref} target="_blank" EndIcon={FiExternalLink}>
|
||||
{t("billing_portal")}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,8 @@ import { useState } from "react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button, Icon, Meta, showToast } from "@calcom/ui";
|
||||
import { Button, Meta, showToast } from "@calcom/ui";
|
||||
import { FiPlus } from "@calcom/ui/components/icon";
|
||||
|
||||
import { getLayout } from "../../../settings/layouts/SettingsLayout";
|
||||
import DisableTeamImpersonation from "../components/DisableTeamImpersonation";
|
||||
@@ -55,7 +56,7 @@ const MembersView = () => {
|
||||
<Button
|
||||
type="button"
|
||||
color="primary"
|
||||
StartIcon={Icon.FiPlus}
|
||||
StartIcon={FiPlus}
|
||||
className="ml-auto"
|
||||
onClick={() => setShowMemberInvitationModal(true)}
|
||||
data-testid="new-member-button">
|
||||
|
||||
@@ -19,7 +19,6 @@ import {
|
||||
Dialog,
|
||||
DialogTrigger,
|
||||
Form,
|
||||
Icon,
|
||||
ImageUploader,
|
||||
Label,
|
||||
LinkIconButton,
|
||||
@@ -28,6 +27,7 @@ import {
|
||||
TextArea,
|
||||
TextField,
|
||||
} from "@calcom/ui";
|
||||
import { FiExternalLink, FiLink, FiTrash2, FiLogOut } from "@calcom/ui/components/icon";
|
||||
|
||||
import { getLayout } from "../../../settings/layouts/SettingsLayout";
|
||||
|
||||
@@ -264,10 +264,10 @@ const ProfileView = () => {
|
||||
</div>
|
||||
<div className="">
|
||||
<Link href={permalink} passHref={true} target="_blank">
|
||||
<LinkIconButton Icon={Icon.FiExternalLink}>{t("preview")}</LinkIconButton>
|
||||
<LinkIconButton Icon={FiExternalLink}>{t("preview")}</LinkIconButton>
|
||||
</Link>
|
||||
<LinkIconButton
|
||||
Icon={Icon.FiLink}
|
||||
Icon={FiLink}
|
||||
onClick={() => {
|
||||
navigator.clipboard.writeText(permalink);
|
||||
showToast("Copied to clipboard", "success");
|
||||
@@ -283,7 +283,7 @@ const ProfileView = () => {
|
||||
{team?.membership.role === "OWNER" ? (
|
||||
<Dialog>
|
||||
<DialogTrigger asChild>
|
||||
<Button color="destructive" className="border" StartIcon={Icon.FiTrash2}>
|
||||
<Button color="destructive" className="border" StartIcon={FiTrash2}>
|
||||
{t("disband_team")}
|
||||
</Button>
|
||||
</DialogTrigger>
|
||||
@@ -298,7 +298,7 @@ const ProfileView = () => {
|
||||
) : (
|
||||
<Dialog>
|
||||
<DialogTrigger asChild>
|
||||
<Button color="destructive" className="border" StartIcon={Icon.FiLogOut}>
|
||||
<Button color="destructive" className="border" StartIcon={FiLogOut}>
|
||||
{t("leave_team")}
|
||||
</Button>
|
||||
</DialogTrigger>
|
||||
|
||||
@@ -15,7 +15,8 @@ import {
|
||||
DialogHeader,
|
||||
UpgradeTeamsBadge,
|
||||
} from "@calcom/ui";
|
||||
import { Button, showToast, Icon } from "@calcom/ui";
|
||||
import { Button, showToast } from "@calcom/ui";
|
||||
import { FiDownload } from "@calcom/ui/components/icon";
|
||||
|
||||
import RecordingListSkeleton from "./components/RecordingListSkeleton";
|
||||
|
||||
@@ -128,7 +129,7 @@ export const ViewRecordingsDialog = (props: IViewRecordingsDialog) => {
|
||||
</div>
|
||||
{hasTeamPlan ? (
|
||||
<Button
|
||||
StartIcon={Icon.FiDownload}
|
||||
StartIcon={FiDownload}
|
||||
className="ml-4 lg:ml-0"
|
||||
loading={downloadingRecordingId === recording.id}
|
||||
onClick={() => handleDownloadClick(recording.id)}>
|
||||
|
||||
@@ -2,7 +2,8 @@ import { useRouter } from "next/router";
|
||||
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Icon, Button } from "@calcom/ui";
|
||||
import { Button } from "@calcom/ui";
|
||||
import { FiUsers } from "@calcom/ui/components/icon";
|
||||
|
||||
export default function UpgradeRecordingBanner() {
|
||||
const { t } = useLocale();
|
||||
@@ -10,7 +11,7 @@ export default function UpgradeRecordingBanner() {
|
||||
|
||||
return (
|
||||
<div className="flex items-start gap-2 rounded-md bg-gray-100 p-4">
|
||||
<Icon.FiUsers className="dark:bg-gray-90 inline-block h-5 w-5" />
|
||||
<FiUsers className="dark:bg-gray-90 inline-block h-5 w-5" />
|
||||
<div className="flex flex-col gap-4">
|
||||
<div className="flex flex-col gap-2">
|
||||
<h2 className="text-sm font-semibold">{t("upgrade_to_access_recordings_title")}</h2>
|
||||
|
||||
@@ -2,7 +2,8 @@ import React from "react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { SVGComponent } from "@calcom/types/SVGComponent";
|
||||
import { Button, Icon } from "@calcom/ui";
|
||||
import { Button } from "@calcom/ui";
|
||||
import { FiSmartphone, FiMail, FiPlus } from "@calcom/ui/components/icon";
|
||||
|
||||
type WorkflowExampleType = {
|
||||
Icon: SVGComponent;
|
||||
@@ -50,12 +51,12 @@ export default function EmptyScreen({
|
||||
const { t } = useLocale();
|
||||
|
||||
const workflowsExamples = [
|
||||
{ icon: Icon.FiSmartphone, text: t("workflow_example_1") },
|
||||
{ icon: Icon.FiSmartphone, text: t("workflow_example_2") },
|
||||
{ icon: Icon.FiMail, text: t("workflow_example_3") },
|
||||
{ icon: Icon.FiMail, text: t("workflow_example_4") },
|
||||
{ icon: Icon.FiMail, text: t("workflow_example_5") },
|
||||
{ icon: Icon.FiSmartphone, text: t("workflow_example_6") },
|
||||
{ icon: FiSmartphone, text: t("workflow_example_1") },
|
||||
{ icon: FiSmartphone, text: t("workflow_example_2") },
|
||||
{ icon: FiMail, text: t("workflow_example_3") },
|
||||
{ icon: FiMail, text: t("workflow_example_4") },
|
||||
{ icon: FiMail, text: t("workflow_example_5") },
|
||||
{ icon: FiSmartphone, text: t("workflow_example_6") },
|
||||
];
|
||||
// new workflow example when 'after meetings ends' trigger is implemented: Send custom thank you email to attendee after event (FiSmile icon),
|
||||
|
||||
@@ -73,7 +74,7 @@ export default function EmptyScreen({
|
||||
{buttonOnClick && buttonText && (
|
||||
<Button
|
||||
type="button"
|
||||
StartIcon={Icon.FiPlus}
|
||||
StartIcon={FiPlus}
|
||||
onClick={(e) => buttonOnClick(e)}
|
||||
loading={isLoading}
|
||||
className="mx-auto mt-8">
|
||||
|
||||
@@ -7,7 +7,8 @@ import classNames from "@calcom/lib/classNames";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { HttpError } from "@calcom/lib/http-error";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button, EmptyScreen, Icon, showToast, Switch, Tooltip } from "@calcom/ui";
|
||||
import { Button, EmptyScreen, showToast, Switch, Tooltip } from "@calcom/ui";
|
||||
import { FiExternalLink, FiZap } from "@calcom/ui/components/icon";
|
||||
|
||||
import LicenseRequired from "../../common/components/v2/LicenseRequired";
|
||||
import { getActionIcon } from "../lib/getActionIcon";
|
||||
@@ -125,7 +126,7 @@ const WorkflowListItem = (props: ItemProps) => {
|
||||
<Link href={`/workflows/${workflow.id}`} passHref={true} target="_blank">
|
||||
<Button type="button" color="minimal" className="mr-4">
|
||||
<div className="hidden ltr:mr-2 rtl:ml-2 sm:block">{t("edit")}</div>
|
||||
<Icon.FiExternalLink className="-mt-[2px] h-4 w-4 stroke-2 text-gray-600" />
|
||||
<FiExternalLink className="-mt-[2px] h-4 w-4 stroke-2 text-gray-600" />
|
||||
</Button>
|
||||
</Link>
|
||||
</div>
|
||||
@@ -204,7 +205,7 @@ function EventWorkflowsTab(props: Props) {
|
||||
) : (
|
||||
<div className="pt-4 before:border-0">
|
||||
<EmptyScreen
|
||||
Icon={Icon.FiZap}
|
||||
Icon={FiZap}
|
||||
headline={t("workflows")}
|
||||
description={t("no_workflows_description")}
|
||||
buttonRaw={
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Icon, SkeletonText } from "@calcom/ui";
|
||||
import { SkeletonText } from "@calcom/ui";
|
||||
import { FiBell, FiLink } from "@calcom/ui/components/icon";
|
||||
|
||||
function SkeletonLoader() {
|
||||
return (
|
||||
@@ -20,9 +21,9 @@ function SkeletonItem() {
|
||||
<div className="flex flex-col space-y-2">
|
||||
<SkeletonText className="h-4 w-16 sm:w-24" />
|
||||
<div className="flex">
|
||||
<Icon.FiBell className="mt-0.5 mr-1.5 inline h-4 w-4 text-gray-200" />
|
||||
<FiBell className="mt-0.5 mr-1.5 inline h-4 w-4 text-gray-200" />
|
||||
<SkeletonText className="h-4 w-16 ltr:mr-2 rtl:ml-2 sm:w-28" />
|
||||
<Icon.FiLink className="mt-0.5 mr-1.5 inline h-4 w-4 text-gray-200" />
|
||||
<FiLink className="mt-0.5 mr-1.5 inline h-4 w-4 text-gray-200" />
|
||||
<SkeletonText className="h-4 w-28 sm:w-36" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -8,9 +8,9 @@ import {
|
||||
DropdownMenuItem,
|
||||
DropdownItem,
|
||||
DropdownMenuTrigger,
|
||||
Icon,
|
||||
TextField,
|
||||
} from "@calcom/ui";
|
||||
import { FiChevronDown } from "@calcom/ui/components/icon";
|
||||
|
||||
import { getWorkflowTimeUnitOptions } from "../lib/getOptions";
|
||||
import type { FormValues } from "../pages/workflow";
|
||||
@@ -44,7 +44,7 @@ export const TimeTimeUnitInput = (props: Props) => {
|
||||
{timeUnit ? t(`${timeUnit.toLowerCase()}_timeUnit`) : "undefined"}{" "}
|
||||
</div>
|
||||
<div className="w-1/4 pt-1">
|
||||
<Icon.FiChevronDown />
|
||||
<FiChevronDown />
|
||||
</div>
|
||||
</button>
|
||||
</DropdownMenuTrigger>
|
||||
|
||||
@@ -7,7 +7,8 @@ import { SENDER_ID, SENDER_NAME } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import type { MultiSelectCheckboxesOptionType as Option } from "@calcom/ui";
|
||||
import { Button, Icon, Label, MultiSelectCheckboxes, TextField } from "@calcom/ui";
|
||||
import { Button, Label, MultiSelectCheckboxes, TextField } from "@calcom/ui";
|
||||
import { FiArrowDown, FiTrash2 } from "@calcom/ui/components/icon";
|
||||
|
||||
import { isSMSAction } from "../lib/isSMSAction";
|
||||
import type { FormValues } from "../pages/workflow";
|
||||
@@ -115,7 +116,7 @@ export default function WorkflowDetailsPage(props: Props) {
|
||||
<div className="my-7 border-transparent md:border-t md:border-gray-200" />
|
||||
<Button
|
||||
type="button"
|
||||
StartIcon={Icon.FiTrash2}
|
||||
StartIcon={FiTrash2}
|
||||
color="destructive"
|
||||
className="border"
|
||||
onClick={() => setDeleteDialogOpen(true)}>
|
||||
@@ -147,7 +148,7 @@ export default function WorkflowDetailsPage(props: Props) {
|
||||
</>
|
||||
)}
|
||||
<div className="my-3 flex justify-center">
|
||||
<Icon.FiArrowDown className="stroke-[1.5px] text-3xl text-gray-500" />
|
||||
<FiArrowDown className="stroke-[1.5px] text-3xl text-gray-500" />
|
||||
</div>
|
||||
<div className="flex justify-center">
|
||||
<Button
|
||||
|
||||
@@ -15,10 +15,10 @@ import {
|
||||
DropdownMenuItem,
|
||||
DropdownItem,
|
||||
DropdownMenuTrigger,
|
||||
Icon,
|
||||
showToast,
|
||||
Tooltip,
|
||||
} from "@calcom/ui";
|
||||
import { FiEdit2, FiLink, FiMoreHorizontal, FiTrash2, FiZap } from "@calcom/ui/components/icon";
|
||||
|
||||
import { getActionIcon } from "../lib/getActionIcon";
|
||||
import { DeleteDialog } from "./DeleteDialog";
|
||||
@@ -49,7 +49,7 @@ const CreateEmptyWorkflowView = () => {
|
||||
<EmptyScreen
|
||||
buttonText={t("create_workflow")}
|
||||
buttonOnClick={() => createMutation.mutate()}
|
||||
IconHeading={Icon.FiZap}
|
||||
IconHeading={FiZap}
|
||||
headline={t("workflows")}
|
||||
description={t("no_workflows_description")}
|
||||
isLoading={createMutation.isLoading}
|
||||
@@ -122,13 +122,13 @@ export default function WorkflowListPage({ workflows }: Props) {
|
||||
<p key={key}>{activeOn.eventType.title}</p>
|
||||
))}>
|
||||
<div>
|
||||
<Icon.FiLink className="mr-1.5 inline h-3 w-3" aria-hidden="true" />
|
||||
<FiLink className="mr-1.5 inline h-3 w-3" aria-hidden="true" />
|
||||
{t("active_on_event_types", { count: workflow.activeOn.length })}
|
||||
</div>
|
||||
</Tooltip>
|
||||
) : (
|
||||
<div>
|
||||
<Icon.FiLink className="mr-1.5 inline h-3 w-3" aria-hidden="true" />
|
||||
<FiLink className="mr-1.5 inline h-3 w-3" aria-hidden="true" />
|
||||
{t("no_active_event_types")}
|
||||
</div>
|
||||
)}
|
||||
@@ -144,7 +144,7 @@ export default function WorkflowListPage({ workflows }: Props) {
|
||||
type="button"
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiEdit2}
|
||||
StartIcon={FiEdit2}
|
||||
onClick={async () => await router.replace("/workflows/" + workflow.id)}
|
||||
/>
|
||||
</Tooltip>
|
||||
@@ -156,7 +156,7 @@ export default function WorkflowListPage({ workflows }: Props) {
|
||||
}}
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiTrash2}
|
||||
StartIcon={FiTrash2}
|
||||
/>
|
||||
</Tooltip>
|
||||
</ButtonGroup>
|
||||
@@ -164,18 +164,13 @@ export default function WorkflowListPage({ workflows }: Props) {
|
||||
<div className="block sm:hidden">
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button
|
||||
type="button"
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiMoreHorizontal}
|
||||
/>
|
||||
<Button type="button" color="minimal" variant="icon" StartIcon={FiMoreHorizontal} />
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
type="button"
|
||||
StartIcon={Icon.FiEdit2}
|
||||
StartIcon={FiEdit2}
|
||||
onClick={async () => await router.replace("/workflows/" + workflow.id)}>
|
||||
{t("edit")}
|
||||
</DropdownItem>
|
||||
@@ -184,7 +179,7 @@ export default function WorkflowListPage({ workflows }: Props) {
|
||||
<DropdownItem
|
||||
type="button"
|
||||
color="destructive"
|
||||
StartIcon={Icon.FiTrash2}
|
||||
StartIcon={FiTrash2}
|
||||
onClick={() => {
|
||||
setDeleteDialogOpen(true);
|
||||
setwWorkflowToDeleteId(workflow.id);
|
||||
|
||||
@@ -14,12 +14,11 @@ import { SENDER_ID } from "@calcom/lib/constants";
|
||||
import { SENDER_NAME } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { HttpError } from "@calcom/lib/http-error";
|
||||
import { trpc, TRPCClientError } from "@calcom/trpc/react";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import {
|
||||
Badge,
|
||||
Button,
|
||||
Checkbox,
|
||||
ConfirmationDialogContent,
|
||||
Dialog,
|
||||
DialogClose,
|
||||
DialogContent,
|
||||
@@ -29,7 +28,6 @@ import {
|
||||
DropdownItem,
|
||||
DropdownMenuTrigger,
|
||||
EmailField,
|
||||
Icon,
|
||||
Label,
|
||||
PhoneInput,
|
||||
Select,
|
||||
@@ -40,6 +38,7 @@ import {
|
||||
AddVariablesDropdown,
|
||||
Input,
|
||||
} from "@calcom/ui";
|
||||
import { FiArrowDown, FiMoreHorizontal, FiTrash2, FiHelpCircle } from "@calcom/ui/components/icon";
|
||||
|
||||
import { DYNAMIC_TEXT_VARIABLES } from "../lib/constants";
|
||||
import { getWorkflowTemplateOptions, getWorkflowTriggerOptions } from "../lib/getOptions";
|
||||
@@ -276,7 +275,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
return (
|
||||
<>
|
||||
<div className="my-3 flex justify-center">
|
||||
<Icon.FiArrowDown className="stroke-[1.5px] text-3xl text-gray-500" />
|
||||
<FiArrowDown className="stroke-[1.5px] text-3xl text-gray-500" />
|
||||
</div>
|
||||
<div className="flex justify-center">
|
||||
<div className="min-w-80 flex w-full rounded-md border border-gray-200 bg-white p-7">
|
||||
@@ -296,18 +295,13 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
<div>
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button
|
||||
type="button"
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiMoreHorizontal}
|
||||
/>
|
||||
<Button type="button" color="minimal" variant="icon" StartIcon={FiMoreHorizontal} />
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
type="button"
|
||||
StartIcon={Icon.FiTrash2}
|
||||
StartIcon={FiTrash2}
|
||||
color="destructive"
|
||||
onClick={() => {
|
||||
const steps = form.getValues("steps");
|
||||
@@ -638,7 +632,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
<div className="mt-3 ">
|
||||
<button type="button" onClick={() => setIsAdditionalInputsDialogOpen(true)}>
|
||||
<div className="mt-2 flex text-sm text-gray-600">
|
||||
<Icon.FiHelpCircle className="mt-[3px] h-3 w-3 ltr:mr-2 rtl:ml-2" />
|
||||
<FiHelpCircle className="mt-[3px] h-3 w-3 ltr:mr-2 rtl:ml-2" />
|
||||
<p className="text-left">{t("using_additional_inputs_as_variables")}</p>
|
||||
</div>
|
||||
</button>
|
||||
|
||||
@@ -1,32 +1,26 @@
|
||||
import { WorkflowActions, WorkflowStep } from "@prisma/client";
|
||||
|
||||
import { classNames } from "@calcom/lib";
|
||||
import { Icon } from "@calcom/ui";
|
||||
import { FiZap, FiSmartphone, FiMail, FiBell } from "@calcom/ui/components/icon";
|
||||
|
||||
export function getActionIcon(steps: WorkflowStep[], className?: string): JSX.Element {
|
||||
if (steps.length === 0) {
|
||||
return (
|
||||
<Icon.FiZap
|
||||
className={classNames(className ? className : "mr-1.5 inline h-3 w-3")}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<FiZap className={classNames(className ? className : "mr-1.5 inline h-3 w-3")} aria-hidden="true" />
|
||||
);
|
||||
}
|
||||
|
||||
if (steps.length === 1) {
|
||||
if (steps[0].action === WorkflowActions.SMS_ATTENDEE || steps[0].action === WorkflowActions.SMS_NUMBER) {
|
||||
return (
|
||||
<Icon.FiSmartphone
|
||||
<FiSmartphone
|
||||
className={classNames(className ? className : "mr-1.5 inline h-3 w-3")}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
<Icon.FiMail
|
||||
className={classNames(className ? className : "mr-1.5 inline h-3 w-3")}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<FiMail className={classNames(className ? className : "mr-1.5 inline h-3 w-3")} aria-hidden="true" />
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -55,30 +49,27 @@ export function getActionIcon(steps: WorkflowStep[], className?: string): JSX.El
|
||||
switch (messageType) {
|
||||
case "SMS":
|
||||
return (
|
||||
<Icon.FiSmartphone
|
||||
<FiSmartphone
|
||||
className={classNames(className ? className : "mr-1.5 inline h-3 w-3")}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
);
|
||||
case "EMAIL":
|
||||
return (
|
||||
<Icon.FiMail
|
||||
<FiMail
|
||||
className={classNames(className ? className : "mr-1.5 inline h-3 w-3")}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
);
|
||||
case "MIX":
|
||||
return (
|
||||
<Icon.FiBell
|
||||
<FiBell
|
||||
className={classNames(className ? className : "mr-1.5 inline h-3 w-3")}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
);
|
||||
default:
|
||||
<Icon.FiZap
|
||||
className={classNames(className ? className : "mr-1.5 inline h-3 w-3")}
|
||||
aria-hidden="true"
|
||||
/>;
|
||||
<FiZap className={classNames(className ? className : "mr-1.5 inline h-3 w-3")} aria-hidden="true" />;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@ import Shell from "@calcom/features/shell/Shell";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { HttpError } from "@calcom/lib/http-error";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button, Icon, showToast } from "@calcom/ui";
|
||||
import { Button, showToast } from "@calcom/ui";
|
||||
import { FiPlus } from "@calcom/ui/components/icon";
|
||||
|
||||
import LicenseRequired from "../../common/components/v2/LicenseRequired";
|
||||
import SkeletonLoader from "../components/SkeletonLoaderList";
|
||||
@@ -45,7 +46,7 @@ function WorkflowsPage() {
|
||||
session.data?.hasValidLicense && data?.workflows && data?.workflows.length > 0 ? (
|
||||
<Button
|
||||
variant="fab"
|
||||
StartIcon={Icon.FiPlus}
|
||||
StartIcon={FiPlus}
|
||||
onClick={() => createMutation.mutate()}
|
||||
loading={createMutation.isLoading}>
|
||||
{t("new")}
|
||||
|
||||
@@ -3,7 +3,8 @@ import { Props } from "react-select";
|
||||
|
||||
import { classNames } from "@calcom/lib";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Avatar, Icon, Select } from "@calcom/ui";
|
||||
import { Avatar, Select } from "@calcom/ui";
|
||||
import { FiX } from "@calcom/ui/components/icon";
|
||||
|
||||
export type CheckedSelectOption = {
|
||||
avatar: string;
|
||||
@@ -48,7 +49,7 @@ export const CheckedTeamSelect = ({
|
||||
<li key={option.value} className={`flex py-2 px-3 ${index === value.length - 1 ? "" : "border-b"}`}>
|
||||
<Avatar size="sm" imageSrc={option.avatar} alt={option.label} />
|
||||
<p className="my-auto ml-3 text-sm text-gray-900">{option.label}</p>
|
||||
<Icon.FiX
|
||||
<FiX
|
||||
onClick={() => props.onChange(value.filter((item) => item.value !== option.value))}
|
||||
className="my-auto ml-auto"
|
||||
/>
|
||||
|
||||
@@ -27,12 +27,12 @@ import {
|
||||
DropdownMenuSeparator,
|
||||
DropdownMenuTrigger,
|
||||
Form,
|
||||
Icon,
|
||||
RadioGroup as RadioArea,
|
||||
showToast,
|
||||
TextAreaField,
|
||||
TextField,
|
||||
} from "@calcom/ui";
|
||||
import { FiPlus, FiChevronDown } from "@calcom/ui/components/icon";
|
||||
|
||||
import { DuplicateDialog } from "./DuplicateDialog";
|
||||
|
||||
@@ -283,7 +283,7 @@ export default function CreateEventTypeButton(props: CreateEventTypeBtnProps) {
|
||||
<Button
|
||||
onClick={() => openModal(props.options[0])}
|
||||
data-testid="new-event-type"
|
||||
StartIcon={Icon.FiPlus}
|
||||
StartIcon={FiPlus}
|
||||
variant="fab"
|
||||
disabled={!props.canAddEvents}>
|
||||
{t("new")}
|
||||
@@ -291,7 +291,7 @@ export default function CreateEventTypeButton(props: CreateEventTypeBtnProps) {
|
||||
) : (
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button variant="fab" StartIcon={Icon.FiPlus}>
|
||||
<Button variant="fab" StartIcon={FiPlus}>
|
||||
{t("new")}
|
||||
</Button>
|
||||
</DropdownMenuTrigger>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Badge, Button, ButtonGroup, Icon } from "@calcom/ui";
|
||||
import { Badge, Button, ButtonGroup } from "@calcom/ui";
|
||||
import { FiTrash } from "@calcom/ui/components/icon";
|
||||
|
||||
type Props = {
|
||||
required?: boolean;
|
||||
@@ -27,7 +28,7 @@ function CustomInputItem({ required, deleteOnClick, editOnClick, type, question
|
||||
{t("edit")}
|
||||
</Button>
|
||||
<Button
|
||||
StartIcon={Icon.FiTrash}
|
||||
StartIcon={FiTrash}
|
||||
variant="icon"
|
||||
color="destructive"
|
||||
onClick={deleteOnClick}
|
||||
|
||||
@@ -8,7 +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 { Badge, Icon } from "@calcom/ui";
|
||||
import { Badge } from "@calcom/ui";
|
||||
import { FiClock, FiUsers, FiRefreshCw, FiCreditCard, FiClipboard, FiPlus } from "@calcom/ui/components/icon";
|
||||
|
||||
export type EventTypeDescriptionProps = {
|
||||
eventType: Pick<
|
||||
@@ -43,21 +44,21 @@ export const EventTypeDescription = ({ eventType, className }: EventTypeDescript
|
||||
{eventType.metadata?.multipleDuration ? (
|
||||
eventType.metadata.multipleDuration.map((dur, idx) => (
|
||||
<li key={idx}>
|
||||
<Badge variant="gray" size="lg" StartIcon={Icon.FiClock}>
|
||||
<Badge variant="gray" size="lg" StartIcon={FiClock}>
|
||||
{dur}m
|
||||
</Badge>
|
||||
</li>
|
||||
))
|
||||
) : (
|
||||
<li>
|
||||
<Badge variant="gray" size="lg" StartIcon={Icon.FiClock}>
|
||||
<Badge variant="gray" size="lg" StartIcon={FiClock}>
|
||||
{eventType.length}m
|
||||
</Badge>
|
||||
</li>
|
||||
)}
|
||||
{eventType.schedulingType && (
|
||||
<li>
|
||||
<Badge variant="gray" size="lg" StartIcon={Icon.FiUsers}>
|
||||
<Badge variant="gray" size="lg" StartIcon={FiUsers}>
|
||||
{eventType.schedulingType === SchedulingType.ROUND_ROBIN && t("round_robin")}
|
||||
{eventType.schedulingType === SchedulingType.COLLECTIVE && t("collective")}
|
||||
</Badge>
|
||||
@@ -65,7 +66,7 @@ export const EventTypeDescription = ({ eventType, className }: EventTypeDescript
|
||||
)}
|
||||
{recurringEvent?.count && recurringEvent.count > 0 && (
|
||||
<li className="hidden xl:block">
|
||||
<Badge variant="gray" size="lg" StartIcon={Icon.FiRefreshCw}>
|
||||
<Badge variant="gray" size="lg" StartIcon={FiRefreshCw}>
|
||||
{t("repeats_up_to", {
|
||||
count: recurringEvent.count,
|
||||
})}
|
||||
@@ -74,7 +75,7 @@ export const EventTypeDescription = ({ eventType, className }: EventTypeDescript
|
||||
)}
|
||||
{stripeAppData.price > 0 && (
|
||||
<li>
|
||||
<Badge variant="gray" size="lg" StartIcon={Icon.FiCreditCard}>
|
||||
<Badge variant="gray" size="lg" StartIcon={FiCreditCard}>
|
||||
<IntlProvider locale="en">
|
||||
<FormattedNumber
|
||||
value={stripeAppData.price / 100.0}
|
||||
@@ -87,7 +88,7 @@ export const EventTypeDescription = ({ eventType, className }: EventTypeDescript
|
||||
)}
|
||||
{eventType.requiresConfirmation && (
|
||||
<li className="hidden xl:block">
|
||||
<Badge variant="gray" size="lg" StartIcon={Icon.FiClipboard}>
|
||||
<Badge variant="gray" size="lg" StartIcon={FiClipboard}>
|
||||
{eventType.metadata?.requiresConfirmationThreshold
|
||||
? t("may_require_confirmation")
|
||||
: t("requires_confirmation")}
|
||||
@@ -97,7 +98,7 @@ export const EventTypeDescription = ({ eventType, className }: EventTypeDescript
|
||||
{/* TODO: Maybe add a tool tip to this? */}
|
||||
{eventType.requiresConfirmation || (recurringEvent?.count && recurringEvent.count) ? (
|
||||
<li className="block xl:hidden">
|
||||
<Badge variant="gray" size="lg" StartIcon={Icon.FiPlus}>
|
||||
<Badge variant="gray" size="lg" StartIcon={FiPlus}>
|
||||
<p>{[eventType.requiresConfirmation, recurringEvent?.count].filter(Boolean).length}</p>
|
||||
</Badge>
|
||||
</li>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { components, GroupBase, Props, ValueContainerProps } from "react-select";
|
||||
|
||||
import { Icon, Select } from "../../..";
|
||||
import { FiPlus } from "@calcom/ui/components/icon";
|
||||
|
||||
const LimitedChipsContainer = <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({
|
||||
children,
|
||||
@@ -22,7 +22,7 @@ const LimitedChipsContainer = <Option, IsMulti extends boolean, Group extends Gr
|
||||
{overflowCounter > 0 && (
|
||||
<span className="flex items-center justify-center rounded-md bg-gray-100 py-[5px] px-2 text-[14px] font-medium leading-4 text-gray-700">
|
||||
<>
|
||||
<Icon.FiPlus className="mr-1 inline h-3 w-3 stroke-[3px]" /> <span>{overflowCounter} more</span>
|
||||
<FiPlus className="mr-1 inline h-3 w-3 stroke-[3px]" /> <span>{overflowCounter} more</span>
|
||||
</>
|
||||
</span>
|
||||
)}
|
||||
|
||||
@@ -15,7 +15,8 @@ import { appStoreMetadata } from "@calcom/app-store/appStoreMetaData";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { isMac } from "@calcom/lib/isMac";
|
||||
import { RouterOutputs, trpc } from "@calcom/trpc/react";
|
||||
import { Icon, Tooltip } from "@calcom/ui";
|
||||
import { Tooltip } from "@calcom/ui";
|
||||
import { FiSearch, FiArrowUp, FiArrowDown, FiCornerDownLeft, FiCommand } from "@calcom/ui/components/icon";
|
||||
|
||||
type shortcutArrayType = {
|
||||
shortcuts?: string[];
|
||||
@@ -247,7 +248,7 @@ export const KBarContent = () => {
|
||||
<KBarPositioner>
|
||||
<KBarAnimator className="z-10 w-full max-w-screen-sm overflow-hidden rounded-md bg-white shadow-lg">
|
||||
<div className="flex items-center justify-center border-b">
|
||||
<Icon.FiSearch className="mx-3 h-4 w-4 text-gray-500" />
|
||||
<FiSearch className="mx-3 h-4 w-4 text-gray-500" />
|
||||
<KBarSearch
|
||||
defaultPlaceholder={t("kbar_search_placeholder")}
|
||||
className="w-full rounded-sm py-2.5 focus-visible:outline-none"
|
||||
@@ -255,11 +256,11 @@ export const KBarContent = () => {
|
||||
</div>
|
||||
<RenderResults />
|
||||
<div className="hidden items-center space-x-1 border-t px-2 py-1.5 text-xs text-gray-500 sm:flex">
|
||||
<Icon.FiArrowUp className="h-4 w-4" />
|
||||
<Icon.FiArrowDown className="h-4 w-4" /> <span className="pr-2">{t("navigate")}</span>
|
||||
<Icon.FiCornerDownLeft className="h-4 w-4" />
|
||||
<FiArrowUp className="h-4 w-4" />
|
||||
<FiArrowDown className="h-4 w-4" /> <span className="pr-2">{t("navigate")}</span>
|
||||
<FiCornerDownLeft className="h-4 w-4" />
|
||||
<span className="pr-2">{t("open")}</span>
|
||||
{isMac ? <Icon.FiCommand className="h-3 w-3" /> : "CTRL"}
|
||||
{isMac ? <FiCommand className="h-3 w-3" /> : "CTRL"}
|
||||
<span className="pr-1">+ K </span>
|
||||
<span className="pr-2">{t("close")}</span>
|
||||
</div>
|
||||
@@ -279,7 +280,7 @@ export const KBarTrigger = () => {
|
||||
color="minimal"
|
||||
onClick={query.toggle}
|
||||
className="group flex rounded-md py-2 px-3 text-sm font-medium hover:bg-gray-100 lg:p-1 lg:hover:bg-gray-200 lg:hover:text-gray-900">
|
||||
<Icon.FiSearch className="h-4 w-4 flex-shrink-0 text-inherit" />
|
||||
<FiSearch className="h-4 w-4 flex-shrink-0 text-inherit" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
</>
|
||||
|
||||
@@ -2,7 +2,8 @@ import { UseFieldArrayRemove } from "react-hook-form";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { TimeRange, WorkingHours } from "@calcom/types/schedule";
|
||||
import { Button, DialogTrigger, Icon, Tooltip } from "@calcom/ui";
|
||||
import { Button, DialogTrigger, Tooltip } from "@calcom/ui";
|
||||
import { FiEdit2, FiTrash2 } from "@calcom/ui/components/icon";
|
||||
|
||||
import DateOverrideInputDialog from "./DateOverrideInputDialog";
|
||||
|
||||
@@ -76,7 +77,7 @@ const DateOverrideList = ({
|
||||
className="text-gray-700"
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiEdit2}
|
||||
StartIcon={FiEdit2}
|
||||
/>
|
||||
</DialogTrigger>
|
||||
}
|
||||
@@ -86,7 +87,7 @@ const DateOverrideList = ({
|
||||
className="text-gray-700"
|
||||
color="destructive"
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiTrash2}
|
||||
StartIcon={FiTrash2}
|
||||
onClick={() => remove(index)}
|
||||
/>
|
||||
</Tooltip>
|
||||
|
||||
@@ -12,9 +12,9 @@ import {
|
||||
DialogFooter,
|
||||
DialogTrigger,
|
||||
Form,
|
||||
Icon,
|
||||
showToast,
|
||||
} from "@calcom/ui";
|
||||
import { FiPlus } from "@calcom/ui/components/icon";
|
||||
|
||||
export function NewScheduleButton({ name = "new-schedule" }: { name?: string }) {
|
||||
const router = useRouter();
|
||||
@@ -58,7 +58,7 @@ export function NewScheduleButton({ name = "new-schedule" }: { name?: string })
|
||||
return (
|
||||
<Dialog name={name} clearQueryParamsOnClose={["copy-schedule-id"]}>
|
||||
<DialogTrigger asChild>
|
||||
<Button variant="fab" data-testid={name} StartIcon={Icon.FiPlus}>
|
||||
<Button variant="fab" data-testid={name} StartIcon={FiPlus}>
|
||||
{t("new")}
|
||||
</Button>
|
||||
</DialogTrigger>
|
||||
|
||||
@@ -12,7 +12,7 @@ import type {
|
||||
import { Controller, useFieldArray, useFormContext } from "react-hook-form";
|
||||
import { GroupBase, Props } from "react-select";
|
||||
|
||||
import dayjs, { ConfigType, Dayjs } from "@calcom/dayjs";
|
||||
import dayjs, { ConfigType } 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";
|
||||
@@ -24,11 +24,11 @@ import {
|
||||
Dropdown,
|
||||
DropdownMenuContent,
|
||||
DropdownMenuTrigger,
|
||||
Icon,
|
||||
Select,
|
||||
SkeletonText,
|
||||
Switch,
|
||||
} from "@calcom/ui";
|
||||
import { FiCopy, FiPlus, FiTrash } from "@calcom/ui/components/icon";
|
||||
|
||||
export type { TimeRange };
|
||||
|
||||
@@ -110,7 +110,7 @@ const CopyButton = ({
|
||||
tooltip={t("copy_times_to_tooltip")}
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiCopy}
|
||||
StartIcon={FiCopy}
|
||||
/>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent align="end">
|
||||
@@ -188,7 +188,7 @@ export const DayRanges = <TFieldValues extends FieldValues>({
|
||||
type="button"
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
StartIcon={Icon.FiPlus}
|
||||
StartIcon={FiPlus}
|
||||
onClick={() => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const nextRange: any = getNextRange(fields[fields.length - 1]);
|
||||
@@ -218,7 +218,7 @@ const RemoveTimeButton = ({
|
||||
type="button"
|
||||
variant="icon"
|
||||
color="minimal"
|
||||
StartIcon={Icon.FiTrash}
|
||||
StartIcon={FiTrash}
|
||||
onClick={() => remove(index)}
|
||||
className={className}
|
||||
/>
|
||||
|
||||
@@ -13,8 +13,8 @@ import {
|
||||
DropdownMenuItem,
|
||||
DropdownItem,
|
||||
DropdownMenuTrigger,
|
||||
Icon,
|
||||
} from "@calcom/ui";
|
||||
import { FiGlobe, FiMoreHorizontal, FiTrash } from "@calcom/ui/components/icon";
|
||||
|
||||
export function ScheduleListItem({
|
||||
schedule,
|
||||
@@ -64,7 +64,7 @@ export function ScheduleListItem({
|
||||
))}
|
||||
{schedule.timeZone && schedule.timeZone !== displayOptions?.timeZone && (
|
||||
<p className="my-1 flex items-center first-letter:text-xs">
|
||||
<Icon.FiGlobe />
|
||||
<FiGlobe />
|
||||
{schedule.timeZone}
|
||||
</p>
|
||||
)}
|
||||
@@ -78,7 +78,7 @@ export function ScheduleListItem({
|
||||
type="button"
|
||||
variant="icon"
|
||||
color="secondary"
|
||||
StartIcon={Icon.FiMoreHorizontal}
|
||||
StartIcon={FiMoreHorizontal}
|
||||
/>
|
||||
</DropdownMenuTrigger>
|
||||
{!isLoading && data && (
|
||||
@@ -101,7 +101,7 @@ export function ScheduleListItem({
|
||||
<DropdownItem
|
||||
type="button"
|
||||
color="destructive"
|
||||
StartIcon={Icon.FiTrash}
|
||||
StartIcon={FiTrash}
|
||||
onClick={() => {
|
||||
deleteFunction({
|
||||
scheduleId: schedule.id,
|
||||
|
||||
@@ -15,18 +15,30 @@ import {
|
||||
Badge,
|
||||
Button,
|
||||
ErrorBoundary,
|
||||
Icon,
|
||||
VerticalTabItemProps,
|
||||
VerticalTabItem,
|
||||
Skeleton,
|
||||
useMeta,
|
||||
} from "@calcom/ui";
|
||||
import {
|
||||
FiUser,
|
||||
FiKey,
|
||||
FiCreditCard,
|
||||
FiTerminal,
|
||||
FiUsers,
|
||||
FiLock,
|
||||
FiArrowLeft,
|
||||
FiChevronDown,
|
||||
FiChevronRight,
|
||||
FiPlus,
|
||||
FiMenu,
|
||||
} from "@calcom/ui/components/icon";
|
||||
|
||||
const tabs: VerticalTabItemProps[] = [
|
||||
{
|
||||
name: "my_account",
|
||||
href: "/settings/my-account",
|
||||
icon: Icon.FiUser,
|
||||
icon: FiUser,
|
||||
children: [
|
||||
{ name: "profile", href: "/settings/my-account/profile" },
|
||||
{ name: "general", href: "/settings/my-account/general" },
|
||||
@@ -40,7 +52,7 @@ const tabs: VerticalTabItemProps[] = [
|
||||
{
|
||||
name: "security",
|
||||
href: "/settings/security",
|
||||
icon: Icon.FiKey,
|
||||
icon: FiKey,
|
||||
children: [
|
||||
{ name: "password", href: "/settings/security/password" },
|
||||
{ name: "2fa_auth", href: "/settings/security/two-factor-auth" },
|
||||
@@ -50,13 +62,13 @@ const tabs: VerticalTabItemProps[] = [
|
||||
{
|
||||
name: "billing",
|
||||
href: "/settings/billing",
|
||||
icon: Icon.FiCreditCard,
|
||||
icon: FiCreditCard,
|
||||
children: [{ name: "manage_billing", href: "/settings/billing" }],
|
||||
},
|
||||
{
|
||||
name: "developer",
|
||||
href: "/settings/developer",
|
||||
icon: Icon.FiTerminal,
|
||||
icon: FiTerminal,
|
||||
children: [
|
||||
//
|
||||
{ name: "webhooks", href: "/settings/developer/webhooks" },
|
||||
@@ -68,13 +80,13 @@ const tabs: VerticalTabItemProps[] = [
|
||||
{
|
||||
name: "teams",
|
||||
href: "/settings/teams",
|
||||
icon: Icon.FiUsers,
|
||||
icon: FiUsers,
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
name: "admin",
|
||||
href: "/settings/admin",
|
||||
icon: Icon.FiLock,
|
||||
icon: FiLock,
|
||||
children: [
|
||||
//
|
||||
{ name: "impersonation", href: "/settings/admin/impersonation" },
|
||||
@@ -121,7 +133,7 @@ const BackButtonInSidebar = ({ name }: { name: string }) => {
|
||||
href="/event-types"
|
||||
className="group my-6 flex h-6 max-h-6 w-64 flex-row items-center rounded-md py-2 px-3 text-sm font-medium leading-4 text-black hover:bg-gray-100 group-hover:text-gray-700 [&[aria-current='page']]:bg-gray-200 [&[aria-current='page']]:text-gray-900"
|
||||
data-testid={`vertical-tab-${name}`}>
|
||||
<Icon.FiArrowLeft className="h-4 w-4 stroke-[2px] ltr:mr-[10px] rtl:ml-[10px] md:mt-0" />
|
||||
<FiArrowLeft className="h-4 w-4 stroke-[2px] ltr:mr-[10px] rtl:ml-[10px] md:mt-0" />
|
||||
<Skeleton title={name} as="p" className="max-w-36 min-h-4 truncate">
|
||||
{name}
|
||||
</Skeleton>
|
||||
@@ -247,11 +259,7 @@ const SettingsSidebarContainer = ({
|
||||
])
|
||||
}>
|
||||
<div className="ltr:mr-3 rtl:ml-3">
|
||||
{teamMenuState[index].teamMenuOpen ? (
|
||||
<Icon.FiChevronDown />
|
||||
) : (
|
||||
<Icon.FiChevronRight />
|
||||
)}
|
||||
{teamMenuState[index].teamMenuOpen ? <FiChevronDown /> : <FiChevronRight />}
|
||||
</div>
|
||||
<img
|
||||
src={getPlaceholderAvatar(team.logo, team?.name as string)}
|
||||
@@ -320,7 +328,7 @@ const SettingsSidebarContainer = ({
|
||||
name={t("add_a_team")}
|
||||
href={`${WEBAPP_URL}/settings/teams/new`}
|
||||
textClassNames="px-3 text-gray-900 font-medium text-sm"
|
||||
icon={Icon.FiPlus}
|
||||
icon={FiPlus}
|
||||
disableChevron
|
||||
/>
|
||||
</div>
|
||||
@@ -339,14 +347,14 @@ const MobileSettingsContainer = (props: { onSideContainerOpen?: () => void }) =>
|
||||
<>
|
||||
<nav className="sticky top-0 z-20 flex w-full items-center justify-between border-b border-gray-100 bg-gray-50 p-4 sm:relative lg:hidden">
|
||||
<div className="flex items-center space-x-3 ">
|
||||
<Button StartIcon={Icon.FiMenu} color="minimal" variant="icon" onClick={props.onSideContainerOpen}>
|
||||
<Button StartIcon={FiMenu} color="minimal" variant="icon" onClick={props.onSideContainerOpen}>
|
||||
<span className="sr-only">{t("show_navigation")}</span>
|
||||
</Button>
|
||||
|
||||
<a
|
||||
href="/"
|
||||
className="flex items-center space-x-2 rounded-md px-3 py-1 hover:bg-gray-200 rtl:space-x-reverse">
|
||||
<Icon.FiArrowLeft className="text-gray-700" />
|
||||
<FiArrowLeft className="text-gray-700" />
|
||||
<p className="font-semibold text-black">{t("settings")}</p>
|
||||
</a>
|
||||
</div>
|
||||
@@ -426,7 +434,7 @@ function ShellHeader() {
|
||||
<div className="mb-8 flex w-full items-center border-b border-gray-200 pb-6">
|
||||
{meta.backButton && (
|
||||
<a href="javascript:history.back()">
|
||||
<Icon.FiArrowLeft className="mr-7" />
|
||||
<FiArrowLeft className="mr-7" />
|
||||
</a>
|
||||
)}
|
||||
<div>
|
||||
|
||||
@@ -8,7 +8,6 @@ import { Toaster } from "react-hot-toast";
|
||||
import dayjs from "@calcom/dayjs";
|
||||
import { useIsEmbed } from "@calcom/embed-core/embed-iframe";
|
||||
import UnconfirmedBookingBadge from "@calcom/features/bookings/UnconfirmedBookingBadge";
|
||||
import LicenseRequired from "@calcom/features/ee/common/components/v2/LicenseRequired";
|
||||
import ImpersonatingBanner from "@calcom/features/ee/impersonation/components/ImpersonatingBanner";
|
||||
import HelpMenuItem from "@calcom/features/ee/support/components/HelpMenuItem";
|
||||
import { TeamsUpgradeBanner } from "@calcom/features/ee/teams/components";
|
||||
@@ -35,12 +34,32 @@ import {
|
||||
DropdownMenuSeparator,
|
||||
DropdownMenuTrigger,
|
||||
ErrorBoundary,
|
||||
HeadSeo,
|
||||
Icon,
|
||||
Logo,
|
||||
HeadSeo,
|
||||
showToast,
|
||||
SkeletonText,
|
||||
} from "@calcom/ui";
|
||||
import {
|
||||
FiMoreVertical,
|
||||
FiMoon,
|
||||
FiExternalLink,
|
||||
FiLink,
|
||||
FiSlack,
|
||||
FiMap,
|
||||
FiHelpCircle,
|
||||
FiDownload,
|
||||
FiLogOut,
|
||||
FiCalendar,
|
||||
FiClock,
|
||||
FiUsers,
|
||||
FiGrid,
|
||||
FiMoreHorizontal,
|
||||
FiFileText,
|
||||
FiZap,
|
||||
FiSettings,
|
||||
FiArrowRight,
|
||||
FiArrowLeft,
|
||||
} from "@calcom/ui/components/icon";
|
||||
|
||||
/* TODO: Migate this */
|
||||
|
||||
@@ -285,7 +304,7 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||
: "No public page"}
|
||||
</span>
|
||||
</span>
|
||||
<Icon.FiMoreVertical
|
||||
<FiMoreVertical
|
||||
className="h-4 w-4 flex-shrink-0 text-gray-400 group-hover:text-gray-500 ltr:mr-2 rtl:ml-2 rtl:mr-4"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
@@ -310,7 +329,7 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||
<DropdownItem
|
||||
type="button"
|
||||
StartIcon={(props) => (
|
||||
<Icon.FiMoon
|
||||
<FiMoon
|
||||
className={classNames(
|
||||
user.away
|
||||
? "text-purple-500 group-hover:text-purple-700"
|
||||
@@ -335,14 +354,14 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
href={`${process.env.NEXT_PUBLIC_WEBSITE_URL}/${user.username}`}
|
||||
StartIcon={Icon.FiExternalLink}>
|
||||
StartIcon={FiExternalLink}>
|
||||
{t("view_public_page")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
type="button"
|
||||
StartIcon={Icon.FiLink}
|
||||
StartIcon={FiLink}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
navigator.clipboard.writeText(
|
||||
@@ -358,7 +377,7 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
StartIcon={(props) => <Icon.FiSlack strokeWidth={1.5} {...props} />}
|
||||
StartIcon={(props) => <FiSlack strokeWidth={1.5} {...props} />}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
href={JOIN_SLACK}>
|
||||
@@ -366,21 +385,21 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem StartIcon={Icon.FiMap} target="_blank" href={ROADMAP}>
|
||||
<DropdownItem StartIcon={FiMap} target="_blank" href={ROADMAP}>
|
||||
{t("visit_roadmap")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
type="button"
|
||||
StartIcon={(props) => <Icon.FiHelpCircle aria-hidden="true" {...props} />}
|
||||
StartIcon={(props) => <FiHelpCircle aria-hidden="true" {...props} />}
|
||||
onClick={() => setHelpOpen(true)}>
|
||||
{t("help")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
StartIcon={Icon.FiDownload}
|
||||
StartIcon={FiDownload}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="desktop-hidden hidden lg:flex"
|
||||
@@ -393,7 +412,7 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
type="button"
|
||||
StartIcon={(props) => <Icon.FiLogOut aria-hidden="true" {...props} />}
|
||||
StartIcon={(props) => <FiLogOut aria-hidden="true" {...props} />}
|
||||
onClick={() => signOut({ callbackUrl: "/auth/logout" })}>
|
||||
{t("sign_out")}
|
||||
</DropdownItem>
|
||||
@@ -433,12 +452,12 @@ const navigation: NavigationItemType[] = [
|
||||
{
|
||||
name: "event_types_page_title",
|
||||
href: "/event-types",
|
||||
icon: Icon.FiLink,
|
||||
icon: FiLink,
|
||||
},
|
||||
{
|
||||
name: "bookings",
|
||||
href: "/bookings/upcoming",
|
||||
icon: Icon.FiCalendar,
|
||||
icon: FiCalendar,
|
||||
badge: <UnconfirmedBookingBadge />,
|
||||
isCurrent: ({ router }) => {
|
||||
const path = router.asPath.split("?")[0];
|
||||
@@ -448,18 +467,18 @@ const navigation: NavigationItemType[] = [
|
||||
{
|
||||
name: "availability",
|
||||
href: "/availability",
|
||||
icon: Icon.FiClock,
|
||||
icon: FiClock,
|
||||
},
|
||||
{
|
||||
name: "teams",
|
||||
href: "/teams",
|
||||
icon: Icon.FiUsers,
|
||||
icon: FiUsers,
|
||||
onlyDesktop: true,
|
||||
},
|
||||
{
|
||||
name: "apps",
|
||||
href: "/apps",
|
||||
icon: Icon.FiGrid,
|
||||
icon: FiGrid,
|
||||
isCurrent: ({ router, item }) => {
|
||||
const path = router.asPath.split("?")[0];
|
||||
// During Server rendering path is /v2/apps but on client it becomes /apps(weird..)
|
||||
@@ -494,12 +513,12 @@ const navigation: NavigationItemType[] = [
|
||||
{
|
||||
name: MORE_SEPARATOR_NAME,
|
||||
href: "/more",
|
||||
icon: Icon.FiMoreHorizontal,
|
||||
icon: FiMoreHorizontal,
|
||||
},
|
||||
{
|
||||
name: "Routing Forms",
|
||||
href: "/apps/routing-forms/forms",
|
||||
icon: Icon.FiFileText,
|
||||
icon: FiFileText,
|
||||
isCurrent: ({ router }) => {
|
||||
return router.asPath.startsWith("/apps/routing-forms/");
|
||||
},
|
||||
@@ -507,12 +526,12 @@ const navigation: NavigationItemType[] = [
|
||||
{
|
||||
name: "workflows",
|
||||
href: "/workflows",
|
||||
icon: Icon.FiZap,
|
||||
icon: FiZap,
|
||||
},
|
||||
{
|
||||
name: "settings",
|
||||
href: "/settings/my-account/profile",
|
||||
icon: Icon.FiSettings,
|
||||
icon: FiSettings,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -687,7 +706,7 @@ const MobileNavigationMoreItem: React.FC<{
|
||||
{item.icon && <item.icon className="h-5 w-5 flex-shrink-0 ltr:mr-3 rtl:ml-3" aria-hidden="true" />}
|
||||
{isLocaleReady ? t(item.name) : <SkeletonText />}
|
||||
</span>
|
||||
<Icon.FiArrowRight className="h-5 w-5 text-gray-500" />
|
||||
<FiArrowRight className="h-5 w-5 text-gray-500" />
|
||||
</Link>
|
||||
</li>
|
||||
);
|
||||
@@ -719,13 +738,13 @@ function SideBar() {
|
||||
color="minimal"
|
||||
onClick={() => window.history.back()}
|
||||
className="desktop-only group flex text-sm font-medium text-gray-500 hover:text-gray-900">
|
||||
<Icon.FiArrowLeft className="h-4 w-4 flex-shrink-0 text-gray-500 group-hover:text-gray-900" />
|
||||
<FiArrowLeft className="h-4 w-4 flex-shrink-0 text-gray-500 group-hover:text-gray-900" />
|
||||
</button>
|
||||
<button
|
||||
color="minimal"
|
||||
onClick={() => window.history.forward()}
|
||||
className="desktop-only group flex text-sm font-medium text-gray-500 hover:text-gray-900">
|
||||
<Icon.FiArrowRight className="h-4 w-4 flex-shrink-0 text-gray-500 group-hover:text-gray-900" />
|
||||
<FiArrowRight className="h-4 w-4 flex-shrink-0 text-gray-500 group-hover:text-gray-900" />
|
||||
</button>
|
||||
<KBarTrigger />
|
||||
</div>
|
||||
@@ -771,7 +790,7 @@ export function ShellMain(props: LayoutProps) {
|
||||
onClick={() =>
|
||||
typeof props.backPath === "string" ? router.push(props.backPath as string) : router.back()
|
||||
}
|
||||
StartIcon={Icon.FiArrowLeft}
|
||||
StartIcon={FiArrowLeft}
|
||||
aria-label="Go Back"
|
||||
className="ltr:mr-2 rtl:ml-2"
|
||||
/>
|
||||
@@ -857,7 +876,7 @@ function TopNav() {
|
||||
<button className="rounded-full p-1 text-gray-400 hover:bg-gray-50 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-black focus:ring-offset-2">
|
||||
<span className="sr-only">{t("settings")}</span>
|
||||
<Link href="/settings/profile">
|
||||
<Icon.FiSettings className="h-4 w-4 text-gray-700" aria-hidden="true" />
|
||||
<FiSettings className="h-4 w-4 text-gray-700" aria-hidden="true" />
|
||||
</Link>
|
||||
</button>
|
||||
<UserDropdown small />
|
||||
|
||||
@@ -6,7 +6,8 @@ import { useHasTeamPlan } from "@calcom/lib/hooks/useHasTeamPlan";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
// import isCalcom from "@calcom/lib/isCalcom";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { EmptyScreen, Icon } from "@calcom/ui";
|
||||
import { EmptyScreen } from "@calcom/ui";
|
||||
import { FiUsers } from "@calcom/ui/components/icon";
|
||||
|
||||
import TeamList from "../ee/teams/components/TeamList";
|
||||
|
||||
@@ -40,7 +41,7 @@ export function UpgradeTip({
|
||||
if (hasTeamPlan) return children;
|
||||
|
||||
if (!isCalcom)
|
||||
return <EmptyScreen Icon={Icon.FiUsers} headline={title} description={description} buttonRaw={buttons} />;
|
||||
return <EmptyScreen Icon={FiUsers} headline={title} description={description} buttonRaw={buttons} />;
|
||||
|
||||
if (isParentLoading || isLoading) return <>{isParentLoading}</>;
|
||||
|
||||
|
||||
@@ -2,8 +2,9 @@ import { WebhookTriggerEvents } from "@prisma/client";
|
||||
|
||||
import classNames from "@calcom/lib/classNames";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { RouterOutputs, trpc } from "@calcom/trpc/react";
|
||||
import { Badge, Button, Icon, showToast, Switch, Tooltip } from "@calcom/ui";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Badge, Button, showToast, Switch, Tooltip } from "@calcom/ui";
|
||||
import { FiAlertCircle, FiTrash } from "@calcom/ui/components/icon";
|
||||
|
||||
type WebhookProps = {
|
||||
id: string;
|
||||
@@ -50,7 +51,7 @@ export default function WebhookListItem(props: {
|
||||
className="ltr:mr-2 rtl:ml-2"
|
||||
variant="gray"
|
||||
bold
|
||||
StartIcon={Icon.FiAlertCircle}>
|
||||
StartIcon={FiAlertCircle}>
|
||||
{t(`${trigger.toLowerCase()}`)}
|
||||
</Badge>
|
||||
))}
|
||||
@@ -74,7 +75,7 @@ export default function WebhookListItem(props: {
|
||||
</Button>
|
||||
<Button
|
||||
color="destructive"
|
||||
StartIcon={Icon.FiTrash}
|
||||
StartIcon={FiTrash}
|
||||
variant="icon"
|
||||
onClick={() => {
|
||||
// TODO: Confimation dialog before deleting
|
||||
|
||||
@@ -2,7 +2,8 @@ import { useWatch } from "react-hook-form";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Badge, Button, Icon, showToast } from "@calcom/ui";
|
||||
import { Badge, Button, showToast } from "@calcom/ui";
|
||||
import { FiActivity } from "@calcom/ui/components/icon";
|
||||
|
||||
export default function WebhookTestDisclosure() {
|
||||
const subscriberUrl: string = useWatch({ name: "subscriberUrl" });
|
||||
@@ -29,7 +30,7 @@ export default function WebhookTestDisclosure() {
|
||||
type="button"
|
||||
color="secondary"
|
||||
disabled={mutation.isLoading || !subscriberUrl}
|
||||
StartIcon={Icon.FiActivity}
|
||||
StartIcon={FiActivity}
|
||||
onClick={() => mutation.mutate({ url: subscriberUrl, type: "PING", payloadTemplate })}>
|
||||
{t("ping_test")}
|
||||
</Button>
|
||||
|
||||
@@ -4,7 +4,8 @@ import { Suspense } from "react";
|
||||
import { APP_NAME, WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button, EmptyScreen, Icon, Meta, SkeletonText } from "@calcom/ui";
|
||||
import { Button, EmptyScreen, Meta, SkeletonText } from "@calcom/ui";
|
||||
import { FiPlus, FiLink } from "@calcom/ui/components/icon";
|
||||
|
||||
import { getLayout } from "../../settings/layouts/SettingsLayout";
|
||||
import { WebhookListItem, WebhookListSkeleton } from "../components";
|
||||
@@ -29,7 +30,7 @@ const NewWebhookButton = () => {
|
||||
<Button
|
||||
color="secondary"
|
||||
data-testid="new_webhook"
|
||||
StartIcon={Icon.FiPlus}
|
||||
StartIcon={FiPlus}
|
||||
href={`${WEBAPP_URL}/settings/developer/webhooks/new`}>
|
||||
{isLocaleReady ? t("new_webhook") : <SkeletonText className="h-4 w-24" />}
|
||||
</Button>
|
||||
@@ -63,7 +64,7 @@ const WebhooksList = () => {
|
||||
</>
|
||||
) : (
|
||||
<EmptyScreen
|
||||
Icon={Icon.FiLink}
|
||||
Icon={FiLink}
|
||||
headline={t("create_your_first_webhook")}
|
||||
description={t("create_your_first_webhook_description", { appName: APP_NAME })}
|
||||
buttonRaw={<NewWebhookButton />}
|
||||
|
||||
Reference in new issue
Block a user