@spaced-out/ui-design-system
Version:
Sense UI components library
56 lines • 1.44 kB
TypeScript
import * as React from 'react';
import type { Flow } from 'flow-to-typescript-codemod';
import Highcharts from 'highcharts';
interface ChartRef {
chart?: Highcharts.Chart;
}
export type ChartRefObject = React.RefObject<ChartRef | null>;
export interface ExportOptionType {
key: string;
label: string;
format: string;
}
export declare const EXPORT_OPTIONS: Readonly<{
download_as_png: {
key: string;
label: string;
format: string;
};
download_as_jpeg: {
key: string;
label: string;
format: string;
};
download_as_pdf: {
key: string;
label: string;
format: string;
};
download_as_svg: {
key: string;
label: string;
format: string;
};
}>;
export type ChartWrapperClassNames = Readonly<{
wrapper?: string;
header?: string;
title?: string;
actions?: string;
content?: string;
loader?: string;
}>;
interface ChartWrapperProps {
isLoading?: boolean;
title: React.ReactNode;
children?: React.ReactNode;
classNames?: ChartWrapperClassNames;
customExportOptions?: Array<ExportOptionType> | null;
headerActions?: React.ReactNode;
hasEmptyData?: boolean;
emptyText?: React.ReactNode;
testId?: string;
}
export declare const ChartWrapper: Flow.AbstractComponent<ChartWrapperProps, HTMLDivElement>;
export {};
//# sourceMappingURL=ChartWrapper.d.ts.map