UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

18 lines (14 loc) 463 B
"use strict"; 'use strict'; var walkObject = require('../utils/walk-object.cjs'); function createNormalizeFn(context) { const { utility, normalize } = context; const { hasShorthand, resolveShorthand } = utility; return function(styles) { return walkObject.walkObject(styles, normalize, { stop: (value) => Array.isArray(value), getKey: hasShorthand ? resolveShorthand : void 0 }); }; } exports.createNormalizeFn = createNormalizeFn;