gf-components 0.1.162 → 0.1.163
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.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -618,5 +618,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
618
618
|
font-weight: 400;
|
|
619
619
|
color: var(--gf-color-button-primary);
|
|
620
620
|
transition: color 150ms ease, font-weight 150ms ease;
|
|
621
|
-
`,A7e=({items:e,width:t=226,offset:n=0,rootMargin:r=80,containerStyle:i={}})=>{const[o,a]=S.useState(0),s=S.useRef(!1),l=S.useRef(null),c=d=>{s.current=!0,l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{s.current=!1},d)},u=d=>{var m,g;a(d),c(800);const f=(g=(m=e==null?void 0:e[d])==null?void 0:m.href)==null?void 0:g.current;if(!f)return;const h=f.getBoundingClientRect().top+window.pageYOffset-n;window.scrollTo({top:h,behavior:"smooth"})};return S.useEffect(()=>{const d=(e||[]).map((h,m)=>{var g;return{key:m,el:(g=h.href)==null?void 0:g.current}}).filter(h=>h.el);if(!d.length)return;const f=new IntersectionObserver(h=>{if(s.current)return;const m=h.filter(v=>v.isIntersecting).sort((v,b)=>v.boundingClientRect.top-b.boundingClientRect.top)[0];if(!m)return;const g=d.find(v=>v.el===m.target);g&&g.key!==void 0&&a(g.key)},{root:null,threshold:[.1,.2,.3],rootMargin:`-${n}px 0px
|
|
621
|
+
`,A7e=({items:e,width:t=226,offset:n=0,rootMargin:r=80,containerStyle:i={}})=>{const[o,a]=S.useState(0),s=S.useRef(!1),l=S.useRef(null),c=d=>{s.current=!0,l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{s.current=!1},d)},u=d=>{var m,g;a(d),c(800);const f=(g=(m=e==null?void 0:e[d])==null?void 0:m.href)==null?void 0:g.current;if(!f)return;const h=f.getBoundingClientRect().top+window.pageYOffset-n;window.scrollTo({top:h,behavior:"smooth"})};return S.useEffect(()=>{const d=(e||[]).map((h,m)=>{var g;return{key:m,el:(g=h.href)==null?void 0:g.current}}).filter(h=>h.el);if(!d.length)return;const f=new IntersectionObserver(h=>{if(s.current)return;const m=h.filter(v=>v.isIntersecting).sort((v,b)=>v.boundingClientRect.top-b.boundingClientRect.top)[0];if(!m)return;const g=d.find(v=>v.el===m.target);g&&g.key!==void 0&&a(g.key)},{root:null,threshold:[.1,.2,.3],rootMargin:`-${n}px 0px -${r}% 0px`});return d.forEach(({el:h})=>f.observe(h)),()=>{f.disconnect(),l.current&&clearTimeout(l.current)}},[e]),p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(qt,{align:"stretch",children:[p.jsxs(qt,{gap:8,vertical:!0,align:"flex-start",style:{width:t,height:"fit-content",paddingTop:48,top:n,position:"sticky",paddingRight:8,...i},children:[p.jsx("span",{style:{fontSize:12},children:"Inhoudsopgave".toUpperCase()}),e==null?void 0:e.map((d,f)=>{const h=f===o;return p.jsx("div",{onClick:()=>u(f),style:{width:"100%",boxSizing:"border-box",padding:8,cursor:"pointer",background:h?"#F0F6FF":"transparent",transition:"background 150ms ease"},children:p.jsx(I7e,{children:d==null?void 0:d.name})},f)})]}),p.jsx("div",{style:{borderRight:"1px solid #DAE1ED"}})]})]})};exports.AddressLink=eD;exports.Anchor=A7e;exports.BarChart=E5e;exports.BenchmarkSankey=A2e;exports.ButtonControls=kF;exports.CrmValueChart=V7e;exports.CustomToolTip=Zn;exports.Description=iD;exports.DomRawChart=S5e;exports.DownloadButton=cx;exports.EmailLink=JF;exports.ExpandButton=ux;exports.GFButton=a6;exports.GFCard=Qs;exports.GFMetricsGrid=oD;exports.GoalChart=M7e;exports.ImpactTrend=j7e;exports.Link=Kd;exports.LocationIcon=bx;exports.MailIcon=px;exports.MaterialHeatmap=S7e;exports.Metrics=vx;exports.NavCard=IF;exports.PhoneIcon=mx;exports.PhoneLink=tD;exports.PieChart=Cle;exports.QuickNavCard=WF;exports.RenewableTrend=P7e;exports.Sankey=Ise;exports.ScatterPlot=mde;exports.TabCard=ZF;exports.Title=gx;exports.TreeMap=c2e;exports.Trends=L2e;exports.VisSelectors=P2e;exports.WasteOverview=C5e;
|
|
622
622
|
//# sourceMappingURL=index.cjs.js.map
|