@atlaskit/primitives
Version:
Primitives are token-backed low-level building blocks.
10 lines • 589 B
JavaScript
import _defineProperty from "@babel/runtime/helpers/defineProperty";
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
import { css } from '@emotion/react';
export var getSerializedStylesMap = function getSerializedStylesMap(cssProperty, tokenMap) {
return Object.keys(tokenMap).reduce(function (emotionSpacingMap, tokenName) {
// eslint-disable-next-line @repo/internal/styles/no-exported-styles
emotionSpacingMap[tokenName] = css(_defineProperty({}, cssProperty, tokenMap[tokenName]));
return emotionSpacingMap;
}, {});
};