@atlaskit/table-tree 9.0.12 → 9.0.13
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 +17 -0
- package/dist/cjs/components/{Cell.js → cell.js} +23 -8
- package/dist/cjs/components/{Header.js → header.js} +19 -9
- package/dist/cjs/components/{Headers.js → headers.js} +11 -11
- package/dist/cjs/components/{Chevron.js → internal/chevron.js} +1 -1
- package/dist/cjs/components/internal/common-cell.js +45 -0
- package/dist/cjs/components/{Item.js → internal/item.js} +7 -11
- package/dist/cjs/components/{Items.js → internal/items.js} +4 -4
- package/dist/cjs/components/{LoaderItem.js → internal/loader-item.js} +10 -10
- package/dist/cjs/components/internal/overflow-container.js +35 -0
- package/dist/cjs/components/internal/styled.js +92 -0
- package/dist/cjs/components/{withColumnWidth.js → internal/with-column-width.js} +6 -3
- package/dist/cjs/components/{Row.js → row.js} +5 -5
- package/dist/cjs/components/{Rows.js → rows.js} +2 -3
- package/dist/cjs/components/{TableTree.js → table-tree.js} +11 -13
- package/dist/cjs/index.js +14 -14
- package/dist/cjs/utils/{TableTreeDataHelper.js → table-tree-data-helper.js} +0 -2
- package/dist/cjs/utils/{toItemId.js → to-item-id.js} +0 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/cell.js +31 -0
- package/dist/es2019/components/header.js +35 -0
- package/dist/es2019/components/headers.js +24 -0
- package/dist/es2019/components/internal/chevron.js +51 -0
- package/dist/es2019/components/internal/common-cell.js +30 -0
- package/dist/es2019/components/internal/item.js +46 -0
- package/dist/es2019/components/internal/items.js +76 -0
- package/dist/es2019/components/internal/loader-item.js +60 -0
- package/dist/es2019/components/internal/overflow-container.js +21 -0
- package/dist/es2019/components/internal/styled.js +63 -0
- package/dist/es2019/components/internal/with-column-width.js +40 -0
- package/dist/es2019/components/row.js +148 -0
- package/dist/es2019/components/rows.js +15 -0
- package/dist/es2019/components/table-tree.js +107 -0
- package/dist/es2019/index.js +7 -0
- package/dist/es2019/utils/table-tree-data-helper.js +130 -0
- package/dist/es2019/utils/to-item-id.js +3 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/{Cell.js → cell.js} +21 -7
- package/dist/esm/components/{Header.js → header.js} +21 -5
- package/dist/esm/components/{Headers.js → headers.js} +13 -5
- package/dist/esm/components/{Chevron.js → internal/chevron.js} +3 -1
- package/dist/esm/components/internal/common-cell.js +33 -0
- package/dist/esm/components/{Item.js → internal/item.js} +10 -6
- package/dist/esm/components/{Items.js → internal/items.js} +2 -2
- package/dist/esm/components/{LoaderItem.js → internal/loader-item.js} +11 -10
- package/dist/esm/components/internal/overflow-container.js +24 -0
- package/dist/esm/components/internal/styled.js +72 -0
- package/dist/esm/components/{withColumnWidth.js → internal/with-column-width.js} +6 -3
- package/dist/esm/components/{Row.js → row.js} +5 -5
- package/dist/esm/components/{Rows.js → rows.js} +1 -2
- package/dist/esm/components/{TableTree.js → table-tree.js} +6 -7
- package/dist/esm/index.js +7 -7
- package/dist/esm/utils/{TableTreeDataHelper.js → table-tree-data-helper.js} +0 -4
- package/dist/esm/utils/{toItemId.js → to-item-id.js} +0 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/components/cell.d.ts +66 -0
- package/dist/types/components/header.d.ts +60 -0
- package/dist/types/components/headers.d.ts +5 -0
- package/dist/types/components/internal/chevron.d.ts +17 -0
- package/dist/types/components/internal/common-cell.d.ts +10 -0
- package/dist/types/components/internal/item.d.ts +12 -0
- package/dist/types/components/internal/items.d.ts +24 -0
- package/dist/types/components/internal/loader-item.d.ts +20 -0
- package/dist/types/components/internal/overflow-container.d.ts +10 -0
- package/dist/types/components/internal/styled.d.ts +25 -0
- package/dist/types/components/internal/with-column-width.d.ts +64 -0
- package/dist/types/components/row.d.ts +19 -0
- package/dist/types/components/rows.d.ts +12 -0
- package/dist/types/components/table-tree.d.ts +23 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/utils/table-tree-data-helper.d.ts +25 -0
- package/dist/types/utils/to-item-id.d.ts +1 -0
- package/package.json +23 -6
- package/dist/cjs/styled.js +0 -111
- package/dist/esm/styled.js +0 -68
- package/styled/package.json +0 -6
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
interface State {
|
|
4
|
+
columnWidths: number[];
|
|
5
|
+
}
|
|
6
|
+
export default class TableTree extends Component<any, State> {
|
|
7
|
+
static childContextTypes: {
|
|
8
|
+
tableTree: PropTypes.Validator<any>;
|
|
9
|
+
};
|
|
10
|
+
state: State;
|
|
11
|
+
componentDidMount(): void;
|
|
12
|
+
setColumnWidth: (columnIndex: number, width: number) => void;
|
|
13
|
+
getColumnWidth: (columnIndex: any) => number | null;
|
|
14
|
+
getChildContext(): {
|
|
15
|
+
tableTree: {
|
|
16
|
+
columnWidths: number[];
|
|
17
|
+
setColumnWidth: (columnIndex: number, width: number) => void;
|
|
18
|
+
getColumnWidth: (columnIndex: any) => number | null;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
render(): JSX.Element;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default } from './components/table-tree';
|
|
2
|
+
export { default as Headers } from './components/headers';
|
|
3
|
+
export { default as Header } from './components/header';
|
|
4
|
+
export { default as Cell } from './components/cell';
|
|
5
|
+
export { default as Rows } from './components/rows';
|
|
6
|
+
export { default as Row } from './components/row';
|
|
7
|
+
export { default as TableTreeDataHelper } from './utils/table-tree-data-helper';
|
|
8
|
+
export type { CellWithColumnWidthProps } from './components/internal/with-column-width';
|
|
9
|
+
export type { CellProps } from './components/cell';
|
|
10
|
+
export type { RowsProps } from './components/rows';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This helper class will create a cache of all the id's in the items object and
|
|
3
|
+
* path to the object.
|
|
4
|
+
* Example:
|
|
5
|
+
* [{
|
|
6
|
+
* // item 1,
|
|
7
|
+
* id: 1,
|
|
8
|
+
* children:[{
|
|
9
|
+
* // item 1.1,
|
|
10
|
+
* id: '2'
|
|
11
|
+
* }]
|
|
12
|
+
* }]
|
|
13
|
+
*
|
|
14
|
+
* Cache will look something like:
|
|
15
|
+
* {1: 0, 2: '0.children[0]'}
|
|
16
|
+
*/
|
|
17
|
+
export default class TableTreeDataHelper<T extends any = any> {
|
|
18
|
+
key: keyof T;
|
|
19
|
+
keysCache: any;
|
|
20
|
+
constructor({ key }?: {
|
|
21
|
+
key?: keyof T | undefined;
|
|
22
|
+
});
|
|
23
|
+
updateItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
|
|
24
|
+
appendItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function toItemId(id: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table-tree",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.13",
|
|
4
4
|
"description": "A React Component for displaying expandable tables with tree-like hierarchies",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -10,30 +10,35 @@
|
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"main": "dist/cjs/index.js",
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
13
15
|
"sideEffects": false,
|
|
14
|
-
"atlaskit:src": "src/index.
|
|
16
|
+
"atlaskit:src": "src/index.tsx",
|
|
15
17
|
"atlassian": {
|
|
16
18
|
"team": "Design System Team",
|
|
17
|
-
"deprecatedAutoEntryPoints": true,
|
|
18
19
|
"inPublicMirror": true,
|
|
19
20
|
"releaseModel": "scheduled",
|
|
20
21
|
"website": {
|
|
21
22
|
"name": "Table Tree"
|
|
22
23
|
}
|
|
23
24
|
},
|
|
25
|
+
"af:exports": {
|
|
26
|
+
".": "./src/index.tsx"
|
|
27
|
+
},
|
|
24
28
|
"dependencies": {
|
|
25
29
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
26
30
|
"@atlaskit/button": "^16.0.0",
|
|
27
31
|
"@atlaskit/icon": "^21.9.0",
|
|
28
32
|
"@atlaskit/spinner": "^15.0.0",
|
|
29
33
|
"@atlaskit/theme": "^12.0.0",
|
|
34
|
+
"@atlaskit/tokens": "^0.4.0",
|
|
30
35
|
"@babel/runtime": "^7.0.0",
|
|
36
|
+
"@emotion/core": "^10.0.9",
|
|
31
37
|
"lodash": "^4.17.15",
|
|
32
38
|
"prop-types": "^15.5.10"
|
|
33
39
|
},
|
|
34
40
|
"peerDependencies": {
|
|
35
|
-
"react": "^16.8.0"
|
|
36
|
-
"styled-components": "^3.2.6"
|
|
41
|
+
"react": "^16.8.0"
|
|
37
42
|
},
|
|
38
43
|
"devDependencies": {
|
|
39
44
|
"@atlaskit/build-utils": "*",
|
|
@@ -44,6 +49,7 @@
|
|
|
44
49
|
"@atlaskit/ssr": "*",
|
|
45
50
|
"@atlaskit/visual-regression": "*",
|
|
46
51
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
52
|
+
"@emotion/styled": "^10.0.7",
|
|
47
53
|
"enzyme": "^3.10.0",
|
|
48
54
|
"exenv": "^1.2.2",
|
|
49
55
|
"react-dom": "^16.8.0",
|
|
@@ -59,7 +65,18 @@
|
|
|
59
65
|
],
|
|
60
66
|
"techstack": {
|
|
61
67
|
"@atlassian/frontend": {
|
|
62
|
-
"import-structure": "atlassian-conventions"
|
|
68
|
+
"import-structure": "atlassian-conventions",
|
|
69
|
+
"circular-dependencies": "file-and-folder-level"
|
|
70
|
+
},
|
|
71
|
+
"@repo/internal": {
|
|
72
|
+
"design-system": "v1",
|
|
73
|
+
"styling": [
|
|
74
|
+
"static",
|
|
75
|
+
"emotion"
|
|
76
|
+
],
|
|
77
|
+
"analytics": "analytics-next",
|
|
78
|
+
"theming": "tokens",
|
|
79
|
+
"deprecation": "no-deprecated-imports"
|
|
63
80
|
}
|
|
64
81
|
},
|
|
65
82
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
package/dist/cjs/styled.js
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.TableTreeContainer = exports.Header = exports.Cell = exports.OverflowContainer = exports.LoaderItemContainer = exports.ChevronIconContainer = exports.ChevronContainer = exports.HeadersContainer = exports.TreeRowContainer = exports.iconColor = void 0;
|
|
9
|
-
|
|
10
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
|
-
|
|
12
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
13
|
-
|
|
14
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
-
|
|
16
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
|
|
18
|
-
// Future-proofing: Styled Component 2.x no longer tolerate unitless values for CSS length.
|
|
19
|
-
// See:
|
|
20
|
-
// https://github.com/styled-components/css-to-react-native/issues/20
|
|
21
|
-
// https://github.com/styled-components/polished/issues/234
|
|
22
|
-
function defaultToPx(length) {
|
|
23
|
-
var number = +length;
|
|
24
|
-
|
|
25
|
-
if (number === 0) {
|
|
26
|
-
return 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
if (Number.isNaN(number)) {
|
|
30
|
-
return length;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return "".concat(number, "px");
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
var iconColor = _colors.N800;
|
|
37
|
-
exports.iconColor = iconColor;
|
|
38
|
-
|
|
39
|
-
var TreeRowContainer = _styledComponents.default.div.withConfig({
|
|
40
|
-
displayName: "styled__TreeRowContainer",
|
|
41
|
-
componentId: "sc-56yt3z-0"
|
|
42
|
-
})(["\n border-bottom: 1px solid ", ";\n display: flex;\n"], _colors.N30);
|
|
43
|
-
|
|
44
|
-
exports.TreeRowContainer = TreeRowContainer;
|
|
45
|
-
|
|
46
|
-
var HeadersContainer = _styledComponents.default.div.withConfig({
|
|
47
|
-
displayName: "styled__HeadersContainer",
|
|
48
|
-
componentId: "sc-56yt3z-1"
|
|
49
|
-
})(["\n border-bottom: solid 2px #dfe1e6;\n display: flex;\n"]);
|
|
50
|
-
|
|
51
|
-
exports.HeadersContainer = HeadersContainer;
|
|
52
|
-
var indentWidth = 25;
|
|
53
|
-
var commonChevronContainer = (0, _styledComponents.css)(["\n display: flex;\n align-items: center;\n position: absolute;\n top: 7px;\n margin-left: ", ";\n"], defaultToPx(-indentWidth));
|
|
54
|
-
|
|
55
|
-
var ChevronContainer = _styledComponents.default.span.withConfig({
|
|
56
|
-
displayName: "styled__ChevronContainer",
|
|
57
|
-
componentId: "sc-56yt3z-2"
|
|
58
|
-
})(["\n ", ";\n"], commonChevronContainer);
|
|
59
|
-
|
|
60
|
-
exports.ChevronContainer = ChevronContainer;
|
|
61
|
-
|
|
62
|
-
var ChevronIconContainer = _styledComponents.default.span.withConfig({
|
|
63
|
-
displayName: "styled__ChevronIconContainer",
|
|
64
|
-
componentId: "sc-56yt3z-3"
|
|
65
|
-
})(["\n position: relative;\n top: 1px;\n"]);
|
|
66
|
-
|
|
67
|
-
exports.ChevronIconContainer = ChevronIconContainer;
|
|
68
|
-
|
|
69
|
-
var LoaderItemContainer = _styledComponents.default.span.withConfig({
|
|
70
|
-
displayName: "styled__LoaderItemContainer",
|
|
71
|
-
componentId: "sc-56yt3z-4"
|
|
72
|
-
})(["\n ", " padding-top: 5px;\n width: 100%;\n\n ", ";\n"], commonChevronContainer, function (props) {
|
|
73
|
-
return props.isRoot && (0, _styledComponents.css)(["\n padding-left: 50%;\n "]);
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
exports.LoaderItemContainer = LoaderItemContainer;
|
|
77
|
-
var commonCell = (0, _styledComponents.css)(["\n display: flex;\n align-items: flex-start;\n position: relative;\n box-sizing: border-box;\n min-height: 40px;\n padding: 10px ", ";\n color: ", ";\n line-height: 20px;\n ", ";\n"], defaultToPx(indentWidth), _colors.N800, function (props) {
|
|
78
|
-
return props.width && (0, _styledComponents.css)(["\n width: ", ";\n "], defaultToPx(props.width));
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
var OverflowContainer = _styledComponents.default.span.withConfig({
|
|
82
|
-
displayName: "styled__OverflowContainer",
|
|
83
|
-
componentId: "sc-56yt3z-5"
|
|
84
|
-
})(["\n ", ";\n"], function (props) {
|
|
85
|
-
return props.singleLine && (0, _styledComponents.css)(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n "]);
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
exports.OverflowContainer = OverflowContainer;
|
|
89
|
-
|
|
90
|
-
var Cell = _styledComponents.default.div.withConfig({
|
|
91
|
-
displayName: "styled__Cell",
|
|
92
|
-
componentId: "sc-56yt3z-6"
|
|
93
|
-
})(["\n ", " ", ";\n"], commonCell, function (props) {
|
|
94
|
-
return props.indentLevel && (0, _styledComponents.css)(["\n padding-left: ", ";\n "], defaultToPx(indentWidth * props.indentLevel));
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
exports.Cell = Cell;
|
|
98
|
-
|
|
99
|
-
var Header = _styledComponents.default.div.withConfig({
|
|
100
|
-
displayName: "styled__Header",
|
|
101
|
-
componentId: "sc-56yt3z-7"
|
|
102
|
-
})(["\n ", " font-weight: bold;\n font-size: 12px;\n line-height: 1.67;\n letter-spacing: -0.1px;\n color: ", ";\n"], commonCell, _colors.N300);
|
|
103
|
-
|
|
104
|
-
exports.Header = Header;
|
|
105
|
-
|
|
106
|
-
var TableTreeContainer = _styledComponents.default.div.withConfig({
|
|
107
|
-
displayName: "styled__TableTreeContainer",
|
|
108
|
-
componentId: "sc-56yt3z-8"
|
|
109
|
-
})([""]);
|
|
110
|
-
|
|
111
|
-
exports.TableTreeContainer = TableTreeContainer;
|
package/dist/esm/styled.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import { N30, N300, N800 } from '@atlaskit/theme/colors'; // Future-proofing: Styled Component 2.x no longer tolerate unitless values for CSS length.
|
|
3
|
-
// See:
|
|
4
|
-
// https://github.com/styled-components/css-to-react-native/issues/20
|
|
5
|
-
// https://github.com/styled-components/polished/issues/234
|
|
6
|
-
|
|
7
|
-
function defaultToPx(length) {
|
|
8
|
-
var number = +length;
|
|
9
|
-
|
|
10
|
-
if (number === 0) {
|
|
11
|
-
return 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
if (Number.isNaN(number)) {
|
|
15
|
-
return length;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return "".concat(number, "px");
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export var iconColor = N800;
|
|
22
|
-
export var TreeRowContainer = styled.div.withConfig({
|
|
23
|
-
displayName: "styled__TreeRowContainer",
|
|
24
|
-
componentId: "sc-56yt3z-0"
|
|
25
|
-
})(["\n border-bottom: 1px solid ", ";\n display: flex;\n"], N30);
|
|
26
|
-
export var HeadersContainer = styled.div.withConfig({
|
|
27
|
-
displayName: "styled__HeadersContainer",
|
|
28
|
-
componentId: "sc-56yt3z-1"
|
|
29
|
-
})(["\n border-bottom: solid 2px #dfe1e6;\n display: flex;\n"]);
|
|
30
|
-
var indentWidth = 25;
|
|
31
|
-
var commonChevronContainer = css(["\n display: flex;\n align-items: center;\n position: absolute;\n top: 7px;\n margin-left: ", ";\n"], defaultToPx(-indentWidth));
|
|
32
|
-
export var ChevronContainer = styled.span.withConfig({
|
|
33
|
-
displayName: "styled__ChevronContainer",
|
|
34
|
-
componentId: "sc-56yt3z-2"
|
|
35
|
-
})(["\n ", ";\n"], commonChevronContainer);
|
|
36
|
-
export var ChevronIconContainer = styled.span.withConfig({
|
|
37
|
-
displayName: "styled__ChevronIconContainer",
|
|
38
|
-
componentId: "sc-56yt3z-3"
|
|
39
|
-
})(["\n position: relative;\n top: 1px;\n"]);
|
|
40
|
-
export var LoaderItemContainer = styled.span.withConfig({
|
|
41
|
-
displayName: "styled__LoaderItemContainer",
|
|
42
|
-
componentId: "sc-56yt3z-4"
|
|
43
|
-
})(["\n ", " padding-top: 5px;\n width: 100%;\n\n ", ";\n"], commonChevronContainer, function (props) {
|
|
44
|
-
return props.isRoot && css(["\n padding-left: 50%;\n "]);
|
|
45
|
-
});
|
|
46
|
-
var commonCell = css(["\n display: flex;\n align-items: flex-start;\n position: relative;\n box-sizing: border-box;\n min-height: 40px;\n padding: 10px ", ";\n color: ", ";\n line-height: 20px;\n ", ";\n"], defaultToPx(indentWidth), N800, function (props) {
|
|
47
|
-
return props.width && css(["\n width: ", ";\n "], defaultToPx(props.width));
|
|
48
|
-
});
|
|
49
|
-
export var OverflowContainer = styled.span.withConfig({
|
|
50
|
-
displayName: "styled__OverflowContainer",
|
|
51
|
-
componentId: "sc-56yt3z-5"
|
|
52
|
-
})(["\n ", ";\n"], function (props) {
|
|
53
|
-
return props.singleLine && css(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n "]);
|
|
54
|
-
});
|
|
55
|
-
export var Cell = styled.div.withConfig({
|
|
56
|
-
displayName: "styled__Cell",
|
|
57
|
-
componentId: "sc-56yt3z-6"
|
|
58
|
-
})(["\n ", " ", ";\n"], commonCell, function (props) {
|
|
59
|
-
return props.indentLevel && css(["\n padding-left: ", ";\n "], defaultToPx(indentWidth * props.indentLevel));
|
|
60
|
-
});
|
|
61
|
-
export var Header = styled.div.withConfig({
|
|
62
|
-
displayName: "styled__Header",
|
|
63
|
-
componentId: "sc-56yt3z-7"
|
|
64
|
-
})(["\n ", " font-weight: bold;\n font-size: 12px;\n line-height: 1.67;\n letter-spacing: -0.1px;\n color: ", ";\n"], commonCell, N300);
|
|
65
|
-
export var TableTreeContainer = styled.div.withConfig({
|
|
66
|
-
displayName: "styled__TableTreeContainer",
|
|
67
|
-
componentId: "sc-56yt3z-8"
|
|
68
|
-
})([""]);
|