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,24 @@
/**
* Suffixes to be ignored in case of error
*/
const ignoreSuffixes = /*#__PURE__*/['-moz-placeholder', '-moz-focus-inner', '-moz-focusring', '-ms-input-placeholder', '-moz-read-write', '-moz-read-only'].join('|');
const ignoreSuffixesRegex = /*#__PURE__*/new RegExp(`:(${ignoreSuffixes})`);
/**
* @internal
*
* Calls `sheet.insertRule` and catches errors related to browser prefixes.
*/
function safeInsertRule(sheet, ruleCSS) {
try {
sheet.insertRule(ruleCSS);
} catch (e) {
// We've disabled these warnings due to false-positive errors with browser prefixes
if (process.env.NODE_ENV !== 'production' && !ignoreSuffixesRegex.test(ruleCSS)) {
// eslint-disable-next-line no-console
console.error(`There was a problem inserting the following rule: "${ruleCSS}"`, e);
}
}
}
export { safeInsertRule };
//# sourceMappingURL=safeInsertRule.esm.js.map