@bsol-oss/react-datatable5 1.0.31 → 1.0.33
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.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/types/components/TextCell.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
3
3
|
import { RowData, OnChangeFn, Updater, FilterFn, ColumnDef, Row } from '@tanstack/react-table';
|
|
4
4
|
import { RankingInfo } from '@tanstack/match-sorter-utils';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
|
-
import { TooltipProps } from '@chakra-ui/react';
|
|
6
|
+
import { TextProps, TooltipProps } from '@chakra-ui/react';
|
|
7
7
|
import * as _tanstack_table_core from '@tanstack/table-core';
|
|
8
8
|
|
|
9
9
|
type DensityState = "sm" | "md" | "lg";
|
|
@@ -156,7 +156,7 @@ declare const TableSorter: () => react_jsx_runtime.JSX.Element;
|
|
|
156
156
|
|
|
157
157
|
declare const TableViewer: () => react_jsx_runtime.JSX.Element;
|
|
158
158
|
|
|
159
|
-
interface TextCellProps {
|
|
159
|
+
interface TextCellProps extends TextProps {
|
|
160
160
|
label?: string;
|
|
161
161
|
noOfLines?: number[];
|
|
162
162
|
padding?: string;
|
package/dist/index.js
CHANGED
|
@@ -647,7 +647,7 @@ const TextCell = ({ label, noOfLines = [1], padding = "0rem", children, tooltipP
|
|
|
647
647
|
if (label) {
|
|
648
648
|
return (jsxRuntime.jsx(react$1.Box, { padding: padding, children: jsxRuntime.jsx(react$1.Tooltip, { label: jsxRuntime.jsx(react$1.Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", noOfLines: [5], children: label }), placement: "auto", ...tooltipProps, children: jsxRuntime.jsx(react$1.Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", wordBreak: "break-all", noOfLines: noOfLines, ...props, children: children }) }) }));
|
|
649
649
|
}
|
|
650
|
-
return (jsxRuntime.jsx(react$1.Box, { padding: padding, children: jsxRuntime.jsx(react$1.Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", wordBreak: "break-all", noOfLines: noOfLines, children: children }) }));
|
|
650
|
+
return (jsxRuntime.jsx(react$1.Box, { padding: padding, children: jsxRuntime.jsx(react$1.Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", wordBreak: "break-all", noOfLines: noOfLines, ...props, children: children }) }));
|
|
651
651
|
};
|
|
652
652
|
|
|
653
653
|
exports.DataTable = DataTable;
|
package/dist/index.mjs
CHANGED
|
@@ -645,7 +645,7 @@ const TextCell = ({ label, noOfLines = [1], padding = "0rem", children, tooltipP
|
|
|
645
645
|
if (label) {
|
|
646
646
|
return (jsx(Box, { padding: padding, children: jsx(Tooltip, { label: jsx(Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", noOfLines: [5], children: label }), placement: "auto", ...tooltipProps, children: jsx(Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", wordBreak: "break-all", noOfLines: noOfLines, ...props, children: children }) }) }));
|
|
647
647
|
}
|
|
648
|
-
return (jsx(Box, { padding: padding, children: jsx(Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", wordBreak: "break-all", noOfLines: noOfLines, children: children }) }));
|
|
648
|
+
return (jsx(Box, { padding: padding, children: jsx(Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", wordBreak: "break-all", noOfLines: noOfLines, ...props, children: children }) }));
|
|
649
649
|
};
|
|
650
650
|
|
|
651
651
|
export { DataTable, DataTableServer, DensityToggleButton, EditFilterButton, EditOrderButton, EditSortingButton, EditViewButton, GlobalFilter, PageSizeControl, ResetFilteringButton, ResetSelectionButton, ResetSortingButton, Table, TableBody, TableCardContainer, TableCards, TableFilter, TableFooter, TableHeader, TableOrderer, TablePagination, TableSelector, TableSorter, TableViewer, TextCell, useDataFromUrl, useDataTable };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TooltipProps } from "@chakra-ui/react";
|
|
3
|
-
export interface TextCellProps {
|
|
2
|
+
import { TextProps, TooltipProps } from "@chakra-ui/react";
|
|
3
|
+
export interface TextCellProps extends TextProps {
|
|
4
4
|
label?: string;
|
|
5
5
|
noOfLines?: number[];
|
|
6
6
|
padding?: string;
|