UNPKG

@patternfly/react-charts

Version:

This library provides a set of React chart components for use with the PatternFly reference implementation.

19 lines 956 B
import { __rest } from "tslib"; import * as React from 'react'; import hoistNonReactStatics from 'hoist-non-react-statics'; import { VictoryContainer } from 'victory-core'; import { getClassName, getTheme } from '../ChartUtils'; export const ChartContainer = (_a) => { var { className, themeColor, // eslint-disable-next-line @typescript-eslint/no-unused-vars themeVariant, // destructure last theme = getTheme(themeColor) } = _a, rest = __rest(_a, ["className", "themeColor", "themeVariant", "theme"]); const chartClassName = getClassName({ className }); // Note: className is valid, but Victory is missing a type return React.createElement(VictoryContainer, Object.assign({ className: chartClassName, theme: theme }, rest)); }; ChartContainer.displayName = 'ChartContainer'; // Note: VictoryContainer.role must be hoisted hoistNonReactStatics(ChartContainer, VictoryContainer); //# sourceMappingURL=ChartContainer.js.map