@atlaskit/table-tree 9.0.15 → 9.1.3
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 +39 -0
- package/dist/cjs/components/cell.js +3 -1
- package/dist/cjs/components/header.js +1 -1
- package/dist/cjs/components/headers.js +1 -1
- package/dist/cjs/components/internal/common-cell.js +3 -3
- package/dist/cjs/components/internal/overflow-container.js +7 -5
- package/dist/cjs/components/internal/styled.js +15 -10
- package/dist/cjs/components/internal/with-column-width.js +3 -1
- package/dist/cjs/components/row.js +1 -1
- package/dist/cjs/utils/table-tree-data-helper.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/header.js +1 -3
- package/dist/es2019/components/headers.js +1 -1
- package/dist/es2019/components/internal/common-cell.js +1 -1
- package/dist/es2019/components/internal/loader-item.js +0 -2
- package/dist/es2019/components/internal/overflow-container.js +2 -1
- package/dist/es2019/components/internal/styled.js +10 -6
- package/dist/es2019/components/row.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/cell.js +2 -1
- package/dist/esm/components/header.js +1 -3
- package/dist/esm/components/headers.js +1 -1
- package/dist/esm/components/internal/common-cell.js +3 -2
- package/dist/esm/components/internal/loader-item.js +0 -2
- package/dist/esm/components/internal/overflow-container.js +7 -4
- package/dist/esm/components/internal/styled.js +15 -9
- package/dist/esm/components/internal/with-column-width.js +2 -1
- package/dist/esm/components/row.js +1 -1
- package/dist/esm/utils/table-tree-data-helper.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/components/internal/styled.d.ts +1 -1
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @atlaskit/table-tree
|
|
2
2
|
|
|
3
|
+
## 9.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`58884c2f6c1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/58884c2f6c1) - Internal code change turning on a new linting rule.
|
|
8
|
+
|
|
9
|
+
## 9.1.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 9.1.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
22
|
+
## 9.1.0
|
|
23
|
+
|
|
24
|
+
### Minor Changes
|
|
25
|
+
|
|
26
|
+
- [`4dd20cb2110`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4dd20cb2110) - **Note**: It is a re-release of the wrongly `patched` version `21.9.2` that should have been a `minor` release.
|
|
27
|
+
|
|
28
|
+
Package has been migrated from `styled-components` to `@emotion/core`.
|
|
29
|
+
|
|
30
|
+
Other internal changes:
|
|
31
|
+
|
|
32
|
+
- Package has been migrated to typescript
|
|
33
|
+
- Components now have partial type support.
|
|
34
|
+
- Package internally supports `@atlaskit/tokens` colors.
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies
|
|
39
|
+
|
|
3
40
|
## 9.0.15
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
|
@@ -16,6 +53,8 @@
|
|
|
16
53
|
|
|
17
54
|
### Minor Changes
|
|
18
55
|
|
|
56
|
+
_WRONG RELEASE TYPE - DON'T USE_
|
|
57
|
+
|
|
19
58
|
- [`3fe03999326`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fe03999326) - Package has been migrated from `styled-components` to `@emotion/core`.
|
|
20
59
|
|
|
21
60
|
Other internal changes:
|
|
@@ -31,6 +31,8 @@ var _overflowContainer = _interopRequireDefault(require("./internal/overflow-con
|
|
|
31
31
|
|
|
32
32
|
var _withColumnWidth = _interopRequireDefault(require("./internal/with-column-width"));
|
|
33
33
|
|
|
34
|
+
var _excluded = ["children", "singleLine", "indentLevel", "width", "className"];
|
|
35
|
+
|
|
34
36
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
37
|
|
|
36
38
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -58,7 +60,7 @@ var Cell = /*#__PURE__*/function (_Component) {
|
|
|
58
60
|
indentLevel = _this$props.indentLevel,
|
|
59
61
|
width = _this$props.width,
|
|
60
62
|
className = _this$props.className,
|
|
61
|
-
props = (0, _objectWithoutProperties2.default)(_this$props,
|
|
63
|
+
props = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
|
|
62
64
|
return /*#__PURE__*/_react.default.createElement(_commonCell.default, (0, _extends2.default)({
|
|
63
65
|
role: "gridcell",
|
|
64
66
|
indent: indentLevel ? "".concat(25 * indentLevel, "px") : undefined,
|
|
@@ -34,7 +34,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
34
34
|
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
35
|
|
|
36
36
|
var headerStyles = (0, _core.css)({
|
|
37
|
-
color: "var(--ds-text-
|
|
37
|
+
color: "var(--ds-text-subtle, ".concat(_colors.N300, ")"),
|
|
38
38
|
fontSize: 12,
|
|
39
39
|
fontWeight: 'bold',
|
|
40
40
|
letterSpacing: -0.1,
|
|
@@ -27,7 +27,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
27
27
|
|
|
28
28
|
var containerStyles = (0, _core.css)({
|
|
29
29
|
display: 'flex',
|
|
30
|
-
borderBottom: "solid 2px ".concat("var(--ds-border
|
|
30
|
+
borderBottom: "solid 2px ".concat("var(--ds-border, #dfe1e6)")
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
var Headers = /*#__PURE__*/function (_Component) {
|
|
@@ -15,7 +15,7 @@ var _core = require("@emotion/core");
|
|
|
15
15
|
|
|
16
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
var _excluded = ["indent", "width"];
|
|
19
19
|
var commonStyles = (0, _core.css)({
|
|
20
20
|
display: 'flex',
|
|
21
21
|
boxSizing: 'border-box',
|
|
@@ -23,7 +23,7 @@ var commonStyles = (0, _core.css)({
|
|
|
23
23
|
padding: '10px 25px 10px var(--indent, 25px)',
|
|
24
24
|
position: 'relative',
|
|
25
25
|
alignItems: 'flex-start',
|
|
26
|
-
color: "var(--ds-text
|
|
26
|
+
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
27
27
|
lineHeight: '20px'
|
|
28
28
|
});
|
|
29
29
|
|
|
@@ -33,7 +33,7 @@ var commonStyles = (0, _core.css)({
|
|
|
33
33
|
var CommonCell = function CommonCell(_ref) {
|
|
34
34
|
var indent = _ref.indent,
|
|
35
35
|
width = _ref.width,
|
|
36
|
-
props = (0, _objectWithoutProperties2.default)(_ref,
|
|
36
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
37
37
|
return (0, _core.jsx)("div", (0, _extends2.default)({}, props, {
|
|
38
38
|
style: {
|
|
39
39
|
'--indent': indent,
|
|
@@ -13,7 +13,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
13
13
|
|
|
14
14
|
var _core = require("@emotion/core");
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
var _excluded = ["isSingleLine"];
|
|
17
17
|
var overflowContainerStyles = (0, _core.css)({
|
|
18
18
|
overflow: 'hidden',
|
|
19
19
|
textOverflow: 'ellipsis',
|
|
@@ -25,10 +25,12 @@ var overflowContainerStyles = (0, _core.css)({
|
|
|
25
25
|
|
|
26
26
|
var OverflowContainer = function OverflowContainer(_ref) {
|
|
27
27
|
var isSingleLine = _ref.isSingleLine,
|
|
28
|
-
props = (0, _objectWithoutProperties2.default)(_ref,
|
|
29
|
-
return (
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
29
|
+
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))
|
|
33
|
+
);
|
|
32
34
|
};
|
|
33
35
|
|
|
34
36
|
var _default = OverflowContainer;
|
|
@@ -15,21 +15,23 @@ var _core = require("@emotion/core");
|
|
|
15
15
|
|
|
16
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
var iconColor = "var(--ds-text
|
|
18
|
+
var _excluded = ["isRoot"];
|
|
19
|
+
var iconColor = "var(--ds-text, ".concat(_colors.N800, ")");
|
|
20
20
|
exports.iconColor = iconColor;
|
|
21
21
|
var treeRowContainerStyles = (0, _core.css)({
|
|
22
22
|
display: 'flex',
|
|
23
|
-
borderBottom: "1px solid ".concat("var(--ds-border
|
|
23
|
+
borderBottom: "1px solid ".concat("var(--ds-border, ".concat(_colors.N30, ")"))
|
|
24
24
|
});
|
|
25
25
|
/**
|
|
26
26
|
* __Tree row container__
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
29
|
var TreeRowContainer = function TreeRowContainer(props) {
|
|
30
|
-
return (
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
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))
|
|
34
|
+
);
|
|
33
35
|
};
|
|
34
36
|
|
|
35
37
|
exports.TreeRowContainer = TreeRowContainer;
|
|
@@ -44,7 +46,8 @@ var commonChevronContainerStyles = (0, _core.css)({
|
|
|
44
46
|
* __Chevron container__
|
|
45
47
|
*/
|
|
46
48
|
|
|
47
|
-
var ChevronContainer = function ChevronContainer(props
|
|
49
|
+
var ChevronContainer = function ChevronContainer(props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
50
|
+
) {
|
|
48
51
|
return (0, _core.jsx)("span", (0, _extends2.default)({}, props, {
|
|
49
52
|
css: commonChevronContainerStyles
|
|
50
53
|
}));
|
|
@@ -61,7 +64,8 @@ var chevronIconContainerStyles = (0, _core.css)({
|
|
|
61
64
|
* A chevron icon container.
|
|
62
65
|
*/
|
|
63
66
|
|
|
64
|
-
var ChevronIconContainer = function ChevronIconContainer(props
|
|
67
|
+
var ChevronIconContainer = function ChevronIconContainer(props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
68
|
+
) {
|
|
65
69
|
return (0, _core.jsx)("span", (0, _extends2.default)({}, props, {
|
|
66
70
|
css: chevronIconContainerStyles
|
|
67
71
|
}));
|
|
@@ -83,9 +87,10 @@ var paddingLeftStyles = (0, _core.css)({
|
|
|
83
87
|
|
|
84
88
|
var LoaderItemContainer = function LoaderItemContainer(_ref) {
|
|
85
89
|
var isRoot = _ref.isRoot,
|
|
86
|
-
props = (0, _objectWithoutProperties2.default)(_ref,
|
|
90
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
87
91
|
return (0, _core.jsx)("span", (0, _extends2.default)({
|
|
88
|
-
css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles]
|
|
92
|
+
css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles] // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
93
|
+
|
|
89
94
|
}, props));
|
|
90
95
|
};
|
|
91
96
|
|
|
@@ -29,6 +29,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
29
29
|
|
|
30
30
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
31
31
|
|
|
32
|
+
var _excluded = ["width", "columnIndex"];
|
|
33
|
+
|
|
32
34
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
35
|
|
|
34
36
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -73,7 +75,7 @@ function withColumnWidth(Cell) {
|
|
|
73
75
|
var _this$props = this.props,
|
|
74
76
|
width = _this$props.width,
|
|
75
77
|
columnIndex = _this$props.columnIndex,
|
|
76
|
-
other = (0, _objectWithoutProperties2.default)(_this$props,
|
|
78
|
+
other = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
|
|
77
79
|
var columnWidth = width !== null && width !== undefined ? width : this.context.tableTree.getColumnWidth(columnIndex);
|
|
78
80
|
return /*#__PURE__*/_react.default.createElement(Cell, (0, _extends2.default)({
|
|
79
81
|
width: columnWidth
|
|
@@ -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.
|
|
47
|
+
var packageVersion = "9.1.3";
|
|
48
48
|
|
|
49
49
|
var Row = /*#__PURE__*/function (_Component) {
|
|
50
50
|
(0, _inherits2.default)(Row, _Component);
|
|
@@ -19,9 +19,9 @@ var _get = _interopRequireDefault(require("lodash/get"));
|
|
|
19
19
|
|
|
20
20
|
var _set = _interopRequireDefault(require("lodash/set"));
|
|
21
21
|
|
|
22
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
22
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23
23
|
|
|
24
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
24
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
25
25
|
|
|
26
26
|
function updateRootItems(rootItems) {
|
|
27
27
|
var allItems = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
|
|
5
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
6
4
|
import { Component } from 'react';
|
|
7
5
|
import { css, jsx } from '@emotion/core';
|
|
8
6
|
import { N300 } from '@atlaskit/theme/colors';
|
|
9
7
|
import ColumnCell from './internal/common-cell';
|
|
10
8
|
import withColumnWidth from './internal/with-column-width';
|
|
11
9
|
const headerStyles = css({
|
|
12
|
-
color: `var(--ds-text-
|
|
10
|
+
color: `var(--ds-text-subtle, ${N300})`,
|
|
13
11
|
fontSize: 12,
|
|
14
12
|
fontWeight: 'bold',
|
|
15
13
|
letterSpacing: -0.1,
|
|
@@ -5,7 +5,7 @@ import { Children, cloneElement, Component } from 'react';
|
|
|
5
5
|
import { css, jsx } from '@emotion/core';
|
|
6
6
|
const containerStyles = css({
|
|
7
7
|
display: 'flex',
|
|
8
|
-
borderBottom: `solid 2px ${"var(--ds-border
|
|
8
|
+
borderBottom: `solid 2px ${"var(--ds-border, #dfe1e6)"}`
|
|
9
9
|
});
|
|
10
10
|
export default class Headers extends Component {
|
|
11
11
|
render() {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
4
|
-
|
|
5
3
|
/* eslint-disable react/prop-types */
|
|
6
4
|
import React, { Component } from 'react';
|
|
7
5
|
import Spinner from '@atlaskit/spinner';
|
|
@@ -14,7 +14,8 @@ const overflowContainerStyles = css({
|
|
|
14
14
|
const OverflowContainer = ({
|
|
15
15
|
isSingleLine,
|
|
16
16
|
...props
|
|
17
|
-
}) =>
|
|
17
|
+
}) => // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
18
|
+
jsx("span", _extends({
|
|
18
19
|
css: isSingleLine && overflowContainerStyles
|
|
19
20
|
}, props));
|
|
20
21
|
|
|
@@ -3,16 +3,17 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { css, jsx } from '@emotion/core';
|
|
5
5
|
import { N30, N800 } from '@atlaskit/theme/colors';
|
|
6
|
-
export const iconColor = `var(--ds-text
|
|
6
|
+
export const iconColor = `var(--ds-text, ${N800})`;
|
|
7
7
|
const treeRowContainerStyles = css({
|
|
8
8
|
display: 'flex',
|
|
9
|
-
borderBottom: `1px solid ${`var(--ds-border
|
|
9
|
+
borderBottom: `1px solid ${`var(--ds-border, ${N30})`}`
|
|
10
10
|
});
|
|
11
11
|
/**
|
|
12
12
|
* __Tree row container__
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
export const TreeRowContainer = props =>
|
|
15
|
+
export const TreeRowContainer = props => // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
16
|
+
jsx("div", _extends({
|
|
16
17
|
css: treeRowContainerStyles
|
|
17
18
|
}, props));
|
|
18
19
|
const commonChevronContainerStyles = css({
|
|
@@ -26,7 +27,8 @@ const commonChevronContainerStyles = css({
|
|
|
26
27
|
* __Chevron container__
|
|
27
28
|
*/
|
|
28
29
|
|
|
29
|
-
export const ChevronContainer = props
|
|
30
|
+
export const ChevronContainer = (props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
31
|
+
) => jsx("span", _extends({}, props, {
|
|
30
32
|
css: commonChevronContainerStyles
|
|
31
33
|
}));
|
|
32
34
|
const chevronIconContainerStyles = css({
|
|
@@ -39,7 +41,8 @@ const chevronIconContainerStyles = css({
|
|
|
39
41
|
* A chevron icon container.
|
|
40
42
|
*/
|
|
41
43
|
|
|
42
|
-
export const ChevronIconContainer = props
|
|
44
|
+
export const ChevronIconContainer = (props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
45
|
+
) => jsx("span", _extends({}, props, {
|
|
43
46
|
css: chevronIconContainerStyles
|
|
44
47
|
}));
|
|
45
48
|
const loadingItemContainerStyles = css({
|
|
@@ -59,5 +62,6 @@ export const LoaderItemContainer = ({
|
|
|
59
62
|
isRoot,
|
|
60
63
|
...props
|
|
61
64
|
}) => jsx("span", _extends({
|
|
62
|
-
css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles]
|
|
65
|
+
css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles] // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
66
|
+
|
|
63
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.
|
|
11
|
+
const packageVersion = "9.1.3";
|
|
12
12
|
|
|
13
13
|
class Row extends Component {
|
|
14
14
|
constructor(...args) {
|
package/dist/es2019/version.json
CHANGED
|
@@ -5,6 +5,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
|
+
var _excluded = ["children", "singleLine", "indentLevel", "width", "className"];
|
|
8
9
|
|
|
9
10
|
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
11
|
|
|
@@ -35,7 +36,7 @@ var Cell = /*#__PURE__*/function (_Component) {
|
|
|
35
36
|
indentLevel = _this$props.indentLevel,
|
|
36
37
|
width = _this$props.width,
|
|
37
38
|
className = _this$props.className,
|
|
38
|
-
props = _objectWithoutProperties(_this$props,
|
|
39
|
+
props = _objectWithoutProperties(_this$props, _excluded);
|
|
39
40
|
|
|
40
41
|
return /*#__PURE__*/React.createElement(CommonCell, _extends({
|
|
41
42
|
role: "gridcell",
|
|
@@ -10,15 +10,13 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
10
10
|
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; } }
|
|
11
11
|
|
|
12
12
|
/** @jsx jsx */
|
|
13
|
-
|
|
14
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
15
13
|
import { Component } from 'react';
|
|
16
14
|
import { css, jsx } from '@emotion/core';
|
|
17
15
|
import { N300 } from '@atlaskit/theme/colors';
|
|
18
16
|
import ColumnCell from './internal/common-cell';
|
|
19
17
|
import withColumnWidth from './internal/with-column-width';
|
|
20
18
|
var headerStyles = css({
|
|
21
|
-
color: "var(--ds-text-
|
|
19
|
+
color: "var(--ds-text-subtle, ".concat(N300, ")"),
|
|
22
20
|
fontSize: 12,
|
|
23
21
|
fontWeight: 'bold',
|
|
24
22
|
letterSpacing: -0.1,
|
|
@@ -15,7 +15,7 @@ import { Children, cloneElement, Component } from 'react';
|
|
|
15
15
|
import { css, jsx } from '@emotion/core';
|
|
16
16
|
var containerStyles = css({
|
|
17
17
|
display: 'flex',
|
|
18
|
-
borderBottom: "solid 2px ".concat("var(--ds-border
|
|
18
|
+
borderBottom: "solid 2px ".concat("var(--ds-border, #dfe1e6)")
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
var Headers = /*#__PURE__*/function (_Component) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["indent", "width"];
|
|
3
4
|
|
|
4
5
|
/** @jsx jsx */
|
|
5
6
|
import { css, jsx } from '@emotion/core';
|
|
@@ -11,7 +12,7 @@ var commonStyles = css({
|
|
|
11
12
|
padding: '10px 25px 10px var(--indent, 25px)',
|
|
12
13
|
position: 'relative',
|
|
13
14
|
alignItems: 'flex-start',
|
|
14
|
-
color: "var(--ds-text
|
|
15
|
+
color: "var(--ds-text, ".concat(N800, ")"),
|
|
15
16
|
lineHeight: '20px'
|
|
16
17
|
});
|
|
17
18
|
|
|
@@ -21,7 +22,7 @@ var commonStyles = css({
|
|
|
21
22
|
var CommonCell = function CommonCell(_ref) {
|
|
22
23
|
var indent = _ref.indent,
|
|
23
24
|
width = _ref.width,
|
|
24
|
-
props = _objectWithoutProperties(_ref,
|
|
25
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
25
26
|
|
|
26
27
|
return jsx("div", _extends({}, props, {
|
|
27
28
|
style: {
|
|
@@ -10,8 +10,6 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
10
10
|
|
|
11
11
|
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; } }
|
|
12
12
|
|
|
13
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
14
|
-
|
|
15
13
|
/* eslint-disable react/prop-types */
|
|
16
14
|
import React, { Component } from 'react';
|
|
17
15
|
import Spinner from '@atlaskit/spinner';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["isSingleLine"];
|
|
3
4
|
|
|
4
5
|
/** @jsx jsx */
|
|
5
6
|
import { css, jsx } from '@emotion/core';
|
|
@@ -14,11 +15,13 @@ var overflowContainerStyles = css({
|
|
|
14
15
|
|
|
15
16
|
var OverflowContainer = function OverflowContainer(_ref) {
|
|
16
17
|
var isSingleLine = _ref.isSingleLine,
|
|
17
|
-
props = _objectWithoutProperties(_ref,
|
|
18
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
19
|
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
21
|
+
jsx("span", _extends({
|
|
22
|
+
css: isSingleLine && overflowContainerStyles
|
|
23
|
+
}, props))
|
|
24
|
+
);
|
|
22
25
|
};
|
|
23
26
|
|
|
24
27
|
export default OverflowContainer;
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
var _excluded = ["isRoot"];
|
|
3
4
|
|
|
4
5
|
/** @jsx jsx */
|
|
5
6
|
import { css, jsx } from '@emotion/core';
|
|
6
7
|
import { N30, N800 } from '@atlaskit/theme/colors';
|
|
7
|
-
export var iconColor = "var(--ds-text
|
|
8
|
+
export var iconColor = "var(--ds-text, ".concat(N800, ")");
|
|
8
9
|
var treeRowContainerStyles = css({
|
|
9
10
|
display: 'flex',
|
|
10
|
-
borderBottom: "1px solid ".concat("var(--ds-border
|
|
11
|
+
borderBottom: "1px solid ".concat("var(--ds-border, ".concat(N30, ")"))
|
|
11
12
|
});
|
|
12
13
|
/**
|
|
13
14
|
* __Tree row container__
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
export var TreeRowContainer = function TreeRowContainer(props) {
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
19
|
+
jsx("div", _extends({
|
|
20
|
+
css: treeRowContainerStyles
|
|
21
|
+
}, props))
|
|
22
|
+
);
|
|
20
23
|
};
|
|
21
24
|
var commonChevronContainerStyles = css({
|
|
22
25
|
display: 'flex',
|
|
@@ -29,7 +32,8 @@ var commonChevronContainerStyles = css({
|
|
|
29
32
|
* __Chevron container__
|
|
30
33
|
*/
|
|
31
34
|
|
|
32
|
-
export var ChevronContainer = function ChevronContainer(props
|
|
35
|
+
export var ChevronContainer = function ChevronContainer(props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
36
|
+
) {
|
|
33
37
|
return jsx("span", _extends({}, props, {
|
|
34
38
|
css: commonChevronContainerStyles
|
|
35
39
|
}));
|
|
@@ -44,7 +48,8 @@ var chevronIconContainerStyles = css({
|
|
|
44
48
|
* A chevron icon container.
|
|
45
49
|
*/
|
|
46
50
|
|
|
47
|
-
export var ChevronIconContainer = function ChevronIconContainer(props
|
|
51
|
+
export var ChevronIconContainer = function ChevronIconContainer(props // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
52
|
+
) {
|
|
48
53
|
return jsx("span", _extends({}, props, {
|
|
49
54
|
css: chevronIconContainerStyles
|
|
50
55
|
}));
|
|
@@ -64,9 +69,10 @@ var paddingLeftStyles = css({
|
|
|
64
69
|
|
|
65
70
|
export var LoaderItemContainer = function LoaderItemContainer(_ref) {
|
|
66
71
|
var isRoot = _ref.isRoot,
|
|
67
|
-
props = _objectWithoutProperties(_ref,
|
|
72
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
68
73
|
|
|
69
74
|
return jsx("span", _extends({
|
|
70
|
-
css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles]
|
|
75
|
+
css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles] // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
76
|
+
|
|
71
77
|
}, props));
|
|
72
78
|
};
|
|
@@ -6,6 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
+
var _excluded = ["width", "columnIndex"];
|
|
9
10
|
|
|
10
11
|
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); }; }
|
|
11
12
|
|
|
@@ -51,7 +52,7 @@ export default function withColumnWidth(Cell) {
|
|
|
51
52
|
var _this$props = this.props,
|
|
52
53
|
width = _this$props.width,
|
|
53
54
|
columnIndex = _this$props.columnIndex,
|
|
54
|
-
other = _objectWithoutProperties(_this$props,
|
|
55
|
+
other = _objectWithoutProperties(_this$props, _excluded);
|
|
55
56
|
|
|
56
57
|
var columnWidth = width !== null && width !== undefined ? width : this.context.tableTree.getColumnWidth(columnIndex);
|
|
57
58
|
return /*#__PURE__*/React.createElement(Cell, _extends({
|
|
@@ -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.
|
|
21
|
+
var packageVersion = "9.1.3";
|
|
22
22
|
|
|
23
23
|
var Row = /*#__PURE__*/function (_Component) {
|
|
24
24
|
_inherits(Row, _Component);
|
|
@@ -3,9 +3,9 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
5
|
|
|
6
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
6
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
7
|
|
|
8
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
8
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9
9
|
|
|
10
10
|
import get from 'lodash/get';
|
|
11
11
|
import set from 'lodash/set';
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table-tree",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.3",
|
|
4
4
|
"description": "A React Component for displaying expandable tables with tree-like hierarchies",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
29
29
|
"@atlaskit/button": "^16.0.0",
|
|
30
|
-
"@atlaskit/icon": "^21.
|
|
30
|
+
"@atlaskit/icon": "^21.10.0",
|
|
31
31
|
"@atlaskit/spinner": "^15.0.0",
|
|
32
|
-
"@atlaskit/theme": "^12.
|
|
33
|
-
"@atlaskit/tokens": "^0.
|
|
32
|
+
"@atlaskit/theme": "^12.1.0",
|
|
33
|
+
"@atlaskit/tokens": "^0.6.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0",
|
|
35
35
|
"@emotion/core": "^10.0.9",
|
|
36
36
|
"lodash": "^4.17.21",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"react": "^16.8.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@atlaskit/build-utils": "*",
|
|
44
43
|
"@atlaskit/docs": "*",
|
|
45
44
|
"@atlaskit/empty-state": "^7.3.0",
|
|
46
45
|
"@atlaskit/section-message": "^6.0.0",
|