@progress/kendo-react-scheduler
Version:
React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package
26 lines (25 loc) • 1.09 kB
JavaScript
/**
* @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 e from "react";
import { SchedulerSlot as p } from "./SchedulerSlot.mjs";
import { useSlotExpand as f } from "../hooks/useSlotExpand.mjs";
const i = e.forwardRef(
(t, s) => {
var r;
const { slot: n, _ref: u, ...c } = t, d = n || a.slot, o = e.useRef(null), l = e.useRef(null);
return e.useImperativeHandle(o, () => ({ props: t })), e.useImperativeHandle(u, () => l.current), e.useImperativeHandle(s, () => o.current), f(l, (r = t.expandable) != null ? r : a.expandable), /* @__PURE__ */ e.createElement(d, { ...c, _ref: l });
}
), a = {
slot: p,
expandable: !1
};
i.displayName = "KendoReactSchedulerViewSlot";
export {
i as SchedulerViewSlot,
a as schedulerViewSlotDefaultProps
};