2026-05-11 13:01:47 +02:00
|
|
|
import * as React from 'react';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
2026-05-11 13:01:47 +02:00
|
|
|
import { cn } from '@/lib/utils';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
2026-05-11 13:01:47 +02:00
|
|
|
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', className)} {...props} />
|
|
|
|
|
</div>
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
Table.displayName = 'Table';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
|
|
|
|
const TableHeader = React.forwardRef<
|
|
|
|
|
HTMLTableSectionElement,
|
|
|
|
|
React.HTMLAttributes<HTMLTableSectionElement>
|
|
|
|
|
>(({ className, ...props }, ref) => (
|
2026-05-11 13:01:47 +02:00
|
|
|
<thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props} />
|
|
|
|
|
));
|
|
|
|
|
TableHeader.displayName = 'TableHeader';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
|
|
|
|
const TableBody = React.forwardRef<
|
|
|
|
|
HTMLTableSectionElement,
|
|
|
|
|
React.HTMLAttributes<HTMLTableSectionElement>
|
|
|
|
|
>(({ className, ...props }, ref) => (
|
2026-05-12 14:50:58 +02:00
|
|
|
// Strip only the bottom border on the last row (the visual table-divider).
|
|
|
|
|
// The shorter `border-0` form also nuked left/right borders, which broke
|
|
|
|
|
// the colored left-accent (e.g. mooring-letter tone in berth-list) — that
|
|
|
|
|
// accent is added via row className and counts on the left border surviving.
|
|
|
|
|
<tbody ref={ref} className={cn('[&_tr:last-child]:border-b-0', className)} {...props} />
|
2026-05-11 13:01:47 +02:00
|
|
|
));
|
|
|
|
|
TableBody.displayName = 'TableBody';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
|
|
|
|
const TableFooter = React.forwardRef<
|
|
|
|
|
HTMLTableSectionElement,
|
|
|
|
|
React.HTMLAttributes<HTMLTableSectionElement>
|
|
|
|
|
>(({ className, ...props }, ref) => (
|
|
|
|
|
<tfoot
|
|
|
|
|
ref={ref}
|
2026-05-12 22:14:38 +02:00
|
|
|
className={cn('border-t bg-muted/50 font-medium last:[&>tr]:border-b-0', className)}
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
{...props}
|
|
|
|
|
/>
|
2026-05-11 13:01:47 +02:00
|
|
|
));
|
|
|
|
|
TableFooter.displayName = 'TableFooter';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
2026-05-11 13:01:47 +02:00
|
|
|
const TableRow = React.forwardRef<HTMLTableRowElement, React.HTMLAttributes<HTMLTableRowElement>>(
|
|
|
|
|
({ className, ...props }, ref) => (
|
|
|
|
|
<tr
|
|
|
|
|
ref={ref}
|
|
|
|
|
className={cn(
|
|
|
|
|
'border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted',
|
|
|
|
|
className,
|
|
|
|
|
)}
|
|
|
|
|
{...props}
|
|
|
|
|
/>
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
TableRow.displayName = 'TableRow';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
|
|
|
|
const TableHead = React.forwardRef<
|
|
|
|
|
HTMLTableCellElement,
|
|
|
|
|
React.ThHTMLAttributes<HTMLTableCellElement>
|
|
|
|
|
>(({ className, ...props }, ref) => (
|
|
|
|
|
<th
|
|
|
|
|
ref={ref}
|
|
|
|
|
className={cn(
|
2026-05-12 22:14:38 +02:00
|
|
|
'h-10 px-2 text-left align-middle font-medium text-muted-foreground has-[[role=checkbox]]:pr-0 *:[[role=checkbox]]:translate-y-[2px]',
|
2026-05-11 13:01:47 +02:00
|
|
|
className,
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
)}
|
|
|
|
|
{...props}
|
|
|
|
|
/>
|
2026-05-11 13:01:47 +02:00
|
|
|
));
|
|
|
|
|
TableHead.displayName = 'TableHead';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
|
|
|
|
const TableCell = React.forwardRef<
|
|
|
|
|
HTMLTableCellElement,
|
|
|
|
|
React.TdHTMLAttributes<HTMLTableCellElement>
|
|
|
|
|
>(({ className, ...props }, ref) => (
|
|
|
|
|
<td
|
|
|
|
|
ref={ref}
|
|
|
|
|
className={cn(
|
2026-05-12 22:14:38 +02:00
|
|
|
'p-2 align-middle has-[[role=checkbox]]:pr-0 *:[[role=checkbox]]:translate-y-[2px]',
|
2026-05-11 13:01:47 +02:00
|
|
|
className,
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
)}
|
|
|
|
|
{...props}
|
|
|
|
|
/>
|
2026-05-11 13:01:47 +02:00
|
|
|
));
|
|
|
|
|
TableCell.displayName = 'TableCell';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
|
|
|
|
const TableCaption = React.forwardRef<
|
|
|
|
|
HTMLTableCaptionElement,
|
|
|
|
|
React.HTMLAttributes<HTMLTableCaptionElement>
|
|
|
|
|
>(({ className, ...props }, ref) => (
|
2026-05-11 13:01:47 +02:00
|
|
|
<caption ref={ref} className={cn('mt-4 text-sm text-muted-foreground', className)} {...props} />
|
|
|
|
|
));
|
|
|
|
|
TableCaption.displayName = 'TableCaption';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
2026-05-11 13:01:47 +02:00
|
|
|
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
|