@atlaskit/dynamic-table 14.17.0 → 14.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/CHANGELOG.md +995 -981
  2. package/README.md +2 -1
  3. package/dist/cjs/components/rankable/table-cell.js +3 -1
  4. package/dist/cjs/components/rankable/table-row.js +3 -1
  5. package/dist/cjs/components/stateless.js +1 -1
  6. package/dist/cjs/components/table-head-cell.js +3 -1
  7. package/dist/cjs/styled/constants.js +13 -2
  8. package/dist/cjs/styled/dynamic-table.js +19 -11
  9. package/dist/cjs/styled/empty-body.js +5 -3
  10. package/dist/cjs/styled/loading-container-advanced.js +7 -3
  11. package/dist/cjs/styled/loading-container.js +6 -0
  12. package/dist/cjs/styled/rankable/table-cell.js +4 -0
  13. package/dist/cjs/styled/rankable/table-row.js +4 -0
  14. package/dist/cjs/styled/table-cell.js +14 -1
  15. package/dist/cjs/styled/table-head.js +45 -7
  16. package/dist/cjs/styled/table-row.js +13 -4
  17. package/dist/cjs/types.js +3 -1
  18. package/dist/es2019/components/rankable/table-cell.js +3 -1
  19. package/dist/es2019/components/rankable/table-row.js +3 -1
  20. package/dist/es2019/components/stateless.js +1 -1
  21. package/dist/es2019/components/table-head-cell.js +3 -1
  22. package/dist/es2019/styled/constants.js +12 -2
  23. package/dist/es2019/styled/dynamic-table.js +24 -12
  24. package/dist/es2019/styled/empty-body.js +5 -4
  25. package/dist/es2019/styled/loading-container-advanced.js +8 -3
  26. package/dist/es2019/styled/loading-container.js +5 -0
  27. package/dist/es2019/styled/rankable/table-cell.js +4 -0
  28. package/dist/es2019/styled/rankable/table-row.js +5 -0
  29. package/dist/es2019/styled/table-cell.js +14 -1
  30. package/dist/es2019/styled/table-head.js +46 -7
  31. package/dist/es2019/styled/table-row.js +18 -4
  32. package/dist/es2019/types.js +1 -14
  33. package/dist/esm/components/rankable/table-cell.js +3 -1
  34. package/dist/esm/components/rankable/table-row.js +3 -1
  35. package/dist/esm/components/stateless.js +1 -1
  36. package/dist/esm/components/table-head-cell.js +3 -1
  37. package/dist/esm/styled/constants.js +12 -2
  38. package/dist/esm/styled/dynamic-table.js +20 -12
  39. package/dist/esm/styled/empty-body.js +5 -4
  40. package/dist/esm/styled/loading-container-advanced.js +8 -3
  41. package/dist/esm/styled/loading-container.js +5 -0
  42. package/dist/esm/styled/rankable/table-cell.js +4 -0
  43. package/dist/esm/styled/rankable/table-row.js +5 -0
  44. package/dist/esm/styled/table-cell.js +14 -1
  45. package/dist/esm/styled/table-head.js +46 -7
  46. package/dist/esm/styled/table-row.js +14 -4
  47. package/dist/esm/types.js +1 -14
  48. package/dist/types/components/body.d.ts +2 -2
  49. package/dist/types/components/error-boundary.d.ts +1 -1
  50. package/dist/types/components/managed-pagination.d.ts +1 -1
  51. package/dist/types/components/rankable/body.d.ts +3 -3
  52. package/dist/types/components/rankable/table-cell.d.ts +2 -2
  53. package/dist/types/components/rankable/table-head-cell.d.ts +2 -2
  54. package/dist/types/components/rankable/table-row.d.ts +2 -2
  55. package/dist/types/components/stateful.d.ts +2 -2
  56. package/dist/types/components/stateless.d.ts +2 -2
  57. package/dist/types/components/table-head-cell.d.ts +2 -2
  58. package/dist/types/components/table-head.d.ts +1 -1
  59. package/dist/types/components/table-row.d.ts +1 -1
  60. package/dist/types/hoc/with-dimensions.d.ts +1 -1
  61. package/dist/types/hoc/with-sorted-page-rows.d.ts +1 -1
  62. package/dist/types/internal/helpers.d.ts +1 -1
  63. package/dist/types/styled/constants.d.ts +1 -1
  64. package/dist/types/styled/dynamic-table.d.ts +4 -1
  65. package/dist/types/styled/empty-body.d.ts +4 -1
  66. package/dist/types/styled/loading-container-advanced.d.ts +4 -1
  67. package/dist/types/styled/loading-container.d.ts +4 -1
  68. package/dist/types/styled/rankable/table-cell.d.ts +5 -2
  69. package/dist/types/styled/rankable/table-row.d.ts +5 -2
  70. package/dist/types/styled/table-cell.d.ts +5 -2
  71. package/dist/types/styled/table-head.d.ts +6 -3
  72. package/dist/types/styled/table-row.d.ts +4 -1
  73. package/dist/types/types.d.ts +2 -2
  74. package/dist/types-ts4.5/components/body.d.ts +2 -2
  75. package/dist/types-ts4.5/components/error-boundary.d.ts +1 -1
  76. package/dist/types-ts4.5/components/managed-pagination.d.ts +1 -1
  77. package/dist/types-ts4.5/components/rankable/body.d.ts +3 -3
  78. package/dist/types-ts4.5/components/rankable/table-cell.d.ts +2 -2
  79. package/dist/types-ts4.5/components/rankable/table-head-cell.d.ts +2 -2
  80. package/dist/types-ts4.5/components/rankable/table-row.d.ts +2 -2
  81. package/dist/types-ts4.5/components/stateful.d.ts +2 -2
  82. package/dist/types-ts4.5/components/stateless.d.ts +2 -2
  83. package/dist/types-ts4.5/components/table-head-cell.d.ts +2 -2
  84. package/dist/types-ts4.5/components/table-head.d.ts +1 -1
  85. package/dist/types-ts4.5/components/table-row.d.ts +1 -1
  86. package/dist/types-ts4.5/hoc/with-dimensions.d.ts +1 -1
  87. package/dist/types-ts4.5/hoc/with-sorted-page-rows.d.ts +1 -1
  88. package/dist/types-ts4.5/internal/helpers.d.ts +1 -1
  89. package/dist/types-ts4.5/styled/constants.d.ts +1 -1
  90. package/dist/types-ts4.5/styled/dynamic-table.d.ts +4 -1
  91. package/dist/types-ts4.5/styled/empty-body.d.ts +4 -1
  92. package/dist/types-ts4.5/styled/loading-container-advanced.d.ts +4 -1
  93. package/dist/types-ts4.5/styled/loading-container.d.ts +4 -1
  94. package/dist/types-ts4.5/styled/rankable/table-cell.d.ts +5 -2
  95. package/dist/types-ts4.5/styled/rankable/table-row.d.ts +5 -2
  96. package/dist/types-ts4.5/styled/table-cell.d.ts +5 -2
  97. package/dist/types-ts4.5/styled/table-head.d.ts +6 -3
  98. package/dist/types-ts4.5/styled/table-row.d.ts +4 -1
  99. package/dist/types-ts4.5/types.d.ts +2 -2
  100. package/package.json +93 -89
  101. package/report.api.md +212 -214
@@ -1,8 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["isRanking", "innerRef"];
4
+ /**
5
+ * @jsxRuntime classic
6
+ */
4
7
  /** @jsx jsx */
5
8
 
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
10
  import { css, jsx } from '@emotion/react';
7
11
  import { TableBodyCell } from '../table-cell';
8
12
  var rankingStyles = css({
@@ -1,8 +1,13 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["isRanking", "isRankingItem", "testId"];
4
+ /**
5
+ * @jsxRuntime classic
6
+ */
4
7
  /** @jsx jsx */
5
8
  import { forwardRef } from 'react';
9
+
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
11
  import { css, jsx } from '@emotion/react';
7
12
  import { B100, N20, N50A, N60A } from '@atlaskit/theme/colors';
8
13
  import { TableBodyRow } from '../table-row';
@@ -1,8 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["width", "isFixedSize", "shouldTruncate", "innerRef"];
4
+ /**
5
+ * @jsxRuntime classic
6
+ */
4
7
  /** @jsx jsx */
5
8
 
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
10
  import { jsx } from '@emotion/react';
7
11
  import { cellStyles, fixedSizeTruncateStyles, getTruncationStyleVars, overflowTruncateStyles, truncationWidthStyles } from './constants';
8
12
 
@@ -14,10 +18,19 @@ export var TableBodyCell = function TableBodyCell(_ref) {
14
18
  innerRef = _ref.innerRef,
15
19
  props = _objectWithoutProperties(_ref, _excluded);
16
20
  return jsx("td", _extends({
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
17
22
  style: getTruncationStyleVars({
18
23
  width: width
19
24
  }),
20
- css: [truncationWidthStyles, isFixedSize && shouldTruncate && fixedSizeTruncateStyles, isFixedSize && overflowTruncateStyles, cellStyles]
25
+ css: [
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
27
+ truncationWidthStyles,
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
29
+ isFixedSize && shouldTruncate && fixedSizeTruncateStyles,
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
31
+ isFixedSize && overflowTruncateStyles,
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
33
+ cellStyles]
21
34
  // HOC withDimensions complains about the types but it is working fine
22
35
  // @ts-ignore
23
36
  ,
@@ -6,9 +6,15 @@ var _excluded = ["isRanking", "testId"],
6
6
  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; }
7
7
  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; }
8
8
  /* eslint-disable @repo/internal/react/require-jsdoc */
9
+ /**
10
+ * @jsxRuntime classic
11
+ */
9
12
  /** @jsx jsx */
10
13
  import { forwardRef } from 'react';
14
+
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
16
  import { css, jsx } from '@emotion/react';
17
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
12
18
  import { B100, N30A } from '@atlaskit/theme/colors';
13
19
  import { ASC, DESC } from '../internal/constants';
14
20
  import { arrow, head, MSThemeColors, tableBorder } from '../theme';
@@ -30,20 +36,26 @@ export var Head = function Head(_ref) {
30
36
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
31
37
  }, props));
32
38
  };
33
- var headCellStyles = css([cellStyles, {
39
+ var headCellBaseStyles = css({
34
40
  boxSizing: 'border-box',
35
41
  position: 'relative',
36
42
  border: 'none',
37
- borderBottom: "2px solid ".concat(tableBorder.borderColor),
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
44
+ borderBlockEnd: "2px solid ".concat(tableBorder.borderColor),
38
45
  color: "var(--ds-text-subtlest, ".concat("var(".concat(CSS_VAR_TEXT_COLOR, ")"), ")"),
39
- fontSize: '12px',
40
- fontWeight: 600,
41
46
  textAlign: 'left',
42
47
  verticalAlign: 'top',
43
48
  '&:focus-visible': {
44
49
  outline: "solid 2px ".concat("var(--ds-border-focused, ".concat(B100, ")"))
45
50
  }
46
- }]);
51
+ });
52
+ var headCellOldStyles = css({
53
+ fontSize: '0.75rem',
54
+ fontWeight: "var(--ds-font-weight-semibold, 600)"
55
+ });
56
+ var headCellNewStyles = css({
57
+ font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
58
+ });
47
59
  var onClickStyles = css({
48
60
  '&:hover': {
49
61
  backgroundColor: "var(--ds-background-neutral-hovered, ".concat(N30A, ")"),
@@ -51,6 +63,7 @@ var onClickStyles = css({
51
63
  }
52
64
  });
53
65
  var baseStyles = css({
66
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
54
67
  '& > button': {
55
68
  padding: "var(--ds-space-0, 0)",
56
69
  position: 'relative',
@@ -71,51 +84,65 @@ var baseStyles = css({
71
84
  insetInlineEnd: "var(--ds-space-negative-100, -8px)"
72
85
  },
73
86
  '&::before': {
87
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
74
88
  borderBlockEnd: "3px solid ".concat(arrow.defaultColor),
75
89
  insetBlockEnd: "var(--ds-space-100, 8px)"
76
90
  },
77
91
  '&::after': {
92
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
78
93
  borderBlockStart: "3px solid ".concat(arrow.defaultColor),
79
94
  insetBlockEnd: 0
80
95
  }
81
96
  },
82
97
  '@media (forced-colors: active)': {
98
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
83
99
  '& > button': {
84
100
  '&::before, &::after': {
101
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
85
102
  border: "3px solid ".concat(MSThemeColors.Background)
86
103
  },
87
104
  '&::before': {
105
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
88
106
  borderBlockEnd: "3px solid ".concat(MSThemeColors.Text)
89
107
  },
90
108
  '&::after': {
109
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
91
110
  borderBlockStart: "3px solid ".concat(MSThemeColors.Text)
92
111
  }
93
112
  }
94
113
  }
95
114
  });
96
115
  var ascendingStyles = css({
116
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
97
117
  '& > button': {
98
118
  '&::before': {
119
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
99
120
  borderBlockEnd: "3px solid ".concat(arrow.selectedColor)
100
121
  }
101
122
  },
102
123
  '@media (forced-colors: active)': {
124
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
103
125
  '& > button': {
104
126
  '&::before': {
127
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
105
128
  borderBlockEnd: "3px solid ".concat(MSThemeColors.SelectedBackground)
106
129
  }
107
130
  }
108
131
  }
109
132
  });
110
133
  var descendingStyles = css({
134
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
111
135
  '& > button': {
112
136
  '&::after': {
137
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
113
138
  borderBlockStart: "3px solid ".concat(arrow.selectedColor)
114
139
  }
115
140
  },
116
141
  '@media (forced-colors: active)': {
142
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
117
143
  '& > button': {
118
144
  '&::after': {
145
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
119
146
  borderBlockStart: "3px solid ".concat(MSThemeColors.SelectedBackground)
120
147
  }
121
148
  }
@@ -149,9 +176,21 @@ export var HeadCell = /*#__PURE__*/forwardRef(function (_ref2, ref) {
149
176
  // https://dequeuniversity.com/rules/axe/4.7/empty-table-header
150
177
  var Component = children ? 'th' : 'td';
151
178
  return jsx(Component, _extends({
152
- "aria-sort": getFormattedSortOrder(),
179
+ "aria-sort": getFormattedSortOrder()
180
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
181
+ ,
153
182
  style: mergedStyles,
154
- css: [headCellStyles, onClick && onClickStyles, truncationWidthStyles, isFixedSize && shouldTruncate && fixedSizeTruncateStyles, isFixedSize && overflowTruncateStyles, isSortable && baseStyles, isASC && ascendingStyles, isDESC && descendingStyles],
183
+ css: [
184
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
185
+ cellStyles, headCellBaseStyles,
186
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
187
+ getBooleanFF('platform.design-system-team.dynamic-table-typography_7zio6') ? headCellNewStyles : headCellOldStyles, onClick && onClickStyles,
188
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
189
+ truncationWidthStyles,
190
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
191
+ isFixedSize && shouldTruncate && fixedSizeTruncateStyles,
192
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
193
+ isFixedSize && overflowTruncateStyles, isSortable && baseStyles, isASC && ascendingStyles, isDESC && descendingStyles],
155
194
  onClick: onClick,
156
195
  ref: ref,
157
196
  "data-testid": testId
@@ -1,26 +1,35 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["isHighlighted", "children", "style", "testId"];
4
+ /**
5
+ * @jsxRuntime classic
6
+ */
4
7
  /** @jsx jsx */
5
8
  import { forwardRef } from 'react';
9
+
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
11
  import { css, jsx } from '@emotion/react';
7
12
  import { tableRowCSSVars as cssVars } from './dynamic-table';
8
13
  var rowStyles = css({
9
14
  backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
10
15
  '&:focus-visible': {
11
- outline: "2px solid ".concat("var(--ds-border-focused, ".concat("var(".concat(cssVars.CSS_VAR_HOVER_BACKGROUND, ")"), ")")),
16
+ outline: "2px solid ".concat("var(--ds-border-focused, ".concat( // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
17
+ "var(".concat(cssVars.CSS_VAR_HOVER_BACKGROUND, ")"), ")")),
12
18
  outlineOffset: "-2px"
13
19
  }
14
20
  });
15
21
  var rowBackgroundStyles = css({
16
22
  '&:hover': {
17
- backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat("var(".concat(cssVars.CSS_VAR_HOVER_BACKGROUND, ")"), ")")
23
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat( // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
24
+ "var(".concat(cssVars.CSS_VAR_HOVER_BACKGROUND, ")"), ")")
18
25
  }
19
26
  });
20
27
  var rowHighlightedBackgroundStyles = css({
21
- backgroundColor: "var(--ds-background-selected, ".concat("var(".concat(cssVars.CSS_VAR_HIGHLIGHTED_BACKGROUND, ")"), ")"),
28
+ backgroundColor: "var(--ds-background-selected, ".concat( // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
29
+ "var(".concat(cssVars.CSS_VAR_HIGHLIGHTED_BACKGROUND, ")"), ")"),
22
30
  '&:hover': {
23
- backgroundColor: "var(--ds-background-selected-hovered, ".concat("var(".concat(cssVars.CSS_VAR_HOVER_HIGHLIGHTED_BACKGROUND, ")"), ")")
31
+ backgroundColor: "var(--ds-background-selected-hovered, ".concat( // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
32
+ "var(".concat(cssVars.CSS_VAR_HOVER_HIGHLIGHTED_BACKGROUND, ")"), ")")
24
33
  }
25
34
  });
26
35
 
@@ -32,6 +41,7 @@ export var TableBodyRow = /*#__PURE__*/forwardRef(function (_ref, ref) {
32
41
  testId = _ref.testId,
33
42
  rest = _objectWithoutProperties(_ref, _excluded);
34
43
  return jsx("tr", _extends({
44
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
35
45
  style: style,
36
46
  css: [rowStyles, isHighlighted ? rowHighlightedBackgroundStyles : rowBackgroundStyles]
37
47
  }, rest, {
package/dist/esm/types.js CHANGED
@@ -1,14 +1 @@
1
- /* eslint-disable @repo/internal/react/consistent-types-definitions */
2
-
3
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
-
5
- /**
6
- * Enum style type to determine whether sort results are ascending or descending.
7
- */
8
-
9
- /**
10
- * Determines the size of the table loading spinner.
11
- * This matches the underlying `Size` type in `@atlaskit/spinner`
12
- */
13
-
14
- // TODO should this be removed?
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { WithSortedPageRowsProps } from '../hoc/with-sorted-page-rows';
3
- import { HeadType } from '../types';
2
+ import { type WithSortedPageRowsProps } from '../hoc/with-sorted-page-rows';
3
+ import { type HeadType } from '../types';
4
4
  interface BodyProps extends WithSortedPageRowsProps {
5
5
  head?: HeadType;
6
6
  highlightedRowIndex?: number | number[];
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  type ErrorBoundaryProps = {
3
3
  children: ReactNode;
4
4
  fallback: ReactNode;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import type { I18nShape } from '../types';
4
4
  interface ManagedPaginationProps {
5
5
  value?: number;
@@ -1,7 +1,7 @@
1
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 } from '../../types';
2
+ import { type DragStart, type DropResult } from 'react-beautiful-dnd';
3
+ import { type WithSortedPageRowsProps } from '../../hoc/with-sorted-page-rows';
4
+ import { type HeadType, type RankEnd, type RankStart } from '../../types';
5
5
  export interface RankableBodyProps extends WithSortedPageRowsProps {
6
6
  highlightedRowIndex?: number | number[];
7
7
  onRankStart: (rankStart: RankStart) => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { WithDimensionsProps } from '../../hoc/with-dimensions';
3
- import { HeadCellType, RowCellType } from '../../types';
2
+ import { type WithDimensionsProps } from '../../hoc/with-dimensions';
3
+ import { type HeadCellType, type RowCellType } from '../../types';
4
4
  export interface RankableTableCellProps extends WithDimensionsProps {
5
5
  head?: HeadCellType;
6
6
  cell: RowCellType;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { WithDimensionsProps } from '../../hoc/with-dimensions';
3
- import { TableHeadCellProps } from '../table-head-cell';
2
+ import { type WithDimensionsProps } from '../../hoc/with-dimensions';
3
+ import { type TableHeadCellProps } from '../table-head-cell';
4
4
  declare const _default: React.ComponentClass<Omit<WithDimensionsProps & TableHeadCellProps, "innerRef" | "refWidth" | "refHeight">, import("../../hoc/with-dimensions").State>;
5
5
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { WithDimensionsProps } from '../../hoc/with-dimensions';
3
- import { HeadType, RowType } from '../../types';
2
+ import { type WithDimensionsProps } from '../../hoc/with-dimensions';
3
+ import { type HeadType, type RowType } from '../../types';
4
4
  export interface RankableTableRowProps extends WithDimensionsProps {
5
5
  head?: HeadType;
6
6
  isFixedSize: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import noop from '@atlaskit/ds-lib/noop';
4
- import { RankEnd, RowType, SortOrderType, StatefulProps } from '../types';
4
+ import { type RankEnd, type RowType, type SortOrderType, type StatefulProps } from '../types';
5
5
  interface State {
6
6
  page?: number;
7
7
  sortKey?: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import noop from '@atlaskit/ds-lib/noop';
4
- import { StatelessProps as Props, RankEnd, RankStart, RowCellType } from '../types';
4
+ import { type StatelessProps as Props, type RankEnd, type RankStart, type RowCellType } from '../types';
5
5
  export interface State {
6
6
  isRanking: boolean;
7
7
  }
@@ -1,5 +1,5 @@
1
- import React, { FC, LegacyRef } from 'react';
2
- import { SortOrderType } from '../types';
1
+ import React, { type FC, type LegacyRef } from 'react';
2
+ import { type SortOrderType } from '../types';
3
3
  export interface TableHeadCellProps {
4
4
  colSpan?: number;
5
5
  sortKey?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { HeadType, RowCellType, SortOrderType } from '../types';
2
+ import { type HeadType, type RowCellType, type SortOrderType } from '../types';
3
3
  interface TableHeadProps {
4
4
  head: HeadType;
5
5
  sortKey?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { HeadType, RowType } from '../types';
2
+ import { type HeadType, type RowType } from '../types';
3
3
  interface RowProps {
4
4
  head?: HeadType;
5
5
  isFixedSize: boolean;
@@ -1,4 +1,4 @@
1
- import React, { LegacyRef } from 'react';
1
+ import React, { type LegacyRef } from 'react';
2
2
  export interface State {
3
3
  refWidth: number;
4
4
  refHeight: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { HeadType, RowType, SortOrderType } from '../types';
2
+ import { type HeadType, type RowType, type SortOrderType } from '../types';
3
3
  export interface TableProps {
4
4
  head?: HeadType;
5
5
  page?: number;
@@ -1,4 +1,4 @@
1
- import { HeadType, RankEnd, RowType } from '../types';
1
+ import { type HeadType, type RankEnd, type RowType } from '../types';
2
2
  export declare const getPageRows: (allRows: Array<RowType>, pageNumber?: number, rowsPerPage?: number) => Array<RowType>;
3
3
  export declare const assertIsSortable: (head?: HeadType) => void;
4
4
  export declare const validateSortKey: (sortKey?: string, head?: HeadType) => void;
@@ -1,4 +1,4 @@
1
- import { LegacyRef, ReactNode } from 'react';
1
+ import { type LegacyRef, type ReactNode } from 'react';
2
2
  export interface TruncateStyleProps {
3
3
  width?: number;
4
4
  isFixedSize?: boolean;
@@ -1,5 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
- import { FC, HTMLProps, ReactNode } from 'react';
5
+ import { type FC, type HTMLProps, type ReactNode } from 'react';
3
6
  export type TableProps = HTMLProps<HTMLTableElement> & {
4
7
  isFixedSize?: boolean;
5
8
  isLoading?: boolean;
@@ -1,5 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
- import { FC, ReactNode } from 'react';
5
+ import { type FC, type ReactNode } from 'react';
3
6
  type EmptyViewWithFixedHeightProps = {
4
7
  testId?: string;
5
8
  children?: ReactNode;
@@ -1,5 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
- import { FC, HTMLProps, ReactNode } from 'react';
5
+ import { type FC, type HTMLProps, type ReactNode } from 'react';
3
6
  type ContainerProps = HTMLProps<HTMLDivElement> & {
4
7
  testId?: string;
5
8
  };
@@ -1,5 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
- import { FC, ReactNode } from 'react';
5
+ import { type FC, type ReactNode } from 'react';
3
6
  export declare const CSS_VAR_CONTENTS_OPACITY = "--contents-opacity";
4
7
  type ContainerProps = {
5
8
  testId?: string;
@@ -1,6 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
- import { FC, HTMLProps, ReactNode } from 'react';
3
- import { TruncateStyleProps } from '../constants';
5
+ import { type FC, type HTMLProps, type ReactNode } from 'react';
6
+ import { type TruncateStyleProps } from '../constants';
4
7
  type RankableTableBodyCellProps = HTMLProps<HTMLTableCellElement | HTMLTableRowElement> & TruncateStyleProps & {
5
8
  isRanking?: boolean;
6
9
  children?: ReactNode;
@@ -1,6 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
- import { HTMLAttributes } from 'react';
3
- import { ITableRowProps } from '../table-row';
5
+ import { type HTMLAttributes } from 'react';
6
+ import { type ITableRowProps } from '../table-row';
4
7
  export type RankableTableBodyRowProps = HTMLAttributes<HTMLTableRowElement> & ITableRowProps & {
5
8
  isRanking?: boolean;
6
9
  isRankingItem?: boolean;
@@ -1,4 +1,7 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
- import { FC } from 'react';
3
- import { TruncateStyleProps } from './constants';
5
+ import { type FC } from 'react';
6
+ import { type TruncateStyleProps } from './constants';
4
7
  export declare const TableBodyCell: FC<TruncateStyleProps>;
@@ -1,7 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
- import { FC, HTMLProps, ReactNode } from 'react';
3
- import { SortOrderType } from '../types';
4
- import { TruncateStyleProps } from './constants';
5
+ import { type FC, type HTMLProps, type ReactNode } from 'react';
6
+ import { type SortOrderType } from '../types';
7
+ import { type TruncateStyleProps } from './constants';
5
8
  interface HeadProps {
6
9
  isRanking?: boolean;
7
10
  children: ReactNode;
@@ -1,5 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
- import { CSSProperties, ReactNode } from 'react';
5
+ import { type CSSProperties, type ReactNode } from 'react';
3
6
  export type ITableRowProps = {
4
7
  isHighlighted?: boolean;
5
8
  children?: ReactNode;
@@ -1,5 +1,5 @@
1
- import React, { Ref } from 'react';
2
- import { UIAnalyticsEvent, WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
1
+ import { type default as React, type Ref } from 'react';
2
+ import { type UIAnalyticsEvent, type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
3
  import type { Size as SizeType } from '@atlaskit/spinner';
4
4
  export interface RowCellType {
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { WithSortedPageRowsProps } from '../hoc/with-sorted-page-rows';
3
- import { HeadType } from '../types';
2
+ import { type WithSortedPageRowsProps } from '../hoc/with-sorted-page-rows';
3
+ import { type HeadType } from '../types';
4
4
  interface BodyProps extends WithSortedPageRowsProps {
5
5
  head?: HeadType;
6
6
  highlightedRowIndex?: number | number[];
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  type ErrorBoundaryProps = {
3
3
  children: ReactNode;
4
4
  fallback: ReactNode;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import type { I18nShape } from '../types';
4
4
  interface ManagedPaginationProps {
5
5
  value?: number;
@@ -1,7 +1,7 @@
1
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 } from '../../types';
2
+ import { type DragStart, type DropResult } from 'react-beautiful-dnd';
3
+ import { type WithSortedPageRowsProps } from '../../hoc/with-sorted-page-rows';
4
+ import { type HeadType, type RankEnd, type RankStart } from '../../types';
5
5
  export interface RankableBodyProps extends WithSortedPageRowsProps {
6
6
  highlightedRowIndex?: number | number[];
7
7
  onRankStart: (rankStart: RankStart) => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { WithDimensionsProps } from '../../hoc/with-dimensions';
3
- import { HeadCellType, RowCellType } from '../../types';
2
+ import { type WithDimensionsProps } from '../../hoc/with-dimensions';
3
+ import { type HeadCellType, type RowCellType } from '../../types';
4
4
  export interface RankableTableCellProps extends WithDimensionsProps {
5
5
  head?: HeadCellType;
6
6
  cell: RowCellType;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { WithDimensionsProps } from '../../hoc/with-dimensions';
3
- import { TableHeadCellProps } from '../table-head-cell';
2
+ import { type WithDimensionsProps } from '../../hoc/with-dimensions';
3
+ import { type TableHeadCellProps } from '../table-head-cell';
4
4
  declare const _default: React.ComponentClass<Omit<WithDimensionsProps & TableHeadCellProps, "innerRef" | "refWidth" | "refHeight">, import("../../hoc/with-dimensions").State>;
5
5
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { WithDimensionsProps } from '../../hoc/with-dimensions';
3
- import { HeadType, RowType } from '../../types';
2
+ import { type WithDimensionsProps } from '../../hoc/with-dimensions';
3
+ import { type HeadType, type RowType } from '../../types';
4
4
  export interface RankableTableRowProps extends WithDimensionsProps {
5
5
  head?: HeadType;
6
6
  isFixedSize: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import noop from '@atlaskit/ds-lib/noop';
4
- import { RankEnd, RowType, SortOrderType, StatefulProps } from '../types';
4
+ import { type RankEnd, type RowType, type SortOrderType, type StatefulProps } from '../types';
5
5
  interface State {
6
6
  page?: number;
7
7
  sortKey?: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import noop from '@atlaskit/ds-lib/noop';
4
- import { StatelessProps as Props, RankEnd, RankStart, RowCellType } from '../types';
4
+ import { type StatelessProps as Props, type RankEnd, type RankStart, type RowCellType } from '../types';
5
5
  export interface State {
6
6
  isRanking: boolean;
7
7
  }