diff --git a/packages/ui/src/components/ui/table.tsx b/packages/ui/src/components/ui/table.tsx index a1f194cd7..5084666e0 100644 --- a/packages/ui/src/components/ui/table.tsx +++ b/packages/ui/src/components/ui/table.tsx @@ -24,7 +24,7 @@ import { composeRenderProps, useTableOptions, } from 'react-aria-components'; -import { LuChevronDown, LuMinus } from 'react-icons/lu'; +import { LuArrowDown } from 'react-icons/lu'; import { twJoin, twMerge } from 'tailwind-merge'; import { cx } from '@/lib/primitive'; @@ -123,47 +123,41 @@ const TableColumn = ({ + twMerge( + 'h-8 text-left text-sm font-normal', + allowsSorting && isHovered ? 'text-neutral-gray3' : 'text-muted-fg', + 'allows-sorting:active:text-neutral-charcoal', + 'relative outline-hidden allows-sorting:cursor-default dragging:cursor-grabbing', + 'px-4 py-(--gutter-y)', + 'first:pl-(--gutter,--spacing(2)) last:pr-(--gutter,--spacing(2))', + !bleed && 'sm:first:pl-1 sm:last:pr-1', + grid && 'border-l first:border-l-0', + isResizable && 'truncate overflow-hidden', + className, + ), )} > {(values) => (
{typeof props.children === 'function' ? props.children(values) : props.children} - {values.allowsSorting && ( - - {values.sortDirection === undefined ? ( - - ) : ( - + 'size-3 shrink-0 transition-transform duration-200', + values.sortDirection === 'ascending' ? 'rotate-180' : '', )} - + /> )} {isResizable && }
@@ -254,7 +248,7 @@ const TableRow = ({ }, ) => twMerge( - 'group relative cursor-default text-muted-fg outline outline-transparent', + 'group relative min-h-12 cursor-default text-black outline outline-transparent', isFocusVisible && 'bg-primary/5 ring-3 ring-ring/20 outline-primary hover:bg-primary/10', isDragging &&