@atlaskit/table-tree 9.2.0 → 9.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 +12 -0
- package/dist/cjs/components/header.js +2 -8
- package/dist/cjs/components/headers.js +2 -8
- package/dist/cjs/components/internal/common-cell.js +3 -9
- package/dist/cjs/components/internal/overflow-container.js +3 -12
- package/dist/cjs/components/internal/styled.js +14 -31
- package/dist/cjs/components/row.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/header.js +2 -7
- package/dist/es2019/components/headers.js +2 -9
- package/dist/es2019/components/internal/common-cell.js +5 -8
- package/dist/es2019/components/internal/overflow-container.js +5 -9
- package/dist/es2019/components/internal/styled.js +15 -27
- package/dist/es2019/components/row.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/header.js +2 -7
- package/dist/esm/components/headers.js +2 -7
- package/dist/esm/components/internal/common-cell.js +5 -8
- package/dist/esm/components/internal/overflow-container.js +5 -11
- package/dist/esm/components/internal/styled.js +16 -30
- package/dist/esm/components/row.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types-ts4.0/components/cell.d.ts +78 -0
- package/dist/types-ts4.0/components/header.d.ts +60 -0
- package/dist/types-ts4.0/components/headers.d.ts +6 -0
- package/dist/types-ts4.0/components/internal/chevron.d.ts +17 -0
- package/dist/types-ts4.0/components/internal/common-cell.d.ts +11 -0
- package/dist/types-ts4.0/components/internal/item.d.ts +13 -0
- package/dist/types-ts4.0/components/internal/items.d.ts +24 -0
- package/dist/types-ts4.0/components/internal/loader-item.d.ts +20 -0
- package/dist/types-ts4.0/components/internal/overflow-container.d.ts +10 -0
- package/dist/types-ts4.0/components/internal/styled.d.ts +25 -0
- package/dist/types-ts4.0/components/internal/with-column-width.d.ts +64 -0
- package/dist/types-ts4.0/components/row.d.ts +19 -0
- package/dist/types-ts4.0/components/rows.d.ts +12 -0
- package/dist/types-ts4.0/components/table-tree.d.ts +23 -0
- package/dist/types-ts4.0/index.d.ts +10 -0
- package/dist/types-ts4.0/utils/table-tree-data-helper.d.ts +25 -0
- package/dist/types-ts4.0/utils/to-item-id.d.ts +1 -0
- package/package.json +13 -3
- package/report.api.md +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/table-tree
|
|
2
2
|
|
|
3
|
+
## 9.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9827dcb82b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9827dcb82b8) - No-op change to introduce spacing tokens to design system components.
|
|
8
|
+
|
|
9
|
+
## 9.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`d0e187cc5bd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d0e187cc5bd) - Fixed a babel issue causing `styled-components` to get injected, which broke our styling.
|
|
14
|
+
|
|
3
15
|
## 9.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -19,8 +19,6 @@ 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
|
-
|
|
24
22
|
var _react = require("react");
|
|
25
23
|
|
|
26
24
|
var _react2 = require("@emotion/react");
|
|
@@ -43,11 +41,6 @@ var headerStyles = (0, _react2.css)({
|
|
|
43
41
|
lineHeight: '1.67'
|
|
44
42
|
});
|
|
45
43
|
|
|
46
|
-
var _StyledColumnCell = (0, _styledComponents.default)(_commonCell.default).withConfig({
|
|
47
|
-
displayName: "header___StyledColumnCell",
|
|
48
|
-
componentId: "sc-1yvg8oq-0"
|
|
49
|
-
})(["", ""], headerStyles);
|
|
50
|
-
|
|
51
44
|
var Header = /*#__PURE__*/function (_Component) {
|
|
52
45
|
(0, _inherits2.default)(Header, _Component);
|
|
53
46
|
|
|
@@ -62,7 +55,8 @@ var Header = /*#__PURE__*/function (_Component) {
|
|
|
62
55
|
key: "render",
|
|
63
56
|
value: function render() {
|
|
64
57
|
var props = this.props;
|
|
65
|
-
return (0, _react2.jsx)(
|
|
58
|
+
return (0, _react2.jsx)(_commonCell.default, (0, _extends2.default)({
|
|
59
|
+
css: headerStyles,
|
|
66
60
|
role: "columnheader",
|
|
67
61
|
style: {
|
|
68
62
|
width: props.width
|
|
@@ -17,8 +17,6 @@ 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
|
-
|
|
22
20
|
var _react = require("react");
|
|
23
21
|
|
|
24
22
|
var _react2 = require("@emotion/react");
|
|
@@ -32,11 +30,6 @@ var containerStyles = (0, _react2.css)({
|
|
|
32
30
|
borderBottom: "solid 2px ".concat("var(--ds-border, #dfe1e6)")
|
|
33
31
|
});
|
|
34
32
|
|
|
35
|
-
var _StyledDiv = (0, _styledComponents.default)("div").withConfig({
|
|
36
|
-
displayName: "headers___StyledDiv",
|
|
37
|
-
componentId: "h5d3f7-0"
|
|
38
|
-
})(["", ""], containerStyles);
|
|
39
|
-
|
|
40
33
|
var Headers = /*#__PURE__*/function (_Component) {
|
|
41
34
|
(0, _inherits2.default)(Headers, _Component);
|
|
42
35
|
|
|
@@ -50,7 +43,8 @@ var Headers = /*#__PURE__*/function (_Component) {
|
|
|
50
43
|
(0, _createClass2.default)(Headers, [{
|
|
51
44
|
key: "render",
|
|
52
45
|
value: function render() {
|
|
53
|
-
return (0, _react2.jsx)(
|
|
46
|
+
return (0, _react2.jsx)("div", {
|
|
47
|
+
css: containerStyles,
|
|
54
48
|
role: "row"
|
|
55
49
|
}, _react.Children.map(this.props.children, function (header, index) {
|
|
56
50
|
return (
|
|
@@ -11,8 +11,6 @@ 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
|
-
|
|
16
14
|
var _react = require("@emotion/react");
|
|
17
15
|
|
|
18
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
@@ -29,11 +27,6 @@ var commonStyles = (0, _react.css)({
|
|
|
29
27
|
lineHeight: '20px'
|
|
30
28
|
});
|
|
31
29
|
|
|
32
|
-
var _StyledDiv = (0, _styledComponents.default)("div").withConfig({
|
|
33
|
-
displayName: "common-cell___StyledDiv",
|
|
34
|
-
componentId: "t3yvaw-0"
|
|
35
|
-
})(["", ""], commonStyles);
|
|
36
|
-
|
|
37
30
|
/**
|
|
38
31
|
* __Common cell__
|
|
39
32
|
*/
|
|
@@ -41,11 +34,12 @@ var CommonCell = function CommonCell(_ref) {
|
|
|
41
34
|
var indent = _ref.indent,
|
|
42
35
|
width = _ref.width,
|
|
43
36
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
44
|
-
return (0, _react.jsx)(
|
|
37
|
+
return (0, _react.jsx)("div", (0, _extends2.default)({}, props, {
|
|
45
38
|
style: {
|
|
46
39
|
'--indent': indent,
|
|
47
40
|
width: width
|
|
48
|
-
}
|
|
41
|
+
},
|
|
42
|
+
css: commonStyles
|
|
49
43
|
}));
|
|
50
44
|
};
|
|
51
45
|
|
|
@@ -11,8 +11,6 @@ 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
|
-
|
|
16
14
|
var _react = require("@emotion/react");
|
|
17
15
|
|
|
18
16
|
var _excluded = ["isSingleLine"];
|
|
@@ -25,20 +23,13 @@ var overflowContainerStyles = (0, _react.css)({
|
|
|
25
23
|
* __Overflow container__
|
|
26
24
|
*/
|
|
27
25
|
|
|
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
|
-
|
|
35
26
|
var OverflowContainer = function OverflowContainer(_ref) {
|
|
36
27
|
var isSingleLine = _ref.isSingleLine,
|
|
37
28
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
38
29
|
return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
39
|
-
(0, _react.jsx)(
|
|
40
|
-
|
|
41
|
-
}))
|
|
30
|
+
(0, _react.jsx)("span", (0, _extends2.default)({
|
|
31
|
+
css: isSingleLine && overflowContainerStyles
|
|
32
|
+
}, props))
|
|
42
33
|
);
|
|
43
34
|
};
|
|
44
35
|
|
|
@@ -7,11 +7,9 @@ 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
|
-
|
|
12
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
11
|
|
|
14
|
-
var
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
13
|
|
|
16
14
|
var _react = require("@emotion/react");
|
|
17
15
|
|
|
@@ -28,14 +26,11 @@ var treeRowContainerStyles = (0, _react.css)({
|
|
|
28
26
|
* __Tree row container__
|
|
29
27
|
*/
|
|
30
28
|
|
|
31
|
-
var _StyledDiv = (0, _styledComponents.default)("div").withConfig({
|
|
32
|
-
displayName: "styled___StyledDiv",
|
|
33
|
-
componentId: "sc-8rz2kg-0"
|
|
34
|
-
})(["", ""], treeRowContainerStyles);
|
|
35
|
-
|
|
36
29
|
var TreeRowContainer = function TreeRowContainer(props) {
|
|
37
30
|
return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
38
|
-
(0, _react.jsx)(
|
|
31
|
+
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
32
|
+
css: treeRowContainerStyles
|
|
33
|
+
}, props))
|
|
39
34
|
);
|
|
40
35
|
};
|
|
41
36
|
|
|
@@ -51,14 +46,11 @@ var commonChevronContainerStyles = (0, _react.css)({
|
|
|
51
46
|
* __Chevron container__
|
|
52
47
|
*/
|
|
53
48
|
|
|
54
|
-
var _StyledSpan = (0, _styledComponents.default)("span").withConfig({
|
|
55
|
-
displayName: "styled___StyledSpan",
|
|
56
|
-
componentId: "sc-8rz2kg-1"
|
|
57
|
-
})(["", ""], commonChevronContainerStyles);
|
|
58
|
-
|
|
59
49
|
var ChevronContainer = function ChevronContainer(props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
60
50
|
) {
|
|
61
|
-
return (0, _react.jsx)(
|
|
51
|
+
return (0, _react.jsx)("span", (0, _extends2.default)({}, props, {
|
|
52
|
+
css: commonChevronContainerStyles
|
|
53
|
+
}));
|
|
62
54
|
};
|
|
63
55
|
|
|
64
56
|
exports.ChevronContainer = ChevronContainer;
|
|
@@ -72,14 +64,11 @@ var chevronIconContainerStyles = (0, _react.css)({
|
|
|
72
64
|
* A chevron icon container.
|
|
73
65
|
*/
|
|
74
66
|
|
|
75
|
-
var _StyledSpan2 = (0, _styledComponents.default)("span").withConfig({
|
|
76
|
-
displayName: "styled___StyledSpan2",
|
|
77
|
-
componentId: "sc-8rz2kg-2"
|
|
78
|
-
})(["", ""], chevronIconContainerStyles);
|
|
79
|
-
|
|
80
67
|
var ChevronIconContainer = function ChevronIconContainer(props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
81
68
|
) {
|
|
82
|
-
return (0, _react.jsx)(
|
|
69
|
+
return (0, _react.jsx)("span", (0, _extends2.default)({}, props, {
|
|
70
|
+
css: chevronIconContainerStyles
|
|
71
|
+
}));
|
|
83
72
|
};
|
|
84
73
|
|
|
85
74
|
exports.ChevronIconContainer = ChevronIconContainer;
|
|
@@ -96,19 +85,13 @@ var paddingLeftStyles = (0, _react.css)({
|
|
|
96
85
|
* A loader item container.
|
|
97
86
|
*/
|
|
98
87
|
|
|
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
|
-
|
|
106
88
|
var LoaderItemContainer = function LoaderItemContainer(_ref) {
|
|
107
89
|
var isRoot = _ref.isRoot,
|
|
108
90
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
109
|
-
return (0, _react.jsx)(
|
|
110
|
-
|
|
111
|
-
|
|
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));
|
|
112
95
|
};
|
|
113
96
|
|
|
114
97
|
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.2.
|
|
47
|
+
var packageVersion = "9.2.2";
|
|
48
48
|
|
|
49
49
|
var Row = /*#__PURE__*/function (_Component) {
|
|
50
50
|
(0, _inherits2.default)(Row, _Component);
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _styled from "styled-components";
|
|
3
2
|
|
|
4
3
|
/** @jsx jsx */
|
|
5
4
|
import { Component } from 'react';
|
|
@@ -15,17 +14,13 @@ const headerStyles = css({
|
|
|
15
14
|
lineHeight: '1.67'
|
|
16
15
|
});
|
|
17
16
|
|
|
18
|
-
var _StyledColumnCell = _styled(ColumnCell).withConfig({
|
|
19
|
-
displayName: "header___StyledColumnCell",
|
|
20
|
-
componentId: "sc-1yvg8oq-0"
|
|
21
|
-
})(["", ""], headerStyles);
|
|
22
|
-
|
|
23
17
|
class Header extends Component {
|
|
24
18
|
render() {
|
|
25
19
|
const {
|
|
26
20
|
props
|
|
27
21
|
} = this;
|
|
28
|
-
return jsx(
|
|
22
|
+
return jsx(ColumnCell, _extends({
|
|
23
|
+
css: headerStyles,
|
|
29
24
|
role: "columnheader",
|
|
30
25
|
style: {
|
|
31
26
|
width: props.width
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _styled from "styled-components";
|
|
2
|
-
|
|
3
1
|
/** @jsx jsx */
|
|
4
2
|
|
|
5
3
|
/* eslint-disable @repo/internal/react/no-clone-element */
|
|
@@ -9,15 +7,10 @@ const containerStyles = css({
|
|
|
9
7
|
display: 'flex',
|
|
10
8
|
borderBottom: `solid 2px ${"var(--ds-border, #dfe1e6)"}`
|
|
11
9
|
});
|
|
12
|
-
|
|
13
|
-
var _StyledDiv = _styled("div").withConfig({
|
|
14
|
-
displayName: "headers___StyledDiv",
|
|
15
|
-
componentId: "h5d3f7-0"
|
|
16
|
-
})(["", ""], containerStyles);
|
|
17
|
-
|
|
18
10
|
export default class Headers extends Component {
|
|
19
11
|
render() {
|
|
20
|
-
return jsx(
|
|
12
|
+
return jsx("div", {
|
|
13
|
+
css: containerStyles,
|
|
21
14
|
role: "row"
|
|
22
15
|
}, Children.map(this.props.children, (header, index) =>
|
|
23
16
|
/*#__PURE__*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
/** @jsx jsx */
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import { N800 } from '@atlaskit/theme/colors';
|
|
5
6
|
const commonStyles = css({
|
|
@@ -13,11 +14,6 @@ const commonStyles = css({
|
|
|
13
14
|
lineHeight: '20px'
|
|
14
15
|
});
|
|
15
16
|
|
|
16
|
-
var _StyledDiv = _styled("div").withConfig({
|
|
17
|
-
displayName: "common-cell___StyledDiv",
|
|
18
|
-
componentId: "t3yvaw-0"
|
|
19
|
-
})(["", ""], commonStyles);
|
|
20
|
-
|
|
21
17
|
/**
|
|
22
18
|
* __Common cell__
|
|
23
19
|
*/
|
|
@@ -25,11 +21,12 @@ const CommonCell = ({
|
|
|
25
21
|
indent,
|
|
26
22
|
width,
|
|
27
23
|
...props
|
|
28
|
-
}) => jsx(
|
|
24
|
+
}) => jsx("div", _extends({}, props, {
|
|
29
25
|
style: {
|
|
30
26
|
'--indent': indent,
|
|
31
27
|
width
|
|
32
|
-
}
|
|
28
|
+
},
|
|
29
|
+
css: commonStyles
|
|
33
30
|
}));
|
|
34
31
|
|
|
35
32
|
export default CommonCell;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
/** @jsx jsx */
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
const overflowContainerStyles = css({
|
|
5
6
|
overflow: 'hidden',
|
|
@@ -10,17 +11,12 @@ const overflowContainerStyles = css({
|
|
|
10
11
|
* __Overflow container__
|
|
11
12
|
*/
|
|
12
13
|
|
|
13
|
-
var _StyledSpan = _styled("span").withConfig({
|
|
14
|
-
displayName: "overflow-container___StyledSpan",
|
|
15
|
-
componentId: "sc-1m74akj-0"
|
|
16
|
-
})(["", ""], p => p._css);
|
|
17
|
-
|
|
18
14
|
const OverflowContainer = ({
|
|
19
15
|
isSingleLine,
|
|
20
16
|
...props
|
|
21
17
|
}) => // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
22
|
-
jsx(
|
|
23
|
-
|
|
24
|
-
}));
|
|
18
|
+
jsx("span", _extends({
|
|
19
|
+
css: isSingleLine && overflowContainerStyles
|
|
20
|
+
}, props));
|
|
25
21
|
|
|
26
22
|
export default OverflowContainer;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
/** @jsx jsx */
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import { N30, N800 } from '@atlaskit/theme/colors';
|
|
5
6
|
export const iconColor = `var(--ds-text, ${N800})`;
|
|
@@ -11,13 +12,10 @@ const treeRowContainerStyles = css({
|
|
|
11
12
|
* __Tree row container__
|
|
12
13
|
*/
|
|
13
14
|
|
|
14
|
-
var _StyledDiv = _styled("div").withConfig({
|
|
15
|
-
displayName: "styled___StyledDiv",
|
|
16
|
-
componentId: "sc-8rz2kg-0"
|
|
17
|
-
})(["", ""], treeRowContainerStyles);
|
|
18
|
-
|
|
19
15
|
export const TreeRowContainer = props => // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
20
|
-
jsx(
|
|
16
|
+
jsx("div", _extends({
|
|
17
|
+
css: treeRowContainerStyles
|
|
18
|
+
}, props));
|
|
21
19
|
const commonChevronContainerStyles = css({
|
|
22
20
|
display: 'flex',
|
|
23
21
|
marginLeft: -25,
|
|
@@ -29,13 +27,10 @@ const commonChevronContainerStyles = css({
|
|
|
29
27
|
* __Chevron container__
|
|
30
28
|
*/
|
|
31
29
|
|
|
32
|
-
var _StyledSpan = _styled("span").withConfig({
|
|
33
|
-
displayName: "styled___StyledSpan",
|
|
34
|
-
componentId: "sc-8rz2kg-1"
|
|
35
|
-
})(["", ""], commonChevronContainerStyles);
|
|
36
|
-
|
|
37
30
|
export const ChevronContainer = (props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
38
|
-
) => jsx(
|
|
31
|
+
) => jsx("span", _extends({}, props, {
|
|
32
|
+
css: commonChevronContainerStyles
|
|
33
|
+
}));
|
|
39
34
|
const chevronIconContainerStyles = css({
|
|
40
35
|
position: 'relative',
|
|
41
36
|
top: 1
|
|
@@ -46,13 +41,10 @@ const chevronIconContainerStyles = css({
|
|
|
46
41
|
* A chevron icon container.
|
|
47
42
|
*/
|
|
48
43
|
|
|
49
|
-
var _StyledSpan2 = _styled("span").withConfig({
|
|
50
|
-
displayName: "styled___StyledSpan2",
|
|
51
|
-
componentId: "sc-8rz2kg-2"
|
|
52
|
-
})(["", ""], chevronIconContainerStyles);
|
|
53
|
-
|
|
54
44
|
export const ChevronIconContainer = (props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
55
|
-
) => jsx(
|
|
45
|
+
) => jsx("span", _extends({}, props, {
|
|
46
|
+
css: chevronIconContainerStyles
|
|
47
|
+
}));
|
|
56
48
|
const loadingItemContainerStyles = css({
|
|
57
49
|
width: '100%',
|
|
58
50
|
paddingTop: 5
|
|
@@ -66,14 +58,10 @@ const paddingLeftStyles = css({
|
|
|
66
58
|
* A loader item container.
|
|
67
59
|
*/
|
|
68
60
|
|
|
69
|
-
var _StyledSpan3 = _styled("span").withConfig({
|
|
70
|
-
displayName: "styled___StyledSpan3",
|
|
71
|
-
componentId: "sc-8rz2kg-3"
|
|
72
|
-
})(["", ""], p => p._css);
|
|
73
|
-
|
|
74
61
|
export const LoaderItemContainer = ({
|
|
75
62
|
isRoot,
|
|
76
63
|
...props
|
|
77
|
-
}) => jsx(
|
|
78
|
-
|
|
79
|
-
|
|
64
|
+
}) => jsx("span", _extends({
|
|
65
|
+
css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles] // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
66
|
+
|
|
67
|
+
}, props));
|
|
@@ -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.2.
|
|
11
|
+
const packageVersion = "9.2.2";
|
|
12
12
|
|
|
13
13
|
class Row extends Component {
|
|
14
14
|
constructor(...args) {
|
package/dist/es2019/version.json
CHANGED
|
@@ -4,7 +4,6 @@ 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";
|
|
8
7
|
|
|
9
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); }; }
|
|
10
9
|
|
|
@@ -24,11 +23,6 @@ var headerStyles = css({
|
|
|
24
23
|
lineHeight: '1.67'
|
|
25
24
|
});
|
|
26
25
|
|
|
27
|
-
var _StyledColumnCell = _styled(ColumnCell).withConfig({
|
|
28
|
-
displayName: "header___StyledColumnCell",
|
|
29
|
-
componentId: "sc-1yvg8oq-0"
|
|
30
|
-
})(["", ""], headerStyles);
|
|
31
|
-
|
|
32
26
|
var Header = /*#__PURE__*/function (_Component) {
|
|
33
27
|
_inherits(Header, _Component);
|
|
34
28
|
|
|
@@ -44,7 +38,8 @@ var Header = /*#__PURE__*/function (_Component) {
|
|
|
44
38
|
key: "render",
|
|
45
39
|
value: function render() {
|
|
46
40
|
var props = this.props;
|
|
47
|
-
return jsx(
|
|
41
|
+
return jsx(ColumnCell, _extends({
|
|
42
|
+
css: headerStyles,
|
|
48
43
|
role: "columnheader",
|
|
49
44
|
style: {
|
|
50
45
|
width: props.width
|
|
@@ -3,7 +3,6 @@ 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";
|
|
7
6
|
|
|
8
7
|
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
8
|
|
|
@@ -19,11 +18,6 @@ var containerStyles = css({
|
|
|
19
18
|
borderBottom: "solid 2px ".concat("var(--ds-border, #dfe1e6)")
|
|
20
19
|
});
|
|
21
20
|
|
|
22
|
-
var _StyledDiv = _styled("div").withConfig({
|
|
23
|
-
displayName: "headers___StyledDiv",
|
|
24
|
-
componentId: "h5d3f7-0"
|
|
25
|
-
})(["", ""], containerStyles);
|
|
26
|
-
|
|
27
21
|
var Headers = /*#__PURE__*/function (_Component) {
|
|
28
22
|
_inherits(Headers, _Component);
|
|
29
23
|
|
|
@@ -38,7 +32,8 @@ var Headers = /*#__PURE__*/function (_Component) {
|
|
|
38
32
|
_createClass(Headers, [{
|
|
39
33
|
key: "render",
|
|
40
34
|
value: function render() {
|
|
41
|
-
return jsx(
|
|
35
|
+
return jsx("div", {
|
|
36
|
+
css: containerStyles,
|
|
42
37
|
role: "row"
|
|
43
38
|
}, Children.map(this.props.children, function (header, index) {
|
|
44
39
|
return (
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
import _styled from "styled-components";
|
|
4
3
|
var _excluded = ["indent", "width"];
|
|
4
|
+
|
|
5
|
+
/** @jsx jsx */
|
|
5
6
|
import { css, jsx } from '@emotion/react';
|
|
6
7
|
import { N800 } from '@atlaskit/theme/colors';
|
|
7
8
|
var commonStyles = css({
|
|
@@ -15,11 +16,6 @@ var commonStyles = css({
|
|
|
15
16
|
lineHeight: '20px'
|
|
16
17
|
});
|
|
17
18
|
|
|
18
|
-
var _StyledDiv = _styled("div").withConfig({
|
|
19
|
-
displayName: "common-cell___StyledDiv",
|
|
20
|
-
componentId: "t3yvaw-0"
|
|
21
|
-
})(["", ""], commonStyles);
|
|
22
|
-
|
|
23
19
|
/**
|
|
24
20
|
* __Common cell__
|
|
25
21
|
*/
|
|
@@ -28,11 +24,12 @@ var CommonCell = function CommonCell(_ref) {
|
|
|
28
24
|
width = _ref.width,
|
|
29
25
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
30
26
|
|
|
31
|
-
return jsx(
|
|
27
|
+
return jsx("div", _extends({}, props, {
|
|
32
28
|
style: {
|
|
33
29
|
'--indent': indent,
|
|
34
30
|
width: width
|
|
35
|
-
}
|
|
31
|
+
},
|
|
32
|
+
css: commonStyles
|
|
36
33
|
}));
|
|
37
34
|
};
|
|
38
35
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
import _styled from "styled-components";
|
|
4
3
|
var _excluded = ["isSingleLine"];
|
|
4
|
+
|
|
5
|
+
/** @jsx jsx */
|
|
5
6
|
import { css, jsx } from '@emotion/react';
|
|
6
7
|
var overflowContainerStyles = css({
|
|
7
8
|
overflow: 'hidden',
|
|
@@ -12,21 +13,14 @@ var overflowContainerStyles = css({
|
|
|
12
13
|
* __Overflow container__
|
|
13
14
|
*/
|
|
14
15
|
|
|
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
|
-
|
|
22
16
|
var OverflowContainer = function OverflowContainer(_ref) {
|
|
23
17
|
var isSingleLine = _ref.isSingleLine,
|
|
24
18
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
25
19
|
|
|
26
20
|
return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
27
|
-
jsx(
|
|
28
|
-
|
|
29
|
-
}))
|
|
21
|
+
jsx("span", _extends({
|
|
22
|
+
css: isSingleLine && overflowContainerStyles
|
|
23
|
+
}, props))
|
|
30
24
|
);
|
|
31
25
|
};
|
|
32
26
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
import
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
3
|
var _excluded = ["isRoot"];
|
|
4
|
+
|
|
5
|
+
/** @jsx jsx */
|
|
5
6
|
import { css, jsx } from '@emotion/react';
|
|
6
7
|
import { N30, N800 } from '@atlaskit/theme/colors';
|
|
7
8
|
export var iconColor = "var(--ds-text, ".concat(N800, ")");
|
|
@@ -13,14 +14,11 @@ var treeRowContainerStyles = css({
|
|
|
13
14
|
* __Tree row container__
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
|
-
var _StyledDiv = _styled("div").withConfig({
|
|
17
|
-
displayName: "styled___StyledDiv",
|
|
18
|
-
componentId: "sc-8rz2kg-0"
|
|
19
|
-
})(["", ""], treeRowContainerStyles);
|
|
20
|
-
|
|
21
17
|
export var TreeRowContainer = function TreeRowContainer(props) {
|
|
22
18
|
return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
23
|
-
jsx(
|
|
19
|
+
jsx("div", _extends({
|
|
20
|
+
css: treeRowContainerStyles
|
|
21
|
+
}, props))
|
|
24
22
|
);
|
|
25
23
|
};
|
|
26
24
|
var commonChevronContainerStyles = css({
|
|
@@ -34,14 +32,11 @@ var commonChevronContainerStyles = css({
|
|
|
34
32
|
* __Chevron container__
|
|
35
33
|
*/
|
|
36
34
|
|
|
37
|
-
var _StyledSpan = _styled("span").withConfig({
|
|
38
|
-
displayName: "styled___StyledSpan",
|
|
39
|
-
componentId: "sc-8rz2kg-1"
|
|
40
|
-
})(["", ""], commonChevronContainerStyles);
|
|
41
|
-
|
|
42
35
|
export var ChevronContainer = function ChevronContainer(props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
43
36
|
) {
|
|
44
|
-
return jsx(
|
|
37
|
+
return jsx("span", _extends({}, props, {
|
|
38
|
+
css: commonChevronContainerStyles
|
|
39
|
+
}));
|
|
45
40
|
};
|
|
46
41
|
var chevronIconContainerStyles = css({
|
|
47
42
|
position: 'relative',
|
|
@@ -53,14 +48,11 @@ var chevronIconContainerStyles = css({
|
|
|
53
48
|
* A chevron icon container.
|
|
54
49
|
*/
|
|
55
50
|
|
|
56
|
-
var _StyledSpan2 = _styled("span").withConfig({
|
|
57
|
-
displayName: "styled___StyledSpan2",
|
|
58
|
-
componentId: "sc-8rz2kg-2"
|
|
59
|
-
})(["", ""], chevronIconContainerStyles);
|
|
60
|
-
|
|
61
51
|
export var ChevronIconContainer = function ChevronIconContainer(props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
62
52
|
) {
|
|
63
|
-
return jsx(
|
|
53
|
+
return jsx("span", _extends({}, props, {
|
|
54
|
+
css: chevronIconContainerStyles
|
|
55
|
+
}));
|
|
64
56
|
};
|
|
65
57
|
var loadingItemContainerStyles = css({
|
|
66
58
|
width: '100%',
|
|
@@ -75,18 +67,12 @@ var paddingLeftStyles = css({
|
|
|
75
67
|
* A loader item container.
|
|
76
68
|
*/
|
|
77
69
|
|
|
78
|
-
var _StyledSpan3 = _styled("span").withConfig({
|
|
79
|
-
displayName: "styled___StyledSpan3",
|
|
80
|
-
componentId: "sc-8rz2kg-3"
|
|
81
|
-
})(["", ""], function (p) {
|
|
82
|
-
return p._css;
|
|
83
|
-
});
|
|
84
|
-
|
|
85
70
|
export var LoaderItemContainer = function LoaderItemContainer(_ref) {
|
|
86
71
|
var isRoot = _ref.isRoot,
|
|
87
72
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
88
73
|
|
|
89
|
-
return jsx(
|
|
90
|
-
|
|
91
|
-
|
|
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));
|
|
92
78
|
};
|
|
@@ -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.2.
|
|
21
|
+
var packageVersion = "9.2.2";
|
|
22
22
|
|
|
23
23
|
var Row = /*#__PURE__*/function (_Component) {
|
|
24
24
|
_inherits(Row, _Component);
|
package/dist/esm/version.json
CHANGED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CellProps {
|
|
3
|
+
/**
|
|
4
|
+
* Whether the cell contents should wrap or display on a single line and be concatenated.
|
|
5
|
+
*/
|
|
6
|
+
singleLine?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Indent level for the cell. Each indent level adds 25px to the left padding.
|
|
9
|
+
*/
|
|
10
|
+
indentLevel?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Width of the header item. Takes a string or a number representing the width in pixels.
|
|
13
|
+
*/
|
|
14
|
+
width?: number | string;
|
|
15
|
+
/**
|
|
16
|
+
* Class name to apply to cell.
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: {
|
|
21
|
+
new (props: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>): {
|
|
22
|
+
UNSAFE_componentWillMount(): void;
|
|
23
|
+
setColumnWidth(width?: string | number | undefined): void;
|
|
24
|
+
UNSAFE_componentWillReceiveProps(nextProps: import("./internal/with-column-width").CellWithColumnWidthProps): void;
|
|
25
|
+
render(): JSX.Element;
|
|
26
|
+
context: any;
|
|
27
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
28
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
29
|
+
readonly props: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps> & Readonly<{
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
}>;
|
|
32
|
+
state: Readonly<{}>;
|
|
33
|
+
refs: {
|
|
34
|
+
[key: string]: React.ReactInstance;
|
|
35
|
+
};
|
|
36
|
+
componentDidMount?(): void;
|
|
37
|
+
shouldComponentUpdate?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
38
|
+
componentWillUnmount?(): void;
|
|
39
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
40
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, prevState: Readonly<{}>): any;
|
|
41
|
+
componentDidUpdate?(prevProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
42
|
+
componentWillMount?(): void;
|
|
43
|
+
componentWillReceiveProps?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextContext: any): void;
|
|
44
|
+
componentWillUpdate?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
45
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
46
|
+
};
|
|
47
|
+
new (props: CellProps & import("./internal/with-column-width").CellWithColumnWidthProps, context?: any): {
|
|
48
|
+
UNSAFE_componentWillMount(): void;
|
|
49
|
+
setColumnWidth(width?: string | number | undefined): void;
|
|
50
|
+
UNSAFE_componentWillReceiveProps(nextProps: import("./internal/with-column-width").CellWithColumnWidthProps): void;
|
|
51
|
+
render(): JSX.Element;
|
|
52
|
+
context: any;
|
|
53
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
54
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
55
|
+
readonly props: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps> & Readonly<{
|
|
56
|
+
children?: React.ReactNode;
|
|
57
|
+
}>;
|
|
58
|
+
state: Readonly<{}>;
|
|
59
|
+
refs: {
|
|
60
|
+
[key: string]: React.ReactInstance;
|
|
61
|
+
};
|
|
62
|
+
componentDidMount?(): void;
|
|
63
|
+
shouldComponentUpdate?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
64
|
+
componentWillUnmount?(): void;
|
|
65
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
66
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, prevState: Readonly<{}>): any;
|
|
67
|
+
componentDidUpdate?(prevProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
68
|
+
componentWillMount?(): void;
|
|
69
|
+
componentWillReceiveProps?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextContext: any): void;
|
|
70
|
+
componentWillUpdate?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
71
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
72
|
+
};
|
|
73
|
+
contextTypes: {
|
|
74
|
+
tableTree: import("prop-types").Validator<object>;
|
|
75
|
+
};
|
|
76
|
+
contextType?: React.Context<any> | undefined;
|
|
77
|
+
};
|
|
78
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (props: Readonly<any>): {
|
|
4
|
+
UNSAFE_componentWillMount(): void;
|
|
5
|
+
setColumnWidth(width?: string | number | undefined): void;
|
|
6
|
+
UNSAFE_componentWillReceiveProps(nextProps: import("./internal/with-column-width").CellWithColumnWidthProps): void;
|
|
7
|
+
render(): JSX.Element;
|
|
8
|
+
context: any;
|
|
9
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
10
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
11
|
+
readonly props: Readonly<any> & Readonly<{
|
|
12
|
+
children?: import("react").ReactNode;
|
|
13
|
+
}>;
|
|
14
|
+
state: Readonly<{}>;
|
|
15
|
+
refs: {
|
|
16
|
+
[key: string]: import("react").ReactInstance;
|
|
17
|
+
};
|
|
18
|
+
componentDidMount?(): void;
|
|
19
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
20
|
+
componentWillUnmount?(): void;
|
|
21
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
22
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<{}>): any;
|
|
23
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
24
|
+
componentWillMount?(): void;
|
|
25
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
26
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<{}>, nextContext: any): void;
|
|
27
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<{}>, nextContext: any): void;
|
|
28
|
+
};
|
|
29
|
+
new (props: any, context?: any): {
|
|
30
|
+
UNSAFE_componentWillMount(): void;
|
|
31
|
+
setColumnWidth(width?: string | number | undefined): void;
|
|
32
|
+
UNSAFE_componentWillReceiveProps(nextProps: import("./internal/with-column-width").CellWithColumnWidthProps): void;
|
|
33
|
+
render(): JSX.Element;
|
|
34
|
+
context: any;
|
|
35
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
36
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
37
|
+
readonly props: Readonly<any> & Readonly<{
|
|
38
|
+
children?: import("react").ReactNode;
|
|
39
|
+
}>;
|
|
40
|
+
state: Readonly<{}>;
|
|
41
|
+
refs: {
|
|
42
|
+
[key: string]: import("react").ReactInstance;
|
|
43
|
+
};
|
|
44
|
+
componentDidMount?(): void;
|
|
45
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
46
|
+
componentWillUnmount?(): void;
|
|
47
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
48
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<{}>): any;
|
|
49
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
50
|
+
componentWillMount?(): void;
|
|
51
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
52
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<{}>, nextContext: any): void;
|
|
53
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<{}>, nextContext: any): void;
|
|
54
|
+
};
|
|
55
|
+
contextTypes: {
|
|
56
|
+
tableTree: import("prop-types").Validator<object>;
|
|
57
|
+
};
|
|
58
|
+
contextType?: import("react").Context<any> | undefined;
|
|
59
|
+
};
|
|
60
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
interface ChevronProps {
|
|
3
|
+
expandLabel: string;
|
|
4
|
+
collapseLabel: string;
|
|
5
|
+
isExpanded?: boolean;
|
|
6
|
+
ariaControls?: string;
|
|
7
|
+
onExpandToggle?: Function;
|
|
8
|
+
}
|
|
9
|
+
export default class Chevron extends Component<ChevronProps> {
|
|
10
|
+
static defaultProps: {
|
|
11
|
+
expandLabel: string;
|
|
12
|
+
collapseLabel: string;
|
|
13
|
+
};
|
|
14
|
+
handleClick: () => void;
|
|
15
|
+
render(): JSX.Element;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { FC, HTMLAttributes } from 'react';
|
|
3
|
+
interface CommonCellProps {
|
|
4
|
+
indent?: string;
|
|
5
|
+
width?: string | number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* __Common cell__
|
|
9
|
+
*/
|
|
10
|
+
declare const CommonCell: FC<HTMLAttributes<HTMLDivElement> & CommonCellProps>;
|
|
11
|
+
export default CommonCell;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { Component } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
export default class Item extends Component<any> {
|
|
5
|
+
static defaultProps: {
|
|
6
|
+
depth: number;
|
|
7
|
+
};
|
|
8
|
+
render(): import("react").FunctionComponentElement<{
|
|
9
|
+
depth: any;
|
|
10
|
+
data: any;
|
|
11
|
+
renderChildren: () => jsx.JSX.Element;
|
|
12
|
+
}> | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
interface ItemsProps<Item = any> {
|
|
3
|
+
parentData?: any;
|
|
4
|
+
depth: number;
|
|
5
|
+
items?: Item[];
|
|
6
|
+
render: (arg: Item) => React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
interface State {
|
|
9
|
+
isLoaderShown: boolean;
|
|
10
|
+
}
|
|
11
|
+
export default class Items<Item> extends Component<ItemsProps<Item>, State> {
|
|
12
|
+
static defaultProps: {
|
|
13
|
+
depth: number;
|
|
14
|
+
};
|
|
15
|
+
state: State;
|
|
16
|
+
static getDerivedStateFromProps(nextProps: any, prevState: any): {
|
|
17
|
+
isLoaderShown: boolean;
|
|
18
|
+
} | null;
|
|
19
|
+
handleLoaderComplete: () => void;
|
|
20
|
+
renderLoader(): JSX.Element;
|
|
21
|
+
renderItems(): JSX.Element[] | undefined;
|
|
22
|
+
render(): JSX.Element;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
interface LoaderItemProps {
|
|
3
|
+
depth: number;
|
|
4
|
+
onComplete: (...args: any[]) => void;
|
|
5
|
+
isCompleting?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export default class LoaderItem extends Component<LoaderItemProps, any> {
|
|
8
|
+
static defaultProps: {
|
|
9
|
+
depth: number;
|
|
10
|
+
};
|
|
11
|
+
state: {
|
|
12
|
+
phase: string;
|
|
13
|
+
};
|
|
14
|
+
static getDerivedStateFromProps(nextProps: any, prevState: any): {
|
|
15
|
+
phase: string;
|
|
16
|
+
} | null;
|
|
17
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
18
|
+
render(): JSX.Element | null;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { FC, HTMLAttributes } from 'react';
|
|
3
|
+
interface OverflowContainerProps {
|
|
4
|
+
isSingleLine?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* __Overflow container__
|
|
8
|
+
*/
|
|
9
|
+
declare const OverflowContainer: FC<OverflowContainerProps & HTMLAttributes<HTMLSpanElement>>;
|
|
10
|
+
export default OverflowContainer;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { FC, HTMLAttributes } from 'react';
|
|
3
|
+
export declare const iconColor: "var(--ds-text)";
|
|
4
|
+
/**
|
|
5
|
+
* __Tree row container__
|
|
6
|
+
*/
|
|
7
|
+
export declare const TreeRowContainer: FC<HTMLAttributes<HTMLDivElement>>;
|
|
8
|
+
/**
|
|
9
|
+
* __Chevron container__
|
|
10
|
+
*/
|
|
11
|
+
export declare const ChevronContainer: FC<HTMLAttributes<HTMLSpanElement>>;
|
|
12
|
+
/**
|
|
13
|
+
* __Chevron icon container__
|
|
14
|
+
*
|
|
15
|
+
* A chevron icon container.
|
|
16
|
+
*/
|
|
17
|
+
export declare const ChevronIconContainer: FC<HTMLAttributes<HTMLSpanElement>>;
|
|
18
|
+
/**
|
|
19
|
+
* __Loader item container__
|
|
20
|
+
*
|
|
21
|
+
* A loader item container.
|
|
22
|
+
*/
|
|
23
|
+
export declare const LoaderItemContainer: FC<{
|
|
24
|
+
isRoot?: boolean;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
export interface CellWithColumnWidthProps {
|
|
4
|
+
width?: number | string;
|
|
5
|
+
columnIndex?: number;
|
|
6
|
+
}
|
|
7
|
+
export default function withColumnWidth<T extends object>(Cell: React.ComponentType<T>): {
|
|
8
|
+
new (props: Readonly<T & CellWithColumnWidthProps>): {
|
|
9
|
+
UNSAFE_componentWillMount(): void;
|
|
10
|
+
setColumnWidth(width?: string | number | undefined): void;
|
|
11
|
+
UNSAFE_componentWillReceiveProps(nextProps: CellWithColumnWidthProps): void;
|
|
12
|
+
render(): JSX.Element;
|
|
13
|
+
context: any;
|
|
14
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<T & CellWithColumnWidthProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
15
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
16
|
+
readonly props: Readonly<T & CellWithColumnWidthProps> & Readonly<{
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}>;
|
|
19
|
+
state: Readonly<{}>;
|
|
20
|
+
refs: {
|
|
21
|
+
[key: string]: React.ReactInstance;
|
|
22
|
+
};
|
|
23
|
+
componentDidMount?(): void;
|
|
24
|
+
shouldComponentUpdate?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
25
|
+
componentWillUnmount?(): void;
|
|
26
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
27
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<T & CellWithColumnWidthProps>, prevState: Readonly<{}>): any;
|
|
28
|
+
componentDidUpdate?(prevProps: Readonly<T & CellWithColumnWidthProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
29
|
+
componentWillMount?(): void;
|
|
30
|
+
componentWillReceiveProps?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextContext: any): void;
|
|
31
|
+
componentWillUpdate?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
32
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
33
|
+
};
|
|
34
|
+
new (props: T & CellWithColumnWidthProps, context?: any): {
|
|
35
|
+
UNSAFE_componentWillMount(): void;
|
|
36
|
+
setColumnWidth(width?: string | number | undefined): void;
|
|
37
|
+
UNSAFE_componentWillReceiveProps(nextProps: CellWithColumnWidthProps): void;
|
|
38
|
+
render(): JSX.Element;
|
|
39
|
+
context: any;
|
|
40
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<T & CellWithColumnWidthProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
41
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
42
|
+
readonly props: Readonly<T & CellWithColumnWidthProps> & Readonly<{
|
|
43
|
+
children?: React.ReactNode;
|
|
44
|
+
}>;
|
|
45
|
+
state: Readonly<{}>;
|
|
46
|
+
refs: {
|
|
47
|
+
[key: string]: React.ReactInstance;
|
|
48
|
+
};
|
|
49
|
+
componentDidMount?(): void;
|
|
50
|
+
shouldComponentUpdate?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
51
|
+
componentWillUnmount?(): void;
|
|
52
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
53
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<T & CellWithColumnWidthProps>, prevState: Readonly<{}>): any;
|
|
54
|
+
componentDidUpdate?(prevProps: Readonly<T & CellWithColumnWidthProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
55
|
+
componentWillMount?(): void;
|
|
56
|
+
componentWillReceiveProps?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextContext: any): void;
|
|
57
|
+
componentWillUpdate?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
58
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
59
|
+
};
|
|
60
|
+
contextTypes: {
|
|
61
|
+
tableTree: PropTypes.Validator<object>;
|
|
62
|
+
};
|
|
63
|
+
contextType?: React.Context<any> | undefined;
|
|
64
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
declare class Row extends Component<any, any> {
|
|
3
|
+
state: {
|
|
4
|
+
isExpanded: any;
|
|
5
|
+
};
|
|
6
|
+
componentDidUpdate(prevProps: any): void;
|
|
7
|
+
onExpandStateChange(isExpanded: boolean): void;
|
|
8
|
+
onExpandToggle: () => void;
|
|
9
|
+
isExpanded(): any;
|
|
10
|
+
renderCell(cell: any, cellIndex: number): React.FunctionComponentElement<{
|
|
11
|
+
key: number;
|
|
12
|
+
columnIndex: number;
|
|
13
|
+
indentLevel: any;
|
|
14
|
+
}>;
|
|
15
|
+
render(): JSX.Element;
|
|
16
|
+
}
|
|
17
|
+
export { Row as RowWithoutAnalytics };
|
|
18
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<any, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, string | number | symbol> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, string | number | symbol> & React.RefAttributes<any>>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
declare type WithChildren<T> = T & {
|
|
3
|
+
children?: T[] | null;
|
|
4
|
+
};
|
|
5
|
+
export interface RowsProps<T> {
|
|
6
|
+
items?: WithChildren<T>[];
|
|
7
|
+
render: (args: WithChildren<T>) => React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export default class Rows<T> extends Component<RowsProps<T>> {
|
|
10
|
+
render(): JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
interface State {
|
|
4
|
+
columnWidths: number[];
|
|
5
|
+
}
|
|
6
|
+
export default class TableTree extends Component<any, State> {
|
|
7
|
+
static childContextTypes: {
|
|
8
|
+
tableTree: PropTypes.Validator<object>;
|
|
9
|
+
};
|
|
10
|
+
state: State;
|
|
11
|
+
componentDidMount(): void;
|
|
12
|
+
setColumnWidth: (columnIndex: number, width: number) => void;
|
|
13
|
+
getColumnWidth: (columnIndex: any) => number | null;
|
|
14
|
+
getChildContext(): {
|
|
15
|
+
tableTree: {
|
|
16
|
+
columnWidths: number[];
|
|
17
|
+
setColumnWidth: (columnIndex: number, width: number) => void;
|
|
18
|
+
getColumnWidth: (columnIndex: any) => number | null;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
render(): JSX.Element;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default } from './components/table-tree';
|
|
2
|
+
export { default as Headers } from './components/headers';
|
|
3
|
+
export { default as Header } from './components/header';
|
|
4
|
+
export { default as Cell } from './components/cell';
|
|
5
|
+
export { default as Rows } from './components/rows';
|
|
6
|
+
export { default as Row } from './components/row';
|
|
7
|
+
export { default as TableTreeDataHelper } from './utils/table-tree-data-helper';
|
|
8
|
+
export type { CellWithColumnWidthProps } from './components/internal/with-column-width';
|
|
9
|
+
export type { CellProps } from './components/cell';
|
|
10
|
+
export type { RowsProps } from './components/rows';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This helper class will create a cache of all the id's in the items object and
|
|
3
|
+
* path to the object.
|
|
4
|
+
* Example:
|
|
5
|
+
* [{
|
|
6
|
+
* // item 1,
|
|
7
|
+
* id: 1,
|
|
8
|
+
* children:[{
|
|
9
|
+
* // item 1.1,
|
|
10
|
+
* id: '2'
|
|
11
|
+
* }]
|
|
12
|
+
* }]
|
|
13
|
+
*
|
|
14
|
+
* Cache will look something like:
|
|
15
|
+
* {1: 0, 2: '0.children[0]'}
|
|
16
|
+
*/
|
|
17
|
+
export default class TableTreeDataHelper<T extends any = any> {
|
|
18
|
+
key: keyof T;
|
|
19
|
+
keysCache: any;
|
|
20
|
+
constructor({ key }?: {
|
|
21
|
+
key?: keyof T | undefined;
|
|
22
|
+
});
|
|
23
|
+
updateItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
|
|
24
|
+
appendItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function toItemId(id: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table-tree",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.2",
|
|
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/"
|
|
@@ -12,10 +12,19 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.0 <4.5": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.0/*",
|
|
19
|
+
"dist/types-ts4.0/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.tsx",
|
|
17
25
|
"homepage": "https://atlassian.design/components/table-tree/",
|
|
18
26
|
"atlassian": {
|
|
27
|
+
"disableProductCI": true,
|
|
19
28
|
"team": "Design System Team",
|
|
20
29
|
"releaseModel": "scheduled",
|
|
21
30
|
"website": {
|
|
@@ -29,7 +38,7 @@
|
|
|
29
38
|
"dependencies": {
|
|
30
39
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
31
40
|
"@atlaskit/button": "^16.3.0",
|
|
32
|
-
"@atlaskit/icon": "^21.
|
|
41
|
+
"@atlaskit/icon": "^21.11.0",
|
|
33
42
|
"@atlaskit/spinner": "^15.0.0",
|
|
34
43
|
"@atlaskit/theme": "^12.2.0",
|
|
35
44
|
"@atlaskit/tokens": "^0.10.0",
|
|
@@ -45,7 +54,7 @@
|
|
|
45
54
|
"@atlaskit/docs": "*",
|
|
46
55
|
"@atlaskit/ds-lib": "^2.0.1",
|
|
47
56
|
"@atlaskit/empty-state": "^7.4.0",
|
|
48
|
-
"@atlaskit/section-message": "^6.
|
|
57
|
+
"@atlaskit/section-message": "^6.3.0",
|
|
49
58
|
"@atlaskit/select": "^15.7.0",
|
|
50
59
|
"@atlaskit/ssr": "*",
|
|
51
60
|
"@atlaskit/visual-regression": "*",
|
|
@@ -77,6 +86,7 @@
|
|
|
77
86
|
"emotion"
|
|
78
87
|
],
|
|
79
88
|
"analytics": "analytics-next",
|
|
89
|
+
"design-tokens": "spacing",
|
|
80
90
|
"theming": "tokens",
|
|
81
91
|
"deprecation": "no-deprecated-imports"
|
|
82
92
|
}
|
package/report.api.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/table-tree"
|
|
1
|
+
## API Report File for "@atlaskit/table-tree".
|
|
2
2
|
|
|
3
|
-
> Do not edit this file.
|
|
3
|
+
> Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
4
6
|
|
|
5
7
|
```ts
|
|
6
8
|
/// <reference types="react" />
|
|
@@ -8,6 +10,7 @@
|
|
|
8
10
|
import { Component } from 'react';
|
|
9
11
|
import { Context } from 'react';
|
|
10
12
|
import { ErrorInfo } from 'react';
|
|
13
|
+
import { jsx } from '@emotion/react';
|
|
11
14
|
import PropTypes from 'prop-types';
|
|
12
15
|
import { default as React_2 } from 'react';
|
|
13
16
|
import { ReactInstance } from 'react';
|
|
@@ -291,7 +294,7 @@ export declare const Header: {
|
|
|
291
294
|
};
|
|
292
295
|
|
|
293
296
|
declare class Headers_2 extends Component<any> {
|
|
294
|
-
render(): JSX.Element;
|
|
297
|
+
render(): jsx.JSX.Element;
|
|
295
298
|
}
|
|
296
299
|
export { Headers_2 as Headers };
|
|
297
300
|
|