@atlaskit/table-tree 9.1.1 → 9.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/table-tree
2
2
 
3
+ ## 9.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.1.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`58884c2f6c1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/58884c2f6c1) - Internal code change turning on a new linting rule.
14
+
15
+ ## 9.1.2
16
+
17
+ ### Patch Changes
18
+
19
+ - [`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.
20
+ - Updated dependencies
21
+
3
22
  ## 9.1.1
4
23
 
5
24
  ### Patch Changes
@@ -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-mediumEmphasis, ".concat(_colors.N300, ")"),
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-neutral, #dfe1e6)")
30
+ borderBottom: "solid 2px ".concat("var(--ds-border, #dfe1e6)")
31
31
  });
32
32
 
33
33
  var Headers = /*#__PURE__*/function (_Component) {
@@ -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-highEmphasis, ".concat(_colors.N800, ")"),
26
+ color: "var(--ds-text, ".concat(_colors.N800, ")"),
27
27
  lineHeight: '20px'
28
28
  });
29
29
 
@@ -26,9 +26,11 @@ var overflowContainerStyles = (0, _core.css)({
26
26
  var OverflowContainer = function OverflowContainer(_ref) {
27
27
  var isSingleLine = _ref.isSingleLine,
28
28
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
29
- return (0, _core.jsx)("span", (0, _extends2.default)({
30
- css: isSingleLine && overflowContainerStyles
31
- }, props));
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;
@@ -16,20 +16,22 @@ var _core = require("@emotion/core");
16
16
  var _colors = require("@atlaskit/theme/colors");
17
17
 
18
18
  var _excluded = ["isRoot"];
19
- var iconColor = "var(--ds-text-highEmphasis, ".concat(_colors.N800, ")");
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-neutral, ".concat(_colors.N30, ")"))
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 (0, _core.jsx)("div", (0, _extends2.default)({
31
- css: treeRowContainerStyles
32
- }, props));
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
  }));
@@ -85,7 +89,8 @@ var LoaderItemContainer = function LoaderItemContainer(_ref) {
85
89
  var isRoot = _ref.isRoot,
86
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
 
@@ -44,7 +44,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
44
44
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
45
45
 
46
46
  var packageName = "@atlaskit/table-tree";
47
- var packageVersion = "9.1.1";
47
+ var packageVersion = "9.1.4";
48
48
 
49
49
  var Row = /*#__PURE__*/function (_Component) {
50
50
  (0, _inherits2.default)(Row, _Component);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "9.1.1",
3
+ "version": "9.1.4",
4
4
  "sideEffects": false
5
5
  }
@@ -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-mediumEmphasis, ${N300})`,
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-neutral, #dfe1e6)"}`
8
+ borderBottom: `solid 2px ${"var(--ds-border, #dfe1e6)"}`
9
9
  });
10
10
  export default class Headers extends Component {
11
11
  render() {
@@ -10,7 +10,7 @@ const commonStyles = css({
10
10
  padding: '10px 25px 10px var(--indent, 25px)',
11
11
  position: 'relative',
12
12
  alignItems: 'flex-start',
13
- color: `var(--ds-text-highEmphasis, ${N800})`,
13
+ color: `var(--ds-text, ${N800})`,
14
14
  lineHeight: '20px'
15
15
  });
16
16
 
@@ -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
- }) => jsx("span", _extends({
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-highEmphasis, ${N800})`;
6
+ export const iconColor = `var(--ds-text, ${N800})`;
7
7
  const treeRowContainerStyles = css({
8
8
  display: 'flex',
9
- borderBottom: `1px solid ${`var(--ds-border-neutral, ${N30})`}`
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 => jsx("div", _extends({
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 => jsx("span", _extends({}, 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 => jsx("span", _extends({}, 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.1.1";
11
+ const packageVersion = "9.1.4";
12
12
 
13
13
  class Row extends Component {
14
14
  constructor(...args) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "9.1.1",
3
+ "version": "9.1.4",
4
4
  "sideEffects": false
5
5
  }
@@ -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-mediumEmphasis, ".concat(N300, ")"),
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-neutral, #dfe1e6)")
18
+ borderBottom: "solid 2px ".concat("var(--ds-border, #dfe1e6)")
19
19
  });
20
20
 
21
21
  var Headers = /*#__PURE__*/function (_Component) {
@@ -12,7 +12,7 @@ var commonStyles = css({
12
12
  padding: '10px 25px 10px var(--indent, 25px)',
13
13
  position: 'relative',
14
14
  alignItems: 'flex-start',
15
- color: "var(--ds-text-highEmphasis, ".concat(N800, ")"),
15
+ color: "var(--ds-text, ".concat(N800, ")"),
16
16
  lineHeight: '20px'
17
17
  });
18
18
 
@@ -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';
@@ -17,9 +17,11 @@ var OverflowContainer = function OverflowContainer(_ref) {
17
17
  var isSingleLine = _ref.isSingleLine,
18
18
  props = _objectWithoutProperties(_ref, _excluded);
19
19
 
20
- return jsx("span", _extends({
21
- css: isSingleLine && overflowContainerStyles
22
- }, props));
20
+ return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
21
+ jsx("span", _extends({
22
+ css: isSingleLine && overflowContainerStyles
23
+ }, props))
24
+ );
23
25
  };
24
26
 
25
27
  export default OverflowContainer;
@@ -5,19 +5,21 @@ var _excluded = ["isRoot"];
5
5
  /** @jsx jsx */
6
6
  import { css, jsx } from '@emotion/core';
7
7
  import { N30, N800 } from '@atlaskit/theme/colors';
8
- export var iconColor = "var(--ds-text-highEmphasis, ".concat(N800, ")");
8
+ export var iconColor = "var(--ds-text, ".concat(N800, ")");
9
9
  var treeRowContainerStyles = css({
10
10
  display: 'flex',
11
- borderBottom: "1px solid ".concat("var(--ds-border-neutral, ".concat(N30, ")"))
11
+ borderBottom: "1px solid ".concat("var(--ds-border, ".concat(N30, ")"))
12
12
  });
13
13
  /**
14
14
  * __Tree row container__
15
15
  */
16
16
 
17
17
  export var TreeRowContainer = function TreeRowContainer(props) {
18
- return jsx("div", _extends({
19
- css: treeRowContainerStyles
20
- }, props));
18
+ return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
19
+ jsx("div", _extends({
20
+ css: treeRowContainerStyles
21
+ }, props))
22
+ );
21
23
  };
22
24
  var commonChevronContainerStyles = css({
23
25
  display: 'flex',
@@ -30,7 +32,8 @@ var commonChevronContainerStyles = css({
30
32
  * __Chevron container__
31
33
  */
32
34
 
33
- 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
+ ) {
34
37
  return jsx("span", _extends({}, props, {
35
38
  css: commonChevronContainerStyles
36
39
  }));
@@ -45,7 +48,8 @@ var chevronIconContainerStyles = css({
45
48
  * A chevron icon container.
46
49
  */
47
50
 
48
- 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
+ ) {
49
53
  return jsx("span", _extends({}, props, {
50
54
  css: chevronIconContainerStyles
51
55
  }));
@@ -68,6 +72,7 @@ export var LoaderItemContainer = function LoaderItemContainer(_ref) {
68
72
  props = _objectWithoutProperties(_ref, _excluded);
69
73
 
70
74
  return jsx("span", _extends({
71
- css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles]
75
+ css: [commonChevronContainerStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles] // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
76
+
72
77
  }, props));
73
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.1.1";
21
+ var packageVersion = "9.1.4";
22
22
 
23
23
  var Row = /*#__PURE__*/function (_Component) {
24
24
  _inherits(Row, _Component);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "9.1.1",
3
+ "version": "9.1.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { FC, HTMLAttributes } from 'react';
3
- export declare const iconColor: "var(--ds-text-highEmphasis)";
3
+ export declare const iconColor: "var(--ds-text)";
4
4
  /**
5
5
  * __Tree row container__
6
6
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "9.1.1",
3
+ "version": "9.1.4",
4
4
  "description": "A React Component for displaying expandable tables with tree-like hierarchies",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -26,11 +26,11 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@atlaskit/analytics-next": "^8.2.0",
29
- "@atlaskit/button": "^16.0.0",
29
+ "@atlaskit/button": "^16.2.0",
30
30
  "@atlaskit/icon": "^21.10.0",
31
31
  "@atlaskit/spinner": "^15.0.0",
32
32
  "@atlaskit/theme": "^12.1.0",
33
- "@atlaskit/tokens": "^0.5.0",
33
+ "@atlaskit/tokens": "^0.7.0",
34
34
  "@babel/runtime": "^7.0.0",
35
35
  "@emotion/core": "^10.0.9",
36
36
  "lodash": "^4.17.21",