@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/components/layout/index.js +1 -9
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs +1 -9
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/index.js +1 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2605,13 +2605,6 @@ function MoreIcon() {
|
|
|
2605
2605
|
}
|
|
2606
2606
|
);
|
|
2607
2607
|
}
|
|
2608
|
-
function getInitials2(name) {
|
|
2609
|
-
if (!name) return "U";
|
|
2610
|
-
const words = name.trim().split(/\s+/).filter(Boolean);
|
|
2611
|
-
if (!words.length) return "U";
|
|
2612
|
-
if (words.length === 1) return words[0].slice(0, 2).toUpperCase();
|
|
2613
|
-
return words.slice(0, 2).map((word) => word[0]).join("").toUpperCase();
|
|
2614
|
-
}
|
|
2615
2608
|
function renderIcon(icon, className) {
|
|
2616
2609
|
if (!icon) return null;
|
|
2617
2610
|
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("inline-flex h-4 w-4 shrink-0 items-center justify-center", className), children: icon });
|
|
@@ -2695,7 +2688,6 @@ function UserAccountMenu({
|
|
|
2695
2688
|
user
|
|
2696
2689
|
}) {
|
|
2697
2690
|
const displayName = user.name?.trim() || fallbackName;
|
|
2698
|
-
const initials = user.initials ?? getInitials2(displayName);
|
|
2699
2691
|
const radiusClass = radiusClassNames[menuRadius];
|
|
2700
2692
|
const visibleSelectors = selectors.filter(
|
|
2701
2693
|
(selector) => selector.visible !== false && selector.options.length > 0
|
|
@@ -2708,7 +2700,7 @@ function UserAccountMenu({
|
|
|
2708
2700
|
appearance,
|
|
2709
2701
|
alt: user.avatarAlt ?? displayName,
|
|
2710
2702
|
className: cn("h-8 w-8", classNames?.avatar),
|
|
2711
|
-
initials,
|
|
2703
|
+
initials: user.initials,
|
|
2712
2704
|
name: displayName,
|
|
2713
2705
|
size: "sm",
|
|
2714
2706
|
src: user.avatarUrl
|