UNPKG

@patternfly/react-charts

Version:

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

23 lines 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChartContainer = void 0; const tslib_1 = require("tslib"); const React = tslib_1.__importStar(require("react")); const hoist_non_react_statics_1 = tslib_1.__importDefault(require("hoist-non-react-statics")); const victory_core_1 = require("victory-core"); const ChartUtils_1 = require("../ChartUtils"); const ChartContainer = (_a) => { var { className, themeColor, // eslint-disable-next-line @typescript-eslint/no-unused-vars themeVariant, // destructure last theme = (0, ChartUtils_1.getTheme)(themeColor) } = _a, rest = tslib_1.__rest(_a, ["className", "themeColor", "themeVariant", "theme"]); const chartClassName = (0, ChartUtils_1.getClassName)({ className }); // Note: className is valid, but Victory is missing a type return React.createElement(victory_core_1.VictoryContainer, Object.assign({ className: chartClassName, theme: theme }, rest)); }; exports.ChartContainer = ChartContainer; exports.ChartContainer.displayName = 'ChartContainer'; // Note: VictoryContainer.role must be hoisted (0, hoist_non_react_statics_1.default)(exports.ChartContainer, victory_core_1.VictoryContainer); //# sourceMappingURL=ChartContainer.js.map