efficient-shell 12.7.0 → 12.8.1
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 +14 -3
- package/dist/{Browser-AKBOECNB.js → Browser-DEXVIONU.js} +14 -14
- package/dist/{Calculator-OJLVM42W.js → Calculator-NZ2S6CAK.js} +21 -21
- package/dist/{CurrencyConverter-UVOKFPMG.js → CurrencyConverter-H4M35SIY.js} +11 -11
- package/dist/Files-HDTNIXUC.js +121 -0
- package/dist/{Notepad-P6JFXK3G.js → Notepad-PSDXZTBI.js} +10 -10
- package/dist/{PomodoroTimer-UOV4CCYH.js → PomodoroTimer-SKAUQXPO.js} +7 -7
- package/dist/{Preview-XF5FKLVZ.js → Preview-HBB2SWJY.js} +19 -19
- package/dist/Sidebar-XGAVJGOL.js +44 -0
- package/dist/{Stock-6D4I2EWM.js → Stock-X7GEAET7.js} +3 -3
- package/dist/{Weather-BCOAQJDT.js → Weather-OH5PIQLU.js} +18 -18
- package/dist/{WorldClock-WX3O3EDU.js → WorldClock-S5NSJ7ZX.js} +4 -4
- package/dist/ai/index.js +54 -54
- 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/charts/ChordChart.js +1 -1
- package/dist/charts/FlowChart.js +1 -1
- package/dist/charts/RadarChart.js +1 -1
- package/dist/charts/SankeyChart.js +1 -1
- package/dist/charts/SpecChart.js +1 -1
- package/dist/charts/SunburstChart.js +1 -1
- package/dist/charts/TreemapChart.js +1 -1
- package/dist/{chunk-WVHGHMW3.js → chunk-23WJCEYD.js} +1 -1
- package/dist/chunk-27TJNID7.js +13 -0
- package/dist/{chunk-AHJAJLSK.js → chunk-2JXGTA73.js} +62 -62
- package/dist/{chunk-ZOZEQZUA.js → chunk-2UBASCOK.js} +1 -1
- package/dist/chunk-3C5NKOVF.js +1 -0
- package/dist/{chunk-SYZLS2JA.js → chunk-3DWVSQIJ.js} +1 -1
- package/dist/chunk-3I67TIGD.js +23 -0
- package/dist/chunk-3KP3EIYP.js +9 -0
- package/dist/{chunk-IXBKWVEP.js → chunk-4EVBKID5.js} +1 -1
- package/dist/{chunk-GEXETMGL.js → chunk-4JYHS4VJ.js} +1 -1
- package/dist/{chunk-J53LQWWY.js → chunk-5NONOFIV.js} +13 -13
- package/dist/{chunk-GZQD6IBV.js → chunk-5Q7VFXEO.js} +1 -1
- package/dist/{chunk-2BMGV6DE.js → chunk-6HH6KNJB.js} +1 -1
- package/dist/{chunk-IFQXTIMY.js → chunk-6LYBE7LM.js} +1 -1
- package/dist/{chunk-N6Q7HNAH.js → chunk-7FRG5CF7.js} +1 -1
- package/dist/chunk-7HTDD37H.js +6 -0
- package/dist/{chunk-DFYXIW4O.js → chunk-AXTVK6LU.js} +1 -1
- package/dist/{chunk-MGW7SX53.js → chunk-B7LNSGNR.js} +8 -8
- package/dist/{chunk-ND5IZ37V.js → chunk-BDWZLMIT.js} +5 -5
- package/dist/{chunk-C5LBNLFJ.js → chunk-BTUI3MKS.js} +1 -1
- package/dist/{chunk-N7JX27JE.js → chunk-BXU3LX44.js} +1 -1
- package/dist/{chunk-6BATVJBA.js → chunk-C37PXEEH.js} +4 -4
- package/dist/{chunk-56GGBTAD.js → chunk-C3SE57NF.js} +3 -3
- package/dist/chunk-EVYD6UFQ.js +2 -0
- package/dist/chunk-EZ6SVQSV.js +4 -0
- package/dist/{chunk-5JUG74UR.js → chunk-EZWWQHD3.js} +1 -1
- package/dist/{chunk-I5BS6AP6.js → chunk-F6QSHKUR.js} +4 -4
- package/dist/{chunk-CJH2BGXY.js → chunk-G67CJAQ2.js} +1 -1
- package/dist/{chunk-UVBX5LEU.js → chunk-GG4ZXQXG.js} +4 -4
- package/dist/{chunk-N442GPRJ.js → chunk-GHZ4PP62.js} +1 -1
- package/dist/{chunk-BG2OL3MO.js → chunk-GLJILR2Y.js} +6 -6
- package/dist/{chunk-RNQBWWYR.js → chunk-H27KA5IL.js} +5 -5
- package/dist/{chunk-UVGEOQI4.js → chunk-H6IGZWC2.js} +9 -9
- package/dist/chunk-HEAGOZKJ.js +6 -0
- package/dist/chunk-HQA7SPU5.js +4 -0
- package/dist/{chunk-G7I255HN.js → chunk-HS6KTFW6.js} +11 -11
- package/dist/{chunk-EYPKBJYG.js → chunk-HY6CBG4M.js} +1 -1
- package/dist/chunk-IFIMUNID.js +4 -0
- package/dist/{chunk-QIUIP6YZ.js → chunk-J33QE4J7.js} +2 -2
- package/dist/{chunk-JPNAEN53.js → chunk-JMGDGNM7.js} +1 -1
- package/dist/chunk-JY2OBPVO.js +11 -0
- package/dist/{chunk-57YY4J6T.js → chunk-JYD6PSDA.js} +1 -1
- package/dist/{chunk-OLVKHYHV.js → chunk-KETGA66S.js} +6 -6
- package/dist/chunk-KO74S3FL.js +28 -0
- package/dist/{chunk-YRJJKF5H.js → chunk-KUUZFLT6.js} +1 -1
- package/dist/{chunk-RVQUSPXC.js → chunk-LLAYWMYS.js} +1 -1
- package/dist/{chunk-TTQ7K4AJ.js → chunk-LLUHE2ZW.js} +1 -1
- package/dist/{chunk-XWFLIGDQ.js → chunk-M5K4AX4E.js} +1 -1
- package/dist/chunk-MCJ4JHLE.js +8 -0
- package/dist/{chunk-VYMM2BPX.js → chunk-MX2YRSMZ.js} +2 -2
- package/dist/{chunk-RFKCSRJX.js → chunk-MZG3FS5T.js} +5 -5
- package/dist/chunk-N5LVUI7R.js +15 -0
- package/dist/{chunk-BKKKIHHV.js → chunk-NKMSGZZ3.js} +6 -6
- package/dist/{chunk-RBMZSZOH.js → chunk-NPIZ2Y3P.js} +1 -1
- package/dist/{chunk-XMH2JOZ2.js → chunk-NU7LUJX5.js} +1 -1
- package/dist/{chunk-DANLBFBD.js → chunk-OCI3PZDU.js} +1 -1
- package/dist/{chunk-FLTPVFKA.js → chunk-OGPCFMNA.js} +1 -1
- package/dist/{chunk-JM2IQC4J.js → chunk-PPSA3QLE.js} +1 -1
- package/dist/{chunk-JQBVSPF5.js → chunk-QAS22BIS.js} +1 -1
- package/dist/{chunk-RQDVAUXD.js → chunk-QJGZOD6X.js} +3 -3
- package/dist/{chunk-J4KYZGHQ.js → chunk-QLVH66TE.js} +19 -19
- package/dist/{chunk-UPTKROT7.js → chunk-QQXQQPCD.js} +8 -8
- package/dist/{chunk-QNYZTD7V.js → chunk-QR46K5SB.js} +1 -1
- package/dist/{chunk-34SPT4I6.js → chunk-RJKMFIM3.js} +6 -6
- package/dist/{chunk-UDHJTQBA.js → chunk-ROM25ZMZ.js} +12 -12
- package/dist/chunk-SE3S362N.js +7 -0
- package/dist/chunk-SOZCWT6I.js +6 -0
- package/dist/{chunk-UGOJLNYR.js → chunk-SV5RRBVA.js} +1 -1
- package/dist/{chunk-ZKQWS2ML.js → chunk-SYIJRZIS.js} +1 -1
- package/dist/chunk-TWFD7A3K.js +1 -0
- package/dist/{chunk-6U25ELYF.js → chunk-TXZR5G55.js} +1 -1
- package/dist/{chunk-FVZXRGVM.js → chunk-U5DSVCWV.js} +7 -7
- package/dist/{chunk-3PWI5IH7.js → chunk-UK6XNW3I.js} +10 -10
- package/dist/{chunk-62275PI2.js → chunk-UOUVHHTC.js} +1 -1
- package/dist/{chunk-5MO5JBBK.js → chunk-UZZVI7EN.js} +1 -1
- package/dist/{chunk-XK4SMAVR.js → chunk-VQJLH2BU.js} +1 -1
- package/dist/{chunk-A4KQKN32.js → chunk-VROBW74Y.js} +1 -1
- package/dist/{chunk-KDTL6VEC.js → chunk-VVQJHQW6.js} +8 -8
- package/dist/chunk-WSRM6ZQS.js +7 -0
- package/dist/{chunk-X32TVINY.js → chunk-X5ZY35KZ.js} +1 -1
- package/dist/{chunk-EZPSNUYR.js → chunk-X7APOT53.js} +7 -7
- package/dist/{chunk-EIY6YGEZ.js → chunk-XFD4BLP7.js} +1 -1
- package/dist/{chunk-EEVLRCMA.js → chunk-XVIDD6F3.js} +8 -8
- package/dist/{chunk-2HZQZTW5.js → chunk-YJIFJIXV.js} +1 -1
- package/dist/{chunk-WCPAQHHA.js → chunk-YMNWUQGV.js} +4 -4
- package/dist/{chunk-MOMOZVOW.js → chunk-YUB3TJKO.js} +3 -3
- package/dist/chunk-Z2MNXUM6.js +3 -0
- package/dist/{chunk-KUEYOJBN.js → chunk-ZC3TSMFK.js} +2 -2
- package/dist/{chunk-YU6KOO6O.js → chunk-ZYW4KSEE.js} +4 -4
- package/dist/data/DataTable.js +1 -1
- package/dist/data/EntityList.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/data/ResizableTable.js +1 -1
- package/dist/forms/AlignmentGrid.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/Button.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/IconButton.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/Input.js +1 -1
- package/dist/forms/InputNumber.d.ts +6 -0
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/NumericKeypad.js +1 -1
- package/dist/forms/PictureTiles.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/RenameField.js +1 -1
- package/dist/forms/Segmented.js +1 -1
- package/dist/forms/SidesInput.d.ts +12 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/Snippet.js +1 -1
- package/dist/forms/SplitButton.js +1 -1
- package/dist/forms/TagInput.js +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/UnitMenu.d.ts +16 -0
- package/dist/forms/UnitMenu.js +1 -0
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/icons/efficient-glyphs.js +1 -1
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/looks/map.js +1 -1
- package/dist/icons/sets.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +344 -344
- package/dist/map/index.js +3 -3
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/DropdownMenu.d.ts +13 -2
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/EditableGrid.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/IconRail.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/ItemCount.js +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/PopupMenu.d.ts +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/ResizeHandle.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SidebarLayout.js +1 -1
- package/dist/shell/SidebarNav.js +1 -1
- package/dist/shell/SortableList.js +1 -1
- package/dist/shell/StatusBadge.js +1 -1
- package/dist/shell/Tabs.js +1 -1
- package/dist/shell/Tooltip.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/TransferProgress.js +1 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/ErrorBoundary.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Files-CRQDRSFS.js +0 -121
- package/dist/Sidebar-F7HHC5GY.js +0 -44
- package/dist/chunk-2YRLRMZH.js +0 -23
- package/dist/chunk-7RRJPNYN.js +0 -4
- package/dist/chunk-BTFBXZS2.js +0 -1
- package/dist/chunk-BUGTNNZQ.js +0 -15
- package/dist/chunk-C57PNNAW.js +0 -13
- package/dist/chunk-EB2UE6ZR.js +0 -10
- package/dist/chunk-GUIJCTFJ.js +0 -8
- package/dist/chunk-I64TVNHS.js +0 -6
- package/dist/chunk-N7YHXL2F.js +0 -3
- package/dist/chunk-PIWC3CAC.js +0 -4
- package/dist/chunk-PM4Y2FMQ.js +0 -9
- package/dist/chunk-PVXX77MY.js +0 -6
- package/dist/chunk-PWYLGTZS.js +0 -1
- package/dist/chunk-QQ2LDC6C.js +0 -6
- package/dist/chunk-SZT72QMD.js +0 -28
- package/dist/chunk-TQWLJ5VM.js +0 -7
- package/dist/chunk-UJJXWLHE.js +0 -2
- package/dist/chunk-YZR4T5FZ.js +0 -7
- /package/dist/{chunk-T75VCE6K.js → chunk-GMHMWDXU.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Markdown as e}from"./chunk-
|
|
1
|
+
import{Markdown as e}from"./chunk-X5ZY35KZ.js";import{PLACEHOLDER_INK as t}from"./chunk-AYZY3YNC.js";import{Icon as l}from"./chunk-UIWGVOFH.js";import{LoadingSpinner as r}from"./chunk-R2VKEMZH.js";import{useShellStrings as s}from"./chunk-43MCNASD.js";import{useState as a,useMemo as n}from"react";import{jsxs as i,jsx as o,Fragment as c}from"react/jsx-runtime";var d=({open:e})=>/* @__PURE__ */o(l,{name:"chevron-right",look:"mini",className:"h-3.5 w-3.5 shrink-0 transition-transform "+(e?"rotate-90":""),"aria-hidden":"true"});function h({docs:h,loading:m=!1,categoryOrder:p,canEdit:u=!1,onNew:g,onEdit:x,renderBody:f,emptyMessage:b}){const y=s(),[N,v]=a(""),[w,k]=a(null),[C,j]=a({}),M=N.trim().toLowerCase(),_=n(()=>{const e=/* @__PURE__ */new Map;for(const t of h){let l=e.get(t.category);l||(l={key:t.category,label:t.category_label||t.category,docs:[]},e.set(t.category,l)),l.docs.push(t)}if(!p?.length)return[...e.values()];const t=new Map(p.map((e,t)=>[e,t]));return[...e.values()].sort((e,l)=>(t.get(e.key)??1/0)-(t.get(l.key)??1/0))},[h,p]),A=e=>!M||e.title.toLowerCase().includes(M)||e.body.toLowerCase().includes(M)||e.category_label.toLowerCase().includes(M),L=n(()=>_.map(e=>({...e,docs:e.docs.filter(A)})).filter(e=>e.docs.length>0),[_,M]),Y=n(()=>L.flatMap(e=>e.docs),[L]),Z=(w?Y.find(e=>e.slug===w):void 0)??Y[0]??null,E=e=>!!M||(C[e]??e===Z?.category);/* @__PURE__ */
|
|
2
2
|
return i("div",{className:"flex h-full gap-4 px-4 py-3 min-h-0",children:[
|
|
3
3
|
/* @__PURE__ */i("aside",{className:"w-64 shrink-0 flex flex-col bg-white rounded-lg shadow overflow-hidden",children:[
|
|
4
4
|
/* @__PURE__ */i("div",{className:"flex items-center justify-between gap-2 px-3 py-2 border-b border-gray-200 bg-gray-50 shrink-0",children:[
|
|
@@ -6,16 +6,16 @@ return i("div",{className:"flex h-full gap-4 px-4 py-3 min-h-0",children:[
|
|
|
6
6
|
/* @__PURE__ */o("div",{className:"px-3 py-2 border-b border-line-subtle shrink-0",children:/* @__PURE__ */i("div",{className:"relative",children:[
|
|
7
7
|
/* @__PURE__ */o(l,{name:"search",look:"mini",className:`pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 ${t}`,"aria-hidden":"true"}),
|
|
8
8
|
/* @__PURE__ */o("input",{type:"text",value:N,onChange:e=>v(e.target.value),placeholder:y.help.searchPlaceholder,className:"w-full rounded-md border border-line-strong bg-surface h-8 pl-8 pr-2 text-sm shadow-sm focus:border-blue-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-accent)]"})]})}),
|
|
9
|
-
/* @__PURE__ */o("div",{className:"flex-1 overflow-y-auto py-1",children:m?/* @__PURE__ */o(r,{size:"sm",padding:"py-6",label:y.help.loading}):0===L.length?/* @__PURE__ */o("p",{className:"px-3 py-6 text-center text-xs text-gray-500",children:M?y.help.noResults:b??y.help.empty}):L.map(e=>{const t=
|
|
9
|
+
/* @__PURE__ */o("div",{className:"flex-1 overflow-y-auto py-1",children:m?/* @__PURE__ */o(r,{size:"sm",padding:"py-6",label:y.help.loading}):0===L.length?/* @__PURE__ */o("p",{className:"px-3 py-6 text-center text-xs text-gray-500",children:M?y.help.noResults:b??y.help.empty}):L.map(e=>{const t=E(e.key);/* @__PURE__ */
|
|
10
10
|
return i("div",{className:"py-0.5",children:[
|
|
11
|
-
/* @__PURE__ */i("button",{type:"button",onClick:()=>{return t=e.key,j(e=>({...e,[t]:!
|
|
11
|
+
/* @__PURE__ */i("button",{type:"button",onClick:()=>{return t=e.key,j(e=>({...e,[t]:!E(t)}));var t},className:"w-full flex items-center gap-2 h-8 px-3 text-left text-3xs font-semibold uppercase tracking-wide text-ink-faintest hover:text-gray-600",children:[
|
|
12
12
|
/* @__PURE__ */o(d,{open:t}),
|
|
13
|
-
/* @__PURE__ */o("span",{className:"truncate",children:e.label})]}),t&&e.docs.map(e=>{const t=
|
|
13
|
+
/* @__PURE__ */o("span",{className:"truncate",children:e.label})]}),t&&e.docs.map(e=>{const t=Z?.slug===e.slug;/* @__PURE__ */
|
|
14
14
|
return i("button",{type:"button",onClick:()=>k(e.slug),className:"w-full text-left pl-8 pr-3 min-h-(--row-height-menu) py-2 text-sm flex items-center gap-2 transition-colors "+(t?"bg-blue-50 text-blue-700 font-medium":"text-gray-700 hover:bg-gray-50"),children:[
|
|
15
15
|
/* @__PURE__ */o("span",{className:"truncate",children:e.title}),!1===e.is_published&&/* @__PURE__ */o("span",{className:"ml-auto shrink-0 text-2xs text-amber-600",children:y.help.draft})]},e.slug)})]},e.key)})})]}),
|
|
16
|
-
/* @__PURE__ */o("main",{className:"flex-1 min-w-0 bg-white rounded-lg shadow overflow-hidden flex flex-col",children:
|
|
16
|
+
/* @__PURE__ */o("main",{className:"flex-1 min-w-0 bg-white rounded-lg shadow overflow-hidden flex flex-col",children:Z?/* @__PURE__ */i(c,{children:[
|
|
17
17
|
/* @__PURE__ */i("div",{className:"flex items-start justify-between gap-4 px-5 py-3 border-b border-gray-200 bg-gray-50 shrink-0",children:[
|
|
18
18
|
/* @__PURE__ */i("div",{className:"min-w-0",children:[
|
|
19
|
-
/* @__PURE__ */o("h1",{className:"text-lg font-semibold text-gray-900 truncate",children:
|
|
20
|
-
/* @__PURE__ */i("p",{className:"text-xs text-gray-500 mt-0.5",children:[
|
|
21
|
-
/* @__PURE__ */o("div",{className:"flex-1 overflow-auto px-5 py-4",children:f?f(
|
|
19
|
+
/* @__PURE__ */o("h1",{className:"text-lg font-semibold text-gray-900 truncate",children:Z.title}),
|
|
20
|
+
/* @__PURE__ */i("p",{className:"text-xs text-gray-500 mt-0.5",children:[Z.category_label,!1===Z.is_published&&/* @__PURE__ */i("span",{className:"ml-2 text-amber-600",children:["· ",y.help.draft]})]})]}),u&&x&&/* @__PURE__ */o("button",{type:"button",onClick:()=>x(Z),className:"shrink-0 text-sm text-blue-600 hover:underline",children:y.help.edit})]}),
|
|
21
|
+
/* @__PURE__ */o("div",{className:"flex-1 overflow-auto px-5 py-4",children:f?f(Z):Z.body?/* @__PURE__ */o(e,{children:Z.body}):/* @__PURE__ */o("p",{className:"text-sm text-gray-500 italic",children:y.help.noBody})})]}):/* @__PURE__ */o("div",{className:"flex-1 flex items-center justify-center px-6 text-center",children:m?/* @__PURE__ */o(r,{size:"sm",padding:"",label:y.help.loading}):/* @__PURE__ */o("p",{className:"text-sm text-ink-faint",children:y.help.pickArticle})})})]})}export{h as HelpCenter};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{squarify as e}from"./chunk-46BYGPGD.js";import{AccessibleTable as t}from"./chunk-HY6CBG4M.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{usePlotWidth as a}from"./chunk-MAFUXCPZ.js";import{ChartTooltip as r}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as i,CHART_INK as o}from"./chunk-TZFACUMR.js";import{useShellStrings as n,useShellLocale as m}from"./chunk-43MCNASD.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useRef as c,useState as u}from"react";import{jsx as s,jsxs as f}from"react/jsx-runtime";function p({items:p,height:d=320,width:v,gap:x=2,radius:g=3,formatValue:y,color:k,className:b,emptyLabel:M}){const j=n().charts,w=m(),N=y??(e=>h(e,w)),C=M??j.nothingToBreakDown,$=c(null),A=a($),B=v??A,[D,F]=u(null),{highlighted:Y}=l(),z=e(p,B,d);if(0===z.length)/* @__PURE__ */
|
|
2
|
+
return s("div",{className:b,ref:$,children:/* @__PURE__ */s("p",{className:"py-8 text-center text-sm text-gray-500",children:C})});const G=k??i(0),H=Math.max(...z.map(e=>e.value),1),S=e=>34+e/H*62,V=e=>`color-mix(in oklab, ${G} ${S(e).toFixed(0)}%, ${o.surface})`,E=e=>S(e)>=55?o.surface:o.label,I=D??Y,L=D?z.find(e=>e.key===D):void 0;/* @__PURE__ */
|
|
3
|
+
return f("div",{className:`relative ${b??""}`,ref:$,children:[
|
|
4
|
+
/* @__PURE__ */s("svg",{width:"100%",height:d,viewBox:`0 0 ${B} ${d}`,role:"img","aria-label":j.treemap(p.length),onMouseLeave:()=>F(null),children:z.map(e=>{const t=Math.max(0,e.width-x),l=Math.max(0,e.height-x),a=t>6.2*e.label.length+12&&l>30,r=a&&l>44;/* @__PURE__ */
|
|
5
|
+
return f("g",{opacity:I&&I!==e.key?.55:1,onMouseEnter:()=>F(e.key),children:[
|
|
6
|
+
/* @__PURE__ */s("rect",{x:e.x+x/2,y:e.y+x/2,width:t,height:l,rx:g,fill:V(e.value)}),a&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+18,fontSize:12,fontWeight:600,fill:E(e.value),children:e.label}),r&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+34,fontSize:11,fill:E(e.value),fillOpacity:.85,style:{fontVariantNumeric:"tabular-nums"},children:N(e.value)})]},e.key)})}),L&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(r,{title:L.label,rows:[{key:"value",label:j.value,color:V(L.value),value:N(L.value)}]})}),
|
|
7
|
+
/* @__PURE__ */s(t,{caption:j.treemap(p.length),head:[j.tableItem,j.value],rows:z.map(e=>[e.label,N(e.value)])})]})}export{p as TreemapChart};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{isSafeLinkHref as e}from"./chunk-Q5Z3KHT2.js";import{Button_default as t}from"./chunk-
|
|
1
|
+
import{isSafeLinkHref as e}from"./chunk-Q5Z3KHT2.js";import{Button_default as t}from"./chunk-EVYD6UFQ.js";import{Icon as n}from"./chunk-UIWGVOFH.js";import{useShellStrings as r}from"./chunk-43MCNASD.js";import{createContext as l,useContext as s}from"react";import{jsx as a,jsxs as i}from"react/jsx-runtime";var c=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`|\*([^*]+)\*/g,o=l(void 0);function d({href:t,children:n}){const r=s(o),l=(t=>e(t.trim()))(t)?t:void 0;/* @__PURE__ */
|
|
2
2
|
return a("a",{href:l,target:"_blank",rel:"noreferrer",className:"text-blue-600 hover:underline",onClick:l&&r?e=>{(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey))(e)&&r(l)&&e.preventDefault()}:void 0,children:n})}function u(e){const t=[];let n,r=0,l=0;const s=new RegExp(c.source,"g");for(;null!==(n=s.exec(e));)n.index>r&&t.push(e.slice(r,n.index)),void 0!==n[1]?t.push(
|
|
3
3
|
/* @__PURE__ */i("span",{className:"text-gray-400",children:["[",n[1],"]"]},l++)):void 0!==n[3]?t.push(
|
|
4
4
|
/* @__PURE__ */a(d,{href:n[4],children:n[3]},l++)):void 0!==n[5]?t.push(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{SearchableSelect as e}from"./chunk-
|
|
1
|
+
import{SearchableSelect as e}from"./chunk-27TJNID7.js";import{Select_default as a}from"./chunk-UDVQORQM.js";import{labelClasses as l}from"./chunk-EQKUFYX6.js";import{isSafeLinkHref as t}from"./chunk-Q5Z3KHT2.js";import{Input_default as r}from"./chunk-5Q7VFXEO.js";import{INPUT_SIZES as n}from"./chunk-AYZY3YNC.js";import{Button_default as i}from"./chunk-EVYD6UFQ.js";import{Icon as o}from"./chunk-UIWGVOFH.js";import{registerModalEscapeInterceptor as s}from"./chunk-TWVUQUUD.js";import{useShellStrings as u}from"./chunk-43MCNASD.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:N,readOnly:C,placeholder:F,className:O="",tidyAddress:j,addressAddon:D}=t,E=void 0!==t.onApply,$=u().link,A=y.isSafe??k,Q=d(),T=c(null),U=c(null),[z,V]=p({url:n}),Y=E?z.url:n,[K,M]=p(!1),[W,H]=p(null),[P,R]=p(null),[S,B]=p(!1),I=c(null),L=c(()=>{});L.current=E?t.onCancel:()=>{},m(()=>{if(E)return s(e=>{const a=T.current;return!!("Escape"===e.key&&a&&e.target instanceof Node&&a.contains(e.target))&&(L.current(),!0)},()=>T.current)},[E]),m(()=>{if(!E)return;const e=U.current;e?(e.focus(),e.select()):T.current?.querySelector("button, input")?.focus()},[]);const X=o??[{value:b,label:$.address,target:{type:"text"}}],Z=W&&W.against===Y?W.kind:y.kindOf(Y),q=X.filter(e=>!e.hideWhenEmpty||h(e.target).length>0||e.value===Z),G=q.find(e=>"text"===e.target.type),J=q.find(e=>e.value===Z)??G??q[0];if(!J)return null;const _="text"!==J.target.type,ee=_?y.targetOf(Y):Y,ae=h(J.target),le=ae.find(e=>e.value===ee),te=e=>({value:e,label:$.unavailable(e)}),re="select"===J.target.type&&ee&&w?w(ee):null,ne=re?y.readFilter(Y):null,ie=ne?re?.find(e=>e.param===ne.param):void 0,oe=P&&P.against===Y?P.text:Y,se=_?Y:j?j(oe.trim()).trim():oe.trim(),ue=E&&j?se:oe,de=!_&&""!==ue.trim()&&!A(ue),ce=de&&(!E||K);_&&S&&B(!1);const pe=(e,a)=>{E?V({url:e,name:a}):void 0===a?t.onChange(e):t.onChange(e,a)},me=(e,a)=>{H(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=>{M(!1);const a=e.trim();a?A(e)?(R({text:e,against:a}),me(a)):R({text:e,against:Y}):(R({text:e,against:""}),me(""))},ge=e=>{const a=e.relatedTarget;if(a&&(a===U.current||I.current?.contains(a)))return;if(B(!1),E||!j||C)return;const l=j(oe.trim());l.trim()!==oe.trim()&&ve(l)},he=()=>{if(!E||!se)return;if(!_&&de)return void M(!0);const e=_&&z.url===se?z.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
2
|
return f(e,{"aria-label":l,value:t,options:o,disabled:C,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:C,onChange:n})};let ke;if("text"===
|
|
4
|
-
return f("div",{ref:
|
|
5
|
-
return v("div",{ref:
|
|
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
|
|
3
|
+
return f(a,{size:"sm","aria-label":l,value:t,options:o,readOnly:C,onChange:n})};let ke;if("text"===J.target.type)ke=/* @__PURE__ */f(r,{ref:U,id:`${Q}-address`,size:"sm",type:"text",invalid:ce,"aria-label":$.address,"aria-describedby":ce?`${Q}-why`:void 0,placeholder:F??$.addressPlaceholder,spellCheck:!1,autoComplete:"off",value:oe,readOnly:C,onChange:e=>ve(e.target.value),onFocus:()=>B(!0),onBlur:ge,onKeyDown:j&&!E?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($.linkType,J.value,q.map(e=>({value:e.value,label:e.label})),e=>{R(null),M(!1);const a=q.find(a=>a.value===e);if(!a||"text"===a.target.type)return void H({kind:e,against:Y});const l=h(a.target)[0];H({kind:e,against:l?l.value:""}),l?pe(l.value,l.label):pe("")},!1),ke,D&&S&&!C&&"text"===J.target.type&&/* @__PURE__ */f("div",{ref:I,onBlur:ge,children:D({url:oe,onChange:ve})}),re&&xe($.filter,ne?.param??"",[{value:"",label:$.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($.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:`${Q}-why`,role:"alert",className:"text-2xs leading-4 text-red-600",children:$.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:$.filterHint})]});if(!E)/* @__PURE__ */
|
|
4
|
+
return f("div",{ref:T,className:`flex min-w-0 flex-auto flex-col gap-2 ${O}`.trim(),role:N?"group":void 0,"aria-label":N,children:ye});const we=t.onRemove;/* @__PURE__ */
|
|
5
|
+
return v("div",{ref:T,role:"dialog","aria-label":N??$.title,className:`flex min-w-0 flex-col gap-2 rounded-xl border border-line bg-surface p-3 shadow-lg ${O}`.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:$.title}):/* @__PURE__ */f("label",{htmlFor:`${Q}-address`,className:l({inline:!0}),children:$.title}),ye,
|
|
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:$.remove}):null,
|
|
7
7
|
/* @__PURE__ */v("span",{className:"ml-auto flex gap-1",children:[
|
|
8
|
-
/* @__PURE__ */f(i,{variant:"secondary",size:"sm","data-window-action":"cancel",onClick:()=>
|
|
9
|
-
/* @__PURE__ */f(i,{variant:"primary",size:"sm","data-window-action":"apply",onClick:he,disabled:C||""===se,children
|
|
8
|
+
/* @__PURE__ */f(i,{variant:"secondary",size:"sm","data-window-action":"cancel",onClick:()=>L.current(),children:$.cancel}),
|
|
9
|
+
/* @__PURE__ */f(i,{variant:"primary",size:"sm","data-window-action":"apply",onClick:he,disabled:C||""===se,children:$.apply})]})]})]})}function w({label:e,text:a,onTextChange:l,link:t,onLinkChange:i,kinds:s,rules:m,filtersFor:g,textPlaceholder:h,readOnly:b,className:x=""}){const k=u().link,[w,N]=p(!1),C=c(null),F=d(),O=()=>{N(!1),C.current?.focus()};/* @__PURE__ */
|
|
10
10
|
return v("div",{className:`flex min-w-0 flex-auto flex-col ${x}`.trim(),children:[
|
|
11
11
|
/* @__PURE__ */f(r,{size:"md",type:"text",className:"rounded-b-none","aria-label":k.text(e),placeholder:h,value:a,readOnly:b,onChange:e=>l(e.target.value)}),
|
|
12
12
|
/* @__PURE__ */v("button",{ref:C,type:"button","aria-label":k.linkOf(e,t),"aria-expanded":w,"aria-controls":w?F:void 0,disabled:b,onClick:()=>N(e=>!e),className:`flex w-full min-w-0 items-center gap-2 rounded-b-(--radius-control) border border-t-0 border-line-strong bg-surface-sunken ${n.md} text-left hover:bg-gray-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring)] disabled:cursor-not-allowed disabled:opacity-60`,children:[
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{ColoredBadge as e}from"./chunk-
|
|
1
|
+
import{ColoredBadge as e}from"./chunk-EZWWQHD3.js";import{Button_default as n}from"./chunk-EVYD6UFQ.js";import{useShellStrings as i}from"./chunk-43MCNASD.js";import{useId as t}from"react";import{jsx as m,jsxs as a}from"react/jsx-runtime";function s({items:s,heading:l,emptyText:r,className:c=""}){const o=i().media,d=t();return s.length?/* @__PURE__ */a("div",{className:c||void 0,children:[
|
|
2
2
|
/* @__PURE__ */m("p",{id:d,className:"text-xs font-medium text-ink-faint",children:l??o.usedIn(s.length)}),
|
|
3
3
|
/* @__PURE__ */m("ul",{"aria-labelledby":d,className:"mt-2 flex flex-col gap-1",children:s.map(i=>/* @__PURE__ */a("li",{className:"flex min-w-0 items-center gap-2 text-sm",children:[null!=i.kind&&/* @__PURE__ */m(e,{size:"xs",className:"flex-none",children:i.kind}),i.onOpen?/* @__PURE__ */m(n,{variant:"link",size:"sm",onClick:i.onOpen,className:"min-w-0 text-left",children:i.name}):/* @__PURE__ */m("span",{className:"min-w-0 break-words text-ink",children:i.name})]},i.key))})]}):/* @__PURE__ */m("p",{className:`text-sm text-ink-faint ${c}`.trim(),children:r??o.notUsed})}export{s as MediaUsedInList};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import{FormField as e}from"./chunk-6KBDNYRW.js";import{zoneFocusClass as t,mediaPromptLine as r,UploadGlyph as a,dropzoneClass as n,BusyOverlay as l,isVideoUrl as i,mediaFileName as o,FilenameBadge as s}from"./chunk-
|
|
2
|
-
return v("div",{...Ce?{"data-grid-item":"","data-grid-id":e.id,role:"option"}:{},...ee?{[m]:""}:{},"aria-selected":Ke?Ke.has(e.id):void 0,onClick:Ce?t=>{t.target.closest?.("button")||
|
|
1
|
+
import{FormField as e}from"./chunk-6KBDNYRW.js";import{zoneFocusClass as t,mediaPromptLine as r,UploadGlyph as a,dropzoneClass as n,BusyOverlay as l,isVideoUrl as i,mediaFileName as o,FilenameBadge as s}from"./chunk-VQJLH2BU.js";import{useFileIntake as d,FileIntakeAlert as c}from"./chunk-7KIDOIPY.js";import{ColoredBadge as u}from"./chunk-EZWWQHD3.js";import{MENU_ON_MEDIA_ATTR as m}from"./chunk-5QFPTDQF.js";import{Icon as p}from"./chunk-UIWGVOFH.js";import{Tooltip as f}from"./chunk-SOZCWT6I.js";import{useShellStrings as h}from"./chunk-43MCNASD.js";import{useId as g,useState as b,useRef as y}from"react";import{jsxs as v,jsx as x}from"react/jsx-runtime";var k=112,D=/* @__PURE__ */x(p,{name:"close",strokeWidth:2,strokeLinecap:"round","aria-hidden":"true",className:"h-3 w-3"});function N({items:p,onPick:k,onFiles:N,onRemove:w,onReorder:j,dragType:K,onDragOutChange:C,dropType:T,onDropData:I,label:A,hint:O,error:F,required:S,className:L,accept:P="image/*",maxSizeBytes:z,maxFiles:E,fit:H="cover",thumbSize:W=96,placeholder:$,cta:M,acceptHint:B,showCover:Q=!1,coverLabel:R,busy:U=!1,busyLabel:q,progress:V,disabled:Y=!1,readOnly:Z=!1,selected:G,onItemClick:J,onItemDoubleClick:X,onItemContextMenu:_,menuOnMedia:ee=!1}){const te=h().media,re=M??te.cta,ae=R??te.cover,ne=q??te.uploading,le=g(),[ie,oe]=b(null),se=Y||U,de=!(!k&&!N||se||Z),ce=!!w&&!se&&!Z,ue=!!j&&!se&&!Z,me=!!K&&!Y&&!ue,pe=!(!T||!I||se||Z),fe=t(se),he=$??r(P,te),ge=d({accept:P,maxSizeBytes:z,maxFiles:E,acceptHint:B,multiple:!0,disabled:!de,currentCount:p.length,onAccept:e=>{if(N)N(e);else for(const t of e)k(t)}}),[be,ye]=b(!1),ve=y(0),xe=e=>pe&&Array.from(e.dataTransfer?.types??[]).includes(T),ke=ge.zoneProps,De={onDragEnter:e=>{if(!xe(e))return ke.onDragEnter?.(e);e.preventDefault(),ve.current+=1,ye(!0)},onDragOver:e=>{if(!xe(e))return ke.onDragOver?.(e);e.preventDefault(),e.dataTransfer.dropEffect="link",be||ye(!0)},onDragLeave:e=>{if(!xe(e))return ke.onDragLeave?.(e);ve.current=Math.max(0,ve.current-1),0===ve.current&&ye(!1)},onDrop:e=>{if(!xe(e))return ke.onDrop?.(e);e.preventDefault(),ve.current=0,ye(!1);const t=e.dataTransfer.getData(T);t&&I(t)}},Ne=ge.dragOver||be,we=()=>{de&&(k?k():ge.open())},je={width:W,height:W},Ke=null==G?null:new Set(G),Ce=!!J,Te=W<112,Ie=(e,t)=>{const r=e.kind?"video"===e.kind:i(e.url,P),a=e.name??o(e.url),n=Q&&(e.cover??0===t);/* @__PURE__ */
|
|
2
|
+
return v("div",{...Ce?{"data-grid-item":"","data-grid-id":e.id,role:"option"}:{},...ee?{[m]:""}:{},"aria-selected":Ke?Ke.has(e.id):void 0,onClick:Ce?t=>{t.target.closest?.("button")||J(e.id,{ctrlKey:t.ctrlKey,metaKey:t.metaKey,shiftKey:t.shiftKey})}:void 0,onDoubleClick:X?()=>X(e.id):void 0,onContextMenu:_?t=>_(e.id,t):void 0,draggable:ue||me&&!!e.dragData||void 0,onDragStart:ue?e=>{e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(t)),oe(t)}:me&&e.dragData?t=>{t.dataTransfer.effectAllowed=e.dragAlso?"all":"link",t.dataTransfer.setData(K,e.dragData);for(const[r,a]of Object.entries(e.dragAlso??{}))t.dataTransfer.setData(r,a);C?.("start",e.id)}:void 0,onDragEnd:ue?()=>oe(null):me&&e.dragData&&C?t=>C("none"===t.dataTransfer.dropEffect?"cancelled":"dropped",e.id):void 0,onDragOver:ue?e=>{null!=ie&&(e.preventDefault(),e.stopPropagation())}:void 0,onDrop:ue?e=>{null!=ie&&(e.preventDefault(),e.stopPropagation(),ie!==t&&j(ie,t),oe(null))}:void 0,tabIndex:ue||Ce?0:void 0,"aria-label":ue?te.reorder(a,t+1,p.length):Ce?a:void 0,onKeyDown:Ce&&!ue?t=>{t.target!==t.currentTarget||"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),J(e.id,{ctrlKey:t.ctrlKey,metaKey:t.metaKey,shiftKey:t.shiftKey}))}:ue?e=>{"ArrowLeft"===e.key||"ArrowUp"===e.key?t>0&&(e.preventDefault(),j(t,t-1)):"ArrowRight"!==e.key&&"ArrowDown"!==e.key||t<p.length-1&&(e.preventDefault(),j(t,t+1))}:void 0,className:["relative shrink-0 overflow-hidden rounded-md border border-line bg-gray-100",fe,ie===t?"opacity-50":"",Ke?.has(e.id)?"ring-2 ring-blue-500 ring-offset-1":"",Ce?"cursor-pointer":""].join(" "),style:{...je,cursor:ue?"move":void 0},children:[r?/* @__PURE__ */x("video",{src:e.url,muted:!0,playsInline:!0,preload:"metadata","aria-label":a,className:"h-full w-full",style:{objectFit:H}}):/* @__PURE__ */x("img",{src:e.url,alt:a,className:"h-full w-full",style:{objectFit:H}}),n&&/* @__PURE__ */x("span",{className:"absolute left-1 top-1 rounded bg-accent-fill px-2 py-0.5 text-xs font-medium text-on-accent",children:ae}),!n&&null!=e.mark&&/* @__PURE__ */x("span",{className:"absolute left-1 top-1 inline-flex items-center gap-1 rounded px-2 py-0.5 text-xs font-medium text-on-accent",style:{background:"var(--rosh-media-scrim)"},children:e.mark}),!n&&null==e.mark&&!!e.badges?.length&&
|
|
3
3
|
/* @__PURE__ */x("span",{"data-tile-badges":"",className:"absolute left-1 top-1 flex flex-nowrap items-center gap-1 overflow-hidden rounded-md bg-surface p-0.5 shadow-sm",style:{maxWidth:"calc(100% - 8px)"},children:e.badges.map(e=>/* @__PURE__ */x("span",{"data-tile-badge":"",className:"flex min-w-0",children:Te?
|
|
4
4
|
/* @__PURE__ */x(f,{content:e.label,children:/* @__PURE__ */x("span",{tabIndex:0,"aria-label":e.label,className:`flex rounded-full ${fe}`,children:/* @__PURE__ */x(u,{tone:e.tone,size:"xs",children:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"inline-flex items-center gap-0.5",children:[
|
|
5
|
-
/* @__PURE__ */x("span",{className:"inline-flex h-3 w-3 shrink-0 items-center justify-center",children:e.icon}),null!=e.count&&/* @__PURE__ */x("span",{children:e.count})]})})})}):/* @__PURE__ */x(u,{tone:e.tone,size:"xs",children:e.label})},e.key))}),null!=e.caption&&/* @__PURE__ */x(s,{children:e.caption}),ce&&/* @__PURE__ */x("button",{type:"button",onClick:()=>w(e.id),"aria-label":e.removeLabel??te.removeItem(a),className:`absolute right-1 top-1 flex h-5 w-5 items-center justify-center rounded-full text-white ${fe}`,style:{background:"var(--rosh-media-scrim-button)"},children:D})]},e.id)},
|
|
5
|
+
/* @__PURE__ */x("span",{className:"inline-flex h-3 w-3 shrink-0 items-center justify-center",children:e.icon}),null!=e.count&&/* @__PURE__ */x("span",{children:e.count})]})})})}):/* @__PURE__ */x(u,{tone:e.tone,size:"xs",children:e.label})},e.key))}),null!=e.caption&&/* @__PURE__ */x(s,{children:e.caption}),ce&&/* @__PURE__ */x("button",{type:"button",onClick:()=>w(e.id),"aria-label":e.removeLabel??te.removeItem(a),className:`absolute right-1 top-1 flex h-5 w-5 items-center justify-center rounded-full text-white ${fe}`,style:{background:"var(--rosh-media-scrim-button)"},children:D})]},e.id)},Ae=de&&/* @__PURE__ */v("button",{type:"button",onClick:()=>we(),"aria-label":te.addMedia,className:`flex shrink-0 flex-col items-center justify-center gap-1 rounded-md border-2 border-dashed border-gray-300 bg-gray-50 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-500 ${fe}`,style:je,children:[
|
|
6
6
|
/* @__PURE__ */x(a,{className:"h-5 w-5"}),
|
|
7
|
-
/* @__PURE__ */x("span",{className:"text-xs font-medium text-gray-500",children:te.add})]}),Oe=de?/* @__PURE__ */v("button",{type:"button",onClick:()=>we(),"aria-label":"string"==typeof he?he:te.upload,className:n(Ne,!1,fe),style:{minHeight:
|
|
7
|
+
/* @__PURE__ */x("span",{className:"text-xs font-medium text-gray-500",children:te.add})]}),Oe=de?/* @__PURE__ */v("button",{type:"button",onClick:()=>we(),"aria-label":"string"==typeof he?he:te.upload,className:n(Ne,!1,fe),style:{minHeight:W+32},children:[
|
|
8
8
|
/* @__PURE__ */x("span",{className:"text-ink-faintest",children:/* @__PURE__ */x(a,{})}),
|
|
9
9
|
/* @__PURE__ */x("span",{className:"px-3 text-xs text-ink-faint",children:he}),
|
|
10
|
-
/* @__PURE__ */x("span",{className:"text-sm font-medium text-blue-600",children:re}),
|
|
11
|
-
return v(e,{label:
|
|
12
|
-
/* @__PURE__ */v("div",{id:le,role:"group","aria-labelledby":
|
|
13
|
-
/* @__PURE__ */x("div",{role:"listbox","aria-multiselectable":!!Ke||void 0,"aria-label":"string"==typeof
|
|
10
|
+
/* @__PURE__ */x("span",{className:"text-sm font-medium text-blue-600",children:re}),B&&/* @__PURE__ */x("span",{className:"text-xs text-ink-faintest",children:B})]}):/* @__PURE__ */x("div",{className:"flex w-full items-center justify-center rounded-lg border border-line bg-surface-sunken px-3 text-xs text-ink-faintest",style:{minHeight:W+32},children:/* @__PURE__ */x("span",{className:U?"invisible":void 0,children:te.empty})});/* @__PURE__ */
|
|
11
|
+
return v(e,{label:A,labelId:A?`${le}-label`:void 0,htmlFor:le,hint:O,error:F,required:S,className:L,children:[
|
|
12
|
+
/* @__PURE__ */v("div",{id:le,role:"group","aria-labelledby":A?`${le}-label`:void 0,"aria-describedby":F?`${le}-error`:O?`${le}-hint`:void 0,"aria-busy":U||void 0,...ge.zoneProps,...pe?De:{},className:"relative rounded-lg transition-colors",style:{...se?{opacity:.6}:{},...Ne?{boxShadow:"0 0 0 2px var(--rosh-drop-ring)"}:{}},children:[0===p.length?Oe:/* @__PURE__ */v("div",{className:"flex flex-wrap gap-2",children:[Ce?
|
|
13
|
+
/* @__PURE__ */x("div",{role:"listbox","aria-multiselectable":!!Ke||void 0,"aria-label":"string"==typeof A?A:te.files,className:"contents",children:p.map(Ie)}):p.map(Ie),Ae]}),U&&/* @__PURE__ */x(l,{label:ne,progress:V})]}),!k&&N&&/* @__PURE__ */x("input",{...ge.inputProps}),
|
|
14
14
|
/* @__PURE__ */x(c,{rejections:ge.rejections})]})}export{k as FULL_BADGE_TILE_PX,N as MediaUploadGrid};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Modal as e}from"./chunk-
|
|
1
|
+
import{Modal as e}from"./chunk-2JXGTA73.js";import{keepsNativeMenu as a}from"./chunk-5QFPTDQF.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";var t={activeOpacity:70,inactiveOpacity:50,activeBlur:0,inactiveBlur:0};function r(e){try{const a=JSON.parse(localStorage.getItem(e)||"");return null!=a.blur&&null==a.activeBlur&&(a.activeBlur=a.blur,a.inactiveBlur=a.blur,delete a.blur),{...t,...a}}catch{return t}}function l({open:t,onClose:r,title:l,appearance:c,onAppearanceChange:s,onSave:d,children:o}){if(!t)return null;const u="w-full h-1.5 rounded-full appearance-none bg-gray-200 cursor-pointer accent-blue-500",p="flex items-center justify-between text-xs text-gray-500";/* @__PURE__ */
|
|
2
2
|
return i("div",{onPointerDown:e=>e.stopPropagation(),onContextMenu:e=>{e.stopPropagation(),a(e.target)||e.preventDefault()},children:/* @__PURE__ */i(e,{open:t,onClose:r,title:l,size:"sm",children:/* @__PURE__ */n("div",{className:"space-y-4",children:[o,
|
|
3
3
|
/* @__PURE__ */n("div",{children:[
|
|
4
4
|
/* @__PURE__ */i("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Appearance"}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{GROUP_COLORS as e}from"./chunk-
|
|
1
|
+
import{GROUP_COLORS as e}from"./chunk-JMGDGNM7.js";import{SpinnerRing as r}from"./chunk-R2VKEMZH.js";import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useShellStrings as l}from"./chunk-43MCNASD.js";import{jsx as t,jsxs as i,Fragment as a}from"react/jsx-runtime";var s="inline-flex items-center gap-1 whitespace-nowrap rounded-md border border-current/20 py-0.5 pl-2 pr-1 text-2xs font-medium";function o({label:e,glyph:r,onClick:l}){/* @__PURE__ */
|
|
2
2
|
return t(n,{content:e,describe:!1,children:/* @__PURE__ */t("button",{type:"button",onClick:l,"aria-label":e,className:"flex h-4 w-4 items-center justify-center rounded-full leading-none hover:bg-current/10 rosh-focus-ring focus-visible:ring-2",children:/* @__PURE__ */t("span",{"aria-hidden":"true",children:r})})})}function c({state:n,label:c,verb:u,subject:m,pct:p,onCancel:d,onRetry:h,onDismiss:f,className:b=""}){const g=l().transfer;if("idle"===n)return null==c?null:/* @__PURE__ */t("span",{className:`${s} ${e.neutral} pr-2 ${b}`.trim(),children:c});if("error"===n)/* @__PURE__ */
|
|
3
3
|
return i("span",{role:"status",className:`${s} ${e.danger} ${b}`.trim(),children:[
|
|
4
|
-
/* @__PURE__ */t("span",{children:g.error}),h&&/* @__PURE__ */t(o,{label:g.retry,glyph:"↻",onClick:h}),f&&/* @__PURE__ */t(o,{label:g.dismiss,glyph:"×",onClick:f})]});const
|
|
5
|
-
return i("span",{role:"status","aria-live":"polite",className:`${s} ${e.info} ${b}`.trim(),children:[null==
|
|
6
|
-
/* @__PURE__ */t("span",{className:"tabular-nums",children:"string"==typeof
|
|
4
|
+
/* @__PURE__ */t("span",{children:g.error}),h&&/* @__PURE__ */t(o,{label:g.retry,glyph:"↻",onClick:h}),f&&/* @__PURE__ */t(o,{label:g.dismiss,glyph:"×",onClick:f})]});const y=u??g.uploading,N=null==p||Number.isNaN(p)?null:Math.max(0,Math.min(100,Math.round(p))),$="string"==typeof y?g.cancelVerb(y.toLowerCase()):g.cancel,k=e=>[e,m,null==N?"":`${N}%`].filter(Boolean).join(" ");/* @__PURE__ */
|
|
5
|
+
return i("span",{role:"status","aria-live":"polite",className:`${s} ${e.info} ${b}`.trim(),children:[null==N&&/* @__PURE__ */t(r,{ink:""}),
|
|
6
|
+
/* @__PURE__ */t("span",{className:"tabular-nums",children:"string"==typeof y?k(y):/* @__PURE__ */i(a,{children:[y,k("")&&` ${k("")}`]})}),d&&/* @__PURE__ */t(o,{label:$,glyph:"×",onClick:d})]})}export{c as TransferProgress};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Popover as e}from"./chunk-LFYZ7NQ4.js";import{IconButton_default as r}from"./chunk-
|
|
2
|
-
return l(e,{className:
|
|
1
|
+
import{Popover as e}from"./chunk-LFYZ7NQ4.js";import{IconButton_default as r}from"./chunk-SV5RRBVA.js";import{Icon as n}from"./chunk-UIWGVOFH.js";import{Tooltip as t}from"./chunk-SOZCWT6I.js";import{useShellStrings as a}from"./chunk-43MCNASD.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]};function u({value:u,onChange:m,options:d,label:h,emptyValue:p,columns:f=5,cell:v,header:g,onPreview:w,tooltips:b=!0,disabled:x=!1,className:N=""}){const k=a(),A=k.iconPicker,j=k.iconNames,y=e=>e.label??j[e.value]??e.value,C=i([]),D=Math.max(0,d.findIndex(e=>e.value===u)),I=d[D],M=I?.value===p,V=i(null);/* @__PURE__ */
|
|
2
|
+
return l(e,{className:N,disabled:x,triggerLabel:I?A.button(h,y(I)):h,"aria-label":h,initialFocus:V,panelClassName:"!p-2",trigger:/* @__PURE__ */o("span",{className:"inline-flex items-center gap-2",children:[/* @__PURE__ */l("span",M||!I?{className:"text-sm",children:I?y(I):""}:{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:I.icon}),
|
|
3
3
|
/* @__PURE__ */l(n,{name:"chevron-down",className:"h-4 w-4"})]}),children:({close:e})=>/* @__PURE__ */o(s,{children:["function"==typeof g?g({close:e}):g,
|
|
4
|
-
/* @__PURE__ */l("div",{role:"listbox","aria-label":h,className:"grid gap-1",style:{gridTemplateColumns:`repeat(${f}, ${v?.width??"2rem"})`},children:d.map((n,a)=>{const i=n.value===u,o=/* @__PURE__ */l(r,{ref:e=>{
|
|
4
|
+
/* @__PURE__ */l("div",{role:"listbox","aria-label":h,className:"grid gap-1",style:{gridTemplateColumns:`repeat(${f}, ${v?.width??"2rem"})`},children:d.map((n,a)=>{const i=n.value===u,o=/* @__PURE__ */l(r,{ref:e=>{C.current[a]=e,a===D&&(V.current=e)},role:"option","aria-selected":i,"aria-label":y(n),pressed:i,tabIndex:a===D?0:-1,onKeyDown:e=>((e,r)=>{const n=c[r.key];if(!n)return;r.preventDefault();const t=Math.floor(e/f)+n[0],a=e%f+n[1];if(t<0||a<0||a>=f)return;const i=t*f+a;if(!(i>=d.length)){for(const[e,r]of C.current.entries())r?.setAttribute("tabindex",e===i?"0":"-1");C.current[i]?.focus()}})(a,e),onClick:()=>{m(n.value),e()},onMouseEnter:w?e=>w(n.value,e.currentTarget):void 0,style:v?{width:v.width,height:v.height}: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 b?/* @__PURE__ */l(t,{content:y(n),children:o},n.value):o})})]})})}export{u as IconPicker};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{useSettingAuto as e}from"./chunk-2NMW66P5.js";import{IconButton_default as r}from"./chunk-SV5RRBVA.js";import{inputClasses as t}from"./chunk-AYZY3YNC.js";import{Icon as n}from"./chunk-UIWGVOFH.js";import{useBrowserLayoutEffect as o}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as a}from"./chunk-TWVUQUUD.js";import{useShellStrings as i}from"./chunk-43MCNASD.js";import{forwardRef as l,useId as c,useState as s,useRef as u,useCallback as d,useEffect as p}from"react";import{jsx as f,jsxs as m,Fragment as v}from"react/jsx-runtime";function h(e){const r=String(e),t=/e-(\d+)$/.exec(r);return t?Number(t[1]):r.split(".")[1]?.length??0}var b=(e,r)=>null==e?"":null!=r?e.toFixed(r):String(e),x={compact:{right:"var(--space-16)",least:"var(--space-32)"},steppers:{right:"calc(var(--space-40) + var(--space-20))",least:"calc(var(--space-48) * 2)"},plain:{right:"var(--space-8)",least:"var(--space-40)"}};function g(e){const r=u(null),[t,n]=s(0);return o(()=>{const e=r.current;if(!e)return;const t=()=>n(Math.ceil(e.getBoundingClientRect().width));if(t(),"undefined"==typeof ResizeObserver)return;const o=new ResizeObserver(t);return o.observe(e),()=>o.disconnect()},[e]),[r,t]}function y(e,r,t){if(!r)return e;const n=e.trimEnd();for(let e=r.length;e>(t?0:r.length-1);e--)if(n.endsWith(r.slice(0,e)))return n.slice(0,-e).trimEnd();return e}function w({dir:e,compact:t,label:o,disabled:a,onStep:i}){const l=u(i);l.current=i;const c=u({}),s=d(()=>{const e=c.current;void 0!==e.wait&&clearTimeout(e.wait),void 0!==e.every&&clearInterval(e.every),e.off?.(),c.current={}},[]);p(()=>s,[s]),p(()=>{a&&s()},[a,s]);const m=/* @__PURE__ */f(n,{name:e>0?"chevron-up":"chevron-down","aria-hidden":"true",focusable:"false",className:t?"h-2.5 w-2.5":"h-3.5 w-3.5",strokeWidth:t?2.6:2}),v={tabIndex:-1,"aria-label":o,disabled:a,onPointerDown:e=>{if(0!==e.button||a)return;e.preventDefault(),s();const r=e.shiftKey;l.current(r);const t=e.currentTarget.ownerDocument.defaultView??window;t.addEventListener("pointerup",s),c.current={off:()=>t.removeEventListener("pointerup",s),wait:setTimeout(()=>{c.current.every=setInterval(()=>l.current(r),60)},400)}},onPointerLeave:s,onPointerCancel:s,onClick:e=>{0===e.detail&&l.current(e.shiftKey)}};return t?/* @__PURE__ */f("button",{type:"button",...v,className:"flex min-h-0 flex-1 items-center justify-center text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900 disabled:cursor-not-allowed disabled:opacity-40",children:m}):/* @__PURE__ */f(r,{size:"sm",...v,children:m})}var k=l(function({value:r,onChange:n,min:o,max:l,precision:k,step:N,shiftStep:j,disabled:D,readOnly:E,invalid:B,placeholder:C,size:S,prefix:$,suffix:F,suffixControl:M,id:O,name:U,className:W="",onBlur:K,onFocus:P,steppers:R,stepFrom:T,snap:V=!1,allowEmpty:z=!0,appearance:A="box",display:L,reportWhileTyping:I=!0,onRevert:Y,"aria-label":H,"aria-labelledby":G,"aria-describedby":J,auto:Q,...X},Z){const q="bare"===A,_=e(),ee=Q??_,re=c(),te="string"==typeof F&&""!==F.trim()?F.trim():void 0,ne=e=>function(e,r,t=!1){let n=y(e.trim(),r,t);if(n=n.replace(",","."),""===n||"-"===n||"."===n||"-."===n)return null;const o=Number(n);return Number.isFinite(o)?o:null}(e,te,Boolean(M)),oe=Boolean(F||M),ae=Object.fromEntries(Object.entries(X).filter(([e])=>e.startsWith("data-"))),ie=i(),[le,ce]=s(()=>b(r,k)),se=u(le);se.current=le;const ue=u(null),de=d(e=>{ue.current=e,"function"==typeof Z?Z(e):Z&&(Z.current=e)},[Z]),pe=u(r),fe=u(r);fe.current=r;const me=Boolean(D||E),ve=R??!1,he="compact"===ve,[be,xe]=g($),[ge,ye]=g(Boolean(M)),we=he?x.compact:ve?x.steppers:x.plain;p(()=>{ne(se.current)!==r&&ce(b(r,k))},[r,k]);const ke=e=>{if(me)return;let r=(ne(se.current)??T??(C?ne(C):null)??0)+e;null!=o&&r<o&&(r=o),null!=l&&r>l&&(r=l);const t=k??String(N??1).split(".")[1]?.length??0;r=Number(r.toFixed(t));const a=b(r,k);se.current=a,ce(a),n(r),Se()},Ne=u(ke);Ne.current=ke;const je=u({unit:N??1,big:j??10*(N??1),locked:me});je.current={unit:N??1,big:j??10*(N??1),locked:me},p(()=>{const e=ue.current;if(!e)return;const r=r=>{const{unit:t,big:n,locked:o}=je.current;if(o||e.ownerDocument.activeElement!==e)return;const a=r.deltaY||r.deltaX;a&&(r.preventDefault(),Ne.current((a<0?1:-1)*(r.shiftKey?n:t)))};return e.addEventListener("wheel",r,{passive:!1}),()=>e.removeEventListener("wheel",r)},[]);const[De,Ee]=s(!1),[Be,Ce]=s(0),Se=()=>{q&&Ce(e=>e+1)};p(()=>{q&&De&&document.activeElement===ue.current&&ue.current?.select()},[q,De,Be]);const $e=u(!1);p(()=>{if(De&&!me)return a(e=>{if("Escape"!==e.key||document.activeElement!==ue.current)return!1;const r=pe.current;if(ne(se.current)===r)return!1;const t=b(r,k);return se.current=t,ce(t),fe.current!==r&&(Y??n)(r),Se(),!0})},[De,me,k,n,Y]);const Fe=()=>{const e=ne(se.current);if(null==e){if(!z){const e=b(fe.current,k);return se.current=e,ce(e),fe.current}return se.current="",ce(""),null!==fe.current&&n(null),null}let r=e;const t=k??(V?Math.max(h(N??1),h(o??0)):void 0);V&&(r=function(e,r,t){const n=(e-t)/r;return t+Math.round(n+1e-9*Math.sign(e))*r}(r,N??1,o??0)),null!=o&&r<o&&(r=o),null!=l&&r>l&&(r=l),null!=t&&(r=Number(r.toFixed(t)));const a=b(r,k);return se.current=a,ce(a),r===e&&r===fe.current||n(r),r},Me=/* @__PURE__ */f("input",{ref:de,id:O,"data-number-input":"",name:U,type:"text",inputMode:0===k?"numeric":"decimal",value:!De&&L?L(r):le,disabled:D,readOnly:E,placeholder:C,step:N,role:"spinbutton","aria-valuenow":r??void 0,"aria-valuemin":o,"aria-valuemax":l,"aria-valuetext":null==r?C||void 0:`${b(r,k)}${q&&te?te:""}`,"aria-describedby":[J,ee?re:void 0].filter(Boolean).join(" ")||void 0,"data-appearance":q?"bare":void 0,...ae,autoComplete:q?"off":void 0,spellCheck:!q&&void 0,"aria-invalid":B||void 0,"aria-label":H,"aria-labelledby":G,onChange:e=>(e=>{if(E)return;const r=y(e,te,Boolean(M));if(""!==r&&!/^-?\d*[.,]?\d*$/.test(r))return;if(ce(e),!I)return;const t=ne(e);(null!==t||z)&&n(t)})(e.target.value),onKeyDown:e=>{if("Enter"===e.key&&!me)return pe.current=Fe(),void Se();const r=N??1,t=j??10*r,n="ArrowUp"===e.key?e.shiftKey?t:r:"ArrowDown"===e.key?-(e.shiftKey?t:r):"PageUp"===e.key?10*r:"PageDown"===e.key?10*-r:null;null===n||me||(e.preventDefault(),ke(n))},onFocus:()=>{pe.current=fe.current,Ee(!0),$e.current=!0,P?.()},onMouseUp:q?e=>{$e.current&&($e.current=!1,e.preventDefault())}:void 0,onBlur:()=>{Ee(!1),$e.current=!1,Fe(),K?.()},className:q?["block min-w-0 m-0 rounded-(--radius-control) border-0 p-0 text-center tabular-nums","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",De?"bg-surface":"bg-transparent",me?"cursor-default":"cursor-text",W].filter(Boolean).join(" "):t({invalid:B,size:S,readOnly:E,auto:ee,className:[$?"pl-[max(var(--space-24),calc(var(--space-control-x-sm)+var(--rosh-number-prefix-width)+var(--space-icon-gap-sm)))]":"",M?"pr-(--rosh-number-suffix-room)":he?oe?"pr-10":"pr-6":ve?oe?"pr-24":"pr-16":oe?"pr-10":"","text-left tabular-nums",M&&!De?"text-ellipsis":"",W].filter(Boolean).join(" ")})}),Oe=ee?/* @__PURE__ */f("span",{id:re,hidden:!0,children:ie.settingView.auto}):null;if(q||!$&&!oe&&!ve)return Oe?/* @__PURE__ */m(v,{children:[Me,Oe]}):Me;const Ue=ne(le);/* @__PURE__ */
|
|
2
|
+
return m("div",{className:"relative","data-number-box":"",style:$||M?{...$?{"--rosh-number-prefix-width":`${xe}px`}:{},...M?{"--rosh-number-suffix-room":`max(${we.least}, calc(${we.right} + ${ye}px))`}:{}}:void 0,children:[$&&/* @__PURE__ */f("span",{ref:be,className:"pointer-events-none absolute left-(--space-control-x-sm) top-1/2 -translate-y-1/2 whitespace-nowrap text-sm text-ink-faint",children:$}),Me,Oe,M?/* @__PURE__ */f("span",{ref:ge,className:"absolute top-1/2 flex -translate-y-1/2",style:{right:we.right},children:M}):F&&/* @__PURE__ */f("span",{className:`pointer-events-none absolute ${he?"right-6":ve?"right-16":"right-3"} top-1/2 -translate-y-1/2 text-xs text-ink-faint`,children:F}),ve&&(()=>{const e=/* @__PURE__ */f(w,{dir:-1,compact:he,label:ie.number.decrease,disabled:me||null!=o&&null!=Ue&&Ue<=o,onStep:e=>Ne.current(-(e?j??10*(N??1):N??1))}),r=/* @__PURE__ */f(w,{dir:1,compact:he,label:ie.number.increase,disabled:me||null!=l&&null!=Ue&&Ue>=l,onStep:e=>Ne.current(e?j??10*(N??1):N??1)});/* @__PURE__ */
|
|
3
|
+
return m("span",he?{"data-steppers":"compact",className:"absolute inset-y-px right-px flex w-4 flex-col overflow-hidden rounded-r-(--radius-control)",children:[r,e]}:{className:"absolute right-1 top-1/2 flex -translate-y-1/2 items-center gap-0.5",children:[e,r]})})()]})});export{k as InputNumber_default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Tooltip as e}from"./chunk-
|
|
2
|
-
return s(e,{content:z??P.hint,side:T,delay:600,className:`${
|
|
1
|
+
import{Tooltip as e}from"./chunk-SOZCWT6I.js";import{useBrowserLayoutEffect as r}from"./chunk-D65T4H6J.js";import{useShellStrings as t}from"./chunk-43MCNASD.js";import{useRef as o,useEffect as n,useCallback as i}from"react";import{jsx as s}from"react/jsx-runtime";var a=(e,r,t)=>Math.min(t,Math.max(r,e));function l(e,r,t,o,n){return Math.round(a("left"===t||"top"===t?e+r:e-r,o,n))}function u(e,r,t){let o=null;try{o=window.localStorage.getItem(e)}catch{return null}const n=o?parseInt(o,10):NaN;return Number.isNaN(n)?null:a(n,r,t)}function c({width:c,onResize:d,orientation:h="vertical",side:m,min:f,max:p,defaultWidth:v=f,step:g=16,storageKey:b,label:w,hint:z,controls:y,className:x=""}){const N="horizontal"===h,P=t().resizeHandle,k=o(null),C=o({onResize:d,min:f,max:p,side:m});C.current={onResize:d,min:f,max:p,side:m},r(()=>{if(!b)return;const e=u(b,f,p);null!==e&&e!==c&&d(e)},[b]),n(()=>{if(!b)return;const e=window.setTimeout(()=>{try{window.localStorage.setItem(b,String(Math.round(c)))}catch{}},200);return()=>window.clearTimeout(e)},[c,b]);const D=i(()=>{k.current=null,document.body.style.removeProperty("cursor"),document.body.style.removeProperty("user-select")},[]);n(()=>D,[D]);const M=e=>{k.current&&(e.currentTarget.hasPointerCapture?.(k.current.pointer)&&e.currentTarget.releasePointerCapture(k.current.pointer),D())},I="left"===m?"right-0":"right"===m?"left-0":"top"===m?"bottom-0":"top-0",T="left"===m?"right":"right"===m?"left":"top"===m?"bottom":"top",S=N?`absolute inset-x-0 ${I} z-10 flex h-2`:`absolute inset-y-0 ${I} z-10 flex w-2`;/* @__PURE__ */
|
|
2
|
+
return s(e,{content:z??P.hint,side:T,delay:600,className:`${S} ${x}`.trim(),children:/* @__PURE__ */s("div",{role:"separator",tabIndex:0,"aria-orientation":h,"aria-label":w??P.label,"aria-valuenow":Math.round(c),"aria-valuemin":f,"aria-valuemax":p,"aria-controls":y,"data-resize-handle":m,onPointerDown:e=>{0===e.button&&(e.preventDefault(),k.current={x:N?e.clientY:e.clientX,width:c,moved:!1,pointer:e.pointerId},e.currentTarget.setPointerCapture?.(e.pointerId),document.body.style.cursor=N?"row-resize":"col-resize",document.body.style.userSelect="none")},onPointerMove:e=>{const r=k.current;if(!r)return;if(0===e.buttons)return void D();const t=(N?e.clientY:e.clientX)-r.x;if(!r.moved){if(Math.abs(t)<3)return;r.moved=!0}const{onResize:o,min:n,max:i,side:s}=C.current;o(l(r.width,t,s,n,i))},onPointerUp:M,onPointerCancel:M,onLostPointerCapture:()=>{k.current&&D()},onDoubleClick:()=>d(a(v,f,p)),onKeyDown:e=>{const r=N?"ArrowDown":"ArrowRight",t=N?"ArrowUp":"ArrowLeft",o=e.key===r?g:e.key===t?-g:null,n=null!==o?l(c,o,m,f,p):"Home"===e.key?f:"End"===e.key?p:"Enter"===e.key?a(v,f,p):null;null!==n&&(e.preventDefault(),n!==c&&d(n))},className:N?"group/resize relative h-full w-full cursor-row-resize touch-none rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]":"group/resize relative h-full w-full cursor-col-resize touch-none rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */s("div",{"aria-hidden":"true",className:N?`absolute inset-x-0 ${I} h-px bg-transparent transition-colors group-hover/resize:bg-[var(--accent-500,var(--rosh-resize-handle))] group-focus-visible/resize:h-0.5 group-focus-visible/resize:bg-[var(--accent-500,var(--rosh-resize-handle))]`:`absolute inset-y-0 ${I} w-px bg-transparent transition-colors group-hover/resize:bg-[var(--accent-500,var(--rosh-resize-handle))] group-focus-visible/resize:w-0.5 group-focus-visible/resize:bg-[var(--accent-500,var(--rosh-resize-handle))]`})})})}export{c as ResizeHandle,u as readStoredWidth,l as resizedWidth};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{InputNumber_default as e}from"./chunk-
|
|
2
|
-
return c(y.Provider,{value:r,children:e})}function g({value:r,onChange:a,min:w,max:g,step:S=1,shiftStep:z,precision:F,inputMin:N,inputMax:k,suffix:
|
|
3
|
-
/* @__PURE__ */c("input",{id:
|
|
4
|
-
/* @__PURE__ */c("div",{ref:_,"data-slider-box":"",className:"shrink-0 text-xs",style:{width:ae?.width??le,...ee?{fontSize:ee.fontSize}:{}},children:/* @__PURE__ */c(e,{value:r,onChange:e=>{null!=e?e<X||e>
|
|
1
|
+
import{InputNumber_default as e}from"./chunk-Z2MNXUM6.js";import{useSettingAuto as t}from"./chunk-2NMW66P5.js";import{useBrowserLayoutEffect as i}from"./chunk-D65T4H6J.js";import{useShellStrings as n}from"./chunk-43MCNASD.js";import{createContext as r,useState as l,useMemo as a,useId as o,useRef as d,useContext as u,useEffect as s}from"react";import{jsx as c,jsxs as m}from"react/jsx-runtime";var f=(e,t,i)=>Math.min(i,Math.max(t,e));function p(e){const t=String(e),i=/e-(\d+)$/.exec(t);return i?Number(i[1]):t.split(".")[1]?.length??0}var h=8,v=40;function x(e){return Math.max(1,...e.map(e=>(e??"").length))}function b(e,t,i,n){return Number(f(e,t,i).toFixed(n))}var y=r(null);function w({children:e}){const[t,i]=l({}),n=a(()=>(e,t)=>i(i=>{if(null===t){if(!(e in i))return i;const t={...i};return delete t[e],t}return i[e]===t?i:{...i,[e]:t}}),[]),r=a(()=>{const e=Object.values(t);return{set:n,width:e.length?`max(${e.join(", ")})`:null}},[t,n]);/* @__PURE__ */
|
|
2
|
+
return c(y.Provider,{value:r,children:e})}function g({value:r,onChange:a,min:w,max:g,step:S=1,shiftStep:z,precision:F,inputMin:N,inputMax:k,suffix:M,showInput:j=!0,emptyLabel:$,placeholderValue:L,stepFrom:A,label:C,"aria-labelledby":D,valueText:K,id:E,disabled:R,size:W="md",boxSize:P="sm",className:T="",auto:U}){const V=n(),q=o(),B=t(),H=U??B,I=o(),J=E??q,O=F??p(S),X=N??w,Z=k??g,G=void 0!==$||void 0!==L,Q=A??L,Y=f(r??L??w,w,g),_=d(null),[ee,te]=l(null),ie=Boolean(M);i(()=>{const e=()=>{const e=_.current?.querySelector("input");if(!e)return;const t=getComputedStyle(e),i=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"].reduce((e,i)=>e+(parseFloat(t[i])||0),0);i<=0||te(e=>e&&e.frame===i&&e.fontSize===t.fontSize?e:{frame:i,fontSize:t.fontSize})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[ie,j]);const ne=e=>K?K(e):"string"==typeof M?`${e.toFixed(O)} ${M}`:void 0,re=null==r?$??(null!=L?ne(L)??String(L):void 0):ne(r),le=`calc(${x([w.toFixed(O),g.toFixed(O),r?.toFixed(O),$,L?.toFixed(O)])}ch + ${(ee?.frame??10+(ie?v:h))+2}px)`,ae=u(y),oe=o(),de=ae?.set;return i(()=>{de&&de(oe,j?le:null)},[de,oe,le,j]),s(()=>()=>de?.(oe,null),[de,oe]),/* @__PURE__ */m("div",{"data-slider":"",className:`flex w-full min-w-0 items-center gap-3 ${T}`.trim(),children:[
|
|
3
|
+
/* @__PURE__ */c("input",{id:J,type:"range",min:w,max:g,step:S,value:Y,disabled:R,"aria-label":D?void 0:C,"aria-labelledby":D,"aria-valuetext":re,"aria-describedby":H?I:void 0,onKeyDown:e=>{const t="ArrowUp"===e.key||"ArrowRight"===e.key?1:"ArrowDown"===e.key||"ArrowLeft"===e.key?-1:0;if(!t||e.altKey||e.ctrlKey||e.metaKey)return;const i=e.shiftKey&&null!=z;if(!i&&!(null==r&&null!=Q))return;e.preventDefault();a(b((r??Q??Y)+t*(i?z??S:S),w,g,O))},onChange:e=>a(b(Number(e.target.value),w,g,O)),className:"min-w-24 flex-1 cursor-pointer accent-blue-600 disabled:cursor-not-allowed disabled:opacity-60 "+("sm"===W?"h-1":"h-1.5")}),j&&
|
|
4
|
+
/* @__PURE__ */c("div",{ref:_,"data-slider-box":"",className:"shrink-0 text-xs",style:{width:ae?.width??le,...ee?{fontSize:ee.fontSize}:{}},children:/* @__PURE__ */c(e,{value:r,onChange:e=>{null!=e?e<X||e>Z||a(e):G&&a(null)},min:X,max:Z,step:S,shiftStep:z,stepFrom:Q,precision:O,snap:!0,allowEmpty:G,suffix:M,disabled:R,placeholder:$??(null!=L?L.toFixed(O):void 0),size:P,auto:H,"aria-label":C?V.slider.value(C):void 0,"aria-labelledby":C?void 0:D})}),H&&/* @__PURE__ */c("span",{id:I,hidden:!0,children:V.settingView.auto})]})}export{g as Slider,w as SliderGroup,b as settleSliderValue,x as sliderBoxChars,p as stepDecimals};
|
package/dist/data/DataTable.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{DataTable as default}from"../chunk-
|
|
2
|
+
export{DataTable as default}from"../chunk-C37PXEEH.js";import"../chunk-7FBAZLBX.js";import"../chunk-CGZBDI6C.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
package/dist/data/EntityList.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{EntityList as default}from"../chunk-
|
|
2
|
+
export{EntityList as default}from"../chunk-H6IGZWC2.js";import"../chunk-PH3P54QQ.js";import"../chunk-ATMJ5ZPK.js";import"../chunk-G6DKCCWH.js";import"../chunk-TX5FZBPQ.js";import"../chunk-KUUZFLT6.js";import"../chunk-UK6XNW3I.js";import"../chunk-SI26KESU.js";import"../chunk-UKBXQXDZ.js";import"../chunk-ULJQYXHB.js";import"../chunk-CGZBDI6C.js";import"../chunk-SCGBCBXP.js";import"../chunk-F3ZOO23R.js";import"../chunk-2QY5BJLA.js";import"../chunk-UGTRSRIW.js";import"../chunk-KC3EX26K.js";import"../chunk-6LYBE7LM.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-UIWGVOFH.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-STKJA4PV.js";import"../chunk-TRWHVG3A.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ListLoadError as default}from"../chunk-
|
|
1
|
+
export{ListLoadError as default}from"../chunk-KUUZFLT6.js";import"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-UIWGVOFH.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.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-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ResizableTable as default}from"../chunk-
|
|
2
|
+
export{ResizableTable as default}from"../chunk-UK6XNW3I.js";import"../chunk-SI26KESU.js";import"../chunk-UKBXQXDZ.js";import"../chunk-ULJQYXHB.js";import"../chunk-2QY5BJLA.js";import"../chunk-UGTRSRIW.js";import"../chunk-KC3EX26K.js";import"../chunk-UIWGVOFH.js";import"../chunk-J75ZT2JQ.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-STKJA4PV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{AlignmentGrid as default}from"../chunk-
|
|
2
|
+
export{AlignmentGrid as default}from"../chunk-3DWVSQIJ.js";import"../chunk-M5K4AX4E.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{borderSides,borderStartEach,BorderInput as default}from"../chunk-
|
|
2
|
+
export{borderSides,borderStartEach,BorderInput as default}from"../chunk-MX2YRSMZ.js";import"../chunk-YUB3TJKO.js";import"../chunk-ROM25ZMZ.js";import"../chunk-LFYZ7NQ4.js";import"../chunk-Z2MNXUM6.js";import"../chunk-2NMW66P5.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";import"../chunk-S6OB6HJB.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-CDAJKLGL.js";import"../chunk-M5K4AX4E.js";import"../chunk-UIWGVOFH.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-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{BrandAssetEditor as default}from"../chunk-
|
|
2
|
+
export{BrandAssetEditor as default}from"../chunk-RJKMFIM3.js";import"../chunk-3KP3EIYP.js";import"../chunk-QAS22BIS.js";import"../chunk-JDQGHQ2C.js";import"../chunk-53EW4M5S.js";import"../chunk-6KBDNYRW.js";import"../chunk-MI67DI3H.js";import"../chunk-25RR3GQW.js";import"../chunk-VQJLH2BU.js";import"../chunk-YMNWUQGV.js";import"../chunk-7KIDOIPY.js";import"../chunk-JMGDGNM7.js";import"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-UIWGVOFH.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.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-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
package/dist/forms/Button.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Button_default as default}from"../chunk-
|
|
2
|
+
export{Button_default as default}from"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-R2VKEMZH.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-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ColorPickerPanel,ColorSwatch,HexInput,NO_COLOR_FILL,clampOpacity,colorFill,colorSwatchClasses,ColorPicker as default,stepHue,stepOpacity,stepSquare}from"../chunk-
|
|
2
|
+
export{ColorPickerPanel,ColorSwatch,HexInput,NO_COLOR_FILL,clampOpacity,colorFill,colorSwatchClasses,ColorPicker as default,stepHue,stepOpacity,stepSquare}from"../chunk-ROM25ZMZ.js";import"../chunk-LFYZ7NQ4.js";import"../chunk-Z2MNXUM6.js";import"../chunk-2NMW66P5.js";import"../chunk-S6OB6HJB.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-CDAJKLGL.js";import"../chunk-M5K4AX4E.js";import"../chunk-UIWGVOFH.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-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{AttachButton,AttachmentDropZone,AttachmentList,PaperclipGlyph,ComposerAttachments as default}from"../chunk-
|
|
2
|
+
export{AttachButton,AttachmentDropZone,AttachmentList,PaperclipGlyph,ComposerAttachments as default}from"../chunk-6HH6KNJB.js";import"../chunk-SV5RRBVA.js";import"../chunk-VQJLH2BU.js";import"../chunk-YMNWUQGV.js";import"../chunk-7KIDOIPY.js";import"../chunk-JMGDGNM7.js";import"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-UIWGVOFH.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.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-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{CornersInput as default}from"../chunk-
|
|
2
|
+
export{CornersInput as default}from"../chunk-F6QSHKUR.js";import"../chunk-Z2MNXUM6.js";import"../chunk-2NMW66P5.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-M5K4AX4E.js";import"../chunk-UIWGVOFH.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-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{DateRangePicker as default,presetRange,toISODate}from"../chunk-
|
|
2
|
+
export{DateRangePicker as default,presetRange,toISODate}from"../chunk-3I67TIGD.js";import"../chunk-LGK47SEN.js";import"../chunk-2HMNOLKX.js";import"../chunk-5Q7VFXEO.js";import"../chunk-SE3S362N.js";import"../chunk-JY2OBPVO.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-Y3JW2GW5.js";import"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";import"../chunk-CDAJKLGL.js";import"../chunk-6LYBE7LM.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-M5K4AX4E.js";import"../chunk-UIWGVOFH.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-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{DisplayChips as default}from"../chunk-
|
|
2
|
+
export{DisplayChips as default}from"../chunk-OGPCFMNA.js";import"../chunk-M5K4AX4E.js";import"../chunk-UIWGVOFH.js";import"../chunk-J75ZT2JQ.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
package/dist/forms/FilePicker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{FilePicker_default as default}from"../chunk-
|
|
2
|
+
export{FilePicker_default as default}from"../chunk-BDWZLMIT.js";import"../chunk-6KBDNYRW.js";import"../chunk-VQJLH2BU.js";import"../chunk-YMNWUQGV.js";import"../chunk-7KIDOIPY.js";import"../chunk-JMGDGNM7.js";import"../chunk-UIWGVOFH.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
package/dist/forms/IconButton.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{IconButton_default as default}from"../chunk-
|
|
2
|
+
export{IconButton_default as default}from"../chunk-SV5RRBVA.js";import"../chunk-M5K4AX4E.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";
|
package/dist/forms/IconPicker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{IconPicker as default}from"../chunk-
|
|
2
|
+
export{IconPicker as default}from"../chunk-YUB3TJKO.js";import"../chunk-LFYZ7NQ4.js";import"../chunk-SV5RRBVA.js";import"../chunk-CDAJKLGL.js";import"../chunk-M5K4AX4E.js";import"../chunk-UIWGVOFH.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-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
package/dist/forms/Input.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{END_ACTIONS_PAD,INPUT_END_ACTION_SIZE,InputEndActionButton,InputEndActionSlot,Input_default as default}from"../chunk-
|
|
2
|
+
export{END_ACTIONS_PAD,INPUT_END_ACTION_SIZE,InputEndActionButton,InputEndActionSlot,Input_default as default}from"../chunk-5Q7VFXEO.js";import"../chunk-SE3S362N.js";import"../chunk-JY2OBPVO.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-CDAJKLGL.js";import"../chunk-6LYBE7LM.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-M5K4AX4E.js";import"../chunk-UIWGVOFH.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";
|
|
@@ -40,6 +40,12 @@ interface InputNumberProps {
|
|
|
40
40
|
/** Inside the field's edges — a currency mark, a unit. */
|
|
41
41
|
prefix?: ReactNode;
|
|
42
42
|
suffix?: ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* A control drawn in the suffix's place, for a unit the reader can change
|
|
45
|
+
* (`UnitMenu`). The string `suffix` stays what a typed value may end with, so
|
|
46
|
+
* "5%" still parses; only the drawing changes.
|
|
47
|
+
*/
|
|
48
|
+
suffixControl?: ReactNode;
|
|
43
49
|
id?: string;
|
|
44
50
|
name?: string;
|
|
45
51
|
/** Names the field where no `<label htmlFor>` does — a value box beside a
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{InputNumber_default as default}from"../chunk-
|
|
2
|
+
export{InputNumber_default as default}from"../chunk-Z2MNXUM6.js";import"../chunk-2NMW66P5.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-M5K4AX4E.js";import"../chunk-UIWGVOFH.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-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
package/dist/forms/LinkPicker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{TextLinkField,LinkPicker as default}from"../chunk-
|
|
2
|
+
export{TextLinkField,LinkPicker as default}from"../chunk-X7APOT53.js";import"../chunk-27TJNID7.js";import"../chunk-UDVQORQM.js";import"../chunk-EO5RLFRX.js";import"../chunk-7HIHQR3X.js";import"../chunk-EQKUFYX6.js";import"../chunk-2NMW66P5.js";import"../chunk-UJUTS6LJ.js";import"../chunk-Q5Z3KHT2.js";import"../chunk-5Q7VFXEO.js";import"../chunk-SE3S362N.js";import"../chunk-JY2OBPVO.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-CDAJKLGL.js";import"../chunk-6LYBE7LM.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-UIWGVOFH.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.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-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-43MCNASD.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-
|
|
2
|
+
export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary as default,readMediaFileDrag}from"../chunk-KO74S3FL.js";import"../chunk-HS6KTFW6.js";import"../chunk-LLAYWMYS.js";import"../chunk-IC72MGON.js";import"../chunk-NEAT7BIP.js";import"../chunk-B7LNSGNR.js";import"../chunk-CGUMJZUB.js";import"../chunk-SACUSHVN.js";import"../chunk-MM5AFQ24.js";import"../chunk-PT77FC5X.js";import"../chunk-BGJMDP6J.js";import"../chunk-32WEY6O5.js";import"../chunk-NU7LUJX5.js";import"../chunk-UDVQORQM.js";import"../chunk-EO5RLFRX.js";import"../chunk-7HIHQR3X.js";import"../chunk-XVIDD6F3.js";import"../chunk-XFD4BLP7.js";import"../chunk-2NMW66P5.js";import"../chunk-QAS22BIS.js";import"../chunk-JDQGHQ2C.js";import"../chunk-6KBDNYRW.js";import"../chunk-VLKDWKVR.js";import"../chunk-OLFYNMTD.js";import"../chunk-LACL4MAR.js";import"../chunk-PH3P54QQ.js";import"../chunk-CGZBDI6C.js";import"../chunk-J33QE4J7.js";import"../chunk-6JDR6T4U.js";import"../chunk-5Q7VFXEO.js";import"../chunk-SE3S362N.js";import"../chunk-JY2OBPVO.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-VQJLH2BU.js";import"../chunk-YMNWUQGV.js";import"../chunk-7KIDOIPY.js";import"../chunk-BXU3LX44.js";import"../chunk-3DVNXNTF.js";import"../chunk-7B5KFESH.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";import"../chunk-EZWWQHD3.js";import"../chunk-UGTRSRIW.js";import"../chunk-CDAJKLGL.js";import"../chunk-JMGDGNM7.js";import"../chunk-6LYBE7LM.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-UIWGVOFH.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-TRWHVG3A.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{MediaUploadField as default}from"../chunk-
|
|
2
|
+
export{MediaUploadField as default}from"../chunk-3KP3EIYP.js";import"../chunk-QAS22BIS.js";import"../chunk-JDQGHQ2C.js";import"../chunk-53EW4M5S.js";import"../chunk-6KBDNYRW.js";import"../chunk-25RR3GQW.js";export{mediaFileName}from"../chunk-VQJLH2BU.js";import"../chunk-YMNWUQGV.js";import"../chunk-7KIDOIPY.js";import"../chunk-JMGDGNM7.js";import"../chunk-UIWGVOFH.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{FULL_BADGE_TILE_PX,MediaUploadGrid as default}from"../chunk-
|
|
2
|
+
export{FULL_BADGE_TILE_PX,MediaUploadGrid as default}from"../chunk-XVIDD6F3.js";import"../chunk-6KBDNYRW.js";import"../chunk-VQJLH2BU.js";import"../chunk-YMNWUQGV.js";import"../chunk-7KIDOIPY.js";import"../chunk-EZWWQHD3.js";import"../chunk-JMGDGNM7.js";import"../chunk-5QFPTDQF.js";import"../chunk-UIWGVOFH.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|