profinansy-ui-lib 4.0.14 → 4.0.15
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.
|
@@ -4958,7 +4958,7 @@ Check the top-level render call using <`+ne+">.")}return Y}}function L2(_,Y){{if
|
|
|
4958
4958
|
fill: ${e=>e.theme.stroke.secondary};
|
|
4959
4959
|
}
|
|
4960
4960
|
}
|
|
4961
|
-
`,GI=({isOpen:e,setIsOpen:t})=>{const[n,r]=m.useState([]),{value:o,setValue:i,handleChange:s}=ka(),{locale:l}=z(),{LinkWrapper:c,hostnames:{hostname:u},user:{token:p}}=J();m.useEffect(()=>{(async()=>{const{data:C}=await K6({token:p});r(C||[])})()},[]),m.useEffect(()=>{e||i("")},[e]),m.useEffect(()=>{const g=()=>{t(!0)},C=Ue.subscribe(Ze.SearchOpen,g);return()=>{C()}},[]);const h=m.useMemo(()=>n.length?n.slice(0,3):[],[n]);return a.jsxs(NI,{onClick:()=>t(!0),"aria-label":pt[l].search,children:[a.jsx(WI,{value:o,placeholder:Ge[l].search,onChange:g=>s(g.target.value),$hasLastItems:!!h.length}),a.jsx(S4,{}),h.length?a.jsx(ZI,{$hasValue:!!o,children:h.map((g,C)=>a.jsx(bn,{text:`Смотреть ${g.code.slice(0,4)}`,placement:"bottom-end",children:a.jsx(c,{href:`${u}/market/instrument/${g.code}`,children:a.jsxs(YI,{children:[a.jsx(Ea,{ticker:g.code,logo:g.logo,logoSize:14}),a.jsx(F,{variant:"tag-Medium10",tag:"span",colorName:"contrastThemed",children:g.code.slice(0,4)})]})})},C))}):null,o&&a.jsx(zI,{onClick:()=>i(""),children:a.jsx(Ra,{})})]})},XI=f.keyframes`
|
|
4961
|
+
`,GI=({isOpen:e,setIsOpen:t})=>{const[n,r]=m.useState([]),{value:o,setValue:i,handleChange:s}=ka(),{locale:l}=z(),{LinkWrapper:c,hostnames:{hostname:u},user:{token:p}}=J();m.useEffect(()=>{(async()=>{const{data:C}=await K6({token:p});r(C||[])})()},[]),m.useEffect(()=>{e||i("")},[e]),m.useEffect(()=>{const g=()=>{t(!0)},C=Ue.subscribe(Ze.SearchOpen,g);return()=>{C()}},[]);const h=m.useMemo(()=>n.length?n.slice(0,3):[],[n]);return a.jsxs(NI,{onClick:()=>t(!0),"aria-label":pt[l].search,children:[a.jsx(WI,{value:o,placeholder:Ge[l].search,onChange:g=>s(g.target.value),$hasLastItems:!!h.length}),a.jsx(S4,{}),h.length?a.jsx(ZI,{$hasValue:!!o,children:h.map((g,C)=>a.jsx(bn,{text:`Смотреть ${g.code.slice(0,4)}`,placement:"bottom-end",children:a.jsx(c,{href:`${u}/market/instrument/${g.code}`,children:a.jsxs(YI,{children:[a.jsx(Ea,{ticker:g.code.slice(0,2),logo:g.logo,logoSize:14}),a.jsx(F,{variant:"tag-Medium10",tag:"span",colorName:"contrastThemed",children:g.code.slice(0,4)})]})})},C))}):null,o&&a.jsx(zI,{onClick:()=>i(""),children:a.jsx(Ra,{})})]})},XI=f.keyframes`
|
|
4962
4962
|
from {
|
|
4963
4963
|
opacity: 0;
|
|
4964
4964
|
transform: translateY(-5px);
|