UNPKG

fui-fancyui

Version:
15 lines (14 loc) 552 B
"use client"; import { jsx as n } from "react/jsx-runtime"; import c from "../NumberInput/NumberInput.js"; import { StyledInput as p } from "./YearInput.style.js"; function g(r) { const { year: o, sizeC: u = "md", align: a, themeType: l, layer: s, ...i } = r; return /* @__PURE__ */ n(p, { $sizeC: u, $themeType: l, $layer: s, children: /* @__PURE__ */ n(c, { autoWidth: !0, maxLength: 4, align: a, value: o, onFocus: (m) => { const e = m.target, t = e.value.length; e.setSelectionRange(t, t); }, ...i }) }); } export { g as default };