@inf-monkeys-tech/monkeys-design 1.0.64 → 1.0.65

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.
@@ -2582,13 +2582,6 @@ function MoreIcon() {
2582
2582
  }
2583
2583
  );
2584
2584
  }
2585
- function getInitials2(name) {
2586
- if (!name) return "U";
2587
- const words = name.trim().split(/\s+/).filter(Boolean);
2588
- if (!words.length) return "U";
2589
- if (words.length === 1) return words[0].slice(0, 2).toUpperCase();
2590
- return words.slice(0, 2).map((word) => word[0]).join("").toUpperCase();
2591
- }
2592
2585
  function renderIcon(icon, className) {
2593
2586
  if (!icon) return null;
2594
2587
  return /* @__PURE__ */ jsx("span", { className: cn("inline-flex h-4 w-4 shrink-0 items-center justify-center", className), children: icon });
@@ -2672,7 +2665,6 @@ function UserAccountMenu({
2672
2665
  user
2673
2666
  }) {
2674
2667
  const displayName = user.name?.trim() || fallbackName;
2675
- const initials = user.initials ?? getInitials2(displayName);
2676
2668
  const radiusClass = radiusClassNames[menuRadius];
2677
2669
  const visibleSelectors = selectors.filter(
2678
2670
  (selector) => selector.visible !== false && selector.options.length > 0
@@ -2685,7 +2677,7 @@ function UserAccountMenu({
2685
2677
  appearance,
2686
2678
  alt: user.avatarAlt ?? displayName,
2687
2679
  className: cn("h-8 w-8", classNames?.avatar),
2688
- initials,
2680
+ initials: user.initials,
2689
2681
  name: displayName,
2690
2682
  size: "sm",
2691
2683
  src: user.avatarUrl