@lotte-innovate/ui-component-test 0.1.53 → 0.1.55
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_virtual/_commonjsHelpers.mjs +2 -0
- package/dist/_virtual/_commonjsHelpers.mjs.map +1 -0
- package/dist/_virtual/index.mjs +2 -0
- package/dist/_virtual/index.mjs.map +1 -0
- package/dist/_virtual/index2.mjs +2 -0
- package/dist/_virtual/index2.mjs.map +1 -0
- package/dist/_virtual/jsx-runtime.mjs +2 -0
- package/dist/_virtual/jsx-runtime.mjs.map +1 -0
- package/dist/_virtual/jsx-runtime2.mjs +2 -0
- package/dist/_virtual/jsx-runtime2.mjs.map +1 -0
- package/dist/_virtual/react-jsx-runtime.development.mjs +2 -0
- package/dist/_virtual/react-jsx-runtime.development.mjs.map +1 -0
- package/dist/_virtual/react-jsx-runtime.production.min.mjs +2 -0
- package/dist/_virtual/react-jsx-runtime.production.min.mjs.map +1 -0
- package/dist/globals.css +1 -1
- package/dist/lib/Typography/Header/index.d.ts +13 -0
- package/dist/lib/Typography/Header/index.js +55 -0
- package/dist/lib/Typography/Header/index.mjs +2 -0
- package/dist/lib/Typography/Header/index.mjs.map +1 -0
- package/dist/lib/Typography/Text/index.d.ts +15 -0
- package/dist/lib/Typography/Text/index.js +44 -0
- package/dist/lib/Typography/Text/index.mjs +2 -0
- package/dist/lib/Typography/Text/index.mjs.map +1 -0
- package/dist/lib/color/alpha.mjs +2 -0
- package/dist/lib/color/alpha.mjs.map +1 -0
- package/dist/lib/color/constants.mjs +2 -0
- package/dist/lib/color/constants.mjs.map +1 -0
- package/dist/lib/color/light.mjs +2 -0
- package/dist/lib/color/light.mjs.map +1 -0
- package/dist/lib/components/Accordion/index.d.ts +22 -0
- package/dist/lib/components/Accordion/index.js +64 -0
- package/dist/lib/components/Accordion/index.mjs +2 -0
- package/dist/lib/components/Accordion/index.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +14 -0
- package/dist/lib/components/AlertDialog/AlertDialogAction.js +61 -0
- package/dist/lib/components/AlertDialog/AlertDialogAction.mjs +2 -0
- package/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +13 -0
- package/dist/lib/components/AlertDialog/AlertDialogCancel.js +60 -0
- package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs +2 -0
- package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogContent.js +51 -0
- package/dist/lib/components/AlertDialog/AlertDialogContent.mjs +2 -0
- package/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogDescription.js +47 -0
- package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs +2 -0
- package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +16 -0
- package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs +2 -0
- package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogTitle.js +47 -0
- package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs +2 -0
- package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +17 -0
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +55 -0
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +2 -0
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +1 -0
- package/dist/lib/components/AlertDialog/index.mjs +2 -0
- package/dist/lib/components/AlertDialog/index.mjs.map +1 -0
- package/dist/lib/components/AspectRatio/index.js +42 -0
- package/dist/lib/components/AspectRatio/index.mjs +2 -0
- package/dist/lib/components/AspectRatio/index.mjs.map +1 -0
- package/dist/lib/components/Avatar/index.js +58 -0
- package/dist/lib/components/Avatar/index.mjs +2 -0
- package/dist/lib/components/Avatar/index.mjs.map +1 -0
- package/dist/lib/components/Badge/index.d.ts +18 -0
- package/dist/lib/components/Badge/index.js +54 -0
- package/dist/lib/components/Badge/index.mjs +2 -0
- package/dist/lib/components/Badge/index.mjs.map +1 -0
- package/dist/lib/components/BarChart/index.d.ts +37 -0
- package/dist/lib/components/BarChart/index.js +63 -0
- package/dist/lib/components/BarChart/index.mjs +2 -0
- package/dist/lib/components/BarChart/index.mjs.map +1 -0
- package/dist/lib/components/BubbleChart/index.d.ts +28 -0
- package/dist/lib/components/BubbleChart/index.js +73 -0
- package/dist/lib/components/BubbleChart/index.mjs +2 -0
- package/dist/lib/components/BubbleChart/index.mjs.map +1 -0
- package/dist/lib/components/Button/index.d.ts +16 -0
- package/dist/lib/components/Button/index.js +56 -0
- package/dist/lib/components/Button/index.mjs +2 -0
- package/dist/lib/components/Button/index.mjs.map +1 -0
- package/dist/lib/components/Callout/CalloutIcon.js +57 -0
- package/dist/lib/components/Callout/CalloutIcon.mjs +2 -0
- package/dist/lib/components/Callout/CalloutIcon.mjs.map +1 -0
- package/dist/lib/components/Callout/CalloutRoot.d.ts +18 -0
- package/dist/lib/components/Callout/CalloutRoot.js +72 -0
- package/dist/lib/components/Callout/CalloutRoot.mjs +2 -0
- package/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -0
- package/dist/lib/components/Callout/CalloutText.js +52 -0
- package/dist/lib/components/Callout/CalloutText.mjs +2 -0
- package/dist/lib/components/Callout/CalloutText.mjs.map +1 -0
- package/dist/lib/components/Callout/index.mjs +2 -0
- package/dist/lib/components/Callout/index.mjs.map +1 -0
- package/dist/lib/components/Card/index.d.ts +14 -0
- package/dist/lib/components/Card/index.js +64 -0
- package/dist/lib/components/Card/index.mjs +2 -0
- package/dist/lib/components/Card/index.mjs.map +1 -0
- package/dist/lib/components/Checkbox/index.d.ts +17 -0
- package/dist/lib/components/Checkbox/index.js +89 -0
- package/dist/lib/components/Checkbox/index.mjs +2 -0
- package/dist/lib/components/Checkbox/index.mjs.map +1 -0
- package/dist/lib/components/CheckboxCard/index.d.ts +20 -0
- package/dist/lib/components/CheckboxCard/index.js +58 -0
- package/dist/lib/components/CheckboxCard/index.mjs +2 -0
- package/dist/lib/components/CheckboxCard/index.mjs.map +1 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +5 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +33 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs +2 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs.map +1 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +17 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +34 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +2 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -0
- package/dist/lib/components/CheckboxGroup/index.d.ts +6 -0
- package/dist/lib/components/CheckboxGroup/index.mjs +2 -0
- package/dist/lib/components/CheckboxGroup/index.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +42 -0
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuContent.js +56 -0
- package/dist/lib/components/ContextMenu/ContextMenuContent.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuItem.js +59 -0
- package/dist/lib/components/ContextMenu/ContextMenuItem.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +50 -0
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuLabel.js +48 -0
- package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +44 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +13 -0
- package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.js +31 -0
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +54 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +40 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.js +31 -0
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs +2 -0
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -0
- package/dist/lib/components/ContextMenu/index.mjs +2 -0
- package/dist/lib/components/ContextMenu/index.mjs.map +1 -0
- package/dist/lib/components/DataList/DataListItem.js +43 -0
- package/dist/lib/components/DataList/DataListItem.mjs +2 -0
- package/dist/lib/components/DataList/DataListItem.mjs.map +1 -0
- package/dist/lib/components/DataList/DataListLabel.js +49 -0
- package/dist/lib/components/DataList/DataListLabel.mjs +2 -0
- package/dist/lib/components/DataList/DataListLabel.mjs.map +1 -0
- package/dist/lib/components/DataList/DataListRoot.js +54 -0
- package/dist/lib/components/DataList/DataListRoot.mjs +2 -0
- package/dist/lib/components/DataList/DataListRoot.mjs.map +1 -0
- package/dist/lib/components/DataList/DataListValue.js +51 -0
- package/dist/lib/components/DataList/DataListValue.mjs +2 -0
- package/dist/lib/components/DataList/DataListValue.mjs.map +1 -0
- package/dist/lib/components/DataList/index.mjs +2 -0
- package/dist/lib/components/DataList/index.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogAction.d.ts +11 -0
- package/dist/lib/components/Dialog/DialogAction.js +59 -0
- package/dist/lib/components/Dialog/DialogAction.mjs +2 -0
- package/dist/lib/components/Dialog/DialogAction.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogCancel.d.ts +10 -0
- package/dist/lib/components/Dialog/DialogCancel.js +55 -0
- package/dist/lib/components/Dialog/DialogCancel.mjs +2 -0
- package/dist/lib/components/Dialog/DialogCancel.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogContent.js +57 -0
- package/dist/lib/components/Dialog/DialogContent.mjs +2 -0
- package/dist/lib/components/Dialog/DialogContent.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogDescription.js +47 -0
- package/dist/lib/components/Dialog/DialogDescription.mjs +2 -0
- package/dist/lib/components/Dialog/DialogDescription.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogRoot.d.ts +15 -0
- package/dist/lib/components/Dialog/DialogRoot.mjs +2 -0
- package/dist/lib/components/Dialog/DialogRoot.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogSlot.d.ts +8 -0
- package/dist/lib/components/Dialog/DialogSlot.js +46 -0
- package/dist/lib/components/Dialog/DialogSlot.mjs +2 -0
- package/dist/lib/components/Dialog/DialogSlot.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogTitle.d.ts +9 -0
- package/dist/lib/components/Dialog/DialogTitle.js +47 -0
- package/dist/lib/components/Dialog/DialogTitle.mjs +2 -0
- package/dist/lib/components/Dialog/DialogTitle.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogTrigger.mjs +2 -0
- package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -0
- package/dist/lib/components/Dialog/index.d.ts +15 -0
- package/dist/lib/components/Dialog/index.mjs +2 -0
- package/dist/lib/components/Dialog/index.mjs.map +1 -0
- package/dist/lib/components/DoughnutChart/index.d.ts +22 -0
- package/dist/lib/components/DoughnutChart/index.js +65 -0
- package/dist/lib/components/DoughnutChart/index.mjs +2 -0
- package/dist/lib/components/DoughnutChart/index.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +60 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +41 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +56 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +15 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +58 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +48 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +45 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +41 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +15 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +31 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +40 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +14 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +53 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +2 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +1 -0
- package/dist/lib/components/DropdownMenu/index.d.ts +20 -0
- package/dist/lib/components/DropdownMenu/index.mjs +2 -0
- package/dist/lib/components/DropdownMenu/index.mjs.map +1 -0
- package/dist/lib/components/HoverCard/HoverCardContent.d.ts +13 -0
- package/dist/lib/components/HoverCard/HoverCardContent.js +61 -0
- package/dist/lib/components/HoverCard/HoverCardContent.mjs +2 -0
- package/dist/lib/components/HoverCard/HoverCardContent.mjs.map +1 -0
- package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +11 -0
- package/dist/lib/components/HoverCard/HoverCardRoot.mjs +2 -0
- package/dist/lib/components/HoverCard/HoverCardRoot.mjs.map +1 -0
- package/dist/lib/components/HoverCard/HoverCardTrigger.mjs +2 -0
- package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -0
- package/dist/lib/components/HoverCard/index.d.ts +10 -0
- package/dist/lib/components/HoverCard/index.mjs +2 -0
- package/dist/lib/components/HoverCard/index.mjs.map +1 -0
- package/dist/lib/components/IconButton/index.d.ts +15 -0
- package/dist/lib/components/IconButton/index.js +63 -0
- package/dist/lib/components/IconButton/index.mjs +2 -0
- package/dist/lib/components/IconButton/index.mjs.map +1 -0
- package/dist/lib/components/Inset/index.js +50 -0
- package/dist/lib/components/Inset/index.mjs +2 -0
- package/dist/lib/components/Inset/index.mjs.map +1 -0
- package/dist/lib/components/Label/index.d.ts +17 -0
- package/dist/lib/components/Label/index.js +53 -0
- package/dist/lib/components/Label/index.mjs +2 -0
- package/dist/lib/components/Label/index.mjs.map +1 -0
- package/dist/lib/components/LineChart/index.d.ts +43 -0
- package/dist/lib/components/LineChart/index.js +61 -0
- package/dist/lib/components/LineChart/index.mjs +2 -0
- package/dist/lib/components/LineChart/index.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarCheckboxItem.js +38 -0
- package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarContent.js +60 -0
- package/dist/lib/components/Menubar/MenubarContent.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarContent.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarItem.js +54 -0
- package/dist/lib/components/Menubar/MenubarItem.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarItem.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarItemIndicator.js +49 -0
- package/dist/lib/components/Menubar/MenubarItemIndicator.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarMenu.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarRadioGroup.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarRadioGroup.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarRadioItem.js +40 -0
- package/dist/lib/components/Menubar/MenubarRadioItem.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarRadioItem.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarRoot.d.ts +19 -0
- package/dist/lib/components/Menubar/MenubarRoot.js +61 -0
- package/dist/lib/components/Menubar/MenubarRoot.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarSeparator.js +31 -0
- package/dist/lib/components/Menubar/MenubarSeparator.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarSub.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarSubContent.js +51 -0
- package/dist/lib/components/Menubar/MenubarSubContent.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarSubContent.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarSubTrigger.js +41 -0
- package/dist/lib/components/Menubar/MenubarSubTrigger.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarSubTrigger.mjs.map +1 -0
- package/dist/lib/components/Menubar/MenubarTrigger.js +57 -0
- package/dist/lib/components/Menubar/MenubarTrigger.mjs +2 -0
- package/dist/lib/components/Menubar/MenubarTrigger.mjs.map +1 -0
- package/dist/lib/components/Menubar/index.mjs +2 -0
- package/dist/lib/components/Menubar/index.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +48 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +31 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +51 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuList.js +47 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +14 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +43 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +58 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +53 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs +2 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +1 -0
- package/dist/lib/components/NavigationMenu/index.mjs +2 -0
- package/dist/lib/components/NavigationMenu/index.mjs.map +1 -0
- package/dist/lib/components/PieChart/index.d.ts +22 -0
- package/dist/lib/components/PieChart/index.js +65 -0
- package/dist/lib/components/PieChart/index.mjs +2 -0
- package/dist/lib/components/PieChart/index.mjs.map +1 -0
- package/dist/lib/components/Popover/PopoverClose.js +48 -0
- package/dist/lib/components/Popover/PopoverClose.mjs +2 -0
- package/dist/lib/components/Popover/PopoverClose.mjs.map +1 -0
- package/dist/lib/components/Popover/PopoverContent.d.ts +13 -0
- package/dist/lib/components/Popover/PopoverContent.js +65 -0
- package/dist/lib/components/Popover/PopoverContent.mjs +2 -0
- package/dist/lib/components/Popover/PopoverContent.mjs.map +1 -0
- package/dist/lib/components/Popover/PopoverRoot.d.ts +12 -0
- package/dist/lib/components/Popover/PopoverRoot.mjs +2 -0
- package/dist/lib/components/Popover/PopoverRoot.mjs.map +1 -0
- package/dist/lib/components/Popover/PopoverTrigger.mjs +2 -0
- package/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -0
- package/dist/lib/components/Popover/index.d.ts +11 -0
- package/dist/lib/components/Popover/index.mjs +2 -0
- package/dist/lib/components/Popover/index.mjs.map +1 -0
- package/dist/lib/components/Progress/index.d.ts +13 -0
- package/dist/lib/components/Progress/index.js +56 -0
- package/dist/lib/components/Progress/index.mjs +2 -0
- package/dist/lib/components/Progress/index.mjs.map +1 -0
- package/dist/lib/components/RadarChart/index.d.ts +32 -0
- package/dist/lib/components/RadarChart/index.js +76 -0
- package/dist/lib/components/RadarChart/index.mjs +2 -0
- package/dist/lib/components/RadarChart/index.mjs.map +1 -0
- package/dist/lib/components/Radio/index.d.ts +13 -0
- package/dist/lib/components/Radio/index.js +53 -0
- package/dist/lib/components/Radio/index.mjs +2 -0
- package/dist/lib/components/Radio/index.mjs.map +1 -0
- package/dist/lib/components/RadioCards/RadioCardsItem.js +54 -0
- package/dist/lib/components/RadioCards/RadioCardsItem.mjs +2 -0
- package/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +1 -0
- package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +13 -0
- package/dist/lib/components/RadioCards/RadioCardsRoot.js +46 -0
- package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +2 -0
- package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -0
- package/dist/lib/components/RadioCards/index.d.ts +6 -0
- package/dist/lib/components/RadioCards/index.mjs +2 -0
- package/dist/lib/components/RadioCards/index.mjs.map +1 -0
- package/dist/lib/components/RadioGroup/RadioGroupItem.d.ts +12 -0
- package/dist/lib/components/RadioGroup/RadioGroupItem.js +46 -0
- package/dist/lib/components/RadioGroup/RadioGroupItem.mjs +2 -0
- package/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +1 -0
- package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +15 -0
- package/dist/lib/components/RadioGroup/RadioGroupRoot.js +53 -0
- package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +2 -0
- package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -0
- package/dist/lib/components/RadioGroup/index.d.ts +6 -0
- package/dist/lib/components/RadioGroup/index.mjs +2 -0
- package/dist/lib/components/RadioGroup/index.mjs.map +1 -0
- package/dist/lib/components/ScrollArea/index.d.ts +9 -0
- package/dist/lib/components/ScrollArea/index.mjs +2 -0
- package/dist/lib/components/ScrollArea/index.mjs.map +1 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.js +35 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs +2 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +14 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +47 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +2 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -0
- package/dist/lib/components/SegmentedControl/index.d.ts +6 -0
- package/dist/lib/components/SegmentedControl/index.mjs +2 -0
- package/dist/lib/components/SegmentedControl/index.mjs.map +1 -0
- package/dist/lib/components/Select/index.d.ts +34 -0
- package/dist/lib/components/Select/index.js +92 -0
- package/dist/lib/components/Select/index.mjs +2 -0
- package/dist/lib/components/Select/index.mjs.map +1 -0
- package/dist/lib/components/Separator/index.js +47 -0
- package/dist/lib/components/Separator/index.mjs +2 -0
- package/dist/lib/components/Separator/index.mjs.map +1 -0
- package/dist/lib/components/Skeleton/index.d.ts +14 -0
- package/dist/lib/components/Skeleton/index.js +42 -0
- package/dist/lib/components/Skeleton/index.mjs +2 -0
- package/dist/lib/components/Skeleton/index.mjs.map +1 -0
- package/dist/lib/components/Slider/index.d.ts +14 -0
- package/dist/lib/components/Slider/index.js +49 -0
- package/dist/lib/components/Slider/index.mjs +2 -0
- package/dist/lib/components/Slider/index.mjs.map +1 -0
- package/dist/lib/components/Spinner/index.d.ts +15 -0
- package/dist/lib/components/Spinner/index.js +47 -0
- package/dist/lib/components/Spinner/index.mjs +2 -0
- package/dist/lib/components/Spinner/index.mjs.map +1 -0
- package/dist/lib/components/TabNav/index.js +50 -0
- package/dist/lib/components/TabNav/index.mjs +2 -0
- package/dist/lib/components/TabNav/index.mjs.map +1 -0
- package/dist/lib/components/Table/index.d.ts +30 -0
- package/dist/lib/components/Table/index.js +98 -0
- package/dist/lib/components/Table/index.mjs +2 -0
- package/dist/lib/components/Table/index.mjs.map +1 -0
- package/dist/lib/components/Tabs/index.js +65 -0
- package/dist/lib/components/Tabs/index.mjs +2 -0
- package/dist/lib/components/Tabs/index.mjs.map +1 -0
- package/dist/lib/components/TextArea/index.d.ts +16 -0
- package/dist/lib/components/TextArea/index.js +58 -0
- package/dist/lib/components/TextArea/index.mjs +2 -0
- package/dist/lib/components/TextArea/index.mjs.map +1 -0
- package/dist/lib/components/TextField/index.d.ts +21 -0
- package/dist/lib/components/TextField/index.js +56 -0
- package/dist/lib/components/TextField/index.mjs +2 -0
- package/dist/lib/components/TextField/index.mjs.map +1 -0
- package/dist/lib/components/Toast/ToastActionButton.d.ts +14 -0
- package/dist/lib/components/Toast/ToastActionButton.js +67 -0
- package/dist/lib/components/Toast/ToastActionButton.mjs +2 -0
- package/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -0
- package/dist/lib/components/Toast/ToastDescription.d.ts +13 -0
- package/dist/lib/components/Toast/ToastDescription.js +53 -0
- package/dist/lib/components/Toast/ToastDescription.mjs +2 -0
- package/dist/lib/components/Toast/ToastDescription.mjs.map +1 -0
- package/dist/lib/components/Toast/ToastRoot.js +90 -0
- package/dist/lib/components/Toast/ToastRoot.mjs +2 -0
- package/dist/lib/components/Toast/ToastRoot.mjs.map +1 -0
- package/dist/lib/components/Toast/ToastTitle.d.ts +13 -0
- package/dist/lib/components/Toast/ToastTitle.js +53 -0
- package/dist/lib/components/Toast/ToastTitle.mjs +2 -0
- package/dist/lib/components/Toast/ToastTitle.mjs.map +1 -0
- package/dist/lib/components/Toast/index.mjs +2 -0
- package/dist/lib/components/Toast/index.mjs.map +1 -0
- package/dist/lib/components/Toggle/ToggleWithText.d.ts +21 -0
- package/dist/lib/components/Toggle/ToggleWithText.js +58 -0
- package/dist/lib/components/Toggle/ToggleWithText.mjs +2 -0
- package/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -0
- package/dist/lib/components/Toggle/index.d.ts +21 -0
- package/dist/lib/components/Toggle/index.js +58 -0
- package/dist/lib/components/Toggle/index.mjs +2 -0
- package/dist/lib/components/Toggle/index.mjs.map +1 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +17 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.js +54 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +2 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +1 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +15 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +48 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +2 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -0
- package/dist/lib/components/ToggleGroup/index.mjs +2 -0
- package/dist/lib/components/ToggleGroup/index.mjs.map +1 -0
- package/dist/lib/components/ToggleSwitch/index.js +71 -0
- package/dist/lib/components/ToggleSwitch/index.mjs +2 -0
- package/dist/lib/components/ToggleSwitch/index.mjs.map +1 -0
- package/dist/lib/components/Tooltip/index.d.ts +19 -0
- package/dist/lib/components/Tooltip/index.js +49 -0
- package/dist/lib/components/Tooltip/index.mjs +2 -0
- package/dist/lib/components/Tooltip/index.mjs.map +1 -0
- package/dist/lib/constants.js +914 -0
- package/dist/lib/constants.mjs +2 -0
- package/dist/lib/constants.mjs.map +1 -0
- package/dist/lib/index.mjs +2 -0
- package/dist/lib/index.mjs.map +1 -0
- package/dist/lib/utils/useDarkMode.js +49 -0
- package/dist/lib/utils/useDarkMode.mjs +2 -0
- package/dist/lib/utils/useDarkMode.mjs.map +1 -0
- package/dist/lib/utils/utils.mjs +2 -0
- package/dist/lib/utils/utils.mjs.map +1 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +2 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.map +1 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +2 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.map +1 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +2 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +2 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +2 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.map +1 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.mjs +8 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/number/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/number/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-label/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-slider/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-slider/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-checkbox.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-checkbox.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-radio.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-radio.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-tab-list.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-tab-list.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/inert.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/inert.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/require-react-element.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/require-react-element.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/color.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/color.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/gap.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/gap.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/height.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/height.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/margin.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/margin.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/padding.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/padding.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/prop-def.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/prop-def.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/width.props.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/width.props.mjs.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.map +1 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.mjs +2 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.mjs.map +1 -0
- package/dist/node_modules/chart.js/auto/auto.mjs +2 -0
- package/dist/node_modules/chart.js/auto/auto.mjs.map +1 -0
- package/dist/node_modules/chart.js/dist/chart.mjs +8 -0
- package/dist/node_modules/chart.js/dist/chart.mjs.map +1 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.mjs +8 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.mjs.map +1 -0
- package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs +8 -0
- package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs.map +1 -0
- package/dist/node_modules/class-variance-authority/dist/index.mjs +2 -0
- package/dist/node_modules/class-variance-authority/dist/index.mjs.map +1 -0
- package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs +2 -0
- package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.map +1 -0
- package/dist/node_modules/classnames/index.mjs +7 -0
- package/dist/node_modules/classnames/index.mjs.map +1 -0
- package/dist/node_modules/clsx/dist/clsx.mjs +2 -0
- package/dist/node_modules/clsx/dist/clsx.mjs.map +1 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.mjs +2 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.mjs.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs +11 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +11 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs.map +1 -0
- package/dist/node_modules/react/jsx-runtime.mjs +2 -0
- package/dist/node_modules/react/jsx-runtime.mjs.map +1 -0
- package/dist/node_modules/react-chartjs-2/dist/index.mjs +2 -0
- package/dist/node_modules/react-chartjs-2/dist/index.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.mjs +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.mjs +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +2 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +2 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +2 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.mjs +2 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.mjs.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.mjs +2 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.mjs.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.mjs +2 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.mjs.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs +2 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.mjs +2 -0
- package/dist/node_modules/tslib/tslib.es6.mjs.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +2 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.mjs.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +2 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.mjs +2 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.mjs.map +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.mjs +2 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.mjs.map +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.mjs +2 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.mjs.map +1 -0
- package/dist/tailwind.config.js +2 -5
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +20 -26
- package/dist/cjs/lib/Typography/Header/index.d.ts +0 -13
- package/dist/cjs/lib/Typography/Header/index.js +0 -55
- package/dist/cjs/lib/Typography/Header/index.jsx +0 -64
- package/dist/cjs/lib/Typography/Text/index.d.ts +0 -15
- package/dist/cjs/lib/Typography/Text/index.js +0 -44
- package/dist/cjs/lib/Typography/Text/index.jsx +0 -73
- package/dist/cjs/lib/Typography/index.js +0 -10
- package/dist/cjs/lib/color/alpha.js +0 -788
- package/dist/cjs/lib/color/constants.js +0 -299
- package/dist/cjs/lib/color/dark.js +0 -395
- package/dist/cjs/lib/color/krdsColors.js +0 -312
- package/dist/cjs/lib/color/light.js +0 -396
- package/dist/cjs/lib/components/Accordion/index.d.ts +0 -22
- package/dist/cjs/lib/components/Accordion/index.js +0 -64
- package/dist/cjs/lib/components/Accordion/index.jsx +0 -105
- package/dist/cjs/lib/components/AlertDialog/AlertDialogAction.d.ts +0 -14
- package/dist/cjs/lib/components/AlertDialog/AlertDialogAction.js +0 -61
- package/dist/cjs/lib/components/AlertDialog/AlertDialogAction.jsx +0 -88
- package/dist/cjs/lib/components/AlertDialog/AlertDialogCancel.d.ts +0 -13
- package/dist/cjs/lib/components/AlertDialog/AlertDialogCancel.js +0 -60
- package/dist/cjs/lib/components/AlertDialog/AlertDialogCancel.jsx +0 -87
- package/dist/cjs/lib/components/AlertDialog/AlertDialogContent.js +0 -51
- package/dist/cjs/lib/components/AlertDialog/AlertDialogContent.jsx +0 -81
- package/dist/cjs/lib/components/AlertDialog/AlertDialogDescription.js +0 -47
- package/dist/cjs/lib/components/AlertDialog/AlertDialogDescription.jsx +0 -63
- package/dist/cjs/lib/components/AlertDialog/AlertDialogRoot.d.ts +0 -16
- package/dist/cjs/lib/components/AlertDialog/AlertDialogRoot.jsx +0 -65
- package/dist/cjs/lib/components/AlertDialog/AlertDialogTitle.js +0 -47
- package/dist/cjs/lib/components/AlertDialog/AlertDialogTitle.jsx +0 -63
- package/dist/cjs/lib/components/AlertDialog/AlertDialogTrigger.d.ts +0 -17
- package/dist/cjs/lib/components/AlertDialog/AlertDialogTrigger.js +0 -55
- package/dist/cjs/lib/components/AlertDialog/AlertDialogTrigger.jsx +0 -82
- package/dist/cjs/lib/components/AlertDialog/index.jsx +0 -19
- package/dist/cjs/lib/components/AspectRatio/index.js +0 -42
- package/dist/cjs/lib/components/AspectRatio/index.jsx +0 -69
- package/dist/cjs/lib/components/Avatar/index.js +0 -58
- package/dist/cjs/lib/components/Avatar/index.jsx +0 -87
- package/dist/cjs/lib/components/Badge/index.d.ts +0 -18
- package/dist/cjs/lib/components/Badge/index.js +0 -54
- package/dist/cjs/lib/components/Badge/index.jsx +0 -80
- package/dist/cjs/lib/components/BarChart/index.d.ts +0 -38
- package/dist/cjs/lib/components/BarChart/index.js +0 -63
- package/dist/cjs/lib/components/BarChart/index.jsx +0 -64
- package/dist/cjs/lib/components/BubbleChart/index.d.ts +0 -29
- package/dist/cjs/lib/components/BubbleChart/index.js +0 -73
- package/dist/cjs/lib/components/BubbleChart/index.jsx +0 -80
- package/dist/cjs/lib/components/Button/index.d.ts +0 -16
- package/dist/cjs/lib/components/Button/index.js +0 -56
- package/dist/cjs/lib/components/Button/index.jsx +0 -83
- package/dist/cjs/lib/components/Callout/CalloutIcon.js +0 -57
- package/dist/cjs/lib/components/Callout/CalloutIcon.jsx +0 -88
- package/dist/cjs/lib/components/Callout/CalloutRoot.d.ts +0 -18
- package/dist/cjs/lib/components/Callout/CalloutRoot.js +0 -72
- package/dist/cjs/lib/components/Callout/CalloutRoot.jsx +0 -102
- package/dist/cjs/lib/components/Callout/CalloutText.js +0 -52
- package/dist/cjs/lib/components/Callout/CalloutText.jsx +0 -68
- package/dist/cjs/lib/components/Callout/index.jsx +0 -11
- package/dist/cjs/lib/components/Card/index.d.ts +0 -14
- package/dist/cjs/lib/components/Card/index.js +0 -64
- package/dist/cjs/lib/components/Card/index.jsx +0 -90
- package/dist/cjs/lib/components/Checkbox/index.d.ts +0 -17
- package/dist/cjs/lib/components/Checkbox/index.js +0 -89
- package/dist/cjs/lib/components/Checkbox/index.jsx +0 -123
- package/dist/cjs/lib/components/CheckboxCard/index.d.ts +0 -20
- package/dist/cjs/lib/components/CheckboxCard/index.js +0 -58
- package/dist/cjs/lib/components/CheckboxCard/index.jsx +0 -89
- package/dist/cjs/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +0 -5
- package/dist/cjs/lib/components/CheckboxGroup/CheckboxGroupItem.js +0 -33
- package/dist/cjs/lib/components/CheckboxGroup/CheckboxGroupItem.jsx +0 -54
- package/dist/cjs/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +0 -17
- package/dist/cjs/lib/components/CheckboxGroup/CheckboxGroupRoot.js +0 -34
- package/dist/cjs/lib/components/CheckboxGroup/CheckboxGroupRoot.jsx +0 -64
- package/dist/cjs/lib/components/CheckboxGroup/index.d.ts +0 -6
- package/dist/cjs/lib/components/CheckboxGroup/index.jsx +0 -6
- package/dist/cjs/lib/components/ContextMenu/ContextMenuCheckboxItem.js +0 -42
- package/dist/cjs/lib/components/ContextMenu/ContextMenuCheckboxItem.jsx +0 -61
- package/dist/cjs/lib/components/ContextMenu/ContextMenuContent.js +0 -56
- package/dist/cjs/lib/components/ContextMenu/ContextMenuContent.jsx +0 -85
- package/dist/cjs/lib/components/ContextMenu/ContextMenuGroup.jsx +0 -46
- package/dist/cjs/lib/components/ContextMenu/ContextMenuItem.js +0 -59
- package/dist/cjs/lib/components/ContextMenu/ContextMenuItem.jsx +0 -87
- package/dist/cjs/lib/components/ContextMenu/ContextMenuItemIndicator.js +0 -50
- package/dist/cjs/lib/components/ContextMenu/ContextMenuItemIndicator.jsx +0 -77
- package/dist/cjs/lib/components/ContextMenu/ContextMenuLabel.js +0 -48
- package/dist/cjs/lib/components/ContextMenu/ContextMenuLabel.jsx +0 -75
- package/dist/cjs/lib/components/ContextMenu/ContextMenuRadioGroup.jsx +0 -49
- package/dist/cjs/lib/components/ContextMenu/ContextMenuRadioItem.js +0 -44
- package/dist/cjs/lib/components/ContextMenu/ContextMenuRadioItem.jsx +0 -63
- package/dist/cjs/lib/components/ContextMenu/ContextMenuRoot.d.ts +0 -13
- package/dist/cjs/lib/components/ContextMenu/ContextMenuRoot.jsx +0 -61
- package/dist/cjs/lib/components/ContextMenu/ContextMenuSeparator.js +0 -31
- package/dist/cjs/lib/components/ContextMenu/ContextMenuSeparator.jsx +0 -47
- package/dist/cjs/lib/components/ContextMenu/ContextMenuSubContent.js +0 -54
- package/dist/cjs/lib/components/ContextMenu/ContextMenuSubContent.jsx +0 -83
- package/dist/cjs/lib/components/ContextMenu/ContextMenuSubTrigger.js +0 -40
- package/dist/cjs/lib/components/ContextMenu/ContextMenuSubTrigger.jsx +0 -61
- package/dist/cjs/lib/components/ContextMenu/ContextMenuTrigger.js +0 -31
- package/dist/cjs/lib/components/ContextMenu/ContextMenuTrigger.jsx +0 -47
- package/dist/cjs/lib/components/ContextMenu/index.jsx +0 -31
- package/dist/cjs/lib/components/DataList/DataListItem.js +0 -43
- package/dist/cjs/lib/components/DataList/DataListItem.jsx +0 -70
- package/dist/cjs/lib/components/DataList/DataListLabel.js +0 -49
- package/dist/cjs/lib/components/DataList/DataListLabel.jsx +0 -76
- package/dist/cjs/lib/components/DataList/DataListRoot.js +0 -54
- package/dist/cjs/lib/components/DataList/DataListRoot.jsx +0 -73
- package/dist/cjs/lib/components/DataList/DataListValue.js +0 -51
- package/dist/cjs/lib/components/DataList/DataListValue.jsx +0 -78
- package/dist/cjs/lib/components/DataList/index.jsx +0 -8
- package/dist/cjs/lib/components/Dialog/DialogAction.d.ts +0 -13
- package/dist/cjs/lib/components/Dialog/DialogAction.js +0 -59
- package/dist/cjs/lib/components/Dialog/DialogAction.jsx +0 -75
- package/dist/cjs/lib/components/Dialog/DialogCancel.d.ts +0 -11
- package/dist/cjs/lib/components/Dialog/DialogCancel.js +0 -55
- package/dist/cjs/lib/components/Dialog/DialogCancel.jsx +0 -71
- package/dist/cjs/lib/components/Dialog/DialogContent.js +0 -57
- package/dist/cjs/lib/components/Dialog/DialogContent.jsx +0 -84
- package/dist/cjs/lib/components/Dialog/DialogDescription.js +0 -47
- package/dist/cjs/lib/components/Dialog/DialogDescription.jsx +0 -63
- package/dist/cjs/lib/components/Dialog/DialogRoot.d.ts +0 -15
- package/dist/cjs/lib/components/Dialog/DialogRoot.jsx +0 -56
- package/dist/cjs/lib/components/Dialog/DialogSlot.d.ts +0 -9
- package/dist/cjs/lib/components/Dialog/DialogSlot.js +0 -46
- package/dist/cjs/lib/components/Dialog/DialogSlot.jsx +0 -62
- package/dist/cjs/lib/components/Dialog/DialogTitle.d.ts +0 -11
- package/dist/cjs/lib/components/Dialog/DialogTitle.js +0 -47
- package/dist/cjs/lib/components/Dialog/DialogTitle.jsx +0 -63
- package/dist/cjs/lib/components/Dialog/DialogTrigger.jsx +0 -46
- package/dist/cjs/lib/components/Dialog/index.d.ts +0 -15
- package/dist/cjs/lib/components/Dialog/index.jsx +0 -21
- package/dist/cjs/lib/components/DoughnutChart/index.d.ts +0 -23
- package/dist/cjs/lib/components/DoughnutChart/index.js +0 -65
- package/dist/cjs/lib/components/DoughnutChart/index.jsx +0 -70
- package/dist/cjs/lib/components/DropdownMenu/DropdonMenuRadioGroup.jsx +0 -46
- package/dist/cjs/lib/components/DropdownMenu/DropdonMenuSubContent.js +0 -60
- package/dist/cjs/lib/components/DropdownMenu/DropdonMenuSubContent.jsx +0 -89
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +0 -41
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +0 -60
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuContent.js +0 -56
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuContent.jsx +0 -85
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuItem.d.ts +0 -15
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuItem.js +0 -58
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuItem.jsx +0 -86
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +0 -48
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuItemIndicator.jsx +0 -75
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuLable.js +0 -45
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuLable.jsx +0 -61
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuRadioItem.js +0 -41
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuRadioItem.jsx +0 -60
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +0 -15
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuRoot.jsx +0 -55
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuSeparator.js +0 -31
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuSeparator.jsx +0 -45
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuSub.jsx +0 -44
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +0 -40
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuSubTrigger.jsx +0 -59
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +0 -14
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuTrigger.js +0 -53
- package/dist/cjs/lib/components/DropdownMenu/DropdownMenuTrigger.jsx +0 -69
- package/dist/cjs/lib/components/DropdownMenu/index.d.ts +0 -20
- package/dist/cjs/lib/components/DropdownMenu/index.jsx +0 -31
- package/dist/cjs/lib/components/HoverCard/HoverCardContent.d.ts +0 -14
- package/dist/cjs/lib/components/HoverCard/HoverCardContent.js +0 -61
- package/dist/cjs/lib/components/HoverCard/HoverCardContent.jsx +0 -88
- package/dist/cjs/lib/components/HoverCard/HoverCardRoot.d.ts +0 -11
- package/dist/cjs/lib/components/HoverCard/HoverCardRoot.jsx +0 -57
- package/dist/cjs/lib/components/HoverCard/HoverCardTrigger.jsx +0 -46
- package/dist/cjs/lib/components/HoverCard/index.d.ts +0 -10
- package/dist/cjs/lib/components/HoverCard/index.jsx +0 -11
- package/dist/cjs/lib/components/IconButton/index.d.ts +0 -15
- package/dist/cjs/lib/components/IconButton/index.js +0 -63
- package/dist/cjs/lib/components/IconButton/index.jsx +0 -90
- package/dist/cjs/lib/components/Inset/index.js +0 -50
- package/dist/cjs/lib/components/Inset/index.jsx +0 -79
- package/dist/cjs/lib/components/Label/index.d.ts +0 -17
- package/dist/cjs/lib/components/Label/index.js +0 -53
- package/dist/cjs/lib/components/Label/index.jsx +0 -83
- package/dist/cjs/lib/components/LineChart/index.d.ts +0 -44
- package/dist/cjs/lib/components/LineChart/index.js +0 -61
- package/dist/cjs/lib/components/LineChart/index.jsx +0 -62
- package/dist/cjs/lib/components/Menubar/MenubarCheckboxItem.js +0 -38
- package/dist/cjs/lib/components/Menubar/MenubarCheckboxItem.jsx +0 -57
- package/dist/cjs/lib/components/Menubar/MenubarContent.js +0 -60
- package/dist/cjs/lib/components/Menubar/MenubarContent.jsx +0 -89
- package/dist/cjs/lib/components/Menubar/MenubarItem.js +0 -54
- package/dist/cjs/lib/components/Menubar/MenubarItem.jsx +0 -82
- package/dist/cjs/lib/components/Menubar/MenubarItemIndicator.js +0 -49
- package/dist/cjs/lib/components/Menubar/MenubarItemIndicator.jsx +0 -76
- package/dist/cjs/lib/components/Menubar/MenubarMenu.jsx +0 -44
- package/dist/cjs/lib/components/Menubar/MenubarRadioGroup.jsx +0 -49
- package/dist/cjs/lib/components/Menubar/MenubarRadioItem.js +0 -40
- package/dist/cjs/lib/components/Menubar/MenubarRadioItem.jsx +0 -59
- package/dist/cjs/lib/components/Menubar/MenubarRoot.d.ts +0 -19
- package/dist/cjs/lib/components/Menubar/MenubarRoot.js +0 -61
- package/dist/cjs/lib/components/Menubar/MenubarRoot.jsx +0 -91
- package/dist/cjs/lib/components/Menubar/MenubarSeparator.js +0 -31
- package/dist/cjs/lib/components/Menubar/MenubarSeparator.jsx +0 -47
- package/dist/cjs/lib/components/Menubar/MenubarSub.jsx +0 -44
- package/dist/cjs/lib/components/Menubar/MenubarSubContent.js +0 -51
- package/dist/cjs/lib/components/Menubar/MenubarSubContent.jsx +0 -78
- package/dist/cjs/lib/components/Menubar/MenubarSubTrigger.js +0 -41
- package/dist/cjs/lib/components/Menubar/MenubarSubTrigger.jsx +0 -60
- package/dist/cjs/lib/components/Menubar/MenubarTrigger.js +0 -57
- package/dist/cjs/lib/components/Menubar/MenubarTrigger.jsx +0 -84
- package/dist/cjs/lib/components/Menubar/index.jsx +0 -31
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuContent.js +0 -48
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuContent.jsx +0 -75
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuIndicator.js +0 -31
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -48
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuItem.jsx +0 -46
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuLink.js +0 -51
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuLink.jsx +0 -78
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuList.js +0 -47
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuList.jsx +0 -75
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +0 -14
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuRoot.js +0 -43
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuRoot.jsx +0 -62
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuTrigger.js +0 -58
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuTrigger.jsx +0 -86
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuViewport.js +0 -53
- package/dist/cjs/lib/components/NavigationMenu/NavigationMenuViewport.jsx +0 -80
- package/dist/cjs/lib/components/NavigationMenu/index.jsx +0 -12
- package/dist/cjs/lib/components/PieChart/index.d.ts +0 -23
- package/dist/cjs/lib/components/PieChart/index.js +0 -65
- package/dist/cjs/lib/components/PieChart/index.jsx +0 -70
- package/dist/cjs/lib/components/Popover/PopoverClose.js +0 -48
- package/dist/cjs/lib/components/Popover/PopoverClose.jsx +0 -64
- package/dist/cjs/lib/components/Popover/PopoverContent.d.ts +0 -11
- package/dist/cjs/lib/components/Popover/PopoverContent.js +0 -65
- package/dist/cjs/lib/components/Popover/PopoverContent.jsx +0 -92
- package/dist/cjs/lib/components/Popover/PopoverRoot.d.ts +0 -12
- package/dist/cjs/lib/components/Popover/PopoverRoot.jsx +0 -55
- package/dist/cjs/lib/components/Popover/PopoverTrigger.jsx +0 -46
- package/dist/cjs/lib/components/Popover/index.d.ts +0 -11
- package/dist/cjs/lib/components/Popover/index.jsx +0 -13
- package/dist/cjs/lib/components/Progress/index.d.ts +0 -13
- package/dist/cjs/lib/components/Progress/index.js +0 -56
- package/dist/cjs/lib/components/Progress/index.jsx +0 -83
- package/dist/cjs/lib/components/RadarChart/index.d.ts +0 -33
- package/dist/cjs/lib/components/RadarChart/index.js +0 -76
- package/dist/cjs/lib/components/RadarChart/index.jsx +0 -83
- package/dist/cjs/lib/components/Radio/index.d.ts +0 -13
- package/dist/cjs/lib/components/Radio/index.js +0 -53
- package/dist/cjs/lib/components/Radio/index.jsx +0 -54
- package/dist/cjs/lib/components/RadioCards/RadioCardsItem.js +0 -54
- package/dist/cjs/lib/components/RadioCards/RadioCardsItem.jsx +0 -70
- package/dist/cjs/lib/components/RadioCards/RadioCardsRoot.d.ts +0 -13
- package/dist/cjs/lib/components/RadioCards/RadioCardsRoot.js +0 -46
- package/dist/cjs/lib/components/RadioCards/RadioCardsRoot.jsx +0 -77
- package/dist/cjs/lib/components/RadioCards/index.d.ts +0 -6
- package/dist/cjs/lib/components/RadioCards/index.jsx +0 -9
- package/dist/cjs/lib/components/RadioGroup/RadioGroupItem.d.ts +0 -13
- package/dist/cjs/lib/components/RadioGroup/RadioGroupItem.js +0 -46
- package/dist/cjs/lib/components/RadioGroup/RadioGroupItem.jsx +0 -62
- package/dist/cjs/lib/components/RadioGroup/RadioGroupRoot.d.ts +0 -15
- package/dist/cjs/lib/components/RadioGroup/RadioGroupRoot.js +0 -53
- package/dist/cjs/lib/components/RadioGroup/RadioGroupRoot.jsx +0 -73
- package/dist/cjs/lib/components/RadioGroup/index.d.ts +0 -6
- package/dist/cjs/lib/components/RadioGroup/index.jsx +0 -9
- package/dist/cjs/lib/components/ScrollArea/index.d.ts +0 -9
- package/dist/cjs/lib/components/ScrollArea/index.jsx +0 -54
- package/dist/cjs/lib/components/SegmentedControl/SegmentedControlItem.js +0 -35
- package/dist/cjs/lib/components/SegmentedControl/SegmentedControlItem.jsx +0 -51
- package/dist/cjs/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +0 -14
- package/dist/cjs/lib/components/SegmentedControl/SegmentedControlRoot.js +0 -47
- package/dist/cjs/lib/components/SegmentedControl/SegmentedControlRoot.jsx +0 -79
- package/dist/cjs/lib/components/SegmentedControl/index.d.ts +0 -6
- package/dist/cjs/lib/components/SegmentedControl/index.jsx +0 -9
- package/dist/cjs/lib/components/Select/index.d.ts +0 -34
- package/dist/cjs/lib/components/Select/index.js +0 -92
- package/dist/cjs/lib/components/Select/index.jsx +0 -115
- package/dist/cjs/lib/components/Separator/index.js +0 -47
- package/dist/cjs/lib/components/Separator/index.jsx +0 -56
- package/dist/cjs/lib/components/Skeleton/index.d.ts +0 -14
- package/dist/cjs/lib/components/Skeleton/index.js +0 -42
- package/dist/cjs/lib/components/Skeleton/index.jsx +0 -51
- package/dist/cjs/lib/components/Slider/index.d.ts +0 -14
- package/dist/cjs/lib/components/Slider/index.js +0 -49
- package/dist/cjs/lib/components/Slider/index.jsx +0 -56
- package/dist/cjs/lib/components/Spinner/index.d.ts +0 -15
- package/dist/cjs/lib/components/Spinner/index.js +0 -47
- package/dist/cjs/lib/components/Spinner/index.jsx +0 -56
- package/dist/cjs/lib/components/TabNav/index.js +0 -50
- package/dist/cjs/lib/components/TabNav/index.jsx +0 -50
- package/dist/cjs/lib/components/Table/index.d.ts +0 -30
- package/dist/cjs/lib/components/Table/index.js +0 -98
- package/dist/cjs/lib/components/Table/index.jsx +0 -119
- package/dist/cjs/lib/components/Tabs/index.js +0 -65
- package/dist/cjs/lib/components/Tabs/index.jsx +0 -80
- package/dist/cjs/lib/components/TextArea/index.d.ts +0 -16
- package/dist/cjs/lib/components/TextArea/index.js +0 -58
- package/dist/cjs/lib/components/TextArea/index.jsx +0 -65
- package/dist/cjs/lib/components/TextField/index.d.ts +0 -21
- package/dist/cjs/lib/components/TextField/index.js +0 -56
- package/dist/cjs/lib/components/TextField/index.jsx +0 -67
- package/dist/cjs/lib/components/Toast/ToastActionButton.d.ts +0 -14
- package/dist/cjs/lib/components/Toast/ToastActionButton.js +0 -67
- package/dist/cjs/lib/components/Toast/ToastActionButton.jsx +0 -97
- package/dist/cjs/lib/components/Toast/ToastDescription.d.ts +0 -13
- package/dist/cjs/lib/components/Toast/ToastDescription.js +0 -53
- package/dist/cjs/lib/components/Toast/ToastDescription.jsx +0 -71
- package/dist/cjs/lib/components/Toast/ToastRoot.js +0 -90
- package/dist/cjs/lib/components/Toast/ToastRoot.jsx +0 -123
- package/dist/cjs/lib/components/Toast/ToastTitle.d.ts +0 -13
- package/dist/cjs/lib/components/Toast/ToastTitle.js +0 -53
- package/dist/cjs/lib/components/Toast/ToastTitle.jsx +0 -69
- package/dist/cjs/lib/components/Toast/index.jsx +0 -13
- package/dist/cjs/lib/components/Toggle/ToggleWithText.d.ts +0 -21
- package/dist/cjs/lib/components/Toggle/ToggleWithText.js +0 -58
- package/dist/cjs/lib/components/Toggle/ToggleWithText.jsx +0 -86
- package/dist/cjs/lib/components/Toggle/index.d.ts +0 -21
- package/dist/cjs/lib/components/Toggle/index.js +0 -58
- package/dist/cjs/lib/components/Toggle/index.jsx +0 -88
- package/dist/cjs/lib/components/ToggleGroup/ToggleGroupItem.d.ts +0 -17
- package/dist/cjs/lib/components/ToggleGroup/ToggleGroupItem.js +0 -54
- package/dist/cjs/lib/components/ToggleGroup/ToggleGroupItem.jsx +0 -70
- package/dist/cjs/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +0 -15
- package/dist/cjs/lib/components/ToggleGroup/ToggleGroupRoot.js +0 -48
- package/dist/cjs/lib/components/ToggleGroup/ToggleGroupRoot.jsx +0 -79
- package/dist/cjs/lib/components/ToggleGroup/index.jsx +0 -9
- package/dist/cjs/lib/components/ToggleSwitch/index.js +0 -71
- package/dist/cjs/lib/components/ToggleSwitch/index.jsx +0 -81
- package/dist/cjs/lib/components/Tooltip/index.d.ts +0 -19
- package/dist/cjs/lib/components/Tooltip/index.js +0 -49
- package/dist/cjs/lib/components/Tooltip/index.jsx +0 -86
- package/dist/cjs/lib/components/index.js +0 -108
- package/dist/cjs/lib/constants.js +0 -950
- package/dist/cjs/lib/index.js +0 -18
- package/dist/cjs/lib/types.js +0 -2
- package/dist/cjs/lib/utils/useDarkMode.js +0 -53
- package/dist/cjs/lib/utils/utils.js +0 -14
- package/dist/esm/lib/Typography/Header/index.d.ts +0 -13
- package/dist/esm/lib/Typography/Header/index.jsx +0 -58
- package/dist/esm/lib/Typography/Text/index.d.ts +0 -15
- package/dist/esm/lib/Typography/Text/index.jsx +0 -47
- package/dist/esm/lib/Typography/index.d.ts +0 -2
- package/dist/esm/lib/color/alpha.d.ts +0 -784
- package/dist/esm/lib/color/constants.d.ts +0 -29
- package/dist/esm/lib/color/dark.d.ts +0 -392
- package/dist/esm/lib/color/krdsColors.d.ts +0 -309
- package/dist/esm/lib/color/light.d.ts +0 -392
- package/dist/esm/lib/components/Accordion/index.d.ts +0 -22
- package/dist/esm/lib/components/Accordion/index.jsx +0 -76
- package/dist/esm/lib/components/AlertDialog/AlertDialogAction.d.ts +0 -14
- package/dist/esm/lib/components/AlertDialog/AlertDialogAction.jsx +0 -62
- package/dist/esm/lib/components/AlertDialog/AlertDialogCancel.d.ts +0 -13
- package/dist/esm/lib/components/AlertDialog/AlertDialogCancel.jsx +0 -61
- package/dist/esm/lib/components/AlertDialog/AlertDialogContent.d.ts +0 -11
- package/dist/esm/lib/components/AlertDialog/AlertDialogContent.jsx +0 -55
- package/dist/esm/lib/components/AlertDialog/AlertDialogDescription.d.ts +0 -10
- package/dist/esm/lib/components/AlertDialog/AlertDialogDescription.jsx +0 -37
- package/dist/esm/lib/components/AlertDialog/AlertDialogRoot.d.ts +0 -16
- package/dist/esm/lib/components/AlertDialog/AlertDialogRoot.jsx +0 -38
- package/dist/esm/lib/components/AlertDialog/AlertDialogTitle.d.ts +0 -10
- package/dist/esm/lib/components/AlertDialog/AlertDialogTitle.jsx +0 -37
- package/dist/esm/lib/components/AlertDialog/AlertDialogTrigger.d.ts +0 -17
- package/dist/esm/lib/components/AlertDialog/AlertDialogTrigger.jsx +0 -56
- package/dist/esm/lib/components/AlertDialog/index.d.ts +0 -11
- package/dist/esm/lib/components/AlertDialog/index.jsx +0 -17
- package/dist/esm/lib/components/AspectRatio/index.d.ts +0 -10
- package/dist/esm/lib/components/AspectRatio/index.jsx +0 -43
- package/dist/esm/lib/components/Avatar/index.d.ts +0 -21
- package/dist/esm/lib/components/Avatar/index.jsx +0 -62
- package/dist/esm/lib/components/Badge/index.d.ts +0 -18
- package/dist/esm/lib/components/Badge/index.jsx +0 -55
- package/dist/esm/lib/components/BarChart/index.d.ts +0 -38
- package/dist/esm/lib/components/BarChart/index.jsx +0 -62
- package/dist/esm/lib/components/BubbleChart/index.d.ts +0 -29
- package/dist/esm/lib/components/BubbleChart/index.jsx +0 -73
- package/dist/esm/lib/components/Button/index.d.ts +0 -16
- package/dist/esm/lib/components/Button/index.jsx +0 -57
- package/dist/esm/lib/components/Callout/CalloutIcon.d.ts +0 -13
- package/dist/esm/lib/components/Callout/CalloutIcon.jsx +0 -62
- package/dist/esm/lib/components/Callout/CalloutRoot.d.ts +0 -18
- package/dist/esm/lib/components/Callout/CalloutRoot.jsx +0 -75
- package/dist/esm/lib/components/Callout/CalloutText.d.ts +0 -10
- package/dist/esm/lib/components/Callout/CalloutText.jsx +0 -42
- package/dist/esm/lib/components/Callout/index.d.ts +0 -7
- package/dist/esm/lib/components/Callout/index.jsx +0 -9
- package/dist/esm/lib/components/Card/index.d.ts +0 -14
- package/dist/esm/lib/components/Card/index.jsx +0 -65
- package/dist/esm/lib/components/Checkbox/index.d.ts +0 -17
- package/dist/esm/lib/components/Checkbox/index.jsx +0 -97
- package/dist/esm/lib/components/CheckboxCard/index.d.ts +0 -20
- package/dist/esm/lib/components/CheckboxCard/index.jsx +0 -60
- package/dist/esm/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +0 -5
- package/dist/esm/lib/components/CheckboxGroup/CheckboxGroupItem.jsx +0 -25
- package/dist/esm/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +0 -17
- package/dist/esm/lib/components/CheckboxGroup/CheckboxGroupRoot.jsx +0 -37
- package/dist/esm/lib/components/CheckboxGroup/index.d.ts +0 -6
- package/dist/esm/lib/components/CheckboxGroup/index.jsx +0 -4
- package/dist/esm/lib/components/ContextMenu/ContextMenuCheckboxItem.d.ts +0 -4
- package/dist/esm/lib/components/ContextMenu/ContextMenuCheckboxItem.jsx +0 -35
- package/dist/esm/lib/components/ContextMenu/ContextMenuContent.d.ts +0 -11
- package/dist/esm/lib/components/ContextMenu/ContextMenuContent.jsx +0 -59
- package/dist/esm/lib/components/ContextMenu/ContextMenuGroup.d.ts +0 -4
- package/dist/esm/lib/components/ContextMenu/ContextMenuGroup.jsx +0 -20
- package/dist/esm/lib/components/ContextMenu/ContextMenuItem.d.ts +0 -13
- package/dist/esm/lib/components/ContextMenu/ContextMenuItem.jsx +0 -61
- package/dist/esm/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +0 -10
- package/dist/esm/lib/components/ContextMenu/ContextMenuItemIndicator.jsx +0 -51
- package/dist/esm/lib/components/ContextMenu/ContextMenuLabel.d.ts +0 -11
- package/dist/esm/lib/components/ContextMenu/ContextMenuLabel.jsx +0 -49
- package/dist/esm/lib/components/ContextMenu/ContextMenuRadioGroup.d.ts +0 -8
- package/dist/esm/lib/components/ContextMenu/ContextMenuRadioGroup.jsx +0 -23
- package/dist/esm/lib/components/ContextMenu/ContextMenuRadioItem.d.ts +0 -4
- package/dist/esm/lib/components/ContextMenu/ContextMenuRadioItem.jsx +0 -37
- package/dist/esm/lib/components/ContextMenu/ContextMenuRoot.d.ts +0 -13
- package/dist/esm/lib/components/ContextMenu/ContextMenuRoot.jsx +0 -34
- package/dist/esm/lib/components/ContextMenu/ContextMenuSeparator.d.ts +0 -3
- package/dist/esm/lib/components/ContextMenu/ContextMenuSeparator.jsx +0 -21
- package/dist/esm/lib/components/ContextMenu/ContextMenuSubContent.d.ts +0 -11
- package/dist/esm/lib/components/ContextMenu/ContextMenuSubContent.jsx +0 -57
- package/dist/esm/lib/components/ContextMenu/ContextMenuSubTrigger.d.ts +0 -4
- package/dist/esm/lib/components/ContextMenu/ContextMenuSubTrigger.jsx +0 -35
- package/dist/esm/lib/components/ContextMenu/ContextMenuTrigger.d.ts +0 -4
- package/dist/esm/lib/components/ContextMenu/ContextMenuTrigger.jsx +0 -21
- package/dist/esm/lib/components/ContextMenu/index.d.ts +0 -17
- package/dist/esm/lib/components/ContextMenu/index.jsx +0 -29
- package/dist/esm/lib/components/DataList/DataListItem.d.ts +0 -9
- package/dist/esm/lib/components/DataList/DataListItem.jsx +0 -44
- package/dist/esm/lib/components/DataList/DataListLabel.d.ts +0 -10
- package/dist/esm/lib/components/DataList/DataListLabel.jsx +0 -50
- package/dist/esm/lib/components/DataList/DataListRoot.d.ts +0 -14
- package/dist/esm/lib/components/DataList/DataListRoot.jsx +0 -46
- package/dist/esm/lib/components/DataList/DataListValue.d.ts +0 -11
- package/dist/esm/lib/components/DataList/DataListValue.jsx +0 -52
- package/dist/esm/lib/components/DataList/index.d.ts +0 -8
- package/dist/esm/lib/components/DataList/index.jsx +0 -6
- package/dist/esm/lib/components/Dialog/DialogAction.d.ts +0 -13
- package/dist/esm/lib/components/Dialog/DialogAction.jsx +0 -49
- package/dist/esm/lib/components/Dialog/DialogCancel.d.ts +0 -11
- package/dist/esm/lib/components/Dialog/DialogCancel.jsx +0 -45
- package/dist/esm/lib/components/Dialog/DialogContent.d.ts +0 -11
- package/dist/esm/lib/components/Dialog/DialogContent.jsx +0 -58
- package/dist/esm/lib/components/Dialog/DialogDescription.d.ts +0 -9
- package/dist/esm/lib/components/Dialog/DialogDescription.jsx +0 -37
- package/dist/esm/lib/components/Dialog/DialogRoot.d.ts +0 -15
- package/dist/esm/lib/components/Dialog/DialogRoot.jsx +0 -29
- package/dist/esm/lib/components/Dialog/DialogSlot.d.ts +0 -9
- package/dist/esm/lib/components/Dialog/DialogSlot.jsx +0 -36
- package/dist/esm/lib/components/Dialog/DialogTitle.d.ts +0 -11
- package/dist/esm/lib/components/Dialog/DialogTitle.jsx +0 -37
- package/dist/esm/lib/components/Dialog/DialogTrigger.d.ts +0 -3
- package/dist/esm/lib/components/Dialog/DialogTrigger.jsx +0 -20
- package/dist/esm/lib/components/Dialog/index.d.ts +0 -15
- package/dist/esm/lib/components/Dialog/index.jsx +0 -19
- package/dist/esm/lib/components/DoughnutChart/index.d.ts +0 -23
- package/dist/esm/lib/components/DoughnutChart/index.jsx +0 -65
- package/dist/esm/lib/components/DropdownMenu/DropdonMenuRadioGroup.d.ts +0 -3
- package/dist/esm/lib/components/DropdownMenu/DropdonMenuRadioGroup.jsx +0 -20
- package/dist/esm/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +0 -11
- package/dist/esm/lib/components/DropdownMenu/DropdonMenuSubContent.jsx +0 -63
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +0 -7
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +0 -34
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuContent.d.ts +0 -11
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuContent.jsx +0 -59
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuItem.d.ts +0 -15
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuItem.jsx +0 -60
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +0 -10
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuItemIndicator.jsx +0 -49
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuLable.d.ts +0 -10
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuLable.jsx +0 -35
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuRadioItem.d.ts +0 -6
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuRadioItem.jsx +0 -34
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +0 -15
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuRoot.jsx +0 -28
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuSeparator.d.ts +0 -3
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuSeparator.jsx +0 -19
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuSub.d.ts +0 -3
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuSub.jsx +0 -18
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +0 -4
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuSubTrigger.jsx +0 -33
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +0 -14
- package/dist/esm/lib/components/DropdownMenu/DropdownMenuTrigger.jsx +0 -43
- package/dist/esm/lib/components/DropdownMenu/index.d.ts +0 -20
- package/dist/esm/lib/components/DropdownMenu/index.jsx +0 -29
- package/dist/esm/lib/components/HoverCard/HoverCardContent.d.ts +0 -14
- package/dist/esm/lib/components/HoverCard/HoverCardContent.jsx +0 -62
- package/dist/esm/lib/components/HoverCard/HoverCardRoot.d.ts +0 -11
- package/dist/esm/lib/components/HoverCard/HoverCardRoot.jsx +0 -30
- package/dist/esm/lib/components/HoverCard/HoverCardTrigger.d.ts +0 -3
- package/dist/esm/lib/components/HoverCard/HoverCardTrigger.jsx +0 -20
- package/dist/esm/lib/components/HoverCard/index.d.ts +0 -10
- package/dist/esm/lib/components/HoverCard/index.jsx +0 -9
- package/dist/esm/lib/components/IconButton/index.d.ts +0 -15
- package/dist/esm/lib/components/IconButton/index.jsx +0 -64
- package/dist/esm/lib/components/Inset/index.d.ts +0 -10
- package/dist/esm/lib/components/Inset/index.jsx +0 -53
- package/dist/esm/lib/components/Label/index.d.ts +0 -17
- package/dist/esm/lib/components/Label/index.jsx +0 -54
- package/dist/esm/lib/components/LineChart/index.d.ts +0 -44
- package/dist/esm/lib/components/LineChart/index.jsx +0 -60
- package/dist/esm/lib/components/Menubar/MenubarCheckboxItem.d.ts +0 -4
- package/dist/esm/lib/components/Menubar/MenubarCheckboxItem.jsx +0 -31
- package/dist/esm/lib/components/Menubar/MenubarContent.d.ts +0 -11
- package/dist/esm/lib/components/Menubar/MenubarContent.jsx +0 -63
- package/dist/esm/lib/components/Menubar/MenubarItem.d.ts +0 -13
- package/dist/esm/lib/components/Menubar/MenubarItem.jsx +0 -56
- package/dist/esm/lib/components/Menubar/MenubarItemIndicator.d.ts +0 -10
- package/dist/esm/lib/components/Menubar/MenubarItemIndicator.jsx +0 -50
- package/dist/esm/lib/components/Menubar/MenubarMenu.d.ts +0 -5
- package/dist/esm/lib/components/Menubar/MenubarMenu.jsx +0 -18
- package/dist/esm/lib/components/Menubar/MenubarRadioGroup.d.ts +0 -8
- package/dist/esm/lib/components/Menubar/MenubarRadioGroup.jsx +0 -23
- package/dist/esm/lib/components/Menubar/MenubarRadioItem.d.ts +0 -4
- package/dist/esm/lib/components/Menubar/MenubarRadioItem.jsx +0 -33
- package/dist/esm/lib/components/Menubar/MenubarRoot.d.ts +0 -19
- package/dist/esm/lib/components/Menubar/MenubarRoot.jsx +0 -64
- package/dist/esm/lib/components/Menubar/MenubarSeparator.d.ts +0 -3
- package/dist/esm/lib/components/Menubar/MenubarSeparator.jsx +0 -21
- package/dist/esm/lib/components/Menubar/MenubarSub.d.ts +0 -3
- package/dist/esm/lib/components/Menubar/MenubarSub.jsx +0 -18
- package/dist/esm/lib/components/Menubar/MenubarSubContent.d.ts +0 -10
- package/dist/esm/lib/components/Menubar/MenubarSubContent.jsx +0 -52
- package/dist/esm/lib/components/Menubar/MenubarSubTrigger.d.ts +0 -4
- package/dist/esm/lib/components/Menubar/MenubarSubTrigger.jsx +0 -34
- package/dist/esm/lib/components/Menubar/MenubarTrigger.d.ts +0 -12
- package/dist/esm/lib/components/Menubar/MenubarTrigger.jsx +0 -58
- package/dist/esm/lib/components/Menubar/index.d.ts +0 -19
- package/dist/esm/lib/components/Menubar/index.jsx +0 -29
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuContent.d.ts +0 -11
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuContent.jsx +0 -49
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuIndicator.d.ts +0 -3
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -22
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuItem.d.ts +0 -3
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuItem.jsx +0 -20
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuLink.d.ts +0 -13
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuLink.jsx +0 -52
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuList.d.ts +0 -12
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuList.jsx +0 -49
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +0 -14
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuRoot.jsx +0 -35
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +0 -13
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuTrigger.jsx +0 -60
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +0 -12
- package/dist/esm/lib/components/NavigationMenu/NavigationMenuViewport.jsx +0 -54
- package/dist/esm/lib/components/NavigationMenu/index.d.ts +0 -12
- package/dist/esm/lib/components/NavigationMenu/index.jsx +0 -10
- package/dist/esm/lib/components/PieChart/index.d.ts +0 -23
- package/dist/esm/lib/components/PieChart/index.jsx +0 -65
- package/dist/esm/lib/components/Popover/PopoverClose.d.ts +0 -9
- package/dist/esm/lib/components/Popover/PopoverClose.jsx +0 -38
- package/dist/esm/lib/components/Popover/PopoverContent.d.ts +0 -11
- package/dist/esm/lib/components/Popover/PopoverContent.jsx +0 -66
- package/dist/esm/lib/components/Popover/PopoverRoot.d.ts +0 -12
- package/dist/esm/lib/components/Popover/PopoverRoot.jsx +0 -28
- package/dist/esm/lib/components/Popover/PopoverTrigger.d.ts +0 -3
- package/dist/esm/lib/components/Popover/PopoverTrigger.jsx +0 -20
- package/dist/esm/lib/components/Popover/index.d.ts +0 -11
- package/dist/esm/lib/components/Popover/index.jsx +0 -11
- package/dist/esm/lib/components/Progress/index.d.ts +0 -13
- package/dist/esm/lib/components/Progress/index.jsx +0 -57
- package/dist/esm/lib/components/RadarChart/index.d.ts +0 -33
- package/dist/esm/lib/components/RadarChart/index.jsx +0 -76
- package/dist/esm/lib/components/Radio/index.d.ts +0 -13
- package/dist/esm/lib/components/Radio/index.jsx +0 -48
- package/dist/esm/lib/components/RadioCards/RadioCardsItem.d.ts +0 -10
- package/dist/esm/lib/components/RadioCards/RadioCardsItem.jsx +0 -44
- package/dist/esm/lib/components/RadioCards/RadioCardsRoot.d.ts +0 -13
- package/dist/esm/lib/components/RadioCards/RadioCardsRoot.jsx +0 -51
- package/dist/esm/lib/components/RadioCards/index.d.ts +0 -6
- package/dist/esm/lib/components/RadioCards/index.jsx +0 -7
- package/dist/esm/lib/components/RadioGroup/RadioGroupItem.d.ts +0 -13
- package/dist/esm/lib/components/RadioGroup/RadioGroupItem.jsx +0 -36
- package/dist/esm/lib/components/RadioGroup/RadioGroupRoot.d.ts +0 -15
- package/dist/esm/lib/components/RadioGroup/RadioGroupRoot.jsx +0 -47
- package/dist/esm/lib/components/RadioGroup/index.d.ts +0 -6
- package/dist/esm/lib/components/RadioGroup/index.jsx +0 -7
- package/dist/esm/lib/components/ScrollArea/index.d.ts +0 -9
- package/dist/esm/lib/components/ScrollArea/index.jsx +0 -28
- package/dist/esm/lib/components/SegmentedControl/SegmentedControlItem.d.ts +0 -6
- package/dist/esm/lib/components/SegmentedControl/SegmentedControlItem.jsx +0 -25
- package/dist/esm/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +0 -14
- package/dist/esm/lib/components/SegmentedControl/SegmentedControlRoot.jsx +0 -50
- package/dist/esm/lib/components/SegmentedControl/index.d.ts +0 -6
- package/dist/esm/lib/components/SegmentedControl/index.jsx +0 -7
- package/dist/esm/lib/components/Select/index.d.ts +0 -34
- package/dist/esm/lib/components/Select/index.jsx +0 -109
- package/dist/esm/lib/components/Separator/index.d.ts +0 -11
- package/dist/esm/lib/components/Separator/index.jsx +0 -50
- package/dist/esm/lib/components/Skeleton/index.d.ts +0 -14
- package/dist/esm/lib/components/Skeleton/index.jsx +0 -45
- package/dist/esm/lib/components/Slider/index.d.ts +0 -14
- package/dist/esm/lib/components/Slider/index.jsx +0 -50
- package/dist/esm/lib/components/Spinner/index.d.ts +0 -15
- package/dist/esm/lib/components/Spinner/index.jsx +0 -50
- package/dist/esm/lib/components/TabNav/index.d.ts +0 -15
- package/dist/esm/lib/components/TabNav/index.jsx +0 -44
- package/dist/esm/lib/components/Table/index.d.ts +0 -30
- package/dist/esm/lib/components/Table/index.jsx +0 -113
- package/dist/esm/lib/components/Tabs/index.d.ts +0 -22
- package/dist/esm/lib/components/Tabs/index.jsx +0 -74
- package/dist/esm/lib/components/TextArea/index.d.ts +0 -16
- package/dist/esm/lib/components/TextArea/index.jsx +0 -59
- package/dist/esm/lib/components/TextField/index.d.ts +0 -21
- package/dist/esm/lib/components/TextField/index.jsx +0 -61
- package/dist/esm/lib/components/Toast/ToastActionButton.d.ts +0 -14
- package/dist/esm/lib/components/Toast/ToastActionButton.jsx +0 -68
- package/dist/esm/lib/components/Toast/ToastDescription.d.ts +0 -13
- package/dist/esm/lib/components/Toast/ToastDescription.jsx +0 -45
- package/dist/esm/lib/components/Toast/ToastRoot.d.ts +0 -27
- package/dist/esm/lib/components/Toast/ToastRoot.jsx +0 -96
- package/dist/esm/lib/components/Toast/ToastTitle.d.ts +0 -13
- package/dist/esm/lib/components/Toast/ToastTitle.jsx +0 -43
- package/dist/esm/lib/components/Toast/index.d.ts +0 -8
- package/dist/esm/lib/components/Toast/index.jsx +0 -11
- package/dist/esm/lib/components/Toggle/ToggleWithText.d.ts +0 -21
- package/dist/esm/lib/components/Toggle/ToggleWithText.jsx +0 -60
- package/dist/esm/lib/components/Toggle/index.d.ts +0 -21
- package/dist/esm/lib/components/Toggle/index.jsx +0 -59
- package/dist/esm/lib/components/ToggleGroup/ToggleGroupItem.d.ts +0 -17
- package/dist/esm/lib/components/ToggleGroup/ToggleGroupItem.jsx +0 -44
- package/dist/esm/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +0 -15
- package/dist/esm/lib/components/ToggleGroup/ToggleGroupRoot.jsx +0 -53
- package/dist/esm/lib/components/ToggleGroup/index.d.ts +0 -6
- package/dist/esm/lib/components/ToggleGroup/index.jsx +0 -7
- package/dist/esm/lib/components/ToggleSwitch/index.d.ts +0 -13
- package/dist/esm/lib/components/ToggleSwitch/index.jsx +0 -75
- package/dist/esm/lib/components/Tooltip/index.d.ts +0 -19
- package/dist/esm/lib/components/Tooltip/index.jsx +0 -58
- package/dist/esm/lib/components/index.d.ts +0 -50
- package/dist/esm/lib/constants.d.ts +0 -655
- package/dist/esm/lib/constants.js +0 -914
- package/dist/esm/lib/index.d.ts +0 -2
- package/dist/esm/lib/types.d.ts +0 -81
- package/dist/esm/lib/utils/useDarkMode.d.ts +0 -1
- package/dist/esm/lib/utils/useDarkMode.js +0 -49
- package/dist/esm/lib/utils/utils.d.ts +0 -2
- /package/dist/{cjs/lib → lib}/Typography/index.d.ts +0 -0
- /package/dist/{esm/lib → lib}/Typography/index.js +0 -0
- /package/dist/{cjs/lib → lib}/color/alpha.d.ts +0 -0
- /package/dist/{esm/lib → lib}/color/alpha.js +0 -0
- /package/dist/{cjs/lib → lib}/color/constants.d.ts +0 -0
- /package/dist/{esm/lib → lib}/color/constants.js +0 -0
- /package/dist/{cjs/lib → lib}/color/dark.d.ts +0 -0
- /package/dist/{esm/lib → lib}/color/dark.js +0 -0
- /package/dist/{cjs/lib → lib}/color/krdsColors.d.ts +0 -0
- /package/dist/{esm/lib → lib}/color/krdsColors.js +0 -0
- /package/dist/{cjs/lib → lib}/color/light.d.ts +0 -0
- /package/dist/{esm/lib → lib}/color/light.js +0 -0
- /package/dist/{cjs/lib → lib}/components/AlertDialog/AlertDialogContent.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/AlertDialog/AlertDialogDescription.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/AlertDialog/AlertDialogRoot.js +0 -0
- /package/dist/{cjs/lib → lib}/components/AlertDialog/AlertDialogTitle.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/AlertDialog/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/AlertDialog/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/AspectRatio/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Avatar/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Callout/CalloutIcon.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Callout/CalloutText.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Callout/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Callout/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/CheckboxGroup/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuCheckboxItem.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuContent.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuGroup.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuGroup.js +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuItem.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuItemIndicator.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuLabel.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuRadioGroup.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuRadioGroup.js +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuRadioItem.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuRoot.js +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuSeparator.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuSubContent.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuSubTrigger.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuTrigger.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/ContextMenu/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/DataList/DataListItem.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DataList/DataListLabel.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DataList/DataListRoot.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DataList/DataListValue.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DataList/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DataList/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/Dialog/DialogContent.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Dialog/DialogDescription.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Dialog/DialogRoot.js +0 -0
- /package/dist/{cjs/lib → lib}/components/Dialog/DialogTrigger.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Dialog/DialogTrigger.js +0 -0
- /package/dist/{cjs/lib → lib}/components/Dialog/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdonMenuRadioGroup.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdonMenuRadioGroup.js +0 -0
- /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdonMenuSubContent.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuContent.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuLable.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuRadioItem.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuRoot.js +0 -0
- /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuSeparator.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuSub.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuSub.js +0 -0
- /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/DropdownMenu/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/HoverCard/HoverCardRoot.js +0 -0
- /package/dist/{cjs/lib → lib}/components/HoverCard/HoverCardTrigger.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/HoverCard/HoverCardTrigger.js +0 -0
- /package/dist/{cjs/lib → lib}/components/HoverCard/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/Inset/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarCheckboxItem.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarContent.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarItem.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarItemIndicator.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarMenu.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarMenu.js +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarRadioGroup.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarRadioGroup.js +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarRadioItem.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarSeparator.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarSub.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarSub.js +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarSubContent.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarSubTrigger.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/MenubarTrigger.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Menubar/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuContent.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuIndicator.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuItem.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuItem.js +0 -0
- /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuLink.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuList.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuTrigger.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuViewport.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/NavigationMenu/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/NavigationMenu/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/Popover/PopoverClose.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Popover/PopoverRoot.js +0 -0
- /package/dist/{cjs/lib → lib}/components/Popover/PopoverTrigger.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Popover/PopoverTrigger.js +0 -0
- /package/dist/{cjs/lib → lib}/components/Popover/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/RadioCards/RadioCardsItem.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/RadioCards/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/RadioGroup/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/ScrollArea/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/SegmentedControl/SegmentedControlItem.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/SegmentedControl/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/Separator/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/TabNav/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Tabs/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Toast/ToastRoot.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Toast/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/Toast/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/ToggleGroup/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/ToggleGroup/index.js +0 -0
- /package/dist/{cjs/lib → lib}/components/ToggleSwitch/index.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/components/index.d.ts +0 -0
- /package/dist/{esm/lib → lib}/components/index.js +0 -0
- /package/dist/{cjs/lib → lib}/constants.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/index.d.ts +0 -0
- /package/dist/{esm/lib → lib}/index.js +0 -0
- /package/dist/{cjs/lib → lib}/types.d.ts +0 -0
- /package/dist/{esm/lib → lib}/types.js +0 -0
- /package/dist/{cjs/lib → lib}/utils/useDarkMode.d.ts +0 -0
- /package/dist/{cjs/lib → lib}/utils/utils.d.ts +0 -0
- /package/dist/{esm/lib → lib}/utils/utils.js +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../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":"ulDA4BA,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,OA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AOC,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"}
|
@@ -0,0 +1,2 @@
|
|
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 s}from"../../react-use-previous/dist/index.mjs";import{useSize as d}from"../../react-use-size/dist/index.mjs";import{Primitive as l}from"../../react-primitive/dist/index.mjs";import{createCollection as u}from"../../react-collection/dist/index.mjs";import{j as c}from"../../../../_virtual/jsx-runtime.mjs";var m=["PageUp","PageDown"],f=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],p={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},v="Slider",[h,w,S]=u(v),[x,g]=o(v,[S]),[y,b]=x(v),j=e.forwardRef(((r,o)=>{const{name:a,min:s=0,max:d=100,step:l=1,orientation:u="horizontal",disabled:p=!1,minStepsBetweenThumbs:v=0,defaultValue:w=[s],value:S,onValueChange:x=(()=>{}),onValueCommit:g=(()=>{}),inverted:b=!1,...j}=r,D=e.useRef(new Set),E=e.useRef(0),P="horizontal"===u?R:_,[M=[],K]=i({prop:S,defaultProp:w,onChange:e=>{const t=[...D.current];t[E.current]?.focus(),x(e)}}),A=e.useRef(M);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-s)/l)*l+s,o),a=t(i,[s,d]);K(((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)){E.current=t.indexOf(a);const n=String(t)!==String(e);return n&&r&&g(t),n?t:e}return e}))}return c.jsx(y,{scope:r.__scopeSlider,name:a,disabled:p,min:s,max:d,valueIndexToChangeRef:E,thumbs:D.current,values:M,orientation:u,children:c.jsx(h.Provider,{scope:r.__scopeSlider,children:c.jsx(h.Slot,{scope:r.__scopeSlider,children:c.jsx(P,{"aria-disabled":p,"data-disabled":p?"":void 0,...j,ref:o,onPointerDown:n(j.onPointerDown,(()=>{p||(A.current=M)})),min:s,max:d,inverted:b,onSlideStart:p?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)}(M,e);C(e,t)},onSlideMove:p?void 0:function(e){C(e,E.current)},onSlideEnd:p?void 0:function(){const e=A.current[E.current];M[E.current]!==e&&g(M)},onHomeKeyDown:()=>!p&&C(s,0,{commit:!0}),onEndKeyDown:()=>!p&&C(d,M.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!p){const n=m.includes(e.key)||e.shiftKey&&f.includes(e.key)?10:1,r=E.current;C(M[r]+l*n*t,r,{commit:!0})}}})})})})}));j.displayName=v;var[D,E]=x(v,{startEdge:"left",endEdge:"right",size:"width",direction:1}),R=e.forwardRef(((t,n)=>{const{min:o,max:i,dir:s,inverted:d,onSlideStart:l,onSlideMove:u,onSlideEnd:m,onStepKeyDown:f,...v}=t,[h,w]=e.useState(null),S=r(n,(e=>w(e))),x=e.useRef(),g=a(s),y="ltr"===g,b=y&&!d||!y&&d;function j(e){const t=x.current||h.getBoundingClientRect(),n=L([0,t.width],b?[o,i]:[i,o]);return x.current=t,n(e-t.left)}return c.jsx(D,{scope:t.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:c.jsx(P,{dir:g,"data-orientation":"horizontal",...v,ref:S,style:{...v.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=j(e.clientX);l?.(t)},onSlideMove:e=>{const t=j(e.clientX);u?.(t)},onSlideEnd:()=>{x.current=void 0,m?.()},onStepKeyDown:e=>{const t=p[b?"from-left":"from-right"].includes(e.key);f?.({event:e,direction:t?-1:1})}})})})),_=e.forwardRef(((t,n)=>{const{min:o,max:i,inverted:a,onSlideStart:s,onSlideMove:d,onSlideEnd:l,onStepKeyDown:u,...m}=t,f=e.useRef(null),v=r(n,f),h=e.useRef(),w=!a;function S(e){const t=h.current||f.current.getBoundingClientRect(),n=L([0,t.height],w?[i,o]:[o,i]);return h.current=t,n(e-t.top)}return c.jsx(D,{scope:t.__scopeSlider,startEdge:w?"bottom":"top",endEdge:w?"top":"bottom",size:"height",direction:w?1:-1,children:c.jsx(P,{"data-orientation":"vertical",...m,ref:v,style:{...m.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=S(e.clientY);s?.(t)},onSlideMove:e=>{const t=S(e.clientY);d?.(t)},onSlideEnd:()=>{h.current=void 0,l?.()},onStepKeyDown:e=>{const t=p[w?"from-bottom":"from-top"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})})),P=e.forwardRef(((e,t)=>{const{__scopeSlider:r,onSlideStart:o,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:d,onStepKeyDown:u,...p}=e,h=b(v,r);return c.jsx(l.span,{...p,ref:t,onKeyDown:n(e.onKeyDown,(e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(d(e),e.preventDefault()):m.concat(f).includes(e.key)&&(u(e),e.preventDefault())})),onPointerDown:n(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),h.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))}))})})),M="SliderTrack",K=e.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,o=b(M,n);return c.jsx(l.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})}));K.displayName=M;var A="SliderRange",C=e.forwardRef(((t,n)=>{const{__scopeSlider:o,...i}=t,a=b(A,o),s=E(A,o),d=e.useRef(null),u=r(n,d),m=a.values.length,f=a.values.map((e=>T(e,a.min,a.max))),p=m>1?Math.min(...f):0,v=100-Math.max(...f);return c.jsx(l.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,...i,ref:u,style:{...t.style,[s.startEdge]:p+"%",[s.endEdge]:v+"%"}})}));C.displayName=A;var I="SliderThumb",k=e.forwardRef(((t,n)=>{const o=w(t.__scopeSlider),[i,a]=e.useState(null),s=r(n,(e=>a(e))),d=e.useMemo((()=>i?o().findIndex((e=>e.ref.current===i)):-1),[o,i]);return c.jsx(z,{...t,ref:s,index:d})})),z=e.forwardRef(((t,o)=>{const{__scopeSlider:i,index:a,name:s,...u}=t,m=b(I,i),f=E(I,i),[p,v]=e.useState(null),w=r(o,(e=>v(e))),S=!p||Boolean(p.closest("form")),x=d(p),g=m.values[a],y=void 0===g?0:T(g,m.min,m.max),j=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(a,m.values.length),D=x?.[f.size],R=D?function(e,t,n){const r=e/2,o=L([0,50],[0,r]);return(r-o(t)*n)*n}(D,y,f.direction):0;return e.useEffect((()=>{if(p)return m.thumbs.add(p),()=>{m.thumbs.delete(p)}}),[p,m.thumbs]),c.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[f.startEdge]:`calc(${y}% + ${R}px)`},children:[c.jsx(h.ItemSlot,{scope:t.__scopeSlider,children:c.jsx(l.span,{role:"slider","aria-label":t["aria-label"]||j,"aria-valuemin":m.min,"aria-valuenow":g,"aria-valuemax":m.max,"aria-orientation":m.orientation,"data-orientation":m.orientation,"data-disabled":m.disabled?"":void 0,tabIndex:m.disabled?void 0:0,...u,ref:w,style:void 0===g?{display:"none"}:t.style,onFocus:n(t.onFocus,(()=>{m.valueIndexToChangeRef.current=a}))})}),S&&c.jsx(H,{name:s??(m.name?m.name+(m.values.length>1?"[]":""):void 0),value:g},a)]})}));k.displayName=I;var H=t=>{const{value:n,...r}=t,o=e.useRef(null),i=s(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]),c.jsx("input",{style:{display:"none"},...r,ref:o,defaultValue:n})};function T(e,n,r){return t(100/(r-n)*(e-n),[0,100])}function L(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 U=j,V=K,B=C,N=k;export{B as Range,U as Root,j as Slider,C as SliderRange,k as SliderThumb,K as SliderTrack,N as Thumb,V as Track,g as createSliderScope};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../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":"wwBAeA,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,SACfC,cACDA,EAAgB,SACfC,SACDA,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Y,SACnCO,IAC5B,GAAIlH,IAAcvE,GAASsL,EAAU,CACnC,MAAM3G,EAAQ,IAAI+G,MAAM,QAAS,CAAEC,SAAS,IAC5CL,EAASM,KAAKX,EAAOjL,GACrBiL,EAAMY,cAAclH,EACrB,IACA,CAACJ,EAAWvE,IACQsD,EAAGA,IAAC,QAAS,CAAEqD,MAAO,CAAEiE,QAAS,WAAaG,EAAYnH,MAAK7D,aAAcC,GAAQ,EAO9G,SAASyI,EAAyBzI,EAAOP,EAAKC,GAI5C,OAAO4C,EAFgB,KADN5C,EAAMD,IAEcO,EAAQP,GACpB,CAAC,EAAG,KAC/B,CAiCA,SAAS8G,EAAY0E,EAAOa,GAC1B,OAAQ9L,IACN,GAAIiL,EAAM,KAAOA,EAAM,IAAMa,EAAO,KAAOA,EAAO,GAAI,OAAOA,EAAO,GACpE,MAAMC,GAASD,EAAO,GAAKA,EAAO,KAAOb,EAAM,GAAKA,EAAM,IAC1D,OAAOa,EAAO,GAAKC,GAAS/L,EAAQiL,EAAM,GAAG,CAEjD,CAQG,IAACe,EAAO7M,EACP8M,EAAQ/D,EACRgE,EAAQ7D,EACR8D,EAAQtD"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as r from"react";import{composeRefs as e}from"../../react-compose-refs/dist/index.mjs";import{j as n}from"../../../../_virtual/jsx-runtime.mjs";var t=r.forwardRef(((e,t)=>{const{children:l,...s}=e,c=r.Children.toArray(l),a=c.find(o);if(a){const e=a.props.children,l=c.map((n=>n===a?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:n));return n.jsx(i,{...s,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,l):null})}return n.jsx(i,{...s,ref:t,children:l})}));t.displayName="Slot";var i=r.forwardRef(((n,t)=>{const{children:i,...l}=n;if(r.isValidElement(i)){const n=function(r){let e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;if(n)return r.ref;if(e=Object.getOwnPropertyDescriptor(r,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n)return r.props.ref;return r.props.ref||r.ref}(i);return r.cloneElement(i,{...s(l,i.props),ref:t?e(t,n):n})}return r.Children.count(i)>1?r.Children.only(null):null}));i.displayName="SlotClone";var l=({children:r})=>n.jsx(n.Fragment,{children:r});function o(e){return r.isValidElement(e)&&e.type===l}function s(r,e){const n={...e};for(const t in e){const i=r[t],l=e[t];/^on[A-Z]/.test(t)?i&&l?n[t]=(...r)=>{l(...r),i(...r)}:i&&(n[t]=i):"style"===t?n[t]={...i,...l}:"className"===t&&(n[t]=[i,l].filter(Boolean).join(" "))}return{...r,...n}}export{t as Slot,l as Slottable};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/Slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment, jsx } from \"react/jsx-runtime\";\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n return React.cloneElement(children, {\n ...mergeProps(slotProps, children.props),\n // @ts-ignore\n ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef\n });\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Slot","React","forwardRef","props","forwardedRef","children","slotProps","childrenArray","Children","toArray","slottable","find","isSlottable","newElement","newChildren","map","child","count","only","isValidElement","jsx","SlotClone","ref","cloneElement","displayName","childrenRef","element","getter","Object","getOwnPropertyDescriptor","get","mayWarn","isReactWarning","getElementRef","mergeProps","composeRefs","Slottable","Fragment","type","childProps","overrideProps","propName","slotProp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cqB,GAAeA,GAEhE,CACD,OAAOxB,EAAMO,SAASS,MAAMZ,GAAY,EAAIJ,EAAMO,SAASU,KAAK,MAAQ,IAAI,IAE9EG,EAAUG,YAAc,YACrB,IAACY,EAAY,EAAG/B,cACMe,MAAIiB,EAAAA,SAAU,CAAEhC,aAEzC,SAASO,EAAYI,GACnB,OAAOf,EAAMkB,eAAeH,IAAUA,EAAMsB,OAASF,CACvD,CACA,SAASF,EAAW5B,EAAWiC,GAC7B,MAAMC,EAAgB,IAAKD,GAC3B,IAAK,MAAME,KAAYF,EAAY,CACjC,MAAMG,EAAgBpC,EAAUmC,GAC1BE,EAAiBJ,EAAWE,GAChB,WAAWG,KAAKH,GAE5BC,GAAiBC,EACnBH,EAAcC,GAAY,IAAII,KAC5BF,KAAkBE,GAClBH,KAAiBG,EAAK,EAEfH,IACTF,EAAcC,GAAYC,GAEN,UAAbD,EACTD,EAAcC,GAAY,IAAKC,KAAkBC,GAC3B,cAAbF,IACTD,EAAcC,GAAY,CAACC,EAAeC,GAAgBG,OAAOC,SAASC,KAAK,KAElF,CACD,MAAO,IAAK1C,KAAckC,EAC5B"}
|
@@ -0,0 +1,2 @@
|
|
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 s}from"../../react-use-controllable-state/dist/index.mjs";import{usePrevious as i}from"../../react-use-previous/dist/index.mjs";import{useSize as a}from"../../react-use-size/dist/index.mjs";import{Primitive as c}from"../../react-primitive/dist/index.mjs";import{j as n}from"../../../../_virtual/jsx-runtime.mjs";var d="Switch",[l,p]=o(d),[u,m]=l(d),f=e.forwardRef(((o,i)=>{const{__scopeSwitch:a,name:d,checked:l,defaultChecked:p,required:m,disabled:f,value:b="on",onCheckedChange:h,...k}=o,[v,w]=e.useState(null),y=r(i,(e=>w(e))),C=e.useRef(!1),g=!v||Boolean(v.closest("form")),[S=!1,E]=s({prop:l,defaultProp:p,onChange:h});return n.jsxs(u,{scope:a,checked:S,disabled:f,children:[n.jsx(c.button,{type:"button",role:"switch","aria-checked":S,"aria-required":m,"data-state":j(S),"data-disabled":f?"":void 0,disabled:f,value:b,...k,ref:y,onClick:t(o.onClick,(e=>{E((e=>!e)),g&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())}))}),g&&n.jsx(x,{control:v,bubbles:!C.current,name:d,value:b,checked:S,required:m,disabled:f,style:{transform:"translateX(-100%)"}})]})}));f.displayName=d;var b="SwitchThumb",h=e.forwardRef(((e,t)=>{const{__scopeSwitch:r,...o}=e,s=m(b,r);return n.jsx(c.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t})}));h.displayName=b;var x=t=>{const{control:r,checked:o,bubbles:s=!0,...c}=t,d=e.useRef(null),l=i(o),p=a(r);return e.useEffect((()=>{const e=d.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==o&&r){const t=new Event("click",{bubbles:s});r.call(e,o),e.dispatchEvent(t)}}),[l,o,s]),n.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...c,tabIndex:-1,ref:d,style:{...t.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function j(e){return e?"checked":"unchecked"}var k=f,v=h;export{k as Root,f as Switch,h as SwitchThumb,v as Thumb,p as createSwitchScope};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../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":"ukBAYA,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,MACrCC,EAAeC,EAAgBf,GAAegB,GAASJ,EAAUI,KACjEC,EAAmCpB,EAAMqB,QAAO,GAChDC,GAAgBR,GAASS,QAAQT,EAAOU,QAAQ,UAC/ClB,GAAU,EAAOmB,GAAcC,EAAqB,CACzDC,KAAMpB,EACNqB,YAAapB,EACbqB,SAAUjB,IAEZ,OAAuBkB,EAAAA,KAAKjC,EAAgB,CAAEkC,MAAO3B,EAAeE,UAASI,WAAUsB,SAAU,CAC/EC,EAAGA,IACjBC,EAAUpB,OACV,CACEqB,KAAM,SACNC,KAAM,SACN,eAAgB9B,EAChB,gBAAiBG,EACjB,aAAc4B,EAAS/B,GACvB,gBAAiBI,EAAW,QAAK,EACjCA,WACAC,WACGE,EACHyB,IAAKrB,EACLsB,QAASC,EAAqBtC,EAAMqC,SAAUE,IAC5ChB,GAAYiB,IAAiBA,IACzBpB,IACFF,EAAiCuB,QAAUF,EAAMG,uBAC5CxB,EAAiCuB,SAASF,EAAMI,kBACtD,MAIPvB,GAAiCW,EAAGA,IAClCa,EACA,CACEC,QAASjC,EACTkC,SAAU5B,EAAiCuB,QAC3CtC,OACAM,QACAL,UACAG,WACAC,WACAuC,MAAO,CAAEC,UAAW,yBAGtB,IAGRnD,EAAOoD,YAAc1D,EACrB,IAAI2D,EAAa,cACbC,EAAcrD,EAAMC,YACtB,CAACC,EAAOC,KACN,MAAMC,cAAEA,KAAkBkD,GAAepD,EACnCqD,EAAUzD,EAAiBsD,EAAYhD,GAC7C,OAAuB6B,EAAGA,IACxBC,EAAUsB,KACV,CACE,aAAcnB,EAASkB,EAAQjD,SAC/B,gBAAiBiD,EAAQ7C,SAAW,QAAK,KACtC4C,EACHhB,IAAKnC,GAER,IAGLkD,EAAYF,YAAcC,EAC1B,IAAIN,EAAe5C,IACjB,MAAM6C,QAAEA,EAAOzC,QAAEA,EAAO0C,QAAEA,GAAU,KAASS,GAAevD,EACtDoC,EAAMtC,EAAMqB,OAAO,MACnBqB,EAAcgB,EAAYpD,GAC1BqD,EAAcC,EAAQb,GAY5B,OAXA/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,EAAGA,IACxB,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"}
|
@@ -0,0 +1,2 @@
|
|
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 i,Item as r}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{j as u}from"../../../../_virtual/jsx-runtime.mjs";var m="Tabs",[f,p]=a(m,[o]),v=o(),[b,x]=f(m),j=e.forwardRef(((e,t)=>{const{__scopeTabs:a,value:o,onValueChange:i,defaultValue:r,orientation:n="horizontal",dir:m,activationMode:f="automatic",...p}=e,v=d(m),[x,j]=c({prop:o,onChange:i,defaultProp:r});return u.jsx(b,{scope:a,baseId:l(),value:x,onValueChange:j,orientation:n,dir:v,activationMode:f,children:u.jsx(s.div,{dir:v,"data-orientation":n,...p,ref:t})})}));j.displayName=m;var h="TabsList",y=e.forwardRef(((e,t)=>{const{__scopeTabs:a,loop:o=!0,...r}=e,n=x(h,a),d=v(a);return u.jsx(i,{asChild:!0,...d,orientation:n.orientation,dir:n.dir,loop:o,children:u.jsx(s.div,{role:"tablist","aria-orientation":n.orientation,...r,ref:t})})}));y.displayName=h;var g="TabsTrigger",C=e.forwardRef(((e,a)=>{const{__scopeTabs:o,value:i,disabled:n=!1,...d}=e,c=x(g,o),l=v(o),m=w(c.baseId,i),f=D(c.baseId,i),p=i===c.value;return u.jsx(r,{asChild:!0,...l,focusable:!n,active:p,children:u.jsx(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(i)})),onKeyDown:t(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(i)})),onFocus:t(e.onFocus,(()=>{const e="manual"!==c.activationMode;p||n||!e||c.onValueChange(i)}))})})}));C.displayName=g;var T="TabsContent",_=e.forwardRef(((t,a)=>{const{__scopeTabs:o,value:i,forceMount:r,children:d,...c}=t,l=x(T,o),m=w(l.baseId,i),f=D(l.baseId,i),p=i===l.value,v=e.useRef(p);return e.useEffect((()=>{const e=requestAnimationFrame((()=>v.current=!1));return()=>cancelAnimationFrame(e)}),[]),u.jsx(n,{present:r||p,children:({present:e})=>u.jsx(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 w(e,t){return`${e}-trigger-${t}`}function D(e,t){return`${e}-content-${t}`}_.displayName=T;var I=j,M=y,R=C,V=_;export{V as Content,M as List,I as Root,j as Tabs,_ as TabsContent,y as TabsList,C as TabsTrigger,R as Trigger,p as createTabsScope};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../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":"4pBAcA,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,E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F5E,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"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as e from"react";import*as t from"react-dom";import{composeEventHandlers as r}from"../../primitive/dist/index.mjs";import{useComposedRefs as n}from"../../react-compose-refs/dist/index.mjs";import{createCollection as o}from"../../react-collection/dist/index.mjs";import{createContextScope as s}from"../../react-context/dist/index.mjs";import{Branch as i,Root as a}from"../../react-dismissable-layer/dist/index.mjs";import{Portal as c}from"../../react-portal/dist/index.mjs";import{Presence as d}from"../../react-presence/dist/index.mjs";import{Primitive as u,dispatchDiscreteCustomEvent as l}from"../../react-primitive/dist/index.mjs";import{useCallbackRef as p}from"../../react-use-callback-ref/dist/index.mjs";import{useControllableState as f}from"../../react-use-controllable-state/dist/index.mjs";import{useLayoutEffect as m}from"../../react-use-layout-effect/dist/index.mjs";import{VisuallyHidden as v}from"../../react-visually-hidden/dist/index.mjs";import{j as w}from"../../../../_virtual/jsx-runtime.mjs";var x="ToastProvider",[y,T,E]=o("Toast"),[h,g]=s("Toast",[E]),[b,C]=h(x),j=t=>{const{__scopeToast:r,label:n="Notification",duration:o=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:a}=t,[c,d]=e.useState(null),[u,l]=e.useState(0),p=e.useRef(!1),f=e.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${x}\`. Expected non-empty \`string\`.`),w.jsx(y.Provider,{scope:r,children:w.jsx(b,{scope:r,label:n,duration:o,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:e.useCallback((()=>l((e=>e+1))),[]),onToastRemove:e.useCallback((()=>l((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:f,children:a})})};j.displayName=x;var R="ToastViewport",P=["F8"],D="toast.viewportPause",L="toast.viewportResume",S=e.forwardRef(((t,r)=>{const{__scopeToast:o,hotkey:s=P,label:a="Notifications ({hotkey})",...c}=t,d=C(R,o),l=T(o),p=e.useRef(null),f=e.useRef(null),m=e.useRef(null),v=e.useRef(null),x=n(r,v,d.onViewportChange),E=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),h=d.toastCount>0;e.useEffect((()=>{const e=e=>{s.every((t=>e[t]||e.code===t))&&v.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[s]),e.useEffect((()=>{const e=p.current,t=v.current;if(h&&e&&t){const r=()=>{if(!d.isClosePausedRef.current){const e=new CustomEvent(D);t.dispatchEvent(e),d.isClosePausedRef.current=!0}},n=()=>{if(d.isClosePausedRef.current){const e=new CustomEvent(L);t.dispatchEvent(e),d.isClosePausedRef.current=!1}},o=t=>{!e.contains(t.relatedTarget)&&n()},s=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",o),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",s),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",s),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}}),[h,d.isClosePausedRef]);const g=e.useCallback((({tabbingDirection:e})=>{const t=l().map((t=>{const r=t.ref.current,n=[r,...z(r)];return"forwards"===e?n:n.reverse()}));return("forwards"===e?t.reverse():t).flat()}),[l]);return e.useEffect((()=>{const e=v.current;if(e){const t=t=>{const r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){const r=document.activeElement,n=t.shiftKey;if(t.target===e&&n)return void f.current?.focus();const o=g({tabbingDirection:n?"backwards":"forwards"}),s=o.findIndex((e=>e===r));G(o.slice(s+1))?t.preventDefault():n?f.current?.focus():m.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[l,g]),w.jsxs(i,{ref:p,role:"region","aria-label":a.replace("{hotkey}",E),tabIndex:-1,style:{pointerEvents:h?void 0:"none"},children:[h&&w.jsx(F,{ref:f,onFocusFromOutsideViewport:()=>{G(g({tabbingDirection:"forwards"}))}}),w.jsx(y.Slot,{scope:o,children:w.jsx(u.ol,{tabIndex:-1,...c,ref:x})}),h&&w.jsx(F,{ref:m,onFocusFromOutsideViewport:()=>{G(g({tabbingDirection:"backwards"}))}})]})}));S.displayName=R;var _="ToastFocusProxy",F=e.forwardRef(((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,s=C(_,r);return w.jsx(v,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:e=>{const t=e.relatedTarget;!s.viewport?.contains(t)&&n()}})}));F.displayName=_;var N="Toast",k=e.forwardRef(((e,t)=>{const{forceMount:n,open:o,defaultOpen:s,onOpenChange:i,...a}=e,[c=!0,u]=f({prop:o,defaultProp:s,onChange:i});return w.jsx(d,{present:n||c,children:w.jsx(M,{open:c,...a,ref:t,onClose:()=>u(!1),onPause:p(e.onPause),onResume:p(e.onResume),onSwipeStart:r(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:r(e.onSwipeMove,(e=>{const{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${r}px`)})),onSwipeCancel:r(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:r(e.onSwipeEnd,(e=>{const{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${r}px`),u(!1)}))})})}));k.displayName=N;var[I,A]=h(N,{onClose(){}}),M=e.forwardRef(((o,s)=>{const{__scopeToast:i,type:c="foreground",duration:d,open:l,onClose:f,onEscapeKeyDown:m,onPause:v,onResume:x,onSwipeStart:T,onSwipeMove:E,onSwipeCancel:h,onSwipeEnd:g,...b}=o,j=C(N,i),[R,P]=e.useState(null),S=n(s,(e=>P(e))),_=e.useRef(null),F=e.useRef(null),k=d||j.duration,A=e.useRef(0),M=e.useRef(k),O=e.useRef(0),{onToastAdd:V,onToastRemove:$}=j,U=p((()=>{const e=R?.contains(document.activeElement);e&&j.viewport?.focus(),f()})),X=e.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout(O.current),A.current=(new Date).getTime(),O.current=window.setTimeout(U,e))}),[U]);e.useEffect((()=>{const e=j.viewport;if(e){const t=()=>{X(M.current),x?.()},r=()=>{const e=(new Date).getTime()-A.current;M.current=M.current-e,window.clearTimeout(O.current),v?.()};return e.addEventListener(D,r),e.addEventListener(L,t),()=>{e.removeEventListener(D,r),e.removeEventListener(L,t)}}}),[j.viewport,k,v,x,X]),e.useEffect((()=>{l&&!j.isClosePausedRef.current&&X(k)}),[l,k,j.isClosePausedRef,X]),e.useEffect((()=>(V(),()=>$())),[V,$]);const q=e.useMemo((()=>R?W(R):null),[R]);return j.viewport?w.jsxs(w.Fragment,{children:[q&&w.jsx(K,{__scopeToast:i,role:"status","aria-live":"foreground"===c?"assertive":"polite","aria-atomic":!0,children:q}),w.jsx(I,{scope:i,onClose:U,children:t.createPortal(w.jsx(y.ItemSlot,{scope:i,children:w.jsx(a,{asChild:!0,onEscapeKeyDown:r(m,(()=>{j.isFocusedToastEscapeKeyDownRef.current||U(),j.isFocusedToastEscapeKeyDownRef.current=!1})),children:w.jsx(u.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":j.swipeDirection,...b,ref:S,style:{userSelect:"none",touchAction:"none",...o.style},onKeyDown:r(o.onKeyDown,(e=>{"Escape"===e.key&&(m?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(j.isFocusedToastEscapeKeyDownRef.current=!0,U()))})),onPointerDown:r(o.onPointerDown,(e=>{0===e.button&&(_.current={x:e.clientX,y:e.clientY})})),onPointerMove:r(o.onPointerMove,(e=>{if(!_.current)return;const t=e.clientX-_.current.x,r=e.clientY-_.current.y,n=Boolean(F.current),o=["left","right"].includes(j.swipeDirection),s=["left","up"].includes(j.swipeDirection)?Math.min:Math.max,i=o?s(0,t):0,a=o?0:s(0,r),c="touch"===e.pointerType?10:2,d={x:i,y:a},u={originalEvent:e,delta:d};n?(F.current=d,Y("toast.swipeMove",E,u,{discrete:!1})):B(d,j.swipeDirection,c)?(F.current=d,Y("toast.swipeStart",T,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(r)>c)&&(_.current=null)})),onPointerUp:r(o.onPointerUp,(e=>{const t=F.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),F.current=null,_.current=null,t){const r=e.currentTarget,n={originalEvent:e,delta:t};B(t,j.swipeDirection,j.swipeThreshold)?Y("toast.swipeEnd",g,n,{discrete:!0}):Y("toast.swipeCancel",h,n,{discrete:!0}),r.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})})}),j.viewport)})]}):null})),K=t=>{const{__scopeToast:r,children:n,...o}=t,s=C(N,r),[i,a]=e.useState(!1),[d,u]=e.useState(!1);return function(e=(()=>{})){const t=p(e);m((()=>{let e=0,r=0;return e=window.requestAnimationFrame((()=>r=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}}),[t])}((()=>a(!0))),e.useEffect((()=>{const e=window.setTimeout((()=>u(!0)),1e3);return()=>window.clearTimeout(e)}),[]),d?null:w.jsx(c,{asChild:!0,children:w.jsx(v,{...o,children:i&&w.jsxs(w.Fragment,{children:[s.label," ",n]})})})},O=e.forwardRef(((e,t)=>{const{__scopeToast:r,...n}=e;return w.jsx(u.div,{...n,ref:t})}));O.displayName="ToastTitle";var V=e.forwardRef(((e,t)=>{const{__scopeToast:r,...n}=e;return w.jsx(u.div,{...n,ref:t})}));V.displayName="ToastDescription";var $="ToastAction",U=e.forwardRef(((e,t)=>{const{altText:r,...n}=e;return r.trim()?w.jsx(H,{altText:r,asChild:!0,children:w.jsx(q,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${$}\`. Expected non-empty \`string\`.`),null)}));U.displayName=$;var X="ToastClose",q=e.forwardRef(((e,t)=>{const{__scopeToast:n,...o}=e,s=A(X,n);return w.jsx(H,{asChild:!0,children:w.jsx(u.button,{type:"button",...o,ref:t,onClick:r(e.onClick,s.onClose)})})}));q.displayName=X;var H=e.forwardRef(((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return w.jsx(u.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})}));function W(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const r=e.ariaHidden||e.hidden||"none"===e.style.display,n=""===e.dataset.radixToastAnnounceExclude;if(!r)if(n){const r=e.dataset.radixToastAnnounceAlt;r&&t.push(r)}else t.push(...W(e))}})),t}function Y(e,t,r,{discrete:n}){const o=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?l(o,s):o.dispatchEvent(s)}var B=(e,t,r=0)=>{const n=Math.abs(e.x),o=Math.abs(e.y),s=n>o;return"left"===t||"right"===t?s&&n>r:!s&&o>r};function z(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function G(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}var J=j,Q=S,Z=k,ee=O,te=V,re=U;export{re as Action,te as Description,J as Provider,Z as Root,ee as Title,k as Toast,U as ToastAction,q as ToastClose,V as ToastDescription,j as ToastProvider,O as ToastTitle,S as ToastViewport,Q as Viewport,g as createToastScope};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-toast/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/toast/src/Toast.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport * as DismissableLayer from \"@radix-ui/react-dismissable-layer\";\nimport { Portal } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\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 { VisuallyHidden } from \"@radix-ui/react-visually-hidden\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar PROVIDER_NAME = \"ToastProvider\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(\"Toast\");\nvar [createToastContext, createToastScope] = createContextScope(\"Toast\", [createCollectionScope]);\nvar [ToastProviderProvider, useToastProviderContext] = createToastContext(PROVIDER_NAME);\nvar ToastProvider = (props) => {\n const {\n __scopeToast,\n label = \"Notification\",\n duration = 5e3,\n swipeDirection = \"right\",\n swipeThreshold = 50,\n children\n } = props;\n const [viewport, setViewport] = React.useState(null);\n const [toastCount, setToastCount] = React.useState(0);\n const isFocusedToastEscapeKeyDownRef = React.useRef(false);\n const isClosePausedRef = React.useRef(false);\n if (!label.trim()) {\n console.error(\n `Invalid prop \\`label\\` supplied to \\`${PROVIDER_NAME}\\`. Expected non-empty \\`string\\`.`\n );\n }\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: __scopeToast, children: /* @__PURE__ */ jsx(\n ToastProviderProvider,\n {\n scope: __scopeToast,\n label,\n duration,\n swipeDirection,\n swipeThreshold,\n toastCount,\n viewport,\n onViewportChange: setViewport,\n onToastAdd: React.useCallback(() => setToastCount((prevCount) => prevCount + 1), []),\n onToastRemove: React.useCallback(() => setToastCount((prevCount) => prevCount - 1), []),\n isFocusedToastEscapeKeyDownRef,\n isClosePausedRef,\n children\n }\n ) });\n};\nToastProvider.displayName = PROVIDER_NAME;\nvar VIEWPORT_NAME = \"ToastViewport\";\nvar VIEWPORT_DEFAULT_HOTKEY = [\"F8\"];\nvar VIEWPORT_PAUSE = \"toast.viewportPause\";\nvar VIEWPORT_RESUME = \"toast.viewportResume\";\nvar ToastViewport = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeToast,\n hotkey = VIEWPORT_DEFAULT_HOTKEY,\n label = \"Notifications ({hotkey})\",\n ...viewportProps\n } = props;\n const context = useToastProviderContext(VIEWPORT_NAME, __scopeToast);\n const getItems = useCollection(__scopeToast);\n const wrapperRef = React.useRef(null);\n const headFocusProxyRef = React.useRef(null);\n const tailFocusProxyRef = React.useRef(null);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref, context.onViewportChange);\n const hotkeyLabel = hotkey.join(\"+\").replace(/Key/g, \"\").replace(/Digit/g, \"\");\n const hasToasts = context.toastCount > 0;\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n const isHotkeyPressed = hotkey.every((key) => event[key] || event.code === key);\n if (isHotkeyPressed) ref.current?.focus();\n };\n document.addEventListener(\"keydown\", handleKeyDown);\n return () => document.removeEventListener(\"keydown\", handleKeyDown);\n }, [hotkey]);\n React.useEffect(() => {\n const wrapper = wrapperRef.current;\n const viewport = ref.current;\n if (hasToasts && wrapper && viewport) {\n const handlePause = () => {\n if (!context.isClosePausedRef.current) {\n const pauseEvent = new CustomEvent(VIEWPORT_PAUSE);\n viewport.dispatchEvent(pauseEvent);\n context.isClosePausedRef.current = true;\n }\n };\n const handleResume = () => {\n if (context.isClosePausedRef.current) {\n const resumeEvent = new CustomEvent(VIEWPORT_RESUME);\n viewport.dispatchEvent(resumeEvent);\n context.isClosePausedRef.current = false;\n }\n };\n const handleFocusOutResume = (event) => {\n const isFocusMovingOutside = !wrapper.contains(event.relatedTarget);\n if (isFocusMovingOutside) handleResume();\n };\n const handlePointerLeaveResume = () => {\n const isFocusInside = wrapper.contains(document.activeElement);\n if (!isFocusInside) handleResume();\n };\n wrapper.addEventListener(\"focusin\", handlePause);\n wrapper.addEventListener(\"focusout\", handleFocusOutResume);\n wrapper.addEventListener(\"pointermove\", handlePause);\n wrapper.addEventListener(\"pointerleave\", handlePointerLeaveResume);\n window.addEventListener(\"blur\", handlePause);\n window.addEventListener(\"focus\", handleResume);\n return () => {\n wrapper.removeEventListener(\"focusin\", handlePause);\n wrapper.removeEventListener(\"focusout\", handleFocusOutResume);\n wrapper.removeEventListener(\"pointermove\", handlePause);\n wrapper.removeEventListener(\"pointerleave\", handlePointerLeaveResume);\n window.removeEventListener(\"blur\", handlePause);\n window.removeEventListener(\"focus\", handleResume);\n };\n }\n }, [hasToasts, context.isClosePausedRef]);\n const getSortedTabbableCandidates = React.useCallback(\n ({ tabbingDirection }) => {\n const toastItems = getItems();\n const tabbableCandidates = toastItems.map((toastItem) => {\n const toastNode = toastItem.ref.current;\n const toastTabbableCandidates = [toastNode, ...getTabbableCandidates(toastNode)];\n return tabbingDirection === \"forwards\" ? toastTabbableCandidates : toastTabbableCandidates.reverse();\n });\n return (tabbingDirection === \"forwards\" ? tabbableCandidates.reverse() : tabbableCandidates).flat();\n },\n [getItems]\n );\n React.useEffect(() => {\n const viewport = ref.current;\n if (viewport) {\n const handleKeyDown = (event) => {\n const isMetaKey = event.altKey || event.ctrlKey || event.metaKey;\n const isTabKey = event.key === \"Tab\" && !isMetaKey;\n if (isTabKey) {\n const focusedElement = document.activeElement;\n const isTabbingBackwards = event.shiftKey;\n const targetIsViewport = event.target === viewport;\n if (targetIsViewport && isTabbingBackwards) {\n headFocusProxyRef.current?.focus();\n return;\n }\n const tabbingDirection = isTabbingBackwards ? \"backwards\" : \"forwards\";\n const sortedCandidates = getSortedTabbableCandidates({ tabbingDirection });\n const index = sortedCandidates.findIndex((candidate) => candidate === focusedElement);\n if (focusFirst(sortedCandidates.slice(index + 1))) {\n event.preventDefault();\n } else {\n isTabbingBackwards ? headFocusProxyRef.current?.focus() : tailFocusProxyRef.current?.focus();\n }\n }\n };\n viewport.addEventListener(\"keydown\", handleKeyDown);\n return () => viewport.removeEventListener(\"keydown\", handleKeyDown);\n }\n }, [getItems, getSortedTabbableCandidates]);\n return /* @__PURE__ */ jsxs(\n DismissableLayer.Branch,\n {\n ref: wrapperRef,\n role: \"region\",\n \"aria-label\": label.replace(\"{hotkey}\", hotkeyLabel),\n tabIndex: -1,\n style: { pointerEvents: hasToasts ? void 0 : \"none\" },\n children: [\n hasToasts && /* @__PURE__ */ jsx(\n FocusProxy,\n {\n ref: headFocusProxyRef,\n onFocusFromOutsideViewport: () => {\n const tabbableCandidates = getSortedTabbableCandidates({\n tabbingDirection: \"forwards\"\n });\n focusFirst(tabbableCandidates);\n }\n }\n ),\n /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeToast, children: /* @__PURE__ */ jsx(Primitive.ol, { tabIndex: -1, ...viewportProps, ref: composedRefs }) }),\n hasToasts && /* @__PURE__ */ jsx(\n FocusProxy,\n {\n ref: tailFocusProxyRef,\n onFocusFromOutsideViewport: () => {\n const tabbableCandidates = getSortedTabbableCandidates({\n tabbingDirection: \"backwards\"\n });\n focusFirst(tabbableCandidates);\n }\n }\n )\n ]\n }\n );\n }\n);\nToastViewport.displayName = VIEWPORT_NAME;\nvar FOCUS_PROXY_NAME = \"ToastFocusProxy\";\nvar FocusProxy = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeToast, onFocusFromOutsideViewport, ...proxyProps } = props;\n const context = useToastProviderContext(FOCUS_PROXY_NAME, __scopeToast);\n return /* @__PURE__ */ jsx(\n VisuallyHidden,\n {\n \"aria-hidden\": true,\n tabIndex: 0,\n ...proxyProps,\n ref: forwardedRef,\n style: { position: \"fixed\" },\n onFocus: (event) => {\n const prevFocusedElement = event.relatedTarget;\n const isFocusFromOutsideViewport = !context.viewport?.contains(prevFocusedElement);\n if (isFocusFromOutsideViewport) onFocusFromOutsideViewport();\n }\n }\n );\n }\n);\nFocusProxy.displayName = FOCUS_PROXY_NAME;\nvar TOAST_NAME = \"Toast\";\nvar TOAST_SWIPE_START = \"toast.swipeStart\";\nvar TOAST_SWIPE_MOVE = \"toast.swipeMove\";\nvar TOAST_SWIPE_CANCEL = \"toast.swipeCancel\";\nvar TOAST_SWIPE_END = \"toast.swipeEnd\";\nvar Toast = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, open: openProp, defaultOpen, onOpenChange, ...toastProps } = props;\n const [open = true, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || open, children: /* @__PURE__ */ jsx(\n ToastImpl,\n {\n open,\n ...toastProps,\n ref: forwardedRef,\n onClose: () => setOpen(false),\n onPause: useCallbackRef(props.onPause),\n onResume: useCallbackRef(props.onResume),\n onSwipeStart: composeEventHandlers(props.onSwipeStart, (event) => {\n event.currentTarget.setAttribute(\"data-swipe\", \"start\");\n }),\n onSwipeMove: composeEventHandlers(props.onSwipeMove, (event) => {\n const { x, y } = event.detail.delta;\n event.currentTarget.setAttribute(\"data-swipe\", \"move\");\n event.currentTarget.style.setProperty(\"--radix-toast-swipe-move-x\", `${x}px`);\n event.currentTarget.style.setProperty(\"--radix-toast-swipe-move-y\", `${y}px`);\n }),\n onSwipeCancel: composeEventHandlers(props.onSwipeCancel, (event) => {\n event.currentTarget.setAttribute(\"data-swipe\", \"cancel\");\n event.currentTarget.style.removeProperty(\"--radix-toast-swipe-move-x\");\n event.currentTarget.style.removeProperty(\"--radix-toast-swipe-move-y\");\n event.currentTarget.style.removeProperty(\"--radix-toast-swipe-end-x\");\n event.currentTarget.style.removeProperty(\"--radix-toast-swipe-end-y\");\n }),\n onSwipeEnd: composeEventHandlers(props.onSwipeEnd, (event) => {\n const { x, y } = event.detail.delta;\n event.currentTarget.setAttribute(\"data-swipe\", \"end\");\n event.currentTarget.style.removeProperty(\"--radix-toast-swipe-move-x\");\n event.currentTarget.style.removeProperty(\"--radix-toast-swipe-move-y\");\n event.currentTarget.style.setProperty(\"--radix-toast-swipe-end-x\", `${x}px`);\n event.currentTarget.style.setProperty(\"--radix-toast-swipe-end-y\", `${y}px`);\n setOpen(false);\n })\n }\n ) });\n }\n);\nToast.displayName = TOAST_NAME;\nvar [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(TOAST_NAME, {\n onClose() {\n }\n});\nvar ToastImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeToast,\n type = \"foreground\",\n duration: durationProp,\n open,\n onClose,\n onEscapeKeyDown,\n onPause,\n onResume,\n onSwipeStart,\n onSwipeMove,\n onSwipeCancel,\n onSwipeEnd,\n ...toastProps\n } = props;\n const context = useToastProviderContext(TOAST_NAME, __scopeToast);\n const [node, setNode] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));\n const pointerStartRef = React.useRef(null);\n const swipeDeltaRef = React.useRef(null);\n const duration = durationProp || context.duration;\n const closeTimerStartTimeRef = React.useRef(0);\n const closeTimerRemainingTimeRef = React.useRef(duration);\n const closeTimerRef = React.useRef(0);\n const { onToastAdd, onToastRemove } = context;\n const handleClose = useCallbackRef(() => {\n const isFocusInToast = node?.contains(document.activeElement);\n if (isFocusInToast) context.viewport?.focus();\n onClose();\n });\n const startTimer = React.useCallback(\n (duration2) => {\n if (!duration2 || duration2 === Infinity) return;\n window.clearTimeout(closeTimerRef.current);\n closeTimerStartTimeRef.current = (/* @__PURE__ */ new Date()).getTime();\n closeTimerRef.current = window.setTimeout(handleClose, duration2);\n },\n [handleClose]\n );\n React.useEffect(() => {\n const viewport = context.viewport;\n if (viewport) {\n const handleResume = () => {\n startTimer(closeTimerRemainingTimeRef.current);\n onResume?.();\n };\n const handlePause = () => {\n const elapsedTime = (/* @__PURE__ */ new Date()).getTime() - closeTimerStartTimeRef.current;\n closeTimerRemainingTimeRef.current = closeTimerRemainingTimeRef.current - elapsedTime;\n window.clearTimeout(closeTimerRef.current);\n onPause?.();\n };\n viewport.addEventListener(VIEWPORT_PAUSE, handlePause);\n viewport.addEventListener(VIEWPORT_RESUME, handleResume);\n return () => {\n viewport.removeEventListener(VIEWPORT_PAUSE, handlePause);\n viewport.removeEventListener(VIEWPORT_RESUME, handleResume);\n };\n }\n }, [context.viewport, duration, onPause, onResume, startTimer]);\n React.useEffect(() => {\n if (open && !context.isClosePausedRef.current) startTimer(duration);\n }, [open, duration, context.isClosePausedRef, startTimer]);\n React.useEffect(() => {\n onToastAdd();\n return () => onToastRemove();\n }, [onToastAdd, onToastRemove]);\n const announceTextContent = React.useMemo(() => {\n return node ? getAnnounceTextContent(node) : null;\n }, [node]);\n if (!context.viewport) return null;\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n announceTextContent && /* @__PURE__ */ jsx(\n ToastAnnounce,\n {\n __scopeToast,\n role: \"status\",\n \"aria-live\": type === \"foreground\" ? \"assertive\" : \"polite\",\n \"aria-atomic\": true,\n children: announceTextContent\n }\n ),\n /* @__PURE__ */ jsx(ToastInteractiveProvider, { scope: __scopeToast, onClose: handleClose, children: ReactDOM.createPortal(\n /* @__PURE__ */ jsx(Collection.ItemSlot, { scope: __scopeToast, children: /* @__PURE__ */ jsx(\n DismissableLayer.Root,\n {\n asChild: true,\n onEscapeKeyDown: composeEventHandlers(onEscapeKeyDown, () => {\n if (!context.isFocusedToastEscapeKeyDownRef.current) handleClose();\n context.isFocusedToastEscapeKeyDownRef.current = false;\n }),\n children: /* @__PURE__ */ jsx(\n Primitive.li,\n {\n role: \"status\",\n \"aria-live\": \"off\",\n \"aria-atomic\": true,\n tabIndex: 0,\n \"data-state\": open ? \"open\" : \"closed\",\n \"data-swipe-direction\": context.swipeDirection,\n ...toastProps,\n ref: composedRefs,\n style: { userSelect: \"none\", touchAction: \"none\", ...props.style },\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key !== \"Escape\") return;\n onEscapeKeyDown?.(event.nativeEvent);\n if (!event.nativeEvent.defaultPrevented) {\n context.isFocusedToastEscapeKeyDownRef.current = true;\n handleClose();\n }\n }),\n onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n if (event.button !== 0) return;\n pointerStartRef.current = { x: event.clientX, y: event.clientY };\n }),\n onPointerMove: composeEventHandlers(props.onPointerMove, (event) => {\n if (!pointerStartRef.current) return;\n const x = event.clientX - pointerStartRef.current.x;\n const y = event.clientY - pointerStartRef.current.y;\n const hasSwipeMoveStarted = Boolean(swipeDeltaRef.current);\n const isHorizontalSwipe = [\"left\", \"right\"].includes(context.swipeDirection);\n const clamp = [\"left\", \"up\"].includes(context.swipeDirection) ? Math.min : Math.max;\n const clampedX = isHorizontalSwipe ? clamp(0, x) : 0;\n const clampedY = !isHorizontalSwipe ? clamp(0, y) : 0;\n const moveStartBuffer = event.pointerType === \"touch\" ? 10 : 2;\n const delta = { x: clampedX, y: clampedY };\n const eventDetail = { originalEvent: event, delta };\n if (hasSwipeMoveStarted) {\n swipeDeltaRef.current = delta;\n handleAndDispatchCustomEvent(TOAST_SWIPE_MOVE, onSwipeMove, eventDetail, {\n discrete: false\n });\n } else if (isDeltaInDirection(delta, context.swipeDirection, moveStartBuffer)) {\n swipeDeltaRef.current = delta;\n handleAndDispatchCustomEvent(TOAST_SWIPE_START, onSwipeStart, eventDetail, {\n discrete: false\n });\n event.target.setPointerCapture(event.pointerId);\n } else if (Math.abs(x) > moveStartBuffer || Math.abs(y) > moveStartBuffer) {\n pointerStartRef.current = null;\n }\n }),\n onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {\n const delta = swipeDeltaRef.current;\n const target = event.target;\n if (target.hasPointerCapture(event.pointerId)) {\n target.releasePointerCapture(event.pointerId);\n }\n swipeDeltaRef.current = null;\n pointerStartRef.current = null;\n if (delta) {\n const toast = event.currentTarget;\n const eventDetail = { originalEvent: event, delta };\n if (isDeltaInDirection(delta, context.swipeDirection, context.swipeThreshold)) {\n handleAndDispatchCustomEvent(TOAST_SWIPE_END, onSwipeEnd, eventDetail, {\n discrete: true\n });\n } else {\n handleAndDispatchCustomEvent(\n TOAST_SWIPE_CANCEL,\n onSwipeCancel,\n eventDetail,\n {\n discrete: true\n }\n );\n }\n toast.addEventListener(\"click\", (event2) => event2.preventDefault(), {\n once: true\n });\n }\n })\n }\n )\n }\n ) }),\n context.viewport\n ) })\n ] });\n }\n);\nvar ToastAnnounce = (props) => {\n const { __scopeToast, children, ...announceProps } = props;\n const context = useToastProviderContext(TOAST_NAME, __scopeToast);\n const [renderAnnounceText, setRenderAnnounceText] = React.useState(false);\n const [isAnnounced, setIsAnnounced] = React.useState(false);\n useNextFrame(() => setRenderAnnounceText(true));\n React.useEffect(() => {\n const timer = window.setTimeout(() => setIsAnnounced(true), 1e3);\n return () => window.clearTimeout(timer);\n }, []);\n return isAnnounced ? null : /* @__PURE__ */ jsx(Portal, { asChild: true, children: /* @__PURE__ */ jsx(VisuallyHidden, { ...announceProps, children: renderAnnounceText && /* @__PURE__ */ jsxs(Fragment, { children: [\n context.label,\n \" \",\n children\n ] }) }) });\n};\nvar TITLE_NAME = \"ToastTitle\";\nvar ToastTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeToast, ...titleProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { ...titleProps, ref: forwardedRef });\n }\n);\nToastTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"ToastDescription\";\nvar ToastDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeToast, ...descriptionProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { ...descriptionProps, ref: forwardedRef });\n }\n);\nToastDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"ToastAction\";\nvar ToastAction = React.forwardRef(\n (props, forwardedRef) => {\n const { altText, ...actionProps } = props;\n if (!altText.trim()) {\n console.error(\n `Invalid prop \\`altText\\` supplied to \\`${ACTION_NAME}\\`. Expected non-empty \\`string\\`.`\n );\n return null;\n }\n return /* @__PURE__ */ jsx(ToastAnnounceExclude, { altText, asChild: true, children: /* @__PURE__ */ jsx(ToastClose, { ...actionProps, ref: forwardedRef }) });\n }\n);\nToastAction.displayName = ACTION_NAME;\nvar CLOSE_NAME = \"ToastClose\";\nvar ToastClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeToast, ...closeProps } = props;\n const interactiveContext = useToastInteractiveContext(CLOSE_NAME, __scopeToast);\n return /* @__PURE__ */ jsx(ToastAnnounceExclude, { asChild: true, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, interactiveContext.onClose)\n }\n ) });\n }\n);\nToastClose.displayName = CLOSE_NAME;\nvar ToastAnnounceExclude = React.forwardRef((props, forwardedRef) => {\n const { __scopeToast, altText, ...announceExcludeProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-radix-toast-announce-exclude\": \"\",\n \"data-radix-toast-announce-alt\": altText || void 0,\n ...announceExcludeProps,\n ref: forwardedRef\n }\n );\n});\nfunction getAnnounceTextContent(container) {\n const textContent = [];\n const childNodes = Array.from(container.childNodes);\n childNodes.forEach((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent) textContent.push(node.textContent);\n if (isHTMLElement(node)) {\n const isHidden = node.ariaHidden || node.hidden || node.style.display === \"none\";\n const isExcluded = node.dataset.radixToastAnnounceExclude === \"\";\n if (!isHidden) {\n if (isExcluded) {\n const altText = node.dataset.radixToastAnnounceAlt;\n if (altText) textContent.push(altText);\n } else {\n textContent.push(...getAnnounceTextContent(node));\n }\n }\n }\n });\n return textContent;\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const currentTarget = detail.originalEvent.currentTarget;\n const event = new CustomEvent(name, { bubbles: true, cancelable: true, detail });\n if (handler) currentTarget.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(currentTarget, event);\n } else {\n currentTarget.dispatchEvent(event);\n }\n}\nvar isDeltaInDirection = (delta, direction, threshold = 0) => {\n const deltaX = Math.abs(delta.x);\n const deltaY = Math.abs(delta.y);\n const isDeltaX = deltaX > deltaY;\n if (direction === \"left\" || direction === \"right\") {\n return isDeltaX && deltaX > threshold;\n } else {\n return !isDeltaX && deltaY > threshold;\n }\n};\nfunction useNextFrame(callback = () => {\n}) {\n const fn = useCallbackRef(callback);\n useLayoutEffect(() => {\n let raf1 = 0;\n let raf2 = 0;\n raf1 = window.requestAnimationFrame(() => raf2 = window.requestAnimationFrame(fn));\n return () => {\n window.cancelAnimationFrame(raf1);\n window.cancelAnimationFrame(raf2);\n };\n }, [fn]);\n}\nfunction isHTMLElement(node) {\n return node.nodeType === node.ELEMENT_NODE;\n}\nfunction getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node) => {\n const isHiddenInput = node.tagName === \"INPUT\" && node.type === \"hidden\";\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while (walker.nextNode()) nodes.push(walker.currentNode);\n return nodes;\n}\nfunction focusFirst(candidates) {\n const previouslyFocusedElement = document.activeElement;\n return candidates.some((candidate) => {\n if (candidate === previouslyFocusedElement) return true;\n candidate.focus();\n return document.activeElement !== previouslyFocusedElement;\n });\n}\nvar Provider = ToastProvider;\nvar Viewport = ToastViewport;\nvar Root2 = Toast;\nvar Title = ToastTitle;\nvar Description = ToastDescription;\nvar Action = ToastAction;\nvar Close = ToastClose;\nexport {\n Action,\n Close,\n Description,\n Provider,\n Root2 as Root,\n Title,\n Toast,\n ToastAction,\n ToastClose,\n ToastDescription,\n ToastProvider,\n ToastTitle,\n ToastViewport,\n Viewport,\n createToastScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["PROVIDER_NAME","Collection","useCollection","createCollectionScope","createCollection","createToastContext","createToastScope","createContextScope","ToastProviderProvider","useToastProviderContext","ToastProvider","props","__scopeToast","label","duration","swipeDirection","swipeThreshold","children","viewport","setViewport","React","useState","toastCount","setToastCount","isFocusedToastEscapeKeyDownRef","useRef","isClosePausedRef","trim","console","error","jsx","Provider","scope","onViewportChange","onToastAdd","useCallback","prevCount","onToastRemove","displayName","VIEWPORT_NAME","VIEWPORT_DEFAULT_HOTKEY","VIEWPORT_PAUSE","VIEWPORT_RESUME","ToastViewport","forwardRef","forwardedRef","hotkey","viewportProps","context","getItems","wrapperRef","headFocusProxyRef","tailFocusProxyRef","ref","composedRefs","useComposedRefs","hotkeyLabel","join","replace","hasToasts","useEffect","handleKeyDown","event","every","key","code","current","focus","document","addEventListener","removeEventListener","wrapper","handlePause","pauseEvent","CustomEvent","dispatchEvent","handleResume","resumeEvent","handleFocusOutResume","contains","relatedTarget","handlePointerLeaveResume","activeElement","window","getSortedTabbableCandidates","tabbingDirection","tabbableCandidates","map","toastItem","toastNode","toastTabbableCandidates","getTabbableCandidates","reverse","flat","isMetaKey","altKey","ctrlKey","metaKey","focusedElement","isTabbingBackwards","shiftKey","target","sortedCandidates","index","findIndex","candidate","focusFirst","slice","preventDefault","jsxs","DismissableLayer.Branch","role","tabIndex","style","pointerEvents","FocusProxy","onFocusFromOutsideViewport","Slot","Primitive","ol","FOCUS_PROXY_NAME","proxyProps","VisuallyHidden","position","onFocus","prevFocusedElement","TOAST_NAME","Toast","forceMount","open","openProp","defaultOpen","onOpenChange","toastProps","setOpen","useControllableState","prop","defaultProp","onChange","Presence","present","ToastImpl","onClose","onPause","useCallbackRef","onResume","onSwipeStart","composeEventHandlers","currentTarget","setAttribute","onSwipeMove","x","y","detail","delta","setProperty","onSwipeCancel","removeProperty","onSwipeEnd","ToastInteractiveProvider","useToastInteractiveContext","type","durationProp","onEscapeKeyDown","node","setNode","node2","pointerStartRef","swipeDeltaRef","closeTimerStartTimeRef","closeTimerRemainingTimeRef","closeTimerRef","handleClose","isFocusInToast","startTimer","duration2","Infinity","clearTimeout","Date","getTime","setTimeout","elapsedTime","announceTextContent","useMemo","getAnnounceTextContent","Fragment","ToastAnnounce","ReactDOM","createPortal","ItemSlot","DismissableLayer.Root","asChild","li","userSelect","touchAction","onKeyDown","nativeEvent","defaultPrevented","onPointerDown","button","clientX","clientY","onPointerMove","hasSwipeMoveStarted","Boolean","isHorizontalSwipe","includes","clamp","Math","min","max","clampedX","clampedY","moveStartBuffer","pointerType","eventDetail","originalEvent","handleAndDispatchCustomEvent","discrete","isDeltaInDirection","setPointerCapture","pointerId","abs","onPointerUp","hasPointerCapture","releasePointerCapture","toast","event2","once","announceProps","renderAnnounceText","setRenderAnnounceText","isAnnounced","setIsAnnounced","callback","fn","useLayoutEffect","raf1","raf2","requestAnimationFrame","cancelAnimationFrame","useNextFrame","timer","Portal","ToastTitle","titleProps","div","ToastDescription","descriptionProps","ACTION_NAME","ToastAction","altText","actionProps","ToastAnnounceExclude","ToastClose","CLOSE_NAME","closeProps","interactiveContext","onClick","announceExcludeProps","container","textContent","Array","from","childNodes","forEach","nodeType","TEXT_NODE","push","ELEMENT_NODE","isHTMLElement","isHidden","ariaHidden","hidden","display","isExcluded","dataset","radixToastAnnounceExclude","radixToastAnnounceAlt","name","handler","bubbles","cancelable","dispatchDiscreteCustomEvent","direction","threshold","deltaX","deltaY","isDeltaX","nodes","walker","createTreeWalker","NodeFilter","SHOW_ELEMENT","acceptNode","isHiddenInput","tagName","disabled","FILTER_SKIP","FILTER_ACCEPT","nextNode","currentNode","candidates","previouslyFocusedElement","some","Viewport","Root2","Title","Description","Action"],"mappings":"2/BAkBA,IAAIA,EAAgB,iBACfC,EAAYC,EAAeC,GAAyBC,EAAiB,UACrEC,EAAoBC,GAAoBC,EAAmB,QAAS,CAACJ,KACrEK,EAAuBC,GAA2BJ,EAAmBL,GACtEU,EAAiBC,IACnB,MAAMC,aACJA,EAAYC,MACZA,EAAQ,eAAcC,SACtBA,EAAW,IAAGC,eACdA,EAAiB,QAAOC,eACxBA,EAAiB,GAAEC,SACnBA,GACEN,GACGO,EAAUC,GAAeC,EAAMC,SAAS,OACxCC,EAAYC,GAAiBH,EAAMC,SAAS,GAC7CG,EAAiCJ,EAAMK,QAAO,GAC9CC,EAAmBN,EAAMK,QAAO,GAMtC,OALKZ,EAAMc,QACTC,QAAQC,MACN,wCAAwC7B,uCAGrB8B,EAAAA,IAAI7B,EAAW8B,SAAU,CAAEC,MAAOpB,EAAcK,SAA0Ba,EAAGA,IAClGtB,EACA,CACEwB,MAAOpB,EACPC,QACAC,WACAC,iBACAC,iBACAM,aACAJ,WACAe,iBAAkBd,EAClBe,WAAYd,EAAMe,aAA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AM,IAC/DV,EACFiE,EAA4BvI,EAAetF,GAE3CsF,EAAczE,cAAcb,EAEhC,CACA,IAAI6J,EAAqB,CAACjE,EAAOkI,EAAWC,EAAY,KACtD,MAAMC,EAAS9E,KAAKc,IAAIpE,EAAMH,GACxBwI,EAAS/E,KAAKc,IAAIpE,EAAMF,GACxBwI,EAAWF,EAASC,EAC1B,MAAkB,SAAdH,GAAsC,UAAdA,EACnBI,GAAYF,EAASD,GAEpBG,GAAYD,EAASF,CAC9B,EAkBH,SAASlM,EAAsByK,GAC7B,MAAM6B,EAAQ,GACRC,EAAS9N,SAAS+N,iBAAiB/B,EAAWgC,WAAWC,aAAc,CAC3EC,WAAalI,IACX,MAAMmI,EAAiC,UAAjBnI,EAAKoI,SAAqC,WAAdpI,EAAKH,KACvD,OAAIG,EAAKqI,UAAYrI,EAAK6G,QAAUsB,EAAsBH,WAAWM,YAC9DtI,EAAKpD,UAAY,EAAIoL,WAAWO,cAAgBP,WAAWM,WAAW,IAGjF,KAAOR,EAAOU,YAAYX,EAAMrB,KAAKsB,EAAOW,aAC5C,OAAOZ,CACT,CACA,SAASvL,EAAWoM,GAClB,MAAMC,EAA2B3O,SAASc,cAC1C,OAAO4N,EAAWE,MAAMvM,GAClBA,IAAcsM,IAClBtM,EAAUtC,QACHC,SAASc,gBAAkB6N,IAEtC,CACG,IAAChR,EAAWrB,EACXuS,EAAWtQ,EACXuQ,EAAQnL,EACRoL,GAAQ/D,EACRgE,GAAc7D,EACd8D,GAAS3D"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import*as e from"react";import{composeEventHandlers as r}from"../../primitive/dist/index.mjs";import{useControllableState as t}from"../../react-use-controllable-state/dist/index.mjs";import{Primitive as a}from"../../react-primitive/dist/index.mjs";import{j as i}from"../../../../_virtual/jsx-runtime.mjs";var o=e.forwardRef(((e,o)=>{const{pressed:s,defaultPressed:d=!1,onPressedChange:m,...n}=e,[p=!1,l]=t({prop:s,onChange:m,defaultProp:d});return i.jsx(a.button,{type:"button","aria-pressed":p,"data-state":p?"on":"off","data-disabled":e.disabled?"":void 0,...n,ref:o,onClick:r(e.onClick,(()=>{e.disabled||l(!p)}))})}));o.displayName="Toggle";var s=o;export{s as Root,o as Toggle};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-toggle/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/toggle/src/Toggle.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Toggle\";\nvar Toggle = React.forwardRef((props, forwardedRef) => {\n const { pressed: pressedProp, defaultPressed = false, onPressedChange, ...buttonProps } = props;\n const [pressed = false, setPressed] = useControllableState({\n prop: pressedProp,\n onChange: onPressedChange,\n defaultProp: defaultPressed\n });\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-pressed\": pressed,\n \"data-state\": pressed ? \"on\" : \"off\",\n \"data-disabled\": props.disabled ? \"\" : void 0,\n ...buttonProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => {\n if (!props.disabled) {\n setPressed(!pressed);\n }\n })\n }\n );\n});\nToggle.displayName = NAME;\nvar Root = Toggle;\nexport {\n Root,\n Toggle\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Toggle","React","forwardRef","props","forwardedRef","pressed","pressedProp","defaultPressed","onPressedChange","buttonProps","setPressed","useControllableState","prop","onChange","defaultProp","jsx","Primitive","button","type","disabled","ref","onClick","composeEventHandlers","displayName","Root"],"mappings":"iTAQA,IACIA,EAASC,EAAMC,YAAW,CAACC,EAAOC,KACpC,MAAQC,QAASC,EAAWC,eAAEA,GAAiB,EAAKC,gBAAEA,KAAoBC,GAAgBN,GACnFE,GAAU,EAAOK,GAAcC,EAAqB,CACzDC,KAAMN,EACNO,SAAUL,EACVM,YAAaP,IAEf,OAAuBQ,EAAGA,IACxBC,EAAUC,OACV,CACEC,KAAM,SACN,eAAgBb,EAChB,aAAcA,EAAU,KAAO,MAC/B,gBAAiBF,EAAMgB,SAAW,QAAK,KACpCV,EACHW,IAAKhB,EACLiB,QAASC,EAAqBnB,EAAMkB,SAAS,KACtClB,EAAMgB,UACTT,GAAYL,EACb,KAGN,IAEHL,EAAOuB,YAzBI,SA0BR,IAACC,EAAOxB"}
|