@databrainhq/plugin 0.10.99 → 0.10.177

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.
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { ChartSettingsType } from '@/types';
3
+ type PivotDownloadButtonProps = {
4
+ className?: string;
5
+ data: Record<string, string>[];
6
+ fileName: string;
7
+ iconClass?: string;
8
+ text?: string;
9
+ chartOptions?: ChartSettingsType;
10
+ };
11
+ export declare const PivotDownloadButton: React.FC<PivotDownloadButtonProps>;
12
+ export {};
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import EChartsReact from 'echarts-for-react';
3
+ import { ChartSettingsType } from '@/types';
3
4
  export type DownloadButtonProps = {
4
5
  data: Record<string, any>[];
5
6
  chartRef?: React.RefObject<EChartsReact>;
6
7
  metricName: string;
7
8
  onRawCsvData: () => void;
9
+ chartOptions?: ChartSettingsType;
8
10
  };
9
- export declare const DownloadButton: ({ data, chartRef, metricName, onRawCsvData, }: DownloadButtonProps) => JSX.Element;
11
+ export declare const DownloadButton: ({ data, chartRef, metricName, onRawCsvData, chartOptions, }: DownloadButtonProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './index'