@entur/tooltip
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -6,2 +6,8 @@ # Change Log | ||
## [1.1.4](https://bitbucket.org/enturas/design-system/compare/@entur/tooltip@1.1.3...@entur/tooltip@1.1.4) (2020-01-08) | ||
### Bug Fixes | ||
- warn in development if the developer have forgotten the CSS ([e5c30fc](https://bitbucket.org/enturas/design-system/commits/e5c30fc08624ef22c02773892778abd92205c6b0)) | ||
## [1.1.3](https://bitbucket.org/enturas/design-system/compare/@entur/tooltip@1.1.2...@entur/tooltip@1.1.3) (2020-01-06) | ||
@@ -8,0 +14,0 @@ |
@@ -5,2 +5,3 @@ 'use strict'; | ||
var utils = require('@entur/utils'); | ||
var _slicedToArray = _interopDefault(require('@babel/runtime/helpers/slicedToArray')); | ||
@@ -48,3 +49,5 @@ var _objectWithoutProperties = _interopDefault(require('@babel/runtime/helpers/objectWithoutProperties')); | ||
utils.warnAboutMissingStyles('tooltip'); | ||
exports.Tooltip = Tooltip; | ||
//# sourceMappingURL=tooltip.cjs.development.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("@babel/runtime/helpers/slicedToArray")),r=e(require("@babel/runtime/helpers/objectWithoutProperties")),n=require("react"),o=e(n),a=e(require("classnames"));exports.Tooltip=function(e){var i=e.placement,s=e.content,c=e.children,l=e.className,u=r(e,["placement","content","children","className"]),p=n.useState(!1),d=t(p,2),m=d[0],b=d[1];return o.createElement("div",{className:"eds-tooltip-wrapper",onMouseLeave:function(){return b(!1)}},o.createElement("div",Object.assign({className:a("eds-tooltip",l,"eds-tooltip--".concat(i)),role:"tooltip","aria-hidden":!m},u),s),o.createElement("span",{className:"eds-tooltip--trigger",onMouseOver:function(){return b(!0)},onFocus:function(){return b(!0)},onBlur:function(){return b(!1)},"aria-describedby":s},c))}; | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=require("@entur/utils"),r=e(require("@babel/runtime/helpers/slicedToArray")),n=e(require("@babel/runtime/helpers/objectWithoutProperties")),o=require("react"),i=e(o),a=e(require("classnames"));t.warnAboutMissingStyles("tooltip"),exports.Tooltip=function(e){var t=e.placement,s=e.content,c=e.children,l=e.className,u=n(e,["placement","content","children","className"]),p=o.useState(!1),d=r(p,2),m=d[0],b=d[1];return i.createElement("div",{className:"eds-tooltip-wrapper",onMouseLeave:function(){return b(!1)}},i.createElement("div",Object.assign({className:a("eds-tooltip",l,"eds-tooltip--".concat(t)),role:"tooltip","aria-hidden":!m},u),s),i.createElement("span",{className:"eds-tooltip--trigger",onMouseOver:function(){return b(!0)},onFocus:function(){return b(!0)},onBlur:function(){return b(!1)},"aria-describedby":s},c))}; | ||
//# sourceMappingURL=tooltip.cjs.production.min.js.map |
@@ -0,1 +1,2 @@ | ||
import { warnAboutMissingStyles } from '@entur/utils'; | ||
import _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray'; | ||
@@ -42,3 +43,5 @@ import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
warnAboutMissingStyles('tooltip'); | ||
export { Tooltip }; | ||
//# sourceMappingURL=tooltip.esm.js.map |
{ | ||
"name": "@entur/tooltip", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"license": "EUPL-1.2", | ||
@@ -32,3 +32,6 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "1755d311b4cb5121c90a6abf85c17a9dfc530abe" | ||
"dependencies": { | ||
"@entur/utils": "^0.2.0" | ||
}, | ||
"gitHead": "a3e6403fb40b6400fe24cf22b47c00495740a940" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
38223
227
3
+ Added@entur/utils@^0.2.0
+ Added@entur/utils@0.2.9(transitive)
+ Addedtiny-warning@1.0.3(transitive)