@@ -15,13 +15,13 @@ import {Button} from 'tailwind-starter/Button';
1515import { Cell , Column , Row , TableHeader } from 'tailwind-starter/Table' ;
1616import { Checkbox } from 'tailwind-starter/Checkbox' ;
1717import { CloudSun , Dessert , Droplet , Droplets , FilterIcon , Mail , MoreHorizontal , PencilIcon , PlusIcon , RefreshCw , ShareIcon , SlidersIcon , StarIcon , Sun , SunDim , TrashIcon , Twitter } from 'lucide-react' ;
18- import { ColumnProps , Dialog , DialogTrigger , DropZone , Form , Heading , isFileDropItem , Key , MenuTrigger , ModalOverlay , ModalOverlayProps , Modal as RACModal , ResizableTableContainer , Selection , SortDescriptor , SubmenuTrigger , Table , TableBody , Text , ToggleButton , ToggleButtonProps , TooltipTrigger } from 'react-aria-components' ;
18+ import { ColumnProps , Dialog , DialogTrigger , DropZone , Form , Heading , isFileDropItem , Key , ModalOverlay , ModalOverlayProps , Modal as RACModal , ResizableTableContainer , Selection , SortDescriptor , Table , TableBody , Text , ToggleButton , ToggleButtonProps , TooltipTrigger } from 'react-aria-components' ;
1919import { ComboBox , ComboBoxItem } from 'tailwind-starter/ComboBox' ;
2020import { DatePicker } from 'tailwind-starter/DatePicker' ;
2121import { focusRing } from 'tailwind-starter/utils' ;
2222import { getLocalTimeZone , today } from '@internationalized/date' ;
2323import { GridList , GridListItem } from 'tailwind-starter/GridList' ;
24- import { Menu , MenuItem } from 'tailwind-starter/Menu' ;
24+ import { Menu , MenuItem , MenuTrigger , SubmenuTrigger } from 'tailwind-starter/Menu' ;
2525import { Modal } from 'tailwind-starter/Modal' ;
2626import plants , { Plant } from './plants' ;
2727import { Popover } from 'tailwind-starter/Popover' ;
@@ -41,7 +41,7 @@ const allColumns: ColumnProps[] = [
4141 { id : 'cycle' , children : 'Cycle' , defaultWidth : 120 , allowsSorting : true } ,
4242 { id : 'sunlight' , children : 'Sunlight' , defaultWidth : 120 , allowsSorting : true } ,
4343 { id : 'watering' , children : 'Watering' , defaultWidth : 120 , allowsSorting : true } ,
44- { id : 'actions' , children : < VisuallyHidden > Actions</ VisuallyHidden > , width : 44 , minWidth : 44 }
44+ { id : 'actions' , children : < VisuallyHidden > Actions</ VisuallyHidden > , width : 64 , minWidth : 64 }
4545] ;
4646
4747let hideOnScroll = document . getElementById ( 'hideOnScroll' ) ;
@@ -237,9 +237,9 @@ export function ExampleApp(): React.ReactNode {
237237 < img alt = "" src = { item . default_image ?. thumbnail } className = "inline rounded-sm row-span-3 object-contain h-[40px]" />
238238 < span className = "truncate capitalize" > { item . common_name } </ span >
239239 < span className = "truncate text-xs text-gray-600 dark:text-zinc-400 col-start-2 row-start-2" > { item . scientific_name } </ span >
240- < MenuTrigger >
241- < Button aria-label = "Actions" variant = "icon " className = "row-span-2 place-self-center" > < MoreHorizontal className = "w-5 h-5" /> </ Button >
242- < Menu placement = "bottom end" onAction = { action => onAction ( item , action ) } >
240+ < MenuTrigger placement = "bottom end" >
241+ < Button aria-label = "Actions" variant = "secondary " className = "row-span-2 place-self-center" > < MoreHorizontal className = "w-5 h-5" /> </ Button >
242+ < Menu onAction = { action => onAction ( item , action ) } >
243243 < MenuItem id = "favorite" > < StarIcon aria-hidden className = "w-4 h-4" /> { item . isFavorite ? 'Unfavorite' : 'Favorite' } </ MenuItem >
244244 < MenuItem id = "edit" > < PencilIcon aria-hidden className = "w-4 h-4" /> Edit…</ MenuItem >
245245 < MenuItem id = "delete" > < TrashIcon aria-hidden className = "w-4 h-4" /> Delete…</ MenuItem >
@@ -296,7 +296,7 @@ export function ExampleApp(): React.ReactNode {
296296 return (
297297 < Cell >
298298 < MenuTrigger >
299- < Button aria-label = "Actions" variant = "icon " >
299+ < Button aria-label = "Actions" variant = "secondary " >
300300 < MoreHorizontal aria-hidden className = "w-5 h-5" />
301301 </ Button >
302302 < Menu onAction = { action => onAction ( item , action ) } >
0 commit comments