efficient-shell 12.47.0 → 13.0.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 (36) hide show
  1. package/dist/{Browser-DFDNVO6L.js → Browser-5KHRSWFS.js} +13 -13
  2. package/dist/{Files-KRSVUWRP.js → Files-7RHXUP6D.js} +37 -37
  3. package/dist/{Notepad-XK3GS6ER.js → Notepad-7ITLKYAF.js} +8 -8
  4. package/dist/{Preview-6LJ7EQGT.js → Preview-RHPVZ3R5.js} +9 -9
  5. package/dist/ai/index.js +18 -18
  6. package/dist/apps/index.js +1 -1
  7. package/dist/bin/browser-check.js +1 -1
  8. package/dist/bin/media-host-check.js +1 -1
  9. package/dist/bin/ui-check.js +1 -1
  10. package/dist/charts/PieChart.js +1 -1
  11. package/dist/charts/RadarChart.js +1 -1
  12. package/dist/charts/RadialBarChart.js +1 -1
  13. package/dist/charts/SpecChart.js +1 -1
  14. package/dist/charts/TimeSeriesChart.js +1 -1
  15. package/dist/{chunk-JOENSUVK.js → chunk-4MAMHBSJ.js} +1 -1
  16. package/dist/{chunk-3OZRCRHV.js → chunk-A37SZBVV.js} +1 -1
  17. package/dist/{chunk-YHABPVWU.js → chunk-APGIPXR7.js} +2 -2
  18. package/dist/{chunk-OZV5P5A7.js → chunk-DGFFDZCY.js} +5 -5
  19. package/dist/{chunk-CUJA3HBZ.js → chunk-DYOFTZOC.js} +2 -2
  20. package/dist/{chunk-UF76AFFY.js → chunk-EEFUXXYJ.js} +13 -13
  21. package/dist/chunk-HK4DD4VM.js +1 -0
  22. package/dist/chunk-KGBB6REQ.js +4 -0
  23. package/dist/{chunk-TZBNN6HD.js → chunk-KZQRUVII.js} +5 -5
  24. package/dist/{chunk-WAKWESOR.js → chunk-LPAOHDUE.js} +1 -1
  25. package/dist/{chunk-BLY6SP5Y.js → chunk-O32GIVYD.js} +2 -2
  26. package/dist/forms/BorderInput.js +1 -1
  27. package/dist/forms/IconPicker.d.ts +7 -1
  28. package/dist/forms/IconPicker.js +1 -1
  29. package/dist/index.js +47 -47
  30. package/dist/telemetry/index.js +1 -1
  31. package/dist/templates/DashboardTemplate.js +1 -1
  32. package/dist/ui/index.js +1 -1
  33. package/dist/version.js +1 -1
  34. package/package.json +1 -1
  35. package/dist/chunk-5NTKRMN4.js +0 -4
  36. package/dist/chunk-FWXM5MD2.js +0 -1
@@ -1,22 +1,22 @@
1
- import{ChartDefs as t,MOTION as e,stagger as a,fillFor as r,dashFor as o,maskId as l}from"./chunk-465RRWBY.js";import{ChartBrush as n}from"./chunk-FEQQMRHJ.js";import{ChartDot as i}from"./chunk-CK2YOGUS.js";import{ChartSkeleton as s}from"./chunk-NLHGFQ54.js";import{stepPath as c,curvePath as d,areaBetween as m,areaFrom as h}from"./chunk-VFC6QUEN.js";import{useHighlight as u,highlightOpacity as f}from"./chunk-CNYAHYE6.js";import{useDragZoom as p,DragBand as g,ChartZoomSummary as y,tooltipBesideBand as k}from"./chunk-2UBR4YUF.js";import{usePlotWidth as x}from"./chunk-MAFUXCPZ.js";import{pairedAxes as v,niceAxis as b,niceMax as M,linearScale as N,axisGutter as w,bandScale as j,ladderScale as $}from"./chunk-2JWPNR2U.js";import{ChartTooltip as V}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as z,CHART_INK as R,STATUS_VARS as A}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as E}from"./chunk-TWVUQUUD.js";import{useShellStrings as L,useShellLocale as W}from"./chunk-DEJIH3ZQ.js";import{formatPercent as D,formatPlain as S}from"./chunk-C3QOHMR6.js";import{useRef as C,useState as U,useId as F,useEffect as I}from"react";import{jsx as T,jsxs as Q}from"react/jsx-runtime";var P=12,B=16,H=26,O=52,Y=t=>"number"==typeof t&&Number.isFinite(t);function J({series:J,labels:Z,height:G=200,stacked:K=!1,stackMode:X="value",levels:q,curve:_="linear",tension:tt=0,max:et,yTickCount:at=4,formatValue:rt,formatTooltipValue:ot,tooltipLabels:lt,yAxisLabel:nt,referenceLines:it,labelEndpoints:st=!1,dots:ct,dotVariant:dt="border",pulse:mt=!1,brush:ht=!1,range:ut,onRangeChange:ft,zoomable:pt=!0,columnStrip:gt,onSelect:yt,loading:kt=!1,animate:xt=!0,reveal:vt="left-to-right",fillVariant:bt="gradient",gridStyle:Mt="solid",width:Nt,className:wt,emptyLabel:jt}){const $t=L().charts,Vt=W(),zt=rt??(t=>S(t,Vt)),Rt=ot??zt,At=jt??$t.noData,Et=C(null),Lt=x(Et),Wt=Nt??Lt,[Dt,St]=U(null),[Ct,Ut]=U(null),{highlighted:Ft}=u(),It=F(),Tt=ut??Ct,Qt=p(ht&&Tt?Tt[1]-Tt[0]+1:Z.length,pt);if(I(()=>{if(null!==Dt)return E(t=>"Escape"===t.key&&(St(null),!0))},[Dt]),kt)/* @__PURE__ */
2
- return T("div",{className:wt,ref:Et,children:/* @__PURE__ */T(s,{height:G,width:Nt??Lt})});const Pt=Z,Bt=ut??Ct??[0,Math.max(0,Pt.length-1)],[Ht,Ot]=Bt,Yt=t=>Qt.slice(ht?t.slice(Ht,Ot+1):t),Jt=lt?Yt(lt):void 0,Zt=J.map((t,e)=>({...t,slot:e})).filter(t=>t.data.some(Y)).map(t=>({...t,data:Yt(t.data),pointTones:t.pointTones?Yt(t.pointTones):void 0})),Gt=t=>(ht?Ht:0)+(Qt.view?.[0]??0)+t;if(Z=Yt(Pt),0===Zt.length||0===Z.length)/* @__PURE__ */
1
+ import{ChartBrush as t}from"./chunk-FEQQMRHJ.js";import{ChartDot as e}from"./chunk-CK2YOGUS.js";import{stepPath as a,curvePath as r,areaBetween as o,areaFrom as l}from"./chunk-VFC6QUEN.js";import{ChartDefs as n,MOTION as i,stagger as s,fillFor as c,dashFor as d,maskId as m}from"./chunk-465RRWBY.js";import{ChartSkeleton as h}from"./chunk-NLHGFQ54.js";import{useHighlight as u,highlightOpacity as f}from"./chunk-CNYAHYE6.js";import{useDragZoom as p,DragBand as g,ChartZoomSummary as y,tooltipBesideBand as k}from"./chunk-2UBR4YUF.js";import{usePlotWidth as x}from"./chunk-MAFUXCPZ.js";import{pairedAxes as v,niceAxis as b,niceMax as M,linearScale as N,axisGutter as w,bandScale as j,ladderScale as $}from"./chunk-2JWPNR2U.js";import{ChartTooltip as V}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as z,CHART_INK as R,STATUS_VARS as A}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as E}from"./chunk-TWVUQUUD.js";import{useShellStrings as L,useShellLocale as W}from"./chunk-DEJIH3ZQ.js";import{formatPercent as D,formatPlain as S}from"./chunk-C3QOHMR6.js";import{useRef as C,useState as U,useId as F,useEffect as I}from"react";import{jsx as T,jsxs as Q}from"react/jsx-runtime";var P=12,B=16,H=26,O=52,Y=t=>"number"==typeof t&&Number.isFinite(t);function J({series:J,labels:Z,height:G=200,stacked:K=!1,stackMode:X="value",levels:q,curve:_="linear",tension:tt=0,max:et,yTickCount:at=4,formatValue:rt,formatTooltipValue:ot,tooltipLabels:lt,yAxisLabel:nt,referenceLines:it,labelEndpoints:st=!1,dots:ct,dotVariant:dt="border",pulse:mt=!1,brush:ht=!1,range:ut,onRangeChange:ft,zoomable:pt=!0,columnStrip:gt,onSelect:yt,loading:kt=!1,animate:xt=!0,reveal:vt="left-to-right",fillVariant:bt="gradient",gridStyle:Mt="solid",width:Nt,className:wt,emptyLabel:jt}){const $t=L().charts,Vt=W(),zt=rt??(t=>S(t,Vt)),Rt=ot??zt,At=jt??$t.noData,Et=C(null),Lt=x(Et),Wt=Nt??Lt,[Dt,St]=U(null),[Ct,Ut]=U(null),{highlighted:Ft}=u(),It=F(),Tt=ut??Ct,Qt=p(ht&&Tt?Tt[1]-Tt[0]+1:Z.length,pt);if(I(()=>{if(null!==Dt)return E(t=>"Escape"===t.key&&(St(null),!0))},[Dt]),kt)/* @__PURE__ */
2
+ return T("div",{className:wt,ref:Et,children:/* @__PURE__ */T(h,{height:G,width:Nt??Lt})});const Pt=Z,Bt=ut??Ct??[0,Math.max(0,Pt.length-1)],[Ht,Ot]=Bt,Yt=t=>Qt.slice(ht?t.slice(Ht,Ot+1):t),Jt=lt?Yt(lt):void 0,Zt=J.map((t,e)=>({...t,slot:e})).filter(t=>t.data.some(Y)).map(t=>({...t,data:Yt(t.data),pointTones:t.pointTones?Yt(t.pointTones):void 0})),Gt=t=>(ht?Ht:0)+(Qt.view?.[0]??0)+t;if(Z=Yt(Pt),0===Zt.length||0===Z.length)/* @__PURE__ */
3
3
  return T("div",{className:wt,ref:Et,children:/* @__PURE__ */T("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:G},children:At})});const Kt=Z.map((t,e)=>Zt.reduce((t,a)=>t+(Y(a.data[e])?a.data[e]:0),0)),Xt=(t,e)=>Kt[e]>0?t/Kt[e]:null,qt=[];if(K){let t=Z.map(()=>0);for(const e of Zt)t=t.map((t,a)=>t+(Y(e.data[a])?e.data[a]:0)),qt.push("percent"===X?t.map((t,e)=>Xt(t,e)):[...t])}const _t=!!q&&q.length>0,te=t=>"right"===t.axis,ee=!K&&!_t&&void 0===et&&Zt.some(te)&&Zt.some(t=>!te(t)),ae=gt&&!K?gt:null,re=t=>!!ae&&"column"===t.mode,oe=(ee?Zt.filter(t=>!te(t)):Zt).filter(t=>!re(t)),le=ee?Zt.filter(te).flatMap(t=>t.data.filter(Y)):[],ne=K?(qt.at(-1)??[]).filter(Y):oe.flatMap(t=>t.data.filter(Y)),ie=ee?v([Math.min(0,...ne),Math.max(0,...ne)],[Math.min(0,...le),Math.max(0,...le)],{intervals:at+1,integerLeft:ne.every(Number.isInteger),integerRight:le.every(Number.isInteger)}):null,se=ie?ie.left:K&&"percent"===X||_t||void 0!==et?null:b(K?0:Math.min(0,...ne),Math.max(0,...ne),{intervals:at+1,integer:ne.every(Number.isInteger)}),ce=se?se.lo:0,de=K&&"percent"===X?1:se?se.hi:et??M(Math.max(...ne,0)),me=K&&"percent"===X?t=>D(Math.round(100*t),0,Vt):zt,he=_t?q:se?se.ticks:N([ce,de],{from:0,to:1}).ticks(at+1),ue=w(he.map(me),O),fe=ie?w(ie.right.ticks.map(zt),B):B,pe={left:ue,right:Math.max(ue+1,Wt-fe),top:P,bottom:G-H},ge=j(Z.length,{from:pe.left,to:pe.right}),ye=_t?$(q,{from:pe.bottom,to:pe.top}):null,ke=N([ce,de],{from:pe.bottom,to:pe.top}),xe=ke(Math.max(ce,0)),ve=t=>ye?ye(t):ke(t),be=Zt.filter(re),Me=Math.max(0,...Z.map((t,e)=>be.reduce((t,a)=>t+Math.max(0,Y(a.data[e])?a.data[e]:0),0))),Ne=t=>xe-(Me>0?t/Me:0)*(pe.bottom-pe.top)*(ae??0),we=ie?N([ie.right.lo,ie.right.hi],{from:pe.bottom,to:pe.top}):null,je=t=>we&&te(t)?we:ve,$e=ye?ye.levels.map(t=>({value:t,y:ye(t)})):he.map(t=>({value:t,y:ke(t)})),Ve=t=>e=>{e.preventDefault(),St(e=>{const a=(e??0)+t;return Math.min(Z.length-1,Math.max(0,a))})},ze=Math.max(1,Math.ceil(Z.length/Math.max(1,Math.floor(Wt/96))));/* @__PURE__ */
4
4
  return Q("div",{className:`relative ${wt??""}`,ref:Et,children:[
5
5
  /* @__PURE__ */Q("svg",{width:"100%",height:G,viewBox:`0 0 ${Wt} ${G}`,role:"img","aria-label":$t.overIntervals(Zt.map(t=>t.label),Z.length),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>St(null),onBlur:()=>St(null),style:pt?{userSelect:"none",touchAction:"pan-y"}:void 0,onKeyDown:t=>{if(yt&&null!==Dt&&("Enter"===t.key||" "===t.key))return t.preventDefault(),void yt(Gt(Dt));"ArrowRight"===t.key&&Ve(1)(t),"ArrowLeft"===t.key&&Ve(-1)(t)},children:[
6
6
  /* @__PURE__ */T("defs",{children:/* @__PURE__ */T("clipPath",{id:It,children:/* @__PURE__ */T("rect",{x:pe.left,y:pe.top,width:pe.right-pe.left,height:pe.bottom-pe.top})})}),
7
- /* @__PURE__ */T(t,{id:It,fills:Zt.map((t,e)=>({color:z(t.slot,t.color,t.tone),variant:t.fillVariant??bt})),fadeFrom:K?.42:.3,reveal:!!xt&&vt}),$e.map(t=>/* @__PURE__ */T("line",{x1:pe.left,y1:t.y,x2:pe.right,y2:t.y,stroke:R.grid,strokeWidth:1,shapeRendering:"crispEdges",strokeDasharray:"dashed"===Mt?"3 3":void 0},`grid-${t.value}`)),
7
+ /* @__PURE__ */T(n,{id:It,fills:Zt.map((t,e)=>({color:z(t.slot,t.color,t.tone),variant:t.fillVariant??bt})),fadeFrom:K?.42:.3,reveal:!!xt&&vt}),$e.map(t=>/* @__PURE__ */T("line",{x1:pe.left,y1:t.y,x2:pe.right,y2:t.y,stroke:R.grid,strokeWidth:1,shapeRendering:"crispEdges",strokeDasharray:"dashed"===Mt?"3 3":void 0},`grid-${t.value}`)),
8
8
  /* @__PURE__ */T("line",{x1:pe.left,y1:xe,x2:pe.right,y2:xe,stroke:R.axis,strokeWidth:1,shapeRendering:"crispEdges"}),$e.map(t=>/* @__PURE__ */T("text",{x:pe.left-8,y:t.y+4,textAnchor:"end","data-axis-tick":"true",fontSize:11,fill:R.label,style:{fontVariantNumeric:"tabular-nums"},children:me(t.value)},`ytick-${t.value}`)),ie&&$e.map((t,e)=>/* @__PURE__ */T("text",{x:pe.right+8,y:t.y+4,textAnchor:"start","data-axis-tick":"true",fontSize:11,fill:R.label,style:{fontVariantNumeric:"tabular-nums"},children:zt(ie.right.ticks[e])},`ytick-r-${t.value}`)),nt&&/* @__PURE__ */T("text",{x:12,y:(pe.top+pe.bottom)/2,transform:`rotate(-90 12 ${(pe.top+pe.bottom)/2})`,textAnchor:"middle",fontSize:11,fill:R.label,children:nt}),
9
- /* @__PURE__ */T("g",{clipPath:`url(#${It})`,mask:xt&&vt?`url(#${l(It)})`:void 0,children:Zt.map((t,l)=>{const n=z(t.slot,t.color,t.tone),i=t.mode??(K?"area":"line"),s=f(t.key,Ft);if("step"===i){const e=Z.map((e,a)=>({start:ge(a),end:ge.end(a),value:t.data[a]})).filter(t=>Y(t.value)).map(e=>({start:e.start,end:e.end,y:je(t)(e.value)}));/* @__PURE__ */
10
- return T("path",{d:c(e),fill:"none",stroke:n,strokeWidth:2.5,strokeLinecap:"butt",strokeLinejoin:"miter",opacity:s??void 0,className:"rosh-viz-mark"},t.key)}const u=Z.map((e,a)=>{const r=K?qt[l]?.[a]:t.data[a];return Y(r)?[ge.center(a),je(t)(r)]:null}).filter(t=>null!==t);if(0===u.length)return null;if("column"===i){const r=Math.max(1,.62*ge.bandwidth),o="solid"===t.fillVariant,i=je(t);return re(t)?/* @__PURE__ */T("g",{opacity:s??void 0,className:"rosh-viz-mark",children:Z.map((e,a)=>{const i=t.data[a];if(!Y(i)||i<=0)return null;const s=((t,e)=>be.slice(0,be.findIndex(e=>e.key===Zt[t]?.key)).reduce((t,a)=>t+Math.max(0,Y(a.data[e])?a.data[e]:0),0))(l,a),c=Ne(s+i),d=Ne(s)-(s>0?1:0);/* @__PURE__ */
11
- return T("rect",{x:ge.center(a)-r/2,y:c,width:r,height:Math.max(0,d-c),rx:2,fill:t.pointTones?.[a]?A[t.pointTones[a]]:n,fillOpacity:o?1:.55},a)})},t.key):/* @__PURE__ */T("g",{opacity:s??void 0,className:"rosh-viz-mark",children:Z.map((s,c)=>{const d=K?qt[l]?.[c]:t.data[c];if(!Y(d))return null;const m=i(d);/* @__PURE__ */
12
- return T("rect",{x:ge.center(c)-r/2,y:Math.min(m,xe),width:r,height:Math.abs(xe-m),rx:2,fill:n,fillOpacity:o?1:.35,className:xt?e.rise:void 0,style:xt?a(c,26):void 0},c)})},t.key)}const p=d(u,_,tt),g=K&&l>0?Z.map((t,e)=>[ge.center(e),ve(qt[l-1]?.[e]??0)-2]):null,y=g?m(p,g):h(p,u,xe);/* @__PURE__ */
13
- return Q("g",{opacity:s??void 0,className:"rosh-viz-mark",children:[("area"===i||K)&&
14
- /* @__PURE__ */T("path",{d:y,fill:r(It,l,t.fillVariant??bt,n),stroke:"none"}),
15
- /* @__PURE__ */T("path",{d:p,fill:"none",stroke:n,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:o(t.stroke??(t.forecast?"animated-dashed":"solid")),className:xt&&("animated-dashed"===t.stroke||t.forecast&&!t.stroke)?e.march:void 0})]},t.key)})}),it?.map((t,e)=>{const a=t.color??A[t.tone??"critical"],r=ve(t.value);/* @__PURE__ */
9
+ /* @__PURE__ */T("g",{clipPath:`url(#${It})`,mask:xt&&vt?`url(#${m(It)})`:void 0,children:Zt.map((t,e)=>{const n=z(t.slot,t.color,t.tone),m=t.mode??(K?"area":"line"),h=f(t.key,Ft);if("step"===m){const e=Z.map((e,a)=>({start:ge(a),end:ge.end(a),value:t.data[a]})).filter(t=>Y(t.value)).map(e=>({start:e.start,end:e.end,y:je(t)(e.value)}));/* @__PURE__ */
10
+ return T("path",{d:a(e),fill:"none",stroke:n,strokeWidth:2.5,strokeLinecap:"butt",strokeLinejoin:"miter",opacity:h??void 0,className:"rosh-viz-mark"},t.key)}const u=Z.map((a,r)=>{const o=K?qt[e]?.[r]:t.data[r];return Y(o)?[ge.center(r),je(t)(o)]:null}).filter(t=>null!==t);if(0===u.length)return null;if("column"===m){const a=Math.max(1,.62*ge.bandwidth),r="solid"===t.fillVariant,o=je(t);return re(t)?/* @__PURE__ */T("g",{opacity:h??void 0,className:"rosh-viz-mark",children:Z.map((o,l)=>{const i=t.data[l];if(!Y(i)||i<=0)return null;const s=((t,e)=>be.slice(0,be.findIndex(e=>e.key===Zt[t]?.key)).reduce((t,a)=>t+Math.max(0,Y(a.data[e])?a.data[e]:0),0))(e,l),c=Ne(s+i),d=Ne(s)-(s>0?1:0);/* @__PURE__ */
11
+ return T("rect",{x:ge.center(l)-a/2,y:c,width:a,height:Math.max(0,d-c),rx:2,fill:t.pointTones?.[l]?A[t.pointTones[l]]:n,fillOpacity:r?1:.55},l)})},t.key):/* @__PURE__ */T("g",{opacity:h??void 0,className:"rosh-viz-mark",children:Z.map((l,c)=>{const d=K?qt[e]?.[c]:t.data[c];if(!Y(d))return null;const m=o(d);/* @__PURE__ */
12
+ return T("rect",{x:ge.center(c)-a/2,y:Math.min(m,xe),width:a,height:Math.abs(xe-m),rx:2,fill:n,fillOpacity:r?1:.35,className:xt?i.rise:void 0,style:xt?s(c,26):void 0},c)})},t.key)}const p=r(u,_,tt),g=K&&e>0?Z.map((t,a)=>[ge.center(a),ve(qt[e-1]?.[a]??0)-2]):null,y=g?o(p,g):l(p,u,xe);/* @__PURE__ */
13
+ return Q("g",{opacity:h??void 0,className:"rosh-viz-mark",children:[("area"===m||K)&&
14
+ /* @__PURE__ */T("path",{d:y,fill:c(It,e,t.fillVariant??bt,n),stroke:"none"}),
15
+ /* @__PURE__ */T("path",{d:p,fill:"none",stroke:n,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:d(t.stroke??(t.forecast?"animated-dashed":"solid")),className:xt&&("animated-dashed"===t.stroke||t.forecast&&!t.stroke)?i.march:void 0})]},t.key)})}),it?.map((t,e)=>{const a=t.color??A[t.tone??"critical"],r=ve(t.value);/* @__PURE__ */
16
16
  return Q("g",{children:[
17
- /* @__PURE__ */T("line",{x1:pe.left,y1:r,x2:pe.right,y2:r,stroke:a,strokeWidth:1,strokeDasharray:"5 4"}),t.label&&/* @__PURE__ */T("text",{x:pe.right-4,y:r-5,textAnchor:"end",fontSize:11,fontWeight:600,fill:a,children:t.label})]},`rule-${e}`)}),"none"!==(ct??(st?"last":"none"))&&Zt.map((t,e)=>{if("column"===t.mode)return null;const a=ct??(st?"last":"none"),r=z(t.slot,t.color,t.tone),o=[...t.data].map(Y).lastIndexOf(!0),l="all"===a?Z.map((t,e)=>e).filter(a=>Y(K?qt[e]?.[a]:t.data[a])):o>=0?[o]:[];/* @__PURE__ */
18
- return Q("g",{children:[l.map(a=>{const l=K?qt[e]?.[a]:t.data[a];return Y(l)?/* @__PURE__ */T(i,{cx:ge.center(a),cy:je(t)(l),color:r,variant:dt,pulse:mt&&a===o,title:`${Z[a]}: ${t.label} ${zt(l)}`},a):null}),st&&o>=0&&Y(K?qt[e]?.[o]:t.data[o])&&/* @__PURE__ */T("text",{x:ge.center(o)-10,y:je(t)(K?qt[e]?.[o]:t.data[o])-9,textAnchor:"end",fontSize:12,fontWeight:600,fill:R.label,style:{fontVariantNumeric:"tabular-nums"},children:zt(K?qt[e]?.[o]:t.data[o])})]},`dots-${t.key}`)}),Z.map((t,e)=>e%ze===0?/* @__PURE__ */T("text",{x:ge.center(e),y:G-8,textAnchor:"middle",fontSize:11,fill:R.label,style:{fontVariantNumeric:"tabular-nums"},children:t},`xtick-${e}`):null),null!==Dt&&/* @__PURE__ */T("line",{x1:ge.center(Dt),y1:pe.top,x2:ge.center(Dt),y2:pe.bottom,stroke:R.axis,strokeWidth:1}),ae&&Me>0&&
17
+ /* @__PURE__ */T("line",{x1:pe.left,y1:r,x2:pe.right,y2:r,stroke:a,strokeWidth:1,strokeDasharray:"5 4"}),t.label&&/* @__PURE__ */T("text",{x:pe.right-4,y:r-5,textAnchor:"end",fontSize:11,fontWeight:600,fill:a,children:t.label})]},`rule-${e}`)}),"none"!==(ct??(st?"last":"none"))&&Zt.map((t,a)=>{if("column"===t.mode)return null;const r=ct??(st?"last":"none"),o=z(t.slot,t.color,t.tone),l=[...t.data].map(Y).lastIndexOf(!0),n="all"===r?Z.map((t,e)=>e).filter(e=>Y(K?qt[a]?.[e]:t.data[e])):l>=0?[l]:[];/* @__PURE__ */
18
+ return Q("g",{children:[n.map(r=>{const n=K?qt[a]?.[r]:t.data[r];return Y(n)?/* @__PURE__ */T(e,{cx:ge.center(r),cy:je(t)(n),color:o,variant:dt,pulse:mt&&r===l,title:`${Z[r]}: ${t.label} ${zt(n)}`},r):null}),st&&l>=0&&Y(K?qt[a]?.[l]:t.data[l])&&/* @__PURE__ */T("text",{x:ge.center(l)-10,y:je(t)(K?qt[a]?.[l]:t.data[l])-9,textAnchor:"end",fontSize:12,fontWeight:600,fill:R.label,style:{fontVariantNumeric:"tabular-nums"},children:zt(K?qt[a]?.[l]:t.data[l])})]},`dots-${t.key}`)}),Z.map((t,e)=>e%ze===0?/* @__PURE__ */T("text",{x:ge.center(e),y:G-8,textAnchor:"middle",fontSize:11,fill:R.label,style:{fontVariantNumeric:"tabular-nums"},children:t},`xtick-${e}`):null),null!==Dt&&/* @__PURE__ */T("line",{x1:ge.center(Dt),y1:pe.top,x2:ge.center(Dt),y2:pe.bottom,stroke:R.axis,strokeWidth:1}),ae&&Me>0&&
19
19
  /* @__PURE__ */Q("g",{pointerEvents:"none","data-column-strip":"true",children:[
20
20
  /* @__PURE__ */T("line",{x1:pe.left,y1:Ne(Me),x2:pe.right,y2:Ne(Me),stroke:R.grid,strokeWidth:1,strokeDasharray:"2 3",shapeRendering:"crispEdges"}),
21
- /* @__PURE__ */T("text",{x:pe.left+4,y:Ne(Me)-4,fontSize:11,fill:R.label,style:{fontVariantNumeric:"tabular-nums"},children:zt(Me)})]}),Qt.drag&&/* @__PURE__ */T(g,{x0:ge(Qt.drag[0]),x1:ge(Qt.drag[1])+ge.bandwidth,top:pe.top,bottom:pe.bottom}),Z.map((t,e)=>/* @__PURE__ */T("rect",{x:ge(e),y:pe.top,width:Math.max(1,ge.bandwidth),height:pe.bottom-pe.top,fill:"transparent",onMouseEnter:()=>St(e),onPointerDown:()=>Qt.press(e),onPointerEnter:()=>Qt.over(e),onPointerUp:Qt.release,onClick:yt?()=>yt(Gt(e)):void 0,style:yt?{cursor:"pointer"}:void 0},`hit-${e}`))]}),Qt.view&&/* @__PURE__ */T(y,{from:Jt?.[0]??Z[0],to:Jt?.at(-1)??Z[Z.length-1],count:Z.length,total:K&&"percent"!==X?Rt(Kt.reduce((t,e)=>t+e,0)):ae?Rt(be.reduce((t,e)=>t+e.data.filter(Y).reduce((t,e)=>t+e,0),0)):void 0,rows:(ae?be:Zt).filter(t=>t.data.some(Y)).map(t=>{const e=t.data.filter(Y),a=z(t.slot,t.color,t.tone);if(0===e.length)return{key:t.key,label:t.label,color:a,value:"—"};const r=e.reduce((t,e)=>t+e,0),o=K||"column"===t.mode?Rt(r):$t.zoomLevel(Rt(r/e.length),Rt(Math.max(...e)));return{key:t.key,label:t.label,color:a,value:o}}),onClear:Qt.clear}),ht&&Pt.length>2&&/* @__PURE__ */T(n,{className:"mt-1",labels:Pt,width:Wt,data:J[0]?.data??[],range:Bt,onRangeChange:t=>{ft?ft(t):Ut(t)}}),null!==Dt&&
21
+ /* @__PURE__ */T("text",{x:pe.left+4,y:Ne(Me)-4,fontSize:11,fill:R.label,style:{fontVariantNumeric:"tabular-nums"},children:zt(Me)})]}),Qt.drag&&/* @__PURE__ */T(g,{x0:ge(Qt.drag[0]),x1:ge(Qt.drag[1])+ge.bandwidth,top:pe.top,bottom:pe.bottom}),Z.map((t,e)=>/* @__PURE__ */T("rect",{x:ge(e),y:pe.top,width:Math.max(1,ge.bandwidth),height:pe.bottom-pe.top,fill:"transparent",onMouseEnter:()=>St(e),onPointerDown:()=>Qt.press(e),onPointerEnter:()=>Qt.over(e),onPointerUp:Qt.release,onClick:yt?()=>yt(Gt(e)):void 0,style:yt?{cursor:"pointer"}:void 0},`hit-${e}`))]}),Qt.view&&/* @__PURE__ */T(y,{from:Jt?.[0]??Z[0],to:Jt?.at(-1)??Z[Z.length-1],count:Z.length,total:K&&"percent"!==X?Rt(Kt.reduce((t,e)=>t+e,0)):ae?Rt(be.reduce((t,e)=>t+e.data.filter(Y).reduce((t,e)=>t+e,0),0)):void 0,rows:(ae?be:Zt).filter(t=>t.data.some(Y)).map(t=>{const e=t.data.filter(Y),a=z(t.slot,t.color,t.tone);if(0===e.length)return{key:t.key,label:t.label,color:a,value:"—"};const r=e.reduce((t,e)=>t+e,0),o=K||"column"===t.mode?Rt(r):$t.zoomLevel(Rt(r/e.length),Rt(Math.max(...e)));return{key:t.key,label:t.label,color:a,value:o}}),onClear:Qt.clear}),ht&&Pt.length>2&&/* @__PURE__ */T(t,{className:"mt-1",labels:Pt,width:Wt,data:J[0]?.data??[],range:Bt,onRangeChange:t=>{ft?ft(t):Ut(t)}}),null!==Dt&&
22
22
  /* @__PURE__ */T("div",{className:"pointer-events-none absolute top-2 z-10",style:k(ge.center(Dt),ge.bandwidth,Wt),children:/* @__PURE__ */T(V,{title:Jt?.[Dt]??Z[Dt],rows:Zt.map((t,e)=>({key:t.key,label:t.label,color:z(t.slot,t.color,t.tone),value:Y(t.data[Dt])?K&&"percent"===X?`${D(100*(Xt(t.data[Dt],Dt)??0),1,Vt)} · ${Rt(t.data[Dt])}`:Rt(t.data[Dt]):void 0})),footnote:K&&"percent"===X?$t.inBucket(Rt(Kt[Dt])):void 0})})]})}export{J as TimeSeriesChart};
@@ -0,0 +1 @@
1
+ var r="13.0.0",a=r;export{a as APP_VERSION,r as VERSION};
@@ -0,0 +1,4 @@
1
+ import{Popover as e}from"./chunk-64RHGJXK.js";import{IconButton_default as r}from"./chunk-SV5RRBVA.js";import{Icon as n}from"./chunk-ISVODSRP.js";import{Tooltip as a}from"./chunk-SOZCWT6I.js";import{useShellStrings as t}from"./chunk-DEJIH3ZQ.js";import{useRef as i}from"react";import{jsx as l,jsxs as o,Fragment as s}from"react/jsx-runtime";var c={ArrowLeft:[0,-1],ArrowRight:[0,1],ArrowUp:[-1,0],ArrowDown:[1,0]},u={alignItems:"flex-start",paddingTop:"var(--space-8)",paddingBottom:"var(--space-4)"};function d({value:d,onChange:m,options:h,label:p,emptyValue:f,columns:g=5,cell:v,header:w,onPreview:b,tooltips:x=!0,disabled:N=!1,className:k=""}){const j=t(),y=j.iconPicker,A=j.iconNames,I=e=>e.label??A[e.value]??e.value,C=i([]),D=Math.max(0,h.findIndex(e=>e.value===d)),R=h[D],S=R?.value===f,T=i(null);/* @__PURE__ */
2
+ return l(e,{className:k,disabled:N,triggerLabel:R?y.button(p,I(R)):p,"aria-label":p,initialFocus:T,panelClassName:"!p-2",trigger:/* @__PURE__ */o("span",{className:"inline-flex items-center gap-2",children:[/* @__PURE__ */l("span",S||!R?{className:"text-sm",children:R?I(R):""}:{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:R.icon}),
3
+ /* @__PURE__ */l(n,{name:"chevron-down",className:"h-4 w-4"})]}),children:({close:e})=>/* @__PURE__ */o(s,{children:["function"==typeof w?w({close:e}):w,
4
+ /* @__PURE__ */l("div",{role:"listbox","aria-label":p,className:v?"grid gap-1 rosh-one-height-rows":"grid gap-1",style:{gridTemplateColumns:`repeat(${g}, ${v?.width??"2rem"})`},children:h.map((n,t)=>{const i=n.value===d,o=/* @__PURE__ */l(r,{ref:e=>{C.current[t]=e,t===D&&(T.current=e)},role:"option","aria-selected":i,"aria-label":I(n),pressed:i,tabIndex:t===D?0:-1,onKeyDown:e=>((e,r)=>{const n=c[r.key];if(!n)return;r.preventDefault();const a=Math.floor(e/g)+n[0],t=e%g+n[1];if(a<0||t<0||t>=g)return;const i=a*g+t;if(!(i>=h.length)){for(const[e,r]of C.current.entries())r?.setAttribute("tabindex",e===i?"0":"-1");C.current[i]?.focus()}})(t,e),onClick:()=>{m(n.value),e()},onMouseEnter:b?e=>b(n.value,e.currentTarget):void 0,style:v?{width:v.width,height:"auto",minHeight:v.height,...v.words?u:null}:void 0,children:/* @__PURE__ */l("span",{"aria-hidden":"true",className:v?"inline-flex":"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:n.icon})},n.value);return x?/* @__PURE__ */l(a,{content:I(n),children:o},n.value):o})})]})})}export{d as IconPicker};
@@ -1,11 +1,11 @@
1
- import{MOTION as e,stagger as t}from"./chunk-465RRWBY.js";import{arcPath as a}from"./chunk-VFC6QUEN.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{angleScale as r}from"./chunk-2JWPNR2U.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as o,CHART_INK as i}from"./chunk-TZFACUMR.js";import{useShellStrings as s,useShellLocale as c}from"./chunk-DEJIH3ZQ.js";import{formatPlain as m}from"./chunk-C3QOHMR6.js";import{useId as h,useState as u}from"react";import{jsx as p,jsxs as d}from"react/jsx-runtime";var f=300*Math.PI/180;function g({rows:g,variant:k="track",size:v=300,max:x,formatValue:y,animate:M=!0,className:N,emptyLabel:b,trackGap:j=6}){const C=s().charts,w=c(),E=y??(e=>m(e,w)),R=b??C.nothingToPlot,I=h(),[P,Q]=u(null),{highlighted:T}=l();if(0===g.length)/* @__PURE__ */return p("p",{className:`text-sm text-gray-500 ${N??""}`,children:R});const $=v/2,F=v/2,H=v/2-10,U=x??Math.max(...g.map(e=>e.value),1),V="track"===k?Math.max(6,(H-.16*v)/g.length):0,W=Math.max(1,Math.floor((H-.16*v)/V||1)),Y="track"===k?g.slice(0,W):g,z=Math.min(j,Math.max(1,V-2)),A=r(Y.length,.03),B=null!==P?Y[P]:void 0;/* @__PURE__ */
1
+ import{arcPath as e}from"./chunk-VFC6QUEN.js";import{MOTION as t,stagger as a}from"./chunk-465RRWBY.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{angleScale as r}from"./chunk-2JWPNR2U.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as o,CHART_INK as i}from"./chunk-TZFACUMR.js";import{useShellStrings as s,useShellLocale as c}from"./chunk-DEJIH3ZQ.js";import{formatPlain as m}from"./chunk-C3QOHMR6.js";import{useId as h,useState as u}from"react";import{jsx as p,jsxs as d}from"react/jsx-runtime";var f=300*Math.PI/180;function g({rows:g,variant:k="track",size:v=300,max:x,formatValue:y,animate:M=!0,className:N,emptyLabel:b,trackGap:j=6}){const C=s().charts,w=c(),E=y??(e=>m(e,w)),R=b??C.nothingToPlot,I=h(),[P,Q]=u(null),{highlighted:T}=l();if(0===g.length)/* @__PURE__ */return p("p",{className:`text-sm text-gray-500 ${N??""}`,children:R});const $=v/2,F=v/2,H=v/2-10,U=x??Math.max(...g.map(e=>e.value),1),V="track"===k?Math.max(6,(H-.16*v)/g.length):0,W=Math.max(1,Math.floor((H-.16*v)/V||1)),Y="track"===k?g.slice(0,W):g,z=Math.min(j,Math.max(1,V-2)),A=r(Y.length,.03),B=null!==P?Y[P]:void 0;/* @__PURE__ */
2
2
  return d("div",{className:`relative ${N??""}`,children:[
3
3
  /* @__PURE__ */d("svg",{width:"100%",height:v,viewBox:`0 0 ${v} ${v}`,role:"img","aria-labelledby":I,onMouseLeave:()=>Q(null),children:[
4
4
  /* @__PURE__ */p("title",{id:I,children:"track"===k?C.radialTrack(Y.length):C.radialCycle(Y.length)}),Y.map((l,r)=>{const n=o(r,l.color,l.tone),s=Math.max(0,Math.min(1,l.value/U)),c=((e,t)=>null!==P?P!==e:null!==T&&T!==t)(r,l.key);if("track"===k){const o=H-r*V,m=o-V+z,h=-Math.PI/2;/* @__PURE__ */
5
- return d("g",{opacity:c?.4:1,onMouseEnter:()=>Q(r),className:M?e.sweep:void 0,style:M?t(r,70):void 0,children:[
6
- /* @__PURE__ */p("path",{d:a($,F,m,o,h,h+f),fill:i.grid}),
7
- /* @__PURE__ */p("path",{d:a($,F,m,o,h,h+f*s),fill:n})]},l.key)}const m=.14*v;/* @__PURE__ */
8
- return p("g",{opacity:c?.4:1,onMouseEnter:()=>Q(r),children:/* @__PURE__ */p("path",{d:a($,F,m,m+(H-m)*s,A(r),A(r)+A.step),fill:n})},l.key)})]}),B&&null!==P&&/* @__PURE__ */p("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */p(n,{title:B.label,rows:[{key:"value",label:C.value,color:o(P,B.color,B.tone),value:E(B.value)}]})}),
5
+ return d("g",{opacity:c?.4:1,onMouseEnter:()=>Q(r),className:M?t.sweep:void 0,style:M?a(r,70):void 0,children:[
6
+ /* @__PURE__ */p("path",{d:e($,F,m,o,h,h+f),fill:i.grid}),
7
+ /* @__PURE__ */p("path",{d:e($,F,m,o,h,h+f*s),fill:n})]},l.key)}const m=.14*v;/* @__PURE__ */
8
+ return p("g",{opacity:c?.4:1,onMouseEnter:()=>Q(r),children:/* @__PURE__ */p("path",{d:e($,F,m,m+(H-m)*s,A(r),A(r)+A.step),fill:n})},l.key)})]}),B&&null!==P&&/* @__PURE__ */p("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */p(n,{title:B.label,rows:[{key:"value",label:C.value,color:o(P,B.color,B.tone),value:E(B.value)}]})}),
9
9
  /* @__PURE__ */p("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(150px,1fr))"},children:g.map((e,t)=>/* @__PURE__ */d("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
10
10
  /* @__PURE__ */p("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:o(t,e.color,e.tone)}}),
11
11
  /* @__PURE__ */p("span",{className:"flex-1 truncate",children:e.label}),
@@ -1,4 +1,4 @@
1
- import{StatCard as e,Card as a}from"./chunk-CVXJKHPD.js";import{Sparkline as t}from"./chunk-CKCDGSTC.js";import{PieChart as r}from"./chunk-CUJA3HBZ.js";import{Avatar as s}from"./chunk-YAM3L5N4.js";import{ColumnChart as l}from"./chunk-PA3OU3Y7.js";import{StatusBadgeProvider as i,StatusBadge as d}from"./chunk-JMGDGNM7.js";import{Button_default as c}from"./chunk-EVYD6UFQ.js";import{TH_ONE_LINE as n}from"./chunk-G67CJAQ2.js";import{jsx as o,jsxs as m}from"react/jsx-runtime";var u={paid:"success",shipped:"active",processing:"queued",refunded:"neutral",overdue:"danger"},h=[12,18,14,22,19,27,24,31,28,35,30,38],p=["J","F","M","A","M","J","J","A","S","O","N","D"],g=[{key:"direct",label:"Direct",value:45},{key:"search",label:"Search",value:30},{key:"social",label:"Social",value:15},{key:"email",label:"Email",value:10}],x=[{id:"#3201",customer:"Alice Nguyen",total:"$1,204",status:"paid"},{id:"#3202",customer:"Marco Reyes",total:"$642",status:"shipped"},{id:"#3203",customer:"Priya Patel",total:"$2,980",status:"processing"},{id:"#3204",customer:"Tom Becker",total:"$318",status:"overdue"},{id:"#3205",customer:"Sara Lind",total:"$540",status:"refunded"}];function v(){/* @__PURE__ */
1
+ import{StatCard as e,Card as a}from"./chunk-CVXJKHPD.js";import{Sparkline as t}from"./chunk-CKCDGSTC.js";import{PieChart as r}from"./chunk-DYOFTZOC.js";import{Avatar as s}from"./chunk-YAM3L5N4.js";import{ColumnChart as l}from"./chunk-PA3OU3Y7.js";import{StatusBadgeProvider as i,StatusBadge as d}from"./chunk-JMGDGNM7.js";import{Button_default as c}from"./chunk-EVYD6UFQ.js";import{TH_ONE_LINE as n}from"./chunk-G67CJAQ2.js";import{jsx as o,jsxs as m}from"react/jsx-runtime";var u={paid:"success",shipped:"active",processing:"queued",refunded:"neutral",overdue:"danger"},h=[12,18,14,22,19,27,24,31,28,35,30,38],p=["J","F","M","A","M","J","J","A","S","O","N","D"],g=[{key:"direct",label:"Direct",value:45},{key:"search",label:"Search",value:30},{key:"social",label:"Social",value:15},{key:"email",label:"Email",value:10}],x=[{id:"#3201",customer:"Alice Nguyen",total:"$1,204",status:"paid"},{id:"#3202",customer:"Marco Reyes",total:"$642",status:"shipped"},{id:"#3203",customer:"Priya Patel",total:"$2,980",status:"processing"},{id:"#3204",customer:"Tom Becker",total:"$318",status:"overdue"},{id:"#3205",customer:"Sara Lind",total:"$540",status:"refunded"}];function v(){/* @__PURE__ */
2
2
  return o(i,{groups:u,children:/* @__PURE__ */o("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */m("div",{className:"mx-auto max-w-6xl space-y-6",children:[
3
3
  /* @__PURE__ */m("div",{className:"flex items-center justify-between gap-4",children:[
4
4
  /* @__PURE__ */m("div",{children:[
@@ -1,3 +1,3 @@
1
- import{IconPicker as e}from"./chunk-5NTKRMN4.js";import{ColorPicker as t}from"./chunk-Y43S6YS5.js";import{InputNumber_default as r,stepRounding as l}from"./chunk-ZDCCYRFF.js";import{BORDER_LINE_STYLES as o}from"./chunk-NOMWJTN2.js";import{Icon as a}from"./chunk-ISVODSRP.js";import{jsxs as i,Fragment as s,jsx as n}from"react/jsx-runtime";var d=["top","right","bottom","left"];function m(e){const t=e??{},r="number"==typeof t.width?t.width:0;return Object.fromEntries(d.map(e=>[e,"number"==typeof t[e]?t[e]:r]))}function h(e,t){const r=e??{},l=m(t),o=d.some(e=>"number"==typeof r[e]),a=d.map(e=>"number"==typeof r[e]?r[e]:"number"==typeof r.width?r.width:o?0:l[e]);return!a.every(e=>e===a[0])}var c="h-3.5 w-3.5",u={all:/* @__PURE__ */n(a,{name:"border-all","aria-hidden":"true",className:c}),top:/* @__PURE__ */n(a,{name:"border-top","aria-hidden":"true",className:c}),right:/* @__PURE__ */n(a,{name:"border-right","aria-hidden":"true",className:c}),bottom:/* @__PURE__ */n(a,{name:"border-bottom","aria-hidden":"true",className:c}),left:/* @__PURE__ */n(a,{name:"border-left","aria-hidden":"true",className:c})},p={solid:/* @__PURE__ */n(a,{name:"line-solid","aria-hidden":"true",className:c}),dashed:/* @__PURE__ */n(a,{name:"line-dashed","aria-hidden":"true",className:c}),dotted:/* @__PURE__ */n(a,{name:"line-dotted","aria-hidden":"true",className:c})};function f({label:a,value:m,onChange:h,each:c,placeholder:f,presets:b,words:w,widths:g=!0,styles:y=!0,min:N=0,max:v=20,step:S=1,readOnly:x,units:j}){const k=e=>"number"==typeof m[e]?m[e]:null,C=(e,t)=>{const r={...m};if("number"==typeof m.width)for(const e of d)null===k(e)&&(r[e]=m.width);r[e]=t,delete r.width,h(r)},O=(e,t,o,a,i,s)=>/* @__PURE__ */n("div",{"data-side":e,className:"all"===e?"col-span-2 min-w-0":"min-w-0",children:/* @__PURE__ */n(r,{value:a,onChange:s,min:N,max:v,step:S,...l(S),steppers:"compact",readOnly:x,placeholder:i,prefix:o,suffix:w.unit,units:j,"aria-label":t})}),R=d.map(k),Y="number"==typeof m.width?m.width:R.every(e=>null!==e&&e===R[0])?R[0]:null,D=null===Y&&R.some(e=>null!==e),F=d.every(e=>f.sides[e]===f.sides.top)?String(f.sides.top):"–",I=e=>k(e)??("number"==typeof m.width?m.width:null),M=m.style??f.style;/* @__PURE__ */
2
- return i("div",{role:"group","aria-label":a,"data-border":c?"each":"all",className:"grid w-full min-w-0 grid-cols-2 gap-2",children:[g?c?/* @__PURE__ */i(s,{children:[O("left",w.sides.left,u.left,I("left"),String(f.sides.left),e=>C("left",e)),O("top",w.sides.top,u.top,I("top"),String(f.sides.top),e=>C("top",e)),O("right",w.sides.right,u.right,I("right"),String(f.sides.right),e=>C("right",e)),O("bottom",w.sides.bottom,u.bottom,I("bottom"),String(f.sides.bottom),e=>C("bottom",e))]}):O("all",w.width,u.all,Y,D?"–":F,e=>{const t={...m,width:e};for(const e of d)delete t[e];h(t)}):null,y&&/* @__PURE__ */n("div",{"data-border-style":"",className:"col-span-2 min-w-0",children:/* @__PURE__ */n(e,{label:w.style,value:M,disabled:x,onChange:e=>{x||h({...m,style:e})},options:o.map(e=>({value:e,label:w.styles[e],icon:p[e]}))})}),
1
+ import{IconPicker as e}from"./chunk-KGBB6REQ.js";import{ColorPicker as t}from"./chunk-Y43S6YS5.js";import{InputNumber_default as r,stepRounding as l}from"./chunk-ZDCCYRFF.js";import{BORDER_LINE_STYLES as o}from"./chunk-NOMWJTN2.js";import{Icon as a}from"./chunk-ISVODSRP.js";import{jsxs as i,Fragment as s,jsx as n}from"react/jsx-runtime";var d=["top","right","bottom","left"];function m(e){const t=e??{},r="number"==typeof t.width?t.width:0;return Object.fromEntries(d.map(e=>[e,"number"==typeof t[e]?t[e]:r]))}function h(e,t){const r=e??{},l=m(t),o=d.some(e=>"number"==typeof r[e]),a=d.map(e=>"number"==typeof r[e]?r[e]:"number"==typeof r.width?r.width:o?0:l[e]);return!a.every(e=>e===a[0])}var c="h-3.5 w-3.5",u={all:/* @__PURE__ */n(a,{name:"border-all","aria-hidden":"true",className:c}),top:/* @__PURE__ */n(a,{name:"border-top","aria-hidden":"true",className:c}),right:/* @__PURE__ */n(a,{name:"border-right","aria-hidden":"true",className:c}),bottom:/* @__PURE__ */n(a,{name:"border-bottom","aria-hidden":"true",className:c}),left:/* @__PURE__ */n(a,{name:"border-left","aria-hidden":"true",className:c})},p={solid:/* @__PURE__ */n(a,{name:"line-solid","aria-hidden":"true",className:c}),dashed:/* @__PURE__ */n(a,{name:"line-dashed","aria-hidden":"true",className:c}),dotted:/* @__PURE__ */n(a,{name:"line-dotted","aria-hidden":"true",className:c})};function f({label:a,value:m,onChange:h,each:c,placeholder:f,presets:b,words:w,widths:g=!0,styles:y=!0,min:v=0,max:N=20,step:S=1,readOnly:x,units:j}){const k=e=>"number"==typeof m[e]?m[e]:null,C=(e,t)=>{const r={...m};if("number"==typeof m.width)for(const e of d)null===k(e)&&(r[e]=m.width);r[e]=t,delete r.width,h(r)},O=(e,t,o,a,i,s)=>/* @__PURE__ */n("div",{"data-side":e,className:"all"===e?"col-span-2 min-w-0":"min-w-0",children:/* @__PURE__ */n(r,{value:a,onChange:s,min:v,max:N,step:S,...l(S),steppers:"compact",readOnly:x,placeholder:i,prefix:o,suffix:w.unit,units:j,"aria-label":t})}),R=d.map(k),Y="number"==typeof m.width?m.width:R.every(e=>null!==e&&e===R[0])?R[0]:null,B=null===Y&&R.some(e=>null!==e),D=d.every(e=>f.sides[e]===f.sides.top)?String(f.sides.top):"–",E=e=>k(e)??("number"==typeof m.width?m.width:null),F=m.style??f.style;/* @__PURE__ */
2
+ return i("div",{role:"group","aria-label":a,"data-border":c?"each":"all",className:"grid w-full min-w-0 grid-cols-2 gap-2",children:[g?c?/* @__PURE__ */i(s,{children:[O("left",w.sides.left,u.left,E("left"),String(f.sides.left),e=>C("left",e)),O("top",w.sides.top,u.top,E("top"),String(f.sides.top),e=>C("top",e)),O("right",w.sides.right,u.right,E("right"),String(f.sides.right),e=>C("right",e)),O("bottom",w.sides.bottom,u.bottom,E("bottom"),String(f.sides.bottom),e=>C("bottom",e))]}):O("all",w.width,u.all,Y,B?"–":D,e=>{const t={...m,width:e};for(const e of d)delete t[e];h(t)}):null,y&&/* @__PURE__ */n("div",{"data-border-style":"",className:"col-span-2 min-w-0",children:/* @__PURE__ */n(e,{label:w.style,value:F,disabled:x,onChange:e=>{x||h({...m,style:e})},options:o.map(e=>({value:e,label:w.styles[e],icon:p[e]}))})}),
3
3
  /* @__PURE__ */n("div",{"data-border-color":"",className:"col-span-2 flex min-w-0 items-center",children:/* @__PURE__ */n(t,{value:m.color??"",onChange:e=>{x||h({...m,color:e})},label:w.color,presets:b,fallback:f.color,showHexInput:!0,size:"md",disabled:x})})]})}export{f as BorderInput,m as borderSides,h as borderStartEach};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{borderSides,borderStartEach,BorderInput as default}from"../chunk-BLY6SP5Y.js";import"../chunk-5NTKRMN4.js";import"../chunk-Y43S6YS5.js";import"../chunk-64RHGJXK.js";import"../chunk-ZDCCYRFF.js";import"../chunk-QOYKBINM.js";import"../chunk-2NMW66P5.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";import"../chunk-S6OB6HJB.js";import"../chunk-3DSGJIC7.js";import"../chunk-UZFFSZFI.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-DWGYC7OD.js";import"../chunk-GOAFMGUI.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
2
+ export{borderSides,borderStartEach,BorderInput as default}from"../chunk-O32GIVYD.js";import"../chunk-KGBB6REQ.js";import"../chunk-Y43S6YS5.js";import"../chunk-64RHGJXK.js";import"../chunk-ZDCCYRFF.js";import"../chunk-QOYKBINM.js";import"../chunk-2NMW66P5.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";import"../chunk-S6OB6HJB.js";import"../chunk-3DSGJIC7.js";import"../chunk-UZFFSZFI.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-DWGYC7OD.js";import"../chunk-GOAFMGUI.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
@@ -28,12 +28,18 @@ interface IconPickerProps<T extends string = string> {
28
28
  * whose content is taller (a word that wraps under its picture) grows to hold it, and every line of the grid
29
29
  * takes the tallest line's height (`.rosh-one-height-rows` in ui.css, the one rule `PictureTiles` wears), so no
30
30
  * content runs past its cell and every cell is one height (with or without the name tooltips). The width stays
31
- * `cell.width`: content wider than the cell must wrap inside it. The closed button keeps its size: it shows the chosen picture beside the chevron and still
31
+ * `cell.width`: content wider than the cell must wrap inside it. `words` (required) says whether each picture
32
+ * carries its word under it; the picker draws only the host's `icon`, so it cannot see one. With `words: true` a cell
33
+ * starts its content at the TOP, one top padding (`--space-8`) in every cell and `--space-4` at the bottom, so when
34
+ * one word wraps, the pictures of a line and the first line of their words stay level (centred content would drop a
35
+ * short word's picture below a wrapped one's). With `words: false` (a picture alone) a cell stays centred, so
36
+ * pictures of different heights on one line share one centre line. The closed button keeps its size: it shows the chosen picture beside the chevron and still
32
37
  * holds an svg to 16px.
33
38
  */
34
39
  cell?: {
35
40
  width: string;
36
41
  height: string;
42
+ words: boolean;
37
43
  };
38
44
  /**
39
45
  * Drawn in the popup above the grid: a filter for a long list of pictures. A function gets `close`.
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{IconPicker as default}from"../chunk-5NTKRMN4.js";import"../chunk-64RHGJXK.js";import"../chunk-SV5RRBVA.js";import"../chunk-DWGYC7OD.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
2
+ export{IconPicker as default}from"../chunk-KGBB6REQ.js";import"../chunk-64RHGJXK.js";import"../chunk-SV5RRBVA.js";import"../chunk-DWGYC7OD.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";