@cloudflare/component-tooltip
Advanced tools
Comparing version 2.7.127 to 2.7.128
@@ -104,3 +104,4 @@ import React from 'react'; | ||
isCapture = _this$props.isCapture, | ||
display = _this$props.display; | ||
display = _this$props.display, | ||
ariaLabel = _this$props.ariaLabel; | ||
const id = this.props.id ? this.props.id : this.id; | ||
@@ -140,3 +141,4 @@ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ReactTooltip, { | ||
onMouseOut: () => ReactTooltip.hide(this.tooltipElement), | ||
"aria-controls": id | ||
"aria-controls": id, | ||
"aria-label": ariaLabel | ||
}, children)); | ||
@@ -163,3 +165,4 @@ } | ||
onClick: PropTypes.func, | ||
display: PropTypes.string | ||
display: PropTypes.string, | ||
ariaLabel: PropTypes.string | ||
}; | ||
@@ -166,0 +169,0 @@ Tooltip.defaultProps = { |
@@ -18,4 +18,5 @@ import * as React from 'react'; | ||
onClick?: (...args: any[]) => void; | ||
ariaLabel?: string; | ||
} | ||
export const Tooltip: React.FC<TooltipProps>; |
@@ -159,3 +159,4 @@ "use strict"; | ||
isCapture = _this$props.isCapture, | ||
display = _this$props.display; | ||
display = _this$props.display, | ||
ariaLabel = _this$props.ariaLabel; | ||
var id = this.props.id ? this.props.id : this.id; | ||
@@ -205,3 +206,4 @@ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactTooltip.default, { | ||
}, | ||
"aria-controls": id | ||
"aria-controls": id, | ||
"aria-label": ariaLabel | ||
}, children)); | ||
@@ -230,3 +232,4 @@ } | ||
onClick: _propTypes.default.func, | ||
display: _propTypes.default.string | ||
display: _propTypes.default.string, | ||
ariaLabel: _propTypes.default.string | ||
}; | ||
@@ -233,0 +236,0 @@ Tooltip.defaultProps = { |
{ | ||
"name": "@cloudflare/component-tooltip", | ||
"description": "Cloudflare Tooltip Component", | ||
"version": "2.7.127", | ||
"version": "2.7.128", | ||
"main": "lib/index.js", | ||
@@ -34,3 +34,3 @@ "module": "es/index.js", | ||
}, | ||
"gitHead": "698f4aeafa1c656214a4060be27aa6b194d82b10" | ||
"gitHead": "a8c84ce9c72d72db671eaf6221497af6533e727f" | ||
} |
Sorry, the diff of this file is too big to display
139594
415