@atlaskit/table 0.3.3 → 0.4.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/table
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 0.3.4
14
+
15
+ ### Patch Changes
16
+
17
+ - [`4ba10567310`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ba10567310) - Internal changes.
18
+
3
19
  ## 0.3.3
4
20
 
5
21
  ### Patch Changes
package/README.md CHANGED
@@ -22,7 +22,7 @@ import Table, { Row, Cell, TBody, THead, HeadCell } from '@atlaskit/table';
22
22
 
23
23
  import { presidents } from './data';
24
24
 
25
- type President = typeof presidents[number];
25
+ type President = (typeof presidents)[number];
26
26
 
27
27
  /**
28
28
  * Primary UI component for user interaction
@@ -11,10 +11,8 @@ var _inline = _interopRequireDefault(require("@atlaskit/primitives/inline"));
11
11
  /** @jsx jsx */
12
12
 
13
13
  var overlayStyles = (0, _react.css)({
14
- top: 0,
15
- right: 0,
16
- bottom: 0,
17
- left: 32
14
+ inset: 0,
15
+ left: "var(--ds-space-400, 32px)"
18
16
  });
19
17
 
20
18
  /**
@@ -13,9 +13,9 @@ var bodyStyles = (0, _react.css)({
13
13
  border: 'none',
14
14
  '&:after': {
15
15
  position: 'absolute',
16
+ inset: 0,
16
17
  boxShadow: "inset 0 -2px 0 0 ".concat("var(--ds-border, #eee)"),
17
18
  content: "''",
18
- inset: 0,
19
19
  pointerEvents: 'none'
20
20
  }
21
21
  });
@@ -10,11 +10,11 @@ var _react = require("@emotion/react");
10
10
  var baseStyles = (0, _react.css)({
11
11
  position: 'sticky',
12
12
  zIndex: 1,
13
+ inset: 0,
13
14
  backgroundColor: "var(--ds-surface, white)",
14
15
  border: 'none',
15
16
  borderBottom: "2px solid ".concat("var(--ds-border, #eee)"),
16
- borderTop: '2px solid transparent',
17
- inset: 0
17
+ borderTop: '2px solid transparent'
18
18
  });
19
19
 
20
20
  /**
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "sideEffects": false
5
5
  }
@@ -4,10 +4,8 @@ import { css, jsx } from '@emotion/react';
4
4
  import { UNSAFE_Box as Box } from '@atlaskit/ds-explorations';
5
5
  import Inline from '@atlaskit/primitives/inline';
6
6
  const overlayStyles = css({
7
- top: 0,
8
- right: 0,
9
- bottom: 0,
10
- left: 32
7
+ inset: 0,
8
+ left: "var(--ds-space-400, 32px)"
11
9
  });
12
10
 
13
11
  /**
@@ -7,9 +7,9 @@ const bodyStyles = css({
7
7
  border: 'none',
8
8
  '&:after': {
9
9
  position: 'absolute',
10
+ inset: 0,
10
11
  boxShadow: `inset 0 -2px 0 0 ${"var(--ds-border, #eee)"}`,
11
12
  content: "''",
12
- inset: 0,
13
13
  pointerEvents: 'none'
14
14
  }
15
15
  });
@@ -4,11 +4,11 @@ import { css, jsx } from '@emotion/react';
4
4
  const baseStyles = css({
5
5
  position: 'sticky',
6
6
  zIndex: 1,
7
+ inset: 0,
7
8
  backgroundColor: "var(--ds-surface, white)",
8
9
  border: 'none',
9
10
  borderBottom: `2px solid ${"var(--ds-border, #eee)"}`,
10
- borderTop: '2px solid transparent',
11
- inset: 0
11
+ borderTop: '2px solid transparent'
12
12
  });
13
13
 
14
14
  /**
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "sideEffects": false
5
5
  }
@@ -4,10 +4,8 @@ import { css, jsx } from '@emotion/react';
4
4
  import { UNSAFE_Box as Box } from '@atlaskit/ds-explorations';
5
5
  import Inline from '@atlaskit/primitives/inline';
6
6
  var overlayStyles = css({
7
- top: 0,
8
- right: 0,
9
- bottom: 0,
10
- left: 32
7
+ inset: 0,
8
+ left: "var(--ds-space-400, 32px)"
11
9
  });
12
10
 
13
11
  /**
@@ -7,9 +7,9 @@ var bodyStyles = css({
7
7
  border: 'none',
8
8
  '&:after': {
9
9
  position: 'absolute',
10
+ inset: 0,
10
11
  boxShadow: "inset 0 -2px 0 0 ".concat("var(--ds-border, #eee)"),
11
12
  content: "''",
12
- inset: 0,
13
13
  pointerEvents: 'none'
14
14
  }
15
15
  });
@@ -4,11 +4,11 @@ import { css, jsx } from '@emotion/react';
4
4
  var baseStyles = css({
5
5
  position: 'sticky',
6
6
  zIndex: 1,
7
+ inset: 0,
7
8
  backgroundColor: "var(--ds-surface, white)",
8
9
  border: 'none',
9
10
  borderBottom: "2px solid ".concat("var(--ds-border, #eee)"),
10
- borderTop: '2px solid transparent',
11
- inset: 0
11
+ borderTop: '2px solid transparent'
12
12
  });
13
13
 
14
14
  /**
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/table",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "description": "A table is used to display data.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,16 +32,16 @@
32
32
  "./primitives": "./src/ui/index.tsx"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/button": "^16.6.0",
36
- "@atlaskit/checkbox": "^12.4.1",
37
- "@atlaskit/ds-explorations": "^2.0.0",
38
- "@atlaskit/ds-lib": "^2.1.2",
39
- "@atlaskit/focus-ring": "^1.2.1",
40
- "@atlaskit/icon": "^21.11.2",
41
- "@atlaskit/primitives": "^0.8.0",
42
- "@atlaskit/tokens": "^1.2.0",
43
- "@atlaskit/tooltip": "^17.7.0",
44
- "@atlaskit/visually-hidden": "^1.0.0",
35
+ "@atlaskit/button": "^16.7.0",
36
+ "@atlaskit/checkbox": "^12.5.0",
37
+ "@atlaskit/ds-explorations": "^2.1.0",
38
+ "@atlaskit/ds-lib": "^2.2.0",
39
+ "@atlaskit/focus-ring": "^1.3.0",
40
+ "@atlaskit/icon": "^21.12.0",
41
+ "@atlaskit/primitives": "^0.9.0",
42
+ "@atlaskit/tokens": "^1.3.0",
43
+ "@atlaskit/tooltip": "^17.8.0",
44
+ "@atlaskit/visually-hidden": "^1.2.0",
45
45
  "@babel/runtime": "^7.0.0",
46
46
  "@emotion/react": "^11.7.1",
47
47
  "tiny-invariant": "^1.2.0"
@@ -57,7 +57,7 @@
57
57
  "@atlaskit/ds-lib": "*",
58
58
  "@atlaskit/dynamic-table": "*",
59
59
  "@atlaskit/lozenge": "*",
60
- "@atlaskit/section-message": "^6.3.0",
60
+ "@atlaskit/section-message": "^6.4.0",
61
61
  "@atlaskit/ssr": "*",
62
62
  "@atlaskit/visual-regression": "*",
63
63
  "@atlaskit/webdriver-runner": "*",
@@ -1,130 +0,0 @@
1
- ## API Report File for "@atlaskit/table"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- /// <reference types="react" />
8
-
9
- import { BoxProps } from '@atlaskit/ds-explorations/box';
10
- import { FC } from 'react';
11
- import { jsx } from '@emotion/react';
12
- import { MemoExoticComponent } from 'react';
13
- import { default as React_2 } from 'react';
14
- import { ReactElement } from 'react';
15
- import { ReactNode } from 'react';
16
- import { SerializedStyles } from '@emotion/react';
17
-
18
- // @public (undocumented)
19
- const alignMap: {
20
- readonly text: SerializedStyles;
21
- readonly number: SerializedStyles;
22
- readonly icon: SerializedStyles;
23
- };
24
-
25
- // @public (undocumented)
26
- type BaseCellProps = {
27
- width?: string;
28
- align?: keyof typeof alignMap;
29
- as?: 'td' | 'th';
30
- scope?: 'col' | 'row';
31
- testId?: string;
32
- children?: ReactNode;
33
- colSpan?: number;
34
- } & Pick<BoxProps, 'backgroundColor' | 'className' | 'paddingBlock' | 'paddingInline'>;
35
-
36
- // @public (undocumented)
37
- type BodyProps<Item extends object> = {
38
- rows: Item[];
39
- children: (row: Item) => ReactElement;
40
- } | {
41
- rows?: never;
42
- children: ReactElement | ReactElement[];
43
- };
44
-
45
- // @public
46
- export const Cell: FC<Omit<BaseCellProps, 'as'>>;
47
-
48
- // @public (undocumented)
49
- interface CellProps {
50
- // (undocumented)
51
- children?: ReactNode;
52
- name: string;
53
- // (undocumented)
54
- onClick?: React.MouseEventHandler;
55
- testId?: string;
56
- }
57
-
58
- // @public
59
- export const ExpandableCell: MemoExoticComponent<() => jsx.JSX.Element>;
60
-
61
- // @public
62
- export const ExpandableRow: ({ children, isExpanded, isDefaultExpanded, }: ExpandableRowProps) => JSX.Element;
63
-
64
- // @public
65
- export const ExpandableRowContent: ({ children }: ExpandableRowContentProps) => JSX.Element;
66
-
67
- // @public (undocumented)
68
- type ExpandableRowContentProps = {
69
- children?: React_2.ReactNode;
70
- };
71
-
72
- // @public (undocumented)
73
- type ExpandableRowProps = {
74
- children: React_2.ReactNode;
75
- isExpanded?: boolean;
76
- isDefaultExpanded?: boolean;
77
- };
78
-
79
- // @public
80
- export const HeadCell: FC<THProps>;
81
-
82
- // @public
83
- export const Row: FC<RowProps>;
84
-
85
- // @public (undocumented)
86
- type RowProps = {
87
- testId?: string;
88
- children?: ReactNode;
89
- };
90
-
91
- // @public
92
- export const SortableColumn: FC<CellProps>;
93
-
94
- // @public (undocumented)
95
- type SortKey<Key extends number | string | symbol> = 'unset' | Key;
96
-
97
- // @public
98
- function Table<ItemType extends object = object>({ children, isSelectable, sortKey, testId, }: TableProps<ItemType>): jsx.JSX.Element;
99
- export default Table;
100
-
101
- // @public (undocumented)
102
- type TableProps<ItemType extends object = {}> = {
103
- testId?: string;
104
- sortKey?: SortKey<keyof ItemType>;
105
- children: ReactElement | ReactElement[];
106
- } & ({
107
- isSelectable: true;
108
- defaultSelected?: number;
109
- } | {
110
- isSelectable?: false;
111
- });
112
-
113
- // @public
114
- export function TBody<ObjectType extends object>({ rows, children, }: BodyProps<ObjectType>): jsx.JSX.Element;
115
-
116
- // @public (undocumented)
117
- export const THead: FC<THeadProps>;
118
-
119
- // @public (undocumented)
120
- type THeadProps = {
121
- actions?: (selected: number[]) => ReactNode;
122
- children?: ReactNode;
123
- };
124
-
125
- // @public (undocumented)
126
- type THProps = Omit<BaseCellProps, 'as'>;
127
-
128
- // (No @packageDocumentation comment for this package)
129
-
130
- ```