@elastic/charts 71.1.0 → 71.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,16 +28,16 @@ const react_1 = __importStar(require("react"));
|
|
|
28
28
|
const legend_icon_1 = require("./legend_icon");
|
|
29
29
|
const icon_1 = require("../icons/icon");
|
|
30
30
|
exports.CHANGE_SERIES_COLOR = 'Change the series color';
|
|
31
|
-
exports.Color = (0, react_1.memo)((0, react_1.forwardRef)(({ color,
|
|
31
|
+
exports.Color = (0, react_1.memo)((0, react_1.forwardRef)(({ color, isSeriesHidden = false, hasColorPicker, onClick, pointStyle }, ref) => {
|
|
32
32
|
if (isSeriesHidden) {
|
|
33
|
-
return (react_1.default.createElement("div", { className: "echLegendItem__color", title: "series hidden"
|
|
33
|
+
return (react_1.default.createElement("div", { className: "echLegendItem__color", title: "series hidden" },
|
|
34
34
|
react_1.default.createElement(icon_1.Icon, { type: "eyeClosed", viewBox: "-3 -3 22 22", "aria-hidden": "true" })));
|
|
35
35
|
}
|
|
36
36
|
if (hasColorPicker) {
|
|
37
37
|
return (react_1.default.createElement("button", { type: "button", onClick: onClick, className: "echLegendItem__color echLegendItem__color--changable", title: exports.CHANGE_SERIES_COLOR, ref: ref, "aria-label": `Change series color, currently ${color}` },
|
|
38
38
|
react_1.default.createElement(legend_icon_1.LegendIcon, { pointStyle: pointStyle, color: color })));
|
|
39
39
|
}
|
|
40
|
-
return (react_1.default.createElement("div", { className: "echLegendItem__color", title: "series color"
|
|
40
|
+
return (react_1.default.createElement("div", { className: "echLegendItem__color", title: "series color" },
|
|
41
41
|
react_1.default.createElement(legend_icon_1.LegendIcon, { pointStyle: pointStyle, color: color })));
|
|
42
42
|
}));
|
|
43
43
|
exports.Color.displayName = 'Color';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.js","sourceRoot":"","sources":["../../../src/components/legend/color.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;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,CAAC,CACF,CACF,CAAC;AACF,aAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
|
package/package.json
CHANGED