@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
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-select/dist/index.mjs
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import*as t from"react-dom";import{clamp as o}from"../../../../../number/dist/index.mjs";import{composeEventHandlers as n}from"../../../../../primitive/dist/index.mjs";import{createCollection as r}from"../../../../../react-collection/dist/index.mjs";import{useComposedRefs as l}from"../../../../../react-compose-refs/dist/index.mjs";import{createContextScope as i}from"../../react-context/dist/index.mjs";import{useDirection as a}from"../../../../../react-direction/dist/index.mjs";import{DismissableLayer as s}from"../../react-dismissable-layer/dist/index.mjs";import{useFocusGuards as c}from"../../react-focus-guards/dist/index.mjs";import{FocusScope as d}from"../../../../../react-focus-scope/dist/index.mjs";import{useId as u}from"../../../../../react-id/dist/index.mjs";import{createPopperScope as p,Anchor as f,Content as m,Arrow as h,Root as v}from"../../../../../react-popper/dist/index.mjs";import{Portal as g}from"../../react-portal/dist/index.mjs";import{Primitive as w}from"../../../../../react-primitive/dist/index.mjs";import{Slot as y}from"../../../../../react-slot/dist/index.mjs";import{useCallbackRef as S}from"../../../../../react-use-callback-ref/dist/index.mjs";import{useControllableState as x}from"../../../../../react-use-controllable-state/dist/index.mjs";import{useLayoutEffect as b}from"../../../../../react-use-layout-effect/dist/index.mjs";import{usePrevious as C}from"../../../../../react-use-previous/dist/index.mjs";import{VisuallyHidden as P}from"../../../../../react-visually-hidden/dist/index.mjs";import{hideOthers as _}from"aria-hidden";import{RemoveScroll as R}from"react-remove-scroll";import{jsx as I,Fragment as T,jsxs as k}from"react/jsx-runtime";var E=[" ","Enter","ArrowUp","ArrowDown"],D=[" ","Enter"],N="Select",[L,M,O]=r(N),[j,H]=i(N,[O,p]),A=p(),[B,V]=j(N),[K,W]=j(N),F=t=>{const{__scopeSelect:o,children:n,open:r,defaultOpen:l,onOpenChange:i,value:s,defaultValue:c,onValueChange:d,dir:p,name:f,autoComplete:m,disabled:h,required:g}=t,w=A(o),[y,S]=e.useState(null),[b,C]=e.useState(null),[P,_]=e.useState(!1),R=a(p),[T=!1,E]=x({prop:r,defaultProp:l,onChange:i}),[D,N]=x({prop:s,defaultProp:c,onChange:d}),M=e.useRef(null),O=!y||Boolean(y.closest("form")),[j,H]=e.useState(new Set),V=Array.from(j).map((e=>e.props.value)).join(";");return I(v,{...w,children:k(B,{required:g,scope:o,trigger:y,onTriggerChange:S,valueNode:b,onValueNodeChange:C,valueNodeHasChildren:P,onValueNodeHasChildrenChange:_,contentId:u(),value:D,onValueChange:N,open:T,onOpenChange:E,dir:R,triggerPointerDownPosRef:M,disabled:h,children:[I(L.Provider,{scope:o,children:I(K,{scope:t.__scopeSelect,onNativeOptionAdd:e.useCallback((e=>{H((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:e.useCallback((e=>{H((t=>{const o=new Set(t);return o.delete(e),o}))}),[]),children:n})}),O?k(De,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:m,value:D,onChange:e=>N(e.target.value),disabled:h,children:[void 0===D?I("option",{value:""}):null,Array.from(j)]},V):null]})})};F.displayName=N;var U="SelectTrigger",q=e.forwardRef(((e,t)=>{const{__scopeSelect:o,disabled:r=!1,...i}=e,a=A(o),s=V(U,o),c=s.disabled||r,d=l(t,s.onTriggerChange),u=M(o),[p,m,h]=Ne((e=>{const t=u().filter((e=>!e.disabled)),o=t.find((e=>e.value===s.value)),n=Le(t,e,o);void 0!==n&&s.onValueChange(n.value)})),v=()=>{c||(s.onOpenChange(!0),h())};return I(f,{asChild:!0,...a,children:I(w.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Ee(s.value)?"":void 0,...i,ref:d,onClick:n(i.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:n(i.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(v(),s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:n(i.onKeyDown,(e=>{const t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||E.includes(e.key)&&(v(),e.preventDefault())}))})})}));q.displayName=U;var z="SelectValue",X=e.forwardRef(((e,t)=>{const{__scopeSelect:o,className:n,style:r,children:i,placeholder:a="",...s}=e,c=V(z,o),{onValueNodeHasChildrenChange:d}=c,u=void 0!==i,p=l(t,c.onValueNodeChange);return b((()=>{d(u)}),[d,u]),I(w.span,{...s,ref:p,style:{pointerEvents:"none"},children:Ee(c.value)?I(T,{children:a}):i})}));X.displayName=z;var Y=e.forwardRef(((e,t)=>{const{__scopeSelect:o,children:n,...r}=e;return I(w.span,{"aria-hidden":!0,...r,ref:t,children:n||"▼"})}));Y.displayName="SelectIcon";var G=e=>I(g,{asChild:!0,...e});G.displayName="SelectPortal";var Z="SelectContent",$=e.forwardRef(((o,n)=>{const r=V(Z,o.__scopeSelect),[l,i]=e.useState();if(b((()=>{i(new DocumentFragment)}),[]),!r.open){const e=l;return e?t.createPortal(I(Q,{scope:o.__scopeSelect,children:I(L.Slot,{scope:o.__scopeSelect,children:I("div",{children:o.children})})}),e):null}return I(te,{...o,ref:n})}));$.displayName=Z;var J=10,[Q,ee]=j(Z),te=e.forwardRef(((t,o)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:u,onPointerDownOutside:p,side:f,sideOffset:m,align:h,alignOffset:v,arrowPadding:g,collisionBoundary:w,collisionPadding:S,sticky:x,hideWhenDetached:b,avoidCollisions:C,...P}=t,T=V(Z,r),[k,E]=e.useState(null),[D,N]=e.useState(null),L=l(o,(e=>E(e))),[O,j]=e.useState(null),[H,A]=e.useState(null),B=M(r),[K,W]=e.useState(!1),F=e.useRef(!1);e.useEffect((()=>{if(k)return _(k)}),[k]),c();const U=e.useCallback((e=>{const[t,...o]=B().map((e=>e.ref.current)),[n]=o.slice(-1),r=document.activeElement;for(const o of e){if(o===r)return;if(o?.scrollIntoView({block:"nearest"}),o===t&&D&&(D.scrollTop=0),o===n&&D&&(D.scrollTop=D.scrollHeight),o?.focus(),document.activeElement!==r)return}}),[B,D]),q=e.useCallback((()=>U([O,k])),[U,O,k]);e.useEffect((()=>{K&&q()}),[K,q]);const{onOpenChange:z,triggerPointerDownPosRef:X}=T;e.useEffect((()=>{if(k){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(X.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(X.current?.y??0))}},o=o=>{e.x<=10&&e.y<=10?o.preventDefault():k.contains(o.target)||z(!1),document.removeEventListener("pointermove",t),X.current=null};return null!==X.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",o,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",o,{capture:!0})}}}),[k,z,X]),e.useEffect((()=>{const e=()=>z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[z]);const[Y,G]=Ne((e=>{const t=B().filter((e=>!e.disabled)),o=t.find((e=>e.ref.current===document.activeElement)),n=Le(t,e,o);n&&setTimeout((()=>n.ref.current.focus()))})),$=e.useCallback(((e,t,o)=>{const n=!F.current&&!o;(void 0!==T.value&&T.value===t||n)&&(j(e),n&&(F.current=!0))}),[T.value]),J=e.useCallback((()=>k?.focus()),[k]),ee=e.useCallback(((e,t,o)=>{const n=!F.current&&!o;(void 0!==T.value&&T.value===t||n)&&A(e)}),[T.value]),te="popper"===i?ne:oe,re=te===ne?{side:f,sideOffset:m,align:h,alignOffset:v,arrowPadding:g,collisionBoundary:w,collisionPadding:S,sticky:x,hideWhenDetached:b,avoidCollisions:C}:{};return I(Q,{scope:r,content:k,viewport:D,onViewportChange:N,itemRefCallback:$,selectedItem:O,onItemLeave:J,itemTextRefCallback:ee,focusSelectedItem:q,selectedItemText:H,position:i,isPositioned:K,searchRef:Y,children:I(R,{as:y,allowPinchZoom:!0,children:I(d,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:n(a,(e=>{T.trigger?.focus({preventScroll:!0}),e.preventDefault()})),children:I(s,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:I(te,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:e=>e.preventDefault(),...P,...re,onPlaced:()=>W(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...P.style},onKeyDown:n(P.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||G(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=B().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const o=e.target,n=t.indexOf(o);t=t.slice(n+1)}setTimeout((()=>U(t))),e.preventDefault()}}))})})})})})}));te.displayName="SelectContentImpl";var oe=e.forwardRef(((t,n)=>{const{__scopeSelect:r,onPlaced:i,...a}=t,s=V(Z,r),c=ee(Z,r),[d,u]=e.useState(null),[p,f]=e.useState(null),m=l(n,(e=>f(e))),h=M(r),v=e.useRef(!1),g=e.useRef(!0),{viewport:y,selectedItem:S,selectedItemText:x,focusSelectedItem:C}=c,P=e.useCallback((()=>{if(s.trigger&&s.valueNode&&d&&p&&y&&S&&x){const e=s.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=x.getBoundingClientRect();if("rtl"!==s.dir){const l=r.left-t.left,i=n.left-l,a=e.left-i,s=e.width+a,c=Math.max(s,t.width),u=window.innerWidth-J,p=o(i,[J,u-c]);d.style.minWidth=s+"px",d.style.left=p+"px"}else{const l=t.right-r.right,i=window.innerWidth-n.right-l,a=window.innerWidth-e.right-i,s=e.width+a,c=Math.max(s,t.width),u=window.innerWidth-J,p=o(i,[J,u-c]);d.style.minWidth=s+"px",d.style.right=p+"px"}const l=h(),a=window.innerHeight-2*J,c=y.scrollHeight,u=window.getComputedStyle(p),f=parseInt(u.borderTopWidth,10),m=parseInt(u.paddingTop,10),g=parseInt(u.borderBottomWidth,10),w=f+m+c+parseInt(u.paddingBottom,10)+g,b=Math.min(5*S.offsetHeight,w),C=window.getComputedStyle(y),P=parseInt(C.paddingTop,10),_=parseInt(C.paddingBottom,10),R=e.top+e.height/2-J,I=a-R,T=S.offsetHeight/2,k=f+m+(S.offsetTop+T),E=w-k;if(k<=R){const e=S===l[l.length-1].ref.current;d.style.bottom="0px";const t=p.clientHeight-y.offsetTop-y.offsetHeight,o=k+Math.max(I,T+(e?_:0)+t+g);d.style.height=o+"px"}else{const e=S===l[0].ref.current;d.style.top="0px";const t=Math.max(R,f+y.offsetTop+(e?P:0)+T)+E;d.style.height=t+"px",y.scrollTop=k-R+y.offsetTop}d.style.margin=`${J}px 0`,d.style.minHeight=b+"px",d.style.maxHeight=a+"px",i?.(),requestAnimationFrame((()=>v.current=!0))}}),[h,s.trigger,s.valueNode,d,p,y,S,x,s.dir,i]);b((()=>P()),[P]);const[_,R]=e.useState();b((()=>{p&&R(window.getComputedStyle(p).zIndex)}),[p]);const T=e.useCallback((e=>{e&&!0===g.current&&(P(),C?.(),g.current=!1)}),[P,C]);return I(re,{scope:r,contentWrapper:d,shouldExpandOnScrollRef:v,onScrollButtonChange:T,children:I("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:I(w.div,{...a,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})}));oe.displayName="SelectItemAlignedPosition";var ne=e.forwardRef(((e,t)=>{const{__scopeSelect:o,align:n="start",collisionPadding:r=J,...l}=e,i=A(o);return I(m,{...i,...l,ref:t,align:n,collisionPadding:r,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})}));ne.displayName="SelectPopperPosition";var[re,le]=j(Z,{}),ie="SelectViewport",ae=e.forwardRef(((t,o)=>{const{__scopeSelect:r,nonce:i,...a}=t,s=ee(ie,r),c=le(ie,r),d=l(o,s.onViewportChange),u=e.useRef(0);return k(T,{children:[I("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),I(L.Slot,{scope:r,children:I(w.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:d,style:{position:"relative",flex:1,overflow:"auto",...a.style},onScroll:n(a.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:o,shouldExpandOnScrollRef:n}=c;if(n?.current&&o){const e=Math.abs(u.current-t.scrollTop);if(e>0){const n=window.innerHeight-2*J,r=parseFloat(o.style.minHeight),l=parseFloat(o.style.height),i=Math.max(r,l);if(i<n){const r=i+e,l=Math.min(n,r),a=r-l;o.style.height=l+"px","0px"===o.style.bottom&&(t.scrollTop=a>0?a:0,o.style.justifyContent="flex-end")}}}u.current=t.scrollTop}))})})]})}));ae.displayName=ie;var se="SelectGroup",[ce,de]=j(se),ue=e.forwardRef(((e,t)=>{const{__scopeSelect:o,...n}=e,r=u();return I(ce,{scope:o,id:r,children:I(w.div,{role:"group","aria-labelledby":r,...n,ref:t})})}));ue.displayName=se;var pe="SelectLabel",fe=e.forwardRef(((e,t)=>{const{__scopeSelect:o,...n}=e,r=de(pe,o);return I(w.div,{id:r.id,...n,ref:t})}));fe.displayName=pe;var me="SelectItem",[he,ve]=j(me),ge=e.forwardRef(((t,o)=>{const{__scopeSelect:r,value:i,disabled:a=!1,textValue:s,...c}=t,d=V(me,r),p=ee(me,r),f=d.value===i,[m,h]=e.useState(s??""),[v,g]=e.useState(!1),y=l(o,(e=>p.itemRefCallback?.(e,i,a))),S=u(),x=()=>{a||(d.onValueChange(i),d.onOpenChange(!1))};if(""===i)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return I(he,{scope:r,value:i,disabled:a,textId:S,isSelected:f,onItemTextChange:e.useCallback((e=>{h((t=>t||(e?.textContent??"").trim()))}),[]),children:I(L.ItemSlot,{scope:r,value:i,disabled:a,textValue:m,children:I(w.div,{role:"option","aria-labelledby":S,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...c,ref:y,onFocus:n(c.onFocus,(()=>g(!0))),onBlur:n(c.onBlur,(()=>g(!1))),onPointerUp:n(c.onPointerUp,x),onPointerMove:n(c.onPointerMove,(e=>{a?p.onItemLeave?.():e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:n(c.onPointerLeave,(e=>{e.currentTarget===document.activeElement&&p.onItemLeave?.()})),onKeyDown:n(c.onKeyDown,(e=>{""!==p.searchRef?.current&&" "===e.key||(D.includes(e.key)&&x()," "===e.key&&e.preventDefault())}))})})})}));ge.displayName=me;var we="SelectItemText",ye=e.forwardRef(((o,n)=>{const{__scopeSelect:r,className:i,style:a,...s}=o,c=V(we,r),d=ee(we,r),u=ve(we,r),p=W(we,r),[f,m]=e.useState(null),h=l(n,(e=>m(e)),u.onItemTextChange,(e=>d.itemTextRefCallback?.(e,u.value,u.disabled))),v=f?.textContent,g=e.useMemo((()=>I("option",{value:u.value,disabled:u.disabled,children:v},u.value)),[u.disabled,u.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:S}=p;return b((()=>(y(g),()=>S(g))),[y,S,g]),k(T,{children:[I(w.span,{id:u.textId,...s,ref:h}),u.isSelected&&c.valueNode&&!c.valueNodeHasChildren?t.createPortal(s.children,c.valueNode):null]})}));ye.displayName=we;var Se="SelectItemIndicator",xe=e.forwardRef(((e,t)=>{const{__scopeSelect:o,...n}=e;return ve(Se,o).isSelected?I(w.span,{"aria-hidden":!0,...n,ref:t}):null}));xe.displayName=Se;var be="SelectScrollUpButton",Ce=e.forwardRef(((t,o)=>{const n=ee(be,t.__scopeSelect),r=le(be,t.__scopeSelect),[i,a]=e.useState(!1),s=l(o,r.onScrollButtonChange);return b((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;a(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),i?I(Re,{...t,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}));Ce.displayName=be;var Pe="SelectScrollDownButton",_e=e.forwardRef(((t,o)=>{const n=ee(Pe,t.__scopeSelect),r=le(Pe,t.__scopeSelect),[i,a]=e.useState(!1),s=l(o,r.onScrollButtonChange);return b((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,o=Math.ceil(t.scrollTop)<e;a(o)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),i?I(Re,{...t,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}));_e.displayName=Pe;var Re=e.forwardRef(((t,o)=>{const{__scopeSelect:r,onAutoScroll:l,...i}=t,a=ee("SelectScrollButton",r),s=e.useRef(null),c=M(r),d=e.useCallback((()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)}),[]);return e.useEffect((()=>()=>d()),[d]),b((()=>{const e=c().find((e=>e.ref.current===document.activeElement));e?.ref.current?.scrollIntoView({block:"nearest"})}),[c]),I(w.div,{"aria-hidden":!0,...i,ref:o,style:{flexShrink:0,...i.style},onPointerDown:n(i.onPointerDown,(()=>{null===s.current&&(s.current=window.setInterval(l,50))})),onPointerMove:n(i.onPointerMove,(()=>{a.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(l,50))})),onPointerLeave:n(i.onPointerLeave,(()=>{d()}))})})),Ie=e.forwardRef(((e,t)=>{const{__scopeSelect:o,...n}=e;return I(w.div,{"aria-hidden":!0,...n,ref:t})}));Ie.displayName="SelectSeparator";var Te="SelectArrow",ke=e.forwardRef(((e,t)=>{const{__scopeSelect:o,...n}=e,r=A(o),l=V(Te,o),i=ee(Te,o);return l.open&&"popper"===i.position?I(h,{...r,...n,ref:t}):null}));function Ee(e){return""===e||void 0===e}ke.displayName=Te;var De=e.forwardRef(((t,o)=>{const{value:n,...r}=t,i=e.useRef(null),a=l(o,i),s=C(n);return e.useEffect((()=>{const e=i.current,t=window.HTMLSelectElement.prototype,o=Object.getOwnPropertyDescriptor(t,"value").set;if(s!==n&&o){const t=new Event("change",{bubbles:!0});o.call(e,n),e.dispatchEvent(t)}}),[s,n]),I(P,{asChild:!0,children:I("select",{...r,ref:a,defaultValue:n})})}));function Ne(t){const o=S(t),n=e.useRef(""),r=e.useRef(0),l=e.useCallback((e=>{const t=n.current+e;o(t),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(t)}),[o]),i=e.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return e.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,l,i]}function Le(e,t,o){const n=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,r=o?e.indexOf(o):-1;let l=(i=e,a=Math.max(r,0),i.map(((e,t)=>i[(a+t)%i.length])));var i,a;1===n.length&&(l=l.filter((e=>e!==o)));const s=l.find((e=>e.textValue.toLowerCase().startsWith(n.toLowerCase())));return s!==o?s:void 0}De.displayName="BubbleSelect";var Me=F,Oe=q,je=X,He=Y,Ae=G,Be=$,Ve=ae,Ke=ue,We=fe,Fe=ge,Ue=ye,qe=xe,ze=Ie;export{Be as Content,Ke as Group,He as Icon,Fe as Item,qe as ItemIndicator,Ue as ItemText,We as Label,Ae as Portal,Me as Root,F as Select,ke as SelectArrow,$ as SelectContent,ue as SelectGroup,Y as SelectIcon,ge as SelectItem,xe as SelectItemIndicator,ye as SelectItemText,fe as SelectLabel,G as SelectPortal,_e as SelectScrollDownButton,Ce as SelectScrollUpButton,Ie as SelectSeparator,q as SelectTrigger,X as SelectValue,ae as SelectViewport,ze as Separator,Oe as Trigger,je as Value,Ve as Viewport,H as createSelectScope};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-select/dist/index.mjs.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/themes/node_modules/@radix-ui/react-select/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/select/src/Select.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { clamp } from \"@radix-ui/number\";\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 { useDirection } from \"@radix-ui/react-direction\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { VisuallyHidden } from \"@radix-ui/react-visually-hidden\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar OPEN_KEYS = [\" \", \"Enter\", \"ArrowUp\", \"ArrowDown\"];\nvar SELECTION_KEYS = [\" \", \"Enter\"];\nvar SELECT_NAME = \"Select\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(SELECT_NAME);\nvar [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME, [\n createCollectionScope,\n createPopperScope\n]);\nvar usePopperScope = createPopperScope();\nvar [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME);\nvar [SelectNativeOptionsProvider, useSelectNativeOptionsContext] = createSelectContext(SELECT_NAME);\nvar Select = (props) => {\n const {\n __scopeSelect,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n value: valueProp,\n defaultValue,\n onValueChange,\n dir,\n name,\n autoComplete,\n disabled,\n required\n } = props;\n const popperScope = usePopperScope(__scopeSelect);\n const [trigger, setTrigger] = React.useState(null);\n const [valueNode, setValueNode] = React.useState(null);\n const [valueNodeHasChildren, setValueNodeHasChildren] = React.useState(false);\n const direction = useDirection(dir);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n const triggerPointerDownPosRef = React.useRef(null);\n const isFormControl = trigger ? Boolean(trigger.closest(\"form\")) : true;\n const [nativeOptionsSet, setNativeOptionsSet] = React.useState(/* @__PURE__ */ new Set());\n const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(\";\");\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsxs(\n SelectProvider,\n {\n required,\n scope: __scopeSelect,\n trigger,\n onTriggerChange: setTrigger,\n valueNode,\n onValueNodeChange: setValueNode,\n valueNodeHasChildren,\n onValueNodeHasChildrenChange: setValueNodeHasChildren,\n contentId: useId(),\n value,\n onValueChange: setValue,\n open,\n onOpenChange: setOpen,\n dir: direction,\n triggerPointerDownPosRef,\n disabled,\n children: [\n /* @__PURE__ */ jsx(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(\n SelectNativeOptionsProvider,\n {\n scope: props.__scopeSelect,\n onNativeOptionAdd: React.useCallback((option) => {\n setNativeOptionsSet((prev) => new Set(prev).add(option));\n }, []),\n onNativeOptionRemove: React.useCallback((option) => {\n setNativeOptionsSet((prev) => {\n const optionsSet = new Set(prev);\n optionsSet.delete(option);\n return optionsSet;\n });\n }, []),\n children\n }\n ) }),\n isFormControl ? /* @__PURE__ */ jsxs(\n BubbleSelect,\n {\n \"aria-hidden\": true,\n required,\n tabIndex: -1,\n name,\n autoComplete,\n value,\n onChange: (event) => setValue(event.target.value),\n disabled,\n children: [\n value === void 0 ? /* @__PURE__ */ jsx(\"option\", { value: \"\" }) : null,\n Array.from(nativeOptionsSet)\n ]\n },\n nativeSelectKey\n ) : null\n ]\n }\n ) });\n};\nSelect.displayName = SELECT_NAME;\nvar TRIGGER_NAME = \"SelectTrigger\";\nvar SelectTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, disabled = false, ...triggerProps } = props;\n const popperScope = usePopperScope(__scopeSelect);\n const context = useSelectContext(TRIGGER_NAME, __scopeSelect);\n const isDisabled = context.disabled || disabled;\n const composedRefs = useComposedRefs(forwardedRef, context.onTriggerChange);\n const getItems = useCollection(__scopeSelect);\n const [searchRef, handleTypeaheadSearch, resetTypeahead] = useTypeaheadSearch((search) => {\n const enabledItems = getItems().filter((item) => !item.disabled);\n const currentItem = enabledItems.find((item) => item.value === context.value);\n const nextItem = findNextItem(enabledItems, search, currentItem);\n if (nextItem !== void 0) {\n context.onValueChange(nextItem.value);\n }\n });\n const handleOpen = () => {\n if (!isDisabled) {\n context.onOpenChange(true);\n resetTypeahead();\n }\n };\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"combobox\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open,\n \"aria-required\": context.required,\n \"aria-autocomplete\": \"none\",\n dir: context.dir,\n \"data-state\": context.open ? \"open\" : \"closed\",\n disabled: isDisabled,\n \"data-disabled\": isDisabled ? \"\" : void 0,\n \"data-placeholder\": shouldShowPlaceholder(context.value) ? \"\" : void 0,\n ...triggerProps,\n ref: composedRefs,\n onClick: composeEventHandlers(triggerProps.onClick, (event) => {\n event.currentTarget.focus();\n }),\n onPointerDown: composeEventHandlers(triggerProps.onPointerDown, (event) => {\n const target = event.target;\n if (target.hasPointerCapture(event.pointerId)) {\n target.releasePointerCapture(event.pointerId);\n }\n if (event.button === 0 && event.ctrlKey === false) {\n handleOpen();\n context.triggerPointerDownPosRef.current = {\n x: Math.round(event.pageX),\n y: Math.round(event.pageY)\n };\n event.preventDefault();\n }\n }),\n onKeyDown: composeEventHandlers(triggerProps.onKeyDown, (event) => {\n const isTypingAhead = searchRef.current !== \"\";\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);\n if (isTypingAhead && event.key === \" \") return;\n if (OPEN_KEYS.includes(event.key)) {\n handleOpen();\n event.preventDefault();\n }\n })\n }\n ) });\n }\n);\nSelectTrigger.displayName = TRIGGER_NAME;\nvar VALUE_NAME = \"SelectValue\";\nvar SelectValue = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, className, style, children, placeholder = \"\", ...valueProps } = props;\n const context = useSelectContext(VALUE_NAME, __scopeSelect);\n const { onValueNodeHasChildrenChange } = context;\n const hasChildren = children !== void 0;\n const composedRefs = useComposedRefs(forwardedRef, context.onValueNodeChange);\n useLayoutEffect(() => {\n onValueNodeHasChildrenChange(hasChildren);\n }, [onValueNodeHasChildrenChange, hasChildren]);\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...valueProps,\n ref: composedRefs,\n style: { pointerEvents: \"none\" },\n children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx(Fragment, { children: placeholder }) : children\n }\n );\n }\n);\nSelectValue.displayName = VALUE_NAME;\nvar ICON_NAME = \"SelectIcon\";\nvar SelectIcon = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, children, ...iconProps } = props;\n return /* @__PURE__ */ jsx(Primitive.span, { \"aria-hidden\": true, ...iconProps, ref: forwardedRef, children: children || \"\\u25BC\" });\n }\n);\nSelectIcon.displayName = ICON_NAME;\nvar PORTAL_NAME = \"SelectPortal\";\nvar SelectPortal = (props) => {\n return /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, ...props });\n};\nSelectPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"SelectContent\";\nvar SelectContent = React.forwardRef(\n (props, forwardedRef) => {\n const context = useSelectContext(CONTENT_NAME, props.__scopeSelect);\n const [fragment, setFragment] = React.useState();\n useLayoutEffect(() => {\n setFragment(new DocumentFragment());\n }, []);\n if (!context.open) {\n const frag = fragment;\n return frag ? ReactDOM.createPortal(\n /* @__PURE__ */ jsx(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx(\"div\", { children: props.children }) }) }),\n frag\n ) : null;\n }\n return /* @__PURE__ */ jsx(SelectContentImpl, { ...props, ref: forwardedRef });\n }\n);\nSelectContent.displayName = CONTENT_NAME;\nvar CONTENT_MARGIN = 10;\nvar [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME);\nvar CONTENT_IMPL_NAME = \"SelectContentImpl\";\nvar SelectContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeSelect,\n position = \"item-aligned\",\n onCloseAutoFocus,\n onEscapeKeyDown,\n onPointerDownOutside,\n //\n // PopperContent props\n side,\n sideOffset,\n align,\n alignOffset,\n arrowPadding,\n collisionBoundary,\n collisionPadding,\n sticky,\n hideWhenDetached,\n avoidCollisions,\n //\n ...contentProps\n } = props;\n const context = useSelectContext(CONTENT_NAME, __scopeSelect);\n const [content, setContent] = React.useState(null);\n const [viewport, setViewport] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [selectedItem, setSelectedItem] = React.useState(null);\n const [selectedItemText, setSelectedItemText] = React.useState(\n null\n );\n const getItems = useCollection(__scopeSelect);\n const [isPositioned, setIsPositioned] = React.useState(false);\n const firstValidItemFoundRef = React.useRef(false);\n React.useEffect(() => {\n if (content) return hideOthers(content);\n }, [content]);\n useFocusGuards();\n const focusFirst = React.useCallback(\n (candidates) => {\n const [firstItem, ...restItems] = getItems().map((item) => item.ref.current);\n const [lastItem] = restItems.slice(-1);\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate?.scrollIntoView({ block: \"nearest\" });\n if (candidate === firstItem && viewport) viewport.scrollTop = 0;\n if (candidate === lastItem && viewport) viewport.scrollTop = viewport.scrollHeight;\n candidate?.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n },\n [getItems, viewport]\n );\n const focusSelectedItem = React.useCallback(\n () => focusFirst([selectedItem, content]),\n [focusFirst, selectedItem, content]\n );\n React.useEffect(() => {\n if (isPositioned) {\n focusSelectedItem();\n }\n }, [isPositioned, focusSelectedItem]);\n const { onOpenChange, triggerPointerDownPosRef } = context;\n React.useEffect(() => {\n if (content) {\n let pointerMoveDelta = { x: 0, y: 0 };\n const handlePointerMove = (event) => {\n pointerMoveDelta = {\n x: Math.abs(Math.round(event.pageX) - (triggerPointerDownPosRef.current?.x ?? 0)),\n y: Math.abs(Math.round(event.pageY) - (triggerPointerDownPosRef.current?.y ?? 0))\n };\n };\n const handlePointerUp = (event) => {\n if (pointerMoveDelta.x <= 10 && pointerMoveDelta.y <= 10) {\n event.preventDefault();\n } else {\n if (!content.contains(event.target)) {\n onOpenChange(false);\n }\n }\n document.removeEventListener(\"pointermove\", handlePointerMove);\n triggerPointerDownPosRef.current = null;\n };\n if (triggerPointerDownPosRef.current !== null) {\n document.addEventListener(\"pointermove\", handlePointerMove);\n document.addEventListener(\"pointerup\", handlePointerUp, { capture: true, once: true });\n }\n return () => {\n document.removeEventListener(\"pointermove\", handlePointerMove);\n document.removeEventListener(\"pointerup\", handlePointerUp, { capture: true });\n };\n }\n }, [content, onOpenChange, triggerPointerDownPosRef]);\n React.useEffect(() => {\n const close = () => onOpenChange(false);\n window.addEventListener(\"blur\", close);\n window.addEventListener(\"resize\", close);\n return () => {\n window.removeEventListener(\"blur\", close);\n window.removeEventListener(\"resize\", close);\n };\n }, [onOpenChange]);\n const [searchRef, handleTypeaheadSearch] = useTypeaheadSearch((search) => {\n const enabledItems = getItems().filter((item) => !item.disabled);\n const currentItem = enabledItems.find((item) => item.ref.current === document.activeElement);\n const nextItem = findNextItem(enabledItems, search, currentItem);\n if (nextItem) {\n setTimeout(() => nextItem.ref.current.focus());\n }\n });\n const itemRefCallback = React.useCallback(\n (node, value, disabled) => {\n const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;\n const isSelectedItem = context.value !== void 0 && context.value === value;\n if (isSelectedItem || isFirstValidItem) {\n setSelectedItem(node);\n if (isFirstValidItem) firstValidItemFoundRef.current = true;\n }\n },\n [context.value]\n );\n const handleItemLeave = React.useCallback(() => content?.focus(), [content]);\n const itemTextRefCallback = React.useCallback(\n (node, value, disabled) => {\n const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;\n const isSelectedItem = context.value !== void 0 && context.value === value;\n if (isSelectedItem || isFirstValidItem) {\n setSelectedItemText(node);\n }\n },\n [context.value]\n );\n const SelectPosition = position === \"popper\" ? SelectPopperPosition : SelectItemAlignedPosition;\n const popperContentProps = SelectPosition === SelectPopperPosition ? {\n side,\n sideOffset,\n align,\n alignOffset,\n arrowPadding,\n collisionBoundary,\n collisionPadding,\n sticky,\n hideWhenDetached,\n avoidCollisions\n } : {};\n return /* @__PURE__ */ jsx(\n SelectContentProvider,\n {\n scope: __scopeSelect,\n content,\n viewport,\n onViewportChange: setViewport,\n itemRefCallback,\n selectedItem,\n onItemLeave: handleItemLeave,\n itemTextRefCallback,\n focusSelectedItem,\n selectedItemText,\n position,\n isPositioned,\n searchRef,\n children: /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n trapped: context.open,\n onMountAutoFocus: (event) => {\n event.preventDefault();\n },\n onUnmountAutoFocus: composeEventHandlers(onCloseAutoFocus, (event) => {\n context.trigger?.focus({ preventScroll: true });\n event.preventDefault();\n }),\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents: true,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside: (event) => event.preventDefault(),\n onDismiss: () => context.onOpenChange(false),\n children: /* @__PURE__ */ jsx(\n SelectPosition,\n {\n role: \"listbox\",\n id: context.contentId,\n \"data-state\": context.open ? \"open\" : \"closed\",\n dir: context.dir,\n onContextMenu: (event) => event.preventDefault(),\n ...contentProps,\n ...popperContentProps,\n onPlaced: () => setIsPositioned(true),\n ref: composedRefs,\n style: {\n // flex layout so we can place the scroll buttons properly\n display: \"flex\",\n flexDirection: \"column\",\n // reset the outline by default as the content MAY get focused\n outline: \"none\",\n ...contentProps.style\n },\n onKeyDown: composeEventHandlers(contentProps.onKeyDown, (event) => {\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n if (event.key === \"Tab\") event.preventDefault();\n if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);\n if ([\"ArrowUp\", \"ArrowDown\", \"Home\", \"End\"].includes(event.key)) {\n const items = getItems().filter((item) => !item.disabled);\n let candidateNodes = items.map((item) => item.ref.current);\n if ([\"ArrowUp\", \"End\"].includes(event.key)) {\n candidateNodes = candidateNodes.slice().reverse();\n }\n if ([\"ArrowUp\", \"ArrowDown\"].includes(event.key)) {\n const currentElement = event.target;\n const currentIndex = candidateNodes.indexOf(currentElement);\n candidateNodes = candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n event.preventDefault();\n }\n })\n }\n )\n }\n )\n }\n ) })\n }\n );\n }\n);\nSelectContentImpl.displayName = CONTENT_IMPL_NAME;\nvar ITEM_ALIGNED_POSITION_NAME = \"SelectItemAlignedPosition\";\nvar SelectItemAlignedPosition = React.forwardRef((props, forwardedRef) => {\n const { __scopeSelect, onPlaced, ...popperProps } = props;\n const context = useSelectContext(CONTENT_NAME, __scopeSelect);\n const contentContext = useSelectContentContext(CONTENT_NAME, __scopeSelect);\n const [contentWrapper, setContentWrapper] = React.useState(null);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const getItems = useCollection(__scopeSelect);\n const shouldExpandOnScrollRef = React.useRef(false);\n const shouldRepositionRef = React.useRef(true);\n const { viewport, selectedItem, selectedItemText, focusSelectedItem } = contentContext;\n const position = React.useCallback(() => {\n if (context.trigger && context.valueNode && contentWrapper && content && viewport && selectedItem && selectedItemText) {\n const triggerRect = context.trigger.getBoundingClientRect();\n const contentRect = content.getBoundingClientRect();\n const valueNodeRect = context.valueNode.getBoundingClientRect();\n const itemTextRect = selectedItemText.getBoundingClientRect();\n if (context.dir !== \"rtl\") {\n const itemTextOffset = itemTextRect.left - contentRect.left;\n const left = valueNodeRect.left - itemTextOffset;\n const leftDelta = triggerRect.left - left;\n const minContentWidth = triggerRect.width + leftDelta;\n const contentWidth = Math.max(minContentWidth, contentRect.width);\n const rightEdge = window.innerWidth - CONTENT_MARGIN;\n const clampedLeft = clamp(left, [CONTENT_MARGIN, rightEdge - contentWidth]);\n contentWrapper.style.minWidth = minContentWidth + \"px\";\n contentWrapper.style.left = clampedLeft + \"px\";\n } else {\n const itemTextOffset = contentRect.right - itemTextRect.right;\n const right = window.innerWidth - valueNodeRect.right - itemTextOffset;\n const rightDelta = window.innerWidth - triggerRect.right - right;\n const minContentWidth = triggerRect.width + rightDelta;\n const contentWidth = Math.max(minContentWidth, contentRect.width);\n const leftEdge = window.innerWidth - CONTENT_MARGIN;\n const clampedRight = clamp(right, [CONTENT_MARGIN, leftEdge - contentWidth]);\n contentWrapper.style.minWidth = minContentWidth + \"px\";\n contentWrapper.style.right = clampedRight + \"px\";\n }\n const items = getItems();\n const availableHeight = window.innerHeight - CONTENT_MARGIN * 2;\n const itemsHeight = viewport.scrollHeight;\n const contentStyles = window.getComputedStyle(content);\n const contentBorderTopWidth = parseInt(contentStyles.borderTopWidth, 10);\n const contentPaddingTop = parseInt(contentStyles.paddingTop, 10);\n const contentBorderBottomWidth = parseInt(contentStyles.borderBottomWidth, 10);\n const contentPaddingBottom = parseInt(contentStyles.paddingBottom, 10);\n const fullContentHeight = contentBorderTopWidth + contentPaddingTop + itemsHeight + contentPaddingBottom + contentBorderBottomWidth;\n const minContentHeight = Math.min(selectedItem.offsetHeight * 5, fullContentHeight);\n const viewportStyles = window.getComputedStyle(viewport);\n const viewportPaddingTop = parseInt(viewportStyles.paddingTop, 10);\n const viewportPaddingBottom = parseInt(viewportStyles.paddingBottom, 10);\n const topEdgeToTriggerMiddle = triggerRect.top + triggerRect.height / 2 - CONTENT_MARGIN;\n const triggerMiddleToBottomEdge = availableHeight - topEdgeToTriggerMiddle;\n const selectedItemHalfHeight = selectedItem.offsetHeight / 2;\n const itemOffsetMiddle = selectedItem.offsetTop + selectedItemHalfHeight;\n const contentTopToItemMiddle = contentBorderTopWidth + contentPaddingTop + itemOffsetMiddle;\n const itemMiddleToContentBottom = fullContentHeight - contentTopToItemMiddle;\n const willAlignWithoutTopOverflow = contentTopToItemMiddle <= topEdgeToTriggerMiddle;\n if (willAlignWithoutTopOverflow) {\n const isLastItem = selectedItem === items[items.length - 1].ref.current;\n contentWrapper.style.bottom = \"0px\";\n const viewportOffsetBottom = content.clientHeight - viewport.offsetTop - viewport.offsetHeight;\n const clampedTriggerMiddleToBottomEdge = Math.max(\n triggerMiddleToBottomEdge,\n selectedItemHalfHeight + // viewport might have padding bottom, include it to avoid a scrollable viewport\n (isLastItem ? viewportPaddingBottom : 0) + viewportOffsetBottom + contentBorderBottomWidth\n );\n const height = contentTopToItemMiddle + clampedTriggerMiddleToBottomEdge;\n contentWrapper.style.height = height + \"px\";\n } else {\n const isFirstItem = selectedItem === items[0].ref.current;\n contentWrapper.style.top = \"0px\";\n const clampedTopEdgeToTriggerMiddle = Math.max(\n topEdgeToTriggerMiddle,\n contentBorderTopWidth + viewport.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport\n (isFirstItem ? viewportPaddingTop : 0) + selectedItemHalfHeight\n );\n const height = clampedTopEdgeToTriggerMiddle + itemMiddleToContentBottom;\n contentWrapper.style.height = height + \"px\";\n viewport.scrollTop = contentTopToItemMiddle - topEdgeToTriggerMiddle + viewport.offsetTop;\n }\n contentWrapper.style.margin = `${CONTENT_MARGIN}px 0`;\n contentWrapper.style.minHeight = minContentHeight + \"px\";\n contentWrapper.style.maxHeight = availableHeight + \"px\";\n onPlaced?.();\n requestAnimationFrame(() => shouldExpandOnScrollRef.current = true);\n }\n }, [\n getItems,\n context.trigger,\n context.valueNode,\n contentWrapper,\n content,\n viewport,\n selectedItem,\n selectedItemText,\n context.dir,\n onPlaced\n ]);\n useLayoutEffect(() => position(), [position]);\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n const handleScrollButtonChange = React.useCallback(\n (node) => {\n if (node && shouldRepositionRef.current === true) {\n position();\n focusSelectedItem?.();\n shouldRepositionRef.current = false;\n }\n },\n [position, focusSelectedItem]\n );\n return /* @__PURE__ */ jsx(\n SelectViewportProvider,\n {\n scope: __scopeSelect,\n contentWrapper,\n shouldExpandOnScrollRef,\n onScrollButtonChange: handleScrollButtonChange,\n children: /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: setContentWrapper,\n style: {\n display: \"flex\",\n flexDirection: \"column\",\n position: \"fixed\",\n zIndex: contentZIndex\n },\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...popperProps,\n ref: composedRefs,\n style: {\n // When we get the height of the content, it includes borders. If we were to set\n // the height without having `boxSizing: 'border-box'` it would be too big.\n boxSizing: \"border-box\",\n // We need to ensure the content doesn't get taller than the wrapper\n maxHeight: \"100%\",\n ...popperProps.style\n }\n }\n )\n }\n )\n }\n );\n});\nSelectItemAlignedPosition.displayName = ITEM_ALIGNED_POSITION_NAME;\nvar POPPER_POSITION_NAME = \"SelectPopperPosition\";\nvar SelectPopperPosition = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeSelect,\n align = \"start\",\n collisionPadding = CONTENT_MARGIN,\n ...popperProps\n } = props;\n const popperScope = usePopperScope(__scopeSelect);\n return /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n ...popperScope,\n ...popperProps,\n ref: forwardedRef,\n align,\n collisionPadding,\n style: {\n // Ensure border-box for floating-ui calculations\n boxSizing: \"border-box\",\n ...popperProps.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-select-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-select-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-select-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-select-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-select-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n});\nSelectPopperPosition.displayName = POPPER_POSITION_NAME;\nvar [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME, {});\nvar VIEWPORT_NAME = \"SelectViewport\";\nvar SelectViewport = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, nonce, ...viewportProps } = props;\n const contentContext = useSelectContentContext(VIEWPORT_NAME, __scopeSelect);\n const viewportContext = useSelectViewportContext(VIEWPORT_NAME, __scopeSelect);\n const composedRefs = useComposedRefs(forwardedRef, contentContext.onViewportChange);\n const prevScrollTopRef = React.useRef(0);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n \"style\",\n {\n dangerouslySetInnerHTML: {\n __html: `[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`\n },\n nonce\n }\n ),\n /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-radix-select-viewport\": \"\",\n role: \"presentation\",\n ...viewportProps,\n ref: composedRefs,\n style: {\n // we use position: 'relative' here on the `viewport` so that when we call\n // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport\n // (independent of the scrollUpButton).\n position: \"relative\",\n flex: 1,\n overflow: \"auto\",\n ...viewportProps.style\n },\n onScroll: composeEventHandlers(viewportProps.onScroll, (event) => {\n const viewport = event.currentTarget;\n const { contentWrapper, shouldExpandOnScrollRef } = viewportContext;\n if (shouldExpandOnScrollRef?.current && contentWrapper) {\n const scrolledBy = Math.abs(prevScrollTopRef.current - viewport.scrollTop);\n if (scrolledBy > 0) {\n const availableHeight = window.innerHeight - CONTENT_MARGIN * 2;\n const cssMinHeight = parseFloat(contentWrapper.style.minHeight);\n const cssHeight = parseFloat(contentWrapper.style.height);\n const prevHeight = Math.max(cssMinHeight, cssHeight);\n if (prevHeight < availableHeight) {\n const nextHeight = prevHeight + scrolledBy;\n const clampedNextHeight = Math.min(availableHeight, nextHeight);\n const heightDiff = nextHeight - clampedNextHeight;\n contentWrapper.style.height = clampedNextHeight + \"px\";\n if (contentWrapper.style.bottom === \"0px\") {\n viewport.scrollTop = heightDiff > 0 ? heightDiff : 0;\n contentWrapper.style.justifyContent = \"flex-end\";\n }\n }\n }\n }\n prevScrollTopRef.current = viewport.scrollTop;\n })\n }\n ) })\n ] });\n }\n);\nSelectViewport.displayName = VIEWPORT_NAME;\nvar GROUP_NAME = \"SelectGroup\";\nvar [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GROUP_NAME);\nvar SelectGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...groupProps } = props;\n const groupId = useId();\n return /* @__PURE__ */ jsx(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx(Primitive.div, { role: \"group\", \"aria-labelledby\": groupId, ...groupProps, ref: forwardedRef }) });\n }\n);\nSelectGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"SelectLabel\";\nvar SelectLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...labelProps } = props;\n const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);\n return /* @__PURE__ */ jsx(Primitive.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });\n }\n);\nSelectLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"SelectItem\";\nvar [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME);\nvar SelectItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeSelect,\n value,\n disabled = false,\n textValue: textValueProp,\n ...itemProps\n } = props;\n const context = useSelectContext(ITEM_NAME, __scopeSelect);\n const contentContext = useSelectContentContext(ITEM_NAME, __scopeSelect);\n const isSelected = context.value === value;\n const [textValue, setTextValue] = React.useState(textValueProp ?? \"\");\n const [isFocused, setIsFocused] = React.useState(false);\n const composedRefs = useComposedRefs(\n forwardedRef,\n (node) => contentContext.itemRefCallback?.(node, value, disabled)\n );\n const textId = useId();\n const handleSelect = () => {\n if (!disabled) {\n context.onValueChange(value);\n context.onOpenChange(false);\n }\n };\n if (value === \"\") {\n throw new Error(\n \"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.\"\n );\n }\n return /* @__PURE__ */ jsx(\n SelectItemContextProvider,\n {\n scope: __scopeSelect,\n value,\n disabled,\n textId,\n isSelected,\n onItemTextChange: React.useCallback((node) => {\n setTextValue((prevTextValue) => prevTextValue || (node?.textContent ?? \"\").trim());\n }, []),\n children: /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeSelect,\n value,\n disabled,\n textValue,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"option\",\n \"aria-labelledby\": textId,\n \"data-highlighted\": isFocused ? \"\" : void 0,\n \"aria-selected\": isSelected && isFocused,\n \"data-state\": isSelected ? \"checked\" : \"unchecked\",\n \"aria-disabled\": disabled || void 0,\n \"data-disabled\": disabled ? \"\" : void 0,\n tabIndex: disabled ? void 0 : -1,\n ...itemProps,\n ref: composedRefs,\n onFocus: composeEventHandlers(itemProps.onFocus, () => setIsFocused(true)),\n onBlur: composeEventHandlers(itemProps.onBlur, () => setIsFocused(false)),\n onPointerUp: composeEventHandlers(itemProps.onPointerUp, handleSelect),\n onPointerMove: composeEventHandlers(itemProps.onPointerMove, (event) => {\n if (disabled) {\n contentContext.onItemLeave?.();\n } else {\n event.currentTarget.focus({ preventScroll: true });\n }\n }),\n onPointerLeave: composeEventHandlers(itemProps.onPointerLeave, (event) => {\n if (event.currentTarget === document.activeElement) {\n contentContext.onItemLeave?.();\n }\n }),\n onKeyDown: composeEventHandlers(itemProps.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef?.current !== \"\";\n if (isTypingAhead && event.key === \" \") return;\n if (SELECTION_KEYS.includes(event.key)) handleSelect();\n if (event.key === \" \") event.preventDefault();\n })\n }\n )\n }\n )\n }\n );\n }\n);\nSelectItem.displayName = ITEM_NAME;\nvar ITEM_TEXT_NAME = \"SelectItemText\";\nvar SelectItemText = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, className, style, ...itemTextProps } = props;\n const context = useSelectContext(ITEM_TEXT_NAME, __scopeSelect);\n const contentContext = useSelectContentContext(ITEM_TEXT_NAME, __scopeSelect);\n const itemContext = useSelectItemContext(ITEM_TEXT_NAME, __scopeSelect);\n const nativeOptionsContext = useSelectNativeOptionsContext(ITEM_TEXT_NAME, __scopeSelect);\n const [itemTextNode, setItemTextNode] = React.useState(null);\n const composedRefs = useComposedRefs(\n forwardedRef,\n (node) => setItemTextNode(node),\n itemContext.onItemTextChange,\n (node) => contentContext.itemTextRefCallback?.(node, itemContext.value, itemContext.disabled)\n );\n const textContent = itemTextNode?.textContent;\n const nativeOption = React.useMemo(\n () => /* @__PURE__ */ jsx(\"option\", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value),\n [itemContext.disabled, itemContext.value, textContent]\n );\n const { onNativeOptionAdd, onNativeOptionRemove } = nativeOptionsContext;\n useLayoutEffect(() => {\n onNativeOptionAdd(nativeOption);\n return () => onNativeOptionRemove(nativeOption);\n }, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),\n itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM.createPortal(itemTextProps.children, context.valueNode) : null\n ] });\n }\n);\nSelectItemText.displayName = ITEM_TEXT_NAME;\nvar ITEM_INDICATOR_NAME = \"SelectItemIndicator\";\nvar SelectItemIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...itemIndicatorProps } = props;\n const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect);\n return itemContext.isSelected ? /* @__PURE__ */ jsx(Primitive.span, { \"aria-hidden\": true, ...itemIndicatorProps, ref: forwardedRef }) : null;\n }\n);\nSelectItemIndicator.displayName = ITEM_INDICATOR_NAME;\nvar SCROLL_UP_BUTTON_NAME = \"SelectScrollUpButton\";\nvar SelectScrollUpButton = React.forwardRef((props, forwardedRef) => {\n const contentContext = useSelectContentContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);\n const viewportContext = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);\n const [canScrollUp, setCanScrollUp] = React.useState(false);\n const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);\n useLayoutEffect(() => {\n if (contentContext.viewport && contentContext.isPositioned) {\n let handleScroll2 = function() {\n const canScrollUp2 = viewport.scrollTop > 0;\n setCanScrollUp(canScrollUp2);\n };\n var handleScroll = handleScroll2;\n const viewport = contentContext.viewport;\n handleScroll2();\n viewport.addEventListener(\"scroll\", handleScroll2);\n return () => viewport.removeEventListener(\"scroll\", handleScroll2);\n }\n }, [contentContext.viewport, contentContext.isPositioned]);\n return canScrollUp ? /* @__PURE__ */ jsx(\n SelectScrollButtonImpl,\n {\n ...props,\n ref: composedRefs,\n onAutoScroll: () => {\n const { viewport, selectedItem } = contentContext;\n if (viewport && selectedItem) {\n viewport.scrollTop = viewport.scrollTop - selectedItem.offsetHeight;\n }\n }\n }\n ) : null;\n});\nSelectScrollUpButton.displayName = SCROLL_UP_BUTTON_NAME;\nvar SCROLL_DOWN_BUTTON_NAME = \"SelectScrollDownButton\";\nvar SelectScrollDownButton = React.forwardRef((props, forwardedRef) => {\n const contentContext = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);\n const viewportContext = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);\n const [canScrollDown, setCanScrollDown] = React.useState(false);\n const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);\n useLayoutEffect(() => {\n if (contentContext.viewport && contentContext.isPositioned) {\n let handleScroll2 = function() {\n const maxScroll = viewport.scrollHeight - viewport.clientHeight;\n const canScrollDown2 = Math.ceil(viewport.scrollTop) < maxScroll;\n setCanScrollDown(canScrollDown2);\n };\n var handleScroll = handleScroll2;\n const viewport = contentContext.viewport;\n handleScroll2();\n viewport.addEventListener(\"scroll\", handleScroll2);\n return () => viewport.removeEventListener(\"scroll\", handleScroll2);\n }\n }, [contentContext.viewport, contentContext.isPositioned]);\n return canScrollDown ? /* @__PURE__ */ jsx(\n SelectScrollButtonImpl,\n {\n ...props,\n ref: composedRefs,\n onAutoScroll: () => {\n const { viewport, selectedItem } = contentContext;\n if (viewport && selectedItem) {\n viewport.scrollTop = viewport.scrollTop + selectedItem.offsetHeight;\n }\n }\n }\n ) : null;\n});\nSelectScrollDownButton.displayName = SCROLL_DOWN_BUTTON_NAME;\nvar SelectScrollButtonImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeSelect, onAutoScroll, ...scrollIndicatorProps } = props;\n const contentContext = useSelectContentContext(\"SelectScrollButton\", __scopeSelect);\n const autoScrollTimerRef = React.useRef(null);\n const getItems = useCollection(__scopeSelect);\n const clearAutoScrollTimer = React.useCallback(() => {\n if (autoScrollTimerRef.current !== null) {\n window.clearInterval(autoScrollTimerRef.current);\n autoScrollTimerRef.current = null;\n }\n }, []);\n React.useEffect(() => {\n return () => clearAutoScrollTimer();\n }, [clearAutoScrollTimer]);\n useLayoutEffect(() => {\n const activeItem = getItems().find((item) => item.ref.current === document.activeElement);\n activeItem?.ref.current?.scrollIntoView({ block: \"nearest\" });\n }, [getItems]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"aria-hidden\": true,\n ...scrollIndicatorProps,\n ref: forwardedRef,\n style: { flexShrink: 0, ...scrollIndicatorProps.style },\n onPointerDown: composeEventHandlers(scrollIndicatorProps.onPointerDown, () => {\n if (autoScrollTimerRef.current === null) {\n autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);\n }\n }),\n onPointerMove: composeEventHandlers(scrollIndicatorProps.onPointerMove, () => {\n contentContext.onItemLeave?.();\n if (autoScrollTimerRef.current === null) {\n autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);\n }\n }),\n onPointerLeave: composeEventHandlers(scrollIndicatorProps.onPointerLeave, () => {\n clearAutoScrollTimer();\n })\n }\n );\n});\nvar SEPARATOR_NAME = \"SelectSeparator\";\nvar SelectSeparator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...separatorProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { \"aria-hidden\": true, ...separatorProps, ref: forwardedRef });\n }\n);\nSelectSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"SelectArrow\";\nvar SelectArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopeSelect);\n const context = useSelectContext(ARROW_NAME, __scopeSelect);\n const contentContext = useSelectContentContext(ARROW_NAME, __scopeSelect);\n return context.open && contentContext.position === \"popper\" ? /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;\n }\n);\nSelectArrow.displayName = ARROW_NAME;\nfunction shouldShowPlaceholder(value) {\n return value === \"\" || value === void 0;\n}\nvar BubbleSelect = React.forwardRef(\n (props, forwardedRef) => {\n const { value, ...selectProps } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const prevValue = usePrevious(value);\n React.useEffect(() => {\n const select = ref.current;\n const selectProto = window.HTMLSelectElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(\n selectProto,\n \"value\"\n );\n const setValue = descriptor.set;\n if (prevValue !== value && setValue) {\n const event = new Event(\"change\", { bubbles: true });\n setValue.call(select, value);\n select.dispatchEvent(event);\n }\n }, [prevValue, value]);\n return /* @__PURE__ */ jsx(VisuallyHidden, { asChild: true, children: /* @__PURE__ */ jsx(\"select\", { ...selectProps, ref: composedRefs, defaultValue: value }) });\n }\n);\nBubbleSelect.displayName = \"BubbleSelect\";\nfunction useTypeaheadSearch(onSearchChange) {\n const handleSearchChange = useCallbackRef(onSearchChange);\n const searchRef = React.useRef(\"\");\n const timerRef = React.useRef(0);\n const handleTypeaheadSearch = React.useCallback(\n (key) => {\n const search = searchRef.current + key;\n handleSearchChange(search);\n (function updateSearch(value) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current);\n if (value !== \"\") timerRef.current = window.setTimeout(() => updateSearch(\"\"), 1e3);\n })(search);\n },\n [handleSearchChange]\n );\n const resetTypeahead = React.useCallback(() => {\n searchRef.current = \"\";\n window.clearTimeout(timerRef.current);\n }, []);\n React.useEffect(() => {\n return () => window.clearTimeout(timerRef.current);\n }, []);\n return [searchRef, handleTypeaheadSearch, resetTypeahead];\n}\nfunction findNextItem(items, search, currentItem) {\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const normalizedSearch = isRepeated ? search[0] : search;\n const currentItemIndex = currentItem ? items.indexOf(currentItem) : -1;\n let wrappedItems = wrapArray(items, Math.max(currentItemIndex, 0));\n const excludeCurrentItem = normalizedSearch.length === 1;\n if (excludeCurrentItem) wrappedItems = wrappedItems.filter((v) => v !== currentItem);\n const nextItem = wrappedItems.find(\n (item) => item.textValue.toLowerCase().startsWith(normalizedSearch.toLowerCase())\n );\n return nextItem !== currentItem ? nextItem : void 0;\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root2 = Select;\nvar Trigger = SelectTrigger;\nvar Value = SelectValue;\nvar Icon = SelectIcon;\nvar Portal = SelectPortal;\nvar Content2 = SelectContent;\nvar Viewport = SelectViewport;\nvar Group = SelectGroup;\nvar Label = SelectLabel;\nvar Item = SelectItem;\nvar ItemText = SelectItemText;\nvar ItemIndicator = SelectItemIndicator;\nvar ScrollUpButton = SelectScrollUpButton;\nvar ScrollDownButton = SelectScrollDownButton;\nvar Separator = SelectSeparator;\nvar Arrow2 = SelectArrow;\nexport {\n Arrow2 as Arrow,\n Content2 as Content,\n Group,\n Icon,\n Item,\n ItemIndicator,\n ItemText,\n Label,\n Portal,\n Root2 as Root,\n ScrollDownButton,\n ScrollUpButton,\n Select,\n SelectArrow,\n SelectContent,\n SelectGroup,\n SelectIcon,\n SelectItem,\n SelectItemIndicator,\n SelectItemText,\n SelectLabel,\n SelectPortal,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n SelectViewport,\n Separator,\n Trigger,\n Value,\n Viewport,\n createSelectScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["OPEN_KEYS","SELECTION_KEYS","SELECT_NAME","Collection","useCollection","createCollectionScope","createCollection","createSelectContext","createSelectScope","createContextScope","createPopperScope","usePopperScope","SelectProvider","useSelectContext","SelectNativeOptionsProvider","useSelectNativeOptionsContext","Select","props","__scopeSelect","children","open","openProp","defaultOpen","onOpenChange","value","valueProp","defaultValue","onValueChange","dir","name","autoComplete","disabled","required","popperScope","trigger","setTrigger","React","useState","valueNode","setValueNode","valueNodeHasChildren","setValueNodeHasChildren","direction","useDirection","setOpen","useControllableState","prop","defaultProp","onChange","setValue","triggerPointerDownPosRef","useRef","isFormControl","Boolean","closest","nativeOptionsSet","setNativeOptionsSet","Set","nativeSelectKey","Array","from","map","option","join","jsx","PopperPrimitive.Root","jsxs","scope","onTriggerChange","onValueNodeChange","onValueNodeHasChildrenChange","contentId","useId","Provider","onNativeOptionAdd","useCallback","prev","add","onNativeOptionRemove","optionsSet","delete","BubbleSelect","tabIndex","event","target","displayName","TRIGGER_NAME","SelectTrigger","forwardRef","forwardedRef","triggerProps","context","isDisabled","composedRefs","useComposedRefs","getItems","searchRef","handleTypeaheadSearch","resetTypeahead","useTypeaheadSearch","search","enabledItems","filter","item","currentItem","find","nextItem","findNextItem","handleOpen","PopperPrimitive.Anchor","asChild","Primitive","button","type","role","shouldShowPlaceholder","ref","onClick","composeEventHandlers","currentTarget","focus","onPointerDown","hasPointerCapture","pointerId","releasePointerCapture","ctrlKey","current","x","Math","round","pageX","y","pageY","preventDefault","onKeyDown","isTypingAhead","altKey","metaKey","key","length","includes","VALUE_NAME","SelectValue","className","style","placeholder","valueProps","hasChildren","useLayoutEffect","span","pointerEvents","Fragment","SelectIcon","iconProps","SelectPortal","PortalPrimitive","CONTENT_NAME","SelectContent","fragment","setFragment","DocumentFragment","frag","ReactDOM","createPortal","SelectContentProvider","Slot","SelectContentImpl","CONTENT_MARGIN","useSelectContentContext","position","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions","contentProps","content","setContent","viewport","setViewport","node","selectedItem","setSelectedItem","selectedItemText","setSelectedItemText","isPositioned","setIsPositioned","firstValidItemFoundRef","useEffect","hideOthers","useFocusGuards","focusFirst","candidates","firstItem","restItems","lastItem","slice","PREVIOUSLY_FOCUSED_ELEMENT","document","activeElement","candidate","scrollIntoView","block","scrollTop","scrollHeight","focusSelectedItem","pointerMoveDelta","handlePointerMove","abs","handlePointerUp","contains","removeEventListener","addEventListener","capture","once","close","window","setTimeout","itemRefCallback","isFirstValidItem","handleItemLeave","itemTextRefCallback","SelectPosition","SelectPopperPosition","SelectItemAlignedPosition","popperContentProps","onViewportChange","onItemLeave","RemoveScroll","as","allowPinchZoom","FocusScope","trapped","onMountAutoFocus","onUnmountAutoFocus","preventScroll","DismissableLayer","disableOutsidePointerEvents","onFocusOutside","onDismiss","id","onContextMenu","onPlaced","display","flexDirection","outline","isModifierKey","candidateNodes","reverse","currentElement","currentIndex","indexOf","popperProps","contentContext","contentWrapper","setContentWrapper","shouldExpandOnScrollRef","shouldRepositionRef","triggerRect","getBoundingClientRect","contentRect","valueNodeRect","itemTextRect","itemTextOffset","left","leftDelta","minContentWidth","width","contentWidth","max","rightEdge","innerWidth","clampedLeft","clamp","minWidth","right","rightDelta","leftEdge","clampedRight","items","availableHeight","innerHeight","itemsHeight","contentStyles","getComputedStyle","contentBorderTopWidth","parseInt","borderTopWidth","contentPaddingTop","paddingTop","contentBorderBottomWidth","borderBottomWidth","fullContentHeight","paddingBottom","minContentHeight","min","offsetHeight","viewportStyles","viewportPaddingTop","viewportPaddingBottom","topEdgeToTriggerMiddle","top","height","triggerMiddleToBottomEdge","selectedItemHalfHeight","contentTopToItemMiddle","offsetTop","itemMiddleToContentBottom","isLastItem","bottom","viewportOffsetBottom","clientHeight","isFirstItem","margin","minHeight","maxHeight","requestAnimationFrame","contentZIndex","setContentZIndex","zIndex","handleScrollButtonChange","SelectViewportProvider","onScrollButtonChange","div","boxSizing","PopperPrimitive.Content","useSelectViewportContext","VIEWPORT_NAME","SelectViewport","nonce","viewportProps","viewportContext","prevScrollTopRef","dangerouslySetInnerHTML","__html","flex","overflow","onScroll","scrolledBy","cssMinHeight","parseFloat","cssHeight","prevHeight","nextHeight","clampedNextHeight","heightDiff","justifyContent","GROUP_NAME","SelectGroupContextProvider","useSelectGroupContext","SelectGroup","groupProps","groupId","LABEL_NAME","SelectLabel","labelProps","groupContext","ITEM_NAME","SelectItemContextProvider","useSelectItemContext","SelectItem","textValue","textValueProp","itemProps","isSelected","setTextValue","isFocused","setIsFocused","textId","handleSelect","Error","onItemTextChange","prevTextValue","textContent","trim","ItemSlot","onFocus","onBlur","onPointerUp","onPointerMove","onPointerLeave","ITEM_TEXT_NAME","SelectItemText","itemTextProps","itemContext","nativeOptionsContext","itemTextNode","setItemTextNode","nativeOption","useMemo","ITEM_INDICATOR_NAME","SelectItemIndicator","itemIndicatorProps","SCROLL_UP_BUTTON_NAME","SelectScrollUpButton","canScrollUp","setCanScrollUp","handleScroll2","canScrollUp2","SelectScrollButtonImpl","onAutoScroll","SCROLL_DOWN_BUTTON_NAME","SelectScrollDownButton","canScrollDown","setCanScrollDown","maxScroll","canScrollDown2","ceil","scrollIndicatorProps","autoScrollTimerRef","clearAutoScrollTimer","clearInterval","activeItem","flexShrink","setInterval","SelectSeparator","separatorProps","ARROW_NAME","SelectArrow","arrowProps","PopperPrimitive.Arrow","selectProps","prevValue","usePrevious","select","selectProto","HTMLSelectElement","prototype","Object","getOwnPropertyDescriptor","set","Event","bubbles","call","dispatchEvent","VisuallyHidden","onSearchChange","handleSearchChange","useCallbackRef","timerRef","updateSearch","clearTimeout","normalizedSearch","every","char","currentItemIndex","wrappedItems","array","startIndex","_","index","v","toLowerCase","startsWith","Root2","Trigger","Value","Icon","Portal","Content2","Viewport","Group","Label","Item","ItemText","ItemIndicator","Separator"],"mappings":"irDA4BA,IAAIA,EAAY,CAAC,IAAK,QAAS,UAAW,aACtCC,EAAiB,CAAC,IAAK,SACvBC,EAAc,UACbC,EAAYC,EAAeC,GAAyBC,EAAiBJ,IACrEK,EAAqBC,GAAqBC,EAAmBP,EAAa,CAC7EG,EACAK,IAEEC,EAAiBD,KAChBE,EAAgBC,GAAoBN,EAAoBL,IACxDY,EAA6BC,GAAiCR,EAAoBL,GACnFc,EAAUC,IACZ,MAAMC,cACJA,EAAaC,SACbA,EACAC,KAAMC,EAAQC,YACdA,EAAWC,aACXA,EACAC,MAAOC,EAASC,aAChBA,EAAYC,cACZA,EAAaC,IACbA,EAAGC,KACHA,EAAIC,aACJA,EAAYC,SACZA,EAAQC,SACRA,GACEf,EACEgB,EAActB,EAAeO,IAC5BgB,EAASC,GAAcC,EAAMC,SAAS,OACtCC,EAAWC,GAAgBH,EAAMC,SAAS,OAC1CG,EAAsBC,GAA2BL,EAAMC,UAAS,GACjEK,EAAYC,EAAaf,IACxBR,GAAO,EAAOwB,GAAWC,EAAqB,CACnDC,KAAMzB,EACN0B,YAAazB,EACb0B,SAAUzB,KAELC,EAAOyB,GAAYJ,EAAqB,CAC7CC,KAAMrB,EACNsB,YAAarB,EACbsB,SAAUrB,IAENuB,EAA2Bd,EAAMe,OAAO,MACxCC,GAAgBlB,GAAUmB,QAAQnB,EAAQoB,QAAQ,UACjDC,EAAkBC,GAA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,CAJD,CAIG5V,EAAO,GAEZ,CAACyV,IAEG3V,EAAiB9D,EAAMuC,aAAY,KACvCqB,EAAU8B,QAAU,GACpBkG,OAAOiO,aAAaF,EAASjU,QAAQ,GACpC,IAIH,OAHA1F,EAAMgK,WAAU,IACP,IAAM4B,OAAOiO,aAAaF,EAASjU,UACzC,IACI,CAAC9B,EAAWC,EAAuBC,EAC5C,CACA,SAASS,GAAaoL,EAAO3L,EAAQI,GACnC,MACM0V,EADa9V,EAAOuC,OAAS,GAAKhF,MAAMC,KAAKwC,GAAQ+V,OAAOC,GAASA,IAAShW,EAAO,KACrDA,EAAO,GAAKA,EAC5CiW,EAAmB7V,EAAcuL,EAAM5B,QAAQ3J,IAAgB,EACrE,IAAI8V,GAQaC,EARYxK,EAQLyK,EARYxU,KAAKqJ,IAAIgL,EAAkB,GASxDE,EAAM1Y,KAAI,CAAC4Y,EAAGC,IAAUH,GAAOC,EAAaE,GAASH,EAAM5T,WADpE,IAAmB4T,EAAOC,EAP+B,IAA5BN,EAAiBvT,SACpB2T,EAAeA,EAAahW,QAAQqW,GAAMA,IAAMnW,KACxE,MAAME,EAAW4V,EAAa7V,MAC3BF,GAASA,EAAK0Q,UAAU2F,cAAcC,WAAWX,EAAiBU,iBAErE,OAAOlW,IAAaF,EAAcE,OAAW,CAC/C,CArCAzB,GAAaI,YAAc,eAyCxB,IAACyX,GAAQ9b,EACR+b,GAAUxX,EACVyX,GAAQlU,EACRmU,GAAOzT,EACP0T,GAASxT,EACTyT,GAAWtT,EACXuT,GAAWpI,GACXqI,GAAQ/G,GACRgH,GAAQ5G,GACR6G,GAAOvG,GACPwG,GAAWlF,GACXmF,GAAgB1E,GAGhB2E,GAAYnD"}
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-slider/dist/index.mjs
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import{clamp as t}from"../../../../../number/dist/index.mjs";import{composeEventHandlers as n}from"../../../../../primitive/dist/index.mjs";import{useComposedRefs as r}from"../../../../../react-compose-refs/dist/index.mjs";import{createContextScope as o}from"../../react-context/dist/index.mjs";import{useControllableState as i}from"../../../../../react-use-controllable-state/dist/index.mjs";import{useDirection as a}from"../../../../../react-direction/dist/index.mjs";import{usePrevious as d}from"../../../../../react-use-previous/dist/index.mjs";import{useSize as s}from"../../../../../react-use-size/dist/index.mjs";import{Primitive as l}from"../../../../../react-primitive/dist/index.mjs";import{createCollection as c}from"../../../../../react-collection/dist/index.mjs";import{jsx as u,jsxs as m}from"react/jsx-runtime";var f=["PageUp","PageDown"],p=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],v={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},h="Slider",[w,S,g]=c(h),[y,b]=o(h,[g]),[x,D]=y(h),E=e.forwardRef(((r,o)=>{const{name:a,min:d=0,max:s=100,step:l=1,orientation:c="horizontal",disabled:m=!1,minStepsBetweenThumbs:v=0,defaultValue:h=[d],value:S,onValueChange:g=()=>{},onValueCommit:y=()=>{},inverted:b=!1,...D}=r,E=e.useRef(new Set),R=e.useRef(0),_="horizontal"===c?P:M,[K=[],j]=i({prop:S,defaultProp:h,onChange:e=>{const t=[...E.current];t[R.current]?.focus(),g(e)}}),A=e.useRef(K);function C(e,n,{commit:r}={commit:!1}){const o=function(e){return(String(e).split(".")[1]||"").length}(l),i=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-d)/l)*l+d,o),a=t(i,[d,s]);j(((e=[])=>{const t=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,a,n);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map(((t,n)=>e[n+1]-t))}(e);return Math.min(...n)>=t}return!0}(t,v*l)){R.current=t.indexOf(a);const n=String(t)!==String(e);return n&&r&&y(t),n?t:e}return e}))}return u(x,{scope:r.__scopeSlider,name:a,disabled:m,min:d,max:s,valueIndexToChangeRef:R,thumbs:E.current,values:K,orientation:c,children:u(w.Provider,{scope:r.__scopeSlider,children:u(w.Slot,{scope:r.__scopeSlider,children:u(_,{"aria-disabled":m,"data-disabled":m?"":void 0,...D,ref:o,onPointerDown:n(D.onPointerDown,(()=>{m||(A.current=K)})),min:d,max:s,inverted:b,onSlideStart:m?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map((e=>Math.abs(e-t))),r=Math.min(...n);return n.indexOf(r)}(K,e);C(e,t)},onSlideMove:m?void 0:function(e){C(e,R.current)},onSlideEnd:m?void 0:function(){const e=A.current[R.current];K[R.current]!==e&&y(K)},onHomeKeyDown:()=>!m&&C(d,0,{commit:!0}),onEndKeyDown:()=>!m&&C(s,K.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!m){const n=f.includes(e.key)||e.shiftKey&&p.includes(e.key)?10:1,r=R.current;C(K[r]+l*n*t,r,{commit:!0})}}})})})})}));E.displayName=h;var[R,_]=y(h,{startEdge:"left",endEdge:"right",size:"width",direction:1}),P=e.forwardRef(((t,n)=>{const{min:o,max:i,dir:d,inverted:s,onSlideStart:l,onSlideMove:c,onSlideEnd:m,onStepKeyDown:f,...p}=t,[h,w]=e.useState(null),S=r(n,(e=>w(e))),g=e.useRef(),y=a(d),b="ltr"===y,x=b&&!s||!b&&s;function D(e){const t=g.current||h.getBoundingClientRect(),n=U([0,t.width],x?[o,i]:[i,o]);return g.current=t,n(e-t.left)}return u(R,{scope:t.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:u(K,{dir:y,"data-orientation":"horizontal",...p,ref:S,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=D(e.clientX);l?.(t)},onSlideMove:e=>{const t=D(e.clientX);c?.(t)},onSlideEnd:()=>{g.current=void 0,m?.()},onStepKeyDown:e=>{const t=v[x?"from-left":"from-right"].includes(e.key);f?.({event:e,direction:t?-1:1})}})})})),M=e.forwardRef(((t,n)=>{const{min:o,max:i,inverted:a,onSlideStart:d,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...m}=t,f=e.useRef(null),p=r(n,f),h=e.useRef(),w=!a;function S(e){const t=h.current||f.current.getBoundingClientRect(),n=U([0,t.height],w?[i,o]:[o,i]);return h.current=t,n(e-t.top)}return u(R,{scope:t.__scopeSlider,startEdge:w?"bottom":"top",endEdge:w?"top":"bottom",size:"height",direction:w?1:-1,children:u(K,{"data-orientation":"vertical",...m,ref:p,style:{...m.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=S(e.clientY);d?.(t)},onSlideMove:e=>{const t=S(e.clientY);s?.(t)},onSlideEnd:()=>{h.current=void 0,l?.()},onStepKeyDown:e=>{const t=v[w?"from-bottom":"from-top"].includes(e.key);c?.({event:e,direction:t?-1:1})}})})})),K=e.forwardRef(((e,t)=>{const{__scopeSlider:r,onSlideStart:o,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:d,onEndKeyDown:s,onStepKeyDown:c,...m}=e,v=D(h,r);return u(l.span,{...m,ref:t,onKeyDown:n(e.onKeyDown,(e=>{"Home"===e.key?(d(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):f.concat(p).includes(e.key)&&(c(e),e.preventDefault())})),onPointerDown:n(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),v.thumbs.has(t)?t.focus():o(e)})),onPointerMove:n(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)})),onPointerUp:n(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))}))})})),j="SliderTrack",A=e.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,o=D(j,n);return u(l.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})}));A.displayName=j;var C="SliderRange",I=e.forwardRef(((t,n)=>{const{__scopeSlider:o,...i}=t,a=D(C,o),d=_(C,o),s=e.useRef(null),c=r(n,s),m=a.values.length,f=a.values.map((e=>L(e,a.min,a.max))),p=m>1?Math.min(...f):0,v=100-Math.max(...f);return u(l.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,...i,ref:c,style:{...t.style,[d.startEdge]:p+"%",[d.endEdge]:v+"%"}})}));I.displayName=C;var k="SliderThumb",z=e.forwardRef(((t,n)=>{const o=S(t.__scopeSlider),[i,a]=e.useState(null),d=r(n,(e=>a(e))),s=e.useMemo((()=>i?o().findIndex((e=>e.ref.current===i)):-1),[o,i]);return u(H,{...t,ref:d,index:s})})),H=e.forwardRef(((t,o)=>{const{__scopeSlider:i,index:a,name:d,...c}=t,f=D(k,i),p=_(k,i),[v,h]=e.useState(null),S=r(o,(e=>h(e))),g=!v||Boolean(v.closest("form")),y=s(v),b=f.values[a],x=void 0===b?0:L(b,f.min,f.max),E=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(a,f.values.length),R=y?.[p.size],P=R?function(e,t,n){const r=e/2,o=U([0,50],[0,r]);return(r-o(t)*n)*n}(R,x,p.direction):0;return e.useEffect((()=>{if(v)return f.thumbs.add(v),()=>{f.thumbs.delete(v)}}),[v,f.thumbs]),m("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[p.startEdge]:`calc(${x}% + ${P}px)`},children:[u(w.ItemSlot,{scope:t.__scopeSlider,children:u(l.span,{role:"slider","aria-label":t["aria-label"]||E,"aria-valuemin":f.min,"aria-valuenow":b,"aria-valuemax":f.max,"aria-orientation":f.orientation,"data-orientation":f.orientation,"data-disabled":f.disabled?"":void 0,tabIndex:f.disabled?void 0:0,...c,ref:S,style:void 0===b?{display:"none"}:t.style,onFocus:n(t.onFocus,(()=>{f.valueIndexToChangeRef.current=a}))})}),g&&u(T,{name:d??(f.name?f.name+(f.values.length>1?"[]":""):void 0),value:b},a)]})}));z.displayName=k;var T=t=>{const{value:n,...r}=t,o=e.useRef(null),i=d(n);return e.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(i!==n&&r){const t=new Event("input",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[i,n]),u("input",{style:{display:"none"},...r,ref:o,defaultValue:n})};function L(e,n,r){return t(100/(r-n)*(e-n),[0,100])}function U(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var V=E,B=A,N=I,O=z;export{N as Range,V as Root,E as Slider,I as SliderRange,z as SliderThumb,A as SliderTrack,O as Thumb,B as Track,b as createSliderScope};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-slider/dist/index.mjs.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/themes/node_modules/@radix-ui/react-slider/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/slider/src/Slider.tsx\nimport * as React from \"react\";\nimport { clamp } from \"@radix-ui/number\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar PAGE_KEYS = [\"PageUp\", \"PageDown\"];\nvar ARROW_KEYS = [\"ArrowUp\", \"ArrowDown\", \"ArrowLeft\", \"ArrowRight\"];\nvar BACK_KEYS = {\n \"from-left\": [\"Home\", \"PageDown\", \"ArrowDown\", \"ArrowLeft\"],\n \"from-right\": [\"Home\", \"PageDown\", \"ArrowDown\", \"ArrowRight\"],\n \"from-bottom\": [\"Home\", \"PageDown\", \"ArrowDown\", \"ArrowLeft\"],\n \"from-top\": [\"Home\", \"PageDown\", \"ArrowUp\", \"ArrowLeft\"]\n};\nvar SLIDER_NAME = \"Slider\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(SLIDER_NAME);\nvar [createSliderContext, createSliderScope] = createContextScope(SLIDER_NAME, [\n createCollectionScope\n]);\nvar [SliderProvider, useSliderContext] = createSliderContext(SLIDER_NAME);\nvar Slider = React.forwardRef(\n (props, forwardedRef) => {\n const {\n name,\n min = 0,\n max = 100,\n step = 1,\n orientation = \"horizontal\",\n disabled = false,\n minStepsBetweenThumbs = 0,\n defaultValue = [min],\n value,\n onValueChange = () => {\n },\n onValueCommit = () => {\n },\n inverted = false,\n ...sliderProps\n } = props;\n const thumbRefs = React.useRef(/* @__PURE__ */ new Set());\n const valueIndexToChangeRef = React.useRef(0);\n const isHorizontal = orientation === \"horizontal\";\n const SliderOrientation = isHorizontal ? SliderHorizontal : SliderVertical;\n const [values = [], setValues] = useControllableState({\n prop: value,\n defaultProp: defaultValue,\n onChange: (value2) => {\n const thumbs = [...thumbRefs.current];\n thumbs[valueIndexToChangeRef.current]?.focus();\n onValueChange(value2);\n }\n });\n const valuesBeforeSlideStartRef = React.useRef(values);\n function handleSlideStart(value2) {\n const closestIndex = getClosestValueIndex(values, value2);\n updateValues(value2, closestIndex);\n }\n function handleSlideMove(value2) {\n updateValues(value2, valueIndexToChangeRef.current);\n }\n function handleSlideEnd() {\n const prevValue = valuesBeforeSlideStartRef.current[valueIndexToChangeRef.current];\n const nextValue = values[valueIndexToChangeRef.current];\n const hasChanged = nextValue !== prevValue;\n if (hasChanged) onValueCommit(values);\n }\n function updateValues(value2, atIndex, { commit } = { commit: false }) {\n const decimalCount = getDecimalCount(step);\n const snapToStep = roundValue(Math.round((value2 - min) / step) * step + min, decimalCount);\n const nextValue = clamp(snapToStep, [min, max]);\n setValues((prevValues = []) => {\n const nextValues = getNextSortedValues(prevValues, nextValue, atIndex);\n if (hasMinStepsBetweenValues(nextValues, minStepsBetweenThumbs * step)) {\n valueIndexToChangeRef.current = nextValues.indexOf(nextValue);\n const hasChanged = String(nextValues) !== String(prevValues);\n if (hasChanged && commit) onValueCommit(nextValues);\n return hasChanged ? nextValues : prevValues;\n } else {\n return prevValues;\n }\n });\n }\n return /* @__PURE__ */ jsx(\n SliderProvider,\n {\n scope: props.__scopeSlider,\n name,\n disabled,\n min,\n max,\n valueIndexToChangeRef,\n thumbs: thumbRefs.current,\n values,\n orientation,\n children: /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeSlider, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeSlider, children: /* @__PURE__ */ jsx(\n SliderOrientation,\n {\n \"aria-disabled\": disabled,\n \"data-disabled\": disabled ? \"\" : void 0,\n ...sliderProps,\n ref: forwardedRef,\n onPointerDown: composeEventHandlers(sliderProps.onPointerDown, () => {\n if (!disabled) valuesBeforeSlideStartRef.current = values;\n }),\n min,\n max,\n inverted,\n onSlideStart: disabled ? void 0 : handleSlideStart,\n onSlideMove: disabled ? void 0 : handleSlideMove,\n onSlideEnd: disabled ? void 0 : handleSlideEnd,\n onHomeKeyDown: () => !disabled && updateValues(min, 0, { commit: true }),\n onEndKeyDown: () => !disabled && updateValues(max, values.length - 1, { commit: true }),\n onStepKeyDown: ({ event, direction: stepDirection }) => {\n if (!disabled) {\n const isPageKey = PAGE_KEYS.includes(event.key);\n const isSkipKey = isPageKey || event.shiftKey && ARROW_KEYS.includes(event.key);\n const multiplier = isSkipKey ? 10 : 1;\n const atIndex = valueIndexToChangeRef.current;\n const value2 = values[atIndex];\n const stepInDirection = step * multiplier * stepDirection;\n updateValues(value2 + stepInDirection, atIndex, { commit: true });\n }\n }\n }\n ) }) })\n }\n );\n }\n);\nSlider.displayName = SLIDER_NAME;\nvar [SliderOrientationProvider, useSliderOrientationContext] = createSliderContext(SLIDER_NAME, {\n startEdge: \"left\",\n endEdge: \"right\",\n size: \"width\",\n direction: 1\n});\nvar SliderHorizontal = React.forwardRef(\n (props, forwardedRef) => {\n const {\n min,\n max,\n dir,\n inverted,\n onSlideStart,\n onSlideMove,\n onSlideEnd,\n onStepKeyDown,\n ...sliderProps\n } = props;\n const [slider, setSlider] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setSlider(node));\n const rectRef = React.useRef();\n const direction = useDirection(dir);\n const isDirectionLTR = direction === \"ltr\";\n const isSlidingFromLeft = isDirectionLTR && !inverted || !isDirectionLTR && inverted;\n function getValueFromPointer(pointerPosition) {\n const rect = rectRef.current || slider.getBoundingClientRect();\n const input = [0, rect.width];\n const output = isSlidingFromLeft ? [min, max] : [max, min];\n const value = linearScale(input, output);\n rectRef.current = rect;\n return value(pointerPosition - rect.left);\n }\n return /* @__PURE__ */ jsx(\n SliderOrientationProvider,\n {\n scope: props.__scopeSlider,\n startEdge: isSlidingFromLeft ? \"left\" : \"right\",\n endEdge: isSlidingFromLeft ? \"right\" : \"left\",\n direction: isSlidingFromLeft ? 1 : -1,\n size: \"width\",\n children: /* @__PURE__ */ jsx(\n SliderImpl,\n {\n dir: direction,\n \"data-orientation\": \"horizontal\",\n ...sliderProps,\n ref: composedRefs,\n style: {\n ...sliderProps.style,\n [\"--radix-slider-thumb-transform\"]: \"translateX(-50%)\"\n },\n onSlideStart: (event) => {\n const value = getValueFromPointer(event.clientX);\n onSlideStart?.(value);\n },\n onSlideMove: (event) => {\n const value = getValueFromPointer(event.clientX);\n onSlideMove?.(value);\n },\n onSlideEnd: () => {\n rectRef.current = void 0;\n onSlideEnd?.();\n },\n onStepKeyDown: (event) => {\n const slideDirection = isSlidingFromLeft ? \"from-left\" : \"from-right\";\n const isBackKey = BACK_KEYS[slideDirection].includes(event.key);\n onStepKeyDown?.({ event, direction: isBackKey ? -1 : 1 });\n }\n }\n )\n }\n );\n }\n);\nvar SliderVertical = React.forwardRef(\n (props, forwardedRef) => {\n const {\n min,\n max,\n inverted,\n onSlideStart,\n onSlideMove,\n onSlideEnd,\n onStepKeyDown,\n ...sliderProps\n } = props;\n const sliderRef = React.useRef(null);\n const ref = useComposedRefs(forwardedRef, sliderRef);\n const rectRef = React.useRef();\n const isSlidingFromBottom = !inverted;\n function getValueFromPointer(pointerPosition) {\n const rect = rectRef.current || sliderRef.current.getBoundingClientRect();\n const input = [0, rect.height];\n const output = isSlidingFromBottom ? [max, min] : [min, max];\n const value = linearScale(input, output);\n rectRef.current = rect;\n return value(pointerPosition - rect.top);\n }\n return /* @__PURE__ */ jsx(\n SliderOrientationProvider,\n {\n scope: props.__scopeSlider,\n startEdge: isSlidingFromBottom ? \"bottom\" : \"top\",\n endEdge: isSlidingFromBottom ? \"top\" : \"bottom\",\n size: \"height\",\n direction: isSlidingFromBottom ? 1 : -1,\n children: /* @__PURE__ */ jsx(\n SliderImpl,\n {\n \"data-orientation\": \"vertical\",\n ...sliderProps,\n ref,\n style: {\n ...sliderProps.style,\n [\"--radix-slider-thumb-transform\"]: \"translateY(50%)\"\n },\n onSlideStart: (event) => {\n const value = getValueFromPointer(event.clientY);\n onSlideStart?.(value);\n },\n onSlideMove: (event) => {\n const value = getValueFromPointer(event.clientY);\n onSlideMove?.(value);\n },\n onSlideEnd: () => {\n rectRef.current = void 0;\n onSlideEnd?.();\n },\n onStepKeyDown: (event) => {\n const slideDirection = isSlidingFromBottom ? \"from-bottom\" : \"from-top\";\n const isBackKey = BACK_KEYS[slideDirection].includes(event.key);\n onStepKeyDown?.({ event, direction: isBackKey ? -1 : 1 });\n }\n }\n )\n }\n );\n }\n);\nvar SliderImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeSlider,\n onSlideStart,\n onSlideMove,\n onSlideEnd,\n onHomeKeyDown,\n onEndKeyDown,\n onStepKeyDown,\n ...sliderProps\n } = props;\n const context = useSliderContext(SLIDER_NAME, __scopeSlider);\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...sliderProps,\n ref: forwardedRef,\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Home\") {\n onHomeKeyDown(event);\n event.preventDefault();\n } else if (event.key === \"End\") {\n onEndKeyDown(event);\n event.preventDefault();\n } else if (PAGE_KEYS.concat(ARROW_KEYS).includes(event.key)) {\n onStepKeyDown(event);\n event.preventDefault();\n }\n }),\n onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n const target = event.target;\n target.setPointerCapture(event.pointerId);\n event.preventDefault();\n if (context.thumbs.has(target)) {\n target.focus();\n } else {\n onSlideStart(event);\n }\n }),\n onPointerMove: composeEventHandlers(props.onPointerMove, (event) => {\n const target = event.target;\n if (target.hasPointerCapture(event.pointerId)) onSlideMove(event);\n }),\n onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {\n const target = event.target;\n if (target.hasPointerCapture(event.pointerId)) {\n target.releasePointerCapture(event.pointerId);\n onSlideEnd(event);\n }\n })\n }\n );\n }\n);\nvar TRACK_NAME = \"SliderTrack\";\nvar SliderTrack = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSlider, ...trackProps } = props;\n const context = useSliderContext(TRACK_NAME, __scopeSlider);\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-disabled\": context.disabled ? \"\" : void 0,\n \"data-orientation\": context.orientation,\n ...trackProps,\n ref: forwardedRef\n }\n );\n }\n);\nSliderTrack.displayName = TRACK_NAME;\nvar RANGE_NAME = \"SliderRange\";\nvar SliderRange = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSlider, ...rangeProps } = props;\n const context = useSliderContext(RANGE_NAME, __scopeSlider);\n const orientation = useSliderOrientationContext(RANGE_NAME, __scopeSlider);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const valuesCount = context.values.length;\n const percentages = context.values.map(\n (value) => convertValueToPercentage(value, context.min, context.max)\n );\n const offsetStart = valuesCount > 1 ? Math.min(...percentages) : 0;\n const offsetEnd = 100 - Math.max(...percentages);\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-orientation\": context.orientation,\n \"data-disabled\": context.disabled ? \"\" : void 0,\n ...rangeProps,\n ref: composedRefs,\n style: {\n ...props.style,\n [orientation.startEdge]: offsetStart + \"%\",\n [orientation.endEdge]: offsetEnd + \"%\"\n }\n }\n );\n }\n);\nSliderRange.displayName = RANGE_NAME;\nvar THUMB_NAME = \"SliderThumb\";\nvar SliderThumb = React.forwardRef(\n (props, forwardedRef) => {\n const getItems = useCollection(props.__scopeSlider);\n const [thumb, setThumb] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setThumb(node));\n const index = React.useMemo(\n () => thumb ? getItems().findIndex((item) => item.ref.current === thumb) : -1,\n [getItems, thumb]\n );\n return /* @__PURE__ */ jsx(SliderThumbImpl, { ...props, ref: composedRefs, index });\n }\n);\nvar SliderThumbImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSlider, index, name, ...thumbProps } = props;\n const context = useSliderContext(THUMB_NAME, __scopeSlider);\n const orientation = useSliderOrientationContext(THUMB_NAME, __scopeSlider);\n const [thumb, setThumb] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setThumb(node));\n const isFormControl = thumb ? Boolean(thumb.closest(\"form\")) : true;\n const size = useSize(thumb);\n const value = context.values[index];\n const percent = value === void 0 ? 0 : convertValueToPercentage(value, context.min, context.max);\n const label = getLabel(index, context.values.length);\n const orientationSize = size?.[orientation.size];\n const thumbInBoundsOffset = orientationSize ? getThumbInBoundsOffset(orientationSize, percent, orientation.direction) : 0;\n React.useEffect(() => {\n if (thumb) {\n context.thumbs.add(thumb);\n return () => {\n context.thumbs.delete(thumb);\n };\n }\n }, [thumb, context.thumbs]);\n return /* @__PURE__ */ jsxs(\n \"span\",\n {\n style: {\n transform: \"var(--radix-slider-thumb-transform)\",\n position: \"absolute\",\n [orientation.startEdge]: `calc(${percent}% + ${thumbInBoundsOffset}px)`\n },\n children: [\n /* @__PURE__ */ jsx(Collection.ItemSlot, { scope: props.__scopeSlider, children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n role: \"slider\",\n \"aria-label\": props[\"aria-label\"] || label,\n \"aria-valuemin\": context.min,\n \"aria-valuenow\": value,\n \"aria-valuemax\": context.max,\n \"aria-orientation\": context.orientation,\n \"data-orientation\": context.orientation,\n \"data-disabled\": context.disabled ? \"\" : void 0,\n tabIndex: context.disabled ? void 0 : 0,\n ...thumbProps,\n ref: composedRefs,\n style: value === void 0 ? { display: \"none\" } : props.style,\n onFocus: composeEventHandlers(props.onFocus, () => {\n context.valueIndexToChangeRef.current = index;\n })\n }\n ) }),\n isFormControl && /* @__PURE__ */ jsx(\n BubbleInput,\n {\n name: name ?? (context.name ? context.name + (context.values.length > 1 ? \"[]\" : \"\") : void 0),\n value\n },\n index\n )\n ]\n }\n );\n }\n);\nSliderThumb.displayName = THUMB_NAME;\nvar BubbleInput = (props) => {\n const { value, ...inputProps } = props;\n const ref = React.useRef(null);\n const prevValue = usePrevious(value);\n React.useEffect(() => {\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, \"value\");\n const setValue = descriptor.set;\n if (prevValue !== value && setValue) {\n const event = new Event(\"input\", { bubbles: true });\n setValue.call(input, value);\n input.dispatchEvent(event);\n }\n }, [prevValue, value]);\n return /* @__PURE__ */ jsx(\"input\", { style: { display: \"none\" }, ...inputProps, ref, defaultValue: value });\n};\nfunction getNextSortedValues(prevValues = [], nextValue, atIndex) {\n const nextValues = [...prevValues];\n nextValues[atIndex] = nextValue;\n return nextValues.sort((a, b) => a - b);\n}\nfunction convertValueToPercentage(value, min, max) {\n const maxSteps = max - min;\n const percentPerStep = 100 / maxSteps;\n const percentage = percentPerStep * (value - min);\n return clamp(percentage, [0, 100]);\n}\nfunction getLabel(index, totalValues) {\n if (totalValues > 2) {\n return `Value ${index + 1} of ${totalValues}`;\n } else if (totalValues === 2) {\n return [\"Minimum\", \"Maximum\"][index];\n } else {\n return void 0;\n }\n}\nfunction getClosestValueIndex(values, nextValue) {\n if (values.length === 1) return 0;\n const distances = values.map((value) => Math.abs(value - nextValue));\n const closestDistance = Math.min(...distances);\n return distances.indexOf(closestDistance);\n}\nfunction getThumbInBoundsOffset(width, left, direction) {\n const halfWidth = width / 2;\n const halfPercent = 50;\n const offset = linearScale([0, halfPercent], [0, halfWidth]);\n return (halfWidth - offset(left) * direction) * direction;\n}\nfunction getStepsBetweenValues(values) {\n return values.slice(0, -1).map((value, index) => values[index + 1] - value);\n}\nfunction hasMinStepsBetweenValues(values, minStepsBetweenValues) {\n if (minStepsBetweenValues > 0) {\n const stepsBetweenValues = getStepsBetweenValues(values);\n const actualMinStepsBetweenValues = Math.min(...stepsBetweenValues);\n return actualMinStepsBetweenValues >= minStepsBetweenValues;\n }\n return true;\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 getDecimalCount(value) {\n return (String(value).split(\".\")[1] || \"\").length;\n}\nfunction roundValue(value, decimalCount) {\n const rounder = Math.pow(10, decimalCount);\n return Math.round(value * rounder) / rounder;\n}\nvar Root = Slider;\nvar Track = SliderTrack;\nvar Range = SliderRange;\nvar Thumb = SliderThumb;\nexport {\n Range,\n Root,\n Slider,\n SliderRange,\n SliderThumb,\n SliderTrack,\n Thumb,\n Track,\n createSliderScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["PAGE_KEYS","ARROW_KEYS","BACK_KEYS","SLIDER_NAME","Collection","useCollection","createCollectionScope","createCollection","createSliderContext","createSliderScope","createContextScope","SliderProvider","useSliderContext","Slider","React","forwardRef","props","forwardedRef","name","min","max","step","orientation","disabled","minStepsBetweenThumbs","defaultValue","value","onValueChange","onValueCommit","inverted","sliderProps","thumbRefs","useRef","Set","valueIndexToChangeRef","SliderOrientation","SliderHorizontal","SliderVertical","values","setValues","useControllableState","prop","defaultProp","onChange","value2","thumbs","current","focus","valuesBeforeSlideStartRef","updateValues","atIndex","commit","decimalCount","String","split","length","getDecimalCount","snapToStep","rounder","Math","pow","round","roundValue","nextValue","clamp","prevValues","nextValues","sort","a","b","getNextSortedValues","minStepsBetweenValues","stepsBetweenValues","slice","map","index","getStepsBetweenValues","hasMinStepsBetweenValues","indexOf","hasChanged","jsx","scope","__scopeSlider","children","Provider","Slot","ref","onPointerDown","composeEventHandlers","onSlideStart","closestIndex","distances","abs","closestDistance","getClosestValueIndex","onSlideMove","onSlideEnd","prevValue","onHomeKeyDown","onEndKeyDown","onStepKeyDown","event","direction","stepDirection","multiplier","includes","key","shiftKey","displayName","SliderOrientationProvider","useSliderOrientationContext","startEdge","endEdge","size","dir","slider","setSlider","useState","composedRefs","useComposedRefs","node","rectRef","useDirection","isDirectionLTR","isSlidingFromLeft","getValueFromPointer","pointerPosition","rect","getBoundingClientRect","linearScale","width","left","SliderImpl","style","clientX","isBackKey","sliderRef","isSlidingFromBottom","height","top","clientY","context","Primitive","span","onKeyDown","preventDefault","concat","target","setPointerCapture","pointerId","has","onPointerMove","hasPointerCapture","onPointerUp","releasePointerCapture","TRACK_NAME","SliderTrack","trackProps","RANGE_NAME","SliderRange","rangeProps","valuesCount","percentages","convertValueToPercentage","offsetStart","offsetEnd","THUMB_NAME","SliderThumb","getItems","thumb","setThumb","useMemo","findIndex","item","SliderThumbImpl","thumbProps","isFormControl","Boolean","closest","useSize","percent","label","totalValues","getLabel","orientationSize","thumbInBoundsOffset","halfWidth","offset","getThumbInBoundsOffset","useEffect","add","delete","jsxs","transform","position","ItemSlot","role","tabIndex","display","onFocus","BubbleInput","inputProps","usePrevious","input","inputProto","window","HTMLInputElement","prototype","setValue","Object","getOwnPropertyDescriptor","set","Event","bubbles","call","dispatchEvent","output","ratio","Root","Track","Range","Thumb"],"mappings":"k1BAeA,IAAIA,EAAY,CAAC,SAAU,YACvBC,EAAa,CAAC,UAAW,YAAa,YAAa,cACnDC,EAAY,CACd,YAAa,CAAC,OAAQ,WAAY,YAAa,aAC/C,aAAc,CAAC,OAAQ,WAAY,YAAa,cAChD,cAAe,CAAC,OAAQ,WAAY,YAAa,aACjD,WAAY,CAAC,OAAQ,WAAY,UAAW,cAE1CC,EAAc,UACbC,EAAYC,EAAeC,GAAyBC,EAAiBJ,IACrEK,EAAqBC,GAAqBC,EAAmBP,EAAa,CAC7EG,KAEGK,EAAgBC,GAAoBJ,EAAoBL,GACzDU,EAASC,EAAMC,YACjB,CAACC,EAAOC,KACN,MAAMC,KACJA,EAAIC,IACJA,EAAM,EAACC,IACPA,EAAM,IAAGC,KACTA,EAAO,EAACC,YACRA,EAAc,aAAYC,SAC1BA,GAAW,EAAKC,sBAChBA,EAAwB,EAACC,aACzBA,EAAe,CAACN,GAAIO,MACpBA,EAAKC,cACLA,EAAgB,OACfC,cACDA,EAAgB,OACfC,SACDA,GAAW,KACRC,GACDd,EACEe,EAAYjB,EAAMkB,OAAuB,IAAIC,KAC7CC,EAAwBpB,EAAMkB,OAAO,GAErCG,EAD+B,eAAhBb,EACoBc,EAAmBC,GACrDC,EAAS,GAAIC,GAAaC,EAAqB,CACpDC,KAAMf,EACNgB,YAAajB,EACbkB,SAAWC,IACT,MAAMC,EAAS,IAAId,EAAUe,SAC7BD,EAAOX,EAAsBY,UAAUC,QACvCpB,EAAciB,EAAO,IAGnBI,EAA4BlC,EAAMkB,OAAOM,GAc/C,SAASW,EAAaL,EAAQM,GAASC,OAAEA,GAAW,CAAEA,QAAQ,IAC5D,MAAMC,EAmcZ,SAAyB1B,GACvB,OAAQ2B,OAAO3B,GAAO4B,MAAM,KAAK,IAAM,IAAIC,MAC7C,CArc2BC,CAAgBnC,GAC/BoC,EAqcZ,SAAoB/B,EAAO0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e,EAAO7M,EACP8M,EAAQ/D,EACRgE,EAAQ7D,EACR8D,EAAQtD"}
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-switch/dist/index.mjs
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import{composeEventHandlers as t}from"../../../../../primitive/dist/index.mjs";import{useComposedRefs as r}from"../../../../../react-compose-refs/dist/index.mjs";import{createContextScope as o}from"../../react-context/dist/index.mjs";import{useControllableState as i}from"../../../../../react-use-controllable-state/dist/index.mjs";import{usePrevious as a}from"../../../../../react-use-previous/dist/index.mjs";import{useSize as s}from"../../../../../react-use-size/dist/index.mjs";import{Primitive as c}from"../../../../../react-primitive/dist/index.mjs";import{jsxs as n,jsx as d}from"react/jsx-runtime";var l="Switch",[p,u]=o(l),[m,f]=p(l),b=e.forwardRef(((o,a)=>{const{__scopeSwitch:s,name:l,checked:p,defaultChecked:u,required:f,disabled:b,value:h="on",onCheckedChange:k,...w}=o,[y,j]=e.useState(null),C=r(a,(e=>j(e))),g=e.useRef(!1),S=!y||Boolean(y.closest("form")),[E=!1,P]=i({prop:p,defaultProp:u,onChange:k});return n(m,{scope:s,checked:E,disabled:b,children:[d(c.button,{type:"button",role:"switch","aria-checked":E,"aria-required":f,"data-state":x(E),"data-disabled":b?"":void 0,disabled:b,value:h,...w,ref:C,onClick:t(o.onClick,(e=>{P((e=>!e)),S&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())}))}),S&&d(v,{control:y,bubbles:!g.current,name:l,value:h,checked:E,required:f,disabled:b,style:{transform:"translateX(-100%)"}})]})}));b.displayName=l;var h="SwitchThumb",k=e.forwardRef(((e,t)=>{const{__scopeSwitch:r,...o}=e,i=f(h,r);return d(c.span,{"data-state":x(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})}));k.displayName=h;var v=t=>{const{control:r,checked:o,bubbles:i=!0,...c}=t,n=e.useRef(null),l=a(o),p=s(r);return e.useEffect((()=>{const e=n.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==o&&r){const t=new Event("click",{bubbles:i});r.call(e,o),e.dispatchEvent(t)}}),[l,o,i]),d("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...c,tabIndex:-1,ref:n,style:{...t.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function x(e){return e?"checked":"unchecked"}var w=b,y=k;export{w as Root,b as Switch,k as SwitchThumb,y as Thumb,u as createSwitchScope};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-switch/dist/index.mjs.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/themes/node_modules/@radix-ui/react-switch/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/switch/src/Switch.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar SWITCH_NAME = \"Switch\";\nvar [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);\nvar [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);\nvar Switch = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeSwitch,\n name,\n checked: checkedProp,\n defaultChecked,\n required,\n disabled,\n value = \"on\",\n onCheckedChange,\n ...switchProps\n } = props;\n const [button, setButton] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));\n const hasConsumerStoppedPropagationRef = React.useRef(false);\n const isFormControl = button ? Boolean(button.closest(\"form\")) : true;\n const [checked = false, setChecked] = useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked,\n onChange: onCheckedChange\n });\n return /* @__PURE__ */ jsxs(SwitchProvider, { scope: __scopeSwitch, checked, disabled, children: [\n /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"switch\",\n \"aria-checked\": checked,\n \"aria-required\": required,\n \"data-state\": getState(checked),\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n value,\n ...switchProps,\n ref: composedRefs,\n onClick: composeEventHandlers(props.onClick, (event) => {\n setChecked((prevChecked) => !prevChecked);\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n }\n ),\n isFormControl && /* @__PURE__ */ jsx(\n BubbleInput,\n {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name,\n value,\n checked,\n required,\n disabled,\n style: { transform: \"translateX(-100%)\" }\n }\n )\n ] });\n }\n);\nSwitch.displayName = SWITCH_NAME;\nvar THUMB_NAME = \"SwitchThumb\";\nvar SwitchThumb = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSwitch, ...thumbProps } = props;\n const context = useSwitchContext(THUMB_NAME, __scopeSwitch);\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": getState(context.checked),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n ...thumbProps,\n ref: forwardedRef\n }\n );\n }\n);\nSwitchThumb.displayName = THUMB_NAME;\nvar BubbleInput = (props) => {\n const { control, checked, bubbles = true, ...inputProps } = props;\n const ref = React.useRef(null);\n const prevChecked = usePrevious(checked);\n const controlSize = useSize(control);\n React.useEffect(() => {\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, \"checked\");\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event(\"click\", { bubbles });\n setChecked.call(input, checked);\n input.dispatchEvent(event);\n }\n }, [prevChecked, checked, bubbles]);\n return /* @__PURE__ */ jsx(\n \"input\",\n {\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: checked,\n ...inputProps,\n tabIndex: -1,\n ref,\n style: {\n ...props.style,\n ...controlSize,\n position: \"absolute\",\n pointerEvents: \"none\",\n opacity: 0,\n margin: 0\n }\n }\n );\n};\nfunction getState(checked) {\n return checked ? \"checked\" : \"unchecked\";\n}\nvar Root = Switch;\nvar Thumb = SwitchThumb;\nexport {\n Root,\n Switch,\n SwitchThumb,\n Thumb,\n createSwitchScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["SWITCH_NAME","createSwitchContext","createSwitchScope","createContextScope","SwitchProvider","useSwitchContext","Switch","React","forwardRef","props","forwardedRef","__scopeSwitch","name","checked","checkedProp","defaultChecked","required","disabled","value","onCheckedChange","switchProps","button","setButton","useState","composedRefs","useComposedRefs","node","hasConsumerStoppedPropagationRef","useRef","isFormControl","Boolean","closest","setChecked","useControllableState","prop","defaultProp","onChange","jsxs","scope","children","jsx","Primitive","type","role","getState","ref","onClick","composeEventHandlers","event","prevChecked","current","isPropagationStopped","stopPropagation","BubbleInput","control","bubbles","style","transform","displayName","THUMB_NAME","SwitchThumb","thumbProps","context","span","inputProps","usePrevious","controlSize","useSize","useEffect","input","inputProto","window","HTMLInputElement","prototype","Object","getOwnPropertyDescriptor","set","Event","call","dispatchEvent","tabIndex","position","pointerEvents","opacity","margin","Root","Thumb"],"mappings":"snBAYA,IAAIA,EAAc,UACbC,EAAqBC,GAAqBC,EAAmBH,IAC7DI,EAAgBC,GAAoBJ,EAAoBD,GACzDM,EAASC,EAAMC,YACjB,CAACC,EAAOC,KACN,MAAMC,cACJA,EAAaC,KACbA,EACAC,QAASC,EAAWC,eACpBA,EAAcC,SACdA,EAAQC,SACRA,EAAQC,MACRA,EAAQ,KAAIC,gBACZA,KACGC,GACDX,GACGY,EAAQC,GAAaf,EAAMgB,SAAS,M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A/C,EAAM6D,WAAU,KACd,MAAMC,EAAQxB,EAAIK,QACZoB,EAAaC,OAAOC,iBAAiBC,UAErCzC,EADa0C,OAAOC,yBAAyBL,EAAY,WACjCM,IAC9B,GAAI3B,IAAgBpC,GAAWmB,EAAY,CACzC,MAAMgB,EAAQ,IAAI6B,MAAM,QAAS,CAAEtB,YACnCvB,EAAW8C,KAAKT,EAAOxD,GACvBwD,EAAMU,cAAc/B,EACrB,IACA,CAACC,EAAapC,EAAS0C,IACHf,EACrB,QACA,CACEE,KAAM,WACN,eAAe,EACf3B,eAAgBF,KACbmD,EACHgB,UAAW,EACXnC,MACAW,MAAO,IACF/C,EAAM+C,SACNU,EACHe,SAAU,WACVC,cAAe,OACfC,QAAS,EACTC,OAAQ,IAGb,EAEH,SAASxC,EAAS/B,GAChB,OAAOA,EAAU,UAAY,WAC/B,CACG,IAACwE,EAAO/E,EACPgF,EAAQ1B"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import{composeEventHandlers as t}from"../../../../../primitive/dist/index.mjs";import{createContextScope as a}from"../../react-context/dist/index.mjs";import{createRovingFocusGroupScope as o,Root as r,Item as i}from"../../../../../react-roving-focus/dist/index.mjs";import{Presence as n}from"../../react-presence/dist/index.mjs";import{Primitive as s}from"../../../../../react-primitive/dist/index.mjs";import{useDirection as d}from"../../../../../react-direction/dist/index.mjs";import{useControllableState as c}from"../../../../../react-use-controllable-state/dist/index.mjs";import{useId as l}from"../../../../../react-id/dist/index.mjs";import{jsx as u}from"react/jsx-runtime";var m="Tabs",[f,p]=a(m,[o]),v=o(),[b,h]=f(m),x=e.forwardRef(((e,t)=>{const{__scopeTabs:a,value:o,onValueChange:r,defaultValue:i,orientation:n="horizontal",dir:m,activationMode:f="automatic",...p}=e,v=d(m),[h,x]=c({prop:o,onChange:r,defaultProp:i});return u(b,{scope:a,baseId:l(),value:h,onValueChange:x,orientation:n,dir:v,activationMode:f,children:u(s.div,{dir:v,"data-orientation":n,...p,ref:t})})}));x.displayName=m;var y="TabsList",g=e.forwardRef(((e,t)=>{const{__scopeTabs:a,loop:o=!0,...i}=e,n=h(y,a),d=v(a);return u(r,{asChild:!0,...d,orientation:n.orientation,dir:n.dir,loop:o,children:u(s.div,{role:"tablist","aria-orientation":n.orientation,...i,ref:t})})}));g.displayName=y;var j="TabsTrigger",C=e.forwardRef(((e,a)=>{const{__scopeTabs:o,value:r,disabled:n=!1,...d}=e,c=h(j,o),l=v(o),m=_(c.baseId,r),f=D(c.baseId,r),p=r===c.value;return u(i,{asChild:!0,...l,focusable:!n,active:p,children:u(s.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":f,"data-state":p?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:m,...d,ref:a,onMouseDown:t(e.onMouseDown,(e=>{n||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(r)})),onKeyDown:t(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(r)})),onFocus:t(e.onFocus,(()=>{const e="manual"!==c.activationMode;p||n||!e||c.onValueChange(r)}))})})}));C.displayName=j;var T="TabsContent",w=e.forwardRef(((t,a)=>{const{__scopeTabs:o,value:r,forceMount:i,children:d,...c}=t,l=h(T,o),m=_(l.baseId,r),f=D(l.baseId,r),p=r===l.value,v=e.useRef(p);return e.useEffect((()=>{const e=requestAnimationFrame((()=>v.current=!1));return()=>cancelAnimationFrame(e)}),[]),u(n,{present:i||p,children:({present:e})=>u(s.div,{"data-state":p?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":m,hidden:!e,id:f,tabIndex:0,...c,ref:a,style:{...t.style,animationDuration:v.current?"0s":void 0},children:e&&d})})}));function _(e,t){return`${e}-trigger-${t}`}function D(e,t){return`${e}-content-${t}`}w.displayName=T;var I=x,M=g,R=C,V=w;export{V as Content,M as List,I as Root,x as Tabs,w as TabsContent,g as TabsList,C as TabsTrigger,R as Trigger,p as createTabsScope};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tabs/dist/index.mjs.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tabs/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/tabs/src/Tabs.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { createRovingFocusGroupScope } from \"@radix-ui/react-roving-focus\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as RovingFocusGroup from \"@radix-ui/react-roving-focus\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar TABS_NAME = \"Tabs\";\nvar [createTabsContext, createTabsScope] = createContextScope(TABS_NAME, [\n createRovingFocusGroupScope\n]);\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar [TabsProvider, useTabsContext] = createTabsContext(TABS_NAME);\nvar Tabs = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeTabs,\n value: valueProp,\n onValueChange,\n defaultValue,\n orientation = \"horizontal\",\n dir,\n activationMode = \"automatic\",\n ...tabsProps\n } = props;\n const direction = useDirection(dir);\n const [value, setValue] = useControllableState({\n prop: valueProp,\n onChange: onValueChange,\n defaultProp: defaultValue\n });\n return /* @__PURE__ */ jsx(\n TabsProvider,\n {\n scope: __scopeTabs,\n baseId: useId(),\n value,\n onValueChange: setValue,\n orientation,\n dir: direction,\n activationMode,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n dir: direction,\n \"data-orientation\": orientation,\n ...tabsProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nTabs.displayName = TABS_NAME;\nvar TAB_LIST_NAME = \"TabsList\";\nvar TabsList = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeTabs, loop = true, ...listProps } = props;\n const context = useTabsContext(TAB_LIST_NAME, __scopeTabs);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeTabs);\n return /* @__PURE__ */ jsx(\n RovingFocusGroup.Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n orientation: context.orientation,\n dir: context.dir,\n loop,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"tablist\",\n \"aria-orientation\": context.orientation,\n ...listProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nTabsList.displayName = TAB_LIST_NAME;\nvar TRIGGER_NAME = \"TabsTrigger\";\nvar TabsTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeTabs, value, disabled = false, ...triggerProps } = props;\n const context = useTabsContext(TRIGGER_NAME, __scopeTabs);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeTabs);\n const triggerId = makeTriggerId(context.baseId, value);\n const contentId = makeContentId(context.baseId, value);\n const isSelected = value === context.value;\n return /* @__PURE__ */ jsx(\n RovingFocusGroup.Item,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n focusable: !disabled,\n active: isSelected,\n children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"tab\",\n \"aria-selected\": isSelected,\n \"aria-controls\": contentId,\n \"data-state\": isSelected ? \"active\" : \"inactive\",\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n id: triggerId,\n ...triggerProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!disabled && event.button === 0 && event.ctrlKey === false) {\n context.onValueChange(value);\n } else {\n event.preventDefault();\n }\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if ([\" \", \"Enter\"].includes(event.key)) context.onValueChange(value);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => {\n const isAutomaticActivation = context.activationMode !== \"manual\";\n if (!isSelected && !disabled && isAutomaticActivation) {\n context.onValueChange(value);\n }\n })\n }\n )\n }\n );\n }\n);\nTabsTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"TabsContent\";\nvar TabsContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeTabs, value, forceMount, children, ...contentProps } = props;\n const context = useTabsContext(CONTENT_NAME, __scopeTabs);\n const triggerId = makeTriggerId(context.baseId, value);\n const contentId = makeContentId(context.baseId, value);\n const isSelected = value === context.value;\n const isMountAnimationPreventedRef = React.useRef(isSelected);\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || isSelected, children: ({ present }) => /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": isSelected ? \"active\" : \"inactive\",\n \"data-orientation\": context.orientation,\n role: \"tabpanel\",\n \"aria-labelledby\": triggerId,\n hidden: !present,\n id: contentId,\n tabIndex: 0,\n ...contentProps,\n ref: forwardedRef,\n style: {\n ...props.style,\n animationDuration: isMountAnimationPreventedRef.current ? \"0s\" : void 0\n },\n children: present && children\n }\n ) });\n }\n);\nTabsContent.displayName = CONTENT_NAME;\nfunction makeTriggerId(baseId, value) {\n return `${baseId}-trigger-${value}`;\n}\nfunction makeContentId(baseId, value) {\n return `${baseId}-content-${value}`;\n}\nvar Root2 = Tabs;\nvar List = TabsList;\nvar Trigger = TabsTrigger;\nvar Content = TabsContent;\nexport {\n Content,\n List,\n Root2 as Root,\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n Trigger,\n createTabsScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["TABS_NAME","createTabsContext","createTabsScope","createContextScope","createRovingFocusGroupScope","useRovingFocusGroupScope","TabsProvider","useTabsContext","Tabs","React","forwardRef","props","forwardedRef","__scopeTabs","value","valueProp","onValueChange","defaultValue","orientation","dir","activationMode","tabsProps","direction","useDirection","setValue","useControllableState","prop","onChange","defaultProp","jsx","scope","baseId","useId","children","Primitive","div","ref","displayName","TAB_LIST_NAME","TabsList","loop","listProps","context","rovingFocusGroupScope","RovingFocusGroup.Root","asChild","role","TRIGGER_NAME","TabsTrigger","disabled","triggerProps","triggerId","makeTriggerId","contentId","makeContentId","isSelected","RovingFocusGroup.Item","focusable","active","button","type","id","onMouseDown","composeEventHandlers","event","ctrlKey","preventDefault","onKeyDown","includes","key","onFocus","isAutomaticActivation","CONTENT_NAME","TabsContent","forceMount","contentProps","isMountAnimationPreventedRef","useRef","useEffect","rAF","requestAnimationFrame","current","cancelAnimationFrame","Presence","present","hidden","tabIndex","style","animationDuration","Root2","List","Trigger","Content"],"mappings":"isBAcA,IAAIA,EAAY,QACXC,EAAmBC,GAAmBC,EAAmBH,EAAW,CACvEI,IAEEC,EAA2BD,KAC1BE,EAAcC,GAAkBN,EAAkBD,GACnDQ,EAAOC,EAAMC,YACf,CAACC,EAAOC,KACN,MAAMC,YACJA,EACAC,MAAOC,EAASC,cAChBA,EAAaC,aACbA,EAAYC,YACZA,EAAc,aAAYC,IAC1BA,EAAGC,eACHA,EAAiB,eACdC,GACDV,EACEW,EAAYC,EAAaJ,IACxBL,EAAOU,GAAYC,EAAqB,CAC7CC,KAAMX,EACNY,SAAUX,EACVY,YAAaX,IAEf,OAAuBY,EACrBvB,EACA,CACEwB,MAAOjB,EACPkB,OAAQC,IACRlB,QACAE,cAAeQ,EACfN,cACAC,IAAKG,EACLF,iBACAa,SAA0BJ,EACxBK,EAAUC,IACV,CACEhB,IAAKG,EACL,mBAAoBJ,KACjBG,EACHe,IAAKxB,KAIZ,IAGLJ,EAAK6B,YAAcrC,EACnB,IAAIsC,EAAgB,WAChBC,EAAW9B,EAAMC,YACnB,CAACC,EAAOC,KACN,MAAMC,YAAEA,EAAW2B,KAAEA,GAAO,KAASC,GAAc9B,EAC7C+B,EAAUnC,EAAe+B,EAAezB,GACxC8B,EAAwBt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B,EAAe,cACfC,EAAchE,EAAMC,YACtB,CAACC,EAAOC,KACN,MAAMC,YAAEA,EAAWC,MAAEA,EAAK4D,WAAEA,EAAUzC,SAAEA,KAAa0C,GAAiBhE,EAChE+B,EAAUnC,EAAeiE,EAAc3D,GACvCsC,EAAYC,EAAcV,EAAQX,OAAQjB,GAC1CuC,EAAYC,EAAcZ,EAAQX,OAAQjB,GAC1CyC,EAAazC,IAAU4B,EAAQ5B,MAC/B8D,EAA+BnE,EAAMoE,OAAOtB,GAKlD,OAJA9C,EAAMqE,WAAU,KACd,MAAMC,EAAMC,uBAAsB,IAAMJ,EAA6BK,SAAU,IAC/E,MAAO,IAAMC,qBAAqBH,EAAI,GACrC,IACoBlD,EAAIsD,EAAU,CAAEC,QAASV,GAAcnB,EAAYtB,SAAU,EAAGmD,aAA8BvD,EACnHK,EAAUC,IACV,CACE,aAAcoB,EAAa,SAAW,WACtC,mBAAoBb,EAAQxB,YAC5B4B,KAAM,WACN,kBAAmBK,EACnBkC,QAASD,EACTvB,GAAIR,EACJiC,SAAU,KACPX,EACHvC,IAAKxB,EACL2E,MAAO,IACF5E,EAAM4E,MACTC,kBAAmBZ,EAA6BK,QAAU,UAAO,GAEnEhD,SAAUmD,GAAWnD,KAErB,IAIR,SAASmB,EAAcrB,EAAQjB,GAC7B,MAAO,GAAGiB,aAAkBjB,GAC9B,CACA,SAASwC,EAAcvB,EAAQjB,GAC7B,MAAO,GAAGiB,aAAkBjB,GAC9B,CANA2D,EAAYpC,YAAcmC,EAOvB,IAACiB,EAAQjF,EACRkF,EAAOnD,EACPoD,EAAU3C,EACV4C,EAAUnB"}
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tooltip/dist/index.mjs
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import{composeEventHandlers as t}from"../../../../../primitive/dist/index.mjs";import{useComposedRefs as o}from"../../../../../react-compose-refs/dist/index.mjs";import{createContextScope as r}from"../../react-context/dist/index.mjs";import{DismissableLayer as n}from"../../react-dismissable-layer/dist/index.mjs";import{createPopperScope as i,Anchor as s,Content as a,Arrow as c}from"../../../../../react-popper/dist/index.mjs";import{Presence as l}from"../../react-presence/dist/index.mjs";import{Primitive as p}from"../../../../../react-primitive/dist/index.mjs";import{Slottable as u}from"../../../../../react-slot/dist/index.mjs";import{Root as d}from"../../../../../react-visually-hidden/dist/index.mjs";import{jsx as f,jsxs as m}from"react/jsx-runtime";var[h,x]=r("Tooltip",[i]),y=i(),v="TooltipProvider",g=700,b="tooltip.open",[w,T]=h(v),C=t=>{const{__scopeTooltip:o,delayDuration:r=g,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:s}=t,[a,c]=e.useState(!0),l=e.useRef(!1),p=e.useRef(0);return e.useEffect((()=>{const e=p.current;return()=>window.clearTimeout(e)}),[]),f(w,{scope:o,isOpenDelayed:a,delayDuration:r,onOpen:e.useCallback((()=>{window.clearTimeout(p.current),c(!1)}),[]),onClose:e.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>c(!0)),n)}),[n]),isPointerInTransitRef:l,onPointerInTransitChange:e.useCallback((e=>{l.current=e}),[]),disableHoverableContent:i,children:s})};C.displayName=v;var E="Tooltip",[_,L]=h(E),P="TooltipTrigger",R=e.forwardRef(((r,n)=>{const{__scopeTooltip:i,...a}=r,c=L(P,i),l=T(P,i),u=y(i),d=e.useRef(null),m=o(n,d,c.onTriggerChange),h=e.useRef(!1),x=e.useRef(!1),v=e.useCallback((()=>h.current=!1),[]);return e.useEffect((()=>()=>document.removeEventListener("pointerup",v)),[v]),f(s,{asChild:!0,...u,children:f(p.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...a,ref:m,onPointerMove:t(r.onPointerMove,(e=>{"touch"!==e.pointerType&&(x.current||l.isPointerInTransitRef.current||(c.onTriggerEnter(),x.current=!0))})),onPointerLeave:t(r.onPointerLeave,(()=>{c.onTriggerLeave(),x.current=!1})),onPointerDown:t(r.onPointerDown,(()=>{h.current=!0,document.addEventListener("pointerup",v,{once:!0})})),onFocus:t(r.onFocus,(()=>{h.current||c.onOpen()})),onBlur:t(r.onBlur,c.onClose),onClick:t(r.onClick,c.onClose)})})}));R.displayName=P;var[k,D]=h("TooltipPortal",{forceMount:void 0}),j="TooltipContent",M=e.forwardRef(((e,t)=>{const o=D(j,e.__scopeTooltip),{forceMount:r=o.forceMount,side:n="top",...i}=e,s=L(j,e.__scopeTooltip);return f(l,{present:r||s.open,children:s.disableHoverableContent?f(N,{side:n,...i,ref:t}):f(I,{side:n,...i,ref:t})})})),I=e.forwardRef(((t,r)=>{const n=L(j,t.__scopeTooltip),i=T(j,t.__scopeTooltip),s=e.useRef(null),a=o(r,s),[c,l]=e.useState(null),{trigger:p,onClose:u}=n,d=s.current,{onPointerInTransitChange:m}=i,h=e.useCallback((()=>{l(null),m(!1)}),[m]),x=e.useCallback(((e,t)=>{const o=e.currentTarget,r={x:e.clientX,y:e.clientY},n=function(e,t,o=5){const r=[];switch(t){case"top":r.push({x:e.x-o,y:e.y+o},{x:e.x+o,y:e.y+o});break;case"bottom":r.push({x:e.x-o,y:e.y-o},{x:e.x+o,y:e.y-o});break;case"left":r.push({x:e.x+o,y:e.y-o},{x:e.x+o,y:e.y+o});break;case"right":r.push({x:e.x-o,y:e.y-o},{x:e.x-o,y:e.y+o})}return r}(r,function(e,t){const o=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),n=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(o,r,n,i)){case i:return"left";case n:return"right";case o:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,o.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const e=t[t.length-1],o=t[t.length-2];if(!((e.x-o.x)*(r.y-o.y)>=(e.y-o.y)*(r.x-o.x)))break;t.pop()}t.push(r)}t.pop();const o=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;o.length>=2;){const e=o[o.length-1],t=o[o.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;o.pop()}o.push(r)}return o.pop(),1===t.length&&1===o.length&&t[0].x===o[0].x&&t[0].y===o[0].y?t:t.concat(o)}(t)}([...n,...function(e){const{top:t,right:o,bottom:r,left:n}=e;return[{x:n,y:t},{x:o,y:t},{x:o,y:r},{x:n,y:r}]}(t.getBoundingClientRect())]);l(i),m(!0)}),[m]);return e.useEffect((()=>()=>h()),[h]),e.useEffect((()=>{if(p&&d){const e=e=>x(e,d),t=e=>x(e,p);return p.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{p.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[p,d,x,h]),e.useEffect((()=>{if(c){const e=e=>{const t=e.target,o={x:e.clientX,y:e.clientY},r=p?.contains(t)||d?.contains(t),n=!function(e,t){const{x:o,y:r}=e;let n=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const s=t[e].x,a=t[e].y,c=t[i].x,l=t[i].y;a>r!=l>r&&o<(c-s)*(r-a)/(l-a)+s&&(n=!n)}return n}(o,c);r?h():n&&(h(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[p,d,c,u,h]),f(N,{...t,ref:a})})),[O,B]=h(E,{isInside:!1}),N=e.forwardRef(((t,o)=>{const{__scopeTooltip:r,children:i,"aria-label":s,onEscapeKeyDown:c,onPointerDownOutside:l,...p}=t,h=L(j,r),x=y(r),{onClose:v}=h;return e.useEffect((()=>(document.addEventListener(b,v),()=>document.removeEventListener(b,v))),[v]),e.useEffect((()=>{if(h.trigger){const e=e=>{const t=e.target;t?.contains(h.trigger)&&v()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[h.trigger,v]),f(n,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:v,children:m(a,{"data-state":h.stateAttribute,...x,...p,ref:o,style:{...p.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[f(u,{children:i}),f(O,{scope:r,isInside:!0,children:f(d,{id:h.contentId,role:"tooltip",children:s||i})})]})})}));M.displayName=j;var A="TooltipArrow",F=e.forwardRef(((e,t)=>{const{__scopeTooltip:o,...r}=e,n=y(o);return B(A,o).isInside?null:f(c,{...n,...r,ref:t})}));F.displayName=A;var H=C;export{H as Provider,F as TooltipArrow,M as TooltipContent,C as TooltipProvider,R as TooltipTrigger,x as createTooltipScope};
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tooltip/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/tooltip/src/Tooltip.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Slottable } from \"@radix-ui/react-slot\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport * as VisuallyHiddenPrimitive from \"@radix-ui/react-visually-hidden\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar [createTooltipContext, createTooltipScope] = createContextScope(\"Tooltip\", [\n createPopperScope\n]);\nvar usePopperScope = createPopperScope();\nvar PROVIDER_NAME = \"TooltipProvider\";\nvar DEFAULT_DELAY_DURATION = 700;\nvar TOOLTIP_OPEN = \"tooltip.open\";\nvar [TooltipProviderContextProvider, useTooltipProviderContext] = createTooltipContext(PROVIDER_NAME);\nvar TooltipProvider = (props) => {\n const {\n __scopeTooltip,\n delayDuration = DEFAULT_DELAY_DURATION,\n skipDelayDuration = 300,\n disableHoverableContent = false,\n children\n } = props;\n const [isOpenDelayed, setIsOpenDelayed] = React.useState(true);\n const isPointerInTransitRef = React.useRef(false);\n const skipDelayTimerRef = React.useRef(0);\n React.useEffect(() => {\n const skipDelayTimer = skipDelayTimerRef.current;\n return () => window.clearTimeout(skipDelayTimer);\n }, []);\n return /* @__PURE__ */ jsx(\n TooltipProviderContextProvider,\n {\n scope: __scopeTooltip,\n isOpenDelayed,\n delayDuration,\n onOpen: React.useCallback(() => {\n window.clearTimeout(skipDelayTimerRef.current);\n setIsOpenDelayed(false);\n }, []),\n onClose: React.useCallback(() => {\n window.clearTimeout(skipDelayTimerRef.current);\n skipDelayTimerRef.current = window.setTimeout(\n () => setIsOpenDelayed(true),\n skipDelayDuration\n );\n }, [skipDelayDuration]),\n isPointerInTransitRef,\n onPointerInTransitChange: React.useCallback((inTransit) => {\n isPointerInTransitRef.current = inTransit;\n }, []),\n disableHoverableContent,\n children\n }\n );\n};\nTooltipProvider.displayName = PROVIDER_NAME;\nvar TOOLTIP_NAME = \"Tooltip\";\nvar [TooltipContextProvider, useTooltipContext] = createTooltipContext(TOOLTIP_NAME);\nvar Tooltip = (props) => {\n const {\n __scopeTooltip,\n children,\n open: openProp,\n defaultOpen = false,\n onOpenChange,\n disableHoverableContent: disableHoverableContentProp,\n delayDuration: delayDurationProp\n } = props;\n const providerContext = useTooltipProviderContext(TOOLTIP_NAME, props.__scopeTooltip);\n const popperScope = usePopperScope(__scopeTooltip);\n const [trigger, setTrigger] = React.useState(null);\n const contentId = useId();\n const openTimerRef = React.useRef(0);\n const disableHoverableContent = disableHoverableContentProp ?? providerContext.disableHoverableContent;\n const delayDuration = delayDurationProp ?? providerContext.delayDuration;\n const wasOpenDelayedRef = React.useRef(false);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: (open2) => {\n if (open2) {\n providerContext.onOpen();\n document.dispatchEvent(new CustomEvent(TOOLTIP_OPEN));\n } else {\n providerContext.onClose();\n }\n onOpenChange?.(open2);\n }\n });\n const stateAttribute = React.useMemo(() => {\n return open ? wasOpenDelayedRef.current ? \"delayed-open\" : \"instant-open\" : \"closed\";\n }, [open]);\n const handleOpen = React.useCallback(() => {\n window.clearTimeout(openTimerRef.current);\n wasOpenDelayedRef.current = false;\n setOpen(true);\n }, [setOpen]);\n const handleClose = React.useCallback(() => {\n window.clearTimeout(openTimerRef.current);\n setOpen(false);\n }, [setOpen]);\n const handleDelayedOpen = React.useCallback(() => {\n window.clearTimeout(openTimerRef.current);\n openTimerRef.current = window.setTimeout(() => {\n wasOpenDelayedRef.current = true;\n setOpen(true);\n }, delayDuration);\n }, [delayDuration, setOpen]);\n React.useEffect(() => {\n return () => window.clearTimeout(openTimerRef.current);\n }, []);\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n TooltipContextProvider,\n {\n scope: __scopeTooltip,\n contentId,\n open,\n stateAttribute,\n trigger,\n onTriggerChange: setTrigger,\n onTriggerEnter: React.useCallback(() => {\n if (providerContext.isOpenDelayed) handleDelayedOpen();\n else handleOpen();\n }, [providerContext.isOpenDelayed, handleDelayedOpen, handleOpen]),\n onTriggerLeave: React.useCallback(() => {\n if (disableHoverableContent) {\n handleClose();\n } else {\n window.clearTimeout(openTimerRef.current);\n }\n }, [handleClose, disableHoverableContent]),\n onOpen: handleOpen,\n onClose: handleClose,\n disableHoverableContent,\n children\n }\n ) });\n};\nTooltip.displayName = TOOLTIP_NAME;\nvar TRIGGER_NAME = \"TooltipTrigger\";\nvar TooltipTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeTooltip, ...triggerProps } = props;\n const context = useTooltipContext(TRIGGER_NAME, __scopeTooltip);\n const providerContext = useTooltipProviderContext(TRIGGER_NAME, __scopeTooltip);\n const popperScope = usePopperScope(__scopeTooltip);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref, context.onTriggerChange);\n const isPointerDownRef = React.useRef(false);\n const hasPointerMoveOpenedRef = React.useRef(false);\n const handlePointerUp = React.useCallback(() => isPointerDownRef.current = false, []);\n React.useEffect(() => {\n return () => document.removeEventListener(\"pointerup\", handlePointerUp);\n }, [handlePointerUp]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n \"aria-describedby\": context.open ? context.contentId : void 0,\n \"data-state\": context.stateAttribute,\n ...triggerProps,\n ref: composedRefs,\n onPointerMove: composeEventHandlers(props.onPointerMove, (event) => {\n if (event.pointerType === \"touch\") return;\n if (!hasPointerMoveOpenedRef.current && !providerContext.isPointerInTransitRef.current) {\n context.onTriggerEnter();\n hasPointerMoveOpenedRef.current = true;\n }\n }),\n onPointerLeave: composeEventHandlers(props.onPointerLeave, () => {\n context.onTriggerLeave();\n hasPointerMoveOpenedRef.current = false;\n }),\n onPointerDown: composeEventHandlers(props.onPointerDown, () => {\n isPointerDownRef.current = true;\n document.addEventListener(\"pointerup\", handlePointerUp, { once: true });\n }),\n onFocus: composeEventHandlers(props.onFocus, () => {\n if (!isPointerDownRef.current) context.onOpen();\n }),\n onBlur: composeEventHandlers(props.onBlur, context.onClose),\n onClick: composeEventHandlers(props.onClick, context.onClose)\n }\n ) });\n }\n);\nTooltipTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"TooltipPortal\";\nvar [PortalProvider, usePortalContext] = createTooltipContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar TooltipPortal = (props) => {\n const { __scopeTooltip, forceMount, children, container } = props;\n const context = useTooltipContext(PORTAL_NAME, __scopeTooltip);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeTooltip, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nTooltipPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"TooltipContent\";\nvar TooltipContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeTooltip);\n const { forceMount = portalContext.forceMount, side = \"top\", ...contentProps } = props;\n const context = useTooltipContext(CONTENT_NAME, props.__scopeTooltip);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.disableHoverableContent ? /* @__PURE__ */ jsx(TooltipContentImpl, { side, ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(TooltipContentHoverable, { side, ...contentProps, ref: forwardedRef }) });\n }\n);\nvar TooltipContentHoverable = React.forwardRef((props, forwardedRef) => {\n const context = useTooltipContext(CONTENT_NAME, props.__scopeTooltip);\n const providerContext = useTooltipProviderContext(CONTENT_NAME, props.__scopeTooltip);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const [pointerGraceArea, setPointerGraceArea] = React.useState(null);\n const { trigger, onClose } = context;\n const content = ref.current;\n const { onPointerInTransitChange } = providerContext;\n const handleRemoveGraceArea = React.useCallback(() => {\n setPointerGraceArea(null);\n onPointerInTransitChange(false);\n }, [onPointerInTransitChange]);\n const handleCreateGraceArea = React.useCallback(\n (event, hoverTarget) => {\n const currentTarget = event.currentTarget;\n const exitPoint = { x: event.clientX, y: event.clientY };\n const exitSide = getExitSideFromRect(exitPoint, currentTarget.getBoundingClientRect());\n const paddedExitPoints = getPaddedExitPoints(exitPoint, exitSide);\n const hoverTargetPoints = getPointsFromRect(hoverTarget.getBoundingClientRect());\n const graceArea = getHull([...paddedExitPoints, ...hoverTargetPoints]);\n setPointerGraceArea(graceArea);\n onPointerInTransitChange(true);\n },\n [onPointerInTransitChange]\n );\n React.useEffect(() => {\n return () => handleRemoveGraceArea();\n }, [handleRemoveGraceArea]);\n React.useEffect(() => {\n if (trigger && content) {\n const handleTriggerLeave = (event) => handleCreateGraceArea(event, content);\n const handleContentLeave = (event) => handleCreateGraceArea(event, trigger);\n trigger.addEventListener(\"pointerleave\", handleTriggerLeave);\n content.addEventListener(\"pointerleave\", handleContentLeave);\n return () => {\n trigger.removeEventListener(\"pointerleave\", handleTriggerLeave);\n content.removeEventListener(\"pointerleave\", handleContentLeave);\n };\n }\n }, [trigger, content, handleCreateGraceArea, handleRemoveGraceArea]);\n React.useEffect(() => {\n if (pointerGraceArea) {\n const handleTrackPointerGrace = (event) => {\n const target = event.target;\n const pointerPosition = { x: event.clientX, y: event.clientY };\n const hasEnteredTarget = trigger?.contains(target) || content?.contains(target);\n const isPointerOutsideGraceArea = !isPointInPolygon(pointerPosition, pointerGraceArea);\n if (hasEnteredTarget) {\n handleRemoveGraceArea();\n } else if (isPointerOutsideGraceArea) {\n handleRemoveGraceArea();\n onClose();\n }\n };\n document.addEventListener(\"pointermove\", handleTrackPointerGrace);\n return () => document.removeEventListener(\"pointermove\", handleTrackPointerGrace);\n }\n }, [trigger, content, pointerGraceArea, onClose, handleRemoveGraceArea]);\n return /* @__PURE__ */ jsx(TooltipContentImpl, { ...props, ref: composedRefs });\n});\nvar [VisuallyHiddenContentContextProvider, useVisuallyHiddenContentContext] = createTooltipContext(TOOLTIP_NAME, { isInside: false });\nvar TooltipContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeTooltip,\n children,\n \"aria-label\": ariaLabel,\n onEscapeKeyDown,\n onPointerDownOutside,\n ...contentProps\n } = props;\n const context = useTooltipContext(CONTENT_NAME, __scopeTooltip);\n const popperScope = usePopperScope(__scopeTooltip);\n const { onClose } = context;\n React.useEffect(() => {\n document.addEventListener(TOOLTIP_OPEN, onClose);\n return () => document.removeEventListener(TOOLTIP_OPEN, onClose);\n }, [onClose]);\n React.useEffect(() => {\n if (context.trigger) {\n const handleScroll = (event) => {\n const target = event.target;\n if (target?.contains(context.trigger)) onClose();\n };\n window.addEventListener(\"scroll\", handleScroll, { capture: true });\n return () => window.removeEventListener(\"scroll\", handleScroll, { capture: true });\n }\n }, [context.trigger, onClose]);\n return /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents: false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside: (event) => event.preventDefault(),\n onDismiss: onClose,\n children: /* @__PURE__ */ jsxs(\n PopperPrimitive.Content,\n {\n \"data-state\": context.stateAttribute,\n ...popperScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n ...contentProps.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-tooltip-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-tooltip-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-tooltip-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-tooltip-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-tooltip-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n },\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(VisuallyHiddenContentContextProvider, { scope: __scopeTooltip, isInside: true, children: /* @__PURE__ */ jsx(VisuallyHiddenPrimitive.Root, { id: context.contentId, role: \"tooltip\", children: ariaLabel || children }) })\n ]\n }\n )\n }\n );\n }\n);\nTooltipContent.displayName = CONTENT_NAME;\nvar ARROW_NAME = \"TooltipArrow\";\nvar TooltipArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeTooltip, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopeTooltip);\n const visuallyHiddenContentContext = useVisuallyHiddenContentContext(\n ARROW_NAME,\n __scopeTooltip\n );\n return visuallyHiddenContentContext.isInside ? null : /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nTooltipArrow.displayName = ARROW_NAME;\nfunction getExitSideFromRect(point, rect) {\n const top = Math.abs(rect.top - point.y);\n const bottom = Math.abs(rect.bottom - point.y);\n const right = Math.abs(rect.right - point.x);\n const left = Math.abs(rect.left - point.x);\n switch (Math.min(top, bottom, right, left)) {\n case left:\n return \"left\";\n case right:\n return \"right\";\n case top:\n return \"top\";\n case bottom:\n return \"bottom\";\n default:\n throw new Error(\"unreachable\");\n }\n}\nfunction getPaddedExitPoints(exitPoint, exitSide, padding = 5) {\n const paddedExitPoints = [];\n switch (exitSide) {\n case \"top\":\n paddedExitPoints.push(\n { x: exitPoint.x - padding, y: exitPoint.y + padding },\n { x: exitPoint.x + padding, y: exitPoint.y + padding }\n );\n break;\n case \"bottom\":\n paddedExitPoints.push(\n { x: exitPoint.x - padding, y: exitPoint.y - padding },\n { x: exitPoint.x + padding, y: exitPoint.y - padding }\n );\n break;\n case \"left\":\n paddedExitPoints.push(\n { x: exitPoint.x + padding, y: exitPoint.y - padding },\n { x: exitPoint.x + padding, y: exitPoint.y + padding }\n );\n break;\n case \"right\":\n paddedExitPoints.push(\n { x: exitPoint.x - padding, y: exitPoint.y - padding },\n { x: exitPoint.x - padding, y: exitPoint.y + padding }\n );\n break;\n }\n return paddedExitPoints;\n}\nfunction getPointsFromRect(rect) {\n const { top, right, bottom, left } = rect;\n return [\n { x: left, y: top },\n { x: right, y: top },\n { x: right, y: bottom },\n { x: left, y: bottom }\n ];\n}\nfunction isPointInPolygon(point, polygon) {\n const { x, y } = point;\n let inside = false;\n for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n const xi = polygon[i].x;\n const yi = polygon[i].y;\n const xj = polygon[j].x;\n const yj = polygon[j].y;\n const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n return inside;\n}\nfunction getHull(points) {\n const newPoints = points.slice();\n newPoints.sort((a, b) => {\n if (a.x < b.x) return -1;\n else if (a.x > b.x) return 1;\n else if (a.y < b.y) return -1;\n else if (a.y > b.y) return 1;\n else return 0;\n });\n return getHullPresorted(newPoints);\n}\nfunction getHullPresorted(points) {\n if (points.length <= 1) return points.slice();\n const upperHull = [];\n for (let i = 0; i < points.length; i++) {\n const p = points[i];\n while (upperHull.length >= 2) {\n const q = upperHull[upperHull.length - 1];\n const r = upperHull[upperHull.length - 2];\n if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x)) upperHull.pop();\n else break;\n }\n upperHull.push(p);\n }\n upperHull.pop();\n const lowerHull = [];\n for (let i = points.length - 1; i >= 0; i--) {\n const p = points[i];\n while (lowerHull.length >= 2) {\n const q = lowerHull[lowerHull.length - 1];\n const r = lowerHull[lowerHull.length - 2];\n if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x)) lowerHull.pop();\n else break;\n }\n lowerHull.push(p);\n }\n lowerHull.pop();\n if (upperHull.length === 1 && lowerHull.length === 1 && upperHull[0].x === lowerHull[0].x && upperHull[0].y === lowerHull[0].y) {\n return upperHull;\n } else {\n return upperHull.concat(lowerHull);\n }\n}\nvar Provider = TooltipProvider;\nvar Root3 = Tooltip;\nvar Trigger = TooltipTrigger;\nvar Portal = TooltipPortal;\nvar Content2 = TooltipContent;\nvar Arrow2 = TooltipArrow;\nexport {\n Arrow2 as Arrow,\n Content2 as Content,\n Portal,\n Provider,\n Root3 as Root,\n Tooltip,\n TooltipArrow,\n TooltipContent,\n TooltipPortal,\n TooltipProvider,\n TooltipTrigger,\n Trigger,\n createTooltipScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createTooltipContext","createTooltipScope","createContextScope","createPopperScope","usePopperScope","PROVIDER_NAME","DEFAULT_DELAY_DURATION","TOOLTIP_OPEN","TooltipProviderContextProvider","useTooltipProviderContext","TooltipProvider","props","__scopeTooltip","delayDuration","skipDelayDuration","disableHoverableContent","children","isOpenDelayed","setIsOpenDelayed","React","useState","isPointerInTransitRef","useRef","skipDelayTimerRef","useEffect","skipDelayTimer","current","window","clearTimeout","jsx","scope","onOpen","useCallback","onClose","setTimeout","onPointerInTransitChange","inTransit","displayName","TOOLTIP_NAME","TooltipContextProvider","useTooltipContext","TRIGGER_NAME","TooltipTrigger","forwardRef","forwardedRef","triggerProps","context","providerContext","popperScope","ref","composedRefs","useComposedRefs","onTriggerChange","isPointerDownRef","hasPointerMoveOpenedRef","handlePointerUp","document","removeEventListener","PopperPrimitive.Anchor","asChild","Primitive","button","open","contentId","stateAttribute","onPointerMove","composeEventHandlers","event","pointerType","onTriggerEnter","onPointerLeave","onTriggerLeave","onPointerDown","addEventListener","once","onFocus","onBlur","onClick","PortalProvider","usePortalContext","forceMount","CONTENT_NAME","TooltipContent","portalContext","side","contentProps","Presence","present","TooltipContentImpl","TooltipContentHoverable","pointerGraceArea","setPointerGraceArea","trigger","content","handleRemoveGraceArea","handleCreateGraceArea","hoverTarget","currentTarget","exitPoint","x","clientX","y","clientY","paddedExitPoints","exitSide","padding","push","getPaddedExitPoints","point","rect","top","Math","abs","bottom","right","left","min","Error","getExitSideFromRect","getBoundingClientRect","graceArea","points","newPoints","slice","sort","a","b","length","upperHull","i","p","q","r","pop","lowerHull","concat","getHullPresorted","getHull","getPointsFromRect","handleTriggerLeave","handleContentLeave","handleTrackPointerGrace","target","pointerPosition","hasEnteredTarget","contains","isPointerOutsideGraceArea","polygon","inside","j","xi","yi","xj","yj","isPointInPolygon","VisuallyHiddenContentContextProvider","useVisuallyHiddenContentContext","isInside","ariaLabel","onEscapeKeyDown","onPointerDownOutside","handleScroll","capture","DismissableLayer","disableOutsidePointerEvents","onFocusOutside","preventDefault","onDismiss","jsxs","PopperPrimitive.Content","style","Slottable","VisuallyHiddenPrimitive.Root","id","role","ARROW_NAME","TooltipArrow","arrowProps","PopperPrimitive.Arrow","Provider"],"mappings":"gxBAkBG,IAAEA,EAAsBC,GAAsBC,EAAmB,UAAW,CAC7EC,IAEEC,EAAiBD,IACjBE,EAAgB,kBAChBC,EAAyB,IACzBC,EAAe,gBACdC,EAAgCC,GAA6BT,EAAqBK,GACnFK,EAAmBC,IACrB,MAAMC,eACJA,EAAcC,cACdA,EAAgBP,EAAsBQ,kBACtCA,EAAoB,IAAGC,wBACvBA,GAA0B,EAAKC,SAC/BA,GACEL,GACGM,EAAeC,GAAoBC,EAAMC,UAAS,GACnDC,EAAwBF,EAAMG,QAAO,GACrCC,EAAoBJ,EAAMG,OAAO,GAKvC,OAJAH,EAAMK,WAAU,KACd,MAAMC,EAAiBF,EAAkBG,QACzC,MAAO,IAAMC,OAAOC,aAAaH,EAAe,GAC/C,IACoBI,EACrBrB,EACA,CACEsB,MAAOlB,EACPK,gBACAJ,gBACAkB,OAAQZ,EAAMa,aAAY,KACxBL,OAAOC,aAAaL,EAAkBG,SACtCR,GAAiB,EAAM,GACtB,IACHe,QAASd,EAAMa,aAAY,KACzBL,OAAOC,aAAaL,EAAkBG,SACtCH,EAAkBG,QAAUC,OAAOO,YACjC,IAAMhB,GAAiB,IACvBJ,EACD,GACA,CAACA,IACJO,wBACAc,yBAA0BhB,EAAMa,aAAaI,IAC3Cf,EAAsBK,QAAUU,CAAS,GACxC,IACHrB,0BACAC,YAEH,EAEHN,EAAgB2B,YAAchC,EAC9B,IAAIiC,EAAe,WACdC,EAAwBC,GAAqBxC,EAAqBsC,GAkFnEG,EAAe,iBACfC,EAAiBvB,EAAMwB,YACzB,CAAChC,EAAOiC,KACN,MAAMhC,eAAEA,KAAmBiC,GAAiBlC,EACtCmC,EAAUN,EAAkBC,EAAc7B,GAC1CmC,EAAkBtC,EAA0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