UNPKG

fui-fancyui

Version:
43 lines (42 loc) 790 B
"use client"; import { jsx as d } from "react/jsx-runtime"; import { forwardRef as v, useState as $ } from "react"; import { StyledDatePicker as x } from "./DateInput.style.js"; const F = v((s, l) => { const { value: t, align: n, themeType: i = "secondary", layer: c = 0, type: u = "date", onFocus: r, onBlur: o, externalStyle: f, ...p } = s, [m, y] = $(!1), a = (e) => { y(e); }; return /* @__PURE__ */ d( x, { ref: l, $align: n, $layer: c, $themeType: i, $isActive: m || !!t, $externalStyle: f, type: u, value: t, onFocus: (e) => { r && r(e), a(!0); }, onBlur: (e) => { o && o(e), a(!1); }, ...p } ); }); export { F as default };