@atlaskit/table-tree 12.2.23 → 12.2.24

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,13 @@
1
1
  # @atlaskit/table-tree
2
2
 
3
+ ## 12.2.24
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7aef1e49e90ea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7aef1e49e90ea) -
8
+ Removes redundant fallback color values via @atlaskit/theme
9
+ - Updated dependencies
10
+
3
11
  ## 12.2.23
4
12
 
5
13
  ### Patch Changes
@@ -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);
@@ -6,5 +6,5 @@
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)(["_1yt413wy _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;
@@ -1,4 +1,4 @@
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}
@@ -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;
@@ -61,7 +61,7 @@ function Row(_ref) {
61
61
  actionSubject: 'tableTree',
62
62
  componentName: 'row',
63
63
  packageName: "@atlaskit/table-tree",
64
- packageVersion: "0.0.0-development"
64
+ packageVersion: "12.2.24"
65
65
  });
66
66
  var onCollapse = (0, _analyticsNext.usePlatformLeafEventHandler)({
67
67
  fn: function fn(value) {
@@ -71,7 +71,7 @@ function Row(_ref) {
71
71
  actionSubject: 'tableTree',
72
72
  componentName: 'row',
73
73
  packageName: "@atlaskit/table-tree",
74
- packageVersion: "0.0.0-development"
74
+ packageVersion: "12.2.24"
75
75
  });
76
76
 
77
77
  /**
@@ -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);
@@ -6,5 +6,5 @@
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(["_1yt413wy _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: {
@@ -1,4 +1,4 @@
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}
@@ -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;
@@ -47,7 +47,7 @@ function Row({
47
47
  actionSubject: 'tableTree',
48
48
  componentName: 'row',
49
49
  packageName: "@atlaskit/table-tree",
50
- packageVersion: "0.0.0-development"
50
+ packageVersion: "12.2.24"
51
51
  });
52
52
  const onCollapse = usePlatformLeafEventHandler({
53
53
  fn: value => providedOnCollapse && providedOnCollapse(value),
@@ -55,7 +55,7 @@ function Row({
55
55
  actionSubject: 'tableTree',
56
56
  componentName: 'row',
57
57
  packageName: "@atlaskit/table-tree",
58
- packageVersion: "0.0.0-development"
58
+ packageVersion: "12.2.24"
59
59
  });
60
60
 
61
61
  /**
@@ -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);
@@ -6,5 +6,5 @@
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(["_1yt413wy _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;
@@ -1,4 +1,4 @@
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,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;
@@ -52,7 +52,7 @@ function Row(_ref) {
52
52
  actionSubject: 'tableTree',
53
53
  componentName: 'row',
54
54
  packageName: "@atlaskit/table-tree",
55
- packageVersion: "0.0.0-development"
55
+ packageVersion: "12.2.24"
56
56
  });
57
57
  var onCollapse = usePlatformLeafEventHandler({
58
58
  fn: function fn(value) {
@@ -62,7 +62,7 @@ function Row(_ref) {
62
62
  actionSubject: 'tableTree',
63
63
  componentName: 'row',
64
64
  packageName: "@atlaskit/table-tree",
65
- packageVersion: "0.0.0-development"
65
+ packageVersion: "12.2.24"
66
66
  });
67
67
 
68
68
  /**
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.24",
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": "^33.1.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,9 +43,9 @@
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
50
  "@atlaskit/select": "^21.8.0",
52
51
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -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;