julong-lib/components/partials/Sidebar.tsx

646 lines
26 KiB
TypeScript

"use client";
import React, { FC } from "react";
import { Avatar, Dropdown, Sidebar, Tooltip } from "flowbite-react";
import { useEffect, useState } from "react";
import classNames from "classnames";
import { HiAdjustments, HiCog } from "react-icons/hi";
import { css } from "@emotion/css";
import { FaChevronDown, FaChevronUp } from "react-icons/fa";
import { SidebarLinkBetter } from "../ui/link-better";
import { detectCase } from "@/lib/utils/detectCase";
import { useLocal } from "@/lib/utils/use-local";
import { get_user } from "@/lib/utils/get_user";
import { siteurl } from "@/lib/utils/siteurl";
import { ScrollArea } from "../ui/scroll-area";
interface TreeMenuItem {
title: string;
href?: string;
children?: TreeMenuItem[];
icon?: any;
}
interface TreeMenuProps {
data: TreeMenuItem[];
minimaze: () => void;
mini: boolean;
}
const SidebarTree: React.FC<TreeMenuProps> = ({ data, minimaze, mini }) => {
const [currentPage, setCurrentPage] = useState("");
const local = useLocal({
data: data,
ready: false as boolean,
});
useEffect(() => {
if (typeof location === "object") {
const newPage = window.location.pathname;
setCurrentPage(newPage);
}
const run = async () => {
local.ready = false;
local.render();
setTimeout(() => {
local.ready = true;
local.render();
}, 1000);
};
if (typeof window === "object") {
run();
}
}, []);
const isChildActive = (items: TreeMenuItem[]): boolean => {
return items.some((item) => {
if (item.href && currentPage.startsWith(item.href)) return true;
if (item.children) return isChildActive(item.children); // Rekursif
return false;
});
};
const renderTree = (items: TreeMenuItem[], depth: number = 0) => {
return items.map((item, index) => {
const hasChildren = item.children && item.children.length > 0;
let isActive = item.href && detectCase(currentPage, item.href);
let isParentActive = hasChildren && isChildActive(item.children!);
const [isOpen, setIsOpen] = useState(isParentActive);
useEffect(() => {
if (isParentActive) {
setIsOpen(true);
}
}, [isParentActive]);
const itemStyle = {
paddingLeft:
!hasChildren && !depth ? "13px" : !mini ? `${depth * 16}px` : "0px",
};
return (
<React.Fragment key={item.href || item.title || index}>
{hasChildren ? (
<li className="relative ">
{false && (
<div
className={cx("absolute top-[-15px] right-[-1px] text-layer")}
>
<svg
width="184"
height="167"
viewBox="0 0 184 167"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className="w-4 h-4"
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M17 167C109.232 167 184 92.2316 184 0V167H17ZM0 166.145C5.58984 166.711 11.2611 167 17 167H0V166.145Z"
fill="currentColor"
/>
</svg>
</div>
)}
<div
className={classNames(
"relative flex-row flex items-center cursor-pointer items-center w-full rounded-full rounded-r-none text-base font-normal text-gray-900 flex flex-row",
mini
? isParentActive && !depth
? " text-base font-normal text-primary rounded-full rounded-r-none group bg-layer dark:bg-gray-700 vertical-rounded-tab"
: " text-white"
: isActive && !depth
? " text-base font-normal text-primary rounded-full rounded-r-none group bg-layer dark:bg-gray-700"
: " text-white",
mini ? "pr-4 m-0 flex-grow w-full" : "py-2.5 px-4 ",
mini
? css`
margin: 0 !important;
`
: ""
)}
onClick={() => {
if (mini) {
minimaze();
}
setIsOpen(!isOpen);
}}
style={itemStyle}
>
<div
className={cx(
"flex flex-row items-center flex-grow",
mini
? "py-2 justify-center rounded-full rounded-r-none"
: " px-3",
mini
? isParentActive
? "bg-layer font-bold "
: "bg-primary text-white"
: isActive
? "font-bold text-white "
: "text-white"
)}
>
{!depth ? (
<div
className={classNames(
" w-8 h-8 text-center flex flex-row items-center justify-center",
mini
? isParentActive
? "text-primary "
: " text-white"
: isActive
? "text-primary "
: " text-white",
!mini ? "mr-1 p-2 " : " text-lg ",
mini
? css`
background: transparent !important;
`
: ``
)}
>
{item.icon}
</div>
) : (
<></>
)}
{!mini ? (
<>
<div className="pl-2 flex-grow text-xs line-clamp-2">
{item.title}
</div>
<div className="text-md px-1">
{isOpen ? <FaChevronUp /> : <FaChevronDown />}
</div>
</>
) : (
<></>
)}
</div>
{false && (
<div className=" absolute bottom-[-15px] right-[-1px] text-layer">
<svg
width="147"
height="147"
viewBox="0 0 147 147"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className="w-4 h-4"
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M0 0H147V147C147 65.8141 81.1859 0 0 0Z"
fill="currentColor"
/>
</svg>
</div>
)}
</div>
<Sidebar.ItemGroup
className={classNames(
"border-none mt-0",
isOpen ? "" : "hidden",
mini ? "hidden" : ""
)}
>
{renderTree(item.children!, depth + 1)}
</Sidebar.ItemGroup>
</li>
) : (
<li className="relative">
{false && (
<div
className={cx(
" absolute top-[-15px] right-[-1px] text-layer"
)}
>
<svg
width="184"
height="167"
viewBox="0 0 184 167"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className="w-4 h-4"
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M17 167C109.232 167 184 92.2316 184 0V167H17ZM0 166.145C5.58984 166.711 11.2611 167 17 167H0V166.145Z"
fill="currentColor"
/>
</svg>
</div>
)}
<SidebarLinkBetter
href={item.href}
onClick={() => {
if (item?.href) setCurrentPage(item.href);
}}
className={classNames(
"relative flex-row flex items-center cursor-pointer items-center w-full rounded-full rounded-r-none text-base text-gray-900 flex flex-row py-2.5 px-4",
isActive
? " py-2.5 px-4 text-base rounded-full rounded-r-none group "
: " font-normal",
mini ? "transition-all duration-200" : "",
isActive
? !depth
? " bg-layer font-normal vertical-rounded-tab"
: " bg-layer text-primary font-bold vertical-rounded-tab"
: "text-white",
!depth && !hasChildren ? "px-2" : "",
css`
& > span {
white-space: wrap !important;
}
`,
mini ? "px-0 py-2" : ""
)}
style={itemStyle} // Terapkan gaya berdasarkan depth
>
<div className="flex flex-row items-center">
{!depth ? (
<div
className={classNames(
" text-dark-700 w-8 h-8 rounded-lg text-center flex flex-row items-center justify-center",
isActive ? "text-primary" : " text-white",
!mini ? "mr-1 p-2" : " text-lg"
)}
>
{item.icon}
</div>
) : (
<></>
)}
{!mini ? (
<>
<div className="pl-2 text-xs line-clamp-1">
{item.title}
</div>
</>
) : (
<></>
)}
</div>
{false && (
<div
className={cx(
"absolute bottom-[-15px] right-[-1px] text-layer"
)}
>
<svg
width="147"
height="147"
viewBox="0 0 147 147"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className="w-4 h-4"
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M0 0H147V147C147 65.8141 81.1859 0 0 0Z"
fill="currentColor"
/>
</svg>
</div>
)}
</SidebarLinkBetter>
</li>
)}
</React.Fragment>
);
});
};
return (
<div className="flex flex-col gap-y-4 flex-grow bg-primary ">
<div className={classNames("flex flex-grow lg:!block ", {})}>
<Sidebar
aria-label="Sidebar with multi-level dropdown example"
className={classNames(
"relative pt-0 rounded-none",
mini ? "w-20" : "",
css`
> div {
border-radius: 0px;
background: transparent;
padding-top: 0;
padding-right: 0;
}
`
)}
>
<ScrollArea className="w-full h-full">
<div className="w-full h-full relative ">
<div className="flex h-full flex-col justify-between w-full">
<Sidebar.Items>
<Sidebar.ItemGroup
className={cx(
"border-none mt-0 pt-4",
mini ? "flex flex-col gap-y-2" : ""
)}
>
{renderTree(data)}
</Sidebar.ItemGroup>
</Sidebar.Items>
</div>
</div>
</ScrollArea>
</Sidebar>
</div>
<div className="flex flex-col">
<div
className={cx(
"flex flex-col flex-grow gap-y-2",
mini ? "justify-center" : "px-4"
)}
>
<div
className={cx(
"flex flex-row w-full p-2 items-center gap-x-2 items-center text-white text-sm",
mini ? "justify-center" : ""
)}
>
<svg
xmlns="http://www.w3.org/2000/svg"
width={20}
height={20}
viewBox="0 0 24 24"
>
<g fill="none" stroke="currentColor" strokeWidth={2}>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M6 19v-9a6 6 0 0 1 6-6v0a6 6 0 0 1 6 6v9M6 19h12M6 19H4m14 0h2m-9 3h2"
></path>
<circle cx={12} cy={3} r={1}></circle>
</g>
</svg>
{!mini && "Notifications"}
</div>
<div
className={cx(
"flex flex-row w-full p-2 items-center gap-x-2 items-center text-white text-sm",
mini ? "justify-center" : ""
)}
>
<svg
xmlns="http://www.w3.org/2000/svg"
width={20}
height={20}
viewBox="0 0 24 24"
>
<g fill="currentColor">
<path d="M6.5 3.75c-.526 0-1.25.63-1.25 1.821V18.43c0 1.192.724 1.821 1.25 1.821h6.996a.75.75 0 1 1 0 1.5H6.5c-1.683 0-2.75-1.673-2.75-3.321V5.57c0-1.648 1.067-3.321 2.75-3.321h7a.75.75 0 0 1 0 1.5z"></path>
<path d="M16.53 7.97a.75.75 0 0 0-1.06 0v3.276H9.5a.75.75 0 0 0 0 1.5h5.97v3.284a.75.75 0 0 0 1.06 0l3.5-3.5a.75.75 0 0 0 .22-.532v-.002a.75.75 0 0 0-.269-.575z"></path>
</g>
</svg>
{!mini && "Sign Out"}
</div>
</div>
<div className="flex flex-row w-full flex-wrap">
<div
className={cx(
"flex flex-row justify-center flex-grow rounded-lg",
mini ? "py-4" : "p-4 bg-[#31314D] "
)}
>
<Avatar alt="" img={siteurl("/dog.jpg")} rounded size="sm" />
{!mini && (
<div className="flex flex-row items-center flex-grow font-bold text-white">
<div className=" px-2 h-full flex items-end justify-center flex-col text-xs">
<div>
{get_user("employee.name")
? get_user("employee.name")
: "-"}
</div>
</div>
</div>
)}
</div>
</div>
</div>
</div>
);
};
const BottomMenu: FC = function () {
return (
<div className="flex items-center justify-center gap-x-5">
<button className="rounded-lg p-2 hover:bg-gray-100">
<span className="sr-only">Tweaks</span>
<HiAdjustments className="text-2xl text-gray-500 hover:text-gray-900 " />
</button>
<div>
<Tooltip content="Settings page">
<a
href="/users/settings"
className="inline-flex cursor-pointer justify-center rounded p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-900"
>
<span className="sr-only">Settings page</span>
<HiCog className="text-2xl text-gray-500 hover:text-gray-900 " />
</a>
</Tooltip>
</div>
<div>
<LanguageDropdown />
</div>
</div>
);
};
const LanguageDropdown: FC = function () {
return (
<Dropdown
arrowIcon={false}
inline
label={
<span className="inline-flex cursor-pointer justify-center rounded p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-700 dark:hover:text-white">
<span className="sr-only">Current language</span>
<svg
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
viewBox="0 0 3900 3900"
className="h-5 w-5 rounded-full"
>
<path fill="#b22234" d="M0 0h7410v3900H0z"></path>
<path
d="M0 450h7410m0 600H0m0 600h7410m0 600H0m0 600h7410m0 600H0"
stroke="#fff"
strokeWidth="300"
></path>
<path fill="#3c3b6e" d="M0 0h2964v2100H0z"></path>
<g fill="#fff">
<g id="d">
<g id="c">
<g id="e">
<g id="b">
<path
id="a"
d="M247 90l70.534 217.082-184.66-134.164h228.253L176.466 307.082z"
></path>
<use xlinkHref="#a" y="420"></use>
<use xlinkHref="#a" y="840"></use>
<use xlinkHref="#a" y="1260"></use>
</g>
<use xlinkHref="#a" y="1680"></use>
</g>
<use xlinkHref="#b" x="247" y="210"></use>
</g>
<use xlinkHref="#c" x="494"></use>
</g>
<use xlinkHref="#d" x="988"></use>
<use xlinkHref="#c" x="1976"></use>
<use xlinkHref="#e" x="2470"></use>
</g>
</svg>
</span>
}
>
<ul className="py-1" role="none">
<li>
<a
href="#"
className="block py-2 px-4 text-md text-gray-700 hover:bg-gray-100 "
>
<div className="inline-flex items-center">
<svg
className="mr-2 h-4 w-4 rounded-full"
xmlns="http://www.w3.org/2000/svg"
id="flag-icon-css-us"
viewBox="0 0 512 512"
>
<g fillRule="evenodd">
<g strokeWidth="1pt">
<path
fill="#bd3d44"
d="M0 0h247v10H0zm0 20h247v10H0zm0 20h247v10H0zm0 20h247v10H0zm0 20h247v10H0zm0 20h247v10H0zm0 20h247v10H0z"
transform="scale(3.9385)"
/>
<path
fill="#fff"
d="M0 10h247v10H0zm0 20h247v10H0zm0 20h247v10H0zm0 20h247v10H0zm0 20h247v10H0zm0 20h247v10H0z"
transform="scale(3.9385)"
/>
</g>
<path
fill="#192f5d"
d="M0 0h98.8v70H0z"
transform="scale(3.9385)"
/>
<path
fill="#fff"
d="M8.2 3l1 2.8H12L9.7 7.5l.9 2.7-2.4-1.7L6 10.2l.9-2.7-2.4-1.7h3zm16.5 0l.9 2.8h2.9l-2.4 1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1.7.9-2.7-2.4-1.7h2.9zm16.5 0l.9 2.8h2.9L92 63.5l1 2.7-2.4-1.7-2.4 1.7 1-2.7-2.4-1.7h2.9z"
transform="scale(3.9385)"
/>
</g>
</svg>
<span className="whitespace-nowrap">English (US)</span>
</div>
</a>
</li>
<li>
<a
href="#"
className="block py-2 px-4 text-md text-gray-700 hover:bg-gray-100"
>
<div className="inline-flex items-center">
<svg
className="mr-2 h-4 w-4 rounded-full"
xmlns="http://www.w3.org/2000/svg"
id="flag-icon-css-de"
viewBox="0 0 512 512"
>
<path fill="#ffce00" d="M0 341.3h512V512H0z" />
<path d="M0 0h512v170.7H0z" />
<path fill="#d00" d="M0 170.7h512v170.6H0z" />
</svg>
Deutsch
</div>
</a>
</li>
<li>
<a
href="#"
className="block py-2 px-4 text-md text-gray-700 hover:bg-gray-100 "
>
<div className="inline-flex items-center">
<svg
className="mr-2 h-4 w-4 rounded-full"
xmlns="http://www.w3.org/2000/svg"
id="flag-icon-css-it"
viewBox="0 0 512 512"
>
<g fillRule="evenodd" strokeWidth="1pt">
<path fill="#fff" d="M0 0h512v512H0z" />
<path fill="#009246" d="M0 0h170.7v512H0z" />
<path fill="#ce2b37" d="M341.3 0H512v512H341.3z" />
</g>
</svg>
Italiano
</div>
</a>
</li>
<li>
<a
href="#"
className="block py-2 px-4 text-md text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
>
<div className="inline-flex items-center">
<svg
className="mr-2 h-4 w-4 rounded-full"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
id="flag-icon-css-cn"
viewBox="0 0 512 512"
>
<defs>
<path id="a" fill="#ffde00" d="M1-.3L-.7.8 0-1 .6.8-1-.3z" />
</defs>
<path fill="#de2910" d="M0 0h512v512H0z" />
<use
width="30"
height="20"
transform="matrix(76.8 0 0 76.8 128 128)"
xlinkHref="#a"
/>
<use
width="30"
height="20"
transform="rotate(-121 142.6 -47) scale(25.5827)"
xlinkHref="#a"
/>
<use
width="30"
height="20"
transform="rotate(-98.1 198 -82) scale(25.6)"
xlinkHref="#a"
/>
<use
width="30"
height="20"
transform="rotate(-74 272.4 -114) scale(25.6137)"
xlinkHref="#a"
/>
<use
width="30"
height="20"
transform="matrix(16 -19.968 19.968 16 256 230.4)"
xlinkHref="#a"
/>
</svg>
<span className="whitespace-nowrap"> ()</span>
</div>
</a>
</li>
</ul>
</Dropdown>
);
};
export default SidebarTree;