@atlaskit/table-tree 9.0.14 → 9.1.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 +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 +2 -2
- package/dist/cjs/components/internal/styled.js +4 -4
- 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 -1
- package/dist/es2019/components/headers.js +1 -1
- package/dist/es2019/components/internal/common-cell.js +1 -1
- package/dist/es2019/components/internal/styled.js +2 -2
- 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 -1
- package/dist/esm/components/headers.js +1 -1
- package/dist/esm/components/internal/common-cell.js +3 -2
- package/dist/esm/components/internal/overflow-container.js +2 -1
- package/dist/esm/components/internal/styled.js +4 -3
- 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 +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @atlaskit/table-tree
|
|
2
2
|
|
|
3
|
+
## 9.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`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.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 9.1.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 9.1.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- [`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.
|
|
21
|
+
|
|
22
|
+
Package has been migrated from `styled-components` to `@emotion/core`.
|
|
23
|
+
|
|
24
|
+
Other internal changes:
|
|
25
|
+
|
|
26
|
+
- Package has been migrated to typescript
|
|
27
|
+
- Components now have partial type support.
|
|
28
|
+
- Package internally supports `@atlaskit/tokens` colors.
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Updated dependencies
|
|
33
|
+
|
|
34
|
+
## 9.0.15
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
|
|
39
|
+
|
|
3
40
|
## 9.0.14
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
|
@@ -10,6 +47,8 @@
|
|
|
10
47
|
|
|
11
48
|
### Minor Changes
|
|
12
49
|
|
|
50
|
+
_WRONG RELEASE TYPE - DON'T USE_
|
|
51
|
+
|
|
13
52
|
- [`3fe03999326`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fe03999326) - Package has been migrated from `styled-components` to `@emotion/core`.
|
|
14
53
|
|
|
15
54
|
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,7 +25,7 @@ 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,
|
|
28
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
29
29
|
return (0, _core.jsx)("span", (0, _extends2.default)({
|
|
30
30
|
css: isSingleLine && overflowContainerStyles
|
|
31
31
|
}, props));
|
|
@@ -15,12 +15,12 @@ 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__
|
|
@@ -83,7 +83,7 @@ var paddingLeftStyles = (0, _core.css)({
|
|
|
83
83
|
|
|
84
84
|
var LoaderItemContainer = function LoaderItemContainer(_ref) {
|
|
85
85
|
var isRoot = _ref.isRoot,
|
|
86
|
-
props = (0, _objectWithoutProperties2.default)(_ref,
|
|
86
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
87
87
|
return (0, _core.jsx)("span", (0, _extends2.default)({
|
|
88
88
|
css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles]
|
|
89
89
|
}, props));
|
|
@@ -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.2";
|
|
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
|
@@ -9,7 +9,7 @@ import { N300 } from '@atlaskit/theme/colors';
|
|
|
9
9
|
import ColumnCell from './internal/common-cell';
|
|
10
10
|
import withColumnWidth from './internal/with-column-width';
|
|
11
11
|
const headerStyles = css({
|
|
12
|
-
color: `var(--ds-text-
|
|
12
|
+
color: `var(--ds-text-subtle, ${N300})`,
|
|
13
13
|
fontSize: 12,
|
|
14
14
|
fontWeight: 'bold',
|
|
15
15
|
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() {
|
|
@@ -3,10 +3,10 @@ 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__
|
|
@@ -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.2";
|
|
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",
|
|
@@ -18,7 +18,7 @@ import { N300 } from '@atlaskit/theme/colors';
|
|
|
18
18
|
import ColumnCell from './internal/common-cell';
|
|
19
19
|
import withColumnWidth from './internal/with-column-width';
|
|
20
20
|
var headerStyles = css({
|
|
21
|
-
color: "var(--ds-text-
|
|
21
|
+
color: "var(--ds-text-subtle, ".concat(N300, ")"),
|
|
22
22
|
fontSize: 12,
|
|
23
23
|
fontWeight: 'bold',
|
|
24
24
|
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: {
|
|
@@ -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,7 +15,7 @@ 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
20
|
return jsx("span", _extends({
|
|
20
21
|
css: isSingleLine && overflowContainerStyles
|
|
@@ -1,13 +1,14 @@
|
|
|
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__
|
|
@@ -64,7 +65,7 @@ var paddingLeftStyles = css({
|
|
|
64
65
|
|
|
65
66
|
export var LoaderItemContainer = function LoaderItemContainer(_ref) {
|
|
66
67
|
var isRoot = _ref.isRoot,
|
|
67
|
-
props = _objectWithoutProperties(_ref,
|
|
68
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
68
69
|
|
|
69
70
|
return jsx("span", _extends({
|
|
70
71
|
css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles]
|
|
@@ -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.2";
|
|
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.2",
|
|
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,20 +27,19 @@
|
|
|
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
|
-
"lodash": "^4.17.
|
|
36
|
+
"lodash": "^4.17.21",
|
|
37
37
|
"prop-types": "^15.5.10"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
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",
|