efficient-shell 8.16.1 → 8.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -1
- package/dist/{Browser-QBOH7J6X.js → Browser-GZXTAL7Z.js} +14 -14
- package/dist/Calculator-TYZWIYJW.js +29 -0
- package/dist/{CurrencyConverter-QTFV2RSB.js → CurrencyConverter-XK6SETYS.js} +6 -6
- package/dist/{Documents-7TUZDRPO.js → Documents-GXYD4UD2.js} +7 -7
- package/dist/{Files-4KRJX4CJ.js → Files-OYZXQMRA.js} +18 -18
- package/dist/{Notepad-GBSYEVOZ.js → Notepad-L4TKPWZ7.js} +10 -10
- package/dist/{PomodoroTimer-23O2CBIZ.js → PomodoroTimer-D37Y6TE7.js} +23 -23
- package/dist/{Preview-WEWO3FSN.js → Preview-MPDXIVGC.js} +21 -21
- package/dist/{Sidebar-NONBFVWE.js → Sidebar-F4LYK5XP.js} +34 -34
- package/dist/{Spreadsheet-SDDJ3EBT.js → Spreadsheet-JBPWIBDY.js} +13 -13
- package/dist/{Stock-AQ2SJRU6.js → Stock-ZUTJX6S6.js} +3 -3
- package/dist/{Weather-UHCDMFZE.js → Weather-4GPPPHK5.js} +18 -18
- package/dist/{WorldClock-TB3HCUIH.js → WorldClock-TW36BP7G.js} +6 -6
- package/dist/ai/index.js +15 -15
- 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/charts/ChordChart.js +1 -1
- package/dist/charts/RadarChart.js +1 -1
- package/dist/charts/SankeyChart.js +1 -1
- package/dist/charts/SunburstChart.js +1 -1
- package/dist/charts/TreemapChart.js +1 -1
- package/dist/chunk-2LXTJXWC.js +6 -0
- package/dist/{chunk-MNWYPP3F.js → chunk-2OTCFJCU.js} +1 -1
- package/dist/{chunk-I7GWKMYO.js → chunk-35DHYR37.js} +1 -1
- package/dist/chunk-3S52QOEP.js +20 -0
- package/dist/{chunk-J77ZVPF5.js → chunk-4EIGXW4U.js} +5 -5
- package/dist/{chunk-ELVFPH7Y.js → chunk-4G5M752L.js} +3 -3
- package/dist/{chunk-ABJ4LWOW.js → chunk-4TL3MRRE.js} +1 -1
- package/dist/{chunk-L42Q6GVA.js → chunk-5BLAPU7W.js} +1 -1
- package/dist/{chunk-BOGBLZKS.js → chunk-5SULG7D5.js} +1 -1
- package/dist/{chunk-H3XEO4LR.js → chunk-62LFDQGF.js} +6 -6
- package/dist/chunk-65HOBHY7.js +3 -0
- package/dist/{chunk-7JKFXRAR.js → chunk-6AKXEUZA.js} +5 -5
- package/dist/{chunk-UOOHE3FX.js → chunk-6EJ7G234.js} +7 -7
- package/dist/{chunk-DYSUTUH3.js → chunk-6TWRV44R.js} +11 -11
- package/dist/{chunk-EK3JM3J2.js → chunk-7KZ65FSA.js} +1 -1
- package/dist/{chunk-QMQVOUIV.js → chunk-7T3COEQK.js} +1 -1
- package/dist/{chunk-JZ7NBWGB.js → chunk-7UBV5MPQ.js} +1 -1
- package/dist/{chunk-7HPOALEV.js → chunk-AGPQEI3I.js} +7 -7
- package/dist/{chunk-6L7MMUMP.js → chunk-B3LWYJS7.js} +2 -2
- package/dist/{chunk-DKY6X24V.js → chunk-BMBQ3IX3.js} +1 -1
- package/dist/{chunk-HPW6QAAY.js → chunk-C6LV3HJW.js} +1 -1
- package/dist/{chunk-JGZWAEOJ.js → chunk-CD6PGAYP.js} +1 -1
- package/dist/{chunk-BF2G42QU.js → chunk-CHNYSP6K.js} +1 -1
- package/dist/{chunk-H62JMI7C.js → chunk-DVFMCVI5.js} +2 -2
- package/dist/{chunk-UAXP4A2A.js → chunk-E4YSP5RD.js} +2 -2
- package/dist/{chunk-7OC3L4VZ.js → chunk-EIUCHQI2.js} +1 -1
- package/dist/{chunk-EXU3ZXKB.js → chunk-EKFIRCNP.js} +8 -8
- package/dist/{chunk-LKSHI57C.js → chunk-EPGKTANF.js} +6 -6
- package/dist/{chunk-EZQXLIG3.js → chunk-FARRGETL.js} +1 -1
- package/dist/{chunk-ZSTBFMQE.js → chunk-GATOVTJT.js} +1 -1
- package/dist/chunk-GLCKZI3N.js +1 -0
- package/dist/chunk-GLUJS42B.js +1 -0
- package/dist/{chunk-7OLYHD4V.js → chunk-HEJTHEXN.js} +1 -1
- package/dist/{chunk-55IY2ZJY.js → chunk-HEM6NC23.js} +1 -1
- package/dist/chunk-HMZLRXLA.js +1 -0
- package/dist/{chunk-VX4OBI4U.js → chunk-HPQ56MKK.js} +1 -1
- package/dist/{chunk-4CXQX5AX.js → chunk-IH2DJOTW.js} +22 -22
- package/dist/{chunk-NRWIULLI.js → chunk-ION2GBY3.js} +13 -13
- package/dist/{chunk-LRM5XTDF.js → chunk-JHXYW542.js} +3 -3
- package/dist/{chunk-53XMYVJO.js → chunk-JIJOXLDJ.js} +1 -1
- package/dist/{chunk-4MHHPESC.js → chunk-KBHC4VLA.js} +1 -1
- package/dist/{chunk-2HLS7AGL.js → chunk-KIGGG3LT.js} +1 -1
- package/dist/{chunk-YL44UDNT.js → chunk-KLAZTKN2.js} +5 -5
- package/dist/{chunk-UONWIAII.js → chunk-KSYNJTVA.js} +20 -20
- package/dist/{chunk-5J6Y5TOO.js → chunk-LC52BB6N.js} +1 -1
- package/dist/{chunk-CQXV3SJA.js → chunk-LI7D6SMK.js} +1 -1
- package/dist/{chunk-2KOXALIK.js → chunk-LJSJFS2M.js} +11 -11
- package/dist/{chunk-VR5GVM3A.js → chunk-MV7WC6SL.js} +28 -28
- package/dist/{chunk-L6CG37L3.js → chunk-OHHJF547.js} +1 -1
- package/dist/{chunk-5K3QLWUX.js → chunk-OS57C5J7.js} +1 -1
- package/dist/{chunk-DSBLBBES.js → chunk-OU3ITBK5.js} +6 -6
- package/dist/{chunk-G34KXE2L.js → chunk-PEELLEPP.js} +6 -6
- package/dist/{chunk-BKWLFZHI.js → chunk-PK4ZY4GZ.js} +3 -3
- package/dist/{chunk-XSY22PWH.js → chunk-PRR2GXBV.js} +2 -2
- package/dist/{chunk-C4YTKSXY.js → chunk-PRXPLEVZ.js} +1 -1
- package/dist/{chunk-U6FORQTI.js → chunk-PSOHSTXL.js} +1 -1
- package/dist/{chunk-ZKRWJILC.js → chunk-QIEMOYTG.js} +1 -1
- package/dist/chunk-QP2S2K2Y.js +4 -0
- package/dist/{chunk-2LTB2DSA.js → chunk-QV2GME3Y.js} +6 -6
- package/dist/{chunk-WCAQWHFD.js → chunk-R6N26ITY.js} +5 -5
- package/dist/{chunk-MSCILVJB.js → chunk-R6XC7X63.js} +6 -6
- package/dist/{chunk-37S3WLBL.js → chunk-RECXXFYW.js} +8 -8
- package/dist/chunk-RKWGWBET.js +9 -0
- package/dist/chunk-RNBM5JZI.js +4 -0
- package/dist/{chunk-JF45HC5H.js → chunk-RQARJHDB.js} +1 -1
- package/dist/{chunk-B7IHOBK6.js → chunk-S2ONNZVX.js} +14 -14
- package/dist/{chunk-CXDJXNPZ.js → chunk-S3RTAWEU.js} +1 -1
- package/dist/chunk-SEFPZXO5.js +8 -0
- package/dist/{chunk-FDIJEOGV.js → chunk-SWSN3HZX.js} +2 -2
- package/dist/{chunk-Y5W6POQE.js → chunk-T2VNNW6Z.js} +6 -6
- package/dist/{chunk-7QLI3HAO.js → chunk-T6L6HQI5.js} +1 -1
- package/dist/{chunk-FEAOJLGA.js → chunk-TB3AK6XF.js} +2 -2
- package/dist/{chunk-3YNRFMIN.js → chunk-TLJCUUZU.js} +1 -1
- package/dist/{chunk-FSP63GKK.js → chunk-UDD7GB4F.js} +2 -2
- package/dist/{chunk-OSRLZZDO.js → chunk-WKSVUJZA.js} +3 -3
- package/dist/{chunk-C2FBUQJW.js → chunk-X3II54HU.js} +1 -1
- package/dist/chunk-Y4NIZQNT.js +8 -0
- package/dist/{chunk-2TPUNCT7.js → chunk-YO52QEKT.js} +8 -8
- package/dist/chunk-YYUICWSB.js +12 -0
- package/dist/{chunk-U5PXB4UW.js → chunk-ZOGEAYWJ.js} +5 -5
- package/dist/{client-DLm3Fvbc.d.ts → client-DZeDEyG1.d.ts} +30 -9
- package/dist/data/DataTable.js +1 -1
- package/dist/data/ListLoadError.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/DatePicker.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/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.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/Segmented.js +1 -1
- package/dist/forms/Select.js +1 -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/WidthsBar.js +1 -1
- package/dist/forms/dropdownPosition.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +87 -87
- package/dist/map/index.js +6 -6
- 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.js +1 -1
- package/dist/shell/EditableGrid.js +1 -1
- package/dist/shell/FloatingBar.js +1 -1
- package/dist/shell/IconRail.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/Popover.js +1 -1
- package/dist/shell/ProductionTimeline.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/SortableList.js +1 -1
- package/dist/shell/StatusBadge.js +1 -1
- package/dist/shell/Tabs.js +1 -1
- package/dist/shell/TimelineTrack.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.d.ts +2 -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.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-KKB7EFVO.js +0 -29
- package/dist/chunk-3WV3CMSU.js +0 -1
- package/dist/chunk-7NEIYFM2.js +0 -8
- package/dist/chunk-DXQCNU5I.js +0 -12
- package/dist/chunk-EKHT4PDR.js +0 -4
- package/dist/chunk-FND3BDOO.js +0 -4
- package/dist/chunk-JHDWTYZ4.js +0 -1
- package/dist/chunk-JXOBORLD.js +0 -3
- package/dist/chunk-L3VD25XR.js +0 -8
- package/dist/chunk-OJ3RN3BG.js +0 -20
- package/dist/chunk-T53TXXOC.js +0 -1
- package/dist/chunk-Z3WKHMVB.js +0 -6
- package/dist/chunk-Z5UVBCEE.js +0 -9
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import{firstEnabledIndex as e,matchTypeahead as t,lastEnabledIndex as r,nextEnabledIndex as n}from"./chunk-EO5RLFRX.js";import{flattenOptionItems as i,groupedRows as a,isOptionGroup as l,OptionCheck as o}from"./chunk-TUT6SGH2.js";import{useSettingAuto as d}from"./chunk-E4Z5OXBI.js";import{inputClasses as s,PLACEHOLDER_INK as c}from"./chunk-JFSYWEHD.js";import{useIsMobile as u}from"./chunk-UGTRSRIW.js";import{optionNoteClass as p}from"./chunk-QR4RM7PO.js";import{Icon as m}from"./chunk-VJPJNCB4.js";import{onOverlayOpen as v}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as h}from"./chunk-62LW225J.js";import{useDropdownPosition as f,MENU_MAX_HEIGHT as b}from"./chunk-GLUJS42B.js";import{solidSurfaceStyle as g}from"./chunk-DTJRIWFR.js";import{registerModalEscapeInterceptor as y}from"./chunk-TWVUQUUD.js";import{useShellStrings as x}from"./chunk-OVNRVFWS.js";import{forwardRef as w,useId as k,useState as N,useRef as $,useMemo as D,useCallback as j,useEffect as T,useLayoutEffect as S}from"react";import{createPortal as E}from"react-dom";import{jsxs as O,jsx as H,Fragment as I}from"react/jsx-runtime";var C=w(function({value:e,onChange:t,options:r,placeholder:n,invalid:i,className:a="",size:l,touchSize:o,renderOption:c,renderValue:u,valueText:p,readOnly:m,footer:v,changed:h,auto:f,multiple:b,"aria-describedby":g,...y},w){const N=t,$=x(),D=d(),j=f??D,T=k(),S=/* @__PURE__ */O("select",{ref:w,value:e,multiple:b||void 0,onChange:e=>N(b?Array.from(e.target.selectedOptions,e=>e.value):e.target.value),"aria-invalid":i||void 0,"aria-describedby":[g,j?T:void 0].filter(Boolean).join(" ")||void 0,className:s({invalid:i,size:l,auto:j,className:`pr-8 ${a}`.trim()}),...y,children:[void 0!==n&&!b&&/* @__PURE__ */H("option",{value:"",disabled:!0,children:n}),
|
|
2
|
+
/* @__PURE__ */H(R,{items:r})]});return j?/* @__PURE__ */O(I,{children:[S,
|
|
3
|
+
/* @__PURE__ */H("span",{id:T,hidden:!0,children:$.settingView.auto})]}):S});function R({items:e}){const t=e=>/* @__PURE__ */H("option",{value:e.value,disabled:e.disabled,lang:e.lang,children:e.label},e.value);/* @__PURE__ */
|
|
4
|
+
return H(I,{children:e.map((e,r)=>(e=>l(e))(e)?/* @__PURE__ */H("optgroup",{label:e.label,children:e.options.map(t)},`group-${r}`):t(e))})}var z=w(function({value:l,onChange:u,options:w,placeholder:C,invalid:z,className:V="",id:B,disabled:U,size:W,touchSize:A,title:F,multiple:K,renderOption:P,renderValue:J,valueText:L,readOnly:M=!1,footer:G,changed:q=!1,auto:Q,"aria-describedby":X,"aria-label":Y,"aria-labelledby":Z,..._},ee){const[te,re]=N(!1),[ne,ie]=N(-1),ae=$(null),le=$(null),oe=$(null),de=$(null),se=$([]),ce=()=>de.current??oe.current,ue=!!G?.length,pe="sm"===W,me=pe?"min-h-7 px-3 py-1 text-xs leading-4":"min-h-(--row-height-menu) px-3 py-2 text-sm leading-5",ve=p(pe),[he,fe]=N(null),be=x(),ge=$(te);ge.current=te;const ye=$({buffer:"",timer:null}),xe=k(),we=`${xe}-listbox`,ke=B??`${xe}-trigger`,Ne=e=>`${xe}-opt-${e}`,$e=`${xe}-changed`,De=d(),je=Q??De,Te=`${xe}-auto`,Se=[X,q?$e:void 0,je?Te:void 0].filter(Boolean).join(" ")||void 0,Ee=D(()=>i(w),[w]),Oe=K?l:[],He=u,Ie=f(le,te,{matchTriggerWidth:!0,...G?.length?{preferredMaxHeight:Number.POSITIVE_INFINITY}:{}}),Ce="undefined"==typeof window?T:S,Re=`${te}|${Ie?.top}|${Ie?.bottom}|${Ie?.maxHeight}|${w.length}`;Ce(()=>{fe(null)},[Re]),Ce(()=>{const e=oe.current;if(!te||!e||null!==he)return;if(e.scrollHeight<=e.clientHeight+1)return;const t=getComputedStyle(e),r=parseFloat(t.paddingTop)||0;parseFloat(t.paddingBottom);const n=e.getBoundingClientRect().top;let i=0;for(const t of e.querySelectorAll('[role="option"]')){const r=t.getBoundingClientRect().bottom-n+e.scrollTop;if(!(r<=e.clientHeight+.5))break;i=r}i>r&&fe(Math.floor(i))},[te,he,Re]);const ze=K?Ee.findIndex(e=>Oe.includes(e.value)):Ee.findIndex(e=>e.value===l),Ve=K?Ee.filter(e=>Oe.includes(e.value)).map(e=>e.label).join(", ")||void 0:ze>=0?Ee[ze].label:void 0,Be=!K&&ze>=0?Ee[ze].lang:void 0,Ue=K?Ee.filter(e=>Oe.includes(e.value)):ze>=0?[Ee[ze]]:[],We=J&&Ue.length?J(Ue):void 0,Ae=void 0!==We&&L?L(Ue):void 0,Fe=j((e=!0)=>{re(!1),ie(-1),e&&le.current?.focus()},[]),Ke=j(()=>{U||M||(ie(ze>=0?ze:e(Ee)),re(!0))},[U,M,Ee,ze]),Pe=j(e=>{const t=Ee[e];if(t&&!t.disabled){if(K){const r=l;return He(r.includes(t.value)?r.filter(e=>e!==t.value):[...r,t.value]),void ie(e)}He(t.value),Fe()}},[Ee,K,l,He,Fe]);T(()=>{if(!te)return;return y(e=>!("Escape"!==e.key||!ge.current)&&(Fe(),!0),ce)},[te,Fe]),T(()=>{if(!te)return;const e=e=>{const t=e.target;ae.current?.contains(t)||ce()?.contains(t)||Fe(!1)};document.addEventListener("pointerdown",e);const t=v(()=>Fe(!1));return()=>{document.removeEventListener("pointerdown",e),t()}},[te,Fe]),T(()=>{!te||ne<0||oe.current?.querySelector(`#${CSS.escape(Ne(ne))}`)?.scrollIntoView({block:"nearest"})},[te,ne]);const Je=j(e=>{const r=ye.current;r.timer&&clearTimeout(r.timer),r.buffer+=e,r.timer=setTimeout(()=>{r.buffer="",r.timer=null},500);const n=te?ne:ze,i=t(Ee,r.buffer,n);i<0||(te?ie(i):K?(ie(i),re(!0)):Pe(i))},[te,ne,ze,Ee,Pe,K]),Le=te?a(w,(e,t)=>{const r=(n=e.value,K?Oe.includes(n):l===n);var n;const i=t===ne;/* @__PURE__ */
|
|
5
|
+
return O("div",{id:Ne(t),role:"option",lang:e.description||P?void 0:e.lang,"aria-selected":r,"aria-disabled":e.disabled||void 0,onPointerEnter:()=>{e.disabled||ie(t)},onClick:()=>Pe(t),className:`mx-1 cursor-pointer truncate rounded-lg ${me}${K?" flex items-center gap-2":""}\n ${e.disabled?"cursor-not-allowed text-gray-400":i?"bg-blue-50 text-blue-700":r?"font-medium text-blue-600":"text-gray-700"}`,children:[K&&/* @__PURE__ */H(o,{selected:r}),P?/* @__PURE__ */H("span",{className:"block min-w-0 flex-1 truncate",children:P(e,{selected:r,active:i})}):K?/* @__PURE__ */O("span",{className:"block min-w-0 flex-1",children:[
|
|
6
|
+
/* @__PURE__ */H("span",{lang:e.lang,className:"block truncate",children:e.label}),e.description&&/* @__PURE__ */H("span",{className:ve,children:e.description})]}):e.description?
|
|
7
|
+
/* @__PURE__ */O(I,{children:[
|
|
8
|
+
/* @__PURE__ */H("span",{lang:e.lang,className:"block truncate",children:e.label}),
|
|
9
|
+
/* @__PURE__ */H("span",{className:ve,children:e.description})]}):e.label]},e.value)},xe,"mx-1"):null,Me=void 0!==We?
|
|
10
|
+
/* @__PURE__ */O("span",{className:"relative block min-w-0 truncate",children:[
|
|
11
|
+
/* @__PURE__ */H("span",{"aria-hidden":"true","data-select-value":"",className:"flex min-w-0 items-center gap-2 truncate",children:We}),
|
|
12
|
+
/* @__PURE__ */H("span",{lang:void 0===Ae?Be:void 0,className:"sr-only",children:Ae??Ve})]}):/* @__PURE__ */H("span",{lang:Be,className:"block truncate "+(void 0===Ve?"text-gray-400":""),children:Ve??C??" "}),Ge={zIndex:h.popup,left:Ie?.left,top:Ie?.top,bottom:Ie?.bottom,width:Ie?.width,maxHeight:Ie?.maxHeight??b,visibility:Ie?void 0:"hidden",...g()},qe=/* @__PURE__ */H("div",{ref:oe,id:we,role:"listbox","aria-labelledby":Z??(Y?void 0:ke),"aria-label":Z?void 0:Y,"aria-multiselectable":K||void 0,className:ue?"min-h-0 shrink overflow-y-auto py-1":"fixed overflow-y-auto rounded-(--radius-popup) py-1",style:ue?null!==he?{maxHeight:he}:void 0:null!==he?{...Ge,maxHeight:he}:Ge,children:Le}),Qe=ue?/* @__PURE__ */O("div",{ref:de,className:"fixed flex flex-col overflow-hidden rounded-(--radius-popup)",style:Ge,children:[qe,
|
|
13
|
+
/* @__PURE__ */H("div",{className:"shrink-0 border-t border-(--rosh-glass-solid-border) px-1 py-1",children:G.map((e,t)=>/* @__PURE__ */O("button",{ref:e=>{se.current[t]=e},type:"button","data-select-action":"","aria-disabled":e.disabled||void 0,onClick:()=>(e=>{e.disabled||(Fe(),e.onSelect())})(e),onKeyDown:e=>((e,t)=>{const r=(G?.length??0)-1,n=t=>{e.preventDefault(),se.current[t]?.focus()},i=()=>{e.preventDefault(),le.current?.focus()};switch(e.key){case"ArrowDown":return void n(Math.min(t+1,r));case"ArrowUp":return void(0===t?i():n(t-1));case"Home":return void n(0);case"End":return void n(r);case"Tab":return e.shiftKey?void(0===t?i():n(t-1)):t<r?void n(t+1):(e.preventDefault(),void Fe());case"Escape":return e.preventDefault(),e.stopPropagation(),void Fe()}})(e,t),className:`flex w-full items-center gap-2 rounded-lg ${me} text-left rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] ${e.disabled?"cursor-not-allowed text-gray-400":"cursor-pointer text-gray-700 hover:bg-blue-50 hover:text-blue-700"}`,children:[e.icon&&/* @__PURE__ */H(m,{name:e.icon,"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),
|
|
14
|
+
/* @__PURE__ */H("span",{className:"min-w-0 flex-1 truncate",children:e.label})]},e.label))})]}):qe;/* @__PURE__ */
|
|
15
|
+
return O("div",{ref:ae,className:"relative",children:[
|
|
16
|
+
/* @__PURE__ */H("button",{ref:le,id:ke,type:"button",role:"combobox","aria-haspopup":"listbox","aria-expanded":te,"aria-controls":te?we:void 0,"aria-activedescendant":te&&ne>=0?Ne(ne):void 0,"aria-invalid":z||void 0,"aria-describedby":Se,"aria-label":Y,"aria-labelledby":Z,title:F,disabled:U,"aria-readonly":M||void 0,onClick:()=>te?Fe():Ke(),onKeyDown:t=>{if(!U&&!M)switch(t.key){case"ArrowDown":return t.preventDefault(),void(te?ie(e=>n(Ee,e,1)):Ke());case"ArrowUp":return t.preventDefault(),void(te?ie(e=>n(Ee,e,-1)):Ke());case"Home":return void(te&&(t.preventDefault(),ie(e(Ee))));case"End":return void(te&&(t.preventDefault(),ie(r(Ee))));case"Enter":return void(te&&(t.preventDefault(),Pe(ne)));case" ":return t.preventDefault(),void(te?Pe(ne):Ke());case"Escape":return void(te&&(t.preventDefault(),t.stopPropagation(),Fe()));case"Tab":return te&&ue&&!t.shiftKey?(t.preventDefault(),void se.current[0]?.focus()):void(te&&Fe(!1));default:1!==t.key.length||t.metaKey||t.ctrlKey||t.altKey||(t.preventDefault(),Je(t.key))}},className:s({invalid:z,size:W,readOnly:M,auto:je,className:`${M?"":"pr-8 "}text-left ${V}`.trim()}),children:q?
|
|
17
|
+
/* @__PURE__ */O("span",{className:"flex min-w-0 items-center gap-1",children:[Me,
|
|
18
|
+
/* @__PURE__ */H("span",{"aria-hidden":"true","data-select-changed":"",className:"shrink-0",children:"*"})]}):Me}),q&&/* @__PURE__ */H("span",{id:$e,hidden:!0,children:be.select.changed}),je&&/* @__PURE__ */H("span",{id:Te,hidden:!0,children:be.settingView.auto}),!M&&/* @__PURE__ */H(m,{name:"chevron-up-down","aria-hidden":"true",className:`pointer-events-none absolute right-2.5 top-1/2 h-4 w-4 -translate-y-1/2 ${c}`,strokeWidth:2}),
|
|
19
|
+
/* @__PURE__ */O("select",{ref:ee,value:l,multiple:K||void 0,onChange:e=>He(K?Array.from(e.target.selectedOptions,e=>e.value):e.target.value),disabled:U,"aria-hidden":"true",tabIndex:-1,className:"sr-only",..._,children:[void 0!==C&&!K&&/* @__PURE__ */H("option",{value:"",disabled:!0,children:C}),
|
|
20
|
+
/* @__PURE__ */H(R,{items:w})]}),te&&E(Qe,document.body)]})}),V=w(function({touchSize:e="touch",...t},r){const n=u();return!n||void 0===t.footer&&void 0===t.changed||t.readOnly?n&&!t.readOnly?/* @__PURE__ */H(C,{ref:r,...t,size:e}):/* @__PURE__ */H(z,{ref:r,...t}):/* @__PURE__ */H(z,{ref:r,...t,size:e})});export{C as NativeSelect,V as Select_default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{CloseGlyph as e}from"./chunk-
|
|
1
|
+
import{CloseGlyph as e}from"./chunk-LI7D6SMK.js";import{humanSize as t,useFileIntake as n,FileIntakeAlert as r}from"./chunk-VAACOJ2H.js";import{IconButton_default as a}from"./chunk-HMZLRXLA.js";import{Button_default as s}from"./chunk-UDD7GB4F.js";import{Icon as i}from"./chunk-VJPJNCB4.js";import{useShellStrings as c}from"./chunk-OVNRVFWS.js";import{useRef as o,useEffect as l}from"react";import{jsx as d,jsxs as u}from"react/jsx-runtime";function m({className:e="h-4 w-4"}){/* @__PURE__ */
|
|
2
2
|
return d(i,{name:"attach",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e})}function p({className:e="h-4 w-4"}){/* @__PURE__ */
|
|
3
3
|
return d(i,{name:"page",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e})}function h({intake:e,dropLabel:t,className:n="",children:r}){const a=c().files;/* @__PURE__ */
|
|
4
4
|
return u("div",{...e.zoneProps,...e.pasteProps,className:`relative ${n}`,children:[r,
|
|
@@ -6,8 +6,8 @@ return u("div",{...e.zoneProps,...e.pasteProps,className:`relative ${n}`,childre
|
|
|
6
6
|
return u("li",{className:"flex max-w-full items-center gap-2 rounded-md border border-gray-200 bg-gray-50 py-1 pl-2 pr-1 text-xs text-gray-700",children:[c?/* @__PURE__ */d("img",{src:c,alt:"",className:"h-6 w-6 shrink-0 rounded object-cover"}):/* @__PURE__ */d("span",{className:"text-gray-400",children:/* @__PURE__ */d(p,{})}),
|
|
7
7
|
/* @__PURE__ */d("span",{className:"min-w-0 truncate",title:n.name,children:n.name}),
|
|
8
8
|
/* @__PURE__ */d("span",{className:"shrink-0 tabular-nums text-gray-400",children:t(n.size,i)}),r&&/* @__PURE__ */d("button",{type:"button",disabled:a,onClick:()=>r(s),"aria-label":i.remove(n.name),className:"shrink-0 rounded p-0.5 text-gray-400 hover:bg-gray-200 hover:text-gray-600 disabled:cursor-not-allowed",children:/* @__PURE__ */d(e,{className:"h-3.5 w-3.5"})})]},`${n.name}-${n.size}-${s}`)})})}function f({onClick:e,count:t=0,variant:n="button",label:r,disabled:i=!1}){const o=c().files,l=r??o.attach,p=t>0?`${l} (${t})`:l;return"icon"===n?/* @__PURE__ */u("span",{className:"relative inline-flex",children:[
|
|
9
|
-
/* @__PURE__ */d(a,{"aria-label":p,onClick:e,disabled:i,size:"sm",children:/* @__PURE__ */d(m,{})}),t>0&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"pointer-events-none absolute -right-1 -top-1 min-w-[1rem] rounded-full bg-blue-600 px-1 text-center text-2xs font-semibold leading-4 text-white",children:t})]}):/* @__PURE__ */d(s,{type:"button",variant:"secondary",size:"sm",onClick:e,disabled:i,leftIcon:/* @__PURE__ */d(m,{}),children:p})}function g({files:e,onChange:t,accept:a,maxSizeBytes:s,maxFiles:i,acceptHint:c,disabled:m=!1,dropLabel:p,attachLabel:g,trigger:x="button",actions:j,onReject:k,className:N="",children:v}){const
|
|
10
|
-
/* @__PURE__ */d(b,{files:e,disabled:m,onRemove:n=>{
|
|
9
|
+
/* @__PURE__ */d(a,{"aria-label":p,onClick:e,disabled:i,size:"sm",children:/* @__PURE__ */d(m,{})}),t>0&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"pointer-events-none absolute -right-1 -top-1 min-w-[1rem] rounded-full bg-blue-600 px-1 text-center text-2xs font-semibold leading-4 text-white",children:t})]}):/* @__PURE__ */d(s,{type:"button",variant:"secondary",size:"sm",onClick:e,disabled:i,leftIcon:/* @__PURE__ */d(m,{}),children:p})}function g({files:e,onChange:t,accept:a,maxSizeBytes:s,maxFiles:i,acceptHint:c,disabled:m=!1,dropLabel:p,attachLabel:g,trigger:x="button",actions:j,onReject:k,className:N="",children:v}){const L=n({accept:a,maxSizeBytes:s,maxFiles:i,acceptHint:c,disabled:m,multiple:!0,currentCount:e.length,onAccept:n=>t([...e,...n])}),y=o([]);return l(()=>{k&&L.rejections.length>0&&L.rejections!==y.current&&(y.current=L.rejections,k(L.rejections))},[L.rejections,k]),/* @__PURE__ */u(h,{intake:L,dropLabel:p,className:N,children:[v,
|
|
10
|
+
/* @__PURE__ */d(b,{files:e,disabled:m,onRemove:n=>{L.clearRejections(),t(e.filter((e,t)=>t!==n))},className:"mt-2"}),
|
|
11
11
|
/* @__PURE__ */u("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[
|
|
12
|
-
/* @__PURE__ */d(f,{onClick:
|
|
13
|
-
/* @__PURE__ */d(r,{rejections:
|
|
12
|
+
/* @__PURE__ */d(f,{onClick:L.open,count:e.length,variant:x,label:g,disabled:m}),j]}),
|
|
13
|
+
/* @__PURE__ */d(r,{rejections:L.rejections})]})}export{f as AttachButton,h as AttachmentDropZone,b as AttachmentList,g as ComposerAttachments,m as PaperclipGlyph};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{railLabelsShown as e}from"./chunk-FQEALPZJ.js";import{ChoiceContent as t,choiceItemClass as n,choiceTipClass as r,choiceTrackClass as o}from"./chunk-4G5VLI7E.js";import{Tooltip as l}from"./chunk-
|
|
2
|
-
return s("nav",{ref:v,"aria-label":m,"aria-labelledby":g,className:b(c,u),children:e.map(e=>{const o=e.id===n,a=/* @__PURE__ */s("a",{href:e.disabled?void 0:e.href,"aria-current":o?"location":void 0,"aria-disabled":e.disabled||void 0,onClick:e.disabled?void 0:t=>((e,t)=>{const n=f(t.href);n&&(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey))(e)&&(e.preventDefault(),w(t.id),n.scrollIntoView({block:"start",behavior:"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"}),n.hasAttribute("tabindex")||n.setAttribute("tabindex","-1"),n.focus({preventScroll:!0}))})(t,e),className:`${h(o,c,"warning"===e.tone?"warning":"default")}${e.disabled?" cursor-not-allowed opacity-50":""}`,children:/* @__PURE__ */s(t,{icon:e.icon,label:e.label})},e.id);return null!=e.tooltip&&!1!==e.tooltip?/* @__PURE__ */s(l,{content:e.tooltip,className:c?r(c):void 0,children:a},e.id):a})})}var v=(e,t)=>`${e}-tab-${t}`,w=(e,t)=>`${e}-panel-${t}`;function y(e,t){const n=getComputedStyle(e),r=(parseFloat(n.paddingLeft)||0)+(parseFloat(n.paddingRight)||0)+(parseFloat(n.borderLeftWidth)||0)+(parseFloat(n.borderRightWidth)||0),o=(parseFloat(n.columnGap)||0)*Math.max(0,t-1),l=e.parentElement;let a=1/0;if(l){const e=getComputedStyle(l);a=l.clientWidth-(parseFloat(e.paddingLeft)||0)-(parseFloat(e.paddingRight)||0)}return{chrome:r+o,room:a}}function x(e){return e.items.some(e=>null!=e.href)?/* @__PURE__ */s(g,{...e}):/* @__PURE__ */s(k,{...e})}function k({items:f,value:p,onChange:g,variant:x="underline",block:k=!1,idPrefix:C,className:F="","aria-label":E,"aria-labelledby":L,labelsFit:R=!1}){const A=i([]),$=i(null),N="pill"===x,[S,W]=c(null),D=S??"none",
|
|
3
|
-
return s("div",{ref:$,role:"tablist","data-labels-shown":R?D:void 0,"aria-label":E,"aria-labelledby":L,onKeyDown:e=>{const t=f.findIndex(e=>e.id===p);let n=null;if("ArrowRight"===e.key||"ArrowDown"===e.key)n=
|
|
1
|
+
import{railLabelsShown as e}from"./chunk-FQEALPZJ.js";import{ChoiceContent as t,choiceItemClass as n,choiceTipClass as r,choiceTrackClass as o}from"./chunk-4G5VLI7E.js";import{Tooltip as l}from"./chunk-2LXTJXWC.js";import{useBrowserLayoutEffect as a}from"./chunk-D65T4H6J.js";import{useRef as i,useState as c,useEffect as d}from"react";import{jsx as s,jsxs as u,Fragment as m}from"react/jsx-runtime";var b=(e,t)=>`flex items-center border-b border-gray-200${e?"":" gap-1"} ${t}`.trim();function h(e,t,n="default"){return`-mb-px inline-flex items-center gap-2 border-b-2 px-3 py-2 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 ${t?"flex-1 justify-center ":""}${e?"border-blue-600 text-blue-600":`border-transparent ${"warning"===n?"text-amber-700":"text-gray-900"} hover:border-gray-300`}`}function f(e){if(!e||!e.startsWith("#")||e.length<2)return null;try{return document.getElementById(decodeURIComponent(e.slice(1)))}catch{return null}}function p(e,t){const n=e.filter(e=>!e.disabled).map(e=>({id:e.id,section:f(e.href)})).filter(e=>null!=e.section);if(0===n.length)return null;const r=function(e){for(let t=e.parentElement;t;t=t.parentElement){const e=getComputedStyle(t).overflowY;if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t}return document.scrollingElement??document.documentElement}(n[0].section);if(r.scrollTop>0&&r.scrollTop+r.clientHeight>=r.scrollHeight-1)return n[n.length-1].id;const o=Math.max(0,t.getBoundingClientRect().bottom)+8;let l=n[0].id;for(const e of n)e.section.getBoundingClientRect().top<=o&&(l=e.id);return l}function g({items:e,value:n,onChange:o,block:c=!1,className:u="","aria-label":m,"aria-labelledby":g}){const v=i(null),w=function(e,t,n,r){const o=i(0),l=i({items:t,value:n,onChange:r});l.current={items:t,value:n,onChange:r};const c=i(()=>{});return c.current=()=>{const t=e.current;if(!t||Date.now()<o.current)return;const n=p(l.current.items,t);null!=n&&n!==l.current.value&&l.current.onChange(n)},a(()=>{c.current()},[t]),d(()=>{let e=0;const t=()=>{e||(e=requestAnimationFrame(()=>{e=0,c.current()}))};return document.addEventListener("scroll",t,{capture:!0,passive:!0}),window.addEventListener("resize",t),()=>{document.removeEventListener("scroll",t,{capture:!0}),window.removeEventListener("resize",t),e&&cancelAnimationFrame(e)}},[]),e=>{o.current=Date.now()+800,e!==l.current.value&&l.current.onChange(e),window.setTimeout(()=>c.current(),850)}}(v,e,n,o);/* @__PURE__ */
|
|
2
|
+
return s("nav",{ref:v,"aria-label":m,"aria-labelledby":g,className:b(c,u),children:e.map(e=>{const o=e.id===n,a=/* @__PURE__ */s("a",{href:e.disabled?void 0:e.href,"aria-current":o?"location":void 0,"aria-disabled":e.disabled||void 0,onClick:e.disabled?void 0:t=>((e,t)=>{const n=f(t.href);n&&(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey))(e)&&(e.preventDefault(),w(t.id),n.scrollIntoView({block:"start",behavior:"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"}),n.hasAttribute("tabindex")||n.setAttribute("tabindex","-1"),n.focus({preventScroll:!0}))})(t,e),className:`${h(o,c,"warning"===e.tone?"warning":"default")}${e.disabled?" cursor-not-allowed opacity-50":""}`,children:/* @__PURE__ */s(t,{icon:e.icon,label:e.label})},e.id);return null!=e.tooltip&&!1!==e.tooltip?/* @__PURE__ */s(l,{content:e.tooltip,className:c?r(c):void 0,children:a},e.id):a})})}var v=(e,t)=>`${e}-tab-${t}`,w=(e,t)=>`${e}-panel-${t}`;function y(e,t){const n=getComputedStyle(e),r=(parseFloat(n.paddingLeft)||0)+(parseFloat(n.paddingRight)||0)+(parseFloat(n.borderLeftWidth)||0)+(parseFloat(n.borderRightWidth)||0),o=(parseFloat(n.columnGap)||0)*Math.max(0,t-1),l=e.parentElement;let a=1/0;if(l){const e=getComputedStyle(l);a=l.clientWidth-(parseFloat(e.paddingLeft)||0)-(parseFloat(e.paddingRight)||0)}return{chrome:r+o,room:a}}function x(e){return e.items.some(e=>null!=e.href)?/* @__PURE__ */s(g,{...e}):/* @__PURE__ */s(k,{...e})}function k({items:f,value:p,onChange:g,variant:x="underline",block:k=!1,idPrefix:C,className:F="","aria-label":E,"aria-labelledby":L,labelsFit:R=!1}){const A=i([]),$=i(null),N="pill"===x,[S,W]=c(null),D=S??"none",j=i(()=>{});j.current=()=>{const t=$.current;if(!t||!R)return;const n=function(e){return[...e.querySelectorAll('[role="tab"]')].map(e=>{const t=getComputedStyle(e),n=(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)+(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0),r=e.querySelector("[data-tab-glyph]")?.getBoundingClientRect().width??0,o=e.querySelector("[data-tab-word]")?.scrollWidth??0;return{bare:n+r,worded:n+r+(r&&o?8:0)+o,active:"true"===e.getAttribute("aria-selected")}})}(t);W(function({tabs:t,block:n,chrome:r,room:o}){if(!n)return e({buttons:t,orientation:"horizontal",chrome:r,room:o});if(0===t.length)return"none";const l=e=>r+e*t.length<=o+.5;if(l(Math.max(...t.map(e=>e.worded))))return"all";const a=t.find(e=>e.active);return a&&l(Math.max(a.worded,...t.map(e=>e.bare)))?"chosen":"none"}({tabs:n,block:k,...y(t,n.length)}))},a(()=>{j.current()}),d(()=>{const e=$.current?.parentElement;if(!R||!e)return;let t=!0;const n=()=>{t&&j.current()},r="undefined"==typeof ResizeObserver?void 0:ResizeObserver,o=r?new r(n):null;return o?.observe(e),document.fonts?.ready.then(n,()=>{}),()=>{t=!1,o?.disconnect()}},[R]);const H=(e,t)=>{for(let n=1;n<=f.length;n+=1){const r=((e+t*n)%f.length+f.length)%f.length;if(!f[r]?.disabled)return r}return null},I=e=>{const t=1===e?f.map((e,t)=>t):f.map((e,t)=>f.length-1-t);for(const e of t)if(!f[e]?.disabled)return e;return null};/* @__PURE__ */
|
|
3
|
+
return s("div",{ref:$,role:"tablist","data-labels-shown":R?D:void 0,"aria-label":E,"aria-labelledby":L,onKeyDown:e=>{const t=f.findIndex(e=>e.id===p);let n=null;if("ArrowRight"===e.key||"ArrowDown"===e.key)n=H(t,1);else if("ArrowLeft"===e.key||"ArrowUp"===e.key)n=H(t,-1);else if("Home"===e.key)n=I(1);else{if("End"!==e.key)return;n=I(-1)}e.preventDefault(),null!==n&&n!==t&&(g(f[n].id),A.current[n]?.focus())},className:N?o(k,F):b(k,F),children:f.map((e,o)=>{const a=e.id===p,i=R&&null!=e.icon,c="all"===D||"chosen"===D&&a,d=/* @__PURE__ */s("button",{ref:e=>{A.current[o]=e},type:"button",role:"tab",id:C?v(C,e.id):void 0,"aria-controls":C?w(C,e.id):void 0,"aria-selected":a,tabIndex:a?0:-1,disabled:e.disabled,onClick:()=>g(e.id),className:N?n({selected:a,disabled:e.disabled,block:k}):h(a,k,"warning"===e.tone?"warning":"default"),children:i?/* @__PURE__ */u(m,{children:[
|
|
4
4
|
/* @__PURE__ */s("span",{"aria-hidden":"true","data-tab-glyph":"",className:"inline-flex shrink-0",children:e.icon}),
|
|
5
5
|
/* @__PURE__ */s("span",{"data-tab-word":c?"shown":"hidden",className:c?"whitespace-nowrap":"sr-only",children:e.label})]}):/* @__PURE__ */s(t,{icon:e.icon,label:e.label})},e.id),b=i?e.tooltip??e.label:e.tooltip;return null!=b&&!1!==b?/* @__PURE__ */s(l,{content:b,className:N||k?r(k):void 0,children:d},e.id):d})})}export{x as Tabs,v as tabButtonId,w as tabPanelId};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Tooltip as e}from"./chunk-
|
|
1
|
+
import{Tooltip as e}from"./chunk-2LXTJXWC.js";import{jsxs as r,Fragment as n,jsx as i}from"react/jsx-runtime";var l=e=>!0===e||"true"===e;function o(e){e.preventDefault(),e.stopPropagation()}var t=(e,r)=>[e,r].filter(Boolean).join(" ")||void 0;function a({reason:l,id:o,block:t=!1,children:a}){/* @__PURE__ */
|
|
2
2
|
return r(n,{children:[
|
|
3
3
|
/* @__PURE__ */i(e,{content:l,describe:!1,className:t?"relative flex w-full":"relative inline-flex",children:a}),
|
|
4
4
|
/* @__PURE__ */i("span",{id:o,className:"sr-only",children:l})]})}export{a as OffWithReason,t as describedByWith,l as isAriaDisabled,o as swallowPress};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ErrorPage as r}from"./chunk-O6TKI4F5.js";import{reportBoundaryError as e}from"./chunk-KNUR2UEG.js";import{Button_default as t}from"./chunk-
|
|
1
|
+
import{ErrorPage as r}from"./chunk-O6TKI4F5.js";import{reportBoundaryError as e}from"./chunk-KNUR2UEG.js";import{Button_default as t}from"./chunk-UDD7GB4F.js";import{useShellStrings as s}from"./chunk-OVNRVFWS.js";import{Component as o}from"react";import{jsxs as i,jsx as a,Fragment as n}from"react/jsx-runtime";function c({pick:r}){/* @__PURE__ */
|
|
2
2
|
return a(n,{children:r(s().errors)})}var l=class extends o{state={error:null};static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r,t){console.error("ErrorBoundary caught an error:",r,t),e(r),this.props.onError?.(r,t)}componentDidUpdate(r){if(!this.state.error)return;const e=r.resetKeys??[],t=this.props.resetKeys??[];(e.length!==t.length||e.some((r,e)=>!Object.is(r,t[e])))&&this.reset()}reset=()=>this.setState({error:null});render(){const{error:e}=this.state;return e?this.props.fallback?this.props.fallback(e,this.reset):
|
|
3
3
|
/* @__PURE__ */i("div",{className:"flex h-full flex-col",children:[
|
|
4
4
|
/* @__PURE__ */a("div",{role:"alert",className:"min-h-0 flex-1",children:/* @__PURE__ */a(r,{code:500,actions:/* @__PURE__ */i(n,{children:[
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{OneLineLabel as t}from"./chunk-
|
|
1
|
+
import{OneLineLabel as t}from"./chunk-7T3COEQK.js";import{createContext as s,useContext as a,useCallback as r}from"react";import{jsx as o}from"react/jsx-runtime";var e="inline-flex max-w-full items-center whitespace-nowrap rounded-full",n={success:"bg-[var(--status-success-soft)] text-[color:var(--status-success-soft-ink)]",active:"bg-[var(--status-active-soft)] text-[color:var(--status-active-soft-ink)]",queued:"bg-[var(--status-queued-soft)] text-[color:var(--status-queued-soft-ink)]",info:"bg-[var(--status-info-soft)] text-[color:var(--status-info-soft-ink)]",pending:"bg-[var(--status-pending-soft)] text-[color:var(--status-pending-soft-ink)]",warning:"bg-[var(--status-warning-soft)] text-[color:var(--status-warning-soft-ink)]",danger:"bg-[var(--status-danger-soft)] text-[color:var(--status-danger-soft-ink)]",draft:"bg-[var(--status-draft-soft)] text-[color:var(--status-draft-soft-ink)]",neutral:"bg-[var(--status-neutral-soft)] text-[color:var(--status-neutral-soft-ink)]"},u={success:"bg-[var(--status-success-solid)] text-[color:var(--status-on-solid)]",active:"bg-[var(--status-active-solid)] text-[color:var(--status-on-solid)]",queued:"bg-[var(--status-queued-solid)] text-[color:var(--status-on-solid)]",info:"bg-[var(--status-info-solid)] text-[color:var(--status-on-solid)]",pending:"bg-[var(--status-pending-solid)] text-[color:var(--status-on-solid)]",warning:"bg-[var(--status-warning-solid)] text-[color:var(--status-on-solid)]",danger:"bg-[var(--status-danger-solid)] text-[color:var(--status-on-solid)]",draft:"bg-[var(--status-draft-solid)] text-[color:var(--status-on-solid)]",neutral:"bg-[var(--status-neutral-solid)] text-[color:var(--status-on-solid)]"};function i(t,s="subtle"){return"solid"===s?u[t]:n[t]}var l=s({}),c=s(void 0);function d(t){return t.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase())}function v({groups:t,labelFor:s,children:a}){/* @__PURE__ */
|
|
2
2
|
return o(l.Provider,{value:t,children:/* @__PURE__ */o(c.Provider,{value:s,children:a})})}function f(){const t=a(c);return r(s=>t?.(s)??d(s),[t])}function g({status:s,label:r,emphasis:n="subtle"}){const u=i(a(l)[s]??"neutral",n),v=a(c),f=r??v?.(s)??d(s);/* @__PURE__ */
|
|
3
3
|
return o("span",{className:`${e} px-3 py-0.5 text-xs font-medium ${u}`,children:/* @__PURE__ */o(t,{children:f})})}export{e as BADGE_PILL,n as GROUP_COLORS,u as GROUP_COLORS_SOLID,g as StatusBadge,v as StatusBadgeProvider,i as groupColors,f as useStatusLabel};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{PopupMenu as e,PopupMenuDivider as t,PopupMenuLabel as r,menuTextRowStyle as n,itemLook as i,MenuCheckMark as a}from"./chunk-7IF3RZF3.js";import{useTabLayer as o,focusableIn as l}from"./chunk-CDAJKLGL.js";import{onOverlayOpen as s}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as d}from"./chunk-62LW225J.js";import{placeMenu as c,popupBounds as u,followAnchor as p}from"./chunk-
|
|
1
|
+
import{PopupMenu as e,PopupMenuDivider as t,PopupMenuLabel as r,menuTextRowStyle as n,itemLook as i,MenuCheckMark as a}from"./chunk-7IF3RZF3.js";import{useTabLayer as o,focusableIn as l}from"./chunk-CDAJKLGL.js";import{onOverlayOpen as s}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as d}from"./chunk-62LW225J.js";import{placeMenu as c,popupBounds as u,followAnchor as p}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as f}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as m}from"./chunk-TWVUQUUD.js";import{useState as h,useRef as y,useId as b,useCallback as g,useEffect as v}from"react";import{jsxs as k,jsx as x}from"react/jsx-runtime";var w=/(^|[\s:])!?z-/,D={paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:"0.25rem",paddingBottom:"0.25rem"},N=e=>!!e&&"label"!==e.type&&"status"!==e.type&&"divider"!==e.type&&!e.disabled;function $({trigger:$,items:C,align:j="end",side:L="bottom","aria-label":E,className:K="",triggerClassName:S,menuClassName:W="",minWidth:H=180,linkAs:A,disabled:U,id:T,"aria-describedby":B,"aria-disabled":I=!1,onOpenChange:J,footer:M,footerLabel:q}){const[G,R]=h(!1),[z,F]=h(-1),O=y(null),P=y(null),Q=y(null),V=y(null),Y=y(null),Z=null!=M&&!1!==M,X=y({text:"",at:0}),_=b(),ee=b(),te=T??ee,re=y(J);re.current=J;const ne=y(G);ne.current=G;const ie=g(e=>{R(!1),ne.current&&(ne.current=!1,re.current?.(!1)),e&&P.current?.focus()},[]),ae=(e,t)=>{const r=C.length;for(let n=0;n<r;n+=1){const i=((e+t*n)%r+r)%r;if(N(C[i]))return i}return-1},oe=()=>Q.current?.closest("[data-popup-menu-tree]")??null;v(()=>{if(!G)return;const e=e=>{const t=e.target;O.current?.contains(t)||oe()?.contains(t)||ie(!1)};document.addEventListener("pointerdown",e,!0);const t=s(()=>ie(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[G,ie]);const le=g(()=>{const e=oe(),t=P.current;if(!e||!t)return;const r=e.style;r.left="0px",r.top="0px",r.maxWidth="none",r.maxHeight="none";const n={width:e.offsetWidth,height:e.offsetHeight},i=c({trigger:t.getBoundingClientRect(),menu:n,bounds:u(t),align:j,side:L});r.left=`${i.left}px`,r.top=`${i.top}px`,r.maxWidth=`${i.maxWidth}px`,r.maxHeight=`${i.maxHeight}px`,r.overflowY=n.height>i.maxHeight?"auto":"",e.dataset.side=i.side,e.dataset.align=j},[j,L]);f(()=>{G&&le()}),v(()=>{if(G)return p(()=>P.current,le)},[G,le]),v(()=>{if(!G)return;const e=Q.current,t=N(C[z])?e?.querySelector(`[data-dropdown-index="${z}"]`):null;(t??e)?.focus({preventScroll:!0})},[G,z]),v(()=>{if(G)return m(e=>"Escape"===e.key&&(ie(!0),!0),()=>V.current)},[G,ie]),o(V,G&&Z);const se=y(null),de=e=>"first"===e?ae(0,1):ae(C.length-1,-1),ce=e=>{F(de(e)),R(!0),ne.current||(ne.current=!0,se.current=e,J?.(!0))};f(()=>{const e=se.current;if(!G||!e)return;se.current=null;const t=de(e);t!==z&&F(t)});const ue=e=>{e.disabled||(ie(!0),e.onSelect())},pe=A??"a",fe=e=>`${_}-status-${e}`,me=C.flatMap((e,t)=>"status"===e.type?[fe(t)]:[]).join(" ")||void 0,he=(e,t)=>({"data-dropdown-index":e,tabIndex:e===z?0:-1,onMouseEnter:()=>{t.disabled||Y.current?.contains(document.activeElement)||F(e)}}),ye=(e,o)=>{if("divider"===e.type)/* @__PURE__ */
|
|
2
2
|
return x("div",{role:"separator",children:/* @__PURE__ */x(t,{})},e.key);if("label"===e.type)/* @__PURE__ */
|
|
3
3
|
return x("div",{id:`${_}-label-${o}`,children:/* @__PURE__ */x(r,{children:e.label})},e.key);if("status"===e.type)/* @__PURE__ */
|
|
4
4
|
return x("div",{id:fe(o),className:"text-xs",style:n(),children:e.label},e.key);if("checkbox"===e.type){const t=i(!1,e.disabled,"");/* @__PURE__ */
|
|
@@ -6,10 +6,10 @@ return k("button",{type:"button",role:"menuitemcheckbox","aria-checked":e.checke
|
|
|
6
6
|
/* @__PURE__ */x(a,{kind:"checkbox",checked:e.checked}),e.icon,e.label]},e.key)}if("radio"===e.type){const t=i(!1,e.disabled,"");/* @__PURE__ */
|
|
7
7
|
return k("button",{type:"button",role:"menuitemradio","aria-checked":e.checked,disabled:e.disabled,className:t.className,style:t.style,onClick:()=>ue(e),...he(o,e),children:[
|
|
8
8
|
/* @__PURE__ */x(a,{kind:"radio",checked:e.checked}),e.icon,e.label]},e.key)}if((e=>"link"===e.type||void 0===e.type&&"string"==typeof e.href)(e)){const t=i(!1,e.disabled,"no-underline "+(e.current?"font-medium":""));return e.disabled?/* @__PURE__ */k("a",{role:"menuitem","aria-disabled":"true",className:t.className,style:t.style,...he(o,e),children:[e.icon,e.label]},e.key):/* @__PURE__ */k(pe,{href:e.href,role:"menuitem","aria-current":e.current?"page":void 0,className:t.className,style:t.style,onClick:()=>ie(!0),...he(o,e),children:[e.icon,e.label]},e.key)}const l=i(e.danger,e.disabled,"");/* @__PURE__ */
|
|
9
|
-
return k("button",{type:"button",role:"menuitem",disabled:e.disabled,className:l.className,style:l.style,onClick:()=>ue(e),...he(o,e),children:[e.icon,e.label]},e.key)},be="function"==typeof
|
|
10
|
-
return k("div",{ref:O,className:`relative inline-flex ${
|
|
11
|
-
/* @__PURE__ */x("button",{ref:
|
|
12
|
-
/* @__PURE__ */x(e,{portal:!0,className:
|
|
13
|
-
/* @__PURE__ */x("div",{ref:
|
|
9
|
+
return k("button",{type:"button",role:"menuitem",disabled:e.disabled,className:l.className,style:l.style,onClick:()=>ue(e),...he(o,e),children:[e.icon,e.label]},e.key)},be="function"==typeof M?M({close:()=>ie(!0)}):M,ge={...w.test(W)?{}:{zIndex:d.popup},minWidth:H};/* @__PURE__ */
|
|
10
|
+
return k("div",{ref:O,className:`relative inline-flex ${K}`.trim(),children:[
|
|
11
|
+
/* @__PURE__ */x("button",{ref:P,id:te,type:"button","aria-haspopup":"menu","aria-expanded":G,"aria-controls":G?_:void 0,"aria-label":E,"aria-describedby":B,"aria-disabled":I||void 0,disabled:U,onClick:()=>{I||(G?ie(!1):ce("first"))},onKeyDown:e=>{I||("ArrowDown"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),ce("first")):"ArrowUp"===e.key&&(e.preventDefault(),ce("last")))},className:S??"inline-flex items-center justify-center rounded-(--radius-control) text-gray-600 transition-colors not-disabled:not-aria-disabled:hover:bg-gray-100 not-disabled:not-aria-disabled:hover:text-gray-900 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] disabled:cursor-not-allowed disabled:opacity-60 "+(E?"h-8 min-w-8 px-0":"h-8 min-w-8 gap-2 px-3"),children:$}),G&&
|
|
12
|
+
/* @__PURE__ */x(e,{portal:!0,className:W,style:ge,children:/* @__PURE__ */k("div",{ref:V,children:[
|
|
13
|
+
/* @__PURE__ */x("div",{ref:Q,id:_,role:"menu","aria-orientation":"vertical","aria-label":E,"aria-labelledby":E?void 0:te,"aria-describedby":me,tabIndex:-1,onKeyDown:e=>{if("ArrowDown"===e.key)e.preventDefault(),F(ae(z+1,1));else if("ArrowUp"===e.key)e.preventDefault(),F(ae(z-1,-1));else if("Home"===e.key)e.preventDefault(),F(ae(0,1));else if("End"===e.key)e.preventDefault(),F(ae(C.length-1,-1));else if("Tab"===e.key){e.preventDefault();const t=!e.shiftKey&&Y.current?l(Y.current)[0]:void 0;t?t.focus({preventScroll:!0}):ie(!0)}else if(" "===e.key){const t=e.target;t.matches?.("a[href]")&&(e.preventDefault(),t.click())}else 1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey||(e=>{const t=Date.now(),r=e.key.toLowerCase(),n=t-X.current.at<500?X.current.text+r:r;X.current={text:n,at:t};const i=[...n].every(e=>e===n[0]),a=i?n[0]:n,o=i?z+1:Math.max(z,0),l=Q.current,s=C.length;for(let t=0;t<s;t+=1){const r=((o+t)%s+s)%s;if(N(C[r])&&(l?.querySelector(`[data-dropdown-index="${r}"]`)?.textContent?.trim().toLowerCase()??"").startsWith(a))return e.preventDefault(),void F(r)}})(e)},children:(()=>{const e=[];for(let t=0;t<C.length;){const r=C[t];if("radio"!==r.type&&"checkbox"!==r.type){e.push(ye(r,t)),t+=1;continue}const n=r.type,i=t,a=[];for(;t<C.length&&C[t].type===n;)a.push(ye(C[t],t)),t+=1;const o="label"===C[i-1]?.type?`${_}-label-${i-1}`:void 0;e.push(/* @__PURE__ */x("div",{role:"group","aria-labelledby":o,children:a},`group:${r.key}`))}return e})()}),Z&&/* @__PURE__ */k("div",{ref:Y,role:"group","aria-label":q,"data-dropdown-footer":"",onKeyDown:e=>{const t=Y.current;if("Tab"!==e.key||!t||!t.contains(e.target))return;const r=l(t),n=document.activeElement;if(e.shiftKey){if(r.length>0&&n!==r[0])return;e.preventDefault();const t=Q.current?.querySelector(`[data-dropdown-index="${z}"]`);return void(t??Q.current)?.focus({preventScroll:!0})}r.length>0&&n!==r[r.length-1]||(e.preventDefault(),ie(!0))},children:[
|
|
14
14
|
/* @__PURE__ */x("div",{"aria-hidden":"true",children:/* @__PURE__ */x(t,{})}),
|
|
15
15
|
/* @__PURE__ */x("div",{style:D,children:be})]})]})})]})}export{$ as DropdownMenu};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{DropdownMenu as e}from"./chunk-62LFDQGF.js";import{Button_default as i}from"./chunk-UDD7GB4F.js";import{iconButtonClasses as n}from"./chunk-K7U4RWXJ.js";import{Icon as r}from"./chunk-VJPJNCB4.js";import{Tooltip as a}from"./chunk-2LXTJXWC.js";import{forwardRef as l,useId as o}from"react";import{jsxs as s,jsx as t}from"react/jsx-runtime";var d="relative focus-visible:z-10",m={secondary:"border-l-0",primary:"border-l border-white/30",warning:"border-l border-white/30"},c=l(function({children:l,onClick:c,type:b="button",items:h,menuLabel:u,variant:f="primary",size:p="md",loading:v=!1,leftIcon:k,disabled:g=!1,disabledReason:N,tooltip:w,menuDisabled:x=!1,menuDisabledReason:j,onMenuOpenChange:y,menuFooter:C,menuFooterLabel:W,align:D="end",side:F="bottom",menuMinWidth:L,linkAs:z,block:J=!1,className:R=""},B){const X=g&&(null!=N&&""!==N&&!1!==N)&&!v,$=x&&null!=j&&""!==j&&!1!==j,A=o(),G=/* @__PURE__ */t(i,{ref:B,type:b,variant:f,size:p,loading:v,leftIcon:k,block:J,disabled:g&&!X,"aria-disabled":!!X||void 0,disabledReason:X?N:void 0,onClick:c,className:`rounded-r-none ${d}`,children:l}),I=J?"relative flex min-w-0 flex-1":"relative inline-flex",M=p.startsWith("touch")?"h-5 w-5":"h-4 w-4";/* @__PURE__ */
|
|
2
|
+
return s("div",{className:[J?"flex w-full":"inline-flex","items-stretch",R].filter(Boolean).join(" "),children:[null==w||""===w||X?G:/* @__PURE__ */t(a,{content:w,className:I,children:G}),
|
|
3
|
+
/* @__PURE__ */t(a,{content:$?j:u,describe:!1,className:"relative inline-flex shrink-0",children:/* @__PURE__ */t(e,{"aria-label":u,"aria-describedby":$?A:void 0,items:h,align:D,side:F,minWidth:L,linkAs:z,disabled:x&&!$,"aria-disabled":$,onOpenChange:y,footer:C,footerLabel:W,triggerClassName:n({variant:f,size:p,className:`rounded-l-none ${m[f]} ${d}`}),trigger:/* @__PURE__ */t(r,{name:"chevron-down",className:M,strokeWidth:2,"aria-hidden":"true"})})}),$&&/* @__PURE__ */t("span",{id:A,className:"sr-only",children:j})]})});export{c as SplitButton_default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{IconButton_default as e}from"./chunk-
|
|
1
|
+
import{IconButton_default as e}from"./chunk-HMZLRXLA.js";import{toast_default as t}from"./chunk-2LKH6JM5.js";import{Icon as r}from"./chunk-VJPJNCB4.js";import{currentShellStrings as n,useShellStrings as a}from"./chunk-OVNRVFWS.js";import{useState as o,useRef as i,useEffect as l,useCallback as c}from"react";import{jsxs as d,jsx as u,Fragment as s}from"react/jsx-runtime";function m(e){let t=null;try{t=window.getSelection()}catch{return null}if(!t||0===t.rangeCount||t.isCollapsed)return null;const r=e;if(r&&"number"==typeof r.nodeType){let e=!1;for(let n=0;n<t.rangeCount&&!e;n++)e=t.getRangeAt(n).intersectsNode(r);if(!e)return null}const n=t.toString();if(!n.trim())return null;const a=document.createElement("div");for(let e=0;e<t.rangeCount;e++)a.appendChild(t.getRangeAt(e).cloneContents());return{text:n,html:a.innerHTML}}async function p(e,t){try{if(t&&"undefined"!=typeof ClipboardItem&&navigator.clipboard?.write)return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})})]),!0;if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}const r=r=>{r.clipboardData?.setData("text/plain",e),t&&r.clipboardData?.setData("text/html",t),r.preventDefault()},n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.opacity="0",document.body.appendChild(n),n.select(),document.addEventListener("copy",r);try{return document.execCommand("copy")}catch{return!1}finally{document.removeEventListener("copy",r),n.remove()}}async function y(e,r,a){const o=await p(r,a),i=n().copy;return o?t.success(i.copiedLabel(e)):t.error(i.failed),o}var b={bordered:"border border-gray-300 bg-white",flat:"bg-gray-100"},f={sm:{box:"gap-2 px-3 py-1 text-xs",button:"-my-1"},md:{box:"gap-2 px-3 min-h-8 py-1 text-sm",button:"-my-0.5"}};function h(){/* @__PURE__ */
|
|
2
2
|
return u(r,{name:"copy",className:"h-4 w-4","aria-hidden":"true"})}function x(){/* @__PURE__ */
|
|
3
|
-
return u(r,{name:"check",className:"h-4 w-4 text-green-600","aria-hidden":"true"})}function g({value:r,children:n,symbol:m,label:y,size:g="md",variant:w="bordered",hideCopyButton:v=!1,onCopy:C,multiline:N=!1,id:k,"aria-describedby":
|
|
4
|
-
return d("div",{id:
|
|
3
|
+
return u(r,{name:"check",className:"h-4 w-4 text-green-600","aria-hidden":"true"})}function g({value:r,children:n,symbol:m,label:y,size:g="md",variant:w="bordered",hideCopyButton:v=!1,onCopy:C,multiline:N=!1,id:k,"aria-describedby":L,className:T=""}){const[j,B]=o(!1),D=i(null),E=a().copy;l(()=>()=>{D.current&&clearTimeout(D.current)},[]);const R=c(async()=>{await p(r)?(B(!0),D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{B(!1),D.current=null},2e3),C?.(r)):t.error(E.failed)},[r,C,E]),{box:A,button:H}=f[g],J=!v;/* @__PURE__ */
|
|
4
|
+
return d("div",{id:J?void 0:k,"aria-describedby":J?void 0:L,className:["inline-flex max-w-full items-center rounded-md",b[w],A,T].filter(Boolean).join(" "),children:[null!=m&&""!==m&&/* @__PURE__ */u("span",{"aria-hidden":"true",className:"shrink-0 select-none font-mono text-gray-400",children:m}),
|
|
5
5
|
/* @__PURE__ */u("span",{className:"min-w-0 font-mono text-gray-800 "+(N?"whitespace-pre-wrap break-all":"truncate"),title:N?void 0:r,children:n??r}),!v&&/* @__PURE__ */d(s,{children:[
|
|
6
|
-
/* @__PURE__ */u(e,{id:k,"aria-label":y?E.copyLabel(y):E.copy,"aria-describedby":
|
|
7
|
-
/* @__PURE__ */u("span",{"aria-live":"polite",className:"sr-only",children:
|
|
6
|
+
/* @__PURE__ */u(e,{id:k,"aria-label":y?E.copyLabel(y):E.copy,"aria-describedby":L,onClick:R,className:`${H} text-gray-400`,children:/* @__PURE__ */u(j?x:h,{})}),
|
|
7
|
+
/* @__PURE__ */u("span",{"aria-live":"polite",className:"sr-only",children:j?E.copied:""})]})]})}export{g as Snippet,y as copyToClipboard,m as selectionAt};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{FormField as e}from"./chunk-MVQBVPWP.js";import{dropzoneClass as t,zoneFocusClass as a,CloseGlyph as r}from"./chunk-
|
|
2
|
-
return o(e,{label:g,htmlFor:
|
|
3
|
-
/* @__PURE__ */o("button",{ref:C,type:"button",id:
|
|
1
|
+
import{FormField as e}from"./chunk-MVQBVPWP.js";import{dropzoneClass as t,zoneFocusClass as a,CloseGlyph as r}from"./chunk-LI7D6SMK.js";import{useFileIntake as n,humanSize as i,FileIntakeAlert as s}from"./chunk-VAACOJ2H.js";import{useShellStrings as l}from"./chunk-OVNRVFWS.js";import{forwardRef as c,useId as m}from"react";import{jsxs as o,jsx as d}from"react/jsx-runtime";var p=c(function({files:c,onChange:p,accept:u,acceptHint:h,multiple:x=!0,maxSizeBytes:b,maxFiles:f,disabled:y=!1,label:g,hint:N,error:j,required:k,className:v=""},C){const O=m(),V=l().files,$=n({accept:u,acceptHint:h,maxSizeBytes:b,maxFiles:f,multiple:x,disabled:y,currentCount:c.length,onAccept:e=>p(x?[...c,...e]:e.slice(0,1))}),z=j?`${O}-error`:N?`${O}-hint`:void 0;/* @__PURE__ */
|
|
2
|
+
return o(e,{label:g,htmlFor:O,hint:N,error:j,required:k,className:v,children:[
|
|
3
|
+
/* @__PURE__ */o("button",{ref:C,type:"button",id:O,disabled:y,onClick:$.open,"aria-invalid":!!j||void 0,"aria-required":k||void 0,"aria-describedby":z,...$.zoneProps,className:t($.dragOver,y,a(y),"px-4 py-6"),children:[
|
|
4
4
|
/* @__PURE__ */o("span",{children:[
|
|
5
|
-
/* @__PURE__ */d("span",{className:"text-sm font-medium text-blue-600",children:x?
|
|
6
|
-
/* @__PURE__ */d("span",{className:"text-sm text-gray-500",children:` ${x?
|
|
5
|
+
/* @__PURE__ */d("span",{className:"text-sm font-medium text-blue-600",children:x?V.chooseMany:V.chooseOne}),
|
|
6
|
+
/* @__PURE__ */d("span",{className:"text-sm text-gray-500",children:` ${x?V.dragMany:V.dragOne}`})]}),h&&/* @__PURE__ */d("span",{className:"text-xs text-gray-400",children:h})]}),
|
|
7
7
|
/* @__PURE__ */d("input",{...$.inputProps}),c.length>0&&/* @__PURE__ */d("ul",{className:"mt-2 flex flex-col gap-1",children:c.map((e,t)=>/* @__PURE__ */o("li",{className:"flex items-center justify-between gap-3 rounded-md bg-gray-50 px-3 py-2",children:[
|
|
8
8
|
/* @__PURE__ */d("span",{className:"min-w-0 flex-1 truncate text-sm text-gray-800",title:e.name,children:e.name}),
|
|
9
|
-
/* @__PURE__ */d("span",{className:"shrink-0 text-xs tabular-nums text-gray-500",children:i(e.size,
|
|
10
|
-
/* @__PURE__ */d("button",{type:"button",disabled:y,onClick:()=>{$.clearRejections(),p(c.filter((e,a)=>a!==t))},"aria-label":
|
|
9
|
+
/* @__PURE__ */d("span",{className:"shrink-0 text-xs tabular-nums text-gray-500",children:i(e.size,V)}),
|
|
10
|
+
/* @__PURE__ */d("button",{type:"button",disabled:y,onClick:()=>{$.clearRejections(),p(c.filter((e,a)=>a!==t))},"aria-label":V.remove(e.name),className:"shrink-0 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */d(r,{})})]},`${e.name}-${t}`))}),
|
|
11
11
|
/* @__PURE__ */d(s,{rejections:$.rejections})]})});export{p as FilePicker_default};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import{AccessibleTable as e}from"./chunk-
|
|
2
|
-
return d("p",{className:`text-sm text-gray-500 ${
|
|
3
|
-
return f("div",{className:`relative ${
|
|
4
|
-
/* @__PURE__ */f("svg",{width:"100%",height:y,viewBox:`0 0 ${y} ${y}`,role:"img","aria-labelledby":U,onMouseLeave:()=>
|
|
5
|
-
/* @__PURE__ */d("title",{id:U,children:C.acrossMeasures(
|
|
1
|
+
import{AccessibleTable as e}from"./chunk-X3II54HU.js";import{polygonPoints as t}from"./chunk-VFC6QUEN.js";import{ChartDefs as r,maskId as l}from"./chunk-465RRWBY.js";import{useHighlight as a}from"./chunk-CNYAHYE6.js";import{ChartTooltip as o}from"./chunk-P5BOTIJU.js";import{angleScale as n}from"./chunk-2JWPNR2U.js";import{CHART_INK as i,resolveSeriesColorWithin as s}from"./chunk-TZFACUMR.js";import{useShellStrings as m,useShellLocale as c}from"./chunk-OVNRVFWS.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as p,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var k=3,g=e=>`${e.map(([e,t],r)=>`${0===r?"M":"L"}${e.toFixed(2)},${t.toFixed(2)}`).join(" ")} Z`;function x({axes:k,series:x,size:y=300,mode:b="area",grid:v="polygon",rings:M=4,formatValue:N,animate:j=!0,className:$,emptyLabel:W}){const C=m().charts,F=c(),R=N??(e=>h(e,F)),w=W??C.nothingToCompare,U=p(),[A,L]=u(null),{highlighted:O}=a(),T=x;if(k.length<3||0===T.length)/* @__PURE__ */
|
|
2
|
+
return d("p",{className:`text-sm text-gray-500 ${$??""}`,children:w});const V=y/2,z=y/2,B=y/2-46,E=n(k.length),H=k.map((e,t)=>null!=e.max&&Number.isFinite(e.max)&&e.max>0?e.max:Math.max(1,...T.map(e=>e.values[t]??0).filter(Number.isFinite))),I=(e,t)=>{const r=Math.max(0,Math.min(1,t/H[e])),l=E.center(e)-E.step/2;return[V+B*r*Math.cos(l),z+B*r*Math.sin(l)]},S=(e,t)=>null!==A?A!==e:null!==O&&O!==t,Y=null!==A?T[A]:void 0;/* @__PURE__ */
|
|
3
|
+
return f("div",{className:`relative ${$??""}`,children:[
|
|
4
|
+
/* @__PURE__ */f("svg",{width:"100%",height:y,viewBox:`0 0 ${y} ${y}`,role:"img","aria-labelledby":U,onMouseLeave:()=>L(null),children:[
|
|
5
|
+
/* @__PURE__ */d("title",{id:U,children:C.acrossMeasures(T.map(e=>e.label),k.length)}),Array.from({length:M},(e,r)=>{const l=B*(r+1)/M;return"circle"===v?/* @__PURE__ */d("circle",{cx:V,cy:z,r:l,fill:"none",stroke:i.grid,strokeWidth:1},r):/* @__PURE__ */d("path",{d:g(t(V,z,l,k.length)),fill:"none",stroke:i.grid,strokeWidth:1},r)}),k.map((e,t)=>{const[r,l]=I(t,H[t]);/* @__PURE__ */
|
|
6
6
|
return f("g",{children:[
|
|
7
|
-
/* @__PURE__ */d("line",{x1:
|
|
8
|
-
/* @__PURE__ */d("text",{x:
|
|
9
|
-
/* @__PURE__ */d(r,{id:U,reveal:!!j&&"center-out"}),
|
|
10
|
-
return f("g",{opacity:S(t,e.key)?.3:1,onMouseEnter:()=>
|
|
7
|
+
/* @__PURE__ */d("line",{x1:V,y1:z,x2:r,y2:l,stroke:i.grid,strokeWidth:1}),
|
|
8
|
+
/* @__PURE__ */d("text",{x:V+(B+18)*Math.cos(E.center(t)-E.step/2),y:z+(B+18)*Math.sin(E.center(t)-E.step/2)+4,textAnchor:"middle",fontSize:11,fill:i.label,children:e.label})]},e.key)}),
|
|
9
|
+
/* @__PURE__ */d(r,{id:U,reveal:!!j&&"center-out"}),T.map((e,t)=>{const r=s(t,3,e.color,e.tone),a=k.map((t,r)=>I(r,e.values[r]??0));/* @__PURE__ */
|
|
10
|
+
return f("g",{opacity:S(t,e.key)?.3:1,onMouseEnter:()=>L(t),mask:j?`url(#${l(U)})`:void 0,children:["area"===b&&/* @__PURE__ */d("path",{d:g(a),fill:r,fillOpacity:.18,stroke:"none"}),
|
|
11
11
|
/* @__PURE__ */d("path",{d:g(a),fill:"none",stroke:r,strokeWidth:2,strokeLinejoin:"round"}),a.map(([e,t],l)=>/* @__PURE__ */d("circle",{cx:e,cy:t,r:3.5,fill:r,stroke:i.surface,strokeWidth:1.5},l))]},e.key)})]}),Y&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(o,{title:Y.label,rows:k.map((e,t)=>({key:e.key,label:e.label,color:s(A,3,Y.color,Y.tone),value:R(Y.values[t]??0)}))})}),
|
|
12
|
-
/* @__PURE__ */d("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(140px,1fr))"},children:
|
|
12
|
+
/* @__PURE__ */d("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(140px,1fr))"},children:T.map((e,t)=>/* @__PURE__ */f("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
|
|
13
13
|
/* @__PURE__ */d("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:s(t,3,e.color,e.tone)}}),
|
|
14
14
|
/* @__PURE__ */d("span",{className:"flex-1 truncate",children:e.label})]},e.key))}),
|
|
15
|
-
/* @__PURE__ */d(e,{caption:C.acrossMeasures(
|
|
15
|
+
/* @__PURE__ */d(e,{caption:C.acrossMeasures(T.map(e=>e.label),k.length),head:[C.tableSeries,...k.map(e=>e.label)],rows:T.map(e=>[e.label,...k.map((t,r)=>R(e.values[r]??0))])})]})}export{k as RADAR_SERIES_CAP,x as RadarChart};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Card as e}from"./chunk-RD5UPROC.js";import{Select_default as a}from"./chunk-
|
|
1
|
+
import{Card as e}from"./chunk-RD5UPROC.js";import{Select_default as a}from"./chunk-3S52QOEP.js";import{Input_default as r}from"./chunk-UNEJ2ABD.js";import{Pagination as t}from"./chunk-XKCEVZZB.js";import{StatusBadgeProvider as i,StatusBadge as s}from"./chunk-5SULG7D5.js";import{TH_ONE_LINE as l}from"./chunk-7T3COEQK.js";import{Button_default as c}from"./chunk-UDD7GB4F.js";import{Icon as m}from"./chunk-VJPJNCB4.js";import{useState as n}from"react";import{jsx as d,jsxs as o}from"react/jsx-runtime";var h={active:"success",invited:"queued",suspended:"danger",pending:"pending"},p=[{name:"Alice Nguyen",email:"alice@acme.co",role:"Admin",status:"active"},{name:"Marco Reyes",email:"marco@acme.co",role:"Editor",status:"invited"},{name:"Priya Patel",email:"priya@acme.co",role:"Editor",status:"active"},{name:"Tom Becker",email:"tom@acme.co",role:"Viewer",status:"suspended"},{name:"Sara Lind",email:"sara@acme.co",role:"Viewer",status:"pending"},{name:"Yuki Tanaka",email:"yuki@acme.co",role:"Editor",status:"active"}];function u(){const[m,u]=n(1),[g,f]=n(""),[y,v]=n("");/* @__PURE__ */
|
|
2
2
|
return d(i,{groups:h,children:/* @__PURE__ */d("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */o("div",{className:"mx-auto max-w-5xl space-y-4",children:[
|
|
3
3
|
/* @__PURE__ */o("div",{className:"flex items-center justify-between gap-4",children:[
|
|
4
4
|
/* @__PURE__ */d("h1",{className:"text-xl font-semibold text-gray-900",children:"Members"}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useInsideTooltip as e,Tooltip as n}from"./chunk-
|
|
1
|
+
import{useInsideTooltip as e,Tooltip as n}from"./chunk-2LXTJXWC.js";import{useRef as r,useState as t}from"react";import{jsx as c}from"react/jsx-runtime";var i="whitespace-nowrap";function l({children:i}){const l=e(),o=r(null),[a,s]=t(!1),m=/* @__PURE__ */c("span",{ref:o,className:"min-w-0 truncate",onMouseEnter:()=>{const e=o.current;s(!!e&&e.scrollWidth>e.clientWidth+1)},children:i});return l?m:/* @__PURE__ */c(n,{content:a?i:null,describe:!1,className:"relative inline-flex min-w-0 max-w-full",children:m})}export{l as OneLineLabel,i as TH_ONE_LINE};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Button_default as e}from"./chunk-
|
|
1
|
+
import{Button_default as e}from"./chunk-UDD7GB4F.js";import{Icon as r}from"./chunk-VJPJNCB4.js";import{useShellStrings as t}from"./chunk-OVNRVFWS.js";import{jsxs as a,jsx as d}from"react/jsx-runtime";function n({title:n,message:o,onRetry:s,variant:i="dashed"}){const m=t().list;/* @__PURE__ */
|
|
2
2
|
return a("div",{className:`flex flex-col items-center justify-center text-center ${"card"===i?"rounded-md border border-gray-200 bg-white px-6 py-12":"none"===i?"px-6 py-12":"rounded-lg border-2 border-dashed border-red-200 px-6 py-12"}`,role:"alert",children:[
|
|
3
3
|
/* @__PURE__ */d(r,{name:"warning",className:"h-10 w-10 text-red-300 mb-3",strokeWidth:1,"aria-hidden":"true"}),
|
|
4
4
|
/* @__PURE__ */d("h3",{className:"text-sm font-medium text-gray-900",children:n??m.loadError}),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{resolveColumnShares as e,COLUMN_SHARES_EQUAL as t,COLUMN_SHARE_MIN as r,COLUMN_COUNT_MAX as n}from"./chunk-PLGJOHEG.js";import{InputNumber_default as o}from"./chunk-
|
|
2
|
-
return f("div",{role:"group","aria-label":P?void 0:N,"aria-labelledby":P,"aria-describedby":
|
|
1
|
+
import{resolveColumnShares as e,COLUMN_SHARES_EQUAL as t,COLUMN_SHARE_MIN as r,COLUMN_COUNT_MAX as n}from"./chunk-PLGJOHEG.js";import{InputNumber_default as o}from"./chunk-SWSN3HZX.js";import{Button_default as i}from"./chunk-UDD7GB4F.js";import{Tooltip as l}from"./chunk-2LXTJXWC.js";import{useShellStrings as a}from"./chunk-OVNRVFWS.js";import{useId as s,useRef as c,useState as d,useEffect as u,Fragment as h}from"react";import{jsxs as f,jsx as m}from"react/jsx-runtime";var p=(e,t,r)=>Math.min(r,Math.max(t,e)),v=e=>e.reduce((e,t)=>e+t,0),g=(e,t)=>e.length===t.length&&e.every((e,r)=>e===t[r]);var y,b="w-0.5",w=`${b} group-hover/widths:w-1 group-focus-visible/widths:w-1`;var x=["text-blue-700","text-gray-600"];function k({count:k,value:$,onChange:C,label:N,"aria-labelledby":P,readOnly:j=!1,disabled:M=!1,footer:R=!0,className:S=""}){const z=a().widths,B=s(),D=p(Math.round(k)||1,1,n),A=e($,D),O=A??[...t[D]??[]],T=[...O,100-v(O)],K=j||M,W=c(null),X=c({onChange:C,shown:O,locked:K,n:D,stored:A});X.current={onChange:C,shown:O,locked:K,n:D,stored:A};const E=t=>{const{onChange:r,shown:n,locked:o,n:i}=X.current;if(o)return!1;const l=e(t,i);return!(!l||g(l,n))&&(r(l),!0)},F=(e,t,n)=>{const o=e[t]+e[t+1],i=[...e];i[t]=p(Math.round(n),r,o-r),i[t+1]=o-i[t],E(i.slice(0,-1))&&(ie.current=null)},H=e=>t=>{if(t.altKey||t.ctrlKey||t.metaKey)return;const n=t.shiftKey?10:1,o=T[e]+T[e+1],i="ArrowRight"===t.key?T[e]+n:"ArrowLeft"===t.key?T[e]-n:"PageUp"===t.key?T[e]+10:"PageDown"===t.key?T[e]-10:"Home"===t.key?r:"End"===t.key?o-r:null;null!==i&&(t.preventDefault(),F(T,e,i))},L=c(null),[G,I]=d(null),U=()=>{L.current=null,I(null),document.body.style.removeProperty("cursor"),document.body.style.removeProperty("user-select")};u(()=>U,[]);const V=e=>t=>{if(0!==t.button||K)return;t.preventDefault();const r=W.current?.getBoundingClientRect().width??0;r<=0||(L.current={i:e,x:t.clientX,width:r,from:T,moved:!1,pointer:t.pointerId},I(e),t.currentTarget.setPointerCapture?.(t.pointerId),document.body.style.cursor="col-resize",document.body.style.userSelect="none")},J=e=>{const t=L.current;if(!t)return;if(0===e.buttons)return void U();const r=e.clientX-t.x;if(!t.moved){if(Math.abs(r)<3)return;t.moved=!0}F(t.from,t.i,t.from[t.i]+r/t.width*100)},q=e=>{const t=L.current;t&&(e.currentTarget.hasPointerCapture?.(t.pointer)&&e.currentTarget.releasePointerCapture(t.pointer),U())},Z=(e,t)=>{const{shown:n}=X.current,o=function(e,t,n){const o=e.length,i=[...e];if(o<2)return i;const l=p(Math.round(n),r,100-(o-1)*r);let a=l-i[t];i[t]=l;const s=[...Array.from({length:o-1-t},(e,r)=>t+1+r),...Array.from({length:t},(e,r)=>t-1-r)];if(a<0)return i[s[0]]-=a,i;for(const e of s){if(a<=0)break;const t=Math.min(a,i[e]-r);i[e]-=t,a-=t}return i}([...n,100-v(n)],e,t);return E(o.slice(0,-1))?o:null},[Q,Y]=d(0);u(()=>{const e=W.current;if(!e||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver(()=>Y(e.getBoundingClientRect().width));return t.observe(e),()=>t.disconnect()},[]);const _=c(null),[ee,te]=d(null),[re,ne]=d([]),oe=(e,t)=>te(r=>t?e:r===e?null:r),ie=c(null),le=(e,t)=>{const r=ie.current;if(!r||r.column!==e||r.share!==t)return!1;const{onChange:n,locked:o,stored:i}=X.current;var l,a;return o||(l=i,a=r.stored,void 0===l||void 0===a?l===a:g(l,a))||n(r.stored),!0},ae=T.join(",");u(()=>{const e=null===ee?[]:function(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll("input[data-widths-label]")),n=r[t]?.getBoundingClientRect();if(!n||0===n.width)return[];if(void 0===y&&(y=document.createElement("canvas").getContext("2d")),!y)return[];const o=y;return r.flatMap((e,r)=>{if(r===t)return[];const i=e.getBoundingClientRect(),l=getComputedStyle(e);o.font=`${l.fontWeight} ${l.fontSize} ${l.fontFamily}`;const a=o.measureText(e.value).width/2,s=(i.left+i.right)/2;return s+a>n.left&&s-a<n.right?[r]:[]})}(_.current,ee);ne(t=>g(t,e)?t:e)},[ee,ae,Q]);const se=T.slice(0,-1).map((e,t)=>v(T.slice(0,t+1)));/* @__PURE__ */
|
|
2
|
+
return f("div",{role:"group","aria-label":P?void 0:N,"aria-labelledby":P,"aria-describedby":D>1?B:void 0,className:`flex w-full min-w-0 flex-col gap-2 ${M?"opacity-60":""} ${S}`.trim(),children:[
|
|
3
3
|
/* @__PURE__ */f("div",{ref:_,"data-widths-bar":"",className:"relative h-8",children:[
|
|
4
|
-
/* @__PURE__ */m("div",{ref:
|
|
5
|
-
/* @__PURE__ */m("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 rounded-(--radius-control) border border-gray-300"}),
|
|
6
|
-
return m("div",{className:"absolute inset-y-0 "+(n?"z-20":""),style:{left:`clamp(0px, calc(${i+e/2}% - ${l} / 2), calc(100% - ${l}))`,width:l},children:/* @__PURE__ */m(o,{appearance:"bare",value:e,display:()=>(e=>Q>0&&Q*e/100<36?String(e):`${e}%`)(e),suffix:"%",min:r,max:100-(
|
|
7
|
-
/* @__PURE__ */m("span",{id:
|
|
8
|
-
/* @__PURE__ */m(i,{variant:"secondary",size:"sm",disabled:
|
|
4
|
+
/* @__PURE__ */m("div",{ref:W,"data-widths-track":"",className:"flex h-full w-full overflow-hidden rounded-(--radius-control) bg-white",children:T.map((e,t)=>/* @__PURE__ */m("div",{"data-widths-segment":"",style:{flexBasis:`${e}%`},className:`flex min-w-0 shrink-0 grow-0 items-center justify-center overflow-hidden whitespace-nowrap text-xs font-medium tabular-nums ${x[t%2]} ${t%2==0?"bg-blue-50":""}`,children:1===D&&/* @__PURE__ */m("span",{"data-widths-label":"",children:`${e}%`})},t))}),
|
|
5
|
+
/* @__PURE__ */m("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 rounded-(--radius-control) border border-gray-300"}),D>1&&T.map((e,t)=>/* @__PURE__ */f(h,{children:[(()=>{const n=ee===t,i=v(T.slice(0,t)),l=n?`max(${e}%, 40px)`:`${e}%`;/* @__PURE__ */
|
|
6
|
+
return m("div",{className:"absolute inset-y-0 "+(n?"z-20":""),style:{left:`clamp(0px, calc(${i+e/2}% - ${l} / 2), calc(100% - ${l}))`,width:l},children:/* @__PURE__ */m(o,{appearance:"bare",value:e,display:()=>(e=>Q>0&&Q*e/100<36?String(e):`${e}%`)(e),suffix:"%",min:r,max:100-(D-1)*r,step:1,shiftStep:10,precision:0,allowEmpty:!1,reportWhileTyping:!1,readOnly:j,disabled:M,"aria-label":z.column(t+1),"aria-describedby":B,"data-widths-label":"",onChange:e=>{null===e||le(t,e)||Z(t,e)},onRevert:e=>((e,t)=>{X.current.locked||null===t||le(e,t)||Z(e,t)})(t,e),onFocus:()=>{ie.current={column:t,share:e,stored:X.current.stored},oe(t,!0)},onBlur:()=>oe(t,!1),className:`absolute inset-0 text-xs font-medium ${x[t%2]} ${re.includes(t)&&!n?"opacity-0":""}`})})})(),t<D-1&&/* @__PURE__ */m("div",{className:"absolute inset-y-0 z-10 w-3 -translate-x-1/2",style:{left:`${se[t]}%`},children:/* @__PURE__ */m(l,{content:z.dragHint,delay:600,className:"relative flex h-full w-full",children:/* @__PURE__ */m("div",{role:"separator",tabIndex:M?-1:0,"aria-orientation":"vertical","aria-label":z.divider(t+1,t+2),"aria-valuenow":T[t],"aria-valuemin":r,"aria-valuemax":T[t]+T[t+1]-r,"aria-valuetext":z.dividerValue(t+1,T[t],t+2,T[t+1]),"aria-disabled":K||void 0,onKeyDown:K?void 0:H(t),onPointerDown:V(t),onPointerMove:J,onPointerUp:q,onPointerCancel:q,onLostPointerCapture:()=>{L.current&&U()},className:"group/widths flex h-full w-full touch-none justify-center rounded-(--radius-control) rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] "+(K?"cursor-default":"cursor-col-resize"),children:/* @__PURE__ */m("span",{"aria-hidden":"true","data-widths-line":"",className:"h-full rounded-full "+(K?`${b} bg-gray-300`:`bg-blue-600 transition-[width,background-color] duration-(--motion-fast) group-hover/widths:bg-blue-700 ${G===t?"w-1":w}`)})})})})]},t))]}),D>1&&!R&&/* @__PURE__ */m("span",{id:B,className:"sr-only",children:z.hint(D,r)}),D>1&&R&&/* @__PURE__ */m("div",{"data-widths-footer":"",className:"@container",children:/* @__PURE__ */f("div",{className:"flex items-center justify-between gap-2 @max-[264px]:flex-col @max-[264px]:items-end",children:[
|
|
7
|
+
/* @__PURE__ */m("span",{id:B,"data-widths-hint":"",className:"text-2xs leading-tight text-gray-500 @max-[264px]:self-stretch",children:z.hint(D,r)}),
|
|
8
|
+
/* @__PURE__ */m(i,{variant:"secondary",size:"sm",disabled:K,onClick:()=>{K||void 0===$||C(void 0)},className:"shrink-0",children:z.reset})]})})]})}export{k as WidthsBar};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{TimelineCard as e}from"./chunk-SURSVJA2.js";import{TimelineTrack as n,TimelineMilestoneIcon as s}from"./chunk-
|
|
2
|
-
return h("div",L?{className:"shrink-0","data-timeline-variant":"rail",children:R}:{className:"shrink-0",children:/* @__PURE__ */h(e,{icon:/* @__PURE__ */h(s,{}),heading:d??m,subject:c,meta:
|
|
1
|
+
import{TimelineCard as e}from"./chunk-SURSVJA2.js";import{TimelineTrack as n,TimelineMilestoneIcon as s}from"./chunk-IH2DJOTW.js";import{toDayMs as i,fmtSliderDate as t,DAY_MS as a}from"./chunk-YDEIXM2A.js";import{useBrowserValueOnce as l}from"./chunk-D65T4H6J.js";import{useShellStrings as o,useShellLocale as r}from"./chunk-OVNRVFWS.js";import{jsx as h}from"react/jsx-runtime";function m({title:m,heading:d,subject:c,milestones:p,summary:u,endDate:g,phaseLabels:k,variant:v="card",edgeCaptions:f,highlightKeys:y=null,onHoverChange:b}){const M=l(Date.now,null),j=[],x=[],C=o().timeline,D=r();for(const e of p){const n=i(e.date??null);null===n?x.push({key:e.key,label:e.label,kind:e.kind}):j.push({...e,ms:n})}j.sort((e,n)=>e.ms-n.ms);const O=i(g??null);let H,N,w=!0;0===j.length?(N=O??M??0,H=N-30*a,w=null!==O||null!==M):(H=j[0].ms,N=O??j[j.length-1].ms,N-H<a&&(N=H+a));const J=j.length>0?Math.max(0,Math.round((N-H)/a)):0,S=u??(J>0?C.duration(J):void 0),V=[j.length>0?C.started(t(j[0].ms,D)):void 0,S,x.length>0?C.reached(j.length,p.length):void 0],A=j.map(e=>{return{key:e.key,ms:e.ms,kind:e.kind,label:e.label,detail:e.detail,preview:e.preview,glyph:e.glyph,onClick:e.onClick,onOpen:e.onOpen,priority:(n=e.kind,"dfm"===n?1:0),caption:e.caption,provisional:e.provisional};var n}),I={};for(const e of j)e.phase&&(I[e.phase]=I[e.phase]||[]).push(e.ms);const K=Object.entries(I).filter(([,e])=>e.length>=2).map(([e,n])=>({key:e,label:k?.[e]??e,minMs:Math.min(...n),maxMs:Math.max(...n)})),L="rail"===v,R=w&&/* @__PURE__ */h("div",{className:"select-none",children:/* @__PURE__ */h(n,{axis:L?"spread":"compressed",labels:L?"none":"lanes",items:A,pending:x,phases:K,startMs:H,endMs:N,todayMs:M??void 0,edgeCaptions:f,highlightKeys:y,onHoverChange:b,ariaLabel:C.milestones(m)})});/* @__PURE__ */
|
|
2
|
+
return h("div",L?{className:"shrink-0","data-timeline-variant":"rail",children:R}:{className:"shrink-0",children:/* @__PURE__ */h(e,{icon:/* @__PURE__ */h(s,{}),heading:d??m,subject:c,meta:V,children:R})})}export{m as MilestoneTimeline};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Card as e}from"./chunk-RD5UPROC.js";import{Radio_default as a}from"./chunk-NI5FXWK5.js";import{Select_default as l}from"./chunk-
|
|
1
|
+
import{Card as e}from"./chunk-RD5UPROC.js";import{Radio_default as a}from"./chunk-NI5FXWK5.js";import{Select_default as l}from"./chunk-3S52QOEP.js";import{Input_default as r}from"./chunk-UNEJ2ABD.js";import{FormField as n}from"./chunk-MVQBVPWP.js";import{Checkbox_default as i}from"./chunk-CGZBDI6C.js";import{Textarea_default as c}from"./chunk-AWY3F6PV.js";import{Button_default as o}from"./chunk-UDD7GB4F.js";import{useState as t}from"react";import{jsx as m,jsxs as d}from"react/jsx-runtime";function s(){const[s,h]=t("pro"),[u,p]=t(!0),[f,g]=t("us");/* @__PURE__ */
|
|
2
2
|
return m("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */d("form",{className:"mx-auto max-w-2xl space-y-5",onSubmit:e=>e.preventDefault(),children:[
|
|
3
3
|
/* @__PURE__ */d("div",{children:[
|
|
4
4
|
/* @__PURE__ */m("h1",{className:"text-xl font-semibold text-gray-900",children:"Account settings"}),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{swallowPress as e,describedByWith as r,OffWithReason as i}from"./chunk-
|
|
1
|
+
import{swallowPress as e,describedByWith as r,OffWithReason as i}from"./chunk-4TL3MRRE.js";import{Tooltip as a}from"./chunk-2LXTJXWC.js";import{useId as o,useRef as t}from"react";import{jsx as n}from"react/jsx-runtime";var l={ArrowLeft:[0,-1],ArrowRight:[0,1],ArrowUp:[-1,0],ArrowDown:[1,0]};function s({label:s,value:d,points:c,onChange:u,disabled:b=!1,disabledReason:g,id:v,className:f=""}){const h=o(),m=t([]),p=c.findIndex(e=>e.value===d),x=c.findIndex(e=>!b&&!0!==e.disabled),y=p>=0?p:Math.max(0,x);/* @__PURE__ */
|
|
2
2
|
return n("div",{id:v,role:"radiogroup","aria-label":s,className:`grid w-max grid-cols-3 gap-px overflow-hidden rounded-(--radius-control) border border-gray-200 bg-gray-200 ${f}`.trim(),children:c.map((o,t)=>{const s=d===o.value,v=b||!0===o.disabled,f=v&&(!0===o.disabled&&o.title||(b?g:void 0))||void 0,p=`${h}-${t}`,x=/* @__PURE__ */n("button",{type:"button",role:"radio","aria-checked":s,"aria-label":o.label,"aria-disabled":v||void 0,"aria-describedby":r(void 0,f?p:void 0),ref:e=>{m.current[t]=e},tabIndex:t===y?0:-1,onKeyDown:e=>((e,r)=>{const i=l[r.key];if(!i)return;r.preventDefault();const a=Math.floor(e/3)+i[0],o=e%3+i[1];if(a<0||o<0||o>=3)return;const t=3*a+o;if(t>=c.length)return;m.current[t]?.focus();const n=c[t];b||!0===n.disabled||n.value===d||u(n.value)})(t,e),onClick:v?e:()=>u(o.value),className:"group relative flex size-(--control-height-lg) items-center justify-center transition-colors rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring)] aria-disabled:cursor-not-allowed aria-disabled:opacity-60 "+(s?"bg-blue-50 hover:bg-blue-100":"bg-white hover:bg-gray-50"),children:o.icon?/* @__PURE__ */n("span",{"data-icon-slot":"","aria-hidden":"true",className:"inline-flex items-center justify-center [&_svg]:h-4 [&_svg]:w-4 "+(s?"text-blue-700":"text-gray-500 group-hover:text-gray-700"),children:o.icon}):/* @__PURE__ */n("span",{"data-dot":"","aria-hidden":"true",className:s?"size-3 rounded-sm bg-blue-600":"size-1 rounded-full bg-[color:var(--ink-faintest)] transition-colors group-hover:bg-[color:var(--ink-faint)]"})},o.value);return f?/* @__PURE__ */n(i,{reason:f,id:p,block:!0,children:x},o.value):/* @__PURE__ */n(a,{content:o.title??o.label,className:"relative flex",children:x},o.value)})})}export{s as AlignmentGrid};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Tooltip as r}from"./chunk-
|
|
1
|
+
import{Tooltip as r}from"./chunk-2LXTJXWC.js";import{useShellStrings as e}from"./chunk-OVNRVFWS.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";var i="Alt+ArrowUp Alt+ArrowDown";function c(r){return!r.altKey||r.ctrlKey||r.metaKey?null:"ArrowUp"===r.key?"up":"ArrowDown"===r.key?"down":null}var a=/* @__PURE__ */n("svg",{"aria-hidden":"true",viewBox:"0 0 4 14",fill:"currentColor",className:"h-3.5 w-1",children:[
|
|
2
2
|
/* @__PURE__ */t("circle",{cx:"2",cy:"3",r:"1.1"}),
|
|
3
3
|
/* @__PURE__ */t("circle",{cx:"2",cy:"7",r:"1.1"}),
|
|
4
4
|
/* @__PURE__ */t("circle",{cx:"2",cy:"11",r:"1.1"})]});function l({hint:n,dragging:i,revealClassName:c,marker:l}){const o=e().tree;/* @__PURE__ */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{choiceTrackClass as e,choiceTipClass as l,ChoiceContent as a,choiceItemClass as i}from"./chunk-4G5VLI7E.js";import{Tooltip as r}from"./chunk-
|
|
1
|
+
import{choiceTrackClass as e,choiceTipClass as l,ChoiceContent as a,choiceItemClass as i}from"./chunk-4G5VLI7E.js";import{Tooltip as r}from"./chunk-2LXTJXWC.js";import{useId as s}from"react";import{jsx as n,jsxs as o}from"react/jsx-runtime";function t({value:t,onChange:c,options:d,name:b,size:u="md",block:m=!1,label:h,className:p="","aria-labelledby":v,"aria-describedby":f}){const g={"aria-label":v?void 0:h,"aria-labelledby":v,"aria-describedby":f},N=s(),y=e(m,p),k=l(m);/* @__PURE__ */
|
|
2
2
|
return n("div",b?{role:"radiogroup",...g,className:y,children:d.map(e=>{const l=`${N}-${e.value}`,s=e.value===t,d=/* @__PURE__ */o("label",{htmlFor:l,className:i({size:u,selected:s,disabled:e.disabled,block:m}),children:[
|
|
3
3
|
/* @__PURE__ */n("input",{id:l,type:"radio",name:b,value:e.value,checked:s,disabled:e.disabled,"aria-describedby":e.title?`${l}-note`:void 0,onChange:()=>c(e.value),className:"absolute inset-0 m-0 h-full w-full appearance-none rounded-[inherit] bg-transparent cursor-[inherit] rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]"}),
|
|
4
4
|
/* @__PURE__ */n(a,{icon:e.icon,label:e.label}),e.title&&/* @__PURE__ */n("span",{id:`${l}-note`,className:"sr-only",children:e.title})]},e.value);return e.title?/* @__PURE__ */n(r,{content:e.title,className:k,children:d},e.value):d})}:{role:"group",...g,className:y,children:d.map(e=>{const l=e.value===t,s=/* @__PURE__ */n("button",{type:"button","aria-pressed":l,disabled:e.disabled,onClick:()=>c(e.value),className:i({size:u,selected:l,disabled:e.disabled,block:m}),children:/* @__PURE__ */n(a,{icon:e.icon,label:e.label})},e.value);return e.title?/* @__PURE__ */n(r,{content:e.title,className:k,children:s},e.value):s})})}export{t as Segmented};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Segmented as e}from"./chunk-
|
|
2
|
-
return a("div",{role:"group","aria-label":r,"data-border":c?"each":"all",className:"grid w-full min-w-0 grid-cols-2 gap-2",children:[w?c?/* @__PURE__ */a(o,{children:[
|
|
1
|
+
import{Segmented as e}from"./chunk-CHNYSP6K.js";import{ColorPicker as t}from"./chunk-ION2GBY3.js";import{InputNumber_default as l}from"./chunk-SWSN3HZX.js";import{Icon as r}from"./chunk-VJPJNCB4.js";import{jsxs as a,Fragment as o,jsx as s}from"react/jsx-runtime";var i=["solid","dashed","dotted"],n=["top","right","bottom","left"];function d(e){const t=e??{},l="number"==typeof t.width?t.width:0;return Object.fromEntries(n.map(e=>[e,"number"==typeof t[e]?t[e]:l]))}function m(e,t){const l=e??{},r=d(t),a=n.some(e=>"number"==typeof l[e]),o=n.map(e=>"number"==typeof l[e]?l[e]:"number"==typeof l.width?l.width:a?0:r[e]);return!o.every(e=>e===o[0])}var c="h-3.5 w-3.5",h={all:/* @__PURE__ */s(r,{name:"border-all","aria-hidden":"true",className:c}),top:/* @__PURE__ */s(r,{name:"border-top","aria-hidden":"true",className:c}),right:/* @__PURE__ */s(r,{name:"border-right","aria-hidden":"true",className:c}),bottom:/* @__PURE__ */s(r,{name:"border-bottom","aria-hidden":"true",className:c}),left:/* @__PURE__ */s(r,{name:"border-left","aria-hidden":"true",className:c})},p={solid:/* @__PURE__ */s(r,{name:"line-solid","aria-hidden":"true",className:c}),dashed:/* @__PURE__ */s(r,{name:"line-dashed","aria-hidden":"true",className:c}),dotted:/* @__PURE__ */s(r,{name:"line-dotted","aria-hidden":"true",className:c})};function u({label:r,value:d,onChange:m,each:c,placeholder:u,presets:f,words:b,widths:w=!0,styles:y=!0,min:g=0,max:N=20,step:v=1,readOnly:x}){const S=e=>"number"==typeof d[e]?d[e]:null,j=(e,t)=>{const l={...d};if("number"==typeof d.width)for(const e of n)null===S(e)&&(l[e]=d.width);l[e]=t,delete l.width,m(l)},k=(e,t,r,a,o,i)=>/* @__PURE__ */s("div",{"data-side":e,className:"all"===e?"col-span-2 min-w-0":"min-w-0",children:/* @__PURE__ */s(l,{value:a,onChange:i,min:g,max:N,step:v,precision:0,steppers:"compact",readOnly:x,placeholder:o,prefix:r,suffix:b.unit,"aria-label":t})}),C=n.map(S),O="number"==typeof d.width?d.width:C.every(e=>null!==e&&e===C[0])?C[0]:null,H=null===O&&C.some(e=>null!==e),z=n.every(e=>u.sides[e]===u.sides.top)?String(u.sides.top):"–",B=e=>S(e)??("number"==typeof d.width?d.width:null),I=d.style??u.style;/* @__PURE__ */
|
|
2
|
+
return a("div",{role:"group","aria-label":r,"data-border":c?"each":"all",className:"grid w-full min-w-0 grid-cols-2 gap-2",children:[w?c?/* @__PURE__ */a(o,{children:[k("left",b.sides.left,h.left,B("left"),String(u.sides.left),e=>j("left",e)),k("top",b.sides.top,h.top,B("top"),String(u.sides.top),e=>j("top",e)),k("right",b.sides.right,h.right,B("right"),String(u.sides.right),e=>j("right",e)),k("bottom",b.sides.bottom,h.bottom,B("bottom"),String(u.sides.bottom),e=>j("bottom",e))]}):k("all",b.width,h.all,O,H?"–":z,e=>{const t={...d,width:e};for(const e of n)delete t[e];m(t)}):null,y&&/* @__PURE__ */s("div",{"data-border-style":"",className:"col-span-2 min-w-0",children:/* @__PURE__ */s(e,{block:!0,size:"sm",label:b.style,value:I,onChange:e=>{x||m({...d,style:e})},options:i.map(e=>({value:e,label:/* @__PURE__ */a(o,{children:[p[e],
|
|
3
3
|
/* @__PURE__ */s("span",{className:"sr-only",children:b.styles[e]})]}),title:b.styles[e]}))})}),
|
|
4
4
|
/* @__PURE__ */s("div",{"data-border-color":"",className:"col-span-2 flex min-w-0 items-center",children:/* @__PURE__ */s(t,{value:d.color??"",onChange:e=>{x||m({...d,color:e})},label:b.color,presets:f,fallback:u.color,showHexInput:!0,size:"sm",disabled:x})})]})}export{i as BORDER_LINE_STYLES,u as BorderInput,d as borderSides,m as borderStartEach};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{InputNumber_default as e}from"./chunk-
|
|
1
|
+
import{InputNumber_default as e}from"./chunk-SWSN3HZX.js";import{IconButton_default as a}from"./chunk-HMZLRXLA.js";import{Icon as r}from"./chunk-VJPJNCB4.js";import{Tooltip as i}from"./chunk-2LXTJXWC.js";import{jsx as t,jsxs as n,Fragment as o}from"react/jsx-runtime";var d="h-3.5 w-3.5",s={padding:{top:/* @__PURE__ */t(r,{name:"padding-top","aria-hidden":"true",className:d}),right:/* @__PURE__ */t(r,{name:"padding-right","aria-hidden":"true",className:d}),bottom:/* @__PURE__ */t(r,{name:"padding-bottom","aria-hidden":"true",className:d}),left:/* @__PURE__ */t(r,{name:"padding-left","aria-hidden":"true",className:d}),vertical:/* @__PURE__ */t(r,{name:"padding-y","aria-hidden":"true",className:d}),horizontal:/* @__PURE__ */t(r,{name:"padding-left-right","aria-hidden":"true",className:d})},crop:{top:/* @__PURE__ */t(r,{name:"crop-top","aria-hidden":"true",className:d}),right:/* @__PURE__ */t(r,{name:"crop-right","aria-hidden":"true",className:d}),bottom:/* @__PURE__ */t(r,{name:"crop-bottom","aria-hidden":"true",className:d}),left:/* @__PURE__ */t(r,{name:"crop-left","aria-hidden":"true",className:d}),vertical:/* @__PURE__ */t(r,{name:"crop-y","aria-hidden":"true",className:d}),horizontal:/* @__PURE__ */t(r,{name:"crop-left-right","aria-hidden":"true",className:d})}},l=/* @__PURE__ */t(r,{name:"sides-each","aria-hidden":"true",className:"h-4 w-4"});var m=(e,a,r)=>null===e[r]?a[r]:String(e[r]);function c(e,a){const r=r=>m(e,a,r);return r("left")!==r("right")||r("top")!==r("bottom")}function h({label:a,value:r,onChange:i,each:d,placeholder:l,words:c,min:h=0,max:p=200,step:u=4,readOnly:g,glyphs:f="padding"}){const N=s[f],b=(a,n,o)=>{const d=function(e,a){const r=a.map(a=>e[a]);return r.every(e=>e===r[0])?r[0]:"mixed"}(r,a),s=a.map(e=>m(r,l,e)),f="mixed"!==d&&s.every(e=>e===s[0])?s[0]:"–";/* @__PURE__ */
|
|
2
2
|
return t("div",{"data-side":a.join("-"),className:"min-w-0",children:/* @__PURE__ */t(e,{value:"mixed"===d?null:d,onChange:e=>((e,a)=>{const t={...r};for(const r of e)t[r]=a;i(t)})(a,e),min:h,max:p,step:u,snap:!0,precision:0,steppers:"compact",readOnly:g,placeholder:f,prefix:o,suffix:c.unit,"aria-label":n})})};/* @__PURE__ */
|
|
3
|
-
return t("div",{role:"group","aria-label":a,"data-sides":d?"each":"pairs",className:"grid min-w-0 grid-cols-2 gap-2",children:/* @__PURE__ */n(o,d?{children:[
|
|
3
|
+
return t("div",{role:"group","aria-label":a,"data-sides":d?"each":"pairs",className:"grid min-w-0 grid-cols-2 gap-2",children:/* @__PURE__ */n(o,d?{children:[b(["left"],c.sides.left,N.left),b(["top"],c.sides.top,N.top),b(["right"],c.sides.right,N.right),b(["bottom"],c.sides.bottom,N.bottom)]}:{children:[b(["left","right"],c.horizontal,N.horizontal),b(["top","bottom"],c.vertical,N.vertical)]})})}function p({each:e,onChange:r,label:n,disabled:o}){/* @__PURE__ */
|
|
4
4
|
return t(i,{content:n,children:/* @__PURE__ */t(a,{size:"sm","aria-label":n,"aria-pressed":e,disabled:o,onClick:()=>r(!e),children:l})})}export{p as SidesEachToggle,h as SidesInput,c as sidesStartEach};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Z_LAYERS as t}from"./chunk-62LW225J.js";import{VIEWPORT_MARGIN as e,placeMenu as r,followRect as n}from"./chunk-
|
|
1
|
+
import{Z_LAYERS as t}from"./chunk-62LW225J.js";import{VIEWPORT_MARGIN as e,placeMenu as r,followRect as n}from"./chunk-GLUJS42B.js";import{useHydrated as o,useBrowserLayoutEffect as i}from"./chunk-D65T4H6J.js";import{solidSurfaceStyle as s}from"./chunk-DTJRIWFR.js";import{useRef as c,useCallback as a,useEffect as u}from"react";import{createPortal as d}from"react-dom";import{jsx as l}from"react/jsx-runtime";var f=()=>({left:0,top:0,right:window.innerWidth,bottom:window.innerHeight});function p({anchor:p,bounds:m,side:h="top",align:b="start","aria-label":g,children:x,className:w=""}){const v=o(),j=c(null),W=c(p);W.current=p;const k=c(m);k.current=m;const y=a(()=>{const t=j.current,n=W.current();if(!t||!n)return;const o=(k.current??f)(),i=t.style;i.maxWidth=`${Math.max(0,o.right-o.left-2*e)}px`;const s=r({trigger:n,menu:{width:t.offsetWidth,height:t.offsetHeight},bounds:o,align:b,side:h});i.left=`${s.left}px`,i.top=`${s.top}px`,t.dataset.side=s.side},[b,h]);i(()=>{v&&y()}),u(()=>{if(!v)return;const t=n(()=>W.current(),y),e=j.current;if(!e||"undefined"==typeof ResizeObserver)return t;const r=new ResizeObserver(()=>y());return r.observe(e),()=>{t(),r.disconnect()}},[v,y]);return v&&p()?d(
|
|
2
2
|
/* @__PURE__ */l("div",{ref:j,role:"group","aria-label":g,"data-floating-bar":"",onMouseDown:t=>{const e=t.target;e?.closest?.('input, textarea, select, [contenteditable]:not([contenteditable="false"])')||t.preventDefault()},className:`fixed rounded-(--radius-popup) p-1 ${w}`.trim(),style:{...s(),position:"fixed",left:0,top:0,zIndex:t.popup},children:x}),document.body):null}export{p as FloatingBar};
|