Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Render the tool panels and standalone editors through <Icon> (#7898)

EthanHealy01cb6f74a4d9eb
diff --git a/frontend/editor/src/core/components/shared/signing/CreateSessionFlow.tsx b/frontend/editor/src/core/components/shared/signing/CreateSessionFlow.tsx
index 78335a1935..720ae76394 100644
--- a/frontend/editor/src/core/components/shared/signing/CreateSessionFlow.tsx
+++ b/frontend/editor/src/core/components/shared/signing/CreateSessionFlow.tsx
@@ -1,7 +1,7 @@
import { useState } from "react";
import { Stack, Text, Group, Badge } from "@mantine/core";
import { useTranslation } from "react-i18next";
-import CheckIcon from "@mui/icons-material/Check";
+import { Icon } from "@app/ui/Icon";
import { SelectDocumentStep } from "@app/components/shared/signing/steps/SelectDocumentStep";
import { SelectParticipantsStep } from "@app/components/shared/signing/steps/SelectParticipantsStep";
import { ConfigureSignatureDefaultsStep } from "@app/components/shared/signing/steps/ConfigureSignatureDefaultsStep";
@@ -76,7 +76,7 @@ const StepWrapper: React.FC<StepWrapperProps> = ({
fontSize: "14px",
}}
>
- {isCompleted ? <CheckIcon sx={{ fontSize: 18 }} /> : number}
+ {isCompleted ? <Icon name="check" size={18} /> : number}
</div>
<div style={{ flex: 1 }}>
<Text size="sm" fw={600}>
diff --git a/frontend/editor/src/core/components/shared/signing/SharedSigningLauncher.tsx b/frontend/editor/src/core/components/shared/signing/SharedSigningLauncher.tsx
index a40313da37..da288249d6 100644
--- a/frontend/editor/src/core/components/shared/signing/SharedSigningLauncher.tsx
+++ b/frontend/editor/src/core/components/shared/signing/SharedSigningLauncher.tsx
@@ -1,7 +1,7 @@
import { Badge, Stack, Text } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import GroupAddOutlinedIcon from "@mui/icons-material/GroupAddOutlined";
+import { Icon } from "@app/ui/Icon";
import { useGroupSigningEnabled } from "@app/hooks/useGroupSigningEnabled";
import { useSigningSessions } from "@app/hooks/signing/useSigningSessions";
import { useToolWorkflow } from "@app/contexts/ToolWorkflowContext";
@@ -37,7 +37,7 @@ export default function SharedSigningLauncher() {
<Button
fullWidth
variant="tertiary"
- leftSection={<GroupAddOutlinedIcon sx={{ fontSize: "1.1rem" }} />}
+ leftSection={<Icon name="users-plus" size={"1.1rem"} />}
rightSection={
pendingCount > 0 ? (
<Badge size="sm" circle variant="filled" color="red">
diff --git a/frontend/editor/src/core/components/shared/signing/steps/ConfigureSignatureDefaultsStep.tsx b/frontend/editor/src/core/components/shared/signing/steps/ConfigureSignatureDefaultsStep.tsx
index d6685f6248..349fcb3108 100644
--- a/frontend/editor/src/core/components/shared/signing/steps/ConfigureSignatureDefaultsStep.tsx
+++ b/frontend/editor/src/core/components/shared/signing/steps/ConfigureSignatureDefaultsStep.tsx
@@ -1,7 +1,7 @@
import { Stack, Text, Group, Paper } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import ArrowBackIcon from "@mui/icons-material/ArrowBack";
+import { Icon } from "@app/ui/Icon";
import SignatureSettingsInput, {
SignatureSettings,
} from "@app/components/tools/certSign/SignatureSettingsInput";
@@ -75,7 +75,7 @@ export const ConfigureSignatureDefaultsStep: React.FC<
<Button
variant="secondary"
onClick={onBack}
- leftSection={<ArrowBackIcon sx={{ fontSize: 16 }} />}
+ leftSection={<Icon name="arrow-left" size={16} />}
>
{t("groupSigning.steps.back", "Back")}
</Button>
diff --git a/frontend/editor/src/core/components/shared/signing/steps/ReviewSessionStep.tsx b/frontend/editor/src/core/components/shared/signing/steps/ReviewSessionStep.tsx
index 96d003e6c6..29a6a7c98a 100644
--- a/frontend/editor/src/core/components/shared/signing/steps/ReviewSessionStep.tsx
+++ b/frontend/editor/src/core/components/shared/signing/steps/ReviewSessionStep.tsx
@@ -1,12 +1,7 @@
import { Stack, Text, Group, Divider, TextInput } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import PictureAsPdfIcon from "@mui/icons-material/PictureAsPdf";
-import PeopleIcon from "@mui/icons-material/People";
-import DrawIcon from "@mui/icons-material/Draw";
-import ArrowBackIcon from "@mui/icons-material/ArrowBack";
-import SendIcon from "@mui/icons-material/Send";
-import CalendarTodayIcon from "@mui/icons-material/CalendarToday";
+import { Icon } from "@app/ui/Icon";
import type { SignatureSettings } from "@app/components/tools/certSign/SignatureSettingsInput";
import type { FileState } from "@app/types/file";
import { formatFileSize } from "@app/utils/fileUtils";
@@ -43,8 +38,10 @@ export const ReviewSessionStep: React.FC<ReviewSessionStepProps> = ({
{/* Document Info */}
<div>
<Group gap="xs" mb="xs">
- <PictureAsPdfIcon
- sx={{ fontSize: 18, color: "var(--mantine-color-red-6)" }}
+ <Icon
+ name="file-pdf"
+ size={18}
+ style={{ color: "var(--mantine-color-red-6)" }}
/>
<Text size="sm" fw={600}>
{t("groupSigning.steps.review.document", "Document")}
@@ -74,7 +71,7 @@ export const ReviewSessionStep: React.FC<ReviewSessionStepProps> = ({
{/* Participants */}
<div>
<Group gap="xs" mb="xs">
- <PeopleIcon sx={{ fontSize: 18 }} />
+ <Icon name="users" size={18} />
<Text size="sm" fw={600}>
{t("groupSigning.steps.review.participants", "Participants")}
</Text>
@@ -92,7 +89,7 @@ export const ReviewSessionStep: React.FC<ReviewSessionStepProps> = ({
{/* Signature Settings */}
<div>
<Group gap="xs" mb="xs">
- <DrawIcon sx={{ fontSize: 18 }} />
+ <Icon name="pen-tool" size={18} />
<Text size="sm" fw={600}>
{t(
"groupSigning.steps.review.signatureSettings",
@@ -153,7 +150,7 @@ export const ReviewSessionStep: React.FC<ReviewSessionStepProps> = ({
{/* Due Date */}
<div>
<Group gap="xs" mb="xs">
- <CalendarTodayIcon sx={{ fontSize: 18 }} />
+ <Icon name="calendar" size={18} />
<Text size="sm" fw={600}>
{t("groupSigning.steps.review.dueDate", "Due Date (Optional)")}
</Text>
@@ -174,7 +171,7 @@ export const ReviewSessionStep: React.FC<ReviewSessionStepProps> = ({
<Button
variant="secondary"
onClick={onBack}
- leftSection={<ArrowBackIcon sx={{ fontSize: 16 }} />}
+ leftSection={<Icon name="arrow-left" size={16} />}
>
{t("groupSigning.steps.back", "Back")}
</Button>
@@ -182,7 +179,7 @@ export const ReviewSessionStep: React.FC<ReviewSessionStepProps> = ({
onClick={onSubmit}
disabled={disabled}
style={{ flex: 1 }}
- leftSection={<SendIcon sx={{ fontSize: 16 }} />}
+ leftSection={<Icon name="send" size={16} />}
accent="success"
>
{t("groupSigning.steps.review.send", "Send Signing Requests")}
diff --git a/frontend/editor/src/core/components/shared/signing/steps/SelectDocumentStep.tsx b/frontend/editor/src/core/components/shared/signing/steps/SelectDocumentStep.tsx
index f1f7f0e095..f4ed2f690b 100644
--- a/frontend/editor/src/core/components/shared/signing/steps/SelectDocumentStep.tsx
+++ b/frontend/editor/src/core/components/shared/signing/steps/SelectDocumentStep.tsx
@@ -1,7 +1,7 @@
import { Stack, Text } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import PictureAsPdfIcon from "@mui/icons-material/PictureAsPdf";
+import { Icon } from "@app/ui/Icon";
import type { FileState } from "@app/types/file";
import { formatFileSize } from "@app/utils/fileUtils";
@@ -48,8 +48,10 @@ export const SelectDocumentStep: React.FC<SelectDocumentStepProps> = ({
backgroundColor: "var(--mantine-color-default-hover)",
}}
>
- <PictureAsPdfIcon
- sx={{ fontSize: 32, color: "var(--mantine-color-red-6)" }}
+ <Icon
+ name="file-pdf"
+ size={32}
+ style={{ color: "var(--mantine-color-red-6)" }}
/>
<div style={{ flex: 1, minWidth: 0 }}>
<Text size="sm" fw={600} truncate>
diff --git a/frontend/editor/src/core/components/shared/signing/steps/SelectParticipantsStep.tsx b/frontend/editor/src/core/components/shared/signing/steps/SelectParticipantsStep.tsx
index 99c0801519..d12e2918ec 100644
--- a/frontend/editor/src/core/components/shared/signing/steps/SelectParticipantsStep.tsx
+++ b/frontend/editor/src/core/components/shared/signing/steps/SelectParticipantsStep.tsx
@@ -1,7 +1,7 @@
import { Stack, Text, Group } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import ArrowBackIcon from "@mui/icons-material/ArrowBack";
+import { Icon } from "@app/ui/Icon";
import UserSelector from "@app/components/shared/UserSelector";
interface SelectParticipantsStepProps {
@@ -56,7 +56,7 @@ export const SelectParticipantsStep: React.FC<SelectParticipantsStepProps> = ({
<Button
variant="secondary"
onClick={onBack}
- leftSection={<ArrowBackIcon sx={{ fontSize: 16 }} />}
+ leftSection={<Icon name="arrow-left" size={16} />}
>
{t("groupSigning.steps.back", "Back")}
</Button>
diff --git a/frontend/editor/src/core/components/shared/wetSignature/DrawSignatureCanvas.tsx b/frontend/editor/src/core/components/shared/wetSignature/DrawSignatureCanvas.tsx
index 92d0707f3b..e8fb8a750c 100644
--- a/frontend/editor/src/core/components/shared/wetSignature/DrawSignatureCanvas.tsx
+++ b/frontend/editor/src/core/components/shared/wetSignature/DrawSignatureCanvas.tsx
@@ -2,8 +2,7 @@ import { useRef, useEffect, useState } from "react";
import { Stack, Group, ColorPicker, Slider, Text } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import DeleteIcon from "@mui/icons-material/Delete";
-
+import { Icon } from "@app/ui/Icon";
interface DrawSignatureCanvasProps {
signature: string | null;
onChange: (signature: string | null) => void;
@@ -169,7 +168,7 @@ export const DrawSignatureCanvas: React.FC<DrawSignatureCanvasProps> = ({
<Button
variant="secondary"
accent="danger"
- leftSection={<DeleteIcon sx={{ fontSize: 16 }} />}
+ leftSection={<Icon name="trash" size={16} />}
onClick={clearCanvas}
disabled={disabled || !signature}
fullWidth
diff --git a/frontend/editor/src/core/components/shared/wetSignature/UploadSignatureImage.stories.tsx b/frontend/editor/src/core/components/shared/wetSignature/UploadSignatureImage.stories.tsx
index 4612e37442..5cf95e6fa6 100644
--- a/frontend/editor/src/core/components/shared/wetSignature/UploadSignatureImage.stories.tsx
+++ b/frontend/editor/src/core/components/shared/wetSignature/UploadSignatureImage.stories.tsx
@@ -21,6 +21,7 @@ export const WithSignature: Story = {
signature:
"data:image/svg+xml;base64," +
btoa(
+ // icon-lint-disable -- data-uri stand-in for an uploaded image, not an icon
'<svg xmlns="http://www.w3.org/2000/svg" width="200" height="80"><text x="10" y="50" font-family="cursive" font-size="32">Jane Doe</text></svg>',
),
onChange: () => {},
diff --git a/frontend/editor/src/core/components/shared/wetSignature/UploadSignatureImage.tsx b/frontend/editor/src/core/components/shared/wetSignature/UploadSignatureImage.tsx
index ec9483a8b5..6041ec9c04 100644
--- a/frontend/editor/src/core/components/shared/wetSignature/UploadSignatureImage.tsx
+++ b/frontend/editor/src/core/components/shared/wetSignature/UploadSignatureImage.tsx
@@ -2,9 +2,7 @@ import { useState, useRef } from "react";
import { Stack, Text, Image } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import UploadFileIcon from "@mui/icons-material/UploadFile";
-import DeleteIcon from "@mui/icons-material/Delete";
-
+import { Icon } from "@app/ui/Icon";
interface UploadSignatureImageProps {
signature: string | null;
onChange: (signature: string | null) => void;
@@ -103,7 +101,7 @@ export const UploadSignatureImage: React.FC<UploadSignatureImageProps> = ({
<Button
variant="secondary"
accent="danger"
- leftSection={<DeleteIcon sx={{ fontSize: 16 }} />}
+ leftSection={<Icon name="trash" size={16} />}
onClick={handleClear}
disabled={disabled}
fullWidth
@@ -114,7 +112,7 @@ export const UploadSignatureImage: React.FC<UploadSignatureImageProps> = ({
) : (
<Button
variant="secondary"
- leftSection={<UploadFileIcon sx={{ fontSize: 16 }} />}
+ leftSection={<Icon name="file-up" size={16} />}
onClick={handleUploadClick}
disabled={disabled}
fullWidth
diff --git a/frontend/editor/src/core/components/tools/addAttachments/AddAttachmentsSettings.tsx b/frontend/editor/src/core/components/tools/addAttachments/AddAttachmentsSettings.tsx
index 73b42bd446..b26ebd91f9 100644
--- a/frontend/editor/src/core/components/tools/addAttachments/AddAttachmentsSettings.tsx
+++ b/frontend/editor/src/core/components/tools/addAttachments/AddAttachmentsSettings.tsx
@@ -6,7 +6,7 @@
import { Stack, Text, Group, ScrollArea, Checkbox } from "@mantine/core";
import { useTranslation } from "react-i18next";
import { AddAttachmentsParameters } from "@app/hooks/tools/addAttachments/useAddAttachmentsParameters";
-import LocalIcon from "@app/components/shared/LocalIcon";
+import { Icon } from "@app/ui/Icon";
import { Tooltip } from "@app/components/shared/Tooltip";
import { Button as DSButton } from "@app/ui/Button";
interface AddAttachmentsSettingsProps {
@@ -51,7 +51,7 @@ const AddAttachmentsSettings = ({
as="label"
htmlFor="attachments-input"
disabled={disabled}
- leftSection={<LocalIcon icon="add" width="14" height="14" />}
+ leftSection={<Icon name="plus" size="14" />}
>
{parameters.attachments?.length > 0
? t("AddAttachmentsRequest.addMoreFiles", "Add more files...")
@@ -111,9 +111,7 @@ const AddAttachmentsSettings = ({
</Text>
</Group>
<DSButton
- leftSection={
- <LocalIcon icon="close-rounded" width="14" height="14" />
- }
+ leftSection={<Icon name="x" size="14" />}
aria-label={t(
"AddAttachmentsRequest.removeFile",
"Remove file",
@@ -167,10 +165,9 @@ const AddAttachmentsSettings = ({
sidebarTooltip={true}
pinOnClick={true}
>
- <LocalIcon
- icon="info-outline-rounded"
- width="1.25rem"
- height="1.25rem"
+ <Icon
+ name="info"
+ size="1.25rem"
style={{ color: "var(--icon-files-color)", cursor: "help" }}
/>
</Tooltip>
diff --git a/frontend/editor/src/core/components/tools/addStamp/StampPositionFormattingSettings.tsx b/frontend/editor/src/core/components/tools/addStamp/StampPositionFormattingSettings.tsx
index 1d185f16e7..606dd5f073 100644
--- a/frontend/editor/src/core/components/tools/addStamp/StampPositionFormattingSettings.tsx
+++ b/frontend/editor/src/core/components/tools/addStamp/StampPositionFormattingSettings.tsx
@@ -9,7 +9,7 @@ import {
NumberInput,
} from "@mantine/core";
import { AddStampParameters } from "@app/components/tools/addStamp/useAddStampParameters";
-import LocalIcon from "@app/components/shared/LocalIcon";
+import { Icon } from "@app/ui/Icon";
import styles from "@app/components/tools/addStamp/StampPreview.module.css";
import { Tooltip } from "@app/components/shared/Tooltip";
import { Button } from "@app/ui/Button";
@@ -90,11 +90,7 @@ const StampPositionFormattingSettings = ({
className="flex-1"
onClick={() => onParameterChange("_activePill", "rotation")}
>
- <LocalIcon
- icon="rotate-right-rounded"
- width="1.1rem"
- height="1.1rem"
- />
+ <Icon name="rotate-cw" size="1.1rem" />
</ActionIcon>
</Tooltip>
<Tooltip
@@ -109,7 +105,7 @@ const StampPositionFormattingSettings = ({
className="flex-1"
onClick={() => onParameterChange("_activePill", "opacity")}
>
- <LocalIcon icon="opacity" width="1.1rem" height="1.1rem" />
+ <Icon name="droplet" size="1.1rem" />
</ActionIcon>
</Tooltip>
<Tooltip
@@ -132,11 +128,7 @@ const StampPositionFormattingSettings = ({
className="flex-1"
onClick={() => onParameterChange("_activePill", "fontSize")}
>
- <LocalIcon
- icon="zoom-in-map-rounded"
- width="1.1rem"
- height="1.1rem"
- />
+ <Icon name="shrink" size="1.1rem" />
</ActionIcon>
</Tooltip>
</div>
diff --git a/frontend/editor/src/core/components/tools/autoFormDetection/AutoFormDetectionSettings.tsx b/frontend/editor/src/core/components/tools/autoFormDetection/AutoFormDetectionSettings.tsx
index 5ef90e7f62..3655e620af 100644
--- a/frontend/editor/src/core/components/tools/autoFormDetection/AutoFormDetectionSettings.tsx
+++ b/frontend/editor/src/core/components/tools/autoFormDetection/AutoFormDetectionSettings.tsx
@@ -1,7 +1,7 @@
import { Stack, Text, Group } from "@mantine/core";
+import { Icon, type IconName } from "@app/ui/Icon";
import { useTranslation } from "react-i18next";
import { SegmentedControl } from "@app/ui/SegmentedControl";
-import LocalIcon from "@app/components/shared/LocalIcon";
import {
AutoFormDetectionParameters,
DetectionSensitivity,
@@ -16,14 +16,14 @@ interface AutoFormDetectionSettingsProps {
disabled?: boolean;
}
-const FIELD_TYPES = [
- { icon: "text-fields-rounded", key: "text", fallback: "Text fields" },
+const FIELD_TYPES: { icon: IconName; key: string; fallback: string }[] = [
+ { icon: "type", key: "text", fallback: "Text fields" },
{
- icon: "check-box-outline-rounded",
+ icon: "square-check",
key: "checkboxes",
fallback: "Checkboxes",
},
- { icon: "signature-rounded", key: "signatures", fallback: "Signatures" },
+ { icon: "signature", key: "signatures", fallback: "Signatures" },
] as const;
export default function AutoFormDetectionSettings({
@@ -67,7 +67,7 @@ export default function AutoFormDetectionSettings({
padding: "0.125rem 0.5rem",
}}
>
- <LocalIcon icon={f.icon} width="0.9rem" height="0.9rem" />
+ <Icon name={f.icon} size="0.9rem" />
<Text size="xs">
{t(`autoFormDetection.detects.${f.key}`, f.fallback)}
</Text>
diff --git a/frontend/editor/src/core/components/tools/autoFormDetection/DetectionSummaryPanel.tsx b/frontend/editor/src/core/components/tools/autoFormDetection/DetectionSummaryPanel.tsx
index d767621b8e..b897ac92f9 100644
--- a/frontend/editor/src/core/components/tools/autoFormDetection/DetectionSummaryPanel.tsx
+++ b/frontend/editor/src/core/components/tools/autoFormDetection/DetectionSummaryPanel.tsx
@@ -1,30 +1,30 @@
import { Group, Stack, Text } from "@mantine/core";
+import { Icon, type IconName } from "@app/ui/Icon";
import { useTranslation } from "react-i18next";
-import LocalIcon from "@app/components/shared/LocalIcon";
import { Banner } from "@app/ui/Banner";
import { DetectionSummary } from "@app/services/formDetection/progress";
const TYPE_META: Record<
string,
- { icon: string; labelKey: string; fallback: string }
+ { icon: IconName; labelKey: string; fallback: string }
> = {
text: {
- icon: "text-fields-rounded",
+ icon: "type",
labelKey: "autoFormDetection.summary.textFields",
fallback: "Text fields",
},
checkbox: {
- icon: "check-box-outline-rounded",
+ icon: "square-check",
labelKey: "autoFormDetection.summary.checkboxes",
fallback: "Checkboxes",
},
radio: {
- icon: "radio-button-checked-outline",
+ icon: "radio-checked",
labelKey: "autoFormDetection.summary.radioButtons",
fallback: "Radio buttons",
},
signature: {
- icon: "signature-rounded",
+ icon: "signature",
labelKey: "autoFormDetection.summary.signatures",
fallback: "Signatures",
},
@@ -41,9 +41,7 @@ export default function DetectionSummaryPanel({
return (
<Banner
tone="warning"
- icon={
- <LocalIcon icon="search-rounded" width="1.1rem" height="1.1rem" />
- }
+ icon={<Icon name="search" size="1.1rem" />}
title={t("autoFormDetection.summary.noneTitle", "No form fields found")}
description={t(
"autoFormDetection.summary.noneBody",
@@ -58,12 +56,7 @@ export default function DetectionSummaryPanel({
return (
<Stack gap="xs">
<Group gap={6} wrap="nowrap">
- <LocalIcon
- icon="verified-outline-rounded"
- width="1.15rem"
- height="1.15rem"
- style={{ color: "var(--c-success)" }}
- />
+ <Icon name="badge-check" size="1.15rem" />
<Text size="sm" fw={600}>
{t(
"autoFormDetection.summary.title",
@@ -76,7 +69,7 @@ export default function DetectionSummaryPanel({
<Group gap="xs">
{entries.map(([type, count]) => {
const meta = TYPE_META[type] ?? {
- icon: "text-fields-rounded",
+ icon: "type",
labelKey: `autoFormDetection.summary.${type}`,
fallback: type,
};
@@ -92,7 +85,7 @@ export default function DetectionSummaryPanel({
padding: "0.125rem 0.5rem",
}}
>
- <LocalIcon icon={meta.icon} width="0.9rem" height="0.9rem" />
+ <Icon name={meta.icon} size="0.9rem" />
<Text size="xs">
{t(meta.labelKey, meta.fallback)}: {count}
</Text>
diff --git a/frontend/editor/src/core/components/tools/certSign/SignatureSettingsDisplay.tsx b/frontend/editor/src/core/components/tools/certSign/SignatureSettingsDisplay.tsx
index 33b62dcc79..e28ebdb370 100644
--- a/frontend/editor/src/core/components/tools/certSign/SignatureSettingsDisplay.tsx
+++ b/frontend/editor/src/core/components/tools/certSign/SignatureSettingsDisplay.tsx
@@ -1,10 +1,6 @@
import { useTranslation } from "react-i18next";
import { Stack, Paper, Text, Group, Badge } from "@mantine/core";
-import VisibilityIcon from "@mui/icons-material/Visibility";
-import VisibilityOffIcon from "@mui/icons-material/VisibilityOff";
-import CheckIcon from "@mui/icons-material/Check";
-import CloseIcon from "@mui/icons-material/Close";
-
+import { Icon } from "@app/ui/Icon";
interface SignatureSettingsDisplayProps {
showSignature: boolean;
pageNumber?: number | null;
@@ -33,11 +29,10 @@ const SignatureSettingsDisplay = ({
<Group gap="xs">
{showSignature ? (
<>
- <VisibilityIcon
- style={{
- fontSize: "16px",
- color: "var(--mantine-color-green-6)",
- }}
+ <Icon
+ name="eye"
+ size={"16px"}
+ style={{ color: "var(--mantine-color-green-6)" }}
/>
<Badge size="sm" color="green" variant="light">
{t("certSign.appearance.visible", "Visible")}
@@ -45,11 +40,10 @@ const SignatureSettingsDisplay = ({
</>
) : (
<>
- <VisibilityOffIcon
- style={{
- fontSize: "16px",
- color: "var(--mantine-color-gray-6)",
- }}
+ <Icon
+ name="eye-off"
+ size={"16px"}
+ style={{ color: "var(--mantine-color-gray-6)" }}
/>
<Badge size="sm" color="gray" variant="light">
{t("certSign.appearance.invisible", "Invisible")}
@@ -101,11 +95,10 @@ const SignatureSettingsDisplay = ({
<Group gap="xs">
{showLogo ? (
<>
- <CheckIcon
- style={{
- fontSize: "16px",
- color: "var(--mantine-color-green-6)",
- }}
+ <Icon
+ name="check"
+ size={"16px"}
+ style={{ color: "var(--mantine-color-green-6)" }}
/>
<Badge size="sm" color="green" variant="light">
{t("certSign.showLogo", "Show Logo")}
@@ -113,11 +106,10 @@ const SignatureSettingsDisplay = ({
</>
) : (
<>
- <CloseIcon
- style={{
- fontSize: "16px",
- color: "var(--mantine-color-gray-6)",
- }}
+ <Icon
+ name="x"
+ size={"16px"}
+ style={{ color: "var(--mantine-color-gray-6)" }}
/>
<Badge size="sm" color="gray" variant="light">
{t("certSign.noLogo", "No Logo")}
diff --git a/frontend/editor/src/core/components/tools/certSign/modals/AddParticipantsFlow.tsx b/frontend/editor/src/core/components/tools/certSign/modals/AddParticipantsFlow.tsx
index b7e514d1aa..89c7913b35 100644
--- a/frontend/editor/src/core/components/tools/certSign/modals/AddParticipantsFlow.tsx
+++ b/frontend/editor/src/core/components/tools/certSign/modals/AddParticipantsFlow.tsx
@@ -2,7 +2,7 @@ import { useState } from "react";
import { Modal, Stack, TextInput, Group } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import AddIcon from "@mui/icons-material/Add";
+import { Icon } from "@app/ui/Icon";
import UserSelector from "@app/components/shared/UserSelector";
interface AddParticipantsFlowProps {
@@ -83,7 +83,7 @@ export const AddParticipantsFlow: React.FC<AddParticipantsFlowProps> = ({
onClick={handleSubmit}
loading={submitting}
disabled={selectedUserIds.length === 0}
- leftSection={<AddIcon sx={{ fontSize: 16 }} />}
+ leftSection={<Icon name="plus" size={16} />}
>
{t(
"certSign.collab.addParticipants.add",
diff --git a/frontend/editor/src/core/components/tools/certSign/modals/CertificateConfigModal.tsx b/frontend/editor/src/core/components/tools/certSign/modals/CertificateConfigModal.tsx
index 43a2ef9d36..bc8fa55b95 100644
--- a/frontend/editor/src/core/components/tools/certSign/modals/CertificateConfigModal.tsx
+++ b/frontend/editor/src/core/components/tools/certSign/modals/CertificateConfigModal.tsx
@@ -10,8 +10,7 @@ import {
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
import { useState, useEffect, useRef } from "react";
-import CheckCircleIcon from "@mui/icons-material/CheckCircle";
-import ErrorIcon from "@mui/icons-material/Error";
+import { Icon } from "@app/ui/Icon";
import {
CertificateSelector,
CertificateType,
@@ -245,8 +244,9 @@ export const CertificateConfigModal: React.FC<CertificateConfigModalProps> = ({
)}
{certValidation.status === "valid" && (
<Group gap="xs">
- <CheckCircleIcon
- fontSize="small"
+ <Icon
+ name="circle-check"
+ size={20}
style={{ color: "var(--mantine-color-green-6)" }}
/>
<Text size="sm" c="var(--color-green-dark)">
@@ -267,8 +267,9 @@ export const CertificateConfigModal: React.FC<CertificateConfigModalProps> = ({
)}
{certValidation.status === "error" && (
<Group gap="xs">
- <ErrorIcon
- fontSize="small"
+ <Icon
+ name="circle-alert"
+ size={20}
style={{ color: "var(--mantine-color-red-6)" }}
/>
<Text size="sm" c="var(--color-red-dark)">
diff --git a/frontend/editor/src/core/components/tools/certSign/modals/SelectSignatureModal.tsx b/frontend/editor/src/core/components/tools/certSign/modals/SelectSignatureModal.tsx
index c12c1e5a42..1652df3dbd 100644
--- a/frontend/editor/src/core/components/tools/certSign/modals/SelectSignatureModal.tsx
+++ b/frontend/editor/src/core/components/tools/certSign/modals/SelectSignatureModal.tsx
@@ -6,11 +6,7 @@ import {
useSavedSignatures,
SavedSignature,
} from "@app/hooks/tools/sign/useSavedSignatures";
-import DrawIcon from "@mui/icons-material/Draw";
-import TextFieldsIcon from "@mui/icons-material/TextFields";
-import ImageIcon from "@mui/icons-material/Image";
-import CloseIcon from "@mui/icons-material/Close";
-
+import { Icon } from "@app/ui/Icon";
interface SelectSignatureModalProps {
opened: boolean;
onClose: () => void;
@@ -151,7 +147,7 @@ export const SelectSignatureModal: React.FC<SelectSignatureModalProps> = ({
)}
style={{ margin: "0 6px" }}
>
- <CloseIcon sx={{ fontSize: "1rem" }} />
+ <Icon name="x" size={"1rem"} />
</ActionIcon>
</Group>
))}
@@ -173,7 +169,7 @@ export const SelectSignatureModal: React.FC<SelectSignatureModalProps> = ({
<Group grow>
<Button
variant="secondary"
- leftSection={<DrawIcon />}
+ leftSection={<Icon name="pen-tool" />}
onClick={() => {
onCreateNew("canvas");
onClose();
@@ -183,7 +179,7 @@ export const SelectSignatureModal: React.FC<SelectSignatureModalProps> = ({
</Button>
<Button
variant="secondary"
- leftSection={<TextFieldsIcon />}
+ leftSection={<Icon name="type" />}
onClick={() => {
onCreateNew("text");
onClose();
@@ -193,7 +189,7 @@ export const SelectSignatureModal: React.FC<SelectSignatureModalProps> = ({
</Button>
<Button
variant="secondary"
- leftSection={<ImageIcon />}
+ leftSection={<Icon name="image" />}
onClick={() => {
onCreateNew("image");
onClose();
diff --git a/frontend/editor/src/core/components/tools/certSign/panels/ParticipantListPanel.tsx b/frontend/editor/src/core/components/tools/certSign/panels/ParticipantListPanel.tsx
index 5045a0544e..41cd2d0820 100644
--- a/frontend/editor/src/core/components/tools/certSign/panels/ParticipantListPanel.tsx
+++ b/frontend/editor/src/core/components/tools/certSign/panels/ParticipantListPanel.tsx
@@ -1,10 +1,7 @@
import { Stack, Text, List, Group, Badge } from "@mantine/core";
import { ActionIcon } from "@app/ui/ActionIcon";
import { useTranslation } from "react-i18next";
-import CheckCircleIcon from "@mui/icons-material/CheckCircle";
-import PendingIcon from "@mui/icons-material/Pending";
-import CancelIcon from "@mui/icons-material/Cancel";
-import DeleteIcon from "@mui/icons-material/Delete";
+import { Icon } from "@app/ui/Icon";
import type { ParticipantInfo } from "@app/types/signingSession";
import { getFileColor } from "@app/components/pageEditor/fileColors";
@@ -23,10 +20,12 @@ export const ParticipantListPanel: React.FC<ParticipantListPanelProps> = ({
const getIcon = (status: string) => {
if (status === "SIGNED")
- return <CheckCircleIcon sx={{ color: "green", fontSize: "1rem" }} />;
+ return (
+ <Icon name="circle-check" size={"1rem"} style={{ color: "green" }} />
+ );
if (status === "DECLINED")
- return <CancelIcon sx={{ color: "red", fontSize: "1rem" }} />;
- return <PendingIcon sx={{ color: "orange", fontSize: "1rem" }} />;
+ return <Icon name="circle-x" size={"1rem"} style={{ color: "red" }} />;
+ return <Icon name="clock" size={"1rem"} style={{ color: "orange" }} />;
};
const getColor = (status: string) => {
@@ -97,7 +96,7 @@ export const ParticipantListPanel: React.FC<ParticipantListPanelProps> = ({
"Remove",
)}
>
- <DeleteIcon sx={{ fontSize: "1rem" }} />
+ <Icon name="trash" size={"1rem"} />
</ActionIcon>
)}
</Group>
diff --git a/frontend/editor/src/core/components/tools/certSign/panels/SessionActionsPanel.tsx b/frontend/editor/src/core/components/tools/certSign/panels/SessionActionsPanel.tsx
index 7b98bf868b..a3190ede1e 100644
--- a/frontend/editor/src/core/components/tools/certSign/panels/SessionActionsPanel.tsx
+++ b/frontend/editor/src/core/components/tools/certSign/panels/SessionActionsPanel.tsx
@@ -1,8 +1,7 @@
import { Stack, Text, Divider, Paper } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import CheckCircleIcon from "@mui/icons-material/CheckCircle";
-import AddIcon from "@mui/icons-material/Add";
+import { Icon } from "@app/ui/Icon";
import type { SessionDetail } from "@app/types/signingSession";
interface SessionActionsPanelProps {
@@ -59,7 +58,7 @@ export const SessionActionsPanel: React.FC<SessionActionsPanelProps> = ({
<Divider />
<Button
variant="secondary"
- leftSection={<AddIcon />}
+ leftSection={<Icon name="plus" />}
onClick={onAddParticipants}
fullWidth
>
@@ -72,7 +71,7 @@ export const SessionActionsPanel: React.FC<SessionActionsPanelProps> = ({
<Divider />
<Button
- leftSection={<CheckCircleIcon />}
+ leftSection={<Icon name="circle-check" />}
accent={allSigned ? "success" : "warning"}
fullWidth
onClick={onFinalize}
@@ -94,7 +93,7 @@ export const SessionActionsPanel: React.FC<SessionActionsPanelProps> = ({
{session.finalized && (
<>
<Button
- leftSection={<CheckCircleIcon />}
+ leftSection={<Icon name="circle-check" />}
fullWidth
onClick={onLoadSignedPdf}
loading={loadingPdf}
diff --git a/frontend/editor/src/core/components/tools/certSign/panels/SessionDetailPanel.tsx b/frontend/editor/src/core/components/tools/certSign/panels/SessionDetailPanel.tsx
index 3ec2a9114e..755f2d7a02 100644
--- a/frontend/editor/src/core/components/tools/certSign/panels/SessionDetailPanel.tsx
+++ b/frontend/editor/src/core/components/tools/certSign/panels/SessionDetailPanel.tsx
@@ -3,8 +3,7 @@ import { useTranslation } from "react-i18next";
import { Stack, Text, Group, Badge, Divider, Modal } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { alert } from "@app/components/toast";
-import ArrowBackIcon from "@mui/icons-material/ArrowBack";
-import DeleteIcon from "@mui/icons-material/Delete";
+import { Icon } from "@app/ui/Icon";
import { ParticipantListPanel } from "@app/components/tools/certSign/panels/ParticipantListPanel";
import { SessionActionsPanel } from "@app/components/tools/certSign/panels/SessionActionsPanel";
import { AddParticipantsFlow } from "@app/components/tools/certSign/modals/AddParticipantsFlow";
@@ -151,7 +150,7 @@ export const SessionDetailPanel = ({ data }: SessionDetailPanelProps) => {
return (
<Stack gap="md" p="md" h="100%" style={{ minHeight: 0 }}>
<Button
- leftSection={<ArrowBackIcon fontSize="small" />}
+ leftSection={<Icon name="arrow-left" size={20} />}
variant="tertiary"
size="sm"
onClick={onBack}
@@ -211,7 +210,7 @@ export const SessionDetailPanel = ({ data }: SessionDetailPanelProps) => {
{!session.finalized && (
<Button
- leftSection={<DeleteIcon fontSize="small" />}
+ leftSection={<Icon name="trash" size={20} />}
accent="danger"
variant="tertiary"
fullWidth
diff --git a/frontend/editor/src/core/components/tools/certSign/panels/SignControlsPanel.tsx b/frontend/editor/src/core/components/tools/certSign/panels/SignControlsPanel.tsx
index 2a39694dc9..390464b539 100644
--- a/frontend/editor/src/core/components/tools/certSign/panels/SignControlsPanel.tsx
+++ b/frontend/editor/src/core/components/tools/certSign/panels/SignControlsPanel.tsx
@@ -4,14 +4,7 @@ import { ActionIcon } from "@app/ui/ActionIcon";
import { Button } from "@app/ui/Button";
import { SegmentedControl } from "@app/ui/SegmentedControl";
import { useTranslation } from "react-i18next";
-import DrawIcon from "@mui/icons-material/Draw";
-import OpenWithIcon from "@mui/icons-material/OpenWith";
-import CloseIcon from "@mui/icons-material/Close";
-import DeleteOutlineIcon from "@mui/icons-material/DeleteOutlined";
-import CheckIcon from "@mui/icons-material/Check";
-import AddIcon from "@mui/icons-material/Add";
-import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
-
+import { Icon } from "@app/ui/Icon";
import {
DEFAULT_PARAMETERS,
type SignParameters,
@@ -341,7 +334,7 @@ export default function SignControlsPanel({
// Sits on the white signature sheet in both schemes, so it takes a fixed
// accent ink rather than the scheme-dependent one.
<Group gap={4} wrap="nowrap" c="var(--c-accent-on-light)">
- <DrawIcon sx={{ fontSize: "0.95rem" }} />
+ <Icon name="pen-tool" size={"0.95rem"} />
<Text size="xs" fw={600}>
{t("certSign.collab.signRequest.preview.create", "Add signature")}
</Text>
@@ -361,7 +354,7 @@ export default function SignControlsPanel({
variant="secondary"
fullWidth
justify="between"
- rightSection={<KeyboardArrowDownIcon sx={{ fontSize: "1.1rem" }} />}
+ rightSection={<Icon name="chevron-down" size={"1.1rem"} />}
aria-label={t(
"certSign.collab.signRequest.changeSignature",
"Change signature",
@@ -403,7 +396,7 @@ export default function SignControlsPanel({
"Delete signature",
)}
>
- <CloseIcon sx={{ fontSize: "0.9rem" }} />
+ <Icon name="x" size={"0.9rem"} />
</ActionIcon>
</Group>
</Menu.Item>
@@ -418,7 +411,7 @@ export default function SignControlsPanel({
)}
<Menu.Divider />
<Menu.Item
- leftSection={<AddIcon sx={{ fontSize: "1rem" }} />}
+ leftSection={<Icon name="plus" size={"1rem"} />}
onClick={openCreateModal}
disabled={isAtCapacity}
>
@@ -440,7 +433,7 @@ export default function SignControlsPanel({
value: "place",
label: (
<Group gap={6} wrap="nowrap" justify="center">
- <DrawIcon sx={{ fontSize: "1.1rem" }} />
+ <Icon name="pen-tool" size={"1.1rem"} />
<span>
{t("certSign.collab.signRequest.mode.place", "Place")}
</span>
@@ -451,7 +444,7 @@ export default function SignControlsPanel({
value: "move",
label: (
<Group gap={6} wrap="nowrap" justify="center">
- <OpenWithIcon sx={{ fontSize: "1.1rem" }} />
+ <Icon name="move" size={"1.1rem"} />
<span>
{t("certSign.collab.signRequest.mode.move", "Move")}
</span>
@@ -469,7 +462,7 @@ export default function SignControlsPanel({
<Button
variant="tertiary"
accent="danger"
- leftSection={<DeleteOutlineIcon sx={{ fontSize: "1.1rem" }} />}
+ leftSection={<Icon name="trash" size={"1.1rem"} />}
onClick={onDeleteSelected}
disabled={!hasSelectedAnnotation}
fullWidth
@@ -481,7 +474,7 @@ export default function SignControlsPanel({
</Button>
<Button
- leftSection={<CheckIcon sx={{ fontSize: "1.1rem" }} />}
+ leftSection={<Icon name="check" size={"1.1rem"} />}
onClick={onComplete}
disabled={!canComplete}
fullWidth
diff --git a/frontend/editor/src/core/components/tools/certSign/panels/SignRequestPanel.tsx b/frontend/editor/src/core/components/tools/certSign/panels/SignRequestPanel.tsx
index b412a11d90..00589ee0ef 100644
--- a/frontend/editor/src/core/components/tools/certSign/panels/SignRequestPanel.tsx
+++ b/frontend/editor/src/core/components/tools/certSign/panels/SignRequestPanel.tsx
@@ -2,9 +2,7 @@ import { useState, useRef, useEffect, useCallback } from "react";
import { useTranslation } from "react-i18next";
import { Stack, Text, Divider } from "@mantine/core";
import { Button } from "@app/ui/Button";
-import ArrowBackIcon from "@mui/icons-material/ArrowBack";
-import CancelIcon from "@mui/icons-material/Cancel";
-import FolderOpenIcon from "@mui/icons-material/FolderOpen";
+import { Icon } from "@app/ui/Icon";
import { alert } from "@app/components/toast";
import type {
SignatureOverlayAPI,
@@ -272,7 +270,7 @@ const SignRequestPanel = ({ data }: SignRequestPanelProps) => {
return (
<Stack gap="md" p="md">
<Button
- leftSection={<ArrowBackIcon fontSize="small" />}
+ leftSection={<Icon name="arrow-left" size={20} />}
variant="tertiary"
size="sm"
onClick={onBack}
@@ -313,7 +311,7 @@ const SignRequestPanel = ({ data }: SignRequestPanelProps) => {
<Button
variant="tertiary"
- leftSection={<FolderOpenIcon fontSize="small" />}
+ leftSection={<Icon name="folder-open" size={20} />}
onClick={handleAddToActiveFiles}
fullWidth
style={{
@@ -330,7 +328,7 @@ const SignRequestPanel = ({ data }: SignRequestPanelProps) => {
<Button
variant="tertiary"
accent="danger"
- leftSection={<CancelIcon fontSize="small" />}
+ leftSection={<Icon name="circle-x" size={20} />}
onClick={handleDecline}
loading={declining}
fullWidth
diff --git a/frontend/editor/src/core/components/tools/certSign/steps/AddSignaturesStep.tsx b/frontend/editor/src/core/components/tools/certSign/steps/AddSignaturesStep.tsx
index f858c1b0fd..46e7248100 100644
--- a/frontend/editor/src/core/components/tools/certSign/steps/AddSignaturesStep.tsx
+++ b/frontend/editor/src/core/components/tools/certSign/steps/AddSignaturesStep.tsx
@@ -2,8 +2,7 @@ import { useState } from "react";
import { Stack, Text, Paper } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import AddIcon from "@mui/icons-material/Add";
-import CancelIcon from "@mui/icons-material/Cancel";
+import { Icon } from "@app/ui/Icon";
import {
SignatureTypeSelector,
SignatureType,
@@ -108,7 +107,7 @@ export const AddSignaturesStep: React.FC<AddSignaturesStepProps> = ({
{!placementMode ? (
<Button
- leftSection={<AddIcon />}
+ leftSection={<Icon name="plus" />}
onClick={handlePlaceSignature}
disabled={!hasSignature || disabled}
>
@@ -121,7 +120,7 @@ export const AddSignaturesStep: React.FC<AddSignaturesStepProps> = ({
<Button
variant="secondary"
accent="danger"
- leftSection={<CancelIcon />}
+ leftSection={<Icon name="circle-x" />}
onClick={onCancelPlacement}
disabled={disabled}
>
diff --git a/frontend/editor/src/core/components/tools/certSign/steps/CertificateSelectionStep.tsx b/frontend/editor/src/core/components/tools/certSign/steps/CertificateSelectionStep.tsx
index 1566e20334..2d1fc39a29 100644
--- a/frontend/editor/src/core/components/tools/certSign/steps/CertificateSelectionStep.tsx
+++ b/frontend/editor/src/core/components/tools/certSign/steps/CertificateSelectionStep.tsx
@@ -1,7 +1,7 @@
import { Stack, Group } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import ArrowBackIcon from "@mui/icons-material/ArrowBack";
+import { Icon } from "@app/ui/Icon";
import {
CertificateSelector,
CertificateType,
@@ -81,7 +81,7 @@ export const CertificateSelectionStep: React.FC<
<Button
variant="secondary"
onClick={onBack}
- leftSection={<ArrowBackIcon sx={{ fontSize: 16 }} />}
+ leftSection={<Icon name="arrow-left" size={16} />}
>
{t("certSign.collab.signRequest.steps.back", "Back")}
</Button>
diff --git a/frontend/editor/src/core/components/tools/certSign/steps/ReviewSignatureStep.tsx b/frontend/editor/src/core/components/tools/certSign/steps/ReviewSignatureStep.tsx
index 8d654a8896..131c5d91d2 100644
--- a/frontend/editor/src/core/components/tools/certSign/steps/ReviewSignatureStep.tsx
+++ b/frontend/editor/src/core/components/tools/certSign/steps/ReviewSignatureStep.tsx
@@ -1,12 +1,7 @@
import { Stack, Text, Group, Divider, Paper } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import ArrowBackIcon from "@mui/icons-material/ArrowBack";
-import DrawIcon from "@mui/icons-material/Draw";
-import SecurityIcon from "@mui/icons-material/Security";
-import SettingsIcon from "@mui/icons-material/Settings";
-import CheckCircleIcon from "@mui/icons-material/CheckCircle";
-import CancelIcon from "@mui/icons-material/Cancel";
+import { Icon } from "@app/ui/Icon";
import {
CertificateType,
UploadFormat,
@@ -69,7 +64,7 @@ export const ReviewSignatureStep: React.FC<ReviewSignatureStepProps> = ({
{/* Signatures Summary */}
<div>
<Group gap="xs" mb="xs">
- <DrawIcon sx={{ fontSize: 18 }} />
+ <Icon name="pen-tool" size={18} />
<Text size="sm" fw={600}>
{t(
"certSign.collab.signRequest.steps.yourSignatures",
@@ -103,7 +98,7 @@ export const ReviewSignatureStep: React.FC<ReviewSignatureStepProps> = ({
{/* Certificate Info */}
<div>
<Group gap="xs" mb="xs">
- <SecurityIcon sx={{ fontSize: 18 }} />
+ <Icon name="shield-check" size={18} />
<Text size="sm" fw={600}>
{t("certSign.collab.signRequest.steps.certificate", "Certificate")}
</Text>
@@ -116,7 +111,7 @@ export const ReviewSignatureStep: React.FC<ReviewSignatureStepProps> = ({
{/* Settings from Owner */}
<div>
<Group gap="xs" mb="xs">
- <SettingsIcon sx={{ fontSize: 18 }} />
+ <Icon name="settings" size={18} />
<Text size="sm" fw={600}>
{t(
"certSign.collab.signRequest.signatureSettings",
@@ -170,7 +165,7 @@ export const ReviewSignatureStep: React.FC<ReviewSignatureStepProps> = ({
<Button
variant="secondary"
onClick={onBack}
- leftSection={<ArrowBackIcon sx={{ fontSize: 16 }} />}
+ leftSection={<Icon name="arrow-left" size={16} />}
>
{t("certSign.collab.signRequest.steps.back", "Back")}
</Button>
@@ -179,7 +174,7 @@ export const ReviewSignatureStep: React.FC<ReviewSignatureStepProps> = ({
accent="danger"
onClick={onDecline}
disabled={disabled}
- leftSection={<CancelIcon sx={{ fontSize: 16 }} />}
+ leftSection={<Icon name="circle-x" size={16} />}
>
{t("certSign.collab.signRequest.declineButton", "Decline")}
</Button>
@@ -188,7 +183,7 @@ export const ReviewSignatureStep: React.FC<ReviewSignatureStepProps> = ({
onClick={onSign}
disabled={disabled}
style={{ flex: 1 }}
- leftSection={<CheckCircleIcon sx={{ fontSize: 16 }} />}
+ leftSection={<Icon name="circle-check" size={16} />}
>
{t("certSign.collab.signRequest.signButton", "Sign Document")}
</Button>
diff --git a/frontend/editor/src/core/components/tools/certSign/steps/SignaturePlacementStep.tsx b/frontend/editor/src/core/components/tools/certSign/steps/SignaturePlacementStep.tsx
index a9dfb0cf03..b75be471fa 100644
--- a/frontend/editor/src/core/components/tools/certSign/steps/SignaturePlacementStep.tsx
+++ b/frontend/editor/src/core/components/tools/certSign/steps/SignaturePlacementStep.tsx
@@ -1,8 +1,7 @@
import { Stack, Text, Group } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import ArrowBackIcon from "@mui/icons-material/ArrowBack";
-
+import { Icon } from "@app/ui/Icon";
interface SignaturePlacementStepProps {
isPlaced: boolean;
placementInfo: { page: number; x: number; y: number } | null;
@@ -44,7 +43,7 @@ export const SignaturePlacementStep: React.FC<SignaturePlacementStepProps> = ({
<Button
variant="secondary"
onClick={onBack}
- leftSection={<ArrowBackIcon sx={{ fontSize: 16 }} />}
+ leftSection={<Icon name="arrow-left" size={16} />}
>
{t("certSign.collab.signRequest.steps.back", "Back")}
</Button>
diff --git a/frontend/editor/src/core/components/tools/compare/hooks/useCompareWorkbenchBarButtons.tsx b/frontend/editor/src/core/components/tools/compare/hooks/useCompareWorkbenchBarButtons.tsx
index 076ac877d5..484e33b026 100644
--- a/frontend/editor/src/core/components/tools/compare/hooks/useCompareWorkbenchBarButtons.tsx
+++ b/frontend/editor/src/core/components/tools/compare/hooks/useCompareWorkbenchBarButtons.tsx
@@ -1,11 +1,11 @@
import { useMemo } from "react";
import type React from "react";
import { useTranslation } from "react-i18next";
-import LocalIcon from "@app/components/shared/LocalIcon";
import { alert } from "@app/components/toast";
import type { WorkbenchBarButtonWithAction } from "@app/hooks/useWorkbenchBarButtons";
import { useIsMobile } from "@app/hooks/useIsMobile";
+import { Icon } from "@app/ui/Icon";
type Pane = "base" | "comparison";
export interface UseCompareWorkbenchBarButtonsOptions {
@@ -57,14 +57,9 @@ export const useCompareWorkbenchBarButtons = ({
{
id: "compare-toggle-layout",
icon: (
- <LocalIcon
- icon={
- layout === "side-by-side"
- ? "vertical-split-rounded"
- : "horizontal-split-rounded"
- }
- width="1.5rem"
- height="1.5rem"
+ <Icon
+ name={layout === "side-by-side" ? "columns-2" : "rows-2"}
+ size="1.5rem"
/>
),
tooltip:
@@ -81,7 +76,7 @@ export const useCompareWorkbenchBarButtons = ({
},
{
id: "compare-zoom-out",
- icon: <LocalIcon icon="zoom-out" width="1.5rem" height="1.5rem" />,
+ icon: <Icon name="zoom-out" size="1.5rem" />,
tooltip: t("compare.actions.zoomOut", "Zoom out"),
ariaLabel: t("compare.actions.zoomOut", "Zoom out"),
section: "top",
@@ -101,7 +96,7 @@ export const useCompareWorkbenchBarButtons = ({
},
{
id: "compare-zoom-in",
- icon: <LocalIcon icon="zoom-in" width="1.5rem" height="1.5rem" />,
+ icon: <Icon name="zoom-in" size="1.5rem" />,
tooltip: t("compare.actions.zoomIn", "Zoom in"),
ariaLabel: t("compare.actions.zoomIn", "Zoom in"),
section: "top",
@@ -121,9 +116,7 @@ export const useCompareWorkbenchBarButtons = ({
},
{
id: "compare-reset-view",
- icon: (
- <LocalIcon icon="refresh-rounded" width="1.5rem" height="1.5rem" />
- ),
+ icon: <Icon name="refresh-cw" size="1.5rem" />,
tooltip: t("compare.actions.resetView", "Reset zoom and pan"),
ariaLabel: t("compare.actions.resetView", "Reset zoom and pan"),
section: "top",
@@ -146,13 +139,7 @@ export const useCompareWorkbenchBarButtons = ({
},
{
id: "compare-toggle-scroll-link",
- icon: (
- <LocalIcon
- icon={isScrollLinked ? "link-rounded" : "link-off-rounded"}
- width="1.5rem"
- height="1.5rem"
- />
- ),
+ icon: <Icon name={isScrollLinked ? "link" : "unlink"} size="1.5rem" />,
tooltip: isScrollLinked
? t("compare.actions.unlinkScroll", "Unlink scroll")
: t("compare.actions.linkScroll", "Link scroll"),
diff --git a/frontend/editor/src/core/components/tools/convert/ConvertSettings.tsx b/frontend/editor/src/core/components/tools/convert/ConvertSettings.tsx
index c550832c78..581d679304 100644
--- a/frontend/editor/src/core/components/tools/convert/ConvertSettings.tsx
+++ b/frontend/editor/src/core/components/tools/convert/ConvertSettings.tsx
@@ -1,7 +1,7 @@
import { useMemo } from "react";
import { Stack, Text, Group, Divider, useMantineTheme } from "@mantine/core";
import { Button } from "@app/ui/Button";
-import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
+import { Icon } from "@app/ui/Icon";
import { useTranslation } from "react-i18next";
import { useMultipleEndpointsEnabled } from "@app/hooks/useEndpointConfig";
import {
@@ -326,11 +326,10 @@ const ConvertSettings = ({
"Select a source format first",
)}
</Text>
- <KeyboardArrowDownIcon
- style={{
- fontSize: "1rem",
- color: "var(--select-placeholder-text)",
- }}
+ <Icon
+ name="chevron-down"
+ size={"1rem"}
+ style={{ color: "var(--select-placeholder-text)" }}
/>
</Group>
</Button>
diff --git a/frontend/editor/src/core/components/tools/convert/GroupedFormatDropdown.tsx b/frontend/editor/src/core/components/tools/convert/GroupedFormatDropdown.tsx
index c82a9c175a..1f19e8d279 100644
--- a/frontend/editor/src/core/components/tools/convert/GroupedFormatDropdown.tsx
+++ b/frontend/editor/src/core/components/tools/convert/GroupedFormatDropdown.tsx
@@ -9,8 +9,7 @@ import {
} from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
-import CloudOutlinedIcon from "@mui/icons-material/CloudOutlined";
+import { Icon } from "@app/ui/Icon";
import { Z_INDEX_AUTOMATE_DROPDOWN } from "@app/styles/zIndex";
interface FormatOption {
@@ -115,9 +114,10 @@ const GroupedFormatDropdown = ({
<Text size="sm" c={value ? undefined : "dimmed"}>
{selectedLabel}
</Text>
- <KeyboardArrowDownIcon
+ <Icon
+ name="chevron-down"
+ size={"1rem"}
style={{
- fontSize: "1rem",
transform: dropdownOpened ? "rotate(180deg)" : "rotate(0deg)",
transition: "transform 0.2s ease",
color: "var(--dropdown-trigger-icon)",
@@ -158,12 +158,10 @@ const GroupedFormatDropdown = ({
disabled={option.enabled === false}
rightSection={
option.usesCloud ? (
- <CloudOutlinedIcon
- style={{
- fontSize: "0.625rem",
- marginLeft: "0.25rem",
- opacity: 0.7,
- }}
+ <Icon
+ name="cloud"
+ size={"0.625rem"}
+ style={{ marginLeft: "0.25rem", opacity: 0.7 }}
/>
) : undefined
}
diff --git a/frontend/editor/src/core/components/tools/crop/CropSettings.tsx b/frontend/editor/src/core/components/tools/crop/CropSettings.tsx
index 0229613959..77e59b70f5 100644
--- a/frontend/editor/src/core/components/tools/crop/CropSettings.tsx
+++ b/frontend/editor/src/core/components/tools/crop/CropSettings.tsx
@@ -2,7 +2,7 @@ import { useState, useEffect } from "react";
import { Stack, Text, Box, Group, Center, Checkbox } from "@mantine/core";
import { ActionIcon } from "@app/ui/ActionIcon";
import { useTranslation } from "react-i18next";
-import RestartAltIcon from "@mui/icons-material/RestartAlt";
+import { Icon } from "@app/ui/Icon";
import { CropParametersHook } from "@app/hooks/tools/crop/useCropParameters";
import {
useViewScopedFiles,
@@ -181,7 +181,7 @@ const CropSettings = ({ parameters, disabled = false }: CropSettingsProps) => {
title={t("crop.reset", "Reset to full PDF")}
aria-label={t("crop.reset", "Reset to full PDF")}
>
- <RestartAltIcon style={{ fontSize: "1rem" }} />
+ <Icon name="rotate-ccw" size={"1rem"} />
</ActionIcon>
</Group>
diff --git a/frontend/editor/src/core/components/tools/editTableOfContents/BookmarkEditor.tsx b/frontend/editor/src/core/components/tools/editTableOfContents/BookmarkEditor.tsx
index c1711a635c..eb502ff57b 100644
--- a/frontend/editor/src/core/components/tools/editTableOfContents/BookmarkEditor.tsx
+++ b/frontend/editor/src/core/components/tools/editTableOfContents/BookmarkEditor.tsx
@@ -13,12 +13,12 @@ import {
} from "@mantine/core";
import { Button } from "@app/ui/Button";
import { ActionIcon } from "@app/ui/ActionIcon";
-import LocalIcon from "@app/components/shared/LocalIcon";
import {
BookmarkNode,
createBookmarkNode,
} from "@app/utils/editTableOfContents";
+import { Icon } from "@app/ui/Icon";
interface BookmarkEditorProps {
bookmarks: BookmarkNode[];
onChange: (bookmarks: BookmarkNode[]) => void;
@@ -208,9 +208,7 @@ export default function BookmarkEditor({
const renderBookmark = (bookmark: BookmarkNode, level = 0) => {
const hasChildren = bookmark.children.length > 0;
- const chevronIcon = bookmark.expanded
- ? "expand-more-rounded"
- : "chevron-right-rounded";
+ const chevronIcon = bookmark.expanded ? "chevron-down" : "chevron-right";
return (
<Paper
@@ -240,7 +238,7 @@ export default function BookmarkEditor({
)}
style={{ marginTop: 4 }}
>
- <LocalIcon icon={chevronIcon} />
+ <Icon name={chevronIcon} size="1em" />
</ActionIcon>
<Stack gap={2}>
<Group gap="xs" align="center">
@@ -284,7 +282,7 @@ export default function BookmarkEditor({
"Add child bookmark",
)}
>
- <LocalIcon icon="subdirectory-arrow-right-rounded" />
+ <Icon name="corner-down-right" size="1em" />
</ActionIcon>
</Tooltip>
<Tooltip
@@ -305,7 +303,7 @@ export default function BookmarkEditor({
"Add sibling bookmark",
)}
>
- <LocalIcon icon="add-rounded" />
+ <Icon name="plus" size="1em" />
</ActionIcon>
</Tooltip>
<Tooltip
@@ -327,7 +325,7 @@ export default function BookmarkEditor({
"Remove bookmark",
)}
>
- <LocalIcon icon="delete-rounded" />
+ <Icon name="trash" size="1em" />
</ActionIcon>
</Tooltip>
</Group>
@@ -411,7 +409,7 @@ export default function BookmarkEditor({
</div>
<Button
variant="secondary"
- leftSection={<LocalIcon icon="bookmark-add-rounded" />}
+ leftSection={<Icon name="bookmark-plus" size="1em" />}
onMouseDown={(e) => {
e.preventDefault();
handleAddTopLevel();
@@ -428,10 +426,7 @@ export default function BookmarkEditor({
{bookmarks.length === 0 ? (
<Paper withBorder radius="md" ta="center" py="xl">
<Stack gap="xs" align="center" px="lg">
- <LocalIcon
- icon="bookmark-add-rounded"
- style={{ fontSize: "2.25rem" }}
- />
+ <Icon name="bookmark-plus" size="2.25rem" />
<Text fw={600}>
{t("editTableOfContents.editor.empty.title", "No bookmarks yet")}
</Text>
@@ -443,7 +438,7 @@ export default function BookmarkEditor({
</Text>
<Button
variant="tertiary"
- leftSection={<LocalIcon icon="add-rounded" />}
+ leftSection={<Icon name="plus" size="1em" />}
onMouseDown={(e) => {
e.preventDefault();
handleAddTopLevel();
diff --git a/frontend/editor/src/core/components/tools/editTableOfContents/EditTableOfContentsSettings.tsx b/frontend/editor/src/core/components/tools/editTableOfContents/EditTableOfContentsSettings.tsx
index 387e1ffe6e..57c9766d7f 100644
--- a/frontend/editor/src/core/components/tools/editTableOfContents/EditTableOfContentsSettings.tsx
+++ b/frontend/editor/src/core/components/tools/editTableOfContents/EditTableOfContentsSettings.tsx
@@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next";
import { Alert, Divider, Stack, Switch, Text, Tooltip } from "@mantine/core";
import { Button as DSButton } from "@app/ui/Button";
import { FilePicker } from "@app/ui/FilePicker";
-import LocalIcon from "@app/components/shared/LocalIcon";
+import { Icon } from "@app/ui/Icon";
import { BookmarkNode } from "@app/utils/editTableOfContents";
interface EditTableOfContentsSettingsProps {
@@ -82,7 +82,7 @@ export default function EditTableOfContentsSettings({
<Stack gap="sm">
<DSButton
variant="secondary"
- leftSection={<LocalIcon icon="folder-rounded" />}
+ leftSection={<Icon name="folder" size="1em" />}
onClick={onSelectFiles}
fullWidth
>
@@ -103,7 +103,7 @@ export default function EditTableOfContentsSettings({
>
<DSButton
variant="secondary"
- leftSection={<LocalIcon icon="picture-as-pdf-rounded" />}
+ leftSection={<Icon name="file-text" size="1em" />}
onClick={onLoadFromPdf}
loading={isLoading}
disabled={disabled || !selectedFileName}
@@ -117,7 +117,7 @@ export default function EditTableOfContentsSettings({
accept="application/json"
disabled={disabled}
variant="secondary"
- leftSection={<LocalIcon icon="upload-rounded" />}
+ leftSection={<Icon name="upload" size="1em" />}
fullWidth
>
{t("editTableOfContents.actions.importJson", "Import JSON")}
@@ -135,7 +135,7 @@ export default function EditTableOfContentsSettings({
>
<DSButton
variant="secondary"
- leftSection={<LocalIcon icon="content-paste-rounded" />}
+ leftSection={<Icon name="clipboard" size="1em" />}
onClick={onImportClipboard}
disabled={disabled || !canReadClipboard}
fullWidth
@@ -152,7 +152,7 @@ export default function EditTableOfContentsSettings({
<Alert
color="red"
radius="md"
- icon={<LocalIcon icon="error-outline-rounded" />}
+ icon={<Icon name="circle-alert" size="1em" />}
>
{loadError}
</Alert>
@@ -169,7 +169,7 @@ export default function EditTableOfContentsSettings({
<Stack gap="sm">
<DSButton
variant="secondary"
- leftSection={<LocalIcon icon="download-rounded" />}
+ leftSection={<Icon name="download" size="1em" />}
onClick={onExportJson}
disabled={disabled || bookmarks.length === 0}
fullWidth
@@ -189,7 +189,7 @@ export default function EditTableOfContentsSettings({
>
<DSButton
variant="secondary"
- leftSection={<LocalIcon icon="content-copy-rounded" />}
+ leftSection={<Icon name="copy" size="1em" />}
onClick={onExportClipboard}
disabled={disabled || bookmarks.length === 0 || !canWriteClipboard}
fullWidth
diff --git a/frontend/editor/src/core/components/tools/editTableOfContents/EditTableOfContentsWorkbenchView.tsx b/frontend/editor/src/core/components/tools/editTableOfContents/EditTableOfContentsWorkbenchView.tsx
index d5f8901673..46c438fc81 100644
--- a/frontend/editor/src/core/components/tools/editTableOfContents/EditTableOfContentsWorkbenchView.tsx
+++ b/frontend/editor/src/core/components/tools/editTableOfContents/EditTableOfContentsWorkbenchView.tsx
@@ -2,7 +2,7 @@ import { useMemo } from "react";
import { useTranslation } from "react-i18next";
import { Box, Card, Divider, Group, Stack, Text } from "@mantine/core";
import { Button } from "@app/ui/Button";
-import LocalIcon from "@app/components/shared/LocalIcon";
+import { Icon } from "@app/ui/Icon";
import { BookmarkNode } from "@app/utils/editTableOfContents";
import ErrorNotification from "@app/components/tools/shared/ErrorNotification";
import ResultsPreview from "@app/components/tools/shared/ResultsPreview";
@@ -150,7 +150,7 @@ const EditTableOfContentsWorkbenchView = ({
<Divider />
<Group justify="flex-end">
<Button
- leftSection={<LocalIcon icon="menu-book-rounded" />}
+ leftSection={<Icon name="book-open" size="1em" />}
onClick={onExecute}
disabled={isExecuteDisabled}
loading={isExecuting}
@@ -201,7 +201,7 @@ const EditTableOfContentsWorkbenchView = ({
<Group justify="flex-end" gap="sm">
{downloadUrl && (
<Button
- leftSection={<LocalIcon icon="download-rounded" />}
+ leftSection={<Icon name="download" size="1em" />}
onClick={() =>
downloadFromUrl(
downloadUrl,
@@ -214,7 +214,7 @@ const EditTableOfContentsWorkbenchView = ({
)}
<Button
variant="secondary"
- leftSection={<LocalIcon icon="rotate-left" />}
+ leftSection={<Icon name="rotate-ccw" size="1em" />}
onClick={onUndo}
disabled={isExecuting}
>
diff --git a/frontend/editor/src/core/components/tools/getPdfInfo/sections/ComplianceSection.tsx b/frontend/editor/src/core/components/tools/getPdfInfo/sections/ComplianceSection.tsx
index b2d4c3ea1f..806a16ec8a 100644
--- a/frontend/editor/src/core/components/tools/getPdfInfo/sections/ComplianceSection.tsx
+++ b/frontend/editor/src/core/components/tools/getPdfInfo/sections/ComplianceSection.tsx
@@ -9,9 +9,7 @@ import {
Tooltip,
Divider,
} from "@mantine/core";
-import CheckIcon from "@mui/icons-material/Check";
-import CloseIcon from "@mui/icons-material/Close";
-import InfoIcon from "@mui/icons-material/InfoOutlined";
+import { Icon } from "@app/ui/Icon";
import SectionBlock from "@app/components/tools/getPdfInfo/shared/SectionBlock";
import type {
PdfCompliance,
@@ -194,7 +192,6 @@ const ComplianceRow: React.FC<{
result: ComplianceCheckResult;
}> = ({ result }) => {
const { t } = useTranslation();
- const Icon = result.isCompliant ? CheckIcon : CloseIcon;
const color = result.isCompliant ? "teal" : "red";
const statusText = result.isCompliant
? t("getPdfInfo.compliance.passed", "Passed")
@@ -212,7 +209,7 @@ const ComplianceRow: React.FC<{
<Group justify="space-between" wrap="nowrap">
<Group gap="sm" wrap="nowrap" style={{ minWidth: 0 }}>
<ThemeIcon color={color} variant="light" size="lg" radius="xl">
- <Icon style={{ fontSize: "1.2rem" }} />
+ <Icon name={result.isCompliant ? "check" : "x"} size="1.2rem" />
</ThemeIcon>
<Stack gap={2} style={{ minWidth: 0 }}>
<Text size="sm" fw={600} truncate>
@@ -234,7 +231,9 @@ const ComplianceRow: React.FC<{
color={color}
variant="light"
size="md"
- leftSection={<Icon style={{ width: 12, height: 12 }} />}
+ leftSection={
+ <Icon name={result.isCompliant ? "check" : "x"} size={12} />
+ }
>
{statusText}
</Badge>
@@ -249,7 +248,7 @@ const EmptyComplianceState: React.FC = () => {
<Paper p="md" radius="sm" withBorder>
<Group gap="sm">
<ThemeIcon color="gray" variant="light" size="lg" radius="xl">
- <InfoIcon style={{ fontSize: "1.2rem" }} />
+ <Icon name="info" size={"1.2rem"} />
</ThemeIcon>
<Stack gap={2}>
<Text size="sm" fw={500}>
diff --git a/frontend/editor/src/core/components/tools/merge/MergeFileSorter.tsx b/frontend/editor/src/core/components/tools/merge/MergeFileSorter.tsx
index 15730c35f3..70fbeb458f 100644
--- a/frontend/editor/src/core/components/tools/merge/MergeFileSorter.tsx
+++ b/frontend/editor/src/core/components/tools/merge/MergeFileSorter.tsx
@@ -3,9 +3,7 @@ import { Group, Text, Stack, Select } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { ActionIcon } from "@app/ui/ActionIcon";
import { useTranslation } from "react-i18next";
-import SortIcon from "@mui/icons-material/Sort";
-import ArrowUpwardIcon from "@mui/icons-material/ArrowUpward";
-import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
+import { Icon } from "@app/ui/Icon";
import { Z_INDEX_AUTOMATE_DROPDOWN } from "@app/styles/zIndex";
interface MergeFileSorterProps {
@@ -84,14 +82,14 @@ const MergeFileSorter: React.FC<MergeFileSorterProps> = ({
: t("merge.sortBy.descending", "Descending")
}
>
- {ascending ? <ArrowUpwardIcon /> : <ArrowDownwardIcon />}
+ {ascending ? <Icon name="arrow-up" /> : <Icon name="arrow-down" />}
</ActionIcon>
</Group>
<Button
variant="secondary"
size="sm"
- leftSection={<SortIcon />}
+ leftSection={<Icon name="list-sort-descending" />}
onClick={handleSort}
disabled={disabled}
fullWidth
diff --git a/frontend/editor/src/core/components/tools/overlayPdfs/OverlayPdfsSettings.tsx b/frontend/editor/src/core/components/tools/overlayPdfs/OverlayPdfsSettings.tsx
index 8df455182e..2006e41f91 100644
--- a/frontend/editor/src/core/components/tools/overlayPdfs/OverlayPdfsSettings.tsx
+++ b/frontend/editor/src/core/components/tools/overlayPdfs/OverlayPdfsSettings.tsx
@@ -16,7 +16,7 @@ import {
type OverlayPdfsParameters,
type OverlayMode,
} from "@app/hooks/tools/overlayPdfs/useOverlayPdfsParameters";
-import LocalIcon from "@app/components/shared/LocalIcon";
+import { Icon } from "@app/ui/Icon";
import { FilesModalContext } from "@app/contexts/FilesModalContext";
import styles from "@app/components/tools/overlayPdfs/OverlayPdfsSettings.module.css";
import { Z_INDEX_AUTOMATE_DROPDOWN } from "@app/styles/zIndex";
@@ -206,7 +206,7 @@ export default function OverlayPdfsSettings({
size="sm"
onClick={handleOpenOverlayFilesModal}
disabled={disabled}
- leftSection={<LocalIcon icon="add" width="14" height="14" />}
+ leftSection={<Icon name="plus" size="14" />}
fullWidth
>
{overlayFilesButtonLabel}
@@ -219,7 +219,7 @@ export default function OverlayPdfsSettings({
resetRef={resetOverlayPicker}
size="sm"
disabled={disabled}
- leftSection={<LocalIcon icon="add" width="14" height="14" />}
+ leftSection={<Icon name="plus" size="14" />}
fullWidth
>
{overlayFilesButtonLabel}
@@ -262,11 +262,7 @@ export default function OverlayPdfsSettings({
disabled={disabled}
aria-label={t("remove", "Remove")}
>
- <LocalIcon
- icon="close-rounded"
- width="14"
- height="14"
- />
+ <Icon name="x" size="14" />
</ActionIcon>
</Group>
))}
diff --git a/frontend/editor/src/core/components/tools/rotate/RotateSettings.tsx b/frontend/editor/src/core/components/tools/rotate/RotateSettings.tsx
index 950c78ea99..6a525df815 100644
--- a/frontend/editor/src/core/components/tools/rotate/RotateSettings.tsx
+++ b/frontend/editor/src/core/components/tools/rotate/RotateSettings.tsx
@@ -2,8 +2,7 @@ import { useEffect } from "react";
import { Stack, Text, Box, Group, Center } from "@mantine/core";
import { ActionIcon } from "@app/ui/ActionIcon";
import { useTranslation } from "react-i18next";
-import RotateLeftIcon from "@mui/icons-material/RotateLeft";
-import RotateRightIcon from "@mui/icons-material/RotateRight";
+import { Icon } from "@app/ui/Icon";
import { RotateParametersHook } from "@app/hooks/tools/rotate/useRotateParameters";
import { useViewScopedFileStubs } from "@app/hooks/tools/shared/useViewScopedFiles";
import DocumentThumbnail from "@app/components/shared/filePreview/DocumentThumbnail";
@@ -95,7 +94,7 @@ const RotateSettings = ({
aria-label={t("rotate.rotateLeft", "Rotate Anticlockwise")}
title={t("rotate.rotateLeft", "Rotate Anticlockwise")}
>
- <RotateLeftIcon style={{ fontSize: "1.5rem" }} />
+ <Icon name="rotate-ccw" size={"1.5rem"} />
</ActionIcon>
<ActionIcon
@@ -106,7 +105,7 @@ const RotateSettings = ({
aria-label={t("rotate.rotateRight", "Rotate Clockwise")}
title={t("rotate.rotateRight", "Rotate Clockwise")}
>
- <RotateRightIcon style={{ fontSize: "1.5rem" }} />
+ <Icon name="rotate-cw" size={"1.5rem"} />
</ActionIcon>
</Group>
</Stack>
diff --git a/frontend/editor/src/core/components/tools/shared/NavigationControls.tsx b/frontend/editor/src/core/components/tools/shared/NavigationControls.tsx
index 0692907f17..c93975fa52 100644
--- a/frontend/editor/src/core/components/tools/shared/NavigationControls.tsx
+++ b/frontend/editor/src/core/components/tools/shared/NavigationControls.tsx
@@ -1,7 +1,6 @@
import { Stack, Group, Text } from "@mantine/core";
import { useTranslation } from "react-i18next";
-import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
-import ChevronRightIcon from "@mui/icons-material/ChevronRight";
+import { Icon } from "@app/ui/Icon";
import { ActionIcon } from "@app/ui/ActionIcon";
export interface NavigationControlsProps {
@@ -31,7 +30,7 @@ const NavigationControls = ({
disabled={totalFiles <= 1}
data-testid="review-panel-prev"
>
- <ChevronLeftIcon style={{ fontSize: "1rem" }} />
+ <Icon name="chevron-left" size={"1rem"} />
</ActionIcon>
<Text size="xs" c="dimmed">
{currentIndex + 1} of {totalFiles}
@@ -45,7 +44,7 @@ const NavigationControls = ({
disabled={totalFiles <= 1}
data-testid="review-panel-next"
>
- <ChevronRightIcon style={{ fontSize: "1rem" }} />
+ <Icon name="chevron-right" size={"1rem"} />
</ActionIcon>
</Group>
</Stack>
diff --git a/frontend/editor/src/core/components/tools/shared/ToolStep.tsx b/frontend/editor/src/core/components/tools/shared/ToolStep.tsx
index 790775f13e..844440e12f 100644
--- a/frontend/editor/src/core/components/tools/shared/ToolStep.tsx
+++ b/frontend/editor/src/core/components/tools/shared/ToolStep.tsx
@@ -1,6 +1,6 @@
import React, { createContext, useContext, useMemo } from "react";
import { Text, Stack, Flex, Divider } from "@mantine/core";
-import LocalIcon from "@app/components/shared/LocalIcon";
+import { Icon } from "@app/ui/Icon";
import { Tooltip } from "@app/components/shared/Tooltip";
import { TooltipTip } from "@app/types/tips";
import {
@@ -60,10 +60,9 @@ const renderTooltipTitle = (
<Text fw={400} size="sm">
{title}
</Text>
- <LocalIcon
- icon="info-outline-rounded"
- width="1.25rem"
- height="1.25rem"
+ <Icon
+ name="info"
+ size="1.25rem"
style={{ color: "var(--icon-files-color)" }}
/>
</Flex>
@@ -133,20 +132,18 @@ const ToolStep = ({
</Flex>
{isCollapsed ? (
- <LocalIcon
- icon="chevron-right-rounded"
- width="1.2rem"
- height="1.2rem"
+ <Icon
+ name="chevron-right"
+ size="1.2rem"
style={{
color: "var(--mantine-color-dimmed)",
opacity: onCollapsedClick ? 1 : 0.5,
}}
/>
) : (
- <LocalIcon
- icon="expand-more-rounded"
- width="1.2rem"
- height="1.2rem"
+ <Icon
+ name="chevron-down"
+ size="1.2rem"
style={{
color: "var(--mantine-color-dimmed)",
opacity: onCollapsedClick ? 1 : 0.5,
diff --git a/frontend/editor/src/core/components/tools/shared/ToolWorkflowTitle.tsx b/frontend/editor/src/core/components/tools/shared/ToolWorkflowTitle.tsx
index 60f7448f7e..023335c378 100644
--- a/frontend/editor/src/core/components/tools/shared/ToolWorkflowTitle.tsx
+++ b/frontend/editor/src/core/components/tools/shared/ToolWorkflowTitle.tsx
@@ -1,6 +1,6 @@
import React from "react";
import { Flex, Text, Divider } from "@mantine/core";
-import LocalIcon from "@app/components/shared/LocalIcon";
+import { Icon } from "@app/ui/Icon";
import { Tooltip } from "@app/components/shared/Tooltip";
import { TooltipTip } from "@app/types/tips";
@@ -28,10 +28,9 @@ export function ToolWorkflowTitle({
{title}
</Text>
{tooltip && (
- <LocalIcon
- icon="info-outline-rounded"
- width="1.25rem"
- height="1.25rem"
+ <Icon
+ name="info"
+ size="1.25rem"
style={{ color: "var(--icon-files-color)" }}
/>
)}
diff --git a/frontend/editor/src/core/components/tools/showJS/ShowJSView.tsx b/frontend/editor/src/core/components/tools/showJS/ShowJSView.tsx
index 685d238e79..05f3be04f2 100644
--- a/frontend/editor/src/core/components/tools/showJS/ShowJSView.tsx
+++ b/frontend/editor/src/core/components/tools/showJS/ShowJSView.tsx
@@ -8,10 +8,7 @@ import React, {
import { Box, Group, Stack, Text, ScrollArea, TextInput } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { ActionIcon } from "@app/ui/ActionIcon";
-import ContentCopyRoundedIcon from "@mui/icons-material/ContentCopyRounded";
-import ArrowUpwardRoundedIcon from "@mui/icons-material/ArrowUpwardRounded";
-import ArrowDownwardRoundedIcon from "@mui/icons-material/ArrowDownwardRounded";
-import DownloadRoundedIcon from "@mui/icons-material/DownloadRounded";
+import { Icon } from "@app/ui/Icon";
import "@app/components/tools/showJS/ShowJSView.css";
import { useTranslation } from "react-i18next";
import { useFileActionTerminology } from "@app/hooks/useFileActionTerminology";
@@ -168,7 +165,7 @@ const ShowJSView: React.FC<ShowJSViewProps> = ({ data }) => {
}}
aria-label={t("common.previous", "Previous")}
>
- <ArrowUpwardRoundedIcon fontSize="small" />
+ <Icon name="arrow-up" size={20} />
</ActionIcon>
<ActionIcon
size="sm"
@@ -178,7 +175,7 @@ const ShowJSView: React.FC<ShowJSViewProps> = ({ data }) => {
}}
aria-label={t("common.next", "Next")}
>
- <ArrowDownwardRoundedIcon fontSize="small" />
+ <Icon name="arrow-down" size={20} />
</ActionIcon>
</Group>
<Group gap="xs" align="center" className="showjs-toolbar-controls">
@@ -188,7 +185,7 @@ const ShowJSView: React.FC<ShowJSViewProps> = ({ data }) => {
className="showjs-outline-button"
onClick={handleDownload}
disabled={!downloadUrl}
- leftSection={<DownloadRoundedIcon fontSize="small" />}
+ leftSection={<Icon name="download" size={20} />}
>
{terminology.download}
</Button>
@@ -197,7 +194,7 @@ const ShowJSView: React.FC<ShowJSViewProps> = ({ data }) => {
size="sm"
className="showjs-outline-button"
onClick={handleCopy}
- leftSection={<ContentCopyRoundedIcon fontSize="small" />}
+ leftSection={<Icon name="copy" size={20} />}
>
{copied
? t("common.copied", "Copied!")
diff --git a/frontend/editor/src/core/components/tools/sign/SavedSignaturesSection.stories.tsx b/frontend/editor/src/core/components/tools/sign/SavedSignaturesSection.stories.tsx
index d852358d1f..defa0c96a5 100644
--- a/frontend/editor/src/core/components/tools/sign/SavedSignaturesSection.stories.tsx
+++ b/frontend/editor/src/core/components/tools/sign/SavedSignaturesSection.stories.tsx
@@ -24,6 +24,7 @@ const mockSignatures: SavedSignature[] = [
dataUrl:
"data:image/svg+xml;base64," +
btoa(
+ // icon-lint-disable -- data-uri stand-in for a drawn signature, not an icon
'<svg xmlns="http://www.w3.org/2000/svg" width="200" height="80"><rect width="200" height="80" fill="white"/><text x="10" y="45" font-size="20">Approved</text></svg>',
),
createdAt: Date.now(),
@@ -37,6 +38,7 @@ const mockSignatures: SavedSignature[] = [
dataUrl:
"data:image/svg+xml;base64," +
btoa(
+ // icon-lint-disable -- data-uri stand-in for a drawn signature, not an icon
'<svg xmlns="http://www.w3.org/2000/svg" width="200" height="80"><rect width="200" height="80" fill="white"/><path d="M10 60 Q 50 10 100 60 T 190 60" stroke="black" fill="none" stroke-width="3"/></svg>',
),
createdAt: Date.now(),
diff --git a/frontend/editor/src/core/components/tools/sign/SavedSignaturesSection.tsx b/frontend/editor/src/core/components/tools/sign/SavedSignaturesSection.tsx
index 50cc3d2fe2..effe28bdb8 100644
--- a/frontend/editor/src/core/components/tools/sign/SavedSignaturesSection.tsx
+++ b/frontend/editor/src/core/components/tools/sign/SavedSignaturesSection.tsx
@@ -11,7 +11,7 @@ import {
TextInput,
Tooltip,
} from "@mantine/core";
-import { LocalIcon } from "@app/components/shared/LocalIcon";
+import { Icon } from "@app/ui/Icon";
import { ActionIcon } from "@app/ui/ActionIcon";
import {
SavedSignature,
@@ -276,7 +276,7 @@ export const SavedSignaturesSection = ({
{groupedSignatures.personal.length > 0 && activePersonalSignature && (
<Stack gap="xs">
<Group gap="xs">
- <LocalIcon icon="person-rounded" width={18} height={18} />
+ <Icon name="user" size={18} />
<Text fw={600} size="sm">
{translate("saved.personalHeading", "Personal Signatures")}
</Text>
@@ -308,11 +308,7 @@ export const SavedSignaturesSection = ({
}
disabled={disabled || activePersonalIndex === 0}
>
- <LocalIcon
- icon="chevron-left-rounded"
- width={18}
- height={18}
- />
+ <Icon name="chevron-left" size={18} />
</ActionIcon>
<ActionIcon
variant="secondary"
@@ -331,11 +327,7 @@ export const SavedSignaturesSection = ({
groupedSignatures.personal.length - 1
}
>
- <LocalIcon
- icon="chevron-right-rounded"
- width={18}
- height={18}
- />
+ <Icon name="chevron-right" size={18} />
</ActionIcon>
</Group>
</Group>
@@ -356,11 +348,7 @@ export const SavedSignaturesSection = ({
onClick={() => onUseSignature(activePersonalSignature)}
disabled={disabled}
>
- <LocalIcon
- icon="check-circle-outline-rounded"
- width={18}
- height={18}
- />
+ <Icon name="circle-check" size={18} />
</ActionIcon>
<Tooltip label={translate("saved.delete", "Remove")}>
<ActionIcon
@@ -372,11 +360,7 @@ export const SavedSignaturesSection = ({
}
disabled={disabled}
>
- <LocalIcon
- icon="delete-outline-rounded"
- width={18}
- height={18}
- />
+ <Icon name="trash" size={18} />
</ActionIcon>
</Tooltip>
</Group>
@@ -406,7 +390,7 @@ export const SavedSignaturesSection = ({
{groupedSignatures.shared.length > 0 && activeSharedSignature && (
<Stack gap="xs">
<Group gap="xs">
- <LocalIcon icon="groups-rounded" width={18} height={18} />
+ <Icon name="users" size={18} />
<Text fw={600} size="sm">
{translate("saved.sharedHeading", "Shared Signatures")}
</Text>
@@ -438,11 +422,7 @@ export const SavedSignaturesSection = ({
}
disabled={disabled || activeSharedIndex === 0}
>
- <LocalIcon
- icon="chevron-left-rounded"
- width={18}
- height={18}
- />
+ <Icon name="chevron-left" size={18} />
</ActionIcon>
<ActionIcon
variant="secondary"
@@ -457,11 +437,7 @@ export const SavedSignaturesSection = ({
activeSharedIndex >= groupedSignatures.shared.length - 1
}
>
- <LocalIcon
- icon="chevron-right-rounded"
- width={18}
- height={18}
- />
+ <Icon name="chevron-right" size={18} />
</ActionIcon>
</Group>
</Group>
@@ -482,11 +458,7 @@ export const SavedSignaturesSection = ({
onClick={() => onUseSignature(activeSharedSignature)}
disabled={disabled}
>
- <LocalIcon
- icon="check-circle-outline-rounded"
- width={18}
- height={18}
- />
+ <Icon name="circle-check" size={18} />
</ActionIcon>
{isAdmin && (
<Tooltip label={translate("saved.delete", "Remove")}>
@@ -499,11 +471,7 @@ export const SavedSignaturesSection = ({
}
disabled={disabled}
>
- <LocalIcon
- icon="delete-outline-rounded"
- width={18}
- height={18}
- />
+ <Icon name="trash" size={18} />
</ActionIcon>
</Tooltip>
)}
@@ -571,11 +539,7 @@ export const SavedSignaturesSection = ({
}
disabled={disabled || activeLocalStorageIndex === 0}
>
- <LocalIcon
- icon="chevron-left-rounded"
- width={18}
- height={18}
- />
+ <Icon name="chevron-left" size={18} />
</ActionIcon>
<ActionIcon
variant="secondary"
@@ -594,11 +558,7 @@ export const SavedSignaturesSection = ({
groupedSignatures.localStorage.length - 1
}
>
- <LocalIcon
- icon="chevron-right-rounded"
- width={18}
- height={18}
- />
+ <Icon name="chevron-right" size={18} />
</ActionIcon>
</Group>
</Group>
@@ -621,11 +581,7 @@ export const SavedSignaturesSection = ({
}
disabled={disabled}
>
- <LocalIcon
- icon="check-circle-outline-rounded"
- width={18}
- height={18}
- />
+ <Icon name="circle-check" size={18} />
</ActionIcon>
<Tooltip label={translate("saved.delete", "Remove")}>
<ActionIcon
@@ -637,11 +593,7 @@ export const SavedSignaturesSection = ({
}
disabled={disabled}
>
- <LocalIcon
- icon="delete-outline-rounded"
- width={18}
- height={18}
- />
+ <Icon name="trash" size={18} />
</ActionIcon>
</Tooltip>
</Group>
diff --git a/frontend/editor/src/core/components/tools/sign/SignSettings.tsx b/frontend/editor/src/core/components/tools/sign/SignSettings.tsx
index 1d78343c79..ee8f901435 100644
--- a/frontend/editor/src/core/components/tools/sign/SignSettings.tsx
+++ b/frontend/editor/src/core/components/tools/sign/SignSettings.tsx
@@ -25,7 +25,6 @@ import { DrawingControls } from "@app/components/annotation/shared/DrawingContro
import { ImageUploader } from "@app/components/annotation/shared/ImageUploader";
import { TextInputWithFont } from "@app/components/annotation/shared/TextInputWithFont";
import { ColorPicker } from "@app/components/annotation/shared/ColorPicker";
-import { LocalIcon } from "@app/components/shared/LocalIcon";
import {
useSavedSignatures,
SavedSignature,
@@ -41,6 +40,7 @@ import { useAppConfig } from "@app/contexts/AppConfigContext";
import { useIsMobile } from "@app/hooks/useIsMobile";
import { buildSignaturePreview } from "@app/utils/signaturePreview";
+import { Icon, type IconName } from "@app/ui/Icon";
type SignatureDrafts = {
canvas?: string;
image?: string;
@@ -407,7 +407,7 @@ const SignSettings = ({
isReady: boolean,
onClick: (scope: "personal" | "shared") => void,
scope: "personal" | "shared",
- icon: string,
+ icon: IconName,
label: string,
) => {
if (!canUseSavedLibrary) {
@@ -454,7 +454,7 @@ const SignSettings = ({
disabled={
!isReady || disabled || isSavedSignatureLimitReached || !hasChanges
}
- leftSection={<LocalIcon icon={icon} width={16} height={16} />}
+ leftSection={<Icon name={icon} size={16} />}
>
{label}
</Button>
@@ -485,7 +485,7 @@ const SignSettings = ({
isReady,
onClick,
"personal",
- "person-rounded",
+ "user",
translate("saved.savePersonal", "Save Personal"),
);
@@ -494,7 +494,7 @@ const SignSettings = ({
isReady,
onClick,
"shared",
- "groups-rounded",
+ "users",
translate("saved.saveShared", "Save Shared"),
);
@@ -1225,9 +1225,7 @@ const SignSettings = ({
aria-label={translate("mode.pause", "Pause placement")}
onClick={handlePausePlacement}
disabled={disabled || !onDeactivateSignature}
- leftSection={
- <LocalIcon icon="pause-circle-rounded" width={20} height={20} />
- }
+ leftSection={<Icon name="circle-pause" size={20} />}
>
{translate("mode.pause", "Pause placement")}
</Button>
@@ -1241,9 +1239,7 @@ const SignSettings = ({
disabled={
disabled || !isCurrentTypeReady || !onActivateSignaturePlacement
}
- leftSection={
- <LocalIcon icon="play-arrow-rounded" width={20} height={20} />
- }
+ leftSection={<Icon name="play" size={20} />}
>
{translate("mode.resume", "Resume placement")}
</Button>
@@ -1266,7 +1262,7 @@ const SignSettings = ({
variant="secondary"
fullWidth
disabled={disabled}
- leftSection={<LocalIcon icon="qr-code-rounded" width="1rem" />}
+ leftSection={<Icon name="qr-code" size="1rem" />}
onClick={() => setIsMobileSignModalOpen(true)}
>
{t("sign.mobile.createFromPhone", "Mobile upload")}
diff --git a/frontend/editor/src/core/components/tools/split/SplitSettings.tsx b/frontend/editor/src/core/components/tools/split/SplitSettings.tsx
index 8c1832242a..7bcba13299 100644
--- a/frontend/editor/src/core/components/tools/split/SplitSettings.tsx
+++ b/frontend/editor/src/core/components/tools/split/SplitSettings.tsx
@@ -6,7 +6,7 @@ import {
Text,
Select,
} from "@mantine/core";
-import LocalIcon from "@app/components/shared/LocalIcon";
+import { Icon } from "@app/ui/Icon";
import { useTranslation } from "react-i18next";
import { SPLIT_METHODS } from "@app/constants/splitConstants";
import { SplitParameters } from "@app/hooks/tools/split/useSplitParameters";
@@ -211,7 +211,7 @@ const SplitSettings = ({
size="sm"
style={{ display: "flex", alignItems: "center", gap: "0.5rem" }}
>
- <LocalIcon icon="download-rounded" width="2rem" height="2rem" />
+ <Icon name="download" size="2rem" />
{t(
"autoSplitPDF.dividerDownload2",
"Download 'Auto Splitter Divider (with instructions).pdf'",
diff --git a/frontend/editor/src/core/components/tools/validateSignature/reportView/ThumbnailPreview.stories.tsx b/frontend/editor/src/core/components/tools/validateSignature/reportView/ThumbnailPreview.stories.tsx
index feccc477d3..9fb29c4080 100644
--- a/frontend/editor/src/core/components/tools/validateSignature/reportView/ThumbnailPreview.stories.tsx
+++ b/frontend/editor/src/core/components/tools/validateSignature/reportView/ThumbnailPreview.stories.tsx
@@ -11,6 +11,7 @@ type Story = StoryObj<typeof meta>;
const SAMPLE_THUMBNAIL =
"data:image/svg+xml;utf8," +
encodeURIComponent(
+ // icon-lint-disable -- data-uri stand-in for a rendered page, not an icon
'<svg xmlns="http://www.w3.org/2000/svg" width="120" height="160"><rect width="120" height="160" fill="#f0f0f0"/></svg>',
);
diff --git a/frontend/editor/src/core/components/tools/validateSignature/reportView/ThumbnailPreview.tsx b/frontend/editor/src/core/components/tools/validateSignature/reportView/ThumbnailPreview.tsx
index 378280bbac..a47f661373 100644
--- a/frontend/editor/src/core/components/tools/validateSignature/reportView/ThumbnailPreview.tsx
+++ b/frontend/editor/src/core/components/tools/validateSignature/reportView/ThumbnailPreview.tsx
@@ -1,4 +1,4 @@
-import PictureAsPdfIcon from "@mui/icons-material/PictureAsPdf";
+import { Icon } from "@app/ui/Icon";
import "@app/components/tools/validateSignature/reportView/styles.css";
const ThumbnailPreview = ({
@@ -22,7 +22,7 @@ const ThumbnailPreview = ({
return (
<div className="thumbnail-placeholder">
- <PictureAsPdfIcon fontSize="large" />
+ <Icon name="file-pdf" size={35} />
</div>
);
};
diff --git a/frontend/editor/src/core/pages/MobileScannerPage.tsx b/frontend/editor/src/core/pages/MobileScannerPage.tsx
index c9e489c7bd..adcd8f1ca0 100644
--- a/frontend/editor/src/core/pages/MobileScannerPage.tsx
+++ b/frontend/editor/src/core/pages/MobileScannerPage.tsx
@@ -15,13 +15,7 @@ import { Button as DSButton } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
import { LogoIcon } from "@app/components/shared/LogoIcon";
import { Wordmark } from "@app/components/shared/Wordmark";
-import ErrorRoundedIcon from "@mui/icons-material/ErrorRounded";
-import InfoRoundedIcon from "@mui/icons-material/InfoRounded";
-import PhotoCameraRoundedIcon from "@mui/icons-material/PhotoCameraRounded";
-import UploadRoundedIcon from "@mui/icons-material/UploadRounded";
-import AddPhotoAlternateRoundedIcon from "@mui/icons-material/AddPhotoAlternateRounded";
-import CheckCircleRoundedIcon from "@mui/icons-material/CheckCircleRounded";
-import DeleteOutlineRoundedIcon from "@mui/icons-material/DeleteOutlineRounded";
+import { Icon } from "@app/ui/Icon";
import {
loadJscanify,
type JscanifyCornerPoints,
@@ -921,8 +915,10 @@ export default function MobileScannerPage() {
textAlign: "center",
}}
>
- <CheckCircleRoundedIcon
- style={{ fontSize: "4rem", color: "var(--mantine-color-green-6)" }}
+ <Icon
+ name="circle-check"
+ size={"4rem"}
+ style={{ color: "var(--mantine-color-green-6)" }}
/>
<Text size="xl" fw="bold" mt="md">
{t("mobileScanner.uploadSuccess", "Upload Successful!")}
@@ -1030,7 +1026,7 @@ export default function MobileScannerPage() {
color="red"
radius={0}
py={4}
- icon={<ErrorRoundedIcon style={{ fontSize: "1.1rem" }} />}
+ icon={<Icon name="circle-alert" size={"1.1rem"} />}
onClose={() => setUploadError(null)}
withCloseButton
closeButtonLabel={t("mobileScanner.dismiss", "Dismiss")}
@@ -1044,7 +1040,7 @@ export default function MobileScannerPage() {
color="orange"
radius={0}
py={4}
- icon={<InfoRoundedIcon style={{ fontSize: "1.1rem" }} />}
+ icon={<Icon name="info" size={"1.1rem"} />}
onClose={() => setCameraError(null)}
withCloseButton
closeButtonLabel={t("mobileScanner.dismiss", "Dismiss")}
@@ -1168,11 +1164,10 @@ export default function MobileScannerPage() {
{
key: "camera",
icon: (
- <PhotoCameraRoundedIcon
- style={{
- fontSize: FLUID.icon,
- color: "var(--c-accent-text)",
- }}
+ <Icon
+ name="camera"
+ size={FLUID.icon}
+ style={{ color: "var(--c-accent-text)" }}
/>
),
title: t("mobileScanner.camera", "Camera"),
@@ -1188,11 +1183,10 @@ export default function MobileScannerPage() {
{
key: "file",
icon: (
- <UploadRoundedIcon
- style={{
- fontSize: FLUID.icon,
- color: "var(--mantine-color-green-6)",
- }}
+ <Icon
+ name="upload"
+ size={FLUID.icon}
+ style={{ color: "var(--mantine-color-green-6)" }}
/>
),
title: t("mobileScanner.fileUpload", "File Upload"),
@@ -1349,11 +1343,10 @@ export default function MobileScannerPage() {
}}
>
<Stack align="center" gap={FLUID.gap} style={{ minHeight: 0 }}>
- <UploadRoundedIcon
- style={{
- fontSize: FLUID.icon,
- color: "var(--mantine-color-gray-5)",
- }}
+ <Icon
+ name="upload"
+ size={FLUID.icon}
+ style={{ color: "var(--mantine-color-gray-5)" }}
/>
<Text fw={600} ta="center" style={{ fontSize: FLUID.title }}>
{t(
@@ -1510,7 +1503,7 @@ export default function MobileScannerPage() {
accent="danger"
size={buttonSize}
onClick={removeSelected}
- leftSection={<DeleteOutlineRoundedIcon />}
+ leftSection={<Icon name="trash" />}
>
{mode === "camera"
? t("mobileScanner.retake", "Retake")
@@ -1526,9 +1519,9 @@ export default function MobileScannerPage() {
}
leftSection={
mode === "camera" ? (
- <PhotoCameraRoundedIcon />
+ <Icon name="camera" />
) : (
- <AddPhotoAlternateRoundedIcon />
+ <Icon name="image-plus" />
)
}
>
@@ -1552,7 +1545,7 @@ export default function MobileScannerPage() {
size={buttonSize}
variant={canUpload ? "secondary" : "primary"}
onClick={openFilePicker}
- leftSection={<AddPhotoAlternateRoundedIcon />}
+ leftSection={<Icon name="image-plus" />}
>
{t("mobileScanner.selectImages", "Select Images")}
</DSButton>
diff --git a/frontend/editor/src/core/pages/MobileSignPage.tsx b/frontend/editor/src/core/pages/MobileSignPage.tsx
index fd4034e0ba..b2537ffb00 100644
--- a/frontend/editor/src/core/pages/MobileSignPage.tsx
+++ b/frontend/editor/src/core/pages/MobileSignPage.tsx
@@ -17,13 +17,7 @@ import { SegmentedControl } from "@app/ui/SegmentedControl";
import { useTranslation } from "react-i18next";
import { LogoIcon } from "@app/components/shared/LogoIcon";
import { Wordmark } from "@app/components/shared/Wordmark";
-import CheckCircleRoundedIcon from "@mui/icons-material/CheckCircleRounded";
-import ErrorRoundedIcon from "@mui/icons-material/ErrorRounded";
-import UndoRoundedIcon from "@mui/icons-material/UndoRounded";
-import DeleteOutlineRoundedIcon from "@mui/icons-material/DeleteOutlineRounded";
-import AddPhotoAlternateRoundedIcon from "@mui/icons-material/AddPhotoAlternateRounded";
-import PhotoCameraRoundedIcon from "@mui/icons-material/PhotoCameraRounded";
-import SendRoundedIcon from "@mui/icons-material/SendRounded";
+import { Icon } from "@app/ui/Icon";
import {
MobileDrawCanvas,
type MobileDrawCanvasHandle,
@@ -258,7 +252,7 @@ export default function MobileSignPage() {
<Box p="md" maw={480} mx="auto">
{header}
<Alert
- icon={<ErrorRoundedIcon style={{ fontSize: "1rem" }} />}
+ icon={<Icon name="circle-alert" size={"1rem"} />}
color="red"
title={t("mobileSign.invalidSession", "Session expired")}
>
@@ -282,7 +276,7 @@ export default function MobileSignPage() {
{justSent && (
<Alert
- icon={<CheckCircleRoundedIcon style={{ fontSize: "1rem" }} />}
+ icon={<Icon name="circle-check" size={"1rem"} />}
color="green"
mb="sm"
withCloseButton
@@ -296,7 +290,7 @@ export default function MobileSignPage() {
)}
{sendError && (
<Alert
- icon={<ErrorRoundedIcon style={{ fontSize: "1rem" }} />}
+ icon={<Icon name="circle-alert" size={"1rem"} />}
color="red"
mb="sm"
>
@@ -387,7 +381,7 @@ export default function MobileSignPage() {
size="sm"
disabled={!hasInk}
onClick={() => canvasHandle.current?.undo()}
- leftSection={<UndoRoundedIcon style={{ fontSize: 16 }} />}
+ leftSection={<Icon name="undo-2" size={16} />}
>
{t("mobileSign.undo", "Undo")}
</DSButton>
@@ -397,9 +391,7 @@ export default function MobileSignPage() {
size="sm"
disabled={!hasInk}
onClick={() => canvasHandle.current?.clear()}
- leftSection={
- <DeleteOutlineRoundedIcon style={{ fontSize: 16 }} />
- }
+ leftSection={<Icon name="trash" size={16} />}
>
{t("mobileSign.clear", "Clear")}
</DSButton>
@@ -495,16 +487,14 @@ export default function MobileSignPage() {
<DSButton
variant="secondary"
onClick={() => cameraInputRef.current?.click()}
- leftSection={<PhotoCameraRoundedIcon style={{ fontSize: 18 }} />}
+ leftSection={<Icon name="camera" size={18} />}
>
{t("mobileSign.photo.takePhoto", "Take a photo")}
</DSButton>
<DSButton
variant="secondary"
onClick={() => photoInputRef.current?.click()}
- leftSection={
- <AddPhotoAlternateRoundedIcon style={{ fontSize: 18 }} />
- }
+ leftSection={<Icon name="image-plus" size={18} />}
>
{t("mobileSign.photo.fromGallery", "From gallery")}
</DSButton>
@@ -542,7 +532,7 @@ export default function MobileSignPage() {
disabled={!canSend}
loading={isSending}
onClick={handleSend}
- leftSection={<SendRoundedIcon style={{ fontSize: 18 }} />}
+ leftSection={<Icon name="send" size={18} />}
>
{sentCount > 0
? t("mobileSign.sendAnother", "Send another signature")
diff --git a/frontend/editor/src/core/tools/Compare.tsx b/frontend/editor/src/core/tools/Compare.tsx
index d87e0efa1c..eb34646258 100644
--- a/frontend/editor/src/core/tools/Compare.tsx
+++ b/frontend/editor/src/core/tools/Compare.tsx
@@ -1,11 +1,9 @@
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
-import CompareRoundedIcon from "@mui/icons-material/CompareRounded";
-import CloseIcon from "@mui/icons-material/Close";
+import { Icon } from "@app/ui/Icon";
import { Box, Group, Stack, Text, Modal } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { ActionIcon } from "@app/ui/ActionIcon";
-import SwapVertRoundedIcon from "@mui/icons-material/SwapVertRounded";
import { createToolFlow } from "@app/components/tools/shared/createToolFlow";
import { useBaseTool } from "@app/hooks/tools/shared/useBaseTool";
import { BaseToolProps, ToolComponent } from "@app/types/tool";
@@ -60,10 +58,7 @@ const Compare = (props: BaseToolProps) => {
const operation = base.operation as CompareOperationHook;
const params = base.params.parameters;
- const compareIcon = useMemo(
- () => <CompareRoundedIcon fontSize="small" />,
- [],
- );
+ const compareIcon = useMemo(() => <Icon name="columns-2" size={20} />, []);
const [swapConfirmOpen, setSwapConfirmOpen] = useState(false);
const [clearConfirmOpen, setClearConfirmOpen] = useState(false);
@@ -386,7 +381,7 @@ const Compare = (props: BaseToolProps) => {
onClick={() => clearSlot(role)}
aria-label={t("compare.clearSlot", "Remove file")}
>
- <CloseIcon fontSize="small" />
+ <Icon name="x" size={20} />
</ActionIcon>
<Group align="flex-start" wrap="nowrap" gap="md">
<Box style={{ alignSelf: "center" }}>
@@ -513,7 +508,7 @@ const Compare = (props: BaseToolProps) => {
size="sm"
onClick={handleSwap}
disabled={base.operation.isLoading}
- leftSection={<SwapVertRoundedIcon fontSize="small" />}
+ leftSection={<Icon name="arrow-up-down" size={20} />}
style={{ alignSelf: "center" }}
>
{t("compare.swap.label", "Swap")}
diff --git a/frontend/editor/src/core/tools/EditTableOfContents.tsx b/frontend/editor/src/core/tools/EditTableOfContents.tsx
index 85769e0649..89a3880e17 100644
--- a/frontend/editor/src/core/tools/EditTableOfContents.tsx
+++ b/frontend/editor/src/core/tools/EditTableOfContents.tsx
@@ -1,7 +1,7 @@
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import { downloadFile } from "@app/services/downloadService";
-import MenuBookRoundedIcon from "@mui/icons-material/MenuBookRounded";
+import { Icon } from "@app/ui/Icon";
import { alert } from "@app/components/toast";
import { createToolFlow } from "@app/components/tools/shared/createToolFlow";
import EditTableOfContentsWorkbenchView, {
@@ -77,7 +77,7 @@ const EditTableOfContents = (props: BaseToolProps) => {
const WORKBENCH_VIEW_ID = "editTableOfContentsWorkbench";
const WORKBENCH_ID = "custom:editTableOfContents" as const;
- const viewIcon = useMemo(() => <MenuBookRoundedIcon fontSize="small" />, []);
+ const viewIcon = useMemo(() => <Icon name="book-open" size={20} />, []);
const [loadError, setLoadError] = useState<string | null>(null);
const [isLoadingBookmarks, setIsLoadingBookmarks] = useState(false);
diff --git a/frontend/editor/src/core/tools/GetPdfInfo.tsx b/frontend/editor/src/core/tools/GetPdfInfo.tsx
index 7407c064ec..7a7f952abc 100644
--- a/frontend/editor/src/core/tools/GetPdfInfo.tsx
+++ b/frontend/editor/src/core/tools/GetPdfInfo.tsx
@@ -1,7 +1,6 @@
import { useEffect, useMemo, useRef } from "react";
import { useTranslation } from "react-i18next";
-import PictureAsPdfIcon from "@mui/icons-material/PictureAsPdf";
-import LinkIcon from "@mui/icons-material/Link";
+import { Icon } from "@app/ui/Icon";
import { Stack, Divider, Text } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { createToolFlow } from "@app/components/tools/shared/createToolFlow";
@@ -91,7 +90,7 @@ const GetPdfInfo = (props: BaseToolProps) => {
const REPORT_VIEW_ID = "getPdfInfoReport";
const REPORT_WORKBENCH_ID = "custom:getPdfInfoReport" as const;
- const reportIcon = useMemo(() => <PictureAsPdfIcon fontSize="small" />, []);
+ const reportIcon = useMemo(() => <Icon name="file-pdf" size={20} />, []);
const base = useBaseTool(
"getPdfInfo",
@@ -194,7 +193,7 @@ const GetPdfInfo = (props: BaseToolProps) => {
}}
style={{ padding: "8px 4px" }}
leftSection={
- <LinkIcon fontSize="small" style={{ opacity: 0.7 }} />
+ <Icon name="link" size={20} style={{ opacity: 0.7 }} />
}
>
<Text size="md" c="dimmed">
diff --git a/frontend/editor/src/core/tools/SharedSign.tsx b/frontend/editor/src/core/tools/SharedSign.tsx
index 3a335f392a..70e9961975 100644
--- a/frontend/editor/src/core/tools/SharedSign.tsx
+++ b/frontend/editor/src/core/tools/SharedSign.tsx
@@ -13,8 +13,7 @@ import { Button } from "@app/ui/Button";
import { Chip } from "@app/ui/Chip";
import { SegmentedControl } from "@app/ui/SegmentedControl";
import { useTranslation } from "react-i18next";
-import AddIcon from "@mui/icons-material/Add";
-import ArrowBackIcon from "@mui/icons-material/ArrowBack";
+import { Icon } from "@app/ui/Icon";
import type { BaseToolProps } from "@app/types/tool";
import { useGroupSigningEnabled } from "@app/hooks/useGroupSigningEnabled";
import { useViewScopedFiles } from "@app/hooks/tools/shared/useViewScopedFiles";
@@ -166,7 +165,7 @@ const SharedSign = (_props: BaseToolProps) => {
<Button
variant="tertiary"
size="sm"
- leftSection={<ArrowBackIcon sx={{ fontSize: "1rem" }} />}
+ leftSection={<Icon name="arrow-left" size={"1rem"} />}
onClick={() => setShowCreate(false)}
>
{t("sharedSign.backToSessions", "Back to sessions")}
@@ -259,7 +258,7 @@ const SharedSign = (_props: BaseToolProps) => {
<Button
variant="tertiary"
- leftSection={<AddIcon sx={{ fontSize: "1.1rem" }} />}
+ leftSection={<Icon name="plus" size={"1.1rem"} />}
onClick={() => setShowCreate(true)}
>
{t("sharedSign.newRequest", "Request signatures")}
diff --git a/frontend/editor/src/core/tools/ShowJS.tsx b/frontend/editor/src/core/tools/ShowJS.tsx
index 7ed5b02e2c..915690e52a 100644
--- a/frontend/editor/src/core/tools/ShowJS.tsx
+++ b/frontend/editor/src/core/tools/ShowJS.tsx
@@ -1,6 +1,6 @@
import React, { useEffect, useMemo, useRef } from "react";
import { useTranslation } from "react-i18next";
-import CodeRoundedIcon from "@mui/icons-material/CodeRounded";
+import { Icon } from "@app/ui/Icon";
import { createToolFlow } from "@app/components/tools/shared/createToolFlow";
import { useBaseTool } from "@app/hooks/tools/shared/useBaseTool";
import type { BaseToolProps, ToolComponent } from "@app/types/tool";
@@ -34,7 +34,7 @@ const ShowJS = (props: BaseToolProps) => {
const VIEW_ID = "showJSView";
const WORKBENCH_ID = "custom:showJS" as const;
- const viewIcon = useMemo(() => <CodeRoundedIcon fontSize="small" />, []);
+ const viewIcon = useMemo(() => <Icon name="code" size={20} />, []);
const base = useBaseTool(
"showJS",
diff --git a/frontend/editor/src/core/tools/ValidateSignature.tsx b/frontend/editor/src/core/tools/ValidateSignature.tsx
index 5b62d8bd7a..7371b4e9fb 100644
--- a/frontend/editor/src/core/tools/ValidateSignature.tsx
+++ b/frontend/editor/src/core/tools/ValidateSignature.tsx
@@ -1,6 +1,6 @@
import { useEffect, useMemo, useRef } from "react";
import { useTranslation } from "react-i18next";
-import PictureAsPdfIcon from "@mui/icons-material/PictureAsPdf";
+import { Icon } from "@app/ui/Icon";
import { createToolFlow } from "@app/components/tools/shared/createToolFlow";
import { useBaseTool } from "@app/hooks/tools/shared/useBaseTool";
import { BaseToolProps, ToolComponent } from "@app/types/tool";
@@ -35,7 +35,7 @@ const ValidateSignature = (props: BaseToolProps) => {
const REPORT_VIEW_ID = "validateSignatureReport";
const REPORT_WORKBENCH_ID = "custom:validateSignatureReport" as const;
- const reportIcon = useMemo(() => <PictureAsPdfIcon fontSize="small" />, []);
+ const reportIcon = useMemo(() => <Icon name="file-pdf" size={20} />, []);
const base = useBaseTool(
"validateSignature",
diff --git a/frontend/editor/src/core/tools/formFill/FormFieldCreatePanel.tsx b/frontend/editor/src/core/tools/formFill/FormFieldCreatePanel.tsx
index d64226af53..353efbe35e 100644
--- a/frontend/editor/src/core/tools/formFill/FormFieldCreatePanel.tsx
+++ b/frontend/editor/src/core/tools/formFill/FormFieldCreatePanel.tsx
@@ -12,15 +12,12 @@ import {
import { Button } from "@app/ui/Button";
import { ActionIcon } from "@app/ui/ActionIcon";
import { useTranslation } from "react-i18next";
-import VisibilityOutlinedIcon from "@mui/icons-material/VisibilityOutlined";
-import DeleteOutlineIcon from "@mui/icons-material/DeleteOutlineRounded";
-import MyLocationIcon from "@mui/icons-material/MyLocation";
+import { Icon } from "@app/ui/Icon";
import { useViewer } from "@app/contexts/ViewerContext";
import {
pendingSelectionName,
pendingIdFrom,
} from "@app/tools/formFill/pendingSelection";
-import WarningAmberIcon from "@mui/icons-material/WarningAmber";
import { useFormFill } from "@app/tools/formFill/FormFillContext";
import {
CREATABLE_FIELD_TYPES,
@@ -151,7 +148,7 @@ export function FormFieldCreatePanel({
{error && (
<Alert
- icon={<WarningAmberIcon sx={{ fontSize: 16 }} />}
+ icon={<Icon name="triangle-alert" size={16} />}
color="red"
variant="light"
p="xs"
@@ -227,7 +224,7 @@ export function FormFieldCreatePanel({
}}
data-testid={`form-pending-goto-${pf.id}`}
>
- <MyLocationIcon sx={{ fontSize: 16 }} />
+ <Icon name="locate-fixed" size={16} />
</ActionIcon>
</Tooltip>
<Tooltip
@@ -248,7 +245,7 @@ export function FormFieldCreatePanel({
}}
data-testid={`form-pending-remove-${pf.id}`}
>
- <DeleteOutlineIcon sx={{ fontSize: 16 }} />
+ <Icon name="trash" size={16} />
</ActionIcon>
</Tooltip>
</Group>
@@ -302,7 +299,7 @@ export function FormFieldCreatePanel({
onPointerLeave={() => setPreviewing(false)}
onPointerCancel={() => setPreviewing(false)}
onBlur={() => setPreviewing(false)}
- leftSection={<VisibilityOutlinedIcon fontSize="small" />}
+ leftSection={<Icon name="eye" size={20} />}
>
{t("formFill.create.preview", "Hold to preview")}
</Button>
diff --git a/frontend/editor/src/core/tools/formFill/FormFieldModifyPanel.tsx b/frontend/editor/src/core/tools/formFill/FormFieldModifyPanel.tsx
index c35f24d7a7..a841024353 100644
--- a/frontend/editor/src/core/tools/formFill/FormFieldModifyPanel.tsx
+++ b/frontend/editor/src/core/tools/formFill/FormFieldModifyPanel.tsx
@@ -19,11 +19,7 @@ import {
import { Button } from "@app/ui/Button";
import { ActionIcon } from "@app/ui/ActionIcon";
import { useTranslation } from "react-i18next";
-import DeleteOutlineIcon from "@mui/icons-material/DeleteOutlineRounded";
-import RestoreIcon from "@mui/icons-material/Restore";
-import MyLocationIcon from "@mui/icons-material/MyLocation";
-import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
-import WarningAmberIcon from "@mui/icons-material/WarningAmber";
+import { Icon } from "@app/ui/Icon";
import { useViewer } from "@app/contexts/ViewerContext";
import { useFormFill } from "@app/tools/formFill/FormFillContext";
import type {
@@ -197,7 +193,7 @@ export function FormFieldModifyPanel({
{error && (
<Alert
- icon={<WarningAmberIcon sx={{ fontSize: 16 }} />}
+ icon={<Icon name="triangle-alert" size={16} />}
color="red"
variant="light"
p="xs"
@@ -232,9 +228,10 @@ export function FormFieldModifyPanel({
onClick={() => togglePage(pageIdx)}
data-testid={`form-page-header-${pageIdx}`}
>
- <ExpandMoreIcon
- sx={{
- fontSize: 16,
+ <Icon
+ name="chevron-down"
+ size={16}
+ style={{
transform: collapsedPages.has(pageIdx)
? "rotate(-90deg)"
: undefined,
@@ -261,7 +258,7 @@ export function FormFieldModifyPanel({
scrollActions.scrollToPage(pageIdx + 1);
}}
>
- <MyLocationIcon sx={{ fontSize: 15 }} />
+ <Icon name="locate-fixed" size={15} />
</ActionIcon>
</Tooltip>
</div>
@@ -337,9 +334,9 @@ export function FormFieldModifyPanel({
data-testid={`form-modify-delete-${field.name}`}
>
{deleted ? (
- <RestoreIcon sx={{ fontSize: 16 }} />
+ <Icon name="rotate-ccw-clock" size={16} />
) : (
- <DeleteOutlineIcon sx={{ fontSize: 16 }} />
+ <Icon name="trash" size={16} />
)}
</ActionIcon>
</Tooltip>
diff --git a/frontend/editor/src/core/tools/formFill/FormFieldPropertyEditor.tsx b/frontend/editor/src/core/tools/formFill/FormFieldPropertyEditor.tsx
index d6df2d4b43..a0f0d0b552 100644
--- a/frontend/editor/src/core/tools/formFill/FormFieldPropertyEditor.tsx
+++ b/frontend/editor/src/core/tools/formFill/FormFieldPropertyEditor.tsx
@@ -16,10 +16,7 @@ import {
import { Button } from "@app/ui/Button";
import { ActionIcon } from "@app/ui/ActionIcon";
import { useTranslation } from "react-i18next";
-import AddIcon from "@mui/icons-material/Add";
-import DeleteOutlineIcon from "@mui/icons-material/DeleteOutlineRounded";
-import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
-
+import { Icon } from "@app/ui/Icon";
/** A switch's help has to wrap the control: Mantine does not surface a tooltip from its label. */
function SwitchWithHelp({
help,
@@ -168,7 +165,7 @@ export function FormFieldPropertyEditor({
variant="light"
p="xs"
radius="sm"
- icon={<InfoOutlinedIcon sx={{ fontSize: 16 }} />}
+ icon={<Icon name="info" size={16} />}
>
<Text size="xs">
{t(
@@ -284,14 +281,14 @@ export function FormFieldPropertyEditor({
aria-label={t("formFill.editor.removeOption", "Remove option")}
onClick={() => removeOption(i)}
>
- <DeleteOutlineIcon sx={{ fontSize: 16 }} />
+ <Icon name="trash" size={16} />
</ActionIcon>
</Group>
))}
<Button
size="sm"
variant="tertiary"
- leftSection={<AddIcon sx={{ fontSize: 14 }} />}
+ leftSection={<Icon name="plus" size={14} />}
onClick={addOption}
>
{t("formFill.editor.addOption", "Add option")}
diff --git a/frontend/editor/src/core/tools/formFill/FormFieldSidebar.tsx b/frontend/editor/src/core/tools/formFill/FormFieldSidebar.tsx
index d348c5c241..8c05faee22 100644
--- a/frontend/editor/src/core/tools/formFill/FormFieldSidebar.tsx
+++ b/frontend/editor/src/core/tools/formFill/FormFieldSidebar.tsx
@@ -18,8 +18,7 @@ import {
FIELD_TYPE_COLOR,
} from "@app/tools/formFill/fieldMeta";
import type { FormField } from "@app/tools/formFill/types";
-import CloseIcon from "@mui/icons-material/Close";
-import TextFieldsIcon from "@mui/icons-material/TextFields";
+import { Icon } from "@app/ui/Icon";
import styles from "@app/tools/formFill/FormFill.module.css";
interface FormFieldSidebarProps {
@@ -101,7 +100,7 @@ export function FormFieldSidebar({ visible, onToggle }: FormFieldSidebarProps) {
}}
>
<div style={{ display: "flex", alignItems: "center", gap: "0.5rem" }}>
- <TextFieldsIcon sx={{ fontSize: 18, opacity: 0.7 }} />
+ <Icon name="type" size={18} style={{ opacity: 0.7 }} />
<Text fw={600} size="sm">
Form Fields
</Text>
@@ -115,7 +114,7 @@ export function FormFieldSidebar({ visible, onToggle }: FormFieldSidebarProps) {
onClick={onToggle}
aria-label={t("formFill.sidebar.close", "Close sidebar")}
>
- <CloseIcon sx={{ fontSize: 16 }} />
+ <Icon name="x" size={16} />
</ActionIcon>
</div>
diff --git a/frontend/editor/src/core/tools/formFill/FormFill.module.css b/frontend/editor/src/core/tools/formFill/FormFill.module.css
index d13ea4b27c..0373a73ff8 100644
--- a/frontend/editor/src/core/tools/formFill/FormFill.module.css
+++ b/frontend/editor/src/core/tools/formFill/FormFill.module.css
@@ -70,7 +70,6 @@
}
.modeTabIcon {
- font-size: 1rem !important;
flex-shrink: 0;
}
@@ -271,7 +270,6 @@
}
.emptyStateIcon {
- font-size: 2.5rem !important;
opacity: 0.2;
}
diff --git a/frontend/editor/src/core/tools/formFill/FormFill.tsx b/frontend/editor/src/core/tools/formFill/FormFill.tsx
index 8cd560b247..20e5ac8f88 100644
--- a/frontend/editor/src/core/tools/formFill/FormFill.tsx
+++ b/frontend/editor/src/core/tools/formFill/FormFill.tsx
@@ -41,14 +41,7 @@ import {
FIELD_TYPE_ICON,
FIELD_TYPE_COLOR,
} from "@app/tools/formFill/fieldMeta";
-import SaveIcon from "@mui/icons-material/Save";
-import RefreshIcon from "@mui/icons-material/Refresh";
-import WarningAmberIcon from "@mui/icons-material/WarningAmber";
-import EditNoteIcon from "@mui/icons-material/EditNote";
-import PostAddIcon from "@mui/icons-material/PostAdd";
-import BuildCircleIcon from "@mui/icons-material/BuildCircle";
-import DescriptionIcon from "@mui/icons-material/Description";
-import FileDownloadIcon from "@mui/icons-material/FileDownload";
+import { Icon } from "@app/ui/Icon";
import {
extractFormFieldsCsv,
extractFormFieldsXlsx,
@@ -106,17 +99,21 @@ const FormFill = (_props: BaseToolProps) => {
{
id: "fill",
label: t("formFill.mode.fill", "Fill"),
- icon: <EditNoteIcon className={styles.modeTabIcon} />,
+ icon: (
+ <Icon name="file-pen" size="1rem" className={styles.modeTabIcon} />
+ ),
},
{
id: "create",
label: t("formFill.mode.create", "Create"),
- icon: <PostAddIcon className={styles.modeTabIcon} />,
+ icon: (
+ <Icon name="file-plus" size="1rem" className={styles.modeTabIcon} />
+ ),
},
{
id: "modify",
label: t("formFill.mode.modify", "Modify"),
- icon: <BuildCircleIcon className={styles.modeTabIcon} />,
+ icon: <Icon name="wrench" size="1rem" className={styles.modeTabIcon} />,
},
],
[t],
@@ -543,7 +540,7 @@ const FormFill = (_props: BaseToolProps) => {
{/* Error state */}
{formState.error && (
<Alert
- icon={<WarningAmberIcon sx={{ fontSize: 16 }} />}
+ icon={<Icon name="triangle-alert" size={16} />}
color="red"
variant="light"
p="xs"
@@ -609,7 +606,7 @@ const FormFill = (_props: BaseToolProps) => {
<div className={styles.actionBar}>
<div className={styles.primaryActions}>
<Button
- leftSection={<SaveIcon sx={{ fontSize: 14 }} />}
+ leftSection={<Icon name="save" size={14} />}
size="sm"
onClick={handleSave}
loading={saving}
@@ -632,7 +629,7 @@ const FormFill = (_props: BaseToolProps) => {
"Re-scan form fields",
)}
>
- <RefreshIcon sx={{ fontSize: 16 }} />
+ <Icon name="refresh-cw" size={16} />
</ActionIcon>
</Tooltip>
</div>
@@ -640,7 +637,7 @@ const FormFill = (_props: BaseToolProps) => {
<div className={styles.secondaryActions}>
<Button
variant="secondary"
- leftSection={<FileDownloadIcon sx={{ fontSize: 14 }} />}
+ leftSection={<Icon name="download" size={14} />}
loading={extracting}
onClick={handleExtractJson}
size="sm"
@@ -650,7 +647,7 @@ const FormFill = (_props: BaseToolProps) => {
<Button
variant="secondary"
- leftSection={<FileDownloadIcon sx={{ fontSize: 14 }} />}
+ leftSection={<Icon name="download" size={14} />}
loading={extracting}
onClick={handleExtractCsv}
size="sm"
@@ -660,7 +657,7 @@ const FormFill = (_props: BaseToolProps) => {
<Button
variant="secondary"
- leftSection={<FileDownloadIcon sx={{ fontSize: 14 }} />}
+ leftSection={<Icon name="download" size={14} />}
loading={extracting}
onClick={handleExtractXlsx}
size="sm"
@@ -684,7 +681,11 @@ const FormFill = (_props: BaseToolProps) => {
formState.fields.length === 0 &&
!formState.error && (
<div className={styles.emptyState}>
- <DescriptionIcon className={styles.emptyStateIcon} />
+ <Icon
+ name="file-text"
+ size="2.5rem"
+ className={styles.emptyStateIcon}
+ />
<span className={styles.emptyStateText}>
{t(
"formFill.noFields",
diff --git a/frontend/editor/src/core/tools/formFill/FormSaveBar.tsx b/frontend/editor/src/core/tools/formFill/FormSaveBar.tsx
index 1724d5e1ea..6f9eb9913d 100644
--- a/frontend/editor/src/core/tools/formFill/FormSaveBar.tsx
+++ b/frontend/editor/src/core/tools/formFill/FormSaveBar.tsx
@@ -14,10 +14,7 @@ import { Stack, Group, Text, Transition, Paper, Badge } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { ActionIcon } from "@app/ui/ActionIcon";
import { useTranslation } from "react-i18next";
-import DownloadIcon from "@mui/icons-material/Download";
-import SaveIcon from "@mui/icons-material/Save";
-import EditNoteIcon from "@mui/icons-material/EditNote";
-import CloseIcon from "@mui/icons-material/Close";
+import { Icon } from "@app/ui/Icon";
import { useFormFill } from "@app/tools/formFill/FormFillContext";
import { downloadFileWithPolicy } from "@app/services/exportWithPolicy";
@@ -127,9 +124,10 @@ export function FormSaveBar({
<Stack gap="xs" p="md">
<Group justify="space-between" wrap="nowrap">
<Group gap="sm" wrap="nowrap">
- <EditNoteIcon
- sx={{
- fontSize: 24,
+ <Icon
+ name="file-pen"
+ size={24}
+ style={{
color: isDirty
? "var(--mantine-color-blue-6)"
: "var(--mantine-color-gray-6)",
@@ -165,7 +163,7 @@ export function FormSaveBar({
onClick={() => setDismissed(true)}
aria-label={t("viewer.formBar.dismiss", "Dismiss")}
>
- <CloseIcon sx={{ fontSize: 16 }} />
+ <Icon name="x" size={16} />
</ActionIcon>
</Group>
@@ -174,7 +172,7 @@ export function FormSaveBar({
<Button
size="sm"
variant="secondary"
- leftSection={<SaveIcon sx={{ fontSize: 18 }} />}
+ leftSection={<Icon name="save" size={18} />}
loading={applying}
disabled={saving}
onClick={handleApply}
@@ -184,7 +182,7 @@ export function FormSaveBar({
</Button>
<Button
size="sm"
- leftSection={<DownloadIcon sx={{ fontSize: 18 }} />}
+ leftSection={<Icon name="download" size={18} />}
loading={saving}
disabled={applying || policyEnforcing}
onClick={handleDownload}
diff --git a/frontend/editor/src/core/tools/formFill/SkippedEditsAlert.tsx b/frontend/editor/src/core/tools/formFill/SkippedEditsAlert.tsx
index ae7ac1fca2..b10b5f2184 100644
--- a/frontend/editor/src/core/tools/formFill/SkippedEditsAlert.tsx
+++ b/frontend/editor/src/core/tools/formFill/SkippedEditsAlert.tsx
@@ -3,7 +3,7 @@
* PDF itself, so partial failures arrive in a response header, not the body.
*/
import { Alert, List, Text } from "@mantine/core";
-import WarningAmberIcon from "@mui/icons-material/WarningAmber";
+import { Icon } from "@app/ui/Icon";
import { useTranslation } from "react-i18next";
import { useFormFill } from "@app/tools/formFill/FormFillContext";
@@ -15,7 +15,7 @@ export function SkippedEditsAlert() {
return (
<Alert
- icon={<WarningAmberIcon sx={{ fontSize: 16 }} />}
+ icon={<Icon name="triangle-alert" size={16} />}
color="yellow"
variant="light"
p="xs"
diff --git a/frontend/editor/src/core/tools/formFill/fieldMeta.tsx b/frontend/editor/src/core/tools/formFill/fieldMeta.tsx
index 65daef37fa..432f556abe 100644
--- a/frontend/editor/src/core/tools/formFill/fieldMeta.tsx
+++ b/frontend/editor/src/core/tools/formFill/fieldMeta.tsx
@@ -4,21 +4,15 @@
*/
import React from "react";
import type { FormFieldType } from "@app/tools/formFill/types";
-import TextFieldsIcon from "@mui/icons-material/TextFields";
-import CheckBoxIcon from "@mui/icons-material/CheckBox";
-import ArrowDropDownCircleIcon from "@mui/icons-material/ArrowDropDownCircle";
-import RadioButtonCheckedIcon from "@mui/icons-material/RadioButtonChecked";
-import ListIcon from "@mui/icons-material/List";
-import DrawIcon from "@mui/icons-material/Draw";
-
+import { Icon } from "@app/ui/Icon";
export const FIELD_TYPE_ICON: Record<FormFieldType, React.ReactNode> = {
- text: <TextFieldsIcon sx={{ fontSize: "inherit" }} />,
- checkbox: <CheckBoxIcon sx={{ fontSize: "inherit" }} />,
- combobox: <ArrowDropDownCircleIcon sx={{ fontSize: "inherit" }} />,
- listbox: <ListIcon sx={{ fontSize: "inherit" }} />,
- radio: <RadioButtonCheckedIcon sx={{ fontSize: "inherit" }} />,
- button: <DrawIcon sx={{ fontSize: "inherit" }} />,
- signature: <DrawIcon sx={{ fontSize: "inherit" }} />,
+ text: <Icon name="type" size={"inherit"} />,
+ checkbox: <Icon name="square-check" size={"inherit"} />,
+ combobox: <Icon name="circle-chevron-down" size={"inherit"} />,
+ listbox: <Icon name="list" size={"inherit"} />,
+ radio: <Icon name="radio-checked" size={"inherit"} />,
+ button: <Icon name="pen-tool" size={"inherit"} />,
+ signature: <Icon name="pen-tool" size={"inherit"} />,
};
export const FIELD_TYPE_COLOR: Record<FormFieldType, string> = {
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/PdfTextEditor.tsx b/frontend/editor/src/core/tools/pdfTextEditor/PdfTextEditor.tsx
index 4aebf92fed..06282426d1 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/PdfTextEditor.tsx
+++ b/frontend/editor/src/core/tools/pdfTextEditor/PdfTextEditor.tsx
@@ -5,7 +5,7 @@ import {
import { useCallback, useEffect, useRef, useState } from "react";
import { Alert, Stack } from "@mantine/core";
import { useTranslation } from "react-i18next";
-import DescriptionIcon from "@mui/icons-material/DescriptionOutlined";
+import { Icon } from "@app/ui/Icon";
import { downloadFile } from "@app/services/downloadService";
import { useFileContext, useFileSelection } from "@app/contexts/FileContext";
import { createStirlingFilesAndStubs } from "@app/services/fileStubHelpers";
@@ -84,7 +84,7 @@ export default function PdfTextEditor(_props: BaseToolProps) {
workbenchId: WORKBENCH_ID,
workbenchViewId: WORKBENCH_VIEW_ID,
label: t("pdfTextEditor.workbenchLabel", "Editor"),
- icon: <DescriptionIcon fontSize="small" />,
+ icon: <Icon name="file-text" size={20} />,
component: PageStage,
});
// Uploading flips the workbench to Active Files, so landing a document has to
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/components/EditorFileSwitcher.tsx b/frontend/editor/src/core/tools/pdfTextEditor/components/EditorFileSwitcher.tsx
index d4f5bc755e..be1ecc4192 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/components/EditorFileSwitcher.tsx
+++ b/frontend/editor/src/core/tools/pdfTextEditor/components/EditorFileSwitcher.tsx
@@ -1,8 +1,6 @@
import { Menu, Text, Tooltip } from "@mantine/core";
import { useTranslation } from "react-i18next";
-import DescriptionIcon from "@mui/icons-material/DescriptionOutlined";
-import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
-import CheckIcon from "@mui/icons-material/Check";
+import { Icon } from "@app/ui/Icon";
import { Button } from "@app/ui/Button";
import { useAllFiles } from "@app/contexts/FileContext";
import type { FileId } from "@app/types/file";
@@ -27,7 +25,7 @@ export function EditorFileSwitcher({
const pdfs = files.filter((f) => /\.pdf$/i.test(f.name));
const label = (
<span className="pdf-editor-topbar__file">
- <DescriptionIcon fontSize="small" style={{ flexShrink: 0 }} />
+ <Icon name="file-text" size={20} style={{ flexShrink: 0 }} />
<span className="pdf-editor-topbar__filename">{currentFileName}</span>
{dirty && (
<span
@@ -62,7 +60,7 @@ export function EditorFileSwitcher({
size="sm"
variant="tertiary"
accent="neutral"
- rightSection={<ExpandMoreIcon fontSize="small" />}
+ rightSection={<Icon name="chevron-down" size={20} />}
data-testid="pdf-editor-file-switcher"
title={currentFileName}
>
@@ -81,9 +79,9 @@ export function EditorFileSwitcher({
key={fileId ?? file.name}
leftSection={
current ? (
- <CheckIcon fontSize="small" />
+ <Icon name="check" size={20} />
) : (
- <DescriptionIcon fontSize="small" />
+ <Icon name="file-text" size={20} />
)
}
disabled={fileId == null}
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/components/EditorPanelActions.tsx b/frontend/editor/src/core/tools/pdfTextEditor/components/EditorPanelActions.tsx
index d755f18c05..0a934e6fd2 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/components/EditorPanelActions.tsx
+++ b/frontend/editor/src/core/tools/pdfTextEditor/components/EditorPanelActions.tsx
@@ -1,9 +1,7 @@
import { Box, Group, Tooltip } from "@mantine/core";
+import { Icon } from "@app/ui/Icon";
import { useTranslation } from "react-i18next";
import { Button } from "@app/ui/Button";
-import DownloadIcon from "@mui/icons-material/FileDownloadOutlined";
-import SearchIcon from "@mui/icons-material/SearchOutlined";
-import HelpIcon from "@mui/icons-material/HelpOutlineOutlined";
import { EditorFileSwitcher } from "@app/tools/pdfTextEditor/components/EditorFileSwitcher";
import type { FileId } from "@app/types/file";
import { modShortcut } from "@app/utils/hotkeys";
@@ -85,7 +83,7 @@ export function EditorPanelActions({
onClick={onDownload}
data-testid="pdf-editor-download"
aria-label={t("pdfTextEditor.download", "Download")}
- leftSection={<DownloadIcon fontSize="small" />}
+ leftSection={<Icon name="download" size={20} />}
/>
</Tooltip>
{compact && (
@@ -103,7 +101,7 @@ export function EditorPanelActions({
"pdfTextEditor.settings.find",
"Find in document",
)}
- leftSection={<SearchIcon fontSize="small" />}
+ leftSection={<Icon name="search" size={20} />}
/>
</Tooltip>
<Tooltip
@@ -119,7 +117,7 @@ export function EditorPanelActions({
"pdfTextEditor.help.ariaLabel",
"Keyboard shortcuts",
)}
- leftSection={<HelpIcon fontSize="small" />}
+ leftSection={<Icon name="circle-question-mark" size={20} />}
/>
</Tooltip>
</>
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/components/EditorSidebar.tsx b/frontend/editor/src/core/tools/pdfTextEditor/components/EditorSidebar.tsx
index b75c7acd79..68e7af645e 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/components/EditorSidebar.tsx
+++ b/frontend/editor/src/core/tools/pdfTextEditor/components/EditorSidebar.tsx
@@ -1,7 +1,7 @@
import { useEffect, useMemo, useState } from "react";
import { Box, Center, Group, Stack, Tabs, Text } from "@mantine/core";
import { useTranslation } from "react-i18next";
-import HighlightAltIcon from "@mui/icons-material/HighlightAltOutlined";
+import { Icon } from "@app/ui/Icon";
import { useToolbarController } from "@app/tools/pdfTextEditor/hooks/useToolbarController";
import { useSelectionGeometry } from "@app/tools/pdfTextEditor/hooks/useSelectionGeometry";
import { DocumentInspector } from "@app/tools/pdfTextEditor/components/inspector/DocumentInspector";
@@ -138,12 +138,10 @@ function NothingSelected() {
return (
<Center p="xl" data-testid="pdf-editor-nothing-selected">
<Stack align="center" gap={6}>
- <HighlightAltIcon
- style={{
- fontSize: 34,
- color: "var(--mantine-color-dimmed)",
- opacity: 0.5,
- }}
+ <Icon
+ name="square-dashed"
+ size={34}
+ style={{ color: "var(--mantine-color-dimmed)", opacity: 0.5 }}
/>
<Text size="sm" fw={500} c="dimmed">
{t("pdfTextEditor.inspector.nothingSelected", "Nothing selected")}
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/components/EditorTopBar.tsx b/frontend/editor/src/core/tools/pdfTextEditor/components/EditorTopBar.tsx
index 312b3c7fe2..3bef5d01cf 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/components/EditorTopBar.tsx
+++ b/frontend/editor/src/core/tools/pdfTextEditor/components/EditorTopBar.tsx
@@ -1,14 +1,7 @@
import { useRef } from "react";
+import { Icon } from "@app/ui/Icon";
import { Group, Menu, Popover, Text, Tooltip } from "@mantine/core";
import { useTranslation } from "react-i18next";
-import UndoIcon from "@mui/icons-material/Undo";
-import RedoIcon from "@mui/icons-material/Redo";
-import TextFieldsIcon from "@mui/icons-material/TextFieldsOutlined";
-import ImageIcon from "@mui/icons-material/ImageOutlined";
-import SearchIcon from "@mui/icons-material/SearchOutlined";
-import HelpIcon from "@mui/icons-material/HelpOutlineOutlined";
-import MoreVertIcon from "@mui/icons-material/MoreVert";
-import TextFormatIcon from "@mui/icons-material/TextFormat";
import { Button } from "@app/ui/Button";
import { EditorFileSwitcher } from "@app/tools/pdfTextEditor/components/EditorFileSwitcher";
import { FormatGroup } from "@app/tools/pdfTextEditor/components/toolbar/FormatGroup";
@@ -99,7 +92,7 @@ export function EditorTopBar({
aria-label={t("pdfTextEditor.toolbar.undo", "Undo")}
data-testid="pdf-editor-undo"
style={NO_SHRINK}
- leftSection={<UndoIcon fontSize="small" />}
+ leftSection={<Icon name="undo-2" size={20} />}
/>
</Tooltip>
<Tooltip
@@ -117,7 +110,7 @@ export function EditorTopBar({
aria-label={t("pdfTextEditor.toolbar.redo", "Redo")}
data-testid="pdf-editor-redo"
style={NO_SHRINK}
- leftSection={<RedoIcon fontSize="small" />}
+ leftSection={<Icon name="redo-2" size={20} />}
/>
</Tooltip>
@@ -133,19 +126,19 @@ export function EditorTopBar({
aria-label={t("pdfTextEditor.toolbar.more", "More actions")}
data-testid="pdf-editor-overflow-menu"
style={NO_SHRINK}
- leftSection={<MoreVertIcon fontSize="small" />}
+ leftSection={<Icon name="ellipsis-vertical" size={20} />}
/>
</Menu.Target>
<Menu.Dropdown>
<Menu.Item
- leftSection={<TextFieldsIcon fontSize="small" />}
+ leftSection={<Icon name="type" size={20} />}
onClick={onToggleAddText}
data-testid="pdf-editor-add-text"
>
{addTextLabel}
</Menu.Item>
<Menu.Item
- leftSection={<ImageIcon fontSize="small" />}
+ leftSection={<Icon name="image" size={20} />}
onClick={() => session?.pickImage()}
disabled={!session}
data-testid="pdf-editor-add-image"
@@ -154,14 +147,14 @@ export function EditorTopBar({
</Menu.Item>
<Menu.Divider />
<Menu.Item
- leftSection={<SearchIcon fontSize="small" />}
+ leftSection={<Icon name="search" size={20} />}
onClick={onToggleFind}
data-testid="pdf-editor-open-find"
>
{findLabel}
</Menu.Item>
<Menu.Item
- leftSection={<HelpIcon fontSize="small" />}
+ leftSection={<Icon name="circle-question-mark" size={20} />}
onClick={onShowHelp}
data-testid="pdf-editor-help"
>
@@ -181,7 +174,7 @@ export function EditorTopBar({
size="sm"
variant={addTextArmed ? "primary" : "tertiary"}
accent={addTextArmed ? "default" : "neutral"}
- leftSection={<TextFieldsIcon fontSize="small" />}
+ leftSection={<Icon name="type" size={20} />}
onClick={onToggleAddText}
data-testid="pdf-editor-add-text"
style={NO_SHRINK}
@@ -199,7 +192,7 @@ export function EditorTopBar({
size="sm"
variant="tertiary"
accent="neutral"
- leftSection={<ImageIcon fontSize="small" />}
+ leftSection={<Icon name="image" size={20} />}
onClick={() => session?.pickImage()}
disabled={!session}
aria-label={t("pdfTextEditor.sidebar.addImage", "Add image")}
@@ -225,7 +218,7 @@ export function EditorTopBar({
)}
data-testid="pdf-editor-open-find"
style={NO_SHRINK}
- leftSection={<SearchIcon fontSize="small" />}
+ leftSection={<Icon name="search" size={20} />}
/>
</Tooltip>
</>
@@ -247,7 +240,7 @@ export function EditorTopBar({
)}
data-testid="pdf-editor-format-menu"
style={NO_SHRINK}
- leftSection={<TextFormatIcon fontSize="small" />}
+ leftSection={<Icon name="case-sensitive" size={20} />}
/>
</Popover.Target>
<Popover.Dropdown>
@@ -282,7 +275,7 @@ export function EditorTopBar({
)}
data-testid="pdf-editor-help"
style={NO_SHRINK}
- leftSection={<HelpIcon fontSize="small" />}
+ leftSection={<Icon name="circle-question-mark" size={20} />}
/>
</Tooltip>
)}
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/components/FindBar.tsx b/frontend/editor/src/core/tools/pdfTextEditor/components/FindBar.tsx
index 8039286e56..85db89f71d 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/components/FindBar.tsx
+++ b/frontend/editor/src/core/tools/pdfTextEditor/components/FindBar.tsx
@@ -2,9 +2,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { TextInput, Tooltip } from "@mantine/core";
import { Button } from "@app/ui/Button";
import { useTranslation } from "react-i18next";
-import CloseIcon from "@mui/icons-material/Close";
-import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp";
-import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
+import { Icon } from "@app/ui/Icon";
import "@app/tools/pdfTextEditor/components/FindBar.css";
import { EditTextCommand } from "@app/tools/pdfTextEditor/commands/EditTextCommand";
import { CompositeCommand } from "@app/tools/pdfTextEditor/commands/CompositeCommand";
@@ -305,7 +303,7 @@ export function FindBar({ store, pages, onClose }: FindBarProps) {
disabled={matches.length === 0}
aria-label={t("pdfTextEditor.find.previous", "Previous match")}
data-testid="pdf-editor-find-prev"
- leftSection={<KeyboardArrowUpIcon fontSize="small" />}
+ leftSection={<Icon name="chevron-up" size={20} />}
/>
</Tooltip>
<Tooltip label={t("pdfTextEditor.find.next", "Next match")}>
@@ -317,7 +315,7 @@ export function FindBar({ store, pages, onClose }: FindBarProps) {
disabled={matches.length === 0}
aria-label={t("pdfTextEditor.find.next", "Next match")}
data-testid="pdf-editor-find-next"
- leftSection={<KeyboardArrowDownIcon fontSize="small" />}
+ leftSection={<Icon name="chevron-down" size={20} />}
/>
</Tooltip>
</div>
@@ -392,7 +390,7 @@ export function FindBar({ store, pages, onClose }: FindBarProps) {
onClick={onClose}
aria-label={t("pdfTextEditor.find.close", "Close find bar")}
data-testid="pdf-editor-find-close"
- leftSection={<CloseIcon fontSize="small" />}
+ leftSection={<Icon name="x" size={20} />}
/>
</Tooltip>
</div>
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/components/FontFamilySelect.tsx b/frontend/editor/src/core/tools/pdfTextEditor/components/FontFamilySelect.tsx
index a29e1738a6..c523269c25 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/components/FontFamilySelect.tsx
+++ b/frontend/editor/src/core/tools/pdfTextEditor/components/FontFamilySelect.tsx
@@ -3,7 +3,7 @@ import { Group, Select, Text, Tooltip } from "@mantine/core";
import type { ComboboxData, ComboboxItemGroup } from "@mantine/core";
import { useTranslation } from "react-i18next";
import { Button } from "@app/ui/Button";
-import FontDownloadIcon from "@mui/icons-material/FontDownloadOutlined";
+import { Icon } from "@app/ui/Icon";
import {
groupByFamily,
isLocalFontAccessSupported,
@@ -177,7 +177,7 @@ export function FontFamilySelect({
"Use device fonts",
)}
data-testid="pdf-editor-use-device-fonts"
- leftSection={<FontDownloadIcon fontSize="small" />}
+ leftSection={<Icon name="case-sensitive" size={20} />}
/>
</Tooltip>
)}
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/DocumentInspector.tsx b/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/DocumentInspector.tsx
index db81a9ec6e..13a4b62c84 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/DocumentInspector.tsx
+++ b/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/DocumentInspector.tsx
@@ -2,8 +2,7 @@ import { useState } from "react";
import { Badge, Collapse, Group, Stack, Text, Tooltip } from "@mantine/core";
import { useTranslation } from "react-i18next";
import { Button } from "@app/ui/Button";
-import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
-import ChevronRightIcon from "@mui/icons-material/ChevronRight";
+import { Icon } from "@app/ui/Icon";
import {
Section,
SectionLabel,
@@ -134,9 +133,9 @@ function FontsSection({ pages }: { pages: PageSnapshot[] }) {
data-testid="pdf-editor-fonts-toggle"
rightSection={
expanded ? (
- <ExpandMoreIcon fontSize="small" />
+ <Icon name="chevron-down" size={20} />
) : (
- <ChevronRightIcon fontSize="small" />
+ <Icon name="chevron-right" size={20} />
)
}
>
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/DocumentSettings.tsx b/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/DocumentSettings.tsx
index 3aa6f9e55c..3d7f9f5b2b 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/DocumentSettings.tsx
+++ b/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/DocumentSettings.tsx
@@ -4,8 +4,7 @@ import { useTranslation } from "react-i18next";
import { Button } from "@app/ui/Button";
import { SegmentedControl } from "@app/ui/SegmentedControl";
import { ToggleSwitch } from "@app/ui/ToggleSwitch";
-import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
-import ChevronRightIcon from "@mui/icons-material/ChevronRight";
+import { Icon } from "@app/ui/Icon";
import { SpellcheckControl } from "@app/tools/pdfTextEditor/components/SpellcheckControl";
import {
Section,
@@ -76,9 +75,9 @@ export function DocumentSettings({
data-testid="pdf-editor-advanced-toggle"
rightSection={
advancedOpen ? (
- <ExpandMoreIcon fontSize="small" />
+ <Icon name="chevron-down" size={20} />
) : (
- <ChevronRightIcon fontSize="small" />
+ <Icon name="chevron-right" size={20} />
)
}
>
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/InspectorPrimitives.tsx b/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/InspectorPrimitives.tsx
index 0cbaba11ff..4a2b6592e3 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/InspectorPrimitives.tsx
+++ b/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/InspectorPrimitives.tsx
@@ -1,7 +1,6 @@
import type { ReactNode } from "react";
import { Box, Group, NumberInput, Stack, Text, Tooltip } from "@mantine/core";
-import HelpIcon from "@mui/icons-material/HelpOutlineOutlined";
-
+import { Icon } from "@app/ui/Icon";
/** Shared layout atoms for the editor's properties inspector. */
/** Uppercase section heading, optionally with a trailing control. */
@@ -85,10 +84,10 @@ export function Field({
export function HintIcon({ label }: { label: string }) {
return (
<Tooltip label={label} multiline w={220} withArrow position="left">
- <HelpIcon
- fontSize="inherit"
+ <Icon
+ name="circle-question-mark"
+ size="1em"
style={{
- fontSize: 13,
cursor: "help",
color: "var(--mantine-color-dimmed)",
flexShrink: 0,
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/SelectionInspector.tsx b/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/SelectionInspector.tsx
index 864ae1f065..0041f13d9b 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/SelectionInspector.tsx
+++ b/frontend/editor/src/core/tools/pdfTextEditor/components/inspector/SelectionInspector.tsx
@@ -2,13 +2,7 @@ import { useMemo } from "react";
import { Group, Stack, Text, Tooltip } from "@mantine/core";
import { useTranslation } from "react-i18next";
import { Button } from "@app/ui/Button";
-import ImageIcon from "@mui/icons-material/ImageOutlined";
-import CallMergeIcon from "@mui/icons-material/CallMergeOutlined";
-import CallSplitIcon from "@mui/icons-material/CallSplitOutlined";
-import RotateLeftIcon from "@mui/icons-material/RotateLeftOutlined";
-import RotateRightIcon from "@mui/icons-material/RotateRightOutlined";
-import FlipIcon from "@mui/icons-material/FlipOutlined";
-import OpenInNewIcon from "@mui/icons-material/OpenInNewOutlined";
+import { Icon } from "@app/ui/Icon";
import {
Field,
PointsInput,
@@ -166,7 +160,7 @@ function ParagraphSection({
size="sm"
variant="secondary"
accent="neutral"
- leftSection={<CallMergeIcon fontSize="small" />}
+ leftSection={<Icon name="merge" size={20} />}
onClick={onGroup}
disabled={!canGroup}
data-testid="pdf-editor-group"
@@ -191,7 +185,7 @@ function ParagraphSection({
size="sm"
variant="secondary"
accent="neutral"
- leftSection={<CallSplitIcon fontSize="small" />}
+ leftSection={<Icon name="split" size={20} />}
onClick={onUngroup}
disabled={!canUngroup}
data-testid="pdf-editor-ungroup"
@@ -319,26 +313,30 @@ function ImageSection({ controller }: { controller: InspectorController }) {
{
mode: "rotate-ccw" as const,
testId: "pdf-editor-imgop-rotate-ccw",
- icon: <RotateLeftIcon fontSize="small" />,
+ icon: <Icon name="rotate-ccw" size={20} />,
label: t("pdfTextEditor.toolbar.rotateLeft", "Rotate 90° left"),
},
{
mode: "rotate-cw" as const,
testId: "pdf-editor-imgop-rotate-cw",
- icon: <RotateRightIcon fontSize="small" />,
+ icon: <Icon name="rotate-cw" size={20} />,
label: t("pdfTextEditor.toolbar.rotateRight", "Rotate 90° right"),
},
{
mode: "flip-h" as const,
testId: "pdf-editor-imgop-flip-h",
- icon: <FlipIcon fontSize="small" />,
+ icon: <Icon name="flip-horizontal-2" size={20} />,
label: t("pdfTextEditor.toolbar.flipHorizontal", "Flip horizontal"),
},
{
mode: "flip-v" as const,
testId: "pdf-editor-imgop-flip-v",
icon: (
- <FlipIcon fontSize="small" style={{ transform: "rotate(90deg)" }} />
+ <Icon
+ name="flip-horizontal-2"
+ size={20}
+ style={{ transform: "rotate(90deg)" }}
+ />
),
label: t("pdfTextEditor.toolbar.flipVertical", "Flip vertical"),
},
@@ -371,7 +369,7 @@ function ImageSection({ controller }: { controller: InspectorController }) {
accent="neutral"
fullWidth
justify="start"
- leftSection={<ImageIcon fontSize="small" />}
+ leftSection={<Icon name="image" size={20} />}
onClick={onReplaceImage}
data-testid="pdf-editor-imgop-replace"
>
@@ -386,7 +384,7 @@ function ImageSection({ controller }: { controller: InspectorController }) {
accent="neutral"
fullWidth
justify="start"
- leftSection={<OpenInNewIcon fontSize="small" />}
+ leftSection={<Icon name="external-link" size={20} />}
onClick={onEditImageExternally}
disabled={!externalEditSupported}
data-testid="pdf-editor-imgop-edit-externally"
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/components/toolbar/FormatGroup.tsx b/frontend/editor/src/core/tools/pdfTextEditor/components/toolbar/FormatGroup.tsx
index 45c5d42a02..a002463b66 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/components/toolbar/FormatGroup.tsx
+++ b/frontend/editor/src/core/tools/pdfTextEditor/components/toolbar/FormatGroup.tsx
@@ -1,4 +1,5 @@
import { useState } from "react";
+import { Icon } from "@app/ui/Icon";
import {
ColorInput,
Group,
@@ -9,9 +10,6 @@ import {
} from "@mantine/core";
import { useTranslation } from "react-i18next";
import { Button } from "@app/ui/Button";
-import FormatItalicIcon from "@mui/icons-material/FormatItalic";
-import TuneIcon from "@mui/icons-material/TuneOutlined";
-import TextFieldsIcon from "@mui/icons-material/TextFields";
import { parseCssColor, toCssHex } from "@app/tools/pdfTextEditor/model/Color";
import { familyOf } from "@app/tools/pdfTextEditor/util/fontFamily";
import { FontFamilySelect } from "@app/tools/pdfTextEditor/components/FontFamilySelect";
@@ -136,7 +134,7 @@ export function FormatGroup({ controller }: { controller: Controller }) {
)}
data-testid="pdf-editor-colour-advanced"
style={NO_SHRINK}
- leftSection={<TuneIcon fontSize="small" />}
+ leftSection={<Icon name="sliders-horizontal" size={20} />}
/>
</Tooltip>
</Popover.Target>
@@ -199,7 +197,7 @@ export function FormatGroup({ controller }: { controller: Controller }) {
aria-label={t("pdfTextEditor.toolbar.italic", "Italic")}
data-testid="pdf-editor-italic"
style={NO_SHRINK}
- leftSection={<FormatItalicIcon fontSize="small" />}
+ leftSection={<Icon name="italic" size={20} />}
/>
</Tooltip>
<Menu shadow="md" position="bottom-start" withinPortal>
@@ -217,7 +215,7 @@ export function FormatGroup({ controller }: { controller: Controller }) {
aria-label={t("pdfTextEditor.toolbar.changeCase", "Change case")}
data-testid="pdf-editor-change-case"
style={NO_SHRINK}
- leftSection={<TextFieldsIcon fontSize="small" />}
+ leftSection={<Icon name="type" size={20} />}
/>
</Tooltip>
</Menu.Target>
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/components/toolbar/ObjectGroup.tsx b/frontend/editor/src/core/tools/pdfTextEditor/components/toolbar/ObjectGroup.tsx
index 8314a5f549..55bffe0ed4 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/components/toolbar/ObjectGroup.tsx
+++ b/frontend/editor/src/core/tools/pdfTextEditor/components/toolbar/ObjectGroup.tsx
@@ -1,22 +1,7 @@
import { Menu, Tooltip } from "@mantine/core";
+import { Icon } from "@app/ui/Icon";
import { useTranslation } from "react-i18next";
import { Button } from "@app/ui/Button";
-import DeleteIcon from "@mui/icons-material/DeleteOutlined";
-import LockIcon from "@mui/icons-material/LockOutlined";
-import LockOpenIcon from "@mui/icons-material/LockOpenOutlined";
-import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
-import LayersIcon from "@mui/icons-material/LayersOutlined";
-import FlipToFrontIcon from "@mui/icons-material/FlipToFrontOutlined";
-import FlipToBackIcon from "@mui/icons-material/FlipToBackOutlined";
-import ArrowUpwardIcon from "@mui/icons-material/ArrowUpward";
-import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
-import VerticalAlignTopIcon from "@mui/icons-material/VerticalAlignTop";
-import VerticalAlignBottomIcon from "@mui/icons-material/VerticalAlignBottom";
-import VerticalAlignCenterIcon from "@mui/icons-material/VerticalAlignCenter";
-import AlignHorizontalLeftIcon from "@mui/icons-material/AlignHorizontalLeftOutlined";
-import AlignHorizontalCenterIcon from "@mui/icons-material/AlignHorizontalCenterOutlined";
-import AlignHorizontalRightIcon from "@mui/icons-material/AlignHorizontalRightOutlined";
-import LinearScaleIcon from "@mui/icons-material/LinearScaleOutlined";
import {
NO_SHRINK,
type Controller,
@@ -67,9 +52,9 @@ export function ObjectGroup({ controller }: { controller: Controller }) {
style={NO_SHRINK}
leftSection={
selectionAllLocked ? (
- <LockIcon fontSize="small" />
+ <Icon name="lock" size={20} />
) : (
- <LockOpenIcon fontSize="small" />
+ <Icon name="lock-open" size={20} />
)
}
/>
@@ -83,7 +68,7 @@ export function ObjectGroup({ controller }: { controller: Controller }) {
aria-label={t("pdfTextEditor.toolbar.delete", "Delete selected")}
data-testid="pdf-editor-delete"
style={NO_SHRINK}
- leftSection={<DeleteIcon fontSize="small" />}
+ leftSection={<Icon name="trash" size={20} />}
/>
</Tooltip>
<Menu shadow="md" position="bottom-start" withinPortal closeOnItemClick>
@@ -92,8 +77,8 @@ export function ObjectGroup({ controller }: { controller: Controller }) {
size="sm"
variant="secondary"
accent="neutral"
- leftSection={<LayersIcon fontSize="small" />}
- rightSection={<ExpandMoreIcon fontSize="small" />}
+ leftSection={<Icon name="layers" size={20} />}
+ rightSection={<Icon name="chevron-down" size={20} />}
data-testid="pdf-editor-arrange-menu"
style={NO_SHRINK}
>
@@ -103,28 +88,28 @@ export function ObjectGroup({ controller }: { controller: Controller }) {
<Menu.Dropdown>
<Menu.Label>{t("pdfTextEditor.toolbar.order", "Order")}</Menu.Label>
<Menu.Item
- leftSection={<FlipToFrontIcon fontSize="small" />}
+ leftSection={<Icon name="bring-to-front" size={20} />}
onClick={() => onChangeZOrder("to-front")}
data-testid="pdf-editor-z-to-front"
>
{t("pdfTextEditor.toolbar.bringToFront", "Bring to front")}
</Menu.Item>
<Menu.Item
- leftSection={<ArrowUpwardIcon fontSize="small" />}
+ leftSection={<Icon name="arrow-up" size={20} />}
onClick={() => onChangeZOrder("forward")}
data-testid="pdf-editor-z-forward"
>
{t("pdfTextEditor.toolbar.bringForward", "Bring forward")}
</Menu.Item>
<Menu.Item
- leftSection={<ArrowDownwardIcon fontSize="small" />}
+ leftSection={<Icon name="arrow-down" size={20} />}
onClick={() => onChangeZOrder("backward")}
data-testid="pdf-editor-z-backward"
>
{t("pdfTextEditor.toolbar.sendBackward", "Send backward")}
</Menu.Item>
<Menu.Item
- leftSection={<FlipToBackIcon fontSize="small" />}
+ leftSection={<Icon name="send-to-back" size={20} />}
onClick={() => onChangeZOrder("to-back")}
data-testid="pdf-editor-z-to-back"
>
@@ -135,7 +120,7 @@ export function ObjectGroup({ controller }: { controller: Controller }) {
{t("pdfTextEditor.toolbar.alignLabel", "Align · needs 2+ objects")}
</Menu.Label>
<Menu.Item
- leftSection={<AlignHorizontalLeftIcon fontSize="small" />}
+ leftSection={<Icon name="align-start-vertical" size={20} />}
disabled={hAlignDisabled}
onClick={() => onAlign("left")}
data-testid="pdf-editor-align-left"
@@ -143,7 +128,7 @@ export function ObjectGroup({ controller }: { controller: Controller }) {
{t("pdfTextEditor.toolbar.alignLeft", "Align left")}
</Menu.Item>
<Menu.Item
- leftSection={<AlignHorizontalCenterIcon fontSize="small" />}
+ leftSection={<Icon name="align-center-vertical" size={20} />}
disabled={hAlignDisabled}
onClick={() => onAlign("center-h")}
data-testid="pdf-editor-align-center-h"
@@ -151,7 +136,7 @@ export function ObjectGroup({ controller }: { controller: Controller }) {
{t("pdfTextEditor.toolbar.alignCentre", "Align centre")}
</Menu.Item>
<Menu.Item
- leftSection={<AlignHorizontalRightIcon fontSize="small" />}
+ leftSection={<Icon name="align-end-vertical" size={20} />}
disabled={hAlignDisabled}
onClick={() => onAlign("right")}
data-testid="pdf-editor-align-right"
@@ -159,7 +144,7 @@ export function ObjectGroup({ controller }: { controller: Controller }) {
{t("pdfTextEditor.toolbar.alignRight", "Align right")}
</Menu.Item>
<Menu.Item
- leftSection={<VerticalAlignTopIcon fontSize="small" />}
+ leftSection={<Icon name="align-start-horizontal" size={20} />}
disabled={alignDisabled}
onClick={() => onAlign("top")}
data-testid="pdf-editor-align-top"
@@ -167,7 +152,7 @@ export function ObjectGroup({ controller }: { controller: Controller }) {
{t("pdfTextEditor.toolbar.alignTop", "Align top")}
</Menu.Item>
<Menu.Item
- leftSection={<VerticalAlignCenterIcon fontSize="small" />}
+ leftSection={<Icon name="align-center-horizontal" size={20} />}
disabled={alignDisabled}
onClick={() => onAlign("middle-v")}
data-testid="pdf-editor-align-middle-v"
@@ -175,7 +160,7 @@ export function ObjectGroup({ controller }: { controller: Controller }) {
{t("pdfTextEditor.toolbar.alignMiddle", "Align middle")}
</Menu.Item>
<Menu.Item
- leftSection={<VerticalAlignBottomIcon fontSize="small" />}
+ leftSection={<Icon name="align-end-horizontal" size={20} />}
disabled={alignDisabled}
onClick={() => onAlign("bottom")}
data-testid="pdf-editor-align-bottom"
@@ -190,7 +175,7 @@ export function ObjectGroup({ controller }: { controller: Controller }) {
)}
</Menu.Label>
<Menu.Item
- leftSection={<LinearScaleIcon fontSize="small" />}
+ leftSection={<Icon name="spline" size={20} />}
disabled={distributeDisabled}
onClick={() => onDistribute("horizontal")}
data-testid="pdf-editor-distribute-h"
@@ -202,8 +187,9 @@ export function ObjectGroup({ controller }: { controller: Controller }) {
</Menu.Item>
<Menu.Item
leftSection={
- <LinearScaleIcon
- fontSize="small"
+ <Icon
+ name="spline"
+ size={20}
style={{ transform: "rotate(90deg)" }}
/>
}
diff --git a/frontend/editor/src/saas/components/tools/sign/SignSettings.tsx b/frontend/editor/src/saas/components/tools/sign/SignSettings.tsx
index 59920ab6fb..c31678b32c 100644
--- a/frontend/editor/src/saas/components/tools/sign/SignSettings.tsx
+++ b/frontend/editor/src/saas/components/tools/sign/SignSettings.tsx
@@ -25,7 +25,6 @@ import { DrawingControls } from "@app/components/annotation/shared/DrawingContro
import { ImageUploader } from "@app/components/annotation/shared/ImageUploader";
import { TextInputWithFont } from "@app/components/annotation/shared/TextInputWithFont";
import { ColorPicker } from "@app/components/annotation/shared/ColorPicker";
-import { LocalIcon } from "@app/components/shared/LocalIcon";
import {
useSavedSignatures,
SavedSignature,
@@ -41,6 +40,7 @@ import { useAppConfig } from "@app/contexts/AppConfigContext";
import { useIsMobile } from "@app/hooks/useIsMobile";
import { buildSignaturePreview } from "@app/utils/signaturePreview";
+import { Icon, type IconName } from "@app/ui/Icon";
type SignatureDrafts = {
canvas?: string;
image?: string;
@@ -403,7 +403,7 @@ const SignSettings = ({
isReady: boolean,
onClick: (scope: "personal" | "shared") => void,
scope: "personal" | "shared",
- icon: string,
+ icon: IconName,
label: string,
fullWidth: boolean = false,
) => {
@@ -457,7 +457,7 @@ const SignSettings = ({
disabled={
!isReady || disabled || isSavedSignatureLimitReached || !hasChanges
}
- leftSection={<LocalIcon icon={icon} width={16} height={16} />}
+ leftSection={<Icon name={icon} size={16} />}
fullWidth={fullWidth}
>
{buttonLabel}
@@ -499,7 +499,7 @@ const SignSettings = ({
isReady,
onClick,
"personal",
- "material-symbols:person-rounded",
+ "user",
translate("saved.savePersonal", "Save Personal"),
isLocalStorageMode,
);
@@ -509,7 +509,7 @@ const SignSettings = ({
isReady,
onClick,
"shared",
- "material-symbols:groups-rounded",
+ "users",
translate("saved.saveShared", "Save Shared"),
false,
);
@@ -1257,9 +1257,7 @@ const SignSettings = ({
aria-label={translate("mode.pause", "Pause placement")}
onClick={handlePausePlacement}
disabled={disabled || !onDeactivateSignature}
- leftSection={
- <LocalIcon icon="pause-circle-rounded" width={20} height={20} />
- }
+ leftSection={<Icon name="circle-pause" size={20} />}
>
{translate("mode.pause", "Pause placement")}
</Button>
@@ -1273,9 +1271,7 @@ const SignSettings = ({
disabled={
disabled || !isCurrentTypeReady || !onActivateSignaturePlacement
}
- leftSection={
- <LocalIcon icon="play-arrow-rounded" width={20} height={20} />
- }
+ leftSection={<Icon name="play" size={20} />}
>
{translate("mode.resume", "Resume placement")}
</Button>
@@ -1298,7 +1294,7 @@ const SignSettings = ({
variant="secondary"
fullWidth
disabled={disabled}
- leftSection={<LocalIcon icon="qr-code-rounded" width="1rem" />}
+ leftSection={<Icon name="qr-code" size="1rem" />}
onClick={() => setIsMobileSignModalOpen(true)}
>
{t("sign.mobile.createFromPhone", "Mobile upload")}