@atlaskit/table-tree 9.1.8 → 9.2.0

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/components/header.js +10 -4
  3. package/dist/cjs/components/headers.js +10 -4
  4. package/dist/cjs/components/internal/common-cell.js +11 -5
  5. package/dist/cjs/components/internal/item.js +3 -3
  6. package/dist/cjs/components/internal/overflow-container.js +14 -5
  7. package/dist/cjs/components/internal/styled.js +37 -20
  8. package/dist/cjs/components/row.js +1 -1
  9. package/dist/cjs/version.json +1 -1
  10. package/dist/es2019/components/header.js +8 -3
  11. package/dist/es2019/components/headers.js +10 -3
  12. package/dist/es2019/components/internal/common-cell.js +9 -6
  13. package/dist/es2019/components/internal/item.js +1 -1
  14. package/dist/es2019/components/internal/overflow-container.js +10 -6
  15. package/dist/es2019/components/internal/styled.js +28 -16
  16. package/dist/es2019/components/row.js +1 -1
  17. package/dist/es2019/version.json +1 -1
  18. package/dist/esm/components/header.js +8 -3
  19. package/dist/esm/components/headers.js +8 -3
  20. package/dist/esm/components/internal/common-cell.js +9 -6
  21. package/dist/esm/components/internal/item.js +1 -1
  22. package/dist/esm/components/internal/overflow-container.js +12 -6
  23. package/dist/esm/components/internal/styled.js +31 -17
  24. package/dist/esm/components/row.js +1 -1
  25. package/dist/esm/version.json +1 -1
  26. package/dist/types/components/cell.d.ts +12 -0
  27. package/dist/types/components/headers.d.ts +2 -1
  28. package/dist/types/components/internal/item.d.ts +2 -1
  29. package/extract-react-types/table-tree-cell.tsx +7 -0
  30. package/extract-react-types/table-tree-header.tsx +20 -0
  31. package/extract-react-types/table-tree-row.tsx +85 -0
  32. package/extract-react-types/table-tree-rows.tsx +34 -0
  33. package/extract-react-types/table-tree.tsx +6 -5
  34. package/package.json +12 -9
  35. package/report.api.md +369 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atlaskit/table-tree
2
2
 
3
+ ## 9.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`181c4b6cc3a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/181c4b6cc3a) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 9.1.10
14
+
15
+ ### Patch Changes
16
+
17
+ - [`70c2c0e00ea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/70c2c0e00ea) - Updates `@emotion/core` v10 to `@emotion/react` v11. No expected behaviour change.
18
+
19
+ ## 9.1.9
20
+
21
+ ### Patch Changes
22
+
23
+ - [`efa50ac72ba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/efa50ac72ba) - Adjusts jsdoc strings to improve prop documentation
24
+
3
25
  ## 9.1.8
4
26
 
5
27
  ### Patch Changes
@@ -19,9 +19,11 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
19
19
 
20
20
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
21
21
 
22
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
23
+
22
24
  var _react = require("react");
23
25
 
24
- var _core = require("@emotion/core");
26
+ var _react2 = require("@emotion/react");
25
27
 
26
28
  var _colors = require("@atlaskit/theme/colors");
27
29
 
@@ -33,7 +35,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
33
35
 
34
36
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
35
37
 
36
- var headerStyles = (0, _core.css)({
38
+ var headerStyles = (0, _react2.css)({
37
39
  color: "var(--ds-text-subtle, ".concat(_colors.N300, ")"),
38
40
  fontSize: 12,
39
41
  fontWeight: 'bold',
@@ -41,6 +43,11 @@ var headerStyles = (0, _core.css)({
41
43
  lineHeight: '1.67'
42
44
  });
43
45
 
46
+ var _StyledColumnCell = (0, _styledComponents.default)(_commonCell.default).withConfig({
47
+ displayName: "header___StyledColumnCell",
48
+ componentId: "sc-1yvg8oq-0"
49
+ })(["", ""], headerStyles);
50
+
44
51
  var Header = /*#__PURE__*/function (_Component) {
45
52
  (0, _inherits2.default)(Header, _Component);
46
53
 
@@ -55,8 +62,7 @@ var Header = /*#__PURE__*/function (_Component) {
55
62
  key: "render",
56
63
  value: function render() {
57
64
  var props = this.props;
58
- return (0, _core.jsx)(_commonCell.default, (0, _extends2.default)({
59
- css: headerStyles,
65
+ return (0, _react2.jsx)(_StyledColumnCell, (0, _extends2.default)({
60
66
  role: "columnheader",
61
67
  style: {
62
68
  width: props.width
@@ -17,19 +17,26 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
17
17
 
18
18
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
19
19
 
20
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
21
+
20
22
  var _react = require("react");
21
23
 
22
- var _core = require("@emotion/core");
24
+ var _react2 = require("@emotion/react");
23
25
 
24
26
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
25
27
 
26
28
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
27
29
 
28
- var containerStyles = (0, _core.css)({
30
+ var containerStyles = (0, _react2.css)({
29
31
  display: 'flex',
30
32
  borderBottom: "solid 2px ".concat("var(--ds-border, #dfe1e6)")
31
33
  });
32
34
 
35
+ var _StyledDiv = (0, _styledComponents.default)("div").withConfig({
36
+ displayName: "headers___StyledDiv",
37
+ componentId: "h5d3f7-0"
38
+ })(["", ""], containerStyles);
39
+
33
40
  var Headers = /*#__PURE__*/function (_Component) {
34
41
  (0, _inherits2.default)(Headers, _Component);
35
42
 
@@ -43,8 +50,7 @@ var Headers = /*#__PURE__*/function (_Component) {
43
50
  (0, _createClass2.default)(Headers, [{
44
51
  key: "render",
45
52
  value: function render() {
46
- return (0, _core.jsx)("div", {
47
- css: containerStyles,
53
+ return (0, _react2.jsx)(_StyledDiv, {
48
54
  role: "row"
49
55
  }, _react.Children.map(this.props.children, function (header, index) {
50
56
  return (
@@ -11,12 +11,14 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
 
12
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
13
 
14
- var _core = require("@emotion/core");
14
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
15
+
16
+ var _react = require("@emotion/react");
15
17
 
16
18
  var _colors = require("@atlaskit/theme/colors");
17
19
 
18
20
  var _excluded = ["indent", "width"];
19
- var commonStyles = (0, _core.css)({
21
+ var commonStyles = (0, _react.css)({
20
22
  display: 'flex',
21
23
  boxSizing: 'border-box',
22
24
  minHeight: 40,
@@ -27,6 +29,11 @@ var commonStyles = (0, _core.css)({
27
29
  lineHeight: '20px'
28
30
  });
29
31
 
32
+ var _StyledDiv = (0, _styledComponents.default)("div").withConfig({
33
+ displayName: "common-cell___StyledDiv",
34
+ componentId: "t3yvaw-0"
35
+ })(["", ""], commonStyles);
36
+
30
37
  /**
31
38
  * __Common cell__
32
39
  */
@@ -34,12 +41,11 @@ var CommonCell = function CommonCell(_ref) {
34
41
  var indent = _ref.indent,
35
42
  width = _ref.width,
36
43
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
37
- return (0, _core.jsx)("div", (0, _extends2.default)({}, props, {
44
+ return (0, _react.jsx)(_StyledDiv, (0, _extends2.default)({}, props, {
38
45
  style: {
39
46
  '--indent': indent,
40
47
  width: width
41
- },
42
- css: commonStyles
48
+ }
43
49
  }));
44
50
  };
45
51
 
@@ -21,7 +21,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
21
21
 
22
22
  var _react = require("react");
23
23
 
24
- var _core = require("@emotion/core");
24
+ var _react2 = require("@emotion/react");
25
25
 
26
26
  var _toItemId = _interopRequireDefault(require("../../utils/to-item-id"));
27
27
 
@@ -62,9 +62,9 @@ var Item = /*#__PURE__*/function (_Component) {
62
62
  depth: depth,
63
63
  data: data,
64
64
  renderChildren: function renderChildren() {
65
- return (0, _core.jsx)("div", {
65
+ return (0, _react2.jsx)("div", {
66
66
  id: (0, _toItemId.default)(itemId)
67
- }, (0, _core.jsx)(_items.default, {
67
+ }, (0, _react2.jsx)(_items.default, {
68
68
  parentData: data,
69
69
  depth: depth,
70
70
  items: items,
@@ -11,10 +11,12 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
 
12
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
13
 
14
- var _core = require("@emotion/core");
14
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
15
+
16
+ var _react = require("@emotion/react");
15
17
 
16
18
  var _excluded = ["isSingleLine"];
17
- var overflowContainerStyles = (0, _core.css)({
19
+ var overflowContainerStyles = (0, _react.css)({
18
20
  overflow: 'hidden',
19
21
  textOverflow: 'ellipsis',
20
22
  whiteSpace: 'nowrap'
@@ -23,13 +25,20 @@ var overflowContainerStyles = (0, _core.css)({
23
25
  * __Overflow container__
24
26
  */
25
27
 
28
+ var _StyledSpan = (0, _styledComponents.default)("span").withConfig({
29
+ displayName: "overflow-container___StyledSpan",
30
+ componentId: "sc-1m74akj-0"
31
+ })(["", ""], function (p) {
32
+ return p._css;
33
+ });
34
+
26
35
  var OverflowContainer = function OverflowContainer(_ref) {
27
36
  var isSingleLine = _ref.isSingleLine,
28
37
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
29
38
  return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
30
- (0, _core.jsx)("span", (0, _extends2.default)({
31
- css: isSingleLine && overflowContainerStyles
32
- }, props))
39
+ (0, _react.jsx)(_StyledSpan, (0, _extends2.default)({}, props, {
40
+ _css: isSingleLine && overflowContainerStyles
41
+ }))
33
42
  );
34
43
  };
35
44
 
@@ -7,18 +7,20 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.iconColor = exports.TreeRowContainer = exports.LoaderItemContainer = exports.ChevronIconContainer = exports.ChevronContainer = void 0;
9
9
 
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
10
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
13
 
12
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
13
15
 
14
- var _core = require("@emotion/core");
16
+ var _react = require("@emotion/react");
15
17
 
16
18
  var _colors = require("@atlaskit/theme/colors");
17
19
 
18
20
  var _excluded = ["isRoot"];
19
21
  var iconColor = "var(--ds-text, ".concat(_colors.N800, ")");
20
22
  exports.iconColor = iconColor;
21
- var treeRowContainerStyles = (0, _core.css)({
23
+ var treeRowContainerStyles = (0, _react.css)({
22
24
  display: 'flex',
23
25
  borderBottom: "1px solid ".concat("var(--ds-border, ".concat(_colors.N30, ")"))
24
26
  });
@@ -26,16 +28,19 @@ var treeRowContainerStyles = (0, _core.css)({
26
28
  * __Tree row container__
27
29
  */
28
30
 
31
+ var _StyledDiv = (0, _styledComponents.default)("div").withConfig({
32
+ displayName: "styled___StyledDiv",
33
+ componentId: "sc-8rz2kg-0"
34
+ })(["", ""], treeRowContainerStyles);
35
+
29
36
  var TreeRowContainer = function TreeRowContainer(props) {
30
37
  return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
31
- (0, _core.jsx)("div", (0, _extends2.default)({
32
- css: treeRowContainerStyles
33
- }, props))
38
+ (0, _react.jsx)(_StyledDiv, props)
34
39
  );
35
40
  };
36
41
 
37
42
  exports.TreeRowContainer = TreeRowContainer;
38
- var commonChevronContainerStyles = (0, _core.css)({
43
+ var commonChevronContainerStyles = (0, _react.css)({
39
44
  display: 'flex',
40
45
  marginLeft: -25,
41
46
  position: 'absolute',
@@ -46,15 +51,18 @@ var commonChevronContainerStyles = (0, _core.css)({
46
51
  * __Chevron container__
47
52
  */
48
53
 
54
+ var _StyledSpan = (0, _styledComponents.default)("span").withConfig({
55
+ displayName: "styled___StyledSpan",
56
+ componentId: "sc-8rz2kg-1"
57
+ })(["", ""], commonChevronContainerStyles);
58
+
49
59
  var ChevronContainer = function ChevronContainer(props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
50
60
  ) {
51
- return (0, _core.jsx)("span", (0, _extends2.default)({}, props, {
52
- css: commonChevronContainerStyles
53
- }));
61
+ return (0, _react.jsx)(_StyledSpan, props);
54
62
  };
55
63
 
56
64
  exports.ChevronContainer = ChevronContainer;
57
- var chevronIconContainerStyles = (0, _core.css)({
65
+ var chevronIconContainerStyles = (0, _react.css)({
58
66
  position: 'relative',
59
67
  top: 1
60
68
  });
@@ -64,19 +72,22 @@ var chevronIconContainerStyles = (0, _core.css)({
64
72
  * A chevron icon container.
65
73
  */
66
74
 
75
+ var _StyledSpan2 = (0, _styledComponents.default)("span").withConfig({
76
+ displayName: "styled___StyledSpan2",
77
+ componentId: "sc-8rz2kg-2"
78
+ })(["", ""], chevronIconContainerStyles);
79
+
67
80
  var ChevronIconContainer = function ChevronIconContainer(props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
68
81
  ) {
69
- return (0, _core.jsx)("span", (0, _extends2.default)({}, props, {
70
- css: chevronIconContainerStyles
71
- }));
82
+ return (0, _react.jsx)(_StyledSpan2, props);
72
83
  };
73
84
 
74
85
  exports.ChevronIconContainer = ChevronIconContainer;
75
- var loadingItemContainerStyles = (0, _core.css)({
86
+ var loadingItemContainerStyles = (0, _react.css)({
76
87
  width: '100%',
77
88
  paddingTop: 5
78
89
  });
79
- var paddingLeftStyles = (0, _core.css)({
90
+ var paddingLeftStyles = (0, _react.css)({
80
91
  paddingLeft: '50%'
81
92
  });
82
93
  /**
@@ -85,13 +96,19 @@ var paddingLeftStyles = (0, _core.css)({
85
96
  * A loader item container.
86
97
  */
87
98
 
99
+ var _StyledSpan3 = (0, _styledComponents.default)("span").withConfig({
100
+ displayName: "styled___StyledSpan3",
101
+ componentId: "sc-8rz2kg-3"
102
+ })(["", ""], function (p) {
103
+ return p._css;
104
+ });
105
+
88
106
  var LoaderItemContainer = function LoaderItemContainer(_ref) {
89
107
  var isRoot = _ref.isRoot,
90
108
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
91
- return (0, _core.jsx)("span", (0, _extends2.default)({
92
- css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles] // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
93
-
94
- }, props));
109
+ return (0, _react.jsx)(_StyledSpan3, (0, _extends2.default)({}, props, {
110
+ _css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles]
111
+ }));
95
112
  };
96
113
 
97
114
  exports.LoaderItemContainer = LoaderItemContainer;
@@ -44,7 +44,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
44
44
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
45
45
 
46
46
  var packageName = "@atlaskit/table-tree";
47
- var packageVersion = "9.1.8";
47
+ var packageVersion = "9.2.0";
48
48
 
49
49
  var Row = /*#__PURE__*/function (_Component) {
50
50
  (0, _inherits2.default)(Row, _Component);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "9.1.8",
3
+ "version": "9.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,8 +1,9 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ import _styled from "styled-components";
2
3
 
3
4
  /** @jsx jsx */
4
5
  import { Component } from 'react';
5
- import { css, jsx } from '@emotion/core';
6
+ import { css, jsx } from '@emotion/react';
6
7
  import { N300 } from '@atlaskit/theme/colors';
7
8
  import ColumnCell from './internal/common-cell';
8
9
  import withColumnWidth from './internal/with-column-width';
@@ -14,13 +15,17 @@ const headerStyles = css({
14
15
  lineHeight: '1.67'
15
16
  });
16
17
 
18
+ var _StyledColumnCell = _styled(ColumnCell).withConfig({
19
+ displayName: "header___StyledColumnCell",
20
+ componentId: "sc-1yvg8oq-0"
21
+ })(["", ""], headerStyles);
22
+
17
23
  class Header extends Component {
18
24
  render() {
19
25
  const {
20
26
  props
21
27
  } = this;
22
- return jsx(ColumnCell, _extends({
23
- css: headerStyles,
28
+ return jsx(_StyledColumnCell, _extends({
24
29
  role: "columnheader",
25
30
  style: {
26
31
  width: props.width
@@ -1,16 +1,23 @@
1
+ import _styled from "styled-components";
2
+
1
3
  /** @jsx jsx */
2
4
 
3
5
  /* eslint-disable @repo/internal/react/no-clone-element */
4
6
  import { Children, cloneElement, Component } from 'react';
5
- import { css, jsx } from '@emotion/core';
7
+ import { css, jsx } from '@emotion/react';
6
8
  const containerStyles = css({
7
9
  display: 'flex',
8
10
  borderBottom: `solid 2px ${"var(--ds-border, #dfe1e6)"}`
9
11
  });
12
+
13
+ var _StyledDiv = _styled("div").withConfig({
14
+ displayName: "headers___StyledDiv",
15
+ componentId: "h5d3f7-0"
16
+ })(["", ""], containerStyles);
17
+
10
18
  export default class Headers extends Component {
11
19
  render() {
12
- return jsx("div", {
13
- css: containerStyles,
20
+ return jsx(_StyledDiv, {
14
21
  role: "row"
15
22
  }, Children.map(this.props.children, (header, index) =>
16
23
  /*#__PURE__*/
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
-
3
- /** @jsx jsx */
4
- import { css, jsx } from '@emotion/core';
2
+ import _styled from "styled-components";
3
+ import { css, jsx } from '@emotion/react';
5
4
  import { N800 } from '@atlaskit/theme/colors';
6
5
  const commonStyles = css({
7
6
  display: 'flex',
@@ -14,6 +13,11 @@ const commonStyles = css({
14
13
  lineHeight: '20px'
15
14
  });
16
15
 
16
+ var _StyledDiv = _styled("div").withConfig({
17
+ displayName: "common-cell___StyledDiv",
18
+ componentId: "t3yvaw-0"
19
+ })(["", ""], commonStyles);
20
+
17
21
  /**
18
22
  * __Common cell__
19
23
  */
@@ -21,12 +25,11 @@ const CommonCell = ({
21
25
  indent,
22
26
  width,
23
27
  ...props
24
- }) => jsx("div", _extends({}, props, {
28
+ }) => jsx(_StyledDiv, _extends({}, props, {
25
29
  style: {
26
30
  '--indent': indent,
27
31
  width
28
- },
29
- css: commonStyles
32
+ }
30
33
  }));
31
34
 
32
35
  export default CommonCell;
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
 
5
5
  /* eslint-disable @repo/internal/react/no-clone-element */
6
6
  import { cloneElement, Component } from 'react';
7
- import { jsx } from '@emotion/core';
7
+ import { jsx } from '@emotion/react';
8
8
  import toItemId from '../../utils/to-item-id';
9
9
  import Items from './items';
10
10
  export default class Item extends Component {
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
-
3
- /** @jsx jsx */
4
- import { css, jsx } from '@emotion/core';
2
+ import _styled from "styled-components";
3
+ import { css, jsx } from '@emotion/react';
5
4
  const overflowContainerStyles = css({
6
5
  overflow: 'hidden',
7
6
  textOverflow: 'ellipsis',
@@ -11,12 +10,17 @@ const overflowContainerStyles = css({
11
10
  * __Overflow container__
12
11
  */
13
12
 
13
+ var _StyledSpan = _styled("span").withConfig({
14
+ displayName: "overflow-container___StyledSpan",
15
+ componentId: "sc-1m74akj-0"
16
+ })(["", ""], p => p._css);
17
+
14
18
  const OverflowContainer = ({
15
19
  isSingleLine,
16
20
  ...props
17
21
  }) => // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
18
- jsx("span", _extends({
19
- css: isSingleLine && overflowContainerStyles
20
- }, props));
22
+ jsx(_StyledSpan, _extends({}, props, {
23
+ _css: isSingleLine && overflowContainerStyles
24
+ }));
21
25
 
22
26
  export default OverflowContainer;
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
-
3
- /** @jsx jsx */
4
- import { css, jsx } from '@emotion/core';
2
+ import _styled from "styled-components";
3
+ import { css, jsx } from '@emotion/react';
5
4
  import { N30, N800 } from '@atlaskit/theme/colors';
6
5
  export const iconColor = `var(--ds-text, ${N800})`;
7
6
  const treeRowContainerStyles = css({
@@ -12,10 +11,13 @@ const treeRowContainerStyles = css({
12
11
  * __Tree row container__
13
12
  */
14
13
 
14
+ var _StyledDiv = _styled("div").withConfig({
15
+ displayName: "styled___StyledDiv",
16
+ componentId: "sc-8rz2kg-0"
17
+ })(["", ""], treeRowContainerStyles);
18
+
15
19
  export const TreeRowContainer = props => // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
16
- jsx("div", _extends({
17
- css: treeRowContainerStyles
18
- }, props));
20
+ jsx(_StyledDiv, props);
19
21
  const commonChevronContainerStyles = css({
20
22
  display: 'flex',
21
23
  marginLeft: -25,
@@ -27,10 +29,13 @@ const commonChevronContainerStyles = css({
27
29
  * __Chevron container__
28
30
  */
29
31
 
32
+ var _StyledSpan = _styled("span").withConfig({
33
+ displayName: "styled___StyledSpan",
34
+ componentId: "sc-8rz2kg-1"
35
+ })(["", ""], commonChevronContainerStyles);
36
+
30
37
  export const ChevronContainer = (props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
31
- ) => jsx("span", _extends({}, props, {
32
- css: commonChevronContainerStyles
33
- }));
38
+ ) => jsx(_StyledSpan, props);
34
39
  const chevronIconContainerStyles = css({
35
40
  position: 'relative',
36
41
  top: 1
@@ -41,10 +46,13 @@ const chevronIconContainerStyles = css({
41
46
  * A chevron icon container.
42
47
  */
43
48
 
49
+ var _StyledSpan2 = _styled("span").withConfig({
50
+ displayName: "styled___StyledSpan2",
51
+ componentId: "sc-8rz2kg-2"
52
+ })(["", ""], chevronIconContainerStyles);
53
+
44
54
  export const ChevronIconContainer = (props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
45
- ) => jsx("span", _extends({}, props, {
46
- css: chevronIconContainerStyles
47
- }));
55
+ ) => jsx(_StyledSpan2, props);
48
56
  const loadingItemContainerStyles = css({
49
57
  width: '100%',
50
58
  paddingTop: 5
@@ -58,10 +66,14 @@ const paddingLeftStyles = css({
58
66
  * A loader item container.
59
67
  */
60
68
 
69
+ var _StyledSpan3 = _styled("span").withConfig({
70
+ displayName: "styled___StyledSpan3",
71
+ componentId: "sc-8rz2kg-3"
72
+ })(["", ""], p => p._css);
73
+
61
74
  export const LoaderItemContainer = ({
62
75
  isRoot,
63
76
  ...props
64
- }) => jsx("span", _extends({
65
- css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles] // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
66
-
67
- }, props));
77
+ }) => jsx(_StyledSpan3, _extends({}, props, {
78
+ _css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles]
79
+ }));
@@ -8,7 +8,7 @@ import toItemId from '../utils/to-item-id';
8
8
  import Chevron from './internal/chevron';
9
9
  import { TreeRowContainer } from './internal/styled';
10
10
  const packageName = "@atlaskit/table-tree";
11
- const packageVersion = "9.1.8";
11
+ const packageVersion = "9.2.0";
12
12
 
13
13
  class Row extends Component {
14
14
  constructor(...args) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "9.1.8",
3
+ "version": "9.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -4,6 +4,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
4
4
  import _inherits from "@babel/runtime/helpers/inherits";
5
5
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
+ import _styled from "styled-components";
7
8
 
8
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
10
 
@@ -11,7 +12,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
11
12
 
12
13
  /** @jsx jsx */
13
14
  import { Component } from 'react';
14
- import { css, jsx } from '@emotion/core';
15
+ import { css, jsx } from '@emotion/react';
15
16
  import { N300 } from '@atlaskit/theme/colors';
16
17
  import ColumnCell from './internal/common-cell';
17
18
  import withColumnWidth from './internal/with-column-width';
@@ -23,6 +24,11 @@ var headerStyles = css({
23
24
  lineHeight: '1.67'
24
25
  });
25
26
 
27
+ var _StyledColumnCell = _styled(ColumnCell).withConfig({
28
+ displayName: "header___StyledColumnCell",
29
+ componentId: "sc-1yvg8oq-0"
30
+ })(["", ""], headerStyles);
31
+
26
32
  var Header = /*#__PURE__*/function (_Component) {
27
33
  _inherits(Header, _Component);
28
34
 
@@ -38,8 +44,7 @@ var Header = /*#__PURE__*/function (_Component) {
38
44
  key: "render",
39
45
  value: function render() {
40
46
  var props = this.props;
41
- return jsx(ColumnCell, _extends({
42
- css: headerStyles,
47
+ return jsx(_StyledColumnCell, _extends({
43
48
  role: "columnheader",
44
49
  style: {
45
50
  width: props.width