@atlaskit/dynamic-table 14.9.1 → 14.9.2

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 (38) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/components/stateless.js +1 -1
  3. package/dist/cjs/version.json +1 -1
  4. package/dist/es2019/components/stateless.js +1 -1
  5. package/dist/es2019/version.json +1 -1
  6. package/dist/esm/components/stateless.js +1 -1
  7. package/dist/esm/version.json +1 -1
  8. package/dist/types-ts4.5/components/body.d.ts +112 -0
  9. package/dist/types-ts4.5/components/loading-container-advanced.d.ts +43 -0
  10. package/dist/types-ts4.5/components/loading-container.d.ts +18 -0
  11. package/dist/types-ts4.5/components/managed-pagination.d.ts +15 -0
  12. package/dist/types-ts4.5/components/rankable/body.d.ts +122 -0
  13. package/dist/types-ts4.5/components/rankable/table-cell.d.ts +14 -0
  14. package/dist/types-ts4.5/components/rankable/table-head-cell.d.ts +5 -0
  15. package/dist/types-ts4.5/components/rankable/table-row.d.ts +18 -0
  16. package/dist/types-ts4.5/components/stateful.d.ts +60 -0
  17. package/dist/types-ts4.5/components/stateless.d.ts +58 -0
  18. package/dist/types-ts4.5/components/table-head-cell.d.ts +19 -0
  19. package/dist/types-ts4.5/components/table-head.d.ts +18 -0
  20. package/dist/types-ts4.5/components/table-row.d.ts +11 -0
  21. package/dist/types-ts4.5/hoc/with-dimensions.d.ts +12 -0
  22. package/dist/types-ts4.5/hoc/with-sorted-page-rows.d.ts +117 -0
  23. package/dist/types-ts4.5/index.d.ts +2 -0
  24. package/dist/types-ts4.5/internal/constants.d.ts +5 -0
  25. package/dist/types-ts4.5/internal/helpers.d.ts +7 -0
  26. package/dist/types-ts4.5/styled/constants.d.ts +17 -0
  27. package/dist/types-ts4.5/styled/dynamic-table.d.ts +20 -0
  28. package/dist/types-ts4.5/styled/empty-body.d.ts +13 -0
  29. package/dist/types-ts4.5/styled/loading-container-advanced.d.ts +14 -0
  30. package/dist/types-ts4.5/styled/loading-container.d.ts +14 -0
  31. package/dist/types-ts4.5/styled/rankable/table-cell.d.ts +9 -0
  32. package/dist/types-ts4.5/styled/rankable/table-row.d.ts +13 -0
  33. package/dist/types-ts4.5/styled/table-cell.d.ts +4 -0
  34. package/dist/types-ts4.5/styled/table-head.d.ts +18 -0
  35. package/dist/types-ts4.5/styled/table-row.d.ts +10 -0
  36. package/dist/types-ts4.5/theme.d.ts +22 -0
  37. package/dist/types-ts4.5/types.d.ts +345 -0
  38. package/package.json +2 -2
@@ -0,0 +1,117 @@
1
+ import React from 'react';
2
+ import { HeadType, RowType, SortOrderType } from '../types';
3
+ export interface TableProps {
4
+ head?: HeadType;
5
+ page?: number;
6
+ rows?: Array<RowType>;
7
+ rowsPerPage?: number;
8
+ sortKey?: string;
9
+ sortOrder?: SortOrderType;
10
+ onPageRowsUpdate?: (pageRows: Array<RowType>) => void;
11
+ }
12
+ export interface WithSortedPageRowsProps {
13
+ pageRows: Array<RowType>;
14
+ isTotalPagesControlledExternally?: boolean;
15
+ }
16
+ export default function withSortedPageRows<WrappedComponentProps extends WithSortedPageRowsProps & TableProps>(WrappedComponent: React.ComponentType<WrappedComponentProps>): {
17
+ new (props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>): {
18
+ state: {
19
+ pageRows: never[];
20
+ };
21
+ componentDidMount(): void;
22
+ componentDidUpdate(_prevProps: Omit<WrappedComponentProps & TableProps, "pageRows">, prevState: {
23
+ pageRows: Array<RowType>;
24
+ }): void;
25
+ render(): JSX.Element;
26
+ context: any;
27
+ setState<K extends "pageRows">(state: {
28
+ pageRows: Array<RowType>;
29
+ } | ((prevState: Readonly<{
30
+ pageRows: Array<RowType>;
31
+ }>, props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>) => {
32
+ pageRows: Array<RowType>;
33
+ } | Pick<{
34
+ pageRows: Array<RowType>;
35
+ }, K> | null) | Pick<{
36
+ pageRows: Array<RowType>;
37
+ }, K> | null, callback?: (() => void) | undefined): void;
38
+ forceUpdate(callBack?: (() => void) | undefined): void;
39
+ readonly props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">> & Readonly<{
40
+ children?: React.ReactNode;
41
+ }>;
42
+ refs: {
43
+ [key: string]: React.ReactInstance;
44
+ };
45
+ shouldComponentUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
46
+ pageRows: Array<RowType>;
47
+ }>, nextContext: any): boolean;
48
+ componentWillUnmount?(): void;
49
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
50
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, prevState: Readonly<{
51
+ pageRows: Array<RowType>;
52
+ }>): any;
53
+ componentWillMount?(): void;
54
+ UNSAFE_componentWillMount?(): void;
55
+ componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextContext: any): void;
56
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextContext: any): void;
57
+ componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
58
+ pageRows: Array<RowType>;
59
+ }>, nextContext: any): void;
60
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
61
+ pageRows: Array<RowType>;
62
+ }>, nextContext: any): void;
63
+ };
64
+ new (props: Omit<WrappedComponentProps & TableProps, "pageRows">, context?: any): {
65
+ state: {
66
+ pageRows: never[];
67
+ };
68
+ componentDidMount(): void;
69
+ componentDidUpdate(_prevProps: Omit<WrappedComponentProps & TableProps, "pageRows">, prevState: {
70
+ pageRows: Array<RowType>;
71
+ }): void;
72
+ render(): JSX.Element;
73
+ context: any;
74
+ setState<K extends "pageRows">(state: {
75
+ pageRows: Array<RowType>;
76
+ } | ((prevState: Readonly<{
77
+ pageRows: Array<RowType>;
78
+ }>, props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>) => {
79
+ pageRows: Array<RowType>;
80
+ } | Pick<{
81
+ pageRows: Array<RowType>;
82
+ }, K> | null) | Pick<{
83
+ pageRows: Array<RowType>;
84
+ }, K> | null, callback?: (() => void) | undefined): void;
85
+ forceUpdate(callBack?: (() => void) | undefined): void;
86
+ readonly props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">> & Readonly<{
87
+ children?: React.ReactNode;
88
+ }>;
89
+ refs: {
90
+ [key: string]: React.ReactInstance;
91
+ };
92
+ shouldComponentUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
93
+ pageRows: Array<RowType>;
94
+ }>, nextContext: any): boolean;
95
+ componentWillUnmount?(): void;
96
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
97
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, prevState: Readonly<{
98
+ pageRows: Array<RowType>;
99
+ }>): any;
100
+ componentWillMount?(): void;
101
+ UNSAFE_componentWillMount?(): void;
102
+ componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextContext: any): void;
103
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextContext: any): void;
104
+ componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
105
+ pageRows: Array<RowType>;
106
+ }>, nextContext: any): void;
107
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
108
+ pageRows: Array<RowType>;
109
+ }>, nextContext: any): void;
110
+ };
111
+ getDerivedStateFromProps(props: Omit<WrappedComponentProps & TableProps, 'pageRows'>, state: {
112
+ pageRows: Array<RowType>;
113
+ }): {
114
+ pageRows: RowType[];
115
+ };
116
+ contextType?: React.Context<any> | undefined;
117
+ };
@@ -0,0 +1,2 @@
1
+ export { default } from './components/stateful';
2
+ export { default as DynamicTableStateless } from './components/stateless';
@@ -0,0 +1,5 @@
1
+ export declare const ASC = "ASC";
2
+ export declare const DESC = "DESC";
3
+ export declare const SMALL = "small";
4
+ export declare const LARGE = "large";
5
+ export declare const LOADING_CONTENTS_OPACITY = 0.22;
@@ -0,0 +1,7 @@
1
+ import { HeadType, RankEnd, RowType } from '../types';
2
+ export declare const getPageRows: (allRows: Array<RowType>, pageNumber?: number, rowsPerPage?: number) => Array<RowType>;
3
+ export declare const assertIsSortable: (head?: HeadType) => void;
4
+ export declare const validateSortKey: (sortKey?: string, head?: HeadType) => void;
5
+ export declare const inlineStylesIfRanking: (isRanking: boolean, width: number, height?: number) => {};
6
+ export declare const computeIndex: (index: number, page: number, rowsPerPage?: number) => number;
7
+ export declare const reorderRows: (rankEnd: RankEnd, rows: RowType[], page?: number, rowsPerPage?: number) => RowType[];
@@ -0,0 +1,17 @@
1
+ import { LegacyRef, ReactNode } from 'react';
2
+ export interface TruncateStyleProps {
3
+ width?: number;
4
+ isFixedSize?: boolean;
5
+ shouldTruncate?: boolean;
6
+ children?: ReactNode;
7
+ testId?: string;
8
+ innerRef?: LegacyRef<HTMLTableCellElement | HTMLTableRowElement> | undefined;
9
+ className?: string;
10
+ }
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;
14
+ export declare const getTruncationStyleVars: ({ width }: TruncateStyleProps) => {
15
+ "--local-dynamic-table-width": string;
16
+ } | undefined;
17
+ export declare const cellStyles: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,20 @@
1
+ /** @jsx jsx */
2
+ import { FC, HTMLProps, ReactNode } from 'react';
3
+ export type TableProps = HTMLProps<HTMLTableElement> & {
4
+ isFixedSize?: boolean;
5
+ hasDataRow: boolean;
6
+ testId?: string;
7
+ };
8
+ export declare const tableRowCSSVars: {
9
+ CSS_VAR_HOVER_BACKGROUND: string;
10
+ CSS_VAR_HIGHLIGHTED_BACKGROUND: string;
11
+ CSS_VAR_HOVER_HIGHLIGHTED_BACKGROUND: string;
12
+ CSS_VAR_ROW_FOCUS_OUTLINE: string;
13
+ };
14
+ export declare const Table: import("react").ForwardRefExoticComponent<Pick<TableProps, "headers" | "method" | "rows" | "isFixedSize" | "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" | "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>>;
15
+ export declare const Caption: FC<{
16
+ children: ReactNode;
17
+ }>;
18
+ export declare const PaginationWrapper: FC<{
19
+ children: ReactNode;
20
+ }>;
@@ -0,0 +1,13 @@
1
+ /** @jsx jsx */
2
+ import { FC, ReactNode } from 'react';
3
+ type EmptyViewWithFixedHeightProps = {
4
+ testId?: string;
5
+ children?: ReactNode;
6
+ };
7
+ type EmptyViewContainerProps = {
8
+ testId?: string;
9
+ children: ReactNode;
10
+ };
11
+ export declare const EmptyViewWithFixedHeight: FC<EmptyViewWithFixedHeightProps>;
12
+ export declare const EmptyViewContainer: FC<EmptyViewContainerProps>;
13
+ export {};
@@ -0,0 +1,14 @@
1
+ /** @jsx jsx */
2
+ import { FC, HTMLProps, ReactNode } from 'react';
3
+ import { jsx } from '@emotion/react';
4
+ type ContainerProps = HTMLProps<HTMLDivElement> & {
5
+ testId?: string;
6
+ };
7
+ export declare const Container: (props: ContainerProps) => jsx.JSX.Element;
8
+ type SpinnerBackdropProps = {
9
+ testId?: string;
10
+ children: ReactNode;
11
+ };
12
+ export declare const SpinnerBackdrop: FC<SpinnerBackdropProps>;
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>>;
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /** @jsx jsx */
2
+ import { FC, ReactNode } from 'react';
3
+ export declare const CSS_VAR_CONTENTS_OPACITY = "--contents-opacity";
4
+ type ContainerProps = {
5
+ testId?: string;
6
+ children: ReactNode;
7
+ };
8
+ type LoadingContainerProps = ContainerProps & {
9
+ contentsOpacity: number;
10
+ };
11
+ export declare const Container: FC<ContainerProps>;
12
+ export declare const ContentsContainer: FC<LoadingContainerProps>;
13
+ export declare const SpinnerContainer: FC<ContainerProps>;
14
+ export {};
@@ -0,0 +1,9 @@
1
+ /** @jsx jsx */
2
+ import { FC, HTMLProps, ReactNode } from 'react';
3
+ import { TruncateStyleProps } from '../constants';
4
+ type RankableTableBodyCellProps = HTMLProps<HTMLTableCellElement | HTMLTableRowElement> & TruncateStyleProps & {
5
+ isRanking?: boolean;
6
+ children?: ReactNode;
7
+ };
8
+ export declare const RankableTableBodyCell: FC<RankableTableBodyCellProps>;
9
+ export {};
@@ -0,0 +1,13 @@
1
+ /** @jsx jsx */
2
+ import { HTMLAttributes } from 'react';
3
+ import { ITableRowProps } from '../table-row';
4
+ export type RankableTableBodyRowProps = HTMLAttributes<HTMLTableRowElement> & ITableRowProps & {
5
+ isRanking?: boolean;
6
+ isRankingItem?: boolean;
7
+ testId?: string;
8
+ };
9
+ export declare const RankableTableBodyRow: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLTableRowElement> & ITableRowProps & {
10
+ isRanking?: boolean | undefined;
11
+ isRankingItem?: boolean | undefined;
12
+ testId?: string | undefined;
13
+ } & import("react").RefAttributes<HTMLTableRowElement>>;
@@ -0,0 +1,4 @@
1
+ /** @jsx jsx */
2
+ import { FC } from 'react';
3
+ import { TruncateStyleProps } from './constants';
4
+ export declare const TableBodyCell: FC<TruncateStyleProps>;
@@ -0,0 +1,18 @@
1
+ /** @jsx jsx */
2
+ import { FC, HTMLProps, ReactNode } from 'react';
3
+ import { SortOrderType } from '../types';
4
+ import { TruncateStyleProps } from './constants';
5
+ interface HeadProps {
6
+ isRanking?: boolean;
7
+ children: ReactNode;
8
+ testId?: string;
9
+ }
10
+ export declare const Head: FC<HeadProps>;
11
+ type HeadCellProps = TruncateStyleProps & HTMLProps<HTMLTableCellElement> & {
12
+ onClick?: () => void;
13
+ isSortable?: boolean;
14
+ sortOrder?: SortOrderType;
15
+ testId?: string;
16
+ };
17
+ export declare const HeadCell: import("react").ForwardRefExoticComponent<Pick<HeadCellProps, "headers" | "method" | "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" | "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" | "innerRef"> & import("react").RefAttributes<HTMLTableCellElement>>;
18
+ export {};
@@ -0,0 +1,10 @@
1
+ /** @jsx jsx */
2
+ import { CSSProperties, ReactNode } from 'react';
3
+ export type ITableRowProps = {
4
+ isHighlighted?: boolean;
5
+ children?: ReactNode;
6
+ style?: CSSProperties;
7
+ className?: string;
8
+ testId?: string;
9
+ };
10
+ export declare const TableBodyRow: import("react").ForwardRefExoticComponent<ITableRowProps & import("react").RefAttributes<HTMLTableRowElement>>;
@@ -0,0 +1,22 @@
1
+ export declare const MSThemeColors: {
2
+ Background: string;
3
+ Text: string;
4
+ SelectedBackground: string;
5
+ SelectedText: string;
6
+ };
7
+ export declare const arrow: {
8
+ defaultColor: "var(--ds-icon-disabled)";
9
+ selectedColor: "var(--ds-icon-subtle)";
10
+ };
11
+ export declare const row: {
12
+ focusOutline: "var(--ds-border-focused)";
13
+ highlightedBackground: "var(--ds-background-selected)";
14
+ hoverBackground: "var(--ds-background-neutral-subtle-hovered)";
15
+ hoverHighlightedBackground: "var(--ds-background-selected-hovered)";
16
+ };
17
+ export declare const head: {
18
+ textColor: "var(--ds-text-subtlest)";
19
+ };
20
+ export declare const tableBorder: {
21
+ borderColor: "var(--ds-border)";
22
+ };