@cerberus-design/react
Version:
The Cerberus Design React component library.
40 lines (38 loc) • 955 B
JavaScript
import {
DatePickerTrigger
} from "./chunk-SKOX5PJI.js";
import {
DatePickerParts
} from "./chunk-BXDQ5AXV.js";
// src/components/date-picker/range-input.tsx
import { jsx, jsxs } from "react/jsx-runtime";
function RangePickerInput(props) {
return /* @__PURE__ */ jsxs(DatePickerParts.Control, { "data-range": true, children: [
/* @__PURE__ */ jsx(DatePickerTrigger, {}),
/* @__PURE__ */ jsx(
DatePickerParts.Input,
{
...props,
"data-range-input": true,
placeholder: props.placeholder ?? "DD MMM YYYY",
maxLength: 11,
index: 0
}
),
/* @__PURE__ */ jsx(
DatePickerParts.Input,
{
...props,
"data-range-input": true,
"data-range-end-input": true,
placeholder: props.placeholder ?? "DD MMM YYYY",
maxLength: 11,
index: 1
}
)
] });
}
export {
RangePickerInput
};
//# sourceMappingURL=chunk-YR6G66UT.js.map