@optiaxiom/web-components 0.8.17 → 0.9.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/ModalProvider/package.json +4 -0
- package/dist/ActionsRoot.css.ts.vanilla-CJW_goYk-DD27cZyT.js +1 -0
- package/dist/AlertDialogContext-qRz58Zso.js +1 -0
- package/dist/{AngleMenuButton-DO2wgXdB.js → AngleMenuButton-DffQrsJs.js} +1 -1
- package/dist/Avatar-CQuALaD4.js +1 -0
- package/dist/AvatarContext-Bn32jhHA.js +1 -0
- package/dist/Backdrop-BJkb0rja.js +1 -0
- package/dist/Badge-BHhFk1mo.js +1 -0
- package/dist/Box-Dupl2ZhR.js +1 -0
- package/dist/Button-BrurJQ0s.js +1 -0
- package/dist/ButtonContext-DMHfQOmC.js +1 -0
- package/dist/Checkbox-B8TaRdKR.js +1 -0
- package/dist/Combination-DBzD43hH.js +41 -0
- package/dist/Cover--MbOMIi3.js +1 -0
- package/dist/DialogContext-BDgpDV0D.js +1 -0
- package/dist/Disclosure-Do3fgfUx.js +1 -0
- package/dist/DisclosureContent-BrpLBTAE.js +1 -0
- package/dist/DisclosureContext-DGc4QqzQ.js +1 -0
- package/dist/DisclosureTrigger-Dukx8x3m.js +1 -0
- package/dist/DropdownMenuContext-BLpmXpAr.js +1 -0
- package/dist/DropdownMenuSubContext-DqTd5ihu.js +1 -0
- package/dist/FieldContext-6iMaGAD7.js +1 -0
- package/dist/FieldLabel-Ct4iEo7w.js +1 -0
- package/dist/{Flex-CXQ82zpW.js → Flex-BZJdcSur.js} +1 -1
- package/dist/Heading-SVbbWipq.js +1 -0
- package/dist/Icon-DgRZSc_M.js +1 -0
- package/dist/{IconAngleRight-DL3O23nT.js → IconAngleRight-CuxNcNEE.js} +1 -1
- package/dist/{IconCircleInfoSolid-BWgltDiF.js → IconCircleInfoSolid-GALkurHr.js} +1 -1
- package/dist/{IconEllipsis-D5yRtb4z.js → IconEllipsis-BMJj_hsQ.js} +1 -1
- package/dist/{IconTriangleExclamationSolid-8THcI08R.js → IconTriangleExclamationSolid-CB4NzcO5.js} +1 -1
- package/dist/{IconX-L5EVObs7.js → IconX-Ds22vDcN.js} +1 -1
- package/dist/Input-rya4ZlZP.js +1 -0
- package/dist/InputAddon-CofCivxf.js +1 -0
- package/dist/InputContext-ky6c9uf2.js +1 -0
- package/dist/InputControl-YVPcxtK4.js +1 -0
- package/dist/InputControl.css.ts.vanilla-BO22HPl9-B2B53mV4.js +1 -0
- package/dist/InputRoot-Cv-UytJq.js +1 -0
- package/dist/{Listbox-OE6msEvs.js → Listbox-BH8ryx1z.js} +1 -1
- package/dist/ListboxGroupContext-utrDaq9Q.js +1 -0
- package/dist/ListboxItem-ev6qwzB2.js +1 -0
- package/dist/{ListboxItemIndicator-Cz0PiBYG.js → ListboxItemIndicator-Bf90M_qU.js} +1 -1
- package/dist/ListboxSeparator-DN-V0Vnl.js +1 -0
- package/dist/{ListboxSwitchItem-_PTFnCkI.js → ListboxSwitchItem-CY7yKnTJ.js} +1 -1
- package/dist/MenuListbox-DHRoaKd2.js +1 -0
- package/dist/ModalContext-BwYmT1QX.js +1 -0
- package/dist/NavGroupContext-CeTFgwbc.js +1 -0
- package/dist/NavItem-CDjPsvif.js +1 -0
- package/dist/{Paper-CwTcSvLf.js → Paper-X_XW9yMb.js} +1 -1
- package/dist/PopoverContext-oIl79d65.js +1 -0
- package/dist/RadioGroupContext-b5KYHND5.js +1 -0
- package/dist/SegmentedControlContext-CnSzHLZn.js +1 -0
- package/dist/Separator-CixNUKbv.js +1 -0
- package/dist/SidebarContext-Bl6eLsCa.js +1 -0
- package/dist/Spinner-Bq7PTDd2.js +1 -0
- package/dist/Switch-CwEUyKDN.js +1 -0
- package/dist/Text-CsqwIzrO.js +1 -0
- package/dist/ThemeProvider-D-_Ehge6.js +13 -0
- package/dist/Toast-CIR96XH4.js +1 -0
- package/dist/ToastAction-CGe8t_6N.js +1 -0
- package/dist/ToastProvider-bR8ss4j1.js +1 -0
- package/dist/ToastTitle-_OF6ttN8.js +1 -0
- package/dist/ToggleInputHiddenInput-q1NdAOtl.js +1 -0
- package/dist/{Tooltip-CpnTzh5Q.js → Tooltip-DYvwy4-p.js} +1 -1
- package/dist/TooltipContent-5nxItMPx.js +1 -0
- package/dist/TooltipContext-FdRlb2OX.js +1 -0
- package/dist/TooltipProvider-DY8DhwhQ.js +1 -0
- package/dist/TooltipRoot-DlaOofS8.js +1 -0
- package/dist/TooltipTrigger-BGC0QR6Y.js +1 -0
- package/dist/Transition-Baoiw9mI.js +1 -0
- package/dist/TransitionGroup-CWOLtJRO.js +1 -0
- package/dist/components/Alert.js +1 -1
- package/dist/components/AlertDialog.js +1 -1
- package/dist/components/AlertDialogAction.js +1 -1
- package/dist/components/AlertDialogBody.js +1 -1
- 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.js +1 -1
- package/dist/components/AngleMenuButton.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.js +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/ButtonGroup.js +1 -1
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Code.js +1 -1
- package/dist/components/Dialog.js +1 -1
- package/dist/components/DialogBody.js +1 -1
- 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.js +1 -1
- 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.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.js +1 -1
- 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/Heading.js +1 -1
- package/dist/components/Indicator.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputAddon.js +1 -1
- package/dist/components/InputControl.js +1 -1
- package/dist/components/InputRoot.js +1 -1
- package/dist/components/Kbd.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/ListboxFooter.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/ListboxLabel.js +1 -1
- package/dist/components/ListboxRadioItem.js +1 -1
- package/dist/components/ListboxScrollArea.js +1 -1
- package/dist/components/ListboxSeparator.js +1 -1
- package/dist/components/ListboxSwitchItem.js +1 -1
- package/dist/components/ModalLayer.js +1 -1
- package/dist/components/{ModalContextProvider.d.ts → ModalProvider.d.ts} +5 -5
- package/dist/components/ModalProvider.js +1 -0
- 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.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.js +1 -1
- package/dist/components/PopoverTrigger.js +1 -1
- package/dist/components/Progress.js +3 -3
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/SearchInput.js +1 -1
- package/dist/components/SegmentedControl.js +1 -1
- package/dist/components/SegmentedControlItem.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.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.js +1 -1
- package/dist/components/ThemeProvider.js +1 -1
- package/dist/components/Toast.js +1 -1
- package/dist/components/ToastAction.js +1 -1
- package/dist/components/ToastProvider.js +1 -1
- package/dist/components/ToastTitle.js +1 -1
- package/dist/components/ToggleButton.js +1 -1
- package/dist/components/Tooltip.js +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.js +1 -1
- package/dist/components/TransitionGroup.js +1 -1
- package/dist/decorateChildren-Bp9gT3nb.js +1 -0
- package/dist/fallbackSpan-XFSiSN6u.js +1 -0
- package/dist/index-B7vP9XGo.js +1 -0
- package/dist/index-B8SqM_qc.js +1 -0
- package/dist/index-BEiIs7kQ.js +1 -0
- package/dist/index-BHvtk9Tv.js +1 -0
- package/dist/index-BPqGk9Gj.js +1 -0
- package/dist/index-BQ695yXm.js +7 -0
- package/dist/index-BbhzpmQg.js +1 -0
- package/dist/index-Bgdj4x1s.js +1 -0
- package/dist/index-C4kHpda5.js +1 -0
- package/dist/index-CBrz5xtv.js +1 -0
- package/dist/index-CHNoa_cz.js +1 -0
- package/dist/index-CO4dgn6N.js +1 -0
- package/dist/index-CQ6Ij8pA.js +1 -0
- package/dist/index-CcTkL6Eh.js +1 -0
- package/dist/index-CcqAY25J.js +1 -0
- package/dist/index-Cuf1DbBB.js +1 -0
- package/dist/index-CxPe_0NT.js +1 -0
- package/dist/index-DCb-4i57.js +1 -0
- package/dist/index-DCi_EqPS.js +1 -0
- package/dist/index-DcYiqDQo.js +1 -0
- package/dist/index-DuJ2JvNE.js +1 -0
- package/dist/index-Efhd2Xco.js +1 -0
- package/dist/index-JbW3xeEH.js +5 -0
- package/dist/index-SA_oUTNH.js +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/layers.css.ts.vanilla-vkICs9QI-GwRLnsQq.js +1 -0
- package/dist/{propTypes-DUIdH7is.js → propTypes-D4oxq123.js} +1 -1
- package/dist/register-D4rZ1J7I.js +6 -0
- package/dist/useNestedDialogCount-BoMrtgnd.js +1 -0
- package/dist/{withIcon-wW4hpoKD.js → withIcon-PJZGRlrK.js} +1 -1
- package/package.json +8 -8
- package/ModalContextProvider/package.json +0 -4
- package/dist/ActionsRoot.css.ts.vanilla-Batxd1He-Dj1p7wwV.js +0 -1
- package/dist/AlertDialogContext-4jVTOnNr.js +0 -1
- package/dist/Avatar-BFBeQ_L3.js +0 -1
- package/dist/AvatarContext-B0md_fFf.js +0 -1
- package/dist/Backdrop-BafUUVdW.js +0 -1
- package/dist/Badge-DmfNkms8.js +0 -1
- package/dist/Box-BUMrmhSU.js +0 -1
- package/dist/Button-DjSy24aZ.js +0 -1
- package/dist/ButtonContext-DQSp_PuM.js +0 -1
- package/dist/Checkbox-BMjtMeqZ.js +0 -1
- package/dist/Combination-Bb-E1y6u.js +0 -41
- package/dist/Cover-C7eJcCVN.js +0 -1
- package/dist/DialogContext-CDCYN7EY.js +0 -1
- package/dist/Disclosure-DhjNHMf8.js +0 -1
- package/dist/DisclosureContent-BF3COxxP.js +0 -1
- package/dist/DisclosureContext-Df5U7teG.js +0 -1
- package/dist/DisclosureTrigger-CMKfypQS.js +0 -1
- package/dist/DropdownMenuContext-BUsGEMCS.js +0 -1
- package/dist/DropdownMenuSubContext-CrCUrnd7.js +0 -1
- package/dist/FieldContext-B9d1QLDw.js +0 -1
- package/dist/FieldLabel-DIqmilV6.js +0 -1
- package/dist/Heading-Bqu0qgAD.js +0 -1
- package/dist/Icon-Bn8ypdjS.js +0 -1
- package/dist/Input-CIRix9iv.js +0 -1
- package/dist/InputAddon-DiiLFUiv.js +0 -1
- package/dist/InputContext-DW6PuRPt.js +0 -1
- package/dist/InputControl-BfSn-9c9.js +0 -1
- package/dist/InputControl.css.ts.vanilla-CODeJXi7-CWV0goUa.js +0 -1
- package/dist/InputRoot-BU02vgOI.js +0 -1
- package/dist/ListboxGroupContext-Bcts7LVh.js +0 -1
- package/dist/ListboxItem-L3cQ9MR3.js +0 -1
- package/dist/ListboxSeparator-D-Tff77m.js +0 -1
- package/dist/MenuListbox-gNTgdPW9.js +0 -1
- package/dist/ModalContext-CpKmfTWR.js +0 -1
- package/dist/NavGroupContext-CwJu7gy4.js +0 -1
- package/dist/NavItem-D-CL9djG.js +0 -1
- package/dist/PopoverContext-BSjQSFEm.js +0 -1
- package/dist/RadioGroupContext-BXnF8715.js +0 -1
- package/dist/SegmentedControlContext-CIkO_vST.js +0 -1
- package/dist/Separator-DTMVhjO5.js +0 -1
- package/dist/SidebarContext-g4TVmrqd.js +0 -1
- package/dist/Spinner-C_ijYXYc.js +0 -1
- package/dist/Switch-BvAwYSfj.js +0 -1
- package/dist/Text-C9Ou-2dL.js +0 -1
- package/dist/ThemeProvider-Dwat03vI.js +0 -13
- package/dist/Toast-B5rZwPE1.js +0 -1
- package/dist/ToastAction-BzSA4oop.js +0 -1
- package/dist/ToastProvider-CvcMgb0v.js +0 -1
- package/dist/ToastTitle-BvWqpjlh.js +0 -1
- package/dist/ToggleInputHiddenInput-MqN6soqP.js +0 -1
- package/dist/TooltipContent-DCCTSVhk.js +0 -1
- package/dist/TooltipContext-pKXo31TY.js +0 -1
- package/dist/TooltipProvider-C6iuIm13.js +0 -1
- package/dist/TooltipRoot-Cu2NESWD.js +0 -1
- package/dist/TooltipTrigger-BhfSIHu4.js +0 -1
- package/dist/Transition-Ob13kg2s.js +0 -1
- package/dist/TransitionGroup-BN6F51R7.js +0 -1
- package/dist/components/ModalContextProvider.js +0 -1
- package/dist/decorateChildren-1GnT5Aqm.js +0 -1
- package/dist/fallbackSpan-263aEOGL.js +0 -1
- package/dist/index-69tPrqvR.js +0 -1
- package/dist/index-BD6qJxJ_.js +0 -1
- package/dist/index-BZydTn4I.js +0 -1
- package/dist/index-BuDubh4d.js +0 -1
- package/dist/index-C8kBpDgU.js +0 -1
- package/dist/index-ChZIWP7V.js +0 -1
- package/dist/index-Ct5mAjJn.js +0 -1
- package/dist/index-CyR_ysPj.js +0 -1
- package/dist/index-D3aYOJDt.js +0 -1
- package/dist/index-DI5XduKK.js +0 -1
- package/dist/index-DXFJDeKK.js +0 -1
- package/dist/index-DdKzi3G8.js +0 -1
- package/dist/index-DfRNMAMP.js +0 -1
- package/dist/index-DlCgm6w2.js +0 -1
- package/dist/index-DoxzGB9i.js +0 -1
- package/dist/index-Dybun7Nr.js +0 -1
- package/dist/index-HkRAw5sq.js +0 -7
- package/dist/index-KA5YxQh6.js +0 -1
- package/dist/index-MwMtar-B.js +0 -5
- package/dist/index-NEJS7Nk0.js +0 -1
- package/dist/index-TBoCO2r9.js +0 -1
- package/dist/index-cwwRtBLW.js +0 -1
- package/dist/index-ikrkLx7B.js +0 -1
- package/dist/index-oCuTx72x.js +0 -1
- package/dist/layers.css.ts.vanilla-6xLEkHBd-K8wAiDBY.js +0 -1
- package/dist/register-e7OIOgVU.js +0 -6
- package/dist/useNestedDialogCount-BkwGm8Q3.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as A,A as _,y as E,u as c,q as D,D as f,k as gn}from"./register-D4rZ1J7I.js";import{c as M}from"./index-CBrz5xtv.js";import{u as G,a as _n,c as ge}from"./index-CQ6Ij8pA.js";import{a as _e}from"./index-Bgdj4x1s.js";import{u as Ce}from"./index-B7vP9XGo.js";import{d as Cn,P as N}from"./index-DuJ2JvNE.js";import{c as wn}from"./index-SA_oUTNH.js";import{c as we,u as Pn,I as Dn,R as In}from"./index-B8SqM_qc.js";import{D as Sn}from"./index-CHNoa_cz.js";import{u as En,o as yn}from"./Combination-DBzD43hH.js";import{h as xn,F as bn}from"./index-BbhzpmQg.js";import{u as W}from"./index-Cuf1DbBB.js";import{c as Pe,R as De,C as Rn,A as Tn,a as An}from"./index-CxPe_0NT.js";import{P as Nn}from"./index-Efhd2Xco.js";import{P as j}from"./index-BPqGk9Gj.js";import{u as oe}from"./index-CcqAY25J.js";var te=["Enter"," "],On=["ArrowDown","PageUp","Home"],Ie=["ArrowUp","PageDown","End"],kn=[...On,...Ie],Ln={ltr:[...te,"ArrowRight"],rtl:[...te,"ArrowLeft"]},Gn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},F="Menu",[K,Fn,Kn]=wn(F),[y,Se]=_e(F,[Kn,Pe,we]),U=Pe(),Ee=we(),[ye,I]=y(F),[Un,B]=y(F),xe=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=_(!1),s=oe(a),v=Pn(r);return E(()=>{const P=()=>{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",P,{capture:!0}),()=>{document.removeEventListener("keydown",P,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),c(De,{...i,children:c(ye,{scope:o,open:n,onOpenChange:s,content:p,onContentChange:m,children:c(Un,{scope:o,onClose:D(()=>s(!1),[s]),isUsingKeyboardRef:l,dir:v,modal:u,children:t})})})};xe.displayName=F;var Bn="MenuAnchor",re=f((e,o)=>{const{__scopeMenu:n,...t}=e,r=U(n);return c(Tn,{...r,...t,ref:o})});re.displayName=Bn;var ae="MenuPortal",[$n,be]=y(ae,{forceMount:void 0}),Re=e=>{const{__scopeMenu:o,forceMount:n,children:t,container:r}=e,a=I(ae,o);return c($n,{scope:o,forceMount:n,children:c(j,{present:n||a.open,children:c(Nn,{asChild:!0,container:r,children:t})})})};Re.displayName=ae;var w="MenuContent",[Vn,ce]=y(w),Te=f((e,o)=>{const n=be(w,e.__scopeMenu),{forceMount:t=n.forceMount,...r}=e,a=I(w,e.__scopeMenu),u=B(w,e.__scopeMenu);return c(K.Provider,{scope:e.__scopeMenu,children:c(j,{present:t||a.open,children:c(K.Slot,{scope:e.__scopeMenu,children:u.modal?c(Xn,{...r,ref:o}):c(Yn,{...r,ref:o})})})})}),Xn=f((e,o)=>{const n=I(w,e.__scopeMenu),t=_(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)})}),Yn=f((e,o)=>{const n=I(w,e.__scopeMenu);return c(se,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),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:P,disableOutsideScroll:h,...x}=e,O=I(w,n),b=B(w,n),dn=U(n),ln=Ee(n),fe=Fn(n),[pn,me]=A(null),X=_(null),fn=G(o,X,O.onContentChange),Y=_(0),H=_(""),mn=_(0),J=_(null),Me=_("right"),Q=_(0),Mn=h?yn:gn,vn=h?{as:_n,allowPinchZoom:!0}:void 0,hn=d=>{const T=H.current+d,S=fe().filter(g=>!g.disabled),k=(()=>{let g=document.activeElement;for(;g?.shadowRoot;)g=g.shadowRoot.activeElement;return g})(),ee=S.find(g=>g.ref.current===k)?.textValue,ne=S.map(g=>g.textValue),ve=to(ne,T,ee),L=S.find(g=>g.textValue===ve)?.ref.current;(function g(he){H.current=he,window.clearTimeout(Y.current),he!==""&&(Y.current=window.setTimeout(()=>g(""),1e3))})(T),L&&setTimeout(()=>L.focus())};E(()=>()=>window.clearTimeout(Y.current),[]),En();const R=D(d=>Me.current===J.current?.side&&ao(d,J.current?.area),[]);return c(Vn,{scope:n,searchRef:H,onItemEnter:D(d=>{R(d)&&d.preventDefault()},[R]),onItemLeave:D(d=>{R(d)||(X.current?.focus(),me(null))},[R]),onTriggerLeave:D(d=>{R(d)&&d.preventDefault()},[R]),pointerGraceTimerRef:mn,onPointerGraceIntentChange:D(d=>{J.current=d},[]),children:c(Mn,{...vn,children:c(bn,{asChild:!0,trapped:r,onMountAutoFocus:M(a,d=>{d.preventDefault(),X.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:c(Sn,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:m,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:v,onDismiss:P,children:c(In,{asChild:!0,...ln,dir:b.dir,orientation:"vertical",loop:t,currentTabStopId:pn,onCurrentTabStopIdChange:me,onEntryFocus:M(p,d=>{b.isUsingKeyboardRef.current||d.preventDefault()}),preventScrollOnEntryFocus:!0,children:c(Rn,{role:"menu","aria-orientation":"vertical","data-state":ze(O.open),"data-radix-menu-content":"",dir:b.dir,...dn,...x,ref:fn,style:{outline:"none",...x.style},onKeyDown:M(x.onKeyDown,d=>{const S=d.target.closest("[data-radix-menu-content]")===d.currentTarget,k=d.ctrlKey||d.altKey||d.metaKey,ee=d.key.length===1;S&&(d.key==="Tab"&&d.preventDefault(),!k&&ee&&hn(d.key));const ne=X.current;if(d.target!==ne||!kn.includes(d.key))return;d.preventDefault();const L=fe().filter(g=>!g.disabled).map(g=>g.ref.current);Ie.includes(d.key)&&L.reverse(),no(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,S=Q.current!==d.clientX;if(d.currentTarget.contains(T)&&S){const k=d.clientX>Q.current?"right":"left";Me.current=k,Q.current=d.clientX}}))})})})})})})});Te.displayName=w;var Hn="MenuGroup",ue=f((e,o)=>{const{__scopeMenu:n,...t}=e;return c(N.div,{role:"group",...t,ref:o})});ue.displayName=Hn;var Wn="MenuLabel",Ae=f((e,o)=>{const{__scopeMenu:n,...t}=e;return c(N.div,{...t,ref:o})});Ae.displayName=Wn;var z="MenuItem",Ne="menu.itemSelect",q=f((e,o)=>{const{disabled:n=!1,onSelect:t,...r}=e,a=_(null),u=B(z,e.__scopeMenu),i=ce(z,e.__scopeMenu),p=G(o,a),m=_(!1),l=()=>{const s=a.current;if(!n&&s){const v=new CustomEvent(Ne,{bubbles:!0,cancelable:!0});s.addEventListener(Ne,P=>t?.(P),{once:!0}),Cn(s,v),v.defaultPrevented?m.current=!1:u.onClose()}};return c(Oe,{...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===" "||te.includes(s.key)&&(s.currentTarget.click(),s.preventDefault())})})});q.displayName=z;var Oe=f((e,o)=>{const{__scopeMenu:n,disabled:t=!1,textValue:r,...a}=e,u=ce(z,n),i=Ee(n),p=_(null),m=G(o,p),[l,s]=A(!1),[v,P]=A("");return E(()=>{const h=p.current;h&&P((h.textContent??"").trim())},[a.children]),c(K.ItemSlot,{scope:n,disabled:t,textValue:r??v,children:c(Dn,{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))})})})}),jn="MenuCheckboxItem",ke=f((e,o)=>{const{checked:n=!1,onCheckedChange:t,...r}=e;return c(Ue,{scope:e.__scopeMenu,checked:n,children:c(q,{role:"menuitemcheckbox","aria-checked":Z(n)?"mixed":n,...r,ref:o,"data-state":le(n),onSelect:M(r.onSelect,()=>t?.(Z(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ke.displayName=jn;var Le="MenuRadioGroup",[zn,qn]=y(Le,{value:void 0,onValueChange:()=>{}}),Ge=f((e,o)=>{const{value:n,onValueChange:t,...r}=e,a=oe(t);return c(zn,{scope:e.__scopeMenu,value:n,onValueChange:a,children:c(ue,{...r,ref:o})})});Ge.displayName=Le;var Fe="MenuRadioItem",Ke=f((e,o)=>{const{value:n,...t}=e,r=qn(Fe,e.__scopeMenu),a=n===r.value;return c(Ue,{scope:e.__scopeMenu,checked:a,children:c(q,{role:"menuitemradio","aria-checked":a,...t,ref:o,"data-state":le(a),onSelect:M(t.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ke.displayName=Fe;var ie="MenuItemIndicator",[Ue,Zn]=y(ie,{checked:!1}),Be=f((e,o)=>{const{__scopeMenu:n,forceMount:t,...r}=e,a=Zn(ie,n);return c(j,{present:t||Z(a.checked)||a.checked===!0,children:c(N.span,{...r,ref:o,"data-state":le(a.checked)})})});Be.displayName=ie;var Jn="MenuSeparator",$e=f((e,o)=>{const{__scopeMenu:n,...t}=e;return c(N.div,{role:"separator","aria-orientation":"horizontal",...t,ref:o})});$e.displayName=Jn;var Qn="MenuArrow",Ve=f((e,o)=>{const{__scopeMenu:n,...t}=e,r=U(n);return c(An,{...r,...t,ref:o})});Ve.displayName=Qn;var de="MenuSub",[eo,Xe]=y(de),Ye=e=>{const{__scopeMenu:o,children:n,open:t=!1,onOpenChange:r}=e,a=I(de,o),u=U(o),[i,p]=A(null),[m,l]=A(null),s=oe(r);return E(()=>(a.open===!1&&s(!1),()=>s(!1)),[a.open,s]),c(De,{...u,children:c(ye,{scope:o,open:t,onOpenChange:s,content:m,onContentChange:l,children:c(eo,{scope:o,contentId:W(),triggerId:W(),trigger:i,onTriggerChange:p,children:n})})})};Ye.displayName=de;var $="MenuSubTrigger",He=f((e,o)=>{const n=I($,e.__scopeMenu),t=B($,e.__scopeMenu),r=Xe($,e.__scopeMenu),a=ce($,e.__scopeMenu),u=_(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:p}=a,m={__scopeMenu:e.__scopeMenu},l=D(()=>{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(re,{asChild:!0,...m,children:c(Oe,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":ze(n.open),...e,ref:ge(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 P=n.content?.dataset.side,h=P==="right",x=h?-5:5,O=v[h?"left":"right"],b=v[h?"right":"left"];a.onPointerGraceIntentChange({area:[{x:s.clientX+x,y:s.clientY},{x:O,y:v.top},{x:b,y:v.top},{x:b,y:v.bottom},{x:O,y:v.bottom}],side:P}),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===" "||Ln[t.dir].includes(s.key)&&(n.onOpenChange(!0),n.content?.focus(),s.preventDefault())})})})});He.displayName=$;var We="MenuSubContent",je=f((e,o)=>{const n=be(w,e.__scopeMenu),{forceMount:t=n.forceMount,...r}=e,a=I(w,e.__scopeMenu),u=B(w,e.__scopeMenu),i=Xe(We,e.__scopeMenu),p=_(null),m=G(o,p);return c(K.Provider,{scope:e.__scopeMenu,children:c(j,{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=Gn[u.dir].includes(l.key);s&&v&&(a.onOpenChange(!1),i.trigger?.focus(),l.preventDefault())})})})})})});je.displayName=We;function ze(e){return e?"open":"closed"}function Z(e){return e==="indeterminate"}function le(e){return Z(e)?"indeterminate":e?"checked":"unchecked"}function no(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 oo(e,o){return e.map((n,t)=>e[(o+t)%e.length])}function to(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=oo(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 ro(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].x,p=o[a].y,m=o[u].x,l=o[u].y;p>t!=l>t&&n<(m-i)*(t-p)/(l-p)+i&&(r=!r)}return r}function ao(e,o){if(!o)return!1;const n={x:e.clientX,y:e.clientY};return ro(n,o)}function V(e){return o=>o.pointerType==="mouse"?e(o):void 0}var co=xe,so=re,uo=Re,io=Te,lo=ue,po=Ae,fo=q,mo=ke,Mo=Ge,vo=Ke,ho=Be,go=$e,_o=Ve,Co=Ye,wo=He,Po=je,pe="DropdownMenu",[Do,vt]=_e(pe,[Se]),C=Se(),[Io,qe]=Do(pe),Ze=e=>{const{__scopeDropdownMenu:o,children:n,dir:t,open:r,defaultOpen:a,onOpenChange:u,modal:i=!0}=e,p=C(o),m=_(null),[l=!1,s]=Ce({prop:r,defaultProp:a,onChange:u});return c(Io,{scope:o,triggerId:W(),triggerRef:m,contentId:W(),open:l,onOpenChange:s,onOpenToggle:D(()=>s(v=>!v),[s]),modal:i,children:c(co,{...p,open:l,onOpenChange:s,dir:t,modal:i,children:n})})};Ze.displayName=pe;var Je="DropdownMenuTrigger",Qe=f((e,o)=>{const{__scopeDropdownMenu:n,disabled:t=!1,...r}=e,a=qe(Je,n),u=C(n);return c(so,{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:ge(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())})})})});Qe.displayName=Je;var So="DropdownMenuPortal",en=e=>{const{__scopeDropdownMenu:o,...n}=e,t=C(o);return c(uo,{...t,...n})};en.displayName=So;var nn="DropdownMenuContent",on=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=qe(nn,n),a=C(n),u=_(!1);return c(io,{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)"}})});on.displayName=nn;var Eo="DropdownMenuGroup",tn=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(lo,{...r,...t,ref:o})});tn.displayName=Eo;var yo="DropdownMenuLabel",rn=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(po,{...r,...t,ref:o})});rn.displayName=yo;var xo="DropdownMenuItem",an=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(fo,{...r,...t,ref:o})});an.displayName=xo;var bo="DropdownMenuCheckboxItem",cn=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(mo,{...r,...t,ref:o})});cn.displayName=bo;var Ro="DropdownMenuRadioGroup",To=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(Mo,{...r,...t,ref:o})});To.displayName=Ro;var Ao="DropdownMenuRadioItem",No=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(vo,{...r,...t,ref:o})});No.displayName=Ao;var Oo="DropdownMenuItemIndicator",ko=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(ho,{...r,...t,ref:o})});ko.displayName=Oo;var Lo="DropdownMenuSeparator",sn=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(go,{...r,...t,ref:o})});sn.displayName=Lo;var Go="DropdownMenuArrow",Fo=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(_o,{...r,...t,ref:o})});Fo.displayName=Go;var Ko=e=>{const{__scopeDropdownMenu:o,children:n,open:t,onOpenChange:r,defaultOpen:a}=e,u=C(o),[i=!1,p]=Ce({prop:t,defaultProp:a,onChange:r});return c(Co,{...u,open:i,onOpenChange:p,children:n})},Uo="DropdownMenuSubTrigger",Bo=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(wo,{...r,...t,ref:o})});Bo.displayName=Uo;var $o="DropdownMenuSubContent",un=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(Po,{...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)"}})});un.displayName=$o;var Vo=Ze,Xo=Qe,Yo=en,Ho=on,Wo=tn,jo=rn,zo=an,qo=cn,Zo=sn,Jo=Ko,Qo=un;export{qo as C,Wo as G,zo as I,jo as L,Yo as P,Vo as R,Zo as S,Xo as T,Ho as a,Jo as b,Qo as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{q as b,D as g,O as l,p as u,u as p,e as d,k as m}from"./register-D4rZ1J7I.js";function h(n,t){if(typeof n=="function")return n(t);n!=null&&(n.current=t)}function a(...n){return t=>{let e=!1;const o=n.map(r=>{const s=h(r,t);return!e&&typeof s=="function"&&(e=!0),s});if(e)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():h(n[r],null)}}}}function v(...n){return b(a(...n),n)}var R=g((n,t)=>{const{children:e,...o}=n,r=l.toArray(e),s=r.find(C);if(s){const i=s.props.children,c=r.map(y=>y===s?l.count(i)>1?l.only(null):u(i)?i.props.children:null:y);return p(f,{...o,ref:t,children:u(i)?d(i,void 0,c):null})}return p(f,{...o,ref:t,children:e})});R.displayName="Slot";var f=g((n,t)=>{const{children:e,...o}=n;if(u(e)){const r=P(e),s=O(o,e.props);return e.type!==m&&(s.ref=t?a(t,r):r),d(e,s)}return l.count(e)>1?l.only(null):null});f.displayName="SlotClone";var S=({children:n})=>p(m,{children:n});function C(n){return u(n)&&n.type===S}function O(n,t){const e={...t};for(const o in t){const r=n[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?e[o]=(...c)=>{s(...c),r(...c)}:r&&(e[o]=r):o==="style"?e[o]={...r,...s}:o==="className"&&(e[o]=[r,s].filter(Boolean).join(" "))}return{...n,...e}}function P(n){let t=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,e=t&&"isReactWarning"in t&&t.isReactWarning;return e?n.ref:(t=Object.getOwnPropertyDescriptor(n,"ref")?.get,e=t&&"isReactWarning"in t&&t.isReactWarning,e?n.props.ref:n.props.ref||n.ref)}export{S,R as a,a as c,v as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as P,d as q,u as c,q as O,D as i,y as x}from"./register-D4rZ1J7I.js";import{c as g}from"./index-CBrz5xtv.js";import{u as E,a as U}from"./index-CQ6Ij8pA.js";import{a as V}from"./index-Bgdj4x1s.js";import{D as W}from"./index-CHNoa_cz.js";import{o as Z,u as j}from"./Combination-DBzD43hH.js";import{h as z,F as B}from"./index-BbhzpmQg.js";import{u as J}from"./index-Cuf1DbBB.js";import{c as F,R as Q,A as N,a as X,C as Y}from"./index-CxPe_0NT.js";import{P as oo}from"./index-Efhd2Xco.js";import{P as y}from"./index-BPqGk9Gj.js";import{P as D}from"./index-DuJ2JvNE.js";import{u as eo}from"./index-B7vP9XGo.js";var _="Popover",[b,Do]=V(_,[F]),h=F(),[ro,u]=b(_),w=o=>{const{__scopePopover:n,children:t,open:a,defaultOpen:e,onOpenChange:r,modal:s=!1}=o,p=h(n),v=P(null),[f,m]=q(!1),[C=!1,l]=eo({prop:a,defaultProp:e,onChange:r});return c(Q,{...p,children:c(ro,{scope:n,contentId:J(),triggerRef:v,open:C,onOpenChange:l,onOpenToggle:O(()=>l(A=>!A),[l]),hasCustomAnchor:f,onCustomAnchorAdd:O(()=>m(!0),[]),onCustomAnchorRemove:O(()=>m(!1),[]),modal:s,children:t})})};w.displayName=_;var M="PopoverAnchor",S=i((o,n)=>{const{__scopePopover:t,...a}=o,e=u(M,t),r=h(t),{onCustomAnchorAdd:s,onCustomAnchorRemove:p}=e;return x(()=>(s(),()=>p()),[s,p]),c(N,{...r,...a,ref:n})});S.displayName=M;var T="PopoverTrigger",I=i((o,n)=>{const{__scopePopover:t,...a}=o,e=u(T,t),r=h(t),s=E(n,e.triggerRef),p=c(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":e.open,"aria-controls":e.contentId,"data-state":$(e.open),...a,ref:s,onClick:g(o.onClick,e.onOpenToggle)});return e.hasCustomAnchor?p:c(N,{asChild:!0,...r,children:p})});I.displayName=T;var R="PopoverPortal",[to,no]=b(R,{forceMount:void 0}),k=o=>{const{__scopePopover:n,forceMount:t,children:a,container:e}=o,r=u(R,n);return c(to,{scope:n,forceMount:t,children:c(y,{present:t||r.open,children:c(oo,{asChild:!0,container:e,children:a})})})};k.displayName=R;var d="PopoverContent",L=i((o,n)=>{const t=no(d,o.__scopePopover),{forceMount:a=t.forceMount,...e}=o,r=u(d,o.__scopePopover);return c(y,{present:a||r.open,children:r.modal?c(ao,{...e,ref:n}):c(so,{...e,ref:n})})});L.displayName=d;var ao=i((o,n)=>{const t=u(d,o.__scopePopover),a=P(null),e=E(n,a),r=P(!1);return x(()=>{const s=a.current;if(s)return z(s)},[]),c(Z,{as:U,allowPinchZoom:!0,children:c(G,{...o,ref:e,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(o.onCloseAutoFocus,s=>{s.preventDefault(),r.current||t.triggerRef.current?.focus()}),onPointerDownOutside:g(o.onPointerDownOutside,s=>{const p=s.detail.originalEvent,v=p.button===0&&p.ctrlKey===!0,f=p.button===2||v;r.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:g(o.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),so=i((o,n)=>{const t=u(d,o.__scopePopover),a=P(!1),e=P(!1);return c(G,{...o,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{o.onCloseAutoFocus?.(r),r.defaultPrevented||(a.current||t.triggerRef.current?.focus(),r.preventDefault()),a.current=!1,e.current=!1},onInteractOutside:r=>{o.onInteractOutside?.(r),r.defaultPrevented||(a.current=!0,r.detail.originalEvent.type==="pointerdown"&&(e.current=!0));const s=r.target;t.triggerRef.current?.contains(s)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&e.current&&r.preventDefault()}})}),G=i((o,n)=>{const{__scopePopover:t,trapFocus:a,onOpenAutoFocus:e,onCloseAutoFocus:r,disableOutsidePointerEvents:s,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:f,onInteractOutside:m,...C}=o,l=u(d,t),A=h(t);return j(),c(B,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:e,onUnmountAutoFocus:r,children:c(W,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:m,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:f,onDismiss:()=>l.onOpenChange(!1),children:c(Y,{"data-state":$(l.open),role:"dialog",id:l.contentId,...A,...C,ref:n,style:{...C.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),H="PopoverClose",co=i((o,n)=>{const{__scopePopover:t,...a}=o,e=u(H,t);return c(D.button,{type:"button",...a,ref:n,onClick:g(o.onClick,()=>e.onOpenChange(!1))})});co.displayName=H;var po="PopoverArrow",K=i((o,n)=>{const{__scopePopover:t,...a}=o,e=h(t);return c(X,{...e,...a,ref:n})});K.displayName=po;function $(o){return o?"open":"closed"}var io=w,uo=S,lo=I,vo=k,fo=L,Po=K;export{uo as A,fo as C,vo as P,io as R,lo as T,Po as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as n,y as u,T as c}from"./register-D4rZ1J7I.js";function o(r){const e=n(r);return u(()=>{e.current=r}),c(()=>(...t)=>e.current?.(...t),[])}export{o as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as u,a as s}from"./register-D4rZ1J7I.js";import{u as f}from"./index-C4kHpda5.js";var e=s["useId".toString()]||(()=>{}),n=0;function c(o){const[t,a]=u(e());return f(()=>{o||a(r=>r??String(n++))},[o]),o||(t?`radix-${t}`:"")}export{c as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as Y,q as yt,A as J,b as Pe,y as Wt,T as lt,E as Re,D as at,u as j}from"./register-D4rZ1J7I.js";import{P as vt}from"./index-DuJ2JvNE.js";import{u as zt}from"./index-CQ6Ij8pA.js";import{a as Oe}from"./index-Bgdj4x1s.js";import{u as Ce}from"./index-CcqAY25J.js";import{u as bt}from"./index-C4kHpda5.js";const Se=["top","right","bottom","left"],U=Math.min,F=Math.max,ft=Math.round,ut=Math.floor,B=t=>({x:t,y:t}),Ee={left:"right",right:"left",bottom:"top",top:"bottom"},De={start:"end",end:"start"};function At(t,e,n){return F(t,U(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function q(t){return t.split("-")[0]}function Q(t){return t.split("-")[1]}function Pt(t){return t==="x"?"y":"x"}function Rt(t){return t==="y"?"height":"width"}function Z(t){return["top","bottom"].includes(q(t))?"y":"x"}function Ot(t){return Pt(Z(t))}function Te(t,e,n){n===void 0&&(n=!1);const o=Q(t),i=Ot(t),r=Rt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=dt(s)),[s,dt(s)]}function Le(t){const e=dt(t);return[Ct(t),e,Ct(e)]}function Ct(t){return t.replace(/start|end/g,e=>De[e])}function Me(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function $e(t,e,n,o){const i=Q(t);let r=Me(q(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(Ct)))),r}function dt(t){return t.replace(/left|right|bottom|top/g,e=>Ee[e])}function ke(t){return{top:0,right:0,bottom:0,left:0,...t}}function _t(t){return typeof t!="number"?ke(t):{top:t,right:t,bottom:t,left:t}}function pt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Bt(t,e,n){let{reference:o,floating:i}=t;const r=Z(e),s=Ot(e),c=Rt(s),l=q(e),a=r==="y",f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-i.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-i.width,y:u};break;default:d={x:o.x,y:o.y}}switch(Q(e)){case"start":d[s]-=h*(n&&a?-1:1);break;case"end":d[s]+=h*(n&&a?-1:1);break}return d}const Fe=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Bt(a,o,l),h=o,d={},p=0;for(let m=0;m<c.length;m++){const{name:w,fn:g}=c[m],{x:b,y:v,data:x,reset:y}=await g({x:f,y:u,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=b??f,u=v??u,d={...d,[w]:{...d[w],...x}},y&&p<=50&&(p++,typeof y=="object"&&(y.placement&&(h=y.placement),y.rects&&(a=y.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):y.rects),{x:f,y:u}=Bt(a,h,l)),m=-1)}return{x:f,y:u,placement:h,strategy:i,middlewareData:d}};async function it(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=X(e,t),p=_t(d),w=c[h?u==="floating"?"reference":"floating":u],g=pt(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),b=u==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),x=await(r.isElement==null?void 0:r.isElement(v))?await(r.getScale==null?void 0:r.getScale(v))||{x:1,y:1}:{x:1,y:1},y=pt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-y.top+p.top)/x.y,bottom:(y.bottom-g.bottom+p.bottom)/x.y,left:(g.left-y.left+p.left)/x.x,right:(y.right-g.right+p.right)/x.x}}const Ne=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=X(t,e)||{};if(a==null)return{};const u=_t(f),h={x:n,y:o},d=Ot(i),p=Rt(d),m=await s.getDimensions(a),w=d==="y",g=w?"top":"left",b=w?"bottom":"right",v=w?"clientHeight":"clientWidth",x=r.reference[p]+r.reference[d]-h[d]-r.floating[p],y=h[d]-r.reference[d],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let P=R?R[v]:0;(!P||!await(s.isElement==null?void 0:s.isElement(R)))&&(P=c.floating[v]||r.floating[p]);const D=x/2-y/2,k=P/2-m[p]/2-1,T=U(u[g],k),M=U(u[b],k),$=T,C=P-m[p]-M,O=P/2-m[p]/2+D,H=At($,O,C),S=!l.arrow&&Q(i)!=null&&O!==H&&r.reference[p]/2-(O<$?T:M)-m[p]/2<0,E=S?O<$?O-$:O-C:0;return{[d]:h[d]+E,data:{[d]:H,centerOffset:O-H-E,...S&&{alignmentOffset:E}},reset:S}}}),He=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...w}=X(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const g=q(i),b=Z(c),v=q(c)===c,x=await(l.isRTL==null?void 0:l.isRTL(a.floating)),y=h||(v||!m?[dt(c)]:Le(c)),R=p!=="none";!h&&R&&y.push(...$e(c,m,p,x));const P=[c,...y],D=await it(e,w),k=[];let T=((o=r.flip)==null?void 0:o.overflows)||[];if(f&&k.push(D[g]),u){const O=Te(i,s,x);k.push(D[O[0]],D[O[1]])}if(T=[...T,{placement:i,overflows:k}],!k.every(O=>O<=0)){var M,$;const O=(((M=r.flip)==null?void 0:M.index)||0)+1,H=P[O];if(H)return{data:{index:O,overflows:T},reset:{placement:H}};let S=($=T.filter(E=>E.overflows[0]<=0).sort((E,A)=>E.overflows[1]-A.overflows[1])[0])==null?void 0:$.placement;if(!S)switch(d){case"bestFit":{var C;const E=(C=T.filter(A=>{if(R){const L=Z(A.placement);return L===b||L==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(L=>L>0).reduce((L,_)=>L+_,0)]).sort((A,L)=>A[1]-L[1])[0])==null?void 0:C[0];E&&(S=E);break}case"initialPlacement":S=c;break}if(i!==S)return{reset:{placement:S}}}return{}}}};function Vt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function It(t){return Se.some(e=>t[e]>=0)}const We=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=X(t,e);switch(o){case"referenceHidden":{const r=await it(e,{...i,elementContext:"reference"}),s=Vt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:It(s)}}}case"escaped":{const r=await it(e,{...i,altBoundary:!0}),s=Vt(r,n.floating);return{data:{escapedOffsets:s,escaped:It(s)}}}default:return{}}}}};async function ze(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=q(n),c=Q(n),l=Z(n)==="y",a=["left","top"].includes(s)?-1:1,f=r&&l?-1:1,u=X(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:h*a}:{x:h*a,y:d*f}}const _e=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await ze(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},Be=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:b}=w;return{x:g,y:b}}},...l}=X(t,e),a={x:n,y:o},f=await it(e,l),u=Z(q(i)),h=Pt(u);let d=a[h],p=a[u];if(r){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",b=d+f[w],v=d-f[g];d=At(b,d,v)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",b=p+f[w],v=p-f[g];p=At(b,p,v)}const m=c.fn({...e,[h]:d,[u]:p});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[h]:r,[u]:s}}}}}},Ve=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=X(t,e),f={x:n,y:o},u=Z(i),h=Pt(u);let d=f[h],p=f[u];const m=X(c,e),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const v=h==="y"?"height":"width",x=r.reference[h]-r.floating[v]+w.mainAxis,y=r.reference[h]+r.reference[v]-w.mainAxis;d<x?d=x:d>y&&(d=y)}if(a){var g,b;const v=h==="y"?"width":"height",x=["top","left"].includes(q(i)),y=r.reference[u]-r.floating[v]+(x&&((g=s.offset)==null?void 0:g[u])||0)+(x?0:w.crossAxis),R=r.reference[u]+r.reference[v]+(x?0:((b=s.offset)==null?void 0:b[u])||0)-(x?w.crossAxis:0);p<y?p=y:p>R&&(p=R)}return{[h]:d,[u]:p}}}},Ie=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:l=()=>{},...a}=X(t,e),f=await it(e,a),u=q(i),h=Q(i),d=Z(i)==="y",{width:p,height:m}=r.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=h===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=h==="end"?"top":"bottom");const b=m-f.top-f.bottom,v=p-f.left-f.right,x=U(m-f[w],b),y=U(p-f[g],v),R=!e.middlewareData.shift;let P=x,D=y;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(D=v),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(P=b),R&&!h){const T=F(f.left,0),M=F(f.right,0),$=F(f.top,0),C=F(f.bottom,0);d?D=p-2*(T!==0||M!==0?T+M:F(f.left,f.right)):P=m-2*($!==0||C!==0?$+C:F(f.top,f.bottom))}await l({...e,availableWidth:D,availableHeight:P});const k=await s.getDimensions(c.floating);return p!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}};function ht(){return typeof window<"u"}function tt(t){return Yt(t)?(t.nodeName||"").toLowerCase():"#document"}function N(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function V(t){var e;return(e=(Yt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Yt(t){return ht()?t instanceof Node||t instanceof N(t).Node:!1}function W(t){return ht()?t instanceof Element||t instanceof N(t).Element:!1}function I(t){return ht()?t instanceof HTMLElement||t instanceof N(t).HTMLElement:!1}function jt(t){return!ht()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof N(t).ShadowRoot}function rt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=z(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ye(t){return["table","td","th"].includes(tt(t))}function mt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function St(t){const e=Et(),n=W(t)?z(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function je(t){let e=K(t);for(;I(e)&&!et(e);){if(St(e))return e;if(mt(e))return null;e=K(e)}return null}function Et(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function et(t){return["html","body","#document"].includes(tt(t))}function z(t){return N(t).getComputedStyle(t)}function gt(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||jt(t)&&t.host||V(t);return jt(e)?e.host:e}function Xt(t){const e=K(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&rt(e)?e:Xt(e)}function st(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Xt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=N(i);if(r){const c=Dt(s);return e.concat(s,s.visualViewport||[],rt(i)?i:[],c&&n?st(c):[])}return e.concat(i,st(i,[],n))}function Dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function qt(t){const e=z(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=I(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=ft(n)!==r||ft(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function Tt(t){return W(t)?t:t.contextElement}function nt(t){const e=Tt(t);if(!I(e))return B(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=qt(e);let s=(r?ft(n.width):n.width)/o,c=(r?ft(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Xe=B(0);function Ut(t){const e=N(t);return!Et()||!e.visualViewport?Xe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==N(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=Tt(t);let s=B(1);e&&(o?W(o)&&(s=nt(o)):s=nt(t));const c=qe(r,n,o)?Ut(r):B(0);let l=(i.left+c.x)/s.x,a=(i.top+c.y)/s.y,f=i.width/s.x,u=i.height/s.y;if(r){const h=N(r),d=o&&W(o)?N(o):o;let p=h,m=Dt(p);for(;m&&o&&d!==p;){const w=nt(m),g=m.getBoundingClientRect(),b=z(m),v=g.left+(m.clientLeft+parseFloat(b.paddingLeft))*w.x,x=g.top+(m.clientTop+parseFloat(b.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=v,a+=x,p=N(m),m=Dt(p)}}return pt({width:f,height:u,x:l,y:a})}function Lt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:G(V(t)).left+n}function Zt(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-(n?0:Lt(t,o)),r=o.top+e.scrollTop;return{x:i,y:r}}function Ue(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=V(o),c=e?mt(e.floating):!1;if(o===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=B(1);const f=B(0),u=I(o);if((u||!u&&!r)&&((tt(o)!=="body"||rt(s))&&(l=gt(o)),I(o))){const d=G(o);a=nt(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const h=s&&!u&&!r?Zt(s,l,!0):B(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+h.x,y:n.y*a.y-l.scrollTop*a.y+f.y+h.y}}function Ze(t){return Array.from(t.getClientRects())}function Ke(t){const e=V(t),n=gt(t),o=t.ownerDocument.body,i=F(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=F(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Lt(t);const c=-n.scrollTop;return z(o).direction==="rtl"&&(s+=F(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function Ge(t,e){const n=N(t),o=V(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const a=Et();(!a||a&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}function Je(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=I(t)?nt(t):B(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,a=o*r.y;return{width:s,height:c,x:l,y:a}}function Kt(t,e,n){let o;if(e==="viewport")o=Ge(t,n);else if(e==="document")o=Ke(V(t));else if(W(e))o=Je(e,n);else{const i=Ut(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return pt(o)}function Gt(t,e){const n=K(t);return n===e||!W(n)||et(n)?!1:z(n).position==="fixed"||Gt(n,e)}function Qe(t,e){const n=e.get(t);if(n)return n;let o=st(t,[],!1).filter(c=>W(c)&&tt(c)!=="body"),i=null;const r=z(t).position==="fixed";let s=r?K(t):t;for(;W(s)&&!et(s);){const c=z(s),l=St(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rt(s)&&!l&&Gt(t,s))?o=o.filter(f=>f!==s):i=c,s=K(s)}return e.set(t,o),o}function tn(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?mt(e)?[]:Qe(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Kt(e,f,i);return a.top=F(u.top,a.top),a.right=U(u.right,a.right),a.bottom=U(u.bottom,a.bottom),a.left=F(u.left,a.left),a},Kt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function en(t){const{width:e,height:n}=qt(t);return{width:e,height:n}}function nn(t,e,n){const o=I(e),i=V(e),r=n==="fixed",s=G(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=B(0);if(o||!o&&!r)if((tt(e)!=="body"||rt(i))&&(c=gt(e)),o){const h=G(e,!0,r,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&(l.x=Lt(i));const a=i&&!o&&!r?Zt(i,c):B(0),f=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:f,y:u,width:s.width,height:s.height}}function Mt(t){return z(t).position==="static"}function Jt(t,e){if(!I(t)||z(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function Qt(t,e){const n=N(t);if(mt(t))return n;if(!I(t)){let i=K(t);for(;i&&!et(i);){if(W(i)&&!Mt(i))return i;i=K(i)}return n}let o=Jt(t,e);for(;o&&Ye(o)&&Mt(o);)o=Jt(o,e);return o&&et(o)&&Mt(o)&&!St(o)?n:o||je(t)||n}const on=async function(t){const e=this.getOffsetParent||Qt,n=this.getDimensions,o=await n(t.floating);return{reference:nn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function rn(t){return z(t).direction==="rtl"}const sn={convertOffsetParentRelativeRectToViewportRelativeRect:Ue,getDocumentElement:V,getClippingRect:tn,getOffsetParent:Qt,getElementRects:on,getClientRects:Ze,getDimensions:en,getScale:nt,isElement:W,isRTL:rn};function te(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function cn(t,e){let n=null,o;const i=V(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const a=t.getBoundingClientRect(),{left:f,top:u,width:h,height:d}=a;if(c||e(),!h||!d)return;const p=ut(u),m=ut(i.clientWidth-(f+h)),w=ut(i.clientHeight-(u+d)),g=ut(f),v={rootMargin:-p+"px "+-m+"px "+-w+"px "+-g+"px",threshold:F(0,U(1,l))||1};let x=!0;function y(R){const P=R[0].intersectionRatio;if(P!==l){if(!x)return s();P?s(!1,P):o=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!te(a,t.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(y,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(y,v)}n.observe(t)}return s(!0),r}function ln(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Tt(t),f=i||r?[...a?st(a):[],...st(e)]:[];f.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const u=a&&c?cn(a,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(g=>{let[b]=g;b&&b.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=d)==null||v.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,m=l?G(t):null;l&&w();function w(){const g=G(t);m&&!te(m,g)&&n(),m=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(b=>{i&&b.removeEventListener("scroll",n),r&&b.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const an=_e,fn=Be,un=He,dn=Ie,pn=We,ee=Ne,hn=Ve,mn=(t,e,n)=>{const o=new Map,i={platform:sn,...n},r={...i.platform,_c:o};return Fe(t,e,{...i,platform:r})};var wt=typeof document<"u"?Pe:Wt;function xt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!xt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!xt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function ne(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function oe(t,e){const n=ne(t);return Math.round(e*n)/n}function $t(t){const e=J(t);return wt(()=>{e.current=t}),e}function gn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=Y({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,d]=Y(o);xt(h,o)||d(o);const[p,m]=Y(null),[w,g]=Y(null),b=yt(A=>{A!==R.current&&(R.current=A,m(A))},[]),v=yt(A=>{A!==P.current&&(P.current=A,g(A))},[]),x=r||p,y=s||w,R=J(null),P=J(null),D=J(f),k=l!=null,T=$t(l),M=$t(i),$=$t(a),C=yt(()=>{if(!R.current||!P.current)return;const A={placement:e,strategy:n,middleware:h};M.current&&(A.platform=M.current),mn(R.current,P.current,A).then(L=>{const _={...L,isPositioned:$.current!==!1};O.current&&!xt(D.current,_)&&(D.current=_,Re(()=>{u(_)}))})},[h,e,n,M,$]);wt(()=>{a===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const O=J(!1);wt(()=>(O.current=!0,()=>{O.current=!1}),[]),wt(()=>{if(x&&(R.current=x),y&&(P.current=y),x&&y){if(T.current)return T.current(x,y,C);C()}},[x,y,C,T,k]);const H=lt(()=>({reference:R,floating:P,setReference:b,setFloating:v}),[b,v]),S=lt(()=>({reference:x,floating:y}),[x,y]),E=lt(()=>{const A={position:n,left:0,top:0};if(!S.floating)return A;const L=oe(S.floating,f.x),_=oe(S.floating,f.y);return c?{...A,transform:"translate("+L+"px, "+_+"px)",...ne(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:_}},[n,c,S.floating,f.x,f.y]);return lt(()=>({...f,update:C,refs:H,elements:S,floatingStyles:E}),[f,C,H,S,E])}const wn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?ee({element:o.current,padding:i}).fn(n):{}:o?ee({element:o,padding:i}).fn(n):{}}}},xn=(t,e)=>({...an(t),options:[t,e]}),yn=(t,e)=>({...fn(t),options:[t,e]}),vn=(t,e)=>({...hn(t),options:[t,e]}),bn=(t,e)=>({...un(t),options:[t,e]}),An=(t,e)=>({...dn(t),options:[t,e]}),Pn=(t,e)=>({...pn(t),options:[t,e]}),Rn=(t,e)=>({...wn(t),options:[t,e]});var On="Arrow",ie=at((t,e)=>{const{children:n,width:o=10,height:i=5,...r}=t;return j(vt.svg,{...r,ref:e,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:j("polygon",{points:"0,0 30,0 15,10"})})});ie.displayName=On;var Cn=ie;function Sn(t){const[e,n]=Y(void 0);return bt(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,c;if("borderBoxSize"in r){const l=r.borderBoxSize,a=Array.isArray(l)?l[0]:l;s=a.inlineSize,c=a.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}var kt="Popper",[re,En]=Oe(kt),[Dn,se]=re(kt),ce=t=>{const{__scopePopper:e,children:n}=t,[o,i]=Y(null);return j(Dn,{scope:e,anchor:o,onAnchorChange:i,children:n})};ce.displayName=kt;var le="PopperAnchor",ae=at((t,e)=>{const{__scopePopper:n,virtualRef:o,...i}=t,r=se(le,n),s=J(null),c=zt(e,s);return Wt(()=>{r.onAnchorChange(o?.current||s.current)}),o?null:j(vt.div,{...i,ref:c})});ae.displayName=le;var Ft="PopperContent",[Tn,Ln]=re(Ft),fe=at((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...m}=t,w=se(Ft,n),[g,b]=Y(null),v=zt(e,ot=>b(ot)),[x,y]=Y(null),R=Sn(x),P=R?.width??0,D=R?.height??0,k=o+(r!=="center"?"-"+r:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(a)?a:[a],$=M.length>0,C={padding:T,boundary:M.filter($n),altBoundary:$},{refs:O,floatingStyles:H,placement:S,isPositioned:E,middlewareData:A}=gn({strategy:"fixed",placement:k,whileElementsMounted:(...ot)=>ln(...ot,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[xn({mainAxis:i+D,alignmentAxis:s}),l&&yn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?vn():void 0,...C}),l&&bn({...C}),An({...C,apply:({elements:ot,rects:Ht,availableWidth:ye,availableHeight:ve})=>{const{width:be,height:Ae}=Ht.reference,ct=ot.floating.style;ct.setProperty("--radix-popper-available-width",`${ye}px`),ct.setProperty("--radix-popper-available-height",`${ve}px`),ct.setProperty("--radix-popper-anchor-width",`${be}px`),ct.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),x&&Rn({element:x,padding:c}),kn({arrowWidth:P,arrowHeight:D}),h&&Pn({strategy:"referenceHidden",...C})]}),[L,_]=pe(S),Nt=Ce(p);bt(()=>{E&&Nt?.()},[E,Nt]);const he=A.arrow?.x,me=A.arrow?.y,ge=A.arrow?.centerOffset!==0,[we,xe]=Y();return bt(()=>{g&&xe(window.getComputedStyle(g).zIndex)},[g]),j("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:E?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,["--radix-popper-transform-origin"]:[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:j(Tn,{scope:n,placedSide:L,onArrowChange:y,arrowX:he,arrowY:me,shouldHideArrow:ge,children:j(vt.div,{"data-side":L,"data-align":_,...m,ref:v,style:{...m.style,animation:E?void 0:"none"}})})})});fe.displayName=Ft;var ue="PopperArrow",Mn={top:"bottom",right:"left",bottom:"top",left:"right"},de=at(function(e,n){const{__scopePopper:o,...i}=e,r=Ln(ue,o),s=Mn[r.placedSide];return j("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:j(Cn,{...i,ref:n,style:{...i.style,display:"block"}})})});de.displayName=ue;function $n(t){return t!==null}var kn=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:i}=e,s=i.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=pe(n),u={start:"0%",center:"50%",end:"100%"}[f],h=(i.arrow?.x??0)+c/2,d=(i.arrow?.y??0)+l/2;let p="",m="";return a==="bottom"?(p=s?u:`${h}px`,m=`${-l}px`):a==="top"?(p=s?u:`${h}px`,m=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,m=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,m=s?u:`${d}px`),{data:{x:p,y:m}}}});function pe(t){const[e,n="center"]=t.split("-");return[e,n]}var Fn=ce,Nn=ae,Hn=fe,Wn=de;export{Nn as A,Hn as C,Fn as R,Wn as a,En as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as m,u as d,A as R,y as x}from"./register-D4rZ1J7I.js";import{c as T}from"./index-CBrz5xtv.js";import{a as D}from"./index-Bgdj4x1s.js";import{u as E,c as I,R as V,I as G}from"./index-B8SqM_qc.js";import{P as L}from"./index-BPqGk9Gj.js";import{P as p}from"./index-DuJ2JvNE.js";import{u as w}from"./index-B7vP9XGo.js";import{u as $}from"./index-Cuf1DbBB.js";var f="Tabs",[k,Y]=D(f,[I]),h=I(),[K,g]=k(f),C=m((e,n)=>{const{__scopeTabs:s,value:t,onValueChange:r,defaultValue:c,orientation:a="horizontal",dir:u,activationMode:v="automatic",...b}=e,i=E(u),[o,l]=w({prop:t,onChange:r,defaultProp:c});return d(K,{scope:s,baseId:$(),value:o,onValueChange:l,orientation:a,dir:i,activationMode:v,children:d(p.div,{dir:i,"data-orientation":a,...b,ref:n})})});C.displayName=f;var y="TabsList",A=m((e,n)=>{const{__scopeTabs:s,loop:t=!0,...r}=e,c=g(y,s),a=h(s);return d(V,{asChild:!0,...a,orientation:c.orientation,dir:c.dir,loop:t,children:d(p.div,{role:"tablist","aria-orientation":c.orientation,...r,ref:n})})});A.displayName=y;var _="TabsTrigger",P=m((e,n)=>{const{__scopeTabs:s,value:t,disabled:r=!1,...c}=e,a=g(_,s),u=h(s),v=N(a.baseId,t),b=F(a.baseId,t),i=t===a.value;return d(G,{asChild:!0,...u,focusable:!r,active:i,children:d(p.button,{type:"button",role:"tab","aria-selected":i,"aria-controls":b,"data-state":i?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:v,...c,ref:n,onMouseDown:T(e.onMouseDown,o=>{!r&&o.button===0&&o.ctrlKey===!1?a.onValueChange(t):o.preventDefault()}),onKeyDown:T(e.onKeyDown,o=>{[" ","Enter"].includes(o.key)&&a.onValueChange(t)}),onFocus:T(e.onFocus,()=>{const o=a.activationMode!=="manual";!i&&!r&&o&&a.onValueChange(t)})})})});P.displayName=_;var S="TabsContent",M=m((e,n)=>{const{__scopeTabs:s,value:t,forceMount:r,children:c,...a}=e,u=g(S,s),v=N(u.baseId,t),b=F(u.baseId,t),i=t===u.value,o=R(i);return x(()=>{const l=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(l)},[]),d(L,{present:r||i,children:({present:l})=>d(p.div,{"data-state":i?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":v,hidden:!l,id:b,tabIndex:0,...a,ref:n,style:{...e.style,animationDuration:o.current?"0s":void 0},children:l&&c})})});M.displayName=S;function N(e,n){return`${e}-trigger-${n}`}function F(e,n){return`${e}-content-${n}`}var B=C,q=A,z=P;export{q as L,B as R,M as T,z as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as S,A as R,y as F,q as X,u as c,d as V,T as Ce,$ as xe,k as re}from"./register-D4rZ1J7I.js";import{c as g}from"./index-CBrz5xtv.js";import{u as se}from"./index-CQ6Ij8pA.js";import{c as Re}from"./index-SA_oUTNH.js";import{a as be}from"./index-Bgdj4x1s.js";import{B as ge,R as Se}from"./index-CHNoa_cz.js";import{P as Ae}from"./index-Efhd2Xco.js";import{P as Ie}from"./index-BPqGk9Gj.js";import{P as D,d as _e}from"./index-DuJ2JvNE.js";import{u as $}from"./index-CcqAY25J.js";import{u as Fe}from"./index-B7vP9XGo.js";import{u as De}from"./index-C4kHpda5.js";import{V as ae}from"./index-DcYiqDQo.js";var z="ToastProvider",[G,Ne,Le]=Re("Toast"),[ie,vt]=be("Toast",[Le]),[Oe,Y]=ie(z),ce=t=>{const{__scopeToast:n,label:o="Notification",duration:e=5e3,swipeDirection:i="right",swipeThreshold:l=50,children:d}=t,[m,w]=V(null),[a,x]=V(0),E=R(!1),N=R(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${z}\`. Expected non-empty \`string\`.`),c(G.Provider,{scope:n,children:c(Oe,{scope:n,label:o,duration:e,swipeDirection:i,swipeThreshold:l,toastCount:a,viewport:m,onViewportChange:w,onToastAdd:X(()=>x(I=>I+1),[]),onToastRemove:X(()=>x(I=>I-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:N,children:d})})};ce.displayName=z;var ue="ToastViewport",Me=["F8"],J="toast.viewportPause",Q="toast.viewportResume",le=S((t,n)=>{const{__scopeToast:o,hotkey:e=Me,label:i="Notifications ({hotkey})",...l}=t,d=Y(ue,o),m=Ne(o),w=R(null),a=R(null),x=R(null),E=R(null),N=se(n,E,d.onViewportChange),I=e.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=d.toastCount>0;F(()=>{const s=y=>{e.length!==0&&e.every(f=>y[f]||y.code===f)&&E.current?.focus()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e]),F(()=>{const s=w.current,y=E.current;if(_&&s&&y){const p=()=>{if(!d.isClosePausedRef.current){const T=new CustomEvent(J);y.dispatchEvent(T),d.isClosePausedRef.current=!0}},f=()=>{if(d.isClosePausedRef.current){const T=new CustomEvent(Q);y.dispatchEvent(T),d.isClosePausedRef.current=!1}},h=T=>{!s.contains(T.relatedTarget)&&f()},P=()=>{s.contains((()=>{let b=document.activeElement;for(;b?.shadowRoot;)b=b.shadowRoot.activeElement;return b})())||f()};return s.addEventListener("focusin",p),s.addEventListener("focusout",h),s.addEventListener("pointermove",p),s.addEventListener("pointerleave",P),window.addEventListener("blur",p),window.addEventListener("focus",f),()=>{s.removeEventListener("focusin",p),s.removeEventListener("focusout",h),s.removeEventListener("pointermove",p),s.removeEventListener("pointerleave",P),window.removeEventListener("blur",p),window.removeEventListener("focus",f)}}},[_,d.isClosePausedRef]);const u=X(({tabbingDirection:s})=>{const p=m().map(f=>{const h=f.ref.current,P=[h,...Ge(h)];return s==="forwards"?P:P.reverse()});return(s==="forwards"?p.reverse():p).flat()},[m]);return F(()=>{const s=E.current;if(s){const y=p=>{const f=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!f){const P=(()=>{let C=document.activeElement;for(;C?.shadowRoot;)C=C.shadowRoot.activeElement;return C})(),T=p.shiftKey;if(p.target===s&&T){a.current?.focus();return}const L=u({tabbingDirection:T?"backwards":"forwards"}),K=L.findIndex(C=>C===P);te(L.slice(K+1))?p.preventDefault():T?a.current?.focus():x.current?.focus()}};return s.addEventListener("keydown",y),()=>s.removeEventListener("keydown",y)}},[m,u]),c(ge,{ref:w,role:"region","aria-label":i.replace("{hotkey}",I),tabIndex:-1,style:{pointerEvents:_?void 0:"none"},children:[_&&c(Z,{ref:a,onFocusFromOutsideViewport:()=>{const s=u({tabbingDirection:"forwards"});te(s)}}),c(G.Slot,{scope:o,children:c(D.ol,{tabIndex:-1,...l,ref:N})}),_&&c(Z,{ref:x,onFocusFromOutsideViewport:()=>{const s=u({tabbingDirection:"backwards"});te(s)}})]})});le.displayName=ue;var de="ToastFocusProxy",Z=S((t,n)=>{const{__scopeToast:o,onFocusFromOutsideViewport:e,...i}=t,l=Y(de,o);return c(ae,{"aria-hidden":!0,tabIndex:0,...i,ref:n,style:{position:"fixed"},onFocus:d=>{const m=d.relatedTarget;!l.viewport?.contains(m)&&e()}})});Z.displayName=de;var B="Toast",Ve="toast.swipeStart",ke="toast.swipeMove",Ke="toast.swipeCancel",He="toast.swipeEnd",pe=S((t,n)=>{const{forceMount:o,open:e,defaultOpen:i,onOpenChange:l,...d}=t,[m=!0,w]=Fe({prop:e,defaultProp:i,onChange:l});return c(Ie,{present:o||m,children:c(Xe,{open:m,...d,ref:n,onClose:()=>w(!1),onPause:$(t.onPause),onResume:$(t.onResume),onSwipeStart:g(t.onSwipeStart,a=>{a.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:g(t.onSwipeMove,a=>{const{x,y:E}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","move"),a.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${x}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:g(t.onSwipeCancel,a=>{a.currentTarget.setAttribute("data-swipe","cancel"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:g(t.onSwipeEnd,a=>{const{x,y:E}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","end"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${x}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),w(!1)})})})});pe.displayName=B;var[We,Ue]=ie(B,{onClose(){}}),Xe=S((t,n)=>{const{__scopeToast:o,type:e="foreground",duration:i,open:l,onClose:d,onEscapeKeyDown:m,onPause:w,onResume:a,onSwipeStart:x,onSwipeMove:E,onSwipeCancel:N,onSwipeEnd:I,..._}=t,u=Y(B,o),[s,y]=V(null),p=se(n,r=>y(r)),f=R(null),h=R(null),P=i||u.duration,T=R(0),b=R(P),k=R(0),{onToastAdd:L,onToastRemove:K}=u,C=$(()=>{s?.contains((()=>{let v=document.activeElement;for(;v?.shadowRoot;)v=v.shadowRoot.activeElement;return v})())&&u.viewport?.focus(),d()}),H=X(r=>{!r||r===1/0||(window.clearTimeout(k.current),T.current=new Date().getTime(),k.current=window.setTimeout(C,r))},[C]);F(()=>{const r=u.viewport;if(r){const v=()=>{H(b.current),a?.()},A=()=>{const O=new Date().getTime()-T.current;b.current=b.current-O,window.clearTimeout(k.current),w?.()};return r.addEventListener(J,A),r.addEventListener(Q,v),()=>{r.removeEventListener(J,A),r.removeEventListener(Q,v)}}},[u.viewport,P,w,a,H]),F(()=>{l&&!u.isClosePausedRef.current&&H(P)},[l,P,u.isClosePausedRef,H]),F(()=>(L(),()=>K()),[L,K]);const oe=Ce(()=>s?Ee(s):null,[s]);return u.viewport?c(re,{children:[oe&&c($e,{__scopeToast:o,role:"status","aria-live":e==="foreground"?"assertive":"polite","aria-atomic":!0,children:oe}),c(We,{scope:o,onClose:C,children:xe(c(G.ItemSlot,{scope:o,children:c(Se,{asChild:!0,onEscapeKeyDown:g(m,()=>{u.isFocusedToastEscapeKeyDownRef.current||C(),u.isFocusedToastEscapeKeyDownRef.current=!1}),children:c(D.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":u.swipeDirection,..._,ref:p,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:g(t.onKeyDown,r=>{r.key==="Escape"&&(m?.(r.nativeEvent),r.nativeEvent.defaultPrevented||(u.isFocusedToastEscapeKeyDownRef.current=!0,C()))}),onPointerDown:g(t.onPointerDown,r=>{r.button===0&&(f.current={x:r.clientX,y:r.clientY})}),onPointerMove:g(t.onPointerMove,r=>{if(!f.current)return;const v=r.clientX-f.current.x,A=r.clientY-f.current.y,O=Boolean(h.current),M=["left","right"].includes(u.swipeDirection),W=["left","up"].includes(u.swipeDirection)?Math.min:Math.max,he=M?W(0,v):0,Pe=M?0:W(0,A),j=r.pointerType==="touch"?10:2,U={x:he,y:Pe},ne={originalEvent:r,delta:U};O?(h.current=U,q(ke,E,ne,{discrete:!1})):ye(U,u.swipeDirection,j)?(h.current=U,q(Ve,x,ne,{discrete:!1}),r.target.setPointerCapture(r.pointerId)):(Math.abs(v)>j||Math.abs(A)>j)&&(f.current=null)}),onPointerUp:g(t.onPointerUp,r=>{const v=h.current,A=r.target;if(A.hasPointerCapture(r.pointerId)&&A.releasePointerCapture(r.pointerId),h.current=null,f.current=null,v){const O=r.currentTarget,M={originalEvent:r,delta:v};ye(v,u.swipeDirection,u.swipeThreshold)?q(He,I,M,{discrete:!0}):q(Ke,N,M,{discrete:!0}),O.addEventListener("click",W=>W.preventDefault(),{once:!0})}})})})}),u.viewport)})]}):null}),$e=t=>{const{__scopeToast:n,children:o,...e}=t,i=Y(B,n),[l,d]=V(!1),[m,w]=V(!1);return je(()=>d(!0)),F(()=>{const a=window.setTimeout(()=>w(!0),1e3);return()=>window.clearTimeout(a)},[]),m?null:c(Ae,{asChild:!0,children:c(ae,{...e,children:l&&c(re,{children:[i.label," ",o]})})})},Ye="ToastTitle",fe=S((t,n)=>{const{__scopeToast:o,...e}=t;return c(D.div,{...e,ref:n})});fe.displayName=Ye;var Be="ToastDescription",qe=S((t,n)=>{const{__scopeToast:o,...e}=t;return c(D.div,{...e,ref:n})});qe.displayName=Be;var me="ToastAction",ve=S((t,n)=>{const{altText:o,...e}=t;return o.trim()?c(Te,{altText:o,asChild:!0,children:c(ee,{...e,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${me}\`. Expected non-empty \`string\`.`),null)});ve.displayName=me;var we="ToastClose",ee=S((t,n)=>{const{__scopeToast:o,...e}=t,i=Ue(we,o);return c(Te,{asChild:!0,children:c(D.button,{type:"button",...e,ref:n,onClick:g(t.onClick,i.onClose)})})});ee.displayName=we;var Te=S((t,n)=>{const{__scopeToast:o,altText:e,...i}=t;return c(D.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":e||void 0,...i,ref:n})});function Ee(t){const n=[];return Array.from(t.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&n.push(e.textContent),ze(e)){const i=e.ariaHidden||e.hidden||e.style.display==="none",l=e.dataset.radixToastAnnounceExclude==="";if(!i)if(l){const d=e.dataset.radixToastAnnounceAlt;d&&n.push(d)}else n.push(...Ee(e))}}),n}function q(t,n,o,{discrete:e}){const i=o.originalEvent.currentTarget,l=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:o});n&&i.addEventListener(t,n,{once:!0}),e?_e(i,l):i.dispatchEvent(l)}var ye=(t,n,o=0)=>{const e=Math.abs(t.x),i=Math.abs(t.y),l=e>i;return n==="left"||n==="right"?l&&e>o:!l&&i>o};function je(t=()=>{}){const n=$(t);De(()=>{let o=0,e=0;return o=window.requestAnimationFrame(()=>e=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(e)}},[n])}function ze(t){return t.nodeType===t.ELEMENT_NODE}function Ge(t){const n=[],o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const i=e.tagName==="INPUT"&&e.type==="hidden";return e.disabled||e.hidden||i?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n}function te(t){const n=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();return t.some(o=>o===n?!0:(o.focus(),(()=>{let e=document.activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e})()!==n))}var Je=le,Qe=pe,Ze=fe,et=ve,tt=ee;export{et as A,tt as C,Qe as R,ce as T,Je as V,Ze as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,u as o}from"./register-D4rZ1J7I.js";import{P as t}from"./index-DuJ2JvNE.js";var d="VisuallyHidden",r=e((i,a)=>o(t.span,{...i,ref:a,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...i.style}}));r.displayName=d;var l=r;export{l as R,r as V};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as m,u as p,E as u}from"./register-D4rZ1J7I.js";import{a as d}from"./index-CQ6Ij8pA.js";var f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],v=f.reduce((t,i)=>{const r=m((o,e)=>{const{asChild:a,...n}=o,s=a?d:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p(s,{...n,ref:e})});return r.displayName=`Primitive.${i}`,{...t,[i]:r}},{});function l(t,i){t&&u(()=>t.dispatchEvent(i))}export{v as P,l as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as a,e}from"./register-D4rZ1J7I.js";const n="Portal",r=a((o,t)=>e(o.children,{ref:t}));r.displayName=n;export{r as P};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{A as g,u as i,q as K,D as u,O as U,y as _,k as A}from"./register-D4rZ1J7I.js";import{c as f}from"./index-CBrz5xtv.js";import{a as Y,u as h}from"./index-CQ6Ij8pA.js";import{a as Z,c as j}from"./index-Bgdj4x1s.js";import{u as P}from"./index-Cuf1DbBB.js";import{u as z}from"./index-B7vP9XGo.js";import{D as J}from"./index-CHNoa_cz.js";import{h as Q,F as X}from"./index-BbhzpmQg.js";import{P as ee}from"./index-Efhd2Xco.js";import{P as y}from"./index-BPqGk9Gj.js";import{P as m}from"./index-DuJ2JvNE.js";import{o as te,u as oe}from"./Combination-DBzD43hH.js";var N="Dialog",[R,ne]=Z(N),[re,l]=R(N),T=e=>{const{__scopeDialog:o,children:r,open:a,defaultOpen:n,onOpenChange:t,modal:c=!0}=e,s=g(null),p=g(null),[v=!1,C]=z({prop:a,defaultProp:n,onChange:t});return i(re,{scope:o,triggerRef:s,contentRef:p,contentId:P(),titleId:P(),descriptionId:P(),open:v,onOpenChange:C,onOpenToggle:K(()=>C(V=>!V),[C]),modal:c,children:r})};T.displayName=N;var x="DialogTrigger",b=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(x,r),t=h(o,n.triggerRef);return i(m.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":I(n.open),...a,ref:t,onClick:f(e.onClick,n.onOpenToggle)})});b.displayName=x;var O="DialogPortal",[ae,M]=R(O,{forceMount:void 0}),F=e=>{const{__scopeDialog:o,forceMount:r,children:a,container:n}=e,t=l(O,o);return i(ae,{scope:o,forceMount:r,children:U.map(a,c=>i(y,{present:r||t.open,children:i(ee,{asChild:!0,container:n,children:c})}))})};F.displayName=O;var D="DialogOverlay",S=u((e,o)=>{const r=M(D,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,t=l(D,e.__scopeDialog);return t.modal?i(y,{present:a||t.open,children:i(ie,{...n,ref:o})}):null});S.displayName=D;var ie=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(D,r);return i(te,{as:Y,allowPinchZoom:!0,shards:[n.contentRef],children:i(m.div,{"data-state":I(n.open),...a,ref:o,style:{pointerEvents:"auto",...a.style}})})}),d="DialogContent",W=u((e,o)=>{const r=M(d,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,t=l(d,e.__scopeDialog);return i(y,{present:a||t.open,children:t.modal?i(se,{...n,ref:o}):i(ce,{...n,ref:o})})});W.displayName=d;var se=u((e,o)=>{const r=l(d,e.__scopeDialog),a=g(null),n=h(o,r.contentRef,a);return _(()=>{const t=a.current;if(t)return Q(t)},[]),i(k,{...e,ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:f(e.onCloseAutoFocus,t=>{t.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:f(e.onPointerDownOutside,t=>{const c=t.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&t.preventDefault()}),onFocusOutside:f(e.onFocusOutside,t=>t.preventDefault())})}),ce=u((e,o)=>{const r=l(d,e.__scopeDialog),a=g(!1),n=g(!1);return i(k,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||r.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,t.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const c=t.target;r.triggerRef.current?.contains(c)&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&n.current&&t.preventDefault()}})}),k=u((e,o)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:t,...c}=e,s=l(d,r),p=g(null),v=h(o,p);return oe(),i(A,{children:[i(X,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:t,children:i(J,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":I(s.open),...c,ref:v,onDismiss:()=>s.onOpenChange(!1)})}),i(A,{children:[i(ue,{titleId:s.titleId}),i(ge,{contentRef:p,descriptionId:s.descriptionId})]})]})}),E="DialogTitle",w=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(E,r);return i(m.h2,{id:n.titleId,...a,ref:o})});w.displayName=E;var G="DialogDescription",L=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(G,r);return i(m.p,{id:n.descriptionId,...a,ref:o})});L.displayName=G;var $="DialogClose",B=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l($,r);return i(m.button,{type:"button",...a,ref:o,onClick:f(e.onClick,()=>n.onOpenChange(!1))})});B.displayName=$;function I(e){return e?"open":"closed"}var q="DialogTitleWarning",[le,H]=j(q,{contentName:d,titleName:E,docsSlug:"dialog"}),ue=({titleId:e})=>{const o=H(q),r=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
|
|
2
|
+
|
|
3
|
+
If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
|
+
|
|
5
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return _(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},de="DialogDescriptionWarning",ge=({contentRef:e,descriptionId:o})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${H(de).contentName}}.`;return _(()=>{const n=e.current?.getAttribute("aria-describedby");o&&n&&(document.getElementById(o)||console.warn(a))},[a,e,o]),null},pe=T,fe=b,me=F,De=S,ve=W,Ce=w,_e=L,he=B;export{he as C,_e as D,De as O,me as P,pe as R,Ce as T,le as W,ve as a,fe as b,ne as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{R as l,u as d}from"./register-D4rZ1J7I.js";import{a as w}from"./index-Bgdj4x1s.js";import{u as y,a as E}from"./index-CQ6Ij8pA.js";function L(i){const f=i+"CollectionProvider",[N,T]=w(f),[O,u]=N(f,{collectionRef:{current:null},itemMap:new Map}),m=c=>{const{scope:e,children:s}=c,o=l.useRef(null),t=l.useRef(new Map).current;return d(O,{scope:e,itemMap:t,collectionRef:o,children:s})};m.displayName=f;const p=i+"CollectionSlot",C=l.forwardRef((c,e)=>{const{scope:s,children:o}=c,t=u(p,s),n=y(e,t.collectionRef);return d(E,{ref:n,children:o})});C.displayName=p;const R=i+"CollectionItemSlot",S="data-radix-collection-item",M=l.forwardRef((c,e)=>{const{scope:s,children:o,...t}=c,n=l.useRef(null),I=y(e,n),r=u(R,s);return l.useLayoutEffect(()=>(r.itemMap.set(n,{ref:n,...t}),()=>void r.itemMap.delete(n))),d(E,{[S]:"",ref:I,children:o})});M.displayName=R;function _(c){const e=u(i+"CollectionConsumer",c);return l.useCallback(()=>{const o=e.collectionRef.current;if(!o)return[];const t=Array.from(((r,a)=>{const v=r.querySelectorAll("slot"),A=[...r.querySelectorAll(a)];for(const h of v)for(const x of h.assignedElements())A.push(...(x.shadowRoot??x).querySelectorAll(a));return A})(o,`[${S}]`));return Array.from(e.itemMap.values()).sort((r,a)=>t.indexOf(r.ref.current)-t.indexOf(a.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:m,Slot:C,ItemSlot:M},_,T]}export{L as c};
|
package/dist/index.d.ts
CHANGED
|
@@ -778,9 +778,9 @@ type ListboxSwitchItemProps = BoxProps & {
|
|
|
778
778
|
"addon-before"?: string;
|
|
779
779
|
"icon"?: string | number | false | true;
|
|
780
780
|
};
|
|
781
|
-
declare const
|
|
781
|
+
declare const ModalProvider = "ax-modal-provider";
|
|
782
782
|
|
|
783
|
-
type
|
|
783
|
+
type ModalProviderProps = {
|
|
784
784
|
|
|
785
785
|
};
|
|
786
786
|
declare const ModalLayer = "ax-modal-layer";
|
|
@@ -1950,7 +1950,7 @@ declare module "@stencil/core" {
|
|
|
1950
1950
|
declare module "@stencil/core" {
|
|
1951
1951
|
namespace JSX {
|
|
1952
1952
|
interface IntrinsicElements {
|
|
1953
|
-
[
|
|
1953
|
+
[ModalProvider]: ModalProviderProps;
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
@@ -2886,7 +2886,7 @@ declare module "react" {
|
|
|
2886
2886
|
declare module "react" {
|
|
2887
2887
|
namespace JSX {
|
|
2888
2888
|
interface IntrinsicElements {
|
|
2889
|
-
[
|
|
2889
|
+
[ModalProvider]: ModalProviderProps & { children?: ReactNode };
|
|
2890
2890
|
}
|
|
2891
2891
|
}
|
|
2892
2892
|
}
|
|
@@ -3291,4 +3291,4 @@ declare module "react" {
|
|
|
3291
3291
|
}
|
|
3292
3292
|
}
|
|
3293
3293
|
|
|
3294
|
-
export { Alert, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogBody, type AlertDialogBodyProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, type AlertDialogProps, AlertDialogTrigger, type AlertDialogTriggerProps, type AlertProps, AngleMenuButton, type AngleMenuButtonProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, AxiomProvider, type AxiomProviderProps, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Checkbox, type CheckboxProps, Code, type CodeProps, Dialog, DialogBody, type DialogBodyProps, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogFooter, type DialogFooterProps, DialogForm, type DialogFormProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTrigger, type DialogTriggerProps, Disclosure, DisclosureContent, type DisclosureContentProps, type DisclosureProps, DisclosureTrigger, type DisclosureTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EllipsisMenuButton, type EllipsisMenuButtonProps, Field, FieldLabel, type FieldLabelProps, type FieldProps, Flex, type FlexProps, Grid, type GridProps, Heading, type HeadingProps, Indicator, type IndicatorProps, Input, InputAddon, type InputAddonProps, InputControl, type InputControlProps, type InputProps, InputRoot, type InputRootProps, Kbd, type KbdProps, Link, type LinkProps, Listbox, ListboxCheckboxItem, type ListboxCheckboxItemProps, ListboxEmpty, type ListboxEmptyProps, ListboxFooter, type ListboxFooterProps, ListboxGroup, type ListboxGroupProps, ListboxItem, ListboxItemIndicator, type ListboxItemIndicatorProps, type ListboxItemProps, ListboxLabel, type ListboxLabelProps, type ListboxProps, ListboxRadioItem, type ListboxRadioItemProps, ListboxScrollArea, type ListboxScrollAreaProps, ListboxSeparator, type ListboxSeparatorProps, ListboxSwitchItem, type ListboxSwitchItemProps,
|
|
3294
|
+
export { Alert, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogBody, type AlertDialogBodyProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, type AlertDialogProps, AlertDialogTrigger, type AlertDialogTriggerProps, type AlertProps, AngleMenuButton, type AngleMenuButtonProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, AxiomProvider, type AxiomProviderProps, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Checkbox, type CheckboxProps, Code, type CodeProps, Dialog, DialogBody, type DialogBodyProps, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogFooter, type DialogFooterProps, DialogForm, type DialogFormProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTrigger, type DialogTriggerProps, Disclosure, DisclosureContent, type DisclosureContentProps, type DisclosureProps, DisclosureTrigger, type DisclosureTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EllipsisMenuButton, type EllipsisMenuButtonProps, Field, FieldLabel, type FieldLabelProps, type FieldProps, Flex, type FlexProps, Grid, type GridProps, Heading, type HeadingProps, Indicator, type IndicatorProps, Input, InputAddon, type InputAddonProps, InputControl, type InputControlProps, type InputProps, InputRoot, type InputRootProps, Kbd, type KbdProps, Link, type LinkProps, Listbox, ListboxCheckboxItem, type ListboxCheckboxItemProps, ListboxEmpty, type ListboxEmptyProps, ListboxFooter, type ListboxFooterProps, ListboxGroup, type ListboxGroupProps, ListboxItem, ListboxItemIndicator, type ListboxItemIndicatorProps, type ListboxItemProps, ListboxLabel, type ListboxLabelProps, type ListboxProps, ListboxRadioItem, type ListboxRadioItemProps, ListboxScrollArea, type ListboxScrollAreaProps, ListboxSeparator, type ListboxSeparatorProps, ListboxSwitchItem, type ListboxSwitchItemProps, ModalLayer, type ModalLayerProps, ModalProvider, type ModalProviderProps, Nav, NavAccountItem, type NavAccountItemProps, NavBody, type NavBodyProps, NavFooter, type NavFooterProps, NavGroup, NavGroupContent, type NavGroupContentProps, type NavGroupProps, NavGroupTrigger, type NavGroupTriggerProps, NavHeader, type NavHeaderProps, NavItem, type NavItemProps, NavList, type NavListProps, type NavProps, NavSeparator, type NavSeparatorProps, Pagination, type PaginationProps, Paper, type PaperProps, Popover, PopoverAnchor, type PopoverAnchorProps, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, SearchInput, type SearchInputProps, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Separator, type SeparatorProps, Sidebar, type SidebarProps, SidebarToggle, type SidebarToggleProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, SubNav, type SubNavProps, Switch, type SwitchProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, type TextProps, Textarea, type TextareaProps, ThemeProvider, type ThemeProviderProps, Toast, ToastAction, type ToastActionProps, type ToastProps, ToastProvider, type ToastProviderProps, ToastTitle, type ToastTitleProps, ToggleButton, type ToggleButtonProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipRoot, type TooltipRootProps, TooltipTrigger, type TooltipTriggerProps, Transition, TransitionGroup, type TransitionGroupProps, type TransitionProps };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as e,A as ct,a as ut,b as dt,c as gt,d as pt,e as ft,g as Et,h as xt,i as Pt,j as bt,k as vt,l as Dt,m as Tt,B as At,n as Ct,o as Lt,p as It,q as St,C as wt,r as Mt,D as ht,s as Nt,t as Bt,u as Gt,v as Ft,w as kt,x as yt,y as Rt,z as Ht,E as Kt,F as jt,G as qt,H as zt,I as Jt,J as Ot,K as Qt,L as Ut,M as Vt,N as Wt,O as Xt,P as Yt,Q as Zt,R as _t,S as $t,T as eo,U as to,V as oo,W as so,X as no,Y as ao,Z as io,_ as mo,$ as ro,a0 as lo,a1 as co,a2 as uo,a3 as go,a4 as po,a5 as fo,a6 as Eo,a7 as xo,a8 as Po,a9 as bo,aa as vo,ab as Do,ac as To,ad as Ao,ae as Co,af as Lo,ag as Io,ah as So,ai as wo,aj as Mo,ak as ho,al as No,am as Bo,an as Go,ao as Fo,ap as ko,aq as yo,ar as Ro,as as Ho,at as Ko,au as jo,av as qo,aw as zo,ax as Jo,ay as Oo,az as Qo,aA as Uo,aB as Vo,aC as Wo,aD as Xo,aE as Yo,aF as Zo,aG as _o,aH as $o,aI as es,aJ as ts,aK as os,aL as ss,aM as ns,aN as as,aO as is,aP as ms,aQ as rs,aR as ls,aS as cs,aT as us,aU as ds,aV as gs,aW as ps,aX as fs,aY as Es,aZ as xs,a_ as Ps,a$ as bs}from"./propTypes-DUIdH7is.js";const t="ax-alert";customElements.get(t)||customElements.define(t,e(t,"Alert",ct));const o="ax-alert-dialog";customElements.get(o)||customElements.define(o,e(o,"AlertDialog",ut));const s="ax-alert-dialog-action";customElements.get(s)||customElements.define(s,e(s,"AlertDialogAction",dt));const n="ax-alert-dialog-body";customElements.get(n)||customElements.define(n,e(n,"AlertDialogBody",gt));const a="ax-alert-dialog-cancel";customElements.get(a)||customElements.define(a,e(a,"AlertDialogCancel",pt));const i="ax-alert-dialog-content";customElements.get(i)||customElements.define(i,e(i,"AlertDialogContent",ft));const m="ax-alert-dialog-footer";customElements.get(m)||customElements.define(m,e(m,"AlertDialogFooter",Et));const r="ax-alert-dialog-header";customElements.get(r)||customElements.define(r,e(r,"AlertDialogHeader",xt));const l="ax-alert-dialog-trigger";customElements.get(l)||customElements.define(l,e(l,"AlertDialogTrigger",Pt));const c="ax-angle-menu-button";customElements.get(c)||customElements.define(c,e(c,"AngleMenuButton",bt));const u="ax-avatar";customElements.get(u)||customElements.define(u,e(u,"Avatar",vt));const d="ax-avatar-group";customElements.get(d)||customElements.define(d,e(d,"AvatarGroup",Dt));const g="ax-axiom-provider";customElements.get(g)||customElements.define(g,e(g,"AxiomProvider",Tt));const p="ax-badge";customElements.get(p)||customElements.define(p,e(p,"Badge",At));const f="ax-banner";customElements.get(f)||customElements.define(f,e(f,"Banner",Ct));const E="ax-box";customElements.get(E)||customElements.define(E,e(E,"Box",Lt));const x="ax-button";customElements.get(x)||customElements.define(x,e(x,"Button",It));const P="ax-button-group";customElements.get(P)||customElements.define(P,e(P,"ButtonGroup",St));const b="ax-checkbox";customElements.get(b)||customElements.define(b,e(b,"Checkbox",wt));const v="ax-code";customElements.get(v)||customElements.define(v,e(v,"Code",Mt));const D="ax-dialog";customElements.get(D)||customElements.define(D,e(D,"Dialog",ht));const T="ax-dialog-body";customElements.get(T)||customElements.define(T,e(T,"DialogBody",Nt));const A="ax-dialog-close";customElements.get(A)||customElements.define(A,e(A,"DialogClose",Bt));const C="ax-dialog-content";customElements.get(C)||customElements.define(C,e(C,"DialogContent",Gt));const L="ax-dialog-footer";customElements.get(L)||customElements.define(L,e(L,"DialogFooter",Ft));const I="ax-dialog-form";customElements.get(I)||customElements.define(I,e(I,"DialogForm",kt));const S="ax-dialog-header";customElements.get(S)||customElements.define(S,e(S,"DialogHeader",yt));const w="ax-dialog-trigger";customElements.get(w)||customElements.define(w,e(w,"DialogTrigger",Rt));const M="ax-disclosure";customElements.get(M)||customElements.define(M,e(M,"Disclosure",Ht));const h="ax-disclosure-content";customElements.get(h)||customElements.define(h,e(h,"DisclosureContent",Kt));const N="ax-disclosure-trigger";customElements.get(N)||customElements.define(N,e(N,"DisclosureTrigger",jt));const B="ax-dropdown-menu";customElements.get(B)||customElements.define(B,e(B,"DropdownMenu",qt));const G="ax-dropdown-menu-checkbox-item";customElements.get(G)||customElements.define(G,e(G,"DropdownMenuCheckboxItem",zt));const F="ax-dropdown-menu-content";customElements.get(F)||customElements.define(F,e(F,"DropdownMenuContent",Jt));const k="ax-dropdown-menu-group";customElements.get(k)||customElements.define(k,e(k,"DropdownMenuGroup",Ot));const y="ax-dropdown-menu-item";customElements.get(y)||customElements.define(y,e(y,"DropdownMenuItem",Qt));const R="ax-dropdown-menu-label";customElements.get(R)||customElements.define(R,e(R,"DropdownMenuLabel",Ut));const H="ax-dropdown-menu-separator";customElements.get(H)||customElements.define(H,e(H,"DropdownMenuSeparator",Vt));const K="ax-dropdown-menu-sub";customElements.get(K)||customElements.define(K,e(K,"DropdownMenuSub",Wt));const j="ax-dropdown-menu-sub-content";customElements.get(j)||customElements.define(j,e(j,"DropdownMenuSubContent",Xt));const q="ax-dropdown-menu-trigger";customElements.get(q)||customElements.define(q,e(q,"DropdownMenuTrigger",Yt));const z="ax-ellipsis-menu-button";customElements.get(z)||customElements.define(z,e(z,"EllipsisMenuButton",Zt));const J="ax-field";customElements.get(J)||customElements.define(J,e(J,"Field",_t));const O="ax-field-label";customElements.get(O)||customElements.define(O,e(O,"FieldLabel",$t));const Q="ax-flex";customElements.get(Q)||customElements.define(Q,e(Q,"Flex",eo));const U="ax-grid";customElements.get(U)||customElements.define(U,e(U,"Grid",to));const V="ax-heading";customElements.get(V)||customElements.define(V,e(V,"Heading",oo));const W="ax-indicator";customElements.get(W)||customElements.define(W,e(W,"Indicator",so));const X="ax-input";customElements.get(X)||customElements.define(X,e(X,"Input",no));const Y="ax-input-addon";customElements.get(Y)||customElements.define(Y,e(Y,"InputAddon",ao));const Z="ax-input-control";customElements.get(Z)||customElements.define(Z,e(Z,"InputControl",io));const _="ax-input-root";customElements.get(_)||customElements.define(_,e(_,"InputRoot",mo));const $="ax-kbd";customElements.get($)||customElements.define($,e($,"Kbd",ro));const ee="ax-link";customElements.get(ee)||customElements.define(ee,e(ee,"Link",lo));const te="ax-listbox";customElements.get(te)||customElements.define(te,e(te,"Listbox",co));const oe="ax-listbox-checkbox-item";customElements.get(oe)||customElements.define(oe,e(oe,"ListboxCheckboxItem",uo));const se="ax-listbox-empty";customElements.get(se)||customElements.define(se,e(se,"ListboxEmpty",go));const ne="ax-listbox-footer";customElements.get(ne)||customElements.define(ne,e(ne,"ListboxFooter",po));const ae="ax-listbox-group";customElements.get(ae)||customElements.define(ae,e(ae,"ListboxGroup",fo));const ie="ax-listbox-item";customElements.get(ie)||customElements.define(ie,e(ie,"ListboxItem",Eo));const me="ax-listbox-item-indicator";customElements.get(me)||customElements.define(me,e(me,"ListboxItemIndicator",xo));const re="ax-listbox-label";customElements.get(re)||customElements.define(re,e(re,"ListboxLabel",Po));const le="ax-listbox-radio-item";customElements.get(le)||customElements.define(le,e(le,"ListboxRadioItem",bo));const ce="ax-listbox-scroll-area";customElements.get(ce)||customElements.define(ce,e(ce,"ListboxScrollArea",vo));const ue="ax-listbox-separator";customElements.get(ue)||customElements.define(ue,e(ue,"ListboxSeparator",Do));const de="ax-listbox-switch-item";customElements.get(de)||customElements.define(de,e(de,"ListboxSwitchItem",To));const ge="ax-modal-context-provider";customElements.get(ge)||customElements.define(ge,e(ge,"ModalContextProvider",Ao));const pe="ax-modal-layer";customElements.get(pe)||customElements.define(pe,e(pe,"ModalLayer",Co));const fe="ax-nav";customElements.get(fe)||customElements.define(fe,e(fe,"Nav",Lo));const Ee="ax-nav-account-item";customElements.get(Ee)||customElements.define(Ee,e(Ee,"NavAccountItem",Io));const xe="ax-nav-body";customElements.get(xe)||customElements.define(xe,e(xe,"NavBody",So));const Pe="ax-nav-footer";customElements.get(Pe)||customElements.define(Pe,e(Pe,"NavFooter",wo));const be="ax-nav-group";customElements.get(be)||customElements.define(be,e(be,"NavGroup",Mo));const ve="ax-nav-group-content";customElements.get(ve)||customElements.define(ve,e(ve,"NavGroupContent",ho));const De="ax-nav-group-trigger";customElements.get(De)||customElements.define(De,e(De,"NavGroupTrigger",No));const Te="ax-nav-header";customElements.get(Te)||customElements.define(Te,e(Te,"NavHeader",Bo));const Ae="ax-nav-item";customElements.get(Ae)||customElements.define(Ae,e(Ae,"NavItem",Go));const Ce="ax-nav-list";customElements.get(Ce)||customElements.define(Ce,e(Ce,"NavList",Fo));const Le="ax-nav-separator";customElements.get(Le)||customElements.define(Le,e(Le,"NavSeparator",ko));const Ie="ax-pagination";customElements.get(Ie)||customElements.define(Ie,e(Ie,"Pagination",yo));const Se="ax-paper";customElements.get(Se)||customElements.define(Se,e(Se,"Paper",Ro));const we="ax-popover";customElements.get(we)||customElements.define(we,e(we,"Popover",Ho));const Me="ax-popover-anchor";customElements.get(Me)||customElements.define(Me,e(Me,"PopoverAnchor",Ko));const he="ax-popover-content";customElements.get(he)||customElements.define(he,e(he,"PopoverContent",jo));const Ne="ax-popover-trigger";customElements.get(Ne)||customElements.define(Ne,e(Ne,"PopoverTrigger",qo));const Be="ax-progress";customElements.get(Be)||customElements.define(Be,e(Be,"Progress",zo));const Ge="ax-radio";customElements.get(Ge)||customElements.define(Ge,e(Ge,"Radio",Jo));const Fe="ax-radio-group";customElements.get(Fe)||customElements.define(Fe,e(Fe,"RadioGroup",Oo));const ke="ax-search-input";customElements.get(ke)||customElements.define(ke,e(ke,"SearchInput",Qo));const ye="ax-segmented-control";customElements.get(ye)||customElements.define(ye,e(ye,"SegmentedControl",Uo));const Re="ax-segmented-control-item";customElements.get(Re)||customElements.define(Re,e(Re,"SegmentedControlItem",Vo));const He="ax-separator";customElements.get(He)||customElements.define(He,e(He,"Separator",Wo));const Ke="ax-sidebar";customElements.get(Ke)||customElements.define(Ke,e(Ke,"Sidebar",Xo));const je="ax-sidebar-toggle";customElements.get(je)||customElements.define(je,e(je,"SidebarToggle",Yo));const qe="ax-skeleton";customElements.get(qe)||customElements.define(qe,e(qe,"Skeleton",Zo));const ze="ax-spinner";customElements.get(ze)||customElements.define(ze,e(ze,"Spinner",_o));const Je="ax-sub-nav";customElements.get(Je)||customElements.define(Je,e(Je,"SubNav",$o));const Oe="ax-switch";customElements.get(Oe)||customElements.define(Oe,e(Oe,"Switch",es));const Qe="ax-tabs";customElements.get(Qe)||customElements.define(Qe,e(Qe,"Tabs",ts));const Ue="ax-tabs-content";customElements.get(Ue)||customElements.define(Ue,e(Ue,"TabsContent",os));const Ve="ax-tabs-list";customElements.get(Ve)||customElements.define(Ve,e(Ve,"TabsList",ss));const We="ax-tabs-trigger";customElements.get(We)||customElements.define(We,e(We,"TabsTrigger",ns));const Xe="ax-text";customElements.get(Xe)||customElements.define(Xe,e(Xe,"Text",as));const Ye="ax-textarea";customElements.get(Ye)||customElements.define(Ye,e(Ye,"Textarea",is));const Ze="ax-theme-provider";customElements.get(Ze)||customElements.define(Ze,e(Ze,"ThemeProvider",ms));const _e="ax-toast";customElements.get(_e)||customElements.define(_e,e(_e,"Toast",rs));const $e="ax-toast-action";customElements.get($e)||customElements.define($e,e($e,"ToastAction",ls));const et="ax-toast-provider";customElements.get(et)||customElements.define(et,e(et,"ToastProvider",cs));const tt="ax-toast-title";customElements.get(tt)||customElements.define(tt,e(tt,"ToastTitle",us));const ot="ax-toggle-button";customElements.get(ot)||customElements.define(ot,e(ot,"ToggleButton",ds));const st="ax-tooltip";customElements.get(st)||customElements.define(st,e(st,"Tooltip",gs));const nt="ax-tooltip-content";customElements.get(nt)||customElements.define(nt,e(nt,"TooltipContent",ps));const at="ax-tooltip-provider";customElements.get(at)||customElements.define(at,e(at,"TooltipProvider",fs));const it="ax-tooltip-root";customElements.get(it)||customElements.define(it,e(it,"TooltipRoot",Es));const mt="ax-tooltip-trigger";customElements.get(mt)||customElements.define(mt,e(mt,"TooltipTrigger",xs));const rt="ax-transition";customElements.get(rt)||customElements.define(rt,e(rt,"Transition",Ps));const lt="ax-transition-group";customElements.get(lt)||customElements.define(lt,e(lt,"TransitionGroup",bs));export{t as Alert,o as AlertDialog,s as AlertDialogAction,n as AlertDialogBody,a as AlertDialogCancel,i as AlertDialogContent,m as AlertDialogFooter,r as AlertDialogHeader,l as AlertDialogTrigger,c as AngleMenuButton,u as Avatar,d as AvatarGroup,g as AxiomProvider,p as Badge,f as Banner,E as Box,x as Button,P as ButtonGroup,b as Checkbox,v as Code,D as Dialog,T as DialogBody,A as DialogClose,C as DialogContent,L as DialogFooter,I as DialogForm,S as DialogHeader,w as DialogTrigger,M as Disclosure,h as DisclosureContent,N as DisclosureTrigger,B as DropdownMenu,G as DropdownMenuCheckboxItem,F as DropdownMenuContent,k as DropdownMenuGroup,y as DropdownMenuItem,R as DropdownMenuLabel,H as DropdownMenuSeparator,K as DropdownMenuSub,j as DropdownMenuSubContent,q as DropdownMenuTrigger,z as EllipsisMenuButton,J as Field,O as FieldLabel,Q as Flex,U as Grid,V as Heading,W as Indicator,X as Input,Y as InputAddon,Z as InputControl,_ as InputRoot,$ as Kbd,ee as Link,te as Listbox,oe as ListboxCheckboxItem,se as ListboxEmpty,ne as ListboxFooter,ae as ListboxGroup,ie as ListboxItem,me as ListboxItemIndicator,re as ListboxLabel,le as ListboxRadioItem,ce as ListboxScrollArea,ue as ListboxSeparator,de as ListboxSwitchItem,ge as ModalContextProvider,pe as ModalLayer,fe as Nav,Ee as NavAccountItem,xe as NavBody,Pe as NavFooter,be as NavGroup,ve as NavGroupContent,De as NavGroupTrigger,Te as NavHeader,Ae as NavItem,Ce as NavList,Le as NavSeparator,Ie as Pagination,Se as Paper,we as Popover,Me as PopoverAnchor,he as PopoverContent,Ne as PopoverTrigger,Be as Progress,Ge as Radio,Fe as RadioGroup,ke as SearchInput,ye as SegmentedControl,Re as SegmentedControlItem,He as Separator,Ke as Sidebar,je as SidebarToggle,qe as Skeleton,ze as Spinner,Je as SubNav,Oe as Switch,Qe as Tabs,Ue as TabsContent,Ve as TabsList,We as TabsTrigger,Xe as Text,Ye as Textarea,Ze as ThemeProvider,_e as Toast,$e as ToastAction,et as ToastProvider,tt as ToastTitle,ot as ToggleButton,st as Tooltip,nt as TooltipContent,at as TooltipProvider,it as TooltipRoot,mt as TooltipTrigger,rt as Transition,lt as TransitionGroup};
|
|
1
|
+
import{f as e,A as ct,a as ut,b as dt,c as gt,d as pt,e as ft,g as Et,h as xt,i as Pt,j as bt,k as vt,l as Dt,m as Tt,B as At,n as Lt,o as Ct,p as It,q as St,C as wt,r as Mt,D as ht,s as Nt,t as Bt,u as Gt,v as Ft,w as kt,x as yt,y as Rt,z as Ht,E as Kt,F as jt,G as qt,H as zt,I as Jt,J as Ot,K as Qt,L as Ut,M as Vt,N as Wt,O as Xt,P as Yt,Q as Zt,R as _t,S as $t,T as eo,U as to,V as oo,W as so,X as no,Y as ao,Z as io,_ as mo,$ as ro,a0 as lo,a1 as co,a2 as uo,a3 as go,a4 as po,a5 as fo,a6 as Eo,a7 as xo,a8 as Po,a9 as bo,aa as vo,ab as Do,ac as To,ad as Ao,ae as Lo,af as Co,ag as Io,ah as So,ai as wo,aj as Mo,ak as ho,al as No,am as Bo,an as Go,ao as Fo,ap as ko,aq as yo,ar as Ro,as as Ho,at as Ko,au as jo,av as qo,aw as zo,ax as Jo,ay as Oo,az as Qo,aA as Uo,aB as Vo,aC as Wo,aD as Xo,aE as Yo,aF as Zo,aG as _o,aH as $o,aI as es,aJ as ts,aK as os,aL as ss,aM as ns,aN as as,aO as is,aP as ms,aQ as rs,aR as ls,aS as cs,aT as us,aU as ds,aV as gs,aW as ps,aX as fs,aY as Es,aZ as xs,a_ as Ps,a$ as bs}from"./propTypes-D4oxq123.js";const t="ax-alert";customElements.get(t)||customElements.define(t,e(t,"Alert",ct));const o="ax-alert-dialog";customElements.get(o)||customElements.define(o,e(o,"AlertDialog",ut));const s="ax-alert-dialog-action";customElements.get(s)||customElements.define(s,e(s,"AlertDialogAction",dt));const n="ax-alert-dialog-body";customElements.get(n)||customElements.define(n,e(n,"AlertDialogBody",gt));const a="ax-alert-dialog-cancel";customElements.get(a)||customElements.define(a,e(a,"AlertDialogCancel",pt));const i="ax-alert-dialog-content";customElements.get(i)||customElements.define(i,e(i,"AlertDialogContent",ft));const m="ax-alert-dialog-footer";customElements.get(m)||customElements.define(m,e(m,"AlertDialogFooter",Et));const r="ax-alert-dialog-header";customElements.get(r)||customElements.define(r,e(r,"AlertDialogHeader",xt));const l="ax-alert-dialog-trigger";customElements.get(l)||customElements.define(l,e(l,"AlertDialogTrigger",Pt));const c="ax-angle-menu-button";customElements.get(c)||customElements.define(c,e(c,"AngleMenuButton",bt));const u="ax-avatar";customElements.get(u)||customElements.define(u,e(u,"Avatar",vt));const d="ax-avatar-group";customElements.get(d)||customElements.define(d,e(d,"AvatarGroup",Dt));const g="ax-axiom-provider";customElements.get(g)||customElements.define(g,e(g,"AxiomProvider",Tt));const p="ax-badge";customElements.get(p)||customElements.define(p,e(p,"Badge",At));const f="ax-banner";customElements.get(f)||customElements.define(f,e(f,"Banner",Lt));const E="ax-box";customElements.get(E)||customElements.define(E,e(E,"Box",Ct));const x="ax-button";customElements.get(x)||customElements.define(x,e(x,"Button",It));const P="ax-button-group";customElements.get(P)||customElements.define(P,e(P,"ButtonGroup",St));const b="ax-checkbox";customElements.get(b)||customElements.define(b,e(b,"Checkbox",wt));const v="ax-code";customElements.get(v)||customElements.define(v,e(v,"Code",Mt));const D="ax-dialog";customElements.get(D)||customElements.define(D,e(D,"Dialog",ht));const T="ax-dialog-body";customElements.get(T)||customElements.define(T,e(T,"DialogBody",Nt));const A="ax-dialog-close";customElements.get(A)||customElements.define(A,e(A,"DialogClose",Bt));const L="ax-dialog-content";customElements.get(L)||customElements.define(L,e(L,"DialogContent",Gt));const C="ax-dialog-footer";customElements.get(C)||customElements.define(C,e(C,"DialogFooter",Ft));const I="ax-dialog-form";customElements.get(I)||customElements.define(I,e(I,"DialogForm",kt));const S="ax-dialog-header";customElements.get(S)||customElements.define(S,e(S,"DialogHeader",yt));const w="ax-dialog-trigger";customElements.get(w)||customElements.define(w,e(w,"DialogTrigger",Rt));const M="ax-disclosure";customElements.get(M)||customElements.define(M,e(M,"Disclosure",Ht));const h="ax-disclosure-content";customElements.get(h)||customElements.define(h,e(h,"DisclosureContent",Kt));const N="ax-disclosure-trigger";customElements.get(N)||customElements.define(N,e(N,"DisclosureTrigger",jt));const B="ax-dropdown-menu";customElements.get(B)||customElements.define(B,e(B,"DropdownMenu",qt));const G="ax-dropdown-menu-checkbox-item";customElements.get(G)||customElements.define(G,e(G,"DropdownMenuCheckboxItem",zt));const F="ax-dropdown-menu-content";customElements.get(F)||customElements.define(F,e(F,"DropdownMenuContent",Jt));const k="ax-dropdown-menu-group";customElements.get(k)||customElements.define(k,e(k,"DropdownMenuGroup",Ot));const y="ax-dropdown-menu-item";customElements.get(y)||customElements.define(y,e(y,"DropdownMenuItem",Qt));const R="ax-dropdown-menu-label";customElements.get(R)||customElements.define(R,e(R,"DropdownMenuLabel",Ut));const H="ax-dropdown-menu-separator";customElements.get(H)||customElements.define(H,e(H,"DropdownMenuSeparator",Vt));const K="ax-dropdown-menu-sub";customElements.get(K)||customElements.define(K,e(K,"DropdownMenuSub",Wt));const j="ax-dropdown-menu-sub-content";customElements.get(j)||customElements.define(j,e(j,"DropdownMenuSubContent",Xt));const q="ax-dropdown-menu-trigger";customElements.get(q)||customElements.define(q,e(q,"DropdownMenuTrigger",Yt));const z="ax-ellipsis-menu-button";customElements.get(z)||customElements.define(z,e(z,"EllipsisMenuButton",Zt));const J="ax-field";customElements.get(J)||customElements.define(J,e(J,"Field",_t));const O="ax-field-label";customElements.get(O)||customElements.define(O,e(O,"FieldLabel",$t));const Q="ax-flex";customElements.get(Q)||customElements.define(Q,e(Q,"Flex",eo));const U="ax-grid";customElements.get(U)||customElements.define(U,e(U,"Grid",to));const V="ax-heading";customElements.get(V)||customElements.define(V,e(V,"Heading",oo));const W="ax-indicator";customElements.get(W)||customElements.define(W,e(W,"Indicator",so));const X="ax-input";customElements.get(X)||customElements.define(X,e(X,"Input",no));const Y="ax-input-addon";customElements.get(Y)||customElements.define(Y,e(Y,"InputAddon",ao));const Z="ax-input-control";customElements.get(Z)||customElements.define(Z,e(Z,"InputControl",io));const _="ax-input-root";customElements.get(_)||customElements.define(_,e(_,"InputRoot",mo));const $="ax-kbd";customElements.get($)||customElements.define($,e($,"Kbd",ro));const ee="ax-link";customElements.get(ee)||customElements.define(ee,e(ee,"Link",lo));const te="ax-listbox";customElements.get(te)||customElements.define(te,e(te,"Listbox",co));const oe="ax-listbox-checkbox-item";customElements.get(oe)||customElements.define(oe,e(oe,"ListboxCheckboxItem",uo));const se="ax-listbox-empty";customElements.get(se)||customElements.define(se,e(se,"ListboxEmpty",go));const ne="ax-listbox-footer";customElements.get(ne)||customElements.define(ne,e(ne,"ListboxFooter",po));const ae="ax-listbox-group";customElements.get(ae)||customElements.define(ae,e(ae,"ListboxGroup",fo));const ie="ax-listbox-item";customElements.get(ie)||customElements.define(ie,e(ie,"ListboxItem",Eo));const me="ax-listbox-item-indicator";customElements.get(me)||customElements.define(me,e(me,"ListboxItemIndicator",xo));const re="ax-listbox-label";customElements.get(re)||customElements.define(re,e(re,"ListboxLabel",Po));const le="ax-listbox-radio-item";customElements.get(le)||customElements.define(le,e(le,"ListboxRadioItem",bo));const ce="ax-listbox-scroll-area";customElements.get(ce)||customElements.define(ce,e(ce,"ListboxScrollArea",vo));const ue="ax-listbox-separator";customElements.get(ue)||customElements.define(ue,e(ue,"ListboxSeparator",Do));const de="ax-listbox-switch-item";customElements.get(de)||customElements.define(de,e(de,"ListboxSwitchItem",To));const ge="ax-modal-provider";customElements.get(ge)||customElements.define(ge,e(ge,"ModalProvider",Ao));const pe="ax-modal-layer";customElements.get(pe)||customElements.define(pe,e(pe,"ModalLayer",Lo));const fe="ax-nav";customElements.get(fe)||customElements.define(fe,e(fe,"Nav",Co));const Ee="ax-nav-account-item";customElements.get(Ee)||customElements.define(Ee,e(Ee,"NavAccountItem",Io));const xe="ax-nav-body";customElements.get(xe)||customElements.define(xe,e(xe,"NavBody",So));const Pe="ax-nav-footer";customElements.get(Pe)||customElements.define(Pe,e(Pe,"NavFooter",wo));const be="ax-nav-group";customElements.get(be)||customElements.define(be,e(be,"NavGroup",Mo));const ve="ax-nav-group-content";customElements.get(ve)||customElements.define(ve,e(ve,"NavGroupContent",ho));const De="ax-nav-group-trigger";customElements.get(De)||customElements.define(De,e(De,"NavGroupTrigger",No));const Te="ax-nav-header";customElements.get(Te)||customElements.define(Te,e(Te,"NavHeader",Bo));const Ae="ax-nav-item";customElements.get(Ae)||customElements.define(Ae,e(Ae,"NavItem",Go));const Le="ax-nav-list";customElements.get(Le)||customElements.define(Le,e(Le,"NavList",Fo));const Ce="ax-nav-separator";customElements.get(Ce)||customElements.define(Ce,e(Ce,"NavSeparator",ko));const Ie="ax-pagination";customElements.get(Ie)||customElements.define(Ie,e(Ie,"Pagination",yo));const Se="ax-paper";customElements.get(Se)||customElements.define(Se,e(Se,"Paper",Ro));const we="ax-popover";customElements.get(we)||customElements.define(we,e(we,"Popover",Ho));const Me="ax-popover-anchor";customElements.get(Me)||customElements.define(Me,e(Me,"PopoverAnchor",Ko));const he="ax-popover-content";customElements.get(he)||customElements.define(he,e(he,"PopoverContent",jo));const Ne="ax-popover-trigger";customElements.get(Ne)||customElements.define(Ne,e(Ne,"PopoverTrigger",qo));const Be="ax-progress";customElements.get(Be)||customElements.define(Be,e(Be,"Progress",zo));const Ge="ax-radio";customElements.get(Ge)||customElements.define(Ge,e(Ge,"Radio",Jo));const Fe="ax-radio-group";customElements.get(Fe)||customElements.define(Fe,e(Fe,"RadioGroup",Oo));const ke="ax-search-input";customElements.get(ke)||customElements.define(ke,e(ke,"SearchInput",Qo));const ye="ax-segmented-control";customElements.get(ye)||customElements.define(ye,e(ye,"SegmentedControl",Uo));const Re="ax-segmented-control-item";customElements.get(Re)||customElements.define(Re,e(Re,"SegmentedControlItem",Vo));const He="ax-separator";customElements.get(He)||customElements.define(He,e(He,"Separator",Wo));const Ke="ax-sidebar";customElements.get(Ke)||customElements.define(Ke,e(Ke,"Sidebar",Xo));const je="ax-sidebar-toggle";customElements.get(je)||customElements.define(je,e(je,"SidebarToggle",Yo));const qe="ax-skeleton";customElements.get(qe)||customElements.define(qe,e(qe,"Skeleton",Zo));const ze="ax-spinner";customElements.get(ze)||customElements.define(ze,e(ze,"Spinner",_o));const Je="ax-sub-nav";customElements.get(Je)||customElements.define(Je,e(Je,"SubNav",$o));const Oe="ax-switch";customElements.get(Oe)||customElements.define(Oe,e(Oe,"Switch",es));const Qe="ax-tabs";customElements.get(Qe)||customElements.define(Qe,e(Qe,"Tabs",ts));const Ue="ax-tabs-content";customElements.get(Ue)||customElements.define(Ue,e(Ue,"TabsContent",os));const Ve="ax-tabs-list";customElements.get(Ve)||customElements.define(Ve,e(Ve,"TabsList",ss));const We="ax-tabs-trigger";customElements.get(We)||customElements.define(We,e(We,"TabsTrigger",ns));const Xe="ax-text";customElements.get(Xe)||customElements.define(Xe,e(Xe,"Text",as));const Ye="ax-textarea";customElements.get(Ye)||customElements.define(Ye,e(Ye,"Textarea",is));const Ze="ax-theme-provider";customElements.get(Ze)||customElements.define(Ze,e(Ze,"ThemeProvider",ms));const _e="ax-toast";customElements.get(_e)||customElements.define(_e,e(_e,"Toast",rs));const $e="ax-toast-action";customElements.get($e)||customElements.define($e,e($e,"ToastAction",ls));const et="ax-toast-provider";customElements.get(et)||customElements.define(et,e(et,"ToastProvider",cs));const tt="ax-toast-title";customElements.get(tt)||customElements.define(tt,e(tt,"ToastTitle",us));const ot="ax-toggle-button";customElements.get(ot)||customElements.define(ot,e(ot,"ToggleButton",ds));const st="ax-tooltip";customElements.get(st)||customElements.define(st,e(st,"Tooltip",gs));const nt="ax-tooltip-content";customElements.get(nt)||customElements.define(nt,e(nt,"TooltipContent",ps));const at="ax-tooltip-provider";customElements.get(at)||customElements.define(at,e(at,"TooltipProvider",fs));const it="ax-tooltip-root";customElements.get(it)||customElements.define(it,e(it,"TooltipRoot",Es));const mt="ax-tooltip-trigger";customElements.get(mt)||customElements.define(mt,e(mt,"TooltipTrigger",xs));const rt="ax-transition";customElements.get(rt)||customElements.define(rt,e(rt,"Transition",Ps));const lt="ax-transition-group";customElements.get(lt)||customElements.define(lt,e(lt,"TransitionGroup",bs));export{t as Alert,o as AlertDialog,s as AlertDialogAction,n as AlertDialogBody,a as AlertDialogCancel,i as AlertDialogContent,m as AlertDialogFooter,r as AlertDialogHeader,l as AlertDialogTrigger,c as AngleMenuButton,u as Avatar,d as AvatarGroup,g as AxiomProvider,p as Badge,f as Banner,E as Box,x as Button,P as ButtonGroup,b as Checkbox,v as Code,D as Dialog,T as DialogBody,A as DialogClose,L as DialogContent,C as DialogFooter,I as DialogForm,S as DialogHeader,w as DialogTrigger,M as Disclosure,h as DisclosureContent,N as DisclosureTrigger,B as DropdownMenu,G as DropdownMenuCheckboxItem,F as DropdownMenuContent,k as DropdownMenuGroup,y as DropdownMenuItem,R as DropdownMenuLabel,H as DropdownMenuSeparator,K as DropdownMenuSub,j as DropdownMenuSubContent,q as DropdownMenuTrigger,z as EllipsisMenuButton,J as Field,O as FieldLabel,Q as Flex,U as Grid,V as Heading,W as Indicator,X as Input,Y as InputAddon,Z as InputControl,_ as InputRoot,$ as Kbd,ee as Link,te as Listbox,oe as ListboxCheckboxItem,se as ListboxEmpty,ne as ListboxFooter,ae as ListboxGroup,ie as ListboxItem,me as ListboxItemIndicator,re as ListboxLabel,le as ListboxRadioItem,ce as ListboxScrollArea,ue as ListboxSeparator,de as ListboxSwitchItem,pe as ModalLayer,ge as ModalProvider,fe as Nav,Ee as NavAccountItem,xe as NavBody,Pe as NavFooter,be as NavGroup,ve as NavGroupContent,De as NavGroupTrigger,Te as NavHeader,Ae as NavItem,Le as NavList,Ce as NavSeparator,Ie as Pagination,Se as Paper,we as Popover,Me as PopoverAnchor,he as PopoverContent,Ne as PopoverTrigger,Be as Progress,Ge as Radio,Fe as RadioGroup,ke as SearchInput,ye as SegmentedControl,Re as SegmentedControlItem,He as Separator,Ke as Sidebar,je as SidebarToggle,qe as Skeleton,ze as Spinner,Je as SubNav,Oe as Switch,Qe as Tabs,Ue as TabsContent,Ve as TabsList,We as TabsTrigger,Xe as Text,Ye as Textarea,Ze as ThemeProvider,_e as Toast,$e as ToastAction,et as ToastProvider,tt as ToastTitle,ot as ToggleButton,st as Tooltip,nt as TooltipContent,at as TooltipProvider,it as TooltipRoot,mt as TooltipTrigger,rt as Transition,lt as TransitionGroup};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i}from"./register-D4rZ1J7I.js";i("@layer optiaxiom, optiaxiom.theme, optiaxiom.base, optiaxiom._11ctu6e, optiaxiom._1g2ktwt;");
|