@tap-payments/os-micro-frontend-shared 0.3.226 → 0.3.228
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-LQOS3MF6.js +1 -0
- package/build/_chunks/chunk-MFFVCCTZ.js +1 -0
- package/build/_chunks/chunk-RZJSME6H.js +1 -0
- package/build/_chunks/chunk-UTT6RR33.js +2 -0
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/CurrencyAmount/CurrencyAmount.d.ts +3 -7
- package/build/components/CurrencyAmount/constants.d.ts +8 -0
- package/build/components/CurrencyAmount/index.d.ts +4 -4
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyAmount/style.d.ts +3 -0
- package/build/components/CurrencyAmount/type.d.ts +11 -0
- package/build/components/CurrencyAmountInput/CurrencyAmountInput.d.ts +4 -0
- package/build/components/CurrencyAmountInput/constants.d.ts +10 -0
- package/build/components/CurrencyAmountInput/index.d.ts +4 -0
- package/build/components/CurrencyAmountInput/index.js +1 -0
- package/build/components/CurrencyAmountInput/style.d.ts +11 -0
- package/build/components/CurrencyAmountInput/type.d.ts +16 -0
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Inputs/index.d.ts +0 -1
- package/build/components/Inputs/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/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/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/CustomCells/AmountCell/style.d.ts +0 -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.d.ts +2 -4
- package/build/components/index.js +1 -1
- package/build/index.js +1 -1
- package/package.json +2 -2
- package/build/_chunks/chunk-6YAD5SCS.js +0 -2
- package/build/_chunks/chunk-BL45EG5I.js +0 -1
- package/build/_chunks/chunk-ND2SYD7Y.js +0 -1
- package/build/_chunks/chunk-UO33K26R.js +0 -1
- package/build/components/AmountInput/AmountInput.d.ts +0 -14
- package/build/components/AmountInput/index.d.ts +0 -2
- package/build/components/AmountInput/index.js +0 -1
- package/build/components/AmountInput/style.d.ts +0 -7
- package/build/components/Customer/CustomerDropdown/CustomerDropdown.d.ts +0 -8
- package/build/components/Customer/CustomerDropdown/index.d.ts +0 -1
- package/build/components/Customer/CustomerDropdown/style.d.ts +0 -10
- package/build/components/Customer/CustomerForms/CustomerEmailForm.d.ts +0 -12
- package/build/components/Customer/CustomerForms/CustomerFullInfo.d.ts +0 -14
- package/build/components/Customer/CustomerForms/CustomerFullInfoForm.d.ts +0 -12
- package/build/components/Customer/CustomerForms/CustomerPhoneNumberForm.d.ts +0 -12
- package/build/components/Customer/CustomerForms/index.d.ts +0 -9
- package/build/components/Customer/CustomerForms/style.d.ts +0 -24
- package/build/components/Customer/CustomerForms/validation.d.ts +0 -30
- package/build/components/Customer/index.d.ts +0 -2
- package/build/components/Customer/index.js +0 -1
- package/build/components/DisplayAmount/DisplayAmount.d.ts +0 -12
- package/build/components/DisplayAmount/index.d.ts +0 -2
- package/build/components/DisplayAmount/index.js +0 -1
- package/build/components/DisplayAmount/style.d.ts +0 -5
- package/build/components/Inputs/CountriesDropDown/CountriesDropdown.d.ts +0 -13
- package/build/components/Inputs/CountriesDropDown/index.d.ts +0 -3
- package/build/components/Inputs/CountriesDropDown/style.d.ts +0 -22
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {zc,Ia}from'./chunk-4XXNGLS6.js';import {useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var o=styled("span")(()=>({fontWeight:"400"}));function y({amount:p,currency:u,...c}){let a=zc(useId(),"currency-amount"),{integerAmount:i,decimalAmount:r}=Ia(p,u);return jsxs(d,{...c,id:a,"data-testid":"CurrencyAmount",component:"span",children:[i,r&&jsxs(Fragment,{children:[".",jsx(o,{className:"decimal-amount",children:r})]})]})}var m=y;var b=m;export{o as a,b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {zc,Ia}from'./chunk-4XXNGLS6.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled("span")(()=>({fontWeight:400})),p=styled(d)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function a({amount:i,currencyCode:s,...u}){let l=zc(useId(),"display-amount"),{integerAmount:c,decimalAmount:f}=Ia(i,s);return jsxs(p,{...u,id:l,"data-testid":"DisplayAmount",children:[jsx("span",{children:c}),jsx("span",{children:"."}),jsx(r,{children:f})]})}a.displayName="DisplayAmount";var m=memo(a);var P=m;export{P as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {L as L$1}from'./chunk-TIO3V7XA.js';import {zc}from'./chunk-4XXNGLS6.js';import {Cb,A}from'./chunk-V2RLDP5A.js';import {memo,useId,useState,useEffect}from'react';import g from'@mui/material/Box';import Q from'@mui/material/ClickAwayListener';import X from'@mui/material/InputAdornment';import Y from'@mui/material/Popper';import b from'@mui/material/Skeleton';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import {Box,FormControl,InputLabel,Select,MenuItem}from'@mui/material';import {useFormContext,Controller}from'react-hook-form';var k=styled("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),L=styled(g)(({theme:e})=>({backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),R=styled("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),W=styled("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),B=styled(L$1)(()=>({flexGrow:1,maxWidth:"100%",height:24,padding:"4px",marginBottom:"4px"})),D=styled(g)(()=>({color:"red !important"}));styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var E=styled(g)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",alignItems:"center",borderRadius:"4px",height:"40px"})),N=styled(L$1,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({flexGrow:1,maxWidth:"100%",img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}}));function Z({defaultCountry:e,value:a,onChangeCountry:s,required:d,countries:r=[],isLoading:i=false}){let x=zc(useId(),"countries-dropdown"),[C,S]=useState(null),[q,m]=useState([]),[T,w]=useState(),$=()=>{if(r&&e){let t=r.find(l=>l.iso2===e);t&&s?.(t);}};useEffect(()=>{m(r||[]),$();},[r]);let I=!!C,_=t=>{t.stopPropagation(),S(t.currentTarget);},F=()=>{S(null),w(void 0);},G=t=>{s?.(t),F(),m(r);},V=t=>{let l=Number(t.target.value);if(w(l),!l){m(r);return}m(r.filter(U=>U.idd_prefix.toString().startsWith(l.toString())));};return i?jsx(b,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsx(Q,{onClickAway:F,children:jsxs(g,{id:x,"data-testid":"CountriesCode",sx:{position:"relative"},children:[jsxs(k,{type:"button",onClick:_,sx:{backgroundColor:"transparent",border:"none",height:34},children:[a?.logo?jsx("img",{src:a.logo,alt:"c",className:"logo"}):jsx(b,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${a?.idd_prefix}`}),d&&jsx(D,{component:"span",children:"*"}),jsx(g,{component:"img",src:Cb,alt:"d",className:"arrow",sx:{...I&&{transform:"rotate(180deg)"}}})]}),jsx(Y,{open:I,anchorEl:C,children:jsxs(L,{component:"article","data-testid":"CountriesWrapper",children:[jsx(B,{type:"number",endAdornment:jsx(X,{position:"end",children:jsx("img",{src:A,alt:"arrow"})}),onChange:V,value:T,hideArrows:true,disableFocusRing:true}),jsx(R,{children:q.map(t=>jsxs(W,{onClick:()=>{G(t);},children:[t.logo?jsx("img",{src:t.logo,alt:"c",className:"logo"}):jsx(b,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${t.idd_prefix}`})]},`country-code-${t.countryId}`))})]})})]})})}var P=memo(Z);var j=P;function y(e){let a=zc(useId(),"inputs-select"),{control:s}=useFormContext();return jsx(Controller,{name:e.name,control:s,render:({field:d,fieldState:{error:r}})=>jsxs(Box,{id:a,"data-testid":"InputsSelect",sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsxs(FormControl,{variant:"filled",sx:{minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}},required:e.required,children:[jsx(InputLabel,{id:"demo-simple-select-filled-label",sx:{fontSize:"11px",color:"#8D8D94 !important"},children:e.label}),jsx(Select,{inputProps:{sx:{backgroundColor:"#F9F9F9 !important",borderRadius:"4px",fontSize:"11px"}},...d,value:d.value??"",error:!!r,disableUnderline:true,required:true,labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",sx:{width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",".MuiSelect-select":{padding:"0px 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important"},".MuiSelect-filled":{padding:"0px 8px !important"},...r&&{border:"1px solid #FF3D00"}},children:(e.options||[]).map((i,x)=>jsx(MenuItem,{value:i.value??"",sx:{fontSize:"12px"},children:i.label},`${x}-${i.value??""}`))})]}),r?.message&&jsx(Box,{component:"small",sx:i=>({color:i.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}),children:r.message})]})})}var le=y;export{E as a,N as b,j as c,le as d};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BoxProps } from '@mui/material/Box';
|
|
3
|
-
import { Currency } from '../../types/index.js';
|
|
4
|
-
interface AmountInputI extends BoxProps {
|
|
5
|
-
amount: number | string;
|
|
6
|
-
setAmount: (value?: number) => void;
|
|
7
|
-
maxAmount?: number;
|
|
8
|
-
isError?: boolean;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
selectedCurrency: Currency;
|
|
11
|
-
}
|
|
12
|
-
declare function AmountInput({ amount, setAmount, maxAmount, isError, selectedCurrency, id, ...props }: AmountInputI): import("react").JSX.Element;
|
|
13
|
-
declare const _default: import("react").MemoExoticComponent<typeof AmountInput>;
|
|
14
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{lc as default}from'../../_chunks/chunk-6YAD5SCS.js';import'../../_chunks/chunk-FKG3SYY6.js';import'../../_chunks/chunk-33C463YL.js';import'../../_chunks/chunk-XB7FBOZY.js';import'../../_chunks/chunk-JEYLI22W.js';import'../../_chunks/chunk-TH5E43JD.js';import'../../_chunks/chunk-4SWNFKMX.js';import'../../_chunks/chunk-DPOBKAVX.js';import'../../_chunks/chunk-QGQRTANO.js';import'../../_chunks/chunk-KV7KQ6MZ.js';import'../../_chunks/chunk-MBTSXCJW.js';import'../../_chunks/chunk-GNNMQUBT.js';import'../../_chunks/chunk-545BCGVE.js';import'../../_chunks/chunk-W4PURLBP.js';import'../../_chunks/chunk-XSRIBZ5H.js';import'../../_chunks/chunk-MMFW3YZV.js';import'../../_chunks/chunk-ZGZK4AZ3.js';import'../../_chunks/chunk-XBUO2UHM.js';import'../../_chunks/chunk-DEQ2OTPX.js';import'../../_chunks/chunk-P57UJVYY.js';import'../../_chunks/chunk-WAY7BWQL.js';import'../../_chunks/chunk-PHVELRMX.js';import'../../_chunks/chunk-FNWPZLRV.js';import'../../_chunks/chunk-GIUONT72.js';import'../../_chunks/chunk-EI4VQCCM.js';import'../../_chunks/chunk-KS7YB4UX.js';import'../../_chunks/chunk-F2LUAXXO.js';import'../../_chunks/chunk-AFDB2YM6.js';import'../../_chunks/chunk-MAZVGT6F.js';import'../../_chunks/chunk-DKMFQFZU.js';import'../../_chunks/chunk-KD4RSWN6.js';import'../../_chunks/chunk-OAEOQ7AZ.js';import'../../_chunks/chunk-ZONDSLTR.js';import'../../_chunks/chunk-UO33K26R.js';import'../../_chunks/chunk-MQOX7MKN.js';import'../../_chunks/chunk-YPVFVBG3.js';import'../../_chunks/chunk-O4UZRDVR.js';import'../../_chunks/chunk-J4V7VRJY.js';import'../../_chunks/chunk-32CPM4J3.js';import'../../_chunks/chunk-LOGPCQ24.js';import'../../_chunks/chunk-DBFH6OKQ.js';import'../../_chunks/chunk-SWXXEAIZ.js';import'../../_chunks/chunk-TY3LDUTP.js';import'../../_chunks/chunk-KSTOW7O3.js';import'../../_chunks/chunk-HDCNWBW5.js';import'../../_chunks/chunk-VTJJFPK5.js';import'../../_chunks/chunk-7GVPGH6A.js';import'../../_chunks/chunk-R5PUIGMB.js';import'../../_chunks/chunk-FAKPBQH3.js';import'../../_chunks/chunk-5DLQTR4L.js';import'../../_chunks/chunk-HKQY74IJ.js';import'../../_chunks/chunk-U62XSJM5.js';import'../../_chunks/chunk-OYJYQKLK.js';import'../../_chunks/chunk-AIT2A7YM.js';import'../../_chunks/chunk-S3YBXSFG.js';import'../../_chunks/chunk-BL45EG5I.js';import'../../_chunks/chunk-VQ4INPUZ.js';import'../../_chunks/chunk-6VQVT7U4.js';import'../../_chunks/chunk-ND2SYD7Y.js';import'../../_chunks/chunk-64ILCI3S.js';import'../../_chunks/chunk-CAKSLKXG.js';import'../../_chunks/chunk-WE7NB24K.js';import'../../_chunks/chunk-5EP3LEOE.js';import'../../_chunks/chunk-4AFJCOBN.js';import'../../_chunks/chunk-JORNMG4I.js';import'../../_chunks/chunk-T5WRDF6Z.js';import'../../_chunks/chunk-TKU4GMEV.js';import'../../_chunks/chunk-QZAVOGKZ.js';import'../../_chunks/chunk-UD33MPJX.js';import'../../_chunks/chunk-MHZSYMQP.js';import'../../_chunks/chunk-GAL3X7PR.js';import'../../_chunks/chunk-FTG5LY7I.js';import'../../_chunks/chunk-JQTHWXQR.js';import'../../_chunks/chunk-TIO3V7XA.js';import'../../_chunks/chunk-W3D5YN4V.js';import'../../_chunks/chunk-FQ2VMVUY.js';import'../../_chunks/chunk-44UNMXKS.js';import'../../_chunks/chunk-MUR4ILTY.js';import'../../_chunks/chunk-OBHJVUFA.js';import'../../_chunks/chunk-BIJMWICZ.js';import'../../_chunks/chunk-LIHS4ZYZ.js';import'../../_chunks/chunk-4XXNGLS6.js';import'../../_chunks/chunk-V2RLDP5A.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Wrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
5
|
-
export declare const InputStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
6
|
-
ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
7
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CustomerFullInfoProps } from '../CustomerForms/CustomerFullInfo';
|
|
3
|
-
export interface CustomerDropdownProps extends CustomerFullInfoProps {
|
|
4
|
-
isDisabled?: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare function CustomerDropdown({ ...props }: Readonly<CustomerDropdownProps>): import("react").JSX.Element;
|
|
7
|
-
declare const _default: import("react").MemoExoticComponent<typeof CustomerDropdown>;
|
|
8
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, type CustomerDropdownProps } from './CustomerDropdown';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Wrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
5
|
-
export declare const Button: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").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/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
8
|
-
export declare const AvatarStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../../primitives").AvatarProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Item } from '../../../types/index.js';
|
|
3
|
-
import { CustomerFullInfoProps } from './CustomerFullInfo';
|
|
4
|
-
export interface CustomerEmailFormProps extends Pick<CustomerFullInfoProps, 'onCustomerChange' | 'isCustomerNotValid' | 'customer'> {
|
|
5
|
-
items: Item[];
|
|
6
|
-
isItemsNotValid: boolean;
|
|
7
|
-
submitButtonText: string;
|
|
8
|
-
onSubmit: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare function CustomerEmailForm({ submitButtonText, onSubmit, customer, isItemsNotValid, items, onCustomerChange }: Readonly<CustomerEmailFormProps>): import("react").JSX.Element;
|
|
11
|
-
declare const _default: import("react").MemoExoticComponent<typeof CustomerEmailForm>;
|
|
12
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Country, CustomerInfo, SegmentCountry } from '../../../types/index.js';
|
|
3
|
-
export interface CustomerFullInfoProps {
|
|
4
|
-
customer: CustomerInfo;
|
|
5
|
-
country: Country;
|
|
6
|
-
defaultCountry: SegmentCountry;
|
|
7
|
-
countries: Country[];
|
|
8
|
-
isCountriesLoading: boolean;
|
|
9
|
-
onCountryChange: (country: Country) => void;
|
|
10
|
-
onCustomerChange: (customer: CustomerInfo) => void;
|
|
11
|
-
isCustomerNotValid?: (value: boolean, err?: string) => void;
|
|
12
|
-
}
|
|
13
|
-
declare function CustomerFullInfo({ customer, country, defaultCountry, countries, isCountriesLoading, onCustomerChange, onCountryChange, isCustomerNotValid, }: Readonly<CustomerFullInfoProps>): import("react").JSX.Element;
|
|
14
|
-
export default CustomerFullInfo;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { Item } from '../../../types/index.js';
|
|
3
|
-
import { CustomerFullInfoProps } from './CustomerFullInfo';
|
|
4
|
-
export interface CustomerFullInfoFormProps extends CustomerFullInfoProps {
|
|
5
|
-
items: Item[];
|
|
6
|
-
isItemsNotValid: boolean;
|
|
7
|
-
submitButtonText: string;
|
|
8
|
-
onSubmit: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare function CustomerFullInfoForm({ submitButtonText, onSubmit, customer, country, items, isItemsNotValid, defaultCountry, countries, isCountriesLoading, onCustomerChange, onCountryChange, }: Readonly<CustomerFullInfoFormProps>): import("react").JSX.Element;
|
|
11
|
-
declare const _default: import("react").MemoExoticComponent<typeof CustomerFullInfoForm>;
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Item } from '../../../types/index.js';
|
|
3
|
-
import { CustomerFullInfoProps } from './CustomerFullInfo';
|
|
4
|
-
export interface CustomerPhoneNumberFormProps extends Pick<CustomerFullInfoProps, 'customer' | 'country' | 'onCountryChange' | 'onCustomerChange' | 'defaultCountry' | 'countries' | 'isCountriesLoading'> {
|
|
5
|
-
isItemsNotValid: boolean;
|
|
6
|
-
items: Item[];
|
|
7
|
-
submitButtonText: string;
|
|
8
|
-
onSubmit: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare function CustomerPhoneNumberForm({ submitButtonText, onSubmit, customer, country, isItemsNotValid, items, defaultCountry, countries, isCountriesLoading, onCustomerChange, onCountryChange, }: Readonly<CustomerPhoneNumberFormProps>): import("react").JSX.Element;
|
|
11
|
-
declare const _default: import("react").MemoExoticComponent<typeof CustomerPhoneNumberForm>;
|
|
12
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './validation';
|
|
2
|
-
export * from './CustomerEmailForm';
|
|
3
|
-
export { default as CustomerEmailForm } from './CustomerEmailForm';
|
|
4
|
-
export * from './CustomerFullInfo';
|
|
5
|
-
export { default as CustomerFullInfo } from './CustomerFullInfo';
|
|
6
|
-
export * from './CustomerFullInfoForm';
|
|
7
|
-
export { default as CustomerFullInfoForm } from './CustomerFullInfoForm';
|
|
8
|
-
export * from './CustomerPhoneNumberForm';
|
|
9
|
-
export { default as CustomerPhoneNumberForm } from './CustomerPhoneNumberForm';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const MobileWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
5
|
-
export declare const SearchWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").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/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
8
|
-
export declare const FormWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
11
|
-
export declare const SubmitButton: import("@emotion/styled").StyledComponent<import("@mui/material/Button").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
12
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
13
|
-
}, "color" | "disabled" | "classes" | "className" | "style" | "tabIndex" | "children" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "variant" | "size" | "startIcon" | "endIcon" | "fullWidth" | "href" | "disableFocusRipple" | "disableElevation"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
14
|
-
export declare const InputStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../../index.js").InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
15
|
-
ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
16
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
17
|
-
error?: boolean | undefined;
|
|
18
|
-
}, {}, {}>;
|
|
19
|
-
export declare const InputNumberStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../../index.js").InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
20
|
-
ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
21
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
22
|
-
error?: boolean | undefined;
|
|
23
|
-
}, {}, {}>;
|
|
24
|
-
export declare const ErrorStyled: import("@emotion/styled").StyledComponent<import("../../Error/Error").ErrorI & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as Yup from 'yup';
|
|
2
|
-
export declare const validationEmailFromSchema: Yup.ObjectSchema<{
|
|
3
|
-
email: string;
|
|
4
|
-
firstName: string;
|
|
5
|
-
lastName: string;
|
|
6
|
-
}, Yup.AnyObject, {
|
|
7
|
-
email: undefined;
|
|
8
|
-
firstName: undefined;
|
|
9
|
-
lastName: undefined;
|
|
10
|
-
}, "">;
|
|
11
|
-
export declare const validationFullInfoSchema: (numberLen: number) => Yup.ObjectSchema<{
|
|
12
|
-
email: string | undefined;
|
|
13
|
-
phoneNumber: string | undefined;
|
|
14
|
-
firstName: string;
|
|
15
|
-
lastName: string;
|
|
16
|
-
}, Yup.AnyObject, {
|
|
17
|
-
email: undefined;
|
|
18
|
-
phoneNumber: undefined;
|
|
19
|
-
firstName: undefined;
|
|
20
|
-
lastName: undefined;
|
|
21
|
-
}, "">;
|
|
22
|
-
export declare const validationPhoneNumberSchema: (numberLen: number) => Yup.ObjectSchema<{
|
|
23
|
-
firstName: string;
|
|
24
|
-
lastName: string;
|
|
25
|
-
phoneNumber: string;
|
|
26
|
-
}, Yup.AnyObject, {
|
|
27
|
-
firstName: undefined;
|
|
28
|
-
lastName: undefined;
|
|
29
|
-
phoneNumber: undefined;
|
|
30
|
-
}, "">;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { default as CustomerDropdown, type CustomerDropdownProps } from './CustomerDropdown';
|
|
2
|
-
export { CustomerEmailForm, CustomerFullInfoForm, CustomerPhoneNumberForm, type CustomerFullInfoProps, type CustomerFullInfoFormProps, type CustomerPhoneNumberFormProps, type CustomerEmailFormProps, } from './CustomerForms';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{Fc as CustomerDropdown,Gc as CustomerEmailForm,Hc as CustomerFullInfoForm,Ic as CustomerPhoneNumberForm}from'../../_chunks/chunk-6YAD5SCS.js';import'../../_chunks/chunk-FKG3SYY6.js';import'../../_chunks/chunk-33C463YL.js';import'../../_chunks/chunk-XB7FBOZY.js';import'../../_chunks/chunk-JEYLI22W.js';import'../../_chunks/chunk-TH5E43JD.js';import'../../_chunks/chunk-4SWNFKMX.js';import'../../_chunks/chunk-DPOBKAVX.js';import'../../_chunks/chunk-QGQRTANO.js';import'../../_chunks/chunk-KV7KQ6MZ.js';import'../../_chunks/chunk-MBTSXCJW.js';import'../../_chunks/chunk-GNNMQUBT.js';import'../../_chunks/chunk-545BCGVE.js';import'../../_chunks/chunk-W4PURLBP.js';import'../../_chunks/chunk-XSRIBZ5H.js';import'../../_chunks/chunk-MMFW3YZV.js';import'../../_chunks/chunk-ZGZK4AZ3.js';import'../../_chunks/chunk-XBUO2UHM.js';import'../../_chunks/chunk-DEQ2OTPX.js';import'../../_chunks/chunk-P57UJVYY.js';import'../../_chunks/chunk-WAY7BWQL.js';import'../../_chunks/chunk-PHVELRMX.js';import'../../_chunks/chunk-FNWPZLRV.js';import'../../_chunks/chunk-GIUONT72.js';import'../../_chunks/chunk-EI4VQCCM.js';import'../../_chunks/chunk-KS7YB4UX.js';import'../../_chunks/chunk-F2LUAXXO.js';import'../../_chunks/chunk-AFDB2YM6.js';import'../../_chunks/chunk-MAZVGT6F.js';import'../../_chunks/chunk-DKMFQFZU.js';import'../../_chunks/chunk-KD4RSWN6.js';import'../../_chunks/chunk-OAEOQ7AZ.js';import'../../_chunks/chunk-ZONDSLTR.js';import'../../_chunks/chunk-UO33K26R.js';import'../../_chunks/chunk-MQOX7MKN.js';import'../../_chunks/chunk-YPVFVBG3.js';import'../../_chunks/chunk-O4UZRDVR.js';import'../../_chunks/chunk-J4V7VRJY.js';import'../../_chunks/chunk-32CPM4J3.js';import'../../_chunks/chunk-LOGPCQ24.js';import'../../_chunks/chunk-DBFH6OKQ.js';import'../../_chunks/chunk-SWXXEAIZ.js';import'../../_chunks/chunk-TY3LDUTP.js';import'../../_chunks/chunk-KSTOW7O3.js';import'../../_chunks/chunk-HDCNWBW5.js';import'../../_chunks/chunk-VTJJFPK5.js';import'../../_chunks/chunk-7GVPGH6A.js';import'../../_chunks/chunk-R5PUIGMB.js';import'../../_chunks/chunk-FAKPBQH3.js';import'../../_chunks/chunk-5DLQTR4L.js';import'../../_chunks/chunk-HKQY74IJ.js';import'../../_chunks/chunk-U62XSJM5.js';import'../../_chunks/chunk-OYJYQKLK.js';import'../../_chunks/chunk-AIT2A7YM.js';import'../../_chunks/chunk-S3YBXSFG.js';import'../../_chunks/chunk-BL45EG5I.js';import'../../_chunks/chunk-VQ4INPUZ.js';import'../../_chunks/chunk-6VQVT7U4.js';import'../../_chunks/chunk-ND2SYD7Y.js';import'../../_chunks/chunk-64ILCI3S.js';import'../../_chunks/chunk-CAKSLKXG.js';import'../../_chunks/chunk-WE7NB24K.js';import'../../_chunks/chunk-5EP3LEOE.js';import'../../_chunks/chunk-4AFJCOBN.js';import'../../_chunks/chunk-JORNMG4I.js';import'../../_chunks/chunk-T5WRDF6Z.js';import'../../_chunks/chunk-TKU4GMEV.js';import'../../_chunks/chunk-QZAVOGKZ.js';import'../../_chunks/chunk-UD33MPJX.js';import'../../_chunks/chunk-MHZSYMQP.js';import'../../_chunks/chunk-GAL3X7PR.js';import'../../_chunks/chunk-FTG5LY7I.js';import'../../_chunks/chunk-JQTHWXQR.js';import'../../_chunks/chunk-TIO3V7XA.js';import'../../_chunks/chunk-W3D5YN4V.js';import'../../_chunks/chunk-FQ2VMVUY.js';import'../../_chunks/chunk-44UNMXKS.js';import'../../_chunks/chunk-MUR4ILTY.js';import'../../_chunks/chunk-OBHJVUFA.js';import'../../_chunks/chunk-BIJMWICZ.js';import'../../_chunks/chunk-LIHS4ZYZ.js';import'../../_chunks/chunk-4XXNGLS6.js';import'../../_chunks/chunk-V2RLDP5A.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BoxProps } from '@mui/material/Box';
|
|
3
|
-
interface DisplayAmountI extends BoxProps {
|
|
4
|
-
amount: number;
|
|
5
|
-
currencyCode: string;
|
|
6
|
-
}
|
|
7
|
-
declare function DisplayAmount({ amount, currencyCode, ...props }: DisplayAmountI): import("react").JSX.Element;
|
|
8
|
-
declare namespace DisplayAmount {
|
|
9
|
-
var displayName: string;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: import("react").MemoExoticComponent<typeof DisplayAmount>;
|
|
12
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as default}from'../../_chunks/chunk-ND2SYD7Y.js';import'../../_chunks/chunk-4XXNGLS6.js';import'../../_chunks/chunk-V2RLDP5A.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const DecimalSpan: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
|
-
export declare const CurrencySpan: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { Country } from '../../../types/index.js';
|
|
3
|
-
type CountriesDropdownProps = {
|
|
4
|
-
value?: Partial<Country>;
|
|
5
|
-
defaultCountry?: string;
|
|
6
|
-
onChangeCountry?: (country: Country) => void;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
countries: Country[];
|
|
9
|
-
isLoading: boolean;
|
|
10
|
-
};
|
|
11
|
-
declare function CountriesDropdown({ defaultCountry, value: selectedCountry, onChangeCountry, required, countries, isLoading, }: Readonly<CountriesDropdownProps>): import("react").JSX.Element;
|
|
12
|
-
declare const _default: import("react").MemoExoticComponent<typeof CountriesDropdown>;
|
|
13
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const CountryButton: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
3
|
-
export declare const CountriesWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
6
|
-
export declare const CountriesList: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
7
|
-
export declare const CountryStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
8
|
-
export declare const InputStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../../primitives").InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
9
|
-
ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
10
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
11
|
-
export declare const Required: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
12
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
14
|
-
export declare const StyledErrorMessage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
15
|
-
export declare const MobileWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
17
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
18
|
-
export declare const InputNumberStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../../primitives").InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
19
|
-
ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
20
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
21
|
-
error?: boolean | undefined;
|
|
22
|
-
}, {}, {}>;
|