@optiaxiom/web-components 0.12.2 → 0.13.0-next.0
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/dist/ActionsRoot-jHONDwzt.js +1 -0
- package/dist/Alert-CcZcbpJ3.js +1 -0
- package/dist/AlertDialog-ByZ_JZXd.js +1 -0
- package/dist/{AlertDialogBody-D9UtTQwP.js → AlertDialogBody-BSY7leSh.js} +1 -1
- package/dist/AlertDialogFooter-CkQC4uFI.js +1 -0
- package/dist/AlertDialogHeader-DoJ65a6m.js +1 -0
- package/dist/AlertDialogTrigger-B4yAWJCM.js +1 -0
- package/dist/AngleMenuButton-lx4vgc0d.js +1 -0
- package/dist/Avatar-Cy9E-Cyy.js +1 -0
- package/dist/AvatarContext-BUybbOEk.js +1 -0
- package/dist/AvatarGroup-CBfSmP3n.js +1 -0
- package/dist/Badge-2RN48uwx.js +1 -0
- package/dist/Box-BV82RZkY.js +1 -0
- package/dist/Button-CEBPGPAA.js +1 -0
- package/dist/ButtonContext-BN2eAKVU.js +1 -0
- package/dist/ButtonGroup-BvNuIn_t.js +1 -0
- package/dist/ButtonRoot-76DR8dRY.js +1 -0
- package/dist/{Calendar-CXYRqNZM.js → Calendar-DGaN9wN_.js} +1 -1
- package/dist/CardContext-CZHIDF2s.js +1 -0
- package/dist/Combination-bwg6SCti.js +41 -0
- package/dist/Cover-CaKyDo53.js +1 -0
- package/dist/Cover.css.ts.vanilla-BLc5wcST-DlkYEb1u.js +1 -0
- package/dist/{DataTableAction-Df47DxgZ.js → DataTableAction-QAGnlQQ6.js} +1 -1
- package/dist/DataTableContext-C2z6lq-9.js +1 -0
- package/dist/{DataTableRowContext-Vpm-p8Ku.js → DataTableRowContext-8iSi49Ex.js} +1 -1
- package/dist/DateRangePickerContext-Xh3XC1_F.js +1 -0
- package/dist/DialogBody-BTctk8T9.js +1 -0
- package/dist/DialogBody.css.ts.vanilla-DzZ8okVZ-DPcLlaSD.js +1 -0
- package/dist/DialogFooter-dxFsDeTX.js +1 -0
- package/dist/DialogForm-DZjdKg87.js +1 -0
- package/dist/DialogTrigger-BKnqNbl6.js +1 -0
- package/dist/Disclosure-uQ58-yz_.js +1 -0
- package/dist/DisclosureContent-BwsCszlk.js +1 -0
- package/dist/{DisclosureContext-BxVXnCSO.js → DisclosureContext-D2HGu2YN.js} +1 -1
- package/dist/DisclosureTrigger-DC9pJtbS.js +1 -0
- package/dist/DropdownMenuContext-Djv2VdVX.js +1 -0
- package/dist/DropdownMenuNestedContext-yhjDKSFr.js +1 -0
- package/dist/DropdownMenuSubContext-CCbQkpKe.js +1 -0
- package/dist/{FieldContext-DNl9N283.js → FieldContext-Dqza0tHJ.js} +1 -1
- package/dist/FieldLabel-CZcHttVb.js +1 -0
- package/dist/{FilteredSlot-By0sa9J8.js → FilteredSlot-DtvpYzPA.js} +1 -1
- package/dist/Group-Bikb06zg.js +1 -0
- package/dist/Heading-5eQ2zLc5.js +1 -0
- package/dist/Icon-CK7w67FQ.js +1 -0
- package/dist/IconAngleDown-gVK6U7WX.js +1 -0
- package/dist/IconAngleLeft-hgK53nhz.js +1 -0
- package/dist/IconAngleRight-DcsIqZuK.js +1 -0
- package/dist/{IconCalendar-DID-YwuF.js → IconCalendar-BTpo5DbL.js} +1 -1
- package/dist/{IconEllipsis-CI33uOpw.js → IconEllipsis-C77c8OSS.js} +1 -1
- package/dist/{IconEllipsisSolid-CRDQctIy.js → IconEllipsisSolid-DSq4KPlQ.js} +1 -1
- package/dist/{IconMagnifyingGlass-CaZ-uQJC.js → IconMagnifyingGlass-U66_4qSw.js} +1 -1
- package/dist/{IconOpal-DdOexAp5.js → IconOpal--oA_XY42.js} +1 -1
- package/dist/{IconTriangleExclamationSolid-DgLdF9uR.js → IconTriangleExclamationSolid-Dqu3kd-F.js} +1 -1
- package/dist/{IconUpRightFromSquare-DQ7aHanw.js → IconUpRightFromSquare-eZGgVGW-.js} +1 -1
- package/dist/{IconX-C1ykhFB1.js → IconX-9RWTeOlB.js} +1 -1
- package/dist/Input-CpXJIs0o.js +1 -0
- package/dist/InputAddon-B8rLIkEZ.js +1 -0
- package/dist/InputContext-BF_7-DRf.js +1 -0
- package/dist/InputControl-B_qe0Rin.js +1 -0
- package/dist/InputControl.css.ts.vanilla-D7CdNrRK-BEowLkNL.js +1 -0
- package/dist/InputRoot-l4JyxWWh.js +1 -0
- package/dist/Link-BayNh_hZ.js +1 -0
- package/dist/Listbox-D6kosp24.js +1 -0
- package/dist/ListboxEmpty-ErY5Gn4e.js +1 -0
- package/dist/ListboxGroup-JEYs_nF7.js +1 -0
- package/dist/ListboxGroupContext-YaC6urry.js +1 -0
- package/dist/ListboxItem-BptHEHLL.js +1 -0
- package/dist/ListboxItemIndicator-Caa2jzhU.js +1 -0
- package/dist/ListboxItemized-Bd4_3_Fn.js +1 -0
- package/dist/ListboxLabel-CXdY3Qrm.js +1 -0
- package/dist/{ListboxRadioItem-DJQzkR-6.js → ListboxRadioItem-CHx7UvlN.js} +1 -1
- package/dist/ListboxSeparator-Yp_yBlds.js +1 -0
- package/dist/{Menu-BDISHhkl.js → Menu-IFMZiKKV.js} +1 -1
- package/dist/MenuContent-C7QOSZWZ.js +1 -0
- package/dist/MenuContext-CAIc_gAX.js +1 -0
- package/dist/MenuTrigger-D6SOaqM5.js +1 -0
- package/dist/{ModalLayer-GVPhTM2z.js → ModalLayer-CCLCW5zl.js} +1 -1
- package/dist/Nav-BGrZK1p7.js +1 -0
- package/dist/NavAccountItem-DSppdW6J.js +1 -0
- package/dist/{NavBody-B42FuUu7.js → NavBody-Brwlf99C.js} +1 -1
- package/dist/{NavFooter-CqTYpndO.js → NavFooter-4w-Td8Hj.js} +1 -1
- package/dist/{NavGroup-Btepn_Jx.js → NavGroup-WspllAjC.js} +1 -1
- package/dist/{NavGroupContent-BuKcY3Gq.js → NavGroupContent-DrQd3Oma.js} +1 -1
- package/dist/{NavGroupContext-BhiSFqjO.js → NavGroupContext-CKkjEDOW.js} +1 -1
- package/dist/{NavGroupTrigger-JPo590bV.js → NavGroupTrigger-DY19Gm1D.js} +1 -1
- package/dist/NavHeader-CTXsaFxH.js +1 -0
- package/dist/NavItem-DBJIss__.js +1 -0
- package/dist/NavList-D0Mt80Ot.js +1 -0
- package/dist/NavSeparator-C7nZxTcF.js +1 -0
- package/dist/Pagination-DCg3Sycw.js +1 -0
- package/dist/Paper-CjcILoas.js +1 -0
- package/dist/{Popover-Do3f7GbD.js → Popover-CGSzddAy.js} +1 -1
- package/dist/PopoverAnchor-CvSeHBqr.js +1 -0
- package/dist/{PopoverTrigger-BJV9w-GA.js → PopoverTrigger-B-fBuOz7.js} +1 -1
- package/dist/{Portal-DknBz2tV.js → Portal-DhhE1MIL.js} +1 -1
- package/dist/PortalContext-BMbJPZJV.js +1 -0
- package/dist/RadioGroupContext-B7Z3XDPp.js +1 -0
- package/dist/{SegmentedControlContext-iNTho-R2.js → SegmentedControlContext-DOpP-Y1m.js} +1 -1
- package/dist/Select-D-7rT_5g.js +1 -0
- package/dist/{SelectContent-RJgRhyRl.js → SelectContent-C5-fxlU8.js} +1 -1
- package/dist/{SelectContext-Cs7YzCff.js → SelectContext-CaCqIGYx.js} +1 -1
- package/dist/{SelectTrigger-DpnaXd71.js → SelectTrigger-BFt9e4z7.js} +1 -1
- package/dist/Separator-BywuUEab.js +1 -0
- package/dist/SidebarContext-C8m9UzcJ.js +1 -0
- package/dist/Skeleton-E_VV8-0b.js +1 -0
- package/dist/Spinner-DHJLSuge.js +1 -0
- package/dist/SuggestionPopover-lXicWhkL.js +9 -0
- package/dist/Table-zW9DU6Em.js +1 -0
- package/dist/TableAction-BJc0shC-.js +1 -0
- package/dist/TableBody-CbMTXZm0.js +1 -0
- package/dist/TableCell-CN4pKqkP.js +1 -0
- package/dist/TableHeader-BEfF4SsT.js +1 -0
- package/dist/TableHeaderCell-CphF4szM.js +1 -0
- package/dist/TableRow-M2g5_4ud.js +1 -0
- package/dist/TableRow.css.ts.vanilla-AxUvsdb5-DevsmkSG.js +1 -0
- package/dist/Text-DmWHegjQ.js +1 -0
- package/dist/{ThemeProvider-APnk6_5U.js → ThemeProvider-inNvPO6u.js} +1 -1
- package/dist/ToastProvider-B_QFWbn7.js +1 -0
- package/dist/ToggleInputLabel-BgsjI0iJ.js +1 -0
- package/dist/{Tooltip-Cp1WeGF9.js → Tooltip-DSqIroK_.js} +1 -1
- package/dist/TooltipContent-MbupXxr3.js +1 -0
- package/dist/TooltipContext-zD8hbTH7.js +1 -0
- package/dist/TooltipProvider-DwVQlvj7.js +1 -0
- package/dist/{TooltipRoot-D7ZSju0W.js → TooltipRoot-B_zpoHnK.js} +1 -1
- package/dist/TooltipTrigger-B8cXbnIc.js +1 -0
- package/dist/Transition-Bhp-QKNP.js +1 -0
- package/dist/{TransitionGroup-DVncmcdD.js → TransitionGroup-Bn4ErChn.js} +1 -1
- package/dist/TransitionGroupContext-YpV8Y-Zq.js +1 -0
- package/dist/{VisuallyHidden-M0udTQ6g.js → VisuallyHidden-DVkON-1I.js} +1 -1
- package/dist/assets/files/roboto-condensed-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-condensed-cyrillic-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-condensed-greek-ext-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-condensed-greek-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-condensed-latin-ext-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-condensed-latin-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-condensed-vietnamese-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-cyrillic-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-greek-ext-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-greek-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-latin-ext-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-latin-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-math-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-mono-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-mono-cyrillic-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-mono-greek-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-mono-latin-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-mono-vietnamese-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-symbols-wght-normal.woff2 +0 -0
- package/dist/assets/files/roboto-vietnamese-wght-normal.woff2 +0 -0
- package/dist/components/Alert.js +1 -1
- package/dist/components/AlertDialog.js +1 -1
- package/dist/components/AlertDialogAction.d.ts +1 -0
- package/dist/components/AlertDialogAction.js +1 -1
- package/dist/components/AlertDialogBody.js +1 -1
- package/dist/components/AlertDialogCancel.d.ts +1 -0
- package/dist/components/AlertDialogCancel.js +1 -1
- package/dist/components/AlertDialogContent.js +1 -1
- package/dist/components/AlertDialogFooter.js +1 -1
- package/dist/components/AlertDialogHeader.js +1 -1
- package/dist/components/AlertDialogTrigger.d.ts +1 -0
- package/dist/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AngleMenuButton.d.ts +1 -0
- package/dist/components/AngleMenuButton.js +1 -1
- package/dist/components/AuthProvider.js +1 -1
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarGroup.js +1 -1
- package/dist/components/AxiomProvider.js +1 -1
- package/dist/components/Badge.js +1 -1
- package/dist/components/Banner.js +1 -1
- package/dist/components/Box.d.ts +4 -2
- package/dist/components/Box.js +1 -1
- package/dist/components/Breadcrumb.js +1 -1
- package/dist/components/Button.d.ts +1 -0
- package/dist/components/Button.js +1 -1
- package/dist/components/ButtonGroup.js +1 -1
- package/dist/components/Card.js +1 -1
- package/dist/components/CardAction.js +1 -1
- package/dist/components/CardCheckbox.d.ts +2 -0
- package/dist/components/CardCheckbox.js +1 -1
- package/dist/components/CardFooter.js +1 -1
- package/dist/components/CardHeader.d.ts +3 -0
- package/dist/components/CardHeader.js +1 -1
- package/dist/components/CardImage.js +1 -1
- package/dist/components/CardLink.js +1 -1
- package/dist/components/CardPreview.js +1 -1
- package/dist/components/Checkbox.d.ts +2 -0
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Code.js +1 -1
- package/dist/components/Cover.js +1 -1
- package/dist/components/DataTable.js +1 -1
- package/dist/components/DataTableAction.js +1 -1
- package/dist/components/DataTableBody.js +2 -2
- package/dist/components/DataTableCheckbox.d.ts +2 -0
- package/dist/components/DataTableCheckbox.js +1 -1
- package/dist/components/DataTableFooter.js +1 -1
- package/dist/components/DataTableLabel.js +1 -1
- package/dist/components/DateInput.d.ts +3 -0
- package/dist/components/DateInput.js +1 -1
- package/dist/components/DateRangePicker.js +1 -1
- package/dist/components/DateRangePickerContent.d.ts +2 -2
- package/dist/components/DateRangePickerContent.js +1 -1
- package/dist/components/DateRangePickerTrigger.d.ts +1 -0
- package/dist/components/DateRangePickerTrigger.js +1 -1
- package/dist/components/Dialog.js +1 -1
- package/dist/components/DialogBody.js +1 -1
- package/dist/components/DialogClose.d.ts +1 -0
- package/dist/components/DialogClose.js +1 -1
- package/dist/components/DialogContent.js +1 -1
- package/dist/components/DialogFooter.js +1 -1
- package/dist/components/DialogForm.js +1 -1
- package/dist/components/DialogHeader.d.ts +3 -0
- package/dist/components/DialogHeader.js +1 -1
- package/dist/components/DialogTrigger.d.ts +1 -0
- package/dist/components/DialogTrigger.js +1 -1
- package/dist/components/Disclosure.js +1 -1
- package/dist/components/DisclosureContent.js +1 -1
- package/dist/components/DisclosureTrigger.js +1 -1
- package/dist/components/DropdownMenu.js +1 -1
- package/dist/components/DropdownMenuCheckboxItem.js +1 -1
- package/dist/components/DropdownMenuContent.d.ts +2 -2
- package/dist/components/DropdownMenuContent.js +1 -1
- package/dist/components/DropdownMenuGroup.js +1 -1
- package/dist/components/DropdownMenuItem.js +1 -1
- package/dist/components/DropdownMenuLabel.js +1 -1
- package/dist/components/DropdownMenuSeparator.js +1 -1
- package/dist/components/DropdownMenuSub.js +1 -1
- package/dist/components/DropdownMenuSubContent.js +1 -1
- package/dist/components/DropdownMenuTrigger.d.ts +1 -0
- package/dist/components/DropdownMenuTrigger.js +1 -1
- package/dist/components/EllipsisMenuButton.d.ts +1 -0
- package/dist/components/EllipsisMenuButton.js +1 -1
- package/dist/components/Field.js +1 -1
- package/dist/components/FieldLabel.js +1 -1
- package/dist/components/Flex.js +1 -1
- package/dist/components/Grid.js +1 -1
- package/dist/components/Group.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/Indicator.js +1 -1
- package/dist/components/Input.d.ts +4 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputAddon.js +1 -1
- package/dist/components/InputControl.d.ts +1 -0
- package/dist/components/InputControl.js +1 -1
- package/dist/components/InputRoot.js +1 -1
- package/dist/components/Kbd.js +1 -1
- package/dist/components/LabelMenuButton.d.ts +1 -0
- package/dist/components/LabelMenuButton.js +1 -1
- package/dist/components/Link.js +1 -1
- package/dist/components/Listbox.js +1 -1
- package/dist/components/ListboxCheckboxItem.js +1 -1
- package/dist/components/ListboxEmpty.js +1 -1
- package/dist/components/ListboxGroup.js +1 -1
- package/dist/components/ListboxItem.js +1 -1
- package/dist/components/ListboxItemIndicator.js +1 -1
- package/dist/components/ListboxItemized.js +1 -1
- package/dist/components/ListboxLabel.js +1 -1
- package/dist/components/ListboxRadioItem.js +1 -1
- package/dist/components/ListboxSeparator.js +1 -1
- package/dist/components/ListboxSwitchItem.js +1 -1
- package/dist/components/Menu.d.ts +4 -4
- package/dist/components/Menu.js +1 -1
- package/dist/components/MenuContent.d.ts +2 -2
- package/dist/components/MenuContent.js +1 -1
- package/dist/components/MenuTrigger.d.ts +1 -0
- package/dist/components/MenuTrigger.js +1 -1
- package/dist/components/ModalLayer.js +1 -1
- package/dist/components/Nav.js +1 -1
- package/dist/components/NavAccountItem.js +1 -1
- package/dist/components/NavBody.js +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.js +1 -1
- package/dist/components/NavGroupTrigger.js +1 -1
- package/dist/components/NavHeader.js +1 -1
- package/dist/components/NavItem.js +1 -1
- package/dist/components/NavList.js +1 -1
- package/dist/components/NavSeparator.js +1 -1
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Paper.js +1 -1
- package/dist/components/Popover.js +1 -1
- package/dist/components/PopoverAnchor.js +1 -1
- package/dist/components/PopoverContent.d.ts +2 -2
- package/dist/components/PopoverContent.js +1 -1
- package/dist/components/PopoverTrigger.d.ts +1 -0
- package/dist/components/PopoverTrigger.js +1 -1
- package/dist/components/Progress.js +2 -2
- package/dist/components/Radio.d.ts +2 -0
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/SearchInput.d.ts +4 -1
- package/dist/components/SearchInput.js +1 -1
- package/dist/components/SegmentedControl.js +1 -1
- package/dist/components/SegmentedControlItem.d.ts +1 -0
- package/dist/components/SegmentedControlItem.js +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/SelectContent.d.ts +2 -2
- package/dist/components/SelectContent.js +1 -1
- package/dist/components/SelectTrigger.d.ts +1 -0
- package/dist/components/SelectTrigger.js +1 -1
- package/dist/components/Separator.js +1 -1
- package/dist/components/Sidebar.js +1 -1
- package/dist/components/SidebarToggle.js +1 -1
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Spinner.js +1 -1
- package/dist/components/SubNav.js +1 -1
- package/dist/components/Switch.d.ts +2 -0
- package/dist/components/Switch.js +1 -1
- package/dist/components/Table.js +1 -1
- package/dist/components/TableAction.js +1 -1
- package/dist/components/TableBody.js +1 -1
- package/dist/components/TableCell.js +1 -1
- package/dist/components/TableHeader.js +1 -1
- package/dist/components/TableHeaderCell.js +1 -1
- package/dist/components/TableRow.js +1 -1
- package/dist/components/Tabs.js +1 -1
- package/dist/components/TabsContent.js +1 -1
- package/dist/components/TabsList.js +1 -1
- package/dist/components/TabsTrigger.js +1 -1
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.d.ts +1 -0
- package/dist/components/Textarea.js +1 -1
- package/dist/components/ThemeProvider.js +1 -1
- package/dist/components/ToastProvider.d.ts +2 -2
- package/dist/components/ToastProvider.js +1 -1
- package/dist/components/ToggleButton.d.ts +1 -0
- package/dist/components/ToggleButton.js +1 -1
- package/dist/components/Tooltip.d.ts +9 -7
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/TooltipContent.d.ts +1 -1
- package/dist/components/TooltipContent.js +1 -1
- package/dist/components/TooltipProvider.js +1 -1
- package/dist/components/TooltipRoot.js +1 -1
- package/dist/components/TooltipTrigger.js +1 -1
- package/dist/components/Transition.d.ts +1 -1
- package/dist/components/Transition.js +1 -1
- package/dist/components/TransitionGroup.js +1 -1
- package/dist/context-DJtOiwDQ.js +1 -0
- package/dist/{decorateChildren-Bj7rUyDi.js → decorateChildren-do-vOWHx.js} +1 -1
- package/dist/fallbackSpan-d6klaC7f.js +1 -0
- package/dist/{index-CuhzkxaS.js → index-BKlKRsse.js} +1 -1
- package/dist/{index-D7g1Oyvu.js → index-BTwkmpVj.js} +1 -1
- package/dist/index-B_JrwY8n.js +1 -0
- package/dist/{index-Gs4vZeiM.js → index-C7fKas4_.js} +1 -1
- package/dist/{index-C58K3GYC.js → index-CFq6lvZP.js} +1 -1
- package/dist/{index-BG4dG-Iq.js → index-CJuJCEW7.js} +1 -1
- package/dist/{index-DHPSuaxQ.js → index-CaYw82Ta.js} +1 -1
- package/dist/{index-DeygxzFt.js → index-DT48woGj.js} +1 -1
- package/dist/index-Dj1rhm_A.js +1 -0
- package/dist/{index-IiF_L-ye.js → index-DjhLcS-z.js} +1 -1
- package/dist/{index-Btk4uD1X.js → index-JflTCg0X.js} +1 -1
- package/dist/{index-CYRAviFT.js → index-LgFI4FKk.js} +1 -1
- package/dist/{index-814ZKCzc.js → index-PCmNsJE2.js} +1 -1
- package/dist/{index-88FxG66J.js → index-PGsQ2egI.js} +1 -1
- package/dist/{index-ZcblEvmz.js → index-_cB1xrqH.js} +1 -1
- package/dist/{index-CPA450TQ.js → index-bWspXLUq.js} +1 -1
- package/dist/{index-DH8UsLYJ.js → index-dQ7vVUlv.js} +1 -1
- package/dist/{index-Cqupd6Wy.js → index-iVhrlgyt.js} +1 -1
- package/dist/{index-C4th3xJ6.js → index-mY4LmL6N.js} +1 -1
- package/dist/{index-B6RD2OJe.js → index-op-_wwUZ.js} +1 -1
- package/dist/{index-C9WpI2Tm.js → index-qaafyueB.js} +1 -1
- package/dist/{index-zezTOB-o.js → index-vkj6JGET.js} +1 -1
- package/dist/index.d.ts +77 -30
- package/dist/index.js +1 -1
- package/dist/{isHoverSupported-D44d_mIZ.js → isHoverSupported-Niv4ro8u.js} +1 -1
- package/dist/layers.css.ts.vanilla-Cmtjywky-Bg0GBLhn.js +1 -0
- package/dist/{modal-context-CZkiy5HR.js → modal-context-DznF5edb.js} +1 -1
- package/dist/{onReactSelectInputBlur-BUPsLbov.js → onReactSelectInputBlur-KoipXB_e.js} +1 -1
- package/dist/propTypes-4_fjuMiv.js +1 -0
- package/dist/{register-DILttFUh.js → register-BMG3ml_B.js} +1 -1
- package/dist/{theme-css-Bg5Y5ztL.js → theme-css-Be4zmtTa.js} +1 -1
- package/dist/{useEffectEvent-5wnppbDW.js → useEffectEvent-CIvOsLTR.js} +1 -1
- package/dist/{useFieldLabelTrigger-CpzyAb5U.js → useFieldLabelTrigger-8gU7iAvH.js} +1 -1
- package/dist/{useHighlightedIndex-DrE493g8.js → useHighlightedIndex-D8EpX4Xr.js} +1 -1
- package/dist/useMenuSurface-B5iwMO-d.js +1 -0
- package/dist/{useObserveValue-xCZTzwM7.js → useObserveValue-D5uGIN6E.js} +1 -1
- package/dist/{usePopoverScope-De1MMmlq.js → usePopoverScope-BtLhPs8F.js} +1 -1
- package/dist/{useSuggestions-D3R3F2ga.js → useSuggestions-MOMPhSJu.js} +1 -1
- package/dist/{useSurface-atV-PbfZ.js → useSurface-C9aFdtGs.js} +1 -1
- package/dist/{withIcon-DK-_INtN.js → withIcon-CEF1JQc-.js} +1 -1
- package/package.json +3 -3
- package/dist/ActionsRoot-D0ocY-JV.js +0 -1
- package/dist/Alert-8leDfbyn.js +0 -1
- package/dist/AlertDialog-D2d0AUTI.js +0 -1
- package/dist/AlertDialogFooter-EV4CepQk.js +0 -1
- package/dist/AlertDialogHeader-0b2BZR0N.js +0 -1
- package/dist/AlertDialogTrigger-0msD9023.js +0 -1
- package/dist/AngleMenuButton-DA392WZQ.js +0 -1
- package/dist/Avatar-s48JunGD.js +0 -1
- package/dist/AvatarContext-Dw3umcic.js +0 -1
- package/dist/AvatarGroup-DN1JeYJj.js +0 -1
- package/dist/Badge-BIUTLFxx.js +0 -1
- package/dist/Box-NSKXdhla.js +0 -1
- package/dist/Button-CbsdJ7z_.js +0 -1
- package/dist/ButtonContext-B7n1cluB.js +0 -1
- package/dist/ButtonGroup-Bi0Foo7-.js +0 -1
- package/dist/ButtonRoot-CwkLiI1E.js +0 -1
- package/dist/CardContext-CwHdVCtW.js +0 -1
- package/dist/Combination-BuDWzATy.js +0 -41
- package/dist/Cover-DCpquHUi.js +0 -1
- package/dist/Cover.css.ts.vanilla-Bw5lqEv8-C5bIYG0J.js +0 -1
- package/dist/DataTableContext-kCAmo7fR.js +0 -1
- package/dist/DateRangePickerContext-BPwQLKFP.js +0 -1
- package/dist/DialogBody-ByYicb2Y.js +0 -1
- package/dist/DialogBody.css.ts.vanilla-CwijUzeT-B1-2YKb1.js +0 -1
- package/dist/DialogFooter-DmnZlNZQ.js +0 -1
- package/dist/DialogForm-DpT3w4n1.js +0 -1
- package/dist/DialogTrigger-BEgLW4SG.js +0 -1
- package/dist/Disclosure-BSNO_1mU.js +0 -1
- package/dist/DisclosureContent-n1mCuKCv.js +0 -1
- package/dist/DisclosureTrigger-D81sAwDz.js +0 -1
- package/dist/DropdownMenuContext-Bq9TjaZi.js +0 -1
- package/dist/DropdownMenuNestedContext-CYAMJWc1.js +0 -1
- package/dist/DropdownMenuSubContext-COmdhAeQ.js +0 -1
- package/dist/FieldLabel-Dc3BIxFa.js +0 -1
- package/dist/Group-3-A-MDD4.js +0 -1
- package/dist/Heading-B-qiC-af.js +0 -1
- package/dist/Icon-Ch3T1RbN.js +0 -1
- package/dist/IconAngleDown-BjSWDRNg.js +0 -1
- package/dist/IconAngleLeft-5AsGoiai.js +0 -1
- package/dist/IconAngleRight-Bu3ngCJK.js +0 -1
- package/dist/Input-BIhM5FLM.js +0 -1
- package/dist/InputAddon-De31eWLB.js +0 -1
- package/dist/InputContext-cFi8nHRF.js +0 -1
- package/dist/InputControl-BBjnGjCa.js +0 -1
- package/dist/InputControl.css.ts.vanilla-BA6qs5Zw-BOk8z5e8.js +0 -1
- package/dist/InputRoot-C00mfu6N.js +0 -1
- package/dist/Link-50hkmoN0.js +0 -1
- package/dist/Listbox-Cu2CabeL.js +0 -1
- package/dist/ListboxEmpty-CfhZ8nCQ.js +0 -1
- package/dist/ListboxGroup-DAWstG60.js +0 -1
- package/dist/ListboxGroupContext-BMRUCzoS.js +0 -1
- package/dist/ListboxItem-BiVsJLKo.js +0 -1
- package/dist/ListboxItemIndicator-BgdT6gEH.js +0 -1
- package/dist/ListboxItemized-XxIqOG7v.js +0 -1
- package/dist/ListboxLabel-DFSsvegb.js +0 -1
- package/dist/ListboxSeparator-dvBdS-WA.js +0 -1
- package/dist/MenuContent-D_zxB7xs.js +0 -1
- package/dist/MenuContext-_WkGdVLn.js +0 -1
- package/dist/MenuTrigger-Cqg9mG3E.js +0 -1
- package/dist/Nav-ByR5UrUS.js +0 -1
- package/dist/NavAccountItem-8g-XnEub.js +0 -1
- package/dist/NavHeader-CgMixA9y.js +0 -1
- package/dist/NavItem-BRZfRfoC.js +0 -1
- package/dist/NavList-DdwtGv60.js +0 -1
- package/dist/NavSeparator-BjpedUsy.js +0 -1
- package/dist/Pagination-xYazQDSR.js +0 -1
- package/dist/Paper-BGfbvj3M.js +0 -1
- package/dist/PopoverAnchor-D7egmDCK.js +0 -1
- package/dist/PortalContext-Bxk1vlgJ.js +0 -1
- package/dist/RadioGroupContext-B25vmuru.js +0 -1
- package/dist/Select-jBfGww6r.js +0 -1
- package/dist/Separator-B53aKK5Q.js +0 -1
- package/dist/SidebarContext-5oYIiB86.js +0 -1
- package/dist/Skeleton-qCiYgn0X.js +0 -1
- package/dist/Spinner-DdqhaJll.js +0 -1
- package/dist/SuggestionPopover-DHFhrT53.js +0 -9
- package/dist/Table-BRwcP12Q.js +0 -1
- package/dist/TableAction-BSXOI1Or.js +0 -1
- package/dist/TableBody-B6w_Cq52.js +0 -1
- package/dist/TableCell-CNxqMajP.js +0 -1
- package/dist/TableHeader-BsRmtcRq.js +0 -1
- package/dist/TableHeaderCell-B0xjs-1D.js +0 -1
- package/dist/TableRow-BOPyVzcS.js +0 -1
- package/dist/TableRow.css.ts.vanilla-kx6T7gxk-D_evn94V.js +0 -1
- package/dist/Text-D6ieMmFm.js +0 -1
- package/dist/ToastProvider-l9AuHleg.js +0 -1
- package/dist/ToggleInputLabel-DTAMk-D_.js +0 -1
- package/dist/TooltipContent-CaOijnUm.js +0 -1
- package/dist/TooltipContext-BaNE0u0Q.js +0 -1
- package/dist/TooltipProvider-DVr_Gj47.js +0 -1
- package/dist/TooltipTrigger-CvLfU6wd.js +0 -1
- package/dist/Transition-DDdUHHDQ.js +0 -1
- package/dist/TransitionGroupContext-BIDp4rqp.js +0 -1
- 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/assets/variable/InterVariable-Italic.woff2 +0 -0
- package/dist/assets/variable/InterVariable.woff2 +0 -0
- package/dist/context-CmbQ0JHf.js +0 -1
- package/dist/fallbackSpan-B1HBngzj.js +0 -1
- package/dist/index-DICIxD60.js +0 -1
- package/dist/index-DyVWey1I.js +0 -1
- package/dist/layers.css.ts.vanilla-CDX2D93i-aA9SvUvJ.js +0 -1
- package/dist/propTypes-C0dyN58l.js +0 -1
- package/dist/useMenuSurface-C0BPDvem.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-BMG3ml_B.js";import{u as S}from"./index-dQ7vVUlv.js";import{u as A}from"./index-B_JrwY8n.js";function U(e,n){return I((t,r)=>n[t][r]??t,e)}var M=e=>{const{present:n,children:t}=e,r=h(n),s=typeof t=="function"?t({present:r.isPresent}):T.only(t),u=S(r.ref,R(s));return typeof t=="function"||r.isPresent?P(s,{ref:u}):null};M.displayName="Presence";function h(e){const[n,t]=v(),r=N(null),s=N(e),u=N("none"),p=e?"mounted":"unmounted",[l,i]=U(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(CSS.escape(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 R(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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as n,y as u,T as c}from"./register-
|
|
1
|
+
import{A as n,y as u,T as c}from"./register-BMG3ml_B.js";function o(r){const e=n(r);return u(()=>{e.current=r}),c(()=>(...t)=>e.current?.(...t),[])}export{o as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as l,D as g,x as B,Q,d as T,u as R,A as y}from"./register-
|
|
1
|
+
import{y as l,D as g,x as B,Q,d as T,u as R,A as y}from"./register-BMG3ml_B.js";import{c as p}from"./index-CBrz5xtv.js";import{P as F,d as X}from"./index-LgFI4FKk.js";import{u as I}from"./index-dQ7vVUlv.js";import{u as m}from"./index-_cB1xrqH.js";function Y(s,e=globalThis?.document){const t=m(s);l(()=>{const i=n=>{n.key==="Escape"&&t(n)};return e.addEventListener("keydown",i,{capture:!0}),()=>e.removeEventListener("keydown",i,{capture:!0})},[t,e])}var j="DismissableLayer",b="dismissableLayer.update",q="dismissableLayer.pointerDownOutside",G="dismissableLayer.focusOutside",A,W=Q({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),D=g((s,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:i,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:v,onDismiss:d,...f}=s,o=B(W),[c,S]=T(null),u=c?.ownerDocument??globalThis?.document,[,_]=T({}),U=I(e,r=>S(r)),P=Array.from(o.layers),[z]=[...o.layersWithOutsidePointerEventsDisabled].slice(-1),H=P.indexOf(z),O=c?P.indexOf(c):-1,K=o.layersWithOutsidePointerEventsDisabled.size>0,L=O>=H,M=V(r=>{const E=r.target,w=[...o.branches].some(h=>h.contains(E));!L||w||(n?.(r),v?.(r),r.defaultPrevented||d?.())},u),C=Z(r=>{const E=r.target;[...o.branches].some(h=>h.contains(E))||(a?.(r),v?.(r),r.defaultPrevented||d?.())},u);return Y(r=>{O===o.layers.size-1&&(i?.(r),!r.defaultPrevented&&d&&(r.preventDefault(),d()))},u),l(()=>{if(c)return t&&(o.layersWithOutsidePointerEventsDisabled.size===0&&(A=u.body.style.pointerEvents,u.body.style.pointerEvents="none"),o.layersWithOutsidePointerEventsDisabled.add(c)),o.layers.add(c),x(),()=>{t&&o.layersWithOutsidePointerEventsDisabled.size===1&&(u.body.style.pointerEvents=A)}},[c,u,t,o]),l(()=>()=>{c&&(o.layers.delete(c),o.layersWithOutsidePointerEventsDisabled.delete(c),x())},[c,o]),l(()=>{const r=()=>_({});return document.addEventListener(b,r),()=>document.removeEventListener(b,r)},[]),R(F.div,{...f,ref:U,style:{pointerEvents:K?L?"auto":"none":void 0,...s.style},onFocusCapture:p(s.onFocusCapture,C.onFocusCapture),onBlurCapture:p(s.onBlurCapture,C.onBlurCapture),onPointerDownCapture:p(s.onPointerDownCapture,M.onPointerDownCapture)})});D.displayName=j;var J="DismissableLayerBranch",k=g((s,e)=>{const t=B(W),i=y(null),n=I(e,i);return l(()=>{const a=i.current;if(a)return t.branches.add(a),()=>{t.branches.delete(a)}},[t.branches]),R(F.div,{...s,ref:n})});k.displayName=J;function V(s,e=globalThis?.document){const t=m(s),i=y(!1),n=y(()=>{});return l(()=>{const a=d=>{if(d.target&&!i.current){let f=function(){N(q,t,o,{discrete:!0})};const o={originalEvent:d};d.pointerType==="touch"?(e.removeEventListener("click",n.current),n.current=f,e.addEventListener("click",n.current,{once:!0})):f()}else e.removeEventListener("click",n.current);i.current=!1},v=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(v),e.removeEventListener("pointerdown",a),e.removeEventListener("click",n.current)}},[e,t]),{onPointerDownCapture:()=>i.current=!0}}function Z(s,e=globalThis?.document){const t=m(s),i=y(!1);return l(()=>{const n=a=>{a.target&&!i.current&&N(G,t,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,t]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function x(){const s=new CustomEvent(b);document.dispatchEvent(s)}function N(s,e,t,{discrete:i}){const n=t.originalEvent.target,a=new CustomEvent(s,{bubbles:!1,cancelable:!0,detail:t});e&&n.addEventListener(s,e,{once:!0}),i?X(n,a):n.dispatchEvent(a)}var $=D,ee=k;export{ee as B,D,$ as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as C,D as S,O as a,m as f,u as p,e as m,k as g}from"./register-
|
|
1
|
+
import{q as C,D as S,O as a,m as f,u as p,e as m,k as g}from"./register-BMG3ml_B.js";function b(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function y(...t){return n=>{let r=!1;const o=t.map(e=>{const l=b(e,n);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let e=0;e<o.length;e++){const l=o[e];typeof l=="function"?l():b(t[e],null)}}}}function I(...t){return C(y(...t),t)}function O(t){const n=h(t),r=S((o,e)=>{const{children:l,...i}=o,s=a.toArray(l),c=s.find(E);if(c){const u=c.props.children,_=s.map(d=>d===c?a.count(u)>1?a.only(null):f(u)?u.props.children:null:d);return p(n,{...i,ref:e,children:f(u)?m(u,void 0,_):null})}return p(n,{...i,ref:e,children:l})});return r.displayName=`${t}.Slot`,r}function h(t){const n=S((r,o)=>{const{children:e,...l}=r;if(f(e)){const i=P(e),s=N(l,e.props);return e.type!==g&&(s.ref=o?y(o,i):i),m(e,s)}return a.count(e)>1?a.only(null):null});return n.displayName=`${t}.SlotClone`,n}var R=Symbol("radix.slottable");function x(t){const n=({children:r})=>p(g,{children:r});return n.displayName=`${t}.Slottable`,n.__radixId=R,n}function E(t){return f(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===R}function N(t,n){const r={...n};for(const o in n){const e=t[o],l=n[o];/^on[A-Z]/.test(o)?e&&l?r[o]=(...s)=>{const c=l(...s);return e(...s),c}:e&&(r[o]=e):o==="style"?r[o]={...e,...l}:o==="className"&&(r[o]=[e,l].filter(Boolean).join(" "))}return{...t,...r}}function P(t){let n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?t.ref:(n=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}export{x as a,y as b,O as c,I as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,u as i}from"./register-
|
|
1
|
+
import{D as o,u as i}from"./register-BMG3ml_B.js";import{P as l}from"./index-LgFI4FKk.js";var s="Label",a=o((e,r)=>i(l.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName=s;var u=a;export{a as L,u as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Q as S,T as d,u as P,x as l}from"./register-
|
|
1
|
+
import{Q as S,T as d,u as P,x as l}from"./register-BMG3ml_B.js";function w(t,c){const o=S(c),i=r=>{const{children:e,...n}=r,s=d(()=>n,Object.values(n));return P(o.Provider,{value:s,children:e})};i.displayName=t+"Provider";function u(r){const e=l(o);if(e)return e;if(c!==void 0)return c;throw new Error(`\`${r}\` must be used within \`${t}\``)}return[i,u]}function C(t,c=[]){let o=[];function i(r,e){const n=S(e),s=o.length;o=[...o,e];const a=p=>{const{scope:v,children:f,...x}=p,m=v?.[t]?.[s]||n,$=d(()=>x,Object.values(x));return P(m.Provider,{value:$,children:f})};a.displayName=r+"Provider";function h(p,v){const f=v?.[t]?.[s]||n,x=l(f);if(x)return x;if(e!==void 0)return e;throw new Error(`\`${p}\` must be used within \`${r}\``)}return[a,h]}const u=()=>{const r=o.map(e=>S(e));return function(n){const s=n?.[t]||r;return d(()=>({[`__scope${t}`]:{...n,[t]:s}}),[n,s])}};return u.scopeName=t,[i,_(u,...c)]}function _(...t){const c=t[0];if(t.length===1)return c;const o=()=>{const i=t.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(r){const e=i.reduce((n,{useScope:s,scopeName:a})=>{const p=s(r)[`__scope${a}`];return{...n,...p}},{});return d(()=>({[`__scope${c.scopeName}`]:e}),[e])}};return o.scopeName=c.scopeName,o}export{C as a,w as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as A,A as C,y as E,u as c,q as S,D as f,k as vn}from"./register-DILttFUh.js";import{c as M}from"./index-CBrz5xtv.js";import{u as G,c as Mn,b as he}from"./index-DH8UsLYJ.js";import{a as ge}from"./index-C4th3xJ6.js";import{u as Ce}from"./index-D7g1Oyvu.js";import{d as hn,P as N}from"./index-CYRAviFT.js";import{c as gn}from"./index-C9WpI2Tm.js";import{c as _e,u as Cn,I as _n,R as wn}from"./index-BG4dG-Iq.js";import{D as In}from"./index-CPA450TQ.js";import{u as Sn,o as Dn,F as En}from"./Combination-BuDWzATy.js";import{u as W}from"./index-Btk4uD1X.js";import{c as we,R as Ie,C as Pn,A as yn,a as bn}from"./index-C58K3GYC.js";import{P as oe}from"./index-88FxG66J.js";import{u as te}from"./index-ZcblEvmz.js";import{h as xn}from"./index-CDr5kGHV.js";var re=["Enter"," "],Rn=["ArrowDown","PageUp","Home"],Se=["ArrowUp","PageDown","End"],Tn=[...Rn,...Se],An={ltr:[...re,"ArrowRight"],rtl:[...re,"ArrowLeft"]},Nn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},F="Menu",[K,On,kn]=gn(F),[P,De]=ge(F,[kn,we,_e]),U=we(),Ee=_e(),[Pe,y]=P(F),[Ln,B]=P(F),ye=e=>{const{__scopeMenu:o,open:n=!1,children:t,dir:r,onOpenChange:a,modal:u=!0}=e,i=U(o),[p,m]=A(null),l=C(!1),s=te(a),v=Cn(r);return E(()=>{const w=()=>{l.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>l.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),c(Ie,{...i,children:c(Pe,{scope:o,open:n,onOpenChange:s,content:p,onContentChange:m,children:c(Ln,{scope:o,onClose:S(()=>s(!1),[s]),isUsingKeyboardRef:l,dir:v,modal:u,children:t})})})};ye.displayName=F;var Gn="MenuAnchor",ae=f((e,o)=>{const{__scopeMenu:n,...t}=e,r=U(n);return c(yn,{...r,...t,ref:o})});ae.displayName=Gn;var Fn="MenuPortal",[it,be]=P(Fn,{forceMount:void 0}),I="MenuContent",[Kn,ce]=P(I),xe=f((e,o)=>{const n=be(I,e.__scopeMenu),{forceMount:t=n.forceMount,...r}=e,a=y(I,e.__scopeMenu),u=B(I,e.__scopeMenu);return c(K.Provider,{scope:e.__scopeMenu,children:c(oe,{present:t||a.open,children:c(K.Slot,{scope:e.__scopeMenu,children:u.modal?c(Un,{...r,ref:o}):c(Bn,{...r,ref:o})})})})}),Un=f((e,o)=>{const n=y(I,e.__scopeMenu),t=C(null),r=G(o,t);return E(()=>{const a=t.current;if(a)return xn(a)},[]),c(se,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:M(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Bn=f((e,o)=>{const n=y(I,e.__scopeMenu);return c(se,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),$n=Mn("MenuContent.ScrollLock"),se=f((e,o)=>{const{__scopeMenu:n,loop:t=!1,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:i,onEntryFocus:p,onEscapeKeyDown:m,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:v,onDismiss:w,disableOutsideScroll:h,...b}=e,O=y(I,n),x=B(I,n),cn=U(n),sn=Ee(n),pe=On(n),[un,fe]=A(null),X=C(null),dn=G(o,X,O.onContentChange),Y=C(0),H=C(""),ln=C(0),J=C(null),me=C("right"),Q=C(0),pn=h?Dn:vn,fn=h?{as:$n,allowPinchZoom:!0}:void 0,mn=d=>{const T=H.current+d,D=pe().filter(g=>!g.disabled),k=(()=>{let g=document.activeElement;for(;g?.shadowRoot;)g=g.shadowRoot.activeElement;return g})(),ee=D.find(g=>g.ref.current===k)?.textValue,ne=D.map(g=>g.textValue),ve=eo(ne,T,ee),L=D.find(g=>g.textValue===ve)?.ref.current;(function g(Me){H.current=Me,window.clearTimeout(Y.current),Me!==""&&(Y.current=window.setTimeout(()=>g(""),1e3))})(T),L&&setTimeout(()=>L.focus())};E(()=>()=>window.clearTimeout(Y.current),[]),Sn();const R=S(d=>me.current===J.current?.side&&oo(d,J.current?.area),[]);return c(Kn,{scope:n,searchRef:H,onItemEnter:S(d=>{R(d)&&d.preventDefault()},[R]),onItemLeave:S(d=>{R(d)||(X.current?.focus(),fe(null))},[R]),onTriggerLeave:S(d=>{R(d)&&d.preventDefault()},[R]),pointerGraceTimerRef:ln,onPointerGraceIntentChange:S(d=>{J.current=d},[]),children:c(pn,{...fn,children:c(En,{asChild:!0,trapped:r,onMountAutoFocus:M(a,d=>{d.preventDefault(),X.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:c(In,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:m,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:v,onDismiss:w,children:c(wn,{asChild:!0,...sn,dir:x.dir,orientation:"vertical",loop:t,currentTabStopId:un,onCurrentTabStopIdChange:fe,onEntryFocus:M(p,d=>{x.isUsingKeyboardRef.current||d.preventDefault()}),preventScrollOnEntryFocus:!0,children:c(Pn,{role:"menu","aria-orientation":"vertical","data-state":We(O.open),"data-radix-menu-content":"",dir:x.dir,...cn,...b,ref:dn,style:{outline:"none",...b.style},onKeyDown:M(b.onKeyDown,d=>{const D=d.target.closest("[data-radix-menu-content]")===d.currentTarget,k=d.ctrlKey||d.altKey||d.metaKey,ee=d.key.length===1;D&&(d.key==="Tab"&&d.preventDefault(),!k&&ee&&mn(d.key));const ne=X.current;if(d.target!==ne||!Tn.includes(d.key))return;d.preventDefault();const L=pe().filter(g=>!g.disabled).map(g=>g.ref.current);Se.includes(d.key)&&L.reverse(),Jn(L)}),onBlur:M(e.onBlur,d=>{d.currentTarget.contains(d.target)||(window.clearTimeout(Y.current),H.current="")}),onPointerMove:M(e.onPointerMove,V(d=>{const T=d.target,D=Q.current!==d.clientX;if(d.currentTarget.contains(T)&&D){const k=d.clientX>Q.current?"right":"left";me.current=k,Q.current=d.clientX}}))})})})})})})});xe.displayName=I;var Vn="MenuGroup",ue=f((e,o)=>{const{__scopeMenu:n,...t}=e;return c(N.div,{role:"group",...t,ref:o})});ue.displayName=Vn;var Xn="MenuLabel",Re=f((e,o)=>{const{__scopeMenu:n,...t}=e;return c(N.div,{...t,ref:o})});Re.displayName=Xn;var j="MenuItem",Te="menu.itemSelect",z=f((e,o)=>{const{disabled:n=!1,onSelect:t,...r}=e,a=C(null),u=B(j,e.__scopeMenu),i=ce(j,e.__scopeMenu),p=G(o,a),m=C(!1),l=()=>{const s=a.current;if(!n&&s){const v=new CustomEvent(Te,{bubbles:!0,cancelable:!0});s.addEventListener(Te,w=>t?.(w),{once:!0}),hn(s,v),v.defaultPrevented?m.current=!1:u.onClose()}};return c(Ae,{...r,ref:p,disabled:n,onClick:M(e.onClick,l),onPointerDown:s=>{e.onPointerDown?.(s),m.current=!0},onPointerUp:M(e.onPointerUp,s=>{m.current||s.currentTarget?.click()}),onKeyDown:M(e.onKeyDown,s=>{const v=i.searchRef.current!=="";n||v&&s.key===" "||re.includes(s.key)&&(s.currentTarget.click(),s.preventDefault())})})});z.displayName=j;var Ae=f((e,o)=>{const{__scopeMenu:n,disabled:t=!1,textValue:r,...a}=e,u=ce(j,n),i=Ee(n),p=C(null),m=G(o,p),[l,s]=A(!1),[v,w]=A("");return E(()=>{const h=p.current;h&&w((h.textContent??"").trim())},[a.children]),c(K.ItemSlot,{scope:n,disabled:t,textValue:r??v,children:c(_n,{asChild:!0,...i,focusable:!t,children:c(N.div,{role:"menuitem","data-highlighted":l?"":void 0,"aria-disabled":t||void 0,"data-disabled":t?"":void 0,...a,ref:m,onPointerMove:M(e.onPointerMove,V(h=>{t?u.onItemLeave(h):(u.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:M(e.onPointerLeave,V(h=>u.onItemLeave(h))),onFocus:M(e.onFocus,()=>s(!0)),onBlur:M(e.onBlur,()=>s(!1))})})})}),Yn="MenuCheckboxItem",Ne=f((e,o)=>{const{checked:n=!1,onCheckedChange:t,...r}=e;return c(Fe,{scope:e.__scopeMenu,checked:n,children:c(z,{role:"menuitemcheckbox","aria-checked":q(n)?"mixed":n,...r,ref:o,"data-state":le(n),onSelect:M(r.onSelect,()=>t?.(q(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ne.displayName=Yn;var Oe="MenuRadioGroup",[Hn,Wn]=P(Oe,{value:void 0,onValueChange:()=>{}}),ke=f((e,o)=>{const{value:n,onValueChange:t,...r}=e,a=te(t);return c(Hn,{scope:e.__scopeMenu,value:n,onValueChange:a,children:c(ue,{...r,ref:o})})});ke.displayName=Oe;var Le="MenuRadioItem",Ge=f((e,o)=>{const{value:n,...t}=e,r=Wn(Le,e.__scopeMenu),a=n===r.value;return c(Fe,{scope:e.__scopeMenu,checked:a,children:c(z,{role:"menuitemradio","aria-checked":a,...t,ref:o,"data-state":le(a),onSelect:M(t.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ge.displayName=Le;var ie="MenuItemIndicator",[Fe,jn]=P(ie,{checked:!1}),Ke=f((e,o)=>{const{__scopeMenu:n,forceMount:t,...r}=e,a=jn(ie,n);return c(oe,{present:t||q(a.checked)||a.checked===!0,children:c(N.span,{...r,ref:o,"data-state":le(a.checked)})})});Ke.displayName=ie;var zn="MenuSeparator",Ue=f((e,o)=>{const{__scopeMenu:n,...t}=e;return c(N.div,{role:"separator","aria-orientation":"horizontal",...t,ref:o})});Ue.displayName=zn;var qn="MenuArrow",Be=f((e,o)=>{const{__scopeMenu:n,...t}=e,r=U(n);return c(bn,{...r,...t,ref:o})});Be.displayName=qn;var de="MenuSub",[Zn,$e]=P(de),Ve=e=>{const{__scopeMenu:o,children:n,open:t=!1,onOpenChange:r}=e,a=y(de,o),u=U(o),[i,p]=A(null),[m,l]=A(null),s=te(r);return E(()=>(a.open===!1&&s(!1),()=>s(!1)),[a.open,s]),c(Ie,{...u,children:c(Pe,{scope:o,open:t,onOpenChange:s,content:m,onContentChange:l,children:c(Zn,{scope:o,contentId:W(),triggerId:W(),trigger:i,onTriggerChange:p,children:n})})})};Ve.displayName=de;var $="MenuSubTrigger",Xe=f((e,o)=>{const n=y($,e.__scopeMenu),t=B($,e.__scopeMenu),r=$e($,e.__scopeMenu),a=ce($,e.__scopeMenu),u=C(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:p}=a,m={__scopeMenu:e.__scopeMenu},l=S(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return E(()=>l,[l]),E(()=>{const s=i.current;return()=>{window.clearTimeout(s),p(null)}},[i,p]),c(ae,{asChild:!0,...m,children:c(Ae,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":We(n.open),...e,ref:he(o,r.onTriggerChange),onClick:s=>{e.onClick?.(s),!(e.disabled||s.defaultPrevented)&&(s.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:M(e.onPointerMove,V(s=>{a.onItemEnter(s),!s.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(a.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),l()},100))})),onPointerLeave:M(e.onPointerLeave,V(s=>{l();const v=n.content?.getBoundingClientRect();if(v){const w=n.content?.dataset.side,h=w==="right",b=h?-5:5,O=v[h?"left":"right"],x=v[h?"right":"left"];a.onPointerGraceIntentChange({area:[{x:s.clientX+b,y:s.clientY},{x:O,y:v.top},{x,y:v.top},{x,y:v.bottom},{x:O,y:v.bottom}],side:w}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(s),s.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:M(e.onKeyDown,s=>{const v=a.searchRef.current!=="";e.disabled||v&&s.key===" "||An[t.dir].includes(s.key)&&(n.onOpenChange(!0),n.content?.focus(),s.preventDefault())})})})});Xe.displayName=$;var Ye="MenuSubContent",He=f((e,o)=>{const n=be(I,e.__scopeMenu),{forceMount:t=n.forceMount,...r}=e,a=y(I,e.__scopeMenu),u=B(I,e.__scopeMenu),i=$e(Ye,e.__scopeMenu),p=C(null),m=G(o,p);return c(K.Provider,{scope:e.__scopeMenu,children:c(oe,{present:t||a.open,children:c(K.Slot,{scope:e.__scopeMenu,children:c(se,{id:i.contentId,"aria-labelledby":i.triggerId,...r,ref:m,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:l=>{u.isUsingKeyboardRef.current&&p.current?.focus(),l.preventDefault()},onCloseAutoFocus:l=>l.preventDefault(),onFocusOutside:M(e.onFocusOutside,l=>{l.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:M(e.onEscapeKeyDown,l=>{u.onClose(),l.preventDefault()}),onKeyDown:M(e.onKeyDown,l=>{const s=l.currentTarget.contains(l.target),v=Nn[u.dir].includes(l.key);s&&v&&(a.onOpenChange(!1),i.trigger?.focus(),l.preventDefault())})})})})})});He.displayName=Ye;function We(e){return e?"open":"closed"}function q(e){return e==="indeterminate"}function le(e){return q(e)?"indeterminate":e?"checked":"unchecked"}function Jn(e){const o=(()=>{let n=document.activeElement;for(;n?.shadowRoot;)n=n.shadowRoot.activeElement;return n})();for(const n of e)if(n===o||(n.focus(),(()=>{let t=document.activeElement;for(;t?.shadowRoot;)t=t.shadowRoot.activeElement;return t})()!==o))return}function Qn(e,o){return e.map((n,t)=>e[(o+t)%e.length])}function eo(e,o,n){const r=o.length>1&&Array.from(o).every(m=>m===o[0])?o[0]:o,a=n?e.indexOf(n):-1;let u=Qn(e,Math.max(a,0));r.length===1&&(u=u.filter(m=>m!==n));const p=u.find(m=>m.toLowerCase().startsWith(r.toLowerCase()));return p!==n?p:void 0}function no(e,o){const{x:n,y:t}=e;let r=!1;for(let a=0,u=o.length-1;a<o.length;u=a++){const i=o[a],p=o[u],m=i.x,l=i.y,s=p.x,v=p.y;l>t!=v>t&&n<(s-m)*(t-l)/(v-l)+m&&(r=!r)}return r}function oo(e,o){if(!o)return!1;const n={x:e.clientX,y:e.clientY};return no(n,o)}function V(e){return o=>o.pointerType==="mouse"?e(o):void 0}var to=ye,ro=ae,ao=xe,co=ue,so=Re,uo=z,io=Ne,lo=ke,po=Ge,fo=Ke,mo=Ue,vo=Be,Mo=Ve,ho=Xe,go=He,Z="DropdownMenu",[Co,dt]=ge(Z,[De]),_=De(),[_o,je]=Co(Z),ze=e=>{const{__scopeDropdownMenu:o,children:n,dir:t,open:r,defaultOpen:a,onOpenChange:u,modal:i=!0}=e,p=_(o),m=C(null),[l,s]=Ce({prop:r,defaultProp:a??!1,onChange:u,caller:Z});return c(_o,{scope:o,triggerId:W(),triggerRef:m,contentId:W(),open:l,onOpenChange:s,onOpenToggle:S(()=>s(v=>!v),[s]),modal:i,children:c(to,{...p,open:l,onOpenChange:s,dir:t,modal:i,children:n})})};ze.displayName=Z;var qe="DropdownMenuTrigger",Ze=f((e,o)=>{const{__scopeDropdownMenu:n,disabled:t=!1,...r}=e,a=je(qe,n),u=_(n);return c(ro,{asChild:!0,...u,children:c(N.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...r,ref:he(o,a.triggerRef),onPointerDown:M(e.onPointerDown,i=>{!t&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:M(e.onKeyDown,i=>{t||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Ze.displayName=qe;var Je="DropdownMenuContent",Qe=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=je(Je,n),a=_(n),u=C(!1);return c(ao,{id:r.contentId,"aria-labelledby":r.triggerId,...a,...t,ref:o,onCloseAutoFocus:M(e.onCloseAutoFocus,i=>{u.current||r.triggerRef.current?.focus(),u.current=!1,i.preventDefault()}),onInteractOutside:M(e.onInteractOutside,i=>{const p=i.detail.originalEvent,m=p.button===0&&p.ctrlKey===!0,l=p.button===2||m;(!r.modal||l)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Qe.displayName=Je;var wo="DropdownMenuGroup",en=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(co,{...r,...t,ref:o})});en.displayName=wo;var Io="DropdownMenuLabel",nn=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(so,{...r,...t,ref:o})});nn.displayName=Io;var So="DropdownMenuItem",on=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(uo,{...r,...t,ref:o})});on.displayName=So;var Do="DropdownMenuCheckboxItem",tn=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(io,{...r,...t,ref:o})});tn.displayName=Do;var Eo="DropdownMenuRadioGroup",Po=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(lo,{...r,...t,ref:o})});Po.displayName=Eo;var yo="DropdownMenuRadioItem",bo=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(po,{...r,...t,ref:o})});bo.displayName=yo;var xo="DropdownMenuItemIndicator",Ro=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(fo,{...r,...t,ref:o})});Ro.displayName=xo;var To="DropdownMenuSeparator",rn=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(mo,{...r,...t,ref:o})});rn.displayName=To;var Ao="DropdownMenuArrow",No=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(vo,{...r,...t,ref:o})});No.displayName=Ao;var Oo=e=>{const{__scopeDropdownMenu:o,children:n,open:t,onOpenChange:r,defaultOpen:a}=e,u=_(o),[i,p]=Ce({prop:t,defaultProp:a??!1,onChange:r,caller:"DropdownMenuSub"});return c(Mo,{...u,open:i,onOpenChange:p,children:n})},ko="DropdownMenuSubTrigger",Lo=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(ho,{...r,...t,ref:o})});Lo.displayName=ko;var Go="DropdownMenuSubContent",an=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(go,{...r,...t,ref:o,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});an.displayName=Go;var Fo=ze,Ko=Ze,Uo=Qe,Bo=en,$o=nn,Vo=on,Xo=tn,Yo=rn,Ho=Oo,Wo=an;export{Xo as C,Bo as G,Vo as I,$o as L,Fo as R,Yo as S,Ko as T,Uo as a,Ho as b,Wo as c};
|
|
1
|
+
import{d as A,A as C,y as E,u as c,q as S,D as f,k as vn}from"./register-BMG3ml_B.js";import{c as M}from"./index-CBrz5xtv.js";import{u as G,c as Mn,b as he}from"./index-dQ7vVUlv.js";import{a as ge}from"./index-mY4LmL6N.js";import{u as Ce}from"./index-BTwkmpVj.js";import{d as hn,P as N}from"./index-LgFI4FKk.js";import{c as gn}from"./index-qaafyueB.js";import{c as _e,u as Cn,I as _n,R as wn}from"./index-CJuJCEW7.js";import{D as In}from"./index-bWspXLUq.js";import{u as Sn,o as Dn,F as En}from"./Combination-bwg6SCti.js";import{u as W}from"./index-JflTCg0X.js";import{c as we,R as Ie,C as Pn,A as yn,a as bn}from"./index-CFq6lvZP.js";import{P as oe}from"./index-PGsQ2egI.js";import{u as te}from"./index-_cB1xrqH.js";import{h as xn}from"./index-CDr5kGHV.js";var re=["Enter"," "],Rn=["ArrowDown","PageUp","Home"],Se=["ArrowUp","PageDown","End"],Tn=[...Rn,...Se],An={ltr:[...re,"ArrowRight"],rtl:[...re,"ArrowLeft"]},Nn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},F="Menu",[K,On,kn]=gn(F),[P,De]=ge(F,[kn,we,_e]),U=we(),Ee=_e(),[Pe,y]=P(F),[Ln,B]=P(F),ye=e=>{const{__scopeMenu:o,open:n=!1,children:t,dir:r,onOpenChange:a,modal:u=!0}=e,i=U(o),[p,m]=A(null),l=C(!1),s=te(a),v=Cn(r);return E(()=>{const w=()=>{l.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>l.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),c(Ie,{...i,children:c(Pe,{scope:o,open:n,onOpenChange:s,content:p,onContentChange:m,children:c(Ln,{scope:o,onClose:S(()=>s(!1),[s]),isUsingKeyboardRef:l,dir:v,modal:u,children:t})})})};ye.displayName=F;var Gn="MenuAnchor",ae=f((e,o)=>{const{__scopeMenu:n,...t}=e,r=U(n);return c(yn,{...r,...t,ref:o})});ae.displayName=Gn;var Fn="MenuPortal",[it,be]=P(Fn,{forceMount:void 0}),I="MenuContent",[Kn,ce]=P(I),xe=f((e,o)=>{const n=be(I,e.__scopeMenu),{forceMount:t=n.forceMount,...r}=e,a=y(I,e.__scopeMenu),u=B(I,e.__scopeMenu);return c(K.Provider,{scope:e.__scopeMenu,children:c(oe,{present:t||a.open,children:c(K.Slot,{scope:e.__scopeMenu,children:u.modal?c(Un,{...r,ref:o}):c(Bn,{...r,ref:o})})})})}),Un=f((e,o)=>{const n=y(I,e.__scopeMenu),t=C(null),r=G(o,t);return E(()=>{const a=t.current;if(a)return xn(a)},[]),c(se,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:M(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Bn=f((e,o)=>{const n=y(I,e.__scopeMenu);return c(se,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),$n=Mn("MenuContent.ScrollLock"),se=f((e,o)=>{const{__scopeMenu:n,loop:t=!1,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:i,onEntryFocus:p,onEscapeKeyDown:m,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:v,onDismiss:w,disableOutsideScroll:h,...b}=e,O=y(I,n),x=B(I,n),cn=U(n),sn=Ee(n),pe=On(n),[un,fe]=A(null),X=C(null),dn=G(o,X,O.onContentChange),Y=C(0),H=C(""),ln=C(0),J=C(null),me=C("right"),Q=C(0),pn=h?Dn:vn,fn=h?{as:$n,allowPinchZoom:!0}:void 0,mn=d=>{const T=H.current+d,D=pe().filter(g=>!g.disabled),k=(()=>{let g=document.activeElement;for(;g?.shadowRoot;)g=g.shadowRoot.activeElement;return g})(),ee=D.find(g=>g.ref.current===k)?.textValue,ne=D.map(g=>g.textValue),ve=eo(ne,T,ee),L=D.find(g=>g.textValue===ve)?.ref.current;(function g(Me){H.current=Me,window.clearTimeout(Y.current),Me!==""&&(Y.current=window.setTimeout(()=>g(""),1e3))})(T),L&&setTimeout(()=>L.focus())};E(()=>()=>window.clearTimeout(Y.current),[]),Sn();const R=S(d=>me.current===J.current?.side&&oo(d,J.current?.area),[]);return c(Kn,{scope:n,searchRef:H,onItemEnter:S(d=>{R(d)&&d.preventDefault()},[R]),onItemLeave:S(d=>{R(d)||(X.current?.focus(),fe(null))},[R]),onTriggerLeave:S(d=>{R(d)&&d.preventDefault()},[R]),pointerGraceTimerRef:ln,onPointerGraceIntentChange:S(d=>{J.current=d},[]),children:c(pn,{...fn,children:c(En,{asChild:!0,trapped:r,onMountAutoFocus:M(a,d=>{d.preventDefault(),X.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:c(In,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:m,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:v,onDismiss:w,children:c(wn,{asChild:!0,...sn,dir:x.dir,orientation:"vertical",loop:t,currentTabStopId:un,onCurrentTabStopIdChange:fe,onEntryFocus:M(p,d=>{x.isUsingKeyboardRef.current||d.preventDefault()}),preventScrollOnEntryFocus:!0,children:c(Pn,{role:"menu","aria-orientation":"vertical","data-state":We(O.open),"data-radix-menu-content":"",dir:x.dir,...cn,...b,ref:dn,style:{outline:"none",...b.style},onKeyDown:M(b.onKeyDown,d=>{const D=d.target.closest("[data-radix-menu-content]")===d.currentTarget,k=d.ctrlKey||d.altKey||d.metaKey,ee=d.key.length===1;D&&(d.key==="Tab"&&d.preventDefault(),!k&&ee&&mn(d.key));const ne=X.current;if(d.target!==ne||!Tn.includes(d.key))return;d.preventDefault();const L=pe().filter(g=>!g.disabled).map(g=>g.ref.current);Se.includes(d.key)&&L.reverse(),Jn(L)}),onBlur:M(e.onBlur,d=>{d.currentTarget.contains(d.target)||(window.clearTimeout(Y.current),H.current="")}),onPointerMove:M(e.onPointerMove,V(d=>{const T=d.target,D=Q.current!==d.clientX;if(d.currentTarget.contains(T)&&D){const k=d.clientX>Q.current?"right":"left";me.current=k,Q.current=d.clientX}}))})})})})})})});xe.displayName=I;var Vn="MenuGroup",ue=f((e,o)=>{const{__scopeMenu:n,...t}=e;return c(N.div,{role:"group",...t,ref:o})});ue.displayName=Vn;var Xn="MenuLabel",Re=f((e,o)=>{const{__scopeMenu:n,...t}=e;return c(N.div,{...t,ref:o})});Re.displayName=Xn;var j="MenuItem",Te="menu.itemSelect",z=f((e,o)=>{const{disabled:n=!1,onSelect:t,...r}=e,a=C(null),u=B(j,e.__scopeMenu),i=ce(j,e.__scopeMenu),p=G(o,a),m=C(!1),l=()=>{const s=a.current;if(!n&&s){const v=new CustomEvent(Te,{bubbles:!0,cancelable:!0});s.addEventListener(Te,w=>t?.(w),{once:!0}),hn(s,v),v.defaultPrevented?m.current=!1:u.onClose()}};return c(Ae,{...r,ref:p,disabled:n,onClick:M(e.onClick,l),onPointerDown:s=>{e.onPointerDown?.(s),m.current=!0},onPointerUp:M(e.onPointerUp,s=>{m.current||s.currentTarget?.click()}),onKeyDown:M(e.onKeyDown,s=>{const v=i.searchRef.current!=="";n||v&&s.key===" "||re.includes(s.key)&&(s.currentTarget.click(),s.preventDefault())})})});z.displayName=j;var Ae=f((e,o)=>{const{__scopeMenu:n,disabled:t=!1,textValue:r,...a}=e,u=ce(j,n),i=Ee(n),p=C(null),m=G(o,p),[l,s]=A(!1),[v,w]=A("");return E(()=>{const h=p.current;h&&w((h.textContent??"").trim())},[a.children]),c(K.ItemSlot,{scope:n,disabled:t,textValue:r??v,children:c(_n,{asChild:!0,...i,focusable:!t,children:c(N.div,{role:"menuitem","data-highlighted":l?"":void 0,"aria-disabled":t||void 0,"data-disabled":t?"":void 0,...a,ref:m,onPointerMove:M(e.onPointerMove,V(h=>{t?u.onItemLeave(h):(u.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:M(e.onPointerLeave,V(h=>u.onItemLeave(h))),onFocus:M(e.onFocus,()=>s(!0)),onBlur:M(e.onBlur,()=>s(!1))})})})}),Yn="MenuCheckboxItem",Ne=f((e,o)=>{const{checked:n=!1,onCheckedChange:t,...r}=e;return c(Fe,{scope:e.__scopeMenu,checked:n,children:c(z,{role:"menuitemcheckbox","aria-checked":q(n)?"mixed":n,...r,ref:o,"data-state":le(n),onSelect:M(r.onSelect,()=>t?.(q(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ne.displayName=Yn;var Oe="MenuRadioGroup",[Hn,Wn]=P(Oe,{value:void 0,onValueChange:()=>{}}),ke=f((e,o)=>{const{value:n,onValueChange:t,...r}=e,a=te(t);return c(Hn,{scope:e.__scopeMenu,value:n,onValueChange:a,children:c(ue,{...r,ref:o})})});ke.displayName=Oe;var Le="MenuRadioItem",Ge=f((e,o)=>{const{value:n,...t}=e,r=Wn(Le,e.__scopeMenu),a=n===r.value;return c(Fe,{scope:e.__scopeMenu,checked:a,children:c(z,{role:"menuitemradio","aria-checked":a,...t,ref:o,"data-state":le(a),onSelect:M(t.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ge.displayName=Le;var ie="MenuItemIndicator",[Fe,jn]=P(ie,{checked:!1}),Ke=f((e,o)=>{const{__scopeMenu:n,forceMount:t,...r}=e,a=jn(ie,n);return c(oe,{present:t||q(a.checked)||a.checked===!0,children:c(N.span,{...r,ref:o,"data-state":le(a.checked)})})});Ke.displayName=ie;var zn="MenuSeparator",Ue=f((e,o)=>{const{__scopeMenu:n,...t}=e;return c(N.div,{role:"separator","aria-orientation":"horizontal",...t,ref:o})});Ue.displayName=zn;var qn="MenuArrow",Be=f((e,o)=>{const{__scopeMenu:n,...t}=e,r=U(n);return c(bn,{...r,...t,ref:o})});Be.displayName=qn;var de="MenuSub",[Zn,$e]=P(de),Ve=e=>{const{__scopeMenu:o,children:n,open:t=!1,onOpenChange:r}=e,a=y(de,o),u=U(o),[i,p]=A(null),[m,l]=A(null),s=te(r);return E(()=>(a.open===!1&&s(!1),()=>s(!1)),[a.open,s]),c(Ie,{...u,children:c(Pe,{scope:o,open:t,onOpenChange:s,content:m,onContentChange:l,children:c(Zn,{scope:o,contentId:W(),triggerId:W(),trigger:i,onTriggerChange:p,children:n})})})};Ve.displayName=de;var $="MenuSubTrigger",Xe=f((e,o)=>{const n=y($,e.__scopeMenu),t=B($,e.__scopeMenu),r=$e($,e.__scopeMenu),a=ce($,e.__scopeMenu),u=C(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:p}=a,m={__scopeMenu:e.__scopeMenu},l=S(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return E(()=>l,[l]),E(()=>{const s=i.current;return()=>{window.clearTimeout(s),p(null)}},[i,p]),c(ae,{asChild:!0,...m,children:c(Ae,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":We(n.open),...e,ref:he(o,r.onTriggerChange),onClick:s=>{e.onClick?.(s),!(e.disabled||s.defaultPrevented)&&(s.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:M(e.onPointerMove,V(s=>{a.onItemEnter(s),!s.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(a.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),l()},100))})),onPointerLeave:M(e.onPointerLeave,V(s=>{l();const v=n.content?.getBoundingClientRect();if(v){const w=n.content?.dataset.side,h=w==="right",b=h?-5:5,O=v[h?"left":"right"],x=v[h?"right":"left"];a.onPointerGraceIntentChange({area:[{x:s.clientX+b,y:s.clientY},{x:O,y:v.top},{x,y:v.top},{x,y:v.bottom},{x:O,y:v.bottom}],side:w}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(s),s.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:M(e.onKeyDown,s=>{const v=a.searchRef.current!=="";e.disabled||v&&s.key===" "||An[t.dir].includes(s.key)&&(n.onOpenChange(!0),n.content?.focus(),s.preventDefault())})})})});Xe.displayName=$;var Ye="MenuSubContent",He=f((e,o)=>{const n=be(I,e.__scopeMenu),{forceMount:t=n.forceMount,...r}=e,a=y(I,e.__scopeMenu),u=B(I,e.__scopeMenu),i=$e(Ye,e.__scopeMenu),p=C(null),m=G(o,p);return c(K.Provider,{scope:e.__scopeMenu,children:c(oe,{present:t||a.open,children:c(K.Slot,{scope:e.__scopeMenu,children:c(se,{id:i.contentId,"aria-labelledby":i.triggerId,...r,ref:m,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:l=>{u.isUsingKeyboardRef.current&&p.current?.focus(),l.preventDefault()},onCloseAutoFocus:l=>l.preventDefault(),onFocusOutside:M(e.onFocusOutside,l=>{l.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:M(e.onEscapeKeyDown,l=>{u.onClose(),l.preventDefault()}),onKeyDown:M(e.onKeyDown,l=>{const s=l.currentTarget.contains(l.target),v=Nn[u.dir].includes(l.key);s&&v&&(a.onOpenChange(!1),i.trigger?.focus(),l.preventDefault())})})})})})});He.displayName=Ye;function We(e){return e?"open":"closed"}function q(e){return e==="indeterminate"}function le(e){return q(e)?"indeterminate":e?"checked":"unchecked"}function Jn(e){const o=(()=>{let n=document.activeElement;for(;n?.shadowRoot;)n=n.shadowRoot.activeElement;return n})();for(const n of e)if(n===o||(n.focus(),(()=>{let t=document.activeElement;for(;t?.shadowRoot;)t=t.shadowRoot.activeElement;return t})()!==o))return}function Qn(e,o){return e.map((n,t)=>e[(o+t)%e.length])}function eo(e,o,n){const r=o.length>1&&Array.from(o).every(m=>m===o[0])?o[0]:o,a=n?e.indexOf(n):-1;let u=Qn(e,Math.max(a,0));r.length===1&&(u=u.filter(m=>m!==n));const p=u.find(m=>m.toLowerCase().startsWith(r.toLowerCase()));return p!==n?p:void 0}function no(e,o){const{x:n,y:t}=e;let r=!1;for(let a=0,u=o.length-1;a<o.length;u=a++){const i=o[a],p=o[u],m=i.x,l=i.y,s=p.x,v=p.y;l>t!=v>t&&n<(s-m)*(t-l)/(v-l)+m&&(r=!r)}return r}function oo(e,o){if(!o)return!1;const n={x:e.clientX,y:e.clientY};return no(n,o)}function V(e){return o=>o.pointerType==="mouse"?e(o):void 0}var to=ye,ro=ae,ao=xe,co=ue,so=Re,uo=z,io=Ne,lo=ke,po=Ge,fo=Ke,mo=Ue,vo=Be,Mo=Ve,ho=Xe,go=He,Z="DropdownMenu",[Co,dt]=ge(Z,[De]),_=De(),[_o,je]=Co(Z),ze=e=>{const{__scopeDropdownMenu:o,children:n,dir:t,open:r,defaultOpen:a,onOpenChange:u,modal:i=!0}=e,p=_(o),m=C(null),[l,s]=Ce({prop:r,defaultProp:a??!1,onChange:u,caller:Z});return c(_o,{scope:o,triggerId:W(),triggerRef:m,contentId:W(),open:l,onOpenChange:s,onOpenToggle:S(()=>s(v=>!v),[s]),modal:i,children:c(to,{...p,open:l,onOpenChange:s,dir:t,modal:i,children:n})})};ze.displayName=Z;var qe="DropdownMenuTrigger",Ze=f((e,o)=>{const{__scopeDropdownMenu:n,disabled:t=!1,...r}=e,a=je(qe,n),u=_(n);return c(ro,{asChild:!0,...u,children:c(N.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...r,ref:he(o,a.triggerRef),onPointerDown:M(e.onPointerDown,i=>{!t&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:M(e.onKeyDown,i=>{t||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Ze.displayName=qe;var Je="DropdownMenuContent",Qe=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=je(Je,n),a=_(n),u=C(!1);return c(ao,{id:r.contentId,"aria-labelledby":r.triggerId,...a,...t,ref:o,onCloseAutoFocus:M(e.onCloseAutoFocus,i=>{u.current||r.triggerRef.current?.focus(),u.current=!1,i.preventDefault()}),onInteractOutside:M(e.onInteractOutside,i=>{const p=i.detail.originalEvent,m=p.button===0&&p.ctrlKey===!0,l=p.button===2||m;(!r.modal||l)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Qe.displayName=Je;var wo="DropdownMenuGroup",en=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(co,{...r,...t,ref:o})});en.displayName=wo;var Io="DropdownMenuLabel",nn=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(so,{...r,...t,ref:o})});nn.displayName=Io;var So="DropdownMenuItem",on=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(uo,{...r,...t,ref:o})});on.displayName=So;var Do="DropdownMenuCheckboxItem",tn=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(io,{...r,...t,ref:o})});tn.displayName=Do;var Eo="DropdownMenuRadioGroup",Po=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(lo,{...r,...t,ref:o})});Po.displayName=Eo;var yo="DropdownMenuRadioItem",bo=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(po,{...r,...t,ref:o})});bo.displayName=yo;var xo="DropdownMenuItemIndicator",Ro=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(fo,{...r,...t,ref:o})});Ro.displayName=xo;var To="DropdownMenuSeparator",rn=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(mo,{...r,...t,ref:o})});rn.displayName=To;var Ao="DropdownMenuArrow",No=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(vo,{...r,...t,ref:o})});No.displayName=Ao;var Oo=e=>{const{__scopeDropdownMenu:o,children:n,open:t,onOpenChange:r,defaultOpen:a}=e,u=_(o),[i,p]=Ce({prop:t,defaultProp:a??!1,onChange:r,caller:"DropdownMenuSub"});return c(Mo,{...u,open:i,onOpenChange:p,children:n})},ko="DropdownMenuSubTrigger",Lo=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(ho,{...r,...t,ref:o})});Lo.displayName=ko;var Go="DropdownMenuSubContent",an=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=_(n);return c(go,{...r,...t,ref:o,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});an.displayName=Go;var Fo=ze,Ko=Ze,Uo=Qe,Bo=en,$o=nn,Vo=on,Xo=tn,Yo=rn,Ho=Oo,Wo=an;export{Xo as C,Bo as G,Vo as I,$o as L,Fo as R,Yo as S,Ko as T,Uo as a,Ho as b,Wo as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as r,u as p}from"./register-
|
|
1
|
+
import{R as r,u as p}from"./register-BMG3ml_B.js";import{a as P}from"./index-mY4LmL6N.js";import{u as y,c as E}from"./index-dQ7vVUlv.js";function g(i){const f=i+"CollectionProvider",[N,T]=P(f),[O,u]=N(f,{collectionRef:{current:null},itemMap:new Map}),C=c=>{const{scope:e,children:s}=c,o=r.useRef(null),t=r.useRef(new Map).current;return p(O,{scope:e,itemMap:t,collectionRef:o,children:s})};C.displayName=f;const m=i+"CollectionSlot",_=E(m),R=r.forwardRef((c,e)=>{const{scope:s,children:o}=c,t=u(m,s),n=y(e,t.collectionRef);return p(_,{ref:n,children:o})});R.displayName=m;const d=i+"CollectionItemSlot",S="data-radix-collection-item",v=E(d),I=r.forwardRef((c,e)=>{const{scope:s,children:o,...t}=c,n=r.useRef(null),M=y(e,n),l=u(d,s);return r.useLayoutEffect(()=>(l.itemMap.set(n,{ref:n,...t}),()=>void l.itemMap.delete(n))),p(v,{[S]:"",ref:M,children:o})});I.displayName=d;function h(c){const e=u(i+"CollectionConsumer",c);return r.useCallback(()=>{const o=e.collectionRef.current;if(!o)return[];const t=Array.from(((l,a)=>{const w=l.querySelectorAll("slot"),A=[...l.querySelectorAll(a)];for(const L of w)for(const x of L.assignedElements())A.push(...(x.shadowRoot??x).querySelectorAll(a));return A})(o,`[${S}]`));return Array.from(e.itemMap.values()).sort((l,a)=>t.indexOf(l.ref.current)-t.indexOf(a.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:C,Slot:R,ItemSlot:I},h,T]}export{g as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as f,u as m}from"./register-
|
|
1
|
+
import{D as f,u as m}from"./register-BMG3ml_B.js";import{c as p}from"./index-CBrz5xtv.js";import{u}from"./index-BTwkmpVj.js";import{P}from"./index-LgFI4FKk.js";var s="Toggle",a=f((e,r)=>{const{pressed:t,defaultPressed:d,onPressedChange:l,...i}=e,[o,n]=u({prop:t,onChange:l,defaultProp:d??!1,caller:s});return m(P.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:r,onClick:p(e.onClick,()=>{e.disabled||n(!o)})})});a.displayName=s;var b=a;export{b as R,a as T};
|
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ type AlertDialogActionProps = BoxProps & {
|
|
|
30
30
|
"icon-position"?: "end" | "start";
|
|
31
31
|
"size"?: "sm" | "md" | "lg";
|
|
32
32
|
"disabled"?: false | true;
|
|
33
|
+
"type"?: "button" | "reset" | "submit";
|
|
33
34
|
"square"?: false | true;
|
|
34
35
|
"appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
|
|
35
36
|
"loading"?: false | true;
|
|
@@ -54,6 +55,7 @@ type AlertDialogCancelProps = BoxProps & {
|
|
|
54
55
|
"icon-position"?: "end" | "start";
|
|
55
56
|
"size"?: "sm" | "md" | "lg";
|
|
56
57
|
"disabled"?: false | true;
|
|
58
|
+
"type"?: "button" | "reset" | "submit";
|
|
57
59
|
"square"?: false | true;
|
|
58
60
|
"appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
|
|
59
61
|
"loading"?: false | true;
|
|
@@ -99,6 +101,7 @@ type AlertDialogTriggerProps = BoxProps & {
|
|
|
99
101
|
"icon-position"?: "end" | "start";
|
|
100
102
|
"size"?: "sm" | "md" | "lg";
|
|
101
103
|
"disabled"?: false | true;
|
|
104
|
+
"type"?: "button" | "reset" | "submit";
|
|
102
105
|
"square"?: false | true;
|
|
103
106
|
"appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
|
|
104
107
|
"loading"?: false | true;
|
|
@@ -112,6 +115,7 @@ type AngleMenuButtonProps = BoxProps & {
|
|
|
112
115
|
"asChild"?: false | true;
|
|
113
116
|
"as-child"?: false | true;
|
|
114
117
|
"disabled"?: false | true;
|
|
118
|
+
"type"?: "button" | "reset" | "submit";
|
|
115
119
|
"addonAfter"?: string | number | false | true;
|
|
116
120
|
"addon-after"?: string;
|
|
117
121
|
"addonBefore"?: string | number | false | true;
|
|
@@ -185,8 +189,8 @@ type BoxProps = {
|
|
|
185
189
|
"border-color"?: "border.accent" | "border.control" | "border.control.hovered" | "border.default" | "border.disabled" | "border.error" | "border.focus" | "border.focus.error" | "border.secondary" | "border.success" | "border.tertiary" | "border.warning" | "transparent" | "current";
|
|
186
190
|
"color"?: "transparent" | "current" | "fg.accent" | "fg.accent.hovered" | "fg.accent.strong" | "fg.avatar.neutral" | "fg.avatar.purple" | "fg.default" | "fg.default.inverse" | "fg.disabled" | "fg.error" | "fg.error.hovered" | "fg.error.light" | "fg.error.strong" | "fg.information" | "fg.information.light" | "fg.information.strong" | "fg.link.default" | "fg.link.default.hovered" | "fg.link.inverse" | "fg.link.subtle" | "fg.link.visited" | "fg.secondary" | "fg.spinner.default" | "fg.spinner.inverse" | "fg.success" | "fg.success.hovered" | "fg.success.light" | "fg.success.strong" | "fg.tertiary" | "fg.warning" | "fg.warning.hovered" | "fg.warning.inverse" | "fg.warning.light" | "fg.warning.strong" | "fg.white";
|
|
187
191
|
"cursor"?: "text" | "pointer" | "default";
|
|
188
|
-
"fontFamily"?: "mono" | "sans";
|
|
189
|
-
"font-family"?: "mono" | "sans";
|
|
192
|
+
"fontFamily"?: "heading" | "mono" | "sans";
|
|
193
|
+
"font-family"?: "heading" | "mono" | "sans";
|
|
190
194
|
"fontSize"?: "xs" | "sm" | "md" | "lg" | "xl" | "inherit" | "2xl" | "3xl" | "4xl";
|
|
191
195
|
"font-size"?: "xs" | "sm" | "md" | "lg" | "xl" | "inherit" | "2xl" | "3xl" | "4xl";
|
|
192
196
|
"fontWeight"?: "inherit" | "400" | "500" | "600" | "700";
|
|
@@ -245,6 +249,8 @@ type BoxProps = {
|
|
|
245
249
|
"flexWrap"?: "nowrap" | "wrap" | ResponsiveObject<"nowrap" | "wrap"> | ResponsiveArray<"nowrap" | "wrap">;
|
|
246
250
|
"flex-wrap"?: "nowrap" | "wrap";
|
|
247
251
|
"gap"?: "0" | "2" | "4" | "6" | "8" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80" | ResponsiveObject<"0" | "2" | "4" | "6" | "8" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80"> | ResponsiveArray<"0" | "2" | "4" | "6" | "8" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80">;
|
|
252
|
+
"gridAutoRows"?: "fr" | ResponsiveObject<"fr"> | ResponsiveArray<"fr">;
|
|
253
|
+
"grid-auto-rows"?: "fr";
|
|
248
254
|
"gridColumn"?: "1" | "2" | "4" | "3" | ResponsiveObject<"1" | "2" | "4" | "3"> | ResponsiveArray<"1" | "2" | "4" | "3">;
|
|
249
255
|
"grid-column"?: "1" | "2" | "4" | "3";
|
|
250
256
|
"gridTemplateColumns"?: "1" | "2" | "4" | "3" | ResponsiveArray<"1" | "2" | "4" | "3"> | ResponsiveObject<"1" | "2" | "4" | "3">;
|
|
@@ -288,6 +294,7 @@ type ButtonProps = BoxProps & {
|
|
|
288
294
|
"icon-position"?: "end" | "start";
|
|
289
295
|
"size"?: "sm" | "md" | "lg";
|
|
290
296
|
"disabled"?: false | true;
|
|
297
|
+
"type"?: "button" | "reset" | "submit";
|
|
291
298
|
"square"?: false | true;
|
|
292
299
|
"appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
|
|
293
300
|
"loading"?: false | true;
|
|
@@ -319,6 +326,8 @@ declare const CardCheckbox = "ax-card-checkbox";
|
|
|
319
326
|
type CardCheckboxProps = BoxProps & {
|
|
320
327
|
"asChild"?: false | true;
|
|
321
328
|
"as-child"?: false | true;
|
|
329
|
+
"required"?: false | true;
|
|
330
|
+
"value"?: string | number | readonly string[];
|
|
322
331
|
"name"?: string;
|
|
323
332
|
"onCheckedChange"?: (checked: boolean) => void;
|
|
324
333
|
"indeterminate"?: false | true;
|
|
@@ -337,6 +346,9 @@ type CardHeaderProps = BoxProps & {
|
|
|
337
346
|
"addonBefore"?: string | number | false | true;
|
|
338
347
|
"addon-before"?: string;
|
|
339
348
|
"description"?: string | number | false | true;
|
|
349
|
+
"lineClamp"?: "1" | "2" | "4" | "3";
|
|
350
|
+
"line-clamp"?: "1" | "2" | "4" | "3";
|
|
351
|
+
"truncate"?: false | true;
|
|
340
352
|
"asChild"?: false | true;
|
|
341
353
|
"as-child"?: false | true;
|
|
342
354
|
};
|
|
@@ -378,6 +390,8 @@ type CheckboxProps = BoxProps & {
|
|
|
378
390
|
"indeterminate"?: false | true;
|
|
379
391
|
"asChild"?: false | true;
|
|
380
392
|
"as-child"?: false | true;
|
|
393
|
+
"required"?: false | true;
|
|
394
|
+
"value"?: string | number | readonly string[];
|
|
381
395
|
"name"?: string;
|
|
382
396
|
"onCheckedChange"?: (checked: boolean) => void;
|
|
383
397
|
};
|
|
@@ -424,6 +438,8 @@ declare const DataTableCheckbox = "ax-data-table-checkbox";
|
|
|
424
438
|
type DataTableCheckboxProps = BoxProps & {
|
|
425
439
|
"asChild"?: false | true;
|
|
426
440
|
"as-child"?: false | true;
|
|
441
|
+
"required"?: false | true;
|
|
442
|
+
"value"?: string | number | readonly string[];
|
|
427
443
|
"name"?: string;
|
|
428
444
|
"onCheckedChange"?: (checked: boolean) => void;
|
|
429
445
|
"description"?: string | number | false | true;
|
|
@@ -456,6 +472,9 @@ type DateInputProps = BoxProps & {
|
|
|
456
472
|
"size"?: "md" | "lg" | "xl";
|
|
457
473
|
"asChild"?: false | true;
|
|
458
474
|
"as-child"?: false | true;
|
|
475
|
+
"required"?: false | true;
|
|
476
|
+
"autoFocus"?: false | true;
|
|
477
|
+
"auto-focus"?: false | true;
|
|
459
478
|
"disabled"?: false | true;
|
|
460
479
|
"onValueChange"?: (value: string) => void;
|
|
461
480
|
"addonAfter"?: string | number | false | true;
|
|
@@ -491,12 +510,12 @@ type DateRangePickerContentProps = BoxProps & {
|
|
|
491
510
|
"max-h"?: "xs" | "sm" | "md" | "lg" | "full";
|
|
492
511
|
"asChild"?: false | true;
|
|
493
512
|
"as-child"?: false | true;
|
|
494
|
-
"align"?: "center" | "end" | "start";
|
|
495
513
|
"minW"?: "0" | "trigger";
|
|
496
514
|
"min-w"?: "0" | "trigger";
|
|
497
|
-
"side"?: "
|
|
515
|
+
"side"?: "top" | "right" | "bottom" | "left";
|
|
498
516
|
"sideOffset"?: number;
|
|
499
517
|
"side-offset"?: number;
|
|
518
|
+
"align"?: "center" | "end" | "start";
|
|
500
519
|
"alignOffset"?: number;
|
|
501
520
|
"align-offset"?: number;
|
|
502
521
|
"onEscapeKeyDown"?: (event: KeyboardEvent) => void;
|
|
@@ -522,6 +541,7 @@ type DateRangePickerTriggerProps = BoxProps & {
|
|
|
522
541
|
"asChild"?: false | true;
|
|
523
542
|
"as-child"?: false | true;
|
|
524
543
|
"disabled"?: false | true;
|
|
544
|
+
"type"?: "button" | "reset" | "submit";
|
|
525
545
|
"addonAfter"?: string | number | false | true;
|
|
526
546
|
"addon-after"?: string;
|
|
527
547
|
"addonBefore"?: string | number | false | true;
|
|
@@ -562,6 +582,7 @@ type DialogCloseProps = BoxProps & {
|
|
|
562
582
|
"icon-position"?: "end" | "start";
|
|
563
583
|
"size"?: "sm" | "md" | "lg";
|
|
564
584
|
"disabled"?: false | true;
|
|
585
|
+
"type"?: "button" | "reset" | "submit";
|
|
565
586
|
"square"?: false | true;
|
|
566
587
|
"appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
|
|
567
588
|
"loading"?: false | true;
|
|
@@ -599,6 +620,9 @@ type DialogHeaderProps = BoxProps & {
|
|
|
599
620
|
"addonAfter"?: string | number | false | true;
|
|
600
621
|
"addon-after"?: string;
|
|
601
622
|
"description"?: string | number | false | true;
|
|
623
|
+
"lineClamp"?: "1" | "2" | "4" | "3";
|
|
624
|
+
"line-clamp"?: "1" | "2" | "4" | "3";
|
|
625
|
+
"truncate"?: false | true;
|
|
602
626
|
"asChild"?: false | true;
|
|
603
627
|
"as-child"?: false | true;
|
|
604
628
|
};
|
|
@@ -614,6 +638,7 @@ type DialogTriggerProps = BoxProps & {
|
|
|
614
638
|
"icon-position"?: "end" | "start";
|
|
615
639
|
"size"?: "sm" | "md" | "lg";
|
|
616
640
|
"disabled"?: false | true;
|
|
641
|
+
"type"?: "button" | "reset" | "submit";
|
|
617
642
|
"square"?: false | true;
|
|
618
643
|
"appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
|
|
619
644
|
"loading"?: false | true;
|
|
@@ -686,10 +711,10 @@ type DropdownMenuContentProps = BoxProps & {
|
|
|
686
711
|
"max-h"?: "xs" | "sm" | "md" | "lg" | "full";
|
|
687
712
|
"asChild"?: false | true;
|
|
688
713
|
"as-child"?: false | true;
|
|
689
|
-
"align"?: "center" | "end" | "start";
|
|
690
714
|
"minW"?: "0" | "trigger";
|
|
691
715
|
"min-w"?: "0" | "trigger";
|
|
692
|
-
"side"?: "
|
|
716
|
+
"side"?: "top" | "right" | "bottom" | "left";
|
|
717
|
+
"align"?: "center" | "end" | "start";
|
|
693
718
|
"onEscapeKeyDown"?: (event: KeyboardEvent) => void;
|
|
694
719
|
"onPointerDownOutside"?: (event: PointerDownOutsideEvent) => void;
|
|
695
720
|
"onFocusOutside"?: (event: FocusOutsideEvent) => void;
|
|
@@ -761,6 +786,7 @@ type DropdownMenuTriggerProps = BoxProps & {
|
|
|
761
786
|
"asChild"?: false | true;
|
|
762
787
|
"as-child"?: false | true;
|
|
763
788
|
"disabled"?: false | true;
|
|
789
|
+
"type"?: "button" | "reset" | "submit";
|
|
764
790
|
"addonAfter"?: string | number | false | true;
|
|
765
791
|
"addon-after"?: string;
|
|
766
792
|
"addonBefore"?: string | number | false | true;
|
|
@@ -779,6 +805,7 @@ type EllipsisMenuButtonProps = BoxProps & {
|
|
|
779
805
|
"asChild"?: false | true;
|
|
780
806
|
"as-child"?: false | true;
|
|
781
807
|
"disabled"?: false | true;
|
|
808
|
+
"type"?: "button" | "reset" | "submit";
|
|
782
809
|
"addonAfter"?: string | number | false | true;
|
|
783
810
|
"addon-after"?: string;
|
|
784
811
|
"addonBefore"?: string | number | false | true;
|
|
@@ -872,9 +899,12 @@ type InputProps = BoxProps & {
|
|
|
872
899
|
"addon-after"?: string;
|
|
873
900
|
"addonBefore"?: string | number | false | true;
|
|
874
901
|
"addon-before"?: string;
|
|
902
|
+
"autoFocus"?: false | true;
|
|
903
|
+
"auto-focus"?: false | true;
|
|
875
904
|
"htmlSize"?: number;
|
|
876
905
|
"html-size"?: number;
|
|
877
|
-
"type"?: "number" | "color" | "button" | "search" | "time" | "image" | "text" | "range" | "month" | "hidden" | "date" | "datetime-local" | "checkbox" | "radio" | string & {} | "tel" | "url" | "email" | "
|
|
906
|
+
"type"?: "number" | "color" | "button" | "search" | "time" | "image" | "text" | "range" | "month" | "hidden" | "date" | "datetime-local" | "checkbox" | "radio" | string & {} | "tel" | "url" | "email" | "reset" | "submit" | "file" | "password" | "week";
|
|
907
|
+
"required"?: false | true;
|
|
878
908
|
"disabled"?: false | true;
|
|
879
909
|
"placeholder"?: string;
|
|
880
910
|
"onValueChange"?: (value: string) => void;
|
|
@@ -893,6 +923,7 @@ declare const InputControl = "ax-input-control";
|
|
|
893
923
|
|
|
894
924
|
type InputControlProps = BoxProps & {
|
|
895
925
|
"size"?: "md" | "lg" | "xl";
|
|
926
|
+
"required"?: false | true;
|
|
896
927
|
"disabled"?: false | true;
|
|
897
928
|
"placeholder"?: string;
|
|
898
929
|
"onValueChange"?: (value: string) => void;
|
|
@@ -924,6 +955,7 @@ type LabelMenuButtonProps = BoxProps & {
|
|
|
924
955
|
"asChild"?: false | true;
|
|
925
956
|
"as-child"?: false | true;
|
|
926
957
|
"disabled"?: false | true;
|
|
958
|
+
"type"?: "button" | "reset" | "submit";
|
|
927
959
|
"square"?: false | true;
|
|
928
960
|
"appearance"?: never;
|
|
929
961
|
"loading"?: false | true;
|
|
@@ -1052,18 +1084,18 @@ declare const Menu = "ax-menu";
|
|
|
1052
1084
|
type MenuProps = {
|
|
1053
1085
|
"size"?: "sm" | "lg";
|
|
1054
1086
|
"placeholder"?: string;
|
|
1055
|
-
"defaultOpen"?: false | true;
|
|
1056
|
-
"default-open"?: false | true;
|
|
1057
|
-
"open"?: false | true;
|
|
1058
|
-
"onOpenChange"?: (open: boolean) => void;
|
|
1059
1087
|
"loading"?: false | true | "both" | "skeleton" | "spinner";
|
|
1060
1088
|
"empty"?: string | number | false | true;
|
|
1061
1089
|
"inputValue"?: string;
|
|
1062
1090
|
"input-value"?: string;
|
|
1063
1091
|
"onInputValueChange"?: (inputValue: string) => void;
|
|
1064
1092
|
"options"?: CommandOption[] | readonly CommandOption[];
|
|
1093
|
+
"defaultOpen"?: false | true;
|
|
1094
|
+
"default-open"?: false | true;
|
|
1065
1095
|
"inputVisible"?: "always" | "if-needed";
|
|
1066
1096
|
"input-visible"?: "always" | "if-needed";
|
|
1097
|
+
"onOpenChange"?: (open: boolean) => void;
|
|
1098
|
+
"open"?: false | true;
|
|
1067
1099
|
};
|
|
1068
1100
|
declare const MenuContent = "ax-menu-content";
|
|
1069
1101
|
|
|
@@ -1072,12 +1104,12 @@ type MenuContentProps = BoxProps & {
|
|
|
1072
1104
|
"max-h"?: "xs" | "sm" | "md" | "lg" | "full";
|
|
1073
1105
|
"asChild"?: false | true;
|
|
1074
1106
|
"as-child"?: false | true;
|
|
1075
|
-
"align"?: "center" | "end" | "start";
|
|
1076
1107
|
"minW"?: "0" | "trigger";
|
|
1077
1108
|
"min-w"?: "0" | "trigger";
|
|
1078
|
-
"side"?: "
|
|
1109
|
+
"side"?: "top" | "right" | "bottom" | "left";
|
|
1079
1110
|
"sideOffset"?: number;
|
|
1080
1111
|
"side-offset"?: number;
|
|
1112
|
+
"align"?: "center" | "end" | "start";
|
|
1081
1113
|
"alignOffset"?: number;
|
|
1082
1114
|
"align-offset"?: number;
|
|
1083
1115
|
"onEscapeKeyDown"?: (event: KeyboardEvent) => void;
|
|
@@ -1094,6 +1126,7 @@ type MenuTriggerProps = BoxProps & {
|
|
|
1094
1126
|
"asChild"?: false | true;
|
|
1095
1127
|
"as-child"?: false | true;
|
|
1096
1128
|
"disabled"?: false | true;
|
|
1129
|
+
"type"?: "button" | "reset" | "submit";
|
|
1097
1130
|
"addonAfter"?: string | number | false | true;
|
|
1098
1131
|
"addon-after"?: string;
|
|
1099
1132
|
"addonBefore"?: string | number | false | true;
|
|
@@ -1151,8 +1184,8 @@ type NavGroupProps = BoxProps & {
|
|
|
1151
1184
|
"disabled"?: false | true;
|
|
1152
1185
|
"defaultOpen"?: false | true;
|
|
1153
1186
|
"default-open"?: false | true;
|
|
1154
|
-
"open"?: false | true;
|
|
1155
1187
|
"onOpenChange"?: (open: boolean) => void;
|
|
1188
|
+
"open"?: false | true;
|
|
1156
1189
|
"collapsible"?: false | true;
|
|
1157
1190
|
};
|
|
1158
1191
|
declare const NavGroupContent = "ax-nav-group-content";
|
|
@@ -1244,12 +1277,12 @@ type PopoverContentProps = BoxProps & {
|
|
|
1244
1277
|
"max-h"?: "xs" | "sm" | "md" | "lg" | "full";
|
|
1245
1278
|
"asChild"?: false | true;
|
|
1246
1279
|
"as-child"?: false | true;
|
|
1247
|
-
"align"?: "center" | "end" | "start";
|
|
1248
1280
|
"minW"?: "0" | "trigger";
|
|
1249
1281
|
"min-w"?: "0" | "trigger";
|
|
1250
|
-
"side"?: "
|
|
1282
|
+
"side"?: "top" | "right" | "bottom" | "left";
|
|
1251
1283
|
"sideOffset"?: number;
|
|
1252
1284
|
"side-offset"?: number;
|
|
1285
|
+
"align"?: "center" | "end" | "start";
|
|
1253
1286
|
"alignOffset"?: number;
|
|
1254
1287
|
"align-offset"?: number;
|
|
1255
1288
|
"onEscapeKeyDown"?: (event: KeyboardEvent) => void;
|
|
@@ -1271,6 +1304,7 @@ type PopoverTriggerProps = BoxProps & {
|
|
|
1271
1304
|
"icon-position"?: "end" | "start";
|
|
1272
1305
|
"size"?: "sm" | "md" | "lg";
|
|
1273
1306
|
"disabled"?: false | true;
|
|
1307
|
+
"type"?: "button" | "reset" | "submit";
|
|
1274
1308
|
"square"?: false | true;
|
|
1275
1309
|
"appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
|
|
1276
1310
|
"loading"?: false | true;
|
|
@@ -1294,6 +1328,8 @@ type RadioProps = BoxProps & {
|
|
|
1294
1328
|
"description"?: string | number | false | true;
|
|
1295
1329
|
"asChild"?: false | true;
|
|
1296
1330
|
"as-child"?: false | true;
|
|
1331
|
+
"required"?: false | true;
|
|
1332
|
+
"value"?: string | number | readonly string[];
|
|
1297
1333
|
"name"?: string;
|
|
1298
1334
|
"onCheckedChange"?: (checked: boolean) => void;
|
|
1299
1335
|
};
|
|
@@ -1317,9 +1353,12 @@ type SearchInputProps = BoxProps & {
|
|
|
1317
1353
|
"size"?: "md" | "lg" | "xl";
|
|
1318
1354
|
"asChild"?: false | true;
|
|
1319
1355
|
"as-child"?: false | true;
|
|
1356
|
+
"required"?: false | true;
|
|
1357
|
+
"autoFocus"?: false | true;
|
|
1358
|
+
"auto-focus"?: false | true;
|
|
1320
1359
|
"disabled"?: false | true;
|
|
1321
1360
|
"placeholder"?: string;
|
|
1322
|
-
"type"?: "number" | "color" | "button" | "search" | "time" | "image" | "text" | "range" | "month" | "hidden" | "date" | "datetime-local" | "checkbox" | "radio" | string & {} | "tel" | "url" | "email" | "
|
|
1361
|
+
"type"?: "number" | "color" | "button" | "search" | "time" | "image" | "text" | "range" | "month" | "hidden" | "date" | "datetime-local" | "checkbox" | "radio" | string & {} | "tel" | "url" | "email" | "reset" | "submit" | "file" | "password" | "week";
|
|
1323
1362
|
"onValueChange"?: (value: string) => void;
|
|
1324
1363
|
"addonAfter"?: string | number | false | true;
|
|
1325
1364
|
"addon-after"?: string;
|
|
@@ -1363,6 +1402,7 @@ type SegmentedControlItemProps = BoxProps & {
|
|
|
1363
1402
|
"icon-position"?: "end" | "start";
|
|
1364
1403
|
"size"?: "sm" | "md" | "lg";
|
|
1365
1404
|
"disabled"?: false | true;
|
|
1405
|
+
"type"?: "button" | "reset" | "submit";
|
|
1366
1406
|
"square"?: false | true;
|
|
1367
1407
|
"appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
|
|
1368
1408
|
"loading"?: false | true;
|
|
@@ -1396,10 +1436,10 @@ type SelectContentProps = BoxProps & {
|
|
|
1396
1436
|
"max-h"?: "xs" | "sm" | "md" | "lg" | "full";
|
|
1397
1437
|
"asChild"?: false | true;
|
|
1398
1438
|
"as-child"?: false | true;
|
|
1399
|
-
"align"?: "center" | "end" | "start";
|
|
1400
1439
|
"minW"?: "0" | "trigger";
|
|
1401
1440
|
"min-w"?: "0" | "trigger";
|
|
1402
|
-
"side"?: "
|
|
1441
|
+
"side"?: "top" | "right" | "bottom" | "left";
|
|
1442
|
+
"align"?: "center" | "end" | "start";
|
|
1403
1443
|
};
|
|
1404
1444
|
declare const SelectTrigger = "ax-select-trigger";
|
|
1405
1445
|
|
|
@@ -1408,6 +1448,7 @@ type SelectTriggerProps = BoxProps & {
|
|
|
1408
1448
|
"asChild"?: false | true;
|
|
1409
1449
|
"as-child"?: false | true;
|
|
1410
1450
|
"placeholder"?: string;
|
|
1451
|
+
"type"?: "button" | "reset" | "submit";
|
|
1411
1452
|
"addonAfter"?: string | number | false | true;
|
|
1412
1453
|
"addon-after"?: string;
|
|
1413
1454
|
"addonBefore"?: string | number | false | true;
|
|
@@ -1475,6 +1516,8 @@ type SwitchProps = BoxProps & {
|
|
|
1475
1516
|
"description"?: string | number | false | true;
|
|
1476
1517
|
"asChild"?: false | true;
|
|
1477
1518
|
"as-child"?: false | true;
|
|
1519
|
+
"required"?: false | true;
|
|
1520
|
+
"value"?: string | number | readonly string[];
|
|
1478
1521
|
"name"?: string;
|
|
1479
1522
|
"onCheckedChange"?: (checked: boolean) => void;
|
|
1480
1523
|
};
|
|
@@ -1587,6 +1630,7 @@ type TextareaProps = BoxProps & {
|
|
|
1587
1630
|
"addon-before"?: string;
|
|
1588
1631
|
"rows"?: number;
|
|
1589
1632
|
"size"?: never;
|
|
1633
|
+
"required"?: false | true;
|
|
1590
1634
|
"disabled"?: false | true;
|
|
1591
1635
|
"placeholder"?: string;
|
|
1592
1636
|
"onValueChange"?: (value: string) => void;
|
|
@@ -1605,8 +1649,8 @@ declare const ToastProvider = "ax-toast-provider";
|
|
|
1605
1649
|
type ToastProviderProps = BoxProps & {
|
|
1606
1650
|
"label"?: string;
|
|
1607
1651
|
"duration"?: number;
|
|
1608
|
-
"swipeDirection"?: "
|
|
1609
|
-
"swipe-direction"?: "
|
|
1652
|
+
"swipeDirection"?: "right" | "left" | "up" | "down";
|
|
1653
|
+
"swipe-direction"?: "right" | "left" | "up" | "down";
|
|
1610
1654
|
"swipeThreshold"?: number;
|
|
1611
1655
|
"swipe-threshold"?: number;
|
|
1612
1656
|
"container"?: Element | DocumentFragment;
|
|
@@ -1629,6 +1673,7 @@ type ToggleButtonProps = BoxProps & {
|
|
|
1629
1673
|
"icon-position"?: "end" | "start";
|
|
1630
1674
|
"size"?: "sm" | "md" | "lg";
|
|
1631
1675
|
"disabled"?: false | true;
|
|
1676
|
+
"type"?: "button" | "reset" | "submit";
|
|
1632
1677
|
"square"?: false | true;
|
|
1633
1678
|
"loading"?: false | true;
|
|
1634
1679
|
"asChild"?: false | true;
|
|
@@ -1648,8 +1693,8 @@ type TooltipProps = {
|
|
|
1648
1693
|
"border-color"?: "border.accent" | "border.control" | "border.control.hovered" | "border.default" | "border.disabled" | "border.error" | "border.focus" | "border.focus.error" | "border.secondary" | "border.success" | "border.tertiary" | "border.warning" | "transparent" | "current";
|
|
1649
1694
|
"color"?: "transparent" | "current" | "fg.accent" | "fg.accent.hovered" | "fg.accent.strong" | "fg.avatar.neutral" | "fg.avatar.purple" | "fg.default" | "fg.default.inverse" | "fg.disabled" | "fg.error" | "fg.error.hovered" | "fg.error.light" | "fg.error.strong" | "fg.information" | "fg.information.light" | "fg.information.strong" | "fg.link.default" | "fg.link.default.hovered" | "fg.link.inverse" | "fg.link.subtle" | "fg.link.visited" | "fg.secondary" | "fg.spinner.default" | "fg.spinner.inverse" | "fg.success" | "fg.success.hovered" | "fg.success.light" | "fg.success.strong" | "fg.tertiary" | "fg.warning" | "fg.warning.hovered" | "fg.warning.inverse" | "fg.warning.light" | "fg.warning.strong" | "fg.white";
|
|
1650
1695
|
"cursor"?: "text" | "pointer" | "default";
|
|
1651
|
-
"fontFamily"?: "mono" | "sans";
|
|
1652
|
-
"font-family"?: "mono" | "sans";
|
|
1696
|
+
"fontFamily"?: "heading" | "mono" | "sans";
|
|
1697
|
+
"font-family"?: "heading" | "mono" | "sans";
|
|
1653
1698
|
"fontSize"?: "xs" | "sm" | "md" | "lg" | "xl" | "inherit" | "2xl" | "3xl" | "4xl";
|
|
1654
1699
|
"font-size"?: "xs" | "sm" | "md" | "lg" | "xl" | "inherit" | "2xl" | "3xl" | "4xl";
|
|
1655
1700
|
"fontWeight"?: "inherit" | "400" | "500" | "600" | "700";
|
|
@@ -1708,6 +1753,8 @@ type TooltipProps = {
|
|
|
1708
1753
|
"flexWrap"?: "nowrap" | "wrap" | ResponsiveObject<"nowrap" | "wrap"> | ResponsiveArray<"nowrap" | "wrap">;
|
|
1709
1754
|
"flex-wrap"?: "nowrap" | "wrap";
|
|
1710
1755
|
"gap"?: "0" | "2" | "4" | "6" | "8" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80" | ResponsiveObject<"0" | "2" | "4" | "6" | "8" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80"> | ResponsiveArray<"0" | "2" | "4" | "6" | "8" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80">;
|
|
1756
|
+
"gridAutoRows"?: "fr" | ResponsiveObject<"fr"> | ResponsiveArray<"fr">;
|
|
1757
|
+
"grid-auto-rows"?: "fr";
|
|
1711
1758
|
"gridColumn"?: "1" | "2" | "4" | "3" | ResponsiveObject<"1" | "2" | "4" | "3"> | ResponsiveArray<"1" | "2" | "4" | "3">;
|
|
1712
1759
|
"grid-column"?: "1" | "2" | "4" | "3";
|
|
1713
1760
|
"gridTemplateColumns"?: "1" | "2" | "4" | "3" | ResponsiveArray<"1" | "2" | "4" | "3"> | ResponsiveObject<"1" | "2" | "4" | "3">;
|
|
@@ -1731,14 +1778,14 @@ type TooltipProps = {
|
|
|
1731
1778
|
"aria-label"?: string;
|
|
1732
1779
|
"content"?: string | number | false | true;
|
|
1733
1780
|
"auto"?: false | true;
|
|
1734
|
-
"
|
|
1735
|
-
"default-open"?: false | true;
|
|
1736
|
-
"open"?: false | true;
|
|
1737
|
-
"onOpenChange"?: (open: boolean) => void;
|
|
1781
|
+
"side"?: "top" | "right" | "bottom" | "left";
|
|
1738
1782
|
"align"?: "center" | "end" | "start";
|
|
1739
|
-
"side"?: "left" | "right" | "top" | "bottom";
|
|
1740
1783
|
"onEscapeKeyDown"?: (event: KeyboardEvent) => void;
|
|
1741
1784
|
"onPointerDownOutside"?: (event: PointerDownOutsideEvent) => void;
|
|
1785
|
+
"defaultOpen"?: false | true;
|
|
1786
|
+
"default-open"?: false | true;
|
|
1787
|
+
"onOpenChange"?: (open: boolean) => void;
|
|
1788
|
+
"open"?: false | true;
|
|
1742
1789
|
"delayDuration"?: number;
|
|
1743
1790
|
"delay-duration"?: number;
|
|
1744
1791
|
"disableHoverableContent"?: false | true;
|
|
@@ -1750,8 +1797,8 @@ type TooltipContentProps = BoxProps & {
|
|
|
1750
1797
|
"asChild"?: false | true;
|
|
1751
1798
|
"as-child"?: false | true;
|
|
1752
1799
|
"aria-label"?: string;
|
|
1800
|
+
"side"?: "top" | "right" | "bottom" | "left";
|
|
1753
1801
|
"align"?: "center" | "end" | "start";
|
|
1754
|
-
"side"?: "left" | "right" | "top" | "bottom";
|
|
1755
1802
|
"onEscapeKeyDown"?: (event: KeyboardEvent) => void;
|
|
1756
1803
|
"onPointerDownOutside"?: (event: PointerDownOutsideEvent) => void;
|
|
1757
1804
|
"disableHoverableContent"?: false | true;
|
|
@@ -1792,7 +1839,7 @@ type TransitionProps = {
|
|
|
1792
1839
|
"duration"?: "sm" | "md" | "lg";
|
|
1793
1840
|
"className"?: string;
|
|
1794
1841
|
"class-name"?: string;
|
|
1795
|
-
"data-side"?: "
|
|
1842
|
+
"data-side"?: "top" | "right" | "bottom" | "left";
|
|
1796
1843
|
"skipAnimations"?: false | true;
|
|
1797
1844
|
"skip-animations"?: false | true;
|
|
1798
1845
|
"type"?: "fade" | "pop";
|