@atlaskit/table-tree 9.1.10 → 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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
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
+
3
13
  ## 9.1.10
4
14
 
5
15
  ### Patch Changes
@@ -19,6 +19,8 @@ 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
26
  var _react2 = require("@emotion/react");
@@ -41,6 +43,11 @@ var headerStyles = (0, _react2.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, _react2.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,6 +17,8 @@ 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
24
  var _react2 = require("@emotion/react");
@@ -30,6 +32,11 @@ var containerStyles = (0, _react2.css)({
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, _react2.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,6 +11,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
 
12
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
13
 
14
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
15
+
14
16
  var _react = require("@emotion/react");
15
17
 
16
18
  var _colors = require("@atlaskit/theme/colors");
@@ -27,6 +29,11 @@ var commonStyles = (0, _react.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, _react.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
 
@@ -11,6 +11,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
 
12
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
13
 
14
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
15
+
14
16
  var _react = require("@emotion/react");
15
17
 
16
18
  var _excluded = ["isSingleLine"];
@@ -23,13 +25,20 @@ var overflowContainerStyles = (0, _react.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, _react.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,9 +7,11 @@ 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
16
  var _react = require("@emotion/react");
15
17
 
@@ -26,11 +28,14 @@ var treeRowContainerStyles = (0, _react.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, _react.jsx)("div", (0, _extends2.default)({
32
- css: treeRowContainerStyles
33
- }, props))
38
+ (0, _react.jsx)(_StyledDiv, props)
34
39
  );
35
40
  };
36
41
 
@@ -46,11 +51,14 @@ var commonChevronContainerStyles = (0, _react.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, _react.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;
@@ -64,11 +72,14 @@ var chevronIconContainerStyles = (0, _react.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, _react.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;
@@ -85,13 +96,19 @@ var paddingLeftStyles = (0, _react.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, _react.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.10";
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.10",
3
+ "version": "9.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,4 +1,5 @@
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';
@@ -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,3 +1,5 @@
1
+ import _styled from "styled-components";
2
+
1
3
  /** @jsx jsx */
2
4
 
3
5
  /* eslint-disable @repo/internal/react/no-clone-element */
@@ -7,10 +9,15 @@ 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,6 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
-
3
- /** @jsx jsx */
2
+ import _styled from "styled-components";
4
3
  import { css, jsx } from '@emotion/react';
5
4
  import { N800 } from '@atlaskit/theme/colors';
6
5
  const commonStyles = css({
@@ -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;
@@ -1,6 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
-
3
- /** @jsx jsx */
2
+ import _styled from "styled-components";
4
3
  import { css, jsx } from '@emotion/react';
5
4
  const overflowContainerStyles = css({
6
5
  overflow: 'hidden',
@@ -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,6 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
-
3
- /** @jsx jsx */
2
+ import _styled from "styled-components";
4
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})`;
@@ -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.10";
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.10",
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
 
@@ -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
@@ -3,6 +3,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
+ import _styled from "styled-components";
6
7
 
7
8
  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); }; }
8
9
 
@@ -18,6 +19,11 @@ var containerStyles = css({
18
19
  borderBottom: "solid 2px ".concat("var(--ds-border, #dfe1e6)")
19
20
  });
20
21
 
22
+ var _StyledDiv = _styled("div").withConfig({
23
+ displayName: "headers___StyledDiv",
24
+ componentId: "h5d3f7-0"
25
+ })(["", ""], containerStyles);
26
+
21
27
  var Headers = /*#__PURE__*/function (_Component) {
22
28
  _inherits(Headers, _Component);
23
29
 
@@ -32,8 +38,7 @@ var Headers = /*#__PURE__*/function (_Component) {
32
38
  _createClass(Headers, [{
33
39
  key: "render",
34
40
  value: function render() {
35
- return jsx("div", {
36
- css: containerStyles,
41
+ return jsx(_StyledDiv, {
37
42
  role: "row"
38
43
  }, Children.map(this.props.children, function (header, index) {
39
44
  return (
@@ -1,8 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ import _styled from "styled-components";
3
4
  var _excluded = ["indent", "width"];
4
-
5
- /** @jsx jsx */
6
5
  import { css, jsx } from '@emotion/react';
7
6
  import { N800 } from '@atlaskit/theme/colors';
8
7
  var commonStyles = css({
@@ -16,6 +15,11 @@ var commonStyles = css({
16
15
  lineHeight: '20px'
17
16
  });
18
17
 
18
+ var _StyledDiv = _styled("div").withConfig({
19
+ displayName: "common-cell___StyledDiv",
20
+ componentId: "t3yvaw-0"
21
+ })(["", ""], commonStyles);
22
+
19
23
  /**
20
24
  * __Common cell__
21
25
  */
@@ -24,12 +28,11 @@ var CommonCell = function CommonCell(_ref) {
24
28
  width = _ref.width,
25
29
  props = _objectWithoutProperties(_ref, _excluded);
26
30
 
27
- return jsx("div", _extends({}, props, {
31
+ return jsx(_StyledDiv, _extends({}, props, {
28
32
  style: {
29
33
  '--indent': indent,
30
34
  width: width
31
- },
32
- css: commonStyles
35
+ }
33
36
  }));
34
37
  };
35
38
 
@@ -1,8 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ import _styled from "styled-components";
3
4
  var _excluded = ["isSingleLine"];
4
-
5
- /** @jsx jsx */
6
5
  import { css, jsx } from '@emotion/react';
7
6
  var overflowContainerStyles = css({
8
7
  overflow: 'hidden',
@@ -13,14 +12,21 @@ var overflowContainerStyles = css({
13
12
  * __Overflow container__
14
13
  */
15
14
 
15
+ var _StyledSpan = _styled("span").withConfig({
16
+ displayName: "overflow-container___StyledSpan",
17
+ componentId: "sc-1m74akj-0"
18
+ })(["", ""], function (p) {
19
+ return p._css;
20
+ });
21
+
16
22
  var OverflowContainer = function OverflowContainer(_ref) {
17
23
  var isSingleLine = _ref.isSingleLine,
18
24
  props = _objectWithoutProperties(_ref, _excluded);
19
25
 
20
26
  return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
21
- jsx("span", _extends({
22
- css: isSingleLine && overflowContainerStyles
23
- }, props))
27
+ jsx(_StyledSpan, _extends({}, props, {
28
+ _css: isSingleLine && overflowContainerStyles
29
+ }))
24
30
  );
25
31
  };
26
32
 
@@ -1,8 +1,7 @@
1
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ import _styled from "styled-components";
3
4
  var _excluded = ["isRoot"];
4
-
5
- /** @jsx jsx */
6
5
  import { css, jsx } from '@emotion/react';
7
6
  import { N30, N800 } from '@atlaskit/theme/colors';
8
7
  export var iconColor = "var(--ds-text, ".concat(N800, ")");
@@ -14,11 +13,14 @@ var treeRowContainerStyles = css({
14
13
  * __Tree row container__
15
14
  */
16
15
 
16
+ var _StyledDiv = _styled("div").withConfig({
17
+ displayName: "styled___StyledDiv",
18
+ componentId: "sc-8rz2kg-0"
19
+ })(["", ""], treeRowContainerStyles);
20
+
17
21
  export var TreeRowContainer = function TreeRowContainer(props) {
18
22
  return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
19
- jsx("div", _extends({
20
- css: treeRowContainerStyles
21
- }, props))
23
+ jsx(_StyledDiv, props)
22
24
  );
23
25
  };
24
26
  var commonChevronContainerStyles = css({
@@ -32,11 +34,14 @@ var commonChevronContainerStyles = css({
32
34
  * __Chevron container__
33
35
  */
34
36
 
37
+ var _StyledSpan = _styled("span").withConfig({
38
+ displayName: "styled___StyledSpan",
39
+ componentId: "sc-8rz2kg-1"
40
+ })(["", ""], commonChevronContainerStyles);
41
+
35
42
  export var ChevronContainer = function ChevronContainer(props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
36
43
  ) {
37
- return jsx("span", _extends({}, props, {
38
- css: commonChevronContainerStyles
39
- }));
44
+ return jsx(_StyledSpan, props);
40
45
  };
41
46
  var chevronIconContainerStyles = css({
42
47
  position: 'relative',
@@ -48,11 +53,14 @@ var chevronIconContainerStyles = css({
48
53
  * A chevron icon container.
49
54
  */
50
55
 
56
+ var _StyledSpan2 = _styled("span").withConfig({
57
+ displayName: "styled___StyledSpan2",
58
+ componentId: "sc-8rz2kg-2"
59
+ })(["", ""], chevronIconContainerStyles);
60
+
51
61
  export var ChevronIconContainer = function ChevronIconContainer(props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
52
62
  ) {
53
- return jsx("span", _extends({}, props, {
54
- css: chevronIconContainerStyles
55
- }));
63
+ return jsx(_StyledSpan2, props);
56
64
  };
57
65
  var loadingItemContainerStyles = css({
58
66
  width: '100%',
@@ -67,12 +75,18 @@ var paddingLeftStyles = css({
67
75
  * A loader item container.
68
76
  */
69
77
 
78
+ var _StyledSpan3 = _styled("span").withConfig({
79
+ displayName: "styled___StyledSpan3",
80
+ componentId: "sc-8rz2kg-3"
81
+ })(["", ""], function (p) {
82
+ return p._css;
83
+ });
84
+
70
85
  export var LoaderItemContainer = function LoaderItemContainer(_ref) {
71
86
  var isRoot = _ref.isRoot,
72
87
  props = _objectWithoutProperties(_ref, _excluded);
73
88
 
74
- return jsx("span", _extends({
75
- css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles] // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
76
-
77
- }, props));
89
+ return jsx(_StyledSpan3, _extends({}, props, {
90
+ _css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles]
91
+ }));
78
92
  };
@@ -18,7 +18,7 @@ import toItemId from '../utils/to-item-id';
18
18
  import Chevron from './internal/chevron';
19
19
  import { TreeRowContainer } from './internal/styled';
20
20
  var packageName = "@atlaskit/table-tree";
21
- var packageVersion = "9.1.10";
21
+ var packageVersion = "9.2.0";
22
22
 
23
23
  var Row = /*#__PURE__*/function (_Component) {
24
24
  _inherits(Row, _Component);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "9.1.10",
3
+ "version": "9.2.0",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "9.1.10",
3
+ "version": "9.2.0",
4
4
  "description": "A table tree is an expandable table for showing nested hierarchies of information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/button": "^16.3.0",
32
32
  "@atlaskit/icon": "^21.10.0",
33
33
  "@atlaskit/spinner": "^15.0.0",
34
- "@atlaskit/theme": "^12.1.0",
34
+ "@atlaskit/theme": "^12.2.0",
35
35
  "@atlaskit/tokens": "^0.10.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "@emotion/react": "^11.7.1",
@@ -43,9 +43,10 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@atlaskit/docs": "*",
46
- "@atlaskit/empty-state": "^7.3.0",
47
- "@atlaskit/section-message": "^6.0.0",
48
- "@atlaskit/select": "^15.6.0",
46
+ "@atlaskit/ds-lib": "^2.0.1",
47
+ "@atlaskit/empty-state": "^7.4.0",
48
+ "@atlaskit/section-message": "^6.2.0",
49
+ "@atlaskit/select": "^15.7.0",
49
50
  "@atlaskit/ssr": "*",
50
51
  "@atlaskit/visual-regression": "*",
51
52
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",