@theroutingcompany/components 0.0.86 → 0.0.87-alpha.1
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.
|
@@ -2322,10 +2322,11 @@ Valid keys: `+JSON.stringify(Object.keys(B),null," "));var ne=se(K,re,q,le,ae+"
|
|
|
2322
2322
|
0px 15px 20px rgba(0, 0, 0, 0.03), 0px 30px 40px rgba(0, 0, 0, 0.03),
|
|
2323
2323
|
0px 40px 70px rgba(0, 0, 0, 0.03), 0px 4px 30px rgba(0, 0, 0, 0.03),
|
|
2324
2324
|
0px 0px 8px rgba(0, 0, 0, 0.03);
|
|
2325
|
-
`,P3=({children:e,portalIdOverride:t})=>{const[r,n]=c.useState(null),{direction:o,open:a,menuRef:i}=c.useContext(Ud),[l,s]=c.useState(0),[u,d]=c.useState(0),[f,m]=c.useState(0),h=document.getElementById(t
|
|
2325
|
+
`,P3=({children:e,portalIdOverride:t})=>{const[r,n]=c.useState(null),{direction:o,open:a,menuRef:i}=c.useContext(Ud),[l,s]=c.useState(0),[u,d]=c.useState(0),[f,m]=c.useState(0),h=document.getElementById(t??jd),g=c.useCallback(y=>{n(y)},[]),b=c.useCallback(()=>{if(o==="Up"&&r&&i!=null&&i.current){const y=i.current.getBoundingClientRect();s(y.width),d(Math.floor(y.top-r.offsetHeight)),m(y.x)}if(o==="Down"&&i!=null&&i.current){const y=i.current.getBoundingClientRect();s(y.width),d(Math.ceil(y.y+y.height)),m(y.x)}},[o,r,i]);return c.useEffect(()=>{b()},[r==null?void 0:r.offsetHeight,b]),c.useEffect(()=>{const y=setTimeout(()=>{b()},1e3);return()=>{clearTimeout(y)}},[r,b]),c.useEffect(()=>(window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}),[r,b]),Lr.createPortal(D(XN,{width:l,top:u,left:f,ref:g,open:a,children:e}),h)};eo.List=P3;const JN=L.default.div`
|
|
2326
2326
|
color: hsl(210deg 2.82% 27.84%);
|
|
2327
2327
|
border-radius: ${p.border_radius_400};
|
|
2328
2328
|
margin: 4px;
|
|
2329
|
+
cursor: pointer;
|
|
2329
2330
|
|
|
2330
2331
|
> a:visited {
|
|
2331
2332
|
color: inherit;
|