UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

22 lines (19 loc) 430 B
'use client'; 'use strict'; function getStyleObject(style, theme) { if (Array.isArray(style)) { return [...style].reduce( (acc, item) => ({ ...acc, ...getStyleObject(item, theme) }), {} ); } if (typeof style === "function") { return style(theme); } if (style == null) { return {}; } return style; } exports.getStyleObject = getStyleObject; //# sourceMappingURL=get-style-object.cjs.map