@ctlyst.id/internal-ui 3.1.9 → 3.1.11

Sign up to get free protection for your applications and to get access to all the features.
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
  );
@@ -6412,12 +6423,12 @@ var baseStyle11 = definePartsStyle10({
6412
6423
  cursor: "pointer",
6413
6424
  _hover: {
6414
6425
  td: {
6415
- backgroundColor: "neutral.200"
6426
+ backgroundColor: "neutral.100"
6416
6427
  }
6417
6428
  },
6418
6429
  '&[data-active="true"]': {
6419
6430
  td: {
6420
- backgroundColor: "neutral.100"
6431
+ backgroundColor: "neutral.200"
6421
6432
  }
6422
6433
  }
6423
6434
  }