@realtek/core-theme 0.0.84 → 0.0.85

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-lib/index.js CHANGED
@@ -6525,17 +6525,17 @@ function bd(e) {
6525
6525
  return wd(e?.varient ?? e?.variant).replace(/[^a-z0-9-]/g, "-");
6526
6526
  }
6527
6527
  function xd(e, t) {
6528
- let n = vd(e, t), r = n ?? e.commonStyle ?? {}, i = n?.label ?? t, a = bd(r), o = [
6528
+ let n = vd(e, t), r = n ?? e.commonStyle ?? {}, i = n?.label ?? t, a = (typeof i == "string" ? i.trim() : i) || "-", o = bd(r), s = [
6529
6529
  "job-cell-badge",
6530
6530
  "job-cell-value",
6531
- a ? `job-cell-badge--${a}` : ""
6532
- ].filter(Boolean).join(" ");
6531
+ o ? `job-cell-badge--${o}` : ""
6532
+ ].filter(Boolean).join(" "), c = !n && typeof a == "string" && a.includes(",") ? a.split(",").map((e) => e.trim()).filter(Boolean) : null, l = c && c.length > 1 ? `${c.slice(0, 1).join(", ")} +${c.length - 1}` : a, u = yd(r);
6533
6533
  return /* @__PURE__ */ Z(J, {
6534
- title: i === "-" ? void 0 : i,
6534
+ title: a === "-" ? void 0 : a,
6535
6535
  children: /* @__PURE__ */ Z(q, {
6536
- className: o,
6537
- style: yd(r),
6538
- children: i
6536
+ className: s,
6537
+ style: u,
6538
+ children: l
6539
6539
  })
6540
6540
  });
6541
6541
  }