diff --git a/docs/package-lock.json b/docs/package-lock.json
index bb8370f..4fd5094 100644
--- a/docs/package-lock.json
+++ b/docs/package-lock.json
@@ -20,7 +20,7 @@
"astro": "^4.8.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
- "developer-icons": "^5.0.4",
+ "developer-icons": "^5.0.5",
"lucide-react": "^0.378.0",
"moment": "^2.30.1",
"react": "^18.3.1",
@@ -3347,9 +3347,9 @@
"license": "MIT"
},
"node_modules/developer-icons": {
- "version": "5.0.4",
- "resolved": "https://registry.npmjs.org/developer-icons/-/developer-icons-5.0.4.tgz",
- "integrity": "sha512-BcwIV/nahWh4Bz/Gcwg8WpvsH1fkDaxEDnF13yOdkixhQZLCgTCTg5qRS+15/mhmfcj+f8GBYklb8bMjFaK+jg==",
+ "version": "5.0.5",
+ "resolved": "https://registry.npmjs.org/developer-icons/-/developer-icons-5.0.5.tgz",
+ "integrity": "sha512-28bBPNwld6hhilaDMKruPPhGoxoP7dAyit+Z0aBzouO/3IRXJjBRRhu1wJyqswGhAy6N8DZiuHws8VCFaRNeVg==",
"license": "MIT",
"peerDependencies": {
"react": "^18.2.0",
diff --git a/docs/package.json b/docs/package.json
index d93611d..5a82d72 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -23,7 +23,7 @@
"astro": "^4.8.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
- "developer-icons": "^5.0.4",
+ "developer-icons": "^5.0.5",
"lucide-react": "^0.378.0",
"moment": "^2.30.1",
"react": "^18.3.1",
diff --git a/docs/src/components/Container.astro b/docs/src/components/Container.astro
index fff28bb..c28c811 100644
--- a/docs/src/components/Container.astro
+++ b/docs/src/components/Container.astro
@@ -6,7 +6,7 @@ const { className } = Astro.props;
diff --git a/docs/src/components/HeroSection.astro b/docs/src/components/HeroSection.astro
index 473c081..729bbf6 100644
--- a/docs/src/components/HeroSection.astro
+++ b/docs/src/components/HeroSection.astro
@@ -7,7 +7,7 @@ import { publicBaseUrl } from "@/config";
-
🚀 v5.0.4
+
🚀 v5.0.5
Ready-to-use
@@ -38,5 +38,6 @@ import { publicBaseUrl } from "@/config";
diff --git a/docs/src/components/Navbar.astro b/docs/src/components/Navbar.astro
index bb67abb..de9f054 100644
--- a/docs/src/components/Navbar.astro
+++ b/docs/src/components/Navbar.astro
@@ -3,42 +3,69 @@ import { GitHubDark, NPM } from "developer-icons";
import Container from "./Container.astro";
import { publicBaseUrl } from "@/config";
import { DisclaimerAlert } from "./disclaimerAlert";
+import { cn } from "@/lib/utils";
const url = Astro.url;
+
+const navLinks = [
+ { title: "Home", href: `/` },
+ { title: "Icons", href: `/icons/All` },
+ { title: "Docs", href: `/docs` },
+];
+
+const matchSamePage = (href: string) => {
+ if (href === "/") return url.pathname === `${publicBaseUrl}/`;
+ const baseLink = href.replace(/^(\/[^/]*).*/g, "$1");
+ return url.pathname.startsWith(publicBaseUrl + baseLink);
+};
---
-
diff --git a/docs/src/components/iconsList.tsx b/docs/src/components/iconsList.tsx
index b4930c4..2dbd677 100644
--- a/docs/src/components/iconsList.tsx
+++ b/docs/src/components/iconsList.tsx
@@ -20,28 +20,30 @@ export const IconsList = ({ iconsData }: { iconsData: IconDataType[] }) => {
);
return (
-
-
-
-
setSearchQuery(e.currentTarget.value)}
- />
- {!!searchQuery && (
-
+
-
+
{filteredIcons.map((icon, index) => (
))}
diff --git a/docs/src/components/ui/iconCard.tsx b/docs/src/components/ui/iconCard.tsx
index ed5f793..7a34e0a 100644
--- a/docs/src/components/ui/iconCard.tsx
+++ b/docs/src/components/ui/iconCard.tsx
@@ -33,7 +33,7 @@ export const IconCard = ({ icon }: { icon: IconDataType }) => {
};
return (
-
+
{icon.name}
@@ -53,18 +53,18 @@ export const IconCard = ({ icon }: { icon: IconDataType }) => {
copyComponent(icon.name)}
/>
downloadIcon(icon.path)}
/>
-
+
diff --git a/docs/src/layouts/DocsLayout.astro b/docs/src/layouts/DocsLayout.astro
index 650337d..f9f6e55 100644
--- a/docs/src/layouts/DocsLayout.astro
+++ b/docs/src/layouts/DocsLayout.astro
@@ -6,6 +6,7 @@ import { publicBaseUrl } from "@/config";
import "@fontsource-variable/noto-sans";
import "../styles/globals.css";
import "../styles/docs.css";
+import { Button } from "@/components/ui/button";
interface Props {
title: string;
@@ -61,28 +62,31 @@ flattenedDocs.sort((a, b) => a.frontmatter.order - b.frontmatter.order);
-
+
-
+