kwant-ui 3.33.7-dev.0 → 3.33.7-dev.2
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.es.js +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1312,7 +1312,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1312
1312
|
left: ${({offsetLeft:e})=>e};
|
|
1313
1313
|
right: ${({offsetRight:e})=>e};
|
|
1314
1314
|
z-index: ${({zIndex:e})=>e};
|
|
1315
|
-
`,Bt=t=>{const{height:r="fit-content",width:n=350,offsetTop:a,offsetLeft:c,offsetRight:i,offsetBottom:o,zIndex:s=100,children:h,opened:v,targetRef:p,onClose:g,onMouseEnter:m,onMouseLeave:d}=t,f=u(),_=e=>{const t=e.target;p?.current?.contains(t)||f.current?.contains(t)||g()},w=e=>{"Escape"===e.key&&g()};return l((()=>(document.addEventListener("mousedown",_),document.addEventListener("keyup",w),()=>{document.removeEventListener("mousedown",_),document.addEventListener("keyup",w)})),[p,f]),v?e(zt,{width:ke(n),height:ke(r),offsetTop:a,offsetBottom:o,offsetLeft:c,offsetRight:i,zIndex:s,ref:f,onMouseEnter:m,onMouseLeave:d,children:h}):null},kt=n.div`
|
|
1315
|
+
`,Bt=t=>{const{height:r="fit-content",width:n=350,offsetTop:a,offsetLeft:c,offsetRight:i,offsetBottom:o,zIndex:s=100,children:h,opened:v,targetRef:p,onClose:g,onMouseEnter:m,onMouseLeave:d}=t,f=u(),_=e=>{const t=e.target;p?.current?.contains(t)||f.current?.contains(t)||g()},w=e=>{"Escape"===e.key&&g()};return l((()=>(document.addEventListener("mousedown",_),document.addEventListener("keyup",w),()=>{document.removeEventListener("mousedown",_),document.addEventListener("keyup",w)})),[p,f]),v?e(zt,{width:ke(n),height:ke(r),offsetTop:a,offsetBottom:o,offsetLeft:c,offsetRight:i,zIndex:s,ref:f,onMouseEnter:m,onMouseLeave:d,onMouseDown:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),children:h}):null},kt=n.div`
|
|
1316
1316
|
transition: 0.3s;
|
|
1317
1317
|
max-height: ${({expandedHeight:e})=>ke(e,"fit-content")};
|
|
1318
1318
|
overflow: hidden;
|
package/dist/index.js
CHANGED
|
@@ -1312,7 +1312,7 @@
|
|
|
1312
1312
|
left: ${({offsetLeft:e})=>e};
|
|
1313
1313
|
right: ${({offsetRight:e})=>e};
|
|
1314
1314
|
z-index: ${({zIndex:e})=>e};
|
|
1315
|
-
`,it=t=>{const{height:n="fit-content",width:a=350,offsetTop:c,offsetLeft:i,offsetRight:o,offsetBottom:s,zIndex:l=100,children:h,opened:v,targetRef:p,onClose:u,onMouseEnter:g,onMouseLeave:m}=t,d=r.useRef(),f=e=>{const t=e.target;p?.current?.contains(t)||d.current?.contains(t)||u()},_=e=>{"Escape"===e.key&&u()};return r.useEffect((()=>(document.addEventListener("mousedown",f),document.addEventListener("keyup",_),()=>{document.removeEventListener("mousedown",f),document.addEventListener("keyup",_)})),[p,d]),v?e.jsx(ct,{width:ue(a),height:ue(n),offsetTop:c,offsetBottom:s,offsetLeft:i,offsetRight:o,zIndex:l,ref:d,onMouseEnter:g,onMouseLeave:m,children:h}):null},ot=t.div`
|
|
1315
|
+
`,it=t=>{const{height:n="fit-content",width:a=350,offsetTop:c,offsetLeft:i,offsetRight:o,offsetBottom:s,zIndex:l=100,children:h,opened:v,targetRef:p,onClose:u,onMouseEnter:g,onMouseLeave:m}=t,d=r.useRef(),f=e=>{const t=e.target;p?.current?.contains(t)||d.current?.contains(t)||u()},_=e=>{"Escape"===e.key&&u()};return r.useEffect((()=>(document.addEventListener("mousedown",f),document.addEventListener("keyup",_),()=>{document.removeEventListener("mousedown",f),document.addEventListener("keyup",_)})),[p,d]),v?e.jsx(ct,{width:ue(a),height:ue(n),offsetTop:c,offsetBottom:s,offsetLeft:i,offsetRight:o,zIndex:l,ref:d,onMouseEnter:g,onMouseLeave:m,onMouseDown:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),children:h}):null},ot=t.div`
|
|
1316
1316
|
transition: 0.3s;
|
|
1317
1317
|
max-height: ${({expandedHeight:e})=>ue(e,"fit-content")};
|
|
1318
1318
|
overflow: hidden;
|
package/dist/package.json
CHANGED