UNPKG

@rnwonder/react-date-picker

Version:

A lightweight, customizable, and accessible date picker component for React applications.

45 lines (44 loc) 878 B
import { jsx as r, Fragment as c } from "react/jsx-runtime"; import u from "react"; import { c as p } from "./class-DLUjLwnh.js"; const f = u.forwardRef(({ setHeight: n, selected: t, noButtonAnimation: o, children: a, className: e, ...i }, m) => /* @__PURE__ */ r( "button", { ref: m, ...i, className: p( ` date-picker-main-btn rn-btn rn-btn-ghost rn-min-h-0 rn-p-0 motion-reduce:rn-no-animation motion-reduce:rn-transition-none `, { "rn-no-animation": o, "rn-h-full": !n, "dark:hover:rn-bg-black-tie": !t }, e ), "data-type": "date-picker-main-btn", type: "button", children: a } )); function l({ when: n, children: t }) { return n ? /* @__PURE__ */ r(c, { children: t }) : null; } export { f as B, l as S };