Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: replace lucide icons with local icons

Marc Seitz1fda579f6363
diff --git a/components/shared/icons/check.tsx b/components/shared/icons/check.tsx
new file mode 100644
index 00000000..7e69a8a9
--- /dev/null
+++ b/components/shared/icons/check.tsx
@@ -0,0 +1,18 @@
+export default function Check({ className }: { className?: string }) {
+ return (
+ <svg
+ width="14"
+ height="14"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="2"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ className={className}
+ shapeRendering="geometricPrecision"
+ >
+ <polyline points="20 6 9 17 4 12" />
+ </svg>
+ );
+}
diff --git a/components/shared/icons/chevron-right.tsx b/components/shared/icons/chevron-right.tsx
new file mode 100644
index 00000000..a39c1f18
--- /dev/null
+++ b/components/shared/icons/chevron-right.tsx
@@ -0,0 +1,18 @@
+export default function ChevronRight({ className }: { className?: string }) {
+ return (
+ <svg
+ width="14"
+ height="14"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="2"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ className={className}
+ shapeRendering="geometricPrecision"
+ >
+ <path d="m9 18 6-6-6-6" />
+ </svg>
+ );
+}
diff --git a/components/shared/icons/circle.tsx b/components/shared/icons/circle.tsx
new file mode 100644
index 00000000..56201baf
--- /dev/null
+++ b/components/shared/icons/circle.tsx
@@ -0,0 +1,18 @@
+export default function Circle({ className }: { className?: string }) {
+ return (
+ <svg
+ width="14"
+ height="14"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="2"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ className={className}
+ shapeRendering="geometricPrecision"
+ >
+ <circle cx="12" cy="12" r="10" />
+ </svg>
+ );
+}
diff --git a/components/shared/icons/x.tsx b/components/shared/icons/x.tsx
new file mode 100644
index 00000000..49bfecb8
--- /dev/null
+++ b/components/shared/icons/x.tsx
@@ -0,0 +1,19 @@
+export default function X({ className }: { className?: string }) {
+ return (
+ <svg
+ width="14"
+ height="14"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="2"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ className={className}
+ shapeRendering="geometricPrecision"
+ >
+ <path d="M18 6 6 18" />
+ <path d="m6 6 12 12" />
+ </svg>
+ );
+}
diff --git a/components/ui/checkbox.tsx b/components/ui/checkbox.tsx
index 1a2a4593..b929007b 100644
--- a/components/ui/checkbox.tsx
+++ b/components/ui/checkbox.tsx
@@ -2,7 +2,7 @@
import * as React from "react";
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
-import { Check } from "lucide-react";
+import Check from "@/components/shared/icons/check";
import { cn } from "@/lib/utils";
diff --git a/components/ui/dialog.tsx b/components/ui/dialog.tsx
index 15d53fef..853bc2f2 100644
--- a/components/ui/dialog.tsx
+++ b/components/ui/dialog.tsx
@@ -2,7 +2,7 @@
import * as React from "react"
import * as DialogPrimitive from "@radix-ui/react-dialog"
-import { X } from "lucide-react"
+import X from "@/components/shared/icons/x"
import { cn } from "@/lib/utils"
diff --git a/components/ui/dropdown-menu.tsx b/components/ui/dropdown-menu.tsx
index 995409e0..04a330e1 100644
--- a/components/ui/dropdown-menu.tsx
+++ b/components/ui/dropdown-menu.tsx
@@ -2,7 +2,9 @@
import * as React from "react";
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
-import { Check, ChevronRight, Circle } from "lucide-react";
+import Check from "@/components/shared/icons/check";
+import ChevronRight from "@/components/shared/icons/chevron-right";
+import Circle from "@/components/shared/icons/circle";
import { cn } from "@/lib/utils";
diff --git a/components/ui/sheet.tsx b/components/ui/sheet.tsx
index 25157ea0..b9d6ffbd 100644
--- a/components/ui/sheet.tsx
+++ b/components/ui/sheet.tsx
@@ -3,7 +3,7 @@
import * as React from "react";
import * as SheetPrimitive from "@radix-ui/react-dialog";
import { cva, type VariantProps } from "class-variance-authority";
-import { X } from "lucide-react";
+import X from "@/components/shared/icons/x";
import { cn } from "@/lib/utils";