@optiaxiom/web-components 0.10.1 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionsRoot-DIfZ1KCL.js +1 -0
- package/dist/{AngleMenuButton-Dmsf0qbi.js → AngleMenuButton-B-tj6o5b.js} +1 -1
- package/dist/Avatar-C0wsUpJq.js +1 -0
- package/dist/AvatarGroup-Cxy-74VX.js +1 -0
- package/dist/AvatarGroup.css.ts.vanilla-QKro-bni-bDE3zkTP.js +1 -0
- package/dist/Backdrop-Cz11eEY9.js +1 -0
- package/dist/Badge-Ck8CijLL.js +1 -0
- package/dist/Box-bm7oB_w-.js +1 -0
- package/dist/{Button-CPD3_mb0.js → Button-CopADjxg.js} +1 -1
- package/dist/ButtonGroup-BespxqLs.js +1 -0
- package/dist/ButtonRoot-BAFQsC9I.js +1 -0
- package/dist/Calendar-6n6hsPFb.js +1 -0
- package/dist/Checkbox-I-ZDXKX9.js +1 -0
- package/dist/Cover-DS00qOQL.js +1 -0
- package/dist/{Disclosure-BB3gSzUN.js → Disclosure-BONV-aQf.js} +1 -1
- package/dist/DisclosureContent-CO9Me4qF.js +1 -0
- package/dist/DisclosureTrigger-DoUixcDQ.js +1 -0
- package/dist/{FieldLabel-DJTp-ET1.js → FieldLabel-jbWCi-Vu.js} +1 -1
- package/dist/{Flex-BlbPOgku.js → Flex-BxgcCpyo.js} +1 -1
- package/dist/{Heading-DrbuFqpP.js → Heading-BmQdj_ot.js} +1 -1
- package/dist/{Icon-C7WoWrEF.js → Icon-CnLE52t0.js} +1 -1
- package/dist/{Input-Dbam0iGc.js → Input-DEqzd_rp.js} +1 -1
- package/dist/{InputAddon-DpmQFh1F.js → InputAddon-DxSkeRxx.js} +1 -1
- package/dist/InputControl-CQvOX-Pb.js +1 -0
- package/dist/InputControl.css.ts.vanilla-BnLQthxH-nWQgdcYF.js +1 -0
- package/dist/InputRoot-BgyWs6MH.js +1 -0
- package/dist/{Listbox-CWNkDkaI.js → Listbox-BFRZbGZb.js} +1 -1
- package/dist/ListboxCheckboxItem-DTgYX2VK.js +1 -0
- package/dist/{ListboxEmpty-rnVnyc25.js → ListboxEmpty-CKf19IMT.js} +1 -1
- package/dist/{ListboxFooter-DV9ZPDok.js → ListboxFooter-P7TgEJ5Y.js} +1 -1
- package/dist/{ListboxGroup-D6P39vhP.js → ListboxGroup-P3D2KUoS.js} +1 -1
- package/dist/ListboxItem-7pk3Ovde.js +1 -0
- package/dist/ListboxItemIndicator-9NdPkx_D.js +1 -0
- package/dist/ListboxItemized-BouaAXnU.js +1 -0
- package/dist/{ListboxLabel-Dma6yEFh.js → ListboxLabel-CAhbNUbX.js} +1 -1
- package/dist/{ListboxRadioItem-D1utDvwF.js → ListboxRadioItem-Tmvml9QF.js} +1 -1
- package/dist/{ListboxSeparator-UKyAfKRp.js → ListboxSeparator-CrOBm6Be.js} +1 -1
- package/dist/{ListboxSwitchItem-D7RabhNE.js → ListboxSwitchItem-rFq5AHCU.js} +1 -1
- package/dist/ModalListbox-CqefyDNj.js +1 -0
- package/dist/Nav-BTwRuy6Q.js +1 -0
- package/dist/NavAccountItem-CUeJp3CH.js +1 -0
- package/dist/{NavBody-YPemDzpc.js → NavBody-Df4Wbaig.js} +1 -1
- package/dist/{NavFooter-DBdXzHcY.js → NavFooter-DfF9Zd4v.js} +1 -1
- package/dist/{NavGroup-DCI4FyYK.js → NavGroup-iR6E9mSW.js} +1 -1
- package/dist/{NavGroupContent-q3Oeb_eM.js → NavGroupContent-DXK8URz7.js} +1 -1
- package/dist/{NavGroupTrigger-DfzbE8k9.js → NavGroupTrigger-BsIcNPno.js} +1 -1
- package/dist/{NavHeader-z89AL6H4.js → NavHeader-CtNjVgxp.js} +1 -1
- package/dist/NavItem-CSNc4HJI.js +1 -0
- package/dist/{NavList-C5x6piON.js → NavList-D5xKrNtD.js} +1 -1
- package/dist/{NavSeparator-BuzTdP6d.js → NavSeparator-DGHWjlDt.js} +1 -1
- package/dist/Pagination-DDi-Wojb.js +1 -0
- package/dist/{Paper-Jbd_i83t.js → Paper-DkHJtgch.js} +1 -1
- package/dist/{PopoverAnchor-D6Brn13n.js → PopoverAnchor-DP2IMwpv.js} +1 -1
- package/dist/{PopoverContent-H9xcRaiV.js → PopoverContent-DF2qU_iA.js} +1 -1
- package/dist/{PopoverTrigger-BYVOF9mH.js → PopoverTrigger-BKlC5viF.js} +1 -1
- package/dist/{Select-DUIhcphB.js → Select-CLKCJPFX.js} +1 -1
- package/dist/SelectContent-DEqmyN9T.js +1 -0
- package/dist/{SelectTrigger-DAyR3-kv.js → SelectTrigger-CMZYFmHM.js} +1 -1
- package/dist/Separator-BMzH2BhQ.js +1 -0
- package/dist/Skeleton-DOdNSM_P.js +1 -0
- package/dist/Spinner-DY-7yeAf.js +1 -0
- package/dist/Switch-DHyBmJo9.js +1 -0
- package/dist/Table-OEZpsvqt.js +1 -0
- package/dist/{TableAction-Cz8wpX2g.js → TableAction-D-OaqSq4.js} +1 -1
- package/dist/TableBody-Do_UtL6J.js +1 -0
- package/dist/TableCell-t5IDCKhh.js +1 -0
- package/dist/{TableHeader-DimuVsNC.js → TableHeader-B_9ZXEl1.js} +1 -1
- package/dist/TableHeaderCell-DVDYSV8s.js +1 -0
- package/dist/TableRow-CV5UTnda.js +1 -0
- package/dist/TableRow.css.ts.vanilla-DEeo_qVc-Z3AA9euO.js +1 -0
- package/dist/Text-Dx-X0PRO.js +1 -0
- package/dist/{ThemeProvider-DlaMLHgo.js → ThemeProvider-BwkbyRFw.js} +1 -1
- package/dist/Toast-CPvRydsA.js +1 -0
- package/dist/{ToastAction-DXHNf94c.js → ToastAction-UyGYgxu1.js} +1 -1
- package/dist/ToastProvider-Cduop-W_.js +1 -0
- package/dist/{ToastTitle-68UgxPoA.js → ToastTitle-wGD5fUHR.js} +1 -1
- package/dist/ToggleInputLabel-DDlShFi0.js +1 -0
- package/dist/{Tooltip-BwYrH782.js → Tooltip-C-BguHZD.js} +1 -1
- package/dist/{TooltipContent-DyxIvF0D.js → TooltipContent-CBiRligA.js} +1 -1
- package/dist/{TooltipTrigger-WdQK5cye.js → TooltipTrigger-Bv7CZkpX.js} +1 -1
- package/dist/Transition-B5G6J_7n.js +1 -0
- package/dist/components/Alert.js +1 -1
- package/dist/components/AlertDialog.js +1 -1
- package/dist/components/AlertDialogAction.js +1 -1
- package/dist/components/AlertDialogBody.js +1 -1
- package/dist/components/AlertDialogCancel.js +1 -1
- package/dist/components/AlertDialogContent.js +1 -1
- package/dist/components/AlertDialogFooter.js +1 -1
- package/dist/components/AlertDialogHeader.js +1 -1
- package/dist/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AngleMenuButton.js +1 -1
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarGroup.js +1 -1
- package/dist/components/AxiomProvider.js +1 -1
- package/dist/components/Badge.js +1 -1
- package/dist/components/Banner.js +1 -1
- package/dist/components/Box.js +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/ButtonGroup.js +1 -1
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Code.js +1 -1
- package/dist/components/Cover.js +1 -1
- package/dist/components/DataTable.js +1 -1
- package/dist/components/DataTableBody.js +2 -2
- package/dist/components/DataTableFooter.js +1 -1
- package/dist/components/DateInput.js +1 -1
- package/dist/components/DateRangePicker.js +1 -1
- package/dist/components/DateRangePickerContent.js +1 -1
- package/dist/components/DateRangePickerTrigger.js +1 -1
- package/dist/components/Dialog.js +1 -1
- package/dist/components/DialogBody.js +1 -1
- package/dist/components/DialogClose.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/DropdownMenuCheckboxItem.js +1 -1
- package/dist/components/DropdownMenuContent.js +1 -1
- package/dist/components/DropdownMenuGroup.js +1 -1
- package/dist/components/DropdownMenuItem.js +1 -1
- package/dist/components/DropdownMenuLabel.js +1 -1
- package/dist/components/DropdownMenuSeparator.js +1 -1
- package/dist/components/DropdownMenuSubContent.js +1 -1
- package/dist/components/DropdownMenuTrigger.js +1 -1
- package/dist/components/EllipsisMenuButton.js +1 -1
- package/dist/components/Field.js +1 -1
- package/dist/components/FieldLabel.js +1 -1
- package/dist/components/Flex.js +1 -1
- package/dist/components/Grid.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/Indicator.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputAddon.js +1 -1
- package/dist/components/InputControl.js +1 -1
- package/dist/components/InputRoot.js +1 -1
- package/dist/components/Kbd.js +1 -1
- package/dist/components/LabelMenuButton.js +1 -1
- package/dist/components/Link.js +1 -1
- package/dist/components/Listbox.js +1 -1
- package/dist/components/ListboxCheckboxItem.js +1 -1
- package/dist/components/ListboxEmpty.js +1 -1
- package/dist/components/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/ListboxItemized.js +1 -1
- package/dist/components/ListboxLabel.js +1 -1
- package/dist/components/ListboxRadioItem.js +1 -1
- package/dist/components/ListboxSeparator.js +1 -1
- package/dist/components/ListboxSwitchItem.js +1 -1
- package/dist/components/Nav.js +1 -1
- package/dist/components/NavAccountItem.js +1 -1
- package/dist/components/NavBody.js +1 -1
- package/dist/components/NavFooter.js +1 -1
- package/dist/components/NavGroup.js +1 -1
- package/dist/components/NavGroupContent.js +1 -1
- package/dist/components/NavGroupTrigger.js +1 -1
- package/dist/components/NavHeader.js +1 -1
- package/dist/components/NavItem.js +1 -1
- package/dist/components/NavList.js +1 -1
- package/dist/components/NavSeparator.js +1 -1
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Paper.js +1 -1
- package/dist/components/PopoverAnchor.js +1 -1
- package/dist/components/PopoverContent.js +1 -1
- package/dist/components/PopoverTrigger.js +1 -1
- package/dist/components/Progress.js +3 -3
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/SearchInput.js +1 -1
- package/dist/components/SegmentedControl.js +1 -1
- package/dist/components/SegmentedControlItem.js +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/SelectContent.js +1 -1
- package/dist/components/SelectTrigger.js +1 -1
- package/dist/components/Separator.js +1 -1
- package/dist/components/Sidebar.js +1 -1
- package/dist/components/SidebarToggle.js +1 -1
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Spinner.js +1 -1
- package/dist/components/SubNav.js +1 -1
- package/dist/components/Switch.js +1 -1
- package/dist/components/Table.js +1 -1
- package/dist/components/TableAction.js +1 -1
- package/dist/components/TableBody.js +1 -1
- package/dist/components/TableCell.js +1 -1
- package/dist/components/TableHeader.js +1 -1
- package/dist/components/TableHeaderCell.js +1 -1
- package/dist/components/TableRow.js +1 -1
- package/dist/components/Tabs.js +1 -1
- package/dist/components/TabsContent.js +1 -1
- package/dist/components/TabsList.js +1 -1
- package/dist/components/TabsTrigger.js +1 -1
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.js +1 -1
- package/dist/components/ThemeProvider.js +1 -1
- package/dist/components/Toast.js +1 -1
- package/dist/components/ToastAction.js +1 -1
- package/dist/components/ToastProvider.js +1 -1
- package/dist/components/ToastTitle.js +1 -1
- package/dist/components/ToggleButton.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/TooltipContent.js +1 -1
- package/dist/components/TooltipTrigger.js +1 -1
- package/dist/components/Transition.js +1 -1
- package/dist/{index-CqV2a4ev.js → index-B8Mi1ru0.js} +1 -1
- package/dist/index-DbjwSr_z.js +5 -0
- package/dist/layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js +1 -0
- package/package.json +2 -2
- package/dist/ActionsRoot-CXx_w_jG.js +0 -1
- package/dist/Avatar-BSBjl55J.js +0 -1
- package/dist/AvatarGroup-BSBNeBsz.js +0 -1
- package/dist/AvatarGroup.css.ts.vanilla-CbMg3mAn-D4b-uSEe.js +0 -1
- package/dist/Backdrop-Cprfbvg8.js +0 -1
- package/dist/Badge-D6GC3RUq.js +0 -1
- package/dist/Box-DrYShvXr.js +0 -1
- package/dist/ButtonGroup-byRiAQA9.js +0 -1
- package/dist/ButtonRoot-TTb-DY_K.js +0 -1
- package/dist/Calendar-pbHQ1AJc.js +0 -1
- package/dist/Checkbox-r8bl7quF.js +0 -1
- package/dist/Cover-CorrRi0R.js +0 -1
- package/dist/DisclosureContent-Ci19V4_o.js +0 -1
- package/dist/DisclosureTrigger-OwN86MMd.js +0 -1
- package/dist/InputControl-Beuyfq21.js +0 -1
- package/dist/InputControl.css.ts.vanilla-DbwVhapt-BYD5631R.js +0 -1
- package/dist/InputRoot-DzfGPdoM.js +0 -1
- package/dist/ListboxCheckboxItem-CQ5qTlRS.js +0 -1
- package/dist/ListboxItem-i-VEwige.js +0 -1
- package/dist/ListboxItemIndicator-DR9IQDHb.js +0 -1
- package/dist/ListboxItemized-IeXb_aDo.js +0 -1
- package/dist/ModalListbox-BYcjR1wu.js +0 -1
- package/dist/Nav-BcD6NIjc.js +0 -1
- package/dist/NavAccountItem-CISazflX.js +0 -1
- package/dist/NavItem-5G6Avec6.js +0 -1
- package/dist/Pagination-BSEpxlet.js +0 -1
- package/dist/SelectContent-CZ8slhOj.js +0 -1
- package/dist/Separator-2g619xgH.js +0 -1
- package/dist/Skeleton-BOWNLcuo.js +0 -1
- package/dist/Spinner-CRgC5TtV.js +0 -1
- package/dist/Switch-BNNLkMre.js +0 -1
- package/dist/Table-CQSpGH3i.js +0 -1
- package/dist/TableBody-BsvMbvTF.js +0 -1
- package/dist/TableCell-XiMJ7dBr.js +0 -1
- package/dist/TableHeaderCell-CCJQ4xrQ.js +0 -1
- package/dist/TableRow-NqVlN76i.js +0 -1
- package/dist/TableRow.css.ts.vanilla-y2sGvAVd-DaGwmMCL.js +0 -1
- package/dist/Text-DdWFGqKF.js +0 -1
- package/dist/Toast-B01yK6yW.js +0 -1
- package/dist/ToastProvider-BiDmYfEu.js +0 -1
- package/dist/ToggleInputLabel-D1vwj1XX.js +0 -1
- package/dist/Transition-BGPV6xqp.js +0 -1
- package/dist/index-BNwEdS9Y.js +0 -5
- package/dist/layers.css.ts.vanilla-CN-ptlpS-CajwDCO4.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as x,D as w,u as a,k as y}from"./register-D6N8B6AV.js";import{u as c}from"./index-3yCeHosg.js";import{a as k}from"./index-uEcL3mb6.js";import{o as q}from"./Box-bm7oB_w-.js";import{t as o}from"./Flex-BxgcCpyo.js";import{o as C}from"./Icon-CnLE52t0.js";import{o as I}from"./Text-Dx-X0PRO.js";import{a as z}from"./isHoverSupported-DMhF6LbU.js";import{s as S}from"./decorateChildren-CgfQCQHq.js";import{m as e}from"./fallbackSpan-BpHyMB25.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as t}from"./recipeRuntime-DkvY0ny0.js";x("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._1vwa25a{user-select:none}._1vwa25a:any-link{text-decoration:none}._1vwa25a:focus-visible{outline:2px solid transparent}._1vwa25a:not([data-disabled]){color:var(--_16ektuq);cursor:pointer}._1vwa25a:not([data-disabled])[data-highlighted]{background-color:var(--_1keyrbf);color:var(--_189qclr,var(--_16ektuq))}._1vwa25a:not([data-disabled])[data-highlighted]:active{background-color:var(--_1t9f7m9);color:var(--_1phc8uu,var(--_16ektuq))}._1vwa25a:not([data-disabled])[data-highlighted][data-focus-visible]{outline-offset:-2px}._1vwa25a[data-disabled]{opacity:.3}._1wn6zbp{--_1keyrbf:var(--ax-colors-bg-error-subtlest);--_189qclr:var(--ax-colors-fg-error-hovered);--_1t9f7m9:var(--ax-colors-bg-error-subtle);--_1phc8uu:var(--ax-colors-fg-error-strong);--_16ektuq:var(--ax-colors-fg-error)}._7f4pwg{--_1keyrbf:var(--ax-colors-bg-default-hovered);--_1t9f7m9:var(--ax-colors-bg-default-pressed);--_16ektuq:var(--ax-colors-fg-default)}._1x1pxg7{line-height:24px}._1e6cay6{color:var(--ax-colors-fg-tertiary)}}");var D=t({base:[{fontSize:"sm"},"_1e6cay6"]}),L=t({base:[{flexDirection:"row",fontSize:"md",gap:"8",p:"8",rounded:"sm",transition:"colors"},"_1vwa25a"],variants:{intent:{danger:"_1wn6zbp",neutral:"_7f4pwg"}}}),N=t({base:[{alignItems:"center",flexDirection:"row",gap:"8"},"_1x1pxg7"]});const j=k("@optiaxiom/react/ListboxItem"),m=w(({addonAfter:i,addonBefore:f,asChild:l,children:p,className:h,description:r,icon:d,intent:u="neutral",...v},_)=>{const b=l?j:"div",s=c(),n=c();return a(o,{"aria-describedby":r?n:void 0,"aria-labelledby":s,asChild:!0,ref:_,...L({intent:u},h),...v,...!z&&{"data-highlighted":void 0},children:a(b,{children:S({asChild:l,children:p},g=>a(y,{children:[f||(d?a(C,{asChild:!0,children:d}):null),a(o,{flex:"1",gap:"0",children:[a(o,{asChild:!0,...N(),id:s,children:e(g)}),r&&a(I,{asChild:!0,...D(),id:n,children:e(r)})]}),i&&a(q,{asChild:!0,ml:"8",children:e(i)})]}))})})});m.displayName="@optiaxiom/react/ListboxItem";export{m as n};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as a,i as c,D as p}from"./register-D6N8B6AV.js";import{o as m}from"./Box-bm7oB_w-.js";import{a as n}from"./withIcon-BAx9SshG.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as s}from"./recipeRuntime-DkvY0ny0.js";const d=n({name:"IconCheck"},a("path",{clipRule:"evenodd",d:"M16.8719 3.16579C17.0565 3.37118 17.0396 3.68731 16.8342 3.87189L8.37588 12.3719C8.183 12.5452 7.8896 12.5423 7.70018 12.3652L3.32518 8.2743C3.12348 8.0857 3.11286 7.7693 3.30146 7.56759C3.49007 7.36589 3.80647 7.35528 4.00817 7.54388L8.04838 11.3217L16.1658 3.12811C16.3712 2.94353 16.6873 2.9604 16.8719 3.16579Z",fill:"currentColor",fillRule:"evenodd"}));c("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._1was5dg{clip-path:inset(0 100% 0 0);transition:clip-path var(--ax-duration-md)}._1dhe9a2{clip-path:inset(0 0 0 0)}}");var h=s({base:["_1was5dg"],variants:{active:{false:{},true:"_1dhe9a2"}}});const i=p(({active:t,children:e,className:o,...r},l)=>a(m,{asChild:!0,ref:l,...h({active:t},o),...r,children:e??a(d,{})}));i.displayName="@optiaxiom/react/ListboxItemIndicator";export{i as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as x,A as C,d as y,y as c,T as L,u as t,k as b}from"./register-D6N8B6AV.js";import{f as N}from"./useEffectEvent-CoA7-PTt.js";import"./FieldContext-CPdl4sHm.js";import"./isHoverSupported-DMhF6LbU.js";import{e as z}from"./Skeleton-DOdNSM_P.js";import{o as $}from"./Listbox-BFRZbGZb.js";import{o as I}from"./ListboxEmpty-CKf19IMT.js";import{n as k}from"./ListboxItem-7pk3Ovde.js";import{u as v}from"./index-uEcL3mb6.js";import{b as B}from"./index-XoWUgll-.js";import{o as A}from"./Box-bm7oB_w-.js";import{r as D}from"./TransitionGroupContext-D_06iJwS.js";const M=x(({children:o,highlightedItem:a,items:r,...n},h)=>{const m=C(null),p=v(h,m),[f,u]=y(!1);c(()=>{requestAnimationFrame(()=>requestAnimationFrame(()=>u(!0)))},[]);const{presence:l}=D("@optiaxiom/react/ListboxVirtualized")??{},i=B({count:r.length,enabled:f,estimateSize:()=>40,getScrollElement:()=>m.current}),s=L(()=>new Map(r.map((e,g)=>[e,g])),[r]);c(()=>{const e=s.get(a);!l||typeof e!="number"||i.isScrolling||i.scrollToIndex(e)},[l,a,s,i]);const d=i.getVirtualItems(),[w,F]=d.length>0?[Math.max(0,d[0].start),Math.max(0,i.getTotalSize()-d[d.length-1].end)]:[0,0],[R,S]=y(0);return c(()=>{if(!m.current)return;const e=new ResizeObserver(g=>{for(const V of g)S(V.contentRect.width)});return e.observe(m.current),()=>e.disconnect()},[]),t($,{ref:p,...n,children:t(A,{display:"flex",flex:"none",flexDirection:"column",gap:"2",style:{minHeight:Math.min(r.length,8)*40,minWidth:R,paddingBottom:F,paddingTop:w},children:d.map(e=>t(A,{"data-index":e.index,ref:i.measureElement,children:o(r[e.index],e.index,r[e.index-1])},e.key))})})});M.displayName="@optiaxiom/react/ListboxVirtualized";const T=50,q=x(({children:o,empty:a="No results found.",highlightedItem:r,items:n,itemToKey:h,loading:m,onPlacedChange:p,...f},u)=>{const l=N(p??(()=>{}));return c(()=>(requestAnimationFrame(()=>requestAnimationFrame(()=>l(!0))),()=>l(!1)),[l]),t($,{asChild:typeof o=="function"&&n.length>T,ref:u,tabIndex:-1,...f,children:m?t(b,{children:[1,2,3].map(i=>t(k,{addonBefore:t(z,{circle:!0,size:"xs"}),children:t(z,{})},i))}):typeof o=="function"?n.length>T?t(M,{highlightedItem:r,items:n,children:o}):n.length>0?n.map((i,s)=>t(b,{children:o(i,s,n[s-1])},h(i))):t(I,{children:a}):n.length>0?o:t(I,{children:a})})});q.displayName="@optiaxiom/react/ListboxItemized";export{q as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as a,u as m}from"./register-D6N8B6AV.js";import{o as p}from"./Box-
|
|
1
|
+
import{D as a,u as m}from"./register-D6N8B6AV.js";import{o as p}from"./Box-bm7oB_w-.js";import{e as c}from"./ListboxGroupContext-CwH80oq2.js";const o=a(({children:r,...i},t)=>{const{id:e}=c("@optiaxiom/react/ListboxLabel");return m(p,{color:"fg.tertiary",fontSize:"sm",id:e,p:"8",ref:t,...i,children:r})});o.displayName="@optiaxiom/react/ListboxLabel";export{o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as a,u as r}from"./register-D6N8B6AV.js";import{t as m}from"./Flex-
|
|
1
|
+
import{D as a,u as r}from"./register-D6N8B6AV.js";import{t as m}from"./Flex-BxgcCpyo.js";import{n as d}from"./ListboxItem-7pk3Ovde.js";import{r as p}from"./ListboxItemIndicator-9NdPkx_D.js";const e=a(({addonAfter:t,...o},i)=>r(d,{addonAfter:r(m,{flexDirection:"row",gap:"8",children:[t,r(p,{active:Boolean(o[o.role==="option"?"aria-selected":"aria-checked"])})]}),ref:i,...o}));e.displayName="@optiaxiom/react/ListboxRadioItem";export{e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as t,u as a}from"./register-D6N8B6AV.js";import{o as e}from"./Separator-
|
|
1
|
+
import{D as t,u as a}from"./register-D6N8B6AV.js";import{o as e}from"./Separator-BMzH2BhQ.js";const o=t((r,m)=>a(e,{flex:"none",mx:"8",my:"4",ref:m,...r}));o.displayName="@optiaxiom/react/ListboxSeparator";export{o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as a,u as o}from"./register-D6N8B6AV.js";import{t as m}from"./Flex-
|
|
1
|
+
import{D as a,u as o}from"./register-D6N8B6AV.js";import{t as m}from"./Flex-BxgcCpyo.js";import{o as c}from"./Icon-CnLE52t0.js";import{e as d}from"./Switch-DHyBmJo9.js";import{n as p}from"./ListboxItem-7pk3Ovde.js";const i=a(({addonBefore:t,icon:r,...e},n)=>o(p,{addonBefore:o(m,{flexDirection:"row",gap:"8",children:[o(d,{checked:Boolean(e[e.role==="option"?"aria-selected":"aria-checked"]),pointerEvents:"none",tabIndex:-1}),t||(r?o(c,{asChild:!0,children:r}):null)]}),ref:n,...e}));i.displayName="@optiaxiom/react/ListboxSwitchItem";export{i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as n,D as x,u as r}from"./register-D6N8B6AV.js";import{o as v}from"./Listbox-BFRZbGZb.js";import"./ListboxCheckboxItem-DTgYX2VK.js";import"./ListboxEmpty-CKf19IMT.js";import"./ListboxFooter-P7TgEJ5Y.js";import"./ListboxGroup-P3D2KUoS.js";import"./ListboxItem-7pk3Ovde.js";import"./ListboxItemIndicator-9NdPkx_D.js";import"./ListboxItemized-BouaAXnU.js";import"./ListboxLabel-CAhbNUbX.js";import"./ListboxRadioItem-Tmvml9QF.js";import"./ListboxSeparator-CrOBm6Be.js";import"./ListboxSwitchItem-rFq5AHCU.js";import{r as l}from"./Paper-DkHJtgch.js";import{s}from"./Transition-B5G6J_7n.js";import"./TransitionGroup--tyB9ZeA.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as h}from"./recipeRuntime-DkvY0ny0.js";n("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{.jk09kn{max-height:min(var(--a8s3tl),var(--_1owwgna,100vh))}._1h5ez3r{--_1owwgna:var(--ax-maxSize-xs)}._1bp5dj6{--_1owwgna:var(--ax-maxSize-sm)}._776zap{--_1owwgna:var(--ax-maxSize-md)}._1atvek2{--_1owwgna:var(--ax-maxSize-lg)}.d5sghg{min-width:var(--dx5s4f)}._3zm8lo{--a8s3tl:var(--radix-dropdown-menu-content-available-height);--dx5s4f:var(--radix-dropdown-menu-trigger-width)}.j42woq{--a8s3tl:var(--radix-popover-content-available-height);--dx5s4f:var(--radix-popover-trigger-width)}.wzaarb{--a8s3tl:var(--radix-popper-available-height);--dx5s4f:var(--radix-popper-anchor-width)}}");var g=h({base:[{maxW:"xs",p:"4"},"jk09kn"],variants:{maxH:{xs:"_1h5ez3r",sm:"_1bp5dj6",md:"_776zap",lg:"_1atvek2",full:{}},minW:{0:{},trigger:"d5sghg"},provider:{"dropdown-menu":"_3zm8lo",popover:"j42woq",popper:"wzaarb"}}});const a=x(({children:o,className:i,maxH:p,minW:m,provider:t="popover",...e},d)=>r(s,{duration:"sm",type:"pop",children:r(l,{asChild:!0,children:r(v,{ref:d,...g({maxH:p,minW:m,provider:t},i),...e,children:o})})}));a.displayName="@optiaxiom/react/ModalListbox";export{a as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as m,D as n,u as r}from"./register-D6N8B6AV.js";import{t as a}from"./Flex-BxgcCpyo.js";import{r as p}from"./SidebarContext-COI16UNd.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as b}from"./recipeRuntime-DkvY0ny0.js";m("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._1balfi3{transition:width var(--ax-duration-md) ease}}");var f=b({base:[{bg:"bg.default",flex:"1",gap:"0",overflow:"hidden",pb:"8",pt:"16"},"_1balfi3"]});const i=n(({children:e,...o},t)=>{const{expanded:d,navId:l}=p("@optiaxiom/react/Nav");return r(a,{borderColor:"border.tertiary",borderR:"1",h:"full",ref:t,w:"fit",...o,children:r(a,{asChild:!0,id:l,w:d?"224":"56",...f(),children:r("nav",{"aria-label":"Main",children:e})})})});i.displayName="@optiaxiom/react/Nav";export{i as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as d,D as p,u as r}from"./register-D6N8B6AV.js";import{n as f}from"./Avatar-C0wsUpJq.js";import"./AvatarGroup-Cxy-74VX.js";import{o as s}from"./Box-bm7oB_w-.js";import{t as e}from"./Flex-BxgcCpyo.js";import{n as h}from"./IconEllipsis-62ArFL79.js";import{r as u}from"./SidebarContext-COI16UNd.js";import{o as t}from"./Text-Dx-X0PRO.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as x}from"./recipeRuntime-DkvY0ny0.js";d("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._3arvqw{opacity:0}._1fqriqs{opacity:1}}");var y=x({base:{flex:"1",flexDirection:"row",fontSize:"md",gap:"8",overflowX:"hidden",transition:"opacity"},variants:{expanded:{false:"_3arvqw",true:"_1fqriqs"}}});const i=p(({name:o,organization:a,src:n,...m},l)=>{const{expanded:c}=u("@optiaxiom/react/NavAccountItem");return r(e,{asChild:!0,my:"8",children:r("li",{children:r(e,{asChild:!0,flexDirection:"row",gap:"8",p:"4",textAlign:"start",...m,children:r("button",{ref:l,children:[r(f,{"aria-hidden":!0,flex:"none",my:"2",name:o,rounded:"sm",src:n}),r(e,{...y({expanded:Boolean(c)}),children:[r(e,{flex:"1",gap:"0",overflowX:"hidden",children:[r(t,{color:"fg.default",fontWeight:"500",truncate:!0,children:o}),r(t,{color:"fg.tertiary",fontSize:"sm",truncate:!0,children:a})]}),r(s,{asChild:!0,children:r(h,{})})]})]})})})})});i.displayName="@optiaxiom/react/NavAccountItem";export{i as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as d,u as m}from"./register-D6N8B6AV.js";import{t as n}from"./Flex-
|
|
1
|
+
import{D as d,u as m}from"./register-D6N8B6AV.js";import{t as n}from"./Flex-BxgcCpyo.js";import{r as f}from"./SidebarContext-COI16UNd.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as l}from"./recipeRuntime-DkvY0ny0.js";var s=l({base:[{flex:"1",gap:"4",justifyContent:"flex-start",overflowX:"hidden",py:"8",w:"full"}],variants:{expanded:{false:{overflowY:"hidden"},true:{overflowY:"auto"}}}});const o=d(({children:e,className:r,...a},t)=>{const{expanded:i,spacing:p}=f("@optiaxiom/react/NavBody");return m(n,{px:p,ref:t,...s({expanded:i},r),...a,children:e})});o.displayName="@optiaxiom/react/NavBody";export{o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as i,u as p}from"./register-D6N8B6AV.js";import{t as m}from"./Flex-
|
|
1
|
+
import{D as i,u as p}from"./register-D6N8B6AV.js";import{t as m}from"./Flex-BxgcCpyo.js";import{r as c}from"./SidebarContext-COI16UNd.js";const o=i(({children:r,...t},a)=>{const{spacing:e}=c("@optiaxiom/react/NavFooter");return p(m,{gap:"8",mt:"auto",overflowX:"hidden",px:e,py:"8",ref:a,...t,children:r})});o.displayName="@optiaxiom/react/NavFooter";export{o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as a,u as r}from"./register-D6N8B6AV.js";import{u as m}from"./index-3yCeHosg.js";import{e as d}from"./Disclosure-
|
|
1
|
+
import{D as a,u as r}from"./register-D6N8B6AV.js";import{u as m}from"./index-3yCeHosg.js";import{e as d}from"./Disclosure-BONV-aQf.js";import"./DisclosureContent-CO9Me4qF.js";import"./DisclosureTrigger-DoUixcDQ.js";import{t as p}from"./NavGroupContext-1-mUYwik.js";const t=a(({children:l,...e},o)=>{const i=m();return r(p,{id:i,children:r(d,{alignItems:"stretch","aria-labelledby":e["aria-label"]?void 0:i,asChild:!0,defaultOpen:!0,display:"flex",flexDirection:"column",...e,children:r("li",{ref:o,children:l})})})});t.displayName="@optiaxiom/react/NavGroup";export{t as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as p,u as i}from"./register-D6N8B6AV.js";import"./Disclosure-
|
|
1
|
+
import{D as p,u as i}from"./register-D6N8B6AV.js";import"./Disclosure-BONV-aQf.js";import{e as l}from"./DisclosureContent-CO9Me4qF.js";import"./DisclosureTrigger-DoUixcDQ.js";const o=p(({children:r,...t},e)=>i(l,{asChild:!0,display:"flex",flexDirection:"column",gap:"4",pb:"0",pt:"0",transitionType:"slidePop",...t,children:i("ul",{ref:e,children:r})}));o.displayName="@optiaxiom/react/NavGroupContent";export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as m,u as p}from"./register-D6N8B6AV.js";import"./Disclosure-
|
|
1
|
+
import{D as m,u as p}from"./register-D6N8B6AV.js";import"./Disclosure-BONV-aQf.js";import"./DisclosureContent-CO9Me4qF.js";import{l as a}from"./DisclosureTrigger-DoUixcDQ.js";import{e as n}from"./NavGroupContext-1-mUYwik.js";const r=m(({children:o,...i},t)=>{const{id:e}=n("@optiaxiom/react/NavGroupTrigger");return p(a,{chevronPosition:"end",color:"fg.tertiary",fontSize:"sm",h:"sm",id:e,mb:"4",mt:"8",p:"0",px:"12",ref:t,w:"auto",...i,children:o})});r.displayName="@optiaxiom/react/NavGroupTrigger";export{r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as i,u as m}from"./register-D6N8B6AV.js";import{t as p}from"./Flex-
|
|
1
|
+
import{D as i,u as m}from"./register-D6N8B6AV.js";import{t as p}from"./Flex-BxgcCpyo.js";import{r as c}from"./SidebarContext-COI16UNd.js";const r=i(({children:o,...t},a)=>{const{spacing:e}=c("@optiaxiom/react/NavHeader");return m(p,{px:e,ref:a,...t,children:o})});r.displayName="@optiaxiom/react/NavHeader";export{r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as g,D as y,u as o,k}from"./register-D6N8B6AV.js";import{a as _}from"./index-uEcL3mb6.js";import{i as z,o as a}from"./Box-bm7oB_w-.js";import{t as C}from"./Flex-BxgcCpyo.js";import{o as I}from"./Icon-CnLE52t0.js";import{r as N}from"./SidebarContext-COI16UNd.js";import{o as w}from"./Text-Dx-X0PRO.js";import{i as j}from"./Tooltip-C-BguHZD.js";import"./TooltipContent-CBiRligA.js";import"./TooltipProvider-CJtCWlBF.js";import"./TooltipRoot-CRodEgtv.js";import"./TooltipTrigger-Bv7CZkpX.js";import"./isHoverSupported-DMhF6LbU.js";import{s as S}from"./decorateChildren-CgfQCQHq.js";import{m as q}from"./fallbackSpan-BpHyMB25.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import"./AvatarGroup.css.ts.vanilla-QKro-bni-bDE3zkTP.js";import"./ButtonRoot-BAFQsC9I.js";import{y as n}from"./recipeRuntime-DkvY0ny0.js";g("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._1hrvko2{--rn51us:var(--ax-colors-fg-secondary);color:var(--ax-colors-fg-secondary);text-decoration:none;user-select:none}._1hrvko2:focus-visible:not([data-disabled]){outline:2px solid var(--ax-colors-border-focus);outline-offset:1px;z-index:10}._1hrvko2[data-disabled]{opacity:.32}._1hrvko2:active{background-color:var(--ax-colors-bg-default-pressed);color:var(--ax-colors-fg-default)}._1hrvko2[data-state=active]{background-color:var(--ax-colors-bg-accent-subtle);color:var(--ax-colors-fg-accent)}._1wfoz06{transition:opacity var(--ax-duration-md) ease}._7q20b0{opacity:0}._18za6t2{opacity:1}@media (hover:hover){._1hrvko2:hover:not([data-state=active]):not(:active){background-color:var(--ax-colors-bg-default-hovered);color:var(--ax-colors-fg-default)}._1hrvko2:hover[data-state=active]:not(:active){color:var(--ax-colors-fg-accent-hovered)}}}");var A=n({base:[{alignItems:"center",display:"flex",fontSize:"md",fontWeight:"500",h:"lg",justifyContent:"flex-start",rounded:"md",textAlign:"start",transition:"colors"},"_1hrvko2"]}),P=n({base:[{alignItems:"center",display:"flex",flex:"1",gap:"10",justifyContent:"space-between",mr:"10",overflow:"hidden"},"_1wfoz06"],variants:{expanded:{false:"_7q20b0",true:"_18za6t2"}}});const $=_("@optiaxiom/react/NavItem"),m=y(({active:p,addonAfter:r,asChild:t,children:e,className:v,disabled:i,icon:f,...l},h)=>{const x=t?$:"button",{boxProps:u,restProps:b}=z(l),{expanded:d}=N("@optiaxiom/react/NavItem");let c=null;return e=S({asChild:t,children:e},s=>(c=s,o(k,{children:[o(a,{display:"grid",flex:"none",placeItems:"center",size:"lg",children:o(I,{asChild:!0,children:f})}),o(a,{...P({expanded:Boolean(d)}),children:[o(w,{truncate:!0,children:s}),r&&o(a,{asChild:!0,display:"flex",flex:"none",children:q(r)})]})]}))),o(C,{asChild:!0,children:o("li",{children:o(j,{content:l["aria-label"]||c,disabled:d,side:"right",children:o(a,{asChild:!0,"data-disabled":i?"":void 0,"data-state":p?"active":void 0,...A({},v),...u,children:o(x,{disabled:i,ref:h,...b,children:e})})})})})});m.displayName="@optiaxiom/react/NavItem";export{m as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as l,u as r}from"./register-D6N8B6AV.js";import{o as m}from"./Box-
|
|
1
|
+
import{D as l,u as r}from"./register-D6N8B6AV.js";import{o as m}from"./Box-bm7oB_w-.js";import{e as p}from"./NavGroupContext-1-mUYwik.js";const i=l(({children:o,...t},e)=>{const{id:a}=p("@optiaxiom/react/NavList");if(a)throw new Error("huh");return r(m,{asChild:!0,display:"flex",flexDirection:"column",gap:"4",p:"0",...t,children:r("ul",{ref:e,children:o})})});i.displayName="@optiaxiom/react/NavList";export{i as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as a,u as e}from"./register-D6N8B6AV.js";import{o as t}from"./Separator-
|
|
1
|
+
import{D as a,u as e}from"./register-D6N8B6AV.js";import{o as t}from"./Separator-BMzH2BhQ.js";const o=a((r,m)=>e(t,{flex:"none",mx:"12",my:"8",ref:m,...r}));o.displayName="@optiaxiom/react/NavSeparator";export{o as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as I,d as k,T as N,D as S,A as j,u as e,y as D}from"./register-D6N8B6AV.js";import{u as L}from"./index-B-5OXVqV.js";import{o as z}from"./Box-bm7oB_w-.js";import{h as _}from"./Button-CopADjxg.js";import"./ButtonGroup-BespxqLs.js";import{i as w}from"./ButtonRoot-BAFQsC9I.js";import{t as T}from"./Flex-BxgcCpyo.js";import{o as O}from"./Icon-CnLE52t0.js";import{e as R,a as X}from"./IconAngleRight-nYBLv_BJ.js";import{n as q}from"./IconEllipsis-62ArFL79.js";import{i as M}from"./Tooltip-C-BguHZD.js";import"./TooltipContent-CBiRligA.js";import"./TooltipProvider-CJtCWlBF.js";import"./TooltipRoot-CRodEgtv.js";import"./TooltipTrigger-Bv7CZkpX.js";import{e as $}from"./VisuallyHidden-CLGCRunn.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as P}from"./recipeRuntime-DkvY0ny0.js";I("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._15zydff{position:relative}._1xk9rfl{pointer-events:none;position:absolute;visibility:hidden}._1xk9rfl,.rjl0vo{min-width:var(--ax-size-md)}}");var B=P({base:[{justifyContent:"center"},"rjl0vo"]}),E=P({base:[{justifyContent:"center",z:"10"},"_1xk9rfl"],variants:{animation:{false:{},true:{transition:"transform"}}}}),F=P({base:[{flexDirection:"row",gap:"2"},"_15zydff"]});function G({value:s,defaultValue:a,finalValue:t,onChange:u=()=>{}}){const[l,h]=k(a!==void 0?a:t);return s!==void 0?[s,u,!0]:[l,(o,...p)=>{h(o),u?.(o,...p)},!1]}function c(s,a){const t=a-s+1;return Array.from({length:t},(u,l)=>l+s)}const v="dots";function H({total:s,siblings:a=1,boundaries:t=1,page:u,initialPage:l=1,onChange:h}){const i=Math.max(Math.trunc(s),0),[o,p]=G({value:u,onChange:h,defaultValue:l,finalValue:l}),r=d=>{d<=0?p(1):d>i?p(i):p(d)},x=()=>r(o+1),y=()=>r(o-1),g=()=>r(1),C=()=>r(i);return{range:N(()=>{if(a*2+3+t*2>=i)return c(1,i);const d=Math.max(o-a,t),b=Math.min(o+a,i-t),m=d>t+2,f=b<i-(t+1);if(!m&&f){const n=a*2+t+2;return[...c(1,n),v,...c(i-(t-1),i)]}if(m&&!f){const n=t+1+2*a;return[...c(1,t),v,...c(i-n,i)]}return[...c(1,t),v,...c(d,b),v,...c(i-t+1,i)]},[i,a,o]),active:o,setPage:r,next:x,previous:y,first:g,last:C}}const V=S(({defaultPage:s=1,disabled:a,onPageChange:t,page:u,total:l,...h},i)=>{const[o,p]=L({caller:"@optiaxiom/react/Pagination",defaultProp:s,onChange:t,prop:u}),{active:r,next:x,previous:y,range:g,setPage:C}=H({onChange:p,page:o,siblings:2,total:l}),[d,b]=k(!1),m=j(null),f=j(null);return D(()=>{!m.current||!f.current||(f.current.style.transform=`translateX(${m.current.offsetLeft}px)`,f.current.style.visibility="visible",setTimeout(()=>b(!0),150))},[r]),e(z,{asChild:!0,...h,children:e("nav",{"aria-label":"pagination",ref:i,children:e(T,{asChild:!0,...F(),children:e("ul",{children:[e(w,{appearance:"subtle","aria-hidden":!0,asChild:!0,"data-state":"active",disabled:a,ref:f,...E({animation:d}),children:e("span",{children:r})}),e("li",{children:e(M,{content:"Prev",disabled:a||r===1,children:e(_,{appearance:"subtle","aria-label":"Previous page",disabled:a||r===1,icon:e(R,{}),onClick:y})})}),g.map((n,A)=>e("li",{children:n==="dots"?e(z,{alignItems:"stretch",display:"flex",justifyContent:"center",px:"6",py:"8",size:"md",children:e(O,{asChild:!0,color:a?"fg.disabled":"fg.default",cursor:a?"not-allowed":"default",children:e(q,{})})}):e(w,{appearance:"subtle","aria-current":r===n?"page":void 0,disabled:a,onClick:()=>C(n),ref:r===n?m:void 0,...B(),children:[e($,{children:"page"})," ",n,n===1?e($,{children:"(first page)"}):n===l?e($,{children:"(last page)"}):null]})},n==="dots"?`${n}-${A<g.indexOf(r)?"before":"after"}`:n)),e("li",{children:e(M,{content:"Next",disabled:a||r===l,children:e(_,{appearance:"subtle","aria-label":"Next page",disabled:a||r===l,icon:e(X,{}),onClick:x})})})]})})})})});V.displayName="@optiaxiom/react/Pagination";export{V as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as t,u as m}from"./register-D6N8B6AV.js";import{o as i}from"./Box-
|
|
1
|
+
import{D as t,u as m}from"./register-D6N8B6AV.js";import{o as i}from"./Box-bm7oB_w-.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as l}from"./recipeRuntime-DkvY0ny0.js";var n=l({base:{bg:"bg.default",color:"fg.default",shadow:"md",z:"popover"},variants:{elevation:{dialog:{rounded:"lg"},menu:{border:"1",borderColor:"border.secondary",rounded:"lg"},screen:{}}}});const o=t(({className:e,elevation:r="menu",...a},d)=>m(i,{ref:d,...n({elevation:r},e),...a}));o.displayName="@optiaxiom/react/Paper";export{o as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as m,u as r}from"./register-D6N8B6AV.js";import{A as t}from"./index-DgGPVV3u.js";import{o as c}from"./Box-
|
|
1
|
+
import{D as m,u as r}from"./register-D6N8B6AV.js";import{A as t}from"./index-DgGPVV3u.js";import{o as c}from"./Box-bm7oB_w-.js";const o=m(({asChild:i,children:e,...a},h)=>r(c,{asChild:!0,...a,children:r(t,{asChild:i,ref:h,children:e})}));o.displayName="@optiaxiom/react/PopoverAnchor";export{o as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as h,A as u,u as r}from"./register-D6N8B6AV.js";import{u as C}from"./index-uEcL3mb6.js";import{C as g,a as v}from"./index-DgGPVV3u.js";import{o as w}from"./ModalContext-C7MELOWc.js";import"./ModalLayer-DmrL4xRd.js";import{r as $}from"./ModalListbox-
|
|
1
|
+
import{D as h,A as u,u as r}from"./register-D6N8B6AV.js";import{u as C}from"./index-uEcL3mb6.js";import{C as g,a as v}from"./index-DgGPVV3u.js";import{o as w}from"./ModalContext-C7MELOWc.js";import"./ModalLayer-DmrL4xRd.js";import{r as $}from"./ModalListbox-CqefyDNj.js";import{o as k}from"./Portal-BdXmuU-i.js";import"./Transition-B5G6J_7n.js";import{f as x}from"./TransitionGroup--tyB9ZeA.js";import"./isHoverSupported-DMhF6LbU.js";import{e as y}from"./onReactSelectInputBlur-Ccsx5sdl.js";import{t as A}from"./PopoverContext-C_QjV6-3.js";import{r as e}from"./theme-css-DX4sf6ZH.js";const t=h(({align:i="start",children:n,sideOffset:s=2,withArrow:p,...m},l)=>{const{open:a,presence:d,setPresence:c}=A("@optiaxiom/react/PopoverContent"),o=u(null),f=C(o,l);return r(x,{onPresenceChange:c,open:a,presence:d,children:r(k,{asChild:!0,children:r($,{asChild:!0,onBlur:y,p:"16",provider:"popover",...m,children:r(g,{align:i,ref:f,sideOffset:s,children:[r(w,{shardRef:o,children:n}),p&&r(v,{asChild:!0,children:r("svg",{fill:e.colors["bg.default"],height:4,preserveAspectRatio:"none",stroke:e.colors["border.secondary"],viewBox:"0 0 30 10",width:8,children:[r("polygon",{points:"0,0 30,0 15,10"}),r("polyline",{points:"0,0 15,10 30,0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5"})]})})]})})})})});t.displayName="@optiaxiom/react/PopoverContent";export{t as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as s,d as c,u as i,y as d}from"./register-D6N8B6AV.js";import{T as n}from"./index-DgGPVV3u.js";import{h as l}from"./Button-
|
|
1
|
+
import{D as s,d as c,u as i,y as d}from"./register-D6N8B6AV.js";import{T as n}from"./index-DgGPVV3u.js";import{h as l}from"./Button-CopADjxg.js";import"./ButtonGroup-BespxqLs.js";const t=s(({asChild:e,children:o,hasCustomAnchor:m,...a},h)=>{const[r,p]=c(!m);return d(()=>{r||p(!0)},[r]),r&&i(n,{asChild:!0,ref:h,...a,children:e?o:i(l,{children:o})})});t.displayName="@optiaxiom/react/PopoverTrigger";export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as P,q as T,y as F,T as ce,R as fe,a as ht,h as gt,d as Ae,D as We,u as $}from"./register-D6N8B6AV.js";import{u as pt}from"./index-uEcL3mb6.js";import{P as mt}from"./index-CyQ6-EUv.js";import{u as je}from"./index-B-5OXVqV.js";import{_ as qe}from"./tslib.es6-RFyvkXDo.js";import{f as vt}from"./useEffectEvent-CoA7-PTt.js";import"./FieldContext-CPdl4sHm.js";import"./isHoverSupported-DMhF6LbU.js";import{o as It}from"./useObserveValue--1YXdcXi.js";import{o as yt,t as bt}from"./SelectContext-F1B52zWr.js";import{e as xt}from"./VisuallyHidden-CLGCRunn.js";function he(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(null,arguments)}const _e=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Ne=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",ge=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Ne(n.overflowY,t)||Ne(n.overflowX,t)||(r=>{const i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},pe=(e,t,n,r,i,a,o,u)=>a<e&&o>t||a>e&&o<t?0:a<=e&&u<=n||o>=t&&u>=n?a-e-r:o>t&&u<n||a<e&&u>n?o-t+i:0,wt=e=>e.parentElement??(e.getRootNode().host||null),Ot=(e,t)=>{var n,r,i,a;if(typeof document>"u")return[];const{inline:o,boundary:u,skipOverflowHiddenElements:c}=t,h=typeof u=="function"?u:V=>V!==u;if(!_e(e))throw new TypeError("Invalid target");const b=document.scrollingElement||document.documentElement,x=[];let g=e;for(;_e(g)&&h(g);){if(g=wt(g),g===b){x.push(g);break}g!=null&&g===document.body&&ge(g)&&!ge(document.documentElement)||g!=null&&ge(g,c)&&x.push(g)}const m=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,O=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,{scrollX:M,scrollY:p}=window,{height:v,width:H,top:_,right:C,bottom:q,left:L}=e.getBoundingClientRect(),{top:ee,right:te,left:z}=(V=>{const f=window.getComputedStyle(V);return{top:parseFloat(f.scrollMarginTop)||0,right:parseFloat(f.scrollMarginRight)||0,bottom:parseFloat(f.scrollMarginBottom)||0,left:parseFloat(f.scrollMarginLeft)||0}})(e);let K=_-ee,l=o==="center"?L+H/2-z+te:o==="end"?C+te:L-z;const G=[];for(let V=0;V<x.length;V++){const f=x[V],{height:re,width:ne,top:se,right:s,bottom:I,left:d}=f.getBoundingClientRect();if(_>=0&&L>=0&&q<=O&&C<=m&&(f===b&&!ge(f)||_>=se&&q<=I&&L>=d&&C<=s))return G;const w=getComputedStyle(f),S=parseInt(w.borderLeftWidth,10),k=parseInt(w.borderTopWidth,10),A=parseInt(w.borderRightWidth,10),W=parseInt(w.borderBottomWidth,10);let D=0,E=0;const B="offsetWidth"in f?f.offsetWidth-f.clientWidth-S-A:0,N="offsetHeight"in f?f.offsetHeight-f.clientHeight-k-W:0,j="offsetWidth"in f?f.offsetWidth===0?0:ne/f.offsetWidth:0,U="offsetHeight"in f?f.offsetHeight===0?0:re/f.offsetHeight:0;if(b===f)D=pe(p,p+O,O,k,W,p+K,p+K+v,v),E=o==="start"?l:o==="center"?l-m/2:o==="end"?l-m:pe(M,M+m,m,S,A,M+l,M+l+H,H),D=Math.max(0,D+p),E=Math.max(0,E+M);else{D=pe(se,I,re,k,W+N,K,K+v,v),E=o==="start"?l-d-S:o==="center"?l-(d+ne/2)+B/2:o==="end"?l-s+A+B:pe(d,s,ne,S,A+B,l,l+H,H);const{scrollLeft:Z,scrollTop:J}=f;D=U===0?0:Math.max(0,Math.min(J+D/U,f.scrollHeight-re/U+N)),E=j===0?0:Math.max(0,Math.min(Z+E/j,f.scrollWidth-ne/j+B)),K+=J-D,l+=Z-E}G.push({el:f,top:D,left:E})}return G};var Dt=0;function Ue(){}function Mt(e,t){if(e){var n=Ot(e,{boundary:t});n.forEach(function(r){var i=r.el,a=r.top,o=r.left;i.scrollTop=a,i.scrollLeft=o})}}function Ye(e,t,n){var r=e===t||t instanceof n.Node&&e.contains&&e.contains(t);return r}function Oe(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var a=arguments.length,o=new Array(a),u=0;u<a;u++)o[u]=arguments[u];r(),n=setTimeout(function(){n=null,e.apply(void 0,o)},t)}return i.cancel=r,i}function Y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(function(u){return u&&u.apply(void 0,[r].concat(a)),r.preventDownshiftDefault||r.hasOwnProperty("nativeEvent")&&r.nativeEvent.preventDownshiftDefault})}}function De(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){t.forEach(function(i){typeof i=="function"?i(r):i&&(i.current=r)})}}function Tt(){return String(Dt++)}function Me(e,t){return!e||!t?e:Object.keys(e).reduce(function(n,r){return n[r]=Et(t,r)?t[r]:e[r],n},{})}function Et(e,t){return e[t]!==void 0}function Ct(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function me(e,t,n,r,i){i===void 0&&(i=!1);var a=n.length;if(a===0)return-1;var o=a-1;(typeof e!="number"||e<0||e>o)&&(e=t>0?-1:o+1);var u=e+t;u<0?u=i?o:0:u>o&&(u=i?0:o);var c=ve(u,t<0,n,r,i);return c===-1?e>=a?-1:e:c}function ve(e,t,n,r,i){i===void 0&&(i=!1);var a=n.length;if(t){for(var o=e;o>=0;o--)if(!r(n[o],o))return o}else for(var u=e;u<a;u++)if(!r(n[u],u))return u;return i?ve(t?a-1:0,t,n,r):-1}function Xe(e,t,n,r){return r===void 0&&(r=!0),n&&t.some(function(i){return i&&(Ye(i,e,n)||r&&Ye(i,(()=>{let a=n.document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;return a})(),n))})}var kt=Oe(function(e){ze(e).textContent=""},500);function ze(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function Bt(e,t){if(!(!e||!t)){var n=ze(t);n.textContent=e,kt(t)}}function Kt(e){var t=e?.getElementById("a11y-status-message");t&&t.remove()}var Ge={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Vt(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){St(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(y({type:i},a))}function St(e,t,n,r){var i=t.props,a=t.type,o="on"+Te(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](y({type:a},r))}function Rt(e,t){return t.changes}var Ze=Oe(function(e,t){Bt(e,t)},200),Pt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ht:F,Ft="useId"in fe?function(e){var t=e.id,n=e.labelId,r=e.menuId,i=e.getItemId,a=e.toggleButtonId,o=e.inputId,u="downshift-"+fe.useId();t||(t=u);var c=P({labelId:n||t+"-label",menuId:r||t+"-menu",getItemId:i||function(h){return t+"-item-"+h},toggleButtonId:a||t+"-toggle-button",inputId:o||t+"-input"});return c.current}:function(e){var t=e.id,n=t===void 0?"downshift-"+Tt():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,u=e.inputId,c=P({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(h){return n+"-item-"+h},toggleButtonId:o||n+"-toggle-button",inputId:u||n+"-input"});return c.current};function Ht(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function Lt(e){return/^\S{1}$/.test(e)}function Te(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Je(e){var t=P(e);return t.current=e,t}function At(e,t,n,r){var i=P(),a=P(),o=T(function(m,O){a.current=O,m=Me(m,O.props);var M=e(m,O),p=O.props.stateReducer(m,y({},O,{changes:M}));return p},[e]),u=gt(o,t,n),c=u[0],h=u[1],b=Je(t),x=T(function(m){return h(y({props:b.current},m))},[b]),g=a.current;return F(function(){var m=Me(i.current,g?.props),O=g&&i.current&&!r(m,c);O&&Vt(g,m,c),i.current=c},[c,g,r]),[c,x]}function Wt(e,t,n,r){var i=At(e,t,n,r),a=i[0],o=i[1];return[Me(a,t),o]}var oe={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:Rt,scrollIntoView:Mt,environment:typeof window>"u"?void 0:window};function X(e,t,n){n===void 0&&(n=Ge);var r=e["default"+Te(t)];return r!==void 0?r:n[t]}function ue(e,t,n){n===void 0&&(n=Ge);var r=e[t];if(r!==void 0)return r;var i=e["initial"+Te(t)];return i!==void 0?i:X(e,t,n)}function jt(e){var t=ue(e,"selectedItem"),n=ue(e,"isOpen"),r=zt(e),i=ue(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex(function(a){return e.itemToKey(a)===e.itemToKey(t)}):r,isOpen:n,selectedItem:t,inputValue:i}}function Ie(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=e.isItemDisabled,u=e.itemToKey,c=t.selectedItem,h=t.highlightedIndex;return r.length===0?-1:i!==void 0&&h===i&&!o(r[i],i)?i:a!==void 0&&!o(r[a],a)?a:c?r.findIndex(function(b){return u(c)===u(b)}):n<0&&!o(r[r.length-1],r.length-1)?r.length-1:n>0&&!o(r[0],0)?0:-1}function qt(e,t,n){var r=P({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return F(function(){if(!e)return Ue;var i=n.map(function(b){return b.current});function a(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function o(b){r.current.isMouseDown=!1,Xe(b.target,i,e)||t()}function u(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function c(){r.current.isTouchMove=!0}function h(b){r.current.isTouchEnd=!0,!r.current.isTouchMove&&!Xe(b.target,i,e,!1)&&t()}return e.addEventListener("mousedown",a),e.addEventListener("mouseup",o),e.addEventListener("touchstart",u),e.addEventListener("touchmove",c),e.addEventListener("touchend",h),function(){e.removeEventListener("mousedown",a),e.removeEventListener("mouseup",o),e.removeEventListener("touchstart",u),e.removeEventListener("touchmove",c),e.removeEventListener("touchend",h)}},[n,e,t]),r.current}var _t=function(){return Ue};function Nt(e,t,n,r){r===void 0&&(r={});var i=r.document,a=Xt();F(function(){if(!(!e||a||!i)){var o=e(t);Ze(o,i)}},n),F(function(){return function(){Ze.cancel(),Kt(i)}},[i])}function Ut(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,u=P(!0);return Pt(function(){t<0||!n||!Object.keys(r.current).length||(u.current===!1?u.current=!0:o(i(t),a))},[t]),u}function Qe(e,t,n){var r,i=((r=e.items)==null?void 0:r.length)&&t>=0;return y({isOpen:!1,highlightedIndex:-1},i&&y({selectedItem:e.items[t],isOpen:X(e,"isOpen"),highlightedIndex:X(e,"highlightedIndex")},n))}function Yt(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Xt(){var e=fe.useRef(!0);return fe.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function $e(e){var t=X(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function zt(e){var t=ue(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}y({}),y({});function Gt(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Ie(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Ie(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:i.isItemDisabled(i.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:$e(i),isOpen:X(i,"isOpen"),selectedItem:X(i,"selectedItem"),inputValue:X(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return y({},e,a)}function Zt(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,a=e.isItemDisabled,o=t.toLowerCase(),u=0;u<r.length;u++){var c=(u+n+(t.length<2?1:0))%r.length,h=r[c];if(h!==void 0&&i(h).toLowerCase().startsWith(o)&&!a(h,c))return c}return n}y({});var Jt=qe(qe({},oe),{isItemDisabled:function(){return!1}}),ye=0,Ee=1,Ce=2,be=3,ke=4,Be=5,Ke=6,Ve=7,Se=8,Re=9,Pe=10,xe=11,et=12,tt=13,Fe=14,nt=15,it=16,rt=17,ot=18,He=19,Le=20,ut=21,at=Object.freeze({__proto__:null,FunctionCloseMenu:rt,FunctionOpenMenu:it,FunctionReset:ut,FunctionSelectItem:He,FunctionSetHighlightedIndex:ot,FunctionSetInputValue:Le,FunctionToggleMenu:nt,ItemClick:Fe,ItemMouseMove:tt,MenuMouseLeave:et,ToggleButtonBlur:xe,ToggleButtonClick:ye,ToggleButtonKeyDownArrowDown:Ee,ToggleButtonKeyDownArrowUp:Ce,ToggleButtonKeyDownCharacter:be,ToggleButtonKeyDownEnd:Ke,ToggleButtonKeyDownEnter:Ve,ToggleButtonKeyDownEscape:ke,ToggleButtonKeyDownHome:Be,ToggleButtonKeyDownPageDown:Pe,ToggleButtonKeyDownPageUp:Re,ToggleButtonKeyDownSpaceButton:Se});function Qt(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case Fe:o={isOpen:X(i,"isOpen"),highlightedIndex:$e(i),selectedItem:i.items[t.index]};break;case be:{var u=t.key,c=""+e.inputValue+u,h=!e.isOpen&&e.selectedItem?i.items.findIndex(function(m){return i.itemToKey(m)===i.itemToKey(e.selectedItem)}):e.highlightedIndex,b=Zt({keysSoFar:c,highlightedIndex:h,items:i.items,itemToString:i.itemToString,isItemDisabled:i.isItemDisabled});o={inputValue:c,highlightedIndex:b,isOpen:!0}}break;case Ee:{var x=e.isOpen?me(e.highlightedIndex,1,i.items,i.isItemDisabled):a&&e.selectedItem==null?-1:Ie(i,e,1);o={highlightedIndex:x,isOpen:!0}}break;case Ce:if(e.isOpen&&a)o=Qe(i,e.highlightedIndex,!1);else{var g=e.isOpen?me(e.highlightedIndex,-1,i.items,i.isItemDisabled):Ie(i,e,-1);o={highlightedIndex:g,isOpen:!0}}break;case Ve:case Se:o=Qe(i,e.highlightedIndex,!1);break;case Be:o={highlightedIndex:ve(0,!1,i.items,i.isItemDisabled),isOpen:!0};break;case Ke:o={highlightedIndex:ve(i.items.length-1,!0,i.items,i.isItemDisabled),isOpen:!0};break;case Re:o={highlightedIndex:me(e.highlightedIndex,-10,i.items,i.isItemDisabled)};break;case Pe:o={highlightedIndex:me(e.highlightedIndex,10,i.items,i.isItemDisabled)};break;case ke:o={isOpen:!1,highlightedIndex:-1};break;case xe:o=y({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&{selectedItem:i.items[e.highlightedIndex]});break;case He:o={selectedItem:t.selectedItem};break;default:return Gt(e,t,at)}return y({},e,o)}var $t=["onClick"],en=["onMouseLeave","refKey","ref"],tn=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],nn=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];ae.stateChangeTypes=at;function ae(e){e===void 0&&(e={});var t=y({},Jt,e),n=t.scrollIntoView,r=t.environment,i=t.getA11yStatusMessage,a=Wt(Qt,t,jt,Yt),o=a[0],u=a[1],c=o.isOpen,h=o.highlightedIndex,b=o.selectedItem,x=o.inputValue,g=P(null),m=P(null),O=P({}),M=P(null),p=Ft(t),v=Je({state:o,props:t}),H=T(function(s){return O.current[p.getItemId(s)]},[p]);Nt(i,o,[c,h,b,x],r);var _=Ut({menuElement:m.current,highlightedIndex:h,isOpen:c,itemRefs:O,scrollIntoView:n,getItemNodeFromIndex:H});F(function(){return M.current=Oe(function(s){s({type:Le,inputValue:""})},500),function(){M.current.cancel()}},[]),F(function(){x&&M.current(u)},[u,x]),F(function(){var s=ue(t,"isOpen");s&&g.current&&g.current.focus()},[]);var C=qt(r,T(function(){v.current.state.isOpen&&u({type:xe})},[u,v]),ce(function(){return[m,g]},[m.current,g.current])),q=_t();F(function(){c||(O.current={})},[c]);var L=ce(function(){return{ArrowDown:function(s){s.preventDefault(),u({type:Ee,altKey:s.altKey})},ArrowUp:function(s){s.preventDefault(),u({type:Ce,altKey:s.altKey})},Home:function(s){s.preventDefault(),u({type:Be})},End:function(s){s.preventDefault(),u({type:Ke})},Escape:function(){v.current.state.isOpen&&u({type:ke})},Enter:function(s){s.preventDefault(),u({type:v.current.state.isOpen?Ve:ye})},PageUp:function(s){v.current.state.isOpen&&(s.preventDefault(),u({type:Re}))},PageDown:function(s){v.current.state.isOpen&&(s.preventDefault(),u({type:Pe}))}," ":function(s){s.preventDefault();var I=v.current.state;if(!I.isOpen){u({type:ye});return}I.inputValue?u({type:be,key:" "}):u({type:Se})}}},[u,v]),ee=T(function(){u({type:nt})},[u]),te=T(function(){u({type:rt})},[u]),z=T(function(){u({type:it})},[u]),K=T(function(s){u({type:ot,highlightedIndex:s})},[u]),l=T(function(s){u({type:He,selectedItem:s})},[u]),G=T(function(){u({type:ut})},[u]),V=T(function(s){u({type:Le,inputValue:s})},[u]),f=T(function(s){var I=s===void 0?{}:s,d=I.onClick,w=he(I,$t),S=function(){var k;(k=g.current)==null||k.focus()};return y({id:p.labelId,htmlFor:p.toggleButtonId,onClick:Y(d,S)},w)},[p]),re=T(function(s,I){var d,w=s===void 0?{}:s,S=w.onMouseLeave,k=w.refKey,A=k===void 0?"ref":k,W=w.ref,D=he(w,en),E=I===void 0?{}:I;E.suppressRefError;var B=function(){u({type:et})};return y((d={},d[A]=De(W,function(N){m.current=N}),d.id=p.menuId,d.role="listbox",d["aria-labelledby"]=D&&D["aria-label"]?void 0:""+p.labelId,d.onMouseLeave=Y(S,B),d),D)},[u,q,p]),ne=T(function(s,I){var d,w=s===void 0?{}:s,S=w.onBlur,k=w.onClick;w.onPress;var A=w.onKeyDown,W=w.refKey,D=W===void 0?"ref":W,E=w.ref,B=he(w,tn),N=I===void 0?{}:I;N.suppressRefError;var j=v.current.state,U=function(){u({type:ye})},Z=function(){j.isOpen&&!C.isMouseDown&&u({type:xe})},J=function(Q){var R=Ct(Q);R&&L[R]?L[R](Q):Lt(R)&&u({type:be,key:R})},ie=y((d={},d[D]=De(E,function(Q){g.current=Q}),d["aria-activedescendant"]=j.isOpen&&j.highlightedIndex>-1?p.getItemId(j.highlightedIndex):"",d["aria-controls"]=p.menuId,d["aria-expanded"]=v.current.state.isOpen,d["aria-haspopup"]="listbox",d["aria-labelledby"]=B&&B["aria-label"]?void 0:""+p.labelId,d.id=p.toggleButtonId,d.role="combobox",d.tabIndex=0,d.onBlur=Y(S,Z),d),B);return B.disabled||(ie.onClick=Y(k,U),ie.onKeyDown=Y(A,J)),ie},[u,p,v,C,q,L]),se=T(function(s){var I,d=s===void 0?{}:s,w=d.item,S=d.index,k=d.onMouseMove,A=d.onClick,W=d.onMouseDown;d.onPress;var D=d.refKey,E=D===void 0?"ref":D,B=d.disabled,N=d.ref,j=he(d,nn);B!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var U=v.current,Z=U.state,J=U.props,ie=Ht(w,S,J.items,"Pass either item or index to getItemProps!"),Q=ie[0],R=ie[1],we=J.isItemDisabled(Q,R),dt=function(){C.isTouchEnd||R===Z.highlightedIndex||(_.current=!1,u({type:tt,index:R,disabled:we}))},ct=function(){u({type:Fe,index:R})},ft=function(de){return de.preventDefault()},le=y((I={},I[E]=De(N,function(de){de&&(O.current[p.getItemId(R)]=de)}),I["aria-disabled"]=we,I["aria-selected"]=Q===Z.selectedItem,I.id=p.getItemId(R),I.role="option",I),j);return we||(le.onClick=Y(A,ct)),le.onMouseMove=Y(k,dt),le.onMouseDown=Y(W,ft),le},[v,p,C,_,u]);return{getToggleButtonProps:ne,getLabelProps:f,getMenuProps:re,getItemProps:se,toggleMenu:ee,openMenu:z,closeMenu:te,setHighlightedIndex:K,selectItem:l,reset:G,setInputValue:V,highlightedIndex:h,isOpen:c,selectedItem:b,inputValue:x}}y({}),y({},oe,{isItemDisabled:function(){return!1}}),y({}),oe.itemToKey,oe.stateReducer,oe.environment;function rn(e,t){const[n,r]=Ae(!1);F(()=>{e?requestAnimationFrame(()=>requestAnimationFrame(()=>r(!0))):r(!1)},[e,r]);const[i,a]=Ae(t),o=vt(t);return F(()=>{n||a(o)},[o,n]),[n?i:-1,a,n]}const st=We(({defaultValue:e,disabled:t,name:n,onChange:r,required:i,value:a},o)=>{const{items:u}=yt("@optiaxiom/react/SelectHiddenSelect"),c=ce(()=>u.map(h=>$("option",{value:h.value,children:h.value},h.value)),[u]);return $(xt,{"aria-hidden":!0,children:$("select",{defaultValue:e,disabled:t,name:n,onChange:r,ref:o,required:i,tabIndex:-1,value:a,children:[$("option",{value:""}),c]})})});st.displayName="@optiaxiom/react/SelectHiddenSelect";const on=(e,t)=>{F(()=>{const n=e.current;if(!n)return;const r=n.closest("form");if(!r)return;const i=()=>t("");return r.addEventListener("reset",i),()=>r.removeEventListener("reset",i)},[e,t])},lt=We(({children:e,defaultOpen:t=!1,defaultValue:n,disabled:r,loading:i,name:a,onBlur:o,onChange:u,onOpenChange:c,onValueChange:h,open:b,options:x,required:g,value:m},O)=>{const M=P(null),p=pt(M,O),[v,H]=je({caller:"@optiaxiom/react/Select",defaultProp:n??"",onChange:h,prop:m}),_=It(M,H);on(M,H);const C=ce(()=>v!==void 0?x.find(l=>l.value===v):void 0,[x,v]),[q,L]=je({caller:"@optiaxiom/react/Select",defaultProp:t,onChange:c,prop:b}),[ee,te,z]=rn(q,()=>C?x.findIndex(l=>!l.disabledReason&&C.value===l.value):-1),K=ae({highlightedIndex:ee===-1&&z?x.findIndex(l=>!l.disabledReason):ee,isItemDisabled:l=>!!l.disabledReason,isOpen:z,items:x,itemToKey:l=>l!==null?l.value:l,itemToString:l=>l!==null?l.label:"",onHighlightedIndexChange(l){l.type!==ae.stateChangeTypes.MenuMouseLeave&&(l.type===ae.stateChangeTypes.ItemMouseMove&&q||l.isOpen)&&te(l.highlightedIndex)},onIsOpenChange({isOpen:l}){L(l)},onSelectedItemChange({selectedItem:l}){_(l?.value??"")},selectedItem:C??null,stateReducer:(l,G)=>{const{changes:V,type:f}=G;switch(f){case ae.stateChangeTypes.ToggleButtonBlur:return{...V,selectedItem:l.selectedItem};default:return V}}});return K.getToggleButtonProps({},{suppressRefError:!0}),K.getMenuProps({},{suppressRefError:!0}),$(mt,{children:$(bt,{disabled:r,downshift:K,highlightedItem:x[K.highlightedIndex],isOpen:q,items:x,loading:i,onBlur:o,selectedItem:C,children:[$(st,{defaultValue:n,disabled:r,name:a,onChange:l=>{H(l.target.value),u?.(l)},ref:p,required:g,value:m}),e]})})});lt.displayName="@optiaxiom/react/Select";export{lt as I};
|
|
1
|
+
import{A as P,q as T,y as F,T as ce,R as fe,a as ht,h as gt,d as Ae,D as We,u as $}from"./register-D6N8B6AV.js";import{u as pt}from"./index-uEcL3mb6.js";import{P as mt}from"./index-CyQ6-EUv.js";import{u as je}from"./index-B-5OXVqV.js";import{_ as qe}from"./tslib.es6-RFyvkXDo.js";import{f as vt}from"./useEffectEvent-CoA7-PTt.js";import"./FieldContext-CPdl4sHm.js";import"./isHoverSupported-DMhF6LbU.js";import{o as It}from"./useObserveValue--1YXdcXi.js";import{o as yt,t as bt}from"./SelectContext-F1B52zWr.js";import{e as xt}from"./VisuallyHidden-CLGCRunn.js";function he(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(null,arguments)}const _e=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Ne=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",ge=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Ne(n.overflowY,t)||Ne(n.overflowX,t)||(r=>{const i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},pe=(e,t,n,r,i,a,o,u)=>a<e&&o>t||a>e&&o<t?0:a<=e&&u<=n||o>=t&&u>=n?a-e-r:o>t&&u<n||a<e&&u>n?o-t+i:0,wt=e=>e.parentElement??(e.getRootNode().host||null),Ot=(e,t)=>{var n,r,i,a;if(typeof document>"u")return[];const{inline:o,boundary:u,skipOverflowHiddenElements:c}=t,h=typeof u=="function"?u:V=>V!==u;if(!_e(e))throw new TypeError("Invalid target");const b=document.scrollingElement||document.documentElement,x=[];let g=e;for(;_e(g)&&h(g);){if(g=wt(g),g===b){x.push(g);break}g!=null&&g===document.body&&ge(g)&&!ge(document.documentElement)||g!=null&&ge(g,c)&&x.push(g)}const m=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,O=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,{scrollX:M,scrollY:p}=window,{height:v,width:H,top:_,right:C,bottom:q,left:L}=e.getBoundingClientRect(),{top:ee,right:te,left:z}=(V=>{const f=window.getComputedStyle(V);return{top:parseFloat(f.scrollMarginTop)||0,right:parseFloat(f.scrollMarginRight)||0,bottom:parseFloat(f.scrollMarginBottom)||0,left:parseFloat(f.scrollMarginLeft)||0}})(e);let K=_-ee,l=o==="center"?L+H/2-z+te:o==="end"?C+te:L-z;const G=[];for(let V=0;V<x.length;V++){const f=x[V],{height:re,width:ne,top:se,right:s,bottom:I,left:d}=f.getBoundingClientRect();if(_>=0&&L>=0&&q<=O&&C<=m&&(f===b&&!ge(f)||_>=se&&q<=I&&L>=d&&C<=s))return G;const w=getComputedStyle(f),S=parseInt(w.borderLeftWidth,10),k=parseInt(w.borderTopWidth,10),A=parseInt(w.borderRightWidth,10),W=parseInt(w.borderBottomWidth,10);let D=0,E=0;const B="offsetWidth"in f?f.offsetWidth-f.clientWidth-S-A:0,N="offsetHeight"in f?f.offsetHeight-f.clientHeight-k-W:0,j="offsetWidth"in f?f.offsetWidth===0?0:ne/f.offsetWidth:0,U="offsetHeight"in f?f.offsetHeight===0?0:re/f.offsetHeight:0;if(b===f)D=pe(p,p+O,O,k,W,p+K,p+K+v,v),E=o==="start"?l:o==="center"?l-m/2:o==="end"?l-m:pe(M,M+m,m,S,A,M+l,M+l+H,H),D=Math.max(0,D+p),E=Math.max(0,E+M);else{D=pe(se,I,re,k,W+N,K,K+v,v),E=o==="start"?l-d-S:o==="center"?l-(d+ne/2)+B/2:o==="end"?l-s+A+B:pe(d,s,ne,S,A+B,l,l+H,H);const{scrollLeft:Z,scrollTop:J}=f;D=U===0?0:Math.max(0,Math.min(J+D/U,f.scrollHeight-re/U+N)),E=j===0?0:Math.max(0,Math.min(Z+E/j,f.scrollWidth-ne/j+B)),K+=J-D,l+=Z-E}G.push({el:f,top:D,left:E})}return G};var Dt=0;function Ue(){}function Mt(e,t){if(e){var n=Ot(e,{boundary:t});n.forEach(function(r){var i=r.el,a=r.top,o=r.left;i.scrollTop=a,i.scrollLeft=o})}}function Ye(e,t,n){var r=e===t||t instanceof n.Node&&e.contains&&e.contains(t);return r}function Oe(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var a=arguments.length,o=new Array(a),u=0;u<a;u++)o[u]=arguments[u];r(),n=setTimeout(function(){n=null,e.apply(void 0,o)},t)}return i.cancel=r,i}function Y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(function(u){return u&&u.apply(void 0,[r].concat(a)),r.preventDownshiftDefault||r.hasOwnProperty("nativeEvent")&&r.nativeEvent.preventDownshiftDefault})}}function De(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){t.forEach(function(i){typeof i=="function"?i(r):i&&(i.current=r)})}}function Tt(){return String(Dt++)}function Me(e,t){return!e||!t?e:Object.keys(e).reduce(function(n,r){return n[r]=Et(t,r)?t[r]:e[r],n},{})}function Et(e,t){return e[t]!==void 0}function Ct(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function me(e,t,n,r,i){i===void 0&&(i=!1);var a=n.length;if(a===0)return-1;var o=a-1;(typeof e!="number"||e<0||e>o)&&(e=t>0?-1:o+1);var u=e+t;u<0?u=i?o:0:u>o&&(u=i?0:o);var c=ve(u,t<0,n,r,i);return c===-1?e>=a?-1:e:c}function ve(e,t,n,r,i){i===void 0&&(i=!1);var a=n.length;if(t){for(var o=e;o>=0;o--)if(!r(n[o],o))return o}else for(var u=e;u<a;u++)if(!r(n[u],u))return u;return i?ve(t?a-1:0,t,n,r):-1}function Xe(e,t,n,r){return r===void 0&&(r=!0),n&&t.some(function(i){return i&&(Ye(i,e,n)||r&&Ye(i,(()=>{let a=n.document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;return a})(),n))})}var kt=Oe(function(e){ze(e).textContent=""},500);function ze(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function Bt(e,t){if(!(!e||!t)){var n=ze(t);n.textContent=e,kt(t)}}function Kt(e){var t=e?.getElementById("a11y-status-message");t&&t.remove()}var Ge={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Vt(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){St(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(y({type:i},a))}function St(e,t,n,r){var i=t.props,a=t.type,o="on"+Te(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](y({type:a},r))}function Rt(e,t){return t.changes}var Ze=Oe(function(e,t){Bt(e,t)},200),Pt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ht:F,Ft="useId"in fe?function(e){var t=e.id,n=e.labelId,r=e.menuId,i=e.getItemId,a=e.toggleButtonId,o=e.inputId,u="downshift-"+fe.useId();t||(t=u);var c=P({labelId:n||t+"-label",menuId:r||t+"-menu",getItemId:i||function(h){return t+"-item-"+h},toggleButtonId:a||t+"-toggle-button",inputId:o||t+"-input"});return c.current}:function(e){var t=e.id,n=t===void 0?"downshift-"+Tt():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,u=e.inputId,c=P({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(h){return n+"-item-"+h},toggleButtonId:o||n+"-toggle-button",inputId:u||n+"-input"});return c.current};function Ht(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function Lt(e){return/^\S{1}$/.test(e)}function Te(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Je(e){var t=P(e);return t.current=e,t}function At(e,t,n,r){var i=P(),a=P(),o=T(function(m,O){a.current=O,m=Me(m,O.props);var M=e(m,O),p=O.props.stateReducer(m,y({},O,{changes:M}));return p},[e]),u=gt(o,t,n),c=u[0],h=u[1],b=Je(t),x=T(function(m){return h(y({props:b.current},m))},[b]),g=a.current;return F(function(){var m=Me(i.current,g?.props),O=g&&i.current&&!r(m,c);O&&Vt(g,m,c),i.current=c},[c,g,r]),[c,x]}function Wt(e,t,n,r){var i=At(e,t,n,r),a=i[0],o=i[1];return[Me(a,t),o]}var oe={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:Rt,scrollIntoView:Mt,environment:typeof window>"u"?void 0:window};function X(e,t,n){n===void 0&&(n=Ge);var r=e["default"+Te(t)];return r!==void 0?r:n[t]}function ue(e,t,n){n===void 0&&(n=Ge);var r=e[t];if(r!==void 0)return r;var i=e["initial"+Te(t)];return i!==void 0?i:X(e,t,n)}function jt(e){var t=ue(e,"selectedItem"),n=ue(e,"isOpen"),r=zt(e),i=ue(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex(function(a){return e.itemToKey(a)===e.itemToKey(t)}):r,isOpen:n,selectedItem:t,inputValue:i}}function Ie(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=e.isItemDisabled,u=e.itemToKey,c=t.selectedItem,h=t.highlightedIndex;return r.length===0?-1:i!==void 0&&h===i&&!o(r[i],i)?i:a!==void 0&&!o(r[a],a)?a:c?r.findIndex(function(b){return u(c)===u(b)}):n<0&&!o(r[r.length-1],r.length-1)?r.length-1:n>0&&!o(r[0],0)?0:-1}function qt(e,t,n){var r=P({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return F(function(){if(!e)return Ue;var i=n.map(function(b){return b.current});function a(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function o(b){r.current.isMouseDown=!1,Xe(b.target,i,e)||t()}function u(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function c(){r.current.isTouchMove=!0}function h(b){r.current.isTouchEnd=!0,!r.current.isTouchMove&&!Xe(b.target,i,e,!1)&&t()}return e.addEventListener("mousedown",a),e.addEventListener("mouseup",o),e.addEventListener("touchstart",u),e.addEventListener("touchmove",c),e.addEventListener("touchend",h),function(){e.removeEventListener("mousedown",a),e.removeEventListener("mouseup",o),e.removeEventListener("touchstart",u),e.removeEventListener("touchmove",c),e.removeEventListener("touchend",h)}},[n,e,t]),r.current}var _t=function(){return Ue};function Nt(e,t,n,r){r===void 0&&(r={});var i=r.document,a=Xt();F(function(){if(!(!e||a||!i)){var o=e(t);Ze(o,i)}},n),F(function(){return function(){Ze.cancel(),Kt(i)}},[i])}function Ut(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,u=P(!0);return Pt(function(){t<0||!n||!Object.keys(r.current).length||(u.current===!1?u.current=!0:o(i(t),a))},[t]),u}function Qe(e,t,n){var r,i=((r=e.items)==null?void 0:r.length)&&t>=0;return y({isOpen:!1,highlightedIndex:-1},i&&y({selectedItem:e.items[t],isOpen:X(e,"isOpen"),highlightedIndex:X(e,"highlightedIndex")},n))}function Yt(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Xt(){var e=fe.useRef(!0);return fe.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function $e(e){var t=X(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function zt(e){var t=ue(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}y({}),y({});function Gt(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Ie(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Ie(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:i.isItemDisabled(i.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:$e(i),isOpen:X(i,"isOpen"),selectedItem:X(i,"selectedItem"),inputValue:X(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return y({},e,a)}function Zt(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,a=e.isItemDisabled,o=t.toLowerCase(),u=0;u<r.length;u++){var c=(u+n+(t.length<2?1:0))%r.length,h=r[c];if(h!==void 0&&i(h).toLowerCase().startsWith(o)&&!a(h,c))return c}return n}y({});var Jt=qe(qe({},oe),{isItemDisabled:function(){return!1}}),ye=0,Ee=1,Ce=2,be=3,ke=4,Be=5,Ke=6,Ve=7,Se=8,Re=9,Pe=10,xe=11,et=12,tt=13,Fe=14,nt=15,it=16,rt=17,ot=18,He=19,Le=20,ut=21,at=Object.freeze({__proto__:null,FunctionCloseMenu:rt,FunctionOpenMenu:it,FunctionReset:ut,FunctionSelectItem:He,FunctionSetHighlightedIndex:ot,FunctionSetInputValue:Le,FunctionToggleMenu:nt,ItemClick:Fe,ItemMouseMove:tt,MenuMouseLeave:et,ToggleButtonBlur:xe,ToggleButtonClick:ye,ToggleButtonKeyDownArrowDown:Ee,ToggleButtonKeyDownArrowUp:Ce,ToggleButtonKeyDownCharacter:be,ToggleButtonKeyDownEnd:Ke,ToggleButtonKeyDownEnter:Ve,ToggleButtonKeyDownEscape:ke,ToggleButtonKeyDownHome:Be,ToggleButtonKeyDownPageDown:Pe,ToggleButtonKeyDownPageUp:Re,ToggleButtonKeyDownSpaceButton:Se});function Qt(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case Fe:o={isOpen:X(i,"isOpen"),highlightedIndex:$e(i),selectedItem:i.items[t.index]};break;case be:{var u=t.key,c=""+e.inputValue+u,h=!e.isOpen&&e.selectedItem?i.items.findIndex(function(m){return i.itemToKey(m)===i.itemToKey(e.selectedItem)}):e.highlightedIndex,b=Zt({keysSoFar:c,highlightedIndex:h,items:i.items,itemToString:i.itemToString,isItemDisabled:i.isItemDisabled});o={inputValue:c,highlightedIndex:b,isOpen:!0}}break;case Ee:{var x=e.isOpen?me(e.highlightedIndex,1,i.items,i.isItemDisabled):a&&e.selectedItem==null?-1:Ie(i,e,1);o={highlightedIndex:x,isOpen:!0}}break;case Ce:if(e.isOpen&&a)o=Qe(i,e.highlightedIndex,!1);else{var g=e.isOpen?me(e.highlightedIndex,-1,i.items,i.isItemDisabled):Ie(i,e,-1);o={highlightedIndex:g,isOpen:!0}}break;case Ve:case Se:o=Qe(i,e.highlightedIndex,!1);break;case Be:o={highlightedIndex:ve(0,!1,i.items,i.isItemDisabled),isOpen:!0};break;case Ke:o={highlightedIndex:ve(i.items.length-1,!0,i.items,i.isItemDisabled),isOpen:!0};break;case Re:o={highlightedIndex:me(e.highlightedIndex,-10,i.items,i.isItemDisabled)};break;case Pe:o={highlightedIndex:me(e.highlightedIndex,10,i.items,i.isItemDisabled)};break;case ke:o={isOpen:!1,highlightedIndex:-1};break;case xe:o=y({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&{selectedItem:i.items[e.highlightedIndex]});break;case He:o={selectedItem:t.selectedItem};break;default:return Gt(e,t,at)}return y({},e,o)}var $t=["onClick"],en=["onMouseLeave","refKey","ref"],tn=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],nn=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];ae.stateChangeTypes=at;function ae(e){e===void 0&&(e={});var t=y({},Jt,e),n=t.scrollIntoView,r=t.environment,i=t.getA11yStatusMessage,a=Wt(Qt,t,jt,Yt),o=a[0],u=a[1],c=o.isOpen,h=o.highlightedIndex,b=o.selectedItem,x=o.inputValue,g=P(null),m=P(null),O=P({}),M=P(null),p=Ft(t),v=Je({state:o,props:t}),H=T(function(s){return O.current[p.getItemId(s)]},[p]);Nt(i,o,[c,h,b,x],r);var _=Ut({menuElement:m.current,highlightedIndex:h,isOpen:c,itemRefs:O,scrollIntoView:n,getItemNodeFromIndex:H});F(function(){return M.current=Oe(function(s){s({type:Le,inputValue:""})},500),function(){M.current.cancel()}},[]),F(function(){x&&M.current(u)},[u,x]),F(function(){var s=ue(t,"isOpen");s&&g.current&&g.current.focus()},[]);var C=qt(r,T(function(){v.current.state.isOpen&&u({type:xe})},[u,v]),ce(function(){return[m,g]},[m.current,g.current])),q=_t();F(function(){c||(O.current={})},[c]);var L=ce(function(){return{ArrowDown:function(s){s.preventDefault(),u({type:Ee,altKey:s.altKey})},ArrowUp:function(s){s.preventDefault(),u({type:Ce,altKey:s.altKey})},Home:function(s){s.preventDefault(),u({type:Be})},End:function(s){s.preventDefault(),u({type:Ke})},Escape:function(){v.current.state.isOpen&&u({type:ke})},Enter:function(s){s.preventDefault(),u({type:v.current.state.isOpen?Ve:ye})},PageUp:function(s){v.current.state.isOpen&&(s.preventDefault(),u({type:Re}))},PageDown:function(s){v.current.state.isOpen&&(s.preventDefault(),u({type:Pe}))}," ":function(s){s.preventDefault();var I=v.current.state;if(!I.isOpen){u({type:ye});return}I.inputValue?u({type:be,key:" "}):u({type:Se})}}},[u,v]),ee=T(function(){u({type:nt})},[u]),te=T(function(){u({type:rt})},[u]),z=T(function(){u({type:it})},[u]),K=T(function(s){u({type:ot,highlightedIndex:s})},[u]),l=T(function(s){u({type:He,selectedItem:s})},[u]),G=T(function(){u({type:ut})},[u]),V=T(function(s){u({type:Le,inputValue:s})},[u]),f=T(function(s){var I=s===void 0?{}:s,d=I.onClick,w=he(I,$t),S=function(){var k;(k=g.current)==null||k.focus()};return y({id:p.labelId,htmlFor:p.toggleButtonId,onClick:Y(d,S)},w)},[p]),re=T(function(s,I){var d,w=s===void 0?{}:s,S=w.onMouseLeave,k=w.refKey,A=k===void 0?"ref":k,W=w.ref,D=he(w,en),E=I===void 0?{}:I;E.suppressRefError;var B=function(){u({type:et})};return y((d={},d[A]=De(W,function(N){m.current=N}),d.id=p.menuId,d.role="listbox",d["aria-labelledby"]=D&&D["aria-label"]?void 0:""+p.labelId,d.onMouseLeave=Y(S,B),d),D)},[u,q,p]),ne=T(function(s,I){var d,w=s===void 0?{}:s,S=w.onBlur,k=w.onClick;w.onPress;var A=w.onKeyDown,W=w.refKey,D=W===void 0?"ref":W,E=w.ref,B=he(w,tn),N=I===void 0?{}:I;N.suppressRefError;var j=v.current.state,U=function(){u({type:ye})},Z=function(){j.isOpen&&!C.isMouseDown&&u({type:xe})},J=function(Q){var R=Ct(Q);R&&L[R]?L[R](Q):Lt(R)&&u({type:be,key:R})},ie=y((d={},d[D]=De(E,function(Q){g.current=Q}),d["aria-activedescendant"]=j.isOpen&&j.highlightedIndex>-1?p.getItemId(j.highlightedIndex):"",d["aria-controls"]=p.menuId,d["aria-expanded"]=v.current.state.isOpen,d["aria-haspopup"]="listbox",d["aria-labelledby"]=B&&B["aria-label"]?void 0:""+p.labelId,d.id=p.toggleButtonId,d.role="combobox",d.tabIndex=0,d.onBlur=Y(S,Z),d),B);return B.disabled||(ie.onClick=Y(k,U),ie.onKeyDown=Y(A,J)),ie},[u,p,v,C,q,L]),se=T(function(s){var I,d=s===void 0?{}:s,w=d.item,S=d.index,k=d.onMouseMove,A=d.onClick,W=d.onMouseDown;d.onPress;var D=d.refKey,E=D===void 0?"ref":D,B=d.disabled,N=d.ref,j=he(d,nn);B!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var U=v.current,Z=U.state,J=U.props,ie=Ht(w,S,J.items,"Pass either item or index to getItemProps!"),Q=ie[0],R=ie[1],we=J.isItemDisabled(Q,R),dt=function(){C.isTouchEnd||R===Z.highlightedIndex||(_.current=!1,u({type:tt,index:R,disabled:we}))},ct=function(){u({type:Fe,index:R})},ft=function(de){return de.preventDefault()},le=y((I={},I[E]=De(N,function(de){de&&(O.current[p.getItemId(R)]=de)}),I["aria-disabled"]=we,I["aria-selected"]=Q===Z.selectedItem,I.id=p.getItemId(R),I.role="option",I),j);return we||(le.onClick=Y(A,ct)),le.onMouseMove=Y(k,dt),le.onMouseDown=Y(W,ft),le},[v,p,C,_,u]);return{getToggleButtonProps:ne,getLabelProps:f,getMenuProps:re,getItemProps:se,toggleMenu:ee,openMenu:z,closeMenu:te,setHighlightedIndex:K,selectItem:l,reset:G,setInputValue:V,highlightedIndex:h,isOpen:c,selectedItem:b,inputValue:x}}y({}),y({},oe,{isItemDisabled:function(){return!1}}),y({}),oe.itemToKey,oe.stateReducer,oe.environment;function rn(e,t){const[n,r]=Ae(!1);F(()=>{e?requestAnimationFrame(()=>requestAnimationFrame(()=>r(!0))):r(!1)},[e,r]);const[i,a]=Ae(-1),o=vt(t);return F(()=>{n?e&&a(o):a(-1)},[o,e,n]),[n?i:-1,a,n]}const st=We(({defaultValue:e,disabled:t,name:n,onChange:r,required:i,value:a},o)=>{const{items:u}=yt("@optiaxiom/react/SelectHiddenSelect"),c=ce(()=>u.map(h=>$("option",{value:h.value,children:h.value},h.value)),[u]);return $(xt,{"aria-hidden":!0,children:$("select",{defaultValue:e,disabled:t,name:n,onChange:r,ref:o,required:i,tabIndex:-1,value:a,children:[$("option",{value:""}),c]})})});st.displayName="@optiaxiom/react/SelectHiddenSelect";const on=(e,t)=>{F(()=>{const n=e.current;if(!n)return;const r=n.closest("form");if(!r)return;const i=()=>t("");return r.addEventListener("reset",i),()=>r.removeEventListener("reset",i)},[e,t])},lt=We(({children:e,defaultOpen:t=!1,defaultValue:n,disabled:r,loading:i,name:a,onBlur:o,onChange:u,onOpenChange:c,onValueChange:h,open:b,options:x,required:g,value:m},O)=>{const M=P(null),p=pt(M,O),[v,H]=je({caller:"@optiaxiom/react/Select",defaultProp:n??"",onChange:h,prop:m}),_=It(M,H);on(M,H);const C=ce(()=>v!==void 0?x.find(l=>l.value===v):void 0,[x,v]),[q,L]=je({caller:"@optiaxiom/react/Select",defaultProp:t,onChange:c,prop:b}),[ee,te,z]=rn(q,()=>C?x.findIndex(l=>!l.disabledReason&&C.value===l.value):-1),K=ae({highlightedIndex:ee===-1&&z?x.findIndex(l=>!l.disabledReason):ee,isItemDisabled:l=>!!l.disabledReason,isOpen:z,items:x,itemToKey:l=>l!==null?l.value:l,itemToString:l=>l!==null?l.label:"",onHighlightedIndexChange(l){l.type!==ae.stateChangeTypes.MenuMouseLeave&&(l.type===ae.stateChangeTypes.ItemMouseMove&&q||l.isOpen)&&te(l.highlightedIndex)},onIsOpenChange({isOpen:l}){L(l)},onSelectedItemChange({selectedItem:l}){_(l?.value??"")},selectedItem:C??null,stateReducer:(l,G)=>{const{changes:V,type:f}=G;switch(f){case ae.stateChangeTypes.ToggleButtonBlur:return{...V,selectedItem:l.selectedItem};default:return V}}});return K.getToggleButtonProps({},{suppressRefError:!0}),K.getMenuProps({},{suppressRefError:!0}),$(mt,{children:$(bt,{disabled:r,downshift:K,highlightedItem:x[K.highlightedIndex],isOpen:q,items:x,loading:i,onBlur:o,selectedItem:C,children:[$(st,{defaultValue:n,disabled:r,name:a,onChange:l=>{H(l.target.value),u?.(l)},ref:p,required:g,value:m}),e]})})});lt.displayName="@optiaxiom/react/Select";export{lt as I};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as u,u as o,d as P,k as S}from"./register-D6N8B6AV.js";import{b as y}from"./index-CyQ6-EUv.js";import"./Listbox-BFRZbGZb.js";import"./ListboxCheckboxItem-DTgYX2VK.js";import"./ListboxEmpty-CKf19IMT.js";import"./ListboxFooter-P7TgEJ5Y.js";import"./ListboxGroup-P3D2KUoS.js";import"./ListboxItem-7pk3Ovde.js";import"./ListboxItemIndicator-9NdPkx_D.js";import{s as D}from"./ListboxItemized-BouaAXnU.js";import{o as O}from"./ListboxLabel-CAhbNUbX.js";import{e as w}from"./ListboxRadioItem-Tmvml9QF.js";import{o as N}from"./ListboxSeparator-CrOBm6Be.js";import"./ListboxSwitchItem-rFq5AHCU.js";import"./ModalContext-C7MELOWc.js";import{l as R}from"./ModalLayer-DmrL4xRd.js";import{r as $}from"./ModalListbox-CqefyDNj.js";import{o as E}from"./Portal-BdXmuU-i.js";import{i as j}from"./Tooltip-C-BguHZD.js";import"./TooltipContent-CBiRligA.js";import"./TooltipProvider-CJtCWlBF.js";import"./TooltipRoot-CRodEgtv.js";import"./TooltipTrigger-Bv7CZkpX.js";import"./Transition-B5G6J_7n.js";import{f as k}from"./TransitionGroup--tyB9ZeA.js";import{o as v}from"./SelectContext-F1B52zWr.js";import{o as B}from"./Box-bm7oB_w-.js";const H=(e,t)=>!!t&&!x(e,t?.group)&&(e?.separator||t?.group?.separator),K=(e,t)=>!x(e,t?.group)&&!!e&&!e.hidden,x=(e,t)=>e===t?!0:e?.label===t?.label,C=u(({children:e,index:t,item:r,onMouseMove:n,size:m,...d},l)=>{const{downshift:s,highlightedItem:p,isOpen:c,items:h,selectedItem:f}=v("@optiaxiom/react/SelectItem"),a=s.getItemProps({"aria-posinset":t+1,"aria-setsize":h.length,item:r,onMouseMove:i=>{n?.(i),!i.defaultPrevented&&(c||(i.preventDefault(),Object.assign(i.nativeEvent,{preventDownshiftDefault:!0})))},ref:l,...d});return o(B,{"data-disabled":a["aria-disabled"]?"":void 0,"data-highlighted":p===r?"":void 0,"data-selected":f===r?"":void 0,size:m,...a,children:e})});C.displayName="@optiaxiom/react/SelectItem";const I=u(({children:e,...t},r)=>o(C,{asChild:!0,ref:r,...t,children:o(w,{children:e})}));I.displayName="@optiaxiom/react/SelectRadioItem";const z=u(({align:e="start",children:t,side:r="bottom",size:n,...m},d)=>{const{downshift:l,highlightedItem:s,isOpen:p,items:c,loading:h}=v("@optiaxiom/react/SelectContent"),[f,a]=P(!1);return o(k,{open:p,children:o(E,{asChild:!0,children:o(R,{asChild:!0,children:o($,{asChild:!0,maxH:"sm",minW:"trigger",provider:"popper",ref:d,role:"dialog",size:n,...m,children:o(y,{align:e,side:r,sideOffset:5,children:o(D,{highlightedItem:s,items:c,itemToKey:i=>i.value,loading:h,onPlacedChange:a,...l.getMenuProps({},{suppressRefError:!f}),children:t??((i,M,b)=>{const g=i.group;return o(S,{children:[H(g,b)&&o(N,{}),K(g,b)&&o(O,{children:g.label}),o(j,{content:i.disabledReason,children:o(I,{addonBefore:i.addon,"aria-label":i["aria-label"],description:i.description,index:M,item:i,children:i.label},i.value)})]})})})})})})})})});z.displayName="@optiaxiom/react/SelectContent";export{z as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as P,A as R,d as S,y as k,u as i}from"./register-D6N8B6AV.js";import{u as v}from"./index-3yCeHosg.js";import{d as C}from"./index-CyQ6-EUv.js";import{a as D}from"./index-uEcL3mb6.js";import{i as E,c as K}from"./Box-
|
|
1
|
+
import{D as P,A as R,d as S,y as k,u as i}from"./register-D6N8B6AV.js";import{u as v}from"./index-3yCeHosg.js";import{d as C}from"./index-CyQ6-EUv.js";import{a as D}from"./index-uEcL3mb6.js";import{i as E,c as K}from"./Box-bm7oB_w-.js";import{t as M}from"./AngleMenuButton-B-tj6o5b.js";import{u as O}from"./useFieldLabelTrigger-BhMQuypi.js";import"./isHoverSupported-DMhF6LbU.js";import{s as q}from"./decorateChildren-CgfQCQHq.js";import{o as L}from"./SelectContext-F1B52zWr.js";const N=D("@optiaxiom/react/SelectTrigger"),h=P(({"aria-labelledby":b,asChild:s,children:c,onBlur:g,onKeyDown:y,placeholder:x,...w},I)=>{const{disabled:$,downshift:o,isOpen:d,items:t,onBlur:B,selectedItem:m}=L("@optiaxiom/react/SelectTrigger"),{boxProps:T,restProps:A}=E(w),l=R(null),p=O(l,b),n=v(),[u]=S(d);k(function(){u&&l.current&&l.current.focus()},[u]);const a=m?.value&&m.label||x;return i(C,{asChild:!0,...T,...o.getToggleButtonProps({...A,"aria-labelledby":p?K(p,n):n,disabled:$,onBlur:r=>{g?.(r),B?.(r)},onKeyDown:r=>{if(y?.(r),document.dispatchEvent(new Event("tooltip.open")),d)return;const f=o.selectedItem?t.indexOf(o.selectedItem):-1;switch(r.key){case"ArrowLeft":{let e=f;for(e--;e>=0&&t[e].disabledReason;e--);o.selectItem(t[Math.max(0,e)]);break}case"ArrowRight":{let e=f;for(e++;e<t.length&&t[e].disabledReason;e++);o.selectItem(t[Math.min(e,t.length-1)]);break}}},type:"button"}),children:i(N,{ref:I,children:s?q({asChild:s,children:c},r=>(r??a)&&i("span",{id:n,children:r??a})):i(M,{ref:l,children:i("span",{id:n,children:c??a})})})})});h.displayName="@optiaxiom/react/SelectTrigger";export{h as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as n,u as a,i as m}from"./register-D6N8B6AV.js";import{P as c}from"./index-kdb6LTlL.js";import{a as b,c as v,o as f}from"./Box-bm7oB_w-.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as u}from"./recipeRuntime-DkvY0ny0.js";var w="Separator",s="horizontal",y=["horizontal","vertical"],d=n((t,r)=>{const{decorative:i,orientation:o=s,...p}=t,e=x(o)?o:s,h=i?{role:"none"}:{"aria-orientation":e==="vertical"?e:void 0,role:"separator"};return a(c.div,{"data-orientation":e,...h,...p,ref:r})});d.displayName=w;function x(t){return y.includes(t)}var _=d;m("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._1i8huaz{border-left-width:0;border-top-width:1px;width:auto}.ito9pp{align-self:stretch;border-left-width:1px;border-top-width:0;height:auto}@media screen and (min-width:37.5rem){._63fvxb{border-left-width:0;border-top-width:1px;width:auto}._6801wn{align-self:stretch;border-left-width:1px;border-top-width:0;height:auto}}@media screen and (min-width:56.25rem){._1nkv9ml{border-left-width:0;border-top-width:1px;width:auto}.b1s0yf{align-self:stretch;border-left-width:1px;border-top-width:0;height:auto}}}");var N=u({base:{borderColor:"border.secondary"}}),A=b(function(){var t={conditions:{defaultCondition:"base",conditionNames:["sm","md","base"],responsiveArray:["base","sm","md"]},styles:{orientation:{values:{horizontal:{conditions:{sm:"_63fvxb",md:"_1nkv9ml",base:"_1i8huaz"},defaultClass:"_1i8huaz"},vertical:{conditions:{sm:"_6801wn",md:"b1s0yf",base:"ito9pp"},defaultClass:"ito9pp"}},responsiveArray:void 0}}};return t.styles.orientation.responsiveArray=t.conditions.responsiveArray,t}());const l=n(({className:t,orientation:r="horizontal",...i},o)=>a(f,{asChild:!0,ref:o,...N({},v(A({orientation:r}),t)),...i,children:a(_,{})}));l.displayName="@optiaxiom/react/Separator";export{l as o};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as c,D as p,u as a}from"./register-D6N8B6AV.js";import{a as s}from"./index-uEcL3mb6.js";import{o as u}from"./Box-bm7oB_w-.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as d}from"./recipeRuntime-DkvY0ny0.js";c('@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._1afj4tk:empty:before{content:"\\00a0"}}');var f=d({base:[{animation:"pulse",bg:"bg.avatar.neutral",color:"fg.default.inverse",display:"block"},"_1afj4tk"]});const b=s("@optiaxiom/react/Skeleton"),o=p(({asChild:t=!0,children:r,circle:i,className:l,rounded:e,...m},n)=>a(u,{asChild:t,rounded:i||e==="full"?"full":e??"sm",...f({},l),...m,children:a(b,{ref:n,children:r||a("span",{})})}));o.displayName="@optiaxiom/react/Skeleton";export{o as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as s,D as c,u as e}from"./register-D6N8B6AV.js";import{o as r}from"./Box-bm7oB_w-.js";import{t as p}from"./Flex-BxgcCpyo.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as d}from"./recipeRuntime-DkvY0ny0.js";s("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._1506tx3{color:var(--ax-colors-bg-spinner-default)}._83tlb9{color:var(--ax-colors-bg-spinner-inverse)}}");var h=d({variants:{appearance:{default:"_1506tx3",inverse:"_83tlb9"}}});const m={default:"fg.spinner.default",inverse:"fg.spinner.inverse"},a=c(({appearance:i="default",children:t,size:o="md",...n},l)=>e(p,{alignItems:"center","aria-label":"Loading",display:"inline-flex",ref:l,role:"status",...n,children:[e(r,{animation:"spin",asChild:!0,size:o,children:e("svg",{fill:"none",height:16,viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",children:[e(r,{asChild:!0,...h({appearance:i}),children:e("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeOpacity:"0.04",strokeWidth:"1.5"})}),e(r,{asChild:!0,color:m[i],children:e("path",{d:"M4.5 1.93782C5.45668 1.38549 6.53049 1.06741 7.63365 1.00959C8.73681 0.951779 9.83799 1.15587 10.8472 1.60518C11.8563 2.05449 12.7448 2.73627 13.44 3.59476C14.1352 4.45325 14.6174 5.46408 14.847 6.54462",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5"})})]})}),t]}));a.displayName="@optiaxiom/react/Spinner";export{a as o};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as d,D as v,u as a}from"./register-D6N8B6AV.js";import{i as p,o as h}from"./Box-bm7oB_w-.js";import{t as b,c as m,b as f,o as g,a as u,e as x}from"./ToggleInputLabel-DDlShFi0.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import"./AvatarGroup.css.ts.vanilla-QKro-bni-bDE3zkTP.js";import{y as o}from"./recipeRuntime-DkvY0ny0.js";d("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._1i1tmjt{--_1alfsid:var(--ax-colors-bg-tertiary)}._1blilbn{background-color:var(--_1alfsid);position:relative}._428f4i{background-color:var(--ax-colors-bg-default);height:var(--_1vtzw0p);transform:translateX(-10px);width:var(--_1vtzw0p)}._15t9unk:active ._428f4i{width:calc(var(--_1vtzw0p)*1.25)}._15t9unk:active:has(._3vigyp:checked) ._428f4i{margin-left:calc(var(--_1vtzw0p)*-.25)}._15t9unk:active:has(._3vigyp:not(:checked)) ._428f4i{margin-right:calc(var(--_1vtzw0p)*-.25)}._15t9unk:has(._3vigyp:checked) ._428f4i{transform:translateX(10px)}._15t9unk:has(._3vigyp:disabled) ._428f4i{background-color:var(--ax-colors-bg-page)}._15t9unk:has(._3vigyp:not(:disabled)) ._428f4i{box-shadow:var(--ax-boxShadow-sm)}._90610l{--_1vtzw0p:var(--ax-size-2xs)}._15lwwbs{--_1vtzw0p:var(--ax-size-xs)}@media (hover:hover){._1i1tmjt:has(._3vigyp:not(:disabled):not(:checked)):hover{--_1alfsid:var(--ax-colors-bg-tertiary-hovered)}}}");var k=o({base:[{px:"12",py:"2",rounded:"full",transition:"colors"},"_1blilbn"]}),w=o({base:"_3vigyp"}),y=o({base:["_15t9unk","_1i1tmjt"]}),z=o({base:[{display:"block",rounded:"full",transition:"all"},"_428f4i"],variants:{size:{md:"_90610l",lg:"_15lwwbs"}}});const e=v(({children:r,className:s,description:i,size:t="md",...l},c)=>{const{boxProps:n,restProps:_}=p(l);return a(x,{description:!!i,...y({},s),...n,children:[a(b,{ref:c,role:"switch",...w(),..._}),a(m,{...k(),children:a(h,{...z({size:t})})}),(r||i)&&a(f,{pt:t==="lg"?"2":"0",children:[r&&a(g,{children:r}),i&&a(u,{children:i})]})]})});e.displayName="@optiaxiom/react/Switch";export{e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as s,D as u,u as o}from"./register-D6N8B6AV.js";import{o as a}from"./Box-bm7oB_w-.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as i}from"./recipeRuntime-DkvY0ny0.js";s("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{.mbz009{caption-side:bottom}._1s5rzq1{height:1px}._13dhi19{isolation:isolate}._1nuhi5h{position:relative}}");var h=i({base:[{color:"fg.default",fontSize:"md",w:"full"},"mbz009"],variants:{layout:{auto:["_1s5rzq1"],fixed:[{display:"grid"},"_13dhi19"]}}}),b=i({base:[{bg:"bg.default",border:"1",borderColor:"border.tertiary",maxW:"full",overflow:"auto",rounded:"lg"},"_1nuhi5h"]});const r=u(({children:t,className:e,layout:l="auto",...d},m)=>o(a,{...b({},e),ref:m,...d,children:o(a,{asChild:!0,...h({layout:l}),children:o("table",{children:t})})}));r.displayName="@optiaxiom/react/Table";export{r as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as a,u as i}from"./register-D6N8B6AV.js";import{o as m}from"./ActionsRoot-
|
|
1
|
+
import{D as a,u as i}from"./register-D6N8B6AV.js";import{o as m}from"./ActionsRoot-DIfZ1KCL.js";const o=a((r,t)=>i(m,{ref:t,...r}));o.displayName="@optiaxiom/react/TableAction";export{o};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as l,D as m,u as o}from"./register-D6N8B6AV.js";import{o as p}from"./Box-bm7oB_w-.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as d}from"./recipeRuntime-DkvY0ny0.js";l("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._13hb1d1{position:relative}}");var s=d({base:["_13hb1d1"]});const a=m(({children:i,className:r,...e},t)=>o(p,{asChild:!0,...s({},r),...e,children:o("tbody",{ref:t,children:i})}));a.displayName="@optiaxiom/react/TableBody";export{a as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as p,D as c,u as o}from"./register-D6N8B6AV.js";import{o as d}from"./Box-bm7oB_w-.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import"./TableRow.css.ts.vanilla-DEeo_qVc-Z3AA9euO.js";import{y as m}from"./recipeRuntime-DkvY0ny0.js";p("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._1pckycl{position:relative;vertical-align:top;word-break:break-word}._1376vf3:not(:first-child) ._1pckycl{border-top-width:1px}}");var n=m({base:[{borderColor:"border.tertiary",p:"16"},"_1pckycl"]});const r=c(({children:a,className:i,colSpan:e,...t},l)=>o(d,{asChild:!0,...n({},i),...t,children:o("td",{colSpan:e,ref:l,children:a})}));r.displayName="@optiaxiom/react/TableCell";export{r as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as t,u as e}from"./register-D6N8B6AV.js";import{o as d}from"./Box-
|
|
1
|
+
import{D as t,u as e}from"./register-D6N8B6AV.js";import{o as d}from"./Box-bm7oB_w-.js";const r=t(({children:i,...o},a)=>e(d,{asChild:!0,...o,children:e("thead",{ref:a,children:i})}));r.displayName="@optiaxiom/react/TableHeader";export{r as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as y,D as b,u as e}from"./register-D6N8B6AV.js";import{o}from"./Box-bm7oB_w-.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as t}from"./recipeRuntime-DkvY0ny0.js";y("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._1jou50g{position:relative;text-align:start}._1byz7p6{box-shadow:0 1px 0 var(--ax-colors-border-tertiary)}}");var d=t({base:"_1jou50g"}),x=t({base:[{alignItems:"center",bg:"bg.default",color:"fg.tertiary",display:"flex",fontSize:"sm",fontWeight:"400",size:"full"},"_1byz7p6"]});const r=b(({children:i,className:l,colSpan:p,p:a,px:s="16",py:c="12",...m},n)=>e(o,{asChild:!0,...d({},l),...m,children:e("th",{colSpan:p,ref:n,children:e(o,{...x(),px:a??s,py:a??c,children:i})})}));r.displayName="@optiaxiom/react/TableHeaderCell";export{r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as m,u as r}from"./register-D6N8B6AV.js";import{a as l}from"./ActionsRoot-DIfZ1KCL.js";import{o as s}from"./Box-bm7oB_w-.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import"./TableRow.css.ts.vanilla-DEeo_qVc-Z3AA9euO.js";import{y as p}from"./recipeRuntime-DkvY0ny0.js";var c=p({base:["_1376vf3",{transition:"colors",w:"full"},"_113siug"]});const o=m(({children:i,className:a,...t},e)=>r(l,{asChild:!0,children:r(s,{asChild:!0,...c({},a),...t,children:r("tr",{ref:e,children:i})})}));o.displayName="@optiaxiom/react/TableRow";export{o as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as o}from"./register-D6N8B6AV.js";o("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._113siug{position:relative}._113siug[data-highlighted]{background-color:var(--ax-colors-bg-default-hovered)}@media (hover:hover){._113siug:hover{background-color:var(--ax-colors-bg-default-hovered)}}}");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as m,D as c,u as i}from"./register-D6N8B6AV.js";import{a as k}from"./index-uEcL3mb6.js";import{o as w}from"./Box-bm7oB_w-.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as d}from"./recipeRuntime-DkvY0ny0.js";m("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{.wswqfk{text-overflow:ellipsis}._19drfkn{display:-webkit-box;-webkit-box-orient:vertical}.hsiak8{-webkit-line-clamp:1}._1k4canc{-webkit-line-clamp:2}.jugr14{-webkit-line-clamp:3}._9xi2dg{-webkit-line-clamp:4}}");var v=d(function(){var a={variants:{lineClamp:{1:[{overflow:"hidden"},"wswqfk","_19drfkn","hsiak8"],2:[void 0,"wswqfk","_19drfkn","_1k4canc"],3:[void 0,"wswqfk","_19drfkn","jugr14"],4:[void 0,"wswqfk","_19drfkn","_9xi2dg"]},truncate:{true:[void 0,"wswqfk",{whiteSpace:"nowrap"}]}}};return a.variants.lineClamp[2][0]=a.variants.lineClamp[1][0],a.variants.lineClamp[3][0]=a.variants.lineClamp[1][0],a.variants.lineClamp[4][0]=a.variants.lineClamp[1][0],a.variants.truncate.true[0]=a.variants.lineClamp[1][0],a}());const f=k("@optiaxiom/react/Text"),e=c(({asChild:a,children:t,className:r,lineClamp:n,truncate:l,...o},p)=>{const s=a?f:"p";return i(w,{asChild:!0,ref:p,...v({lineClamp:n,truncate:l},r),...o,children:i(s,{children:t})})});e.displayName="@optiaxiom/react/Text";export{e as o};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as p,A as d,u as m,y as f}from"./register-D6N8B6AV.js";import{g as n}from"./vanilla-extract-dynamic.esm-4GwcXShs.js";import"./layers.css.ts.vanilla-
|
|
1
|
+
import{d as p,A as d,u as m,y as f}from"./register-D6N8B6AV.js";import{g as n}from"./vanilla-extract-dynamic.esm-4GwcXShs.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{o as h}from"./PortalContext-DHHkjb9y.js";import{r as l}from"./theme-css-DX4sf6ZH.js";import{a as t}from"./index-VQRIDrjF.js";var $="optiaxiom.theme";const u=Object.fromEntries(Object.entries(t.colors).map(([r,o])=>[r,o.slice(o.indexOf("(")+1,o.indexOf(","))]));function s({children:r}){const[o,a]=p(),e=":host",i=d(null);return f(()=>{const c=i.current?.getRootNode();c instanceof ShadowRoot&&a(c)},[]),m(h,{container:o,children:[m("style",{ref:i,children:`
|
|
2
2
|
@layer ${$} {
|
|
3
3
|
${e} {
|
|
4
4
|
${n(l,{...t,colors:u})}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,D as v,u as t,_ as u}from"./register-D6N8B6AV.js";import{u as w}from"./index-uEcL3mb6.js";import{R as x,C as h}from"./index-_HSZBYZ2.js";import{g as b}from"./vanilla-extract-dynamic.esm-4GwcXShs.js";import{i as j,o as k}from"./Box-bm7oB_w-.js";import{h as z}from"./Button-CopADjxg.js";import"./ButtonGroup-BespxqLs.js";import{o as C}from"./Icon-CnLE52t0.js";import{e as $,l as i,i as q}from"./IconCircleInfoSolid-3iqwIk_b.js";import{l as R}from"./IconTriangleExclamationSolid-C04y6U2o.js";import{l as O}from"./IconX-D1CsikgA.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as n}from"./recipeRuntime-DkvY0ny0.js";import{c as P}from"./index-DlrTtA-M.js";const[S,T]=P("@optiaxiom/react/ToastProvider");e("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._1o9q5ra{outline:none;pointer-events:none;position:fixed;scrollbar-gutter:stable}.b2iqrj{bottom:0;left:50%;transform:translateX(-50%)}._1lrvakw{bottom:0;left:0}._15oezz2{bottom:0;right:0}.l2xkjn{left:50%;transform:translateX(-50%)}._1b890n2,.l2xkjn{margin-top:40px;top:0}._1b890n2{left:0}._1jmunjt{margin-top:40px;right:0;top:0}}"),e('@keyframes _1hjvflo{0%{opacity:0;translate:var(--_1lgf0lh,0) var(--_1mh0gfj,0)}}@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._1dyt3t{--_1qg8vll:0;--_1fryn9w:0;animation-duration:var(--ax-duration-lg);animation-timing-function:ease;pointer-events:auto;transition-duration:var(--ax-duration-lg);transition-property:opacity;transition-timing-function:ease;translate:var(--_1qg8vll) var(--_1fryn9w)}._1dyt3t:after{bottom:-16px}._1dyt3t:after,._1dyt3t:before{content:"";height:16px;left:0;position:absolute;right:0}._1dyt3t:before{top:-16px}._1dyt3t:focus-visible{outline:2px solid var(--ax-colors-border-focus);outline-offset:1px}._1dyt3t[data-state=closed]{opacity:0}._1dyt3t[data-state=closed]~._1dyt3t{transition-property:opacity,translate}._1dyt3t[data-state=open]{animation-name:_1hjvflo}._1dyt3t[data-swipe-direction=down]{--_1mh0gfj:calc(100% + 24px)}._1dyt3t[data-swipe-direction=left]{--_1lgf0lh:calc(-100% - 24px)}._1dyt3t[data-swipe-direction=right]{--_1lgf0lh:calc(100% + 24px)}._1dyt3t[data-swipe-direction=up]{--_1mh0gfj:calc(-100% - 24px)}._1dyt3t[data-swipe=end]{--_1qg8vll:var(--_1lgf0lh,0);--_1fryn9w:var(--_1mh0gfj,0);transition-property:opacity,translate}._1dyt3t[data-swipe=move]{--_1qg8vll:var(--radix-toast-swipe-move-x);--_1fryn9w:var(--radix-toast-swipe-move-y)}[data-position^=bottom] ._1dyt3t:first-child{margin-bottom:auto}[data-position^=bottom] ._1dyt3t[data-state=closed]~._1dyt3t{--_1fryn9w:var(--_9ozsgf)}[data-position^=top] ._1dyt3t:last-child{margin-top:auto}[data-position^=top] ._1dyt3t[data-state=closed]~._1dyt3t{--_1fryn9w:calc(var(--_9ozsgf)*-1)}._1wfsz05{--_1wvwpdc:var(--ax-colors-fg-error-light)}._1wys8z0{--_1wvwpdc:var(--ax-colors-fg-information-light)}.jywcwn{--_1wvwpdc:var(--ax-colors-fg-default-inverse)}._15fbdjp{--_1wvwpdc:var(--ax-colors-fg-success-light)}._4ot6kw{--_1wvwpdc:var(--ax-colors-fg-warning-light)}._9lij9h{color:var(--_1wvwpdc)}._1544f5p a{color:var(--ax-colors-fg-link-inverse);text-decoration:underline}}');var N=n({base:[{alignSelf:"start",mt:"4"},"_9lij9h"]}),X="var(--_9ozsgf)",D=n({base:["_1544f5p",{alignItems:"center",bg:"bg.default.inverse",color:"fg.default.inverse",display:"flex",fontSize:"md",gap:"8",maxW:"full",p:"12",pl:"16",rounded:"md",shadow:"md",w:["full","max"]},"_1dyt3t"],variants:{intent:{danger:"_1wfsz05",information:"_1wys8z0",neutral:"jywcwn",success:"_15fbdjp",warning:"_4ot6kw"}}});const I={danger:q,information:i,neutral:i,success:$,warning:R},s=v(({children:l,className:p,intent:o="neutral",onOpenChange:d,style:f,...c},m)=>{const{boxProps:_,restProps:g}=j(c),a=T("@optiaxiom/react/Toast"),y=w(m,a.toastRef);return t(k,{asChild:!0,style:{...f,...b({[X]:`${a.offset}px`})},...D({intent:o},p),..._,children:t(x,{forceMount:!!a,onOpenChange:r=>{d?.(r),a.onOpenChange(r)},open:a.open,ref:y,...g,children:[t(C,{asChild:!0,...N(),children:u(I[o])}),l,t(h,{asChild:!0,children:t(z,{appearance:"inverse","aria-label":"close",icon:t(O,{}),size:"sm"})})]})})});s.displayName="@optiaxiom/react/Toast";export{s as m,S as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as c,u as e,k as l}from"./register-D6N8B6AV.js";import{A as p}from"./index-_HSZBYZ2.js";import{h as s}from"./Button-
|
|
1
|
+
import{D as c,u as e,k as l}from"./register-D6N8B6AV.js";import{A as p}from"./index-_HSZBYZ2.js";import{h as s}from"./Button-CopADjxg.js";import"./ButtonGroup-BespxqLs.js";import{o as h}from"./Separator-BMzH2BhQ.js";const r=c(({altText:i,appearance:t="inverse",children:o,size:a="sm",...m},n)=>e(l,{children:[e(h,{alignSelf:"center",h:"sm",ml:"12",orientation:"vertical"}),e(s,{appearance:t,asChild:!0,size:a,...m,children:e(p,{altText:i,ref:n,children:o})})]}));r.displayName="@optiaxiom/react/ToastAction";export{r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as H,y as m,A as g,D as j,u as l,p as A}from"./register-D6N8B6AV.js";import{u as _}from"./index-uEcL3mb6.js";import{V as q,T as D}from"./index-_HSZBYZ2.js";import{s as E}from"./index-kYVN-q_P.js";import{i as S}from"./Box-bm7oB_w-.js";import{t as W}from"./Flex-BxgcCpyo.js";import{o as k}from"./Portal-BdXmuU-i.js";import{t as z,m as L}from"./Toast-CPvRydsA.js";import{t as M}from"./ToastAction-UyGYgxu1.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as R}from"./recipeRuntime-DkvY0ny0.js";import{o as I}from"./ToastTitle-wGD5fUHR.js";const N=[];let O=1;const V=()=>"t"+O++,F=()=>{let o=[];const e=new Set,i=()=>{for(const t of e)t()};let s=Promise.resolve();return{store:[t=>(e.add(t),()=>e.delete(t)),()=>o,()=>N],clear:()=>{o=[],i()},create:(...t)=>{const n=typeof t[0]=="string"?{...t[1],title:t[0]}:t[0],r=V();return s=s.then(async()=>{const c={id:r,open:!0,ref:{current:null},toast:n};o=[...o,c],i(),await b(c.ref.current)}),r},remove:t=>{s=s.then(async()=>{o=o.map(r=>r.id===t?{...r,open:!1}:r),i();const n=o.find(r=>r.id===t);await b(n?.ref.current),o=o.filter(r=>r.id!==t),i()})}}},b=async o=>{o&&(await new Promise(e=>requestAnimationFrame(e)),await Promise.allSettled(typeof o.getAnimations=="function"?o.getAnimations().map(e=>e.finished):[Promise.resolve()]))},X=F();var Y="16",B=R({base:[{gap:"16",justifyContent:"normal",maxH:"full",overflowX:"hidden",overflowY:"auto",p:"24",w:["full","384"],z:"toast"},"_1o9q5ra"],variants:{position:{bottom:"b2iqrj","bottom-left":"_1lrvakw","bottom-right":"_15oezz2",top:"l2xkjn","top-left":"_1b890n2","top-right":"_1jmunjt"}}});const G=(o,e)=>{const[i,s]=H(!1);m(()=>s(!0),[]);const t=g(e);m(()=>{t.current=e},[e]),m(()=>{if(!o.current)return;const n=o.current,r=()=>t.current=Math.ceil(Math.abs(n.scrollTop))===n.scrollHeight-n.offsetHeight?e:null;return n.addEventListener("scroll",r),()=>n.removeEventListener("scroll",r)},[i,e,o]),m(()=>{if(!o.current)return;const n=o.current,r=new MutationObserver(()=>{t.current===e&&(n.scrollTop=(e==="top"?-1:1)*n.scrollHeight-n.offsetHeight)});return r.observe(n,{childList:!0}),()=>r.disconnect()},[i,e,o])},J={bottom:"down","bottom-left":"left","bottom-right":"right",top:"up","top-left":"left","top-right":"right"},w=j(({className:o,container:e,duration:i,label:s,position:t="top-right",swipeDirection:n,swipeThreshold:r,toaster:c=X,...v},y)=>{const{boxProps:x,restProps:P}=S(v),u=E.useSyncExternalStore(...c.store),d=g(null),T=_(d,y);if(G(d,t.startsWith("bottom")?"top":"bottom"),!u.length)return null;let C=0;return l(D,{duration:i,label:s,swipeDirection:n??J[t],swipeThreshold:r,children:[u.map(({id:p,open:h,ref:f,toast:a})=>l(z,{offset:C+=!h&&f.current?f.current.offsetHeight+parseInt(Y):0,onOpenChange:()=>c.remove(p),open:h,toastRef:f,children:A(a)?a:l(L,{intent:a.type,children:[l(I,{children:a.title}),a.action&&l(M,{altText:a.action,onClick:a.onAction,children:a.action})]},p)},p)),l(k,{asChild:!0,...e&&{container:e},children:l(W,{alignItems:t.endsWith("left")?"start":t.endsWith("right")?"end":"center",asChild:!0,"data-position":t,flexDirection:t.startsWith("bottom")?"column-reverse":"column",...B({position:t},o),...x,children:l(q,{ref:T,...P})})})]})});w.displayName="@optiaxiom/react/ToastProvider";export{w as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as a,u as o}from"./register-D6N8B6AV.js";import{a as l}from"./index-_HSZBYZ2.js";import{o as m}from"./Text-
|
|
1
|
+
import{D as a,u as o}from"./register-D6N8B6AV.js";import{a as l}from"./index-_HSZBYZ2.js";import{o as m}from"./Text-Dx-X0PRO.js";const r=a(({children:i,...e},t)=>o(m,{asChild:!0,flex:"1",...e,children:o(l,{ref:t,children:i})}));r.displayName="@optiaxiom/react/ToastTitle";export{r as o};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as h,D as t,u as i}from"./register-D6N8B6AV.js";import{u}from"./index-3yCeHosg.js";import{a as N}from"./index-uEcL3mb6.js";import{i as _,o as n,c as C}from"./Box-bm7oB_w-.js";import{t as D}from"./Flex-BxgcCpyo.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import"./AvatarGroup.css.ts.vanilla-QKro-bni-bDE3zkTP.js";import{y as g}from"./recipeRuntime-DkvY0ny0.js";import{e as j}from"./VisuallyHidden-CLGCRunn.js";import{c as S}from"./index-DlrTtA-M.js";h("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{.ra2iwr{--_1alfsid:var(--ax-colors-border-control);color:var(--ax-colors-fg-default);position:relative}.ra2iwr:has(.rmgh01:checked){--_1alfsid:var(--ax-colors-bg-accent)}.ra2iwr:has(.rmgh01:disabled){color:var(--ax-colors-fg-disabled)}.ra2iwr:not(:has(.rmgh01:disabled)){cursor:pointer}@media (hover:hover){.ra2iwr:has(.rmgh01:not(:disabled):checked):hover{--_1alfsid:var(--ax-colors-bg-accent-hovered)}.ra2iwr:has(.rmgh01:not(:disabled):not(:checked)):hover{--_1alfsid:var(--ax-colors-border-control-hovered)}}}");var L=g({base:["_108e68o",{alignItems:"start",display:"inline-flex",flexDirection:"row",gap:"8"},"ra2iwr"]});const[P,m]=S("@optiaxiom/react/ToggleInput"),z=N("@optiaxiom/react/ToggleInput"),f=t(({asChild:e,children:o,className:a,description:r,onMouseDown:c,...d},p)=>{const l=e?z:"label",{boxProps:w,restProps:T}=_(d),$=u(),k=u();return i(P,{descriptionId:r?$:void 0,labelId:k,children:i(D,{asChild:!0,...L({},a),...w,children:i(l,{onMouseDown:s=>{c?.(s),!s.defaultPrevented&&s.detail>1&&s.preventDefault()},ref:p,...T,children:o})})})});f.displayName="@optiaxiom/react/ToggleInput";const x=t(({children:e,...o},a)=>i(n,{flex:"1",fontSize:"md",overflow:"hidden",ref:a,...o,children:e}));x.displayName="@optiaxiom/react/ToggleInputContent",h("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._108e68o:has(:focus-visible) ._1uybxpj{outline:2px solid var(--ax-colors-border-focus);outline-offset:1px}._108e68o:has(input:disabled) ._1uybxpj{opacity:.3}}");var H=g({base:["_1uybxpj"]});const b=t(({children:e,className:o,...a},r)=>i(n,{"aria-hidden":!0,ref:r,...H({},o),...a,children:e}));b.displayName="@optiaxiom/react/ToggleInputControl";const v=t(({children:e,...o},a)=>{const{descriptionId:r}=m("@optiaxiom/react/ToggleInputDescription");return i(n,{color:"fg.secondary",fontSize:"sm",id:r,ref:a,...o,children:e})});v.displayName="@optiaxiom/react/ToggleInputDescription";var M="rmgh01";const y=t(({className:e,onChange:o,onCheckedChange:a,...r},c)=>{const{descriptionId:d,labelId:p}=m("@optiaxiom/react/ToggleInputHiddenInput");return i(j,{children:i("input",{"aria-describedby":d,"aria-labelledby":p,className:C(e,M),onChange:l=>{o?.(l),a?.(l.target.checked)},ref:c,type:"checkbox",...r})})});y.displayName="@optiaxiom/react/ToggleInputHiddenInput";const I=t(({children:e,...o},a)=>{const{labelId:r}=m("@optiaxiom/react/ToggleInputLabel");return i(n,{id:r,ref:a,...o,children:e})});I.displayName="@optiaxiom/react/ToggleInputLabel";export{v as a,x as b,b as c,f as e,I as o,y as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as n}from"./register-D6N8B6AV.js";import{r as u}from"./TooltipContent-
|
|
1
|
+
import{u as n}from"./register-D6N8B6AV.js";import{r as u}from"./TooltipContent-CBiRligA.js";import{f}from"./TooltipRoot-CRodEgtv.js";import{t as c}from"./TooltipTrigger-Bv7CZkpX.js";function o({auto:r,children:t,content:e,defaultOpen:i,delayDuration:a,disabled:p,onOpenChange:d,open:l,...m}){return n(f,{auto:r,defaultOpen:i,delayDuration:a,onOpenChange:d,open:l,children:[n(c,{asChild:!0,children:t}),!p&&!(!e&&typeof e!="number")&&n(u,{maxW:"xs",...m,children:e})]})}o.displayName="@optiaxiom/react/Tooltip";export{o as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as d,u as o}from"./register-D6N8B6AV.js";import{C as p,A as l}from"./index-ByKm43-s.js";import{o as f}from"./Box-
|
|
1
|
+
import{D as d,u as o}from"./register-D6N8B6AV.js";import{C as p,A as l}from"./index-ByKm43-s.js";import{o as f}from"./Box-bm7oB_w-.js";import{o as c}from"./Portal-BdXmuU-i.js";import{o as h}from"./Text-Dx-X0PRO.js";import{s as u}from"./Transition-B5G6J_7n.js";import{f as g}from"./TransitionGroup--tyB9ZeA.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as C}from"./recipeRuntime-DkvY0ny0.js";import{e as v}from"./TooltipContext-LHaMjQ_f.js";import{r as $}from"./theme-css-DX4sf6ZH.js";var b=C({base:[{bg:"bg.default.inverse",color:"fg.default.inverse",px:"12",py:"8",rounded:"md",z:"tooltip"}]});const r=d(({align:i="center",children:e,className:t,side:n="top",...m},a)=>{const{open:s}=v("@optiaxiom/react/TooltipContent");return o(g,{open:s,children:o(c,{asChild:!0,children:o(u,{duration:"sm",type:"pop",children:o(f,{asChild:!0,...b({},t),...m,children:o(p,{align:i,arrowPadding:6,ref:a,side:n,sideOffset:5,children:[o(h,{asChild:!0,fontSize:"sm",children:o("div",{children:e})}),o(l,{fill:$.colors["bg.default.inverse"],height:4,width:8})]})})})})})});r.displayName="@optiaxiom/react/TooltipContent";export{r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as s,u as r}from"./register-D6N8B6AV.js";import{u as d}from"./index-uEcL3mb6.js";import{T as l}from"./index-ByKm43-s.js";import{h as c}from"./Button-
|
|
1
|
+
import{D as s,u as r}from"./register-D6N8B6AV.js";import{u as d}from"./index-uEcL3mb6.js";import{T as l}from"./index-ByKm43-s.js";import{h as c}from"./Button-CopADjxg.js";import"./ButtonGroup-BespxqLs.js";import{e as f}from"./FilteredSlot-C84aV4Vu.js";import{e as g}from"./TooltipContext-LHaMjQ_f.js";const e=s(({asChild:i,children:o,...t},m)=>{const{triggerRef:a}=g("@optiaxiom/react/TooltipTrigger"),p=d(a,m);return r(l,{asChild:!0,ref:p,...t,children:r(f,{exclude:"data-state",children:i?o:r(c,{children:o})})})});e.displayName="@optiaxiom/react/TooltipTrigger";export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as f,y as m,d as u,D as x,A as y,u as p}from"./register-D6N8B6AV.js";import{u as b,a as g}from"./index-uEcL3mb6.js";import"./layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as h}from"./recipeRuntime-DkvY0ny0.js";import{r as k}from"./TransitionGroupContext-D_06iJwS.js";f("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._1cke1df{transform-origin:var(--radix-popper-transform-origin);transition-property:grid-template-rows,opacity,transform;transition-timing-function:ease}.qn1vqt{transition-duration:var(--ax-duration-sm)}.yeynsu{transition-duration:var(--ax-duration-md)}.zgwxmj{transition-duration:var(--ax-duration-lg)}._17r2t3o{opacity:0}._17r2t3o[data-side=bottom]{opacity:0;transform:translateY(-15px)}._17r2t3o[data-side=left]{opacity:0;transform:translateX(15px)}._17r2t3o[data-side=right]{opacity:0;transform:translateX(-15px)}._17r2t3o[data-side=top]{opacity:0;transform:translateY(15px)}.mroub7{opacity:0;transform:scale(.95)}.mroub7[data-side=bottom]{opacity:0;transform:scale(.95) translateY(-8px)}.mroub7[data-side=left]{opacity:0;transform:scale(.95) translateX(8px)}.mroub7[data-side=right]{opacity:0;transform:scale(.95) translateX(-8px)}.mroub7[data-side=top]{opacity:0;transform:scale(.95) translateY(8px)}.dx2zhk,.dx2zhk[data-side=bottom]{grid-template-rows:0fr!important;opacity:0}.dx2zhk[data-side=bottom]{transform:translateY(-8px)}.dx2zhk[data-side=left]{grid-template-rows:0fr!important;opacity:0;transform:translateX(8px)}.dx2zhk[data-side=right]{grid-template-rows:0fr!important;opacity:0;transform:translateX(-8px)}.dx2zhk[data-side=top]{transform:translateY(8px)}.dx2zhk[data-side=top],.mbbaue{grid-template-rows:0fr!important;opacity:0}.mbbaue{transform:scale(.95)}.mbbaue[data-side=bottom]{grid-template-rows:0fr!important;opacity:0;transform:scale(.95) translateY(-8px)}.mbbaue[data-side=left]{grid-template-rows:0fr!important;opacity:0;transform:scale(.95) translateX(8px)}.mbbaue[data-side=right]{grid-template-rows:0fr!important;opacity:0;transform:scale(.95) translateX(-8px)}.mbbaue[data-side=top]{grid-template-rows:0fr!important;opacity:0;transform:scale(.95) translateY(8px)}}");var v=h({base:"_1cke1df",variants:{duration:{sm:"qn1vqt",md:"yeynsu",lg:"zgwxmj"},type:{fade:"_17r2t3o",pop:"mroub7",slide:"dx2zhk",slidePop:"mbbaue"}}});const w={skipAnimations:!1},z=t=>{const{onMount:r,onUnmount:o,open:a}=k("useTransitionStatus")??{open:!0};m(()=>(r?.(t),()=>o?.(t)),[r,o,t]);const[i,e]=u(!1);return m(()=>{a&&requestAnimationFrame(()=>e(!0))},[a]),a&&!i?"starting":!a&&i?"ending":void 0},d=g("@optiaxiom/react/Transition"),l=x(({children:t,duration:r="md",skipAnimations:o,type:a="fade",...i},e)=>{const s=y(null),c=z(s),n=b(e,s);return o||w.skipAnimations?p(d,{ref:n,children:t}):p(d,{ref:n,...v({duration:r,type:c?a:void 0},void 0),...i,children:t})});l.displayName="@optiaxiom/react/Transition";export{l as s};
|
package/dist/components/Alert.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as f,D as
|
|
1
|
+
import{i as f,D as u,u as r,_ as b,r as d,c as h}from"../register-D6N8B6AV.js";import{A as x}from"../propTypes-BgDgQj7O.js";import{u as y}from"../index-3yCeHosg.js";import{h as v}from"../Button-CopADjxg.js";import"../ButtonGroup-BespxqLs.js";import{t as a}from"../Flex-BxgcCpyo.js";import{o as w}from"../Icon-CnLE52t0.js";import{e as A,l as n,i as k}from"../IconCircleInfoSolid-3iqwIk_b.js";import{l as $}from"../IconTriangleExclamationSolid-C04y6U2o.js";import{l as z}from"../IconX-D1CsikgA.js";import"../layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import{y as o}from"../recipeRuntime-DkvY0ny0.js";import"../index-BgsAJgCB.js";import"../index-uEcL3mb6.js";import"../isHoverSupported-DMhF6LbU.js";import"../index-VQRIDrjF.js";import"../decorateChildren-CgfQCQHq.js";import"../fallbackSpan-BpHyMB25.js";import"../ButtonRoot-BAFQsC9I.js";import"../Box-bm7oB_w-.js";import"../AvatarGroup.css.ts.vanilla-QKro-bni-bDE3zkTP.js";import"../Spinner-DY-7yeAf.js";import"../Transition-B5G6J_7n.js";import"../TransitionGroupContext-D_06iJwS.js";import"../index-DlrTtA-M.js";import"../TransitionGroup--tyB9ZeA.js";import"../index-B-5OXVqV.js";import"../ButtonContext-DmfU957c.js";import"../withIcon-BAx9SshG.js";f("@layer optiaxiom.uavbkh;@layer optiaxiom.uavbkh{._8sg8ex{min-height:var(--ax-size-sm)}}");var C=o({base:[{alignItems:"start",color:"fg.default",flexDirection:"row",fontSize:"md",fontWeight:"500",gap:"8",justifyContent:"space-between",p:"12",pr:"16",rounded:"md"}],variants:{intent:{danger:{bg:"bg.error.subtle"},information:{bg:"bg.information.subtle"},neutral:{bg:"bg.secondary"},success:{bg:"bg.success.subtle"},warning:{bg:"bg.warning.subtle"}}}}),D=o({base:[{flex:"1",gap:"8"},"_8sg8ex"]}),_=o({base:[{mt:"4"}],variants:{intent:{danger:{color:"fg.error.strong"},information:{color:"fg.information.strong"},neutral:{color:"fg.tertiary"},success:{color:"fg.success.strong"},warning:{color:"fg.warning.strong"}}}});const j={danger:k,information:n,neutral:n,success:A,warning:$},s=u(({children:l,className:p,intent:t="neutral",onDismiss:e,...c},g)=>{const i=y();return r(a,{"aria-labelledby":i,ref:g,role:"alert",...C({intent:t},p),...c,children:[r(w,{asChild:!0,..._({intent:t}),children:b(j[t])}),r(a,{id:i,...D(),children:l}),!!e&&r(v,{appearance:"subtle","aria-label":"close",color:"fg.default",flex:"none",icon:r(z,{}),onClick:e,size:"sm"})]})});s.displayName="@optiaxiom/react/Alert";const m="ax-alert";var I=d(m,s,x,h);export{m as Alert,I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d,u as r,r as u,c as h}from"../register-D6N8B6AV.js";import{a as C}from"../propTypes-BgDgQj7O.js";import{R as D}from"../index-
|
|
1
|
+
import{d,u as r,r as u,c as h}from"../register-D6N8B6AV.js";import{a as C}from"../propTypes-BgDgQj7O.js";import{R as D}from"../index-B8Mi1ru0.js";import{u as A}from"../index-B-5OXVqV.js";import{f as x,t as O}from"../useNestedDialogCount-DOO1hnTm.js";import{e as P}from"../AlertDialogContext-DPGFqJhP.js";import"../index-DlrTtA-M.js";import"../index-uEcL3mb6.js";import"../index-DbjwSr_z.js";import"../index-CBrz5xtv.js";import"../index-3yCeHosg.js";import"../index-BgsAJgCB.js";import"../index-mQGnRT7b.js";import"../index-kdb6LTlL.js";import"../index-DfI1C0CI.js";import"../index-GYg7wYdo.js";import"../index-f0jF-SQk.js";import"../index-DE1LRaad.js";import"../Combination-ChLN84hy.js";import"../tslib.es6-RFyvkXDo.js";function e({children:p,defaultOpen:a=!1,onOpenChange:m,open:n,...l}){const[o,s]=A({caller:"@optiaxiom/react/AlertDialog",defaultProp:a,onChange:m,prop:n}),[t,c]=d(!1),[g,f]=x("AlertDialog",o);return r(O,{onCountChange:f,children:r(D,{onOpenChange:s,open:o||t,...l,children:r(P,{nestedDialogCount:g,open:o,presence:t,setPresence:c,children:p})})})}e.displayName="@optiaxiom/react/AlertDialog";const i="ax-alert-dialog";var $=u(i,e,C,h);export{i as AlertDialog,$ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as l,u as o,r as c,c as n}from"../register-D6N8B6AV.js";import{b as s}from"../propTypes-BgDgQj7O.js";import{A}from"../index-
|
|
1
|
+
import{D as l,u as o,r as c,c as n}from"../register-D6N8B6AV.js";import{b as s}from"../propTypes-BgDgQj7O.js";import{A}from"../index-B8Mi1ru0.js";import{h as d}from"../Button-CopADjxg.js";import"../ButtonGroup-BespxqLs.js";import"../index-DlrTtA-M.js";import"../index-uEcL3mb6.js";import"../index-DbjwSr_z.js";import"../index-CBrz5xtv.js";import"../index-3yCeHosg.js";import"../index-BgsAJgCB.js";import"../index-B-5OXVqV.js";import"../index-mQGnRT7b.js";import"../index-kdb6LTlL.js";import"../index-DfI1C0CI.js";import"../index-GYg7wYdo.js";import"../index-f0jF-SQk.js";import"../index-DE1LRaad.js";import"../Combination-ChLN84hy.js";import"../tslib.es6-RFyvkXDo.js";import"../Icon-CnLE52t0.js";import"../Box-bm7oB_w-.js";import"../layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import"../recipeRuntime-DkvY0ny0.js";import"../isHoverSupported-DMhF6LbU.js";import"../index-VQRIDrjF.js";import"../decorateChildren-CgfQCQHq.js";import"../fallbackSpan-BpHyMB25.js";import"../ButtonRoot-BAFQsC9I.js";import"../AvatarGroup.css.ts.vanilla-QKro-bni-bDE3zkTP.js";import"../Spinner-DY-7yeAf.js";import"../Flex-BxgcCpyo.js";import"../Transition-B5G6J_7n.js";import"../TransitionGroupContext-D_06iJwS.js";import"../TransitionGroup--tyB9ZeA.js";import"../ButtonContext-DmfU957c.js";const t=l(({appearance:p="danger",asChild:m,children:r,...a},e)=>o(A,{asChild:!0,ref:e,...a,children:m?r:o(d,{appearance:p,children:r})}));t.displayName="@optiaxiom/react/AlertDialogAction";const i="ax-alert-dialog-action";var g=c(i,t,s,n);export{i as AlertDialogAction,g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,u as o,r as a,c as l}from"../register-D6N8B6AV.js";import{c as d}from"../propTypes-BgDgQj7O.js";import{D as s}from"../index-
|
|
1
|
+
import{D as e,u as o,r as a,c as l}from"../register-D6N8B6AV.js";import{c as d}from"../propTypes-BgDgQj7O.js";import{D as s}from"../index-B8Mi1ru0.js";import{t as n}from"../Flex-BxgcCpyo.js";import"../index-DlrTtA-M.js";import"../index-uEcL3mb6.js";import"../index-DbjwSr_z.js";import"../index-CBrz5xtv.js";import"../index-3yCeHosg.js";import"../index-BgsAJgCB.js";import"../index-B-5OXVqV.js";import"../index-mQGnRT7b.js";import"../index-kdb6LTlL.js";import"../index-DfI1C0CI.js";import"../index-GYg7wYdo.js";import"../index-f0jF-SQk.js";import"../index-DE1LRaad.js";import"../Combination-ChLN84hy.js";import"../tslib.es6-RFyvkXDo.js";import"../Box-bm7oB_w-.js";import"../layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import"../recipeRuntime-DkvY0ny0.js";const r=e(({children:i,...m},p)=>o(n,{asChild:!0,flex:"1",fontSize:"md",justifyContent:"flex-start",overflow:"auto",px:"24",py:"16",ref:p,...m,children:o(s,{asChild:!0,children:o("div",{children:i})})}));r.displayName="@optiaxiom/react/AlertDialogBody";const t="ax-alert-dialog-body";var c=a(t,r,d,l);export{t as AlertDialogBody,c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as l,u as o,r as c,c as n}from"../register-D6N8B6AV.js";import{d as s}from"../propTypes-BgDgQj7O.js";import{C as d}from"../index-
|
|
1
|
+
import{D as l,u as o,r as c,c as n}from"../register-D6N8B6AV.js";import{d as s}from"../propTypes-BgDgQj7O.js";import{C as d}from"../index-B8Mi1ru0.js";import{h as C}from"../Button-CopADjxg.js";import"../ButtonGroup-BespxqLs.js";import"../index-DlrTtA-M.js";import"../index-uEcL3mb6.js";import"../index-DbjwSr_z.js";import"../index-CBrz5xtv.js";import"../index-3yCeHosg.js";import"../index-BgsAJgCB.js";import"../index-B-5OXVqV.js";import"../index-mQGnRT7b.js";import"../index-kdb6LTlL.js";import"../index-DfI1C0CI.js";import"../index-GYg7wYdo.js";import"../index-f0jF-SQk.js";import"../index-DE1LRaad.js";import"../Combination-ChLN84hy.js";import"../tslib.es6-RFyvkXDo.js";import"../Icon-CnLE52t0.js";import"../Box-bm7oB_w-.js";import"../layers.css.ts.vanilla-DgDqM1Tx-1tCJWFKD.js";import"../recipeRuntime-DkvY0ny0.js";import"../isHoverSupported-DMhF6LbU.js";import"../index-VQRIDrjF.js";import"../decorateChildren-CgfQCQHq.js";import"../fallbackSpan-BpHyMB25.js";import"../ButtonRoot-BAFQsC9I.js";import"../AvatarGroup.css.ts.vanilla-QKro-bni-bDE3zkTP.js";import"../Spinner-DY-7yeAf.js";import"../Flex-BxgcCpyo.js";import"../Transition-B5G6J_7n.js";import"../TransitionGroupContext-D_06iJwS.js";import"../TransitionGroup--tyB9ZeA.js";import"../ButtonContext-DmfU957c.js";const t=l(({appearance:p="subtle",asChild:m,children:r="Cancel",...a},e)=>o(d,{asChild:!0,ref:e,...a,children:m?r:o(C,{appearance:p,children:r})}));t.displayName="@optiaxiom/react/AlertDialogCancel";const i="ax-alert-dialog-cancel";var f=c(i,t,s,n);export{i as AlertDialogCancel,f as default};
|