@progress/kendo-react-dateinputs
Version:
React DateInput is a perfect input component for handling quick and efficient date values. KendoReact Date Inputs package
26 lines (25 loc) • 883 B
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 n from "react";
import { FloatingLabel as a } from "@progress/kendo-react-labels";
const c = (e) => {
const [t, o] = n.useState(!1), r = () => {
var s;
e.current && o(!!((s = e.current.element) != null && s.value || e.current.text));
};
return n.useEffect(r), {
editorValue: t
};
}, i = (e) => {
const { dateInput: t, ...o } = e, r = c(t);
return /* @__PURE__ */ n.createElement(a, { ...o, ...r });
};
export {
i as PickerFloatingLabel,
c as usePickerFloatingLabel
};