@tap-payments/os-micro-frontend-shared 0.3.137 → 0.3.139
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-2CEKJ5CQ.js +15 -0
- package/build/_chunks/{chunk-JGRS4AS6.js → chunk-3G2C5Y2A.js} +1 -1
- package/build/_chunks/{chunk-JW4M53EU.js → chunk-A2XBZDNA.js} +1 -1
- package/build/_chunks/{chunk-XEA2GLQG.js → chunk-C63DP3JW.js} +1 -1
- package/build/_chunks/{chunk-5KB7IA3L.js → chunk-JWG5IWOL.js} +1 -1
- package/build/_chunks/{chunk-YFU5YNAY.js → chunk-KGRLMTLG.js} +1 -1
- package/build/_chunks/{chunk-5ROHV2I6.js → chunk-LVBP2HUK.js} +1 -1
- package/build/_chunks/chunk-OP3KS45Z.js +1 -0
- package/build/_chunks/chunk-UKAQCKZ5.js +1 -0
- package/build/_chunks/{chunk-ASNZH7TO.js → chunk-UZEVUFYV.js} +1 -1
- package/build/_chunks/{chunk-WON7ZGHE.js → chunk-X76LM2CC.js} +1 -1
- package/build/_chunks/{chunk-A4KPAUDX.js → chunk-XDF5N4MY.js} +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/Amount/index.js +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 +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/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/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/ExpandableSideBar/style.d.ts +3 -0
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/JSONViewer/components/JSONSearchBar/styles.d.ts +2 -2
- 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/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/SelectWithAccordion/style.d.ts +3 -0
- package/build/components/RFH/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchButton/styles.d.ts +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/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/style.d.ts +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.d.ts +1 -1
- package/build/components/index.js +1 -1
- package/build/components/primitives/Accordion/style.d.ts +1 -1
- package/build/components/primitives/Input/style.d.ts +1 -1
- package/build/components/primitives/Textarea/style.d.ts +1 -1
- package/build/components/primitives/index.js +1 -1
- package/build/index.js +1 -1
- package/build/theme/index.js +1 -1
- package/build/types/accountWidget.d.ts +8 -11
- package/package.json +1 -1
- package/build/_chunks/chunk-75TQTDVK.js +0 -1
- package/build/_chunks/chunk-GYJIUZ4U.js +0 -2
- package/build/_chunks/chunk-HRS4PPIU.js +0 -15
- package/build/_chunks/chunk-ZH3CEA6Q.js +0 -1
- package/build/components/Accordion/Accordion.d.ts +0 -8
- package/build/components/Accordion/AccordionExpandIcon.d.ts +0 -16
- package/build/components/Accordion/index.d.ts +0 -4
- package/build/components/Accordion/index.js +0 -1
- package/build/components/Accordion/style.d.ts +0 -21
- package/build/components/Accordion/types.d.ts +0 -25
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {a as a$6}from'./chunk-AO3TIZWU.js';import {a as a$3}from'./chunk-66ARGWP3.js';import {a,b,f,d,c as c$1,h,i,e}from'./chunk-ARKBRYDY.js';import {c,b as b$1,g}from'./chunk-JGMTLSTD.js';import {a as a$7}from'./chunk-GLYU6JBK.js';import {a as a$4}from'./chunk-M6I6JO45.js';import {a as a$5,b as b$2}from'./chunk-MUR4ILTY.js';import {b as b$3}from'./chunk-GYJIUZ4U.js';import {a as a$1}from'./chunk-KCMHA4GC.js';import {a as a$2}from'./chunk-GNY2VGGW.js';import {yc}from'./chunk-PBMQM3P4.js';import {Pc,A}from'./chunk-7567D5HA.js';import*as se from'react';import se__default,{useId,useState,useEffect,useMemo,useRef,useCallback}from'react';import {useFormContext,Controller,FormProvider,useForm}from'react-hook-form';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import oe from'@mui/material/Box';import xt from'@mui/material/Button';import yt from'@mui/material/Input';import ao from'@mui/material/ListSubheader';import lo from'@mui/material/MenuItem';import {keyframes,styled}from'@mui/material/styles';import Pt from'@mui/material/Popper';import Mt from'@mui/material/TextField';function ct({onSubmit:e,methods:t,children:o}){let a=yc(useId(),"default-form");return jsx(FormProvider,{...t,children:jsx("form",{id:a,"data-testid":"DefaultForm",onSubmit:e,noValidate:true,children:o})})}var pt=se__default.memo(ct);var Qe=se.forwardRef(({name:e,helperText:t,hideArrows:o,feedback:a$1,...r},i)=>{let{control:c}=useFormContext();return jsx(Controller,{name:e,control:c,defaultValue:r.defaultValue,render:({field:d,fieldState:u})=>jsx(a,{...r,...d,ref:i,hasError:!!u.error,helperText:t??u.error?.message,feedback:a$1,hideArrows:o,onChange:m=>{d.onChange(m),r.onChange?.(m);},onWheel:m=>{m.target instanceof HTMLElement&&m.target.blur();}})})});Qe.displayName="RFHFormInput";var Xe=se.memo(Qe);var dt=Xe;function eo({phoneName:e,countries:t,countryName:o,helperText:a,isCountriesLoading:r,disabled:i,feedback:c,...d}){let{control:u,watch:m,setValue:f}=useFormContext(),F=m(o),S=x=>{f(o,x);};return jsx(Controller,{name:e,control:u,render:({field:{onChange:x,value:l},fieldState:n})=>jsx(h,{...d,phoneValue:l,countries:t,hasError:!!n.error,helperText:a??n.error?.message,feedback:c,onPhoneChange:h=>{x(h);},disabled:i,countryValue:F,onCountryChange:S,isCountriesLoading:r})})}eo.displayName="RFHPhoneInput";var oo=eo;var ft=oo;var Ce=(e,t)=>e.toFixed(t);function no({amountName:e,currencies:t,currencyName:o,helperText:a,isCurrenciesLoading:r,...i$1}){let{control:c,watch:d,setValue:u}=useFormContext(),m=d(o),f=d(e),F=S=>{u(o,S),u(e,Ce(Number(f),S?.decimals||2));};return jsx(Controller,{name:e,control:c,render:({field:{onChange:S,value:x},fieldState:l})=>jsx(i,{...i$1,amountValue:x??"",currencies:t,hasError:!!l.error,helperText:a??l.error?.message,onAmountChange:n=>{S(n);},onAmountBlur:n=>{S(Ce(Number(n),m?.decimals||2));},currencyValue:m,onCurrencyChange:F,isCurrenciesLoading:r})})}no.displayName="RFHAmountInput";var ro=no;var bt=ro;var Ct=keyframes`
|
|
2
|
-
0% {
|
|
3
|
-
transform: rotate(-90deg);
|
|
4
|
-
}
|
|
5
|
-
100% {
|
|
6
|
-
transform: rotate(270deg);
|
|
7
|
-
}
|
|
8
|
-
`,io=styled(oe)({width:12,height:12,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:"100%",height:"100%",display:"block"},animation:`${Ct} 2s linear infinite`}),z=styled(ao)(({theme:e})=>({backgroundColor:e.palette.common.white,paddingLeft:8,paddingRight:8,paddingBottom:6,lineHeight:1})),co=styled("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontWeight:500,fontSize:11,lineHeight:"100%",letterSpacing:0,color:"#8D8D94",leadingTrim:"none",transition:e.transitions.create(["color","opacity"],{duration:90,easing:"ease-in"})})),po=styled(oe)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:e.spacing(1)})),so=styled(ao)(({theme:e})=>({backgroundColor:e.palette.common.white,paddingLeft:8,paddingRight:8,paddingTop:e.spacing(.75),paddingBottom:e.spacing(.75),lineHeight:1.2,"&.MuiListSubheader-root":{lineHeight:1.2}})),uo=styled(xt)(({theme:e})=>({minWidth:0,padding:"2px 4px",fontFamily:e.typography.fontFamily,fontWeight:500,fontStyle:"normal",fontSize:11,lineHeight:"120%",letterSpacing:0,textTransform:"none",verticalAlign:"middle",color:"#1F88D0",transition:e.transitions.create(["color","background-color","opacity"],{duration:90,easing:"ease-in"})})),It=styled(a$1)(()=>({padding:0,".MuiSvgIcon-root":{width:12,height:12}})),mo=styled("img")({width:14,height:14,flexShrink:0,display:"block"}),ho=styled(oe)({display:"flex",alignItems:"center",width:"100%",gap:8}),fo=styled(lo,{shouldForwardProp:e=>e!=="$selected"})(({theme:e,$selected:t})=>({fontSize:"12px",backgroundColor:t?"#F8F8F8 !important":e.palette.common.white,"&.Mui-disabled":{opacity:1}})),So=styled(It,{shouldForwardProp:e=>e!=="$mutedRect"})(({$mutedRect:e})=>e?{"& svg rect":{fill:"#BDC1CC"}}:{}),ue=styled(yt)(({theme:e})=>({width:"100%",height:36,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:"1px solid #F2F2F2",boxSizing:"border-box","&:hover":{borderColor:"#F2F2F2"},"&.Mui-focused":{borderColor:"#F2F2F2",backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}}));styled(lo)(({theme:e})=>({opacity:1,paddingTop:0,paddingBottom:0,marginBottom:8,minHeight:"auto",pointerEvents:"none",backgroundColor:e.palette.common.white,"&:hover":{backgroundColor:e.palette.common.white},"&.Mui-focusVisible":{backgroundColor:e.palette.common.white},"&.Mui-disabled":{backgroundColor:e.palette.common.white,opacity:1}}));var Lt=keyframes`
|
|
9
|
-
0% {
|
|
10
|
-
transform: rotate(-90deg);
|
|
11
|
-
}
|
|
12
|
-
100% {
|
|
13
|
-
transform: rotate(270deg);
|
|
14
|
-
}
|
|
15
|
-
`,yo=styled(oe)({width:12,height:12,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:"100%",height:"100%",display:"block"},animation:`${Lt} 2s linear infinite`}),de=styled(oe)(({theme:e})=>({position:"relative",width:11,height:11,transform:"rotate(0deg)",color:e.palette.common.black,"& svg":{width:"100%",height:"100%",display:"block"}})),Fo=styled(z)({paddingTop:"8px"}),Pe=styled("ul")({listStyle:"none",margin:0,padding:0}),Co=styled(lo)(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",padding:"8px",justifyContent:"space-between",fontSize:"10px",fontWeight:500,cursor:"default",pointerEvents:"none",backgroundColor:e.palette.common.white,"&.Mui-disabled":{opacity:1,color:"#8D8D94"}})),Io=styled(lo,{shouldForwardProp:e=>e!=="$selected"})(({theme:e,$selected:t})=>({fontSize:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:e.spacing(1),backgroundColor:t?e.palette.action.hover:e.palette.common.white})),me=styled("span")({flex:1,minWidth:0}),he=styled("img")({width:10,height:7.5,flexShrink:0}),Po=styled("li",{shouldForwardProp:e=>!["$selected","$optionDisabled"].includes(String(e))})(({theme:e,$selected:t,$optionDisabled:o})=>({fontSize:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:e.spacing(1),minHeight:48,paddingLeft:e.spacing(2),paddingRight:e.spacing(2),backgroundColor:t?e.palette.action.hover:e.palette.common.white,"&.Mui-focused":{backgroundColor:e.palette.action.hover},...o&&{opacity:.38,pointerEvents:"none"}})),Me=styled("span")({fontSize:"10px",fontWeight:500,color:"#8D8D94"}),Mo=styled(Mt,{shouldForwardProp:e=>!["feedbackType","hasFeedback","hasLabel"].includes(e)})(({theme:e,error:t,feedbackType:o,hasFeedback:a,hasLabel:r})=>{let{borderColor:i}=o?c(e,o):{borderColor:void 0},c$1=a?"4px 4px 0 0":"4px";return {width:"100%","& .MuiInputLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`},"& .MuiInputLabel-root.MuiInputLabel-shrink":{transform:"translate(8px, 8px) scale(0.75)"},"& .MuiInputLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)"},"& .MuiFilledInput-root":{height:"40px",maxHeight:"40px",overflow:"hidden",borderRadius:c$1,backgroundColor:e.palette.grey[400],paddingTop:r?"11px":"0px",paddingBottom:r?"4px":"0px",paddingLeft:"8px",boxSizing:"border-box",display:"inline-flex",alignItems:r?"stretch":"center","&:before, &:after":{display:"none"},"&:hover":{backgroundColor:e.palette.grey[400]},"&.Mui-focused":{backgroundColor:e.palette.grey[400]},"&.Mui-disabled":{backgroundColor:e.palette.grey[400]}},"& .MuiFilledInput-input":{padding:"0 !important",minHeight:0,height:"auto",boxSizing:"border-box",display:"flex",alignItems:r?"flex-end":"center",alignSelf:r?"flex-end":"center",fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,paddingBottom:r?"1px !important":"0 !important"},"& .MuiFilledInput-root.MuiInputBase-adornedEnd .MuiAutocomplete-input":{flex:"1 1 0%",minWidth:30,width:0,maxWidth:"100%"},"& .MuiAutocomplete-endAdornment":{display:"flex",alignItems:"center",gap:"8px",top:"50%",transform:"translateY(-50%)",right:9},"& .MuiAutocomplete-popupIndicator":{transform:"none",padding:"1px",marginRight:0,marginLeft:0},"& .MuiAutocomplete-popupIndicator.MuiAutocomplete-popupIndicatorOpen":{transform:"none"},"& .MuiAutocomplete-clearIndicator":{visibility:"visible",padding:"1px",marginRight:0,marginLeft:0},...o&&i&&{"& .MuiFilledInput-root":{border:`1px solid ${i}`}},...a&&{"& .MuiFilledInput-root":{borderBottom:"none",borderBottomLeftRadius:0,borderBottomRightRadius:0}},...t&&{"& .MuiFilledInput-root":{border:`1px solid ${e.palette.error.main}`}}}}),go=e=>({display:"flex",alignItems:"center",gap:"8px",padding:"8px",justifyContent:"space-between",fontSize:"10px",fontWeight:500,cursor:"default",pointerEvents:"none",backgroundColor:e.palette.common.white,color:"#8D8D94"}),Ro=styled(Pt,{shouldForwardProp:e=>!["$menuHasLoadingText","$suppressAutocompleteNoOptions","$suppressEmptyMenuSurface"].includes(e)})(({theme:e,$menuHasLoadingText:t,$suppressAutocompleteNoOptions:o,$suppressEmptyMenuSurface:a})=>({"& .MuiPaper-root":a?{boxShadow:"none",border:"none",backgroundColor:"transparent",margin:0,marginTop:0,padding:0,maxHeight:0,minHeight:0,overflow:"hidden",borderRadius:0,pointerEvents:"none"}:{marginTop:4,borderRadius:4,boxShadow:e.shadows[8],border:"1px solid #F2F2F2",backgroundColor:e.palette.common.white},"& .MuiAutocomplete-listbox":{padding:0,...a?{maxHeight:0,minHeight:0,overflow:"hidden"}:{maxHeight:320}},"& .MuiAutocomplete-noOptions":o?{display:"none !important"}:go(e),"& .MuiAutocomplete-loading":{...go(e),...!t&&{display:"none"}}}));function fe({placeholder:e,value:t,onValueChange:o,isLoading:a}){let r=yc(useId(),"form-select-menu-search-input"),i=useCallback(c=>{c.stopPropagation();},[]);return jsx(ue,{id:r,"data-testid":"FormSelectMenuSearchInput",placeholder:e,value:t,onChange:c=>o(c.target.value),onKeyDown:i,onKeyUp:i,onMouseDown:i,onClick:i,disableUnderline:true,fullWidth:true,inputProps:{"aria-label":e},endAdornment:a?jsx(yo,{"aria-hidden":true,children:jsx(b$2,{})}):jsx(de,{"aria-hidden":true,children:jsx(a$5,{})})})}var Se=jsx(Me,{children:"No results found"}),Lo=jsx(Me,{children:"Loading\u2026"});function ge(e,t,o){return t?t(e):o?o(e):e?.label}function Re(e,t,o){let a=t.toLowerCase().trim(),r=(o?o(e):e?.label)??"";return String(r).toLowerCase().includes(a)}function wo(e){return e}function ko(e){let t=se__default.forwardRef(function(a,r){let{children:i,className:c,...d}=a,u=e.current;return u?jsxs(Fragment,{children:[jsx(Fo,{disableSticky:true,children:jsx(fe,{placeholder:u.menuSearchPlaceholder,value:u.searchValue,onValueChange:u.setSearchValue,isLoading:u.isLoading})}),jsx(Pe,{ref:r,className:c,...d,children:i})]}):jsx(Pe,{ref:r,className:c,...d,children:i})});return t.displayName="FormSelectMenuSearchListbox",t}function Oo({menuSearchPlaceholder:e,searchValue:t,onSearchChange:o,isLoading:a,menuHasNoOptionsText:r,menuNoOptionsText:i,optionsWithoutEmptyValue:c,getOptionValue:d,getOptionLabel:u,renderOption:m,isOptionEqualToValue:f,menuHasSelectedCheckMark:F,valueOnly:S,getOptionId:x,field:l}){return jsxs(Fragment,{children:[jsx(z,{disableSticky:true,onMouseDown:n=>n.stopPropagation(),onClick:n=>n.stopPropagation(),children:jsx(fe,{placeholder:e,value:t,onValueChange:o,isLoading:a})}),r&&t.trim()&&c.length===0?jsx(Co,{disabled:true,value:"__form_select_no_results__",children:i??Se}):c.map((n,h)=>{let g=f?f(n,l.value):n?.id===l.value?.id,M=ge(n,m,u);return jsxs(Io,{disabled:!!n.disabled,$selected:g,value:(d?d(n):n?.id)??"",onClick:()=>{l.onChange(S?x(n):n);},children:[jsx(me,{children:M}),F&&g?jsx(he,{src:Pc,alt:""}):null]},`form-select-item-${(d?d(n):n?.id)??h}`)})]})}var be={menuHasLoadingText:false,suppressAutocompleteNoOptions:false,suppressEmptyMenuSurface:false};function Ht(e,t){e!=null&&(typeof e=="function"?e(t):e.current=t);}function Bt(...e){return t=>{for(let o of e)Ht(o,t);}}function Vt(e){let t=o=>{let a=e.current;return jsx(Ro,{...o,$menuHasLoadingText:a.menuHasLoadingText,$suppressAutocompleteNoOptions:a.suppressAutocompleteNoOptions,$suppressEmptyMenuSurface:a.suppressEmptyMenuSurface})};return t.displayName="FormSelectSearchableAutocompletePopper",t}function Eo(e){let t=yc(useId(),"form-select-searchable-field"),o=useRef(null),a=useRef(be);o.current=e.menuSearchable?{searchValue:e.inMenuSearchContextValue.searchValue,setSearchValue:e.inMenuSearchContextValue.setSearchValue,menuSearchPlaceholder:e.inMenuSearchContextValue.menuSearchPlaceholder,isLoading:e.inMenuSearchContextValue.isLoading}:null,a.current=e.searchableAutocompletePopperFlags;let r=useMemo(()=>ko(o),[]),i=useMemo(()=>Vt(a),[]),c=b$1(e.feedback),d$1=!!e.fieldState.error&&!c,u=e.helperText??e.fieldState.error?.message,m=e.internalValue!=null&&e.internalValue!==""&&typeof e.internalValue=="object"?e.internalValue:null,f=e.getOptionLabel??(l=>String(l?.label??"")),F=e.isOptionEqualToValue??((l,n)=>l&&n?l.id===n.id:l===n),S=e.ClearIconComponent??b,x=e.label!=null&&e.label!=="";return jsxs(d,{id:t,"data-testid":"FormSelectSearchableField",children:[jsx(a$4,{...e.autocompleteRest,disableClearable:!e.showClearIcon,clearIcon:jsx(S,{sx:{fontSize:8,width:8,height:8}}),ListboxComponent:e.menuSearchable?r:void 0,PopperComponent:i,options:e.optionsWithClearFilterOnly,value:m,onChange:(l,n,h)=>{if(n==null&&e.onClear&&h==="clear"){e.onClear();return}if(e.valueOnly){let g=n==null?null:e.getOptionId(n);e.field.onChange(g);}else e.field.onChange(n);},onInputChange:(l,n,h)=>{e.setSearchableInputValue(n),(h==="input"||h==="clear")&&e.scheduleSearchNotification(n);},slotProps:e.slotProps??{},filterOptions:e.menuSearchable?e.autocompleteFilterOptions:wo,loading:!!e.isLoading,disabled:!!e.disabled,getOptionLabel:f,getOptionDisabled:l=>!!l.disabled,isOptionEqualToValue:F,renderOption:e.renderAutocompleteOption,noOptionsText:e.menuNoOptionsText??Se,loadingText:e.menuHasLoadingText?e.menuLoadingText??Lo:null,popupIcon:jsx(de,{children:jsx(a$5,{})}),renderInput:l=>{let{inputProps:n,...h}=l,{ref:g,...M}=n;return jsx(Mo,{...h,variant:"filled",label:e.label,placeholder:e.placeholder,required:e.required,error:d$1,helperText:null,feedbackType:c?.type,hasFeedback:!!c,hasLabel:x,inputRef:Bt(g,e.field.ref,e.inputRef),InputProps:{...l.InputProps,disableUnderline:true},inputProps:{...M,name:e.field.name,onBlur:e.field.onBlur}})}}),c?jsx(g,{...c}):jsx(c$1,{children:u})]})}function No(e){let{name:t,helperText:o,feedback:a,menuSearchable:r=false,showClearIcon:i=false,ClearIconComponent:c=b,onClear:d,menuSearchPlaceholder:u="Search",getOptionValue:m,getOptionLabel:f$1,renderOption:F,isOptionEqualToValue:S,options:x,MenuProps:l,valueOnly:n=false,menuHasSelectedCheckMark:h=false,searchable:g=false,onSearchInputChange:M,searchDebounceMs:V=300,minSearchLength:T,menuLoadingText:ye,menuHasLoadingText:b$1=false,menuHasNoOptionsText:R=true,menuNoOptionsText:A,label:te,placeholder:U,required:p,disabled:N,isLoading:L,inputRef:Fe,...K}=e,{control:D}=useFormContext(),[C,G]=useState(""),[Y,j]=useState("");useEffect(()=>{g||j("");},[g]);let Jo=useMemo(()=>({searchValue:C,setSearchValue:G,menuSearchPlaceholder:u,isLoading:!!L}),[C,u,L]),J=useRef(void 0),ne=useRef(M);ne.current=M,useEffect(()=>()=>{J.current&&clearTimeout(J.current);},[]);let Qo=useCallback(s=>{if(!ne.current)return;let y=s.trim();J.current&&clearTimeout(J.current),J.current=setTimeout(()=>{if(y===""){ne.current?.("");return}T!=null&&y.length<T||ne.current?.(y);},V);},[V,T]),W=useMemo(()=>{let s=x??[];return !i||!m?s:s.filter(y=>{let w=m(y);return w!=null&&w!==""})},[i,m,x]),Ae=useMemo(()=>!r||!C.trim()?W:W.filter(s=>Re(s,C,f$1)),[r,C,W,f$1]),Q=useMemo(()=>r?Ae:W,[r,Ae,W]),Xo=useCallback(s=>!r||!C.trim()?s:s.filter(y=>Re(y,C,f$1)),[r,C,f$1]),Zo=useMemo(()=>{if(!g)return be;let s=Y.trim(),y=s.length===0||T!=null&&s.length>0&&s.length<T,w=r&&!!C.trim()&&Q.length===0,H=y&&!w||!R,ae=Q.length>0;return {menuHasLoadingText:b$1,suppressAutocompleteNoOptions:H,suppressEmptyMenuSurface:!ae&&!(!H&&!ae)&&!!!(L&&b$1)}},[g,Y,T,r,C,Q,R,L,b$1]),et={...l,autoFocus:false,disableEnforceFocus:true},re=s=>(m?m(s):s?.id)??"",ot=s=>!n||!s?s:x?.find(y=>re(y)===s)??s,tt=useCallback((s,y,w)=>{let H=ge(y,F,f$1),ae=!!y.disabled;return jsxs(Po,{...s,$selected:w.selected,$optionDisabled:ae,children:[jsx(me,{children:H}),h&&w.selected?jsx(he,{src:Pc,alt:""}):null]})},[f$1,F,h]),Oe={...K};for(let s of ["IconComponent","startComponent"])delete Oe[s];let{slotProps:nt={},...rt}=Oe;return jsx(Controller,{name:t,control:D,render:({field:s,fieldState:y})=>{let w=ot(s.value);return g?jsx(Eo,{menuSearchable:r,inMenuSearchContextValue:Jo,searchableAutocompletePopperFlags:Zo,optionsWithClearFilterOnly:W,autocompleteFilterOptions:Xo,slotProps:nt,autocompleteRest:rt,inputRef:Fe,showClearIcon:i,ClearIconComponent:c,menuHasLoadingText:b$1,menuLoadingText:ye,menuNoOptionsText:A,isLoading:L,disabled:N,label:te,placeholder:U,required:p,valueOnly:n,getOptionId:re,scheduleSearchNotification:Qo,setSearchableInputValue:j,renderAutocompleteOption:tt,onClear:d,feedback:a,helperText:o,field:s,fieldState:y,internalValue:w,getOptionLabel:f$1,isOptionEqualToValue:S}):jsx(f,{...K,...s,label:te,placeholder:U,required:p,disabled:N,isLoading:L,value:w,menuHasSelectedCheckMark:h,showClearIcon:i,ClearIconComponent:c,onClear:d,options:Q,getOptionValue:m,getOptionLabel:f$1,renderOption:F,isOptionEqualToValue:S,hasError:!!y.error,helperText:o??y.error?.message,feedback:a,onChange:H=>s.onChange(n?re(H):H),MenuProps:et,children:r?jsx(Oo,{menuSearchPlaceholder:u,searchValue:C,onSearchChange:G,isLoading:L,menuHasNoOptionsText:R,menuNoOptionsText:A,optionsWithoutEmptyValue:Q,getOptionValue:m,getOptionLabel:f$1,renderOption:F,isOptionEqualToValue:S,menuHasSelectedCheckMark:h,valueOnly:n,getOptionId:re,field:s}):void 0})}})}No.displayName="RFHSelect";var Do=se__default.memo(No);var we=Do;function zo({name:e,disabled:t,...o}){let{control:a}=useFormContext();return jsx(Controller,{name:e,control:a,render:({field:{name:r,onBlur:i,onChange:c,value:d,disabled:u}})=>jsx(a$3,{...o,onChange:c,onBlur:i,name:r,disabled:u||t,checked:d??false})})}zo.displayName="RFHSWitch";var qo=se.memo(zo);var Ut=qo;var _o=styled(a$2)(({theme:e})=>({fontSize:"10px",color:e.palette.grey[700],fontWeight:600,lineHeight:"10px"}));styled(a$2)(({theme:e})=>({fontSize:"11px",color:e.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200}));var Uo=styled(oe)(()=>({display:"flex",flexDirection:"column",maxHeight:180,overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"#E5E5E5 #E5E5E5"}));styled(yt)(({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}}));var Ko=styled(oe)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));styled(oe)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap",paddingInlineEnd:"20px"}));styled(oe)(({theme:e,maxWidth:t})=>({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",...t&&{maxWidth:`${t}%`}}));var Go=styled(a$2)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",fontSize:"10px",fontWeight:500,color:e.palette.common.black,cursor:"pointer",padding:"8px 20px"}));styled(oe)(({theme:e})=>({width:"100%",flexDirection:"column",border:`1px solid ${e.palette.grey[100]}`,borderRadius:"4px",backgroundColor:e.palette.grey[400]}));function jt({name:e,options:t,...o}){let a=yc(useId(),"select-with-accordion"),[r,i]=useState(null),[c,d]=useState(0),u=!!r,m=l=>{i(u?null:l.currentTarget);},f=()=>{i(null);},{watch:F,setValue:S}=useFormContext(),x=F(e);return jsx(a$6,{id:a,"data-testid":"SelectWithAccordion",open:u,anchorEl:r,onOpen:m,onClose:f,trigger:jsx(we,{name:e,options:[],...o,open:false}),hideArrow:true,listWrapperSx:{padding:0,margin:0},children:jsx(Ko,{onClick:l=>l.stopPropagation(),onMouseDown:l=>l.stopPropagation(),children:jsx(Uo,{"data-testid":"AccordionWrapper",children:t.map?.((l,n)=>{let h=c===n;return jsx(b$3,{expanded:h,onChange:g=>d(g?n:null),label:jsx(_o,{variant:"caption",children:l.group}),content:(l?.options||[]).map((g,M)=>{let V=o?.isOptionEqualToValue?.(g,x);return jsxs(Go,{onClick:()=>{S(e,g,{shouldDirty:true,shouldTouch:true,shouldValidate:true}),f();},children:[o.renderOption?.(g)||g.label,V&&jsx(a$7,{src:Pc,alt:"blue-check",sx:{width:14,height:10}})]},`${g.value}-${g.label}-${M}`)}),slotProps:{root:{sx:{flexShrink:0,border:0,...h&&{borderBottom:"1px solid #0000001A",borderTop:"1px solid #0000001A"}}},label:{sx:{backgroundColor:h?"#F8F8F8":"#ffffff",borderBottom:"1px solid #0000001A",minHeight:28}},content:{sx:{borderTop:"none"}}}},`${l.group}-group-${n}`)})})})})}var jo=jt;var Qt=jo;function ke({name:e$1,helperText:t,getOptionValue:o,getOptionLabel:a,renderOption:r,isOptionEqualToValue:i,getOptionDisabled:c,menuSearchable:d=false,menuSearchPlaceholder:u="Search",showCheckbox:m=true,menuHasSelectionSummary:f=false,valueOnly:F=false,options:S,isLoading:x,...l}){let{control:n}=useFormContext(),[h,g]=useState(""),M=b=>(o?o(b):b?.id)??"",V=b=>!F||!b?.length?b??[]:b.map(R=>S?.find(A=>M(A)===R)).filter(Boolean),T=b=>b?.map(M)??[],ye=useMemo(()=>{if(!d||!h.trim())return S??[];let b=h.toLowerCase().trim();return (S??[]).filter(R=>{let A=(a?a(R):R?.label)??"";return String(A).toLowerCase().includes(b)})},[S,d,h,a]);return jsx(Controller,{name:e$1,control:n,defaultValue:[],render:({field:b,fieldState:R})=>{let A$1=Array.isArray(b.value)?b.value.filter(p=>p!=null).length:0,te=f&&A$1>0,U=V(b.value);return jsxs(e,{...l,isLoading:x,...b,options:S??[],value:U,getOptionLabel:a,hasError:!!R.error,helperText:t??R.error?.message,onChange:p=>b.onChange(F?T(p):p),MenuProps:{...l.MenuProps,autoFocus:false,disableEnforceFocus:true},children:[d&&jsx(z,{disableSticky:true,children:jsx(ue,{placeholder:u,value:h,onChange:p=>g(p.target.value),onKeyDown:p=>p.stopPropagation(),onKeyUp:p=>p.stopPropagation(),disableUnderline:true,fullWidth:true,inputProps:{"aria-label":u},endAdornment:x?jsx(io,{"aria-hidden":true,children:jsx(b$2,{})}):jsx(mo,{src:A,alt:"search"})})}),te&&jsx(so,{disableSticky:true,children:jsxs(po,{children:[jsxs(co,{children:[A$1," selected"]}),jsx(uo,{type:"button",variant:"text",disableRipple:true,"aria-label":"Clear all selected options",onMouseDown:p=>{p.preventDefault(),p.stopPropagation();},onClick:p=>{p.preventDefault(),p.stopPropagation(),l.onClear?l.onClear():b.onChange([]);},children:"Clear"})]})}),ye?.map(p=>{let N=U?.some(D=>{if(D==null)return false;if(i)return i(p,D);if(o){let Y=o(p),j=o(D);return Y===j||String(Y)===String(j)}let C=p?.id,G=D?.id;return C===G||String(C)===String(G)}),L=c?c(p):false,Fe=a?a(p):p.label,K=r?r(p):Fe;return jsx(fo,{value:(o?o(p):p?.id)??"",disabled:L,$selected:N,children:m?jsxs(ho,{children:[jsx(So,{checked:N,$mutedRect:N&&L}),K]}):K},(o?o(p):p?.id)??"")})]})}})}var nn=useForm;export{pt as a,dt as b,ft as c,bt as d,we as e,Ut as f,Qt as g,ke as h,nn as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {createTheme}from'@mui/material/styles';var r={MuiSvgIcon:{styleOverrides:{root:{width:"0.8em",height:"0.8em"}}},MuiButtonBase:{defaultProps:{disableRipple:true}},MuiPopper:{styleOverrides:{root:{zIndex:1400}}}};var t={mode:"light",common:{black:"#000",white:"#fff",blue:"#147DC5",green:"#2ACE00",purple:"#6D4BCB",red:"#ff0000",orange:"#DD702C",lightOrange:"#FFF7F2",lightPurple:"#4E1FD0"},text:{primary:"#20232B",textSecondary:"#9F9F9F"},grey:{50:"#FEFEFE",100:"#F2F2F2",200:"#002945",300:"rgba(246, 248, 250, 0.8)",400:"#f9f9f9",500:"#8C9196",600:"#5C5C5C",700:"#8D8D94",800:"#E4E6E9",900:"#1D1B20",A100:"#8d8d94",A200:"#000014",A400:"#C1C1C1",A700:"#818181",A800:"#1F222A"},primary:{light:"#FCFCFC",main:"#1D1E21",dark:"#1D1E21"},background:{default:"#fff",highlight:"rgba(117, 122, 135, 0.1)",gradient:{blueGreen:"linear-gradient(180deg, #b4d9eb 0%, #cae4c5 100%)",greenYellow:"linear-gradient(180deg, #cae4c5 0%, #fffcbb 100%)",yellowOrange:"linear-gradient(180deg, #fffcbb 0%, #ffdbb1 100%)",orangeRed:"linear-gradient(180deg, #ffdbb1 0%, #ffc9c9 100%)",redPurple:"linear-gradient(180deg, #ffc9c9 0%, #ceb9e8 100%)",purpleBlue:"linear-gradient(180deg, #CEB9E8 0%, #B4D9EB 100%)",shadedBlue:"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)",darkShadedBlue:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",darkToLight:"linear-gradient(254deg, #101010 0.51%, #343740 49.67%, #101010 100%)",error:"linear-gradient(0deg, rgba(255, 0, 0, 0.14) 0%, rgba(255, 0, 0, 0.14) 100%), #FFF"},transparent:["rgba(249, 249, 249, 0.80)","rgba(32, 35, 43, 0.60)","rgba(242, 242, 242, 0.50)"]},warning:{main:"#F4BE4F",light:"#E9DB94",dark:"#E37B00"},error:{light:"#FF0000",main:"#FF3D00",dark:"#EA611C"},success:{light:"#BFEBB4",main:"#2ACE00",dark:"#76BB40"},divider:"#F2F2F2",info:{light:"#F4F9FD",main:"#29b6f6",dark:"#1F88D0"},action:{hover:"#f5f5f5"},secondary:{main:"#6D4BCB",light:"#DDDDDD"},custom:{50:"#e7f4fc",100:"#FFF0DE",200:"#E4F0F8",300:"#FFECE5",400:"#efefef",500:"#FF7A00",600:"#FFF5F2",700:"#128C7E",800:"#0085FF",900:"#3BC84F"}},o={mode:"dark",text:{primary:"#fff"},background:{default:"#000"}};var x=["none","0px 0px 1.4847px #FFFFFF","0px 0px 28px rgba(0, 0, 0, 0.04)","0px 0px 16px 0px rgba(0, 0, 0, 0.13)}","7px 0px 8px 0px #F2F2F2","0px 0px 28px 0px rgba(0, 0, 0, 0.04)","0px 0px 8px 0px rgba(0, 0, 0, 0.13)","0px 0px 4px 0px rgba(31, 136, 208, 0.50)","0px 0px 12px 0px rgba(0, 0, 0, 0.15)","0px 8px 30px 0px rgba(0, 0, 0, 0.16)","0px 0px 16px 0px rgba(0, 0, 0, 0.15)","0px 0px 16px 0px rgba(0, 0, 0, 0.13)","-4px 0px 16px 0px rgba(0, 0, 0, 0.10)","0px 0px 32px 0px rgba(0, 0, 0, 0.11)","0px 4px 8px 0px rgba(0, 0, 0, 0.14)","0px 0px 36px 0px rgba(0, 0, 0, 0.05)","0px 0px 44px 0px rgba(0, 0, 0, 0.25)","0px 0px 6px 0px rgba(0, 0, 0, 0.11)","0px 8px 10px -5px rgba(0,0,0,0.2),0px 16px 24px 2px rgba(0,0,0,0.14),0px 6px 30px 5px rgba(0,0,0,0.12)","0px 8px 30px 0px rgba(0, 0, 0, 0.15)","0px 9px 11px -5px rgba(0,0,0,0.2),0px 18px 28px 2px rgba(0,0,0,0.14),0px 7px 34px 6px rgba(0,0,0,0.12)","0px 9px 11px -5px rgba(0,0,0,0.2),0px 18px 28px 2px rgba(0,0,0,0.14),0px 7px 34px 6px rgba(0,0,0,0.12)","0px 1px 1px 0px rgba(0, 0, 0, 0.10), 0px 2px 2px 0px rgba(0, 0, 0, 0.09), 0px 5px 3px 0px rgba(0, 0, 0, 0.05), 0px 9px 4px 0px rgba(0, 0, 0, 0.01), 0px 14px 4px 0px rgba(0, 0, 0, 0.00)","0px 1px 16px 0px rgba(0, 0, 0, 0.07)","0px -1px 16px 0px rgba(0, 0, 0, 0.07)"];var a=e=>e==="ltr"?["Tap Sans","sans-serif"].join(", "):["Noto Sans Arabic","sans-serif"].join(", "),i=(e="ltr")=>({htmlFontSize:16,fontFamily:a(e),fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,fontWeightBolder:700,allVariants:{fontFamily:a(e),fontSize:"0.875rem",lineHeight:"normal",fontStyle:"normal",fontWeight:"normal",fontStretch:"normal",letterSpacing:"normal"},h1:{fontSize:"3.5rem"},h2:{fontSize:"3rem"},h3:{fontSize:"2.5rem"},h4:{fontSize:"2rem"},h5:{fontSize:"1.5rem"},h6:{fontSize:"1.25rem"},subtitle1:{fontSize:"0.6875rem",lineHeight:"15px",fontWeight:400},subtitle2:{fontSize:"0.875rem"},body1:{fontSize:"1rem"},body2:{fontSize:"0.875rem"},button:{fontSize:"0.875rem"},caption:{fontSize:"0.75rem"},overline:{fontSize:"0.75rem"}});var c=(e,p)=>createTheme({palette:e==="dark"?o:t,direction:p,typography:i(p),components:r,shape:{borderRadius:8},shadows:x});export{r as a,t as b,o as c,x as d,i as e,c as f};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { AccordionProps } from './types';
|
|
3
|
-
declare function Accordion({ expanded, onChange, label, content, labelStartAdornment, labelEndAdornment, slotProps, disabled, expandIcon: expandIconProp, }: Readonly<AccordionProps>): import("react").JSX.Element;
|
|
4
|
-
declare namespace Accordion {
|
|
5
|
-
var displayName: string;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: import("react").MemoExoticComponent<typeof Accordion>;
|
|
8
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
-
/**
|
|
4
|
-
* Expand/collapse chevron icon for Accordion, matching Figma Account App Refresh design
|
|
5
|
-
* (node 981:9848 – right-pointing "greater than" chevron).
|
|
6
|
-
* Use with transform: rotate(0deg) for collapsed (point right), rotate(90deg) for expanded (point down).
|
|
7
|
-
*/
|
|
8
|
-
export interface AccordionExpandIconProps {
|
|
9
|
-
sx?: SxProps<Theme>;
|
|
10
|
-
}
|
|
11
|
-
declare function AccordionExpandIcon({ sx }: Readonly<AccordionExpandIconProps>): import("react").JSX.Element;
|
|
12
|
-
declare namespace AccordionExpandIcon {
|
|
13
|
-
var displayName: string;
|
|
14
|
-
}
|
|
15
|
-
declare const _default: import("react").MemoExoticComponent<typeof AccordionExpandIcon>;
|
|
16
|
-
export default _default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import Accordion from './Accordion';
|
|
2
|
-
export { default as AccordionExpandIcon, type AccordionExpandIconProps } from './AccordionExpandIcon';
|
|
3
|
-
export type { AccordionProps, AccordionSlotProps, AccordionLabelSlotProps, AccordionContentSlotProps } from './types';
|
|
4
|
-
export default Accordion;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as AccordionExpandIcon,b as default}from'../../_chunks/chunk-GYJIUZ4U.js';import'../../_chunks/chunk-PBMQM3P4.js';import'../../_chunks/chunk-YPGWSHOT.js';import'../../_chunks/chunk-7567D5HA.js';import'../../_chunks/chunk-VWSQS7GB.js';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const AccordionRoot: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children: NonNullable<import("react").ReactNode>;
|
|
4
|
-
classes?: Partial<import("@mui/material/Accordion").AccordionClasses> | undefined;
|
|
5
|
-
defaultExpanded?: boolean | undefined;
|
|
6
|
-
disabled?: boolean | undefined;
|
|
7
|
-
disableGutters?: boolean | undefined;
|
|
8
|
-
expanded?: boolean | undefined;
|
|
9
|
-
onChange?: ((event: import("react").SyntheticEvent<Element, Event>, expanded: boolean) => void) | undefined;
|
|
10
|
-
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
11
|
-
TransitionComponent?: import("react").JSXElementConstructor<import("@mui/material/transitions").TransitionProps & {
|
|
12
|
-
children?: import("react").ReactElement<any, any> | undefined;
|
|
13
|
-
}> | undefined;
|
|
14
|
-
TransitionProps?: import("@mui/material/transitions").TransitionProps | undefined;
|
|
15
|
-
} & import("@mui/material/Accordion").AccordionSlotsAndSlotProps & Omit<import("@mui/material").PaperOwnProps, "classes" | "onChange"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
17
|
-
}, "disabled" | "children" | "onChange" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "variant" | "expanded" | "square" | "elevation" | "defaultExpanded" | "disableGutters" | "TransitionComponent" | "TransitionProps" | keyof import("@mui/material/Accordion").AccordionSlotsAndSlotProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
18
|
-
export declare const AccordionLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/material/AccordionSummary").AccordionSummaryOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
20
|
-
}, "disabled" | "classes" | "className" | "style" | "tabIndex" | "children" | "sx" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
21
|
-
export declare const AccordionDetailsStyled: import("@emotion/styled").StyledComponent<import("@mui/material/AccordionDetails").AccordionDetailsProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { AccordionProps as MuiAccordionProps } from '@mui/material/Accordion';
|
|
3
|
-
import type { AccordionSummaryProps as MuiAccordionSummaryProps } from '@mui/material/AccordionSummary';
|
|
4
|
-
import type { AccordionDetailsProps as MuiAccordionDetailsProps } from '@mui/material/AccordionDetails';
|
|
5
|
-
export interface AccordionLabelSlotProps extends MuiAccordionSummaryProps {
|
|
6
|
-
showArrow?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface AccordionContentSlotProps extends MuiAccordionDetailsProps {
|
|
9
|
-
}
|
|
10
|
-
export interface AccordionSlotProps {
|
|
11
|
-
root?: Omit<MuiAccordionProps, 'children'>;
|
|
12
|
-
label?: AccordionLabelSlotProps;
|
|
13
|
-
content?: AccordionContentSlotProps;
|
|
14
|
-
}
|
|
15
|
-
export interface AccordionProps {
|
|
16
|
-
expanded: boolean;
|
|
17
|
-
onChange: (expanded: boolean) => void;
|
|
18
|
-
label: ReactNode;
|
|
19
|
-
content: ReactNode;
|
|
20
|
-
labelStartAdornment?: ReactNode;
|
|
21
|
-
labelEndAdornment?: ReactNode;
|
|
22
|
-
slotProps?: AccordionSlotProps;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
expandIcon?: ReactNode;
|
|
25
|
-
}
|