@tolle_/tolle-ui 0.0.4-beta → 0.0.5-beta

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.
@@ -10,10 +10,18 @@ export declare class ThemeService {
10
10
  isDark$: import("rxjs").Observable<boolean>;
11
11
  constructor(document: Document, platformId: Object, config: TolleConfig, rendererFactory: RendererFactory2);
12
12
  private initializeTheme;
13
- private applyBrandConfig;
13
+ /**
14
+ * Applies the brand identity variables.
15
+ * These are applied to :root (html) so they ripple through all color-mix functions.
16
+ */
17
+ applyBrandConfig(config: TolleConfig): void;
14
18
  toggleTheme(): void;
15
19
  private enableDarkMode;
16
20
  private disableDarkMode;
21
+ /**
22
+ * Helper to get current state for components that might need JS-based logic
23
+ */
24
+ get currentTheme(): 'dark' | 'light';
17
25
  static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, [null, null, { optional: true; }, null]>;
18
26
  static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
19
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolle_/tolle-ui",
3
- "version": "0.0.4-beta",
3
+ "version": "0.0.5-beta",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },