@tap-payments/os-micro-frontend-shared 0.3.162 → 0.3.164-test.1
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-GZ4VIHY2.js → chunk-2HH4LSQE.js} +1 -1
- package/build/_chunks/chunk-3KKRQAWW.js +1 -0
- package/build/_chunks/{chunk-KN3NJTTU.js → chunk-6PJPVYTL.js} +1 -1
- package/build/_chunks/chunk-AJY4PW72.js +1 -0
- package/build/_chunks/{chunk-KSLT6R7T.js → chunk-CAGX4VZ3.js} +1 -1
- package/build/_chunks/{chunk-HK65MIL7.js → chunk-DIIQBF4N.js} +1 -1
- package/build/_chunks/{chunk-XBVIZVR7.js → chunk-EOLTZOPF.js} +1 -1
- package/build/_chunks/{chunk-ZBCHQZ2V.js → chunk-FEJSSBRC.js} +1 -1
- package/build/_chunks/{chunk-OMCR6ZDN.js → chunk-H6ZFSTJN.js} +1 -1
- package/build/_chunks/{chunk-3GEV5AOI.js → chunk-K36O7J2F.js} +1 -1
- package/build/_chunks/chunk-QO2SIUHG.js +2 -0
- package/build/_chunks/{chunk-RYLRWHII.js → chunk-RJFI62TJ.js} +1 -1
- package/build/_chunks/{chunk-H5O5F5X6.js → chunk-T25W6NKR.js} +1 -1
- package/build/_chunks/chunk-UP2RBKQA.js +1 -0
- package/build/_chunks/{chunk-WWQDYV4Q.js → chunk-WSYB3EBL.js} +1 -1
- package/build/components/ActionMenu/index.js +1 -1
- package/build/components/ActionMenu/style.d.ts +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountSlider/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/style.d.ts +4 -4
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/AppWindow/style.d.ts +2 -2
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/Calender/style.d.ts +4 -4
- package/build/components/ColorPicker/style.d.ts +2 -2
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ColumnViews/styles.d.ts +2 -2
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/ConfirmDialog/style.d.ts +6 -0
- package/build/components/CopyImage/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/Customer/CustomerForms/style.d.ts +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownButton/constants.d.ts +2 -2
- package/build/components/DropdownButton/style.d.ts +2 -2
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUpload/style.d.ts +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/FilterDropdown/style.d.ts +2 -2
- package/build/components/Filters/index.js +1 -1
- package/build/components/Filters/style.d.ts +2 -2
- package/build/components/Inputs/FileInput/style.d.ts +1 -1
- package/build/components/JSONViewer/components/JSONSearchBar/styles.d.ts +15 -15
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MultiSelectDropdownButton/index.js +1 -1
- package/build/components/MultiSelectWithSearch/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/RFH/Inputs/MultiSelect/style.d.ts +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RangeCalender/components/QuickFilters/style.d.ts +1 -1
- package/build/components/RangeCalender/components/RangeDatepicker/style.d.ts +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RangeCalender/style.d.ts +3 -3
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/ReferenceTypeFilter/style.d.ts +1 -1
- package/build/components/RemoteFallback/style.d.ts +1 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/SearchButton/styles.d.ts +11 -11
- package/build/components/SelectWithSearch/index.js +1 -1
- package/build/components/Slider/style.d.ts +1 -1
- package/build/components/StatusButton/style.d.ts +3 -3
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +4 -4
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +4 -4
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +4 -4
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/components/ColumnFilter/Inputs/style.d.ts +1 -1
- package/build/components/VirtualTables/components/ColumnFilter/style.d.ts +2 -2
- package/build/components/VirtualTables/components/ErrorList/styles.d.ts +1 -1
- package/build/components/VirtualTables/components/style.d.ts +4 -4
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.d.ts +1 -2
- package/build/components/index.js +1 -1
- package/build/components/primitives/Avatar/style.d.ts +1 -1
- package/build/components/primitives/Backdrop/style.d.ts +1 -1
- package/build/components/primitives/Slider/style.d.ts +1 -1
- package/build/index.js +1 -1
- package/package.json +2 -2
- package/build/_chunks/chunk-2BKJV7M6.js +0 -1
- package/build/_chunks/chunk-D2T3N7GI.js +0 -2
- package/build/_chunks/chunk-FQGGPJJZ.js +0 -1
- package/build/_chunks/chunk-G3ZCQRFM.js +0 -1
- package/build/_chunks/chunk-VRMAWN62.js +0 -1
- package/build/components/Amount/TotalAmount/Loading.d.ts +0 -2
- package/build/components/Amount/TotalAmount/TotalAmount.d.ts +0 -15
- package/build/components/Amount/TotalAmount/index.d.ts +0 -1
- package/build/components/Amount/TotalAmount/style.d.ts +0 -11
- package/build/components/Amount/index.d.ts +0 -1
- package/build/components/Amount/index.js +0 -1
- package/build/components/Collapse/Collapse.d.ts +0 -5
- package/build/components/Collapse/index.d.ts +0 -3
- package/build/components/Collapse/index.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {T,b}from'./chunk-U5GGG4B3.js';import {forwardRef,memo,createContext,useState,useRef,useCallback,useMemo,useContext}from'react';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var u=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(2),minWidth:"256px"})),C=styled("p")(({theme:e})=>({margin:0,fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:e.typography.body1.lineHeight})),g=styled("div")(({theme:e})=>({display:"flex",gap:e.spacing(1),justifyContent:"flex-end"}));var y=forwardRef(({message:e,title:t,confirmText:l,cancelText:i,onConfirm:r,onCancel:s,className:f,sx:o,...n},h)=>jsx(T,{ref:h,"data-testid":"ConfirmDialog",heading:t,className:f,sx:o,...n,children:jsxs(u,{children:[jsx(C,{children:e}),jsxs(g,{children:[jsx(b,{variant:"ghost",size:"sm",onClick:s,children:i||"No"}),jsx(b,{variant:"primary",size:"sm",onClick:r,children:l||"Yes"})]})]})}));y.displayName="ConfirmDialog";var D=memo(y);var c=createContext(null);function B(){let e=useContext(c);if(!e)throw new Error("useConfirm must be used within <ConfirmDialogProvider>");return e}var v={open:false,message:null,title:void 0,confirmText:void 0,cancelText:void 0,sx:void 0,dismissible:true};function z({children:e}){let[t,l]=useState(v),i=useRef(null),r=useCallback(o=>{let n=i.current;n&&(i.current=null,l(v),n(o));},[]),s=useCallback(o=>new Promise(n=>{i.current?.(false),i.current=n,l({open:true,dismissible:o.dismissible??true,message:o.message,title:o.title,confirmText:o.confirmText,cancelText:o.cancelText,sx:o.sx});}),[]),f=useMemo(()=>({confirm:s}),[s]);return jsxs(c.Provider,{value:f,children:[e,jsx(D,{open:t.open,message:t.message,title:t.title,confirmText:t.confirmText,cancelText:t.cancelText,onConfirm:()=>r(true),onCancel:()=>r(false),onClose:t.dismissible?()=>r(false):void 0,sx:t.sx})]})}var O=memo(z);export{B as a,O as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {yc}from'./chunk-MXISJOX2.js';import {useId}from'react';import r from'@mui/material/Collapse';import {jsx}from'react/jsx-runtime';function o({children:e,...l}){let t=yc(useId(),"collapse");return jsx(r,{id:t,"data-testid":"Collapse",unmountOnExit:true,timeout:500,...l,children:e})}var I=o;export{I as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-ATOOWVEE.js';import {a as a$3}from'./chunk-4XJAK7Y3.js';import {j,a as a$5}from'./chunk-KVOFAN6O.js';import {a}from'./chunk-VGIO2RGM.js';import {a as a$2}from'./chunk-2SBTZEUM.js';import {a as a$1}from'./chunk-CMM74PXZ.js';import {lc,yc,o}from'./chunk-MXISJOX2.js';import {U}from'./chunk-N372QRVU.js';import {Vc,Wc,Xj,Yj,Zj,ec,fc,_j,dc}from'./chunk-3YAJNHQC.js';import {memo,forwardRef,useState,useMemo,useRef,useId,useEffect,useCallback}from'react';import S from'@mui/material/Box';import Rt from'@mui/material/Collapse';import xt from'@mui/material/Popper';import Pt from'dayjs';import {useTranslation}from'react-i18next';import {Calendar,DateObject}from'react-multi-date-picker';import No from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import he from'@mui/material/Button';import q from'react-date-object';import et from'react-date-object/calendars/arabic';import ot from'react-date-object/calendars/gregorian';import tt from'react-date-object/locales/arabic_ar';import rt from'react-date-object/locales/arabic_en';import nt from'react-date-object/locales/gregorian_ar';import it from'react-date-object/locales/gregorian_en';var Ue=styled(S)(({theme:e})=>({color:e.palette.grey[700],fontSize:"9px",fontWeight:500,marginBottom:"6px"})),Ne=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,height:32,padding:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",...o&&{border:`1px solid ${e.palette.info.dark}`,background:e.palette.common.white,boxShadow:e.shadows[7]}})),Ke=styled(S)(({theme:e})=>({borderRadius:"8px",background:e.palette.common.white,boxShadow:"0px 8px 36px 0px rgba(0, 0, 0, 0.15)",textAlign:"center",color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",flexDirection:"column"})),_e=styled(S)(({theme:e})=>({width:71,padding:"4px 0",cursor:"pointer","&:hover, &.active":{borderRadius:"100px",background:e.palette.info.light}}));var Ze={day:"Day",month:"Month",quarter:"Quarter",year:"Year"};function _o({sx:e,groupBy:o,isCalenderOpen:a$1,onUpdate:t}){let[n,p]=useState(null),l=!!n&&a$1,{t:m}=useTranslation(),c=()=>{p(null);},u=d=>{p(d.currentTarget);},s=d=>{t?.(d),c();};return jsx(No,{onClickAway:c,children:jsxs(S,{sx:e,children:[jsx(Ue,{children:m("groupedBy")}),jsxs(Ne,{onClick:u,open:l,children:[jsx("span",{children:Ze[o]}),jsx(S,{component:"img",src:Wc,alt:"arrow",sx:{...l&&{transform:"rotate(180deg)"}}})]}),jsx(a,{open:l,anchorEl:n,children:jsx(Ke,{sx:{width:n?.clientWidth},children:Object.entries(Ze).map(([d,i])=>jsx(_e,{onClick:()=>{s(d);},className:o===d?"active":"",children:i},`${d}-groupedBy`))})})]})})}var Xe=memo(_o);var Ve=Xe;var eo=styled(S)(({theme:e})=>({border:"1px solid",borderColor:e.palette.divider,borderRadius:"50px",paddingInline:"6px 12px",color:e.palette.text.primary,fontSize:"11px",display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",height:32,marginTop:"8px",img:{width:16,height:16},"& > div":{display:"flex",alignItems:"center",gap:"2px"}}));function le({isHijri:e,onCalendarModeSwitch:o}){let{t:a}=useTranslation(),t=()=>{o?.(e?"gregorian":"hijri");};return jsx(S,{children:jsxs(eo,{children:[jsxs(S,{children:[jsx("img",{src:dc,alt:"hijri"}),jsx("span",{children:a("hijri")})]}),jsx(a$4,{checked:e,onChange:t})]})})}var ro=le;var io=styled(he)(({theme:e})=>({cursor:"pointer",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,color:e.palette.text.primary,fontSize:"11px",fontWeight:e.typography.fontWeightRegular,paddingInline:"12px",height:32,width:"max-content",textTransform:"unset","&:hover":{boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark}})),ao=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));var Z=({isHijri:e,isAr:o=false})=>e?o?tt:rt:o?nt:it,J=e=>e?et:ot,M=e=>e.setHour(0).setMinute(0).setSecond(0).setMillisecond(0),B=e=>e.setHour(23).setMinute(59).setSecond(59).setMillisecond(999),X=e=>{if(!(e?.[0]instanceof Date)||!(e?.[1]instanceof Date)){let[o$1,a]=o();return [new q(o$1),new q(a)]}return [new q(e?.[0]),new q(e?.[1])]};function ce({onChange:e,isHijri:o,isAr:a=false}){let t={locale:Z({isHijri:o,isAr:a}),calendar:J(o)},n=useMemo(()=>[{id:"today",value:[new DateObject(t),new DateObject(t)]},{id:"lastWeek",value:[new DateObject(t).subtract(6,"day"),new DateObject(t)]},{id:"lastMonth",value:[new DateObject(t).subtract(30,"day"),new DateObject(t)]},{id:new DateObject(t).subtract(1,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(1,"month").toFirstOfMonth(),new DateObject(t).subtract(1,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(2,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(2,"month").toFirstOfMonth(),new DateObject(t).subtract(2,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(3,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(3,"month").toFirstOfMonth(),new DateObject(t).subtract(3,"month").toLastOfMonth()]}],[o,a]),{t:p}=useTranslation();return jsx(S,{"data-testid":"RangeCalender_QuickFilters",children:jsx(ao,{children:n.map(l=>jsx(io,{onClick:m=>{m.preventDefault(),e(l.value);},children:p(l.id)},l.id))})})}var po=ce;var so=styled(he)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}}));var ut=["Su","Mo","Tu","We","Th","Fr","Sa"];function ft({isAr:e=false,isHijri:o,values:a,onChange:t,numberOfMonths:n=2,...p},l){let m=c=>c==="right"?e?ec:fc:e?fc:ec;return jsx(Calendar,{ref:l,numberOfMonths:n,value:a,onChange:t,calendar:J(o),locale:Z({isHijri:o,isAr:e}),range:true,format:"MMM DD",monthYearSeparator:" ",renderButton:(c,u)=>jsx(so,{onClick:u,children:jsx("img",{src:m(c),alt:"arrow"})}),weekDays:e?void 0:ut,maxDate:new Date,...p})}var lo=forwardRef(ft);var mo=lo;var co=styled(S)(()=>({'[class$="-IndicatorsContainer2"]':{display:"none"},"#react-select-2-listbox":{width:300}})),V=styled(S)(({theme:e})=>({borderRadius:e.spacing(.5),border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,boxShadow:e.shadows[10],minWidth:200,width:"max-content",overflow:"auto"})),uo=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({width:156,fontSize:"11px",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,minHeight:32,borderRadius:"4px",padding:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"flex",alignItems:"center",gap:e.spacing(1),fontWeight:500,...o&&{borderRadius:"4px",boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark,background:e.palette.common.white},span:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),L=styled(S)(({theme:e})=>({padding:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",gap:e.spacing(1),height:33,cursor:"pointer","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"},"&+&":{borderTop:"1px solid",borderColor:e.palette.divider},"&.active span":{fontWeight:500},span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),A=styled(S)(()=>({width:12,height:12})),W=styled(S)(({theme:e})=>({fontSize:"11px",color:e.palette.text.secondary,lineHeight:"15.03px","&.selected":{color:e.palette.info.dark}}));function ge({selectedTimezone:e,onChange:o,timezoneCountriesCodes:a,defaultCountryTimezone:t}){let[n,p]=useState(null),l=i=>{n||p(i.currentTarget);},m=()=>{n&&p(null);},c=(i,D)=>{i.stopPropagation(),o(D);},u=useMemo(()=>a?.map(i=>lc(i)),[a]),s=useMemo(()=>u?.some(i=>e?.timezone===i?.timezone),[u,e]),d=useMemo(()=>e&&s?e:t,[e,t,s]);return jsxs(L,{onMouseEnter:l,onMouseLeave:m,onClick:()=>{e&&o(d);},children:[s?jsx("img",{src:_j,alt:"icon"}):jsx(A,{}),jsx("img",{src:Yj,alt:"entity-timezone"}),jsx(a$1,{countryCode:d?.countryCode}),jsx(W,{className:s?"selected":"",children:s?e?.label:t?.label}),jsx(xt,{open:!!n,anchorEl:n,placement:"right-start",sx:{zIndex:3},disablePortal:true,children:jsx(V,{sx:{maxHeight:300},children:u?.map((i,D)=>{let j=i?.timezone===e?.timezone;return jsxs(L,{onClick:te=>{c(te,i);},sx:{gap:"4px"},children:[j?jsx("img",{src:_j,alt:"icon"}):jsx(A,{}),jsx(a$1,{countryCode:i?.countryCode}),jsx(W,{className:j?"selected":"",children:i?.label})]},`timezone-item-${D}`)})})})]})}function xe({onChange:e,selectedTimezone:o,browserTimezone:a}){let t=useMemo(()=>U.find(({timezone:l})=>l===a),[a]),n=()=>{t&&e(t);},p=t?.timezone===o?.timezone;return jsxs(L,{onClick:n,children:[p?jsx("img",{src:_j,alt:"icon"}):jsx(A,{}),jsx("img",{src:Xj,alt:"user-timezone"}),jsx(a$1,{countryCode:t?.countryCode}),jsx(W,{className:p?"selected":"",children:t?.label})]})}function zt({onChange:e,selectedTimezone:o,browserTimezone:a,defaultCountryTimezone:t,timezoneCountriesCodes:n}){let[p,l]=useState(null),m=!!p,c=()=>{l(null);},u=i=>{e(i),c();},s=i=>{l(i.currentTarget);},d=useMemo(()=>a===o?.timezone?Xj:o?.timezone===t.timezone?Yj:Zj,[a,t.timezone,o?.timezone]);return jsx(No,{onClickAway:c,children:jsxs(co,{"data-testid":"CustomTimezone",children:[jsxs(uo,{open:m,onClick:s,children:[jsx("img",{src:d,alt:"timezone-icon"}),jsx(a$1,{countryCode:o?.countryCode}),jsx("span",{children:o?.label})]}),jsx(xt,{open:m,anchorEl:p,placement:"top-start",sx:{zIndex:1400},children:jsxs(V,{"data-testid":"CustomTimezone_dropdown",children:[jsx(ge,{onChange:u,selectedTimezone:o,defaultCountryTimezone:t,timezoneCountriesCodes:n}),jsx(xe,{onChange:u,selectedTimezone:o,browserTimezone:a})]})})]})})}var go=memo(zt);var xo=go;var bo=styled(S)(({theme:e})=>({display:"flex",marginTop:"8px",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none"},".rmdp-day span":{fontSize:"11px",fontWeight:500},".rmdp-day, .rmdp-week-day":{width:40,height:40,marginBottom:"2px",padding:"4px",fontSize:"11px",color:e.palette.grey[900]},".rmdp-day-picker":{padding:0},".rmdp-day.rmdp-today span":{backgroundColor:"transparent !important",color:e.palette.info.dark},".rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span":{color:e.palette.common.white},".rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover":{background:e.palette.info.light,boxShadow:"none",color:e.palette.grey[900]},".rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end":{borderRadius:"50%",background:e.palette.background.gradient.darkShadedBlue,color:e.palette.common.white},".rmdp-range.start:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",right:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.start:after":{right:"unset",left:0},".rmdp-range.end:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",left:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.end:after":{left:"unset",right:0},".rmdp-week-day":{color:e.palette.grey[700],marginBottom:"4px",fontSize:"11px",padding:"4px"},".rmdp-header-values":{color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px"},".rmdp-header-values span:nth-of-type(2)":{display:"none"},".rmdp-header":{padding:"4px 0",margin:0,fontSize:"12px"},".rmdp-top-class":{display:"block !important"},".rmdp-day.rmdp-selected span:not(.highlight)":{background:e.palette.info.dark},".rmdp-day.start.end":{overflow:"hidden"},".rmdp-day.rmdp-disabled":{color:"#ccc",cursor:"not-allowed"}})),ho=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:e.palette.text.primary}})),yo=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:e.palette.info.dark,"&:hover":{background:e.palette.info.dark}})),wo=styled(S)(()=>({display:"flex",gap:8})),Co=styled(he,{shouldForwardProp:e=>e!=="open"})(({open:e,theme:o})=>({color:o.palette.text.primary,fontSize:"11px",fontWeight:500,padding:o.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:o.palette.divider,background:o.palette.common.white,textTransform:"none",height:32,...e&&{border:"1px solid",borderColor:o.palette.info.dark,boxShadow:o.shadows[7]}})),To=styled(S)(({theme:e})=>({background:e.palette.common.white,display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,padding:"16px",borderTop:"1px solid",borderColor:e.palette.divider,borderBottomRightRadius:"8px"})),ko=styled(S)(({theme:e})=>({padding:16,paddingInlineEnd:"23px",borderRight:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,width:"max-content",borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",display:"flex",flexDirection:"column",gap:10,justifyContent:"space-between"})),zo=styled(S)(()=>({display:"flex",alignItems:"center",gap:"10px"})),So=styled(S)(()=>({position:"relative"})),vo=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"24px"}));var Do=styled(S,{shouldForwardProp:e=>e!=="isAllDay"})(({theme:e,isAllDay:o})=>({display:"flex",alignItems:"center",gap:e.spacing(1),position:"relative",paddingInline:"5px",".label":{width:"max-content"},...!o&&{paddingRight:e.spacing(1),"&:after":{content:'""',position:"absolute",width:"1px",background:e.palette.divider,right:0,height:17}}})),Mo=styled(S)(()=>({width:235})),Bo=styled(S)(({theme:e})=>({display:"flex",gap:"4px",".rmdp-input":{width:"64px",borderRadius:"19px",border:"1px solid",borderColor:e.palette.divider,color:e.palette.text.primary,fontSize:"11px",fontWeight:500,background:"transparent",cursor:"pointer"},".rmdp-input:focus":{boxShadow:e.shadows[7],border:`1px solid ${e.palette.info.dark}`,borderRadius:"19px"},".rmdp-time-picker":{boxShadow:e.shadows[5],borderRadius:e.spacing(1),padding:e.spacing(2),minWidth:"auto !important",div:{marginTop:0,display:"block"},"> div":{width:32,height:64},".rmdp-arrow":{borderColor:`${e.palette.background.transparent[1]} !important`},".rmdp-arrow-container":{justifyContent:"center","&:hover":{backgroundColor:"transparent",boxShadow:"unset"}},input:{borderRadius:"4px",border:`1px solid ${e.palette.divider}`,padding:0,width:32,height:32,fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:focus, &:focus-visible":{border:`1px solid ${e.palette.info.dark}`,outline:"unset"}},".dvdr":{margin:"7px 4px 0"},".rmdp-am, .rmdp-pm":{margin:0,width:32,height:32,flex:"auto",justifyContent:"center",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,display:"flex",cursor:"default"},"> div:last-child":{marginInlineStart:"4px",display:"block !important"},".rmdp-down, .rmdp-up":{position:"relative",i:{display:"none"},"&:before":{content:'""',position:"absolute",top:"5px",width:"10px",height:"10px",backgroundImage:`url(${Vc})`}},".rmdp-down:before":{transform:"rotate(180deg)"}},".rmdp-container":{position:"relative","> div":{top:"unset !important",bottom:"28px",transform:"unset !important"}}})),Eo=styled(S)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,paddingInline:"5px",width:"fit-content",height:32}));function Dt({values:e,setValues:o}){let{t:a}=useTranslation(),t=new DateObject(e[0]),n=new DateObject(e[1]),[p,l]=useState(t.dayOfYear===n.dayOfYear&&t.hour===0&&t.minute===0&&n.hour===23&&n.minute===59),m=({period:s,hour:d})=>s==="PM"&&d!==12?d+12:s==="AM"&&d===12?0:d,c=({hour:s,minute:d,period:i})=>{o([t.setHour(m({hour:s,period:i})).setMinute(d).setSecond(0),n]);},u=({hour:s,minute:d,period:i})=>{o([t,n.setHour(m({hour:s,period:i})).setMinute(d).setSecond(59)]);};return jsx(Mo,{children:jsxs(Eo,{children:[jsxs(Do,{isAllDay:p,children:[jsx("span",{className:"label",children:a("allDay")}),jsx(a$4,{checked:p,onChange:s=>{l(!p),s.target.checked?o([M(e[0]),B(e[1])]):o(e);}})]}),!p&&jsxs(Bo,{children:[jsx(j,{defaultTime:{hour:a$5(t.hour),minute:t.minute,period:t.hour>=12?"PM":"AM"},size:"small",onChange:c,enableRealTimeChange:true},`${e[0]?.toString()}-start`),jsx(j,{defaultTime:{hour:a$5(n.hour),minute:n.minute,period:n.hour>=12?"PM":"AM"},size:"small",onChange:u,enableRealTimeChange:true},`${e[1]?.toString()}-end`)]})]})})}var Ro=Dt;var Io=Ro;function At({defaultDate:e,onDateChange:o,mode:a="gregorian",onCalendarModeSwitch:t,numberOfMonths:n,noTimezone:p,noQuickFilter:l,maxDateRange:m,onCalendarGroupChange:c,groupBy:u,timezone:s,onChangeTimezone:d,browserTimezone:i,renderCalendarButton:D,mainSx:j,popperProps:te,rangeDatePickerProps:Ao,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te}){let[w,ke]=useState(X(e)),[x,C]=useState(w),[ze,Se]=useState(s??null),[ve,Wo]=useState(u||"day"),[De,Me]=useState(null),y=!!De,[Be,Ee]=useState(false),{t:re}=useTranslation(),I=useRef(null),Fo=yc(useId(),"range-calender"),ne=a==="hijri",Y=()=>{Me(null);},Oe=r=>{Me(r.currentTarget);};useEffect(()=>{if(!y){if(n===1)return;C(X(e));}},[y]),useEffect(()=>{if(e){let r=X(e);ke(r),C(r),I.current&&I.current.set("date",r[0]);}},[e]),useEffect(()=>{Se(s??null);},[s,y]);let Re=()=>{ke(x),Y();let r;x[0].dayOfYear===x[1].dayOfYear?r=[x[0],x[1]]:r=[M(x[0]),B(x[1])],o([r[0].toDate(),r[1].toDate()]),c?.(ve||"day"),d?.(ze);},Ho=useCallback(()=>{let r=w[0].format("MMM D"),G=w[1]?w[1].format("MMM D"):w[0].format("MMM D");return r===G&&!p?r:`${r} - ${G}`},[w,p]),jo=r=>{if(r.length<2||!m){C(r);return}let G=M(r[0]).toDate(),$o=B(r[1]).toDate(),Ie=Pt($o).diff(G,"day");if(Ie<=m){C(r);return}Ee(true),C([r[0],r[1].subtract(Ie-m,"d")]),setTimeout(()=>{Ee(false);},3e3);},Yo=r=>{C([M(r[0]),B(r[1])]),I.current&&I.current.set("date",r[0]);},Go=r=>{r.key==="Enter"&&x[1]&&!Be?(r.stopPropagation(),Re()):r.key==="Escape"&&(r.stopPropagation(),Y());};return jsxs(So,{id:Fo,"data-testid":"RangeCalender",sx:j,children:[D?D(y,Oe):jsx(Co,{onClick:Oe,open:y,children:(w[0]||w[1])&&Ho()}),y&&jsx(a$2,{onClick:r=>{r.stopPropagation(),Y();}}),jsx(xt,{open:y,anchorEl:De,placement:"bottom-end",...te,children:jsxs(bo,{onKeyDown:Go,children:[!l&&jsxs(ko,{children:[jsx(po,{onChange:Yo,isHijri:ne}),jsxs(vo,{children:[u&&jsx(Ve,{groupBy:ve,isCalenderOpen:y,onUpdate:r=>{Wo(r);}}),jsx(ro,{isHijri:ne,onCalendarModeSwitch:t})]})]}),jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(mo,{values:x,onChange:jo,isHijri:ne,ref:I,numberOfMonths:n,...Ao}),jsx(Rt,{in:Be&&!!m,children:jsx(a$3,{error:re("dateRangeError",{number:m}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(To,{sx:{borderBottomLeftRadius:"8px"},children:[!p&&Ce&&i&&Te?jsx(zo,{children:jsx(xo,{onChange:Se,selectedTimezone:ze,browserTimezone:i,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te},String(y))}):jsx("div",{}),new DateObject(x[0]).dayOfYear===new DateObject(x[1]).dayOfYear&&jsx(Io,{values:x,setValues:C}),jsxs(wo,{children:[jsx(ho,{variant:"contained",onClick:Y,children:re("cancel")}),jsx(yo,{variant:"contained",onClick:Re,disabled:!x[1],children:re("okay")})]})]})]})]})})]})}var Lo=At;var xi=Lo;export{xi as a};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Currency, Item } from '../../../types/index.js';
|
|
3
|
-
export interface TotalAmountProps {
|
|
4
|
-
totalGrossAmount: number;
|
|
5
|
-
items: Item[];
|
|
6
|
-
selectedCurrency: Currency;
|
|
7
|
-
isAmountIsMissing: boolean;
|
|
8
|
-
isDisabled?: boolean;
|
|
9
|
-
isLoading?: boolean;
|
|
10
|
-
onResetAllItems: () => void;
|
|
11
|
-
onAddFirstItem: (amount: number) => void;
|
|
12
|
-
}
|
|
13
|
-
declare function TotalAmount({ totalGrossAmount, items, selectedCurrency, isAmountIsMissing, isDisabled, isLoading, onResetAllItems, onAddFirstItem, }: Readonly<TotalAmountProps>): import("react").JSX.Element;
|
|
14
|
-
declare const _default: import("react").MemoExoticComponent<typeof TotalAmount>;
|
|
15
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './TotalAmount';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const InputStyled: import("@emotion/styled").StyledComponent<Omit<Readonly<import("@mui/material").InputProps & {
|
|
3
|
-
isError?: boolean | undefined;
|
|
4
|
-
hideArrows?: boolean | undefined;
|
|
5
|
-
}>, "ref"> & import("react").RefAttributes<HTMLInputElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
6
|
-
export declare const TotalAmountWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
9
|
-
export declare const Error: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TotalAmount } from './TotalAmount';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{ac as TotalAmount}from'../../_chunks/chunk-D2T3N7GI.js';import'../../_chunks/chunk-6AJGHLIA.js';import'../../_chunks/chunk-IWVUS45E.js';import'../../_chunks/chunk-2BKJV7M6.js';import'../../_chunks/chunk-GZ4VIHY2.js';import'../../_chunks/chunk-52PIMKF7.js';import'../../_chunks/chunk-U4BS6S22.js';import'../../_chunks/chunk-2NADVU3B.js';import'../../_chunks/chunk-BUZKD5FY.js';import'../../_chunks/chunk-XBVIZVR7.js';import'../../_chunks/chunk-I3P7QPUA.js';import'../../_chunks/chunk-GB5N3AEY.js';import'../../_chunks/chunk-3GEV5AOI.js';import'../../_chunks/chunk-ZPMREIUX.js';import'../../_chunks/chunk-YVGD6YMS.js';import'../../_chunks/chunk-KN3NJTTU.js';import'../../_chunks/chunk-RXLAHJVL.js';import'../../_chunks/chunk-EEU65NSL.js';import'../../_chunks/chunk-6S4TOQAE.js';import'../../_chunks/chunk-4JHD436N.js';import'../../_chunks/chunk-VRMAWN62.js';import'../../_chunks/chunk-QQBR2YOE.js';import'../../_chunks/chunk-YNCRHG2V.js';import'../../_chunks/chunk-57IWKRJC.js';import'../../_chunks/chunk-KHEICEBV.js';import'../../_chunks/chunk-624CB4ZD.js';import'../../_chunks/chunk-EDRNAIB5.js';import'../../_chunks/chunk-QH6TAHTA.js';import'../../_chunks/chunk-H5O5F5X6.js';import'../../_chunks/chunk-HVSVEO2H.js';import'../../_chunks/chunk-MARRXRP5.js';import'../../_chunks/chunk-RYLRWHII.js';import'../../_chunks/chunk-KSLT6R7T.js';import'../../_chunks/chunk-CC73AV3J.js';import'../../_chunks/chunk-ZBCHQZ2V.js';import'../../_chunks/chunk-WWQDYV4Q.js';import'../../_chunks/chunk-M5HH57QL.js';import'../../_chunks/chunk-FA67CAI7.js';import'../../_chunks/chunk-7VD4W2MV.js';import'../../_chunks/chunk-DWSY5MWS.js';import'../../_chunks/chunk-MAZVGT6F.js';import'../../_chunks/chunk-VLEEU2FO.js';import'../../_chunks/chunk-6E3W2EBT.js';import'../../_chunks/chunk-RAIKBMLV.js';import'../../_chunks/chunk-ZFTEDE2C.js';import'../../_chunks/chunk-FTQKOVBZ.js';import'../../_chunks/chunk-IU2CIO6M.js';import'../../_chunks/chunk-OMCR6ZDN.js';import'../../_chunks/chunk-WRVGVKKK.js';import'../../_chunks/chunk-OXEFLXNE.js';import'../../_chunks/chunk-OBSPPIDV.js';import'../../_chunks/chunk-ATOOWVEE.js';import'../../_chunks/chunk-N2LPXJYV.js';import'../../_chunks/chunk-PFS3RUBZ.js';import'../../_chunks/chunk-4XJAK7Y3.js';import'../../_chunks/chunk-WXOQQKYA.js';import'../../_chunks/chunk-G4HBEVB3.js';import'../../_chunks/chunk-FPEXFSFO.js';import'../../_chunks/chunk-37HMYKL2.js';import'../../_chunks/chunk-IEKEIKGI.js';import'../../_chunks/chunk-NTLRKE5H.js';import'../../_chunks/chunk-TSYM2TD4.js';import'../../_chunks/chunk-OFD3W4XI.js';import'../../_chunks/chunk-JGEONYF6.js';import'../../_chunks/chunk-AJOHANFX.js';import'../../_chunks/chunk-FQGGPJJZ.js';import'../../_chunks/chunk-J4335JLA.js';import'../../_chunks/chunk-RJ2CHCRC.js';import'../../_chunks/chunk-TGRKEJOI.js';import'../../_chunks/chunk-2M46764T.js';import'../../_chunks/chunk-KVOFAN6O.js';import'../../_chunks/chunk-J6HEXAGE.js';import'../../_chunks/chunk-VGIO2RGM.js';import'../../_chunks/chunk-56NDTN6N.js';import'../../_chunks/chunk-2KLQQ4GT.js';import'../../_chunks/chunk-ZONDSLTR.js';import'../../_chunks/chunk-VXF3NQFE.js';import'../../_chunks/chunk-7SY4AIJK.js';import'../../_chunks/chunk-KHM5KW53.js';import'../../_chunks/chunk-G3ZCQRFM.js';import'../../_chunks/chunk-NU3Z4ZPB.js';import'../../_chunks/chunk-TJ3OW2D3.js';import'../../_chunks/chunk-EG4YTSUA.js';import'../../_chunks/chunk-KOVN2TXQ.js';import'../../_chunks/chunk-KAZ3B4EF.js';import'../../_chunks/chunk-5ETS6LOQ.js';import'../../_chunks/chunk-YE6EIJWK.js';import'../../_chunks/chunk-V2V4UQFR.js';import'../../_chunks/chunk-OJFT5TWY.js';import'../../_chunks/chunk-55DNPRT6.js';import'../../_chunks/chunk-FQ2VMVUY.js';import'../../_chunks/chunk-RBELN5RP.js';import'../../_chunks/chunk-MUR4ILTY.js';import'../../_chunks/chunk-5SZU46PP.js';import'../../_chunks/chunk-ER5YRXAN.js';import'../../_chunks/chunk-GNY2VGGW.js';import'../../_chunks/chunk-2L6YN6BY.js';import'../../_chunks/chunk-2SBTZEUM.js';import'../../_chunks/chunk-DRYHO7YQ.js';import'../../_chunks/chunk-GFIXT2V6.js';import'../../_chunks/chunk-CLVIPK6L.js';import'../../_chunks/chunk-SZ2JIMZR.js';import'../../_chunks/chunk-37MMGHJP.js';import'../../_chunks/chunk-HK65MIL7.js';import'../../_chunks/chunk-HNUCLGTM.js';import'../../_chunks/chunk-U5GGG4B3.js';import'../../_chunks/chunk-CMM74PXZ.js';import'../../_chunks/chunk-MXISJOX2.js';import'../../_chunks/chunk-N372QRVU.js';import'../../_chunks/chunk-3YAJNHQC.js';import'../../_chunks/chunk-4GZ7XOYY.js';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type CollapseProps as MUICollapseProps } from '@mui/material/Collapse';
|
|
3
|
-
export interface CollapseProps extends MUICollapseProps {
|
|
4
|
-
}
|
|
5
|
-
export default function Collapse({ children, ...rest }: CollapseProps): import("react").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as default}from'../../_chunks/chunk-G3ZCQRFM.js';import'../../_chunks/chunk-MXISJOX2.js';import'../../_chunks/chunk-N372QRVU.js';import'../../_chunks/chunk-3YAJNHQC.js';import'../../_chunks/chunk-4GZ7XOYY.js';
|