UNPKG

@progress/kendo-react-chart-wizard

Version:

React Chart Wizard lets you create a chart using data from a Grid, another data-bound component, or an external source

30 lines (29 loc) 1.13 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import a from "react"; import { classNames as n, IconWrap as l } from "@progress/kendo-react-common"; const o = (e) => { const t = a.useCallback( (c) => { (c.key === "Enter" || c.key === " ") && (c.preventDefault(), e.onClick.call(void 0)); }, [e.onClick] ); return /* @__PURE__ */ a.createElement("div", { className: n("k-icon-text-wrapper", { "k-selected": e.selected }), onClick: e.onClick }, /* @__PURE__ */ a.createElement("div", { className: "k-icon-background-area", tabIndex: 0, onKeyDown: t }, /* @__PURE__ */ a.createElement( l, { name: e.iconName, icon: e.icon, size: "xlarge", className: "k-svg-i-chart-bar-clustered" } )), e.children); }; export { o as SeriesTypeButton };