novo-elements 6.0.5 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "novo-elements",
3
- "version": "6.0.5",
3
+ "version": "6.1.0",
4
4
  "sideEffects": true,
5
5
  "peerDependencies": {
6
6
  "@angular/animations": ">=10",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "schematics",
3
- "version": "6.0.5",
3
+ "version": "6.1.0",
4
4
  "description": "A novo-element schematics",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.json",
@@ -1,7 +1,12 @@
1
- import { ElementRef } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef } from '@angular/core';
2
+ import { NovoTheme } from '../theme/theme-options';
2
3
  export declare class AccentColorDirective {
3
4
  private el;
5
+ private theme;
6
+ protected cdr: ChangeDetectorRef;
7
+ private subscription;
4
8
  accent: string;
5
9
  get hb_textColor(): string;
6
- constructor(el: ElementRef);
10
+ constructor(el: ElementRef, theme: NovoTheme, cdr: ChangeDetectorRef);
11
+ onDestroy(): void;
7
12
  }
@@ -12,4 +12,5 @@ export * from './mixins';
12
12
  export * from './novo-template';
13
13
  export * from './option';
14
14
  export * from './selection';
15
+ export * from './theme/theme-options';
15
16
  export * from './typography';
@@ -0,0 +1,29 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ export declare class NovoThemeOptions {
4
+ themeName: string;
5
+ }
6
+ export interface ThemeChangeEvent {
7
+ themeName: string;
8
+ options?: NovoThemeOptions;
9
+ }
10
+ export declare class NovoTheme {
11
+ private _defaultTheme;
12
+ private _currentTheme;
13
+ onThemeChange: EventEmitter<ThemeChangeEvent>;
14
+ /** Name of the theme being used. defaults to `modern-light` */
15
+ get themeName(): string;
16
+ set themeName(value: string);
17
+ use(options: NovoThemeOptions): Observable<any>;
18
+ /**
19
+ * Changes the current theme
20
+ */
21
+ private changeTheme;
22
+ }
23
+ /**
24
+ getComputedStyle(document.documentElement)
25
+ .getPropertyValue('--my-variable-name'); // #999999
26
+
27
+ document.documentElement.style
28
+ .setProperty('--my-variable-name', 'pink');
29
+ */