@fastr-pro/global-header 1.0.5 → 1.0.7

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 CHANGED
@@ -136,6 +136,9 @@ export interface HeaderConfig {
136
136
  authRedirectUrl?: string;
137
137
  profileGetter?: (() => Promise<User | any> | User | any) | null;
138
138
  uiTheme?: 'light' | 'dark' | 'system' | string;
139
+ theme?: 'light' | 'dark' | 'system' | string;
140
+ setTheme?: ((theme: 'light' | 'dark' | 'system' | string, isDark?: boolean) => void) | null;
141
+ onThemeChange?: ((theme: 'light' | 'dark' | 'system' | string, isDark?: boolean) => void) | null;
139
142
  currentApp?: string;
140
143
  themeParamName?: string;
141
144
  appendThemeParam?: boolean;
@@ -155,8 +158,9 @@ export interface GlobalHeaderProps {
155
158
  apps?: Record<string, AppConfig> | AppConfig[];
156
159
  user?: User | null;
157
160
  logout?: () => void;
158
- theme?: 'light' | 'dark' | 'system';
159
- setTheme?: (theme: 'light' | 'dark' | 'system') => void;
161
+ theme?: 'light' | 'dark' | 'system' | string;
162
+ setTheme?: (theme: 'light' | 'dark' | 'system' | string, isDark?: boolean) => void;
163
+ onThemeChange?: (theme: 'light' | 'dark' | 'system' | string, isDark?: boolean) => void;
160
164
  currentApp?: 'derivatives' | 'xray' | 'scanner' | 'charting' | 'macro' | string;
161
165
  navigate?: (path: string) => void;
162
166
  onNavigate?: (path: string, app?: AppConfig, item?: AppItemConfig) => void;