efficient-shell 10.2.1 → 10.4.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 +12 -1
- package/dist/{Browser-YHMFQIN5.js → Browser-WZTJDJPT.js} +14 -14
- package/dist/Calculator-S5OP2NS6.js +29 -0
- package/dist/{CurrencyConverter-YQ2AZ7ZG.js → CurrencyConverter-MQ3OOVX4.js} +12 -12
- package/dist/{Documents-CMCZA5PH.js → Documents-KZ2V5CYE.js} +17 -17
- package/dist/{Files-UW65YMFW.js → Files-KV3ZHSLP.js} +77 -77
- package/dist/{Notepad-RSYZ7HZA.js → Notepad-U2I5IPBD.js} +9 -9
- package/dist/{PomodoroTimer-5KCWCL62.js → PomodoroTimer-CX677P57.js} +20 -20
- package/dist/{Preview-PK4QI7SK.js → Preview-VZIROQOT.js} +22 -22
- package/dist/{Spreadsheet-MQR4TQGV.js → Spreadsheet-676YI5OX.js} +13 -13
- package/dist/{Stock-DMW2REHR.js → Stock-PWPUDMK2.js} +6 -6
- package/dist/{Weather-PN7XVCZY.js → Weather-3N3MSFQV.js} +13 -13
- package/dist/{WorldClock-JYLOJCUS.js → WorldClock-6QYLEBLL.js} +6 -6
- package/dist/ai/index.d.ts +25 -5
- package/dist/ai/index.js +59 -59
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/chunk-3DVNXNTF.js +1 -0
- package/dist/{chunk-QL4757YL.js → chunk-4WXF5E3O.js} +3 -3
- package/dist/{chunk-RP3GUVAI.js → chunk-573EHCD7.js} +39 -39
- package/dist/chunk-ANDANM5V.js +1 -0
- package/dist/{chunk-YATWJMLM.js → chunk-GTNJAKFO.js} +18 -18
- package/dist/{chunk-O42AN43Q.js → chunk-JQYNMUZW.js} +1 -1
- package/dist/chunk-LNWQBSYD.js +5 -0
- package/dist/{chunk-XDQGIW4X.js → chunk-LYIXZFMP.js} +1 -1
- package/dist/{chunk-VJJMWJPZ.js → chunk-OKL56EZ5.js} +1 -1
- package/dist/chunk-OTGQYHVC.js +9 -0
- package/dist/{chunk-MTX5LMJD.js → chunk-QWWJUYZI.js} +15 -15
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/hooks/useTheme.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +57 -57
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/Dialog.d.ts +2 -2
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.d.ts +2 -2
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/discardGuard.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/ErrorBoundary.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-NSYIXONM.js +0 -29
- package/dist/chunk-6OMCCEYA.js +0 -1
- package/dist/chunk-AKJHVOSD.js +0 -8
- package/dist/chunk-SDI2UGAG.js +0 -1
- package/dist/chunk-XLYCWGTK.js +0 -4
- /package/dist/{chunk-YMYY5G6V.js → chunk-OW7MLJ3Y.js} +0 -0
package/dist/page-tabs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{TabStrip as e}from"../chunk-ZZOBG6GP.js";import{useShellLanguage as t}from"../chunk-UPQW4GCT.js";import"../chunk-RBQWIHYD.js";import{confirm as n}from"../chunk-
|
|
3
|
-
return b(j.Provider,{value:ce,children:e})}var
|
|
4
|
-
return b("div",{ref:y,role:s?"tabpanel":void 0,id:s,"aria-labelledby":l,hidden:!t,style:t?void 0:{display:"none"},className:c,"data-page-tab":e,children:/* @__PURE__ */b(K.Provider,{value:f,children:/* @__PURE__ */b(
|
|
5
|
-
return b("div",{className:t,children:e(r)},
|
|
6
|
-
return b(e,{tabs:l.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:a.dirty.includes(e.key),copy:c.copies[e.key],icon:p(
|
|
2
|
+
import{TabStrip as e}from"../chunk-ZZOBG6GP.js";import{useShellLanguage as t}from"../chunk-UPQW4GCT.js";import"../chunk-RBQWIHYD.js";import{confirm as n}from"../chunk-QWWJUYZI.js";import"../chunk-LNWQBSYD.js";import"../chunk-QHOBK35Y.js";import"../chunk-3DVNXNTF.js";import"../chunk-OW7MLJ3Y.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-37U326EL.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-UQYNPYF4.js";import"../chunk-KKSVRIMP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import{useBrowserLayoutEffect as r}from"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import{useShellStrings as i}from"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";import*as c from"react";import{createContext as s,memo as l,useRef as a,useEffect as o,useMemo as u,useId as y,useCallback as d,useReducer as p,useState as f,useContext as k}from"react";import{useLocation as m,useNavigate as h}from"react-router-dom";import{jsx as b,Fragment as v,jsxs as g}from"react/jsx-runtime";var j=s(null),K=s(null),N=12;var F=(e,t)=>e.filter(e=>e!==t);function T(e,t){return[...t.map(t=>e.find(e=>e.key===t)).filter(e=>Boolean(e)),...e.filter(e=>!t.includes(e.key))]}function M(e,t,n=12){const r=e.clock+1;let i;i=e.tabs.find(e=>e.key===t.key)?e.tabs.map(e=>e.key===t.key?{...e,path:t.path,title:"page"===e.titleFrom?e.title:t.title||e.title,lastActive:r}:e):[...e.tabs,{key:t.key,path:t.path,title:t.title,titleFrom:"route",pinned:!1,lastActive:r}];let c={...e,tabs:i,activeKey:t.key,mounted:(s=e.mounted,l=t.key,s.includes(l)?s:[...s,l]),clock:r};var s,l;return c.closing&&c.closing!==t.key?c=I(c,c.closing):c.closing===t.key&&(c={...c,closing:null}),function(e,t){let n=e;for(;n.tabs.length>t;){const e=n.tabs.filter(e=>!e.pinned&&e.key!==n.activeKey&&!n.dirty.includes(e.key)&&e.key!==n.closing).sort((e,t)=>e.lastActive-t.lastActive);if(0===e.length)break;n=I(n,e[0].key)}return n}(c,n)}function A(e){let t={...e,activeKey:null};return t.closing&&(t=I(t,t.closing)),t}function I(e,t){return{...e,tabs:e.tabs.filter(e=>e.key!==t),mounted:F(e.mounted,t),dirty:F(e.dirty,t),activeKey:e.activeKey===t?null:e.activeKey,closing:e.closing===t?null:e.closing}}function L(e,t){switch(t.type){case"visit":return M(e,t.entry,t.maxTabs);case"transient":return A(e);case"close":{let n=e;for(const e of t.keys)n=I(n,e);return t.closing?function(e,t){return{...e,closing:t}}(n,t.closing):n}case"title":return function(e,t,n){const r=e.tabs.find(e=>e.key===t);return!r||!n||r.title===n&&"page"===r.titleFrom?e:{...e,tabs:e.tabs.map(e=>e.key===t?{...e,title:n,titleFrom:"page"}:e)}}(e,t.key,t.title);case"dirty":return function(e,t,n){return n===e.dirty.includes(t)?e:{...e,dirty:n?[...e.dirty,t]:F(e.dirty,t)}}(e,t.key,t.dirty)}}var C=e=>`${e.pathname}${e.search}`;function W(e){const t=e.indexOf("#"),n=t>=0?e.slice(t):"",r=t>=0?e.slice(0,t):e,i=r.indexOf("?");return{pathname:i>=0?r.slice(0,i):r,search:i>=0?r.slice(i):"",hash:n}}function w({children:e,resolve:c,pinned:s=[],storageKey:l,maxTabs:k=12,enabled:v=!0,confirmDiscard:g}){const K=m(),N=h(),F=i().pageTabs,I=y(),w=a(c);w.current=c;const D=d(e=>{const t=w.current(e);return t?{key:t.key??e.pathname,path:C(e),title:t.title}:null},[]),{language:J}=t(),[Q,O]=p(L,void 0,()=>{const e=function(e,t,n){if(!e)return[];let r;try{r=JSON.parse(e)}catch{return[]}const i=r;if(!i||1!==i.v||!Array.isArray(i.tabs))return[];const c=Boolean(n&&"string"==typeof i.lang&&i.lang!==n),s=[];for(const e of i.tabs){if(!e||"string"!=typeof e.path||!e.path.startsWith("/")||e.path.startsWith("//"))continue;const n=e.path.indexOf("#"),r=n>=0?e.path.slice(0,n):e.path,i=t(r);if(!i||s.some(e=>e.key===i.key))continue;const l=!c&&"page"===e.titleFrom&&"string"==typeof e.title&&e.title;s.push({key:i.key,path:r,title:l||i.title,titleFrom:l?"page":"route",pinned:!1,lastActive:0})}return s}(function(e){if(!e)return null;try{return localStorage.getItem(e)}catch{return null}}(l),e=>D(W(e)),J);let t=function(e,t){const n=t.map(e=>e.key);let r=e.tabs.map(e=>({...e,pinned:n.includes(e.key)}));for(const e of t)r.some(t=>t.key===e.key)||(r=[...r,{key:e.key,path:e.path,title:e.title,titleFrom:"route",pinned:!0,lastActive:0}]);return{...e,tabs:T(r,n)}}({tabs:[],activeKey:null,mounted:[],dirty:[],closing:null,clock:0,tabs:e},s.map(e=>D(W(e))).filter(e=>Boolean(e)));const n=v?D(K):null;return t=n?M(t,n,k):A(t),t}),B=a(Q);B.current=Q;const x=a(/* @__PURE__ */new Map),P=v?D(K):null,R=P?.key??null;r(()=>{if(!v)return;const e=D(K);e?(x.current.set(e.key,K),O({type:"visit",entry:e,maxTabs:k})):O({type:"transient"})},[K,v,k,D]),o(()=>{const e=new Set(Q.tabs.map(e=>e.key));for(const t of x.current.keys())e.has(t)||x.current.delete(t)},[Q.tabs]);const S=u(()=>function(e,t){const n={v:1,...t?{lang:t}:{},tabs:e.tabs.filter(t=>t.key!==e.closing).map(({key:e,path:t,title:n,titleFrom:r})=>({key:e,path:t,title:n,titleFrom:r}))};return JSON.stringify(n)}(Q,J),[Q,J]);o(()=>{if(l)try{localStorage.setItem(l,S)}catch{}},[S,l]);const U=Q.dirty.length>0;o(()=>{if(!U)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[U]);const E=a(/* @__PURE__ */new Map),G=d((e,t)=>{let n=E.current.get(e);return void 0===n&&(n=E.current.size,E.current.set(e,n)),`${I}-page-${t}-${n}`},[I]),Y=d(e=>g?g(e):n({title:F.discardTitle,message:1===e.length?F.discardOne:F.discardCount?.(e.length)??`${e.length} ${F.discardMany}`,confirmLabel:F.discardConfirm,cancelLabel:F.keepEditing,variant:"warning"}),[g,F]),H=d(()=>{const e=B.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),$=d((e,t,n)=>{const r=B.current,i=r.activeKey;if(!i||!e.includes(i))return void O({type:"close",keys:e,closing:null});let c=t;if(!c){const t={...r,tabs:r.tabs.filter(t=>t.key===i||!e.includes(t.key))},s=n?r.tabs.find(t=>t.key===n&&!e.includes(t.key)):void 0;c=(s??function(e,t){const n=e.tabs.filter(n=>n.key!==e.closing||n.key===t),r=n.findIndex(e=>e.key===t);return r<0?null:n[r+1]??n[r-1]??null}(t,i))?.path??H()}O({type:"close",keys:e.filter(e=>e!==i),closing:i}),N(c)},[N,H]),V=d(async(e,t={})=>{const n=B.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&N(t.to),!1):!(!t.force&&B.current.dirty.includes(e)&&!await Y([n]))&&(!!B.current.tabs.some(t=>t.key===e)&&($([e],t.to),!0))},[Y,$,N]),X=d(async(e,t)=>{let n=function(e,t,n){const r=e.tabs.filter(e=>!e.pinned);if("all"===t)return r.map(e=>e.key);if("others"===t)return r.filter(e=>e.key!==n).map(e=>e.key);const i=e.tabs.findIndex(e=>e.key===n);return i<0?[]:e.tabs.slice(i+1).filter(e=>!e.pinned).map(e=>e.key)}(B.current,e,t);const r=B.current.tabs.filter(e=>n.includes(e.key)&&B.current.dirty.includes(e.key));r.length&&!await Y(r)&&(n=n.filter(e=>!r.some(t=>t.key===e)));const i=new Set(B.current.tabs.map(e=>e.key));n=n.filter(e=>i.has(e)),n.length&&$(n,void 0,"all"===e?null:t)},[Y,$]),Z=d(e=>{const t=B.current.tabs.find(t=>t.key===e);t&&e!==B.current.activeKey&&N(t.path)},[N]),z=d((e,t)=>O({type:"title",key:e,title:t}),[]),q=d((e,t)=>O({type:"dirty",key:e,dirty:t}),[]),[_,ee]=f({}),te=d((e,t)=>{ee(n=>{if((n[e]??null)===t)return n;const r={...n};return t?r[e]=t:delete r[e],r})},[]),ne=d(e=>D(e)?.key??null,[D]),re=d(e=>x.current.get(e),[]),ie=u(()=>v?Q.tabs.filter(e=>e.key!==Q.closing):[],[v,Q.tabs,Q.closing]),ce=u(()=>({enabled:v,state:Q,currentKey:R,resolve:c,keyFor:ne,locationFor:re,idFor:G,activate:Z,close:V,closeMany:X,setTitle:z,setDirty:q,copies:_,setCopy:te,visibleTabs:ie}),[v,Q,R,c,ne,re,G,Z,V,X,z,q,_,te,ie]);/* @__PURE__ */
|
|
3
|
+
return b(j.Provider,{value:ce,children:e})}var D=c.Activity,J=Boolean(D);function Q({active:e,children:t}){return D?/* @__PURE__ */b(D,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */b(v,{children:t})}var O=l(function({tabKey:e,active:t,location:n,render:i,className:c,panelId:s,tabId:l}){const y=a(null),d=a(t),p=a(/* @__PURE__ */new Map);r(()=>{const e=d.current;if(d.current=t,t&&!e)for(const[e,[t,n]]of p.current)e.isConnected?(e.scrollTop=t,e.scrollLeft=n):p.current.delete(e)},[t]),o(()=>{const e=y.current;if(!e)return;const t=e=>{if(!d.current)return;const t=e.target;t&&"number"==typeof t.scrollTop&&p.current.set(t,[t.scrollTop,t.scrollLeft])};return e.addEventListener("scroll",t,!0),()=>e.removeEventListener("scroll",t,!0)},[]);const f=u(()=>({key:e,activeRef:d}),[e]);/* @__PURE__ */
|
|
4
|
+
return b("div",{ref:y,role:s?"tabpanel":void 0,id:s,"aria-labelledby":l,hidden:!t,style:t?void 0:{display:"none"},className:c,"data-page-tab":e,children:/* @__PURE__ */b(K.Provider,{value:f,children:/* @__PURE__ */b(Q,{active:t,children:i(n)})})})},(e,t)=>e.active===t.active&&e.location===t.location&&e.className===t.className&&e.panelId===t.panelId&&e.tabId===t.tabId&&(!t.active||e.render===t.render)),B="\0transient";function x({children:e,frameClassName:t}){const n=k(j),r=m();if(!n||!n.enabled)/* @__PURE__ */
|
|
5
|
+
return b("div",{className:t,children:e(r)},B);const{state:i,currentKey:c,locationFor:s,idFor:l}=n,a=i.tabs.filter(e=>i.mounted.includes(e.key)).map(e=>e.key);return c&&!a.includes(c)&&a.push(c),/* @__PURE__ */g(v,{children:[a.map(n=>{const i=n===c,a=i?r:s(n);return a?/* @__PURE__ */b(O,{tabKey:n,active:i,location:a,render:e,className:t,panelId:l(n,"panel"),tabId:l(n,"tab")},n):null}),!c&&/* @__PURE__ */b(O,{tabKey:B,active:!0,location:r,render:e,className:t},B)]})}function P({className:t,activeClassName:n,end:r}){const c=k(j),s=i().pageTabs;if(!c||!c.enabled)return null;const{visibleTabs:l,state:a,idFor:o,activate:u,close:y,closeMany:d,resolve:p}=c;/* @__PURE__ */
|
|
6
|
+
return b(e,{tabs:l.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:a.dirty.includes(e.key),copy:c.copies[e.key],icon:p(W(e.path))?.icon})),activeKey:c.currentKey??null,idFor:o,panelMounted:e=>a.mounted.includes(e),onActivate:u,onClose:e=>{y(e)},onCloseMany:(e,t)=>{d(e,t)},label:s.label,className:t,activeClassName:n,end:r})}var R={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function S(){const e=k(j);return e&&e.enabled?{enabled:!0,tabs:e.visibleTabs,activeKey:e.currentKey,activate:e.activate,close:e.close,closeOthers:t=>e.closeMany("others",t),closeRight:t=>e.closeMany("right",t),closeAll:()=>e.closeMany("all",null)}:R}function U(){const e=k(j),t=k(K),n=h();return{key:e?.enabled&&t?t.key:null,close:d(async(r={})=>e?.enabled&&t&&e.state.tabs.some(e=>e.key===t.key)?e.close(t.key,r):(r.to&&n(r.to),!1),[e,t,n])}}function E(e){const t=k(j),n=k(K),r=t?.enabled?t.setTitle:void 0,i=n?.key;o(()=>{r&&i&&e&&r(i,e)},[r,i,e])}function G(e){const t=k(j),n=k(K),r=t?.enabled?t.setCopy:void 0,i=n?.key;o(()=>{if(r&&i)return r(i,e||null),()=>r(i,null)},[r,i,e])}function Y(e){const t=k(j),n=k(K),r=t?.enabled?t.setDirty:void 0;o(()=>{if(r&&n)return r(n.key,e),()=>{n.activeRef.current&&r(n.key,!1)}},[r,n,e])}export{N as DEFAULT_MAX_TABS,J as PAGE_TABS_PAUSE_HIDDEN,P as PageTabBar,x as PageTabsOutlet,w as PageTabsProvider,W as parseTabPath,U as usePageTab,G as usePageTabCopy,Y as usePageTabDirty,E as usePageTabTitle,S as usePageTabs};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-
|
|
2
|
+
export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-QWWJUYZI.js";import"../chunk-LNWQBSYD.js";import"../chunk-3DVNXNTF.js";import"../chunk-OW7MLJ3Y.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-UQYNPYF4.js";import"../chunk-KKSVRIMP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-D65T4H6J.js";import"../chunk-TWVUQUUD.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/Dialog.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, RefObject } from 'react';
|
|
3
3
|
import { DialogDirty } from './discardGuard.js';
|
|
4
4
|
|
|
@@ -88,6 +88,6 @@ interface DialogProps {
|
|
|
88
88
|
'aria-describedby'?: string;
|
|
89
89
|
className?: string;
|
|
90
90
|
}
|
|
91
|
-
declare function Dialog({ open, onClose, title, description, role, children, footer, blocking, size, aside, dirty, initialFocus, 'aria-label': ariaLabel, 'aria-labelledby': labelledBy, 'aria-describedby': describedBy, className, }: DialogProps):
|
|
91
|
+
declare function Dialog({ open, onClose, title, description, role, children, footer, blocking, size, aside, dirty, initialFocus, 'aria-label': ariaLabel, 'aria-labelledby': labelledBy, 'aria-describedby': describedBy, className, }: DialogProps): react_jsx_runtime.JSX.Element | null;
|
|
92
92
|
|
|
93
93
|
export { type DialogProps, type DialogSize, Dialog as default };
|
package/dist/shell/Dialog.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Dialog as default}from"../chunk-
|
|
2
|
+
export{Dialog as default}from"../chunk-LNWQBSYD.js";import"../chunk-3DVNXNTF.js";import"../chunk-OW7MLJ3Y.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-KKSVRIMP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-D65T4H6J.js";import"../chunk-TWVUQUUD.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/Drawer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, RefObject } from 'react';
|
|
3
3
|
import { DialogDirty } from './discardGuard.js';
|
|
4
4
|
|
|
@@ -48,6 +48,6 @@ interface DrawerProps {
|
|
|
48
48
|
'aria-describedby'?: string;
|
|
49
49
|
className?: string;
|
|
50
50
|
}
|
|
51
|
-
declare function Drawer({ open, onClose, side, size, title, description, footer, children, blocking, dirty, initialFocus, 'aria-label': ariaLabel, 'aria-labelledby': labelledBy, 'aria-describedby': describedBy, className, }: DrawerProps):
|
|
51
|
+
declare function Drawer({ open, onClose, side, size, title, description, footer, children, blocking, dirty, initialFocus, 'aria-label': ariaLabel, 'aria-labelledby': labelledBy, 'aria-describedby': describedBy, className, }: DrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
52
52
|
|
|
53
53
|
export { type DrawerProps, type DrawerSide, type DrawerSize, Drawer as default };
|
package/dist/shell/Drawer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Drawer as default}from"../chunk-
|
|
2
|
+
export{Drawer as default}from"../chunk-OTGQYHVC.js";import"../chunk-3DVNXNTF.js";import"../chunk-OW7MLJ3Y.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-KKSVRIMP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-D65T4H6J.js";import"../chunk-TWVUQUUD.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{useDiscardGuard}from"../chunk-
|
|
2
|
+
export{useDiscardGuard}from"../chunk-OW7MLJ3Y.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{startClientTelemetry}from"../chunk-
|
|
1
|
+
export{startClientTelemetry}from"../chunk-OKL56EZ5.js";import"../chunk-KNUR2UEG.js";import"../chunk-ANDANM5V.js";
|
|
@@ -44,7 +44,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, State> {
|
|
|
44
44
|
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
45
45
|
componentDidUpdate(prev: ErrorBoundaryProps): void;
|
|
46
46
|
reset: () => void;
|
|
47
|
-
render(): string | number | boolean |
|
|
47
|
+
render(): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | null | undefined;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export { type ErrorBoundaryProps, ErrorBoundary as default };
|
package/dist/ui/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import"../chunk-DSIDJYH7.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{DashboardTemplate}from"../chunk-UDRMZ22J.js";export{DataTablePage}from"../chunk-DLNIRZNR.js";export{EmailTemplate}from"../chunk-FFIQPFUR.js";export{ErrorBoundary}from"../chunk-CPZ42W2B.js";export{ErrorPage}from"../chunk-7SMV6G4Z.js";export{FormLayoutPage}from"../chunk-XKDBYJHF.js";export{GalleryTemplate}from"../chunk-WINNA7LS.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-7X5FABQS.js";export{ChatTemplate}from"../chunk-YJLLLO5R.js";export{CheckoutTemplate}from"../chunk-O45WQK57.js";export{TopNav}from"../chunk-2K2W6VIR.js";export{Statistic}from"../chunk-GGK27H67.js";export{Stepper}from"../chunk-XNKIDGZW.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-3NW5LD7D.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-WN5HHHLO.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-A4HJDSRA.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-SOECV4V5.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-ZNAVCHBV.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-ZUS7FXKE.js";export{ResizeHandle}from"../chunk-DRDYZ633.js";export{SettingReset}from"../chunk-SO6X4CII.js";export{SettingRow}from"../chunk-ULXCDM7Y.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-PXDDCD5X.js";export{MetricBar}from"../chunk-IOJNSX4N.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-KJ4CBZEQ.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-AM2F5ZXH.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-3CPB3WP2.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-YDEIXM2A.js";export{PageHeader}from"../chunk-OZBM2XFQ.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-N67QX3WW.js";export{GlobalSearch,openGlobalSearch}from"../chunk-IPFWXM2Y.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-LTKXAHS3.js";export{IconRail,IconRailButton}from"../chunk-D7F442OZ.js";import"../chunk-FQEALPZJ.js";export{CountBadge}from"../chunk-LEDUD23S.js";export{EditableGrid}from"../chunk-SDQIXE5M.js";export{Avatar,AvatarGroup}from"../chunk-DKGZPVLL.js";export{BudgetBar,budgetState}from"../chunk-UTWJKSET.js";export{Card,StatCard}from"../chunk-TOVKWNI2.js";export{ContainerFillChart}from"../chunk-ON67HF5K.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-UPQW4GCT.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-H4HB5OET.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-CAVADOJK.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-QTV3Y3UT.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{WidthsBar}from"../chunk-G5NQOV7L.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{Snippet}from"../chunk-MXH3UPCH.js";export{SplitButton_default as SplitButton}from"../chunk-WTTSB4SV.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-CGQAKGPT.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-UBOP6HFI.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-CHBRMAJV.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-4BYJQU37.js";export{PositionInput}from"../chunk-6PFZK6ED.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-7X3XNVES.js";export{Slider,SliderGroup}from"../chunk-7Z4PTLDL.js";export{LinkPicker,TextLinkField}from"../chunk-5S3YYN7M.js";export{SearchableSelect}from"../chunk-SWN3LSQX.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-YATWJMLM.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-KP2THXEI.js";import"../chunk-I2XGPTCN.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-63L5ORRZ.js";export{ImageLightbox,lightboxKind}from"../chunk-QQPIQCT7.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-AKJHVOSD.js";export{Breadcrumbs}from"../chunk-O4V5PEA3.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-7YOQS3C6.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-ZURB2DCM.js";import"../chunk-MQU3PZUS.js";export{DropdownMenu}from"../chunk-A5BV6NFA.js";export{NativeSelect,Select_default as Select}from"../chunk-N4DI5F74.js";import"../chunk-EO5RLFRX.js";import"../chunk-QODTON7V.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-2VTO64YC.js";export{MediaUsedInList}from"../chunk-PBWUEBJ5.js";export{NumericKeypad}from"../chunk-UWIZX3RK.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-GISDIVFK.js";export{FilePicker_default as FilePicker}from"../chunk-LOFYSLC7.js";export{FormErrorSummary}from"../chunk-QYRMFGES.js";export{IconPicker}from"../chunk-YWDEFPSW.js";export{CornersInput}from"../chunk-YCOYCPAH.js";export{DatePicker_default as DatePicker}from"../chunk-632N62BY.js";export{DateRangePicker,toISODate}from"../chunk-MNXRAZJV.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-XO7URRTM.js";export{DisplayChips}from"../chunk-ORIGX2H5.js";export{slugify}from"../chunk-24AL3CDS.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{AlignmentGrid}from"../chunk-O6JJIR4H.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-GNHLVGG5.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-SF654IHN.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-QEKOEIOQ.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{BrandAssetEditor}from"../chunk-JRZ7PPVJ.js";export{MediaUploadField}from"../chunk-YGSU5KCP.js";export{FormField}from"../chunk-6KBDNYRW.js";export{ImageFocusPoint}from"../chunk-VKKK4WLS.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{Segmented}from"../chunk-3ELLBQPS.js";import"../chunk-JDQGHQ2C.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar,fromKey as fromDateKey,toKey as toDateKey}from"../chunk-E5MVH3SH.js";export{DataTable}from"../chunk-W6URVLQF.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-LDE5IV2M.js";export{ListFooter}from"../chunk-EZEYKCI6.js";export{ListLoadError}from"../chunk-3RORPK2J.js";export{Pagination}from"../chunk-ULAGXDOL.js";export{WaterfallChart}from"../chunk-2SY76NFO.js";export{SankeyChart}from"../chunk-TMNAHOJ7.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-W35N7SL3.js";export{StatTile}from"../chunk-HNBGLF4B.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-RCPFUDPS.js";export{TreemapChart}from"../chunk-JSGQWVYH.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-PJQGYKN6.js";export{HistogramChart}from"../chunk-ZZVE64OI.js";export{Meter}from"../chunk-AUWTGM65.js";export{PieChart}from"../chunk-LCJRTJXT.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-Y3R267FV.js";export{RadialBarChart}from"../chunk-IKNG7EFQ.js";export{RangeChart}from"../chunk-RPYFOQM2.js";export{RankedBars}from"../chunk-KEPJWZJZ.js";export{ChordChart}from"../chunk-PN65IIYN.js";import"../chunk-TKJBZIHT.js";export{FunnelChart}from"../chunk-EU3JZGV2.js";export{StepChain,StepChainItem}from"../chunk-P5YFQ4IQ.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-MBXLROCD.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{ContextMenu,useContextMenu}from"../chunk-W6SC3ZNO.js";export{Banner}from"../chunk-GSKLHUQ6.js";import"../chunk-DDCMMOB4.js";export{Input_default as Input}from"../chunk-MAMWQCJ6.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-EYZZW6SO.js";export{IconButton_default as IconButton}from"../chunk-PUF75SMJ.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{mediaFileName}from"../chunk-67JCJ2MG.js";export{TransferProgress}from"../chunk-UYRITNQW.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-6RX4PVBU.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-35DG7Y4M.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-X2S2XDZI.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-5OTS2G3M.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{TimeSeriesChart}from"../chunk-WMEYNKXZ.js";export{ChartBrush}from"../chunk-INNIWRVU.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-W5CJD54C.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-CBEKJTXU.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-M22B3Y5Y.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-URERZUX5.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-ZDMZM7HD.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-MTX5LMJD.js";export{Dialog}from"../chunk-XLYCWGTK.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{ItemCount}from"../chunk-QHOBK35Y.js";import"../chunk-SDI2UGAG.js";import"../chunk-YMYY5G6V.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-AKM6JBMD.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ColoredBadge}from"../chunk-PXQG5EIH.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{VERSION}from"../chunk-6OMCCEYA.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-37U326EL.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-TXDA7TTP.js";export{Button_default as Button}from"../chunk-I4VIEGCX.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";export{Icon}from"../chunk-KKSVRIMP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-MVZRZTQP.js";export{Tooltip}from"../chunk-6XBWM453.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-AJO72CPB.js";export{CandlestickChart}from"../chunk-VTFZ6W2D.js";export{ChartTooltip}from"../chunk-G4GVLK44.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-F27JJHNJ.js";export{CartesianPlot}from"../chunk-2JG5JU4M.js";import"../chunk-QP4UPCXQ.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
|
2
|
+
import"../chunk-DSIDJYH7.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{DashboardTemplate}from"../chunk-UDRMZ22J.js";export{DataTablePage}from"../chunk-DLNIRZNR.js";export{EmailTemplate}from"../chunk-FFIQPFUR.js";export{ErrorBoundary}from"../chunk-CPZ42W2B.js";export{ErrorPage}from"../chunk-7SMV6G4Z.js";export{FormLayoutPage}from"../chunk-XKDBYJHF.js";export{GalleryTemplate}from"../chunk-WINNA7LS.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-7X5FABQS.js";export{ChatTemplate}from"../chunk-YJLLLO5R.js";export{CheckoutTemplate}from"../chunk-O45WQK57.js";export{TopNav}from"../chunk-2K2W6VIR.js";export{Statistic}from"../chunk-GGK27H67.js";export{Stepper}from"../chunk-XNKIDGZW.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-3NW5LD7D.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-WN5HHHLO.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-A4HJDSRA.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-SOECV4V5.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-ZNAVCHBV.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-ZUS7FXKE.js";export{ResizeHandle}from"../chunk-DRDYZ633.js";export{SettingReset}from"../chunk-SO6X4CII.js";export{SettingRow}from"../chunk-ULXCDM7Y.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-PXDDCD5X.js";export{MetricBar}from"../chunk-IOJNSX4N.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-KJ4CBZEQ.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-AM2F5ZXH.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-3CPB3WP2.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-YDEIXM2A.js";export{PageHeader}from"../chunk-OZBM2XFQ.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-N67QX3WW.js";export{GlobalSearch,openGlobalSearch}from"../chunk-IPFWXM2Y.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-LTKXAHS3.js";export{IconRail,IconRailButton}from"../chunk-D7F442OZ.js";import"../chunk-FQEALPZJ.js";export{CountBadge}from"../chunk-LEDUD23S.js";export{EditableGrid}from"../chunk-SDQIXE5M.js";export{Avatar,AvatarGroup}from"../chunk-DKGZPVLL.js";export{BudgetBar,budgetState}from"../chunk-UTWJKSET.js";export{Card,StatCard}from"../chunk-TOVKWNI2.js";export{ContainerFillChart}from"../chunk-ON67HF5K.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-UPQW4GCT.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-H4HB5OET.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-CAVADOJK.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-QTV3Y3UT.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{WidthsBar}from"../chunk-G5NQOV7L.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{Snippet}from"../chunk-MXH3UPCH.js";export{SplitButton_default as SplitButton}from"../chunk-WTTSB4SV.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-CGQAKGPT.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-UBOP6HFI.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-CHBRMAJV.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-4BYJQU37.js";export{PositionInput}from"../chunk-6PFZK6ED.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-7X3XNVES.js";export{Slider,SliderGroup}from"../chunk-7Z4PTLDL.js";export{LinkPicker,TextLinkField}from"../chunk-5S3YYN7M.js";export{SearchableSelect}from"../chunk-SWN3LSQX.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-GTNJAKFO.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-KP2THXEI.js";import"../chunk-I2XGPTCN.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-63L5ORRZ.js";export{ImageLightbox,lightboxKind}from"../chunk-QQPIQCT7.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-OTGQYHVC.js";export{Breadcrumbs}from"../chunk-O4V5PEA3.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-7YOQS3C6.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-ZURB2DCM.js";import"../chunk-MQU3PZUS.js";export{DropdownMenu}from"../chunk-A5BV6NFA.js";export{NativeSelect,Select_default as Select}from"../chunk-N4DI5F74.js";import"../chunk-EO5RLFRX.js";import"../chunk-QODTON7V.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-2VTO64YC.js";export{MediaUsedInList}from"../chunk-PBWUEBJ5.js";export{NumericKeypad}from"../chunk-UWIZX3RK.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-GISDIVFK.js";export{FilePicker_default as FilePicker}from"../chunk-LOFYSLC7.js";export{FormErrorSummary}from"../chunk-QYRMFGES.js";export{IconPicker}from"../chunk-YWDEFPSW.js";export{CornersInput}from"../chunk-YCOYCPAH.js";export{DatePicker_default as DatePicker}from"../chunk-632N62BY.js";export{DateRangePicker,toISODate}from"../chunk-MNXRAZJV.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-XO7URRTM.js";export{DisplayChips}from"../chunk-ORIGX2H5.js";export{slugify}from"../chunk-24AL3CDS.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{AlignmentGrid}from"../chunk-O6JJIR4H.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-GNHLVGG5.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-SF654IHN.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-QEKOEIOQ.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{BrandAssetEditor}from"../chunk-JRZ7PPVJ.js";export{MediaUploadField}from"../chunk-YGSU5KCP.js";export{FormField}from"../chunk-6KBDNYRW.js";export{ImageFocusPoint}from"../chunk-VKKK4WLS.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{Segmented}from"../chunk-3ELLBQPS.js";import"../chunk-JDQGHQ2C.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar,fromKey as fromDateKey,toKey as toDateKey}from"../chunk-E5MVH3SH.js";export{DataTable}from"../chunk-W6URVLQF.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-LDE5IV2M.js";export{ListFooter}from"../chunk-EZEYKCI6.js";export{ListLoadError}from"../chunk-3RORPK2J.js";export{Pagination}from"../chunk-ULAGXDOL.js";export{WaterfallChart}from"../chunk-2SY76NFO.js";export{SankeyChart}from"../chunk-TMNAHOJ7.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-W35N7SL3.js";export{StatTile}from"../chunk-HNBGLF4B.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-RCPFUDPS.js";export{TreemapChart}from"../chunk-JSGQWVYH.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-PJQGYKN6.js";export{HistogramChart}from"../chunk-ZZVE64OI.js";export{Meter}from"../chunk-AUWTGM65.js";export{PieChart}from"../chunk-LCJRTJXT.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-Y3R267FV.js";export{RadialBarChart}from"../chunk-IKNG7EFQ.js";export{RangeChart}from"../chunk-RPYFOQM2.js";export{RankedBars}from"../chunk-KEPJWZJZ.js";export{ChordChart}from"../chunk-PN65IIYN.js";import"../chunk-TKJBZIHT.js";export{FunnelChart}from"../chunk-EU3JZGV2.js";export{StepChain,StepChainItem}from"../chunk-P5YFQ4IQ.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-MBXLROCD.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{ContextMenu,useContextMenu}from"../chunk-W6SC3ZNO.js";export{Banner}from"../chunk-GSKLHUQ6.js";import"../chunk-DDCMMOB4.js";export{Input_default as Input}from"../chunk-MAMWQCJ6.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-EYZZW6SO.js";export{IconButton_default as IconButton}from"../chunk-PUF75SMJ.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{mediaFileName}from"../chunk-67JCJ2MG.js";export{TransferProgress}from"../chunk-UYRITNQW.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-6RX4PVBU.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-35DG7Y4M.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-X2S2XDZI.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-5OTS2G3M.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{TimeSeriesChart}from"../chunk-WMEYNKXZ.js";export{ChartBrush}from"../chunk-INNIWRVU.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-W5CJD54C.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-CBEKJTXU.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-M22B3Y5Y.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-URERZUX5.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-ZDMZM7HD.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-QWWJUYZI.js";export{Dialog}from"../chunk-LNWQBSYD.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{ItemCount}from"../chunk-QHOBK35Y.js";import"../chunk-3DVNXNTF.js";import"../chunk-OW7MLJ3Y.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-AKM6JBMD.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ColoredBadge}from"../chunk-PXQG5EIH.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{VERSION}from"../chunk-ANDANM5V.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-37U326EL.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-TXDA7TTP.js";export{Button_default as Button}from"../chunk-I4VIEGCX.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";export{Icon}from"../chunk-KKSVRIMP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-MVZRZTQP.js";export{Tooltip}from"../chunk-6XBWM453.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-AJO72CPB.js";export{CandlestickChart}from"../chunk-VTFZ6W2D.js";export{ChartTooltip}from"../chunk-G4GVLK44.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-F27JJHNJ.js";export{CartesianPlot}from"../chunk-2JG5JU4M.js";import"../chunk-QP4UPCXQ.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{APP_VERSION,VERSION}from"./chunk-
|
|
1
|
+
export{APP_VERSION,VERSION}from"./chunk-ANDANM5V.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.4.0",
|
|
4
4
|
"description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Efficient Pty Ltd",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-XDQGIW4X.js";import{useWidgetSettings as n}from"./chunk-RP3GUVAI.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-URERZUX5.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-RBQWIHYD.js";import"./chunk-MTX5LMJD.js";import"./chunk-XLYCWGTK.js";import"./chunk-KC3EX26K.js";import"./chunk-QHOBK35Y.js";import"./chunk-SDI2UGAG.js";import"./chunk-YMYY5G6V.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import"./chunk-UGTRSRIW.js";import"./chunk-PXQG5EIH.js";import"./chunk-CDAJKLGL.js";import"./chunk-37U326EL.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-TXDA7TTP.js";import"./chunk-I4VIEGCX.js";import"./chunk-UQYNPYF4.js";import"./chunk-34URULVW.js";import{Icon as r}from"./chunk-KKSVRIMP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-MVZRZTQP.js";import"./chunk-6XBWM453.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-F27JJHNJ.js";import"./chunk-TWVUQUUD.js";import"./chunk-4PAWQEXM.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as l,useEffect as o}from"react";import{jsxs as s,Fragment as a,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function m(){const[m,k]=c("0"),[p,d]=c(null),[b,g]=c(null),[j,N]=c(!1),[y,x]=c(""),[f,C]=c([]),[v,$]=c(!1),[W,E]=c(()=>e(h)),[T,U]=c(!1),[D,G]=c(W),M=i(null);n(l(()=>{G({...W}),U(!0)},[W]));const R=l(e=>{x(""),k(t=>j||"0"===t?(N(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[j]),X=l(()=>{k("0"),d(null),g(null),N(!1)},[]),w=l((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}},[]),A=l(e=>{const t=parseFloat(m);if(null!==p&&b&&!j){const e=w(p,t,b);k(String(e)),d(e),C(n=>[`${p} ${b} ${t} = ${e}`,...n].slice(0,20))}else d(t);g(e),N(!0)},[m,p,b,j,w]),J=l(()=>{if(null===p||!b)return;const e=parseFloat(m),t=w(p,e,b),n=`${p} ${b} ${e} =`;C(e=>[`${n} ${t}`,...e].slice(0,20)),x(n),k(String(t)),d(null),g(null),N(!0)},[m,p,b,w]),Q=l(()=>{k(e=>String(parseFloat(e)/100))},[]),S=l(()=>{k(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);o(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?R(e.key):"."===e.key?R("."):"+"===e.key?A("+"):"-"===e.key?A("-"):"*"===e.key?A("×"):"/"===e.key?(e.preventDefault(),A("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&M.current?.contains(e.target)&&e.preventDefault(),J()):"Escape"===e.key?X():"Backspace"===e.key?k(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&Q())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[R,A,J,X,Q]);const H="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",I=`${H} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,K=`${H} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,L=`${H} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,P=`${H} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
|
|
2
|
-
return s(a,{children:[
|
|
3
|
-
/* @__PURE__ */s("div",{ref:M,className:"flex flex-col h-full",style:{opacity:W.activeOpacity/100,backdropFilter:W.activeBlur>0?`blur(${W.activeBlur}px)`:void 0},children:[
|
|
4
|
-
/* @__PURE__ */s("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__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:f.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:e},t))}),(y||b&&null!==p)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:y||`${p} ${b} ${j?"":m}`}),
|
|
6
|
-
/* @__PURE__ */s("div",{className:"flex items-center gap-2",children:[
|
|
7
|
-
/* @__PURE__ */u("button",{onClick:()=>{navigator.clipboard.writeText(m),$(!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__ */u(r,v?{name:"check",className:"h-5 w-5 text-green-500",strokeWidth:2}:{name:"copy",className:"h-5 w-5",strokeWidth:2})}),
|
|
8
|
-
/* @__PURE__ */u("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)})(m)})]})]}),
|
|
9
|
-
/* @__PURE__ */s("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
|
|
10
|
-
/* @__PURE__ */u("button",{onClick:X,className:L,children:"AC"}),
|
|
11
|
-
/* @__PURE__ */u("button",{onClick:S,className:L,children:"+/−"}),
|
|
12
|
-
/* @__PURE__ */u("button",{onClick:Q,className:L,children:"%"}),
|
|
13
|
-
/* @__PURE__ */u("button",{onClick:()=>A("÷"),className:`${K} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
|
|
14
|
-
/* @__PURE__ */u("button",{onClick:()=>R("7"),className:I,children:"7"}),
|
|
15
|
-
/* @__PURE__ */u("button",{onClick:()=>R("8"),className:I,children:"8"}),
|
|
16
|
-
/* @__PURE__ */u("button",{onClick:()=>R("9"),className:I,children:"9"}),
|
|
17
|
-
/* @__PURE__ */u("button",{onClick:()=>A("×"),className:`${K} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
|
|
18
|
-
/* @__PURE__ */u("button",{onClick:()=>R("4"),className:I,children:"4"}),
|
|
19
|
-
/* @__PURE__ */u("button",{onClick:()=>R("5"),className:I,children:"5"}),
|
|
20
|
-
/* @__PURE__ */u("button",{onClick:()=>R("6"),className:I,children:"6"}),
|
|
21
|
-
/* @__PURE__ */u("button",{onClick:()=>A("-"),className:`${K} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
|
|
22
|
-
/* @__PURE__ */u("button",{onClick:()=>R("1"),className:I,children:"1"}),
|
|
23
|
-
/* @__PURE__ */u("button",{onClick:()=>R("2"),className:I,children:"2"}),
|
|
24
|
-
/* @__PURE__ */u("button",{onClick:()=>R("3"),className:I,children:"3"}),
|
|
25
|
-
/* @__PURE__ */u("button",{onClick:()=>A("+"),className:`${K} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
|
|
26
|
-
/* @__PURE__ */u("button",{onClick:()=>R("0"),className:`${I} col-span-2`,children:"0"}),
|
|
27
|
-
/* @__PURE__ */u("button",{onClick:()=>R("."),className:I,children:"."}),
|
|
28
|
-
/* @__PURE__ */u("button",{onClick:J,className:P,children:"="})]})]}),
|
|
29
|
-
/* @__PURE__ */u(t,{open:T,onClose:()=>U(!1),title:"Calculator Settings",appearance:D,onAppearanceChange:G,onSave:()=>{E(D),localStorage.setItem(h,JSON.stringify(D)),U(!1)}})]})}export{m as default};
|
package/dist/chunk-6OMCCEYA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="10.2.1",a=r;export{a as APP_VERSION,r as VERSION};
|
package/dist/chunk-AKJHVOSD.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{useOverlayTarget as e,OverlayLayerProvider as r}from"./chunk-SDI2UGAG.js";import{useDiscardGuard as i}from"./chunk-YMYY5G6V.js";import{dialogA11y as o}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as t}from"./chunk-PKXQDCNR.js";import{useFocusTrap as l,useScrollLock as s}from"./chunk-CDAJKLGL.js";import{Icon as a}from"./chunk-KKSVRIMP.js";import{Z_LAYERS as n}from"./chunk-62LW225J.js";import{useHydrated as d}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as c}from"./chunk-TWVUQUUD.js";import{useShellStrings as m}from"./chunk-4PAWQEXM.js";import{useRef as h,useId as u,useState as f,useEffect as p}from"react";import{createPortal as b}from"react-dom";import{jsx as x,jsxs as y}from"react/jsx-runtime";var g={sm:"sm:w-[320px]",md:"sm:w-[448px]",lg:"sm:w-[640px]"},v={right:"inset-y-0 right-0",left:"inset-y-0 left-0",bottom:"inset-x-0 bottom-0"};function k({onClose:e}){const r=m().dialog;/* @__PURE__ */
|
|
2
|
-
return x("button",{type:"button",onClick:e,"aria-label":r.close,className:"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__ */x(a,{name:"close",className:"h-5 w-5",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})})}function N({open:a,onClose:m,side:N="right",size:j="md",title:w,description:C,footer:W,children:D,blocking:G=!1,dirty:A=!1,initialFocus:I,"aria-label":K,"aria-labelledby":L,"aria-describedby":U,className:V=""}){const Y=h(null),z=u(),J=u(),M=u(),P=e(d()),[Q,B]=f(null),H=i({open:a,dirty:A,onClose:m,title:w,layer:Q});if(t(a),l(Y,a&&null!==P,I),s(a),p(()=>{if(a)return c(()=>(G||H(),!0),()=>Y.current)},[a,G,H]),!a||!P)return null;const R="bottom"===N,S=R?{maxHeight:"85vh"}:void 0;return b(
|
|
3
|
-
/* @__PURE__ */x(r,{value:Q,children:/* @__PURE__ */y("div",{ref:B,className:"fixed inset-0",style:{zIndex:n.overlay},role:"presentation","data-overlay-layer":"",children:[
|
|
4
|
-
/* @__PURE__ */x("div",{className:"fixed inset-0 bg-black/30",onClick:G?void 0:H,"aria-hidden":"true"}),
|
|
5
|
-
/* @__PURE__ */y("div",{ref:Y,...o({modal:!0,titleId:w?M:void 0,labelledBy:L,label:K}),"aria-describedby":U??(C?J:D?z:void 0),"data-drawer-side":N,style:S,className:["fixed flex flex-col bg-white shadow-xl",R?"":`w-full max-w-full ${g[j]}`,v[N],R?"rounded-t-xl":"",V].filter(Boolean).join(" "),children:[w?/* @__PURE__ */y("div",{className:"flex shrink-0 items-center justify-between gap-4 border-b border-gray-100 px-4 py-3",children:[
|
|
6
|
-
/* @__PURE__ */y("div",{className:"min-w-0",children:[
|
|
7
|
-
/* @__PURE__ */x("h2",{id:M,className:"text-base font-semibold text-gray-900",children:w}),C&&/* @__PURE__ */x("p",{id:J,className:"mt-0.5 text-sm text-gray-500",children:C})]}),!G&&/* @__PURE__ */x(k,{onClose:H})]}):!G&&/* @__PURE__ */x("div",{className:"absolute right-2 top-2 z-10",children:/* @__PURE__ */x(k,{onClose:H})}),
|
|
8
|
-
/* @__PURE__ */y("div",{id:z,className:"min-h-0 flex-1 overflow-y-auto px-4 py-4",children:[C&&!w&&/* @__PURE__ */x("p",{id:J,className:("mb-3 text-sm text-gray-500 "+(G?"":"pr-8")).trim(),children:C}),D]}),W&&/* @__PURE__ */x("div",{className:"flex shrink-0 justify-end gap-3 border-t border-gray-100 px-4 py-3",children:W})]})]})}),P)}export{N as Drawer};
|
package/dist/chunk-SDI2UGAG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createContext as n,useContext as e}from"react";var t=n(void 0),o=t.Provider;function r(n){const o=e(t);return n?void 0===o?document.body:o:null}function i(n,e){if("undefined"==typeof Element||!(n instanceof Element))return!1;const t=n.closest("[data-overlay-layer]");return null!==t&&!e?.contains(t)}export{o as OverlayLayerProvider,i as isInOverlayOver,r as useOverlayTarget};
|
package/dist/chunk-XLYCWGTK.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{useOverlayTarget as e,OverlayLayerProvider as r}from"./chunk-SDI2UGAG.js";import{useDiscardGuard as i}from"./chunk-YMYY5G6V.js";import{dialogA11y as t}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as o}from"./chunk-PKXQDCNR.js";import{useFocusTrap as a,useScrollLock as l}from"./chunk-CDAJKLGL.js";import{Icon as s}from"./chunk-KKSVRIMP.js";import{Z_LAYERS as n}from"./chunk-62LW225J.js";import{useHydrated as d}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as c}from"./chunk-TWVUQUUD.js";import{useShellStrings as m}from"./chunk-4PAWQEXM.js";import{useRef as u,useId as f,useState as h,useEffect as p}from"react";import{createPortal as x}from"react-dom";import{jsx as v,jsxs as b}from"react/jsx-runtime";var g={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-4xl","2xl":"max-w-6xl"};function y({open:y,onClose:k,title:j,description:N,role:w="dialog",children:C,footer:W,blocking:D=!1,size:G="md",aside:A=!1,dirty:I=!1,initialFocus:K,"aria-label":L,"aria-labelledby":U,"aria-describedby":V,className:Y=""}){const J=u(null),M=f(),P=f(),Q=!D,T=f(),z=m().dialog,R=e(d()),[S,X]=h(null),$=i({open:y,dirty:I,onClose:k,title:j,layer:S});return o(y),a(J,y&&null!==R,K),l(y),p(()=>{if(y)return c(()=>(D||$(),!0),()=>J.current)},[y,D,$]),y&&R?x(
|
|
2
|
-
/* @__PURE__ */v(r,{value:S,children:/* @__PURE__ */b("div",{ref:X,className:"fixed inset-0"+(A?" pointer-events-none opacity-0":""),style:{zIndex:n.overlay},role:"presentation","data-overlay-layer":"","data-aside":A?"":void 0,children:[
|
|
3
|
-
/* @__PURE__ */v("div",{className:"fixed inset-0 bg-black/30","aria-hidden":"true"}),
|
|
4
|
-
/* @__PURE__ */v("div",{className:"fixed inset-0 flex items-center justify-center p-4",onClick:D?void 0:e=>{e.target===e.currentTarget&&$()},children:/* @__PURE__ */b("div",{ref:J,...t({role:w,modal:!0,titleId:j?T:void 0,labelledBy:U,label:L}),"aria-describedby":V??(N?P:C?M:void 0),className:`relative max-h-full w-full ${g[G]} overflow-y-auto overscroll-contain rounded-(--radius-card) bg-white p-6 shadow-xl ${Y}`.trim(),children:[j&&/* @__PURE__ */v("h2",{id:T,className:(Q?"pr-8 ":"")+"text-base font-semibold text-gray-900",children:j}),N&&/* @__PURE__ */v("p",{id:P,className:((j?"mt-1":Q?"pr-8":"")+" text-sm text-gray-500").trim(),children:N}),C&&/* @__PURE__ */v("div",{id:M,className:"mt-2 text-sm text-gray-600",children:C}),W&&/* @__PURE__ */v("div",{className:"mt-6 flex flex-wrap justify-end gap-3",children:W}),Q&&/* @__PURE__ */v("button",{type:"button",onClick:$,"aria-label":z.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__ */v(s,{name:"close",className:"h-5 w-5",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})})]})})]})}),R):null}export{y as Dialog};
|
|
File without changes
|