UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

32 lines (29 loc) 626 B
'use client'; 'use strict'; function mergeStyles(styles, theme) { if (Array.isArray(styles)) { return [...styles].reduce( (acc, item) => ({ ...acc, ...mergeStyles(item, theme) }), {} ); } if (typeof styles === "function") { return styles(theme); } if (styles == null) { return {}; } return styles; } function getBoxStyle({ theme, style, vars, styleProps }) { const _style = mergeStyles(style, theme); const _vars = mergeStyles(vars, theme); return { ..._style, ..._vars, ...styleProps }; } exports.getBoxStyle = getBoxStyle; //# sourceMappingURL=get-box-style.cjs.map