@atlaskit/dynamic-table 14.7.1 → 14.8.1
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 +17 -0
- package/dist/cjs/components/stateless.js +1 -1
- package/dist/cjs/styled/constants.js +5 -5
- package/dist/cjs/styled/dynamic-table.js +9 -9
- package/dist/cjs/styled/empty-body.js +5 -5
- package/dist/cjs/styled/loading-container-advanced.js +7 -7
- package/dist/cjs/styled/loading-container.js +7 -7
- package/dist/cjs/styled/rankable/row-placeholder.js +3 -3
- package/dist/cjs/styled/rankable/table-cell.js +3 -3
- package/dist/cjs/styled/rankable/table-row.js +5 -5
- package/dist/cjs/styled/table-cell.js +2 -2
- package/dist/cjs/styled/table-head.js +10 -10
- package/dist/cjs/styled/table-row.js +5 -5
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/stateless.js +1 -1
- package/dist/es2019/styled/constants.js +1 -1
- package/dist/es2019/styled/dynamic-table.js +1 -1
- package/dist/es2019/styled/empty-body.js +1 -1
- package/dist/es2019/styled/loading-container-advanced.js +1 -1
- package/dist/es2019/styled/loading-container.js +1 -1
- package/dist/es2019/styled/rankable/row-placeholder.js +1 -1
- package/dist/es2019/styled/rankable/table-cell.js +1 -1
- package/dist/es2019/styled/rankable/table-row.js +1 -1
- package/dist/es2019/styled/table-cell.js +1 -1
- package/dist/es2019/styled/table-head.js +1 -1
- package/dist/es2019/styled/table-row.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/stateless.js +1 -1
- package/dist/esm/styled/constants.js +1 -1
- package/dist/esm/styled/dynamic-table.js +1 -1
- package/dist/esm/styled/empty-body.js +1 -1
- package/dist/esm/styled/loading-container-advanced.js +1 -1
- package/dist/esm/styled/loading-container.js +1 -1
- package/dist/esm/styled/rankable/row-placeholder.js +1 -1
- package/dist/esm/styled/rankable/table-cell.js +1 -1
- package/dist/esm/styled/rankable/table-row.js +1 -1
- package/dist/esm/styled/table-cell.js +1 -1
- package/dist/esm/styled/table-head.js +1 -1
- package/dist/esm/styled/table-row.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/stateless.d.ts +2 -2
- package/dist/types/styled/constants.d.ts +5 -4
- package/dist/types/styled/dynamic-table.d.ts +1 -1
- package/dist/types/styled/loading-container-advanced.d.ts +3 -2
- package/dist/types/styled/table-head.d.ts +1 -1
- package/dist/types/styled/table-row.d.ts +1 -0
- package/dist/types-ts4.0/components/body.d.ts +112 -0
- package/dist/types-ts4.0/components/loading-container-advanced.d.ts +43 -0
- package/dist/types-ts4.0/components/loading-container.d.ts +18 -0
- package/dist/types-ts4.0/components/managed-pagination.d.ts +15 -0
- package/dist/types-ts4.0/components/rankable/body.d.ts +122 -0
- package/dist/types-ts4.0/components/rankable/table-cell.d.ts +14 -0
- package/dist/types-ts4.0/components/rankable/table-head-cell.d.ts +5 -0
- package/dist/types-ts4.0/components/rankable/table-row.d.ts +18 -0
- package/dist/types-ts4.0/components/stateful.d.ts +60 -0
- package/dist/types-ts4.0/components/stateless.d.ts +58 -0
- package/dist/types-ts4.0/components/table-head-cell.d.ts +17 -0
- package/dist/types-ts4.0/components/table-head.d.ts +19 -0
- package/dist/types-ts4.0/components/table-row.d.ts +11 -0
- package/dist/types-ts4.0/hoc/with-dimensions.d.ts +12 -0
- package/dist/types-ts4.0/hoc/with-sorted-page-rows.d.ts +117 -0
- package/dist/types-ts4.0/index.d.ts +2 -0
- package/dist/types-ts4.0/internal/constants.d.ts +5 -0
- package/dist/types-ts4.0/internal/helpers.d.ts +7 -0
- package/dist/types-ts4.0/styled/constants.d.ts +17 -0
- package/dist/types-ts4.0/styled/dynamic-table.d.ts +15 -0
- package/dist/types-ts4.0/styled/empty-body.d.ts +4 -0
- package/dist/types-ts4.0/styled/loading-container-advanced.d.ts +6 -0
- package/dist/types-ts4.0/styled/loading-container.d.ts +9 -0
- package/dist/types-ts4.0/styled/rankable/row-placeholder.d.ts +3 -0
- package/dist/types-ts4.0/styled/rankable/table-cell.d.ts +8 -0
- package/dist/types-ts4.0/styled/rankable/table-row.d.ts +11 -0
- package/dist/types-ts4.0/styled/table-cell.d.ts +4 -0
- package/dist/types-ts4.0/styled/table-head.d.ts +15 -0
- package/dist/types-ts4.0/styled/table-row.d.ts +9 -0
- package/dist/types-ts4.0/theme.d.ts +22 -0
- package/dist/types-ts4.0/types.d.ts +345 -0
- package/package.json +16 -10
- package/theme/package.json +8 -1
- package/types/package.json +8 -1
|
@@ -25,7 +25,7 @@ import ManagedPagination from './managed-pagination';
|
|
|
25
25
|
import RankableTableBody from './rankable/body';
|
|
26
26
|
import TableHead from './table-head';
|
|
27
27
|
var packageName = "@atlaskit/dynamic-table";
|
|
28
|
-
var packageVersion = "14.
|
|
28
|
+
var packageVersion = "14.8.1";
|
|
29
29
|
|
|
30
30
|
function toggleSortOrder(currentSortOrder) {
|
|
31
31
|
switch (currentSortOrder) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { css } from '@emotion/
|
|
2
|
+
import { css } from '@emotion/react';
|
|
3
3
|
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
var CSS_VAR_WIDTH = '--local-dynamic-table-width';
|
|
5
5
|
var gridSize = getGridSize();
|
|
@@ -7,7 +7,7 @@ var _excluded = ["isFixedSize", "hasDataRow", "children"];
|
|
|
7
7
|
|
|
8
8
|
/** @jsx jsx */
|
|
9
9
|
import { forwardRef } from 'react';
|
|
10
|
-
import { css, jsx } from '@emotion/
|
|
10
|
+
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
12
12
|
import { row, tableBorder } from '../theme';
|
|
13
13
|
var gridSize = getGridSize();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { css, jsx } from '@emotion/
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
6
6
|
var fixedHeightStyles = css({
|
|
7
7
|
height: "".concat(gridSize() * 18, "px")
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
9
9
|
var containerStyles = css({
|
|
10
10
|
marginBottom: "".concat(gridSize() * 3, "px"),
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
|
-
import { css, jsx } from '@emotion/
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
7
|
var CSS_VAR_CONTENTS_OPACITY = '--contents-opacity';
|
|
8
8
|
var containerStyles = css({
|
|
9
9
|
position: 'relative'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { css, jsx } from '@emotion/
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
var rowPlaceholderStyles = css({
|
|
6
6
|
padding: 0
|
|
7
7
|
}); // eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["isRanking", "innerRef"];
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
|
-
import { css, jsx } from '@emotion/
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { TableBodyCell } from '../table-cell';
|
|
8
8
|
var rankingStyles = css({
|
|
9
9
|
boxSizing: 'border-box'
|
|
@@ -4,7 +4,7 @@ var _excluded = ["isRanking", "isRankingItem"];
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { B100, N20, N50A, N60A } from '@atlaskit/theme/colors';
|
|
9
9
|
import { TableBodyRow } from '../table-row';
|
|
10
10
|
var rankingStyles = css({
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["width", "isFixedSize", "shouldTruncate", "innerRef"];
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
|
-
import { jsx } from '@emotion/
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
7
|
import { cellStyles, fixedSizeTruncateStyles, getTruncationStyleVars, overflowTruncateStyles, truncationWidthStyles } from './constants'; // eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
8
8
|
|
|
9
9
|
export var TableBodyCell = function TableBodyCell(_ref) {
|
|
@@ -12,7 +12,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12
12
|
|
|
13
13
|
/** @jsx jsx */
|
|
14
14
|
import { forwardRef } from 'react';
|
|
15
|
-
import { css, jsx } from '@emotion/
|
|
15
|
+
import { css, jsx } from '@emotion/react';
|
|
16
16
|
import { B100, N30A } from '@atlaskit/theme/colors';
|
|
17
17
|
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
18
18
|
import { ASC, DESC } from '../internal/constants';
|
|
@@ -4,7 +4,7 @@ var _excluded = ["isHighlighted", "children", "style"];
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { tableRowCSSVars as cssVars } from './dynamic-table';
|
|
9
9
|
var rowStyles = css({
|
|
10
10
|
'&:focus': {
|
package/dist/esm/version.json
CHANGED
|
@@ -38,7 +38,7 @@ declare class DynamicTable extends React.Component<Props, State> {
|
|
|
38
38
|
render(): JSX.Element;
|
|
39
39
|
}
|
|
40
40
|
export { DynamicTable as DynamicTableWithoutAnalytics };
|
|
41
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<Props, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "caption" | "head" | "
|
|
41
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<Props, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "caption" | "head" | "rows" | "emptyView" | "loadingSpinnerSize" | "totalRows" | "onPageRowsUpdate" | "sortKey" | "sortOrder" | "highlightedRowIndex" | "testId" | "label"> & Partial<Pick<Omit<Props, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "isLoading" | "isFixedSize" | "rowsPerPage" | "onSetPage" | "onSort" | "page" | "isRankable" | "isRankingDisabled" | "onRankStart" | "onRankEnd" | "paginationi18n">> & Partial<Pick<{
|
|
42
42
|
isLoading: boolean;
|
|
43
43
|
isFixedSize: boolean;
|
|
44
44
|
rowsPerPage: number;
|
|
@@ -54,5 +54,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<Props, ke
|
|
|
54
54
|
next: string;
|
|
55
55
|
label: string;
|
|
56
56
|
};
|
|
57
|
-
}, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "caption" | "head" | "
|
|
57
|
+
}, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "caption" | "head" | "rows" | "emptyView" | "loadingSpinnerSize" | "isLoading" | "isFixedSize" | "rowsPerPage" | "totalRows" | "onSetPage" | "onSort" | "onPageRowsUpdate" | "page" | "sortKey" | "sortOrder" | "isRankable" | "isRankingDisabled" | "onRankStart" | "onRankEnd" | "paginationi18n" | "highlightedRowIndex" | "testId" | "label" | "key" | "analyticsContext"> & React.RefAttributes<any>>;
|
|
58
58
|
export default _default;
|
|
@@ -6,11 +6,12 @@ export interface TruncateStyleProps {
|
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
testId?: string;
|
|
8
8
|
innerRef?: LegacyRef<HTMLTableCellElement | HTMLTableRowElement> | undefined;
|
|
9
|
+
className?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare const truncationWidthStyles: import("@emotion/
|
|
11
|
-
export declare const fixedSizeTruncateStyles: import("@emotion/
|
|
12
|
-
export declare const overflowTruncateStyles: import("@emotion/
|
|
11
|
+
export declare const truncationWidthStyles: import("@emotion/react").SerializedStyles;
|
|
12
|
+
export declare const fixedSizeTruncateStyles: import("@emotion/react").SerializedStyles;
|
|
13
|
+
export declare const overflowTruncateStyles: import("@emotion/react").SerializedStyles;
|
|
13
14
|
export declare const getTruncationStyleVars: ({ width }: TruncateStyleProps) => {
|
|
14
15
|
"--local-dynamic-table-width": string;
|
|
15
16
|
} | undefined;
|
|
16
|
-
export declare const cellStyles: import("@emotion/
|
|
17
|
+
export declare const cellStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -10,6 +10,6 @@ export declare const tableRowCSSVars: {
|
|
|
10
10
|
CSS_VAR_HOVER_HIGHLIGHTED_BACKGROUND: string;
|
|
11
11
|
CSS_VAR_ROW_FOCUS_OUTLINE: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const Table: import("react").ForwardRefExoticComponent<Pick<TableProps, "
|
|
13
|
+
export declare const Table: import("react").ForwardRefExoticComponent<Pick<TableProps, "rows" | "isFixedSize" | "label" | "cite" | "data" | "form" | "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" | "width" | "height" | "content" | "hasDataRow" | "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" | "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>>;
|
|
14
14
|
export declare const Caption: FC;
|
|
15
15
|
export declare const PaginationWrapper: FC;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { FC, HTMLProps } from 'react';
|
|
3
|
-
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
export declare const Container: (props: HTMLProps<HTMLDivElement>) => jsx.JSX.Element;
|
|
4
5
|
export declare const SpinnerBackdrop: FC;
|
|
5
|
-
export declare const SpinnerContainer: import("react").ForwardRefExoticComponent<Pick<HTMLProps<HTMLDivElement>, "
|
|
6
|
+
export declare const SpinnerContainer: import("react").ForwardRefExoticComponent<Pick<HTMLProps<HTMLDivElement>, "rows" | "label" | "cite" | "data" | "form" | "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" | "width" | "height" | "content" | "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" | "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>>;
|
|
@@ -11,5 +11,5 @@ declare type HeadCellProps = TruncateStyleProps & HTMLProps<HTMLTableCellElement
|
|
|
11
11
|
isSortable?: boolean;
|
|
12
12
|
sortOrder?: SortOrderType;
|
|
13
13
|
};
|
|
14
|
-
export declare const HeadCell: import("react").ForwardRefExoticComponent<Pick<HeadCellProps, "
|
|
14
|
+
export declare const HeadCell: import("react").ForwardRefExoticComponent<Pick<HeadCellProps, "rows" | "isFixedSize" | "sortOrder" | "testId" | "label" | "cite" | "data" | "form" | "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" | "isSortable" | "width" | "shouldTruncate" | "height" | "content" | "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" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap" | "innerRef"> & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
15
15
|
export {};
|
|
@@ -4,5 +4,6 @@ export declare type ITableRowProps = {
|
|
|
4
4
|
isHighlighted?: boolean;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
style?: CSSProperties;
|
|
7
|
+
className?: string;
|
|
7
8
|
};
|
|
8
9
|
export declare const TableBodyRow: import("react").ForwardRefExoticComponent<ITableRowProps & import("react").RefAttributes<HTMLTableRowElement>>;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WithSortedPageRowsProps } from '../hoc/with-sorted-page-rows';
|
|
3
|
+
import { HeadType } from '../types';
|
|
4
|
+
interface BodyProps extends WithSortedPageRowsProps {
|
|
5
|
+
head?: HeadType;
|
|
6
|
+
highlightedRowIndex?: number | number[];
|
|
7
|
+
isFixedSize: boolean;
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: {
|
|
11
|
+
new (props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>): {
|
|
12
|
+
state: {
|
|
13
|
+
pageRows: never[];
|
|
14
|
+
};
|
|
15
|
+
componentDidMount(): void;
|
|
16
|
+
componentDidUpdate(_prevProps: Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">, prevState: {
|
|
17
|
+
pageRows: import("../types").RowType[];
|
|
18
|
+
}): void;
|
|
19
|
+
render(): JSX.Element;
|
|
20
|
+
context: any;
|
|
21
|
+
setState<K extends "pageRows">(state: {
|
|
22
|
+
pageRows: import("../types").RowType[];
|
|
23
|
+
} | ((prevState: Readonly<{
|
|
24
|
+
pageRows: import("../types").RowType[];
|
|
25
|
+
}>, props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>) => {
|
|
26
|
+
pageRows: import("../types").RowType[];
|
|
27
|
+
} | Pick<{
|
|
28
|
+
pageRows: import("../types").RowType[];
|
|
29
|
+
}, K> | null) | Pick<{
|
|
30
|
+
pageRows: import("../types").RowType[];
|
|
31
|
+
}, K> | null, callback?: (() => void) | undefined): void;
|
|
32
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
33
|
+
readonly props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">> & Readonly<{
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
}>;
|
|
36
|
+
refs: {
|
|
37
|
+
[key: string]: React.ReactInstance;
|
|
38
|
+
};
|
|
39
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
40
|
+
pageRows: import("../types").RowType[];
|
|
41
|
+
}>, nextContext: any): boolean;
|
|
42
|
+
componentWillUnmount?(): void;
|
|
43
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
44
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, prevState: Readonly<{
|
|
45
|
+
pageRows: import("../types").RowType[];
|
|
46
|
+
}>): any;
|
|
47
|
+
componentWillMount?(): void;
|
|
48
|
+
UNSAFE_componentWillMount?(): void;
|
|
49
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
50
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
51
|
+
componentWillUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
52
|
+
pageRows: import("../types").RowType[];
|
|
53
|
+
}>, nextContext: any): void;
|
|
54
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
55
|
+
pageRows: import("../types").RowType[];
|
|
56
|
+
}>, nextContext: any): void;
|
|
57
|
+
};
|
|
58
|
+
new (props: Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">, context?: any): {
|
|
59
|
+
state: {
|
|
60
|
+
pageRows: never[];
|
|
61
|
+
};
|
|
62
|
+
componentDidMount(): void;
|
|
63
|
+
componentDidUpdate(_prevProps: Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">, prevState: {
|
|
64
|
+
pageRows: import("../types").RowType[];
|
|
65
|
+
}): void;
|
|
66
|
+
render(): JSX.Element;
|
|
67
|
+
context: any;
|
|
68
|
+
setState<K extends "pageRows">(state: {
|
|
69
|
+
pageRows: import("../types").RowType[];
|
|
70
|
+
} | ((prevState: Readonly<{
|
|
71
|
+
pageRows: import("../types").RowType[];
|
|
72
|
+
}>, props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>) => {
|
|
73
|
+
pageRows: import("../types").RowType[];
|
|
74
|
+
} | Pick<{
|
|
75
|
+
pageRows: import("../types").RowType[];
|
|
76
|
+
}, K> | null) | Pick<{
|
|
77
|
+
pageRows: import("../types").RowType[];
|
|
78
|
+
}, K> | null, callback?: (() => void) | undefined): void;
|
|
79
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
80
|
+
readonly props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">> & Readonly<{
|
|
81
|
+
children?: React.ReactNode;
|
|
82
|
+
}>;
|
|
83
|
+
refs: {
|
|
84
|
+
[key: string]: React.ReactInstance;
|
|
85
|
+
};
|
|
86
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
87
|
+
pageRows: import("../types").RowType[];
|
|
88
|
+
}>, nextContext: any): boolean;
|
|
89
|
+
componentWillUnmount?(): void;
|
|
90
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
91
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, prevState: Readonly<{
|
|
92
|
+
pageRows: import("../types").RowType[];
|
|
93
|
+
}>): any;
|
|
94
|
+
componentWillMount?(): void;
|
|
95
|
+
UNSAFE_componentWillMount?(): void;
|
|
96
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
97
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
98
|
+
componentWillUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
99
|
+
pageRows: import("../types").RowType[];
|
|
100
|
+
}>, nextContext: any): void;
|
|
101
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
102
|
+
pageRows: import("../types").RowType[];
|
|
103
|
+
}>, nextContext: any): void;
|
|
104
|
+
};
|
|
105
|
+
getDerivedStateFromProps(props: Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">, state: {
|
|
106
|
+
pageRows: import("../types").RowType[];
|
|
107
|
+
}): {
|
|
108
|
+
pageRows: import("../types").RowType[];
|
|
109
|
+
};
|
|
110
|
+
contextType?: React.Context<any> | undefined;
|
|
111
|
+
};
|
|
112
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SpinnerSizeType } from '../types';
|
|
3
|
+
export interface LoadingContainerAdvancedProps {
|
|
4
|
+
children: React.ReactElement<any>;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
spinnerSize?: SpinnerSizeType;
|
|
7
|
+
contentsOpacity: number;
|
|
8
|
+
targetRef?: () => HTMLDivElement | undefined;
|
|
9
|
+
testId?: string;
|
|
10
|
+
}
|
|
11
|
+
export default class LoadingContainerAdvanced extends React.Component<LoadingContainerAdvancedProps, {}> {
|
|
12
|
+
children?: HTMLElement;
|
|
13
|
+
spinnerRef?: HTMLDivElement;
|
|
14
|
+
static defaultProps: {
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
spinnerSize: string;
|
|
17
|
+
contentsOpacity: number;
|
|
18
|
+
};
|
|
19
|
+
componentDidMount: () => void;
|
|
20
|
+
UNSAFE_componentWillReceiveProps: (nextProps: LoadingContainerAdvancedProps) => void;
|
|
21
|
+
componentDidUpdate: () => void;
|
|
22
|
+
componentWillUnmount: () => void;
|
|
23
|
+
getTargetNode: (nextProps?: LoadingContainerAdvancedProps) => Element | Text | null;
|
|
24
|
+
getThisNode: () => Element | Text | null;
|
|
25
|
+
getSpinnerNode: () => Element | Text | null;
|
|
26
|
+
hasTargetNode: (nextProps?: LoadingContainerAdvancedProps | undefined) => boolean;
|
|
27
|
+
isVerticallyVisible: (elementRect: {
|
|
28
|
+
top: number;
|
|
29
|
+
bottom: number;
|
|
30
|
+
}, viewportHeight: number) => boolean;
|
|
31
|
+
isFullyVerticallyVisible: (elementRect: {
|
|
32
|
+
top: number;
|
|
33
|
+
bottom: number;
|
|
34
|
+
}, viewportHeight: number) => boolean;
|
|
35
|
+
attachListeners(): void;
|
|
36
|
+
detachListeners(): void;
|
|
37
|
+
handleResize: () => void;
|
|
38
|
+
handleScroll: () => void;
|
|
39
|
+
translateSpinner: (spinnerNode: HTMLElement, transformY: number, isFixed?: boolean | undefined) => void;
|
|
40
|
+
updateTargetAppearance: () => void;
|
|
41
|
+
updateSpinnerPosition(): void;
|
|
42
|
+
render(): JSX.Element;
|
|
43
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SpinnerSizeType } from '../types';
|
|
3
|
+
interface LoadingContainerProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
spinnerSize?: SpinnerSizeType;
|
|
7
|
+
contentsOpacity: number;
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
export default class LoadingContainer extends React.Component<LoadingContainerProps> {
|
|
11
|
+
static defaultProps: {
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
spinnerSize: string;
|
|
14
|
+
contentsOpacity: number;
|
|
15
|
+
};
|
|
16
|
+
render(): JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import type { I18nShape } from '../types';
|
|
4
|
+
interface ManagedPaginationProps {
|
|
5
|
+
value?: number;
|
|
6
|
+
onChange: (newValue: any, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
7
|
+
total: number;
|
|
8
|
+
i18n?: I18nShape;
|
|
9
|
+
testId?: string;
|
|
10
|
+
}
|
|
11
|
+
export default class ManagedPagination extends React.Component<ManagedPaginationProps> {
|
|
12
|
+
onChange: (_event: any, newValue: any, analyticsEvent?: UIAnalyticsEvent | undefined) => void;
|
|
13
|
+
render(): JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export {};
|