@atlaskit/table 0.5.2 → 0.6.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 +14 -1
- package/LICENSE.md +6 -8
- package/README.md +40 -38
- package/dist/cjs/body.js +3 -1
- package/dist/cjs/expandable-cell.js +5 -0
- package/dist/cjs/head-cell.js +5 -0
- package/dist/cjs/row.js +5 -0
- package/dist/cjs/selectable-cell.js +5 -0
- package/dist/cjs/sortable-column.js +6 -2
- package/dist/cjs/table.js +5 -0
- package/dist/cjs/thead.js +5 -0
- package/dist/cjs/ui/base-cell.js +2 -0
- package/dist/cjs/ui/expand-icon.js +5 -0
- package/dist/cjs/ui/sort-icon.js +5 -0
- package/dist/cjs/ui/table.js +5 -0
- package/dist/cjs/ui/tbody.js +6 -0
- package/dist/cjs/ui/td.js +4 -0
- package/dist/cjs/ui/thead.js +7 -2
- package/dist/cjs/ui/tr.js +5 -0
- package/dist/es2019/body.js +5 -0
- package/dist/es2019/expandable-cell.js +5 -0
- package/dist/es2019/head-cell.js +4 -0
- package/dist/es2019/row.js +5 -0
- package/dist/es2019/selectable-cell.js +5 -0
- package/dist/es2019/sortable-column.js +7 -2
- package/dist/es2019/table.js +5 -0
- package/dist/es2019/thead.js +4 -0
- package/dist/es2019/ui/base-cell.js +2 -0
- package/dist/es2019/ui/expand-icon.js +5 -0
- package/dist/es2019/ui/sort-icon.js +5 -0
- package/dist/es2019/ui/table.js +4 -0
- package/dist/es2019/ui/tbody.js +5 -0
- package/dist/es2019/ui/td.js +4 -0
- package/dist/es2019/ui/thead.js +6 -2
- package/dist/es2019/ui/tr.js +4 -0
- package/dist/esm/body.js +5 -0
- package/dist/esm/expandable-cell.js +5 -0
- package/dist/esm/head-cell.js +4 -0
- package/dist/esm/row.js +5 -0
- package/dist/esm/selectable-cell.js +5 -0
- package/dist/esm/sortable-column.js +7 -2
- package/dist/esm/table.js +5 -0
- package/dist/esm/thead.js +4 -0
- package/dist/esm/ui/base-cell.js +2 -0
- package/dist/esm/ui/expand-icon.js +5 -0
- package/dist/esm/ui/sort-icon.js +5 -0
- package/dist/esm/ui/table.js +4 -0
- package/dist/esm/ui/tbody.js +5 -0
- package/dist/esm/ui/td.js +4 -0
- package/dist/esm/ui/thead.js +6 -2
- package/dist/esm/ui/tr.js +4 -0
- package/dist/types/body.d.ts +4 -1
- package/dist/types/expandable-row.d.ts +1 -1
- package/dist/types/head-cell.d.ts +3 -0
- package/dist/types/hooks/use-expand-content.d.ts +1 -1
- package/dist/types/row.d.ts +3 -0
- package/dist/types/sortable-column.d.ts +3 -0
- package/dist/types/table.d.ts +3 -0
- package/dist/types/thead.d.ts +3 -0
- package/dist/types/ui/sort-icon.d.ts +3 -0
- package/dist/types/ui/table.d.ts +3 -0
- package/dist/types/ui/tbody.d.ts +3 -0
- package/dist/types/ui/td.d.ts +3 -0
- package/dist/types/ui/thead.d.ts +3 -0
- package/dist/types/ui/tr.d.ts +3 -0
- package/dist/types-ts4.5/body.d.ts +4 -1
- package/dist/types-ts4.5/expandable-row.d.ts +1 -1
- package/dist/types-ts4.5/head-cell.d.ts +3 -0
- package/dist/types-ts4.5/hooks/use-expand-content.d.ts +1 -1
- package/dist/types-ts4.5/row.d.ts +3 -0
- package/dist/types-ts4.5/sortable-column.d.ts +3 -0
- package/dist/types-ts4.5/table.d.ts +3 -0
- package/dist/types-ts4.5/thead.d.ts +3 -0
- package/dist/types-ts4.5/ui/sort-icon.d.ts +3 -0
- package/dist/types-ts4.5/ui/table.d.ts +3 -0
- package/dist/types-ts4.5/ui/tbody.d.ts +3 -0
- package/dist/types-ts4.5/ui/td.d.ts +3 -0
- package/dist/types-ts4.5/ui/thead.d.ts +3 -0
- package/dist/types-ts4.5/ui/tr.d.ts +3 -0
- package/extract-react-types/row.tsx +2 -2
- package/extract-react-types/table.tsx +2 -2
- package/package.json +102 -102
- package/report.api.md +53 -57
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/table
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#110836](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110836)
|
|
8
|
+
[`a8bd419fd70b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a8bd419fd70b9) -
|
|
9
|
+
Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime
|
|
10
|
+
is implicitly set to automatic.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 0.5.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -20,7 +33,7 @@
|
|
|
20
33
|
|
|
21
34
|
- [#99184](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99184)
|
|
22
35
|
[`3755cda305d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3755cda305d7) -
|
|
23
|
-
Add support for React 18.
|
|
36
|
+
Add support for React 18 in non-strict mode.
|
|
24
37
|
|
|
25
38
|
### Patch Changes
|
|
26
39
|
|
package/LICENSE.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
Copyright 2022 Atlassian Pty Ltd
|
|
2
2
|
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
|
|
5
|
-
You may obtain a copy of the License at
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
|
6
5
|
|
|
7
6
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
7
|
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
limitations under the License.
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
|
11
|
+
License.
|
package/README.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
**WARNING!**
|
|
4
4
|
|
|
5
|
-
This is an experimental package for exploration and validation of the foundations for the Atlassian
|
|
5
|
+
This is an experimental package for exploration and validation of the foundations for the Atlassian
|
|
6
|
+
Design System.
|
|
6
7
|
|
|
7
8
|
## Description
|
|
8
9
|
|
|
@@ -12,7 +13,8 @@ A table is used to display and organise complex data.
|
|
|
12
13
|
|
|
13
14
|
`import Table from '@atlaskit/table';`
|
|
14
15
|
|
|
15
|
-
Detailed docs and example usage can be found
|
|
16
|
+
Detailed docs and example usage can be found
|
|
17
|
+
[here](https://atlaskit.atlassian.com/packages/design-system/table).
|
|
16
18
|
|
|
17
19
|
### Render Prop
|
|
18
20
|
|
|
@@ -28,24 +30,24 @@ type President = (typeof presidents)[number];
|
|
|
28
30
|
* Primary UI component for user interaction
|
|
29
31
|
*/
|
|
30
32
|
export const RenderProp = ({ isSelectable }) => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
33
|
+
return (
|
|
34
|
+
<Table isSelectable={isSelectable}>
|
|
35
|
+
<THead>
|
|
36
|
+
<HeadCell>Name</HeadCell>
|
|
37
|
+
<HeadCell>Party</HeadCell>
|
|
38
|
+
<HeadCell>Year</HeadCell>
|
|
39
|
+
</THead>
|
|
40
|
+
<TBody<President> rows={presidents}>
|
|
41
|
+
{(row) => (
|
|
42
|
+
<Row key={row.id} {...row}>
|
|
43
|
+
<Cell>{row.nm}</Cell>
|
|
44
|
+
<Cell>{row.pp}</Cell>
|
|
45
|
+
<Cell>{row.tm}</Cell>
|
|
46
|
+
</Row>
|
|
47
|
+
)}
|
|
48
|
+
</TBody>
|
|
49
|
+
</Table>
|
|
50
|
+
);
|
|
49
51
|
};
|
|
50
52
|
```
|
|
51
53
|
|
|
@@ -61,23 +63,23 @@ import { presidents } from './data';
|
|
|
61
63
|
* Primary UI component for user interaction
|
|
62
64
|
*/
|
|
63
65
|
export const CompositionExample = ({ isSelectable }) => {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
66
|
+
return (
|
|
67
|
+
<Table isSelectable={isSelectable}>
|
|
68
|
+
<THead>
|
|
69
|
+
<HeadCell>Name</HeadCell>
|
|
70
|
+
<HeadCell>Party</HeadCell>
|
|
71
|
+
<HeadCell>Year</HeadCell>
|
|
72
|
+
</THead>
|
|
73
|
+
<TBody>
|
|
74
|
+
{presidents.map((row) => (
|
|
75
|
+
<Row key={row.id}>
|
|
76
|
+
<Cell>{row.nm}</Cell>
|
|
77
|
+
<Cell>{row.pp}</Cell>
|
|
78
|
+
<Cell>{row.tm}</Cell>
|
|
79
|
+
</Row>
|
|
80
|
+
))}
|
|
81
|
+
</TBody>
|
|
82
|
+
</Table>
|
|
83
|
+
);
|
|
82
84
|
};
|
|
83
85
|
```
|
package/dist/cjs/body.js
CHANGED
|
@@ -17,7 +17,9 @@ var _useTableBody = require("./hooks/use-table-body");
|
|
|
17
17
|
var _ui = require("./ui");
|
|
18
18
|
var _excluded = ["idx"];
|
|
19
19
|
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; }
|
|
20
|
-
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) { (0, _defineProperty2.default)(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; } /* eslint-disable @repo/internal/react/no-clone-element */ /**
|
|
20
|
+
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) { (0, _defineProperty2.default)(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; } /* eslint-disable @repo/internal/react/no-clone-element */ /**
|
|
21
|
+
* @jsxRuntime classic
|
|
22
|
+
*/ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
23
|
/**
|
|
22
24
|
* __Table body__
|
|
23
25
|
*/
|
|
@@ -12,8 +12,13 @@ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/hipchat/
|
|
|
12
12
|
var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/glyph/hipchat/chevron-up"));
|
|
13
13
|
var _useExpand2 = _interopRequireDefault(require("./hooks/use-expand"));
|
|
14
14
|
var _expandableCell = require("./ui/expandable-cell");
|
|
15
|
+
/**
|
|
16
|
+
* @jsxRuntime classic
|
|
17
|
+
*/
|
|
15
18
|
/** @jsx jsx */
|
|
16
19
|
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
|
+
|
|
17
22
|
/**
|
|
18
23
|
* __Expandable cell__
|
|
19
24
|
*
|
package/dist/cjs/head-cell.js
CHANGED
|
@@ -8,8 +8,13 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _primitives = require("@atlaskit/primitives");
|
|
9
9
|
var _th = require("./ui/th");
|
|
10
10
|
/* eslint-disable no-unused-vars */
|
|
11
|
+
/**
|
|
12
|
+
* @jsxRuntime classic
|
|
13
|
+
*/
|
|
11
14
|
/** @jsx jsx */
|
|
12
15
|
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
|
+
|
|
13
18
|
/**
|
|
14
19
|
* __HeadCell__
|
|
15
20
|
*
|
package/dist/cjs/row.js
CHANGED
|
@@ -17,8 +17,13 @@ var _useTableBody = require("./hooks/use-table-body");
|
|
|
17
17
|
var _selectableCell = _interopRequireDefault(require("./selectable-cell"));
|
|
18
18
|
var _selectableCell2 = require("./ui/selectable-cell");
|
|
19
19
|
var _tr = require("./ui/tr");
|
|
20
|
+
/**
|
|
21
|
+
* @jsxRuntime classic
|
|
22
|
+
*/
|
|
20
23
|
/** @jsx jsx */
|
|
21
24
|
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
|
+
|
|
22
27
|
/**
|
|
23
28
|
* __Row__
|
|
24
29
|
*
|
|
@@ -13,8 +13,13 @@ var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"
|
|
|
13
13
|
var _selectionProvider = require("./hooks/selection-provider");
|
|
14
14
|
var _useRowId = require("./hooks/use-row-id");
|
|
15
15
|
var _ui = require("./ui");
|
|
16
|
+
/**
|
|
17
|
+
* @jsxRuntime classic
|
|
18
|
+
*/
|
|
16
19
|
/** @jsx jsx */
|
|
17
20
|
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
|
+
|
|
18
23
|
var SelectableCell = function SelectableCell() {
|
|
19
24
|
var _useSelection = (0, _selectionProvider.useSelection)(),
|
|
20
25
|
_useSelection2 = (0, _slicedToArray2.default)(_useSelection, 2),
|
|
@@ -16,7 +16,11 @@ var _sortIcon = require("./ui/sort-icon");
|
|
|
16
16
|
var _th = require("./ui/th");
|
|
17
17
|
var _excluded = ["name", "testId", "onClick", "children"];
|
|
18
18
|
/* eslint-disable no-unused-vars */
|
|
19
|
+
/**
|
|
20
|
+
* @jsxRuntime classic
|
|
21
|
+
*/
|
|
19
22
|
/** @jsx jsx */
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
24
|
/**
|
|
21
25
|
* TODO these need to be i18n supported
|
|
22
26
|
*/
|
|
@@ -35,10 +39,10 @@ var sortingMessages = {
|
|
|
35
39
|
}
|
|
36
40
|
};
|
|
37
41
|
var overrideStyles = (0, _react2.css)({
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
39
43
|
margin: '0 -2px !important',
|
|
40
44
|
gap: "var(--ds-space-050, 4px)",
|
|
41
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
45
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
42
46
|
paddingInline: "2px !important"
|
|
43
47
|
});
|
|
44
48
|
|
package/dist/cjs/table.js
CHANGED
|
@@ -11,8 +11,13 @@ var _selectionProvider = _interopRequireDefault(require("./hooks/selection-provi
|
|
|
11
11
|
var _useSorting2 = require("./hooks/use-sorting");
|
|
12
12
|
var _useTable = require("./hooks/use-table");
|
|
13
13
|
var _ui = require("./ui");
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
*/
|
|
14
17
|
/** @jsx jsx */
|
|
15
18
|
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
|
+
|
|
16
21
|
/**
|
|
17
22
|
* __Table__
|
|
18
23
|
*
|
package/dist/cjs/thead.js
CHANGED
|
@@ -16,8 +16,13 @@ var _bulkActionOverlay = require("./ui/bulk-action-overlay");
|
|
|
16
16
|
var _selectableCell = require("./ui/selectable-cell");
|
|
17
17
|
var _thead = require("./ui/thead");
|
|
18
18
|
var _tr = require("./ui/tr");
|
|
19
|
+
/**
|
|
20
|
+
* @jsxRuntime classic
|
|
21
|
+
*/
|
|
19
22
|
/** @jsx jsx */
|
|
20
23
|
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
|
+
|
|
21
26
|
var THead = function THead(_ref) {
|
|
22
27
|
var actions = _ref.actions,
|
|
23
28
|
children = _ref.children;
|
package/dist/cjs/ui/base-cell.js
CHANGED
|
@@ -18,9 +18,11 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
18
18
|
var baseResetStyles = (0, _primitives.xcss)({
|
|
19
19
|
display: 'table-cell',
|
|
20
20
|
verticalAlign: 'middle',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
21
22
|
':first-of-type': {
|
|
22
23
|
paddingInlineStart: 'space.100'
|
|
23
24
|
},
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
24
26
|
':last-of-type': {
|
|
25
27
|
paddingInlineEnd: 'space.100'
|
|
26
28
|
}
|
|
@@ -10,8 +10,13 @@ var _react2 = require("@emotion/react");
|
|
|
10
10
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/hipchat/chevron-down"));
|
|
11
11
|
var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/glyph/hipchat/chevron-up"));
|
|
12
12
|
/* eslint-disable no-unused-vars */
|
|
13
|
+
/**
|
|
14
|
+
* @jsxRuntime classic
|
|
15
|
+
*/
|
|
13
16
|
/** @jsx jsx */
|
|
14
17
|
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
|
+
|
|
15
20
|
// TODO: Using HipChat icons as the standard icon set is missing large
|
|
16
21
|
// versions of `chevron-up` and `chevron-down`, despite already including
|
|
17
22
|
// `chevron-left-large` and `chevron-right-large`...
|
package/dist/cjs/ui/sort-icon.js
CHANGED
|
@@ -11,8 +11,13 @@ var _arrowDown = _interopRequireDefault(require("@atlaskit/icon/glyph/arrow-down
|
|
|
11
11
|
var _arrowUp = _interopRequireDefault(require("@atlaskit/icon/glyph/arrow-up"));
|
|
12
12
|
var _useTable2 = require("../hooks/use-table");
|
|
13
13
|
/* eslint-disable no-unused-vars */
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
*/
|
|
14
17
|
/** @jsx jsx */
|
|
15
18
|
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
|
+
|
|
16
21
|
/**
|
|
17
22
|
* __SortIcon__
|
|
18
23
|
*
|
package/dist/cjs/ui/table.js
CHANGED
|
@@ -5,8 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.Table = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
/**
|
|
9
|
+
* @jsxRuntime classic
|
|
10
|
+
*/
|
|
8
11
|
/** @jsx jsx */
|
|
9
12
|
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
10
15
|
/**
|
|
11
16
|
* __Table__
|
|
12
17
|
*
|
package/dist/cjs/ui/tbody.js
CHANGED
|
@@ -6,11 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.TBody = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
/* eslint-disable @repo/internal/react/no-clone-element */
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
*/
|
|
9
12
|
/** @jsx jsx */
|
|
10
13
|
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
|
|
11
16
|
var bodyStyles = (0, _react.css)({
|
|
12
17
|
position: 'relative',
|
|
13
18
|
border: 'none',
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
14
20
|
'&:after': {
|
|
15
21
|
position: 'absolute',
|
|
16
22
|
inset: 0,
|
package/dist/cjs/ui/td.js
CHANGED
|
@@ -10,7 +10,11 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _react = require("@emotion/react");
|
|
11
11
|
var _baseCell = require("./base-cell");
|
|
12
12
|
var _excluded = ["testId"];
|
|
13
|
+
/**
|
|
14
|
+
* @jsxRuntime classic
|
|
15
|
+
*/
|
|
13
16
|
/** @jsx jsx */
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
18
|
/**
|
|
15
19
|
* __Cell__
|
|
16
20
|
*
|
package/dist/cjs/ui/thead.js
CHANGED
|
@@ -5,16 +5,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.THead = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
/**
|
|
9
|
+
* @jsxRuntime classic
|
|
10
|
+
*/
|
|
8
11
|
/** @jsx jsx */
|
|
9
12
|
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
10
15
|
var baseStyles = (0, _react.css)({
|
|
11
16
|
position: 'sticky',
|
|
12
17
|
zIndex: 1,
|
|
13
18
|
inset: 0,
|
|
14
19
|
backgroundColor: "var(--ds-surface, white)",
|
|
15
20
|
border: 'none',
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
borderBlockEnd: "2px solid ".concat("var(--ds-border, #eee)"),
|
|
22
|
+
borderBlockStart: '2px solid transparent'
|
|
18
23
|
});
|
|
19
24
|
|
|
20
25
|
/**
|
package/dist/cjs/ui/tr.js
CHANGED
|
@@ -7,8 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.TR = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring"));
|
|
10
|
+
/**
|
|
11
|
+
* @jsxRuntime classic
|
|
12
|
+
*/
|
|
10
13
|
/** @jsx jsx */
|
|
11
14
|
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
+
|
|
12
17
|
var baseStyles = (0, _react.css)({
|
|
13
18
|
height: '3rem',
|
|
14
19
|
position: 'relative',
|
package/dist/es2019/body.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-clone-element */
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { Children, useEffect, useMemo } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { jsx } from '@emotion/react';
|
|
5
10
|
import { useSelection } from './hooks/selection-provider';
|
|
6
11
|
import { RowProvider } from './hooks/use-row-id';
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { memo, useCallback } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
8
|
import { jsx } from '@emotion/react';
|
|
4
9
|
import { IconButton } from '@atlaskit/button/new';
|
|
5
10
|
import ChevronDownIcon from '@atlaskit/icon/glyph/hipchat/chevron-down';
|
package/dist/es2019/head-cell.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/* eslint-disable no-unused-vars */
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
8
|
import { jsx } from '@emotion/react';
|
|
5
9
|
import { Text } from '@atlaskit/primitives';
|
|
6
10
|
import { TH } from './ui/th';
|
package/dist/es2019/row.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { memo, useMemo } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
8
|
import { jsx } from '@emotion/react';
|
|
4
9
|
import { useSelection } from './hooks/selection-provider';
|
|
5
10
|
import useExpand from './hooks/use-expand';
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { memo, useCallback, useMemo } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
8
|
import { jsx } from '@emotion/react';
|
|
4
9
|
import Checkbox from '@atlaskit/checkbox';
|
|
5
10
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/* eslint-disable no-unused-vars */
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
*/
|
|
3
6
|
/** @jsx jsx */
|
|
4
7
|
import { useCallback } from 'react';
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
10
|
import { css, jsx } from '@emotion/react';
|
|
6
11
|
import Button from '@atlaskit/button';
|
|
7
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -26,10 +31,10 @@ const sortingMessages = {
|
|
|
26
31
|
}
|
|
27
32
|
};
|
|
28
33
|
const overrideStyles = css({
|
|
29
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
30
35
|
margin: '0 -2px !important',
|
|
31
36
|
gap: "var(--ds-space-050, 4px)",
|
|
32
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
33
38
|
paddingInline: `2px !important`
|
|
34
39
|
});
|
|
35
40
|
|
package/dist/es2019/table.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { useMemo } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
8
|
import { jsx } from '@emotion/react';
|
|
4
9
|
import SelectionProvider from './hooks/selection-provider';
|
|
5
10
|
import { useSorting } from './hooks/use-sorting';
|
package/dist/es2019/thead.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { jsx } from '@emotion/react';
|
|
4
8
|
import Checkbox from '@atlaskit/checkbox';
|
|
5
9
|
import Inline from '@atlaskit/primitives/inline';
|
|
@@ -8,9 +8,11 @@ import { Box, xcss } from '@atlaskit/primitives';
|
|
|
8
8
|
const baseResetStyles = xcss({
|
|
9
9
|
display: 'table-cell',
|
|
10
10
|
verticalAlign: 'middle',
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
11
12
|
':first-of-type': {
|
|
12
13
|
paddingInlineStart: 'space.100'
|
|
13
14
|
},
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
14
16
|
':last-of-type': {
|
|
15
17
|
paddingInlineEnd: 'space.100'
|
|
16
18
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* eslint-disable no-unused-vars */
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { memo } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { jsx } from '@emotion/react';
|
|
5
10
|
|
|
6
11
|
// TODO: Using HipChat icons as the standard icon set is missing large
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* eslint-disable no-unused-vars */
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { memo } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { jsx } from '@emotion/react';
|
|
5
10
|
import ArrowDownIcon from '@atlaskit/icon/glyph/arrow-down';
|
|
6
11
|
import ArrowUpIcon from '@atlaskit/icon/glyph/arrow-up';
|
package/dist/es2019/ui/table.js
CHANGED
package/dist/es2019/ui/tbody.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-clone-element */
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
8
|
import { css, jsx } from '@emotion/react';
|
|
5
9
|
const bodyStyles = css({
|
|
6
10
|
position: 'relative',
|
|
7
11
|
border: 'none',
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
8
13
|
'&:after': {
|
|
9
14
|
position: 'absolute',
|
|
10
15
|
inset: 0,
|
package/dist/es2019/ui/td.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
8
|
import { jsx } from '@emotion/react';
|
|
5
9
|
import { BaseCell } from './base-cell';
|
|
6
10
|
|
package/dist/es2019/ui/thead.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { css, jsx } from '@emotion/react';
|
|
4
8
|
const baseStyles = css({
|
|
5
9
|
position: 'sticky',
|
|
@@ -7,8 +11,8 @@ const baseStyles = css({
|
|
|
7
11
|
inset: 0,
|
|
8
12
|
backgroundColor: "var(--ds-surface, white)",
|
|
9
13
|
border: 'none',
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
borderBlockEnd: `2px solid ${"var(--ds-border, #eee)"}`,
|
|
15
|
+
borderBlockStart: '2px solid transparent'
|
|
12
16
|
});
|
|
13
17
|
|
|
14
18
|
/**
|
package/dist/es2019/ui/tr.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { css, jsx } from '@emotion/react';
|
|
4
8
|
import FocusRing from '@atlaskit/focus-ring';
|
|
5
9
|
const baseStyles = css({
|
package/dist/esm/body.js
CHANGED
|
@@ -5,8 +5,13 @@ var _excluded = ["idx"];
|
|
|
5
5
|
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; }
|
|
6
6
|
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; }
|
|
7
7
|
/* eslint-disable @repo/internal/react/no-clone-element */
|
|
8
|
+
/**
|
|
9
|
+
* @jsxRuntime classic
|
|
10
|
+
*/
|
|
8
11
|
/** @jsx jsx */
|
|
9
12
|
import { Children, useEffect, useMemo } from 'react';
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
15
|
import { jsx } from '@emotion/react';
|
|
11
16
|
import { useSelection } from './hooks/selection-provider';
|
|
12
17
|
import { RowProvider } from './hooks/use-row-id';
|