@lotte-innovate/ui-component-test 0.1.93 → 0.1.94
Sign up to get free protection for your applications and to get access to all the features.
- 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/color/alpha.mjs.map +1 -1
- package/dist/lib/color/constants.mjs.map +1 -1
- package/dist/lib/color/light.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.mjs.map +1 -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.map +1 -1
- package/dist/lib/components/BarChart/index.mjs.map +1 -1
- package/dist/lib/components/BubbleChart/index.mjs.map +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.map +1 -1
- package/dist/lib/components/Callout/index.mjs.map +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.map +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.mjs.map +1 -1
- 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.mjs.map +1 -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.mjs.map +1 -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.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.mjs.map +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.mjs.map +1 -1
- 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.mjs.map +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.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.mjs.map +1 -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.mjs.map +1 -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.mjs.map +1 -1
- 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.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.mjs.map +1 -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.mjs.map +1 -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.mjs.map +1 -1
- 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.mjs.map +1 -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.mjs.map +1 -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.mjs.map +1 -1
- package/dist/lib/tailwind.config.d.ts +3 -0
- package/dist/lib/tsconfig.tsbuildinfo +1 -0
- package/dist/lib/utils/useDarkMode.mjs.map +1 -1
- package/dist/lib/utils/utils.mjs.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/node_modules/@radix-ui/number/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/number/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/primitive/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-context/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-context/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dialog/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-presence/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-presence/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-context/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-context/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-menu/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-menu/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-portal/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-portal/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-presence/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-presence/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-id/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-label/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-context/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-context/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-context/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-context/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-toggle-group/node_modules/@radix-ui/react-context/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-toggle-group/node_modules/@radix-ui/react-context/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-checkbox.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-checkbox.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-radio.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-radio.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-tab-list.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-tab-list.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/inert.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/inert.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/require-react-element.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/require-react-element.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/color.prop.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/color.prop.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/gap.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/gap.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/height.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/height.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/margin.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/margin.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/padding.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/padding.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/prop-def.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/prop-def.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/width.props.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/width.props.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-checkbox/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-checkbox/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-context/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-context/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dialog/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-hover-card/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-hover-card/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-portal/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-portal/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-presence/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-presence/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-radio-group/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-radio-group/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-select/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-select/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-slider/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-slider/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-switch/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-switch/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tabs/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tabs/dist/index.mjs.map +0 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tooltip/dist/index.mjs +0 -2
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +0 -1
- package/dist/node_modules/chart.js/dist/chart.mjs +0 -8
- package/dist/node_modules/chart.js/dist/chart.mjs.map +0 -1
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.mjs +0 -8
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.mjs.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-portal/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/portal/src/Portal.tsx\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\nexport {\n Portal,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Portal","React","forwardRef","props","forwardedRef","container","containerProp","portalProps","mounted","setMounted","useState","useLayoutEffect","globalThis","document","body","ReactDOM","createPortal","jsx","Primitive","div","ref","displayName"],"mappings":"yOAQA,IACIA,EAASC,EAAMC,YAAW,CAACC,EAAOC,KACpC,MAAQC,UAAWC,KAAkBC,GAAgBJ,GAC9CK,EAASC,GAAcR,EAAMS,UAAS,GAC7CC,GAAgB,IAAMF,GAAW,IAAO,IACxC,MAAMJ,EAAYC,GAAiBE,GAAWI,YAAYC,UAAUC,KACpE,OAAOT,EAAYU,EAASC,aAA6BC,EAAIC,EAAUC,IAAK,IAAKZ,EAAaa,IAAKhB,IAAiBC,GAAa,IAAI,IAEvIL,EAAOqB,YARW"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import{useComposedRefs as n}from"../../react-compose-refs/dist/index.mjs";import{useLayoutEffect as t}from"../../react-use-layout-effect/dist/index.mjs";var r=r=>{const{present:i,children:u}=r,s=function(n){const[r,i]=e.useState(),u=e.useRef({}),s=e.useRef(n),a=e.useRef("none"),c=n?"mounted":"unmounted",[m,d]=function(n,t){return e.useReducer(((e,n)=>t[e][n]??e),n)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=o(u.current);a.current="mounted"===m?e:"none"}),[m]),t((()=>{const e=u.current,t=s.current;if(t!==n){const r=a.current,i=o(e);if(n)d("MOUNT");else if("none"===i||"none"===e?.display)d("UNMOUNT");else{d(t&&r!==i?"ANIMATION_OUT":"UNMOUNT")}s.current=n}}),[n,d]),t((()=>{if(r){let e;const n=r.ownerDocument.defaultView??window,t=t=>{const i=o(u.current).includes(t.animationName);if(t.target===r&&i&&(d("ANIMATION_END"),!s.current)){const t=r.style.animationFillMode;r.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=t)}))}},i=e=>{e.target===r&&(a.current=o(u.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",t),r.addEventListener("animationend",t),()=>{n.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",t),r.removeEventListener("animationend",t)}}d("ANIMATION_END")}),[r,d]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:e.useCallback((e=>{e&&(u.current=getComputedStyle(e)),i(e)}),[])}}(i),a="function"==typeof u?u({present:s.isPresent}):e.Children.only(u),c=n(s.ref,function(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;if(t)return e.ref;if(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof u||s.isPresent?e.cloneElement(a,{ref:c}):null};function o(e){return e?.animationName||"none"}r.displayName="Presence";export{r as Presence};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/presence/src/Presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/useStateMachine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/Presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Presence\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Presence","props","present","children","presence","node","setNode","React2","useState","stylesRef","useRef","prevPresentRef","prevAnimationNameRef","initialState","state","send","machine","React","useReducer","event","useStateMachine","mounted","UNMOUNT","ANIMATION_OUT","unmountSuspended","MOUNT","ANIMATION_END","unmounted","useEffect","currentAnimationName","getAnimationName","current","useLayoutEffect","styles","wasPresent","prevAnimationName","display","timeoutId","ownerWindow","ownerDocument","defaultView","window","handleAnimationEnd","isCurrentAnimation","includes","animationName","target","currentFillMode","style","animationFillMode","setTimeout","handleAnimationStart","addEventListener","clearTimeout","removeEventListener","isPresent","ref","useCallback","node2","getComputedStyle","usePresence","child","Children","only","useComposedRefs","element","getter","Object","getOwnPropertyDescriptor","get","mayWarn","isReactWarning","getElementRef","cloneElement","displayName"],"mappings":"iLAiBG,IAACA,EAAYC,IACd,MAAMC,QAAEA,EAAOC,SAAEA,GAAaF,EACxBG,EAOR,SAAqBF,GACnB,MAAOG,EAAMC,GAAWC,EAAOC,WACzBC,EAAYF,EAAOG,OAAO,CAAE,GAC5BC,EAAiBJ,EAAOG,OAAOR,GAC/BU,EAAuBL,EAAOG,OAAO,QACrCG,EAAeX,EAAU,UAAY,aACpCY,EAAOC,GAvBhB,SAAyBF,EAAcG,GACrC,OAAOC,EAAMC,YAAW,CAACJ,EAAOK,IACZH,EAAQF,GAAOK,IACbL,GACnBD,EACL,CAkBwBO,CAAgBP,EAAc,CAClDQ,QAAS,CACPC,QAAS,YACTC,cAAe,oBAEjBC,iBAAkB,CAChBC,MAAO,UACPC,cAAe,aAEjBC,UAAW,CACTF,MAAO,aAmEX,OAhEAlB,EAAOqB,WAAU,KACf,MAAMC,EAAuBC,EAAiBr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EAAMU,IACH,CACLwC,UAAW,CAAC,UAAW,oBAAoBX,SAAS9B,GACpD0C,IAAKjD,EAAOkD,aAAaC,IACnBA,IAAOjD,EAAUsB,QAAU4B,iBAAiBD,IAChDpD,EAAQoD,EAAM,GACb,IAEP,CAjGmBE,CAAY1D,GACvB2D,EAA4B,mBAAb1D,EAA0BA,EAAS,CAAED,QAASE,EAASmD,YAAehD,EAAOuD,SAASC,KAAK5D,GAC1GqD,EAAMQ,EAAgB5D,EAASoD,IAmGvC,SAAuBS,GACrB,IAAIC,EAASC,OAAOC,yBAAyBH,EAAQhE,MAAO,QAAQoE,IAChEC,EAAUJ,GAAU,mBAAoBA,GAAUA,EAAOK,eAC7D,GAAID,EACF,OAAOL,EAAQT,IAIjB,GAFAU,EAASC,OAAOC,yBAAyBH,EAAS,QAAQI,IAC1DC,EAAUJ,GAAU,mBAAoBA,GAAUA,EAAOK,eACrDD,EACF,OAAOL,EAAQhE,MAAMuD,IAEvB,OAAOS,EAAQhE,MAAMuD,KAAOS,EAAQT,GACtC,CA/G4CgB,CAAcX,IAExD,MADuC,mBAAb1D,GACLC,EAASmD,UAAYhD,EAAOkE,aAAaZ,EAAO,CAAEL,QAAS,IAAI,EA8FtF,SAAS1B,EAAiBG,GACxB,OAAOA,GAAQY,eAAiB,MAClC,CA9FA7C,EAAS0E,YAAc"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as r from"react";import*as t from"react-dom";import{Slot as i}from"../../react-slot/dist/index.mjs";import{jsx as o}from"react/jsx-runtime";var e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,e)=>{const n=r.forwardRef(((r,t)=>{const{asChild:n,...a}=r,m=n?i:e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),o(m,{...a,ref:t})}));return n.displayName=`Primitive.${e}`,{...t,[e]:n}}),{});function n(r,i){r&&t.flushSync((()=>r.dispatchEvent(i)))}export{e as Primitive,n as dispatchDiscreteCustomEvent};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// packages/react/primitive/src/Primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Primitive","reduce","primitive","node","Node","React","forwardRef","props","forwardedRef","asChild","primitiveProps","Comp","Slot","window","Symbol","for","jsx","ref","displayName","dispatchDiscreteCustomEvent","target","event","ReactDOM","flushSync","dispatchEvent"],"mappings":"mJAKA,IAkBIA,EAlBQ,CACV,IACA,SACA,MACA,OACA,KACA,KACA,MACA,QACA,QACA,KACA,MACA,KACA,IACA,OACA,MACA,MAEoBC,QAAO,CAACC,EAAWC,KACvC,MAAMC,EAAOC,EAAMC,YAAW,CAACC,EAAOC,KACpC,MAAMC,QAAEA,KAAYC,GAAmBH,EACjCI,EAAOF,EAAUG,EAAOT,EAI9B,MAHsB,oBAAXU,SACTA,OAAOC,OAAOC,IAAI,cAAe,GAEZC,EAAIL,EAAM,IAAKD,EAAgBO,IAAKT,GAAe,IAG5E,OADAJ,EAAKc,YAAc,aAAaf,IACzB,IAAKD,EAAWC,CAACA,GAAOC,EAAM,GACpC,IACH,SAASe,EAA4BC,EAAQC,GACvCD,GAAQE,EAASC,WAAU,IAAMH,EAAOI,cAAcH,IAC5D"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import{createContextScope as r}from"../node_modules/@radix-ui/react-context/dist/index.mjs";import{Primitive as a}from"../../react-primitive/dist/index.mjs";import{jsx as t}from"react/jsx-runtime";var o="Progress",n=100,[i,s]=r(o),[u,l]=i(o),d=e.forwardRef(((e,r)=>{const{__scopeProgress:o,value:i=null,max:s,getValueLabel:l=p,...d}=e;!s&&0!==s||x(s)||console.error(`Invalid prop \`max\` of value \`${`${s}`}\` supplied to \`${"Progress"}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`);const m=x(s)?s:n;null===i||g(i,m)||console.error(function(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)\n - \`null\` or \`undefined\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}(`${i}`,"Progress"));const v=g(i,m)?i:null,h=c(v)?l(v,m):void 0;return t(u,{scope:o,value:v,max:m,children:t(a.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":c(v)?v:void 0,"aria-valuetext":h,role:"progressbar","data-state":f(v,m),"data-value":v??void 0,"data-max":m,...d,ref:r})})}));d.displayName=o;var m="ProgressIndicator",v=e.forwardRef(((e,r)=>{const{__scopeProgress:o,...n}=e,i=l(m,o);return t(a.div,{"data-state":f(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...n,ref:r})}));function p(e,r){return`${Math.round(e/r*100)}%`}function f(e,r){return null==e?"indeterminate":e===r?"complete":"loading"}function c(e){return"number"==typeof e}function x(e){return c(e)&&!isNaN(e)&&e>0}function g(e,r){return c(e)&&!isNaN(e)&&e<=r&&e>=0}v.displayName=m;var h=d,$=v;export{$ as Indicator,d as Progress,v as ProgressIndicator,h as Root,s as createProgressScope};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-progress/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/progress/src/Progress.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PROGRESS_NAME = \"Progress\";\nvar DEFAULT_MAX = 100;\nvar [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);\nvar [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);\nvar Progress = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeProgress,\n value: valueProp = null,\n max: maxProp,\n getValueLabel = defaultGetValueLabel,\n ...progressProps\n } = props;\n if ((maxProp || maxProp === 0) && !isValidMaxNumber(maxProp)) {\n console.error(getInvalidMaxError(`${maxProp}`, \"Progress\"));\n }\n const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;\n if (valueProp !== null && !isValidValueNumber(valueProp, max)) {\n console.error(getInvalidValueError(`${valueProp}`, \"Progress\"));\n }\n const value = isValidValueNumber(valueProp, max) ? valueProp : null;\n const valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;\n return /* @__PURE__ */ jsx(ProgressProvider, { scope: __scopeProgress, value, max, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"aria-valuemax\": max,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": isNumber(value) ? value : void 0,\n \"aria-valuetext\": valueLabel,\n role: \"progressbar\",\n \"data-state\": getProgressState(value, max),\n \"data-value\": value ?? void 0,\n \"data-max\": max,\n ...progressProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nProgress.displayName = PROGRESS_NAME;\nvar INDICATOR_NAME = \"ProgressIndicator\";\nvar ProgressIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeProgress, ...indicatorProps } = props;\n const context = useProgressContext(INDICATOR_NAME, __scopeProgress);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getProgressState(context.value, context.max),\n \"data-value\": context.value ?? void 0,\n \"data-max\": context.max,\n ...indicatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nProgressIndicator.displayName = INDICATOR_NAME;\nfunction defaultGetValueLabel(value, max) {\n return `${Math.round(value / max * 100)}%`;\n}\nfunction getProgressState(value, maxValue) {\n return value == null ? \"indeterminate\" : value === maxValue ? \"complete\" : \"loading\";\n}\nfunction isNumber(value) {\n return typeof value === \"number\";\n}\nfunction isValidMaxNumber(max) {\n return isNumber(max) && !isNaN(max) && max > 0;\n}\nfunction isValidValueNumber(value, max) {\n return isNumber(value) && !isNaN(value) && value <= max && value >= 0;\n}\nfunction getInvalidMaxError(propValue, componentName) {\n return `Invalid prop \\`max\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. Only numbers greater than 0 are valid max values. Defaulting to \\`${DEFAULT_MAX}\\`.`;\n}\nfunction getInvalidValueError(propValue, componentName) {\n return `Invalid prop \\`value\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. The \\`value\\` prop must be:\n - a positive number\n - less than the value passed to \\`max\\` (or ${DEFAULT_MAX} if no \\`max\\` prop is set)\n - \\`null\\` or \\`undefined\\` if the progress is indeterminate.\n\nDefaulting to \\`null\\`.`;\n}\nvar Root = Progress;\nvar Indicator = ProgressIndicator;\nexport {\n Indicator,\n Progress,\n ProgressIndicator,\n Root,\n createProgressScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["PROGRESS_NAME","DEFAULT_MAX","createProgressContext","createProgressScope","createContextScope","ProgressProvider","useProgressContext","Progress","React","forwardRef","props","forwardedRef","__scopeProgress","value","valueProp","max","maxProp","getValueLabel","defaultGetValueLabel","progressProps","isValidMaxNumber","console","error","isValidValueNumber","propValue","componentName","getInvalidValueError","valueLabel","isNumber","jsx","scope","children","Primitive","div","role","getProgressState","ref","displayName","INDICATOR_NAME","ProgressIndicator","indicatorProps","context","Math","round","maxValue","isNaN","Root","Indicator"],"mappings":"6NAOA,IAAIA,EAAgB,WAChBC,EAAc,KACbC,EAAuBC,GAAuBC,EAAmBJ,IACjEK,EAAkBC,GAAsBJ,EAAsBF,GAC/DO,EAAWC,EAAMC,YACnB,CAACC,EAAOC,KACN,MAAMC,gBACJA,EACAC,MAAOC,EAAY,KACnBC,IAAKC,EAAOC,cACZA,EAAgBC,KACbC,GACDT,GACCM,GAAuB,IAAZA,GAAmBI,EAAiBJ,IAClDK,QAAQC,MA4DL,mCA5D8B,GAAGN,uBAAW,0FAEjD,MAAMD,EAAMK,EAAiBJ,GAAWA,EAAUf,EAChC,OAAda,GAAuBS,EAAmBT,EAAWC,IACvDM,QAAQC,MA0Dd,SAA8BE,EAAWC,GACvC,MAAO,qCAAqCD,qBAA6BC,mOAM3E,CAjEoBC,CAAqB,GAAGZ,IAAa,aAErD,MAAMD,EAAQU,EAAmBT,EAAWC,GAAOD,EAAY,KACzDa,EAAaC,EAASf,GAASI,EAAcJ,EAAOE,QAAO,EACjE,OAAuBc,EAAIxB,EAAkB,CAAEyB,MAAOlB,EAAiBC,QAAOE,MAAKgB,SAA0BF,EAC3GG,EAAUC,IACV,CACE,gBAAiBlB,EACjB,gBAAiB,EACjB,gBAAiBa,EAASf,GAASA,OAAQ,EAC3C,iBAAkBc,EAClBO,KAAM,cACN,aAAcC,EAAiBtB,EAAOE,GACtC,aAAcF,QAAS,EACvB,WAAYE,KACTI,EACHiB,IAAKzB,KAEL,IAGRJ,EAAS8B,YAAcrC,EACvB,IAAIsC,EAAiB,oBACjBC,EAAoB/B,EAAMC,YAC5B,CAACC,EAAOC,KACN,MAAMC,gBAAEA,KAAoB4B,GAAmB9B,EACzC+B,EAAUnC,EAAmBgC,EAAgB1B,GACnD,OAAuBiB,EACrBG,EAAUC,IACV,CACE,aAAcE,EAAiBM,EAAQ5B,MAAO4B,EAAQ1B,KACtD,aAAc0B,EAAQ5B,YAAS,EAC/B,WAAY4B,EAAQ1B,OACjByB,EACHJ,IAAKzB,GAER,IAIL,SAASO,EAAqBL,EAAOE,GACnC,MAAO,GAAG2B,KAAKC,MAAM9B,EAAQE,EAAM,OACrC,CACA,SAASoB,EAAiBtB,EAAO+B,GAC/B,OAAgB,MAAT/B,EAAgB,gBAAkBA,IAAU+B,EAAW,WAAa,SAC7E,CACA,SAAShB,EAASf,GAChB,MAAwB,iBAAVA,CAChB,CACA,SAASO,EAAiBL,GACxB,OAAOa,EAASb,KAAS8B,MAAM9B,IAAQA,EAAM,CAC/C,CACA,SAASQ,EAAmBV,EAAOE,GACjC,OAAOa,EAASf,KAAWgC,MAAMhC,IAAUA,GAASE,GAAOF,GAAS,CACtE,CAfA0B,EAAkBF,YAAcC,EA2B7B,IAACQ,EAAOvC,EACPwC,EAAYR"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import{jsx as t}from"react/jsx-runtime";function o(o,r=[]){let c=[];const s=()=>{const t=c.map((t=>e.createContext(t)));return function(n){const r=n?.[o]||t;return e.useMemo((()=>({[`__scope${o}`]:{...n,[o]:r}})),[n,r])}};return s.scopeName=o,[function(n,r){const s=e.createContext(r),u=c.length;function i(n){const{scope:r,children:c,...i}=n,m=r?.[o][u]||s,p=e.useMemo((()=>i),Object.values(i));return t(m.Provider,{value:p,children:c})}return c=[...c,r],i.displayName=n+"Provider",[i,function(t,c){const i=c?.[o][u]||s,m=e.useContext(i);if(m)return m;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},n(s,...r)]}function n(...t){const o=t[0];if(1===t.length)return o;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const r=n.reduce(((e,{useScope:o,scopeName:n})=>({...e,...o(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${o.scopeName}`]:r})),[r])}};return n.scopeName=o.scopeName,n}export{o as createContextScope};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/react-progress/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":["createContextScope","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","map","defaultContext","React","createContext","scope","contexts","useMemo","rootComponentName","BaseContext","index","length","Provider","props","children","context","Context","value","Object","values","jsx","displayName","consumerName","useContext","Error","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","useScope","overrideScopes","nextScopes","reduce","nextScopes2"],"mappings":"gEAmBA,SAASA,EAAmBC,EAAWC,EAAyB,IAC9D,IAAIC,EAAkB,GAqBtB,MAAMC,EAAc,KAClB,MAAMC,EAAgBF,EAAgBG,KAAKC,GAClCC,EAAMC,cAAcF,KAE7B,OAAO,SAAkBG,GACvB,MAAMC,EAAWD,IAAQT,IAAcI,EACvC,OAAOG,EAAMI,SACX,KAAA,CAAS,CAAC,UAAUX,KAAc,IAAKS,EAAOT,CAACA,GAAYU,MAC3D,CAACD,EAAOC,GAEhB,CAAK,EAGH,OADAP,EAAYH,UAAYA,EACjB,CAjCP,SAAwBY,EAAmBN,GACzC,MAAMO,EAAcN,EAAMC,cAAcF,GAClCQ,EAAQZ,EAAgBa,OAE9B,SAASC,EAASC,GAChB,MAAMR,MAAEA,EAAKS,SAAEA,KAAaC,GAAYF,EAClCG,EAAUX,IAAQT,GAAWc,IAAUD,EACvCQ,EAAQd,EAAMI,SAAQ,IAAMQ,GAASG,OAAOC,OAAOJ,IACzD,OAAuBK,EAAIJ,EAAQJ,SAAU,CAAEK,QAAOH,YACvD,CASD,OAfAhB,EAAkB,IAAIA,EAAiBI,GAcvCU,EAASS,YAAcb,EAAoB,WACpC,CAACI,EARR,SAAqBU,EAAcjB,GACjC,MAAMW,EAAUX,IAAQT,GAAWc,IAAUD,EACvCM,EAAUZ,EAAMoB,WAAWP,GACjC,GAAID,EAAS,OAAOA,EACpB,QAAuB,IAAnBb,EAA2B,OAAOA,EACtC,MAAM,IAAIsB,MAAM,KAAKF,6BAAwCd,MAC9D,EAGF,EAcuBiB,EAAqB1B,KAAgBF,GAC/D,CACA,SAAS4B,KAAwBC,GAC/B,MAAMC,EAAYD,EAAO,GACzB,GAAsB,IAAlBA,EAAOf,OAAc,OAAOgB,EAChC,MAAM5B,EAAc,KAClB,MAAM6B,EAAaF,EAAOzB,KAAK4B,IAAkB,CAC/CC,SAAUD,IACVjC,UAAWiC,EAAajC,cAE1B,OAAO,SAA2BmC,GAChC,MAAMC,EAAaJ,EAAWK,QAAO,CAACC,GAAeJ,WAAUlC,gBAGtD,IAAKsC,KAFOJ,EAASC,GACI,UAAUnC,QAEzC,CAAE,GACL,OAAOO,EAAMI,SAAQ,MAAS,CAAC,UAAUoB,EAAU/B,aAAcoC,KAAe,CAACA,GACvF,CAAK,EAGH,OADAjC,EAAYH,UAAY+B,EAAU/B,UAC3BG,CACT"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import{composeEventHandlers as o}from"../../primitive/dist/index.mjs";import{createCollection as r}from"../../react-collection/dist/index.mjs";import{useComposedRefs as t}from"../../react-compose-refs/dist/index.mjs";import{createContextScope as n}from"../node_modules/@radix-ui/react-context/dist/index.mjs";import{useId as i}from"../../react-id/dist/index.mjs";import{Primitive as s}from"../../react-primitive/dist/index.mjs";import{useCallbackRef as c}from"../../react-use-callback-ref/dist/index.mjs";import{useControllableState as a}from"../../react-use-controllable-state/dist/index.mjs";import{useDirection as u}from"../../react-direction/dist/index.mjs";import{jsx as l}from"react/jsx-runtime";var f="rovingFocusGroup.onEntryFocus",d={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[p,v,b]=r(m),[w,g]=n(m,[b]),[F,x]=w(m),I=e.forwardRef(((e,o)=>l(p.Provider,{scope:e.__scopeRovingFocusGroup,children:l(p.Slot,{scope:e.__scopeRovingFocusGroup,children:l(h,{...e,ref:o})})})));I.displayName=m;var h=e.forwardRef(((r,n)=>{const{__scopeRovingFocusGroup:i,orientation:m,loop:p=!1,dir:b,currentTabStopId:w,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:x,onEntryFocus:I,preventScrollOnEntryFocus:h=!1,...R}=r,y=e.useRef(null),A=t(n,y),T=u(b),[E=null,D]=a({prop:w,defaultProp:g,onChange:x}),[j,C]=e.useState(!1),_=c(I),k=v(i),G=e.useRef(!1),[K,L]=e.useState(0);return e.useEffect((()=>{const e=y.current;if(e)return e.addEventListener(f,_),()=>e.removeEventListener(f,_)}),[_]),l(F,{scope:i,orientation:m,dir:T,loop:p,currentTabStopId:E,onItemFocus:e.useCallback((e=>D(e)),[D]),onItemShiftTab:e.useCallback((()=>C(!0)),[]),onFocusableItemAdd:e.useCallback((()=>L((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>L((e=>e-1))),[]),children:l(s.div,{tabIndex:j||0===K?-1:0,"data-orientation":m,...R,ref:A,style:{outline:"none",...r.style},onMouseDown:o(r.onMouseDown,(()=>{G.current=!0})),onFocus:o(r.onFocus,(e=>{const o=!G.current;if(e.target===e.currentTarget&&o&&!j){const o=new CustomEvent(f,d);if(e.currentTarget.dispatchEvent(o),!o.defaultPrevented){const e=k().filter((e=>e.focusable));S([e.find((e=>e.active)),e.find((e=>e.id===E)),...e].filter(Boolean).map((e=>e.ref.current)),h)}}G.current=!1})),onBlur:o(r.onBlur,(()=>C(!1)))})})})),R="RovingFocusGroupItem",y=e.forwardRef(((r,t)=>{const{__scopeRovingFocusGroup:n,focusable:c=!0,active:a=!1,tabStopId:u,...f}=r,d=i(),m=u||d,b=x(R,n),w=b.currentTabStopId===m,g=v(n),{onFocusableItemAdd:F,onFocusableItemRemove:I}=b;return e.useEffect((()=>{if(c)return F(),()=>I()}),[c,F,I]),l(p.ItemSlot,{scope:n,id:m,focusable:c,active:a,children:l(s.span,{tabIndex:w?0:-1,"data-orientation":b.orientation,...f,ref:t,onMouseDown:o(r.onMouseDown,(e=>{c?b.onItemFocus(m):e.preventDefault()})),onFocus:o(r.onFocus,(()=>b.onItemFocus(m))),onKeyDown:o(r.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void b.onItemShiftTab();if(e.target!==e.currentTarget)return;const o=function(e,o,r){const t=function(e,o){return"rtl"!==o?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,r);return"vertical"===o&&["ArrowLeft","ArrowRight"].includes(t)||"horizontal"===o&&["ArrowUp","ArrowDown"].includes(t)?void 0:A[t]}(e,b.orientation,b.dir);if(void 0!==o){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=g().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===o)n.reverse();else if("prev"===o||"next"===o){"prev"===o&&n.reverse();const i=n.indexOf(e.currentTarget);n=b.loop?(t=i+1,(r=n).map(((e,o)=>r[(t+o)%r.length]))):n.slice(i+1)}setTimeout((()=>S(n)))}var r,t}))})})}));y.displayName=R;var A={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function S(e,o=!1){const r=document.activeElement;for(const t of e){if(t===r)return;if(t.focus({preventScroll:o}),document.activeElement!==r)return}}var T=I,E=y;export{E as Item,T as Root,I as RovingFocusGroup,y as RovingFocusGroupItem,g as createRovingFocusGroupScope};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/roving-focus/src/RovingFocusGroup.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId = null, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId,\n onChange: onCurrentTabStopIdChange\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n })\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ENTRY_FOCUS","EVENT_OPTIONS","bubbles","cancelable","GROUP_NAME","Collection","useCollection","createCollectionScope","createCollection","createRovingFocusGroupContext","createRovingFocusGroupScope","createContextScope","RovingFocusProvider","useRovingFocusContext","RovingFocusGroup","React","forwardRef","props","forwardedRef","jsx","Provider","scope","__scopeRovingFocusGroup","children","Slot","RovingFocusGroupImpl","ref","displayName","orientation","loop","dir","currentTabStopId","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus","groupProps","useRef","composedRefs","useComposedRefs","direction","useDirection","setCurrentTabStopId","useControllableState","prop","defaultProp","onChange","isTabbingBackOut","setIsTabbingBackOut","useState","handleEntryFocus","useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","useEffect","node","current","addEventListener","removeEventListener","onItemFocus","useCallback","tabStopId","onItemShiftTab","onFocusableItemAdd","prevCount","onFocusableItemRemove","Primitive","div","tabIndex","style","outline","onMouseDown","composeEventHandlers","onFocus","event","isKeyboardFocus","target","currentTarget","entryFocusEvent","CustomEvent","dispatchEvent","defaultPrevented","items","filter","item","focusable","focusFirst","find","active","id","Boolean","map","onBlur","ITEM_NAME","RovingFocusGroupItem","itemProps","autoId","useId","context","isCurrentTabStop","ItemSlot","span","preventDefault","onKeyDown","key","shiftKey","focusIntent","getDirectionAwareKey","includes","MAP_KEY_TO_FOCUS_INTENT","getFocusIntent","metaKey","ctrlKey","altKey","candidateNodes","reverse","currentIndex","indexOf","startIndex","array","_","index","length","slice","setTimeout","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","PageUp","Home","PageDown","End","candidates","preventScroll","PREVIOUSLY_FOCUSED_ELEMENT","document","activeElement","candidate","focus","Root","Item"],"mappings":"stBAcA,IAAIA,EAAc,gCACdC,EAAgB,CAAEC,SAAS,EAAOC,YAAY,GAC9CC,EAAa,oBACZC,EAAYC,EAAeC,GAAyBC,EAAiBJ,IACrEK,EAA+BC,GAA+BC,EACjEP,EACA,CAACG,KAEEK,EAAqBC,GAAyBJ,EAA8BL,GAC7EU,EAAmBC,EAAMC,YAC3B,CAACC,EAAOC,IACiBC,EAAId,EAAWe,SAAU,CAAEC,MAAOJ,EAAMK,wBAAyBC,SAA0BJ,EAAId,EAAWmB,KAAM,CAAEH,MAAOJ,EAAMK,wBAAyBC,SAA0BJ,EAAIM,EAAsB,IAAKR,EAAOS,IAAKR,UAGxPJ,EAAiBa,YAAcvB,EAC/B,IAAIqB,EAAuBV,EAAMC,YAAW,CAACC,EAAOC,KAClD,MAAMI,wBACJA,EAAuBM,YACvBA,EAAWC,KACXA,GAAO,EAAKC,IACZA,EACAC,iBAAkBC,EAAoBC,wBACtCA,EAAuBC,yBACvBA,EAAwBC,aACxBA,EAAYC,0BACZA,GAA4B,KACzBC,GACDpB,EACES,EAAMX,EAAMuB,OAAO,MACnBC,EAAeC,EAAgBtB,EAAcQ,GAC7Ce,EAAYC,EAAaZ,IACxBC,EAAmB,KAAMY,GAAuBC,EAAqB,CAC1EC,KAAMb,EACNc,YAAab,EACbc,SAAUb,KAELc,EAAkBC,GAAuBlC,EAAMmC,UAAS,GACzDC,EAAmBC,EAAejB,GAClCkB,EAAW/C,EAAcgB,GACzBgC,EAAkBvC,EAAMuB,QAAO,IAC9BiB,EAAqBC,GAA0BzC,EAAMmC,SAAS,GAQrE,OAPAnC,EAAM0C,WAAU,KACd,MAAMC,EAAOhC,EAAIiC,QACjB,GAAID,EAEF,OADAA,EAAKE,iBAAiB5D,EAAamD,GAC5B,IAAMO,EAAKG,oBAAoB7D,EAAamD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AAMqC,SAAWrC,EAAMsC,SAAWtC,EAAMuC,QAAUvC,EAAM+B,SAAU,OACtE/B,EAAM4B,iBAEN,IAAIY,EADUhE,IAAWiC,QAAQC,GAASA,EAAKC,YACpBM,KAAKP,GAASA,EAAK7D,IAAIiC,UAClD,GAAoB,SAAhBkD,EAAwBQ,EAAeC,eACtC,GAAoB,SAAhBT,GAA0C,SAAhBA,EAAwB,CACrC,SAAhBA,GAAwBQ,EAAeC,UAC3C,MAAMC,EAAeF,EAAeG,QAAQ3C,EAAMG,eAClDqC,EAAiBhB,EAAQxE,MAwCjB4F,EAxCkDF,EAAe,GAwCxEG,EAxCyCL,GAyC7CvB,KAAI,CAAC6B,EAAGC,IAAUF,GAAOD,EAAaG,GAASF,EAAMG,WAzC4BR,EAAeS,MAAMP,EAAe,EACnH,CACDQ,YAAW,IAAMtC,EAAW4B,IAC7B,CAqCf,IAAmBK,EAAOD,CArCX,OAKV,IAGLxB,EAAqBtE,YAAcqE,EACnC,IAAIgB,EAA0B,CAC5BgB,UAAW,OACXC,QAAS,OACTC,WAAY,OACZC,UAAW,OACXC,OAAQ,QACRC,KAAM,QACNC,SAAU,OACVC,IAAK,QAYP,SAAS9C,EAAW+C,EAAYC,GAAgB,GAC9C,MAAMC,EAA6BC,SAASC,cAC5C,IAAK,MAAMC,KAAaL,EAAY,CAClC,GAAIK,IAAcH,EAA4B,OAE9C,GADAG,EAAUC,MAAM,CAAEL,kBACdE,SAASC,gBAAkBF,EAA4B,MAC5D,CACH,CAIG,IAACK,EAAOjI,EACPkI,EAAO/C"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import{jsx as t}from"react/jsx-runtime";function o(o,r=[]){let c=[];const s=()=>{const t=c.map((t=>e.createContext(t)));return function(n){const r=n?.[o]||t;return e.useMemo((()=>({[`__scope${o}`]:{...n,[o]:r}})),[n,r])}};return s.scopeName=o,[function(n,r){const s=e.createContext(r),u=c.length;function i(n){const{scope:r,children:c,...i}=n,m=r?.[o][u]||s,p=e.useMemo((()=>i),Object.values(i));return t(m.Provider,{value:p,children:c})}return c=[...c,r],i.displayName=n+"Provider",[i,function(t,c){const i=c?.[o][u]||s,m=e.useContext(i);if(m)return m;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},n(s,...r)]}function n(...t){const o=t[0];if(1===t.length)return o;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const r=n.reduce(((e,{useScope:o,scopeName:n})=>({...e,...o(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${o.scopeName}`]:r})),[r])}};return n.scopeName=o.scopeName,n}export{o as createContextScope};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/react-roving-focus/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":["createContextScope","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","map","defaultContext","React","createContext","scope","contexts","useMemo","rootComponentName","BaseContext","index","length","Provider","props","children","context","Context","value","Object","values","jsx","displayName","consumerName","useContext","Error","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","useScope","overrideScopes","nextScopes","reduce","nextScopes2"],"mappings":"gEAmBA,SAASA,EAAmBC,EAAWC,EAAyB,IAC9D,IAAIC,EAAkB,GAqBtB,MAAMC,EAAc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E,GACL,OAAOO,EAAMI,SAAQ,MAAS,CAAC,UAAUoB,EAAU/B,aAAcoC,KAAe,CAACA,GACvF,CAAK,EAGH,OADAjC,EAAYH,UAAY+B,EAAU/B,UAC3BG,CACT"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import{Primitive as r}from"../../react-primitive/dist/index.mjs";import{Presence as t}from"../node_modules/@radix-ui/react-presence/dist/index.mjs";import{createContextScope as o}from"../node_modules/@radix-ui/react-context/dist/index.mjs";import{useComposedRefs as n}from"../../react-compose-refs/dist/index.mjs";import{useCallbackRef as l}from"../../react-use-callback-ref/dist/index.mjs";import{useDirection as i}from"../../react-direction/dist/index.mjs";import{useLayoutEffect as a}from"../../react-use-layout-effect/dist/index.mjs";import{clamp as s}from"../../number/dist/index.mjs";import{composeEventHandlers as c}from"../../primitive/dist/index.mjs";import{jsx as d,jsxs as u,Fragment as p}from"react/jsx-runtime";var f="ScrollArea",[h,w]=o(f),[v,m]=h(f),b=e.forwardRef(((t,o)=>{const{__scopeScrollArea:l,type:a="hover",dir:s,scrollHideDelay:c=600,...u}=t,[p,f]=e.useState(null),[h,w]=e.useState(null),[m,b]=e.useState(null),[g,S]=e.useState(null),[y,E]=e.useState(null),[T,C]=e.useState(0),[R,P]=e.useState(0),[_,x]=e.useState(!1),[L,D]=e.useState(!1),A=n(o,(e=>f(e))),z=i(s);return d(v,{scope:l,type:a,dir:z,scrollHideDelay:c,scrollArea:p,viewport:h,onViewportChange:w,content:m,onContentChange:b,scrollbarX:g,onScrollbarXChange:S,scrollbarXEnabled:_,onScrollbarXEnabledChange:x,scrollbarY:y,onScrollbarYChange:E,scrollbarYEnabled:L,onScrollbarYEnabledChange:D,onCornerWidthChange:C,onCornerHeightChange:P,children:d(r.div,{dir:z,...u,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":T+"px","--radix-scroll-area-corner-height":R+"px",...t.style}})})}));b.displayName=f;var g="ScrollAreaViewport",S=e.forwardRef(((t,o)=>{const{__scopeScrollArea:l,children:i,nonce:a,...s}=t,c=m(g,l),f=e.useRef(null),h=n(o,f,c.onViewportChange);return u(p,{children:[d("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),d(r.div,{"data-radix-scroll-area-viewport":"",...s,ref:h,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...t.style},children:d("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})}));S.displayName=g;var y="ScrollAreaScrollbar",E=e.forwardRef(((r,t)=>{const{forceMount:o,...n}=r,l=m(y,r.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=l,s="horizontal"===r.orientation;return e.useEffect((()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)})),[s,i,a]),"hover"===l.type?d(T,{...n,ref:t,forceMount:o}):"scroll"===l.type?d(C,{...n,ref:t,forceMount:o}):"auto"===l.type?d(R,{...n,ref:t,forceMount:o}):"always"===l.type?d(P,{...n,ref:t}):null}));E.displayName=y;var T=e.forwardRef(((r,o)=>{const{forceMount:n,...l}=r,i=m(y,r.__scopeScrollArea),[a,s]=e.useState(!1);return e.useEffect((()=>{const e=i.scrollArea;let r=0;if(e){const t=()=>{window.clearTimeout(r),s(!0)},o=()=>{r=window.setTimeout((()=>s(!1)),i.scrollHideDelay)};return e.addEventListener("pointerenter",t),e.addEventListener("pointerleave",o),()=>{window.clearTimeout(r),e.removeEventListener("pointerenter",t),e.removeEventListener("pointerleave",o)}}}),[i.scrollArea,i.scrollHideDelay]),d(t,{present:n||a,children:d(R,{"data-state":a?"visible":"hidden",...l,ref:o})})})),C=e.forwardRef(((r,o)=>{const{forceMount:n,...l}=r,i=m(y,r.__scopeScrollArea),a="horizontal"===r.orientation,s=F((()=>p("SCROLL_END")),100),[u,p]=(f="hidden",h={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},e.useReducer(((e,r)=>h[e][r]??e),f));var f,h;return e.useEffect((()=>{if("idle"===u){const e=window.setTimeout((()=>p("HIDE")),i.scrollHideDelay);return()=>window.clearTimeout(e)}}),[u,i.scrollHideDelay,p]),e.useEffect((()=>{const e=i.viewport,r=a?"scrollLeft":"scrollTop";if(e){let t=e[r];const o=()=>{const o=e[r];t!==o&&(p("SCROLL"),s()),t=o};return e.addEventListener("scroll",o),()=>e.removeEventListener("scroll",o)}}),[i.viewport,a,p,s]),d(t,{present:n||"hidden"!==u,children:d(P,{"data-state":"hidden"===u?"hidden":"visible",...l,ref:o,onPointerEnter:c(r.onPointerEnter,(()=>p("POINTER_ENTER"))),onPointerLeave:c(r.onPointerLeave,(()=>p("POINTER_LEAVE")))})})})),R=e.forwardRef(((r,o)=>{const n=m(y,r.__scopeScrollArea),{forceMount:l,...i}=r,[a,s]=e.useState(!1),c="horizontal"===r.orientation,u=F((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,r=n.viewport.offsetHeight<n.viewport.scrollHeight;s(c?e:r)}}),10);return V(n.viewport,u),V(n.content,u),d(t,{present:l||a,children:d(P,{"data-state":a?"visible":"hidden",...i,ref:o})})})),P=e.forwardRef(((r,t)=>{const{orientation:o="vertical",...n}=r,l=m(y,r.__scopeScrollArea),i=e.useRef(null),a=e.useRef(0),[s,c]=e.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=M(s.viewport,s.content),p={...n,sizes:s,onSizesChange:c,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function f(e,r){return function(e,r,t,o="ltr"){const n=O(t),l=n/2,i=r||l,a=n-i,s=t.scrollbar.paddingStart+i,c=t.scrollbar.size-t.scrollbar.paddingEnd-a,d=t.content-t.viewport,u="ltr"===o?[0,d]:[-1*d,0];return j([s,c],u)(e)}(e,a.current,s,r)}return"horizontal"===o?d(_,{...p,ref:t,onThumbPositionChange:()=>{if(l.viewport&&i.current){const e=U(l.viewport.scrollLeft,s,l.dir);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollLeft=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollLeft=f(e,l.dir))}}):"vertical"===o?d(x,{...p,ref:t,onThumbPositionChange:()=>{if(l.viewport&&i.current){const e=U(l.viewport.scrollTop,s);i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollTop=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollTop=f(e))}}):null})),_=e.forwardRef(((r,t)=>{const{sizes:o,onSizesChange:l,...i}=r,a=m(y,r.__scopeScrollArea),[s,c]=e.useState(),u=e.useRef(null),p=n(t,u,a.onScrollbarXChange);return e.useEffect((()=>{u.current&&c(getComputedStyle(u.current))}),[u]),d(A,{"data-orientation":"horizontal",...i,ref:p,sizes:o,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":O(o)+"px",...r.style},onThumbPointerDown:e=>r.onThumbPointerDown(e.x),onDragScroll:e=>r.onDragScroll(e.x),onWheelScroll:(e,t)=>{if(a.viewport){const o=a.viewport.scrollLeft+e.deltaX;r.onWheelScroll(o),B(o,t)&&e.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&l({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:I(s.paddingLeft),paddingEnd:I(s.paddingRight)}})}})})),x=e.forwardRef(((r,t)=>{const{sizes:o,onSizesChange:l,...i}=r,a=m(y,r.__scopeScrollArea),[s,c]=e.useState(),u=e.useRef(null),p=n(t,u,a.onScrollbarYChange);return e.useEffect((()=>{u.current&&c(getComputedStyle(u.current))}),[u]),d(A,{"data-orientation":"vertical",...i,ref:p,sizes:o,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":O(o)+"px",...r.style},onThumbPointerDown:e=>r.onThumbPointerDown(e.y),onDragScroll:e=>r.onDragScroll(e.y),onWheelScroll:(e,t)=>{if(a.viewport){const o=a.viewport.scrollTop+e.deltaY;r.onWheelScroll(o),B(o,t)&&e.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&l({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:I(s.paddingTop),paddingEnd:I(s.paddingBottom)}})}})})),[L,D]=h(y),A=e.forwardRef(((t,o)=>{const{__scopeScrollArea:i,sizes:a,hasThumb:s,onThumbChange:u,onThumbPointerUp:p,onThumbPointerDown:f,onThumbPositionChange:h,onDragScroll:w,onWheelScroll:v,onResize:b,...g}=t,S=m(y,i),[E,T]=e.useState(null),C=n(o,(e=>T(e))),R=e.useRef(null),P=e.useRef(""),_=S.viewport,x=a.content-a.viewport,D=l(v),A=l(h),z=F(b,10);function H(e){if(R.current){const r=e.clientX-R.current.left,t=e.clientY-R.current.top;w({x:r,y:t})}}return e.useEffect((()=>{const e=e=>{const r=e.target,t=E?.contains(r);t&&D(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[_,E,x,D]),e.useEffect(A,[a,A]),V(E,z),V(S.content,z),d(L,{scope:i,scrollbar:E,hasThumb:s,onThumbChange:l(u),onThumbPointerUp:l(p),onThumbPositionChange:A,onThumbPointerDown:l(f),children:d(r.div,{...g,ref:C,style:{position:"absolute",...g.style},onPointerDown:c(t.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),R.current=E.getBoundingClientRect(),P.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),H(e)}})),onPointerMove:c(t.onPointerMove,H),onPointerUp:c(t.onPointerUp,(e=>{const r=e.target;r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=P.current,S.viewport&&(S.viewport.style.scrollBehavior=""),R.current=null}))})})})),z="ScrollAreaThumb",H=e.forwardRef(((e,r)=>{const{forceMount:o,...n}=e,l=D(z,e.__scopeScrollArea);return d(t,{present:o||l.hasThumb,children:d(N,{ref:r,...n})})})),N=e.forwardRef(((t,o)=>{const{__scopeScrollArea:l,style:i,...a}=t,s=m(z,l),u=D(z,l),{onThumbPositionChange:p}=u,f=n(o,(e=>u.onThumbChange(e))),h=e.useRef(),w=F((()=>{h.current&&(h.current(),h.current=void 0)}),100);return e.useEffect((()=>{const e=s.viewport;if(e){const r=()=>{if(w(),!h.current){const r=k(e,p);h.current=r,p()}};return p(),e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[s.viewport,w,p]),d(r.div,{"data-state":u.hasThumb?"visible":"hidden",...a,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:c(t.onPointerDownCapture,(e=>{const r=e.target.getBoundingClientRect(),t=e.clientX-r.left,o=e.clientY-r.top;u.onThumbPointerDown({x:t,y:o})})),onPointerUp:c(t.onPointerUp,u.onThumbPointerUp)})}));H.displayName=z;var W="ScrollAreaCorner",X=e.forwardRef(((e,r)=>{const t=m(W,e.__scopeScrollArea),o=Boolean(t.scrollbarX&&t.scrollbarY);return"scroll"!==t.type&&o?d(Y,{...e,ref:r}):null}));X.displayName=W;var Y=e.forwardRef(((t,o)=>{const{__scopeScrollArea:n,...l}=t,i=m(W,n),[a,s]=e.useState(0),[c,u]=e.useState(0),p=Boolean(a&&c);return V(i.scrollbarX,(()=>{const e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),u(e)})),V(i.scrollbarY,(()=>{const e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),s(e)})),p?d(r.div,{...l,ref:o,style:{width:a,height:c,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...t.style}}):null}));function I(e){return e?parseInt(e,10):0}function M(e,r){const t=e/r;return isNaN(t)?0:t}function O(e){const r=M(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-t)*r;return Math.max(o,18)}function U(e,r,t="ltr"){const o=O(r),n=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=r.scrollbar.size-n,i=r.content-r.viewport,a=l-o,c=s(e,"ltr"===t?[0,i]:[-1*i,0]);return j([0,i],[0,a])(c)}function j(e,r){return t=>{if(e[0]===e[1]||r[0]===r[1])return r[0];const o=(r[1]-r[0])/(e[1]-e[0]);return r[0]+o*(t-e[0])}}function B(e,r){return e>0&&e<r}var k=(e,r=()=>{})=>{let t={left:e.scrollLeft,top:e.scrollTop},o=0;return function n(){const l={left:e.scrollLeft,top:e.scrollTop},i=t.left!==l.left,a=t.top!==l.top;(i||a)&&r(),t=l,o=window.requestAnimationFrame(n)}(),()=>window.cancelAnimationFrame(o)};function F(r,t){const o=l(r),n=e.useRef(0);return e.useEffect((()=>()=>window.clearTimeout(n.current)),[]),e.useCallback((()=>{window.clearTimeout(n.current),n.current=window.setTimeout(o,t)}),[o,t])}function V(e,r){const t=l(r);a((()=>{let r=0;if(e){const o=new ResizeObserver((()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)}));return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}}),[e,t])}var q=b,$=S,G=E,J=H,K=X;export{K as Corner,q as Root,b as ScrollArea,X as ScrollAreaCorner,E as ScrollAreaScrollbar,H as ScrollAreaThumb,S as ScrollAreaViewport,G as Scrollbar,J as Thumb,$ as Viewport,w as createScrollAreaScope};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-scroll-area/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/scroll-area/src/ScrollArea.tsx\nimport * as React2 from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { clamp } from \"@radix-ui/number\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\n\n// packages/react/scroll-area/src/useStateMachine.ts\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/scroll-area/src/ScrollArea.tsx\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar SCROLL_AREA_NAME = \"ScrollArea\";\nvar [createScrollAreaContext, createScrollAreaScope] = createContextScope(SCROLL_AREA_NAME);\nvar [ScrollAreaProvider, useScrollAreaContext] = createScrollAreaContext(SCROLL_AREA_NAME);\nvar ScrollArea = React2.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeScrollArea,\n type = \"hover\",\n dir,\n scrollHideDelay = 600,\n ...scrollAreaProps\n } = props;\n const [scrollArea, setScrollArea] = React2.useState(null);\n const [viewport, setViewport] = React2.useState(null);\n const [content, setContent] = React2.useState(null);\n const [scrollbarX, setScrollbarX] = React2.useState(null);\n const [scrollbarY, setScrollbarY] = React2.useState(null);\n const [cornerWidth, setCornerWidth] = React2.useState(0);\n const [cornerHeight, setCornerHeight] = React2.useState(0);\n const [scrollbarXEnabled, setScrollbarXEnabled] = React2.useState(false);\n const [scrollbarYEnabled, setScrollbarYEnabled] = React2.useState(false);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setScrollArea(node));\n const direction = useDirection(dir);\n return /* @__PURE__ */ jsx(\n ScrollAreaProvider,\n {\n scope: __scopeScrollArea,\n type,\n dir: direction,\n scrollHideDelay,\n scrollArea,\n viewport,\n onViewportChange: setViewport,\n content,\n onContentChange: setContent,\n scrollbarX,\n onScrollbarXChange: setScrollbarX,\n scrollbarXEnabled,\n onScrollbarXEnabledChange: setScrollbarXEnabled,\n scrollbarY,\n onScrollbarYChange: setScrollbarY,\n scrollbarYEnabled,\n onScrollbarYEnabledChange: setScrollbarYEnabled,\n onCornerWidthChange: setCornerWidth,\n onCornerHeightChange: setCornerHeight,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n dir: direction,\n ...scrollAreaProps,\n ref: composedRefs,\n style: {\n position: \"relative\",\n // Pass corner sizes as CSS vars to reduce re-renders of context consumers\n [\"--radix-scroll-area-corner-width\"]: cornerWidth + \"px\",\n [\"--radix-scroll-area-corner-height\"]: cornerHeight + \"px\",\n ...props.style\n }\n }\n )\n }\n );\n }\n);\nScrollArea.displayName = SCROLL_AREA_NAME;\nvar VIEWPORT_NAME = \"ScrollAreaViewport\";\nvar ScrollAreaViewport = React2.forwardRef(\n (props, forwardedRef) => {\n const { __scopeScrollArea, children, nonce, ...viewportProps } = props;\n const context = useScrollAreaContext(VIEWPORT_NAME, __scopeScrollArea);\n const ref = React2.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref, context.onViewportChange);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n \"style\",\n {\n dangerouslySetInnerHTML: {\n __html: `[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`\n },\n nonce\n }\n ),\n /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-radix-scroll-area-viewport\": \"\",\n ...viewportProps,\n ref: composedRefs,\n style: {\n /**\n * We don't support `visible` because the intention is to have at least one scrollbar\n * if this component is used and `visible` will behave like `auto` in that case\n * https://developer.mozilla.org/en-US/docs/Web/CSS/overflowed#description\n *\n * We don't handle `auto` because the intention is for the native implementation\n * to be hidden if using this component. We just want to ensure the node is scrollable\n * so could have used either `scroll` or `auto` here. We picked `scroll` to prevent\n * the browser from having to work out whether to render native scrollbars or not,\n * we tell it to with the intention of hiding them in CSS.\n */\n overflowX: context.scrollbarXEnabled ? \"scroll\" : \"hidden\",\n overflowY: context.scrollbarYEnabled ? \"scroll\" : \"hidden\",\n ...props.style\n },\n children: /* @__PURE__ */ jsx(\"div\", { ref: context.onContentChange, style: { minWidth: \"100%\", display: \"table\" }, children })\n }\n )\n ] });\n }\n);\nScrollAreaViewport.displayName = VIEWPORT_NAME;\nvar SCROLLBAR_NAME = \"ScrollAreaScrollbar\";\nvar ScrollAreaScrollbar = React2.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const { onScrollbarXEnabledChange, onScrollbarYEnabledChange } = context;\n const isHorizontal = props.orientation === \"horizontal\";\n React2.useEffect(() => {\n isHorizontal ? onScrollbarXEnabledChange(true) : onScrollbarYEnabledChange(true);\n return () => {\n isHorizontal ? onScrollbarXEnabledChange(false) : onScrollbarYEnabledChange(false);\n };\n }, [isHorizontal, onScrollbarXEnabledChange, onScrollbarYEnabledChange]);\n return context.type === \"hover\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarHover, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === \"scroll\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarScroll, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === \"auto\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarAuto, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === \"always\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarVisible, { ...scrollbarProps, ref: forwardedRef }) : null;\n }\n);\nScrollAreaScrollbar.displayName = SCROLLBAR_NAME;\nvar ScrollAreaScrollbarHover = React2.forwardRef((props, forwardedRef) => {\n const { forceMount, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const [visible, setVisible] = React2.useState(false);\n React2.useEffect(() => {\n const scrollArea = context.scrollArea;\n let hideTimer = 0;\n if (scrollArea) {\n const handlePointerEnter = () => {\n window.clearTimeout(hideTimer);\n setVisible(true);\n };\n const handlePointerLeave = () => {\n hideTimer = window.setTimeout(() => setVisible(false), context.scrollHideDelay);\n };\n scrollArea.addEventListener(\"pointerenter\", handlePointerEnter);\n scrollArea.addEventListener(\"pointerleave\", handlePointerLeave);\n return () => {\n window.clearTimeout(hideTimer);\n scrollArea.removeEventListener(\"pointerenter\", handlePointerEnter);\n scrollArea.removeEventListener(\"pointerleave\", handlePointerLeave);\n };\n }\n }, [context.scrollArea, context.scrollHideDelay]);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || visible, children: /* @__PURE__ */ jsx(\n ScrollAreaScrollbarAuto,\n {\n \"data-state\": visible ? \"visible\" : \"hidden\",\n ...scrollbarProps,\n ref: forwardedRef\n }\n ) });\n});\nvar ScrollAreaScrollbarScroll = React2.forwardRef((props, forwardedRef) => {\n const { forceMount, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const isHorizontal = props.orientation === \"horizontal\";\n const debounceScrollEnd = useDebounceCallback(() => send(\"SCROLL_END\"), 100);\n const [state, send] = useStateMachine(\"hidden\", {\n hidden: {\n SCROLL: \"scrolling\"\n },\n scrolling: {\n SCROLL_END: \"idle\",\n POINTER_ENTER: \"interacting\"\n },\n interacting: {\n SCROLL: \"interacting\",\n POINTER_LEAVE: \"idle\"\n },\n idle: {\n HIDE: \"hidden\",\n SCROLL: \"scrolling\",\n POINTER_ENTER: \"interacting\"\n }\n });\n React2.useEffect(() => {\n if (state === \"idle\") {\n const hideTimer = window.setTimeout(() => send(\"HIDE\"), context.scrollHideDelay);\n return () => window.clearTimeout(hideTimer);\n }\n }, [state, context.scrollHideDelay, send]);\n React2.useEffect(() => {\n const viewport = context.viewport;\n const scrollDirection = isHorizontal ? \"scrollLeft\" : \"scrollTop\";\n if (viewport) {\n let prevScrollPos = viewport[scrollDirection];\n const handleScroll = () => {\n const scrollPos = viewport[scrollDirection];\n const hasScrollInDirectionChanged = prevScrollPos !== scrollPos;\n if (hasScrollInDirectionChanged) {\n send(\"SCROLL\");\n debounceScrollEnd();\n }\n prevScrollPos = scrollPos;\n };\n viewport.addEventListener(\"scroll\", handleScroll);\n return () => viewport.removeEventListener(\"scroll\", handleScroll);\n }\n }, [context.viewport, isHorizontal, send, debounceScrollEnd]);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || state !== \"hidden\", children: /* @__PURE__ */ jsx(\n ScrollAreaScrollbarVisible,\n {\n \"data-state\": state === \"hidden\" ? \"hidden\" : \"visible\",\n ...scrollbarProps,\n ref: forwardedRef,\n onPointerEnter: composeEventHandlers(props.onPointerEnter, () => send(\"POINTER_ENTER\")),\n onPointerLeave: composeEventHandlers(props.onPointerLeave, () => send(\"POINTER_LEAVE\"))\n }\n ) });\n});\nvar ScrollAreaScrollbarAuto = React2.forwardRef((props, forwardedRef) => {\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const { forceMount, ...scrollbarProps } = props;\n const [visible, setVisible] = React2.useState(false);\n const isHorizontal = props.orientation === \"horizontal\";\n const handleResize = useDebounceCallback(() => {\n if (context.viewport) {\n const isOverflowX = context.viewport.offsetWidth < context.viewport.scrollWidth;\n const isOverflowY = context.viewport.offsetHeight < context.viewport.scrollHeight;\n setVisible(isHorizontal ? isOverflowX : isOverflowY);\n }\n }, 10);\n useResizeObserver(context.viewport, handleResize);\n useResizeObserver(context.content, handleResize);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || visible, children: /* @__PURE__ */ jsx(\n ScrollAreaScrollbarVisible,\n {\n \"data-state\": visible ? \"visible\" : \"hidden\",\n ...scrollbarProps,\n ref: forwardedRef\n }\n ) });\n});\nvar ScrollAreaScrollbarVisible = React2.forwardRef((props, forwardedRef) => {\n const { orientation = \"vertical\", ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const thumbRef = React2.useRef(null);\n const pointerOffsetRef = React2.useRef(0);\n const [sizes, setSizes] = React2.useState({\n content: 0,\n viewport: 0,\n scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }\n });\n const thumbRatio = getThumbRatio(sizes.viewport, sizes.content);\n const commonProps = {\n ...scrollbarProps,\n sizes,\n onSizesChange: setSizes,\n hasThumb: Boolean(thumbRatio > 0 && thumbRatio < 1),\n onThumbChange: (thumb) => thumbRef.current = thumb,\n onThumbPointerUp: () => pointerOffsetRef.current = 0,\n onThumbPointerDown: (pointerPos) => pointerOffsetRef.current = pointerPos\n };\n function getScrollPosition(pointerPos, dir) {\n return getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes, dir);\n }\n if (orientation === \"horizontal\") {\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarX,\n {\n ...commonProps,\n ref: forwardedRef,\n onThumbPositionChange: () => {\n if (context.viewport && thumbRef.current) {\n const scrollPos = context.viewport.scrollLeft;\n const offset = getThumbOffsetFromScroll(scrollPos, sizes, context.dir);\n thumbRef.current.style.transform = `translate3d(${offset}px, 0, 0)`;\n }\n },\n onWheelScroll: (scrollPos) => {\n if (context.viewport) context.viewport.scrollLeft = scrollPos;\n },\n onDragScroll: (pointerPos) => {\n if (context.viewport) {\n context.viewport.scrollLeft = getScrollPosition(pointerPos, context.dir);\n }\n }\n }\n );\n }\n if (orientation === \"vertical\") {\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarY,\n {\n ...commonProps,\n ref: forwardedRef,\n onThumbPositionChange: () => {\n if (context.viewport && thumbRef.current) {\n const scrollPos = context.viewport.scrollTop;\n const offset = getThumbOffsetFromScroll(scrollPos, sizes);\n thumbRef.current.style.transform = `translate3d(0, ${offset}px, 0)`;\n }\n },\n onWheelScroll: (scrollPos) => {\n if (context.viewport) context.viewport.scrollTop = scrollPos;\n },\n onDragScroll: (pointerPos) => {\n if (context.viewport) context.viewport.scrollTop = getScrollPosition(pointerPos);\n }\n }\n );\n }\n return null;\n});\nvar ScrollAreaScrollbarX = React2.forwardRef((props, forwardedRef) => {\n const { sizes, onSizesChange, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const [computedStyle, setComputedStyle] = React2.useState();\n const ref = React2.useRef(null);\n const composeRefs = useComposedRefs(forwardedRef, ref, context.onScrollbarXChange);\n React2.useEffect(() => {\n if (ref.current) setComputedStyle(getComputedStyle(ref.current));\n }, [ref]);\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarImpl,\n {\n \"data-orientation\": \"horizontal\",\n ...scrollbarProps,\n ref: composeRefs,\n sizes,\n style: {\n bottom: 0,\n left: context.dir === \"rtl\" ? \"var(--radix-scroll-area-corner-width)\" : 0,\n right: context.dir === \"ltr\" ? \"var(--radix-scroll-area-corner-width)\" : 0,\n [\"--radix-scroll-area-thumb-width\"]: getThumbSize(sizes) + \"px\",\n ...props.style\n },\n onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.x),\n onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.x),\n onWheelScroll: (event, maxScrollPos) => {\n if (context.viewport) {\n const scrollPos = context.viewport.scrollLeft + event.deltaX;\n props.onWheelScroll(scrollPos);\n if (isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) {\n event.preventDefault();\n }\n }\n },\n onResize: () => {\n if (ref.current && context.viewport && computedStyle) {\n onSizesChange({\n content: context.viewport.scrollWidth,\n viewport: context.viewport.offsetWidth,\n scrollbar: {\n size: ref.current.clientWidth,\n paddingStart: toInt(computedStyle.paddingLeft),\n paddingEnd: toInt(computedStyle.paddingRight)\n }\n });\n }\n }\n }\n );\n});\nvar ScrollAreaScrollbarY = React2.forwardRef((props, forwardedRef) => {\n const { sizes, onSizesChange, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const [computedStyle, setComputedStyle] = React2.useState();\n const ref = React2.useRef(null);\n const composeRefs = useComposedRefs(forwardedRef, ref, context.onScrollbarYChange);\n React2.useEffect(() => {\n if (ref.current) setComputedStyle(getComputedStyle(ref.current));\n }, [ref]);\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarImpl,\n {\n \"data-orientation\": \"vertical\",\n ...scrollbarProps,\n ref: composeRefs,\n sizes,\n style: {\n top: 0,\n right: context.dir === \"ltr\" ? 0 : void 0,\n left: context.dir === \"rtl\" ? 0 : void 0,\n bottom: \"var(--radix-scroll-area-corner-height)\",\n [\"--radix-scroll-area-thumb-height\"]: getThumbSize(sizes) + \"px\",\n ...props.style\n },\n onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.y),\n onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.y),\n onWheelScroll: (event, maxScrollPos) => {\n if (context.viewport) {\n const scrollPos = context.viewport.scrollTop + event.deltaY;\n props.onWheelScroll(scrollPos);\n if (isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) {\n event.preventDefault();\n }\n }\n },\n onResize: () => {\n if (ref.current && context.viewport && computedStyle) {\n onSizesChange({\n content: context.viewport.scrollHeight,\n viewport: context.viewport.offsetHeight,\n scrollbar: {\n size: ref.current.clientHeight,\n paddingStart: toInt(computedStyle.paddingTop),\n paddingEnd: toInt(computedStyle.paddingBottom)\n }\n });\n }\n }\n }\n );\n});\nvar [ScrollbarProvider, useScrollbarContext] = createScrollAreaContext(SCROLLBAR_NAME);\nvar ScrollAreaScrollbarImpl = React2.forwardRef((props, forwardedRef) => {\n const {\n __scopeScrollArea,\n sizes,\n hasThumb,\n onThumbChange,\n onThumbPointerUp,\n onThumbPointerDown,\n onThumbPositionChange,\n onDragScroll,\n onWheelScroll,\n onResize,\n ...scrollbarProps\n } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, __scopeScrollArea);\n const [scrollbar, setScrollbar] = React2.useState(null);\n const composeRefs = useComposedRefs(forwardedRef, (node) => setScrollbar(node));\n const rectRef = React2.useRef(null);\n const prevWebkitUserSelectRef = React2.useRef(\"\");\n const viewport = context.viewport;\n const maxScrollPos = sizes.content - sizes.viewport;\n const handleWheelScroll = useCallbackRef(onWheelScroll);\n const handleThumbPositionChange = useCallbackRef(onThumbPositionChange);\n const handleResize = useDebounceCallback(onResize, 10);\n function handleDragScroll(event) {\n if (rectRef.current) {\n const x = event.clientX - rectRef.current.left;\n const y = event.clientY - rectRef.current.top;\n onDragScroll({ x, y });\n }\n }\n React2.useEffect(() => {\n const handleWheel = (event) => {\n const element = event.target;\n const isScrollbarWheel = scrollbar?.contains(element);\n if (isScrollbarWheel) handleWheelScroll(event, maxScrollPos);\n };\n document.addEventListener(\"wheel\", handleWheel, { passive: false });\n return () => document.removeEventListener(\"wheel\", handleWheel, { passive: false });\n }, [viewport, scrollbar, maxScrollPos, handleWheelScroll]);\n React2.useEffect(handleThumbPositionChange, [sizes, handleThumbPositionChange]);\n useResizeObserver(scrollbar, handleResize);\n useResizeObserver(context.content, handleResize);\n return /* @__PURE__ */ jsx(\n ScrollbarProvider,\n {\n scope: __scopeScrollArea,\n scrollbar,\n hasThumb,\n onThumbChange: useCallbackRef(onThumbChange),\n onThumbPointerUp: useCallbackRef(onThumbPointerUp),\n onThumbPositionChange: handleThumbPositionChange,\n onThumbPointerDown: useCallbackRef(onThumbPointerDown),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...scrollbarProps,\n ref: composeRefs,\n style: { position: \"absolute\", ...scrollbarProps.style },\n onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n const mainPointer = 0;\n if (event.button === mainPointer) {\n const element = event.target;\n element.setPointerCapture(event.pointerId);\n rectRef.current = scrollbar.getBoundingClientRect();\n prevWebkitUserSelectRef.current = document.body.style.webkitUserSelect;\n document.body.style.webkitUserSelect = \"none\";\n if (context.viewport) context.viewport.style.scrollBehavior = \"auto\";\n handleDragScroll(event);\n }\n }),\n onPointerMove: composeEventHandlers(props.onPointerMove, handleDragScroll),\n onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {\n const element = event.target;\n if (element.hasPointerCapture(event.pointerId)) {\n element.releasePointerCapture(event.pointerId);\n }\n document.body.style.webkitUserSelect = prevWebkitUserSelectRef.current;\n if (context.viewport) context.viewport.style.scrollBehavior = \"\";\n rectRef.current = null;\n })\n }\n )\n }\n );\n});\nvar THUMB_NAME = \"ScrollAreaThumb\";\nvar ScrollAreaThumb = React2.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...thumbProps } = props;\n const scrollbarContext = useScrollbarContext(THUMB_NAME, props.__scopeScrollArea);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || scrollbarContext.hasThumb, children: /* @__PURE__ */ jsx(ScrollAreaThumbImpl, { ref: forwardedRef, ...thumbProps }) });\n }\n);\nvar ScrollAreaThumbImpl = React2.forwardRef(\n (props, forwardedRef) => {\n const { __scopeScrollArea, style, ...thumbProps } = props;\n const scrollAreaContext = useScrollAreaContext(THUMB_NAME, __scopeScrollArea);\n const scrollbarContext = useScrollbarContext(THUMB_NAME, __scopeScrollArea);\n const { onThumbPositionChange } = scrollbarContext;\n const composedRef = useComposedRefs(\n forwardedRef,\n (node) => scrollbarContext.onThumbChange(node)\n );\n const removeUnlinkedScrollListenerRef = React2.useRef();\n const debounceScrollEnd = useDebounceCallback(() => {\n if (removeUnlinkedScrollListenerRef.current) {\n removeUnlinkedScrollListenerRef.current();\n removeUnlinkedScrollListenerRef.current = void 0;\n }\n }, 100);\n React2.useEffect(() => {\n const viewport = scrollAreaContext.viewport;\n if (viewport) {\n const handleScroll = () => {\n debounceScrollEnd();\n if (!removeUnlinkedScrollListenerRef.current) {\n const listener = addUnlinkedScrollListener(viewport, onThumbPositionChange);\n removeUnlinkedScrollListenerRef.current = listener;\n onThumbPositionChange();\n }\n };\n onThumbPositionChange();\n viewport.addEventListener(\"scroll\", handleScroll);\n return () => viewport.removeEventListener(\"scroll\", handleScroll);\n }\n }, [scrollAreaContext.viewport, debounceScrollEnd, onThumbPositionChange]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": scrollbarContext.hasThumb ? \"visible\" : \"hidden\",\n ...thumbProps,\n ref: composedRef,\n style: {\n width: \"var(--radix-scroll-area-thumb-width)\",\n height: \"var(--radix-scroll-area-thumb-height)\",\n ...style\n },\n onPointerDownCapture: composeEventHandlers(props.onPointerDownCapture, (event) => {\n const thumb = event.target;\n const thumbRect = thumb.getBoundingClientRect();\n const x = event.clientX - thumbRect.left;\n const y = event.clientY - thumbRect.top;\n scrollbarContext.onThumbPointerDown({ x, y });\n }),\n onPointerUp: composeEventHandlers(props.onPointerUp, scrollbarContext.onThumbPointerUp)\n }\n );\n }\n);\nScrollAreaThumb.displayName = THUMB_NAME;\nvar CORNER_NAME = \"ScrollAreaCorner\";\nvar ScrollAreaCorner = React2.forwardRef(\n (props, forwardedRef) => {\n const context = useScrollAreaContext(CORNER_NAME, props.__scopeScrollArea);\n const hasBothScrollbarsVisible = Boolean(context.scrollbarX && context.scrollbarY);\n const hasCorner = context.type !== \"scroll\" && hasBothScrollbarsVisible;\n return hasCorner ? /* @__PURE__ */ jsx(ScrollAreaCornerImpl, { ...props, ref: forwardedRef }) : null;\n }\n);\nScrollAreaCorner.displayName = CORNER_NAME;\nvar ScrollAreaCornerImpl = React2.forwardRef((props, forwardedRef) => {\n const { __scopeScrollArea, ...cornerProps } = props;\n const context = useScrollAreaContext(CORNER_NAME, __scopeScrollArea);\n const [width, setWidth] = React2.useState(0);\n const [height, setHeight] = React2.useState(0);\n const hasSize = Boolean(width && height);\n useResizeObserver(context.scrollbarX, () => {\n const height2 = context.scrollbarX?.offsetHeight || 0;\n context.onCornerHeightChange(height2);\n setHeight(height2);\n });\n useResizeObserver(context.scrollbarY, () => {\n const width2 = context.scrollbarY?.offsetWidth || 0;\n context.onCornerWidthChange(width2);\n setWidth(width2);\n });\n return hasSize ? /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...cornerProps,\n ref: forwardedRef,\n style: {\n width,\n height,\n position: \"absolute\",\n right: context.dir === \"ltr\" ? 0 : void 0,\n left: context.dir === \"rtl\" ? 0 : void 0,\n bottom: 0,\n ...props.style\n }\n }\n ) : null;\n});\nfunction toInt(value) {\n return value ? parseInt(value, 10) : 0;\n}\nfunction getThumbRatio(viewportSize, contentSize) {\n const ratio = viewportSize / contentSize;\n return isNaN(ratio) ? 0 : ratio;\n}\nfunction getThumbSize(sizes) {\n const ratio = getThumbRatio(sizes.viewport, sizes.content);\n const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;\n const thumbSize = (sizes.scrollbar.size - scrollbarPadding) * ratio;\n return Math.max(thumbSize, 18);\n}\nfunction getScrollPositionFromPointer(pointerPos, pointerOffset, sizes, dir = \"ltr\") {\n const thumbSizePx = getThumbSize(sizes);\n const thumbCenter = thumbSizePx / 2;\n const offset = pointerOffset || thumbCenter;\n const thumbOffsetFromEnd = thumbSizePx - offset;\n const minPointerPos = sizes.scrollbar.paddingStart + offset;\n const maxPointerPos = sizes.scrollbar.size - sizes.scrollbar.paddingEnd - thumbOffsetFromEnd;\n const maxScrollPos = sizes.content - sizes.viewport;\n const scrollRange = dir === \"ltr\" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];\n const interpolate = linearScale([minPointerPos, maxPointerPos], scrollRange);\n return interpolate(pointerPos);\n}\nfunction getThumbOffsetFromScroll(scrollPos, sizes, dir = \"ltr\") {\n const thumbSizePx = getThumbSize(sizes);\n const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;\n const scrollbar = sizes.scrollbar.size - scrollbarPadding;\n const maxScrollPos = sizes.content - sizes.viewport;\n const maxThumbPos = scrollbar - thumbSizePx;\n const scrollClampRange = dir === \"ltr\" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];\n const scrollWithoutMomentum = clamp(scrollPos, scrollClampRange);\n const interpolate = linearScale([0, maxScrollPos], [0, maxThumbPos]);\n return interpolate(scrollWithoutMomentum);\n}\nfunction linearScale(input, output) {\n return (value) => {\n if (input[0] === input[1] || output[0] === output[1]) return output[0];\n const ratio = (output[1] - output[0]) / (input[1] - input[0]);\n return output[0] + ratio * (value - input[0]);\n };\n}\nfunction isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) {\n return scrollPos > 0 && scrollPos < maxScrollPos;\n}\nvar addUnlinkedScrollListener = (node, handler = () => {\n}) => {\n let prevPosition = { left: node.scrollLeft, top: node.scrollTop };\n let rAF = 0;\n (function loop() {\n const position = { left: node.scrollLeft, top: node.scrollTop };\n const isHorizontalScroll = prevPosition.left !== position.left;\n const isVerticalScroll = prevPosition.top !== position.top;\n if (isHorizontalScroll || isVerticalScroll) handler();\n prevPosition = position;\n rAF = window.requestAnimationFrame(loop);\n })();\n return () => window.cancelAnimationFrame(rAF);\n};\nfunction useDebounceCallback(callback, delay) {\n const handleCallback = useCallbackRef(callback);\n const debounceTimerRef = React2.useRef(0);\n React2.useEffect(() => () => window.clearTimeout(debounceTimerRef.current), []);\n return React2.useCallback(() => {\n window.clearTimeout(debounceTimerRef.current);\n debounceTimerRef.current = window.setTimeout(handleCallback, delay);\n }, [handleCallback, delay]);\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}\nvar Root = ScrollArea;\nvar Viewport = ScrollAreaViewport;\nvar Scrollbar = ScrollAreaScrollbar;\nvar Thumb = ScrollAreaThumb;\nvar Corner = ScrollAreaCorner;\nexport {\n Corner,\n Root,\n ScrollArea,\n ScrollAreaCorner,\n ScrollAreaScrollbar,\n ScrollAreaThumb,\n ScrollAreaViewport,\n Scrollbar,\n Thumb,\n Viewport,\n createScrollAreaScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["SCROLL_AREA_NAME","createScrollAreaContext","createScrollAreaScope","createContextScope","ScrollAreaProvider","useScrollAreaContext","ScrollArea","React2","forwardRef","props","forwardedRef","__scopeScrollArea","type","dir","scrollHideDelay","scrollAreaProps","scrollArea","setScrollArea","useState","viewport","setViewport","content","setContent","scrollbarX","setScrollbarX","scrollbarY","setScrollbarY","cornerWidth","setCornerWidth","cornerHeight","setCornerHeight","scrollbarXEnabled","setScrollbarXEnabled","scrollbarYEnabled","setScrollbarYEnabled","composedRefs","useComposedRefs","node","direction","useDirection","jsx","scope","onViewportChange","onContentChange","onScrollbarXChange","onScrollbarXEnabledChange","onScrollbarYChange","onScrollbarYEnabledChange","onCornerWidthChange","onCornerHeightChange","children","Primitive","div","ref","style","position","displayName","VIEWPORT_NAME","ScrollAreaViewport","nonce","viewportProps","context","useRef","jsxs","Fragment","dangerouslySetInnerHTML","__html","overflowX","overflowY","minWidth","display","SCROLLBAR_NAME","ScrollAreaScrollbar","forceMount","scrollbarProps","isHorizontal","orientation","useEffect","ScrollAreaScrollbarHover","ScrollAreaScrollbarScroll","ScrollAreaScrollbarAuto","ScrollAreaScrollbarVisible","visible","setVisible","hideTimer","handlePointerEnter","window","clearTimeout","handlePointerLeave","setTimeout","addEventListener","removeEventListener","Presence","present","debounceScrollEnd","useDebounceCallback","send","state","initialState","machine","hidden","SCROLL","scrolling","SCROLL_END","POINTER_ENTER","interacting","POINTER_LEAVE","idle","HIDE","React","useReducer","event","scrollDirection","prevScrollPos","handleScroll","scrollPos","onPointerEnter","composeEventHandlers","onPointerLeave","handleResize","isOverflowX","offsetWidth","scrollWidth","isOverflowY","offsetHeight","scrollHeight","useResizeObserver","thumbRef","pointerOffsetRef","sizes","setSizes","scrollbar","size","paddingStart","paddingEnd","thumbRatio","getThumbRatio","commonProps","onSizesChange","hasThumb","Boolean","onThumbChange","thumb","current","onThumbPointerUp","onThumbPointerDown","pointerPos","getScrollPosition","pointerOffset","thumbSizePx","getThumbSize","thumbCenter","offset","thumbOffsetFromEnd","minPointerPos","maxPointerPos","maxScrollPos","scrollRange","linearScale","interpolate","getScrollPositionFromPointer","ScrollAreaScrollbarX","onThumbPositionChange","getThumbOffsetFromScroll","scrollLeft","transform","onWheelScroll","onDragScroll","ScrollAreaScrollbarY","scrollTop","computedStyle","setComputedStyle","composeRefs","getComputedStyle","ScrollAreaScrollbarImpl","bottom","left","right","x","deltaX","isScrollingWithinScrollbarBounds","preventDefault","onResize","clientWidth","toInt","paddingLeft","paddingRight","top","y","deltaY","clientHeight","paddingTop","paddingBottom","ScrollbarProvider","useScrollbarContext","setScrollbar","rectRef","prevWebkitUserSelectRef","handleWheelScroll","useCallbackRef","handleThumbPositionChange","handleDragScroll","clientX","clientY","handleWheel","element","target","isScrollbarWheel","contains","document","passive","onPointerDown","button","setPointerCapture","pointerId","getBoundingClientRect","body","webkitUserSelect","scrollBehavior","onPointerMove","onPointerUp","hasPointerCapture","releasePointerCapture","THUMB_NAME","ScrollAreaThumb","thumbProps","scrollbarContext","ScrollAreaThumbImpl","scrollAreaContext","composedRef","removeUnlinkedScrollListenerRef","listener","addUnlinkedScrollListener","width","height","onPointerDownCapture","thumbRect","CORNER_NAME","ScrollAreaCorner","hasBothScrollbarsVisible","ScrollAreaCornerImpl","cornerProps","setWidth","setHeight","hasSize","height2","width2","value","parseInt","viewportSize","contentSize","ratio","isNaN","scrollbarPadding","thumbSize","Math","max","maxThumbPos","scrollWithoutMomentum","clamp","input","output","handler","prevPosition","rAF","loop","isHorizontalScroll","isVerticalScroll","requestAnimationFrame","cancelAnimationFrame","callback","delay","handleCallback","debounceTimerRef","useCallback","useLayoutEffect","resizeObserver","ResizeObserver","observe","unobserve","Root","Viewport","Scrollbar","Thumb","Corner"],"mappings":"4uBAyBA,IAAIA,EAAmB,cAClBC,EAAyBC,GAAyBC,EAAmBH,IACrEI,EAAoBC,GAAwBJ,EAAwBD,GACrEM,EAAaC,EAAOC,YACtB,CAACC,EAAOC,KACN,MAAMC,kBACJA,EAAiBC,KACjBA,EAAO,QAAOC,IACdA,EAAGC,gBACHA,EAAkB,OACfC,GACDN,GACGO,EAAYC,GAAiBV,EAAOW,SAAS,OAC7CC,EAAUC,GAAeb,EAAOW,SAAS,OACzCG,EAASC,GAAcf,EAAOW,SAAS,OACvCK,EAAYC,GAAiBjB,EAAOW,SAAS,OAC7CO,EAAYC,GAAiBnB,EAAOW,SAAS,OAC7CS,EAAaC,GAAkBrB,EAAOW,SAAS,IAC/CW,EAAcC,GAAmBvB,EAAOW,SAAS,IACjDa,EAAmBC,GAAwBzB,EAAOW,UAAS,IAC3De,EAAmBC,GAAwB3B,EAAOW,UAAS,GAC5DiB,EAAeC,EAAgB1B,GAAe2B,GAASpB,EAAcoB,KACrEC,EAAYC,EAAa1B,GAC/B,OAAuB2B,EACrBpC,EACA,CACEqC,MAAO9B,EACPC,OACAC,IAAKyB,EACLxB,kBACAE,aACAG,WACAuB,iBAAkBtB,EAClBC,UACAsB,gBAAiBrB,EACjBC,aACAqB,mBAAoBpB,EACpBO,oBACAc,0BAA2Bb,EAC3BP,aACAqB,mBAAoBpB,EACpBO,oBACAc,0BAA2Bb,EAC3Bc,oBAAqBpB,EACrBqB,qBAAsBnB,EACtBoB,SAA0BV,EACxBW,EAAUC,IACV,CACEvC,IAAKyB,KACFvB,EACHsC,IAAKlB,EACLmB,MAAO,CACLC,SAAU,WAEV,m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AAWuL,EAAgBD,EAAM,GAClE,CAACC,EAAgBD,GACtB,CACA,SAASjJ,EAAkB+E,EAASvB,GAClC,MAAM/D,EAAegF,EAAejB,GACpC6F,GAAgB,KACd,IAAIX,EAAM,EACV,GAAI3D,EAAS,CACX,MAAMuE,EAAiB,IAAIC,gBAAe,KACxCR,qBAAqBL,GACrBA,EAAMlL,OAAOsL,sBAAsBrJ,EAAa,IAGlD,OADA6J,EAAeE,QAAQzE,GAChB,KACLvH,OAAOuL,qBAAqBL,GAC5BY,EAAeG,UAAU1E,EAAQ,CAEpC,IACA,CAACA,EAAStF,GACf,CACG,IAACiK,EAAOlR,EACPmR,EAAW/N,EACXgO,EAAYlN,EACZmN,EAAQ3D,EACR4D,EAAS9C"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import{jsx as t}from"react/jsx-runtime";function o(o,r=[]){let c=[];const s=()=>{const t=c.map((t=>e.createContext(t)));return function(n){const r=n?.[o]||t;return e.useMemo((()=>({[`__scope${o}`]:{...n,[o]:r}})),[n,r])}};return s.scopeName=o,[function(n,r){const s=e.createContext(r),u=c.length;function i(n){const{scope:r,children:c,...i}=n,m=r?.[o][u]||s,p=e.useMemo((()=>i),Object.values(i));return t(m.Provider,{value:p,children:c})}return c=[...c,r],i.displayName=n+"Provider",[i,function(t,c){const i=c?.[o][u]||s,m=e.useContext(i);if(m)return m;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},n(s,...r)]}function n(...t){const o=t[0];if(1===t.length)return o;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const r=n.reduce(((e,{useScope:o,scopeName:n})=>({...e,...o(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${o.scopeName}`]:r})),[r])}};return n.scopeName=o.scopeName,n}export{o as createContextScope};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/react-scroll-area/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":["createContextScope","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","map","defaultContext","React","createContext","scope","contexts","useMemo","rootComponentName","BaseContext","index","length","Provider","props","children","context","Context","value","Object","values","jsx","displayName","consumerName","useContext","Error","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","useScope","overrideScopes","nextScopes","reduce","nextScopes2"],"mappings":"gEAmBA,SAASA,EAAmBC,EAAWC,EAAyB,IAC9D,IAAIC,EAAkB,GAqBtB,MAAMC,EAAc,KAClB,MAAMC,EAAgBF,EAAgBG,KAAKC,GAClCC,EAAMC,cAAcF,KAE7B,OAAO,SAAkBG,GACvB,MAAMC,EAAWD,IAAQT,IAAcI,EACvC,OAAOG,EAAMI,SACX,KAAA,CAAS,CAAC,UAAUX,KAAc,IAAKS,EAAOT,CAACA,GAAYU,MAC3D,CAACD,EAAOC,GAEhB,CAAK,EAGH,OADAP,EAAYH,UAAYA,EACjB,CAjCP,SAAwBY,EAAmBN,GACzC,MAAMO,EAAcN,EAAMC,cAAcF,GAClCQ,EAAQZ,EAAgBa,OAE9B,SAASC,EAASC,GAChB,MAAMR,MAAEA,EAAKS,SAAEA,KAAaC,GAAYF,EAClCG,EAAUX,IAAQT,GAAWc,IAAUD,EACvCQ,EAAQd,EAAMI,SAAQ,IAAMQ,GAASG,OAAOC,OAAOJ,IACzD,OAAuBK,EAAIJ,EAAQJ,SAAU,CAAEK,QAAOH,YACvD,CASD,OAfAhB,EAAkB,IAAIA,EAAiBI,GAcvCU,EAASS,YAAcb,EAAoB,WACpC,CAACI,EARR,SAAqBU,EAAcjB,GACjC,MAAMW,EAAUX,IAAQT,GAAWc,IAAUD,EACvCM,EAAUZ,EAAMoB,WAAWP,GACjC,GAAID,EAAS,OAAOA,EACpB,QAAuB,IAAnBb,EAA2B,OAAOA,EACtC,MAAM,IAAIsB,MAAM,KAAKF,6BAAwCd,MAC9D,EAGF,EAcuBiB,EAAqB1B,KAAgBF,GAC/D,CACA,SAAS4B,KAAwBC,GAC/B,MAAMC,EAAYD,EAAO,GACzB,GAAsB,IAAlBA,EAAOf,OAAc,OAAOgB,EAChC,MAAM5B,EAAc,KAClB,MAAM6B,EAAaF,EAAOzB,KAAK4B,IAAkB,CAC/CC,SAAUD,IACVjC,UAAWiC,EAAajC,cAE1B,OAAO,SAA2BmC,GAChC,MAAMC,EAAaJ,EAAWK,QAAO,CAACC,GAAeJ,WAAUlC,gBAGtD,IAAKsC,KAFOJ,EAASC,GACI,UAAUnC,QAEzC,CAAE,GACL,OAAOO,EAAMI,SAAQ,MAAS,CAAC,UAAUoB,EAAU/B,aAAcoC,KAAe,CAACA,GACvF,CAAK,EAGH,OADAjC,EAAYH,UAAY+B,EAAU/B,UAC3BG,CACT"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import*as n from"react-dom";import{useComposedRefs as t}from"../../../../../react-compose-refs/dist/index.mjs";import{useLayoutEffect as r}from"../../../../../react-use-layout-effect/dist/index.mjs";var o=o=>{const{present:i,children:s}=o,a=function(t){const[o,i]=e.useState(),s=e.useRef({}),a=e.useRef(t),c=e.useRef("none"),m=t?"mounted":"unmounted",[f,d]=function(n,t){return e.useReducer(((e,n)=>t[e][n]??e),n)}(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=u(s.current);c.current="mounted"===f?e:"none"}),[f]),r((()=>{const e=s.current,n=a.current;if(n!==t){const r=c.current,o=u(e);if(t)d("MOUNT");else if("none"===o||"none"===e?.display)d("UNMOUNT");else{d(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=t}}),[t,d]),r((()=>{if(o){const e=e=>{const t=u(s.current).includes(e.animationName);e.target===o&&t&&n.flushSync((()=>d("ANIMATION_END")))},t=e=>{e.target===o&&(c.current=u(s.current))};return o.addEventListener("animationstart",t),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",t),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}d("ANIMATION_END")}),[o,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:e.useCallback((e=>{e&&(s.current=getComputedStyle(e)),i(e)}),[])}}(i),c="function"==typeof s?s({present:a.isPresent}):e.Children.only(s),m=t(a.ref,function(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;if(t)return e.ref;if(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(c));return"function"==typeof s||a.isPresent?e.cloneElement(c,{ref:m}):null};function u(e){return e?.animationName||"none"}o.displayName="Presence";export{o as Presence};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/presence/src/Presence.tsx\nimport * as React2 from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/useStateMachine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/Presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n ReactDOM.flushSync(() => send(\"ANIMATION_END\"));\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Presence\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Presence","props","present","children","presence","node","setNode","React2","useState","stylesRef","useRef","prevPresentRef","prevAnimationNameRef","initialState","state","send","machine","React","useReducer","event","useStateMachine","mounted","UNMOUNT","ANIMATION_OUT","unmountSuspended","MOUNT","ANIMATION_END","unmounted","useEffect","currentAnimationName","getAnimationName","current","useLayoutEffect","styles","wasPresent","prevAnimationName","display","handleAnimationEnd","isCurrentAnimation","includes","animationName","target","ReactDOM","flushSync","handleAnimationStart","addEventListener","removeEventListener","isPresent","ref","useCallback","node2","getComputedStyle","usePresence","child","Children","only","useComposedRefs","element","getter","Object","getOwnPropertyDescriptor","get","mayWarn","isReactWarning","getElementRef","cloneElement","displayName"],"mappings":"+NAkBG,IAACA,EAAYC,IACd,MAAMC,QAAEA,EAAOC,SAAEA,GAAaF,EACxBG,EAOR,SAAqBF,GACnB,MAAOG,EAAMC,GAAWC,EAAOC,WACzBC,EAAYF,EAAOG,OAAO,CAAE,GAC5BC,EAAiBJ,EAAOG,OAAOR,GAC/BU,EAAuBL,EAAOG,OAAO,QACrCG,EAAeX,EAAU,UAAY,aACpCY,EAAOC,GAvBhB,SAAyBF,EAAcG,GACrC,OAAOC,EAAMC,YAAW,CAACJ,EAAOK,IACZH,EAAQF,GAAOK,IACbL,GACnBD,EACL,CAkBwBO,CAAgBP,EAAc,CAClDQ,QAAS,CACPC,QAAS,YACTC,cAAe,oBAEjBC,iBAAkB,CAChBC,MAAO,UACPC,cAAe,aAEjBC,UAAW,CACTF,MAAO,aAuDX,OApDAlB,EAAOqB,WAAU,KACf,MAAMC,EAAuBC,EAAiBrB,EAAUsB,SACxDnB,EAAqBmB,QAAoB,YAAVjB,EAAsBe,EAAuB,MAAM,GACjF,CAACf,IACJkB,GAAgB,KACd,MAAMC,EAASxB,EAAUsB,QACnBG,EAAavB,EAAeoB,QAElC,GAD0BG,IAAehC,EAClB,CACrB,MAAMiC,EAAoBvB,EAAqBmB,QACzCF,EAAuBC,EAAiBG,GAC9C,GAAI/B,EACFa,EAAK,cACA,GAA6B,SAAzBc,GAAuD,SAApBI,GAAQG,QACpDrB,EAAK,eACA,CAGHA,EADEmB,GADgBC,IAAsBN,EAEnC,gBAEA,UAER,CACDlB,EAAeoB,QAAU7B,CAC1B,IACA,CAACA,EAASa,IACbiB,GAAgB,KACd,GAAI3B,EAAM,CACR,MAAMgC,EAAsBlB,IAC1B,MACMmB,EADuBR,EAAiBrB,EAAUsB,SACRQ,SAASpB,EAAMqB,eAC3DrB,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CAlFAxC,EAASkE,YAAc"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as r from"react";import{composeRefs as e}from"../../react-compose-refs/dist/index.mjs";import{jsx as n,Fragment as t}from"react/jsx-runtime";var i=r.forwardRef(((e,t)=>{const{children:i,...o}=e,s=r.Children.toArray(i),a=s.find(c);if(a){const e=a.props.children,i=s.map((n=>n===a?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:n));return n(l,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return n(l,{...o,ref:t,children:i})}));i.displayName="Slot";var l=r.forwardRef(((n,t)=>{const{children:i,...l}=n;if(r.isValidElement(i)){const n=function(r){let e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;if(n)return r.ref;if(e=Object.getOwnPropertyDescriptor(r,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n)return r.props.ref;return r.props.ref||r.ref}(i);return r.cloneElement(i,{...s(l,i.props),ref:t?e(t,n):n})}return r.Children.count(i)>1?r.Children.only(null):null}));l.displayName="SlotClone";var o=({children:r})=>n(t,{children:r});function c(e){return r.isValidElement(e)&&e.type===o}function s(r,e){const n={...e};for(const t in e){const i=r[t],l=e[t];/^on[A-Z]/.test(t)?i&&l?n[t]=(...r)=>{l(...r),i(...r)}:i&&(n[t]=i):"style"===t?n[t]={...i,...l}:"className"===t&&(n[t]=[i,l].filter(Boolean).join(" "))}return{...r,...n}}export{i as Slot,o as Slottable};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/Slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment, jsx } from \"react/jsx-runtime\";\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n return React.cloneElement(children, {\n ...mergeProps(slotProps, children.props),\n // @ts-ignore\n ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef\n });\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Slot","React","forwardRef","props","forwardedRef","children","slotProps","childrenArray","Children","toArray","slottable","find","isSlottable","newElement","newChildren","map","child","count","only","isValidElement","jsx","SlotClone","ref","cloneElement","displayName","childrenRef","element","getter","Object","getOwnPropertyDescriptor","get","mayWarn","isReactWarning","getElementRef","mergeProps","composeRefs","Slottable","Fragment","type","childProps","overrideProps","propName","slotPropValue","childPropValue","test","args","filter","Boolean","join"],"mappings":"oJAIG,IAACA,EAAOC,EAAMC,YAAW,CAACC,EAAOC,KAClC,MAAMC,SAAEA,KAAaC,GAAcH,EAC7BI,EAAgBN,EAAMO,SAASC,QAAQJ,GACvCK,EAAYH,EAAcI,KAAKC,GACrC,GAAIF,EAAW,CACb,MAAMG,EAAaH,EAAUP,MAAME,SAC7BS,EAAcP,EAAcQ,KAAKC,GACjCA,IAAUN,EACRT,EAAMO,SAASS,MAAMJ,GAAc,EAAUZ,EAAMO,SAASU,KAAK,MAC9DjB,EAAMkB,eAAeN,GAAcA,EAAWV,MAAME,SAAW,KAE/DW,IAGX,OAAuBI,EAAIC,EAAW,IAAKf,EAAWgB,IAAKlB,EAAcC,SAAUJ,EAAMkB,eAAeN,GAAcZ,EAAMsB,aAAaV,OAAY,EAAQC,GAAe,MAC7K,CACD,OAAuBM,EAAIC,EAAW,IAAKf,EAAWgB,IAAKlB,EAAcC,YAAW,IAEtFL,EAAKwB,YAAc,OACnB,IAAIH,EAAYpB,EAAMC,YAAW,CAACC,EAAOC,KACvC,MAAMC,SAAEA,KAAaC,GAAcH,EACnC,GA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
import*as e from"react";import*as t from"react-dom";import{composeEventHandlers as r}from"../../primitive/dist/index.mjs";import{useComposedRefs as n}from"../../react-compose-refs/dist/index.mjs";import{createCollection as o}from"../../react-collection/dist/index.mjs";import{createContextScope as s}from"../../react-context/dist/index.mjs";import{Branch as i,Root as a}from"../../react-dismissable-layer/dist/index.mjs";import{Portal as c}from"../../react-portal/dist/index.mjs";import{Presence as d}from"../../react-presence/dist/index.mjs";import{Primitive as u,dispatchDiscreteCustomEvent as l}from"../../react-primitive/dist/index.mjs";import{useCallbackRef as p}from"../../react-use-callback-ref/dist/index.mjs";import{useControllableState as f}from"../../react-use-controllable-state/dist/index.mjs";import{useLayoutEffect as m}from"../../react-use-layout-effect/dist/index.mjs";import{VisuallyHidden as v}from"../../react-visually-hidden/dist/index.mjs";import{jsxs as w,jsx as y,Fragment as T}from"react/jsx-runtime";var E="ToastProvider",[x,h,b]=o("Toast"),[g,C]=s("Toast",[b]),[R,P]=g(E),D=t=>{const{__scopeToast:r,label:n="Notification",duration:o=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:a}=t,[c,d]=e.useState(null),[u,l]=e.useState(0),p=e.useRef(!1),f=e.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${E}\`. Expected non-empty \`string\`.`),y(x.Provider,{scope:r,children:y(R,{scope:r,label:n,duration:o,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:e.useCallback((()=>l((e=>e+1))),[]),onToastRemove:e.useCallback((()=>l((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:f,children:a})})};D.displayName=E;var L="ToastViewport",S=["F8"],_="toast.viewportPause",F="toast.viewportResume",N=e.forwardRef(((t,r)=>{const{__scopeToast:o,hotkey:s=S,label:a="Notifications ({hotkey})",...c}=t,d=P(L,o),l=h(o),p=e.useRef(null),f=e.useRef(null),m=e.useRef(null),v=e.useRef(null),T=n(r,v,d.onViewportChange),E=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=d.toastCount>0;e.useEffect((()=>{const e=e=>{0!==s.length&&s.every((t=>e[t]||e.code===t))&&v.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[s]),e.useEffect((()=>{const e=p.current,t=v.current;if(b&&e&&t){const r=()=>{if(!d.isClosePausedRef.current){const e=new CustomEvent(_);t.dispatchEvent(e),d.isClosePausedRef.current=!0}},n=()=>{if(d.isClosePausedRef.current){const e=new CustomEvent(F);t.dispatchEvent(e),d.isClosePausedRef.current=!1}},o=t=>{!e.contains(t.relatedTarget)&&n()},s=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",o),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",s),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",s),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}}),[b,d.isClosePausedRef]);const g=e.useCallback((({tabbingDirection:e})=>{const t=l().map((t=>{const r=t.ref.current,n=[r,...J(r)];return"forwards"===e?n:n.reverse()}));return("forwards"===e?t.reverse():t).flat()}),[l]);return e.useEffect((()=>{const e=v.current;if(e){const t=t=>{const r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){const r=document.activeElement,n=t.shiftKey;if(t.target===e&&n)return void f.current?.focus();const o=g({tabbingDirection:n?"backwards":"forwards"}),s=o.findIndex((e=>e===r));Q(o.slice(s+1))?t.preventDefault():n?f.current?.focus():m.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[l,g]),w(i,{ref:p,role:"region","aria-label":a.replace("{hotkey}",E),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&y(I,{ref:f,onFocusFromOutsideViewport:()=>{Q(g({tabbingDirection:"forwards"}))}}),y(x.Slot,{scope:o,children:y(u.ol,{tabIndex:-1,...c,ref:T})}),b&&y(I,{ref:m,onFocusFromOutsideViewport:()=>{Q(g({tabbingDirection:"backwards"}))}})]})}));N.displayName=L;var k="ToastFocusProxy",I=e.forwardRef(((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,s=P(k,r);return y(v,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:e=>{const t=e.relatedTarget;!s.viewport?.contains(t)&&n()}})}));I.displayName=k;var A="Toast",M=e.forwardRef(((e,t)=>{const{forceMount:n,open:o,defaultOpen:s,onOpenChange:i,...a}=e,[c=!0,u]=f({prop:o,defaultProp:s,onChange:i});return y(d,{present:n||c,children:y(O,{open:c,...a,ref:t,onClose:()=>u(!1),onPause:p(e.onPause),onResume:p(e.onResume),onSwipeStart:r(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:r(e.onSwipeMove,(e=>{const{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${r}px`)})),onSwipeCancel:r(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:r(e.onSwipeEnd,(e=>{const{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${r}px`),u(!1)}))})})}));M.displayName=A;var[K,j]=g(A,{onClose(){}}),O=e.forwardRef(((o,s)=>{const{__scopeToast:i,type:c="foreground",duration:d,open:l,onClose:f,onEscapeKeyDown:m,onPause:v,onResume:E,onSwipeStart:h,onSwipeMove:b,onSwipeCancel:g,onSwipeEnd:C,...R}=o,D=P(A,i),[L,S]=e.useState(null),N=n(s,(e=>S(e))),k=e.useRef(null),I=e.useRef(null),M=d||D.duration,j=e.useRef(0),O=e.useRef(M),$=e.useRef(0),{onToastAdd:U,onToastRemove:X}=D,q=p((()=>{const e=L?.contains(document.activeElement);e&&D.viewport?.focus(),f()})),H=e.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout($.current),j.current=(new Date).getTime(),$.current=window.setTimeout(q,e))}),[q]);e.useEffect((()=>{const e=D.viewport;if(e){const t=()=>{H(O.current),E?.()},r=()=>{const e=(new Date).getTime()-j.current;O.current=O.current-e,window.clearTimeout($.current),v?.()};return e.addEventListener(_,r),e.addEventListener(F,t),()=>{e.removeEventListener(_,r),e.removeEventListener(F,t)}}}),[D.viewport,M,v,E,H]),e.useEffect((()=>{l&&!D.isClosePausedRef.current&&H(M)}),[l,M,D.isClosePausedRef,H]),e.useEffect((()=>(U(),()=>X())),[U,X]);const W=e.useMemo((()=>L?B(L):null),[L]);return D.viewport?w(T,{children:[W&&y(V,{__scopeToast:i,role:"status","aria-live":"foreground"===c?"assertive":"polite","aria-atomic":!0,children:W}),y(K,{scope:i,onClose:q,children:t.createPortal(y(x.ItemSlot,{scope:i,children:y(a,{asChild:!0,onEscapeKeyDown:r(m,(()=>{D.isFocusedToastEscapeKeyDownRef.current||q(),D.isFocusedToastEscapeKeyDownRef.current=!1})),children:y(u.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":D.swipeDirection,...R,ref:N,style:{userSelect:"none",touchAction:"none",...o.style},onKeyDown:r(o.onKeyDown,(e=>{"Escape"===e.key&&(m?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(D.isFocusedToastEscapeKeyDownRef.current=!0,q()))})),onPointerDown:r(o.onPointerDown,(e=>{0===e.button&&(k.current={x:e.clientX,y:e.clientY})})),onPointerMove:r(o.onPointerMove,(e=>{if(!k.current)return;const t=e.clientX-k.current.x,r=e.clientY-k.current.y,n=Boolean(I.current),o=["left","right"].includes(D.swipeDirection),s=["left","up"].includes(D.swipeDirection)?Math.min:Math.max,i=o?s(0,t):0,a=o?0:s(0,r),c="touch"===e.pointerType?10:2,d={x:i,y:a},u={originalEvent:e,delta:d};n?(I.current=d,z("toast.swipeMove",b,u,{discrete:!1})):G(d,D.swipeDirection,c)?(I.current=d,z("toast.swipeStart",h,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(r)>c)&&(k.current=null)})),onPointerUp:r(o.onPointerUp,(e=>{const t=I.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),I.current=null,k.current=null,t){const r=e.currentTarget,n={originalEvent:e,delta:t};G(t,D.swipeDirection,D.swipeThreshold)?z("toast.swipeEnd",C,n,{discrete:!0}):z("toast.swipeCancel",g,n,{discrete:!0}),r.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})})}),D.viewport)})]}):null})),V=t=>{const{__scopeToast:r,children:n,...o}=t,s=P(A,r),[i,a]=e.useState(!1),[d,u]=e.useState(!1);return function(e=()=>{}){const t=p(e);m((()=>{let e=0,r=0;return e=window.requestAnimationFrame((()=>r=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}}),[t])}((()=>a(!0))),e.useEffect((()=>{const e=window.setTimeout((()=>u(!0)),1e3);return()=>window.clearTimeout(e)}),[]),d?null:y(c,{asChild:!0,children:y(v,{...o,children:i&&w(T,{children:[s.label," ",n]})})})},$=e.forwardRef(((e,t)=>{const{__scopeToast:r,...n}=e;return y(u.div,{...n,ref:t})}));$.displayName="ToastTitle";var U=e.forwardRef(((e,t)=>{const{__scopeToast:r,...n}=e;return y(u.div,{...n,ref:t})}));U.displayName="ToastDescription";var X="ToastAction",q=e.forwardRef(((e,t)=>{const{altText:r,...n}=e;return r.trim()?y(Y,{altText:r,asChild:!0,children:y(W,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${X}\`. Expected non-empty \`string\`.`),null)}));q.displayName=X;var H="ToastClose",W=e.forwardRef(((e,t)=>{const{__scopeToast:n,...o}=e,s=j(H,n);return y(Y,{asChild:!0,children:y(u.button,{type:"button",...o,ref:t,onClick:r(e.onClick,s.onClose)})})}));W.displayName=H;var Y=e.forwardRef(((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return y(u.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})}));function B(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const r=e.ariaHidden||e.hidden||"none"===e.style.display,n=""===e.dataset.radixToastAnnounceExclude;if(!r)if(n){const r=e.dataset.radixToastAnnounceAlt;r&&t.push(r)}else t.push(...B(e))}})),t}function z(e,t,r,{discrete:n}){const o=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?l(o,s):o.dispatchEvent(s)}var G=(e,t,r=0)=>{const n=Math.abs(e.x),o=Math.abs(e.y),s=n>o;return"left"===t||"right"===t?s&&n>r:!s&&o>r};function J(e){const t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t}function Q(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}var Z=D,ee=N,te=M,re=$,ne=U,oe=q;export{oe as Action,ne as Description,Z as Provider,te as Root,re as Title,M as Toast,q as ToastAction,W as ToastClose,U as ToastDescription,D as ToastProvider,$ as ToastTitle,N as ToastViewport,ee as Viewport,C as createToastScope};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|