@tap-payments/os-micro-frontend-shared 0.3.228 → 0.3.230-test.5

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 (56) hide show
  1. package/build/_chunks/chunk-25F6BZSN.js +2 -0
  2. package/build/_chunks/chunk-4QF66SHZ.js +1 -0
  3. package/build/_chunks/{chunk-DBFH6OKQ.js → chunk-ACYZKBPV.js} +1 -1
  4. package/build/_chunks/{chunk-UTT6RR33.js → chunk-OESHN6RF.js} +1 -1
  5. package/build/_chunks/chunk-SLTHBZMK.js +1 -0
  6. package/build/_chunks/chunk-TJMTDLBH.js +1 -0
  7. package/build/components/Alert/Alert.d.ts +4 -0
  8. package/build/components/Alert/constants.d.ts +26 -0
  9. package/build/components/Alert/icons.d.ts +8 -0
  10. package/build/components/Alert/index.d.ts +3 -0
  11. package/build/components/Alert/index.js +1 -0
  12. package/build/components/Alert/style.d.ts +11 -0
  13. package/build/components/Alert/type.d.ts +19 -0
  14. package/build/components/AppServices/index.js +1 -1
  15. package/build/components/AppServicesBar/index.js +1 -1
  16. package/build/components/BrandLogo/index.js +1 -1
  17. package/build/components/ColumnViews/index.js +1 -1
  18. package/build/components/CurrencyAmount/index.js +1 -1
  19. package/build/components/CurrencyAmount/style.d.ts +6 -0
  20. package/build/components/DateFilter/index.js +1 -1
  21. package/build/components/ErrorToast/ErrorToast.d.ts +3 -3
  22. package/build/components/ErrorToast/constants.d.ts +6 -0
  23. package/build/components/ErrorToast/index.d.ts +3 -2
  24. package/build/components/ErrorToast/index.js +1 -1
  25. package/build/components/ErrorToast/style.d.ts +2 -5
  26. package/build/components/ErrorToast/type.d.ts +10 -2
  27. package/build/components/FileInputPreview/index.js +1 -1
  28. package/build/components/FilterDropdown/index.js +1 -1
  29. package/build/components/FormSelect/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/MerchantLogo/index.js +1 -1
  33. package/build/components/MultiSelect/index.js +1 -1
  34. package/build/components/PaymentSourceFilter/index.js +1 -1
  35. package/build/components/PhoneFilter/index.js +1 -1
  36. package/build/components/RangeCalender/index.js +1 -1
  37. package/build/components/ReferenceTypeFilter/index.js +1 -1
  38. package/build/components/StatusFilter/index.js +1 -1
  39. package/build/components/StatusIcons/index.js +1 -1
  40. package/build/components/TableCells/index.js +1 -1
  41. package/build/components/TableReports/index.js +1 -1
  42. package/build/components/VerificationIcon/index.js +1 -1
  43. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  44. package/build/components/WindowSideBar/index.js +1 -1
  45. package/build/components/index.d.ts +5 -1
  46. package/build/components/index.js +1 -1
  47. package/build/index.js +1 -1
  48. package/package.json +2 -2
  49. package/build/_chunks/chunk-5DLQTR4L.js +0 -1
  50. package/build/_chunks/chunk-HKQY74IJ.js +0 -1
  51. package/build/_chunks/chunk-MFFVCCTZ.js +0 -1
  52. package/build/_chunks/chunk-W4PURLBP.js +0 -1
  53. package/build/components/Error/Error.d.ts +0 -8
  54. package/build/components/Error/index.d.ts +0 -2
  55. package/build/components/Error/index.js +0 -1
  56. package/build/components/Error/style.d.ts +0 -4
@@ -0,0 +1,2 @@
1
+ import {j}from'./chunk-TIO3V7XA.js';import {lc}from'./chunk-4XXNGLS6.js';import {forwardRef,memo}from'react';import {jsxs,jsx}from'react/jsx-runtime';import S from'@mui/material/Box';import {styled}from'@mui/material/styles';var l="os-shared-Alert",r={root:`${l}-root`,icon:`${l}-icon`,message:`${l}-message`},p={error:e=>({color:e.v2.palette.error[500],background:e.v2.palette.status.danger.subtle}),warning:e=>({color:e.v2.palette.warning[500],background:e.v2.palette.status.warning.subtle}),success:e=>({color:e.v2.palette.success[700],background:e.v2.palette.status.success.subtle}),info:e=>({color:e.v2.palette.brand[500],background:e.v2.palette.interactive.primary.subtle})};var C=()=>jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:"currentColor"})}),d=()=>jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:"currentColor"})}),m=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});var g=styled(S,{shouldForwardProp:e=>e!=="$severity"})(({theme:e,$severity:s})=>({...p[s](e),display:"flex",alignItems:"center",gap:e.v2.spacing(4),minHeight:e.v2.spacing(32),padding:e.v2.spacing(8),borderRadius:e.v2.radius(4)})),f=styled("span")({width:12,height:12,flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center"}),u=styled(j)({color:"inherit",wordBreak:"break-word"});function k(e){switch(e){case "success":return jsx(d,{});case "info":return jsx(m,{});case "error":case "warning":return jsx(C,{})}}var y=forwardRef(({severity:e="error",message:s,icon:v,className:A,sx:h,id:n,...w},x)=>jsxs(g,{ref:x,...w,$severity:e,className:lc(r.root,A),sx:h,id:n,"data-testid":n??"Alert",children:[jsx(f,{className:r.icon,children:v??k(e)}),jsx(u,{component:"p",textVariant:"body.xsmall.regular",className:r.message,children:s})]}));y.displayName="Alert";var M=memo(y);
2
+ export{r as a,M as b};
@@ -0,0 +1 @@
1
+ import {j}from'./chunk-TIO3V7XA.js';import {Ia,lc}from'./chunk-4XXNGLS6.js';import {forwardRef,memo}from'react';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var r="os-shared-CurrencyAmount",e={root:`${r}-root`,integer:`${r}-integer`,separator:`${r}-separator`,decimal:`${r}-decimal`};var l=styled(j)(({theme:t})=>{let{fontSize:n,fontWeight:o}=t.v2.typography.textVariants.body.small.bold;return {fontSize:n,fontWeight:o,fontFamily:"inherit",lineHeight:"inherit",letterSpacing:"inherit",color:"inherit",display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",overflow:"auto"}}),u=styled("span")(({theme:t})=>({fontWeight:t.v2.typography.fontWeightRegular}));var f=forwardRef(({amount:t,currency:n,id:o,className:C,sx:A,...d},g)=>{let{integerAmount:h,decimalAmount:s}=Ia(t,n??"");return jsxs(l,{ref:g,component:"span",id:o,"data-testid":o??"CurrencyAmount",className:lc(e.root,C),sx:A,...d,children:[jsx("span",{className:e.integer,children:h}),s?jsxs(Fragment,{children:[jsx("span",{className:e.separator,children:"."}),jsx(u,{className:e.decimal,children:s})]}):null]})});f.displayName="CurrencyAmount";var S=memo(f);export{e as a,S as b};
@@ -1,4 +1,4 @@
1
- import {b,k}from'./chunk-SWXXEAIZ.js';import {a as a$1}from'./chunk-TY3LDUTP.js';import {a,g,e}from'./chunk-KSTOW7O3.js';import {aa,ba}from'./chunk-TIO3V7XA.js';import {a as a$2}from'./chunk-44UNMXKS.js';import {a as a$3,b as b$1}from'./chunk-MUR4ILTY.js';import {zc,Bc}from'./chunk-4XXNGLS6.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`
1
+ import {b,k}from'./chunk-SWXXEAIZ.js';import {a as a$1}from'./chunk-TY3LDUTP.js';import {a,g,e}from'./chunk-KSTOW7O3.js';import {a as a$2}from'./chunk-44UNMXKS.js';import {a as a$3,b as b$1}from'./chunk-MUR4ILTY.js';import {aa,ba}from'./chunk-TIO3V7XA.js';import {zc,Bc}from'./chunk-4XXNGLS6.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
  }