@vellumlabs/cexplorer-sdk 1.1.16 → 1.1.17
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/mainLogo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAchC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;OASG;IACH,OAAO,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/mainLogo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAchC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsFG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAgEtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useState as r,useEffect as t}from"react";import{Link as s}from"@tanstack/react-router";import
|
|
1
|
+
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useState as r,useEffect as t}from"react";import{Link as s}from"@tanstack/react-router";import i from"../../resources/images/logo_darkmode_offline.svg.js";import a from"../../resources/images/logo_lightmode_offline.svg.js";import l from"../../resources/images/preloader_logo_dark.svg.js";import m from"../../resources/images/preloader_logo_light.svg.js";import{useThemeStore as c}from"../../stores/themeStore.js";import{Badge as n}from"../badge/index.js";import{EnvironmentBadge as g}from"../environmentBadge/index.js";const p=({size:p=150,onClick:d,className:f,network:h,mini:x=!1})=>{const{theme:u}=c(),[v,w]=r(!0);return t(()=>{const e=setInterval(async()=>{try{const e=new AbortController,o=setTimeout(()=>e.abort(),5e3);await fetch(window.location.origin+"/favicon.ico",{method:"HEAD",cache:"no-cache",signal:e.signal}),clearTimeout(o),w(!0)}catch{w(!1)}},3e4);return()=>{clearInterval(e)}},[]),e(s,{to:"/",className:"shrink-0",onClick:d,children:o("div",{className:x?"flex items-center":"relative",children:[e("img",v?{className:f,src:"light"===u?l:m,width:p,alt:"Cexplorer logo"}:{className:f,src:"light"===u?a:i,width:p,alt:"Cexplorer logo"}),e(n,{color:"blue",className:"h-5 w-5 !px-[6px] !py-[2px] !text-[10px] !font-bold "+(x?"-translate-x-[10px]":"absolute left-[36px] top-[31px]"),children:x?"mini":"beta"}),h&&e(g,{network:h})]})})};export{p as MainLogo};
|