@atlaskit/table 0.12.8 → 0.12.10

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/table
2
2
 
3
+ ## 0.12.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`39e543109ec09`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/39e543109ec09) -
8
+ add type info to forwardRef components
9
+ - Updated dependencies
10
+
11
+ ## 0.12.9
12
+
13
+ ### Patch Changes
14
+
15
+ - [`248faa32d4835`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/248faa32d4835) -
16
+ Internal changes to how borders are applied.
17
+ - Updated dependencies
18
+
3
19
  ## 0.12.8
4
20
 
5
21
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- /* sortable-column.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* sortable-column.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -2,6 +2,6 @@
2
2
  ._19itglyw{border:none}
3
3
  ._9v7aidpf:after{inset:0}._11fnglyw:after{pointer-events:none}
4
4
  ._18postnw:after{position:absolute}
5
- ._8x3ud1es:after{box-shadow:var(--_1tz90uq)}
5
+ ._8x3u8fd9:after{box-shadow:inset 0 -2px 0 0 var(--ds-border,#eee)}
6
6
  ._aetrb3bt:after{content:""}
7
7
  ._kqswh2mm{position:relative}
@@ -1,4 +1,4 @@
1
- /* tbody.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* tbody.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -19,9 +19,6 @@ var bodyStyles = null;
19
19
  var TBody = exports.TBody = function TBody(_ref) {
20
20
  var children = _ref.children;
21
21
  return /*#__PURE__*/React.createElement("tbody", {
22
- className: (0, _runtime.ax)(["_19itglyw _kqswh2mm _9v7aidpf _18postnw _8x3ud1es _aetrb3bt _11fnglyw"]),
23
- style: {
24
- "--_1tz90uq": (0, _runtime.ix)("inset 0 -2px 0 0 ".concat("var(--ds-border, #eee)"))
25
- }
22
+ className: (0, _runtime.ax)(["_19itglyw _kqswh2mm _9v7aidpf _18postnw _8x3u8fd9 _aetrb3bt _11fnglyw"])
26
23
  }, children);
27
24
  };
@@ -1,7 +1,7 @@
1
1
 
2
2
  ._19itglyw{border:none}
3
- ._1r04idpf{inset:0}._179r1n0b{border-block-end:var(--_ukuvb0)}
4
- ._mqm21vrj{border-block-start:2px solid transparent}
3
+ ._1r04idpf{inset:0}._179rhf6m{border-block-end:var(--ds-border-width-selected,2px) solid var(--ds-border,#eee)}
4
+ ._mqm25u6v{border-block-start:var(--ds-border-width-selected,2px) solid transparent}
5
5
  ._1pbykb7n{z-index:1}
6
6
  ._bfhkvuon{background-color:var(--ds-surface,#fff)}
7
7
  ._kqsw1if8{position:sticky}
@@ -1,4 +1,4 @@
1
- /* thead.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* thead.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -22,9 +22,6 @@ var baseStyles = null;
22
22
  var THead = exports.THead = function THead(_ref) {
23
23
  var children = _ref.children;
24
24
  return /*#__PURE__*/React.createElement("thead", {
25
- className: (0, _runtime.ax)(["_1r04idpf _19itglyw _179r1n0b _mqm21vrj _kqsw1if8 _1pbykb7n _bfhkvuon"]),
26
- style: {
27
- "--_ukuvb0": (0, _runtime.ix)("2px solid ".concat("var(--ds-border, #eee)"))
28
- }
25
+ className: (0, _runtime.ax)(["_1r04idpf _19itglyw _179rhf6m _mqm25u6v _kqsw1if8 _1pbykb7n _bfhkvuon"])
29
26
  }, children);
30
27
  };
package/dist/cjs/ui/tr.js CHANGED
@@ -1,4 +1,4 @@
1
- /* tr.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* tr.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* sortable-column.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* sortable-column.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./sortable-column.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* tbody.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* tbody.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./tbody.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,7 +1,7 @@
1
1
 
2
2
  ._19itglyw{border:none}
3
- ._1r04idpf{inset:0}._179r3ggr{border-block-end:2px solid var(--ds-border,#eee)}
4
- ._mqm21vrj{border-block-start:2px solid transparent}
3
+ ._1r04idpf{inset:0}._179rhf6m{border-block-end:var(--ds-border-width-selected,2px) solid var(--ds-border,#eee)}
4
+ ._mqm25u6v{border-block-start:var(--ds-border-width-selected,2px) solid transparent}
5
5
  ._1pbykb7n{z-index:1}
6
6
  ._bfhkvuon{background-color:var(--ds-surface,#fff)}
7
7
  ._kqsw1if8{position:sticky}
@@ -1,4 +1,4 @@
1
- /* thead.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* thead.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./thead.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -15,6 +15,6 @@ export const THead = ({
15
15
  children
16
16
  }) => {
17
17
  return /*#__PURE__*/React.createElement("thead", {
18
- className: ax(["_1r04idpf _19itglyw _179r3ggr _mqm21vrj _kqsw1if8 _1pbykb7n _bfhkvuon"])
18
+ className: ax(["_1r04idpf _19itglyw _179rhf6m _mqm25u6v _kqsw1if8 _1pbykb7n _bfhkvuon"])
19
19
  }, children);
20
20
  };
@@ -1,4 +1,4 @@
1
- /* tr.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* tr.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./tr.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* sortable-column.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* sortable-column.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["name", "testId", "onClick", "children"];
@@ -2,6 +2,6 @@
2
2
  ._19itglyw{border:none}
3
3
  ._9v7aidpf:after{inset:0}._11fnglyw:after{pointer-events:none}
4
4
  ._18postnw:after{position:absolute}
5
- ._8x3ud1es:after{box-shadow:var(--_1tz90uq)}
5
+ ._8x3u8fd9:after{box-shadow:inset 0 -2px 0 0 var(--ds-border,#eee)}
6
6
  ._aetrb3bt:after{content:""}
7
7
  ._kqswh2mm{position:relative}
@@ -1,4 +1,4 @@
1
- /* tbody.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* tbody.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./tbody.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -11,9 +11,6 @@ var bodyStyles = null;
11
11
  export var TBody = function TBody(_ref) {
12
12
  var children = _ref.children;
13
13
  return /*#__PURE__*/React.createElement("tbody", {
14
- className: ax(["_19itglyw _kqswh2mm _9v7aidpf _18postnw _8x3ud1es _aetrb3bt _11fnglyw"]),
15
- style: {
16
- "--_1tz90uq": ix("inset 0 -2px 0 0 ".concat("var(--ds-border, #eee)"))
17
- }
14
+ className: ax(["_19itglyw _kqswh2mm _9v7aidpf _18postnw _8x3u8fd9 _aetrb3bt _11fnglyw"])
18
15
  }, children);
19
16
  };
@@ -1,7 +1,7 @@
1
1
 
2
2
  ._19itglyw{border:none}
3
- ._1r04idpf{inset:0}._179r1n0b{border-block-end:var(--_ukuvb0)}
4
- ._mqm21vrj{border-block-start:2px solid transparent}
3
+ ._1r04idpf{inset:0}._179rhf6m{border-block-end:var(--ds-border-width-selected,2px) solid var(--ds-border,#eee)}
4
+ ._mqm25u6v{border-block-start:var(--ds-border-width-selected,2px) solid transparent}
5
5
  ._1pbykb7n{z-index:1}
6
6
  ._bfhkvuon{background-color:var(--ds-surface,#fff)}
7
7
  ._kqsw1if8{position:sticky}
@@ -1,4 +1,4 @@
1
- /* thead.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* thead.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./thead.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -14,9 +14,6 @@ var baseStyles = null;
14
14
  export var THead = function THead(_ref) {
15
15
  var children = _ref.children;
16
16
  return /*#__PURE__*/React.createElement("thead", {
17
- className: ax(["_1r04idpf _19itglyw _179r1n0b _mqm21vrj _kqsw1if8 _1pbykb7n _bfhkvuon"]),
18
- style: {
19
- "--_ukuvb0": ix("2px solid ".concat("var(--ds-border, #eee)"))
20
- }
17
+ className: ax(["_1r04idpf _19itglyw _179rhf6m _mqm25u6v _kqsw1if8 _1pbykb7n _bfhkvuon"])
21
18
  }, children);
22
19
  };
package/dist/esm/ui/tr.js CHANGED
@@ -1,4 +1,4 @@
1
- /* tr.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* tr.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./tr.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -41,6 +41,9 @@ export type BaseCellProps = {
41
41
  * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-sort
42
42
  */
43
43
  export type SortDirection = 'ascending' | 'descending' | 'none' | 'other';
44
+ type InternalBaseCellProps = BaseCellProps & {
45
+ sortDirection?: SortDirection;
46
+ };
44
47
  /**
45
48
  * __BaseCell__
46
49
  *
@@ -48,42 +51,5 @@ export type SortDirection = 'ascending' | 'descending' | 'none' | 'other';
48
51
  *
49
52
  * Basic cell element.
50
53
  */
51
- export declare const BaseCell: React.ForwardRefExoticComponent<{
52
- /**
53
- * A percentage of pixel width of the table to apply to a column.
54
- */
55
- width?: string;
56
- /**
57
- * Horizontal alignment of content.
58
- */
59
- align?: "icon" | "text" | "number";
60
- /**
61
- * Whether the cell should render as a `td` or `th` element.
62
- */
63
- as?: "td" | "th";
64
- /**
65
- * Same behavior as the HTML attribute.
66
- *
67
- * @see 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope'
68
- */
69
- scope?: "col" | "row";
70
- /**
71
- * A `testId` prop is a unique string that appears as a data attribute `data-testid`
72
- * in the rendered code, serving as a hook for automated tests.
73
- */
74
- testId?: string;
75
- /**
76
- * Content of the cell.
77
- */
78
- children?: ReactNode;
79
- /**
80
- * Number of columns to span.
81
- */
82
- colSpan?: number;
83
- /**
84
- * Number of rows to span.
85
- */
86
- rowSpan?: number;
87
- } & Pick<BoxProps<any>, "backgroundColor" | "paddingBlock" | "paddingInline" | "xcss"> & {
88
- sortDirection?: SortDirection;
89
- } & React.RefAttributes<HTMLTableCellElement>>;
54
+ export declare const BaseCell: React.ForwardRefExoticComponent<React.PropsWithoutRef<InternalBaseCellProps> & React.RefAttributes<HTMLTableCellElement>>;
55
+ export {};
@@ -41,6 +41,9 @@ export type BaseCellProps = {
41
41
  * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-sort
42
42
  */
43
43
  export type SortDirection = 'ascending' | 'descending' | 'none' | 'other';
44
+ type InternalBaseCellProps = BaseCellProps & {
45
+ sortDirection?: SortDirection;
46
+ };
44
47
  /**
45
48
  * __BaseCell__
46
49
  *
@@ -48,42 +51,5 @@ export type SortDirection = 'ascending' | 'descending' | 'none' | 'other';
48
51
  *
49
52
  * Basic cell element.
50
53
  */
51
- export declare const BaseCell: React.ForwardRefExoticComponent<{
52
- /**
53
- * A percentage of pixel width of the table to apply to a column.
54
- */
55
- width?: string;
56
- /**
57
- * Horizontal alignment of content.
58
- */
59
- align?: "icon" | "text" | "number";
60
- /**
61
- * Whether the cell should render as a `td` or `th` element.
62
- */
63
- as?: "td" | "th";
64
- /**
65
- * Same behavior as the HTML attribute.
66
- *
67
- * @see 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope'
68
- */
69
- scope?: "col" | "row";
70
- /**
71
- * A `testId` prop is a unique string that appears as a data attribute `data-testid`
72
- * in the rendered code, serving as a hook for automated tests.
73
- */
74
- testId?: string;
75
- /**
76
- * Content of the cell.
77
- */
78
- children?: ReactNode;
79
- /**
80
- * Number of columns to span.
81
- */
82
- colSpan?: number;
83
- /**
84
- * Number of rows to span.
85
- */
86
- rowSpan?: number;
87
- } & Pick<BoxProps<any>, "backgroundColor" | "paddingBlock" | "paddingInline" | "xcss"> & {
88
- sortDirection?: SortDirection;
89
- } & React.RefAttributes<HTMLTableCellElement>>;
54
+ export declare const BaseCell: React.ForwardRefExoticComponent<React.PropsWithoutRef<InternalBaseCellProps> & React.RefAttributes<HTMLTableCellElement>>;
55
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/table",
3
- "version": "0.12.8",
3
+ "version": "0.12.10",
4
4
  "description": "A table is used to display data.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -40,12 +40,12 @@
40
40
  "@atlaskit/button": "^23.4.0",
41
41
  "@atlaskit/checkbox": "^17.1.0",
42
42
  "@atlaskit/css": "^0.14.0",
43
- "@atlaskit/ds-lib": "^5.0.0",
43
+ "@atlaskit/ds-lib": "^5.1.0",
44
44
  "@atlaskit/focus-ring": "^3.0.0",
45
- "@atlaskit/icon": "^28.1.0",
46
- "@atlaskit/primitives": "^14.14.0",
47
- "@atlaskit/tokens": "^6.3.0",
48
- "@atlaskit/tooltip": "^20.4.0",
45
+ "@atlaskit/icon": "^28.3.0",
46
+ "@atlaskit/primitives": "^14.15.0",
47
+ "@atlaskit/tokens": "^6.4.0",
48
+ "@atlaskit/tooltip": "^20.5.0",
49
49
  "@atlaskit/visually-hidden": "^3.0.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@compiled/react": "^0.18.3",
@@ -57,9 +57,9 @@
57
57
  "devDependencies": {
58
58
  "@af/accessibility-testing": "workspace:^",
59
59
  "@af/integration-testing": "workspace:^",
60
- "@atlaskit/avatar": "^25.1.0",
60
+ "@atlaskit/avatar": "^25.2.0",
61
61
  "@atlaskit/date": "^2.0.0",
62
- "@atlaskit/docs": "^11.0.0",
62
+ "@atlaskit/docs": "^11.1.0",
63
63
  "@atlaskit/dynamic-table": "^18.2.0",
64
64
  "@atlaskit/lozenge": "^13.0.0",
65
65
  "@atlaskit/section-message": "^8.7.0",