@onewelcome/react-lib-components 0.1.8-alpha → 0.1.9-alpha
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/dist/DataGrid/DataGrid.d.ts +2 -0
- package/dist/DataGrid/DataGridBody/DataGridBody.d.ts +1 -0
- package/dist/DataGrid/DataGridBody/DataGridCell.d.ts +5 -1
- package/dist/DataGrid/DataGridBody/DataGridRow.d.ts +3 -1
- package/dist/DataGrid/DataGridHeader/DataGridHeader.d.ts +2 -1
- package/dist/hooks/useSpacing.d.ts +1 -1
- package/dist/hooks/useWrapper.d.ts +1 -1
- package/dist/react-lib-components.cjs.development.js +113 -23
- package/dist/react-lib-components.cjs.development.js.map +1 -1
- package/dist/react-lib-components.cjs.production.min.js +1 -1
- package/dist/react-lib-components.cjs.production.min.js.map +1 -1
- package/dist/react-lib-components.esm.js +113 -23
- package/dist/react-lib-components.esm.js.map +1 -1
- package/dist/util/helper.d.ts +1 -1
- package/package.json +10 -12
- package/src/DataGrid/DataGrid.module.scss +4 -0
- package/src/DataGrid/DataGrid.test.tsx +145 -0
- package/src/DataGrid/DataGrid.tsx +58 -2
- package/src/DataGrid/DataGridBody/DataGridBody.tsx +18 -2
- package/src/DataGrid/DataGridBody/DataGridCell.tsx +35 -2
- package/src/DataGrid/DataGridBody/DataGridRow.tsx +19 -4
- package/src/DataGrid/DataGridHeader/DataGridHeader.tsx +26 -3
- package/src/Form/Wrapper/Wrapper/Wrapper.module.scss +1 -0
- package/src/Pagination/Pagination.module.scss +1 -1
|
@@ -2,6 +2,7 @@ import React, { ComponentPropsWithRef, ReactElement, Ref } from 'react';
|
|
|
2
2
|
import { Props as ButtonProps } from '../Button/Button';
|
|
3
3
|
import { HeaderCell, OnSortFunction, Sort } from './datagrid.interfaces';
|
|
4
4
|
import { Props as PaginationProps } from '../Pagination/Pagination';
|
|
5
|
+
import { Spacing } from '../hooks/useSpacing';
|
|
5
6
|
export interface Props<T> extends ComponentPropsWithRef<'div'> {
|
|
6
7
|
children: ({ item, index }: {
|
|
7
8
|
item: T;
|
|
@@ -24,6 +25,7 @@ export interface Props<T> extends ComponentPropsWithRef<'div'> {
|
|
|
24
25
|
disableContextMenuColumn?: boolean;
|
|
25
26
|
isLoading?: boolean;
|
|
26
27
|
enableMultiSorting?: boolean;
|
|
28
|
+
spacing?: Spacing;
|
|
27
29
|
}
|
|
28
30
|
export declare const DataGrid: <T extends {}>(p: Props<T> & {
|
|
29
31
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
@@ -10,6 +10,7 @@ export interface Props<T> extends ComponentPropsWithRef<'tbody'> {
|
|
|
10
10
|
isLoading?: boolean;
|
|
11
11
|
disableContextMenuColumn?: boolean;
|
|
12
12
|
emptyLabel?: string;
|
|
13
|
+
spacing?: React.CSSProperties;
|
|
13
14
|
}
|
|
14
15
|
export declare const DataGridBody: <T extends {}>(p: Props<T> & {
|
|
15
16
|
ref?: React.Ref<HTMLTableSectionElement> | undefined;
|
|
@@ -2,5 +2,9 @@ import React, { ComponentPropsWithRef, ReactChild } from 'react';
|
|
|
2
2
|
export interface Props extends ComponentPropsWithRef<'td'> {
|
|
3
3
|
children?: ReactChild;
|
|
4
4
|
isLoading?: boolean;
|
|
5
|
+
spacing?: React.CSSProperties;
|
|
6
|
+
cellIndex?: number;
|
|
7
|
+
columnLength?: number;
|
|
8
|
+
disableContextMenuColumn?: boolean;
|
|
5
9
|
}
|
|
6
|
-
export declare const DataGridCell: React.ForwardRefExoticComponent<Pick<Props, "abbr" | "slot" | "style" | "title" | "key" | "align" | "colSpan" | "headers" | "rowSpan" | "scope" | "height" | "width" | "valign" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "isLoading"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
10
|
+
export declare const DataGridCell: React.ForwardRefExoticComponent<Pick<Props, "abbr" | "slot" | "style" | "title" | "key" | "align" | "colSpan" | "headers" | "rowSpan" | "scope" | "height" | "width" | "valign" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "isLoading" | "spacing" | "cellIndex" | "columnLength" | "disableContextMenuColumn"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
@@ -3,5 +3,7 @@ import { HeaderCell } from '../datagrid.interfaces';
|
|
|
3
3
|
export interface Props extends ComponentPropsWithRef<'tr'> {
|
|
4
4
|
headers?: HeaderCell[];
|
|
5
5
|
isLoading?: boolean;
|
|
6
|
+
spacing?: React.CSSProperties;
|
|
7
|
+
disableContextMenuColumn?: boolean;
|
|
6
8
|
}
|
|
7
|
-
export declare const DataGridRow: React.ForwardRefExoticComponent<Pick<Props, "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "headers" | "isLoading"> & React.RefAttributes<HTMLTableRowElement>>;
|
|
9
|
+
export declare const DataGridRow: React.ForwardRefExoticComponent<Pick<Props, "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "headers" | "isLoading" | "spacing" | "disableContextMenuColumn"> & React.RefAttributes<HTMLTableRowElement>>;
|
|
@@ -6,5 +6,6 @@ export interface Props extends ComponentPropsWithRef<'thead'> {
|
|
|
6
6
|
onSort?: OnSortFunction;
|
|
7
7
|
disableContextMenuColumn?: boolean;
|
|
8
8
|
enableMultiSorting?: boolean;
|
|
9
|
+
spacing?: React.CSSProperties;
|
|
9
10
|
}
|
|
10
|
-
export declare const DataGridHeader: React.ForwardRefExoticComponent<Pick<Props, "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "headers" | "initialSort" | "onSort" | "disableContextMenuColumn" | "enableMultiSorting"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
11
|
+
export declare const DataGridHeader: React.ForwardRefExoticComponent<Pick<Props, "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "headers" | "initialSort" | "onSort" | "disableContextMenuColumn" | "enableMultiSorting" | "spacing"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -14,5 +14,5 @@ export interface Spacing {
|
|
|
14
14
|
marginLeft?: SpacingMultiplierStringOrNumber;
|
|
15
15
|
marginRight?: SpacingMultiplierStringOrNumber;
|
|
16
16
|
}
|
|
17
|
-
export declare const useSpacing: (spacingProps?: Spacing
|
|
17
|
+
export declare const useSpacing: (spacingProps?: Spacing, style?: CSSProperties) => CSSProperties | undefined;
|
|
18
18
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Type as InputTypes } from '../Form/Input/Input';
|
|
3
|
-
export declare const useWrapper: (value?: string
|
|
3
|
+
export declare const useWrapper: (value?: string, placeholder?: string, type?: InputTypes) => {
|
|
4
4
|
helperId: string;
|
|
5
5
|
errorId: string;
|
|
6
6
|
labelId: string;
|
|
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
11
|
|
|
12
12
|
function _extends() {
|
|
13
|
-
_extends = Object.assign
|
|
13
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
14
14
|
for (var i = 1; i < arguments.length; i++) {
|
|
15
15
|
var source = arguments[i];
|
|
16
16
|
|
|
@@ -23,7 +23,6 @@ function _extends() {
|
|
|
23
23
|
|
|
24
24
|
return target;
|
|
25
25
|
};
|
|
26
|
-
|
|
27
26
|
return _extends.apply(this, arguments);
|
|
28
27
|
}
|
|
29
28
|
|
|
@@ -1596,8 +1595,8 @@ var Tooltip = /*#__PURE__*/React__default["default"].forwardRef(function (_ref,
|
|
|
1596
1595
|
}, children), domRoot)));
|
|
1597
1596
|
});
|
|
1598
1597
|
|
|
1599
|
-
var css$C = ".
|
|
1600
|
-
var modules_e3c5bce1 = {"pagination-wrapper":"
|
|
1598
|
+
var css$C = ".Pagination_module_paginationWrapper__87a18f48 {\n font-family: var(--font-family);\n font-size: var(--font-size);\n color: var(--greyed-out);\n display: flex;\n flex-direction: column;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_formElement__87a18f48 {\n height: 2.5rem;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_formElement__87a18f48 button {\n min-height: 2.5rem;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_total__87a18f48 {\n flex: 1 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_total__87a18f48 span > span {\n font-weight: 700;\n font-family: var(--font-family);\n font-size: var(--font-size);\n margin-left: 0.25rem;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_pagination__87a18f48 {\n flex: 1 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-top: 1rem;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_pagination__87a18f48 .Pagination_module_previous__87a18f48,\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_pagination__87a18f48 .Pagination_module_next__87a18f48 {\n display: flex;\n align-items: center;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_pagination__87a18f48 .Pagination_module_previous__87a18f48 button,\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_pagination__87a18f48 .Pagination_module_next__87a18f48 button {\n margin: 0.25rem;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_pagination__87a18f48 .Pagination_module_previous__87a18f48 button span:before,\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_pagination__87a18f48 .Pagination_module_next__87a18f48 button span:before {\n font-size: 0.75rem;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_perPage__87a18f48 {\n display: none;\n align-items: center;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_page__87a18f48 {\n display: flex;\n align-items: center;\n flex-basis: min-content;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_pageSizeSelect__87a18f48 {\n border-color: #fff;\n margin: 0 0.25rem;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_pageSizeSelect__87a18f48 button {\n min-width: 3.4375rem;\n padding: 0;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_pageSizeSelect__87a18f48 button div[data-display] {\n left: 0.5rem;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_pageSizeSelect__87a18f48 button div:not([data-display]) {\n right: 0.5rem;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_currentValueInput__87a18f48 {\n margin: 0 0.25rem 0 0;\n padding: 0;\n}\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_currentValueInput__87a18f48 input {\n border-radius: var(--input-border-radius);\n padding: 0 1rem;\n width: auto;\n text-align: center;\n}\n\n@media screen and (min-width: 30em) {\n .Pagination_module_paginationWrapper__87a18f48 {\n flex-direction: row;\n }\n .Pagination_module_paginationWrapper__87a18f48 .Pagination_module_total__87a18f48 {\n justify-content: flex-start;\n }\n .Pagination_module_paginationWrapper__87a18f48 .Pagination_module_pagination__87a18f48 {\n margin-top: 0;\n justify-content: flex-end;\n }\n .Pagination_module_paginationWrapper__87a18f48 .Pagination_module_pagination__87a18f48 .Pagination_module_previous__87a18f48 button,\n.Pagination_module_paginationWrapper__87a18f48 .Pagination_module_pagination__87a18f48 .Pagination_module_next__87a18f48 button {\n margin: 0 0.5rem;\n }\n}\n@media screen and (min-width: 48em) {\n .Pagination_module_paginationWrapper__87a18f48 .Pagination_module_perPage__87a18f48 {\n display: flex;\n }\n}";
|
|
1599
|
+
var modules_e3c5bce1 = {"pagination-wrapper":"Pagination_module_paginationWrapper__87a18f48","form-element":"Pagination_module_formElement__87a18f48","total":"Pagination_module_total__87a18f48","pagination":"Pagination_module_pagination__87a18f48","previous":"Pagination_module_previous__87a18f48","next":"Pagination_module_next__87a18f48","per-page":"Pagination_module_perPage__87a18f48","page":"Pagination_module_page__87a18f48","page-size-select":"Pagination_module_pageSizeSelect__87a18f48","current-value-input":"Pagination_module_currentValueInput__87a18f48"};
|
|
1601
1600
|
n(css$C,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
1602
1601
|
|
|
1603
1602
|
var css$B = ".Input_module_inputWrapper__ca7df3b0 {\n position: relative;\n display: flex;\n align-items: center;\n padding: 0 1.25rem;\n background-color: var(--input-background-color);\n border-color: var(--input-border-color);\n border-style: var(--input-border-style);\n border-width: var(--input-border-width);\n border-radius: var(--input-border-radius);\n transition: all 0.2s ease-in-out;\n}\n.Input_module_inputWrapper__ca7df3b0:hover:not(:disabled) {\n border-color: var(--default);\n}\n.Input_module_inputWrapper__ca7df3b0.Input_module_disabled__ca7df3b0, .Input_module_inputWrapper__ca7df3b0.Input_module_disabled__ca7df3b0 input {\n background-color: var(--disabled);\n border-color: #fff;\n cursor: not-allowed;\n}\n.Input_module_inputWrapper__ca7df3b0.Input_module_error__ca7df3b0 {\n border-color: var(--error);\n}\n.Input_module_inputWrapper__ca7df3b0.Input_module_focus__ca7df3b0 {\n border-color: var(--color-primary);\n}\n\n.Input_module_input__ca7df3b0 {\n height: 4rem;\n border: 0;\n color: var(--greyed-out);\n font-size: var(--font-size);\n font-family: var(--font-family);\n width: 100%;\n box-sizing: border-box;\n padding: 0;\n}\n.Input_module_input__ca7df3b0:focus:not(:disabled) {\n outline: none;\n border-color: var(--color-primary);\n}\n\n.Input_module_error__ca7df3b0 input {\n color: var(--error);\n padding-right: 3.75rem;\n}\n.Input_module_error__ca7df3b0 input.Input_module_removeExtraIndent__ca7df3b0 {\n padding-right: 1.25rem;\n}\n\n.Input_module_warning__ca7df3b0 {\n color: var(--error);\n position: absolute;\n height: 100%;\n width: 1.25rem;\n right: 1.25rem;\n top: 0px;\n font-size: 1.125rem;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.Input_module_warning__ca7df3b0:before {\n height: 1.3125rem;\n}\n.Input_module_warning__ca7df3b0.Input_module_extraIndent__ca7df3b0 {\n right: 3.75rem;\n}\n\n.Input_module_inputWrapper__ca7df3b0 [data-prefix],\n.Input_module_inputWrapper__ca7df3b0 [data-suffix] {\n transition: all 0.2s ease-in-out;\n display: block;\n z-index: 1;\n}";
|
|
@@ -3548,8 +3547,8 @@ var FormGroup = /*#__PURE__*/React__default["default"].forwardRef(function (_ref
|
|
|
3548
3547
|
})))));
|
|
3549
3548
|
});
|
|
3550
3549
|
|
|
3551
|
-
var css$e = ".
|
|
3552
|
-
var modules_e401a244 = {"floating-wrapper":"
|
|
3550
|
+
var css$e = ".Wrapper_module_floatingWrapper__24a1c678 {\n position: relative;\n}\n\n.Wrapper_module_floatingLabel__24a1c678 {\n font-family: var(--font-family);\n font-size: 1rem;\n position: absolute;\n z-index: 1;\n top: 1.3125rem;\n left: 1.35rem;\n transform-origin: left top;\n transition: all 0.2s ease-in-out;\n pointer-events: none;\n}\n.Wrapper_module_floatingLabel__24a1c678.Wrapper_module_floatingLabelActive__24a1c678 {\n font-size: 0.75rem;\n transform: translateY(-0.75rem);\n color: var(--default);\n}\n.Wrapper_module_floatingLabel__24a1c678.Wrapper_module_error__24a1c678 {\n color: var(--error);\n}\n\n.Wrapper_module_wrapper__24a1c678 + fieldset,\n.Wrapper_module_wrapper__24a1c678 + .Wrapper_module_wrapper__24a1c678 {\n margin-top: 1rem;\n}\n\n.Wrapper_module_required__24a1c678:after {\n content: \" *\";\n}";
|
|
3551
|
+
var modules_e401a244 = {"floating-wrapper":"Wrapper_module_floatingWrapper__24a1c678","floating-label":"Wrapper_module_floatingLabel__24a1c678","floating-label-active":"Wrapper_module_floatingLabelActive__24a1c678","error":"Wrapper_module_error__24a1c678","wrapper":"Wrapper_module_wrapper__24a1c678","required":"Wrapper_module_required__24a1c678"};
|
|
3553
3552
|
n(css$e,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
3554
3553
|
|
|
3555
3554
|
var _excluded$h = ["children", "className", "error", "errorMessage", "errorId", "errorMessageIcon", "errorMessageIconPosition", "helperText", "helperId", "floatingLabel", "floatingLabelActive", "required", "helperProps", "helperIndent", "labelProps", "label", "disabled", "name", "innerClassName"];
|
|
@@ -4392,8 +4391,8 @@ var WizardSteps = /*#__PURE__*/React__default["default"].forwardRef(function (_r
|
|
|
4392
4391
|
}));
|
|
4393
4392
|
});
|
|
4394
4393
|
|
|
4395
|
-
var css$7 = ".
|
|
4396
|
-
var modules_b8d590e8 = {"table-wrapper":"
|
|
4394
|
+
var css$7 = ".DataGrid_module_gridWrapper__f048f02f {\n padding: 1rem 0;\n}\n\n.DataGrid_module_tableWrapper__f048f02f {\n overflow-x: auto;\n}\n\n.DataGrid_module_table__f048f02f {\n border-collapse: collapse;\n padding-top: 0.5rem;\n width: 100%;\n position: relative;\n}\n\n.DataGrid_module_pagination__f048f02f {\n margin-top: 1rem;\n padding: 0 1rem;\n}\n\n@media only screen and (min-width: 50em) {\n .DataGrid_module_pagination__f048f02f {\n padding: 0 1.25rem;\n }\n}";
|
|
4395
|
+
var modules_b8d590e8 = {"grid-wrapper":"DataGrid_module_gridWrapper__f048f02f","table-wrapper":"DataGrid_module_tableWrapper__f048f02f","table":"DataGrid_module_table__f048f02f","pagination":"DataGrid_module_pagination__f048f02f"};
|
|
4397
4396
|
n(css$7,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
4398
4397
|
|
|
4399
4398
|
var css$6 = ".DataGridHeaderCell_module_headerCell__cbbe0d16 {\n font-weight: normal;\n text-align: left;\n padding: 0 0.625rem;\n}\n.DataGridHeaderCell_module_headerCell__cbbe0d16:first-child {\n padding-left: 1rem;\n}\n.DataGridHeaderCell_module_headerCell__cbbe0d16:last-child {\n padding-right: 1rem;\n}\n.DataGridHeaderCell_module_headerCell__cbbe0d16 > * {\n display: inline-flex;\n}\n.DataGridHeaderCell_module_headerCell__cbbe0d16 > button {\n padding: 0;\n margin: 0;\n border: 0;\n background: none;\n cursor: pointer;\n}\n\n.DataGridHeaderCell_module_headline__cbbe0d16 {\n font-family: var(--font-family);\n font-size: var(--font-size);\n line-height: 1.5;\n font-weight: 700;\n color: var(--default);\n}\n\n.DataGridHeaderCell_module_sortingIndicatorContainer__cbbe0d16 {\n display: flex;\n flex-direction: column;\n padding-left: 0.5rem;\n justify-content: center;\n}\n.DataGridHeaderCell_module_sortingIndicatorContainer__cbbe0d16 > * {\n font-size: 0.625rem;\n}\n.DataGridHeaderCell_module_sortingIndicatorContainer__cbbe0d16 .DataGridHeaderCell_module_indicator__cbbe0d16 {\n color: var(--greyed-out);\n}\n.DataGridHeaderCell_module_sortingIndicatorContainer__cbbe0d16 .DataGridHeaderCell_module_indicator__cbbe0d16.DataGridHeaderCell_module_active__cbbe0d16 {\n color: var(--color-primary);\n}\n.DataGridHeaderCell_module_sortingIndicatorContainer__cbbe0d16 .DataGridHeaderCell_module_indicator__cbbe0d16.DataGridHeaderCell_module_hidden__cbbe0d16 {\n visibility: hidden;\n}\n\n@media only screen and (min-width: 50em) {\n .DataGridHeaderCell_module_headerCell__cbbe0d16:first-child {\n padding-left: 1.25rem;\n }\n .DataGridHeaderCell_module_headerCell__cbbe0d16:last-child {\n padding-right: 1.25rem;\n }\n}";
|
|
@@ -4454,7 +4453,7 @@ var css$5 = ".DataGridHeader_module_thead__e75f00b8::after {\n content: \"\";\n
|
|
|
4454
4453
|
var modules_bec66042 = {"thead":"DataGridHeader_module_thead__e75f00b8","row":"DataGridHeader_module_row__e75f00b8","context-menu":"DataGridHeader_module_contextMenu__e75f00b8"};
|
|
4455
4454
|
n(css$5,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
4456
4455
|
|
|
4457
|
-
var _excluded$6 = ["initialSort", "onSort", "headers", "disableContextMenuColumn", "enableMultiSorting"];
|
|
4456
|
+
var _excluded$6 = ["initialSort", "onSort", "headers", "disableContextMenuColumn", "enableMultiSorting", "spacing"];
|
|
4458
4457
|
var sortingStates = [undefined, 'ASC', 'DESC'];
|
|
4459
4458
|
var DataGridHeader = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
4460
4459
|
var initialSort = _ref.initialSort,
|
|
@@ -4462,6 +4461,7 @@ var DataGridHeader = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
4462
4461
|
headers = _ref.headers,
|
|
4463
4462
|
disableContextMenuColumn = _ref.disableContextMenuColumn,
|
|
4464
4463
|
enableMultiSorting = _ref.enableMultiSorting,
|
|
4464
|
+
spacing = _ref.spacing,
|
|
4465
4465
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
4466
4466
|
|
|
4467
4467
|
var _useState = React.useState(initialSort || []),
|
|
@@ -4504,11 +4504,21 @@ var DataGridHeader = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
4504
4504
|
setSortList(newSort);
|
|
4505
4505
|
};
|
|
4506
4506
|
|
|
4507
|
-
var headerCells = headers.map(function (header) {
|
|
4507
|
+
var headerCells = headers.map(function (header, index) {
|
|
4508
4508
|
if (header.hidden) {
|
|
4509
4509
|
return null;
|
|
4510
4510
|
}
|
|
4511
4511
|
|
|
4512
|
+
var headerStyle = {};
|
|
4513
|
+
|
|
4514
|
+
if (index === 0) {
|
|
4515
|
+
headerStyle.paddingLeft = spacing == null ? void 0 : spacing.paddingLeft;
|
|
4516
|
+
}
|
|
4517
|
+
|
|
4518
|
+
if (index === headers.length - 1 && disableContextMenuColumn) {
|
|
4519
|
+
headerStyle.paddingRight = spacing == null ? void 0 : spacing.paddingRight;
|
|
4520
|
+
}
|
|
4521
|
+
|
|
4512
4522
|
var sort = sortList.find(function (item) {
|
|
4513
4523
|
return item.name === header.name;
|
|
4514
4524
|
});
|
|
@@ -4518,7 +4528,8 @@ var DataGridHeader = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
4518
4528
|
headline: header.headline,
|
|
4519
4529
|
disableSorting: header.disableSorting || !onSort,
|
|
4520
4530
|
onSort: wrapOnSort,
|
|
4521
|
-
activeSortDirection: sort == null ? void 0 : sort.direction
|
|
4531
|
+
activeSortDirection: sort == null ? void 0 : sort.direction,
|
|
4532
|
+
style: headerStyle
|
|
4522
4533
|
});
|
|
4523
4534
|
});
|
|
4524
4535
|
return React__default["default"].createElement("thead", _extends({}, rest, {
|
|
@@ -4527,13 +4538,16 @@ var DataGridHeader = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
4527
4538
|
}), React__default["default"].createElement("tr", {
|
|
4528
4539
|
className: modules_bec66042['row']
|
|
4529
4540
|
}, headerCells, !disableContextMenuColumn && React__default["default"].createElement("td", {
|
|
4541
|
+
style: {
|
|
4542
|
+
paddingRight: spacing == null ? void 0 : spacing.paddingRight
|
|
4543
|
+
},
|
|
4530
4544
|
"aria-label": "context menu",
|
|
4531
4545
|
className: modules_bec66042['context-menu']
|
|
4532
4546
|
})));
|
|
4533
4547
|
});
|
|
4534
4548
|
|
|
4535
|
-
var css$4 = ".
|
|
4536
|
-
var modules_3f552d89 = {"actions":"
|
|
4549
|
+
var css$4 = ".DataGridActions_module_actions__a2bfe2f8 {\n margin-bottom: 1rem;\n padding: 0 1rem;\n display: flex;\n flex-wrap: wrap;\n}\n\n.DataGridActions_module_leftActions__a2bfe2f8 {\n flex: 1;\n}\n\n.DataGridActions_module_rightActions__a2bfe2f8 {\n display: flex;\n gap: 1rem;\n}\n\n.DataGridActions_module_desktop__a2bfe2f8 {\n display: none;\n}\n\n@media only screen and (min-width: 50em) {\n .DataGridActions_module_actions__a2bfe2f8 {\n padding: 0 1.25rem;\n }\n}\n@media only screen and (min-width: 30em) {\n .DataGridActions_module_desktop__a2bfe2f8 {\n display: block;\n }\n .DataGridActions_module_mobile__a2bfe2f8 {\n display: none;\n }\n}";
|
|
4550
|
+
var modules_3f552d89 = {"actions":"DataGridActions_module_actions__a2bfe2f8","left-actions":"DataGridActions_module_leftActions__a2bfe2f8","right-actions":"DataGridActions_module_rightActions__a2bfe2f8","desktop":"DataGridActions_module_desktop__a2bfe2f8","mobile":"DataGridActions_module_mobile__a2bfe2f8"};
|
|
4537
4551
|
n(css$4,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
4538
4552
|
|
|
4539
4553
|
var css$3 = ".DataGridColumnsToggle_module_popover__89304f63 {\n background-color: var(--modal-background-color);\n z-index: 1;\n min-width: 17.5rem;\n}\n\n.DataGridColumnsToggle_module_backdrop__89304f63 {\n content: \"\";\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n background-color: transparent;\n}\n\n.DataGridColumnsToggle_module_header__89304f63 {\n min-width: 5rem;\n padding: 1rem 0.5rem 1rem 1.5rem;\n background-color: var(--modal-header-background-color);\n border-top-left-radius: 0.5rem;\n border-top-right-radius: 0.5rem;\n display: flex;\n align-items: center;\n}\n\n.DataGridColumnsToggle_module_title__89304f63 {\n flex: 1;\n margin: 0;\n}\n\n.DataGridColumnsToggle_module_closeBtn__89304f63 {\n margin-left: 0.5rem;\n}\n\n.DataGridColumnsToggle_module_content__89304f63 {\n padding: 1.5rem;\n display: flex;\n flex-direction: column;\n gap: 1.25rem;\n}";
|
|
@@ -4696,15 +4710,30 @@ var css$2 = ".DataGridCell_module_srOnly__5fbf1b86 {\n position: absolute;\n w
|
|
|
4696
4710
|
var modules_e636700c = {"sr-only":"DataGridCell_module_srOnly__5fbf1b86","hidden":"DataGridCell_module_hidden__5fbf1b86","slide-in":"DataGridCell_module_slideIn__5fbf1b86","slide-out":"DataGridCell_module_slideOut__5fbf1b86","cell":"DataGridCell_module_cell__5fbf1b86","loading":"DataGridCell_module_loading__5fbf1b86","shimmer":"DataGridCell_module_shimmer__5fbf1b86"};
|
|
4697
4711
|
n(css$2,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
4698
4712
|
|
|
4699
|
-
var _excluded$3 = ["children", "className", "isLoading"];
|
|
4713
|
+
var _excluded$3 = ["children", "className", "isLoading", "spacing", "cellIndex", "columnLength", "disableContextMenuColumn"];
|
|
4700
4714
|
var DataGridCell = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
4701
4715
|
var children = _ref.children,
|
|
4702
4716
|
className = _ref.className,
|
|
4703
4717
|
isLoading = _ref.isLoading,
|
|
4718
|
+
spacing = _ref.spacing,
|
|
4719
|
+
cellIndex = _ref.cellIndex,
|
|
4720
|
+
columnLength = _ref.columnLength,
|
|
4721
|
+
disableContextMenuColumn = _ref.disableContextMenuColumn,
|
|
4704
4722
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
4705
4723
|
|
|
4724
|
+
var cellStyle = {};
|
|
4725
|
+
|
|
4726
|
+
if (cellIndex === 0) {
|
|
4727
|
+
cellStyle.paddingLeft = spacing == null ? void 0 : spacing.paddingLeft;
|
|
4728
|
+
}
|
|
4729
|
+
|
|
4730
|
+
if (cellIndex === columnLength && !disableContextMenuColumn || columnLength && cellIndex === columnLength - 1 && disableContextMenuColumn) {
|
|
4731
|
+
cellStyle.paddingRight = spacing == null ? void 0 : spacing.paddingRight;
|
|
4732
|
+
}
|
|
4733
|
+
|
|
4706
4734
|
return React__default["default"].createElement("td", _extends({}, rest, {
|
|
4707
4735
|
ref: ref,
|
|
4736
|
+
style: _extends({}, rest.style, cellStyle),
|
|
4708
4737
|
className: modules_e636700c['cell'] + " " + (className != null ? className : '')
|
|
4709
4738
|
}), isLoading && React__default["default"].createElement("div", {
|
|
4710
4739
|
className: modules_e636700c['loading'],
|
|
@@ -4720,17 +4749,29 @@ var css$1 = ".DataGridRow_module_row__620d6a13 {\n background-color: var(--data
|
|
|
4720
4749
|
var modules_fb55f208 = {"row":"DataGridRow_module_row__620d6a13","loading":"DataGridRow_module_loading__620d6a13"};
|
|
4721
4750
|
n(css$1,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
4722
4751
|
|
|
4723
|
-
var _excluded$2 = ["children", "className", "headers", "isLoading"];
|
|
4752
|
+
var _excluded$2 = ["children", "className", "headers", "isLoading", "spacing", "disableContextMenuColumn"];
|
|
4724
4753
|
var DataGridRow = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
4725
4754
|
var children = _ref.children,
|
|
4726
4755
|
className = _ref.className,
|
|
4727
4756
|
headers = _ref.headers,
|
|
4728
4757
|
isLoading = _ref.isLoading,
|
|
4758
|
+
spacing = _ref.spacing,
|
|
4759
|
+
disableContextMenuColumn = _ref.disableContextMenuColumn,
|
|
4729
4760
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
4730
4761
|
|
|
4731
4762
|
var visibleCells = React__default["default"].Children.map(children, function (child, index) {
|
|
4732
|
-
|
|
4733
|
-
|
|
4763
|
+
if (child) {
|
|
4764
|
+
var cellWithSpacing = React__default["default"].cloneElement(child, {
|
|
4765
|
+
spacing: spacing,
|
|
4766
|
+
cellIndex: index,
|
|
4767
|
+
columnLength: headers == null ? void 0 : headers.length,
|
|
4768
|
+
disableContextMenuColumn: disableContextMenuColumn
|
|
4769
|
+
});
|
|
4770
|
+
var visible = (headers == null ? void 0 : headers.length) > index ? !headers[index].hidden : true;
|
|
4771
|
+
return visible && cellWithSpacing;
|
|
4772
|
+
}
|
|
4773
|
+
|
|
4774
|
+
return null;
|
|
4734
4775
|
});
|
|
4735
4776
|
var classNames = [modules_fb55f208['row']];
|
|
4736
4777
|
className && classNames.push(className);
|
|
@@ -4745,7 +4786,7 @@ var css = ".DataGridBody_module_empty__243e0ebe {\n text-align: center;\n heig
|
|
|
4745
4786
|
var modules_532fe2cf = {"empty":"DataGridBody_module_empty__243e0ebe"};
|
|
4746
4787
|
n(css,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
4747
4788
|
|
|
4748
|
-
var _excluded$1 = ["children", "data", "headers", "isLoading", "disableContextMenuColumn", "emptyLabel"];
|
|
4789
|
+
var _excluded$1 = ["children", "data", "headers", "isLoading", "disableContextMenuColumn", "emptyLabel", "spacing"];
|
|
4749
4790
|
var skeletonLoadingRows = 9;
|
|
4750
4791
|
|
|
4751
4792
|
var DataGridBodyInner = function DataGridBodyInner(_ref, ref) {
|
|
@@ -4755,6 +4796,7 @@ var DataGridBodyInner = function DataGridBodyInner(_ref, ref) {
|
|
|
4755
4796
|
isLoading = _ref.isLoading,
|
|
4756
4797
|
disableContextMenuColumn = _ref.disableContextMenuColumn,
|
|
4757
4798
|
emptyLabel = _ref.emptyLabel,
|
|
4799
|
+
spacing = _ref.spacing,
|
|
4758
4800
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
4759
4801
|
|
|
4760
4802
|
var renderContent = function renderContent() {
|
|
@@ -4795,7 +4837,9 @@ var DataGridBodyInner = function DataGridBodyInner(_ref, ref) {
|
|
|
4795
4837
|
item: item,
|
|
4796
4838
|
index: index
|
|
4797
4839
|
}), {
|
|
4798
|
-
headers: headers
|
|
4840
|
+
headers: headers,
|
|
4841
|
+
spacing: spacing,
|
|
4842
|
+
disableContextMenuColumn: disableContextMenuColumn
|
|
4799
4843
|
});
|
|
4800
4844
|
});
|
|
4801
4845
|
};
|
|
@@ -4807,7 +4851,7 @@ var DataGridBodyInner = function DataGridBodyInner(_ref, ref) {
|
|
|
4807
4851
|
|
|
4808
4852
|
var DataGridBody = /*#__PURE__*/React__default["default"].forwardRef(DataGridBodyInner);
|
|
4809
4853
|
|
|
4810
|
-
var _excluded = ["children", "data", "initialSort", "onSort", "headers", "actions", "paginationProps", "disableContextMenuColumn", "isLoading", "enableMultiSorting", "emptyLabel"];
|
|
4854
|
+
var _excluded = ["children", "data", "initialSort", "onSort", "headers", "actions", "paginationProps", "disableContextMenuColumn", "isLoading", "enableMultiSorting", "emptyLabel", "spacing", "style"];
|
|
4811
4855
|
|
|
4812
4856
|
var DataGridInner = function DataGridInner(_ref, ref) {
|
|
4813
4857
|
var _paginationProps$clas;
|
|
@@ -4824,6 +4868,8 @@ var DataGridInner = function DataGridInner(_ref, ref) {
|
|
|
4824
4868
|
isLoading = _ref.isLoading,
|
|
4825
4869
|
enableMultiSorting = _ref.enableMultiSorting,
|
|
4826
4870
|
emptyLabel = _ref.emptyLabel,
|
|
4871
|
+
spacing = _ref.spacing,
|
|
4872
|
+
style = _ref.style,
|
|
4827
4873
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
4828
4874
|
|
|
4829
4875
|
if (!headers) {
|
|
@@ -4838,6 +4884,7 @@ var DataGridInner = function DataGridInner(_ref, ref) {
|
|
|
4838
4884
|
internalHeaders = _useState[0],
|
|
4839
4885
|
setInternalHeaders = _useState[1];
|
|
4840
4886
|
|
|
4887
|
+
var styleWithSpacing = useSpacing(spacing, style);
|
|
4841
4888
|
React.useEffect(function () {
|
|
4842
4889
|
return setInternalHeaders(headers);
|
|
4843
4890
|
}, [headers]);
|
|
@@ -4850,9 +4897,46 @@ var DataGridInner = function DataGridInner(_ref, ref) {
|
|
|
4850
4897
|
}));
|
|
4851
4898
|
};
|
|
4852
4899
|
|
|
4900
|
+
if (styleWithSpacing != null && styleWithSpacing.padding) {
|
|
4901
|
+
var splitPaddings = styleWithSpacing.padding.toString().split(' ');
|
|
4902
|
+
var paddingLeftIndex = 0;
|
|
4903
|
+
|
|
4904
|
+
if (splitPaddings.length >= 2) {
|
|
4905
|
+
paddingLeftIndex = 1;
|
|
4906
|
+
}
|
|
4907
|
+
|
|
4908
|
+
if (splitPaddings.length === 4) {
|
|
4909
|
+
paddingLeftIndex = 3;
|
|
4910
|
+
}
|
|
4911
|
+
|
|
4912
|
+
Object.defineProperties(styleWithSpacing, {
|
|
4913
|
+
paddingTop: {
|
|
4914
|
+
value: splitPaddings[0]
|
|
4915
|
+
},
|
|
4916
|
+
paddingRight: {
|
|
4917
|
+
value: splitPaddings[splitPaddings.length - 1 > 0 ? 1 : 0]
|
|
4918
|
+
},
|
|
4919
|
+
paddingBottom: {
|
|
4920
|
+
value: splitPaddings[splitPaddings.length / 3 >= 1 ? 2 : 0]
|
|
4921
|
+
},
|
|
4922
|
+
paddingLeft: {
|
|
4923
|
+
value: splitPaddings[paddingLeftIndex]
|
|
4924
|
+
}
|
|
4925
|
+
});
|
|
4926
|
+
}
|
|
4927
|
+
|
|
4853
4928
|
return React__default["default"].createElement("div", _extends({}, rest, {
|
|
4854
|
-
|
|
4929
|
+
className: modules_b8d590e8['grid-wrapper'],
|
|
4930
|
+
ref: ref,
|
|
4931
|
+
style: {
|
|
4932
|
+
paddingTop: styleWithSpacing == null ? void 0 : styleWithSpacing.paddingTop,
|
|
4933
|
+
paddingBottom: styleWithSpacing == null ? void 0 : styleWithSpacing.paddingBottom
|
|
4934
|
+
}
|
|
4855
4935
|
}), React__default["default"].createElement(DataGridActions, _extends({}, actions, {
|
|
4936
|
+
style: {
|
|
4937
|
+
paddingLeft: styleWithSpacing == null ? void 0 : styleWithSpacing.paddingLeft,
|
|
4938
|
+
paddingRight: styleWithSpacing == null ? void 0 : styleWithSpacing.paddingRight
|
|
4939
|
+
},
|
|
4856
4940
|
headers: internalHeaders,
|
|
4857
4941
|
onColumnToggled: onColumnToggled
|
|
4858
4942
|
})), React__default["default"].createElement("div", {
|
|
@@ -4864,15 +4948,21 @@ var DataGridInner = function DataGridInner(_ref, ref) {
|
|
|
4864
4948
|
initialSort: initialSort,
|
|
4865
4949
|
onSort: onSort,
|
|
4866
4950
|
disableContextMenuColumn: disableContextMenuColumn,
|
|
4867
|
-
enableMultiSorting: enableMultiSorting
|
|
4951
|
+
enableMultiSorting: enableMultiSorting,
|
|
4952
|
+
spacing: styleWithSpacing
|
|
4868
4953
|
}), React__default["default"].createElement(DataGridBody, {
|
|
4869
4954
|
children: children,
|
|
4870
4955
|
data: data,
|
|
4871
4956
|
headers: internalHeaders,
|
|
4872
4957
|
isLoading: isLoading,
|
|
4873
4958
|
disableContextMenuColumn: disableContextMenuColumn,
|
|
4874
|
-
emptyLabel: emptyLabel
|
|
4959
|
+
emptyLabel: emptyLabel,
|
|
4960
|
+
spacing: styleWithSpacing
|
|
4875
4961
|
}))), paginationProps && !isLoading && React__default["default"].createElement(Pagination, _extends({}, paginationProps, {
|
|
4962
|
+
style: _extends({}, paginationProps.style, {
|
|
4963
|
+
paddingLeft: styleWithSpacing == null ? void 0 : styleWithSpacing.paddingLeft,
|
|
4964
|
+
paddingRight: styleWithSpacing == null ? void 0 : styleWithSpacing.paddingRight
|
|
4965
|
+
}),
|
|
4876
4966
|
className: modules_b8d590e8['pagination'] + " " + ((_paginationProps$clas = paginationProps.className) != null ? _paginationProps$clas : '')
|
|
4877
4967
|
})));
|
|
4878
4968
|
};
|