UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

23 lines (20 loc) 476 B
'use client'; import { mergeVars } from './merge-vars.mjs'; function resolveVars({ vars, varsResolver, theme, props, stylesCtx, selector, themeName, headless }) { return mergeVars([ headless ? {} : 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