efficient-shell 4.157.0 → 4.159.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 +29 -4
- package/dist/{Browser-PP7VID3N.js → Browser-OQCHLKM3.js} +12 -12
- package/dist/{Calculator-5DF4PSEG.js → Calculator-YBL65JNM.js} +22 -22
- package/dist/{CurrencyConverter-BEI6UUDD.js → CurrencyConverter-6VFY4GF6.js} +7 -7
- package/dist/{Documents-CP2XWF7D.js → Documents-IPXRU4CT.js} +12 -12
- package/dist/Files-3MGL4ZT7.js +89 -0
- package/dist/Notepad-RJ2DYW2O.js +25 -0
- package/dist/{PomodoroTimer-3BDFGHC6.js → PomodoroTimer-6OQ33FY3.js} +26 -26
- package/dist/{Preview-5ANRQG57.js → Preview-3WRPZWDU.js} +13 -13
- package/dist/{Sidebar-H6R3AK5G.js → Sidebar-FUPFF7BT.js} +23 -23
- package/dist/{Spreadsheet-SRQT2MJP.js → Spreadsheet-6NK53IZV.js} +13 -13
- package/dist/{Stock-PEZB3WXV.js → Stock-ZFLDG6TT.js} +3 -3
- package/dist/{Weather-6EJFJQIX.js → Weather-BBPTXGQA.js} +17 -17
- package/dist/{WorldClock-5BMGEL2A.js → WorldClock-CQGQ2Y6N.js} +6 -6
- package/dist/apps/index.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/{chunk-ELCH5NDO.js → chunk-CK245P3T.js} +4 -4
- package/dist/{chunk-XC64WV33.js → chunk-DLD4AKVT.js} +36 -36
- package/dist/{chunk-ZHPA74NY.js → chunk-EI4WZOP3.js} +1 -1
- package/dist/chunk-J7AAGG7P.js +942 -0
- package/dist/chunk-L4KRS7N3.js +1 -0
- package/dist/{chunk-DRN636EP.js → chunk-M4AKWGQM.js} +1 -1
- package/dist/chunk-S2AZZGFF.js +1 -0
- package/dist/chunk-VNEH2Y6H.js +9 -0
- package/dist/{chunk-LGDG4YMF.js → chunk-VRW5JNMR.js} +6 -6
- package/dist/{chunk-KAESEFKM.js → chunk-Z3LPT4HB.js} +1 -1
- package/dist/format/index.d.ts +1 -0
- package/dist/format/index.js +1 -0
- package/dist/{index-Cap9oGrA.d.ts → index-D0K5U1Pb.d.ts} +41 -41
- package/dist/index-DCUzlKPZ.d.ts +194 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +645 -645
- package/dist/page-tabs/index.js +5 -5
- package/dist/ui/index.d.ts +2 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui.css +7 -0
- package/package.json +6 -1
- package/dist/Files-ZSAHZBB5.js +0 -89
- package/dist/Notepad-AUHWLOXO.js +0 -25
- package/dist/chunk-ARMUS5GB.js +0 -1
- package/dist/chunk-J7LKJIZC.js +0 -9
- package/dist/chunk-WWRFM2YF.js +0 -940
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{glassStyle as e}from"./chunk-
|
|
1
|
+
import{glassStyle as e}from"./chunk-VNEH2Y6H.js";import{useDismissPopupsOnOpen as r,Z_LAYERS as t}from"./chunk-OSJ3ADF2.js";import{useShellStrings as a}from"./chunk-VVI77XNV.js";import{useState as n,useEffect as l,useRef as o,useCallback as s}from"react";import{jsx as i,jsxs as d}from"react/jsx-runtime";import{createPortal as c}from"react-dom";var m={favicon:"h-8 w-8",compact:"h-10 w-10",wordmark:"h-10 w-40"};function h(e){return e.trim().charAt(0).toLocaleUpperCase()||"·"}function p(e,r,t){return!1===e?"framed":null==e||null==r?"plate-light":r?"light"===t?"plate-dark":"bare":"dark"===t?"plate-light":"bare"}var u={"plate-light":"bg-white shadow-[0_2px_12px_var(--rosh-mark-plate-shadow)]","plate-dark":"bg-neutral-900 shadow-[0_2px_12px_var(--rosh-mark-plate-shadow-strong)]",framed:"border border-black/10 shadow-[0_2px_12px_var(--rosh-mark-plate-shadow)]",bare:""};function g(e,r,t){return"bare"===e?{}:"framed"===e?{borderRadius:r}:{borderRadius:r,padding:t}}function x({src:e,fallbackSrc:r,fallbackHasAlpha:t=null,fallbackIsLight:a=null,fallbackAdaptive:o,alt:s,slot:d="compact",surface:c="light",size:x,width:b,height:f,decorative:y=!1,fallbackMode:v="monogram",adaptive:k=!1,hasAlpha:w=null,isLight:N=null,treatmentPadding:j=4,treatmentRadius:E=8,className:L="",style:C}){const[_,A]=n(e||r||"");l(()=>{A(e||r||"")},[e,r]);const $=Boolean(r&&_===r&&_!==e),D=($?o??k:k)?p($?t:w,$?a:N,c):"bare",B=["inline-flex shrink-0 items-center justify-center overflow-hidden",null==x&&null==b&&null==f?m[d]:"","dark"===c?"text-white":"text-gray-700",u[D],L].filter(Boolean).join(" "),K={...g(D,E,j),...null==x?{width:b,height:f}:{width:x,height:x},...C};return _?/* @__PURE__ */i("span",{className:B,"data-brand-treatment":D,style:K,children:/* @__PURE__ */i("img",{src:_,alt:y?"":s,"data-brand-slot":d,className:"block max-h-full max-w-full",style:{objectFit:"contain"},onError:()=>A(e=>r&&e!==r?r:"")})}):"none"===v?null:/* @__PURE__ */i("span",{"data-brand-fallback":!0,"data-brand-slot":d,"aria-label":y?void 0:s,"aria-hidden":y||void 0,role:y?void 0:"img",className:`${B} rounded-md bg-gray-100 font-semibold`,style:K,children:y?null:h(s)})}var b="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z",f="react-os-shell:open-global-search";function y(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(f))}function v({providers:m,typeIcons:h,placeholder:p,onSelect:u}={}){const g=a().search,x=p??g.placeholder,[y,v]=n(!1),[k,w]=n(""),[N,j]=n([]),[E,L]=n(!1),[C,_]=n(0),A=o(null),$=o();l(()=>{const e=e=>{(e.ctrlKey||e.metaKey)&&"k"===e.key&&(e.preventDefault(),v(e=>!e)),"Escape"===e.key&&y&&v(!1)},r=()=>v(!0);return window.addEventListener("keydown",e),window.addEventListener(f,r),()=>{window.removeEventListener("keydown",e),window.removeEventListener(f,r)}},[y]),r(y),l(()=>{y?setTimeout(()=>A.current?.focus(),50):(w(""),j([]))},[y]),l(()=>{if($.current&&clearTimeout($.current),k.length<2)j([]);else{if(m&&0!==m.length)return $.current=setTimeout(async()=>{L(!0);try{const e=await Promise.all(m.map(e=>e(k).catch(()=>[])));j(e.flat()),_(0)}catch{j([])}L(!1)},250),()=>{$.current&&clearTimeout($.current)};j([])}},[k,m]);const D=s(e=>{v(!1),u?.(e)},[u]);return y?c(
|
|
2
2
|
/* @__PURE__ */d("div",{"data-global-search":"",className:"fixed inset-0 flex items-start justify-center pt-[15vh]",style:{zIndex:t.overlay},onClick:()=>v(!1),children:[
|
|
3
3
|
/* @__PURE__ */i("div",{"data-global-search-backdrop":"",className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),
|
|
4
4
|
/* @__PURE__ */d("div",{className:"relative z-10 w-full max-w-xl rounded-2xl overflow-hidden",onClick:e=>e.stopPropagation(),style:e(),children:[
|
|
5
5
|
/* @__PURE__ */d("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-200",children:[
|
|
6
6
|
/* @__PURE__ */i("svg",{className:"h-5 w-5 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */i("path",{strokeLinecap:"round",strokeLinejoin:"round",d:b})}),
|
|
7
|
-
/* @__PURE__ */i("input",{ref:A,type:"text",value:k,onChange:e=>w(e.target.value),onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),_(e=>Math.min(e+1,N.length-1))):"ArrowUp"===e.key?(e.preventDefault(),_(e=>Math.max(e-1,0))):"Enter"===e.key&&N[
|
|
7
|
+
/* @__PURE__ */i("input",{ref:A,type:"text",value:k,onChange:e=>w(e.target.value),onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),_(e=>Math.min(e+1,N.length-1))):"ArrowUp"===e.key?(e.preventDefault(),_(e=>Math.max(e-1,0))):"Enter"===e.key&&N[C]&&D(N[C])},placeholder:x,className:"flex-1 text-sm bg-transparent border-0 rosh-focus-ring placeholder-gray-400"}),
|
|
8
8
|
/* @__PURE__ */i("kbd",{className:"hidden sm:inline-flex items-center rounded border border-gray-300 px-1.5 py-0.5 text-[10px] font-medium text-gray-400",children:g.escBadge})]}),
|
|
9
|
-
/* @__PURE__ */d("div",{className:"max-h-[50vh] overflow-y-auto",children:[
|
|
9
|
+
/* @__PURE__ */d("div",{className:"max-h-[50vh] overflow-y-auto",children:[E&&/* @__PURE__ */i("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:g.searching}),!E&&k.length>=2&&0===N.length&&/* @__PURE__ */i("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:g.noResults}),!E&&N.length>0&&/* @__PURE__ */i("ul",{className:"py-2",children:N.map((e,r)=>/* @__PURE__ */i("li",{children:/* @__PURE__ */d("button",{className:"flex items-center gap-3 w-full px-4 py-2.5 text-left transition-colors "+(r===C?"bg-blue-50":"hover:bg-gray-50"),onClick:()=>D(e),onMouseEnter:()=>_(r),children:[
|
|
10
10
|
/* @__PURE__ */i("svg",{className:"h-4 w-4 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */i("path",{strokeLinecap:"round",strokeLinejoin:"round",d:h?.[e.type]||b})}),
|
|
11
11
|
/* @__PURE__ */d("div",{className:"flex-1 min-w-0",children:[
|
|
12
12
|
/* @__PURE__ */i("p",{className:"text-sm font-medium text-gray-900 truncate",children:e.label}),e.sub&&/* @__PURE__ */i("p",{className:"text-xs text-gray-400 truncate",children:e.sub})]}),
|
|
13
|
-
/* @__PURE__ */i("span",{className:"shrink-0 rounded-full bg-gray-100 px-2 py-0.5 text-[10px] font-medium text-gray-500",children:e.type})]})},`${e.type}-${e.label}-${r}`))}),!
|
|
13
|
+
/* @__PURE__ */i("span",{className:"shrink-0 rounded-full bg-gray-100 px-2 py-0.5 text-[10px] font-medium text-gray-500",children:e.type})]})},`${e.type}-${e.label}-${r}`))}),!E&&k.length<2&&/* @__PURE__ */i("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:g.minChars(2)})]}),
|
|
14
14
|
/* @__PURE__ */d("div",{className:"flex items-center justify-between px-4 py-2 border-t border-gray-100 bg-gray-50 text-[11px] text-gray-400",children:[
|
|
15
15
|
/* @__PURE__ */d("div",{className:"flex items-center gap-3",children:[
|
|
16
16
|
/* @__PURE__ */d("span",{className:"flex items-center gap-1",children:[
|