@mui/material
Version:
Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.
15 lines (14 loc) • 751 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = shouldSkipGeneratingVar;
function shouldSkipGeneratingVar(keys) {
return keys[0] === 'motion' ||
// Keep `focusVisible` inline: its values reference the per-component private vars
// (`--_focusVisible-offset`/`-behavior`). Hoisted to a `:root` var they resolve where those
// vars are unset, silently breaking the inner-ring inset.
keys[0] === 'focusVisible' || !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
// ends with sxConfig
keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
}