@tippyjs/react
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -308,3 +308,3 @@ import tippy, { createSingleton } from 'tippy.js'; | ||
} | ||
}) : null, /*#__PURE__*/createPortal(render ? render(toDataAttributes(attrs), singletonContent) : content, mutableBox.container)); | ||
}) : null, isBrowser && /*#__PURE__*/createPortal(render ? render(toDataAttributes(attrs), singletonContent) : content, mutableBox.container)); | ||
} | ||
@@ -311,0 +311,0 @@ |
@@ -312,3 +312,3 @@ (function (global, factory) { | ||
} | ||
}) : null, /*#__PURE__*/reactDom.createPortal(render ? render(toDataAttributes(attrs), singletonContent) : content, mutableBox.container)); | ||
}) : null, isBrowser && /*#__PURE__*/reactDom.createPortal(render ? render(toDataAttributes(attrs), singletonContent) : content, mutableBox.container)); | ||
} | ||
@@ -315,0 +315,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("tippy.js"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","tippy.js","react","react-dom"],n):n((e=e||self).Tippy={},e.tippy,e.React,e.ReactDOM)}(this,(function(e,n,t,r){"use strict";var i="default"in n?n.default:n,o="default"in t?t.default:t;function c(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}var s="undefined"!=typeof window&&"undefined"!=typeof document;function a(e,n){e&&("function"==typeof e&&e(n),{}.hasOwnProperty.call(e,"current")&&(e.current=n))}function u(){return s&&document.createElement("div")}function p(e,n){var t,r;return Object.assign({},n,{popperOptions:Object.assign({},e.popperOptions,n.popperOptions,{modifiers:[].concat(((null==(t=e.popperOptions)?void 0:t.modifiers)||[]).filter((function(e){return e.name.indexOf("tippy")>=0})),(null==(r=n.popperOptions)?void 0:r.modifiers)||[])})})}var d=s?t.useLayoutEffect:t.useEffect;function f(e){var n=t.useRef();return n.current||(n.current="function"==typeof e?e():e),n.current}function l(e,n,t){t.split(/\s+/).forEach((function(t){t&&e.classList[n](t)}))}var v={name:"className",defaultValue:"",fn:function(e){var n=e.popper.firstElementChild,t=function(){var n;return!!(null==(n=e.props.render)?void 0:n.$$tippy)};function r(){e.props.className&&!t()||l(n,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){t()&&l(n,"remove",e.props.className)},onAfterUpdate:r}}};function m(e){return function(n){var i=n.children,s=n.content,l=n.visible,m=n.singleton,h=n.render,b=n.disabled,g=void 0!==b&&b,O=n.ignoreAttributes,y=void 0===O||O,j=(n.__source,n.__self,c(n,["children","content","visible","singleton","render","disabled","ignoreAttributes","__source","__self"])),E=void 0!==l,_=void 0!==m,P=t.useState({}),D=P[0],R=P[1],k=t.useState(),w=k[0],H=k[1],x=f((function(){return{container:u(),renders:1}})),S=Object.assign({ignoreAttributes:y},j,{content:x.container});E&&(S.trigger="manual",S.hideOnClick=!1),_&&(g=!0);var q=S,A=S.plugins||[];h&&(q=Object.assign({},S,{plugins:_?[].concat(A,[{fn:function(){return{onTrigger:function(e,n){var t=m.data.children.find((function(e){return e.instance.reference===n.currentTarget})).content;H(t)}}}}]):A,render:function(){return{popper:x.container}}}));var N=i?[i.type]:[];return d((function(){var n=e(x.ref||u(),Object.assign({},q,{plugins:[v].concat(S.plugins||[])}));return x.instance=n,g&&n.disable(),l&&n.show(),_&&m.hook({instance:n,content:s,props:q}),function(){n.destroy(),null==m||m.cleanup(n)}}),N),d((function(){if(1!==x.renders){var e=x.instance;e.setProps(p(e.props,S)),g?e.disable():e.enable(),E&&(l?e.show():e.hide()),_&&m.hook({instance:e,content:s,props:S})}else x.renders++})),d((function(){var e;if(h){var n=x.instance;n.setProps({popperOptions:Object.assign({},n.props.popperOptions,{modifiers:[].concat((null==(e=n.props.popperOptions)?void 0:e.modifiers)||[],[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var n,t=e.state,r=null==(n=t.modifiersData)?void 0:n.hide;D.placement===t.placement&&D.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&D.escaped===(null==r?void 0:r.hasPopperEscaped)||R({placement:t.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),t.attributes.popper={}}}])})})}}),[D.placement,D.referenceHidden,D.escaped].concat(N)),o.createElement(o.Fragment,null,i?t.cloneElement(i,{ref:function(e){x.ref=e,a(i.ref,e)}}):null,r.createPortal(h?h(function(e){var n={"data-placement":e.placement};return e.referenceHidden&&(n["data-reference-hidden"]=""),e.escaped&&(n["data-escaped"]=""),n}(D),w):s,x.container))}}function h(e){return function(n){var r=void 0===n?{}:n,i=r.disabled,o=void 0!==i&&i,s=r.overrides,a=void 0===s?[]:s,u=f({children:[],renders:1});return d((function(){var n=u.children,t=u.sourceData;if(t){var r=e(n.map((function(e){return e.instance})),Object.assign({},t.props,{popperOptions:t.instance.props.popperOptions,overrides:a,plugins:[v].concat(t.props.plugins||[])}));return u.instance=r,o&&r.disable(),function(){r.destroy(),u.children=n.filter((function(e){return!e.instance.state.isDestroyed}))}}}),[]),d((function(){if(1!==u.renders){var e=u.children,n=u.instance,t=u.sourceData;if(n&&t){var r=t.props,i=(r.content,c(r,["content"]));n.setProps(p(n,Object.assign({},i,{overrides:a}))),n.setInstances(e.map((function(e){return e.instance}))),o?n.disable():n.enable()}}else u.renders++})),t.useMemo((function(){return[{data:u,hook:function(e){u.sourceData=e},cleanup:function(){u.sourceData=null}},{hook:function(e){u.children.find((function(n){var t=n.instance;return e.instance===t}))||u.children.push(e)},cleanup:function(e){u.children=u.children.filter((function(n){return n.instance!==e}))}}]}),[])}}var b=function(e,n){return t.forwardRef((function(r,i){var s=r.children,u=c(r,["children"]);return o.createElement(e,Object.assign({},n,u),s?t.cloneElement(s,{ref:function(e){a(i,e),a(s.ref,e)}}):null)}))},g=h(n.createSingleton),O=b(m(i));e.tippy=i,e.default=O,e.useSingleton=g,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("tippy.js"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","tippy.js","react","react-dom"],n):n((e=e||self).Tippy={},e.tippy,e.React,e.ReactDOM)}(this,(function(e,n,t,r){"use strict";var i="default"in n?n.default:n,o="default"in t?t.default:t;function c(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}var s="undefined"!=typeof window&&"undefined"!=typeof document;function a(e,n){e&&("function"==typeof e&&e(n),{}.hasOwnProperty.call(e,"current")&&(e.current=n))}function u(){return s&&document.createElement("div")}function p(e,n){var t,r;return Object.assign({},n,{popperOptions:Object.assign({},e.popperOptions,n.popperOptions,{modifiers:[].concat(((null==(t=e.popperOptions)?void 0:t.modifiers)||[]).filter((function(e){return e.name.indexOf("tippy")>=0})),(null==(r=n.popperOptions)?void 0:r.modifiers)||[])})})}var d=s?t.useLayoutEffect:t.useEffect;function f(e){var n=t.useRef();return n.current||(n.current="function"==typeof e?e():e),n.current}function l(e,n,t){t.split(/\s+/).forEach((function(t){t&&e.classList[n](t)}))}var v={name:"className",defaultValue:"",fn:function(e){var n=e.popper.firstElementChild,t=function(){var n;return!!(null==(n=e.props.render)?void 0:n.$$tippy)};function r(){e.props.className&&!t()||l(n,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){t()&&l(n,"remove",e.props.className)},onAfterUpdate:r}}};function m(e){return function(n){var i=n.children,l=n.content,m=n.visible,h=n.singleton,b=n.render,g=n.disabled,O=void 0!==g&&g,y=n.ignoreAttributes,j=void 0===y||y,E=(n.__source,n.__self,c(n,["children","content","visible","singleton","render","disabled","ignoreAttributes","__source","__self"])),_=void 0!==m,P=void 0!==h,D=t.useState({}),R=D[0],k=D[1],w=t.useState(),H=w[0],x=w[1],S=f((function(){return{container:u(),renders:1}})),q=Object.assign({ignoreAttributes:j},E,{content:S.container});_&&(q.trigger="manual",q.hideOnClick=!1),P&&(O=!0);var A=q,N=q.plugins||[];b&&(A=Object.assign({},q,{plugins:P?[].concat(N,[{fn:function(){return{onTrigger:function(e,n){var t=h.data.children.find((function(e){return e.instance.reference===n.currentTarget})).content;x(t)}}}}]):N,render:function(){return{popper:S.container}}}));var $=i?[i.type]:[];return d((function(){var n=e(S.ref||u(),Object.assign({},A,{plugins:[v].concat(q.plugins||[])}));return S.instance=n,O&&n.disable(),m&&n.show(),P&&h.hook({instance:n,content:l,props:A}),function(){n.destroy(),null==h||h.cleanup(n)}}),$),d((function(){if(1!==S.renders){var e=S.instance;e.setProps(p(e.props,q)),O?e.disable():e.enable(),_&&(m?e.show():e.hide()),P&&h.hook({instance:e,content:l,props:q})}else S.renders++})),d((function(){var e;if(b){var n=S.instance;n.setProps({popperOptions:Object.assign({},n.props.popperOptions,{modifiers:[].concat((null==(e=n.props.popperOptions)?void 0:e.modifiers)||[],[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var n,t=e.state,r=null==(n=t.modifiersData)?void 0:n.hide;R.placement===t.placement&&R.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&R.escaped===(null==r?void 0:r.hasPopperEscaped)||k({placement:t.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),t.attributes.popper={}}}])})})}}),[R.placement,R.referenceHidden,R.escaped].concat($)),o.createElement(o.Fragment,null,i?t.cloneElement(i,{ref:function(e){S.ref=e,a(i.ref,e)}}):null,s&&r.createPortal(b?b(function(e){var n={"data-placement":e.placement};return e.referenceHidden&&(n["data-reference-hidden"]=""),e.escaped&&(n["data-escaped"]=""),n}(R),H):l,S.container))}}function h(e){return function(n){var r=void 0===n?{}:n,i=r.disabled,o=void 0!==i&&i,s=r.overrides,a=void 0===s?[]:s,u=f({children:[],renders:1});return d((function(){var n=u.children,t=u.sourceData;if(t){var r=e(n.map((function(e){return e.instance})),Object.assign({},t.props,{popperOptions:t.instance.props.popperOptions,overrides:a,plugins:[v].concat(t.props.plugins||[])}));return u.instance=r,o&&r.disable(),function(){r.destroy(),u.children=n.filter((function(e){return!e.instance.state.isDestroyed}))}}}),[]),d((function(){if(1!==u.renders){var e=u.children,n=u.instance,t=u.sourceData;if(n&&t){var r=t.props,i=(r.content,c(r,["content"]));n.setProps(p(n,Object.assign({},i,{overrides:a}))),n.setInstances(e.map((function(e){return e.instance}))),o?n.disable():n.enable()}}else u.renders++})),t.useMemo((function(){return[{data:u,hook:function(e){u.sourceData=e},cleanup:function(){u.sourceData=null}},{hook:function(e){u.children.find((function(n){var t=n.instance;return e.instance===t}))||u.children.push(e)},cleanup:function(e){u.children=u.children.filter((function(n){return n.instance!==e}))}}]}),[])}}var b=function(e,n){return t.forwardRef((function(r,i){var s=r.children,u=c(r,["children"]);return o.createElement(e,Object.assign({},n,u),s?t.cloneElement(s,{ref:function(e){a(i,e),a(s.ref,e)}}):null)}))},g=h(n.createSingleton),O=b(m(i));e.tippy=i,e.default=O,e.useSingleton=g,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=tippy-react.umd.min.js.map |
@@ -308,3 +308,3 @@ import tippy, { createSingleton } from 'tippy.js/headless'; | ||
} | ||
}) : null, /*#__PURE__*/createPortal(render ? render(toDataAttributes(attrs), singletonContent) : content, mutableBox.container)); | ||
}) : null, isBrowser && /*#__PURE__*/createPortal(render ? render(toDataAttributes(attrs), singletonContent) : content, mutableBox.container)); | ||
} | ||
@@ -311,0 +311,0 @@ |
@@ -312,3 +312,3 @@ (function (global, factory) { | ||
} | ||
}) : null, /*#__PURE__*/reactDom.createPortal(render ? render(toDataAttributes(attrs), singletonContent) : content, mutableBox.container)); | ||
}) : null, isBrowser && /*#__PURE__*/reactDom.createPortal(render ? render(toDataAttributes(attrs), singletonContent) : content, mutableBox.container)); | ||
} | ||
@@ -315,0 +315,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("tippy.js/headless"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","tippy.js/headless","react","react-dom"],n):n((e=e||self).Tippy={},e.tippy,e.React,e.ReactDOM)}(this,(function(e,n,t,r){"use strict";var i="default"in n?n.default:n,o="default"in t?t.default:t;function c(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}var s="undefined"!=typeof window&&"undefined"!=typeof document;function a(e,n){e&&("function"==typeof e&&e(n),{}.hasOwnProperty.call(e,"current")&&(e.current=n))}function u(){return s&&document.createElement("div")}function p(e,n){var t,r;return Object.assign({},n,{popperOptions:Object.assign({},e.popperOptions,n.popperOptions,{modifiers:[].concat(((null==(t=e.popperOptions)?void 0:t.modifiers)||[]).filter((function(e){return e.name.indexOf("tippy")>=0})),(null==(r=n.popperOptions)?void 0:r.modifiers)||[])})})}var d=s?t.useLayoutEffect:t.useEffect;function f(e){var n=t.useRef();return n.current||(n.current="function"==typeof e?e():e),n.current}function l(e,n,t){t.split(/\s+/).forEach((function(t){t&&e.classList[n](t)}))}var v={name:"className",defaultValue:"",fn:function(e){var n=e.popper.firstElementChild,t=function(){var n;return!!(null==(n=e.props.render)?void 0:n.$$tippy)};function r(){e.props.className&&!t()||l(n,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){t()&&l(n,"remove",e.props.className)},onAfterUpdate:r}}};function m(e){return function(n){var i=n.children,s=n.content,l=n.visible,m=n.singleton,h=n.render,b=n.disabled,g=void 0!==b&&b,O=n.ignoreAttributes,y=void 0===O||O,j=(n.__source,n.__self,c(n,["children","content","visible","singleton","render","disabled","ignoreAttributes","__source","__self"])),E=void 0!==l,_=void 0!==m,P=t.useState({}),D=P[0],R=P[1],k=t.useState(),w=k[0],H=k[1],x=f((function(){return{container:u(),renders:1}})),S=Object.assign({ignoreAttributes:y},j,{content:x.container});E&&(S.trigger="manual",S.hideOnClick=!1),_&&(g=!0);var q=S,A=S.plugins||[];h&&(q=Object.assign({},S,{plugins:_?[].concat(A,[{fn:function(){return{onTrigger:function(e,n){var t=m.data.children.find((function(e){return e.instance.reference===n.currentTarget})).content;H(t)}}}}]):A,render:function(){return{popper:x.container}}}));var N=i?[i.type]:[];return d((function(){var n=e(x.ref||u(),Object.assign({},q,{plugins:[v].concat(S.plugins||[])}));return x.instance=n,g&&n.disable(),l&&n.show(),_&&m.hook({instance:n,content:s,props:q}),function(){n.destroy(),null==m||m.cleanup(n)}}),N),d((function(){if(1!==x.renders){var e=x.instance;e.setProps(p(e.props,S)),g?e.disable():e.enable(),E&&(l?e.show():e.hide()),_&&m.hook({instance:e,content:s,props:S})}else x.renders++})),d((function(){var e;if(h){var n=x.instance;n.setProps({popperOptions:Object.assign({},n.props.popperOptions,{modifiers:[].concat((null==(e=n.props.popperOptions)?void 0:e.modifiers)||[],[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var n,t=e.state,r=null==(n=t.modifiersData)?void 0:n.hide;D.placement===t.placement&&D.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&D.escaped===(null==r?void 0:r.hasPopperEscaped)||R({placement:t.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),t.attributes.popper={}}}])})})}}),[D.placement,D.referenceHidden,D.escaped].concat(N)),o.createElement(o.Fragment,null,i?t.cloneElement(i,{ref:function(e){x.ref=e,a(i.ref,e)}}):null,r.createPortal(h?h(function(e){var n={"data-placement":e.placement};return e.referenceHidden&&(n["data-reference-hidden"]=""),e.escaped&&(n["data-escaped"]=""),n}(D),w):s,x.container))}}function h(e){return function(n){var r=void 0===n?{}:n,i=r.disabled,o=void 0!==i&&i,s=r.overrides,a=void 0===s?[]:s,u=f({children:[],renders:1});return d((function(){var n=u.children,t=u.sourceData;if(t){var r=e(n.map((function(e){return e.instance})),Object.assign({},t.props,{popperOptions:t.instance.props.popperOptions,overrides:a,plugins:[v].concat(t.props.plugins||[])}));return u.instance=r,o&&r.disable(),function(){r.destroy(),u.children=n.filter((function(e){return!e.instance.state.isDestroyed}))}}}),[]),d((function(){if(1!==u.renders){var e=u.children,n=u.instance,t=u.sourceData;if(n&&t){var r=t.props,i=(r.content,c(r,["content"]));n.setProps(p(n,Object.assign({},i,{overrides:a}))),n.setInstances(e.map((function(e){return e.instance}))),o?n.disable():n.enable()}}else u.renders++})),t.useMemo((function(){return[{data:u,hook:function(e){u.sourceData=e},cleanup:function(){u.sourceData=null}},{hook:function(e){u.children.find((function(n){var t=n.instance;return e.instance===t}))||u.children.push(e)},cleanup:function(e){u.children=u.children.filter((function(n){return n.instance!==e}))}}]}),[])}}var b=function(e,n){return t.forwardRef((function(r,i){var s=r.children,u=c(r,["children"]);return o.createElement(e,Object.assign({},n,u),s?t.cloneElement(s,{ref:function(e){a(i,e),a(s.ref,e)}}):null)}))},g=h(n.createSingleton),O=b(m(i),{render:function(){return""}});e.tippy=i,e.default=O,e.useSingleton=g,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("tippy.js/headless"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","tippy.js/headless","react","react-dom"],n):n((e=e||self).Tippy={},e.tippy,e.React,e.ReactDOM)}(this,(function(e,n,t,r){"use strict";var i="default"in n?n.default:n,o="default"in t?t.default:t;function c(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}var s="undefined"!=typeof window&&"undefined"!=typeof document;function a(e,n){e&&("function"==typeof e&&e(n),{}.hasOwnProperty.call(e,"current")&&(e.current=n))}function u(){return s&&document.createElement("div")}function p(e,n){var t,r;return Object.assign({},n,{popperOptions:Object.assign({},e.popperOptions,n.popperOptions,{modifiers:[].concat(((null==(t=e.popperOptions)?void 0:t.modifiers)||[]).filter((function(e){return e.name.indexOf("tippy")>=0})),(null==(r=n.popperOptions)?void 0:r.modifiers)||[])})})}var d=s?t.useLayoutEffect:t.useEffect;function f(e){var n=t.useRef();return n.current||(n.current="function"==typeof e?e():e),n.current}function l(e,n,t){t.split(/\s+/).forEach((function(t){t&&e.classList[n](t)}))}var v={name:"className",defaultValue:"",fn:function(e){var n=e.popper.firstElementChild,t=function(){var n;return!!(null==(n=e.props.render)?void 0:n.$$tippy)};function r(){e.props.className&&!t()||l(n,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){t()&&l(n,"remove",e.props.className)},onAfterUpdate:r}}};function m(e){return function(n){var i=n.children,l=n.content,m=n.visible,h=n.singleton,b=n.render,g=n.disabled,O=void 0!==g&&g,y=n.ignoreAttributes,j=void 0===y||y,E=(n.__source,n.__self,c(n,["children","content","visible","singleton","render","disabled","ignoreAttributes","__source","__self"])),_=void 0!==m,P=void 0!==h,D=t.useState({}),R=D[0],k=D[1],w=t.useState(),H=w[0],x=w[1],S=f((function(){return{container:u(),renders:1}})),q=Object.assign({ignoreAttributes:j},E,{content:S.container});_&&(q.trigger="manual",q.hideOnClick=!1),P&&(O=!0);var A=q,N=q.plugins||[];b&&(A=Object.assign({},q,{plugins:P?[].concat(N,[{fn:function(){return{onTrigger:function(e,n){var t=h.data.children.find((function(e){return e.instance.reference===n.currentTarget})).content;x(t)}}}}]):N,render:function(){return{popper:S.container}}}));var $=i?[i.type]:[];return d((function(){var n=e(S.ref||u(),Object.assign({},A,{plugins:[v].concat(q.plugins||[])}));return S.instance=n,O&&n.disable(),m&&n.show(),P&&h.hook({instance:n,content:l,props:A}),function(){n.destroy(),null==h||h.cleanup(n)}}),$),d((function(){if(1!==S.renders){var e=S.instance;e.setProps(p(e.props,q)),O?e.disable():e.enable(),_&&(m?e.show():e.hide()),P&&h.hook({instance:e,content:l,props:q})}else S.renders++})),d((function(){var e;if(b){var n=S.instance;n.setProps({popperOptions:Object.assign({},n.props.popperOptions,{modifiers:[].concat((null==(e=n.props.popperOptions)?void 0:e.modifiers)||[],[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var n,t=e.state,r=null==(n=t.modifiersData)?void 0:n.hide;R.placement===t.placement&&R.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&R.escaped===(null==r?void 0:r.hasPopperEscaped)||k({placement:t.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),t.attributes.popper={}}}])})})}}),[R.placement,R.referenceHidden,R.escaped].concat($)),o.createElement(o.Fragment,null,i?t.cloneElement(i,{ref:function(e){S.ref=e,a(i.ref,e)}}):null,s&&r.createPortal(b?b(function(e){var n={"data-placement":e.placement};return e.referenceHidden&&(n["data-reference-hidden"]=""),e.escaped&&(n["data-escaped"]=""),n}(R),H):l,S.container))}}function h(e){return function(n){var r=void 0===n?{}:n,i=r.disabled,o=void 0!==i&&i,s=r.overrides,a=void 0===s?[]:s,u=f({children:[],renders:1});return d((function(){var n=u.children,t=u.sourceData;if(t){var r=e(n.map((function(e){return e.instance})),Object.assign({},t.props,{popperOptions:t.instance.props.popperOptions,overrides:a,plugins:[v].concat(t.props.plugins||[])}));return u.instance=r,o&&r.disable(),function(){r.destroy(),u.children=n.filter((function(e){return!e.instance.state.isDestroyed}))}}}),[]),d((function(){if(1!==u.renders){var e=u.children,n=u.instance,t=u.sourceData;if(n&&t){var r=t.props,i=(r.content,c(r,["content"]));n.setProps(p(n,Object.assign({},i,{overrides:a}))),n.setInstances(e.map((function(e){return e.instance}))),o?n.disable():n.enable()}}else u.renders++})),t.useMemo((function(){return[{data:u,hook:function(e){u.sourceData=e},cleanup:function(){u.sourceData=null}},{hook:function(e){u.children.find((function(n){var t=n.instance;return e.instance===t}))||u.children.push(e)},cleanup:function(e){u.children=u.children.filter((function(n){return n.instance!==e}))}}]}),[])}}var b=function(e,n){return t.forwardRef((function(r,i){var s=r.children,u=c(r,["children"]);return o.createElement(e,Object.assign({},n,u),s?t.cloneElement(s,{ref:function(e){a(i,e),a(s.ref,e)}}):null)}))},g=h(n.createSingleton),O=b(m(i),{render:function(){return""}});e.tippy=i,e.default=O,e.useSingleton=g,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=tippy-react-headless.umd.min.js.map |
{ | ||
"name": "@tippyjs/react", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "React component for Tippy.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/tippy-react.umd.js", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
222543