efficient-shell 4.167.0 → 4.171.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.
Files changed (60) hide show
  1. package/README.md +242 -0
  2. package/dist/{Browser-6JAAEWKO.js → Browser-BW3EZ7B2.js} +14 -14
  3. package/dist/Calculator-VBK5NSMU.js +29 -0
  4. package/dist/ConfirmDialog-YRCG3W2T.js +1 -0
  5. package/dist/{CurrencyConverter-3BTIZ2LT.js → CurrencyConverter-IW6F7HW4.js} +6 -6
  6. package/dist/{Documents-DJI7WGXG.js → Documents-VH3JXSSJ.js} +10 -10
  7. package/dist/{Files-T5EUM5IQ.js → Files-R4ZA5MXU.js} +31 -31
  8. package/dist/{Notepad-KNRYFOM4.js → Notepad-FOITSJJA.js} +10 -10
  9. package/dist/{PomodoroTimer-SCPEOG6W.js → PomodoroTimer-C4SVIFC6.js} +31 -31
  10. package/dist/{Preview-XLDGT7V4.js → Preview-5K6LK6WZ.js} +21 -21
  11. package/dist/{Sidebar-C5RXL72L.js → Sidebar-FDFNRXJU.js} +20 -20
  12. package/dist/{Spreadsheet-3GOYRHZ3.js → Spreadsheet-CZC3QU2G.js} +13 -13
  13. package/dist/{Stock-UGDIALNB.js → Stock-B4WWEBZH.js} +6 -6
  14. package/dist/{Weather-CR2MN5XF.js → Weather-TDB5AY23.js} +15 -15
  15. package/dist/{WorldClock-JBNJ7C7J.js → WorldClock-HYHDVPBV.js} +7 -7
  16. package/dist/apps/index.js +1 -1
  17. package/dist/bin/ui-check.js +2 -0
  18. package/dist/brand.css +1 -1
  19. package/dist/{chunk-JLPJBO7K.js → chunk-2UIKLYAI.js} +1 -1
  20. package/dist/{chunk-B5OVATHU.js → chunk-36QX6LOQ.js} +3 -3
  21. package/dist/{chunk-SOI4LR67.js → chunk-5G4QMZGJ.js} +3 -3
  22. package/dist/chunk-67ZUPDWG.js +1 -0
  23. package/dist/{chunk-PLX2N4N6.js → chunk-7YFAFXQG.js} +2 -2
  24. package/dist/{chunk-FVXBJGY5.js → chunk-AUKURHBZ.js} +3 -3
  25. package/dist/{chunk-A7Q4BCPI.js → chunk-CRI4UFBU.js} +5 -5
  26. package/dist/{chunk-M4DB7UBZ.js → chunk-ECFMRDUP.js} +1 -1
  27. package/dist/chunk-EXXHI5DO.js +12 -0
  28. package/dist/chunk-FWOPZB6I.js +1 -0
  29. package/dist/chunk-FWZUTHP5.js +112 -0
  30. package/dist/chunk-GKLJ2SYS.js +995 -0
  31. package/dist/{chunk-YWXYBJ5Y.js → chunk-HA2WG27U.js} +2 -2
  32. package/dist/{chunk-CUX4XGLS.js → chunk-HNXPIYRS.js} +1 -1
  33. package/dist/{chunk-QZG72OVX.js → chunk-NTCAZ6Y3.js} +1 -1
  34. package/dist/{chunk-N3ZXQE4M.js → chunk-PGVUO7GB.js} +5 -5
  35. package/dist/{chunk-XKHAP6N2.js → chunk-Y3UKUB7V.js} +8 -8
  36. package/dist/chunk-YKZHOXI4.js +2 -0
  37. package/dist/icons/efficient.d.ts +355 -0
  38. package/dist/icons/efficient.js +470 -0
  39. package/dist/icons/heroicons.d.ts +6 -0
  40. package/dist/icons/heroicons.js +1 -0
  41. package/dist/icons/index.d.ts +64 -0
  42. package/dist/icons/index.js +2 -0
  43. package/dist/icons/lucide.d.ts +6 -0
  44. package/dist/icons/lucide.js +1 -0
  45. package/dist/{index-CbLbd__n.d.ts → index-Dq20bi8D.d.ts} +125 -1
  46. package/dist/index.d.ts +4 -2
  47. package/dist/index.js +650 -645
  48. package/dist/map/index.js +3 -3
  49. package/dist/page-tabs/index.js +5 -5
  50. package/dist/registry-FHdUeVww.d.ts +71 -0
  51. package/dist/ui/index.d.ts +3 -1
  52. package/dist/ui/index.js +1 -1
  53. package/dist/ui.css +81 -0
  54. package/package.json +35 -2
  55. package/dist/Calculator-NXMUEH5D.js +0 -29
  56. package/dist/ConfirmDialog-ZDVMT74Y.js +0 -1
  57. package/dist/chunk-CZMMBYNN.js +0 -1
  58. package/dist/chunk-GVZLCY3B.js +0 -994
  59. package/dist/chunk-JYLI2WXW.js +0 -12
  60. package/dist/chunk-LW27IM3S.js +0 -112
@@ -1,29 +0,0 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-JLPJBO7K.js";import{useWidgetSettings as n}from"./chunk-LW27IM3S.js";import"./chunk-A7Q4BCPI.js";import"./chunk-DSSLOQDW.js";import"./chunk-5A7MWTXX.js";import"./chunk-JYLI2WXW.js";import"./chunk-6KO2U66R.js";import"./chunk-M4DB7UBZ.js";import"./chunk-N3ZXQE4M.js";import"./chunk-AFYQTVZO.js";import"./chunk-HZZNJHRH.js";import"./chunk-X4FJ54PP.js";import"./chunk-NCQLGQYR.js";import"./chunk-D65T4H6J.js";import{useState as r,useRef as l,useCallback as o,useEffect as i}from"react";import{jsxs as a,Fragment as c,jsx as s}from"react/jsx-runtime";var u="calc_appearance";function d(){const[d,h]=r("0"),[m,k]=r(null),[b,g]=r(null),[p,v]=r(!1),[x,N]=r(""),[y,f]=r([]),[C,$]=r(!1),[j,w]=r(()=>e(u)),[L,E]=r(!1),[S,W]=r(j),B=l(null);n(o(()=>{W({...j}),E(!0)},[j]));const T=o(e=>{N(""),h(t=>p||"0"===t?(v(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[p]),A=o(()=>{h("0"),k(null),g(null),v(!1)},[]),F=o((e,t,n)=>{switch(n){case"+":return e+t;case"-":return e-t;case"×":return e*t;case"÷":return 0===t?0:e/t;default:return t}},[]),J=o(e=>{const t=parseFloat(d);if(null!==m&&b&&!p){const e=F(m,t,b);h(String(e)),k(e),f(n=>[`${m} ${b} ${t} = ${e}`,...n].slice(0,20))}else k(t);g(e),v(!0)},[d,m,b,p,F]),M=o(()=>{if(null===m||!b)return;const e=parseFloat(d),t=F(m,e,b),n=`${m} ${b} ${e} =`;f(e=>[`${n} ${t}`,...e].slice(0,20)),N(n),h(String(t)),k(null),g(null),v(!0)},[d,m,b,F]),D=o(()=>{h(e=>String(parseFloat(e)/100))},[]),O=o(()=>{h(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);i(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?T(e.key):"."===e.key?T("."):"+"===e.key?J("+"):"-"===e.key?J("-"):"*"===e.key?J("×"):"/"===e.key?(e.preventDefault(),J("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&B.current?.contains(e.target)&&e.preventDefault(),M()):"Escape"===e.key?A():"Backspace"===e.key?h(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&D())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[T,J,M,A,D]);const Q="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",X=`${Q} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,H=`${Q} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,I=`${Q} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,P=`${Q} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
2
- return a(c,{children:[
3
- /* @__PURE__ */a("div",{ref:B,className:"flex flex-col h-full",style:{opacity:j.activeOpacity/100,backdropFilter:j.activeBlur>0?`blur(${j.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */a("div",{className:"bg-slate-200 rounded-t-lg px-4 py-2 group/display relative flex flex-col justify-end min-h-[120px] border-b border-slate-300",children:[
5
- /* @__PURE__ */s("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:y.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */s("div",{className:"text-[11px] text-slate-400 text-right font-mono truncate",children:e},t))}),(x||b&&null!==m)&&/* @__PURE__ */s("div",{className:"text-base text-slate-600 text-right font-mono",children:x||`${m} ${b} ${p?"":d}`}),
6
- /* @__PURE__ */a("div",{className:"flex items-center gap-2",children:[
7
- /* @__PURE__ */s("button",{onClick:()=>{navigator.clipboard.writeText(d),$(!0),setTimeout(()=>$(!1),1200)},title:"Copy result",className:"shrink-0 text-slate-300 hover:text-slate-500 transition-colors opacity-0 group-hover/display:opacity-100",children:/* @__PURE__ */s("svg",C?{className:"h-5 w-5 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}:{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),
8
- /* @__PURE__ */s("div",{className:"text-right text-4xl font-mono font-bold text-slate-800 truncate flex-1",children:(e=>{const t=parseFloat(e);return isNaN(t)||e.endsWith(".")||e.endsWith(".0")||Math.abs(t)<1e15&&e.length<16?e:t.toExponential(6)})(d)})]})]}),
9
- /* @__PURE__ */a("div",{className:"grid grid-cols-4 grid-rows-5 gap-1.5 flex-1 min-h-0 p-2",children:[
10
- /* @__PURE__ */s("button",{onClick:A,className:I,children:"AC"}),
11
- /* @__PURE__ */s("button",{onClick:O,className:I,children:"+/−"}),
12
- /* @__PURE__ */s("button",{onClick:D,className:I,children:"%"}),
13
- /* @__PURE__ */s("button",{onClick:()=>J("÷"),className:`${H} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
14
- /* @__PURE__ */s("button",{onClick:()=>T("7"),className:X,children:"7"}),
15
- /* @__PURE__ */s("button",{onClick:()=>T("8"),className:X,children:"8"}),
16
- /* @__PURE__ */s("button",{onClick:()=>T("9"),className:X,children:"9"}),
17
- /* @__PURE__ */s("button",{onClick:()=>J("×"),className:`${H} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
18
- /* @__PURE__ */s("button",{onClick:()=>T("4"),className:X,children:"4"}),
19
- /* @__PURE__ */s("button",{onClick:()=>T("5"),className:X,children:"5"}),
20
- /* @__PURE__ */s("button",{onClick:()=>T("6"),className:X,children:"6"}),
21
- /* @__PURE__ */s("button",{onClick:()=>J("-"),className:`${H} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
22
- /* @__PURE__ */s("button",{onClick:()=>T("1"),className:X,children:"1"}),
23
- /* @__PURE__ */s("button",{onClick:()=>T("2"),className:X,children:"2"}),
24
- /* @__PURE__ */s("button",{onClick:()=>T("3"),className:X,children:"3"}),
25
- /* @__PURE__ */s("button",{onClick:()=>J("+"),className:`${H} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
26
- /* @__PURE__ */s("button",{onClick:()=>T("0"),className:`${X} col-span-2`,children:"0"}),
27
- /* @__PURE__ */s("button",{onClick:()=>T("."),className:X,children:"."}),
28
- /* @__PURE__ */s("button",{onClick:M,className:P,children:"="})]})]}),
29
- /* @__PURE__ */s(t,{open:L,onClose:()=>E(!1),title:"Calculator Settings",appearance:S,onAppearanceChange:W,onSave:()=>{w(S),localStorage.setItem(u,JSON.stringify(S)),E(!1)}})]})}export{d as default};
@@ -1 +0,0 @@
1
- export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"./chunk-M4DB7UBZ.js";import"./chunk-AFYQTVZO.js";import"./chunk-X4FJ54PP.js";import"./chunk-NCQLGQYR.js";
@@ -1 +0,0 @@
1
- var r="4.167.0",a=r;export{a as APP_VERSION,r as VERSION};