@atlaskit/dynamic-table 14.2.3 → 14.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.
Files changed (105) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/cjs/components/Body.js +2 -2
  3. package/dist/cjs/components/LoadingContainer.js +1 -1
  4. package/dist/cjs/components/LoadingContainerAdvanced.js +4 -4
  5. package/dist/cjs/components/Stateful.js +5 -3
  6. package/dist/cjs/components/Stateless.js +6 -4
  7. package/dist/cjs/components/TableHead.js +1 -1
  8. package/dist/cjs/components/TableHeadCell.js +18 -48
  9. package/dist/cjs/components/TableRow.js +4 -1
  10. package/dist/cjs/components/managedPagination.js +1 -1
  11. package/dist/cjs/components/rankable/Body.js +2 -2
  12. package/dist/cjs/components/rankable/TableCell.js +5 -5
  13. package/dist/cjs/components/rankable/TableHeadCell.js +3 -5
  14. package/dist/cjs/components/rankable/TableRow.js +5 -5
  15. package/dist/cjs/hoc/withDimensions.js +3 -5
  16. package/dist/cjs/hoc/withSortedPageRows.js +4 -6
  17. package/dist/cjs/styled/DynamicTable.js +80 -50
  18. package/dist/cjs/styled/EmptyBody.js +23 -28
  19. package/dist/cjs/styled/LoadingContainer.js +41 -36
  20. package/dist/cjs/styled/LoadingContainerAdvanced.js +42 -36
  21. package/dist/cjs/styled/TableCell.js +21 -15
  22. package/dist/cjs/styled/TableHead.js +157 -45
  23. package/dist/cjs/styled/TableRow.js +36 -42
  24. package/dist/cjs/styled/constants.js +33 -118
  25. package/dist/cjs/styled/rankable/RowPlaceholder.js +11 -12
  26. package/dist/cjs/styled/rankable/TableCell.js +18 -27
  27. package/dist/cjs/styled/rankable/TableRow.js +32 -54
  28. package/dist/cjs/theme.js +33 -20
  29. package/dist/cjs/version.json +1 -1
  30. package/dist/es2019/components/Body.js +1 -1
  31. package/dist/es2019/components/LoadingContainerAdvanced.js +2 -4
  32. package/dist/es2019/components/Stateful.js +4 -2
  33. package/dist/es2019/components/Stateless.js +5 -3
  34. package/dist/es2019/components/TableHeadCell.js +18 -22
  35. package/dist/es2019/components/TableRow.js +4 -1
  36. package/dist/es2019/components/rankable/Body.js +1 -1
  37. package/dist/es2019/components/rankable/TableCell.js +4 -4
  38. package/dist/es2019/components/rankable/TableHeadCell.js +1 -3
  39. package/dist/es2019/components/rankable/TableRow.js +3 -3
  40. package/dist/es2019/hoc/withDimensions.js +2 -4
  41. package/dist/es2019/hoc/withSortedPageRows.js +2 -4
  42. package/dist/es2019/styled/DynamicTable.js +75 -27
  43. package/dist/es2019/styled/EmptyBody.js +21 -11
  44. package/dist/es2019/styled/LoadingContainer.js +39 -18
  45. package/dist/es2019/styled/LoadingContainerAdvanced.js +38 -20
  46. package/dist/es2019/styled/TableCell.js +20 -5
  47. package/dist/es2019/styled/TableHead.js +160 -33
  48. package/dist/es2019/styled/TableRow.js +34 -20
  49. package/dist/es2019/styled/constants.js +30 -88
  50. package/dist/es2019/styled/rankable/RowPlaceholder.js +10 -4
  51. package/dist/es2019/styled/rankable/TableCell.js +16 -9
  52. package/dist/es2019/styled/rankable/TableRow.js +32 -24
  53. package/dist/es2019/theme.js +25 -18
  54. package/dist/es2019/version.json +1 -1
  55. package/dist/esm/components/Body.js +2 -2
  56. package/dist/esm/components/LoadingContainer.js +1 -1
  57. package/dist/esm/components/LoadingContainerAdvanced.js +4 -4
  58. package/dist/esm/components/Stateful.js +5 -3
  59. package/dist/esm/components/Stateless.js +6 -4
  60. package/dist/esm/components/TableHead.js +1 -1
  61. package/dist/esm/components/TableHeadCell.js +19 -47
  62. package/dist/esm/components/TableRow.js +4 -1
  63. package/dist/esm/components/managedPagination.js +1 -1
  64. package/dist/esm/components/rankable/Body.js +2 -2
  65. package/dist/esm/components/rankable/TableCell.js +5 -5
  66. package/dist/esm/components/rankable/TableHeadCell.js +3 -5
  67. package/dist/esm/components/rankable/TableRow.js +5 -5
  68. package/dist/esm/hoc/withDimensions.js +3 -5
  69. package/dist/esm/hoc/withSortedPageRows.js +4 -6
  70. package/dist/esm/styled/DynamicTable.js +75 -46
  71. package/dist/esm/styled/EmptyBody.js +23 -26
  72. package/dist/esm/styled/LoadingContainer.js +40 -36
  73. package/dist/esm/styled/LoadingContainerAdvanced.js +41 -35
  74. package/dist/esm/styled/TableCell.js +21 -15
  75. package/dist/esm/styled/TableHead.js +152 -41
  76. package/dist/esm/styled/TableRow.js +38 -42
  77. package/dist/esm/styled/constants.js +28 -108
  78. package/dist/esm/styled/rankable/RowPlaceholder.js +12 -14
  79. package/dist/esm/styled/rankable/TableCell.js +18 -27
  80. package/dist/esm/styled/rankable/TableRow.js +33 -54
  81. package/dist/esm/theme.js +25 -18
  82. package/dist/esm/version.json +1 -1
  83. package/dist/types/components/Body.d.ts +22 -22
  84. package/dist/types/components/LoadingContainerAdvanced.d.ts +2 -2
  85. package/dist/types/components/Stateless.d.ts +3 -3
  86. package/dist/types/components/TableHeadCell.d.ts +4 -9
  87. package/dist/types/components/rankable/Body.d.ts +22 -22
  88. package/dist/types/components/rankable/TableHeadCell.d.ts +1 -1
  89. package/dist/types/components/rankable/TableRow.d.ts +3 -3
  90. package/dist/types/hoc/withDimensions.d.ts +2 -2
  91. package/dist/types/hoc/withSortedPageRows.d.ts +20 -20
  92. package/dist/types/styled/DynamicTable.d.ts +13 -6
  93. package/dist/types/styled/EmptyBody.d.ts +4 -3
  94. package/dist/types/styled/LoadingContainer.d.ts +8 -7
  95. package/dist/types/styled/LoadingContainerAdvanced.d.ts +5 -4
  96. package/dist/types/styled/TableCell.d.ts +3 -2
  97. package/dist/types/styled/TableHead.d.ts +8 -5
  98. package/dist/types/styled/TableRow.d.ts +7 -4
  99. package/dist/types/styled/constants.d.ts +13 -10
  100. package/dist/types/styled/rankable/RowPlaceholder.d.ts +3 -2
  101. package/dist/types/styled/rankable/TableCell.d.ts +8 -6
  102. package/dist/types/styled/rankable/TableRow.d.ts +9 -6
  103. package/dist/types/theme.d.ts +15 -9
  104. package/dist/types/types.d.ts +18 -6
  105. package/package.json +15 -9
@@ -14,12 +14,12 @@ export interface WithSortedPageRowsProps {
14
14
  isTotalPagesControlledExternally?: boolean;
15
15
  }
16
16
  export default function withSortedPageRows<WrappedComponentProps extends WithSortedPageRowsProps & Props>(WrappedComponent: React.ComponentType<WrappedComponentProps>): {
17
- new (props: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>): {
17
+ new (props: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>): {
18
18
  state: {
19
19
  pageRows: never[];
20
20
  };
21
21
  componentDidMount(): void;
22
- componentDidUpdate(_prevProps: Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>, prevState: {
22
+ componentDidUpdate(_prevProps: Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>, prevState: {
23
23
  pageRows: Array<RowType>;
24
24
  }): void;
25
25
  render(): JSX.Element;
@@ -28,7 +28,7 @@ export default function withSortedPageRows<WrappedComponentProps extends WithSor
28
28
  pageRows: Array<RowType>;
29
29
  } | ((prevState: Readonly<{
30
30
  pageRows: Array<RowType>;
31
- }>, props: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>) => {
31
+ }>, props: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>) => {
32
32
  pageRows: Array<RowType>;
33
33
  } | Pick<{
34
34
  pageRows: Array<RowType>;
@@ -36,37 +36,37 @@ export default function withSortedPageRows<WrappedComponentProps extends WithSor
36
36
  pageRows: Array<RowType>;
37
37
  }, K> | null, callback?: (() => void) | undefined): void;
38
38
  forceUpdate(callBack?: (() => void) | undefined): void;
39
- readonly props: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>> & Readonly<{
39
+ readonly props: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>> & Readonly<{
40
40
  children?: React.ReactNode;
41
41
  }>;
42
42
  refs: {
43
43
  [key: string]: React.ReactInstance;
44
44
  };
45
- shouldComponentUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
45
+ shouldComponentUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
46
46
  pageRows: Array<RowType>;
47
47
  }>, nextContext: any): boolean;
48
48
  componentWillUnmount?(): void;
49
49
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
50
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, prevState: Readonly<{
50
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, prevState: Readonly<{
51
51
  pageRows: Array<RowType>;
52
52
  }>): any;
53
53
  componentWillMount?(): void;
54
54
  UNSAFE_componentWillMount?(): void;
55
- componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextContext: any): void;
56
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextContext: any): void;
57
- componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
55
+ componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextContext: any): void;
56
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextContext: any): void;
57
+ componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
58
58
  pageRows: Array<RowType>;
59
59
  }>, nextContext: any): void;
60
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
60
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
61
61
  pageRows: Array<RowType>;
62
62
  }>, nextContext: any): void;
63
63
  };
64
- new (props: Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>, context?: any): {
64
+ new (props: Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>, context?: any): {
65
65
  state: {
66
66
  pageRows: never[];
67
67
  };
68
68
  componentDidMount(): void;
69
- componentDidUpdate(_prevProps: Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>, prevState: {
69
+ componentDidUpdate(_prevProps: Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>, prevState: {
70
70
  pageRows: Array<RowType>;
71
71
  }): void;
72
72
  render(): JSX.Element;
@@ -75,7 +75,7 @@ export default function withSortedPageRows<WrappedComponentProps extends WithSor
75
75
  pageRows: Array<RowType>;
76
76
  } | ((prevState: Readonly<{
77
77
  pageRows: Array<RowType>;
78
- }>, props: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>) => {
78
+ }>, props: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>) => {
79
79
  pageRows: Array<RowType>;
80
80
  } | Pick<{
81
81
  pageRows: Array<RowType>;
@@ -83,28 +83,28 @@ export default function withSortedPageRows<WrappedComponentProps extends WithSor
83
83
  pageRows: Array<RowType>;
84
84
  }, K> | null, callback?: (() => void) | undefined): void;
85
85
  forceUpdate(callBack?: (() => void) | undefined): void;
86
- readonly props: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>> & Readonly<{
86
+ readonly props: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>> & Readonly<{
87
87
  children?: React.ReactNode;
88
88
  }>;
89
89
  refs: {
90
90
  [key: string]: React.ReactInstance;
91
91
  };
92
- shouldComponentUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
92
+ shouldComponentUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
93
93
  pageRows: Array<RowType>;
94
94
  }>, nextContext: any): boolean;
95
95
  componentWillUnmount?(): void;
96
96
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
97
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, prevState: Readonly<{
97
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, prevState: Readonly<{
98
98
  pageRows: Array<RowType>;
99
99
  }>): any;
100
100
  componentWillMount?(): void;
101
101
  UNSAFE_componentWillMount?(): void;
102
- componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextContext: any): void;
103
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextContext: any): void;
104
- componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
102
+ componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextContext: any): void;
103
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextContext: any): void;
104
+ componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
105
105
  pageRows: Array<RowType>;
106
106
  }>, nextContext: any): void;
107
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "page" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
107
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
108
108
  pageRows: Array<RowType>;
109
109
  }>, nextContext: any): void;
110
110
  };
@@ -1,7 +1,14 @@
1
- /// <reference types="react" />
2
- export interface TableProps {
1
+ /** @jsx jsx */
2
+ import { FC, HTMLProps } from 'react';
3
+ export declare type TableProps = HTMLProps<HTMLTableElement> & {
3
4
  isFixedSize?: boolean;
4
- }
5
- export declare const Table: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLTableElement> & import("react").TableHTMLAttributes<HTMLTableElement> & TableProps, any, import("react").ClassAttributes<HTMLTableElement> & import("react").TableHTMLAttributes<HTMLTableElement> & TableProps>;
6
- export declare const Caption: import("styled-components").StyledComponentClass<any, any, any>;
7
- export declare const PaginationWrapper: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
5
+ };
6
+ export declare const tableRowCSSVars: {
7
+ CSS_VAR_HOVER_BACKGROUND: string;
8
+ CSS_VAR_HIGHLIGHTED_BACKGROUND: string;
9
+ CSS_VAR_HOVER_HIGHLIGHTED_BACKGROUND: string;
10
+ CSS_VAR_ROW_FOCUS_OUTLINE: string;
11
+ };
12
+ export declare const Table: import("react").ForwardRefExoticComponent<Pick<TableProps, "cite" | "data" | "form" | "label" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "content" | "height" | "width" | "isFixedSize" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap"> & import("react").RefAttributes<HTMLTableElement>>;
13
+ export declare const Caption: FC;
14
+ export declare const PaginationWrapper: FC;
@@ -1,3 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const EmptyViewWithFixedHeight: import("styled-components").StyledComponentClass<any, any, any>;
3
- export declare const EmptyViewContainer: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
1
+ /** @jsx jsx */
2
+ import { FC } from 'react';
3
+ export declare const EmptyViewWithFixedHeight: FC;
4
+ export declare const EmptyViewContainer: FC;
@@ -1,8 +1,9 @@
1
- /// <reference types="react" />
2
- export declare const Container: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
3
- export declare const ContentsContainer: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
1
+ /** @jsx jsx */
2
+ import { FC } from 'react';
3
+ declare type LoadingContainerProps = {
4
4
  contentsOpacity: number;
5
- }, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
6
- contentsOpacity: number;
7
- }>;
8
- export declare const SpinnerContainer: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
5
+ };
6
+ export declare const Container: FC;
7
+ export declare const ContentsContainer: FC<LoadingContainerProps>;
8
+ export declare const SpinnerContainer: FC;
9
+ export {};
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
2
- export declare const Container: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
3
- export declare const SpinnerBackdrop: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
4
- export declare const SpinnerContainer: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
1
+ /** @jsx jsx */
2
+ import { FC, HTMLProps } from 'react';
3
+ export declare const Container: (props: HTMLProps<HTMLDivElement>) => JSX.Element;
4
+ export declare const SpinnerBackdrop: FC;
5
+ export declare const SpinnerContainer: import("react").ForwardRefExoticComponent<Pick<HTMLProps<HTMLDivElement>, "cite" | "data" | "form" | "label" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "content" | "height" | "width" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,4 @@
1
- /// <reference types="react" />
1
+ /** @jsx jsx */
2
+ import { FC } from 'react';
2
3
  import { TruncateStyleProps } from './constants';
3
- export declare const TableBodyCell: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLTableDataCellElement> & import("react").TdHTMLAttributes<HTMLTableDataCellElement> & TruncateStyleProps, any, import("react").ClassAttributes<HTMLTableDataCellElement> & import("react").TdHTMLAttributes<HTMLTableDataCellElement> & TruncateStyleProps>;
4
+ export declare const TableBodyCell: FC<TruncateStyleProps>;
@@ -1,14 +1,17 @@
1
- /// <reference types="react" />
1
+ /** @jsx jsx */
2
+ import { FC, HTMLProps } from 'react';
3
+ import { GlobalThemeTokens } from '@atlaskit/theme/components';
2
4
  import { SortOrderType } from '../types';
3
5
  import { TruncateStyleProps } from './constants';
4
6
  interface HeadProps {
5
7
  isRanking?: boolean;
6
8
  }
7
- export declare const Head: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLTableSectionElement> & import("react").HTMLAttributes<HTMLTableSectionElement> & HeadProps, any, import("react").ClassAttributes<HTMLTableSectionElement> & import("react").HTMLAttributes<HTMLTableSectionElement> & HeadProps>;
8
- interface HeadCellProps extends TruncateStyleProps {
9
+ export declare const Head: FC<HeadProps>;
10
+ declare type HeadCellProps = TruncateStyleProps & HTMLProps<HTMLTableCellElement> & {
9
11
  onClick?: () => void;
10
12
  isSortable?: boolean;
11
13
  sortOrder?: SortOrderType;
12
- }
13
- export declare const HeadCell: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLTableHeaderCellElement> & import("react").ThHTMLAttributes<HTMLTableHeaderCellElement> & HeadCellProps, any, import("react").ClassAttributes<HTMLTableHeaderCellElement> & import("react").ThHTMLAttributes<HTMLTableHeaderCellElement> & HeadCellProps>;
14
+ };
15
+ export declare const getArrowStyles: (isSortable?: boolean | undefined, sortOrder?: "ASC" | "DESC" | undefined, theme?: GlobalThemeTokens | undefined) => import("@emotion/core").SerializedStyles | "";
16
+ export declare const HeadCell: import("react").ForwardRefExoticComponent<Pick<HeadCellProps, "cite" | "data" | "form" | "label" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "content" | "height" | "width" | "isFixedSize" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap" | "sortOrder" | "shouldTruncate" | "innerRef" | "testId" | "isSortable"> & import("react").RefAttributes<HTMLTableCellElement>>;
14
17
  export {};
@@ -1,5 +1,8 @@
1
- /// <reference types="react" />
2
- export interface ITableRowProps {
1
+ /** @jsx jsx */
2
+ import { CSSProperties, ReactNode } from 'react';
3
+ export declare type ITableRowProps = {
3
4
  isHighlighted?: boolean;
4
- }
5
- export declare const TableBodyRow: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLTableRowElement> & import("react").HTMLAttributes<HTMLTableRowElement> & ITableRowProps, any, import("react").ClassAttributes<HTMLTableRowElement> & import("react").HTMLAttributes<HTMLTableRowElement> & ITableRowProps>;
5
+ children?: ReactNode;
6
+ style?: CSSProperties;
7
+ };
8
+ export declare const TableBodyRow: import("react").ForwardRefExoticComponent<ITableRowProps & import("react").RefAttributes<HTMLTableRowElement>>;
@@ -1,15 +1,18 @@
1
- import { SortOrderType } from '../types';
1
+ import { LegacyRef, ReactNode } from 'react';
2
+ declare const CSS_VAR_WIDTH = "--local-dynamic-table-width";
2
3
  export interface TruncateStyleProps {
3
4
  width?: number;
4
5
  isFixedSize?: boolean;
5
6
  shouldTruncate?: boolean;
7
+ children?: ReactNode;
8
+ testId?: string;
9
+ innerRef?: LegacyRef<HTMLTableCellElement | HTMLTableRowElement> | undefined;
6
10
  }
7
- export declare const truncateStyle: ({ width, isFixedSize, shouldTruncate, }: TruncateStyleProps) => import("styled-components").InterpolationValue[];
8
- export declare const onClickStyle: ({ onClick }: {
9
- onClick?: boolean | undefined;
10
- }) => false | import("styled-components").InterpolationValue[] | undefined;
11
- export declare const arrowsStyle: (props: {
12
- isSortable?: boolean | undefined;
13
- sortOrder?: "ASC" | "DESC" | undefined;
14
- }) => "" | import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>[];
15
- export declare const cellStyle: import("styled-components").FlattenInterpolation<any>[];
11
+ export declare const truncationWidthStyles: import("@emotion/core").SerializedStyles;
12
+ export declare const fixedSizeTruncateStyles: import("@emotion/core").SerializedStyles;
13
+ export declare const overflowTruncateStyles: import("@emotion/core").SerializedStyles;
14
+ export declare const getTruncationStyleVars: ({ width }: TruncateStyleProps) => {
15
+ "--local-dynamic-table-width": string;
16
+ };
17
+ export declare const cellStyles: import("@emotion/core").SerializedStyles;
18
+ export {};
@@ -1,2 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const RowPlaceholderCell: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, any, import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>>;
1
+ /** @jsx jsx */
2
+ import { FC } from 'react';
3
+ export declare const RowPlaceholderCell: FC;
@@ -1,6 +1,8 @@
1
- /// <reference types="react" />
2
- export declare const RankableTableBodyCell: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLTableDataCellElement> & import("react").TdHTMLAttributes<HTMLTableDataCellElement> & import("../constants").TruncateStyleProps & {
3
- isRanking: boolean;
4
- }, any, import("react").ClassAttributes<HTMLTableDataCellElement> & import("react").TdHTMLAttributes<HTMLTableDataCellElement> & import("../constants").TruncateStyleProps & {
5
- isRanking: boolean;
6
- }>;
1
+ /** @jsx jsx */
2
+ import { FC, HTMLProps } from 'react';
3
+ import { TruncateStyleProps } from '../constants';
4
+ declare type RankableTableBodyCellProps = HTMLProps<HTMLTableCellElement | HTMLTableRowElement> & TruncateStyleProps & {
5
+ isRanking?: boolean;
6
+ };
7
+ export declare const RankableTableBodyCell: FC<RankableTableBodyCellProps>;
8
+ export {};
@@ -1,8 +1,11 @@
1
- /// <reference types="react" />
2
- export declare const RankableTableBodyRow: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLTableRowElement> & import("react").HTMLAttributes<HTMLTableRowElement> & import("../TableRow").ITableRowProps & {
1
+ /** @jsx jsx */
2
+ import { HTMLAttributes } from 'react';
3
+ import { ITableRowProps } from '../TableRow';
4
+ export declare type RankableTableBodyRowProps = HTMLAttributes<HTMLTableRowElement> & ITableRowProps & {
5
+ isRanking?: boolean;
6
+ isRankingItem?: boolean;
7
+ };
8
+ export declare const RankableTableBodyRow: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLTableRowElement> & ITableRowProps & {
3
9
  isRanking?: boolean | undefined;
4
10
  isRankingItem?: boolean | undefined;
5
- }, any, import("react").ClassAttributes<HTMLTableRowElement> & import("react").HTMLAttributes<HTMLTableRowElement> & import("../TableRow").ITableRowProps & {
6
- isRanking?: boolean | undefined;
7
- isRankingItem?: boolean | undefined;
8
- }>;
11
+ } & import("react").RefAttributes<HTMLTableRowElement>>;
@@ -1,15 +1,21 @@
1
+ export declare const MSThemeColors: {
2
+ Background: string;
3
+ Text: string;
4
+ SelectedBackground: string;
5
+ SelectedText: string;
6
+ };
1
7
  export declare const arrow: {
2
- defaultColor: import("@atlaskit/theme").ThemedValue<string>;
3
- selectedColor: import("@atlaskit/theme").ThemedValue<string>;
4
- hoverColor: import("@atlaskit/theme").ThemedValue<string>;
8
+ defaultColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-subtleNeutral-resting)">;
9
+ selectedColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-lowEmphasis)">;
10
+ hoverColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-subtleNeutral-pressed)">;
5
11
  };
6
12
  export declare const row: {
7
- focusOutline: import("@atlaskit/theme").ThemedValue<string>;
8
- highlightedBackground: import("@atlaskit/theme").ThemedValue<string>;
9
- hoverBackground: import("@atlaskit/theme").ThemedValue<string>;
10
- hoverHighlightedBackground: import("@atlaskit/theme").ThemedValue<string>;
13
+ focusOutline: import("@atlaskit/theme").ThemedValue<"var(--ds-border-focus)">;
14
+ highlightedBackground: import("@atlaskit/theme").ThemedValue<"var(--ds-background-selected-resting)">;
15
+ hoverBackground: import("@atlaskit/theme").ThemedValue<"var(--ds-background-subtleBorderedNeutral-resting)">;
16
+ hoverHighlightedBackground: import("@atlaskit/theme").ThemedValue<"var(--ds-background-selected-hover)">;
11
17
  };
12
18
  export declare const head: {
13
- borderColor: import("@atlaskit/theme").ThemedValue<string>;
14
- textColor: import("@atlaskit/theme").ThemedValue<string>;
19
+ borderColor: import("@atlaskit/theme").ThemedValue<"var(--ds-border-neutral)">;
20
+ textColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-lowEmphasis)">;
15
21
  };
@@ -1,4 +1,4 @@
1
- import React, { RefObject } from 'react';
1
+ import React, { Ref } from 'react';
2
2
  import { UIAnalyticsEvent, WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
3
  export interface RowCellType {
4
4
  key?: string | number;
@@ -101,9 +101,9 @@ export interface StatelessProps extends WithAnalyticsEventsProps {
101
101
  */
102
102
  paginationi18n?: I18nShape;
103
103
  /**
104
- * Will highlight a row of the table.
104
+ * Will highlight a row(s) of the table.
105
105
  */
106
- highlightedRowIndex?: number;
106
+ highlightedRowIndex?: number | number[];
107
107
  /**
108
108
  A `testId` prop is provided for specified elements,
109
109
  which is a unique string that appears as a data attribute
@@ -121,6 +121,12 @@ export interface StatelessProps extends WithAnalyticsEventsProps {
121
121
  * `${testId}--loadingSpinner` - The spinner overlaid when loading.
122
122
  **/
123
123
  testId?: string;
124
+ /**
125
+ * Used to provide a better description of the table for users with assistive technologies.
126
+ * Rather than a screen reader speaking "Entering table", passing in an label
127
+ * allows a custom message like "Entering Sample Numerical Data table".
128
+ **/
129
+ label?: string;
124
130
  }
125
131
  export interface StatefulProps extends WithAnalyticsEventsProps {
126
132
  /**
@@ -228,9 +234,9 @@ export interface StatefulProps extends WithAnalyticsEventsProps {
228
234
  */
229
235
  paginationi18n?: I18nShape;
230
236
  /**
231
- * Will highlight a row of the table.
237
+ * Will highlight a row(s) of the table.
232
238
  */
233
- highlightedRowIndex?: number;
239
+ highlightedRowIndex?: number | number[];
234
240
  /**
235
241
  A `testId` prop is provided for specified elements,
236
242
  which is a unique string that appears as a data attribute
@@ -248,6 +254,12 @@ export interface StatefulProps extends WithAnalyticsEventsProps {
248
254
  * `${testId}--loadingSpinner` - The spinner overlaid when loading.
249
255
  **/
250
256
  testId?: string;
257
+ /**
258
+ * Used to provide a better description of the table for users with assistive technologies.
259
+ * Rather than a screen reader speaking "Entering table", passing in an label
260
+ * allows a custom message like "Entering Sample Numerical Data table".
261
+ **/
262
+ label?: string;
251
263
  }
252
264
  export interface RowType extends React.ComponentPropsWithoutRef<'tr'> {
253
265
  cells: Array<RowCellType>;
@@ -255,7 +267,7 @@ export interface RowType extends React.ComponentPropsWithoutRef<'tr'> {
255
267
  onClick?: React.MouseEventHandler;
256
268
  onKeyPress?: React.KeyboardEventHandler;
257
269
  testId?: string;
258
- innerRef?: RefObject<HTMLElement>;
270
+ ref?: Ref<HTMLTableRowElement>;
259
271
  }
260
272
  export declare type SortOrderType = 'ASC' | 'DESC';
261
273
  export declare type SpinnerSizeType = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dynamic-table",
3
- "version": "14.2.3",
3
+ "version": "14.4.0",
4
4
  "description": "A table displays rows of data with built-in pagination, sorting, and re-ordering functionality.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,36 +27,42 @@
27
27
  "@atlaskit/analytics-next": "^8.0.0",
28
28
  "@atlaskit/pagination": "^14.0.0",
29
29
  "@atlaskit/spinner": "^15.0.0",
30
- "@atlaskit/theme": "^11.0.0",
30
+ "@atlaskit/theme": "^12.0.0",
31
+ "@atlaskit/tokens": "^0.3.0",
31
32
  "@babel/runtime": "^7.0.0",
33
+ "@emotion/core": "^10.0.9",
32
34
  "react-beautiful-dnd": "^12.1.1"
33
35
  },
34
36
  "peerDependencies": {
35
37
  "react": "^16.8.0",
36
- "react-dom": "^16.8.0",
37
- "styled-components": "^3.2.6"
38
+ "react-dom": "^16.8.0"
38
39
  },
39
40
  "devDependencies": {
40
- "@atlaskit/avatar": "^20.0.0",
41
+ "@atlaskit/avatar": "^20.5.0",
41
42
  "@atlaskit/build-utils": "*",
42
- "@atlaskit/button": "^15.1.0",
43
+ "@atlaskit/button": "^16.0.0",
43
44
  "@atlaskit/docs": "*",
44
45
  "@atlaskit/dropdown-menu": "^10.1.0",
45
46
  "@atlaskit/ssr": "*",
46
- "@atlaskit/toggle": "^12.2.0",
47
+ "@atlaskit/toggle": "^12.3.0",
47
48
  "@atlaskit/visual-regression": "*",
48
49
  "@atlaskit/webdriver-runner": "*",
49
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
50
+ "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
51
+ "@emotion/styled": "^10.0.7",
50
52
  "@testing-library/react": "^8.0.1",
51
53
  "enzyme": "^3.10.0",
52
54
  "react-dom": "^16.8.0",
55
+ "styled-components": "^3.2.6",
53
56
  "typescript": "3.9.6",
54
57
  "uuid": "^3.1.0"
55
58
  },
56
59
  "techstack": {
57
60
  "@atlassian/frontend": {
58
61
  "import-structure": "atlassian-conventions"
62
+ },
63
+ "@repo/internal": {
64
+ "theming": "tokens"
59
65
  }
60
66
  },
61
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
67
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
62
68
  }