Replace react icons with lucidedev (#8146)
* migrate from react-icons to lucide-react * replace react-icon with lucide-dev: Webhook Icon * add lucide transformer * Fix LinkIcon import * Update yarn.lock to include monorepo deps * Migrated icons in ChargeCardDialog * Port Storybook to new icons as well * Adjust Info & Globe icons size to match react-icons size --------- Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
1 parent
fb9c1b18e0
commit
91f381bce9
176 files changed
+830
-867
No files matched your search
@@ -3,7 +3,7 @@ import useApp from "@calcom/lib/hooks/useApp";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button, showToast } from "@calcom/ui";
|
||||
import { FiPlus } from "@calcom/ui/components/icon";
|
||||
import { Plus } from "@calcom/ui/components/icon";
|
||||
|
||||
import useAddAppMutation from "../_utils/useAddAppMutation";
|
||||
import { InstallAppButton } from "../components";
|
||||
@@ -63,7 +63,7 @@ export default function OmniInstallAppButton({
|
||||
loading={mutation.isLoading}
|
||||
color="secondary"
|
||||
className="[@media(max-width:260px)]:w-full [@media(max-width:260px)]:justify-center"
|
||||
StartIcon={FiPlus}
|
||||
StartIcon={Plus}
|
||||
{...props}>
|
||||
{t("install")}
|
||||
</Button>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { FiCalendar, FiVideo, FiCreditCard, FiShare2, FiBarChart, FiGrid } from "@calcom/ui/components/icon";
|
||||
import { Calendar, Video, CreditCard, Share2, BarChart, Grid } from "@calcom/ui/components/icon";
|
||||
|
||||
function getHref(baseURL: string, category: string, useQueryParam: boolean) {
|
||||
const baseUrlParsed = new URL(baseURL, WEBAPP_URL);
|
||||
@@ -12,37 +12,37 @@ const getAppCategories = (baseURL: string, useQueryParam: boolean) => {
|
||||
{
|
||||
name: "calendar",
|
||||
href: getHref(baseURL, "calendar", useQueryParam),
|
||||
icon: FiCalendar,
|
||||
icon: Calendar,
|
||||
},
|
||||
{
|
||||
name: "conferencing",
|
||||
href: getHref(baseURL, "conferencing", useQueryParam),
|
||||
icon: FiVideo,
|
||||
icon: Video,
|
||||
},
|
||||
{
|
||||
name: "payment",
|
||||
href: getHref(baseURL, "payment", useQueryParam),
|
||||
icon: FiCreditCard,
|
||||
icon: CreditCard,
|
||||
},
|
||||
{
|
||||
name: "automation",
|
||||
href: getHref(baseURL, "automation", useQueryParam),
|
||||
icon: FiShare2,
|
||||
icon: Share2,
|
||||
},
|
||||
{
|
||||
name: "analytics",
|
||||
href: getHref(baseURL, "analytics", useQueryParam),
|
||||
icon: FiBarChart,
|
||||
icon: BarChart,
|
||||
},
|
||||
{
|
||||
name: "web3",
|
||||
href: getHref(baseURL, "web3", useQueryParam),
|
||||
icon: FiBarChart,
|
||||
icon: BarChart,
|
||||
},
|
||||
{
|
||||
name: "other",
|
||||
href: getHref(baseURL, "other", useQueryParam),
|
||||
icon: FiGrid,
|
||||
icon: Grid,
|
||||
},
|
||||
];
|
||||
};
|
||||
|
||||
@@ -7,7 +7,7 @@ import z from "zod";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button, Form, showToast, TextField } from "@calcom/ui";
|
||||
import { FiCheck, FiX } from "@calcom/ui/components/icon";
|
||||
import { Check, X } from "@calcom/ui/components/icon";
|
||||
|
||||
const formSchema = z.object({
|
||||
api_key: z.string(),
|
||||
@@ -107,7 +107,7 @@ export default function CloseComSetup() {
|
||||
type="submit"
|
||||
loading={testLoading}
|
||||
disabled={testPassed === true}
|
||||
StartIcon={testPassed !== undefined ? (testPassed ? FiCheck : FiX) : undefined}
|
||||
StartIcon={testPassed !== undefined ? (testPassed ? Check : X) : undefined}
|
||||
className={
|
||||
testPassed !== undefined
|
||||
? testPassed
|
||||
|
||||
@@ -10,7 +10,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import type { RouterOutputs } from "@calcom/trpc/react";
|
||||
import type { App } from "@calcom/types/App";
|
||||
import { FiAlertCircle, FiArrowRight, FiCheck } from "@calcom/ui/components/icon";
|
||||
import { AlertCircle, ArrowRight, Check } from "@calcom/ui/components/icon";
|
||||
|
||||
import { InstallAppButtonMap } from "./apps.browser.generated";
|
||||
import type { InstallAppButtonProps } from "./types";
|
||||
@@ -99,7 +99,7 @@ export const AppDependencyComponent = ({
|
||||
<div className="items-start space-x-2.5">
|
||||
<div className="flex items-start">
|
||||
<div>
|
||||
<FiCheck className="mt-1 mr-2 font-semibold" />
|
||||
<Check className="mt-1 mr-2 font-semibold" />
|
||||
</div>
|
||||
<div>
|
||||
<span className="font-semibold">
|
||||
@@ -122,7 +122,7 @@ export const AppDependencyComponent = ({
|
||||
<div className="items-start space-x-2.5">
|
||||
<div className="text-info flex items-start">
|
||||
<div>
|
||||
<FiAlertCircle className="mt-1 mr-2 font-semibold" />
|
||||
<AlertCircle className="mt-1 mr-2 font-semibold" />
|
||||
</div>
|
||||
<div>
|
||||
<span className="font-semibold">
|
||||
@@ -138,7 +138,7 @@ export const AppDependencyComponent = ({
|
||||
<span className="mr-1">
|
||||
{t("connect_app", { dependencyName: dependency.name })}
|
||||
</span>
|
||||
<FiArrowRight />
|
||||
<ArrowRight />
|
||||
</Link>
|
||||
</>
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,7 @@ import Link from "next/link";
|
||||
|
||||
import { CAL_URL } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { FiAlertCircle, FiArrowRight, FiCheck } from "@calcom/ui/components/icon";
|
||||
import { AlertCircle, ArrowRight, Check } from "@calcom/ui/components/icon";
|
||||
|
||||
const ExistingGoogleCal = ({ gCalInstalled, appName }: { gCalInstalled?: boolean; appName: string }) => {
|
||||
const { t } = useLocale();
|
||||
@@ -12,7 +12,7 @@ const ExistingGoogleCal = ({ gCalInstalled, appName }: { gCalInstalled?: boolean
|
||||
<div className="items-start space-x-2.5">
|
||||
<div className="flex items-start">
|
||||
<div>
|
||||
<FiCheck className="mt-1 mr-2 font-semibold" />
|
||||
<Check className="mt-1 mr-2 font-semibold" />
|
||||
</div>
|
||||
<div>
|
||||
<span className="font-semibold">{t("google_calendar_is_connected")}</span>
|
||||
@@ -30,7 +30,7 @@ const ExistingGoogleCal = ({ gCalInstalled, appName }: { gCalInstalled?: boolean
|
||||
<div className="items-start space-x-2.5">
|
||||
<div className="flex items-start">
|
||||
<div>
|
||||
<FiAlertCircle className="mt-1 mr-2 font-semibold" />
|
||||
<AlertCircle className="mt-1 mr-2 font-semibold" />
|
||||
</div>
|
||||
<div>
|
||||
<span className="font-semibold">{t("this_app_requires_google_calendar", { appName })}</span>
|
||||
@@ -41,7 +41,7 @@ const ExistingGoogleCal = ({ gCalInstalled, appName }: { gCalInstalled?: boolean
|
||||
href={`${CAL_URL}/apps/google-calendar`}
|
||||
className="text-info flex items-center underline">
|
||||
<span className="mr-1">{t("connect_google_calendar")}</span>
|
||||
<FiArrowRight />
|
||||
<ArrowRight />
|
||||
</Link>
|
||||
</>
|
||||
</div>
|
||||
|
||||
@@ -15,7 +15,7 @@ import { configureChains, createClient, useAccount, useSignMessage, WagmiConfig
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { showToast, SkeletonText } from "@calcom/ui";
|
||||
import { FiAlertTriangle, FiLoader } from "@calcom/ui/components/icon";
|
||||
import { AlertTriangle, Loader } from "@calcom/ui/components/icon";
|
||||
|
||||
import { ETH_MESSAGE, getProviders, SUPPORTED_CHAINS } from "../utils/ethereum";
|
||||
|
||||
@@ -132,7 +132,7 @@ const BalanceCheck: React.FC<RainbowGateProps> = ({ chainId, setToken, tokenAddr
|
||||
<>
|
||||
{!balanceData.data.hasBalance && (
|
||||
<div className="mt-2 flex flex-row items-center">
|
||||
<FiAlertTriangle className="h-5 w-5 text-red-600" />
|
||||
<AlertTriangle className="h-5 w-5 text-red-600" />
|
||||
<p className="ml-2 text-red-600">
|
||||
<Trans i18nKey="rainbow_insufficient_balance" t={t}>
|
||||
Your connected wallet doesn't contain enough {contractData.data.symbol}.
|
||||
@@ -143,7 +143,7 @@ const BalanceCheck: React.FC<RainbowGateProps> = ({ chainId, setToken, tokenAddr
|
||||
|
||||
{balanceData.data.hasBalance && isSignatureLoading && (
|
||||
<div className="mt-2 flex flex-row items-center">
|
||||
<FiLoader className="h-5 w-5 text-green-600" />
|
||||
<Loader className="h-5 w-5 text-green-600" />
|
||||
<p className="ml-2 text-green-600">{t("rainbow_sign_message_request")}</p>
|
||||
</div>
|
||||
)}
|
||||
@@ -152,7 +152,7 @@ const BalanceCheck: React.FC<RainbowGateProps> = ({ chainId, setToken, tokenAddr
|
||||
|
||||
{isSignatureError && (
|
||||
<div className="mt-2 flex flex-row items-center">
|
||||
<FiAlertTriangle className="h-5 w-5 text-red-600" />
|
||||
<AlertTriangle className="h-5 w-5 text-red-600" />
|
||||
<p className="ml-2 text-red-600">
|
||||
<Trans i18nKey="rainbow_signature_error" t={t}>
|
||||
{t("rainbow_signature_error")}
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
TextField,
|
||||
SettingsToggle,
|
||||
} from "@calcom/ui";
|
||||
import { FiMoreHorizontal } from "@calcom/ui/components/icon";
|
||||
import { MoreHorizontal } from "@calcom/ui/components/icon";
|
||||
|
||||
import { EmbedButton, EmbedDialog } from "@components/Embed";
|
||||
|
||||
@@ -162,7 +162,7 @@ export const FormActionsDropdown = ({ form, children }: { form: RoutingForm; chi
|
||||
variant="icon"
|
||||
color="secondary"
|
||||
className={classNames("radix-state-open:rounded-r-md", disabled && "opacity-30")}
|
||||
StartIcon={FiMoreHorizontal}
|
||||
StartIcon={MoreHorizontal}
|
||||
/>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent>{children}</DropdownMenuContent>
|
||||
|
||||
@@ -34,7 +34,7 @@ import {
|
||||
Tooltip,
|
||||
VerticalDivider,
|
||||
} from "@calcom/ui";
|
||||
import { FiExternalLink, FiLink, FiDownload, FiCode, FiTrash } from "@calcom/ui/components/icon";
|
||||
import { ExternalLink, Link as LinkIcon, Download, Code, Trash } from "@calcom/ui/components/icon";
|
||||
|
||||
import { RoutingPages } from "../lib/RoutingPages";
|
||||
import { getSerializableForm } from "../lib/getSerializableForm";
|
||||
@@ -78,7 +78,7 @@ const Actions = ({
|
||||
type="button"
|
||||
rel="noreferrer"
|
||||
action="preview"
|
||||
StartIcon={FiExternalLink}
|
||||
StartIcon={ExternalLink}
|
||||
/>
|
||||
</Tooltip>
|
||||
<FormAction
|
||||
@@ -87,7 +87,7 @@ const Actions = ({
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
type="button"
|
||||
StartIcon={FiLink}
|
||||
StartIcon={LinkIcon}
|
||||
tooltip={t("copy_link_to_form")}
|
||||
/>
|
||||
|
||||
@@ -99,7 +99,7 @@ const Actions = ({
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
type="button"
|
||||
StartIcon={FiDownload}
|
||||
StartIcon={Download}
|
||||
/>
|
||||
</Tooltip>
|
||||
<FormAction
|
||||
@@ -107,7 +107,7 @@ const Actions = ({
|
||||
action="embed"
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
StartIcon={FiCode}
|
||||
StartIcon={Code}
|
||||
tooltip={t("embed")}
|
||||
/>
|
||||
<DropdownMenuSeparator />
|
||||
@@ -116,7 +116,7 @@ const Actions = ({
|
||||
action="_delete"
|
||||
// className="mr-3"
|
||||
variant="icon"
|
||||
StartIcon={FiTrash}
|
||||
StartIcon={Trash}
|
||||
color="secondary"
|
||||
type="button"
|
||||
tooltip={t("delete")}
|
||||
@@ -129,7 +129,7 @@ const Actions = ({
|
||||
action="copyRedirectUrl"
|
||||
color="minimal"
|
||||
type="button"
|
||||
StartIcon={FiLink}>
|
||||
StartIcon={LinkIcon}>
|
||||
{t("Copy Typeform Redirect Url")}
|
||||
</FormAction>
|
||||
</FormActionsDropdown>
|
||||
@@ -145,7 +145,7 @@ const Actions = ({
|
||||
type="button"
|
||||
rel="noreferrer"
|
||||
action="preview"
|
||||
StartIcon={FiExternalLink}>
|
||||
StartIcon={ExternalLink}>
|
||||
{t("preview")}
|
||||
</FormAction>
|
||||
<FormAction
|
||||
@@ -154,7 +154,7 @@ const Actions = ({
|
||||
routingForm={form}
|
||||
color="minimal"
|
||||
type="button"
|
||||
StartIcon={FiLink}>
|
||||
StartIcon={LinkIcon}>
|
||||
{t("copy_link_to_form")}
|
||||
</FormAction>
|
||||
<FormAction
|
||||
@@ -163,7 +163,7 @@ const Actions = ({
|
||||
className="w-full"
|
||||
color="minimal"
|
||||
type="button"
|
||||
StartIcon={FiDownload}>
|
||||
StartIcon={Download}>
|
||||
{t("download_responses")}
|
||||
</FormAction>
|
||||
<FormAction
|
||||
@@ -172,7 +172,7 @@ const Actions = ({
|
||||
color="minimal"
|
||||
type="button"
|
||||
className="w-full"
|
||||
StartIcon={FiCode}>
|
||||
StartIcon={Code}>
|
||||
{t("embed")}
|
||||
</FormAction>
|
||||
{typeformApp ? (
|
||||
@@ -182,7 +182,7 @@ const Actions = ({
|
||||
action="copyRedirectUrl"
|
||||
color="minimal"
|
||||
type="button"
|
||||
StartIcon={FiLink}>
|
||||
StartIcon={LinkIcon}>
|
||||
{t("Copy Typeform Redirect Url")}
|
||||
</FormAction>
|
||||
) : null}
|
||||
@@ -193,7 +193,7 @@ const Actions = ({
|
||||
className="w-full"
|
||||
type="button"
|
||||
color="destructive"
|
||||
StartIcon={FiTrash}>
|
||||
StartIcon={Trash}>
|
||||
{t("delete")}
|
||||
</FormAction>
|
||||
</FormActionsDropdown>
|
||||
|
||||
@@ -8,7 +8,7 @@ import type {
|
||||
} from "react-awesome-query-builder";
|
||||
|
||||
import { Button as CalButton, SelectWithValidation as Select, TextField, TextArea } from "@calcom/ui";
|
||||
import { FiTrash, FiPlus } from "@calcom/ui/components/icon";
|
||||
import { Trash, Plus } from "@calcom/ui/components/icon";
|
||||
|
||||
export type CommonProps<
|
||||
TVal extends
|
||||
@@ -206,7 +206,7 @@ function Button({ config, type, label, onClick, readonly }: ButtonProps) {
|
||||
if (type === "delRule" || type == "delGroup") {
|
||||
return (
|
||||
<button className="ml-5">
|
||||
<FiTrash className="text-subtle m-0 h-4 w-4" onClick={onClick} />
|
||||
<Trash className="text-subtle m-0 h-4 w-4" onClick={onClick} />
|
||||
</button>
|
||||
);
|
||||
}
|
||||
@@ -220,7 +220,7 @@ function Button({ config, type, label, onClick, readonly }: ButtonProps) {
|
||||
}
|
||||
return (
|
||||
<CalButton
|
||||
StartIcon={FiPlus}
|
||||
StartIcon={Plus}
|
||||
data-testid={dataTestId}
|
||||
type="button"
|
||||
color="secondary"
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
TextAreaField,
|
||||
TextField,
|
||||
} from "@calcom/ui";
|
||||
import { FiPlus, FiFileText } from "@calcom/ui/components/icon";
|
||||
import { Plus, FileText } from "@calcom/ui/components/icon";
|
||||
|
||||
import type { inferSSRProps } from "@lib/types/inferSSRProps";
|
||||
|
||||
@@ -295,7 +295,7 @@ const FormEdit = ({
|
||||
<Button
|
||||
data-testid="add-field"
|
||||
type="button"
|
||||
StartIcon={FiPlus}
|
||||
StartIcon={Plus}
|
||||
color="secondary"
|
||||
onClick={addField}>
|
||||
Add Field
|
||||
@@ -307,7 +307,7 @@ const FormEdit = ({
|
||||
) : (
|
||||
<div className="w-full">
|
||||
<EmptyScreen
|
||||
Icon={FiFileText}
|
||||
Icon={FileText}
|
||||
headline="Create your first field"
|
||||
description="Fields are the form fields that the booker would see."
|
||||
buttonRaw={
|
||||
|
||||
@@ -12,22 +12,22 @@ import { trpc } from "@calcom/trpc/react";
|
||||
import type { AppGetServerSidePropsContext, AppPrisma, AppUser } from "@calcom/types/AppGetServerSideProps";
|
||||
import { Badge, ButtonGroup, EmptyScreen, List, ListLinkItem, Tooltip, Button } from "@calcom/ui";
|
||||
import {
|
||||
FiPlus,
|
||||
FiGitMerge,
|
||||
FiExternalLink,
|
||||
FiLink,
|
||||
FiEdit,
|
||||
FiDownload,
|
||||
FiCode,
|
||||
FiCopy,
|
||||
FiTrash,
|
||||
FiMenu,
|
||||
FiMessageCircle,
|
||||
FiFileText,
|
||||
FiShuffle,
|
||||
FiBarChart,
|
||||
FiCheckCircle,
|
||||
FiMail,
|
||||
Plus,
|
||||
GitMerge,
|
||||
ExternalLink,
|
||||
Link as LinkIcon,
|
||||
Edit,
|
||||
Download,
|
||||
Code,
|
||||
Copy,
|
||||
Trash,
|
||||
Menu,
|
||||
MessageCircle,
|
||||
FileText,
|
||||
Shuffle,
|
||||
BarChart,
|
||||
CheckCircle,
|
||||
Mail,
|
||||
} from "@calcom/ui/components/icon";
|
||||
|
||||
import type { inferSSRProps } from "@lib/types/inferSSRProps";
|
||||
@@ -50,32 +50,32 @@ export default function RoutingForms({
|
||||
|
||||
const features = [
|
||||
{
|
||||
icon: <FiFileText className="h-5 w-5 text-orange-500" />,
|
||||
icon: <FileText className="h-5 w-5 text-orange-500" />,
|
||||
title: t("create_your_first_form"),
|
||||
description: t("create_your_first_form_description"),
|
||||
},
|
||||
{
|
||||
icon: <FiShuffle className="h-5 w-5 text-lime-500" />,
|
||||
icon: <Shuffle className="h-5 w-5 text-lime-500" />,
|
||||
title: t("create_your_first_route"),
|
||||
description: t("route_to_the_right_person"),
|
||||
},
|
||||
{
|
||||
icon: <FiBarChart className="h-5 w-5 text-blue-500" />,
|
||||
icon: <BarChart className="h-5 w-5 text-blue-500" />,
|
||||
title: t("reporting"),
|
||||
description: t("reporting_feature"),
|
||||
},
|
||||
{
|
||||
icon: <FiCheckCircle className="h-5 w-5 text-teal-500" />,
|
||||
icon: <CheckCircle className="h-5 w-5 text-teal-500" />,
|
||||
title: t("test_routing_form"),
|
||||
description: t("test_preview_description"),
|
||||
},
|
||||
{
|
||||
icon: <FiMail className="h-5 w-5 text-yellow-500" />,
|
||||
icon: <Mail className="h-5 w-5 text-yellow-500" />,
|
||||
title: t("routing_forms_send_email_owner"),
|
||||
description: t("routing_forms_send_email_owner_description"),
|
||||
},
|
||||
{
|
||||
icon: <FiDownload className="h-5 w-5 text-violet-500" />,
|
||||
icon: <Download className="h-5 w-5 text-violet-500" />,
|
||||
title: t("download_responses"),
|
||||
description: t("download_responses_description"),
|
||||
},
|
||||
@@ -87,7 +87,7 @@ export default function RoutingForms({
|
||||
variant="fab"
|
||||
routingForm={null}
|
||||
data-testid="new-routing-form"
|
||||
StartIcon={FiPlus}
|
||||
StartIcon={Plus}
|
||||
action="create">
|
||||
{t("new")}
|
||||
</FormAction>
|
||||
@@ -121,7 +121,7 @@ export default function RoutingForms({
|
||||
<div className="mb-10 w-full px-4 pb-2 sm:px-6 md:px-8">
|
||||
{!forms?.length ? (
|
||||
<EmptyScreen
|
||||
Icon={FiGitMerge}
|
||||
Icon={GitMerge}
|
||||
headline={t("create_your_first_form")}
|
||||
description={t("create_your_first_form_description")}
|
||||
buttonRaw={<NewFormButton />}
|
||||
@@ -156,7 +156,7 @@ export default function RoutingForms({
|
||||
action="preview"
|
||||
routingForm={form}
|
||||
target="_blank"
|
||||
StartIcon={FiExternalLink}
|
||||
StartIcon={ExternalLink}
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
disabled={disabled}
|
||||
@@ -167,7 +167,7 @@ export default function RoutingForms({
|
||||
action="copyLink"
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
StartIcon={FiLink}
|
||||
StartIcon={LinkIcon}
|
||||
disabled={disabled}
|
||||
tooltip={t("copy_link_to_form")}
|
||||
/>
|
||||
@@ -176,7 +176,7 @@ export default function RoutingForms({
|
||||
action="embed"
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
StartIcon={FiCode}
|
||||
StartIcon={Code}
|
||||
disabled={disabled}
|
||||
tooltip={t("embed")}
|
||||
/>
|
||||
@@ -186,14 +186,14 @@ export default function RoutingForms({
|
||||
routingForm={form}
|
||||
color="minimal"
|
||||
className="!flex"
|
||||
StartIcon={FiEdit}>
|
||||
StartIcon={Edit}>
|
||||
{t("edit")}
|
||||
</FormAction>
|
||||
<FormAction
|
||||
action="download"
|
||||
routingForm={form}
|
||||
color="minimal"
|
||||
StartIcon={FiDownload}>
|
||||
StartIcon={Download}>
|
||||
{t("download_responses")}
|
||||
</FormAction>
|
||||
<FormAction
|
||||
@@ -201,7 +201,7 @@ export default function RoutingForms({
|
||||
routingForm={form}
|
||||
color="minimal"
|
||||
className="w-full"
|
||||
StartIcon={FiCopy}>
|
||||
StartIcon={Copy}>
|
||||
{t("duplicate")}
|
||||
</FormAction>
|
||||
{typeformApp?.isInstalled ? (
|
||||
@@ -211,7 +211,7 @@ export default function RoutingForms({
|
||||
action="copyRedirectUrl"
|
||||
color="minimal"
|
||||
type="button"
|
||||
StartIcon={FiLink}>
|
||||
StartIcon={LinkIcon}>
|
||||
{t("Copy Typeform Redirect Url")}
|
||||
</FormAction>
|
||||
) : null}
|
||||
@@ -220,7 +220,7 @@ export default function RoutingForms({
|
||||
routingForm={form}
|
||||
color="destructive"
|
||||
className="w-full"
|
||||
StartIcon={FiTrash}>
|
||||
StartIcon={Trash}>
|
||||
{t("delete")}
|
||||
</FormAction>
|
||||
</FormActionsDropdown>
|
||||
@@ -228,13 +228,13 @@ export default function RoutingForms({
|
||||
</>
|
||||
}>
|
||||
<div className="flex flex-wrap gap-1">
|
||||
<Badge variant="gray" startIcon={FiMenu}>
|
||||
<Badge variant="gray" startIcon={Menu}>
|
||||
{fields.length} {fields.length === 1 ? "field" : "fields"}
|
||||
</Badge>
|
||||
<Badge variant="gray" startIcon={FiGitMerge}>
|
||||
<Badge variant="gray" startIcon={GitMerge}>
|
||||
{form.routes.length} {form.routes.length === 1 ? "route" : "routes"}
|
||||
</Badge>
|
||||
<Badge variant="gray" startIcon={FiMessageCircle}>
|
||||
<Badge variant="gray" startIcon={MessageCircle}>
|
||||
{form._count.responses} {form._count.responses === 1 ? "response" : "responses"}
|
||||
</Badge>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@ import z from "zod";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button, Form, showToast, TextField } from "@calcom/ui";
|
||||
import { FiCheck, FiX } from "@calcom/ui/components/icon";
|
||||
import { Check, X } from "@calcom/ui/components/icon";
|
||||
|
||||
const formSchema = z.object({
|
||||
api_key: z.string(),
|
||||
@@ -102,7 +102,7 @@ export default function SendgridSetup() {
|
||||
type="submit"
|
||||
loading={testLoading}
|
||||
disabled={testPassed === true}
|
||||
StartIcon={testPassed !== undefined ? (testPassed ? FiCheck : FiX) : undefined}
|
||||
StartIcon={testPassed !== undefined ? (testPassed ? Check : X) : undefined}
|
||||
className={
|
||||
testPassed !== undefined
|
||||
? testPassed
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@ import { useState } from "react";
|
||||
import { useAppContextWithSchema } from "@calcom/app-store/EventTypeAppContext";
|
||||
import AppCard from "@calcom/app-store/_components/AppCard";
|
||||
import type { EventTypeAppCardComponent } from "@calcom/app-store/types";
|
||||
import { FiSunrise, FiSunset } from "@calcom/ui/components/icon";
|
||||
import { Sunrise, Sunset } from "@calcom/ui/components/icon";
|
||||
|
||||
import type { appDataSchema } from "../zod";
|
||||
|
||||
@@ -28,8 +28,8 @@ const EventTypeAppCard: EventTypeAppCardComponent = function EventTypeAppCard({
|
||||
switchChecked={enabled}>
|
||||
<div className="mt-2 text-sm">
|
||||
<div className="flex">
|
||||
<span className="ltr:mr-2 rtl:ml-2">{isSunrise ? <FiSunrise /> : <FiSunset />}</span>I am an AppCard
|
||||
for Event with Title: {eventType.title}
|
||||
<span className="ltr:mr-2 rtl:ml-2">{isSunrise ? <Sunrise /> : <Sunset />}</span>I am an AppCard for
|
||||
Event with Title: {eventType.title}
|
||||
</div>{" "}
|
||||
<div className="mt-2">
|
||||
Edit <span className="italic">packages/app-store/{app.slug}/EventTypeAppCardInterface.tsx</span> to
|
||||
|
||||
@@ -2,7 +2,7 @@ import Link from "next/link";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button } from "@calcom/ui";
|
||||
import { FiExternalLink } from "@calcom/ui/components/icon";
|
||||
import { ExternalLink } from "@calcom/ui/components/icon";
|
||||
|
||||
export default function HowToUse() {
|
||||
const { t } = useLocale();
|
||||
@@ -31,7 +31,7 @@ export default function HowToUse() {
|
||||
href="/api/app-store/typeform/copy-typeform-redirect-url.png"
|
||||
target="_blank"
|
||||
className="text-subtle inline-flex items-baseline text-base">
|
||||
<FiExternalLink className="text-subtle h-4 w-4 ltr:mr-2 rtl:ml-2" aria-hidden="true" />
|
||||
<ExternalLink className="text-subtle h-4 w-4 ltr:mr-2 rtl:ml-2" aria-hidden="true" />
|
||||
Click "Copy Typeform Redirect URL"
|
||||
</Link>
|
||||
</li>
|
||||
@@ -42,7 +42,7 @@ export default function HowToUse() {
|
||||
href="https://www.typeform.com/help/a/end-screens-and-redirects-360051791392/#h_01G0CFXF21W2EQ8PXKSB4KSC8P"
|
||||
target="_blank"
|
||||
className="text-subtle inline-flex items-baseline text-base">
|
||||
<FiExternalLink className="text-subtle h-4 w-4 ltr:mr-2 rtl:ml-2" aria-hidden="true" />
|
||||
<ExternalLink className="text-subtle h-4 w-4 ltr:mr-2 rtl:ml-2" aria-hidden="true" />
|
||||
Redirect to your typeform
|
||||
</Link>
|
||||
</li>
|
||||
@@ -52,7 +52,7 @@ export default function HowToUse() {
|
||||
href="https://www.typeform.com/help/a/use-recall-information-to-reference-typeform-answers-variables-and-more-360052320011/"
|
||||
target="_blank"
|
||||
className="text-subtle inline-flex items-baseline text-base">
|
||||
<FiExternalLink className="text-subtle h-4 w-4 ltr:mr-2 rtl:ml-2" aria-hidden="true" />
|
||||
<ExternalLink className="text-subtle h-4 w-4 ltr:mr-2 rtl:ml-2" aria-hidden="true" />
|
||||
Recall Information in Typeform
|
||||
</Link>{" "}
|
||||
to add values to query params.
|
||||
|
||||
@@ -6,7 +6,7 @@ import { Toaster } from "react-hot-toast";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button, showToast, Tooltip } from "@calcom/ui";
|
||||
import { FiClipboard } from "@calcom/ui/components/icon";
|
||||
import { Clipboard } from "@calcom/ui/components/icon";
|
||||
|
||||
export interface IZapierSetupProps {
|
||||
inviteLink: string;
|
||||
@@ -76,7 +76,7 @@ export default function ZapierSetup(props: IZapierSetupProps) {
|
||||
}}
|
||||
type="button"
|
||||
className="mt-4 text-base sm:mt-0 sm:rounded-l-none">
|
||||
<FiClipboard className="h-5 w-5 text-gray-100 ltr:mr-2 rtl:ml-2" />
|
||||
<Clipboard className="h-5 w-5 text-gray-100 ltr:mr-2 rtl:ml-2" />
|
||||
{t("copy")}
|
||||
</Button>
|
||||
</Tooltip>
|
||||
|
||||
@@ -30,7 +30,7 @@ import {
|
||||
TextField,
|
||||
Switch,
|
||||
} from "@calcom/ui";
|
||||
import { FiAlertCircle, FiEdit } from "@calcom/ui/components/icon";
|
||||
import { AlertCircle, Edit } from "@calcom/ui/components/icon";
|
||||
|
||||
import AppListCard from "../../../apps/web/components/AppListCard";
|
||||
|
||||
@@ -92,7 +92,7 @@ const IntegrationContainer = ({
|
||||
<div className="flex items-center justify-self-end">
|
||||
{app.keys && (
|
||||
<Button color="secondary" className="mr-2" onClick={() => showKeyModal()}>
|
||||
<FiEdit />
|
||||
<Edit />
|
||||
</Button>
|
||||
)}
|
||||
|
||||
@@ -295,7 +295,7 @@ const AdminAppsListContainer = () => {
|
||||
if (!apps) {
|
||||
return (
|
||||
<EmptyScreen
|
||||
Icon={FiAlertCircle}
|
||||
Icon={AlertCircle}
|
||||
headline={t("no_available_apps")}
|
||||
description={t("no_available_apps_description")}
|
||||
/>
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
Button,
|
||||
DialogClose,
|
||||
} from "@calcom/ui";
|
||||
import { FiAlertCircle } from "@calcom/ui/components/icon";
|
||||
import { AlertCircle } from "@calcom/ui/components/icon";
|
||||
|
||||
type LocationTypeSetLinkDialogFormProps = {
|
||||
link?: string;
|
||||
@@ -57,7 +57,7 @@ export function AppSetDefaultLinkDialog({
|
||||
title={t("default_app_link_title")}
|
||||
description={t("default_app_link_description")}
|
||||
type="creation"
|
||||
Icon={FiAlertCircle}>
|
||||
Icon={AlertCircle}>
|
||||
<Form
|
||||
form={form}
|
||||
handleSubmit={(values) => {
|
||||
|
||||
@@ -2,9 +2,9 @@ import { useState } from "react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import type { ButtonProps } from "@calcom/ui";
|
||||
import {
|
||||
Button,
|
||||
ButtonProps,
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogTrigger,
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
DialogFooter,
|
||||
DialogClose,
|
||||
} from "@calcom/ui";
|
||||
import { FiTrash, FiAlertCircle } from "@calcom/ui/components/icon";
|
||||
import { Trash, AlertCircle } 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 ? FiTrash : undefined}
|
||||
StartIcon={trashIcon ? Trash : 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={FiAlertCircle}>
|
||||
Icon={AlertCircle}>
|
||||
<DialogFooter>
|
||||
<DialogClose onClick={() => setModalOpen(false)} />
|
||||
<DialogClose color="primary" onClick={() => mutation.mutate({ id: credentialId })}>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Dialog, DialogContent, showToast, DialogFooter, DialogClose } from "@calcom/ui";
|
||||
import { FiAlertCircle } from "@calcom/ui/components/icon";
|
||||
import { AlertCircle } from "@calcom/ui/components/icon";
|
||||
|
||||
interface DisconnectIntegrationModalProps {
|
||||
credentialId: number | null;
|
||||
@@ -36,7 +36,7 @@ export default function DisconnectIntegrationModal({
|
||||
title={t("remove_app")}
|
||||
description={t("are_you_sure_you_want_to_remove_this_app")}
|
||||
type="confirmation"
|
||||
Icon={FiAlertCircle}>
|
||||
Icon={AlertCircle}>
|
||||
<DialogFooter>
|
||||
<DialogClose onClick={handleModelClose} />
|
||||
<DialogClose
|
||||
|
||||
@@ -7,7 +7,7 @@ import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button } from "@calcom/ui";
|
||||
import { FiLock } from "@calcom/ui/components/icon";
|
||||
import { Lock } from "@calcom/ui/components/icon";
|
||||
|
||||
interface Props {
|
||||
samlTenantID: string;
|
||||
@@ -34,7 +34,7 @@ export function SAMLLogin({ samlTenantID, samlProductID, setErrorMessage }: Prop
|
||||
|
||||
return (
|
||||
<Button
|
||||
StartIcon={FiLock}
|
||||
StartIcon={Lock}
|
||||
color="secondary"
|
||||
data-testid="saml"
|
||||
className="flex w-full justify-center"
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useState } from "react";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { AnimatedPopover, Avatar } from "@calcom/ui";
|
||||
import { FiUser } from "@calcom/ui/components/icon";
|
||||
import { User } from "@calcom/ui/components/icon";
|
||||
|
||||
import { useFilterQuery } from "../lib/useFilterQuery";
|
||||
|
||||
@@ -22,7 +22,7 @@ export const PeopleFilter = () => {
|
||||
<AnimatedPopover text={userNames && userNames.length > 0 ? `${userNames.join(", ")}` : dropdownTitle}>
|
||||
<div className="item-center focus-within:bg-subtle hover:bg-muted flex px-4 py-[6px] hover:cursor-pointer">
|
||||
<div className="text-default flex h-6 w-6 items-center justify-center ltr:mr-2 rtl:ml-2">
|
||||
<FiUser className="h-5 w-5" />
|
||||
<User className="h-5 w-5" />
|
||||
</div>
|
||||
<label htmlFor="allUsers" className="text-default mr-auto self-center truncate text-sm font-medium">
|
||||
{t("all_users_filter_label")}
|
||||
|
||||
@@ -4,7 +4,7 @@ import { useState } from "react";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { AnimatedPopover, Avatar } from "@calcom/ui";
|
||||
import { FiLayers, FiUser } from "@calcom/ui/components/icon";
|
||||
import { Layers, User } from "@calcom/ui/components/icon";
|
||||
|
||||
import { useFilterQuery } from "../lib/useFilterQuery";
|
||||
|
||||
@@ -24,7 +24,7 @@ export const TeamsMemberFilter = () => {
|
||||
<AnimatedPopover text={teamNames && teamNames.length > 0 ? `${teamNames.join(", ")}` : dropdownTitle}>
|
||||
<div className="item-center focus-within:bg-subtle hover:bg-muted flex px-4 py-[6px] hover:cursor-pointer">
|
||||
<div className="text-default flex h-6 w-6 items-center justify-center ltr:mr-2 rtl:ml-2">
|
||||
<FiLayers className="h-5 w-5" />
|
||||
<Layers className="h-5 w-5" />
|
||||
</div>
|
||||
<label
|
||||
htmlFor="allBookings"
|
||||
@@ -45,7 +45,7 @@ export const TeamsMemberFilter = () => {
|
||||
</div>
|
||||
<div className="item-center focus-within:bg-subtle hover:bg-muted flex px-4 py-[6px] hover:cursor-pointer">
|
||||
<div className="text-default flex h-6 w-6 items-center justify-center ltr:mr-2 rtl:ml-2">
|
||||
<FiUser className="h-5 w-5" />
|
||||
<User className="h-5 w-5" />
|
||||
</div>
|
||||
<label
|
||||
htmlFor="yourBookings"
|
||||
|
||||
@@ -8,7 +8,7 @@ import { daysInMonth, yyyymmdd } from "@calcom/lib/date-fns";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { weekdayNames } from "@calcom/lib/weekday";
|
||||
import { Button, SkeletonText } from "@calcom/ui";
|
||||
import { FiArrowRight } from "@calcom/ui/components/icon";
|
||||
import { ArrowRight } 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 */
|
||||
@@ -82,7 +82,7 @@ const NoAvailabilityOverlay = ({
|
||||
return (
|
||||
<div className=" bg-muted border-subtle absolute top-40 left-1/2 -mt-10 w-max -translate-x-1/2 -translate-y-1/2 transform rounded-md border p-8 shadow-sm">
|
||||
<h4 className="text-emphasis mb-4 font-medium">{t("no_availability_in_month", { month: month })}</h4>
|
||||
<Button onClick={nextMonthButton} color="primary" EndIcon={FiArrowRight}>
|
||||
<Button onClick={nextMonthButton} color="primary" EndIcon={ArrowRight}>
|
||||
{t("view_next_month")}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import dayjs from "@calcom/dayjs";
|
||||
import { Button, ButtonGroup } from "@calcom/ui";
|
||||
import { FiChevronLeft, FiChevronRight } from "@calcom/ui/components/icon";
|
||||
import { ChevronLeft, ChevronRight } from "@calcom/ui/components/icon";
|
||||
|
||||
import { useCalendarStore } from "../../state/store";
|
||||
|
||||
@@ -30,7 +30,7 @@ export function SchedulerHeading() {
|
||||
<ButtonGroup combined>
|
||||
{/* TODO: i18n label with correct view */}
|
||||
<Button
|
||||
StartIcon={FiChevronLeft}
|
||||
StartIcon={ChevronLeft}
|
||||
variant="icon"
|
||||
color="secondary"
|
||||
aria-label="Previous Week"
|
||||
@@ -39,7 +39,7 @@ export function SchedulerHeading() {
|
||||
}}
|
||||
/>
|
||||
<Button
|
||||
StartIcon={FiChevronRight}
|
||||
StartIcon={ChevronRight}
|
||||
variant="icon"
|
||||
color="secondary"
|
||||
aria-label="Next Week"
|
||||
|
||||
@@ -7,7 +7,7 @@ import LicenseRequired from "@calcom/ee/common/components/v2/LicenseRequired";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button, DatePicker, DialogFooter, Form, showToast, Switch, TextField, Tooltip } from "@calcom/ui";
|
||||
import { FiClipboard } from "@calcom/ui/components/icon";
|
||||
import { Clipboard } from "@calcom/ui/components/icon";
|
||||
|
||||
export default function ApiKeyDialogForm({
|
||||
defaultValues,
|
||||
@@ -74,7 +74,7 @@ export default function ApiKeyDialogForm({
|
||||
}}
|
||||
type="button"
|
||||
className="rounded-l-none py-[19px] text-base ">
|
||||
<FiClipboard className="h-5 w-5 text-gray-100 ltr:mr-2 rtl:ml-2" />
|
||||
<Clipboard className="h-5 w-5 text-gray-100 ltr:mr-2 rtl:ml-2" />
|
||||
{t("copy")}
|
||||
</Button>
|
||||
</Tooltip>
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
DropdownMenuItem,
|
||||
DropdownMenuTrigger,
|
||||
} from "@calcom/ui";
|
||||
import { FiMoreHorizontal, FiEdit2, FiTrash } from "@calcom/ui/components/icon";
|
||||
import { MoreHorizontal, Edit2, Trash } from "@calcom/ui/components/icon";
|
||||
|
||||
export type TApiKeys = RouterOutputs["viewer"]["apiKeys"]["list"][number];
|
||||
|
||||
@@ -59,12 +59,12 @@ const ApiKeyListItem = ({
|
||||
<div>
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button type="button" variant="icon" color="secondary" StartIcon={FiMoreHorizontal} />
|
||||
<Button type="button" variant="icon" color="secondary" StartIcon={MoreHorizontal} />
|
||||
</DropdownMenuTrigger>
|
||||
|
||||
<DropdownMenuContent>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem type="button" onClick={onEditClick} StartIcon={FiEdit2}>
|
||||
<DropdownItem type="button" onClick={onEditClick} StartIcon={Edit2}>
|
||||
{t("edit") as string}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -76,7 +76,7 @@ const ApiKeyListItem = ({
|
||||
id: apiKey.id,
|
||||
})
|
||||
}
|
||||
StartIcon={FiTrash}>
|
||||
StartIcon={Trash}>
|
||||
{t("delete") as string}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
|
||||
@@ -5,12 +5,13 @@
|
||||
*/
|
||||
import DOMPurify from "dompurify";
|
||||
import { useSession } from "next-auth/react";
|
||||
import React, { AriaRole, ComponentType, Fragment } from "react";
|
||||
import type { AriaRole, ComponentType } from "react";
|
||||
import React, { Fragment } from "react";
|
||||
|
||||
import { APP_NAME, WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { EmptyScreen } from "@calcom/ui";
|
||||
import { FiAlertTriangle } from "@calcom/ui/components/icon";
|
||||
import { AlertTriangle } from "@calcom/ui/components/icon";
|
||||
|
||||
type LicenseRequiredProps = {
|
||||
as?: keyof JSX.IntrinsicElements | "";
|
||||
@@ -36,7 +37,7 @@ const LicenseRequired = ({ children, as = "", ...rest }: LicenseRequiredProps) =
|
||||
children
|
||||
) : (
|
||||
<EmptyScreen
|
||||
Icon={FiAlertTriangle}
|
||||
Icon={AlertTriangle}
|
||||
headline={t("enterprise_license")}
|
||||
description={
|
||||
<div
|
||||
|
||||
@@ -6,7 +6,7 @@ import React, { Fragment } from "react";
|
||||
import { APP_NAME, CONSOLE_URL, SUPPORT_MAIL_ADDRESS, WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { EmptyScreen } from "@calcom/ui";
|
||||
import { FiAlertTriangle } from "@calcom/ui/components/icon";
|
||||
import { AlertTriangle } from "@calcom/ui/components/icon";
|
||||
|
||||
type LicenseRequiredProps = {
|
||||
as?: keyof JSX.IntrinsicElements | "";
|
||||
@@ -27,7 +27,7 @@ const LicenseRequired = ({ children, as = "", ...rest }: LicenseRequiredProps) =
|
||||
children
|
||||
) : (
|
||||
<EmptyScreen
|
||||
Icon={FiAlertTriangle}
|
||||
Icon={AlertTriangle}
|
||||
headline={t("enterprise_license")}
|
||||
description={
|
||||
<div
|
||||
|
||||
@@ -16,7 +16,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 { FiCreditCard } from "@calcom/ui/components/icon";
|
||||
import { CreditCard } from "@calcom/ui/components/icon";
|
||||
|
||||
import type { PaymentPageProps } from "../pages/payment";
|
||||
import PaymentComponent from "./Payment";
|
||||
@@ -81,7 +81,7 @@ const PaymentPage: FC<PaymentPageProps> = (props) => {
|
||||
aria-labelledby="modal-headline">
|
||||
<div>
|
||||
<div className="bg-success mx-auto flex h-12 w-12 items-center justify-center rounded-full">
|
||||
<FiCreditCard className="h-8 w-8 text-green-600" />
|
||||
<CreditCard className="h-8 w-8 text-green-600" />
|
||||
</div>
|
||||
|
||||
<div className="mt-3 text-center sm:mt-5">
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
DialogTrigger,
|
||||
Label,
|
||||
} from "@calcom/ui";
|
||||
import { FiClipboard } from "@calcom/ui/components/icon";
|
||||
import { Clipboard } from "@calcom/ui/components/icon";
|
||||
|
||||
export default function ConnectionInfo({
|
||||
teamId,
|
||||
@@ -99,7 +99,7 @@ const SAMLInfo = ({ acsUrl, entityId }: { acsUrl: string | null; entityId: strin
|
||||
}}
|
||||
type="button"
|
||||
className="rounded-l-none py-[19px] text-base ">
|
||||
<FiClipboard className="h-5 w-5 text-gray-100 ltr:mr-2 rtl:ml-2" />
|
||||
<Clipboard className="h-5 w-5 text-gray-100 ltr:mr-2 rtl:ml-2" />
|
||||
{t("copy")}
|
||||
</Button>
|
||||
</Tooltip>
|
||||
@@ -121,7 +121,7 @@ const SAMLInfo = ({ acsUrl, entityId }: { acsUrl: string | null; entityId: strin
|
||||
}}
|
||||
type="button"
|
||||
className="rounded-l-none py-[19px] text-base ">
|
||||
<FiClipboard className="h-5 w-5 text-gray-100 ltr:mr-2 rtl:ml-2" />
|
||||
<Clipboard className="h-5 w-5 text-gray-100 ltr:mr-2 rtl:ml-2" />
|
||||
{t("copy")}
|
||||
</Button>
|
||||
</Tooltip>
|
||||
@@ -157,7 +157,7 @@ const OIDCInfo = ({ callbackUrl }: { callbackUrl: string | null }) => {
|
||||
}}
|
||||
type="button"
|
||||
className="rounded-l-none py-[19px] text-base ">
|
||||
<FiClipboard className="h-5 w-5 text-gray-100 ltr:mr-2 rtl:ml-2" />
|
||||
<Clipboard className="h-5 w-5 text-gray-100 ltr:mr-2 rtl:ml-2" />
|
||||
{t("copy")}
|
||||
</Button>
|
||||
</Tooltip>
|
||||
|
||||
@@ -5,7 +5,7 @@ import classNames from "@calcom/lib/classNames";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button, showToast, TextArea } from "@calcom/ui";
|
||||
import { FiExternalLink, FiAlertTriangle } from "@calcom/ui/components/icon";
|
||||
import { ExternalLink, AlertTriangle } from "@calcom/ui/components/icon";
|
||||
|
||||
import { useFreshChat } from "../lib/freshchat/FreshChatProvider";
|
||||
import { isFreshChatEnabled } from "../lib/freshchat/FreshChatScript";
|
||||
@@ -55,7 +55,7 @@ export default function HelpMenuItem({ onHelpItemSelect }: HelpMenuItemProps) {
|
||||
className="hover:bg-subtle hover:text-emphasis text-default flex w-full px-5 py-2 pr-4 text-sm font-medium"
|
||||
rel="noreferrer">
|
||||
{t("documentation")}
|
||||
<FiExternalLink
|
||||
<ExternalLink
|
||||
className={classNames(
|
||||
"group-hover:text-subtle text-muted",
|
||||
"ml-1 mt-px h-4 w-4 flex-shrink-0 ltr:mr-3"
|
||||
@@ -174,7 +174,7 @@ export default function HelpMenuItem({ onHelpItemSelect }: HelpMenuItemProps) {
|
||||
{mutation.isError && (
|
||||
<div className="bg-error mb-4 flex p-4 text-sm text-red-700">
|
||||
<div className="flex-shrink-0">
|
||||
<FiAlertTriangle className="h-5 w-5" />
|
||||
<AlertTriangle className="h-5 w-5" />
|
||||
</div>
|
||||
<div className="ml-3 flex-grow">
|
||||
<p className="font-medium">{t("feedback_error")}</p>
|
||||
|
||||
@@ -10,7 +10,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import type { RouterOutputs } from "@calcom/trpc/react";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Avatar, Badge, Button, showToast, SkeletonContainer, SkeletonText } from "@calcom/ui";
|
||||
import { FiPlus, FiArrowRight, FiTrash2 } from "@calcom/ui/components/icon";
|
||||
import { Plus, ArrowRight, Trash2 } from "@calcom/ui/components/icon";
|
||||
|
||||
const querySchema = z.object({
|
||||
id: z.string().transform((val) => parseInt(val)),
|
||||
@@ -80,7 +80,7 @@ export const AddNewTeamMembersForm = ({
|
||||
<Button
|
||||
color="secondary"
|
||||
data-testid="new-member-button"
|
||||
StartIcon={FiPlus}
|
||||
StartIcon={Plus}
|
||||
onClick={() => setMemberInviteModal(true)}
|
||||
className="mt-6 w-full justify-center">
|
||||
{t("add_team_member")}
|
||||
@@ -102,7 +102,7 @@ export const AddNewTeamMembersForm = ({
|
||||
/>
|
||||
<hr className="border-subtle my-6" />
|
||||
<Button
|
||||
EndIcon={FiArrowRight}
|
||||
EndIcon={ArrowRight}
|
||||
className="mt-6 w-full justify-center"
|
||||
disabled={publishTeamMutation.isLoading}
|
||||
onClick={() => {
|
||||
@@ -179,7 +179,7 @@ const PendingMemberItem = (props: { member: TeamMember; index: number; teamId: n
|
||||
{member.role !== "OWNER" && (
|
||||
<Button
|
||||
data-testid="remove-member-button"
|
||||
StartIcon={FiTrash2}
|
||||
StartIcon={Trash2}
|
||||
variant="icon"
|
||||
color="secondary"
|
||||
className="h-[36px] w-[36px]"
|
||||
|
||||
@@ -9,7 +9,7 @@ import slugify from "@calcom/lib/slugify";
|
||||
import { telemetryEventTypes, useTelemetry } from "@calcom/lib/telemetry";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Avatar, Button, Form, ImageUploader, TextField, Alert } from "@calcom/ui";
|
||||
import { FiArrowRight } from "@calcom/ui/components/icon";
|
||||
import { ArrowRight } from "@calcom/ui/components/icon";
|
||||
|
||||
import type { NewTeamFormValues } from "../lib/types";
|
||||
|
||||
@@ -151,7 +151,7 @@ export const CreateANewTeamForm = () => {
|
||||
<Button
|
||||
disabled={newTeamFormMethods.formState.isSubmitting || createTeamMutation.isLoading}
|
||||
color="primary"
|
||||
EndIcon={FiArrowRight}
|
||||
EndIcon={ArrowRight}
|
||||
type="submit"
|
||||
className="w-full justify-center">
|
||||
{t("continue")}
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
showToast,
|
||||
Tooltip,
|
||||
} from "@calcom/ui";
|
||||
import { FiExternalLink, FiMoreHorizontal, FiEdit2, FiLock, FiTrash } from "@calcom/ui/components/icon";
|
||||
import { ExternalLink, MoreHorizontal, Edit2, Lock, Trash } from "@calcom/ui/components/icon";
|
||||
|
||||
import MemberChangeRoleModal from "./MemberChangeRoleModal";
|
||||
import TeamPill, { TeamRole } from "./TeamPill";
|
||||
@@ -149,7 +149,7 @@ export default function MemberListItem(props: Props) {
|
||||
onClick={() => (props.member.accepted ? setShowTeamAvailabilityModal(true) : null)}
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
StartIcon={FiClock}
|
||||
StartIcon={Clock}
|
||||
/>
|
||||
</Tooltip> */}
|
||||
<Tooltip content={t("view_public_page")}>
|
||||
@@ -159,7 +159,7 @@ export default function MemberListItem(props: Props) {
|
||||
color="secondary"
|
||||
className={classNames(!editMode ? "rounded-r-md" : "")}
|
||||
variant="icon"
|
||||
StartIcon={FiExternalLink}
|
||||
StartIcon={ExternalLink}
|
||||
/>
|
||||
</Tooltip>
|
||||
{editMode && (
|
||||
@@ -169,7 +169,7 @@ export default function MemberListItem(props: Props) {
|
||||
className="radix-state-open:rounded-r-md"
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
StartIcon={FiMoreHorizontal}
|
||||
StartIcon={MoreHorizontal}
|
||||
/>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent>
|
||||
@@ -177,7 +177,7 @@ export default function MemberListItem(props: Props) {
|
||||
<DropdownItem
|
||||
type="button"
|
||||
onClick={() => setShowChangeMemberRoleModal(true)}
|
||||
StartIcon={FiEdit2}>
|
||||
StartIcon={Edit2}>
|
||||
{t("edit")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -187,7 +187,7 @@ export default function MemberListItem(props: Props) {
|
||||
<DropdownItem
|
||||
type="button"
|
||||
onClick={() => setShowImpersonateModal(true)}
|
||||
StartIcon={FiLock}>
|
||||
StartIcon={Lock}>
|
||||
{t("impersonate")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -199,7 +199,7 @@ export default function MemberListItem(props: Props) {
|
||||
type="button"
|
||||
onClick={() => setShowDeleteModal(true)}
|
||||
color="destructive"
|
||||
StartIcon={FiTrash}>
|
||||
StartIcon={Trash}>
|
||||
{t("delete")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -210,11 +210,11 @@ export default function MemberListItem(props: Props) {
|
||||
<div className="flex md:hidden">
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button type="button" variant="icon" color="minimal" StartIcon={FiMoreHorizontal} />
|
||||
<Button type="button" variant="icon" color="minimal" StartIcon={MoreHorizontal} />
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent>
|
||||
<DropdownMenuItem className="outline-none">
|
||||
<DropdownItem type="button" StartIcon={FiExternalLink}>
|
||||
<DropdownItem type="button" StartIcon={ExternalLink}>
|
||||
{t("view_public_page")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -224,7 +224,7 @@ export default function MemberListItem(props: Props) {
|
||||
<DropdownItem
|
||||
type="button"
|
||||
onClick={() => setShowChangeMemberRoleModal(true)}
|
||||
StartIcon={FiEdit2}>
|
||||
StartIcon={Edit2}>
|
||||
{t("edit")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -233,7 +233,7 @@ export default function MemberListItem(props: Props) {
|
||||
type="button"
|
||||
color="destructive"
|
||||
onClick={() => setShowDeleteModal(true)}
|
||||
StartIcon={FiTrash}>
|
||||
StartIcon={Trash}>
|
||||
{t("delete")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
DropdownItem,
|
||||
DropdownMenuTrigger,
|
||||
} from "@calcom/ui";
|
||||
import { FiSlash, FiCheck, FiMoreHorizontal, FiX } from "@calcom/ui/components/icon";
|
||||
import { Slash, Check, MoreHorizontal, X } 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={FiSlash}
|
||||
StartIcon={Slash}
|
||||
/>
|
||||
<Button
|
||||
type="button"
|
||||
@@ -101,22 +101,22 @@ export default function TeamInviteListItem(props: Props) {
|
||||
variant="icon"
|
||||
color="secondary"
|
||||
onClick={acceptInvite}
|
||||
StartIcon={FiCheck}
|
||||
StartIcon={Check}
|
||||
/>
|
||||
</div>
|
||||
<div className="block sm:hidden">
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button type="button" color="minimal" variant="icon" StartIcon={FiMoreHorizontal} />
|
||||
<Button type="button" color="minimal" variant="icon" StartIcon={MoreHorizontal} />
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem type="button" StartIcon={FiCheck} onClick={acceptInvite}>
|
||||
<DropdownItem type="button" StartIcon={Check} onClick={acceptInvite}>
|
||||
{t("accept")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem color="destructive" type="button" StartIcon={FiX} onClick={declineInvite}>
|
||||
<DropdownItem color="destructive" type="button" StartIcon={X} onClick={declineInvite}>
|
||||
{t("reject")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
|
||||
@@ -4,7 +4,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import type { RouterOutputs } from "@calcom/trpc/react";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Card, showToast } from "@calcom/ui";
|
||||
import { FiUserPlus, FiUsers, FiEdit } from "@calcom/ui/components/icon";
|
||||
import { UserPlus, Users, Edit } from "@calcom/ui/components/icon";
|
||||
|
||||
import TeamListItem from "./TeamListItem";
|
||||
|
||||
@@ -66,7 +66,7 @@ export default function TeamList(props: Props) {
|
||||
<h3 className="text-emphasis mb-4 text-sm font-semibold">{t("recommended_next_steps")}</h3>
|
||||
<div className="grid-col-1 grid gap-2 md:grid-cols-3">
|
||||
<Card
|
||||
icon={<FiUserPlus className="h-5 w-5 text-green-700" />}
|
||||
icon={<UserPlus className="h-5 w-5 text-green-700" />}
|
||||
variant="basic"
|
||||
title={t("invite_team_member")}
|
||||
description={t("meetings_are_better_with_the_right")}
|
||||
@@ -77,7 +77,7 @@ export default function TeamList(props: Props) {
|
||||
/>
|
||||
{/* @TODO: uncomment once managed event types is live
|
||||
<Card
|
||||
icon={<FiUnlock className="h-5 w-5 text-blue-700" />}
|
||||
icon={<Unlock className="h-5 w-5 text-blue-700" />}
|
||||
variant="basic"
|
||||
title={t("create_a_managed_event")}
|
||||
description={t("create_a_one_one_template")}
|
||||
@@ -92,7 +92,7 @@ export default function TeamList(props: Props) {
|
||||
}}
|
||||
/> */}
|
||||
<Card
|
||||
icon={<FiUsers className="h-5 w-5 text-orange-700" />}
|
||||
icon={<Users className="h-5 w-5 text-orange-700" />}
|
||||
variant="basic"
|
||||
title={t("collective_or_roundrobin")}
|
||||
description={t("book_your_team_members")}
|
||||
@@ -102,7 +102,7 @@ export default function TeamList(props: Props) {
|
||||
}}
|
||||
/>
|
||||
<Card
|
||||
icon={<FiEdit className="h-5 w-5 text-purple-700" />}
|
||||
icon={<Edit className="h-5 w-5 text-purple-700" />}
|
||||
variant="basic"
|
||||
title={t("appearance")}
|
||||
description={t("appearance_subtitle")}
|
||||
|
||||
@@ -26,16 +26,16 @@ import {
|
||||
Tooltip,
|
||||
} from "@calcom/ui";
|
||||
import {
|
||||
FiMoreHorizontal,
|
||||
FiCheck,
|
||||
FiX,
|
||||
FiLink,
|
||||
FiEdit2,
|
||||
FiExternalLink,
|
||||
FiTrash,
|
||||
FiLogOut,
|
||||
FiGlobe,
|
||||
FiSend,
|
||||
MoreHorizontal,
|
||||
Check,
|
||||
X,
|
||||
Link as LinkIcon,
|
||||
Edit2,
|
||||
ExternalLink,
|
||||
Trash,
|
||||
LogOut,
|
||||
Globe,
|
||||
Send,
|
||||
} from "@calcom/ui/components/icon";
|
||||
|
||||
import { TeamRole } from "./TeamPill";
|
||||
@@ -153,7 +153,7 @@ export default function TeamListItem(props: Props) {
|
||||
<Button
|
||||
type="button"
|
||||
color="secondary"
|
||||
StartIcon={FiCheck}
|
||||
StartIcon={Check}
|
||||
className="ms-2 me-2"
|
||||
onClick={acceptInvite}>
|
||||
{t("accept")}
|
||||
@@ -162,16 +162,16 @@ export default function TeamListItem(props: Props) {
|
||||
<div className="block sm:hidden">
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button type="button" color="minimal" variant="icon" StartIcon={FiMoreHorizontal} />
|
||||
<Button type="button" color="minimal" variant="icon" StartIcon={MoreHorizontal} />
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem type="button" StartIcon={FiCheck} onClick={acceptInvite}>
|
||||
<DropdownItem type="button" StartIcon={Check} onClick={acceptInvite}>
|
||||
{t("accept")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem color="destructive" type="button" StartIcon={FiX} onClick={declineInvite}>
|
||||
<DropdownItem color="destructive" type="button" StartIcon={X} onClick={declineInvite}>
|
||||
{t("reject")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -194,7 +194,7 @@ export default function TeamListItem(props: Props) {
|
||||
showToast(t("link_copied"), "success");
|
||||
}}
|
||||
variant="icon"
|
||||
StartIcon={FiLink}
|
||||
StartIcon={LinkIcon}
|
||||
/>
|
||||
</Tooltip>
|
||||
)}
|
||||
@@ -205,7 +205,7 @@ export default function TeamListItem(props: Props) {
|
||||
type="button"
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
StartIcon={FiMoreHorizontal}
|
||||
StartIcon={MoreHorizontal}
|
||||
/>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent hidden={hideDropdown}>
|
||||
@@ -214,7 +214,7 @@ export default function TeamListItem(props: Props) {
|
||||
<DropdownItem
|
||||
type="button"
|
||||
href={"/settings/teams/" + team.id + "/profile"}
|
||||
StartIcon={FiEdit2}>
|
||||
StartIcon={Edit2}>
|
||||
{t("edit_team") as string}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -226,7 +226,7 @@ export default function TeamListItem(props: Props) {
|
||||
type="button"
|
||||
target="_blank"
|
||||
href={`${process.env.NEXT_PUBLIC_WEBSITE_URL}/team/${team.slug}`}
|
||||
StartIcon={FiExternalLink}>
|
||||
StartIcon={ExternalLink}>
|
||||
{t("preview_team") as string}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -237,7 +237,7 @@ export default function TeamListItem(props: Props) {
|
||||
onClick={() => {
|
||||
setOpenMemberInvitationModal(true);
|
||||
}}
|
||||
StartIcon={FiSend}>
|
||||
StartIcon={Send}>
|
||||
{t("invite_team_member") as string}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -249,7 +249,7 @@ export default function TeamListItem(props: Props) {
|
||||
<DropdownItem
|
||||
color="destructive"
|
||||
type="button"
|
||||
StartIcon={FiTrash}
|
||||
StartIcon={Trash}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
}}>
|
||||
@@ -277,7 +277,7 @@ export default function TeamListItem(props: Props) {
|
||||
<DropdownItem
|
||||
color="destructive"
|
||||
type="button"
|
||||
StartIcon={FiLogOut}
|
||||
StartIcon={LogOut}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
}}>
|
||||
@@ -324,7 +324,7 @@ const TeamPublishButton = ({ teamId }: { teamId: number }) => {
|
||||
onClick={() => {
|
||||
publishTeamMutation.mutate({ teamId });
|
||||
}}
|
||||
StartIcon={FiGlobe}>
|
||||
StartIcon={Globe}>
|
||||
{t("team_publish")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
|
||||
@@ -5,7 +5,7 @@ import { APP_NAME } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Alert, Button, ButtonGroup, Label } from "@calcom/ui";
|
||||
import { FiUsers, FiRefreshCcw, FiUserPlus, FiMail, FiVideo, FiEyeOff } from "@calcom/ui/components/icon";
|
||||
import { Users, RefreshCcw, UserPlus, Mail, Video, EyeOff } from "@calcom/ui/components/icon";
|
||||
|
||||
import { UpgradeTip } from "../../../tips";
|
||||
import SkeletonLoaderTeamList from "./SkeletonloaderTeamList";
|
||||
@@ -26,32 +26,32 @@ export function TeamsListing() {
|
||||
|
||||
const features = [
|
||||
{
|
||||
icon: <FiUsers className="h-5 w-5 text-red-500" />,
|
||||
icon: <Users className="h-5 w-5 text-red-500" />,
|
||||
title: t("collective_scheduling"),
|
||||
description: t("make_it_easy_to_book"),
|
||||
},
|
||||
{
|
||||
icon: <FiRefreshCcw className="h-5 w-5 text-blue-500" />,
|
||||
icon: <RefreshCcw className="h-5 w-5 text-blue-500" />,
|
||||
title: t("round_robin"),
|
||||
description: t("find_the_best_person"),
|
||||
},
|
||||
{
|
||||
icon: <FiUserPlus className="h-5 w-5 text-green-500" />,
|
||||
icon: <UserPlus className="h-5 w-5 text-green-500" />,
|
||||
title: t("fixed_round_robin"),
|
||||
description: t("add_one_fixed_attendee"),
|
||||
},
|
||||
{
|
||||
icon: <FiMail className="h-5 w-5 text-orange-500" />,
|
||||
icon: <Mail className="h-5 w-5 text-orange-500" />,
|
||||
title: t("sms_attendee_action"),
|
||||
description: t("make_it_easy_to_book"),
|
||||
},
|
||||
{
|
||||
icon: <FiVideo className="h-5 w-5 text-purple-500" />,
|
||||
icon: <Video className="h-5 w-5 text-purple-500" />,
|
||||
title: "Cal Video" + " " + t("recordings_title"),
|
||||
description: t("upgrade_to_access_recordings_description"),
|
||||
},
|
||||
{
|
||||
icon: <FiEyeOff className="h-5 w-5 text-indigo-500" />,
|
||||
icon: <EyeOff 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 }),
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useRouter } from "next/router";
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button, Meta } from "@calcom/ui";
|
||||
import { FiExternalLink } from "@calcom/ui/components/icon";
|
||||
import { ExternalLink } from "@calcom/ui/components/icon";
|
||||
|
||||
import { getLayout } from "../../../settings/layouts/SettingsLayout";
|
||||
|
||||
@@ -21,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={FiExternalLink}>
|
||||
<Button color="primary" href={billingHref} target="_blank" EndIcon={ExternalLink}>
|
||||
{t("billing_portal")}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@ import { useState } from "react";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button, Meta, showToast } from "@calcom/ui";
|
||||
import { FiPlus } from "@calcom/ui/components/icon";
|
||||
import { Plus } from "@calcom/ui/components/icon";
|
||||
|
||||
import { getLayout } from "../../../settings/layouts/SettingsLayout";
|
||||
import DisableTeamImpersonation from "../components/DisableTeamImpersonation";
|
||||
@@ -64,7 +64,7 @@ const MembersView = () => {
|
||||
<Button
|
||||
type="button"
|
||||
color="primary"
|
||||
StartIcon={FiPlus}
|
||||
StartIcon={Plus}
|
||||
className="ml-auto"
|
||||
onClick={() => setShowMemberInvitationModal(true)}
|
||||
data-testid="new-member-button">
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
TextField,
|
||||
Editor,
|
||||
} from "@calcom/ui";
|
||||
import { FiExternalLink, FiLink, FiTrash2, FiLogOut } from "@calcom/ui/components/icon";
|
||||
import { ExternalLink, Link as LinkIcon, Trash2, LogOut } from "@calcom/ui/components/icon";
|
||||
|
||||
import { getLayout } from "../../../settings/layouts/SettingsLayout";
|
||||
|
||||
@@ -263,10 +263,10 @@ const ProfileView = () => {
|
||||
</div>
|
||||
<div className="">
|
||||
<Link href={permalink} passHref={true} target="_blank">
|
||||
<LinkIconButton Icon={FiExternalLink}>{t("preview")}</LinkIconButton>
|
||||
<LinkIconButton Icon={ExternalLink}>{t("preview")}</LinkIconButton>
|
||||
</Link>
|
||||
<LinkIconButton
|
||||
Icon={FiLink}
|
||||
Icon={LinkIcon}
|
||||
onClick={() => {
|
||||
navigator.clipboard.writeText(permalink);
|
||||
showToast("Copied to clipboard", "success");
|
||||
@@ -282,7 +282,7 @@ const ProfileView = () => {
|
||||
{team?.membership.role === "OWNER" ? (
|
||||
<Dialog>
|
||||
<DialogTrigger asChild>
|
||||
<Button color="destructive" className="border" StartIcon={FiTrash2}>
|
||||
<Button color="destructive" className="border" StartIcon={Trash2}>
|
||||
{t("disband_team")}
|
||||
</Button>
|
||||
</DialogTrigger>
|
||||
@@ -297,7 +297,7 @@ const ProfileView = () => {
|
||||
) : (
|
||||
<Dialog>
|
||||
<DialogTrigger asChild>
|
||||
<Button color="destructive" className="border" StartIcon={FiLogOut}>
|
||||
<Button color="destructive" className="border" StartIcon={LogOut}>
|
||||
{t("leave_team")}
|
||||
</Button>
|
||||
</DialogTrigger>
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
UpgradeTeamsBadge,
|
||||
} from "@calcom/ui";
|
||||
import { Button } from "@calcom/ui";
|
||||
import { FiDownload } from "@calcom/ui/components/icon";
|
||||
import { Download } from "@calcom/ui/components/icon";
|
||||
|
||||
import RecordingListSkeleton from "./components/RecordingListSkeleton";
|
||||
|
||||
@@ -131,7 +131,7 @@ const ViewRecordingsList = ({ roomName, hasPaidPlan }: { roomName: string; hasPa
|
||||
</div>
|
||||
{hasPaidPlan ? (
|
||||
<Button
|
||||
StartIcon={FiDownload}
|
||||
StartIcon={Download}
|
||||
className="ml-4 lg:ml-0"
|
||||
loading={isFetching && recordingId === recording.id}
|
||||
onClick={() => handleDownloadClick(recording.id)}>
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useRouter } from "next/router";
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button } from "@calcom/ui";
|
||||
import { FiUsers } from "@calcom/ui/components/icon";
|
||||
import { Users } from "@calcom/ui/components/icon";
|
||||
|
||||
export default function UpgradeRecordingBanner() {
|
||||
const { t } = useLocale();
|
||||
@@ -11,7 +11,7 @@ export default function UpgradeRecordingBanner() {
|
||||
|
||||
return (
|
||||
<div className="bg-subtle flex items-start gap-2 rounded-md p-4">
|
||||
<FiUsers className="dark:bg-gray-90 inline-block h-5 w-5" />
|
||||
<Users 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>
|
||||
|
||||
@@ -5,7 +5,7 @@ import { HttpError } from "@calcom/lib/http-error";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import type { SVGComponent } from "@calcom/types/SVGComponent";
|
||||
import { CreateButton, showToast, EmptyScreen as ClassicEmptyScreen } from "@calcom/ui";
|
||||
import { FiSmartphone, FiMail, FiZap } from "@calcom/ui/components/icon";
|
||||
import { Smartphone, Mail, Zap } from "@calcom/ui/components/icon";
|
||||
|
||||
type WorkflowExampleType = {
|
||||
Icon: SVGComponent;
|
||||
@@ -61,24 +61,24 @@ export default function EmptyScreen(props: {
|
||||
});
|
||||
|
||||
const workflowsExamples = [
|
||||
{ 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") },
|
||||
{ icon: Smartphone, text: t("workflow_example_1") },
|
||||
{ icon: Smartphone, text: t("workflow_example_2") },
|
||||
{ icon: Mail, text: t("workflow_example_3") },
|
||||
{ icon: Mail, text: t("workflow_example_4") },
|
||||
{ icon: Mail, text: t("workflow_example_5") },
|
||||
{ icon: Smartphone, 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),
|
||||
// new workflow example when 'after meetings ends' trigger is implemented: Send custom thank you email to attendee after event (Smile icon),
|
||||
|
||||
if (props.isFilteredView) {
|
||||
return <ClassicEmptyScreen Icon={FiZap} headline={t("no_workflows")} description={t("change_filter")} />;
|
||||
return <ClassicEmptyScreen Icon={Zap} headline={t("no_workflows")} description={t("change_filter")} />;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="min-h-80 flex w-full flex-col items-center justify-center rounded-md ">
|
||||
<div className="bg-emphasis flex h-[72px] w-[72px] items-center justify-center rounded-full">
|
||||
<FiZap className="dark:text-default inline-block h-10 w-10 stroke-[1.3px]" />
|
||||
<Zap className="dark:text-default inline-block h-10 w-10 stroke-[1.3px]" />
|
||||
</div>
|
||||
<div className="max-w-[420px] text-center">
|
||||
<h2 className="text-semibold font-cal mt-6 text-xl dark:text-gray-300">{t("workflows")}</h2>
|
||||
|
||||
@@ -8,7 +8,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { HttpError } from "@calcom/lib/http-error";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button, EmptyScreen, showToast, Switch, Tooltip } from "@calcom/ui";
|
||||
import { FiExternalLink, FiZap } from "@calcom/ui/components/icon";
|
||||
import { ExternalLink, Zap } from "@calcom/ui/components/icon";
|
||||
|
||||
import LicenseRequired from "../../common/components/v2/LicenseRequired";
|
||||
import { getActionIcon } from "../lib/getActionIcon";
|
||||
@@ -133,7 +133,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>
|
||||
<FiExternalLink className="text-default -mt-[2px] h-4 w-4 stroke-2" />
|
||||
<ExternalLink className="text-default -mt-[2px] h-4 w-4 stroke-2" />
|
||||
</Button>
|
||||
</Link>
|
||||
</div>
|
||||
@@ -219,7 +219,7 @@ function EventWorkflowsTab(props: Props) {
|
||||
) : (
|
||||
<div className="pt-4 before:border-0">
|
||||
<EmptyScreen
|
||||
Icon={FiZap}
|
||||
Icon={Zap}
|
||||
headline={t("workflows")}
|
||||
description={t("no_workflows_description")}
|
||||
buttonRaw={
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SkeletonText } from "@calcom/ui";
|
||||
import { FiBell, FiLink } from "@calcom/ui/components/icon";
|
||||
import { Bell, Link as LinkIcon } from "@calcom/ui/components/icon";
|
||||
|
||||
function SkeletonLoader() {
|
||||
return (
|
||||
@@ -21,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">
|
||||
<FiBell className="mt-0.5 mr-1.5 inline h-4 w-4 text-gray-200" />
|
||||
<Bell 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" />
|
||||
<FiLink className="mt-0.5 mr-1.5 inline h-4 w-4 text-gray-200" />
|
||||
<LinkIcon 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>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useState } from "react";
|
||||
import { UseFormReturn } from "react-hook-form";
|
||||
import type { UseFormReturn } from "react-hook-form";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import {
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
DropdownMenuTrigger,
|
||||
TextField,
|
||||
} from "@calcom/ui";
|
||||
import { FiChevronDown } from "@calcom/ui/components/icon";
|
||||
import { ChevronDown } 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">
|
||||
<FiChevronDown />
|
||||
<ChevronDown />
|
||||
</div>
|
||||
</button>
|
||||
</DropdownMenuTrigger>
|
||||
|
||||
@@ -11,7 +11,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import type { MultiSelectCheckboxesOptionType as Option } from "@calcom/ui";
|
||||
import { Button, Label, MultiSelectCheckboxes, TextField } from "@calcom/ui";
|
||||
import { FiArrowDown, FiTrash2 } from "@calcom/ui/components/icon";
|
||||
import { ArrowDown, Trash2 } from "@calcom/ui/components/icon";
|
||||
|
||||
import { isSMSAction } from "../lib/isSMSAction";
|
||||
import type { FormValues } from "../pages/workflow";
|
||||
@@ -136,7 +136,7 @@ export default function WorkflowDetailsPage(props: Props) {
|
||||
<div className="md:border-subtle my-7 border-transparent md:border-t" />
|
||||
<Button
|
||||
type="button"
|
||||
StartIcon={FiTrash2}
|
||||
StartIcon={Trash2}
|
||||
color="destructive"
|
||||
className="border"
|
||||
onClick={() => setDeleteDialogOpen(true)}>
|
||||
@@ -169,7 +169,7 @@ export default function WorkflowDetailsPage(props: Props) {
|
||||
</>
|
||||
)}
|
||||
<div className="my-3 flex justify-center">
|
||||
<FiArrowDown className="text-subtle stroke-[1.5px] text-3xl" />
|
||||
<ArrowDown className="text-subtle stroke-[1.5px] text-3xl" />
|
||||
</div>
|
||||
<div className="flex justify-center">
|
||||
<Button
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
Tooltip,
|
||||
Badge,
|
||||
} from "@calcom/ui";
|
||||
import { FiEdit2, FiLink, FiMoreHorizontal, FiTrash2 } from "@calcom/ui/components/icon";
|
||||
import { Edit2, Link as LinkIcon, MoreHorizontal, Trash2 } from "@calcom/ui/components/icon";
|
||||
|
||||
import { getActionIcon } from "../lib/getActionIcon";
|
||||
import { DeleteDialog } from "./DeleteDialog";
|
||||
@@ -116,13 +116,13 @@ export default function WorkflowListPage({ workflows, profileOptions, hasNoWorkf
|
||||
<p key={key}>{activeOn.eventType.title}</p>
|
||||
))}>
|
||||
<div>
|
||||
<FiLink className="mr-1.5 inline h-3 w-3" aria-hidden="true" />
|
||||
<LinkIcon className="mr-1.5 inline h-3 w-3" aria-hidden="true" />
|
||||
{t("active_on_event_types", { count: workflow.activeOn.length })}
|
||||
</div>
|
||||
</Tooltip>
|
||||
) : (
|
||||
<div>
|
||||
<FiLink className="mr-1.5 inline h-3 w-3" aria-hidden="true" />
|
||||
<LinkIcon className="mr-1.5 inline h-3 w-3" aria-hidden="true" />
|
||||
{t("no_active_event_types")}
|
||||
</div>
|
||||
)}
|
||||
@@ -147,7 +147,7 @@ export default function WorkflowListPage({ workflows, profileOptions, hasNoWorkf
|
||||
type="button"
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
StartIcon={FiEdit2}
|
||||
StartIcon={Edit2}
|
||||
disabled={workflow.readOnly}
|
||||
onClick={async () => await router.replace("/workflows/" + workflow.id)}
|
||||
/>
|
||||
@@ -161,7 +161,7 @@ export default function WorkflowListPage({ workflows, profileOptions, hasNoWorkf
|
||||
color="secondary"
|
||||
variant="icon"
|
||||
disabled={workflow.readOnly}
|
||||
StartIcon={FiTrash2}
|
||||
StartIcon={Trash2}
|
||||
/>
|
||||
</Tooltip>
|
||||
</ButtonGroup>
|
||||
@@ -170,18 +170,13 @@ export default function WorkflowListPage({ workflows, profileOptions, hasNoWorkf
|
||||
<div className="block sm:hidden">
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button
|
||||
type="button"
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
StartIcon={FiMoreHorizontal}
|
||||
/>
|
||||
<Button type="button" color="minimal" variant="icon" StartIcon={MoreHorizontal} />
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
type="button"
|
||||
StartIcon={FiEdit2}
|
||||
StartIcon={Edit2}
|
||||
onClick={async () => await router.replace("/workflows/" + workflow.id)}>
|
||||
{t("edit")}
|
||||
</DropdownItem>
|
||||
@@ -190,7 +185,7 @@ export default function WorkflowListPage({ workflows, profileOptions, hasNoWorkf
|
||||
<DropdownItem
|
||||
type="button"
|
||||
color="destructive"
|
||||
StartIcon={FiTrash2}
|
||||
StartIcon={Trash2}
|
||||
onClick={() => {
|
||||
setDeleteDialogOpen(true);
|
||||
setwWorkflowToDeleteId(workflow.id);
|
||||
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
AddVariablesDropdown,
|
||||
Input,
|
||||
} from "@calcom/ui";
|
||||
import { FiArrowDown, FiMoreHorizontal, FiTrash2, FiHelpCircle } from "@calcom/ui/components/icon";
|
||||
import { ArrowDown, MoreHorizontal, Trash2, HelpCircle } from "@calcom/ui/components/icon";
|
||||
|
||||
import { DYNAMIC_TEXT_VARIABLES } from "../lib/constants";
|
||||
import { getWorkflowTemplateOptions, getWorkflowTriggerOptions } from "../lib/getOptions";
|
||||
@@ -281,7 +281,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
return (
|
||||
<>
|
||||
<div className="my-3 flex justify-center">
|
||||
<FiArrowDown className="text-subtle stroke-[1.5px] text-3xl" />
|
||||
<ArrowDown className="text-subtle stroke-[1.5px] text-3xl" />
|
||||
</div>
|
||||
<div className="flex justify-center">
|
||||
<div className="min-w-80 bg-default border-subtle flex w-full rounded-md border p-7">
|
||||
@@ -301,13 +301,13 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
<div>
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button type="button" color="minimal" variant="icon" StartIcon={FiMoreHorizontal} />
|
||||
<Button type="button" color="minimal" variant="icon" StartIcon={MoreHorizontal} />
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
type="button"
|
||||
StartIcon={FiTrash2}
|
||||
StartIcon={Trash2}
|
||||
color="destructive"
|
||||
onClick={() => {
|
||||
const steps = form.getValues("steps");
|
||||
@@ -645,7 +645,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
<div className="mt-3 ">
|
||||
<button type="button" onClick={() => setIsAdditionalInputsDialogOpen(true)}>
|
||||
<div className="text-default mt-2 flex text-sm">
|
||||
<FiHelpCircle className="mt-[3px] h-3 w-3 ltr:mr-2 rtl:ml-2" />
|
||||
<HelpCircle 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,26 +1,25 @@
|
||||
import { WorkflowActions, WorkflowStep } from "@prisma/client";
|
||||
import type { WorkflowStep } from "@prisma/client";
|
||||
import { WorkflowActions } from "@prisma/client";
|
||||
|
||||
import { classNames } from "@calcom/lib";
|
||||
import { FiZap, FiSmartphone, FiMail, FiBell } from "@calcom/ui/components/icon";
|
||||
import { Zap, Smartphone, Mail, Bell } from "@calcom/ui/components/icon";
|
||||
|
||||
export function getActionIcon(steps: WorkflowStep[], className?: string): JSX.Element {
|
||||
if (steps.length === 0) {
|
||||
return (
|
||||
<FiZap className={classNames(className ? className : "mr-1.5 inline h-3 w-3")} aria-hidden="true" />
|
||||
);
|
||||
return <Zap 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 (
|
||||
<FiSmartphone
|
||||
<Smartphone
|
||||
className={classNames(className ? className : "mr-1.5 inline h-3 w-3")}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
<FiMail className={classNames(className ? className : "mr-1.5 inline h-3 w-3")} aria-hidden="true" />
|
||||
<Mail className={classNames(className ? className : "mr-1.5 inline h-3 w-3")} aria-hidden="true" />
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -49,27 +48,21 @@ export function getActionIcon(steps: WorkflowStep[], className?: string): JSX.El
|
||||
switch (messageType) {
|
||||
case "SMS":
|
||||
return (
|
||||
<FiSmartphone
|
||||
<Smartphone
|
||||
className={classNames(className ? className : "mr-1.5 inline h-3 w-3")}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
);
|
||||
case "EMAIL":
|
||||
return (
|
||||
<FiMail
|
||||
className={classNames(className ? className : "mr-1.5 inline h-3 w-3")}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<Mail className={classNames(className ? className : "mr-1.5 inline h-3 w-3")} aria-hidden="true" />
|
||||
);
|
||||
case "MIX":
|
||||
return (
|
||||
<FiBell
|
||||
className={classNames(className ? className : "mr-1.5 inline h-3 w-3")}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<Bell className={classNames(className ? className : "mr-1.5 inline h-3 w-3")} aria-hidden="true" />
|
||||
);
|
||||
default:
|
||||
<FiZap className={classNames(className ? className : "mr-1.5 inline h-3 w-3")} aria-hidden="true" />;
|
||||
<Zap className={classNames(className ? className : "mr-1.5 inline h-3 w-3")} aria-hidden="true" />;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { Props } from "react-select";
|
||||
import { classNames } from "@calcom/lib";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Avatar, Select } from "@calcom/ui";
|
||||
import { FiX } from "@calcom/ui/components/icon";
|
||||
import { X } from "@calcom/ui/components/icon";
|
||||
|
||||
export type CheckedSelectOption = {
|
||||
avatar: string;
|
||||
@@ -49,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="text-emphasis my-auto ml-3 text-sm">{option.label}</p>
|
||||
<FiX
|
||||
<X
|
||||
onClick={() => props.onChange(value.filter((item) => item.value !== option.value))}
|
||||
className="my-auto ml-auto"
|
||||
/>
|
||||
|
||||
@@ -10,15 +10,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import type { baseEventTypeSelect } from "@calcom/prisma";
|
||||
import type { EventTypeModel } from "@calcom/prisma/zod";
|
||||
import { Badge } from "@calcom/ui";
|
||||
import {
|
||||
FiClock,
|
||||
FiUsers,
|
||||
FiRefreshCw,
|
||||
FiCreditCard,
|
||||
FiClipboard,
|
||||
FiPlus,
|
||||
FiUser,
|
||||
} from "@calcom/ui/components/icon";
|
||||
import { Clock, Users, RefreshCw, CreditCard, Clipboard, Plus, User } from "@calcom/ui/components/icon";
|
||||
|
||||
export type EventTypeDescriptionProps = {
|
||||
eventType: Pick<
|
||||
@@ -65,21 +57,21 @@ export const EventTypeDescription = ({
|
||||
{eventType.metadata?.multipleDuration ? (
|
||||
eventType.metadata.multipleDuration.map((dur, idx) => (
|
||||
<li key={idx}>
|
||||
<Badge variant="gray" startIcon={FiClock}>
|
||||
<Badge variant="gray" startIcon={Clock}>
|
||||
{dur}m
|
||||
</Badge>
|
||||
</li>
|
||||
))
|
||||
) : (
|
||||
<li>
|
||||
<Badge variant="gray" startIcon={FiClock}>
|
||||
<Badge variant="gray" startIcon={Clock}>
|
||||
{eventType.length}m
|
||||
</Badge>
|
||||
</li>
|
||||
)}
|
||||
{eventType.schedulingType && (
|
||||
<li>
|
||||
<Badge variant="gray" startIcon={FiUsers}>
|
||||
<Badge variant="gray" startIcon={Users}>
|
||||
{eventType.schedulingType === SchedulingType.ROUND_ROBIN && t("round_robin")}
|
||||
{eventType.schedulingType === SchedulingType.COLLECTIVE && t("collective")}
|
||||
</Badge>
|
||||
@@ -87,7 +79,7 @@ export const EventTypeDescription = ({
|
||||
)}
|
||||
{recurringEvent?.count && recurringEvent.count > 0 && (
|
||||
<li className="hidden xl:block">
|
||||
<Badge variant="gray" startIcon={FiRefreshCw}>
|
||||
<Badge variant="gray" startIcon={RefreshCw}>
|
||||
{t("repeats_up_to", {
|
||||
count: recurringEvent.count,
|
||||
})}
|
||||
@@ -96,7 +88,7 @@ export const EventTypeDescription = ({
|
||||
)}
|
||||
{stripeAppData.price > 0 && (
|
||||
<li>
|
||||
<Badge variant="gray" startIcon={FiCreditCard}>
|
||||
<Badge variant="gray" startIcon={CreditCard}>
|
||||
<IntlProvider locale="en">
|
||||
<FormattedNumber
|
||||
value={stripeAppData.price / 100.0}
|
||||
@@ -109,7 +101,7 @@ export const EventTypeDescription = ({
|
||||
)}
|
||||
{eventType.requiresConfirmation && (
|
||||
<li className="hidden xl:block">
|
||||
<Badge variant="gray" startIcon={FiClipboard}>
|
||||
<Badge variant="gray" startIcon={Clipboard}>
|
||||
{eventType.metadata?.requiresConfirmationThreshold
|
||||
? t("may_require_confirmation")
|
||||
: t("requires_confirmation")}
|
||||
@@ -119,7 +111,7 @@ export const EventTypeDescription = ({
|
||||
{/* TODO: Maybe add a tool tip to this? */}
|
||||
{eventType.requiresConfirmation || (recurringEvent?.count && recurringEvent.count) ? (
|
||||
<li className="block xl:hidden">
|
||||
<Badge variant="gray" startIcon={FiPlus}>
|
||||
<Badge variant="gray" startIcon={Plus}>
|
||||
<p>{[eventType.requiresConfirmation, recurringEvent?.count].filter(Boolean).length}</p>
|
||||
</Badge>
|
||||
</li>
|
||||
@@ -128,7 +120,7 @@ export const EventTypeDescription = ({
|
||||
)}
|
||||
{eventType?.seatsPerTimeSlot ? (
|
||||
<li>
|
||||
<Badge variant="gray" startIcon={FiUser}>
|
||||
<Badge variant="gray" startIcon={User}>
|
||||
<p>{t("event_type_seats", { numberOfSeats: eventType.seatsPerTimeSlot })} </p>
|
||||
</Badge>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { GroupBase, Props, ValueContainerProps } from "react-select";
|
||||
import { components } from "react-select";
|
||||
|
||||
import { Select } from "@calcom/ui";
|
||||
import { FiPlus } from "@calcom/ui/components/icon";
|
||||
import { Plus } from "@calcom/ui/components/icon";
|
||||
|
||||
const LimitedChipsContainer = <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({
|
||||
children,
|
||||
@@ -24,7 +24,7 @@ const LimitedChipsContainer = <Option, IsMulti extends boolean, Group extends Gr
|
||||
{overflowCounter > 0 && (
|
||||
<span className="bg-subtle text-default flex items-center justify-center rounded-md py-[5px] px-2 text-[14px] font-medium leading-4">
|
||||
<>
|
||||
<FiPlus className="mr-1 inline h-3 w-3 stroke-[3px]" /> <span>{overflowCounter} more</span>
|
||||
<Plus className="mr-1 inline h-3 w-3 stroke-[3px]" /> <span>{overflowCounter} more</span>
|
||||
</>
|
||||
</span>
|
||||
)}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Suspense } from "react";
|
||||
|
||||
import NoSSR from "@calcom/core/components/NoSSR";
|
||||
import { Meta } from "@calcom/ui";
|
||||
import { FiLoader } from "@calcom/ui/components/icon";
|
||||
import { Loader } from "@calcom/ui/components/icon";
|
||||
|
||||
import { FlagAdminList } from "../components/FlagAdminList";
|
||||
|
||||
@@ -11,7 +11,7 @@ export const FlagListingView = () => {
|
||||
<>
|
||||
<Meta title="Feature Flags" description="Here you can toggle your Cal.com instance features." />
|
||||
<NoSSR>
|
||||
<Suspense fallback={<FiLoader />}>
|
||||
<Suspense fallback={<Loader />}>
|
||||
<FlagAdminList />
|
||||
</Suspense>
|
||||
</NoSSR>
|
||||
|
||||
@@ -10,7 +10,7 @@ import { classNames } from "@calcom/lib";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import type { BookingFieldType } from "@calcom/prisma/zod-utils";
|
||||
import { PhoneInput, AddressInput, Button, Label, Group, RadioField, EmailField, Tooltip } from "@calcom/ui";
|
||||
import { FiUserPlus, FiX } from "@calcom/ui/components/icon";
|
||||
import { UserPlus, X } from "@calcom/ui/components/icon";
|
||||
|
||||
import { ComponentForField } from "./FormBuilder";
|
||||
import type { fieldsSchema } from "./FormBuilderFieldsSchema";
|
||||
@@ -160,7 +160,7 @@ export const Components: Record<BookingFieldType, Component> = {
|
||||
value.splice(index, 1);
|
||||
setValue(value);
|
||||
}}>
|
||||
<FiX className="text-default" />
|
||||
<X className="text-default" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
) : null
|
||||
@@ -174,7 +174,7 @@ export const Components: Record<BookingFieldType, Component> = {
|
||||
data-testid="add-another-guest"
|
||||
type="button"
|
||||
color="minimal"
|
||||
StartIcon={FiUserPlus}
|
||||
StartIcon={UserPlus}
|
||||
className="my-2.5"
|
||||
onClick={() => {
|
||||
value.push("");
|
||||
@@ -193,7 +193,7 @@ export const Components: Record<BookingFieldType, Component> = {
|
||||
data-testid="add-guests"
|
||||
color="minimal"
|
||||
variant="button"
|
||||
StartIcon={FiUserPlus}
|
||||
StartIcon={UserPlus}
|
||||
onClick={() => {
|
||||
value.push("");
|
||||
setValue(value);
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
showToast,
|
||||
Switch,
|
||||
} from "@calcom/ui";
|
||||
import { FiArrowDown, FiArrowUp, FiX, FiPlus, FiTrash2, FiInfo } from "@calcom/ui/components/icon";
|
||||
import { ArrowDown, ArrowUp, X, Plus, Trash2, Info } from "@calcom/ui/components/icon";
|
||||
|
||||
import { Components } from "./Components";
|
||||
import type { fieldsSchema } from "./FormBuilderFieldsSchema";
|
||||
@@ -210,7 +210,7 @@ export const FormBuilder = function FormBuilder({
|
||||
className="mb-2 -ml-8 hover:!bg-transparent focus:!bg-transparent focus:!outline-none focus:!ring-0"
|
||||
size="sm"
|
||||
color="minimal"
|
||||
StartIcon={FiX}
|
||||
StartIcon={X}
|
||||
onClick={() => {
|
||||
if (!value) {
|
||||
return;
|
||||
@@ -232,7 +232,7 @@ export const FormBuilder = function FormBuilder({
|
||||
value.push({ label: "", value: "" });
|
||||
onChange(value);
|
||||
}}
|
||||
StartIcon={FiPlus}>
|
||||
StartIcon={Plus}>
|
||||
Add an Option
|
||||
</Button>
|
||||
)}
|
||||
@@ -314,7 +314,7 @@ export const FormBuilder = function FormBuilder({
|
||||
type="button"
|
||||
className="bg-default text-muted hover:text-emphasis disabled:hover:text-muted border-default hover:border-emphasis invisible absolute -left-[12px] -mt-4 mb-4 -ml-4 hidden h-6 w-6 scale-0 items-center justify-center rounded-md border p-1 transition-all hover:shadow disabled:hover:border-inherit disabled:hover:shadow-none group-hover:visible group-hover:scale-100 sm:ml-0 sm:flex"
|
||||
onClick={() => swap(index, index - 1)}>
|
||||
<FiArrowUp className="h-5 w-5" />
|
||||
<ArrowUp className="h-5 w-5" />
|
||||
</button>
|
||||
)}
|
||||
{index < fields.length - 1 && (
|
||||
@@ -322,7 +322,7 @@ export const FormBuilder = function FormBuilder({
|
||||
type="button"
|
||||
className="bg-default text-muted hover:border-emphasis border-default hover:text-emphasis disabled:hover:text-muted invisible absolute -left-[12px] mt-8 -ml-4 hidden h-6 w-6 scale-0 items-center justify-center rounded-md border p-1 transition-all hover:shadow disabled:hover:border-inherit disabled:hover:shadow-none group-hover:visible group-hover:scale-100 sm:ml-0 sm:flex"
|
||||
onClick={() => swap(index, index + 1)}>
|
||||
<FiArrowDown className="h-5 w-5" />
|
||||
<ArrowDown className="h-5 w-5" />
|
||||
</button>
|
||||
)}
|
||||
<div>
|
||||
@@ -371,7 +371,7 @@ export const FormBuilder = function FormBuilder({
|
||||
onClick={() => {
|
||||
removeField(index);
|
||||
}}
|
||||
StartIcon={FiTrash2}
|
||||
StartIcon={Trash2}
|
||||
/>
|
||||
)}
|
||||
<Button
|
||||
@@ -388,12 +388,7 @@ export const FormBuilder = function FormBuilder({
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
<Button
|
||||
color="minimal"
|
||||
data-testid="add-field"
|
||||
onClick={addField}
|
||||
className="mt-4"
|
||||
StartIcon={FiPlus}>
|
||||
<Button color="minimal" data-testid="add-field" onClick={addField} className="mt-4" StartIcon={Plus}>
|
||||
{addFieldLabel}
|
||||
</Button>
|
||||
</div>
|
||||
@@ -771,7 +766,7 @@ export const FormBuilderField = ({
|
||||
<div
|
||||
data-testid={`error-message-${field.name}`}
|
||||
className="mt-2 flex items-center text-sm text-red-700 ">
|
||||
<FiInfo className="h-3 w-3 ltr:mr-2 rtl:ml-2" />
|
||||
<Info className="h-3 w-3 ltr:mr-2 rtl:ml-2" />
|
||||
<p>{t(message || "invalid_input")}</p>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Select } from "@calcom/ui";
|
||||
import { FiFilter } from "@calcom/ui/components/icon";
|
||||
import { Filter } from "@calcom/ui/components/icon";
|
||||
|
||||
import { useFilterContext } from "../context/provider";
|
||||
|
||||
@@ -45,7 +45,7 @@ export const FilterType = () => {
|
||||
className="w-32 min-w-[130px]"
|
||||
placeholder={
|
||||
<div className="text-emphasis flex flex-row">
|
||||
<FiFilter className="m-auto" />
|
||||
<Filter className="m-auto" />
|
||||
{t("add_filter")}
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ export const Filters = () => {
|
||||
color="secondary"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
StartIcon={FiSettings}
|
||||
StartIcon={Settings}
|
||||
className="h-[38px]"
|
||||
/>
|
||||
</Tooltip>
|
||||
@@ -65,7 +65,7 @@ export const Filters = () => {
|
||||
color="secondary"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
StartIcon={FiDownload}
|
||||
StartIcon={Download}
|
||||
className="h-[38px]"
|
||||
/>
|
||||
</Tooltip>
|
||||
|
||||
@@ -19,7 +19,7 @@ import { isMac } from "@calcom/lib/isMac";
|
||||
import type { RouterOutputs } from "@calcom/trpc/react";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Tooltip } from "@calcom/ui";
|
||||
import { FiSearch, FiArrowUp, FiArrowDown, FiCornerDownLeft, FiCommand } from "@calcom/ui/components/icon";
|
||||
import { Search, ArrowUp, ArrowDown, CornerDownLeft, Command } from "@calcom/ui/components/icon";
|
||||
|
||||
type shortcutArrayType = {
|
||||
shortcuts?: string[];
|
||||
@@ -242,7 +242,7 @@ export const KBarContent = () => {
|
||||
<KBarPositioner>
|
||||
<KBarAnimator className="bg-default z-10 w-full max-w-screen-sm overflow-hidden rounded-md shadow-lg">
|
||||
<div className="border-subtle flex items-center justify-center border-b">
|
||||
<FiSearch className="text-default mx-3 h-4 w-4" />
|
||||
<Search className="text-default mx-3 h-4 w-4" />
|
||||
<KBarSearch
|
||||
defaultPlaceholder={t("kbar_search_placeholder")}
|
||||
className="bg-default placeholder:text-subtle text-default w-full rounded-sm py-2.5 focus-visible:outline-none"
|
||||
@@ -250,11 +250,11 @@ export const KBarContent = () => {
|
||||
</div>
|
||||
<RenderResults />
|
||||
<div className="text-subtle border-subtle hidden items-center space-x-1 border-t px-2 py-1.5 text-xs sm:flex">
|
||||
<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" />
|
||||
<ArrowUp className="h-4 w-4" />
|
||||
<ArrowDown className="h-4 w-4" /> <span className="pr-2">{t("navigate")}</span>
|
||||
<CornerDownLeft className="h-4 w-4" />
|
||||
<span className="pr-2">{t("open")}</span>
|
||||
{isMac ? <FiCommand className="h-3 w-3" /> : "CTRL"}
|
||||
{isMac ? <Command className="h-3 w-3" /> : "CTRL"}
|
||||
<span className="pr-1">+ K </span>
|
||||
<span className="pr-2">{t("close")}</span>
|
||||
</div>
|
||||
@@ -274,7 +274,7 @@ export const KBarTrigger = () => {
|
||||
color="minimal"
|
||||
onClick={query.toggle}
|
||||
className="text-default hover:bg-subtle lg:hover:bg-emphasis lg:hover:text-emphasis group flex rounded-md py-2 px-3 text-sm font-medium lg:p-1">
|
||||
<FiSearch className="h-4 w-4 flex-shrink-0 text-inherit" />
|
||||
<Search className="h-4 w-4 flex-shrink-0 text-inherit" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
</>
|
||||
|
||||
@@ -4,7 +4,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import useMeQuery from "@calcom/trpc/react/hooks/useMeQuery";
|
||||
import type { TimeRange, WorkingHours } from "@calcom/types/schedule";
|
||||
import { Button, DialogTrigger, Tooltip } from "@calcom/ui";
|
||||
import { FiEdit2, FiTrash2 } from "@calcom/ui/components/icon";
|
||||
import { Edit2, Trash2 } from "@calcom/ui/components/icon";
|
||||
|
||||
import DateOverrideInputDialog from "./DateOverrideInputDialog";
|
||||
|
||||
@@ -91,7 +91,7 @@ const DateOverrideList = ({
|
||||
className="text-default"
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
StartIcon={FiEdit2}
|
||||
StartIcon={Edit2}
|
||||
/>
|
||||
</DialogTrigger>
|
||||
}
|
||||
@@ -101,7 +101,7 @@ const DateOverrideList = ({
|
||||
className="text-default"
|
||||
color="destructive"
|
||||
variant="icon"
|
||||
StartIcon={FiTrash2}
|
||||
StartIcon={Trash2}
|
||||
onClick={() => remove(index)}
|
||||
/>
|
||||
</Tooltip>
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
InputField,
|
||||
showToast,
|
||||
} from "@calcom/ui";
|
||||
import { FiPlus } from "@calcom/ui/components/icon";
|
||||
import { Plus } from "@calcom/ui/components/icon";
|
||||
|
||||
export function NewScheduleButton({
|
||||
name = "new-schedule",
|
||||
@@ -65,7 +65,7 @@ export function NewScheduleButton({
|
||||
return (
|
||||
<Dialog name={name} clearQueryParamsOnClose={["copy-schedule-id"]}>
|
||||
<DialogTrigger asChild>
|
||||
<Button variant="fab" data-testid={name} StartIcon={FiPlus}>
|
||||
<Button variant="fab" data-testid={name} StartIcon={Plus}>
|
||||
{t("new")}
|
||||
</Button>
|
||||
</DialogTrigger>
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
SkeletonText,
|
||||
Switch,
|
||||
} from "@calcom/ui";
|
||||
import { FiCopy, FiPlus, FiTrash } from "@calcom/ui/components/icon";
|
||||
import { Copy, Plus, Trash } from "@calcom/ui/components/icon";
|
||||
|
||||
export type { TimeRange };
|
||||
|
||||
@@ -109,7 +109,7 @@ const CopyButton = ({
|
||||
tooltip={t("copy_times_to_tooltip")}
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
StartIcon={FiCopy}
|
||||
StartIcon={Copy}
|
||||
/>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent align="end">
|
||||
@@ -188,7 +188,7 @@ export const DayRanges = <TFieldValues extends FieldValues>({
|
||||
type="button"
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
StartIcon={FiPlus}
|
||||
StartIcon={Plus}
|
||||
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={FiTrash}
|
||||
StartIcon={Trash}
|
||||
onClick={() => remove(index)}
|
||||
className={className}
|
||||
/>
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
DropdownMenuTrigger,
|
||||
showToast,
|
||||
} from "@calcom/ui";
|
||||
import { FiGlobe, FiMoreHorizontal, FiTrash, FiClock } from "@calcom/ui/components/icon";
|
||||
import { Globe, MoreHorizontal, Trash, Clock } from "@calcom/ui/components/icon";
|
||||
|
||||
export function ScheduleListItem({
|
||||
schedule,
|
||||
@@ -67,7 +67,7 @@ export function ScheduleListItem({
|
||||
))}
|
||||
{(schedule.timeZone || displayOptions?.timeZone) && (
|
||||
<p className="my-1 flex items-center first-letter:text-xs">
|
||||
<FiGlobe />
|
||||
<Globe className="h-3.5 w-3.5" />
|
||||
{schedule.timeZone ?? displayOptions?.timeZone}
|
||||
</p>
|
||||
)}
|
||||
@@ -82,7 +82,7 @@ export function ScheduleListItem({
|
||||
type="button"
|
||||
variant="icon"
|
||||
color="secondary"
|
||||
StartIcon={FiMoreHorizontal}
|
||||
StartIcon={MoreHorizontal}
|
||||
/>
|
||||
</DropdownMenuTrigger>
|
||||
{!isLoading && data && (
|
||||
@@ -91,7 +91,7 @@ export function ScheduleListItem({
|
||||
{!schedule.isDefault && (
|
||||
<DropdownItem
|
||||
type="button"
|
||||
StartIcon={FiClock}
|
||||
StartIcon={Clock}
|
||||
onClick={() => {
|
||||
updateDefault({
|
||||
scheduleId: schedule.id,
|
||||
@@ -106,7 +106,7 @@ export function ScheduleListItem({
|
||||
<DropdownItem
|
||||
type="button"
|
||||
color="destructive"
|
||||
StartIcon={FiTrash}
|
||||
StartIcon={Trash}
|
||||
data-testid="delete-schedule"
|
||||
onClick={() => {
|
||||
if (!isDeletable) {
|
||||
|
||||
@@ -15,24 +15,24 @@ import { trpc } from "@calcom/trpc/react";
|
||||
import type { VerticalTabItemProps } from "@calcom/ui";
|
||||
import { Badge, Button, ErrorBoundary, VerticalTabItem, Skeleton, useMeta } from "@calcom/ui";
|
||||
import {
|
||||
FiUser,
|
||||
FiKey,
|
||||
FiCreditCard,
|
||||
FiTerminal,
|
||||
FiUsers,
|
||||
FiLock,
|
||||
FiArrowLeft,
|
||||
FiChevronDown,
|
||||
FiChevronRight,
|
||||
FiPlus,
|
||||
FiMenu,
|
||||
User,
|
||||
Key,
|
||||
CreditCard,
|
||||
Terminal,
|
||||
Users,
|
||||
Lock,
|
||||
ArrowLeft,
|
||||
ChevronDown,
|
||||
ChevronRight,
|
||||
Plus,
|
||||
Menu,
|
||||
} from "@calcom/ui/components/icon";
|
||||
|
||||
const tabs: VerticalTabItemProps[] = [
|
||||
{
|
||||
name: "my_account",
|
||||
href: "/settings/my-account",
|
||||
icon: FiUser,
|
||||
icon: User,
|
||||
children: [
|
||||
{ name: "profile", href: "/settings/my-account/profile" },
|
||||
{ name: "general", href: "/settings/my-account/general" },
|
||||
@@ -46,7 +46,7 @@ const tabs: VerticalTabItemProps[] = [
|
||||
{
|
||||
name: "security",
|
||||
href: "/settings/security",
|
||||
icon: FiKey,
|
||||
icon: Key,
|
||||
children: [
|
||||
{ name: "password", href: "/settings/security/password" },
|
||||
{ name: "2fa_auth", href: "/settings/security/two-factor-auth" },
|
||||
@@ -56,13 +56,13 @@ const tabs: VerticalTabItemProps[] = [
|
||||
{
|
||||
name: "billing",
|
||||
href: "/settings/billing",
|
||||
icon: FiCreditCard,
|
||||
icon: CreditCard,
|
||||
children: [{ name: "manage_billing", href: "/settings/billing" }],
|
||||
},
|
||||
{
|
||||
name: "developer",
|
||||
href: "/settings/developer",
|
||||
icon: FiTerminal,
|
||||
icon: Terminal,
|
||||
children: [
|
||||
//
|
||||
{ name: "webhooks", href: "/settings/developer/webhooks" },
|
||||
@@ -74,13 +74,13 @@ const tabs: VerticalTabItemProps[] = [
|
||||
{
|
||||
name: "teams",
|
||||
href: "/settings/teams",
|
||||
icon: FiUsers,
|
||||
icon: Users,
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
name: "admin",
|
||||
href: "/settings/admin",
|
||||
icon: FiLock,
|
||||
icon: Lock,
|
||||
children: [
|
||||
//
|
||||
{ name: "features", href: "/settings/admin/flags" },
|
||||
@@ -129,7 +129,7 @@ const BackButtonInSidebar = ({ name }: { name: string }) => {
|
||||
href="/"
|
||||
className="hover:bg-subtle [&[aria-current='page']]:bg-emphasis [&[aria-current='page']]:text-emphasis group-hover:text-default text-emphasis 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"
|
||||
data-testid={`vertical-tab-${name}`}>
|
||||
<FiArrowLeft className="h-4 w-4 stroke-[2px] ltr:mr-[10px] rtl:ml-[10px] md:mt-0" />
|
||||
<ArrowLeft 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>
|
||||
@@ -255,7 +255,7 @@ const SettingsSidebarContainer = ({
|
||||
])
|
||||
}>
|
||||
<div className="ltr:mr-3 rtl:ml-3">
|
||||
{teamMenuState[index].teamMenuOpen ? <FiChevronDown /> : <FiChevronRight />}
|
||||
{teamMenuState[index].teamMenuOpen ? <ChevronDown /> : <ChevronRight />}
|
||||
</div>
|
||||
<img
|
||||
src={getPlaceholderAvatar(team.logo, team?.name as string)}
|
||||
@@ -324,7 +324,7 @@ const SettingsSidebarContainer = ({
|
||||
name={t("add_a_team")}
|
||||
href={`${WEBAPP_URL}/settings/teams/new`}
|
||||
textClassNames="px-3 items-center mt-2 text-emphasis font-medium text-sm"
|
||||
icon={FiPlus}
|
||||
icon={Plus}
|
||||
disableChevron
|
||||
/>
|
||||
</div>
|
||||
@@ -344,14 +344,14 @@ const MobileSettingsContainer = (props: { onSideContainerOpen?: () => void }) =>
|
||||
<>
|
||||
<nav className="bg-muted border-muted sticky top-0 z-20 flex w-full items-center justify-between border-b sm:relative lg:hidden">
|
||||
<div className="flex items-center space-x-3 ">
|
||||
<Button StartIcon={FiMenu} color="minimal" variant="icon" onClick={props.onSideContainerOpen}>
|
||||
<Button StartIcon={Menu} color="minimal" variant="icon" onClick={props.onSideContainerOpen}>
|
||||
<span className="sr-only">{t("show_navigation")}</span>
|
||||
</Button>
|
||||
|
||||
<button
|
||||
className="hover:bg-emphasis flex items-center space-x-2 rounded-md px-3 py-1 rtl:space-x-reverse"
|
||||
onClick={() => router.back()}>
|
||||
<FiArrowLeft className="text-default" />
|
||||
<ArrowLeft className="text-default" />
|
||||
<p className="text-emphasis font-semibold">{t("settings")}</p>
|
||||
</button>
|
||||
</div>
|
||||
@@ -431,7 +431,7 @@ function ShellHeader() {
|
||||
<div className="border-subtle mb-8 flex w-full items-center border-b pb-6">
|
||||
{meta.backButton && (
|
||||
<a href="javascript:history.back()">
|
||||
<FiArrowLeft className="mr-7" />
|
||||
<ArrowLeft className="mr-7" />
|
||||
</a>
|
||||
)}
|
||||
<div>
|
||||
|
||||
@@ -45,26 +45,26 @@ import {
|
||||
useCalcomTheme,
|
||||
} from "@calcom/ui";
|
||||
import {
|
||||
FiArrowLeft,
|
||||
FiArrowRight,
|
||||
FiBarChart,
|
||||
FiCalendar,
|
||||
FiClock,
|
||||
FiDownload,
|
||||
FiExternalLink,
|
||||
FiFileText,
|
||||
FiGrid,
|
||||
FiHelpCircle,
|
||||
FiLink,
|
||||
FiLogOut,
|
||||
FiMap,
|
||||
FiMoon,
|
||||
FiMoreHorizontal,
|
||||
FiMoreVertical,
|
||||
FiSettings,
|
||||
FiSlack,
|
||||
FiUsers,
|
||||
FiZap,
|
||||
ArrowLeft,
|
||||
ArrowRight,
|
||||
BarChart,
|
||||
Calendar,
|
||||
Clock,
|
||||
Download,
|
||||
ExternalLink,
|
||||
FileText,
|
||||
Grid,
|
||||
HelpCircle,
|
||||
Link as LinkIcon,
|
||||
LogOut,
|
||||
Map,
|
||||
Moon,
|
||||
MoreHorizontal,
|
||||
MoreVertical,
|
||||
Settings,
|
||||
Slack,
|
||||
Users,
|
||||
Zap,
|
||||
} from "@calcom/ui/components/icon";
|
||||
|
||||
import FreshChatProvider from "../ee/support/lib/freshchat/FreshChatProvider";
|
||||
@@ -318,7 +318,7 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||
: "No public page"}
|
||||
</span>
|
||||
</span>
|
||||
<FiMoreVertical
|
||||
<MoreVertical
|
||||
className="group-hover:text-subtle text-muted h-4 w-4 flex-shrink-0 ltr:mr-2 rtl:ml-2 rtl:mr-4"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
@@ -344,7 +344,7 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||
<DropdownItem
|
||||
type="button"
|
||||
StartIcon={(props) => (
|
||||
<FiMoon className={classNames("text-default", props.className)} aria-hidden="true" />
|
||||
<Moon className={classNames("text-default", props.className)} aria-hidden="true" />
|
||||
)}
|
||||
onClick={() => {
|
||||
mutation.mutate({ away: !user?.away });
|
||||
@@ -361,14 +361,14 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
href={`${process.env.NEXT_PUBLIC_WEBSITE_URL}/${user.username}`}
|
||||
StartIcon={FiExternalLink}>
|
||||
StartIcon={ExternalLink}>
|
||||
{t("view_public_page")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
type="button"
|
||||
StartIcon={FiLink}
|
||||
StartIcon={LinkIcon}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
navigator.clipboard.writeText(
|
||||
@@ -384,7 +384,7 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
StartIcon={(props) => <FiSlack strokeWidth={1.5} {...props} />}
|
||||
StartIcon={(props) => <Slack strokeWidth={1.5} {...props} />}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
href={JOIN_SLACK}>
|
||||
@@ -392,24 +392,20 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem StartIcon={FiMap} target="_blank" href={ROADMAP}>
|
||||
<DropdownItem StartIcon={Map} target="_blank" href={ROADMAP}>
|
||||
{t("visit_roadmap")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
type="button"
|
||||
StartIcon={(props) => <FiHelpCircle aria-hidden="true" {...props} />}
|
||||
StartIcon={(props) => <HelpCircle aria-hidden="true" {...props} />}
|
||||
onClick={() => setHelpOpen(true)}>
|
||||
{t("help")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem className="desktop-hidden hidden lg:flex">
|
||||
<DropdownItem
|
||||
StartIcon={FiDownload}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
href={DESKTOP_APP_LINK}>
|
||||
<DropdownItem StartIcon={Download} target="_blank" rel="noreferrer" href={DESKTOP_APP_LINK}>
|
||||
{t("download_desktop_app")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
@@ -418,7 +414,7 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem
|
||||
type="button"
|
||||
StartIcon={(props) => <FiLogOut aria-hidden="true" {...props} />}
|
||||
StartIcon={(props) => <LogOut aria-hidden="true" {...props} />}
|
||||
onClick={() => signOut({ callbackUrl: "/auth/logout" })}>
|
||||
{t("sign_out")}
|
||||
</DropdownItem>
|
||||
@@ -459,12 +455,12 @@ const navigation: NavigationItemType[] = [
|
||||
{
|
||||
name: "event_types_page_title",
|
||||
href: "/event-types",
|
||||
icon: FiLink,
|
||||
icon: LinkIcon,
|
||||
},
|
||||
{
|
||||
name: "bookings",
|
||||
href: "/bookings/upcoming",
|
||||
icon: FiCalendar,
|
||||
icon: Calendar,
|
||||
badge: <UnconfirmedBookingBadge />,
|
||||
isCurrent: ({ router }) => {
|
||||
const path = router.asPath.split("?")[0];
|
||||
@@ -474,19 +470,19 @@ const navigation: NavigationItemType[] = [
|
||||
{
|
||||
name: "availability",
|
||||
href: "/availability",
|
||||
icon: FiClock,
|
||||
icon: Clock,
|
||||
},
|
||||
{
|
||||
name: "teams",
|
||||
href: "/teams",
|
||||
icon: FiUsers,
|
||||
icon: Users,
|
||||
onlyDesktop: true,
|
||||
badge: <TeamInviteBadge />,
|
||||
},
|
||||
{
|
||||
name: "apps",
|
||||
href: "/apps",
|
||||
icon: FiGrid,
|
||||
icon: Grid,
|
||||
isCurrent: ({ router, item }) => {
|
||||
const path = router.asPath.split("?")[0];
|
||||
// During Server rendering path is /v2/apps but on client it becomes /apps(weird..)
|
||||
@@ -521,12 +517,12 @@ const navigation: NavigationItemType[] = [
|
||||
{
|
||||
name: MORE_SEPARATOR_NAME,
|
||||
href: "/more",
|
||||
icon: FiMoreHorizontal,
|
||||
icon: MoreHorizontal,
|
||||
},
|
||||
{
|
||||
name: "Routing Forms",
|
||||
href: "/apps/routing-forms/forms",
|
||||
icon: FiFileText,
|
||||
icon: FileText,
|
||||
isCurrent: ({ router }) => {
|
||||
return router.asPath.startsWith("/apps/routing-forms/");
|
||||
},
|
||||
@@ -534,17 +530,17 @@ const navigation: NavigationItemType[] = [
|
||||
{
|
||||
name: "workflows",
|
||||
href: "/workflows",
|
||||
icon: FiZap,
|
||||
icon: Zap,
|
||||
},
|
||||
{
|
||||
name: "insights",
|
||||
href: "/insights",
|
||||
icon: FiBarChart,
|
||||
icon: BarChart,
|
||||
},
|
||||
{
|
||||
name: "settings",
|
||||
href: "/settings/my-account/profile",
|
||||
icon: FiSettings,
|
||||
icon: Settings,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -721,7 +717,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>
|
||||
<FiArrowRight className="text-subtle h-5 w-5" />
|
||||
<ArrowRight className="text-subtle h-5 w-5" />
|
||||
</Link>
|
||||
</li>
|
||||
);
|
||||
@@ -753,13 +749,13 @@ function SideBar() {
|
||||
color="minimal"
|
||||
onClick={() => window.history.back()}
|
||||
className="desktop-only hover:text-emphasis text-subtle group flex text-sm font-medium">
|
||||
<FiArrowLeft className="group-hover:text-emphasis text-subtle h-4 w-4 flex-shrink-0" />
|
||||
<ArrowLeft className="group-hover:text-emphasis text-subtle h-4 w-4 flex-shrink-0" />
|
||||
</button>
|
||||
<button
|
||||
color="minimal"
|
||||
onClick={() => window.history.forward()}
|
||||
className="desktop-only hover:text-emphasis text-subtle group flex text-sm font-medium">
|
||||
<FiArrowRight className="group-hover:text-emphasis text-subtle h-4 w-4 flex-shrink-0" />
|
||||
<ArrowRight className="group-hover:text-emphasis text-subtle h-4 w-4 flex-shrink-0" />
|
||||
</button>
|
||||
<KBarTrigger />
|
||||
</div>
|
||||
@@ -811,7 +807,7 @@ export function ShellMain(props: LayoutProps) {
|
||||
onClick={() =>
|
||||
typeof props.backPath === "string" ? router.push(props.backPath as string) : router.back()
|
||||
}
|
||||
StartIcon={FiArrowLeft}
|
||||
StartIcon={ArrowLeft}
|
||||
aria-label="Go Back"
|
||||
className="rounded-md ltr:mr-2 rtl:ml-2"
|
||||
/>
|
||||
@@ -901,7 +897,7 @@ function TopNav() {
|
||||
<button className="hover:bg-muted hover:text-subtle text-muted rounded-full p-1 focus:outline-none focus:ring-2 focus:ring-black focus:ring-offset-2">
|
||||
<span className="sr-only">{t("settings")}</span>
|
||||
<Link href="/settings/my-account/profile">
|
||||
<FiSettings className="text-default h-4 w-4" aria-hidden="true" />
|
||||
<Settings className="text-default h-4 w-4" aria-hidden="true" />
|
||||
</Link>
|
||||
</button>
|
||||
<UserDropdown small />
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
Switch,
|
||||
Tooltip,
|
||||
} from "@calcom/ui";
|
||||
import { FiAlertCircle, FiEdit, FiMoreHorizontal, FiTrash } from "@calcom/ui/components/icon";
|
||||
import { AlertCircle, Edit, MoreHorizontal, Trash } from "@calcom/ui/components/icon";
|
||||
|
||||
type WebhookProps = {
|
||||
id: string;
|
||||
@@ -71,7 +71,7 @@ export default function WebhookListItem(props: {
|
||||
key={trigger}
|
||||
className="mt-2.5 basis-1/5 ltr:mr-2 rtl:ml-2"
|
||||
variant="gray"
|
||||
startIcon={FiAlertCircle}>
|
||||
startIcon={AlertCircle}>
|
||||
{t(`${trigger.toLowerCase()}`)}
|
||||
</Badge>
|
||||
))}
|
||||
@@ -96,24 +96,24 @@ export default function WebhookListItem(props: {
|
||||
<Button
|
||||
className="hidden lg:flex"
|
||||
color="destructive"
|
||||
StartIcon={FiTrash}
|
||||
StartIcon={Trash}
|
||||
variant="icon"
|
||||
onClick={onDeleteWebhook}
|
||||
/>
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button className="lg:hidden" StartIcon={FiMoreHorizontal} variant="icon" color="secondary" />
|
||||
<Button className="lg:hidden" StartIcon={MoreHorizontal} variant="icon" color="secondary" />
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent>
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem StartIcon={FiEdit} color="secondary" onClick={props.onEditWebhook}>
|
||||
<DropdownItem StartIcon={Edit} color="secondary" onClick={props.onEditWebhook}>
|
||||
{t("edit")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuSeparator />
|
||||
|
||||
<DropdownMenuItem>
|
||||
<DropdownItem StartIcon={FiTrash} color="destructive" onClick={onDeleteWebhook}>
|
||||
<DropdownItem StartIcon={Trash} color="destructive" onClick={onDeleteWebhook}>
|
||||
{t("delete")}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useWatch } from "react-hook-form";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Badge, Button, showToast } from "@calcom/ui";
|
||||
import { FiActivity } from "@calcom/ui/components/icon";
|
||||
import { Activity } from "@calcom/ui/components/icon";
|
||||
|
||||
export default function WebhookTestDisclosure() {
|
||||
const subscriberUrl: string = useWatch({ name: "subscriberUrl" });
|
||||
@@ -26,7 +26,7 @@ export default function WebhookTestDisclosure() {
|
||||
type="button"
|
||||
color="secondary"
|
||||
disabled={mutation.isLoading || !subscriberUrl}
|
||||
StartIcon={FiActivity}
|
||||
StartIcon={Activity}
|
||||
onClick={() => mutation.mutate({ url: subscriberUrl, type: "PING", payloadTemplate })}>
|
||||
{t("ping_test")}
|
||||
</Button>
|
||||
|
||||
@@ -5,7 +5,7 @@ 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, Meta, SkeletonText } from "@calcom/ui";
|
||||
import { FiPlus, FiLink } from "@calcom/ui/components/icon";
|
||||
import { Plus, Link as LinkIcon } from "@calcom/ui/components/icon";
|
||||
|
||||
import { getLayout } from "../../settings/layouts/SettingsLayout";
|
||||
import { WebhookListItem, WebhookListSkeleton } from "../components";
|
||||
@@ -30,7 +30,7 @@ const NewWebhookButton = () => {
|
||||
<Button
|
||||
color="secondary"
|
||||
data-testid="new_webhook"
|
||||
StartIcon={FiPlus}
|
||||
StartIcon={Plus}
|
||||
href={`${WEBAPP_URL}/settings/developer/webhooks/new`}>
|
||||
{isLocaleReady ? t("new_webhook") : <SkeletonText className="h-4 w-24" />}
|
||||
</Button>
|
||||
@@ -64,7 +64,7 @@ const WebhooksList = () => {
|
||||
</>
|
||||
) : (
|
||||
<EmptyScreen
|
||||
Icon={FiLink}
|
||||
Icon={LinkIcon}
|
||||
headline={t("create_your_first_webhook")}
|
||||
description={t("create_your_first_webhook_description", { appName: APP_NAME })}
|
||||
buttonRaw={<NewWebhookButton />}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { CheckCircleIcon, ExclamationIcon, InformationCircleIcon, XCircleIcon }
|
||||
import classNames from "classnames";
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
import { FiInfo } from "../icon";
|
||||
import { Info } from "../icon";
|
||||
|
||||
export interface AlertProps {
|
||||
title?: ReactNode;
|
||||
@@ -47,7 +47,7 @@ export function Alert(props: AlertProps) {
|
||||
/>
|
||||
)}
|
||||
{severity === "neutral" && (
|
||||
<FiInfo className={classNames("text-default h-5 w-5", iconClassName)} aria-hidden="true" />
|
||||
<Info className={classNames("text-default h-5 w-5", iconClassName)} aria-hidden="true" />
|
||||
)}
|
||||
{severity === "success" && (
|
||||
<CheckCircleIcon className={classNames("text-muted h-5 w-5", iconClassName)} aria-hidden="true" />
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { AppFrontendPayload as App } from "@calcom/types/App";
|
||||
import type { CredentialFrontendPayload as Credential } from "@calcom/types/Credential";
|
||||
|
||||
import { EmptyScreen } from "../empty-screen";
|
||||
import { FiChevronLeft, FiChevronRight, FiSearch } from "../icon";
|
||||
import { ChevronLeft, ChevronRight, Search } from "../icon";
|
||||
import { AppCard } from "./AppCard";
|
||||
|
||||
export function useShouldShowArrows() {
|
||||
@@ -79,7 +79,7 @@ function CategoryTab({ selectedCategory, categories, searchText }: CategoryTabPr
|
||||
{leftVisible && (
|
||||
<button onClick={handleLeft} className="absolute bottom-0 flex md:left-1/2 md:-top-1">
|
||||
<div className="bg-default flex h-12 w-5 items-center justify-end">
|
||||
<FiChevronLeft className="text-subtle h-4 w-4" />
|
||||
<ChevronLeft className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
<div className="to-default flex h-12 w-5 bg-gradient-to-l from-transparent" />
|
||||
</button>
|
||||
@@ -122,7 +122,7 @@ function CategoryTab({ selectedCategory, categories, searchText }: CategoryTabPr
|
||||
<button onClick={handleRight} className="absolute bottom-0 right-0 flex md:-top-1">
|
||||
<div className="to-default flex h-12 w-5 bg-gradient-to-r from-transparent" />
|
||||
<div className="bg-default flex h-12 w-5 items-center justify-end">
|
||||
<FiChevronRight className="text-subtle h-4 w-4" />
|
||||
<ChevronRight className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
</button>
|
||||
)}
|
||||
@@ -176,7 +176,7 @@ export function AllApps({ apps, searchText, categories }: AllAppsPropsType) {
|
||||
</div>
|
||||
) : (
|
||||
<EmptyScreen
|
||||
Icon={FiSearch}
|
||||
Icon={Search}
|
||||
headline={t("no_results")}
|
||||
description={searchText ? searchText?.toString() : ""}
|
||||
/>
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { AppFrontendPayload as App } from "@calcom/types/App";
|
||||
import type { CredentialFrontendPayload as Credential } from "@calcom/types/Credential";
|
||||
|
||||
import { Button } from "../button";
|
||||
import { FiPlus } from "../icon";
|
||||
import { Plus } from "../icon";
|
||||
import { showToast } from "../toast";
|
||||
|
||||
interface AppCardProps {
|
||||
@@ -112,7 +112,7 @@ export function AppCard({ app, credentials, searchText }: AppCardProps) {
|
||||
<Button
|
||||
color="secondary"
|
||||
className="[@media(max-width:260px)]:w-full [@media(max-width:260px)]:justify-center"
|
||||
StartIcon={FiPlus}
|
||||
StartIcon={Plus}
|
||||
{...props}>
|
||||
{t("install")}
|
||||
</Button>
|
||||
@@ -139,7 +139,7 @@ export function AppCard({ app, credentials, searchText }: AppCardProps) {
|
||||
}
|
||||
return (
|
||||
<Button
|
||||
StartIcon={FiPlus}
|
||||
StartIcon={Plus}
|
||||
color="secondary"
|
||||
className="[@media(max-width:260px)]:w-full [@media(max-width:260px)]:justify-center"
|
||||
data-testid="install-app-button"
|
||||
|
||||
@@ -2,7 +2,7 @@ import Link from "next/link";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
|
||||
import { FiArrowRight } from "../icon";
|
||||
import { ArrowRight } from "../icon";
|
||||
import { SkeletonText } from "../skeleton";
|
||||
import { Slider } from "./Slider";
|
||||
|
||||
@@ -44,7 +44,7 @@ export function AppStoreCategories({
|
||||
)}
|
||||
<p className="text-subtle pt-2 text-sm font-medium">
|
||||
{isLocaleReady ? t("number_apps", { count: category.count }) : <SkeletonText invisible />}{" "}
|
||||
<FiArrowRight className="inline-block h-4 w-4" />
|
||||
<ArrowRight className="inline-block h-4 w-4" />
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
|
||||
@@ -7,7 +7,7 @@ import { useEffect, useRef } from "react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
|
||||
import { FiArrowLeft, FiArrowRight } from "../icon";
|
||||
import { ArrowLeft, ArrowRight } from "../icon";
|
||||
import { SkeletonText } from "../skeleton";
|
||||
|
||||
const SliderButton: FC<ComponentProps<"button">> = (props) => {
|
||||
@@ -63,10 +63,10 @@ export const Slider = <T extends string | unknown>({
|
||||
)}
|
||||
<div className="glide__arrows ml-auto flex items-center gap-x-1" data-glide-el="controls">
|
||||
<SliderButton data-glide-dir="<">
|
||||
<FiArrowLeft className="h-5 w-5" />
|
||||
<ArrowLeft className="h-5 w-5" />
|
||||
</SliderButton>
|
||||
<SliderButton data-glide-dir=">">
|
||||
<FiArrowRight className="h-5 w-5" />
|
||||
<ArrowRight className="h-5 w-5" />
|
||||
</SliderButton>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@ import { defaultAvatarSrc } from "@calcom/lib/defaultAvatarImage";
|
||||
|
||||
import type { Maybe } from "@trpc/server";
|
||||
|
||||
import { FiCheck } from "../icon";
|
||||
import { Check } from "../icon";
|
||||
|
||||
export type AvatarProps = {
|
||||
className?: string;
|
||||
@@ -62,7 +62,7 @@ export function Avatar(props: AvatarProps) {
|
||||
size === "lg" ? "h-5 w-5" : "h-2 w-2"
|
||||
)}>
|
||||
<div className="flex h-full items-center justify-center p-[2px]">
|
||||
{size === "lg" && <FiCheck />}
|
||||
{size === "lg" && <Check />}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Canvas, Meta, Story, ArgsTable } from '@storybook/addon-docs';
|
||||
import { Examples, Example, Note, Title,CustomArgsTable,VariantsTable, VariantRow } from '@calcom/storybook/components'
|
||||
import { FiPlus } from '../icon';
|
||||
import { Plus } from '../icon';
|
||||
import { Badge } from './Badge';
|
||||
|
||||
<Meta title="UI/Badge" component={Badge} />
|
||||
@@ -40,7 +40,7 @@ Status badge communicate status information. It is generally used within a cont
|
||||
<Badge withDot>Button Text</Badge>
|
||||
</Example>
|
||||
<Example title="With Icon">
|
||||
<Badge startIcon={FiPlus}>Button Text</Badge>
|
||||
<Badge startIcon={Plus}>Button Text</Badge>
|
||||
</Example>
|
||||
</Examples>
|
||||
|
||||
@@ -61,22 +61,22 @@ Alet badge is used in conjunction with an item, profile or label to indicate num
|
||||
<VariantRow variant="Default">
|
||||
<Badge variant="default" >Badge text</Badge>
|
||||
<Badge variant="default" withDot>Badge text</Badge>
|
||||
<Badge variant="default" startIcon={FiPlus}>Badge text</Badge>
|
||||
<Badge variant="default" startIcon={Plus}>Badge text</Badge>
|
||||
</VariantRow>
|
||||
<VariantRow variant="Success">
|
||||
<Badge variant="success" >Badge text</Badge>
|
||||
<Badge variant="success" withDot>Badge text</Badge>
|
||||
<Badge variant="success" startIcon={FiPlus}>Badge text</Badge>
|
||||
<Badge variant="success" startIcon={Plus}>Badge text</Badge>
|
||||
</VariantRow>
|
||||
<VariantRow variant="gray">
|
||||
<Badge variant="gray" >Badge text</Badge>
|
||||
<Badge variant="gray" withDot>Badge text</Badge>
|
||||
<Badge variant="gray" startIcon={FiPlus}>Badge text</Badge>
|
||||
<Badge variant="gray" startIcon={Plus}>Badge text</Badge>
|
||||
</VariantRow>
|
||||
<VariantRow variant="error">
|
||||
<Badge variant="error" >Badge text</Badge>
|
||||
<Badge variant="error" withDot>Badge text</Badge>
|
||||
<Badge variant="error" startIcon={FiPlus}>Badge text</Badge>
|
||||
<Badge variant="error" startIcon={Plus}>Badge text</Badge>
|
||||
</VariantRow>
|
||||
</VariantsTable>
|
||||
</Story>
|
||||
|
||||
@@ -8,7 +8,7 @@ import classNames from "@calcom/lib/classNames";
|
||||
import { applyStyleToMultipleVariants } from "@calcom/lib/cva";
|
||||
import type { SVGComponent } from "@calcom/types/SVGComponent";
|
||||
|
||||
import { FiPlus } from "../icon";
|
||||
import { Plus } from "../icon";
|
||||
import { Tooltip } from "../tooltip";
|
||||
|
||||
type InferredVariantProps = VariantProps<typeof buttonClasses>;
|
||||
@@ -202,7 +202,7 @@ export const Button = forwardRef<HTMLAnchorElement | HTMLButtonElement, ButtonPr
|
||||
{variant === "fab" ? (
|
||||
<>
|
||||
<StartIcon className="hidden h-4 w-4 stroke-[1.5px] ltr:mr-2 ltr:-ml-1 rtl:-mr-1 rtl:ml-2 md:inline-flex" />
|
||||
<FiPlus className="inline h-6 w-6 md:hidden" />
|
||||
<Plus className="inline h-6 w-6 md:hidden" />
|
||||
</>
|
||||
) : (
|
||||
<StartIcon
|
||||
@@ -239,7 +239,7 @@ export const Button = forwardRef<HTMLAnchorElement | HTMLButtonElement, ButtonPr
|
||||
{variant === "fab" ? (
|
||||
<>
|
||||
<EndIcon className="ms-2 me-2 -mr-1 hidden h-5 w-5 md:inline" />
|
||||
<FiPlus className="inline h-6 w-6 md:hidden" />
|
||||
<Plus className="inline h-6 w-6 md:hidden" />
|
||||
</>
|
||||
) : (
|
||||
<EndIcon
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Canvas, Meta, Story, ArgsTable } from '@storybook/addon-docs';
|
||||
import { Examples, Example, Note, Title, VariantsTable, VariantColumn, RowTitles, CustomArgsTable} from '@calcom/storybook/components'
|
||||
import { FiPlus, FiX } from '../icon';
|
||||
import { Plus, X } from '../icon';
|
||||
import { Button } from './Button';
|
||||
|
||||
<Meta title="UI/Button" component={Button} />
|
||||
@@ -57,22 +57,22 @@ Button are clickable elements that initiates user actions. Labels in the button
|
||||
<Button>Button text</Button>
|
||||
</Example>
|
||||
<Example title="Icon left">
|
||||
<Button StartIcon={FiPlus}>Button text</Button>
|
||||
<Button StartIcon={Plus}>Button text</Button>
|
||||
</Example>
|
||||
<Example title="Icon right">
|
||||
<Button EndIcon={FiPlus}>Button text</Button>
|
||||
<Button EndIcon={Plus}>Button text</Button>
|
||||
</Example>
|
||||
</Examples>
|
||||
|
||||
<Examples title="Icons">
|
||||
<Example title="Icon Normal">
|
||||
<Button StartIcon={FiX} variant="icon" size="base" color="minimal"></Button>
|
||||
<Button StartIcon={X} variant="icon" size="base" color="minimal"></Button>
|
||||
</Example>
|
||||
<Example title="Icon Small">
|
||||
<Button StartIcon={FiX} variant="icon" size="sm" color="minimal"></Button>
|
||||
<Button StartIcon={X} variant="icon" size="sm" color="minimal"></Button>
|
||||
</Example>
|
||||
<Example title="Icon Loading">
|
||||
<Button StartIcon={FiX} variant="icon" size="sm" color="minimal" loading></Button>
|
||||
<Button StartIcon={X} variant="icon" size="sm" color="minimal" loading></Button>
|
||||
</Example>
|
||||
</Examples>
|
||||
|
||||
@@ -96,35 +96,35 @@ Button are clickable elements that initiates user actions. Labels in the button
|
||||
<Button color="secondary">Button text</Button>
|
||||
<Button color="minimal">Button text</Button>
|
||||
<Button color="destructive">Button text</Button>
|
||||
<Button color="destructive" variant="icon" StartIcon={FiX}></Button>
|
||||
<Button color="destructive" variant="icon" StartIcon={X}></Button>
|
||||
</VariantRow>
|
||||
<VariantRow variant="Hover">
|
||||
<Button className="sb-pseudo--hover">Button text</Button>
|
||||
<Button className="sb-pseudo--hover" color="secondary">Button text</Button>
|
||||
<Button className="sb-pseudo--hover" color="minimal">Button text</Button>
|
||||
<Button className="sb-pseudo--hover" color="destructive">Button text</Button>
|
||||
<Button className="sb-pseudo--hover" color="destructive" variant="icon" StartIcon={FiX}></Button>
|
||||
<Button className="sb-pseudo--hover" color="destructive" variant="icon" StartIcon={X}></Button>
|
||||
</VariantRow>
|
||||
<VariantRow variant="Focus">
|
||||
<Button className="sb-pseudo--focus">Button text</Button>
|
||||
<Button className="sb-pseudo--focus" color="secondary">Button text</Button>
|
||||
<Button className="sb-pseudo--focus" color="minimal">Button text</Button>
|
||||
<Button className="sb-pseudo--focus" color="destructive">Button text</Button>
|
||||
<Button className="sb-pseudo--focus" color="destructive" variant="icon" StartIcon={FiX}></Button>
|
||||
<Button className="sb-pseudo--focus" color="destructive" variant="icon" StartIcon={X}></Button>
|
||||
</VariantRow>
|
||||
<VariantRow variant="Loading">
|
||||
<Button loading>Button text</Button>
|
||||
<Button loading color="secondary">Button text</Button>
|
||||
<Button loading color="minimal">Button text</Button>
|
||||
<Button loading color="destructive">Button text</Button>
|
||||
<Button loading color="destructive" variant="icon" StartIcon={FiX}></Button>
|
||||
<Button loading color="destructive" variant="icon" StartIcon={X}></Button>
|
||||
</VariantRow>
|
||||
<VariantRow variant="Disabled">
|
||||
<Button disabled>Button text</Button>
|
||||
<Button disabled color="secondary">Button text</Button>
|
||||
<Button disabled color="minimal">Button text</Button>
|
||||
<Button disabled color="destructive">Button text</Button>
|
||||
<Button disabled color="minimal" variant="icon" StartIcon={FiX}></Button>
|
||||
<Button disabled color="minimal" variant="icon" StartIcon={X}></Button>
|
||||
</VariantRow>
|
||||
</VariantsTable>
|
||||
</Story>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Canvas, Meta, Story, ArgsTable } from '@storybook/addon-docs';
|
||||
import { Examples, Example, Note, Title,CustomArgsTable,VariantsTable,VariantRow } from '@calcom/storybook/components'
|
||||
import { FiTrash, FiNavigation, FiClipboard } from '../icon';
|
||||
import { Trash, Navigation, Clipboard } from '../icon';
|
||||
import { ButtonGroup} from './ButtonGroup';
|
||||
import { Button} from '../button/Button';
|
||||
|
||||
@@ -30,16 +30,16 @@ Button group enables multiple buttons to be combined into a single unit. It offe
|
||||
>
|
||||
<Example title="Default" >
|
||||
<ButtonGroup>
|
||||
<Button StartIcon={FiTrash} variant="icon" color="secondary" />
|
||||
<Button StartIcon={FiNavigation} variant="icon" color="secondary" />
|
||||
<Button StartIcon={FiClipboard} variant="icon" color="secondary" />
|
||||
<Button StartIcon={Trash} variant="icon" color="secondary" />
|
||||
<Button StartIcon={Navigation} variant="icon" color="secondary" />
|
||||
<Button StartIcon={Clipboard} variant="icon" color="secondary" />
|
||||
</ButtonGroup>
|
||||
</Example>
|
||||
<Example title="Combined">
|
||||
<ButtonGroup combined>
|
||||
<Button StartIcon={FiTrash} variant="icon" color="secondary" />
|
||||
<Button StartIcon={FiNavigation} variant="icon" color="secondary" />
|
||||
<Button StartIcon={FiClipboard} variant="icon" color="secondary" />
|
||||
<Button StartIcon={Trash} variant="icon" color="secondary" />
|
||||
<Button StartIcon={Navigation} variant="icon" color="secondary" />
|
||||
<Button StartIcon={Clipboard} variant="icon" color="secondary" />
|
||||
</ButtonGroup>
|
||||
</Example>
|
||||
</Examples>
|
||||
@@ -51,31 +51,31 @@ Button group enables multiple buttons to be combined into a single unit. It offe
|
||||
<VariantsTable titles={["Default",'Secondary',"Minimal"]} columnMinWidth={150}>
|
||||
<VariantRow variant="Default">
|
||||
<ButtonGroup>
|
||||
<Button StartIcon={FiTrash} variant="icon" />
|
||||
<Button StartIcon={FiNavigation} variant="icon"/>
|
||||
<Button StartIcon={FiClipboard} variant="icon" />
|
||||
<Button StartIcon={Trash} variant="icon" />
|
||||
<Button StartIcon={Navigation} variant="icon"/>
|
||||
<Button StartIcon={Clipboard} variant="icon" />
|
||||
</ButtonGroup>
|
||||
<ButtonGroup>
|
||||
<Button StartIcon={FiTrash} variant="icon" color="secondary" />
|
||||
<Button StartIcon={FiNavigation} variant="icon" color="secondary" />
|
||||
<Button StartIcon={FiClipboard} variant="icon" color="secondary" />
|
||||
<Button StartIcon={Trash} variant="icon" color="secondary" />
|
||||
<Button StartIcon={Navigation} variant="icon" color="secondary" />
|
||||
<Button StartIcon={Clipboard} variant="icon" color="secondary" />
|
||||
</ButtonGroup>
|
||||
<ButtonGroup>
|
||||
<Button StartIcon={FiTrash} variant="icon" color="minimal" />
|
||||
<Button StartIcon={FiNavigation} variant="icon" color="minimal" />
|
||||
<Button StartIcon={FiClipboard} variant="icon" color="minimal" />
|
||||
<Button StartIcon={Trash} variant="icon" color="minimal" />
|
||||
<Button StartIcon={Navigation} variant="icon" color="minimal" />
|
||||
<Button StartIcon={Clipboard} variant="icon" color="minimal" />
|
||||
</ButtonGroup>
|
||||
</VariantRow>
|
||||
<VariantRow variant="Combined">
|
||||
<ButtonGroup combined>
|
||||
<Button StartIcon={FiTrash} variant="icon" />
|
||||
<Button StartIcon={FiNavigation} variant="icon" />
|
||||
<Button StartIcon={FiClipboard} variant="icon" />
|
||||
<Button StartIcon={Trash} variant="icon" />
|
||||
<Button StartIcon={Navigation} variant="icon" />
|
||||
<Button StartIcon={Clipboard} variant="icon" />
|
||||
</ButtonGroup>
|
||||
<ButtonGroup combined>
|
||||
<Button StartIcon={FiTrash} variant="icon" color="secondary" />
|
||||
<Button StartIcon={FiNavigation} variant="icon" color="secondary" />
|
||||
<Button StartIcon={FiClipboard} variant="icon" color="secondary" />
|
||||
<Button StartIcon={Trash} variant="icon" color="secondary" />
|
||||
<Button StartIcon={Navigation} variant="icon" color="secondary" />
|
||||
<Button StartIcon={Clipboard} variant="icon" color="secondary" />
|
||||
</ButtonGroup>
|
||||
</VariantRow>
|
||||
</VariantsTable>
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { ReactNode } from "react";
|
||||
import React from "react";
|
||||
|
||||
import classNames from "@calcom/lib/classNames";
|
||||
import { FiArrowRight } from "@calcom/ui/components/icon";
|
||||
import { ArrowRight } from "@calcom/ui/components/icon";
|
||||
|
||||
import { Button } from "../button";
|
||||
|
||||
@@ -134,7 +134,7 @@ export function Card({
|
||||
{/* TODO: this should be CardActions https://mui.com/material-ui/api/card-actions/ */}
|
||||
<div>
|
||||
{variant === "basic" && (
|
||||
<Button color="secondary" href={actionButton?.href} className="mt-10" EndIcon={FiArrowRight}>
|
||||
<Button color="secondary" href={actionButton?.href} className="mt-10" EndIcon={ArrowRight}>
|
||||
{actionButton?.child}
|
||||
</Button>
|
||||
)}
|
||||
|
||||
@@ -5,7 +5,7 @@ import { classNames } from "@calcom/lib";
|
||||
import type { BadgeProps } from "../..";
|
||||
import { Badge } from "../..";
|
||||
import { Divider } from "../divider";
|
||||
import { FiArrowDown, FiArrowUp, FiTrash } from "../icon";
|
||||
import { ArrowDown, ArrowUp, Trash } from "../icon";
|
||||
|
||||
type Action = { check: () => boolean; fn: () => void };
|
||||
export default function FormCard({
|
||||
@@ -39,7 +39,7 @@ export default function FormCard({
|
||||
type="button"
|
||||
className="bg-default text-muted hover:text-emphasis invisible absolute left-0 -ml-[13px] -mt-10 flex h-6 w-6 scale-0 items-center justify-center rounded-md border p-1 transition-all hover:border-transparent hover:shadow group-hover:visible group-hover:scale-100 "
|
||||
onClick={() => moveUp?.fn()}>
|
||||
<FiArrowUp />
|
||||
<ArrowUp />
|
||||
</button>
|
||||
) : null}
|
||||
{moveDown?.check() ? (
|
||||
@@ -47,7 +47,7 @@ export default function FormCard({
|
||||
type="button"
|
||||
className="bg-default text-muted hover:text-emphasis invisible absolute left-0 -ml-[13px] -mt-2 flex h-6 w-6 scale-0 items-center justify-center rounded-md border p-1 transition-all hover:border-transparent hover:shadow group-hover:visible group-hover:scale-100"
|
||||
onClick={() => moveDown?.fn()}>
|
||||
<FiArrowDown />
|
||||
<ArrowDown />
|
||||
</button>
|
||||
) : null}
|
||||
</div>
|
||||
@@ -68,7 +68,7 @@ export default function FormCard({
|
||||
deleteField?.fn();
|
||||
}}
|
||||
color="secondary">
|
||||
<FiTrash className="text-muted h-4 w-4" />
|
||||
<Trash className="text-muted h-4 w-4" />
|
||||
</button>
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
DropdownMenuLabel,
|
||||
DropdownMenuTrigger,
|
||||
} from "@calcom/ui";
|
||||
import { FiPlus } from "@calcom/ui/components/icon";
|
||||
import { Plus } from "@calcom/ui/components/icon";
|
||||
|
||||
export interface Option {
|
||||
teamId: number | null | undefined; // if undefined, then it's a profile
|
||||
@@ -72,7 +72,7 @@ export function CreateButton(props: CreateBtnProps) {
|
||||
: null
|
||||
}
|
||||
data-testid="new-event-type"
|
||||
StartIcon={FiPlus}
|
||||
StartIcon={Plus}
|
||||
loading={props.isLoading}
|
||||
variant={props.disableMobileButton ? "button" : "fab"}>
|
||||
{props.buttonText ? props.buttonText : t("new")}
|
||||
@@ -82,7 +82,7 @@ export function CreateButton(props: CreateBtnProps) {
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button
|
||||
variant={props.disableMobileButton ? "button" : "fab"}
|
||||
StartIcon={FiPlus}
|
||||
StartIcon={Plus}
|
||||
loading={props.isLoading}>
|
||||
{props.buttonText ? props.buttonText : t("new")}
|
||||
</Button>
|
||||
|
||||
@@ -4,7 +4,7 @@ import React from "react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
|
||||
import { FiAlertCircle, FiCheck } from "../icon";
|
||||
import { AlertCircle, Check } from "../icon";
|
||||
import { DialogClose, DialogContent } from "./Dialog";
|
||||
|
||||
type ConfirmBtnType =
|
||||
@@ -41,17 +41,17 @@ export function ConfirmationDialogContent(props: PropsWithChildren<ConfirmationD
|
||||
<div className="mt-0.5 ltr:mr-3">
|
||||
{variety === "danger" && (
|
||||
<div className="bg-error mx-auto rounded-full p-2 text-center">
|
||||
<FiAlertCircle className="h-5 w-5 text-red-600" />
|
||||
<AlertCircle className="h-5 w-5 text-red-600" />
|
||||
</div>
|
||||
)}
|
||||
{variety === "warning" && (
|
||||
<div className="bg-attention mx-auto rounded-full p-2 text-center">
|
||||
<FiAlertCircle className="h-5 w-5 text-orange-600" />
|
||||
<AlertCircle className="h-5 w-5 text-orange-600" />
|
||||
</div>
|
||||
)}
|
||||
{variety === "success" && (
|
||||
<div className="bg-success mx-auto rounded-full p-2 text-center">
|
||||
<FiCheck className="h-5 w-5 text-green-600" />
|
||||
<Check className="h-5 w-5 text-green-600" />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
|
||||
import { Dropdown, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../form/dropdown";
|
||||
import { FiChevronDown } from "../../icon";
|
||||
import { ChevronDown } from "../../icon";
|
||||
|
||||
interface IAddVariablesDropdown {
|
||||
addVariable: (variable: string) => void;
|
||||
@@ -20,14 +20,14 @@ export const AddVariablesDropdown = (props: IAddVariablesDropdown) => {
|
||||
<>
|
||||
<div className="hidden sm:flex">
|
||||
{t("add_variable")}
|
||||
<FiChevronDown className="mt-[2px] ml-1 h-4 w-4" />
|
||||
<ChevronDown className="mt-[2px] ml-1 h-4 w-4" />
|
||||
</div>
|
||||
<div className="block sm:hidden">+</div>
|
||||
</>
|
||||
) : (
|
||||
<div className="flex">
|
||||
{t("add_variable")}
|
||||
<FiChevronDown className="mt-[2px] ml-1 h-4 w-4" />
|
||||
<ChevronDown className="mt-[2px] ml-1 h-4 w-4" />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -27,7 +27,7 @@ import { createPortal } from "react-dom";
|
||||
|
||||
import { Button } from "../../button";
|
||||
import { Dropdown, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../form/dropdown";
|
||||
import { FiBold, FiChevronDown, FiItalic, FiLink } from "../../icon";
|
||||
import { Bold, ChevronDown, Italic, Link } from "../../icon";
|
||||
import type { TextEditorProps } from "../Editor";
|
||||
import { AddVariablesDropdown } from "./AddVariablesDropdown";
|
||||
|
||||
@@ -396,7 +396,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
|
||||
<span className="text text-default hidden sm:flex">
|
||||
{blockTypeToBlockName[blockType as keyof BlockType]}
|
||||
</span>
|
||||
<FiChevronDown className="text-default ml-2 h-4 w-4" />
|
||||
<ChevronDown className="text-default ml-2 h-4 w-4" />
|
||||
</>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent align="start">
|
||||
@@ -430,7 +430,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
type="button"
|
||||
StartIcon={FiBold}
|
||||
StartIcon={Bold}
|
||||
onClick={() => {
|
||||
editor.dispatchCommand(FORMAT_TEXT_COMMAND, "bold");
|
||||
if (isItalic) {
|
||||
@@ -445,7 +445,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
type="button"
|
||||
StartIcon={FiItalic}
|
||||
StartIcon={Italic}
|
||||
onClick={() => {
|
||||
editor.dispatchCommand(FORMAT_TEXT_COMMAND, "italic");
|
||||
if (isItalic) {
|
||||
@@ -461,7 +461,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
type="button"
|
||||
StartIcon={FiLink}
|
||||
StartIcon={Link}
|
||||
onClick={insertLink}
|
||||
className={isLink ? "bg-subtle" : ""}
|
||||
/>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { LucideIcon as IconType } from "lucide-react";
|
||||
import type { ReactNode } from "react";
|
||||
import React from "react";
|
||||
import type { IconType } from "react-icons";
|
||||
|
||||
import { classNames } from "@calcom/lib";
|
||||
import type { SVGComponent } from "@calcom/types/SVGComponent";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Canvas, Meta, Story, ArgsTable } from '@storybook/addon-docs';
|
||||
import { Examples, Example, Note, Title,CustomArgsTable,VariantsTable,VariantRow } from '@calcom/storybook/components'
|
||||
import { FiCalendar } from "../icon";
|
||||
import { Calendar } from "../icon";
|
||||
import { EmptyScreen } from './EmptyScreen';
|
||||
|
||||
<Meta title="UI/EmptyScreen" component={EmptyScreen} />
|
||||
@@ -17,7 +17,7 @@ The CTA button can prompt the user to add the info/ apps needed for the page.
|
||||
<VariantsTable titles={[]} columnMinWidth={150}>
|
||||
<VariantRow variant="Default">
|
||||
<EmptyScreen
|
||||
Icon={FiCalendar}
|
||||
Icon={Calendar}
|
||||
headline="Empty state header"
|
||||
description="Do consectetur qui ex deserunt do est veniam commodo. Eiusmod eiusmod dolore nostrud pariatur mollit sit commodo. Learn More."
|
||||
buttonText="Button text"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import "@wojtekmaj/react-daterange-picker/dist/DateRangePicker.css";
|
||||
import PrimitiveDateRangePicker from "@wojtekmaj/react-daterange-picker/dist/entry.nostyle";
|
||||
|
||||
import { FiArrowRight, FiCalendar, FiChevronLeft, FiChevronRight } from "../../icon";
|
||||
import { ArrowRight, Calendar, ChevronLeft, ChevronRight } from "../../icon";
|
||||
import "./styles.css";
|
||||
|
||||
type Props = {
|
||||
@@ -19,14 +19,14 @@ const DateRangePicker = ({ disabled, startDate, endDate, onDatesChange }: Props)
|
||||
disabled={disabled || false}
|
||||
className="border-default rounded-sm text-sm"
|
||||
clearIcon={null}
|
||||
calendarIcon={<FiCalendar className="text-subtle h-4 w-4" />}
|
||||
rangeDivider={<FiArrowRight className="text-muted h-4 w-4 ltr:mr-2 rtl:ml-2" />}
|
||||
calendarIcon={<Calendar className="text-subtle h-4 w-4" />}
|
||||
rangeDivider={<ArrowRight className="text-muted h-4 w-4 ltr:mr-2 rtl:ml-2" />}
|
||||
value={[startDate, endDate]}
|
||||
onChange={([startDate, endDate]: [Date, Date]) => {
|
||||
if (typeof onDatesChange === "function") onDatesChange({ startDate, endDate });
|
||||
}}
|
||||
nextLabel={<FiChevronRight className="text-subtle h-4 w-4" />}
|
||||
prevLabel={<FiChevronLeft className="text-subtle h-4 w-4" />}
|
||||
nextLabel={<ChevronRight className="text-subtle h-4 w-4" />}
|
||||
prevLabel={<ChevronLeft className="text-subtle h-4 w-4" />}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -4,7 +4,7 @@ import PrimitiveDatePicker from "react-date-picker/dist/entry.nostyle";
|
||||
|
||||
import classNames from "@calcom/lib/classNames";
|
||||
|
||||
import { FiCalendar } from "../../icon";
|
||||
import { Calendar } from "../../icon";
|
||||
|
||||
type Props = {
|
||||
date: Date;
|
||||
@@ -23,7 +23,7 @@ const DatePicker = ({ minDate, disabled, date, onDatesChange, className }: Props
|
||||
)}
|
||||
calendarClassName="rounded-md"
|
||||
clearIcon={null}
|
||||
calendarIcon={<FiCalendar className="text-subtle h-5 w-5 rounded-md" />}
|
||||
calendarIcon={<Calendar className="text-subtle h-5 w-5 rounded-md" />}
|
||||
value={date}
|
||||
minDate={minDate}
|
||||
disabled={disabled}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { FieldValues } from "react-hook-form";
|
||||
import { useFormContext } from "react-hook-form";
|
||||
|
||||
import { FiCheck, FiCircle, FiInfo, FiX } from "../../icon";
|
||||
import { Check, Circle, Info, X } from "../../icon";
|
||||
|
||||
export function HintsOrErrors<T extends FieldValues = FieldValues>(props: {
|
||||
hintErrors?: string[];
|
||||
@@ -49,12 +49,12 @@ export function HintsOrErrors<T extends FieldValues = FieldValues>(props: {
|
||||
className={error !== undefined ? (submitted ? "text-red-700" : "") : "text-green-600"}>
|
||||
{error !== undefined ? (
|
||||
submitted ? (
|
||||
<FiX size="12" strokeWidth="3" className="-ml-1 inline-block ltr:mr-2 rtl:ml-2" />
|
||||
<X size="12" strokeWidth="3" className="-ml-1 inline-block ltr:mr-2 rtl:ml-2" />
|
||||
) : (
|
||||
<FiCircle fill="currentColor" size="5" className="inline-block ltr:mr-2 rtl:ml-2" />
|
||||
<Circle fill="currentColor" size="5" className="inline-block ltr:mr-2 rtl:ml-2" />
|
||||
)
|
||||
) : (
|
||||
<FiCheck size="12" strokeWidth="3" className="-ml-1 inline-block ltr:mr-2 rtl:ml-2" />
|
||||
<Check size="12" strokeWidth="3" className="-ml-1 inline-block ltr:mr-2 rtl:ml-2" />
|
||||
)}
|
||||
{t(`${fieldName}_hint_${key}`)}
|
||||
</li>
|
||||
@@ -70,7 +70,7 @@ export function HintsOrErrors<T extends FieldValues = FieldValues>(props: {
|
||||
return (
|
||||
<div className="text-gray mt-2 flex items-center gap-x-2 text-sm text-red-700">
|
||||
<div>
|
||||
<FiInfo className="h-3 w-3" />
|
||||
<Info className="h-3 w-3" />
|
||||
</div>
|
||||
<p>{fieldErrors.message}</p>
|
||||
</div>
|
||||
@@ -89,9 +89,9 @@ export function HintsOrErrors<T extends FieldValues = FieldValues>(props: {
|
||||
return (
|
||||
<li key={key} className={!!dirty ? "text-green-600" : ""}>
|
||||
{!!dirty ? (
|
||||
<FiCheck size="12" strokeWidth="3" className="-ml-1 inline-block ltr:mr-2 rtl:ml-2" />
|
||||
<Check size="12" strokeWidth="3" className="-ml-1 inline-block ltr:mr-2 rtl:ml-2" />
|
||||
) : (
|
||||
<FiCircle fill="currentColor" size="5" className="inline-block ltr:mr-2 rtl:ml-2" />
|
||||
<Circle fill="currentColor" size="5" className="inline-block ltr:mr-2 rtl:ml-2" />
|
||||
)}
|
||||
{t(`${fieldName}_hint_${key}`)}
|
||||
</li>
|
||||
|
||||
@@ -8,7 +8,7 @@ import { getErrorFromUnknown } from "@calcom/lib/errors";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
|
||||
import { Alert, showToast, Skeleton, Tooltip, UnstyledSelect } from "../../..";
|
||||
import { FiEye, FiEyeOff, FiX } from "../../icon";
|
||||
import { Eye, EyeOff, X } from "../../icon";
|
||||
import { HintsOrErrors } from "./HintOrErrors";
|
||||
import { Label } from "./Label";
|
||||
|
||||
@@ -168,7 +168,7 @@ export const InputField = forwardRef<HTMLInputElement, InputFieldProps>(function
|
||||
</Addon>
|
||||
)}
|
||||
{type === "search" && inputValue?.toString().length > 0 && (
|
||||
<FiX
|
||||
<X
|
||||
className="text-subtle absolute top-2.5 h-4 w-4 cursor-pointer ltr:right-2 rtl:left-2"
|
||||
onClick={(e) => {
|
||||
setInputValue("");
|
||||
@@ -227,9 +227,9 @@ export const PasswordField = forwardRef<HTMLInputElement, InputFieldProps>(funct
|
||||
type="button"
|
||||
onClick={() => toggleIsPasswordVisible()}>
|
||||
{isPasswordVisible ? (
|
||||
<FiEyeOff className="h-4 stroke-[2.5px]" />
|
||||
<EyeOff className="h-4 stroke-[2.5px]" />
|
||||
) : (
|
||||
<FiEye className="h-4 stroke-[2.5px]" />
|
||||
<Eye className="h-4 stroke-[2.5px]" />
|
||||
)}
|
||||
<span className="sr-only">{textLabel}</span>
|
||||
</button>
|
||||
|
||||
@@ -4,7 +4,7 @@ import { components as reactSelectComponents } from "react-select";
|
||||
import { classNames } from "@calcom/lib";
|
||||
|
||||
import { UpgradeTeamsBadge } from "../../badge";
|
||||
import { FiCheck } from "../../icon";
|
||||
import { Check } from "../../icon";
|
||||
|
||||
export const InputComponent = <
|
||||
Option,
|
||||
@@ -45,7 +45,7 @@ export const OptionComponent = <
|
||||
<div className="flex">
|
||||
<span className="mr-auto">{props.label}</span>
|
||||
{(props.data as unknown as ExtendedOption).needsUpgrade && <UpgradeTeamsBadge />}
|
||||
{props.isSelected && <FiCheck className="ml-2 h-4 w-4" />}
|
||||
{props.isSelected && <Check className="ml-2 h-4 w-4" />}
|
||||
</div>
|
||||
</reactSelectComponents.Option>
|
||||
);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Canvas, Meta, Story, ArgsTable } from '@storybook/addon-docs';
|
||||
import { Examples, Example, Note, Title,CustomArgsTable, VariantRow,VariantsTable} from '@calcom/storybook/components'
|
||||
import { FiPlus } from "../../icon";
|
||||
import { Plus } from "../../icon";
|
||||
|
||||
import { SelectField } from "./Select"
|
||||
|
||||
@@ -90,7 +90,7 @@ const BadSelect = props => (
|
||||
)
|
||||
|
||||
// Good: Custom component declared outside of the Select scope
|
||||
const Control = <IconLeading icon={FiPlus}/>
|
||||
const Control = <IconLeading icon={Plus}/>
|
||||
|
||||
const GoodSelect = props => <Select {...props} components={{ Control }} />
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Check } from "lucide-react";
|
||||
import React from "react";
|
||||
import { FiCheck } from "react-icons/fi";
|
||||
|
||||
import { classNames as cn } from "@calcom/lib";
|
||||
|
||||
@@ -39,10 +39,10 @@ const Item: React.FC<ItemProps> = ({ item, index, focused }) => {
|
||||
? "dark:bg-darkgray-200 border-subtle bg-gray-800 text-gray-50"
|
||||
: " dark:bg-darkgray-200 border-subtle border-default bg-mutedext-gray-600"
|
||||
)}>
|
||||
{isSelected && <FiCheck className="h-3 w-3 text-current" />}
|
||||
{isSelected && <Check className="h-3 w-3 text-current" />}
|
||||
</div>
|
||||
) : (
|
||||
isSelected && <FiCheck className="text-emphasis h-3 w-3" strokeWidth={2} />
|
||||
isSelected && <Check className="text-emphasis h-3 w-3" strokeWidth={2} />
|
||||
)}
|
||||
</>
|
||||
</li>
|
||||
@@ -76,10 +76,10 @@ const Item: React.FC<ItemProps> = ({ item, index, focused }) => {
|
||||
? "dark:bg-darkgray-200 border-subtle bg-gray-800 text-gray-50"
|
||||
: " dark:bg-darkgray-200 border-subtle border-default bg-mutedext-gray-600"
|
||||
)}>
|
||||
{isSelected && <FiCheck className="h-3 w-3 text-current" />}
|
||||
{isSelected && <Check className="h-3 w-3 text-current" />}
|
||||
</div>
|
||||
) : (
|
||||
isSelected && <FiCheck className="text-emphasis h-3 w-3" strokeWidth={2} />
|
||||
isSelected && <Check className="text-emphasis h-3 w-3" strokeWidth={2} />
|
||||
)}
|
||||
</li>
|
||||
);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useContext } from "react";
|
||||
|
||||
import { FiSearch } from "../../../icon";
|
||||
import { Search } from "../../../icon";
|
||||
import { SelectContext } from "./SelectProvider";
|
||||
|
||||
interface SearchInputProps {
|
||||
@@ -24,7 +24,7 @@ const SearchInput: React.FC<SearchInputProps> = ({
|
||||
className={
|
||||
classNames && classNames.searchContainer ? classNames.searchContainer : "relative py-1 px-2.5"
|
||||
}>
|
||||
<FiSearch
|
||||
<Search
|
||||
className={
|
||||
classNames && classNames.searchIcon
|
||||
? classNames.searchIcon
|
||||
|
||||
@@ -3,7 +3,7 @@ import React, { useCallback, useRef, useState } from "react";
|
||||
|
||||
import { classNames as cn } from "@calcom/lib";
|
||||
|
||||
import { FiX, FiChevronDown } from "../../../icon";
|
||||
import { X, ChevronDown } from "../../../icon";
|
||||
import Options from "./Options";
|
||||
import SearchInput from "./SearchInput";
|
||||
import SelectProvider from "./SelectProvider";
|
||||
@@ -162,7 +162,7 @@ function Select<T extends Option>({
|
||||
e.stopPropagation();
|
||||
removeItem(item);
|
||||
}}>
|
||||
<FiX
|
||||
<X
|
||||
className={
|
||||
classNames?.tagItemIcon ??
|
||||
" dark:hover:text-darkgray-900 hover:text-emphasis text-subtle h-4 w-4"
|
||||
@@ -185,7 +185,7 @@ function Select<T extends Option>({
|
||||
<>
|
||||
{isClearable && !isDisabled && selectedItems !== null && (
|
||||
<div className="cursor-pointer" onClick={clearValue}>
|
||||
<FiX
|
||||
<X
|
||||
className={
|
||||
classNames && classNames.closeIcon ? classNames.closeIcon : "h-5 w-5 p-0.5"
|
||||
}
|
||||
@@ -193,7 +193,7 @@ function Select<T extends Option>({
|
||||
</div>
|
||||
)}
|
||||
|
||||
<FiChevronDown className={cn("h-5 w-5 transition duration-300")} />
|
||||
<ChevronDown className={cn("h-5 w-5 transition duration-300")} />
|
||||
</>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,6 @@ import {
|
||||
VariantsTable,
|
||||
} from "@calcom/storybook/components";
|
||||
|
||||
import { FiPlus } from "../../icon";
|
||||
import Select from "./components/Select";
|
||||
|
||||
<Meta title="UI/Form/CustomSelect" component={Select} />
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
// find all feather icons at https://feathericons.com/
|
||||
// github https://github.com/feathericons/feather
|
||||
export * from "react-icons/fi";
|
||||
// find all lucide icons at https://lucide.dev/
|
||||
// github https://github.com/lucide-icons/lucide
|
||||
export * from "lucide-react";
|
||||
@@ -13,7 +13,6 @@ import {
|
||||
} from "@calcom/storybook/components";
|
||||
|
||||
import { Tooltip } from "../tooltip";
|
||||
import { FiPlus, FiX } from "../icon";
|
||||
|
||||
<Meta title="Layout/Spacing" />
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import classNames from "@calcom/lib/classNames";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import type { SVGComponent } from "@calcom/types/SVGComponent";
|
||||
|
||||
import { FiChevronRight, FiExternalLink } from "../../icon";
|
||||
import { ChevronRight, ExternalLink } from "../../icon";
|
||||
import { Skeleton } from "../../skeleton";
|
||||
|
||||
export type VerticalTabItemProps = {
|
||||
@@ -67,7 +67,7 @@ const VerticalTabItem = function ({
|
||||
<Skeleton title={t(name)} as="p" className="max-w-36 min-h-4 mt-px truncate">
|
||||
{t(name)}
|
||||
</Skeleton>
|
||||
{props.isExternalLink ? <FiExternalLink /> : null}
|
||||
{props.isExternalLink ? <ExternalLink /> : null}
|
||||
</span>
|
||||
{info && (
|
||||
<Skeleton as="p" title={t(info)} className="max-w-44 mt-1 truncate text-xs font-normal">
|
||||
@@ -77,7 +77,7 @@ const VerticalTabItem = function ({
|
||||
</div>
|
||||
{!disableChevron && isCurrent && (
|
||||
<div className="ml-auto self-center">
|
||||
<FiChevronRight
|
||||
<ChevronRight
|
||||
width={20}
|
||||
height={20}
|
||||
className="text-default h-auto w-[20px] stroke-[1.5px]"
|
||||
|
||||
Loaded 100 of 176 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user