UNPKG

@octopusdeploy/design-system-components

Version:
9 lines (8 loc) 773 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); const chartColors_1 = require("./chartColors"); function ChartColorGradients({ colors }) { return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: chartColors_1.chartStrokeColorValues.map((k) => ((0, jsx_runtime_1.jsxs)("linearGradient", { id: `color${k}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [(0, jsx_runtime_1.jsx)("stop", { offset: "0%", stopColor: colors[k], stopOpacity: 0.7 }), (0, jsx_runtime_1.jsx)("stop", { offset: "50%", stopColor: colors[k], stopOpacity: 0.4 }), (0, jsx_runtime_1.jsx)("stop", { offset: "100%", stopColor: colors[k], stopOpacity: 0 })] }, k))) })); } exports.default = ChartColorGradients;