@tap-payments/os-micro-frontend-shared 0.3.56 → 0.3.58

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 (46) hide show
  1. package/build/_chunks/{chunk-GDR75C5K.js → chunk-DJ6OCTOY.js} +1 -1
  2. package/build/_chunks/chunk-TT3UCICE.js +2 -0
  3. package/build/components/Amount/index.js +1 -1
  4. package/build/components/AmountConversionFilter/index.js +1 -1
  5. package/build/components/AmountInput/index.js +1 -1
  6. package/build/components/AmountSlider/index.js +1 -1
  7. package/build/components/AppServices/index.js +1 -1
  8. package/build/components/AppServicesBar/index.js +1 -1
  9. package/build/components/BrandLogo/index.js +1 -1
  10. package/build/components/ColumnViews/index.js +1 -1
  11. package/build/components/CopyImage/index.js +1 -1
  12. package/build/components/CountryFilter/index.js +1 -1
  13. package/build/components/CurrencyFilter/index.js +1 -1
  14. package/build/components/Customer/index.js +1 -1
  15. package/build/components/DateFilter/index.js +1 -1
  16. package/build/components/Discount/index.js +1 -1
  17. package/build/components/ExpandableSideBar/index.js +1 -1
  18. package/build/components/FileInputPreview/index.js +1 -1
  19. package/build/components/FilterDropdown/index.js +1 -1
  20. package/build/components/Filters/index.js +1 -1
  21. package/build/components/LanguageDropdown/index.js +1 -1
  22. package/build/components/ListColumnFilter/index.js +1 -1
  23. package/build/components/ListHeader/index.js +1 -1
  24. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  25. package/build/components/MerchantLogo/index.js +1 -1
  26. package/build/components/MerchantsDropdown/index.js +1 -1
  27. package/build/components/PartnersFilter/index.js +1 -1
  28. package/build/components/PaymentSourceFilter/index.js +1 -1
  29. package/build/components/PhoneFilter/index.js +1 -1
  30. package/build/components/RFH/index.js +1 -1
  31. package/build/components/ReceiptsViewer/index.js +1 -1
  32. package/build/components/ReferenceTypeFilter/index.js +1 -1
  33. package/build/components/StatusFilter/index.js +1 -1
  34. package/build/components/TableCells/CustomCells/LinkCell/style.d.ts +5 -0
  35. package/build/components/TableCells/index.js +1 -1
  36. package/build/components/TableReports/index.js +1 -1
  37. package/build/components/TreeDropdown/index.js +1 -1
  38. package/build/components/VAT/index.js +1 -1
  39. package/build/components/VerificationIcon/index.js +1 -1
  40. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  41. package/build/components/Widget/ListItem.d.ts +1 -1
  42. package/build/components/WindowSideBar/index.js +1 -1
  43. package/build/components/index.js +1 -1
  44. package/build/index.js +1 -1
  45. package/package.json +1 -1
  46. package/build/_chunks/chunk-YPPXOTJE.js +0 -2
@@ -1,4 +1,4 @@
1
- import {a as a$6}from'./chunk-LS7ELVWB.js';import {a,b,f,d,c as c$1,h,i,e}from'./chunk-YUB5MXT2.js';import {a as a$3}from'./chunk-XKCSA6ZC.js';import {c,b as b$1,g}from'./chunk-JKIQHCF3.js';import {a as a$7}from'./chunk-DWTFNB6C.js';import {a as a$4}from'./chunk-LFJSRNNU.js';import {a as a$5,b as b$2}from'./chunk-MUR4ILTY.js';import {a as a$2}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-BEWD3FQJ.js';import {b as b$3}from'./chunk-5QWUGEEG.js';import {Jc}from'./chunk-N73P5PIQ.js';import {Nc,A}from'./chunk-ARL3R4Y2.js';import*as se from'react';import se__default,{useId,useState,useEffect,useMemo,useRef,useCallback}from'react';import {useFormContext,Controller,FormProvider,useForm}from'react-hook-form';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import oe from'@mui/material/Box';import xt from'@mui/material/Button';import yt from'@mui/material/Input';import ao from'@mui/material/ListSubheader';import lo from'@mui/material/MenuItem';import {keyframes,styled}from'@mui/material/styles';import Pt from'@mui/material/Popper';import Mt from'@mui/material/TextField';function ct({onSubmit:e,methods:t,children:o}){let r=Jc(useId(),"default-form");return jsx(FormProvider,{...t,children:jsx("form",{id:r,"data-testid":"DefaultForm",onSubmit:e,noValidate:true,children:o})})}var pt=se__default.memo(ct);var Qe=se.forwardRef(({name:e,helperText:t,hideArrows:o,feedback:r,...n},i)=>{let{control:s}=useFormContext();return jsx(Controller,{name:e,control:s,defaultValue:n.defaultValue,render:({field:d,fieldState:u})=>jsx(a,{...n,...d,ref:i,hasError:!!u.error,helperText:t??u.error?.message,feedback:r,hideArrows:o,onChange:m=>{d.onChange(m),n.onChange?.(m);},onWheel:m=>{m.target instanceof HTMLElement&&m.target.blur();}})})});Qe.displayName="RFHFormInput";var Xe=se.memo(Qe);var dt=Xe;function eo({phoneName:e,countries:t,countryName:o,helperText:r,isCountriesLoading:n,disabled:i,feedback:s,...d}){let{control:u,watch:m,setValue:f}=useFormContext(),F=m(o),S=x=>{f(o,x);};return jsx(Controller,{name:e,control:u,render:({field:{onChange:x,value:l},fieldState:a})=>jsx(h,{...d,phoneValue:l,countries:t,hasError:!!a.error,helperText:r??a.error?.message,feedback:s,onPhoneChange:h=>{x(h);},disabled:i,countryValue:F,onCountryChange:S,isCountriesLoading:n})})}eo.displayName="RFHPhoneInput";var oo=eo;var ft=oo;var Ce=(e,t)=>e.toFixed(t);function no({amountName:e,currencies:t,currencyName:o,helperText:r,isCurrenciesLoading:n,...i$1}){let{control:s,watch:d,setValue:u}=useFormContext(),m=d(o),f=d(e),F=S=>{u(o,S),u(e,Ce(Number(f),S?.decimals||2));};return jsx(Controller,{name:e,control:s,render:({field:{onChange:S,value:x},fieldState:l})=>jsx(i,{...i$1,amountValue:x??"",currencies:t,hasError:!!l.error,helperText:r??l.error?.message,onAmountChange:a=>{S(a);},onAmountBlur:a=>{S(Ce(Number(a),m?.decimals||2));},currencyValue:m,onCurrencyChange:F,isCurrenciesLoading:n})})}no.displayName="RFHAmountInput";var ro=no;var bt=ro;var Ct=keyframes`
1
+ import {a as a$6}from'./chunk-LS7ELVWB.js';import {a,b,f,d,c as c$1,h,i,e}from'./chunk-YUB5MXT2.js';import {a as a$3}from'./chunk-XKCSA6ZC.js';import {c,b as b$1,g}from'./chunk-JKIQHCF3.js';import {a as a$7}from'./chunk-DWTFNB6C.js';import {a as a$4}from'./chunk-LFJSRNNU.js';import {a as a$5,b as b$2}from'./chunk-MUR4ILTY.js';import {b as b$3}from'./chunk-5QWUGEEG.js';import {a as a$2}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-BEWD3FQJ.js';import {Jc}from'./chunk-N73P5PIQ.js';import {Nc,A}from'./chunk-ARL3R4Y2.js';import*as se from'react';import se__default,{useId,useState,useEffect,useMemo,useRef,useCallback}from'react';import {useFormContext,Controller,FormProvider,useForm}from'react-hook-form';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import oe from'@mui/material/Box';import xt from'@mui/material/Button';import yt from'@mui/material/Input';import ao from'@mui/material/ListSubheader';import lo from'@mui/material/MenuItem';import {keyframes,styled}from'@mui/material/styles';import Pt from'@mui/material/Popper';import Mt from'@mui/material/TextField';function ct({onSubmit:e,methods:t,children:o}){let r=Jc(useId(),"default-form");return jsx(FormProvider,{...t,children:jsx("form",{id:r,"data-testid":"DefaultForm",onSubmit:e,noValidate:true,children:o})})}var pt=se__default.memo(ct);var Qe=se.forwardRef(({name:e,helperText:t,hideArrows:o,feedback:r,...n},i)=>{let{control:s}=useFormContext();return jsx(Controller,{name:e,control:s,defaultValue:n.defaultValue,render:({field:d,fieldState:u})=>jsx(a,{...n,...d,ref:i,hasError:!!u.error,helperText:t??u.error?.message,feedback:r,hideArrows:o,onChange:m=>{d.onChange(m),n.onChange?.(m);},onWheel:m=>{m.target instanceof HTMLElement&&m.target.blur();}})})});Qe.displayName="RFHFormInput";var Xe=se.memo(Qe);var dt=Xe;function eo({phoneName:e,countries:t,countryName:o,helperText:r,isCountriesLoading:n,disabled:i,feedback:s,...d}){let{control:u,watch:m,setValue:f}=useFormContext(),F=m(o),S=x=>{f(o,x);};return jsx(Controller,{name:e,control:u,render:({field:{onChange:x,value:l},fieldState:a})=>jsx(h,{...d,phoneValue:l,countries:t,hasError:!!a.error,helperText:r??a.error?.message,feedback:s,onPhoneChange:h=>{x(h);},disabled:i,countryValue:F,onCountryChange:S,isCountriesLoading:n})})}eo.displayName="RFHPhoneInput";var oo=eo;var ft=oo;var Ce=(e,t)=>e.toFixed(t);function no({amountName:e,currencies:t,currencyName:o,helperText:r,isCurrenciesLoading:n,...i$1}){let{control:s,watch:d,setValue:u}=useFormContext(),m=d(o),f=d(e),F=S=>{u(o,S),u(e,Ce(Number(f),S?.decimals||2));};return jsx(Controller,{name:e,control:s,render:({field:{onChange:S,value:x},fieldState:l})=>jsx(i,{...i$1,amountValue:x??"",currencies:t,hasError:!!l.error,helperText:r??l.error?.message,onAmountChange:a=>{S(a);},onAmountBlur:a=>{S(Ce(Number(a),m?.decimals||2));},currencyValue:m,onCurrencyChange:F,isCurrenciesLoading:n})})}no.displayName="RFHAmountInput";var ro=no;var bt=ro;var Ct=keyframes`
2
2
  0% {
3
3
  transform: rotate(-90deg);
4
4
  }