diff --git a/.husky/pre-commit b/.husky/pre-commit index 7b872324..e02c24e2 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -bun run build +pnpm lint-staged \ No newline at end of file diff --git a/.husky/pre-push b/.husky/pre-push index 74b61eec..b0c0c4fc 100644 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,2 +1,2 @@ -bun run build -# git pull --rebase origin main +pnpm build + diff --git a/apps/core/app/(landing)/_components/PurchaseCard.tsx b/apps/core/app/(landing)/_components/PurchaseCard.tsx index 61269a16..888450c0 100644 --- a/apps/core/app/(landing)/_components/PurchaseCard.tsx +++ b/apps/core/app/(landing)/_components/PurchaseCard.tsx @@ -1,4 +1,6 @@ -import { Button, Select, Typography } from "@repo/ui/components"; +import { Button } from "@repo/ui/components/atoms/button"; +import { Select } from "@repo/ui/components/molecules/select"; +import { Typography } from "@repo/ui/components/atoms/typography"; import { IconDownload } from "@tabler/icons-react"; import Image from "next/image"; diff --git a/apps/core/app/(landing)/_components/TextGenerateEffect.tsx b/apps/core/app/(landing)/_components/TextGenerateEffect.tsx index fc25c20c..e96cb714 100644 --- a/apps/core/app/(landing)/_components/TextGenerateEffect.tsx +++ b/apps/core/app/(landing)/_components/TextGenerateEffect.tsx @@ -2,7 +2,7 @@ import { useEffect } from "react"; import { motion, stagger, useAnimate } from "framer-motion"; import { cn } from "@repo/ui/lib/utils"; -import { Typography } from "@repo/ui/components"; +import { Typography } from "@repo/ui/components/atoms/typography"; export const TextGenerateEffect = ({ words, @@ -27,7 +27,7 @@ export const TextGenerateEffect = ({ { duration: duration ? duration : 1, delay: stagger(0.2), - } + }, ); }, [scope.current]); @@ -54,7 +54,7 @@ export const TextGenerateEffect = ({ return (
- { @@ -14,8 +14,18 @@ const Addtocard = () => { const router = useRouter(); const [cards, setCards] = useState([ - { id: 2, title: "Traveler - Travel Agency", price: 15, image: "/cart-1.png" }, - { id: 3, title: "Traveler - Travel Agency", price: 15, image: "/cart-2.png" }, + { + id: 2, + title: "Traveler - Travel Agency", + price: 15, + image: "/cart-1.png", + }, + { + id: 3, + title: "Traveler - Travel Agency", + price: 15, + image: "/cart-2.png", + }, ]); const temp = [1, 2, 3]; @@ -57,12 +67,12 @@ const Addtocard = () => { {/* Pay Now Button */} - {/* Secure Payment Message */} diff --git a/apps/core/app/(landing)/_components/background-landing.tsx b/apps/core/app/(landing)/_components/background-landing.tsx index d8fc9aee..7f94041a 100644 --- a/apps/core/app/(landing)/_components/background-landing.tsx +++ b/apps/core/app/(landing)/_components/background-landing.tsx @@ -1,5 +1,5 @@ import Image from "next/image"; -import { DashedCircles } from "@repo/ui/components"; +import { DashedCircles } from "@repo/ui/components/atoms/dashed-circles"; import blender from "../_assets/blender.svg"; import planet from "../_assets/planet.svg"; import figma from "../_assets/figma.svg"; diff --git a/apps/core/app/(landing)/_components/browseMegaMenu/bottomPart/bottom-part-menu.tsx b/apps/core/app/(landing)/_components/browseMegaMenu/bottomPart/bottom-part-menu.tsx index 2d44e0fa..7dbf28e1 100644 --- a/apps/core/app/(landing)/_components/browseMegaMenu/bottomPart/bottom-part-menu.tsx +++ b/apps/core/app/(landing)/_components/browseMegaMenu/bottomPart/bottom-part-menu.tsx @@ -1,4 +1,4 @@ -import { Typography } from "@repo/ui/components"; +import { Typography } from "@repo/ui/components/atoms/typography"; import IllustratorIcon from "@repo/icons/Illustrator"; import Adobexdicon from "@repo/icons/adobexd"; import Belendericon from "@repo/icons/belender"; diff --git a/apps/core/app/(landing)/_components/browseMegaMenu/browse-mega-menu.tsx b/apps/core/app/(landing)/_components/browseMegaMenu/browse-mega-menu.tsx index 1ea30fca..96efbbc8 100644 --- a/apps/core/app/(landing)/_components/browseMegaMenu/browse-mega-menu.tsx +++ b/apps/core/app/(landing)/_components/browseMegaMenu/browse-mega-menu.tsx @@ -1,7 +1,7 @@ import { useMegaMenuStore } from "../../store/mega-menu"; import { BottomPartMenu } from "./bottomPart/bottom-part-menu"; import { TopPartMenu } from "./topPart/top-part-menu"; -import { RetroGrid } from "@repo/ui/components"; +import { RetroGrid } from "@repo/ui/components/atoms/retroGrid"; const BrowseMegaMenu = () => { const { closeMegaMenu } = useMegaMenuStore(); diff --git a/apps/core/app/(landing)/_components/browseMegaMenu/topPart/top-part-menu.tsx b/apps/core/app/(landing)/_components/browseMegaMenu/topPart/top-part-menu.tsx index 73a6a3ba..d417bea1 100644 --- a/apps/core/app/(landing)/_components/browseMegaMenu/topPart/top-part-menu.tsx +++ b/apps/core/app/(landing)/_components/browseMegaMenu/topPart/top-part-menu.tsx @@ -4,7 +4,7 @@ import IllustrationIcon from "@repo/icons/illustration"; import MockUpsIcon from "@repo/icons/mockups"; import PolygonIcon from "@repo/icons/polygon"; import WireFrameIcon from "@repo/icons/wire-frame"; -import { Typography } from "@repo/ui/components"; +import { Typography } from "@repo/ui/components/atoms/typography"; import Link from "next/link"; interface CategoryItemProps { diff --git a/apps/core/app/(landing)/_components/card.tsx b/apps/core/app/(landing)/_components/card.tsx index 77dae6b8..51d2729f 100644 --- a/apps/core/app/(landing)/_components/card.tsx +++ b/apps/core/app/(landing)/_components/card.tsx @@ -1,5 +1,5 @@ import Removeicon from "@repo/icons/remove"; -import { Typography } from "@repo/ui/components"; +import { Typography } from "@repo/ui/components/atoms/typography"; import Image from "next/image"; interface CardProps { diff --git a/apps/core/app/(landing)/_components/desktop-navbar/feature-navbar-authenticated.tsx b/apps/core/app/(landing)/_components/desktop-navbar/feature-navbar-authenticated.tsx index 2be5b777..6f1c1034 100644 --- a/apps/core/app/(landing)/_components/desktop-navbar/feature-navbar-authenticated.tsx +++ b/apps/core/app/(landing)/_components/desktop-navbar/feature-navbar-authenticated.tsx @@ -9,7 +9,7 @@ import { DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, -} from "@repo/ui/components"; +} from "@repo/ui/components/atoms/dropdown-menu"; import Image from "next/image"; import Link from "next/link"; import Useractionpixelicon from "@repo/icons/useractionpixel"; @@ -17,7 +17,7 @@ import { AvatarImage, AvatarFallback, Avatar, -} from "@repo/ui/components"; +} from "@repo/ui/components/atoms/avatar"; import { useMegaMenuStore } from "./../../store/mega-menu"; const FeatureNavbarAuthenticated = () => { diff --git a/apps/core/app/(landing)/_components/desktop-navbar/feature-navbar-guest.tsx b/apps/core/app/(landing)/_components/desktop-navbar/feature-navbar-guest.tsx index a779eb69..bb91e4e3 100644 --- a/apps/core/app/(landing)/_components/desktop-navbar/feature-navbar-guest.tsx +++ b/apps/core/app/(landing)/_components/desktop-navbar/feature-navbar-guest.tsx @@ -1,19 +1,14 @@ import IconShoppingBag from "@repo/icons/shopping-bag"; -import { Typography } from "@repo/ui/components"; +import { Typography } from "@repo/ui/components/atoms/typography"; import Link from "next/link"; import { useCartStore } from "./../../store/cart-store"; - - const FeatureNavbarGuest = () => { - - const { toggleAddToCart } = useCartStore(); const onClick = () => { - toggleAddToCart(); - }; + }; return (
diff --git a/apps/core/app/(landing)/_components/desktop-navbar/navbar-links.tsx b/apps/core/app/(landing)/_components/desktop-navbar/navbar-links.tsx index f0e3a4b6..1879890d 100644 --- a/apps/core/app/(landing)/_components/desktop-navbar/navbar-links.tsx +++ b/apps/core/app/(landing)/_components/desktop-navbar/navbar-links.tsx @@ -1,4 +1,4 @@ -import { Typography } from "@repo/ui/components"; +import { Typography } from "@repo/ui/components/atoms/typography"; import { useMegaMenuStore } from "./../../store/mega-menu"; import { useCartStore } from "./../../store/cart-store"; import Link from "next/link"; diff --git a/apps/core/app/(landing)/_components/desktop-navbar/navbar.tsx b/apps/core/app/(landing)/_components/desktop-navbar/navbar.tsx index f3a091a9..0911a28c 100644 --- a/apps/core/app/(landing)/_components/desktop-navbar/navbar.tsx +++ b/apps/core/app/(landing)/_components/desktop-navbar/navbar.tsx @@ -2,7 +2,8 @@ import PixelIcon from "@repo/icons/pxiel"; import SearchIcon from "@repo/icons/serach"; import XIcon from "@repo/icons/x"; -import { BaseInput, Chip } from "@repo/ui/components"; +import { BaseInput } from "@repo/ui/components/atoms/base-input"; +import { Chip } from "@repo/ui/components/atoms/chip"; import { cn } from "@repo/ui/lib/utils"; import { AnimatePresence, motion } from "framer-motion"; import Image from "next/image"; diff --git a/apps/core/app/(landing)/_components/landing-tab-contents.tsx b/apps/core/app/(landing)/_components/landing-tab-contents.tsx index a4e72c01..19caff06 100644 --- a/apps/core/app/(landing)/_components/landing-tab-contents.tsx +++ b/apps/core/app/(landing)/_components/landing-tab-contents.tsx @@ -1,4 +1,4 @@ -import { ProductCard } from "@repo/ui/components"; +import { ProductCard } from "@repo/ui/components/molecules/prodoct-card"; import { use } from "react"; import { getProductVersionList } from "@repo/apis/core/shop/product-version/get/get-product-version-list"; diff --git a/apps/core/app/(landing)/_components/landing-tabs.tsx b/apps/core/app/(landing)/_components/landing-tabs.tsx index 48c143fa..ddfc3246 100644 --- a/apps/core/app/(landing)/_components/landing-tabs.tsx +++ b/apps/core/app/(landing)/_components/landing-tabs.tsx @@ -1,10 +1,8 @@ -import { - TabContent, - TabList, - TabProvider, - TabTrigger, - ProductCard, -} from "@repo/ui/components"; +import { TabContent } from "@repo/ui/components/molecules/tabs/tab-content"; +import { TabList } from "@repo/ui/components/molecules/tabs/tab-list"; +import { TabProvider } from "@repo/ui/components/molecules/tabs/tab-provider"; +import { TabTrigger } from "@repo/ui/components/molecules/tabs/tab-trigger"; +import { ProductCard } from "@repo/ui/components/molecules/prodoct-card"; import { ProductListUiUx, ProductList3D, diff --git a/apps/core/app/(landing)/_components/mobile-menu/hamburger-menu.tsx b/apps/core/app/(landing)/_components/mobile-menu/hamburger-menu.tsx index b1804a3b..ffb92d8f 100644 --- a/apps/core/app/(landing)/_components/mobile-menu/hamburger-menu.tsx +++ b/apps/core/app/(landing)/_components/mobile-menu/hamburger-menu.tsx @@ -1,10 +1,19 @@ "use client"; -import { IconMenuDeep, IconX, IconCrown, IconUserPlus, IconFileText, IconHelpCircle, IconShieldLock, IconFileDescription } from "@tabler/icons-react"; +import { + IconMenuDeep, + IconX, + IconCrown, + IconUserPlus, + IconFileText, + IconHelpCircle, + IconShieldLock, + IconFileDescription, +} from "@tabler/icons-react"; import { motion, AnimatePresence } from "framer-motion"; import { useState } from "react"; import Link from "next/link"; -import { Typography } from "@repo/ui/components"; +import { Typography } from "@repo/ui/components/atoms/typography"; const HamburgerMenu = () => { const [isOpen, setIsOpen] = useState(false); @@ -43,7 +52,7 @@ const HamburgerMenu = () => { className="fixed top-0 right-0 h-full w-[250px] bg-card shadow-lg z-40" >
-