@atlaskit/dynamic-table 14.8.12 → 14.8.14
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 +13 -0
- package/dist/cjs/components/stateless.js +1 -1
- package/dist/cjs/styled/empty-body.js +2 -0
- package/dist/cjs/styled/table-head.js +8 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/stateless.js +1 -1
- package/dist/es2019/styled/dynamic-table.js +2 -0
- package/dist/es2019/styled/empty-body.js +2 -0
- package/dist/es2019/styled/table-head.js +9 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/stateless.js +1 -1
- package/dist/esm/styled/dynamic-table.js +2 -0
- package/dist/esm/styled/empty-body.js +2 -0
- package/dist/esm/styled/table-head.js +9 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/styled/dynamic-table.d.ts +7 -3
- package/dist/types/styled/empty-body.d.ts +10 -5
- package/dist/types/styled/loading-container-advanced.d.ts +5 -3
- package/dist/types/styled/loading-container.d.ts +8 -9
- package/dist/types/styled/rankable/row-placeholder.d.ts +4 -2
- package/dist/types/styled/rankable/table-cell.d.ts +2 -1
- package/dist/types/styled/table-head.d.ts +2 -1
- package/package.json +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/dynamic-table
|
|
2
2
|
|
|
3
|
+
## 14.8.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`df9b2633fe4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/df9b2633fe4) - [ux] Adds `aria-sort` to sortable headers when being used to sort.
|
|
8
|
+
|
|
9
|
+
## 14.8.13
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) - Upgrades component types to support React 18.
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 14.8.12
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -29,7 +29,7 @@ var _tableHead = _interopRequireDefault(require("./table-head"));
|
|
|
29
29
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
30
30
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
31
31
|
var packageName = "@atlaskit/dynamic-table";
|
|
32
|
-
var packageVersion = "14.8.
|
|
32
|
+
var packageVersion = "14.8.14";
|
|
33
33
|
function toggleSortOrder(currentSortOrder) {
|
|
34
34
|
switch (currentSortOrder) {
|
|
35
35
|
case _constants.DESC:
|
|
@@ -9,6 +9,8 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
9
9
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
10
10
|
/** @jsx jsx */
|
|
11
11
|
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
13
|
+
|
|
12
14
|
var fixedHeightStyles = (0, _react.css)({
|
|
13
15
|
height: "".concat((0, _constants.gridSize)() * 18, "px")
|
|
14
16
|
});
|
|
@@ -134,7 +134,15 @@ var HeadCell = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
|
134
134
|
})), {}, (0, _defineProperty2.default)({}, CSS_VAR_TEXT_COLOR, _theme.head.textColor));
|
|
135
135
|
var isASC = sortOrder === _constants2.ASC;
|
|
136
136
|
var isDESC = sortOrder === _constants2.DESC;
|
|
137
|
+
var getFormattedSortOrder = function getFormattedSortOrder() {
|
|
138
|
+
if (isASC) {
|
|
139
|
+
return 'ascending';
|
|
140
|
+
} else if (isDESC) {
|
|
141
|
+
return 'descending';
|
|
142
|
+
}
|
|
143
|
+
};
|
|
137
144
|
return (0, _react2.jsx)("th", (0, _extends2.default)({
|
|
145
|
+
"aria-sort": getFormattedSortOrder(),
|
|
138
146
|
style: mergedStyles,
|
|
139
147
|
css: [headCellStyles, onClick && onClickStyles, _constants3.truncationWidthStyles, isFixedSize && shouldTruncate && _constants3.fixedSizeTruncateStyles, isFixedSize && _constants3.overflowTruncateStyles, isSortable && baseStyles, isASC && ascendingStyles, isDESC && descendingStyles],
|
|
140
148
|
onClick: onClick,
|
package/dist/cjs/version.json
CHANGED
|
@@ -14,7 +14,7 @@ import ManagedPagination from './managed-pagination';
|
|
|
14
14
|
import RankableTableBody from './rankable/body';
|
|
15
15
|
import TableHead from './table-head';
|
|
16
16
|
const packageName = "@atlaskit/dynamic-table";
|
|
17
|
-
const packageVersion = "14.8.
|
|
17
|
+
const packageVersion = "14.8.14";
|
|
18
18
|
function toggleSortOrder(currentSortOrder) {
|
|
19
19
|
switch (currentSortOrder) {
|
|
20
20
|
case DESC:
|
|
@@ -3,6 +3,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
6
8
|
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
7
9
|
import { row, tableBorder } from '../theme';
|
|
8
10
|
const gridSize = getGridSize();
|
|
@@ -4,6 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { B100, N30A } from '@atlaskit/theme/colors';
|
|
7
|
+
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
7
8
|
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
8
9
|
import { ASC, DESC } from '../internal/constants';
|
|
9
10
|
import { arrow, head, MSThemeColors, tableBorder } from '../theme';
|
|
@@ -128,7 +129,15 @@ export const HeadCell = /*#__PURE__*/forwardRef(({
|
|
|
128
129
|
};
|
|
129
130
|
const isASC = sortOrder === ASC;
|
|
130
131
|
const isDESC = sortOrder === DESC;
|
|
132
|
+
const getFormattedSortOrder = () => {
|
|
133
|
+
if (isASC) {
|
|
134
|
+
return 'ascending';
|
|
135
|
+
} else if (isDESC) {
|
|
136
|
+
return 'descending';
|
|
137
|
+
}
|
|
138
|
+
};
|
|
131
139
|
return jsx("th", _extends({
|
|
140
|
+
"aria-sort": getFormattedSortOrder(),
|
|
132
141
|
style: mergedStyles,
|
|
133
142
|
css: [headCellStyles, onClick && onClickStyles, truncationWidthStyles, isFixedSize && shouldTruncate && fixedSizeTruncateStyles, isFixedSize && overflowTruncateStyles, isSortable && baseStyles, isASC && ascendingStyles, isDESC && descendingStyles],
|
|
134
143
|
onClick: onClick,
|
package/dist/es2019/version.json
CHANGED
|
@@ -22,7 +22,7 @@ import ManagedPagination from './managed-pagination';
|
|
|
22
22
|
import RankableTableBody from './rankable/body';
|
|
23
23
|
import TableHead from './table-head';
|
|
24
24
|
var packageName = "@atlaskit/dynamic-table";
|
|
25
|
-
var packageVersion = "14.8.
|
|
25
|
+
var packageVersion = "14.8.14";
|
|
26
26
|
function toggleSortOrder(currentSortOrder) {
|
|
27
27
|
switch (currentSortOrder) {
|
|
28
28
|
case DESC:
|
|
@@ -6,6 +6,8 @@ var _excluded = ["isFixedSize", "hasDataRow", "children"];
|
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import { forwardRef } from 'react';
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
9
11
|
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
10
12
|
import { row, tableBorder } from '../theme';
|
|
11
13
|
var gridSize = getGridSize();
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
5
7
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
6
8
|
var fixedHeightStyles = css({
|
|
7
9
|
height: "".concat(gridSize() * 18, "px")
|
|
@@ -10,6 +10,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
10
|
import { forwardRef } from 'react';
|
|
11
11
|
import { css, jsx } from '@emotion/react';
|
|
12
12
|
import { B100, N30A } from '@atlaskit/theme/colors';
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
13
14
|
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
14
15
|
import { ASC, DESC } from '../internal/constants';
|
|
15
16
|
import { arrow, head, MSThemeColors, tableBorder } from '../theme';
|
|
@@ -128,7 +129,15 @@ export var HeadCell = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
128
129
|
})), {}, _defineProperty({}, CSS_VAR_TEXT_COLOR, head.textColor));
|
|
129
130
|
var isASC = sortOrder === ASC;
|
|
130
131
|
var isDESC = sortOrder === DESC;
|
|
132
|
+
var getFormattedSortOrder = function getFormattedSortOrder() {
|
|
133
|
+
if (isASC) {
|
|
134
|
+
return 'ascending';
|
|
135
|
+
} else if (isDESC) {
|
|
136
|
+
return 'descending';
|
|
137
|
+
}
|
|
138
|
+
};
|
|
131
139
|
return jsx("th", _extends({
|
|
140
|
+
"aria-sort": getFormattedSortOrder(),
|
|
132
141
|
style: mergedStyles,
|
|
133
142
|
css: [headCellStyles, onClick && onClickStyles, truncationWidthStyles, isFixedSize && shouldTruncate && fixedSizeTruncateStyles, isFixedSize && overflowTruncateStyles, isSortable && baseStyles, isASC && ascendingStyles, isDESC && descendingStyles],
|
|
134
143
|
onClick: onClick,
|
package/dist/esm/version.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { FC, HTMLProps } from 'react';
|
|
2
|
+
import { FC, HTMLProps, ReactNode } from 'react';
|
|
3
3
|
export declare type TableProps = HTMLProps<HTMLTableElement> & {
|
|
4
4
|
isFixedSize?: boolean;
|
|
5
5
|
hasDataRow: boolean;
|
|
@@ -11,5 +11,9 @@ export declare const tableRowCSSVars: {
|
|
|
11
11
|
CSS_VAR_ROW_FOCUS_OUTLINE: string;
|
|
12
12
|
};
|
|
13
13
|
export declare const Table: import("react").ForwardRefExoticComponent<Pick<TableProps, "headers" | "method" | "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" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "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
|
-
export declare const Caption: FC
|
|
15
|
-
|
|
14
|
+
export declare const Caption: FC<{
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const PaginationWrapper: FC<{
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
}>;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
|
+
declare type EmptyViewWithFixedHeightProps = {
|
|
4
4
|
testId?: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
declare type EmptyViewContainerProps = {
|
|
7
8
|
testId?: string;
|
|
8
|
-
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare const EmptyViewWithFixedHeight: FC<EmptyViewWithFixedHeightProps>;
|
|
12
|
+
export declare const EmptyViewContainer: FC<EmptyViewContainerProps>;
|
|
13
|
+
export {};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { FC, HTMLProps } from 'react';
|
|
2
|
+
import { FC, HTMLProps, ReactNode } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
declare type ContainerProps = HTMLProps<HTMLDivElement> & {
|
|
5
5
|
testId?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare const Container: (props: ContainerProps) => jsx.JSX.Element;
|
|
8
|
-
|
|
8
|
+
declare type SpinnerBackdropProps = {
|
|
9
9
|
testId?: string;
|
|
10
|
-
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export declare const SpinnerBackdrop: FC<SpinnerBackdropProps>;
|
|
11
13
|
export declare const SpinnerContainer: import("react").ForwardRefExoticComponent<Pick<HTMLProps<HTMLDivElement>, "headers" | "method" | "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" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "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>>;
|
|
12
14
|
export {};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { FC } from 'react';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
3
|
export declare const CSS_VAR_CONTENTS_OPACITY = "--contents-opacity";
|
|
4
|
-
declare type
|
|
5
|
-
contentsOpacity: number;
|
|
4
|
+
declare type ContainerProps = {
|
|
6
5
|
testId?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
8
|
+
declare type LoadingContainerProps = ContainerProps & {
|
|
9
|
+
contentsOpacity: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const Container: FC<ContainerProps>;
|
|
11
12
|
export declare const ContentsContainer: FC<LoadingContainerProps>;
|
|
12
|
-
export declare const SpinnerContainer: FC<
|
|
13
|
-
testId?: string;
|
|
14
|
-
}>;
|
|
13
|
+
export declare const SpinnerContainer: FC<ContainerProps>;
|
|
15
14
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { FC, HTMLProps } from 'react';
|
|
2
|
+
import { FC, HTMLProps, ReactNode } from 'react';
|
|
3
3
|
import { TruncateStyleProps } from '../constants';
|
|
4
4
|
declare type RankableTableBodyCellProps = HTMLProps<HTMLTableCellElement | HTMLTableRowElement> & TruncateStyleProps & {
|
|
5
5
|
isRanking?: boolean;
|
|
6
|
+
children?: ReactNode;
|
|
6
7
|
};
|
|
7
8
|
export declare const RankableTableBodyCell: FC<RankableTableBodyCellProps>;
|
|
8
9
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { FC, HTMLProps } from 'react';
|
|
2
|
+
import { FC, HTMLProps, ReactNode } from 'react';
|
|
3
3
|
import { SortOrderType } from '../types';
|
|
4
4
|
import { TruncateStyleProps } from './constants';
|
|
5
5
|
interface HeadProps {
|
|
6
6
|
isRanking?: boolean;
|
|
7
|
+
children: ReactNode;
|
|
7
8
|
}
|
|
8
9
|
export declare const Head: FC<HeadProps>;
|
|
9
10
|
declare type HeadCellProps = TruncateStyleProps & HTMLProps<HTMLTableCellElement> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dynamic-table",
|
|
3
|
-
"version": "14.8.
|
|
3
|
+
"version": "14.8.14",
|
|
4
4
|
"description": "A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"atlaskit:src": "src/index.tsx",
|
|
18
18
|
"atlassian": {
|
|
19
|
-
"disableProductCI": true,
|
|
20
19
|
"team": "Design System Team",
|
|
21
20
|
"deprecatedAutoEntryPoints": true,
|
|
22
21
|
"releaseModel": "scheduled",
|
|
@@ -29,8 +28,8 @@
|
|
|
29
28
|
"@atlaskit/analytics-next": "^9.0.0",
|
|
30
29
|
"@atlaskit/ds-lib": "^2.1.0",
|
|
31
30
|
"@atlaskit/pagination": "^14.2.0",
|
|
32
|
-
"@atlaskit/spinner": "^15.
|
|
33
|
-
"@atlaskit/theme": "^12.
|
|
31
|
+
"@atlaskit/spinner": "^15.4.0",
|
|
32
|
+
"@atlaskit/theme": "^12.3.0",
|
|
34
33
|
"@atlaskit/tokens": "^1.2.0",
|
|
35
34
|
"@babel/runtime": "^7.0.0",
|
|
36
35
|
"@emotion/react": "^11.7.1",
|
|
@@ -41,10 +40,10 @@
|
|
|
41
40
|
"react-dom": "^16.8.0"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
|
-
"@atlaskit/avatar": "^21.
|
|
45
|
-
"@atlaskit/button": "^16.
|
|
43
|
+
"@atlaskit/avatar": "^21.2.0",
|
|
44
|
+
"@atlaskit/button": "^16.6.0",
|
|
46
45
|
"@atlaskit/docs": "*",
|
|
47
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
46
|
+
"@atlaskit/dropdown-menu": "^11.7.0",
|
|
48
47
|
"@atlaskit/ssr": "*",
|
|
49
48
|
"@atlaskit/toggle": "^12.5.0",
|
|
50
49
|
"@atlaskit/visual-regression": "*",
|