@atlaskit/table 0.2.3 → 0.2.4

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,11 @@
1
1
  # @atlaskit/table
2
2
 
3
+ ## 0.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cfe48bb7ece`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfe48bb7ece) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
8
+
3
9
  ## 0.2.3
4
10
 
5
11
  ### Patch Changes
package/dist/cjs/thead.js CHANGED
@@ -10,6 +10,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
10
10
  var _react = require("@emotion/react");
11
11
  var _checkbox = _interopRequireDefault(require("@atlaskit/checkbox"));
12
12
  var _dsExplorations = require("@atlaskit/ds-explorations");
13
+ var _inline = _interopRequireDefault(require("@atlaskit/primitives/inline"));
13
14
  var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
14
15
  var _selectionProvider = require("./hooks/selection-provider");
15
16
  var _useTable2 = require("./hooks/use-table");
@@ -49,8 +50,8 @@ var THead = function THead(_ref) {
49
50
  })), children, isChecked && (0, _react.jsx)(Primitives.BulkActionOverlay, null, (0, _react.jsx)(_dsExplorations.UNSAFE_Text, {
50
51
  color: "color.text",
51
52
  fontWeight: "medium"
52
- }, state.checked.length, " selected"), actions && (0, _react.jsx)(_dsExplorations.UNSAFE_Inline, {
53
- gap: "space.100"
53
+ }, state.checked.length, " selected"), actions && (0, _react.jsx)(_inline.default, {
54
+ space: "100"
54
55
  }, actions(state.checked)))));
55
56
  };
56
57
  var _default = THead;
@@ -8,13 +8,13 @@ exports.BaseCell = void 0;
8
8
  var _react = require("react");
9
9
  var _react2 = require("@emotion/react");
10
10
  var _box = _interopRequireDefault(require("@atlaskit/ds-explorations/box"));
11
- var _inline = _interopRequireDefault(require("@atlaskit/ds-explorations/inline"));
11
+ var _inline = _interopRequireDefault(require("@atlaskit/primitives/inline"));
12
12
  /* eslint-disable @atlassian/tangerine/import/entry-points */
13
13
  /** @jsx jsx */
14
14
 
15
15
  var alignMap = {
16
- text: 'flexStart',
17
- number: 'flexEnd',
16
+ text: 'start',
17
+ number: 'end',
18
18
  icon: 'center'
19
19
  };
20
20
  var baseResetStyles = (0, _react2.css)({
@@ -65,8 +65,8 @@ var BaseCell = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
65
65
  } : undefined,
66
66
  "aria-sort": sortDirection
67
67
  }, (0, _react2.jsx)(_inline.default, {
68
- justifyContent: alignMap[align],
69
- gap: "space.0"
68
+ alignInline: alignMap[align],
69
+ space: "0"
70
70
  }, children));
71
71
  });
72
72
  exports.BaseCell = BaseCell;
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.BulkActionOverlay = void 0;
7
8
  var _react = require("@emotion/react");
8
9
  var _dsExplorations = require("@atlaskit/ds-explorations");
10
+ var _inline = _interopRequireDefault(require("@atlaskit/primitives/inline"));
9
11
  /** @jsx jsx */
10
12
 
11
13
  var overlayStyles = (0, _react.css)({
@@ -28,9 +30,9 @@ var BulkActionOverlay = function BulkActionOverlay(_ref) {
28
30
  paddingInline: "space.100",
29
31
  backgroundColor: "elevation.surface",
30
32
  css: overlayStyles
31
- }, (0, _react.jsx)(_dsExplorations.UNSAFE_Inline, {
32
- gap: "space.300",
33
- alignItems: "center"
33
+ }, (0, _react.jsx)(_inline.default, {
34
+ space: "300",
35
+ alignBlock: "center"
34
36
  }, children));
35
37
  };
36
38
  exports.BulkActionOverlay = BulkActionOverlay;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "sideEffects": false
5
5
  }
@@ -2,7 +2,8 @@
2
2
 
3
3
  import { jsx } from '@emotion/react';
4
4
  import Checkbox from '@atlaskit/checkbox';
5
- import { UNSAFE_Inline as Inline, UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
5
+ import { UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
6
+ import Inline from '@atlaskit/primitives/inline';
6
7
  import VisuallyHidden from '@atlaskit/visually-hidden';
7
8
  import { useSelection } from './hooks/selection-provider';
8
9
  import { useTable } from './hooks/use-table';
@@ -39,7 +40,7 @@ const THead = ({
39
40
  color: "color.text",
40
41
  fontWeight: "medium"
41
42
  }, state.checked.length, " selected"), actions && jsx(Inline, {
42
- gap: "space.100"
43
+ space: "100"
43
44
  }, actions(state.checked)))));
44
45
  };
45
46
  export default THead;
@@ -3,10 +3,10 @@
3
3
  import { forwardRef } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import Box from '@atlaskit/ds-explorations/box';
6
- import Inline from '@atlaskit/ds-explorations/inline';
6
+ import Inline from '@atlaskit/primitives/inline';
7
7
  const alignMap = {
8
- text: 'flexStart',
9
- number: 'flexEnd',
8
+ text: 'start',
9
+ number: 'end',
10
10
  icon: 'center'
11
11
  };
12
12
  const baseResetStyles = css({
@@ -54,6 +54,6 @@ export const BaseCell = /*#__PURE__*/forwardRef(({
54
54
  } : undefined,
55
55
  "aria-sort": sortDirection
56
56
  }, jsx(Inline, {
57
- justifyContent: alignMap[align],
58
- gap: "space.0"
57
+ alignInline: alignMap[align],
58
+ space: "0"
59
59
  }, children)));
@@ -1,7 +1,8 @@
1
1
  /** @jsx jsx */
2
2
 
3
3
  import { css, jsx } from '@emotion/react';
4
- import { UNSAFE_Box as Box, UNSAFE_Inline as Inline } from '@atlaskit/ds-explorations';
4
+ import { UNSAFE_Box as Box } from '@atlaskit/ds-explorations';
5
+ import Inline from '@atlaskit/primitives/inline';
5
6
  const overlayStyles = css({
6
7
  top: 0,
7
8
  right: 0,
@@ -23,6 +24,6 @@ export const BulkActionOverlay = ({
23
24
  backgroundColor: "elevation.surface",
24
25
  css: overlayStyles
25
26
  }, jsx(Inline, {
26
- gap: "space.300",
27
- alignItems: "center"
27
+ space: "300",
28
+ alignBlock: "center"
28
29
  }, children));
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "sideEffects": false
5
5
  }
package/dist/esm/thead.js CHANGED
@@ -3,7 +3,8 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
 
4
4
  import { jsx } from '@emotion/react';
5
5
  import Checkbox from '@atlaskit/checkbox';
6
- import { UNSAFE_Inline as Inline, UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
6
+ import { UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
7
+ import Inline from '@atlaskit/primitives/inline';
7
8
  import VisuallyHidden from '@atlaskit/visually-hidden';
8
9
  import { useSelection } from './hooks/selection-provider';
9
10
  import { useTable } from './hooks/use-table';
@@ -40,7 +41,7 @@ var THead = function THead(_ref) {
40
41
  color: "color.text",
41
42
  fontWeight: "medium"
42
43
  }, state.checked.length, " selected"), actions && jsx(Inline, {
43
- gap: "space.100"
44
+ space: "100"
44
45
  }, actions(state.checked)))));
45
46
  };
46
47
  export default THead;
@@ -3,10 +3,10 @@
3
3
  import { forwardRef } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import Box from '@atlaskit/ds-explorations/box';
6
- import Inline from '@atlaskit/ds-explorations/inline';
6
+ import Inline from '@atlaskit/primitives/inline';
7
7
  var alignMap = {
8
- text: 'flexStart',
9
- number: 'flexEnd',
8
+ text: 'start',
9
+ number: 'end',
10
10
  icon: 'center'
11
11
  };
12
12
  var baseResetStyles = css({
@@ -57,7 +57,7 @@ export var BaseCell = /*#__PURE__*/forwardRef(function (_ref, ref) {
57
57
  } : undefined,
58
58
  "aria-sort": sortDirection
59
59
  }, jsx(Inline, {
60
- justifyContent: alignMap[align],
61
- gap: "space.0"
60
+ alignInline: alignMap[align],
61
+ space: "0"
62
62
  }, children));
63
63
  });
@@ -1,7 +1,8 @@
1
1
  /** @jsx jsx */
2
2
 
3
3
  import { css, jsx } from '@emotion/react';
4
- import { UNSAFE_Box as Box, UNSAFE_Inline as Inline } from '@atlaskit/ds-explorations';
4
+ import { UNSAFE_Box as Box } from '@atlaskit/ds-explorations';
5
+ import Inline from '@atlaskit/primitives/inline';
5
6
  var overlayStyles = css({
6
7
  top: 0,
7
8
  right: 0,
@@ -23,7 +24,7 @@ export var BulkActionOverlay = function BulkActionOverlay(_ref) {
23
24
  backgroundColor: "elevation.surface",
24
25
  css: overlayStyles
25
26
  }, jsx(Inline, {
26
- gap: "space.300",
27
- alignItems: "center"
27
+ space: "300",
28
+ alignBlock: "center"
28
29
  }, children));
29
30
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "sideEffects": false
5
5
  }
@@ -35,8 +35,8 @@ export declare type BaseCellProps = {
35
35
  */
36
36
  export declare type SortDirection = 'ascending' | 'descending' | 'none' | 'other';
37
37
  declare const alignMap: {
38
- readonly text: "flexStart";
39
- readonly number: "flexEnd";
38
+ readonly text: "start";
39
+ readonly number: "end";
40
40
  readonly icon: "center";
41
41
  };
42
42
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/table",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "A table is used to display data.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,6 +38,7 @@
38
38
  "@atlaskit/ds-lib": "^2.1.2",
39
39
  "@atlaskit/focus-ring": "^1.2.1",
40
40
  "@atlaskit/icon": "^21.11.2",
41
+ "@atlaskit/primitives": "^0.3.0",
41
42
  "@atlaskit/tokens": "^1.2.0",
42
43
  "@atlaskit/tooltip": "^17.7.0",
43
44
  "@atlaskit/visually-hidden": "^1.0.0",
package/report.api.md CHANGED
@@ -23,8 +23,8 @@ import { ReactNode } from 'react';
23
23
 
24
24
  // @public (undocumented)
25
25
  const alignMap: {
26
- readonly text: 'flexStart';
27
- readonly number: 'flexEnd';
26
+ readonly text: 'start';
27
+ readonly number: 'end';
28
28
  readonly icon: 'center';
29
29
  };
30
30
 
@@ -12,8 +12,8 @@ import { ReactNode } from 'react';
12
12
 
13
13
  // @public (undocumented)
14
14
  const alignMap: {
15
- readonly text: "flexStart";
16
- readonly number: "flexEnd";
15
+ readonly text: "start";
16
+ readonly number: "end";
17
17
  readonly icon: "center";
18
18
  };
19
19