@vellumlabs/cexplorer-sdk 1.1.19 → 1.1.20

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/formatStringComponent/index.tsx"],"names":[],"mappings":"AAEA,UAAU,0BAA0B;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,qBAAqB,GAAI,iCAInC,0BAA0B,4CAuD5B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/formatStringComponent/index.tsx"],"names":[],"mappings":"AAEA,UAAU,0BAA0B;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,qBAAqB,GAAI,iCAInC,0BAA0B,4CA0D5B,CAAC"}
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{useState as n,useRef as r,useEffect as t}from"react";const i=({text:i,truncated:l,className:s})=>{const[a,c]=n(!1),[o,u]=n(null),[d,m]=n(0),p=r(null),f=r(null);return t(()=>{p.current&&!o&&u(p.current.offsetWidth)},[o]),t(()=>{if(a&&f.current&&o){const e=f.current.scrollWidth-o;m(e>0?e:0)}},[a,o]),e("span",{ref:p,className:s,style:{display:"inline-block",overflow:"hidden",verticalAlign:"middle",...o?{width:o+"px"}:{}},onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:e("span",a?{ref:f,className:"inline-block whitespace-nowrap",style:{animation:d>0?"marquee 10s ease-in-out infinite":"none","--scroll-distance":`-${d}px`},children:i}:{className:"whitespace-nowrap",children:l})})};export{i as FormatStringComponent};
1
+ import{jsx as e}from"react/jsx-runtime";import{useState as n,useRef as r,useEffect as t}from"react";const i=({text:i,truncated:l,className:s})=>{const[a,c]=n(!1),[o,d]=n(null),[u,m]=n(0),p=r(null),f=r(null);return t(()=>{if(a&&f.current&&o){const e=f.current.scrollWidth-o;m(e>0?e:0)}},[a,o]),e("span",{ref:p,className:s,style:{display:"inline-block",verticalAlign:"middle",...a?{overflow:"hidden",width:o?o+"px":void 0}:{}},onMouseEnter:()=>{p.current&&d(p.current.offsetWidth),c(!0)},onMouseLeave:()=>c(!1),children:e("span",a?{ref:f,className:"inline-block whitespace-nowrap",style:{animation:u>0?"marquee 10s ease-in-out infinite":"none","--scroll-distance":`-${u}px`},children:i}:{className:"whitespace-nowrap",children:l})})};export{i as FormatStringComponent};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumlabs/cexplorer-sdk",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "description": "Cexplorer UI Component Library with theme system",
5
5
  "author": "Vellum Labs",
6
6
  "main": "dist/index.js",