efficient-shell 14.7.0 → 15.1.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 (53) hide show
  1. package/README.md +3 -2
  2. package/dist/{Browser-HX3QY73A.js → Browser-MILMPZK2.js} +12 -12
  3. package/dist/{Calculator-TJDZOTG7.js → Calculator-MW7S4UKX.js} +22 -22
  4. package/dist/{CurrencyConverter-JL5JIVJG.js → CurrencyConverter-P3HQXUX2.js} +6 -6
  5. package/dist/{Files-EQBPHAUH.js → Files-QNAN5FCH.js} +79 -79
  6. package/dist/{Notepad-5BQUYQNJ.js → Notepad-VXENTPT2.js} +9 -9
  7. package/dist/{PomodoroTimer-7W5ZHKUL.js → PomodoroTimer-LJ6VBFGX.js} +4 -4
  8. package/dist/{Preview-ZHZ4CEWF.js → Preview-I35MWZBC.js} +1 -1
  9. package/dist/{Stock-S3LKKT3K.js → Stock-USRT7FDU.js} +4 -4
  10. package/dist/{Weather-KEOJ3BBV.js → Weather-CMA5QQYM.js} +17 -17
  11. package/dist/{WorldClock-GKMDG2KU.js → WorldClock-WQ3XGK2J.js} +6 -6
  12. package/dist/ai/index.js +8 -8
  13. package/dist/apps/index.js +1 -1
  14. package/dist/bin/browser-check.js +1 -1
  15. package/dist/bin/media-host-check.js +1 -1
  16. package/dist/bin/ui-check.js +1 -1
  17. package/dist/brand.css +1 -1
  18. package/dist/{chunk-NRX6JQV5.js → chunk-4RF3C523.js} +1 -1
  19. package/dist/chunk-B34UWI47.js +1 -0
  20. package/dist/{chunk-727NHWCZ.js → chunk-F7J7XRVI.js} +1 -1
  21. package/dist/{chunk-HOPHOF2C.js → chunk-KETNB4NQ.js} +1 -1
  22. package/dist/{chunk-WBUAO7T7.js → chunk-O7A7PH3R.js} +1 -1
  23. package/dist/chunk-OJYEGB74.js +28 -0
  24. package/dist/chunk-SH7PJC4P.js +1 -0
  25. package/dist/{chunk-UZATF4OZ.js → chunk-SYUCEN76.js} +38 -38
  26. package/dist/{chunk-U5OSLUDU.js → chunk-ULSVYSVN.js} +1 -1
  27. package/dist/chunk-WBZO6WRU.js +8 -0
  28. package/dist/{chunk-LJS7UF3M.js → chunk-XFN4DOXP.js} +3 -3
  29. package/dist/{chunk-GRZPIV2G.js → chunk-YTLUSBDY.js} +4 -4
  30. package/dist/data/ListToolbar.js +1 -1
  31. package/dist/data/statusColumn.js +1 -1
  32. package/dist/forms/LinkPicker.js +1 -1
  33. package/dist/forms/MediaLibrary.js +1 -1
  34. package/dist/icons/index.js +1 -1
  35. package/dist/index.d.ts +1 -1
  36. package/dist/index.js +57 -57
  37. package/dist/routine-index.json +1 -1
  38. package/dist/shell/Drawer.d.ts +4 -5
  39. package/dist/shell/Drawer.js +1 -1
  40. package/dist/shell/LanguageSelect.js +1 -1
  41. package/dist/telemetry/index.js +1 -1
  42. package/dist/tokens/spacing.d.ts +4 -3
  43. package/dist/tokens/spacing.js +1 -1
  44. package/dist/ui/index.d.ts +1 -1
  45. package/dist/ui/index.js +1 -1
  46. package/dist/ui.css +6 -4
  47. package/dist/value-index.json +1 -1
  48. package/dist/version.js +1 -1
  49. package/package.json +1 -1
  50. package/dist/chunk-5IXCLPVZ.js +0 -1
  51. package/dist/chunk-AW7TOB6N.js +0 -1
  52. package/dist/chunk-DTFX624I.js +0 -8
  53. package/dist/chunk-ERI63O4A.js +0 -28
@@ -0,0 +1,8 @@
1
+ import{useOverlayTarget as e,usePopupAnchor as i,usePopupLevel as r,usePopupLevelBindings as t,windowScrimStyle as o,OverlayLayerProvider as n,scrimHasCorners as l,popupLayerStyle as a}from"./chunk-CJ4OEY3T.js";import{CloseButton as d}from"./chunk-AH5MLH54.js";import{useDiscardGuard as s}from"./chunk-5YTZBYG4.js";import{dialogA11y as c}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as m}from"./chunk-DBQNYJZ6.js";import{useFocusTrap as p,useScrollLock as u}from"./chunk-DWGYC7OD.js";import{HEADING_TEXT as h,DESCRIPTION_TEXT as f,PANEL_SURFACE as b}from"./chunk-BWJZTHZ6.js";import{useHydrated as v}from"./chunk-KEFNQEXZ.js";import{registerModalEscapeInterceptor as y}from"./chunk-TWVUQUUD.js";import{useRef as x,useId as k,useState as N,useEffect as j}from"react";import{createPortal as w}from"react-dom";import{jsxs as g,Fragment as C,jsx as Y}from"react/jsx-runtime";function Z({open:Z,onClose:B,side:H="bottom",title:W,description:D,footer:E,children:T,blocking:$=!1,dirty:G=!1,initialFocus:J,"aria-label":Q,"aria-labelledby":U,"aria-describedby":A,className:F=""}){const O=x(null),V=k(),z=k(),I=k(),K=e(v()),[L,M]=N(null),X=s({open:Z,dirty:G,onClose:B,title:W,layer:L}),q=x(null),P=i(Z&&null!==K,q),R=r(Z&&null!==K,q),S=t(R,L),_=o(R),ee=null!==R.host;if(m(Z),p(O,Z&&null!==K,J,S),u(Z),j(()=>{if(Z)return y(()=>!S.current?.(document.activeElement)&&($||X(),!0),()=>O.current)},[Z,$,X,S]),!Z||!K)return null;const ie={maxHeight:"85vh",...P?(re=P,{left:re.left,width:re.width,bottom:window.innerHeight-(re.top+re.height)}):{}};var re;/* @__PURE__ */
2
+ return g(C,{children:[/* @__PURE__ */Y("span",{ref:q,hidden:!0,"data-popup-anchor":""}),w(
3
+ /* @__PURE__ */Y(n,{value:L,children:/* @__PURE__ */g("div",{ref:M,className:ee?"fixed inset-0 pointer-events-none":"fixed inset-0",style:a(R),role:"presentation","data-overlay-layer":"",children:[
4
+ /* @__PURE__ */Y("div",{className:"fixed bg-black/30 backdrop-blur-sm "+(ee?"pointer-events-auto"+(l(R)?" rounded-(--radius-window)":""):"inset-0"),style:_??void 0,hidden:ee&&!_,onClick:$?void 0:X,"aria-hidden":"true","data-popup-scrim":ee?"window":"system"}),
5
+ /* @__PURE__ */g("div",{ref:O,...c({modal:!0,titleId:W?I:void 0,labelledBy:U,label:Q}),"aria-describedby":A??(D?z:T?V:void 0),"data-drawer-side":H,"data-popup-panel":"",style:ie,className:[`fixed flex flex-col ${b}`,ee?"pointer-events-auto":"",P?"":"inset-x-0 bottom-0","rounded-t-xl",F].filter(Boolean).join(" "),children:[W?/* @__PURE__ */g("div",{className:"flex shrink-0 items-center justify-between gap-4 border-b border-gray-100 px-4 py-3",children:[
6
+ /* @__PURE__ */g("div",{className:"min-w-0",children:[
7
+ /* @__PURE__ */Y("h2",{id:I,className:h,children:W}),D&&/* @__PURE__ */Y("p",{id:z,className:`mt-0.5 ${f}`,children:D})]}),!$&&/* @__PURE__ */Y(d,{onClose:X})]}):!$&&/* @__PURE__ */Y("div",{className:"absolute right-2 top-2 z-10",children:/* @__PURE__ */Y(d,{onClose:X})}),
8
+ /* @__PURE__ */g("div",{id:V,className:"min-h-0 flex-1 overflow-y-auto px-4 py-4",children:[D&&!W&&/* @__PURE__ */Y("p",{id:z,className:`mb-3 ${f} ${$?"":"pr-8"}`.trim(),children:D}),T]}),E&&/* @__PURE__ */Y("div",{className:"flex shrink-0 justify-end gap-3 border-t border-gray-100 px-4 py-3",children:E})]})]})}),K)]})}export{Z as Drawer};
@@ -1,9 +1,9 @@
1
- import{useWindowMenuItem as e,Modal as t}from"./chunk-UZATF4OZ.js";import{navIcons as r}from"./chunk-4LXCCZDM.js";import{VERSION as n}from"./chunk-5IXCLPVZ.js";import{Icon as s}from"./chunk-ISVODSRP.js";import{DEFAULT_SHELL_STRINGS as i,useShellStrings as o,splitAround as a}from"./chunk-NRHG4R2Q.js";import{useState as l,useCallback as m,isValidElement as c,cloneElement as p}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var h=i.aboutApp,x={notepad:{name:"Notepad",version:"1.1.0",route:"/notepad",description:h.notepad},preview:{name:"Preview",version:"1.5.1",route:"/preview",description:h.preview},files:{name:"Files",version:"2.0.1",route:"/files",description:h.files},browser:{name:"Browser",version:"1.0.3",route:"/browser",description:h.browser}},u=/* @__PURE__ */d(s,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),w=/* @__PURE__ */d(s,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function v({app:s}){const i=x[s],[h,v]=l(!1),N=m(()=>v(!0),[]),b=o().aboutApp,k=b.title(i.name);if(e(k,N,u),!h)return null;const g=r[i.route],y=c(g)?p(g,{className:"h-9 w-9"}):w,[j,C]=a(b.partOf);/* @__PURE__ */
2
- return d(t,{open:!0,onClose:()=>v(!1),title:k,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */f("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
1
+ import{useWindowMenuItem as e,Modal as t}from"./chunk-SYUCEN76.js";import{navIcons as r}from"./chunk-4LXCCZDM.js";import{VERSION as n}from"./chunk-B34UWI47.js";import{Icon as s}from"./chunk-ISVODSRP.js";import{DEFAULT_SHELL_STRINGS as i,useShellStrings as o,splitAround as a}from"./chunk-NRHG4R2Q.js";import{useState as l,useCallback as m,isValidElement as c,cloneElement as p}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var h=i.aboutApp,x={notepad:{name:"Notepad",version:"1.1.0",route:"/notepad",description:h.notepad},preview:{name:"Preview",version:"1.5.1",route:"/preview",description:h.preview},files:{name:"Files",version:"2.0.1",route:"/files",description:h.files},browser:{name:"Browser",version:"1.0.3",route:"/browser",description:h.browser}},u=/* @__PURE__ */d(s,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),w=/* @__PURE__ */d(s,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function N({app:s}){const i=x[s],[h,N]=l(!1),v=m(()=>N(!0),[]),b=o().aboutApp,k=b.title(i.name);if(e(k,v,u),!h)return null;const g=r[i.route],y=c(g)?p(g,{className:"h-9 w-9"}):w,[j,C]=a(b.partOf);/* @__PURE__ */
2
+ return d(t,{open:!0,onClose:()=>N(!1),title:k,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */f("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
3
3
  /* @__PURE__ */d("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl bg-gray-100 text-gray-600 shrink-0",children:y}),
4
4
  /* @__PURE__ */d("h2",{className:"mt-3 text-lg font-bold text-gray-900",children:i.name}),
5
5
  /* @__PURE__ */d("p",{className:"text-2xs font-mono text-ink-faintest",children:b.version(i.version)}),
6
6
  /* @__PURE__ */d("p",{className:"mt-2 text-xs text-gray-500 leading-relaxed",children:b[s]}),
7
7
  /* @__PURE__ */f("div",{className:"mt-4 pt-3 border-t border-gray-200 w-full",children:[
8
8
  /* @__PURE__ */f("p",{className:"text-2xs text-ink-faint",children:[j,
9
- /* @__PURE__ */d("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),C]}),n&&/* @__PURE__ */d("p",{className:"mt-0.5 text-2xs font-mono text-ink-faintest",children:b.shellVersion(n)})]})]})})}export{v as AboutApp,x as BUILTIN_APP_INFO};
9
+ /* @__PURE__ */d("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),C]}),n&&/* @__PURE__ */d("p",{className:"mt-0.5 text-2xs font-mono text-ink-faintest",children:b.shellVersion(n)})]})]})})}export{N as AboutApp,x as BUILTIN_APP_INFO};
@@ -1,8 +1,8 @@
1
- import{SearchableSelect as e}from"./chunk-Y7D2CZ4H.js";import{Select_default as a}from"./chunk-EBODRYXS.js";import{labelClasses as l}from"./chunk-EQKUFYX6.js";import{isSafeLinkHref as t}from"./chunk-Z5TE3MEG.js";import{Input_default as r}from"./chunk-W6REY3SV.js";import{INPUT_SIZES as n}from"./chunk-AYZY3YNC.js";import{Button_default as i}from"./chunk-MEP6CZJ3.js";import{Icon as o}from"./chunk-ISVODSRP.js";import{registerModalEscapeInterceptor as s}from"./chunk-TWVUQUUD.js";import{useShellStrings as u}from"./chunk-NRHG4R2Q.js";import{useId as d,useRef as c,useState as p,useEffect as m}from"react";import{jsx as f,jsxs as v,Fragment as g}from"react/jsx-runtime";function h(e){return"select"===e.type?e.options:"groups"===e.type?e.groups.flatMap(e=>e.options):[]}var b="address",x={kindOf:()=>b,targetOf:e=>e,readFilter:()=>null,withFilter:e=>e},k=e=>t(e.trim());function y(t){const{value:n,kinds:o,rules:y=x,filtersFor:w,label:C,readOnly:N,placeholder:O,className:j="",tidyAddress:F,addressAddon:E}=t,$=void 0!==t.onApply,D=u().link,R=y.isSafe??k,Y=d(),z=c(null),A=c(null),[S,T]=p({url:n}),P=$?S.url:n,[M,U]=p(!1),[W,Z]=p(null),[B,H]=p(null),[K,Q]=p(!1),V=c(null),G=c(()=>{});G.current=$?t.onCancel:()=>{},m(()=>{if($)return s(e=>{const a=z.current;return!!("Escape"===e.key&&a&&e.target instanceof Node&&a.contains(e.target))&&(G.current(),!0)},()=>z.current)},[$]),m(()=>{if(!$)return;const e=A.current;e?(e.focus(),e.select()):z.current?.querySelector("button, input")?.focus()},[]);const L=o??[{value:b,label:D.address,target:{type:"text"}}],X=W&&W.against===P?W.kind:y.kindOf(P),q=L.filter(e=>!e.hideWhenEmpty||h(e.target).length>0||e.value===X),I=q.find(e=>"text"===e.target.type),J=q.find(e=>e.value===X)??I??q[0];if(!J)return null;const _="text"!==J.target.type,ee=_?y.targetOf(P):P,ae=h(J.target),le=ae.find(e=>e.value===ee),te=e=>({value:e,label:D.unavailable(e)}),re="select"===J.target.type&&ee&&w?w(ee):null,ne=re?y.readFilter(P):null,ie=ne?re?.find(e=>e.param===ne.param):void 0,oe=B&&B.against===P?B.text:P,se=_?P:F?F(oe.trim()).trim():oe.trim(),ue=$&&F?se:oe,de=!_&&""!==ue.trim()&&!R(ue),ce=de&&(!$||M);_&&K&&Q(!1);const pe=(e,a)=>{$?T({url:e,name:a}):void 0===a?t.onChange(e):t.onChange(e,a)},me=(e,a)=>{Z(a=>a?{...a,against:e}:a),pe(e,a)},fe=e=>{if(!e)return me("");const a=ae.find(a=>a.value===e);me(e,a?.label)},ve=e=>{U(!1);const a=e.trim();a?R(e)?(H({text:e,against:a}),me(a)):H({text:e,against:P}):(H({text:e,against:""}),me(""))},ge=e=>{const a=e.relatedTarget;if(a&&(a===A.current||V.current?.contains(a)))return;if(Q(!1),$||!F||N)return;const l=F(oe.trim());l.trim()!==oe.trim()&&ve(l)},he=()=>{if(!$||!se)return;if(!_&&de)return void U(!0);const e=_&&S.url===se?S.name:void 0,a=t.onApply;void 0===e?a(se):a(se,e)},be=(e,a)=>a&&!e.some(e=>e.value===a)?[te(a),...e]:[...e],xe=(l,t,r,n,i)=>{const o=[];for(const e of r){const a=o[o.length-1],l={value:e.value,label:e.label};e.group?a&&"options"in a&&a.label===e.group?a.options.push(l):o.push({label:e.group,options:[l]}):o.push(l)}if(i){const a=r.some(e=>""===e.value);/* @__PURE__ */
2
- return f(e,{"aria-label":l,value:t,options:o,disabled:N,clearable:a,placeholder:r.find(e=>""===e.value)?.label,onChange:n})}/* @__PURE__ */
3
- return f(a,{size:"sm","aria-label":l,value:t,options:o,readOnly:N,onChange:n})};let ke;if("text"===J.target.type)ke=/* @__PURE__ */f(r,{ref:A,id:`${Y}-address`,size:"sm",type:"text",invalid:ce,"aria-label":D.address,"aria-describedby":ce?`${Y}-why`:void 0,placeholder:O??D.addressPlaceholder,spellCheck:!1,autoComplete:"off",value:oe,readOnly:N,onChange:e=>ve(e.target.value),onFocus:()=>Q(!0),onBlur:ge,onKeyDown:F&&!$?e=>{"Enter"===e.key&&e.currentTarget.blur()}:void 0});else{const e="groups"===J.target.type?J.target.groups.flatMap(e=>e.options.map(a=>({value:a.value,label:a.label,group:e.label}))):J.target.options.map(e=>({value:e.value,label:e.label})),a=[{value:"",label:J.target.placeholder},...be(e,ee)];ke=xe(J.label,ee,a,fe,e.length>10)}const ye=/* @__PURE__ */v(g,{children:[o&&xe(D.linkType,J.value,q.map(e=>({value:e.value,label:e.label})),e=>{H(null),U(!1);const a=q.find(a=>a.value===e);if(!a||"text"===a.target.type)return void Z({kind:e,against:P});const l=h(a.target)[0];Z({kind:e,against:l?l.value:""}),l?pe(l.value,l.label):pe("")},!1),ke,E&&K&&!N&&"text"===J.target.type&&/* @__PURE__ */f("div",{ref:V,onBlur:ge,children:E({url:oe,onChange:ve})}),re&&xe(D.filter,ne?.param??"",[{value:"",label:D.noFilter},...ne&&!ie?[te(ne.param)]:[],...re.map(e=>({value:e.param,label:e.label}))],e=>{if(!e)return me(ee,le?.label);const a=re?.find(a=>a.param===e),l=a?.values[0];l&&me(y.withFilter(ee,{param:e,value:l.value}),l.label)},!1),re&&ne&&xe(D.value,ne.value,be((ie?.values??[]).map(e=>({value:e.value,label:e.label})),ne.value),e=>{if(!ne)return;const a=ie?.values.find(a=>a.value===e);me(y.withFilter(ee,{param:ne.param,value:e}),a?.label)},(ie?.values.length??0)>10),ce&&/* @__PURE__ */f("p",{id:`${Y}-why`,role:"alert",className:"text-2xs leading-4 text-red-600",children:D.unsafe}),J.hint&&/* @__PURE__ */f("p",{className:"text-2xs leading-4 text-ink-faintest",children:J.hint}),re&&/* @__PURE__ */f("p",{className:"text-2xs leading-4 text-ink-faintest",children:D.filterHint})]});if(!$)/* @__PURE__ */
1
+ import{SearchableSelect as e}from"./chunk-Y7D2CZ4H.js";import{labelClasses as a}from"./chunk-EQKUFYX6.js";import{Select_default as l}from"./chunk-EBODRYXS.js";import{isSafeLinkHref as t}from"./chunk-Z5TE3MEG.js";import{Input_default as r}from"./chunk-W6REY3SV.js";import{INPUT_SIZES as n}from"./chunk-AYZY3YNC.js";import{Button_default as i}from"./chunk-MEP6CZJ3.js";import{Icon as o}from"./chunk-ISVODSRP.js";import{registerModalEscapeInterceptor as s}from"./chunk-TWVUQUUD.js";import{useShellStrings as u}from"./chunk-NRHG4R2Q.js";import{useId as d,useRef as c,useState as p,useEffect as m}from"react";import{jsx as f,jsxs as v,Fragment as g}from"react/jsx-runtime";function h(e){return"select"===e.type?e.options:"groups"===e.type?e.groups.flatMap(e=>e.options):[]}var b="address",x={kindOf:()=>b,targetOf:e=>e,readFilter:()=>null,withFilter:e=>e},k=e=>t(e.trim());function y(t){const{value:n,kinds:o,rules:y=x,filtersFor:w,label:C,readOnly:N,placeholder:O,className:j="",tidyAddress:F,addressAddon:E}=t,$=void 0!==t.onApply,D=u().link,R=y.isSafe??k,Y=d(),z=c(null),A=c(null),[S,T]=p({url:n}),P=$?S.url:n,[M,U]=p(!1),[W,Z]=p(null),[B,H]=p(null),[K,Q]=p(!1),V=c(null),G=c(()=>{});G.current=$?t.onCancel:()=>{},m(()=>{if($)return s(e=>{const a=z.current;return!!("Escape"===e.key&&a&&e.target instanceof Node&&a.contains(e.target))&&(G.current(),!0)},()=>z.current)},[$]),m(()=>{if(!$)return;const e=A.current;e?(e.focus(),e.select()):z.current?.querySelector("button, input")?.focus()},[]);const L=o??[{value:b,label:D.address,target:{type:"text"}}],X=W&&W.against===P?W.kind:y.kindOf(P),q=L.filter(e=>!e.hideWhenEmpty||h(e.target).length>0||e.value===X),I=q.find(e=>"text"===e.target.type),J=q.find(e=>e.value===X)??I??q[0];if(!J)return null;const _="text"!==J.target.type,ee=_?y.targetOf(P):P,ae=h(J.target),le=ae.find(e=>e.value===ee),te=e=>({value:e,label:D.unavailable(e)}),re="select"===J.target.type&&ee&&w?w(ee):null,ne=re?y.readFilter(P):null,ie=ne?re?.find(e=>e.param===ne.param):void 0,oe=B&&B.against===P?B.text:P,se=_?P:F?F(oe.trim()).trim():oe.trim(),ue=$&&F?se:oe,de=!_&&""!==ue.trim()&&!R(ue),ce=de&&(!$||M);_&&K&&Q(!1);const pe=(e,a)=>{$?T({url:e,name:a}):void 0===a?t.onChange(e):t.onChange(e,a)},me=(e,a)=>{Z(a=>a?{...a,against:e}:a),pe(e,a)},fe=e=>{if(!e)return me("");const a=ae.find(a=>a.value===e);me(e,a?.label)},ve=e=>{U(!1);const a=e.trim();a?R(e)?(H({text:e,against:a}),me(a)):H({text:e,against:P}):(H({text:e,against:""}),me(""))},ge=e=>{const a=e.relatedTarget;if(a&&(a===A.current||V.current?.contains(a)))return;if(Q(!1),$||!F||N)return;const l=F(oe.trim());l.trim()!==oe.trim()&&ve(l)},he=()=>{if(!$||!se)return;if(!_&&de)return void U(!0);const e=_&&S.url===se?S.name:void 0,a=t.onApply;void 0===e?a(se):a(se,e)},be=(e,a)=>a&&!e.some(e=>e.value===a)?[te(a),...e]:[...e],xe=(a,t,r,n,i)=>{const o=[];for(const e of r){const a=o[o.length-1],l={value:e.value,label:e.label};e.group?a&&"options"in a&&a.label===e.group?a.options.push(l):o.push({label:e.group,options:[l]}):o.push(l)}if(i){const l=r.some(e=>""===e.value);/* @__PURE__ */
2
+ return f(e,{"aria-label":a,value:t,options:o,disabled:N,clearable:l,placeholder:r.find(e=>""===e.value)?.label,onChange:n})}/* @__PURE__ */
3
+ return f(l,{size:"sm","aria-label":a,value:t,options:o,readOnly:N,onChange:n})};let ke;if("text"===J.target.type)ke=/* @__PURE__ */f(r,{ref:A,id:`${Y}-address`,size:"sm",type:"text",invalid:ce,"aria-label":D.address,"aria-describedby":ce?`${Y}-why`:void 0,placeholder:O??D.addressPlaceholder,spellCheck:!1,autoComplete:"off",value:oe,readOnly:N,onChange:e=>ve(e.target.value),onFocus:()=>Q(!0),onBlur:ge,onKeyDown:F&&!$?e=>{"Enter"===e.key&&e.currentTarget.blur()}:void 0});else{const e="groups"===J.target.type?J.target.groups.flatMap(e=>e.options.map(a=>({value:a.value,label:a.label,group:e.label}))):J.target.options.map(e=>({value:e.value,label:e.label})),a=[{value:"",label:J.target.placeholder},...be(e,ee)];ke=xe(J.label,ee,a,fe,e.length>10)}const ye=/* @__PURE__ */v(g,{children:[o&&xe(D.linkType,J.value,q.map(e=>({value:e.value,label:e.label})),e=>{H(null),U(!1);const a=q.find(a=>a.value===e);if(!a||"text"===a.target.type)return void Z({kind:e,against:P});const l=h(a.target)[0];Z({kind:e,against:l?l.value:""}),l?pe(l.value,l.label):pe("")},!1),ke,E&&K&&!N&&"text"===J.target.type&&/* @__PURE__ */f("div",{ref:V,onBlur:ge,children:E({url:oe,onChange:ve})}),re&&xe(D.filter,ne?.param??"",[{value:"",label:D.noFilter},...ne&&!ie?[te(ne.param)]:[],...re.map(e=>({value:e.param,label:e.label}))],e=>{if(!e)return me(ee,le?.label);const a=re?.find(a=>a.param===e),l=a?.values[0];l&&me(y.withFilter(ee,{param:e,value:l.value}),l.label)},!1),re&&ne&&xe(D.value,ne.value,be((ie?.values??[]).map(e=>({value:e.value,label:e.label})),ne.value),e=>{if(!ne)return;const a=ie?.values.find(a=>a.value===e);me(y.withFilter(ee,{param:ne.param,value:e}),a?.label)},(ie?.values.length??0)>10),ce&&/* @__PURE__ */f("p",{id:`${Y}-why`,role:"alert",className:"text-2xs leading-4 text-red-600",children:D.unsafe}),J.hint&&/* @__PURE__ */f("p",{className:"text-2xs leading-4 text-ink-faintest",children:J.hint}),re&&/* @__PURE__ */f("p",{className:"text-2xs leading-4 text-ink-faintest",children:D.filterHint})]});if(!$)/* @__PURE__ */
4
4
  return f("div",{ref:z,className:`flex min-w-0 flex-auto flex-col gap-2 ${j}`.trim(),role:C?"group":void 0,"aria-label":C,children:ye});const we=t.onRemove;/* @__PURE__ */
5
- return v("div",{ref:z,role:"dialog","aria-label":C??D.title,className:`flex min-w-0 flex-col gap-2 rounded-xl border border-line bg-surface p-3 shadow-lg ${j}`.trim(),onKeyDown:e=>{"Enter"!==e.key||e.defaultPrevented||e.target instanceof Element&&e.target.closest("button")||(e.preventDefault(),he())},children:[_?/* @__PURE__ */f("span",{className:l({inline:!0}),children:D.title}):/* @__PURE__ */f("label",{htmlFor:`${Y}-address`,className:l({inline:!0}),children:D.title}),ye,
5
+ return v("div",{ref:z,role:"dialog","aria-label":C??D.title,className:`flex min-w-0 flex-col gap-2 rounded-xl border border-line bg-surface p-3 shadow-lg ${j}`.trim(),onKeyDown:e=>{"Enter"!==e.key||e.defaultPrevented||e.target instanceof Element&&e.target.closest("button")||(e.preventDefault(),he())},children:[_?/* @__PURE__ */f("span",{className:a({inline:!0}),children:D.title}):/* @__PURE__ */f("label",{htmlFor:`${Y}-address`,className:a({inline:!0}),children:D.title}),ye,
6
6
  /* @__PURE__ */v("div",{className:"flex items-center justify-between gap-2",children:[we?/* @__PURE__ */f(i,{variant:"ghost-danger",size:"sm","data-window-action":"remove",onClick:we,children:D.remove}):null,
7
7
  /* @__PURE__ */v("span",{className:"ml-auto flex gap-1",children:[
8
8
  /* @__PURE__ */f(i,{variant:"secondary",size:"sm","data-window-action":"cancel",onClick:()=>G.current(),children:D.cancel}),
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ListToolbar as default}from"../chunk-HOPHOF2C.js";
2
+ export{ListToolbar as default}from"../chunk-KETNB4NQ.js";
@@ -1 +1 @@
1
- export{BADGE_X,CELL_X,statusColumn}from"../chunk-WBUAO7T7.js";import"../chunk-LH7IKIGE.js";import"../chunk-UVCMV2TL.js";import"../chunk-AW7TOB6N.js";import"../chunk-EDRELF6L.js";import"../chunk-G3TC2GIA.js";import"../chunk-AJPQJ7TC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
1
+ export{BADGE_X,CELL_X,statusColumn}from"../chunk-O7A7PH3R.js";import"../chunk-LH7IKIGE.js";import"../chunk-UVCMV2TL.js";import"../chunk-SH7PJC4P.js";import"../chunk-EDRELF6L.js";import"../chunk-G3TC2GIA.js";import"../chunk-AJPQJ7TC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{TextLinkField,LinkPicker as default}from"../chunk-GRZPIV2G.js";import"../chunk-Y7D2CZ4H.js";import"../chunk-EBODRYXS.js";import"../chunk-EO5RLFRX.js";import"../chunk-K5YT5PMJ.js";import"../chunk-EQKUFYX6.js";import"../chunk-2NMW66P5.js";import"../chunk-UJUTS6LJ.js";import"../chunk-Z5TE3MEG.js";import"../chunk-W6REY3SV.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-M5IZ7QLQ.js";import"../chunk-XNKNX5L3.js";import"../chunk-DWGYC7OD.js";import"../chunk-MYH5H43C.js";import"../chunk-RTK77DMP.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-MEP6CZJ3.js";import"../chunk-IVEM2BPC.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-AJPQJ7TC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
2
+ export{TextLinkField,LinkPicker as default}from"../chunk-YTLUSBDY.js";import"../chunk-Y7D2CZ4H.js";import"../chunk-EQKUFYX6.js";import"../chunk-EBODRYXS.js";import"../chunk-EO5RLFRX.js";import"../chunk-K5YT5PMJ.js";import"../chunk-2NMW66P5.js";import"../chunk-UJUTS6LJ.js";import"../chunk-Z5TE3MEG.js";import"../chunk-W6REY3SV.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-M5IZ7QLQ.js";import"../chunk-XNKNX5L3.js";import"../chunk-DWGYC7OD.js";import"../chunk-MYH5H43C.js";import"../chunk-RTK77DMP.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-MEP6CZJ3.js";import"../chunk-IVEM2BPC.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-AJPQJ7TC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary as default,readMediaFileDrag}from"../chunk-ERI63O4A.js";import"../chunk-CXEELIRW.js";import"../chunk-P5J7G7OV.js";import"../chunk-NDCS4COQ.js";import"../chunk-CGUMJZUB.js";import"../chunk-IC72MGON.js";import"../chunk-DTFX624I.js";import"../chunk-W3454ZES.js";import"../chunk-SACUSHVN.js";import"../chunk-WREUA43Q.js";import"../chunk-VLKDWKVR.js";import"../chunk-OLFYNMTD.js";import"../chunk-LACL4MAR.js";import"../chunk-UFJR63AO.js";import"../chunk-GRAFJD3L.js";import"../chunk-WYAKASF3.js";import"../chunk-Y5RTVKMB.js";import"../chunk-U75MSD4F.js";import"../chunk-EBODRYXS.js";import"../chunk-EO5RLFRX.js";import"../chunk-K5YT5PMJ.js";import"../chunk-6KBDNYRW.js";import"../chunk-2NMW66P5.js";import"../chunk-XYVFJLAU.js";import"../chunk-CGZBDI6C.js";import"../chunk-ALZHFQRX.js";import"../chunk-EFKJLUYP.js";import"../chunk-5O4HMXPQ.js";import"../chunk-OSMRYND3.js";import"../chunk-W6REY3SV.js";import"../chunk-MPC3CHAO.js";import"../chunk-ION3XGLN.js";import"../chunk-AYZY3YNC.js";import"../chunk-TNGIXSTM.js";import"../chunk-EIFNESXS.js";import"../chunk-7WF6LFOJ.js";import"../chunk-CJ4OEY3T.js";import"../chunk-AH5MLH54.js";import"../chunk-5YTZBYG4.js";import"../chunk-VWGWZY7A.js";import"../chunk-DBQNYJZ6.js";import"../chunk-6X32SWQI.js";import"../chunk-UGTRSRIW.js";import"../chunk-F3ZOO23R.js";import"../chunk-M5IZ7QLQ.js";import"../chunk-XNKNX5L3.js";import"../chunk-DWGYC7OD.js";import"../chunk-MYH5H43C.js";import"../chunk-EDRELF6L.js";import"../chunk-RTK77DMP.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-MEP6CZJ3.js";import"../chunk-IVEM2BPC.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-G3TC2GIA.js";import"../chunk-AJPQJ7TC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-I2NVBDKH.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
2
+ export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary as default,readMediaFileDrag}from"../chunk-OJYEGB74.js";import"../chunk-CXEELIRW.js";import"../chunk-P5J7G7OV.js";import"../chunk-NDCS4COQ.js";import"../chunk-CGUMJZUB.js";import"../chunk-IC72MGON.js";import"../chunk-WBZO6WRU.js";import"../chunk-W3454ZES.js";import"../chunk-SACUSHVN.js";import"../chunk-WREUA43Q.js";import"../chunk-UFJR63AO.js";import"../chunk-GRAFJD3L.js";import"../chunk-WYAKASF3.js";import"../chunk-Y5RTVKMB.js";import"../chunk-U75MSD4F.js";import"../chunk-EBODRYXS.js";import"../chunk-EO5RLFRX.js";import"../chunk-K5YT5PMJ.js";import"../chunk-6KBDNYRW.js";import"../chunk-2NMW66P5.js";import"../chunk-VLKDWKVR.js";import"../chunk-OLFYNMTD.js";import"../chunk-LACL4MAR.js";import"../chunk-XYVFJLAU.js";import"../chunk-CGZBDI6C.js";import"../chunk-ALZHFQRX.js";import"../chunk-EFKJLUYP.js";import"../chunk-5O4HMXPQ.js";import"../chunk-OSMRYND3.js";import"../chunk-W6REY3SV.js";import"../chunk-AYZY3YNC.js";import"../chunk-MPC3CHAO.js";import"../chunk-ION3XGLN.js";import"../chunk-TNGIXSTM.js";import"../chunk-EIFNESXS.js";import"../chunk-7WF6LFOJ.js";import"../chunk-CJ4OEY3T.js";import"../chunk-AH5MLH54.js";import"../chunk-5YTZBYG4.js";import"../chunk-VWGWZY7A.js";import"../chunk-DBQNYJZ6.js";import"../chunk-6X32SWQI.js";import"../chunk-UGTRSRIW.js";import"../chunk-F3ZOO23R.js";import"../chunk-M5IZ7QLQ.js";import"../chunk-XNKNX5L3.js";import"../chunk-DWGYC7OD.js";import"../chunk-MYH5H43C.js";import"../chunk-EDRELF6L.js";import"../chunk-RTK77DMP.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-MEP6CZJ3.js";import"../chunk-IVEM2BPC.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-G3TC2GIA.js";import"../chunk-AJPQJ7TC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-I2NVBDKH.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ICON_NAMES,isIconName}from"../chunk-3C7JKJGL.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_ICON_NAMES,isBrandIconName}from"../chunk-RQGLDRRF.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{Icon}from"../chunk-ISVODSRP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";
2
+ export{ICON_NAMES,isIconName}from"../chunk-3C7JKJGL.js";export{BRAND_ICON_NAMES,isBrandIconName}from"../chunk-RQGLDRRF.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{Icon}from"../chunk-ISVODSRP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";
package/dist/index.d.ts CHANGED
@@ -137,7 +137,7 @@ export { ToastAction, ToastCloseReason, ToastOptions, ToastPlacement, ToastUndoa
137
137
  export { APP_UPDATE_POLL_MS, default as AppUpdateBanner, AppUpdateBannerProps, UseAppUpdateOptions, useAppUpdate } from './shell/AppUpdateBanner.js';
138
138
  export { default as Dialog, DialogProps, DialogSize } from './shell/Dialog.js';
139
139
  export { DialogDirty } from './shell/discardGuard.js';
140
- export { default as Drawer, DrawerProps, DrawerSide, DrawerSize } from './shell/Drawer.js';
140
+ export { default as Drawer, DrawerProps, DrawerSide } from './shell/Drawer.js';
141
141
  export { useFocusTrap, useScrollLock } from './shell/focusTrap.js';
142
142
  export { ConfirmProvider, confirm, confirmDestructive, prompt, useConfirm } from './shell/ConfirmDialog.js';
143
143
  import { SearchConfig } from './shell/GlobalSearch.js';