@optiaxiom/web-components 0.10.4 → 0.10.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DataTableAction/package.json +4 -0
- package/DataTableCheckbox/package.json +4 -0
- package/DataTableLabel/package.json +4 -0
- package/dist/ActionsRoot-dUQyKesg.js +1 -0
- package/dist/AlertDialogContext-Ct81gaUm.js +1 -0
- package/dist/AngleMenuButton-DxrxD0R2.js +1 -0
- package/dist/Avatar-WyRgRjj2.js +1 -0
- package/dist/AvatarContext-DUBbU1AY.js +1 -0
- package/dist/AvatarGroup-CXJWOJ8L.js +1 -0
- package/dist/AvatarGroup.css.ts.vanilla-1mT-GBsC-BIr5RgGt.js +1 -0
- package/dist/Backdrop-DtAfk8Wy.js +1 -0
- package/dist/Badge-GzNRigkc.js +1 -0
- package/dist/Box-sR8sK0mu.js +1 -0
- package/dist/{Button-BRObsRfm.js → Button-vC44q_eL.js} +1 -1
- package/dist/ButtonContext-BcfxD3vy.js +1 -0
- package/dist/ButtonGroup-D-YcTQr0.js +1 -0
- package/dist/ButtonRoot-CcSSB9m_.js +1 -0
- package/dist/Calendar-DsvAuq5x.js +1 -0
- package/dist/Checkbox-D-dGLmoN.js +1 -0
- package/dist/Combination-DMaTcBzD.js +41 -0
- package/dist/Cover-BxCWMk9U.js +1 -0
- package/dist/DataTableAction-SxW-zMZl.js +1 -0
- package/dist/DataTableContext-7xYeiG7c.js +1 -0
- package/dist/DataTableRowContext-B8gm6Z86.js +1 -0
- package/dist/DateRangePickerContext-G4rIw6l8.js +1 -0
- package/dist/DialogContext-Ds4KtQj2.js +1 -0
- package/dist/{Disclosure-DL_mlUOs.js → Disclosure-CP8UAq1e.js} +1 -1
- package/dist/DisclosureContent-tf2CTqFF.js +1 -0
- package/dist/{DisclosureContext-Cu1BrQoU.js → DisclosureContext-ClVQznRI.js} +1 -1
- package/dist/DisclosureTrigger-DZVJ3Jur.js +1 -0
- package/dist/DropdownMenuContext-DthdqBuE.js +1 -0
- package/dist/DropdownMenuNestedContext-CHTh_GrT.js +1 -0
- package/dist/DropdownMenuSubContext-Cl07P7Df.js +1 -0
- package/dist/{FieldContext-CLX3DEBL.js → FieldContext-D6PdU-Gy.js} +1 -1
- package/dist/{FieldLabel-BbiTIYRm.js → FieldLabel-DJCg5I85.js} +1 -1
- package/dist/{FilteredSlot-BmJIrxpw.js → FilteredSlot-CJcITmdU.js} +1 -1
- package/dist/{Flex-C_afLxlo.js → Flex-CKxmQLA9.js} +1 -1
- package/dist/{Heading-B7BpLaio.js → Heading-CdAql_w7.js} +1 -1
- package/dist/Icon-CYyupOkK.js +1 -0
- package/dist/IconAngleDown-BFJn2oKD.js +1 -0
- package/dist/{IconAngleRight-yT4UjjIa.js → IconAngleRight-B2lDfHc4.js} +1 -1
- package/dist/{IconCalendar-zFBIFTV2.js → IconCalendar-CAe4AsOM.js} +1 -1
- package/dist/{IconCircleInfoSolid-DeIX_yeB.js → IconCircleInfoSolid-CCkkMrKU.js} +1 -1
- package/dist/{IconEllipsis-CpO2OvaB.js → IconEllipsis-BAlJjg1d.js} +1 -1
- package/dist/{IconTriangleExclamationSolid-CyHyD38E.js → IconTriangleExclamationSolid-DDLt0yx8.js} +1 -1
- package/dist/{IconX-hwIqrxVU.js → IconX-CCh6ahMV.js} +1 -1
- package/dist/Input-D7vtLlOI.js +1 -0
- package/dist/InputAddon-hcRosOK6.js +1 -0
- package/dist/InputContext-Bnso09l6.js +1 -0
- package/dist/InputControl-CR9YGI3Q.js +1 -0
- package/dist/InputControl.css.ts.vanilla-u-VlisWS-A47ZxP28.js +1 -0
- package/dist/InputRoot-CwNVPIYi.js +1 -0
- package/dist/{Listbox-B1e2Lem8.js → Listbox-CUJmY3bK.js} +1 -1
- package/dist/ListboxCheckboxItem-CZpNCJOx.js +1 -0
- package/dist/{ListboxEmpty-L82AaZTK.js → ListboxEmpty-BbZ46UIh.js} +1 -1
- package/dist/{ListboxFooter-B-UYrGQE.js → ListboxFooter-DSFaJeHR.js} +1 -1
- package/dist/ListboxGroup-ZPVP7cnB.js +1 -0
- package/dist/ListboxGroupContext-D4v_Esn6.js +1 -0
- package/dist/ListboxItem-BFynmTzu.js +1 -0
- package/dist/ListboxItemIndicator-DG_hxrg5.js +1 -0
- package/dist/{ListboxItemized-CZEjCGkZ.js → ListboxItemized-BlZjHEqc.js} +1 -1
- package/dist/ListboxLabel-Bp0ZgYmZ.js +1 -0
- package/dist/{ListboxRadioItem-jN79KnHi.js → ListboxRadioItem-CDosZ7xE.js} +1 -1
- package/dist/ListboxSeparator-CxQ-ASzj.js +1 -0
- package/dist/{ListboxSwitchItem-BNhV0G0-.js → ListboxSwitchItem-CadIb6RH.js} +1 -1
- package/dist/ModalContext-Cu4Mlg7R.js +1 -0
- package/dist/{ModalLayer-Dv1VVmST.js → ModalLayer-Cr9ziVvc.js} +1 -1
- package/dist/ModalListbox-CzBpTlO0.js +9 -0
- package/dist/Nav-BhZgFdXE.js +1 -0
- package/dist/NavAccountItem-BgH4Yw5v.js +1 -0
- package/dist/{NavBody-QIhGBXXs.js → NavBody-DCp2AeXT.js} +1 -1
- package/dist/NavFooter-DYBJfoYW.js +1 -0
- package/dist/{NavGroup-51WPHbiD.js → NavGroup-yzO6C0Zg.js} +1 -1
- package/dist/NavGroupContent-BKoYYSC2.js +1 -0
- package/dist/{NavGroupContext-Cb53zz4f.js → NavGroupContext-CwPA-dvW.js} +1 -1
- package/dist/{NavGroupTrigger-CJvEaVIV.js → NavGroupTrigger-DW8Y8Fpq.js} +1 -1
- package/dist/NavHeader-ewcPuYSj.js +1 -0
- package/dist/NavItem-CEElA5Np.js +1 -0
- package/dist/NavList-Djewwj-e.js +1 -0
- package/dist/NavSeparator-DQzkx0ZS.js +1 -0
- package/dist/Pagination-B0VHnHvt.js +1 -0
- package/dist/{Paper-ByHHHqYw.js → Paper-D_8nBiiP.js} +1 -1
- package/dist/{Popover-BodiyxdO.js → Popover-DSHqe_UP.js} +1 -1
- package/dist/{PopoverAnchor-CVo82UW2.js → PopoverAnchor-D6tQ1slK.js} +1 -1
- package/dist/PopoverContent-zpTyXfs1.js +1 -0
- package/dist/PopoverContext-jV5Hbt0r.js +1 -0
- package/dist/{PopoverTrigger-CS8SC9IT.js → PopoverTrigger-XXrkxwis.js} +1 -1
- package/dist/Portal-BL6rdrGB.js +1 -0
- package/dist/PortalContext-CdQ5KlCF.js +1 -0
- package/dist/RadioGroupContext-X22fOaPY.js +1 -0
- package/dist/{SegmentedControlContext-DFOqC3zK.js → SegmentedControlContext-D92ZbsMH.js} +1 -1
- package/dist/{Select-CWgAndPC.js → Select-Cuxzza31.js} +1 -1
- package/dist/SelectContent-DxyFSMkv.js +1 -0
- package/dist/SelectContext-iQcNixKL.js +1 -0
- package/dist/{SelectTrigger-q1czo7-l.js → SelectTrigger-C9n8eouy.js} +1 -1
- package/dist/Separator-BSyXERz8.js +1 -0
- package/dist/SidebarContext-BrWlRT9q.js +1 -0
- package/dist/Skeleton-CgHXlohl.js +1 -0
- package/dist/Spinner-BQc1G4Yv.js +1 -0
- package/dist/Switch-70E7UHO1.js +1 -0
- package/dist/Table-C2fFg24Y.js +1 -0
- package/dist/TableAction-DBo85GsZ.js +1 -0
- package/dist/TableBody-_8Ha8phR.js +1 -0
- package/dist/TableCell-CMztPRXG.js +1 -0
- package/dist/TableHeader-CtJm37nf.js +1 -0
- package/dist/TableHeaderCell-Bmnvi-je.js +1 -0
- package/dist/TableRow-Db0gh8y8.js +1 -0
- package/dist/TableRow.css.ts.vanilla-DARD99Vi-SimvQ1pW.js +1 -0
- package/dist/Text-COBVeaL2.js +1 -0
- package/dist/{ThemeProvider-HpeheiHg.js → ThemeProvider-Be8gF_DC.js} +1 -1
- package/dist/Toast-3nvP4JEy.js +1 -0
- package/dist/ToastAction-DPeaazfa.js +1 -0
- package/dist/ToastProvider-DP89byW9.js +1 -0
- package/dist/{ToastTitle-By9oHA4n.js → ToastTitle-IcA_mEB-.js} +1 -1
- package/dist/ToggleInputLabel-CDeOK_ik.js +1 -0
- package/dist/Tooltip-BOqMECAY.js +1 -0
- package/dist/TooltipContent-By_l7Jjy.js +1 -0
- package/dist/TooltipContext-B5NjIvm_.js +1 -0
- package/dist/TooltipProvider-BWjrkkg4.js +1 -0
- package/dist/TooltipRoot-BG-CR8R7.js +1 -0
- package/dist/TooltipTrigger-Bj93QX3w.js +1 -0
- package/dist/Transition-CDfCkbsV.js +1 -0
- package/dist/TransitionGroup-Ba-AKXjR.js +1 -0
- package/dist/TransitionGroupContext-52t22nkU.js +1 -0
- package/dist/VisuallyHidden-N_pIAhKO.js +1 -0
- package/dist/assets/files/fira-code-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/assets/files/fira-code-cyrillic-wght-normal.woff2 +0 -0
- package/dist/assets/files/fira-code-greek-ext-wght-normal.woff2 +0 -0
- package/dist/assets/files/fira-code-greek-wght-normal.woff2 +0 -0
- package/dist/assets/files/fira-code-latin-ext-wght-normal.woff2 +0 -0
- package/dist/assets/files/fira-code-latin-wght-normal.woff2 +0 -0
- package/dist/assets/files/fira-code-symbols2-wght-normal.woff2 +0 -0
- package/dist/components/Alert.d.ts +1 -1
- package/dist/components/Alert.js +1 -1
- package/dist/components/AlertDialog.d.ts +1 -1
- package/dist/components/AlertDialog.js +1 -1
- package/dist/components/AlertDialogAction.d.ts +1 -1
- package/dist/components/AlertDialogAction.js +1 -1
- package/dist/components/AlertDialogBody.d.ts +1 -1
- package/dist/components/AlertDialogBody.js +1 -1
- package/dist/components/AlertDialogCancel.d.ts +1 -1
- package/dist/components/AlertDialogCancel.js +1 -1
- package/dist/components/AlertDialogContent.d.ts +1 -1
- package/dist/components/AlertDialogContent.js +1 -1
- package/dist/components/AlertDialogFooter.d.ts +1 -1
- package/dist/components/AlertDialogFooter.js +1 -1
- package/dist/components/AlertDialogHeader.d.ts +1 -1
- package/dist/components/AlertDialogHeader.js +1 -1
- package/dist/components/AlertDialogTrigger.d.ts +1 -1
- package/dist/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AngleMenuButton.d.ts +1 -1
- package/dist/components/AngleMenuButton.js +1 -1
- package/dist/components/Avatar.d.ts +1 -1
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarGroup.d.ts +1 -1
- package/dist/components/AvatarGroup.js +1 -1
- package/dist/components/AxiomProvider.d.ts +1 -1
- package/dist/components/AxiomProvider.js +1 -1
- package/dist/components/Badge.d.ts +1 -1
- package/dist/components/Badge.js +1 -1
- package/dist/components/Banner.d.ts +1 -1
- package/dist/components/Banner.js +1 -1
- package/dist/components/Box.d.ts +28 -28
- package/dist/components/Box.js +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/ButtonGroup.d.ts +1 -1
- package/dist/components/ButtonGroup.js +1 -1
- package/dist/components/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Code.d.ts +1 -1
- package/dist/components/Code.js +1 -1
- package/dist/components/Cover.d.ts +1 -1
- package/dist/components/Cover.js +1 -1
- package/dist/components/DataTable.d.ts +1 -1
- package/dist/components/DataTable.js +1 -1
- package/dist/components/DataTableAction.d.ts +32 -0
- package/dist/components/DataTableAction.js +1 -0
- package/dist/components/DataTableBody.d.ts +1 -1
- package/dist/components/DataTableBody.js +2 -2
- package/dist/components/DataTableCheckbox.d.ts +34 -0
- package/dist/components/DataTableCheckbox.js +1 -0
- package/dist/components/DataTableFooter.d.ts +1 -1
- package/dist/components/DataTableFooter.js +1 -1
- package/dist/components/DataTableLabel.d.ts +30 -0
- package/dist/components/DataTableLabel.js +1 -0
- package/dist/components/DateInput.d.ts +2 -1
- package/dist/components/DateInput.js +1 -1
- package/dist/components/DateRangePicker.d.ts +1 -1
- package/dist/components/DateRangePicker.js +1 -1
- package/dist/components/DateRangePickerContent.d.ts +3 -5
- package/dist/components/DateRangePickerContent.js +1 -1
- package/dist/components/DateRangePickerTrigger.d.ts +1 -1
- package/dist/components/DateRangePickerTrigger.js +1 -1
- package/dist/components/Dialog.d.ts +1 -1
- package/dist/components/Dialog.js +1 -1
- package/dist/components/DialogBody.d.ts +1 -1
- package/dist/components/DialogBody.js +1 -1
- package/dist/components/DialogClose.d.ts +1 -1
- package/dist/components/DialogClose.js +1 -1
- package/dist/components/DialogContent.d.ts +1 -3
- package/dist/components/DialogContent.js +1 -1
- package/dist/components/DialogFooter.d.ts +1 -1
- package/dist/components/DialogFooter.js +1 -1
- package/dist/components/DialogForm.d.ts +1 -1
- package/dist/components/DialogForm.js +1 -1
- package/dist/components/DialogHeader.d.ts +1 -1
- package/dist/components/DialogHeader.js +1 -1
- package/dist/components/DialogTrigger.d.ts +1 -1
- package/dist/components/DialogTrigger.js +1 -1
- package/dist/components/Disclosure.d.ts +1 -1
- package/dist/components/Disclosure.js +1 -1
- package/dist/components/DisclosureContent.d.ts +1 -3
- package/dist/components/DisclosureContent.js +1 -1
- package/dist/components/DisclosureTrigger.d.ts +1 -1
- package/dist/components/DisclosureTrigger.js +1 -1
- package/dist/components/DropdownMenu.d.ts +1 -1
- package/dist/components/DropdownMenu.js +1 -1
- package/dist/components/DropdownMenuCheckboxItem.d.ts +4 -4
- package/dist/components/DropdownMenuCheckboxItem.js +1 -1
- package/dist/components/DropdownMenuContent.d.ts +3 -3
- package/dist/components/DropdownMenuContent.js +1 -1
- package/dist/components/DropdownMenuGroup.d.ts +1 -1
- package/dist/components/DropdownMenuGroup.js +1 -1
- package/dist/components/DropdownMenuItem.d.ts +4 -4
- package/dist/components/DropdownMenuItem.js +1 -1
- package/dist/components/DropdownMenuLabel.d.ts +1 -1
- package/dist/components/DropdownMenuLabel.js +1 -1
- package/dist/components/DropdownMenuSeparator.d.ts +1 -1
- package/dist/components/DropdownMenuSeparator.js +1 -1
- package/dist/components/DropdownMenuSub.d.ts +1 -1
- package/dist/components/DropdownMenuSub.js +1 -1
- package/dist/components/DropdownMenuSubContent.d.ts +1 -1
- package/dist/components/DropdownMenuSubContent.js +1 -1
- package/dist/components/DropdownMenuTrigger.d.ts +1 -1
- package/dist/components/DropdownMenuTrigger.js +1 -1
- package/dist/components/EllipsisMenuButton.d.ts +1 -1
- package/dist/components/EllipsisMenuButton.js +1 -1
- package/dist/components/Field.d.ts +5 -5
- package/dist/components/Field.js +1 -1
- package/dist/components/FieldLabel.d.ts +1 -1
- package/dist/components/FieldLabel.js +1 -1
- package/dist/components/Flex.d.ts +1 -1
- package/dist/components/Flex.js +1 -1
- package/dist/components/Grid.d.ts +1 -1
- package/dist/components/Grid.js +1 -1
- package/dist/components/Heading.d.ts +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/Indicator.d.ts +3 -3
- package/dist/components/Indicator.js +1 -1
- package/dist/components/Input.d.ts +2 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputAddon.d.ts +1 -1
- package/dist/components/InputAddon.js +1 -1
- package/dist/components/InputControl.d.ts +2 -1
- package/dist/components/InputControl.js +1 -1
- package/dist/components/InputRoot.d.ts +1 -1
- package/dist/components/InputRoot.js +1 -1
- package/dist/components/Kbd.d.ts +2 -2
- package/dist/components/Kbd.js +1 -1
- package/dist/components/LabelMenuButton.d.ts +1 -1
- package/dist/components/LabelMenuButton.js +1 -1
- package/dist/components/Link.d.ts +2 -2
- package/dist/components/Link.js +1 -1
- package/dist/components/Listbox.d.ts +1 -1
- package/dist/components/Listbox.js +1 -1
- package/dist/components/ListboxCheckboxItem.d.ts +2 -2
- package/dist/components/ListboxCheckboxItem.js +1 -1
- package/dist/components/ListboxEmpty.d.ts +1 -1
- package/dist/components/ListboxEmpty.js +1 -1
- package/dist/components/ListboxFooter.d.ts +1 -1
- package/dist/components/ListboxFooter.js +1 -1
- package/dist/components/ListboxGroup.d.ts +1 -1
- package/dist/components/ListboxGroup.js +1 -1
- package/dist/components/ListboxItem.d.ts +3 -3
- package/dist/components/ListboxItem.js +1 -1
- package/dist/components/ListboxItemIndicator.d.ts +1 -1
- package/dist/components/ListboxItemIndicator.js +1 -1
- package/dist/components/ListboxItemized.d.ts +1 -1
- package/dist/components/ListboxItemized.js +1 -1
- package/dist/components/ListboxLabel.d.ts +1 -1
- package/dist/components/ListboxLabel.js +1 -1
- package/dist/components/ListboxRadioItem.d.ts +2 -2
- package/dist/components/ListboxRadioItem.js +1 -1
- package/dist/components/ListboxSeparator.d.ts +1 -1
- package/dist/components/ListboxSeparator.js +1 -1
- package/dist/components/ListboxSwitchItem.d.ts +2 -2
- package/dist/components/ListboxSwitchItem.js +1 -1
- package/dist/components/ModalLayer.d.ts +1 -1
- package/dist/components/ModalLayer.js +1 -1
- package/dist/components/ModalProvider.d.ts +1 -1
- package/dist/components/ModalProvider.js +1 -1
- package/dist/components/Nav.d.ts +1 -1
- package/dist/components/Nav.js +1 -1
- package/dist/components/NavAccountItem.d.ts +1 -1
- package/dist/components/NavAccountItem.js +1 -1
- package/dist/components/NavBody.d.ts +1 -1
- package/dist/components/NavBody.js +1 -1
- package/dist/components/NavFooter.d.ts +1 -1
- package/dist/components/NavFooter.js +1 -1
- package/dist/components/NavGroup.d.ts +1 -1
- package/dist/components/NavGroup.js +1 -1
- package/dist/components/NavGroupContent.d.ts +1 -1
- package/dist/components/NavGroupContent.js +1 -1
- package/dist/components/NavGroupTrigger.d.ts +1 -1
- package/dist/components/NavGroupTrigger.js +1 -1
- package/dist/components/NavHeader.d.ts +1 -1
- package/dist/components/NavHeader.js +1 -1
- package/dist/components/NavItem.d.ts +1 -1
- package/dist/components/NavItem.js +1 -1
- package/dist/components/NavList.d.ts +1 -1
- package/dist/components/NavList.js +1 -1
- package/dist/components/NavSeparator.d.ts +1 -1
- package/dist/components/NavSeparator.js +1 -1
- package/dist/components/Pagination.d.ts +1 -1
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Paper.d.ts +1 -1
- package/dist/components/Paper.js +1 -1
- package/dist/components/Popover.d.ts +1 -1
- package/dist/components/Popover.js +1 -1
- package/dist/components/PopoverAnchor.d.ts +1 -1
- package/dist/components/PopoverAnchor.js +1 -1
- package/dist/components/PopoverContent.d.ts +3 -5
- package/dist/components/PopoverContent.js +1 -1
- package/dist/components/PopoverTrigger.d.ts +1 -1
- package/dist/components/PopoverTrigger.js +1 -1
- package/dist/components/Progress.d.ts +1 -1
- package/dist/components/Progress.js +2 -2
- package/dist/components/Radio.d.ts +1 -1
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioGroup.d.ts +1 -1
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/SearchInput.d.ts +2 -1
- package/dist/components/SearchInput.js +1 -1
- package/dist/components/SegmentedControl.d.ts +5 -5
- package/dist/components/SegmentedControl.js +1 -1
- package/dist/components/SegmentedControlItem.d.ts +1 -1
- package/dist/components/SegmentedControlItem.js +1 -1
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/SelectContent.d.ts +3 -3
- package/dist/components/SelectContent.js +1 -1
- package/dist/components/SelectTrigger.d.ts +1 -1
- package/dist/components/SelectTrigger.js +1 -1
- package/dist/components/Separator.d.ts +1 -1
- package/dist/components/Separator.js +1 -1
- package/dist/components/Sidebar.d.ts +1 -1
- package/dist/components/Sidebar.js +1 -1
- package/dist/components/SidebarToggle.d.ts +1 -1
- package/dist/components/SidebarToggle.js +1 -1
- package/dist/components/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Spinner.d.ts +1 -1
- package/dist/components/Spinner.js +1 -1
- package/dist/components/SubNav.d.ts +1 -1
- package/dist/components/SubNav.js +1 -1
- package/dist/components/Switch.d.ts +1 -1
- package/dist/components/Switch.js +1 -1
- package/dist/components/Table.d.ts +1 -1
- package/dist/components/Table.js +1 -1
- package/dist/components/TableAction.d.ts +2 -1
- package/dist/components/TableAction.js +1 -1
- package/dist/components/TableBody.d.ts +1 -1
- package/dist/components/TableBody.js +1 -1
- package/dist/components/TableCell.d.ts +3 -2
- package/dist/components/TableCell.js +1 -1
- package/dist/components/TableHeader.d.ts +3 -2
- package/dist/components/TableHeader.js +1 -1
- package/dist/components/TableHeaderCell.d.ts +3 -2
- package/dist/components/TableHeaderCell.js +1 -1
- package/dist/components/TableRow.d.ts +1 -1
- package/dist/components/TableRow.js +1 -1
- package/dist/components/Tabs.d.ts +3 -3
- package/dist/components/Tabs.js +1 -1
- package/dist/components/TabsContent.d.ts +1 -1
- package/dist/components/TabsContent.js +1 -1
- package/dist/components/TabsList.d.ts +1 -1
- package/dist/components/TabsList.js +1 -1
- package/dist/components/TabsTrigger.d.ts +1 -1
- package/dist/components/TabsTrigger.js +1 -1
- package/dist/components/Text.d.ts +1 -1
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.d.ts +5 -4
- package/dist/components/Textarea.js +1 -1
- package/dist/components/ThemeProvider.d.ts +1 -1
- package/dist/components/ThemeProvider.js +1 -1
- package/dist/components/Toast.d.ts +2 -2
- package/dist/components/Toast.js +1 -1
- package/dist/components/ToastAction.d.ts +1 -1
- package/dist/components/ToastAction.js +1 -1
- package/dist/components/ToastProvider.d.ts +4 -4
- package/dist/components/ToastProvider.js +1 -1
- package/dist/components/ToastTitle.d.ts +1 -1
- package/dist/components/ToastTitle.js +1 -1
- package/dist/components/ToggleButton.d.ts +1 -1
- package/dist/components/ToggleButton.js +1 -1
- package/dist/components/Tooltip.d.ts +32 -32
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/TooltipContent.d.ts +2 -2
- package/dist/components/TooltipContent.js +1 -1
- package/dist/components/TooltipProvider.d.ts +1 -1
- package/dist/components/TooltipProvider.js +1 -1
- package/dist/components/TooltipRoot.d.ts +8 -10
- package/dist/components/TooltipRoot.js +1 -1
- package/dist/components/TooltipTrigger.d.ts +1 -1
- package/dist/components/TooltipTrigger.js +1 -1
- package/dist/components/Transition.d.ts +5 -3
- package/dist/components/Transition.js +1 -1
- package/dist/components/TransitionGroup.d.ts +1 -1
- package/dist/components/TransitionGroup.js +1 -1
- package/dist/decorateChildren-Bl40SMJ_.js +1 -0
- package/dist/fallbackSpan-BpDiWffj.js +1 -0
- package/dist/{index-CI2vLVid.js → index-2lpmofc2.js} +1 -1
- package/dist/{index-CsrPp_J7.js → index-B6tsnEGI.js} +1 -1
- package/dist/{index-BWPRLJg-.js → index-B8JDggRZ.js} +1 -1
- package/dist/{index-DIu4_C4G.js → index-BFzCraLT.js} +1 -1
- package/dist/{index-BUeSiwKX.js → index-BPS-g6a4.js} +1 -1
- package/dist/{index-BFCyDU4Q.js → index-BVFhJeZi.js} +1 -1
- package/dist/{index-BabdR4qD.js → index-BW69zWdn.js} +1 -1
- package/dist/index-Bcpck9_4.js +1 -0
- package/dist/{index-D0ABZUfm.js → index-Bl8kxn1H.js} +1 -1
- package/dist/{index-DH4aI9a1.js → index-Bs_GPX1S.js} +1 -1
- package/dist/index-BzN5_TI9.js +1 -0
- package/dist/{index-Bb94qrAX.js → index-C0mqVpTA.js} +2 -2
- package/dist/{index-D3i-FloW.js → index-CC6UD74y.js} +1 -1
- package/dist/{index-BBt1E70h.js → index-COmoD8s9.js} +2 -2
- package/dist/{index-CfDkctZZ.js → index-CSHUVfiZ.js} +1 -1
- package/dist/index-ClR1Fu1m.js +1 -0
- package/dist/{index-DV0jhzsh.js → index-CoS3Xxbd.js} +1 -1
- package/dist/{index-CoF_i6dU.js → index-CxB09ekd.js} +1 -1
- package/dist/{index-DV-dtWFU.js → index-CyCwooxq.js} +1 -1
- package/dist/{index-n6Sqy68J.js → index-DFuSgnL5.js} +1 -1
- package/dist/{index-CKJ5e-Ly.js → index-DJ-dCoey.js} +1 -1
- package/dist/{index-CeboH83Y.js → index-DWcIJqsU.js} +1 -1
- package/dist/{index-C48nY0Mq.js → index-DWu33izx.js} +1 -1
- package/dist/index-FlpcMC05.js +4 -0
- package/dist/index-RERP2Q_l.js +1 -0
- package/dist/{index-CDuDJEIF.js → index-eoMbSHne.js} +1 -1
- package/dist/index.d.ts +196 -123
- package/dist/index.js +1 -1
- package/dist/isHoverSupported-CireFq72.js +1 -0
- package/dist/layers.css.ts.vanilla-DMaqBdHD-VfswR7go.js +1 -0
- package/dist/propTypes-Bfuy5rXZ.js +1 -0
- package/dist/register-CCbCrj5_.js +6 -0
- package/dist/{types-D6jqxLjP.d.ts → types-D3fuzi_a.d.ts} +1 -1
- package/dist/{useEffectEvent-jwZdzU3U.js → useEffectEvent-DmHtBr_k.js} +1 -1
- package/dist/{useFieldLabelTrigger-DgU84lcA.js → useFieldLabelTrigger-Bqo5ky9Y.js} +1 -1
- package/dist/useNestedDialogCount-BvSS4GPT.js +1 -0
- package/dist/{useObserveValue-Bs_YzdyZ.js → useObserveValue-CSMtxQtA.js} +1 -1
- package/dist/{withIcon-B6cr0_8K.js → withIcon-dyLmXyYc.js} +1 -1
- package/package.json +11 -8
- package/dist/ActionsRoot-D3HGwmX0.js +0 -1
- package/dist/AlertDialogContext-BLLf10we.js +0 -1
- package/dist/AngleMenuButton-BttMTNgv.js +0 -1
- package/dist/Avatar-Di2s9r20.js +0 -1
- package/dist/AvatarContext-C0aLzKyM.js +0 -1
- package/dist/AvatarGroup-DgaDUZSK.js +0 -1
- package/dist/AvatarGroup.css.ts.vanilla-Cx5atBZp-D6fbZ5b4.js +0 -1
- package/dist/Backdrop-4vi19CDU.js +0 -1
- package/dist/Badge-zEzosPC6.js +0 -1
- package/dist/Box-KbhwudxO.js +0 -1
- package/dist/ButtonContext-CXoo6E9i.js +0 -1
- package/dist/ButtonGroup-DXUk9q_2.js +0 -1
- package/dist/ButtonRoot-D9uMmvdc.js +0 -1
- package/dist/Calendar-Dp1Dkca6.js +0 -1
- package/dist/Checkbox-DErm1lmS.js +0 -1
- package/dist/Combination-C0hFTUie.js +0 -41
- package/dist/Cover-DdeP6yWY.js +0 -1
- package/dist/DataTableContext-Cckx_Lc0.js +0 -1
- package/dist/DateRangePickerContext-t6Tfh3Qa.js +0 -1
- package/dist/DialogContext-UDBli-9y.js +0 -1
- package/dist/DisclosureContent-ZBbUoOf-.js +0 -1
- package/dist/DisclosureTrigger-g66NIIzR.js +0 -1
- package/dist/DropdownMenuContext-bj9D9JK0.js +0 -1
- package/dist/DropdownMenuNestedContext-euS8TYk1.js +0 -1
- package/dist/DropdownMenuSubContext-BrDYBo_s.js +0 -1
- package/dist/Icon-Dg8DnF4a.js +0 -1
- package/dist/IconAngleDown-DiQTZpkN.js +0 -1
- package/dist/Input-CHQ082gi.js +0 -1
- package/dist/InputAddon-o6qpuhZQ.js +0 -1
- package/dist/InputContext-7F97W-J2.js +0 -1
- package/dist/InputControl-TQb_r0GK.js +0 -1
- package/dist/InputControl.css.ts.vanilla-DTGYmare-D_1Xb8Nd.js +0 -1
- package/dist/InputRoot-C74CKFEm.js +0 -1
- package/dist/ListboxCheckboxItem-CBTBAZHT.js +0 -1
- package/dist/ListboxGroup-CWxHBjGY.js +0 -1
- package/dist/ListboxGroupContext-BZTiw_Jc.js +0 -1
- package/dist/ListboxItem-MbS799EN.js +0 -1
- package/dist/ListboxItemIndicator-DCghuFW5.js +0 -1
- package/dist/ListboxLabel-y91DUYHd.js +0 -1
- package/dist/ListboxSeparator-b-gAHvO6.js +0 -1
- package/dist/ModalContext-miFViPPD.js +0 -1
- package/dist/ModalListbox-DsU3BcMW.js +0 -1
- package/dist/Nav-QtBT3xG7.js +0 -1
- package/dist/NavAccountItem-CP3joV1Z.js +0 -1
- package/dist/NavFooter-B5hBx9c1.js +0 -1
- package/dist/NavGroupContent-DCwjV_G9.js +0 -1
- package/dist/NavHeader-BBwxjri6.js +0 -1
- package/dist/NavItem-CBg9pw9s.js +0 -1
- package/dist/NavList-DWlKN1EZ.js +0 -1
- package/dist/NavSeparator-Dmo2s21x.js +0 -1
- package/dist/Pagination-COX7seB-.js +0 -1
- package/dist/PopoverContent-CIisbtSg.js +0 -1
- package/dist/PopoverContext-DtS0zfIJ.js +0 -1
- package/dist/Portal-C0Vo4BiU.js +0 -1
- package/dist/PortalContext-DaTMQnbo.js +0 -1
- package/dist/RadioGroupContext-DQDDMpW2.js +0 -1
- package/dist/SelectContent-CVqhnvuA.js +0 -1
- package/dist/SelectContext-DJerpQX1.js +0 -1
- package/dist/Separator-NVrmKW6g.js +0 -1
- package/dist/SidebarContext-CQ7EHdLQ.js +0 -1
- package/dist/Skeleton-OcUmreRV.js +0 -1
- package/dist/Spinner-CCXCNomo.js +0 -1
- package/dist/Switch-ixCi34sg.js +0 -1
- package/dist/Table-CCrIIYDc.js +0 -1
- package/dist/TableAction-BUMbnB8P.js +0 -1
- package/dist/TableBody-CQp50u7n.js +0 -1
- package/dist/TableCell-Ctea1_uS.js +0 -1
- package/dist/TableHeader-bZqVpF28.js +0 -1
- package/dist/TableHeaderCell-LPrq4Zqw.js +0 -1
- package/dist/TableRow-B0G_tKmo.js +0 -1
- package/dist/TableRow.css.ts.vanilla-DKWSCVR_-a1gzbr1k.js +0 -1
- package/dist/Text-BAVJhd4c.js +0 -1
- package/dist/Toast-r2fP2713.js +0 -1
- package/dist/ToastAction-AEjauBnk.js +0 -1
- package/dist/ToastProvider-BWNKa_v0.js +0 -1
- package/dist/ToggleInputLabel-mR_XDw7y.js +0 -1
- package/dist/Tooltip-D3MAszoB.js +0 -1
- package/dist/TooltipContent-DOK51UEB.js +0 -1
- package/dist/TooltipContext-QsjIewks.js +0 -1
- package/dist/TooltipProvider-BR3_HGaK.js +0 -1
- package/dist/TooltipRoot-BVRKubJ_.js +0 -1
- package/dist/TooltipTrigger-CJVFZb7g.js +0 -1
- package/dist/Transition-BHMa10Nq.js +0 -1
- package/dist/TransitionGroup-BxvGkQ0V.js +0 -1
- package/dist/TransitionGroupContext-C4K1yRRe.js +0 -1
- package/dist/VisuallyHidden-3po2JP-A.js +0 -1
- package/dist/decorateChildren-Dh94ASKR.js +0 -1
- package/dist/fallbackSpan-cNWzvgoM.js +0 -1
- package/dist/index-BmSgjcbW.js +0 -4
- package/dist/index-CGptjsxG.js +0 -1
- package/dist/index-CbR9uCwE.js +0 -1
- package/dist/index-DOKuvoya.js +0 -1
- package/dist/index-DjntHHkF.js +0 -1
- package/dist/isHoverSupported-DMhF6LbU.js +0 -1
- package/dist/layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js +0 -1
- package/dist/propTypes-BgI6w_Yc.js +0 -1
- package/dist/register-_G2N7H5v.js +0 -6
- package/dist/useNestedDialogCount-FIsy5vDD.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as T,e as P,d as v,A as N,y as E,q as w,h as I}from"./register-
|
|
1
|
+
import{O as T,e as P,d as v,A as N,y as E,q as w,h as I}from"./register-CCbCrj5_.js";import{u as U}from"./index-ClR1Fu1m.js";import{u as A}from"./index-BzN5_TI9.js";function h(e,n){return I((t,r)=>n[t][r]??t,e)}var M=e=>{const{present:n,children:t}=e,r=R(n),s=typeof t=="function"?t({present:r.isPresent}):T.only(t),u=U(r.ref,S(s));return typeof t=="function"||r.isPresent?P(s,{ref:u}):null};M.displayName="Presence";function R(e){const[n,t]=v(),r=N(null),s=N(e),u=N("none"),p=e?"mounted":"unmounted",[l,i]=h(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E(()=>{const o=f(r.current);u.current=l==="mounted"?o:"none"},[l]),A(()=>{const o=r.current,c=s.current;if(c!==e){const d=u.current,a=f(o);e?i("MOUNT"):a==="none"||o?.display==="none"?i("UNMOUNT"):i(c&&d!==a?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,i]),A(()=>{if(n){let o;const c=n.ownerDocument.defaultView??window,m=a=>{const O=f(r.current).includes(a.animationName);if(a.target===n&&O&&(i("ANIMATION_END"),!s.current)){const y=n.style.animationFillMode;n.style.animationFillMode="forwards",o=c.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=y)})}},d=a=>{a.target===n&&(u.current=f(r.current))};return n.addEventListener("animationstart",d),n.addEventListener("animationcancel",m),n.addEventListener("animationend",m),()=>{c.clearTimeout(o),n.removeEventListener("animationstart",d),n.removeEventListener("animationcancel",m),n.removeEventListener("animationend",m)}}else i("ANIMATION_END")},[n,i]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:w(o=>{r.current=o?getComputedStyle(o):null,t(o)},[])}}function f(e){return e?.animationName||"none"}function S(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}export{M as P};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{h as O,d as E,a as C,y as T,E as R}from"./register-CCbCrj5_.js";function p(l,r,t){let s=t.initialDeps??[],e;function n(){var i,o,a,c;let h;t.key&&(i=t.debug)!=null&&i.call(t)&&(h=Date.now());const u=l();if(!(u.length!==s.length||u.some((g,m)=>s[m]!==g)))return e;s=u;let d;if(t.key&&(o=t.debug)!=null&&o.call(t)&&(d=Date.now()),e=r(...u),t.key&&(a=t.debug)!=null&&a.call(t)){const g=Math.round((Date.now()-h)*100)/100,m=Math.round((Date.now()-d)*100)/100,b=m/16,v=(f,z)=>{for(f=String(f);f.length<z;)f=" "+f;return f};console.info(`%c\u23F1 ${v(m,5)} /${v(g,5)} ms`,`
|
|
2
|
+
font-size: .6rem;
|
|
3
|
+
font-weight: bold;
|
|
4
|
+
color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,t?.key)}return(c=t?.onChange)==null||c.call(t,e),e}return n.updateDeps=i=>{s=i},n}function x(l,r){if(l===void 0)throw new Error("Unexpected undefined");return l}const A=(l,r)=>Math.abs(l-r)<=1,D=(l,r,t)=>{let s;return function(...e){l.clearTimeout(s),s=l.setTimeout(()=>r.apply(this,e),t)}},S=l=>{const{offsetWidth:r,offsetHeight:t}=l;return{width:r,height:t}},k=l=>l,F=l=>{const r=Math.max(l.startIndex-l.overscan,0),t=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let e=r;e<=t;e++)s.push(e);return s},W=(l,r)=>{const t=l.scrollElement;if(!t)return;const s=l.targetWindow;if(!s)return;const e=i=>{const{width:o,height:a}=i;r({width:Math.round(o),height:Math.round(a)})};if(e(S(t)),!s.ResizeObserver)return()=>{};const n=new s.ResizeObserver(i=>{const o=()=>{const a=i[0];if(a?.borderBoxSize){const c=a.borderBoxSize[0];if(c){e({width:c.inlineSize,height:c.blockSize});return}}e(S(t))};l.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()});return n.observe(t,{box:"border-box"}),()=>{n.unobserve(t)}},y={passive:!0},M=typeof window>"u"?!0:"onscrollend"in window,j=(l,r)=>{const t=l.scrollElement;if(!t)return;const s=l.targetWindow;if(!s)return;let e=0;const n=l.options.useScrollendEvent&&M?()=>{}:D(s,()=>{r(e,!1)},l.options.isScrollingResetDelay),i=h=>()=>{const{horizontal:u,isRtl:d}=l.options;e=u?t.scrollLeft*(d&&-1||1):t.scrollTop,n(),r(e,h)},o=i(!0),a=i(!1);a(),t.addEventListener("scroll",o,y);const c=l.options.useScrollendEvent&&M;return c&&t.addEventListener("scrollend",a,y),()=>{t.removeEventListener("scroll",o),c&&t.removeEventListener("scrollend",a)}},_=(l,r,t)=>{if(r?.borderBoxSize){const s=r.borderBoxSize[0];if(s)return Math.round(s[t.options.horizontal?"inlineSize":"blockSize"])}return l[t.options.horizontal?"offsetWidth":"offsetHeight"]},$=(l,{adjustments:r=0,behavior:t},s)=>{var e,n;const i=l+r;(n=(e=s.scrollElement)==null?void 0:e.scrollTo)==null||n.call(e,{[s.options.horizontal?"left":"top"]:i,behavior:t})};class P{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const s=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(e=>{e.forEach(n=>{const i=()=>{this._measureElement(n.target,n)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()})}));return{disconnect:()=>{var e;(e=s())==null||e.disconnect(),t=null},observe:e=>{var n;return(n=s())==null?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return(n=s())==null?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([s,e])=>{typeof e>"u"&&delete t[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:k,rangeExtractor:F,onChange:()=>{},measureElement:_,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var s,e;(e=(s=this.options).onChange)==null||e.call(s,this,t)},this.maybeNotify=p(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,n)=>{this.scrollAdjustments=0,this.scrollDirection=n?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=n,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,s)=>{const e=new Map,n=new Map;for(let i=s-1;i>=0;i--){const o=t[i];if(e.has(o.lane))continue;const a=n.get(o.lane);if(a==null||o.end>a.end?n.set(o.lane,o):o.end<a.end&&e.set(o.lane,!0),e.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((i,o)=>i.end===o.end?i.index-o.index:i.end-o.end)[0]:void 0},this.getMeasurementOptions=p(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,s,e,n,i)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:s,scrollMargin:e,getItemKey:n,enabled:i}),{key:!1}),this.getMeasurements=p(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:s,scrollMargin:e,getItemKey:n,enabled:i},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,a);for(let h=a;h<t;h++){const u=n(h),d=this.options.lanes===1?c[h-1]:this.getFurthestMeasurement(c,h),g=d?d.end+this.options.gap:s+e,m=o.get(u),b=typeof m=="number"?m:this.options.estimateSize(h),v=g+b,f=d?d.lane:h%this.options.lanes;c[h]={index:h,start:g,size:b,end:v,key:u,lane:f}}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=p(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,s,e,n)=>this.range=t.length>0&&s>0?B({measurements:t,outerSize:s,scrollOffset:e,lanes:n}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=p(()=>{let t=null,s=null;const e=this.calculateRange();return e&&(t=e.startIndex,s=e.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,s]},(t,s,e,n,i)=>n===null||i===null?[]:t({startIndex:n,endIndex:i,overscan:s,count:e}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const s=this.options.indexAttribute,e=t.getAttribute(s);return e?parseInt(e,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(t,s)=>{const e=this.indexFromElement(t),n=this.measurementsCache[e];if(!n)return;const i=n.key,o=this.elementsCache.get(i);o!==t&&(o&&this.observer.unobserve(o),this.observer.observe(t),this.elementsCache.set(i,t)),t.isConnected&&this.resizeItem(e,this.options.measureElement(t,s,this))},this.resizeItem=(t,s)=>{const e=this.measurementsCache[t];if(!e)return;const n=this.itemSizeCache.get(e.key)??e.size,i=s-n;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(e,i,this):e.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(e.index),this.itemSizeCache=new Map(this.itemSizeCache.set(e.key,s)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((s,e)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(e))});return}this._measureElement(t,void 0)},this.getVirtualItems=p(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,s)=>{const e=[];for(let n=0,i=t.length;n<i;n++){const o=t[n],a=s[o];e.push(a)}return e},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const s=this.getMeasurements();if(s.length!==0)return x(s[w(0,s.length-1,e=>x(s[e]).start,t)])},this.getOffsetForAlignment=(t,s,e=0)=>{const n=this.getSize(),i=this.getScrollOffset();s==="auto"&&(s=t>=i+n?"end":"start"),s==="center"?t+=(e-n)/2:s==="end"&&(t-=n);const o=this.getTotalSize()-n;return Math.max(Math.min(o,t),0)},this.getOffsetForIndex=(t,s="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const e=this.measurementsCache[t];if(!e)return;const n=this.getSize(),i=this.getScrollOffset();if(s==="auto")if(e.end>=i+n-this.options.scrollPaddingEnd)s="end";else if(e.start<=i+this.options.scrollPaddingStart)s="start";else return[i,s];const o=s==="end"?e.end+this.options.scrollPaddingEnd:e.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,s,e.size),s]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:s="start",behavior:e}={})=>{this.cancelScrollToIndex(),e==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,s),{adjustments:void 0,behavior:e})},this.scrollToIndex=(t,{align:s="auto",behavior:e}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),e==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const n=this.getOffsetForIndex(t,s);if(!n)return;const[i,o]=n;this._scrollToOffset(i,{adjustments:void 0,behavior:e}),e!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const a=this.getOffsetForIndex(t,o);if(!a)return;const[c]=a,h=this.getScrollOffset();A(c,h)||this.scrollToIndex(t,{align:o,behavior:e})}else this.scrollToIndex(t,{align:o,behavior:e})}))},this.scrollBy=(t,{behavior:s}={})=>{this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var t;const s=this.getMeasurements();let e;if(s.length===0)e=this.options.paddingStart;else if(this.options.lanes===1)e=((t=s[s.length-1])==null?void 0:t.end)??0;else{const n=Array(this.options.lanes).fill(null);let i=s.length-1;for(;i>=0&&n.some(o=>o===null);){const o=s[i];n[o.lane]===null&&(n[o.lane]=o.end),i--}e=Math.max(...n.filter(o=>o!==null))}return Math.max(e-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:s,behavior:e})=>{this.options.scrollToFn(t,{behavior:e,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(r)}}const w=(l,r,t,s)=>{for(;l<=r;){const e=(l+r)/2|0,n=t(e);if(n<s)l=e+1;else if(n>s)r=e-1;else return e}return l>0?l-1:0};function B({measurements:l,outerSize:r,scrollOffset:t,lanes:s}){const e=l.length-1,n=a=>l[a].start;if(l.length<=s)return{startIndex:0,endIndex:e};let i=w(0,e,n,t),o=i;if(s===1)for(;o<e&&l[o].end<t+r;)o++;else if(s>1){const a=Array(s).fill(0);for(;o<e&&a.some(h=>h<t+r);){const h=l[o];a[h.lane]=h.end,o++}const c=Array(s).fill(t+r);for(;i>=0&&c.some(h=>h>=t);){const h=l[i];c[h.lane]=h.start,i--}i=Math.max(0,i-i%s),o=Math.min(e,o+(s-1-o%s))}return{startIndex:i,endIndex:o}}const I=typeof document<"u"?C:T;function N(l){const r=O(()=>({}),{})[1],t={...l,onChange:(e,n)=>{var i;n?R(r):r(),(i=l.onChange)==null||i.call(l,e,n)}},[s]=E(()=>new P(t));return s.setOptions(t),I(()=>s._didMount(),[]),I(()=>s._willUpdate()),s}function K(l){return N({observeElementRect:W,observeElementOffset:j,scrollToFn:$,...l})}export{K as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as Y,q as vt,A as J,a as Oe,y as Bt,T as at,E as Pe,D as ft,u as j}from"./register-CCbCrj5_.js";import{P as bt}from"./index-B8JDggRZ.js";import{u as Vt}from"./index-ClR1Fu1m.js";import{a as Re}from"./index-BFzCraLT.js";import{u as Ce}from"./index-DWcIJqsU.js";import{u as At}from"./index-BzN5_TI9.js";const Se=["top","right","bottom","left"],Z=Math.min,H=Math.max,ut=Math.round,dt=Math.floor,B=t=>({x:t,y:t}),Ee={left:"right",right:"left",bottom:"top",top:"bottom"},Te={start:"end",end:"start"};function Ot(t,e,n){return H(t,Z(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function q(t){return t.split("-")[0]}function Q(t){return t.split("-")[1]}function Pt(t){return t==="x"?"y":"x"}function Rt(t){return t==="y"?"height":"width"}function U(t){return["top","bottom"].includes(q(t))?"y":"x"}function Ct(t){return Pt(U(t))}function De(t,e,n){n===void 0&&(n=!1);const o=Q(t),i=Ct(t),r=Rt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=pt(s)),[s,pt(s)]}function Le(t){const e=pt(t);return[St(t),e,St(e)]}function St(t){return t.replace(/start|end/g,e=>Te[e])}function Me(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function $e(t,e,n,o){const i=Q(t);let r=Me(q(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(St)))),r}function pt(t){return t.replace(/left|right|bottom|top/g,e=>Ee[e])}function ke(t){return{top:0,right:0,bottom:0,left:0,...t}}function It(t){return typeof t!="number"?ke(t):{top:t,right:t,bottom:t,left:t}}function ht(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Yt(t,e,n){let{reference:o,floating:i}=t;const r=U(e),s=Ct(e),c=Rt(s),l=q(e),a=r==="y",f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-i.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-i.width,y:u};break;default:d={x:o.x,y:o.y}}switch(Q(e)){case"start":d[s]-=h*(n&&a?-1:1);break;case"end":d[s]+=h*(n&&a?-1:1);break}return d}const Fe=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Yt(a,o,l),h=o,d={},p=0;for(let m=0;m<c.length;m++){const{name:w,fn:g}=c[m],{x:v,y:b,data:x,reset:y}=await g({x:f,y:u,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=v??f,u=b??u,d={...d,[w]:{...d[w],...x}},y&&p<=50&&(p++,typeof y=="object"&&(y.placement&&(h=y.placement),y.rects&&(a=y.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):y.rects),{x:f,y:u}=Yt(a,h,l)),m=-1)}return{x:f,y:u,placement:h,strategy:i,middlewareData:d}};async function it(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=X(e,t),p=It(d),w=c[h?u==="floating"?"reference":"floating":u],g=ht(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),v=u==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),x=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},y=ht(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-y.top+p.top)/x.y,bottom:(y.bottom-g.bottom+p.bottom)/x.y,left:(g.left-y.left+p.left)/x.x,right:(y.right-g.right+p.right)/x.x}}const Ne=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=X(t,e)||{};if(a==null)return{};const u=It(f),h={x:n,y:o},d=Ct(i),p=Rt(d),m=await s.getDimensions(a),w=d==="y",g=w?"top":"left",v=w?"bottom":"right",b=w?"clientHeight":"clientWidth",x=r.reference[p]+r.reference[d]-h[d]-r.floating[p],y=h[d]-r.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let O=P?P[b]:0;(!O||!await(s.isElement==null?void 0:s.isElement(P)))&&(O=c.floating[b]||r.floating[p]);const E=x/2-y/2,N=O/2-m[p]/2-1,C=Z(u[g],N),k=Z(u[v],N),F=C,R=O-m[p]-k,$=O/2-m[p]/2+E,T=Ot(F,$,R),D=!l.arrow&&Q(i)!=null&&$!==T&&r.reference[p]/2-($<F?C:k)-m[p]/2<0,L=D?$<F?$-F:$-R:0;return{[d]:h[d]+L,data:{[d]:T,centerOffset:$-T-L,...D&&{alignmentOffset:L}},reset:D}}}),He=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...w}=X(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const g=q(i),v=U(c),b=q(c)===c,x=await(l.isRTL==null?void 0:l.isRTL(a.floating)),y=h||(b||!m?[pt(c)]:Le(c)),P=p!=="none";!h&&P&&y.push(...$e(c,m,p,x));const O=[c,...y],E=await it(e,w),N=[];let C=((o=r.flip)==null?void 0:o.overflows)||[];if(f&&N.push(E[g]),u){const T=De(i,s,x);N.push(E[T[0]],E[T[1]])}if(C=[...C,{placement:i,overflows:N}],!N.every(T=>T<=0)){var k,F;const T=(((k=r.flip)==null?void 0:k.index)||0)+1,D=O[T];if(D){var R;const A=u==="alignment"?v!==U(D):!1,S=((R=C[0])==null?void 0:R.overflows[0])>0;if(!A||S)return{data:{index:T,overflows:C},reset:{placement:D}}}let L=(F=C.filter(A=>A.overflows[0]<=0).sort((A,S)=>A.overflows[1]-S.overflows[1])[0])==null?void 0:F.placement;if(!L)switch(d){case"bestFit":{var $;const A=($=C.filter(S=>{if(P){const M=U(S.placement);return M===v||M==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(M=>M>0).reduce((M,ct)=>M+ct,0)]).sort((S,M)=>S[1]-M[1])[0])==null?void 0:$[0];A&&(L=A);break}case"initialPlacement":L=c;break}if(i!==L)return{reset:{placement:L}}}return{}}}};function jt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Xt(t){return Se.some(e=>t[e]>=0)}const We=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=X(t,e);switch(o){case"referenceHidden":{const r=await it(e,{...i,elementContext:"reference"}),s=jt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xt(s)}}}case"escaped":{const r=await it(e,{...i,altBoundary:!0}),s=jt(r,n.floating);return{data:{escapedOffsets:s,escaped:Xt(s)}}}default:return{}}}}};async function ze(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=q(n),c=Q(n),l=U(n)==="y",a=["left","top"].includes(s)?-1:1,f=r&&l?-1:1,u=X(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:h*a}:{x:h*a,y:d*f}}const _e=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await ze(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},Be=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:v}=w;return{x:g,y:v}}},...l}=X(t,e),a={x:n,y:o},f=await it(e,l),u=U(q(i)),h=Pt(u);let d=a[h],p=a[u];if(r){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",v=d+f[w],b=d-f[g];d=Ot(v,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",v=p+f[w],b=p-f[g];p=Ot(v,p,b)}const m=c.fn({...e,[h]:d,[u]:p});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[h]:r,[u]:s}}}}}},Ve=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=X(t,e),f={x:n,y:o},u=U(i),h=Pt(u);let d=f[h],p=f[u];const m=X(c,e),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const b=h==="y"?"height":"width",x=r.reference[h]-r.floating[b]+w.mainAxis,y=r.reference[h]+r.reference[b]-w.mainAxis;d<x?d=x:d>y&&(d=y)}if(a){var g,v;const b=h==="y"?"width":"height",x=["top","left"].includes(q(i)),y=r.reference[u]-r.floating[b]+(x&&((g=s.offset)==null?void 0:g[u])||0)+(x?0:w.crossAxis),P=r.reference[u]+r.reference[b]+(x?0:((v=s.offset)==null?void 0:v[u])||0)-(x?w.crossAxis:0);p<y?p=y:p>P&&(p=P)}return{[h]:d,[u]:p}}}},Ie=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:l=()=>{},...a}=X(t,e),f=await it(e,a),u=q(i),h=Q(i),d=U(i)==="y",{width:p,height:m}=r.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=h===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=h==="end"?"top":"bottom");const v=m-f.top-f.bottom,b=p-f.left-f.right,x=Z(m-f[w],v),y=Z(p-f[g],b),P=!e.middlewareData.shift;let O=x,E=y;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(E=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(O=v),P&&!h){const C=H(f.left,0),k=H(f.right,0),F=H(f.top,0),R=H(f.bottom,0);d?E=p-2*(C!==0||k!==0?C+k:H(f.left,f.right)):O=m-2*(F!==0||R!==0?F+R:H(f.top,f.bottom))}await l({...e,availableWidth:E,availableHeight:O});const N=await s.getDimensions(c.floating);return p!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function mt(){return typeof window<"u"}function tt(t){return qt(t)?(t.nodeName||"").toLowerCase():"#document"}function W(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function V(t){var e;return(e=(qt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qt(t){return mt()?t instanceof Node||t instanceof W(t).Node:!1}function z(t){return mt()?t instanceof Element||t instanceof W(t).Element:!1}function I(t){return mt()?t instanceof HTMLElement||t instanceof W(t).HTMLElement:!1}function Ut(t){return!mt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof W(t).ShadowRoot}function rt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=_(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ye(t){return["table","td","th"].includes(tt(t))}function gt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Et(t){const e=Tt(),n=z(t)?_(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function je(t){let e=K(t);for(;I(e)&&!et(e);){if(Et(e))return e;if(gt(e))return null;e=K(e)}return null}function Tt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function et(t){return["html","body","#document"].includes(tt(t))}function _(t){return W(t).getComputedStyle(t)}function wt(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ut(t)&&t.host||V(t);return Ut(e)?e.host:e}function Zt(t){const e=K(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&rt(e)?e:Zt(e)}function st(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Zt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=W(i);if(r){const c=Dt(s);return e.concat(s,s.visualViewport||[],rt(i)?i:[],c&&n?st(c):[])}return e.concat(i,st(i,[],n))}function Dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Kt(t){const e=_(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=I(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=ut(n)!==r||ut(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function Lt(t){return z(t)?t:t.contextElement}function nt(t){const e=Lt(t);if(!I(e))return B(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Kt(e);let s=(r?ut(n.width):n.width)/o,c=(r?ut(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Xe=B(0);function Gt(t){const e=W(t);return!Tt()||!e.visualViewport?Xe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==W(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=Lt(t);let s=B(1);e&&(o?z(o)&&(s=nt(o)):s=nt(t));const c=qe(r,n,o)?Gt(r):B(0);let l=(i.left+c.x)/s.x,a=(i.top+c.y)/s.y,f=i.width/s.x,u=i.height/s.y;if(r){const h=W(r),d=o&&z(o)?W(o):o;let p=h,m=Dt(p);for(;m&&o&&d!==p;){const w=nt(m),g=m.getBoundingClientRect(),v=_(m),b=g.left+(m.clientLeft+parseFloat(v.paddingLeft))*w.x,x=g.top+(m.clientTop+parseFloat(v.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=x,p=W(m),m=Dt(p)}}return ht({width:f,height:u,x:l,y:a})}function Mt(t,e){const n=wt(t).scrollLeft;return e?e.left+n:G(V(t)).left+n}function Jt(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-(n?0:Mt(t,o)),r=o.top+e.scrollTop;return{x:i,y:r}}function Ue(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=V(o),c=e?gt(e.floating):!1;if(o===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=B(1);const f=B(0),u=I(o);if((u||!u&&!r)&&((tt(o)!=="body"||rt(s))&&(l=wt(o)),I(o))){const d=G(o);a=nt(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const h=s&&!u&&!r?Jt(s,l,!0):B(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+h.x,y:n.y*a.y-l.scrollTop*a.y+f.y+h.y}}function Ze(t){return Array.from(t.getClientRects())}function Ke(t){const e=V(t),n=wt(t),o=t.ownerDocument.body,i=H(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=H(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Mt(t);const c=-n.scrollTop;return _(o).direction==="rtl"&&(s+=H(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function Ge(t,e){const n=W(t),o=V(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const a=Tt();(!a||a&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}function Je(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=I(t)?nt(t):B(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,a=o*r.y;return{width:s,height:c,x:l,y:a}}function Qt(t,e,n){let o;if(e==="viewport")o=Ge(t,n);else if(e==="document")o=Ke(V(t));else if(z(e))o=Je(e,n);else{const i=Gt(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return ht(o)}function te(t,e){const n=K(t);return n===e||!z(n)||et(n)?!1:_(n).position==="fixed"||te(n,e)}function Qe(t,e){const n=e.get(t);if(n)return n;let o=st(t,[],!1).filter(c=>z(c)&&tt(c)!=="body"),i=null;const r=_(t).position==="fixed";let s=r?K(t):t;for(;z(s)&&!et(s);){const c=_(s),l=Et(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rt(s)&&!l&&te(t,s))?o=o.filter(f=>f!==s):i=c,s=K(s)}return e.set(t,o),o}function tn(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?gt(e)?[]:Qe(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Qt(e,f,i);return a.top=H(u.top,a.top),a.right=Z(u.right,a.right),a.bottom=Z(u.bottom,a.bottom),a.left=H(u.left,a.left),a},Qt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function en(t){const{width:e,height:n}=Kt(t);return{width:e,height:n}}function nn(t,e,n){const o=I(e),i=V(e),r=n==="fixed",s=G(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=B(0);function a(){l.x=Mt(i)}if(o||!o&&!r)if((tt(e)!=="body"||rt(i))&&(c=wt(e)),o){const d=G(e,!0,r,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else i&&a();r&&!o&&i&&a();const f=i&&!o&&!r?Jt(i,c):B(0),u=s.left+c.scrollLeft-l.x-f.x,h=s.top+c.scrollTop-l.y-f.y;return{x:u,y:h,width:s.width,height:s.height}}function $t(t){return _(t).position==="static"}function ee(t,e){if(!I(t)||_(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function ne(t,e){const n=W(t);if(gt(t))return n;if(!I(t)){let i=K(t);for(;i&&!et(i);){if(z(i)&&!$t(i))return i;i=K(i)}return n}let o=ee(t,e);for(;o&&Ye(o)&&$t(o);)o=ee(o,e);return o&&et(o)&&$t(o)&&!Et(o)?n:o||je(t)||n}const on=async function(t){const e=this.getOffsetParent||ne,n=this.getDimensions,o=await n(t.floating);return{reference:nn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function rn(t){return _(t).direction==="rtl"}const sn={convertOffsetParentRelativeRectToViewportRelativeRect:Ue,getDocumentElement:V,getClippingRect:tn,getOffsetParent:ne,getElementRects:on,getClientRects:Ze,getDimensions:en,getScale:nt,isElement:z,isRTL:rn};function oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function cn(t,e){let n=null,o;const i=V(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const a=t.getBoundingClientRect(),{left:f,top:u,width:h,height:d}=a;if(c||e(),!h||!d)return;const p=dt(u),m=dt(i.clientWidth-(f+h)),w=dt(i.clientHeight-(u+d)),g=dt(f),b={rootMargin:-p+"px "+-m+"px "+-w+"px "+-g+"px",threshold:H(0,Z(1,l))||1};let x=!0;function y(P){const O=P[0].intersectionRatio;if(O!==l){if(!x)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!oe(a,t.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(y,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(y,b)}n.observe(t)}return s(!0),r}function ln(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Lt(t),f=i||r?[...a?st(a):[],...st(e)]:[];f.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const u=a&&c?cn(a,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(g=>{let[v]=g;v&&v.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,m=l?G(t):null;l&&w();function w(){const g=G(t);m&&!oe(m,g)&&n(),m=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(v=>{i&&v.removeEventListener("scroll",n),r&&v.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const an=_e,fn=Be,un=He,dn=Ie,pn=We,ie=Ne,hn=Ve,mn=(t,e,n)=>{const o=new Map,i={platform:sn,...n},r={...i.platform,_c:o};return Fe(t,e,{...i,platform:r})};var xt=typeof document<"u"?Oe:Bt;function yt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!yt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!yt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function re(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function se(t,e){const n=re(t);return Math.round(e*n)/n}function kt(t){const e=J(t);return xt(()=>{e.current=t}),e}function gn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=Y({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,d]=Y(o);yt(h,o)||d(o);const[p,m]=Y(null),[w,g]=Y(null),v=vt(A=>{A!==P.current&&(P.current=A,m(A))},[]),b=vt(A=>{A!==O.current&&(O.current=A,g(A))},[]),x=r||p,y=s||w,P=J(null),O=J(null),E=J(f),N=l!=null,C=kt(l),k=kt(i),F=kt(a),R=vt(()=>{if(!P.current||!O.current)return;const A={placement:e,strategy:n,middleware:h};k.current&&(A.platform=k.current),mn(P.current,O.current,A).then(S=>{const M={...S,isPositioned:F.current!==!1};$.current&&!yt(E.current,M)&&(E.current=M,Pe(()=>{u(M)}))})},[h,e,n,k,F]);xt(()=>{a===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const $=J(!1);xt(()=>($.current=!0,()=>{$.current=!1}),[]),xt(()=>{if(x&&(P.current=x),y&&(O.current=y),x&&y){if(C.current)return C.current(x,y,R);R()}},[x,y,R,C,N]);const T=at(()=>({reference:P,floating:O,setReference:v,setFloating:b}),[v,b]),D=at(()=>({reference:x,floating:y}),[x,y]),L=at(()=>{const A={position:n,left:0,top:0};if(!D.floating)return A;const S=se(D.floating,f.x),M=se(D.floating,f.y);return c?{...A,transform:"translate("+S+"px, "+M+"px)",...re(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:S,top:M}},[n,c,D.floating,f.x,f.y]);return at(()=>({...f,update:R,refs:T,elements:D,floatingStyles:L}),[f,R,T,D,L])}const wn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?ie({element:o.current,padding:i}).fn(n):{}:o?ie({element:o,padding:i}).fn(n):{}}}},xn=(t,e)=>({...an(t),options:[t,e]}),yn=(t,e)=>({...fn(t),options:[t,e]}),vn=(t,e)=>({...hn(t),options:[t,e]}),bn=(t,e)=>({...un(t),options:[t,e]}),An=(t,e)=>({...dn(t),options:[t,e]}),On=(t,e)=>({...pn(t),options:[t,e]}),Pn=(t,e)=>({...wn(t),options:[t,e]});var Rn="Arrow",ce=ft((t,e)=>{const{children:n,width:o=10,height:i=5,...r}=t;return j(bt.svg,{...r,ref:e,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:j("polygon",{points:"0,0 30,0 15,10"})})});ce.displayName=Rn;var Cn=ce;function Sn(t){const[e,n]=Y(void 0);return At(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,c;if("borderBoxSize"in r){const l=r.borderBoxSize,a=Array.isArray(l)?l[0]:l;s=a.inlineSize,c=a.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}var Ft="Popper",[le,En]=Re(Ft),[Tn,ae]=le(Ft),Nt=t=>{const{__scopePopper:e,children:n}=t,[o,i]=Y(null);return j(Tn,{scope:e,anchor:o,onAnchorChange:i,children:n})};Nt.displayName=Ft;var fe="PopperAnchor",Ht=ft((t,e)=>{const{__scopePopper:n,virtualRef:o,...i}=t,r=ae(fe,n),s=J(null),c=Vt(e,s);return Bt(()=>{r.onAnchorChange(o?.current||s.current)}),o?null:j(bt.div,{...i,ref:c})});Ht.displayName=fe;var Wt="PopperContent",[Dn,Ln]=le(Wt),zt=ft((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...m}=t,w=ae(Wt,n),[g,v]=Y(null),b=Vt(e,ot=>v(ot)),[x,y]=Y(null),P=Sn(x),O=P?.width??0,E=P?.height??0,N=o+(r!=="center"?"-"+r:""),C=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},k=Array.isArray(a)?a:[a],F=k.length>0,R={padding:C,boundary:k.filter($n),altBoundary:F},{refs:$,floatingStyles:T,placement:D,isPositioned:L,middlewareData:A}=gn({strategy:"fixed",placement:N,whileElementsMounted:(...ot)=>ln(...ot,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[xn({mainAxis:i+E,alignmentAxis:s}),l&&yn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?vn():void 0,...R}),l&&bn({...R}),An({...R,apply:({elements:ot,rects:_t,availableWidth:ye,availableHeight:ve})=>{const{width:be,height:Ae}=_t.reference,lt=ot.floating.style;lt.setProperty("--radix-popper-available-width",`${ye}px`),lt.setProperty("--radix-popper-available-height",`${ve}px`),lt.setProperty("--radix-popper-anchor-width",`${be}px`),lt.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),x&&Pn({element:x,padding:c}),kn({arrowWidth:O,arrowHeight:E}),h&&On({strategy:"referenceHidden",...R})]}),[S,M]=pe(D),ct=Ce(p);At(()=>{L&&ct?.()},[L,ct]);const he=A.arrow?.x,me=A.arrow?.y,ge=A.arrow?.centerOffset!==0,[we,xe]=Y();return At(()=>{g&&xe(window.getComputedStyle(g).zIndex)},[g]),j("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:L?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,["--radix-popper-transform-origin"]:[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:j(Dn,{scope:n,placedSide:S,onArrowChange:y,arrowX:he,arrowY:me,shouldHideArrow:ge,children:j(bt.div,{"data-side":S,"data-align":M,...m,ref:b,style:{...m.style,animation:L?void 0:"none"}})})})});zt.displayName=Wt;var ue="PopperArrow",Mn={top:"bottom",right:"left",bottom:"top",left:"right"},de=ft(function(e,n){const{__scopePopper:o,...i}=e,r=Ln(ue,o),s=Mn[r.placedSide];return j("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:j(Cn,{...i,ref:n,style:{...i.style,display:"block"}})})});de.displayName=ue;function $n(t){return t!==null}var kn=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:i}=e,s=i.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=pe(n),u={start:"0%",center:"50%",end:"100%"}[f],h=(i.arrow?.x??0)+c/2,d=(i.arrow?.y??0)+l/2;let p="",m="";return a==="bottom"?(p=s?u:`${h}px`,m=`${-l}px`):a==="top"?(p=s?u:`${h}px`,m=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,m=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,m=s?u:`${d}px`),{data:{x:p,y:m}}}});function pe(t){const[e,n="center"]=t.split("-");return[e,n]}var Fn=Nt,Nn=Ht,Hn=zt,Wn=de;export{Nn as A,Hn as C,Nt as P,Fn as R,Wn as a,zt as b,En as c,Ht as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as Q,K as W,D as _,y as N,u as d,A as O,d as K,q as E}from"./register-
|
|
1
|
+
import{x as Q,K as W,D as _,y as N,u as d,A as O,d as K,q as E}from"./register-CCbCrj5_.js";import{c as p}from"./index-CBrz5xtv.js";import{c as X}from"./index-BW69zWdn.js";import{u as Z}from"./index-ClR1Fu1m.js";import{a as $}from"./index-BFzCraLT.js";import{u as ee}from"./index-Bl8kxn1H.js";import{P as M}from"./index-B8JDggRZ.js";import{u as oe}from"./index-DWcIJqsU.js";import{u as te}from"./index-CxB09ekd.js";var re=W(void 0);function L(e){const t=Q(re);return e||t||"ltr"}var D="rovingFocusGroup.onEntryFocus",ne={bubbles:!1,cancelable:!0},I="RovingFocusGroup",[P,U,ce]=X(I),[se,ae]=$(I,[ce]),[ie,ue]=se(I),B=_((e,t)=>d(P.Provider,{scope:e.__scopeRovingFocusGroup,children:d(P.Slot,{scope:e.__scopeRovingFocusGroup,children:d(le,{...e,ref:t})})}));B.displayName=I;var le=_((e,t)=>{const{__scopeRovingFocusGroup:c,orientation:o,loop:i=!1,dir:T,currentTabStopId:v,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:S,onEntryFocus:m,preventScrollOnEntryFocus:s=!1,...F}=e,b=O(null),g=Z(t,b),R=L(T),[w,r]=te({prop:v,defaultProp:h??null,onChange:S,caller:I}),[u,C]=K(!1),a=oe(m),l=U(c),A=O(!1),[V,x]=K(0);return N(()=>{const n=b.current;if(n)return n.addEventListener(D,a),()=>n.removeEventListener(D,a)},[a]),d(ie,{scope:c,orientation:o,dir:R,loop:i,currentTabStopId:w,onItemFocus:E(n=>r(n),[r]),onItemShiftTab:E(()=>C(!0),[]),onFocusableItemAdd:E(()=>x(n=>n+1),[]),onFocusableItemRemove:E(()=>x(n=>n-1),[]),children:d(M.div,{tabIndex:u||V===0?-1:0,"data-orientation":o,...F,ref:g,style:{outline:"none",...e.style},onMouseDown:p(e.onMouseDown,()=>{A.current=!0}),onFocus:p(e.onFocus,n=>{const q=!A.current;if(n.target===n.currentTarget&&q&&!u){const G=new CustomEvent(D,ne);if(n.currentTarget.dispatchEvent(G),!G.defaultPrevented){const y=l().filter(f=>f.focusable),z=y.find(f=>f.active),j=y.find(f=>f.id===w),J=[z,j,...y].filter(Boolean).map(f=>f.ref.current);H(J,s)}}A.current=!1}),onBlur:p(e.onBlur,()=>C(!1))})})}),k="RovingFocusGroupItem",Y=_((e,t)=>{const{__scopeRovingFocusGroup:c,focusable:o=!0,active:i=!1,tabStopId:T,children:v,...h}=e,S=ee(),m=T||S,s=ue(k,c),F=s.currentTabStopId===m,b=U(c),{onFocusableItemAdd:g,onFocusableItemRemove:R,currentTabStopId:w}=s;return N(()=>{if(o)return g(),()=>R()},[o,g,R]),d(P.ItemSlot,{scope:c,id:m,focusable:o,active:i,children:d(M.span,{tabIndex:F?0:-1,"data-orientation":s.orientation,...h,ref:t,onMouseDown:p(e.onMouseDown,r=>{o?s.onItemFocus(m):r.preventDefault()}),onFocus:p(e.onFocus,()=>s.onItemFocus(m)),onKeyDown:p(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){s.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const u=me(r,s.orientation,s.dir);if(u!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let a=b().filter(l=>l.focusable).map(l=>l.ref.current);if(u==="last")a.reverse();else if(u==="prev"||u==="next"){u==="prev"&&a.reverse();const l=a.indexOf(r.currentTarget);a=s.loop?pe(a,l+1):a.slice(l+1)}setTimeout(()=>H(a))}}),children:typeof v=="function"?v({isCurrentTabStop:F,hasTabStop:w!=null}):v})})});Y.displayName=k;var fe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function de(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function me(e,t,c){const o=de(e.key,c);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return fe[o]}function H(e,t=!1){const c=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();for(const o of e)if(o===c||(o.focus({preventScroll:t}),(()=>{let i=document.activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i})()!==c))return}function pe(e,t){return e.map((c,o)=>e[(t+o)%e.length])}var ve=B,Ie=Y;export{Ie as I,ve as R,ae as c,L as u};
|