@optiaxiom/web-components 0.8.11 → 0.8.13
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/NavGroup/package.json +4 -0
- package/NavGroupContent/package.json +4 -0
- package/NavGroupTrigger/package.json +4 -0
- package/NavSeparator/package.json +4 -0
- package/SubNav/package.json +4 -0
- package/dist/ActionsRoot.css.ts.vanilla-D3wVSxis-CYpQEsYP.js +1 -0
- package/dist/AlertDialogContext-4jVTOnNr.js +1 -0
- package/dist/{AngleMenuButton-Dpu__g4S.js → AngleMenuButton-Cbhk4_28.js} +1 -1
- package/dist/Avatar-DWIh2KLx.js +1 -0
- package/dist/AvatarContext-B0md_fFf.js +1 -0
- package/dist/Backdrop-Cfe6251r.js +1 -0
- package/dist/Badge-DmcpHJCD.js +1 -0
- package/dist/Box-Cp_gAIk4.js +1 -0
- package/dist/Button-CD8w0QEW.js +1 -0
- package/dist/ButtonContext-DQSp_PuM.js +1 -0
- package/dist/Checkbox-CfvO5wo8.js +1 -0
- package/dist/{Combination-DMAK51Pq.js → Combination-Bb-E1y6u.js} +1 -1
- package/dist/Cover-BwU0tIBo.js +1 -0
- package/dist/DialogContext-CDCYN7EY.js +1 -0
- package/dist/Disclosure-DKs6iVBM.js +1 -0
- package/dist/DisclosureContent-d_uypUTd.js +1 -0
- package/dist/{DisclosureContext-iWW1mguA.js → DisclosureContext-Df5U7teG.js} +1 -1
- package/dist/DisclosureTrigger-hC9svxLU.js +1 -0
- package/dist/DropdownMenuContext-BUsGEMCS.js +1 -0
- package/dist/DropdownMenuSubContext-CrCUrnd7.js +1 -0
- package/dist/FieldContext-B9d1QLDw.js +1 -0
- package/dist/{FieldLabel-Dp-VE11y.js → FieldLabel-Cc1qDOyY.js} +1 -1
- package/dist/{Flex-DlDSJZaE.js → Flex-CytjTCh-.js} +1 -1
- package/dist/{Heading-r-WdrPIA.js → Heading-Cw82uQbl.js} +1 -1
- package/dist/Icon-_Qp1KobS.js +1 -0
- package/dist/{IconAngleRight-DXUSfspB.js → IconAngleRight-DL3O23nT.js} +1 -1
- package/dist/{IconCircleInfoSolid-BCz-DMKW.js → IconCircleInfoSolid-BWgltDiF.js} +1 -1
- package/dist/{IconEllipsis-BZFkMJmL.js → IconEllipsis-D5yRtb4z.js} +1 -1
- package/dist/{IconTriangleExclamationSolid-DPQwJPAt.js → IconTriangleExclamationSolid-8THcI08R.js} +1 -1
- package/dist/{IconX-CxQwMY0G.js → IconX-L5EVObs7.js} +1 -1
- package/dist/{Input-CAFRZ4Ig.js → Input-DQtK2n8g.js} +1 -1
- package/dist/{InputAddon-DrnOrM0E.js → InputAddon-DT9k71N4.js} +1 -1
- package/dist/InputContext-DW6PuRPt.js +1 -0
- package/dist/InputControl-D5NOLO_S.js +1 -0
- package/dist/InputControl.css.ts.vanilla-DTNzojK5-co5GYgxJ.js +1 -0
- package/dist/InputRoot-CiY7IKTa.js +1 -0
- package/dist/{Listbox-Cu1ENX7a.js → Listbox-ZQQPGI50.js} +1 -1
- package/dist/ListboxGroupContext-Bcts7LVh.js +1 -0
- package/dist/ListboxItem-BtkwIrP5.js +1 -0
- package/dist/{ListboxItemIndicator-BrK3h153.js → ListboxItemIndicator-CgX0Bcvv.js} +1 -1
- package/dist/ListboxSeparator-BQDnBnU5.js +1 -0
- package/dist/{ListboxSwitchItem-BM5YiM6G.js → ListboxSwitchItem-CbmFDZWJ.js} +1 -1
- package/dist/MenuListbox-DNspTMYO.js +1 -0
- package/dist/ModalContext-CpKmfTWR.js +1 -0
- package/dist/NavGroupContext-CwJu7gy4.js +1 -0
- package/dist/NavItem-BEvyH-Ts.js +1 -0
- package/dist/Paper-COuVdazp.js +1 -0
- package/dist/PopoverContext-BSjQSFEm.js +1 -0
- package/dist/RadioGroupContext-BXnF8715.js +1 -0
- package/dist/{SegmentedControlContext-CCxLEL3U.js → SegmentedControlContext-CIkO_vST.js} +1 -1
- package/dist/Separator-BwrBjgba.js +1 -0
- package/dist/SidebarContext-g4TVmrqd.js +1 -0
- package/dist/Spinner-ex2ciNnZ.js +1 -0
- package/dist/Switch-Hsoeqya6.js +1 -0
- package/dist/Text-C3DWIjk1.js +1 -0
- package/dist/ThemeProvider-CdeLz3nm.js +13 -0
- package/dist/Toast-DFKWfaxK.js +1 -0
- package/dist/{ToastAction-DlgLMk80.js → ToastAction-DMwWd2nv.js} +1 -1
- package/dist/ToastProvider-BT8ZUBNj.js +1 -0
- package/dist/{ToastTitle-YBPWbAOG.js → ToastTitle-CKrZe7ZT.js} +1 -1
- package/dist/ToggleInputHiddenInput-DKKdkjLS.js +1 -0
- package/dist/{Tooltip-CASS5OFi.js → Tooltip-vkzp_RE_.js} +1 -1
- package/dist/{TooltipContent-D4HQjHaH.js → TooltipContent-Beyoehp-.js} +1 -1
- package/dist/TooltipContext-pKXo31TY.js +1 -0
- package/dist/TooltipProvider-C6iuIm13.js +1 -0
- package/dist/{TooltipRoot-qQLOwtym.js → TooltipRoot-Cu2NESWD.js} +1 -1
- package/dist/{TooltipTrigger-BIw3Danp.js → TooltipTrigger-BuBCbI6x.js} +1 -1
- package/dist/Transition-DFKCtz6M.js +1 -0
- package/dist/{TransitionGroup-CZwPFF6r.js → TransitionGroup-CwNSt-D8.js} +1 -1
- 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.d.ts +3 -3
- 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.d.ts +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.d.ts +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/ModalContextProvider.js +1 -1
- package/dist/components/ModalLayer.js +1 -1
- package/dist/components/Nav.js +1 -1
- package/dist/components/NavAccountItem.js +1 -1
- package/dist/components/NavBody.js +1 -1
- package/dist/components/NavFooter.js +1 -1
- package/dist/components/NavGroup.d.ts +34 -0
- package/dist/components/NavGroup.js +1 -0
- package/dist/components/NavGroupContent.d.ts +29 -0
- package/dist/components/NavGroupContent.js +1 -0
- package/dist/components/NavGroupTrigger.d.ts +35 -0
- package/dist/components/NavGroupTrigger.js +1 -0
- 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.d.ts +31 -0
- package/dist/components/NavSeparator.js +1 -0
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Paper.d.ts +1 -1
- package/dist/components/Paper.js +1 -1
- package/dist/components/Popover.js +1 -1
- package/dist/components/PopoverAnchor.js +1 -1
- package/dist/components/PopoverContent.d.ts +1 -1
- package/dist/components/PopoverContent.js +1 -1
- package/dist/components/PopoverTrigger.js +1 -1
- package/dist/components/Progress.js +2 -2
- 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.d.ts +29 -0
- package/dist/components/SubNav.js +1 -0
- 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.d.ts +3 -3
- 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.d.ts +4 -4
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/TooltipContent.d.ts +1 -1
- package/dist/components/TooltipContent.js +1 -1
- package/dist/components/TooltipProvider.js +1 -1
- package/dist/components/TooltipRoot.js +1 -1
- package/dist/components/TooltipTrigger.js +1 -1
- package/dist/components/Transition.d.ts +1 -1
- package/dist/components/Transition.js +1 -1
- package/dist/components/TransitionGroup.js +1 -1
- package/dist/{conditions-MIJg7YDH.js → conditions-sHlEVfSr.js} +1 -1
- package/dist/{decorateChildren-BZ2bA72G.js → decorateChildren-1GnT5Aqm.js} +1 -1
- package/dist/fallbackSpan-263aEOGL.js +1 -0
- package/dist/{index-_GyTHxix.js → index-69tPrqvR.js} +1 -1
- package/dist/{index-wddPHbcf.js → index-BD6qJxJ_.js} +1 -1
- package/dist/index-BZydTn4I.js +1 -0
- package/dist/{index-yjt3k4ng.js → index-BuDubh4d.js} +1 -1
- package/dist/{index-xkT0VVKe.js → index-C8kBpDgU.js} +1 -1
- package/dist/{index-Dlstf2YV.js → index-ChZIWP7V.js} +1 -1
- package/dist/{index-mj83F7eR.js → index-Ct5mAjJn.js} +1 -1
- package/dist/{index-B58oEL7s.js → index-CyR_ysPj.js} +1 -1
- package/dist/{index-xbpQ79U4.js → index-D3aYOJDt.js} +1 -1
- package/dist/{index-B_VrnvBg.js → index-DI5XduKK.js} +1 -1
- package/dist/{index-CQd4fZxx.js → index-DdKzi3G8.js} +1 -1
- package/dist/{index-Bw2pGDIP.js → index-DfRNMAMP.js} +1 -1
- package/dist/{index-DvPhWqKa.js → index-DlCgm6w2.js} +1 -1
- package/dist/{index-8Ap_4zj6.js → index-DoxzGB9i.js} +1 -1
- package/dist/{index-C5Ieq1_n.js → index-Dybun7Nr.js} +1 -1
- package/dist/{index-BCsYw0j3.js → index-HkRAw5sq.js} +1 -1
- package/dist/{index-KND6fT_G.js → index-KA5YxQh6.js} +1 -1
- package/dist/{index-U75gvhFe.js → index-MwMtar-B.js} +1 -1
- package/dist/{index-BoT3wiiN.js → index-NEJS7Nk0.js} +1 -1
- package/dist/{index-g2n1iIXU.js → index-TBoCO2r9.js} +1 -1
- package/dist/index-VQRIDrjF.js +1 -0
- package/dist/index-cwwRtBLW.js +1 -0
- package/dist/{index-W7WQ13pv.js → index-ikrkLx7B.js} +1 -1
- package/dist/{index-C32m2VW3.js → index-oCuTx72x.js} +1 -1
- package/dist/index.d.ts +140 -17
- package/dist/index.js +1 -1
- package/dist/layers.css.ts.vanilla-fo9WwyPs-DfifM7Bq.js +1 -0
- package/dist/{propTypes-DvjbHxCV.js → propTypes-DUIdH7is.js} +1 -1
- package/dist/{register-BVVRhrAp.js → register-e7OIOgVU.js} +2 -2
- package/dist/theme-css-DX4sf6ZH.js +1 -0
- package/dist/{useNestedDialogCount-BBY1C5Oi.js → useNestedDialogCount-BkwGm8Q3.js} +1 -1
- package/dist/{withIcon-CV0vSDbR.js → withIcon-wW4hpoKD.js} +1 -1
- package/package.json +8 -3
- package/dist/ActionsRoot.css.ts.vanilla-BrY6xgez-CLMx6CTJ.js +0 -1
- package/dist/AlertDialogContext-BQQPj43r.js +0 -1
- package/dist/Avatar-B-5aPEVa.js +0 -1
- package/dist/AvatarContext-BaTFcjJc.js +0 -1
- package/dist/Backdrop-BnKgD--1.js +0 -1
- package/dist/Badge-D3aIAdaZ.js +0 -1
- package/dist/Box-f-JjBnIv.js +0 -1
- package/dist/Button-C_Ez5mOU.js +0 -1
- package/dist/ButtonContext-B6QU1BxG.js +0 -1
- package/dist/Checkbox-BicvbNhW.js +0 -1
- package/dist/Cover-B7GZsjOx.js +0 -1
- package/dist/DialogContext-o925nZKL.js +0 -1
- package/dist/DropdownMenuContext-nubwHfiX.js +0 -1
- package/dist/DropdownMenuSubContext-Bc6QnJDj.js +0 -1
- package/dist/FieldContext-D5XgrlZe.js +0 -1
- package/dist/Icon-XpvKDOr2.js +0 -1
- package/dist/InputContext-DTkRuwr1.js +0 -1
- package/dist/InputControl-g0bIqGkG.js +0 -1
- package/dist/InputControl.css.ts.vanilla-Bb512L6B-UCscakMJ.js +0 -1
- package/dist/InputRoot-dSfwOMWi.js +0 -1
- package/dist/ListboxGroupContext-Cjvd2z1h.js +0 -1
- package/dist/ListboxItem-BUj4wKfo.js +0 -1
- package/dist/ListboxSeparator-DNkeT65K.js +0 -1
- package/dist/MenuListbox-Bba2sYtw.js +0 -1
- package/dist/ModalContext-PxF8am4g.js +0 -1
- package/dist/NavItem-CpcGUJJB.js +0 -1
- package/dist/Paper-Bms9kmvd.js +0 -1
- package/dist/PopoverContext-DDWNMZkh.js +0 -1
- package/dist/RadioGroupContext-42b4vqeH.js +0 -1
- package/dist/Separator-rIzJH4Ni.js +0 -1
- package/dist/SidebarContext-BY6ll922.js +0 -1
- package/dist/Spinner-DLwGI9mH.js +0 -1
- package/dist/Switch-DuHgmt9t.js +0 -1
- package/dist/Text-wPSPPcld.js +0 -1
- package/dist/ThemeProvider-mk3aSO4Y.js +0 -13
- package/dist/Toast-BAVmDSnv.js +0 -1
- package/dist/ToastProvider-DpqTCfuC.js +0 -1
- package/dist/ToggleInputHiddenInput-UPpYRz27.js +0 -1
- package/dist/TooltipContext-uqHH5WJ7.js +0 -1
- package/dist/TooltipProvider-XWbNDQCQ.js +0 -1
- package/dist/Transition-B_hgk_6z.js +0 -1
- package/dist/fallbackSpan-1r51oJiK.js +0 -1
- package/dist/index-B76s2QkF.js +0 -1
- package/dist/index-DJZkDuXm.js +0 -1
- package/dist/index-RxKnZQN0.js +0 -1
- package/dist/layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js +0 -1
- package/dist/theme-css-B61lyqMB.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as i,$ as n,W as m,S as I}from"./register-
|
|
1
|
+
import{u as i,$ as n,W as m,S as I}from"./register-e7OIOgVU.js";import{l as P}from"./index-ikrkLx7B.js";import{s as g,m as T}from"./index-TBoCO2r9.js";import{e as f,u as W,v as D,D as q,f as B,p as C,g as E,a as Y,m as j,d as k}from"./index-MwMtar-B.js";import{u as z}from"./index-DXFJDeKK.js";var v="AlertDialog",[G,de]=P(v,[f]),s=f(),A=e=>{const{__scopeAlertDialog:r,...t}=e,a=s(r);return i(W,{...a,...t,modal:!0})};A.displayName=v;var H="AlertDialogTrigger",y=n((e,r)=>{const{__scopeAlertDialog:t,...a}=e,o=s(t);return i(k,{...o,...a,ref:r})});y.displayName=H;var J="AlertDialogPortal",h=e=>{const{__scopeAlertDialog:r,...t}=e,a=s(r);return i(B,{...a,...t})};h.displayName=J;var K="AlertDialogOverlay",_=n((e,r)=>{const{__scopeAlertDialog:t,...a}=e,o=s(t);return i(C,{...o,...a,ref:r})});_.displayName=K;var l="AlertDialogContent",[L,Q]=G(l),$=n((e,r)=>{const{__scopeAlertDialog:t,children:a,...o}=e,d=s(t),u=m(null),F=g(r,u),p=m(null);return i(Y,{contentName:l,titleName:b,docsSlug:"alert-dialog",children:i(L,{scope:t,cancelRef:p,children:i(E,{role:"alertdialog",...d,...o,ref:F,onOpenAutoFocus:z(o.onOpenAutoFocus,c=>{c.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[i(T,{children:a}),i(V,{contentRef:u})]})})})});$.displayName=l;var b="AlertDialogTitle",N=n((e,r)=>{const{__scopeAlertDialog:t,...a}=e,o=s(t);return i(j,{...o,...a,ref:r})});N.displayName=b;var O="AlertDialogDescription",w=n((e,r)=>{const{__scopeAlertDialog:t,...a}=e,o=s(t);return i(q,{...o,...a,ref:r})});w.displayName=O;var U="AlertDialogAction",R=n((e,r)=>{const{__scopeAlertDialog:t,...a}=e,o=s(t);return i(D,{...o,...a,ref:r})});R.displayName=U;var S="AlertDialogCancel",x=n((e,r)=>{const{__scopeAlertDialog:t,...a}=e,{cancelRef:o}=Q(S,t),d=s(t),u=g(r,o);return i(D,{...d,...a,ref:u})});x.displayName=S;var V=({contentRef:e})=>{const r=`\`${l}\` requires a description for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
You can add a description to the \`${l}\` by passing a \`${O}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as R,W as g,S as F,w as W,u as c,T as M,H as ge,K as Pe,D as ne}from"./register-BVVRhrAp.js";import{u as b}from"./index-DXFJDeKK.js";import{s as ae}from"./index-g2n1iIXU.js";import{L as be}from"./index-mj83F7eR.js";import{l as Ce}from"./index-W7WQ13pv.js";import{J as Re,G as De}from"./index-C5Ieq1_n.js";import{o as Le}from"./index-8Ap_4zj6.js";import{M as _e}from"./index-B_VrnvBg.js";import{t as N,v as Fe}from"./index-xbpQ79U4.js";import{c as q}from"./index-BoT3wiiN.js";import{v as Ne}from"./index-wddPHbcf.js";import{o as Se}from"./index-B76s2QkF.js";import{r as se}from"./index-Dlstf2YV.js";var Y="ToastProvider",[J,$e,Ae]=be("Toast"),[ie,mt]=Ce("Toast",[Ae]),[Ie,G]=ie(Y),ce=t=>{const{__scopeToast:r,label:e="Notification",duration:o=5e3,swipeDirection:i="right",swipeThreshold:u=50,children:p}=t,[m,y]=M(null),[s,h]=M(0),E=g(!1),S=g(!1);return e.trim()||console.error(`Invalid prop \`label\` supplied to \`${Y}\`. Expected non-empty \`string\`.`),c(J.Provider,{scope:r,children:c(Ie,{scope:r,label:e,duration:o,swipeDirection:i,swipeThreshold:u,toastCount:s,viewport:m,onViewportChange:y,onToastAdd:W(()=>h(L=>L+1),[]),onToastRemove:W(()=>h(L=>L-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:S,children:p})})};ce.displayName=Y;var de="ToastViewport",Ke=["F8"],Q="toast.viewportPause",Z="toast.viewportResume",ue=R((t,r)=>{const{__scopeToast:e,hotkey:o=Ke,label:i="Notifications ({hotkey})",...u}=t,p=G(de,e),m=$e(e),y=g(null),s=g(null),h=g(null),E=g(null),S=ae(r,E,p.onViewportChange),L=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=p.toastCount>0;F(()=>{const a=f=>{o.length!==0&&o.every(l=>f[l]||f.code===l)&&E.current?.focus()};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[o]),F(()=>{const a=y.current,f=E.current;if(_&&a&&f){const l=()=>{if(!p.isClosePausedRef.current){const w=new CustomEvent(Q);f.dispatchEvent(w),p.isClosePausedRef.current=!0}},v=()=>{if(p.isClosePausedRef.current){const w=new CustomEvent(Z);f.dispatchEvent(w),p.isClosePausedRef.current=!1}},T=w=>{!a.contains(w.relatedTarget)&&v()},x=()=>{a.contains((()=>{let w=document.activeElement;for(;w?.shadowRoot;)w=w.shadowRoot.activeElement;return w})())||v()};return a.addEventListener("focusin",l),a.addEventListener("focusout",T),a.addEventListener("pointermove",l),a.addEventListener("pointerleave",x),window.addEventListener("blur",l),window.addEventListener("focus",v),()=>{a.removeEventListener("focusin",l),a.removeEventListener("focusout",T),a.removeEventListener("pointermove",l),a.removeEventListener("pointerleave",x),window.removeEventListener("blur",l),window.removeEventListener("focus",v)}}},[_,p.isClosePausedRef]);const d=W(({tabbingDirection:a})=>{const f=m().map(l=>{const v=l.ref.current,T=[v,...Ze(v)];return a==="forwards"?T:T.reverse()});return(a==="forwards"?f.reverse():f).flat()},[m]);return F(()=>{const a=E.current;if(a){const f=l=>{const v=l.altKey||l.ctrlKey||l.metaKey;if(l.key==="Tab"&&!v){const T=(()=>{let P=document.activeElement;for(;P?.shadowRoot;)P=P.shadowRoot.activeElement;return P})(),x=l.shiftKey;if(l.target===a&&x){s.current?.focus();return}const w=d({tabbingDirection:x?"backwards":"forwards"}),$=w.findIndex(P=>P===T);B(w.slice($+1))?l.preventDefault():x?s.current?.focus():h.current?.focus()}};return a.addEventListener("keydown",f),()=>a.removeEventListener("keydown",f)}},[m,d]),c(Re,{ref:y,role:"region","aria-label":i.replace("{hotkey}",L),tabIndex:-1,style:{pointerEvents:_?void 0:"none"},children:[_&&c(j,{ref:s,onFocusFromOutsideViewport:()=>{const a=d({tabbingDirection:"forwards"});B(a)}}),c(J.Slot,{scope:e,children:c(N.ol,{tabIndex:-1,...u,ref:S})}),_&&c(j,{ref:h,onFocusFromOutsideViewport:()=>{const a=d({tabbingDirection:"backwards"});B(a)}})]})});ue.displayName=de;var le="ToastFocusProxy",j=R((t,r)=>{const{__scopeToast:e,onFocusFromOutsideViewport:o,...i}=t,u=G(le,e);return c(se,{"aria-hidden":!0,tabIndex:0,...i,ref:r,style:{position:"fixed"},onFocus:p=>{const m=p.relatedTarget;!u.viewport?.contains(m)&&o()}})});j.displayName=le;var U="Toast",Me="toast.swipeStart",ke="toast.swipeMove",Oe="toast.swipeCancel",Ve="toast.swipeEnd",pe=R((t,r)=>{const{forceMount:e,open:o,defaultOpen:i,onOpenChange:u,...p}=t,[m=!0,y]=Ne({prop:o,defaultProp:i,onChange:u});return c(_e,{present:e||m,children:c(Ge,{open:m,...p,ref:r,onClose:()=>y(!1),onPause:q(t.onPause),onResume:q(t.onResume),onSwipeStart:b(t.onSwipeStart,s=>{s.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:b(t.onSwipeMove,s=>{const{x:h,y:E}=s.detail.delta;s.currentTarget.setAttribute("data-swipe","move"),s.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${h}px`),s.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:b(t.onSwipeCancel,s=>{s.currentTarget.setAttribute("data-swipe","cancel"),s.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),s.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),s.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),s.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:b(t.onSwipeEnd,s=>{const{x:h,y:E}=s.detail.delta;s.currentTarget.setAttribute("data-swipe","end"),s.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),s.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),s.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${h}px`),s.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),y(!1)})})})});pe.displayName=U;var[We,qe]=ie(U,{onClose(){}}),Ge=R((t,r)=>{const{__scopeToast:e,type:o="foreground",duration:i,open:u,onClose:p,onEscapeKeyDown:m,onPause:y,onResume:s,onSwipeStart:h,onSwipeMove:E,onSwipeCancel:S,onSwipeEnd:L,..._}=t,d=G(U,e),[a,f]=M(null),l=ae(r,n=>f(n)),v=g(null),T=g(null),x=i||d.duration,w=g(0),$=g(x),P=g(0),{onToastAdd:ee,onToastRemove:te}=d,A=q(()=>{a?.contains((()=>{let n=document.activeElement;for(;n?.shadowRoot;)n=n.shadowRoot.activeElement;return n})())&&d.viewport?.focus(),p()}),k=W(n=>{!n||n===1/0||(window.clearTimeout(P.current),w.current=new Date().getTime(),P.current=window.setTimeout(A,n))},[A]);F(()=>{const n=d.viewport;if(n){const C=()=>{k($.current),s?.()},D=()=>{const I=new Date().getTime()-w.current;$.current=$.current-I,window.clearTimeout(P.current),y?.()};return n.addEventListener(Q,D),n.addEventListener(Z,C),()=>{n.removeEventListener(Q,D),n.removeEventListener(Z,C)}}},[d.viewport,x,y,s,k]),F(()=>{u&&!d.isClosePausedRef.current&&k(x)},[u,x,d.isClosePausedRef,k]),F(()=>(ee(),()=>te()),[ee,te]);const oe=ge(()=>a?ye(a):null,[a]);return d.viewport?c(ne,{children:[oe&&c(Ue,{__scopeToast:e,role:"status","aria-live":o==="foreground"?"assertive":"polite","aria-atomic":!0,children:oe}),c(We,{scope:e,onClose:A,children:Pe(c(J.ItemSlot,{scope:e,children:c(De,{asChild:!0,onEscapeKeyDown:b(m,()=>{d.isFocusedToastEscapeKeyDownRef.current||A(),d.isFocusedToastEscapeKeyDownRef.current=!1}),children:c(N.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":d.swipeDirection,..._,ref:l,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:b(t.onKeyDown,n=>{n.key==="Escape"&&(m?.(n.nativeEvent),n.nativeEvent.defaultPrevented||(d.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:b(t.onPointerDown,n=>{n.button===0&&(v.current={x:n.clientX,y:n.clientY})}),onPointerMove:b(t.onPointerMove,n=>{if(!v.current)return;const C=n.clientX-v.current.x,D=n.clientY-v.current.y,I=Boolean(T.current),K=["left","right"].includes(d.swipeDirection),O=["left","up"].includes(d.swipeDirection)?Math.min:Math.max,he=K?O(0,C):0,xe=K?0:O(0,D),H=n.pointerType==="touch"?10:2,V={x:he,y:xe},re={originalEvent:n,delta:V};I?(T.current=V,X(ke,E,re,{discrete:!1})):Ee(V,d.swipeDirection,H)?(T.current=V,X(Me,h,re,{discrete:!1}),n.target.setPointerCapture(n.pointerId)):(Math.abs(C)>H||Math.abs(D)>H)&&(v.current=null)}),onPointerUp:b(t.onPointerUp,n=>{const C=T.current,D=n.target;if(D.hasPointerCapture(n.pointerId)&&D.releasePointerCapture(n.pointerId),T.current=null,v.current=null,C){const I=n.currentTarget,K={originalEvent:n,delta:C};Ee(C,d.swipeDirection,d.swipeThreshold)?X(Ve,L,K,{discrete:!0}):X(Oe,S,K,{discrete:!0}),I.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),d.viewport)})]}):null}),Ue=t=>{const{__scopeToast:r,children:e,...o}=t,i=G(U,r),[u,p]=M(!1),[m,y]=M(!1);return Je(()=>p(!0)),F(()=>{const s=window.setTimeout(()=>y(!0),1e3);return()=>window.clearTimeout(s)},[]),m?null:c(Le,{asChild:!0,children:c(se,{...o,children:u&&c(ne,{children:[i.label," ",e]})})})},Xe="ToastTitle",ve=R((t,r)=>{const{__scopeToast:e,...o}=t;return c(N.div,{...o,ref:r})});ve.displayName=Xe;var He="ToastDescription",Ye=R((t,r)=>{const{__scopeToast:e,...o}=t;return c(N.div,{...o,ref:r})});Ye.displayName=He;var we="ToastAction",me=R((t,r)=>{const{altText:e,...o}=t;return e.trim()?c(Te,{altText:e,asChild:!0,children:c(z,{...o,ref:r})}):(console.error(`Invalid prop \`altText\` supplied to \`${we}\`. Expected non-empty \`string\`.`),null)});me.displayName=we;var fe="ToastClose",z=R((t,r)=>{const{__scopeToast:e,...o}=t,i=qe(fe,e);return c(Te,{asChild:!0,children:c(N.button,{type:"button",...o,ref:r,onClick:b(t.onClick,i.onClose)})})});z.displayName=fe;var Te=R((t,r)=>{const{__scopeToast:e,altText:o,...i}=t;return c(N.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...i,ref:r})});function ye(t){const r=[];return Array.from(t.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&r.push(e.textContent),Qe(e)){const o=e.ariaHidden||e.hidden||e.style.display==="none",i=e.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const u=e.dataset.radixToastAnnounceAlt;u&&r.push(u)}else r.push(...ye(e))}}),r}function X(t,r,e,{discrete:o}){const i=e.originalEvent.currentTarget,u=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});r&&i.addEventListener(t,r,{once:!0}),o?Fe(i,u):i.dispatchEvent(u)}var Ee=(t,r,e=0)=>{const o=Math.abs(t.x),i=Math.abs(t.y),u=o>i;return r==="left"||r==="right"?u&&o>e:!u&&i>e};function Je(t=()=>{}){const r=q(t);Se(()=>{let e=0,o=0;return e=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(r)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(o)}},[r])}function Qe(t){return t.nodeType===t.ELEMENT_NODE}function Ze(t){const r=[],e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;e.nextNode();)r.push(e.currentNode);return r}function B(t){const r=(()=>{let e=document.activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e})();return t.some(e=>e===r?!0:(e.focus(),(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})()!==r))}var je=ue,ze=pe,Be=ve,et=me,tt=z;export{Be as G,et as Q,tt as Z,ze as a,je as q,ce as z};
|
|
1
|
+
import{$ as R,W as g,S as F,w as W,u as c,T as M,H as ge,K as Pe,D as ne}from"./register-e7OIOgVU.js";import{u as b}from"./index-DXFJDeKK.js";import{s as ae}from"./index-TBoCO2r9.js";import{L as be}from"./index-Ct5mAjJn.js";import{l as Ce}from"./index-ikrkLx7B.js";import{J as Re,G as De}from"./index-Dybun7Nr.js";import{o as Le}from"./index-DoxzGB9i.js";import{M as _e}from"./index-DI5XduKK.js";import{t as N,v as Fe}from"./index-D3aYOJDt.js";import{c as q}from"./index-NEJS7Nk0.js";import{v as Ne}from"./index-BD6qJxJ_.js";import{o as Se}from"./index-BZydTn4I.js";import{r as se}from"./index-ChZIWP7V.js";var Y="ToastProvider",[J,$e,Ae]=be("Toast"),[ie,mt]=Ce("Toast",[Ae]),[Ie,G]=ie(Y),ce=t=>{const{__scopeToast:r,label:e="Notification",duration:o=5e3,swipeDirection:i="right",swipeThreshold:u=50,children:p}=t,[m,y]=M(null),[s,h]=M(0),E=g(!1),S=g(!1);return e.trim()||console.error(`Invalid prop \`label\` supplied to \`${Y}\`. Expected non-empty \`string\`.`),c(J.Provider,{scope:r,children:c(Ie,{scope:r,label:e,duration:o,swipeDirection:i,swipeThreshold:u,toastCount:s,viewport:m,onViewportChange:y,onToastAdd:W(()=>h(L=>L+1),[]),onToastRemove:W(()=>h(L=>L-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:S,children:p})})};ce.displayName=Y;var de="ToastViewport",Ke=["F8"],Q="toast.viewportPause",Z="toast.viewportResume",ue=R((t,r)=>{const{__scopeToast:e,hotkey:o=Ke,label:i="Notifications ({hotkey})",...u}=t,p=G(de,e),m=$e(e),y=g(null),s=g(null),h=g(null),E=g(null),S=ae(r,E,p.onViewportChange),L=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=p.toastCount>0;F(()=>{const a=f=>{o.length!==0&&o.every(l=>f[l]||f.code===l)&&E.current?.focus()};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[o]),F(()=>{const a=y.current,f=E.current;if(_&&a&&f){const l=()=>{if(!p.isClosePausedRef.current){const w=new CustomEvent(Q);f.dispatchEvent(w),p.isClosePausedRef.current=!0}},v=()=>{if(p.isClosePausedRef.current){const w=new CustomEvent(Z);f.dispatchEvent(w),p.isClosePausedRef.current=!1}},T=w=>{!a.contains(w.relatedTarget)&&v()},x=()=>{a.contains((()=>{let w=document.activeElement;for(;w?.shadowRoot;)w=w.shadowRoot.activeElement;return w})())||v()};return a.addEventListener("focusin",l),a.addEventListener("focusout",T),a.addEventListener("pointermove",l),a.addEventListener("pointerleave",x),window.addEventListener("blur",l),window.addEventListener("focus",v),()=>{a.removeEventListener("focusin",l),a.removeEventListener("focusout",T),a.removeEventListener("pointermove",l),a.removeEventListener("pointerleave",x),window.removeEventListener("blur",l),window.removeEventListener("focus",v)}}},[_,p.isClosePausedRef]);const d=W(({tabbingDirection:a})=>{const f=m().map(l=>{const v=l.ref.current,T=[v,...Ze(v)];return a==="forwards"?T:T.reverse()});return(a==="forwards"?f.reverse():f).flat()},[m]);return F(()=>{const a=E.current;if(a){const f=l=>{const v=l.altKey||l.ctrlKey||l.metaKey;if(l.key==="Tab"&&!v){const T=(()=>{let P=document.activeElement;for(;P?.shadowRoot;)P=P.shadowRoot.activeElement;return P})(),x=l.shiftKey;if(l.target===a&&x){s.current?.focus();return}const w=d({tabbingDirection:x?"backwards":"forwards"}),$=w.findIndex(P=>P===T);B(w.slice($+1))?l.preventDefault():x?s.current?.focus():h.current?.focus()}};return a.addEventListener("keydown",f),()=>a.removeEventListener("keydown",f)}},[m,d]),c(Re,{ref:y,role:"region","aria-label":i.replace("{hotkey}",L),tabIndex:-1,style:{pointerEvents:_?void 0:"none"},children:[_&&c(j,{ref:s,onFocusFromOutsideViewport:()=>{const a=d({tabbingDirection:"forwards"});B(a)}}),c(J.Slot,{scope:e,children:c(N.ol,{tabIndex:-1,...u,ref:S})}),_&&c(j,{ref:h,onFocusFromOutsideViewport:()=>{const a=d({tabbingDirection:"backwards"});B(a)}})]})});ue.displayName=de;var le="ToastFocusProxy",j=R((t,r)=>{const{__scopeToast:e,onFocusFromOutsideViewport:o,...i}=t,u=G(le,e);return c(se,{"aria-hidden":!0,tabIndex:0,...i,ref:r,style:{position:"fixed"},onFocus:p=>{const m=p.relatedTarget;!u.viewport?.contains(m)&&o()}})});j.displayName=le;var U="Toast",Me="toast.swipeStart",ke="toast.swipeMove",Oe="toast.swipeCancel",Ve="toast.swipeEnd",pe=R((t,r)=>{const{forceMount:e,open:o,defaultOpen:i,onOpenChange:u,...p}=t,[m=!0,y]=Ne({prop:o,defaultProp:i,onChange:u});return c(_e,{present:e||m,children:c(Ge,{open:m,...p,ref:r,onClose:()=>y(!1),onPause:q(t.onPause),onResume:q(t.onResume),onSwipeStart:b(t.onSwipeStart,s=>{s.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:b(t.onSwipeMove,s=>{const{x:h,y:E}=s.detail.delta;s.currentTarget.setAttribute("data-swipe","move"),s.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${h}px`),s.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:b(t.onSwipeCancel,s=>{s.currentTarget.setAttribute("data-swipe","cancel"),s.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),s.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),s.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),s.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:b(t.onSwipeEnd,s=>{const{x:h,y:E}=s.detail.delta;s.currentTarget.setAttribute("data-swipe","end"),s.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),s.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),s.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${h}px`),s.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),y(!1)})})})});pe.displayName=U;var[We,qe]=ie(U,{onClose(){}}),Ge=R((t,r)=>{const{__scopeToast:e,type:o="foreground",duration:i,open:u,onClose:p,onEscapeKeyDown:m,onPause:y,onResume:s,onSwipeStart:h,onSwipeMove:E,onSwipeCancel:S,onSwipeEnd:L,..._}=t,d=G(U,e),[a,f]=M(null),l=ae(r,n=>f(n)),v=g(null),T=g(null),x=i||d.duration,w=g(0),$=g(x),P=g(0),{onToastAdd:ee,onToastRemove:te}=d,A=q(()=>{a?.contains((()=>{let n=document.activeElement;for(;n?.shadowRoot;)n=n.shadowRoot.activeElement;return n})())&&d.viewport?.focus(),p()}),k=W(n=>{!n||n===1/0||(window.clearTimeout(P.current),w.current=new Date().getTime(),P.current=window.setTimeout(A,n))},[A]);F(()=>{const n=d.viewport;if(n){const C=()=>{k($.current),s?.()},D=()=>{const I=new Date().getTime()-w.current;$.current=$.current-I,window.clearTimeout(P.current),y?.()};return n.addEventListener(Q,D),n.addEventListener(Z,C),()=>{n.removeEventListener(Q,D),n.removeEventListener(Z,C)}}},[d.viewport,x,y,s,k]),F(()=>{u&&!d.isClosePausedRef.current&&k(x)},[u,x,d.isClosePausedRef,k]),F(()=>(ee(),()=>te()),[ee,te]);const oe=ge(()=>a?ye(a):null,[a]);return d.viewport?c(ne,{children:[oe&&c(Ue,{__scopeToast:e,role:"status","aria-live":o==="foreground"?"assertive":"polite","aria-atomic":!0,children:oe}),c(We,{scope:e,onClose:A,children:Pe(c(J.ItemSlot,{scope:e,children:c(De,{asChild:!0,onEscapeKeyDown:b(m,()=>{d.isFocusedToastEscapeKeyDownRef.current||A(),d.isFocusedToastEscapeKeyDownRef.current=!1}),children:c(N.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":d.swipeDirection,..._,ref:l,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:b(t.onKeyDown,n=>{n.key==="Escape"&&(m?.(n.nativeEvent),n.nativeEvent.defaultPrevented||(d.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:b(t.onPointerDown,n=>{n.button===0&&(v.current={x:n.clientX,y:n.clientY})}),onPointerMove:b(t.onPointerMove,n=>{if(!v.current)return;const C=n.clientX-v.current.x,D=n.clientY-v.current.y,I=Boolean(T.current),K=["left","right"].includes(d.swipeDirection),O=["left","up"].includes(d.swipeDirection)?Math.min:Math.max,he=K?O(0,C):0,xe=K?0:O(0,D),H=n.pointerType==="touch"?10:2,V={x:he,y:xe},re={originalEvent:n,delta:V};I?(T.current=V,X(ke,E,re,{discrete:!1})):Ee(V,d.swipeDirection,H)?(T.current=V,X(Me,h,re,{discrete:!1}),n.target.setPointerCapture(n.pointerId)):(Math.abs(C)>H||Math.abs(D)>H)&&(v.current=null)}),onPointerUp:b(t.onPointerUp,n=>{const C=T.current,D=n.target;if(D.hasPointerCapture(n.pointerId)&&D.releasePointerCapture(n.pointerId),T.current=null,v.current=null,C){const I=n.currentTarget,K={originalEvent:n,delta:C};Ee(C,d.swipeDirection,d.swipeThreshold)?X(Ve,L,K,{discrete:!0}):X(Oe,S,K,{discrete:!0}),I.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),d.viewport)})]}):null}),Ue=t=>{const{__scopeToast:r,children:e,...o}=t,i=G(U,r),[u,p]=M(!1),[m,y]=M(!1);return Je(()=>p(!0)),F(()=>{const s=window.setTimeout(()=>y(!0),1e3);return()=>window.clearTimeout(s)},[]),m?null:c(Le,{asChild:!0,children:c(se,{...o,children:u&&c(ne,{children:[i.label," ",e]})})})},Xe="ToastTitle",ve=R((t,r)=>{const{__scopeToast:e,...o}=t;return c(N.div,{...o,ref:r})});ve.displayName=Xe;var He="ToastDescription",Ye=R((t,r)=>{const{__scopeToast:e,...o}=t;return c(N.div,{...o,ref:r})});Ye.displayName=He;var we="ToastAction",me=R((t,r)=>{const{altText:e,...o}=t;return e.trim()?c(Te,{altText:e,asChild:!0,children:c(z,{...o,ref:r})}):(console.error(`Invalid prop \`altText\` supplied to \`${we}\`. Expected non-empty \`string\`.`),null)});me.displayName=we;var fe="ToastClose",z=R((t,r)=>{const{__scopeToast:e,...o}=t,i=qe(fe,e);return c(Te,{asChild:!0,children:c(N.button,{type:"button",...o,ref:r,onClick:b(t.onClick,i.onClose)})})});z.displayName=fe;var Te=R((t,r)=>{const{__scopeToast:e,altText:o,...i}=t;return c(N.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...i,ref:r})});function ye(t){const r=[];return Array.from(t.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&r.push(e.textContent),Qe(e)){const o=e.ariaHidden||e.hidden||e.style.display==="none",i=e.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const u=e.dataset.radixToastAnnounceAlt;u&&r.push(u)}else r.push(...ye(e))}}),r}function X(t,r,e,{discrete:o}){const i=e.originalEvent.currentTarget,u=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});r&&i.addEventListener(t,r,{once:!0}),o?Fe(i,u):i.dispatchEvent(u)}var Ee=(t,r,e=0)=>{const o=Math.abs(t.x),i=Math.abs(t.y),u=o>i;return r==="left"||r==="right"?u&&o>e:!u&&i>e};function Je(t=()=>{}){const r=q(t);Se(()=>{let e=0,o=0;return e=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(r)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(o)}},[r])}function Qe(t){return t.nodeType===t.ELEMENT_NODE}function Ze(t){const r=[],e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;e.nextNode();)r.push(e.currentNode);return r}function B(t){const r=(()=>{let e=document.activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e})();return t.some(e=>e===r?!0:(e.focus(),(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})()!==r))}var je=ue,ze=pe,Be=ve,et=me,tt=z;export{Be as G,et as Q,tt as Z,ze as a,je as q,ce as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{W as p,u as a,w as K,$ as u,d as L,S as y,D as F}from"./register-
|
|
1
|
+
import{W as p,u as a,w as K,$ as u,d as L,S as y,D as F}from"./register-e7OIOgVU.js";import{u as f}from"./index-DXFJDeKK.js";import{f as U,s as _}from"./index-TBoCO2r9.js";import{l as V,P as Z}from"./index-ikrkLx7B.js";import{n as $}from"./index-cwwRtBLW.js";import{v as J}from"./index-BD6qJxJ_.js";import{p as Q}from"./index-Dybun7Nr.js";import{h as X,y as Y}from"./index-oCuTx72x.js";import{o as ee}from"./index-DoxzGB9i.js";import{M as I}from"./index-DI5XduKK.js";import{t as g}from"./index-D3aYOJDt.js";import{o as oe,a as te}from"./Combination-Bb-E1y6u.js";var b="Dialog",[M,ne]=V(b),[re,c]=M(b),P=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:r,onOpenChange:o,modal:s=!0}=e,l=p(null),m=p(null),[h=!1,v]=J({prop:i,defaultProp:r,onChange:o});return a(re,{scope:t,triggerRef:l,contentRef:m,contentId:$(),titleId:$(),descriptionId:$(),open:h,onOpenChange:v,onOpenToggle:K(()=>v(H=>!H),[v]),modal:s,children:n})};P.displayName=b;var A="DialogTrigger",R=u((e,t)=>{const{__scopeDialog:n,...i}=e,r=c(A,n),o=_(t,r.triggerRef);return a(g.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":N(r.open),...i,ref:o,onClick:f(e.onClick,r.onOpenToggle)})});R.displayName=A;var O="DialogPortal",[ie,w]=M(O,{forceMount:void 0}),E=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:r}=e,o=c(O,t);return a(ie,{scope:t,forceMount:n,children:L.map(i,s=>a(I,{present:n||o.open,children:a(ee,{asChild:!0,container:r,children:s})}))})};E.displayName=O;var D="DialogOverlay",T=u((e,t)=>{const n=w(D,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,o=c(D,e.__scopeDialog);return o.modal?a(I,{present:i||o.open,children:a(ae,{...r,ref:t})}):null});T.displayName=D;var ae=u((e,t)=>{const{__scopeDialog:n,...i}=e,r=c(D,n);return a(oe,{as:U,allowPinchZoom:!0,shards:[r.contentRef],children:a(g.div,{"data-state":N(r.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),d="DialogContent",W=u((e,t)=>{const n=w(d,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,o=c(d,e.__scopeDialog);return a(I,{present:i||o.open,children:o.modal?a(se,{...r,ref:t}):a(le,{...r,ref:t})})});W.displayName=d;var se=u((e,t)=>{const n=c(d,e.__scopeDialog),i=p(null),r=_(t,n.contentRef,i);return y(()=>{const o=i.current;if(o)return X(o)},[]),a(k,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:f(e.onCloseAutoFocus,o=>{o.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:f(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&o.preventDefault()}),onFocusOutside:f(e.onFocusOutside,o=>o.preventDefault())})}),le=u((e,t)=>{const n=c(d,e.__scopeDialog),i=p(!1),r=p(!1);return a(k,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(i.current||n.triggerRef.current?.focus(),o.preventDefault()),i.current=!1,r.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(i.current=!0,o.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const s=o.target;n.triggerRef.current?.contains(s)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&r.current&&o.preventDefault()}})}),k=u((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:o,...s}=e,l=c(d,n),m=p(null),h=_(t,m);return te(),a(F,{children:[a(Y,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:o,children:a(Q,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":N(l.open),...s,ref:h,onDismiss:()=>l.onOpenChange(!1)})}),a(F,{children:[a(ue,{titleId:l.titleId}),a(pe,{contentRef:m,descriptionId:l.descriptionId})]})]})}),C="DialogTitle",S=u((e,t)=>{const{__scopeDialog:n,...i}=e,r=c(C,n);return a(g.h2,{id:r.titleId,...i,ref:t})});S.displayName=C;var x="DialogDescription",B=u((e,t)=>{const{__scopeDialog:n,...i}=e,r=c(x,n);return a(g.p,{id:r.descriptionId,...i,ref:t})});B.displayName=x;var j="DialogClose",q=u((e,t)=>{const{__scopeDialog:n,...i}=e,r=c(j,n);return a(g.button,{type:"button",...i,ref:t,onClick:f(e.onClick,()=>r.onOpenChange(!1))})});q.displayName=j;function N(e){return e?"open":"closed"}var z="DialogTitleWarning",[ce,G]=Z(z,{contentName:d,titleName:C,docsSlug:"dialog"}),ue=({titleId:e})=>{const t=G(z),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{W as c,H as o,S as e}from"./register-
|
|
1
|
+
import{W as c,H as o,S as e}from"./register-e7OIOgVU.js";function u(r){const t=c(r);return e(()=>{t.current=r}),o(()=>(...n)=>t.current?.(...n),[])}export{u as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as O,$ as y,d as c,v as s,u as f,l as d,D as h}from"./register-
|
|
1
|
+
import{w as O,$ as y,d as c,v as s,u as f,l as d,D as h}from"./register-e7OIOgVU.js";function g(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function u(...e){return t=>{let n=!1;const o=e.map(r=>{const i=g(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():g(e[r],null)}}}}function W(...e){return O(u(...e),e)}var m=y((e,t)=>{const{children:n,...o}=e,r=c.toArray(n),i=r.find(j);if(i){const l=i.props.children,R=r.map(a=>a===i?c.count(l)>1?c.only(null):s(l)?l.props.children:null:a);return f(p,{...o,ref:t,children:s(l)?d(l,void 0,R):null})}return f(p,{...o,ref:t,children:n})});m.displayName="Slot";var p=y((e,t)=>{const{children:n,...o}=e;if(s(n)){const r=D(n),i=w(o,n.props);return n.type!==h&&(i.ref=t?u(t,r):r),d(n,i)}return c.count(n)>1?c.only(null):null});p.displayName="SlotClone";var v=({children:e})=>f(h,{children:e});function j(e){return s(e)&&e.type===v}function w(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{i(...l),r(...l)}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function D(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}export{u as a,m as f,v as m,W as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const n=l=>`${parseFloat((parseFloat(l.slice(0,-2))/16).toFixed(3))}rem`,t={xs:n("2px"),sm:n("4px"),md:n("6px"),lg:n("8px"),xl:n("12px"),full:"9999px"},u={sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"},e={"blue.100":"#C6DBFA","blue.200":"#A1C2F7","blue.300":"#7BAAF4","blue.500":"#2F7AEE","blue.600":"#115DD4","blue.700":"#0D46A0","blue.800":"#09306D","blue.900":"#051939","brand.50":"#F0F3FF","brand.200":"#B3C3FF","brand.300":"#6A8FFC","brand.400":"#2E66F7","brand.500":"#0037FF","brand.600":"#002CCC","brand.700":"#002894","brand.800":"#001666","brand.900":"#000B33","green.100":"#D1F0E1","green.200":"#A5E1C3","green.300":"#7CD2A7","green.400":"#5AC58A","green.500":"#03A65D","green.600":"#038047","green.700":"#24663E","green.800":"#17492B","green.900":"#082415","neutral.00":"#FFFFFF","neutral.50":"#F9FAFC","neutral.75":"#F5F6FA","neutral.100":"#E9EDF5","neutral.150":"#DADFEB","neutral.200":"#CACFDC","neutral.300":"#B8BECB","neutral.500":"#838DA4","neutral.600":"#66708C","neutral.700":"#4F576E","neutral.800":"#2E3442","neutral.900":"#1C212B","neutral.1000":"#1C2029","neutral.1100":"#171A23","neutral.1200":"#091E42","neutral.50/6":"#F9FAFC0F","neutral.50/12":"#F9FAFC1F","neutral.50/18":"#F9FAFC2E","neutral.50/32":"#F9FAFC52","neutral.1200/4":"#091E420A","neutral.1200/8":"#091E4214","neutral.1200/32":"#091E4252","purple.100":"#E5DCF4","purple.500":"#693AB6","purple.600":"#532E8F","purple.700":"#412470","red.50":"#FFF7F7","red.100":"#FFD7D7","red.200":"#FFB4B4","red.300":"#FC8B8B","red.400":"#F64F4F","red.500":"#CC1616","red.600":"#B21313","red.700":"#911D1D","red.800":"#601313","red.900":"#300A0A","yellow.100":"#FEF1C6","yellow.200":"#FEDF88","yellow.300":"#FFC84B","yellow.400":"#FDB022","yellow.500":"#F79008","yellow.600":"#DC6903","yellow.700":"#B54707","yellow.800":"#7A2E0D","yellow.900":"#4E1D09"},r=(l,a)=>`light-dark(${l}, ${a})`,o={"bg.accent":r(e["brand.500"],e["brand.400"]),"bg.accent.hovered":r(e["brand.600"],e["brand.400"]),"bg.accent.light":r(e["brand.200"],e["brand.800"]),"bg.accent.pressed":r(e["brand.700"],e["brand.600"]),"bg.accent.subtle":r(e["brand.50"],e["brand.900"]),"bg.avatar.neutral":r(e["neutral.100"],e["neutral.800"]),"bg.avatar.purple":r(e["purple.100"],e["purple.700"]),"bg.default":r(e["neutral.00"],e["neutral.1000"]),"bg.default.hovered":r(e["neutral.1200/4"],e["neutral.50/6"]),"bg.default.inverse":r(e["neutral.800"],e["neutral.100"]),"bg.default.inverse.hovered":r(e["neutral.900"],e["neutral.200"]),"bg.default.inverse.pressed":r(e["neutral.1000"],e["neutral.300"]),"bg.default.pressed":r(e["neutral.1200/8"],e["neutral.50/12"]),"bg.error":r(e["red.500"],e["red.500"]),"bg.error.hovered":r(e["red.600"],e["red.400"]),"bg.error.light":r(e["red.200"],e["red.700"]),"bg.error.pressed":r(e["red.700"],e["red.600"]),"bg.error.subtle":r(e["red.100"],e["red.800"]),"bg.error.subtlest":r(e["red.50"],e["red.900"]),"bg.information":r(e["blue.600"],e["blue.600"]),"bg.information.light":r(e["blue.200"],e["blue.800"]),"bg.information.subtle":r(e["blue.100"],e["blue.900"]),"bg.overlay":r(e["neutral.1200/32"],e["neutral.50/32"]),"bg.page":r(e["neutral.50"],e["neutral.1100"]),"bg.secondary":r(e["neutral.75"],e["neutral.900"]),"bg.secondary.hovered":r(e["neutral.75"],e["neutral.50/12"]),"bg.spinner.default":r(e["neutral.1200"],e["neutral.50"]),"bg.spinner.inverse":r(e["neutral.50"],e["neutral.50"]),"bg.success":r(e["green.600"],e["green.600"]),"bg.success.hovered":r(e["green.700"],e["green.400"]),"bg.success.light":r(e["green.200"],e["green.800"]),"bg.success.subtle":r(e["green.100"],e["green.900"]),"bg.tertiary":r(e["neutral.150"],e["neutral.700"]),"bg.tertiary.hovered":r(e["neutral.200"],e["neutral.50/18"]),"bg.warning":r(e["yellow.300"],e["yellow.500"]),"bg.warning.hovered":r(e["yellow.600"],e["yellow.400"]),"bg.warning.light":r(e["yellow.200"],e["yellow.800"]),"bg.warning.subtle":r(e["yellow.100"],e["yellow.900"]),"border.accent":r(e["brand.500"],e["brand.300"]),"border.control":r(e["neutral.500"],e["neutral.700"]),"border.control.hovered":r(e["neutral.600"],e["neutral.600"]),"border.default":r(e["neutral.200"],e["neutral.600"]),"border.disabled":r(e["neutral.75"],e["neutral.800"]),"border.error":r(e["red.500"],e["red.200"]),"border.focus":r(e["brand.400"],e["brand.300"]),"border.focus.error":r(e["red.400"],e["red.300"]),"border.secondary":r(e["neutral.150"],e["neutral.700"]),"border.success":r(e["green.500"],e["green.500"]),"border.tertiary":r(e["neutral.100"],e["neutral.800"]),"border.warning":r(e["yellow.500"],e["yellow.500"]),"fg.accent":r(e["brand.500"],e["brand.300"]),"fg.accent.hovered":r(e["brand.600"],e["brand.500"]),"fg.accent.strong":r(e["brand.700"],e["brand.400"]),"fg.avatar.neutral":r(e["neutral.700"],e["neutral.100"]),"fg.avatar.purple":r(e["purple.700"],e["purple.100"]),"fg.default":r(e["neutral.800"],e["neutral.75"]),"fg.default.inverse":r(e["neutral.00"],e["neutral.800"]),"fg.disabled":r(e["neutral.200"],e["neutral.50/32"]),"fg.error":r(e["red.500"],e["red.300"]),"fg.error.hovered":r(e["red.600"],e["red.600"]),"fg.error.light":r(e["red.300"],e["red.300"]),"fg.error.strong":r(e["red.700"],e["red.200"]),"fg.information":r(e["blue.500"],e["blue.300"]),"fg.information.light":r(e["blue.300"],e["blue.300"]),"fg.information.strong":r(e["blue.700"],e["blue.200"]),"fg.link.default":r(e["brand.500"],e["brand.400"]),"fg.link.default.hovered":r(e["brand.600"],e["brand.200"]),"fg.link.inverse":r(e["neutral.00"],e["neutral.800"]),"fg.link.subtle":r(e["neutral.800"],e["neutral.75"]),"fg.link.visited":r(e["purple.600"],e["purple.500"]),"fg.secondary":r(e["neutral.700"],e["neutral.200"]),"fg.spinner.default":r(e["neutral.800"],e["neutral.200"]),"fg.spinner.inverse":r(e["neutral.200"],e["neutral.800"]),"fg.success":r(e["green.500"],e["green.300"]),"fg.success.hovered":r(e["green.600"],e["green.600"]),"fg.success.light":r(e["green.300"],e["green.300"]),"fg.success.strong":r(e["green.700"],e["green.200"]),"fg.tertiary":r(e["neutral.600"],e["neutral.500"]),"fg.warning":r(e["yellow.500"],e["yellow.300"]),"fg.warning.hovered":r(e["yellow.600"],e["yellow.600"]),"fg.warning.inverse":r(e["neutral.800"],e["neutral.800"]),"fg.warning.light":r(e["yellow.300"],e["yellow.300"]),"fg.warning.strong":r(e["yellow.700"],e["yellow.200"]),"fg.white":r(e["neutral.00"],e["neutral.00"])},g={sm:"150ms",md:"250ms",lg:"350ms"},d={mono:"Fira Code Variable, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",sans:"InterVariable, system-ui, sans-serif"},b={xs:{fontSize:n("10px"),lineHeight:n("14px")},sm:{fontSize:n("12px"),lineHeight:n("16px")},md:{fontSize:n("14px"),lineHeight:n("20px")},lg:{fontSize:n("16px"),lineHeight:n("24px")},xl:{fontSize:n("20px"),lineHeight:n("28px")},"2xl":{fontSize:n("24px"),lineHeight:n("32px")},"3xl":{fontSize:n("28px"),lineHeight:n("40px")},"4xl":{fontSize:n("32px"),lineHeight:n("44px")}},s={xs:n("320px"),sm:n("384px"),md:n("448px"),lg:n("512px")},i={sm:n("600px"),md:n("900px")},p={"2xs":n("16px"),xs:n("20px"),sm:n("24px"),md:n("32px"),lg:n("40px"),xl:n("48px"),"3xl":n("80px")},F={popover:"3000",toast:"3010",tooltip:"10000"},x={borderRadius:t,boxShadow:u,colors:o,duration:g,fontFamily:d,fontSize:b,maxSize:s,screens:i,size:p,zIndex:F};export{x as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{T as i,e as m}from"./register-e7OIOgVU.js";import{o as a}from"./index-BZydTn4I.js";var e=m["useId".toString()]||(()=>{}),f=0;function p(o){const[r,t]=i(e());return a(()=>{o||t(n=>n??String(f++))},[o]),o||(r?`radix-${r}`:"")}export{p as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as v,H as d,u as h,a as N}from"./register-
|
|
1
|
+
import{b as v,H as d,u as h,a as N}from"./register-e7OIOgVU.js";function _(n,c){const o=v(c),u=r=>{const{children:e,...t}=r,i=d(()=>t,Object.values(t));return h(o.Provider,{value:i,children:e})};u.displayName=n+"Provider";function s(r){const e=N(o);if(e)return e;if(c!==void 0)return c;throw new Error(`\`${r}\` must be used within \`${n}\``)}return[u,s]}function P(n,c=[]){let o=[];function u(r,e){const t=v(e),i=o.length;o=[...o,e];const p=m=>{const{scope:f,children:l,...a}=m,b=f?.[n]?.[i]||t,w=d(()=>a,Object.values(a));return h(b.Provider,{value:w,children:l})};p.displayName=r+"Provider";function $(m,f){const l=f?.[n]?.[i]||t,a=N(l);if(a)return a;if(e!==void 0)return e;throw new Error(`\`${m}\` must be used within \`${r}\``)}return[p,$]}const s=()=>{const r=o.map(e=>v(e));return function(e){const t=e?.[n]||r;return d(()=>({[`__scope${n}`]:{...e,[n]:t}}),[e,t])}};return s.scopeName=n,[u,S(s,...c)]}function S(...n){const c=n[0];if(n.length===1)return c;const o=()=>{const u=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(s){const r=u.reduce((e,{useScope:t,scopeName:i})=>{const p=t(s)[`__scope${i}`];return{...e,...p}},{});return d(()=>({[`__scope${c.scopeName}`]:r}),[r])}};return o.scopeName=c.scopeName,o}export{_ as P,P as l};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as U,T as q,W as I,S as k,w as B,u as H}from"./register-
|
|
1
|
+
import{$ as U,T as q,W as I,S as k,w as B,u as H}from"./register-e7OIOgVU.js";import{s as j}from"./index-TBoCO2r9.js";import{t as z}from"./index-D3aYOJDt.js";import{c as K}from"./index-NEJS7Nk0.js";var F="focusScope.autoFocusOnMount",W="focusScope.autoFocusOnUnmount",$={bubbles:!1,cancelable:!0},G="FocusScope",O=U((e,n)=>{const{loop:t=!1,trapped:o=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...S}=e,[r,L]=q(null),w=K(c),R=K(d),a=I(null),i=j(n,u=>L(u)),f=I({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k(()=>{if(o){let u=function(h){if(f.paused||!r)return;const p=h.target;((E,g)=>E.getRootNode()instanceof ShadowRoot?E.getRootNode().host.contains(g):E.contains(g))(r,p)?a.current=h.target.shadowRoot?h.composedPath()[0]:h.target:v(a.current,{select:!0})},s=function(h){if(f.paused||!r)return;const p=h.relatedTarget;p!==null&&(((E,g)=>E.getRootNode()instanceof ShadowRoot?E.getRootNode().host.contains(g):E.contains(g))(r,p)||v(a.current,{select:!0}))},l=function(h){if((()=>{let p=document.activeElement;for(;p?.shadowRoot;)p=p.shadowRoot.activeElement;return p})()===document.body)for(const p of h)p.removedNodes.length>0&&v(r)};const m=r?.getRootNode()??document;m.addEventListener("focusin",u),m.addEventListener("focusout",s);const y=new MutationObserver(l);return r&&y.observe(r,{childList:!0,subtree:!0}),()=>{m.removeEventListener("focusin",u),m.removeEventListener("focusout",s),y.disconnect()}}},[o,r,f.paused]),k(()=>{if(r){D.add(f);const u=(()=>{let s=document.activeElement;for(;s?.shadowRoot;)s=s.shadowRoot.activeElement;return s})();if(!((s,l)=>s.getRootNode()instanceof ShadowRoot?s.getRootNode().host.contains(l):s.contains(l))(r,u)){const s=new CustomEvent(F,$);r.addEventListener(F,w),r.dispatchEvent(s),s.defaultPrevented||(V(Z(P(r)),{select:!0}),(()=>{let l=document.activeElement;for(;l?.shadowRoot;)l=l.shadowRoot.activeElement;return l})()===u&&v(r))}return()=>{r.removeEventListener(F,w),setTimeout(()=>{const s=new CustomEvent(W,$);r.addEventListener(W,R),r.dispatchEvent(s),s.defaultPrevented||v(u??document.body,{select:!0}),r.removeEventListener(W,R),D.remove(f)},0)}}},[r,w,R,f]);const b=B(u=>{if(!t&&!o||f.paused)return;const s=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,l=(()=>{let m=document.activeElement;for(;m?.shadowRoot;)m=m.shadowRoot.activeElement;return m})();if(s&&l){const m=u.currentTarget,[y,h]=J(m);y&&h?!u.shiftKey&&l===h?(u.preventDefault(),t&&v(y,{select:!0})):u.shiftKey&&l===y&&(u.preventDefault(),t&&v(h,{select:!0})):l===m&&u.preventDefault()}},[t,o,f.paused]);return H(z.div,{tabIndex:-1,...S,ref:i,onKeyDown:b})});O.displayName=G;function V(e,{select:n=!1}={}){const t=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();for(const o of e)if(v(o,{select:n}),(()=>{let c=document.activeElement;for(;c?.shadowRoot;)c=c.shadowRoot.activeElement;return c})()!==t)return}function J(e){const n=P(e),t=C(n,e),o=C(n.reverse(),e);return[t,o]}function P(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const c=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||c?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function C(e,n){for(const t of e)if(!Q(t,{upTo:n}))return t}function Q(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function X(e){return e instanceof HTMLInputElement&&"select"in e}function v(e,{select:n=!1}={}){if(e&&e.focus){const t=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();e.focus({preventScroll:!0}),e!==t&&X(e)&&n&&e.select()}}var D=Y();function Y(){let e=[];return{add(n){const t=e[0];n!==t&&t?.pause(),e=x(e,n),e.unshift(n)},remove(n){e=x(e,n),e[0]?.resume()}}}function x(e,n){const t=[...e],o=t.indexOf(n);return o!==-1&&t.splice(o,1),t}function Z(e){return e.filter(n=>n.tagName!=="A")}var ee=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},N=new WeakMap,A=new WeakMap,T={},M=0,_=function(e){return e&&(e.host||_(e.parentNode))},te=function(e,n){return n.map(function(t){if(((c,d)=>{for(;d.getRootNode()instanceof ShadowRoot;)d=d.getRootNode().host;return c.contains(d)})(e,t))return t;var o=_(t);return o&&((c,d)=>{for(;d.getRootNode()instanceof ShadowRoot;)d=d.getRootNode().host;return c.contains(d)})(e,o)?o:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return Boolean(t)})},oe=function(e,n,t,o){var c=te(n,Array.isArray(e)?e:[e]);T[t]||(T[t]=new WeakMap);var d=T[t],S=[],r=new Set,L=new Set(c),w=function(a){if(!(!a||r.has(a))){if(r.add(a),a.parentNode instanceof ShadowRoot)for(const i of a.parentNode.querySelectorAll("slot"))for(const f of i.assignedElements())r.add(f);w(a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode)}};c.forEach(w);var R=function(a){!a||L.has(a)||Array.prototype.forEach.call(a.children,function(i){if(r.has(i))R(i);else try{var f=i.getAttribute(o),b=f!==null&&f!=="false",u=(N.get(i)||0)+1,s=(d.get(i)||0)+1;N.set(i,u),d.set(i,s),S.push(i),u===1&&b&&A.set(i,!0),s===1&&i.setAttribute(t,"true"),b||i.setAttribute(o,"true")}catch(l){console.error("aria-hidden: cannot operate on ",i,l)}})};return R(n),r.clear(),M++,function(){S.forEach(function(a){var i=N.get(a)-1,f=d.get(a)-1;N.set(a,i),d.set(a,f),i||(A.has(a)||a.removeAttribute(o),A.delete(a)),f||a.removeAttribute(t)}),M--,M||(N=new WeakMap,N=new WeakMap,A=new WeakMap,T={})}},ne=function(e,n,t){t===void 0&&(t="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),c=n||ee(e);return c?(o.push.apply(o,Array.from(c.querySelectorAll("[aria-live]"))),oe(o,c,t,"aria-hidden")):function(){return null}};export{ne as h,O as y};
|
package/dist/index.d.ts
CHANGED
|
@@ -176,8 +176,8 @@ type BoxProps = {
|
|
|
176
176
|
"empty"?: "hidden";
|
|
177
177
|
"fontFamily"?: "mono" | "sans";
|
|
178
178
|
"font-family"?: "mono" | "sans";
|
|
179
|
-
"fontSize"?: "sm" | "md" | "xs" | "lg" | "
|
|
180
|
-
"font-size"?: "sm" | "md" | "xs" | "lg" | "
|
|
179
|
+
"fontSize"?: "sm" | "md" | "xs" | "lg" | "xl" | "inherit" | "3xl" | "2xl" | "4xl";
|
|
180
|
+
"font-size"?: "sm" | "md" | "xs" | "lg" | "xl" | "inherit" | "3xl" | "2xl" | "4xl";
|
|
181
181
|
"fontWeight"?: "inherit" | "400" | "500" | "600" | "700";
|
|
182
182
|
"font-weight"?: "inherit" | "400" | "500" | "600" | "700";
|
|
183
183
|
"objectFit"?: "none" | "contain" | "cover" | "fill";
|
|
@@ -220,7 +220,7 @@ type BoxProps = {
|
|
|
220
220
|
"pl"?: "0" | "2" | "4" | "6" | "8" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80";
|
|
221
221
|
"pr"?: "0" | "2" | "4" | "6" | "8" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80";
|
|
222
222
|
"pt"?: "0" | "2" | "4" | "6" | "8" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80";
|
|
223
|
-
"rounded"?: "sm" | "md" | "xs" | "lg" | "inherit" | "none" | "full";
|
|
223
|
+
"rounded"?: "sm" | "md" | "xs" | "lg" | "xl" | "inherit" | "none" | "full";
|
|
224
224
|
"shadow"?: "sm" | "md" | "lg" | "none";
|
|
225
225
|
"z"?: "auto" | "0" | "10" | "20" | "popover" | "toast" | "tooltip" | "30";
|
|
226
226
|
"alignItems"?: "center" | "end" | "start" | "normal" | "space-around" | "space-between" | "space-evenly" | "stretch" | ResponsiveObject<"center" | "end" | "start" | "normal" | "space-around" | "space-between" | "space-evenly" | "stretch"> | ResponsiveArray<"center" | "end" | "start" | "normal" | "space-around" | "space-between" | "space-evenly" | "stretch">;
|
|
@@ -455,7 +455,7 @@ type DropdownMenuContentProps = BoxProps & {
|
|
|
455
455
|
"onCloseAutoFocus"?: (event: Event) => void;
|
|
456
456
|
"minW"?: "0" | "trigger";
|
|
457
457
|
"min-w"?: "0" | "trigger";
|
|
458
|
-
"side"?: "
|
|
458
|
+
"side"?: "bottom" | "left" | "right" | "top";
|
|
459
459
|
"align"?: "center" | "end" | "start";
|
|
460
460
|
"loading"?: false | true;
|
|
461
461
|
};
|
|
@@ -662,7 +662,7 @@ declare const Kbd = "ax-kbd";
|
|
|
662
662
|
|
|
663
663
|
type KbdProps = BoxProps & {
|
|
664
664
|
"variant"?: "subtle" | "outline";
|
|
665
|
-
"keys"?: "shift" | "enter" | "option" | "tab" | "
|
|
665
|
+
"keys"?: "shift" | "enter" | "option" | "tab" | "left" | "right" | "command" | "ctrl" | "down" | "escape" | "help" | "space" | "up" | (("shift" | "enter" | "option" | "tab" | "left" | "right" | "command" | "ctrl" | "down" | "escape" | "help" | "space" | "up")[]);
|
|
666
666
|
"asChild"?: false | true;
|
|
667
667
|
"as-child"?: false | true;
|
|
668
668
|
};
|
|
@@ -821,6 +821,35 @@ type NavFooterProps = BoxProps & {
|
|
|
821
821
|
"asChild"?: false | true;
|
|
822
822
|
"as-child"?: false | true;
|
|
823
823
|
};
|
|
824
|
+
declare const NavGroup = "ax-nav-group";
|
|
825
|
+
|
|
826
|
+
type NavGroupProps = BoxProps & {
|
|
827
|
+
"asChild"?: false | true;
|
|
828
|
+
"as-child"?: false | true;
|
|
829
|
+
"disabled"?: false | true;
|
|
830
|
+
"defaultOpen"?: false | true;
|
|
831
|
+
"default-open"?: false | true;
|
|
832
|
+
"open"?: false | true;
|
|
833
|
+
"onOpenChange"?: (open: boolean) => void;
|
|
834
|
+
};
|
|
835
|
+
declare const NavGroupContent = "ax-nav-group-content";
|
|
836
|
+
|
|
837
|
+
type NavGroupContentProps = BoxProps & {
|
|
838
|
+
"asChild"?: false | true;
|
|
839
|
+
"as-child"?: false | true;
|
|
840
|
+
};
|
|
841
|
+
declare const NavGroupTrigger = "ax-nav-group-trigger";
|
|
842
|
+
|
|
843
|
+
type NavGroupTriggerProps = BoxProps & {
|
|
844
|
+
"asChild"?: false | true;
|
|
845
|
+
"as-child"?: false | true;
|
|
846
|
+
"addonAfter"?: string | number | false | true;
|
|
847
|
+
"addon-after"?: string;
|
|
848
|
+
"addonBefore"?: string | number | false | true;
|
|
849
|
+
"addon-before"?: string;
|
|
850
|
+
"chevronPosition"?: "end" | "start";
|
|
851
|
+
"chevron-position"?: "end" | "start";
|
|
852
|
+
};
|
|
824
853
|
declare const NavHeader = "ax-nav-header";
|
|
825
854
|
|
|
826
855
|
type NavHeaderProps = BoxProps & {
|
|
@@ -843,6 +872,14 @@ type NavListProps = BoxProps & {
|
|
|
843
872
|
"asChild"?: false | true;
|
|
844
873
|
"as-child"?: false | true;
|
|
845
874
|
};
|
|
875
|
+
declare const NavSeparator = "ax-nav-separator";
|
|
876
|
+
|
|
877
|
+
type NavSeparatorProps = BoxProps & {
|
|
878
|
+
"asChild"?: false | true;
|
|
879
|
+
"as-child"?: false | true;
|
|
880
|
+
"orientation"?: "horizontal" | "vertical" | ResponsiveArray<"horizontal" | "vertical"> | ResponsiveObject<"horizontal" | "vertical">;
|
|
881
|
+
"decorative"?: false | true;
|
|
882
|
+
};
|
|
846
883
|
declare const Pagination = "ax-pagination";
|
|
847
884
|
|
|
848
885
|
type PaginationProps = BoxProps & {
|
|
@@ -858,7 +895,7 @@ type PaginationProps = BoxProps & {
|
|
|
858
895
|
declare const Paper = "ax-paper";
|
|
859
896
|
|
|
860
897
|
type PaperProps = BoxProps & {
|
|
861
|
-
"elevation"?: "dialog" | "menu";
|
|
898
|
+
"elevation"?: "dialog" | "menu" | "screen";
|
|
862
899
|
"asChild"?: false | true;
|
|
863
900
|
"as-child"?: false | true;
|
|
864
901
|
};
|
|
@@ -894,7 +931,7 @@ type PopoverContentProps = BoxProps & {
|
|
|
894
931
|
"min-w"?: "0" | "trigger";
|
|
895
932
|
"withArrow"?: false | true;
|
|
896
933
|
"with-arrow"?: false | true;
|
|
897
|
-
"side"?: "
|
|
934
|
+
"side"?: "bottom" | "left" | "right" | "top";
|
|
898
935
|
"sideOffset"?: number;
|
|
899
936
|
"side-offset"?: number;
|
|
900
937
|
"align"?: "center" | "end" | "start";
|
|
@@ -1050,6 +1087,12 @@ type SpinnerProps = BoxProps & {
|
|
|
1050
1087
|
"asChild"?: false | true;
|
|
1051
1088
|
"as-child"?: false | true;
|
|
1052
1089
|
};
|
|
1090
|
+
declare const SubNav = "ax-sub-nav";
|
|
1091
|
+
|
|
1092
|
+
type SubNavProps = BoxProps & {
|
|
1093
|
+
"asChild"?: false | true;
|
|
1094
|
+
"as-child"?: false | true;
|
|
1095
|
+
};
|
|
1053
1096
|
declare const Switch = "ax-switch";
|
|
1054
1097
|
|
|
1055
1098
|
type SwitchProps = BoxProps & {
|
|
@@ -1174,11 +1217,11 @@ declare const ToastProvider = "ax-toast-provider";
|
|
|
1174
1217
|
type ToastProviderProps = BoxProps & {
|
|
1175
1218
|
"label"?: string;
|
|
1176
1219
|
"duration"?: number;
|
|
1177
|
-
"swipeDirection"?: "
|
|
1178
|
-
"swipe-direction"?: "
|
|
1220
|
+
"swipeDirection"?: "left" | "right" | "down" | "up";
|
|
1221
|
+
"swipe-direction"?: "left" | "right" | "down" | "up";
|
|
1179
1222
|
"swipeThreshold"?: number;
|
|
1180
1223
|
"swipe-threshold"?: number;
|
|
1181
|
-
"position"?: "
|
|
1224
|
+
"position"?: "bottom" | "top" | "bottom-right" | "top-right" | "bottom-left" | "top-left";
|
|
1182
1225
|
"container"?: Element | DocumentFragment;
|
|
1183
1226
|
"toaster"?: Toaster;
|
|
1184
1227
|
"asChild"?: false | true;
|
|
@@ -1227,8 +1270,8 @@ type TooltipProps = {
|
|
|
1227
1270
|
"empty"?: "hidden";
|
|
1228
1271
|
"fontFamily"?: "mono" | "sans";
|
|
1229
1272
|
"font-family"?: "mono" | "sans";
|
|
1230
|
-
"fontSize"?: "sm" | "md" | "xs" | "lg" | "
|
|
1231
|
-
"font-size"?: "sm" | "md" | "xs" | "lg" | "
|
|
1273
|
+
"fontSize"?: "sm" | "md" | "xs" | "lg" | "xl" | "inherit" | "3xl" | "2xl" | "4xl";
|
|
1274
|
+
"font-size"?: "sm" | "md" | "xs" | "lg" | "xl" | "inherit" | "3xl" | "2xl" | "4xl";
|
|
1232
1275
|
"fontWeight"?: "inherit" | "400" | "500" | "600" | "700";
|
|
1233
1276
|
"font-weight"?: "inherit" | "400" | "500" | "600" | "700";
|
|
1234
1277
|
"objectFit"?: "none" | "contain" | "cover" | "fill";
|
|
@@ -1271,7 +1314,7 @@ type TooltipProps = {
|
|
|
1271
1314
|
"pl"?: "0" | "2" | "4" | "6" | "8" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80";
|
|
1272
1315
|
"pr"?: "0" | "2" | "4" | "6" | "8" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80";
|
|
1273
1316
|
"pt"?: "0" | "2" | "4" | "6" | "8" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80";
|
|
1274
|
-
"rounded"?: "sm" | "md" | "xs" | "lg" | "inherit" | "none" | "full";
|
|
1317
|
+
"rounded"?: "sm" | "md" | "xs" | "lg" | "xl" | "inherit" | "none" | "full";
|
|
1275
1318
|
"shadow"?: "sm" | "md" | "lg" | "none";
|
|
1276
1319
|
"z"?: "auto" | "0" | "10" | "20" | "popover" | "toast" | "tooltip" | "30";
|
|
1277
1320
|
"alignItems"?: "center" | "end" | "start" | "normal" | "space-around" | "space-between" | "space-evenly" | "stretch" | ResponsiveObject<"center" | "end" | "start" | "normal" | "space-around" | "space-between" | "space-evenly" | "stretch"> | ResponsiveArray<"center" | "end" | "start" | "normal" | "space-around" | "space-between" | "space-evenly" | "stretch">;
|
|
@@ -1310,7 +1353,7 @@ type TooltipProps = {
|
|
|
1310
1353
|
"auto"?: false | true;
|
|
1311
1354
|
"onEscapeKeyDown"?: (event: KeyboardEvent) => void;
|
|
1312
1355
|
"onPointerDownOutside"?: (event: PointerDownOutsideEvent) => void;
|
|
1313
|
-
"side"?: "
|
|
1356
|
+
"side"?: "bottom" | "left" | "right" | "top";
|
|
1314
1357
|
"align"?: "center" | "end" | "start";
|
|
1315
1358
|
"delayDuration"?: number;
|
|
1316
1359
|
"delay-duration"?: number;
|
|
@@ -1327,7 +1370,7 @@ type TooltipContentProps = BoxProps & {
|
|
|
1327
1370
|
"aria-label"?: string;
|
|
1328
1371
|
"onEscapeKeyDown"?: (event: KeyboardEvent) => void;
|
|
1329
1372
|
"onPointerDownOutside"?: (event: PointerDownOutsideEvent) => void;
|
|
1330
|
-
"side"?: "
|
|
1373
|
+
"side"?: "bottom" | "left" | "right" | "top";
|
|
1331
1374
|
"align"?: "center" | "end" | "start";
|
|
1332
1375
|
};
|
|
1333
1376
|
declare const TooltipProvider = "ax-tooltip-provider";
|
|
@@ -1366,7 +1409,7 @@ declare const Transition = "ax-transition";
|
|
|
1366
1409
|
type TransitionProps = {
|
|
1367
1410
|
"duration"?: "sm" | "md" | "lg";
|
|
1368
1411
|
"type"?: "pop" | "fade" | "slide" | "slidePop";
|
|
1369
|
-
"data-side"?: "
|
|
1412
|
+
"data-side"?: "bottom" | "left" | "right" | "top";
|
|
1370
1413
|
"skipAnimations"?: false | true;
|
|
1371
1414
|
"skip-animations"?: false | true;
|
|
1372
1415
|
};
|
|
@@ -1954,6 +1997,30 @@ declare module "@stencil/core" {
|
|
|
1954
1997
|
}
|
|
1955
1998
|
}
|
|
1956
1999
|
|
|
2000
|
+
declare module "@stencil/core" {
|
|
2001
|
+
namespace JSX {
|
|
2002
|
+
interface IntrinsicElements {
|
|
2003
|
+
[NavGroup]: NavGroupProps & JSXBase.HTMLAttributes;
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
declare module "@stencil/core" {
|
|
2009
|
+
namespace JSX {
|
|
2010
|
+
interface IntrinsicElements {
|
|
2011
|
+
[NavGroupContent]: NavGroupContentProps & JSXBase.HTMLAttributes;
|
|
2012
|
+
}
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
declare module "@stencil/core" {
|
|
2017
|
+
namespace JSX {
|
|
2018
|
+
interface IntrinsicElements {
|
|
2019
|
+
[NavGroupTrigger]: NavGroupTriggerProps & JSXBase.HTMLAttributes;
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
|
|
1957
2024
|
declare module "@stencil/core" {
|
|
1958
2025
|
namespace JSX {
|
|
1959
2026
|
interface IntrinsicElements {
|
|
@@ -1978,6 +2045,14 @@ declare module "@stencil/core" {
|
|
|
1978
2045
|
}
|
|
1979
2046
|
}
|
|
1980
2047
|
|
|
2048
|
+
declare module "@stencil/core" {
|
|
2049
|
+
namespace JSX {
|
|
2050
|
+
interface IntrinsicElements {
|
|
2051
|
+
[NavSeparator]: NavSeparatorProps & JSXBase.HTMLAttributes;
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
2055
|
+
|
|
1981
2056
|
declare module "@stencil/core" {
|
|
1982
2057
|
namespace JSX {
|
|
1983
2058
|
interface IntrinsicElements {
|
|
@@ -2114,6 +2189,14 @@ declare module "@stencil/core" {
|
|
|
2114
2189
|
}
|
|
2115
2190
|
}
|
|
2116
2191
|
|
|
2192
|
+
declare module "@stencil/core" {
|
|
2193
|
+
namespace JSX {
|
|
2194
|
+
interface IntrinsicElements {
|
|
2195
|
+
[SubNav]: SubNavProps & JSXBase.HTMLAttributes;
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2117
2200
|
declare module "@stencil/core" {
|
|
2118
2201
|
namespace JSX {
|
|
2119
2202
|
interface IntrinsicElements {
|
|
@@ -2850,6 +2933,30 @@ declare module "react" {
|
|
|
2850
2933
|
}
|
|
2851
2934
|
}
|
|
2852
2935
|
|
|
2936
|
+
declare module "react" {
|
|
2937
|
+
namespace JSX {
|
|
2938
|
+
interface IntrinsicElements {
|
|
2939
|
+
[NavGroup]: NavGroupProps & ComponentPropsWithoutRef<"div">;
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
declare module "react" {
|
|
2945
|
+
namespace JSX {
|
|
2946
|
+
interface IntrinsicElements {
|
|
2947
|
+
[NavGroupContent]: NavGroupContentProps & ComponentPropsWithoutRef<"div">;
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
declare module "react" {
|
|
2953
|
+
namespace JSX {
|
|
2954
|
+
interface IntrinsicElements {
|
|
2955
|
+
[NavGroupTrigger]: NavGroupTriggerProps & ComponentPropsWithoutRef<"div">;
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2853
2960
|
declare module "react" {
|
|
2854
2961
|
namespace JSX {
|
|
2855
2962
|
interface IntrinsicElements {
|
|
@@ -2874,6 +2981,14 @@ declare module "react" {
|
|
|
2874
2981
|
}
|
|
2875
2982
|
}
|
|
2876
2983
|
|
|
2984
|
+
declare module "react" {
|
|
2985
|
+
namespace JSX {
|
|
2986
|
+
interface IntrinsicElements {
|
|
2987
|
+
[NavSeparator]: NavSeparatorProps & ComponentPropsWithoutRef<"div">;
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2877
2992
|
declare module "react" {
|
|
2878
2993
|
namespace JSX {
|
|
2879
2994
|
interface IntrinsicElements {
|
|
@@ -3010,6 +3125,14 @@ declare module "react" {
|
|
|
3010
3125
|
}
|
|
3011
3126
|
}
|
|
3012
3127
|
|
|
3128
|
+
declare module "react" {
|
|
3129
|
+
namespace JSX {
|
|
3130
|
+
interface IntrinsicElements {
|
|
3131
|
+
[SubNav]: SubNavProps & ComponentPropsWithoutRef<"div">;
|
|
3132
|
+
}
|
|
3133
|
+
}
|
|
3134
|
+
}
|
|
3135
|
+
|
|
3013
3136
|
declare module "react" {
|
|
3014
3137
|
namespace JSX {
|
|
3015
3138
|
interface IntrinsicElements {
|
|
@@ -3170,4 +3293,4 @@ declare module "react" {
|
|
|
3170
3293
|
}
|
|
3171
3294
|
}
|
|
3172
3295
|
|
|
3173
|
-
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, ModalContextProvider, type ModalContextProviderProps, ModalLayer, type ModalLayerProps, Nav, NavAccountItem, type NavAccountItemProps, NavBody, type NavBodyProps, NavFooter, type NavFooterProps, NavHeader, type NavHeaderProps, NavItem, type NavItemProps, NavList, type NavListProps, type NavProps, 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, 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 };
|
|
3296
|
+
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, ModalContextProvider, type ModalContextProviderProps, ModalLayer, type ModalLayerProps, 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 at,a as it,b as mt,c as rt,d as lt,e as ct,g as ut,h as dt,i as gt,j as pt,k as ft,l as Et,m as xt,B as Pt,n as bt,o as Dt,p as Tt,q as vt,C as At,r as Lt,D as Ct,s as It,t as wt,u as St,v as Mt,w as ht,x as Bt,y as Ft,z as kt,E as yt,F as Gt,G as Nt,H as Rt,I as Ht,J as Kt,K as jt,L as qt,M as zt,N as Jt,O as Ot,P as Qt,Q as Ut,R as Vt,S as Wt,T as Xt,U as Yt,V as Zt,W as _t,X as $t,Y as eo,Z as to,_ as oo,$ as so,a0 as no,a1 as ao,a2 as io,a3 as mo,a4 as ro,a5 as lo,a6 as co,a7 as uo,a8 as go,a9 as po,aa as fo,ab as Eo,ac as xo,ad as Po,ae as bo,af as Do,ag as To,ah as vo,ai as Ao,aj as Lo,ak as Co,al as Io,am as wo,an as So,ao as Mo,ap as ho,aq as Bo,ar as Fo,as as ko,at as yo,au as Go,av as No,aw as Ro,ax as Ho,ay as Ko,az as jo,aA as qo,aB as zo,aC as Jo,aD as Oo,aE as Qo,aF as Uo,aG as Vo,aH as Wo,aI as Xo,aJ as Yo,aK as Zo,aL as _o,aM as $o,aN as es,aO as ts,aP as os,aQ as ss,aR as ns,aS as as,aT as is,aU as ms,aV as rs,aW as ls}from"./propTypes-DvjbHxCV.js";const t="ax-alert";customElements.get(t)||customElements.define(t,e(t,"Alert",at));const o="ax-alert-dialog";customElements.get(o)||customElements.define(o,e(o,"AlertDialog",it));const s="ax-alert-dialog-action";customElements.get(s)||customElements.define(s,e(s,"AlertDialogAction",mt));const n="ax-alert-dialog-body";customElements.get(n)||customElements.define(n,e(n,"AlertDialogBody",rt));const a="ax-alert-dialog-cancel";customElements.get(a)||customElements.define(a,e(a,"AlertDialogCancel",lt));const i="ax-alert-dialog-content";customElements.get(i)||customElements.define(i,e(i,"AlertDialogContent",ct));const m="ax-alert-dialog-footer";customElements.get(m)||customElements.define(m,e(m,"AlertDialogFooter",ut));const r="ax-alert-dialog-header";customElements.get(r)||customElements.define(r,e(r,"AlertDialogHeader",dt));const l="ax-alert-dialog-trigger";customElements.get(l)||customElements.define(l,e(l,"AlertDialogTrigger",gt));const c="ax-angle-menu-button";customElements.get(c)||customElements.define(c,e(c,"AngleMenuButton",pt));const u="ax-avatar";customElements.get(u)||customElements.define(u,e(u,"Avatar",ft));const d="ax-avatar-group";customElements.get(d)||customElements.define(d,e(d,"AvatarGroup",Et));const g="ax-axiom-provider";customElements.get(g)||customElements.define(g,e(g,"AxiomProvider",xt));const p="ax-badge";customElements.get(p)||customElements.define(p,e(p,"Badge",Pt));const f="ax-banner";customElements.get(f)||customElements.define(f,e(f,"Banner",bt));const E="ax-box";customElements.get(E)||customElements.define(E,e(E,"Box",Dt));const x="ax-button";customElements.get(x)||customElements.define(x,e(x,"Button",Tt));const P="ax-button-group";customElements.get(P)||customElements.define(P,e(P,"ButtonGroup",vt));const b="ax-checkbox";customElements.get(b)||customElements.define(b,e(b,"Checkbox",At));const D="ax-code";customElements.get(D)||customElements.define(D,e(D,"Code",Lt));const T="ax-dialog";customElements.get(T)||customElements.define(T,e(T,"Dialog",Ct));const v="ax-dialog-body";customElements.get(v)||customElements.define(v,e(v,"DialogBody",It));const A="ax-dialog-close";customElements.get(A)||customElements.define(A,e(A,"DialogClose",wt));const L="ax-dialog-content";customElements.get(L)||customElements.define(L,e(L,"DialogContent",St));const C="ax-dialog-footer";customElements.get(C)||customElements.define(C,e(C,"DialogFooter",Mt));const I="ax-dialog-form";customElements.get(I)||customElements.define(I,e(I,"DialogForm",ht));const w="ax-dialog-header";customElements.get(w)||customElements.define(w,e(w,"DialogHeader",Bt));const S="ax-dialog-trigger";customElements.get(S)||customElements.define(S,e(S,"DialogTrigger",Ft));const M="ax-disclosure";customElements.get(M)||customElements.define(M,e(M,"Disclosure",kt));const h="ax-disclosure-content";customElements.get(h)||customElements.define(h,e(h,"DisclosureContent",yt));const B="ax-disclosure-trigger";customElements.get(B)||customElements.define(B,e(B,"DisclosureTrigger",Gt));const F="ax-dropdown-menu";customElements.get(F)||customElements.define(F,e(F,"DropdownMenu",Nt));const k="ax-dropdown-menu-checkbox-item";customElements.get(k)||customElements.define(k,e(k,"DropdownMenuCheckboxItem",Rt));const y="ax-dropdown-menu-content";customElements.get(y)||customElements.define(y,e(y,"DropdownMenuContent",Ht));const G="ax-dropdown-menu-group";customElements.get(G)||customElements.define(G,e(G,"DropdownMenuGroup",Kt));const N="ax-dropdown-menu-item";customElements.get(N)||customElements.define(N,e(N,"DropdownMenuItem",jt));const R="ax-dropdown-menu-label";customElements.get(R)||customElements.define(R,e(R,"DropdownMenuLabel",qt));const H="ax-dropdown-menu-separator";customElements.get(H)||customElements.define(H,e(H,"DropdownMenuSeparator",zt));const K="ax-dropdown-menu-sub";customElements.get(K)||customElements.define(K,e(K,"DropdownMenuSub",Jt));const j="ax-dropdown-menu-sub-content";customElements.get(j)||customElements.define(j,e(j,"DropdownMenuSubContent",Ot));const q="ax-dropdown-menu-trigger";customElements.get(q)||customElements.define(q,e(q,"DropdownMenuTrigger",Qt));const z="ax-ellipsis-menu-button";customElements.get(z)||customElements.define(z,e(z,"EllipsisMenuButton",Ut));const J="ax-field";customElements.get(J)||customElements.define(J,e(J,"Field",Vt));const O="ax-field-label";customElements.get(O)||customElements.define(O,e(O,"FieldLabel",Wt));const Q="ax-flex";customElements.get(Q)||customElements.define(Q,e(Q,"Flex",Xt));const U="ax-grid";customElements.get(U)||customElements.define(U,e(U,"Grid",Yt));const V="ax-heading";customElements.get(V)||customElements.define(V,e(V,"Heading",Zt));const W="ax-indicator";customElements.get(W)||customElements.define(W,e(W,"Indicator",_t));const X="ax-input";customElements.get(X)||customElements.define(X,e(X,"Input",$t));const Y="ax-input-addon";customElements.get(Y)||customElements.define(Y,e(Y,"InputAddon",eo));const Z="ax-input-control";customElements.get(Z)||customElements.define(Z,e(Z,"InputControl",to));const _="ax-input-root";customElements.get(_)||customElements.define(_,e(_,"InputRoot",oo));const $="ax-kbd";customElements.get($)||customElements.define($,e($,"Kbd",so));const ee="ax-link";customElements.get(ee)||customElements.define(ee,e(ee,"Link",no));const te="ax-listbox";customElements.get(te)||customElements.define(te,e(te,"Listbox",ao));const oe="ax-listbox-checkbox-item";customElements.get(oe)||customElements.define(oe,e(oe,"ListboxCheckboxItem",io));const se="ax-listbox-empty";customElements.get(se)||customElements.define(se,e(se,"ListboxEmpty",mo));const ne="ax-listbox-footer";customElements.get(ne)||customElements.define(ne,e(ne,"ListboxFooter",ro));const ae="ax-listbox-group";customElements.get(ae)||customElements.define(ae,e(ae,"ListboxGroup",lo));const ie="ax-listbox-item";customElements.get(ie)||customElements.define(ie,e(ie,"ListboxItem",co));const me="ax-listbox-item-indicator";customElements.get(me)||customElements.define(me,e(me,"ListboxItemIndicator",uo));const re="ax-listbox-label";customElements.get(re)||customElements.define(re,e(re,"ListboxLabel",go));const le="ax-listbox-radio-item";customElements.get(le)||customElements.define(le,e(le,"ListboxRadioItem",po));const ce="ax-listbox-scroll-area";customElements.get(ce)||customElements.define(ce,e(ce,"ListboxScrollArea",fo));const ue="ax-listbox-separator";customElements.get(ue)||customElements.define(ue,e(ue,"ListboxSeparator",Eo));const de="ax-listbox-switch-item";customElements.get(de)||customElements.define(de,e(de,"ListboxSwitchItem",xo));const ge="ax-modal-context-provider";customElements.get(ge)||customElements.define(ge,e(ge,"ModalContextProvider",Po));const pe="ax-modal-layer";customElements.get(pe)||customElements.define(pe,e(pe,"ModalLayer",bo));const fe="ax-nav";customElements.get(fe)||customElements.define(fe,e(fe,"Nav",Do));const Ee="ax-nav-account-item";customElements.get(Ee)||customElements.define(Ee,e(Ee,"NavAccountItem",To));const xe="ax-nav-body";customElements.get(xe)||customElements.define(xe,e(xe,"NavBody",vo));const Pe="ax-nav-footer";customElements.get(Pe)||customElements.define(Pe,e(Pe,"NavFooter",Ao));const be="ax-nav-header";customElements.get(be)||customElements.define(be,e(be,"NavHeader",Lo));const De="ax-nav-item";customElements.get(De)||customElements.define(De,e(De,"NavItem",Co));const Te="ax-nav-list";customElements.get(Te)||customElements.define(Te,e(Te,"NavList",Io));const ve="ax-pagination";customElements.get(ve)||customElements.define(ve,e(ve,"Pagination",wo));const Ae="ax-paper";customElements.get(Ae)||customElements.define(Ae,e(Ae,"Paper",So));const Le="ax-popover";customElements.get(Le)||customElements.define(Le,e(Le,"Popover",Mo));const Ce="ax-popover-anchor";customElements.get(Ce)||customElements.define(Ce,e(Ce,"PopoverAnchor",ho));const Ie="ax-popover-content";customElements.get(Ie)||customElements.define(Ie,e(Ie,"PopoverContent",Bo));const we="ax-popover-trigger";customElements.get(we)||customElements.define(we,e(we,"PopoverTrigger",Fo));const Se="ax-progress";customElements.get(Se)||customElements.define(Se,e(Se,"Progress",ko));const Me="ax-radio";customElements.get(Me)||customElements.define(Me,e(Me,"Radio",yo));const he="ax-radio-group";customElements.get(he)||customElements.define(he,e(he,"RadioGroup",Go));const Be="ax-search-input";customElements.get(Be)||customElements.define(Be,e(Be,"SearchInput",No));const Fe="ax-segmented-control";customElements.get(Fe)||customElements.define(Fe,e(Fe,"SegmentedControl",Ro));const ke="ax-segmented-control-item";customElements.get(ke)||customElements.define(ke,e(ke,"SegmentedControlItem",Ho));const ye="ax-separator";customElements.get(ye)||customElements.define(ye,e(ye,"Separator",Ko));const Ge="ax-sidebar";customElements.get(Ge)||customElements.define(Ge,e(Ge,"Sidebar",jo));const Ne="ax-sidebar-toggle";customElements.get(Ne)||customElements.define(Ne,e(Ne,"SidebarToggle",qo));const Re="ax-skeleton";customElements.get(Re)||customElements.define(Re,e(Re,"Skeleton",zo));const He="ax-spinner";customElements.get(He)||customElements.define(He,e(He,"Spinner",Jo));const Ke="ax-switch";customElements.get(Ke)||customElements.define(Ke,e(Ke,"Switch",Oo));const je="ax-tabs";customElements.get(je)||customElements.define(je,e(je,"Tabs",Qo));const qe="ax-tabs-content";customElements.get(qe)||customElements.define(qe,e(qe,"TabsContent",Uo));const ze="ax-tabs-list";customElements.get(ze)||customElements.define(ze,e(ze,"TabsList",Vo));const Je="ax-tabs-trigger";customElements.get(Je)||customElements.define(Je,e(Je,"TabsTrigger",Wo));const Oe="ax-text";customElements.get(Oe)||customElements.define(Oe,e(Oe,"Text",Xo));const Qe="ax-textarea";customElements.get(Qe)||customElements.define(Qe,e(Qe,"Textarea",Yo));const Ue="ax-theme-provider";customElements.get(Ue)||customElements.define(Ue,e(Ue,"ThemeProvider",Zo));const Ve="ax-toast";customElements.get(Ve)||customElements.define(Ve,e(Ve,"Toast",_o));const We="ax-toast-action";customElements.get(We)||customElements.define(We,e(We,"ToastAction",$o));const Xe="ax-toast-provider";customElements.get(Xe)||customElements.define(Xe,e(Xe,"ToastProvider",es));const Ye="ax-toast-title";customElements.get(Ye)||customElements.define(Ye,e(Ye,"ToastTitle",ts));const Ze="ax-toggle-button";customElements.get(Ze)||customElements.define(Ze,e(Ze,"ToggleButton",os));const _e="ax-tooltip";customElements.get(_e)||customElements.define(_e,e(_e,"Tooltip",ss));const $e="ax-tooltip-content";customElements.get($e)||customElements.define($e,e($e,"TooltipContent",ns));const et="ax-tooltip-provider";customElements.get(et)||customElements.define(et,e(et,"TooltipProvider",as));const tt="ax-tooltip-root";customElements.get(tt)||customElements.define(tt,e(tt,"TooltipRoot",is));const ot="ax-tooltip-trigger";customElements.get(ot)||customElements.define(ot,e(ot,"TooltipTrigger",ms));const st="ax-transition";customElements.get(st)||customElements.define(st,e(st,"Transition",rs));const nt="ax-transition-group";customElements.get(nt)||customElements.define(nt,e(nt,"TransitionGroup",ls));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,D as Code,T as Dialog,v as DialogBody,A as DialogClose,L as DialogContent,C as DialogFooter,I as DialogForm,w as DialogHeader,S as DialogTrigger,M as Disclosure,h as DisclosureContent,B as DisclosureTrigger,F as DropdownMenu,k as DropdownMenuCheckboxItem,y as DropdownMenuContent,G as DropdownMenuGroup,N 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 NavHeader,De as NavItem,Te as NavList,ve as Pagination,Ae as Paper,Le as Popover,Ce as PopoverAnchor,Ie as PopoverContent,we as PopoverTrigger,Se as Progress,Me as Radio,he as RadioGroup,Be as SearchInput,Fe as SegmentedControl,ke as SegmentedControlItem,ye as Separator,Ge as Sidebar,Ne as SidebarToggle,Re as Skeleton,He as Spinner,Ke as Switch,je as Tabs,qe as TabsContent,ze as TabsList,Je as TabsTrigger,Oe as Text,Qe as Textarea,Ue as ThemeProvider,Ve as Toast,We as ToastAction,Xe as ToastProvider,Ye as ToastTitle,Ze as ToggleButton,_e as Tooltip,$e as TooltipContent,et as TooltipProvider,tt as TooltipRoot,ot as TooltipTrigger,st as Transition,nt 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 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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as o}from"./register-e7OIOgVU.js";o("@layer optiaxiom, optiaxiom.theme, optiaxiom.base, optiaxiom._1xbo9m9, optiaxiom._1xvw01d;");
|