Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blueprintjs/popover2

Package Overview
Dependencies
Maintainers
1
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blueprintjs/popover2 - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

lib/cjs/contextMenu2.d.ts

2

dist/popover2.bundle.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@blueprintjs/core"),require("tslib"),require("react"),require("classnames"),require("react-popper")):"function"==typeof define&&define.amd?define(["@blueprintjs/core","tslib","react","classnames","react-popper"],t):"object"==typeof exports?exports.Popover2=t(require("@blueprintjs/core"),require("tslib"),require("react"),require("classnames"),require("react-popper")):(e.Blueprint=e.Blueprint||{},e.Blueprint.Popover2=t(e.Blueprint.Core,e.window,e.React,e.classNames,e.ReactPopper))}(window,(function(e,t,n,r,o){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"Classes",(function(){return r})),n.d(t,"Errors",(function(){return o})),n.d(t,"PlacementOptions",(function(){return A})),n.d(t,"Popover2",(function(){return Y})),n.d(t,"Popover2InteractionKind",(function(){return G})),n.d(t,"Tooltip2",(function(){return q}));var r={};n.r(r),n.d(r,"POPOVER2",(function(){return a})),n.d(r,"POPOVER2_ARROW",(function(){return p})),n.d(r,"POPOVER2_BACKDROP",(function(){return l})),n.d(r,"POPOVER2_CAPTURING_DISMISS",(function(){return u})),n.d(r,"POPOVER2_CONTENT",(function(){return c})),n.d(r,"POPOVER2_CONTENT_PLACEMENT",(function(){return d})),n.d(r,"POPOVER2_CONTENT_SIZING",(function(){return f})),n.d(r,"POPOVER2_DISMISS",(function(){return O})),n.d(r,"POPOVER2_DISMISS_OVERRIDE",(function(){return v})),n.d(r,"POPOVER2_OPEN",(function(){return m})),n.d(r,"POPOVER2_TARGET",(function(){return h})),n.d(r,"POPOVER2_TRANSITION_CONTAINER",(function(){return P})),n.d(r,"TOOLTIP2",(function(){return E})),n.d(r,"TOOLTIP2_INDICATOR",(function(){return _}));var o={};n.r(o),n.d(o,"POPOVER2_REQUIRES_TARGET",(function(){return b})),n.d(o,"POPOVER2_HAS_BACKDROP_INTERACTION",(function(){return C})),n.d(o,"POPOVER2_WARN_TOO_MANY_CHILDREN",(function(){return T})),n.d(o,"POPOVER2_WARN_DOUBLE_TARGET",(function(){return R})),n.d(o,"POPOVER2_WARN_EMPTY_CONTENT",(function(){return I})),n.d(o,"POPOVER2_WARN_HAS_BACKDROP_INLINE",(function(){return y})),n.d(o,"POPOVER2_WARN_UNCONTROLLED_ONINTERACTION",(function(){return N}));var s=n(0),i=s.Classes.getClassNamespace(),a=i+"-popover2",p=a+"-arrow",l=a+"-backdrop",u=a+"-capturing-dismiss",c=a+"-content",d=a+"-placement",f=c+"-sizing",O=a+"-dismiss",v=O+"-override",m=a+"-open",h=a+"-target",P=a+"-transition-container",E=i+"-tooltip2",_=E+"-indicator",g="[Blueprint]",b=g+" <Popover2> requires renderTarget prop or a child element.",C=g+' <Popover2 hasBackdrop={true}> requires interactionKind="click".',T=g+" <Popover2> supports only one child which is rendered as its target; additional children are ignored.",R=g+" <Popover2> with children ignores renderTarget prop; use either prop or children.",I=g+" Disabling <Popover2> with empty/whitespace content...",y=g+" <Popover2 usePortal={false}> ignores hasBackdrop",N=g+" <Popover2> onInteraction is ignored when uncontrolled.",S=["top","bottom","right","left"],A=[].concat(S,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),D=n(1),M=n(3),w=n.n(M),L=n(2),j=n(4);function V(e){return e.split("-")[0]}function k(e){return-1!==["left","right"].indexOf(e)}function K(e){switch(e){case"top":return"bottom";case"left":return"right";case"bottom":return"top";default:return"left"}}function x(e){switch(e.split("-")[1]){case"start":return"left";case"end":return"right";default:return"center"}}function B(e,t){var n=V(e);if(void 0===t)return k(n)?K(n)+" "+x(n):x(n)+" "+K(n);return k(n)?K(n)+" "+(parseInt(t.top,10)+15)+"px":parseInt(t.left,10)+15+"px "+K(n)}function F(e){if(null==e)return 0;switch(V(e)){case"top":return-90;case"left":return 180;case"bottom":return 90;default:return 0}}function H(e){switch(V(e)){case"top":return{bottom:-11};case"left":return{right:-11};case"bottom":return{top:-11};default:return{left:-11}}}var U=function(e){var t=e.arrowProps,n=t.ref,r=t.style,o=e.placement;return L.createElement("div",{className:p,"data-popper-arrow":!0,ref:n,style:Object(D.__assign)(Object(D.__assign)({},r),H(o))},L.createElement("svg",{viewBox:"0 0 30 30",style:{transform:"rotate("+F(o)+"deg)"}},L.createElement("path",{className:p+"-border",d:"M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z"}),L.createElement("path",{className:p+"-fill",d:"M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z"})))};U.displayName=s.DISPLAYNAME_PREFIX+".Popover2Arrow";var q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popover=null,t}return Object(D.__extends)(t,e),t.prototype.render=function(){var e,t=this,n=this.props,r=n.children,o=n.intent,i=n.popoverClassName,a=Object(D.__rest)(n,["children","intent","popoverClassName"]),p=w()(E,((e={})[s.Classes.MINIMAL]=this.props.minimal,e),s.Classes.intentClass(o),i);return L.createElement(Y,Object(D.__assign)({interactionKind:G.HOVER_TARGET_ONLY,modifiers:{arrow:{enabled:!this.props.minimal},offset:{options:{offset:[0,11]}}}},a,{autoFocus:!1,canEscapeKeyClose:!1,enforceFocus:!1,lazy:!0,popoverClassName:p,portalContainer:this.props.portalContainer,ref:function(e){return t.popover=e}}),r)},t.prototype.reposition=function(){null!=this.popover&&this.popover.reposition()},t.displayName=s.DISPLAYNAME_PREFIX+".Tooltip2",t.defaultProps={hoverCloseDelay:0,hoverOpenDelay:100,minimal:!1,transitionDuration:100},t}(L.PureComponent),G={CLICK:"click",CLICK_TARGET_ONLY:"click-target",HOVER:"hover",HOVER_TARGET_ONLY:"hover-target"},Y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popoverRef=s.Utils.createReactRef(),t.state={hasDarkParent:!1,isOpen:t.getIsOpen(t.props)},t.popoverElement=null,t.targetElement=null,t.refHandlers={popover:function(e){var n,r;t.popoverElement=e,null===(r=(n=t.props).popoverRef)||void 0===r||r.call(n,e)},target:function(e){return t.targetElement=e}},t.isMouseInTargetOrPopover=!1,t.lostFocusOnSamePage=!0,t.isControlled=function(){return void 0!==t.props.isOpen},t.isArrowEnabled=function(){var e,n;return!t.props.minimal&&!1!==(null===(n=null===(e=t.props.modifiers)||void 0===e?void 0:e.arrow)||void 0===n?void 0:n.enabled)},t.isHoverInteractionKind=function(){return t.props.interactionKind===G.HOVER||t.props.interactionKind===G.HOVER_TARGET_ONLY},t.reposition=function(){var e;return null===(e=t.popperScheduleUpdate)||void 0===e?void 0:e.call(t)},t.renderTarget=function(e){var n,r,o=e.ref,i=t.props,a=i.children,p=i.className,l=i.fill,u=i.openOnTargetFocus,c=i.renderTarget,d=t.state.isOpen,f=t.isControlled(),O=t.isHoverInteractionKind(),v=t.props.targetTagName;l&&(v="div"),Object(s.isRefCallback)(o)&&(o=Object(s.combineRefs)(o,t.refHandlers.target));var P,E=O?{onBlur:t.handleTargetBlur,onFocus:t.handleTargetFocus,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave}:{onClick:t.handleTargetClick},_=Object(D.__assign)({className:w()(p,h,(n={},n[m]=d,n[s.Classes.ACTIVE]=!f&&d&&!O,n)),ref:o,tabIndex:u&&O?0:void 0},E);if(void 0!==c)P=c(Object(D.__assign)(Object(D.__assign)({},_),{isOpen:d}));else{var g=s.Utils.ensureElement(L.Children.toArray(a)[0]);if(void 0===g)return null;var b=g.props.tabIndex;null!=b&&(_.tabIndex=b);var C=((r={})[s.Classes.ACTIVE]=d&&!f&&!O,r[s.Classes.FILL]=l,r),T=L.cloneElement(g,{className:w()(g.props.className,C),disabled:!(!d||!s.Utils.isElementOfType(g,q))||g.props.disabled,tabIndex:void 0!==_.tabIndex?-1:void 0});P=L.createElement(v,_,T)}return L.createElement(s.ResizeSensor,{onResize:t.reposition},P)},t.renderPopover=function(e){var n,r=t.props,o=r.interactionKind,i=r.usePortal,p=t.state.isOpen,f=B(e.placement,t.isArrowEnabled()?e.arrowProps.style:void 0);t.popperScheduleUpdate=e.update;var O={onClick:t.handlePopoverClick};(o===G.HOVER||!i&&o===G.HOVER_TARGET_ONLY)&&(O.onMouseEnter=t.handleMouseEnter,O.onMouseLeave=t.handleMouseLeave);var v=V(e.placement),m=w()(a,((n={})[s.Classes.DARK]=t.props.inheritDarkTheme&&t.state.hasDarkParent,n[s.Classes.MINIMAL]=t.props.minimal,n[u]=t.props.captureDismiss,n),d+"-"+v,t.props.popoverClassName);return L.createElement(s.Overlay,{autoFocus:t.props.autoFocus,backdropClassName:l,backdropProps:t.props.backdropProps,canEscapeKeyClose:t.props.canEscapeKeyClose,canOutsideClickClose:t.props.interactionKind===G.CLICK,enforceFocus:t.props.enforceFocus,hasBackdrop:t.props.hasBackdrop,isOpen:p,onClose:t.handleOverlayClose,onClosed:t.props.onClosed,onClosing:t.props.onClosing,onOpened:t.props.onOpened,onOpening:t.props.onOpening,transitionDuration:t.props.transitionDuration,transitionName:a,usePortal:t.props.usePortal,portalClassName:t.props.portalClassName,portalContainer:t.props.portalContainer},L.createElement("div",{className:P,ref:e.ref,style:e.style},L.createElement(s.ResizeSensor,{onResize:t.reposition},L.createElement("div",Object(D.__assign)({className:m,style:{transformOrigin:f},ref:t.popoverRef},O),t.isArrowEnabled()&&L.createElement(U,{arrowProps:e.arrowProps,placement:e.placement}),L.createElement("div",{className:c},t.props.content)))))},t.handleTargetFocus=function(e){if(t.props.openOnTargetFocus&&t.isHoverInteractionKind()){if(null==e.relatedTarget&&!t.lostFocusOnSamePage)return;t.handleMouseEnter(e)}},t.handleTargetBlur=function(e){t.props.openOnTargetFocus&&t.isHoverInteractionKind()&&(null==e.relatedTarget||t.isElementInPopover(e.relatedTarget)||t.handleMouseLeave(e)),t.lostFocusOnSamePage=null!=e.relatedTarget},t.handleMouseEnter=function(e){t.isMouseInTargetOrPopover=!0,t.props.usePortal||!t.isElementInPopover(e.target)||t.props.interactionKind!==G.HOVER_TARGET_ONLY||t.props.openOnTargetFocus?t.props.disabled||t.setOpenState(!0,e,t.props.hoverOpenDelay):t.handleMouseLeave(e)},t.handleMouseLeave=function(e){t.isMouseInTargetOrPopover=!1,t.setTimeout((function(){t.isMouseInTargetOrPopover||t.setOpenState(!1,e,t.props.hoverCloseDelay)}))},t.handlePopoverClick=function(e){var n=e.target,r=n.closest("."+a),o=r===t.popoverRef.current,i=null==r?void 0:r.classList.contains(u),p=n.closest("."+O+", ."+v),l=null==p?void 0:p.classList.contains(O),c=n.closest("."+s.Classes.POPOVER_DISMISS+", ."+s.Classes.POPOVER_DISMISS_OVERRIDE),d=null==c?void 0:c.classList.contains(s.Classes.POPOVER_DISMISS),f=null!=n.closest(":disabled, ."+s.Classes.DISABLED);!l&&!d||f||i&&!o||t.setOpenState(!1,e)},t.handleOverlayClose=function(e){if(null!==t.targetElement&&void 0!==e){var n=e.target;(!s.Utils.elementIsOrContains(t.targetElement,n)||e.nativeEvent instanceof KeyboardEvent)&&t.setOpenState(!1,e)}},t.handleTargetClick=function(e){t.props.disabled||t.isElementInPopover(e.target)||(null==t.props.isOpen?t.setState((function(e){return{isOpen:!e.isOpen}})):t.setOpenState(!t.props.isOpen,e))},t}return Object(D.__extends)(t,e),t.prototype.getIsOpen=function(e){var t;return!e.disabled&&(null!==(t=e.isOpen)&&void 0!==t?t:e.defaultIsOpen)},t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.content,r=this.state.isOpen;return null==n||"string"==typeof n&&""===n.trim()?(t||!1===r||s.Utils.isNodeEnv("production")||console.warn(I),this.renderTarget({ref:z})):L.createElement(j.Manager,null,L.createElement(j.Reference,null,this.renderTarget),L.createElement(j.Popper,{innerRef:this.refHandlers.popover,placement:this.props.placement,strategy:"absolute",modifiers:this.computePopperModifiers()},this.renderPopover))},t.prototype.componentDidMount=function(){this.updateDarkParent()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDarkParent();var r=this.getIsOpen(this.props);null!=this.props.isOpen&&r!==this.state.isOpen?(this.setOpenState(r),this.setState({isOpen:r})):this.props.disabled&&this.state.isOpen&&null==this.props.isOpen&&this.setOpenState(!1)},t.prototype.validateProps=function(e){null==e.isOpen&&null!=e.onInteraction&&console.warn(N),e.hasBackdrop&&!e.usePortal&&console.warn(y),e.hasBackdrop&&e.interactionKind!==G.CLICK&&console.warn(C);var t=L.Children.count(e.children),n=void 0!==e.renderTarget;0!==t||n||console.warn(b),t>1&&console.warn(T),t>0&&n&&console.warn(R)},t.prototype.computePopperModifiers=function(){var e,t,n,r,o=this.props.modifiers;return[Object(D.__assign)({enabled:this.isArrowEnabled(),name:"arrow"},null==o?void 0:o.arrow),Object(D.__assign)(Object(D.__assign)({name:"computeStyles"},null==o?void 0:o.computeStyles),{options:Object(D.__assign)({adaptive:!0,gpuAcceleration:!1},null===(e=null==o?void 0:o.computeStyles)||void 0===e?void 0:e.options)}),Object(D.__assign)(Object(D.__assign)({enabled:this.isArrowEnabled(),name:"offset"},null==o?void 0:o.offset),{options:Object(D.__assign)({offset:[0,15]},null===(t=null==o?void 0:o.offset)||void 0===t?void 0:t.options)}),Object(D.__assign)(Object(D.__assign)({name:"flip"},null==o?void 0:o.flip),{options:Object(D.__assign)({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},null===(n=null==o?void 0:o.flip)||void 0===n?void 0:n.options)}),Object(D.__assign)(Object(D.__assign)({name:"preventOverflow"},null==o?void 0:o.preventOverflow),{options:Object(D.__assign)({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},null===(r=null==o?void 0:o.preventOverflow)||void 0===r?void 0:r.options)})]},t.prototype.setOpenState=function(e,t,n){var r,o,s,i,a,p=this;null===(r=this.cancelOpenTimeout)||void 0===r||r.call(this),void 0!==n&&n>0?this.cancelOpenTimeout=this.setTimeout((function(){return p.setOpenState(e,t)}),n):(null==this.props.isOpen?this.setState({isOpen:e}):null===(s=(o=this.props).onInteraction)||void 0===s||s.call(o,e,t),e||null===(a=(i=this.props).onClose)||void 0===a||a.call(i,t))},t.prototype.updateDarkParent=function(){if(this.props.usePortal&&this.state.isOpen){var e=null!=this.targetElement&&null!=this.targetElement.closest("."+s.Classes.DARK);this.setState({hasDarkParent:e})}},t.prototype.isElementInPopover=function(e){return null!=this.popoverElement&&this.popoverElement.contains(e)},t.displayName=s.DISPLAYNAME_PREFIX+".Popover2",t.defaultProps={boundary:"clippingParents",captureDismiss:!1,defaultIsOpen:!1,disabled:!1,fill:!1,hasBackdrop:!1,hoverCloseDelay:300,hoverOpenDelay:150,inheritDarkTheme:!0,interactionKind:G.CLICK,minimal:!1,openOnTargetFocus:!0,placement:"auto",renderTarget:void 0,targetTagName:"span",transitionDuration:300,usePortal:!0},t}(s.AbstractPureComponent2);function z(){}}])}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@blueprintjs/core"),require("classnames"),require("react"),require("react-popper"),require("tslib")):"function"==typeof define&&define.amd?define(["@blueprintjs/core","classnames","react","react-popper","tslib"],t):"object"==typeof exports?exports.Blueprint=t(require("@blueprintjs/core"),require("classnames"),require("react"),require("react-popper"),require("tslib")):(e.Blueprint=e.Blueprint||{},e.Blueprint.Popover2=t(e.Blueprint.Core,e.classNames,e.React,e.ReactPopper,e.window))}(self,(function(e,t,n,r,o){return function(){"use strict";var s={524:function(e,t,n){n.r(t),n.d(t,{Classes:function(){return r},ContextMenu2:function(){return ee},ContextMenu2Props:function(){return a.ContextMenu2Props},ContextMenu2RenderProps:function(){return a.ContextMenu2RenderProps},Errors:function(){return o},IPopover2Props:function(){return i.IPopover2Props},IPopover2SharedProps:function(){return p.IPopover2SharedProps},IPopover2TargetProps:function(){return p.IPopover2TargetProps},ITooltip2Props:function(){return s.ITooltip2Props},Placement:function(){return l.Placement},PlacementOptions:function(){return te},Popover2:function(){return J},Popover2InteractionKind:function(){return Z},PopperBoundary:function(){return l.Boundary},StrictModifierNames:function(){return p.StrictModifierNames},Tooltip2:function(){return Q}});var r={};n.r(r),n.d(r,{CONTEXT_MENU2:function(){return d},CONTEXT_MENU2_POPOVER_TARGET:function(){return f},POPOVER2:function(){return v},POPOVER2_ARROW:function(){return O},POPOVER2_BACKDROP:function(){return m},POPOVER2_CAPTURING_DISMISS:function(){return P},POPOVER2_CONTENT:function(){return h},POPOVER2_CONTENT_PLACEMENT:function(){return E},POPOVER2_CONTENT_SIZING:function(){return _},POPOVER2_DISMISS:function(){return g},POPOVER2_DISMISS_OVERRIDE:function(){return C},POPOVER2_OPEN:function(){return T},POPOVER2_TARGET:function(){return R},POPOVER2_TRANSITION_CONTAINER:function(){return I},TOOLTIP2:function(){return N},TOOLTIP2_INDICATOR:function(){return y}});var o={};n.r(o),n.d(o,{POPOVER2_HAS_BACKDROP_INTERACTION:function(){return M},POPOVER2_REQUIRES_TARGET:function(){return S},POPOVER2_WARN_DOUBLE_TARGET:function(){return A},POPOVER2_WARN_EMPTY_CONTENT:function(){return w},POPOVER2_WARN_HAS_BACKDROP_INLINE:function(){return L},POPOVER2_WARN_TOO_MANY_CHILDREN:function(){return D},POPOVER2_WARN_UNCONTROLLED_ONINTERACTION:function(){return k}});var s={};n.r(s),n.d(s,{u:function(){return Q}});var i={};n.r(i),n.d(i,{p:function(){return J},k:function(){return Z}});var a={};n.r(a),n.d(a,{F:function(){return ee}});var p={};n.r(p);var l={};n.r(l);var u=n(669),c=u.Classes.getClassNamespace(),d=c+"-context-menu",f=d+"-popover-target",v=c+"-popover2",O=v+"-arrow",m=v+"-backdrop",P=v+"-capturing-dismiss",h=v+"-content",E=v+"-placement",_=h+"-sizing",g=v+"-dismiss",C=g+"-override",T=v+"-open",R=v+"-target",I=v+"-transition-container",N=c+"-tooltip2",y=N+"-indicator",b="[Blueprint]",S=b+" <Popover2> requires renderTarget prop or a child element.",M=b+' <Popover2 hasBackdrop={true}> requires interactionKind="click".',D=b+" <Popover2> supports only one child which is rendered as its target; additional children are ignored.",A=b+" <Popover2> with children ignores renderTarget prop; use either prop or children.",w=b+" Disabling <Popover2> with empty/whitespace content...",L=b+" <Popover2 usePortal={false}> ignores hasBackdrop",k=b+" <Popover2> onInteraction is ignored when uncontrolled.",V=n(770),x=n(957),B=n.n(x),K=n(888),F=n.n(K),H=n(72);function U(e){return e.split("-")[0]}function q(e){return-1!==["left","right"].indexOf(e)}function G(e){switch(e){case"top":return"bottom";case"left":return"right";case"bottom":return"top";default:return"left"}}function Y(e){switch(e.split("-")[1]){case"start":return"left";case"end":return"right";default:return"center"}}function j(e,t){var n=U(e);return void 0===t?q(n)?G(n)+" "+Y(n):Y(n)+" "+G(n):q(n)?G(n)+" "+(parseInt(t.top,10)+15)+"px":parseInt(t.left,10)+15+"px "+G(n)}function z(e){if(null==e)return 0;switch(U(e)){case"top":return-90;case"left":return 180;case"bottom":return 90;default:return 0}}function W(e){switch(U(e)){case"top":return{bottom:-11};case"left":return{right:-11};case"bottom":return{top:-11};default:return{left:-11}}}var X=function(e){var t=e.arrowProps,n=t.ref,r=t.style,o=e.placement;return K.createElement("div",{className:O,"data-popper-arrow":!0,ref:n,style:(0,V.__assign)((0,V.__assign)({},r),W(o))},K.createElement("svg",{viewBox:"0 0 30 30",style:{transform:"rotate("+z(o)+"deg)"}},K.createElement("path",{className:O+"-border",d:"M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z"}),K.createElement("path",{className:O+"-fill",d:"M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z"})))};X.displayName=u.DISPLAYNAME_PREFIX+".Popover2Arrow";var Q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popover=null,t}return(0,V.__extends)(t,e),t.prototype.render=function(){var e,t=this,n=this.props,r=n.children,o=n.intent,s=n.popoverClassName,i=(0,V.__rest)(n,["children","intent","popoverClassName"]),a=B()(N,((e={})[u.Classes.MINIMAL]=this.props.minimal,e),u.Classes.intentClass(o),s);return K.createElement(J,(0,V.__assign)({interactionKind:Z.HOVER_TARGET_ONLY,modifiers:{arrow:{enabled:!this.props.minimal},offset:{options:{offset:[0,11]}}}},i,{autoFocus:!1,canEscapeKeyClose:!1,enforceFocus:!1,lazy:!0,popoverClassName:a,portalContainer:this.props.portalContainer,ref:function(e){return t.popover=e}}),r)},t.prototype.reposition=function(){null!=this.popover&&this.popover.reposition()},t.displayName=u.DISPLAYNAME_PREFIX+".Tooltip2",t.defaultProps={hoverCloseDelay:0,hoverOpenDelay:100,minimal:!1,transitionDuration:100},t}(K.PureComponent),Z={CLICK:"click",CLICK_TARGET_ONLY:"click-target",HOVER:"hover",HOVER_TARGET_ONLY:"hover-target"},J=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popoverRef=u.Utils.createReactRef(),t.state={hasDarkParent:!1,isOpen:t.getIsOpen(t.props)},t.popoverElement=null,t.targetElement=null,t.refHandlers={popover:function(e){var n,r;t.popoverElement=e,null===(r=(n=t.props).popoverRef)||void 0===r||r.call(n,e)},target:function(e){return t.targetElement=e}},t.isMouseInTargetOrPopover=!1,t.lostFocusOnSamePage=!0,t.isControlled=function(){return void 0!==t.props.isOpen},t.isArrowEnabled=function(){var e,n;return!t.props.minimal&&!1!==(null===(n=null===(e=t.props.modifiers)||void 0===e?void 0:e.arrow)||void 0===n?void 0:n.enabled)},t.isHoverInteractionKind=function(){return t.props.interactionKind===Z.HOVER||t.props.interactionKind===Z.HOVER_TARGET_ONLY},t.reposition=function(){var e;return null===(e=t.popperScheduleUpdate)||void 0===e?void 0:e.call(t)},t.renderTarget=function(e){var n,r,o=e.ref,s=t.props,i=s.children,a=s.className,p=s.fill,l=s.openOnTargetFocus,c=s.renderTarget,d=t.state.isOpen,f=t.isControlled(),v=t.isHoverInteractionKind(),O=t.props.targetTagName;p&&(O="div"),(0,u.isRefCallback)(o)&&(o=(0,u.combineRefs)(o,t.refHandlers.target));var m,P=v?{onBlur:t.handleTargetBlur,onFocus:t.handleTargetFocus,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave}:{onClick:t.handleTargetClick},h=(0,V.__assign)({className:B()(a,R,(n={},n[T]=d,n[u.Classes.ACTIVE]=!f&&d&&!v,n)),ref:o,tabIndex:l&&v?0:void 0},P);if(void 0!==c)m=c((0,V.__assign)((0,V.__assign)({},h),{isOpen:d}));else{var E=u.Utils.ensureElement(K.Children.toArray(i)[0]);if(void 0===E)return null;var _=E.props.tabIndex;null!=_&&(h.tabIndex=_);var g=((r={})[u.Classes.ACTIVE]=d&&!f&&!v,r[u.Classes.FILL]=p,r),C=K.cloneElement(E,{className:B()(E.props.className,g),disabled:!(!d||!u.Utils.isElementOfType(E,Q))||E.props.disabled,tabIndex:void 0!==h.tabIndex?-1:void 0});m=K.createElement(O,h,C)}return K.createElement(u.ResizeSensor,{onResize:t.reposition},m)},t.renderPopover=function(e){var n,r=t.props,o=r.interactionKind,s=r.usePortal,i=t.state.isOpen,a=j(e.placement,t.isArrowEnabled()?e.arrowProps.style:void 0);t.popperScheduleUpdate=e.update;var p={onClick:t.handlePopoverClick};(o===Z.HOVER||!s&&o===Z.HOVER_TARGET_ONLY)&&(p.onMouseEnter=t.handleMouseEnter,p.onMouseLeave=t.handleMouseLeave);var l=U(e.placement),c=B()(v,((n={})[u.Classes.DARK]=t.props.inheritDarkTheme&&t.state.hasDarkParent,n[u.Classes.MINIMAL]=t.props.minimal,n[P]=t.props.captureDismiss,n),E+"-"+l,t.props.popoverClassName);return K.createElement(u.Overlay,{autoFocus:t.props.autoFocus,backdropClassName:m,backdropProps:t.props.backdropProps,canEscapeKeyClose:t.props.canEscapeKeyClose,canOutsideClickClose:t.props.interactionKind===Z.CLICK,enforceFocus:t.props.enforceFocus,hasBackdrop:t.props.hasBackdrop,isOpen:i,onClose:t.handleOverlayClose,onClosed:t.props.onClosed,onClosing:t.props.onClosing,onOpened:t.props.onOpened,onOpening:t.props.onOpening,transitionDuration:t.props.transitionDuration,transitionName:v,usePortal:t.props.usePortal,portalClassName:t.props.portalClassName,portalContainer:t.props.portalContainer},K.createElement("div",{className:I,ref:e.ref,style:e.style},K.createElement(u.ResizeSensor,{onResize:t.reposition},K.createElement("div",(0,V.__assign)({className:c,style:{transformOrigin:a},ref:t.popoverRef},p),t.isArrowEnabled()&&K.createElement(X,{arrowProps:e.arrowProps,placement:e.placement}),K.createElement("div",{className:h},t.props.content)))))},t.handleTargetFocus=function(e){if(t.props.openOnTargetFocus&&t.isHoverInteractionKind()){if(null==e.relatedTarget&&!t.lostFocusOnSamePage)return;t.handleMouseEnter(e)}},t.handleTargetBlur=function(e){t.props.openOnTargetFocus&&t.isHoverInteractionKind()&&(null==e.relatedTarget||t.isElementInPopover(e.relatedTarget)||t.handleMouseLeave(e)),t.lostFocusOnSamePage=null!=e.relatedTarget},t.handleMouseEnter=function(e){t.isMouseInTargetOrPopover=!0,t.props.usePortal||!t.isElementInPopover(e.target)||t.props.interactionKind!==Z.HOVER_TARGET_ONLY||t.props.openOnTargetFocus?t.props.disabled||t.setOpenState(!0,e,t.props.hoverOpenDelay):t.handleMouseLeave(e)},t.handleMouseLeave=function(e){t.isMouseInTargetOrPopover=!1,t.setTimeout((function(){t.isMouseInTargetOrPopover||t.setOpenState(!1,e,t.props.hoverCloseDelay)}))},t.handlePopoverClick=function(e){var n=e.target,r=n.closest("."+v),o=r===t.popoverRef.current,s=null==r?void 0:r.classList.contains(P),i=n.closest("."+g+", ."+C),a=null==i?void 0:i.classList.contains(g),p=n.closest("."+u.Classes.POPOVER_DISMISS+", ."+u.Classes.POPOVER_DISMISS_OVERRIDE),l=null==p?void 0:p.classList.contains(u.Classes.POPOVER_DISMISS),c=null!=n.closest(":disabled, ."+u.Classes.DISABLED);!a&&!l||c||s&&!o||t.setOpenState(!1,e)},t.handleOverlayClose=function(e){if(null!==t.targetElement&&void 0!==e){var n=e.target;(!u.Utils.elementIsOrContains(t.targetElement,n)||e.nativeEvent instanceof KeyboardEvent)&&t.setOpenState(!1,e)}},t.handleTargetClick=function(e){t.props.disabled||t.isElementInPopover(e.target)||(null==t.props.isOpen?t.setState((function(e){return{isOpen:!e.isOpen}})):t.setOpenState(!t.props.isOpen,e))},t}return(0,V.__extends)(t,e),t.prototype.getIsOpen=function(e){var t;return!e.disabled&&(null!==(t=e.isOpen)&&void 0!==t?t:e.defaultIsOpen)},t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.content,r=this.state.isOpen;return null==n||"string"==typeof n&&""===n.trim()?(t||!1===r||u.Utils.isNodeEnv("production")||console.warn(w),this.renderTarget({ref:$})):K.createElement(H.Manager,null,K.createElement(H.Reference,null,this.renderTarget),K.createElement(H.Popper,{innerRef:this.refHandlers.popover,placement:this.props.placement,strategy:"absolute",modifiers:this.computePopperModifiers()},this.renderPopover))},t.prototype.componentDidMount=function(){this.updateDarkParent()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDarkParent();var r=this.getIsOpen(this.props);null!=this.props.isOpen&&r!==this.state.isOpen?(this.setOpenState(r),this.setState({isOpen:r})):this.props.disabled&&this.state.isOpen&&null==this.props.isOpen&&this.setOpenState(!1)},t.prototype.validateProps=function(e){null==e.isOpen&&null!=e.onInteraction&&console.warn(k),e.hasBackdrop&&!e.usePortal&&console.warn(L),e.hasBackdrop&&e.interactionKind!==Z.CLICK&&console.warn(M);var t=K.Children.count(e.children),n=void 0!==e.renderTarget;0!==t||n||console.warn(S),t>1&&console.warn(D),t>0&&n&&console.warn(A)},t.prototype.computePopperModifiers=function(){var e,t,n,r,o=this.props.modifiers;return[(0,V.__assign)({enabled:this.isArrowEnabled(),name:"arrow"},null==o?void 0:o.arrow),(0,V.__assign)((0,V.__assign)({name:"computeStyles"},null==o?void 0:o.computeStyles),{options:(0,V.__assign)({adaptive:!0,gpuAcceleration:!1},null===(e=null==o?void 0:o.computeStyles)||void 0===e?void 0:e.options)}),(0,V.__assign)((0,V.__assign)({enabled:this.isArrowEnabled(),name:"offset"},null==o?void 0:o.offset),{options:(0,V.__assign)({offset:[0,15]},null===(t=null==o?void 0:o.offset)||void 0===t?void 0:t.options)}),(0,V.__assign)((0,V.__assign)({name:"flip"},null==o?void 0:o.flip),{options:(0,V.__assign)({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},null===(n=null==o?void 0:o.flip)||void 0===n?void 0:n.options)}),(0,V.__assign)((0,V.__assign)({name:"preventOverflow"},null==o?void 0:o.preventOverflow),{options:(0,V.__assign)({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},null===(r=null==o?void 0:o.preventOverflow)||void 0===r?void 0:r.options)})]},t.prototype.setOpenState=function(e,t,n){var r,o,s,i,a,p=this;null===(r=this.cancelOpenTimeout)||void 0===r||r.call(this),void 0!==n&&n>0?this.cancelOpenTimeout=this.setTimeout((function(){return p.setOpenState(e,t)}),n):(null==this.props.isOpen?this.setState({isOpen:e}):null===(s=(o=this.props).onInteraction)||void 0===s||s.call(o,e,t),e||null===(a=(i=this.props).onClose)||void 0===a||a.call(i,t))},t.prototype.updateDarkParent=function(){if(this.props.usePortal&&this.state.isOpen){var e=null!=this.targetElement&&null!=this.targetElement.closest("."+u.Classes.DARK);this.setState({hasDarkParent:e})}},t.prototype.isElementInPopover=function(e){return null!=this.popoverElement&&this.popoverElement.contains(e)},t.displayName=u.DISPLAYNAME_PREFIX+".Popover2",t.defaultProps={boundary:"clippingParents",captureDismiss:!1,defaultIsOpen:!1,disabled:!1,fill:!1,hasBackdrop:!1,hoverCloseDelay:300,hoverOpenDelay:150,inheritDarkTheme:!0,interactionKind:Z.CLICK,minimal:!1,openOnTargetFocus:!0,placement:"auto",renderTarget:void 0,targetTagName:"span",transitionDuration:300,usePortal:!0},t}(u.AbstractPureComponent2);function $(){}var ee=function(e){var t,n=e.content,r=e.children,o=e.transitionDuration,s=void 0===o?100:o,i=(0,V.__rest)(e,["content","children","transitionDuration"]),a=F().useState({left:0,top:0}),p=a[0],l=a[1],c=F().useState(!1),v=c[0],O=c[1],m=F().useCallback((function(e){if(!e.defaultPrevented){e.preventDefault();var t={left:e.clientX,top:e.clientY};l(t),O(!0)}}),[]),P=F().useCallback((function(e){return e.preventDefault()}),[]),h=F().useCallback((function(e){e||O(!1)}),[]),E=F().useRef(),_=F().useCallback((function(e){var t=e.ref;return F().createElement("div",{className:f,style:p,ref:(0,u.mergeRefs)(t,E)})}),[p]),g=F().useMemo((function(){return u.Utils.isDarkTheme(null==E?void 0:E.current)}),[E.current]),C=p.left+"x"+p.top,T={isOpen:v,targetOffset:p};return F().createElement("div",{className:d,onContextMenu:m},F().createElement(J,(0,V.__assign)({},i,{content:F().createElement("div",{onContextMenu:P},u.Utils.isFunction(n)?n(T):n),enforceFocus:!1,key:C,hasBackdrop:!0,isOpen:v,minimal:!0,onInteraction:h,popoverClassName:B()((t={},t[u.Classes.DARK]=g,t)),placement:"right-start",rootBoundary:"viewport",renderTarget:_,transitionDuration:s})),u.Utils.isFunction(r)?r(T):r)};ee.displayName="Blueprint.ContextMenu2";var te=[].concat(["top","bottom","right","left"],["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[])},669:function(t){t.exports=e},957:function(e){e.exports=t},888:function(e){e.exports=n},72:function(e){e.exports=r},770:function(e){e.exports=o}},i={};function a(e){if(i[e])return i[e].exports;var t=i[e]={exports:{}};return s[e](t,t.exports,a),t.exports}return a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a(524)}()}));

@@ -0,1 +1,3 @@

export declare const CONTEXT_MENU2: string;
export declare const CONTEXT_MENU2_POPOVER_TARGET: string;
export declare const POPOVER2: string;

@@ -2,0 +4,0 @@ export declare const POPOVER2_ARROW: string;

@@ -18,5 +18,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TOOLTIP2_INDICATOR = exports.TOOLTIP2 = exports.POPOVER2_TRANSITION_CONTAINER = exports.POPOVER2_TARGET = exports.POPOVER2_OPEN = exports.POPOVER2_DISMISS_OVERRIDE = exports.POPOVER2_DISMISS = exports.POPOVER2_CONTENT_SIZING = exports.POPOVER2_CONTENT_PLACEMENT = exports.POPOVER2_CONTENT = exports.POPOVER2_CAPTURING_DISMISS = exports.POPOVER2_BACKDROP = exports.POPOVER2_ARROW = exports.POPOVER2 = void 0;
exports.TOOLTIP2_INDICATOR = exports.TOOLTIP2 = exports.POPOVER2_TRANSITION_CONTAINER = exports.POPOVER2_TARGET = exports.POPOVER2_OPEN = exports.POPOVER2_DISMISS_OVERRIDE = exports.POPOVER2_DISMISS = exports.POPOVER2_CONTENT_SIZING = exports.POPOVER2_CONTENT_PLACEMENT = exports.POPOVER2_CONTENT = exports.POPOVER2_CAPTURING_DISMISS = exports.POPOVER2_BACKDROP = exports.POPOVER2_ARROW = exports.POPOVER2 = exports.CONTEXT_MENU2_POPOVER_TARGET = exports.CONTEXT_MENU2 = void 0;
var core_1 = require("@blueprintjs/core");
var NS = core_1.Classes.getClassNamespace();
exports.CONTEXT_MENU2 = NS + "-context-menu";
exports.CONTEXT_MENU2_POPOVER_TARGET = exports.CONTEXT_MENU2 + "-popover-target";
exports.POPOVER2 = NS + "-popover2";

@@ -23,0 +25,0 @@ exports.POPOVER2_ARROW = exports.POPOVER2 + "-arrow";

export * as Classes from "./classes";
export * as Errors from "./errors";
export { ContextMenu2, ContextMenu2Props, ContextMenu2RenderProps } from "./contextMenu2";
export { IPopover2SharedProps, IPopover2TargetProps, PopperBoundary, Placement, PlacementOptions, StrictModifierNames, } from "./popover2SharedProps";
export { IPopover2Props, Popover2, Popover2InteractionKind } from "./popover2";
export { ITooltip2Props, Tooltip2 } from "./tooltip2";

@@ -18,6 +18,8 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Tooltip2 = exports.Popover2InteractionKind = exports.Popover2 = exports.PlacementOptions = exports.Errors = exports.Classes = void 0;
exports.Tooltip2 = exports.Popover2InteractionKind = exports.Popover2 = exports.PlacementOptions = exports.ContextMenu2 = exports.Errors = exports.Classes = void 0;
var tslib_1 = require("tslib");
exports.Classes = tslib_1.__importStar(require("./classes"));
exports.Errors = tslib_1.__importStar(require("./errors"));
var contextMenu2_1 = require("./contextMenu2");
Object.defineProperty(exports, "ContextMenu2", { enumerable: true, get: function () { return contextMenu2_1.ContextMenu2; } });
var popover2SharedProps_1 = require("./popover2SharedProps");

@@ -24,0 +26,0 @@ Object.defineProperty(exports, "PlacementOptions", { enumerable: true, get: function () { return popover2SharedProps_1.PlacementOptions; } });

@@ -0,1 +1,3 @@

export declare const CONTEXT_MENU2: string;
export declare const CONTEXT_MENU2_POPOVER_TARGET: string;
export declare const POPOVER2: string;

@@ -2,0 +4,0 @@ export declare const POPOVER2_ARROW: string;

@@ -18,2 +18,4 @@ /* !

var NS = Classes.getClassNamespace();
export var CONTEXT_MENU2 = NS + "-context-menu";
export var CONTEXT_MENU2_POPOVER_TARGET = CONTEXT_MENU2 + "-popover-target";
export var POPOVER2 = NS + "-popover2";

@@ -20,0 +22,0 @@ export var POPOVER2_ARROW = POPOVER2 + "-arrow";

export * as Classes from "./classes";
export * as Errors from "./errors";
export { ContextMenu2, ContextMenu2Props, ContextMenu2RenderProps } from "./contextMenu2";
export { IPopover2SharedProps, IPopover2TargetProps, PopperBoundary, Placement, PlacementOptions, StrictModifierNames, } from "./popover2SharedProps";
export { IPopover2Props, Popover2, Popover2InteractionKind } from "./popover2";
export { ITooltip2Props, Tooltip2 } from "./tooltip2";

@@ -20,2 +20,3 @@ /*

export { Errors_1 as Errors };
export { ContextMenu2 } from "./contextMenu2";
export { PlacementOptions, } from "./popover2SharedProps";

@@ -22,0 +23,0 @@ export { Popover2, Popover2InteractionKind } from "./popover2";

import { BasePlacement, Placement } from "@popperjs/core";
/** Converts a full placement to one of the four positions by stripping text after the `-`. */
export declare function getBasePlacement(placement: Placement): BasePlacement;
export declare function getBasePlacement(placement: Placement): "left" | "right" | "bottom" | "top";
/** Returns true if position is left or right. */
export declare function isVerticalPlacement(side: BasePlacement): boolean;
/** Returns the opposite position. */
export declare function getOppositePlacement(side: BasePlacement): "top" | "bottom" | "right" | "left";
export declare function getOppositePlacement(side: BasePlacement): "left" | "right" | "bottom" | "top";
/** Returns the CSS alignment keyword corresponding to given placement. */
export declare function getAlignment(placement: Placement): "right" | "left" | "center";
export declare function getAlignment(placement: Placement): "left" | "right" | "center";
/** Modifier helper function to compute popper transform-origin based on arrow position */

@@ -11,0 +11,0 @@ export declare function getTransformOrigin(placement: Placement, arrowStyles: {

@@ -0,1 +1,3 @@

export declare const CONTEXT_MENU2: string;
export declare const CONTEXT_MENU2_POPOVER_TARGET: string;
export declare const POPOVER2: string;

@@ -2,0 +4,0 @@ export declare const POPOVER2_ARROW: string;

@@ -18,2 +18,4 @@ /* !

const NS = Classes.getClassNamespace();
export const CONTEXT_MENU2 = `${NS}-context-menu`;
export const CONTEXT_MENU2_POPOVER_TARGET = `${CONTEXT_MENU2}-popover-target`;
export const POPOVER2 = `${NS}-popover2`;

@@ -20,0 +22,0 @@ export const POPOVER2_ARROW = `${POPOVER2}-arrow`;

export * as Classes from "./classes";
export * as Errors from "./errors";
export { ContextMenu2, ContextMenu2Props, ContextMenu2RenderProps } from "./contextMenu2";
export { IPopover2SharedProps, IPopover2TargetProps, PopperBoundary, Placement, PlacementOptions, StrictModifierNames, } from "./popover2SharedProps";
export { IPopover2Props, Popover2, Popover2InteractionKind } from "./popover2";
export { ITooltip2Props, Tooltip2 } from "./tooltip2";

@@ -20,2 +20,3 @@ /*

export { Errors_1 as Errors };
export { ContextMenu2 } from "./contextMenu2";
export { PlacementOptions, } from "./popover2SharedProps";

@@ -22,0 +23,0 @@ export { Popover2, Popover2InteractionKind } from "./popover2";

{
"name": "@blueprintjs/popover2",
"version": "0.2.0",
"version": "0.3.0",
"description": "Popover2 and dependent components",

@@ -34,7 +34,7 @@ "main": "lib/cjs/index.js",

"test:karma": "karma start",
"test:karma:debug": "karma start --single-run=false --reporters=mocha --debug",
"test:karma:debug": "karma start --single-run=false --reporters=helpful --debug",
"verify": "npm-run-all compile -p dist test lint"
},
"dependencies": {
"@blueprintjs/core": "^3.38.2",
"@blueprintjs/core": "^3.39.0",
"@popperjs/core": "^2.5.4",

@@ -50,3 +50,3 @@ "classnames": "^2.2",

"devDependencies": {
"@blueprintjs/karma-build-scripts": "^1.0.3",
"@blueprintjs/karma-build-scripts": "^2.0.0",
"@blueprintjs/node-build-scripts": "^1.4.0",

@@ -53,0 +53,0 @@ "@blueprintjs/test-commons": "^0.10.7",

@@ -21,2 +21,5 @@ /* !

export const CONTEXT_MENU2 = `${NS}-context-menu`;
export const CONTEXT_MENU2_POPOVER_TARGET = `${CONTEXT_MENU2}-popover-target`;
export const POPOVER2 = `${NS}-popover2`;

@@ -23,0 +26,0 @@ export const POPOVER2_ARROW = `${POPOVER2}-arrow`;

@@ -33,1 +33,2 @@ ---

@page tooltip2
@page context-menu2

@@ -19,2 +19,3 @@ /*

export * as Errors from "./errors";
export { ContextMenu2, ContextMenu2Props, ContextMenu2RenderProps } from "./contextMenu2";
export {

@@ -21,0 +22,0 @@ IPopover2SharedProps,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc