@atlaskit/dynamic-table 14.6.1 → 14.7.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.
- package/CHANGELOG.md +15 -0
- package/dist/cjs/components/{Body.js → body.js} +3 -3
- package/dist/cjs/components/{LoadingContainerAdvanced.js → loading-container-advanced.js} +3 -3
- package/dist/cjs/components/{LoadingContainer.js → loading-container.js} +3 -3
- package/dist/cjs/components/rankable/{Body.js → body.js} +3 -3
- package/dist/cjs/components/rankable/{TableCell.js → table-cell.js} +3 -3
- package/dist/cjs/components/rankable/{TableHeadCell.js → table-head-cell.js} +3 -3
- package/dist/cjs/components/rankable/{TableRow.js → table-row.js} +5 -5
- package/dist/cjs/components/{Stateful.js → stateful.js} +6 -4
- package/dist/cjs/components/{Stateless.js → stateless.js} +32 -23
- package/dist/cjs/components/{TableHeadCell.js → table-head-cell.js} +5 -3
- package/dist/cjs/components/{TableHead.js → table-head.js} +7 -6
- package/dist/cjs/components/{TableRow.js → table-row.js} +6 -5
- package/dist/cjs/hoc/{withDimensions.js → with-dimensions.js} +0 -0
- package/dist/cjs/hoc/{withSortedPageRows.js → with-sorted-page-rows.js} +0 -0
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/styled/constants.js +2 -2
- package/dist/cjs/styled/{DynamicTable.js → dynamic-table.js} +19 -25
- package/dist/cjs/styled/{EmptyBody.js → empty-body.js} +4 -2
- package/dist/cjs/styled/{LoadingContainerAdvanced.js → loading-container-advanced.js} +10 -6
- package/dist/cjs/styled/{LoadingContainer.js → loading-container.js} +5 -3
- package/dist/cjs/styled/rankable/{RowPlaceholder.js → row-placeholder.js} +6 -4
- package/dist/cjs/styled/rankable/{TableCell.js → table-cell.js} +5 -4
- package/dist/cjs/styled/rankable/{TableRow.js → table-row.js} +10 -9
- package/dist/cjs/styled/{TableCell.js → table-cell.js} +3 -1
- package/dist/cjs/styled/{TableHead.js → table-head.js} +73 -95
- package/dist/cjs/styled/{TableRow.js → table-row.js} +7 -6
- package/dist/cjs/theme.js +13 -40
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/{Body.js → body.js} +2 -2
- package/dist/es2019/components/{LoadingContainerAdvanced.js → loading-container-advanced.js} +1 -1
- package/dist/es2019/components/{LoadingContainer.js → loading-container.js} +1 -1
- package/dist/es2019/components/rankable/{Body.js → body.js} +2 -2
- package/dist/es2019/components/rankable/{TableCell.js → table-cell.js} +2 -2
- package/dist/es2019/components/rankable/{TableHeadCell.js → table-head-cell.js} +2 -2
- package/dist/es2019/components/rankable/{TableRow.js → table-row.js} +3 -3
- package/dist/es2019/components/{Stateful.js → stateful.js} +4 -3
- package/dist/es2019/components/{Stateless.js → stateless.js} +24 -16
- package/dist/es2019/components/{TableHeadCell.js → table-head-cell.js} +4 -2
- package/dist/es2019/components/{TableHead.js → table-head.js} +5 -4
- package/dist/es2019/components/{TableRow.js → table-row.js} +4 -3
- package/dist/es2019/hoc/{withDimensions.js → with-dimensions.js} +0 -0
- package/dist/es2019/hoc/{withSortedPageRows.js → with-sorted-page-rows.js} +0 -0
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/styled/constants.js +4 -6
- package/dist/es2019/styled/{DynamicTable.js → dynamic-table.js} +24 -27
- package/dist/es2019/styled/{EmptyBody.js → empty-body.js} +4 -2
- package/dist/es2019/styled/{LoadingContainerAdvanced.js → loading-container-advanced.js} +7 -4
- package/dist/es2019/styled/{LoadingContainer.js → loading-container.js} +5 -3
- package/dist/es2019/styled/rankable/row-placeholder.js +12 -0
- package/dist/es2019/styled/rankable/{TableCell.js → table-cell.js} +5 -3
- package/dist/es2019/styled/rankable/{TableRow.js → table-row.js} +9 -8
- package/dist/es2019/styled/{TableCell.js → table-cell.js} +4 -2
- package/dist/es2019/styled/table-head.js +138 -0
- package/dist/es2019/styled/{TableRow.js → table-row.js} +3 -2
- package/dist/es2019/theme.js +10 -37
- package/dist/es2019/types.js +1 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/{Body.js → body.js} +2 -2
- package/dist/esm/components/{LoadingContainerAdvanced.js → loading-container-advanced.js} +1 -1
- package/dist/esm/components/{LoadingContainer.js → loading-container.js} +1 -1
- package/dist/esm/components/rankable/{Body.js → body.js} +2 -2
- package/dist/esm/components/rankable/{TableCell.js → table-cell.js} +2 -2
- package/dist/esm/components/rankable/{TableHeadCell.js → table-head-cell.js} +2 -2
- package/dist/esm/components/rankable/{TableRow.js → table-row.js} +3 -3
- package/dist/esm/components/{Stateful.js → stateful.js} +4 -3
- package/dist/esm/components/{Stateless.js → stateless.js} +24 -16
- package/dist/esm/components/{TableHeadCell.js → table-head-cell.js} +4 -2
- package/dist/esm/components/{TableHead.js → table-head.js} +5 -4
- package/dist/esm/components/{TableRow.js → table-row.js} +4 -3
- package/dist/esm/hoc/{withDimensions.js → with-dimensions.js} +0 -0
- package/dist/esm/hoc/{withSortedPageRows.js → with-sorted-page-rows.js} +0 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/styled/constants.js +2 -2
- package/dist/esm/styled/{DynamicTable.js → dynamic-table.js} +22 -25
- package/dist/esm/styled/{EmptyBody.js → empty-body.js} +4 -2
- package/dist/esm/styled/{LoadingContainerAdvanced.js → loading-container-advanced.js} +10 -6
- package/dist/esm/styled/{LoadingContainer.js → loading-container.js} +5 -3
- package/dist/esm/styled/rankable/{RowPlaceholder.js → row-placeholder.js} +7 -4
- package/dist/esm/styled/rankable/{TableCell.js → table-cell.js} +5 -3
- package/dist/esm/styled/rankable/{TableRow.js → table-row.js} +9 -8
- package/dist/esm/styled/{TableCell.js → table-cell.js} +4 -2
- package/dist/esm/styled/{TableHead.js → table-head.js} +75 -94
- package/dist/esm/styled/{TableRow.js → table-row.js} +3 -2
- package/dist/esm/theme.js +10 -37
- package/dist/esm/types.js +1 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/components/{Body.d.ts → body.d.ts} +23 -23
- package/dist/types/components/{LoadingContainerAdvanced.d.ts → loading-container-advanced.d.ts} +5 -5
- package/dist/types/components/{LoadingContainer.d.ts → loading-container.d.ts} +0 -0
- package/dist/types/components/rankable/body.d.ts +122 -0
- package/dist/types/components/rankable/table-cell.d.ts +14 -0
- package/dist/types/components/rankable/table-head-cell.d.ts +5 -0
- package/dist/types/components/rankable/table-row.d.ts +18 -0
- package/dist/types/components/{Stateful.d.ts → stateful.d.ts} +3 -2
- package/dist/types/components/{Stateless.d.ts → stateless.d.ts} +9 -8
- package/dist/types/components/{TableHeadCell.d.ts → table-head-cell.d.ts} +2 -2
- package/dist/types/components/{TableHead.d.ts → table-head.d.ts} +3 -3
- package/dist/types/components/{TableRow.d.ts → table-row.d.ts} +2 -2
- package/dist/types/hoc/{withDimensions.d.ts → with-dimensions.d.ts} +0 -0
- package/dist/types/hoc/{withSortedPageRows.d.ts → with-sorted-page-rows.d.ts} +23 -23
- package/dist/types/index.d.ts +2 -2
- package/dist/types/styled/constants.d.ts +2 -2
- package/dist/types/styled/{DynamicTable.d.ts → dynamic-table.d.ts} +2 -1
- package/dist/types/styled/{EmptyBody.d.ts → empty-body.d.ts} +0 -0
- package/dist/types/styled/{LoadingContainerAdvanced.d.ts → loading-container-advanced.d.ts} +0 -0
- package/dist/types/styled/{LoadingContainer.d.ts → loading-container.d.ts} +0 -0
- package/dist/types/styled/rankable/{RowPlaceholder.d.ts → row-placeholder.d.ts} +0 -0
- package/dist/types/styled/rankable/{TableCell.d.ts → table-cell.d.ts} +0 -0
- package/dist/types/styled/rankable/{TableRow.d.ts → table-row.d.ts} +1 -1
- package/dist/types/styled/{TableCell.d.ts → table-cell.d.ts} +0 -0
- package/dist/types/styled/{TableHead.d.ts → table-head.d.ts} +0 -2
- package/dist/types/styled/{TableRow.d.ts → table-row.d.ts} +0 -0
- package/dist/types/theme.d.ts +10 -9
- package/dist/types/types.d.ts +37 -33
- package/package.json +5 -3
- package/dist/es2019/styled/TableHead.js +0 -160
- package/dist/es2019/styled/rankable/RowPlaceholder.js +0 -10
- package/dist/types/components/rankable/Body.d.ts +0 -122
- package/dist/types/components/rankable/TableCell.d.ts +0 -14
- package/dist/types/components/rankable/TableHeadCell.d.ts +0 -5
- package/dist/types/components/rankable/TableRow.d.ts +0 -18
|
@@ -8,131 +8,114 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
8
8
|
|
|
9
9
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10
10
|
|
|
11
|
+
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
12
|
+
|
|
11
13
|
/** @jsx jsx */
|
|
12
14
|
import { forwardRef } from 'react';
|
|
13
15
|
import { css, jsx } from '@emotion/core';
|
|
14
16
|
import { B100, N30A } from '@atlaskit/theme/colors';
|
|
15
|
-
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
16
17
|
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
17
18
|
import { ASC, DESC } from '../internal/constants';
|
|
18
|
-
import { arrow, head, MSThemeColors } from '../theme';
|
|
19
|
+
import { arrow, head, MSThemeColors, tableBorder } from '../theme';
|
|
19
20
|
import { cellStyles, fixedSizeTruncateStyles, getTruncationStyleVars, overflowTruncateStyles, truncationWidthStyles } from './constants';
|
|
20
21
|
var gridSize = getGridSize();
|
|
21
22
|
var CSS_VAR_TEXT_COLOR = '--local-dynamic-table-text-color';
|
|
22
23
|
var rankingStyles = css({
|
|
23
24
|
display: 'block'
|
|
24
25
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
borderBottom: "2px solid ".concat(head.borderColor({
|
|
29
|
-
theme: theme
|
|
30
|
-
}))
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
|
|
26
|
+
var headStyles = css({
|
|
27
|
+
borderBottom: "none"
|
|
28
|
+
});
|
|
34
29
|
export var Head = function Head(_ref) {
|
|
35
30
|
var isRanking = _ref.isRanking,
|
|
36
31
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
37
32
|
|
|
38
|
-
var theme = useGlobalTheme();
|
|
39
33
|
return jsx("thead", _extends({
|
|
40
|
-
css: [
|
|
34
|
+
css: [headStyles, isRanking && rankingStyles] // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
35
|
+
|
|
41
36
|
}, props));
|
|
42
37
|
};
|
|
43
38
|
var headCellStyles = css([cellStyles, {
|
|
44
|
-
border: 'none',
|
|
45
39
|
boxSizing: 'border-box',
|
|
40
|
+
position: 'relative',
|
|
41
|
+
border: 'none',
|
|
42
|
+
borderBottom: "2px solid ".concat(tableBorder.borderColor),
|
|
43
|
+
color: "var(--ds-text-subtlest, ".concat("var(".concat(CSS_VAR_TEXT_COLOR, ")"), ")"),
|
|
46
44
|
fontSize: '12px',
|
|
47
45
|
fontWeight: 600,
|
|
48
|
-
position: 'relative',
|
|
49
46
|
textAlign: 'left',
|
|
50
47
|
verticalAlign: 'top',
|
|
51
|
-
color: "var(--ds-text-subtlest, ".concat("var(".concat(CSS_VAR_TEXT_COLOR, ")"), ")"),
|
|
52
48
|
'&:focus': {
|
|
53
49
|
outline: "solid 2px ".concat("var(--ds-border-focused, ".concat(B100, ")"))
|
|
54
50
|
}
|
|
55
|
-
}]);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
}]);
|
|
52
|
+
var onClickStyles = css({
|
|
53
|
+
'&:hover': {
|
|
54
|
+
backgroundColor: "var(--ds-background-neutral-hovered, ".concat(N30A, ")"),
|
|
55
|
+
cursor: 'pointer'
|
|
60
56
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
57
|
+
});
|
|
58
|
+
var baseStyles = css({
|
|
59
|
+
'& > span': {
|
|
60
|
+
position: 'relative',
|
|
61
|
+
'&::before, &::after': {
|
|
62
|
+
display: 'block',
|
|
63
|
+
width: 0,
|
|
64
|
+
height: 0,
|
|
65
|
+
position: 'absolute',
|
|
66
|
+
right: "-".concat(gridSize, "px"),
|
|
67
|
+
border: '3px solid transparent',
|
|
68
|
+
content: '""'
|
|
69
|
+
},
|
|
70
|
+
'&::before': {
|
|
71
|
+
bottom: '8px',
|
|
72
|
+
borderBottom: "3px solid ".concat(arrow.defaultColor)
|
|
73
|
+
},
|
|
74
|
+
'&::after': {
|
|
75
|
+
bottom: 0,
|
|
76
|
+
borderTop: "3px solid ".concat(arrow.defaultColor)
|
|
70
77
|
}
|
|
71
|
-
}
|
|
72
|
-
|
|
78
|
+
},
|
|
79
|
+
'@media (forced-colors: active)': {
|
|
73
80
|
'& > span': {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
borderBottom: "3px solid ".concat(sortOrder === ASC ? arrow.selectedColor({
|
|
78
|
-
theme: theme
|
|
79
|
-
}) : arrow.defaultColor({
|
|
80
|
-
theme: theme
|
|
81
|
-
})),
|
|
82
|
-
bottom: '8px',
|
|
83
|
-
content: '""'
|
|
84
|
-
}),
|
|
85
|
-
'&::after': _objectSpread(_objectSpread({}, pseudoBaseStyles), {}, {
|
|
86
|
-
position: 'absolute',
|
|
87
|
-
borderTop: "3px solid ".concat(sortOrder === DESC ? arrow.selectedColor({
|
|
88
|
-
theme: theme
|
|
89
|
-
}) : arrow.defaultColor({
|
|
90
|
-
theme: theme
|
|
91
|
-
})),
|
|
92
|
-
bottom: 0,
|
|
93
|
-
content: '""'
|
|
94
|
-
})
|
|
95
|
-
},
|
|
96
|
-
'&:hover > span': {
|
|
81
|
+
'&::before, &::after': {
|
|
82
|
+
border: "3px solid ".concat(MSThemeColors.Background)
|
|
83
|
+
},
|
|
97
84
|
'&::before': {
|
|
98
|
-
borderBottom: "3px solid
|
|
99
|
-
theme: theme
|
|
100
|
-
}) : arrow.hoverColor({
|
|
101
|
-
theme: theme
|
|
102
|
-
}))
|
|
85
|
+
borderBottom: "3px solid ".concat(MSThemeColors.Text)
|
|
103
86
|
},
|
|
104
87
|
'&::after': {
|
|
105
|
-
borderTop: "3px solid
|
|
106
|
-
theme: theme
|
|
107
|
-
}) : arrow.hoverColor({
|
|
108
|
-
theme: theme
|
|
109
|
-
}))
|
|
88
|
+
borderTop: "3px solid ".concat(MSThemeColors.Text)
|
|
110
89
|
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
var ascendingStyles = css({
|
|
94
|
+
'& > span': {
|
|
95
|
+
'&::before': {
|
|
96
|
+
borderBottom: "3px solid ".concat(arrow.selectedColor)
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
'@media (forced-colors: active)': {
|
|
100
|
+
'& > span': {
|
|
101
|
+
'&::before': {
|
|
102
|
+
borderBottom: "3px solid ".concat(MSThemeColors.SelectedBackground)
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
var descendingStyles = css({
|
|
108
|
+
'& > span': {
|
|
109
|
+
'&::after': {
|
|
110
|
+
borderTop: "3px solid ".concat(arrow.selectedColor)
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
'@media (forced-colors: active)': {
|
|
114
|
+
'& > span': {
|
|
115
|
+
'&::after': {
|
|
116
|
+
borderTop: "3px solid ".concat(MSThemeColors.SelectedBackground)
|
|
128
117
|
}
|
|
129
118
|
}
|
|
130
|
-
});
|
|
131
|
-
};
|
|
132
|
-
var onClickStyles = css({
|
|
133
|
-
'&:hover': {
|
|
134
|
-
cursor: 'pointer',
|
|
135
|
-
backgroundColor: "var(--ds-background-neutral-hovered, ".concat(N30A, ")")
|
|
136
119
|
}
|
|
137
120
|
});
|
|
138
121
|
export var HeadCell = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
@@ -146,17 +129,15 @@ export var HeadCell = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
146
129
|
style = _ref2.style,
|
|
147
130
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
148
131
|
|
|
149
|
-
var theme = useGlobalTheme();
|
|
150
|
-
|
|
151
132
|
var mergedStyles = _objectSpread(_objectSpread(_objectSpread({}, style), width && getTruncationStyleVars({
|
|
152
133
|
width: width
|
|
153
|
-
})), {}, _defineProperty({}, CSS_VAR_TEXT_COLOR, head.textColor
|
|
154
|
-
theme: theme
|
|
155
|
-
})));
|
|
134
|
+
})), {}, _defineProperty({}, CSS_VAR_TEXT_COLOR, head.textColor));
|
|
156
135
|
|
|
136
|
+
var isASC = sortOrder === ASC;
|
|
137
|
+
var isDESC = sortOrder === DESC;
|
|
157
138
|
return jsx("th", _extends({
|
|
158
139
|
style: mergedStyles,
|
|
159
|
-
css: [headCellStyles, onClick && onClickStyles, truncationWidthStyles, isFixedSize && shouldTruncate && fixedSizeTruncateStyles, isFixedSize && overflowTruncateStyles,
|
|
140
|
+
css: [headCellStyles, onClick && onClickStyles, truncationWidthStyles, isFixedSize && shouldTruncate && fixedSizeTruncateStyles, isFixedSize && overflowTruncateStyles, isSortable && baseStyles, isASC && ascendingStyles, isDESC && descendingStyles],
|
|
160
141
|
onClick: onClick,
|
|
161
142
|
ref: ref
|
|
162
143
|
}, rest), children);
|
|
@@ -5,7 +5,7 @@ var _excluded = ["isHighlighted", "children", "style"];
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
7
|
import { css, jsx } from '@emotion/core';
|
|
8
|
-
import { tableRowCSSVars as cssVars } from './
|
|
8
|
+
import { tableRowCSSVars as cssVars } from './dynamic-table';
|
|
9
9
|
var rowStyles = css({
|
|
10
10
|
'&:focus': {
|
|
11
11
|
outline: "2px solid ".concat("var(--ds-border-focused, ".concat("var(".concat(cssVars.CSS_VAR_HOVER_BACKGROUND, ")"), ")")),
|
|
@@ -22,7 +22,8 @@ var rowHighlightedBackgroundStyles = css({
|
|
|
22
22
|
'&:hover': {
|
|
23
23
|
backgroundColor: "var(--ds-background-selected-hovered, ".concat("var(".concat(cssVars.CSS_VAR_HOVER_HIGHLIGHTED_BACKGROUND, ")"), ")")
|
|
24
24
|
}
|
|
25
|
-
});
|
|
25
|
+
}); // eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
26
|
+
|
|
26
27
|
export var TableBodyRow = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
27
28
|
var isHighlighted = _ref.isHighlighted,
|
|
28
29
|
children = _ref.children,
|
package/dist/esm/theme.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as colors from '@atlaskit/theme/colors';
|
|
2
|
-
import { themed } from '@atlaskit/theme/components';
|
|
3
2
|
export var MSThemeColors = {
|
|
4
3
|
Background: 'Canvas',
|
|
5
4
|
Text: 'CanvasText',
|
|
@@ -7,44 +6,18 @@ export var MSThemeColors = {
|
|
|
7
6
|
SelectedText: 'HighlightText'
|
|
8
7
|
};
|
|
9
8
|
export var arrow = {
|
|
10
|
-
defaultColor:
|
|
11
|
-
|
|
12
|
-
dark: "var(--ds-icon-disabled, ".concat(colors.DN40, ")")
|
|
13
|
-
}),
|
|
14
|
-
selectedColor: themed({
|
|
15
|
-
light: "var(--ds-icon-subtle, ".concat(colors.N300, ")"),
|
|
16
|
-
dark: "var(--ds-icon-subtle, ".concat(colors.DN300, ")")
|
|
17
|
-
}),
|
|
18
|
-
hoverColor: themed({
|
|
19
|
-
light: "var(--ds-icon-disabled, ".concat(colors.N60, ")"),
|
|
20
|
-
dark: "var(--ds-icon-disabled, ".concat(colors.DN60, ")")
|
|
21
|
-
})
|
|
9
|
+
defaultColor: "var(--ds-icon-disabled, ".concat(colors.N40, ")"),
|
|
10
|
+
selectedColor: "var(--ds-icon-subtle, ".concat(colors.N300, ")")
|
|
22
11
|
};
|
|
23
12
|
export var row = {
|
|
24
|
-
focusOutline:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
highlightedBackground: themed({
|
|
29
|
-
light: "var(--ds-background-selected, ".concat(colors.B50, ")"),
|
|
30
|
-
dark: "var(--ds-background-selected, ".concat(colors.DN50, ")")
|
|
31
|
-
}),
|
|
32
|
-
hoverBackground: themed({
|
|
33
|
-
light: "var(--ds-background-neutral-subtle-hovered, ".concat(colors.N10, ")"),
|
|
34
|
-
dark: "var(--ds-background-neutral-subtle-hovered, ".concat(colors.DN40, ")")
|
|
35
|
-
}),
|
|
36
|
-
hoverHighlightedBackground: themed({
|
|
37
|
-
light: "var(--ds-background-selected-hovered, ".concat(colors.B75, ")"),
|
|
38
|
-
dark: "var(--ds-background-selected-hovered, ".concat(colors.DN60, ")")
|
|
39
|
-
})
|
|
13
|
+
focusOutline: "var(--ds-border-focused, ".concat(colors.B100, ")"),
|
|
14
|
+
highlightedBackground: "var(--ds-background-selected, ".concat(colors.B50, ")"),
|
|
15
|
+
hoverBackground: "var(--ds-background-neutral-subtle-hovered, ".concat(colors.N10, ")"),
|
|
16
|
+
hoverHighlightedBackground: "var(--ds-background-selected-hovered, ".concat(colors.B75, ")")
|
|
40
17
|
};
|
|
41
18
|
export var head = {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
textColor: themed({
|
|
47
|
-
light: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
|
|
48
|
-
dark: "var(--ds-text-subtlest, ".concat(colors.DN300, ")")
|
|
49
|
-
})
|
|
19
|
+
textColor: "var(--ds-text-subtlest, ".concat(colors.N300, ")")
|
|
20
|
+
};
|
|
21
|
+
export var tableBorder = {
|
|
22
|
+
borderColor: "var(--ds-border, ".concat(colors.N40, ")")
|
|
50
23
|
};
|
package/dist/esm/types.js
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WithSortedPageRowsProps } from '../hoc/
|
|
2
|
+
import { WithSortedPageRowsProps } from '../hoc/with-sorted-page-rows';
|
|
3
3
|
import { HeadType } from '../types';
|
|
4
|
-
interface
|
|
4
|
+
interface BodyProps extends WithSortedPageRowsProps {
|
|
5
5
|
head?: HeadType;
|
|
6
6
|
highlightedRowIndex?: number | number[];
|
|
7
7
|
isFixedSize: boolean;
|
|
8
8
|
testId?: string;
|
|
9
9
|
}
|
|
10
10
|
declare const _default: {
|
|
11
|
-
new (props: Readonly<Omit<
|
|
11
|
+
new (props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>): {
|
|
12
12
|
state: {
|
|
13
13
|
pageRows: never[];
|
|
14
14
|
};
|
|
15
15
|
componentDidMount(): void;
|
|
16
|
-
componentDidUpdate(_prevProps: Omit<
|
|
16
|
+
componentDidUpdate(_prevProps: Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">, prevState: {
|
|
17
17
|
pageRows: import("../types").RowType[];
|
|
18
18
|
}): void;
|
|
19
19
|
render(): JSX.Element;
|
|
@@ -22,7 +22,7 @@ declare const _default: {
|
|
|
22
22
|
pageRows: import("../types").RowType[];
|
|
23
23
|
} | ((prevState: Readonly<{
|
|
24
24
|
pageRows: import("../types").RowType[];
|
|
25
|
-
}>, props: Readonly<Omit<
|
|
25
|
+
}>, props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>) => {
|
|
26
26
|
pageRows: import("../types").RowType[];
|
|
27
27
|
} | Pick<{
|
|
28
28
|
pageRows: import("../types").RowType[];
|
|
@@ -30,37 +30,37 @@ declare const _default: {
|
|
|
30
30
|
pageRows: import("../types").RowType[];
|
|
31
31
|
}, K> | null, callback?: (() => void) | undefined): void;
|
|
32
32
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
33
|
-
readonly props: Readonly<Omit<
|
|
33
|
+
readonly props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">> & Readonly<{
|
|
34
34
|
children?: React.ReactNode;
|
|
35
35
|
}>;
|
|
36
36
|
refs: {
|
|
37
37
|
[key: string]: React.ReactInstance;
|
|
38
38
|
};
|
|
39
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<
|
|
39
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
40
40
|
pageRows: import("../types").RowType[];
|
|
41
41
|
}>, nextContext: any): boolean;
|
|
42
42
|
componentWillUnmount?(): void;
|
|
43
43
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
44
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<
|
|
44
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, prevState: Readonly<{
|
|
45
45
|
pageRows: import("../types").RowType[];
|
|
46
46
|
}>): any;
|
|
47
47
|
componentWillMount?(): void;
|
|
48
48
|
UNSAFE_componentWillMount?(): void;
|
|
49
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<
|
|
50
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<
|
|
51
|
-
componentWillUpdate?(nextProps: Readonly<Omit<
|
|
49
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
50
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
51
|
+
componentWillUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
52
52
|
pageRows: import("../types").RowType[];
|
|
53
53
|
}>, nextContext: any): void;
|
|
54
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<
|
|
54
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
55
55
|
pageRows: import("../types").RowType[];
|
|
56
56
|
}>, nextContext: any): void;
|
|
57
57
|
};
|
|
58
|
-
new (props: Omit<
|
|
58
|
+
new (props: Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">, context?: any): {
|
|
59
59
|
state: {
|
|
60
60
|
pageRows: never[];
|
|
61
61
|
};
|
|
62
62
|
componentDidMount(): void;
|
|
63
|
-
componentDidUpdate(_prevProps: Omit<
|
|
63
|
+
componentDidUpdate(_prevProps: Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">, prevState: {
|
|
64
64
|
pageRows: import("../types").RowType[];
|
|
65
65
|
}): void;
|
|
66
66
|
render(): JSX.Element;
|
|
@@ -69,7 +69,7 @@ declare const _default: {
|
|
|
69
69
|
pageRows: import("../types").RowType[];
|
|
70
70
|
} | ((prevState: Readonly<{
|
|
71
71
|
pageRows: import("../types").RowType[];
|
|
72
|
-
}>, props: Readonly<Omit<
|
|
72
|
+
}>, props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>) => {
|
|
73
73
|
pageRows: import("../types").RowType[];
|
|
74
74
|
} | Pick<{
|
|
75
75
|
pageRows: import("../types").RowType[];
|
|
@@ -77,32 +77,32 @@ declare const _default: {
|
|
|
77
77
|
pageRows: import("../types").RowType[];
|
|
78
78
|
}, K> | null, callback?: (() => void) | undefined): void;
|
|
79
79
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
80
|
-
readonly props: Readonly<Omit<
|
|
80
|
+
readonly props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">> & Readonly<{
|
|
81
81
|
children?: React.ReactNode;
|
|
82
82
|
}>;
|
|
83
83
|
refs: {
|
|
84
84
|
[key: string]: React.ReactInstance;
|
|
85
85
|
};
|
|
86
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<
|
|
86
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
87
87
|
pageRows: import("../types").RowType[];
|
|
88
88
|
}>, nextContext: any): boolean;
|
|
89
89
|
componentWillUnmount?(): void;
|
|
90
90
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
91
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<
|
|
91
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, prevState: Readonly<{
|
|
92
92
|
pageRows: import("../types").RowType[];
|
|
93
93
|
}>): any;
|
|
94
94
|
componentWillMount?(): void;
|
|
95
95
|
UNSAFE_componentWillMount?(): void;
|
|
96
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<
|
|
97
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<
|
|
98
|
-
componentWillUpdate?(nextProps: Readonly<Omit<
|
|
96
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
97
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
98
|
+
componentWillUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
99
99
|
pageRows: import("../types").RowType[];
|
|
100
100
|
}>, nextContext: any): void;
|
|
101
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<
|
|
101
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
102
102
|
pageRows: import("../types").RowType[];
|
|
103
103
|
}>, nextContext: any): void;
|
|
104
104
|
};
|
|
105
|
-
getDerivedStateFromProps(props: Omit<
|
|
105
|
+
getDerivedStateFromProps(props: Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">, state: {
|
|
106
106
|
pageRows: import("../types").RowType[];
|
|
107
107
|
}): {
|
|
108
108
|
pageRows: import("../types").RowType[];
|
package/dist/types/components/{LoadingContainerAdvanced.d.ts → loading-container-advanced.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SpinnerSizeType } from '../types';
|
|
3
|
-
export interface
|
|
3
|
+
export interface LoadingContainerAdvancedProps {
|
|
4
4
|
children: React.ReactElement<any>;
|
|
5
5
|
isLoading?: boolean;
|
|
6
6
|
spinnerSize?: SpinnerSizeType;
|
|
@@ -8,7 +8,7 @@ export interface Props {
|
|
|
8
8
|
targetRef?: () => HTMLDivElement | undefined;
|
|
9
9
|
testId?: string;
|
|
10
10
|
}
|
|
11
|
-
export default class LoadingContainerAdvanced extends React.Component<
|
|
11
|
+
export default class LoadingContainerAdvanced extends React.Component<LoadingContainerAdvancedProps, {}> {
|
|
12
12
|
children?: HTMLElement;
|
|
13
13
|
spinnerRef?: HTMLDivElement;
|
|
14
14
|
static defaultProps: {
|
|
@@ -17,13 +17,13 @@ export default class LoadingContainerAdvanced extends React.Component<Props, {}>
|
|
|
17
17
|
contentsOpacity: number;
|
|
18
18
|
};
|
|
19
19
|
componentDidMount: () => void;
|
|
20
|
-
UNSAFE_componentWillReceiveProps: (nextProps:
|
|
20
|
+
UNSAFE_componentWillReceiveProps: (nextProps: LoadingContainerAdvancedProps) => void;
|
|
21
21
|
componentDidUpdate: () => void;
|
|
22
22
|
componentWillUnmount: () => void;
|
|
23
|
-
getTargetNode: (nextProps?:
|
|
23
|
+
getTargetNode: (nextProps?: LoadingContainerAdvancedProps) => Element | Text | null;
|
|
24
24
|
getThisNode: () => Element | Text | null;
|
|
25
25
|
getSpinnerNode: () => Element | Text | null;
|
|
26
|
-
hasTargetNode: (nextProps?:
|
|
26
|
+
hasTargetNode: (nextProps?: LoadingContainerAdvancedProps | undefined) => boolean;
|
|
27
27
|
isVerticallyVisible: (elementRect: {
|
|
28
28
|
top: number;
|
|
29
29
|
bottom: number;
|
|
File without changes
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DragStart, DropResult } from 'react-beautiful-dnd';
|
|
3
|
+
import { WithSortedPageRowsProps } from '../../hoc/with-sorted-page-rows';
|
|
4
|
+
import { HeadType, RankEnd, RankStart, RowType } from '../../types';
|
|
5
|
+
export interface RankableBodyProps extends WithSortedPageRowsProps {
|
|
6
|
+
highlightedRowIndex?: number | number[];
|
|
7
|
+
onRankStart: (rankStart: RankStart) => void;
|
|
8
|
+
onRankEnd: (rankEnd: RankEnd) => void;
|
|
9
|
+
isFixedSize: boolean;
|
|
10
|
+
isRanking: boolean;
|
|
11
|
+
isRankingDisabled: boolean;
|
|
12
|
+
head?: HeadType;
|
|
13
|
+
testId?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class RankableBody extends React.Component<RankableBodyProps, {}> {
|
|
16
|
+
onBeforeDragStart: (dragStart: DragStart) => void;
|
|
17
|
+
onDragEnd: (result: DropResult) => void;
|
|
18
|
+
render(): JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: {
|
|
21
|
+
new (props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>): {
|
|
22
|
+
state: {
|
|
23
|
+
pageRows: never[];
|
|
24
|
+
};
|
|
25
|
+
componentDidMount(): void;
|
|
26
|
+
componentDidUpdate(_prevProps: Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">, prevState: {
|
|
27
|
+
pageRows: RowType[];
|
|
28
|
+
}): void;
|
|
29
|
+
render(): JSX.Element;
|
|
30
|
+
context: any;
|
|
31
|
+
setState<K extends "pageRows">(state: {
|
|
32
|
+
pageRows: RowType[];
|
|
33
|
+
} | ((prevState: Readonly<{
|
|
34
|
+
pageRows: RowType[];
|
|
35
|
+
}>, props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>) => {
|
|
36
|
+
pageRows: RowType[];
|
|
37
|
+
} | Pick<{
|
|
38
|
+
pageRows: RowType[];
|
|
39
|
+
}, K> | null) | Pick<{
|
|
40
|
+
pageRows: RowType[];
|
|
41
|
+
}, K> | null, callback?: (() => void) | undefined): void;
|
|
42
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
43
|
+
readonly props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">> & Readonly<{
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
}>;
|
|
46
|
+
refs: {
|
|
47
|
+
[key: string]: React.ReactInstance;
|
|
48
|
+
};
|
|
49
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
50
|
+
pageRows: RowType[];
|
|
51
|
+
}>, nextContext: any): boolean;
|
|
52
|
+
componentWillUnmount?(): void;
|
|
53
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
54
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, prevState: Readonly<{
|
|
55
|
+
pageRows: RowType[];
|
|
56
|
+
}>): any;
|
|
57
|
+
componentWillMount?(): void;
|
|
58
|
+
UNSAFE_componentWillMount?(): void;
|
|
59
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
60
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
61
|
+
componentWillUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
62
|
+
pageRows: RowType[];
|
|
63
|
+
}>, nextContext: any): void;
|
|
64
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
65
|
+
pageRows: RowType[];
|
|
66
|
+
}>, nextContext: any): void;
|
|
67
|
+
};
|
|
68
|
+
new (props: Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">, context?: any): {
|
|
69
|
+
state: {
|
|
70
|
+
pageRows: never[];
|
|
71
|
+
};
|
|
72
|
+
componentDidMount(): void;
|
|
73
|
+
componentDidUpdate(_prevProps: Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">, prevState: {
|
|
74
|
+
pageRows: RowType[];
|
|
75
|
+
}): void;
|
|
76
|
+
render(): JSX.Element;
|
|
77
|
+
context: any;
|
|
78
|
+
setState<K extends "pageRows">(state: {
|
|
79
|
+
pageRows: RowType[];
|
|
80
|
+
} | ((prevState: Readonly<{
|
|
81
|
+
pageRows: RowType[];
|
|
82
|
+
}>, props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>) => {
|
|
83
|
+
pageRows: RowType[];
|
|
84
|
+
} | Pick<{
|
|
85
|
+
pageRows: RowType[];
|
|
86
|
+
}, K> | null) | Pick<{
|
|
87
|
+
pageRows: RowType[];
|
|
88
|
+
}, K> | null, callback?: (() => void) | undefined): void;
|
|
89
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
90
|
+
readonly props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">> & Readonly<{
|
|
91
|
+
children?: React.ReactNode;
|
|
92
|
+
}>;
|
|
93
|
+
refs: {
|
|
94
|
+
[key: string]: React.ReactInstance;
|
|
95
|
+
};
|
|
96
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
97
|
+
pageRows: RowType[];
|
|
98
|
+
}>, nextContext: any): boolean;
|
|
99
|
+
componentWillUnmount?(): void;
|
|
100
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
101
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, prevState: Readonly<{
|
|
102
|
+
pageRows: RowType[];
|
|
103
|
+
}>): any;
|
|
104
|
+
componentWillMount?(): void;
|
|
105
|
+
UNSAFE_componentWillMount?(): void;
|
|
106
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
107
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
108
|
+
componentWillUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
109
|
+
pageRows: RowType[];
|
|
110
|
+
}>, nextContext: any): void;
|
|
111
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
112
|
+
pageRows: RowType[];
|
|
113
|
+
}>, nextContext: any): void;
|
|
114
|
+
};
|
|
115
|
+
getDerivedStateFromProps(props: Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">, state: {
|
|
116
|
+
pageRows: RowType[];
|
|
117
|
+
}): {
|
|
118
|
+
pageRows: RowType[];
|
|
119
|
+
};
|
|
120
|
+
contextType?: React.Context<any> | undefined;
|
|
121
|
+
};
|
|
122
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WithDimensionsProps } from '../../hoc/with-dimensions';
|
|
3
|
+
import { HeadCellType, RowCellType } from '../../types';
|
|
4
|
+
export interface RankableTableCellProps extends WithDimensionsProps {
|
|
5
|
+
head?: HeadCellType;
|
|
6
|
+
cell: RowCellType;
|
|
7
|
+
isFixedSize: boolean;
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class RankableTableCell extends React.Component<RankableTableCellProps, {}> {
|
|
11
|
+
render(): JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: React.ComponentClass<Omit<RankableTableCellProps, "innerRef" | "refWidth" | "refHeight">, import("../../hoc/with-dimensions").State>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WithDimensionsProps } from '../../hoc/with-dimensions';
|
|
3
|
+
import { TableHeadCellProps } from '../table-head-cell';
|
|
4
|
+
declare const _default: React.ComponentClass<Omit<WithDimensionsProps & TableHeadCellProps, "innerRef" | "refWidth" | "refHeight">, import("../../hoc/with-dimensions").State>;
|
|
5
|
+
export default _default;
|