UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

22 lines (19 loc) 448 B
'use client'; import { mergeVars } from './merge-vars.mjs'; function resolveVars({ vars, varsResolver, theme, props, stylesCtx, selector, themeName }) { return mergeVars([ varsResolver?.(theme, props, stylesCtx), ...themeName.map((name) => theme.components?.[name]?.vars?.(theme, props, stylesCtx)), vars?.(theme, props, stylesCtx) ])?.[selector]; } export { resolveVars }; //# sourceMappingURL=resolve-vars.mjs.map