Private
Public Access
1
0

feat: Fluent UI Outlook Lite + connections mockup

This commit is contained in:
2026-04-14 18:52:25 +00:00
parent 1199eff6c3
commit dfa4010406
34820 changed files with 1003813 additions and 205 deletions

View File

@@ -0,0 +1,37 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
isTruncatableBreadcrumbContent: function() {
return isTruncatableBreadcrumbContent;
},
truncateBreadcrumLongTooltip: function() {
return truncateBreadcrumLongTooltip;
},
truncateBreadcrumbLongName: function() {
return truncateBreadcrumbLongName;
}
});
const MAX_NAME_LENGTH = 30;
const MAX_TOOLTIP_LENGTH = 80;
const truncateBreadcrumb = (content, maxLength)=>{
return isTruncatableBreadcrumbContent(content, maxLength) ? content.trim().slice(0, maxLength).concat('...') : content;
};
const isTruncatableBreadcrumbContent = (content, maxLength)=>{
return content.length > maxLength;
};
const truncateBreadcrumbLongName = (content, maxLength)=>{
const truncateLength = maxLength || MAX_NAME_LENGTH;
return truncateBreadcrumb(content, truncateLength);
};
const truncateBreadcrumLongTooltip = (content, maxLength)=>{
const truncateLength = maxLength || MAX_TOOLTIP_LENGTH;
return truncateBreadcrumb(content, truncateLength);
};