@tap-payments/os-micro-frontend-shared 0.3.191 → 0.3.192-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.
Files changed (183) hide show
  1. package/build/_chunks/{chunk-4GZ7XOYY.js → chunk-65DHLOE2.js} +1 -1
  2. package/build/_chunks/{chunk-TWCRVIMF.js → chunk-7G4HONFM.js} +1 -1
  3. package/build/_chunks/chunk-BUZ4SKVB.js +1 -0
  4. package/build/_chunks/{chunk-NK3MGPRN.js → chunk-FGCM4XG4.js} +1 -1
  5. package/build/_chunks/chunk-HDCNWBW5.js +1 -0
  6. package/build/_chunks/{chunk-AQBSQEMA.js → chunk-HL4IRO4S.js} +1 -1
  7. package/build/_chunks/{chunk-WNU66KFJ.js → chunk-HOCMRLLW.js} +1 -1
  8. package/build/_chunks/{chunk-7XWB5BYG.js → chunk-J55JXVBR.js} +1 -1
  9. package/build/_chunks/chunk-JHXPO26H.js +1 -0
  10. package/build/_chunks/{chunk-CKN5W76E.js → chunk-LENRKQGR.js} +2 -2
  11. package/build/_chunks/{chunk-K227MKFN.js → chunk-OYJTFXHJ.js} +1 -1
  12. package/build/_chunks/{chunk-SQZTO3VZ.js → chunk-QGOUVN57.js} +1 -1
  13. package/build/_chunks/chunk-QM55EFW3.js +1 -0
  14. package/build/_chunks/chunk-VXBU5TPS.js +1 -0
  15. package/build/_chunks/chunk-WWHRZD52.js +1 -0
  16. package/build/_chunks/{chunk-PGNIENI6.js → chunk-YMCYR4NV.js} +1 -1
  17. package/build/components/ActionMenu/index.js +1 -1
  18. package/build/components/ActionsDropdownMenu/index.js +1 -1
  19. package/build/components/ActiveFilterChip/index.js +1 -1
  20. package/build/components/ActivityAreaChart/index.js +1 -1
  21. package/build/components/AmountConversionFilter/index.js +1 -1
  22. package/build/components/AmountInput/index.js +1 -1
  23. package/build/components/AmountSlider/index.js +1 -1
  24. package/build/components/AmountStatusChip/index.js +1 -1
  25. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  26. package/build/components/AppServices/index.js +1 -1
  27. package/build/components/AppServicesBar/index.js +1 -1
  28. package/build/components/AppWindowWrapper/index.js +1 -1
  29. package/build/components/AuthenticationTypeChip/index.js +1 -1
  30. package/build/components/Autocomplete/index.js +1 -1
  31. package/build/components/BetaBanner/index.js +1 -1
  32. package/build/components/BrandLogo/index.js +1 -1
  33. package/build/components/Calender/index.js +1 -1
  34. package/build/components/CardEmptyState/index.js +1 -1
  35. package/build/components/Chip/index.js +1 -1
  36. package/build/components/ChipStack/index.js +1 -1
  37. package/build/components/ColorPicker/index.js +1 -1
  38. package/build/components/ColumnViews/index.js +1 -1
  39. package/build/components/ConfirmDialog/index.js +1 -1
  40. package/build/components/CountryFilter/index.js +1 -1
  41. package/build/components/CountryFlag/index.js +1 -1
  42. package/build/components/CurrencyAmount/index.js +1 -1
  43. package/build/components/CurrencyFilter/index.js +1 -1
  44. package/build/components/CurrencySymbol/index.js +1 -1
  45. package/build/components/CustomBackdrop/index.js +1 -1
  46. package/build/components/Customer/index.js +1 -1
  47. package/build/components/DateFilter/index.js +1 -1
  48. package/build/components/DeviceIcon/index.js +1 -1
  49. package/build/components/Discount/index.js +1 -1
  50. package/build/components/DisplayAmount/index.js +1 -1
  51. package/build/components/Dropdown2/index.js +1 -1
  52. package/build/components/DropdownMenu/index.js +1 -1
  53. package/build/components/Error/index.js +1 -1
  54. package/build/components/ErrorToast/index.js +1 -1
  55. package/build/components/ExpandableSideBar/index.js +1 -1
  56. package/build/components/FileInputPreview/index.js +1 -1
  57. package/build/components/FilePreview/index.js +1 -1
  58. package/build/components/FileUpload/index.js +1 -1
  59. package/build/components/FileUploader/index.js +1 -1
  60. package/build/components/FilterDropdown/index.js +1 -1
  61. package/build/components/Filters/index.js +1 -1
  62. package/build/components/FlippingCard/index.js +1 -1
  63. package/build/components/HeatMap/index.js +1 -1
  64. package/build/components/Icon/index.js +1 -1
  65. package/build/components/IconWithBadge/index.js +1 -1
  66. package/build/components/Input/index.js +1 -1
  67. package/build/components/InputBase/index.js +1 -1
  68. package/build/components/InputNumber/index.js +1 -1
  69. package/build/components/Inputs/index.js +1 -1
  70. package/build/components/JSONViewer/index.js +1 -1
  71. package/build/components/LanguageDropdown/index.js +1 -1
  72. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  73. package/build/components/ListColumnFilter/index.js +1 -1
  74. package/build/components/ListHeader/index.js +1 -1
  75. package/build/components/ListLayout/index.js +1 -1
  76. package/build/components/Loader/index.js +1 -1
  77. package/build/components/MFWidgetLoader/index.js +1 -1
  78. package/build/components/MaskedText/index.js +1 -1
  79. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  80. package/build/components/MerchantLogo/index.js +1 -1
  81. package/build/components/MerchantsDropdown/index.js +1 -1
  82. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  83. package/build/components/NestedDropdown/index.js +1 -1
  84. package/build/components/NestedMultiSelect/BranchMenuItem.d.ts +12 -0
  85. package/build/components/NestedMultiSelect/FieldSelectedValues.d.ts +8 -0
  86. package/build/components/NestedMultiSelect/NestedMultiSelect.d.ts +4 -0
  87. package/build/components/NestedMultiSelect/NodeMenuItem.d.ts +10 -0
  88. package/build/components/NestedMultiSelect/SelectableOption.d.ts +9 -0
  89. package/build/components/NestedMultiSelect/constants.d.ts +13 -0
  90. package/build/components/NestedMultiSelect/index.d.ts +4 -0
  91. package/build/components/NestedMultiSelect/index.js +1 -0
  92. package/build/components/NestedMultiSelect/style.d.ts +45 -0
  93. package/build/components/NestedMultiSelect/type.d.ts +52 -0
  94. package/build/components/NestedMultiSelect/utils.d.ts +15 -0
  95. package/build/components/NoInternet/index.js +1 -1
  96. package/build/components/OpenFileInNewTab/index.js +1 -1
  97. package/build/components/PartnersFilter/index.js +1 -1
  98. package/build/components/PaymentSourceFilter/index.js +1 -1
  99. package/build/components/PhoneFilter/index.js +1 -1
  100. package/build/components/ProgressRing/index.js +1 -1
  101. package/build/components/RFH/index.js +1 -1
  102. package/build/components/RadioGroup/index.js +1 -1
  103. package/build/components/RangeCalender/index.js +1 -1
  104. package/build/components/RatingCount/index.js +1 -1
  105. package/build/components/ReceiptsViewer/index.js +1 -1
  106. package/build/components/ReferenceTypeFilter/index.js +1 -1
  107. package/build/components/ResizableHeightInput/index.js +1 -1
  108. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  109. package/build/components/SalesChannelFilter/index.js +1 -1
  110. package/build/components/SalesChannelFilter/style.d.ts +1 -1
  111. package/build/components/SearchButton/index.js +1 -1
  112. package/build/components/SearchListInput/index.js +1 -1
  113. package/build/components/SelectDropdown/index.js +1 -1
  114. package/build/components/StatusBar/index.js +1 -1
  115. package/build/components/StatusButton/index.js +1 -1
  116. package/build/components/StatusChip/index.js +1 -1
  117. package/build/components/StatusChipWithCopy/index.js +1 -1
  118. package/build/components/StatusFilter/index.js +1 -1
  119. package/build/components/StatusGroupChips/index.js +1 -1
  120. package/build/components/StatusIcons/index.js +1 -1
  121. package/build/components/StatusLabel/index.js +1 -1
  122. package/build/components/TableCells/index.js +1 -1
  123. package/build/components/TableReports/index.js +1 -1
  124. package/build/components/Timepicker/index.js +1 -1
  125. package/build/components/Toaster/index.js +1 -1
  126. package/build/components/ToggleView/index.js +1 -1
  127. package/build/components/Toolbar/index.js +1 -1
  128. package/build/components/ToolbarIcon/index.js +1 -1
  129. package/build/components/TooltipChip/index.js +1 -1
  130. package/build/components/TreeDropdown/index.js +1 -1
  131. package/build/components/VAT/index.js +1 -1
  132. package/build/components/VerificationIcon/index.js +1 -1
  133. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  134. package/build/components/VirtualTables/index.js +1 -1
  135. package/build/components/Widget/index.js +1 -1
  136. package/build/components/Window/index.js +1 -1
  137. package/build/components/WindowAppIcon/index.js +1 -1
  138. package/build/components/WindowSideBar/index.js +1 -1
  139. package/build/components/index.d.ts +1 -5
  140. package/build/components/index.js +1 -1
  141. package/build/components/primitives/index.js +1 -1
  142. package/build/constants/index.js +1 -1
  143. package/build/hooks/index.js +1 -1
  144. package/build/index.js +1 -1
  145. package/build/types/account.d.ts +1 -0
  146. package/build/types/accountWidget.d.ts +10 -1
  147. package/build/types/index.js +1 -1
  148. package/build/utils/index.js +1 -1
  149. package/package.json +2 -2
  150. package/build/_chunks/chunk-4AT6MVPS.js +0 -2
  151. package/build/_chunks/chunk-4H7CRAGJ.js +0 -1
  152. package/build/_chunks/chunk-A73QNHW7.js +0 -1
  153. package/build/_chunks/chunk-CF5MCUMN.js +0 -1
  154. package/build/_chunks/chunk-JARFVM2P.js +0 -1
  155. package/build/_chunks/chunk-P3QRKBID.js +0 -1
  156. package/build/_chunks/chunk-W6ULJ2HR.js +0 -1
  157. package/build/_chunks/chunk-ZDU6AH4F.js +0 -1
  158. package/build/components/AccountDropdown/Dropdown.d.ts +0 -13
  159. package/build/components/AccountDropdown/index.d.ts +0 -2
  160. package/build/components/AccountDropdown/index.js +0 -1
  161. package/build/components/AccountDropdown/style.d.ts +0 -18
  162. package/build/components/DropdownButton/ChevronIcon.d.ts +0 -3
  163. package/build/components/DropdownButton/DropdownButton.d.ts +0 -8
  164. package/build/components/DropdownButton/constants.d.ts +0 -13
  165. package/build/components/DropdownButton/index.d.ts +0 -4
  166. package/build/components/DropdownButton/index.js +0 -1
  167. package/build/components/DropdownButton/style.d.ts +0 -31
  168. package/build/components/DropdownButton/type.d.ts +0 -14
  169. package/build/components/MultiSelectWithSearch/ChildMenuItem.d.ts +0 -10
  170. package/build/components/MultiSelectWithSearch/FlatMenuItem.d.ts +0 -9
  171. package/build/components/MultiSelectWithSearch/MultiSelectWithSearch.d.ts +0 -4
  172. package/build/components/MultiSelectWithSearch/ParentMenuItem.d.ts +0 -13
  173. package/build/components/MultiSelectWithSearch/index.d.ts +0 -6
  174. package/build/components/MultiSelectWithSearch/index.js +0 -1
  175. package/build/components/MultiSelectWithSearch/style.d.ts +0 -32
  176. package/build/components/MultiSelectWithSearch/type.d.ts +0 -23
  177. package/build/components/MultiSelectWithSearch/utils.d.ts +0 -4
  178. package/build/components/SelectWithSearch/SearchIcon.d.ts +0 -8
  179. package/build/components/SelectWithSearch/SelectWithSearch.d.ts +0 -4
  180. package/build/components/SelectWithSearch/index.d.ts +0 -4
  181. package/build/components/SelectWithSearch/index.js +0 -1
  182. package/build/components/SelectWithSearch/style.d.ts +0 -28
  183. package/build/components/SelectWithSearch/type.d.ts +0 -34
@@ -1 +0,0 @@
1
- import {a}from'./chunk-2DC5PMER.js';import {j as j$1,f,V,R as R$1}from'./chunk-YHKF6F6S.js';import {vb,Eb,A,Cb,Pc}from'./chunk-YKKS24ES.js';import ue,{useState,useRef,useMemo}from'react';import {Box,CircularProgress,Typography}from'@mui/material';import fe from'@mui/material/ClickAwayListener';import h from'@mui/material/Box';import le from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';styled(j$1)(({theme:e})=>({fontSize:"10px",color:e.v2.palette.grey[500],fontWeight:600,lineHeight:"10px"}));styled(j$1)(({theme:e})=>({fontSize:"11px",color:e.v2.palette.base.black,fontWeight:600,lineHeight:"14.3px",width:200}));styled(h)(()=>({display:"flex",flexDirection:"column",maxHeight:400,overflow:"auto",gap:"8px"}));var H=styled(le)(({theme:e})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.info.dark}}));styled(f)({padding:0,width:12,height:12,".MuiSvgIcon-root, img":{width:12,height:12}});var D=styled(h)(()=>({display:"flex",flexDirection:"column",gap:"8px",padding:"4px"})),I=styled(h)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap",paddingInlineEnd:"20px"})),M=styled(h)(({theme:e,maxWidth:o})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${e.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer",...o&&{maxWidth:`${o}%`}}));styled(j$1)(()=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:"#000",cursor:"pointer",padding:8}));var N=styled(h)(({theme:e})=>({width:"100%",flexDirection:"column",border:`1px solid ${e.palette.grey[100]}`,borderRadius:"4px",backgroundColor:e.palette.grey[400],minWidth:"89px",position:"relative"})),z=styled(h)(()=>({position:"absolute",right:8,bottom:13.5,width:15,height:15}));var R=e=>e.length===0?true:"value"in e[0],$=(e,o,p)=>o?e.filter(r=>p.some(a=>r?.[a]?.toLowerCase().includes(o.toLowerCase()))):e,G=(e,o,p)=>e.map(r=>{let a=r?.options.map(l=>{let S=l?.options?.filter(n=>p.some(d=>n?.[d]?.toLowerCase().includes(o.toLowerCase())));return {...l,options:S}}).filter(l=>l?.options?.length>0);return {...r,options:a}}).filter(r=>r?.options?.length>0);function X({childOption:e,selectedOptions:o,onChangeOptions:p}){let[r,a]=useState(null),l=n=>{p([...o||[],n]);},S=n=>{p(o?.filter(d=>d.value!==n.value)||[]);};return jsxs(V,{onMouseEnter:n=>{e.options?.length>0&&a(n.currentTarget);},onMouseLeave:()=>{r&&a(null);},children:[jsxs(Box,{sx:{display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",maxWidth:"220px",minWidth:"89px"},children:[e.label,jsx("img",{src:vb,className:"arrow-icon",alt:"arrow"})]}),jsx(R$1,{sx:{maxHeight:"450px",overflow:"auto"},open:!!r,anchorEl:r,placement:"right-start",children:e.options?.map(n=>{let w=!!o?.find(s=>s.value===n.value);return jsx(V,{isSelected:w,onClick:s=>{s.stopPropagation(),s.preventDefault(),w?S(n):l(n);},children:jsx(Box,{sx:{flex:1,maxWidth:"220px",minWidth:"89px"},children:n.label})},n.value)})})]})}function J({parentOption:e,selectedOptions:o,onChangeOptions:p}){let[r,a]=useState(null);return jsxs(V,{onMouseEnter:l=>{e.options?.length>0&&a(l.currentTarget);},onMouseLeave:()=>{r&&a(null);},children:[jsxs(Box,{sx:{display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",maxWidth:"340px",minWidth:"89px"},children:[e.label,jsx("img",{src:vb,className:"arrow-icon",alt:"arrow"})]}),jsx(R$1,{sx:{maxHeight:"450px",overflow:"auto"},open:!!r,anchorEl:r,placement:"right-start",children:e.options?.map(l=>jsx(X,{childOption:l,selectedOptions:o,onChangeOptions:p},l.label))})]})}function Q({option:e,selectedOptions:o,onChangeOptions:p}){let r=o?.some(a=>a.value===e.value)??false;return jsx(V,{isSelected:r,onClick:a=>{if(a.stopPropagation(),a.preventDefault(),r){p(o?.filter(l=>l.value!==e.value)||[]);return}p([...o||[],e]);},children:jsx(Box,{sx:{flex:1,maxWidth:"220px",minWidth:"89px"},children:e.label})})}function ge({options:e,onChangeOptions:o,selectedOptions:p,placeholder:r,isLoading:a$1,searchBy:l=["label"],disabled:S}){let n=R(e),[d,w]=useState(null),[s,E]=useState(""),ee=useRef(null),b=!!d,te=t=>{w(b?null:t.currentTarget);},oe=()=>{w(null);},re=()=>{s&&E("");},T=useMemo(()=>{if(n)return $(e,s,l)},[n,e,s,l]),F=useMemo(()=>{if(!n)return s?G(e,s,l):e},[n,e,s,l]),ne=!!(n?T:F)?.length,ie=a$1?jsx(CircularProgress,{size:16}):jsx(a,{src:s?Eb:A,alt:s?"close":"search",onClick:re,sx:{width:12,height:12}}),x=Number(p?.length??0);return jsx(fe,{onClickAway:()=>{b&&oe();},children:jsxs(N,{id:"TriggerWrapper","data-testid":"MultiSelectWithSearch",onClick:t=>!S&&te(t),ref:ee,children:[jsx(Typography,{color:"grey",sx:{cursor:"pointer",fontSize:"10px",padding:"4px"},component:"label",children:r}),x===0&&jsx(Typography,{sx:{fontWeight:500,fontSize:"11px",padding:"0px 4px 4px"},component:"p",children:"Please Select"}),jsx(z,{component:"img",src:Cb,alt:"down arrow",sx:{...b&&{transform:"rotate(180deg)"}}}),!!x&&jsx(I,{id:"SelectedBadgesWrapper",children:x>0&&x<=2?p?.map(t=>jsxs(M,{maxWidth:90,children:[jsx(a,{src:Pc,alt:"blue-check",sx:{width:10,height:7.5}}),jsx("span",{children:t.label})]},t.value)):x>2&&p?.slice(0,2)?.map((t,v)=>jsxs(ue.Fragment,{children:[jsxs(M,{maxWidth:90,children:[jsx(a,{src:Pc,alt:"blue-check",sx:{width:10,height:7.5}}),jsx("span",{children:t.label})]}),v===1&&jsx(M,{maxWidth:90,children:jsxs("span",{children:["+",x-2]})})]},t.value))}),jsx(R$1,{open:b,anchorEl:d,sx:{margin:"8px 0",maxHeight:330,overflow:"auto",maxWidth:"340px"},children:jsxs(D,{children:[jsx(H,{placeholder:r||"Select",endAdornment:ie,onClick:t=>{t.stopPropagation();},value:s,onChange:t=>{E(t.target.value);},disableUnderline:true,sx:{cursor:"default",width:"100%",backgroundColor:"white",border:"1px solid #F2F2F2",...ne&&{marginBottom:"4px"},...s&&{cursor:"pointer"}}}),jsx(I,{children:p?.map(t=>jsxs(M,{sx:{maxWidth:"150px"},onClick:v=>{v.stopPropagation(),v.preventDefault(),o(p?.filter(pe=>pe.value!==t.value)||[]);},children:[jsx(a,{src:Pc,alt:"blue-check",sx:{width:10,height:7.5}}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.label}),jsx(a,{src:Eb,alt:"close",sx:{width:9,height:9}})]},t.value))}),n?T?.map(t=>jsx(Q,{option:t,selectedOptions:p,onChangeOptions:o},t.value)):F?.map(t=>jsx(J,{parentOption:t,selectedOptions:p,onChangeOptions:o},t.label))]})})]})})}var j=ge;var pt=j;export{X as a,J as b,Q as c,pt as d};
@@ -1 +0,0 @@
1
- import {d as d$1}from'./chunk-P3QRKBID.js';import {V}from'./chunk-YHKF6F6S.js';import {yc}from'./chunk-PLMJIRXJ.js';import {Eb,A as A$1}from'./chunk-YKKS24ES.js';import {useId,useMemo,useState}from'react';import d from'@mui/material/Box';import R from'@mui/material/Skeleton';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var b=styled(d)(({theme:e})=>({display:"flex",flexDirection:"column",borderRadius:"8px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.common.white,maxHeight:"232px",overflow:"auto"})),k=styled(d)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),v=styled(d,{shouldForwardProp:e=>e!=="$active"})(({$active:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:"13px",height:"13px",borderRadius:"50%",...e&&{backgroundColor:"#F2F2F2"}})),y=styled("img",{shouldForwardProp:e=>e!=="$isClear"})(({$isClear:e})=>({...e&&{backgroundColor:"#F2F2F2",borderRadius:"4px",width:"8px",height:"8px"}})),W=styled(d$1,{shouldForwardProp:e=>e!=="$hasSearchValue"})(({$hasSearchValue:e})=>({cursor:e?"pointer":"default",width:"100%",fontSize:"11px",border:"1px solid #F2F2F2",backgroundColor:"#fff","&.Mui-disabled":{backgroundColor:"#F8F8F8"}})),w=styled(V)(({theme:e})=>({backgroundColor:"#F8F8F8",fontSize:"11px",fontWeight:600,padding:"4px 8px",color:e.palette.info.dark,gap:"4px"})),A=styled(V)(()=>({fontSize:"11px",padding:"4px 8px",gap:"4px",fontWeight:400})),L=styled(R)(()=>({width:"100%",height:24}));function M({onSalesChannelChange:e,onSearchChange:h,filteredOptions:a,isLoading:P,initialSalesChannels:m,initialSalesChannelsSearch:V}){let B=yc(useId(),"sales-channel-filter"),o=useMemo(()=>m||[],[m]),[l,u]=useState(V||""),S=t=>o.some(i=>i.id===t),s=useMemo(()=>o?.length===a.length&&a?.length>0,[o,a]),g=useMemo(()=>o?.some(t=>t.id==="blank")&&o?.length===1,[o]),x=useMemo(()=>o?.length===0||g,[g,o?.length]);return jsxs(k,{id:B,"data-testid":"SalesChannelFilter",children:[jsx(W,{$hasSearchValue:!!l,placeholder:"Search",endAdornment:!x&&jsx(v,{$active:!!l,children:jsx(y,{src:l?Eb:A$1,alt:"search",$isClear:!!l,onClick:()=>{u(""),h("");}})}),disabled:x,onChange:t=>{u(t.target.value),h(t.target.value);},value:l,disableUnderline:true}),jsx(b,{children:P?Array.from({length:9}).map((t,i)=>jsx(L,{variant:"rectangular"},i)):jsxs(Fragment,{children:[jsx(w,{isSelected:s,isIndeterminate:!s&&(o?.length||0)>0,onClick:t=>{t.stopPropagation(),e(s?[]:a);},children:s?"Deselect All":"Select All"}),a.map(t=>jsx(A,{isSelected:S(t.id),onClick:i=>{i.stopPropagation();let O=S(t.id)?o?.filter(D=>D.id!==t.id):[...o??[],t];e(O);},children:t?.name?.en},t.id))]})})]})}export{M as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-QVGSIVO2.js';import {a as a$1}from'./chunk-ZDU6AH4F.js';import {j,f}from'./chunk-YHKF6F6S.js';import {yc}from'./chunk-PLMJIRXJ.js';import {Pc}from'./chunk-YKKS24ES.js';import {useId,useState,useCallback,useMemo,createElement}from'react';import c from'@mui/material/Box';import ne from'@mui/material/Typography';import O from'@mui/material/Input';import {styled}from'@mui/material/styles';import {CircularProgress}from'@mui/material';import ee from'@mui/material/SvgIcon';import {jsx,jsxs}from'react/jsx-runtime';var me=styled(j)(({theme:e})=>({fontSize:"10px",color:e.v2.palette.grey[500],fontWeight:600,lineHeight:"10px"})),xe=styled(j)(({theme:e})=>({fontSize:"11px",color:e.v2.palette.base.black,fontWeight:600,lineHeight:"14.3px",width:200})),fe=styled(c)(()=>({display:"flex",flexDirection:"column",maxHeight:400,overflow:"auto",gap:"8px"})),D=styled(O)(({theme:e})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.info.dark}})),Se=styled(f)({padding:0,width:12,height:12,".MuiSvgIcon-root, img":{width:12,height:12}}),F=styled(c)(()=>({display:"flex",flexDirection:"column",gap:"8px",padding:"4px"})),ge=styled(c)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap"})),Ce=styled(c)(({theme:e})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${e.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer"})),g=styled(j)(({selected:e})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:"#000",cursor:"pointer",padding:8,justifyContent:"space-between",...e&&{backgroundColor:"#F8F8F8"}}));var te="M4.83332 0C2.16987 0 0 2.16988 0 4.83334C0 7.4968 2.16987 9.66668 4.83332 9.66668C5.98544 9.66668 7.04455 9.2597 7.87628 8.58335L11.1465 11.8535C11.1925 11.9015 11.2477 11.9398 11.3088 11.9662C11.3698 11.9926 11.4356 12.0066 11.5021 12.0072C11.5686 12.0079 11.6346 11.9953 11.6962 11.9702C11.7578 11.945 11.8137 11.9078 11.8607 11.8608C11.9078 11.8138 11.945 11.7578 11.9701 11.6962C11.9953 11.6346 12.0079 11.5686 12.0072 11.5021C12.0065 11.4356 11.9926 11.3699 11.9662 11.3088C11.9398 11.2478 11.9015 11.1926 11.8535 11.1465L8.58331 7.87632C9.25966 7.04458 9.66664 5.98546 9.66664 4.83334C9.66664 2.16988 7.49677 0 4.83332 0ZM4.83332 1C6.95633 1 8.66665 2.71032 8.66665 4.83334C8.66665 5.86755 8.25871 6.80192 7.59699 7.49025C7.5562 7.52023 7.5202 7.55623 7.49022 7.59702C6.80189 8.25875 5.86752 8.66668 4.83332 8.66668C2.71031 8.66668 0.999997 6.95636 0.999997 4.83334C0.999997 2.71032 2.71031 1 4.83332 1Z";function oe({size:e=12,sx:a,className:r,...d}){return jsx(ee,{viewBox:"0 0 12 12",inheritViewBox:true,className:`${r??""} MUISvgIcon__search-icon`,sx:{width:e,height:e,color:"text.primary",...a},...d,children:jsx("path",{d:te,fill:"currentColor"})})}var N=oe;function pe({options:e,onChangeOption:a$2,selectedOption:r,placeholder:d,label:A,isLoading:R,renderOption:C,iconUrl:h,disabled:u,onClearValue:m,slotProps:V={},hideSelectedCheckmark:$,listWrapperSx:Z={},name:U,...q}){let G=yc(useId(),"select-with-search"),{selectInput:I={},searchInput:J={},dropdownContainer:v={},item:b={}}=V,[y,w]=useState(null),[n,x]=useState(""),K=useCallback(()=>{m!==void 0?m():a$2(null);},[m,a$2]),f=!!y,Q=t=>{u||w(f?null:t.currentTarget);},S=()=>{w(null),x("");},X=R?jsx(CircularProgress,{size:16}):jsx(N,{onClick:()=>{n&&x("");},role:"button"}),W=useMemo(()=>n?e.filter(t=>{let p=t?.label?.toLowerCase(),j=t?.value?.toLowerCase();return p?.includes(n.toLowerCase())||j?.includes(n.toLowerCase())}):e,[e,n]),Y=useMemo(()=>jsx(c,{sx:{display:"flex",alignItems:"center",maxWidth:16},children:jsx(c,{component:"img",src:h,alt:"icon",sx:{maxWidth:12,height:12}})}),[h]);return jsx(a,{id:G,"data-testid":"SelectWithSearch",disabled:u,open:f,anchorEl:y,onOpen:Q,onClose:S,hasValue:!!r?.value,onClear:K,trigger:jsx(a$1,{className:"SelectWithSearch_input",name:U,placeholder:"Please Select",label:A,sx:{cursor:"pointer"},value:r?.label||"",InputLabelProps:{filled:!!r?.label},disabled:u,...I,InputProps:{readOnly:true,disableUnderline:true,...!!h&&{startAdornment:Y},...I.InputProps}}),listWrapperSx:{height:"100%",overflow:"hidden",...Z},slotProps:{popover:{slotProps:{paper:{sx:{overflow:"hidden"}}}}},...q,children:jsxs(F,{...v,className:`SelectWithSearch_container ${v?.className??""}`,children:[jsx(D,{className:"SelectWithSearch_input",placeholder:d||"Select",endAdornment:X,onClick:t=>{t.stopPropagation();},value:n,onChange:t=>{x(t.target.value);},disableUnderline:true,sx:{cursor:"default",width:"100%",backgroundColor:"white",border:"1px solid #F2F2F2",...e.length&&{marginBottom:"4px"},...n&&{cursor:"pointer"}},...J}),jsxs(c,{className:"SelectWithSearch_options",overflow:"auto",maxHeight:400,children:[W.length===0&&n&&jsx(g,{selected:false,...b,children:jsx(ne,{component:"span",fontSize:"10px",fontWeight:500,color:"#8D8D94",children:"No results found"})}),W.map(t=>C?C(t,{closeDropdown:S,open:f}):createElement(g,{...b,className:`SelectWithSearch_item ${r?.value===t.value?"SelectWithSearch_item-selected":""}`,key:t.value,selected:r?.value===t.value,onClick:p=>{p.stopPropagation(),p.preventDefault(),r?.value===t.value?a$2(null):a$2(t),S();}},jsx("span",{children:t.label}),!$&&r?.value===t?.value&&jsx(c,{component:"img",src:Pc,alt:"close",sx:{width:10,height:7.5}})))]})]})})}var H=pe;var Re=H;export{me as a,xe as b,fe as c,D as d,Se as e,F as f,ge as g,Ce as h,g as i,Re as j};
@@ -1 +0,0 @@
1
- import {j as j$1}from'./chunk-YHKF6F6S.js';import {yc}from'./chunk-PLMJIRXJ.js';import {Xc,Cb}from'./chunk-YKKS24ES.js';import {memo,useId}from'react';import n from'@mui/material/Box';import W from'@mui/material/Popover';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var x=styled(n,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:e,disabled:r})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingInlineStart:"8px",paddingInlineEnd:"4px",paddingTop:"6px",paddingBottom:"6px",borderRadius:"4px",background:"#F9F9F9",border:"1px solid #F9F9F9",cursor:"pointer",...e&&{borderColor:o.palette.info.dark,background:o.palette.common.white},...r&&{cursor:"not-allowed"}})),s=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"4px",fontSize:"10px",fontWeight:500,flex:1})),c=styled(n)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:200,marginTop:"4px",width:"auto",overflow:"auto"}));styled(j$1,{shouldForwardProp:o=>o!=="selected"})(({selected:o})=>({paddingInlineStart:"12px",paddingInlineEnd:"8px",paddingTop:"8px",paddingBottom:"8px",fontSize:"10px",color:"#000",fontWeight:500,lineHeight:"10px",cursor:"pointer",...o&&{backgroundColor:"#F8F8F8"}}));function H({onClose:o,open:e,anchorEl:r,trigger:b,onOpen:f,children:h,disabled:u}){let w=yc(useId(),"account-dropdown");return jsxs(x,{id:w,open:e,onClick:f,"data-testid":"Dropdown",disabled:u,children:[jsx(s,{children:b}),jsx(n,{sx:{width:16,height:16,display:"flex",alignItems:"center"},children:jsx(n,{component:"img",src:e?Xc:Cb,alt:"arrow",sx:{width:16,height:16,...e&&{width:12,height:12,padding:"2px"}}})}),jsx(W,{open:e,anchorEl:r,sx:{width:r?.clientWidth},onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{style:{width:r?.clientWidth,maxWidth:"unset"}}},children:jsx(c,{children:h})})]})}var g=memo(H);var j=g;export{j as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-4KSZBODD.js';import {a as a$1}from'./chunk-4QONVXGE.js';import {aa,ba}from'./chunk-YHKF6F6S.js';import {yc,Ac}from'./chunk-PLMJIRXJ.js';import {Pc,Cb,A}from'./chunk-YKKS24ES.js';import qt,{useId,forwardRef,memo,useState,useCallback,useMemo,useEffect}from'react';import Le from'@mui/material/Box';import {styled}from'@mui/material/styles';import _t from'@mui/material/TextField';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import po from'@mui/material/InputLabel';import so from'@mui/material/MenuItem';import Jt from'@mui/material/SvgIcon';import eo from'@mui/material/IconButton';import Yt from'@mui/material/CircularProgress';import ro from'@mui/material/FormControl';import Ue from'@mui/material/Select';import Mo from'@mui/material/Skeleton';import {styled as styled$1,Popper,Box,ClickAwayListener}from'@mui/material';import Wo from'@mui/material/Input';var Ae=styled(Le)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",minHeight:40,"& .MuiTextField-root":{flex:1,margin:"0 !important"}})),We=styled(_t,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows","hasLabel"].includes(e)})(({theme:e,hasError:t,feedbackType:r,hasFeedback:n,hideArrows:g,hasLabel:l,disabled:s})=>{let{borderColor:u}=aa(e,r),a=n?"4px 4px 0 0":"4px",c=s?e.palette.grey[400]:e.palette.common.white,o=e.palette.divider;return r&&(o=u),t&&!r&&(o=e.palette.error.main),{border:`1px solid ${o}`,borderBottom:n?"none":void 0,borderRadius:a,...g&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputLabel-root":{fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,overflow:"visible"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)"},"& .MuiFilledInput-root":{maxHeight:"40px !important",height:"40px",overflow:"hidden",borderRadius:a,backgroundColor:c,paddingTop:l?"11px":"0px",paddingBottom:l?"4px":"0px",paddingLeft:"8px",boxSizing:"border-box",display:"inline-flex",alignItems:l?"stretch":"center","&:before, &:after":{display:"none"},"&:hover, &.Mui-focused, &.Mui-disabled":{backgroundColor:c}},"& .MuiFilledInput-input":{margin:0,padding:"0 !important",minHeight:0,height:"auto",boxSizing:"border-box",display:"flex",alignItems:l?"flex-end":"center",alignSelf:l?"flex-end":"center",fontSize:"11px",lineHeight:"11px",color:e.palette.text.primary,paddingBottom:l?"1px !important":"0 !important","&::placeholder":{color:e.palette.grey[500],opacity:1}}}}),He=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var Ne=qt.forwardRef(({name:e,onChange:t,hasError:r,helperText:n,hideArrows:g,feedback:l,InputProps:s,InputLabelProps:u,label:a,placeholder:c,...o},y)=>{let C=yc(useId(),"input-base"),I=x=>{t?.(x.target.value??"");},{isProvided:m,isVisible:b,type:p}=Ac(l),S=typeof a=="string"&&a.trim().length>0?a:void 0,v=S??c,f=S&&typeof c=="string"?c:void 0;return jsxs(Le,{children:[jsx(Ae,{id:C,"data-testid":"InputBase",children:jsx(We,{rows:1,hasError:!!r&&!m,hasFeedback:b,feedbackType:p,hasLabel:!!v,fullWidth:true,size:"small",variant:"filled",ref:y,name:e,type:o.type??"text",label:v,placeholder:f,onChange:I,InputLabelProps:u,InputProps:{disableUnderline:true,...s,sx:s?.sx},hideArrows:g,...o})}),m?jsx(ba,{...l}):null,!m&&n&&jsx(He,{children:n})]})});Ne.displayName="InputBase";var ze=Ne;var Kt=ze;var $e=forwardRef((e,t)=>jsx(Jt,{ref:t,viewBox:"0 0 8 8",fontSize:"small",...e,children:jsx("path",{d:"M6.63965 0.102539C6.75727 0.0997602 6.87304 0.133137 6.97168 0.197266C7.07023 0.261345 7.14718 0.353407 7.19238 0.461914C7.23757 0.570522 7.24961 0.690513 7.22559 0.805664C7.20154 0.920834 7.1425 1.02595 7.05762 1.10742L7.05664 1.10938L4.56738 3.59766L4.49512 3.66992L7.05762 6.23242C7.11359 6.28617 7.15865 6.35066 7.18945 6.42188C7.22023 6.49308 7.23648 6.5699 7.2373 6.64746C7.23809 6.72499 7.22359 6.80223 7.19434 6.87402C7.16499 6.9459 7.1213 7.0115 7.06641 7.06641C7.01149 7.12132 6.94592 7.16498 6.87402 7.19434C6.8022 7.22362 6.72502 7.23809 6.64746 7.2373C6.56987 7.23649 6.4931 7.22024 6.42188 7.18945C6.35064 7.15865 6.28618 7.1136 6.23242 7.05762L6.23145 7.05664L3.74219 4.56836L3.66992 4.49512L3.59766 4.56836L1.1084 7.05664L1.10742 7.05762C1.05365 7.11362 0.989227 7.15864 0.917969 7.18945C0.846721 7.22025 0.769997 7.2365 0.692383 7.2373C0.614798 7.23809 0.537661 7.22364 0.46582 7.19434C0.393921 7.16498 0.328351 7.12132 0.273438 7.06641C0.218559 7.01151 0.174849 6.94589 0.145508 6.87402C0.116258 6.80223 0.101751 6.72498 0.102539 6.64746C0.103364 6.5699 0.119618 6.49308 0.150391 6.42188C0.181198 6.35065 0.226245 6.28617 0.282227 6.23242L2.84473 3.66992L2.77246 3.59766L0.283203 1.10938L0.282227 1.1084L0.224609 1.04297C0.172384 0.974382 0.136093 0.894624 0.118164 0.80957C0.0942576 0.695891 0.104774 0.577375 0.148438 0.469727C0.192107 0.362124 0.266971 0.269962 0.363281 0.205078C0.459591 0.140238 0.573348 0.105497 0.689453 0.105469C0.767281 0.105527 0.844313 0.121103 0.916016 0.151367C0.987801 0.181723 1.05308 0.226359 1.10742 0.282227L3.66992 2.84473L6.23242 0.282227C6.33914 0.171037 6.48558 0.106239 6.63965 0.102539Z",fill:"#20232B",stroke:"white",strokeWidth:.20511})}));$e.displayName="DefaultClearIcon";var z=$e;var _e=forwardRef((e,t)=>jsx(Jt,{ref:t,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"#20232B",stroke:"#20232B",strokeWidth:.233333})}));_e.displayName="DefaultSelectIcon";var qe=_e;function ke({size:e=20,color:t="grey.A400",...r}){return jsx(Yt,{size:e,sx:{backgroundColor:"transparent",color:t},...r})}function K({endAdornmentProp:e,isLoading:t,showClear:r,showMenuArrow:n,menuOpen:g,IconComponent:l,ClearIconComponent:s=z,onClear:u,onClearDefault:a}){return !(e||r||t||n)?null:jsxs(Le,{className:"SelectBase-endAdornmentRoot",component:"span",children:[e,t?jsx(ke,{}):null,!t&&r?jsx(eo,{className:"SelectBase-clearIconButton",type:"button",tabIndex:0,size:"small","aria-label":"Clear selection",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},onClick:o=>{o.preventDefault(),o.stopPropagation(),u?u():a();},sx:o=>({p:"1px",flexShrink:0,cursor:"pointer",color:"inherit",backgroundColor:"transparent",...l?{mr:2}:{},"&:hover":{backgroundColor:o.palette.action.hover},"&:focus-visible":{outline:`2px solid ${o.palette.primary.main}`,outlineOffset:1}}),children:jsx(s,{sx:{fontSize:8,width:8,height:8}})}):null,!t&&n&&!l&&jsx(Le,{component:"span",className:`SelectBase-menuTriggerIcon${g?" SelectBase-menuTriggerIcon-open":""}`,"aria-hidden":true,children:jsx(qe,{})})]})}function le(e,t){if(e==null)return false;if(Array.isArray(e))return e.length>0;if(typeof e=="object"){if(t){let n=t(e);return n!=null&&n!==""}let r=e.id;return r!=null&&r!==""}return String(e)!==""}var pe=styled(ro)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%",cursor:"pointer","& .MuiInputBase-root":{cursor:"pointer"},"& .MuiInputBase-root.Mui-disabled":{cursor:"default"},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,height:"100%",pointerEvents:"none"},".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%"}}));styled(Ue)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"4px",boxShadow:e.shadows[17],border:"none",outline:"none","&:focus":{border:"1px solid #1F88D0"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"},"&.Mui-focused fieldset":{border:"2px solid red"}},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%"}}));var se=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),de=styled(Ue,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,error:t,feedbackType:r,hasFeedback:n})=>{let{borderColor:g}=aa(e,r),l=n?"4px 4px 0 0":"4px";return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:l,overflow:"hidden",backgroundColor:e.palette.grey[400],"&.Mui-disabled":{backgroundColor:e.palette.grey[400]},".MuiSelect-select":{padding:"0 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:l,fontSize:"11px",cursor:"pointer","&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:"0 8px !important"},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .SelectBase-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,gap:"8px",position:"relative",zIndex:1},"& .SelectBase-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"inherit",lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})}},"& .SelectBase-menuTriggerIcon-open svg, & .SelectBase-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .SelectBase-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...r&&{border:`1px solid ${g}`},...n&&{borderBottom:"none"},...t&&{border:`1px solid ${e.palette.error.main}`}}}),ue=styled(Le)(()=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1,cursor:"pointer","&:has(.MuiInputBase-root.Mui-disabled)":{cursor:"default"}}));function uo(e,t){let{menuSearchable:r,menuSearchPlaceholder:n,...g}=e,{required:l,hasError:s,label:u,value:a,helperText:c,feedback:o,onChange:y,options:C,isOptionEqualToValue:I,renderOption:m,getOptionValue:b,isLoading:p,children:S,getOptionLabel:v,IconComponent:f,showClearIcon:x=false,ClearIconComponent:T=z,onClear:E,endAdornment:Y,inputProps:xe,open:O,onOpen:j,onClose:ee,menuHasSelectedCheckMark:Ce=false,..._}=g,he=yc(useId(),"select-base"),[Ie,Se]=useState(false),q=O??Ie,A=useCallback((i,U)=>{U?j?.(i):ee?.(i),O===void 0&&Se(U);},[j,ee,O]),Be=i=>{y?.(i);},Pe=()=>a==null?"":m?m(a):v?v(a):a?.label??"",te="";a!=null&&(te=(b?b(a):a?.id)??"");let V=!!(_.disabled||p),oe=x&&le(a,b)&&!V,d=jsx(K,{endAdornmentProp:Y,isLoading:!!p,showClear:oe,showMenuArrow:!p,menuOpen:q,IconComponent:f,ClearIconComponent:T,onClear:E,onClearDefault:()=>y?.(null)}),{isProvided:h,isVisible:L,type:B}=Ac(o);return jsxs(ue,{onMouseDown:i=>{i.button===0&&(i.target.closest('.MuiSelect-select[role="combobox"]')||i.target.closest(".SelectBase-clearIconButton")||V||(i.preventDefault(),i.stopPropagation(),A(i,!q)));},onClick:i=>{i.target.closest('.MuiSelect-select[role="combobox"]')||i.target.closest(".SelectBase-clearIconButton")||(i.preventDefault(),i.stopPropagation());},children:[jsxs(pe,{id:he,variant:"filled","data-testid":"SelectBase",required:l,children:[jsx(po,{id:`select-label-${u.trim()}`,"data-testid":"SelectBase_InputLabel",children:u}),jsx(de,{"data-testid":"SelectBase_Select",ref:t,value:te,error:s&&!L,feedbackType:B,hasFeedback:L,disableUnderline:true,required:l,labelId:`select-label-${u.trim()}`,id:`select-label-${u.trim()}`,renderValue:Pe,..._,open:q,onOpen:i=>A(i,true),onClose:i=>A(i,false),inputProps:xe,disabled:V,IconComponent:f??(()=>null),endAdornment:d,children:S||C?.map(i=>{let U=I?I(i,a):i?.id===a?.id,$t=(b?b(i):i?.id)??i?.label??"select-base-item";return jsxs(so,{disabled:!!i.disabled,value:(b?b(i):i?.id)??"",onClick:()=>{Be(i);},sx:{fontSize:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:1,backgroundColor:Ee=>U?Ee.palette.action.hover:Ee.palette.common.white},children:[jsx(Le,{component:"span",sx:{flex:1,minWidth:0},children:m?m(i):i.label}),Ce&&U?jsx(Le,{component:"img",src:Pc,alt:"",sx:{width:10,height:7.5,flexShrink:0}}):null]},`select-base-item-${$t}`)})})]}),h?jsx(ba,{...o}):jsx(se,{children:c})]})}var Ke=qt.forwardRef(uo);function Co({required:e,hasError:t,label:r,value:n,helperText:g,feedback:l,onChange:s,options:u,isOptionEqualToValue:a,renderOption:c,getOptionValue:o,isLoading:y,children:C,getOptionLabel:I,IconComponent:m,showClearIcon:b=false,ClearIconComponent:p=z,onClear:S,endAdornment:v,inputProps:f,open:x,onOpen:T,onClose:E,...Y},xe){let[O,j]=useState(false),ee=yc(useId(),"select-base-multiple"),Ce=x??O,_=useCallback((d,h)=>{h?T?.(d):E?.(d),x===void 0&&j(h);},[T,E,x]),he=d=>{s?.(d);},Ie=()=>{let d=n?.filter(h=>h!=null)??[];return o?d.map(o):d.map(h=>h?.id)},Se=useMemo(()=>u?.filter(d=>n?.some(h=>{if(h==null)return false;if(a)return a(d,h);if(o){let W=o(d),H=o(h);return W===H||String(W)===String(H)}let L=d?.id,B=h?.id;return L===B||String(L)===String(B)})),[u,n,a,o]),q=()=>Se?.map(d=>I?I(d):d.label)?.join(", "),A=!!(Y.disabled||y),Be=b&&le(n,o)&&!A,te=jsx(K,{endAdornmentProp:v,isLoading:!!y,showClear:Be,showMenuArrow:!y,menuOpen:Ce,IconComponent:m,ClearIconComponent:p,onClear:S,onClearDefault:()=>s?.([])}),{isProvided:V,isVisible:oe,type:Fe}=Ac(l);return jsxs(ue,{children:[jsxs(pe,{id:ee,variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(po,{id:`select-label-${r.trim()}`,"data-testid":"SelectBase_InputLabel",children:r}),jsx(de,{multiple:true,"data-testid":"SelectBase_Select",ref:xe,value:Ie()??"",error:t&&!oe,feedbackType:Fe,hasFeedback:oe,disableUnderline:true,required:e,labelId:`select-label-${r.trim()}`,id:`select-label-${r.trim()}`,renderValue:q,...Y,open:x,onOpen:d=>_(d,true),onClose:d=>_(d,false),inputProps:f,disabled:A,IconComponent:m??(()=>null),endAdornment:te,onChange:d=>{let L=d.target.value?.map(B=>u?.find(W=>{if(o){let i=o(W);return i===B||String(i)===String(B)}let H=W?.id;return H===B||String(H)===String(B)}));s?.(L?.filter(B=>B!=null)??[]);},children:C||u?.map((d,h)=>{let L=a?a(d,n):d?.id===n?.id;return jsx(so,{value:(o?o(d):d?.id)??"",onClick:()=>{he(d);},sx:{fontSize:"12px",backgroundColor:B=>L?B.palette.action.hover:B.palette.common.white},children:c?c(d):d.label},`select-base-multiple-item-${h}`)})})]}),V?jsx(ba,{...l}):jsx(se,{children:g})]})}var Je=qt.forwardRef(Co);var ho=Ke;var Qe=styled$1("button")(({theme:e,disabled:t})=>({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:t?"default":"pointer",opacity:t?.5:1})),Xe=styled$1(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Ye=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),je=styled$1("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"})),et=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),tt=styled$1(Box)(()=>({color:"red !important"}));function at({isLoading:e,countries:t,value:r,onCountryChange:n,required:g,disabled:l}){let[s,u]=useState(),[a,c]=useState(null),[o,y]=useState([]),[C,I]=useState(""),m=!!a&&!l,b=f=>{f.stopPropagation(),c(f.currentTarget);},p=()=>{c(null);},S=f=>{n?.(f),u(f),p(),y(t);},v=f=>{let x=f.target.value.toString()??"";if(I(x),!x){y(t);return}let T=t.filter(E=>E.idd_prefix.toString().startsWith(x)||E.iso2.toLowerCase().startsWith(x.toLowerCase()));y(T);};return useEffect(()=>{r&&u(r);},[r?.countryId]),useEffect(()=>{t.length&&y(t);},[t.length]),jsxs(Le,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(Qe,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:b,disabled:e||l,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(Mo,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[s&&jsxs(Fragment,{children:[jsx("img",{src:s.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${s?.idd_prefix}`})]}),g&&jsx(tt,{component:"span",children:"*"}),jsx(Le,{component:"img",src:Cb,alt:"d",className:"arrow",sx:{...m&&{transform:"rotate(180deg)"}}})]})}),m&&jsx(a$1,{onClick:p,sx:{zIndex:9999}}),m&&jsx(ClickAwayListener,{onClickAway:p,children:jsxs(Xe,{id:"CountriesList_CountriesWrapper",open:m,anchorEl:a,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",children:[jsx(et,{endAdornment:jsx("img",{src:A,alt:"arrow"}),onChange:v,hideArrows:true,"data-testid":"CountriesList_InputStyled",value:C}),jsx(Ye,{"data-testid":"CountriesList_CountriesListStyled",children:o.map(f=>{let x=s?.countryId===f.countryId;return jsxs(je,{onClick:()=>{S(f);},sx:{backgroundColor:x?"#F9F9F9":"transparent",color:x?"#000":"#8D8D94"},children:[jsx("img",{src:f.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${f.idd_prefix}`})]},`country-code-${f.countryId}`)})})]})})]})}at.displayName="CountriesList";var it=memo(at);var me=it;var pt=styled(Le,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,feedbackType:t,hasFeedback:r})=>{let{borderColor:n}=aa(e,t);return {border:`1px solid ${t?n:e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:r?"4px 4px 0 0":"4px",borderBottom:r?"none":void 0,height:"40px"}}),st=styled(a)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),dt=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),ut=styled(Le)(()=>({flex:1}));function mt({phoneValue:e,hasError:t,countries:r,isCountriesLoading:n,countryValue:g,onCountryChange:l,onPhoneChange:s,helperText:u,required:a,disabled:c,feedback:o,...y},C){let I=x=>{s?.(x.target.value);},m=x=>{l?.(x);},b=o?.message??u,{isProvided:p,isVisible:S,type:v}=Ac(o,{message:b}),f=yc(useId(),"phone-input-base");return jsxs(ut,{id:f,"data-testid":"PhoneInput",children:[jsxs(pt,{"data-testid":"PhoneInput_MobileWrapper",feedbackType:v,hasFeedback:S,children:[jsx(me,{isLoading:n,countries:r,value:g,onCountryChange:m,required:a,disabled:c}),jsx(st,{value:e,"data-testid":"PhoneInput_InputNumberStyled",ref:C,inputProps:{autoComplete:"off"},error:t&&!p,disabled:c,...y,onChange:I,hideArrows:true})]}),jsx(ba,{type:o?.type,message:b,icon:o?.icon}),!S&&!p?jsx(dt,{children:u}):null]})}mt.displayName="PhoneInputBase";var ft=qt.forwardRef(mt);var Lo=ft;var gt=styled$1("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"})),yt=styled$1(Popper)(({theme:e})=>({zIndex:99,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),bt=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),xt=styled$1("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"})),Ct=styled$1(Box)(()=>({color:"red !important"}));function Bt({isLoading:e,currencies:t,value:r,onCurrencyChange:n,required:g}){let l=yc(useId(),"currencies-list"),[s,u]=useState(),[a,c]=useState(null),[o,y]=useState([]),C=!!a,I=p=>{p.stopPropagation(),c(p.currentTarget);},m=()=>{c(null);},b=p=>{n?.(p),u(p),m(),y(t);};return useEffect(()=>{r&&u(r);},[r?.currencyId]),useEffect(()=>{t.length&&y(t);},[t.length]),jsxs(Le,{id:l,"data-testid":"currenciesList",sx:{position:"relative"},children:[jsx(gt,{type:"button","aria-describedby":"currenciesList_currenciesWrapper",onClick:I,disabled:e,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(Mo,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[s&&jsxs(Fragment,{children:[jsx("img",{src:s.logo,alt:"c",className:"logo"}),jsx("span",{children:s?.code.english})]}),g&&jsx(Ct,{component:"span",children:"*"}),jsx(Le,{component:"img",src:Cb,alt:"d",className:"arrow",sx:{...C&&{transform:"rotate(180deg)"}}})]})}),C&&jsx(a$1,{onClick:m}),C&&jsx(yt,{id:"currenciesList_currenciesWrapper",open:C,anchorEl:a,"data-testid":"currenciesList_currenciesWrapper",placement:"bottom-start",children:jsx(bt,{"data-testid":"currenciesList_currenciesListStyled",children:o.map(p=>{let S=s?.currencyId===p.currencyId;return jsxs(xt,{onClick:()=>{b(p);},sx:{backgroundColor:S?"#F9F9F9":"transparent",color:S?"#000":"#8D8D94"},children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:p?.code.english})]},`currency-code-${p.currencyId}`)})})})]})}Bt.displayName="CurrenciesList";var Mt=memo(Bt);var kt=Mt;var wt=styled(Wo,{shouldForwardProp:e=>!["hasError","hideArrows"].includes(e)})(({theme:e,hideArrows:t})=>({padding:"8px",border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:32,color:e.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:e.palette.grey[700],fontWeight:400},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),Lt=styled(Le)(()=>({flex:1}));function zo({hasError:e,hideArrows:t,inputProps:r,...n},g){let l=yc(useId(),"amount-input-number");return jsx(Lt,{id:l,"data-testid":"AmountInputNumber",onClick:s=>{s.stopPropagation();},children:jsx(wt,{ref:g,placeholder:n.placeholder,hideArrows:true,hasError:e,disableUnderline:true,inputProps:{...r,type:"number"},onKeyDown:s=>{["e","E","+","-"].includes(s.key)&&s.preventDefault();},...n})})}var Ft=forwardRef(zo);var Et=Ft;var Rt=styled(Le,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),Tt=styled(Le)(()=>({width:"50px"})),At=styled(Et)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),Wt=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),Ht=styled(Le)(()=>({flex:1}));function zt({amountValue:e,hasError:t,currencies:r,isCurrenciesLoading:n,currencyValue:g,onCurrencyChange:l,onAmountChange:s,onAmountBlur:u,helperText:a,required:c,...o},y){let C=p=>{s?.(p.target.value);},I=p=>{u?.(p.target.value);},m=p=>{l?.(p);},b=yc(useId(),"amount-input-base");return jsxs(Ht,{id:b,"data-testid":"AmountInput",children:[jsxs(Rt,{"data-testid":"AmountInput_MobileWrapper",hasError:t,children:[jsx(kt,{isLoading:n,currencies:r,value:g,onCurrencyChange:m,required:c}),jsx(Tt,{children:jsx(At,{value:e,"data-testid":"AmountInput_InputNumberStyled",ref:y,inputProps:{autoComplete:"off"},error:t,...o,onChange:C,onBlur:I,hideArrows:true})})]}),jsx(Wt,{children:a})]})}zt.displayName="AmountInputBase";var Dt=qt.forwardRef(zt);var Oo=Dt;export{Kt as a,z as b,se as c,ue as d,Je as e,ho as f,me as g,Lo as h,Oo as i};
@@ -1,13 +0,0 @@
1
- import { ReactNode, MouseEvent } from 'react';
2
- interface Props {
3
- onClose: () => void;
4
- onOpen: (e: MouseEvent<HTMLElement>) => void;
5
- open: boolean;
6
- trigger: ReactNode;
7
- anchorEl: HTMLElement | null;
8
- children: ReactNode;
9
- disabled?: boolean;
10
- }
11
- declare function AccountDropdown({ onClose, open, anchorEl, trigger, onOpen, children, disabled }: Props): import("react").JSX.Element;
12
- declare const _default: import("react").MemoExoticComponent<typeof AccountDropdown>;
13
- export default _default;
@@ -1,2 +0,0 @@
1
- import AccountDropdown from './Dropdown';
2
- export default AccountDropdown;
@@ -1 +0,0 @@
1
- export{a as default}from'../../_chunks/chunk-W6ULJ2HR.js';import'../../_chunks/chunk-YHKF6F6S.js';import'../../_chunks/chunk-PLMJIRXJ.js';import'../../_chunks/chunk-WHXHVOBY.js';import'../../_chunks/chunk-YKKS24ES.js';import'../../_chunks/chunk-4GZ7XOYY.js';
@@ -1,18 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const HeaderWrapper: 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
- open: boolean;
6
- disabled?: boolean | undefined;
7
- }, {}, {}>;
8
- export declare const HeaderDetails: 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 ListWrapper: 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 ItemStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
15
- ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
16
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
17
- selected?: boolean | undefined;
18
- }, {}, {}>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { DropdownChevronIconProps } from './type';
3
- export declare function DropdownChevronIcon({ isActive }: DropdownChevronIconProps): import("react").JSX.Element;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { type DropdownButtonProps } from './type';
3
- declare function DropdownButton({ variant, label, dropdownOptions, ...props }: DropdownButtonProps): React.JSX.Element;
4
- declare namespace DropdownButton {
5
- var displayName: string;
6
- }
7
- declare const _default: React.MemoExoticComponent<typeof DropdownButton>;
8
- export default _default;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const dropdownButtonVariants: {
3
- active: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
4
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
5
- }, "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").Theme> & {
6
- icon?: string | undefined;
7
- }, {}, {}>;
8
- inActive: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
9
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
10
- }, "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").Theme> & {
11
- icon?: string | undefined;
12
- }, {}, {}>;
13
- };
@@ -1,4 +0,0 @@
1
- import DropdownButton from './DropdownButton';
2
- export { DropdownChevronIcon } from './ChevronIcon';
3
- export type { DropdownButtonProps, DropdownChevronIconProps } from './type';
4
- export default DropdownButton;
@@ -1 +0,0 @@
1
- export{a as DropdownChevronIcon,b as default}from'../../_chunks/chunk-4AT6MVPS.js';import'../../_chunks/chunk-3YZZCLZM.js';import'../../_chunks/chunk-YHKF6F6S.js';import'../../_chunks/chunk-PLMJIRXJ.js';import'../../_chunks/chunk-WHXHVOBY.js';import'../../_chunks/chunk-YKKS24ES.js';import'../../_chunks/chunk-4GZ7XOYY.js';
@@ -1,31 +0,0 @@
1
- import type React from 'react';
2
- import { type Theme } from '@mui/material/styles';
3
- import { dropdownButtonVariants } from './constants';
4
- export declare const ActiveButton: import("@emotion/styled").StyledComponent<import("@mui/material/Button").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
5
- ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
6
- }, "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<Theme> & {
7
- icon?: string | undefined;
8
- }, {}, {}>;
9
- export declare const InActiveButton: import("@emotion/styled").StyledComponent<import("@mui/material/Button").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
10
- ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
11
- }, "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<Theme> & {
12
- icon?: string | undefined;
13
- }, {}, {}>;
14
- export type DropdownButtonVariants = keyof typeof dropdownButtonVariants;
15
- export declare const CountBadge: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
16
- ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
17
- }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
18
- variant: DropdownButtonVariants;
19
- }, {}, {}>;
20
- export declare const StatusIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & {
21
- variant: DropdownButtonVariants;
22
- }, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
23
- export declare const StyledFilterName: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
24
- export declare const StyledDropdown: import("@emotion/styled").StyledComponent<import("../DropdownMenu").IProps & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
25
- export declare const ChevronContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
26
- export declare const ButtonContent: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
27
- ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
28
- }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
29
- export declare const LabelContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
30
- ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
31
- }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
@@ -1,14 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { type ButtonProps } from '@mui/material';
3
- import { TableHeaderStatus } from '../../types/index.js';
4
- import { type DropdownButtonVariants } from './style';
5
- import { MenuItemI } from '../DropdownMenu';
6
- export interface DropdownButtonProps extends Omit<ButtonProps, 'variant' | 'children'> {
7
- variant?: DropdownButtonVariants;
8
- label?: ReactNode | null;
9
- onButtonBodyClick?: (status: TableHeaderStatus) => void;
10
- dropdownOptions?: MenuItemI[];
11
- }
12
- export interface DropdownChevronIconProps {
13
- isActive?: boolean;
14
- }
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { Option } from './type';
3
- export declare function ChildMenuItem({ childOption, selectedOptions, onChangeOptions, }: {
4
- childOption: {
5
- label: string;
6
- options: Option[];
7
- };
8
- selectedOptions: Option[] | undefined;
9
- onChangeOptions: (option: Option[]) => void;
10
- }): import("react").JSX.Element;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { Option } from './type';
3
- interface Props {
4
- option: Option;
5
- selectedOptions: Option[] | undefined;
6
- onChangeOptions: (options: Option[]) => void;
7
- }
8
- export declare function FlatMenuItem({ option, selectedOptions, onChangeOptions }: Props): import("react").JSX.Element;
9
- export {};
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { MultiSelectWithSearchProps } from './type';
3
- declare function MultiSelectWithSearch({ options, onChangeOptions, selectedOptions, placeholder, isLoading, searchBy, disabled, }: MultiSelectWithSearchProps): React.JSX.Element;
4
- export default MultiSelectWithSearch;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import { Option } from './type';
3
- export declare function ParentMenuItem({ parentOption, selectedOptions, onChangeOptions, }: {
4
- parentOption: {
5
- options: {
6
- label: string;
7
- options: Option[];
8
- }[];
9
- label: string;
10
- };
11
- selectedOptions: Option[] | undefined;
12
- onChangeOptions: (option: Option[]) => void;
13
- }): import("react").JSX.Element;
@@ -1,6 +0,0 @@
1
- import MultiSelectWithSearch from './MultiSelectWithSearch';
2
- export * from './ChildMenuItem';
3
- export * from './FlatMenuItem';
4
- export * from './ParentMenuItem';
5
- export type { MultiSelectWithSearchProps } from './type';
6
- export default MultiSelectWithSearch;
@@ -1 +0,0 @@
1
- export{a as ChildMenuItem,c as FlatMenuItem,b as ParentMenuItem,d as default}from'../../_chunks/chunk-CF5MCUMN.js';import'../../_chunks/chunk-2DC5PMER.js';import'../../_chunks/chunk-YHKF6F6S.js';import'../../_chunks/chunk-PLMJIRXJ.js';import'../../_chunks/chunk-WHXHVOBY.js';import'../../_chunks/chunk-YKKS24ES.js';import'../../_chunks/chunk-4GZ7XOYY.js';
@@ -1,32 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Caption: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
3
- ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
4
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
5
- export declare const Title: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
6
- ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
7
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
8
- export declare const AccordionWrapper: 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 InputStyled: import("@emotion/styled").StyledComponent<import("@mui/material/Input").InputProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
12
- export declare const CheckboxStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").CheckboxProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
13
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
14
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
15
- export declare const Container: 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 SelectedBadgesWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
19
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
20
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
21
- export declare const SelectedBadge: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
22
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
23
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
24
- maxWidth?: number | undefined;
25
- }, {}, {}>;
26
- export declare const ItemStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
27
- ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
28
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
29
- export declare const TriggerWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
30
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
31
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
32
- export declare const ArrowIcon: import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", import("@mui/material/styles").Theme>>;
@@ -1,23 +0,0 @@
1
- export interface Option {
2
- label: string;
3
- value: string;
4
- }
5
- export type NestedOptions = {
6
- options: {
7
- label: string;
8
- options: Option[];
9
- }[];
10
- label: string;
11
- }[];
12
- /** Flat list or nested hierarchy. */
13
- export type MultiSelectOptions = Option[] | NestedOptions;
14
- export interface MultiSelectWithSearchProps {
15
- /** Flat list or nested hierarchy. Pass an empty array for flat mode with no selectable items. */
16
- options: MultiSelectOptions;
17
- onChangeOptions: (options: Option[]) => void;
18
- selectedOptions?: Option[];
19
- placeholder?: string | null;
20
- isLoading?: boolean;
21
- searchBy?: string[];
22
- disabled?: boolean;
23
- }
@@ -1,4 +0,0 @@
1
- import { MultiSelectOptions, NestedOptions, Option } from './type';
2
- export declare const isFlatOptions: (options: MultiSelectOptions) => options is Option[];
3
- export declare const filterFlatOptions: (options: Option[], searchValue: string, searchBy: string[]) => Option[];
4
- export declare const filterNestedOptions: (nestedOptions: NestedOptions, searchValue: string, searchBy: string[]) => NestedOptions;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { SvgIconProps } from '@mui/material/SvgIcon';
3
- export interface SearchIconProps extends SvgIconProps {
4
- /** Width and height in px (square) */
5
- size?: number | string;
6
- }
7
- declare function SearchIcon({ size, sx, className, ...props }: SearchIconProps): import("react").JSX.Element;
8
- export default SearchIcon;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { SelectWithSearchProps } from './type';
3
- declare function SelectWithSearch({ options, onChangeOption, selectedOption, placeholder, label, isLoading, renderOption, iconUrl, disabled, onClearValue, slotProps, hideSelectedCheckmark, listWrapperSx, name, ...rest }: SelectWithSearchProps): import("react").JSX.Element;
4
- export default SelectWithSearch;
@@ -1,4 +0,0 @@
1
- import SelectWithSearch from './SelectWithSearch';
2
- export type { Option, SelectWithSearchProps } from './type';
3
- export * from './style';
4
- export default SelectWithSearch;
@@ -1 +0,0 @@
1
- export{c as AccordionWrapper,a as Caption,e as CheckboxStyled,f as Container,d as InputStyled,i as ItemStyled,h as SelectedBadge,g as SelectedBadgesWrapper,b as Title,j as default}from'../../_chunks/chunk-P3QRKBID.js';import'../../_chunks/chunk-QVGSIVO2.js';import'../../_chunks/chunk-ZDU6AH4F.js';import'../../_chunks/chunk-4KSZBODD.js';import'../../_chunks/chunk-4QONVXGE.js';import'../../_chunks/chunk-YHKF6F6S.js';import'../../_chunks/chunk-PLMJIRXJ.js';import'../../_chunks/chunk-WHXHVOBY.js';import'../../_chunks/chunk-YKKS24ES.js';import'../../_chunks/chunk-4GZ7XOYY.js';
@@ -1,28 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Caption: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
3
- ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
4
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
5
- export declare const Title: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
6
- ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
7
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
8
- export declare const AccordionWrapper: 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 InputStyled: import("@emotion/styled").StyledComponent<import("@mui/material/Input").InputProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
12
- export declare const CheckboxStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").CheckboxProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
13
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
14
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
15
- export declare const Container: 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 SelectedBadgesWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
19
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
20
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
21
- export declare const SelectedBadge: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
22
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
23
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
24
- export declare const ItemStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
25
- ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
26
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
27
- selected: boolean;
28
- }, {}, {}>;
@@ -1,34 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { InputBase } from '../InputBase';
3
- import { Container, InputStyled, ItemStyled } from './style';
4
- import { DropdownI } from '../SelectDropdown/SelectDropdown';
5
- export interface Option {
6
- label: string;
7
- value: string;
8
- }
9
- export type SelectWithSearchProps<T extends React.ElementType = 'div', AdditionalProps = {}> = Omit<DropdownI<T, AdditionalProps>, 'open' | 'anchorEl' | 'onOpen' | 'onClose' | 'trigger' | 'children'> & {
10
- /**
11
- * Passed to the underlying input as the HTML `name` attribute so the control
12
- * participates in form submission, autofill, and other browser field semantics.
13
- */
14
- name?: string;
15
- options: Option[];
16
- label?: React.ReactNode;
17
- onChangeOption: (option: Option | null) => void;
18
- selectedOption?: Option | null;
19
- placeholder?: string | null;
20
- isLoading?: boolean;
21
- renderOption?: (option: Option, { closeDropdown, open }: {
22
- closeDropdown: () => void;
23
- open: boolean;
24
- }) => ReactNode;
25
- iconUrl?: string;
26
- onClearValue?: () => void;
27
- slotProps?: {
28
- selectInput?: React.ComponentProps<typeof InputBase>;
29
- searchInput?: React.ComponentProps<typeof InputStyled>;
30
- dropdownContainer?: React.ComponentProps<typeof Container>;
31
- item?: React.ComponentProps<typeof ItemStyled>;
32
- };
33
- hideSelectedCheckmark?: boolean;
34
- };