angular-material-css-vars
Advanced tools
Comparing version
import * as i0 from '@angular/core'; | ||
import { RendererFactory2, ModuleWithProviders, EnvironmentProviders } from '@angular/core'; | ||
import { ModuleWithProviders, EnvironmentProviders } from '@angular/core'; | ||
import * as i1 from '@angular/common'; | ||
@@ -40,2 +40,7 @@ | ||
lightThemeClass: string; | ||
/** | ||
* Selector to which the CSS variables are added. | ||
* If not specified, the document's HTML element is used. | ||
*/ | ||
rootSelector?: string; | ||
colorMap: MaterialCssColorMapperEntry[]; | ||
@@ -113,3 +118,2 @@ sortedHues: HueValue[]; | ||
declare class MaterialCssVarsService { | ||
private document; | ||
private static CONTRAST_PREFIX; | ||
@@ -131,3 +135,4 @@ private static DARK_TEXT_VAR; | ||
private readonly _white; | ||
constructor(rendererFactory: RendererFactory2, document: Document, cfg: MaterialCssVariablesConfig); | ||
private readonly document; | ||
constructor(); | ||
setPrimaryColor(hex: string): void; | ||
@@ -172,2 +177,3 @@ setAccentColor(hex: string): void; | ||
private _getContrast; | ||
private _getRootElement; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialCssVarsService, never>; | ||
@@ -174,0 +180,0 @@ static ɵprov: i0.ɵɵInjectableDeclaration<MaterialCssVarsService>; |
{ | ||
"name": "angular-material-css-vars", | ||
"version": "9.0.1", | ||
"version": "9.1.0", | ||
"description": "Little library to use css variables for @angular/material", | ||
@@ -5,0 +5,0 @@ "author": "johannesjo <contact@super-productivity.com> (http://super-productivity.com)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
120776
1.19%677
2.11%