efficient-shell 7.21.0 → 7.22.1

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.
Files changed (80) hide show
  1. package/README.md +47 -0
  2. package/dist/{Browser-CMG4E355.js → Browser-CHVGSLN7.js} +15 -15
  3. package/dist/{Calculator-QLVWIU4C.js → Calculator-RKOELZ6W.js} +12 -12
  4. package/dist/ConfirmDialog-JSVEON35.js +1 -0
  5. package/dist/{CurrencyConverter-7UT6W5OA.js → CurrencyConverter-PLQ664ZV.js} +9 -9
  6. package/dist/{Documents-3HI2X2CW.js → Documents-CKQCMALX.js} +15 -15
  7. package/dist/{Files-R25E77W4.js → Files-XSUFZ7ZR.js} +80 -80
  8. package/dist/{Notepad-XMDF3VX7.js → Notepad-3EGD2WCN.js} +11 -11
  9. package/dist/PdfViewer-VIX2NDCO.js +1 -0
  10. package/dist/PomodoroTimer-N7L7HBYO.js +91 -0
  11. package/dist/{Preview-VQOOKLO5.js → Preview-RRXQS5BI.js} +25 -25
  12. package/dist/Sidebar-77VZQLKP.js +44 -0
  13. package/dist/{Spreadsheet-25C2SXPH.js → Spreadsheet-X677FCIY.js} +14 -14
  14. package/dist/{Stock-5RQ2JXWL.js → Stock-UOPST3LH.js} +7 -7
  15. package/dist/{Weather-3AMX2QSU.js → Weather-HXZK2AYT.js} +17 -17
  16. package/dist/{WorldClock-JNHPO3ZQ.js → WorldClock-MCDW7P6Q.js} +6 -6
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/ui-check.js +1 -1
  19. package/dist/brand.css +1 -1
  20. package/dist/chunk-4EIZZYLK.js +1 -0
  21. package/dist/{chunk-7LRJBINZ.js → chunk-4M7DEG4E.js} +32 -32
  22. package/dist/chunk-5VNBEMZQ.js +1 -0
  23. package/dist/{chunk-RBKIYZ7H.js → chunk-6J7HKGHL.js} +1 -1
  24. package/dist/{chunk-ITCBLL72.js → chunk-AKEMYW3H.js} +2 -2
  25. package/dist/{chunk-Z2TTHY7G.js → chunk-ARB5MUWA.js} +1 -1
  26. package/dist/{chunk-BVYOUFSW.js → chunk-AV5XPUKR.js} +9 -9
  27. package/dist/{chunk-ZGUQLVY4.js → chunk-B427NVDP.js} +28 -12
  28. package/dist/{chunk-Y6KFHPIP.js → chunk-BZD3UC4R.js} +1 -1
  29. package/dist/{chunk-BQ7GR7H6.js → chunk-E7WPTZE3.js} +11 -11
  30. package/dist/{chunk-RUHUTZN4.js → chunk-EA7QO447.js} +1 -1
  31. package/dist/{chunk-JQRIAZDP.js → chunk-FM6TPY42.js} +30 -30
  32. package/dist/{chunk-SCJT2XXU.js → chunk-FS27CODA.js} +1 -1
  33. package/dist/{chunk-IQDY2YFN.js → chunk-GNW45MGV.js} +10 -10
  34. package/dist/{chunk-OA7DQ77U.js → chunk-J65OSKCY.js} +493 -486
  35. package/dist/chunk-K7PQXJO7.js +1 -0
  36. package/dist/{chunk-GNCH3JEH.js → chunk-MBHQQFSZ.js} +7 -7
  37. package/dist/{chunk-5V3IFQ7F.js → chunk-MRE4Y2YJ.js} +1 -1
  38. package/dist/{chunk-7HLTPMQV.js → chunk-MZHH3MC7.js} +1 -1
  39. package/dist/{chunk-M4TRVJTO.js → chunk-N2OO2ZYF.js} +1 -1
  40. package/dist/{chunk-B4PGVDB6.js → chunk-OALCYDHN.js} +1 -1
  41. package/dist/{chunk-ZAKN5MPN.js → chunk-OFHMRWST.js} +1 -1
  42. package/dist/{chunk-FTJ2G343.js → chunk-ONDFYXHG.js} +13 -13
  43. package/dist/{chunk-VOFDPOB6.js → chunk-RVPQRXC4.js} +1 -1
  44. package/dist/{chunk-IJ7RXIWX.js → chunk-SZTKBF3D.js} +8 -8
  45. package/dist/{chunk-KBOYLXAT.js → chunk-TTUVL25O.js} +1 -1
  46. package/dist/{chunk-76VCH7N6.js → chunk-XFE43ZU5.js} +19 -19
  47. package/dist/{chunk-XN7CAWSZ.js → chunk-Y6UUDJNU.js} +2 -2
  48. package/dist/{chunk-HMCE2MKM.js → chunk-Y7T3OW2A.js} +1 -1
  49. package/dist/{chunk-ZRU5F2XT.js → chunk-ZMQ3GBEX.js} +4 -4
  50. package/dist/{chunk-GIWC2ZTG.js → chunk-ZU47TGM3.js} +2 -2
  51. package/dist/file-intake/index.js +1 -1
  52. package/dist/i18n/index.d.ts +1 -1
  53. package/dist/icons/efficient-looks.js +189 -177
  54. package/dist/icons/efficient.d.ts +16 -1
  55. package/dist/icons/efficient.js +92 -86
  56. package/dist/icons/index.d.ts +1 -1
  57. package/dist/icons/index.js +1 -1
  58. package/dist/{index-DbNqOkOy.d.ts → index-CMwbvwiY.d.ts} +73 -2
  59. package/dist/index.d.ts +3 -3
  60. package/dist/index.js +119 -119
  61. package/dist/locales/zh-Hans.d.ts +1 -1
  62. package/dist/locales/zh-Hans.js +1 -1
  63. package/dist/map/index.js +8 -8
  64. package/dist/markdown/index.js +1 -1
  65. package/dist/page-tabs/index.js +5 -5
  66. package/dist/pdf/index.js +1 -1
  67. package/dist/{strings-BQtq9300.d.ts → strings-BfHOx-Bl.d.ts} +26 -0
  68. package/dist/telemetry/index.js +1 -1
  69. package/dist/themes.css +20 -20
  70. package/dist/ui/index.d.ts +2 -2
  71. package/dist/ui/index.js +1 -1
  72. package/dist/ui.css +122 -7
  73. package/package.json +1 -1
  74. package/dist/ConfirmDialog-AVFQGXKL.js +0 -1
  75. package/dist/PdfViewer-PHABUM7K.js +0 -1
  76. package/dist/PomodoroTimer-3OJYMVX7.js +0 -91
  77. package/dist/Sidebar-PYURV2S2.js +0 -44
  78. package/dist/chunk-JTNKC4CR.js +0 -1
  79. package/dist/chunk-QRCDQPJA.js +0 -1
  80. package/dist/chunk-YLWIEEDW.js +0 -1
@@ -1,5 +1,5 @@
1
- import{Tooltip as e}from"./chunk-IJ7RXIWX.js";import{useBrowserLayoutEffect as r,useBrowserState as t}from"./chunk-D65T4H6J.js";import{useShellStrings as o}from"./chunk-QRCDQPJA.js";import{useRef as n,useEffect as i,useCallback as l}from"react";import{jsx as s,jsxs as a,Fragment as c}from"react/jsx-runtime";var u=(e,r,t)=>Math.min(t,Math.max(r,e));function d(e,r,t,o,n){return Math.round(u("left"===t||"top"===t?e+r:e-r,o,n))}function h(e,r,t){let o=null;try{o=window.localStorage.getItem(e)}catch{return null}const n=o?parseInt(o,10):NaN;return Number.isNaN(n)?null:u(n,r,t)}function f({width:t,onResize:a,orientation:c="vertical",side:f,min:m,max:v,defaultWidth:g=m,step:b=16,storageKey:p,label:w,hint:x,controls:y,className:z=""}){const N="horizontal"===c,k=o().resizeHandle,P=n(null),$=n({onResize:a,min:m,max:v,side:f});$.current={onResize:a,min:m,max:v,side:f},r(()=>{if(!p)return;const e=h(p,m,v);null!==e&&e!==t&&a(e)},[p]),i(()=>{if(!p)return;const e=window.setTimeout(()=>{try{window.localStorage.setItem(p,String(Math.round(t)))}catch{}},200);return()=>window.clearTimeout(e)},[t,p]);const C=l(()=>{P.current=null,document.body.style.removeProperty("cursor"),document.body.style.removeProperty("user-select")},[]);i(()=>C,[C]);const M=e=>{P.current&&(e.currentTarget.hasPointerCapture?.(P.current.pointer)&&e.currentTarget.releasePointerCapture(P.current.pointer),C())},D="left"===f?"right-0":"right"===f?"left-0":"top"===f?"bottom-0":"top-0",I="left"===f?"right":"right"===f?"left":"top"===f?"bottom":"top",R=N?`absolute inset-x-0 ${D} z-10 flex h-2`:`absolute inset-y-0 ${D} z-10 flex w-2`;/* @__PURE__ */
2
- return s(e,{content:x??k.hint,side:I,delay:600,className:`${R} ${z}`.trim(),children:/* @__PURE__ */s("div",{role:"separator",tabIndex:0,"aria-orientation":c,"aria-label":w??k.label,"aria-valuenow":Math.round(t),"aria-valuemin":m,"aria-valuemax":v,"aria-controls":y,"data-resize-handle":f,onPointerDown:e=>{0===e.button&&(e.preventDefault(),P.current={x:N?e.clientY:e.clientX,width:t,moved:!1,pointer:e.pointerId},e.currentTarget.setPointerCapture?.(e.pointerId),document.body.style.cursor=N?"row-resize":"col-resize",document.body.style.userSelect="none")},onPointerMove:e=>{const r=P.current;if(!r)return;if(0===e.buttons)return void C();const t=(N?e.clientY:e.clientX)-r.x;if(!r.moved){if(Math.abs(t)<3)return;r.moved=!0}const{onResize:o,min:n,max:i,side:l}=$.current;o(d(r.width,t,l,n,i))},onPointerUp:M,onPointerCancel:M,onLostPointerCapture:()=>{P.current&&C()},onDoubleClick:()=>a(u(g,m,v)),onKeyDown:e=>{const r=N?"ArrowDown":"ArrowRight",o=N?"ArrowUp":"ArrowLeft",n=e.key===r?b:e.key===o?-b:null,i=null!==n?d(t,n,f,m,v):"Home"===e.key?m:"End"===e.key?v:"Enter"===e.key?u(g,m,v):null;null!==i&&(e.preventDefault(),i!==t&&a(i))},className:N?"group/resize relative h-full w-full cursor-row-resize touch-none rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]":"group/resize relative h-full w-full cursor-col-resize touch-none rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */s("div",{"aria-hidden":"true",className:N?`absolute inset-x-0 ${D} h-px bg-transparent transition-colors group-hover/resize:bg-[var(--accent-500,var(--rosh-resize-handle))] group-focus-visible/resize:h-0.5 group-focus-visible/resize:bg-[var(--accent-500,var(--rosh-resize-handle))]`:`absolute inset-y-0 ${D} w-px bg-transparent transition-colors group-hover/resize:bg-[var(--accent-500,var(--rosh-resize-handle))] group-focus-visible/resize:w-0.5 group-focus-visible/resize:bg-[var(--accent-500,var(--rosh-resize-handle))]`})})})}var m=(e,r,t)=>Math.min(Math.max(e,r),t);function v({sidebar:e,sidebarTop:r,sidebarBottom:n,children:i,side:l="left",storageKey:u,defaultWidth:d=256,minWidth:v=180,maxWidth:g=480,className:b="",sidebarClassName:p=("right"===l?"border-l border-gray-200 bg-gray-50":"border-r border-gray-200 bg-gray-50"),contentClassName:w="bg-white"}){const x="right"===l,y=o().sidebar,[z,N]=t(()=>(u?h(u,v,g):null)??m(d,v,g),m(d,v,g)),k=null!=r||null!=n,P=/* @__PURE__ */a("div",{className:"relative flex h-full shrink-0 flex-col",style:{width:z},children:[
1
+ import{Tooltip as e}from"./chunk-SZTKBF3D.js";import{useBrowserLayoutEffect as r,useBrowserState as t}from"./chunk-D65T4H6J.js";import{useShellStrings as o}from"./chunk-4EIZZYLK.js";import{useRef as n,useEffect as i,useCallback as l}from"react";import{jsx as s,jsxs as a,Fragment as c}from"react/jsx-runtime";var u=(e,r,t)=>Math.min(t,Math.max(r,e));function d(e,r,t,o,n){return Math.round(u("left"===t||"top"===t?e+r:e-r,o,n))}function h(e,r,t){let o=null;try{o=window.localStorage.getItem(e)}catch{return null}const n=o?parseInt(o,10):NaN;return Number.isNaN(n)?null:u(n,r,t)}function f({width:t,onResize:a,orientation:c="vertical",side:f,min:m,max:v,defaultWidth:g=m,step:b=16,storageKey:p,label:w,hint:x,controls:y,className:z=""}){const N="horizontal"===c,k=o().resizeHandle,P=n(null),$=n({onResize:a,min:m,max:v,side:f});$.current={onResize:a,min:m,max:v,side:f},r(()=>{if(!p)return;const e=h(p,m,v);null!==e&&e!==t&&a(e)},[p]),i(()=>{if(!p)return;const e=window.setTimeout(()=>{try{window.localStorage.setItem(p,String(Math.round(t)))}catch{}},200);return()=>window.clearTimeout(e)},[t,p]);const M=l(()=>{P.current=null,document.body.style.removeProperty("cursor"),document.body.style.removeProperty("user-select")},[]);i(()=>M,[M]);const C=e=>{P.current&&(e.currentTarget.hasPointerCapture?.(P.current.pointer)&&e.currentTarget.releasePointerCapture(P.current.pointer),M())},D="left"===f?"right-0":"right"===f?"left-0":"top"===f?"bottom-0":"top-0",T="left"===f?"right":"right"===f?"left":"top"===f?"bottom":"top",I=N?`absolute inset-x-0 ${D} z-10 flex h-2`:`absolute inset-y-0 ${D} z-10 flex w-2`;/* @__PURE__ */
2
+ return s(e,{content:x??k.hint,side:T,delay:600,className:`${I} ${z}`.trim(),children:/* @__PURE__ */s("div",{role:"separator",tabIndex:0,"aria-orientation":c,"aria-label":w??k.label,"aria-valuenow":Math.round(t),"aria-valuemin":m,"aria-valuemax":v,"aria-controls":y,"data-resize-handle":f,onPointerDown:e=>{0===e.button&&(e.preventDefault(),P.current={x:N?e.clientY:e.clientX,width:t,moved:!1,pointer:e.pointerId},e.currentTarget.setPointerCapture?.(e.pointerId),document.body.style.cursor=N?"row-resize":"col-resize",document.body.style.userSelect="none")},onPointerMove:e=>{const r=P.current;if(!r)return;if(0===e.buttons)return void M();const t=(N?e.clientY:e.clientX)-r.x;if(!r.moved){if(Math.abs(t)<3)return;r.moved=!0}const{onResize:o,min:n,max:i,side:l}=$.current;o(d(r.width,t,l,n,i))},onPointerUp:C,onPointerCancel:C,onLostPointerCapture:()=>{P.current&&M()},onDoubleClick:()=>a(u(g,m,v)),onKeyDown:e=>{const r=N?"ArrowDown":"ArrowRight",o=N?"ArrowUp":"ArrowLeft",n=e.key===r?b:e.key===o?-b:null,i=null!==n?d(t,n,f,m,v):"Home"===e.key?m:"End"===e.key?v:"Enter"===e.key?u(g,m,v):null;null!==i&&(e.preventDefault(),i!==t&&a(i))},className:N?"group/resize relative h-full w-full cursor-row-resize touch-none rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]":"group/resize relative h-full w-full cursor-col-resize touch-none rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */s("div",{"aria-hidden":"true",className:N?`absolute inset-x-0 ${D} h-px bg-transparent transition-colors group-hover/resize:bg-[var(--accent-500,var(--rosh-resize-handle))] group-focus-visible/resize:h-0.5 group-focus-visible/resize:bg-[var(--accent-500,var(--rosh-resize-handle))]`:`absolute inset-y-0 ${D} w-px bg-transparent transition-colors group-hover/resize:bg-[var(--accent-500,var(--rosh-resize-handle))] group-focus-visible/resize:w-0.5 group-focus-visible/resize:bg-[var(--accent-500,var(--rosh-resize-handle))]`})})})}var m=(e,r,t)=>Math.min(Math.max(e,r),t);function v({sidebar:e,sidebarTop:r,sidebarBottom:n,children:i,side:l="left",storageKey:u,defaultWidth:d=256,minWidth:v=180,maxWidth:g=480,className:b="",sidebarClassName:p=("right"===l?"border-l border-gray-200 bg-gray-50":"border-r border-gray-200 bg-gray-50"),contentClassName:w="bg-white"}){const x="right"===l,y=o().sidebar,[z,N]=t(()=>(u?h(u,v,g):null)??m(d,v,g),m(d,v,g)),k=null!=r||null!=n,P=/* @__PURE__ */a("div",{className:"relative flex h-full shrink-0 flex-col",style:{width:z},children:[
3
3
  /* @__PURE__ */a("div",{className:`flex h-full flex-col ${k?"overflow-hidden":"overflow-y-auto"} ${p}`,children:[null!=r&&/* @__PURE__ */s("div",{className:"flex shrink-0 flex-col gap-2 px-2 pt-3 pb-2",children:r}),k?/* @__PURE__ */s("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e}):e,null!=n&&/* @__PURE__ */s("div",{className:"mt-auto flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:n})]}),
4
4
  /* @__PURE__ */s(f,{side:l,width:z,onResize:N,min:v,max:g,defaultWidth:m(d,v,g),storageKey:u,hint:y.resize})]}),$=/* @__PURE__ */s("div",{className:`flex min-w-0 flex-1 flex-col ${w}`,children:i});/* @__PURE__ */
5
5
  return s("div",{className:`flex h-full w-full overflow-hidden ${b}`,children:/* @__PURE__ */a(c,x?{children:[$,P]}:{children:[P,$]})})}export{f as ResizeHandle,v as SidebarLayout};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-M4TRVJTO.js";import"../chunk-QRCDQPJA.js";import"../chunk-C3QOHMR6.js";
2
+ export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-N2OO2ZYF.js";import"../chunk-4EIZZYLK.js";import"../chunk-C3QOHMR6.js";
@@ -1,5 +1,5 @@
1
1
  import { ResourceLanguage, i18n, TFunction } from 'i18next';
2
- import { S as ShellStringsOverride } from '../strings-BQtq9300.js';
2
+ import { S as ShellStringsOverride } from '../strings-BfHOx-Bl.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5