@atlaskit/dynamic-table 18.2.18 → 18.3.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 +8 -0
- package/dist/cjs/components/body.js +1 -0
- package/dist/cjs/components/error-boundary.js +1 -0
- package/dist/cjs/components/loading-container-advanced.js +1 -0
- package/dist/cjs/components/loading-container.js +1 -0
- package/dist/cjs/components/managed-pagination.js +1 -0
- package/dist/cjs/components/rankable/body.js +2 -0
- package/dist/cjs/components/rankable/table-cell.js +1 -0
- package/dist/cjs/components/rankable/table-head-cell.js +1 -0
- package/dist/cjs/components/rankable/table-row.js +1 -0
- package/dist/cjs/components/stateful.js +1 -0
- package/dist/cjs/components/stateless.js +2 -2
- package/dist/cjs/components/table-head.js +2 -17
- package/dist/cjs/hoc/with-sorted-page-rows.js +1 -0
- package/dist/cjs/styled/dynamic-table.compiled.css +1 -1
- package/dist/cjs/styled/dynamic-table.js +10 -16
- package/dist/cjs/styled/rankable/table-row.compiled.css +4 -4
- package/dist/cjs/styled/rankable/table-row.js +1 -7
- package/dist/cjs/styled/table-head.compiled.css +2 -45
- package/dist/cjs/styled/table-head.js +4 -17
- package/dist/es2019/components/body.js +1 -0
- package/dist/es2019/components/error-boundary.js +1 -0
- package/dist/es2019/components/loading-container-advanced.js +1 -0
- package/dist/es2019/components/loading-container.js +1 -0
- package/dist/es2019/components/managed-pagination.js +1 -0
- package/dist/es2019/components/rankable/body.js +2 -0
- package/dist/es2019/components/rankable/table-cell.js +1 -0
- package/dist/es2019/components/rankable/table-head-cell.js +2 -0
- package/dist/es2019/components/rankable/table-row.js +1 -0
- package/dist/es2019/components/stateful.js +1 -0
- package/dist/es2019/components/stateless.js +2 -2
- package/dist/es2019/components/table-head.js +2 -17
- package/dist/es2019/hoc/with-sorted-page-rows.js +1 -0
- package/dist/es2019/styled/dynamic-table.compiled.css +1 -1
- package/dist/es2019/styled/dynamic-table.js +5 -6
- package/dist/es2019/styled/rankable/table-row.compiled.css +4 -4
- package/dist/es2019/styled/rankable/table-row.js +1 -2
- package/dist/es2019/styled/table-head.compiled.css +2 -45
- package/dist/es2019/styled/table-head.js +3 -11
- package/dist/esm/components/body.js +1 -0
- package/dist/esm/components/error-boundary.js +1 -0
- package/dist/esm/components/loading-container-advanced.js +1 -0
- package/dist/esm/components/loading-container.js +1 -0
- package/dist/esm/components/managed-pagination.js +1 -0
- package/dist/esm/components/rankable/body.js +2 -0
- package/dist/esm/components/rankable/table-cell.js +1 -0
- package/dist/esm/components/rankable/table-head-cell.js +2 -0
- package/dist/esm/components/rankable/table-row.js +1 -0
- package/dist/esm/components/stateful.js +1 -0
- package/dist/esm/components/stateless.js +2 -2
- package/dist/esm/components/table-head.js +2 -17
- package/dist/esm/hoc/with-sorted-page-rows.js +1 -0
- package/dist/esm/styled/dynamic-table.compiled.css +1 -1
- package/dist/esm/styled/dynamic-table.js +10 -16
- package/dist/esm/styled/rankable/table-row.compiled.css +4 -4
- package/dist/esm/styled/rankable/table-row.js +1 -7
- package/dist/esm/styled/table-head.compiled.css +2 -45
- package/dist/esm/styled/table-head.js +4 -17
- package/dist/types/styled/dynamic-table.d.ts +1 -1
- package/dist/types/styled/rankable/table-row.d.ts +2 -4
- package/dist/types/styled/table-head.d.ts +1 -1
- package/dist/types-ts4.5/styled/dynamic-table.d.ts +1 -1
- package/dist/types-ts4.5/styled/rankable/table-row.d.ts +2 -4
- package/dist/types-ts4.5/styled/table-head.d.ts +1 -1
- package/package.json +3 -11
- package/dist/cjs/components/rankable/table-head-cell-old.js +0 -46
- package/dist/cjs/components/table-head-cell-old.js +0 -39
- package/dist/es2019/components/rankable/table-head-cell-old.js +0 -26
- package/dist/es2019/components/table-head-cell-old.js +0 -32
- package/dist/esm/components/rankable/table-head-cell-old.js +0 -42
- package/dist/esm/components/table-head-cell-old.js +0 -33
- package/dist/types/components/rankable/table-head-cell-old.d.ts +0 -5
- package/dist/types/components/table-head-cell-old.d.ts +0 -19
- package/dist/types-ts4.5/components/rankable/table-head-cell-old.d.ts +0 -5
- package/dist/types-ts4.5/components/table-head-cell-old.d.ts +0 -19
|
@@ -6,7 +6,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
7
7
|
|
|
8
8
|
import { forwardRef } from 'react';
|
|
9
|
-
import { B100, B50, B75, N10, N40 } from '@atlaskit/theme/colors';
|
|
10
9
|
const fixedSizeTableStyles = null;
|
|
11
10
|
const tableStyles = null;
|
|
12
11
|
const bodyBorder = null;
|
|
@@ -22,18 +21,18 @@ export const Table = /*#__PURE__*/forwardRef(({
|
|
|
22
21
|
inert: isLoading ? '' : undefined,
|
|
23
22
|
style: {
|
|
24
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
25
|
-
'--local-dynamic-table-hover-bg':
|
|
24
|
+
'--local-dynamic-table-hover-bg': "var(--ds-background-neutral-subtle-hovered, #091E420F)",
|
|
26
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
27
|
-
'--local-dynamic-table-highlighted-bg':
|
|
26
|
+
'--local-dynamic-table-highlighted-bg': "var(--ds-background-selected, #E9F2FF)",
|
|
28
27
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
29
|
-
'--local-dynamic-table-hover-highlighted-bg':
|
|
28
|
+
'--local-dynamic-table-hover-highlighted-bg': "var(--ds-background-selected-hovered, #CCE0FF)",
|
|
30
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
31
|
-
'--local-dynamic-table-row-focus-outline':
|
|
30
|
+
'--local-dynamic-table-row-focus-outline': "var(--ds-border-focused, #388BFF)"
|
|
32
31
|
},
|
|
33
32
|
ref: ref
|
|
34
33
|
}, rest, {
|
|
35
34
|
"data-testid": testId && `${testId}--table`,
|
|
36
|
-
className: ax(["_1bsb1osq _yq5hus1c _btyzidpf _ect41gqc", isFixedSize && "_1kqm1n9t", hasDataRow && "
|
|
35
|
+
className: ax(["_1bsb1osq _yq5hus1c _btyzidpf _ect41gqc", isFixedSize && "_1kqm1n9t", hasDataRow && "_179r187z"])
|
|
37
36
|
}), children);
|
|
38
37
|
});
|
|
39
38
|
const captionStyles = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}.
|
|
3
|
-
.
|
|
2
|
+
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}._12y3e4h9{outline-width:var(--ds-border-width,1px)}
|
|
3
|
+
._16qs1cd0{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #091e4226,0 0 1px #091e424f)}
|
|
4
4
|
._1e0c1ule{display:block}
|
|
5
|
-
.
|
|
6
|
-
.
|
|
5
|
+
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
6
|
+
._mizu1p6i:focus-visible{outline-color:var(--ds-border-focused,#388bff)}
|
|
7
7
|
._ra3xnqa1:focus-visible{outline-style:solid}
|
|
@@ -4,7 +4,6 @@ import "./table-row.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
|
-
import { B100, N20, N50A, N60A } from '@atlaskit/theme/colors';
|
|
8
7
|
import { TableBodyRow } from '../table-row';
|
|
9
8
|
const rankingStyles = null;
|
|
10
9
|
const rankingItemStyles = null;
|
|
@@ -21,6 +20,6 @@ export const RankableTableBodyRow = /*#__PURE__*/forwardRef(({
|
|
|
21
20
|
ref: ref,
|
|
22
21
|
testId: testId
|
|
23
22
|
}, props, {
|
|
24
|
-
className: ax([isRanking && "_1e0c1ule", isRankingItem && "_2rkolb4i
|
|
23
|
+
className: ax([isRanking && "_1e0c1ule", isRankingItem && "_2rkolb4i _bfhk1bhr _16qs1cd0", "_12y3e4h9 _mizu1p6i _ra3xnqa1"])
|
|
25
24
|
}));
|
|
26
25
|
});
|
|
@@ -1,67 +1,24 @@
|
|
|
1
|
-
|
|
2
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)}
|
|
3
|
-
._173zglyw>button{background:none}
|
|
4
|
-
._pw6dglyw>button{border:none}
|
|
5
|
-
._1j091l7b>button:before{border-width:3px}
|
|
6
|
-
._1wfn1j28>button:before{border-color:transparent}
|
|
7
|
-
._1xgk1j28>button:after{border-color:transparent}
|
|
8
|
-
._997wnqa1>button:before{border-style:solid}
|
|
9
|
-
._sklb1l7b>button:after{border-width:3px}
|
|
10
|
-
._y9yonqa1>button:after{border-style:solid}
|
|
11
2
|
._h7alglyw{border-inline:none}
|
|
12
3
|
._izbqglyw{border-block:none}
|
|
13
|
-
.
|
|
4
|
+
._179r187z{border-block-end:var(--ds-border-width-selected,2px) solid var(--ds-border,#091e4224)}
|
|
14
5
|
._179rglyw{border-block-end:none}
|
|
15
|
-
._191wglyw{border-inline-start:none}
|
|
16
|
-
._c77k1thn>button:before{border-block-end:3px solid var(--ds-icon-subtle,#5e6c84)}
|
|
17
|
-
._c77kvia6>button:before{border-block-end:3px solid var(--ds-icon-disabled,#dfe1e6)}
|
|
18
|
-
._f4731thn>button:after{border-block-start:3px solid var(--ds-icon-subtle,#5e6c84)}
|
|
19
|
-
._f473via6>button:after{border-block-start:3px solid var(--ds-icon-disabled,#dfe1e6)}
|
|
20
6
|
._mqm2glyw{border-block-start:none}
|
|
21
|
-
._t51zglyw{border-inline-end:none}._10pp1kw7>button{font-weight:inherit}
|
|
22
|
-
._14gsx0bf>button:after{inset-inline-end:var(--ds-space-negative-100,-8px)}
|
|
23
7
|
._18m915vq{overflow-y:hidden}
|
|
24
|
-
._19w61ule>button:after{display:block}
|
|
25
|
-
._1ay31kw7>button{cursor:inherit}
|
|
26
8
|
._1bsb8a2a{width:var(--local-dynamic-table-width)}
|
|
27
9
|
._1bto1l2s{text-overflow:ellipsis}
|
|
28
|
-
._1d4oidpf>button:before{height:0}
|
|
29
10
|
._1e0c1ule{display:block}
|
|
30
|
-
._1fpyidpf>button:after{inset-block-end:0}
|
|
31
|
-
._1hvvidpf>button:after{width:0}
|
|
32
11
|
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
33
12
|
._1reo15vq{overflow-x:hidden}
|
|
34
13
|
._1s37ze3t:first-of-type{padding-inline-start:var(--ds-space-0,0)}
|
|
35
|
-
._1w611ule>button:before{display:block}
|
|
36
|
-
._1yw3ze3t>button{padding-block-end:var(--ds-space-0,0)}
|
|
37
|
-
._4b5mb3bt>button:after{content:""}
|
|
38
|
-
._58ej1kw7>button{color:inherit}
|
|
39
14
|
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
40
|
-
._8607ze3t>button{padding-inline-end:var(--ds-space-0,0)}
|
|
41
|
-
._a04fh2mm>button{position:relative}
|
|
42
15
|
._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
|
|
43
|
-
._cigmx0bf>button:before{inset-inline-end:var(--ds-space-negative-100,-8px)}
|
|
44
|
-
._hn3bb3bt>button:before{content:""}
|
|
45
16
|
._k48pmoej{font-weight:var(--ds-font-weight-bold,700)}
|
|
46
17
|
._kqswh2mm{position:relative}
|
|
47
|
-
._mdbq1kw7>button{font-size:inherit}
|
|
48
|
-
._n2fdze3t>button{padding-block-start:var(--ds-space-0,0)}
|
|
49
|
-
._n56nidpf>button:before{width:0}
|
|
50
|
-
._no7mstnw>button:after{position:absolute}
|
|
51
18
|
._o5721q9c{white-space:nowrap}
|
|
52
|
-
._qh32stnw>button:before{position:absolute}
|
|
53
|
-
._qzvtu2gc>button:before{inset-block-end:var(--ds-space-100,8px)}
|
|
54
|
-
._s7n4jp4b{vertical-align:top}
|
|
55
19
|
._s7n4nkob{vertical-align:middle}
|
|
56
20
|
._syaz34id{color:var(--ds-text-subtle,var(--local-dynamic-table-text-color))}
|
|
57
|
-
._szhwze3t>button{padding-inline-start:var(--ds-space-0,0)}
|
|
58
21
|
._uupyze3t:last-child{padding-inline-end:var(--ds-space-0,0)}
|
|
59
|
-
._vchhusvi{box-sizing:border-box}
|
|
60
|
-
._wyc4idpf>button:after{height:0}
|
|
61
|
-
._xv14glyw>button{-webkit-appearance:none;appearance:none}
|
|
62
22
|
._y3gn1e5h{text-align:left}
|
|
63
23
|
._y4tiu2gc{padding-inline-end:var(--ds-space-100,8px)}
|
|
64
|
-
.
|
|
65
|
-
._d0altlke:hover{cursor:pointer}
|
|
66
|
-
._irr317ks:hover{background-color:var(--ds-background-neutral-hovered,rgba(9,30,66,.08))}
|
|
67
|
-
@media (forced-colors:active){._142s94yt>button:before{border-block-end:3px solid Highlight}._17x894yt>button:after{border-block-start:3px solid Highlight}._1g2wwc43>button:after{border-color:Canvas}._ze9fwc43>button:before{border-color:Canvas}._1lcgnqa1>button:after{border-style:solid}._at5qnqa1>button:before{border-style:solid}._o4d71l7b>button:after{border-width:3px}._npl51l7b>button:before{border-width:3px}._1rp11onz>button:before{border-block-end-color:CanvasText}._1iornqa1>button:before{border-block-end-style:solid}._oi051l7b>button:before{border-block-end-width:3px}._1ehx1onz>button:after{border-block-start-color:CanvasText}._19t8nqa1>button:after{border-block-start-style:solid}._1bog1l7b>button:after{border-block-start-width:3px}}
|
|
24
|
+
._1ygbi3bv:focus-visible{outline:solid var(--ds-border-width-focused,2px) var(--ds-border-focused,#388bff)}
|
|
@@ -6,8 +6,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
7
7
|
|
|
8
8
|
import { forwardRef } from 'react';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
-
import { B100, N300, N30A, N40 } from '@atlaskit/theme/colors';
|
|
11
9
|
import { ASC, DESC } from '../internal/constants';
|
|
12
10
|
import { getTruncationStyleVars } from './constants';
|
|
13
11
|
const CSS_VAR_TEXT_COLOR = '--local-dynamic-table-text-color';
|
|
@@ -30,11 +28,6 @@ export const Head = ({
|
|
|
30
28
|
}));
|
|
31
29
|
};
|
|
32
30
|
const headCellBaseStyles = null;
|
|
33
|
-
const headCellBaseStylesOld = null;
|
|
34
|
-
const onClickStyles = null;
|
|
35
|
-
const baseStyles = null;
|
|
36
|
-
const ascendingStyles = null;
|
|
37
|
-
const descendingStyles = null;
|
|
38
31
|
export const HeadCell = /*#__PURE__*/forwardRef(({
|
|
39
32
|
width,
|
|
40
33
|
children,
|
|
@@ -52,7 +45,7 @@ export const HeadCell = /*#__PURE__*/forwardRef(({
|
|
|
52
45
|
...(width && getTruncationStyleVars({
|
|
53
46
|
width
|
|
54
47
|
})),
|
|
55
|
-
[CSS_VAR_TEXT_COLOR]:
|
|
48
|
+
[CSS_VAR_TEXT_COLOR]: "var(--ds-text-subtlest, #626F86)"
|
|
56
49
|
};
|
|
57
50
|
const isASC = sortOrder === ASC;
|
|
58
51
|
const isDESC = sortOrder === DESC;
|
|
@@ -67,16 +60,15 @@ export const HeadCell = /*#__PURE__*/forwardRef(({
|
|
|
67
60
|
// If there is no content in the cell, it should be rendered as an empty `td`, not a `th`.
|
|
68
61
|
// https://dequeuniversity.com/rules/axe/4.7/empty-table-header
|
|
69
62
|
const Component = children ? 'th' : 'td';
|
|
70
|
-
const isVisuallyRefreshed = fg('platform-component-visual-refresh');
|
|
71
63
|
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
72
64
|
"aria-sort": getFormattedSortOrder()
|
|
73
65
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
74
66
|
,
|
|
75
67
|
style: mergedStyles,
|
|
76
|
-
onClick:
|
|
68
|
+
onClick: undefined,
|
|
77
69
|
ref: ref,
|
|
78
70
|
"data-testid": testId
|
|
79
71
|
}, rest, {
|
|
80
|
-
className: ax(["_izbqglyw _h7alglyw _85i51b66 _1q511b66 _y4tiu2gc _bozgu2gc _y3gn1e5h _1s37ze3t _uupyze3t",
|
|
72
|
+
className: ax(["_izbqglyw _h7alglyw _85i51b66 _1q511b66 _y4tiu2gc _bozgu2gc _y3gn1e5h _1s37ze3t _uupyze3t", "_11c8dcr7 _179r187z _mqm2glyw _kqswh2mm _syaz34id _k48pmoej _y3gn1e5h _s7n4nkob _1ygbi3bv", "_1bsb8a2a", isFixedSize && shouldTruncate && "_1bto1l2s _o5721q9c", isFixedSize && "_1reo15vq _18m915vq"])
|
|
81
73
|
}), children);
|
|
82
74
|
});
|
|
@@ -11,6 +11,7 @@ import withSortedPageRows
|
|
|
11
11
|
// @ts-ignore -- Required for the below export of Body
|
|
12
12
|
from '../hoc/with-sorted-page-rows';
|
|
13
13
|
import TableRow from './table-row';
|
|
14
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
14
15
|
var BodyComponent = /*#__PURE__*/function (_React$Component) {
|
|
15
16
|
function BodyComponent() {
|
|
16
17
|
_classCallCheck(this, BodyComponent);
|
|
@@ -6,6 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
9
10
|
export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
10
11
|
function ErrorBoundary(props) {
|
|
11
12
|
var _this;
|
|
@@ -12,6 +12,7 @@ import React from 'react';
|
|
|
12
12
|
import Spinner from '@atlaskit/spinner';
|
|
13
13
|
import { LARGE, LOADING_CONTENTS_OPACITY } from '../internal/constants';
|
|
14
14
|
import { Container, SpinnerBackdrop, SpinnerContainer } from '../styled/loading-container-advanced';
|
|
15
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
15
16
|
var LoadingContainerAdvanced = /*#__PURE__*/function (_React$Component) {
|
|
16
17
|
function LoadingContainerAdvanced() {
|
|
17
18
|
var _this;
|
|
@@ -10,6 +10,7 @@ import React from 'react';
|
|
|
10
10
|
import Spinner from '@atlaskit/spinner';
|
|
11
11
|
import { LARGE, LOADING_CONTENTS_OPACITY } from '../internal/constants';
|
|
12
12
|
import { Container, ContentsContainer, SpinnerContainer } from '../styled/loading-container';
|
|
13
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
13
14
|
var LoadingContainer = /*#__PURE__*/function (_React$Component) {
|
|
14
15
|
function LoadingContainer() {
|
|
15
16
|
_classCallCheck(this, LoadingContainer);
|
|
@@ -9,6 +9,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import Pagination from '@atlaskit/pagination';
|
|
12
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
12
13
|
var ManagedPagination = /*#__PURE__*/function (_React$Component) {
|
|
13
14
|
function ManagedPagination() {
|
|
14
15
|
var _this;
|
|
@@ -33,6 +33,8 @@ var computeRankDestination = function computeRankDestination(result, pageRows) {
|
|
|
33
33
|
}
|
|
34
34
|
return undefined;
|
|
35
35
|
};
|
|
36
|
+
|
|
37
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
36
38
|
export var RankableBody = /*#__PURE__*/function (_React$Component) {
|
|
37
39
|
function RankableBody() {
|
|
38
40
|
var _this;
|
|
@@ -14,6 +14,7 @@ import withDimensions
|
|
|
14
14
|
from '../../hoc/with-dimensions';
|
|
15
15
|
import { inlineStylesIfRanking } from '../../internal/helpers';
|
|
16
16
|
import { RankableTableBodyCell } from '../../styled/rankable/table-cell';
|
|
17
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
17
18
|
export var RankableTableCell = /*#__PURE__*/function (_React$Component) {
|
|
18
19
|
function RankableTableCell() {
|
|
19
20
|
_classCallCheck(this, RankableTableCell);
|
|
@@ -14,6 +14,8 @@ import withDimensions
|
|
|
14
14
|
from '../../hoc/with-dimensions';
|
|
15
15
|
import { inlineStylesIfRanking } from '../../internal/helpers';
|
|
16
16
|
import HeadCell from '../table-head-cell';
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
17
19
|
var RankableTableHeadCellComponent = /*#__PURE__*/function (_React$Component) {
|
|
18
20
|
function RankableTableHeadCellComponent() {
|
|
19
21
|
_classCallCheck(this, RankableTableHeadCellComponent);
|
|
@@ -21,6 +21,7 @@ from '../../hoc/with-dimensions';
|
|
|
21
21
|
import { inlineStylesIfRanking } from '../../internal/helpers';
|
|
22
22
|
import { RankableTableBodyRow } from '../../styled/rankable/table-row';
|
|
23
23
|
import TableCell from './table-cell';
|
|
24
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
24
25
|
var RankableTableRow = /*#__PURE__*/function (_React$Component) {
|
|
25
26
|
function RankableTableRow() {
|
|
26
27
|
var _this;
|
|
@@ -76,14 +76,14 @@ var DynamicTable = function DynamicTable(_ref) {
|
|
|
76
76
|
action: 'sorted',
|
|
77
77
|
componentName: 'dynamicTable',
|
|
78
78
|
packageName: "@atlaskit/dynamic-table",
|
|
79
|
-
packageVersion: "
|
|
79
|
+
packageVersion: "18.2.18"
|
|
80
80
|
});
|
|
81
81
|
var onRankEnd = usePlatformLeafEventHandler({
|
|
82
82
|
fn: providedOnRankEnd,
|
|
83
83
|
action: 'ranked',
|
|
84
84
|
componentName: 'dynamicTable',
|
|
85
85
|
packageName: "@atlaskit/dynamic-table",
|
|
86
|
-
packageVersion: "
|
|
86
|
+
packageVersion: "18.2.18"
|
|
87
87
|
});
|
|
88
88
|
useEffect(function () {
|
|
89
89
|
validateSortKey(sortKey, head);
|
|
@@ -10,13 +10,11 @@ var _excluded = ["cells"],
|
|
|
10
10
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
import { validateSortKey } from '../internal/helpers';
|
|
15
14
|
import { Head } from '../styled/table-head';
|
|
16
15
|
import RankableHeadCell from './rankable/table-head-cell';
|
|
17
|
-
import RankableHeadCellOld from './rankable/table-head-cell-old';
|
|
18
16
|
import HeadCell from './table-head-cell';
|
|
19
|
-
|
|
17
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
20
18
|
var TableHead = /*#__PURE__*/function (_React$Component) {
|
|
21
19
|
function TableHead(props) {
|
|
22
20
|
var _this;
|
|
@@ -57,7 +55,6 @@ var TableHead = /*#__PURE__*/function (_React$Component) {
|
|
|
57
55
|
if (!head) {
|
|
58
56
|
return null;
|
|
59
57
|
}
|
|
60
|
-
var HeadCellComponentOld = isRankable ? RankableHeadCellOld : HeadCellOld;
|
|
61
58
|
var HeadCellComponent = isRankable ? RankableHeadCell : HeadCell;
|
|
62
59
|
|
|
63
60
|
// TODO: Remove `rest` props and use only what is explicitly in the API.
|
|
@@ -91,7 +88,7 @@ var TableHead = /*#__PURE__*/function (_React$Component) {
|
|
|
91
88
|
onSort(cell)();
|
|
92
89
|
}
|
|
93
90
|
};
|
|
94
|
-
return
|
|
91
|
+
return /*#__PURE__*/React.createElement(HeadCellComponent, _extends({
|
|
95
92
|
colSpan: colSpan,
|
|
96
93
|
content: content,
|
|
97
94
|
isFixedSize: isFixedSize,
|
|
@@ -109,18 +106,6 @@ var TableHead = /*#__PURE__*/function (_React$Component) {
|
|
|
109
106
|
ascendingSortTooltip: ascendingSortTooltip,
|
|
110
107
|
descendingSortTooltip: descendingSortTooltip,
|
|
111
108
|
buttonAriaRoleDescription: buttonAriaRoleDescription
|
|
112
|
-
}, restCellProps)) : /*#__PURE__*/React.createElement(HeadCellComponentOld, _extends({
|
|
113
|
-
colSpan: colSpan,
|
|
114
|
-
content: content,
|
|
115
|
-
isFixedSize: isFixedSize,
|
|
116
|
-
isSortable: !!isSortable,
|
|
117
|
-
isRanking: isRanking,
|
|
118
|
-
key: key || index,
|
|
119
|
-
onClick: isSortable ? onSort(cell) : undefined,
|
|
120
|
-
testId: cellTestId || testId,
|
|
121
|
-
shouldTruncate: shouldTruncate,
|
|
122
|
-
sortOrder: key === sortKey ? sortOrder : undefined,
|
|
123
|
-
width: width
|
|
124
109
|
}, restCellProps));
|
|
125
110
|
})));
|
|
126
111
|
}
|
|
@@ -86,6 +86,7 @@ var getSortedRows = function getSortedRows(head, rows, sortKey, sortOrder) {
|
|
|
86
86
|
};
|
|
87
87
|
// get one page of data in table, sorting all rows previously
|
|
88
88
|
export default function withSortedPageRows(WrappedComponent) {
|
|
89
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
89
90
|
var WithSortedPageRows = /*#__PURE__*/function (_React$Component) {
|
|
90
91
|
function WithSortedPageRows() {
|
|
91
92
|
var _this;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
.
|
|
2
|
+
._179r187z{border-block-end:var(--ds-border-width-selected,2px) solid var(--ds-border,#091e4224)}
|
|
3
3
|
._1bah1h6o{justify-content:center}
|
|
4
4
|
._1bsb1osq{width:100%}
|
|
5
5
|
._1e0c1txw{display:flex}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
/* dynamic-table.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
4
|
var _excluded = ["isFixedSize", "hasDataRow", "children", "testId", "isLoading"];
|
|
6
5
|
import "./dynamic-table.compiled.css";
|
|
7
6
|
import * as React from 'react';
|
|
8
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
9
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
8
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
12
9
|
|
|
13
10
|
import { forwardRef } from 'react';
|
|
14
|
-
import { B100, B50, B75, N10, N40 } from '@atlaskit/theme/colors';
|
|
15
11
|
var fixedSizeTableStyles = null;
|
|
16
12
|
var tableStyles = null;
|
|
17
13
|
var bodyBorder = null;
|
|
@@ -24,22 +20,20 @@ export var Table = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
24
20
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
21
|
return /*#__PURE__*/React.createElement("table", _extends({
|
|
26
22
|
inert: isLoading ? '' : undefined,
|
|
27
|
-
|
|
28
|
-
}, rest, {
|
|
29
|
-
"data-testid": testId && "".concat(testId, "--table"),
|
|
30
|
-
className: ax(["_1bsb1osq _yq5hus1c _btyzidpf _ect41gqc", isFixedSize && "_1kqm1n9t", hasDataRow && "_179r1tpy"]),
|
|
31
|
-
style: _objectSpread(_objectSpread({}, {
|
|
23
|
+
style: {
|
|
32
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
33
|
-
'--local-dynamic-table-hover-bg': "var(--ds-background-neutral-subtle-hovered,
|
|
25
|
+
'--local-dynamic-table-hover-bg': "var(--ds-background-neutral-subtle-hovered, #091E420F)",
|
|
34
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
35
|
-
'--local-dynamic-table-highlighted-bg': "var(--ds-background-selected,
|
|
27
|
+
'--local-dynamic-table-highlighted-bg': "var(--ds-background-selected, #E9F2FF)",
|
|
36
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
37
|
-
'--local-dynamic-table-hover-highlighted-bg': "var(--ds-background-selected-hovered,
|
|
29
|
+
'--local-dynamic-table-hover-highlighted-bg': "var(--ds-background-selected-hovered, #CCE0FF)",
|
|
38
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
39
|
-
'--local-dynamic-table-row-focus-outline': "var(--ds-border-focused,
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
31
|
+
'--local-dynamic-table-row-focus-outline': "var(--ds-border-focused, #388BFF)"
|
|
32
|
+
},
|
|
33
|
+
ref: ref
|
|
34
|
+
}, rest, {
|
|
35
|
+
"data-testid": testId && "".concat(testId, "--table"),
|
|
36
|
+
className: ax(["_1bsb1osq _yq5hus1c _btyzidpf _ect41gqc", isFixedSize && "_1kqm1n9t", hasDataRow && "_179r187z"])
|
|
43
37
|
}), children);
|
|
44
38
|
});
|
|
45
39
|
var captionStyles = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}.
|
|
3
|
-
.
|
|
2
|
+
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}._12y3e4h9{outline-width:var(--ds-border-width,1px)}
|
|
3
|
+
._16qs1cd0{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #091e4226,0 0 1px #091e424f)}
|
|
4
4
|
._1e0c1ule{display:block}
|
|
5
|
-
.
|
|
6
|
-
.
|
|
5
|
+
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
6
|
+
._mizu1p6i:focus-visible{outline-color:var(--ds-border-focused,#388bff)}
|
|
7
7
|
._ra3xnqa1:focus-visible{outline-style:solid}
|
|
@@ -6,7 +6,6 @@ import "./table-row.compiled.css";
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
8
|
import { forwardRef } from 'react';
|
|
9
|
-
import { B100, N20, N50A, N60A } from '@atlaskit/theme/colors';
|
|
10
9
|
import { TableBodyRow } from '../table-row';
|
|
11
10
|
var rankingStyles = null;
|
|
12
11
|
var rankingItemStyles = null;
|
|
@@ -22,11 +21,6 @@ export var RankableTableBodyRow = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
22
21
|
ref: ref,
|
|
23
22
|
testId: testId
|
|
24
23
|
}, props, {
|
|
25
|
-
className: ax([isRanking && "_1e0c1ule", isRankingItem && "_2rkolb4i
|
|
26
|
-
style: {
|
|
27
|
-
"--_14yez9t": ix("var(--ds-surface-overlay, ".concat(N20, ")")),
|
|
28
|
-
"--_qzf6oc": ix("var(--ds-shadow-overlay, ".concat("0 20px 32px -8px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")")),
|
|
29
|
-
"--_9ksfq": ix("var(--ds-border-focused, ".concat(B100, ")"))
|
|
30
|
-
}
|
|
24
|
+
className: ax([isRanking && "_1e0c1ule", isRankingItem && "_2rkolb4i _bfhk1bhr _16qs1cd0", "_12y3e4h9 _mizu1p6i _ra3xnqa1"])
|
|
31
25
|
}));
|
|
32
26
|
});
|
|
@@ -1,67 +1,24 @@
|
|
|
1
|
-
|
|
2
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)}
|
|
3
|
-
._173zglyw>button{background:none}
|
|
4
|
-
._pw6dglyw>button{border:none}
|
|
5
|
-
._1j091l7b>button:before{border-width:3px}
|
|
6
|
-
._1wfn1j28>button:before{border-color:transparent}
|
|
7
|
-
._1xgk1j28>button:after{border-color:transparent}
|
|
8
|
-
._997wnqa1>button:before{border-style:solid}
|
|
9
|
-
._sklb1l7b>button:after{border-width:3px}
|
|
10
|
-
._y9yonqa1>button:after{border-style:solid}
|
|
11
2
|
._h7alglyw{border-inline:none}
|
|
12
3
|
._izbqglyw{border-block:none}
|
|
13
|
-
.
|
|
4
|
+
._179r187z{border-block-end:var(--ds-border-width-selected,2px) solid var(--ds-border,#091e4224)}
|
|
14
5
|
._179rglyw{border-block-end:none}
|
|
15
|
-
._191wglyw{border-inline-start:none}
|
|
16
|
-
._c77k1f6e>button:before{border-block-end:var(--_1rdacuj)}
|
|
17
|
-
._c77k2wk4>button:before{border-block-end:var(--_1qca9zt)}
|
|
18
|
-
._f4731f6e>button:after{border-block-start:var(--_1rdacuj)}
|
|
19
|
-
._f4732wk4>button:after{border-block-start:var(--_1qca9zt)}
|
|
20
6
|
._mqm2glyw{border-block-start:none}
|
|
21
|
-
._t51zglyw{border-inline-end:none}._10pp1kw7>button{font-weight:inherit}
|
|
22
|
-
._14gsx0bf>button:after{inset-inline-end:var(--ds-space-negative-100,-8px)}
|
|
23
7
|
._18m915vq{overflow-y:hidden}
|
|
24
|
-
._19w61ule>button:after{display:block}
|
|
25
|
-
._1ay31kw7>button{cursor:inherit}
|
|
26
8
|
._1bsb8a2a{width:var(--local-dynamic-table-width)}
|
|
27
9
|
._1bto1l2s{text-overflow:ellipsis}
|
|
28
|
-
._1d4oidpf>button:before{height:0}
|
|
29
10
|
._1e0c1ule{display:block}
|
|
30
|
-
._1fpyidpf>button:after{inset-block-end:0}
|
|
31
|
-
._1hvvidpf>button:after{width:0}
|
|
32
11
|
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
33
12
|
._1reo15vq{overflow-x:hidden}
|
|
34
13
|
._1s37ze3t:first-of-type{padding-inline-start:var(--ds-space-0,0)}
|
|
35
|
-
._1w611ule>button:before{display:block}
|
|
36
|
-
._1yw3ze3t>button{padding-block-end:var(--ds-space-0,0)}
|
|
37
|
-
._4b5mb3bt>button:after{content:""}
|
|
38
|
-
._58ej1kw7>button{color:inherit}
|
|
39
14
|
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
40
|
-
._8607ze3t>button{padding-inline-end:var(--ds-space-0,0)}
|
|
41
|
-
._a04fh2mm>button{position:relative}
|
|
42
15
|
._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
|
|
43
|
-
._cigmx0bf>button:before{inset-inline-end:var(--ds-space-negative-100,-8px)}
|
|
44
|
-
._hn3bb3bt>button:before{content:""}
|
|
45
16
|
._k48pmoej{font-weight:var(--ds-font-weight-bold,700)}
|
|
46
17
|
._kqswh2mm{position:relative}
|
|
47
|
-
._mdbq1kw7>button{font-size:inherit}
|
|
48
|
-
._n2fdze3t>button{padding-block-start:var(--ds-space-0,0)}
|
|
49
|
-
._n56nidpf>button:before{width:0}
|
|
50
|
-
._no7mstnw>button:after{position:absolute}
|
|
51
18
|
._o5721q9c{white-space:nowrap}
|
|
52
|
-
._qh32stnw>button:before{position:absolute}
|
|
53
|
-
._qzvtu2gc>button:before{inset-block-end:var(--ds-space-100,8px)}
|
|
54
|
-
._s7n4jp4b{vertical-align:top}
|
|
55
19
|
._s7n4nkob{vertical-align:middle}
|
|
56
20
|
._syaz12fi{color:var(--_17ckjys)}
|
|
57
|
-
._szhwze3t>button{padding-inline-start:var(--ds-space-0,0)}
|
|
58
21
|
._uupyze3t:last-child{padding-inline-end:var(--ds-space-0,0)}
|
|
59
|
-
._vchhusvi{box-sizing:border-box}
|
|
60
|
-
._wyc4idpf>button:after{height:0}
|
|
61
|
-
._xv14glyw>button{-webkit-appearance:none;appearance:none}
|
|
62
22
|
._y3gn1e5h{text-align:left}
|
|
63
23
|
._y4tiu2gc{padding-inline-end:var(--ds-space-100,8px)}
|
|
64
|
-
.
|
|
65
|
-
._d0altlke:hover{cursor:pointer}
|
|
66
|
-
._irr3bfnf:hover{background-color:var(--_6j4ewu)}
|
|
67
|
-
@media (forced-colors:active){._142s94yt>button:before{border-block-end:3px solid Highlight}._17x894yt>button:after{border-block-start:3px solid Highlight}._1g2wwc43>button:after{border-color:Canvas}._ze9fwc43>button:before{border-color:Canvas}._1lcgnqa1>button:after{border-style:solid}._at5qnqa1>button:before{border-style:solid}._o4d71l7b>button:after{border-width:3px}._npl51l7b>button:before{border-width:3px}._1rp11onz>button:before{border-block-end-color:CanvasText}._1iornqa1>button:before{border-block-end-style:solid}._oi051l7b>button:before{border-block-end-width:3px}._1ehx1onz>button:after{border-block-start-color:CanvasText}._19t8nqa1>button:after{border-block-start-style:solid}._1bog1l7b>button:after{border-block-start-width:3px}}
|
|
24
|
+
._1ygbi3bv:focus-visible{outline:solid var(--ds-border-width-focused,2px) var(--ds-border-focused,#388bff)}
|
|
@@ -12,8 +12,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
12
12
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
13
13
|
|
|
14
14
|
import { forwardRef } from 'react';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
|
-
import { B100, N300, N30A, N40 } from '@atlaskit/theme/colors';
|
|
17
15
|
import { ASC, DESC } from '../internal/constants';
|
|
18
16
|
import { getTruncationStyleVars } from './constants';
|
|
19
17
|
var CSS_VAR_TEXT_COLOR = '--local-dynamic-table-text-color';
|
|
@@ -35,11 +33,6 @@ export var Head = function Head(_ref) {
|
|
|
35
33
|
}));
|
|
36
34
|
};
|
|
37
35
|
var headCellBaseStyles = null;
|
|
38
|
-
var headCellBaseStylesOld = null;
|
|
39
|
-
var onClickStyles = null;
|
|
40
|
-
var baseStyles = null;
|
|
41
|
-
var ascendingStyles = null;
|
|
42
|
-
var descendingStyles = null;
|
|
43
36
|
export var HeadCell = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
44
37
|
var width = _ref2.width,
|
|
45
38
|
children = _ref2.children,
|
|
@@ -53,7 +46,7 @@ export var HeadCell = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
53
46
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
54
47
|
var mergedStyles = _objectSpread(_objectSpread(_objectSpread({}, style), width && getTruncationStyleVars({
|
|
55
48
|
width: width
|
|
56
|
-
})), {}, _defineProperty({}, CSS_VAR_TEXT_COLOR, "var(--ds-text-subtlest,
|
|
49
|
+
})), {}, _defineProperty({}, CSS_VAR_TEXT_COLOR, "var(--ds-text-subtlest, #626F86)"));
|
|
57
50
|
var isASC = sortOrder === ASC;
|
|
58
51
|
var isDESC = sortOrder === DESC;
|
|
59
52
|
var getFormattedSortOrder = function getFormattedSortOrder() {
|
|
@@ -67,24 +60,18 @@ export var HeadCell = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
67
60
|
// If there is no content in the cell, it should be rendered as an empty `td`, not a `th`.
|
|
68
61
|
// https://dequeuniversity.com/rules/axe/4.7/empty-table-header
|
|
69
62
|
var Component = children ? 'th' : 'td';
|
|
70
|
-
var isVisuallyRefreshed = fg('platform-component-visual-refresh');
|
|
71
63
|
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
72
64
|
"aria-sort": getFormattedSortOrder()
|
|
73
65
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
74
66
|
,
|
|
75
67
|
|
|
76
|
-
onClick:
|
|
68
|
+
onClick: undefined,
|
|
77
69
|
ref: ref,
|
|
78
70
|
"data-testid": testId
|
|
79
71
|
}, rest, {
|
|
80
|
-
className: ax(["_izbqglyw _h7alglyw _85i51b66 _1q511b66 _y4tiu2gc _bozgu2gc _y3gn1e5h _1s37ze3t _uupyze3t",
|
|
72
|
+
className: ax(["_izbqglyw _h7alglyw _85i51b66 _1q511b66 _y4tiu2gc _bozgu2gc _y3gn1e5h _1s37ze3t _uupyze3t", "_11c8dcr7 _179r187z _mqm2glyw _kqswh2mm _syaz12fi _k48pmoej _y3gn1e5h _s7n4nkob _1ygbi3bv", "_1bsb8a2a", isFixedSize && shouldTruncate && "_1bto1l2s _o5721q9c", isFixedSize && "_1reo15vq _18m915vq"]),
|
|
81
73
|
style: _objectSpread(_objectSpread({}, mergedStyles), {}, {
|
|
82
|
-
"--
|
|
83
|
-
"--_17ckjys": ix("var(--ds-text-subtle, ".concat("var(".concat(CSS_VAR_TEXT_COLOR, ")"), ")")),
|
|
84
|
-
"--_z3oznn": ix("solid ".concat("var(--ds-border-width-focused, 2px)", " ", "var(--ds-border-focused, ".concat(B100, ")"))),
|
|
85
|
-
"--_6j4ewu": ix("var(--ds-background-neutral-hovered, ".concat(N30A, ")")),
|
|
86
|
-
"--_1rdacuj": ix("3px solid ".concat("var(--ds-icon-disabled, ".concat(N40, ")"))),
|
|
87
|
-
"--_1qca9zt": ix("3px solid ".concat("var(--ds-icon-subtle, ".concat(N300, ")")))
|
|
74
|
+
"--_17ckjys": ix("var(--ds-text-subtle, ".concat("var(".concat(CSS_VAR_TEXT_COLOR, ")"), ")"))
|
|
88
75
|
})
|
|
89
76
|
}), children);
|
|
90
77
|
});
|
|
@@ -9,7 +9,7 @@ type TableProps = HTMLProps<HTMLTableElement> & {
|
|
|
9
9
|
hasDataRow: boolean;
|
|
10
10
|
testId?: string;
|
|
11
11
|
};
|
|
12
|
-
export declare const Table:
|
|
12
|
+
export declare const Table: import("react").ForwardRefExoticComponent<Omit<TableProps, "ref"> & import("react").RefAttributes<HTMLTableElement>>;
|
|
13
13
|
export declare const Caption: FC<{
|
|
14
14
|
children: ReactNode;
|
|
15
15
|
}>;
|
|
@@ -4,10 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type HTMLAttributes } from 'react';
|
|
6
6
|
import { type ITableRowProps } from '../table-row';
|
|
7
|
-
|
|
7
|
+
export declare const RankableTableBodyRow: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLTableRowElement> & ITableRowProps & {
|
|
8
8
|
isRanking?: boolean;
|
|
9
9
|
isRankingItem?: boolean;
|
|
10
10
|
testId?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const RankableTableBodyRow: React.ForwardRefExoticComponent<React.PropsWithoutRef<RankableTableBodyRowProps> & React.RefAttributes<HTMLTableRowElement>>;
|
|
13
|
-
export {};
|
|
11
|
+
} & import("react").RefAttributes<HTMLTableRowElement>>;
|
|
@@ -17,5 +17,5 @@ type HeadCellProps = TruncateStyleProps & HTMLProps<HTMLTableCellElement> & {
|
|
|
17
17
|
sortOrder?: SortOrderType;
|
|
18
18
|
testId?: string;
|
|
19
19
|
};
|
|
20
|
-
export declare const HeadCell:
|
|
20
|
+
export declare const HeadCell: import("react").ForwardRefExoticComponent<Omit<HeadCellProps, "ref"> & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
21
21
|
export {};
|
|
@@ -9,7 +9,7 @@ type TableProps = HTMLProps<HTMLTableElement> & {
|
|
|
9
9
|
hasDataRow: boolean;
|
|
10
10
|
testId?: string;
|
|
11
11
|
};
|
|
12
|
-
export declare const Table:
|
|
12
|
+
export declare const Table: import("react").ForwardRefExoticComponent<Omit<TableProps, "ref"> & import("react").RefAttributes<HTMLTableElement>>;
|
|
13
13
|
export declare const Caption: FC<{
|
|
14
14
|
children: ReactNode;
|
|
15
15
|
}>;
|