/*! * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and limitations under the License. */ import { type ReactElement } from "react"; /** The props for a chart frame. */ export type ChartFrameProps = { /** * The chart. The frame shows this element when there is no error state and no loading state. */ children: ReactElement; /** * If `true`, the frame shows an error state in place of the chart body. `isLoading` takes precedence over this property. */ hasError?: boolean; /** * If `true`, the frame shows a loading skeleton in place of the chart body. `isLoading` takes precedence over `hasError`. */ isLoading?: boolean; /** * The frame calls this function when a user clicks the retry button in the error state. The error state shows no retry button when the caller omits this property. * * @see {@link CartesianChartProps.onRetry} for the retry flow that a * consumer follows. That property is the public one, so it owns the description. */ onRetry?: () => void; /** * The subtitle text, shown below the title. The frame ignores this text when `title` has no value, because a subtitle explains a title and means nothing alone. */ subtitle?: string; /** * The title text, shown as a real heading above the chart body. The heading survives every state: loaded, loading, and error. */ title?: string; }; declare const MemoizedChartFrame: import("react").MemoExoticComponent<({ children, hasError, isLoading, onRetry, subtitle, title, }: ChartFrameProps) => import("@emotion/react/jsx-runtime").JSX.Element>; export { MemoizedChartFrame as ChartFrame }; //# sourceMappingURL=ChartFrame.d.ts.map