@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.
@@ -45,7 +45,8 @@ export interface MainLogoProps {
45
45
  * <MainLogo network="preview" />
46
46
  * ```
47
47
  */
48
- network: string;
48
+ network?: string;
49
+ mini?: boolean;
49
50
  }
50
51
  /**
51
52
  * MainLogo displays the Cexplorer logo with theme support and connection status.
@@ -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;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsFG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA+DtC,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 a from"../../resources/images/logo_darkmode_offline.svg.js";import i 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})=>{const{theme:x}=c(),[u,v]=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),v(!0)}catch{v(!1)}},3e4);return()=>{clearInterval(e)}},[]),e(s,{to:"/",className:"shrink-0",onClick:d,children:o("div",{className:"relative",children:[e("img",u?{className:f,src:"light"===x?l:m,width:p,alt:"Cexplorer logo"}:{className:f,src:"light"===x?i:a,width:p,alt:"Cexplorer logo"}),e(n,{color:"blue",className:"absolute left-[36px] top-[31px] h-5 w-5 !px-[6px] !py-[2px] !text-[10px] !font-bold",children:"beta"}),e(g,{network:h})]})})};export{p as MainLogo};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumlabs/cexplorer-sdk",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "description": "Cexplorer UI Component Library with theme system",
5
5
  "author": "Vellum Labs",
6
6
  "main": "dist/index.js",