@homebound/beam 3.37.1 → 3.38.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
@@ -16564,6 +16564,7 @@ function TableCard(props) {
16564
16564
  let title;
16565
16565
  let eyebrow;
16566
16566
  let badge;
16567
+ let badgeTags;
16567
16568
  let status;
16568
16569
  const dataBlocks = [];
16569
16570
  let progress;
@@ -16581,6 +16582,7 @@ function TableCard(props) {
16581
16582
  break;
16582
16583
  case "badge":
16583
16584
  badge = slot.text;
16585
+ badgeTags = slot.tags;
16584
16586
  break;
16585
16587
  case "status":
16586
16588
  status = slot.tag;
@@ -16597,7 +16599,7 @@ function TableCard(props) {
16597
16599
  }
16598
16600
  }
16599
16601
  if (!title) return null;
16600
- const card = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(TableCardView, { ...tid, imgSrc: rs.row.imgSrc ?? "", title, eyebrow, badge, status, data: dataBlocks, progress });
16602
+ const card = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(TableCardView, { ...tid, imgSrc: rs.row.imgSrc ?? "", title, eyebrow, badge, badgeTags, status, data: dataBlocks, progress });
16601
16603
  const to = rowStyle?.rowLink?.(rs.row);
16602
16604
  if (to) {
16603
16605
  return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_router_dom4.Link, { to, ...(0, import_runtime55.mergeProps)(navLink, void 0, {
@@ -16616,6 +16618,7 @@ function TableCardView(props) {
16616
16618
  imgSrc,
16617
16619
  eyebrow,
16618
16620
  badge,
16621
+ badgeTags,
16619
16622
  data,
16620
16623
  status,
16621
16624
  progress
@@ -16649,7 +16652,10 @@ function TableCardView(props) {
16649
16652
  title,
16650
16653
  " "
16651
16654
  ] }),
16652
- badge && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "fw4 fz_14px lh_20px wsnw", ...tid.badge, children: badge })
16655
+ (badge || badgeTags?.length) && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "dif aic gap1 fs0", ...tid.badge, children: [
16656
+ badge && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "fw4 fz_14px lh_20px wsnw", children: badge }),
16657
+ badgeTags?.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Tag, { ...tag }, tag.text))
16658
+ ] })
16653
16659
  ] })
16654
16660
  ] }),
16655
16661
  data && data?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("dl", { className: "dg gtc_repeat_2_minmax_0_1fr fw4 fz_14px lh_20px", children: data.map((d, idx) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { ...(0, import_runtime55.trussProps)({
@@ -24594,8 +24600,8 @@ function cardTitleSlot(text) {
24594
24600
  function cardEyebrowSlot(text) {
24595
24601
  return { kind: "eyebrow", text };
24596
24602
  }
24597
- function cardBadgeSlot(text) {
24598
- return { kind: "badge", text };
24603
+ function cardBadgeSlot(text, tags) {
24604
+ return { kind: "badge", text, tags };
24599
24605
  }
24600
24606
  function cardStatusSlot(tag) {
24601
24607
  return { kind: "status", tag };