diff --git a/package-lock.json b/package-lock.json index 5031105f8e..ef8f7b8e13 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36076,7 +36076,7 @@ "eslint-plugin-import": "^2.29.1", "eslint-plugin-jsx-a11y": "^6.9.0", "eslint-plugin-react": "^7.34.3", - "eslint-plugin-react-hooks": "*", + "eslint-plugin-react-hooks": "beta", "typescript-eslint": "^7.15.0" }, "devDependencies": { diff --git a/packages/components/src/templates/next/components/internal/Breadcrumb/Breadcrumb.tsx b/packages/components/src/templates/next/components/internal/Breadcrumb/Breadcrumb.tsx index 2b6f8980a1..0e6c57e193 100644 --- a/packages/components/src/templates/next/components/internal/Breadcrumb/Breadcrumb.tsx +++ b/packages/components/src/templates/next/components/internal/Breadcrumb/Breadcrumb.tsx @@ -1,29 +1,45 @@ -import { MdChevronRight } from "react-icons/md" +import { BiChevronRight } from "react-icons/bi" +import { tv } from "tailwind-variants" import type { BreadcrumbProps } from "~/interfaces" +const breadcrumbStyles = tv({ + slots: { + nav: "flex flex-row flex-wrap items-center gap-2 text-base-content", + container: + "prose-label-md-regular flex flex-row items-center gap-1 last:prose-label-md-medium last:text-base-content-medium", + link: "underline decoration-transparent underline-offset-4 transition hover:decoration-inherit active:text-interaction-link-active", + icon: "h-5 w-5 flex-shrink-0 text-base-content-subtle", + }, +}) + +const compoundStyles = breadcrumbStyles() + const Breadcrumb = ({ links, LinkComponent = "a" }: BreadcrumbProps) => { + const [root, ...rest] = links return ( -