@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
package/dist/index.mjs
CHANGED
|
@@ -16163,13 +16163,6 @@ function MoreIcon() {
|
|
|
16163
16163
|
}
|
|
16164
16164
|
);
|
|
16165
16165
|
}
|
|
16166
|
-
function getInitials2(name) {
|
|
16167
|
-
if (!name) return "U";
|
|
16168
|
-
const words = name.trim().split(/\s+/).filter(Boolean);
|
|
16169
|
-
if (!words.length) return "U";
|
|
16170
|
-
if (words.length === 1) return words[0].slice(0, 2).toUpperCase();
|
|
16171
|
-
return words.slice(0, 2).map((word) => word[0]).join("").toUpperCase();
|
|
16172
|
-
}
|
|
16173
16166
|
function renderIcon(icon, className) {
|
|
16174
16167
|
if (!icon) return null;
|
|
16175
16168
|
return /* @__PURE__ */ jsx("span", { className: cn("inline-flex h-4 w-4 shrink-0 items-center justify-center", className), children: icon });
|
|
@@ -16253,7 +16246,6 @@ function UserAccountMenu({
|
|
|
16253
16246
|
user
|
|
16254
16247
|
}) {
|
|
16255
16248
|
const displayName = user.name?.trim() || fallbackName;
|
|
16256
|
-
const initials = user.initials ?? getInitials2(displayName);
|
|
16257
16249
|
const radiusClass = radiusClassNames[menuRadius];
|
|
16258
16250
|
const visibleSelectors = selectors.filter(
|
|
16259
16251
|
(selector) => selector.visible !== false && selector.options.length > 0
|
|
@@ -16266,7 +16258,7 @@ function UserAccountMenu({
|
|
|
16266
16258
|
appearance,
|
|
16267
16259
|
alt: user.avatarAlt ?? displayName,
|
|
16268
16260
|
className: cn("h-8 w-8", classNames?.avatar),
|
|
16269
|
-
initials,
|
|
16261
|
+
initials: user.initials,
|
|
16270
16262
|
name: displayName,
|
|
16271
16263
|
size: "sm",
|
|
16272
16264
|
src: user.avatarUrl
|