@nwon/react-mui-hook-form 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextFieldClassKey } from "@mui/material";
|
|
3
|
+
import { DatePickerProps } from "@mui/x-date-pickers";
|
|
4
|
+
import { FormField } from "../../inputTypes";
|
|
5
|
+
export interface InputDatePickerProps {
|
|
6
|
+
formField: FormField;
|
|
7
|
+
datePickerProps?: Omit<DatePickerProps<TextFieldClassKey, Date>, "label" | "onChange" | "disabled">;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A Datetime picker that works with react hook form.
|
|
11
|
+
*/
|
|
12
|
+
export declare const InputDatePicker: ({ formField, datePickerProps, }: InputDatePickerProps) => JSX.Element;
|
|
@@ -8,6 +8,8 @@ export { InputAutocomplete } from "./baseTypes/InputAutocomplete/InputAutocomple
|
|
|
8
8
|
export type { InputAutocompleteProps } from "./baseTypes/InputAutocomplete/InputAutocompleteInterfaces";
|
|
9
9
|
export { InputCheckbox } from "./baseTypes/InputCheckbox/InputCheckbox";
|
|
10
10
|
export type { InputCheckboxProps } from "./baseTypes/InputCheckbox/InputCheckbox";
|
|
11
|
+
export { InputDatePicker } from "./baseTypes/InputDatePicker/InputDatePicker";
|
|
12
|
+
export type { InputDatePickerProps } from "./baseTypes/InputDatePicker/InputDatePicker";
|
|
11
13
|
export { InputDateTimePicker } from "./baseTypes/InputDateTimePicker/InputDateTimePicker";
|
|
12
14
|
export type { InputDateTimePickerProps } from "./baseTypes/InputDateTimePicker/InputDateTimePicker";
|
|
13
15
|
export { InputRadio } from "./baseTypes/InputRadio/InputRadio";
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@nwon/react-mui-hook-form","version":"1.0.
|
|
1
|
+
{"name":"@nwon/react-mui-hook-form","version":"1.0.5","type":"module","keywords":["react","MUI","React Hook Form","forms","typescript"],"repository":{"type":"git","url":"https://gitlab.com/nwon-group/nwon-tooling/npm-packages/react-mui-hook-form"},"description":"Making react forms easy - A connection of MUI and React Hook Form","types":"dist/packageExports.d.ts","main":"dist/packageExports.js","cracoConfig":"craco.config.cjs","scripts":{},"files":["dist","readme.md","license"],"author":"NWON","license":"MIT","devDependencies":{"@babel/core":"^7.21.3","@babel/plugin-transform-runtime":"^7.21.0","@babel/preset-flow":"^7.18.6","@babel/preset-react":"^7.18.6","@craco/craco":"^6.4.3","@nvon/eslint-config":"^1.21.1","@nvon/node-toolbox":"^0.20.4","@rollup/plugin-babel":"^6.0.3","@types/lodash-es":"^4.17.6","@types/node":"^18.11.11","@types/react-dom":">=17.0.0","@types/webpack":"^4.41.32","cross-env":"^7.0.3","npm":"^9.5.0","react-scripts":"^4.0.3","rimraf":"^3.0.2","rollup":"^3.19.1","rollup-plugin-sass":"^1.12.17","rollup-plugin-typescript2":"^0.34.1","typescript":"^4.9.5"},"dependencies":{"@babel/runtime":"^7.21.0","@mui/lab":"^5.0.0-alpha.134","@mui/material":"^5.13.5","@mui/x-date-pickers":"^5.0.20","@nvon/baseline":"^0.33.0","dayjs":"^1.11.10","fuse.js":"^6.5.3","i18next":"^22.4.10","lodash-es":"^4.17.21","react-hook-form":"^7.41.3","react-i18next":"^11.18.5"},"peerDependencies":{"react":">=17.0.0","react-dom":">=17.0.0"},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]}}
|