@atlaskit/tooltip 20.2.1 → 20.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/tooltip-primitive.compiled.css +0 -1
- package/dist/cjs/tooltip-primitive.js +3 -13
- package/dist/cjs/tooltip.js +1 -1
- package/dist/es2019/tooltip-primitive.compiled.css +0 -1
- package/dist/es2019/tooltip-primitive.js +2 -8
- package/dist/es2019/tooltip.js +1 -1
- package/dist/esm/tooltip-primitive.compiled.css +0 -1
- package/dist/esm/tooltip-primitive.js +3 -12
- package/dist/esm/tooltip.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/tooltip
|
|
2
2
|
|
|
3
|
+
## 20.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#162734](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/162734)
|
|
8
|
+
[`eb727b523d74b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/eb727b523d74b) -
|
|
9
|
+
Removes internal dead code related to `z-index` setting.
|
|
10
|
+
|
|
3
11
|
## 20.2.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* tooltip-primitive.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
@@ -11,12 +10,7 @@ require("./tooltip-primitive.compiled.css");
|
|
|
11
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
11
|
var React = _react;
|
|
13
12
|
var _runtime = require("@compiled/react/runtime");
|
|
14
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
16
13
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
|
-
var VAR_PRIMITIVE_ZINDEX = 'tooltipPrimitiveZindex';
|
|
20
14
|
var primitiveStyles = null;
|
|
21
15
|
|
|
22
16
|
/**
|
|
@@ -31,18 +25,17 @@ var TooltipPrimitive = /*#__PURE__*/(0, _react.forwardRef)(function TooltipPrimi
|
|
|
31
25
|
onMouseOut = _ref.onMouseOut,
|
|
32
26
|
onMouseOver = _ref.onMouseOver,
|
|
33
27
|
id = _ref.id;
|
|
34
|
-
var styleWithZIndex = _objectSpread(_objectSpread({}, style), {}, (0, _defineProperty2.default)({}, VAR_PRIMITIVE_ZINDEX, _constants.layers.tooltip()));
|
|
35
28
|
return /*#__PURE__*/React.createElement("div", {
|
|
36
29
|
ref: ref
|
|
37
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
38
31
|
,
|
|
39
|
-
style:
|
|
32
|
+
style: style,
|
|
40
33
|
"data-testid": testId ? "".concat(testId, "--wrapper") : undefined
|
|
41
34
|
}, /*#__PURE__*/React.createElement("div", {
|
|
42
35
|
role: "tooltip"
|
|
43
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
44
37
|
,
|
|
45
|
-
className: (0, _runtime.ax)(["
|
|
38
|
+
className: (0, _runtime.ax)(["_80om73ad", className])
|
|
46
39
|
// Because the tooltip should not be focusable, there is no reason to have key events.
|
|
47
40
|
/* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
|
|
48
41
|
onMouseOut: onMouseOut
|
|
@@ -50,10 +43,7 @@ var TooltipPrimitive = /*#__PURE__*/(0, _react.forwardRef)(function TooltipPrimi
|
|
|
50
43
|
onMouseOver: onMouseOver,
|
|
51
44
|
"data-placement": placement,
|
|
52
45
|
"data-testid": testId,
|
|
53
|
-
id: id
|
|
54
|
-
style: {
|
|
55
|
-
"--_7y8q8x": (0, _runtime.ix)("var(".concat(VAR_PRIMITIVE_ZINDEX, ")"))
|
|
56
|
-
}
|
|
46
|
+
id: id
|
|
57
47
|
}, children));
|
|
58
48
|
});
|
|
59
49
|
TooltipPrimitive.displayName = 'TooltipPrimitive';
|
package/dist/cjs/tooltip.js
CHANGED
|
@@ -3,8 +3,6 @@ import "./tooltip-primitive.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
|
-
import { layers } from '@atlaskit/theme/constants';
|
|
7
|
-
const VAR_PRIMITIVE_ZINDEX = 'tooltipPrimitiveZindex';
|
|
8
6
|
const primitiveStyles = null;
|
|
9
7
|
|
|
10
8
|
/**
|
|
@@ -20,21 +18,17 @@ const TooltipPrimitive = /*#__PURE__*/forwardRef(function TooltipPrimitive({
|
|
|
20
18
|
onMouseOver,
|
|
21
19
|
id
|
|
22
20
|
}, ref) {
|
|
23
|
-
const styleWithZIndex = {
|
|
24
|
-
...style,
|
|
25
|
-
[VAR_PRIMITIVE_ZINDEX]: layers.tooltip()
|
|
26
|
-
};
|
|
27
21
|
return /*#__PURE__*/React.createElement("div", {
|
|
28
22
|
ref: ref
|
|
29
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
30
24
|
,
|
|
31
|
-
style:
|
|
25
|
+
style: style,
|
|
32
26
|
"data-testid": testId ? `${testId}--wrapper` : undefined
|
|
33
27
|
}, /*#__PURE__*/React.createElement("div", {
|
|
34
28
|
role: "tooltip"
|
|
35
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
36
30
|
,
|
|
37
|
-
className: ax(["
|
|
31
|
+
className: ax(["_80om73ad", className])
|
|
38
32
|
// Because the tooltip should not be focusable, there is no reason to have key events.
|
|
39
33
|
/* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
|
|
40
34
|
onMouseOut: onMouseOut
|
package/dist/es2019/tooltip.js
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
/* tooltip-primitive.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
2
|
import "./tooltip-primitive.compiled.css";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
5
|
import { forwardRef } from 'react';
|
|
9
|
-
import { layers } from '@atlaskit/theme/constants';
|
|
10
|
-
var VAR_PRIMITIVE_ZINDEX = 'tooltipPrimitiveZindex';
|
|
11
6
|
var primitiveStyles = null;
|
|
12
7
|
|
|
13
8
|
/**
|
|
@@ -22,18 +17,17 @@ var TooltipPrimitive = /*#__PURE__*/forwardRef(function TooltipPrimitive(_ref, r
|
|
|
22
17
|
onMouseOut = _ref.onMouseOut,
|
|
23
18
|
onMouseOver = _ref.onMouseOver,
|
|
24
19
|
id = _ref.id;
|
|
25
|
-
var styleWithZIndex = _objectSpread(_objectSpread({}, style), {}, _defineProperty({}, VAR_PRIMITIVE_ZINDEX, layers.tooltip()));
|
|
26
20
|
return /*#__PURE__*/React.createElement("div", {
|
|
27
21
|
ref: ref
|
|
28
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
29
23
|
,
|
|
30
|
-
style:
|
|
24
|
+
style: style,
|
|
31
25
|
"data-testid": testId ? "".concat(testId, "--wrapper") : undefined
|
|
32
26
|
}, /*#__PURE__*/React.createElement("div", {
|
|
33
27
|
role: "tooltip"
|
|
34
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
35
29
|
,
|
|
36
|
-
className: ax(["
|
|
30
|
+
className: ax(["_80om73ad", className])
|
|
37
31
|
// Because the tooltip should not be focusable, there is no reason to have key events.
|
|
38
32
|
/* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */,
|
|
39
33
|
onMouseOut: onMouseOut
|
|
@@ -41,10 +35,7 @@ var TooltipPrimitive = /*#__PURE__*/forwardRef(function TooltipPrimitive(_ref, r
|
|
|
41
35
|
onMouseOver: onMouseOver,
|
|
42
36
|
"data-placement": placement,
|
|
43
37
|
"data-testid": testId,
|
|
44
|
-
id: id
|
|
45
|
-
style: {
|
|
46
|
-
"--_7y8q8x": ix("var(".concat(VAR_PRIMITIVE_ZINDEX, ")"))
|
|
47
|
-
}
|
|
38
|
+
id: id
|
|
48
39
|
}, children));
|
|
49
40
|
});
|
|
50
41
|
TooltipPrimitive.displayName = 'TooltipPrimitive';
|
package/dist/esm/tooltip.js
CHANGED
package/package.json
CHANGED