@tap-payments/os-micro-frontend-shared 0.3.254 → 0.3.256

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/build/_chunks/{chunk-DYQCOTHJ.js → chunk-5RPLYU74.js} +1 -1
  2. package/build/_chunks/chunk-6PLO2VOU.js +1 -0
  3. package/build/_chunks/{chunk-RGKJLODO.js → chunk-6WVAYA6W.js} +1 -1
  4. package/build/_chunks/chunk-7GJMLJ2X.js +1 -0
  5. package/build/_chunks/{chunk-7334DRAA.js → chunk-DFH5QS2C.js} +1 -1
  6. package/build/_chunks/{chunk-YLRNRXRM.js → chunk-DRWSBTEH.js} +1 -1
  7. package/build/_chunks/{chunk-WHGEKLCO.js → chunk-LNEWGSQE.js} +1 -1
  8. package/build/_chunks/{chunk-IKIW6OQ5.js → chunk-MVWBQNBX.js} +1 -1
  9. package/build/_chunks/chunk-REMAOTWV.js +2 -0
  10. package/build/_chunks/chunk-VTFUWYYT.js +1 -0
  11. package/build/_chunks/{chunk-LQ33YPRK.js → chunk-YAO5SBRE.js} +1 -1
  12. package/build/_chunks/chunk-YLVW27RP.js +2 -0
  13. package/build/components/AppServices/index.js +1 -1
  14. package/build/components/AppServicesBar/index.js +1 -1
  15. package/build/components/AppWindowWrapper/AppWindow/AppWindow.d.ts +2 -1
  16. package/build/components/AppWindowWrapper/AppWindowWrapper.d.ts +1 -1
  17. package/build/components/AppWindowWrapper/index.js +1 -1
  18. package/build/components/AppWindowWrapper/type.d.ts +0 -6
  19. package/build/components/ColumnViews/index.js +1 -1
  20. package/build/components/DateFilter/index.js +1 -1
  21. package/build/components/FilterChip/FilterChip.d.ts +4 -0
  22. package/build/components/FilterChip/constants.d.ts +15 -0
  23. package/build/components/FilterChip/icons.d.ts +4 -0
  24. package/build/components/FilterChip/index.d.ts +4 -0
  25. package/build/components/FilterChip/index.js +1 -0
  26. package/build/components/FilterChip/style.d.ts +8 -0
  27. package/build/components/FilterChip/type.d.ts +43 -0
  28. package/build/components/FilterDropdown/index.js +1 -1
  29. package/build/components/JSONViewer/index.js +1 -1
  30. package/build/components/ListColumnFilter/index.js +1 -1
  31. package/build/components/ListHeader/index.js +1 -1
  32. package/build/components/ListHeader/types.d.ts +0 -2
  33. package/build/components/PaymentSourceFilter/index.js +1 -1
  34. package/build/components/PhoneFilter/index.js +1 -1
  35. package/build/components/RangeCalender/index.js +1 -1
  36. package/build/components/ReferenceTypeFilter/index.js +1 -1
  37. package/build/components/SearchButton/SearchButton.d.ts +7 -2
  38. package/build/components/SearchButton/index.d.ts +2 -3
  39. package/build/components/SearchButton/index.js +1 -1
  40. package/build/components/SearchButton/{style.d.ts → styles.d.ts} +173 -173
  41. package/build/components/StatusBar/index.js +1 -1
  42. package/build/components/StatusButton/index.js +1 -1
  43. package/build/components/StatusFilter/index.js +1 -1
  44. package/build/components/StatusIcons/index.js +1 -1
  45. package/build/components/TableCells/index.js +1 -1
  46. package/build/components/TableReports/index.js +1 -1
  47. package/build/components/TreeDropdown/index.js +1 -1
  48. package/build/components/VerificationIcon/index.js +1 -1
  49. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  50. package/build/components/VirtualTables/index.js +1 -1
  51. package/build/components/Widget/index.js +1 -1
  52. package/build/components/index.d.ts +2 -2
  53. package/build/components/index.js +1 -1
  54. package/build/datetime/components/index.js +1 -1
  55. package/build/index.js +1 -1
  56. package/package.json +2 -2
  57. package/build/_chunks/chunk-4NINOW63.js +0 -2
  58. package/build/_chunks/chunk-BRCNFB3B.js +0 -1
  59. package/build/_chunks/chunk-HGDT6YZH.js +0 -1
  60. package/build/_chunks/chunk-HLGWZAIE.js +0 -2
  61. package/build/_chunks/chunk-JCEHXR4N.js +0 -1
  62. package/build/_chunks/chunk-WUBVGS4H.js +0 -1
  63. package/build/components/ActiveFilterChip/ActiveFilterChip.d.ts +0 -5
  64. package/build/components/ActiveFilterChip/index.d.ts +0 -3
  65. package/build/components/ActiveFilterChip/index.js +0 -1
  66. package/build/components/ActiveFilterChip/styles.d.ts +0 -8
  67. package/build/components/ActiveFilterChip/types.d.ts +0 -7
  68. package/build/components/AppWindowWrapper/AppWindow/nestingContext.d.ts +0 -3
  69. package/build/components/SearchButton/constants.d.ts +0 -37
  70. package/build/components/SearchButton/icons.d.ts +0 -3
  71. package/build/components/SearchButton/type.d.ts +0 -28
@@ -1 +0,0 @@
1
- import {c,d}from'./chunk-4FOFVTQ2.js';import {a,c as c$1,d as d$1}from'./chunk-DRBZWQC7.js';import {b,a as a$1}from'./chunk-JLL4EOYJ.js';import {Bc,xa}from'./chunk-CZWXKHO7.js';import {Hf}from'./chunk-2GSUGMI7.js';import {createContext,memo,forwardRef,useRef,useState,useId,useCallback,useMemo,useContext,useLayoutEffect}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {Dialog,styled,Box,Button,alpha}from'@mui/material';import wt from'@mui/material/Box';import {Resizable}from're-resizable';import Wt from'react-draggable';import {motion}from'framer-motion';var Q=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,viewportWidth:0,viewportHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{},containerRef:{current:null}});var we=(e,t)=>t.toLowerCase().includes(e);function be(e,t,n){let i=we("top",t),o=we("left",t);return !i&&!o?null:{x:o?e.x+n.width:e.x,y:i?e.y-n.height:e.y}}var We=e=>{let{viewportWidth:t,viewportHeight:n,viewerDefaultWidth:i,viewerDefaultHeight:o,initialPosition:p,isMaximized:l,containerRef:r}=e,d=!l&&r?.current&&r.current!==document.body?r.current:null,u=d?.getBoundingClientRect(),a=u?.left??0,c=u?.top??0,m=d?.clientWidth||t,x=p?.x??t/2-i/2,h=p?.y??n/2-o/2;return {x:m-(x-a),y:h-c}};var et=555,tt=545;function ne({children:e,isOpen:t,onClose:n,defaultWindowHeight:i,defaultWindowWidth:o,initialPosition:p,minWidth:l,maxWidth:r,minHeight:d,maxHeight:u,containerRef:a,windowZIndex:c=1}){let{height:m,width:x}=a$1(),[h,O]=useState(false),k=h?null:a?.current,I=k?.clientWidth||x,y=k?.clientHeight||m,D=o||et,s=i||tt,[B,L]=useState(()=>We({viewportWidth:x,viewportHeight:m,viewerDefaultWidth:D,viewerDefaultHeight:s,initialPosition:p,isMaximized:h,containerRef:a})),[P,H]=useState(false),[F,T]=useState(false),[S,G]=useState(true),W=useRef(),[U,z]=useState({width:o??0,height:i??0}),V=useCallback(g=>{W?.current?.updateSize(g);},[]),C=useCallback(g=>{W.current?.updateSize(g),z(A=>({width:g.width??A.width,height:g.height??A.height}));},[]),j=useMemo(()=>({position:B,setPosition:L,resizableRef:W,windowZIndex:c,isOpen:t,setIsMaximized:O,setIsSidebarExpanded:G,setIsToolbarAnimationDisabled:T,setIsResized:H,isMaximized:h,isToolbarAnimationDisabled:F,isSidebarExpanded:S,isResized:P,dimensions:U,setNewDimensions:z,viewerDefaultWidth:D,viewerDefaultHeight:s,onClose:n,fullWindowWidth:I,fullWindowHeight:y,viewportWidth:x,viewportHeight:m,updateRefSize:V,updateSize:C,minWidth:l,maxWidth:r,minHeight:d,maxHeight:u,containerRef:a}),[B,L,W,t,O,G,T,H,h,F,S,P,U,z,I,y,x,m,D,s,V,C,n,l,r,d,u,a,c]);return jsx(Q.Provider,{value:j,children:e})}var ee=35;var te=createContext(null);function rt({title:e,onClose:t,onMaximize:n,maximized:i=false,id:o,onRequestClick:p,isSidebarExpanded:l=false,isHovered:r=false,onMouseHover:d$2,onMouseLeave:u,showSectionsButton:a$1,rightActions:c$2,icon:m}){return jsx(c,{id:o,"data-testid":"UserTitleBar",maximized:i||false,children:jsx(d,{onMouseEnter:d$2,onMouseLeave:u,isMaximized:i,isHovered:r,title:e,icon:m||Hf,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t},"window-close"),jsx(c$1,{isMaximized:i,onClick:n},"window-maximize"),a$1&&jsx(d$1,{onClick:p,isExpanded:!l,isHovered:r,children:"Sidebar"},"window-sections")]}),rightActions:c$2})})}var ve=memo(rt);var re=ve;function lt({isMaximized:e,setIsToolbarAnimationDisabled:t,setIsMaximized:n,onClose:i,isSidebarExpanded:o,setIsSidebarExpanded:p,isToolbarAnimationDisabled:l,title:r,showSectionsButton:d,rightActions:u,icon:a}){let{isHovered:c,onMouseEnter:m,onMouseLeave:x}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...l&&{duration:0}},children:jsx(re,{title:r||"Users",showSectionsButton:d,onClose:i,onMaximize:()=>{n?.(h=>!h),t?.(true),setTimeout(()=>{t?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{t?.(false),p(!o);},isSidebarExpanded:o,isHovered:c,onMouseHover:m,onMouseLeave:x,rightActions:u,icon:a})})}var Te=memo(lt);var Ee=Te;var gt=forwardRef(function({children:t,titleBar:n,titleBarText:i,mainAppOrder:o,mainAppIsMinimized:p,showSectionsButton:l=true,rightActions:r,titleBarIcon:d,overflow:u="hidden"},a){let c=useRef(null),[m,x]=useState(null),h=Bc(useId(),"app-window"),O=useCallback(f=>{c.current=f,x(R=>R===f?R:f),typeof a=="function"?a(f):a&&(a.current=f);},[a]),k=useMemo(()=>({current:m}),[m]),{dimensions:I,position:y,resizableRef:D,isMaximized:s,isOpen:B,onClose:L,viewerDefaultWidth:P,viewerDefaultHeight:H,windowZIndex:F,setPosition:T,setNewDimensions:S,isToolbarAnimationDisabled:G,fullWindowWidth:W,fullWindowHeight:U,viewportWidth:z,viewportHeight:V,setIsMaximized:C,setIsResized:j,isResized:g,setIsToolbarAnimationDisabled:A,setIsSidebarExpanded:Le,isSidebarExpanded:Fe,minWidth:Ge,maxWidth:Ue,minHeight:Ve,maxHeight:je,containerRef:ie}=useContext(Q),w=useMemo(()=>document.createElement("div"),[]),[Xe,qe]=useState(null);useLayoutEffect(()=>{qe(ie?.current??document.body);},[ie]);let b=s?document.body:Xe;useLayoutEffect(()=>{if(!b)return;let f=b===document.body;return w.style.position=f?"":"absolute",w.style.inset=f?"":"0",w.style.pointerEvents="none",w.style.overflow="visible",b.appendChild(w),()=>{w.parentNode===b&&b.removeChild(w);}},[b,w]);let pe=useRef({x:0,y:0}),le=xa(),Ke=useCallback((f,R,q,Ze)=>{j(true),S({width:q.offsetWidth,height:q.offsetHeight});let ue=be(pe.current,R,Ze);ue&&T(ue);},[S,j,T]),X=I.width||P;if(!b)return null;let Ye=jsx(Wt,{nodeRef:c,disabled:s,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:W/2-X/2,y:U/2-H/2},position:{x:W-y.x,y:y.y},onStop:(f,R)=>{let q=ie?.current?.clientWidth||W;T({x:q-R.x,y:R.y});},...b===document.body&&{bounds:{top:10}},children:jsx(Dialog,{ref:O,sx:{backgroundColor:"transparent",pointerEvents:"none",zIndex:Number(o||0)+F+(s?1:0),...p&&{display:"none"},...b===document.body?!s&&{transform:"translate(180px, 14px)"}:!s&&{position:"absolute"},...!s&&{width:le?X:"fit-content",height:le?H:"fit-content"},...s&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",overflow:"visible","& .MuiDialog-container":{overflow:"visible"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",pointerEvents:"auto",overflow:u,width:g?"fit-content":X,height:g?"fit-content":"100%",...s&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{C(false),A(true),setTimeout(()=>{A(false);},.5*1e3);},open:B,hideBackdrop:true,disableEnforceFocus:true,disableScrollLock:true,container:w,fullScreen:s,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{topLeft:true,topRight:true,bottomLeft:true,bottomRight:true,left:true,right:true,bottom:true,top:true},handleStyles:{bottom:{zIndex:2},bottomLeft:{zIndex:2},bottomRight:{zIndex:2}},size:{width:I.width,height:I.height},maxHeight:je??V-40,maxWidth:Ue??z,minWidth:s?"100vw":Ge??P,minHeight:s?"100vh":Ve??H,ref:f=>{D.current=f;},onResizeStart:()=>{pe.current=y,A(true);},onResizeStop:()=>{A(false);},onResize:Ke,defaultSize:{width:X,height:H},style:{background:"transparent",height:I.height,overflow:u,...s&&{height:"100% !important",width:"100% !important",flex:1},...s&&{position:"relative"}},children:jsxs(wt,{sx:{height:"100%"},id:h,"data-testid":"AppWindow",children:[n??jsx(Ee,{setIsToolbarAnimationDisabled:A,onClose:L,setIsMaximized:C,isToolbarAnimationDisabled:G,setIsSidebarExpanded:Le,isSidebarExpanded:Fe,title:i,isMaximized:s,showSectionsButton:l,rightActions:r,icon:d}),jsx(te.Provider,{value:k,children:t})]})})})});return createPortal(Ye,w)}),Me=memo(gt);var Ht=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:t})=>({background:t?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:t?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),Rt=styled(Button)(({theme:e,disabled:t})=>({background:t?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),vt=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),yt=styled(Box)(()=>({position:"fixed",height:ee,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),Tt=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var se=Me;var Pt=forwardRef(function({children:t,windowProps:n,inheritParentContainer:i=false,...o},p){let l=useContext(te),r=i?l??void 0:void 0,d=o.containerRef??r;return o.isOpen?jsx(ne,{...o,containerRef:d,children:jsx(se,{...n,ref:p,children:t})}):null}),Oe=Pt;function zt({title:e,maximized:t=false,id:n,isHovered:i=false,onMouseHover:o,onMouseLeave:p,leftActions:l,titleIconSrc:r,sx:d$1,...u}){return jsx(c,{className:"header-wrapper",id:n,maximized:t||false,sx:d$1,...u,children:jsx(d,{onMouseEnter:o,onMouseLeave:p,isMaximized:t,isHovered:i,title:e||"",icon:r,leftActions:l})})}var de=memo(zt);function _t({isMaximized:e,id:t,isToolbarAnimationDisabled:n,title:i,leftActions:o,onClose:p,onMaximize:l,sx:r}){let{isHovered:d,onMouseEnter:u,onMouseLeave:a$1}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...n&&{duration:0}},children:jsx(de,{title:i,maximized:e,id:t||"draggable-dialog-title",isHovered:d,onMouseHover:u,onMouseLeave:a$1,leftActions:o||jsxs(Fragment,{children:[jsx(a,{onClick:p}),jsx(c$1,{isMaximized:e,onClick:()=>l?.(!e)})]}),sx:r})})}var Be=memo(_t);var kt=Be;var li=Oe;export{Q as a,ne as b,ee as c,re as d,Ht as e,Rt as f,vt as g,yt as h,Tt as i,se as j,de as k,kt as l,li as m};
@@ -1,2 +0,0 @@
1
- import {h,g,a,f,e,d,c}from'./chunk-JCEHXR4N.js';import {z}from'./chunk-4Y2COEZC.js';import {Bc,Ka,g as g$1}from'./chunk-CZWXKHO7.js';import {zl,ja,Ua,Og,jl,Za,Ta,Xg,Wg,Yg,Vg,_g,Ab,zb,Ak,ik,hb,vk,B,w,A,D,Th,hk,u,Bk}from'./chunk-2GSUGMI7.js';import {memo,useId,useState,useRef,useEffect,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';function L({isActive:p,disableHover:n}){let[c,C]=useState(false),s=useTheme(),e=()=>{n||C(true);},i=()=>{C(false);},h=p?s.palette.common.white:s.palette.grey[700],u=c?s.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:u,fillOpacity:"0.1",onMouseEnter:e,onMouseLeave:i}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:h})]})})}var vt={inProgress:Bk,initiated:Bk,abandoned:u,cancelled:hk,reversed:Th,reports:D,search:A,chevronDown:w,unAuthorized:B,unSettled:vk,unCaptured:hb,captured:ik,authorized:Ak,openFlag:zb,closedFlag:Ab,unauthenticated:_g,authenticated:Vg,paidOut:Yg,scheduled:Wg,checked:Xg,dashedChecked:Ta,deactivated:Za,destination:jl,destinationReversed:Og,outstanding:Ua,active:ja,inactive:zl};var Nt=memo(p=>{let{variant:n="inActive",badgeCount:c$1,icon:C,label:s,dropdownOptions:e$1,selectedStatus:i,onButtonBodyClick:h$1,iconMapper:u=vt,buttonSx:Bt,...bt}=p,St=Bc(useId(),"status-button"),[Lt,M]=useState(0),{t:y}=useTranslation(),E=useRef(null),[x,f$1]=useState(null),[o,H]=useState(i??e$1?.[0]?.status);useEffect(()=>{i!==void 0&&H(i);},[i]);let d$1=useMemo(()=>!!e$1?.length,[e$1]),I=!!x&&Lt>1,l=n==="active",P=useMemo(()=>l?"active":"inactive",[l]),m=useMemo(()=>o?e$1?.find(t=>t.status===o):null,[o,e$1]),kt=useMemo(()=>{if(m?.icon)return jsx(h,{variant:n,children:m.icon});let t=o&&u[o]?o:C;if(t&&u[t])return jsx(g,{icon:t,variant:n,src:u[t],alt:`${t}-icon`})},[m,o,u,C,n]),wt=useMemo(()=>!c$1||Number.isNaN(Ka(c$1))?null:jsx(z,{color:P,children:g$1(Number(c$1))}),[c$1,P]),T=useMemo(()=>d$1?jsx(L,{isActive:l}):null,[d$1,l]);useEffect(()=>{l||(M(0),f$1(null));},[l]);let g$2=useCallback(()=>{f$1(null);},[]),A=useCallback(()=>{d$1&&f$1(I?null:E.current);},[d$1,I]),Mt=useCallback(t=>{t.stopPropagation(),p?.onClick?.(t),h$1?.(o||e$1?.[0]?.status||"all"),A(),M(B=>B+1);},[p,h$1,o,e$1,A]),D=useCallback(t=>B=>{t?.onClick?.(B),H(t.status),g$2();},[g$2]),yt=useMemo(()=>e$1?.map(t=>({...t,onClick:D(t)}))||[],[e$1,D]),Et=a[n],xt=useMemo(()=>m?.label||(o?y(o):s),[m,o,y,s]);return jsxs(Fragment,{children:[jsx(Et,{id:St,"data-testid":"StatusButton",...bt,ref:E,onClick:Mt,statusVariant:n,sx:{...d$1&&{paddingInlineEnd:"27px"},...Bt},children:jsxs(f,{children:[jsxs(e,{variant:n,children:[kt,xt,wt]}),T&&jsx(d,{children:T})]})}),I&&d$1&&jsx(c,{open:I,onClose:g$2,anchorEl:x,menuItems:yt})]})}),gt=Nt;var oo=gt;
2
- export{L as a,oo as b};
@@ -1 +0,0 @@
1
- import {f as f$1}from'./chunk-CK64PBMR.js';import {styled,Button,Box,alpha}from'@mui/material';var l=t=>({...t.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:t.spacing(2)}),n=styled(Button,{shouldForwardProp:t=>t!=="statusVariant"})(({theme:t,statusVariant:e})=>({...l(t),...e==="active"?{background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}}:{backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}}})),u={active:n,inActive:n};styled(Box)(({theme:t,variant:e})=>({borderRadius:"50px",backgroundColor:e==="active"?alpha(t.palette.text.primary,.1):t.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:t.spacing(.5),paddingBlock:t.spacing(.25),color:e==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"}));var m=styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"})),h=styled(f$1)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),y=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),b=styled(Box)(({variant:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",fontWeight:t==="active"?700:400})),f=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),S=styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"})),v=styled(Box)(({variant:t})=>({width:"14px",height:"14px",display:"flex",alignItems:"center","& img":{width:"14px",height:"14px",filter:t==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"}}));export{u as a,m as b,h as c,y as d,b as e,f,S as g,v as h};
@@ -1 +0,0 @@
1
- import {b}from'./chunk-JCEHXR4N.js';import {z}from'./chunk-4Y2COEZC.js';import {Bc}from'./chunk-CZWXKHO7.js';import {Qh}from'./chunk-2GSUGMI7.js';import {memo,useId}from'react';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:t=>t!=="isLongLabel"})(({theme:t,isLongLabel:e})=>({display:"flex",justifyContent:"center",alignItems:"center",padding:"6px 16px",height:"32px",background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,borderRadius:"50px",fontSize:"11px",gap:t.spacing(1),minWidth:e?"12rem":"8.4rem",marginRight:"auto",position:"relative"}));function u({ids:t,visible:e,label:o,onDismiss:c,dismissible:m=true}){let d=Bc(useId(),"active-filter-chip");return e?jsxs(a,{id:d,"data-testid":"ActiveFilterChip",isLongLabel:(o?.length??0)>11,children:[o?jsx(b,{children:o}):jsx("span",{children:t?.join(",")}),m&&jsx(z,{pointer:true,round:true,onClick:c,color:"active",sx:{position:"absolute",right:"8px"},children:jsx("img",{src:Qh,alt:"close",style:{width:"8px",height:"7px"}})})]}):null}var s=memo(u);var S=s;export{S as a};
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ActiveFilterChipProps } from './types';
3
- declare function ActiveFilterChip({ ids, visible, label, onDismiss, dismissible }: ActiveFilterChipProps): import("react").JSX.Element | null;
4
- declare const _default: import("react").MemoExoticComponent<typeof ActiveFilterChip>;
5
- export default _default;
@@ -1,3 +0,0 @@
1
- import ActiveFilterChip from './ActiveFilterChip';
2
- export type { ActiveFilterChipProps } from './types';
3
- export default ActiveFilterChip;
@@ -1 +0,0 @@
1
- export{a as default}from'../../_chunks/chunk-WUBVGS4H.js';import'../../_chunks/chunk-JCEHXR4N.js';import'../../_chunks/chunk-CK64PBMR.js';import'../../_chunks/chunk-4Y2COEZC.js';import'../../_chunks/chunk-CZWXKHO7.js';import'../../_chunks/chunk-2GSUGMI7.js';import'../../_chunks/chunk-ZDBICST5.js';
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- interface ActiveFilterChipContainerProps {
3
- isLongLabel: boolean;
4
- }
5
- export declare const ActiveFilterChipContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & ActiveFilterChipContainerProps, {}, {}>;
8
- export {};
@@ -1,7 +0,0 @@
1
- export type ActiveFilterChipProps = {
2
- ids?: string[];
3
- visible: boolean;
4
- dismissible?: boolean;
5
- label?: string;
6
- onDismiss?: () => void;
7
- };
@@ -1,3 +0,0 @@
1
- import { type RefObject } from 'react';
2
- /** Root node of the enclosing AppWindow, used as the default `containerRef` for nested windows. */
3
- export declare const AppWindowParentContext: import("react").Context<RefObject<HTMLDivElement> | null>;
@@ -1,37 +0,0 @@
1
- export declare const searchButtonClassNamePrefix: "os-shared-SearchButton";
2
- export declare const searchButtonClassNames: {
3
- readonly root: "os-shared-SearchButton-root";
4
- readonly field: "os-shared-SearchButton-field";
5
- readonly clear: "os-shared-SearchButton-clear";
6
- readonly clearIcon: "os-shared-SearchButton-clearIcon";
7
- readonly trigger: "os-shared-SearchButton-trigger";
8
- readonly triggerActive: "os-shared-SearchButton-triggerActive";
9
- };
10
- /** Search icon box (px). */
11
- export declare const SEARCH_BUTTON_ICON_SIZE = 12;
12
- /** Trigger width (px). Matches the old search control. */
13
- export declare const SEARCH_BUTTON_TRIGGER_WIDTH = 30;
14
- /** Trigger height (px). Matches the old search control. */
15
- export declare const SEARCH_BUTTON_TRIGGER_HEIGHT = 32;
16
- /** Collapsed field width (px). Framer animates from this to the expanded width. */
17
- export declare const SEARCH_BUTTON_FIELD_WIDTH_COLLAPSED = 30;
18
- /** Expanded field width (px). */
19
- export declare const SEARCH_BUTTON_FIELD_WIDTH_EXPANDED = 200;
20
- /** Field width / border transition. */
21
- export declare const SEARCH_BUTTON_FIELD_TRANSITION: {
22
- readonly duration: 0.18;
23
- readonly ease: "easeInOut";
24
- };
25
- /** Clear-icon fade while the field collapses. */
26
- export declare const SEARCH_BUTTON_CLEAR_EXIT_TRANSITION: {
27
- readonly duration: 0.05;
28
- readonly ease: "easeIn";
29
- };
30
- /** Root stacking order, under the field and the trigger. */
31
- export declare const SEARCH_BUTTON_ROOT_Z_INDEX = 3;
32
- /** Field stacking order, under the clear icon and the trigger. */
33
- export declare const SEARCH_BUTTON_FIELD_Z_INDEX = 10;
34
- /** Clear icon and trigger stacking order. */
35
- export declare const SEARCH_BUTTON_OVERLAY_Z_INDEX = 11;
36
- /** Clear icon offset from the root's trailing edge (px). Passed to `theme.v2.spacing`. */
37
- export declare const SEARCH_BUTTON_CLEAR_OFFSET = 48;
@@ -1,3 +0,0 @@
1
- import type { SVGProps } from 'react';
2
- export declare const SearchButtonSearchIcon: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
3
- export declare const SearchButtonClearIcon: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
@@ -1,28 +0,0 @@
1
- import type { SxProps, Theme } from '@mui/material/styles';
2
- import type { searchButtonClassNames } from './constants';
3
- export type SearchButtonClassNames = (typeof searchButtonClassNames)[keyof typeof searchButtonClassNames];
4
- /**
5
- * Collapsible search trigger. `className` and `sx` land on the root.
6
- * `ref` lands on the root. Pass `id` explicitly — no id is generated.
7
- * The optional DOM `id` also becomes the `data-testid` when passed.
8
- */
9
- export interface SearchButtonProps {
10
- id?: string;
11
- className?: string;
12
- sx?: SxProps<Theme>;
13
- /** Disables the trigger. */
14
- disabled?: boolean;
15
- /** Native tooltip on the trigger. */
16
- title?: string;
17
- /** Accessible name for the trigger. Defaults to "Search". */
18
- 'aria-label'?: string;
19
- /** Fired with the current text on Enter, on the trigger click when the text is non-empty, and with `''` when cleared. */
20
- onSearchChange?: (value: string) => void;
21
- /** Already-translated placeholder. Falls back to the translated "search" label when omitted. */
22
- placeholder?: string;
23
- /**
24
- * Restored keyword. The field opens when this is non-empty and follows later changes.
25
- * A change here does not focus the field.
26
- */
27
- defaultValue?: string;
28
- }