@opencxh/ui-kit 3.88.0 → 3.94.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.js CHANGED
@@ -13,8 +13,8 @@ function tr(t) {
13
13
  }
14
14
  function rr({ tiles: t, pinned: a, className: r }) {
15
15
  if (a)
16
- return /* @__PURE__ */ d("div", { className: p("flex flex-col md:flex-row gap-2 h-full", r), children: [
17
- /* @__PURE__ */ e("div", { className: "flex-1 min-h-[240px]", children: a }),
16
+ return /* @__PURE__ */ d("div", { className: p("flex flex-col md:flex-row gap-2 h-full min-h-0", r), children: [
17
+ /* @__PURE__ */ e("div", { className: "flex-1 min-h-0", children: a }),
18
18
  t.length > 0 && /* @__PURE__ */ e("div", { className: "flex md:flex-col gap-2 md:w-48 overflow-auto", children: t.map((s, o) => /* @__PURE__ */ e("div", { className: "min-w-[160px] md:min-w-0", children: s }, o)) })
19
19
  ] });
20
20
  const n = t.length <= 1 ? "grid-cols-1" : t.length <= 4 ? "grid-cols-2" : t.length <= 9 ? "grid-cols-3" : "grid-cols-4";
@@ -27,13 +27,15 @@ function nr({
27
27
  speaking: n,
28
28
  hasVideo: s,
29
29
  videoSlot: o,
30
- className: u
30
+ className: u,
31
+ fill: b
31
32
  }) {
32
33
  return /* @__PURE__ */ d(
33
34
  "div",
34
35
  {
35
36
  className: p(
36
- "relative rounded-lg overflow-hidden bg-gray-800 aspect-video flex items-center justify-center",
37
+ "relative rounded-lg overflow-hidden bg-gray-800 flex items-center justify-center",
38
+ b ? "h-full w-full" : "aspect-video",
37
39
  n && "ring-2 ring-emerald-400",
38
40
  u
39
41
  ),
@@ -3705,8 +3707,8 @@ const Pt = {
3705
3707
  };
3706
3708
  function Bt(t) {
3707
3709
  if (!t) return "?";
3708
- const a = t.trim().split(/[\s@.]+/).filter(Boolean);
3709
- return a.length >= 2 ? (a[0][0] + a[1][0]).toUpperCase() : t.slice(0, 2).toUpperCase();
3710
+ const a = t.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean);
3711
+ return a.length >= 2 ? (a[0][0] + a[1][0]).toUpperCase() : a.length === 1 ? a[0].slice(0, 2).toUpperCase() : "?";
3710
3712
  }
3711
3713
  const Ot = ({ name: t, src: a, size: r = "sm", className: n, title: s }) => {
3712
3714
  const [o, u] = se.useState(!1), b = p(