chore: icon cleanup (#13770)
Co-authored-by: Joe Au-Yeung <[email protected]> Co-authored-by: sean-brydon <[email protected]>
This commit is contained in:
294 files changed
+3161
-1715
No files matched your search
@@ -27,7 +27,7 @@ import {
|
||||
Tooltip,
|
||||
VerticalDivider,
|
||||
} from "@calcom/ui";
|
||||
import { ArrowLeft, Info, MoreVertical, Plus, Trash } from "@calcom/ui/components/icon";
|
||||
import { Icon } from "@calcom/ui";
|
||||
|
||||
import { Shell as PlatformShell } from "../src/components/ui/shell";
|
||||
import { cn } from "../src/lib/utils";
|
||||
@@ -105,7 +105,7 @@ const DeleteDialogButton = ({
|
||||
<Dialog>
|
||||
<DialogTrigger asChild>
|
||||
<Button
|
||||
StartIcon={Trash}
|
||||
StartIcon="trash"
|
||||
variant="icon"
|
||||
color="destructive"
|
||||
aria-label={t("delete")}
|
||||
@@ -158,7 +158,7 @@ const DateOverride = ({
|
||||
{t("date_overrides")}{" "}
|
||||
<Tooltip content={t("date_overrides_info")}>
|
||||
<span className="inline-block align-middle">
|
||||
<Info className="h-4 w-4" />
|
||||
<Icon name="info" className="h-4 w-4" />
|
||||
</span>
|
||||
</Tooltip>
|
||||
</h3>
|
||||
@@ -178,7 +178,10 @@ const DateOverride = ({
|
||||
onChange={(ranges) => ranges.forEach((range) => append({ ranges: [range] }))}
|
||||
userTimeFormat={userTimeFormat}
|
||||
Trigger={
|
||||
<Button color="secondary" StartIcon={Plus} data-testid="add-override">
|
||||
<Button
|
||||
color="secondary"
|
||||
StartIcon="plus"
|
||||
data-testid="add-override">
|
||||
{t("add_an_override")}
|
||||
</Button>
|
||||
}
|
||||
@@ -321,7 +324,11 @@ export function AvailabilitySettings({
|
||||
openSidebar ? "translate-x-0 opacity-100" : "translate-x-full opacity-0"
|
||||
)}>
|
||||
<div className="flex flex-row items-center pt-5">
|
||||
<Button StartIcon={ArrowLeft} color="minimal" onClick={() => setOpenSidebar(false)} />
|
||||
<Button
|
||||
StartIcon="arrow-left"
|
||||
color="minimal"
|
||||
onClick={() => setOpenSidebar(false)}
|
||||
/>
|
||||
<p className="-ml-2">{t("availability_settings")}</p>
|
||||
<DeleteDialogButton
|
||||
buttonClassName="ml-16 inline"
|
||||
@@ -434,7 +441,7 @@ export function AvailabilitySettings({
|
||||
</Button>
|
||||
<Button
|
||||
className="ml-3 sm:hidden"
|
||||
StartIcon={MoreVertical}
|
||||
StartIcon="ellipsis-vertical"
|
||||
variant="icon"
|
||||
color="secondary"
|
||||
onClick={() => setOpenSidebar(true)}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import type { FC } from "react";
|
||||
|
||||
import { Button } from "@calcom/ui";
|
||||
import { CalendarDays } from "@calcom/ui/components/icon";
|
||||
import { Button, Icon } from "@calcom/ui";
|
||||
|
||||
import { useAtomsContext } from "../hooks/useAtomsContext";
|
||||
import { useGcal } from "../hooks/useGcal";
|
||||
@@ -26,7 +25,7 @@ export const GcalConnect: FC<GcalConnectProps> = ({
|
||||
|
||||
return (
|
||||
<Button
|
||||
StartIcon={CalendarDays}
|
||||
StartIcon="calendar-days"
|
||||
color="primary"
|
||||
disabled={!allowConnect}
|
||||
className={cn("", className)}
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
"@tanstack/react-query": "^5.17.15",
|
||||
"class-variance-authority": "^0.4.0",
|
||||
"clsx": "^2.0.0",
|
||||
"lucide-react": "^0.363.0",
|
||||
"lucide-react": "^0.364.0",
|
||||
"react-use": "^17.4.2",
|
||||
"tailwind-merge": "^1.13.2",
|
||||
"tailwindcss": "^3.3.3",
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
||||
import { X } from "lucide-react";
|
||||
import * as React from "react";
|
||||
|
||||
import { Icon } from "@calcom/ui";
|
||||
|
||||
import { cn } from "../../lib/utils";
|
||||
|
||||
const Dialog = DialogPrimitive.Root;
|
||||
@@ -42,7 +43,7 @@ const DialogContent = React.forwardRef<
|
||||
{...props}>
|
||||
{children}
|
||||
<DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none">
|
||||
<X className="h-4 w-4" />
|
||||
<Icon name="x" className="h-4 w-4" />
|
||||
<span className="sr-only">Close</span>
|
||||
</DialogPrimitive.Close>
|
||||
</DialogPrimitive.Content>
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import * as ToastPrimitives from "@radix-ui/react-toast";
|
||||
import { cva, type VariantProps } from "class-variance-authority";
|
||||
import { X } from "lucide-react";
|
||||
import * as React from "react";
|
||||
|
||||
import { Icon } from "@calcom/ui";
|
||||
|
||||
import { cn } from "../../lib/utils";
|
||||
|
||||
const ToastProvider = ToastPrimitives.Provider;
|
||||
@@ -72,7 +73,7 @@ const ToastClose = React.forwardRef<
|
||||
)}
|
||||
toast-close=""
|
||||
{...props}>
|
||||
<X className="h-4 w-4" />
|
||||
<Icon name="x" className="h-4 w-4" />
|
||||
</ToastPrimitives.Close>
|
||||
));
|
||||
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
||||
|
||||
Reference in new issue
Block a user