Build a MUI-flavoured ComponentResolver bound to the supplied
element types. Each render function captures the supplied components
in a closure so two consumers can build different resolvers from the
same package without leaking element types through module-level
mutable state — making the adapter safe to use in SSR and multi-tenant
environments.
Returns only the keys this theme actually overrides. The runtime
mergeResolvers call inside <SchemaComponent> / <SchemaView>
fills any unset keys from headlessResolver, so consumers never see
an unhandled field type even though this resolver leaves variants
like union, discriminatedUnion, record, file, and unknown
unset on purpose.
Build a MUI-flavoured ComponentResolver bound to the supplied element types. Each render function captures the supplied components in a closure so two consumers can build different resolvers from the same package without leaking element types through module-level mutable state — making the adapter safe to use in SSR and multi-tenant environments.
Returns only the keys this theme actually overrides. The runtime
mergeResolverscall inside<SchemaComponent>/<SchemaView>fills any unset keys fromheadlessResolver, so consumers never see an unhandled field type even though this resolver leaves variants likeunion,discriminatedUnion,record,file, andunknownunset on purpose.