@databrainhq/plugin 0.12.1 → 0.12.3

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.
@@ -3,6 +3,10 @@ import { ChartSettingsType } from '@/types/app';
3
3
  type Props = {
4
4
  chartSettings: ChartSettingsType;
5
5
  setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
6
+ setBarRadius: React.Dispatch<React.SetStateAction<{
7
+ topRadius: number;
8
+ bottomRadius: number;
9
+ }>>;
6
10
  };
7
- export declare const ChartConfigure: ({ chartSettings, setChartSettings }: Props) => React.JSX.Element;
11
+ export declare const ChartConfigure: ({ chartSettings, setChartSettings, setBarRadius, }: Props) => React.JSX.Element;
8
12
  export {};
@@ -22,7 +22,7 @@ export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuek
22
22
  color: string;
23
23
  } | undefined;
24
24
  itemStyle?: {
25
- borderRadius: number | undefined;
25
+ borderRadius: number[] | undefined;
26
26
  } | undefined;
27
27
  areaStyle: {
28
28
  opacity?: undefined;
@@ -45,7 +45,7 @@ export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuek
45
45
  color: string;
46
46
  } | undefined;
47
47
  itemStyle?: {
48
- borderRadius: number | undefined;
48
+ borderRadius: number[] | undefined;
49
49
  } | undefined;
50
50
  areaStyle: {
51
51
  opacity: number;
@@ -57,7 +57,7 @@ export type CustomSettings = {
57
57
  hideSplitLines?: string;
58
58
  hideAxisLines?: string;
59
59
  barWidth?: number;
60
- barRadius?: number;
60
+ barRadius?: number[];
61
61
  xRotation?: number;
62
62
  axisLabels?: string;
63
63
  fontSize?: number;
@@ -106,6 +106,11 @@ export type TableSettings = {
106
106
  };
107
107
  }[];
108
108
  }[];
109
+ badgeColors?: Record<string, string>;
110
+ badgeTextColors?: Record<string, string>;
111
+ badgeSeparator?: string;
112
+ listColumns?: string[];
113
+ listSeparator?: string;
109
114
  };
110
115
  export type BackgroundSettings = {
111
116
  show?: boolean;
@@ -1,9 +1,14 @@
1
1
  import { DashboardProps } from './containers/Dashboard';
2
+ import { Chart, ChartProps } from './components';
2
3
  import { MetricProps } from './containers/Metric';
4
+ export type { CustomSettings, TableSettings, MarginSettings, AxisSettings, LegendSettings, LabelSettings, BackgroundSettings, PivotSettingsType, GaugeSettingsType, ChartSettingsType, TimeSeriesSettingsType, } from '@/types';
3
5
  export declare namespace JSX {
4
6
  interface IntrinsicElements {
5
7
  Tag: any;
6
8
  'dbn-dashboard': DashboardProps;
7
9
  'dbn-metric': MetricProps;
10
+ 'dbn-chart': ChartProps;
8
11
  }
9
12
  }
13
+ export type { DashboardProps, MetricProps, ChartProps };
14
+ export { Chart };