All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.esm.styled-system.normalize.js Maven / Gradle / Ivy

Go to download

Responsive and accessible React UI components built with React and Emotion

The newest version!
"use strict";
import { walkObject } from '../utils/walk-object.js';

function createNormalizeFn(context) {
  const { utility, normalize } = context;
  const { hasShorthand, resolveShorthand } = utility;
  return function(styles) {
    return walkObject(styles, normalize, {
      stop: (value) => Array.isArray(value),
      getKey: hasShorthand ? resolveShorthand : void 0
    });
  };
}

export { createNormalizeFn };




© 2015 - 2025 Weber Informatics LLC | Privacy Policy