@atlaskit/table-tree 11.2.2 → 12.0.0

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 (59) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/components/cell.js +1 -2
  3. package/dist/cjs/components/header.compiled.css +3 -0
  4. package/dist/cjs/components/header.js +14 -16
  5. package/dist/cjs/components/headers.compiled.css +2 -0
  6. package/dist/cjs/components/headers.js +21 -25
  7. package/dist/cjs/components/internal/common-cell.compiled.css +10 -0
  8. package/dist/cjs/components/internal/common-cell.js +18 -25
  9. package/dist/cjs/components/internal/item.js +6 -10
  10. package/dist/cjs/components/internal/loader-item.js +1 -1
  11. package/dist/cjs/components/internal/overflow-container.compiled.css +4 -0
  12. package/dist/cjs/components/internal/overflow-container.js +11 -15
  13. package/dist/cjs/components/internal/styled.compiled.css +8 -0
  14. package/dist/cjs/components/internal/styled.js +32 -43
  15. package/dist/cjs/components/row.compiled.css +1 -0
  16. package/dist/cjs/components/row.js +10 -17
  17. package/dist/es2019/components/cell.js +1 -2
  18. package/dist/es2019/components/header.compiled.css +3 -0
  19. package/dist/es2019/components/header.js +8 -15
  20. package/dist/es2019/components/headers.compiled.css +2 -0
  21. package/dist/es2019/components/headers.js +9 -17
  22. package/dist/es2019/components/internal/common-cell.compiled.css +10 -0
  23. package/dist/es2019/components/internal/common-cell.js +7 -23
  24. package/dist/es2019/components/internal/item.js +3 -10
  25. package/dist/es2019/components/internal/loader-item.js +2 -2
  26. package/dist/es2019/components/internal/overflow-container.compiled.css +4 -0
  27. package/dist/es2019/components/internal/overflow-container.js +8 -16
  28. package/dist/es2019/components/internal/styled.compiled.css +8 -0
  29. package/dist/es2019/components/internal/styled.js +19 -43
  30. package/dist/es2019/components/row.compiled.css +1 -0
  31. package/dist/es2019/components/row.js +10 -16
  32. package/dist/esm/components/cell.js +1 -2
  33. package/dist/esm/components/header.compiled.css +3 -0
  34. package/dist/esm/components/header.js +11 -15
  35. package/dist/esm/components/headers.compiled.css +2 -0
  36. package/dist/esm/components/headers.js +18 -24
  37. package/dist/esm/components/internal/common-cell.compiled.css +10 -0
  38. package/dist/esm/components/internal/common-cell.js +15 -26
  39. package/dist/esm/components/internal/item.js +3 -10
  40. package/dist/esm/components/internal/loader-item.js +2 -2
  41. package/dist/esm/components/internal/overflow-container.compiled.css +4 -0
  42. package/dist/esm/components/internal/overflow-container.js +8 -16
  43. package/dist/esm/components/internal/styled.compiled.css +8 -0
  44. package/dist/esm/components/internal/styled.js +28 -43
  45. package/dist/esm/components/row.compiled.css +1 -0
  46. package/dist/esm/components/row.js +10 -16
  47. package/dist/types/components/headers.d.ts +1 -2
  48. package/dist/types/components/internal/common-cell.d.ts +1 -1
  49. package/dist/types/components/internal/item.d.ts +2 -6
  50. package/dist/types/components/internal/overflow-container.d.ts +1 -1
  51. package/dist/types/components/internal/styled.d.ts +1 -2
  52. package/dist/types/components/row.d.ts +1 -2
  53. package/dist/types-ts4.5/components/headers.d.ts +1 -2
  54. package/dist/types-ts4.5/components/internal/common-cell.d.ts +1 -1
  55. package/dist/types-ts4.5/components/internal/item.d.ts +2 -6
  56. package/dist/types-ts4.5/components/internal/overflow-container.d.ts +1 -1
  57. package/dist/types-ts4.5/components/internal/styled.d.ts +1 -2
  58. package/dist/types-ts4.5/components/row.d.ts +1 -2
  59. package/package.json +3 -3
@@ -1,16 +1,11 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- /* eslint-disable @repo/internal/react/no-clone-element */
1
+ /* headers.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./headers.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
6
5
  import { Children, cloneElement } from 'react';
6
+ /* eslint-disable @repo/internal/react/no-clone-element */
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
- import { css, jsx } from '@emotion/react';
10
- const containerStyles = css({
11
- display: 'flex',
12
- borderBlockEnd: `solid 2px ${"var(--ds-border, #dfe1e6)"}`
13
- });
8
+ const containerStyles = null;
14
9
  /**
15
10
  * __Headers__
16
11
  *
@@ -21,12 +16,9 @@ const containerStyles = css({
21
16
  */
22
17
  const Headers = ({
23
18
  children
24
- }) =>
25
- // TODO: Determine whether proper `tr` elements can be used instead of
26
- // roles (DSP-11588)
27
- jsx("div", {
28
- css: containerStyles,
29
- role: "row"
19
+ }) => /*#__PURE__*/React.createElement("div", {
20
+ role: "row",
21
+ className: ax(["_179r17qy _1e0c1txw"])
30
22
  }, Children.map(children, (header, index) => /*#__PURE__*/cloneElement(header, {
31
23
  key: index,
32
24
  columnIndex: index
@@ -0,0 +1,10 @@
1
+ ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px 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))}
3
+ ._1e0c1txw{display:flex}
4
+ ._1nmz1hna{word-break:break-word}
5
+ ._1tke1ylp{min-height:40px}
6
+ ._4cvr1h6o{align-items:center}
7
+ ._ct361wug{-ms-hyphens:auto;hyphens:auto}
8
+ ._kqswh2mm{position:relative}
9
+ ._syaz1fxt{color:var(--ds-text,#172b4d)}
10
+ ._vchhusvi{box-sizing:border-box}
@@ -1,26 +1,10 @@
1
+ /* common-cell.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
-
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { css, jsx } from '@emotion/react';
3
+ import "./common-cell.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
9
6
  import { N800 } from '@atlaskit/theme/colors';
10
- import { indentBase } from './styled';
11
- const commonStyles = css({
12
- display: 'flex',
13
- boxSizing: 'border-box',
14
- minHeight: 40,
15
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
16
- padding: `${"var(--ds-space-100, 10px)"} ${indentBase} ${"var(--ds-space-100, 10px)"} var(--indent, ${indentBase})`,
17
- position: 'relative',
18
- alignItems: 'center',
19
- color: `var(--ds-text, ${N800})`,
20
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
21
- hyphens: 'auto',
22
- wordBreak: 'break-word'
23
- });
7
+ const commonStyles = null;
24
8
  /**
25
9
  * __Common cell__
26
10
  */
@@ -28,7 +12,7 @@ const CommonCell = ({
28
12
  indent,
29
13
  width,
30
14
  ...props
31
- }) => jsx("div", _extends({
15
+ }) => /*#__PURE__*/React.createElement("div", _extends({
32
16
  role: "gridcell"
33
17
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
34
18
  }, props, {
@@ -37,6 +21,6 @@ const CommonCell = ({
37
21
  '--indent': indent,
38
22
  width
39
23
  },
40
- css: commonStyles
24
+ className: ax(["_1yt413wy _11c82smr _1e0c1txw _vchhusvi _1tke1ylp _kqswh2mm _4cvr1h6o _syaz1fxt _ct361wug _1nmz1hna"])
41
25
  }));
42
26
  export default CommonCell;
@@ -1,12 +1,5 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
1
  /* eslint-disable @repo/internal/react/no-clone-element */
6
- import { cloneElement } from 'react';
7
-
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
- import { jsx } from '@emotion/react';
2
+ import React, { cloneElement } from 'react';
10
3
  import toItemId from '../../utils/to-item-id';
11
4
  import Items from './items';
12
5
  /**
@@ -31,9 +24,9 @@ function Item({
31
24
  depth,
32
25
  data,
33
26
  loadingLabel,
34
- renderChildren: () => jsx("div", {
27
+ renderChildren: () => /*#__PURE__*/React.createElement("div", {
35
28
  id: !!itemId ? toItemId(itemId) : undefined
36
- }, jsx(Items, {
29
+ }, /*#__PURE__*/React.createElement(Items, {
37
30
  depth: depth,
38
31
  items: items,
39
32
  render: render,
@@ -2,7 +2,7 @@
2
2
  import React, { useEffect, useState } from 'react';
3
3
  import Spinner from '@atlaskit/spinner';
4
4
  import CommonCell from './common-cell';
5
- import { indentBase, LoaderItemContainer, TreeRowContainer } from './styled';
5
+ import { LoaderItemContainer, TreeRowContainer } from './styled';
6
6
  const LoaderItem = ({
7
7
  depth = 1,
8
8
  loadingLabel,
@@ -19,7 +19,7 @@ const LoaderItem = ({
19
19
  }
20
20
  }, [isCompleting, onComplete, phase]);
21
21
  return phase === 'loading' ? /*#__PURE__*/React.createElement(TreeRowContainer, null, /*#__PURE__*/React.createElement(CommonCell, {
22
- indent: `calc(${indentBase} * ${depth})`,
22
+ indent: `calc(${"var(--ds-space-300, 25px)"} * ${depth})`,
23
23
  width: "100%"
24
24
  }, /*#__PURE__*/React.createElement(LoaderItemContainer, {
25
25
  isRoot: depth === 1
@@ -0,0 +1,4 @@
1
+ ._18m915vq{overflow-y:hidden}
2
+ ._1bto1l2s{text-overflow:ellipsis}
3
+ ._1reo15vq{overflow-x:hidden}
4
+ ._o5721q9c{white-space:nowrap}
@@ -1,16 +1,9 @@
1
+ /* overflow-container.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
-
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { css, jsx } from '@emotion/react';
9
- const overflowContainerStyles = css({
10
- overflow: 'hidden',
11
- textOverflow: 'ellipsis',
12
- whiteSpace: 'nowrap'
13
- });
3
+ import "./overflow-container.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
6
+ const overflowContainerStyles = null;
14
7
 
15
8
  /**
16
9
  * __Overflow container__
@@ -18,8 +11,7 @@ const overflowContainerStyles = css({
18
11
  const OverflowContainer = ({
19
12
  isSingleLine,
20
13
  ...props
21
- }) => jsx("span", _extends({
22
- css: isSingleLine && overflowContainerStyles
23
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
24
- }, props));
14
+ }) => /*#__PURE__*/React.createElement("span", _extends({}, props, {
15
+ className: ax([isSingleLine && "_1reo15vq _18m915vq _1bto1l2s _o5721q9c"])
16
+ }));
25
17
  export default OverflowContainer;
@@ -0,0 +1,8 @@
1
+ ._179r1l7n{border-block-end:1px solid var(--ds-border,#ebecf0)}
2
+ ._1bsb1osq{width:100%}
3
+ ._1e0c1txw{display:flex}
4
+ ._1pfhj39m{margin-block-start:-3px}
5
+ ._4cvr1h6o{align-items:center}
6
+ ._ahbqf2s7{margin-inline-start:calc(var(--ds-space-300, 25px)*-1)}
7
+ ._bozg1ssb{padding-inline-start:50%}
8
+ ._kqswstnw{position:absolute}
@@ -1,54 +1,31 @@
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
-
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { css, jsx } from '@emotion/react';
3
+ import "./styled.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
9
6
  import { N30 } from '@atlaskit/theme/colors';
10
- export const indentBase = "var(--ds-space-300, 25px)";
11
- const treeRowContainerStyles = css({
12
- display: 'flex',
13
- borderBlockEnd: `1px solid ${`var(--ds-border, ${N30})`}`
14
- });
7
+ const treeRowContainerStyles = null;
15
8
 
16
9
  /**
17
10
  * __Tree row container__
18
11
  */
19
- export const TreeRowContainer = props => jsx("div", _extends({
20
- role: "row",
21
- css: treeRowContainerStyles
22
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
23
- }, props));
24
- const commonCellElementStyles = css({
25
- display: 'flex',
26
- position: 'absolute',
27
- alignItems: 'center',
28
- // indentBase is re-used elsewhere and is primarily used as positive value; we need to negate it here
29
- marginInlineStart: `calc(${indentBase} * -1)`
30
- });
31
- const commonChevronContainerStyles = css({
32
- // Aligns position:absolute chevron button with the adjacent text. Any future visual breaking changes
33
- // should consider setting this to `-2px` for better alignment, or refactor completely
34
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
35
- marginBlockStart: -3
36
- });
12
+ export const TreeRowContainer = props => /*#__PURE__*/React.createElement("div", _extends({
13
+ role: "row"
14
+ }, props, {
15
+ className: ax(["_179r1l7n _1e0c1txw"])
16
+ }));
17
+ const commonCellElementStyles = null;
18
+ const commonChevronContainerStyles = null;
37
19
  /**
38
20
  * __Chevron container__
39
21
  *
40
22
  * A wrapper container around the expand table tree button.
41
23
  */
42
- export const ChevronContainer = props => jsx("span", _extends({}, props, {
43
- css: [commonCellElementStyles, commonChevronContainerStyles]
24
+ export const ChevronContainer = props => /*#__PURE__*/React.createElement("span", _extends({}, props, {
25
+ className: ax(["_1e0c1txw _kqswstnw _4cvr1h6o _ahbqf2s7", "_1pfhj39m"])
44
26
  }));
45
- const loadingItemContainerStyles = css({
46
- width: '100%'
47
- });
48
- const paddingLeftStyles = css({
49
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
50
- paddingInlineStart: '50%'
51
- });
27
+ const loadingItemContainerStyles = null;
28
+ const paddingLeftStyles = null;
52
29
  /**
53
30
  * __Loader item container__
54
31
  *
@@ -57,7 +34,6 @@ const paddingLeftStyles = css({
57
34
  export const LoaderItemContainer = ({
58
35
  isRoot,
59
36
  ...props
60
- }) => jsx("span", _extends({
61
- css: [commonCellElementStyles, loadingItemContainerStyles, isRoot && paddingLeftStyles]
62
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
63
- }, props));
37
+ }) => /*#__PURE__*/React.createElement("span", _extends({}, props, {
38
+ className: ax(["_1e0c1txw _kqswstnw _4cvr1h6o _ahbqf2s7", "_1bsb1osq", isRoot && "_bozg1ssb"])
39
+ }));
@@ -0,0 +1 @@
1
+ ._80omtlke{cursor:pointer}
@@ -1,18 +1,12 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
1
+ /* row.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./row.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
5
4
  import React, { Fragment, useEffect, useState } from 'react';
6
-
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { css, jsx } from '@emotion/react';
9
5
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
10
6
  import toItemId from '../utils/to-item-id';
11
7
  import Chevron from './internal/chevron';
12
8
  import { TreeRowContainer } from './internal/styled';
13
- const treeRowClickableStyles = css({
14
- cursor: 'pointer'
15
- });
9
+ const treeRowClickableStyles = null;
16
10
  const getExtendedLabel = (cellContent, cellIndex, mainColumnForExpandCollapseLabel) => {
17
11
  /**
18
12
  * First condition - when we pass data via `items` property in `<TableTree />`
@@ -53,7 +47,7 @@ function Row({
53
47
  actionSubject: 'tableTree',
54
48
  componentName: 'row',
55
49
  packageName: "@atlaskit/table-tree",
56
- packageVersion: "11.2.2"
50
+ packageVersion: "12.0.0"
57
51
  });
58
52
  const onCollapse = usePlatformLeafEventHandler({
59
53
  fn: value => providedOnCollapse && providedOnCollapse(value),
@@ -61,7 +55,7 @@ function Row({
61
55
  actionSubject: 'tableTree',
62
56
  componentName: 'row',
63
57
  packageName: "@atlaskit/table-tree",
64
- packageVersion: "11.2.2"
58
+ packageVersion: "12.0.0"
65
59
  });
66
60
 
67
61
  /**
@@ -100,7 +94,7 @@ function Row({
100
94
  let cellContent = cell.props.children || [];
101
95
  const extendedLabel = getExtendedLabel(cellContent, cellIndex, mainColumnForExpandCollapseLabel);
102
96
  if (isFirstCell && hasChildren) {
103
- cellContent = [jsx(Chevron, {
97
+ cellContent = [/*#__PURE__*/React.createElement(Chevron, {
104
98
  key: "chevron",
105
99
  expandLabel: expandLabel,
106
100
  collapseLabel: collapseLabel,
@@ -118,11 +112,11 @@ function Row({
118
112
  indentLevel
119
113
  }, cellContent);
120
114
  };
121
- return jsx(Fragment, null, jsx(TreeRowContainer, {
122
- css: hasChildren && shouldExpandOnClick ? treeRowClickableStyles : undefined,
115
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(TreeRowContainer, {
123
116
  onClick: hasChildren && shouldExpandOnClick ? onClickHandler : undefined,
124
117
  "aria-expanded": hasChildren ? isExpandedState : undefined,
125
- "aria-level": depth ? depth : undefined
118
+ "aria-level": depth ? depth : undefined,
119
+ className: ax([hasChildren && shouldExpandOnClick && "_80omtlke"])
126
120
  }, React.Children.map(children, (cell, index) => renderCell(cell, index))), hasChildren && (isProvidedExpanded !== undefined ? isProvidedExpanded : isExpandedState) && renderChildren && renderChildren());
127
121
  }
128
122
 
@@ -4,7 +4,6 @@ var _excluded = ["children", "singleLine", "indentLevel", "width", "className"];
4
4
  import React from 'react';
5
5
  import CommonCell from './internal/common-cell';
6
6
  import OverflowContainer from './internal/overflow-container';
7
- import { indentBase } from './internal/styled';
8
7
  import withColumnWidth from './internal/with-column-width';
9
8
  var CellComponent = function CellComponent(_ref) {
10
9
  var children = _ref.children,
@@ -14,7 +13,7 @@ var CellComponent = function CellComponent(_ref) {
14
13
  className = _ref.className,
15
14
  props = _objectWithoutProperties(_ref, _excluded);
16
15
  return /*#__PURE__*/React.createElement(CommonCell, _extends({
17
- indent: indentLevel ? "calc(".concat(indentBase, " * ").concat(indentLevel, ")") : undefined,
16
+ indent: indentLevel ? "calc(".concat("var(--ds-space-300, 25px)", " * ", indentLevel, ")") : undefined,
18
17
  width: width
19
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
20
19
  ,
@@ -0,0 +1,3 @@
1
+ ._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._k48pmoej{font-weight:var(--ds-font-weight-bold,700)}
3
+ ._syaz1vvm{color:var(--_bbz764)}
@@ -1,18 +1,11 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
-
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { css, jsx } from '@emotion/react';
1
+ /* header.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./header.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
8
5
  import { N300 } from '@atlaskit/theme/colors';
9
6
  import CommonCell from './internal/common-cell';
10
7
  import withColumnWidth from './internal/with-column-width';
11
- var headerStyles = css({
12
- color: "var(--ds-text-subtle, ".concat(N300, ")"),
13
- font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
14
- fontWeight: "var(--ds-font-weight-bold, 700)"
15
- });
8
+ var headerStyles = null;
16
9
 
17
10
  /**
18
11
  * This is hard-coded here because our actual <Header /> has no typings
@@ -32,12 +25,15 @@ var HeaderComponent = function HeaderComponent(_ref) {
32
25
  role = _ref$role === void 0 ? 'columnheader' : _ref$role;
33
26
  // TODO: Determine whether proper `th` elements can be used instead of
34
27
  // roles (DSP-11588)
35
- return jsx(CommonCell, {
36
- css: headerStyles,
28
+ return /*#__PURE__*/React.createElement(CommonCell, {
37
29
  role: role,
38
30
  width: width,
39
31
  id: id,
40
- onClick: onClick
32
+ onClick: onClick,
33
+ className: ax(["_11c8dcr7 _syaz1vvm _k48pmoej"]),
34
+ style: {
35
+ "--_bbz764": ix("var(--ds-text-subtle, ".concat(N300, ")"))
36
+ }
41
37
  }, children);
42
38
  };
43
39
  var Header = withColumnWidth(HeaderComponent);
@@ -0,0 +1,2 @@
1
+ ._179r1avd{border-block-end:var(--_zailfs)}
2
+ ._1e0c1txw{display:flex}
@@ -1,16 +1,11 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- /* eslint-disable @repo/internal/react/no-clone-element */
1
+ /* headers.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./headers.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
6
5
  import { Children, cloneElement } from 'react';
6
+ /* eslint-disable @repo/internal/react/no-clone-element */
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
- import { css, jsx } from '@emotion/react';
10
- var containerStyles = css({
11
- display: 'flex',
12
- borderBlockEnd: "solid 2px ".concat("var(--ds-border, #dfe1e6)")
13
- });
8
+ var containerStyles = null;
14
9
  /**
15
10
  * __Headers__
16
11
  *
@@ -21,18 +16,17 @@ var containerStyles = css({
21
16
  */
22
17
  var Headers = function Headers(_ref) {
23
18
  var children = _ref.children;
24
- return (
25
- // TODO: Determine whether proper `tr` elements can be used instead of
26
- // roles (DSP-11588)
27
- jsx("div", {
28
- css: containerStyles,
29
- role: "row"
30
- }, Children.map(children, function (header, index) {
31
- return /*#__PURE__*/cloneElement(header, {
32
- key: index,
33
- columnIndex: index
34
- });
35
- }))
36
- );
19
+ return /*#__PURE__*/React.createElement("div", {
20
+ role: "row",
21
+ className: ax(["_179r1avd _1e0c1txw"]),
22
+ style: {
23
+ "--_zailfs": ix("solid 2px ".concat("var(--ds-border, #dfe1e6)"))
24
+ }
25
+ }, Children.map(children, function (header, index) {
26
+ return /*#__PURE__*/cloneElement(header, {
27
+ key: index,
28
+ columnIndex: index
29
+ });
30
+ }));
37
31
  };
38
32
  export default Headers;
@@ -0,0 +1,10 @@
1
+ ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._1yt41p08{padding:var(--_1s9siax)}
3
+ ._1e0c1txw{display:flex}
4
+ ._1nmz1hna{word-break:break-word}
5
+ ._1tke1ylp{min-height:40px}
6
+ ._4cvr1h6o{align-items:center}
7
+ ._ct361wug{-ms-hyphens:auto;hyphens:auto}
8
+ ._kqswh2mm{position:relative}
9
+ ._syaz1o8f{color:var(--_ggxzyp)}
10
+ ._vchhusvi{box-sizing:border-box}
@@ -1,28 +1,15 @@
1
+ /* common-cell.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
3
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
5
  var _excluded = ["indent", "width"];
4
- /**
5
- * @jsxRuntime classic
6
- * @jsx jsx
7
- */
8
-
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
- import { css, jsx } from '@emotion/react';
6
+ import "./common-cell.compiled.css";
7
+ import * as React from 'react';
8
+ 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
11
  import { N800 } from '@atlaskit/theme/colors';
12
- import { indentBase } from './styled';
13
- var commonStyles = css({
14
- display: 'flex',
15
- boxSizing: 'border-box',
16
- minHeight: 40,
17
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
18
- padding: "var(--ds-space-100, 10px)".concat(" ", indentBase, " ", "var(--ds-space-100, 10px)", " var(--indent, ").concat(indentBase, ")"),
19
- position: 'relative',
20
- alignItems: 'center',
21
- color: "var(--ds-text, ".concat(N800, ")"),
22
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
23
- hyphens: 'auto',
24
- wordBreak: 'break-word'
25
- });
12
+ var commonStyles = null;
26
13
  /**
27
14
  * __Common cell__
28
15
  */
@@ -30,16 +17,18 @@ var CommonCell = function CommonCell(_ref) {
30
17
  var indent = _ref.indent,
31
18
  width = _ref.width,
32
19
  props = _objectWithoutProperties(_ref, _excluded);
33
- return jsx("div", _extends({
20
+ return /*#__PURE__*/React.createElement("div", _extends({
34
21
  role: "gridcell"
35
22
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
36
23
  }, props, {
37
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
38
- style: {
24
+ className: ax(["_1yt41p08 _11c82smr _1e0c1txw _vchhusvi _1tke1ylp _kqswh2mm _4cvr1h6o _syaz1o8f _ct361wug _1nmz1hna"]),
25
+ style: _objectSpread(_objectSpread({}, {
39
26
  '--indent': indent,
40
27
  width: width
41
- },
42
- css: commonStyles
28
+ }), {}, {
29
+ "--_1s9siax": ix("var(--ds-space-100, 10px)".concat(" ", "var(--ds-space-300, 25px)", " ", "var(--ds-space-100, 10px)", " var(--indent, ", "var(--ds-space-300, 25px)", ")")),
30
+ "--_ggxzyp": ix("var(--ds-text, ".concat(N800, ")"))
31
+ })
43
32
  }));
44
33
  };
45
34
  export default CommonCell;
@@ -1,12 +1,5 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
1
  /* eslint-disable @repo/internal/react/no-clone-element */
6
- import { cloneElement } from 'react';
7
-
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
- import { jsx } from '@emotion/react';
2
+ import React, { cloneElement } from 'react';
10
3
  import toItemId from '../../utils/to-item-id';
11
4
  import Items from './items';
12
5
  /**
@@ -32,9 +25,9 @@ function Item(_ref) {
32
25
  data: data,
33
26
  loadingLabel: loadingLabel,
34
27
  renderChildren: function renderChildren() {
35
- return jsx("div", {
28
+ return /*#__PURE__*/React.createElement("div", {
36
29
  id: !!itemId ? toItemId(itemId) : undefined
37
- }, jsx(Items, {
30
+ }, /*#__PURE__*/React.createElement(Items, {
38
31
  depth: depth,
39
32
  items: items,
40
33
  render: render,
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import React, { useEffect, useState } from 'react';
4
4
  import Spinner from '@atlaskit/spinner';
5
5
  import CommonCell from './common-cell';
6
- import { indentBase, LoaderItemContainer, TreeRowContainer } from './styled';
6
+ import { LoaderItemContainer, TreeRowContainer } from './styled';
7
7
  var LoaderItem = function LoaderItem(_ref) {
8
8
  var _ref$depth = _ref.depth,
9
9
  depth = _ref$depth === void 0 ? 1 : _ref$depth,
@@ -23,7 +23,7 @@ var LoaderItem = function LoaderItem(_ref) {
23
23
  }
24
24
  }, [isCompleting, onComplete, phase]);
25
25
  return phase === 'loading' ? /*#__PURE__*/React.createElement(TreeRowContainer, null, /*#__PURE__*/React.createElement(CommonCell, {
26
- indent: "calc(".concat(indentBase, " * ").concat(depth, ")"),
26
+ indent: "calc(".concat("var(--ds-space-300, 25px)", " * ", depth, ")"),
27
27
  width: "100%"
28
28
  }, /*#__PURE__*/React.createElement(LoaderItemContainer, {
29
29
  isRoot: depth === 1
@@ -0,0 +1,4 @@
1
+ ._18m915vq{overflow-y:hidden}
2
+ ._1bto1l2s{text-overflow:ellipsis}
3
+ ._1reo15vq{overflow-x:hidden}
4
+ ._o5721q9c{white-space:nowrap}
@@ -1,18 +1,11 @@
1
+ /* overflow-container.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
4
  var _excluded = ["isSingleLine"];
4
- /**
5
- * @jsxRuntime classic
6
- * @jsx jsx
7
- */
8
-
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
- import { css, jsx } from '@emotion/react';
11
- var overflowContainerStyles = css({
12
- overflow: 'hidden',
13
- textOverflow: 'ellipsis',
14
- whiteSpace: 'nowrap'
15
- });
5
+ import "./overflow-container.compiled.css";
6
+ import * as React from 'react';
7
+ import { ax, ix } from "@compiled/react/runtime";
8
+ var overflowContainerStyles = null;
16
9
 
17
10
  /**
18
11
  * __Overflow container__
@@ -20,9 +13,8 @@ var overflowContainerStyles = css({
20
13
  var OverflowContainer = function OverflowContainer(_ref) {
21
14
  var isSingleLine = _ref.isSingleLine,
22
15
  props = _objectWithoutProperties(_ref, _excluded);
23
- return jsx("span", _extends({
24
- css: isSingleLine && overflowContainerStyles
25
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
26
- }, props));
16
+ return /*#__PURE__*/React.createElement("span", _extends({}, props, {
17
+ className: ax([isSingleLine && "_1reo15vq _18m915vq _1bto1l2s _o5721q9c"])
18
+ }));
27
19
  };
28
20
  export default OverflowContainer;
@@ -0,0 +1,8 @@
1
+ ._179rskuj{border-block-end:var(--_1prvtx9)}
2
+ ._1bsb1osq{width:100%}
3
+ ._1e0c1txw{display:flex}
4
+ ._1pfhj39m{margin-block-start:-3px}
5
+ ._4cvr1h6o{align-items:center}
6
+ ._ahbq1dum{margin-inline-start:var(--_1izje1g)}
7
+ ._bozg1ssb{padding-inline-start:50%}
8
+ ._kqswstnw{position:absolute}