@decocms/mesh 2.15.1 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DlBo4Xw9.js → AlertCircle-DOBZDZTf.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CCqPW2JN.js → ArrowLeft-CiX5attk.js} +1 -1
- package/dist/client/assets/{ArrowUp-KvHCnFh3.js → ArrowUp-Cb5IgbXf.js} +1 -1
- package/dist/client/assets/{Check-D4dBNJmC.js → Check-D_y2LGJG.js} +1 -1
- package/dist/client/assets/{ChevronDown-CJaS1NVA.js → ChevronDown-CK8tBMwt.js} +1 -1
- package/dist/client/assets/{Code01-CMazpegY.js → Code01-CHaKquD7.js} +1 -1
- package/dist/client/assets/{Copy01-Rf_P7R5F.js → Copy01-DEYUyyKa.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-Nj82ZW12.js → DotsHorizontal-CJj2K5Fj.js} +1 -1
- package/dist/client/assets/{DotsVertical-f9rnazjX.js → DotsVertical-DBgin8Gd.js} +1 -1
- package/dist/client/assets/{Download01-Cnas0PSW.js → Download01-D480FrAl.js} +1 -1
- package/dist/client/assets/{Edit01-MWKLkbpZ.js → Edit01-C2wyoLl_.js} +1 -1
- package/dist/client/assets/{File06-Dir7h2_j.js → File06-Dss_qxDP.js} +1 -1
- package/dist/client/assets/{FilterLines-BgxUhbig.js → FilterLines-BIIc2m5u.js} +1 -1
- package/dist/client/assets/{FlipBackward-B1KVh_65.js → FlipBackward-C6tD49bS.js} +1 -1
- package/dist/client/assets/{GitBranch01-CA4KhZZx.js → GitBranch01-CCs9Y7UL.js} +1 -1
- package/dist/client/assets/{Grid01-BgBQwtBY.js → Grid01-CPcgzk-j.js} +1 -1
- package/dist/client/assets/{Home02-CR-W2ctm.js → Home02-B2DfszMd.js} +1 -1
- package/dist/client/assets/{Image01-B8cj-qoF.js → Image01-CWiMChMV.js} +1 -1
- package/dist/client/assets/{Inbox01-Bh5pMKE1.js → Inbox01-E54Xv1AH.js} +1 -1
- package/dist/client/assets/{InfoCircle-CVdyaBb8.js → InfoCircle-C1Hk7qxK.js} +1 -1
- package/dist/client/assets/{Key01-BcxLAym0.js → Key01-D3jgPHnl.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D41WE0Cl.js → LinkExternal01-DXt_okRr.js} +1 -1
- package/dist/client/assets/{List-hTdqyLGB.js → List-vJTsFkGC.js} +1 -1
- package/dist/client/assets/{Loading01-Bq_7Os6T.js → Loading01-CXxLrMyp.js} +1 -1
- package/dist/client/assets/{Lock01-DOJDUqUZ.js → Lock01-C0IcfwAr.js} +1 -1
- package/dist/client/assets/MessageChatSquare-BAK3msQ9.js +1 -0
- package/dist/client/assets/{Play-CoxjBx7-.js → Play-D5UR01Yp.js} +1 -1
- package/dist/client/assets/{Plus-C4F6mby2.js → Plus-BwqRnIpw.js} +1 -1
- package/dist/client/assets/{SearchMd-B_A85eif.js → SearchMd-B72GLhSo.js} +1 -1
- package/dist/client/assets/{Terminal-BWurH474.js → Terminal-C6oII67o.js} +1 -1
- package/dist/client/assets/{Trash01-GrzirNvV.js → Trash01-pQsQJfD7.js} +1 -1
- package/dist/client/assets/{Upload01-Ba_zCXbQ.js → Upload01-CPXoheIk.js} +1 -1
- package/dist/client/assets/{X-D09jV0HO.js → X-Ta7e64fd.js} +1 -1
- package/dist/client/assets/{XClose-D9UXYoHK.js → XClose-COWRVEvP.js} +1 -1
- package/dist/client/assets/{alert-dialog-Df8ZsItX.js → alert-dialog-CwDNNTWs.js} +1 -1
- package/dist/client/assets/{auth-catchall-Bu_AmzqF.js → auth-catchall-DOIkjlbS.js} +1 -1
- package/dist/client/assets/{avatar-CrVRRbJ7.js → avatar-Bbu1o6br.js} +1 -1
- package/dist/client/assets/{badge-BPKvq16e.js → badge-BF26aj7r.js} +1 -1
- package/dist/client/assets/{binder-BtPpbY4I.js → binder-CZMsXyzM.js} +1 -1
- package/dist/client/assets/button-CKEM3eQL.js +1 -0
- package/dist/client/assets/{card-Rz2C5-Lx.js → card-2L27xRvH.js} +1 -1
- package/dist/client/assets/{checkbox-DGIT6WZ3.js → checkbox-D-u8zfFA.js} +1 -1
- package/dist/client/assets/{collection-detail-CIorpvYQ.js → collection-detail-DRvlQkfI.js} +2 -2
- package/dist/client/assets/{collection-display-button-C_GfVLwh.js → collection-display-button-BRmjKmXA.js} +1 -1
- package/dist/client/assets/{collection-header-Dl8Ii13M.js → collection-header-DxthRGYV.js} +1 -1
- package/dist/client/assets/{collection-page-C75JriCh.js → collection-page-D_yHhDuI.js} +1 -1
- package/dist/client/assets/{collection-search-D67e9ppe.js → collection-search-B1XW3AZu.js} +1 -1
- package/dist/client/assets/{collection-tab-DVmiR956.js → collection-tab-tjhO7Mrn.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DDHrDWif.js → collection-table-wrapper-D0Ju0-U8.js} +1 -1
- package/dist/client/assets/{connection-card-BuCHeT4K.js → connection-card-DtL0ugHI.js} +1 -1
- package/dist/client/assets/connection-detail-CfQ3feir.js +1 -0
- package/dist/client/assets/{connection-CmMMEDBY.js → connection-iGG9vveH.js} +1 -1
- package/dist/client/assets/connections-D3zmX0Z9.js +1 -0
- package/dist/client/assets/constants-rLrKmanL.js +1 -0
- package/dist/client/assets/{create-organization-dialog-DQ5uy2r0.js → create-organization-dialog-eRNW8Qxh.js} +1 -1
- package/dist/client/assets/{dialog-bW33A1d_.js → dialog-CDtau8Kt.js} +1 -1
- package/dist/client/assets/{dropdown-menu-dsr_wyw0.js → dropdown-menu-wWS-zaMN.js} +1 -1
- package/dist/client/assets/dynamic-plugin-layout-DputRlYb.js +1 -0
- package/dist/client/assets/{empty-state-By_kA__m.js → empty-state-BHbK0lgC.js} +1 -1
- package/dist/client/assets/{empty-state-B1DU5702.js → empty-state-CVNEuxZY.js} +1 -1
- package/dist/client/assets/{env-vars-editor-BjH5KdVc.js → env-vars-editor-C51mNjyA.js} +1 -1
- package/dist/client/assets/{error-boundary-BOBkDZ1Y.js → error-boundary-Bcxx4rfP.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CNcw3HV2.js → extract-connection-data-Dpmksiuo.js} +1 -1
- package/dist/client/assets/{file-browser-BDyBPrc6.js → file-browser-BGJT68ml.js} +2 -2
- package/dist/client/assets/{form-ChO7tWCF.js → form-V7XQlTI9.js} +1 -1
- package/dist/client/assets/gateway-detail-Dwo3tRMv.js +1 -0
- package/dist/client/assets/{gateways-ckyn_Uas.js → gateways-zERSWoJy.js} +1 -1
- package/dist/client/assets/{grid-view-CTAOtRDs.js → grid-view-D8luahOM.js} +1 -1
- package/dist/client/assets/{home-CpIhQ8D8.js → home-BzIxKv5R.js} +1 -1
- package/dist/client/assets/index-BuhwJgoT.js +1 -0
- package/dist/client/assets/index-CCciYu2S.css +1 -0
- package/dist/client/assets/{index-ChF3uWl9.js → index-COEG5bG9.js} +1 -1
- package/dist/client/assets/{index-CH2G6_zW.js → index-D93bwXlh.js} +1 -1
- package/dist/client/assets/index-Dm3KUy-5.js +107 -0
- package/dist/client/assets/{index-ZiFjEqyT.js → index-H8waGLZX.js} +3 -3
- package/dist/client/assets/{infiniteQueryObserver-DEh2zauU.js → infiniteQueryObserver-CorNdPTl.js} +1 -1
- package/dist/client/assets/{input-DEsmZ6es.js → input-B_S0H_Hl.js} +1 -1
- package/dist/client/assets/layout-CSDcjZIC.js +1 -0
- package/dist/client/assets/{lazy-highlighter-B2TKQCpQ.js → lazy-highlighter-C9yEt-oj.js} +1 -1
- package/dist/client/assets/{localstorage-keys-DhdYpXZj.js → localstorage-keys-bcceq1xC.js} +1 -1
- package/dist/client/assets/{login-DtC787Hg.js → login-BYnVwbER.js} +1 -1
- package/dist/client/assets/{mcp-oauth-D8a9d38x.js → mcp-oauth-BQzIgGw8.js} +1 -1
- package/dist/client/assets/{mcp-server-card-DSQZ-b3I.js → mcp-server-card-_ATNoXTX.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-rW4PqaOO.js → mcp-server-detail-DObA9nLB.js} +1 -1
- package/dist/client/assets/{members-C4HTAJHG.js → members-BebBEAXI.js} +2 -2
- package/dist/client/assets/{monaco-editor-BYgR7J38.js → monaco-editor-DKdQnknl.js} +4 -4
- package/dist/client/assets/{monitoring-BGY0w02b.js → monitoring-CDDlEqUx.js} +6 -6
- package/dist/client/assets/{oauth-callback-BSZdPTYI.js → oauth-callback-gzfkrrQW.js} +1 -1
- package/dist/client/assets/page-CLLgwmPE.js +35 -0
- package/dist/client/assets/page-Do6tc7Ak.js +1 -0
- package/dist/client/assets/{pin-to-sidebar-button-BahvsjHH.js → pin-to-sidebar-button-NqMT4AF7.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CIiB0IAw.js → plugin-empty-state-CsEwK0UI.js} +1 -1
- package/dist/client/assets/{plugin-header-CvDO4WmD.js → plugin-header-DMvUkTVw.js} +1 -1
- package/dist/client/assets/plugins-femIOaN7.js +1 -0
- package/dist/client/assets/{popover-DW05feED.js → popover-CUHksX3w.js} +1 -1
- package/dist/client/assets/{project-context-provider-BPo-49FO.js → project-context-provider-DTbOrAFq.js} +1 -1
- package/dist/client/assets/{registry-utils-DzI73csj.js → registry-utils-C5W-BZ_1.js} +1 -1
- package/dist/client/assets/{resizable-BAPLF4RD.js → resizable-BEUt05S8.js} +1 -1
- package/dist/client/assets/{resource-tabs-CC5dHHUl.js → resource-tabs-kfeiBQEL.js} +1 -1
- package/dist/client/assets/select-H2esePZI.js +1 -0
- package/dist/client/assets/settings-DO0PkWA0.js +1 -0
- package/dist/client/assets/shell-layout-Bx8F46Gf.js +17 -0
- package/dist/client/assets/{spinner-DqooIng7.js → spinner-BZhaf6l_.js} +1 -1
- package/dist/client/assets/{switch-dZML6kqo.js → switch-CIfCfD81.js} +1 -1
- package/dist/client/assets/{textarea-DFRypKCQ.js → textarea-CC9KHQpw.js} +1 -1
- package/dist/client/assets/{tool-set-selector-DRx4AOzy.js → tool-set-selector-Cty6fXdH.js} +1 -1
- package/dist/client/assets/{tools-list-C8nSsOKD.js → tools-list-rrG-PiCB.js} +1 -1
- package/dist/client/assets/{tooltip-BJO9sFhZ.js → tooltip-DixY1Sbc.js} +1 -1
- package/dist/client/assets/use-binding-CPqdk4GE.js +23 -0
- package/dist/client/assets/{use-collections-g067BPxP.js → use-collections-S6OVeMx0.js} +1 -1
- package/dist/client/assets/{use-connection-BskZam-G.js → use-connection-C_QQYkok.js} +1 -1
- package/dist/client/assets/use-connection-resources-h_CY6VEc.js +1 -0
- package/dist/client/assets/{use-create-gateway-CCmt4GT8.js → use-create-gateway-eDGGqEOS.js} +1 -1
- package/dist/client/assets/{use-gateway-v7etejE8.js → use-gateway-DMJjVwlU.js} +1 -1
- package/dist/client/assets/{use-gateway-system-prompt-DoCpWoeh.js → use-gateway-system-prompt-CfIIyZId.js} +1 -1
- package/dist/client/assets/{use-list-state-C5pgFF_z.js → use-list-state-Bt6QEhtR.js} +1 -1
- package/dist/client/assets/{use-mcp-ZNQ-iMEF.js → use-mcp-DuKh-Xf7.js} +1 -1
- package/dist/client/assets/{use-members-dVasH0ez.js → use-members-Hsme2FMs.js} +1 -1
- package/dist/client/assets/{use-mobile-Co7MtEW-.js → use-mobile-Bh6onNnL.js} +1 -1
- package/dist/client/assets/{use-organization-settings-K7SU43aD.js → use-organization-settings-C4u9V1Gg.js} +1 -1
- package/dist/client/assets/{use-tool-call-BbfSyOCz.js → use-tool-call-BSVniqlJ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BYo7uk8S.js +1 -0
- package/dist/client/assets/{useMutation-4fnzP4bc.js → useMutation-DXyBs08e.js} +1 -1
- package/dist/client/assets/useQuery-9rHAo5k0.js +1 -0
- package/dist/client/assets/{value-zEqR5KPg.js → value-EQeDZr5M.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-tlrhMsiy.js → view-mode-toggle-CoxeG-5F.js} +1 -1
- package/dist/client/assets/{well-known-mcp-D13f-8h2.js → well-known-mcp-DOEdYmKO.js} +1 -1
- package/dist/client/assets/{workflow-B8_jtBci.js → workflow-CdkAFtfl.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +33 -33
- package/dist/server/server.js +49 -49
- package/package.json +1 -1
- package/dist/client/assets/Clock-ljBuaWDA.js +0 -1
- package/dist/client/assets/button-Co_HOc3E.js +0 -1
- package/dist/client/assets/connection-detail-BsC5t8hY.js +0 -1
- package/dist/client/assets/connections-B3RW87mz.js +0 -1
- package/dist/client/assets/constants-B5NZDm4s.js +0 -1
- package/dist/client/assets/dynamic-plugin-layout-IH0Gl52A.js +0 -1
- package/dist/client/assets/gateway-detail-CzuSbsFr.js +0 -1
- package/dist/client/assets/index-BUdiVz6f.js +0 -1
- package/dist/client/assets/index-Bc30BcYv.js +0 -88
- package/dist/client/assets/index-JAPwCHXJ.css +0 -1
- package/dist/client/assets/layout-tF7tb_Qc.js +0 -1
- package/dist/client/assets/page-DcQoSvJk.js +0 -35
- package/dist/client/assets/page-DxMYdFSw.js +0 -1
- package/dist/client/assets/plugins-CyUBsABC.js +0 -1
- package/dist/client/assets/select-CVEPeRAQ.js +0 -1
- package/dist/client/assets/settings-BfbdOKrl.js +0 -1
- package/dist/client/assets/shell-layout-DJjajsTY.js +0 -3
- package/dist/client/assets/use-binding-C8KxuIY6.js +0 -23
- package/dist/client/assets/use-connection-resources-YXIBGXnm.js +0 -1
- package/dist/client/assets/use-model-state-B8hL-q1r.js +0 -20
- package/dist/client/assets/useInfiniteQuery-Dbq7IS1q.js +0 -1
- package/dist/client/assets/useQuery-Bn2Wcch_.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b0 as K,b1 as C,b2 as V,b3 as z,b4 as _,x as W,b5 as X,b6 as Y,r as h,b7 as J,b8 as Z,b9 as $,ba as ee,bb as k,bc as P,bd as se,be as te,
|
|
1
|
+
import{b0 as K,b1 as C,b2 as V,b3 as z,b4 as _,x as W,b5 as X,b6 as Y,r as h,b7 as J,b8 as Z,b9 as $,ba as ee,bb as k,bc as P,bd as se,be as te,ab as A,a4 as re,aa as oe,j as m,a5 as Q,ad as ne,a6 as g,a3 as O,ac as ae,a8 as w,a7 as ie,aF as ue,aE as ce}from"./index-H8waGLZX.js";function I(r,s){const t=new Set(s);return r.filter(o=>!t.has(o))}function de(r,s,t){const o=r.slice(0);return o[s]=t,o}var le=class extends K{#r;#e;#o;#n;#s;#t;#a;#i;#u=[];constructor(r,s,t){super(),this.#r=r,this.#n=t,this.#o=[],this.#s=[],this.#e=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(s=>{this.#h(r,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,s){this.#o=r,this.#n=s,C.batch(()=>{const t=this.#s,o=this.#l(this.#o);o.forEach(i=>i.observer.setOptions(i.defaultedQueryOptions));const e=o.map(i=>i.observer),n=e.map(i=>i.getCurrentResult()),a=t.length!==e.length,c=e.some((i,d)=>i!==t[d]),l=a||c,b=l?!0:n.some((i,d)=>{const v=this.#e[d];return!v||!V(i,v)});!l&&!b||(l&&(this.#u=o,this.#s=e),this.#e=n,this.hasListeners()&&(l&&(I(t,e).forEach(i=>{i.destroy()}),I(e,t).forEach(i=>{i.subscribe(d=>{this.#h(i,d)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,s){const t=this.#l(r),o=t.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions));return[o,e=>this.#d(e??o,s),()=>this.#c(o,t)]}#c(r,s){return s.map((t,o)=>{const e=r[o];return t.defaultedQueryOptions.notifyOnChangeProps?e:t.observer.trackResult(e,n=>{s.forEach(a=>{a.observer.trackProp(n)})})})}#d(r,s){return s?((!this.#t||this.#e!==this.#i||s!==this.#a)&&(this.#a=s,this.#i=this.#e,this.#t=z(this.#t,s(r))),this.#t):r}#l(r){const s=new Map;this.#s.forEach(o=>{const e=o.options.queryHash;if(!e)return;const n=s.get(e);n?n.push(o):s.set(e,[o])});const t=[];return r.forEach(o=>{const e=this.#r.defaultQueryOptions(o),a=s.get(e.queryHash)?.shift()??new _(this.#r,e);t.push({defaultedQueryOptions:e,observer:a})}),t}#h(r,s){const t=this.#s.indexOf(r);t!==-1&&(this.#e=de(this.#e,t,s),this.#p())}#p(){if(this.hasListeners()){const r=this.#t,s=this.#c(this.#e,this.#u),t=this.#d(s,this.#n?.combine);r!==t&&C.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}};function Ce({queries:r,...s},t){const o=W(t),e=X(),n=Y(),a=h.useMemo(()=>r.map(u=>{const p=o.defaultQueryOptions(u);return p._optimisticResults=e?"isRestoring":"optimistic",p}),[r,o,e]);a.forEach(u=>{J(u);const p=o.getQueryCache().get(u.queryHash);Z(u,n,p)}),$(n);const[c]=h.useState(()=>new le(o,a,s)),[l,b,i]=c.getOptimisticResult(a,s.combine),d=!e&&s.subscribed!==!1;h.useSyncExternalStore(h.useCallback(u=>d?c.subscribe(C.batchCalls(u)):ee,[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h.useEffect(()=>{c.setQueries(a,s)},[a,s,c]);const f=l.some((u,p)=>k(a[p],u))?l.flatMap((u,p)=>{const y=a[p];if(y){const x=new _(o,y);if(k(y,u))return P(y,x,n);se(u,e)&&P(y,x,n)}return[]}):[];if(f.length>0)throw Promise.all(f);const R=l.find((u,p)=>{const y=a[p];return y&&te({result:u,errorResetBoundary:n,throwOnError:y.throwOnError,query:o.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(R?.error)throw R.error;return b(i())}var S="Radio",[he,G]=Q(S),[pe,fe]=he(S),M=h.forwardRef((r,s)=>{const{__scopeRadio:t,name:o,checked:e=!1,required:n,disabled:a,value:c="on",onCheck:l,form:b,...i}=r,[d,v]=h.useState(null),f=O(s,p=>v(p)),R=h.useRef(!1),u=d?b||!!d.closest("form"):!0;return m.jsxs(pe,{scope:t,checked:e,disabled:a,children:[m.jsx(g.button,{type:"button",role:"radio","aria-checked":e,"data-state":D(e),"data-disabled":a?"":void 0,disabled:a,value:c,...i,ref:f,onClick:w(r.onClick,p=>{e||l?.(),u&&(R.current=p.isPropagationStopped(),R.current||p.stopPropagation())})}),u&&m.jsx(q,{control:d,bubbles:!R.current,name:o,value:c,checked:e,required:n,disabled:a,form:b,style:{transform:"translateX(-100%)"}})]})});M.displayName=S;var j="RadioIndicator",N=h.forwardRef((r,s)=>{const{__scopeRadio:t,forceMount:o,...e}=r,n=fe(j,t);return m.jsx(ie,{present:o||n.checked,children:m.jsx(g.span,{"data-state":D(n.checked),"data-disabled":n.disabled?"":void 0,...e,ref:s})})});N.displayName=j;var Re="RadioBubbleInput",q=h.forwardRef(({__scopeRadio:r,control:s,checked:t,bubbles:o=!0,...e},n)=>{const a=h.useRef(null),c=O(a,n),l=ue(t),b=ce(s);return h.useEffect(()=>{const i=a.current;if(!i)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==t&&f){const R=new Event("click",{bubbles:o});f.call(i,t),i.dispatchEvent(R)}},[l,t,o]),m.jsx(g.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...e,tabIndex:-1,ref:c,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});q.displayName=Re;function D(r){return r?"checked":"unchecked"}var be=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],E="RadioGroup",[ve]=Q(E,[A,G]),L=A(),B=G(),[me,ye]=ve(E),F=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,name:o,defaultValue:e,value:n,required:a=!1,disabled:c=!1,orientation:l,dir:b,loop:i=!0,onValueChange:d,...v}=r,f=L(t),R=re(b),[u,p]=oe({prop:n,defaultProp:e??null,onChange:d,caller:E});return m.jsx(me,{scope:t,name:o,required:a,disabled:c,value:u,onValueChange:p,children:m.jsx(ne,{asChild:!0,...f,orientation:l,dir:R,loop:i,children:m.jsx(g.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":c?"":void 0,dir:R,...v,ref:s})})})});F.displayName=E;var T="RadioGroupItem",H=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,disabled:o,...e}=r,n=ye(T,t),a=n.disabled||o,c=L(t),l=B(t),b=h.useRef(null),i=O(s,b),d=n.value===e.value,v=h.useRef(!1);return h.useEffect(()=>{const f=u=>{be.includes(u.key)&&(v.current=!0)},R=()=>v.current=!1;return document.addEventListener("keydown",f),document.addEventListener("keyup",R),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",R)}},[]),m.jsx(ae,{asChild:!0,...c,focusable:!a,active:d,children:m.jsx(M,{disabled:a,required:n.required,checked:d,...l,...e,name:n.name,ref:i,onCheck:()=>n.onValueChange(e.value),onKeyDown:w(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:w(e.onFocus,()=>{v.current&&b.current?.click()})})})});H.displayName=T;var ge="RadioGroupIndicator",U=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,...o}=r,e=B(t);return m.jsx(N,{...e,...o,ref:s})});U.displayName=ge;var we=F,Oe=H,Se=U;export{Oe as I,we as R,Se as a,Ce as u};
|