rc-tooltip
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -6,4 +6,5 @@ import React from 'react'; | ||
id: string; | ||
overlayInnerStyle?: React.CSSProperties; | ||
} | ||
declare const Content: (props: ContentProps) => JSX.Element; | ||
export default Content; |
@@ -6,7 +6,9 @@ import React from 'react'; | ||
prefixCls = props.prefixCls, | ||
id = props.id; | ||
id = props.id, | ||
overlayInnerStyle = props.overlayInnerStyle; | ||
return React.createElement("div", { | ||
className: "".concat(prefixCls, "-inner"), | ||
id: id, | ||
role: "tooltip" | ||
role: "tooltip", | ||
style: overlayInnerStyle | ||
}, typeof overlay === 'function' ? overlay() : overlay); | ||
@@ -13,0 +15,0 @@ }; |
@@ -28,4 +28,5 @@ import React from 'react'; | ||
popupVisible?: boolean; | ||
overlayInnerStyle?: React.CSSProperties; | ||
} | ||
declare const _default: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<unknown>>; | ||
export default _default; |
@@ -42,3 +42,4 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
getTooltipContainer = props.getTooltipContainer, | ||
restProps = _objectWithoutProperties(props, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer"]); | ||
overlayInnerStyle = props.overlayInnerStyle, | ||
restProps = _objectWithoutProperties(props, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]); | ||
@@ -68,3 +69,4 @@ var domRef = useRef(null); | ||
id: id, | ||
overlay: overlay | ||
overlay: overlay, | ||
overlayInnerStyle: overlayInnerStyle | ||
})]; | ||
@@ -71,0 +73,0 @@ }; |
@@ -6,4 +6,5 @@ import React from 'react'; | ||
id: string; | ||
overlayInnerStyle?: React.CSSProperties; | ||
} | ||
declare const Content: (props: ContentProps) => JSX.Element; | ||
export default Content; |
@@ -15,7 +15,9 @@ "use strict"; | ||
prefixCls = props.prefixCls, | ||
id = props.id; | ||
id = props.id, | ||
overlayInnerStyle = props.overlayInnerStyle; | ||
return _react.default.createElement("div", { | ||
className: "".concat(prefixCls, "-inner"), | ||
id: id, | ||
role: "tooltip" | ||
role: "tooltip", | ||
style: overlayInnerStyle | ||
}, typeof overlay === 'function' ? overlay() : overlay); | ||
@@ -22,0 +24,0 @@ }; |
@@ -28,4 +28,5 @@ import React from 'react'; | ||
popupVisible?: boolean; | ||
overlayInnerStyle?: React.CSSProperties; | ||
} | ||
declare const _default: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<unknown>>; | ||
export default _default; |
@@ -58,3 +58,4 @@ "use strict"; | ||
getTooltipContainer = props.getTooltipContainer, | ||
restProps = _objectWithoutProperties(props, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer"]); | ||
overlayInnerStyle = props.overlayInnerStyle, | ||
restProps = _objectWithoutProperties(props, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]); | ||
@@ -84,3 +85,4 @@ var domRef = (0, _react.useRef)(null); | ||
id: id, | ||
overlay: overlay | ||
overlay: overlay, | ||
overlayInnerStyle: overlayInnerStyle | ||
})]; | ||
@@ -87,0 +89,0 @@ }; |
{ | ||
"name": "rc-tooltip", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "React Tooltip", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -172,2 +172,8 @@ # rc-tooltip | ||
<tr> | ||
<td>overlayInnerStyle</td> | ||
<td>Object</td> | ||
<td></td> | ||
<td>set overlay inner style</td> | ||
</tr> | ||
<tr> | ||
<td>arrowContent</td> | ||
@@ -174,0 +180,0 @@ <td>React.Node</td> |
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
51636
857
247