efficient-shell 9.11.0 → 9.12.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/README.md +12 -0
- package/dist/{Browser-XPDD6RSI.js → Browser-G7AXZ4OT.js} +14 -14
- package/dist/Calculator-6NA35GFS.js +29 -0
- package/dist/{CurrencyConverter-AW7BB3DD.js → CurrencyConverter-EDEJOKHC.js} +7 -7
- package/dist/{Documents-7SVXJFXI.js → Documents-7AVOO2DA.js} +1 -1
- package/dist/{Files-H4TP2FLK.js → Files-MT6PMAHO.js} +79 -79
- package/dist/{Notepad-XP5TPXS5.js → Notepad-KBRNR5BU.js} +9 -9
- package/dist/{PomodoroTimer-5VCWY4QT.js → PomodoroTimer-HCLT2JVD.js} +6 -6
- package/dist/{Preview-3ZNKGYVJ.js → Preview-4SOGNXHL.js} +1 -1
- package/dist/Sidebar-LIP2DYTO.js +44 -0
- package/dist/{Spreadsheet-VZGSCFFQ.js → Spreadsheet-W2AGKEWT.js} +13 -13
- package/dist/{Stock-2VWS2IQJ.js → Stock-3IBS63UR.js} +4 -4
- package/dist/{Weather-4MEYBP4D.js → Weather-EFIIVKFE.js} +8 -8
- package/dist/{WorldClock-Y4YRJ43F.js → WorldClock-ERQQ4VWP.js} +5 -5
- package/dist/ai/index.d.ts +42 -1
- package/dist/ai/index.js +59 -56
- package/dist/ai.css +1 -1
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/{chunk-4YKRYIA7.js → chunk-27W6BXT6.js} +2 -2
- package/dist/{chunk-REGXKU74.js → chunk-2J2OU65F.js} +2 -2
- package/dist/chunk-4GPUKEYQ.js +1 -0
- package/dist/{chunk-ZA6S5XVM.js → chunk-5ZGL2BRZ.js} +2 -2
- package/dist/{chunk-2XBJNB7D.js → chunk-6FI3HVUR.js} +28 -28
- package/dist/{chunk-UYDP4DK3.js → chunk-7BYBGPWU.js} +3 -3
- package/dist/{chunk-73W7537K.js → chunk-AOSLOKAL.js} +1 -1
- package/dist/chunk-AVAYZK3Z.js +3 -0
- package/dist/{chunk-5EM5US6A.js → chunk-B74Y4QR2.js} +1 -1
- package/dist/{chunk-7IC4JMFA.js → chunk-ERLZDA75.js} +4 -4
- package/dist/{chunk-BRHKQMRH.js → chunk-FVDX6ZSZ.js} +6 -6
- package/dist/{chunk-FPGRKHUW.js → chunk-HAFB45DT.js} +7 -7
- package/dist/{chunk-5Y7JITHW.js → chunk-HMG5TW2R.js} +1 -1
- package/dist/{chunk-FNSVXN7B.js → chunk-IK332TWA.js} +1 -1
- package/dist/{chunk-ODOEH5QZ.js → chunk-JENEVLJU.js} +1 -1
- package/dist/{chunk-XREN3AKD.js → chunk-JGDLTIOX.js} +4 -4
- package/dist/{chunk-XS4HFUTW.js → chunk-JWX7QRGE.js} +1 -1
- package/dist/{chunk-AGETTWMK.js → chunk-KJHXCVNI.js} +5 -5
- package/dist/{chunk-IQWIYZB5.js → chunk-NU2YQSOP.js} +2 -2
- package/dist/{chunk-EGAV5LSX.js → chunk-O25B75XX.js} +1 -1
- package/dist/{chunk-WIOG2NOJ.js → chunk-O56CY36U.js} +5 -5
- package/dist/{chunk-IVY7CCTS.js → chunk-OVDHEMLK.js} +5 -5
- package/dist/{chunk-4SZ3NNVF.js → chunk-R6R57BWQ.js} +4 -4
- package/dist/{chunk-KOSV4UPK.js → chunk-RISKWWMD.js} +3 -3
- package/dist/{chunk-VR4GSAFM.js → chunk-SAHQB2JD.js} +11 -11
- package/dist/{chunk-HHOXLECO.js → chunk-SYH7EPLF.js} +23 -23
- package/dist/chunk-VVZE27M4.js +7 -0
- package/dist/{chunk-IEPSBXMU.js → chunk-Z3CYLDHB.js} +9 -9
- package/dist/data/ListLoadError.js +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/Snippet.js +1 -1
- package/dist/forms/SplitButton.js +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/hooks/useTheme.d.ts +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +111 -111
- package/dist/map/index.js +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/ErrorBoundary.d.ts +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-IZXBE6R7.js +0 -29
- package/dist/Sidebar-TLJ7N3AQ.js +0 -44
- package/dist/chunk-JG6DATT4.js +0 -1
- package/dist/chunk-POCQ7ZL4.js +0 -3
- package/dist/chunk-PVR4KU7H.js +0 -7
package/dist/Sidebar-TLJ7N3AQ.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import{useAuth as e,parseOpenSections as t,readStored as r,RAIL_OPEN_SECTIONS_KEY as n,RAIL_WIDTH_KEY as a,toggleOpenSection as i,writeStored as l}from"./chunk-ZTV2BA3P.js";import{ResizeHandle as o}from"./chunk-V5QEPNPK.js";import{openGlobalSearch as s}from"./chunk-MUHWI4GK.js";import{partitionNav as c,visibleNavChildren as d,flyoutGroups as m,visibleSectionItems as h,rowsContainRoute as u}from"./chunk-WGRS6QBT.js";import{BrandMark as p}from"./chunk-MI67DI3H.js";import{IconButton_default as b}from"./chunk-RUTUVS4H.js";import{RAIL_MENU_GAP as f,navSections as g,startMenuCategories as x,TAB_STRIP_H as y,RAIL_COLLAPSED_INSET as k,RAIL_W as v,RAIL_MAX_W as N,RAIL_MIN_W as j,navIcons as w,sectionIcons as C}from"./chunk-CY5N5OA3.js";import"./chunk-5A7MWTXX.js";import"./chunk-PKXQDCNR.js";import{PopupMenu as S,PopupMenuItem as L,PopupMenuDivider as W,PopupMenuLabel as z}from"./chunk-FPGRKHUW.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UQYNPYF4.js";import"./chunk-HL6JSDN3.js";import{Icon as $}from"./chunk-FSPFV4MI.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-BCDG4N6L.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import{useShellStrings as R}from"./chunk-PEM7UXQ3.js";import"./chunk-C3QOHMR6.js";import{useMemo as A,useState as H,useRef as I,useEffect as M,isValidElement as T,cloneElement as K}from"react";import{jsx as P,jsxs as U,Fragment as D}from"react/jsx-runtime";var Q="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform);function B(e,t,r){const n=Math.max(8,r-t.bottom);return{left:e+f,bottom:n,maxHeight:r-n-8,overflowY:"auto"}}var J=(e,t)=>["flex h-(--row-height-menu) w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition-colors",t?"justify-center px-0":"",e?"bg-gray-100 text-gray-900":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"].join(" "),F="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function G({open:e,children:t}){const r=I(null);return M(()=>{r.current?.toggleAttribute("inert",!e)},[e]),/* @__PURE__ */P("div",{ref:r,className:"grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none",style:{gridTemplateRows:e?"1fr":"0fr",opacity:e?1:0},"aria-hidden":!e,"data-fold":e?"open":"closed",children:/* @__PURE__ */P("div",{className:"min-h-0 overflow-hidden",children:t})})}function V({open:e}){/* @__PURE__ */
|
|
2
|
-
return P($,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function _({dir:e}){/* @__PURE__ */
|
|
3
|
-
return P($,"left"===e?{name:"chevron-double-left",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"}:{name:"chevron-double-right",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"})}function O({className:e}){/* @__PURE__ */
|
|
4
|
-
return P($,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var X=e=>.75+1.75*e+"rem";function E({width:E,collapsed:Y,onToggleCollapsed:Z,onResize:q,onHome:ee,onOpen:te,activeRoute:re,profile:ne,user:ae,onLogout:ie,onSwitchToDesktop:le,onReportBug:oe,onClose:se,navSections:ce=g,navIcons:de=w,sectionIcons:me=C,categories:he=x,productName:ue,productIcon:pe,tagline:be,adaptiveLogo:fe=!1,logoHasAlpha:ge=null,logoIsLight:xe=null}){const ye=R().layout,{hasAnyPerm:ke}=e(),ve=A(()=>c(ce,he,ke),[ce,he,ke]),[Ne,je]=H(()=>t(r(n))),we=A(()=>[...ve.topItems.filter(e=>d(e,ke).length>0).map(e=>`child:${e.to}`),...[...ve.erpSections,...ve.systemSections,...ve.virtualSections,...ve.footerSections].map(e=>e.label)],[ve,ke]),Ce=(e,t=we)=>je(r=>{const a=i(r,e,t);return l(n,JSON.stringify([...a])),a}),[Se,Le]=H(null),[We,ze]=H(!1),$e=I(null);M(()=>{Y||Le(null)},[Y]);const Re=(e,t)=>{Le(null),e.onSelect?e.onSelect():te(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},Ae=(e,t)=>{const r=t[e];/* @__PURE__ */
|
|
5
|
-
return P("span",{className:F,"aria-hidden":"true",children:r&&T(r)?K(r,{className:"size-[18px]"}):r})},He=e=>e.filter(e=>d(e,ke).length>0).map(e=>`child:${e.to}`),Ie=(e,t,r=we)=>{const n=d(e,ke),a=e.menuLabel??e.label;if(n.length>0){const i=`child:${e.to}`,l=Ne.has(i),o=!l&&u(n,re,ke);/* @__PURE__ */
|
|
6
|
-
return U("div",{children:[
|
|
7
|
-
/* @__PURE__ */U("button",{type:"button",onClick:()=>Ce(i,r),"aria-expanded":l,className:J(o,!1),style:t>0?{paddingLeft:X(t)}:void 0,children:[0===t&&Ae(e.to,de),
|
|
8
|
-
/* @__PURE__ */P("span",{className:"min-w-0 flex-1 truncate",children:a}),
|
|
9
|
-
/* @__PURE__ */P(V,{open:l})]}),
|
|
10
|
-
/* @__PURE__ */P(G,{open:l,children:/* @__PURE__ */P("div",{className:"space-y-0.5 pt-0.5",children:n.map(e=>Ie(e,t+1,He(n)))})}),e.dividerAfter&&/* @__PURE__ */P("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:X(t)},"aria-hidden":"true"})]},e.to)}const i=e.to===re;/* @__PURE__ */
|
|
11
|
-
return U("div",{children:[
|
|
12
|
-
/* @__PURE__ */U("button",{type:"button",onClick:t=>Re(e,t),onAuxClick:t=>{1===t.button&&Re(e,t)},"aria-current":i?"page":void 0,className:J(i,!1),style:t>0?{paddingLeft:X(t)}:void 0,children:[0===t&&Ae(e.to,de),
|
|
13
|
-
/* @__PURE__ */P("span",{className:"min-w-0 flex-1 truncate",children:a})]}),e.dividerAfter&&/* @__PURE__ */P("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:X(t)},"aria-hidden":"true"})]},e.to)},Me=(e,t)=>{const r=t?e.items:h(e,ke);if(0===r.length)return null;const n="icon"in e&&e.icon?/* @__PURE__ */P("span",{className:F,"aria-hidden":"true",children:e.icon}):Ae(e.label,me),a=e.menuLabel??e.label,i=u(r,re,ke),l="dividerAfter"in e&&e.dividerAfter;if(Y)/* @__PURE__ */
|
|
14
|
-
return U("div",{children:[
|
|
15
|
-
/* @__PURE__ */P("button",{type:"button",title:a,"aria-label":a,"aria-haspopup":"menu","aria-expanded":Se?.label===e.label,onClick:t=>{const n=t.currentTarget.getBoundingClientRect();Le(t=>t?.label===e.label?null:{label:e.label,items:r,top:n.top})},className:J(i||Se?.label===e.label,!0),children:n}),l&&/* @__PURE__ */P("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label);const o=Ne.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
|
|
16
|
-
return U("div",{children:[
|
|
17
|
-
/* @__PURE__ */U("button",{type:"button",onClick:()=>Ce(e.label),"aria-expanded":o,"aria-controls":s,className:J(!o&&i,!1),children:[n,
|
|
18
|
-
/* @__PURE__ */P("span",{className:"min-w-0 flex-1 truncate",children:a}),
|
|
19
|
-
/* @__PURE__ */P(V,{open:o})]}),
|
|
20
|
-
/* @__PURE__ */P(G,{open:o,children:/* @__PURE__ */P("div",{id:s,role:"group","aria-label":a,className:"space-y-0.5 pt-0.5",children:r.map(e=>Ie(e,1,He(r)))})}),l&&/* @__PURE__ */P("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label)},Te=ne?.first_name?`${ne.first_name} ${ne.last_name||""}`.trim():ae?.email||"",Ke=(ne?.first_name?.charAt(0)||ae?.email?.charAt(0)||"?").toUpperCase(),Pe=ne?.avatar_url?/* @__PURE__ */P("img",{src:ne.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */P("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Ke}),Ue=We?$e.current?.getBoundingClientRect():void 0,De=Y?"":"px-3",Qe=Y?{paddingInline:k}:void 0,Be=`${Y?ye.expandSidebar:ye.collapseSidebar} (${Q?"⌘":"Ctrl"} .)`,Je=ee?{run:ee,label:ye.goHome,title:ye.goHome}:se?null:{run:Z,label:Y?ye.expandSidebar:ye.collapseSidebar,title:Be},Fe=/* @__PURE__ */U(D,{children:[pe&&/* @__PURE__ */P(p,{src:pe,alt:"",slot:"compact",surface:"light",adaptive:fe,hasAlpha:ge,isLight:xe,size:28,decorative:!0}),!Y&&/* @__PURE__ */U("span",{className:"min-w-0 text-left leading-tight",children:[
|
|
21
|
-
/* @__PURE__ */P("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:ue??"Apps"}),be&&/* @__PURE__ */P("span",{className:"block truncate text-2xs font-medium text-gray-500",children:be})]})]}),Ge=ve.erpSections.length>0||ve.systemSections.length>0||ve.virtualSections.length>0;/* @__PURE__ */
|
|
22
|
-
return U("aside",{"aria-label":ye.navLabel,className:"fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-line bg-surface text-ink-strong",style:{width:E},children:[
|
|
23
|
-
/* @__PURE__ */U("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(Y?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:y},children:[Je?/* @__PURE__ */P("button",{type:"button",onClick:Je.run,"aria-label":Je.label,title:Je.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(Y?"justify-center p-0.5":"-ml-1 p-1"),children:Fe}):/* @__PURE__ */P("span",{className:"flex min-w-0 items-center gap-2",children:Fe}),se?/* @__PURE__ */P(b,{onClick:se,"aria-label":ye.closeMenu,children:/* @__PURE__ */P($,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!Y&&/* @__PURE__ */P("button",{type:"button",onClick:Z,"aria-label":ye.collapseSidebar,title:`${ye.collapseSidebar} (${Q?"⌘":"Ctrl"} .)`,className:"flex size-8 shrink-0 items-center justify-center rounded-md text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900",children:/* @__PURE__ */P(_,{dir:"left"})})]}),
|
|
24
|
-
/* @__PURE__ */P("div",{className:`shrink-0 pt-3 ${De}`,style:Qe,children:Y?/* @__PURE__ */P("button",{type:"button",onClick:s,"aria-label":ye.search,title:`${ye.search} (${Q?"⌘K":"Ctrl K"})`,className:J(!1,!0),children:/* @__PURE__ */P(O,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */U("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-line bg-surface px-3 text-left transition-colors hover:bg-gray-100",children:[
|
|
25
|
-
/* @__PURE__ */P(O,{className:"size-3.5 text-gray-500"}),
|
|
26
|
-
/* @__PURE__ */P("span",{className:"min-w-0 flex-1 truncate text-sm text-ink-faint",children:ye.search}),
|
|
27
|
-
/* @__PURE__ */P("kbd",{className:"rounded border border-line bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-ink-faint",children:Q?"⌘K":"Ctrl K"})]})}),
|
|
28
|
-
/* @__PURE__ */U("nav",{"aria-label":ye.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${De} ${Y?"space-y-1":"space-y-0.5"}`,style:Qe,children:[Y&&/* @__PURE__ */P("button",{type:"button",onClick:Z,"aria-label":ye.expandSidebar,title:`${ye.expandSidebar} (${Q?"⌘":"Ctrl"} .)`,className:`${J(!1,!0)} mb-3`,children:/* @__PURE__ */P(_,{dir:"right"})}),ve.topItems.map(e=>{if(!Y)return Ie(e,0);const t=d(e,ke),r=e.to===re||u(t,re,ke),n=e.menuLabel??e.label;/* @__PURE__ */
|
|
29
|
-
return U("div",{children:[
|
|
30
|
-
/* @__PURE__ */P("button",{type:"button",title:n,"aria-label":n,onClick:r=>{if(0===t.length)return void Re(e,r);const n=r.currentTarget.getBoundingClientRect();Le(r=>r?.label===e.to?null:{label:e.to,items:t,top:n.top})},className:J(r,!0),children:Ae(e.to,de)}),e.dividerAfter&&/* @__PURE__ */P("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.to)}),ve.topItems.length>0&&Ge&&!ve.topItems[ve.topItems.length-1].dividerAfter&&/* @__PURE__ */P("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ve.erpSections.map(e=>Me(e,!1)),ve.systemSections.map(e=>Me(e,!1)),ve.virtualSections.map(e=>Me(e,!0)),ve.footerSections.length>0&&/* @__PURE__ */P("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ve.footerSections.map(e=>Me(e,!1))]}),
|
|
31
|
-
/* @__PURE__ */P("div",{className:`shrink-0 border-t border-gray-200 py-2 ${De}`,style:Qe,children:/* @__PURE__ */U("button",{ref:$e,type:"button",onClick:()=>ze(e=>!e),"aria-haspopup":"menu","aria-expanded":We,"aria-label":Y?ye.accountMenu(Te):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(Y?"justify-center py-2":"px-2 py-2"),children:[Pe,!Y&&/* @__PURE__ */U("span",{className:"min-w-0 flex-1 text-left",children:[
|
|
32
|
-
/* @__PURE__ */P("span",{className:"block truncate text-sm font-semibold text-ink-strong",children:Te}),ae?.email&&Te!==ae.email&&/* @__PURE__ */P("span",{className:"block truncate text-2xs text-ink-faint",children:ae.email})]})]})}),q&&!Y&&!se&&/* @__PURE__ */P(o,{side:"left",width:E,onResize:q,min:j,max:N,defaultWidth:v,storageKey:a,label:ye.resizeSidebar}),We&&Ue&&/* @__PURE__ */U(S,{portal:!0,minWidth:224,onClose:()=>ze(!1),style:B(E,Ue,window.innerHeight),children:[Y&&/* @__PURE__ */U("div",{className:"border-b border-line px-3 py-3",children:[
|
|
33
|
-
/* @__PURE__ */P("p",{className:"truncate text-sm font-semibold text-gray-800",children:Te}),ae?.email&&/* @__PURE__ */P("p",{className:"truncate text-xs text-gray-500",children:ae.email})]}),
|
|
34
|
-
/* @__PURE__ */U(L,{onClick:()=>{ze(!1),te("/profile",!1)},children:[
|
|
35
|
-
/* @__PURE__ */P($,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.profile]}),ve.footerItems.map(e=>/* @__PURE__ */U(L,{onClick:()=>{ze(!1),Re(e)},children:[
|
|
36
|
-
/* @__PURE__ */P("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:de[e.to]}),e.menuLabel??e.label]},e.to)),oe&&/* @__PURE__ */U(L,{onClick:()=>{ze(!1),oe()},children:[
|
|
37
|
-
/* @__PURE__ */P($,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.reportIssue]}),
|
|
38
|
-
/* @__PURE__ */P(W,{}),le&&/* @__PURE__ */U(D,{children:[
|
|
39
|
-
/* @__PURE__ */U(L,{onClick:()=>{ze(!1),le()},children:[
|
|
40
|
-
/* @__PURE__ */P($,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.switchToDesktop]}),
|
|
41
|
-
/* @__PURE__ */P(W,{})]}),
|
|
42
|
-
/* @__PURE__ */U(L,{danger:!0,onClick:()=>{ze(!1),ie()},children:[
|
|
43
|
-
/* @__PURE__ */P($,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.signOut]})]}),Se&&Y&&/* @__PURE__ */P(S,{portal:!0,minWidth:220,onClose:()=>Le(null),style:{left:E+f,top:Math.min(Se.top,window.innerHeight-48*Math.min(Se.items.length,10)-16)},children:m(Se.items,ke).map((e,t)=>/* @__PURE__ */U("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */P(W,{}),e.heading&&/* @__PURE__ */P(z,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */U(L,{onClick:()=>Re(e),children:[Ae(e.to,de),
|
|
44
|
-
/* @__PURE__ */P("span",{className:e.to===re?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{B as accountMenuPosition,E as default};
|
package/dist/chunk-JG6DATT4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="9.11.0",a=r;export{a as APP_VERSION,r as VERSION};
|
package/dist/chunk-POCQ7ZL4.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{DropdownMenu as e}from"./chunk-PVR4KU7H.js";import{Button_default as i}from"./chunk-NHH2MXFU.js";import{iconButtonClasses as n}from"./chunk-UQYNPYF4.js";import{Icon as r}from"./chunk-FSPFV4MI.js";import{Tooltip as a}from"./chunk-BCDG4N6L.js";import{forwardRef as l,useId as o}from"react";import{jsxs as s,jsx as t}from"react/jsx-runtime";var d="relative focus-visible:z-10",m={secondary:"border-l-0",primary:"border-l border-white/30",warning:"border-l border-white/30"},c=l(function({children:l,onClick:c,type:b="button",items:h,menuLabel:u,variant:f="primary",size:p="md",loading:v=!1,leftIcon:k,disabled:N=!1,disabledReason:g,tooltip:w,menuDisabled:x=!1,menuDisabledReason:j,onMenuOpenChange:y,menuFooter:C,menuFooterLabel:F,align:z="end",side:L="bottom",menuMinWidth:M,linkAs:R,block:W=!1,className:D=""},H){const I=N&&(null!=g&&""!==g&&!1!==g)&&!v,P=x&&null!=j&&""!==j&&!1!==j,U=o(),$=/* @__PURE__ */t(i,{ref:H,type:b,variant:f,size:p,loading:v,leftIcon:k,block:W,disabled:N&&!I,"aria-disabled":!!I||void 0,disabledReason:I?g:void 0,onClick:c,className:`rounded-r-none ${d}`,children:l}),A=W?"relative flex min-w-0 flex-1":"relative inline-flex",B=p.startsWith("touch")?"h-5 w-5":"h-4 w-4";/* @__PURE__ */
|
|
2
|
-
return s("div",{className:[W?"flex w-full":"inline-flex","items-stretch",D].filter(Boolean).join(" "),children:[null==w||""===w||I?$:/* @__PURE__ */t(a,{content:w,className:A,children:$}),
|
|
3
|
-
/* @__PURE__ */t(a,{content:P?j:u,describe:!1,className:"relative inline-flex shrink-0",children:/* @__PURE__ */t(e,{"aria-label":u,"aria-describedby":P?U:void 0,items:h,align:z,side:L,minWidth:M,linkAs:R,disabled:x&&!P,"aria-disabled":P,onOpenChange:y,footer:C,footerLabel:F,triggerClassName:n({variant:f,size:p,className:`rounded-l-none ${m[f]} ${d}`}),trigger:/* @__PURE__ */t(r,{name:"chevron-down",className:B,strokeWidth:2,"aria-hidden":"true"})})}),P&&/* @__PURE__ */t("span",{id:U,className:"sr-only",children:j})]})});export{c as SplitButton_default};
|
package/dist/chunk-PVR4KU7H.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{isFocusableEntry as e,menuStatusIds as t,renderMenuEntries as r}from"./chunk-XS4HFUTW.js";import{useTabLayer as n,focusableIn as o}from"./chunk-CDAJKLGL.js";import{PopupMenu as i,PopupMenuDivider as a}from"./chunk-FPGRKHUW.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as s}from"./chunk-62LW225J.js";import{placeMenu as d,popupBounds as c,followAnchor as u}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as p}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as f}from"./chunk-TWVUQUUD.js";import{useState as m,useRef as h,useId as g,useCallback as v,useEffect as b}from"react";import{jsxs as y,jsx as x}from"react/jsx-runtime";var k=/(^|[\s:])!?z-/,w={paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:"0.25rem",paddingBottom:"0.25rem"};function D({trigger:D,items:L,align:W="end",side:j="bottom","aria-label":K,className:S="",triggerClassName:A,menuClassName:C="",minWidth:E=180,linkAs:H,disabled:U,id:$,"aria-describedby":N,"aria-disabled":T=!1,onOpenChange:B,footer:G,footerLabel:I}){const[J,q]=m(!1),[M,P]=m(-1),R=h(null),z=h(null),F=h(null),O=h(null),Q=h(null),V=null!=G&&!1!==G,X=h({text:"",at:0}),Y=g(),Z=g(),_=$??Z,ee=h(B);ee.current=B;const te=h(J);te.current=J;const re=v(e=>{q(!1),te.current&&(te.current=!1,ee.current?.(!1)),e&&z.current?.focus()},[]),ne=(t,r)=>{const n=L.length;for(let o=0;o<n;o+=1){const i=((t+r*o)%n+n)%n;if(e(L[i]))return i}return-1},oe=()=>F.current?.closest("[data-popup-menu-tree]")??null;b(()=>{if(!J)return;const e=e=>{const t=e.target;if(R.current?.contains(t)||oe()?.contains(t))return;const r=oe()?.getAttribute("data-popup-menu-tree"),n=t.closest?.("[data-popup-menu-tree]");r&&n?.getAttribute("data-popup-menu-tree")===r||re(!1)};document.addEventListener("pointerdown",e,!0);const t=l(()=>re(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[J,re]);const ie=v(()=>{const e=oe(),t=z.current;if(!e||!t)return;const r=e.style;r.left="0px",r.top="0px",r.maxWidth="none",r.maxHeight="none";const n={width:e.offsetWidth,height:e.offsetHeight},o=d({trigger:t.getBoundingClientRect(),menu:n,bounds:c(t),align:W,side:j});r.left=`${o.left}px`,r.top=`${o.top}px`,r.maxWidth=`${o.maxWidth}px`,r.maxHeight=`${o.maxHeight}px`,r.overflowY=n.height>o.maxHeight?"auto":"",e.dataset.side=o.side,e.dataset.align=W},[W,j]);p(()=>{J&&ie()}),b(()=>{if(J)return u(()=>z.current,ie)},[J,ie]),b(()=>{if(!J)return;const t=F.current,r=e(L[M])?t?.querySelector(`[data-dropdown-index="${M}"]`):null;(r??t)?.focus({preventScroll:!0})},[J,M]),b(()=>{if(J)return f(e=>"Escape"===e.key&&(re(!0),!0),()=>O.current)},[J,re]),n(O,J&&V);const ae=h(null),le=e=>"first"===e?ne(0,1):ne(L.length-1,-1),se=e=>{P(le(e)),q(!0),te.current||(te.current=!0,ae.current=e,B?.(!0))};p(()=>{const e=ae.current;if(!J||!e)return;ae.current=null;const t=le(e);t!==M&&P(t)});const de=t(L,Y),ce="function"==typeof G?G({close:()=>re(!0)}):G,ue={...k.test(C)?{}:{zIndex:s.popup},minWidth:E};/* @__PURE__ */
|
|
2
|
-
return y("div",{ref:R,className:`relative inline-flex ${S}`.trim(),children:[
|
|
3
|
-
/* @__PURE__ */x("button",{ref:z,id:_,type:"button","aria-haspopup":"menu","aria-expanded":J,"aria-controls":J?Y:void 0,"aria-label":K,"aria-describedby":N,"aria-disabled":T||void 0,disabled:U,onClick:()=>{T||(J?re(!1):se("first"))},onKeyDown:e=>{T||("ArrowDown"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),se("first")):"ArrowUp"===e.key&&(e.preventDefault(),se("last")))},className:A??"inline-flex items-center justify-center rounded-(--radius-control) text-gray-600 transition-colors not-disabled:not-aria-disabled:hover:bg-gray-100 not-disabled:not-aria-disabled:hover:text-ink-strongest rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] disabled:cursor-not-allowed disabled:opacity-60 "+(K?"h-8 min-w-8 px-0":"h-8 min-w-8 gap-2 px-3"),children:D}),J&&
|
|
4
|
-
/* @__PURE__ */x(i,{portal:!0,className:C,style:ue,children:/* @__PURE__ */y("div",{ref:O,children:[
|
|
5
|
-
/* @__PURE__ */x("div",{ref:F,id:Y,role:"menu","aria-orientation":"vertical","aria-label":K,"aria-labelledby":K?void 0:_,"aria-describedby":de,tabIndex:-1,onKeyDown:t=>{if(!t.target.closest?.("[data-popup-submenu-panel]")||"Tab"===t.key)if("ArrowDown"===t.key)t.preventDefault(),P(ne(M+1,1));else if("ArrowUp"===t.key)t.preventDefault(),P(ne(M-1,-1));else if("Home"===t.key)t.preventDefault(),P(ne(0,1));else if("End"===t.key)t.preventDefault(),P(ne(L.length-1,-1));else if("Tab"===t.key){t.preventDefault();const e=!t.shiftKey&&Q.current?o(Q.current)[0]:void 0;e?e.focus({preventScroll:!0}):re(!0)}else if(" "===t.key){const e=t.target;e.matches?.("a[href]")&&(t.preventDefault(),e.click())}else 1!==t.key.length||t.ctrlKey||t.metaKey||t.altKey||(t=>{const r=Date.now(),n=t.key.toLowerCase(),o=r-X.current.at<500?X.current.text+n:n;X.current={text:o,at:r};const i=[...o].every(e=>e===o[0]),a=i?o[0]:o,l=i?M+1:Math.max(M,0),s=F.current,d=L.length;for(let r=0;r<d;r+=1){const n=((l+r)%d+d)%d;if(e(L[n])&&(s?.querySelector(`[data-dropdown-index="${n}"]`)?.textContent?.trim().toLowerCase()??"").startsWith(a))return t.preventDefault(),void P(n)}})(t)},children:r(L,{menuId:Y,choose:e=>{e.disabled||(re(!0),e.onSelect())},toggle:e=>{e.disabled||e.onSelect()},followLink:()=>re(!0),rowProps:(e,t)=>({"data-dropdown-index":e,tabIndex:e===M?0:-1,onMouseEnter:()=>{t.disabled||Q.current?.contains(document.activeElement)||P(e)}}),linkAs:H})}),V&&/* @__PURE__ */y("div",{ref:Q,role:"group","aria-label":I,"data-dropdown-footer":"",onKeyDown:e=>{const t=Q.current;if("Tab"!==e.key||!t||!t.contains(e.target))return;const r=o(t),n=document.activeElement;if(e.shiftKey){if(r.length>0&&n!==r[0])return;e.preventDefault();const t=F.current?.querySelector(`[data-dropdown-index="${M}"]`);return void(t??F.current)?.focus({preventScroll:!0})}r.length>0&&n!==r[r.length-1]||(e.preventDefault(),re(!0))},children:[
|
|
6
|
-
/* @__PURE__ */x("div",{"aria-hidden":"true",children:/* @__PURE__ */x(a,{})}),
|
|
7
|
-
/* @__PURE__ */x("div",{style:w,children:ce})]})]})})]})}export{D as DropdownMenu};
|