@hsds/tooltip
Advanced tools
Comparing version 4.1.0 to 5.0.0
@@ -5,2 +5,23 @@ # Changelog | ||
# [5.0.0](https://github.com/helpscout/hsds/compare/v4.0.0...v5.0.0) (2022-08-18) | ||
### Bug Fixes | ||
* **workspace:** remove esm module from projects ([829cc37](https://github.com/helpscout/hsds/commit/829cc3795f54a8bcfbc0c45b5bc36bd17463bf54)) | ||
### Features | ||
* **workspace:** improves versioning packages ([b836826](https://github.com/helpscout/hsds/commit/b836826d549aeb7295498f1091c783136079f134)) | ||
### [4.1.1](https://github.com/helpscout/hsds/compare/components-tooltip-4.1.0...components-tooltip-4.1.1) (2022-08-18) | ||
### Dependency Updates | ||
* `utils-react` updated to version `4.1.0` | ||
* `components-keyboard-badge` updated to version `4.1.0` | ||
* `utils-color` updated to version `4.1.0` | ||
## [4.1.0](https://github.com/helpscout/hsds/compare/components-tooltip-4.0.1...components-tooltip-4.1.0) (2022-08-03) | ||
@@ -7,0 +28,0 @@ |
{ | ||
"name": "@hsds/tooltip", | ||
"version": "4.1.0", | ||
"version": "5.0.0", | ||
"peerDependencies": { | ||
@@ -16,9 +16,6 @@ "prop-types": "~15.7.2", | ||
"classnames": "2.3.1", | ||
"lodash.isfunction": "^3.0.9", | ||
"@hsds/utils-react": "4.1.0", | ||
"@hsds/keyboard-badge": "4.1.0", | ||
"@hsds/button": "4.1.0", | ||
"@hsds/text": "4.1.0", | ||
"@hsds/utils-color": "4.1.0" | ||
"@hsds/utils-react": "5.0.0", | ||
"@hsds/keyboard-badge": "5.0.0", | ||
"@hsds/utils-color": "5.0.0" | ||
} | ||
} |
@@ -11,3 +11,2 @@ import React, { | ||
import classNames from 'classnames' | ||
import isFunction from 'lodash.isfunction' | ||
import PropTypes from 'prop-types' | ||
@@ -88,4 +87,4 @@ | ||
const hasRenderContent = renderContent && isFunction(renderContent) | ||
const hasRender = renderProp && isFunction(renderProp) | ||
const hasRenderContent = renderContent && typeof renderContent === 'function' | ||
const hasRender = renderProp && typeof renderProp === 'function' | ||
const shouldRenderTooltip = title || hasRenderContent || hasRender | ||
@@ -196,3 +195,3 @@ const hasKeyboardBadge = badge && !hasRender | ||
// only set those props if the component is not in a controlled way | ||
if (!rest.hasOwnProperty('visible')) { | ||
if (!rest.visible) { | ||
defaultTippyProps.showOnCreate = isOpen | ||
@@ -199,0 +198,0 @@ defaultTippyProps.trigger = triggerOn === 'hover' ? 'mouseenter' : triggerOn |
@@ -12,4 +12,2 @@ "use strict"; | ||
var _lodash = _interopRequireDefault(require("lodash.isfunction")); | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
@@ -103,4 +101,4 @@ | ||
}, []); | ||
const hasRenderContent = renderContent && (0, _lodash.default)(renderContent); | ||
const hasRender = renderProp && (0, _lodash.default)(renderProp); | ||
const hasRenderContent = renderContent && typeof renderContent === 'function'; | ||
const hasRender = renderProp && typeof renderProp === 'function'; | ||
const shouldRenderTooltip = title || hasRenderContent || hasRender; | ||
@@ -209,3 +207,3 @@ const hasKeyboardBadge = badge && !hasRender; | ||
if (!rest.hasOwnProperty('visible')) { | ||
if (!rest.visible) { | ||
defaultTippyProps.showOnCreate = isOpen; | ||
@@ -212,0 +210,0 @@ defaultTippyProps.trigger = triggerOn === 'hover' ? 'mouseenter' : triggerOn; |
28327
9
733
+ Added@hsds/colorway@5.0.0(transitive)
+ Added@hsds/keyboard-badge@5.0.0(transitive)
+ Added@hsds/utils-color@5.0.0(transitive)
+ Added@hsds/utils-react@5.0.0(transitive)
- Removed@hsds/button@4.1.0
- Removed@hsds/text@4.1.0
- Removedlodash.isfunction@^3.0.9
- Removed@babel/runtime@7.25.6(transitive)
- Removed@hsds/button@4.1.0(transitive)
- Removed@hsds/colorway@4.0.0(transitive)
- Removed@hsds/icon@4.1.0(transitive)
- Removed@hsds/icons@4.1.0(transitive)
- Removed@hsds/keyboard-badge@4.1.0(transitive)
- Removed@hsds/spinner@4.1.0(transitive)
- Removed@hsds/text@4.1.0(transitive)
- Removed@hsds/utils-bem@4.1.0(transitive)
- Removed@hsds/utils-color@4.1.0(transitive)
- Removed@hsds/utils-constants@4.1.0(transitive)
- Removed@hsds/utils-fonts@4.1.0(transitive)
- Removed@hsds/utils-mixins@4.1.0(transitive)
- Removed@hsds/utils-react@4.1.0(transitive)
- Removed@hsds/utils-sass@4.1.0(transitive)
- Removed@hsds/utils-strings@4.1.0(transitive)
- Removed@hsds/visually-hidden@4.1.0(transitive)
- Removedhistory@4.10.1(transitive)
- Removedisarray@0.0.1(transitive)
- Removedlodash.isfunction@3.0.9(transitive)
- Removedlodash.isnil@4.0.0(transitive)
- Removedlodash.isnumber@3.0.3(transitive)
- Removedlodash.isstring@4.0.1(transitive)
- Removedpath-to-regexp@1.9.0(transitive)
- Removedreact-router@5.3.4(transitive)
- Removedreact-router-dom@5.3.4(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedresolve-pathname@3.0.0(transitive)
- Removedtiny-invariant@1.3.3(transitive)
- Removedtiny-warning@1.0.3(transitive)
- Removedvalue-equal@1.0.1(transitive)
Updated@hsds/keyboard-badge@5.0.0
Updated@hsds/utils-color@5.0.0
Updated@hsds/utils-react@5.0.0