profinansy-ui-lib 3.8.85 → 3.8.87

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.
@@ -10,7 +10,6 @@ export declare const selectStyles: {
10
10
  multiValueRemove: (base: any) => any;
11
11
  placeholder: (baseStyled: any, state: any) => any;
12
12
  menu: (baseStyled: any, state: any) => any;
13
- menuPortal: (base: any) => any;
14
13
  menuList: (baseStyled: any, state: any) => any;
15
14
  option: (base: any, state: any) => any;
16
15
  };
@@ -4395,7 +4395,7 @@ Check the top-level render call using <`+q+">.")}return G}}function e2(L,G){{if(
4395
4395
  border-radius: 12px;
4396
4396
  padding: 4px 8px;
4397
4397
  background: ${e=>e.theme.icons.accent};
4398
- `,Mc=()=>s.jsx(NE,{variant:"tag-Medium11",colorName:"contrastThemed",tag:"span",children:"Новинка"}),ZE=m.memo(({item:e,isOpen:t,handleClose:n})=>{const[r,o]=m.useState(0),{structure:i}=e,a=m.useRef(null),{LinkWrapper:l}=he(),{locale:c}=ce(),u=e.isWithoutSubpage;return m.useEffect(()=>{if(a.current&&t){const f=a.current.scrollHeight;o(f)}},[t,e]),s.jsx(HE,{ref:a,$isOpen:t,$height:r,children:i.map((f,p)=>s.jsx(BE,{children:f?.map(C=>{const g=C.unavailable,v=C.isHit,b=C.isNew;return C.isNotVisible||C.isDeleteCommonNavigation?null:s.jsxs(FE,{$isOpen:t,onClick:n,children:[s.jsx(l,{href:C.href,children:s.jsxs(Iu,{variant:"header6-SemiBold",tag:"span",colorName:"primary",children:[vt[c][C.name],g&&s.jsx(Q0,{style:{minWidth:"22px"}}),!g&&v&&s.jsx(Ic,{}),!g&&!v&&b&&s.jsx(Mc,{})]})}),C.subPages&&!u&&s.jsx(VE,{children:C.subPages?.map(x=>s.jsx(l,{href:x.href,children:s.jsxs(Mu,{variant:"description-Medium",tag:"span",colorName:"fourth",children:[vt[c][x.name],x.isNew&&s.jsx(Mc,{}),x.isHit&&s.jsx(Ic,{})]})},x.name))})]},C.name)})},p))})}),WE=m.memo(e=>{const{item:t,handleOpenItem:n,openItem:r,isOpenSearch:o}=e,{locale:i}=ce(),{name:a,href:l}=t,c=m.useMemo(()=>{const u=Eu();let f=!1;if(a==="idv"&&u){const p=ku(u);Array.isArray(p.tariff)&&p.tariff.forEach(C=>{C.t===10078&&C.f===9&&C.p?.includes(54)&&(f=!0)})}return f},[a]);return s.jsxs(PE,{children:[s.jsx(GE,{item:t,isOpenSearch:o,handleOpenItem:n,children:s.jsx(wu,{$isHover:r===a,$isIdv:c,children:s.jsx("div",{onClick:()=>l?n(null):null,onMouseEnter:()=>n(a),children:s.jsx(Ll,{variant:"description-SemiBold",tag:"span",children:vt[i][a]})})})}),s.jsx(ZE,{item:t,isOpen:r===a,handleClose:()=>n(null)})]})}),GE=({item:e,isOpenSearch:t,handleOpenItem:n,children:r})=>{const{LinkWrapper:o}=he(),{locale:i}=ce();return e.href?s.jsx(o,{href:e.href,tabIndex:t?-1:0,"aria-label":vt[i][e.name],children:r}):s.jsx(jE,{onClick:()=>n(e.name),"aria-label":vt[i][e.name],tabIndex:t?-1:0,children:r})},ss=e=>d.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5C15.866 18.5 19 15.366 19 11.5C19 7.63401 15.866 4.5 12 4.5C8.13401 4.5 5 7.63401 5 11.5C5 15.366 8.13401 18.5 12 18.5ZM12 20C16.6944 20 20.5 16.1944 20.5 11.5C20.5 6.80558 16.6944 3 12 3C7.30558 3 3.5 6.80558 3.5 11.5C3.5 16.1944 7.30558 20 12 20Z",fill:"white"}),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9697 18.4697C18.2626 18.1768 18.7374 18.1768 19.0303 18.4697L21.0303 20.4697C21.3232 20.7626 21.3232 21.2374 21.0303 21.5303C20.7374 21.8232 20.2626 21.8232 19.9697 21.5303L17.9697 19.5303C17.6768 19.2374 17.6768 18.7626 17.9697 18.4697Z",fill:"white"})),Lc=e=>h.keyframes`
4398
+ `,Mc=()=>s.jsx(NE,{variant:"tag-Medium11",colorName:"contrastThemed",tag:"span",children:"Новинка"}),ZE=m.memo(({item:e,isOpen:t,handleClose:n})=>{const[r,o]=m.useState(0),{structure:i}=e,a=m.useRef(null),{LinkWrapper:l}=he(),{locale:c}=ce(),u=e.isWithoutSubpage;return m.useEffect(()=>{if(a.current&&t){const f=a.current.scrollHeight;o(f)}},[t,e]),s.jsx(HE,{ref:a,$isOpen:t,$height:r,children:i.map((f,p)=>s.jsx(BE,{children:f?.map(C=>{const g=C.unavailable,v=C.isHit,b=C.isNew;return C.isNotVisible||C.isDeleteCommonNavigation?null:s.jsxs(FE,{$isOpen:t,onClick:n,children:[s.jsx(l,{href:C.href,children:s.jsxs(Iu,{variant:"header6-SemiBold",tag:"span",colorName:"primary",children:[vt[c][C.name],g&&s.jsx(Q0,{style:{minWidth:"22px"}}),!g&&v&&s.jsx(Ic,{}),!g&&!v&&b&&s.jsx(Mc,{})]})}),C.subPages&&!u&&s.jsx(VE,{children:C.subPages?.map(x=>s.jsx(l,{href:x.href,children:s.jsxs(Mu,{variant:"description-Medium",tag:"span",colorName:"fourth",children:[vt[c][x.name],x.isNew&&s.jsx(Mc,{}),x.isHit&&s.jsx(Ic,{})]})},x.name))})]},C.name)})},p))})}),WE=m.memo(e=>{const{item:t,handleOpenItem:n,openItem:r,isOpenSearch:o}=e,{locale:i}=ce(),{name:a,href:l}=t,c=m.useMemo(()=>{const u=Eu();let f=!1;if(a==="idv"&&u){const p=ku(u);Array.isArray(p.tariff)&&p.tariff.forEach(C=>{(C.t===10078||C.t===10578)&&C.f===13&&C.p?.includes(54)&&(f=!0)})}return f},[a]);return s.jsxs(PE,{children:[s.jsx(GE,{item:t,isOpenSearch:o,handleOpenItem:n,children:s.jsx(wu,{$isHover:r===a,$isIdv:c,children:s.jsx("div",{onClick:()=>l?n(null):null,onMouseEnter:()=>n(a),children:s.jsx(Ll,{variant:"description-SemiBold",tag:"span",children:vt[i][a]})})})}),s.jsx(ZE,{item:t,isOpen:r===a,handleClose:()=>n(null)})]})}),GE=({item:e,isOpenSearch:t,handleOpenItem:n,children:r})=>{const{LinkWrapper:o}=he(),{locale:i}=ce();return e.href?s.jsx(o,{href:e.href,tabIndex:t?-1:0,"aria-label":vt[i][e.name],children:r}):s.jsx(jE,{onClick:()=>n(e.name),"aria-label":vt[i][e.name],tabIndex:t?-1:0,children:r})},ss=e=>d.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5C15.866 18.5 19 15.366 19 11.5C19 7.63401 15.866 4.5 12 4.5C8.13401 4.5 5 7.63401 5 11.5C5 15.366 8.13401 18.5 12 18.5ZM12 20C16.6944 20 20.5 16.1944 20.5 11.5C20.5 6.80558 16.6944 3 12 3C7.30558 3 3.5 6.80558 3.5 11.5C3.5 16.1944 7.30558 20 12 20Z",fill:"white"}),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9697 18.4697C18.2626 18.1768 18.7374 18.1768 19.0303 18.4697L21.0303 20.4697C21.3232 20.7626 21.3232 21.2374 21.0303 21.5303C20.7374 21.8232 20.2626 21.8232 19.9697 21.5303L17.9697 19.5303C17.6768 19.2374 17.6768 18.7626 17.9697 18.4697Z",fill:"white"})),Lc=e=>h.keyframes`
4399
4399
  from {
4400
4400
  width: 48px;
4401
4401
  opacity: 0;
@@ -7157,7 +7157,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7157
7157
  overflow: hidden;
7158
7158
  text-overflow: ellipsis;
7159
7159
  white-space: nowrap;
7160
- `,aB=e=>s.jsx(ft.MultiValueRemove,{...e,children:s.jsx(oB,{role:"button",children:s.jsx(ro,{})})}),sB=e=>s.jsx(ft.MultiValueLabel,{...e,children:s.jsxs(rB,{children:[s.jsx($i,{size:"16px",link:e.data.image||"https://test.profinansy.ru/api/data/abdiumj4m/img_36116-_W.webp"}),s.jsx(iB,{variant:"caption-Medium",colorName:"fourth",tag:"span",children:e.data.label})]})}),lB=e=>e.isDisabled?e.selectProps.customTheme.stroke.tertiary:e.isFocused&&e.selectProps?.menuIsOpen?`${e.selectProps.customTheme.stroke.accent} !important`:e.selectProps?.isError?e.selectProps.customTheme.stroke.negative:e.selectProps.customTheme.stroke.primary,cB={container:e=>({...e,fontFamily:"Manrope, sans-serif",width:"100%"}),control:(e,t)=>({...e,minHeight:"44px",borderRadius:"8px",border:`0.8px solid ${lB(t)}`,background:t.selectProps.customTheme.background.field,boxShadow:"none",fontSize:15,lineHeight:"24px",color:t.selectProps.customTheme.text.primary,cursor:"pointer",":hover":{borderColor:t.selectProps.customTheme.stroke.secondary},"@media (max-width: 600px)":{fontSize:16}}),singleValue:(e,t)=>({...e,color:t.isDisabled?t.selectProps.customTheme.text.secondary:t.selectProps.customTheme.text.primary,fontSize:15,lineHeight:"20px",whiteSpace:"nowrap","@media (max-width: 600px)":{fontSize:16}}),valueContainer:(e,t)=>({...e,padding:"5px 0 5px 12px",gap:"4px 8px","& > div > input":{color:`${t.selectProps.customTheme.text.primary} !important`}}),multiValue:(e,t)=>({...e,backgroundColor:t.isDisabled?t.selectProps.customTheme.background.switch:t.selectProps.customTheme.background.fieldSecondary,maxWidth:"calc(50% - 8px)",display:"flex",alignItems:"center",margin:"0",borderRadius:20,padding:"4px 8px 4px 0px"}),multiValueLabel:(e,t)=>({...e,color:t.isDisabled?t.selectProps.customTheme.text.secondary:t.selectProps.customTheme.text.fourth,fontSize:"13px",lineHeight:"16px",fontWeight:500}),multiValueRemove:e=>({...e,background:"transparent",padding:0,marginLeft:2,"&:hover":{background:"transparent"}}),placeholder:(e,t)=>({...e,fontFamily:"Manrope, sans-serif",color:t.selectProps.customTheme.text.secondary,fontWeight:400,fontSize:15,lineHeight:"20px","@media (max-width: 600px)":{fontSize:16}}),menu:(e,t)=>({...e,position:t.selectProps.customPositionMenu||"absolute",top:"40px",maxHeight:"260px",border:`0.5px solid ${t.selectProps.customTheme.stroke.primary}`,boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 4px rgba(0, 0, 0, 0.06)",zIndex:1e3,borderRadius:"8px",background:t.selectProps.customTheme.background.field}),menuPortal:e=>({...e,zIndex:9999,top:"114px"}),menuList:(e,t)=>({...e,padding:6,maxHeight:"260px",...S3(t.selectProps.customTheme)}),option:(e,t)=>({...e,fontWeight:t.isSelected?500:400,fontSize:"16px",lineHeight:"20px",padding:"8px",backgroundColor:t.isSelected?t.selectProps.customTheme.interactiveControls.accent:"transparent",color:t.selectProps.customTheme.text.primary,overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis",borderRadius:8,cursor:"pointer",":hover":{background:t.selectProps.customTheme.background.secondary}})},uB=h.styled.div`
7160
+ `,aB=e=>s.jsx(ft.MultiValueRemove,{...e,children:s.jsx(oB,{role:"button",children:s.jsx(ro,{})})}),sB=e=>s.jsx(ft.MultiValueLabel,{...e,children:s.jsxs(rB,{children:[s.jsx($i,{size:"16px",link:e.data.image||"https://test.profinansy.ru/api/data/abdiumj4m/img_36116-_W.webp"}),s.jsx(iB,{variant:"caption-Medium",colorName:"fourth",tag:"span",children:e.data.label})]})}),lB=e=>e.isDisabled?e.selectProps.customTheme.stroke.tertiary:e.isFocused&&e.selectProps?.menuIsOpen?`${e.selectProps.customTheme.stroke.accent} !important`:e.selectProps?.isError?e.selectProps.customTheme.stroke.negative:e.selectProps.customTheme.stroke.primary,cB={container:e=>({...e,fontFamily:"Manrope, sans-serif",width:"100%"}),control:(e,t)=>({...e,minHeight:"44px",borderRadius:"8px",border:`0.8px solid ${lB(t)}`,background:t.selectProps.customTheme.background.field,boxShadow:"none",fontSize:15,lineHeight:"24px",color:t.selectProps.customTheme.text.primary,cursor:"pointer",":hover":{borderColor:t.selectProps.customTheme.stroke.secondary},"@media (max-width: 600px)":{fontSize:16}}),singleValue:(e,t)=>({...e,color:t.isDisabled?t.selectProps.customTheme.text.secondary:t.selectProps.customTheme.text.primary,fontSize:15,lineHeight:"20px",whiteSpace:"nowrap","@media (max-width: 600px)":{fontSize:16}}),valueContainer:(e,t)=>({...e,padding:"5px 0 5px 12px",gap:"4px 8px","& > div > input":{color:`${t.selectProps.customTheme.text.primary} !important`}}),multiValue:(e,t)=>({...e,backgroundColor:t.isDisabled?t.selectProps.customTheme.background.switch:t.selectProps.customTheme.background.fieldSecondary,maxWidth:"calc(50% - 8px)",display:"flex",alignItems:"center",margin:"0",borderRadius:20,padding:"4px 8px 4px 0px"}),multiValueLabel:(e,t)=>({...e,color:t.isDisabled?t.selectProps.customTheme.text.secondary:t.selectProps.customTheme.text.fourth,fontSize:"13px",lineHeight:"16px",fontWeight:500}),multiValueRemove:e=>({...e,background:"transparent",padding:0,marginLeft:2,"&:hover":{background:"transparent"}}),placeholder:(e,t)=>({...e,fontFamily:"Manrope, sans-serif",color:t.selectProps.customTheme.text.secondary,fontWeight:400,fontSize:15,lineHeight:"20px","@media (max-width: 600px)":{fontSize:16}}),menu:(e,t)=>({...e,position:t.selectProps.customPositionMenu||"absolute",top:"40px",maxHeight:"260px",border:`0.5px solid ${t.selectProps.customTheme.stroke.primary}`,boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 4px rgba(0, 0, 0, 0.06)",zIndex:1e3,borderRadius:"8px",background:t.selectProps.customTheme.background.field}),menuList:(e,t)=>({...e,padding:6,maxHeight:"260px",...S3(t.selectProps.customTheme)}),option:(e,t)=>({...e,fontWeight:t.isSelected?500:400,fontSize:"16px",lineHeight:"20px",padding:"8px",backgroundColor:t.isSelected?t.selectProps.customTheme.interactiveControls.accent:"transparent",color:t.selectProps.customTheme.text.primary,overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis",borderRadius:8,cursor:"pointer",":hover":{background:t.selectProps.customTheme.background.secondary}})},uB=h.styled.div`
7161
7161
  width: 100%;
7162
7162
  & .checkbox-container {
7163
7163
  pointer-events: none;