UNPKG

@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.

14 lines (13 loc) • 760 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = shouldSkipGeneratingVar; function shouldSkipGeneratingVar(keys) { return keys[0] === 'motion' || // Keep `focusVisible` inline: its box-shadow references `--_focusVisible-shadow`, which colored // surfaces set on their subtree. Hoisted to a `:root` var it resolves where that var is unset. keys[0] === 'focusVisible' || keys[0] === 'unstable_focusVisibleInsetOverrides' || !!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)/); }