efficient-shell 7.13.2 → 7.14.3
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 +11 -0
- package/dist/{Browser-K57UUI7M.js → Browser-UK35KCEV.js} +15 -15
- package/dist/Calculator-NGSHZWOR.js +29 -0
- package/dist/{CurrencyConverter-CSXJ4T4P.js → CurrencyConverter-PICVES6A.js} +2 -2
- package/dist/{Documents-MZ7BEGNG.js → Documents-4YA6RONK.js} +10 -10
- package/dist/{Files-P4PB4GMS.js → Files-ZDYW6JWY.js} +80 -80
- package/dist/{Notepad-7QFTPWIM.js → Notepad-P6PA4ZD4.js} +11 -11
- package/dist/{PomodoroTimer-MYTQX74U.js → PomodoroTimer-OCAJKGQU.js} +63 -63
- package/dist/{Preview-K62QJSSB.js → Preview-W5CQYJSX.js} +26 -26
- package/dist/{Spreadsheet-LEDD423O.js → Spreadsheet-PCE7KNMT.js} +11 -11
- package/dist/{Stock-3H2PR3XA.js → Stock-74K5L75A.js} +4 -4
- package/dist/{Weather-LQOFFWMT.js → Weather-QTRJYIPS.js} +17 -17
- package/dist/{WorldClock-TJCZHIL2.js → WorldClock-L6PSFBLE.js} +6 -6
- package/dist/apps/index.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/{chunk-E3FQXACV.js → chunk-BIYMQKF3.js} +1 -1
- package/dist/{chunk-ERJTO4DO.js → chunk-FEIO6NND.js} +1 -1
- package/dist/chunk-H2NSZMFS.js +1024 -0
- package/dist/chunk-HJQAE6SP.js +1 -0
- package/dist/{chunk-AEAPCPOG.js → chunk-IBGEW3OA.js} +107 -107
- package/dist/chunk-N7UO5JMD.js +1 -0
- package/dist/{chunk-HDGFEYPU.js → chunk-QWSVX6OP.js} +1 -1
- package/dist/{chunk-OV7F663H.js → chunk-VFBUDSMF.js} +2 -2
- package/dist/chunk-WYNQLAKD.js +13 -0
- package/dist/{chunk-YNKJZKFF.js → chunk-ZLRVXY5F.js} +2 -2
- package/dist/{index-CGgt7t0J.d.ts → index-C32oXyz3.d.ts} +41 -13
- package/dist/index.d.ts +2 -2
- package/dist/index.js +631 -631
- package/dist/map/index.js +3 -3
- package/dist/telemetry/index.js +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui.css +3 -3
- package/package.json +1 -1
- package/dist/Calculator-DICFEP4L.js +0 -29
- package/dist/chunk-6ZLZP6GV.js +0 -1023
- package/dist/chunk-A7TXAKTX.js +0 -12
- package/dist/chunk-OESIYQSY.js +0 -1
- package/dist/chunk-PM4GMFN3.js +0 -1
package/dist/chunk-A7TXAKTX.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{buttonClasses as t}from"./chunk-JTNKC4CR.js";import{solidSurfaceStyle as e}from"./chunk-7IQ3B77H.js";import{registerModalEscapeInterceptor as o,escapeSurfaceAbove as i,onOverlayOpen as r,Z_LAYERS as n}from"./chunk-FIEA5CGB.js";import{useBrowserLayoutEffect as a}from"./chunk-D65T4H6J.js";import{forwardRef as l,useId as h,useState as s,useRef as d,useEffect as c,isValidElement as m,cloneElement as f}from"react";import{createPortal as u}from"react-dom";import{jsxs as p,jsx as g,Fragment as b}from"react/jsx-runtime";var x=448,w=240,M=8,v=()=>({left:0,right:window.innerWidth,top:0,bottom:window.innerHeight});function N(t){const e=v(),o=t?.closest?.("[data-modal-panel]");if(!o)return e;const i=o.getBoundingClientRect();return i.width<=0||i.height<=0?e:{left:Math.max(e.left,i.left),right:Math.min(e.right,i.right),top:Math.max(e.top,i.top),bottom:Math.min(e.bottom,i.bottom)}}var y=/* @__PURE__ */new Set(["hidden","clip","auto","scroll"]);var W={top:"bottom",bottom:"top",left:"right",right:"left"},k={top:["right","left"],bottom:["right","left"],left:["top","bottom"],right:["top","bottom"]};function C(t,e,o){return{top:t.top-o-(e.top+8),bottom:e.bottom-8-(t.bottom+o),left:t.left-o-(e.left+8),right:e.right-8-(t.right+o)}}var H=(t,e,o)=>Math.max(e,Math.min(t,o));function B(t,e,o){let i=NaN,r=NaN,n=NaN,a=NaN,l=NaN;const h=()=>{const e=t()?.getBoundingClientRect();if(!e)return!1;const h=o?o():NaN,s=e.left!==i||e.top!==r||e.right!==n||e.bottom!==a||h!==l&&!(Number.isNaN(h)&&Number.isNaN(l));return i=e.left,r=e.top,n=e.right,a=e.bottom,l=h,s};h();const s=()=>{h(),e()};let d=requestAnimationFrame(function t(){h()&&e(),d=requestAnimationFrame(t)});return window.addEventListener("scroll",s,!0),window.addEventListener("resize",s),()=>{cancelAnimationFrame(d),window.removeEventListener("scroll",s,!0),window.removeEventListener("resize",s)}}function E({trigger:t,menu:e,bounds:o,align:i,side:r}){const n=C(t,o,4),a="bottom"===r?"top":"bottom",l=e.height>n[r]&&(e.height<=n[a]||n[a]>n[r])?a:r,h=Math.max(Math.min(e.height,96),n[l]),s=Math.min(e.height,h),d=H("bottom"===l?t.bottom+4:t.top-4-s,o.top+8,o.bottom-8-s),c=Math.max(0,o.right-o.left-16),m=Math.min(e.width,c);return{left:H("start"===i?t.left:t.right-m,o.left+8,o.right-8-m),top:d,side:l,maxHeight:h,maxWidth:c}}function R(t,e,o={}){const{matchTriggerWidth:i=!1,preferredMaxWidth:r=x,preferredMaxHeight:n=w,popupRef:l}=o,[h,d]=s(null);return a(()=>{if(!e)return void d(null);const o=()=>{const e=t.current,o=e?.getBoundingClientRect();if(!o)return;const a=N(e),h=a.bottom-o.bottom-4-8,s=o.top-a.top-4-8,c=h<Math.min(n,160)&&s>h,m=Math.max(96,Math.min(n,c?s:h)),f=Math.max(0,a.right-a.left-16),u={minWidth:o.width,maxWidth:Math.min(r,f),maxHeight:m};if(i){const t=Math.min(o.width,f);u.width=t,u.maxWidth=t,u.left=Math.min(Math.max(a.left+8,o.left),a.right-8-t)}else if(l&&a.right-8-o.left<u.maxWidth&&Math.min(o.right,a.right-8)-a.left-8<u.maxWidth){const t=l.current?.offsetWidth??0,e=t>0?Math.min(t,u.maxWidth):u.maxWidth;u.left=Math.max(a.left+8,Math.min(o.left,a.right-8-e))}else if(a.right-8-o.left<u.maxWidth){const t=Math.min(o.right,a.right-8);u.right=window.innerWidth-t,u.maxWidth=Math.min(u.maxWidth,Math.max(0,t-a.left-8))}else u.left=Math.max(a.left+8,o.left);c?u.bottom=window.innerHeight-o.top+4:u.top=o.bottom+4,d(u)};return o(),B(()=>t.current,o,l?()=>l.current?.offsetWidth??NaN:void 0)},[e,t,i,r,n,l]),h}function z({point:t,menu:e,bounds:o}){const i={left:t.x,right:t.x,top:t.y,bottom:t.y},r=o.right-8-t.x,n=t.x-(o.left+8);return E({trigger:i,menu:e,bounds:o,align:e.width<=r||r>=n?"start":"end",side:"bottom"})}var j={top:"bottom-full left-1/2 -translate-x-1/2 mb-3",bottom:"top-full left-1/2 -translate-x-1/2 mt-3",left:"right-full top-1/2 -translate-y-1/2 mr-3",right:"left-full top-1/2 -translate-y-1/2 ml-3"};function T({content:t,side:l="top",delay:b=200,children:x,className:w="relative inline-flex",describe:M=!0}){const[E,R]=s(!1),z=E&&!(null==t||!1===t||""===t),[T,F]=s(null),I=d(void 0),L=d(null),A=d(null),D=h(),S=d(!1),$=()=>{window.clearTimeout(I.current),S.current||(I.current=window.setTimeout(()=>R(!0),b))},q=()=>{window.clearTimeout(I.current),R(!1)},J=()=>{S.current=!0,q()},P=()=>{S.current=!1,q()};c(()=>()=>window.clearTimeout(I.current),[]),a(()=>{if(!z)return void F(null);const t=()=>{const t=L.current,e=A.current;if(!t||!e)return;const o=N(t),i=Math.max(0,o.right-o.left-16),r=Math.max(0,o.bottom-o.top-16);e.style.maxWidth=`${i}px`,e.style.maxHeight=`${r}px`;const n=e.getBoundingClientRect();if(n.width<=0||n.height<=0)return;const a=t.getBoundingClientRect();if(!function(t){const e=t.getBoundingClientRect();if(e.width<=0&&e.height<=0&&0===e.left&&0===e.top)return null;const o=v(),i={left:Math.max(o.left,e.left),right:Math.min(o.right,e.right),top:Math.max(o.top,e.top),bottom:Math.min(o.bottom,e.bottom)};let r=getComputedStyle(t).position;for(let e=t.parentElement;e&&e!==document.documentElement&&"fixed"!==r;e=e.parentElement){const t=getComputedStyle(e);if("absolute"===r&&"static"===t.position)continue;r=t.position;const o=y.has(t.overflowX),n=y.has(t.overflowY);if(!o&&!n)continue;const a=e.getBoundingClientRect();a.width<=0&&a.height<=0||(o&&(i.left=Math.max(i.left,a.left),i.right=Math.min(i.right,a.right)),n&&(i.top=Math.max(i.top,a.top),i.bottom=Math.min(i.bottom,a.bottom)))}return i.right>=i.left&&i.bottom>=i.top?i:null}(t))return void q();const h=function(t,e,o,i,r){const n=C(t,i,r),a=t=>n[t]-("top"===t||"bottom"===t?e.height:e.width),l=[o,W[o],...k[o]],h=l.find(t=>a(t)>=0)??l.reduce((t,e)=>a(e)>a(t)?e:t),s=(t.left+t.right)/2,d=(t.top+t.bottom)/2;let c,m;switch(h){case"top":c=s-e.width/2,m=t.top-r-e.height;break;case"bottom":c=s-e.width/2,m=t.bottom+r;break;case"left":c=t.left-r-e.width,m=d-e.height/2;break;case"right":c=t.right+r,m=d-e.height/2}return{side:h,left:H(c,i.left+8,i.right-8-e.width),top:H(m,i.top+8,i.bottom-8-e.height)}}(a,n,l,o,12),s=function(t,e,o,i,r){const{side:n,left:a,top:l}=e,h=a+o.width,s=l+o.height;if({top:t.top-s,bottom:l-t.bottom,left:t.left-h,right:a-t.right}[n]<r)return null;const d=(t,e,o)=>o<2*i?e+o/2:Math.max(e+i,Math.min(t,e+o-i)),c=(t.left+t.right)/2,m=(t.top+t.bottom)/2;switch(n){case"top":return{side:n,x:d(c,a,o.width),y:s};case"bottom":return{side:n,x:d(c,a,o.width),y:l};case"left":return{side:n,x:h,y:d(m,l,o.height)};case"right":return{side:n,x:a,y:d(m,l,o.height)}}}(a,h,n,16,6),d={anchor:{left:a.left,top:a.top,width:a.width,height:a.height},left:h.left-a.left,top:h.top-a.top,maxWidth:i,maxHeight:r,side:h.side,arrow:s&&{left:s.x-a.left,top:s.y-a.top}};F(t=>{return t&&(o=d,(e=t).anchor.left===o.anchor.left&&e.anchor.top===o.anchor.top&&e.anchor.width===o.anchor.width&&e.anchor.height===o.anchor.height&&e.left===o.left&&e.top===o.top&&e.maxWidth===o.maxWidth&&e.maxHeight===o.maxHeight&&e.side===o.side&&e.arrow?.left===o.arrow?.left&&e.arrow?.top===o.arrow?.top)?t:d;var e,o})};return t(),B(()=>L.current,t)},[z,l,t]),c(()=>{if(!z)return;const t=o(t=>"Escape"===t.key&&(q(),!i(L.current))),e=r(q);return()=>{t(),e()}},[z]);const G=z&&M?D:void 0,K=m(x)?f(x,{"aria-describedby":[x.props["aria-describedby"],G].filter(Boolean).join(" ")||void 0}):x,Q=z?e():void 0;/* @__PURE__ */
|
|
2
|
-
return p("span",{ref:L,className:w,"aria-describedby":m(x)?void 0:G,onMouseEnter:$,onMouseLeave:P,onFocus:$,onBlur:P,onPointerDown:J,onClick:J,children:[K,z&&u(
|
|
3
|
-
/* @__PURE__ */p("span",{className:"pointer-events-none fixed left-0 top-0",style:{zIndex:n.hint,...T?.anchor},children:[
|
|
4
|
-
/* @__PURE__ */g("span",{ref:A,id:D,role:"tooltip",className:`pointer-events-none absolute z-(--z-hint) box-border w-max overflow-hidden whitespace-normal break-words text-start rounded-md px-2 py-1 text-xs text-gray-800 ${T?"":j[l]}`,style:{...Q,...T&&{left:T.left,top:T.top,maxWidth:T.maxWidth,maxHeight:T.maxHeight}},children:t}),(!T||T.arrow)&&
|
|
5
|
-
/* @__PURE__ */g("span",{"aria-hidden":"true",className:"rosh-tooltip-arrow","data-side":T?.side??l,style:{background:Q?.background,"--rosh-tooltip-edge":Q?.border,...T?.arrow&&{left:T.arrow.left,top:T.arrow.top}}})]}),document.body)]})}var F=t=>!0===t||"true"===t;function I(t){t.preventDefault(),t.stopPropagation()}var L=(t,e)=>[t,e].filter(Boolean).join(" ")||void 0;function A({reason:t,id:e,block:o=!1,children:i}){/* @__PURE__ */
|
|
6
|
-
return p(b,{children:[
|
|
7
|
-
/* @__PURE__ */g(T,{content:t,describe:!1,className:o?"relative flex w-full":"relative inline-flex",children:i}),
|
|
8
|
-
/* @__PURE__ */g("span",{id:e,className:"sr-only",children:t})]})}function D(){/* @__PURE__ */
|
|
9
|
-
return p("svg",{className:"h-3.5 w-3.5 animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[
|
|
10
|
-
/* @__PURE__ */g("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),
|
|
11
|
-
/* @__PURE__ */g("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]})}var S=l(function({variant:e="primary",size:o="md",loading:i=!1,leftIcon:r,rightIcon:n,block:a=!1,disabled:l,type:s="button",children:d,className:c="",disabledReason:m,onClick:f,pressed:u,"aria-disabled":b,"aria-describedby":x,...w},M){const v=h(),N=l||i,y=null!=m&&""!==m,W=N&&y,k=!N&&F(b),C=k&&y,H=W||C?v:void 0,B=/* @__PURE__ */p("button",{ref:M,type:s,disabled:N,"aria-busy":i||void 0,"aria-disabled":!!k||b,"aria-describedby":L(x,H),onClick:k?I:f,className:t({variant:e,size:o,block:a,pressed:u??(!0===w["aria-pressed"]||"true"===w["aria-pressed"]),className:c}),...w,children:[i?/* @__PURE__ */g(D,{}):r,d,!i&&n]});return C?/* @__PURE__ */g(A,{reason:m,id:v,block:a,children:B}):W?/* @__PURE__ */p("span",{className:a?"flex w-full flex-col gap-1":"inline-flex flex-col items-start gap-1",children:[B,
|
|
12
|
-
/* @__PURE__ */g("span",{id:H,className:"text-xs text-red-600",children:m})]}):B});export{S as Button_default,w as MENU_MAX_HEIGHT,A as OffWithReason,x as POPUP_MAX_WIDTH,T as Tooltip,M as VIEWPORT_MARGIN,L as describedByWith,B as followAnchor,F as isAriaDisabled,z as placeAtPoint,E as placeMenu,N as popupBounds,I as swallowPress,R as useDropdownPosition};
|
package/dist/chunk-OESIYQSY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="block w-full rounded-(--radius-control) border border-gray-300 bg-white",o="text-gray-400",e="text-gray-800 placeholder:text-gray-400 shadow-sm focus:border-blue-400 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring)]",l={sm:"h-6 px-2 text-xs",md:"h-8 px-3 text-sm",lg:"h-10 px-4 text-base",touch:"h-14 px-4 text-base"},s=`${r} ${l.md} ${e}`,d=`block w-full rounded-(--radius-control) border border-blue-400 bg-blue-50 rosh-field-on ${l.md} ${e}`,t="disabled:cursor-not-allowed disabled:opacity-60";function i(o){const d=o?.multiline?a:l;return[o?.readOnly?`block w-full rounded-(--radius-control) border border-gray-300 bg-gray-50 ${d[o.size??"md"]} ${e}`:o?.multiline||o?.size&&"md"!==o.size?`${r} ${d[o?.size??"md"]} ${e}`:s,o?.invalid?"border-red-300 focus:border-red-400 focus-visible:ring-[color:var(--rosh-focus-ring-invalid)]":"",t,o?.className??""].filter(Boolean).join(" ")}var a={sm:"px-2 py-1 text-xs",md:"px-3 py-2 text-sm",lg:"px-4 py-2 text-base",touch:l.touch};export{s as INPUT_BASE,d as INPUT_BASE_ON,l as INPUT_SIZES,o as PLACEHOLDER_INK,i as inputClasses};
|
package/dist/chunk-PM4GMFN3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="7.13.2",a=r;export{a as APP_VERSION,r as VERSION};
|