@flytedan/flytebot-design-system 0.78.1 → 0.79.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
@@ -4441,6 +4441,7 @@ function RowActionCell({ action }) {
4441
4441
  return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("td", { className: "fd-table-action", children: action ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(RowActionButton, { action, size: "sm" }) : null });
4442
4442
  }
4443
4443
  var cellOf = (c, row) => c.render ? c.render(row) : row[c.key];
4444
+ var cellClassOf = (c) => [c.numeric ? "is-num" : "", c.noWrap ? "fd-table-nowrap" : ""].filter(Boolean).join(" ") || void 0;
4444
4445
  var cardCellOf = (c, row) => c.phoneRender ? c.phoneRender(row) : cellOf(c, row);
4445
4446
  function rowInteraction(row, onRowClick) {
4446
4447
  if (!onRowClick) return {};
@@ -4524,7 +4525,7 @@ function DataTable({
4524
4525
  rowAction ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("th", { scope: "col", className: "fd-table-action-head", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "fd-sr-only", children: "Actions" }) }) : null
4525
4526
  ] }) }),
4526
4527
  /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("tbody", { className: stale ? "fd-stale" : void 0, children: loading ? Array.from({ length: skeletonRows }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("tr", { children: [
4527
- columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("td", { className: c.numeric ? "is-num" : "", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "fd-skel fd-skel-text", style: { display: "inline-block", height: 13, width: c.numeric ? 52 : i % 3 === 0 ? "72%" : "88%" } }) }, c.key)),
4528
+ columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("td", { className: cellClassOf(c), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "fd-skel fd-skel-text", style: { display: "inline-block", height: 13, width: c.numeric ? 52 : i % 3 === 0 ? "72%" : "88%" } }) }, c.key)),
4528
4529
  rowAction ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("td", { className: "fd-table-action" }) : null
4529
4530
  ] }, i)) : rows.map((r) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4530
4531
  "tr",
@@ -4533,7 +4534,7 @@ function DataTable({
4533
4534
  title: rowTitle ? rowTitle(r) : void 0,
4534
4535
  ...rowInteraction(r, onRowClick),
4535
4536
  children: [
4536
- columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("td", { className: c.numeric ? "is-num" : "", children: cellOf(c, r) }, c.key)),
4537
+ columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("td", { className: cellClassOf(c), children: cellOf(c, r) }, c.key)),
4537
4538
  rowAction ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(RowActionCell, { action: rowAction(r) }) : null
4538
4539
  ]
4539
4540
  },
@@ -4585,7 +4586,7 @@ function StackedRows({ columns, rows, rowKey, loading, stale, skeletonRows, sort
4585
4586
  ...rowInteraction(r, onRowClick),
4586
4587
  children: [
4587
4588
  /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "fd-dt-card-title", children: primary.map((c) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: c.numeric ? "is-num" : void 0, children: cardCellOf(c, r) }, c.key)) }),
4588
- secondary.length ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "fd-dt-card-meta", children: secondary.map((c) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("span", { className: c.numeric ? "is-num" : void 0, children: [
4589
+ secondary.length ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "fd-dt-card-meta", children: secondary.map((c) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("span", { className: cellClassOf(c), children: [
4589
4590
  /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "fd-dt-card-label", children: c.label }),
4590
4591
  " ",
4591
4592
  cardCellOf(c, r)