@hexdspace/react 0.1.57 → 0.1.58
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/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1003,8 +1003,8 @@ declare class ThemeController {
|
|
|
1003
1003
|
private readonly setDocumentTheme;
|
|
1004
1004
|
private readonly watchSystemThemeUpdate;
|
|
1005
1005
|
constructor(setDocumentTheme: SetDocumentTheme, watchSystemThemeUpdate: WatchSystemTheme);
|
|
1006
|
-
|
|
1007
|
-
|
|
1006
|
+
handleSetTheme(theme: Theme): void;
|
|
1007
|
+
onSystemThemeUpdated(onChange: (theme: Exclude<Theme, 'system'>) => void): () => void;
|
|
1008
1008
|
}
|
|
1009
1009
|
declare const themeController: ThemeController;
|
|
1010
1010
|
|
package/dist/index.js
CHANGED
|
@@ -4089,10 +4089,10 @@ var ThemeController = class {
|
|
|
4089
4089
|
this.setDocumentTheme = setDocumentTheme;
|
|
4090
4090
|
this.watchSystemThemeUpdate = watchSystemThemeUpdate;
|
|
4091
4091
|
}
|
|
4092
|
-
|
|
4092
|
+
handleSetTheme(theme) {
|
|
4093
4093
|
return this.setDocumentTheme.execute(theme);
|
|
4094
4094
|
}
|
|
4095
|
-
|
|
4095
|
+
onSystemThemeUpdated(onChange) {
|
|
4096
4096
|
return this.watchSystemThemeUpdate.execute(onChange);
|
|
4097
4097
|
}
|
|
4098
4098
|
};
|