@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 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,2 +1 @@
1
- ._11jnf8tm{zindex:var(--_7y8q8x)}
2
1
  ._80om73ad{cursor:default}
@@ -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: styleWithZIndex,
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)(["_11jnf8tm _80om73ad", className])
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';
@@ -33,7 +33,7 @@ var tooltipZIndex = _constants.layers.tooltip();
33
33
  var analyticsAttributes = {
34
34
  componentName: 'tooltip',
35
35
  packageName: "@atlaskit/tooltip",
36
- packageVersion: "20.2.1"
36
+ packageVersion: "20.2.2"
37
37
  };
38
38
 
39
39
  // Inverts motion direction
@@ -1,2 +1 @@
1
- ._11jnani6{zindex:var(tooltipPrimitiveZindex)}
2
1
  ._80om73ad{cursor:default}
@@ -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: styleWithZIndex,
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(["_11jnani6 _80om73ad", className])
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
@@ -20,7 +20,7 @@ const tooltipZIndex = layers.tooltip();
20
20
  const analyticsAttributes = {
21
21
  componentName: 'tooltip',
22
22
  packageName: "@atlaskit/tooltip",
23
- packageVersion: "20.2.1"
23
+ packageVersion: "20.2.2"
24
24
  };
25
25
 
26
26
  // Inverts motion direction
@@ -1,2 +1 @@
1
- ._11jnf8tm{zindex:var(--_7y8q8x)}
2
1
  ._80om73ad{cursor:default}
@@ -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: styleWithZIndex,
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(["_11jnf8tm _80om73ad", className])
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';
@@ -24,7 +24,7 @@ var tooltipZIndex = layers.tooltip();
24
24
  var analyticsAttributes = {
25
25
  componentName: 'tooltip',
26
26
  packageName: "@atlaskit/tooltip",
27
- packageVersion: "20.2.1"
27
+ packageVersion: "20.2.2"
28
28
  };
29
29
 
30
30
  // Inverts motion direction
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tooltip",
3
- "version": "20.2.1",
3
+ "version": "20.2.2",
4
4
  "description": "A tooltip is a floating, non-actionable label used to explain a user interface element or feature.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"