@ctlyst.id/internal-ui 3.1.9 → 3.1.10

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.mjs CHANGED
@@ -1172,6 +1172,7 @@ var DataTable = React5.forwardRef((props, ref) => {
1172
1172
  }
1173
1173
  },
1174
1174
  children: row.getVisibleCells().map((cell) => {
1175
+ const meta = cell.column.columnDef.meta;
1175
1176
  const isDisabled = isCellDisabled(row.original, cell.column.id);
1176
1177
  return /* @__PURE__ */ jsx24(
1177
1178
  Td,
@@ -1180,21 +1181,31 @@ var DataTable = React5.forwardRef((props, ref) => {
1180
1181
  fontSize: "text.sm",
1181
1182
  sx: getCommonPinningStyles(cell.column),
1182
1183
  ...styles == null ? void 0 : styles.tableCell,
1183
- children: /* @__PURE__ */ jsx24(Flex2, { height: "100%", align: "center", opacity: isDisabled ? 0.5 : 1, children: /* @__PURE__ */ jsx24(
1184
+ children: /* @__PURE__ */ jsx24(
1184
1185
  Flex2,
1185
1186
  {
1186
- tabIndex: 0,
1187
- display: "inline-flex",
1188
- cursor: "auto",
1189
- "data-test-id": `CT_Component_TableCell_Content-${cell.id}`,
1190
- onMouseUp: (e) => e.stopPropagation(),
1191
- onMouseDown: (e) => e.stopPropagation(),
1192
- onClick: (e) => {
1193
- e.stopPropagation();
1194
- },
1195
- children: flexRender(cell.column.columnDef.cell, cell.getContext())
1187
+ height: "100%",
1188
+ width: "100%",
1189
+ align: "center",
1190
+ opacity: isDisabled ? 0.5 : 1,
1191
+ sx: { ...meta && meta.columnStyles ? meta.columnStyles : {} },
1192
+ children: /* @__PURE__ */ jsx24(
1193
+ Flex2,
1194
+ {
1195
+ tabIndex: 0,
1196
+ display: "inline-flex",
1197
+ cursor: "auto",
1198
+ "data-test-id": `CT_Component_TableCell_Content-${cell.id}`,
1199
+ onMouseUp: (e) => e.stopPropagation(),
1200
+ onMouseDown: (e) => e.stopPropagation(),
1201
+ onClick: (e) => {
1202
+ e.stopPropagation();
1203
+ },
1204
+ children: flexRender(cell.column.columnDef.cell, cell.getContext())
1205
+ }
1206
+ )
1196
1207
  }
1197
- ) })
1208
+ )
1198
1209
  },
1199
1210
  cell.id
1200
1211
  );