@consta/uikit 3.9.0 → 3.9.1
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/Attach/package.json +1 -1
- package/Attachment/package.json +1 -1
- package/Avatar/package.json +1 -1
- package/Badge/package.json +1 -1
- package/BasicSelectDeprecated/package.json +1 -1
- package/Breadcrumbs/package.json +1 -1
- package/Button/package.json +1 -1
- package/CHANGELOG.md +5 -7
- package/Calendar/package.json +1 -1
- package/Card/package.json +1 -1
- package/Checkbox/package.json +1 -1
- package/CheckboxGroup/package.json +1 -1
- package/ChoiceGroup/package.json +1 -1
- package/Collapse/package.json +1 -1
- package/CollapseGroup/package.json +1 -1
- package/Combobox/package.json +1 -1
- package/ComboboxDeprecated/package.json +1 -1
- package/ContextMenu/package.json +1 -1
- package/DatePickerCanary/package.json +1 -1
- package/DateTimeCanary/package.json +1 -1
- package/DragNDropField/package.json +1 -1
- package/EventInterceptor/package.json +1 -1
- package/FieldCaption/package.json +1 -1
- package/FieldLabel/package.json +1 -1
- package/File/package.json +1 -1
- package/FileField/package.json +1 -1
- package/FileIcon/package.json +1 -1
- package/FileIconAvi/package.json +1 -1
- package/FileIconBmp/package.json +1 -1
- package/FileIconCsv/package.json +1 -1
- package/FileIconDoc/package.json +1 -1
- package/FileIconExe/package.json +1 -1
- package/FileIconGif/package.json +1 -1
- package/FileIconJpg/package.json +1 -1
- package/FileIconJson/package.json +1 -1
- package/FileIconLoading/package.json +1 -1
- package/FileIconMov/package.json +1 -1
- package/FileIconMp3/package.json +1 -1
- package/FileIconMp4/package.json +1 -1
- package/FileIconPdf/package.json +1 -1
- package/FileIconPng/package.json +1 -1
- package/FileIconPtt/package.json +1 -1
- package/FileIconRar/package.json +1 -1
- package/FileIconRtf/package.json +1 -1
- package/FileIconTiff/package.json +1 -1
- package/FileIconTxt/package.json +1 -1
- package/FileIconUndefined/package.json +1 -1
- package/FileIconWav/package.json +1 -1
- package/FileIconXls/package.json +1 -1
- package/FileIconZip/package.json +1 -1
- package/Grid/package.json +1 -1
- package/Header/package.json +1 -1
- package/Icon/package.json +1 -1
- package/IconAdd/package.json +1 -1
- package/IconAddToComparison/package.json +1 -1
- package/IconAlert/package.json +1 -1
- package/IconAlignBlocksLeft/package.json +1 -1
- package/IconAlignBlocksRight/package.json +1 -1
- package/IconAlignCenter/package.json +1 -1
- package/IconAlignJustify/package.json +1 -1
- package/IconAlignLeft/package.json +1 -1
- package/IconAlignRight/package.json +1 -1
- package/IconAllDone/package.json +1 -1
- package/IconArrowDown/package.json +1 -1
- package/IconArrowLeft/package.json +1 -1
- package/IconArrowRight/package.json +1 -1
- package/IconArrowUp/package.json +1 -1
- package/IconArtBrush/package.json +1 -1
- package/IconAttach/package.json +1 -1
- package/IconBackward/package.json +1 -1
- package/IconBag/package.json +1 -1
- package/IconBarrier/package.json +1 -1
- package/IconBento/package.json +1 -1
- package/IconBold/package.json +1 -1
- package/IconBook/package.json +1 -1
- package/IconBookmarkFilled/package.json +1 -1
- package/IconBookmarkStroked/package.json +1 -1
- package/IconCalculator/package.json +1 -1
- package/IconCalendar/package.json +1 -1
- package/IconCamera/package.json +1 -1
- package/IconCancel/package.json +1 -1
- package/IconCards/package.json +1 -1
- package/IconChat/package.json +1 -1
- package/IconCheck/package.json +1 -1
- package/IconClose/package.json +1 -1
- package/IconCollapse/package.json +1 -1
- package/IconColorFill/package.json +1 -1
- package/IconColorText/package.json +1 -1
- package/IconColumns/package.json +1 -1
- package/IconComment/package.json +1 -1
- package/IconConnection/package.json +1 -1
- package/IconCopy/package.json +1 -1
- package/IconCrown/package.json +1 -1
- package/IconCursorMouse/package.json +1 -1
- package/IconDataNull/package.json +1 -1
- package/IconDiamond/package.json +1 -1
- package/IconDinosaur/package.json +1 -1
- package/IconDisconnection/package.json +1 -1
- package/IconDocAdd/package.json +1 -1
- package/IconDocBlank/package.json +1 -1
- package/IconDocDelete/package.json +1 -1
- package/IconDocExport/package.json +1 -1
- package/IconDocFilled/package.json +1 -1
- package/IconDown/package.json +1 -1
- package/IconDownload/package.json +1 -1
- package/IconDrag/package.json +1 -1
- package/IconDraggable/package.json +1 -1
- package/IconDrillingRig/package.json +1 -1
- package/IconDrop/package.json +1 -1
- package/IconEdit/package.json +1 -1
- package/IconExit/package.json +1 -1
- package/IconExpand/package.json +1 -1
- package/IconEye/package.json +1 -1
- package/IconEyeClose/package.json +1 -1
- package/IconFavorite/package.json +1 -1
- package/IconFilter/package.json +1 -1
- package/IconFitToDefault/package.json +1 -1
- package/IconFlagFilled/package.json +1 -1
- package/IconFlagStroked/package.json +1 -1
- package/IconFolders/package.json +1 -1
- package/IconForward/package.json +1 -1
- package/IconFunnel/package.json +1 -1
- package/IconGas/package.json +1 -1
- package/IconGeo/package.json +1 -1
- package/IconGrouping/package.json +1 -1
- package/IconHamburger/package.json +1 -1
- package/IconHand/package.json +1 -1
- package/IconHealth/package.json +1 -1
- package/IconInComparison/package.json +1 -1
- package/IconInfo/package.json +1 -1
- package/IconIntroduction/package.json +1 -1
- package/IconIpad/package.json +1 -1
- package/IconItalic/package.json +1 -1
- package/IconKebab/package.json +1 -1
- package/IconLaptop/package.json +1 -1
- package/IconLayers/package.json +1 -1
- package/IconLeaf/package.json +1 -1
- package/IconLightningBolt/package.json +1 -1
- package/IconLineAndBarChart/package.json +1 -1
- package/IconLink/package.json +1 -1
- package/IconList/package.json +1 -1
- package/IconListNumbered/package.json +1 -1
- package/IconLock/package.json +1 -1
- package/IconLogicalElement/package.json +1 -1
- package/IconMBU/package.json +1 -1
- package/IconMGRP/package.json +1 -1
- package/IconMLSP/package.json +1 -1
- package/IconMMP/package.json +1 -1
- package/IconMail/package.json +1 -1
- package/IconMap/package.json +1 -1
- package/IconMaxHeight/package.json +1 -1
- package/IconMaxWidth/package.json +1 -1
- package/IconMeatball/package.json +1 -1
- package/IconMic/package.json +1 -1
- package/IconMolecules/package.json +1 -1
- package/IconMoon/package.json +1 -1
- package/IconNodeEnd/package.json +1 -1
- package/IconNodeStart/package.json +1 -1
- package/IconNodeStep/package.json +1 -1
- package/IconNodes/package.json +1 -1
- package/IconOpenInNew/package.json +1 -1
- package/IconPanelBottom/package.json +1 -1
- package/IconPanelLeft/package.json +1 -1
- package/IconPanelRight/package.json +1 -1
- package/IconPanelTop/package.json +1 -1
- package/IconPaste/package.json +1 -1
- package/IconPause/package.json +1 -1
- package/IconPhone/package.json +1 -1
- package/IconPhoto/package.json +1 -1
- package/IconPlay/package.json +1 -1
- package/IconPressure/package.json +1 -1
- package/IconProcessing/package.json +1 -1
- package/IconQuestion/package.json +1 -1
- package/IconQuote/package.json +1 -1
- package/IconRUO/package.json +1 -1
- package/IconRUS/package.json +1 -1
- package/IconRecord/package.json +1 -1
- package/IconRemove/package.json +1 -1
- package/IconRemoveFromComparison/package.json +1 -1
- package/IconReply/package.json +1 -1
- package/IconResize/package.json +1 -1
- package/IconRestart/package.json +1 -1
- package/IconRevert/package.json +1 -1
- package/IconRing/package.json +1 -1
- package/IconRouble/package.json +1 -1
- package/IconRuler/package.json +1 -1
- package/IconScreen/package.json +1 -1
- package/IconSearch/package.json +1 -1
- package/IconSelect/package.json +1 -1
- package/IconSelectOpen/package.json +1 -1
- package/IconSettings/package.json +1 -1
- package/IconShape/package.json +1 -1
- package/IconShuffle/package.json +1 -1
- package/IconSmile/package.json +1 -1
- package/IconSortDown/package.json +1 -1
- package/IconSortDownCenter/package.json +1 -1
- package/IconSortUp/package.json +1 -1
- package/IconSortUpCenter/package.json +1 -1
- package/IconStop/package.json +1 -1
- package/IconStorage/package.json +1 -1
- package/IconStrikethrough/package.json +1 -1
- package/IconSun/package.json +1 -1
- package/IconTable/package.json +1 -1
- package/IconTarget/package.json +1 -1
- package/IconTeam/package.json +1 -1
- package/IconTest/package.json +1 -1
- package/IconThumbUp/package.json +1 -1
- package/IconTie/package.json +1 -1
- package/IconTop/package.json +1 -1
- package/IconTrash/package.json +1 -1
- package/IconType/package.json +1 -1
- package/IconUnderline/package.json +1 -1
- package/IconUnlock/package.json +1 -1
- package/IconUnsort/package.json +1 -1
- package/IconUnsortCenter/package.json +1 -1
- package/IconUpload/package.json +1 -1
- package/IconUser/package.json +1 -1
- package/IconVZD/package.json +1 -1
- package/IconVideo/package.json +1 -1
- package/IconWarning/package.json +1 -1
- package/IconWatch/package.json +1 -1
- package/IconWideScreen/package.json +1 -1
- package/IconWorld/package.json +1 -1
- package/Informer/package.json +1 -1
- package/LayoutCanary/package.json +1 -1
- package/Loader/package.json +1 -1
- package/MixCard/package.json +1 -1
- package/MixFocus/package.json +1 -1
- package/MixVisuallyHidden/package.json +1 -1
- package/Modal/package.json +1 -1
- package/MultiComboboxDeprecated/package.json +1 -1
- package/Pagination/package.json +1 -1
- package/Popover/package.json +1 -1
- package/PortalWithTheme/package.json +1 -1
- package/ProgressSpin/package.json +1 -1
- package/ProgressStepBarCanary/package.json +1 -1
- package/Radio/package.json +1 -1
- package/RadioGroup/package.json +1 -1
- package/Responses/package.json +1 -1
- package/Responses403/package.json +1 -1
- package/Responses404/package.json +1 -1
- package/Responses500/package.json +1 -1
- package/Responses503/package.json +1 -1
- package/ResponsesConnectionError/package.json +1 -1
- package/ResponsesDeleted/package.json +1 -1
- package/ResponsesEmptyBox/package.json +1 -1
- package/ResponsesEmptyPockets/package.json +1 -1
- package/ResponsesImage/package.json +1 -1
- package/ResponsesImage403/package.json +1 -1
- package/ResponsesImage404/package.json +1 -1
- package/ResponsesImage500/package.json +1 -1
- package/ResponsesImage503/package.json +1 -1
- package/ResponsesImageConnectionError/package.json +1 -1
- package/ResponsesImageDeleted/package.json +1 -1
- package/ResponsesImageEmptyBox/package.json +1 -1
- package/ResponsesImageEmptyPockets/package.json +1 -1
- package/ResponsesImageNothingFound/package.json +1 -1
- package/ResponsesImageSuccess/package.json +1 -1
- package/ResponsesNothingFound/package.json +1 -1
- package/ResponsesSuccess/package.json +1 -1
- package/Select/package.json +1 -1
- package/Sidebar/package.json +1 -1
- package/Skeleton/package.json +1 -1
- package/SnackBar/package.json +1 -1
- package/Steps/package.json +1 -1
- package/Switch/package.json +1 -1
- package/SwitchGroup/package.json +1 -1
- package/Table/package.json +1 -1
- package/Tabs/package.json +1 -1
- package/Tag/package.json +1 -1
- package/TagBase/package.json +1 -1
- package/Text/package.json +1 -1
- package/TextField/package.json +1 -1
- package/Theme/package.json +1 -1
- package/ThemeToggler/package.json +1 -1
- package/Timer/package.json +1 -1
- package/Tooltip/package.json +1 -1
- package/User/package.json +1 -1
- package/UserSelect/package.json +1 -1
- package/UserSelectDeprecated/package.json +1 -1
- package/__internal__/cjs-src/components/Table/Header/TableHeader.js +8 -1
- package/__internal__/cjs-src/components/Table/Table.d.ts +5 -1
- package/__internal__/cjs-src/components/Table/helpers.d.ts +2 -0
- package/__internal__/src/components/Table/Header/TableHeader.js +8 -1
- package/__internal__/src/components/Table/Table.d.ts +5 -1
- package/__internal__/src/components/Table/helpers.d.ts +2 -0
- package/createIcon/package.json +1 -1
- package/createResponsesImage/package.json +1 -1
- package/package.json +1 -1
- package/useChoiceGroup/package.json +1 -1
- package/useChoiceGroupIndexed/package.json +1 -1
- package/useClickOutside/package.json +1 -1
- package/useComponentSize/package.json +1 -1
- package/useDebounce/package.json +1 -1
- package/useFlag/package.json +1 -1
- package/useForkRef/package.json +1 -1
- package/useGlobalKeys/package.json +1 -1
- package/useKeys/package.json +1 -1
- package/useMutableRef/package.json +1 -1
- package/usePrevious/package.json +1 -1
- package/useResizeObserved/package.json +1 -1
- package/useScrollPosition/package.json +1 -1
- package/useSelect/package.json +1 -1
- package/useThemeVars/package.json +1 -1
- package/useTimer/package.json +1 -1
- package/withTooltip/package.json +1 -1
package/Text/package.json
CHANGED
package/TextField/package.json
CHANGED
package/Theme/package.json
CHANGED
package/Timer/package.json
CHANGED
package/Tooltip/package.json
CHANGED
package/User/package.json
CHANGED
package/UserSelect/package.json
CHANGED
|
@@ -61,6 +61,12 @@ exports.TableHeader = function (_a) {
|
|
|
61
61
|
};
|
|
62
62
|
return column.filterable ? (react_1["default"].createElement(TableFilterTooltip_1.TableFilterTooltip, { field: column.accessor, isOpened: visibleFilter === column.accessor, options: filtering_1.getOptionsForFilters(filters, column.accessor), values: selectedFilters[column.accessor].selected || [], onChange: handleTooltipSave, onToggle: handleFilterTogglerClick(column.accessor), className: cnTableHeader('Icon', { type: 'filter' }) }, FilterComponent && (react_1["default"].createElement(FilterComponent, tslib_1.__assign({}, filterComponentProps, { onConfirm: handleFilterSave, filterValue: (_d = selectedFilters[column.accessor]) === null || _d === void 0 ? void 0 : _d.value, onCancel: handleFilterTogglerClick(column.accessor) }))))) : null;
|
|
63
63
|
};
|
|
64
|
+
var control = function (column) {
|
|
65
|
+
if (column.control) {
|
|
66
|
+
return react_1["default"].createElement("div", { className: cnTableHeader('Сontrol') }, column.control({ column: column }));
|
|
67
|
+
}
|
|
68
|
+
return null;
|
|
69
|
+
};
|
|
64
70
|
return (react_1["default"].createElement(react_1["default"].Fragment, null,
|
|
65
71
|
react_1["default"].createElement("div", { className: cnTableHeader('Row', { withVerticalBorder: borderBetweenColumns }) }, headersWithMetaData.map(function (column, columnIdx) {
|
|
66
72
|
var _a, _b, _c;
|
|
@@ -94,7 +100,8 @@ exports.TableHeader = function (_a) {
|
|
|
94
100
|
verticalAlign: headerVerticalAlign
|
|
95
101
|
}) },
|
|
96
102
|
column.sortable && (react_1["default"].createElement(Button_1.Button, { size: "xs", iconSize: "s", view: "clear", onlyIcon: true, onClick: function () { return handleSortClick(column); }, iconLeft: getSortIcon(column), className: cnTableHeader('Icon', { type: 'sort' }) })),
|
|
97
|
-
getFilterPopover(column)
|
|
103
|
+
getFilterPopover(column),
|
|
104
|
+
control(column))));
|
|
98
105
|
})),
|
|
99
106
|
react_1["default"].createElement("div", { className: cnTableHeader('ShadowWrapper'), style: tableHeaderStyle },
|
|
100
107
|
react_1["default"].createElement("div", { className: cnTableHeader('Shadow', { show: showHorizontalCellShadow && isStickyHeader }) }))));
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { HorizontalAlign, VerticalAlign } from './Cell/TableCell';
|
|
4
4
|
import { GetTagLabel } from './SelectedOptionsList/TableSelectedOptionsList';
|
|
5
5
|
import { Filters, onSortBy, SelectedFilters } from './filtering';
|
|
6
|
-
import { OrderType, Position } from './helpers';
|
|
6
|
+
import { Header, OrderType, Position } from './helpers';
|
|
7
7
|
export { TableTextFilter } from './TextFilter/TableTextFilter';
|
|
8
8
|
export { TableFilterContainer } from './FilterContainer/TableFilterContainer';
|
|
9
9
|
export { TableNumberFilter } from './NumberFilter/TableNumberFilter';
|
|
@@ -69,6 +69,9 @@ declare type GroupColumnAddition<T extends TableRow> = {
|
|
|
69
69
|
} & {
|
|
70
70
|
[K in keyof ColumnBase<T>]?: never;
|
|
71
71
|
};
|
|
72
|
+
export interface TableControl<T extends TableRow> {
|
|
73
|
+
column: Header<T> & ColumnMetaData;
|
|
74
|
+
}
|
|
72
75
|
export declare type TableColumn<T extends TableRow> = {
|
|
73
76
|
title: React.ReactNode;
|
|
74
77
|
align?: HorizontalAlign;
|
|
@@ -76,6 +79,7 @@ export declare type TableColumn<T extends TableRow> = {
|
|
|
76
79
|
width?: ColumnWidth;
|
|
77
80
|
mergeCells?: boolean;
|
|
78
81
|
position?: Position;
|
|
82
|
+
control?: ({ column }: TableControl<T>) => React.ReactNode;
|
|
79
83
|
} & (GroupColumnAddition<T> | SingleColumnAddition<T>);
|
|
80
84
|
export declare type TableProps<T extends TableRow> = {
|
|
81
85
|
columns: TableColumn<T>[];
|
|
@@ -44,6 +44,7 @@ export declare const transformColumns: <T extends TableRow>(columns: TableColumn
|
|
|
44
44
|
width?: number | undefined;
|
|
45
45
|
mergeCells?: boolean | undefined;
|
|
46
46
|
position?: Position | undefined;
|
|
47
|
+
control?: (({ column }: import("./Table").TableControl<T>) => React.ReactNode) | undefined;
|
|
47
48
|
} & {
|
|
48
49
|
columns: TableColumn<T>[];
|
|
49
50
|
} & { [K_1 in keyof import("./Table").ValueOf<{ [K in keyof T]: {
|
|
@@ -63,6 +64,7 @@ export declare const transformColumns: <T extends TableRow>(columns: TableColumn
|
|
|
63
64
|
width?: number | undefined;
|
|
64
65
|
mergeCells?: boolean | undefined;
|
|
65
66
|
position?: Position | undefined;
|
|
67
|
+
control?: (({ column }: import("./Table").TableControl<T>) => React.ReactNode) | undefined;
|
|
66
68
|
} & import("./Table").ValueOf<{ [K in keyof T]: {
|
|
67
69
|
accessor: K extends string ? K : never;
|
|
68
70
|
sortable?: boolean | undefined;
|
|
@@ -58,6 +58,12 @@ export var TableHeader = function (_a) {
|
|
|
58
58
|
};
|
|
59
59
|
return column.filterable ? (React.createElement(TableFilterTooltip, { field: column.accessor, isOpened: visibleFilter === column.accessor, options: getOptionsForFilters(filters, column.accessor), values: selectedFilters[column.accessor].selected || [], onChange: handleTooltipSave, onToggle: handleFilterTogglerClick(column.accessor), className: cnTableHeader('Icon', { type: 'filter' }) }, FilterComponent && (React.createElement(FilterComponent, __assign({}, filterComponentProps, { onConfirm: handleFilterSave, filterValue: (_d = selectedFilters[column.accessor]) === null || _d === void 0 ? void 0 : _d.value, onCancel: handleFilterTogglerClick(column.accessor) }))))) : null;
|
|
60
60
|
};
|
|
61
|
+
var control = function (column) {
|
|
62
|
+
if (column.control) {
|
|
63
|
+
return React.createElement("div", { className: cnTableHeader('Сontrol') }, column.control({ column: column }));
|
|
64
|
+
}
|
|
65
|
+
return null;
|
|
66
|
+
};
|
|
61
67
|
return (React.createElement(React.Fragment, null,
|
|
62
68
|
React.createElement("div", { className: cnTableHeader('Row', { withVerticalBorder: borderBetweenColumns }) }, headersWithMetaData.map(function (column, columnIdx) {
|
|
63
69
|
var _a, _b, _c;
|
|
@@ -91,7 +97,8 @@ export var TableHeader = function (_a) {
|
|
|
91
97
|
verticalAlign: headerVerticalAlign
|
|
92
98
|
}) },
|
|
93
99
|
column.sortable && (React.createElement(Button, { size: "xs", iconSize: "s", view: "clear", onlyIcon: true, onClick: function () { return handleSortClick(column); }, iconLeft: getSortIcon(column), className: cnTableHeader('Icon', { type: 'sort' }) })),
|
|
94
|
-
getFilterPopover(column)
|
|
100
|
+
getFilterPopover(column),
|
|
101
|
+
control(column))));
|
|
95
102
|
})),
|
|
96
103
|
React.createElement("div", { className: cnTableHeader('ShadowWrapper'), style: tableHeaderStyle },
|
|
97
104
|
React.createElement("div", { className: cnTableHeader('Shadow', { show: showHorizontalCellShadow && isStickyHeader }) }))));
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { HorizontalAlign, VerticalAlign } from './Cell/TableCell';
|
|
4
4
|
import { GetTagLabel } from './SelectedOptionsList/TableSelectedOptionsList';
|
|
5
5
|
import { Filters, onSortBy, SelectedFilters } from './filtering';
|
|
6
|
-
import { OrderType, Position } from './helpers';
|
|
6
|
+
import { Header, OrderType, Position } from './helpers';
|
|
7
7
|
export { TableTextFilter } from './TextFilter/TableTextFilter';
|
|
8
8
|
export { TableFilterContainer } from './FilterContainer/TableFilterContainer';
|
|
9
9
|
export { TableNumberFilter } from './NumberFilter/TableNumberFilter';
|
|
@@ -69,6 +69,9 @@ declare type GroupColumnAddition<T extends TableRow> = {
|
|
|
69
69
|
} & {
|
|
70
70
|
[K in keyof ColumnBase<T>]?: never;
|
|
71
71
|
};
|
|
72
|
+
export interface TableControl<T extends TableRow> {
|
|
73
|
+
column: Header<T> & ColumnMetaData;
|
|
74
|
+
}
|
|
72
75
|
export declare type TableColumn<T extends TableRow> = {
|
|
73
76
|
title: React.ReactNode;
|
|
74
77
|
align?: HorizontalAlign;
|
|
@@ -76,6 +79,7 @@ export declare type TableColumn<T extends TableRow> = {
|
|
|
76
79
|
width?: ColumnWidth;
|
|
77
80
|
mergeCells?: boolean;
|
|
78
81
|
position?: Position;
|
|
82
|
+
control?: ({ column }: TableControl<T>) => React.ReactNode;
|
|
79
83
|
} & (GroupColumnAddition<T> | SingleColumnAddition<T>);
|
|
80
84
|
export declare type TableProps<T extends TableRow> = {
|
|
81
85
|
columns: TableColumn<T>[];
|
|
@@ -44,6 +44,7 @@ export declare const transformColumns: <T extends TableRow>(columns: TableColumn
|
|
|
44
44
|
width?: number | undefined;
|
|
45
45
|
mergeCells?: boolean | undefined;
|
|
46
46
|
position?: Position | undefined;
|
|
47
|
+
control?: (({ column }: import("./Table").TableControl<T>) => React.ReactNode) | undefined;
|
|
47
48
|
} & {
|
|
48
49
|
columns: TableColumn<T>[];
|
|
49
50
|
} & { [K_1 in keyof import("./Table").ValueOf<{ [K in keyof T]: {
|
|
@@ -63,6 +64,7 @@ export declare const transformColumns: <T extends TableRow>(columns: TableColumn
|
|
|
63
64
|
width?: number | undefined;
|
|
64
65
|
mergeCells?: boolean | undefined;
|
|
65
66
|
position?: Position | undefined;
|
|
67
|
+
control?: (({ column }: import("./Table").TableControl<T>) => React.ReactNode) | undefined;
|
|
66
68
|
} & import("./Table").ValueOf<{ [K in keyof T]: {
|
|
67
69
|
accessor: K extends string ? K : never;
|
|
68
70
|
sortable?: boolean | undefined;
|
package/createIcon/package.json
CHANGED
package/package.json
CHANGED
package/useDebounce/package.json
CHANGED
package/useFlag/package.json
CHANGED
package/useForkRef/package.json
CHANGED
package/useKeys/package.json
CHANGED
package/usePrevious/package.json
CHANGED
package/useSelect/package.json
CHANGED
package/useTimer/package.json
CHANGED