@lotte-innovate/ui-component-test 0.1.91 → 0.1.93
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/globals.css +2 -2
- package/dist/lib/Typography/Header/index.mjs +1 -1
- package/dist/lib/Typography/Header/index.mjs.map +1 -1
- package/dist/lib/Typography/Text/index.mjs +1 -1
- package/dist/lib/Typography/Text/index.mjs.map +1 -1
- package/dist/lib/components/Accordion/index.mjs +1 -1
- package/dist/lib/components/Accordion/index.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogAction.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogContent.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/index.d.ts +0 -1
- package/dist/lib/components/AspectRatio/index.mjs +1 -1
- package/dist/lib/components/AspectRatio/index.mjs.map +1 -1
- package/dist/lib/components/Avatar/index.mjs +1 -1
- package/dist/lib/components/Avatar/index.mjs.map +1 -1
- package/dist/lib/components/Badge/index.mjs +1 -1
- package/dist/lib/components/Badge/index.mjs.map +1 -1
- package/dist/lib/components/BarChart/index.mjs +1 -1
- package/dist/lib/components/BarChart/index.mjs.map +1 -1
- package/dist/lib/components/BubbleChart/index.mjs +1 -1
- package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
- package/dist/lib/components/Button/index.mjs +1 -1
- package/dist/lib/components/Button/index.mjs.map +1 -1
- package/dist/lib/components/Callout/CalloutIcon.mjs +1 -1
- package/dist/lib/components/Callout/CalloutIcon.mjs.map +1 -1
- package/dist/lib/components/Callout/CalloutRoot.mjs +1 -1
- package/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -1
- package/dist/lib/components/Callout/CalloutText.mjs +1 -1
- package/dist/lib/components/Callout/CalloutText.mjs.map +1 -1
- package/dist/lib/components/Callout/index.d.ts +0 -1
- package/dist/lib/components/Card/index.mjs +1 -1
- package/dist/lib/components/Card/index.mjs.map +1 -1
- package/dist/lib/components/Checkbox/index.mjs +1 -1
- package/dist/lib/components/Checkbox/index.mjs.map +1 -1
- package/dist/lib/components/CheckboxCard/index.mjs +1 -1
- package/dist/lib/components/CheckboxCard/index.mjs.map +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs.map +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -1
- package/dist/lib/components/CheckboxGroup/index.d.ts +1 -2
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuContent.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuItem.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/index.d.ts +0 -1
- package/dist/lib/components/DataList/DataListItem.mjs +1 -1
- package/dist/lib/components/DataList/DataListItem.mjs.map +1 -1
- package/dist/lib/components/DataList/DataListLabel.mjs +1 -1
- package/dist/lib/components/DataList/DataListLabel.mjs.map +1 -1
- package/dist/lib/components/DataList/DataListRoot.mjs +1 -1
- package/dist/lib/components/DataList/DataListRoot.mjs.map +1 -1
- package/dist/lib/components/DataList/DataListValue.mjs +1 -1
- package/dist/lib/components/DataList/DataListValue.mjs.map +1 -1
- package/dist/lib/components/DataList/index.d.ts +0 -1
- package/dist/lib/components/Dialog/DialogAction.mjs +1 -1
- package/dist/lib/components/Dialog/DialogAction.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogCancel.mjs +1 -1
- package/dist/lib/components/Dialog/DialogCancel.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogContent.mjs +1 -1
- package/dist/lib/components/Dialog/DialogContent.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogDescription.mjs +1 -1
- package/dist/lib/components/Dialog/DialogDescription.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogRoot.mjs +1 -1
- package/dist/lib/components/Dialog/DialogRoot.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogSlot.mjs +1 -1
- package/dist/lib/components/Dialog/DialogSlot.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogTitle.mjs +1 -1
- package/dist/lib/components/Dialog/DialogTitle.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogTrigger.mjs +1 -1
- package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -1
- package/dist/lib/components/Dialog/index.d.ts +1 -2
- package/dist/lib/components/DoughnutChart/index.mjs +1 -1
- package/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/index.d.ts +1 -2
- package/dist/lib/components/HoverCard/HoverCardContent.mjs +1 -1
- package/dist/lib/components/HoverCard/HoverCardContent.mjs.map +1 -1
- package/dist/lib/components/HoverCard/HoverCardRoot.mjs +1 -1
- package/dist/lib/components/HoverCard/HoverCardRoot.mjs.map +1 -1
- package/dist/lib/components/HoverCard/HoverCardTrigger.mjs +1 -1
- package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -1
- package/dist/lib/components/HoverCard/index.d.ts +1 -2
- package/dist/lib/components/IconButton/index.mjs +1 -1
- package/dist/lib/components/IconButton/index.mjs.map +1 -1
- package/dist/lib/components/Inset/index.mjs +1 -1
- package/dist/lib/components/Inset/index.mjs.map +1 -1
- package/dist/lib/components/Label/index.mjs +1 -1
- package/dist/lib/components/Label/index.mjs.map +1 -1
- package/dist/lib/components/LineChart/index.mjs +1 -1
- package/dist/lib/components/LineChart/index.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarContent.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarContent.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarItem.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarItem.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarItemIndicator.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarMenu.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarRadioGroup.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarRadioGroup.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarRadioItem.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarRadioItem.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarRoot.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarSeparator.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarSub.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarSubContent.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarSubContent.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarSubTrigger.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarSubTrigger.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarTrigger.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarTrigger.mjs.map +1 -1
- package/dist/lib/components/Menubar/index.d.ts +0 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/index.d.ts +0 -1
- package/dist/lib/components/PieChart/index.mjs +1 -1
- package/dist/lib/components/PieChart/index.mjs.map +1 -1
- package/dist/lib/components/Popover/PopoverClose.mjs +1 -1
- package/dist/lib/components/Popover/PopoverClose.mjs.map +1 -1
- package/dist/lib/components/Popover/PopoverContent.mjs +1 -1
- package/dist/lib/components/Popover/PopoverContent.mjs.map +1 -1
- package/dist/lib/components/Popover/PopoverRoot.mjs +1 -1
- package/dist/lib/components/Popover/PopoverRoot.mjs.map +1 -1
- package/dist/lib/components/Popover/PopoverTrigger.mjs +1 -1
- package/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -1
- package/dist/lib/components/Popover/index.d.ts +1 -2
- package/dist/lib/components/Progress/index.mjs +1 -1
- package/dist/lib/components/Progress/index.mjs.map +1 -1
- package/dist/lib/components/RadarChart/index.mjs +1 -1
- package/dist/lib/components/RadarChart/index.mjs.map +1 -1
- package/dist/lib/components/Radio/index.mjs +1 -1
- package/dist/lib/components/Radio/index.mjs.map +1 -1
- package/dist/lib/components/RadioCards/RadioCardsItem.mjs +1 -1
- package/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +1 -1
- package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +1 -1
- package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -1
- package/dist/lib/components/RadioCards/index.d.ts +0 -1
- package/dist/lib/components/RadioGroup/RadioGroupItem.mjs +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -1
- package/dist/lib/components/RadioGroup/index.d.ts +0 -1
- package/dist/lib/components/ScrollArea/index.mjs +1 -1
- package/dist/lib/components/ScrollArea/index.mjs.map +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -1
- package/dist/lib/components/SegmentedControl/index.d.ts +1 -2
- package/dist/lib/components/Select/index.mjs +1 -1
- package/dist/lib/components/Select/index.mjs.map +1 -1
- package/dist/lib/components/Separator/index.mjs +1 -1
- package/dist/lib/components/Separator/index.mjs.map +1 -1
- package/dist/lib/components/Skeleton/index.mjs +1 -1
- package/dist/lib/components/Skeleton/index.mjs.map +1 -1
- package/dist/lib/components/Slider/index.mjs +1 -1
- package/dist/lib/components/Slider/index.mjs.map +1 -1
- package/dist/lib/components/Spinner/index.mjs +1 -1
- package/dist/lib/components/Spinner/index.mjs.map +1 -1
- package/dist/lib/components/TabNav/index.mjs +1 -1
- package/dist/lib/components/TabNav/index.mjs.map +1 -1
- package/dist/lib/components/Table/index.mjs +1 -1
- package/dist/lib/components/Table/index.mjs.map +1 -1
- package/dist/lib/components/Tabs/index.mjs +1 -1
- package/dist/lib/components/Tabs/index.mjs.map +1 -1
- package/dist/lib/components/TextArea/index.mjs +1 -1
- package/dist/lib/components/TextArea/index.mjs.map +1 -1
- package/dist/lib/components/TextField/index.mjs +1 -1
- package/dist/lib/components/TextField/index.mjs.map +1 -1
- package/dist/lib/components/Toast/ToastActionButton.mjs +1 -1
- package/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -1
- package/dist/lib/components/Toast/ToastDescription.mjs +1 -1
- package/dist/lib/components/Toast/ToastDescription.mjs.map +1 -1
- package/dist/lib/components/Toast/ToastRoot.mjs +1 -1
- package/dist/lib/components/Toast/ToastRoot.mjs.map +1 -1
- package/dist/lib/components/Toast/ToastTitle.mjs +1 -1
- package/dist/lib/components/Toast/ToastTitle.mjs.map +1 -1
- package/dist/lib/components/Toast/index.d.ts +0 -1
- package/dist/lib/components/Toggle/ToggleWithText.mjs +1 -1
- package/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -1
- package/dist/lib/components/Toggle/index.mjs +1 -1
- package/dist/lib/components/Toggle/index.mjs.map +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -1
- package/dist/lib/components/ToggleGroup/index.d.ts +0 -1
- package/dist/lib/components/ToggleSwitch/index.mjs +1 -1
- package/dist/lib/components/ToggleSwitch/index.mjs.map +1 -1
- package/dist/lib/components/Tooltip/index.mjs +1 -1
- package/dist/lib/components/Tooltip/index.mjs.map +1 -1
- package/dist/lib/constants.d.ts +2 -2
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dialog/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-menu/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-menu/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-portal/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-label/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-toggle-group/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-toggle-group/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-checkbox/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-checkbox/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dialog/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-hover-card/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-hover-card/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-portal/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-radio-group/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-radio-group/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-select/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-select/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-slider/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-slider/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-switch/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-switch/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tabs/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tabs/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tooltip/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +1 -0
- package/dist/node_modules/chart.js/dist/chart.mjs +3 -3
- package/dist/node_modules/chart.js/dist/chart.mjs.map +1 -1
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.mjs +3 -3
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.mjs.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -1
- package/dist/_virtual/jsx-runtime.mjs +0 -2
- package/dist/_virtual/jsx-runtime.mjs.map +0 -1
- package/dist/_virtual/jsx-runtime2.mjs +0 -2
- package/dist/_virtual/jsx-runtime2.mjs.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.mjs +0 -2
- package/dist/_virtual/react-jsx-runtime.development.mjs.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.min.mjs +0 -2
- package/dist/_virtual/react-jsx-runtime.production.min.mjs.map +0 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +0 -2
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.map +0 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +0 -2
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.map +0 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +0 -2
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.map +0 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +0 -2
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.map +0 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +0 -2
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.map +0 -1
- package/dist/node_modules/@kurkle/color/dist/color.esm.mjs +0 -8
- package/dist/node_modules/@kurkle/color/dist/color.esm.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-select/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-slider/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-slider/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.map +0 -1
- package/dist/node_modules/chart.js/auto/auto.mjs +0 -2
- package/dist/node_modules/chart.js/auto/auto.mjs.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs +0 -11
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +0 -11
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs.map +0 -1
- package/dist/node_modules/react/jsx-runtime.mjs +0 -2
- package/dist/node_modules/react/jsx-runtime.mjs.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"theme.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/theme.js"],"sourcesContent":["\"use client\";import*as e from\"react\";import E from\"classnames\";import*as G from\"@radix-ui/react-tooltip\";import{DirectionProvider as D}from\"@radix-ui/react-direction\";import{Slot as w}from\"@radix-ui/react-slot\";import{getMatchingGrayColor as N}from\"../helpers/get-matching-gray-color.js\";import{themePropDefs as o}from\"./theme.props.js\";const d=()=>{},
|
1
|
+
{"version":3,"file":"theme.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/theme.js"],"sourcesContent":["\"use client\";import*as e from\"react\";import E from\"classnames\";import*as G from\"@radix-ui/react-tooltip\";import{DirectionProvider as D}from\"@radix-ui/react-direction\";import{Slot as w}from\"@radix-ui/react-slot\";import{getMatchingGrayColor as N}from\"../helpers/get-matching-gray-color.js\";import{themePropDefs as o}from\"./theme.props.js\";const d=()=>{},T=e.createContext(void 0);function H(){const a=e.useContext(T);if(a===void 0)throw new Error(\"`useThemeContext` must be used within a `Theme`\");return a}const I=e.forwardRef((a,s)=>e.useContext(T)===void 0?e.createElement(G.Provider,{delayDuration:200},e.createElement(D,{dir:\"ltr\"},e.createElement(R,{...a,ref:s}))):e.createElement(A,{...a,ref:s}));I.displayName=\"Theme\";const R=e.forwardRef((a,s)=>{const{appearance:r=o.appearance.default,accentColor:c=o.accentColor.default,grayColor:l=o.grayColor.default,panelBackground:p=o.panelBackground.default,radius:n=o.radius.default,scaling:t=o.scaling.default,hasBackground:m=o.hasBackground.default,...u}=a,[h,i]=e.useState(r);e.useEffect(()=>i(r),[r]);const[y,g]=e.useState(c);e.useEffect(()=>g(c),[c]);const[v,C]=e.useState(l);e.useEffect(()=>C(l),[l]);const[k,f]=e.useState(p);e.useEffect(()=>f(p),[p]);const[B,x]=e.useState(n);e.useEffect(()=>x(n),[n]);const[P,b]=e.useState(t);return e.useEffect(()=>b(t),[t]),e.createElement(A,{...u,ref:s,isRoot:!0,hasBackground:m,appearance:h,accentColor:y,grayColor:v,panelBackground:k,radius:B,scaling:P,onAppearanceChange:i,onAccentColorChange:g,onGrayColorChange:C,onPanelBackgroundChange:f,onRadiusChange:x,onScalingChange:b})});R.displayName=\"ThemeRoot\";const A=e.forwardRef((a,s)=>{const r=e.useContext(T),{asChild:c,isRoot:l,hasBackground:p,appearance:n=r?.appearance??o.appearance.default,accentColor:t=r?.accentColor??o.accentColor.default,grayColor:m=r?.resolvedGrayColor??o.grayColor.default,panelBackground:u=r?.panelBackground??o.panelBackground.default,radius:h=r?.radius??o.radius.default,scaling:i=r?.scaling??o.scaling.default,onAppearanceChange:y=d,onAccentColorChange:g=d,onGrayColorChange:v=d,onPanelBackgroundChange:C=d,onRadiusChange:k=d,onScalingChange:f=d,...B}=a,x=c?w:\"div\",P=m===\"auto\"?N(t):m,b=a.appearance===\"light\"||a.appearance===\"dark\",S=p===void 0?l||b:p;return e.createElement(T.Provider,{value:e.useMemo(()=>({appearance:n,accentColor:t,grayColor:m,resolvedGrayColor:P,panelBackground:u,radius:h,scaling:i,onAppearanceChange:y,onAccentColorChange:g,onGrayColorChange:v,onPanelBackgroundChange:C,onRadiusChange:k,onScalingChange:f}),[n,t,m,P,u,h,i,y,g,v,C,k,f])},e.createElement(x,{\"data-is-root-theme\":l?\"true\":\"false\",\"data-accent-color\":t,\"data-gray-color\":P,\"data-has-background\":S?\"true\":\"false\",\"data-panel-background\":u,\"data-radius\":h,\"data-scaling\":i,ref:s,...B,className:E(\"radix-themes\",{light:n===\"light\",dark:n===\"dark\"},B.className)}))});A.displayName=\"ThemeImpl\";export{I as Theme,T as ThemeContext,H as useThemeContext};\n//# sourceMappingURL=theme.js.map\n"],"names":["d","T","e","createContext","H","a","useContext","Error","I","forwardRef","s","createElement","G.Provider","delayDuration","D","dir","R","ref","A","displayName","appearance","r","o","default","accentColor","c","grayColor","l","panelBackground","p","radius","n","scaling","t","hasBackground","m","u","h","i","useState","useEffect","y","g","v","C","k","f","B","x","P","b","isRoot","onAppearanceChange","onAccentColorChange","onGrayColorChange","onPanelBackgroundChange","onRadiusChange","onScalingChange","asChild","resolvedGrayColor","w","N","S","Provider","value","useMemo","className","E","light","dark"],"mappings":"sZAAsV,MAACA,EAAE,OAAOC,EAAEC,EAAEC,mBAAc,GAAQ,SAASC,IAAI,MAAMC,EAAEH,EAAEI,WAAWL,GAAG,QAAO,IAAJI,EAAW,MAAM,IAAIE,MAAM,mDAAmD,OAAOF,CAAC,CAAM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mBX,EAAEY,oBAAoBX,EAAEY,kBAAkBX,EAAEY,wBAAwBX,EAAEY,eAAeX,EAAEY,gBAAgBX,KAAI,CAACf,EAAEE,EAAEE,EAAEc,EAAEb,EAAEC,EAAEC,EAAEG,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,KAAK5C,EAAES,cAAcqC,EAAE,CAAC,qBAAqBrB,EAAE,OAAO,QAAQ,oBAAoBM,EAAE,kBAAkBgB,EAAE,sBAAsBa,EAAE,OAAO,QAAQ,wBAAwB1B,EAAE,cAAcC,EAAE,eAAeC,EAAErB,IAAIP,KAAKqC,EAAEmB,UAAUC,EAAE,eAAe,CAACC,MAAU,UAAJrC,EAAYsC,KAAS,SAAJtC,GAAYgB,EAAEmB,aAAY,IAAIhD,EAAEC,YAAY"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{breakpoints as s}from"../props/prop-def.mjs";import{hasOwnProperty as e}from"./has-own-property.mjs";import{isResponsiveObject as t}from"./is-responsive-object.mjs";function i({className:s,customProperties:e,...t}){return[o({allowArbitraryValues:!0,className:s,...t}),r({customProperties:e,...t})]}function o({allowArbitraryValues:i,value:o,className:r,propValues:a,parseValue:c=
|
1
|
+
import{breakpoints as s}from"../props/prop-def.mjs";import{hasOwnProperty as e}from"./has-own-property.mjs";import{isResponsiveObject as t}from"./is-responsive-object.mjs";function i({className:s,customProperties:e,...t}){return[o({allowArbitraryValues:!0,className:s,...t}),r({customProperties:e,...t})]}function o({allowArbitraryValues:i,value:o,className:r,propValues:a,parseValue:c=s=>s}){const p=[];if(o){if("string"==typeof o&&a.includes(o))return n(r,o,c);if(t(o)){const t=o;for(const o in t){if(!e(t,o)||!s.includes(o))continue;const u=t[o];if(void 0!==u)if(a.includes(u)){const s=n(r,u,c),e="initial"===o?s:`${o}:${s}`;p.push(e)}else if(i){const s="initial"===o?r:`${o}:${r}`;p.push(s)}}return p.join(" ")}if(i)return r}}function n(s,e,t){const i=s?"-":"",o=t(e),n=o?.startsWith("-");return`${n?"-":""}${s}${i}${n?o?.substring(1):o}`}function r({customProperties:i,value:o,propValues:n,parseValue:r=s=>s}){let a={};if(o&&("string"!=typeof o||!n.includes(o))){if("string"==typeof o&&(a=Object.fromEntries(i.map((s=>[s,o])))),t(o)){const t=o;for(const o in t){if(!e(t,o)||!s.includes(o))continue;const r=t[o];if(!n.includes(r))for(const s of i)a={["initial"===o?s:`${s}-${o}`]:r,...a}}}for(const s in a){const e=a[s];void 0!==e&&(a[s]=r(e))}return a}}export{o as getResponsiveClassNames,r as getResponsiveCustomProperties,i as getResponsiveStyles};
|
2
2
|
//# sourceMappingURL=get-responsive-styles.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-responsive-styles.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.js"],"sourcesContent":["import{breakpoints as c}from\"../props/prop-def.js\";import{hasOwnProperty as a}from\"./has-own-property.js\";import{isResponsiveObject as d}from\"./is-responsive-object.js\";function R({className:r,customProperties:n,...t}){const p=g({allowArbitraryValues:!0,className:r,...t}),e=m({customProperties:n,...t});return[p,e]}function g({allowArbitraryValues:r,value:n,className:t,propValues:p,parseValue:e=s=>s}){const s=[];if(n){if(typeof n==\"string\"&&p.includes(n))return l(t,n,e);if(d(n)){const i=n;for(const o in i){if(!a(i,o)||!c.includes(o))continue;const u=i[o];if(u!==void 0){if(p.includes(u)){const f=l(t,u,e),v=o===\"initial\"?f:`${o}:${f}`;s.push(v)}else if(r){const f=o===\"initial\"?t:`${o}:${t}`;s.push(f)}}}return s.join(\" \")}if(r)return t}}function l(r,n,t){const p=r?\"-\":\"\",e=t(n),s=e?.startsWith(\"-\"),i=s?\"-\":\"\",o=s?e?.substring(1):e;return`${i}${r}${p}${o}`}function m({customProperties:r,value:n,propValues:t,parseValue:p=e=>e}){let e={};if(!(!n||typeof n==\"string\"&&t.includes(n))){if(typeof n==\"string\"&&(e=Object.fromEntries(r.map(s=>[s,n]))),d(n)){const s=n;for(const i in s){if(!a(s,i)||!c.includes(i))continue;const o=s[i];if(!t.includes(o))for(const u of r)e={[i===\"initial\"?u:`${u}-${i}`]:o,...e}}}for(const s in e){const i=e[s];i!==void 0&&(e[s]=p(i))}return e}}export{g as getResponsiveClassNames,m as getResponsiveCustomProperties,R as getResponsiveStyles};\n//# sourceMappingURL=get-responsive-styles.js.map\n"],"names":["R","className","r","customProperties","n","t","g","allowArbitraryValues","m","value","propValues","p","parseValue","e","s","includes","l","d","i","o","a","c","u","f","v","push","join","startsWith","substring","Object","fromEntries","map"],"mappings":"4KAAyK,SAASA,GAAGC,UAAUC,EAAEC,iBAAiBC,KAAKC,IAAyF,MAAM,CAAnFC,EAAE,CAACC,sBAAqB,EAAGN,UAAUC,KAAKG,IAAMG,EAAE,CAACL,iBAAiBC,KAAKC,IAAe,CAAC,SAASC,GAAGC,qBAAqBL,EAAEO,MAAML,EAAEH,UAAUI,EAAEK,WAAWC,EAAEC,WAAWC,EAAEC,
|
1
|
+
{"version":3,"file":"get-responsive-styles.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.js"],"sourcesContent":["import{breakpoints as c}from\"../props/prop-def.js\";import{hasOwnProperty as a}from\"./has-own-property.js\";import{isResponsiveObject as d}from\"./is-responsive-object.js\";function R({className:r,customProperties:n,...t}){const p=g({allowArbitraryValues:!0,className:r,...t}),e=m({customProperties:n,...t});return[p,e]}function g({allowArbitraryValues:r,value:n,className:t,propValues:p,parseValue:e=s=>s}){const s=[];if(n){if(typeof n==\"string\"&&p.includes(n))return l(t,n,e);if(d(n)){const i=n;for(const o in i){if(!a(i,o)||!c.includes(o))continue;const u=i[o];if(u!==void 0){if(p.includes(u)){const f=l(t,u,e),v=o===\"initial\"?f:`${o}:${f}`;s.push(v)}else if(r){const f=o===\"initial\"?t:`${o}:${t}`;s.push(f)}}}return s.join(\" \")}if(r)return t}}function l(r,n,t){const p=r?\"-\":\"\",e=t(n),s=e?.startsWith(\"-\"),i=s?\"-\":\"\",o=s?e?.substring(1):e;return`${i}${r}${p}${o}`}function m({customProperties:r,value:n,propValues:t,parseValue:p=e=>e}){let e={};if(!(!n||typeof n==\"string\"&&t.includes(n))){if(typeof n==\"string\"&&(e=Object.fromEntries(r.map(s=>[s,n]))),d(n)){const s=n;for(const i in s){if(!a(s,i)||!c.includes(i))continue;const o=s[i];if(!t.includes(o))for(const u of r)e={[i===\"initial\"?u:`${u}-${i}`]:o,...e}}}for(const s in e){const i=e[s];i!==void 0&&(e[s]=p(i))}return e}}export{g as getResponsiveClassNames,m as getResponsiveCustomProperties,R as getResponsiveStyles};\n//# sourceMappingURL=get-responsive-styles.js.map\n"],"names":["R","className","r","customProperties","n","t","g","allowArbitraryValues","m","value","propValues","p","parseValue","e","s","includes","l","d","i","o","a","c","u","f","v","push","join","startsWith","substring","Object","fromEntries","map"],"mappings":"4KAAyK,SAASA,GAAGC,UAAUC,EAAEC,iBAAiBC,KAAKC,IAAyF,MAAM,CAAnFC,EAAE,CAACC,sBAAqB,EAAGN,UAAUC,KAAKG,IAAMG,EAAE,CAACL,iBAAiBC,KAAKC,IAAe,CAAC,SAASC,GAAGC,qBAAqBL,EAAEO,MAAML,EAAEH,UAAUI,EAAEK,WAAWC,EAAEC,WAAWC,EAAEC,GAAGA,IAAI,MAAMA,EAAE,GAAG,GAAGV,EAAE,CAAC,GAAa,iBAAHA,GAAaO,EAAEI,SAASX,GAAG,OAAOY,EAAEX,EAAED,EAAES,GAAG,GAAGI,EAAEb,GAAG,CAAC,MAAMc,EAAEd,EAAE,IAAI,MAAMe,KAAKD,EAAE,CAAC,IAAIE,EAAEF,EAAEC,KAAKE,EAAEN,SAASI,GAAG,SAAS,MAAMG,EAAEJ,EAAEC,GAAG,QAAO,IAAJG,EAAY,GAAGX,EAAEI,SAASO,GAAG,CAAC,MAAMC,EAAEP,EAAEX,EAAEiB,EAAET,GAAGW,EAAM,YAAJL,EAAcI,EAAE,GAAGJ,KAAKI,IAAIT,EAAEW,KAAKD,EAAE,MAAM,GAAGtB,EAAE,CAAC,MAAMqB,EAAM,YAAJJ,EAAcd,EAAE,GAAGc,KAAKd,IAAIS,EAAEW,KAAKF,EAAE,CAAE,CAAC,OAAOT,EAAEY,KAAK,IAAI,CAAC,GAAGxB,EAAE,OAAOG,CAAC,CAAC,CAAC,SAASW,EAAEd,EAAEE,EAAEC,GAAG,MAAMM,EAAET,EAAE,IAAI,GAAGW,EAAER,EAAED,GAAGU,EAAED,GAAGc,WAAW,KAAsC,MAAM,GAArCb,EAAE,IAAI,KAAsCZ,IAAIS,IAArCG,EAAED,GAAGe,UAAU,GAAGf,GAA0B,CAAC,SAASL,GAAGL,iBAAiBD,EAAEO,MAAML,EAAEM,WAAWL,EAAEO,WAAWD,EAAEE,GAAGA,IAAI,IAAIA,EAAE,CAAE,EAAC,GAAMT,IAAa,iBAAHA,IAAaC,EAAEU,SAASX,IAAI,CAAC,GAAa,iBAAHA,IAAcS,EAAEgB,OAAOC,YAAY5B,EAAE6B,KAAIjB,GAAG,CAACA,EAAEV,OAAMa,EAAEb,GAAG,CAAC,MAAMU,EAAEV,EAAE,IAAI,MAAMc,KAAKJ,EAAE,CAAC,IAAIM,EAAEN,EAAEI,KAAKG,EAAEN,SAASG,GAAG,SAAS,MAAMC,EAAEL,EAAEI,GAAG,IAAIb,EAAEU,SAASI,GAAG,IAAI,MAAMG,KAAKpB,EAAEW,EAAE,CAAC,CAAK,YAAJK,EAAcI,EAAE,GAAGA,KAAKJ,KAAKC,KAAKN,EAAE,CAAC,CAAC,IAAI,MAAMC,KAAKD,EAAE,CAAC,MAAMK,EAAEL,EAAEC,QAAO,IAAJI,IAAaL,EAAEC,GAAGH,EAAEO,GAAG,CAAC,OAAOL,CAAC,CAAC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{paddingPropDefs as s}from"./padding.props.mjs";import{heightPropDefs as e}from"./height.props.mjs";import{widthPropDefs as r}from"./width.props.mjs";const t=["visible","hidden","clip","scroll","auto"],o=["0","1","2","3","4","5","6","7","8","9","-1","-2","-3","-4","-5","-6","-7","-8","-9"],i={...s,...r,...e,position:{type:"enum",className:"rt-r-position",values:["static","relative","absolute","fixed","sticky"],responsive:!0},inset:{type:"enum | string",className:"rt-r-inset",customProperties:["--inset"],values:o,responsive:!0},top:{type:"enum | string",className:"rt-r-top",customProperties:["--top"],values:o,responsive:!0},right:{type:"enum | string",className:"rt-r-right",customProperties:["--right"],values:o,responsive:!0},bottom:{type:"enum | string",className:"rt-r-bottom",customProperties:["--bottom"],values:o,responsive:!0},left:{type:"enum | string",className:"rt-r-left",customProperties:["--left"],values:o,responsive:!0},overflow:{type:"enum",className:"rt-r-overflow",values:t,responsive:!0},overflowX:{type:"enum",className:"rt-r-ox",values:t,responsive:!0},overflowY:{type:"enum",className:"rt-r-oy",values:t,responsive:!0},flexBasis:{type:"string",className:"rt-r-fb",customProperties:["--flex-basis"],responsive:!0},flexShrink:{type:"enum | string",className:"rt-r-fs",customProperties:["--flex-shrink"],values:["0","1"],responsive:!0},flexGrow:{type:"enum | string",className:"rt-r-fg",customProperties:["--flex-grow"],values:["0","1"],responsive:!0},gridColumn:{type:"string",className:"rt-r-gc",customProperties:["--grid-column"],responsive:!0},gridColumnStart:{type:"string",className:"rt-r-gcs",customProperties:["--grid-column-start"],responsive:!0},gridColumnEnd:{type:"string",className:"rt-r-gce",customProperties:["--grid-column-end"],responsive:!0},gridRow:{type:"string",className:"rt-r-gr",customProperties:["--grid-row"],responsive:!0},gridRowStart:{type:"string",className:"rt-r-grs",customProperties:["--grid-row-start"],responsive:!0},gridRowEnd:{type:"string",className:"rt-r-gre",customProperties:["--grid-row-end"],responsive:!0}};export{i as layoutPropDefs};
|
1
|
+
import{paddingPropDefs as s}from"./padding.props.mjs";import{heightPropDefs as e}from"./height.props.mjs";import{widthPropDefs as r}from"./width.props.mjs";const t=["visible","hidden","clip","scroll","auto"],o=["0","1","2","3","4","5","6","7","8","9","-1","-2","-3","-4","-5","-6","-7","-8","-9"],i={...s,...r,...e,position:{type:"enum",className:"rt-r-position",values:["static","relative","absolute","fixed","sticky"],responsive:!0},inset:{type:"enum | string",className:"rt-r-inset",customProperties:["--inset"],values:o,responsive:!0},top:{type:"enum | string",className:"rt-r-top",customProperties:["--top"],values:o,responsive:!0},right:{type:"enum | string",className:"rt-r-right",customProperties:["--right"],values:o,responsive:!0},bottom:{type:"enum | string",className:"rt-r-bottom",customProperties:["--bottom"],values:o,responsive:!0},left:{type:"enum | string",className:"rt-r-left",customProperties:["--left"],values:o,responsive:!0},overflow:{type:"enum",className:"rt-r-overflow",values:t,responsive:!0},overflowX:{type:"enum",className:"rt-r-ox",values:t,responsive:!0},overflowY:{type:"enum",className:"rt-r-oy",values:t,responsive:!0},flexBasis:{type:"string",className:"rt-r-fb",customProperties:["--flex-basis"],responsive:!0},flexShrink:{type:"enum | string",className:"rt-r-fs",customProperties:["--flex-shrink"],values:["0","1"],responsive:!0},flexGrow:{type:"enum | string",className:"rt-r-fg",customProperties:["--flex-grow"],values:["0","1"],responsive:!0},gridArea:{type:"string",className:"rt-r-ga",customProperties:["--grid-area"],responsive:!0},gridColumn:{type:"string",className:"rt-r-gc",customProperties:["--grid-column"],responsive:!0},gridColumnStart:{type:"string",className:"rt-r-gcs",customProperties:["--grid-column-start"],responsive:!0},gridColumnEnd:{type:"string",className:"rt-r-gce",customProperties:["--grid-column-end"],responsive:!0},gridRow:{type:"string",className:"rt-r-gr",customProperties:["--grid-row"],responsive:!0},gridRowStart:{type:"string",className:"rt-r-grs",customProperties:["--grid-row-start"],responsive:!0},gridRowEnd:{type:"string",className:"rt-r-gre",customProperties:["--grid-row-end"],responsive:!0}};export{i as layoutPropDefs};
|
2
2
|
//# sourceMappingURL=layout.props.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"layout.props.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/props/layout.props.js"],"sourcesContent":["import{paddingPropDefs as s}from\"./padding.props.js\";import{heightPropDefs as
|
1
|
+
{"version":3,"file":"layout.props.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/props/layout.props.js"],"sourcesContent":["import{paddingPropDefs as s}from\"./padding.props.js\";import{heightPropDefs as t}from\"./height.props.js\";import{widthPropDefs as o}from\"./width.props.js\";const r=[\"visible\",\"hidden\",\"clip\",\"scroll\",\"auto\"],i=[\"static\",\"relative\",\"absolute\",\"fixed\",\"sticky\"],e=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"-1\",\"-2\",\"-3\",\"-4\",\"-5\",\"-6\",\"-7\",\"-8\",\"-9\"],p=[\"0\",\"1\"],n=[\"0\",\"1\"],u={...s,...o,...t,position:{type:\"enum\",className:\"rt-r-position\",values:i,responsive:!0},inset:{type:\"enum | string\",className:\"rt-r-inset\",customProperties:[\"--inset\"],values:e,responsive:!0},top:{type:\"enum | string\",className:\"rt-r-top\",customProperties:[\"--top\"],values:e,responsive:!0},right:{type:\"enum | string\",className:\"rt-r-right\",customProperties:[\"--right\"],values:e,responsive:!0},bottom:{type:\"enum | string\",className:\"rt-r-bottom\",customProperties:[\"--bottom\"],values:e,responsive:!0},left:{type:\"enum | string\",className:\"rt-r-left\",customProperties:[\"--left\"],values:e,responsive:!0},overflow:{type:\"enum\",className:\"rt-r-overflow\",values:r,responsive:!0},overflowX:{type:\"enum\",className:\"rt-r-ox\",values:r,responsive:!0},overflowY:{type:\"enum\",className:\"rt-r-oy\",values:r,responsive:!0},flexBasis:{type:\"string\",className:\"rt-r-fb\",customProperties:[\"--flex-basis\"],responsive:!0},flexShrink:{type:\"enum | string\",className:\"rt-r-fs\",customProperties:[\"--flex-shrink\"],values:p,responsive:!0},flexGrow:{type:\"enum | string\",className:\"rt-r-fg\",customProperties:[\"--flex-grow\"],values:n,responsive:!0},gridArea:{type:\"string\",className:\"rt-r-ga\",customProperties:[\"--grid-area\"],responsive:!0},gridColumn:{type:\"string\",className:\"rt-r-gc\",customProperties:[\"--grid-column\"],responsive:!0},gridColumnStart:{type:\"string\",className:\"rt-r-gcs\",customProperties:[\"--grid-column-start\"],responsive:!0},gridColumnEnd:{type:\"string\",className:\"rt-r-gce\",customProperties:[\"--grid-column-end\"],responsive:!0},gridRow:{type:\"string\",className:\"rt-r-gr\",customProperties:[\"--grid-row\"],responsive:!0},gridRowStart:{type:\"string\",className:\"rt-r-grs\",customProperties:[\"--grid-row-start\"],responsive:!0},gridRowEnd:{type:\"string\",className:\"rt-r-gre\",customProperties:[\"--grid-row-end\"],responsive:!0}};export{u as layoutPropDefs};\n//# sourceMappingURL=layout.props.js.map\n"],"names":["r","e","u","s","o","t","position","type","className","values","responsive","inset","customProperties","top","right","bottom","left","overflow","overflowX","overflowY","flexBasis","flexShrink","flexGrow","gridArea","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd"],"mappings":"4JAA8J,MAACA,EAAE,CAAC,UAAU,SAAS,OAAO,SAAS,QAA4DC,EAAE,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,MAA8BC,EAAE,IAAIC,KAAKC,KAAKC,EAAEC,SAAS,CAACC,KAAK,OAAOC,UAAU,gBAAgBC,OAArO,CAAC,SAAS,WAAW,WAAW,QAAQ,UAAsMC,YAAW,GAAIC,MAAM,CAACJ,KAAK,gBAAgBC,UAAU,aAAaI,iBAAiB,CAAC,WAAWH,OAAOR,EAAES,YAAW,GAAIG,IAAI,CAACN,KAAK,gBAAgBC,UAAU,WAAWI,iBAAiB,CAAC,SAASH,OAAOR,EAAES,YAAW,GAAII,MAAM,CAACP,KAAK,gBAAgBC,UAAU,aAAaI,iBAAiB,CAAC,WAAWH,OAAOR,EAAES,YAAW,GAAIK,OAAO,CAACR,KAAK,gBAAgBC,UAAU,cAAcI,iBAAiB,CAAC,YAAYH,OAAOR,EAAES,YAAW,GAAIM,KAAK,CAACT,KAAK,gBAAgBC,UAAU,YAAYI,iBAAiB,CAAC,UAAUH,OAAOR,EAAES,YAAW,GAAIO,SAAS,CAACV,KAAK,OAAOC,UAAU,gBAAgBC,OAAOT,EAAEU,YAAW,GAAIQ,UAAU,CAACX,KAAK,OAAOC,UAAU,UAAUC,OAAOT,EAAEU,YAAW,GAAIS,UAAU,CAACZ,KAAK,OAAOC,UAAU,UAAUC,OAAOT,EAAEU,YAAW,GAAIU,UAAU,CAACb,KAAK,SAASC,UAAU,UAAUI,iBAAiB,CAAC,gBAAgBF,YAAW,GAAIW,WAAW,CAACd,KAAK,gBAAgBC,UAAU,UAAUI,iBAAiB,CAAC,iBAAiBH,OAAt/B,CAAC,IAAI,KAA0/BC,YAAW,GAAIY,SAAS,CAACf,KAAK,gBAAgBC,UAAU,UAAUI,iBAAiB,CAAC,eAAeH,OAAtlC,CAAC,IAAI,KAA0lCC,YAAW,GAAIa,SAAS,CAAChB,KAAK,SAASC,UAAU,UAAUI,iBAAiB,CAAC,eAAeF,YAAW,GAAIc,WAAW,CAACjB,KAAK,SAASC,UAAU,UAAUI,iBAAiB,CAAC,iBAAiBF,YAAW,GAAIe,gBAAgB,CAAClB,KAAK,SAASC,UAAU,WAAWI,iBAAiB,CAAC,uBAAuBF,YAAW,GAAIgB,cAAc,CAACnB,KAAK,SAASC,UAAU,WAAWI,iBAAiB,CAAC,qBAAqBF,YAAW,GAAIiB,QAAQ,CAACpB,KAAK,SAASC,UAAU,UAAUI,iBAAiB,CAAC,cAAcF,YAAW,GAAIkB,aAAa,CAACrB,KAAK,SAASC,UAAU,WAAWI,iBAAiB,CAAC,oBAAoBF,YAAW,GAAImB,WAAW,CAACtB,KAAK,SAASC,UAAU,WAAWI,iBAAiB,CAAC,kBAAkBF,YAAW"}
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-checkbox/dist/index.mjs
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as e from"react";import{useComposedRefs as t}from"../../../../../react-compose-refs/dist/index.mjs";import{createContextScope as r}from"../../react-context/dist/index.mjs";import{composeEventHandlers as n}from"../../../../../primitive/dist/index.mjs";import{useControllableState as o}from"../../../../../react-use-controllable-state/dist/index.mjs";import{usePrevious as i}from"../../../../../react-use-previous/dist/index.mjs";import{useSize as s}from"../../../../../react-use-size/dist/index.mjs";import{Presence as a}from"../../react-presence/dist/index.mjs";import{Primitive as c}from"../../../../../react-primitive/dist/index.mjs";import{jsxs as d,jsx as l}from"react/jsx-runtime";var m="Checkbox",[u,p]=r(m),[f,b]=u(m),h=e.forwardRef(((r,i)=>{const{__scopeCheckbox:s,name:a,checked:m,defaultChecked:u,required:p,disabled:b,value:h="on",onCheckedChange:k,...v}=r,[j,E]=e.useState(null),w=t(i,(e=>E(e))),g=e.useRef(!1),R=!j||Boolean(j.closest("form")),[D=!1,P]=o({prop:m,defaultProp:u,onChange:k}),_=e.useRef(D);return e.useEffect((()=>{const e=j?.form;if(e){const t=()=>P(_.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[j,P]),d(f,{scope:s,state:D,disabled:b,children:[l(c.button,{type:"button",role:"checkbox","aria-checked":y(D)?"mixed":D,"aria-required":p,"data-state":C(D),"data-disabled":b?"":void 0,disabled:b,value:h,...v,ref:w,onKeyDown:n(r.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:n(r.onClick,(e=>{P((e=>!!y(e)||!e)),R&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())}))}),R&&l(x,{control:j,bubbles:!g.current,name:a,value:h,checked:D,required:p,disabled:b,style:{transform:"translateX(-100%)"}})]})}));h.displayName=m;var k="CheckboxIndicator",v=e.forwardRef(((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,i=b(k,r);return l(a,{present:n||y(i.state)||!0===i.state,children:l(c.span,{"data-state":C(i.state),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})}));v.displayName=k;var x=t=>{const{control:r,checked:n,bubbles:o=!0,...a}=t,c=e.useRef(null),d=i(n),m=s(r);return e.useEffect((()=>{const e=c.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(d!==n&&r){const t=new Event("click",{bubbles:o});e.indeterminate=y(n),r.call(e,!y(n)&&n),e.dispatchEvent(t)}}),[d,n,o]),l("input",{type:"checkbox","aria-hidden":!0,defaultChecked:!y(n)&&n,...a,tabIndex:-1,ref:c,style:{...t.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function y(e){return"indeterminate"===e}function C(e){return y(e)?"indeterminate":e?"checked":"unchecked"}var j=h,E=v;export{h as Checkbox,v as CheckboxIndicator,E as Indicator,j as Root,p as createCheckboxScope};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-checkbox/dist/index.mjs.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/themes/node_modules/@radix-ui/react-checkbox/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/checkbox/src/Checkbox.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar CHECKBOX_NAME = \"Checkbox\";\nvar [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);\nvar [CheckboxProvider, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);\nvar Checkbox = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCheckbox,\n name,\n checked: checkedProp,\n defaultChecked,\n required,\n disabled,\n value = \"on\",\n onCheckedChange,\n ...checkboxProps\n } = props;\n const [button, setButton] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));\n const hasConsumerStoppedPropagationRef = React.useRef(false);\n const isFormControl = button ? Boolean(button.closest(\"form\")) : true;\n const [checked = false, setChecked] = useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked,\n onChange: onCheckedChange\n });\n const initialCheckedStateRef = React.useRef(checked);\n React.useEffect(() => {\n const form = button?.form;\n if (form) {\n const reset = () => setChecked(initialCheckedStateRef.current);\n form.addEventListener(\"reset\", reset);\n return () => form.removeEventListener(\"reset\", reset);\n }\n }, [button, setChecked]);\n return /* @__PURE__ */ jsxs(CheckboxProvider, { scope: __scopeCheckbox, state: checked, disabled, children: [\n /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"checkbox\",\n \"aria-checked\": isIndeterminate(checked) ? \"mixed\" : checked,\n \"aria-required\": required,\n \"data-state\": getState(checked),\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n value,\n ...checkboxProps,\n ref: composedRefs,\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Enter\") event.preventDefault();\n }),\n onClick: composeEventHandlers(props.onClick, (event) => {\n setChecked((prevChecked) => isIndeterminate(prevChecked) ? true : !prevChecked);\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n }\n ),\n isFormControl && /* @__PURE__ */ jsx(\n BubbleInput,\n {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name,\n value,\n checked,\n required,\n disabled,\n style: { transform: \"translateX(-100%)\" }\n }\n )\n ] });\n }\n);\nCheckbox.displayName = CHECKBOX_NAME;\nvar INDICATOR_NAME = \"CheckboxIndicator\";\nvar CheckboxIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCheckbox, forceMount, ...indicatorProps } = props;\n const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || isIndeterminate(context.state) || context.state === true, children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": getState(context.state),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n ...indicatorProps,\n ref: forwardedRef,\n style: { pointerEvents: \"none\", ...props.style }\n }\n ) });\n }\n);\nCheckboxIndicator.displayName = INDICATOR_NAME;\nvar BubbleInput = (props) => {\n const { control, checked, bubbles = true, ...inputProps } = props;\n const ref = React.useRef(null);\n const prevChecked = usePrevious(checked);\n const controlSize = useSize(control);\n React.useEffect(() => {\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, \"checked\");\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event(\"click\", { bubbles });\n input.indeterminate = isIndeterminate(checked);\n setChecked.call(input, isIndeterminate(checked) ? false : checked);\n input.dispatchEvent(event);\n }\n }, [prevChecked, checked, bubbles]);\n return /* @__PURE__ */ jsx(\n \"input\",\n {\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: isIndeterminate(checked) ? false : checked,\n ...inputProps,\n tabIndex: -1,\n ref,\n style: {\n ...props.style,\n ...controlSize,\n position: \"absolute\",\n pointerEvents: \"none\",\n opacity: 0,\n margin: 0\n }\n }\n );\n};\nfunction isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nfunction getState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nvar Root = Checkbox;\nvar Indicator = CheckboxIndicator;\nexport {\n Checkbox,\n CheckboxIndicator,\n Indicator,\n Root,\n createCheckboxScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["CHECKBOX_NAME","createCheckboxContext","createCheckboxScope","createContextScope","CheckboxProvider","useCheckboxContext","Checkbox","React","forwardRef","props","forwardedRef","__scopeCheckbox","name","checked","checkedProp","defaultChecked","required","disabled","value","onCheckedChange","checkboxProps","button","setButton","useState","composedRefs","useComposedRefs","node","hasConsumerStoppedPropagationRef","useRef","isFormControl","Boolean","closest","setChecked","useControllableState","prop","defaultProp","onChange","initialCheckedStateRef","useEffect","form","reset","current","addEventListener","removeEventListener","jsxs","scope","state","children","jsx","Primitive","type","role","isIndeterminate","getState","ref","onKeyDown","composeEventHandlers","event","key","preventDefault","onClick","prevChecked","isPropagationStopped","stopPropagation","BubbleInput","control","bubbles","style","transform","displayName","INDICATOR_NAME","CheckboxIndicator","forceMount","indicatorProps","context","Presence","present","span","pointerEvents","inputProps","usePrevious","controlSize","useSize","input","inputProto","window","HTMLInputElement","prototype","Object","getOwnPropertyDescriptor","set","Event","indeterminate","call","dispatchEvent","tabIndex","position","opacity","margin","Root","Indicator"],"mappings":"qrBAaA,IAAIA,EAAgB,YACfC,EAAuBC,GAAuBC,EAAmBH,IACjEI,EAAkBC,GAAsBJ,EAAsBD,GAC/DM,EAAWC,EAAMC,YACnB,CAACC,EAAOC,KACN,MAAMC,gBACJA,EAAeC,KACfA,EACAC,QAASC,EAAWC,eACpBA,EAAcC,SACdA,EAAQC,SACRA,EAAQC,MACRA,EAAQ,KAAIC,gBACZA,KACGC,GACDX,GACGY,EAAQC,GAAaf,EAAMgB,SAAS,MACrCC,EAAeC,EAAgBf,GAAegB,GAASJ,EAAUI,KACjEC,EAAmCpB,EAAMqB,QAAO,GAChDC,GAAgBR,GAASS,QAAQT,EAAOU,QAAQ,UAC/ClB,GAAU,EAAOmB,GAAcC,EAAqB,CACzDC,KAAMpB,EACNqB,YAAapB,EACbqB,SAAUjB,IAENkB,EAAyB9B,EAAMqB,OAAOf,GAS5C,OARAN,EAAM+B,WAAU,KACd,MAAMC,EAAOlB,GAAQkB,KACrB,GAAIA,EAAM,CACR,MAAMC,EAAQ,IAAMR,EAAWK,EAAuBI,SAE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ChC,IAAIN,EAAevD,IACjB,MAAMwD,QAAEA,EAAOpD,QAAEA,EAAOqD,QAAEA,GAAU,KAASa,GAAetE,EACtD6C,EAAM/C,EAAMqB,OAAO,MACnBiC,EAAcmB,EAAYnE,GAC1BoE,EAAcC,EAAQjB,GAa5B,OAZA1D,EAAM+B,WAAU,KACd,MAAM6C,EAAQ7B,EAAIb,QACZ2C,EAAaC,OAAOC,iBAAiBC,UAErCvD,EADawD,OAAOC,yBAAyBL,EAAY,WACjCM,IAC9B,GAAI7B,IAAgBhD,GAAWmB,EAAY,CACzC,MAAMyB,EAAQ,IAAIkC,MAAM,QAAS,CAAEzB,YACnCiB,EAAMS,cAAgBxC,EAAgBvC,GACtCmB,EAAW6D,KAAKV,GAAO/B,EAAgBvC,IAAmBA,GAC1DsE,EAAMW,cAAcrC,EACrB,IACA,CAACI,EAAahD,EAASqD,IACHlB,EACrB,QACA,CACEE,KAAM,WACN,eAAe,EACfnC,gBAAgBqC,EAAgBvC,IAAmBA,KAChDkE,EACHgB,UAAW,EACXzC,MACAa,MAAO,IACF1D,EAAM0D,SACNc,EACHe,SAAU,WACVlB,cAAe,OACfmB,QAAS,EACTC,OAAQ,IAGb,EAEH,SAAS9C,EAAgBvC,GACvB,MAAmB,kBAAZA,CACT,CACA,SAASwC,EAASxC,GAChB,OAAOuC,EAAgBvC,GAAW,gBAAkBA,EAAU,UAAY,WAC5E,CACG,IAACsF,EAAO7F,EACP8F,EAAY7B"}
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-context/dist/index.mjs
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as e from"react";import{jsx as t}from"react/jsx-runtime";function n(n,r){const o=e.createContext(r);function c(n){const{children:r,...c}=n,s=e.useMemo((()=>c),Object.values(c));return t(o.Provider,{value:s,children:r})}return c.displayName=n+"Provider",[c,function(t){const c=e.useContext(o);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]}function r(n,r=[]){let c=[];const s=()=>{const t=c.map((t=>e.createContext(t)));return function(r){const o=r?.[n]||t;return e.useMemo((()=>({[`__scope${n}`]:{...r,[n]:o}})),[r,o])}};return s.scopeName=n,[function(r,o){const s=e.createContext(o),u=c.length;function i(r){const{scope:o,children:c,...i}=r,a=o?.[n][u]||s,m=e.useMemo((()=>i),Object.values(i));return t(a.Provider,{value:m,children:c})}return c=[...c,o],i.displayName=r+"Provider",[i,function(t,c){const i=c?.[n][u]||s,a=e.useContext(i);if(a)return a;if(void 0!==o)return o;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},o(s,...r)]}function o(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}export{n as createContext,r as createContextScope};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-context/dist/index.mjs.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/themes/node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/createContext.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n function Provider(props) {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n function Provider(props) {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName][index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName][index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","createContext","Provider","props","children","context","value","useMemo","Object","values","jsx","displayName","consumerName","useContext","Error","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","map","scope","contexts","BaseContext","index","length","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","useScope","overrideScopes","nextScopes","reduce","nextScopes2"],"mappings":"gEAGA,SAASA,EAAeC,EAAmBC,GACzC,MAAMC,EAAUC,EAAMC,cAAcH,GACpC,SAASI,EAASC,GAChB,MAAMC,SAAEA,KAAaC,GAAYF,EAC3BG,EAAQN,EAAMO,SAAQ,IAAMF,GAASG,OAAOC,OAAOJ,IACzD,OAAuBK,EAAIX,EAAQG,SAAU,CAAEI,QAAOF,YACvD,CAQD,OADAF,EAASS,YAAcd,EAAoB,WACpC,CAACK,EAPR,SAAqBU,GACnB,MAAMP,EAAUL,EAAMa,WAAWd,GACjC,GAAIM,EAAS,OAAOA,EACpB,QAAuB,IAAnBP,EAA2B,OAAOA,EACtC,MAAM,IAAIgB,MAAM,KAAKF,6BAAwCf,MAC9D,EAGH,CACA,SAASkB,EAAmBC,EAAWC,EAAyB,IAC9D,IAAIC,EAAkB,GAqBtB,MAAMC,EAAc,KAClB,MAAMC,EAAgBF,EAAgBG,KAAKvB,GAClCE,EAAMC,cAAcH,KAE7B,OAAO,SAAkBwB,GACvB,MAAMC,EAAWD,IAAQN,IAAcI,EACvC,OAAOpB,EAAMO,SACX,KAAA,CAAS,CAAC,UAAUS,KAAc,IAAKM,EAAON,CAACA,GAAYO,MAC3D,CAACD,EAAOC,GAEhB,CAAK,EAGH,OADAJ,EAAYH,UAAYA,EACjB,CAjCP,SAAwBnB,EAAmBC,GACzC,MAAM0B,EAAcxB,EAAMC,cAAcH,GAClC2B,EAAQP,EAAgBQ,OAE9B,SAASxB,EAASC,GAChB,MAAMmB,MAAEA,EAAKlB,SAAEA,KAAaC,GAAYF,EAClCJ,EAAUuB,IAAQN,GAAWS,IAAUD,EACvClB,EAAQN,EAAMO,SAAQ,IAAMF,GAASG,OAAOC,OAAOJ,IACzD,OAAuBK,EAAIX,EAAQG,SAAU,CAAEI,QAAOF,YACvD,CASD,OAfAc,EAAkB,IAAIA,EAAiBpB,GAcvCI,EAASS,YAAcd,EAAoB,WACpC,CAACK,EARR,SAAqBU,EAAcU,GACjC,MAAMvB,EAAUuB,IAAQN,GAAWS,IAAUD,EACvCnB,EAAUL,EAAMa,WAAWd,GACjC,GAAIM,EAAS,OAAOA,EACpB,QAAuB,IAAnBP,EAA2B,OAAOA,EACtC,MAAM,IAAIgB,MAAM,KAAKF,6BAAwCf,MAC9D,EAGF,EAcuB8B,EAAqBR,KAAgBF,GAC/D,CACA,SAASU,KAAwBC,GAC/B,MAAMC,EAAYD,EAAO,GACzB,GAAsB,IAAlBA,EAAOF,OAAc,OAAOG,EAChC,MAAMV,EAAc,KAClB,MAAMW,EAAaF,EAAOP,KAAKU,IAAkB,CAC/CC,SAAUD,IACVf,UAAWe,EAAaf,cAE1B,OAAO,SAA2BiB,GAChC,MAAMC,EAAaJ,EAAWK,QAAO,CAACC,GAAeJ,WAAUhB,gBAGtD,IAAKoB,KAFOJ,EAASC,GACI,UAAUjB,QAEzC,CAAE,GACL,OAAOhB,EAAMO,SAAQ,MAAS,CAAC,UAAUsB,EAAUb,aAAckB,KAAe,CAACA,GACvF,CAAK,EAGH,OADAf,EAAYH,UAAYa,EAAUb,UAC3BG,CACT"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as e from"react";import{composeEventHandlers as o}from"../../../../../primitive/dist/index.mjs";import{useComposedRefs as t}from"../../../../../react-compose-refs/dist/index.mjs";import{createContextScope as r,createContext as n}from"../../react-context/dist/index.mjs";import{useId as i}from"../../../../../react-id/dist/index.mjs";import{useControllableState as a}from"../../../../../react-use-controllable-state/dist/index.mjs";import{DismissableLayer as s}from"../../react-dismissable-layer/dist/index.mjs";import{FocusScope as c}from"../../../../../react-focus-scope/dist/index.mjs";import{Portal as d}from"../../react-portal/dist/index.mjs";import{Presence as l}from"../../react-presence/dist/index.mjs";import{Primitive as u}from"../../../../../react-primitive/dist/index.mjs";import{useFocusGuards as p}from"../../react-focus-guards/dist/index.mjs";import{RemoveScroll as f}from"react-remove-scroll";import{hideOthers as m}from"aria-hidden";import{Slot as g}from"../../../../../react-slot/dist/index.mjs";import{jsx as D,jsxs as h,Fragment as v}from"react/jsx-runtime";var _="Dialog",[y,R]=r(_),[b,C]=y(_),I=o=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:s,onOpenChange:c,modal:d=!0}=o,l=e.useRef(null),u=e.useRef(null),[p=!1,f]=a({prop:n,defaultProp:s,onChange:c});return D(b,{scope:t,triggerRef:l,contentRef:u,contentId:i(),titleId:i(),descriptionId:i(),open:p,onOpenChange:f,onOpenToggle:e.useCallback((()=>f((e=>!e))),[f]),modal:d,children:r})};I.displayName=_;var w="DialogTrigger",x=e.forwardRef(((e,r)=>{const{__scopeDialog:n,...i}=e,a=C(w,n),s=t(r,a.triggerRef);return D(u.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":V(a.open),...i,ref:s,onClick:o(e.onClick,a.onOpenToggle)})}));x.displayName=w;var O="DialogPortal",[F,N]=y(O,{forceMount:void 0}),j=o=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=o,a=C(O,t);return D(F,{scope:t,forceMount:r,children:e.Children.map(n,(e=>D(l,{present:r||a.open,children:D(d,{asChild:!0,container:i,children:e})})))})};j.displayName=O;var E="DialogOverlay",P=e.forwardRef(((e,o)=>{const t=N(E,e.__scopeDialog),{forceMount:r=t.forceMount,...n}=e,i=C(E,e.__scopeDialog);return i.modal?D(l,{present:r||i.open,children:D(A,{...n,ref:o})}):null}));P.displayName=E;var A=e.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,n=C(E,t);return D(f,{as:g,allowPinchZoom:!0,shards:[n.contentRef],children:D(u.div,{"data-state":V(n.open),...r,ref:o,style:{pointerEvents:"auto",...r.style}})})})),M="DialogContent",k=e.forwardRef(((e,o)=>{const t=N(M,e.__scopeDialog),{forceMount:r=t.forceMount,...n}=e,i=C(M,e.__scopeDialog);return D(l,{present:r||i.open,children:i.modal?D(T,{...n,ref:o}):D($,{...n,ref:o})})}));k.displayName=M;var T=e.forwardRef(((r,n)=>{const i=C(M,r.__scopeDialog),a=e.useRef(null),s=t(n,i.contentRef,a);return e.useEffect((()=>{const e=a.current;if(e)return m(e)}),[]),D(W,{...r,ref:s,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:o(r.onCloseAutoFocus,(e=>{e.preventDefault(),i.triggerRef.current?.focus()})),onPointerDownOutside:o(r.onPointerDownOutside,(e=>{const o=e.detail.originalEvent,t=0===o.button&&!0===o.ctrlKey;(2===o.button||t)&&e.preventDefault()})),onFocusOutside:o(r.onFocusOutside,(e=>e.preventDefault()))})})),$=e.forwardRef(((o,t)=>{const r=C(M,o.__scopeDialog),n=e.useRef(!1),i=e.useRef(!1);return D(W,{...o,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{o.onCloseAutoFocus?.(e),e.defaultPrevented||(n.current||r.triggerRef.current?.focus(),e.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:e=>{o.onInteractOutside?.(e),e.defaultPrevented||(n.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const t=e.target,a=r.triggerRef.current?.contains(t);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})})),W=e.forwardRef(((o,r)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:d,...l}=o,u=C(M,n),f=e.useRef(null),m=t(r,f);return p(),h(v,{children:[D(c,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:d,children:D(s,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":V(u.open),...l,ref:m,onDismiss:()=>u.onOpenChange(!1)})}),h(v,{children:[D(J,{titleId:u.titleId}),D(L,{contentRef:f,descriptionId:u.descriptionId})]})]})})),B="DialogTitle",S=e.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,n=C(B,t);return D(u.h2,{id:n.titleId,...r,ref:o})}));S.displayName=B;var q="DialogDescription",H=e.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,n=C(q,t);return D(u.p,{id:n.descriptionId,...r,ref:o})}));H.displayName=q;var K="DialogClose",U=e.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,i=C(K,r);return D(u.button,{type:"button",...n,ref:t,onClick:o(e.onClick,(()=>i.onOpenChange(!1)))})}));function V(e){return e?"open":"closed"}U.displayName=K;var Z="DialogTitleWarning",[z,G]=n(Z,{contentName:M,titleName:B,docsSlug:"dialog"}),J=({titleId:o})=>{const t=G(Z),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return e.useEffect((()=>{if(o){document.getElementById(o)||console.error(r)}}),[r,o]),null},L=({contentRef:o,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${G("DialogDescriptionWarning").contentName}}.`;return e.useEffect((()=>{const e=o.current?.getAttribute("aria-describedby");if(t&&e){document.getElementById(t)||console.warn(r)}}),[r,o,t]),null},Q=I,X=x,Y=j,ee=P,oe=k,te=S,re=H,ne=U;export{ne as Close,oe as Content,re as Description,I as Dialog,U as DialogClose,k as DialogContent,H as DialogDescription,P as DialogOverlay,j as DialogPortal,S as DialogTitle,x as DialogTrigger,ee as Overlay,Y as Portal,Q as Root,te as Title,X as Trigger,z as WarningProvider,R as createDialogScope};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dialog/dist/index.mjs.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/dialog/src/Dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContext, createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: forwardedRef,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n useFocusGuards();\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: composedRefs,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ),\n /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })\n ] })\n ] });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar TITLE_WARNING_NAME = \"DialogTitleWarning\";\nvar [WarningProvider, useWarningContext] = createContext(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"dialog\"\n});\nvar TitleWarning = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n return null;\n};\nvar DESCRIPTION_WARNING_NAME = \"DialogDescriptionWarning\";\nvar DescriptionWarning = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute(\"aria-describedby\");\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n return null;\n};\nvar Root = Dialog;\nvar Trigger = DialogTrigger;\nvar Portal = DialogPortal;\nvar Overlay = DialogOverlay;\nvar Content = DialogContent;\nvar Title = DialogTitle;\nvar Description = DialogDescription;\nvar Close = DialogClose;\nexport {\n Close,\n Content,\n Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n Overlay,\n Portal,\n Root,\n Title,\n Trigger,\n WarningProvider,\n createDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DIALOG_NAME","createDialogContext","createDialogScope","createContextScope","DialogProvider","useDialogContext","Dialog","props","__scopeDialog","children","open","openProp","defaultOpen","onOpenChange","modal","triggerRef","React","useRef","contentRef","setOpen","useControllableState","prop","defaultProp","onChange","jsx","scope","contentId","useId","titleId","descriptionId","onOpenToggle","useCallback","prevOpen","displayName","TRIGGER_NAME","DialogTrigger","forwardRef","forwardedRef","triggerProps","context","composedTriggerRef","useComposedRefs","Primitive","button","type","getState","ref","onClick","composeEventHandlers","PORTAL_NAME","PortalProvider","usePortalContext","forceMount","DialogPortal","container","Children","map","child","Presence","present","PortalPrimitive","asChild","OVERLAY_NAME","DialogOverlay","portalContext","overlayProps","DialogOverlayImpl","RemoveScroll","as","Slot","allowPinchZoom","shards","div","style","pointerEvents","CONTENT_NAME","DialogContent","contentProps","DialogContentModal","DialogContentNonModal","composedRefs","useEffect","content","current","hideOthers","DialogContentImpl","trapFocus","disableOutsidePointerEvents","onCloseAutoFocus","event","preventDefault","focus","onPointerDownOutside","originalEvent","detail","ctrlLeftClick","ctrlKey","onFocusOutside","hasInteractedOutsideRef","hasPointerDownOutsideRef","defaultPrevented","onInteractOutside","target","targetIsTrigger","contains","onOpenAutoFocus","useFocusGuards","jsxs","Fragment","FocusScope","loop","trapped","onMountAutoFocus","onUnmountAutoFocus","DismissableLayer","role","id","onDismiss","TitleWarning","DescriptionWarning","TITLE_NAME","DialogTitle","titleProps","h2","DESCRIPTION_NAME","DialogDescription","descriptionProps","p","CLOSE_NAME","DialogClose","closeProps","TITLE_WARNING_NAME","WarningProvider","useWarningContext","createContext","contentName","titleName","docsSlug","titleWarningContext","MESSAGE","document","getElementById","console","error","describedById","getAttribute","warn","Root","Trigger","Portal","Overlay","Content","Title","Description","Close"],"mappings":"4jCAmBA,IAAIA,EAAc,UACbC,EAAqBC,GAAqBC,EAAmBH,IAC7DI,EAAgBC,GAAoBJ,EAAoBD,GACzDM,EAAUC,IACZ,MAAMC,cACJA,EAAaC,SACbA,EACAC,KAAMC,EAAQC,YACdA,EAAWC,aACXA,EAAYC,MACZA,GAAQ,GACNP,EACEQ,EAAaC,EAAMC,OAAO,MAC1BC,EAAaF,EAAMC,OAAO,OACzBP,GAAO,EAAOS,GAAWC,EAAqB,CACnDC,KAAMV,EACNW,YAAaV,EACbW,SAAUV,IAEZ,OAAuBW,EACrBpB,EACA,CACEqB,MAAOjB,EACPO,aACAG,aACAQ,UAAWC,IACXC,QAASD,IAC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B,KACN,MAAM7B,cAAEA,KAAkB0H,GAAe3H,EACnCgC,EAAUlC,EAAiB2H,EAAYxH,GAC7C,OAAuBgB,EACrBkB,EAAUC,OACV,CACEC,KAAM,YACHsF,EACHpF,IAAKT,EACLU,QAASC,EAAqBzC,EAAMwC,SAAS,IAAMR,EAAQ1B,cAAa,MAE3E,IAIL,SAASgC,EAASnC,GAChB,OAAOA,EAAO,OAAS,QACzB,CAHAuH,EAAYhG,YAAc+F,EAI1B,IAAIG,EAAqB,sBACpBC,EAAiBC,GAAqBC,EAAcH,EAAoB,CAC3EI,YAAa5D,EACb6D,UAAWhB,EACXiB,SAAU,WAERnB,EAAe,EAAG1F,cACpB,MAAM8G,EAAsBL,EAAkBF,GACxCQ,EAAU,KAAKD,EAAoBH,8BAA8BG,EAAoBF,wGAEjEE,EAAoBF,gJAE4BE,EAAoBD,WAO9F,OANAzH,EAAMiE,WAAU,KACd,GAAIrD,EAAS,CACMgH,SAASC,eAAejH,IAC1BkH,QAAQC,MAAMJ,EAC9B,IACA,CAACA,EAAS/G,IACN,IAAI,EAGT2F,EAAqB,EAAGrG,aAAYW,oBACtC,MACM8G,EAAU,6EADkBN,EAFL,4BAG0FE,gBAQvH,OAPAvH,EAAMiE,WAAU,KACd,MAAM+D,EAAgB9H,EAAWiE,SAAS8D,aAAa,oBACvD,GAAIpH,GAAiBmH,EAAe,CACXJ,SAASC,eAAehH,IAC1BiH,QAAQI,KAAKP,EACnC,IACA,CAACA,EAASzH,EAAYW,IAClB,IAAI,EAETsH,EAAO7I,EACP8I,EAAUjH,EACVkH,EAAShG,EACTiG,GAAUvF,EACVwF,GAAU3E,EACV4E,GAAQ/B,EACRgC,GAAc5B,EACd6B,GAAQzB"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as e from"react";import{composeEventHandlers as t}from"../../../../../primitive/dist/index.mjs";import{Primitive as n,dispatchDiscreteCustomEvent as r}from"../../../../../react-primitive/dist/index.mjs";import{useComposedRefs as s}from"../../../../../react-compose-refs/dist/index.mjs";import{useCallbackRef as i}from"../../../../../react-use-callback-ref/dist/index.mjs";import{useEscapeKeydown as o}from"../../../../../react-use-escape-keydown/dist/index.mjs";import{jsx as a}from"react/jsx-runtime";var u,c="dismissableLayer.update",d="dismissableLayer.pointerDownOutside",l="dismissableLayer.focusOutside",m=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=e.forwardRef(((r,f)=>{const{disableOutsidePointerEvents:v=!1,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:w,onInteractOutside:h,onDismiss:D,...C}=r,L=e.useContext(m),[P,O]=e.useState(null),x=P?.ownerDocument??globalThis?.document,[,g]=e.useState({}),W=s(f,(e=>O(e))),j=Array.from(L.layers),[k]=[...L.layersWithOutsidePointerEventsDisabled].slice(-1),R=j.indexOf(k),T=P?j.indexOf(P):-1,B=L.layersWithOutsidePointerEventsDisabled.size>0,F=T>=R,S=function(t,n=globalThis?.document){const r=i(t),s=e.useRef(!1),o=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!s.current){let t=function(){E(d,r,s,{discrete:!0})};const s={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=t,n.addEventListener("click",o.current,{once:!0})):t()}else n.removeEventListener("click",o.current);s.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}}),[n,r]),{onPointerDownCapture:()=>s.current=!0}}((e=>{const t=e.target,n=[...L.branches].some((e=>e.contains(t)));F&&!n&&(b?.(e),h?.(e),e.defaultPrevented||D?.())}),x),z=function(t,n=globalThis?.document){const r=i(t),s=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!s.current){E(l,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}((e=>{const t=e.target;[...L.branches].some((e=>e.contains(t)))||(w?.(e),h?.(e),e.defaultPrevented||D?.())}),x);return o((e=>{T===L.layers.size-1&&(y?.(e),!e.defaultPrevented&&D&&(e.preventDefault(),D()))}),x),e.useEffect((()=>{if(P)return v&&(0===L.layersWithOutsidePointerEventsDisabled.size&&(u=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),L.layersWithOutsidePointerEventsDisabled.add(P)),L.layers.add(P),p(),()=>{v&&1===L.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=u)}}),[P,x,v,L]),e.useEffect((()=>()=>{P&&(L.layers.delete(P),L.layersWithOutsidePointerEventsDisabled.delete(P),p())}),[P,L]),e.useEffect((()=>{const e=()=>g({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)}),[]),a(n.div,{...C,ref:W,style:{pointerEvents:B?F?"auto":"none":void 0,...r.style},onFocusCapture:t(r.onFocusCapture,z.onFocusCapture),onBlurCapture:t(r.onBlurCapture,z.onBlurCapture),onPointerDownCapture:t(r.onPointerDownCapture,S.onPointerDownCapture)})}));f.displayName="DismissableLayer";var v=e.forwardRef(((t,r)=>{const i=e.useContext(m),o=e.useRef(null),u=s(r,o);return e.useEffect((()=>{const e=o.current;if(e)return i.branches.add(e),()=>{i.branches.delete(e)}}),[i.branches]),a(n.div,{...t,ref:u})}));function p(){const e=new CustomEvent(c);document.dispatchEvent(e)}function E(e,t,n,{discrete:s}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),s?r(i,o):i.dispatchEvent(o)}v.displayName="DismissableLayerBranch";export{f as DismissableLayer,v as DismissableLayerBranch};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/dismissable-layer/src/DismissableLayer.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useEscapeKeydown } from \"@radix-ui/react-use-escape-keydown\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DISMISSABLE_LAYER_NAME = \"DismissableLayer\";\nvar CONTEXT_UPDATE = \"dismissableLayer.update\";\nvar POINTER_DOWN_OUTSIDE = \"dismissableLayer.pointerDownOutside\";\nvar FOCUS_OUTSIDE = \"dismissableLayer.focusOutside\";\nvar originalBodyPointerEvents;\nvar DismissableLayerContext = React.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set()\n});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = usePointerDownOutside((event) => {\n const target = event.target;\n const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const focusOutside = useFocusOutside((event) => {\n const target = event.target;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n useEscapeKeydown((event) => {\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = \"none\";\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...layerProps,\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? \"auto\" : \"none\" : void 0,\n ...props.style\n },\n onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )\n }\n );\n }\n);\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\nvar BRANCH_NAME = \"DismissableLayerBranch\";\nvar DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });\n});\nDismissableLayerBranch.displayName = BRANCH_NAME;\nfunction usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n const eventDetail = { originalEvent: event };\n if (event.pointerType === \"touch\") {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n } else {\n handleAndDispatchPointerDownOutsideEvent2();\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n }\n isPointerInsideReactTreeRef.current = false;\n };\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener(\"pointerdown\", handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener(\"pointerdown\", handlePointerDown);\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n };\n }, [ownerDocument, handlePointerDownOutside]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true\n };\n}\nfunction useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {\n const handleFocusOutside = useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = React.useRef(false);\n React.useEffect(() => {\n const handleFocus = (event) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener(\"focusin\", handleFocus);\n return () => ownerDocument.removeEventListener(\"focusin\", handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n return {\n onFocusCapture: () => isFocusInsideReactTreeRef.current = true,\n onBlurCapture: () => isFocusInsideReactTreeRef.current = false\n };\n}\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\nvar Root = DismissableLayer;\nvar Branch = DismissableLayerBranch;\nexport {\n Branch,\n DismissableLayer,\n DismissableLayerBranch,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["originalBodyPointerEvents","CONTEXT_UPDATE","POINTER_DOWN_OUTSIDE","FOCUS_OUTSIDE","DismissableLayerContext","React","createContext","layers","Set","layersWithOutsidePointerEventsDisabled","branches","DismissableLayer","forwardRef","props","forwardedRef","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","context","useContext","node","setNode","useState","ownerDocument","globalThis","document","force","composedRefs","useComposedRefs","node2","Array","from","highestLayerWithOutsidePointerEventsDisabled","slice","highestLayerWithOutsidePointerEventsDisabledIndex","indexOf","index","isBodyPointerEventsDisabled","size","isPointerEventsEnabled","pointerDownOutside","handlePointerDownOutside","useCallbackRef","isPointerInsideReactTreeRef","useRef","handleClickRef","useEffect","handlePointerDown","event","target","current","handleAndDispatchPointerDownOutsideEvent2","handleAndDispatchCustomEvent","eventDetail","discrete","originalEvent","pointerType","removeEventListener","addEventListener","once","timerId","window","setTimeout","clearTimeout","onPointerDownCapture","usePointerDownOutside","isPointerDownOnBranch","some","branch","contains","defaultPrevented","focusOutside","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","onFocusCapture","onBlurCapture","useFocusOutside","useEscapeKeydown","preventDefault","body","style","pointerEvents","add","dispatchUpdate","delete","handleUpdate","jsx","Primitive","div","ref","composeEventHandlers","displayName","DismissableLayerBranch","CustomEvent","dispatchEvent","name","handler","detail","bubbles","cancelable","dispatchDiscreteCustomEvent"],"mappings":"6fAUA,IAIIA,EAHAC,EAAiB,0BACjBC,EAAuB,sCACvBC,EAAgB,gCAEhBC,EAA0BC,EAAMC,cAAc,CAChDC,OAAwB,IAAIC,IAC5BC,uCAAwD,IAAID,IAC5DE,SAA0B,IAAIF,MAE5BG,EAAmBN,EAAMO,YAC3B,CAACC,EAAOC,KACN,MAAMC,4BACJA,GAA8B,EAAKC,gBACnCA,EAAeC,qBACfA,EAAoBC,eACpBA,EAAcC,kBACdA,EAAiBC,UACjBA,KACGC,GACDR,EACES,EAAUjB,EAAMkB,WAAWnB,IAC1BoB,EAAMC,GAAWpB,EAAMqB,SAAS,MACjCC,EAAgBH,GAAMG,eAAiBC,YAAYC,UAChD,CAAAC,GAASzB,EAAMqB,SAAS,CAAE,GAC7BK,EAAeC,EAAgBlB,GAAemB,GA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AShD,EAAOS,iBAAiBsC,EAAMC,EAAS,CAAEtC,MAAM,IACxDL,EACF+C,EAA4BpD,EAAQD,GAEpCC,EAAO8C,cAAc/C,EAEzB,CA9EA6C,EAAuBD,YAhBL"}
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as e from"react";var t=0;function n(){e.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??o()),document.body.insertAdjacentElement("beforeend",e[1]??o()),t++,()=>{1===t&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),t--}}),[])}function o(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}export{n as useFocusGuards};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/themes/node_modules/@radix-ui/react-focus-guards/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/focus-guards/src/FocusGuards.tsx\nimport * as React from \"react\";\nvar count = 0;\nfunction FocusGuards(props) {\n useFocusGuards();\n return props.children;\n}\nfunction useFocusGuards() {\n React.useEffect(() => {\n const edgeGuards = document.querySelectorAll(\"[data-radix-focus-guard]\");\n document.body.insertAdjacentElement(\"afterbegin\", edgeGuards[0] ?? createFocusGuard());\n document.body.insertAdjacentElement(\"beforeend\", edgeGuards[1] ?? createFocusGuard());\n count++;\n return () => {\n if (count === 1) {\n document.querySelectorAll(\"[data-radix-focus-guard]\").forEach((node) => node.remove());\n }\n count--;\n };\n }, []);\n}\nfunction createFocusGuard() {\n const element = document.createElement(\"span\");\n element.setAttribute(\"data-radix-focus-guard\", \"\");\n element.tabIndex = 0;\n element.style.cssText = \"outline: none; opacity: 0; position: fixed; pointer-events: none\";\n return element;\n}\nvar Root = FocusGuards;\nexport {\n FocusGuards,\n Root,\n useFocusGuards\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["count","useFocusGuards","React","useEffect","edgeGuards","document","querySelectorAll","body","insertAdjacentElement","createFocusGuard","forEach","node","remove","element","createElement","setAttribute","tabIndex","style","cssText"],"mappings":"wBAIA,IAAIA,EAAQ,EAKZ,SAASC,IACPC,EAAMC,WAAU,KACd,MAAMC,EAAaC,SAASC,iBAAiB,4BAI7C,OAHAD,SAASE,KAAKC,sBAAsB,aAAcJ,EAAW,IAAMK,KACnEJ,SAASE,KAAKC,sBAAsB,YAAaJ,EAAW,IAAMK,KAClET,IACO,KACS,IAAVA,GACFK,SAASC,iBAAiB,4BAA4BI,SAASC,GAASA,EAAKC,WAE/EZ,GAAO,CACR,GACA,GACL,CACA,SAASS,IACP,MAAMI,EAAUR,SAASS,cAAc,QAIvC,OAHAD,EAAQE,aAAa,yBAA0B,IAC/CF,EAAQG,SAAW,EACnBH,EAAQI,MAAMC,QAAU,mEACjBL,CACT"}
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-hover-card/dist/index.mjs
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as e from"react";import{composeEventHandlers as r}from"../../../../../primitive/dist/index.mjs";import{createContextScope as t}from"../../react-context/dist/index.mjs";import{useControllableState as o}from"../../../../../react-use-controllable-state/dist/index.mjs";import{useComposedRefs as n}from"../../../../../react-compose-refs/dist/index.mjs";import{createPopperScope as i,Anchor as a,Content as s,Arrow as c,Root as d}from"../../../../../react-popper/dist/index.mjs";import{Portal as u}from"../../react-portal/dist/index.mjs";import{Presence as l}from"../../react-presence/dist/index.mjs";import{Primitive as p}from"../../../../../react-primitive/dist/index.mjs";import{DismissableLayer as f}from"../../react-dismissable-layer/dist/index.mjs";import{jsx as m}from"react/jsx-runtime";var v,h="HoverCard",[C,w]=t(h,[i]),x=i(),[P,R]=C(h),y=r=>{const{__scopeHoverCard:t,children:n,open:i,defaultOpen:a,onOpenChange:s,openDelay:c=700,closeDelay:u=300}=r,l=x(t),p=e.useRef(0),f=e.useRef(0),v=e.useRef(!1),h=e.useRef(!1),[C=!1,w]=o({prop:i,defaultProp:a,onChange:s}),R=e.useCallback((()=>{clearTimeout(f.current),p.current=window.setTimeout((()=>w(!0)),c)}),[c,w]),y=e.useCallback((()=>{clearTimeout(p.current),v.current||h.current||(f.current=window.setTimeout((()=>w(!1)),u))}),[u,w]),E=e.useCallback((()=>w(!1)),[w]);return e.useEffect((()=>()=>{clearTimeout(p.current),clearTimeout(f.current)}),[]),m(P,{scope:t,open:C,onOpenChange:w,onOpen:R,onClose:y,onDismiss:E,hasSelectionRef:v,isPointerDownOnContentRef:h,children:m(d,{...l,children:n})})};y.displayName=h;var E="HoverCardTrigger",O=e.forwardRef(((e,t)=>{const{__scopeHoverCard:o,...n}=e,i=R(E,o),s=x(o);return m(a,{asChild:!0,...s,children:m(p.a,{"data-state":i.open?"open":"closed",...n,ref:t,onPointerEnter:r(e.onPointerEnter,j(i.onOpen)),onPointerLeave:r(e.onPointerLeave,j(i.onClose)),onFocus:r(e.onFocus,i.onOpen),onBlur:r(e.onBlur,i.onClose),onTouchStart:r(e.onTouchStart,(e=>e.preventDefault()))})})}));O.displayName=E;var S="HoverCardPortal",[g,b]=C(S,{forceMount:void 0}),D=e=>{const{__scopeHoverCard:r,forceMount:t,children:o,container:n}=e,i=R(S,r);return m(g,{scope:r,forceMount:t,children:m(l,{present:t||i.open,children:m(u,{asChild:!0,container:n,children:o})})})};D.displayName=S;var T="HoverCardContent",_=e.forwardRef(((e,t)=>{const o=b(T,e.__scopeHoverCard),{forceMount:n=o.forceMount,...i}=e,a=R(T,e.__scopeHoverCard);return m(l,{present:n||a.open,children:m(H,{"data-state":a.open?"open":"closed",...i,onPointerEnter:r(e.onPointerEnter,j(a.onOpen)),onPointerLeave:r(e.onPointerLeave,j(a.onClose)),ref:t})})}));_.displayName=T;var H=e.forwardRef(((t,o)=>{const{__scopeHoverCard:i,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:u,...l}=t,p=R(T,i),h=x(i),C=e.useRef(null),w=n(o,C),[P,y]=e.useState(!1);return e.useEffect((()=>{if(P){const e=document.body;return v=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=v,e.style.webkitUserSelect=v}}}),[P]),e.useEffect((()=>{if(C.current){const e=()=>{y(!1),p.isPointerDownOnContentRef.current=!1,setTimeout((()=>{""!==document.getSelection()?.toString()&&(p.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),p.hasSelectionRef.current=!1,p.isPointerDownOnContentRef.current=!1}}}),[p.isPointerDownOnContentRef,p.hasSelectionRef]),e.useEffect((()=>{if(C.current){(function(e){const r=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;t.nextNode();)r.push(t.currentNode);return r})(C.current).forEach((e=>e.setAttribute("tabindex","-1")))}})),m(f,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:r(d,(e=>{e.preventDefault()})),onDismiss:p.onDismiss,children:m(s,{...h,...l,onPointerDown:r(l.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&y(!0),p.hasSelectionRef.current=!1,p.isPointerDownOnContentRef.current=!0})),ref:w,style:{...l.style,userSelect:P?"text":void 0,WebkitUserSelect:P?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})})),N=e.forwardRef(((e,r)=>{const{__scopeHoverCard:t,...o}=e,n=x(t);return m(c,{...n,...o,ref:r})}));function j(e){return r=>"touch"===r.pointerType?void 0:e()}N.displayName="HoverCardArrow";var F=y,L=O,k=D,I=_;export{I as Content,y as HoverCard,N as HoverCardArrow,_ as HoverCardContent,D as HoverCardPortal,O as HoverCardTrigger,k as Portal,F as Root,L as Trigger,w as createHoverCardScope};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/themes/node_modules/@radix-ui/react-hover-card/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/hover-card/src/HoverCard.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\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 } from \"@radix-ui/react-primitive\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { jsx } from \"react/jsx-runtime\";\nvar originalBodyUserSelect;\nvar HOVERCARD_NAME = \"HoverCard\";\nvar [createHoverCardContext, createHoverCardScope] = createContextScope(HOVERCARD_NAME, [\n createPopperScope\n]);\nvar usePopperScope = createPopperScope();\nvar [HoverCardProvider, useHoverCardContext] = createHoverCardContext(HOVERCARD_NAME);\nvar HoverCard = (props) => {\n const {\n __scopeHoverCard,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n openDelay = 700,\n closeDelay = 300\n } = props;\n const popperScope = usePopperScope(__scopeHoverCard);\n const openTimerRef = React.useRef(0);\n const closeTimerRef = React.useRef(0);\n const hasSelectionRef = React.useRef(false);\n const isPointerDownOnContentRef = React.useRef(false);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n const handleOpen = React.useCallback(() => {\n clearTimeout(closeTimerRef.current);\n openTimerRef.current = window.setTimeout(() => setOpen(true), openDelay);\n }, [openDelay, setOpen]);\n const handleClose = React.useCallback(() => {\n clearTimeout(openTimerRef.current);\n if (!hasSelectionRef.current && !isPointerDownOnContentRef.current) {\n closeTimerRef.current = window.setTimeout(() => setOpen(false), closeDelay);\n }\n }, [closeDelay, setOpen]);\n const handleDismiss = React.useCallback(() => setOpen(false), [setOpen]);\n React.useEffect(() => {\n return () => {\n clearTimeout(openTimerRef.current);\n clearTimeout(closeTimerRef.current);\n };\n }, []);\n return /* @__PURE__ */ jsx(\n HoverCardProvider,\n {\n scope: __scopeHoverCard,\n open,\n onOpenChange: setOpen,\n onOpen: handleOpen,\n onClose: handleClose,\n onDismiss: handleDismiss,\n hasSelectionRef,\n isPointerDownOnContentRef,\n children: /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children })\n }\n );\n};\nHoverCard.displayName = HOVERCARD_NAME;\nvar TRIGGER_NAME = \"HoverCardTrigger\";\nvar HoverCardTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeHoverCard, ...triggerProps } = props;\n const context = useHoverCardContext(TRIGGER_NAME, __scopeHoverCard);\n const popperScope = usePopperScope(__scopeHoverCard);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(\n Primitive.a,\n {\n \"data-state\": context.open ? \"open\" : \"closed\",\n ...triggerProps,\n ref: forwardedRef,\n onPointerEnter: composeEventHandlers(props.onPointerEnter, excludeTouch(context.onOpen)),\n onPointerLeave: composeEventHandlers(props.onPointerLeave, excludeTouch(context.onClose)),\n onFocus: composeEventHandlers(props.onFocus, context.onOpen),\n onBlur: composeEventHandlers(props.onBlur, context.onClose),\n onTouchStart: composeEventHandlers(props.onTouchStart, (event) => event.preventDefault())\n }\n ) });\n }\n);\nHoverCardTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"HoverCardPortal\";\nvar [PortalProvider, usePortalContext] = createHoverCardContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar HoverCardPortal = (props) => {\n const { __scopeHoverCard, forceMount, children, container } = props;\n const context = useHoverCardContext(PORTAL_NAME, __scopeHoverCard);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeHoverCard, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nHoverCardPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"HoverCardContent\";\nvar HoverCardContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeHoverCard);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useHoverCardContext(CONTENT_NAME, props.__scopeHoverCard);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(\n HoverCardContentImpl,\n {\n \"data-state\": context.open ? \"open\" : \"closed\",\n ...contentProps,\n onPointerEnter: composeEventHandlers(props.onPointerEnter, excludeTouch(context.onOpen)),\n onPointerLeave: composeEventHandlers(props.onPointerLeave, excludeTouch(context.onClose)),\n ref: forwardedRef\n }\n ) });\n }\n);\nHoverCardContent.displayName = CONTENT_NAME;\nvar HoverCardContentImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeHoverCard,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n ...contentProps\n } = props;\n const context = useHoverCardContext(CONTENT_NAME, __scopeHoverCard);\n const popperScope = usePopperScope(__scopeHoverCard);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const [containSelection, setContainSelection] = React.useState(false);\n React.useEffect(() => {\n if (containSelection) {\n const body = document.body;\n originalBodyUserSelect = body.style.userSelect || body.style.webkitUserSelect;\n body.style.userSelect = \"none\";\n body.style.webkitUserSelect = \"none\";\n return () => {\n body.style.userSelect = originalBodyUserSelect;\n body.style.webkitUserSelect = originalBodyUserSelect;\n };\n }\n }, [containSelection]);\n React.useEffect(() => {\n if (ref.current) {\n const handlePointerUp = () => {\n setContainSelection(false);\n context.isPointerDownOnContentRef.current = false;\n setTimeout(() => {\n const hasSelection = document.getSelection()?.toString() !== \"\";\n if (hasSelection) context.hasSelectionRef.current = true;\n });\n };\n document.addEventListener(\"pointerup\", handlePointerUp);\n return () => {\n document.removeEventListener(\"pointerup\", handlePointerUp);\n context.hasSelectionRef.current = false;\n context.isPointerDownOnContentRef.current = false;\n };\n }\n }, [context.isPointerDownOnContentRef, context.hasSelectionRef]);\n React.useEffect(() => {\n if (ref.current) {\n const tabbables = getTabbableNodes(ref.current);\n tabbables.forEach((tabbable) => tabbable.setAttribute(\"tabindex\", \"-1\"));\n }\n });\n return /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents: false,\n onInteractOutside,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside: composeEventHandlers(onFocusOutside, (event) => {\n event.preventDefault();\n }),\n onDismiss: context.onDismiss,\n children: /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n ...popperScope,\n ...contentProps,\n onPointerDown: composeEventHandlers(contentProps.onPointerDown, (event) => {\n if (event.currentTarget.contains(event.target)) {\n setContainSelection(true);\n }\n context.hasSelectionRef.current = false;\n context.isPointerDownOnContentRef.current = true;\n }),\n ref: composedRefs,\n style: {\n ...contentProps.style,\n userSelect: containSelection ? \"text\" : void 0,\n // Safari requires prefix\n WebkitUserSelect: containSelection ? \"text\" : void 0,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-hover-card-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-hover-card-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-hover-card-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-hover-card-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-hover-card-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n )\n }\n );\n});\nvar ARROW_NAME = \"HoverCardArrow\";\nvar HoverCardArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeHoverCard, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopeHoverCard);\n return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nHoverCardArrow.displayName = ARROW_NAME;\nfunction excludeTouch(eventHandler) {\n return (event) => event.pointerType === \"touch\" ? void 0 : eventHandler();\n}\nfunction getTabbableNodes(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node) => {\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}\nvar Root2 = HoverCard;\nvar Trigger = HoverCardTrigger;\nvar Portal = HoverCardPortal;\nvar Content2 = HoverCardContent;\nvar Arrow2 = HoverCardArrow;\nexport {\n Arrow2 as Arrow,\n Content2 as Content,\n HoverCard,\n HoverCardArrow,\n HoverCardContent,\n HoverCardPortal,\n HoverCardTrigger,\n Portal,\n Root2 as Root,\n Trigger,\n createHoverCardScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["originalBodyUserSelect","HOVERCARD_NAME","createHoverCardContext","createHoverCardScope","createContextScope","createPopperScope","usePopperScope","HoverCardProvider","useHoverCardContext","HoverCard","props","__scopeHoverCard","children","open","openProp","defaultOpen","onOpenChange","openDelay","closeDelay","popperScope","openTimerRef","React","useRef","closeTimerRef","hasSelectionRef","isPointerDownOnContentRef","setOpen","useControllableState","prop","defaultProp","onChange","handleOpen","useCallback","clearTimeout","current","window","setTimeout","handleClose","handleDismiss","useEffect","jsx","scope","onOpen","onClose","onDismiss","PopperPrimitive.Root","displayName","TRIGGER_NAME","HoverCardTrigger","forwardRef","forwardedRef","triggerProps","context","PopperPrimitive.Anchor","asChild","Primitive","a","ref","onPointerEnter","composeEventHandlers","excludeTouch","onPointerLeave","onFocus","onBlur","onTouchStart","event","preventDefault","PORTAL_NAME","PortalProvider","usePortalContext","forceMount","HoverCardPortal","container","Presence","present","PortalPrimitive","CONTENT_NAME","HoverCardContent","portalContext","contentProps","HoverCardContentImpl","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","composedRefs","useComposedRefs","containSelection","setContainSelection","useState","body","document","style","userSelect","webkitUserSelect","handlePointerUp","getSelection","toString","addEventListener","removeEventListener","nodes","walker","createTreeWalker","NodeFilter","SHOW_ELEMENT","acceptNode","node","tabIndex","FILTER_ACCEPT","FILTER_SKIP","nextNode","push","currentNode","getTabbableNodes","forEach","tabbable","setAttribute","DismissableLayer","disableOutsidePointerEvents","PopperPrimitive.Content","onPointerDown","currentTarget","contains","target","WebkitUserSelect","HoverCardArrow","arrowProps","PopperPrimitive.Arrow","eventHandler","pointerType","Root2","Trigger","Portal","Content2"],"mappings":"6xBAeA,IAAIA,EACAC,EAAiB,aAChBC,EAAwBC,GAAwBC,EAAmBH,EAAgB,CACtFI,IAEEC,EAAiBD,KAChBE,EAAmBC,GAAuBN,EAAuBD,GAClEQ,EAAaC,IACf,MAAMC,iBACJA,EAAgBC,SAChBA,EACAC,KAAMC,EAAQC,YACdA,EAAWC,aACXA,EAAYC,UACZA,EAAY,IAAGC,WACfA,EAAa,KACXR,EACES,EAAcb,EAAeK,GAC7BS,EAAeC,EAAMC,OAAO,GAC5BC,EAAgBF,EAAMC,OAAO,GAC7BE,EAAkBH,EAAMC,QAAO,GAC/BG,EAA4BJ,EAAMC,QAAO,IACxCT,GAAO,EAAOa,GAAWC,EAAqB,CACnDC,KAAMd,EACNe,YAAad,EACbe,SAAUd,IAENe,EAA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,EACA,IACKpG,KACA4D,EACHyC,cAAe7D,EAAqBoB,EAAayC,eAAgBvD,IAC3DA,EAAMwD,cAAcC,SAASzD,EAAM0D,SACrCnC,GAAoB,GAEtBpC,EAAQ5B,gBAAgBU,SAAU,EAClCkB,EAAQ3B,0BAA0BS,SAAU,CAAI,IAElDuB,IAAK4B,EACLO,MAAO,IACFb,EAAaa,MAChBC,WAAYN,EAAmB,YAAS,EAExCqC,iBAAkBrC,EAAmB,YAAS,EAG5C,8CAA+C,uCAC/C,6CAA8C,sCAC9C,8CAA+C,uCAC/C,mCAAoC,mCACpC,oCAAqC,wCAMhD,IAGCsC,EAAiBxG,EAAM4B,YACzB,CAACvC,EAAOwC,KACN,MAAMvC,iBAAEA,KAAqBmH,GAAepH,EACtCS,EAAcb,EAAeK,GACnC,OAAuB6B,EAAIuF,EAAuB,IAAK5G,KAAgB2G,EAAYrE,IAAKP,GAAe,IAI3G,SAASU,EAAaoE,GACpB,OAAQ/D,GAAgC,UAAtBA,EAAMgE,iBAA0B,EAASD,GAC7D,CAHAH,EAAe/E,YARE,iBAsBd,IAACoF,EAAQzH,EACR0H,EAAUnF,EACVoF,EAAS7D,EACT8D,EAAWxD"}
|
@@ -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{jsx as h,jsxs as R,Fragment as C}from"react/jsx-runtime";var E="NavigationMenu",[M,y,b]=f(E),[N,T,x]=f(E),[_,P]=n(E,[b,x]),[I,L]=_(E),[D,k]=_(E),S=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),R=s(n,(e=>g(e))),C=c(m),E=e.useRef(0),M=e.useRef(0),y=e.useRef(0),[b,N]=e.useState(!0),[T="",x]=a({prop:i,onChange:e=>{const t=f>0;""!==e?(window.clearTimeout(y.current),t&&N(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout((()=>N(!0)),f)),u?.(e)},defaultProp:l}),_=e.useCallback((()=>{window.clearTimeout(M.current),M.current=window.setTimeout((()=>x("")),150)}),[x]),P=e.useCallback((e=>{window.clearTimeout(M.current),x(e)}),[x]),I=e.useCallback((e=>{T===e?window.clearTimeout(M.current):E.current=window.setTimeout((()=>{window.clearTimeout(M.current),x(e)}),d)}),[T,x,d]);return e.useEffect((()=>()=>{window.clearTimeout(E.current),window.clearTimeout(M.current),window.clearTimeout(y.current)}),[]),h(K,{scope:o,isRootMenu:!0,value:T,dir:C,orientation:v,rootNavigationMenu:w,onTriggerEnter:e=>{window.clearTimeout(E.current),b?I(e):P(e)},onTriggerLeave:()=>{window.clearTimeout(E.current),_()},onContentEnter:()=>window.clearTimeout(M.current),onContentLeave:_,onItemSelect:e=>{x((t=>t===e?"":e))},onItemDismiss:()=>x(""),children:h(r.nav,{"aria-label":"Main","data-orientation":v,dir:C,...p,ref:R})})}));S.displayName=E;var A="NavigationMenuSub",F=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,value:o,onValueChange:i,defaultValue:s,orientation:u="horizontal",...c}=e,l=L(A,n),[d="",f]=a({prop:o,onChange:i,defaultProp:s});return h(K,{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:h(r.div,{"data-orientation":u,...c,ref:t})})}));F.displayName=A;var K=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,[R,C]=e.useState(null),[E,y]=e.useState(new Map),[b,N]=e.useState(null);return h(I,{scope:n,isRootMenu:o,rootNavigationMenu:r,value:u,previousValue:m(u),baseId:d(),dir:i,orientation:a,viewport:R,onViewportChange:C,indicatorTrack:b,onIndicatorTrackChange:N,onTriggerEnter:w(f),onTriggerLeave:w(v),onContentEnter:w(p),onContentLeave:w(g),onItemSelect:w(c),onItemDismiss:w(l),onViewportContentChange:e.useCallback(((e,t)=>{y((n=>(n.set(e,t),new Map(n))))}),[]),onViewportContentRemove:e.useCallback((e=>{y((t=>t.has(e)?(t.delete(e),new Map(t)):t))}),[]),children:h(M.Provider,{scope:n,children:h(D,{scope:n,items:E,children:s})})})},O="NavigationMenuList",V=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,i=L(O,n),a=h(r.ul,{"data-orientation":i.orientation,...o,ref:t});return h(r.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:h(M.Slot,{scope:n,children:i.isRootMenu?h(ie,{asChild:!0,children:a}):a})})}));V.displayName=O;var j="NavigationMenuItem",[z,$]=_(j),U=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=ue(c.current);t.length&&ce("start"===e?t:t.reverse())}}),[]),w=e.useCallback((()=>{if(c.current){const e=ue(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 h(z,{scope:o,value:u,triggerRef:l,contentRef:c,focusProxyRef:f,wasEscapeCloseRef:m,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:w,onContentFocusOutside:w,children:h(r.li,{...a,ref:n})})}));U.displayName=j;var B="NavigationMenuTrigger",H=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:i,disabled:a,...u}=t,c=L(B,t.__scopeNavigationMenu),l=$(B,t.__scopeNavigationMenu),d=e.useRef(null),f=s(d,l.triggerRef,n),v=fe(c.baseId,l.value),m=ve(c.baseId,l.value),p=e.useRef(!1),w=e.useRef(!1),E=l.value===c.value;return R(C,{children:[h(M.ItemSlot,{scope:i,value:l.value,children:h(se,{asChild:!0,children:h(r.button,{id:v,disabled:a,"data-disabled":a?"":void 0,"data-state":de(E),"aria-expanded":E,"aria-controls":m,...u,ref:f,onPointerEnter:o(t.onPointerEnter,(()=>{w.current=!1,l.wasEscapeCloseRef.current=!1})),onPointerMove:o(t.onPointerMove,me((()=>{a||w.current||l.wasEscapeCloseRef.current||p.current||(c.onTriggerEnter(l.value),p.current=!0)}))),onPointerLeave:o(t.onPointerLeave,me((()=>{a||(c.onTriggerLeave(),p.current=!1)}))),onClick:o(t.onClick,(()=>{c.onItemSelect(l.value),w.current=E})),onKeyDown:o(t.onKeyDown,(e=>{const t={horizontal:"ArrowDown",vertical:"rtl"===c.dir?"ArrowLeft":"ArrowRight"}[c.orientation];E&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())}))})})}),E&&R(C,{children:[h(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&&h("span",{"aria-owns":m})]})]})}));H.displayName=B;var W="navigationMenu.linkSelect",G=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,active:a,onSelect:s,...u}=e;return h(se,{asChild:!0,children:h(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(W,{bubbles:!0,cancelable:!0});if(t.addEventListener(W,(e=>s?.(e)),{once:!0}),i(t,n),!n.defaultPrevented&&!e.metaKey){const e=new CustomEvent(ee,{bubbles:!0,cancelable:!0});i(t,e)}}),{checkForDefaultPrevented:!1})})})}));G.displayName="NavigationMenuLink";var Y="NavigationMenuIndicator",q=e.forwardRef(((e,n)=>{const{forceMount:o,...r}=e,i=L(Y,e.__scopeNavigationMenu),a=Boolean(i.value);return i.indicatorTrack?t.createPortal(h(l,{present:o||a,children:h(X,{...r,ref:n})}),i.indicatorTrack):null}));q.displayName=Y;var X=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:o,...i}=t,a=L(Y,o),s=y(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 le(u,m),le(a.indicatorTrack,m),l?h(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})),J="NavigationMenuContent",Q=e.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,i=L(J,e.__scopeNavigationMenu),a=$(J,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?h(Z,{forceMount:n,...d,ref:u}):h(l,{present:n||c,children:h(te,{"data-state":de(c),...d,ref:u,onPointerEnter:o(e.onPointerEnter,i.onContentEnter),onPointerLeave:o(e.onPointerLeave,me(i.onContentLeave)),style:{pointerEvents:!c&&i.isRootMenu?"none":void 0,...d.style}})})}));Q.displayName=J;var Z=e.forwardRef(((e,t)=>{const n=L(J,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})),ee="navigationMenu.rootContentDismiss",te=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:a,focusProxyRef:u,wasEscapeCloseRef:c,onRootContentClose:l,onContentFocusOutside:d,...f}=t,m=L(J,r),p=e.useRef(null),w=s(p,n),g=fe(m.baseId,i),R=ve(m.baseId,i),C=y(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(ee,t),()=>e.removeEventListener(ee,t)}}),[m.isRootMenu,t.value,a,M,l]);const b=e.useMemo((()=>{const e=C().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,C,i]);return h(ie,{asChild:!0,children:h(v,{id:R,"aria-labelledby":g,"data-motion":b,"data-orientation":m.orientation,...f,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{const e=new Event(ee,{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=C().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=ue(e.currentTarget),n=document.activeElement,o=t.findIndex((e=>e===n));ce(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}))})})})),ne="NavigationMenuViewport",oe=e.forwardRef(((e,t)=>{const{forceMount:n,...o}=e,r=L(ne,e.__scopeNavigationMenu),i=Boolean(r.value);return h(l,{present:n||i,children:h(re,{...o,ref:t})})}));oe.displayName=ne;var re=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:i,children:a,...c}=t,d=L(ne,i),f=s(n,d.onViewportChange),v=k(J,t.__scopeNavigationMenu),[m,p]=e.useState(null),[w,g]=e.useState(null),R=m?m?.width+"px":void 0,C=m?m?.height+"px":void 0,E=Boolean(d.value),M=E?d.value:d.previousValue;return le(w,(()=>{w&&p({width:w.offsetWidth,height:w.offsetHeight})})),h(r.div,{"data-state":de(E),"data-orientation":d.orientation,...c,ref:f,style:{pointerEvents:!E&&d.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":R,"--radix-navigation-menu-viewport-height":C,...c.style},onPointerEnter:o(t.onPointerEnter,d.onContentEnter),onPointerLeave:o(t.onPointerLeave,me(d.onContentLeave)),children:Array.from(v.items).map((([e,{ref:t,forceMount:n,...o}])=>{const r=M===e;return h(l,{present:n||r,children:h(te,{...o,ref:u(t,(e=>{r&&e&&g(e)}))})},e)}))})})),ie=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,i=L("FocusGroup",n);return h(N.Provider,{scope:n,children:h(N.Slot,{scope:n,children:h(r.div,{dir:i.dir,...o,ref:t})})})})),ae=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],se=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,...i}=e,a=T(n),s=L("FocusGroupItem",n);return h(N.ItemSlot,{scope:n,children:h(r.button,{...i,ref:t,onKeyDown:o(e.onKeyDown,(e=>{if(["Home","End",...ae].includes(e.key)){let t=a().map((e=>e.ref.current));if(["rtl"===s.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),ae.includes(e.key)){const n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout((()=>ce(t))),e.preventDefault()}}))})})}));function ue(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 ce(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}function le(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 de(e){return e?"open":"closed"}function fe(e,t){return`${e}-trigger-${t}`}function ve(e,t){return`${e}-content-${t}`}function me(e){return t=>"mouse"===t.pointerType?e(t):void 0}var pe=S,we=V,ge=U,he=G;export{ge as Item,he as Link,we as List,S as NavigationMenu,Q as NavigationMenuContent,q as NavigationMenuIndicator,U as NavigationMenuItem,G as NavigationMenuLink,V as NavigationMenuList,F as NavigationMenuSub,H as NavigationMenuTrigger,oe as NavigationMenuViewport,pe as Root,P as createNavigationMenuScope};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/themes/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","Link"],"mappings":"8uCAoBA,IAAIA,EAAuB,kBACtBC,EAAYC,EAAeC,GAAyBC,EAAiBJ,IACrEK,EAAsBC,EAAyBC,GAAmCH,EAAiBJ,IACnGQ,EAA6BC,GAA6BC,EAC7DV,EACA,CAACG,EAAuBI,KAErBI,EAA4BC,GAA4BJ,EAA4BR,IACpFa,EAAyBC,GAA6BN,EAA4BR,GACnFe,EAAiBC,EAAMC,YACzB,CAACC,EAAOC,KACN,MAAMC,sBACJA,EACAC,MAAOC,EAASC,cAChBA,EAAaC,aACbA,EAAYC,cACZA,EAAgB,IAAGC,kBACnBA,EAAoB,IAAGC,YACvBA,EAAc,aAAYC,IAC1BA,KACGC,GACDX,GACGY,EAAgBC,GAAqBf,EAAMgB,SAAS,MACrDC,EAAcC,EAAgBf,GAAegB,GAASJ,EAAkBI,KACxEC,EAAYC,EAAaT,GACzBU,EAAetB,EAAMuB,OAAO,GAC5BC,EAAgBxB,EAAMuB,OAAO,GAC7BE,EAAoBzB,EAAMuB,OAAO,IAChCG,EAAeC,GAAoB3B,EAAMgB,UAAS,IAClDX,EAAQ,GAAIuB,GAAYC,EAAqB,CAClDC,KAAMxB,EACNyB,SAAWC,IACT,MACMC,EAAuBvB,EAAoB,EADvB,KAAXsB,GAGbE,OAAOC,aAAaV,EAAkBW,SAClCH,GAAsBN,GAAiB,KAE3CO,OAAOC,aAAaV,EAAkBW,SACtCX,EAAkBW,QAAUF,OAAOG,YACjC,IAAMV,GAAiB,IACvBjB,IAGJH,IAAgByB,EAAO,EAEzBM,YAAa9B,IAET+B,EAAkBvC,EAAMwC,aAAY,KACxCN,OAAOC,aAAaX,EAAcY,SAClCZ,EAAcY,QAAUF,O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