@orfium/ictinus 5.7.2 → 5.8.0
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/index.js +7476 -6848
- package/dist/index.umd.cjs +85 -56
- package/dist/src/components/ButtonBase/constants.d.ts +1 -1
- package/dist/src/components/DatePicker/DatePicker.types.d.ts +2 -0
- package/dist/src/components/Label/Label.d.ts +1 -1
- package/dist/src/components/List/components/ListItemWrapper/ListItemWrapper.style.d.ts +1 -1
- package/dist/src/components/List/types.d.ts +1 -1
- package/dist/src/components/List/utils.d.ts +1 -1
- package/dist/src/components/Select/components/SelectMenu/SelectMenu.d.ts +1 -1
- package/dist/src/components/Table/Table.d.ts +3 -68
- package/dist/src/components/Table/Table.style.d.ts +6 -5
- package/dist/src/components/Table/components/TBody/TBody.d.ts +15 -0
- package/dist/src/components/Table/components/TBody/TBody.stories.d.ts +16 -0
- package/dist/src/components/Table/components/TBody/TBody.style.d.ts +6 -0
- package/dist/src/components/Table/components/TBody/index.d.ts +1 -0
- package/dist/src/components/Table/components/TD/TD.d.ts +24 -0
- package/dist/src/components/Table/components/TD/TD.stories.d.ts +22 -0
- package/dist/src/components/Table/components/TD/TD.style.d.ts +14 -0
- package/dist/src/components/Table/components/TD/index.d.ts +1 -0
- package/dist/src/components/Table/components/TH/TH.d.ts +29 -0
- package/dist/src/components/Table/components/TH/TH.stories.d.ts +25 -0
- package/dist/src/components/Table/components/TH/TH.style.d.ts +15 -0
- package/dist/src/components/Table/components/TH/components/SortingButton/SortingButton.d.ts +15 -0
- package/dist/src/components/Table/components/TH/components/SortingButton/SortingButton.style.d.ts +4 -0
- package/dist/src/components/Table/components/TH/components/SortingButton/index.d.ts +1 -0
- package/dist/src/components/Table/components/TH/components/THOptions/THOptions.d.ts +13 -0
- package/dist/src/components/Table/components/TH/components/THOptions/THOptions.style.d.ts +3 -0
- package/dist/src/components/Table/components/TH/components/THOptions/components/SortingOption.d.ts +8 -0
- package/dist/src/components/Table/components/TH/components/THOptions/components/index.d.ts +1 -0
- package/dist/src/components/Table/components/TH/components/THOptions/index.d.ts +1 -0
- package/dist/src/components/Table/components/TH/components/index.d.ts +1 -0
- package/dist/src/components/Table/components/TH/index.d.ts +1 -0
- package/dist/src/components/Table/components/THead/THead.d.ts +12 -0
- package/dist/src/components/Table/components/THead/THead.stories.d.ts +13 -0
- package/dist/src/components/Table/components/THead/THead.style.d.ts +7 -0
- package/dist/src/components/Table/components/THead/index.d.ts +1 -0
- package/dist/src/components/Table/components/TPagination/TPagination.d.ts +9 -0
- package/dist/src/components/Table/components/TPagination/TPagination.style.d.ts +8 -0
- package/dist/src/components/Table/components/TPagination/index.d.ts +1 -0
- package/dist/src/components/Table/components/TR/TR.d.ts +17 -0
- package/dist/src/components/Table/components/TR/TR.stories.d.ts +13 -0
- package/dist/src/components/Table/components/TR/TR.style.d.ts +5 -0
- package/dist/src/components/Table/components/TR/index.d.ts +1 -0
- package/dist/src/components/Table/components/TTitle/TTitle.d.ts +12 -0
- package/dist/src/components/Table/components/TTitle/TTitle.stories.d.ts +16 -0
- package/dist/src/components/Table/components/TTitle/TTitle.style.d.ts +5 -0
- package/dist/src/components/Table/components/TTitle/components/ColumnChooser/ColumnChooser.d.ts +11 -0
- package/dist/src/components/Table/components/TTitle/components/ColumnChooser/ColumnChooser.style.d.ts +3 -0
- package/dist/src/components/Table/components/TTitle/components/ColumnChooser/index.d.ts +1 -0
- package/dist/src/components/Table/components/TTitle/components/utils.d.ts +1 -0
- package/dist/src/components/Table/components/TTitle/index.d.ts +1 -0
- package/dist/src/components/Table/components/index.d.ts +7 -0
- package/dist/src/components/Table/constants.d.ts +35 -0
- package/dist/src/components/Table/docs/Basics/Basics.stories.d.ts +14 -0
- package/dist/src/components/Table/docs/Columns/Columns.stories.d.ts +63 -0
- package/dist/src/components/Table/docs/Header/Header.stories.d.ts +22 -0
- package/dist/src/components/Table/docs/Pagination/Pagination.stories.d.ts +29 -0
- package/dist/src/components/Table/docs/RowsAndCells/RowsAndCells.stories.d.ts +73 -0
- package/dist/src/components/Table/docs/Showcase/Showcase.stories.d.ts +86 -0
- package/dist/src/components/Table/hooks/index.d.ts +1 -0
- package/dist/src/components/Table/hooks/useTable.d.ts +23 -0
- package/dist/src/components/Table/hooks/useTable.stories.d.ts +13 -0
- package/dist/src/components/Table/index.d.ts +4 -1
- package/dist/src/components/Table/types.d.ts +109 -13
- package/dist/src/components/Table/utils/TableStoryComponents.d.ts +12 -8
- package/dist/src/components/{Table → TableV4}/TableRowContext.d.ts +1 -1
- package/dist/src/components/TableV4/TableV4.d.ts +70 -0
- package/dist/src/components/{Table/Table.stories.d.ts → TableV4/TableV4.stories.d.ts} +1 -1
- package/dist/src/components/TableV4/TableV4.style.d.ts +6 -0
- package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/RenderRowOrNestedRow.d.ts +1 -1
- package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.d.ts +1 -1
- package/dist/src/components/{Table → TableV4}/components/TableRowWrapper/TableRowWrapper.d.ts +1 -1
- package/dist/src/components/TableV4/index.d.ts +3 -0
- package/dist/src/components/TableV4/types.d.ts +18 -0
- package/dist/src/components/TableV4/utils/TableStoryComponents.d.ts +10 -0
- package/dist/src/components/TextField/TextField.style.d.ts +4 -1
- package/dist/src/components/TextInputBase/TextInputBase.d.ts +1 -2
- package/dist/src/components/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/src/components/Tooltip/Tooltip.types.d.ts +2 -0
- package/dist/src/components/utils/PositionInScreen/PositionInScreen.d.ts +1 -0
- package/dist/src/components/utils/PositionInScreen/hooks.d.ts +1 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/utils/date.d.ts +2 -2
- package/package.json +7 -7
- package/dist/style.css +0 -1
- /package/dist/src/components/{Table/Table.test.d.ts → TableV4/TableV4.test.d.ts} +0 -0
- /package/dist/src/components/{Table → TableV4}/components/ExtendedColumnItem/ExtendedColumnItem.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/ExtendedColumnItem/ExtendedColumnItem.style.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/ExtendedColumnItem/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/RenderRowOrNestedRow.style.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.style.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/components/ContentCell/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/components/ExpandedButtonCell/ExpandedButtonCell.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/components/ExpandedButtonCell/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/TableCell/TableCell.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/TableCell/TableCell.style.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/TableCell/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/TableCell/utils.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/TableRow/TableRow.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/TableRow/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/TableRowWrapper/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/utils/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/utils/utils.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SemanticColorsKey } from '../../theme/tokens/semantic/colors';
|
|
2
2
|
import { SemanticTypographyKey } from '../../theme/tokens/semantic/typography';
|
|
3
|
-
import { ComponentSizes } from 'types';
|
|
3
|
+
import { ComponentSizes } from '../../utils/types';
|
|
4
4
|
import { ButtonTypes } from '../Button/Button.types';
|
|
5
5
|
|
|
6
6
|
export declare const buttonColorToSemColor: Record<ButtonTypes, Record<string, SemanticColorsKey>>;
|
|
@@ -32,6 +32,8 @@ export type DatePickerProps = {
|
|
|
32
32
|
/** if the datepicker's default date is today instead of placeholder text */
|
|
33
33
|
/** @deprecated This prop is being deprecated and is not used as you can manipulate date from value, will be removed in the future **/
|
|
34
34
|
isDefaultNow?: boolean;
|
|
35
|
+
/** placement of the datepicker which will open. Either above of the parent or below. Defaults to bottom */
|
|
36
|
+
placement?: 'top' | 'bottom';
|
|
35
37
|
/** Style properties for the DatePicker with a filter base */
|
|
36
38
|
filterConfig?: {
|
|
37
39
|
/** The filter's label */
|
|
@@ -6,4 +6,4 @@ export declare const ListItemWrapperStyled: import('@emotion/styled').StyledComp
|
|
|
6
6
|
} & {
|
|
7
7
|
rowSize?: ListRowSize;
|
|
8
8
|
isDisabled: boolean;
|
|
9
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "color" | "value" | "hidden" | "onClick" | "children" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "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-rowindextext" | "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" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "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" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "key" | "css">, {}>;
|
|
9
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "color" | "value" | "hidden" | "onClick" | "children" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "data-tooltip-id" | "data-tooltip-place" | "data-tooltip-content" | "data-tooltip-html" | "data-tooltip-variant" | "data-tooltip-offset" | "data-tooltip-wrapper" | "data-tooltip-events" | "data-tooltip-position-strategy" | "data-tooltip-delay-show" | "data-tooltip-delay-hide" | "data-tooltip-float" | "data-tooltip-hidden" | "data-tooltip-class-name" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "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-rowindextext" | "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" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "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" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "key" | "css">, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from '@emotion/react';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
import { ComponentSizes } from 'types';
|
|
3
|
+
import { ComponentSizes } from '../../../../utils/types';
|
|
4
4
|
import { SelectOption } from '../../types';
|
|
5
5
|
import { TextInputBaseProps } from '../../../TextInputBase';
|
|
6
6
|
|
|
@@ -1,70 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ExtendedColumn, Sort, SortingOrder } from './types';
|
|
1
|
+
import { NoUndefined, TableProps } from '.';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/** the content of the cell to be displayed. You can pass also custom component. `ContentComponent: (data: Cell<T>) => React.ReactNode`. The type defines that will be a function that returns cell to use cell data. */
|
|
7
|
-
content: number | string | ContentComponent<T>;
|
|
8
|
-
/** the truncated tooltip content, you can override it or it will take the content @default content */
|
|
9
|
-
tooltipContent?: string;
|
|
10
|
-
/** show or not the truncated tooltip @default true if the text is truncated */
|
|
11
|
-
hasTruncatedTooltip?: boolean;
|
|
12
|
-
/** the colSpan of the cell to be displayed */
|
|
13
|
-
colSpan?: number;
|
|
14
|
-
/** the type of the cell to be displayed @default normal */
|
|
15
|
-
type?: 'financial' | 'normal';
|
|
16
|
-
/** the alignment of the cell to be displayed */
|
|
17
|
-
align?: 'left' | 'right';
|
|
18
|
-
/** the width of the cell to be displayed */
|
|
19
|
-
widthPercentage?: number;
|
|
20
|
-
};
|
|
21
|
-
export type Row<T> = {
|
|
22
|
-
/** the id of the row */
|
|
23
|
-
id: string | number;
|
|
24
|
-
/** the cells of the row, see Cell type for each */
|
|
25
|
-
cells: Cell<T>[];
|
|
26
|
-
/** the expanded content of the row, if its expandable */
|
|
27
|
-
expanded?: ({ row, isSelected, isExpanded, }: {
|
|
28
|
-
row: Row<T>;
|
|
29
|
-
isSelected: boolean;
|
|
30
|
-
isExpanded: boolean;
|
|
31
|
-
}) => React.ReactNode;
|
|
32
|
-
rowSpan?: number;
|
|
33
|
-
};
|
|
34
|
-
export type Selection = string | number;
|
|
35
|
-
export type TableType = 'normal' | 'nested-header';
|
|
36
|
-
export type TableProps<T> = {
|
|
37
|
-
/** The data for the table that needs to display. */
|
|
38
|
-
data: Row<T>[];
|
|
39
|
-
/** An array of titles or objects to define columns. */
|
|
40
|
-
columns: (string | ExtendedColumn)[];
|
|
41
|
-
/** Boolean defining if the header is fixed or not. */
|
|
42
|
-
hasFixedHeader?: boolean;
|
|
43
|
-
/** Boolean defining if the CTA's container is fixed or not. */
|
|
44
|
-
hasFixedCTA?: boolean;
|
|
45
|
-
/** Type of the table which determine the headers display. */
|
|
46
|
-
type?: TableType;
|
|
47
|
-
/** Boolean defining the padding all over the table cells and rows. */
|
|
48
|
-
isPadded?: boolean;
|
|
49
|
-
/** Function that once provided on each check will return the selection. */
|
|
50
|
-
onCheck?: (data: Selection[]) => void;
|
|
51
|
-
/** Function that once provided will provide the currently selected sorting configuration */
|
|
52
|
-
onSort?: (column: string, order: SortingOrder) => void;
|
|
53
|
-
/** Initial sorting column and order. Should be provided along with onSort */
|
|
54
|
-
initialSort?: Sort;
|
|
55
|
-
/** If provided sort will only work with this option (asc or desc only). By default supports bidirectional sort*/
|
|
56
|
-
sortDir?: SortingOrder;
|
|
57
|
-
/** Top left text on the table - showing a counter, text etc. */
|
|
58
|
-
topLeftText?: string | React.ReactElement;
|
|
59
|
-
/** Top right area to define a custom component for buttons or other usage. */
|
|
60
|
-
topRightArea?: (data: Row<T>[], selectionData?: Selection[]) => React.ReactNode;
|
|
61
|
-
/** Action cell width for Table with Expandable Rows (in %)*/
|
|
62
|
-
actionWidth?: number;
|
|
63
|
-
/** If true, table's expandable rows will be expanded on initial render. */
|
|
64
|
-
isInitiallyExpanded?: boolean;
|
|
65
|
-
/** Data test id prefix for all th/td elements */
|
|
66
|
-
dataTestIdPrefix?: string;
|
|
67
|
-
};
|
|
68
|
-
declare function Table<T>({ data, columns, type, hasFixedHeader, hasFixedCTA, onCheck, isPadded, onSort, initialSort, sortDir, topLeftText, topRightArea, actionWidth, isInitiallyExpanded, dataTestIdPrefix, }: TableProps<T>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
69
|
-
declare const _default: React.MemoExoticComponent<typeof Table>;
|
|
3
|
+
declare const Table: <TData extends NoUndefined<TData>>({ type, rowsConfig, data, columns, rowSize, columnsConfig, sorting, hasStickyHeader, pagination, sx, dataTestPrefixId, }: TableProps<TData>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const _default: typeof Table;
|
|
70
5
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import { Theme } from '
|
|
1
|
+
import { CSSObject, SerializedStyles } from '@emotion/react';
|
|
2
|
+
import { Theme } from 'theme';
|
|
3
3
|
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
4
|
+
export declare const tableContainer: () => (theme: Theme) => SerializedStyles;
|
|
5
|
+
export declare const tableStyles: ({ sx }: {
|
|
6
|
+
sx?: CSSObject;
|
|
7
|
+
}) => SerializedStyles;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CSSObject } from '@emotion/react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { TableProps } from '../../types';
|
|
4
|
+
|
|
5
|
+
export type TBodyProps = Pick<TableProps<any>, 'hasStickyHeader'> & {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/** Style overrides */
|
|
8
|
+
sx?: CSSObject;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<TableProps<any>, "hasStickyHeader"> & {
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
/** Style overrides */
|
|
13
|
+
sx?: CSSObject;
|
|
14
|
+
} & React.RefAttributes<HTMLTableSectionElement>>>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<Pick<import('../..').TableProps<any>, "hasStickyHeader"> & {
|
|
4
|
+
children?: import('react').ReactNode;
|
|
5
|
+
sx?: import('@emotion/serialize').CSSObject;
|
|
6
|
+
} & import('react').RefAttributes<HTMLTableSectionElement>>>;
|
|
7
|
+
parameters: {
|
|
8
|
+
storyshots: {
|
|
9
|
+
disable: boolean;
|
|
10
|
+
};
|
|
11
|
+
controls: {
|
|
12
|
+
disable: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TBody';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CSSObject } from '@emotion/react';
|
|
2
|
+
import { RowSize, TestProps } from 'index';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
|
|
5
|
+
type Props = {
|
|
6
|
+
/** The html colSpan attribute */
|
|
7
|
+
colSpan?: number;
|
|
8
|
+
/** Size of Row */
|
|
9
|
+
rowSize?: RowSize;
|
|
10
|
+
/** The width of the cell */
|
|
11
|
+
width?: number;
|
|
12
|
+
/** Style overrides */
|
|
13
|
+
sx?: CSSObject;
|
|
14
|
+
/** Column Id */
|
|
15
|
+
columnId?: string;
|
|
16
|
+
/** Row Id */
|
|
17
|
+
rowId?: string;
|
|
18
|
+
/** Whether is a row details td element */
|
|
19
|
+
isDetails?: boolean;
|
|
20
|
+
/** Metadata for the td element */
|
|
21
|
+
metaData?: any;
|
|
22
|
+
} & TestProps;
|
|
23
|
+
declare const _default: React.NamedExoticComponent<React.PropsWithChildren<Props>>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import('react').NamedExoticComponent<import('react').PropsWithChildren<{
|
|
4
|
+
colSpan?: number;
|
|
5
|
+
rowSize?: import('../..').RowSize;
|
|
6
|
+
width?: number;
|
|
7
|
+
sx?: import('@emotion/serialize').CSSObject;
|
|
8
|
+
columnId?: string;
|
|
9
|
+
rowId?: string;
|
|
10
|
+
isDetails?: boolean;
|
|
11
|
+
metaData?: any;
|
|
12
|
+
} & import('../../../..').TestProps>>;
|
|
13
|
+
parameters: {
|
|
14
|
+
storyshots: {
|
|
15
|
+
disable: boolean;
|
|
16
|
+
};
|
|
17
|
+
controls: {
|
|
18
|
+
disable: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CSSObject, SerializedStyles, Theme } from '@emotion/react';
|
|
2
|
+
import { ContentAlign, TableProps } from '../..';
|
|
3
|
+
|
|
4
|
+
export declare const simpleTdContainer: () => (theme: Theme) => SerializedStyles;
|
|
5
|
+
export declare const tdContainer: ({ rowSize, width, isCheckbox, isExpandedButton, sx, }: Pick<TableProps<any>, "rowSize"> & {
|
|
6
|
+
isCheckbox?: boolean;
|
|
7
|
+
isExpandedButton?: boolean;
|
|
8
|
+
width?: number;
|
|
9
|
+
isLastCell?: boolean;
|
|
10
|
+
sx?: CSSObject;
|
|
11
|
+
}) => (theme: Theme) => SerializedStyles;
|
|
12
|
+
export declare const tdContent: ({ contentAlign }: {
|
|
13
|
+
contentAlign: ContentAlign;
|
|
14
|
+
}) => SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TD';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CSSObject } from '@emotion/react';
|
|
2
|
+
import { ColumnSort } from '@tanstack/react-table';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
import { RowSize } from '../../types';
|
|
5
|
+
import { TestProps } from '../../../../utils/types';
|
|
6
|
+
|
|
7
|
+
declare const _default: React.NamedExoticComponent<React.PropsWithChildren<{
|
|
8
|
+
/** The html colSpan attribute */
|
|
9
|
+
colSpan?: number;
|
|
10
|
+
/** Size of Row */
|
|
11
|
+
rowSize: RowSize;
|
|
12
|
+
/** Width of the cell */
|
|
13
|
+
width?: number;
|
|
14
|
+
/** Sorting callback */
|
|
15
|
+
onSort?: (desc?: boolean, isMulti?: boolean) => void;
|
|
16
|
+
/** Whether multi-sorting is enabled */
|
|
17
|
+
isMultiSortable?: boolean;
|
|
18
|
+
/** The Sorting State of the column */
|
|
19
|
+
colSortingState?: ColumnSort & {
|
|
20
|
+
badge?: number;
|
|
21
|
+
};
|
|
22
|
+
/** Callback to reset sorting for this column */
|
|
23
|
+
resetSorting?: () => void;
|
|
24
|
+
/** Metadata for the th element */
|
|
25
|
+
metaData?: any;
|
|
26
|
+
/** Style overrides */
|
|
27
|
+
sx?: CSSObject;
|
|
28
|
+
} & TestProps & Pick<Partial<Omit<React.HTMLProps<HTMLDivElement>, "color" | "css" | "size">>, "onClick" | "id">>>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import('react').NamedExoticComponent<import('react').PropsWithChildren<{
|
|
4
|
+
colSpan?: number;
|
|
5
|
+
rowSize: import('../..').RowSize;
|
|
6
|
+
width?: number;
|
|
7
|
+
onSort?: (desc?: boolean, isMulti?: boolean) => void;
|
|
8
|
+
isMultiSortable?: boolean;
|
|
9
|
+
colSortingState?: import('@tanstack/table-core').ColumnSort & {
|
|
10
|
+
badge?: number;
|
|
11
|
+
};
|
|
12
|
+
resetSorting?: () => void;
|
|
13
|
+
metaData?: any;
|
|
14
|
+
sx?: import('@emotion/serialize').CSSObject;
|
|
15
|
+
} & import('../../../..').TestProps & Pick<Partial<Omit<import('react').HTMLProps<HTMLDivElement>, "color" | "css" | "size">>, "onClick" | "id">>>;
|
|
16
|
+
parameters: {
|
|
17
|
+
storyshots: {
|
|
18
|
+
disable: boolean;
|
|
19
|
+
};
|
|
20
|
+
controls: {
|
|
21
|
+
disable: boolean;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CSSObject, SerializedStyles, Theme } from '@emotion/react';
|
|
2
|
+
import { TableProps } from '../..';
|
|
3
|
+
|
|
4
|
+
export declare const thContainer: ({ isCheckbox, isExpandedButton, rowSize, width, hasVisibleOptions, isSortable, sx, }: Pick<TableProps<any>, "rowSize"> & {
|
|
5
|
+
isCheckbox?: boolean;
|
|
6
|
+
isExpandedButton?: boolean;
|
|
7
|
+
width?: number;
|
|
8
|
+
hasVisibleOptions?: boolean;
|
|
9
|
+
isSortable?: boolean;
|
|
10
|
+
sx?: CSSObject;
|
|
11
|
+
}) => (theme: Theme) => SerializedStyles;
|
|
12
|
+
export declare const thContent: ({ contentAlign }: {
|
|
13
|
+
contentAlign: string;
|
|
14
|
+
}) => (theme: Theme) => SerializedStyles;
|
|
15
|
+
export declare const optionsContainer: () => SerializedStyles;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TestProps } from '../../../../../../utils/types';
|
|
3
|
+
|
|
4
|
+
type Props = {
|
|
5
|
+
/** ID of the columns */
|
|
6
|
+
id: string;
|
|
7
|
+
/** Whether the sorting direction is descending or not */
|
|
8
|
+
isDesc: boolean;
|
|
9
|
+
/** Callback for sorting button */
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
/** Indicates the sorting order */
|
|
12
|
+
badge?: number;
|
|
13
|
+
} & TestProps;
|
|
14
|
+
declare const SortingButton: React.FC<Props>;
|
|
15
|
+
export default SortingButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SortingButton';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TestProps } from '../../../../../../utils/types';
|
|
3
|
+
|
|
4
|
+
type Props = {
|
|
5
|
+
/** Whether multi-sorting is enabled */
|
|
6
|
+
isMultiSortable?: boolean;
|
|
7
|
+
/** Sorting Callback */
|
|
8
|
+
onSort: (desc?: boolean, isMulti?: boolean) => void;
|
|
9
|
+
/** External callback for when the Dropdown Button is clicked */
|
|
10
|
+
onButtonClick?: (value: boolean) => void;
|
|
11
|
+
} & TestProps;
|
|
12
|
+
declare const THOptions: React.FC<Props>;
|
|
13
|
+
export default THOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SortingOption } from './SortingOption';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './THOptions';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as THOptions } from './THOptions';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TH';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CSSObject } from '@emotion/react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { TableProps } from '../../types';
|
|
4
|
+
|
|
5
|
+
export type THeadProps = Pick<TableProps<any>, 'hasStickyHeader'> & {
|
|
6
|
+
/** Whether the tbody has a scrollbar. When true, a padding-right is added to the thead in order for the element to align with the tbody correctly */
|
|
7
|
+
hasScrollbar?: boolean;
|
|
8
|
+
/** Style overrides */
|
|
9
|
+
sx?: CSSObject;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: React.NamedExoticComponent<React.PropsWithChildren<THeadProps>>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import('react').NamedExoticComponent<import('react').PropsWithChildren<import('./THead').THeadProps>>;
|
|
4
|
+
parameters: {
|
|
5
|
+
storyshots: {
|
|
6
|
+
disable: boolean;
|
|
7
|
+
};
|
|
8
|
+
controls: {
|
|
9
|
+
disable: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SerializedStyles } from '@emotion/react';
|
|
2
|
+
import { Theme } from 'theme';
|
|
3
|
+
import { THeadProps } from './THead';
|
|
4
|
+
|
|
5
|
+
export declare const tHeadContainer: ({ hasStickyHeader, hasScrollbar, sx, }: Pick<THeadProps, "hasStickyHeader" | "sx"> & {
|
|
6
|
+
hasScrollbar?: boolean;
|
|
7
|
+
}) => (theme: Theme) => SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './THead';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TableProps } from '../../types';
|
|
2
|
+
import { TestProps } from '../../../../utils/types';
|
|
3
|
+
|
|
4
|
+
export type TPaginationProps = Pick<TableProps<any>, 'pagination'> & {
|
|
5
|
+
/** Whether the pagination footer is sticky */
|
|
6
|
+
isSticky?: boolean;
|
|
7
|
+
} & TestProps;
|
|
8
|
+
declare const TPagination: React.FC<TPaginationProps>;
|
|
9
|
+
export default TPagination;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SerializedStyles, Theme } from '@emotion/react';
|
|
2
|
+
import { TPaginationProps } from './TPagination';
|
|
3
|
+
|
|
4
|
+
export declare const paginationContainer: ({ isSticky }: Pick<TPaginationProps, "isSticky">) => (theme: Theme) => SerializedStyles;
|
|
5
|
+
export declare const itemsPerPageContainer: () => (theme: Theme) => SerializedStyles;
|
|
6
|
+
export declare const counterContainer: () => (theme: Theme) => SerializedStyles;
|
|
7
|
+
export declare const counterWrapper: () => (theme: Theme) => SerializedStyles;
|
|
8
|
+
export declare const buttonsContainer: () => SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TPagination';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CSSObject } from '@emotion/react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
4
|
+
export type TRProps = {
|
|
5
|
+
/** Whether the row is expandable */
|
|
6
|
+
isExpandable?: boolean;
|
|
7
|
+
/** Whether the row is expanded */
|
|
8
|
+
isExpanded?: boolean;
|
|
9
|
+
/** Whether the row is selected */
|
|
10
|
+
isSelected?: boolean;
|
|
11
|
+
/** Whether the row is selectable */
|
|
12
|
+
isSelectable?: boolean;
|
|
13
|
+
/** Style overrides */
|
|
14
|
+
sx?: CSSObject;
|
|
15
|
+
};
|
|
16
|
+
declare const _default: React.NamedExoticComponent<React.PropsWithChildren<TRProps & Pick<Partial<Omit<React.HTMLProps<HTMLDivElement>, "color" | "css" | "size">>, "onClick">>>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import('react').NamedExoticComponent<import('react').PropsWithChildren<import('./TR').TRProps & Pick<Partial<Omit<import('react').HTMLProps<HTMLDivElement>, "color" | "css" | "size">>, "onClick">>>;
|
|
4
|
+
parameters: {
|
|
5
|
+
storyshots: {
|
|
6
|
+
disable: boolean;
|
|
7
|
+
};
|
|
8
|
+
controls: {
|
|
9
|
+
disable: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SerializedStyles } from '@emotion/react';
|
|
2
|
+
import { Theme } from 'theme';
|
|
3
|
+
import { TRProps } from './TR';
|
|
4
|
+
|
|
5
|
+
export declare const trContainer: ({ isExpandable, isSelected, isExpanded, isSelectable, sx, }: Pick<TRProps, "sx" | "isSelectable" | "isSelected" | "isExpandable" | "isExpanded">) => (theme: Theme) => SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TR';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TableProps } from '../../types';
|
|
3
|
+
import { TestProps } from '../../../../utils/types';
|
|
4
|
+
|
|
5
|
+
type Props = Pick<TableProps<any>, 'columnsConfig' | 'columns' | 'rowsConfig' | 'type'> & {
|
|
6
|
+
/** Element that that serves as the positioning boundary of the ColumnChooser Menu */
|
|
7
|
+
containerRef: React.MutableRefObject<any>;
|
|
8
|
+
/** Number of rows */
|
|
9
|
+
rowsCount?: number;
|
|
10
|
+
} & TestProps;
|
|
11
|
+
declare const _default: React.NamedExoticComponent<React.PropsWithChildren<Props>>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import('react').NamedExoticComponent<import('react').PropsWithChildren<Pick<import('../..').TableProps<any>, "type" | "columns" | "rowsConfig" | "columnsConfig"> & {
|
|
4
|
+
containerRef: import('react').MutableRefObject<any>;
|
|
5
|
+
rowsCount?: number;
|
|
6
|
+
} & import('../../../..').TestProps>>;
|
|
7
|
+
parameters: {
|
|
8
|
+
storyshots: {
|
|
9
|
+
disable: boolean;
|
|
10
|
+
};
|
|
11
|
+
controls: {
|
|
12
|
+
disable: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SerializedStyles, Theme } from '@emotion/react';
|
|
2
|
+
|
|
3
|
+
export declare const tTitleContainer: () => (theme: Theme) => SerializedStyles;
|
|
4
|
+
export declare const titleContent: () => (theme: Theme) => SerializedStyles;
|
|
5
|
+
export declare const actionsContent: () => (theme: Theme) => SerializedStyles;
|
package/dist/src/components/Table/components/TTitle/components/ColumnChooser/ColumnChooser.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TableProps } from '../../../../types';
|
|
3
|
+
import { TestProps } from '../../../../../../utils/types';
|
|
4
|
+
|
|
5
|
+
type Props = Pick<TableProps<any>, 'columns' | 'columnsConfig'> & {
|
|
6
|
+
/** Element that that serves as the positioning boundary of the ColumnChooser Menu */
|
|
7
|
+
containerRef: React.MutableRefObject<any>;
|
|
8
|
+
} & TestProps;
|
|
9
|
+
/** @TODO create a generic Popover component */
|
|
10
|
+
declare const ColumnChooser: React.FC<Props>;
|
|
11
|
+
export default ColumnChooser;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ColumnChooser';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const flattenColumns: (columns: any) => any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TTitle';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as TBody } from './TBody';
|
|
2
|
+
export { default as THead } from './THead';
|
|
3
|
+
export { default as TH } from './TH';
|
|
4
|
+
export { default as TR } from './TR';
|
|
5
|
+
export { default as TD } from './TD';
|
|
6
|
+
export { default as TTitle } from './TTitle';
|
|
7
|
+
export { default as TPagination } from './TPagination';
|