@ctlyst.id/internal-ui 4.1.16 → 4.2.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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +16 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1085,7 +1085,16 @@ var useDataTable = ({
|
|
1085
1085
|
};
|
1086
1086
|
var DataTable = React5.forwardRef((props, ref) => {
|
1087
1087
|
var _a, _b, _c, _d, _e, _f, _g;
|
1088
|
-
const {
|
1088
|
+
const {
|
1089
|
+
isLoading,
|
1090
|
+
styles,
|
1091
|
+
headerSticky,
|
1092
|
+
onRowClick,
|
1093
|
+
container,
|
1094
|
+
columnPinning,
|
1095
|
+
isRowDisabled,
|
1096
|
+
cellLineClamp = 2
|
1097
|
+
} = props;
|
1089
1098
|
const { table, toggleAllRowsSelected, generateColumn } = useDataTable(props);
|
1090
1099
|
const refTable = React5.useRef(null);
|
1091
1100
|
React5.useImperativeHandle(ref, () => ({
|
@@ -1271,10 +1280,12 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1271
1280
|
onClick: (e) => {
|
1272
1281
|
e.stopPropagation();
|
1273
1282
|
},
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1283
|
+
...cellLineClamp > 0 ? {
|
1284
|
+
noOfLines: cellLineClamp,
|
1285
|
+
sx: {
|
1286
|
+
display: "-webkit-inline-box"
|
1287
|
+
}
|
1288
|
+
} : {},
|
1278
1289
|
children: flexRender(cell.column.columnDef.cell, cell.getContext())
|
1279
1290
|
}
|
1280
1291
|
)
|