@lotte-innovate/ui-component-test 0.1.74 → 0.1.80
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_virtual/_commonjsHelpers.mjs +2 -0
- package/dist/_virtual/_commonjsHelpers.mjs.map +1 -0
- package/dist/_virtual/index.mjs +2 -0
- package/dist/_virtual/index.mjs.map +1 -0
- package/dist/_virtual/index2.mjs +2 -0
- package/dist/_virtual/index2.mjs.map +1 -0
- package/dist/_virtual/jsx-runtime.mjs +2 -0
- package/dist/_virtual/jsx-runtime.mjs.map +1 -0
- package/dist/_virtual/jsx-runtime2.mjs +2 -0
- package/dist/_virtual/jsx-runtime2.mjs.map +1 -0
- package/dist/_virtual/react-jsx-runtime.development.mjs +2 -0
- package/dist/_virtual/react-jsx-runtime.development.mjs.map +1 -0
- package/dist/_virtual/react-jsx-runtime.production.min.mjs +2 -0
- package/dist/_virtual/react-jsx-runtime.production.min.mjs.map +1 -0
- package/dist/lib/Typography/Header/index.js +2 -2
- package/dist/lib/Typography/Header/index.mjs +2 -0
- package/dist/lib/Typography/Header/index.mjs.map +1 -0
- package/dist/lib/Typography/Text/index.js +2 -2
- package/dist/lib/Typography/Text/index.mjs +2 -0
- package/dist/lib/Typography/Text/index.mjs.map +1 -0
- package/dist/lib/color/alpha.mjs +2 -0
- package/dist/lib/color/alpha.mjs.map +1 -0
- package/dist/lib/color/constants.mjs +2 -0
- package/dist/lib/color/constants.mjs.map +1 -0
- package/dist/lib/color/light.mjs +2 -0
- package/dist/lib/color/light.mjs.map +1 -0
- package/dist/lib/components/Accordion/index.js +2 -2
- package/dist/lib/components/Accordion/index.mjs +2 -0
- package/dist/lib/components/Accordion/index.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogAction.js +2 -2
- package/dist/lib/components/AlertDialog/AlertDialogAction.mjs +2 -0
- package/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogCancel.js +2 -2
- package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs +2 -0
- package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogContent.js +2 -2
- package/dist/lib/components/AlertDialog/AlertDialogContent.mjs +2 -0
- package/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogDescription.js +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs +2 -0
- package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs +2 -0
- package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogTitle.js +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs +2 -0
- package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +2 -2
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +2 -0
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/index.d.ts +1 -0
- package/dist/lib/components/AlertDialog/index.mjs +2 -0
- package/dist/lib/components/AlertDialog/index.mjs.map +1 -0
- package/dist/lib/components/AspectRatio/index.js +2 -2
- package/dist/lib/components/AspectRatio/index.mjs +2 -0
- package/dist/lib/components/AspectRatio/index.mjs.map +1 -0
- package/dist/lib/components/Avatar/index.js +2 -2
- package/dist/lib/components/Avatar/index.mjs +2 -0
- package/dist/lib/components/Avatar/index.mjs.map +1 -0
- package/dist/lib/components/Badge/index.js +2 -2
- package/dist/lib/components/Badge/index.mjs +2 -0
- package/dist/lib/components/Badge/index.mjs.map +1 -0
- package/dist/lib/components/BarChart/index.js +4 -4
- package/dist/lib/components/BarChart/index.mjs +2 -0
- package/dist/lib/components/BarChart/index.mjs.map +1 -0
- package/dist/lib/components/BubbleChart/index.js +4 -4
- package/dist/lib/components/BubbleChart/index.mjs +2 -0
- package/dist/lib/components/BubbleChart/index.mjs.map +1 -0
- package/dist/lib/components/Button/index.js +2 -2
- package/dist/lib/components/Button/index.mjs +2 -0
- package/dist/lib/components/Button/index.mjs.map +1 -0
- package/dist/lib/components/Callout/CalloutIcon.js +2 -2
- package/dist/lib/components/Callout/CalloutIcon.mjs +2 -0
- package/dist/lib/components/Callout/CalloutIcon.mjs.map +1 -0
- package/dist/lib/components/Callout/CalloutRoot.js +2 -2
- package/dist/lib/components/Callout/CalloutRoot.mjs +2 -0
- package/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -0
- package/dist/lib/components/Callout/CalloutText.js +1 -1
- package/dist/lib/components/Callout/CalloutText.mjs +2 -0
- package/dist/lib/components/Callout/CalloutText.mjs.map +1 -0
- package/dist/lib/components/Callout/index.d.ts +1 -0
- package/dist/lib/components/Callout/index.mjs +2 -0
- package/dist/lib/components/Callout/index.mjs.map +1 -0
- package/dist/lib/components/Card/index.js +2 -2
- package/dist/lib/components/Card/index.mjs +2 -0
- package/dist/lib/components/Card/index.mjs.map +1 -0
- package/dist/lib/components/Checkbox/index.js +3 -3
- package/dist/lib/components/Checkbox/index.mjs +2 -0
- package/dist/lib/components/Checkbox/index.mjs.map +1 -0
- package/dist/lib/components/CheckboxCard/index.js +4 -4
- package/dist/lib/components/CheckboxCard/index.mjs +2 -0
- package/dist/lib/components/CheckboxCard/index.mjs.map +1 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs +2 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs.map +1 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +2 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -0
- package/dist/lib/components/CheckboxGroup/index.d.ts +2 -1
- package/dist/lib/components/CheckboxGroup/index.mjs +2 -0
- package/dist/lib/components/CheckboxGroup/index.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuContent.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuContent.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuItem.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuItem.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuLabel.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.js +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.js +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/index.d.ts +1 -0
- package/dist/lib/components/ContextMenu/index.mjs +2 -0
- package/dist/lib/components/ContextMenu/index.mjs.map +1 -0
- package/dist/lib/components/DataList/DataListItem.js +2 -2
- package/dist/lib/components/DataList/DataListItem.mjs +2 -0
- package/dist/lib/components/DataList/DataListItem.mjs.map +1 -0
- package/dist/lib/components/DataList/DataListLabel.js +2 -2
- package/dist/lib/components/DataList/DataListLabel.mjs +2 -0
- package/dist/lib/components/DataList/DataListLabel.mjs.map +1 -0
- package/dist/lib/components/DataList/DataListRoot.js +1 -1
- package/dist/lib/components/DataList/DataListRoot.mjs +2 -0
- package/dist/lib/components/DataList/DataListRoot.mjs.map +1 -0
- package/dist/lib/components/DataList/DataListValue.js +2 -2
- package/dist/lib/components/DataList/DataListValue.mjs +2 -0
- package/dist/lib/components/DataList/DataListValue.mjs.map +1 -0
- package/dist/lib/components/DataList/index.d.ts +1 -0
- package/dist/lib/components/DataList/index.mjs +2 -0
- package/dist/lib/components/DataList/index.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogAction.js +2 -2
- package/dist/lib/components/Dialog/DialogAction.mjs +2 -0
- package/dist/lib/components/Dialog/DialogAction.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogCancel.js +1 -1
- package/dist/lib/components/Dialog/DialogCancel.mjs +2 -0
- package/dist/lib/components/Dialog/DialogCancel.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogContent.js +2 -2
- package/dist/lib/components/Dialog/DialogContent.mjs +2 -0
- package/dist/lib/components/Dialog/DialogContent.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogDescription.js +1 -1
- package/dist/lib/components/Dialog/DialogDescription.mjs +2 -0
- package/dist/lib/components/Dialog/DialogDescription.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogRoot.mjs +2 -0
- package/dist/lib/components/Dialog/DialogRoot.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogSlot.js +1 -1
- package/dist/lib/components/Dialog/DialogSlot.mjs +2 -0
- package/dist/lib/components/Dialog/DialogSlot.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogTitle.js +1 -1
- package/dist/lib/components/Dialog/DialogTitle.mjs +2 -0
- package/dist/lib/components/Dialog/DialogTitle.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogTrigger.mjs +2 -0
- package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -0
- package/dist/lib/components/Dialog/index.d.ts +2 -1
- package/dist/lib/components/Dialog/index.mjs +2 -0
- package/dist/lib/components/Dialog/index.mjs.map +1 -0
- package/dist/lib/components/DoughnutChart/index.js +3 -3
- package/dist/lib/components/DoughnutChart/index.mjs +2 -0
- package/dist/lib/components/DoughnutChart/index.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/index.d.ts +2 -1
- package/dist/lib/components/DropdownMenu/index.mjs +2 -0
- package/dist/lib/components/DropdownMenu/index.mjs.map +1 -0
- package/dist/lib/components/HoverCard/HoverCardContent.js +2 -2
- package/dist/lib/components/HoverCard/HoverCardContent.mjs +2 -0
- package/dist/lib/components/HoverCard/HoverCardContent.mjs.map +1 -0
- package/dist/lib/components/HoverCard/HoverCardRoot.mjs +2 -0
- package/dist/lib/components/HoverCard/HoverCardRoot.mjs.map +1 -0
- package/dist/lib/components/HoverCard/HoverCardTrigger.mjs +2 -0
- package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -0
- package/dist/lib/components/HoverCard/index.d.ts +2 -1
- package/dist/lib/components/HoverCard/index.mjs +2 -0
- package/dist/lib/components/HoverCard/index.mjs.map +1 -0
- package/dist/lib/components/IconButton/index.js +2 -2
- package/dist/lib/components/IconButton/index.mjs +2 -0
- package/dist/lib/components/IconButton/index.mjs.map +1 -0
- package/dist/lib/components/Inset/index.js +2 -2
- package/dist/lib/components/Inset/index.mjs +2 -0
- package/dist/lib/components/Inset/index.mjs.map +1 -0
- package/dist/lib/components/Label/index.js +2 -2
- package/dist/lib/components/Label/index.mjs +2 -0
- package/dist/lib/components/Label/index.mjs.map +1 -0
- package/dist/lib/components/LineChart/index.js +4 -4
- package/dist/lib/components/LineChart/index.mjs +2 -0
- package/dist/lib/components/LineChart/index.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarCheckboxItem.js +2 -2
- package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarContent.js +2 -2
- package/dist/lib/components/Menubar/MenubarContent.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarContent.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarItem.js +2 -2
- package/dist/lib/components/Menubar/MenubarItem.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarItem.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarItemIndicator.js +2 -2
- package/dist/lib/components/Menubar/MenubarItemIndicator.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarMenu.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarRadioGroup.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarRadioGroup.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarRadioItem.js +2 -2
- package/dist/lib/components/Menubar/MenubarRadioItem.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarRadioItem.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarRoot.js +2 -2
- package/dist/lib/components/Menubar/MenubarRoot.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarSeparator.js +1 -1
- package/dist/lib/components/Menubar/MenubarSeparator.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarSub.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarSubContent.js +2 -2
- package/dist/lib/components/Menubar/MenubarSubContent.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarSubContent.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarSubTrigger.js +2 -2
- package/dist/lib/components/Menubar/MenubarSubTrigger.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarSubTrigger.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarTrigger.js +2 -2
- package/dist/lib/components/Menubar/MenubarTrigger.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarTrigger.mjs.map +1 -0
- package/dist/lib/components/Menubar/index.d.ts +1 -0
- package/dist/lib/components/Menubar/index.mjs +2 -0
- package/dist/lib/components/Menubar/index.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +2 -2
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +2 -2
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuList.js +2 -2
- package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +2 -2
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +2 -2
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/index.d.ts +1 -0
- package/dist/lib/components/NavigationMenu/index.mjs +2 -0
- package/dist/lib/components/NavigationMenu/index.mjs.map +1 -0
- package/dist/lib/components/PieChart/index.js +3 -3
- package/dist/lib/components/PieChart/index.mjs +2 -0
- package/dist/lib/components/PieChart/index.mjs.map +1 -0
- package/dist/lib/components/Popover/PopoverClose.js +1 -1
- package/dist/lib/components/Popover/PopoverClose.mjs +2 -0
- package/dist/lib/components/Popover/PopoverClose.mjs.map +1 -0
- package/dist/lib/components/Popover/PopoverContent.js +2 -2
- package/dist/lib/components/Popover/PopoverContent.mjs +2 -0
- package/dist/lib/components/Popover/PopoverContent.mjs.map +1 -0
- package/dist/lib/components/Popover/PopoverRoot.mjs +2 -0
- package/dist/lib/components/Popover/PopoverRoot.mjs.map +1 -0
- package/dist/lib/components/Popover/PopoverTrigger.mjs +2 -0
- package/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -0
- package/dist/lib/components/Popover/index.d.ts +2 -1
- package/dist/lib/components/Popover/index.mjs +2 -0
- package/dist/lib/components/Popover/index.mjs.map +1 -0
- package/dist/lib/components/Progress/index.js +2 -2
- package/dist/lib/components/Progress/index.mjs +2 -0
- package/dist/lib/components/Progress/index.mjs.map +1 -0
- package/dist/lib/components/RadarChart/index.js +4 -4
- package/dist/lib/components/RadarChart/index.mjs +2 -0
- package/dist/lib/components/RadarChart/index.mjs.map +1 -0
- package/dist/lib/components/Radio/index.js +2 -2
- package/dist/lib/components/Radio/index.mjs +2 -0
- package/dist/lib/components/Radio/index.mjs.map +1 -0
- package/dist/lib/components/RadioCards/RadioCardsItem.js +1 -1
- package/dist/lib/components/RadioCards/RadioCardsItem.mjs +2 -0
- package/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +1 -0
- package/dist/lib/components/RadioCards/RadioCardsRoot.js +2 -2
- package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +2 -0
- package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -0
- package/dist/lib/components/RadioCards/index.d.ts +1 -0
- package/dist/lib/components/RadioCards/index.mjs +2 -0
- package/dist/lib/components/RadioCards/index.mjs.map +1 -0
- package/dist/lib/components/RadioGroup/RadioGroupItem.js +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupItem.mjs +2 -0
- package/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +1 -0
- package/dist/lib/components/RadioGroup/RadioGroupRoot.js +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +2 -0
- package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -0
- package/dist/lib/components/RadioGroup/index.d.ts +1 -0
- package/dist/lib/components/RadioGroup/index.mjs +2 -0
- package/dist/lib/components/RadioGroup/index.mjs.map +1 -0
- package/dist/lib/components/ScrollArea/index.mjs +2 -0
- package/dist/lib/components/ScrollArea/index.mjs.map +1 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.js +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs +2 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +2 -2
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +2 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -0
- package/dist/lib/components/SegmentedControl/index.d.ts +2 -1
- package/dist/lib/components/SegmentedControl/index.mjs +2 -0
- package/dist/lib/components/SegmentedControl/index.mjs.map +1 -0
- package/dist/lib/components/Select/index.js +2 -2
- package/dist/lib/components/Select/index.mjs +2 -0
- package/dist/lib/components/Select/index.mjs.map +1 -0
- package/dist/lib/components/Separator/index.js +2 -2
- package/dist/lib/components/Separator/index.mjs +2 -0
- package/dist/lib/components/Separator/index.mjs.map +1 -0
- package/dist/lib/components/Skeleton/index.js +2 -2
- package/dist/lib/components/Skeleton/index.mjs +2 -0
- package/dist/lib/components/Skeleton/index.mjs.map +1 -0
- package/dist/lib/components/Slider/index.js +2 -2
- package/dist/lib/components/Slider/index.mjs +2 -0
- package/dist/lib/components/Slider/index.mjs.map +1 -0
- package/dist/lib/components/Spinner/index.js +2 -2
- package/dist/lib/components/Spinner/index.mjs +2 -0
- package/dist/lib/components/Spinner/index.mjs.map +1 -0
- package/dist/lib/components/TabNav/index.js +1 -1
- package/dist/lib/components/TabNav/index.mjs +2 -0
- package/dist/lib/components/TabNav/index.mjs.map +1 -0
- package/dist/lib/components/Table/index.js +2 -2
- package/dist/lib/components/Table/index.mjs +2 -0
- package/dist/lib/components/Table/index.mjs.map +1 -0
- package/dist/lib/components/Tabs/index.js +2 -2
- package/dist/lib/components/Tabs/index.mjs +2 -0
- package/dist/lib/components/Tabs/index.mjs.map +1 -0
- package/dist/lib/components/TextArea/index.js +2 -2
- package/dist/lib/components/TextArea/index.mjs +2 -0
- package/dist/lib/components/TextArea/index.mjs.map +1 -0
- package/dist/lib/components/TextField/index.js +2 -2
- package/dist/lib/components/TextField/index.mjs +2 -0
- package/dist/lib/components/TextField/index.mjs.map +1 -0
- package/dist/lib/components/Toast/ToastActionButton.js +3 -3
- package/dist/lib/components/Toast/ToastActionButton.mjs +2 -0
- package/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -0
- package/dist/lib/components/Toast/ToastDescription.js +1 -1
- package/dist/lib/components/Toast/ToastDescription.mjs +2 -0
- package/dist/lib/components/Toast/ToastDescription.mjs.map +1 -0
- package/dist/lib/components/Toast/ToastRoot.js +2 -2
- package/dist/lib/components/Toast/ToastRoot.mjs +2 -0
- package/dist/lib/components/Toast/ToastRoot.mjs.map +1 -0
- package/dist/lib/components/Toast/ToastTitle.js +1 -1
- package/dist/lib/components/Toast/ToastTitle.mjs +2 -0
- package/dist/lib/components/Toast/ToastTitle.mjs.map +1 -0
- package/dist/lib/components/Toast/index.d.ts +1 -0
- package/dist/lib/components/Toast/index.mjs +2 -0
- package/dist/lib/components/Toast/index.mjs.map +1 -0
- package/dist/lib/components/Toggle/ToggleWithText.js +3 -3
- package/dist/lib/components/Toggle/ToggleWithText.mjs +2 -0
- package/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -0
- package/dist/lib/components/Toggle/index.js +2 -2
- package/dist/lib/components/Toggle/index.mjs +2 -0
- package/dist/lib/components/Toggle/index.mjs.map +1 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.js +2 -2
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +2 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +1 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +2 -2
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +2 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -0
- package/dist/lib/components/ToggleGroup/index.d.ts +1 -0
- package/dist/lib/components/ToggleGroup/index.mjs +2 -0
- package/dist/lib/components/ToggleGroup/index.mjs.map +1 -0
- package/dist/lib/components/ToggleSwitch/index.js +3 -3
- package/dist/lib/components/ToggleSwitch/index.mjs +2 -0
- package/dist/lib/components/ToggleSwitch/index.mjs.map +1 -0
- package/dist/lib/components/Tooltip/index.js +2 -2
- package/dist/lib/components/Tooltip/index.mjs +2 -0
- package/dist/lib/components/Tooltip/index.mjs.map +1 -0
- package/dist/lib/constants.d.ts +2 -2
- package/dist/lib/constants.js +2 -2
- package/dist/lib/constants.mjs +2 -0
- package/dist/lib/constants.mjs.map +1 -0
- package/dist/lib/index.mjs +2 -0
- package/dist/lib/index.mjs.map +1 -0
- package/dist/lib/utils/useDarkMode.js +1 -1
- package/dist/lib/utils/useDarkMode.mjs +2 -0
- package/dist/lib/utils/useDarkMode.mjs.map +1 -0
- package/dist/lib/utils/utils.mjs +2 -0
- package/dist/lib/utils/utils.mjs.map +1 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +2 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.map +1 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +2 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.map +1 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +2 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +2 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +2 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.map +1 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.mjs +8 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/number/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/number/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-label/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-slider/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-slider/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-checkbox.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-checkbox.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-radio.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-radio.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-tab-list.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-tab-list.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/inert.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/inert.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/require-react-element.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/require-react-element.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/color.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/color.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/gap.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/gap.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/height.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/height.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/margin.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/margin.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/padding.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/padding.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/prop-def.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/prop-def.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/width.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/width.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.map +1 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.mjs +2 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.mjs.map +1 -0
- package/dist/node_modules/chart.js/auto/auto.mjs +2 -0
- package/dist/node_modules/chart.js/auto/auto.mjs.map +1 -0
- package/dist/node_modules/chart.js/dist/chart.mjs +8 -0
- package/dist/node_modules/chart.js/dist/chart.mjs.map +1 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.mjs +8 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.mjs.map +1 -0
- package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs +8 -0
- package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs.map +1 -0
- package/dist/node_modules/class-variance-authority/dist/index.mjs +2 -0
- package/dist/node_modules/class-variance-authority/dist/index.mjs.map +1 -0
- package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs +2 -0
- package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.map +1 -0
- package/dist/node_modules/classnames/index.mjs +7 -0
- package/dist/node_modules/classnames/index.mjs.map +1 -0
- package/dist/node_modules/clsx/dist/clsx.mjs +2 -0
- package/dist/node_modules/clsx/dist/clsx.mjs.map +1 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.mjs +2 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.mjs.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs +11 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +11 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs.map +1 -0
- package/dist/node_modules/react/jsx-runtime.mjs +2 -0
- package/dist/node_modules/react/jsx-runtime.mjs.map +1 -0
- package/dist/node_modules/react-chartjs-2/dist/index.mjs +2 -0
- package/dist/node_modules/react-chartjs-2/dist/index.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.mjs +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.mjs +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +2 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +2 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +2 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.mjs +2 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.mjs.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.mjs +2 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.mjs.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.mjs +2 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.mjs.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs +2 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.mjs +2 -0
- package/dist/node_modules/tslib/tslib.es6.mjs.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +2 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.mjs.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +2 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.mjs +2 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.mjs.map +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.mjs +2 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.mjs.map +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.mjs +2 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.mjs.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -7
- package/dist/_virtual/_commonjsHelpers.js +0 -2
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/index.js +0 -2
- package/dist/_virtual/index.js.map +0 -1
- package/dist/_virtual/index2.js +0 -2
- package/dist/_virtual/index2.js.map +0 -1
- package/dist/_virtual/jsx-runtime.js +0 -2
- package/dist/_virtual/jsx-runtime.js.map +0 -1
- package/dist/_virtual/jsx-runtime2.js +0 -2
- package/dist/_virtual/jsx-runtime2.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.js +0 -2
- package/dist/_virtual/react-jsx-runtime.development.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.min.js +0 -2
- package/dist/_virtual/react-jsx-runtime.production.min.js.map +0 -1
- package/dist/dist/lib/Typography/Header/index.js +0 -2
- package/dist/dist/lib/Typography/Header/index.js.map +0 -1
- package/dist/dist/lib/Typography/Text/index.js +0 -2
- package/dist/dist/lib/Typography/Text/index.js.map +0 -1
- package/dist/dist/lib/color/alpha.js +0 -2
- package/dist/dist/lib/color/alpha.js.map +0 -1
- package/dist/dist/lib/color/constants.js +0 -2
- package/dist/dist/lib/color/constants.js.map +0 -1
- package/dist/dist/lib/color/light.js +0 -2
- package/dist/dist/lib/color/light.js.map +0 -1
- package/dist/dist/lib/components/Accordion/index.js +0 -2
- package/dist/dist/lib/components/Accordion/index.js.map +0 -1
- package/dist/dist/lib/components/AlertDialog/AlertDialogAction.js +0 -2
- package/dist/dist/lib/components/AlertDialog/AlertDialogAction.js.map +0 -1
- package/dist/dist/lib/components/AlertDialog/AlertDialogCancel.js +0 -2
- package/dist/dist/lib/components/AlertDialog/AlertDialogCancel.js.map +0 -1
- package/dist/dist/lib/components/AlertDialog/AlertDialogContent.js +0 -2
- package/dist/dist/lib/components/AlertDialog/AlertDialogContent.js.map +0 -1
- package/dist/dist/lib/components/AlertDialog/AlertDialogDescription.js +0 -2
- package/dist/dist/lib/components/AlertDialog/AlertDialogDescription.js.map +0 -1
- package/dist/dist/lib/components/AlertDialog/AlertDialogRoot.js +0 -2
- package/dist/dist/lib/components/AlertDialog/AlertDialogRoot.js.map +0 -1
- package/dist/dist/lib/components/AlertDialog/AlertDialogTitle.js +0 -2
- package/dist/dist/lib/components/AlertDialog/AlertDialogTitle.js.map +0 -1
- package/dist/dist/lib/components/AlertDialog/AlertDialogTrigger.js +0 -2
- package/dist/dist/lib/components/AlertDialog/AlertDialogTrigger.js.map +0 -1
- package/dist/dist/lib/components/AlertDialog/index.js +0 -2
- package/dist/dist/lib/components/AlertDialog/index.js.map +0 -1
- package/dist/dist/lib/components/AspectRatio/index.js +0 -2
- package/dist/dist/lib/components/AspectRatio/index.js.map +0 -1
- package/dist/dist/lib/components/Avatar/index.js +0 -2
- package/dist/dist/lib/components/Avatar/index.js.map +0 -1
- package/dist/dist/lib/components/Badge/index.js +0 -2
- package/dist/dist/lib/components/Badge/index.js.map +0 -1
- package/dist/dist/lib/components/BarChart/index.js +0 -2
- package/dist/dist/lib/components/BarChart/index.js.map +0 -1
- package/dist/dist/lib/components/BubbleChart/index.js +0 -2
- package/dist/dist/lib/components/BubbleChart/index.js.map +0 -1
- package/dist/dist/lib/components/Button/index.js +0 -2
- package/dist/dist/lib/components/Button/index.js.map +0 -1
- package/dist/dist/lib/components/Callout/CalloutIcon.js +0 -2
- package/dist/dist/lib/components/Callout/CalloutIcon.js.map +0 -1
- package/dist/dist/lib/components/Callout/CalloutRoot.js +0 -2
- package/dist/dist/lib/components/Callout/CalloutRoot.js.map +0 -1
- package/dist/dist/lib/components/Callout/CalloutText.js +0 -2
- package/dist/dist/lib/components/Callout/CalloutText.js.map +0 -1
- package/dist/dist/lib/components/Callout/index.js +0 -2
- package/dist/dist/lib/components/Callout/index.js.map +0 -1
- package/dist/dist/lib/components/Card/index.js +0 -2
- package/dist/dist/lib/components/Card/index.js.map +0 -1
- package/dist/dist/lib/components/Checkbox/index.js +0 -2
- package/dist/dist/lib/components/Checkbox/index.js.map +0 -1
- package/dist/dist/lib/components/CheckboxCard/index.js +0 -2
- package/dist/dist/lib/components/CheckboxCard/index.js.map +0 -1
- package/dist/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +0 -2
- package/dist/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js.map +0 -1
- package/dist/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +0 -2
- package/dist/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js.map +0 -1
- package/dist/dist/lib/components/CheckboxGroup/index.js +0 -2
- package/dist/dist/lib/components/CheckboxGroup/index.js.map +0 -1
- package/dist/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +0 -2
- package/dist/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js.map +0 -1
- package/dist/dist/lib/components/ContextMenu/ContextMenuContent.js +0 -2
- package/dist/dist/lib/components/ContextMenu/ContextMenuContent.js.map +0 -1
- package/dist/dist/lib/components/ContextMenu/ContextMenuGroup.js +0 -2
- package/dist/dist/lib/components/ContextMenu/ContextMenuGroup.js.map +0 -1
- package/dist/dist/lib/components/ContextMenu/ContextMenuItem.js +0 -2
- package/dist/dist/lib/components/ContextMenu/ContextMenuItem.js.map +0 -1
- package/dist/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +0 -2
- package/dist/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js.map +0 -1
- package/dist/dist/lib/components/ContextMenu/ContextMenuLabel.js +0 -2
- package/dist/dist/lib/components/ContextMenu/ContextMenuLabel.js.map +0 -1
- package/dist/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +0 -2
- package/dist/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js.map +0 -1
- package/dist/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +0 -2
- package/dist/dist/lib/components/ContextMenu/ContextMenuRadioItem.js.map +0 -1
- package/dist/dist/lib/components/ContextMenu/ContextMenuRoot.js +0 -2
- package/dist/dist/lib/components/ContextMenu/ContextMenuRoot.js.map +0 -1
- package/dist/dist/lib/components/ContextMenu/ContextMenuSeparator.js +0 -2
- package/dist/dist/lib/components/ContextMenu/ContextMenuSeparator.js.map +0 -1
- package/dist/dist/lib/components/ContextMenu/ContextMenuSubContent.js +0 -2
- package/dist/dist/lib/components/ContextMenu/ContextMenuSubContent.js.map +0 -1
- package/dist/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +0 -2
- package/dist/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js.map +0 -1
- package/dist/dist/lib/components/ContextMenu/ContextMenuTrigger.js +0 -2
- package/dist/dist/lib/components/ContextMenu/ContextMenuTrigger.js.map +0 -1
- package/dist/dist/lib/components/ContextMenu/index.js +0 -2
- package/dist/dist/lib/components/ContextMenu/index.js.map +0 -1
- package/dist/dist/lib/components/DataList/DataListItem.js +0 -2
- package/dist/dist/lib/components/DataList/DataListItem.js.map +0 -1
- package/dist/dist/lib/components/DataList/DataListLabel.js +0 -2
- package/dist/dist/lib/components/DataList/DataListLabel.js.map +0 -1
- package/dist/dist/lib/components/DataList/DataListRoot.js +0 -2
- package/dist/dist/lib/components/DataList/DataListRoot.js.map +0 -1
- package/dist/dist/lib/components/DataList/DataListValue.js +0 -2
- package/dist/dist/lib/components/DataList/DataListValue.js.map +0 -1
- package/dist/dist/lib/components/DataList/index.js +0 -2
- package/dist/dist/lib/components/DataList/index.js.map +0 -1
- package/dist/dist/lib/components/Dialog/DialogAction.js +0 -2
- package/dist/dist/lib/components/Dialog/DialogAction.js.map +0 -1
- package/dist/dist/lib/components/Dialog/DialogCancel.js +0 -2
- package/dist/dist/lib/components/Dialog/DialogCancel.js.map +0 -1
- package/dist/dist/lib/components/Dialog/DialogContent.js +0 -2
- package/dist/dist/lib/components/Dialog/DialogContent.js.map +0 -1
- package/dist/dist/lib/components/Dialog/DialogDescription.js +0 -2
- package/dist/dist/lib/components/Dialog/DialogDescription.js.map +0 -1
- package/dist/dist/lib/components/Dialog/DialogRoot.js +0 -2
- package/dist/dist/lib/components/Dialog/DialogRoot.js.map +0 -1
- package/dist/dist/lib/components/Dialog/DialogSlot.js +0 -2
- package/dist/dist/lib/components/Dialog/DialogSlot.js.map +0 -1
- package/dist/dist/lib/components/Dialog/DialogTitle.js +0 -2
- package/dist/dist/lib/components/Dialog/DialogTitle.js.map +0 -1
- package/dist/dist/lib/components/Dialog/DialogTrigger.js +0 -2
- package/dist/dist/lib/components/Dialog/DialogTrigger.js.map +0 -1
- package/dist/dist/lib/components/Dialog/index.js +0 -2
- package/dist/dist/lib/components/Dialog/index.js.map +0 -1
- package/dist/dist/lib/components/DoughnutChart/index.js +0 -2
- package/dist/dist/lib/components/DoughnutChart/index.js.map +0 -1
- package/dist/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.js +0 -2
- package/dist/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.js.map +0 -1
- package/dist/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +0 -2
- package/dist/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js.map +0 -1
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +0 -2
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js.map +0 -1
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuContent.js +0 -2
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuContent.js.map +0 -1
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuItem.js +0 -2
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuItem.js.map +0 -1
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +0 -2
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js.map +0 -1
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuLable.js +0 -2
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuLable.js.map +0 -1
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +0 -2
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js.map +0 -1
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +0 -2
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuRoot.js.map +0 -1
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +0 -2
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js.map +0 -1
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuSub.js +0 -2
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuSub.js.map +0 -1
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +0 -2
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js.map +0 -1
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +0 -2
- package/dist/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js.map +0 -1
- package/dist/dist/lib/components/DropdownMenu/index.js +0 -2
- package/dist/dist/lib/components/DropdownMenu/index.js.map +0 -1
- package/dist/dist/lib/components/HoverCard/HoverCardContent.js +0 -2
- package/dist/dist/lib/components/HoverCard/HoverCardContent.js.map +0 -1
- package/dist/dist/lib/components/HoverCard/HoverCardRoot.js +0 -2
- package/dist/dist/lib/components/HoverCard/HoverCardRoot.js.map +0 -1
- package/dist/dist/lib/components/HoverCard/HoverCardTrigger.js +0 -2
- package/dist/dist/lib/components/HoverCard/HoverCardTrigger.js.map +0 -1
- package/dist/dist/lib/components/HoverCard/index.js +0 -2
- package/dist/dist/lib/components/HoverCard/index.js.map +0 -1
- package/dist/dist/lib/components/IconButton/index.js +0 -2
- package/dist/dist/lib/components/IconButton/index.js.map +0 -1
- package/dist/dist/lib/components/Inset/index.js +0 -2
- package/dist/dist/lib/components/Inset/index.js.map +0 -1
- package/dist/dist/lib/components/Label/index.js +0 -2
- package/dist/dist/lib/components/Label/index.js.map +0 -1
- package/dist/dist/lib/components/LineChart/index.js +0 -2
- package/dist/dist/lib/components/LineChart/index.js.map +0 -1
- package/dist/dist/lib/components/Menubar/MenubarCheckboxItem.js +0 -2
- package/dist/dist/lib/components/Menubar/MenubarCheckboxItem.js.map +0 -1
- package/dist/dist/lib/components/Menubar/MenubarContent.js +0 -2
- package/dist/dist/lib/components/Menubar/MenubarContent.js.map +0 -1
- package/dist/dist/lib/components/Menubar/MenubarItem.js +0 -2
- package/dist/dist/lib/components/Menubar/MenubarItem.js.map +0 -1
- package/dist/dist/lib/components/Menubar/MenubarItemIndicator.js +0 -2
- package/dist/dist/lib/components/Menubar/MenubarItemIndicator.js.map +0 -1
- package/dist/dist/lib/components/Menubar/MenubarMenu.js +0 -2
- package/dist/dist/lib/components/Menubar/MenubarMenu.js.map +0 -1
- package/dist/dist/lib/components/Menubar/MenubarRadioGroup.js +0 -2
- package/dist/dist/lib/components/Menubar/MenubarRadioGroup.js.map +0 -1
- package/dist/dist/lib/components/Menubar/MenubarRadioItem.js +0 -2
- package/dist/dist/lib/components/Menubar/MenubarRadioItem.js.map +0 -1
- package/dist/dist/lib/components/Menubar/MenubarRoot.js +0 -2
- package/dist/dist/lib/components/Menubar/MenubarRoot.js.map +0 -1
- package/dist/dist/lib/components/Menubar/MenubarSeparator.js +0 -2
- package/dist/dist/lib/components/Menubar/MenubarSeparator.js.map +0 -1
- package/dist/dist/lib/components/Menubar/MenubarSub.js +0 -2
- package/dist/dist/lib/components/Menubar/MenubarSub.js.map +0 -1
- package/dist/dist/lib/components/Menubar/MenubarSubContent.js +0 -2
- package/dist/dist/lib/components/Menubar/MenubarSubContent.js.map +0 -1
- package/dist/dist/lib/components/Menubar/MenubarSubTrigger.js +0 -2
- package/dist/dist/lib/components/Menubar/MenubarSubTrigger.js.map +0 -1
- package/dist/dist/lib/components/Menubar/MenubarTrigger.js +0 -2
- package/dist/dist/lib/components/Menubar/MenubarTrigger.js.map +0 -1
- package/dist/dist/lib/components/Menubar/index.js +0 -2
- package/dist/dist/lib/components/Menubar/index.js.map +0 -1
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuContent.js +0 -2
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuContent.js.map +0 -1
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +0 -2
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js.map +0 -1
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuItem.js +0 -2
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuItem.js.map +0 -1
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuLink.js +0 -2
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuLink.js.map +0 -1
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuList.js +0 -2
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuList.js.map +0 -1
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +0 -2
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuRoot.js.map +0 -1
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +0 -2
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js.map +0 -1
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +0 -2
- package/dist/dist/lib/components/NavigationMenu/NavigationMenuViewport.js.map +0 -1
- package/dist/dist/lib/components/NavigationMenu/index.js +0 -2
- package/dist/dist/lib/components/NavigationMenu/index.js.map +0 -1
- package/dist/dist/lib/components/PieChart/index.js +0 -2
- package/dist/dist/lib/components/PieChart/index.js.map +0 -1
- package/dist/dist/lib/components/Popover/PopoverClose.js +0 -2
- package/dist/dist/lib/components/Popover/PopoverClose.js.map +0 -1
- package/dist/dist/lib/components/Popover/PopoverContent.js +0 -2
- package/dist/dist/lib/components/Popover/PopoverContent.js.map +0 -1
- package/dist/dist/lib/components/Popover/PopoverRoot.js +0 -2
- package/dist/dist/lib/components/Popover/PopoverRoot.js.map +0 -1
- package/dist/dist/lib/components/Popover/PopoverTrigger.js +0 -2
- package/dist/dist/lib/components/Popover/PopoverTrigger.js.map +0 -1
- package/dist/dist/lib/components/Popover/index.js +0 -2
- package/dist/dist/lib/components/Popover/index.js.map +0 -1
- package/dist/dist/lib/components/Progress/index.js +0 -2
- package/dist/dist/lib/components/Progress/index.js.map +0 -1
- package/dist/dist/lib/components/RadarChart/index.js +0 -2
- package/dist/dist/lib/components/RadarChart/index.js.map +0 -1
- package/dist/dist/lib/components/Radio/index.js +0 -2
- package/dist/dist/lib/components/Radio/index.js.map +0 -1
- package/dist/dist/lib/components/RadioCards/RadioCardsItem.js +0 -2
- package/dist/dist/lib/components/RadioCards/RadioCardsItem.js.map +0 -1
- package/dist/dist/lib/components/RadioCards/RadioCardsRoot.js +0 -2
- package/dist/dist/lib/components/RadioCards/RadioCardsRoot.js.map +0 -1
- package/dist/dist/lib/components/RadioCards/index.js +0 -2
- package/dist/dist/lib/components/RadioCards/index.js.map +0 -1
- package/dist/dist/lib/components/RadioGroup/RadioGroupItem.js +0 -2
- package/dist/dist/lib/components/RadioGroup/RadioGroupItem.js.map +0 -1
- package/dist/dist/lib/components/RadioGroup/RadioGroupRoot.js +0 -2
- package/dist/dist/lib/components/RadioGroup/RadioGroupRoot.js.map +0 -1
- package/dist/dist/lib/components/RadioGroup/index.js +0 -2
- package/dist/dist/lib/components/RadioGroup/index.js.map +0 -1
- package/dist/dist/lib/components/ScrollArea/index.js +0 -2
- package/dist/dist/lib/components/ScrollArea/index.js.map +0 -1
- package/dist/dist/lib/components/SegmentedControl/SegmentedControlItem.js +0 -2
- package/dist/dist/lib/components/SegmentedControl/SegmentedControlItem.js.map +0 -1
- package/dist/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +0 -2
- package/dist/dist/lib/components/SegmentedControl/SegmentedControlRoot.js.map +0 -1
- package/dist/dist/lib/components/SegmentedControl/index.js +0 -2
- package/dist/dist/lib/components/SegmentedControl/index.js.map +0 -1
- package/dist/dist/lib/components/Select/index.js +0 -2
- package/dist/dist/lib/components/Select/index.js.map +0 -1
- package/dist/dist/lib/components/Separator/index.js +0 -2
- package/dist/dist/lib/components/Separator/index.js.map +0 -1
- package/dist/dist/lib/components/Skeleton/index.js +0 -2
- package/dist/dist/lib/components/Skeleton/index.js.map +0 -1
- package/dist/dist/lib/components/Slider/index.js +0 -2
- package/dist/dist/lib/components/Slider/index.js.map +0 -1
- package/dist/dist/lib/components/Spinner/index.js +0 -2
- package/dist/dist/lib/components/Spinner/index.js.map +0 -1
- package/dist/dist/lib/components/TabNav/index.js +0 -2
- package/dist/dist/lib/components/TabNav/index.js.map +0 -1
- package/dist/dist/lib/components/Table/index.js +0 -2
- package/dist/dist/lib/components/Table/index.js.map +0 -1
- package/dist/dist/lib/components/Tabs/index.js +0 -2
- package/dist/dist/lib/components/Tabs/index.js.map +0 -1
- package/dist/dist/lib/components/TextArea/index.js +0 -2
- package/dist/dist/lib/components/TextArea/index.js.map +0 -1
- package/dist/dist/lib/components/TextField/index.js +0 -2
- package/dist/dist/lib/components/TextField/index.js.map +0 -1
- package/dist/dist/lib/components/Toast/ToastActionButton.js +0 -2
- package/dist/dist/lib/components/Toast/ToastActionButton.js.map +0 -1
- package/dist/dist/lib/components/Toast/ToastDescription.js +0 -2
- package/dist/dist/lib/components/Toast/ToastDescription.js.map +0 -1
- package/dist/dist/lib/components/Toast/ToastRoot.js +0 -2
- package/dist/dist/lib/components/Toast/ToastRoot.js.map +0 -1
- package/dist/dist/lib/components/Toast/ToastTitle.js +0 -2
- package/dist/dist/lib/components/Toast/ToastTitle.js.map +0 -1
- package/dist/dist/lib/components/Toast/index.js +0 -2
- package/dist/dist/lib/components/Toast/index.js.map +0 -1
- package/dist/dist/lib/components/Toggle/ToggleWithText.js +0 -2
- package/dist/dist/lib/components/Toggle/ToggleWithText.js.map +0 -1
- package/dist/dist/lib/components/Toggle/index.js +0 -2
- package/dist/dist/lib/components/Toggle/index.js.map +0 -1
- package/dist/dist/lib/components/ToggleGroup/ToggleGroupItem.js +0 -2
- package/dist/dist/lib/components/ToggleGroup/ToggleGroupItem.js.map +0 -1
- package/dist/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +0 -2
- package/dist/dist/lib/components/ToggleGroup/ToggleGroupRoot.js.map +0 -1
- package/dist/dist/lib/components/ToggleGroup/index.js +0 -2
- package/dist/dist/lib/components/ToggleGroup/index.js.map +0 -1
- package/dist/dist/lib/components/ToggleSwitch/index.js +0 -2
- package/dist/dist/lib/components/ToggleSwitch/index.js.map +0 -1
- package/dist/dist/lib/components/Tooltip/index.js +0 -2
- package/dist/dist/lib/components/Tooltip/index.js.map +0 -1
- package/dist/dist/lib/constants.js +0 -2
- package/dist/dist/lib/constants.js.map +0 -1
- package/dist/dist/lib/index.js +0 -2
- package/dist/dist/lib/index.js.map +0 -1
- package/dist/dist/lib/utils/useDarkMode.js +0 -2
- package/dist/dist/lib/utils/useDarkMode.js.map +0 -1
- package/dist/dist/lib/utils/utils.js +0 -2
- package/dist/dist/lib/utils/utils.js.map +0 -1
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as t from"react";import{useLayoutEffect as e}from"../../react-use-layout-effect/dist/index.mjs";var r=t["useId".toString()]||(()=>{}),o=0;function a(a){const[s,i]=t.useState(r());return e((()=>{a||i((t=>t??String(o++)))}),[a]),a||(s?`radix-${s}`:"")}export{a as useId};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\"useId\".toString()] || (() => void 0);\nvar count = 0;\nfunction useId(deterministicId) {\n const [id, setId] = React.useState(useReactId());\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : \"\");\n}\nexport {\n useId\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useReactId","React","toString","count","useId","deterministicId","id","setId","useState","useLayoutEffect","reactId","String"],"mappings":"uGAGA,IAAIA,EAAaC,EAAM,QAAQC,aAAgB,MAAY,GACvDC,EAAQ,EACZ,SAASC,EAAMC,GACb,MAAOC,EAAIC,GAASN,EAAMO,SAASR,KAInC,OAHAS,GAAgB,KACTJ,GAAiBE,GAAOG,GAAYA,GAAWC,OAAOR,MAAS,GACnE,CAACE,IACGA,IAAoBC,EAAK,SAASA,IAAO,GAClD"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as e from"react";import{Primitive as t}from"../../react-primitive/dist/index.mjs";import{j as r}from"../../../../_virtual/jsx-runtime.mjs";var a=e.forwardRef(((e,a)=>r.jsx(t.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})));a.displayName="Label";var o=a;export{a as Label,o as Root};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-label/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/label/src/Label.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Label\";\nvar Label = React.forwardRef((props, forwardedRef) => {\n return /* @__PURE__ */ jsx(\n Primitive.label,\n {\n ...props,\n ref: forwardedRef,\n onMouseDown: (event) => {\n const target = event.target;\n if (target.closest(\"button, input, select, textarea\")) return;\n props.onMouseDown?.(event);\n if (!event.defaultPrevented && event.detail > 1) event.preventDefault();\n }\n }\n );\n});\nLabel.displayName = NAME;\nvar Root = Label;\nexport {\n Label,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Label","React","forwardRef","props","forwardedRef","jsx","Primitive","label","ref","onMouseDown","event","target","closest","defaultPrevented","detail","preventDefault","displayName","Root"],"mappings":"kJAMA,IACIA,EAAQC,EAAMC,YAAW,CAACC,EAAOC,IACZC,EAAGA,IACxBC,EAAUC,MACV,IACKJ,EACHK,IAAKJ,EACLK,YAAcC,IACGA,EAAMC,OACVC,QAAQ,qCACnBT,EAAMM,cAAcC,IACfA,EAAMG,kBAAoBH,EAAMI,OAAS,GAAGJ,EAAMK,iBAAgB,MAK/Ef,EAAMgB,YAhBK,QAiBR,IAACC,EAAOjB"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as e from"react";import{composeEventHandlers as n}from"../../primitive/dist/index.mjs";import{createCollection as t}from"../../react-collection/dist/index.mjs";import{useComposedRefs as r,composeRefs as o}from"../../react-compose-refs/dist/index.mjs";import{createContextScope as s}from"../../react-context/dist/index.mjs";import{useDirection as c}from"../../react-direction/dist/index.mjs";import{DismissableLayer as i}from"../../react-dismissable-layer/dist/index.mjs";import{useFocusGuards as a}from"../../react-focus-guards/dist/index.mjs";import{FocusScope as u}from"../../react-focus-scope/dist/index.mjs";import{useId as d}from"../../react-id/dist/index.mjs";import{createPopperScope as l,Anchor as f,Content as p,Arrow as m,Root as h}from"../../react-popper/dist/index.mjs";import{Portal as v}from"../../react-portal/dist/index.mjs";import{Presence as g}from"../../react-presence/dist/index.mjs";import{Primitive as x,dispatchDiscreteCustomEvent as _}from"../../react-primitive/dist/index.mjs";import{createRovingFocusGroupScope as w,Root as M,Item as j}from"../../react-roving-focus/dist/index.mjs";import{Slot as y}from"../../react-slot/dist/index.mjs";import{useCallbackRef as C}from"../../react-use-callback-ref/dist/index.mjs";import{hideOthers as b}from"../../../aria-hidden/dist/es2015/index.mjs";import R from"../../../react-remove-scroll/dist/es2015/Combination.mjs";import{j as k}from"../../../../_virtual/jsx-runtime.mjs";var P=["Enter"," "],D=["ArrowUp","PageDown","End"],E=["ArrowDown","PageUp","Home",...D],O={ltr:[...P,"ArrowRight"],rtl:[...P,"ArrowLeft"]},I={ltr:["ArrowLeft"],rtl:["ArrowRight"]},T="Menu",[S,F,L]=t(T),[K,A]=s(T,[L,l,w]),N=l(),G=w(),[V,U]=K(T),[B,X]=K(T),Y=n=>{const{__scopeMenu:t,open:r=!1,children:o,dir:s,onOpenChange:i,modal:a=!0}=n,u=N(t),[d,l]=e.useState(null),f=e.useRef(!1),p=C(i),m=c(s);return e.useEffect((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},n=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}}),[]),k.jsx(h,{...u,children:k.jsx(V,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:l,children:k.jsx(B,{scope:t,onClose:e.useCallback((()=>p(!1)),[p]),isUsingKeyboardRef:f,dir:m,modal:a,children:o})})})};Y.displayName=T;var z=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=N(t);return k.jsx(f,{...o,...r,ref:n})}));z.displayName="MenuAnchor";var H="MenuPortal",[W,Z]=K(H,{forceMount:void 0}),q=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:o}=e,s=U(H,n);return k.jsx(W,{scope:n,forceMount:t,children:k.jsx(g,{present:t||s.open,children:k.jsx(v,{asChild:!0,container:o,children:r})})})};q.displayName=H;var J="MenuContent",[Q,$]=K(J),ee=e.forwardRef(((e,n)=>{const t=Z(J,e.__scopeMenu),{forceMount:r=t.forceMount,...o}=e,s=U(J,e.__scopeMenu),c=X(J,e.__scopeMenu);return k.jsx(S.Provider,{scope:e.__scopeMenu,children:k.jsx(g,{present:r||s.open,children:k.jsx(S.Slot,{scope:e.__scopeMenu,children:c.modal?k.jsx(ne,{...o,ref:n}):k.jsx(te,{...o,ref:n})})})})})),ne=e.forwardRef(((t,o)=>{const s=U(J,t.__scopeMenu),c=e.useRef(null),i=r(o,c);return e.useEffect((()=>{const e=c.current;if(e)return b(e)}),[]),k.jsx(re,{...t,ref:i,trapFocus:s.open,disableOutsidePointerEvents:s.open,disableOutsideScroll:!0,onFocusOutside:n(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>s.onOpenChange(!1)})})),te=e.forwardRef(((e,n)=>{const t=U(J,e.__scopeMenu);return k.jsx(re,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})})),re=e.forwardRef(((t,o)=>{const{__scopeMenu:s,loop:c=!1,trapFocus:d,onOpenAutoFocus:l,onCloseAutoFocus:f,disableOutsidePointerEvents:m,onEntryFocus:h,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:x,onInteractOutside:_,onDismiss:w,disableOutsideScroll:j,...C}=t,b=U(J,s),P=X(J,s),O=N(s),I=G(s),T=F(s),[S,L]=e.useState(null),K=e.useRef(null),A=r(o,K,b.onContentChange),V=e.useRef(0),B=e.useRef(""),Y=e.useRef(0),z=e.useRef(null),H=e.useRef("right"),W=e.useRef(0),Z=j?R:e.Fragment,q=j?{as:y,allowPinchZoom:!0}:void 0,$=e=>{const n=B.current+e,t=T().filter((e=>!e.disabled)),r=document.activeElement,o=t.find((e=>e.ref.current===r))?.textValue,s=function(e,n,t){const r=n.length>1&&Array.from(n).every((e=>e===n[0])),o=r?n[0]:n,s=t?e.indexOf(t):-1;let c=(i=e,a=Math.max(s,0),i.map(((e,n)=>i[(a+n)%i.length])));var i,a;1===o.length&&(c=c.filter((e=>e!==t)));const u=c.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return u!==t?u:void 0}(t.map((e=>e.textValue)),n,o),c=t.find((e=>e.textValue===s))?.ref.current;!function e(n){B.current=n,window.clearTimeout(V.current),""!==n&&(V.current=window.setTimeout((()=>e("")),1e3))}(n),c&&setTimeout((()=>c.focus()))};e.useEffect((()=>()=>window.clearTimeout(V.current)),[]),a();const ee=e.useCallback((e=>H.current===z.current?.side&&function(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return function(e,n){const{x:t,y:r}=e;let o=!1;for(let e=0,s=n.length-1;e<n.length;s=e++){const c=n[e].x,i=n[e].y,a=n[s].x,u=n[s].y;i>r!=u>r&&t<(a-c)*(r-i)/(u-i)+c&&(o=!o)}return o}(t,n)}(e,z.current?.area)),[]);return k.jsx(Q,{scope:s,searchRef:B,onItemEnter:e.useCallback((e=>{ee(e)&&e.preventDefault()}),[ee]),onItemLeave:e.useCallback((e=>{ee(e)||(K.current?.focus(),L(null))}),[ee]),onTriggerLeave:e.useCallback((e=>{ee(e)&&e.preventDefault()}),[ee]),pointerGraceTimerRef:Y,onPointerGraceIntentChange:e.useCallback((e=>{z.current=e}),[]),children:k.jsx(Z,{...q,children:k.jsx(u,{asChild:!0,trapped:d,onMountAutoFocus:n(l,(e=>{e.preventDefault(),K.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:f,children:k.jsx(i,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:x,onInteractOutside:_,onDismiss:w,children:k.jsx(M,{asChild:!0,...I,dir:P.dir,orientation:"vertical",loop:c,currentTabStopId:S,onCurrentTabStopIdChange:L,onEntryFocus:n(h,(e=>{P.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:k.jsx(p,{role:"menu","aria-orientation":"vertical","data-state":Oe(b.open),"data-radix-menu-content":"",dir:P.dir,...O,...C,ref:A,style:{outline:"none",...C.style},onKeyDown:n(C.onKeyDown,(e=>{const n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!t&&r&&$(e.key));const o=K.current;if(e.target!==o)return;if(!E.includes(e.key))return;e.preventDefault();const s=T().filter((e=>!e.disabled)).map((e=>e.ref.current));D.includes(e.key)&&s.reverse(),function(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}(s)})),onBlur:n(t.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(V.current),B.current="")})),onPointerMove:n(t.onPointerMove,Se((e=>{const n=e.target,t=W.current!==e.clientX;if(e.currentTarget.contains(n)&&t){const n=e.clientX>W.current?"right":"left";H.current=n,W.current=e.clientX}})))})})})})})})}));ee.displayName=J;var oe=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return k.jsx(x.div,{role:"group",...r,ref:n})}));oe.displayName="MenuGroup";var se=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return k.jsx(x.div,{...r,ref:n})}));se.displayName="MenuLabel";var ce="MenuItem",ie="menu.itemSelect",ae=e.forwardRef(((t,o)=>{const{disabled:s=!1,onSelect:c,...i}=t,a=e.useRef(null),u=X(ce,t.__scopeMenu),d=$(ce,t.__scopeMenu),l=r(o,a),f=e.useRef(!1);return k.jsx(ue,{...i,ref:l,disabled:s,onClick:n(t.onClick,(()=>{const e=a.current;if(!s&&e){const n=new CustomEvent(ie,{bubbles:!0,cancelable:!0});e.addEventListener(ie,(e=>c?.(e)),{once:!0}),_(e,n),n.defaultPrevented?f.current=!1:u.onClose()}})),onPointerDown:e=>{t.onPointerDown?.(e),f.current=!0},onPointerUp:n(t.onPointerUp,(e=>{f.current||e.currentTarget?.click()})),onKeyDown:n(t.onKeyDown,(e=>{const n=""!==d.searchRef.current;s||n&&" "===e.key||P.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));ae.displayName=ce;var ue=e.forwardRef(((t,o)=>{const{__scopeMenu:s,disabled:c=!1,textValue:i,...a}=t,u=$(ce,s),d=G(s),l=e.useRef(null),f=r(o,l),[p,m]=e.useState(!1),[h,v]=e.useState("");return e.useEffect((()=>{const e=l.current;e&&v((e.textContent??"").trim())}),[a.children]),k.jsx(S.ItemSlot,{scope:s,disabled:c,textValue:i??h,children:k.jsx(j,{asChild:!0,...d,focusable:!c,children:k.jsx(x.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":c||void 0,"data-disabled":c?"":void 0,...a,ref:f,onPointerMove:n(t.onPointerMove,Se((e=>{if(c)u.onItemLeave(e);else if(u.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:n(t.onPointerLeave,Se((e=>u.onItemLeave(e)))),onFocus:n(t.onFocus,(()=>m(!0))),onBlur:n(t.onBlur,(()=>m(!1)))})})})})),de=e.forwardRef(((e,t)=>{const{checked:r=!1,onCheckedChange:o,...s}=e;return k.jsx(xe,{scope:e.__scopeMenu,checked:r,children:k.jsx(ae,{role:"menuitemcheckbox","aria-checked":Ie(r)?"mixed":r,...s,ref:t,"data-state":Te(r),onSelect:n(s.onSelect,(()=>o?.(!!Ie(r)||!r)),{checkForDefaultPrevented:!1})})})}));de.displayName="MenuCheckboxItem";var le="MenuRadioGroup",[fe,pe]=K(le,{value:void 0,onValueChange:()=>{}}),me=e.forwardRef(((e,n)=>{const{value:t,onValueChange:r,...o}=e,s=C(r);return k.jsx(fe,{scope:e.__scopeMenu,value:t,onValueChange:s,children:k.jsx(oe,{...o,ref:n})})}));me.displayName=le;var he="MenuRadioItem",ve=e.forwardRef(((e,t)=>{const{value:r,...o}=e,s=pe(he,e.__scopeMenu),c=r===s.value;return k.jsx(xe,{scope:e.__scopeMenu,checked:c,children:k.jsx(ae,{role:"menuitemradio","aria-checked":c,...o,ref:t,"data-state":Te(c),onSelect:n(o.onSelect,(()=>s.onValueChange?.(r)),{checkForDefaultPrevented:!1})})})}));ve.displayName=he;var ge="MenuItemIndicator",[xe,_e]=K(ge,{checked:!1}),we=e.forwardRef(((e,n)=>{const{__scopeMenu:t,forceMount:r,...o}=e,s=_e(ge,t);return k.jsx(g,{present:r||Ie(s.checked)||!0===s.checked,children:k.jsx(x.span,{...o,ref:n,"data-state":Te(s.checked)})})}));we.displayName=ge;var Me=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return k.jsx(x.div,{role:"separator","aria-orientation":"horizontal",...r,ref:n})}));Me.displayName="MenuSeparator";var je=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=N(t);return k.jsx(m,{...o,...r,ref:n})}));je.displayName="MenuArrow";var ye="MenuSub",[Ce,be]=K(ye),Re=n=>{const{__scopeMenu:t,children:r,open:o=!1,onOpenChange:s}=n,c=U(ye,t),i=N(t),[a,u]=e.useState(null),[l,f]=e.useState(null),p=C(s);return e.useEffect((()=>(!1===c.open&&p(!1),()=>p(!1))),[c.open,p]),k.jsx(h,{...i,children:k.jsx(V,{scope:t,open:o,onOpenChange:p,content:l,onContentChange:f,children:k.jsx(Ce,{scope:t,contentId:d(),triggerId:d(),trigger:a,onTriggerChange:u,children:r})})})};Re.displayName=ye;var ke="MenuSubTrigger",Pe=e.forwardRef(((t,r)=>{const s=U(ke,t.__scopeMenu),c=X(ke,t.__scopeMenu),i=be(ke,t.__scopeMenu),a=$(ke,t.__scopeMenu),u=e.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:l}=a,f={__scopeMenu:t.__scopeMenu},p=e.useCallback((()=>{u.current&&window.clearTimeout(u.current),u.current=null}),[]);return e.useEffect((()=>p),[p]),e.useEffect((()=>{const e=d.current;return()=>{window.clearTimeout(e),l(null)}}),[d,l]),k.jsx(z,{asChild:!0,...f,children:k.jsx(ue,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":i.contentId,"data-state":Oe(s.open),...t,ref:o(r,i.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),s.open||s.onOpenChange(!0))},onPointerMove:n(t.onPointerMove,Se((e=>{a.onItemEnter(e),e.defaultPrevented||t.disabled||s.open||u.current||(a.onPointerGraceIntentChange(null),u.current=window.setTimeout((()=>{s.onOpenChange(!0),p()}),100))}))),onPointerLeave:n(t.onPointerLeave,Se((e=>{p();const n=s.content?.getBoundingClientRect();if(n){const t=s.content?.dataset.side,r="right"===t,o=r?-5:5,c=n[r?"left":"right"],i=n[r?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:n.top},{x:i,y:n.top},{x:i,y:n.bottom},{x:c,y:n.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout((()=>a.onPointerGraceIntentChange(null)),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}}))),onKeyDown:n(t.onKeyDown,(e=>{const n=""!==a.searchRef.current;t.disabled||n&&" "===e.key||O[c.dir].includes(e.key)&&(s.onOpenChange(!0),s.content?.focus(),e.preventDefault())}))})})}));Pe.displayName=ke;var De="MenuSubContent",Ee=e.forwardRef(((t,o)=>{const s=Z(J,t.__scopeMenu),{forceMount:c=s.forceMount,...i}=t,a=U(J,t.__scopeMenu),u=X(J,t.__scopeMenu),d=be(De,t.__scopeMenu),l=e.useRef(null),f=r(o,l);return k.jsx(S.Provider,{scope:t.__scopeMenu,children:k.jsx(g,{present:c||a.open,children:k.jsx(S.Slot,{scope:t.__scopeMenu,children:k.jsx(re,{id:d.contentId,"aria-labelledby":d.triggerId,...i,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:n(t.onFocusOutside,(e=>{e.target!==d.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:n(t.onEscapeKeyDown,(e=>{u.onClose(),e.preventDefault()})),onKeyDown:n(t.onKeyDown,(e=>{const n=e.currentTarget.contains(e.target),t=I[u.dir].includes(e.key);n&&t&&(a.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())}))})})})})}));function Oe(e){return e?"open":"closed"}function Ie(e){return"indeterminate"===e}function Te(e){return Ie(e)?"indeterminate":e?"checked":"unchecked"}function Se(e){return n=>"mouse"===n.pointerType?e(n):void 0}Ee.displayName=De;var Fe=Y,Le=z,Ke=q,Ae=ee,Ne=oe,Ge=se,Ve=ae,Ue=de,Be=me,Xe=ve,Ye=we,ze=Me,He=je,We=Re,Ze=Pe,qe=Ee;export{Le as Anchor,He as Arrow,Ue as CheckboxItem,Ae as Content,Ne as Group,Ve as Item,Ye as ItemIndicator,Ge as Label,Y as Menu,z as MenuAnchor,je as MenuArrow,de as MenuCheckboxItem,ee as MenuContent,oe as MenuGroup,ae as MenuItem,we as MenuItemIndicator,se as MenuLabel,q as MenuPortal,me as MenuRadioGroup,ve as MenuRadioItem,Me as MenuSeparator,Re as MenuSub,Ee as MenuSubContent,Pe as MenuSubTrigger,Ke as Portal,Be as RadioGroup,Xe as RadioItem,Fe as Root,ze as Separator,We as Sub,qe as SubContent,Ze as SubTrigger,A as createMenuScope};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-menu/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/menu/src/Menu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs, composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport * as RovingFocusGroup from \"@radix-ui/react-roving-focus\";\nimport { createRovingFocusGroupScope } from \"@radix-ui/react-roving-focus\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SELECTION_KEYS = [\"Enter\", \" \"];\nvar FIRST_KEYS = [\"ArrowDown\", \"PageUp\", \"Home\"];\nvar LAST_KEYS = [\"ArrowUp\", \"PageDown\", \"End\"];\nvar FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nvar SUB_OPEN_KEYS = {\n ltr: [...SELECTION_KEYS, \"ArrowRight\"],\n rtl: [...SELECTION_KEYS, \"ArrowLeft\"]\n};\nvar SUB_CLOSE_KEYS = {\n ltr: [\"ArrowLeft\"],\n rtl: [\"ArrowRight\"]\n};\nvar MENU_NAME = \"Menu\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(MENU_NAME);\nvar [createMenuContext, createMenuScope] = createContextScope(MENU_NAME, [\n createCollectionScope,\n createPopperScope,\n createRovingFocusGroupScope\n]);\nvar usePopperScope = createPopperScope();\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar [MenuProvider, useMenuContext] = createMenuContext(MENU_NAME);\nvar [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME);\nvar Menu = (props) => {\n const { __scopeMenu, open = false, children, dir, onOpenChange, modal = true } = props;\n const popperScope = usePopperScope(__scopeMenu);\n const [content, setContent] = React.useState(null);\n const isUsingKeyboardRef = React.useRef(false);\n const handleOpenChange = useCallbackRef(onOpenChange);\n const direction = useDirection(dir);\n React.useEffect(() => {\n const handleKeyDown = () => {\n isUsingKeyboardRef.current = true;\n document.addEventListener(\"pointerdown\", handlePointer, { capture: true, once: true });\n document.addEventListener(\"pointermove\", handlePointer, { capture: true, once: true });\n };\n const handlePointer = () => isUsingKeyboardRef.current = false;\n document.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n document.removeEventListener(\"pointerdown\", handlePointer, { capture: true });\n document.removeEventListener(\"pointermove\", handlePointer, { capture: true });\n };\n }, []);\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n MenuProvider,\n {\n scope: __scopeMenu,\n open,\n onOpenChange: handleOpenChange,\n content,\n onContentChange: setContent,\n children: /* @__PURE__ */ jsx(\n MenuRootProvider,\n {\n scope: __scopeMenu,\n onClose: React.useCallback(() => handleOpenChange(false), [handleOpenChange]),\n isUsingKeyboardRef,\n dir: direction,\n modal,\n children\n }\n )\n }\n ) });\n};\nMenu.displayName = MENU_NAME;\nvar ANCHOR_NAME = \"MenuAnchor\";\nvar MenuAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...anchorProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });\n }\n);\nMenuAnchor.displayName = ANCHOR_NAME;\nvar PORTAL_NAME = \"MenuPortal\";\nvar [PortalProvider, usePortalContext] = createMenuContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar MenuPortal = (props) => {\n const { __scopeMenu, forceMount, children, container } = props;\n const context = useMenuContext(PORTAL_NAME, __scopeMenu);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeMenu, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nMenuPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"MenuContent\";\nvar [MenuContentProvider, useMenuContentContext] = createMenuContext(CONTENT_NAME);\nvar MenuContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: rootContext.modal ? /* @__PURE__ */ jsx(MenuRootContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(MenuRootContentNonModal, { ...contentProps, ref: forwardedRef }) }) }) });\n }\n);\nvar MenuRootContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const content = ref.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: context.open,\n disableOutsideScroll: true,\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n ),\n onDismiss: () => context.onOpenChange(false)\n }\n );\n }\n);\nvar MenuRootContentNonModal = React.forwardRef((props, forwardedRef) => {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n return /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n onDismiss: () => context.onOpenChange(false)\n }\n );\n});\nvar MenuContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeMenu,\n loop = false,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEntryFocus,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n disableOutsideScroll,\n ...contentProps\n } = props;\n const context = useMenuContext(CONTENT_NAME, __scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const getItems = useCollection(__scopeMenu);\n const [currentItemId, setCurrentItemId] = React.useState(null);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef, context.onContentChange);\n const timerRef = React.useRef(0);\n const searchRef = React.useRef(\"\");\n const pointerGraceTimerRef = React.useRef(0);\n const pointerGraceIntentRef = React.useRef(null);\n const pointerDirRef = React.useRef(\"right\");\n const lastPointerXRef = React.useRef(0);\n const ScrollLockWrapper = disableOutsideScroll ? RemoveScroll : React.Fragment;\n const scrollLockWrapperProps = disableOutsideScroll ? { as: Slot, allowPinchZoom: true } : void 0;\n const handleTypeaheadSearch = (key) => {\n const search = searchRef.current + key;\n const items = getItems().filter((item) => !item.disabled);\n const currentItem = document.activeElement;\n const currentMatch = items.find((item) => item.ref.current === currentItem)?.textValue;\n const values = items.map((item) => item.textValue);\n const nextMatch = getNextMatch(values, search, currentMatch);\n const newItem = items.find((item) => item.textValue === nextMatch)?.ref.current;\n (function updateSearch(value) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current);\n if (value !== \"\") timerRef.current = window.setTimeout(() => updateSearch(\"\"), 1e3);\n })(search);\n if (newItem) {\n setTimeout(() => newItem.focus());\n }\n };\n React.useEffect(() => {\n return () => window.clearTimeout(timerRef.current);\n }, []);\n useFocusGuards();\n const isPointerMovingToSubmenu = React.useCallback((event) => {\n const isMovingTowards = pointerDirRef.current === pointerGraceIntentRef.current?.side;\n return isMovingTowards && isPointerInGraceArea(event, pointerGraceIntentRef.current?.area);\n }, []);\n return /* @__PURE__ */ jsx(\n MenuContentProvider,\n {\n scope: __scopeMenu,\n searchRef,\n onItemEnter: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu]\n ),\n onItemLeave: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) return;\n contentRef.current?.focus();\n setCurrentItemId(null);\n },\n [isPointerMovingToSubmenu]\n ),\n onTriggerLeave: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu]\n ),\n pointerGraceTimerRef,\n onPointerGraceIntentChange: React.useCallback((intent) => {\n pointerGraceIntentRef.current = intent;\n }, []),\n children: /* @__PURE__ */ jsx(ScrollLockWrapper, { ...scrollLockWrapperProps, children: /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n trapped: trapFocus,\n onMountAutoFocus: composeEventHandlers(onOpenAutoFocus, (event) => {\n event.preventDefault();\n contentRef.current?.focus({ preventScroll: true });\n }),\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n children: /* @__PURE__ */ jsx(\n RovingFocusGroup.Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n dir: rootContext.dir,\n orientation: \"vertical\",\n loop,\n currentTabStopId: currentItemId,\n onCurrentTabStopIdChange: setCurrentItemId,\n onEntryFocus: composeEventHandlers(onEntryFocus, (event) => {\n if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();\n }),\n preventScrollOnEntryFocus: true,\n children: /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n role: \"menu\",\n \"aria-orientation\": \"vertical\",\n \"data-state\": getOpenState(context.open),\n \"data-radix-menu-content\": \"\",\n dir: rootContext.dir,\n ...popperScope,\n ...contentProps,\n ref: composedRefs,\n style: { outline: \"none\", ...contentProps.style },\n onKeyDown: composeEventHandlers(contentProps.onKeyDown, (event) => {\n const target = event.target;\n const isKeyDownInside = target.closest(\"[data-radix-menu-content]\") === event.currentTarget;\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n const isCharacterKey = event.key.length === 1;\n if (isKeyDownInside) {\n if (event.key === \"Tab\") event.preventDefault();\n if (!isModifierKey && isCharacterKey) handleTypeaheadSearch(event.key);\n }\n const content = contentRef.current;\n if (event.target !== content) return;\n if (!FIRST_LAST_KEYS.includes(event.key)) return;\n event.preventDefault();\n const items = getItems().filter((item) => !item.disabled);\n const candidateNodes = items.map((item) => item.ref.current);\n if (LAST_KEYS.includes(event.key)) candidateNodes.reverse();\n focusFirst(candidateNodes);\n }),\n onBlur: composeEventHandlers(props.onBlur, (event) => {\n if (!event.currentTarget.contains(event.target)) {\n window.clearTimeout(timerRef.current);\n searchRef.current = \"\";\n }\n }),\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n const target = event.target;\n const pointerXHasChanged = lastPointerXRef.current !== event.clientX;\n if (event.currentTarget.contains(target) && pointerXHasChanged) {\n const newDir = event.clientX > lastPointerXRef.current ? \"right\" : \"left\";\n pointerDirRef.current = newDir;\n lastPointerXRef.current = event.clientX;\n }\n })\n )\n }\n )\n }\n )\n }\n )\n }\n ) })\n }\n );\n }\n);\nMenuContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"MenuGroup\";\nvar MenuGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...groupProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { role: \"group\", ...groupProps, ref: forwardedRef });\n }\n);\nMenuGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"MenuLabel\";\nvar MenuLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...labelProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { ...labelProps, ref: forwardedRef });\n }\n);\nMenuLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"MenuItem\";\nvar ITEM_SELECT = \"menu.itemSelect\";\nvar MenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { disabled = false, onSelect, ...itemProps } = props;\n const ref = React.useRef(null);\n const rootContext = useMenuRootContext(ITEM_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(ITEM_NAME, props.__scopeMenu);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const isPointerDownRef = React.useRef(false);\n const handleSelect = () => {\n const menuItem = ref.current;\n if (!disabled && menuItem) {\n const itemSelectEvent = new CustomEvent(ITEM_SELECT, { bubbles: true, cancelable: true });\n menuItem.addEventListener(ITEM_SELECT, (event) => onSelect?.(event), { once: true });\n dispatchDiscreteCustomEvent(menuItem, itemSelectEvent);\n if (itemSelectEvent.defaultPrevented) {\n isPointerDownRef.current = false;\n } else {\n rootContext.onClose();\n }\n }\n };\n return /* @__PURE__ */ jsx(\n MenuItemImpl,\n {\n ...itemProps,\n ref: composedRefs,\n disabled,\n onClick: composeEventHandlers(props.onClick, handleSelect),\n onPointerDown: (event) => {\n props.onPointerDown?.(event);\n isPointerDownRef.current = true;\n },\n onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {\n if (!isPointerDownRef.current) event.currentTarget?.click();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef.current !== \"\";\n if (disabled || isTypingAhead && event.key === \" \") return;\n if (SELECTION_KEYS.includes(event.key)) {\n event.currentTarget.click();\n event.preventDefault();\n }\n })\n }\n );\n }\n);\nMenuItem.displayName = ITEM_NAME;\nvar MenuItemImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, disabled = false, textValue, ...itemProps } = props;\n const contentContext = useMenuContentContext(ITEM_NAME, __scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const [isFocused, setIsFocused] = React.useState(false);\n const [textContent, setTextContent] = React.useState(\"\");\n React.useEffect(() => {\n const menuItem = ref.current;\n if (menuItem) {\n setTextContent((menuItem.textContent ?? \"\").trim());\n }\n }, [itemProps.children]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeMenu,\n disabled,\n textValue: textValue ?? textContent,\n children: /* @__PURE__ */ jsx(RovingFocusGroup.Item, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"menuitem\",\n \"data-highlighted\": isFocused ? \"\" : void 0,\n \"aria-disabled\": disabled || void 0,\n \"data-disabled\": disabled ? \"\" : void 0,\n ...itemProps,\n ref: composedRefs,\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n if (disabled) {\n contentContext.onItemLeave(event);\n } else {\n contentContext.onItemEnter(event);\n if (!event.defaultPrevented) {\n const item = event.currentTarget;\n item.focus({ preventScroll: true });\n }\n }\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => contentContext.onItemLeave(event))\n ),\n onFocus: composeEventHandlers(props.onFocus, () => setIsFocused(true)),\n onBlur: composeEventHandlers(props.onBlur, () => setIsFocused(false))\n }\n ) })\n }\n );\n }\n);\nvar CHECKBOX_ITEM_NAME = \"MenuCheckboxItem\";\nvar MenuCheckboxItem = React.forwardRef(\n (props, forwardedRef) => {\n const { checked = false, onCheckedChange, ...checkboxItemProps } = props;\n return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(\n MenuItem,\n {\n role: \"menuitemcheckbox\",\n \"aria-checked\": isIndeterminate(checked) ? \"mixed\" : checked,\n ...checkboxItemProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(checked),\n onSelect: composeEventHandlers(\n checkboxItemProps.onSelect,\n () => onCheckedChange?.(isIndeterminate(checked) ? true : !checked),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"MenuRadioGroup\";\nvar [RadioGroupProvider, useRadioGroupContext] = createMenuContext(\n RADIO_GROUP_NAME,\n { value: void 0, onValueChange: () => {\n } }\n);\nvar MenuRadioGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { value, onValueChange, ...groupProps } = props;\n const handleValueChange = useCallbackRef(onValueChange);\n return /* @__PURE__ */ jsx(RadioGroupProvider, { scope: props.__scopeMenu, value, onValueChange: handleValueChange, children: /* @__PURE__ */ jsx(MenuGroup, { ...groupProps, ref: forwardedRef }) });\n }\n);\nMenuRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"MenuRadioItem\";\nvar MenuRadioItem = React.forwardRef(\n (props, forwardedRef) => {\n const { value, ...radioItemProps } = props;\n const context = useRadioGroupContext(RADIO_ITEM_NAME, props.__scopeMenu);\n const checked = value === context.value;\n return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(\n MenuItem,\n {\n role: \"menuitemradio\",\n \"aria-checked\": checked,\n ...radioItemProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(checked),\n onSelect: composeEventHandlers(\n radioItemProps.onSelect,\n () => context.onValueChange?.(value),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nMenuRadioItem.displayName = RADIO_ITEM_NAME;\nvar ITEM_INDICATOR_NAME = \"MenuItemIndicator\";\nvar [ItemIndicatorProvider, useItemIndicatorContext] = createMenuContext(\n ITEM_INDICATOR_NAME,\n { checked: false }\n);\nvar MenuItemIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, forceMount, ...itemIndicatorProps } = props;\n const indicatorContext = useItemIndicatorContext(ITEM_INDICATOR_NAME, __scopeMenu);\n return /* @__PURE__ */ jsx(\n Presence,\n {\n present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...itemIndicatorProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(indicatorContext.checked)\n }\n )\n }\n );\n }\n);\nMenuItemIndicator.displayName = ITEM_INDICATOR_NAME;\nvar SEPARATOR_NAME = \"MenuSeparator\";\nvar MenuSeparator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...separatorProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"separator\",\n \"aria-orientation\": \"horizontal\",\n ...separatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nMenuSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"MenuArrow\";\nvar MenuArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nMenuArrow.displayName = ARROW_NAME;\nvar SUB_NAME = \"MenuSub\";\nvar [MenuSubProvider, useMenuSubContext] = createMenuContext(SUB_NAME);\nvar MenuSub = (props) => {\n const { __scopeMenu, children, open = false, onOpenChange } = props;\n const parentMenuContext = useMenuContext(SUB_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const [trigger, setTrigger] = React.useState(null);\n const [content, setContent] = React.useState(null);\n const handleOpenChange = useCallbackRef(onOpenChange);\n React.useEffect(() => {\n if (parentMenuContext.open === false) handleOpenChange(false);\n return () => handleOpenChange(false);\n }, [parentMenuContext.open, handleOpenChange]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n MenuProvider,\n {\n scope: __scopeMenu,\n open,\n onOpenChange: handleOpenChange,\n content,\n onContentChange: setContent,\n children: /* @__PURE__ */ jsx(\n MenuSubProvider,\n {\n scope: __scopeMenu,\n contentId: useId(),\n triggerId: useId(),\n trigger,\n onTriggerChange: setTrigger,\n children\n }\n )\n }\n ) });\n};\nMenuSub.displayName = SUB_NAME;\nvar SUB_TRIGGER_NAME = \"MenuSubTrigger\";\nvar MenuSubTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const context = useMenuContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const openTimerRef = React.useRef(null);\n const { pointerGraceTimerRef, onPointerGraceIntentChange } = contentContext;\n const scope = { __scopeMenu: props.__scopeMenu };\n const clearOpenTimer = React.useCallback(() => {\n if (openTimerRef.current) window.clearTimeout(openTimerRef.current);\n openTimerRef.current = null;\n }, []);\n React.useEffect(() => clearOpenTimer, [clearOpenTimer]);\n React.useEffect(() => {\n const pointerGraceTimer = pointerGraceTimerRef.current;\n return () => {\n window.clearTimeout(pointerGraceTimer);\n onPointerGraceIntentChange(null);\n };\n }, [pointerGraceTimerRef, onPointerGraceIntentChange]);\n return /* @__PURE__ */ jsx(MenuAnchor, { asChild: true, ...scope, children: /* @__PURE__ */ jsx(\n MenuItemImpl,\n {\n id: subContext.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": subContext.contentId,\n \"data-state\": getOpenState(context.open),\n ...props,\n ref: composeRefs(forwardedRef, subContext.onTriggerChange),\n onClick: (event) => {\n props.onClick?.(event);\n if (props.disabled || event.defaultPrevented) return;\n event.currentTarget.focus();\n if (!context.open) context.onOpenChange(true);\n },\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n contentContext.onItemEnter(event);\n if (event.defaultPrevented) return;\n if (!props.disabled && !context.open && !openTimerRef.current) {\n contentContext.onPointerGraceIntentChange(null);\n openTimerRef.current = window.setTimeout(() => {\n context.onOpenChange(true);\n clearOpenTimer();\n }, 100);\n }\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => {\n clearOpenTimer();\n const contentRect = context.content?.getBoundingClientRect();\n if (contentRect) {\n const side = context.content?.dataset.side;\n const rightSide = side === \"right\";\n const bleed = rightSide ? -5 : 5;\n const contentNearEdge = contentRect[rightSide ? \"left\" : \"right\"];\n const contentFarEdge = contentRect[rightSide ? \"right\" : \"left\"];\n contentContext.onPointerGraceIntentChange({\n area: [\n // Apply a bleed on clientX to ensure that our exit point is\n // consistently within polygon bounds\n { x: event.clientX + bleed, y: event.clientY },\n { x: contentNearEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.bottom },\n { x: contentNearEdge, y: contentRect.bottom }\n ],\n side\n });\n window.clearTimeout(pointerGraceTimerRef.current);\n pointerGraceTimerRef.current = window.setTimeout(\n () => contentContext.onPointerGraceIntentChange(null),\n 300\n );\n } else {\n contentContext.onTriggerLeave(event);\n if (event.defaultPrevented) return;\n contentContext.onPointerGraceIntentChange(null);\n }\n })\n ),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef.current !== \"\";\n if (props.disabled || isTypingAhead && event.key === \" \") return;\n if (SUB_OPEN_KEYS[rootContext.dir].includes(event.key)) {\n context.onOpenChange(true);\n context.content?.focus();\n event.preventDefault();\n }\n })\n }\n ) });\n }\n);\nMenuSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"MenuSubContent\";\nvar MenuSubContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, ...subContentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n id: subContext.contentId,\n \"aria-labelledby\": subContext.triggerId,\n ...subContentProps,\n ref: composedRefs,\n align: \"start\",\n side: rootContext.dir === \"rtl\" ? \"left\" : \"right\",\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n trapFocus: false,\n onOpenAutoFocus: (event) => {\n if (rootContext.isUsingKeyboardRef.current) ref.current?.focus();\n event.preventDefault();\n },\n onCloseAutoFocus: (event) => event.preventDefault(),\n onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => {\n if (event.target !== subContext.trigger) context.onOpenChange(false);\n }),\n onEscapeKeyDown: composeEventHandlers(props.onEscapeKeyDown, (event) => {\n rootContext.onClose();\n event.preventDefault();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isKeyDownInside = event.currentTarget.contains(event.target);\n const isCloseKey = SUB_CLOSE_KEYS[rootContext.dir].includes(event.key);\n if (isKeyDownInside && isCloseKey) {\n context.onOpenChange(false);\n subContext.trigger?.focus();\n event.preventDefault();\n }\n })\n }\n ) }) }) });\n }\n);\nMenuSubContent.displayName = SUB_CONTENT_NAME;\nfunction getOpenState(open) {\n return open ? \"open\" : \"closed\";\n}\nfunction isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nfunction getCheckedState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nfunction focusFirst(candidates) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nfunction getNextMatch(values, search, currentMatch) {\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const normalizedSearch = isRepeated ? search[0] : search;\n const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;\n let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));\n const excludeCurrentMatch = normalizedSearch.length === 1;\n if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v) => v !== currentMatch);\n const nextMatch = wrappedValues.find(\n (value) => value.toLowerCase().startsWith(normalizedSearch.toLowerCase())\n );\n return nextMatch !== currentMatch ? nextMatch : void 0;\n}\nfunction isPointInPolygon(point, polygon) {\n const { x, y } = point;\n let inside = false;\n for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n const xi = polygon[i].x;\n const yi = polygon[i].y;\n const xj = polygon[j].x;\n const yj = polygon[j].y;\n const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n return inside;\n}\nfunction isPointerInGraceArea(event, area) {\n if (!area) return false;\n const cursorPos = { x: event.clientX, y: event.clientY };\n return isPointInPolygon(cursorPos, area);\n}\nfunction whenMouse(handler) {\n return (event) => event.pointerType === \"mouse\" ? handler(event) : void 0;\n}\nvar Root3 = Menu;\nvar Anchor2 = MenuAnchor;\nvar Portal = MenuPortal;\nvar Content2 = MenuContent;\nvar Group = MenuGroup;\nvar Label = MenuLabel;\nvar Item2 = MenuItem;\nvar CheckboxItem = MenuCheckboxItem;\nvar RadioGroup = MenuRadioGroup;\nvar RadioItem = MenuRadioItem;\nvar ItemIndicator = MenuItemIndicator;\nvar Separator = MenuSeparator;\nvar Arrow2 = MenuArrow;\nvar Sub = MenuSub;\nvar SubTrigger = MenuSubTrigger;\nvar SubContent = MenuSubContent;\nexport {\n Anchor2 as Anchor,\n Arrow2 as Arrow,\n CheckboxItem,\n Content2 as Content,\n Group,\n Item2 as Item,\n ItemIndicator,\n Label,\n Menu,\n MenuAnchor,\n MenuArrow,\n MenuCheckboxItem,\n MenuContent,\n MenuGroup,\n MenuItem,\n MenuItemIndicator,\n MenuLabel,\n MenuPortal,\n MenuRadioGroup,\n MenuRadioItem,\n MenuSeparator,\n MenuSub,\n MenuSubContent,\n MenuSubTrigger,\n Portal,\n RadioGroup,\n RadioItem,\n Root3 as Root,\n Separator,\n Sub,\n SubContent,\n SubTrigger,\n createMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["SELECTION_KEYS","LAST_KEYS","FIRST_LAST_KEYS","SUB_OPEN_KEYS","ltr","rtl","SUB_CLOSE_KEYS","MENU_NAME","Collection","useCollection","createCollectionScope","createCollection","createMenuContext","createMenuScope","createContextScope","createPopperScope","createRovingFocusGroupScope","usePopperScope","useRovingFocusGroupScope","MenuProvider","useMenuContext","MenuRootProvider","useMenuRootContext","Menu","props","__scopeMenu","open","children","dir","onOpenChange","modal","popperScope","content","setContent","React","useState","isUsingKeyboardRef","useRef","handleOpenChange","useCallbackRef","direction","useDirection","useEffect","handleKeyDown","current","document","addEventListener","handlePointer","capture","once","removeEventListener","jsx","PopperPrimitive.Root","scope","onContentChange","onClose","useCallback","displayName","MenuAnchor","forwardRef","forwardedRef","anchorProps","PopperPrimitive.Anchor","ref","PORTAL_NAME","PortalProvider","usePortalContext","forceMount","MenuPortal","container","context","Presence","present","PortalPrimitive","asChild","CONTENT_NAME","MenuContentProvider","useMenuContentContext","MenuContent","portalContext","contentProps","rootContext","Provider","Slot","MenuRootContentModal","MenuRootContentNonModal","composedRefs","useComposedRefs","hideOthers","MenuContentImpl","trapFocus","disableOutsidePointerEvents","disableOutsideScroll","onFocusOutside","composeEventHandlers","event","preventDefault","checkForDefaultPrevented","onDismiss","loop","onOpenAutoFocus","onCloseAutoFocus","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onInteractOutside","rovingFocusGroupScope","getItems","currentItemId","setCurrentItemId","contentRef","timerRef","searchRef","pointerGraceTimerRef","pointerGraceIntentRef","pointerDirRef","lastPointerXRef","ScrollLockWrapper","RemoveScroll","Fragment","scrollLockWrapperProps","as","allowPinchZoom","handleTypeaheadSearch","key","search","items","filter","item","disabled","currentItem","activeElement","currentMatch","find","textValue","nextMatch","values","isRepeated","length","Array","from","every","char","normalizedSearch","currentMatchIndex","indexOf","wrappedValues","array","startIndex","Math","max","map","_","index","v","value","toLowerCase","startsWith","getNextMatch","newItem","updateSearch","window","clearTimeout","setTimeout","focus","useFocusGuards","isPointerMovingToSubmenu","side","area","cursorPos","x","clientX","y","clientY","point","polygon","inside","i","j","xi","yi","xj","yj","isPointInPolygon","isPointerInGraceArea","onItemEnter","onItemLeave","onTriggerLeave","onPointerGraceIntentChange","intent","FocusScope","trapped","onMountAutoFocus","preventScroll","onUnmountAutoFocus","DismissableLayer","RovingFocusGroup.Root","orientation","currentTabStopId","onCurrentTabStopIdChange","preventScrollOnEntryFocus","PopperPrimitive.Content","role","getOpenState","style","outline","onKeyDown","isKeyDownInside","target","closest","currentTarget","isModifierKey","ctrlKey","altKey","metaKey","isCharacterKey","includes","candidateNodes","reverse","candidates","PREVIOUSLY_FOCUSED_ELEMENT","candidate","focusFirst","onBlur","contains","onPointerMove","whenMouse","pointerXHasChanged","newDir","MenuGroup","groupProps","Primitive","div","MenuLabel","labelProps","ITEM_NAME","ITEM_SELECT","MenuItem","onSelect","itemProps","contentContext","isPointerDownRef","MenuItemImpl","onClick","menuItem","itemSelectEvent","CustomEvent","bubbles","cancelable","dispatchDiscreteCustomEvent","defaultPrevented","onPointerDown","onPointerUp","click","isTypingAhead","isFocused","setIsFocused","textContent","setTextContent","trim","ItemSlot","RovingFocusGroup.Item","focusable","onPointerLeave","onFocus","MenuCheckboxItem","checked","onCheckedChange","checkboxItemProps","ItemIndicatorProvider","isIndeterminate","getCheckedState","RADIO_GROUP_NAME","RadioGroupProvider","useRadioGroupContext","onValueChange","MenuRadioGroup","handleValueChange","RADIO_ITEM_NAME","MenuRadioItem","radioItemProps","ITEM_INDICATOR_NAME","useItemIndicatorContext","MenuItemIndicator","itemIndicatorProps","indicatorContext","span","MenuSeparator","separatorProps","MenuArrow","arrowProps","PopperPrimitive.Arrow","SUB_NAME","MenuSubProvider","useMenuSubContext","MenuSub","parentMenuContext","trigger","setTrigger","contentId","useId","triggerId","onTriggerChange","SUB_TRIGGER_NAME","MenuSubTrigger","subContext","openTimerRef","clearOpenTimer","pointerGraceTimer","id","composeRefs","contentRect","getBoundingClientRect","dataset","rightSide","bleed","contentNearEdge","contentFarEdge","top","bottom","SUB_CONTENT_NAME","MenuSubContent","subContentProps","align","isCloseKey","handler","pointerType","Root3","Anchor2","Portal","Content2","Group","Label","Item2","CheckboxItem","RadioGroup","RadioItem","ItemIndicator","Separator","Arrow2","Sub","SubTrigger","SubContent"],"mappings":"w6CAyBA,IAAIA,EAAiB,CAAC,QAAS,KAE3BC,EAAY,CAAC,UAAW,WAAY,OACpCC,EAAkB,CAFJ,YAAa,SAAU,UAEAD,GACrCE,EAAgB,CAClBC,IAAK,IAAIJ,EAAgB,cACzBK,IAAK,IAAIL,EAAgB,cAEvBM,EAAiB,CACnBF,IAAK,CAAC,aACNC,IAAK,CAAC,eAEJE,EAAY,QACXC,EAAYC,EAAeC,GAAyBC,EAAiBJ,IACrEK,EAAmBC,GAAmBC,EAAmBP,EAAW,CACvEG,EACAK,EACAC,IAEEC,EAAiBF,IACjBG,EAA2BF,KAC1BG,EAAcC,GAAkBR,EAAkBL,IAClDc,EAAkBC,GAAsBV,EAAkBL,GAC3DgB,EAAQC,IACV,MAAMC,YAAEA,EAAWC,KAAEA,GAAO,EAAKC,SAAEA,EAAQC,IAAEA,EAAGC,aAAEA,EAAYC,MAAEA,GAAQ,GAASN,EAC3EO,EAAcd,EAAeQ,IAC5BO,EAASC,GAAcC,EAAMC,SAAS,MACvCC,EAAqBF,EAAMG,QAAO,GAClCC,EAAmBC,EAAeV,GAClCW,EAAYC,EAAab,GAe/B,OAdAM,EAAMQ,WAAU,KACd,MAAMC,EAAgB,KACpBP,EAAmBQ,SAAU,EAC7BC,SAASC,iBAAiB,cAAeC,EAAe,CAAEC,SAAS,EAAMC,MAAM,IAC/EJ,SAASC,iBAAiB,cAAeC,EAAe,CAAEC,SAAS,EAAMC,MAAM,GAAO,EAElFF,EAAgB,IAAMX,EAAmBQ,SAAU,EAEzD,OADAC,SAASC,iBAAiB,UAAWH,EAAe,CAAEK,SAAS,IACxD,KACLH,SAASK,oBAAoB,UAAWP,EAAe,CAAEK,SAAS,IAClEH,SAASK,oBAAoB,cAAeH,EAAe,CAAEC,SAAS,IACtEH,SAASK,oBAAoB,cAAeH,EAAe,CAAEC,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AerE,GACfsE,GAAa3D,GACb4D,GAAYzD,GACZ0D,GAAgBtD,GAChBuD,GAAYnD,GACZoD,GAASlD,GACTmD,GAAM7C,GACN8C,GAAarC,GACbsC,GAAarB"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as e from"react";import{createCollection as r}from"../../react-collection/dist/index.mjs";import{useDirection as a}from"../../react-direction/dist/index.mjs";import{composeEventHandlers as n}from"../../primitive/dist/index.mjs";import{useComposedRefs as o}from"../../react-compose-refs/dist/index.mjs";import{createContextScope as t}from"../../react-context/dist/index.mjs";import{useId as i}from"../../react-id/dist/index.mjs";import{createMenuScope as s,Anchor as u,Content as d,Group as l,Label as p,Item as c,CheckboxItem as m,RadioGroup as f,RadioItem as b,ItemIndicator as v,Separator as g,Arrow as x,SubTrigger as h,SubContent as M,Root as w,Portal as j,Sub as _}from"../../react-menu/dist/index.mjs";import{createRovingFocusGroupScope as y,Root as R,Item as C}from"../../react-roving-focus/dist/index.mjs";import{Primitive as I}from"../../react-primitive/dist/index.mjs";import{useControllableState as O}from"../../react-use-controllable-state/dist/index.mjs";import{j as N}from"../../../../_virtual/jsx-runtime.mjs";var A="Menubar",[S,D,T]=r(A),[k,P]=t(A,[T,y]),E=s(),F=y(),[K,B]=k(A),L=e.forwardRef(((r,n)=>{const{__scopeMenubar:o,value:t,onValueChange:i,defaultValue:s,loop:u=!0,dir:d,...l}=r,p=a(d),c=F(o),[m="",f]=O({prop:t,onChange:i,defaultProp:s}),[b,v]=e.useState(null);return N.jsx(K,{scope:o,value:m,onMenuOpen:e.useCallback((e=>{f(e),v(e)}),[f]),onMenuClose:e.useCallback((()=>f("")),[f]),onMenuToggle:e.useCallback((e=>{f((r=>Boolean(r)?"":e)),v(e)}),[f]),dir:p,loop:u,children:N.jsx(S.Provider,{scope:o,children:N.jsx(S.Slot,{scope:o,children:N.jsx(R,{asChild:!0,...c,orientation:"horizontal",loop:u,dir:p,currentTabStopId:b,onCurrentTabStopIdChange:v,children:N.jsx(I.div,{role:"menubar",...l,ref:n})})})})})}));L.displayName=A;var G="MenubarMenu",[V,U]=k(G),z=r=>{const{__scopeMenubar:a,value:n,...o}=r,t=i(),s=n||t||"LEGACY_REACT_AUTO_VALUE",u=B(G,a),d=E(a),l=e.useRef(null),p=e.useRef(!1),c=u.value===s;return e.useEffect((()=>{c||(p.current=!1)}),[c]),N.jsx(V,{scope:a,value:s,triggerId:i(),triggerRef:l,contentId:i(),wasKeyboardTriggerOpenRef:p,children:N.jsx(w,{...d,open:c,onOpenChange:e=>{e||u.onMenuClose()},modal:!1,dir:u.dir,...o})})};z.displayName=G;var Y="MenubarTrigger",q=e.forwardRef(((r,a)=>{const{__scopeMenubar:t,disabled:i=!1,...s}=r,d=F(t),l=E(t),p=B(Y,t),c=U(Y,t),m=e.useRef(null),f=o(a,m,c.triggerRef),[b,v]=e.useState(!1),g=p.value===c.value;return N.jsx(S.ItemSlot,{scope:t,value:c.value,disabled:i,children:N.jsx(C,{asChild:!0,...d,focusable:!i,tabStopId:c.value,children:N.jsx(u,{asChild:!0,...l,children:N.jsx(I.button,{type:"button",role:"menuitem",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?c.contentId:void 0,"data-highlighted":b?"":void 0,"data-state":g?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:f,onPointerDown:n(r.onPointerDown,(e=>{i||0!==e.button||!1!==e.ctrlKey||(p.onMenuOpen(c.value),g||e.preventDefault())})),onPointerEnter:n(r.onPointerEnter,(()=>{Boolean(p.value)&&!g&&(p.onMenuOpen(c.value),m.current?.focus())})),onKeyDown:n(r.onKeyDown,(e=>{i||(["Enter"," "].includes(e.key)&&p.onMenuToggle(c.value),"ArrowDown"===e.key&&p.onMenuOpen(c.value),["Enter"," ","ArrowDown"].includes(e.key)&&(c.wasKeyboardTriggerOpenRef.current=!0,e.preventDefault()))})),onFocus:n(r.onFocus,(()=>v(!0))),onBlur:n(r.onBlur,(()=>v(!1)))})})})})}));q.displayName=Y;var H=e=>{const{__scopeMenubar:r,...a}=e,n=E(r);return N.jsx(j,{...n,...a})};H.displayName="MenubarPortal";var J="MenubarContent",Q=e.forwardRef(((r,a)=>{const{__scopeMenubar:o,align:t="start",...i}=r,s=E(o),u=B(J,o),l=U(J,o),p=D(o),c=e.useRef(!1);return N.jsx(d,{id:l.contentId,"aria-labelledby":l.triggerId,"data-radix-menubar-content":"",...s,...i,ref:a,align:t,onCloseAutoFocus:n(r.onCloseAutoFocus,(e=>{Boolean(u.value)||c.current||l.triggerRef.current?.focus(),c.current=!1,e.preventDefault()})),onFocusOutside:n(r.onFocusOutside,(e=>{const r=e.target;p().some((e=>e.ref.current?.contains(r)))&&e.preventDefault()})),onInteractOutside:n(r.onInteractOutside,(()=>{c.current=!0})),onEntryFocus:e=>{l.wasKeyboardTriggerOpenRef.current||e.preventDefault()},onKeyDown:n(r.onKeyDown,(e=>{if(["ArrowRight","ArrowLeft"].includes(e.key)){const n=e.target,o=n.hasAttribute("data-radix-menubar-subtrigger"),t=n.closest("[data-radix-menubar-content]")!==e.currentTarget,i=("rtl"===u.dir?"ArrowRight":"ArrowLeft")===e.key;if(!i&&o)return;if(t&&i)return;let s=p().filter((e=>!e.disabled)).map((e=>e.value));i&&s.reverse();const d=s.indexOf(l.value);s=u.loop?(a=d+1,(r=s).map(((e,n)=>r[(a+n)%r.length]))):s.slice(d+1);const[c]=s;c&&u.onMenuOpen(c)}var r,a}),{checkForDefaultPrevented:!1}),style:{...r.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})}));Q.displayName=J;var W=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(l,{...o,...n,ref:r})}));W.displayName="MenubarGroup";var X=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(p,{...o,...n,ref:r})}));X.displayName="MenubarLabel";var Z=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(c,{...o,...n,ref:r})}));Z.displayName="MenubarItem";var $=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(m,{...o,...n,ref:r})}));$.displayName="MenubarCheckboxItem";var ee=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(f,{...o,...n,ref:r})}));ee.displayName="MenubarRadioGroup";var re=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(b,{...o,...n,ref:r})}));re.displayName="MenubarRadioItem";var ae=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(v,{...o,...n,ref:r})}));ae.displayName="MenubarItemIndicator";var ne=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(g,{...o,...n,ref:r})}));ne.displayName="MenubarSeparator";var oe=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(x,{...o,...n,ref:r})}));oe.displayName="MenubarArrow";var te=e=>{const{__scopeMenubar:r,children:a,open:n,onOpenChange:o,defaultOpen:t}=e,i=E(r),[s=!1,u]=O({prop:n,defaultProp:t,onChange:o});return N.jsx(_,{...i,open:s,onOpenChange:u,children:a})};te.displayName="MenubarSub";var ie=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(h,{"data-radix-menubar-subtrigger":"",...o,...n,ref:r})}));ie.displayName="MenubarSubTrigger";var se=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(M,{...o,"data-radix-menubar-content":"",...n,ref:r,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})}));se.displayName="MenubarSubContent";var ue=L,de=z,le=q,pe=H,ce=Q,me=Z,fe=$,be=ee,ve=re,ge=ae,xe=ne,he=te,Me=ie,we=se;export{fe as CheckboxItem,ce as Content,me as Item,ge as ItemIndicator,de as Menu,L as Menubar,oe as MenubarArrow,$ as MenubarCheckboxItem,Q as MenubarContent,W as MenubarGroup,Z as MenubarItem,ae as MenubarItemIndicator,X as MenubarLabel,z as MenubarMenu,H as MenubarPortal,ee as MenubarRadioGroup,re as MenubarRadioItem,ne as MenubarSeparator,te as MenubarSub,se as MenubarSubContent,ie as MenubarSubTrigger,q as MenubarTrigger,pe as Portal,be as RadioGroup,ve as RadioItem,ue as Root,xe as Separator,he as Sub,we as SubContent,Me as SubTrigger,le as Trigger,P as createMenubarScope};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-menubar/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/menubar/src/Menubar.tsx\nimport * as React from \"react\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as MenuPrimitive from \"@radix-ui/react-menu\";\nimport { createMenuScope } from \"@radix-ui/react-menu\";\nimport * as RovingFocusGroup from \"@radix-ui/react-roving-focus\";\nimport { createRovingFocusGroupScope } from \"@radix-ui/react-roving-focus\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { jsx } from \"react/jsx-runtime\";\nvar MENUBAR_NAME = \"Menubar\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(MENUBAR_NAME);\nvar [createMenubarContext, createMenubarScope] = createContextScope(MENUBAR_NAME, [\n createCollectionScope,\n createRovingFocusGroupScope\n]);\nvar useMenuScope = createMenuScope();\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar [MenubarContextProvider, useMenubarContext] = createMenubarContext(MENUBAR_NAME);\nvar Menubar = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeMenubar,\n value: valueProp,\n onValueChange,\n defaultValue,\n loop = true,\n dir,\n ...menubarProps\n } = props;\n const direction = useDirection(dir);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenubar);\n const [value = \"\", setValue] = useControllableState({\n prop: valueProp,\n onChange: onValueChange,\n defaultProp: defaultValue\n });\n const [currentTabStopId, setCurrentTabStopId] = React.useState(null);\n return /* @__PURE__ */ jsx(\n MenubarContextProvider,\n {\n scope: __scopeMenubar,\n value,\n onMenuOpen: React.useCallback(\n (value2) => {\n setValue(value2);\n setCurrentTabStopId(value2);\n },\n [setValue]\n ),\n onMenuClose: React.useCallback(() => setValue(\"\"), [setValue]),\n onMenuToggle: React.useCallback(\n (value2) => {\n setValue((prevValue) => Boolean(prevValue) ? \"\" : value2);\n setCurrentTabStopId(value2);\n },\n [setValue]\n ),\n dir: direction,\n loop,\n children: /* @__PURE__ */ jsx(Collection.Provider, { scope: __scopeMenubar, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeMenubar, children: /* @__PURE__ */ jsx(\n RovingFocusGroup.Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n orientation: \"horizontal\",\n loop,\n dir: direction,\n currentTabStopId,\n onCurrentTabStopIdChange: setCurrentTabStopId,\n children: /* @__PURE__ */ jsx(Primitive.div, { role: \"menubar\", ...menubarProps, ref: forwardedRef })\n }\n ) }) })\n }\n );\n }\n);\nMenubar.displayName = MENUBAR_NAME;\nvar MENU_NAME = \"MenubarMenu\";\nvar [MenubarMenuProvider, useMenubarMenuContext] = createMenubarContext(MENU_NAME);\nvar MenubarMenu = (props) => {\n const { __scopeMenubar, value: valueProp, ...menuProps } = props;\n const autoValue = useId();\n const value = valueProp || autoValue || \"LEGACY_REACT_AUTO_VALUE\";\n const context = useMenubarContext(MENU_NAME, __scopeMenubar);\n const menuScope = useMenuScope(__scopeMenubar);\n const triggerRef = React.useRef(null);\n const wasKeyboardTriggerOpenRef = React.useRef(false);\n const open = context.value === value;\n React.useEffect(() => {\n if (!open) wasKeyboardTriggerOpenRef.current = false;\n }, [open]);\n return /* @__PURE__ */ jsx(\n MenubarMenuProvider,\n {\n scope: __scopeMenubar,\n value,\n triggerId: useId(),\n triggerRef,\n contentId: useId(),\n wasKeyboardTriggerOpenRef,\n children: /* @__PURE__ */ jsx(\n MenuPrimitive.Root,\n {\n ...menuScope,\n open,\n onOpenChange: (open2) => {\n if (!open2) context.onMenuClose();\n },\n modal: false,\n dir: context.dir,\n ...menuProps\n }\n )\n }\n );\n};\nMenubarMenu.displayName = MENU_NAME;\nvar TRIGGER_NAME = \"MenubarTrigger\";\nvar MenubarTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, disabled = false, ...triggerProps } = props;\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenubar);\n const menuScope = useMenuScope(__scopeMenubar);\n const context = useMenubarContext(TRIGGER_NAME, __scopeMenubar);\n const menuContext = useMenubarMenuContext(TRIGGER_NAME, __scopeMenubar);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref, menuContext.triggerRef);\n const [isFocused, setIsFocused] = React.useState(false);\n const open = context.value === menuContext.value;\n return /* @__PURE__ */ jsx(Collection.ItemSlot, { scope: __scopeMenubar, value: menuContext.value, disabled, children: /* @__PURE__ */ jsx(\n RovingFocusGroup.Item,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n focusable: !disabled,\n tabStopId: menuContext.value,\n children: /* @__PURE__ */ jsx(MenuPrimitive.Anchor, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"menuitem\",\n id: menuContext.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": open,\n \"aria-controls\": open ? menuContext.contentId : void 0,\n \"data-highlighted\": isFocused ? \"\" : void 0,\n \"data-state\": open ? \"open\" : \"closed\",\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n ...triggerProps,\n ref: composedRefs,\n onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n if (!disabled && event.button === 0 && event.ctrlKey === false) {\n context.onMenuOpen(menuContext.value);\n if (!open) event.preventDefault();\n }\n }),\n onPointerEnter: composeEventHandlers(props.onPointerEnter, () => {\n const menubarOpen = Boolean(context.value);\n if (menubarOpen && !open) {\n context.onMenuOpen(menuContext.value);\n ref.current?.focus();\n }\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (disabled) return;\n if ([\"Enter\", \" \"].includes(event.key)) context.onMenuToggle(menuContext.value);\n if (event.key === \"ArrowDown\") context.onMenuOpen(menuContext.value);\n if ([\"Enter\", \" \", \"ArrowDown\"].includes(event.key)) {\n menuContext.wasKeyboardTriggerOpenRef.current = true;\n event.preventDefault();\n }\n }),\n onFocus: composeEventHandlers(props.onFocus, () => setIsFocused(true)),\n onBlur: composeEventHandlers(props.onBlur, () => setIsFocused(false))\n }\n ) })\n }\n ) });\n }\n);\nMenubarTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"MenubarPortal\";\nvar MenubarPortal = (props) => {\n const { __scopeMenubar, ...portalProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.Portal, { ...menuScope, ...portalProps });\n};\nMenubarPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"MenubarContent\";\nvar MenubarContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, align = \"start\", ...contentProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n const context = useMenubarContext(CONTENT_NAME, __scopeMenubar);\n const menuContext = useMenubarMenuContext(CONTENT_NAME, __scopeMenubar);\n const getItems = useCollection(__scopeMenubar);\n const hasInteractedOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.Content,\n {\n id: menuContext.contentId,\n \"aria-labelledby\": menuContext.triggerId,\n \"data-radix-menubar-content\": \"\",\n ...menuScope,\n ...contentProps,\n ref: forwardedRef,\n align,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n const menubarOpen = Boolean(context.value);\n if (!menubarOpen && !hasInteractedOutsideRef.current) {\n menuContext.triggerRef.current?.focus();\n }\n hasInteractedOutsideRef.current = false;\n event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => {\n const target = event.target;\n const isMenubarTrigger = getItems().some((item) => item.ref.current?.contains(target));\n if (isMenubarTrigger) event.preventDefault();\n }),\n onInteractOutside: composeEventHandlers(props.onInteractOutside, () => {\n hasInteractedOutsideRef.current = true;\n }),\n onEntryFocus: (event) => {\n if (!menuContext.wasKeyboardTriggerOpenRef.current) event.preventDefault();\n },\n onKeyDown: composeEventHandlers(\n props.onKeyDown,\n (event) => {\n if ([\"ArrowRight\", \"ArrowLeft\"].includes(event.key)) {\n const target = event.target;\n const targetIsSubTrigger = target.hasAttribute(\"data-radix-menubar-subtrigger\");\n const isKeyDownInsideSubMenu = target.closest(\"[data-radix-menubar-content]\") !== event.currentTarget;\n const prevMenuKey = context.dir === \"rtl\" ? \"ArrowRight\" : \"ArrowLeft\";\n const isPrevKey = prevMenuKey === event.key;\n const isNextKey = !isPrevKey;\n if (isNextKey && targetIsSubTrigger) return;\n if (isKeyDownInsideSubMenu && isPrevKey) return;\n const items = getItems().filter((item) => !item.disabled);\n let candidateValues = items.map((item) => item.value);\n if (isPrevKey) candidateValues.reverse();\n const currentIndex = candidateValues.indexOf(menuContext.value);\n candidateValues = context.loop ? wrapArray(candidateValues, currentIndex + 1) : candidateValues.slice(currentIndex + 1);\n const [nextValue] = candidateValues;\n if (nextValue) context.onMenuOpen(nextValue);\n }\n },\n { checkForDefaultPrevented: false }\n ),\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-menubar-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-menubar-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-menubar-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-menubar-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-menubar-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n }\n);\nMenubarContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"MenubarGroup\";\nvar MenubarGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...groupProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.Group, { ...menuScope, ...groupProps, ref: forwardedRef });\n }\n);\nMenubarGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"MenubarLabel\";\nvar MenubarLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...labelProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.Label, { ...menuScope, ...labelProps, ref: forwardedRef });\n }\n);\nMenubarLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"MenubarItem\";\nvar MenubarItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...itemProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.Item, { ...menuScope, ...itemProps, ref: forwardedRef });\n }\n);\nMenubarItem.displayName = ITEM_NAME;\nvar CHECKBOX_ITEM_NAME = \"MenubarCheckboxItem\";\nvar MenubarCheckboxItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...checkboxItemProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });\n }\n);\nMenubarCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"MenubarRadioGroup\";\nvar MenubarRadioGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...radioGroupProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioGroup, { ...menuScope, ...radioGroupProps, ref: forwardedRef });\n }\n);\nMenubarRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"MenubarRadioItem\";\nvar MenubarRadioItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...radioItemProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });\n }\n);\nMenubarRadioItem.displayName = RADIO_ITEM_NAME;\nvar INDICATOR_NAME = \"MenubarItemIndicator\";\nvar MenubarItemIndicator = React.forwardRef((props, forwardedRef) => {\n const { __scopeMenubar, ...itemIndicatorProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });\n});\nMenubarItemIndicator.displayName = INDICATOR_NAME;\nvar SEPARATOR_NAME = \"MenubarSeparator\";\nvar MenubarSeparator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...separatorProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });\n }\n);\nMenubarSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"MenubarArrow\";\nvar MenubarArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...arrowProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.Arrow, { ...menuScope, ...arrowProps, ref: forwardedRef });\n }\n);\nMenubarArrow.displayName = ARROW_NAME;\nvar SUB_NAME = \"MenubarSub\";\nvar MenubarSub = (props) => {\n const { __scopeMenubar, children, open: openProp, onOpenChange, defaultOpen } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(MenuPrimitive.Sub, { ...menuScope, open, onOpenChange: setOpen, children });\n};\nMenubarSub.displayName = SUB_NAME;\nvar SUB_TRIGGER_NAME = \"MenubarSubTrigger\";\nvar MenubarSubTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...subTriggerProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.SubTrigger,\n {\n \"data-radix-menubar-subtrigger\": \"\",\n ...menuScope,\n ...subTriggerProps,\n ref: forwardedRef\n }\n );\n }\n);\nMenubarSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"MenubarSubContent\";\nvar MenubarSubContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...subContentProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.SubContent,\n {\n ...menuScope,\n \"data-radix-menubar-content\": \"\",\n ...subContentProps,\n ref: forwardedRef,\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-menubar-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-menubar-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-menubar-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-menubar-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-menubar-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n }\n);\nMenubarSubContent.displayName = SUB_CONTENT_NAME;\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root3 = Menubar;\nvar Menu = MenubarMenu;\nvar Trigger = MenubarTrigger;\nvar Portal2 = MenubarPortal;\nvar Content2 = MenubarContent;\nvar Group2 = MenubarGroup;\nvar Label2 = MenubarLabel;\nvar Item3 = MenubarItem;\nvar CheckboxItem2 = MenubarCheckboxItem;\nvar RadioGroup2 = MenubarRadioGroup;\nvar RadioItem2 = MenubarRadioItem;\nvar ItemIndicator2 = MenubarItemIndicator;\nvar Separator2 = MenubarSeparator;\nvar Arrow2 = MenubarArrow;\nvar Sub2 = MenubarSub;\nvar SubTrigger2 = MenubarSubTrigger;\nvar SubContent2 = MenubarSubContent;\nexport {\n Arrow2 as Arrow,\n CheckboxItem2 as CheckboxItem,\n Content2 as Content,\n Group2 as Group,\n Item3 as Item,\n ItemIndicator2 as ItemIndicator,\n Label2 as Label,\n Menu,\n Menubar,\n MenubarArrow,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarItemIndicator,\n MenubarLabel,\n MenubarMenu,\n MenubarPortal,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n Portal2 as Portal,\n RadioGroup2 as RadioGroup,\n RadioItem2 as RadioItem,\n Root3 as Root,\n Separator2 as Separator,\n Sub2 as Sub,\n SubContent2 as SubContent,\n SubTrigger2 as SubTrigger,\n Trigger,\n createMenubarScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["MENUBAR_NAME","Collection","useCollection","createCollectionScope","createCollection","createMenubarContext","createMenubarScope","createContextScope","createRovingFocusGroupScope","useMenuScope","createMenuScope","useRovingFocusGroupScope","MenubarContextProvider","useMenubarContext","Menubar","React","forwardRef","props","forwardedRef","__scopeMenubar","value","valueProp","onValueChange","defaultValue","loop","dir","menubarProps","direction","useDirection","rovingFocusGroupScope","setValue","useControllableState","prop","onChange","defaultProp","currentTabStopId","setCurrentTabStopId","useState","jsx","scope","onMenuOpen","useCallback","value2","onMenuClose","onMenuToggle","prevValue","Boolean","children","Provider","Slot","RovingFocusGroup.Root","asChild","orientation","onCurrentTabStopIdChange","Primitive","div","role","ref","displayName","MENU_NAME","MenubarMenuProvider","useMenubarMenuContext","MenubarMenu","menuProps","autoValue","useId","context","menuScope","triggerRef","useRef","wasKeyboardTriggerOpenRef","open","useEffect","current","triggerId","contentId","MenuPrimitive.Root","onOpenChange","open2","modal","TRIGGER_NAME","MenubarTrigger","disabled","triggerProps","menuContext","composedRefs","useComposedRefs","isFocused","setIsFocused","ItemSlot","RovingFocusGroup.Item","focusable","tabStopId","MenuPrimitive.Anchor","button","type","id","onPointerDown","composeEventHandlers","event","ctrlKey","preventDefault","onPointerEnter","focus","onKeyDown","includes","key","onFocus","onBlur","MenubarPortal","portalProps","MenuPrimitive.Portal","CONTENT_NAME","MenubarContent","align","contentProps","getItems","hasInteractedOutsideRef","MenuPrimitive.Content","onCloseAutoFocus","onFocusOutside","target","some","item","contains","onInteractOutside","onEntryFocus","targetIsSubTrigger","hasAttribute","isKeyDownInsideSubMenu","closest","currentTarget","isPrevKey","candidateValues","filter","map","reverse","currentIndex","indexOf","startIndex","array","_","index","length","slice","nextValue","checkForDefaultPrevented","style","MenubarGroup","groupProps","MenuPrimitive.Group","MenubarLabel","labelProps","MenuPrimitive.Label","MenubarItem","itemProps","MenuPrimitive.Item","MenubarCheckboxItem","checkboxItemProps","MenuPrimitive.CheckboxItem","MenubarRadioGroup","radioGroupProps","MenuPrimitive.RadioGroup","MenubarRadioItem","radioItemProps","MenuPrimitive.RadioItem","MenubarItemIndicator","itemIndicatorProps","MenuPrimitive.ItemIndicator","MenubarSeparator","separatorProps","MenuPrimitive.Separator","MenubarArrow","arrowProps","MenuPrimitive.Arrow","MenubarSub","openProp","defaultOpen","setOpen","MenuPrimitive.Sub","MenubarSubTrigger","subTriggerProps","MenuPrimitive.SubTrigger","MenubarSubContent","subContentProps","MenuPrimitive.SubContent","Root3","Menu","Trigger","Portal2","Content2","Item3","CheckboxItem2","RadioGroup2","RadioItem2","ItemIndicator2","Separator2","Sub2","SubTrigger2","SubContent2"],"mappings":"wgCAiBA,IAAIA,EAAe,WACdC,EAAYC,EAAeC,GAAyBC,EAAiBJ,IACrEK,EAAsBC,GAAsBC,EAAmBP,EAAc,CAChFG,EACAK,IAEEC,EAAeC,IACfC,EAA2BH,KAC1BI,EAAwBC,GAAqBR,EAAqBL,GACnEc,EAAUC,EAAMC,YAClB,CAACC,EAAOC,KACN,MAAMC,eACJA,EACAC,MAAOC,EAASC,cAChBA,EAAaC,aACbA,EAAYC,KACZA,GAAO,EAAIC,IACXA,KACGC,GACDT,EACEU,EAAYC,EAAaH,GACzBI,EAAwBlB,EAAyBQ,IAChDC,EAAQ,GAAIU,GAAYC,EAAqB,CAClDC,KAAMX,EACNY,SAAUX,EACVY,YAAaX,KAERY,EAAkBC,GAAuBrB,EAAMsB,SAAS,MAC/D,OAAuBC,EAAGA,IACxB1B,EACA,CACE2B,MAAOpB,EACPC,QACAoB,WAAYzB,EAAM0B,aACfC,IACCZ,EAASY,GACTN,EAAoBM,EAAO,GAE7B,CAACZ,IAEHa,YAAa5B,EAAM0B,aAAY,IAAMX,EAAS,KAAK,CAACA,IACpDc,aAAc7B,EAAM0B,aACjBC,IACCZ,GAAUe,GAAcC,QAAQD,GAAa,GAAKH,IAClDN,EAAoBM,EAAO,GAE7B,CAACZ,IAEHL,IAAKE,EACLH,OACAuB,SAA0BT,EAAGA,IAACrC,EAAW+C,SAAU,CAAET,MAAOpB,EAAgB4B,SAA0BT,EAAAA,IAAIrC,EAAWgD,KAAM,CAAEV,MAAOpB,EAAgB4B,SAA0BT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AAW7E,EAGX8E,GAAQrC,EACRsC,GAAgBnC,EAChBoC,GAAcjC,GACdkC,GAAa/B,GACbgC,GAAiB7B,GACjB8B,GAAa3B,GAEb4B,GAAOtB,GACPuB,GAAclB,GACdmB,GAAchB"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as e from"react";import t from"react-dom";import{createContextScope as n}from"../../react-context/dist/index.mjs";import{composeEventHandlers as o}from"../../primitive/dist/index.mjs";import{Primitive as r,dispatchDiscreteCustomEvent as i}from"../../react-primitive/dist/index.mjs";import{useControllableState as a}from"../../react-use-controllable-state/dist/index.mjs";import{useComposedRefs as s,composeRefs as u}from"../../react-compose-refs/dist/index.mjs";import{useDirection as c}from"../../react-direction/dist/index.mjs";import{Presence as l}from"../../react-presence/dist/index.mjs";import{useId as d}from"../../react-id/dist/index.mjs";import{createCollection as f}from"../../react-collection/dist/index.mjs";import{DismissableLayer as v}from"../../react-dismissable-layer/dist/index.mjs";import{usePrevious as m}from"../../react-use-previous/dist/index.mjs";import{useLayoutEffect as p}from"../../react-use-layout-effect/dist/index.mjs";import{useCallbackRef as w}from"../../react-use-callback-ref/dist/index.mjs";import{Root as g}from"../../react-visually-hidden/dist/index.mjs";import{j as x}from"../../../../_virtual/jsx-runtime.mjs";var h="NavigationMenu",[R,C,E]=f(h),[M,j,y]=f(h),[b,N]=n(h,[E,y]),[T,_]=b(h),[P,I]=b(h),L=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:o,value:i,onValueChange:u,defaultValue:l,delayDuration:d=200,skipDelayDuration:f=300,orientation:v="horizontal",dir:m,...p}=t,[w,g]=e.useState(null),h=s(n,(e=>g(e))),R=c(m),C=e.useRef(0),E=e.useRef(0),M=e.useRef(0),[j,y]=e.useState(!0),[b="",N]=a({prop:i,onChange:e=>{const t=f>0;""!==e?(window.clearTimeout(M.current),t&&y(!1)):(window.clearTimeout(M.current),M.current=window.setTimeout((()=>y(!0)),f)),u?.(e)},defaultProp:l}),T=e.useCallback((()=>{window.clearTimeout(E.current),E.current=window.setTimeout((()=>N("")),150)}),[N]),_=e.useCallback((e=>{window.clearTimeout(E.current),N(e)}),[N]),P=e.useCallback((e=>{b===e?window.clearTimeout(E.current):C.current=window.setTimeout((()=>{window.clearTimeout(E.current),N(e)}),d)}),[b,N,d]);return e.useEffect((()=>()=>{window.clearTimeout(C.current),window.clearTimeout(E.current),window.clearTimeout(M.current)}),[]),x.jsx(F,{scope:o,isRootMenu:!0,value:b,dir:R,orientation:v,rootNavigationMenu:w,onTriggerEnter:e=>{window.clearTimeout(C.current),j?P(e):_(e)},onTriggerLeave:()=>{window.clearTimeout(C.current),T()},onContentEnter:()=>window.clearTimeout(E.current),onContentLeave:T,onItemSelect:e=>{N((t=>t===e?"":e))},onItemDismiss:()=>N(""),children:x.jsx(r.nav,{"aria-label":"Main","data-orientation":v,dir:R,...p,ref:h})})}));L.displayName=h;var D="NavigationMenuSub",k=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,value:o,onValueChange:i,defaultValue:s,orientation:u="horizontal",...c}=e,l=_(D,n),[d="",f]=a({prop:o,onChange:i,defaultProp:s});return x.jsx(F,{scope:n,isRootMenu:!1,value:d,dir:l.dir,orientation:u,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:x.jsx(r.div,{"data-orientation":u,...c,ref:t})})}));k.displayName=D;var F=t=>{const{scope:n,isRootMenu:o,rootNavigationMenu:r,dir:i,orientation:a,children:s,value:u,onItemSelect:c,onItemDismiss:l,onTriggerEnter:f,onTriggerLeave:v,onContentEnter:p,onContentLeave:g}=t,[h,C]=e.useState(null),[E,M]=e.useState(new Map),[j,y]=e.useState(null);return x.jsx(T,{scope:n,isRootMenu:o,rootNavigationMenu:r,value:u,previousValue:m(u),baseId:d(),dir:i,orientation:a,viewport:h,onViewportChange:C,indicatorTrack:j,onIndicatorTrackChange:y,onTriggerEnter:w(f),onTriggerLeave:w(v),onContentEnter:w(p),onContentLeave:w(g),onItemSelect:w(c),onItemDismiss:w(l),onViewportContentChange:e.useCallback(((e,t)=>{M((n=>(n.set(e,t),new Map(n))))}),[]),onViewportContentRemove:e.useCallback((e=>{M((t=>t.has(e)?(t.delete(e),new Map(t)):t))}),[]),children:x.jsx(R.Provider,{scope:n,children:x.jsx(P,{scope:n,items:E,children:s})})})},S="NavigationMenuList",A=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,i=_(S,n),a=x.jsx(r.ul,{"data-orientation":i.orientation,...o,ref:t});return x.jsx(r.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:x.jsx(R.Slot,{scope:n,children:i.isRootMenu?x.jsx(oe,{asChild:!0,children:a}):a})})}));A.displayName=S;var K="NavigationMenuItem",[O,V]=b(K),z=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:o,value:i,...a}=t,s=d(),u=i||s||"LEGACY_REACT_AUTO_VALUE",c=e.useRef(null),l=e.useRef(null),f=e.useRef(null),v=e.useRef((()=>{})),m=e.useRef(!1),p=e.useCallback(((e="start")=>{if(c.current){v.current();const t=ae(c.current);t.length&&se("start"===e?t:t.reverse())}}),[]),w=e.useCallback((()=>{if(c.current){const e=ae(c.current);e.length&&(v.current=function(e){return e.forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})),()=>{e.forEach((e=>{const t=e.dataset.tabindex;e.setAttribute("tabindex",t)}))}}(e))}}),[]);return x.jsx(O,{scope:o,value:u,triggerRef:l,contentRef:c,focusProxyRef:f,wasEscapeCloseRef:m,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:w,onContentFocusOutside:w,children:x.jsx(r.li,{...a,ref:n})})}));z.displayName=K;var $="NavigationMenuTrigger",U=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:i,disabled:a,...u}=t,c=_($,t.__scopeNavigationMenu),l=V($,t.__scopeNavigationMenu),d=e.useRef(null),f=s(d,l.triggerRef,n),v=le(c.baseId,l.value),m=de(c.baseId,l.value),p=e.useRef(!1),w=e.useRef(!1),h=l.value===c.value;return x.jsxs(x.Fragment,{children:[x.jsx(R.ItemSlot,{scope:i,value:l.value,children:x.jsx(ie,{asChild:!0,children:x.jsx(r.button,{id:v,disabled:a,"data-disabled":a?"":void 0,"data-state":ce(h),"aria-expanded":h,"aria-controls":m,...u,ref:f,onPointerEnter:o(t.onPointerEnter,(()=>{w.current=!1,l.wasEscapeCloseRef.current=!1})),onPointerMove:o(t.onPointerMove,fe((()=>{a||w.current||l.wasEscapeCloseRef.current||p.current||(c.onTriggerEnter(l.value),p.current=!0)}))),onPointerLeave:o(t.onPointerLeave,fe((()=>{a||(c.onTriggerLeave(),p.current=!1)}))),onClick:o(t.onClick,(()=>{c.onItemSelect(l.value),w.current=h})),onKeyDown:o(t.onKeyDown,(e=>{const t={horizontal:"ArrowDown",vertical:"rtl"===c.dir?"ArrowLeft":"ArrowRight"}[c.orientation];h&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())}))})})}),h&&x.jsxs(x.Fragment,{children:[x.jsx(g,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:e=>{const t=l.contentRef.current,n=e.relatedTarget,o=n===d.current,r=t?.contains(n);!o&&r||l.onFocusProxyEnter(o?"start":"end")}}),c.viewport&&x.jsx("span",{"aria-owns":m})]})]})}));U.displayName=$;var B="navigationMenu.linkSelect",H=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,active:a,onSelect:s,...u}=e;return x.jsx(ie,{asChild:!0,children:x.jsx(r.a,{"data-active":a?"":void 0,"aria-current":a?"page":void 0,...u,ref:t,onClick:o(e.onClick,(e=>{const t=e.target,n=new CustomEvent(B,{bubbles:!0,cancelable:!0});if(t.addEventListener(B,(e=>s?.(e)),{once:!0}),i(t,n),!n.defaultPrevented&&!e.metaKey){const e=new CustomEvent(Q,{bubbles:!0,cancelable:!0});i(t,e)}}),{checkForDefaultPrevented:!1})})})}));H.displayName="NavigationMenuLink";var W="NavigationMenuIndicator",G=e.forwardRef(((e,n)=>{const{forceMount:o,...r}=e,i=_(W,e.__scopeNavigationMenu),a=Boolean(i.value);return i.indicatorTrack?t.createPortal(x.jsx(l,{present:o||a,children:x.jsx(Y,{...r,ref:n})}),i.indicatorTrack):null}));G.displayName=W;var Y=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:o,...i}=t,a=_(W,o),s=C(o),[u,c]=e.useState(null),[l,d]=e.useState(null),f="horizontal"===a.orientation,v=Boolean(a.value);e.useEffect((()=>{const e=s(),t=e.find((e=>e.value===a.value))?.ref.current;t&&c(t)}),[s,a.value]);const m=()=>{u&&d({size:f?u.offsetWidth:u.offsetHeight,offset:f?u.offsetLeft:u.offsetTop})};return ue(u,m),ue(a.indicatorTrack,m),l?x.jsx(r.div,{"aria-hidden":!0,"data-state":v?"visible":"hidden","data-orientation":a.orientation,...i,ref:n,style:{position:"absolute",...f?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...i.style}}):null})),q="NavigationMenuContent",X=e.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,i=_(q,e.__scopeNavigationMenu),a=V(q,e.__scopeNavigationMenu),u=s(a.contentRef,t),c=a.value===i.value,d={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return i.viewport?x.jsx(J,{forceMount:n,...d,ref:u}):x.jsx(l,{present:n||c,children:x.jsx(Z,{"data-state":ce(c),...d,ref:u,onPointerEnter:o(e.onPointerEnter,i.onContentEnter),onPointerLeave:o(e.onPointerLeave,fe(i.onContentLeave)),style:{pointerEvents:!c&&i.isRootMenu?"none":void 0,...d.style}})})}));X.displayName=q;var J=e.forwardRef(((e,t)=>{const n=_(q,e.__scopeNavigationMenu),{onViewportContentChange:o,onViewportContentRemove:r}=n;return p((()=>{o(e.value,{ref:t,...e})}),[e,t,o]),p((()=>()=>r(e.value)),[e.value,r]),null})),Q="navigationMenu.rootContentDismiss",Z=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:a,focusProxyRef:u,wasEscapeCloseRef:c,onRootContentClose:l,onContentFocusOutside:d,...f}=t,m=_(q,r),p=e.useRef(null),w=s(p,n),g=le(m.baseId,i),h=de(m.baseId,i),R=C(r),E=e.useRef(null),{onItemDismiss:M}=m;e.useEffect((()=>{const e=p.current;if(m.isRootMenu&&e){const t=()=>{M(),l(),e.contains(document.activeElement)&&a.current?.focus()};return e.addEventListener(Q,t),()=>e.removeEventListener(Q,t)}}),[m.isRootMenu,t.value,a,M,l]);const j=e.useMemo((()=>{const e=R().map((e=>e.value));"rtl"===m.dir&&e.reverse();const t=e.indexOf(m.value),n=e.indexOf(m.previousValue),o=i===m.value,r=n===e.indexOf(i);if(!o&&!r)return E.current;const a=(()=>{if(t!==n){if(o&&-1!==n)return t>n?"from-end":"from-start";if(r&&-1!==t)return t>n?"to-start":"to-end"}return null})();return E.current=a,a}),[m.previousValue,m.value,m.dir,R,i]);return x.jsx(oe,{asChild:!0,children:x.jsx(v,{id:h,"aria-labelledby":g,"data-motion":j,"data-orientation":m.orientation,...f,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{const e=new Event(Q,{bubbles:!0,cancelable:!0});p.current?.dispatchEvent(e)},onFocusOutside:o(t.onFocusOutside,(e=>{d();const t=e.target;m.rootNavigationMenu?.contains(t)&&e.preventDefault()})),onPointerDownOutside:o(t.onPointerDownOutside,(e=>{const t=e.target,n=R().some((e=>e.ref.current?.contains(t))),o=m.isRootMenu&&m.viewport?.contains(t);(n||o||!m.isRootMenu)&&e.preventDefault()})),onKeyDown:o(t.onKeyDown,(e=>{const t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){const t=ae(e.currentTarget),n=document.activeElement,o=t.findIndex((e=>e===n));se(e.shiftKey?t.slice(0,o).reverse():t.slice(o+1,t.length))?e.preventDefault():u.current?.focus()}})),onEscapeKeyDown:o(t.onEscapeKeyDown,(e=>{c.current=!0}))})})})),ee="NavigationMenuViewport",te=e.forwardRef(((e,t)=>{const{forceMount:n,...o}=e,r=_(ee,e.__scopeNavigationMenu),i=Boolean(r.value);return x.jsx(l,{present:n||i,children:x.jsx(ne,{...o,ref:t})})}));te.displayName=ee;var ne=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:i,children:a,...c}=t,d=_(ee,i),f=s(n,d.onViewportChange),v=I(q,t.__scopeNavigationMenu),[m,p]=e.useState(null),[w,g]=e.useState(null),h=m?m?.width+"px":void 0,R=m?m?.height+"px":void 0,C=Boolean(d.value),E=C?d.value:d.previousValue;return ue(w,(()=>{w&&p({width:w.offsetWidth,height:w.offsetHeight})})),x.jsx(r.div,{"data-state":ce(C),"data-orientation":d.orientation,...c,ref:f,style:{pointerEvents:!C&&d.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":R,...c.style},onPointerEnter:o(t.onPointerEnter,d.onContentEnter),onPointerLeave:o(t.onPointerLeave,fe(d.onContentLeave)),children:Array.from(v.items).map((([e,{ref:t,forceMount:n,...o}])=>{const r=E===e;return x.jsx(l,{present:n||r,children:x.jsx(Z,{...o,ref:u(t,(e=>{r&&e&&g(e)}))})},e)}))})})),oe=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,i=_("FocusGroup",n);return x.jsx(M.Provider,{scope:n,children:x.jsx(M.Slot,{scope:n,children:x.jsx(r.div,{dir:i.dir,...o,ref:t})})})})),re=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ie=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,...i}=e,a=j(n),s=_("FocusGroupItem",n);return x.jsx(M.ItemSlot,{scope:n,children:x.jsx(r.button,{...i,ref:t,onKeyDown:o(e.onKeyDown,(e=>{if(["Home","End",...re].includes(e.key)){let t=a().map((e=>e.ref.current));if(["rtl"===s.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),re.includes(e.key)){const n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout((()=>se(t))),e.preventDefault()}}))})})}));function ae(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function se(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}function ue(e,t){const n=w(t);p((()=>{let t=0;if(e){const o=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return o.observe(e),()=>{window.cancelAnimationFrame(t),o.unobserve(e)}}}),[e,n])}function ce(e){return e?"open":"closed"}function le(e,t){return`${e}-trigger-${t}`}function de(e,t){return`${e}-content-${t}`}function fe(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ve=L,me=A,pe=z,we=U,ge=H,xe=G,he=X,Re=te;export{he as Content,xe as Indicator,pe as Item,ge as Link,me as List,L as NavigationMenu,X as NavigationMenuContent,G as NavigationMenuIndicator,z as NavigationMenuItem,H as NavigationMenuLink,A as NavigationMenuList,k as NavigationMenuSub,U as NavigationMenuTrigger,te as NavigationMenuViewport,ve as Root,we as Trigger,Re as Viewport,N as createNavigationMenuScope};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-navigation-menu/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/navigation-menu/src/NavigationMenu.tsx\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { composeRefs, useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport * as VisuallyHiddenPrimitive from \"@radix-ui/react-visually-hidden\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar NAVIGATION_MENU_NAME = \"NavigationMenu\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(NAVIGATION_MENU_NAME);\nvar [FocusGroupCollection, useFocusGroupCollection, createFocusGroupCollectionScope] = createCollection(NAVIGATION_MENU_NAME);\nvar [createNavigationMenuContext, createNavigationMenuScope] = createContextScope(\n NAVIGATION_MENU_NAME,\n [createCollectionScope, createFocusGroupCollectionScope]\n);\nvar [NavigationMenuProviderImpl, useNavigationMenuContext] = createNavigationMenuContext(NAVIGATION_MENU_NAME);\nvar [ViewportContentProvider, useViewportContentContext] = createNavigationMenuContext(NAVIGATION_MENU_NAME);\nvar NavigationMenu = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeNavigationMenu,\n value: valueProp,\n onValueChange,\n defaultValue,\n delayDuration = 200,\n skipDelayDuration = 300,\n orientation = \"horizontal\",\n dir,\n ...NavigationMenuProps\n } = props;\n const [navigationMenu, setNavigationMenu] = React.useState(null);\n const composedRef = useComposedRefs(forwardedRef, (node) => setNavigationMenu(node));\n const direction = useDirection(dir);\n const openTimerRef = React.useRef(0);\n const closeTimerRef = React.useRef(0);\n const skipDelayTimerRef = React.useRef(0);\n const [isOpenDelayed, setIsOpenDelayed] = React.useState(true);\n const [value = \"\", setValue] = useControllableState({\n prop: valueProp,\n onChange: (value2) => {\n const isOpen = value2 !== \"\";\n const hasSkipDelayDuration = skipDelayDuration > 0;\n if (isOpen) {\n window.clearTimeout(skipDelayTimerRef.current);\n if (hasSkipDelayDuration) setIsOpenDelayed(false);\n } else {\n window.clearTimeout(skipDelayTimerRef.current);\n skipDelayTimerRef.current = window.setTimeout(\n () => setIsOpenDelayed(true),\n skipDelayDuration\n );\n }\n onValueChange?.(value2);\n },\n defaultProp: defaultValue\n });\n const startCloseTimer = React.useCallback(() => {\n window.clearTimeout(closeTimerRef.current);\n closeTimerRef.current = window.setTimeout(() => setValue(\"\"), 150);\n }, [setValue]);\n const handleOpen = React.useCallback(\n (itemValue) => {\n window.clearTimeout(closeTimerRef.current);\n setValue(itemValue);\n },\n [setValue]\n );\n const handleDelayedOpen = React.useCallback(\n (itemValue) => {\n const isOpenItem = value === itemValue;\n if (isOpenItem) {\n window.clearTimeout(closeTimerRef.current);\n } else {\n openTimerRef.current = window.setTimeout(() => {\n window.clearTimeout(closeTimerRef.current);\n setValue(itemValue);\n }, delayDuration);\n }\n },\n [value, setValue, delayDuration]\n );\n React.useEffect(() => {\n return () => {\n window.clearTimeout(openTimerRef.current);\n window.clearTimeout(closeTimerRef.current);\n window.clearTimeout(skipDelayTimerRef.current);\n };\n }, []);\n return /* @__PURE__ */ jsx(\n NavigationMenuProvider,\n {\n scope: __scopeNavigationMenu,\n isRootMenu: true,\n value,\n dir: direction,\n orientation,\n rootNavigationMenu: navigationMenu,\n onTriggerEnter: (itemValue) => {\n window.clearTimeout(openTimerRef.current);\n if (isOpenDelayed) handleDelayedOpen(itemValue);\n else handleOpen(itemValue);\n },\n onTriggerLeave: () => {\n window.clearTimeout(openTimerRef.current);\n startCloseTimer();\n },\n onContentEnter: () => window.clearTimeout(closeTimerRef.current),\n onContentLeave: startCloseTimer,\n onItemSelect: (itemValue) => {\n setValue((prevValue) => prevValue === itemValue ? \"\" : itemValue);\n },\n onItemDismiss: () => setValue(\"\"),\n children: /* @__PURE__ */ jsx(\n Primitive.nav,\n {\n \"aria-label\": \"Main\",\n \"data-orientation\": orientation,\n dir: direction,\n ...NavigationMenuProps,\n ref: composedRef\n }\n )\n }\n );\n }\n);\nNavigationMenu.displayName = NAVIGATION_MENU_NAME;\nvar SUB_NAME = \"NavigationMenuSub\";\nvar NavigationMenuSub = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeNavigationMenu,\n value: valueProp,\n onValueChange,\n defaultValue,\n orientation = \"horizontal\",\n ...subProps\n } = props;\n const context = useNavigationMenuContext(SUB_NAME, __scopeNavigationMenu);\n const [value = \"\", setValue] = useControllableState({\n prop: valueProp,\n onChange: onValueChange,\n defaultProp: defaultValue\n });\n return /* @__PURE__ */ jsx(\n NavigationMenuProvider,\n {\n scope: __scopeNavigationMenu,\n isRootMenu: false,\n value,\n dir: context.dir,\n orientation,\n rootNavigationMenu: context.rootNavigationMenu,\n onTriggerEnter: (itemValue) => setValue(itemValue),\n onItemSelect: (itemValue) => setValue(itemValue),\n onItemDismiss: () => setValue(\"\"),\n children: /* @__PURE__ */ jsx(Primitive.div, { \"data-orientation\": orientation, ...subProps, ref: forwardedRef })\n }\n );\n }\n);\nNavigationMenuSub.displayName = SUB_NAME;\nvar NavigationMenuProvider = (props) => {\n const {\n scope,\n isRootMenu,\n rootNavigationMenu,\n dir,\n orientation,\n children,\n value,\n onItemSelect,\n onItemDismiss,\n onTriggerEnter,\n onTriggerLeave,\n onContentEnter,\n onContentLeave\n } = props;\n const [viewport, setViewport] = React.useState(null);\n const [viewportContent, setViewportContent] = React.useState(/* @__PURE__ */ new Map());\n const [indicatorTrack, setIndicatorTrack] = React.useState(null);\n return /* @__PURE__ */ jsx(\n NavigationMenuProviderImpl,\n {\n scope,\n isRootMenu,\n rootNavigationMenu,\n value,\n previousValue: usePrevious(value),\n baseId: useId(),\n dir,\n orientation,\n viewport,\n onViewportChange: setViewport,\n indicatorTrack,\n onIndicatorTrackChange: setIndicatorTrack,\n onTriggerEnter: useCallbackRef(onTriggerEnter),\n onTriggerLeave: useCallbackRef(onTriggerLeave),\n onContentEnter: useCallbackRef(onContentEnter),\n onContentLeave: useCallbackRef(onContentLeave),\n onItemSelect: useCallbackRef(onItemSelect),\n onItemDismiss: useCallbackRef(onItemDismiss),\n onViewportContentChange: React.useCallback((contentValue, contentData) => {\n setViewportContent((prevContent) => {\n prevContent.set(contentValue, contentData);\n return new Map(prevContent);\n });\n }, []),\n onViewportContentRemove: React.useCallback((contentValue) => {\n setViewportContent((prevContent) => {\n if (!prevContent.has(contentValue)) return prevContent;\n prevContent.delete(contentValue);\n return new Map(prevContent);\n });\n }, []),\n children: /* @__PURE__ */ jsx(Collection.Provider, { scope, children: /* @__PURE__ */ jsx(ViewportContentProvider, { scope, items: viewportContent, children }) })\n }\n );\n};\nvar LIST_NAME = \"NavigationMenuList\";\nvar NavigationMenuList = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeNavigationMenu, ...listProps } = props;\n const context = useNavigationMenuContext(LIST_NAME, __scopeNavigationMenu);\n const list = /* @__PURE__ */ jsx(Primitive.ul, { \"data-orientation\": context.orientation, ...listProps, ref: forwardedRef });\n return /* @__PURE__ */ jsx(Primitive.div, { style: { position: \"relative\" }, ref: context.onIndicatorTrackChange, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeNavigationMenu, children: context.isRootMenu ? /* @__PURE__ */ jsx(FocusGroup, { asChild: true, children: list }) : list }) });\n }\n);\nNavigationMenuList.displayName = LIST_NAME;\nvar ITEM_NAME = \"NavigationMenuItem\";\nvar [NavigationMenuItemContextProvider, useNavigationMenuItemContext] = createNavigationMenuContext(ITEM_NAME);\nvar NavigationMenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeNavigationMenu, value: valueProp, ...itemProps } = props;\n const autoValue = useId();\n const value = valueProp || autoValue || \"LEGACY_REACT_AUTO_VALUE\";\n const contentRef = React.useRef(null);\n const triggerRef = React.useRef(null);\n const focusProxyRef = React.useRef(null);\n const restoreContentTabOrderRef = React.useRef(() => {\n });\n const wasEscapeCloseRef = React.useRef(false);\n const handleContentEntry = React.useCallback((side = \"start\") => {\n if (contentRef.current) {\n restoreContentTabOrderRef.current();\n const candidates = getTabbableCandidates(contentRef.current);\n if (candidates.length) focusFirst(side === \"start\" ? candidates : candidates.reverse());\n }\n }, []);\n const handleContentExit = React.useCallback(() => {\n if (contentRef.current) {\n const candidates = getTabbableCandidates(contentRef.current);\n if (candidates.length) restoreContentTabOrderRef.current = removeFromTabOrder(candidates);\n }\n }, []);\n return /* @__PURE__ */ jsx(\n NavigationMenuItemContextProvider,\n {\n scope: __scopeNavigationMenu,\n value,\n triggerRef,\n contentRef,\n focusProxyRef,\n wasEscapeCloseRef,\n onEntryKeyDown: handleContentEntry,\n onFocusProxyEnter: handleContentEntry,\n onRootContentClose: handleContentExit,\n onContentFocusOutside: handleContentExit,\n children: /* @__PURE__ */ jsx(Primitive.li, { ...itemProps, ref: forwardedRef })\n }\n );\n }\n);\nNavigationMenuItem.displayName = ITEM_NAME;\nvar TRIGGER_NAME = \"NavigationMenuTrigger\";\nvar NavigationMenuTrigger = React.forwardRef((props, forwardedRef) => {\n const { __scopeNavigationMenu, disabled, ...triggerProps } = props;\n const context = useNavigationMenuContext(TRIGGER_NAME, props.__scopeNavigationMenu);\n const itemContext = useNavigationMenuItemContext(TRIGGER_NAME, props.__scopeNavigationMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(ref, itemContext.triggerRef, forwardedRef);\n const triggerId = makeTriggerId(context.baseId, itemContext.value);\n const contentId = makeContentId(context.baseId, itemContext.value);\n const hasPointerMoveOpenedRef = React.useRef(false);\n const wasClickCloseRef = React.useRef(false);\n const open = itemContext.value === context.value;\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(Collection.ItemSlot, { scope: __scopeNavigationMenu, value: itemContext.value, children: /* @__PURE__ */ jsx(FocusGroupItem, { asChild: true, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n id: triggerId,\n disabled,\n \"data-disabled\": disabled ? \"\" : void 0,\n \"data-state\": getOpenState(open),\n \"aria-expanded\": open,\n \"aria-controls\": contentId,\n ...triggerProps,\n ref: composedRefs,\n onPointerEnter: composeEventHandlers(props.onPointerEnter, () => {\n wasClickCloseRef.current = false;\n itemContext.wasEscapeCloseRef.current = false;\n }),\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse(() => {\n if (disabled || wasClickCloseRef.current || itemContext.wasEscapeCloseRef.current || hasPointerMoveOpenedRef.current)\n return;\n context.onTriggerEnter(itemContext.value);\n hasPointerMoveOpenedRef.current = true;\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse(() => {\n if (disabled) return;\n context.onTriggerLeave();\n hasPointerMoveOpenedRef.current = false;\n })\n ),\n onClick: composeEventHandlers(props.onClick, () => {\n context.onItemSelect(itemContext.value);\n wasClickCloseRef.current = open;\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const verticalEntryKey = context.dir === \"rtl\" ? \"ArrowLeft\" : \"ArrowRight\";\n const entryKey = { horizontal: \"ArrowDown\", vertical: verticalEntryKey }[context.orientation];\n if (open && event.key === entryKey) {\n itemContext.onEntryKeyDown();\n event.preventDefault();\n }\n })\n }\n ) }) }),\n open && /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n VisuallyHiddenPrimitive.Root,\n {\n \"aria-hidden\": true,\n tabIndex: 0,\n ref: itemContext.focusProxyRef,\n onFocus: (event) => {\n const content = itemContext.contentRef.current;\n const prevFocusedElement = event.relatedTarget;\n const wasTriggerFocused = prevFocusedElement === ref.current;\n const wasFocusFromContent = content?.contains(prevFocusedElement);\n if (wasTriggerFocused || !wasFocusFromContent) {\n itemContext.onFocusProxyEnter(wasTriggerFocused ? \"start\" : \"end\");\n }\n }\n }\n ),\n context.viewport && /* @__PURE__ */ jsx(\"span\", { \"aria-owns\": contentId })\n ] })\n ] });\n});\nNavigationMenuTrigger.displayName = TRIGGER_NAME;\nvar LINK_NAME = \"NavigationMenuLink\";\nvar LINK_SELECT = \"navigationMenu.linkSelect\";\nvar NavigationMenuLink = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeNavigationMenu, active, onSelect, ...linkProps } = props;\n return /* @__PURE__ */ jsx(FocusGroupItem, { asChild: true, children: /* @__PURE__ */ jsx(\n Primitive.a,\n {\n \"data-active\": active ? \"\" : void 0,\n \"aria-current\": active ? \"page\" : void 0,\n ...linkProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(\n props.onClick,\n (event) => {\n const target = event.target;\n const linkSelectEvent = new CustomEvent(LINK_SELECT, {\n bubbles: true,\n cancelable: true\n });\n target.addEventListener(LINK_SELECT, (event2) => onSelect?.(event2), { once: true });\n dispatchDiscreteCustomEvent(target, linkSelectEvent);\n if (!linkSelectEvent.defaultPrevented && !event.metaKey) {\n const rootContentDismissEvent = new CustomEvent(ROOT_CONTENT_DISMISS, {\n bubbles: true,\n cancelable: true\n });\n dispatchDiscreteCustomEvent(target, rootContentDismissEvent);\n }\n },\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nNavigationMenuLink.displayName = LINK_NAME;\nvar INDICATOR_NAME = \"NavigationMenuIndicator\";\nvar NavigationMenuIndicator = React.forwardRef((props, forwardedRef) => {\n const { forceMount, ...indicatorProps } = props;\n const context = useNavigationMenuContext(INDICATOR_NAME, props.__scopeNavigationMenu);\n const isVisible = Boolean(context.value);\n return context.indicatorTrack ? ReactDOM.createPortal(\n /* @__PURE__ */ jsx(Presence, { present: forceMount || isVisible, children: /* @__PURE__ */ jsx(NavigationMenuIndicatorImpl, { ...indicatorProps, ref: forwardedRef }) }),\n context.indicatorTrack\n ) : null;\n});\nNavigationMenuIndicator.displayName = INDICATOR_NAME;\nvar NavigationMenuIndicatorImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeNavigationMenu, ...indicatorProps } = props;\n const context = useNavigationMenuContext(INDICATOR_NAME, __scopeNavigationMenu);\n const getItems = useCollection(__scopeNavigationMenu);\n const [activeTrigger, setActiveTrigger] = React.useState(\n null\n );\n const [position, setPosition] = React.useState(null);\n const isHorizontal = context.orientation === \"horizontal\";\n const isVisible = Boolean(context.value);\n React.useEffect(() => {\n const items = getItems();\n const triggerNode = items.find((item) => item.value === context.value)?.ref.current;\n if (triggerNode) setActiveTrigger(triggerNode);\n }, [getItems, context.value]);\n const handlePositionChange = () => {\n if (activeTrigger) {\n setPosition({\n size: isHorizontal ? activeTrigger.offsetWidth : activeTrigger.offsetHeight,\n offset: isHorizontal ? activeTrigger.offsetLeft : activeTrigger.offsetTop\n });\n }\n };\n useResizeObserver(activeTrigger, handlePositionChange);\n useResizeObserver(context.indicatorTrack, handlePositionChange);\n return position ? /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"aria-hidden\": true,\n \"data-state\": isVisible ? \"visible\" : \"hidden\",\n \"data-orientation\": context.orientation,\n ...indicatorProps,\n ref: forwardedRef,\n style: {\n position: \"absolute\",\n ...isHorizontal ? {\n left: 0,\n width: position.size + \"px\",\n transform: `translateX(${position.offset}px)`\n } : {\n top: 0,\n height: position.size + \"px\",\n transform: `translateY(${position.offset}px)`\n },\n ...indicatorProps.style\n }\n }\n ) : null;\n});\nvar CONTENT_NAME = \"NavigationMenuContent\";\nvar NavigationMenuContent = React.forwardRef((props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useNavigationMenuContext(CONTENT_NAME, props.__scopeNavigationMenu);\n const itemContext = useNavigationMenuItemContext(CONTENT_NAME, props.__scopeNavigationMenu);\n const composedRefs = useComposedRefs(itemContext.contentRef, forwardedRef);\n const open = itemContext.value === context.value;\n const commonProps = {\n value: itemContext.value,\n triggerRef: itemContext.triggerRef,\n focusProxyRef: itemContext.focusProxyRef,\n wasEscapeCloseRef: itemContext.wasEscapeCloseRef,\n onContentFocusOutside: itemContext.onContentFocusOutside,\n onRootContentClose: itemContext.onRootContentClose,\n ...contentProps\n };\n return !context.viewport ? /* @__PURE__ */ jsx(Presence, { present: forceMount || open, children: /* @__PURE__ */ jsx(\n NavigationMenuContentImpl,\n {\n \"data-state\": getOpenState(open),\n ...commonProps,\n ref: composedRefs,\n onPointerEnter: composeEventHandlers(props.onPointerEnter, context.onContentEnter),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse(context.onContentLeave)\n ),\n style: {\n // Prevent interaction when animating out\n pointerEvents: !open && context.isRootMenu ? \"none\" : void 0,\n ...commonProps.style\n }\n }\n ) }) : /* @__PURE__ */ jsx(ViewportContentMounter, { forceMount, ...commonProps, ref: composedRefs });\n});\nNavigationMenuContent.displayName = CONTENT_NAME;\nvar ViewportContentMounter = React.forwardRef((props, forwardedRef) => {\n const context = useNavigationMenuContext(CONTENT_NAME, props.__scopeNavigationMenu);\n const { onViewportContentChange, onViewportContentRemove } = context;\n useLayoutEffect(() => {\n onViewportContentChange(props.value, {\n ref: forwardedRef,\n ...props\n });\n }, [props, forwardedRef, onViewportContentChange]);\n useLayoutEffect(() => {\n return () => onViewportContentRemove(props.value);\n }, [props.value, onViewportContentRemove]);\n return null;\n});\nvar ROOT_CONTENT_DISMISS = \"navigationMenu.rootContentDismiss\";\nvar NavigationMenuContentImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeNavigationMenu,\n value,\n triggerRef,\n focusProxyRef,\n wasEscapeCloseRef,\n onRootContentClose,\n onContentFocusOutside,\n ...contentProps\n } = props;\n const context = useNavigationMenuContext(CONTENT_NAME, __scopeNavigationMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(ref, forwardedRef);\n const triggerId = makeTriggerId(context.baseId, value);\n const contentId = makeContentId(context.baseId, value);\n const getItems = useCollection(__scopeNavigationMenu);\n const prevMotionAttributeRef = React.useRef(null);\n const { onItemDismiss } = context;\n React.useEffect(() => {\n const content = ref.current;\n if (context.isRootMenu && content) {\n const handleClose = () => {\n onItemDismiss();\n onRootContentClose();\n if (content.contains(document.activeElement)) triggerRef.current?.focus();\n };\n content.addEventListener(ROOT_CONTENT_DISMISS, handleClose);\n return () => content.removeEventListener(ROOT_CONTENT_DISMISS, handleClose);\n }\n }, [context.isRootMenu, props.value, triggerRef, onItemDismiss, onRootContentClose]);\n const motionAttribute = React.useMemo(() => {\n const items = getItems();\n const values = items.map((item) => item.value);\n if (context.dir === \"rtl\") values.reverse();\n const index = values.indexOf(context.value);\n const prevIndex = values.indexOf(context.previousValue);\n const isSelected = value === context.value;\n const wasSelected = prevIndex === values.indexOf(value);\n if (!isSelected && !wasSelected) return prevMotionAttributeRef.current;\n const attribute = (() => {\n if (index !== prevIndex) {\n if (isSelected && prevIndex !== -1) return index > prevIndex ? \"from-end\" : \"from-start\";\n if (wasSelected && index !== -1) return index > prevIndex ? \"to-start\" : \"to-end\";\n }\n return null;\n })();\n prevMotionAttributeRef.current = attribute;\n return attribute;\n }, [context.previousValue, context.value, context.dir, getItems, value]);\n return /* @__PURE__ */ jsx(FocusGroup, { asChild: true, children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n id: contentId,\n \"aria-labelledby\": triggerId,\n \"data-motion\": motionAttribute,\n \"data-orientation\": context.orientation,\n ...contentProps,\n ref: composedRefs,\n disableOutsidePointerEvents: false,\n onDismiss: () => {\n const rootContentDismissEvent = new Event(ROOT_CONTENT_DISMISS, {\n bubbles: true,\n cancelable: true\n });\n ref.current?.dispatchEvent(rootContentDismissEvent);\n },\n onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => {\n onContentFocusOutside();\n const target = event.target;\n if (context.rootNavigationMenu?.contains(target)) event.preventDefault();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const target = event.target;\n const isTrigger = getItems().some((item) => item.ref.current?.contains(target));\n const isRootViewport = context.isRootMenu && context.viewport?.contains(target);\n if (isTrigger || isRootViewport || !context.isRootMenu) event.preventDefault();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isMetaKey = event.altKey || event.ctrlKey || event.metaKey;\n const isTabKey = event.key === \"Tab\" && !isMetaKey;\n if (isTabKey) {\n const candidates = getTabbableCandidates(event.currentTarget);\n const focusedElement = document.activeElement;\n const index = candidates.findIndex((candidate) => candidate === focusedElement);\n const isMovingBackwards = event.shiftKey;\n const nextCandidates = isMovingBackwards ? candidates.slice(0, index).reverse() : candidates.slice(index + 1, candidates.length);\n if (focusFirst(nextCandidates)) {\n event.preventDefault();\n } else {\n focusProxyRef.current?.focus();\n }\n }\n }),\n onEscapeKeyDown: composeEventHandlers(props.onEscapeKeyDown, (event) => {\n wasEscapeCloseRef.current = true;\n })\n }\n ) });\n});\nvar VIEWPORT_NAME = \"NavigationMenuViewport\";\nvar NavigationMenuViewport = React.forwardRef((props, forwardedRef) => {\n const { forceMount, ...viewportProps } = props;\n const context = useNavigationMenuContext(VIEWPORT_NAME, props.__scopeNavigationMenu);\n const open = Boolean(context.value);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || open, children: /* @__PURE__ */ jsx(NavigationMenuViewportImpl, { ...viewportProps, ref: forwardedRef }) });\n});\nNavigationMenuViewport.displayName = VIEWPORT_NAME;\nvar NavigationMenuViewportImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeNavigationMenu, children, ...viewportImplProps } = props;\n const context = useNavigationMenuContext(VIEWPORT_NAME, __scopeNavigationMenu);\n const composedRefs = useComposedRefs(forwardedRef, context.onViewportChange);\n const viewportContentContext = useViewportContentContext(\n CONTENT_NAME,\n props.__scopeNavigationMenu\n );\n const [size, setSize] = React.useState(null);\n const [content, setContent] = React.useState(null);\n const viewportWidth = size ? size?.width + \"px\" : void 0;\n const viewportHeight = size ? size?.height + \"px\" : void 0;\n const open = Boolean(context.value);\n const activeContentValue = open ? context.value : context.previousValue;\n const handleSizeChange = () => {\n if (content) setSize({ width: content.offsetWidth, height: content.offsetHeight });\n };\n useResizeObserver(content, handleSizeChange);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getOpenState(open),\n \"data-orientation\": context.orientation,\n ...viewportImplProps,\n ref: composedRefs,\n style: {\n // Prevent interaction when animating out\n pointerEvents: !open && context.isRootMenu ? \"none\" : void 0,\n [\"--radix-navigation-menu-viewport-width\"]: viewportWidth,\n [\"--radix-navigation-menu-viewport-height\"]: viewportHeight,\n ...viewportImplProps.style\n },\n onPointerEnter: composeEventHandlers(props.onPointerEnter, context.onContentEnter),\n onPointerLeave: composeEventHandlers(props.onPointerLeave, whenMouse(context.onContentLeave)),\n children: Array.from(viewportContentContext.items).map(([value, { ref, forceMount, ...props2 }]) => {\n const isActive = activeContentValue === value;\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || isActive, children: /* @__PURE__ */ jsx(\n NavigationMenuContentImpl,\n {\n ...props2,\n ref: composeRefs(ref, (node) => {\n if (isActive && node) setContent(node);\n })\n }\n ) }, value);\n })\n }\n );\n});\nvar FOCUS_GROUP_NAME = \"FocusGroup\";\nvar FocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeNavigationMenu, ...groupProps } = props;\n const context = useNavigationMenuContext(FOCUS_GROUP_NAME, __scopeNavigationMenu);\n return /* @__PURE__ */ jsx(FocusGroupCollection.Provider, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx(FocusGroupCollection.Slot, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx(Primitive.div, { dir: context.dir, ...groupProps, ref: forwardedRef }) }) });\n }\n);\nvar ARROW_KEYS = [\"ArrowRight\", \"ArrowLeft\", \"ArrowUp\", \"ArrowDown\"];\nvar FOCUS_GROUP_ITEM_NAME = \"FocusGroupItem\";\nvar FocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeNavigationMenu, ...groupProps } = props;\n const getItems = useFocusGroupCollection(__scopeNavigationMenu);\n const context = useNavigationMenuContext(FOCUS_GROUP_ITEM_NAME, __scopeNavigationMenu);\n return /* @__PURE__ */ jsx(FocusGroupCollection.ItemSlot, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n ...groupProps,\n ref: forwardedRef,\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isFocusNavigationKey = [\"Home\", \"End\", ...ARROW_KEYS].includes(event.key);\n if (isFocusNavigationKey) {\n let candidateNodes = getItems().map((item) => item.ref.current);\n const prevItemKey = context.dir === \"rtl\" ? \"ArrowRight\" : \"ArrowLeft\";\n const prevKeys = [prevItemKey, \"ArrowUp\", \"End\"];\n if (prevKeys.includes(event.key)) candidateNodes.reverse();\n if (ARROW_KEYS.includes(event.key)) {\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n event.preventDefault();\n }\n })\n }\n ) });\n }\n);\nfunction getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node) => {\n const isHiddenInput = node.tagName === \"INPUT\" && node.type === \"hidden\";\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while (walker.nextNode()) nodes.push(walker.currentNode);\n return nodes;\n}\nfunction focusFirst(candidates) {\n const previouslyFocusedElement = document.activeElement;\n return candidates.some((candidate) => {\n if (candidate === previouslyFocusedElement) return true;\n candidate.focus();\n return document.activeElement !== previouslyFocusedElement;\n });\n}\nfunction removeFromTabOrder(candidates) {\n candidates.forEach((candidate) => {\n candidate.dataset.tabindex = candidate.getAttribute(\"tabindex\") || \"\";\n candidate.setAttribute(\"tabindex\", \"-1\");\n });\n return () => {\n candidates.forEach((candidate) => {\n const prevTabIndex = candidate.dataset.tabindex;\n candidate.setAttribute(\"tabindex\", prevTabIndex);\n });\n };\n}\nfunction useResizeObserver(element, onResize) {\n const handleResize = useCallbackRef(onResize);\n useLayoutEffect(() => {\n let rAF = 0;\n if (element) {\n const resizeObserver = new ResizeObserver(() => {\n cancelAnimationFrame(rAF);\n rAF = window.requestAnimationFrame(handleResize);\n });\n resizeObserver.observe(element);\n return () => {\n window.cancelAnimationFrame(rAF);\n resizeObserver.unobserve(element);\n };\n }\n }, [element, handleResize]);\n}\nfunction getOpenState(open) {\n return open ? \"open\" : \"closed\";\n}\nfunction makeTriggerId(baseId, value) {\n return `${baseId}-trigger-${value}`;\n}\nfunction makeContentId(baseId, value) {\n return `${baseId}-content-${value}`;\n}\nfunction whenMouse(handler) {\n return (event) => event.pointerType === \"mouse\" ? handler(event) : void 0;\n}\nvar Root2 = NavigationMenu;\nvar Sub = NavigationMenuSub;\nvar List = NavigationMenuList;\nvar Item = NavigationMenuItem;\nvar Trigger = NavigationMenuTrigger;\nvar Link = NavigationMenuLink;\nvar Indicator = NavigationMenuIndicator;\nvar Content = NavigationMenuContent;\nvar Viewport = NavigationMenuViewport;\nexport {\n Content,\n Indicator,\n Item,\n Link,\n List,\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuIndicator,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuSub,\n NavigationMenuTrigger,\n NavigationMenuViewport,\n Root2 as Root,\n Sub,\n Trigger,\n Viewport,\n createNavigationMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NAVIGATION_MENU_NAME","Collection","useCollection","createCollectionScope","createCollection","FocusGroupCollection","useFocusGroupCollection","createFocusGroupCollectionScope","createNavigationMenuContext","createNavigationMenuScope","createContextScope","NavigationMenuProviderImpl","useNavigationMenuContext","ViewportContentProvider","useViewportContentContext","NavigationMenu","React","forwardRef","props","forwardedRef","__scopeNavigationMenu","value","valueProp","onValueChange","defaultValue","delayDuration","skipDelayDuration","orientation","dir","NavigationMenuProps","navigationMenu","setNavigationMenu","useState","composedRef","useComposedRefs","node","direction","useDirection","openTimerRef","useRef","closeTimerRef","skipDelayTimerRef","isOpenDelayed","setIsOpenDelayed","setValue","useControllableState","prop","onChange","value2","hasSkipDelayDuration","window","clearTimeout","current","setTimeout","defaultProp","startCloseTimer","useCallback","handleOpen","itemValue","handleDelayedOpen","useEffect","jsx","NavigationMenuProvider","scope","isRootMenu","rootNavigationMenu","onTriggerEnter","onTriggerLeave","onContentEnter","onContentLeave","onItemSelect","prevValue","onItemDismiss","children","Primitive","nav","ref","displayName","SUB_NAME","NavigationMenuSub","subProps","context","div","viewport","setViewport","viewportContent","setViewportContent","Map","indicatorTrack","setIndicatorTrack","previousValue","usePrevious","baseId","useId","onViewportChange","onIndicatorTrackChange","useCallbackRef","onViewportContentChange","contentValue","contentData","prevContent","set","onViewportContentRemove","has","delete","Provider","items","LIST_NAME","NavigationMenuList","listProps","list","ul","style","position","Slot","FocusGroup","asChild","ITEM_NAME","NavigationMenuItemContextProvider","useNavigationMenuItemContext","NavigationMenuItem","itemProps","autoValue","contentRef","triggerRef","focusProxyRef","restoreContentTabOrderRef","wasEscapeCloseRef","handleContentEntry","side","candidates","getTabbableCandidates","length","focusFirst","reverse","handleContentExit","forEach","candidate","dataset","tabindex","getAttribute","setAttribute","prevTabIndex","removeFromTabOrder","onEntryKeyDown","onFocusProxyEnter","onRootContentClose","onContentFocusOutside","li","TRIGGER_NAME","NavigationMenuTrigger","disabled","triggerProps","itemContext","composedRefs","triggerId","makeTriggerId","contentId","makeContentId","hasPointerMoveOpenedRef","wasClickCloseRef","open","jsxs","Fragment","ItemSlot","FocusGroupItem","button","id","getOpenState","onPointerEnter","composeEventHandlers","onPointerMove","whenMouse","onPointerLeave","onClick","onKeyDown","event","entryKey","horizontal","vertical","key","preventDefault","VisuallyHiddenPrimitive.Root","tabIndex","onFocus","content","prevFocusedElement","relatedTarget","wasTriggerFocused","wasFocusFromContent","contains","LINK_SELECT","NavigationMenuLink","active","onSelect","linkProps","a","target","linkSelectEvent","CustomEvent","bubbles","cancelable","addEventListener","event2","once","dispatchDiscreteCustomEvent","defaultPrevented","metaKey","rootContentDismissEvent","ROOT_CONTENT_DISMISS","checkForDefaultPrevented","INDICATOR_NAME","NavigationMenuIndicator","forceMount","indicatorProps","isVisible","Boolean","ReactDOM","createPortal","Presence","present","NavigationMenuIndicatorImpl","getItems","activeTrigger","setActiveTrigger","setPosition","isHorizontal","triggerNode","find","item","handlePositionChange","size","offsetWidth","offsetHeight","offset","offsetLeft","offsetTop","useResizeObserver","left","width","transform","top","height","CONTENT_NAME","NavigationMenuContent","contentProps","commonProps","ViewportContentMounter","NavigationMenuContentImpl","pointerEvents","useLayoutEffect","prevMotionAttributeRef","handleClose","document","activeElement","focus","removeEventListener","motionAttribute","useMemo","values","map","index","indexOf","prevIndex","isSelected","wasSelected","attribute","DismissableLayer","disableOutsidePointerEvents","onDismiss","Event","dispatchEvent","onFocusOutside","onPointerDownOutside","isTrigger","some","isRootViewport","isMetaKey","altKey","ctrlKey","currentTarget","focusedElement","findIndex","shiftKey","slice","onEscapeKeyDown","VIEWPORT_NAME","NavigationMenuViewport","viewportProps","NavigationMenuViewportImpl","viewportImplProps","viewportContentContext","setSize","setContent","viewportWidth","viewportHeight","activeContentValue","Array","from","props2","isActive","composeRefs","groupProps","ARROW_KEYS","includes","candidateNodes","currentIndex","container","nodes","walker","createTreeWalker","NodeFilter","SHOW_ELEMENT","acceptNode","isHiddenInput","tagName","type","hidden","FILTER_SKIP","FILTER_ACCEPT","nextNode","push","currentNode","previouslyFocusedElement","element","onResize","handleResize","rAF","resizeObserver","ResizeObserver","cancelAnimationFrame","requestAnimationFrame","observe","unobserve","handler","pointerType","Root2","List","Item","Trigger","Link","Indicator","Content","Viewport"],"mappings":"ooCAoBA,IAAIA,EAAuB,kBACtBC,EAAYC,EAAeC,GAAyBC,EAAiBJ,IACrEK,EAAsBC,EAAyBC,GAAmCH,EAAiBJ,IACnGQ,EAA6BC,GAA6BC,EAC7DV,EACA,CAACG,EAAuBI,KAErBI,EAA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kI,GAAUlG,EACVmG,GAAWxD"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as e from"react";import{useFloating as t,arrow as r}from"../../../@floating-ui/react-dom/dist/floating-ui.react-dom.mjs";import{Root as o}from"../../react-arrow/dist/index.mjs";import{useComposedRefs as i}from"../../react-compose-refs/dist/index.mjs";import{createContextScope as a}from"../../react-context/dist/index.mjs";import{Primitive as n}from"../../react-primitive/dist/index.mjs";import{useCallbackRef as s}from"../../react-use-callback-ref/dist/index.mjs";import{useLayoutEffect as d}from"../../react-use-layout-effect/dist/index.mjs";import{useSize as l}from"../../react-use-size/dist/index.mjs";import{j as p}from"../../../../_virtual/jsx-runtime.mjs";import{autoUpdate as m,shift as c,limitShift as f,flip as h,size as g,hide as u}from"../../../@floating-ui/dom/dist/floating-ui.dom.mjs";import{offset as x}from"../../../@floating-ui/core/dist/floating-ui.core.mjs";var y="Popper",[w,v]=a(y),[j,b]=w(y),P=t=>{const{__scopePopper:r,children:o}=t,[i,a]=e.useState(null);return p.jsx(j,{scope:r,anchor:i,onAnchorChange:a,children:o})};P.displayName=y;var A="PopperAnchor",S=e.forwardRef(((t,r)=>{const{__scopePopper:o,virtualRef:a,...s}=t,d=b(A,o),l=e.useRef(null),m=i(r,l);return e.useEffect((()=>{d.onAnchorChange(a?.current||l.current)})),a?null:p.jsx(n.div,{...s,ref:m})}));S.displayName=A;var $="PopperContent",[_,O]=w($),C=e.forwardRef(((o,a)=>{const{__scopePopper:y,side:w="bottom",sideOffset:v=0,align:j="center",alignOffset:P=0,arrowPadding:A=0,avoidCollisions:S=!0,collisionBoundary:O=[],collisionPadding:C=0,sticky:H="partial",hideWhenDetached:R=!1,updatePositionStrategy:W="optimized",onPlaced:N,...X}=o,k=b($,y),[D,B]=e.useState(null),F=i(a,(e=>B(e))),[I,L]=e.useState(null),M=l(I),q=M?.width??0,G=M?.height??0,J=w+("center"!==j?"-"+j:""),K="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},Q=Array.isArray(O)?O:[O],T=Q.length>0,U={padding:K,boundary:Q.filter(Y),altBoundary:T},{refs:V,floatingStyles:Z,placement:ee,isPositioned:te,middlewareData:re}=t({strategy:"fixed",placement:J,whileElementsMounted:(...e)=>m(...e,{animationFrame:"always"===W}),elements:{reference:k.anchor},middleware:[x({mainAxis:v+G,alignmentAxis:P}),S&&c({mainAxis:!0,crossAxis:!1,limiter:"partial"===H?f():void 0,...U}),S&&h({...U}),g({...U,apply:({elements:e,rects:t,availableWidth:r,availableHeight:o})=>{const{width:i,height:a}=t.reference,n=e.floating.style;n.setProperty("--radix-popper-available-width",`${r}px`),n.setProperty("--radix-popper-available-height",`${o}px`),n.setProperty("--radix-popper-anchor-width",`${i}px`),n.setProperty("--radix-popper-anchor-height",`${a}px`)}}),I&&r({element:I,padding:A}),z({arrowWidth:q,arrowHeight:G}),R&&u({strategy:"referenceHidden",...U})]}),[oe,ie]=E(ee),ae=s(N);d((()=>{te&&ae?.()}),[te,ae]);const ne=re.arrow?.x,se=re.arrow?.y,de=0!==re.arrow?.centerOffset,[le,pe]=e.useState();return d((()=>{D&&pe(window.getComputedStyle(D).zIndex)}),[D]),p.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:te?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[re.transformOrigin?.x,re.transformOrigin?.y].join(" "),...re.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:o.dir,children:p.jsx(_,{scope:y,placedSide:oe,onArrowChange:L,arrowX:ne,arrowY:se,shouldHideArrow:de,children:p.jsx(n.div,{"data-side":oe,"data-align":ie,...X,ref:F,style:{...X.style,animation:te?void 0:"none"}})})})}));C.displayName=$;var H="PopperArrow",R={top:"bottom",right:"left",bottom:"top",left:"right"},W=e.forwardRef((function(e,t){const{__scopePopper:r,...i}=e,a=O(H,r),n=R[a.placedSide];return p.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[n]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:p.jsx(o,{...i,ref:t,style:{...i.style,display:"block"}})})}));function Y(e){return null!==e}W.displayName=H;var z=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:o,middlewareData:i}=t,a=0!==i.arrow?.centerOffset,n=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[d,l]=E(r),p={start:"0%",center:"50%",end:"100%"}[l],m=(i.arrow?.x??0)+n/2,c=(i.arrow?.y??0)+s/2;let f="",h="";return"bottom"===d?(f=a?p:`${m}px`,h=-s+"px"):"top"===d?(f=a?p:`${m}px`,h=`${o.floating.height+s}px`):"right"===d?(f=-s+"px",h=a?p:`${c}px`):"left"===d&&(f=`${o.floating.width+s}px`,h=a?p:`${c}px`),{data:{x:f,y:h}}}});function E(e){const[t,r="center"]=e.split("-");return[t,r]}var N=P,X=S,k=C,D=W;export{X as Anchor,D as Arrow,k as Content,P as Popper,S as PopperAnchor,W as PopperArrow,C as PopperContent,N as Root,v as createPopperScope};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-popper/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/popper/src/Popper.tsx\nimport * as React from \"react\";\nimport {\n useFloating,\n autoUpdate,\n offset,\n shift,\n limitShift,\n hide,\n arrow as floatingUIarrow,\n flip,\n size\n} from \"@floating-ui/react-dom\";\nimport * as ArrowPrimitive from \"@radix-ui/react-arrow\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SIDE_OPTIONS = [\"top\", \"right\", \"bottom\", \"left\"];\nvar ALIGN_OPTIONS = [\"start\", \"center\", \"end\"];\nvar POPPER_NAME = \"Popper\";\nvar [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);\nvar [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);\nvar Popper = (props) => {\n const { __scopePopper, children } = props;\n const [anchor, setAnchor] = React.useState(null);\n return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });\n};\nPopper.displayName = POPPER_NAME;\nvar ANCHOR_NAME = \"PopperAnchor\";\nvar PopperAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopper, virtualRef, ...anchorProps } = props;\n const context = usePopperContext(ANCHOR_NAME, __scopePopper);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n context.onAnchorChange(virtualRef?.current || ref.current);\n });\n return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });\n }\n);\nPopperAnchor.displayName = ANCHOR_NAME;\nvar CONTENT_NAME = \"PopperContent\";\nvar [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);\nvar PopperContent = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopper,\n side = \"bottom\",\n sideOffset = 0,\n align = \"center\",\n alignOffset = 0,\n arrowPadding = 0,\n avoidCollisions = true,\n collisionBoundary = [],\n collisionPadding: collisionPaddingProp = 0,\n sticky = \"partial\",\n hideWhenDetached = false,\n updatePositionStrategy = \"optimized\",\n onPlaced,\n ...contentProps\n } = props;\n const context = usePopperContext(CONTENT_NAME, __scopePopper);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [arrow, setArrow] = React.useState(null);\n const arrowSize = useSize(arrow);\n const arrowWidth = arrowSize?.width ?? 0;\n const arrowHeight = arrowSize?.height ?? 0;\n const desiredPlacement = side + (align !== \"center\" ? \"-\" + align : \"\");\n const collisionPadding = typeof collisionPaddingProp === \"number\" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };\n const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];\n const hasExplicitBoundaries = boundary.length > 0;\n const detectOverflowOptions = {\n padding: collisionPadding,\n boundary: boundary.filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: hasExplicitBoundaries\n };\n const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: \"fixed\",\n placement: desiredPlacement,\n whileElementsMounted: (...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: updatePositionStrategy === \"always\"\n });\n return cleanup;\n },\n elements: {\n reference: context.anchor\n },\n middleware: [\n offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),\n avoidCollisions && shift({\n mainAxis: true,\n crossAxis: false,\n limiter: sticky === \"partial\" ? limitShift() : void 0,\n ...detectOverflowOptions\n }),\n avoidCollisions && flip({ ...detectOverflowOptions }),\n size({\n ...detectOverflowOptions,\n apply: ({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty(\"--radix-popper-available-width\", `${availableWidth}px`);\n contentStyle.setProperty(\"--radix-popper-available-height\", `${availableHeight}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-width\", `${anchorWidth}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-height\", `${anchorHeight}px`);\n }\n }),\n arrow && floatingUIarrow({ element: arrow, padding: arrowPadding }),\n transformOrigin({ arrowWidth, arrowHeight }),\n hideWhenDetached && hide({ strategy: \"referenceHidden\", ...detectOverflowOptions })\n ]\n });\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const handlePlaced = useCallbackRef(onPlaced);\n useLayoutEffect(() => {\n if (isPositioned) {\n handlePlaced?.();\n }\n }, [isPositioned, handlePlaced]);\n const arrowX = middlewareData.arrow?.x;\n const arrowY = middlewareData.arrow?.y;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setFloating,\n \"data-radix-popper-content-wrapper\": \"\",\n style: {\n ...floatingStyles,\n transform: isPositioned ? floatingStyles.transform : \"translate(0, -200%)\",\n // keep off the page when measuring\n minWidth: \"max-content\",\n zIndex: contentZIndex,\n [\"--radix-popper-transform-origin\"]: [\n middlewareData.transformOrigin?.x,\n middlewareData.transformOrigin?.y\n ].join(\" \"),\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n pointerEvents: \"none\"\n }\n },\n dir: props.dir,\n children: /* @__PURE__ */ jsx(\n PopperContentProvider,\n {\n scope: __scopePopper,\n placedSide,\n onArrowChange: setArrow,\n arrowX,\n arrowY,\n shouldHideArrow: cannotCenterArrow,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-side\": placedSide,\n \"data-align\": placedAlign,\n ...contentProps,\n ref: composedRefs,\n style: {\n ...contentProps.style,\n // if the PopperContent hasn't been placed yet (not all measurements done)\n // we prevent animations so that users's animation don't kick in too early referring wrong sides\n animation: !isPositioned ? \"none\" : void 0\n }\n }\n )\n }\n )\n }\n );\n }\n);\nPopperContent.displayName = CONTENT_NAME;\nvar ARROW_NAME = \"PopperArrow\";\nvar OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n};\nvar PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {\n const { __scopePopper, ...arrowProps } = props;\n const contentContext = useContentContext(ARROW_NAME, __scopePopper);\n const baseSide = OPPOSITE_SIDE[contentContext.placedSide];\n return (\n // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)\n // doesn't report size as we'd expect on SVG elements.\n // it reports their bounding box which is effectively the largest path inside the SVG.\n /* @__PURE__ */ jsx(\n \"span\",\n {\n ref: contentContext.onArrowChange,\n style: {\n position: \"absolute\",\n left: contentContext.arrowX,\n top: contentContext.arrowY,\n [baseSide]: 0,\n transformOrigin: {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\"\n }[contentContext.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: `rotate(180deg)`,\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\"\n }[contentContext.placedSide],\n visibility: contentContext.shouldHideArrow ? \"hidden\" : void 0\n },\n children: /* @__PURE__ */ jsx(\n ArrowPrimitive.Root,\n {\n ...arrowProps,\n ref: forwardedRef,\n style: {\n ...arrowProps.style,\n // ensures the element can be measured correctly (mostly for if SVG)\n display: \"block\"\n }\n }\n )\n }\n )\n );\n});\nPopperArrow.displayName = ARROW_NAME;\nfunction isNotNull(value) {\n return value !== null;\n}\nvar transformOrigin = (options) => ({\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n});\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\nvar Root2 = Popper;\nvar Anchor = PopperAnchor;\nvar Content = PopperContent;\nvar Arrow = PopperArrow;\nexport {\n ALIGN_OPTIONS,\n Anchor,\n Arrow,\n Content,\n Popper,\n PopperAnchor,\n PopperArrow,\n PopperContent,\n Root2 as Root,\n SIDE_OPTIONS,\n createPopperScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["POPPER_NAME","createPopperContext","createPopperScope","createContextScope","PopperProvider","usePopperContext","Popper","props","__scopePopper","children","anchor","setAnchor","React","useState","jsx","scope","onAnchorChange","displayName","ANCHOR_NAME","PopperAnchor","forwardRef","forwardedRef","virtualRef","anchorProps","context","ref","useRef","composedRefs","useComposedRefs","useEffect","current","Primitive","div","CONTENT_NAME","PopperContentProvider","useContentContext","PopperContent","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","collisionPaddingProp","sticky","hideWhenDetached","updatePositionStrategy","onPlaced","contentProps","content","setContent","node","arrow","setArrow","arrowSize","useSize","arrowWidth","width","arrowHeight","height","desiredPlacement","top","right","bottom","left","boundary","Array","isArray","hasExplicitBoundaries","length","detectOverflowOptions","padding","filter","isNotNull","altBoundary","refs","floatingStyles","placement","isPositioned","middlewareData","useFloating","strategy","whileElementsMounted","args","autoUpdate","animationFrame","elements","reference","middleware","offset","mainAxis","alignmentAxis","shift","crossAxis","limiter","limitShift","flip","size","apply","rects","availableWidth","availableHeight","anchorWidth","anchorHeight","contentStyle","floating","style","setProperty","floatingUIarrow","element","transformOrigin","hide","placedSide","placedAlign","getSideAndAlignFromPlacement","handlePlaced","useCallbackRef","useLayoutEffect","arrowX","x","arrowY","y","cannotCenterArrow","centerOffset","contentZIndex","setContentZIndex","window","getComputedStyle","zIndex","setFloating","transform","minWidth","join","referenceHidden","visibility","pointerEvents","dir","onArrowChange","shouldHideArrow","animation","ARROW_NAME","OPPOSITE_SIDE","PopperArrow","arrowProps","contentContext","baseSide","position","ArrowPrimitive.Root","display","value","options","name","fn","data","isArrowHidden","noArrowAlign","start","center","end","arrowXCenter","arrowYCenter","split","Root2","Anchor","Content","Arrow"],"mappings":"q3BAyBA,IAAIA,EAAc,UACbC,EAAqBC,GAAqBC,EAAmBH,IAC7DI,EAAgBC,GAAoBJ,EAAoBD,GACzDM,EAAUC,IACZ,MAAMC,cAAEA,EAAaC,SAAEA,GAAaF,GAC7BG,EAAQC,GAAaC,EAAMC,SAAS,MAC3C,OAAuBC,EAAGA,IAACV,EAAgB,CAAEW,MAAOP,EAAeE,SAAQM,eAAgBL,EAAWF,YAAW,EAEnHH,EAAOW,YAAcjB,EACrB,IAAIkB,EAAc,eACdC,EAAeP,EAAMQ,YACvB,CAACb,EAAOc,KACN,MAAMb,cAAEA,EAAac,WAAEA,KAAeC,GAAgBhB,EAChDiB,EAAUnB,EAAiBa,EAAaV,GACxCiB,EAAMb,EAAMc,OAAO,MACnBC,EAAeC,EAAgBP,EAAcI,GAInD,OAHAb,EAAMiB,WAAU,KACdL,EAAQR,eAAeM,GAAYQ,SAAWL,EAAIK,QAAQ,IAErDR,EAAa,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,MAAEA,EAAKpB,eAAEA,GAAmB0E,EAEvCC,EAD2D,IAAvC3E,EAAe3B,OAAOuE,aAE1CnE,EAAakG,EAAgB,EAAIJ,EAAQ9F,WACzCE,EAAcgG,EAAgB,EAAIJ,EAAQ5F,aACzCsD,EAAYC,GAAeC,EAA6BrC,GACzD8E,EAAe,CAAEC,MAAO,KAAMC,OAAQ,MAAOC,IAAK,QAAS7C,GAC3D8C,GAAgBhF,EAAe3B,OAAOmE,GAAK,GAAK/D,EAAa,EAC7DwG,GAAgBjF,EAAe3B,OAAOqE,GAAK,GAAK/D,EAAc,EACpE,IAAI6D,EAAI,GACJE,EAAI,GAcR,MAbmB,WAAfT,GACFO,EAAImC,EAAgBC,EAAe,GAAGI,MACtCtC,GAAQ/D,EAAJ,MACoB,QAAfsD,GACTO,EAAImC,EAAgBC,EAAe,GAAGI,MACtCtC,EAAI,GAAGtB,EAAMM,SAAS9C,OAASD,OACP,UAAfsD,GACTO,GAAQ7D,EAAJ,KACJ+D,EAAIiC,EAAgBC,EAAe,GAAGK,OACd,SAAfhD,IACTO,EAAI,GAAGpB,EAAMM,SAAShD,MAAQC,MAC9B+D,EAAIiC,EAAgBC,EAAe,GAAGK,OAEjC,CAAEP,KAAM,CAAElC,IAAGE,KACrB,IAEH,SAASP,EAA6BrC,GACpC,MAAO1C,EAAME,EAAQ,UAAYwC,EAAUoF,MAAM,KACjD,MAAO,CAAC9H,EAAME,EAChB,CACG,IAAC6H,EAAQ9J,EACR+J,EAASlJ,EACTmJ,EAAUlI,EACVmI,EAAQvB"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as t from"react";import r from"react-dom";import{Primitive as e}from"../../react-primitive/dist/index.mjs";import{useLayoutEffect as o}from"../../react-use-layout-effect/dist/index.mjs";import{j as a}from"../../../../_virtual/jsx-runtime.mjs";var i=t.forwardRef(((i,m)=>{const{container:s,...f}=i,[c,d]=t.useState(!1);o((()=>d(!0)),[]);const n=s||c&&globalThis?.document?.body;return n?r.createPortal(a.jsx(e.div,{...f,ref:m}),n):null}));i.displayName="Portal";export{i as Portal};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-portal/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/portal/src/Portal.tsx\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\nexport {\n Portal,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Portal","React","forwardRef","props","forwardedRef","container","containerProp","portalProps","mounted","setMounted","useState","useLayoutEffect","globalThis","document","body","ReactDOM","createPortal","jsx","Primitive","div","ref","displayName"],"mappings":"0PAQA,IACIA,EAASC,EAAMC,YAAW,CAACC,EAAOC,KACpC,MAAQC,UAAWC,KAAkBC,GAAgBJ,GAC9CK,EAASC,GAAcR,EAAMS,UAAS,GAC7CC,GAAgB,IAAMF,GAAW,IAAO,IACxC,MAAMJ,EAAYC,GAAiBE,GAAWI,YAAYC,UAAUC,KACpE,OAAOT,EAAYU,EAASC,aAA6BC,EAAGA,IAACC,EAAUC,IAAK,IAAKZ,EAAaa,IAAKhB,IAAiBC,GAAa,IAAI,IAEvIL,EAAOqB,YARW"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as e from"react";import*as n from"react-dom";import{useComposedRefs as t}from"../../react-compose-refs/dist/index.mjs";import{useLayoutEffect as r}from"../../react-use-layout-effect/dist/index.mjs";var o=o=>{const{present:i,children:s}=o,a=function(t){const[o,i]=e.useState(),s=e.useRef({}),a=e.useRef(t),c=e.useRef("none"),m=t?"mounted":"unmounted",[f,d]=function(n,t){return e.useReducer(((e,n)=>t[e][n]??e),n)}(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=u(s.current);c.current="mounted"===f?e:"none"}),[f]),r((()=>{const e=s.current,n=a.current;if(n!==t){const r=c.current,o=u(e);if(t)d("MOUNT");else if("none"===o||"none"===e?.display)d("UNMOUNT");else{d(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=t}}),[t,d]),r((()=>{if(o){const e=e=>{const t=u(s.current).includes(e.animationName);e.target===o&&t&&n.flushSync((()=>d("ANIMATION_END")))},t=e=>{e.target===o&&(c.current=u(s.current))};return o.addEventListener("animationstart",t),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",t),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}d("ANIMATION_END")}),[o,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:e.useCallback((e=>{e&&(s.current=getComputedStyle(e)),i(e)}),[])}}(i),c="function"==typeof s?s({present:a.isPresent}):e.Children.only(s),m=t(a.ref,function(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;if(t)return e.ref;if(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(c));return"function"==typeof s||a.isPresent?e.cloneElement(c,{ref:m}):null};function u(e){return e?.animationName||"none"}o.displayName="Presence";export{o as Presence};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|