@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.
package/dist/index.js CHANGED
@@ -16198,13 +16198,6 @@ function MoreIcon() {
16198
16198
  }
16199
16199
  );
16200
16200
  }
16201
- function getInitials2(name) {
16202
- if (!name) return "U";
16203
- const words = name.trim().split(/\s+/).filter(Boolean);
16204
- if (!words.length) return "U";
16205
- if (words.length === 1) return words[0].slice(0, 2).toUpperCase();
16206
- return words.slice(0, 2).map((word) => word[0]).join("").toUpperCase();
16207
- }
16208
16201
  function renderIcon(icon, className) {
16209
16202
  if (!icon) return null;
16210
16203
  return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("inline-flex h-4 w-4 shrink-0 items-center justify-center", className), children: icon });
@@ -16288,7 +16281,6 @@ function UserAccountMenu({
16288
16281
  user
16289
16282
  }) {
16290
16283
  const displayName = user.name?.trim() || fallbackName;
16291
- const initials = user.initials ?? getInitials2(displayName);
16292
16284
  const radiusClass = radiusClassNames[menuRadius];
16293
16285
  const visibleSelectors = selectors.filter(
16294
16286
  (selector) => selector.visible !== false && selector.options.length > 0
@@ -16301,7 +16293,7 @@ function UserAccountMenu({
16301
16293
  appearance,
16302
16294
  alt: user.avatarAlt ?? displayName,
16303
16295
  className: cn("h-8 w-8", classNames?.avatar),
16304
- initials,
16296
+ initials: user.initials,
16305
16297
  name: displayName,
16306
16298
  size: "sm",
16307
16299
  src: user.avatarUrl