@tap-payments/os-micro-frontend-shared 0.3.225-test.1 → 0.3.225-test.3
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/build/_chunks/{chunk-X2II7JE5.js → chunk-3W47T3UN.js} +1 -1
- package/build/_chunks/{chunk-6F3QB4JU.js → chunk-7CIY46DU.js} +1 -1
- package/build/_chunks/{chunk-N66BWDVD.js → chunk-GYNSTPMG.js} +1 -1
- package/build/_chunks/{chunk-Q5OCFXN2.js → chunk-HDJFARJY.js} +1 -1
- package/build/_chunks/{chunk-F3XZRUZT.js → chunk-JX7NBVRX.js} +1 -1
- package/build/_chunks/chunk-MZTBBFA7.js +1 -0
- package/build/_chunks/{chunk-TVYCS6E2.js → chunk-QEL46FXD.js} +1 -1
- package/build/_chunks/{chunk-C74ERGXF.js → chunk-R5Q7KZLL.js} +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FileDropbox/index.js +1 -1
- package/build/components/FileDropbox/type.d.ts +2 -2
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/FormSelect/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MultiSelect/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/index.js +1 -1
- package/package.json +2 -2
- package/build/_chunks/chunk-WQ45I4RF.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b,k,a,g,e,d,c,f,i,h as h$1,j}from'./chunk-ZFIY23WW.js';import {
|
|
1
|
+
import {b,k,a,g,e,d,c,f,i,h as h$1,j}from'./chunk-ZFIY23WW.js';import {b as b$1}from'./chunk-MUR4ILTY.js';import {h}from'./chunk-6QHZAVV2.js';import {A}from'./chunk-V2RLDP5A.js';import {useState,useMemo}from'react';import {useFormContext,Controller}from'react-hook-form';import {jsx,jsxs}from'react/jsx-runtime';function G({name:J,helperText:N,getOptionValue:l,getOptionLabel:o,renderOption:y,isOptionEqualToValue:f$1,getOptionDisabled:h$2,menuSearchable:d$1=false,menuSearchPlaceholder:M="Search",showCheckbox:Q=true,menuHasSelectionSummary:T=false,valueOnly:C=false,options:c$1,isLoading:b$2,...u}){let{control:X}=useFormContext(),[s,Y]=useState(""),p=t=>(l?l(t):t?.id)??"",Z=t=>!C||!t?.length?t??[]:t.map(n=>c$1?.find(a=>p(a)===n)).filter(Boolean),_=t=>t?.map(p)??[],j$1=useMemo(()=>{if(!d$1||!s.trim())return c$1??[];let t=s.toLowerCase().trim();return (c$1??[]).filter(n=>{let a=(o?o(n):n?.label)??"";return String(a).toLowerCase().includes(t)})},[c$1,d$1,s,o]);return jsx(Controller,{name:J,control:X,defaultValue:[],render:({field:t,fieldState:n})=>{let a$1=Array.isArray(t.value)?t.value.filter(e=>e!=null).length:0,V=T&&a$1>0,g$1=Z(t.value);return jsxs(h,{...u,isLoading:b$2,...t,options:c$1??[],value:g$1,getOptionLabel:o,hasError:!!n.error,helperText:N??n.error?.message,onChange:e=>t.onChange(C?_(e):e),MenuProps:{...u.MenuProps,autoFocus:false,disableEnforceFocus:true},children:[d$1&&jsx(b,{disableSticky:true,children:jsx(k,{placeholder:M,value:s,onChange:e=>Y(e.target.value),onKeyDown:e=>e.stopPropagation(),onKeyUp:e=>e.stopPropagation(),disableUnderline:true,fullWidth:true,inputProps:{"aria-label":M},endAdornment:b$2?jsx(a,{"aria-hidden":true,children:jsx(b$1,{})}):jsx(g,{src:A,alt:"search"})})}),V&&jsx(e,{disableSticky:true,children:jsxs(d,{children:[jsxs(c,{children:[a$1," selected"]}),jsx(f,{type:"button",variant:"text",disableRipple:true,"aria-label":"Clear all selected options",onMouseDown:e=>{e.preventDefault(),e.stopPropagation();},onClick:e=>{e.preventDefault(),e.stopPropagation(),u.onClear?u.onClear():t.onChange([]);},children:"Clear"})]})}),j$1?.map((e,O)=>{let m=g$1?.some(S=>{if(S==null)return false;if(f$1)return f$1(e,S);if(l){let R=l(e),v=l(S);return R===v||String(R)===String(v)}let I=e?.id,x=S?.id;return I===x||String(I)===String(x)}),P=h$2?h$2(e):false,ee=o?o(e):e.label,w=y?y(e):ee;return jsx(i,{value:(l?l(e):e?.id)??"",disabled:P,$selected:m,children:Q?jsxs(h$1,{children:[jsx(j,{checked:m,$mutedRect:m&&P}),w]}):w},`${O}-${(l?l(e):e?.id)??""}`)})]})}})}export{G as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b,k}from'./chunk-ZFIY23WW.js';import {a as a$
|
|
1
|
+
import {b,k}from'./chunk-ZFIY23WW.js';import {a as a$2}from'./chunk-Q7CRGZ2S.js';import {a as a$3,b as b$1}from'./chunk-MUR4ILTY.js';import {a as a$1}from'./chunk-CUN74BRZ.js';import {a,g,e}from'./chunk-6QHZAVV2.js';import {aa,ba}from'./chunk-EQWBC5CH.js';import {Bc,Dc}from'./chunk-J3ZBLABV.js';import {Pc}from'./chunk-V2RLDP5A.js';import mo,{useState,useEffect,useMemo,useRef,useCallback,useId}from'react';import {useFormContext,Controller}from'react-hook-form';import Pe from'@mui/material/Box';import Ie from'@mui/material/MenuItem';import lo from'@mui/material/Popper';import io from'@mui/material/TextField';import {keyframes,styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var so=keyframes`
|
|
2
2
|
0% {
|
|
3
3
|
transform: rotate(-90deg);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-
|
|
1
|
+
import'./chunk-R5Q7KZLL.js';import {P,O as O$1}from'./chunk-EQWBC5CH.js';import {Bc}from'./chunk-J3ZBLABV.js';import {memo,useId,useState,useEffect}from'react';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var f="32px";var g=styled(p,{shouldForwardProp:e=>e!=="isMaximized"})(({theme:e,isMaximized:i})=>({background:alpha(e.palette.common.white,.7),backdropFilter:"blur(8px)",width:183,position:"sticky",padding:"16px 8px",paddingTop:i?f:"16px",height:"100%",overflow:"auto"})),b=styled(p)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),S=styled(p,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:i})=>({background:i?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:i?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600})),h=styled(p,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:i})=>({background:i?"#FFFFFF":"transparent",borderRadius:"4px",padding:"4px 8px",color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600})),B=styled(P)(({theme:e})=>({background:"transparent",border:"none !important",borderRadius:"4px !important",[`& .${O$1.summary}`]:{padding:0,paddingRight:e.spacing(1),minHeight:"40px",height:"40px","&.Mui-expanded":{minHeight:"40px",height:"40px"},marginBottom:4,borderRadius:"4px !important"},[`& .${O$1.content}`]:{borderTop:"none",padding:0}}));function w({sections:e,isMaximized:i,onClick:m,activeSection:A,activeSubSection:k}){let I=Bc(useId(),"expandable-side-bar"),r=A||e?.[0]?.id,F=k||e?.[0]?.subSections?.[0]?.id,[C,c]=useState({});return useEffect(()=>{e?.length&&c(t=>{let o=false,d={...t};for(let x of e)x.id in d||(d[x.id]=r===x.id,o=true);return o?d:t});},[e,r]),useEffect(()=>{r&&c(t=>({...t,[r]:true}));},[r]),jsx(g,{isMaximized:i,id:I,"data-testid":"ExpandableSideBar",children:jsx(b,{children:e?.map(t=>jsx(B,{expanded:C[t.id]??false,onChange:o=>c(d=>({...d,[t.id]:o})),slotProps:{root:{component:"section"}},label:jsx(h,{onClick:()=>{m?.(t.id,t.subSections?.[0]?.id);},isActive:r===t.id,children:t.title}),content:jsx(Fragment,{children:t.subSections?.map(o=>jsx(S,{onClick:()=>{m?.(t.id,o.id);},isActive:F===o.id,children:o.title},`${t.id}-${o.id}`))})},`${t.id}`))})})}var E=memo(w);var O=E;export{O as a};
|