Add cookie editing and inherited request settings (#463)

This commit is contained in:
Gregory Schier
2026-05-18 08:59:49 -07:00
committed by GitHub
parent dcfdf077e7
commit fa40ceaa31
54 changed files with 5203 additions and 1101 deletions
+26 -5
View File
@@ -1,4 +1,5 @@
import classNames from "classnames";
import type { HTMLAttributes } from "react";
import type { ReactNode } from "react";
export function Table({
@@ -28,9 +29,18 @@ export function Table({
);
}
export function TableBody({ children }: { children: ReactNode }) {
export function TableBody({ children, className }: { children: ReactNode; className?: string }) {
return (
<tbody className="[&>tr:not(:last-child)>td]:border-b [&>tr:not(:last-child)>td]:border-b-surface-highlight">
<tbody
className={classNames(
className,
"[&>tr:not(:last-child):not([data-table-spacer])>td]:border-b",
"[&>tr:not(:last-child):not([data-table-spacer])>td]:border-b-surface-highlight",
)}
>
<tr aria-hidden data-table-spacer className="h-0.5">
<td className="p-0" colSpan={1000} />
</tr>
{children}
</tbody>
);
@@ -49,8 +59,19 @@ export function TableHead({ children, className }: { children: ReactNode; classN
);
}
export function TableRow({ children }: { children: ReactNode }) {
return <tr>{children}</tr>;
export function TableRow({
children,
className,
...props
}: {
children: ReactNode;
className?: string;
} & HTMLAttributes<HTMLTableRowElement>) {
return (
<tr className={className} {...props}>
{children}
</tr>
);
}
export function TableCell({
@@ -98,7 +119,7 @@ export function TableHeaderCell({
<th
className={classNames(
className,
"py-2 [&:not(:first-child)]:pl-4 text-left text-text-subtle",
"whitespace-nowrap py-2 [&:not(:first-child)]:pl-4 text-left text-text-subtle",
)}
>
{children}