efficient-shell 7.44.0 → 7.45.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 +54 -1
- package/dist/{Browser-IVD5YDBF.js → Browser-7M22OFSW.js} +14 -14
- package/dist/Calculator-LKWOOCNC.js +29 -0
- package/dist/ConfirmDialog-ZT3XT66V.js +1 -0
- package/dist/{CurrencyConverter-QIH4GI3K.js → CurrencyConverter-4QTVWEFM.js} +6 -6
- package/dist/{Documents-NGCQIUL2.js → Documents-LELK7IBM.js} +29 -29
- package/dist/Files-LAWZGFQQ.js +87 -0
- package/dist/{Notepad-AVIOMS3W.js → Notepad-CLHKYQ34.js} +14 -14
- package/dist/PdfViewer-VJ743BW7.js +1 -0
- package/dist/{PomodoroTimer-LMLEPMFD.js → PomodoroTimer-L45QS5OR.js} +64 -64
- package/dist/{Preview-7TEXWSNF.js → Preview-47BCBIP4.js} +57 -57
- package/dist/{Sidebar-HT7BIMTD.js → Sidebar-AYYJL3IJ.js} +28 -28
- package/dist/{Spreadsheet-KNAAJ4CE.js → Spreadsheet-6NX5WA4J.js} +14 -14
- package/dist/{Stock-VUGVYNNI.js → Stock-ZZ6AM43M.js} +3 -3
- package/dist/{Weather-TAJQCYIV.js → Weather-K3BZD2NX.js} +17 -17
- package/dist/{WorldClock-ZQ2VI2NB.js → WorldClock-5STYQA56.js} +6 -6
- package/dist/apps/index.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/{chunk-52ZDIQFP.js → chunk-ABKFLSHY.js} +1 -1
- package/dist/{chunk-YD4DPX4H.js → chunk-CWCKDF37.js} +3 -3
- package/dist/{chunk-FBXOKW33.js → chunk-FQIZMZDX.js} +3 -3
- package/dist/{chunk-ZN6W2KOC.js → chunk-G4UIEBPD.js} +11 -11
- package/dist/{chunk-4TOFAEAW.js → chunk-GM2ASLIK.js} +29 -29
- package/dist/{chunk-7RI5F5VX.js → chunk-HPUHB47C.js} +1 -1
- package/dist/{chunk-22EP5XS2.js → chunk-HQ74L5MM.js} +1 -1
- package/dist/{chunk-TFYZB4NY.js → chunk-JJBFXVOY.js} +2 -2
- package/dist/{chunk-QDCMVFK5.js → chunk-JXMYF3JR.js} +7 -7
- package/dist/{chunk-6K5EFHDQ.js → chunk-K6YIBHZN.js} +16 -16
- package/dist/{chunk-JK4PTQFV.js → chunk-LK7BWXYY.js} +1 -1
- package/dist/{chunk-WSRZRWN7.js → chunk-LTEM56OL.js} +1 -1
- package/dist/chunk-NGWXT4QX.js +1 -0
- package/dist/{chunk-7D6TZW44.js → chunk-NZBFQTOB.js} +4 -4
- package/dist/{chunk-OMOQC57R.js → chunk-PR7MCFEU.js} +60 -60
- package/dist/{chunk-BY3KWWWU.js → chunk-UNLQRUWP.js} +4 -4
- package/dist/{chunk-HVJZPYA5.js → chunk-WGSCC6QU.js} +576 -573
- package/dist/{chunk-ZELMENOO.js → chunk-X6NYTLYX.js} +2 -2
- package/dist/{chunk-G5S7NQ7B.js → chunk-XDR3Y3WU.js} +3 -3
- package/dist/{chunk-FY3H52BM.js → chunk-XYG3CVL5.js} +1 -1
- package/dist/{index-p7sSFfAC.d.ts → index-BWDtKUcA.d.ts} +66 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +682 -682
- package/dist/map/index.js +7 -7
- 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.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-Q3TNKTCG.js +0 -29
- package/dist/ConfirmDialog-QT4KJAP7.js +0 -1
- package/dist/Files-6NUBFLQ7.js +0 -87
- package/dist/PdfViewer-LGD633HY.js +0 -1
- package/dist/chunk-TVSNBASY.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{useDismissPopupsOnOpen as e}from"./chunk-UVBK6YSR.js";import{registerModalEscapeInterceptor as t,Z_LAYERS as n}from"./chunk-FIEA5CGB.js";import{buttonClasses as r}from"./chunk-K7PQXJO7.js";import{
|
|
1
|
+
import{useDismissPopupsOnOpen as e}from"./chunk-UVBK6YSR.js";import{registerModalEscapeInterceptor as t,Z_LAYERS as n}from"./chunk-FIEA5CGB.js";import{buttonClasses as r}from"./chunk-K7PQXJO7.js";import{useShellStrings as l,splitAround as o}from"./chunk-LVCRH3K6.js";import{Icon as i}from"./chunk-3G5TA3IF.js";import{createContext as a,useEffect as s,useRef as c,useId as d,useContext as u,useState as m,useCallback as f}from"react";import{jsxs as h,jsx as b,Fragment as g}from"react/jsx-runtime";var v=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");function p(e){return Array.from(e.querySelectorAll(v)).filter(e=>null!==e.offsetParent||e===document.activeElement)}var y=[];function x(e){const t=y.findIndex(t=>t!==e&&e.contains(t));-1===t?y.push(e):y.splice(t,0,e)}function w(e){const t=y.lastIndexOf(e);-1!==t&&y.splice(t,1)}var N=/* @__PURE__ */new WeakSet;function k(e){return p(e)}function C(e,t){s(()=>{if(!t)return;const n=e.current;return n?(N.add(n),x(n),()=>{w(n),N.delete(n)}):void 0},[e,t])}function E(e,t){const n=y.lastIndexOf(t),r=n>0?y[n-1]:-1===n?y[y.length-1]??null:null,l=p(r??e.ownerDocument.body).filter(n=>!t.contains(n)&&!e.contains(n)),o=l.find(t=>0!==(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING));return o||(r&&!N.has(r)?l[0]??null:null)}function L(e,t,n){s(()=>{if(!t)return;const r=e.current;if(!r)return;const l=document.activeElement,o=n?.current??p(r)[0]??r;o!==r||r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1"),o.focus();const i=e=>{if("Tab"!==e.key)return;if(y[y.length-1]!==r)return;const t=p(r);if(0===t.length)return void e.preventDefault();const n=t[0],l=t[t.length-1],o=document.activeElement;!e.shiftKey||o!==n&&r.contains(o)?e.shiftKey||o!==l&&r.contains(o)||(e.preventDefault(),n.focus()):(e.preventDefault(),l.focus())};return x(r),document.addEventListener("keydown",i,!0),()=>{w(r),document.removeEventListener("keydown",i,!0),(r.contains(document.activeElement)||document.activeElement===document.body)&&l?.focus?.()}},[e,t,n])}var P=0,j=null;function I(e){s(()=>{if(!e)return;const t=document.body;if(0===P){j={overflow:t.style.overflow,paddingRight:t.style.paddingRight};const e=window.innerWidth-document.documentElement.clientWidth;t.style.overflow="hidden",e>0&&(t.style.paddingRight=`${e}px`)}return P+=1,()=>{0===(P-=1)&&j&&(t.style.overflow=j.overflow,t.style.paddingRight=j.paddingRight,j=null)}},[e])}function F({role:e="dialog",modal:t,titleId:n,labelledBy:r,label:l}){const o=n??r;return{role:e,"aria-modal":!!t||void 0,"aria-labelledby":o,"aria-label":o?void 0:l}}var T={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-4xl"};function D({open:r,onClose:o,title:a,description:u,role:m="dialog",children:f,footer:g,blocking:v=!1,size:p="md",initialFocus:y,"aria-label":x,"aria-labelledby":w,"aria-describedby":N,className:k=""}){const C=c(null),E=d(),P=d(),j=!v&&!g,D=d(),O=l().dialog;return e(r),L(C,r,y),I(r),s(()=>{if(r)return t(()=>(v||o(),!0),()=>C.current)},[r,v,o]),r?/* @__PURE__ */h("div",{className:"fixed inset-0",style:{zIndex:n.overlay},role:"presentation",children:[
|
|
2
2
|
/* @__PURE__ */b("div",{className:"fixed inset-0 bg-black/30","aria-hidden":"true"}),
|
|
3
|
-
/* @__PURE__ */b("div",{className:"fixed inset-0 flex items-center justify-center p-4",onClick:v?void 0:e=>{e.target===e.currentTarget&&
|
|
4
|
-
return b(
|
|
5
|
-
return b(
|
|
3
|
+
/* @__PURE__ */b("div",{className:"fixed inset-0 flex items-center justify-center p-4",onClick:v?void 0:e=>{e.target===e.currentTarget&&o()},children:/* @__PURE__ */h("div",{ref:C,...F({role:m,modal:!0,titleId:a?D:void 0,labelledBy:w,label:x}),"aria-describedby":N??(u?P:f?E:void 0),className:`relative max-h-full w-full ${T[p]} overflow-y-auto overscroll-contain rounded-(--radius-card) bg-white p-6 shadow-xl ${k}`.trim(),children:[a&&/* @__PURE__ */b("h2",{id:D,className:(j?"pr-8 ":"")+"text-base font-semibold text-gray-900",children:a}),u&&/* @__PURE__ */b("p",{id:P,className:((a?"mt-1":j?"pr-8":"")+" text-sm text-gray-500").trim(),children:u}),f&&/* @__PURE__ */b("div",{id:E,className:"mt-2 text-sm text-gray-600",children:f}),g&&/* @__PURE__ */b("div",{className:"mt-6 flex flex-wrap justify-end gap-3",children:g}),j&&/* @__PURE__ */b("button",{type:"button",onClick:o,"aria-label":O.close,className:"absolute right-3 top-3 rounded-(--radius-control) p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */b(i,{name:"close",className:"h-5 w-5",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})})]})})]}):null}var O=a(()=>Promise.resolve(!1)),W=()=>u(O),K=()=>Promise.resolve(!1),R=e=>K(e),$=()=>Promise.resolve(!1),A=e=>$(e),B=()=>Promise.resolve(null),S=e=>B(e),G={danger:{icon:"text-red-600 bg-red-100",button:r({variant:"danger"})},warning:{icon:"text-yellow-600 bg-yellow-100",button:r({variant:"warning"})},info:{icon:"text-blue-600 bg-blue-100",button:r({variant:"primary"})}},V=r({variant:"secondary"}),z=r({variant:"primary"}),U="w-full rounded-md border border-gray-300 h-8 px-3 text-sm";function _(){/* @__PURE__ */
|
|
4
|
+
return b(i,{name:"warning",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function q(){/* @__PURE__ */
|
|
5
|
+
return b(i,{name:"close",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function H({children:e}){const[t,n]=m(!1),[r,i]=m({message:""}),[a,d]=m(0),u=c(),v=c(null),p=c(0),y=c([]),x=c(null),w=c(null),N=f(e=>{v.current=e.id,u.current=e.resolve,d(e.id),i(e.options),n(!0)},[]),k=f(e=>{const t="string"==typeof e?{message:e}:e;return new Promise(e=>{const n={id:++p.current,options:t,resolve:e};null===v.current?N(n):y.current.push(n)})},[N]),[C,E]=m(!1),[L,P]=m({message:""}),[j,I]=m(""),F=c(),T=f(e=>(P(e),I(""),E(!0),new Promise(e=>{F.current=e})),[]),[W,R]=m(!1),[A,S]=m({}),[H,J]=m(""),M=c(),Q=f(e=>{const t="string"==typeof e?{message:e}:e;return S(t),J(t.defaultValue??""),R(!0),new Promise(e=>{M.current=e})},[]);s(()=>{K=k,$=T,B=Q},[k,T,Q]);const X=(e,t)=>{if(v.current!==e)return;const r=u.current,l=y.current.shift();l?N(l):(v.current=null,u.current=void 0,n(!1)),r?.(t)},Y=e=>{E(!1),I(""),F.current?.(e)},Z=e=>{if(e){const e=H.trim();if(!e&&!A.allowEmpty)return R(!1),void M.current?.(null);R(!1),M.current?.(e)}else R(!1),M.current?.(null)},ee=r.variant||(r.confirmLabel?.toLowerCase().includes("delete")||r.message.toLowerCase().includes("delete")?"danger":"info"),te=G[ee],ne=G["warning"===L.variant?"warning":"danger"],re=L.confirmWord,le=null==re||j===re,oe=l().dialog,[ie,ae]=o(oe.typeToConfirm);/* @__PURE__ */
|
|
6
6
|
return h(O.Provider,{value:k,children:[e,
|
|
7
7
|
/* @__PURE__ */b(D,{open:t,onClose:()=>X(a,!1),initialFocus:x,footer:/* @__PURE__ */h(g,{children:[
|
|
8
8
|
/* @__PURE__ */b("button",{ref:x,type:"button",onClick:()=>X(a,!1),className:V,children:r.cancelLabel||oe.cancel}),
|