Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
import './constants.esm.js';
import { debugData } from './devtools/store.esm.js';
import { isDevToolsEnabled } from './devtools/isDevToolsEnabled.esm.js';
import { reduceToClassNameForSlots } from './runtime/reduceToClassNameForSlots.esm.js';
/**
* A version of makeStyles() that accepts build output as an input and skips all runtime transforms & DOM insertion.
*
* @internal
*/
function __css(classesMapBySlot) {
let ltrClassNamesForSlots = null;
let rtlClassNamesForSlots = null;
function computeClasses(options) {
const {
dir
} = options;
const isLTR = dir === 'ltr';
if (isLTR) {
if (ltrClassNamesForSlots === null) {
ltrClassNamesForSlots = reduceToClassNameForSlots(classesMapBySlot, dir);
}
} else {
if (rtlClassNamesForSlots === null) {
rtlClassNamesForSlots = reduceToClassNameForSlots(classesMapBySlot, dir);
}
}
const classNamesForSlots = isLTR ? ltrClassNamesForSlots : rtlClassNamesForSlots;
if (process.env.NODE_ENV !== 'production' && isDevToolsEnabled) {
debugData.addSequenceDetails(classNamesForSlots);
}
return classNamesForSlots;
}
return computeClasses;
}
export { __css };
//# sourceMappingURL=__css.esm.js.map