This file is a merged representation of the entire codebase, combined into a single document by Repomix. This section contains a summary of this file. This file contains a packed representation of the entire repository's contents. It is designed to be easily consumable by AI systems for analysis, code review, or other automated processes. The content is organized as follows: 1. This summary section 2. Repository information 3. Directory structure 4. Repository files, each consisting of: - File path as an attribute - Full contents of the file - This file should be treated as read-only. Any changes should be made to the original repository files, not this packed version. - When processing this file, use the file path to distinguish between different files in the repository. - Be aware that this file may contain sensitive information. Handle it with the same level of security as you would the original repository. - Some files may have been excluded based on .gitignore rules and Repomix's configuration - Binary files are not included in this packed representation. Please refer to the Repository Structure section for a complete list of file paths, including binary files - Files matching patterns in .gitignore are excluded - Files matching default ignore patterns are excluded - Files are sorted by Git change count (files with more changes are at the bottom) AddressCard/ index.tsx SampleAddresses.tsx BasicDetailCard/ index.tsx Notifications/ index.tsx type.d.ts PaymentCard/ index.tsx SamplePayments.tsx SecurityCard/ index.tsx TitleCard/ index.tsx Helloworld.tsx This section contains the contents of the repository's files. 'use client'; import * as React from 'react'; import Avatar from '@mui/material/Avatar'; import Button from '@mui/material/Button'; import Card from '@mui/material/Card'; import CardContent from '@mui/material/CardContent'; import CardHeader from '@mui/material/CardHeader'; import Grid from '@mui/material/Unstable_Grid2'; import { House as HouseIcon } from '@phosphor-icons/react/dist/ssr/House'; import { Plus as PlusIcon } from '@phosphor-icons/react/dist/ssr/Plus'; import { useTranslation } from 'react-i18next'; import type { Address } from '@/types/Address'; import { ShippingAddress } from '@/components/dashboard/lp/categories/shipping-address'; import { SampleAddresses } from './SampleAddresses'; export default function SampleAddressCard(): React.JSX.Element { const { t } = useTranslation(); return ( } > {t('list.add')} } avatar={ } title={t('list.shipping-addresses')} /> {(SampleAddresses satisfies Address[]).map((address) => ( ))} ); } 'use client'; import type { Address } from '@/types/Address'; export const SampleAddresses: Address[] = [ { id: 'ADR-001', country: 'United States', state: 'Michigan', city: 'Lansing', zipCode: '48933', street: '480 Haven Lane', primary: true, }, { id: 'ADR-002', country: 'United States', state: 'Missouri', city: 'Springfield', zipCode: '65804', street: '4807 Lighthouse Drive', }, ]; 'use client'; import * as React from 'react'; import { useRouter } from 'next/navigation'; import Avatar from '@mui/material/Avatar'; import Card from '@mui/material/Card'; import CardHeader from '@mui/material/CardHeader'; import Chip from '@mui/material/Chip'; import Divider from '@mui/material/Divider'; import IconButton from '@mui/material/IconButton'; import LinearProgress from '@mui/material/LinearProgress'; import Stack from '@mui/material/Stack'; import Typography from '@mui/material/Typography'; import { PencilSimple as PencilSimpleIcon } from '@phosphor-icons/react/dist/ssr/PencilSimple'; import { User as UserIcon } from '@phosphor-icons/react/dist/ssr/User'; import { useTranslation } from 'react-i18next'; import { PropertyItem } from '@/components/core/property-item'; import { PropertyList } from '@/components/core/property-list'; export default function BasicDetailCard({ lpCatId, handleEditClick, }: { lpCatId: string; handleEditClick: () => void; }): React.JSX.Element { const { t } = useTranslation(); return ( { handleEditClick(); }} > } avatar={ } title={t('list.basic-details')} /> } orientation="vertical" sx={{ '--PropertyItem-padding': '12px 24px' }} > {( [ { key: 'Customer ID', value: ( ), }, { key: 'Name', value: 'Miron Vitold' }, { key: 'Email', value: 'miron.vitold@domain.com' }, { key: 'Phone', value: '(425) 434-5535' }, { key: 'Company', value: 'Devias IO' }, { key: 'Quota', value: ( 50% ), }, ] satisfies { key: string; value: React.ReactNode }[] ).map( (item): React.JSX.Element => ( ) )} ); } 'use client'; import { dayjs } from '@/lib/dayjs'; import type { Notification } from './type'; export const SampleNotifications: Notification[] = [ { id: 'EV-002', type: 'Refund request approved', status: 'pending', createdAt: dayjs().subtract(34, 'minute').subtract(5, 'hour').subtract(3, 'day').toDate(), }, { id: 'EV-001', type: 'Order confirmation', status: 'delivered', createdAt: dayjs().subtract(49, 'minute').subtract(11, 'hour').subtract(4, 'day').toDate(), }, ]; export interface Notification { id: string; type: string; status: 'delivered' | 'pending' | 'failed'; createdAt: Date; } 'use client'; import * as React from 'react'; import Avatar from '@mui/material/Avatar'; import Button from '@mui/material/Button'; import Card from '@mui/material/Card'; import CardContent from '@mui/material/CardContent'; import CardHeader from '@mui/material/CardHeader'; import Divider from '@mui/material/Divider'; import { CreditCard as CreditCardIcon } from '@phosphor-icons/react/dist/ssr/CreditCard'; import { PencilSimple as PencilSimpleIcon } from '@phosphor-icons/react/dist/ssr/PencilSimple'; import { useTranslation } from 'react-i18next'; import { PropertyItem } from '@/components/core/property-item'; import { PropertyList } from '@/components/core/property-list'; import { Payments } from '@/components/dashboard/lp/categories/payments'; import { SamplePayments } from './SamplePayments'; export default function SamplePaymentCard(): React.JSX.Element { const { t } = useTranslation(); return ( <> } > {t('list.edit')} } avatar={ } title={t('list.billing-details')} /> } sx={{ '--PropertyItem-padding': '16px' }} > {( [ { key: t('Credit card'), value: '**** 4142' }, { key: t('Country'), value: t('United States') }, { key: t('State'), value: t('Michigan') }, { key: t('City'), value: t('Southfield') }, { key: t('Address'), value: t('Address') }, { key: t('Tax ID'), value: t('Tax ID') }, ] satisfies { key: string; value: React.ReactNode }[] ).map( (item): React.JSX.Element => ( ) )} ); } 'use client'; // import { dayjs } from 'dayjs'; import type { Payment } from '@/types/Payment'; import { dayjs } from '@/lib/dayjs'; export const SamplePayments: Payment[] = [ { currency: 'USD', amount: 500, invoiceId: 'INV-005', status: 'completed', createdAt: dayjs().subtract(5, 'minute').subtract(1, 'hour').toDate(), }, { currency: 'USD', amount: 324.5, invoiceId: 'INV-004', status: 'refunded', createdAt: dayjs().subtract(21, 'minute').subtract(2, 'hour').toDate(), }, { currency: 'USD', amount: 746.5, invoiceId: 'INV-003', status: 'completed', createdAt: dayjs().subtract(7, 'minute').subtract(3, 'hour').toDate(), }, { currency: 'USD', amount: 56.89, invoiceId: 'INV-002', status: 'completed', createdAt: dayjs().subtract(48, 'minute').subtract(4, 'hour').toDate(), }, { currency: 'USD', amount: 541.59, invoiceId: 'INV-001', status: 'completed', createdAt: dayjs().subtract(31, 'minute').subtract(5, 'hour').toDate(), }, ]; 'use client'; import * as React from 'react'; import Avatar from '@mui/material/Avatar'; import Button from '@mui/material/Button'; import Card from '@mui/material/Card'; import CardContent from '@mui/material/CardContent'; import CardHeader from '@mui/material/CardHeader'; import Stack from '@mui/material/Stack'; import Typography from '@mui/material/Typography'; import { ShieldWarning as ShieldWarningIcon } from '@phosphor-icons/react/dist/ssr/ShieldWarning'; import { useTranslation } from 'react-i18next'; export default function SampleSecurityCard(): React.JSX.Element { const { t } = useTranslation(); return ( } title={t('list.security')} />
{t('a-deleted-customer-cannot-be-restored-all-data-will-be-permanently-removed')}
); }
'use client'; import * as React from 'react'; import { Button } from '@mui/material'; import Avatar from '@mui/material/Avatar'; import Chip from '@mui/material/Chip'; import Stack from '@mui/material/Stack'; import Typography from '@mui/material/Typography'; import { CaretDown as CaretDownIcon } from '@phosphor-icons/react/dist/ssr/CaretDown'; import { CheckCircle as CheckCircleIcon } from '@phosphor-icons/react/dist/ssr/CheckCircle'; import { useTranslation } from 'react-i18next'; export default function SampleTitleCard(): React.JSX.Element { const { t } = useTranslation(); return ( <> empty
{t('list.customer-name')} } label={t('list.active')} size="small" variant="outlined" /> {t('list.customer-email')}
); }
'use client'; import * as React from 'react'; import useEnhancedEffect from '@mui/utils/useEnhancedEffect'; function Page(): React.JSX.Element { React.useLayoutEffect(() => { console.log('helloworld'); }, []); return <>helloworld; } export default Page;