@optiaxiom/web-components 0.1.3 → 0.1.4
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/AlertContext-DUDAGhtl.js +1 -0
- package/dist/AlertDialogContext-DUQebJZW.js +1 -0
- package/dist/{AnimatePresence-Qi6kCS1R.js → AnimatePresence-BwDPy3k5.js} +1 -1
- package/dist/AvatarContext-BQBBJ3wS.js +1 -0
- package/dist/{Badge-BjDp93bz.js → Badge-CT9Wykin.js} +1 -1
- package/dist/BannerContext-CaMkOcjc.js +1 -0
- package/dist/{Box-UM_e30U3.js → Box-DupSHbpd.js} +1 -1
- package/dist/{Button-BNWcrFEe.js → Button-BKqW37Ez.js} +1 -1
- package/dist/{Code-BTuURtBO.js → Code-B4dK_BW8.js} +1 -1
- package/dist/DialogContext-C0OCGB4L.js +1 -0
- package/dist/DropdownMenuContext-DpEBfKuM.js +1 -0
- package/dist/DropdownMenuSubContext-B7vj-H2-.js +1 -0
- package/dist/FieldContext-CEi4f2Zf.js +1 -0
- package/dist/{Flex-D3trAs54.js → Flex-CSuhXFqA.js} +1 -1
- package/dist/{Heading-DCKT4gdX.js → Heading-BMxllfYm.js} +1 -1
- package/dist/{HoverCard-Dzy0pcoE.js → HoverCard-CMzf8zqv.js} +1 -1
- package/dist/{HoverCardContent-C28lzwuS.js → HoverCardContent-BL08jqnX.js} +1 -1
- package/dist/{HoverCardContext-DF3iHtK2.js → HoverCardContext-DPhPy6tb.js} +1 -1
- package/dist/{HoverCardTrigger-gfgjXpQy.js → HoverCardTrigger-0YRc7j6G.js} +1 -1
- package/dist/Icon-C5KkaPM-.js +1 -0
- package/dist/IconAngleDown-B72J6Sbo.js +1 -0
- package/dist/IconAngleRight-uxD9GCup.js +1 -0
- package/dist/{IconEllipsis-BBBG7hHq.js → IconEllipsis-nbMKo1j9.js} +1 -1
- package/dist/{IconTriangleExclamation-BUfkRBG1.js → IconTriangleExclamation-BMBQ8kDb.js} +1 -1
- package/dist/{IconTriangleExclamationFilled-BJud6LoZ.js → IconTriangleExclamationFilled-RnOnC1LL.js} +1 -1
- package/dist/{IconX-Dqm5CLG6.js → IconX-DzLmYa_B.js} +1 -1
- package/dist/{Input-B6MpfsbP.js → Input-Op6FF3pM.js} +1 -1
- package/dist/{InputBase-4weG5Ot2.js → InputBase-DBLp98ND.js} +1 -1
- package/dist/{Link-vX57kLht.js → Link-C5FpZfW_.js} +1 -1
- package/dist/MenuButton-DPWC422W.js +1 -0
- package/dist/{MenuContentBase-Cy12f_gM.js → MenuContentBase-BW16ERXe.js} +1 -1
- package/dist/PopoverContext-4EFn2sQi.js +1 -0
- package/dist/RadioGroupContext-CZaj56wJ.js +1 -0
- package/dist/{Separator-Ca6iL8im.js → Separator-CXhbKvss.js} +1 -1
- package/dist/SideNavContext-B3IBBW9I.js +1 -0
- package/dist/{SideNavItem-BrhbDod9.js → SideNavItem-C89Y6T_n.js} +1 -1
- package/dist/{Spinner-DFLBvP_T.js → Spinner-DLIsZR9D.js} +1 -1
- package/dist/TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js +1 -0
- package/dist/TabsContext-BMXB27CB.js +1 -0
- package/dist/{Text-bK4y5HFb.js → Text-DON4bst4.js} +1 -1
- package/dist/{Toast-DonCR9n9.js → Toast-DgEn8Og0.js} +1 -1
- package/dist/{ToastAction-BcmHbd40.js → ToastAction-D7BQsqXf.js} +1 -1
- package/dist/{ToastProvider-BferDoXG.js → ToastProvider-Bw5KJZBf.js} +1 -1
- package/dist/{ToastTitle-DnTJGrCY.js → ToastTitle-KhkEPzH5.js} +1 -1
- package/dist/{ToggleInputLabel-DSgiSf6r.js → ToggleInputLabel-aMgvYUVy.js} +1 -1
- package/dist/{Tooltip-C-JvH5Xz.js → Tooltip-BEAGhUne.js} +1 -1
- package/dist/{TooltipContent-CeCOFoSd.js → TooltipContent-o82qkmmy.js} +1 -1
- package/dist/TooltipContext-DwWvNZf-.js +1 -0
- package/dist/{TooltipRoot-BPzoM1zW.js → TooltipRoot-BFD9bK77.js} +1 -1
- package/dist/{TooltipTrigger-CxaWOV4V.js → TooltipTrigger-DHhEikg9.js} +1 -1
- package/dist/{Transition-Dnu4DnBb.js → Transition-cMcn9E_A.js} +1 -1
- package/dist/components/Alert.js +1 -1
- package/dist/components/AlertDescription.js +1 -1
- package/dist/components/AlertDialog.js +1 -1
- package/dist/components/AlertDialogAction.js +1 -1
- package/dist/components/AlertDialogCancel.js +1 -1
- package/dist/components/AlertDialogContent.js +1 -1
- package/dist/components/AlertDialogDescription.js +1 -1
- package/dist/components/AlertDialogFooter.js +1 -1
- package/dist/components/AlertDialogTitle.js +1 -1
- package/dist/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertTitle.js +1 -1
- package/dist/components/AnimatePresence.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/BannerDescription.js +1 -1
- package/dist/components/BannerTitle.js +1 -1
- package/dist/components/Box.js +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/ButtonGroup.js +1 -1
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Code.js +1 -1
- package/dist/components/Dialog.js +1 -1
- package/dist/components/DialogBody.js +1 -1
- package/dist/components/DialogClose.js +1 -1
- package/dist/components/DialogContent.js +1 -1
- package/dist/components/DialogDescription.js +1 -1
- package/dist/components/DialogFooter.js +1 -1
- package/dist/components/DialogTitle.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/Drawer.js +1 -1
- package/dist/components/DrawerBody.js +1 -1
- package/dist/components/DrawerFooter.js +1 -1
- package/dist/components/DrawerTitle.js +1 -1
- package/dist/components/DropdownMenu.js +1 -1
- package/dist/components/DropdownMenuContent.js +1 -1
- package/dist/components/DropdownMenuItem.js +1 -1
- package/dist/components/DropdownMenuLabel.js +1 -1
- package/dist/components/DropdownMenuSeparator.js +1 -1
- package/dist/components/DropdownMenuSub.js +1 -1
- package/dist/components/DropdownMenuSubContent.js +1 -1
- package/dist/components/DropdownMenuTrigger.js +1 -1
- package/dist/components/Field.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/HoverCard.js +1 -1
- package/dist/components/HoverCardContent.js +1 -1
- package/dist/components/HoverCardTrigger.js +1 -1
- package/dist/components/Indicator.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/Kbd.js +1 -1
- package/dist/components/Link.js +1 -1
- package/dist/components/MenuButton.js +1 -1
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Popover.js +1 -1
- package/dist/components/PopoverAnchor.js +1 -1
- package/dist/components/PopoverContent.js +1 -1
- package/dist/components/PopoverTrigger.js +1 -1
- package/dist/components/Progress.js +1 -1
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/SearchInput.js +1 -1
- package/dist/components/SegmentedControl.js +1 -1
- package/dist/components/SegmentedControlItem.js +1 -1
- package/dist/components/Separator.js +1 -1
- package/dist/components/SideNav.js +1 -1
- package/dist/components/SideNavAccountItem.js +1 -1
- package/dist/components/SideNavItem.js +1 -1
- package/dist/components/SideNavToggle.js +1 -1
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Spinner.js +1 -1
- package/dist/components/Switch.js +1 -1
- package/dist/components/Tabs.js +1 -1
- package/dist/components/TabsContent.js +1 -1
- package/dist/components/TabsList.js +1 -1
- package/dist/components/TabsTrigger.js +1 -1
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.js +1 -1
- package/dist/components/ThemeProvider.js +1 -1
- package/dist/components/Toast.js +1 -1
- package/dist/components/ToastAction.js +1 -1
- package/dist/components/ToastProvider.js +1 -1
- package/dist/components/ToastTitle.js +1 -1
- package/dist/components/ToggleButton.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/TooltipContent.js +1 -1
- package/dist/components/TooltipRoot.js +1 -1
- package/dist/components/TooltipTrigger.js +1 -1
- package/dist/components/Transition.js +1 -1
- package/dist/{fallbackSpan-lZrd3x9z.js → fallbackSpan-B3h0jb2t.js} +1 -1
- package/dist/index-8RWC_rPX.js +41 -0
- package/dist/{index-BJA4hCZ-.js → index-B9BSTjD7.js} +1 -1
- package/dist/index-BJRMGfOc.js +1 -0
- package/dist/{index-C1VYu6Pq.js → index-BKRpvxIZ.js} +1 -1
- package/dist/index-BO1Yrwdn.js +1 -0
- package/dist/{index-CmgtAzv5.js → index-BZ1CVUwt.js} +1 -1
- package/dist/{index-Dtq-yzv0.js → index-BbGZ2es-.js} +1 -1
- package/dist/{index-tYk1eY47.js → index-BsKFAx9Y.js} +1 -1
- package/dist/{index-Dw41znKI.js → index-Bx1LqORX.js} +1 -1
- package/dist/index-CCuJfDzQ.js +1 -0
- package/dist/index-CHylLgfg.js +1 -0
- package/dist/{index-NbhHgWKT.js → index-CMpRl1HZ.js} +1 -1
- package/dist/{index-Ba8gPSTf.js → index-Cp4g3COc.js} +1 -1
- package/dist/{index-CSs6bBeu.js → index-CzoEO9PE.js} +1 -1
- package/dist/{index-BOHqctlu.js → index-D3neleln.js} +1 -1
- package/dist/{index-Bkqv0nUy.js → index-D9dC5-2k.js} +1 -1
- package/dist/{index-wYPNGSjj.js → index-DCVZRV6v.js} +1 -1
- package/dist/{index-DPt6FkCx.js → index-DKzKWsoP.js} +1 -1
- package/dist/{index-Dybw2s6v.js → index-DWENXG0V.js} +1 -1
- package/dist/{index-H3J9f5nb.js → index-DXSTLjaU.js} +1 -1
- package/dist/{index-BEtaakOV.js → index-DXWuBxF-.js} +1 -1
- package/dist/{index-BChC9S1G.js → index-DXllU1i0.js} +1 -1
- package/dist/{index-CjdYl0jf.js → index-LFdW1wkC.js} +1 -1
- package/dist/index-Te4jPWAD.js +1 -0
- package/dist/{index-Bp8uU3Mc.js → index-xZyX2koM.js} +1 -1
- package/dist/{reach-auto-id-DBRVAmW0.js → reach-auto-id-lH8oTfx1.js} +1 -1
- package/dist/{recipeRuntime-B7O8Q8Ja.js → recipeRuntime-Btx2HBIL.js} +1 -1
- package/dist/{register-Br_7Z6lg.js → register-Cd4Qh2V4.js} +3 -3
- package/dist/{withIcon-DNuryrqG.js → withIcon-C0qxvYNZ.js} +1 -1
- package/package.json +3 -3
- package/dist/AlertContext-Cv1wXip8.js +0 -1
- package/dist/AlertDialogContext-C_Nzhv89.js +0 -1
- package/dist/AvatarContext-h42ZJD04.js +0 -1
- package/dist/BannerContext-DW4IB5CG.js +0 -1
- package/dist/DialogContext-BB47w-A6.js +0 -1
- package/dist/DropdownMenuContext-BC2JWts9.js +0 -1
- package/dist/DropdownMenuSubContext-BJSxl1l5.js +0 -1
- package/dist/FieldContext-DfU42nCV.js +0 -1
- package/dist/Icon-Dc-6oqlM.js +0 -1
- package/dist/IconAngleDown-DjmDQgs1.js +0 -1
- package/dist/IconAngleRight-D6jDQrwU.js +0 -1
- package/dist/MenuButton-EpD57nR8.js +0 -1
- package/dist/PopoverContext-Dbd0zay2.js +0 -1
- package/dist/RadioGroupContext-BCsFtRHm.js +0 -1
- package/dist/SideNavContext-DANohx-n.js +0 -1
- package/dist/TableRow.css.ts.vanilla-BMIhB2fq-DCJ85hHH.js +0 -1
- package/dist/TabsContext-CEvDzWfV.js +0 -1
- package/dist/TooltipContext-B5HQKZ_R.js +0 -1
- package/dist/index-1oKFsttO.js +0 -1
- package/dist/index-B9_2YXmS.js +0 -1
- package/dist/index-Bju2xmrM.js +0 -1
- package/dist/index-D6Y0-Ywh.js +0 -41
- package/dist/index-JwFJbFSA.js +0 -1
- package/dist/index-bYmpg7nk.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as d,u as o,k as t,r as l}from"../register-
|
|
1
|
+
import{w as d,u as o,k as t,r as l}from"../register-Cd4Qh2V4.js";import{C as u,a as f}from"../index-Cp4g3COc.js";import{n as v}from"../MenuContentBase-BW16ERXe.js";import{t as h}from"../PopoverContext-4EFn2sQi.js";import"../mapping-a1hAK8yD.js";import"../index-CBrz5xtv.js";import"../index-BZ1CVUwt.js";import"../index-DKzKWsoP.js";import"../index-BbGZ2es-.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-8RWC_rPX.js";import"../index-BJRMGfOc.js";import"../index-CHylLgfg.js";import"../index-CMpRl1HZ.js";import"../index-BKRpvxIZ.js";import"../index-LFdW1wkC.js";import"../index-Bx1LqORX.js";import"../index-CCuJfDzQ.js";import"../index-D3neleln.js";import"../index-BO1Yrwdn.js";import"../AnimatePresence-BwDPy3k5.js";import"../Transition-cMcn9E_A.js";import"../recipeRuntime-Btx2HBIL.js";import"../Box-DupSHbpd.js";const r=d(({align:i="start",children:n,sideOffset:p=2,withArrow:s,...m},a)=>{const{open:c}=h("PopoverContent");return o(v,{open:c,p:"sm",provider:"popover",...m,children:o(u,{align:i,ref:a,sideOffset:p,children:[n,s&&o(f,{asChild:!0,children:o("svg",{fill:t.colors["bg.default"],height:4,preserveAspectRatio:"none",stroke:t.colors["border.secondary"],viewBox:"0 0 30 10",width:8,children:[o("polygon",{points:"0,0 30,0 15,10"}),o("polyline",{points:"0,0 15,10 30,0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5"})]})})]})})});r.displayName="@optiaxiom/react/PopoverContent";const e="ax-popover-content";var w=l(e,r,{customEvents:["onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onOpenAutoFocus","onCloseAutoFocus"]});export{e as PopoverContent,w as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as g,u as o,r as n}from"../register-
|
|
1
|
+
import{w as g,u as o,r as n}from"../register-Cd4Qh2V4.js";import{T as c}from"../index-Cp4g3COc.js";import{t as l}from"../MenuButton-DPWC422W.js";import{i as d}from"../Box-DupSHbpd.js";import"../mapping-a1hAK8yD.js";import"../index-CBrz5xtv.js";import"../index-BZ1CVUwt.js";import"../index-DKzKWsoP.js";import"../index-BbGZ2es-.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-8RWC_rPX.js";import"../index-BJRMGfOc.js";import"../index-CHylLgfg.js";import"../index-CMpRl1HZ.js";import"../index-BKRpvxIZ.js";import"../index-LFdW1wkC.js";import"../index-Bx1LqORX.js";import"../Button-BKqW37Ez.js";import"../AnimatePresence-BwDPy3k5.js";import"../Transition-cMcn9E_A.js";import"../recipeRuntime-Btx2HBIL.js";import"../Flex-CSuhXFqA.js";import"../Icon-C5KkaPM-.js";import"../Spinner-DLIsZR9D.js";import"../fallbackSpan-B3h0jb2t.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";import"../IconAngleDown-B72J6Sbo.js";import"../withIcon-C0qxvYNZ.js";const i=g(({asChild:p,children:r,...m},e)=>{const{restProps:s,sprinkleProps:a}=d(m);return o(c,{asChild:!0,ref:e,...a,children:p?r:o(l,{...s,children:r})})});i.displayName="@optiaxiom/react/PopoverTrigger";const t="ax-popover-trigger";var f=n(t,i,{customEvents:[]});export{t as PopoverTrigger,f as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as u,u as n,r as _}from"../register-
|
|
1
|
+
import{w as u,u as n,r as _}from"../register-Cd4Qh2V4.js";import{c as C}from"../index-BKRpvxIZ.js";import{P as p}from"../index-DXllU1i0.js";import{o as c}from"../Box-DupSHbpd.js";import"../mapping-a1hAK8yD.js";import"../index-BZ1CVUwt.js";import"../recipeRuntime-Btx2HBIL.js";var d="Progress",v=100,[M,q]=C(d),[V,A]=M(d),m=u((r,e)=>{const{__scopeProgress:i,value:o=null,max:a,getValueLabel:I=S,...y}=r;(a||a===0)&&!x(a)&&console.error(D(`${a}`,"Progress"));const t=x(a)?a:v;o!==null&&!b(o,t)&&console.error(L(`${o}`,"Progress"));const s=b(o,t)?o:null,E=l(s)?I(s,t):void 0;return n(V,{scope:i,value:s,max:t,children:n(p.div,{"aria-valuemax":t,"aria-valuemin":0,"aria-valuenow":l(s)?s:void 0,"aria-valuetext":E,role:"progressbar","data-state":P(s,t),"data-value":s??void 0,"data-max":t,...y,ref:e})})});m.displayName=d;var g="ProgressIndicator",f=u((r,e)=>{const{__scopeProgress:i,...o}=r,a=A(g,i);return n(p.div,{"data-state":P(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...o,ref:e})});f.displayName=g;function S(r,e){return`${Math.round(r/e*100)}%`}function P(r,e){return r==null?"indeterminate":r===e?"complete":"loading"}function l(r){return typeof r=="number"}function x(r){return l(r)&&!isNaN(r)&&r>0}function b(r,e){return l(r)&&!isNaN(r)&&r<=e&&r>=0}function D(r,e){return`Invalid prop \`max\` of value \`${r}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${v}\`.`}function L(r,e){return`Invalid prop \`value\` of value \`${r}\` supplied to \`${e}\`. The \`value\` prop must be:
|
|
2
2
|
- a positive number
|
|
3
3
|
- less than the value passed to \`max\` (or ${v} if no \`max\` prop is set)
|
|
4
4
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
package/dist/components/Radio.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as f,w as b,u as e,r as w}from"../register-
|
|
1
|
+
import{i as f,w as b,u as e,r as w}from"../register-Cd4Qh2V4.js";import{i as y,o as k}from"../Box-DupSHbpd.js";import{r as g}from"../RadioGroupContext-CZaj56wJ.js";import{t as R,o as _,a as x,b as C,c as j,d as z}from"../ToggleInputLabel-aMgvYUVy.js";import{y as r}from"../recipeRuntime-Btx2HBIL.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";import"../mapping-a1hAK8yD.js";import"../index-BZ1CVUwt.js";import"../index-DKzKWsoP.js";import"../reach-auto-id-lH8oTfx1.js";import"../Flex-CSuhXFqA.js";import"../index-DCVZRV6v.js";import"../index-DXllU1i0.js";f("@layer optiaxiom._8eawvo;@layer optiaxiom._8eawvo{._1eqpunz{border-color:var(--_1rem3j7)}.swtdla{background-color:var(--_1rem3j7);display:none}._1jxh72e:has(.y78luo:checked) .swtdla{display:block}}");var $=r({base:[{bg:"bg.default",border:"1",mt:"2",p:"2",rounded:"full",size:"16"},"_1eqpunz"]}),B=r({base:[{rounded:"inherit",size:"full"},"swtdla"]}),E=r({base:"y78luo"}),q=r({base:"_1jxh72e"});const d=b(({children:s,className:n,description:i,disabled:l,name:p,onBlur:u,onChange:c,...a},m)=>{const{restProps:h,sprinkleProps:v}=y(a),o=g("Radio");if(o){if("checked"in a)throw new Error("Cannot use `checked` prop when `Radio` is used within `RadioGroup`");if(a.value===void 0)throw new Error("Must use `value` prop when `Radio` is used within `RadioGroup`")}return e(z,{description:!!i,...q({},n),...v,children:[e(R,{checked:o?.value!==void 0?o.value===a.value:void 0,defaultChecked:o?.defaultValue!==void 0?o.defaultValue===a.value:void 0,disabled:o?.disabled??l,name:o?.name??p,onBlur:o?.onBlur??u,onChange:o?.onChange??c,ref:m,type:"radio",...E(),...h}),e(_,{...$(),children:e(k,{...B()})}),e(x,{children:[e(C,{children:s}),i&&e(j,{children:i})]})]})});d.displayName="@optiaxiom/react/Radio";const t="ax-radio";var G=w(t,d,{customEvents:["onCheckedChange"]});export{t as Radio,G as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as g,u as r,r as h}from"../register-
|
|
1
|
+
import{w as g,u as r,r as h}from"../register-Cd4Qh2V4.js";import{t as v}from"../Flex-CSuhXFqA.js";import{t as x}from"../RadioGroupContext-CZaj56wJ.js";import{n as C}from"../Box-DupSHbpd.js";import"../mapping-a1hAK8yD.js";import"../index-DKzKWsoP.js";import"../index-BZ1CVUwt.js";import"../recipeRuntime-Btx2HBIL.js";const G={column:"sm","column-reverse":"sm",row:"md","row-reverse":"md"},a=g(({children:t,defaultValue:i,disabled:l,flexDirection:o="column",name:m,onBlur:u,onChange:d,onValueChange:p,value:s,...c},f)=>r(x,{defaultValue:i,disabled:l,name:m,onBlur:u,onChange:e=>{d?.(e),p?.(e.target.value)},value:s,children:r(v,{flexDirection:o,gap:C(o,e=>G[e]),ref:f,...c,children:t})}));a.displayName="@optiaxiom/react/RadioGroup";const n="ax-radio-group";var V=h(n,a,{customEvents:["onBlur","onChange","onValueChange"]});export{n as RadioGroup,V as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as o,b as v,i as w,w as b,A as y,h as g,r as k}from"../register-
|
|
1
|
+
import{u as o,b as v,i as w,w as b,A as y,h as g,r as k}from"../register-Cd4Qh2V4.js";import{u as x}from"../index-BZ1CVUwt.js";import{B as L}from"../Button-BKqW37Ez.js";import{i as E}from"../withIcon-C0qxvYNZ.js";import{C as I}from"../IconX-DzLmYa_B.js";import{a as j}from"../Input-Op6FF3pM.js";import{y as s}from"../recipeRuntime-Btx2HBIL.js";import"../mapping-a1hAK8yD.js";import"../AnimatePresence-BwDPy3k5.js";import"../Transition-cMcn9E_A.js";import"../Box-DupSHbpd.js";import"../Flex-CSuhXFqA.js";import"../Icon-C5KkaPM-.js";import"../Spinner-DLIsZR9D.js";import"../fallbackSpan-B3h0jb2t.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";import"../InputBase-DBLp98ND.js";import"../FieldContext-CEi4f2Zf.js";import"../Text-DON4bst4.js";const S=E({fill:"none",name:"IconMagnifyingGlass"},o(v,{children:[o("path",{d:"M8 13C11.3137 13 14 10.3137 14 7C14 3.68629 11.3137 1 8 1C4.68629 1 2 3.68629 2 7C2 10.3137 4.68629 13 8 13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),o("path",{d:"M16.5 15.5L12.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}));w("@layer optiaxiom._8eawvo;@layer optiaxiom._8eawvo{._1hwuw4i:is(:not(:focus-within):not(:hover),:has(input:disabled)) .su9ww3{visibility:hidden}}");var _=s({base:[{size:"sm"},"su9ww3"]}),M=s({base:"_1hwuw4i"});const p=b(({className:e,defaultValue:t="",onChange:l,onValueClear:m,value:n,...c},d)=>{const r=y(null),f=x(r,d),[h,C]=g(t),a=typeof n>"u"?h:n;return o(j,{addonAfter:a&&o(L,{appearance:"subtle","aria-label":"Clear",icon:a&&o(I,{}),onClick:()=>{r.current&&(V(r.current,""),r.current.focus(),m?.())},tabIndex:-1,..._()}),addonBefore:o(S,{}),addonPointerEvents:"none",autoComplete:"off",onChange:i=>{l?.(i),C(i.target.value)},ref:f,type:"search",value:a,...M({},e),...c})});p.displayName="@optiaxiom/react/SearchInput";function V(e,t){Object.getOwnPropertyDescriptor(e.constructor.prototype,"value")?.set?.call(e,t),e.dispatchEvent(new Event("change",{bubbles:!0}))}const u="ax-search-input";var A=k(u,p,{customEvents:["onValueClear"]});export{u as SearchInput,A as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as n,u as o,r as a}from"../register-
|
|
1
|
+
import{w as n,u as o,r as a}from"../register-Cd4Qh2V4.js";import{R as l}from"../index-CzoEO9PE.js";import{t as s}from"../Flex-CSuhXFqA.js";import"../mapping-a1hAK8yD.js";import"../index-BKRpvxIZ.js";import"../index-DXllU1i0.js";import"../index-BZ1CVUwt.js";import"../index-BO1Yrwdn.js";import"../index-CBrz5xtv.js";import"../index-D3neleln.js";import"../index-BJRMGfOc.js";import"../index-CHylLgfg.js";import"../index-DXWuBxF-.js";import"../index-Bx1LqORX.js";import"../index-xZyX2koM.js";import"../Box-DupSHbpd.js";import"../recipeRuntime-Btx2HBIL.js";const t=n(({children:e,type:i="single",...m},p)=>o(s,{asChild:!0,flexDirection:"row",gap:"0",...m,children:o(l,{ref:p,type:i,children:e})}));t.displayName="@optiaxiom/react/SegmentedControl";const r="ax-segmented-control";var d=a(r,t,{customEvents:["onValueChange"]});export{r as SegmentedControl,d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as p,u as t,r as n}from"../register-
|
|
1
|
+
import{w as p,u as t,r as n}from"../register-Cd4Qh2V4.js";import{I as a}from"../index-CzoEO9PE.js";import{B as s}from"../Button-BKqW37Ez.js";import"../mapping-a1hAK8yD.js";import"../index-BKRpvxIZ.js";import"../index-DXllU1i0.js";import"../index-BZ1CVUwt.js";import"../index-BO1Yrwdn.js";import"../index-CBrz5xtv.js";import"../index-D3neleln.js";import"../index-BJRMGfOc.js";import"../index-CHylLgfg.js";import"../index-DXWuBxF-.js";import"../index-Bx1LqORX.js";import"../index-xZyX2koM.js";import"../AnimatePresence-BwDPy3k5.js";import"../Transition-cMcn9E_A.js";import"../recipeRuntime-Btx2HBIL.js";import"../Box-DupSHbpd.js";import"../Flex-CSuhXFqA.js";import"../Icon-C5KkaPM-.js";import"../Spinner-DLIsZR9D.js";import"../fallbackSpan-B3h0jb2t.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";const r=p(({children:m,...i},e)=>t(a,{appearance:"subtle",asChild:!0,ref:e,...i,children:t(s,{children:m})}));r.displayName="@optiaxiom/react/SegmentedControlItem";const o="ax-segmented-control-item";var l=n(o,r,{customEvents:[]});export{o as SegmentedControlItem,l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o}from"../register-
|
|
1
|
+
import{r as o}from"../register-Cd4Qh2V4.js";import{o as t}from"../Separator-CXhbKvss.js";import"../mapping-a1hAK8yD.js";import"../index-DXllU1i0.js";import"../index-BZ1CVUwt.js";import"../Box-DupSHbpd.js";import"../recipeRuntime-Btx2HBIL.js";const r="ax-separator";var a=o(r,t,{customEvents:[]});export{r as Separator,a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w,h as g,A as C,y as b,u as e,r as y}from"../register-
|
|
1
|
+
import{w,h as g,A as C,y as b,u as e,r as y}from"../register-Cd4Qh2V4.js";import{u as E}from"../index-Bx1LqORX.js";import{t as a}from"../Flex-CSuhXFqA.js";import{t as N}from"../SideNavContext-B3IBBW9I.js";import"../mapping-a1hAK8yD.js";import"../index-DXWuBxF-.js";import"../Box-DupSHbpd.js";import"../index-BZ1CVUwt.js";import"../recipeRuntime-Btx2HBIL.js";import"../index-DKzKWsoP.js";const i=w(({addonAfter:o,addonBefore:p,children:s,defaultExpanded:m,expanded:f,onExpandedChange:h,...u},c)=>{const[d,x]=E({defaultProp:m,onChange:h,prop:f}),[r,t]=g(!1),n=C();return b(()=>{n.current=window.setTimeout(()=>t(!1),300)},[r]),e(N,{animations:r,expanded:d,onExpandedChange:v=>{window.clearTimeout(n.current),t(!0),x(v)},children:e(a,{borderR:"1",w:"fit",...u,children:e(a,{asChild:!0,bg:"bg.default",flex:"1",gap:"0",overflow:"hidden",pb:"xs",pt:"md",transition:r?"all":void 0,w:d?"224":"56",children:e("nav",{"aria-label":"Main",ref:c,children:[p,e(a,{asChild:!0,flex:"1",gap:"4",justifyContent:"start",overflowX:"hidden",overflowY:"auto",py:"xs",w:"full",children:e("ul",{children:s})}),o&&e(a,{asChild:!0,gap:"xs",mt:"auto",overflowX:"hidden",py:"xs",children:e("ul",{children:o})})]})})})})});i.displayName="@optiaxiom/react/SideNav";const l="ax-side-nav";var S=y(l,i,{customEvents:["onExpandedChange"]});export{l as SideNav,S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as p,u as r,f as h,s as x,r as u}from"../register-
|
|
1
|
+
import{w as p,u as r,f as h,s as x,r as u}from"../register-Cd4Qh2V4.js";import{o as t}from"../Box-DupSHbpd.js";import{t as i}from"../Flex-CSuhXFqA.js";import{d as v}from"../IconEllipsis-nbMKo1j9.js";import{o as g}from"../SideNavContext-B3IBBW9I.js";import{r as e}from"../Text-DON4bst4.js";import{m as A}from"../Transition-cMcn9E_A.js";import"../mapping-a1hAK8yD.js";import"../index-BZ1CVUwt.js";import"../recipeRuntime-Btx2HBIL.js";import"../withIcon-C0qxvYNZ.js";import"../index-DKzKWsoP.js";const n=p(({avatar:o,name:m,organization:c,...d},l)=>{const{animations:s,expanded:f}=g("SideNavAccountItem");return r(i,{asChild:!0,my:"xs",children:r("li",{children:r(i,{asChild:!0,flexDirection:"row",gap:"xs",mx:"xs",p:"4",textAlign:"start",...d,children:r("button",{ref:l,children:[r(t,{asChild:!0,flex:"none",my:"2",children:h(o)&&x(o,{rounded:"sm"})}),f&&r(A,{skipAnimations:!s,children:r(i,{flex:"1",flexDirection:"row",gap:"xs",overflowX:"hidden",children:[r(i,{flex:"1",gap:"0",overflowX:"hidden",children:[r(e,{color:"fg.default",fontWeight:"500",truncate:!0,children:m}),r(e,{color:"fg.tertiary",fontSize:"sm",truncate:!0,children:c})]}),r(t,{asChild:!0,children:r(v,{})})]})})]})})})})});n.displayName="@optiaxiom/react/SideNavAccountItem";const a="ax-side-nav-account-item";var w=u(a,n,{customEvents:[]});export{a as SideNavAccountItem,w as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"../register-
|
|
1
|
+
import{r}from"../register-Cd4Qh2V4.js";import{d as m}from"../SideNavItem-C89Y6T_n.js";import"../mapping-a1hAK8yD.js";import"../Box-DupSHbpd.js";import"../index-BZ1CVUwt.js";import"../recipeRuntime-Btx2HBIL.js";import"../Button-BKqW37Ez.js";import"../AnimatePresence-BwDPy3k5.js";import"../Transition-cMcn9E_A.js";import"../Flex-CSuhXFqA.js";import"../Icon-C5KkaPM-.js";import"../Spinner-DLIsZR9D.js";import"../fallbackSpan-B3h0jb2t.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";import"../SideNavContext-B3IBBW9I.js";import"../index-DKzKWsoP.js";import"../Tooltip-BEAGhUne.js";import"../TooltipContent-o82qkmmy.js";import"../index-BsKFAx9Y.js";import"../index-CBrz5xtv.js";import"../index-BbGZ2es-.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-BJRMGfOc.js";import"../index-CHylLgfg.js";import"../index-CMpRl1HZ.js";import"../index-BKRpvxIZ.js";import"../index-LFdW1wkC.js";import"../index-Bx1LqORX.js";import"../index-DCVZRV6v.js";import"../Text-DON4bst4.js";import"../TooltipContext-DwWvNZf-.js";import"../TooltipRoot-BFD9bK77.js";import"../TooltipTrigger-DHhEikg9.js";const t="ax-side-nav-item";var i=r(t,m,{customEvents:[]});export{t as SideNavItem,i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as l,u as d,r as n}from"../register-
|
|
1
|
+
import{w as l,u as d,r as n}from"../register-Cd4Qh2V4.js";import{o as g}from"../SideNavContext-B3IBBW9I.js";import{d as s}from"../SideNavItem-C89Y6T_n.js";import"../mapping-a1hAK8yD.js";import"../index-DKzKWsoP.js";import"../Box-DupSHbpd.js";import"../index-BZ1CVUwt.js";import"../recipeRuntime-Btx2HBIL.js";import"../Button-BKqW37Ez.js";import"../AnimatePresence-BwDPy3k5.js";import"../Transition-cMcn9E_A.js";import"../Flex-CSuhXFqA.js";import"../Icon-C5KkaPM-.js";import"../Spinner-DLIsZR9D.js";import"../fallbackSpan-B3h0jb2t.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";import"../Tooltip-BEAGhUne.js";import"../TooltipContent-o82qkmmy.js";import"../index-BsKFAx9Y.js";import"../index-CBrz5xtv.js";import"../index-BbGZ2es-.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-BJRMGfOc.js";import"../index-CHylLgfg.js";import"../index-CMpRl1HZ.js";import"../index-BKRpvxIZ.js";import"../index-LFdW1wkC.js";import"../index-Bx1LqORX.js";import"../index-DCVZRV6v.js";import"../Text-DON4bst4.js";import"../TooltipContext-DwWvNZf-.js";import"../TooltipRoot-BFD9bK77.js";import"../TooltipTrigger-DHhEikg9.js";const r=l(({"aria-label":t,children:p,...m},e)=>{const{expanded:o,onExpandedChange:a}=g("SideNavToggle");return d(s,{"aria-label":t||(o?"Collapse":"Expand"),fontWeight:"400",onClick:()=>a(!o),ref:e,...m,children:p||(o?"Collapse":"Expand")})});r.displayName="@optiaxiom/react/SideNavToggle";const i="ax-side-nav-toggle";var c=n(i,r,{customEvents:[]});export{i as SideNavToggle,c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as p,w as d,u as l,s as f,r as u}from"../register-
|
|
1
|
+
import{i as p,w as d,u as l,s as f,r as u}from"../register-Cd4Qh2V4.js";import{o as y}from"../Box-DupSHbpd.js";import{y as b}from"../recipeRuntime-Btx2HBIL.js";import"../mapping-a1hAK8yD.js";import"../index-BZ1CVUwt.js";p('@layer optiaxiom._8eawvo;@layer optiaxiom._8eawvo{._13qat10:empty:before{content:"\\00a0"}}');var v=b({base:[{animation:"pulse",bg:"bg.secondary",color:"bg.default",display:"block"},"_13qat10"]});const i=d(({children:o,circle:a,className:n,h:t,rounded:e,w:m,...c},r)=>l(y,{asChild:!0,h:t,rounded:a||e==="full"?"full":e??"sm",w:m??(a||e==="full"?t:void 0),...v({},n),...c,children:o?f(o,{ref:r}):l("span",{ref:r})}));i.displayName="@optiaxiom/react/Skeleton";const s="ax-skeleton";var h=u(s,i,{customEvents:[]});export{s as Skeleton,h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"../register-
|
|
1
|
+
import{r as t}from"../register-Cd4Qh2V4.js";import{n as o}from"../Spinner-DLIsZR9D.js";import"../mapping-a1hAK8yD.js";import"../Box-DupSHbpd.js";import"../index-BZ1CVUwt.js";import"../recipeRuntime-Btx2HBIL.js";import"../Flex-CSuhXFqA.js";import"../Transition-cMcn9E_A.js";const r="ax-spinner";var i=t(r,o,{customEvents:[]});export{r as Spinner,i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as d,w as _,u as o,r as h}from"../register-
|
|
1
|
+
import{i as d,w as _,u as o,r as h}from"../register-Cd4Qh2V4.js";import{i as b,o as k}from"../Box-DupSHbpd.js";import{t as v,o as x,a as g,b as f,c as u,d as y}from"../ToggleInputLabel-aMgvYUVy.js";import{y as r}from"../recipeRuntime-Btx2HBIL.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";import"../mapping-a1hAK8yD.js";import"../index-BZ1CVUwt.js";import"../reach-auto-id-lH8oTfx1.js";import"../Flex-CSuhXFqA.js";import"../index-DCVZRV6v.js";import"../index-DXllU1i0.js";import"../index-DKzKWsoP.js";d("@layer optiaxiom._8eawvo;@layer optiaxiom._8eawvo{._61n40y{--_1rem3j7:var(--ax-colors-bg-tertiary)}._61n40y:has(._5k94tm:not(:disabled):not(:checked)):hover{--_1rem3j7:var(--ax-colors-bg-tertiary-hovered)}._8ttg5z{background-color:var(--_1rem3j7);position:relative}._14psck2{background-color:var(--ax-colors-bg-default);transform:translateX(-10px)}._9542np:has(._5k94tm:checked) ._14psck2{transform:translateX(10px)}._9542np:has(._5k94tm:disabled) ._14psck2{background-color:var(--ax-colors-bg-page)}._9542np:has(._5k94tm:not(:disabled)) ._14psck2{box-shadow:var(--ax-boxShadow-sm)}}");var w=r({base:["_9542np","_61n40y"]}),$=r({base:[{px:"12",py:"2",rounded:"full",transition:"colors"},"_8ttg5z"]}),z=r({base:"_5k94tm"}),S=r({base:[{display:"block",rounded:"full",transition:"transform"},"_14psck2"],variants:{size:{md:{size:"16"},lg:{size:"20"}}}});const s=_(({children:i,className:c,description:a,size:t="md",...n},p)=>{const{restProps:l,sprinkleProps:m}=b(n);return o(y,{description:!!a,...w({},c),...m,children:[o(v,{ref:p,role:"switch",...z(),...l}),o(x,{...$(),children:o(k,{...S({size:t})})}),o(g,{pt:t==="lg"?"2":"0",children:[o(f,{children:i}),a&&o(u,{children:a})]})]})});s.displayName="@optiaxiom/react/Switch";const e="ax-switch";var j=h(e,s,{customEvents:["onCheckedChange"]});export{e as Switch,j as default};
|
package/dist/components/Tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as n,w as l,u as o,r as c}from"../register-
|
|
1
|
+
import{i as n,w as l,u as o,r as c}from"../register-Cd4Qh2V4.js";import{R as d}from"../index-DXSTLjaU.js";import{i as f,o as h}from"../Box-DupSHbpd.js";import{e as x}from"../TabsContext-BMXB27CB.js";import{y}from"../recipeRuntime-Btx2HBIL.js";import"../mapping-a1hAK8yD.js";import"../index-CBrz5xtv.js";import"../index-DKzKWsoP.js";import"../index-BO1Yrwdn.js";import"../index-D3neleln.js";import"../index-BKRpvxIZ.js";import"../index-BZ1CVUwt.js";import"../index-BJRMGfOc.js";import"../index-CHylLgfg.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-Bx1LqORX.js";import"../index-LFdW1wkC.js";n("@layer optiaxiom._8eawvo;@layer optiaxiom._8eawvo{._1moqah8[data-orientation=horizontal]{flex-direction:column}._1moqah8[data-orientation=vertical]{flex-direction:row}}");var u=y({base:[{display:"flex"},"_1moqah8"]});const r=l(({appearance:i="primary",children:t,...e},m)=>{const{restProps:p,sprinkleProps:s}=f(e);return o(h,{asChild:!0,...u(),...s,children:o(d,{ref:m,...p,children:o(x,{appearance:i,children:t})})})});r.displayName="@optiaxiom/react/Tabs";const a="ax-tabs";var v=c(a,r,{customEvents:["onValueChange"]});export{a as Tabs,v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as n,u as t,r as a}from"../register-
|
|
1
|
+
import{w as n,u as t,r as a}from"../register-Cd4Qh2V4.js";import{T as c}from"../index-DXSTLjaU.js";import{i as l,o as d}from"../Box-DupSHbpd.js";import"../mapping-a1hAK8yD.js";import"../index-CBrz5xtv.js";import"../index-DKzKWsoP.js";import"../index-BO1Yrwdn.js";import"../index-D3neleln.js";import"../index-BKRpvxIZ.js";import"../index-BZ1CVUwt.js";import"../index-BJRMGfOc.js";import"../index-CHylLgfg.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-Bx1LqORX.js";import"../index-LFdW1wkC.js";import"../recipeRuntime-Btx2HBIL.js";const o=n(({children:i,...m},p)=>{const{restProps:s,sprinkleProps:e}=l(m);return t(d,{asChild:!0,flex:"1",ref:p,...e,children:t(c,{...s,children:i})})});o.displayName="@optiaxiom/react/TabsContent";const r="ax-tabs-content";var f=a(r,o,{customEvents:[]});export{r as TabsContent,f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as s,w as n,u as a,r as m}from"../register-
|
|
1
|
+
import{i as s,w as n,u as a,r as m}from"../register-Cd4Qh2V4.js";import{L as d}from"../index-DXSTLjaU.js";import{o as c}from"../Box-DupSHbpd.js";import{o as l}from"../TabsContext-BMXB27CB.js";import{y as b}from"../recipeRuntime-Btx2HBIL.js";import"../mapping-a1hAK8yD.js";import"../index-CBrz5xtv.js";import"../index-DKzKWsoP.js";import"../index-BO1Yrwdn.js";import"../index-D3neleln.js";import"../index-BKRpvxIZ.js";import"../index-BZ1CVUwt.js";import"../index-BJRMGfOc.js";import"../index-CHylLgfg.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-Bx1LqORX.js";import"../index-LFdW1wkC.js";s("@layer optiaxiom._8eawvo;@layer optiaxiom._8eawvo{.k76ssv[data-orientation=horizontal]{flex-direction:row}.k76ssv[data-orientation=vertical]{flex-direction:column}.b06ony[data-orientation=horizontal]{border-bottom-width:1px;gap:var(--ax-spacing-lg)}.b06ony[data-orientation=vertical]{border-right-width:1px;gap:var(--ax-spacing-xs)}._1d2fbt1[data-orientation=horizontal]{gap:var(--ax-spacing-md)}._1d2fbt1[data-orientation=vertical]{gap:var(--ax-spacing-xs)}}");var v=b({base:[{borderColor:"border.tertiary",display:"flex"},"k76ssv"],variants:{appearance:{primary:"b06ony",secondary:"_1d2fbt1"}}});const t=n(({children:r,...i},e)=>{const{appearance:p}=l("TabsList");return a(c,{asChild:!0,...v({appearance:p}),children:a(d,{ref:e,...i,children:r})})});t.displayName="@optiaxiom/react/TabsList";const o="ax-tabs-list";var x=m(o,t,{customEvents:[]});export{o as TabsList,x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as x,w as h,u as r,r as v}from"../register-
|
|
1
|
+
import{i as x,w as h,u as r,r as v}from"../register-Cd4Qh2V4.js";import{a as m}from"../index-DXSTLjaU.js";import{i as u,o as t}from"../Box-DupSHbpd.js";import{B as y}from"../Button-BKqW37Ez.js";import{t as _}from"../Flex-CSuhXFqA.js";import{o as T}from"../TabsContext-BMXB27CB.js";import{y as p}from"../recipeRuntime-Btx2HBIL.js";import"../mapping-a1hAK8yD.js";import"../index-CBrz5xtv.js";import"../index-DKzKWsoP.js";import"../index-BO1Yrwdn.js";import"../index-D3neleln.js";import"../index-BKRpvxIZ.js";import"../index-BZ1CVUwt.js";import"../index-BJRMGfOc.js";import"../index-CHylLgfg.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-Bx1LqORX.js";import"../index-LFdW1wkC.js";import"../AnimatePresence-BwDPy3k5.js";import"../Transition-cMcn9E_A.js";import"../Icon-C5KkaPM-.js";import"../Spinner-DLIsZR9D.js";import"../fallbackSpan-B3h0jb2t.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";x("@layer optiaxiom._8eawvo;@layer optiaxiom._8eawvo{._641lmi{border-color:transparent;color:var(--ax-colors-fg-tertiary);user-select:none}._641lmi:focus-visible{outline:2px solid var(--ax-colors-border-focus);outline-offset:1px}._641lmi:hover:not([data-state=active]){border-color:var(--ax-colors-border-default);color:var(--ax-colors-fg-secondary)}._641lmi[data-disabled]{color:var(--ax-colors-fg-disabled)}._641lmi[data-orientation=horizontal]{border-bottom-width:2px;margin-bottom:-1px}._641lmi[data-orientation=vertical]{border-right-width:2px;margin-right:-1px;padding-inline:10px}._641lmi[data-state=active]{border-color:var(--ax-colors-border-accent);color:var(--ax-colors-fg-default)}.ah539l:active .xb2a4z{background-color:var(--ax-colors-bg-secondary)}}");var w=p({base:[{flexDirection:"row",gap:"xs",justifyContent:["center","start"],py:"6",rounded:"sm"},"xb2a4z"]}),C=p({base:["ah539l",{flex:["1","initial"],fontSize:"md",fontWeight:"500",py:"4"},"_641lmi"]});const c=h(({addonAfter:a,addonBefore:e,children:l,icon:o,iconPosition:i="start",...g},n)=>{const{appearance:b}=T("TabsTrigger"),{restProps:s,sprinkleProps:d}=u(g);return b==="primary"?r(t,{asChild:!0,...C(),...d,children:r(m,{ref:n,...s,children:r(_,{...w(),children:[o&&i==="start"?r(t,{asChild:!0,h:"auto",w:"20",children:o}):e,l,o&&i==="end"?r(t,{asChild:!0,h:"auto",w:"20",children:o}):a]})})}):r(y,{addonAfter:a,addonBefore:e,appearance:"subtle",asChild:!0,icon:o,iconPosition:i,justifyContent:"start",ref:n,...d,children:r(m,{...s,children:l})})});c.displayName="@optiaxiom/react/TabsTrigger";const f="ax-tabs-trigger";var z=v(f,c,{customEvents:[]});export{f as TabsTrigger,z as default};
|
package/dist/components/Text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"../register-
|
|
1
|
+
import{r}from"../register-Cd4Qh2V4.js";import{r as o}from"../Text-DON4bst4.js";import"../mapping-a1hAK8yD.js";import"../index-BZ1CVUwt.js";import"../Box-DupSHbpd.js";import"../recipeRuntime-Btx2HBIL.js";const t="ax-text";var m=r(t,o,{customEvents:[]});export{t as Text,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as z,w as d,h as g,u as e,r as C}from"../register-
|
|
1
|
+
import{i as z,w as d,h as g,u as e,r as C}from"../register-Cd4Qh2V4.js";import{a as c}from"../index-BZ1CVUwt.js";import{f as T}from"../InputBase-DBLp98ND.js";import{i as N,o as s}from"../Box-DupSHbpd.js";import{y as l}from"../recipeRuntime-Btx2HBIL.js";import"../mapping-a1hAK8yD.js";import"../FieldContext-CEi4f2Zf.js";import"../Flex-CSuhXFqA.js";import"../Text-DON4bst4.js";import"../fallbackSpan-B3h0jb2t.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";z("@layer optiaxiom._8eawvo;@layer optiaxiom._8eawvo{._1pfw6m7{max-height:calc(16px + var(--ire867)*22px)}.b99499{--ire867:1}._87fl7e{--ire867:2}.zc85qp{--ire867:3}.lvd06{--ire867:4}.mxynr2{--ire867:5}.fmudw2{resize:vertical}._1i3b7fd{grid-area:1/1/2/2}._16rmsha{visibility:hidden;white-space:pre-wrap}._10yx66i{resize:none}}");var R=l({base:["_1i3b7fd","_16rmsha"]}),q=l({base:["_1i3b7fd","_10yx66i"]}),P=l({base:{display:"grid",flex:"auto",overflow:"auto"},variants:{maxRows:{1:["_1pfw6m7","b99499"],2:["_1pfw6m7","_87fl7e"],3:["_1pfw6m7","zc85qp"],4:["_1pfw6m7","lvd06"],5:["_1pfw6m7","mxynr2"]},resize:{auto:{},none:{},vertical:"fmudw2"}}});const f=d(({asChild:i,children:o,className:r,maxRows:t,onChange:w,resize:m="none",...a},u)=>{const v=i?c:"textarea",{restProps:_,sprinkleProps:p}=N(a),[y,b]=g(a.value===void 0?a.defaultValue:a.value);return e(s,{...P({maxRows:t,resize:m}),children:[e(s,{asChild:!0,...q({},r),...p,children:e(v,{onChange:n=>{b(n.target.value),w?.(n)},ref:u,..._,children:o})}),m==="auto"&&e(s,{...R({},r),...p,children:(y??"")+" "})]})});f.displayName="@optiaxiom/react/TextareaAutosize";const x=d(({asChild:i,children:o,...r},t)=>e(T,{flexDirection:"column",size:"lg",...r,children:e(i?c:f,{ref:t,rows:r.rows??3,children:o})}));x.displayName="@optiaxiom/react/Textarea";const h="ax-textarea";var S=C(h,x,{customEvents:[]});export{h as Textarea,S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,a as o}from"../register-
|
|
1
|
+
import{r,a as o}from"../register-Cd4Qh2V4.js";import"../mapping-a1hAK8yD.js";const e="ax-theme-provider";var t=r(e,o,{customEvents:[]});export{e as ThemeProvider,t as default};
|
package/dist/components/Toast.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"../register-
|
|
1
|
+
import{r as t}from"../register-Cd4Qh2V4.js";import{e as r}from"../Toast-DgEn8Og0.js";import"../mapping-a1hAK8yD.js";import"../index-Te4jPWAD.js";import"../index-CBrz5xtv.js";import"../index-BZ1CVUwt.js";import"../index-D3neleln.js";import"../index-BKRpvxIZ.js";import"../index-DKzKWsoP.js";import"../index-BbGZ2es-.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-LFdW1wkC.js";import"../index-CHylLgfg.js";import"../index-Bx1LqORX.js";import"../index-DCVZRV6v.js";import"../Box-DupSHbpd.js";import"../recipeRuntime-Btx2HBIL.js";import"../Button-BKqW37Ez.js";import"../AnimatePresence-BwDPy3k5.js";import"../Transition-cMcn9E_A.js";import"../Flex-CSuhXFqA.js";import"../Icon-C5KkaPM-.js";import"../Spinner-DLIsZR9D.js";import"../fallbackSpan-B3h0jb2t.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";import"../IconTriangleExclamationFilled-RnOnC1LL.js";import"../withIcon-C0qxvYNZ.js";import"../IconX-DzLmYa_B.js";const o="ax-toast";var p=t(o,r,{customEvents:["onPause","onOpenChange","onEscapeKeyDown","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]});export{o as Toast,p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o}from"../register-
|
|
1
|
+
import{r as o}from"../register-Cd4Qh2V4.js";import{o as r}from"../ToastAction-D7BQsqXf.js";import"../mapping-a1hAK8yD.js";import"../index-Te4jPWAD.js";import"../index-CBrz5xtv.js";import"../index-BZ1CVUwt.js";import"../index-D3neleln.js";import"../index-BKRpvxIZ.js";import"../index-DKzKWsoP.js";import"../index-BbGZ2es-.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-LFdW1wkC.js";import"../index-CHylLgfg.js";import"../index-Bx1LqORX.js";import"../index-DCVZRV6v.js";import"../Button-BKqW37Ez.js";import"../AnimatePresence-BwDPy3k5.js";import"../Transition-cMcn9E_A.js";import"../recipeRuntime-Btx2HBIL.js";import"../Box-DupSHbpd.js";import"../Flex-CSuhXFqA.js";import"../Icon-C5KkaPM-.js";import"../Spinner-DLIsZR9D.js";import"../fallbackSpan-B3h0jb2t.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";import"../Separator-CXhbKvss.js";const t="ax-toast-action";var i=o(t,r,{customEvents:[]});export{t as ToastAction,i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o}from"../register-
|
|
1
|
+
import{r as o}from"../register-Cd4Qh2V4.js";import{s as t}from"../ToastProvider-Bw5KJZBf.js";import"../mapping-a1hAK8yD.js";import"../index-BZ1CVUwt.js";import"../index-BbGZ2es-.js";import"../index-CBrz5xtv.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-Te4jPWAD.js";import"../index-D3neleln.js";import"../index-BKRpvxIZ.js";import"../index-DKzKWsoP.js";import"../index-LFdW1wkC.js";import"../index-CHylLgfg.js";import"../index-Bx1LqORX.js";import"../index-DCVZRV6v.js";import"../Flex-CSuhXFqA.js";import"../Box-DupSHbpd.js";import"../recipeRuntime-Btx2HBIL.js";import"../Toast-DgEn8Og0.js";import"../Button-BKqW37Ez.js";import"../AnimatePresence-BwDPy3k5.js";import"../Transition-cMcn9E_A.js";import"../Icon-C5KkaPM-.js";import"../Spinner-DLIsZR9D.js";import"../fallbackSpan-B3h0jb2t.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";import"../IconTriangleExclamationFilled-RnOnC1LL.js";import"../withIcon-C0qxvYNZ.js";import"../IconX-DzLmYa_B.js";import"../ToastAction-D7BQsqXf.js";import"../Separator-CXhbKvss.js";import"../ToastTitle-KhkEPzH5.js";import"../Text-DON4bst4.js";const r="ax-toast-provider";var i=o(r,t,{customEvents:[]});export{r as ToastProvider,i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o}from"../register-
|
|
1
|
+
import{r as o}from"../register-Cd4Qh2V4.js";import{o as r}from"../ToastTitle-KhkEPzH5.js";import"../mapping-a1hAK8yD.js";import"../index-Te4jPWAD.js";import"../index-CBrz5xtv.js";import"../index-BZ1CVUwt.js";import"../index-D3neleln.js";import"../index-BKRpvxIZ.js";import"../index-DKzKWsoP.js";import"../index-BbGZ2es-.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-LFdW1wkC.js";import"../index-CHylLgfg.js";import"../index-Bx1LqORX.js";import"../index-DCVZRV6v.js";import"../Text-DON4bst4.js";import"../Box-DupSHbpd.js";import"../recipeRuntime-Btx2HBIL.js";const t="ax-toast-title";var i=o(t,r,{customEvents:[]});export{t as ToastTitle,i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as e,u as t,r as a}from"../register-
|
|
1
|
+
import{w as e,u as t,r as a}from"../register-Cd4Qh2V4.js";import{R as n}from"../index-xZyX2koM.js";import{B as s}from"../Button-BKqW37Ez.js";import"../mapping-a1hAK8yD.js";import"../index-CBrz5xtv.js";import"../index-Bx1LqORX.js";import"../index-DXWuBxF-.js";import"../index-DXllU1i0.js";import"../index-BZ1CVUwt.js";import"../AnimatePresence-BwDPy3k5.js";import"../Transition-cMcn9E_A.js";import"../recipeRuntime-Btx2HBIL.js";import"../Box-DupSHbpd.js";import"../Flex-CSuhXFqA.js";import"../Icon-C5KkaPM-.js";import"../Spinner-DLIsZR9D.js";import"../fallbackSpan-B3h0jb2t.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";const o=e(({children:i,...m},p)=>t(s,{appearance:"subtle",asChild:!0,...m,children:t(n,{ref:p,children:i})}));o.displayName="@optiaxiom/react/ToggleButton";const r="ax-toggle-button";var l=a(r,o,{customEvents:["onPressedChange"]});export{r as ToggleButton,l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"../register-
|
|
1
|
+
import{r as t}from"../register-Cd4Qh2V4.js";import{p as r}from"../Tooltip-BEAGhUne.js";import"../mapping-a1hAK8yD.js";import"../TooltipContent-o82qkmmy.js";import"../index-BsKFAx9Y.js";import"../index-CBrz5xtv.js";import"../index-BZ1CVUwt.js";import"../index-DKzKWsoP.js";import"../index-BbGZ2es-.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-BJRMGfOc.js";import"../index-CHylLgfg.js";import"../index-CMpRl1HZ.js";import"../index-BKRpvxIZ.js";import"../index-LFdW1wkC.js";import"../index-Bx1LqORX.js";import"../index-DCVZRV6v.js";import"../AnimatePresence-BwDPy3k5.js";import"../Transition-cMcn9E_A.js";import"../recipeRuntime-Btx2HBIL.js";import"../Box-DupSHbpd.js";import"../Text-DON4bst4.js";import"../TooltipContext-DwWvNZf-.js";import"../TooltipRoot-BFD9bK77.js";import"../TooltipTrigger-DHhEikg9.js";import"../Button-BKqW37Ez.js";import"../Flex-CSuhXFqA.js";import"../Icon-C5KkaPM-.js";import"../Spinner-DLIsZR9D.js";import"../fallbackSpan-B3h0jb2t.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";const o="ax-tooltip";var p=t(o,r,{customEvents:["onEscapeKeyDown","onPointerDownOutside","onOpenChange"]});export{o as Tooltip,p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"../register-
|
|
1
|
+
import{r as t}from"../register-Cd4Qh2V4.js";import{r}from"../TooltipContent-o82qkmmy.js";import"../mapping-a1hAK8yD.js";import"../index-BsKFAx9Y.js";import"../index-CBrz5xtv.js";import"../index-BZ1CVUwt.js";import"../index-DKzKWsoP.js";import"../index-BbGZ2es-.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-BJRMGfOc.js";import"../index-CHylLgfg.js";import"../index-CMpRl1HZ.js";import"../index-BKRpvxIZ.js";import"../index-LFdW1wkC.js";import"../index-Bx1LqORX.js";import"../index-DCVZRV6v.js";import"../AnimatePresence-BwDPy3k5.js";import"../Transition-cMcn9E_A.js";import"../recipeRuntime-Btx2HBIL.js";import"../Box-DupSHbpd.js";import"../Text-DON4bst4.js";import"../TooltipContext-DwWvNZf-.js";const o="ax-tooltip-content";var i=t(o,r,{customEvents:["onEscapeKeyDown","onPointerDownOutside"]});export{o as TooltipContent,i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"../register-
|
|
1
|
+
import{r as t}from"../register-Cd4Qh2V4.js";import{c as r}from"../TooltipRoot-BFD9bK77.js";import"../mapping-a1hAK8yD.js";import"../index-BsKFAx9Y.js";import"../index-CBrz5xtv.js";import"../index-BZ1CVUwt.js";import"../index-DKzKWsoP.js";import"../index-BbGZ2es-.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-BJRMGfOc.js";import"../index-CHylLgfg.js";import"../index-CMpRl1HZ.js";import"../index-BKRpvxIZ.js";import"../index-LFdW1wkC.js";import"../index-Bx1LqORX.js";import"../index-DCVZRV6v.js";import"../TooltipContext-DwWvNZf-.js";const o="ax-tooltip-root";var p=t(o,r,{customEvents:["onOpenChange"]});export{o as TooltipRoot,p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"../register-
|
|
1
|
+
import{r as t}from"../register-Cd4Qh2V4.js";import{t as o}from"../TooltipTrigger-DHhEikg9.js";import"../mapping-a1hAK8yD.js";import"../index-BZ1CVUwt.js";import"../index-BsKFAx9Y.js";import"../index-CBrz5xtv.js";import"../index-DKzKWsoP.js";import"../index-BbGZ2es-.js";import"../index-DXllU1i0.js";import"../index-DXWuBxF-.js";import"../index-BJRMGfOc.js";import"../index-CHylLgfg.js";import"../index-CMpRl1HZ.js";import"../index-BKRpvxIZ.js";import"../index-LFdW1wkC.js";import"../index-Bx1LqORX.js";import"../index-DCVZRV6v.js";import"../Button-BKqW37Ez.js";import"../AnimatePresence-BwDPy3k5.js";import"../Transition-cMcn9E_A.js";import"../recipeRuntime-Btx2HBIL.js";import"../Box-DupSHbpd.js";import"../Flex-CSuhXFqA.js";import"../Icon-C5KkaPM-.js";import"../Spinner-DLIsZR9D.js";import"../fallbackSpan-B3h0jb2t.js";import"../TableRow.css.ts.vanilla-BMIhB2fq-BoNyY9hQ.js";import"../TooltipContext-DwWvNZf-.js";const r="ax-tooltip-trigger";var i=t(r,o,{customEvents:[]});export{r as TooltipTrigger,i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"../register-
|
|
1
|
+
import{r as t}from"../register-Cd4Qh2V4.js";import{m as o}from"../Transition-cMcn9E_A.js";import"../mapping-a1hAK8yD.js";import"../index-BZ1CVUwt.js";import"../recipeRuntime-Btx2HBIL.js";const r="ax-transition";var i=t(r,o,{customEvents:[]});export{r as Transition,i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as r,f as i,u as f}from"./register-
|
|
1
|
+
import{o as r,f as i,u as f}from"./register-Cd4Qh2V4.js";const a=(n,c,s=e=>e)=>{const e={};for(const[t,o]of Object.entries(n))e[s?s(t):t]=c(o,t);return e};({...a(r.screens,n=>({"@media":`screen and (min-width: ${n})`}))});const d=n=>i(n)?n:f("span",{children:n});export{d as l};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import{w as j,h as P,A as M,y as C,q as k,u as Se,c as Re,_ as A,s as Ne,I as Ce,b as Q,T as Ae}from"./register-Cd4Qh2V4.js";import{u as Te}from"./index-BZ1CVUwt.js";import{P as Me}from"./index-DXllU1i0.js";import{u as ee}from"./index-DXWuBxF-.js";var Y="focusScope.autoFocusOnMount",X="focusScope.autoFocusOnUnmount",te={bubbles:!1,cancelable:!0},ke="FocusScope",ne=j((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...d}=e,[o,E]=P(null),b=ee(a),y=ee(i),l=M(null),v=Te(t,c=>E(c)),h=M({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C(()=>{if(n){let c=function(p){if(h.paused||!o)return;const m=p.target;((g,R)=>g.getRootNode()instanceof ShadowRoot?g.getRootNode().host.contains(R):g.contains(R))(o,m)?l.current=p.target.shadowRoot?p.composedPath()[0]:p.target:T(l.current,{select:!0})},s=function(p){if(h.paused||!o)return;const m=p.relatedTarget;m!==null&&(((g,R)=>g.getRootNode()instanceof ShadowRoot?g.getRootNode().host.contains(R):g.contains(R))(o,m)||T(l.current,{select:!0}))},u=function(p){if((()=>{let g=document.activeElement;for(;g?.shadowRoot;)g=g.shadowRoot.activeElement;return g})()===document.body)for(const g of p)g.removedNodes.length>0&&T(o)};const f=o?.getRootNode()??document;f.addEventListener("focusin",c),f.addEventListener("focusout",s);const w=new MutationObserver(u);return o&&w.observe(o,{childList:!0,subtree:!0}),()=>{f.removeEventListener("focusin",c),f.removeEventListener("focusout",s),w.disconnect()}}},[n,o,h.paused]),C(()=>{if(o){ae.add(h);const c=(()=>{let u=document.activeElement;for(;u?.shadowRoot;)u=u.shadowRoot.activeElement;return u})();if(!((u,f)=>u.getRootNode()instanceof ShadowRoot?u.getRootNode().host.contains(f):u.contains(f))(o,c)){const u=new CustomEvent(Y,te);o.addEventListener(Y,b),o.dispatchEvent(u),u.defaultPrevented||(Fe(xe(re(o)),{select:!0}),(()=>{let f=document.activeElement;for(;f?.shadowRoot;)f=f.shadowRoot.activeElement;return f})()===c&&T(o))}return()=>{o.removeEventListener(Y,b),setTimeout(()=>{const u=new CustomEvent(X,te);o.addEventListener(X,y),o.dispatchEvent(u),u.defaultPrevented||T(c??document.body,{select:!0}),o.removeEventListener(X,y),ae.remove(h)},0)}}},[o,b,y,h]);const S=k(c=>{if(!r&&!n||h.paused)return;const s=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,u=(()=>{let f=document.activeElement;for(;f?.shadowRoot;)f=f.shadowRoot.activeElement;return f})();if(s&&u){const f=c.currentTarget,[w,p]=Oe(f);w&&p?!c.shiftKey&&u===p?(c.preventDefault(),r&&T(w,{select:!0})):c.shiftKey&&u===w&&(c.preventDefault(),r&&T(p,{select:!0})):u===f&&c.preventDefault()}},[r,n,h.paused]);return Se(Me.div,{tabIndex:-1,...d,ref:v,onKeyDown:S})});ne.displayName=ke;function Fe(e,{select:t=!1}={}){const r=(()=>{let n=document.activeElement;for(;n?.shadowRoot;)n=n.shadowRoot.activeElement;return n})();for(const n of e)if(T(n,{select:t}),(()=>{let a=document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;return a})()!==r)return}function Oe(e){const t=re(e),r=oe(t,e),n=oe(t.reverse(),e);return[r,n]}function re(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function oe(e,t){for(const r of e)if(!_e(r,{upTo:t}))return r}function _e(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Le(e){return e instanceof HTMLInputElement&&"select"in e}function T(e,{select:t=!1}={}){if(e&&e.focus){const r=(()=>{let n=document.activeElement;for(;n?.shadowRoot;)n=n.shadowRoot.activeElement;return n})();e.focus({preventScroll:!0}),e!==r&&Le(e)&&t&&e.select()}}var ae=Pe();function Pe(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=ce(e,t),e.unshift(t)},remove(t){e=ce(e,t),e[0]?.resume()}}}function ce(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function xe(e){return e.filter(t=>t.tagName!=="A")}var H=0;function Ie(){C(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ie()),document.body.insertAdjacentElement("beforeend",e[1]??ie()),H++,()=>{H===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),H--}},[])}function ie(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var N=function(){return N=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},N.apply(this,arguments)};function ue(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function We(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var I="right-scroll-bar-position",W="width-before-scroll-bar",$e="with-scroll-bars-hidden",Be="--removed-body-scroll-bar-size";function q(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ue(e,t){var r=P(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var De=typeof window<"u"?Re:C,se=new WeakMap;function Ke(e,t){var r=Ue(null,function(n){return e.forEach(function(a){return q(a,n)})});return De(function(){var n=se.get(r);if(n){var a=new Set(n),i=new Set(e),d=r.current;a.forEach(function(o){i.has(o)||q(o,null)}),i.forEach(function(o){a.has(o)||q(o,d)})}se.set(r,e)},[e]),r}function je(e){return e}function Ye(e,t){t===void 0&&(t=je);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var d=t(i,n);return r.push(d),function(){r=r.filter(function(o){return o!==d})}},assignSyncMedium:function(i){for(n=!0;r.length;){var d=r;r=[],d.forEach(i)}r={push:function(o){return i(o)},filter:function(){return r}}},assignMedium:function(i){n=!0;var d=[];if(r.length){var o=r;r=[],o.forEach(i),d=r}var E=function(){var y=d;d=[],y.forEach(i)},b=function(){return Promise.resolve().then(E)};b(),r={push:function(y){d.push(y),b()},filter:function(y){return d=d.filter(y),r}}}};return a}function Xe(e){e===void 0&&(e={});var t=Ye(null);return t.options=N({async:!0,ssr:!1},e),t}var le=function(e){var t=e.sideCar,r=ue(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return A(n,N({},r))};le.isSideCarExport=!0;function He(e,t){return e.useMedium(t),le}var de=Xe(),z=function(){},$=j(function(e,t){var r=M(null),n=P({onScrollCapture:z,onWheelCapture:z,onTouchMoveCapture:z}),a=n[0],i=n[1],d=e.forwardProps,o=e.children,E=e.className,b=e.removeScrollBar,y=e.enabled,l=e.shards,v=e.sideCar,h=e.noIsolation,S=e.inert,c=e.allowPinchZoom,s=e.as,u=s===void 0?"div":s,f=e.gapMode,w=ue(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),p=v,m=Ke([r,t]),g=N(N({},w),a);return A(Q,null,y&&A(p,{sideCar:de,removeScrollBar:b,shards:l,noIsolation:h,inert:S,setCallbacks:i,allowPinchZoom:!!c,lockRef:r,gapMode:f}),d?Ne(Ce.only(o),N(N({},g),{ref:m})):A(u,N({},g,{className:E,ref:m}),o))});$.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},$.classNames={fullWidth:W,zeroRight:I};var qe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ze(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qe();return t&&e.setAttribute("nonce",t),e}function Ge(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ve(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ze=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ze())&&(Ge(t,r),Ve(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Je=function(){var e=Ze();return function(t,r){C(function(){return e.add(t),function(){e.remove()}},[t&&r])}},fe=function(){var e=Je(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},Qe={left:0,top:0,right:0,gap:0},G=function(e){return parseInt(e||"",10)||0},et=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[G(r),G(n),G(a)]},tt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qe;var t=et(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},nt=fe(),F="data-scroll-locked",rt=function(e,t,r,n){var a=e.left,i=e.top,d=e.right,o=e.gap;return r===void 0&&(r="margin"),`
|
|
2
|
+
.`.concat($e,` {
|
|
3
|
+
overflow: hidden `).concat(n,`;
|
|
4
|
+
padding-right: `).concat(o,"px ").concat(n,`;
|
|
5
|
+
}
|
|
6
|
+
body[`).concat(F,`] {
|
|
7
|
+
overflow: hidden `).concat(n,`;
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
10
|
+
padding-left: `.concat(a,`px;
|
|
11
|
+
padding-top: `).concat(i,`px;
|
|
12
|
+
padding-right: `).concat(d,`px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: `).concat(o,"px ").concat(n,`;
|
|
16
|
+
`),r==="padding"&&"padding-right: ".concat(o,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.`).concat(I,` {
|
|
20
|
+
right: `).concat(o,"px ").concat(n,`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.`).concat(W,` {
|
|
24
|
+
margin-right: `).concat(o,"px ").concat(n,`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(I," .").concat(I,` {
|
|
28
|
+
right: 0 `).concat(n,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(W," .").concat(W,` {
|
|
32
|
+
margin-right: 0 `).concat(n,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[`).concat(F,`] {
|
|
36
|
+
`).concat(Be,": ").concat(o,`px;
|
|
37
|
+
}
|
|
38
|
+
`)},ve=function(){var e=parseInt(document.body.getAttribute(F)||"0",10);return isFinite(e)?e:0},ot=function(){C(function(){return document.body.setAttribute(F,(ve()+1).toString()),function(){var e=ve()-1;e<=0?document.body.removeAttribute(F):document.body.setAttribute(F,e.toString())}},[])},at=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;ot();var i=Ae(function(){return tt(a)},[a]);return A(nt,{styles:rt(i,!t,a,r?"":"!important")})},V=!1;if(typeof window<"u")try{var B=Object.defineProperty({},"passive",{get:function(){return V=!0,!0}});window.addEventListener("test",B,B),window.removeEventListener("test",B,B)}catch{V=!1}var O=V?{passive:!1}:!1,ct=function(e){return e.tagName==="TEXTAREA"},he=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!ct(e)&&r[t]==="visible")},it=function(e){return he(e,"overflowY")},ut=function(e){return he(e,"overflowX")},pe=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=me(e,n);if(a){var i=ge(e,n),d=i[1],o=i[2];if(d>o)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},st=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},lt=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},me=function(e,t){return e==="v"?it(t):ut(t)},ge=function(e,t){return e==="v"?st(t):lt(t)},dt=function(e,t){return e==="h"&&t==="rtl"?-1:1},ft=function(e,t,r,n,a){var i=dt(e,window.getComputedStyle(t).direction),d=i*n,o=r.target,E=t.contains(o),b=!1,y=d>0,l=0,v=0;do{var h=ge(e,o),S=h[0],c=h[1],s=h[2],u=c-s-i*S;(S||u)&&me(e,o)&&(l+=u,v+=S),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!E&&o!==document.body||E&&(t.contains(o)||t===o));return(y&&(Math.abs(l)<1||!a)||!y&&(Math.abs(v)<1||!a))&&(b=!0),b},U=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ye=function(e){return[e.deltaX,e.deltaY]},we=function(e){return e&&"current"in e?e.current:e},vt=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ht=function(e){return`
|
|
39
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
+
`)},pt=0,_=[];function mt(e){var t=M([]),r=M([0,0]),n=M(),a=P(pt++)[0],i=P(fe)[0],d=M(e);C(function(){d.current=e},[e]),C(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var c=We([e.lockRef.current],(e.shards||[]).map(we),!0).filter(Boolean);return c.forEach(function(s){return s.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),c.forEach(function(s){return s.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var o=k(function(c,s){if("touches"in c&&c.touches.length===2||c.type==="wheel"&&c.ctrlKey)return!d.current.allowPinchZoom;var u=U(c),f=r.current,w="deltaX"in c?c.deltaX:f[0]-u[0],p="deltaY"in c?c.deltaY:f[1]-u[1],m,g=c.target,R=Math.abs(w)>Math.abs(p)?"h":"v";if("touches"in c&&R==="h"&&g.type==="range")return!1;var x=pe(R,g);if(!x)return!0;if(x?m=R:(m=R==="v"?"h":"v",x=pe(R,g)),!x)return!1;if(!n.current&&"changedTouches"in c&&(w||p)&&(n.current=m),!m)return!0;var J=n.current||m;return ft(J,s,c,J==="h"?w:p,!0)},[]),E=k(function(c){var s=c;if(!(!_.length||_[_.length-1]!==i)){var u="deltaY"in s?ye(s):U(s),f=t.current.filter(function(m){return m.name===s.type&&(m.target===s.target||s.target===m.shadowParent)&&vt(m.delta,u)})[0];if(f&&f.should){s.cancelable&&s.preventDefault();return}if(!f){var w=(d.current.shards||[]).map(we).filter(Boolean).filter(function(m){return m.contains(s.target)}),p=w.length>0?o(s,w[0]):!d.current.noIsolation;p&&s.cancelable&&s.preventDefault()}}},[]),b=k(function(c,s,u,f){var w={name:c,delta:s,target:u,should:f,shadowParent:gt(u)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(p){return p!==w})},1)},[]),y=k(function(c){r.current=U(c),n.current=void 0},[]),l=k(function(c){b(c.type,ye(c),c.target,o(c,e.lockRef.current))},[]),v=k(function(c){b(c.type,U(c),c.target,o(c,e.lockRef.current))},[]);C(function(){return _.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:v}),document.addEventListener("wheel",E,O),document.addEventListener("touchmove",E,O),document.addEventListener("touchstart",y,O),function(){_=_.filter(function(c){return c!==i}),document.removeEventListener("wheel",E,O),document.removeEventListener("touchmove",E,O),document.removeEventListener("touchstart",y,O)}},[]);var h=e.removeScrollBar,S=e.inert;return A(Q,null,S?A(i,{styles:ht(a)}):null,h?A(at,{gapMode:e.gapMode}):null)}function gt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var yt=He(de,mt),be=j(function(e,t){return A($,N({},e,{ref:t,sideCar:yt}))});be.classNames=$.classNames;var wt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},L=new WeakMap,D=new WeakMap,K={},Z=0,Ee=function(e){return e&&(e.host||Ee(e.parentNode))},bt=function(e,t){return t.map(function(r){if(((a,i)=>{for(;i.getRootNode()instanceof ShadowRoot;)i=i.getRootNode().host;return a.contains(i)})(e,r))return r;var n=Ee(r);return n&&((a,i)=>{for(;i.getRootNode()instanceof ShadowRoot;)i=i.getRootNode().host;return a.contains(i)})(e,n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return Boolean(r)})},Et=function(e,t,r,n){var a=bt(t,Array.isArray(e)?e:[e]);K[r]||(K[r]=new WeakMap);var i=K[r],d=[],o=new Set,E=new Set(a),b=function(l){if(!(!l||o.has(l))){if(o.add(l),l.parentNode instanceof ShadowRoot)for(const v of l.parentNode.querySelectorAll("slot"))for(const h of v.assignedElements())o.add(h);b(l.parentNode instanceof ShadowRoot?l.parentNode.host:l.parentNode)}};a.forEach(b);var y=function(l){!l||E.has(l)||Array.prototype.forEach.call(l.children,function(v){if(o.has(v))y(v);else try{var h=v.getAttribute(n),S=h!==null&&h!=="false",c=(L.get(v)||0)+1,s=(i.get(v)||0)+1;L.set(v,c),i.set(v,s),d.push(v),c===1&&S&&D.set(v,!0),s===1&&v.setAttribute(r,"true"),S||v.setAttribute(n,"true")}catch(u){console.error("aria-hidden: cannot operate on ",v,u)}})};return y(t),o.clear(),Z++,function(){d.forEach(function(l){var v=L.get(l)-1,h=i.get(l)-1;L.set(l,v),i.set(l,h),v||(D.has(l)||l.removeAttribute(n),D.delete(l)),h||l.removeAttribute(r)}),Z--,Z||(L=new WeakMap,L=new WeakMap,D=new WeakMap,K={})}},St=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||wt(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),Et(n,a,r,"aria-hidden")):function(){return null}};export{ne as F,St as h,be as o,Ie as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as u,u as i,A as g,y as _,b as A,q as K,I as U}from"./register-
|
|
1
|
+
import{w as u,u as i,A as g,y as _,b as A,q as K,I as U}from"./register-Cd4Qh2V4.js";import{c as f}from"./index-CBrz5xtv.js";import{u as h,a as Y}from"./index-BZ1CVUwt.js";import{a as Z,c as j}from"./index-DKzKWsoP.js";import{u as P}from"./index-BJRMGfOc.js";import{u as z}from"./index-Bx1LqORX.js";import{D as J,P as Q}from"./index-BbGZ2es-.js";import{o as X,h as ee,u as te,F as oe}from"./index-8RWC_rPX.js";import{P as y}from"./index-LFdW1wkC.js";import{P as D}from"./index-DXllU1i0.js";var N="Dialog",[R,ne]=Z(N),[re,l]=R(N),T=e=>{const{__scopeDialog:o,children:r,open:a,defaultOpen:n,onOpenChange:t,modal:c=!0}=e,s=g(null),p=g(null),[v=!1,C]=z({prop:a,defaultProp:n,onChange:t});return i(re,{scope:o,triggerRef:s,contentRef:p,contentId:P(),titleId:P(),descriptionId:P(),open:v,onOpenChange:C,onOpenToggle:K(()=>C(V=>!V),[C]),modal:c,children:r})};T.displayName=N;var x="DialogTrigger",b=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(x,r),t=h(o,n.triggerRef);return i(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":O(n.open),...a,ref:t,onClick:f(e.onClick,n.onOpenToggle)})});b.displayName=x;var E="DialogPortal",[ae,M]=R(E,{forceMount:void 0}),F=e=>{const{__scopeDialog:o,forceMount:r,children:a,container:n}=e,t=l(E,o);return i(ae,{scope:o,forceMount:r,children:U.map(a,c=>i(y,{present:r||t.open,children:i(Q,{asChild:!0,container:n,children:c})}))})};F.displayName=E;var m="DialogOverlay",S=u((e,o)=>{const r=M(m,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,t=l(m,e.__scopeDialog);return t.modal?i(y,{present:a||t.open,children:i(ie,{...n,ref:o})}):null});S.displayName=m;var ie=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(m,r);return i(X,{as:Y,allowPinchZoom:!0,shards:[n.contentRef],children:i(D.div,{"data-state":O(n.open),...a,ref:o,style:{pointerEvents:"auto",...a.style}})})}),d="DialogContent",W=u((e,o)=>{const r=M(d,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,t=l(d,e.__scopeDialog);return i(y,{present:a||t.open,children:t.modal?i(se,{...n,ref:o}):i(ce,{...n,ref:o})})});W.displayName=d;var se=u((e,o)=>{const r=l(d,e.__scopeDialog),a=g(null),n=h(o,r.contentRef,a);return _(()=>{const t=a.current;if(t)return ee(t)},[]),i(w,{...e,ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:f(e.onCloseAutoFocus,t=>{t.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:f(e.onPointerDownOutside,t=>{const c=t.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&t.preventDefault()}),onFocusOutside:f(e.onFocusOutside,t=>t.preventDefault())})}),ce=u((e,o)=>{const r=l(d,e.__scopeDialog),a=g(!1),n=g(!1);return i(w,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||r.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,t.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const c=t.target;r.triggerRef.current?.contains(c)&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&n.current&&t.preventDefault()}})}),w=u((e,o)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:t,...c}=e,s=l(d,r),p=g(null),v=h(o,p);return te(),i(A,{children:[i(oe,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:t,children:i(J,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":O(s.open),...c,ref:v,onDismiss:()=>s.onOpenChange(!1)})}),i(A,{children:[i(ue,{titleId:s.titleId}),i(ge,{contentRef:p,descriptionId:s.descriptionId})]})]})}),I="DialogTitle",G=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(I,r);return i(D.h2,{id:n.titleId,...a,ref:o})});G.displayName=I;var L="DialogDescription",k=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(L,r);return i(D.p,{id:n.descriptionId,...a,ref:o})});k.displayName=L;var $="DialogClose",B=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l($,r);return i(D.button,{type:"button",...a,ref:o,onClick:f(e.onClick,()=>n.onOpenChange(!1))})});B.displayName=$;function O(e){return e?"open":"closed"}var q="DialogTitleWarning",[le,H]=j(q,{contentName:d,titleName:I,docsSlug:"dialog"}),ue=({titleId:e})=>{const o=H(q),r=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as a,d as s}from"./register-Cd4Qh2V4.js";import{u as f}from"./index-CHylLgfg.js";var e=s["useId".toString()]||(()=>{}),n=0;function c(o){const[t,r]=a(e());return f(()=>{o||r(u=>u??String(n++))},[o]),o||(t?`radix-${t}`:"")}export{c as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as v,T as d,u as h,x as l}from"./register-
|
|
1
|
+
import{G as v,T as d,u as h,x as l}from"./register-Cd4Qh2V4.js";function P(e,u=[]){let n=[];function a(s,t){const o=v(t),c=n.length;n=[...n,t];function x(p){const{scope:f,children:S,...i}=p,C=f?.[e][c]||o,_=d(()=>i,Object.values(i));return h(C.Provider,{value:_,children:S})}function m(p,f){const S=f?.[e][c]||o,i=l(S);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${p}\` must be used within \`${s}\``)}return x.displayName=s+"Provider",[x,m]}const r=()=>{const s=n.map(t=>v(t));return function(o){const c=o?.[e]||s;return d(()=>({[`__scope${e}`]:{...o,[e]:c}}),[o,c])}};return r.scopeName=e,[a,$(r,...u)]}function $(...e){const u=e[0];if(e.length===1)return u;const n=()=>{const a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const t=a.reduce((o,{useScope:c,scopeName:x})=>{const p=c(s)[`__scope${x}`];return{...o,...p}},{});return d(()=>({[`__scope${u.scopeName}`]:t}),[t])}};return n.scopeName=u.scopeName,n}export{P as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{G as Q,x as W,w as _,u as d,A as G,h as N,y as O,q as F}from"./register-Cd4Qh2V4.js";import{c as p}from"./index-CBrz5xtv.js";import{c as X}from"./index-D3neleln.js";import{u as Z}from"./index-BZ1CVUwt.js";import{c as $}from"./index-BKRpvxIZ.js";import{u as ee}from"./index-BJRMGfOc.js";import{P as K}from"./index-DXllU1i0.js";import{u as oe}from"./index-DXWuBxF-.js";import{u as te}from"./index-Bx1LqORX.js";var re=Q(void 0);function M(e){const t=W(re);return e||t||"ltr"}var y="rovingFocusGroup.onEntryFocus",ne={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[D,L,se]=X(g),[ce,ae]=$(g,[se]),[ie,ue]=ce(g),U=_((e,t)=>d(D.Provider,{scope:e.__scopeRovingFocusGroup,children:d(D.Slot,{scope:e.__scopeRovingFocusGroup,children:d(le,{...e,ref:t})})}));U.displayName=g;var le=_((e,t)=>{const{__scopeRovingFocusGroup:s,orientation:o,loop:u=!1,dir:b,currentTabStopId:R,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:m,onEntryFocus:c,preventScrollOnEntryFocus:E=!1,...T}=e,v=G(null),I=Z(t,v),r=M(b),[l=null,h]=te({prop:R,defaultProp:w,onChange:m}),[a,i]=N(!1),C=oe(c),H=L(s),S=G(!1),[V,P]=N(0);return O(()=>{const n=v.current;if(n)return n.addEventListener(y,C),()=>n.removeEventListener(y,C)},[C]),d(ie,{scope:s,orientation:o,dir:r,loop:u,currentTabStopId:l,onItemFocus:F(n=>h(n),[h]),onItemShiftTab:F(()=>i(!0),[]),onFocusableItemAdd:F(()=>P(n=>n+1),[]),onFocusableItemRemove:F(()=>P(n=>n-1),[]),children:d(K.div,{tabIndex:a||V===0?-1:0,"data-orientation":o,...T,ref:I,style:{outline:"none",...e.style},onMouseDown:p(e.onMouseDown,()=>{S.current=!0}),onFocus:p(e.onFocus,n=>{const q=!S.current;if(n.target===n.currentTarget&&q&&!a){const x=new CustomEvent(y,ne);if(n.currentTarget.dispatchEvent(x),!x.defaultPrevented){const A=H().filter(f=>f.focusable),z=A.find(f=>f.active),j=A.find(f=>f.id===l),J=[z,j,...A].filter(Boolean).map(f=>f.ref.current);Y(J,E)}}S.current=!1}),onBlur:p(e.onBlur,()=>i(!1))})})}),B="RovingFocusGroupItem",k=_((e,t)=>{const{__scopeRovingFocusGroup:s,focusable:o=!0,active:u=!1,tabStopId:b,...R}=e,w=ee(),m=b||w,c=ue(B,s),E=c.currentTabStopId===m,T=L(s),{onFocusableItemAdd:v,onFocusableItemRemove:I}=c;return O(()=>{if(o)return v(),()=>I()},[o,v,I]),d(D.ItemSlot,{scope:s,id:m,focusable:o,active:u,children:d(K.span,{tabIndex:E?0:-1,"data-orientation":c.orientation,...R,ref:t,onMouseDown:p(e.onMouseDown,r=>{o?c.onItemFocus(m):r.preventDefault()}),onFocus:p(e.onFocus,()=>c.onItemFocus(m)),onKeyDown:p(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){c.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=me(r,c.orientation,c.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let a=T().filter(i=>i.focusable).map(i=>i.ref.current);if(l==="last")a.reverse();else if(l==="prev"||l==="next"){l==="prev"&&a.reverse();const i=a.indexOf(r.currentTarget);a=c.loop?pe(a,i+1):a.slice(i+1)}setTimeout(()=>Y(a))}})})})});k.displayName=B;var fe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function de(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function me(e,t,s){const o=de(e.key,s);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return fe[o]}function Y(e,t=!1){const s=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();for(const o of e)if(o===s||(o.focus({preventScroll:t}),(()=>{let u=document.activeElement;for(;u?.shadowRoot;)u=u.shadowRoot.activeElement;return u})()!==s))return}function pe(e,t){return e.map((s,o)=>e[(t+o)%e.length])}var ve=U,Ie=k;export{Ie as I,ve as R,ae as c,M as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as S,w as d,I as l,f as a,u,s as g,b}from"./register-
|
|
1
|
+
import{q as S,w as d,I as l,f as a,u,s as g,b}from"./register-Cd4Qh2V4.js";function h(n,r){typeof n=="function"?n(r):n!=null&&(n.current=r)}function f(...n){return r=>n.forEach(e=>h(e,r))}function v(...n){return S(f(...n),n)}var m=d((n,r)=>{const{children:e,...t}=n,o=l.toArray(e),s=o.find(P);if(s){const i=s.props.children,c=o.map(y=>y===s?l.count(i)>1?l.only(null):a(i)?i.props.children:null:y);return u(p,{...t,ref:r,children:a(i)?g(i,void 0,c):null})}return u(p,{...t,ref:r,children:e})});m.displayName="Slot";var p=d((n,r)=>{const{children:e,...t}=n;if(a(e)){const o=C(e);return g(e,{...W(t,e.props),ref:r?f(r,o):o})}return l.count(e)>1?l.only(null):null});p.displayName="SlotClone";var R=({children:n})=>u(b,{children:n});function P(n){return a(n)&&n.type===R}function W(n,r){const e={...r};for(const t in r){const o=n[t],s=r[t];/^on[A-Z]/.test(t)?o&&s?e[t]=(...c)=>{s(...c),o(...c)}:o&&(e[t]=o):t==="style"?e[t]={...o,...s}:t==="className"&&(e[t]=[o,s].filter(Boolean).join(" "))}return{...n,...e}}function C(n){let r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,e=r&&"isReactWarning"in r&&r.isReactWarning;return e?n.ref:(r=Object.getOwnPropertyDescriptor(n,"ref")?.get,e=r&&"isReactWarning"in r&&r.isReactWarning,e?n.props.ref:n.props.ref||n.ref)}export{R as S,m as a,f as c,v as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as l,G as X,w as p,x as T,h as B,u as R,A as y,s as Y}from"./register-
|
|
1
|
+
import{y as l,G as X,w as p,x as T,h as B,u as R,A as y,s as Y}from"./register-Cd4Qh2V4.js";import{c as m}from"./index-CBrz5xtv.js";import{P as A,d as j}from"./index-DXllU1i0.js";import{u as F}from"./index-BZ1CVUwt.js";import{u as b}from"./index-DXWuBxF-.js";function q(t,e=globalThis?.document){const n=b(t);l(()=>{const i=s=>{s.key==="Escape"&&n(s)};return e.addEventListener("keydown",i,{capture:!0}),()=>e.removeEventListener("keydown",i,{capture:!0})},[n,e])}var J="DismissableLayer",D="dismissableLayer.update",Q="dismissableLayer.pointerDownOutside",V="dismissableLayer.focusOutside",I,N=X({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),P=p((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:v,onDismiss:d,...f}=t,o=T(N),[c,_]=B(null),u=c?.ownerDocument??globalThis?.document,[,U]=B({}),z=F(e,r=>_(r)),O=Array.from(o.layers),[H]=[...o.layersWithOutsidePointerEventsDisabled].slice(-1),K=O.indexOf(H),L=c?O.indexOf(c):-1,M=o.layersWithOutsidePointerEventsDisabled.size>0,C=L>=K,G=$(r=>{const E=r.target,g=[...o.branches].some(h=>h.contains(E));!C||g||(s?.(r),v?.(r),r.defaultPrevented||d?.())},u),w=ee(r=>{const E=r.target;[...o.branches].some(h=>h.contains(E))||(a?.(r),v?.(r),r.defaultPrevented||d?.())},u);return q(r=>{L===o.layers.size-1&&(i?.(r),!r.defaultPrevented&&d&&(r.preventDefault(),d()))},u),l(()=>{if(c)return n&&(o.layersWithOutsidePointerEventsDisabled.size===0&&(I=u.body.style.pointerEvents,u.body.style.pointerEvents="none"),o.layersWithOutsidePointerEventsDisabled.add(c)),o.layers.add(c),k(),()=>{n&&o.layersWithOutsidePointerEventsDisabled.size===1&&(u.body.style.pointerEvents=I)}},[c,u,n,o]),l(()=>()=>{c&&(o.layers.delete(c),o.layersWithOutsidePointerEventsDisabled.delete(c),k())},[c,o]),l(()=>{const r=()=>U({});return document.addEventListener(D,r),()=>document.removeEventListener(D,r)},[]),R(A.div,{...f,ref:z,style:{pointerEvents:M?C?"auto":"none":void 0,...t.style},onFocusCapture:m(t.onFocusCapture,w.onFocusCapture),onBlurCapture:m(t.onBlurCapture,w.onBlurCapture),onPointerDownCapture:m(t.onPointerDownCapture,G.onPointerDownCapture)})});P.displayName=J;var Z="DismissableLayerBranch",W=p((t,e)=>{const n=T(N),i=y(null),s=F(e,i);return l(()=>{const a=i.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),R(A.div,{...t,ref:s})});W.displayName=Z;function $(t,e=globalThis?.document){const n=b(t),i=y(!1),s=y(()=>{});return l(()=>{const a=d=>{if(d.target&&!i.current){let f=function(){x(Q,n,o,{discrete:!0})};const o={originalEvent:d};d.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=f,e.addEventListener("click",s.current,{once:!0})):f()}else e.removeEventListener("click",s.current);i.current=!1},v=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(v),e.removeEventListener("pointerdown",a),e.removeEventListener("click",s.current)}},[e,n]),{onPointerDownCapture:()=>i.current=!0}}function ee(t,e=globalThis?.document){const n=b(t),i=y(!1);return l(()=>{const s=a=>{a.target&&!i.current&&x(V,n,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function k(){const t=new CustomEvent(D);document.dispatchEvent(t)}function x(t,e,n,{discrete:i}){const s=n.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),i?j(s,a):s.dispatchEvent(a)}var te=P,ne=W;const se="Portal",S=p((t,e)=>Y(t.children,{ref:e}));S.displayName=se;export{ne as B,P as D,S as P,te as R};
|