@entur/table 4.5.2 → 4.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.5.5](https://bitbucket.org/enturas/design-system/compare/@entur/table@4.5.4...@entur/table@4.5.5) (2022-03-01)
7
+
8
+ **Note:** Version bump only for package @entur/table
9
+
10
+ ## [4.5.4](https://bitbucket.org/enturas/design-system/compare/@entur/table@4.5.3...@entur/table@4.5.4) (2022-02-09)
11
+
12
+ **Note:** Version bump only for package @entur/table
13
+
14
+ ## [4.5.3](https://bitbucket.org/enturas/design-system/compare/@entur/table@4.5.2...@entur/table@4.5.3) (2022-01-21)
15
+
16
+ **Note:** Version bump only for package @entur/table
17
+
6
18
  ## [4.5.2](https://bitbucket.org/enturas/design-system/compare/@entur/table@4.5.1...@entur/table@4.5.2) (2022-01-05)
7
19
 
8
20
  **Note:** Version bump only for package @entur/table
@@ -9,4 +9,4 @@ export declare type DataCellProps = {
9
9
  /** Viser en status-sirkel for DataCell */
10
10
  status?: 'positive' | 'negative' | 'neutral';
11
11
  } & React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>;
12
- export declare const DataCell: React.ForwardRefExoticComponent<Pick<DataCellProps, "className" | "padding" | "status" | "children" | "key" | "align" | "colSpan" | "headers" | "rowSpan" | "scope" | "abbr" | "height" | "width" | "valign" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "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"> & React.RefAttributes<HTMLTableDataCellElement>>;
12
+ export declare const DataCell: React.ForwardRefExoticComponent<Pick<DataCellProps, "padding" | "status" | "key" | keyof React.TdHTMLAttributes<HTMLTableDataCellElement>> & React.RefAttributes<HTMLTableDataCellElement>>;
@@ -19,4 +19,4 @@ export declare type HeaderCellProps = {
19
19
  /** Navnet det skal sorteres på. Benyttes via useSortableTable */
20
20
  name?: string;
21
21
  } & React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableCellElement>, HTMLTableCellElement>;
22
- export declare const HeaderCell: React.ForwardRefExoticComponent<Pick<HeaderCellProps, "className" | "children" | "name" | "sortable" | "sortConfig" | "padding" | "sortableButtonProps" | "key" | "align" | "colSpan" | "headers" | "rowSpan" | "scope" | "abbr" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "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"> & React.RefAttributes<HTMLTableCellElement>>;
22
+ export declare const HeaderCell: React.ForwardRefExoticComponent<Pick<HeaderCellProps, "name" | "sortable" | "sortConfig" | "padding" | "sortableButtonProps" | "key" | keyof React.ThHTMLAttributes<HTMLTableCellElement>> & React.RefAttributes<HTMLTableCellElement>>;
package/dist/Table.d.ts CHANGED
@@ -14,4 +14,4 @@ export declare type TableProps = {
14
14
  children: React.ReactNode;
15
15
  [key: string]: any;
16
16
  };
17
- export declare const Table: React.ForwardRefExoticComponent<Pick<TableProps, React.ReactText> & React.RefAttributes<HTMLTableElement>>;
17
+ export declare const Table: React.ForwardRefExoticComponent<Pick<TableProps, keyof TableProps> & React.RefAttributes<HTMLTableElement>>;
@@ -6,4 +6,4 @@ export declare type TableBodyProps = {
6
6
  className?: string;
7
7
  ref?: React.Ref<HTMLTableSectionElement>;
8
8
  } & React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
9
- export declare const TableBody: React.ForwardRefExoticComponent<Pick<TableBodyProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "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"> & React.RefAttributes<HTMLTableSectionElement>>;
9
+ export declare const TableBody: React.ForwardRefExoticComponent<Pick<TableBodyProps, "key" | keyof React.HTMLAttributes<HTMLTableSectionElement>> & React.RefAttributes<HTMLTableSectionElement>>;
@@ -3,4 +3,4 @@ export declare type TableFooterProps = {
3
3
  /** Tabellrader */
4
4
  children: React.ReactNode;
5
5
  } & React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
6
- export declare const TableFooter: React.ForwardRefExoticComponent<Pick<TableFooterProps, "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "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"> & React.RefAttributes<HTMLTableSectionElement>>;
6
+ export declare const TableFooter: React.ForwardRefExoticComponent<Pick<TableFooterProps, "key" | keyof React.HTMLAttributes<HTMLTableSectionElement>> & React.RefAttributes<HTMLTableSectionElement>>;
@@ -5,4 +5,4 @@ export declare type TableHeadProps = {
5
5
  /** Esktra klassenavn */
6
6
  className?: string;
7
7
  } & React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
8
- export declare const TableHead: React.ForwardRefExoticComponent<Pick<TableHeadProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "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"> & React.RefAttributes<HTMLTableSectionElement>>;
8
+ export declare const TableHead: React.ForwardRefExoticComponent<Pick<TableHeadProps, "key" | keyof React.HTMLAttributes<HTMLTableSectionElement>> & React.RefAttributes<HTMLTableSectionElement>>;
@@ -18,4 +18,4 @@ export declare type TableRowProps = {
18
18
  error?: boolean;
19
19
  ref?: React.Ref<HTMLTableRowElement>;
20
20
  } & React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>;
21
- export declare const TableRow: React.ForwardRefExoticComponent<Pick<TableRowProps, "className" | "hover" | "active" | "error" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "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"> & React.RefAttributes<HTMLTableRowElement>>;
21
+ export declare const TableRow: React.ForwardRefExoticComponent<Pick<TableRowProps, "hover" | "active" | "error" | "key" | keyof React.HTMLAttributes<HTMLTableRowElement>> & React.RefAttributes<HTMLTableRowElement>>;
@@ -2,18 +2,21 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
-
7
5
  var utils = require('@entur/utils');
8
6
  var React = require('react');
9
- var React__default = _interopDefault(React);
10
- var classNames = _interopDefault(require('classnames'));
7
+ var classNames = require('classnames');
11
8
  var icons = require('@entur/icons');
12
- var get = _interopDefault(require('lodash.get'));
9
+ var get = require('lodash.get');
13
10
  var form = require('@entur/form');
14
11
  var tooltip = require('@entur/tooltip');
15
12
  var expand = require('@entur/expand');
16
13
 
14
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
+
16
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
17
+ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
18
+ var get__default = /*#__PURE__*/_interopDefaultLegacy(get);
19
+
17
20
  function _extends() {
18
21
  _extends = Object.assign || function (target) {
19
22
  for (var i = 1; i < arguments.length; i++) {
@@ -47,7 +50,8 @@ function _objectWithoutPropertiesLoose(source, excluded) {
47
50
  return target;
48
51
  }
49
52
 
50
- var Table = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
53
+ var _excluded$8 = ["className", "fixed", "spacing", "sortable"];
54
+ var Table = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
51
55
  var className = _ref.className,
52
56
  _ref$fixed = _ref.fixed,
53
57
  fixed = _ref$fixed === void 0 ? false : _ref$fixed,
@@ -55,10 +59,10 @@ var Table = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
55
59
  spacing = _ref$spacing === void 0 ? 'default' : _ref$spacing,
56
60
  _ref$sortable = _ref.sortable,
57
61
  sortable = _ref$sortable === void 0 ? false : _ref$sortable,
58
- rest = _objectWithoutPropertiesLoose(_ref, ["className", "fixed", "spacing", "sortable"]);
62
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$8);
59
63
 
60
- return React__default.createElement("table", Object.assign({
61
- className: classNames('eds-table', {
64
+ return React__default["default"].createElement("table", _extends({
65
+ className: classNames__default["default"]('eds-table', {
62
66
  'eds-table--fixed': fixed
63
67
  }, {
64
68
  'eds-table--middle': spacing === 'middle'
@@ -71,35 +75,38 @@ var Table = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
71
75
  }, rest));
72
76
  });
73
77
 
74
- var TableHead = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
78
+ var _excluded$7 = ["className"];
79
+ var TableHead = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
75
80
  var className = _ref.className,
76
- props = _objectWithoutPropertiesLoose(_ref, ["className"]);
81
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
77
82
 
78
- return React__default.createElement("thead", Object.assign({
79
- className: classNames('eds-table__head', className),
83
+ return React__default["default"].createElement("thead", _extends({
84
+ className: classNames__default["default"]('eds-table__head', className),
80
85
  ref: ref
81
86
  }, props));
82
87
  });
83
88
 
84
- var TableBody = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
89
+ var _excluded$6 = ["className"];
90
+ var TableBody = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
85
91
  var className = _ref.className,
86
- rest = _objectWithoutPropertiesLoose(_ref, ["className"]);
92
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
87
93
 
88
- return React__default.createElement("tbody", Object.assign({
89
- className: classNames('eds-table__body', className),
94
+ return React__default["default"].createElement("tbody", _extends({
95
+ className: classNames__default["default"]('eds-table__body', className),
90
96
  ref: ref
91
97
  }, rest));
92
98
  });
93
99
 
94
- var TableFooter = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
100
+ var TableFooter = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
95
101
  var props = _extends({}, _ref);
96
102
 
97
- return React__default.createElement("tfoot", Object.assign({
103
+ return React__default["default"].createElement("tfoot", _extends({
98
104
  ref: ref
99
105
  }, props));
100
106
  });
101
107
 
102
- var TableRow = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
108
+ var _excluded$5 = ["className", "hover", "active", "error"];
109
+ var TableRow = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
103
110
  var className = _ref.className,
104
111
  _ref$hover = _ref.hover,
105
112
  hover = _ref$hover === void 0 ? false : _ref$hover,
@@ -107,10 +114,10 @@ var TableRow = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
107
114
  active = _ref$active === void 0 ? false : _ref$active,
108
115
  _ref$error = _ref.error,
109
116
  error = _ref$error === void 0 ? false : _ref$error,
110
- rest = _objectWithoutPropertiesLoose(_ref, ["className", "hover", "active", "error"]);
117
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$5);
111
118
 
112
- return React__default.createElement("tr", Object.assign({
113
- className: classNames('eds-table__row', className, {
119
+ return React__default["default"].createElement("tr", _extends({
120
+ className: classNames__default["default"]('eds-table__row', className, {
114
121
  'eds-table__row--hover': hover,
115
122
  'eds-table__row--active': active,
116
123
  'eds-table__row--error': error
@@ -119,7 +126,8 @@ var TableRow = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
119
126
  }, rest));
120
127
  });
121
128
 
122
- var DataCell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
129
+ var _excluded$4 = ["className", "padding", "status"];
130
+ var DataCell = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
123
131
  var _classNames;
124
132
 
125
133
  var className = _ref.className,
@@ -127,15 +135,17 @@ var DataCell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
127
135
  padding = _ref$padding === void 0 ? 'default' : _ref$padding,
128
136
  _ref$status = _ref.status,
129
137
  status = _ref$status === void 0 ? undefined : _ref$status,
130
- rest = _objectWithoutPropertiesLoose(_ref, ["className", "padding", "status"]);
138
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
131
139
 
132
- return React__default.createElement("td", Object.assign({
140
+ return React__default["default"].createElement("td", _extends({
133
141
  ref: ref,
134
- className: classNames('eds-table__data-cell', className, (_classNames = {}, _classNames["eds-table__data-cell--status-" + status] = status, _classNames['eds-table__data-cell--padding-checkbox'] = padding === 'checkbox', _classNames['eds-table__data-cell--padding-radio'] = padding === 'radio', _classNames['eds-table__data-cell--padding-overflow-menu'] = padding === 'overflow-menu', _classNames))
142
+ className: classNames__default["default"]('eds-table__data-cell', className, (_classNames = {}, _classNames["eds-table__data-cell--status-" + status] = status, _classNames['eds-table__data-cell--padding-checkbox'] = padding === 'checkbox', _classNames['eds-table__data-cell--padding-radio'] = padding === 'radio', _classNames['eds-table__data-cell--padding-overflow-menu'] = padding === 'overflow-menu', _classNames))
135
143
  }, rest));
136
144
  });
137
145
 
138
- var HeaderCell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
146
+ var _excluded$3 = ["className", "children", "name", "sortable", "sortConfig", "padding", "sortableButtonProps"],
147
+ _excluded2$1 = ["className"];
148
+ var HeaderCell = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
139
149
  var className = _ref.className,
140
150
  children = _ref.children,
141
151
  name = _ref.name,
@@ -145,18 +155,18 @@ var HeaderCell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
145
155
  _ref$padding = _ref.padding,
146
156
  padding = _ref$padding === void 0 ? 'default' : _ref$padding,
147
157
  sortableButtonProps = _ref.sortableButtonProps,
148
- rest = _objectWithoutPropertiesLoose(_ref, ["className", "children", "name", "sortable", "sortConfig", "padding", "sortableButtonProps"]);
158
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
149
159
 
150
- var _React$useState = React__default.useState(false),
160
+ var _React$useState = React__default["default"].useState(false),
151
161
  isCurrentlySorted = _React$useState[0],
152
162
  setIsCurrentlySorted = _React$useState[1];
153
163
 
154
- React__default.useEffect(function () {
164
+ React__default["default"].useEffect(function () {
155
165
  sortConfig && name && setIsCurrentlySorted(sortConfig && name === sortConfig.key);
156
166
  }, [sortConfig, name]);
157
167
  var ariaSort = isCurrentlySorted ? sortConfig && sortConfig.order : 'none';
158
- return React__default.createElement("th", Object.assign({
159
- className: classNames('eds-table__header-cell', className, {
168
+ return React__default["default"].createElement("th", _extends({
169
+ className: classNames__default["default"]('eds-table__header-cell', className, {
160
170
  'eds-table__header-cell--sortable': sortable,
161
171
  'eds-table__header-cell--padding-radio': padding === 'radio',
162
172
  'eds-table__header-cell--padding-checkbox': padding === 'checkbox',
@@ -164,7 +174,7 @@ var HeaderCell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
164
174
  }),
165
175
  "aria-sort": ariaSort,
166
176
  ref: ref
167
- }, rest), sortable && sortConfig && sortableButtonProps ? React__default.createElement(SortableHeaderCellButton, {
177
+ }, rest), sortable && sortConfig && sortableButtonProps ? React__default["default"].createElement(SortableHeaderCellButton, {
168
178
  sortableButtonProps: sortableButtonProps,
169
179
  sortConfig: sortConfig,
170
180
  isCurrentlySorted: isCurrentlySorted
@@ -178,20 +188,22 @@ var SortableHeaderCellButton = function SortableHeaderCellButton(_ref2) {
178
188
  children = _ref2.children;
179
189
 
180
190
  var className = sortableButtonProps.className,
181
- rest = _objectWithoutPropertiesLoose(sortableButtonProps, ["className"]);
191
+ rest = _objectWithoutPropertiesLoose(sortableButtonProps, _excluded2$1);
182
192
 
183
- return React__default.createElement("button", Object.assign({
184
- className: classNames('eds-table__header-cell-button', className),
193
+ return React__default["default"].createElement("button", _extends({
194
+ className: classNames__default["default"]('eds-table__header-cell-button', className),
185
195
  type: "button"
186
- }, rest), children, isCurrentlySorted && sortConfig.order === 'ascending' && React__default.createElement(icons.UpArrowIcon, {
196
+ }, rest), children, isCurrentlySorted && sortConfig.order === 'ascending' && React__default["default"].createElement(icons.UpArrowIcon, {
187
197
  size: "16px",
188
198
  className: "eds-table__header-cell-button-icon"
189
- }), isCurrentlySorted && sortConfig.order === 'descending' && React__default.createElement(icons.DownArrowIcon, {
199
+ }), isCurrentlySorted && sortConfig.order === 'descending' && React__default["default"].createElement(icons.DownArrowIcon, {
190
200
  size: "16px",
191
201
  className: "eds-table__header-cell-button-icon"
192
202
  }));
193
203
  };
194
204
 
205
+ var _excluded$2 = ["name", "sortable", "buttonProps"],
206
+ _excluded2 = ["sortable"];
195
207
  function useSortableData(rawData, externalSortConfig) {
196
208
  if (externalSortConfig === void 0) {
197
209
  externalSortConfig = {
@@ -200,26 +212,26 @@ function useSortableData(rawData, externalSortConfig) {
200
212
  };
201
213
  }
202
214
 
203
- var _React$useState = React__default.useState(externalSortConfig),
215
+ var _React$useState = React__default["default"].useState(externalSortConfig),
204
216
  sortConfig = _React$useState[0],
205
217
  setSortConfig = _React$useState[1];
206
218
 
207
219
  var tableCopy = rawData.slice();
208
- React__default.useEffect(function () {
220
+ React__default["default"].useEffect(function () {
209
221
  setSortConfig({
210
222
  key: externalSortConfig.key,
211
223
  order: externalSortConfig.order
212
224
  });
213
225
  }, [externalSortConfig.key, externalSortConfig.order]);
214
- var sortedData = React__default.useMemo(function () {
226
+ var sortedData = React__default["default"].useMemo(function () {
215
227
  if (sortConfig.order === 'none') {
216
228
  return tableCopy;
217
229
  }
218
230
 
219
231
  return [].concat(rawData).sort(function (a, b) {
220
- if (get(a, sortConfig.key) < get(b, sortConfig.key)) {
232
+ if (get__default["default"](a, sortConfig.key) < get__default["default"](b, sortConfig.key)) {
221
233
  return sortConfig.order === 'ascending' ? -1 : 1;
222
- } else if (get(a, sortConfig.key) > get(b, sortConfig.key)) {
234
+ } else if (get__default["default"](a, sortConfig.key) > get__default["default"](b, sortConfig.key)) {
223
235
  return sortConfig.order === 'ascending' ? 1 : -1;
224
236
  } else {
225
237
  return 0;
@@ -247,7 +259,7 @@ function useSortableData(rawData, externalSortConfig) {
247
259
  _ref$sortable = _ref.sortable,
248
260
  sortable = _ref$sortable === void 0 ? true : _ref$sortable,
249
261
  buttonProps = _ref.buttonProps,
250
- props = _objectWithoutPropertiesLoose(_ref, ["name", "sortable", "buttonProps"]);
262
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
251
263
 
252
264
  return _extends({
253
265
  name: name,
@@ -264,7 +276,7 @@ function useSortableData(rawData, externalSortConfig) {
264
276
  function getSortableTableProps(_ref2) {
265
277
  var _ref2$sortable = _ref2.sortable,
266
278
  sortable = _ref2$sortable === void 0 ? true : _ref2$sortable,
267
- props = _objectWithoutPropertiesLoose(_ref2, ["sortable"]);
279
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
268
280
 
269
281
  return _extends({
270
282
  sortable: sortable,
@@ -279,6 +291,7 @@ function useSortableData(rawData, externalSortConfig) {
279
291
  };
280
292
  }
281
293
 
294
+ var _excluded$1 = ["children", "className", "feedback", "variant", "outlined"];
282
295
  var EditableCell = function EditableCell(_ref) {
283
296
  var children = _ref.children,
284
297
  className = _ref.className,
@@ -286,15 +299,15 @@ var EditableCell = function EditableCell(_ref) {
286
299
  variant = _ref.variant,
287
300
  _ref$outlined = _ref.outlined,
288
301
  outlined = _ref$outlined === void 0 ? false : _ref$outlined,
289
- rest = _objectWithoutPropertiesLoose(_ref, ["children", "className", "feedback", "variant", "outlined"]);
302
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
290
303
 
291
- return React__default.createElement(form.VariantProvider, {
304
+ return React__default["default"].createElement(form.VariantProvider, {
292
305
  variant: variant
293
- }, React__default.createElement(DataCell, Object.assign({
294
- className: classNames('eds-editable-cell', {
306
+ }, React__default["default"].createElement(DataCell, _extends({
307
+ className: classNames__default["default"]('eds-editable-cell', {
295
308
  'eds-editable-cell--outlined': outlined
296
309
  }, className)
297
- }, rest), React__default.createElement(tooltip.Tooltip, {
310
+ }, rest), React__default["default"].createElement(tooltip.Tooltip, {
298
311
  disableHoverListener: !feedback,
299
312
  disableFocusListener: !feedback,
300
313
  placement: "bottom",
@@ -308,24 +321,25 @@ var ExpandableRow = function ExpandableRow(_ref) {
308
321
  open = _ref$open === void 0 ? false : _ref$open,
309
322
  children = _ref.children,
310
323
  colSpan = _ref.colSpan;
311
- return React__default.createElement("tr", null, React__default.createElement("td", {
324
+ return React__default["default"].createElement("tr", null, React__default["default"].createElement("td", {
312
325
  colSpan: colSpan
313
- }, React__default.createElement(expand.BaseExpand, {
326
+ }, React__default["default"].createElement(expand.BaseExpand, {
314
327
  open: open
315
328
  }, children)));
316
329
  };
317
330
 
331
+ var _excluded = ["open", "onClick"];
318
332
  var ExpandRowButton = function ExpandRowButton(_ref) {
319
333
  var open = _ref.open,
320
334
  onClick = _ref.onClick,
321
- rest = _objectWithoutPropertiesLoose(_ref, ["open", "onClick"]);
335
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
322
336
 
323
- return React__default.createElement("button", Object.assign({
324
- className: classNames('eds-expand-row-button', {
337
+ return React__default["default"].createElement("button", _extends({
338
+ className: classNames__default["default"]('eds-expand-row-button', {
325
339
  'eds-expand-row-button--open': open
326
340
  }),
327
341
  onClick: onClick
328
- }, rest), React__default.createElement(icons.RightArrowIcon, {
342
+ }, rest), React__default["default"].createElement(icons.RightArrowIcon, {
329
343
  className: "eds-expand-row-button__icon"
330
344
  }));
331
345
  };
@@ -376,12 +390,12 @@ var useTableKeyboardNavigation = function useTableKeyboardNavigation(numberOfRow
376
390
  maxRow = _useState2[0],
377
391
  setMaxRow = _useState2[1];
378
392
 
379
- var tableBodyRef = React__default.useRef(null);
380
- var tableHasFocus = tableBodyRef === null || tableBodyRef === void 0 ? void 0 : (_tableBodyRef$current = tableBodyRef.current) === null || _tableBodyRef$current === void 0 ? void 0 : _tableBodyRef$current.contains(document.activeElement);
381
- React__default.useEffect(function () {
393
+ var tableBodyRef = React__default["default"].useRef(null);
394
+ var tableHasFocus = tableBodyRef == null ? void 0 : (_tableBodyRef$current = tableBodyRef.current) == null ? void 0 : _tableBodyRef$current.contains(document.activeElement);
395
+ React__default["default"].useEffect(function () {
382
396
  var _tableBodyRef$current2;
383
397
 
384
- tableBodyRef && tableBodyRef.current && tableHasFocus && ((_tableBodyRef$current2 = tableBodyRef.current.childNodes[currentRow].childNodes[0].parentElement) === null || _tableBodyRef$current2 === void 0 ? void 0 : _tableBodyRef$current2.focus());
398
+ tableBodyRef && tableBodyRef.current && tableHasFocus && ((_tableBodyRef$current2 = tableBodyRef.current.childNodes[currentRow].childNodes[0].parentElement) == null ? void 0 : _tableBodyRef$current2.focus());
385
399
  }, [currentRow]);
386
400
 
387
401
  function getTableBodyNavigationProps() {
@@ -395,10 +409,10 @@ var useTableKeyboardNavigation = function useTableKeyboardNavigation(numberOfRow
395
409
  }
396
410
 
397
411
  function getTableRowNavigationProps(row) {
398
- React__default.useEffect(function () {
412
+ React__default["default"].useEffect(function () {
399
413
  row >= maxRow && setMaxRow(row + 1);
400
414
  }, []);
401
- var tableRowRef = React__default.useRef(null);
415
+ var tableRowRef = React__default["default"].useRef(null);
402
416
  var tabIndex = -1;
403
417
  row === currentRow ? tabIndex = 0 : undefined;
404
418