@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.js CHANGED
@@ -1509,6 +1509,7 @@ var DataTable = React5.forwardRef((props, ref) => {
1509
1509
  }
1510
1510
  },
1511
1511
  children: row.getVisibleCells().map((cell) => {
1512
+ const meta = cell.column.columnDef.meta;
1512
1513
  const isDisabled = isCellDisabled(row.original, cell.column.id);
1513
1514
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1514
1515
  import_react28.Td,
@@ -1517,21 +1518,31 @@ var DataTable = React5.forwardRef((props, ref) => {
1517
1518
  fontSize: "text.sm",
1518
1519
  sx: getCommonPinningStyles(cell.column),
1519
1520
  ...styles == null ? void 0 : styles.tableCell,
1520
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Flex, { height: "100%", align: "center", opacity: isDisabled ? 0.5 : 1, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1521
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1521
1522
  import_react28.Flex,
1522
1523
  {
1523
- tabIndex: 0,
1524
- display: "inline-flex",
1525
- cursor: "auto",
1526
- "data-test-id": `CT_Component_TableCell_Content-${cell.id}`,
1527
- onMouseUp: (e) => e.stopPropagation(),
1528
- onMouseDown: (e) => e.stopPropagation(),
1529
- onClick: (e) => {
1530
- e.stopPropagation();
1531
- },
1532
- children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext())
1524
+ height: "100%",
1525
+ width: "100%",
1526
+ align: "center",
1527
+ opacity: isDisabled ? 0.5 : 1,
1528
+ sx: { ...meta && meta.columnStyles ? meta.columnStyles : {} },
1529
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1530
+ import_react28.Flex,
1531
+ {
1532
+ tabIndex: 0,
1533
+ display: "inline-flex",
1534
+ cursor: "auto",
1535
+ "data-test-id": `CT_Component_TableCell_Content-${cell.id}`,
1536
+ onMouseUp: (e) => e.stopPropagation(),
1537
+ onMouseDown: (e) => e.stopPropagation(),
1538
+ onClick: (e) => {
1539
+ e.stopPropagation();
1540
+ },
1541
+ children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext())
1542
+ }
1543
+ )
1533
1544
  }
1534
- ) })
1545
+ )
1535
1546
  },
1536
1547
  cell.id
1537
1548
  );