@dhis2-ui/table 8.2.0 → 8.2.3
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/build/cjs/data-table/__tests__/data-table-row/expanded-row.test.js +2 -2
- package/build/cjs/data-table/data-table-cell.js +23 -22
- package/build/cjs/data-table/data-table-column-header/data-table-column-header.js +60 -57
- package/build/cjs/data-table/data-table-column-header/data-table-column-header.styles.js +1 -1
- package/build/cjs/data-table/data-table-column-header/filter-handle.js +6 -5
- package/build/cjs/data-table/data-table-column-header/sorter.js +9 -8
- package/build/cjs/data-table/data-table-row/data-table-row.js +12 -11
- package/build/cjs/data-table/data-table-row/data-table-row.styles.js +1 -1
- package/build/cjs/data-table/data-table-row/expand-handle-cell.js +15 -12
- package/build/cjs/data-table/data-table-row/expanded-row.js +23 -20
- package/build/cjs/data-table/data-table.js +12 -11
- package/build/cjs/data-table/data-table.stories.e2e.js +1 -1
- package/build/cjs/data-table/data-table.stories.js +147 -145
- package/build/cjs/data-table/table-elements/__tests__/table-data-cell.test.js +3 -3
- package/build/cjs/data-table/table-elements/__tests__/table-header-cell.test.js +4 -4
- package/build/cjs/data-table/table-elements/__tests__/table.test.js +2 -2
- package/build/cjs/data-table/table-elements/index.js +8 -8
- package/build/cjs/data-table/table-elements/table-body.js +21 -18
- package/build/cjs/data-table/table-elements/table-data-cell/table-data-cell.js +40 -37
- package/build/cjs/data-table/table-elements/table-data-cell/table-data-cell.styles.js +1 -1
- package/build/cjs/data-table/table-elements/table-foot.js +15 -12
- package/build/cjs/data-table/table-elements/table-head.js +15 -12
- package/build/cjs/data-table/table-elements/table-header-cell/table-header-cell.js +43 -40
- package/build/cjs/data-table/table-elements/table-header-cell/table-header-cell.styles.js +1 -1
- package/build/cjs/data-table/table-elements/table-header-cell-action.js +20 -17
- package/build/cjs/data-table/table-elements/table-row.js +21 -18
- package/build/cjs/data-table/table-elements/table-scroll-box.js +18 -15
- package/build/cjs/data-table/table-elements/table-toolbar.js +17 -14
- package/build/cjs/data-table/table-elements/table.js +23 -20
- package/build/cjs/data-table/table-elements/table.stories.e2e.js +1 -1
- package/build/cjs/data-table/table-elements/table.stories.internal.js +119 -127
- package/build/cjs/index.js +42 -42
- package/build/cjs/stacked-table/content-with-title.js +14 -11
- package/build/cjs/stacked-table/index.js +10 -10
- package/build/cjs/stacked-table/stacked-table-body.js +13 -10
- package/build/cjs/stacked-table/stacked-table-cell-head.js +20 -17
- package/build/cjs/stacked-table/stacked-table-cell.js +13 -12
- package/build/cjs/stacked-table/stacked-table-foot.js +13 -10
- package/build/cjs/stacked-table/stacked-table-head.js +13 -10
- package/build/cjs/stacked-table/stacked-table-row-head.js +11 -8
- package/build/cjs/stacked-table/stacked-table-row.js +19 -13
- package/build/cjs/stacked-table/stacked-table.js +7 -6
- package/build/cjs/stacked-table/stacked-table.stories.js +3 -20
- package/build/cjs/stacked-table/stacked-table.test.js +24 -15
- package/build/cjs/stacked-table/table-context.js +1 -1
- package/build/cjs/stacked-table/table.js +14 -11
- package/build/cjs/table/index.js +10 -10
- package/build/cjs/table/table-body.js +13 -10
- package/build/cjs/table/table-cell-head.js +22 -19
- package/build/cjs/table/table-cell.js +22 -19
- package/build/cjs/table/table-context.js +1 -1
- package/build/cjs/table/table-foot.js +13 -10
- package/build/cjs/table/table-head.js +13 -10
- package/build/cjs/table/table-row-head.js +15 -12
- package/build/cjs/table/table-row.js +9 -8
- package/build/cjs/table/table.js +19 -16
- package/build/cjs/table/table.stories.js +3 -18
- package/build/es/data-table/__tests__/data-table-row/expanded-row.test.js +2 -2
- package/build/es/data-table/data-table-cell.js +23 -22
- package/build/es/data-table/data-table-column-header/data-table-column-header.js +60 -57
- package/build/es/data-table/data-table-column-header/filter-handle.js +6 -5
- package/build/es/data-table/data-table-column-header/sorter.js +8 -7
- package/build/es/data-table/data-table-row/data-table-row.js +12 -11
- package/build/es/data-table/data-table-row/data-table-row.styles.js +1 -1
- package/build/es/data-table/data-table-row/expand-handle-cell.js +15 -12
- package/build/es/data-table/data-table-row/expanded-row.js +23 -20
- package/build/es/data-table/data-table.js +12 -11
- package/build/es/data-table/data-table.stories.js +146 -144
- package/build/es/data-table/table-elements/__tests__/table-data-cell.test.js +3 -3
- package/build/es/data-table/table-elements/__tests__/table-header-cell.test.js +4 -4
- package/build/es/data-table/table-elements/__tests__/table.test.js +2 -2
- package/build/es/data-table/table-elements/table-body.js +21 -18
- package/build/es/data-table/table-elements/table-data-cell/table-data-cell.js +40 -37
- package/build/es/data-table/table-elements/table-data-cell/table-data-cell.styles.js +1 -1
- package/build/es/data-table/table-elements/table-foot.js +15 -12
- package/build/es/data-table/table-elements/table-head.js +15 -12
- package/build/es/data-table/table-elements/table-header-cell/table-header-cell.js +43 -40
- package/build/es/data-table/table-elements/table-header-cell/table-header-cell.styles.js +1 -1
- package/build/es/data-table/table-elements/table-header-cell-action.js +20 -17
- package/build/es/data-table/table-elements/table-row.js +21 -18
- package/build/es/data-table/table-elements/table-scroll-box.js +18 -15
- package/build/es/data-table/table-elements/table-toolbar.js +17 -14
- package/build/es/data-table/table-elements/table.js +23 -20
- package/build/es/data-table/table-elements/table.stories.internal.js +118 -126
- package/build/es/stacked-table/content-with-title.js +14 -11
- package/build/es/stacked-table/stacked-table-body.js +13 -10
- package/build/es/stacked-table/stacked-table-cell-head.js +20 -17
- package/build/es/stacked-table/stacked-table-cell.js +13 -12
- package/build/es/stacked-table/stacked-table-foot.js +13 -10
- package/build/es/stacked-table/stacked-table-head.js +13 -10
- package/build/es/stacked-table/stacked-table-row-head.js +11 -8
- package/build/es/stacked-table/stacked-table-row.js +19 -13
- package/build/es/stacked-table/stacked-table.js +7 -6
- package/build/es/stacked-table/stacked-table.stories.js +2 -19
- package/build/es/stacked-table/stacked-table.test.js +24 -15
- package/build/es/stacked-table/table.js +14 -11
- package/build/es/table/table-body.js +13 -10
- package/build/es/table/table-cell-head.js +22 -19
- package/build/es/table/table-cell.js +22 -19
- package/build/es/table/table-foot.js +13 -10
- package/build/es/table/table-head.js +13 -10
- package/build/es/table/table-row-head.js +15 -12
- package/build/es/table/table-row.js +9 -8
- package/build/es/table/table.js +19 -16
- package/build/es/table/table.stories.js +2 -17
- package/package.json +3 -3
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uiConstants = require("@dhis2/ui-constants");
|
|
9
9
|
|
|
10
|
-
const _defaultExport = [
|
|
10
|
+
const _defaultExport = ["td.jsx-1115472719{padding:14px 12px;font-size:14px;border:1px solid transparant;border-bottom:1px solid ".concat(_uiConstants.colors.grey300, ";background-color:").concat(_uiConstants.colors.white, ";color:").concat(_uiConstants.colors.grey900, ";}"), "td.active.jsx-1115472719{background-color:".concat(_uiConstants.colors.white, ";outline:2px solid ").concat(_uiConstants.colors.grey600, ";outline-offset:-2px;}"), "td.bordered.jsx-1115472719{border-right:1px solid ".concat(_uiConstants.colors.grey300, ";}"), "td.bordered.jsx-1115472719:last-child{border-right:1px solid transparent;}", "td.error.jsx-1115472719{color:".concat(_uiConstants.colors.red700, ";}"), "td.muted.jsx-1115472719{color:".concat(_uiConstants.colors.grey700, ";font-style:italic;}"), "td.valid.jsx-1115472719{color:".concat(_uiConstants.colors.green700, ";}"), "td.large.jsx-1115472719{padding:20px 12px;font-size:16px;}", "tr:last-child td.jsx-1115472719{border-bottom:1px solid transparent;}", "tfoot tr:first-child td.jsx-1115472719{border-top:1px solid ".concat(_uiConstants.colors.grey300, ";}"), "tr.selected>td.jsx-1115472719{background-color:".concat(_uiConstants.colors.teal100, ";}"), "tr:hover>td.jsx-1115472719:not(.staticStyle){background-color:".concat(_uiConstants.colors.grey100, ";}"), "tr:active>td.jsx-1115472719:not(.staticStyle){background-color:".concat(_uiConstants.colors.grey200, ";}"), "tr.selected:hover>td.jsx-1115472719:not(.staticStyle){background-color:#cdeae8;}"];
|
|
11
11
|
_defaultExport.__hash = "1115472719";
|
|
12
12
|
var _default = _defaultExport;
|
|
13
13
|
exports.default = _default;
|
|
@@ -17,18 +17,21 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
17
17
|
|
|
18
18
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
19
|
|
|
20
|
-
const TableFoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
const TableFoot = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
21
|
+
let {
|
|
22
|
+
children,
|
|
23
|
+
className,
|
|
24
|
+
dataTest,
|
|
25
|
+
role,
|
|
26
|
+
...props
|
|
27
|
+
} = _ref;
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement("tfoot", _extends({}, props, {
|
|
29
|
+
className: className,
|
|
30
|
+
"data-test": dataTest,
|
|
31
|
+
ref: ref,
|
|
32
|
+
role: role
|
|
33
|
+
}), children);
|
|
34
|
+
});
|
|
32
35
|
exports.TableFoot = TableFoot;
|
|
33
36
|
TableFoot.displayName = 'TableFoot';
|
|
34
37
|
TableFoot.defaultProps = {
|
|
@@ -17,18 +17,21 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
17
17
|
|
|
18
18
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
19
|
|
|
20
|
-
const TableHead = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
const TableHead = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
21
|
+
let {
|
|
22
|
+
children,
|
|
23
|
+
className,
|
|
24
|
+
dataTest,
|
|
25
|
+
role,
|
|
26
|
+
...props
|
|
27
|
+
} = _ref;
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement("thead", _extends({}, props, {
|
|
29
|
+
className: className,
|
|
30
|
+
"data-test": dataTest,
|
|
31
|
+
ref: ref,
|
|
32
|
+
role: role
|
|
33
|
+
}), children);
|
|
34
|
+
});
|
|
32
35
|
exports.TableHead = TableHead;
|
|
33
36
|
TableHead.displayName = 'TableHead';
|
|
34
37
|
TableHead.defaultProps = {
|
|
@@ -26,53 +26,56 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
26
26
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
27
|
|
|
28
28
|
const AUTO = 'auto';
|
|
29
|
-
const TableHeaderCell = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
30
|
-
|
|
31
|
-
align,
|
|
32
|
-
bordered,
|
|
33
|
-
children,
|
|
34
|
-
className,
|
|
35
|
-
colSpan,
|
|
36
|
-
dataTest,
|
|
37
|
-
error,
|
|
38
|
-
fixed,
|
|
39
|
-
large,
|
|
40
|
-
left,
|
|
41
|
-
muted,
|
|
42
|
-
rowSpan,
|
|
43
|
-
role,
|
|
44
|
-
scope,
|
|
45
|
-
staticStyle,
|
|
46
|
-
top,
|
|
47
|
-
valid,
|
|
48
|
-
width,
|
|
49
|
-
onClick,
|
|
50
|
-
...props
|
|
51
|
-
}, ref) => /*#__PURE__*/_react.default.createElement("th", _extends({}, props, {
|
|
52
|
-
ref: ref,
|
|
53
|
-
colSpan: colSpan,
|
|
54
|
-
rowSpan: rowSpan,
|
|
55
|
-
onClick: onClick,
|
|
56
|
-
"data-test": dataTest,
|
|
57
|
-
role: role,
|
|
58
|
-
scope: scope,
|
|
59
|
-
className: `jsx-${_tableHeaderCellStyles.default.__hash}` + " " + _style.default.dynamic([["1837557188", [left, top, align, width]]]) + " " + ((0, _classnames.default)(className, {
|
|
29
|
+
const TableHeaderCell = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
30
|
+
let {
|
|
60
31
|
active,
|
|
32
|
+
align,
|
|
61
33
|
bordered,
|
|
34
|
+
children,
|
|
35
|
+
className,
|
|
36
|
+
colSpan,
|
|
37
|
+
dataTest,
|
|
62
38
|
error,
|
|
63
39
|
fixed,
|
|
64
|
-
fixedHorizontally: fixed && left !== AUTO,
|
|
65
40
|
large,
|
|
41
|
+
left,
|
|
66
42
|
muted,
|
|
43
|
+
rowSpan,
|
|
44
|
+
role,
|
|
45
|
+
scope,
|
|
67
46
|
staticStyle,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
47
|
+
top,
|
|
48
|
+
valid,
|
|
49
|
+
width,
|
|
50
|
+
onClick,
|
|
51
|
+
...props
|
|
52
|
+
} = _ref;
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement("th", _extends({}, props, {
|
|
54
|
+
ref: ref,
|
|
55
|
+
colSpan: colSpan,
|
|
56
|
+
rowSpan: rowSpan,
|
|
57
|
+
onClick: onClick,
|
|
58
|
+
"data-test": dataTest,
|
|
59
|
+
role: role,
|
|
60
|
+
scope: scope,
|
|
61
|
+
className: "jsx-".concat(_tableHeaderCellStyles.default.__hash) + " " + _style.default.dynamic([["1837557188", [left, top, align, width]]]) + " " + ((0, _classnames.default)(className, {
|
|
62
|
+
active,
|
|
63
|
+
bordered,
|
|
64
|
+
error,
|
|
65
|
+
fixed,
|
|
66
|
+
fixedHorizontally: fixed && left !== AUTO,
|
|
67
|
+
large,
|
|
68
|
+
muted,
|
|
69
|
+
staticStyle,
|
|
70
|
+
valid
|
|
71
|
+
}) || "")
|
|
72
|
+
}), children, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
73
|
+
id: _tableHeaderCellStyles.default.__hash
|
|
74
|
+
}, _tableHeaderCellStyles.default), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
75
|
+
id: "1837557188",
|
|
76
|
+
dynamic: [left, top, align, width]
|
|
77
|
+
}, ["th.__jsx-style-dynamic-selector{left:".concat(left, ";top:").concat(top, ";text-align:").concat(align, ";width:").concat(width, ";}")]));
|
|
78
|
+
});
|
|
76
79
|
exports.TableHeaderCell = TableHeaderCell;
|
|
77
80
|
TableHeaderCell.displayName = 'TableHeaderCell';
|
|
78
81
|
TableHeaderCell.defaultProps = {
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uiConstants = require("@dhis2/ui-constants");
|
|
9
9
|
|
|
10
|
-
const _defaultExport = [
|
|
10
|
+
const _defaultExport = ["th.jsx-3777082606{padding:12px;border:1px solid transparant;border-bottom:1px solid ".concat(_uiConstants.colors.grey300, ";color:").concat(_uiConstants.colors.grey800, ";background-color:").concat(_uiConstants.colors.grey200, ";font-weight:normal;font-size:14px;vertical-align:top;}"), "thead th.jsx-3777082606{padding:8px 12px;font-size:13px;}", "th.jsx-3777082606:last-of-type{border-right:1px solid ".concat(_uiConstants.colors.grey300, ";}"), "th.active.jsx-3777082606{background-color:".concat(_uiConstants.colors.white, ";outline:2px solid ").concat(_uiConstants.colors.grey600, ";outline-offset:-2px;}"), "th.bordered.jsx-3777082606{border-right:1px solid ".concat(_uiConstants.colors.grey300, ";}"), "th.bordered.jsx-3777082606:last-child{border-right:1px solid transparent;}", "th.error.jsx-3777082606{color:".concat(_uiConstants.colors.red700, ";}"), "th.muted.jsx-3777082606{color:".concat(_uiConstants.colors.grey700, ";font-style:italic;}"), "th.valid.jsx-3777082606{color:".concat(_uiConstants.colors.green700, ";}"), "th.large.jsx-3777082606{padding:14px 12px;font-size:16px;}", "thead th.large.jsx-3777082606{padding:13px 12px;font-size:15px;}", "th.fixed.jsx-3777082606{position:-webkit-sticky;position:sticky;z-index:1;}", "thead th.fixed.jsx-3777082606{position:-webkit-sticky;position:sticky;z-index:2;}", "thead th.fixedHorizontally.jsx-3777082606{z-index:3;background-color:".concat(_uiConstants.colors.grey300, ";}"), "tr:last-child th.jsx-3777082606{border-bottom:1px solid transparent;}", "thead tr:last-child th.jsx-3777082606{border-bottom:1px solid ".concat(_uiConstants.colors.grey300, ";}"), "tbody>tr:hover>th.jsx-3777082606:not(.staticStyle),tfoot>tr:hover>th.jsx-3777082606:not(.staticStyle){background-color:".concat(_uiConstants.colors.grey300, ";}"), "tbody>tr:active>th.jsx-3777082606:not(.staticStyle){background-color:".concat(_uiConstants.colors.grey200, ";}"), "tfoot>tr:first-child th.jsx-3777082606{border-top:1px solid ".concat(_uiConstants.colors.grey300, ";}")];
|
|
11
11
|
_defaultExport.__hash = "3777082606";
|
|
12
12
|
var _default = _defaultExport;
|
|
13
13
|
exports.default = _default;
|
|
@@ -21,23 +21,26 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
21
21
|
|
|
22
22
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
23
|
|
|
24
|
-
const TableHeaderCellAction = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
24
|
+
const TableHeaderCellAction = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
25
|
+
let {
|
|
26
|
+
onClick,
|
|
27
|
+
children,
|
|
28
|
+
className,
|
|
29
|
+
dataTest,
|
|
30
|
+
title,
|
|
31
|
+
...props
|
|
32
|
+
} = _ref;
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement("button", _extends({}, props, {
|
|
34
|
+
"data-test": dataTest,
|
|
35
|
+
onClick: onClick,
|
|
36
|
+
title: title,
|
|
37
|
+
ref: ref,
|
|
38
|
+
className: _style.default.dynamic([["997535212", [_uiConstants.colors.grey400]]]) + " " + (className || "")
|
|
39
|
+
}), children, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
40
|
+
id: "997535212",
|
|
41
|
+
dynamic: [_uiConstants.colors.grey400]
|
|
42
|
+
}, ["button.__jsx-style-dynamic-selector{border:none;padding:0;background:transparent;width:24px;height:24px;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;cursor:pointer;border-radius:4px;margin-left:2px;}", "button.__jsx-style-dynamic-selector:hover,button.__jsx-style-dynamic-selector:focus-visible{background:".concat(_uiConstants.colors.grey400, ";}"), "button.__jsx-style-dynamic-selector:active,button.__jsx-style-dynamic-selector:focus{outline:none;}"]));
|
|
43
|
+
});
|
|
41
44
|
exports.TableHeaderCellAction = TableHeaderCellAction;
|
|
42
45
|
TableHeaderCellAction.displayName = 'TableHeaderCellAction';
|
|
43
46
|
TableHeaderCellAction.defaultProps = {
|
|
@@ -21,25 +21,28 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
21
21
|
|
|
22
22
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
23
|
|
|
24
|
-
const TableRow = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
...props
|
|
32
|
-
}, ref) => /*#__PURE__*/_react.default.createElement("tr", _extends({}, props, {
|
|
33
|
-
ref: ref,
|
|
34
|
-
"data-test": dataTest,
|
|
35
|
-
role: role,
|
|
36
|
-
className: "jsx-1820444258" + " " + ((0, _classnames.default)(className, {
|
|
24
|
+
const TableRow = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
25
|
+
let {
|
|
26
|
+
children,
|
|
27
|
+
className,
|
|
28
|
+
dataTest,
|
|
29
|
+
draggable,
|
|
30
|
+
role,
|
|
37
31
|
selected,
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
...props
|
|
33
|
+
} = _ref;
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement("tr", _extends({}, props, {
|
|
35
|
+
ref: ref,
|
|
36
|
+
"data-test": dataTest,
|
|
37
|
+
role: role,
|
|
38
|
+
className: "jsx-1820444258" + " " + ((0, _classnames.default)(className, {
|
|
39
|
+
selected,
|
|
40
|
+
draggable
|
|
41
|
+
}) || "")
|
|
42
|
+
}), children, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
43
|
+
id: "1820444258"
|
|
44
|
+
}, ["tbody>tr.draggable.jsx-1820444258,tfoot>tr.draggable.jsx-1820444258{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}"]));
|
|
45
|
+
});
|
|
43
46
|
exports.TableRow = TableRow;
|
|
44
47
|
TableRow.displayName = 'TableRow';
|
|
45
48
|
TableRow.defaultProps = {
|
|
@@ -21,21 +21,24 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
21
21
|
|
|
22
22
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
23
|
|
|
24
|
-
const TableScrollBox = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
24
|
+
const TableScrollBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
25
|
+
let {
|
|
26
|
+
children,
|
|
27
|
+
className,
|
|
28
|
+
dataTest,
|
|
29
|
+
maxHeight,
|
|
30
|
+
maxWidth,
|
|
31
|
+
...props
|
|
32
|
+
} = _ref;
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({}, props, {
|
|
34
|
+
"data-test": dataTest,
|
|
35
|
+
ref: ref,
|
|
36
|
+
className: _style.default.dynamic([["2859562182", [_uiConstants.colors.grey300, maxHeight, maxWidth]]]) + " " + (className || "")
|
|
37
|
+
}), children, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
38
|
+
id: "2859562182",
|
|
39
|
+
dynamic: [_uiConstants.colors.grey300, maxHeight, maxWidth]
|
|
40
|
+
}, ["div.__jsx-style-dynamic-selector{border:1px solid ".concat(_uiConstants.colors.grey300, ";border-top:none;box-sizing:border-box;max-height:").concat(maxHeight, ";max-width:").concat(maxWidth, ";overflow:auto;}")]));
|
|
41
|
+
});
|
|
39
42
|
exports.TableScrollBox = TableScrollBox;
|
|
40
43
|
TableScrollBox.displayName = 'TableScrollBox';
|
|
41
44
|
TableScrollBox.defaultProps = {
|
|
@@ -23,20 +23,23 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
23
23
|
|
|
24
24
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
25
|
|
|
26
|
-
const TableToolbar = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
26
|
+
const TableToolbar = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
27
|
+
let {
|
|
28
|
+
children,
|
|
29
|
+
className,
|
|
30
|
+
dataTest,
|
|
31
|
+
position,
|
|
32
|
+
...props
|
|
33
|
+
} = _ref;
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({}, props, {
|
|
35
|
+
"data-test": dataTest,
|
|
36
|
+
ref: ref,
|
|
37
|
+
className: _style.default.dynamic([["247244135", [_uiConstants.colors.grey300, _uiConstants.spacers.dp12]]]) + " " + ((0, _classnames.default)(className, position) || "")
|
|
38
|
+
}), children, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
39
|
+
id: "247244135",
|
|
40
|
+
dynamic: [_uiConstants.colors.grey300, _uiConstants.spacers.dp12]
|
|
41
|
+
}, ["div.__jsx-style-dynamic-selector{width:100%;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border:1px solid ".concat(_uiConstants.colors.grey300, ";padding:").concat(_uiConstants.spacers.dp12, ";}"), "div.top.__jsx-style-dynamic-selector{border-bottom:none;}", "div.bottom.__jsx-style-dynamic-selector{border-top:none;}"]));
|
|
42
|
+
});
|
|
40
43
|
exports.TableToolbar = TableToolbar;
|
|
41
44
|
TableToolbar.displayName = 'TableToolbar';
|
|
42
45
|
TableToolbar.defaultProps = {
|
|
@@ -23,26 +23,29 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
23
23
|
|
|
24
24
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
25
|
|
|
26
|
-
const Table = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
26
|
+
const Table = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
27
|
+
let {
|
|
28
|
+
children,
|
|
29
|
+
className,
|
|
30
|
+
dataTest,
|
|
31
|
+
layout,
|
|
32
|
+
role,
|
|
33
|
+
borderless,
|
|
34
|
+
width,
|
|
35
|
+
...props
|
|
36
|
+
} = _ref;
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement("table", _extends({}, props, {
|
|
38
|
+
"data-test": dataTest,
|
|
39
|
+
ref: ref,
|
|
40
|
+
role: role,
|
|
41
|
+
className: _style.default.dynamic([["3140496910", [layout, width, _uiConstants.colors.grey300]]]) + " " + ((0, _classnames.default)(className, {
|
|
42
|
+
borderless
|
|
43
|
+
}) || "")
|
|
44
|
+
}), children, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
45
|
+
id: "3140496910",
|
|
46
|
+
dynamic: [layout, width, _uiConstants.colors.grey300]
|
|
47
|
+
}, ["table.__jsx-style-dynamic-selector{table-layout:".concat(layout, ";border-collapse:separate;border-spacing:0;width:").concat(width, ";box-sizing:border-box;border:1px solid ").concat(_uiConstants.colors.grey300, ";}"), "table.borderless.__jsx-style-dynamic-selector{border:none;}"]));
|
|
48
|
+
});
|
|
46
49
|
exports.Table = Table;
|
|
47
50
|
Table.displayName = 'Table';
|
|
48
51
|
Table.defaultProps = {
|