UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

20 lines (19 loc) 641 B
import { jsx as c } from "react/jsx-runtime"; vi.mock("@mui/x-date-pickers", () => ({ DatePicker: ({ value: t, onChange: e, slotProps: i }) => { let r = i?.textField; typeof i?.textField == "function" && (r = i?.textField({ value: t, onChange: e })); const o = r.inputProps || {}, d = t && typeof t == "object" && t.format ? t.format("YYYY-MM-DD") : t || ""; return /* @__PURE__ */ c( "input", { type: "date", value: d, onChange: (p) => e && e(p.target.value), "data-testid": "date-picker-mock", ...o } ); } })); //# sourceMappingURL=muiDatePickerMock.js.map