@atlaskit/table-tree 12.2.23 → 12.2.25

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/components/cell.js +1 -1
  3. package/dist/cjs/components/header.compiled.css +1 -1
  4. package/dist/cjs/components/header.js +1 -5
  5. package/dist/cjs/components/headers.compiled.css +1 -1
  6. package/dist/cjs/components/headers.js +1 -1
  7. package/dist/cjs/components/internal/common-cell.compiled.css +2 -2
  8. package/dist/cjs/components/internal/common-cell.js +3 -9
  9. package/dist/cjs/components/internal/loader-item.js +1 -1
  10. package/dist/cjs/components/internal/styled.compiled.css +2 -2
  11. package/dist/cjs/components/internal/styled.js +3 -7
  12. package/dist/es2019/components/cell.js +1 -1
  13. package/dist/es2019/components/header.compiled.css +1 -1
  14. package/dist/es2019/components/header.js +1 -2
  15. package/dist/es2019/components/headers.compiled.css +1 -1
  16. package/dist/es2019/components/headers.js +1 -1
  17. package/dist/es2019/components/internal/common-cell.compiled.css +2 -2
  18. package/dist/es2019/components/internal/common-cell.js +1 -2
  19. package/dist/es2019/components/internal/loader-item.js +1 -1
  20. package/dist/es2019/components/internal/styled.compiled.css +2 -2
  21. package/dist/es2019/components/internal/styled.js +3 -4
  22. package/dist/esm/components/cell.js +1 -1
  23. package/dist/esm/components/header.compiled.css +1 -1
  24. package/dist/esm/components/header.js +1 -5
  25. package/dist/esm/components/headers.compiled.css +1 -1
  26. package/dist/esm/components/headers.js +1 -1
  27. package/dist/esm/components/internal/common-cell.compiled.css +2 -2
  28. package/dist/esm/components/internal/common-cell.js +3 -9
  29. package/dist/esm/components/internal/loader-item.js +1 -1
  30. package/dist/esm/components/internal/styled.compiled.css +2 -2
  31. package/dist/esm/components/internal/styled.js +3 -7
  32. package/package.json +7 -8
  33. package/table-tree.docs.tsx +89 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/table-tree
2
2
 
3
+ ## 12.2.25
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e2085d35701ca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e2085d35701ca) -
8
+ Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
9
+ - Updated dependencies
10
+
11
+ ## 12.2.24
12
+
13
+ ### Patch Changes
14
+
15
+ - [`7aef1e49e90ea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7aef1e49e90ea) -
16
+ Removes redundant fallback color values via @atlaskit/theme
17
+ - Updated dependencies
18
+
3
19
  ## 12.2.23
4
20
 
5
21
  ### Patch Changes
@@ -20,7 +20,7 @@ var CellComponent = function CellComponent(_ref) {
20
20
  className = _ref.className,
21
21
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
22
22
  return /*#__PURE__*/_react.default.createElement(_commonCell.default, (0, _extends2.default)({
23
- indent: indentLevel ? "calc(".concat("var(--ds-space-300, 25px)", " * ", indentLevel, ")") : undefined,
23
+ indent: indentLevel ? "calc(".concat("var(--ds-space-300, 24px)", " * ", indentLevel, ")") : undefined,
24
24
  width: width
25
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
26
26
  ,
@@ -1,3 +1,3 @@
1
1
  ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._k48pwu06{font-weight:var(--ds-font-weight-bold,653)}
3
- ._syaz1vvm{color:var(--_bbz764)}
3
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
@@ -10,7 +10,6 @@ exports.default = void 0;
10
10
  require("./header.compiled.css");
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
- var _colors = require("@atlaskit/theme/colors");
14
13
  var _commonCell = _interopRequireDefault(require("./internal/common-cell"));
15
14
  var _withColumnWidth = _interopRequireDefault(require("./internal/with-column-width"));
16
15
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -39,10 +38,7 @@ var HeaderComponent = function HeaderComponent(_ref) {
39
38
  width: width,
40
39
  id: id,
41
40
  onClick: onClick,
42
- className: (0, _runtime.ax)(["_11c8wadc _syaz1vvm _k48pwu06"]),
43
- style: {
44
- "--_bbz764": (0, _runtime.ix)("var(--ds-text-subtle, ".concat(_colors.N300, ")"))
45
- }
41
+ className: (0, _runtime.ax)(["_11c8wadc _syazazsu _k48pwu06"])
46
42
  }, children);
47
43
  };
48
44
  var Header = (0, _withColumnWidth.default)(HeaderComponent);
@@ -1,2 +1,2 @@
1
- ._179ruzq5{border-block-end:solid var(--ds-border-width-selected,2px) var(--ds-border,#dfe1e6)}
1
+ ._179r1hmg{border-block-end:solid var(--ds-border-width-selected,2px) var(--ds-border,#0b120e24)}
2
2
  ._1e0c1txw{display:flex}
@@ -26,7 +26,7 @@ var Headers = function Headers(_ref) {
26
26
  var children = _ref.children;
27
27
  return /*#__PURE__*/React.createElement("div", {
28
28
  role: "row",
29
- className: (0, _runtime.ax)(["_179ruzq5 _1e0c1txw"])
29
+ className: (0, _runtime.ax)(["_179r1hmg _1e0c1txw"])
30
30
  }, _react.Children.map(children, function (header, index) {
31
31
  return /*#__PURE__*/(0, _react.cloneElement)(header, {
32
32
  key: index,
@@ -1,10 +1,10 @@
1
1
  ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._1yt413wy{padding:var(--ds-space-100,10px) var(--ds-space-300,25px) var(--ds-space-100,10px) var(--indent,var(--ds-space-300,25px))}
2
+ ._1yt412f9{padding:var(--ds-space-100,8px) var(--ds-space-300,24px) var(--ds-space-100,8px) var(--indent,var(--ds-space-300,24px))}
3
3
  ._1e0c1txw{display:flex}
4
4
  ._1nmz1hna{word-break:break-word}
5
5
  ._1tke1ylp{min-height:40px}
6
6
  ._4cvr1h6o{align-items:center}
7
7
  ._ct361wug{-ms-hyphens:auto;hyphens:auto}
8
8
  ._kqswh2mm{position:relative}
9
- ._syaz1o8f{color:var(--_ggxzyp)}
9
+ ._syazi7uo{color:var(--ds-text,#292a2e)}
10
10
  ._vchhusvi{box-sizing:border-box}
@@ -11,13 +11,9 @@ require("./common-cell.compiled.css");
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
13
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
14
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
16
- var _colors = require("@atlaskit/theme/colors");
17
15
  var _excluded = ["indent", "width", "className"];
18
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
19
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21
17
  var commonStyles = null;
22
18
  /**
23
19
  * __Common cell__
@@ -31,15 +27,13 @@ var CommonCell = function CommonCell(_ref) {
31
27
  role: "gridcell"
32
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
33
29
  ,
34
- className: (0, _runtime.ax)(["_1yt413wy _11c8fhey _1e0c1txw _vchhusvi _1tke1ylp _kqswh2mm _4cvr1h6o _syaz1o8f _ct361wug _1nmz1hna", className])
30
+ className: (0, _runtime.ax)(["_1yt412f9 _11c8fhey _1e0c1txw _vchhusvi _1tke1ylp _kqswh2mm _4cvr1h6o _syazi7uo _ct361wug _1nmz1hna", className])
35
31
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
36
32
  }, props, {
37
- style: _objectSpread(_objectSpread({}, {
33
+ style: {
38
34
  '--indent': indent,
39
35
  width: width
40
- }), {}, {
41
- "--_ggxzyp": (0, _runtime.ix)("var(--ds-text, ".concat(_colors.N800, ")"))
42
- })
36
+ }
43
37
  }));
44
38
  };
45
39
  var _default = exports.default = CommonCell;
@@ -31,7 +31,7 @@ var LoaderItem = function LoaderItem(_ref) {
31
31
  }
32
32
  }, [isCompleting, onComplete, phase]);
33
33
  return phase === 'loading' ? /*#__PURE__*/_react.default.createElement(_styled.TreeRowContainer, null, /*#__PURE__*/_react.default.createElement(_commonCell.default, {
34
- indent: "calc(".concat("var(--ds-space-300, 25px)", " * ", depth, ")"),
34
+ indent: "calc(".concat("var(--ds-space-300, 24px)", " * ", depth, ")"),
35
35
  width: "100%"
36
36
  }, /*#__PURE__*/_react.default.createElement(_styled.LoaderItemContainer, {
37
37
  isRoot: depth === 1
@@ -1,8 +1,8 @@
1
- ._179rkk3c{border-block-end:var(--_97mh91)}
1
+ ._179ria51{border-block-end:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}
2
2
  ._1bsb1osq{width:100%}
3
3
  ._1e0c1txw{display:flex}
4
4
  ._1pfhj39m{margin-block-start:-3px}
5
5
  ._4cvr1h6o{align-items:center}
6
- ._ahbqf2s7{margin-inline-start:calc(var(--ds-space-300, 25px)*-1)}
6
+ ._ahbq1lmg{margin-inline-start:calc(var(--ds-space-300, 24px)*-1)}
7
7
  ._bozg1ssb{padding-inline-start:50%}
8
8
  ._kqswstnw{position:absolute}
@@ -12,7 +12,6 @@ var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
13
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
14
14
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
15
- var _colors = require("@atlaskit/theme/colors");
16
15
  var _excluded = ["isRoot"];
17
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
18
17
  var treeRowContainerStyles = null;
@@ -24,10 +23,7 @@ var TreeRowContainer = exports.TreeRowContainer = function TreeRowContainer(prop
24
23
  return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
25
24
  role: "row"
26
25
  }, props, {
27
- className: (0, _runtime.ax)(["_179rkk3c _1e0c1txw"]),
28
- style: {
29
- "--_97mh91": (0, _runtime.ix)("var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N30, ")")))
30
- }
26
+ className: (0, _runtime.ax)(["_179ria51 _1e0c1txw"])
31
27
  }));
32
28
  };
33
29
  var commonCellElementStyles = null;
@@ -39,7 +35,7 @@ var commonChevronContainerStyles = null;
39
35
  */
40
36
  var ChevronContainer = exports.ChevronContainer = function ChevronContainer(props) {
41
37
  return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, props, {
42
- className: (0, _runtime.ax)(["_1e0c1txw _kqswstnw _4cvr1h6o _ahbqf2s7", "_1pfhj39m"])
38
+ className: (0, _runtime.ax)(["_1e0c1txw _kqswstnw _4cvr1h6o _ahbq1lmg", "_1pfhj39m"])
43
39
  }));
44
40
  };
45
41
  var loadingItemContainerStyles = null;
@@ -53,6 +49,6 @@ var LoaderItemContainer = exports.LoaderItemContainer = function LoaderItemConta
53
49
  var isRoot = _ref.isRoot,
54
50
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
55
51
  return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, props, {
56
- className: (0, _runtime.ax)(["_1e0c1txw _kqswstnw _4cvr1h6o _ahbqf2s7", "_1bsb1osq", isRoot && "_bozg1ssb"])
52
+ className: (0, _runtime.ax)(["_1e0c1txw _kqswstnw _4cvr1h6o _ahbq1lmg", "_1bsb1osq", isRoot && "_bozg1ssb"])
57
53
  }));
58
54
  };
@@ -11,7 +11,7 @@ const CellComponent = ({
11
11
  className,
12
12
  ...props
13
13
  }) => /*#__PURE__*/React.createElement(CommonCell, _extends({
14
- indent: indentLevel ? `calc(${"var(--ds-space-300, 25px)"} * ${indentLevel})` : undefined,
14
+ indent: indentLevel ? `calc(${"var(--ds-space-300, 24px)"} * ${indentLevel})` : undefined,
15
15
  width: width
16
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
17
17
  ,
@@ -1,3 +1,3 @@
1
1
  ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._k48pwu06{font-weight:var(--ds-font-weight-bold,653)}
3
- ._syaz1n3s{color:var(--ds-text-subtle,#5e6c84)}
3
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
@@ -2,7 +2,6 @@
2
2
  import "./header.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { N300 } from '@atlaskit/theme/colors';
6
5
  import CommonCell from './internal/common-cell';
7
6
  import withColumnWidth from './internal/with-column-width';
8
7
  const headerStyles = null;
@@ -30,7 +29,7 @@ const HeaderComponent = ({
30
29
  width: width,
31
30
  id: id,
32
31
  onClick: onClick,
33
- className: ax(["_11c8wadc _syaz1n3s _k48pwu06"])
32
+ className: ax(["_11c8wadc _syazazsu _k48pwu06"])
34
33
  }, children);
35
34
  };
36
35
  const Header = withColumnWidth(HeaderComponent);
@@ -1,2 +1,2 @@
1
- ._179ruzq5{border-block-end:solid var(--ds-border-width-selected,2px) var(--ds-border,#dfe1e6)}
1
+ ._179r1hmg{border-block-end:solid var(--ds-border-width-selected,2px) var(--ds-border,#0b120e24)}
2
2
  ._1e0c1txw{display:flex}
@@ -18,7 +18,7 @@ const Headers = ({
18
18
  children
19
19
  }) => /*#__PURE__*/React.createElement("div", {
20
20
  role: "row",
21
- className: ax(["_179ruzq5 _1e0c1txw"])
21
+ className: ax(["_179r1hmg _1e0c1txw"])
22
22
  }, Children.map(children, (header, index) => /*#__PURE__*/cloneElement(header, {
23
23
  key: index,
24
24
  columnIndex: index
@@ -1,10 +1,10 @@
1
1
  ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._1yt413wy{padding:var(--ds-space-100,10px) var(--ds-space-300,25px) var(--ds-space-100,10px) var(--indent,var(--ds-space-300,25px))}
2
+ ._1yt412f9{padding:var(--ds-space-100,8px) var(--ds-space-300,24px) var(--ds-space-100,8px) var(--indent,var(--ds-space-300,24px))}
3
3
  ._1e0c1txw{display:flex}
4
4
  ._1nmz1hna{word-break:break-word}
5
5
  ._1tke1ylp{min-height:40px}
6
6
  ._4cvr1h6o{align-items:center}
7
7
  ._ct361wug{-ms-hyphens:auto;hyphens:auto}
8
8
  ._kqswh2mm{position:relative}
9
- ._syaz1fxt{color:var(--ds-text,#172b4d)}
9
+ ._syazi7uo{color:var(--ds-text,#292a2e)}
10
10
  ._vchhusvi{box-sizing:border-box}
@@ -3,7 +3,6 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./common-cell.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
- import { N800 } from '@atlaskit/theme/colors';
7
6
  const commonStyles = null;
8
7
  /**
9
8
  * __Common cell__
@@ -17,7 +16,7 @@ const CommonCell = ({
17
16
  role: "gridcell"
18
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
19
18
  ,
20
- className: ax(["_1yt413wy _11c8fhey _1e0c1txw _vchhusvi _1tke1ylp _kqswh2mm _4cvr1h6o _syaz1fxt _ct361wug _1nmz1hna", className])
19
+ className: ax(["_1yt412f9 _11c8fhey _1e0c1txw _vchhusvi _1tke1ylp _kqswh2mm _4cvr1h6o _syazi7uo _ct361wug _1nmz1hna", className])
21
20
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
22
21
  }, props, {
23
22
  style: {
@@ -18,7 +18,7 @@ const LoaderItem = ({
18
18
  }
19
19
  }, [isCompleting, onComplete, phase]);
20
20
  return phase === 'loading' ? /*#__PURE__*/React.createElement(TreeRowContainer, null, /*#__PURE__*/React.createElement(CommonCell, {
21
- indent: `calc(${"var(--ds-space-300, 25px)"} * ${depth})`,
21
+ indent: `calc(${"var(--ds-space-300, 24px)"} * ${depth})`,
22
22
  width: "100%"
23
23
  }, /*#__PURE__*/React.createElement(LoaderItemContainer, {
24
24
  isRoot: depth === 1
@@ -1,8 +1,8 @@
1
- ._179r17ba{border-block-end:var(--ds-border-width,1px) solid var(--ds-border,#ebecf0)}
1
+ ._179ria51{border-block-end:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}
2
2
  ._1bsb1osq{width:100%}
3
3
  ._1e0c1txw{display:flex}
4
4
  ._1pfhj39m{margin-block-start:-3px}
5
5
  ._4cvr1h6o{align-items:center}
6
- ._ahbqf2s7{margin-inline-start:calc(var(--ds-space-300, 25px)*-1)}
6
+ ._ahbq1lmg{margin-inline-start:calc(var(--ds-space-300, 24px)*-1)}
7
7
  ._bozg1ssb{padding-inline-start:50%}
8
8
  ._kqswstnw{position:absolute}
@@ -3,7 +3,6 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./styled.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
- import { N30 } from '@atlaskit/theme/colors';
7
6
  const treeRowContainerStyles = null;
8
7
 
9
8
  /**
@@ -12,7 +11,7 @@ const treeRowContainerStyles = null;
12
11
  export const TreeRowContainer = props => /*#__PURE__*/React.createElement("div", _extends({
13
12
  role: "row"
14
13
  }, props, {
15
- className: ax(["_179r17ba _1e0c1txw"])
14
+ className: ax(["_179ria51 _1e0c1txw"])
16
15
  }));
17
16
  const commonCellElementStyles = null;
18
17
  const commonChevronContainerStyles = null;
@@ -22,7 +21,7 @@ const commonChevronContainerStyles = null;
22
21
  * A wrapper container around the expand table tree button.
23
22
  */
24
23
  export const ChevronContainer = props => /*#__PURE__*/React.createElement("span", _extends({}, props, {
25
- className: ax(["_1e0c1txw _kqswstnw _4cvr1h6o _ahbqf2s7", "_1pfhj39m"])
24
+ className: ax(["_1e0c1txw _kqswstnw _4cvr1h6o _ahbq1lmg", "_1pfhj39m"])
26
25
  }));
27
26
  const loadingItemContainerStyles = null;
28
27
  const paddingLeftStyles = null;
@@ -35,5 +34,5 @@ export const LoaderItemContainer = ({
35
34
  isRoot,
36
35
  ...props
37
36
  }) => /*#__PURE__*/React.createElement("span", _extends({}, props, {
38
- className: ax(["_1e0c1txw _kqswstnw _4cvr1h6o _ahbqf2s7", "_1bsb1osq", isRoot && "_bozg1ssb"])
37
+ className: ax(["_1e0c1txw _kqswstnw _4cvr1h6o _ahbq1lmg", "_1bsb1osq", isRoot && "_bozg1ssb"])
39
38
  }));
@@ -13,7 +13,7 @@ var CellComponent = function CellComponent(_ref) {
13
13
  className = _ref.className,
14
14
  props = _objectWithoutProperties(_ref, _excluded);
15
15
  return /*#__PURE__*/React.createElement(CommonCell, _extends({
16
- indent: indentLevel ? "calc(".concat("var(--ds-space-300, 25px)", " * ", indentLevel, ")") : undefined,
16
+ indent: indentLevel ? "calc(".concat("var(--ds-space-300, 24px)", " * ", indentLevel, ")") : undefined,
17
17
  width: width
18
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
19
19
  ,
@@ -1,3 +1,3 @@
1
1
  ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._k48pwu06{font-weight:var(--ds-font-weight-bold,653)}
3
- ._syaz1vvm{color:var(--_bbz764)}
3
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
@@ -2,7 +2,6 @@
2
2
  import "./header.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { N300 } from '@atlaskit/theme/colors';
6
5
  import CommonCell from './internal/common-cell';
7
6
  import withColumnWidth from './internal/with-column-width';
8
7
  var headerStyles = null;
@@ -30,10 +29,7 @@ var HeaderComponent = function HeaderComponent(_ref) {
30
29
  width: width,
31
30
  id: id,
32
31
  onClick: onClick,
33
- className: ax(["_11c8wadc _syaz1vvm _k48pwu06"]),
34
- style: {
35
- "--_bbz764": ix("var(--ds-text-subtle, ".concat(N300, ")"))
36
- }
32
+ className: ax(["_11c8wadc _syazazsu _k48pwu06"])
37
33
  }, children);
38
34
  };
39
35
  var Header = withColumnWidth(HeaderComponent);
@@ -1,2 +1,2 @@
1
- ._179ruzq5{border-block-end:solid var(--ds-border-width-selected,2px) var(--ds-border,#dfe1e6)}
1
+ ._179r1hmg{border-block-end:solid var(--ds-border-width-selected,2px) var(--ds-border,#0b120e24)}
2
2
  ._1e0c1txw{display:flex}
@@ -18,7 +18,7 @@ var Headers = function Headers(_ref) {
18
18
  var children = _ref.children;
19
19
  return /*#__PURE__*/React.createElement("div", {
20
20
  role: "row",
21
- className: ax(["_179ruzq5 _1e0c1txw"])
21
+ className: ax(["_179r1hmg _1e0c1txw"])
22
22
  }, Children.map(children, function (header, index) {
23
23
  return /*#__PURE__*/cloneElement(header, {
24
24
  key: index,
@@ -1,10 +1,10 @@
1
1
  ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._1yt413wy{padding:var(--ds-space-100,10px) var(--ds-space-300,25px) var(--ds-space-100,10px) var(--indent,var(--ds-space-300,25px))}
2
+ ._1yt412f9{padding:var(--ds-space-100,8px) var(--ds-space-300,24px) var(--ds-space-100,8px) var(--indent,var(--ds-space-300,24px))}
3
3
  ._1e0c1txw{display:flex}
4
4
  ._1nmz1hna{word-break:break-word}
5
5
  ._1tke1ylp{min-height:40px}
6
6
  ._4cvr1h6o{align-items:center}
7
7
  ._ct361wug{-ms-hyphens:auto;hyphens:auto}
8
8
  ._kqswh2mm{position:relative}
9
- ._syaz1o8f{color:var(--_ggxzyp)}
9
+ ._syazi7uo{color:var(--ds-text,#292a2e)}
10
10
  ._vchhusvi{box-sizing:border-box}
@@ -1,14 +1,10 @@
1
1
  /* common-cell.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
5
4
  var _excluded = ["indent", "width", "className"];
6
5
  import "./common-cell.compiled.css";
7
6
  import * as React from 'react';
8
7
  import { ax, ix } from "@compiled/react/runtime";
9
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
- import { N800 } from '@atlaskit/theme/colors';
12
8
  var commonStyles = null;
13
9
  /**
14
10
  * __Common cell__
@@ -22,15 +18,13 @@ var CommonCell = function CommonCell(_ref) {
22
18
  role: "gridcell"
23
19
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
24
20
  ,
25
- className: ax(["_1yt413wy _11c8fhey _1e0c1txw _vchhusvi _1tke1ylp _kqswh2mm _4cvr1h6o _syaz1o8f _ct361wug _1nmz1hna", className])
21
+ className: ax(["_1yt412f9 _11c8fhey _1e0c1txw _vchhusvi _1tke1ylp _kqswh2mm _4cvr1h6o _syazi7uo _ct361wug _1nmz1hna", className])
26
22
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
27
23
  }, props, {
28
- style: _objectSpread(_objectSpread({}, {
24
+ style: {
29
25
  '--indent': indent,
30
26
  width: width
31
- }), {}, {
32
- "--_ggxzyp": ix("var(--ds-text, ".concat(N800, ")"))
33
- })
27
+ }
34
28
  }));
35
29
  };
36
30
  export default CommonCell;
@@ -22,7 +22,7 @@ var LoaderItem = function LoaderItem(_ref) {
22
22
  }
23
23
  }, [isCompleting, onComplete, phase]);
24
24
  return phase === 'loading' ? /*#__PURE__*/React.createElement(TreeRowContainer, null, /*#__PURE__*/React.createElement(CommonCell, {
25
- indent: "calc(".concat("var(--ds-space-300, 25px)", " * ", depth, ")"),
25
+ indent: "calc(".concat("var(--ds-space-300, 24px)", " * ", depth, ")"),
26
26
  width: "100%"
27
27
  }, /*#__PURE__*/React.createElement(LoaderItemContainer, {
28
28
  isRoot: depth === 1
@@ -1,8 +1,8 @@
1
- ._179rkk3c{border-block-end:var(--_97mh91)}
1
+ ._179ria51{border-block-end:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}
2
2
  ._1bsb1osq{width:100%}
3
3
  ._1e0c1txw{display:flex}
4
4
  ._1pfhj39m{margin-block-start:-3px}
5
5
  ._4cvr1h6o{align-items:center}
6
- ._ahbqf2s7{margin-inline-start:calc(var(--ds-space-300, 25px)*-1)}
6
+ ._ahbq1lmg{margin-inline-start:calc(var(--ds-space-300, 24px)*-1)}
7
7
  ._bozg1ssb{padding-inline-start:50%}
8
8
  ._kqswstnw{position:absolute}
@@ -5,7 +5,6 @@ var _excluded = ["isRoot"];
5
5
  import "./styled.compiled.css";
6
6
  import * as React from 'react';
7
7
  import { ax, ix } from "@compiled/react/runtime";
8
- import { N30 } from '@atlaskit/theme/colors';
9
8
  var treeRowContainerStyles = null;
10
9
 
11
10
  /**
@@ -15,10 +14,7 @@ export var TreeRowContainer = function TreeRowContainer(props) {
15
14
  return /*#__PURE__*/React.createElement("div", _extends({
16
15
  role: "row"
17
16
  }, props, {
18
- className: ax(["_179rkk3c _1e0c1txw"]),
19
- style: {
20
- "--_97mh91": ix("var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(N30, ")")))
21
- }
17
+ className: ax(["_179ria51 _1e0c1txw"])
22
18
  }));
23
19
  };
24
20
  var commonCellElementStyles = null;
@@ -30,7 +26,7 @@ var commonChevronContainerStyles = null;
30
26
  */
31
27
  export var ChevronContainer = function ChevronContainer(props) {
32
28
  return /*#__PURE__*/React.createElement("span", _extends({}, props, {
33
- className: ax(["_1e0c1txw _kqswstnw _4cvr1h6o _ahbqf2s7", "_1pfhj39m"])
29
+ className: ax(["_1e0c1txw _kqswstnw _4cvr1h6o _ahbq1lmg", "_1pfhj39m"])
34
30
  }));
35
31
  };
36
32
  var loadingItemContainerStyles = null;
@@ -44,6 +40,6 @@ export var LoaderItemContainer = function LoaderItemContainer(_ref) {
44
40
  var isRoot = _ref.isRoot,
45
41
  props = _objectWithoutProperties(_ref, _excluded);
46
42
  return /*#__PURE__*/React.createElement("span", _extends({}, props, {
47
- className: ax(["_1e0c1txw _kqswstnw _4cvr1h6o _ahbqf2s7", "_1bsb1osq", isRoot && "_bozg1ssb"])
43
+ className: ax(["_1e0c1txw _kqswstnw _4cvr1h6o _ahbq1lmg", "_1bsb1osq", isRoot && "_bozg1ssb"])
48
44
  }));
49
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "12.2.23",
3
+ "version": "12.2.25",
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/"
@@ -24,13 +24,12 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@atlaskit/analytics-next": "^11.1.0",
27
+ "@atlaskit/analytics-next": "^11.2.0",
28
28
  "@atlaskit/button": "^23.10.0",
29
29
  "@atlaskit/ds-lib": "^6.0.0",
30
- "@atlaskit/icon": "^33.0.0",
30
+ "@atlaskit/icon": "^34.0.0",
31
31
  "@atlaskit/spinner": "^19.0.0",
32
- "@atlaskit/theme": "^22.0.0",
33
- "@atlaskit/tokens": "^11.1.0",
32
+ "@atlaskit/tokens": "^11.4.0",
34
33
  "@babel/runtime": "^7.0.0",
35
34
  "@compiled/react": "^0.20.0",
36
35
  "lodash": "^4.17.21"
@@ -44,11 +43,11 @@
44
43
  "@af/visual-regression": "workspace:^",
45
44
  "@atlaskit/docs": "^11.7.0",
46
45
  "@atlaskit/empty-state": "^10.1.0",
47
- "@atlaskit/form": "^15.4.0",
46
+ "@atlaskit/form": "^15.5.0",
48
47
  "@atlaskit/link": "^3.3.0",
49
- "@atlaskit/primitives": "^18.0.0",
48
+ "@atlaskit/primitives": "^18.1.0",
50
49
  "@atlaskit/section-message": "^8.12.0",
51
- "@atlaskit/select": "^21.8.0",
50
+ "@atlaskit/select": "^21.10.0",
52
51
  "@atlaskit/visually-hidden": "^3.0.0",
53
52
  "@atlassian/ssr-tests": "workspace:^",
54
53
  "@atlassian/structured-docs-types": "workspace:^",
@@ -25,6 +25,95 @@ const documentation: ComponentStructuredContentSource[] = [
25
25
  keywords: ['table-tree', 'table', 'tree', 'expandable', 'nested', 'hierarchy', 'rows'],
26
26
  categories: ['text and data display', 'data'],
27
27
  },
28
+ {
29
+ name: 'Headers',
30
+ description:
31
+ 'Container for table column headers. Use with Header components to define columns.',
32
+ status: 'general-availability',
33
+ import: {
34
+ name: 'Headers',
35
+ package: '@atlaskit/table-tree',
36
+ type: 'named',
37
+ packagePath: path.resolve(__dirname),
38
+ packageJson: require('./package.json'),
39
+ },
40
+ usageGuidelines: [
41
+ 'Clearly label column headers with simple language',
42
+ 'Provide an accessible name for the table',
43
+ ],
44
+ keywords: ['table-tree', 'headers', 'table', 'columns'],
45
+ categories: ['text and data display', 'data'],
46
+ },
47
+ {
48
+ name: 'Header',
49
+ description:
50
+ 'A single column header in a table tree. Use within Headers to define each column.',
51
+ status: 'general-availability',
52
+ import: {
53
+ name: 'Header',
54
+ package: '@atlaskit/table-tree',
55
+ type: 'named',
56
+ packagePath: path.resolve(__dirname),
57
+ packageJson: require('./package.json'),
58
+ },
59
+ usageGuidelines: ['Use for structured tabular data only—never for layout'],
60
+ keywords: ['table-tree', 'header', 'table', 'column'],
61
+ categories: ['text and data display', 'data'],
62
+ },
63
+ {
64
+ name: 'Rows',
65
+ description: 'Container for table tree rows. Renders expandable rows with nested data.',
66
+ status: 'general-availability',
67
+ import: {
68
+ name: 'Rows',
69
+ package: '@atlaskit/table-tree',
70
+ type: 'named',
71
+ packagePath: path.resolve(__dirname),
72
+ packageJson: require('./package.json'),
73
+ },
74
+ usageGuidelines: [
75
+ 'Place important information at top-level so users rarely need to expand',
76
+ 'Limit indentation for scannability',
77
+ 'Avoid truncation—prefer wrapping when content exceeds cell width',
78
+ ],
79
+ keywords: ['table-tree', 'rows', 'table', 'data'],
80
+ categories: ['text and data display', 'data'],
81
+ },
82
+ {
83
+ name: 'Row',
84
+ description: 'A single row in a table tree. Use within Rows render prop for each data item.',
85
+ status: 'general-availability',
86
+ import: {
87
+ name: 'Row',
88
+ package: '@atlaskit/table-tree',
89
+ type: 'named',
90
+ packagePath: path.resolve(__dirname),
91
+ packageJson: require('./package.json'),
92
+ },
93
+ usageGuidelines: [
94
+ 'Allow expand-on-click only when the row has no interactive elements (buttons, dropdowns)',
95
+ ],
96
+ keywords: ['table-tree', 'row', 'table', 'expandable'],
97
+ categories: ['text and data display', 'data'],
98
+ },
99
+ {
100
+ name: 'Cell',
101
+ description: 'A single cell in a table tree row. Use within Row to display column data.',
102
+ status: 'general-availability',
103
+ import: {
104
+ name: 'Cell',
105
+ package: '@atlaskit/table-tree',
106
+ type: 'named',
107
+ packagePath: path.resolve(__dirname),
108
+ packageJson: require('./package.json'),
109
+ },
110
+ usageGuidelines: [
111
+ 'Avoid heavy indentation—affects scannability and screen magnification users',
112
+ 'Prefer wrapping over truncation for accessibility',
113
+ ],
114
+ keywords: ['table-tree', 'cell', 'table', 'data'],
115
+ categories: ['text and data display', 'data'],
116
+ },
28
117
  ];
29
118
 
30
119
  export default documentation;