@ndla/tooltip
Advanced tools
Comparing version 0.2.11 to 0.2.12
@@ -44,3 +44,3 @@ import _styled from "@emotion/styled-base"; | ||
styles: "position:relative;", | ||
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWVpQyIsImZpbGUiOiJUb29sdGlwLmpzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29weXJpZ2h0IChjKSAyMDE2LXByZXNlbnQsIE5ETEEuXG4gKlxuICogVGhpcyBzb3VyY2UgY29kZSBpcyBsaWNlbnNlZCB1bmRlciB0aGUgR1BMdjMgbGljZW5zZSBmb3VuZCBpbiB0aGVcbiAqIExJQ0VOU0UgZmlsZSBpbiB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhpcyBzb3VyY2UgdHJlZS5cbiAqXG4gKi9cblxuaW1wb3J0IFJlYWN0LCB7IENvbXBvbmVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgeyBpc01vYmlsZSwgaXNJRSB9IGZyb20gJ3JlYWN0LWRldmljZS1kZXRlY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5pbXBvcnQgeyBzcGFjaW5nLCBjb2xvcnMsIGZvbnRzIH0gZnJvbSAnQG5kbGEvY29yZSc7XG5cbmNvbnN0IFRvb2x0aXBXcmFwcGVyID0gc3R5bGVkLmRpdmBcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuYDtcblxuY29uc3QgdG9vbHRpcENzcyA9IGNzc2BcbiAgZGlzcGxheTogYmxvY2s7XG4gIGNvbG9yOiAjZmZmO1xuICBwb3NpdGlvbjogYWJzb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NlLFxuICBkZWxheTogMCxcbiAgY2xhc3NOYW1lOiAnJyxcbiAgdG9vbHRpcENvbnRhaW5lckNsYXNzOiAnJyxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFRvb2x0aXA7XG4iXX0= */" | ||
}); | ||
@@ -50,11 +50,3 @@ | ||
/*#__PURE__*/ | ||
css("display:block;color:#fff;position:absolute;z-index:9999;background:", colors.brand.primary, ";border-radius:2px;padding:", spacing.xsmall, " ", spacing.small, ";font-family:", fonts.sans, ";", fonts.sizes(14, 1.2), " font-weight:", fonts.weight.normal, ";color:$white;text-align:center;white-space:nowrap;max-width:calc(100vw - #{", spacing.normal, "});pointer-events:none;label:tooltipCss;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1Cc0IiLCJmaWxlIjoiVG9vbHRpcC5qc3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxNi1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmltcG9ydCBSZWFjdCwgeyBDb21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgUHJvcFR5cGVzIGZyb20gJ3Byb3AtdHlwZXMnO1xuaW1wb3J0IHsgaXNNb2JpbGUsIGlzSUUgfSBmcm9tICdyZWFjdC1kZXZpY2UtZGV0ZWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IG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dGlwfVxuICAgICAgICAgIG9uS2V5UHJlc3M9e3RoaXMuaGFuZGxlS2V5UHJlc3N9XG4gICAgICAgICAgb25CbHVyPXt0aGlzLmhhbmRsZUhpZGVUb29sdGlwfVxuICAgICAgICAgIGNzcz17Y29udGVudENTU31cbiAgICAgICAgICBjbGFzc05hbWU9e3RoaXMucHJvcHMuY2xhc3NOYW1lfT5cbiAgICAgICAgICB7dGhpcy5wcm9wcy5jaGlsZHJlbn1cbiAgICAgICAgPC9kaXY+XG4gICAgICA8L1Rvb2x0aXBXcmFwcGVyPlxuICAgICk7XG4gIH1cbn1cblxuVG9vbHRpcC5wcm9wVHlwZXMgPSB7XG4gIGNoaWxkcmVuOiBQcm9wVHlwZXMubm9kZS5pc1JlcXVpcmVkLFxuICB0b29sdGlwOiBQcm9wVHlwZXMuc3RyaW5nLmlzUmVxdWlyZWQsXG4gIGRlbGF5OiBQcm9wVHlwZXMubnVtYmVyLFxuICBkaXNhYmxlZDogUHJvcFR5cGVzLmJvb2wsXG4gIGFsaWduOiBQcm9wVHlwZXMub25lT2YoWydsZWZ0JywgJ3JpZ2h0JywgJ3RvcCcsICdib3R0b20nXSksXG4gIGNsYXNzTmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgdG9vbHRpcENvbnRhaW5lckNsYXNzOiBQcm9wVHlwZXMuc3RyaW5nLFxufTtcblxuVG9vbHRpcC5kZWZhdWx0UHJvcHMgPSB7XG4gIGFsaWduOiAndG9wJyxcbiAgZGlzYWJsZWQ6IGZhbHNlLFxuICBkZWxheTogMCxcbiAgY2xhc3NOYW1lOiAnJyxcbiAgdG9vbHRpcENvbnRhaW5lckNsYXNzOiAnJyxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFRvb2x0aXA7XG4iXX0= */")); | ||
var contentCSS = process.env.NODE_ENV === "production" ? { | ||
name: "1hji32s-contentCSS", | ||
styles: "display:inline-block;label:contentCSS;" | ||
} : { | ||
name: "1hji32s-contentCSS", | ||
styles: "display:inline-block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YXl9PlxuICAgICAgICAgIDxzcGFuXG4gICAgICAgICAgICByb2xlPVwidG9vbHRpcFwiXG4gICAgICAgICAgICBjc3M9e3Rvb2x0aXBDc3N9XG4gICAgICAgICAgICBzdHlsZT17dGhpcy5nZXRQb3NpdGlvbigpfVxuICAgICAgICAgICAgcmVmPXt0aGlzLnRvb2x0aXBSZWZ9PlxuICAgICAgICAgICAge3RoaXMucHJvcHMudG9vbHRpcH1cbiAgICAgICAgICA8L3NwYW4+XG4gICAgICAgIDwvRmFkZT5cbiAgICAgICAgPGRpdlxuICAgICAgICAgIHJvbGU9XCJidXR0b25cIlxuICAgICAgICAgIHRhYkluZGV4PXswfVxuICAgICAgICAgIGFyaWEtbGFiZWw9e3RoaXMucHJvcHMudG9vbHRpcH1cbiAgICAgICAgICByZWY9e3RoaXMuY29udGVudFJlZn1cbiAgICAgICAgICBvbk1vdXNlRW50ZXI9e3RoaXMuaGFuZGxlU2hvd1Rvb2x0aXB9XG4gICAgICAgICAgb25Nb3VzZU91dD17dGhpcy5oYW5kbGVIaWRlVG9vbHRpcH1cbiAgICAgICAgICBvbk1vdXNlTW92ZT17dGhpcy5oYW5kbGVTaG93VG9vbHRpcH1cbiAgICAgICAgICBvbkZvY3VzPXt0aGlzLmhhbmRsZVNob3dUb29sdGlwfVxuICAgICAgICAgIG9uS2V5UHJlc3M9e3RoaXMuaGFuZGxlS2V5UHJlc3N9XG4gICAgICAgICAgb25CbHVyPXt0aGlzLmhhbmRsZUhpZGVUb29sdGlwfVxuICAgICAgICAgIGNzcz17Y29udGVudENTU31cbiAgICAgICAgICBjbGFzc05hbWU9e3RoaXMucHJvcHMuY2xhc3NOYW1lfT5cbiAgICAgICAgICB7dGhpcy5wcm9wcy5jaGlsZHJlbn1cbiAgICAgICAgPC9kaXY+XG4gICAgICA8L1Rvb2x0aXBXcmFwcGVyPlxuICAgICk7XG4gIH1cbn1cblxuVG9vbHRpcC5wcm9wVHlwZXMgPSB7XG4gIGNoaWxkcmVuOiBQcm9wVHlwZXMubm9kZS5pc1JlcXVpcmVkLFxuICB0b29sdGlwOiBQcm9wVHlwZXMuc3RyaW5nLmlzUmVxdWlyZWQsXG4gIGRlbGF5OiBQcm9wVHlwZXMubnVtYmVyLFxuICBkaXNhYmxlZDogUHJvcFR5cGVzLmJvb2wsXG4gIGFsaWduOiBQcm9wVHlwZXMub25lT2YoWydsZWZ0JywgJ3JpZ2h0JywgJ3RvcCcsICdib3R0b20nXSksXG4gIGNsYXNzTmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgdG9vbHRpcENvbnRhaW5lckNsYXNzOiBQcm9wVHlwZXMuc3RyaW5nLFxufTtcblxuVG9vbHRpcC5kZWZhdWx0UHJvcHMgPSB7XG4gIGFsaWduOiAndG9wJyxcbiAgZGlzYWJsZWQ6IGZhbHNlLFxuICBkZWxheTogMCxcbiAgY2xhc3NOYW1lOiAnJyxcbiAgdG9vbHRpcENvbnRhaW5lckNsYXNzOiAnJyxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFRvb2x0aXA7XG4iXX0= */" | ||
}; | ||
css("display:block;color:#fff;background:", colors.brand.primary, ";border-radius:2px;padding:", spacing.xsmall, " ", spacing.small, ";font-family:", fonts.sans, ";", fonts.sizes(14, 1.2), " font-weight:", fonts.weight.normal, ";color:$white;text-align:center;white-space:nowrap;max-width:calc(100vw - #{", spacing.normal, "});label:tooltipCss;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1Cc0IiLCJmaWxlIjoiVG9vbHRpcC5qc3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxNi1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEd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GFzczogUHJvcFR5cGVzLnN0cmluZyxcbn07XG5cblRvb2x0aXAuZGVmYXVsdFByb3BzID0ge1xuICBhbGlnbjogJ3RvcCcsXG4gIGRpc2FibGVkOiBmYWxzZSxcbiAgZGVsYXk6IDAsXG4gIGNsYXNzTmFtZTogJycsXG4gIHRvb2x0aXBDb250YWluZXJDbGFzczogJycsXG59O1xuXG5leHBvcnQgZGVmYXVsdCBUb29sdGlwO1xuIl19 */")); | ||
@@ -64,7 +56,7 @@ var Fade = _styled("div", { | ||
label: "Fade" | ||
})("opacity:0;@keyframes fadeInTooltip{0%{opacity:0;}100%{opacity:1;}}@keyframes fadeOutTooltip{0%{opacity:1;}100%{opacity:0;}}animation-fill-mode:forwards;animation-delay:", function (props) { | ||
})("opacity:0;position:absolute;z-index:9999;pointer-events:none;@keyframes fadeInTooltip{0%{opacity:0;}100%{opacity:1;}}@keyframes fadeOutTooltip{0%{opacity:1;}100%{opacity:0;}}animation-fill-mode:forwards;animation-delay:", function (props) { | ||
return props.delay; | ||
}, "ms;animation-name:", function (props) { | ||
return props.animateIn ? 'fadeInTooltip' : ''; | ||
}, ";animation-duration:300ms;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXdDdUIiLCJmaWxlIjoiVG9vbHRpcC5qc3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxNi1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmlt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kZWxheTogMCxcbiAgY2xhc3NOYW1lOiAnJyxcbiAgdG9vbHRpcENvbnRhaW5lckNsYXNzOiAnJyxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFRvb2x0aXA7XG4iXX0= */")); | ||
}, ";animation-duration:300ms;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWlDdUIiLCJmaWxlIjoiVG9vbHRpcC5qc3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxNi1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmltcG9ydCBSZWFjdCwgeyBDb21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgUHJvcFR5cGVzIGZyb20gJ3Byb3AtdHlwZXMnO1xuaW1wb3J0IHsgaXNNb2JpbGUsIGlzSUUgfSBmcm9tICdyZWFjdC1kZXZpY2UtZGV0ZWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IHsgc3BhY2luZywgY29sb3JzLCBmb250cyB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuXG5jb25zdCBUb29sdGlwV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbmA7XG5cbmNvbnN0IHRvb2x0aXBDc3MgPS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lfT5cbiAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgIDwvZGl2PlxuICAgICAgPC9Ub29sdGlwV3JhcHBlcj5cbiAgICApO1xuICB9XG59XG5cblRvb2x0aXAucHJvcFR5cGVzID0ge1xuICBjaGlsZHJlbjogUHJvcFR5cGVzLm5vZGUuaXNSZXF1aXJlZCxcbiAgdG9vbHRpcDogUHJvcFR5cGVzLnN0cmluZy5pc1JlcXVpcmVkLFxuICBkZWxheTogUHJvcFR5cGVzLm51bWJlcixcbiAgZGlzYWJsZWQ6IFByb3BUeXBlcy5ib29sLFxuICBhbGlnbjogUHJvcFR5cGVzLm9uZU9mKFsnbGVmdCcsICdyaWdodCcsICd0b3AnLCAnYm90dG9tJ10pLFxuICBjbGFzc05hbWU6IFByb3BUeXBlcy5zdHJpbmcsXG4gIHRvb2x0aXBDb250YWluZXJDbGFzczogUHJvcFR5cGVzLnN0cmluZyxcbn07XG5cblRvb2x0aXAuZGVmYXVsdFByb3BzID0ge1xuICBhbGlnbjogJ3RvcCcsXG4gIGRpc2FibGVkOiBmYWxzZSxcbiAgZGVsYXk6IDAsXG4gIGNsYXNzTmFtZTogJycsXG4gIHRvb2x0aXBDb250YWluZXJDbGFzczogJycsXG59O1xuXG5leHBvcnQgZGVmYXVsdCBUb29sdGlwO1xuIl19 */")); | ||
@@ -87,3 +79,2 @@ var Tooltip = | ||
_this.handleHideTooltip = _this.handleHideTooltip.bind(_assertThisInitialized(_this)); | ||
_this.handleKeyPress = _this.handleKeyPress.bind(_assertThisInitialized(_this)); | ||
_this.contentRef = React.createRef(); | ||
@@ -98,7 +89,8 @@ _this.tooltipRef = React.createRef(); | ||
var currentStyles = {}; | ||
var align = this.props.align; | ||
if (this.state.showTooltip) { | ||
var widthRef = this.contentRef.current.offsetWidth; | ||
var heightRef = this.contentRef.current.offsetHeight; | ||
var elementRect = this.contentRef.current.getBoundingClientRect(); | ||
var widthRef = this.focusableChild.offsetWidth; | ||
var heightRef = this.focusableChild.offsetHeight; | ||
var elementRect = this.focusableChild.getBoundingClientRect(); | ||
var leftRef = elementRect.left; | ||
@@ -111,3 +103,3 @@ var tooltipWidth = this.tooltipRef.current.offsetWidth; | ||
currentStyles.top = "-".concat(this.tooltipRef.current.offsetHeight + 10, "px"); | ||
} else if (this.props.align === 'top' || this.props.align === 'bottom' || this.props.align === 'left' && leftRef - tooltipWidth < 20 || this.props.align === 'right' && leftRef + widthRef + tooltipWidth > window.innerWidth - 40) { | ||
} else if (align === 'top' || align === 'bottom' || align === 'left' && leftRef - tooltipWidth < 20 || align === 'right' && leftRef + widthRef + tooltipWidth > window.innerWidth - 40) { | ||
var centeredLeft = leftRef + widthRef / 2; | ||
@@ -120,3 +112,3 @@ var moveHorizontal = Math.max(centeredLeft + tooltipWidth / 2 + 20 - window.innerWidth, 0); | ||
if (this.props.align === 'bottom') { | ||
if (align === 'bottom') { | ||
currentStyles.transform = "translate(calc(-50% + ".concat(widthRef / 2 - moveHorizontal, "px), calc(").concat(heightRef, "px + ").concat(spacing.xsmall, "))"); | ||
@@ -126,3 +118,3 @@ } else { | ||
} | ||
} else if (this.props.align === 'left') { | ||
} else if (align === 'left') { | ||
currentStyles.transform = "translate(calc(-100% - ".concat(spacing.xsmall, "), calc(-50% + ").concat(heightRef / 2, "px))"); | ||
@@ -137,2 +129,20 @@ } else { | ||
}, { | ||
key: "componentDidMount", | ||
value: function componentDidMount() { | ||
this.focusableChild = this.contentRef.current.querySelector('a, button, [role="button"]'); | ||
if (this.focusableChild) { | ||
this.focusableChild.addEventListener('focusin', this.handleShowTooltip); | ||
this.focusableChild.addEventListener('focusout', this.handleHideTooltip); | ||
} | ||
} | ||
}, { | ||
key: "componentWillUnmount", | ||
value: function componentWillUnmount() { | ||
if (this.focusableChild) { | ||
this.focusableChild.removeEventListener('focusin', this.handleShowTooltip); | ||
this.focusableChild.removeEventListener('focusout', this.handleHideTooltip); | ||
} | ||
} | ||
}, { | ||
key: "handleShowTooltip", | ||
@@ -152,29 +162,24 @@ value: function handleShowTooltip() { | ||
}, { | ||
key: "handleKeyPress", | ||
value: function handleKeyPress(e) { | ||
if (e.key === 'Enter') { | ||
try { | ||
this.contentRef.current.querySelectorAll('[type="button"], a')[0].click(); | ||
} catch (err) { | ||
console.log('error', err); // eslint-disable-line no-console | ||
} | ||
} | ||
} | ||
}, { | ||
key: "render", | ||
value: function render() { | ||
// If phone ignore all tooltips // | ||
var _this$props = this.props, | ||
tooltipContainerClass = _this$props.tooltipContainerClass, | ||
className = _this$props.className, | ||
delay = _this$props.delay, | ||
tooltip = _this$props.tooltip, | ||
children = _this$props.children; // If phone ignore all tooltips // | ||
if (isMobile) { | ||
return ___EmotionJSX("div", { | ||
className: this.props.tooltipContainerClass | ||
className: tooltipContainerClass | ||
}, ___EmotionJSX("span", { | ||
className: this.props.className | ||
}, this.props.children)); | ||
className: className | ||
}, children)); | ||
} | ||
return ___EmotionJSX(TooltipWrapper, { | ||
className: this.props.tooltipContainerClass | ||
className: tooltipContainerClass | ||
}, ___EmotionJSX(Fade, { | ||
animateIn: this.state.showTooltip, | ||
delay: this.props.delay | ||
delay: delay | ||
}, ___EmotionJSX("span", { | ||
@@ -185,16 +190,9 @@ role: "tooltip", | ||
ref: this.tooltipRef | ||
}, this.props.tooltip)), ___EmotionJSX("div", { | ||
role: "button", | ||
tabIndex: 0, | ||
"aria-label": this.props.tooltip, | ||
}, tooltip)), ___EmotionJSX("div", { | ||
"aria-label": tooltip, | ||
ref: this.contentRef, | ||
onMouseEnter: this.handleShowTooltip, | ||
onMouseOut: this.handleHideTooltip, | ||
onMouseMove: this.handleShowTooltip, | ||
onFocus: this.handleShowTooltip, | ||
onKeyPress: this.handleKeyPress, | ||
onBlur: this.handleHideTooltip, | ||
css: contentCSS, | ||
className: this.props.className | ||
}, this.props.children)); | ||
onMouseLeave: this.handleHideTooltip, | ||
className: className | ||
}, children)); | ||
} | ||
@@ -201,0 +199,0 @@ }]); |
@@ -51,23 +51,15 @@ "use strict"; | ||
styles: "position:relative;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07XG5cbmV4cG9ydCBkZWZhdWx0IFRvb2x0aXA7XG4iXX0= */" | ||
}); | ||
var tooltipCss = | ||
/*#__PURE__*/ | ||
(0, _core.css)("display:block;color:#fff;position:absolute;z-index:9999;background:", _core2.colors.brand.primary, ";border-radius:2px;padding:", _core2.spacing.xsmall, " ", _core2.spacing.small, ";font-family:", _core2.fonts.sans, ";", _core2.fonts.sizes(14, 1.2), " font-weight:", _core2.fonts.weight.normal, ";color:$white;text-align:center;white-space:nowrap;max-width:calc(100vw - #{", _core2.spacing.normal, "});pointer-events:none;label:tooltipCss;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1Cc0IiLCJmaWxlIjoiVG9vbHRpcC5qc3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxNi1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmltcG9ydCBSZWFjdCwgeyBDb21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgUHJvcFR5cGVzIGZyb20gJ3Byb3AtdHlwZXMnO1xuaW1wb3J0IHsgaXNNb2JpbGUsIGlzSUUgfSBmcm9tICdyZWFjdC1kZXZpY2UtZGV0ZWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IHsgc3BhY2lu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lc3N9XG4gICAgICAgICAgb25CbHVyPXt0aGlzLmhhbmRsZUhpZGVUb29sdGlwfVxuICAgICAgICAgIGNzcz17Y29udGVudENTU31cbiAgICAgICAgICBjbGFzc05hbWU9e3RoaXMucHJvcHMuY2xhc3NOYW1lfT5cbiAgICAgICAgICB7dGhpcy5wcm9wcy5jaGlsZHJlbn1cbiAgICAgICAgPC9kaXY+XG4gICAgICA8L1Rvb2x0aXBXcmFwcGVyPlxuICAgICk7XG4gIH1cbn1cblxuVG9vbHRpcC5wcm9wVHlwZXMgPSB7XG4gIGNoaWxkcmVuOiBQcm9wVHlwZXMubm9kZS5pc1JlcXVpcmVkLFxuICB0b29sdGlwOiBQcm9wVHlwZXMuc3RyaW5nLmlzUmVxdWlyZWQsXG4gIGRlbGF5OiBQcm9wVHlwZXMubnVtYmVyLFxuICBkaXNhYmxlZDogUHJvcFR5cGVzLmJvb2wsXG4gIGFsaWduOiBQcm9wVHlwZXMub25lT2YoWydsZWZ0JywgJ3JpZ2h0JywgJ3RvcCcsICdib3R0b20nXSksXG4gIGNsYXNzTmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgdG9vbHRpcENvbnRhaW5lckNsYXNzOiBQcm9wVHlwZXMuc3RyaW5nLFxufTtcblxuVG9vbHRpcC5kZWZhdWx0UHJvcHMgPSB7XG4gIGFsaWduOiAndG9wJyxcbiAgZGlzYWJsZWQ6IGZhbHNlLFxuICBkZWxheTogMCxcbiAgY2xhc3NOYW1lOiAnJyxcbiAgdG9vbHRpcENvbnRhaW5lckNsYXNzOiAnJyxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFRvb2x0aXA7XG4iXX0= */")); | ||
var contentCSS = process.env.NODE_ENV === "production" ? { | ||
name: "1hji32s-contentCSS", | ||
styles: "display:inline-block;label:contentCSS;" | ||
} : { | ||
name: "1hji32s-contentCSS", | ||
styles: "display:inline-block;label:contentCSS;", | ||
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJz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wZXMuc3RyaW5nLmlzUmVxdWlyZWQsXG4gIGRlbGF5OiBQcm9wVHlwZXMubnVtYmVyLFxuICBkaXNhYmxlZDogUHJvcFR5cGVzLmJvb2wsXG4gIGFsaWduOiBQcm9wVHlwZXMub25lT2YoWydsZWZ0JywgJ3JpZ2h0JywgJ3RvcCcsICdib3R0b20nXSksXG4gIGNsYXNzTmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgdG9vbHRpcENvbnRhaW5lckNsYXNzOiBQcm9wVHlwZXMuc3RyaW5nLFxufTtcblxuVG9vbHRpcC5kZWZhdWx0UHJvcHMgPSB7XG4gIGFsaWduOiAndG9wJyxcbiAgZGlzYWJsZWQ6IGZhbHNlLFxuICBkZWxheTogMCxcbiAgY2xhc3NOYW1lOiAnJyxcbiAgdG9vbHRpcENvbnRhaW5lckNsYXNzOiAnJyxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFRvb2x0aXA7XG4iXX0= */" | ||
}; | ||
(0, _core.css)("display:block;color:#fff;background:", _core2.colors.brand.primary, ";border-radius:2px;padding:", _core2.spacing.xsmall, " ", _core2.spacing.small, ";font-family:", _core2.fonts.sans, ";", _core2.fonts.sizes(14, 1.2), " font-weight:", _core2.fonts.weight.normal, ";color:$white;text-align:center;white-space:nowrap;max-width:calc(100vw - #{", _core2.spacing.normal, "});label:tooltipCss;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1Cc0IiLCJmaWxlIjoiVG9vbHRpcC5qc3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxNi1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91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cmluZyxcbn07XG5cblRvb2x0aXAuZGVmYXVsdFByb3BzID0ge1xuICBhbGlnbjogJ3RvcCcsXG4gIGRpc2FibGVkOiBmYWxzZSxcbiAgZGVsYXk6IDAsXG4gIGNsYXNzTmFtZTogJycsXG4gIHRvb2x0aXBDb250YWluZXJDbGFzczogJycsXG59O1xuXG5leHBvcnQgZGVmYXVsdCBUb29sdGlwO1xuIl19 */")); | ||
var Fade = (0, _styledBase.default)("div", { | ||
target: "exsy4zb1", | ||
label: "Fade" | ||
})("opacity:0;@keyframes fadeInTooltip{0%{opacity:0;}100%{opacity:1;}}@keyframes fadeOutTooltip{0%{opacity:1;}100%{opacity:0;}}animation-fill-mode:forwards;animation-delay:", function (props) { | ||
})("opacity:0;position:absolute;z-index:9999;pointer-events:none;@keyframes fadeInTooltip{0%{opacity:0;}100%{opacity:1;}}@keyframes fadeOutTooltip{0%{opacity:1;}100%{opacity:0;}}animation-fill-mode:forwards;animation-delay:", function (props) { | ||
return props.delay; | ||
}, "ms;animation-name:", function (props) { | ||
return props.animateIn ? 'fadeInTooltip' : ''; | ||
}, ";animation-duration:300ms;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXdDdUIiLCJmaWxlIjoiVG9vbHRpcC5qc3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxNi1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmltcG9ydCBSZWFjdC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gY2xhc3NOYW1lOiAnJyxcbiAgdG9vbHRpcENvbnRhaW5lckNsYXNzOiAnJyxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFRvb2x0aXA7XG4iXX0= */")); | ||
}, ";animation-duration:300ms;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWlDdUIiLCJmaWxlIjoiVG9vbHRpcC5qc3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxNi1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmltcG9ydCBSZWFjdCwgeyBDb21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgUHJvcFR5cGVzIGZyb20gJ3Byb3AtdHlwZXMnO1xuaW1wb3J0IHsgaXNNb2JpbGUsIGlzSUUgfSBmcm9tICdyZWFjdC1kZXZpY2UtZGV0ZWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IHsgc3BhY2luZywgY29sb3JzLCBmb250cyB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuXG5jb25zdCBUb29sdGlwV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbmA7XG5cbmNvbnN0IHRvb2x0aXBDc3MgPSBjc3NgXG4gIGRp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gICB7Y2hpbGRyZW59XG4gICAgICAgIDwvZGl2PlxuICAgICAgPC9Ub29sdGlwV3JhcHBlcj5cbiAgICApO1xuICB9XG59XG5cblRvb2x0aXAucHJvcFR5cGVzID0ge1xuICBjaGlsZHJlbjogUHJvcFR5cGVzLm5vZGUuaXNSZXF1aXJlZCxcbiAgdG9vbHRpcDogUHJvcFR5cGVzLnN0cmluZy5pc1JlcXVpcmVkLFxuICBkZWxheTogUHJvcFR5cGVzLm51bWJlcixcbiAgZGlzYWJsZWQ6IFByb3BUeXBlcy5ib29sLFxuICBhbGlnbjogUHJvcFR5cGVzLm9uZU9mKFsnbGVmdCcsICdyaWdodCcsICd0b3AnLCAnYm90dG9tJ10pLFxuICBjbGFzc05hbWU6IFByb3BUeXBlcy5zdHJpbmcsXG4gIHRvb2x0aXBDb250YWluZXJDbGFzczogUHJvcFR5cGVzLnN0cmluZyxcbn07XG5cblRvb2x0aXAuZGVmYXVsdFByb3BzID0ge1xuICBhbGlnbjogJ3RvcCcsXG4gIGRpc2FibGVkOiBmYWxzZSxcbiAgZGVsYXk6IDAsXG4gIGNsYXNzTmFtZTogJycsXG4gIHRvb2x0aXBDb250YWluZXJDbGFzczogJycsXG59O1xuXG5leHBvcnQgZGVmYXVsdCBUb29sdGlwO1xuIl19 */")); | ||
@@ -90,3 +82,2 @@ var Tooltip = | ||
_this.handleHideTooltip = _this.handleHideTooltip.bind(_assertThisInitialized(_this)); | ||
_this.handleKeyPress = _this.handleKeyPress.bind(_assertThisInitialized(_this)); | ||
_this.contentRef = _react.default.createRef(); | ||
@@ -101,7 +92,8 @@ _this.tooltipRef = _react.default.createRef(); | ||
var currentStyles = {}; | ||
var align = this.props.align; | ||
if (this.state.showTooltip) { | ||
var widthRef = this.contentRef.current.offsetWidth; | ||
var heightRef = this.contentRef.current.offsetHeight; | ||
var elementRect = this.contentRef.current.getBoundingClientRect(); | ||
var widthRef = this.focusableChild.offsetWidth; | ||
var heightRef = this.focusableChild.offsetHeight; | ||
var elementRect = this.focusableChild.getBoundingClientRect(); | ||
var leftRef = elementRect.left; | ||
@@ -114,3 +106,3 @@ var tooltipWidth = this.tooltipRef.current.offsetWidth; | ||
currentStyles.top = "-".concat(this.tooltipRef.current.offsetHeight + 10, "px"); | ||
} else if (this.props.align === 'top' || this.props.align === 'bottom' || this.props.align === 'left' && leftRef - tooltipWidth < 20 || this.props.align === 'right' && leftRef + widthRef + tooltipWidth > window.innerWidth - 40) { | ||
} else if (align === 'top' || align === 'bottom' || align === 'left' && leftRef - tooltipWidth < 20 || align === 'right' && leftRef + widthRef + tooltipWidth > window.innerWidth - 40) { | ||
var centeredLeft = leftRef + widthRef / 2; | ||
@@ -123,3 +115,3 @@ var moveHorizontal = Math.max(centeredLeft + tooltipWidth / 2 + 20 - window.innerWidth, 0); | ||
if (this.props.align === 'bottom') { | ||
if (align === 'bottom') { | ||
currentStyles.transform = "translate(calc(-50% + ".concat(widthRef / 2 - moveHorizontal, "px), calc(").concat(heightRef, "px + ").concat(_core2.spacing.xsmall, "))"); | ||
@@ -129,3 +121,3 @@ } else { | ||
} | ||
} else if (this.props.align === 'left') { | ||
} else if (align === 'left') { | ||
currentStyles.transform = "translate(calc(-100% - ".concat(_core2.spacing.xsmall, "), calc(-50% + ").concat(heightRef / 2, "px))"); | ||
@@ -140,2 +132,20 @@ } else { | ||
}, { | ||
key: "componentDidMount", | ||
value: function componentDidMount() { | ||
this.focusableChild = this.contentRef.current.querySelector('a, button, [role="button"]'); | ||
if (this.focusableChild) { | ||
this.focusableChild.addEventListener('focusin', this.handleShowTooltip); | ||
this.focusableChild.addEventListener('focusout', this.handleHideTooltip); | ||
} | ||
} | ||
}, { | ||
key: "componentWillUnmount", | ||
value: function componentWillUnmount() { | ||
if (this.focusableChild) { | ||
this.focusableChild.removeEventListener('focusin', this.handleShowTooltip); | ||
this.focusableChild.removeEventListener('focusout', this.handleHideTooltip); | ||
} | ||
} | ||
}, { | ||
key: "handleShowTooltip", | ||
@@ -155,29 +165,24 @@ value: function handleShowTooltip() { | ||
}, { | ||
key: "handleKeyPress", | ||
value: function handleKeyPress(e) { | ||
if (e.key === 'Enter') { | ||
try { | ||
this.contentRef.current.querySelectorAll('[type="button"], a')[0].click(); | ||
} catch (err) { | ||
console.log('error', err); // eslint-disable-line no-console | ||
} | ||
} | ||
} | ||
}, { | ||
key: "render", | ||
value: function render() { | ||
// If phone ignore all tooltips // | ||
var _this$props = this.props, | ||
tooltipContainerClass = _this$props.tooltipContainerClass, | ||
className = _this$props.className, | ||
delay = _this$props.delay, | ||
tooltip = _this$props.tooltip, | ||
children = _this$props.children; // If phone ignore all tooltips // | ||
if (_reactDeviceDetect.isMobile) { | ||
return (0, _core.jsx)("div", { | ||
className: this.props.tooltipContainerClass | ||
className: tooltipContainerClass | ||
}, (0, _core.jsx)("span", { | ||
className: this.props.className | ||
}, this.props.children)); | ||
className: className | ||
}, children)); | ||
} | ||
return (0, _core.jsx)(TooltipWrapper, { | ||
className: this.props.tooltipContainerClass | ||
className: tooltipContainerClass | ||
}, (0, _core.jsx)(Fade, { | ||
animateIn: this.state.showTooltip, | ||
delay: this.props.delay | ||
delay: delay | ||
}, (0, _core.jsx)("span", { | ||
@@ -188,16 +193,9 @@ role: "tooltip", | ||
ref: this.tooltipRef | ||
}, this.props.tooltip)), (0, _core.jsx)("div", { | ||
role: "button", | ||
tabIndex: 0, | ||
"aria-label": this.props.tooltip, | ||
}, tooltip)), (0, _core.jsx)("div", { | ||
"aria-label": tooltip, | ||
ref: this.contentRef, | ||
onMouseEnter: this.handleShowTooltip, | ||
onMouseOut: this.handleHideTooltip, | ||
onMouseMove: this.handleShowTooltip, | ||
onFocus: this.handleShowTooltip, | ||
onKeyPress: this.handleKeyPress, | ||
onBlur: this.handleHideTooltip, | ||
css: contentCSS, | ||
className: this.props.className | ||
}, this.props.children)); | ||
onMouseLeave: this.handleHideTooltip, | ||
className: className | ||
}, children)); | ||
} | ||
@@ -204,0 +202,0 @@ }]); |
{ | ||
"name": "@ndla/tooltip", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"description": "Tooltip component from NDLA", | ||
@@ -22,3 +22,3 @@ "license": "GPL-3.0", | ||
"dependencies": { | ||
"@ndla/core": "^0.6.11" | ||
"@ndla/core": "^0.6.12" | ||
}, | ||
@@ -35,3 +35,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "f64e39c93f24d9b0f3255f80b9d8a33d26691aca" | ||
"gitHead": "ffba847067bb684b37789a5fb071b5720d2e49cf" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
12
105439
584
Updated@ndla/core@^0.6.12