repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/blocks/MediaBlock/Component.tsx
src/blocks/MediaBlock/Component.tsx
import { type SerializedEditorState, type SerializedLexicalNode } from "@payloadcms/richtext-lexical/lexical"; import { paddingBottomClasses, paddingTopClasses, spacingBottomClasses, spacingTopClasses, } from "@/blocks/globals"; import RichText from "@/components/RichText"; import { cn } from "src/utilities/cn...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/blocks/Content/config.ts
src/blocks/Content/config.ts
import { AlignmentField } from "@/fields/alignmentField"; import { backgroundPicker } from "@/fields/backgroundPicker"; import { defaultLexical } from "@/fields/defaultLexical"; import { link } from "@/fields/link"; import { radiusFields } from "@/fields/radiusFields"; import { marginFields, paddingFields } from "@/fie...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/blocks/Content/Component.tsx
src/blocks/Content/Component.tsx
import { spacingTopClasses, spacingBottomClasses, getCenteringClasses, paddingBottomClasses, paddingTopClasses, } from "@/blocks/globals"; import { CMSLink } from "@/components/Link"; import RichText from "@/components/RichText"; import { cn } from "@/utilities/cn"; import type { ContentBlock as ContentBlock...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/blocks/CallToAction/config.ts
src/blocks/CallToAction/config.ts
import { defaultLexical } from "@/fields/defaultLexical"; import { linkGroup } from "@/fields/linkGroup"; import { marginFields, paddingFields } from "@/fields/spacingFields"; import type { Block } from "payload"; export const CallToAction: Block = { slug: "cta", interfaceName: "CallToActionBlock", fields: [ ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/blocks/CallToAction/Component.tsx
src/blocks/CallToAction/Component.tsx
import { paddingBottomClasses, paddingTopClasses, spacingBottomClasses, spacingTopClasses, } from "@/blocks/globals"; import { CMSLink } from "@/components/Link"; import RichText from "@/components/RichText"; import { cn } from "@/utilities/cn"; import type { CallToActionBlock as CTABlockProps } from "@/payloa...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/Cart/SynchronizeCart/index.tsx
src/components/(ecommerce)/Cart/SynchronizeCart/index.tsx
"use client"; import { useEffect } from "react"; import { useCart } from "@/stores/CartStore"; export const SynchronizeCart = () => { const { synchronizeCart } = useCart(); useEffect(() => { void synchronizeCart(); }, [synchronizeCart]); return <></>; };
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/AdminDashboard/index.tsx
src/components/(ecommerce)/AdminDashboard/index.tsx
import { type DefaultTranslationKeys, type TFunction } from "@payloadcms/translations"; import { Button } from "@payloadcms/ui"; import { RenderServerComponent } from "@payloadcms/ui/elements/RenderServerComponent"; import { type EntityToGroup, EntityType, groupNavItems } from "@payloadcms/ui/shared"; import Link from ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/AdminDashboard/components/OverviewChart/index.tsx
src/components/(ecommerce)/AdminDashboard/components/OverviewChart/index.tsx
"use client"; import { useTranslation } from "@payloadcms/ui"; import axios from "axios"; import { useEffect, useState } from "react"; import { Bar, BarChart, ResponsiveContainer, XAxis, YAxis } from "recharts"; import { type CustomTranslationsKeys, type CustomTranslationsObject, } from "@/admin/translations/cust...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/AdminDashboard/components/AdminDatePicker/index.tsx
src/components/(ecommerce)/AdminDashboard/components/AdminDatePicker/index.tsx
"use client"; import { CalendarIcon } from "@heroicons/react/20/solid"; import { subDays, format } from "date-fns"; import { usePathname, useRouter, useSearchParams } from "next/navigation"; import { useEffect, useState } from "react"; import { type DateRange } from "react-day-picker"; import { Button } from "@/compo...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/AdminDashboard/components/AdminSearch/index.tsx
src/components/(ecommerce)/AdminDashboard/components/AdminSearch/index.tsx
"use client"; import { getTranslation } from "@payloadcms/translations"; import { useConfig, useTranslation } from "@payloadcms/ui"; import { EntityType, formatAdminURL, type NavGroupType } from "@payloadcms/ui/shared"; import Link from "next/link"; import { Fragment } from "react"; import { type CustomTranslationsK...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/AdminDashboard/components/AdminTabs/index.tsx
src/components/(ecommerce)/AdminDashboard/components/AdminTabs/index.tsx
"use client"; import { usePathname, useSearchParams, useRouter } from "next/navigation"; import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"; export const AdminTabs = () => { const searchParams = useSearchParams(); const router = useRouter(); const pathname = usePathname(); const handleValueC...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/AdminDashboard/components/views/index.tsx
src/components/(ecommerce)/AdminDashboard/components/views/index.tsx
"use client"; import { useSearchParams } from "next/navigation"; import { type ReactNode } from "react"; import { Overview } from "./Overview"; export const AdminViews = () => { const searchParams = useSearchParams(); const view = searchParams.get("view"); let ActiveTabComponent: ReactNode | null = null; s...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/AdminDashboard/components/views/Overview/index.tsx
src/components/(ecommerce)/AdminDashboard/components/views/Overview/index.tsx
"use client"; import { useTranslation } from "@payloadcms/ui"; import axios from "axios"; import { subDays, format } from "date-fns"; import { ClipboardPaste, DollarSign } from "lucide-react"; import { animate } from "motion/react"; import { useSearchParams } from "next/navigation"; import { type SetStateAction, ty...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/AdminDashboard/components/OverviewLastOrders/index.tsx
src/components/(ecommerce)/AdminDashboard/components/OverviewLastOrders/index.tsx
"use client"; "use no memo"; // TODO: delete use no memo after Tanstack react-table bump to react 19 import { type DefaultTranslationKeys, type TFunction } from "@payloadcms/translations"; import { useTranslation } from "@payloadcms/ui"; import { type ColumnDef, type ColumnFiltersState, type SortingState, type...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/AdminDashboard/components/OverviewCard/index.tsx
src/components/(ecommerce)/AdminDashboard/components/OverviewCard/index.tsx
import { useTranslation } from "@payloadcms/ui"; import { type ReactNode } from "react"; import { type CustomTranslationsKeys, type CustomTranslationsObject, } from "@/admin/translations/custom-translations"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; export const OverviewCar...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/InPostGeowidget/index.tsx
src/components/(ecommerce)/InPostGeowidget/index.tsx
"use client"; import dynamic from "next/dynamic"; import React, { useEffect, useRef } from "react"; const InPostWrapper = ({ token, onPointSelect }: { token: string; onPointSelect: (e: Event) => void }) => { const containerRef = useRef<HTMLDivElement>(null); const widgetInitialized = useRef(false); useEffect((...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/ListingBreadcrumbs/index.tsx
src/components/(ecommerce)/ListingBreadcrumbs/index.tsx
import { Link } from "@/i18n/routing"; import { type ProductCategory, type ProductSubCategory } from "@/payload-types"; export const ListingBreadcrumbs = ({ category, subcategory, }: { category: ProductCategory; subcategory?: ProductSubCategory; }) => { return ( <> <nav aria-label="Breadcrumb" clas...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/ProductBreadcrumbs/index.tsx
src/components/(ecommerce)/ProductBreadcrumbs/index.tsx
import { Link } from "@/i18n/routing"; import { type Product } from "@/payload-types"; export const ProductBreadcrumbs = ({ product }: { product: Product }) => { return ( <> <nav aria-label="Breadcrumb" className="container mr-auto px-4 pt-6 sm:px-6 lg:px-8"> <ol role="list" className="flex items-c...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/AdminDashboardNavLink/index.tsx
src/components/(ecommerce)/AdminDashboardNavLink/index.tsx
"use client"; import { useTranslation } from "@payloadcms/ui"; import { ChartNoAxesCombined } from "lucide-react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { type CustomTranslationsObject, type CustomTranslationsKeys, } from "@/admin/translations/custom-translations"; ex...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/RegisterPage/WithoutOAuth/index.tsx
src/components/(ecommerce)/RegisterPage/WithoutOAuth/index.tsx
"use client"; import Image from "next/image"; import { useTranslations } from "next-intl"; import { Link } from "@/i18n/routing"; import { RegisterForm } from "./components/RegisterForm"; export const RegisterPageWithoutOAuth = () => { const t = useTranslations("RegisterForm"); return ( <main className="fle...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/RegisterPage/WithoutOAuth/components/RegisterForm.tsx
src/components/(ecommerce)/RegisterPage/WithoutOAuth/components/RegisterForm.tsx
"use client"; import { zodResolver } from "@hookform/resolvers/zod"; import axios, { isAxiosError } from "axios"; import { useTranslations } from "next-intl"; import { useState } from "react"; import { useForm } from "react-hook-form"; import { Button } from "@/components/ui/button"; import { Form, FormControl, FormF...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/ShippingAddressForm/index.tsx
src/components/(ecommerce)/ShippingAddressForm/index.tsx
"use client"; import { useTranslations } from "next-intl"; import { useFormContext } from "react-hook-form"; import { FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form"; import { Input } from "@/components/ui/input"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectV...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/LogoutButton/index.tsx
src/components/(ecommerce)/LogoutButton/index.tsx
"use client"; import axios from "axios"; import { type ReactNode } from "react"; import { Button } from "@/components/ui/button"; import { useRouter } from "@/i18n/routing"; export const LogoutButton = ({ className, children, ...props }: { children: ReactNode; className?: string; [key: string]: unknown; ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/RowLabels/WeightRangeRowLabel/index.tsx
src/components/(ecommerce)/RowLabels/WeightRangeRowLabel/index.tsx
"use client"; import { useRowLabel } from "@payloadcms/ui"; export const WeightRangeRowLabel = () => { const { data } = useRowLabel<{ weightFrom: number; weightTo: number; }>(); return ( <p> {data.weightFrom} {(data.weightFrom || data.weightFrom === 0) && data.weightTo && " - "} {...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/RowLabels/PriceRowLabel/index.tsx
src/components/(ecommerce)/RowLabels/PriceRowLabel/index.tsx
"use client"; import { useRowLabel } from "@payloadcms/ui"; export const PriceRowLabel = () => { const { data } = useRowLabel<{ currency: string; value: string; }>(); return ( <p> {data.value} {data.currency} </p> ); };
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/RowLabels/OrderProductsRowLabel/index.tsx
src/components/(ecommerce)/RowLabels/OrderProductsRowLabel/index.tsx
"use client"; import { useRowLabel } from "@payloadcms/ui"; export const OrderProductsRowLabel = () => { const { data } = useRowLabel<{ productName?: string; color?: string; size?: string; quantity: number; }>(); const label = [data.productName, data.color, data.size].filter(Boolean).join(", ")...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/RowLabels/DeliveryZonesRowLabel/index.tsx
src/components/(ecommerce)/RowLabels/DeliveryZonesRowLabel/index.tsx
"use client"; import { useRowLabel } from "@payloadcms/ui"; export const DeliveryZonesRowLabel = () => { const { data } = useRowLabel<{ countries?: string[]; }>(); return <p>{data.countries?.join(", ")}</p>; };
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/LoginPage/WithoutOAuth/index.tsx
src/components/(ecommerce)/LoginPage/WithoutOAuth/index.tsx
import Image from "next/image"; import { useTranslations } from "next-intl"; import { Link } from "@/i18n/routing"; import { LoginForm } from "./components/LoginForm"; export const LoginPageWithoutOAuth = ({ verified }: { verified?: string }) => { const t = useTranslations("LoginForm"); return ( <main classN...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/LoginPage/WithoutOAuth/components/LoginForm/index.tsx
src/components/(ecommerce)/LoginPage/WithoutOAuth/components/LoginForm/index.tsx
"use client"; import { zodResolver } from "@hookform/resolvers/zod"; import axios, { isAxiosError } from "axios"; import { useTranslations } from "next-intl"; import { useForm } from "react-hook-form"; import { Button } from "@/components/ui/button"; import { Form, FormControl, FormField, FormItem, FormLabel, FormMes...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/PriceClient/index.tsx
src/components/(ecommerce)/PriceClient/index.tsx
"use client"; import { useLocale } from "next-intl"; import { useCurrency } from "@/stores/Currency"; import { formatPrice } from "@/utilities/formatPrices"; export const PriceClient = ({ pricing, }: { pricing: { value: number; currency: string; }[]; }) => { const { currency } = useCurrency(); const...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/CurrencySelect/index.tsx
src/components/(ecommerce)/CurrencySelect/index.tsx
"use client"; import { FieldLabel, Select, useField } from "@payloadcms/ui"; import axios from "axios"; import { type TextFieldClientComponent } from "payload"; import { useEffect, useState } from "react"; import { type ShopSetting } from "@/payload-types"; export const CurrencySelect: TextFieldClientComponent = ({ ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/(ecommerce)/QuantityInput/index.tsx
src/components/(ecommerce)/QuantityInput/index.tsx
import { Input } from "@headlessui/react"; import { MinusIcon, PlusIcon } from "@heroicons/react/24/outline"; import { cn } from "@/utilities/cn"; export const QuantityInput = ({ minQuantity, maxQuantity, quantity, setQuantity, updateQuantity, inputVariant = "default", }: { minQuantity: number; maxQua...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/heros/config.ts
src/components/heros/config.ts
import { defaultLexical } from "@/fields/defaultLexical"; import { linkGroup } from "@/fields/linkGroup"; import type { Field } from "payload"; export const hero: Field = { name: "hero", type: "group", fields: [ { name: "type", type: "select", defaultValue: "lowImpact", label: "Type"...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/heros/RenderHero.tsx
src/components/heros/RenderHero.tsx
import { HighImpactHero } from "@/components/heros/HighImpact"; import { LowImpactHero } from "@/components/heros/LowImpact"; import { MediumImpactHero } from "@/components/heros/MediumImpact"; import type { Page } from "@/payload-types"; const heroes = { highImpact: HighImpactHero, lowImpact: LowImpactHero, me...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/heros/LowImpact/index.tsx
src/components/heros/LowImpact/index.tsx
import RichText from "@/components/RichText"; import type { Page } from "@/payload-types"; type LowImpactHeroType = | { children?: React.ReactNode; richText?: never; } | (Omit<Page["hero"], "richText"> & { children?: never; richText?: Page["hero"]["richText"]; }); export const Low...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/heros/HighImpact/index.tsx
src/components/heros/HighImpact/index.tsx
"use client"; import { useEffect } from "react"; import { CMSLink } from "@/components/Link"; import { Media } from "@/components/Media"; import RichText from "@/components/RichText"; import { useHeaderTheme } from "@/providers/HeaderTheme"; import type { Page } from "@/payload-types"; export const HighImpactHero = ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/heros/PostHero/index.tsx
src/components/heros/PostHero/index.tsx
import { Fragment } from "react"; import { Media } from "@/components/Media"; import { formatAuthors } from "@/utilities/formatAuthors"; import { formatDateTime } from "src/utilities/formatDateTime"; import type { Post } from "@/payload-types"; export const PostHero = ({ post }: { post: Post }) => { const { catego...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/heros/MediumImpact/index.tsx
src/components/heros/MediumImpact/index.tsx
import { CMSLink } from "@/components/Link"; import { Media } from "@/components/Media"; import RichText from "@/components/RichText"; import { cn } from "@/utilities/cn"; import type { Page } from "@/payload-types"; export const MediumImpactHero = ({ links, media, richText, reversed }: Page["hero"]) => { return ( ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/RichText/index.tsx
src/components/RichText/index.tsx
/* eslint-disable */ import { type DefaultNodeTypes, type SerializedBlockNode, type SerializedLinkNode, } from "@payloadcms/richtext-lexical"; import { type SerializedEditorState } from "@payloadcms/richtext-lexical/lexical"; import { type JSXConvertersFunction, LinkJSXConverter, RichText as RichTextWithout...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/Link/index.tsx
src/components/Link/index.tsx
import { Button, type ButtonProps } from "@/components/ui/button"; import { Link } from "@/i18n/routing"; import { cn } from "src/utilities/cn"; import type { Page, Post } from "@/payload-types"; type CMSLinkType = { appearance?: "inline" | ButtonProps["variant"]; children?: React.ReactNode; className?: string;...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/AdminBar/index.tsx
src/components/AdminBar/index.tsx
/* eslint-disable */ "use client"; import { useSelectedLayoutSegments, useRouter } from "next/navigation"; import { type PayloadAdminBarProps, PayloadAdminBar } from "payload-admin-bar"; import { useCallback, useState } from "react"; import { cn } from "@/utilities/cn"; import "./index.scss"; import { getClientSide...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/LivePreviewListener/index.tsx
src/components/LivePreviewListener/index.tsx
/* eslint-disable */ "use client"; import { RefreshRouteOnSave as PayloadLivePreview } from "@payloadcms/live-preview-react"; import { useRouter } from "@/i18n/routing"; export const LivePreviewListener = () => { const router = useRouter(); return ( <PayloadLivePreview refresh={router.refresh} ser...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/Card/index.tsx
src/components/Card/index.tsx
"use client"; import Link from "next/link"; import { Fragment } from "react"; import { Media } from "@/components/Media"; import { cn } from "@/utilities/cn"; import { useClickableCard } from "@/utilities/useClickableCard"; import type { Post } from "@/payload-types"; export type CardPostData = Pick<Post, "slug" | "...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/PayloadRedirects/index.tsx
src/components/PayloadRedirects/index.tsx
import { notFound } from "next/navigation"; import { redirect } from "@/i18n/routing"; import { getCachedDocument } from "@/utilities/getDocument"; import { getCachedRedirects } from "@/utilities/getRedirects"; import type { Page, Post } from "@/payload-types"; type Props = { disableNotFound?: boolean; url: stri...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/AdminAvatar/index.tsx
src/components/AdminAvatar/index.tsx
import { UserCog2 } from "lucide-react"; export const AdminAvatar = () => { return <UserCog2 />; };
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/AdminLogoBig/AdminLogoBig.tsx
src/components/AdminLogoBig/AdminLogoBig.tsx
export const AdminLogoBig = () => { return ( <svg fill="currentColor" height={120} className="twp -my-12" width={250} viewBox="0 0 2158 551" xmlns="http://www.w3.org/2000/svg" > <path d="M884.778 176.774V295.592H922.453V169.322C922.453 153.868 919.069 140.62 9...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/LocaleSwitch/LocaleSwitchSelect.tsx
src/components/LocaleSwitch/LocaleSwitchSelect.tsx
"use client"; import { useParams, useSearchParams } from "next/navigation"; import { type ReactNode, useTransition } from "react"; import { Select, SelectContent, SelectTrigger, SelectValue } from "@/components/ui/select"; import { type Locale } from "@/i18n/config"; import { usePathname, useRouter } from "@/i18n/rou...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/LocaleSwitch/LocaleSwitch.tsx
src/components/LocaleSwitch/LocaleSwitch.tsx
import { useLocale, useTranslations } from "next-intl"; import { Suspense } from "react"; import { SelectItem } from "@/components/ui/select"; import { routing } from "@/i18n/routing"; import { LocaleSwitchSelect } from "./LocaleSwitchSelect"; export function LocaleSwitch() { const t = useTranslations("LocaleSwitc...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/Pagination/index.tsx
src/components/Pagination/index.tsx
"use client"; import { useRouter } from "next/navigation"; import React from "react"; import { Pagination as PaginationComponent, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from "@/components/ui/pagination"; import { cn } from "@/utilities...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/AdminNavbar/getNavPrefs.ts
src/components/AdminNavbar/getNavPrefs.ts
import { cache } from "react"; import type { NavPreferences, Payload, TypedUser } from "payload"; export const getNavPrefs = cache( async ({ payload, user }: { payload: Payload; user?: TypedUser }): Promise<NavPreferences | null> => user ? payload .find({ collection: "payload-prefere...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/AdminNavbar/index.client.tsx
src/components/AdminNavbar/index.client.tsx
"use client"; import { getTranslation } from "@payloadcms/translations"; import { NavGroup, useConfig, useTranslation } from "@payloadcms/ui"; import { EntityType, formatAdminURL, type NavGroupType } from "@payloadcms/ui/shared"; import LinkWithDefault from "next/link"; import { usePathname } from "next/navigation"; i...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/AdminNavbar/navIconMap.ts
src/components/AdminNavbar/navIconMap.ts
import { ArrowRightLeft, BoxesIcon, Building2, CircleDollarSign, ClipboardList, FileImageIcon, Footprints, LayoutTemplate, type LucideProps, Mail, Menu, PackageSearch, PanelsTopLeft, RssIcon, Search, SendIcon, Settings, ShieldUserIcon, Star, TagIcon, Tags, TextCursorInput, ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/AdminNavbar/index.tsx
src/components/AdminNavbar/index.tsx
import { Logout } from "@payloadcms/ui"; import { RenderServerComponent } from "@payloadcms/ui/elements/RenderServerComponent"; import { type EntityToGroup, EntityType, groupNavItems } from "@payloadcms/ui/shared"; import { type ServerProps } from "payload"; import { NavHamburger } from "./NavHamburger"; import { NavW...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/AdminNavbar/NavWrapper/index.tsx
src/components/AdminNavbar/NavWrapper/index.tsx
"use client"; import { useNav } from "@payloadcms/ui"; import type { ReactNode } from "react"; export const NavWrapper = (props: { baseClass?: string; children: ReactNode }) => { const { baseClass, children } = props; const { hydrated, navOpen, navRef, shouldAnimate } = useNav(); return ( <aside cla...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/AdminNavbar/NavHamburger/index.tsx
src/components/AdminNavbar/NavHamburger/index.tsx
"use client"; import { Hamburger, useNav } from "@payloadcms/ui"; export const NavHamburger = ({ baseClass }: { baseClass?: string }) => { const { navOpen, setNavOpen } = useNav(); return ( <button className={`${baseClass}__mobile-close`} onClick={() => { setNavOpen(false); }} ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/Logo/Logo.tsx
src/components/Logo/Logo.tsx
import { clsx } from "clsx"; type Props = { className?: string; loading?: "lazy" | "eager"; priority?: "auto" | "high" | "low"; }; export const Logo = (props: Props) => { const { loading: loadingFromProps, priority: priorityFromProps, className } = props; const loading = loadingFromProps ?? "lazy"; const...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/CollectionArchive/index.tsx
src/components/CollectionArchive/index.tsx
import React from "react"; import { Card, type CardPostData } from "@/components/Card"; import { cn } from "src/utilities/cn"; export type Props = { posts: CardPostData[]; }; export const CollectionArchive = (props: Props) => { const { posts } = props; return ( <div className={cn("container")}> <div...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/PageRange/index.tsx
src/components/PageRange/index.tsx
/* eslint-disable */ const defaultLabels = { plural: "Docs", singular: "Doc", }; const defaultCollectionLabels = { posts: { plural: "Posts", singular: "Post", }, }; export const PageRange = (props: { className?: string; collection?: string; collectionLabels?: { plural?: string; singular?...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/AdminLogoIcon/AdminLogoIcon.tsx
src/components/AdminLogoIcon/AdminLogoIcon.tsx
export const AdminLogoIcon = () => { return ( <svg width={16} height={16} viewBox="0 0 680 680" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M219.632 547.688C217.912 565.872 210.08 582.792 197.152 595.976L197.112 596.016L197.072 596.056C196.736 596.4 196.4 596.736 196.056 597.072...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/AdminColorPicker/index.tsx
src/components/AdminColorPicker/index.tsx
"use client"; import { FieldLabel, useField } from "@payloadcms/ui"; import { type TextFieldClientComponent } from "payload"; import { ColorPicker } from "../ui/colorPicker"; export const AdminColorPicker: TextFieldClientComponent = ({ path, field }) => { const { value, setValue } = useField<{ value: string | unde...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/search/fieldOverrides.ts
src/components/search/fieldOverrides.ts
import { type Field } from "payload"; export const searchFields: Field[] = [ { name: "slug", type: "text", index: true, admin: { readOnly: true, }, }, { name: "meta", label: "Meta", type: "group", index: true, admin: { readOnly: true, }, fields: [ ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/search/Component.tsx
src/components/search/Component.tsx
"use client"; import { useRouter } from "next/navigation"; import { useState, useEffect } from "react"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { useDebounce } from "@/utilities/useDebounce"; export const Search = () => { const [value, setValue] = useStat...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/search/beforeSync.ts
src/components/search/beforeSync.ts
/* eslint-disable */ import { type BeforeSync, type DocToSync } from "@payloadcms/plugin-search/types"; export const beforeSyncWithSearch: BeforeSync = async ({ originalDoc, searchDoc, payload }) => { const { doc: { relationTo: collection }, } = searchDoc; const { slug, id, categories, title, meta, excerpt ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/AdminResetPassword/index.tsx
src/components/AdminResetPassword/index.tsx
"use client"; import { useTranslation } from "@payloadcms/ui"; import axios from "axios"; import { useState } from "react"; import { type CustomTranslationsKeys, type CustomTranslationsObject, } from "@/admin/translations/custom-translations"; export const AdminResetPassword = () => { const [message, setMessage...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/Emails/VerifyAccountEmail/index.tsx
src/components/Emails/VerifyAccountEmail/index.tsx
import { Button, Html, Text } from "@react-email/components"; import { getTranslations } from "next-intl/server"; import * as React from "react"; import { type Locale } from "@/i18n/config"; export const VerifyAccountEmail = async ({ url, locale, name, }: { url: string; locale: Locale; name: string; }) =>...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/Emails/WelcomeEmail/index.tsx
src/components/Emails/WelcomeEmail/index.tsx
import { Html } from "@react-email/components"; import { type ReactNode } from "react"; import { type Locale } from "@/i18n/config"; import { type Customer } from "@/payload-types"; import { getCachedGlobal } from "@/utilities/getGlobals"; import { Default } from "./variants/Default"; export const WelcomeEmail = asy...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/Emails/WelcomeEmail/variants/Default.tsx
src/components/Emails/WelcomeEmail/variants/Default.tsx
import { Body, Column, Container, Head, Heading, Hr, Html, Img, Link, Preview, Row, Section, Text, } from "@react-email/components"; import { getTranslations } from "next-intl/server"; import { type CSSProperties } from "react"; import { type Locale } from "@/i18n/config"; import { type Custo...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/Emails/OrderStatusEmail/index.tsx
src/components/Emails/OrderStatusEmail/index.tsx
import { Html } from "@react-email/components"; import { type ReactNode } from "react"; import { type Locale } from "@/i18n/config"; import { type Order } from "@/payload-types"; import { getCachedGlobal } from "@/utilities/getGlobals"; import { Default } from "./variants/Default"; export const OrderStatusEmail = as...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/Emails/OrderStatusEmail/variants/Default.tsx
src/components/Emails/OrderStatusEmail/variants/Default.tsx
import { Body, Column, Container, Head, Heading, Hr, Html, Img, Link, Preview, Row, Section, Text, } from "@react-email/components"; import { getTranslations } from "next-intl/server"; import { type CSSProperties } from "react"; import { type Locale } from "@/i18n/config"; import { type Media...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/Emails/ResetPasswordEmail/index.tsx
src/components/Emails/ResetPasswordEmail/index.tsx
import { Button, Html, Text } from "@react-email/components"; import { getTranslations } from "next-intl/server"; import * as React from "react"; import { type Locale } from "@/i18n/config"; export const ResetPasswordEmail = async ({ url, locale, name, }: { url: string; locale: Locale; name: string; }) =>...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ResetPasswordForm/index.tsx
src/components/ResetPasswordForm/index.tsx
"use client"; import { zodResolver } from "@hookform/resolvers/zod"; import axios, { isAxiosError } from "axios"; import { useTranslations } from "next-intl"; import { useForm } from "react-hook-form"; import { Button } from "@/components/ui/button"; import { Form, FormControl, FormField, FormItem, FormLabel, FormMess...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/table.tsx
src/components/ui/table.tsx
import * as React from "react"; import { cn } from "@/utilities/cn"; const Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>( ({ className, ...props }, ref) => ( <div className="relative w-full overflow-auto"> <table ref={ref} className={cn("w-full caption-bottom text-sm",...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/form.tsx
src/components/ui/form.tsx
"use client"; import { Slot } from "@radix-ui/react-slot"; import * as React from "react"; import { Controller, type ControllerProps, type FieldPath, type FieldValues, FormProvider, useFormContext, } from "react-hook-form"; import { Label } from "@/components/ui/label"; import { cn } from "@/utilities/cn"...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/breadcrumb.tsx
src/components/ui/breadcrumb.tsx
import { Slot } from "@radix-ui/react-slot"; import { ChevronRight, MoreHorizontal } from "lucide-react"; import * as React from "react"; import { cn } from "@/utilities/cn"; const Breadcrumb = React.forwardRef< HTMLElement, React.ComponentPropsWithoutRef<"nav"> & { separator?: React.ReactNode; } >(({ ...pr...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/dialog.tsx
src/components/ui/dialog.tsx
"use client"; import * as DialogPrimitive from "@radix-ui/react-dialog"; import { X } from "lucide-react"; import * as React from "react"; import { cn } from "@/utilities/cn"; const Dialog = DialogPrimitive.Root; const DialogTrigger = DialogPrimitive.Trigger; const DialogPortal = DialogPrimitive.Portal; const Dia...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/label.tsx
src/components/ui/label.tsx
"use client"; import * as LabelPrimitive from "@radix-ui/react-label"; import { type VariantProps, cva } from "class-variance-authority"; import * as React from "react"; import { cn } from "src/utilities/cn"; const labelVariants = cva( "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disable...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/colorPicker.tsx
src/components/ui/colorPicker.tsx
"use client"; import { Paintbrush } from "lucide-react"; import { useCallback, useState } from "react"; import { HexColorPicker } from "react-colorful"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Popover, PopoverContent, PopoverTrigger } from "@/components...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/tabs.tsx
src/components/ui/tabs.tsx
"use client"; import * as TabsPrimitive from "@radix-ui/react-tabs"; import * as React from "react"; import { cn } from "@/utilities/cn"; const Tabs = TabsPrimitive.Root; const TabsList = React.forwardRef< React.ElementRef<typeof TabsPrimitive.List>, React.ComponentPropsWithoutRef<typeof TabsPrimitive.List> >((...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/button.tsx
src/components/ui/button.tsx
import { Slot } from "@radix-ui/react-slot"; import { type VariantProps, cva } from "class-variance-authority"; import * as React from "react"; import { cn } from "src/utilities/cn"; const buttonVariants = cva( "twp inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-ba...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/popover.tsx
src/components/ui/popover.tsx
"use client"; import * as PopoverPrimitive from "@radix-ui/react-popover"; import * as React from "react"; import { cn } from "@/utilities/cn"; const Popover = PopoverPrimitive.Root; const PopoverTrigger = PopoverPrimitive.Trigger; const PopoverContent = React.forwardRef< React.ElementRef<typeof PopoverPrimitive...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/AdminInput.tsx
src/components/ui/AdminInput.tsx
import * as React from "react"; export type InputProps = {} & React.InputHTMLAttributes<HTMLInputElement>; const AdminInput = React.forwardRef<HTMLInputElement, InputProps>(({ type, className, ...props }, ref) => { return ( <div className="field-type text no-twp"> <div className="field-type__wrap"> ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/textarea.tsx
src/components/ui/textarea.tsx
import * as React from "react"; import { cn } from "src/utilities/cn"; export type TextareaProps = {} & React.TextareaHTMLAttributes<HTMLTextAreaElement>; const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(({ className, ...props }, ref) => { return ( <textarea className={cn( "t...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/accordion.tsx
src/components/ui/accordion.tsx
"use client"; import * as AccordionPrimitive from "@radix-ui/react-accordion"; import { ChevronDown } from "lucide-react"; import * as React from "react"; import { cn } from "@/utilities/cn"; const Accordion = AccordionPrimitive.Root; const AccordionItem = React.forwardRef< React.ElementRef<typeof AccordionPrimit...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/dropdown-menu.tsx
src/components/ui/dropdown-menu.tsx
"use client"; import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"; import { Check, ChevronRight, Circle } from "lucide-react"; import * as React from "react"; import { cn } from "@/utilities/cn"; const DropdownMenu = DropdownMenuPrimitive.Root; const DropdownMenuTrigger = DropdownMenuPrimitive.Tr...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/carousel.tsx
src/components/ui/carousel.tsx
"use client"; import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react"; import { ArrowLeft, ArrowRight } from "lucide-react"; import * as React from "react"; import { Button } from "@/components/ui/button"; import { cn } from "@/utilities/cn"; type CarouselApi = UseEmblaCarouselType[1]; typ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/card.tsx
src/components/ui/card.tsx
import * as React from "react"; import { cn } from "src/utilities/cn"; const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>( ({ className, ...props }, ref) => ( <div className={cn("rounded-lg border bg-card text-card-foreground shadow-xs", className)} ref={ref} {...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/radio-group.tsx
src/components/ui/radio-group.tsx
"use client"; import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"; import { Circle } from "lucide-react"; import * as React from "react"; import { cn } from "@/utilities/cn"; const RadioGroup = React.forwardRef< React.ElementRef<typeof RadioGroupPrimitive.Root>, React.ComponentPropsWithoutRef<type...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/chart.tsx
src/components/ui/chart.tsx
/* eslint-disable */ "use client"; import * as React from "react"; import * as RechartsPrimitive from "recharts"; import { type NameType, type Payload, type ValueType } from "recharts/types/component/DefaultTooltipContent"; import { type TooltipContentProps } from "recharts/types/component/Tooltip"; import { cn } fro...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/select.tsx
src/components/ui/select.tsx
"use client"; import * as SelectPrimitive from "@radix-ui/react-select"; import { Check, ChevronDown, ChevronUp } from "lucide-react"; import * as React from "react"; import { cn } from "src/utilities/cn"; const Select = SelectPrimitive.Root; const SelectGroup = SelectPrimitive.Group; const SelectValue = SelectPri...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/pagination.tsx
src/components/ui/pagination.tsx
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react"; import * as React from "react"; import { buttonVariants, type ButtonProps } from "@/components/ui/button"; import { cn } from "src/utilities/cn"; const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => ( <nav aria-lab...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/command.tsx
src/components/ui/command.tsx
"use client"; import { type DialogProps } from "@radix-ui/react-dialog"; import { Command as CommandPrimitive } from "cmdk"; import { Search } from "lucide-react"; import * as React from "react"; import { Dialog, DialogContent } from "@/components/ui/dialog"; import { Link } from "@/i18n/routing"; import { cn } from ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/input.tsx
src/components/ui/input.tsx
import * as React from "react"; import { cn } from "src/utilities/cn"; export type InputProps = {} & React.InputHTMLAttributes<HTMLInputElement>; const Input = React.forwardRef<HTMLInputElement, InputProps>(({ type, className, ...props }, ref) => { return ( <input className={cn( "twp border-borde...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/checkbox.tsx
src/components/ui/checkbox.tsx
"use client"; import * as CheckboxPrimitive from "@radix-ui/react-checkbox"; import { Check } from "lucide-react"; import * as React from "react"; import { cn } from "src/utilities/cn"; const Checkbox = React.forwardRef< React.ElementRef<typeof CheckboxPrimitive.Root>, React.ComponentPropsWithoutRef<typeof Check...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/ui/calendar.tsx
src/components/ui/calendar.tsx
"use client"; import { ChevronDown, ChevronLeft, ChevronRight } from "lucide-react"; import * as React from "react"; import { DayPicker } from "react-day-picker"; import { type ClassNameValue } from "tailwind-merge"; import { buttonVariants } from "@/components/ui/button"; import { cn } from "@/utilities/cn"; export...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/Media/index.tsx
src/components/Media/index.tsx
/* eslint-disable */ import React, { Fragment } from "react"; import { ImageMedia } from "./ImageMedia"; import { VideoMedia } from "./VideoMedia"; import type { Props } from "./types"; export const Media = (props: Props) => { const { className, htmlElement = "div", resource } = props; const isVideo = typeof re...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/Media/types.ts
src/components/Media/types.ts
import type { Media as MediaType } from "@/payload-types"; import type { StaticImageData } from "next/image"; import type { ElementType, Ref } from "react"; export type Props = { alt?: string; className?: string; fill?: boolean; // for NextImage only htmlElement?: ElementType | null; imgClassName?: string; ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/Media/ImageMedia/index.tsx
src/components/Media/ImageMedia/index.tsx
"use client"; import NextImage, { type StaticImageData } from "next/image"; import { cssVariables } from "@/cssVariables"; import { cn } from "src/utilities/cn"; import type { Props as MediaProps } from "../types"; const { breakpoints } = cssVariables; // A base64 encoded image to use as a placeholder while the im...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/Media/VideoMedia/index.tsx
src/components/Media/VideoMedia/index.tsx
"use client"; import { useEffect, useRef } from "react"; import { getClientSideURL } from "@/utilities/getURL"; import { cn } from "src/utilities/cn"; import type { Props as MediaProps } from "../types"; export const VideoMedia = (props: MediaProps) => { const { onClick, resource, videoClassName } = props; con...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/BeforeDashboard/index.tsx
src/components/BeforeDashboard/index.tsx
import { Banner } from "@payloadcms/ui/elements/Banner"; import React from "react"; import { SeedButton } from "./SeedButton"; import "./index.scss"; const baseClass = "before-dashboard"; export const BeforeDashboard: React.FC = () => { return ( <div className={baseClass}> <Banner className={`${baseClass...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/components/BeforeDashboard/SeedButton/index.tsx
src/components/BeforeDashboard/SeedButton/index.tsx
"use client"; import { toast } from "@payloadcms/ui"; import React, { Fragment, useCallback, useState } from "react"; import "./index.scss"; const SuccessMessage: React.FC = () => ( <div> Database seeded! You can now{" "} <a target="_blank" href="/"> visit your website </a> </div> ); export co...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false