Skip to content

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

chore: remove heroicons

Marc Seitz66006f054093
diff --git a/components/document-upload.tsx b/components/document-upload.tsx
index 33683eb5..c67faf2d 100644
--- a/components/document-upload.tsx
+++ b/components/document-upload.tsx
@@ -1,17 +1,16 @@
import { useMemo } from "react";
import { useDropzone } from "react-dropzone";
-import {
- ArrowUpTrayIcon,
- DocumentIcon,
- PhotoIcon,
-} from "@heroicons/react/24/outline";
-import {
- DocumentTextIcon,
- PresentationChartBarIcon,
-} from "@heroicons/react/20/solid";
import { bytesToSize } from "@/lib/utils";
import { toast } from "sonner";
+import {
+ Upload as ArrowUpTrayIcon,
+ File as DocumentIcon,
+ FileText as DocumentTextIcon,
+ Presentation as PresentationChartBarIcon,
+ Image as PhotoIcon,
+} from "lucide-react";
+
function fileIcon(fileType: string) {
switch (fileType) {
case "application/pdf":
@@ -93,7 +92,7 @@ export default function DocumentUpload({
</div>
) : (
<ArrowUpTrayIcon
- className="mx-auto h-12 w-12 text-gray-500"
+ className="mx-auto h-10 w-10 text-gray-500"
aria-hidden="true"
/>
)}
diff --git a/components/links/link-sheet/og-section.tsx b/components/links/link-sheet/og-section.tsx
index 8933d47a..deddaccd 100644
--- a/components/links/link-sheet/og-section.tsx
+++ b/components/links/link-sheet/og-section.tsx
@@ -11,7 +11,7 @@ import { DEFAULT_LINK_TYPE } from ".";
import { motion } from "framer-motion";
import { FADE_IN_ANIMATION_SETTINGS } from "@/lib/constants";
import LoadingSpinner from "@/components/ui/loading-spinner";
-import { ArrowUpTrayIcon } from "@heroicons/react/20/solid";
+import { Upload as ArrowUpTrayIcon } from "lucide-react";
import { Input } from "@/components/ui/input";
import { Textarea } from "@/components/ui/textarea";
diff --git a/components/teams/select-team.tsx b/components/teams/select-team.tsx
index fbcdf7c3..b830c5d9 100644
--- a/components/teams/select-team.tsx
+++ b/components/teams/select-team.tsx
@@ -1,6 +1,6 @@
import { Check, Loader, PlusIcon } from "lucide-react";
import { TeamContextType, useTeam } from "@/context/team-context";
-import { ChevronUpDownIcon } from "@heroicons/react/20/solid";
+import { ChevronsUpDown as ChevronUpDownIcon } from "lucide-react";
import { Team } from "@/lib/types";
import { useRouter } from "next/router";
import Link from "next/link";
diff --git a/components/view/PDFViewer.tsx b/components/view/PDFViewer.tsx
index 5c3aa0e0..9b7df03a 100644
--- a/components/view/PDFViewer.tsx
+++ b/components/view/PDFViewer.tsx
@@ -1,7 +1,6 @@
-import { ChevronLeftIcon, ChevronRightIcon } from "@heroicons/react/20/solid";
+import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
import { useEffect, useRef, useState } from "react";
import { Document, Page, pdfjs } from "react-pdf";
-import { Download } from "lucide-react";
import { useTeam } from "@/context/team-context";
import Nav from "./nav";
diff --git a/components/view/PagesViewer.tsx b/components/view/PagesViewer.tsx
index 01ff69ac..fed49f7b 100644
--- a/components/view/PagesViewer.tsx
+++ b/components/view/PagesViewer.tsx
@@ -1,4 +1,4 @@
-import { ChevronLeftIcon, ChevronRightIcon } from "@heroicons/react/20/solid";
+import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
import { useEffect, useRef, useState } from "react";
import Image from "next/image";
import LoadingSpinner from "../ui/loading-spinner";
diff --git a/components/web/alternatives/dropdownproto.tsx b/components/web/alternatives/dropdownproto.tsx
index 31e80bde..b8430b73 100644
--- a/components/web/alternatives/dropdownproto.tsx
+++ b/components/web/alternatives/dropdownproto.tsx
@@ -1,9 +1,5 @@
import { Menu, Transition } from "@headlessui/react";
-import {
- CheckIcon,
- ChevronDownIcon,
- ChevronUpIcon,
-} from "@heroicons/react/20/solid";
+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
import { Fragment, Dispatch, SetStateAction } from "react";
function classNames(...classes: string[]) {
diff --git a/components/welcome/next.tsx b/components/welcome/next.tsx
index f42ad36f..3a592fe8 100644
--- a/components/welcome/next.tsx
+++ b/components/welcome/next.tsx
@@ -1,9 +1,9 @@
import { useRouter } from "next/router";
import { motion } from "framer-motion";
import {
- DocumentIcon,
- PresentationChartBarIcon,
-} from "@heroicons/react/24/outline";
+ File as DocumentIcon,
+ Presentation as PresentationChartBarIcon,
+} from "lucide-react";
import { STAGGER_CHILD_VARIANTS } from "@/lib/constants";
import NotionIcon from "@/components/shared/icons/notion";
diff --git a/package-lock.json b/package-lock.json
index 17cd38cb..c1fd3216 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12,7 +12,6 @@
"@chronark/zod-bird": "^0.3.3",
"@github/webauthn-json": "^2.1.1",
"@headlessui/react": "^1.7.18",
- "@heroicons/react": "^2.0.18",
"@jitsu/js": "^1.7.1",
"@next-auth/prisma-adapter": "^1.0.7",
"@prisma/client": "^5.8.1",
@@ -904,14 +903,6 @@
"tailwindcss": "^3.0"
}
},
- "node_modules/@heroicons/react": {
- "version": "2.0.18",
- "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.0.18.tgz",
- "integrity": "sha512-7TyMjRrZZMBPa+/5Y8lN0iyvUU/01PeMGX2+RE7cQWpEUIcb4QotzUObFkJDejj/HUH4qjP/eQ0gzzKs2f+6Yw==",
- "peerDependencies": {
- "react": ">= 16"
- }
- },
"node_modules/@humanwhocodes/config-array": {
"version": "0.11.13",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz",
diff --git a/package.json b/package.json
index d455ed8c..3ca94bb9 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,6 @@
"@chronark/zod-bird": "^0.3.3",
"@github/webauthn-json": "^2.1.1",
"@headlessui/react": "^1.7.18",
- "@heroicons/react": "^2.0.18",
"@jitsu/js": "^1.7.1",
"@next-auth/prisma-adapter": "^1.0.7",
"@prisma/client": "^5.8.1",
diff --git a/pages/ai.tsx b/pages/ai.tsx
index a072a2bc..da9e89df 100644
--- a/pages/ai.tsx
+++ b/pages/ai.tsx
@@ -3,15 +3,16 @@ import Navbar from "@/components/web/navbar";
import Footer from "@/components/web/footer";
import { Disclosure } from "@headlessui/react";
import ChatPage from "@/components/web/assistant/public-chat";
-import { MinusSmallIcon, PlusSmallIcon } from "@heroicons/react/24/outline";
import {
- ArrowPathIcon,
- CloudArrowUpIcon,
- Cog6ToothIcon,
- FingerPrintIcon,
- LockClosedIcon,
- ServerIcon,
-} from "@heroicons/react/20/solid";
+ Plus as PlusSmallIcon,
+ Minus as MinusSmallIcon,
+ RefreshCw as ArrowPathIcon,
+ GitPullRequestArrow as CloudArrowUpIcon,
+ Settings as Cog6ToothIcon,
+ Fingerprint as FingerPrintIcon,
+ Lock as LockClosedIcon,
+ HardDrive as ServerIcon,
+} from "lucide-react";
import Link from "next/link";
import { classNames } from "@/lib/utils";
import PapermarkSparkle from "@/components/shared/icons/papermark-sparkle";
diff --git a/pages/alternatives/brieflink.tsx b/pages/alternatives/brieflink.tsx
index 64dd6469..1705accd 100644
--- a/pages/alternatives/brieflink.tsx
+++ b/pages/alternatives/brieflink.tsx
@@ -1,15 +1,16 @@
import Head from "next/head";
import Footer from "@/components/web/footer";
import { Disclosure } from "@headlessui/react";
-import { MinusSmallIcon, PlusSmallIcon } from "@heroicons/react/24/outline";
import {
- ArrowPathIcon,
- CloudArrowUpIcon,
- Cog6ToothIcon,
- FingerPrintIcon,
- LockClosedIcon,
- ServerIcon,
-} from "@heroicons/react/20/solid";
+ Plus as PlusSmallIcon,
+ Minus as MinusSmallIcon,
+ RefreshCw as ArrowPathIcon,
+ GitPullRequestArrow as CloudArrowUpIcon,
+ Settings as Cog6ToothIcon,
+ Fingerprint as FingerPrintIcon,
+ Lock as LockClosedIcon,
+ HardDrive as ServerIcon,
+} from "lucide-react";
import Link from "next/link";
import { classNames } from "@/lib/utils";
diff --git a/pages/alternatives/docsend.tsx b/pages/alternatives/docsend.tsx
index e65755e1..339183f5 100644
--- a/pages/alternatives/docsend.tsx
+++ b/pages/alternatives/docsend.tsx
@@ -1,15 +1,16 @@
import Head from "next/head";
import Footer from "@/components/web/footer";
import { Disclosure } from "@headlessui/react";
-import { MinusSmallIcon, PlusSmallIcon } from "@heroicons/react/24/outline";
import {
- ArrowPathIcon,
- CloudArrowUpIcon,
- Cog6ToothIcon,
- FingerPrintIcon,
- LockClosedIcon,
- ServerIcon,
-} from "@heroicons/react/20/solid";
+ Plus as PlusSmallIcon,
+ Minus as MinusSmallIcon,
+ RefreshCw as ArrowPathIcon,
+ GitPullRequestArrow as CloudArrowUpIcon,
+ Settings as Cog6ToothIcon,
+ Fingerprint as FingerPrintIcon,
+ Lock as LockClosedIcon,
+ HardDrive as ServerIcon,
+} from "lucide-react";
import Link from "next/link";
import { classNames } from "@/lib/utils";
diff --git a/pages/alternatives/google-drive.tsx b/pages/alternatives/google-drive.tsx
index 80e28dec..fc037d3b 100644
--- a/pages/alternatives/google-drive.tsx
+++ b/pages/alternatives/google-drive.tsx
@@ -1,15 +1,16 @@
import Head from "next/head";
import Footer from "@/components/web/footer";
import { Disclosure } from "@headlessui/react";
-import { MinusSmallIcon, PlusSmallIcon } from "@heroicons/react/24/outline";
import {
- ArrowPathIcon,
- CloudArrowUpIcon,
- Cog6ToothIcon,
- FingerPrintIcon,
- LockClosedIcon,
- ServerIcon,
-} from "@heroicons/react/20/solid";
+ Plus as PlusSmallIcon,
+ Minus as MinusSmallIcon,
+ RefreshCw as ArrowPathIcon,
+ GitPullRequestArrow as CloudArrowUpIcon,
+ Settings as Cog6ToothIcon,
+ Fingerprint as FingerPrintIcon,
+ Lock as LockClosedIcon,
+ HardDrive as ServerIcon,
+} from "lucide-react";
import Link from "next/link";
import { classNames } from "@/lib/utils";
diff --git a/pages/alternatives/pandadoc.tsx b/pages/alternatives/pandadoc.tsx
index 0eb22612..06901b86 100644
--- a/pages/alternatives/pandadoc.tsx
+++ b/pages/alternatives/pandadoc.tsx
@@ -1,15 +1,16 @@
import Head from "next/head";
import Footer from "@/components/web/footer";
import { Disclosure } from "@headlessui/react";
-import { MinusSmallIcon, PlusSmallIcon } from "@heroicons/react/24/outline";
import {
- ArrowPathIcon,
- CloudArrowUpIcon,
- Cog6ToothIcon,
- FingerPrintIcon,
- LockClosedIcon,
- ServerIcon,
-} from "@heroicons/react/20/solid";
+ Plus as PlusSmallIcon,
+ Minus as MinusSmallIcon,
+ RefreshCw as ArrowPathIcon,
+ GitPullRequestArrow as CloudArrowUpIcon,
+ Settings as Cog6ToothIcon,
+ Fingerprint as FingerPrintIcon,
+ Lock as LockClosedIcon,
+ HardDrive as ServerIcon,
+} from "lucide-react";
import Link from "next/link";
import { classNames } from "@/lib/utils";
diff --git a/pages/alternatives/pitch.tsx b/pages/alternatives/pitch.tsx
index 34f5ac4c..a4fc01e7 100644
--- a/pages/alternatives/pitch.tsx
+++ b/pages/alternatives/pitch.tsx
@@ -1,15 +1,16 @@
import Head from "next/head";
import Footer from "@/components/web/footer";
import { Disclosure } from "@headlessui/react";
-import { MinusSmallIcon, PlusSmallIcon } from "@heroicons/react/24/outline";
import {
- ArrowPathIcon,
- CloudArrowUpIcon,
- Cog6ToothIcon,
- FingerPrintIcon,
- LockClosedIcon,
- ServerIcon,
-} from "@heroicons/react/20/solid";
+ Plus as PlusSmallIcon,
+ Minus as MinusSmallIcon,
+ RefreshCw as ArrowPathIcon,
+ GitPullRequestArrow as CloudArrowUpIcon,
+ Settings as Cog6ToothIcon,
+ Fingerprint as FingerPrintIcon,
+ Lock as LockClosedIcon,
+ HardDrive as ServerIcon,
+} from "lucide-react";
import Link from "next/link";
import { classNames } from "@/lib/utils";
diff --git a/pages/documents/index.tsx b/pages/documents/index.tsx
index 93b054ef..dc013b5d 100644
--- a/pages/documents/index.tsx
+++ b/pages/documents/index.tsx
@@ -2,7 +2,7 @@ import useDocuments from "@/lib/swr/use-documents";
import { useTeam } from "@/context/team-context";
import DocumentCard from "@/components/documents/document-card";
import { Skeleton } from "@/components/ui/skeleton";
-import { PlusIcon } from "@heroicons/react/24/solid";
+import { PlusIcon } from "lucide-react";
import { AddDocumentModal } from "@/components/documents/add-document-modal";
import { Separator } from "@/components/ui/separator";
import AppLayout from "@/components/layouts/app";
diff --git a/pages/share-notion-page.tsx b/pages/share-notion-page.tsx
index d9061fa6..2f33bdfd 100644
--- a/pages/share-notion-page.tsx
+++ b/pages/share-notion-page.tsx
@@ -2,15 +2,16 @@ import Head from "next/head";
import Footer from "@/components/web/footer";
import Navbar from "@/components/web/navbar";
import { Disclosure } from "@headlessui/react";
-import { MinusSmallIcon, PlusSmallIcon } from "@heroicons/react/24/outline";
import {
- ArrowPathIcon,
- CloudArrowUpIcon,
- Cog6ToothIcon,
- FingerPrintIcon,
- LockClosedIcon,
- ServerIcon,
-} from "@heroicons/react/20/solid";
+ Plus as PlusSmallIcon,
+ Minus as MinusSmallIcon,
+ RefreshCw as ArrowPathIcon,
+ GitPullRequestArrow as CloudArrowUpIcon,
+ Settings as Cog6ToothIcon,
+ Fingerprint as FingerPrintIcon,
+ Lock as LockClosedIcon,
+ HardDrive as ServerIcon,
+} from "lucide-react";
import Link from "next/link";
const features = [
diff --git a/pages/welcome.tsx b/pages/welcome.tsx
index 803255fe..4993c898 100644
--- a/pages/welcome.tsx
+++ b/pages/welcome.tsx
@@ -2,7 +2,7 @@ import { useRouter } from "next/router";
import Intro from "@/components/welcome/intro";
import Next from "@/components/welcome/next";
import Upload from "@/components/welcome/upload";
-import { ArrowLeftIcon } from "@heroicons/react/24/outline";
+import { ArrowLeft as ArrowLeftIcon } from "lucide-react";
import { AnimatePresence } from "framer-motion";
import NotionForm from "@/components/welcome/notion-form";