Files
redash/client/app/components/empty-state/EmptyState.d.ts
Gabriel Dutra fa7ecca485 Frontend updates from internal fork (#5259)
* DynamicComponent for QuerySourceAlerts

* General Settings updates

* Dynamic Date[Range] updates

* EmptyState updates

* Query and SchemaBrowser updates

* Adjust page headers and add disablePublish

* Policy updates

* Separate Home FavoritesList component

* Update FormatQuery

* Autolimit frontend fixes

* Misc updates

* Keep registering of QuerySourceDropdown

* Undo changes in DynamicComponent

* Change sql-formatter package.json syntax

* Allow opening help trigger in new tab

* Don't run npm commands as root in Dockerfile

* Cypress: Remove extra execute query
2020-11-10 14:59:15 +02:00

51 lines
1.2 KiB
TypeScript

import React from "react";
type DefaultStepKey = "dataSources" | "queries" | "alerts" | "dashboards" | "users";
export type StepKey<K> = DefaultStepKey | K;
export interface StepItem<K> {
key: StepKey<K>;
node: React.ReactNode;
}
export interface EmptyStateHelpMessageProps {
helpTriggerType: string;
}
export declare const EmptyStateHelpMessage: React.FunctionComponent<EmptyStateHelpMessageProps>;
export interface EmptyStateProps<K = unknown> {
header?: string;
icon?: string;
description: string;
illustration: string;
illustrationPath?: string;
helpMessage?: React.ReactNode;
closable?: boolean;
onClose?: () => void;
onboardingMode?: boolean;
showAlertStep?: boolean;
showDashboardStep?: boolean;
showDataSourceStep?: boolean;
showInviteStep?: boolean;
getStepsItems?: (items: Array<StepItem<K>>) => Array<StepItem<K>>;
}
declare class EmptyState<R> extends React.Component<EmptyStateProps<R>> {}
export default EmptyState;
export interface StepProps {
show: boolean;
completed: boolean;
url?: string;
urlTarget?: string;
urlText?: React.ReactNode;
text?: React.ReactNode;
onClick?: () => void;
}
export declare const Step: React.FunctionComponent<StepProps>;