UNPKG

@progress/kendo-react-scheduler

Version:

React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package

33 lines (32 loc) 1.05 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 * as a from "react"; import { ButtonGroup as o, Button as s } from "@progress/kendo-react-buttons"; const p = (r) => { const { value: l, data: c, onChange: t, ...u } = r, n = a.useCallback( (e) => { t && t.call(void 0, e.currentTarget.dataset.value); }, [t] ); return /* @__PURE__ */ a.createElement(o, { className: "k-scheduler-recurrence-repeat", width: "100%", ...u }, c.map((e) => /* @__PURE__ */ a.createElement( s, { type: "button", key: e.value, selected: e.value === l, onClick: n, "data-value": e.value, togglable: !0 }, e.text ))); }; export { p as RecurrenceFrequencyEditor };