@instructure/ui-tooltip
Advanced tools
Comparing version
@@ -137,7 +137,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; | ||
offsetY = _this$props2.offsetY, | ||
onRequestShowContent = _this$props2.onRequestShowContent, | ||
onRequestHideContent = _this$props2.onRequestHideContent, | ||
onShowContent = _this$props2.onShowContent, | ||
onHideContent = _this$props2.onHideContent, | ||
tip = _this$props2.tip, | ||
variant = _this$props2.variant, | ||
rest = _objectWithoutProperties(_this$props2, ["renderTip", "isShowingContent", "defaultIsShowingContent", "on", "placement", "mountNode", "constrain", "offsetX", "offsetY", "onRequestShowContent", "onRequestHideContent", "tip", "variant"]); | ||
rest = _objectWithoutProperties(_this$props2, ["renderTip", "isShowingContent", "defaultIsShowingContent", "on", "placement", "mountNode", "constrain", "offsetX", "offsetY", "onShowContent", "onHideContent", "tip", "variant"]); | ||
@@ -168,4 +168,4 @@ var color = this.props.variant; | ||
}, | ||
onShowContent: onRequestShowContent, | ||
onHideContent: onRequestHideContent, | ||
onShowContent: onShowContent, | ||
onHideContent: onHideContent, | ||
onFocus: this.handleFocus, | ||
@@ -257,3 +257,3 @@ onBlur: this.handleBlur | ||
*/ | ||
onRequestShowContent: PropTypes.func, | ||
onShowContent: PropTypes.func, | ||
@@ -264,3 +264,3 @@ /** | ||
*/ | ||
onRequestHideContent: PropTypes.func, | ||
onHideContent: PropTypes.func, | ||
@@ -291,4 +291,4 @@ /* eslint-disable react/require-default-props */ | ||
offsetY: 0, | ||
onRequestShowContent: function onRequestShowContent(event) {}, | ||
onRequestHideContent: function onRequestHideContent(event, _ref) { | ||
onShowContent: function onShowContent(event) {}, | ||
onHideContent: function onHideContent(event, _ref) { | ||
var documentClick = _ref.documentClick; | ||
@@ -295,0 +295,0 @@ } |
@@ -150,7 +150,7 @@ "use strict"; | ||
offsetY = _this$props2.offsetY, | ||
onRequestShowContent = _this$props2.onRequestShowContent, | ||
onRequestHideContent = _this$props2.onRequestHideContent, | ||
onShowContent = _this$props2.onShowContent, | ||
onHideContent = _this$props2.onHideContent, | ||
tip = _this$props2.tip, | ||
variant = _this$props2.variant, | ||
rest = (0, _objectWithoutProperties2.default)(_this$props2, ["renderTip", "isShowingContent", "defaultIsShowingContent", "on", "placement", "mountNode", "constrain", "offsetX", "offsetY", "onRequestShowContent", "onRequestHideContent", "tip", "variant"]); | ||
rest = (0, _objectWithoutProperties2.default)(_this$props2, ["renderTip", "isShowingContent", "defaultIsShowingContent", "on", "placement", "mountNode", "constrain", "offsetX", "offsetY", "onShowContent", "onHideContent", "tip", "variant"]); | ||
var color = this.props.variant; | ||
@@ -180,4 +180,4 @@ | ||
}, | ||
onShowContent: onRequestShowContent, | ||
onHideContent: onRequestHideContent, | ||
onShowContent: onShowContent, | ||
onHideContent: onHideContent, | ||
onFocus: this.handleFocus, | ||
@@ -268,3 +268,3 @@ onBlur: this.handleBlur | ||
*/ | ||
onRequestShowContent: _propTypes.default.func, | ||
onShowContent: _propTypes.default.func, | ||
@@ -275,3 +275,3 @@ /** | ||
*/ | ||
onRequestHideContent: _propTypes.default.func, | ||
onHideContent: _propTypes.default.func, | ||
@@ -302,4 +302,4 @@ /* eslint-disable react/require-default-props */ | ||
offsetY: 0, | ||
onRequestShowContent: function onRequestShowContent(event) {}, | ||
onRequestHideContent: function onRequestHideContent(event, _ref) { | ||
onShowContent: function onShowContent(event) {}, | ||
onHideContent: function onHideContent(event, _ref) { | ||
var documentClick = _ref.documentClick; | ||
@@ -306,0 +306,0 @@ } |
{ | ||
"name": "@instructure/ui-tooltip", | ||
"version": "6.14.1-rc.19+3e62c4986", | ||
"version": "6.14.1-rc.20+2b26d5400", | ||
"description": "A component for showing small text-only overlays on hover/focus.", | ||
@@ -24,5 +24,5 @@ "author": "Instructure, Inc. Engineering and Product Design", | ||
"@babel/runtime": "^7.5.0", | ||
"@instructure/ui-react-utils": "6.14.1-rc.19+3e62c4986", | ||
"@instructure/ui-testable": "6.14.1-rc.19+3e62c4986", | ||
"@instructure/ui-themeable": "6.14.1-rc.19+3e62c4986", | ||
"@instructure/ui-react-utils": "6.14.1-rc.20+2b26d5400", | ||
"@instructure/ui-testable": "6.14.1-rc.20+2b26d5400", | ||
"@instructure/ui-themeable": "6.14.1-rc.20+2b26d5400", | ||
"prop-types": "^15", | ||
@@ -32,10 +32,10 @@ "react": "^15 || ^16" | ||
"devDependencies": { | ||
"@instructure/ui-babel-preset": "6.14.1-rc.19+3e62c4986", | ||
"@instructure/ui-color-utils": "6.14.1-rc.19+3e62c4986", | ||
"@instructure/ui-layout": "6.14.1-rc.19+3e62c4986", | ||
"@instructure/ui-popover": "6.14.1-rc.19+3e62c4986", | ||
"@instructure/ui-prop-types": "6.14.1-rc.19+3e62c4986", | ||
"@instructure/ui-babel-preset": "6.14.1-rc.20+2b26d5400", | ||
"@instructure/ui-color-utils": "6.14.1-rc.20+2b26d5400", | ||
"@instructure/ui-layout": "6.14.1-rc.20+2b26d5400", | ||
"@instructure/ui-popover": "6.14.1-rc.20+2b26d5400", | ||
"@instructure/ui-prop-types": "6.14.1-rc.20+2b26d5400", | ||
"@instructure/ui-react-utils": "^6.14.0", | ||
"@instructure/ui-test-utils": "6.14.1-rc.19+3e62c4986", | ||
"@instructure/uid": "6.14.1-rc.19+3e62c4986" | ||
"@instructure/ui-test-utils": "6.14.1-rc.20+2b26d5400", | ||
"@instructure/uid": "6.14.1-rc.20+2b26d5400" | ||
}, | ||
@@ -46,3 +46,3 @@ "publishConfig": { | ||
"sideEffects": false, | ||
"gitHead": "3e62c4986f5e139f75f7dc6ef8d2e2b47f06c533" | ||
"gitHead": "2b26d5400a02325f6d5baf57740a8c0464a17f06" | ||
} |
@@ -121,3 +121,3 @@ /* | ||
*/ | ||
onRequestShowContent: PropTypes.func, | ||
onShowContent: PropTypes.func, | ||
/** | ||
@@ -127,3 +127,3 @@ * Callback fired when content is hidden. When controlled, this callback is | ||
*/ | ||
onRequestHideContent: PropTypes.func, | ||
onHideContent: PropTypes.func, | ||
@@ -153,4 +153,4 @@ /* eslint-disable react/require-default-props */ | ||
offsetY: 0, | ||
onRequestShowContent: (event) => {}, | ||
onRequestHideContent: (event, { documentClick }) => {} | ||
onShowContent: (event) => {}, | ||
onHideContent: (event, { documentClick }) => {} | ||
} | ||
@@ -212,4 +212,4 @@ | ||
offsetY, | ||
onRequestShowContent, | ||
onRequestHideContent, | ||
onShowContent, | ||
onHideContent, | ||
tip, | ||
@@ -243,4 +243,4 @@ variant, | ||
renderTrigger={() => this.renderTrigger()} | ||
onShowContent={onRequestShowContent} | ||
onHideContent={onRequestHideContent} | ||
onShowContent={onShowContent} | ||
onHideContent={onHideContent} | ||
onFocus={this.handleFocus} | ||
@@ -247,0 +247,0 @@ onBlur={this.handleBlur} |
@@ -23,4 +23,4 @@ --- | ||
as={Button} | ||
onRequestShowContent={() => console.log('showing')} | ||
onRequestHideContent={() => console.log('hidden')} | ||
onShowContent={() => console.log('showing')} | ||
onHideContent={() => console.log('hidden')} | ||
> | ||
@@ -80,6 +80,6 @@ Hover or focus me | ||
isShowingContent={this.state.isShowingContent} | ||
onRequestShowContent={(e) => { | ||
onShowContent={(e) => { | ||
this.setState({ isShowingContent: true }) | ||
}} | ||
onRequestHideContent={(e) => { | ||
onHideContent={(e) => { | ||
this.setState({ isShowingContent: false }) | ||
@@ -86,0 +86,0 @@ }} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
48832
-0.57%