climb-onyx-gui 0.16.3-dev.3 → 0.16.4-dev

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.
@@ -1,6 +1,6 @@
1
1
  import { default as Plotly, Layout } from 'plotly.js-basic-dist';
2
2
  import { DataProps } from '../interfaces';
3
- import { GraphConfig, Field } from '../types';
3
+ import { Themes, GraphConfig, Field } from '../types';
4
4
  interface BasePlotProps {
5
5
  fields: Map<string, Field>;
6
6
  plotData: Plotly.Data[];
@@ -10,7 +10,7 @@ interface BasePlotProps {
10
10
  yAxisType?: string;
11
11
  legendTitle?: string;
12
12
  layout?: Partial<Layout>;
13
- darkMode: boolean;
13
+ theme: Themes;
14
14
  uirevision: string;
15
15
  }
16
16
  interface GraphProps extends DataProps {
@@ -1,17 +1,18 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
- import { ExportStatus, TabState, Project, Field } from './types';
2
+ import { ExportStatus, TabState, Project, Field, Themes } from './types';
3
3
  export interface OnyxProps {
4
4
  enabled: boolean;
5
5
  httpPathHandler: (path: string) => Promise<Response>;
6
6
  s3PathHandler: (path: string) => Promise<void>;
7
7
  fileWriter: (path: string, content: string) => Promise<void>;
8
+ extTheme?: string | null;
8
9
  extVersion: string;
9
10
  getItem?: (key: string) => unknown;
10
11
  setItem?: (key: string, value: unknown) => void;
11
12
  setTitle?: (title: string) => void;
12
13
  }
13
14
  export interface PageProps extends OnyxProps {
14
- darkMode: boolean;
15
+ theme: Themes;
15
16
  tabState: TabState;
16
17
  setTabState: Dispatch<SetStateAction<TabState>>;
17
18
  }