efficient-shell 7.70.0 → 7.71.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/{Browser-XDIOSJS4.js → Browser-NFUPN5EC.js} +14 -14
- package/dist/Calculator-GQGK6DO3.js +29 -0
- package/dist/ConfirmDialog-YVFPLUQH.js +1 -0
- package/dist/{CurrencyConverter-YEG2OFM7.js → CurrencyConverter-UPCIPOFS.js} +8 -8
- package/dist/{Documents-MRYWQZ6F.js → Documents-JNWP623S.js} +29 -29
- package/dist/Files-ZHLMQ5IK.js +87 -0
- package/dist/{Notepad-PWMJWNUE.js → Notepad-37KKX6KP.js} +15 -15
- package/dist/PdfViewer-YELEO346.js +1 -0
- package/dist/{PomodoroTimer-7PWB2HLD.js → PomodoroTimer-JPWZ4DDT.js} +8 -8
- package/dist/{Preview-XMWD3UNB.js → Preview-GESXUZK2.js} +53 -53
- package/dist/Sidebar-FS2PX6DU.js +43 -0
- package/dist/{Spreadsheet-M2KRJ7BF.js → Spreadsheet-IFQINTC4.js} +13 -13
- package/dist/{Stock-EO7DOEEF.js → Stock-FRUP3BIN.js} +3 -3
- package/dist/{Weather-Y6E3HASC.js → Weather-MQOSCQQR.js} +16 -16
- package/dist/{WorldClock-HXGPRRQZ.js → WorldClock-7GQYAE4T.js} +6 -6
- package/dist/ai/index.js +18 -18
- package/dist/apps/index.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/{chunk-RDLWLATO.js → chunk-3E27HV76.js} +2 -2
- package/dist/{chunk-BIR6UUSP.js → chunk-3NYPZO4K.js} +4 -4
- package/dist/{chunk-YSJA274H.js → chunk-5G76CZPP.js} +2 -2
- package/dist/{chunk-I7OLF2FL.js → chunk-5MCD5KGU.js} +8 -8
- package/dist/chunk-7FA25555.js +466 -0
- package/dist/{chunk-JVSFX53V.js → chunk-A5UR5LGU.js} +7 -7
- package/dist/chunk-BUIZD247.js +1 -0
- package/dist/chunk-F6FTF37T.js +46 -0
- package/dist/chunk-G5GERM76.js +2 -0
- package/dist/{chunk-4EOL3HTG.js → chunk-IF3ZX46R.js} +13 -13
- package/dist/{chunk-XMSL2GJP.js → chunk-L5X6V677.js} +1 -1
- package/dist/{chunk-XA4APY3B.js → chunk-MY4HINJT.js} +1 -1
- package/dist/{chunk-2WZP2RMC.js → chunk-MYUJDXQC.js} +1 -1
- package/dist/{chunk-Q2A75VYD.js → chunk-NUTXXB74.js} +3 -3
- package/dist/{chunk-PZ53QKHH.js → chunk-OKFO3XYS.js} +3 -3
- package/dist/{chunk-EU4BCXGA.js → chunk-RWNNFCSA.js} +1 -1
- package/dist/{chunk-4ZBKHQVW.js → chunk-RZHHSQDO.js} +13 -13
- package/dist/{chunk-WS3P7QXT.js → chunk-SBA7JZ72.js} +65 -65
- package/dist/{chunk-CCCVRRC7.js → chunk-U5Q7QGW6.js} +1 -1
- package/dist/{chunk-6MZFPE5S.js → chunk-U6GNXBIR.js} +485 -485
- package/dist/{chunk-44BJ3XGZ.js → chunk-USHLHGAH.js} +8 -8
- package/dist/chunk-UULKUZAG.js +1 -0
- package/dist/{chunk-6I4ZV67D.js → chunk-VB2Q65XD.js} +2 -2
- package/dist/{chunk-YJIG2KT3.js → chunk-YIC644QO.js} +3 -3
- package/dist/icons/efficient-glyphs.d.ts +486 -0
- package/dist/icons/efficient-glyphs.js +1 -0
- package/dist/icons/efficient-meanings.d.ts +425 -0
- package/dist/icons/efficient-meanings.js +1 -0
- package/dist/icons/efficient.d.ts +5 -897
- package/dist/icons/efficient.js +1 -466
- package/dist/index.js +559 -559
- package/dist/map/index.d.ts +9 -3
- package/dist/map/index.js +13 -13
- package/dist/map-site.css +4 -3
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +11 -1
- package/dist/Calculator-TTFPAPP7.js +0 -29
- package/dist/ConfirmDialog-JP35CDMP.js +0 -1
- package/dist/Files-MJPDM7I3.js +0 -87
- package/dist/PdfViewer-LALOZLBP.js +0 -1
- package/dist/Sidebar-NWSMRAIE.js +0 -43
- package/dist/chunk-7AQUUDJL.js +0 -1
- package/dist/chunk-AA5RO6ER.js +0 -47
- package/dist/chunk-DELNCIUK.js +0 -2
package/dist/Sidebar-NWSMRAIE.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import{useAuth as e,parseOpenSections as t,readStored as a,RAIL_OPEN_SECTIONS_KEY as r,RAIL_WIDTH_KEY as n,toggleOpenSection as i,writeStored as l}from"./chunk-I74FRKHQ.js";import{partitionNav as o,openGlobalSearch as s,flyoutGroups as c,visibleSectionItems as d,rowsContainRoute as m,visibleNavChildren as h,BrandMark as u}from"./chunk-2ZRX3NRH.js";import{ResizeHandle as p}from"./chunk-6I4ZV67D.js";import{IconButton_default as b}from"./chunk-EU4BCXGA.js";import{RAIL_MENU_GAP as g,navSections as f,startMenuCategories as y,TAB_STRIP_H as x,RAIL_COLLAPSED_INSET as v,RAIL_W as k,RAIL_MAX_W as N,RAIL_MIN_W as C,navIcons as w,sectionIcons as j}from"./chunk-TPDOOCFS.js";import"./chunk-5A7MWTXX.js";import{PopupMenu as S,PopupMenuItem as z,PopupMenuDivider as L,PopupMenuLabel as $}from"./chunk-YJIG2KT3.js";import"./chunk-UVBK6YSR.js";import"./chunk-RDLWLATO.js";import"./chunk-7IQ3B77H.js";import"./chunk-D65T4H6J.js";import"./chunk-FIEA5CGB.js";import"./chunk-K7PQXJO7.js";import{useShellStrings as A}from"./chunk-2EJRVQ3Y.js";import"./chunk-C3QOHMR6.js";import"./chunk-2J6F4EE7.js";import{Icon as I}from"./chunk-76DRQSJM.js";import{useMemo as R,useState as W,useRef as H,useEffect as K,isValidElement as T,cloneElement as M}from"react";import{jsx as B,jsxs as O,Fragment as D}from"react/jsx-runtime";var J="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform);function Q(e,t,a){const r=Math.max(8,a-t.bottom);return{left:e+g,bottom:r,maxHeight:a-r-8,overflowY:"auto"}}var _=(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(" "),E="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function P({open:e}){/* @__PURE__ */
|
|
2
|
-
return B(I,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function X({dir:e}){/* @__PURE__ */
|
|
3
|
-
return B(I,"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 F({className:e}){/* @__PURE__ */
|
|
4
|
-
return B(I,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var Y=e=>.75+1.75*e+"rem";function G({width:G,collapsed:U,onToggleCollapsed:V,onResize:Z,onHome:q,onOpen:ee,activeRoute:te,profile:ae,user:re,onLogout:ne,onSwitchToDesktop:ie,onReportBug:le,onClose:oe,navSections:se=f,navIcons:ce=w,sectionIcons:de=j,categories:me=y,productName:he,productIcon:ue,tagline:pe,adaptiveLogo:be=!1,logoHasAlpha:ge=null,logoIsLight:fe=null}){const ye=A().layout,{hasAnyPerm:xe}=e(),ve=R(()=>o(se,me,xe),[se,me,xe]),[ke,Ne]=W(()=>t(a(r))),Ce=e=>Ne(t=>{const a=i(t,e);return l(r,JSON.stringify([...a])),a}),[we,je]=W(null),[Se,ze]=W(!1),Le=H(null);K(()=>{U||je(null)},[U]);const $e=(e,t)=>{je(null),e.onSelect?e.onSelect():ee(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},Ae=(e,t)=>{const a=t[e];/* @__PURE__ */
|
|
5
|
-
return B("span",{className:E,"aria-hidden":"true",children:a&&T(a)?M(a,{className:"size-[18px]"}):a})},Ie=(e,t)=>{const a=h(e,xe),r=e.menuLabel??e.label;if(a.length>0){const n=`child:${e.to}`,i=ke.has(n),l=!i&&m(a,te,xe);/* @__PURE__ */
|
|
6
|
-
return O("div",{children:[
|
|
7
|
-
/* @__PURE__ */O("button",{type:"button",onClick:()=>Ce(n),"aria-expanded":i,className:_(l,!1),style:t>0?{paddingLeft:Y(t)}:void 0,children:[0===t&&Ae(e.to,ce),
|
|
8
|
-
/* @__PURE__ */B("span",{className:"min-w-0 flex-1 truncate",children:r}),
|
|
9
|
-
/* @__PURE__ */B(P,{open:i})]}),i&&/* @__PURE__ */B("div",{className:"space-y-0.5 pt-0.5",children:a.map(e=>Ie(e,t+1))}),e.dividerAfter&&/* @__PURE__ */B("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:Y(t)},"aria-hidden":"true"})]},e.to)}const n=e.to===te;/* @__PURE__ */
|
|
10
|
-
return O("div",{children:[
|
|
11
|
-
/* @__PURE__ */O("button",{type:"button",onClick:t=>$e(e,t),onAuxClick:t=>{1===t.button&&$e(e,t)},"aria-current":n?"page":void 0,className:_(n,!1),style:t>0?{paddingLeft:Y(t)}:void 0,children:[0===t&&Ae(e.to,ce),
|
|
12
|
-
/* @__PURE__ */B("span",{className:"min-w-0 flex-1 truncate",children:r})]}),e.dividerAfter&&/* @__PURE__ */B("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:Y(t)},"aria-hidden":"true"})]},e.to)},Re=(e,t)=>{const a=t?e.items:d(e,xe);if(0===a.length)return null;const r="icon"in e&&e.icon?/* @__PURE__ */B("span",{className:E,"aria-hidden":"true",children:e.icon}):Ae(e.label,de),n=e.menuLabel??e.label,i=m(a,te,xe),l="dividerAfter"in e&&e.dividerAfter;if(U)/* @__PURE__ */
|
|
13
|
-
return O("div",{children:[
|
|
14
|
-
/* @__PURE__ */B("button",{type:"button",title:n,"aria-label":n,"aria-haspopup":"menu","aria-expanded":we?.label===e.label,onClick:t=>{const r=t.currentTarget.getBoundingClientRect();je(t=>t?.label===e.label?null:{label:e.label,items:a,top:r.top})},className:_(i||we?.label===e.label,!0),children:r}),l&&/* @__PURE__ */B("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.label);const o=ke.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
|
|
15
|
-
return O("div",{children:[
|
|
16
|
-
/* @__PURE__ */O("button",{type:"button",onClick:()=>Ce(e.label),"aria-expanded":o,"aria-controls":s,className:_(!o&&i,!1),children:[r,
|
|
17
|
-
/* @__PURE__ */B("span",{className:"min-w-0 flex-1 truncate",children:n}),
|
|
18
|
-
/* @__PURE__ */B(P,{open:o})]}),
|
|
19
|
-
/* @__PURE__ */B("div",{id:s,role:"group","aria-label":n,hidden:!o,className:"space-y-0.5 pt-0.5",children:o&&a.map(e=>Ie(e,1))}),l&&/* @__PURE__ */B("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.label)},We=ae?.first_name?`${ae.first_name} ${ae.last_name||""}`.trim():re?.email||"",He=(ae?.first_name?.charAt(0)||re?.email?.charAt(0)||"?").toUpperCase(),Ke=ae?.avatar_url?/* @__PURE__ */B("img",{src:ae.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */B("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:He}),Te=Se?Le.current?.getBoundingClientRect():void 0,Me=U?"":"px-3",Be=U?{paddingInline:v}:void 0,Oe=`${U?ye.expandSidebar:ye.collapseSidebar} (${J?"⌘":"Ctrl"} .)`,De=q?{run:q,label:ye.goHome,title:ye.goHome}:oe?null:{run:V,label:U?ye.expandSidebar:ye.collapseSidebar,title:Oe},Je=/* @__PURE__ */O(D,{children:[ue&&/* @__PURE__ */B(u,{src:ue,alt:"",slot:"compact",surface:"light",adaptive:be,hasAlpha:ge,isLight:fe,size:28,decorative:!0}),!U&&/* @__PURE__ */O("span",{className:"min-w-0 text-left leading-tight",children:[
|
|
20
|
-
/* @__PURE__ */B("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:he??"Apps"}),pe&&/* @__PURE__ */B("span",{className:"block truncate text-2xs font-medium text-gray-500",children:pe})]})]}),Qe=ve.erpSections.length>0||ve.systemSections.length>0||ve.virtualSections.length>0;/* @__PURE__ */
|
|
21
|
-
return O("aside",{"aria-label":ye.navLabel,className:"fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-gray-200 bg-white text-gray-800",style:{width:G},children:[
|
|
22
|
-
/* @__PURE__ */O("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(U?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:x},children:[De?/* @__PURE__ */B("button",{type:"button",onClick:De.run,"aria-label":De.label,title:De.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(U?"justify-center p-0.5":"-ml-1 p-1"),children:Je}):/* @__PURE__ */B("span",{className:"flex min-w-0 items-center gap-2",children:Je}),oe?/* @__PURE__ */B(b,{onClick:oe,"aria-label":ye.closeMenu,children:/* @__PURE__ */B(I,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!U&&/* @__PURE__ */B("button",{type:"button",onClick:V,"aria-label":ye.collapseSidebar,title:`${ye.collapseSidebar} (${J?"⌘":"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__ */B(X,{dir:"left"})})]}),
|
|
23
|
-
/* @__PURE__ */B("div",{className:`shrink-0 pt-3 ${Me}`,style:Be,children:U?/* @__PURE__ */B("button",{type:"button",onClick:s,"aria-label":ye.search,title:`${ye.search} (${J?"⌘K":"Ctrl K"})`,className:_(!1,!0),children:/* @__PURE__ */B(F,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */O("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-gray-200 bg-white px-3 text-left transition-colors hover:bg-gray-100",children:[
|
|
24
|
-
/* @__PURE__ */B(F,{className:"size-3.5 text-gray-500"}),
|
|
25
|
-
/* @__PURE__ */B("span",{className:"min-w-0 flex-1 truncate text-sm text-gray-500",children:ye.search}),
|
|
26
|
-
/* @__PURE__ */B("kbd",{className:"rounded border border-gray-200 bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-gray-500",children:J?"⌘K":"Ctrl K"})]})}),
|
|
27
|
-
/* @__PURE__ */O("nav",{"aria-label":ye.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${Me} ${U?"space-y-1":"space-y-0.5"}`,style:Be,children:[U&&/* @__PURE__ */B("button",{type:"button",onClick:V,"aria-label":ye.expandSidebar,title:`${ye.expandSidebar} (${J?"⌘":"Ctrl"} .)`,className:`${_(!1,!0)} mb-3`,children:/* @__PURE__ */B(X,{dir:"right"})}),ve.topItems.map(e=>{if(!U)return Ie(e,0);const t=h(e,xe),a=e.to===te||m(t,te,xe),r=e.menuLabel??e.label;/* @__PURE__ */
|
|
28
|
-
return O("div",{children:[
|
|
29
|
-
/* @__PURE__ */B("button",{type:"button",title:r,"aria-label":r,onClick:a=>{if(0===t.length)return void $e(e,a);const r=a.currentTarget.getBoundingClientRect();je(a=>a?.label===e.to?null:{label:e.to,items:t,top:r.top})},className:_(a,!0),children:Ae(e.to,ce)}),e.dividerAfter&&/* @__PURE__ */B("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.to)}),ve.topItems.length>0&&Qe&&!ve.topItems[ve.topItems.length-1].dividerAfter&&/* @__PURE__ */B("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"}),ve.erpSections.map(e=>Re(e,!1)),ve.systemSections.map(e=>Re(e,!1)),ve.virtualSections.map(e=>Re(e,!0)),ve.footerSections.length>0&&/* @__PURE__ */B("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"}),ve.footerSections.map(e=>Re(e,!1))]}),
|
|
30
|
-
/* @__PURE__ */B("div",{className:`shrink-0 border-t border-gray-200 py-2 ${Me}`,style:Be,children:/* @__PURE__ */O("button",{ref:Le,type:"button",onClick:()=>ze(e=>!e),"aria-haspopup":"menu","aria-expanded":Se,"aria-label":U?ye.accountMenu(We):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(U?"justify-center py-2":"px-2 py-2"),children:[Ke,!U&&/* @__PURE__ */O("span",{className:"min-w-0 flex-1 text-left",children:[
|
|
31
|
-
/* @__PURE__ */B("span",{className:"block truncate text-sm font-semibold text-gray-800",children:We}),re?.email&&We!==re.email&&/* @__PURE__ */B("span",{className:"block truncate text-2xs text-gray-500",children:re.email})]})]})}),Z&&!U&&!oe&&/* @__PURE__ */B(p,{side:"left",width:G,onResize:Z,min:C,max:N,defaultWidth:k,storageKey:n,label:ye.resizeSidebar}),Se&&Te&&/* @__PURE__ */O(S,{portal:!0,minWidth:224,onClose:()=>ze(!1),style:Q(G,Te,window.innerHeight),children:[U&&/* @__PURE__ */O("div",{className:"border-b border-gray-200 px-3 py-3",children:[
|
|
32
|
-
/* @__PURE__ */B("p",{className:"truncate text-sm font-semibold text-gray-800",children:We}),re?.email&&/* @__PURE__ */B("p",{className:"truncate text-xs text-gray-500",children:re.email})]}),
|
|
33
|
-
/* @__PURE__ */O(z,{onClick:()=>{ze(!1),ee("/profile",!1)},children:[
|
|
34
|
-
/* @__PURE__ */B(I,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.profile]}),ve.footerItems.map(e=>/* @__PURE__ */O(z,{onClick:()=>{ze(!1),$e(e)},children:[
|
|
35
|
-
/* @__PURE__ */B("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:ce[e.to]}),e.menuLabel??e.label]},e.to)),le&&/* @__PURE__ */O(z,{onClick:()=>{ze(!1),le()},children:[
|
|
36
|
-
/* @__PURE__ */B(I,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.reportIssue]}),
|
|
37
|
-
/* @__PURE__ */B(L,{}),ie&&/* @__PURE__ */O(D,{children:[
|
|
38
|
-
/* @__PURE__ */O(z,{onClick:()=>{ze(!1),ie()},children:[
|
|
39
|
-
/* @__PURE__ */B(I,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.switchToDesktop]}),
|
|
40
|
-
/* @__PURE__ */B(L,{})]}),
|
|
41
|
-
/* @__PURE__ */O(z,{danger:!0,onClick:()=>{ze(!1),ne()},children:[
|
|
42
|
-
/* @__PURE__ */B(I,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.signOut]})]}),we&&U&&/* @__PURE__ */B(S,{portal:!0,minWidth:220,onClose:()=>je(null),style:{left:G+g,top:Math.min(we.top,window.innerHeight-48*Math.min(we.items.length,10)-16)},children:c(we.items,xe).map((e,t)=>/* @__PURE__ */O("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */B(L,{}),e.heading&&/* @__PURE__ */B($,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */O(z,{onClick:()=>$e(e),children:[Ae(e.to,ce),
|
|
43
|
-
/* @__PURE__ */B("span",{className:e.to===te?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{Q as accountMenuPosition,G as default};
|
package/dist/chunk-7AQUUDJL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="7.70.0",a=r;export{a as APP_VERSION,r as VERSION};
|
package/dist/chunk-AA5RO6ER.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import{inputClasses as e}from"./chunk-CU3GY5Y2.js";import{isSafeLinkHref as t}from"./chunk-PJPK2ADX.js";import{useShellStrings as r}from"./chunk-2EJRVQ3Y.js";import{SpinnerRing as n}from"./chunk-2J6F4EE7.js";import{Icon as a}from"./chunk-76DRQSJM.js";import{forwardRef as s,useCallback as i,useState as l,useId as o}from"react";import{jsx as c,jsxs as d,Fragment as m}from"react/jsx-runtime";var u=s(function({invalid:t,autoGrow:r,className:n="",onInput:a,rows:s=3,size:l,readOnly:o,...d},m){const u=i(e=>{if(r){const t=e.currentTarget;t.style.height="auto",t.style.height=`${t.scrollHeight}px`}a?.(e)},[r,a]);/* @__PURE__ */
|
|
2
|
-
return c("textarea",{ref:m,"aria-invalid":t||void 0,rows:s,onInput:u,readOnly:o,className:e({invalid:t,size:l,readOnly:o,multiline:!0,className:`${r?"resize-none overflow-hidden":""} ${n}`.trim()}),...d})}),h={info:{box:"bg-blue-50 border-blue-200",icon:"text-blue-600"},success:{box:"bg-green-50 border-green-200",icon:"text-green-600"},warning:{box:"bg-amber-50 border-amber-200",icon:"text-amber-600"},danger:{box:"bg-red-50 border-red-200",icon:"text-red-600"},neutral:{box:"bg-[var(--status-neutral-soft)] border-[color:var(--line)]",icon:"text-[color:var(--status-neutral-soft-ink)]"}},p={info:"bg-blue-700 border-blue-700 text-white",success:"bg-green-700 border-green-700 text-white",warning:"bg-amber-700 border-amber-700 text-white",danger:"bg-red-700 border-red-700 text-white",neutral:"bg-[var(--status-neutral-solid)] border-[color:var(--status-neutral-solid)] text-[color:var(--status-on-solid)]"};function g({tone:e}){const t={className:"h-5 w-5","aria-hidden":!0};switch(e){case"success":/* @__PURE__ */
|
|
3
|
-
return c(a,{name:"check-circle",look:"mini",...t});case"warning":/* @__PURE__ */
|
|
4
|
-
return c(a,{name:"warning",look:"mini",...t});case"danger":/* @__PURE__ */
|
|
5
|
-
return c(a,{name:"close-circle",look:"mini",...t});default:/* @__PURE__ */
|
|
6
|
-
return c(a,{name:"info",look:"mini",...t})}}function x({tone:e="info",emphasis:t="subtle",title:n,children:s,icon:i,action:l,onDismiss:o,sticky:u=!1,className:x=""}){const b=h[e],f="solid"===t,y=r().banner,v=f?p[e]:b.box,N=u?"sticky top-0 z-30":"",k=/* @__PURE__ */d(m,{children:[n&&/* @__PURE__ */c("div",{className:("font-semibold "+(f?"":"text-gray-900")).trim(),children:n}),s&&/* @__PURE__ */c("div",{className:`${f?"":"text-gray-700"} ${n?"mt-0.5":""}`.trim(),children:s})]});/* @__PURE__ */
|
|
7
|
-
return d("div",{role:"danger"===e?"alert":"status",className:`${N} flex items-start gap-3 rounded-lg border px-4 py-3 ${v} ${x}`.trim(),children:[
|
|
8
|
-
/* @__PURE__ */c("span",{className:`mt-0.5 shrink-0 ${f?"":b.icon}`.trim(),children:i??/* @__PURE__ */c(g,{tone:e})}),null==l?/* @__PURE__ */c("div",{className:"min-w-0 flex-1 text-sm",children:k}):
|
|
9
|
-
/* @__PURE__ */d("div",{className:"flex min-w-0 flex-1 flex-wrap items-start gap-x-3 gap-y-2",children:[
|
|
10
|
-
/* @__PURE__ */c("div",{className:"min-w-0 grow basis-48 text-sm",children:k}),
|
|
11
|
-
/* @__PURE__ */c("div",{className:"shrink-0 self-center",children:l})]}),o&&/* @__PURE__ */c("button",{type:"button",onClick:o,"aria-label":y.dismiss,className:"shrink-0 "+(f?"opacity-80 hover:opacity-100":"text-gray-400 hover:text-gray-600"),children:/* @__PURE__ */c(a,{name:"close",className:"h-4 w-4",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})})]})}function b({summary:e,busy:t=!1,open:r,onOpenChange:n,label:s="Steps",className:i="",children:m}){const[u,h]=l(null),p=o(),g=r??u??t;/* @__PURE__ */
|
|
12
|
-
return d("div",{className:`text-xs text-gray-500 ${i}`.trim(),children:[
|
|
13
|
-
/* @__PURE__ */d("button",{type:"button",onClick:()=>{h(!g),n?.(!g)},"aria-expanded":g,"aria-controls":g?p:void 0,className:"flex w-full items-center gap-2 rounded text-left hover:text-gray-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-blue-600",children:[
|
|
14
|
-
/* @__PURE__ */c(a,{name:"chevron-right",size:12,className:"shrink-0 motion-safe:transition-transform "+(g?"rotate-90":"")}),
|
|
15
|
-
/* @__PURE__ */c("span",{"aria-live":"polite",className:"min-w-0 flex-1 truncate",children:e})]}),g&&/* @__PURE__ */c("ol",{id:p,"aria-label":s,className:"mt-2 ml-2 space-y-2 border-l border-gray-200 pl-3",children:m})]})}var f={pending:"text-gray-400",active:"text-gray-800",complete:"text-gray-600",failed:"text-red-600",stopped:"text-gray-500",waiting:"text-amber-700",skipped:"text-gray-400"},y={pending:"Pending",active:"In progress",complete:"Done",failed:"Failed",stopped:"Stopped",waiting:"Waiting for you",skipped:"Skipped"};function v({status:e}){switch(e){case"active":/* @__PURE__ */
|
|
16
|
-
return c(n,{className:"size-3 motion-reduce:animate-none"});case"complete":/* @__PURE__ */
|
|
17
|
-
return c(a,{name:"check-circle",size:14,tone:"success"});case"failed":/* @__PURE__ */
|
|
18
|
-
return c(a,{name:"close-circle",size:14,tone:"danger"});case"stopped":/* @__PURE__ */
|
|
19
|
-
return c(a,{name:"no-symbol",size:14,tone:"muted"});case"waiting":/* @__PURE__ */
|
|
20
|
-
return c(a,{name:"pause",size:14,tone:"warning"});case"skipped":/* @__PURE__ */
|
|
21
|
-
return c(a,{name:"remove",size:14,tone:"muted"});default:/* @__PURE__ */
|
|
22
|
-
return c("span",{className:"block size-3 rounded-full border border-gray-300"})}}function N({label:e,description:t,status:r="complete",statusWord:n,icon:a,children:s}){/* @__PURE__ */
|
|
23
|
-
return d("li",{className:`flex items-start gap-2 ${f[r]}`,"data-status":r,children:[
|
|
24
|
-
/* @__PURE__ */c("span",{"aria-hidden":"true",className:"mt-1 flex size-3.5 shrink-0 items-center justify-center",children:a??/* @__PURE__ */c(v,{status:r})}),
|
|
25
|
-
/* @__PURE__ */d("div",{className:"min-w-0 flex-1",children:[
|
|
26
|
-
/* @__PURE__ */d("span",{className:"sr-only",children:[n??y[r],": "]}),
|
|
27
|
-
/* @__PURE__ */c("div",{className:"break-words",children:e}),t&&/* @__PURE__ */c("div",{className:"break-words text-gray-500",children:t}),s&&/* @__PURE__ */c("div",{className:"mt-1",children:s})]})]})}var k=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`|\*([^*]+)\*/g,w=e=>t(e.trim());function $(e){const t=[];let r,n=0,a=0;for(k.lastIndex=0;null!==(r=k.exec(e));)r.index>n&&t.push(e.slice(n,r.index)),void 0!==r[1]?t.push(
|
|
28
|
-
/* @__PURE__ */d("span",{className:"text-gray-400",children:["[",r[1],"]"]},a++)):void 0!==r[3]?t.push(
|
|
29
|
-
/* @__PURE__ */c("a",{href:w(r[4])?r[4]:void 0,target:"_blank",rel:"noreferrer",className:"text-blue-600 hover:underline",children:r[3]},a++)):void 0!==r[5]?t.push(
|
|
30
|
-
/* @__PURE__ */c("strong",{className:"font-semibold text-gray-900",children:r[5]},a++)):void 0!==r[6]?t.push(
|
|
31
|
-
/* @__PURE__ */c("code",{className:"rounded bg-gray-200 px-1 py-0.5 font-mono text-[0.85em] text-gray-800",children:r[6]},a++)):void 0!==r[7]&&t.push(/* @__PURE__ */c("em",{children:r[7]},a++)),n=k.lastIndex;return n<e.length&&t.push(e.slice(n)),t}function z({alt:e}){const t=e.replace(/^screenshot:\s*/i,""),n=r().markdown;/* @__PURE__ */
|
|
32
|
-
return d("div",{className:"my-1 flex items-start gap-2 rounded-lg border border-dashed border-gray-300 bg-gray-50 px-3 py-3 text-gray-500",children:[
|
|
33
|
-
/* @__PURE__ */c(a,{name:"camera",look:"mini",className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),
|
|
34
|
-
/* @__PURE__ */d("span",{className:"text-xs",children:[
|
|
35
|
-
/* @__PURE__ */c("span",{className:"font-medium text-gray-600",children:`${n.screenshot} — `}),t]})]})}function j(e,t){const r=[];for(const n of e){const e=t.exec(n);e?r.push(e[1]):r.length&&(r[r.length-1]+=" "+n.trim())}return r}var I=e=>e.replace(/^\s*\|/,"").replace(/\|\s*$/,"").split("|").map(e=>e.trim());function C(e,t){const r=e.split("\n"),n=r[0],a=/^(#{2,4})\s+(.*)$/.exec(n);if(a&&1===r.length){const e=a[1].length;/* @__PURE__ */
|
|
36
|
-
return c(`h${e}`,{className:2===e?"mt-2 text-sm font-semibold uppercase tracking-wide text-gray-500":3===e?"mt-1 text-base font-semibold text-gray-900":"mt-1 text-sm font-semibold text-gray-900",children:$(a[2])},t)}if(1===r.length&&/^---+$/.test(n))/* @__PURE__ */
|
|
37
|
-
return c("hr",{className:"border-gray-200"},t);if(function(e){return e.length>=2&&e[0].includes("|")&&/^\s*\|?[\s:|-]*-[\s:|-]*\|?\s*$/.test(e[1])&&e[1].includes("-")}(r))return function(e,t){const r=I(e[0]),n=e.slice(2).map(I);/* @__PURE__ */
|
|
38
|
-
return c("div",{className:"my-1 overflow-x-auto rounded-lg border border-gray-200",children:/* @__PURE__ */d("table",{className:"w-full border-collapse text-sm",children:[
|
|
39
|
-
/* @__PURE__ */c("thead",{children:/* @__PURE__ */c("tr",{className:"bg-gray-50",children:r.map((e,t)=>/* @__PURE__ */c("th",{className:"border-b border-gray-200 px-3 py-2 text-left font-semibold text-gray-700",children:$(e)},t))})}),
|
|
40
|
-
/* @__PURE__ */c("tbody",{children:n.map((e,t)=>/* @__PURE__ */c("tr",{className:"even:bg-gray-50/50",children:e.map((e,t)=>/* @__PURE__ */c("td",{className:"border-t border-gray-100 px-3 h-8 align-top text-gray-700",children:$(e)},t))},t))})]})},t)}(r,t);if(/^>\s?/.test(n)){const e=r.map(e=>e.replace(/^>\s?/,"")).join(" ");/* @__PURE__ */
|
|
41
|
-
return c("div",{className:"my-1 rounded-r-lg border-l-4 border-blue-300 bg-blue-50/60 px-3 py-2 text-gray-700",children:$(e)},t)}const s=/^!\[([^\]]*)\]\(([^)]+)\)$/.exec(n);if(s&&1===r.length)/* @__PURE__ */
|
|
42
|
-
return c(z,{alt:s[1]},t);if(/^[-*]\s+/.test(n)){const e=j(r,/^[-*]\s+(.*)$/);/* @__PURE__ */
|
|
43
|
-
return c("ul",{className:"list-disc space-y-1 pl-5 marker:text-gray-400",children:e.map((e,t)=>/* @__PURE__ */c("li",{children:$(e)},t))},t)}const i=/^(\d+)\.\s+/.exec(n);if(i){const e=j(r,/^\d+\.\s+(.*)$/);/* @__PURE__ */
|
|
44
|
-
return c("ol",{start:Number(i[1]),className:"list-decimal space-y-1 pl-5 marker:text-gray-400",children:e.map((e,t)=>/* @__PURE__ */c("li",{className:"pl-1",children:$(e)},t))},t)}/* @__PURE__ */
|
|
45
|
-
return c("p",{children:$(r.join(" "))},t)}var D=/^( {0,3})(`{3,}|~{3,})[ \t]*(.*?)[ \t]*$/;function E(e){const t=e.replace(/\r\n/g,"\n").split("\n"),r=[];let n=[];const a=()=>{for(const e of n.join("\n").split(/\n{2,}/)){const t=e.replace(/\s+$/,"");""!==t.trim()&&r.push({text:t})}n=[]};for(let e=0;e<t.length;e+=1){const s=D.exec(t[e]);if(!(null!==s&&!("`"===s[2][0]&&s[3].includes("`")))){n.push(t[e]);continue}a();const[,i,l,o]=s,c=[];for(e+=1;e<t.length;e+=1){const r=D.exec(t[e]);if(null!==r&&r[2][0]===l[0]&&r[2].length>=l.length&&""===r[3])break;c.push(i?t[e].replace(new RegExp(`^ {0,${i.length}}`),""):t[e])}r.push({fence:{lang:o.split(/[ \t]/)[0],code:c.join("\n")}})}return a(),r}function J({children:e,className:t}){/* @__PURE__ */
|
|
46
|
-
return c("div",{className:`space-y-3 text-sm leading-relaxed text-gray-700 ${t??""}`.trim(),children:E(e??"").map((e,t)=>"fence"in e?function({lang:e,code:t},r){/* @__PURE__ */
|
|
47
|
-
return c("pre",{"data-language":e||void 0,className:"my-1 overflow-x-auto rounded-lg border border-gray-200 bg-gray-50 p-3 font-mono text-xs text-gray-800",children:/* @__PURE__ */c("code",{children:t})},r)}(e.fence,t):C(e.text,t))})}export{x as Banner,J as Markdown,b as StepChain,N as StepChainItem,u as Textarea_default};
|
package/dist/chunk-DELNCIUK.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{isAriaDisabled as e,swallowPress as a,describedByWith as r,OffWithReason as i}from"./chunk-RDLWLATO.js";import{buttonClasses as s}from"./chunk-K7PQXJO7.js";import{SpinnerRing as l}from"./chunk-2J6F4EE7.js";import{forwardRef as d,useId as n}from"react";import{jsxs as t,jsx as c}from"react/jsx-runtime";var o=d(function({variant:d="primary",size:o="md",loading:m=!1,leftIcon:p,rightIcon:b,block:f=!1,disabled:u,type:h="button",children:k,className:x="",disabledReason:y,onClick:N,pressed:v,"aria-disabled":g,"aria-describedby":j,...w},z){const C=n(),E=u||m,I=null!=y&&""!==y,J=E&&I,L=!E&&e(g),O=L&&I,R=J||O?C:void 0,A=/* @__PURE__ */t("button",{ref:z,type:h,disabled:E,"aria-busy":m||void 0,"aria-disabled":!!L||g,"aria-describedby":r(j,R),onClick:L?a:N,className:s({variant:d,size:o,block:f,pressed:v??(!0===w["aria-pressed"]||"true"===w["aria-pressed"]),className:x}),...w,children:[m?/* @__PURE__ */c(l,{className:"h-3.5 w-3.5",ink:""}):p,k,!m&&b]});return O?/* @__PURE__ */c(i,{reason:y,id:C,block:f,children:A}):J?/* @__PURE__ */t("span",{className:f?"flex w-full flex-col gap-1":"inline-flex flex-col items-start gap-1",children:[A,
|
|
2
|
-
/* @__PURE__ */c("span",{id:R,className:"text-xs text-red-600",children:y})]}):A});export{o as Button_default};
|