@flytedan/flytebot-design-system 0.73.1 → 0.74.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.cjs CHANGED
@@ -4261,6 +4261,7 @@ function RowActionCell({ action }) {
4261
4261
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("td", { className: "fd-table-action", children: action ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RowActionButton, { action, size: "sm" }) : null });
4262
4262
  }
4263
4263
  var cellOf = (c, row) => c.render ? c.render(row) : row[c.key];
4264
+ var cardCellOf = (c, row) => c.phoneRender ? c.phoneRender(row) : cellOf(c, row);
4264
4265
  function rowInteraction(row, onRowClick) {
4265
4266
  if (!onRowClick) return {};
4266
4267
  return {
@@ -4403,11 +4404,11 @@ function StackedRows({ columns, rows, rowKey, loading, stale, skeletonRows, sort
4403
4404
  ...semantics,
4404
4405
  ...rowInteraction(r, onRowClick),
4405
4406
  children: [
4406
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "fd-dt-card-title", children: primary.map((c) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: c.numeric ? "is-num" : void 0, children: cellOf(c, r) }, c.key)) }),
4407
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "fd-dt-card-title", children: primary.map((c) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: c.numeric ? "is-num" : void 0, children: cardCellOf(c, r) }, c.key)) }),
4407
4408
  secondary.length ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "fd-dt-card-meta", children: secondary.map((c) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("span", { className: c.numeric ? "is-num" : void 0, children: [
4408
4409
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "fd-dt-card-label", children: c.label }),
4409
4410
  " ",
4410
- cellOf(c, r)
4411
+ cardCellOf(c, r)
4411
4412
  ] }, c.key)) }) : null
4412
4413
  ]
4413
4414
  }