1313import { AlertDialog } from 'tailwind-starter/AlertDialog' ;
1414import { Arrow } from './components' ;
1515import { Button } from 'tailwind-starter/Button' ;
16- import { Cell , Column , Row , Table , TableHeader } from 'tailwind-starter/Table' ;
16+ import { Cell , Column , Row , Table , TableBody , TableHeader } from 'tailwind-starter/Table' ;
1717import { Checkbox } from 'tailwind-starter/Checkbox' ;
1818import { CloudSun , Dessert , Droplet , Droplets , FilterIcon , Mail , MoreHorizontal , PencilIcon , PlusIcon , RefreshCw , ShareIcon , SlidersIcon , StarIcon , Sun , SunDim , TrashIcon , Twitter } from 'lucide-react' ;
19- import { ColumnProps , Dialog , DialogTrigger , DropZone , Form , Heading , isFileDropItem , Key , ModalOverlay , ModalOverlayProps , Modal as RACModal , Selection , SortDescriptor , TableBody , Text , ToggleButton , ToggleButtonProps , TooltipTrigger } from 'react-aria-components' ;
19+ import { ColumnProps , Dialog , DialogTrigger , DropZone , Form , Heading , isFileDropItem , Key , ModalOverlay , ModalOverlayProps , Modal as RACModal , Selection , SortDescriptor , Text , ToggleButton , ToggleButtonProps , TooltipTrigger } from 'react-aria-components' ;
2020import { ComboBox , ComboBoxItem } from 'tailwind-starter/ComboBox' ;
2121import { DatePicker } from 'tailwind-starter/DatePicker' ;
2222import { focusRing } from 'tailwind-starter/utils' ;
@@ -177,7 +177,7 @@ export function ExampleApp(): React.ReactNode {
177177 < SearchField aria-label = "Search" value = { search } onChange = { setSearch } className = "col-span-3 sm:col-span-1" />
178178 < DialogTrigger >
179179 < TooltipTrigger >
180- < Button aria-label = "Filters" variant = "secondary" className = "w-9 h-9 shrink-0 p-0 relative" >
180+ < Button aria-label = "Filters" variant = "secondary" className = "w-9 h-9 shrink-0 p-0 px-2 relative" >
181181 < FilterIcon aria-hidden className = "block w-5 h-5" />
182182 { filters > 0 && < div className = "absolute -top-2 -right-2 rounded-full h-4 aspect-square text-white text-xs bg-blue-600" > { filters } </ div > }
183183 </ Button >
@@ -239,7 +239,7 @@ export function ExampleApp(): React.ReactNode {
239239 < span className = "truncate capitalize" > { item . common_name } </ span >
240240 < span className = "truncate text-xs text-gray-600 dark:text-zinc-400 col-start-2 row-start-2" > { item . scientific_name } </ span >
241241 < MenuTrigger placement = "bottom end" >
242- < Button aria-label = "Actions" variant = "secondary" className = "row-span-2 place-self-center" > < MoreHorizontal className = "w-5 h-5" /> </ Button >
242+ < Button aria-label = "Actions" variant = "secondary" className = "row-span-2 place-self-center bg-transparent dark:bg-transparent border-transparent dark:border-transparent !p-1 " > < MoreHorizontal className = "w-5 h-5" /> </ Button >
243243 < Menu onAction = { action => onAction ( item , action ) } >
244244 < MenuItem id = "favorite" > < StarIcon aria-hidden className = "w-4 h-4" /> { item . isFavorite ? 'Unfavorite' : 'Favorite' } </ MenuItem >
245245 < MenuItem id = "edit" > < PencilIcon aria-hidden className = "w-4 h-4" /> Edit…</ MenuItem >
@@ -266,7 +266,7 @@ export function ExampleApp(): React.ReactNode {
266266 < TableHeader columns = { columns } >
267267 { column => < Column { ...column } /> }
268268 </ TableHeader >
269- < TableBody items = { items } dependencies = { [ columns ] } >
269+ < TableBody items = { items } dependencies = { [ columns ] } renderEmptyState = { ( ) => 'No results. Try changing the filters.' } >
270270 { item => (
271271 < Row columns = { columns } >
272272 { column => {
0 commit comments