From 72ee17c9654a316bb4e24992b5b8f514cfe8e3c3 Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 10 Oct 2023 15:13:44 +0200 Subject: [PATCH 01/13] added SingleInputTimeRangeField and SingleInputDateTimeRangeField component links to overview page --- docs/pages/x/api/date-pickers/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/pages/x/api/date-pickers/index.md b/docs/pages/x/api/date-pickers/index.md index 5ac65d65a403..c6c4bfb03160 100644 --- a/docs/pages/x/api/date-pickers/index.md +++ b/docs/pages/x/api/date-pickers/index.md @@ -42,7 +42,9 @@ - [MultiInputDateRangeField](/x/api/date-pickers/multi-input-date-range-field/) - [SingleInputDateRangeField](/x/api/date-pickers/single-input-date-range-field/) - [MultiInputTimeRangeField](/x/api/date-pickers/multi-input-time-range-field/) +- [SingleInputTimeRangeField](/x/api/date-pickers/single-input-time-range-field/) - [MultiInputDateTimeRangeField](/x/api/date-pickers/multi-input-date-time-range-field/) +- [SingleInputDateTimeRangeField](/x/api/date-pickers/single-input-date-time-range-field/) ### Calendars From d3f64d7012bee84910b490221cbf7746d90e650f Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 10 Oct 2023 15:15:14 +0200 Subject: [PATCH 02/13] added reference links to DateField component --- packages/x-date-pickers/src/DateField/DateField.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/x-date-pickers/src/DateField/DateField.tsx b/packages/x-date-pickers/src/DateField/DateField.tsx index a6ab1ffd4c70..500146861666 100644 --- a/packages/x-date-pickers/src/DateField/DateField.tsx +++ b/packages/x-date-pickers/src/DateField/DateField.tsx @@ -377,4 +377,12 @@ DateField.propTypes = { variant: PropTypes.oneOf(['filled', 'outlined', 'standard']), } as any; +/** + * Demos: + * - [DateField](http://mui.com/x/react-date-pickers/date-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [DateField API](https://mui.com/x/api/date-pickers/date-field/) + */ export { DateField }; From 598738cd4a4d0344eb021db522764dc4e63efa89 Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 10 Oct 2023 15:16:18 +0200 Subject: [PATCH 03/13] added reference links to TimeField component --- packages/x-date-pickers/src/TimeField/TimeField.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/x-date-pickers/src/TimeField/TimeField.tsx b/packages/x-date-pickers/src/TimeField/TimeField.tsx index a60706c388f9..905d9dc5de8a 100644 --- a/packages/x-date-pickers/src/TimeField/TimeField.tsx +++ b/packages/x-date-pickers/src/TimeField/TimeField.tsx @@ -383,4 +383,12 @@ TimeField.propTypes = { variant: PropTypes.oneOf(['filled', 'outlined', 'standard']), } as any; +/** + * Demos: + * - [TimeField](http://mui.com/x/react-date-pickers/time-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [TimeField API](https://mui.com/x/api/date-pickers/time-field/) + */ export { TimeField }; From ac59f28913eff90ca2313f6398ea64f9aa888569 Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 10 Oct 2023 15:16:45 +0200 Subject: [PATCH 04/13] added reference links to DateTimeField component --- .../x-date-pickers/src/DateTimeField/DateTimeField.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx b/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx index 4077f934b4d5..498c858c194c 100644 --- a/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx +++ b/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx @@ -424,4 +424,12 @@ DateTimeField.propTypes = { variant: PropTypes.oneOf(['filled', 'outlined', 'standard']), } as any; +/** + * Demos: + * - [DateTimeField](http://mui.com/x/react-date-pickers/date-time-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [DateTimeField API](https://mui.com/x/api/date-pickers/date-time-field/) + */ export { DateTimeField }; From 23c8ec3e5415506cba19eb513be51f0974c679f7 Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 10 Oct 2023 15:17:59 +0200 Subject: [PATCH 05/13] added reference links to MultiInputDateRangeField component --- .../MultiInputDateRangeField/MultiInputDateRangeField.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx b/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx index 54d5aed16539..33001197d0b2 100644 --- a/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx @@ -411,4 +411,12 @@ MultiInputDateRangeField.propTypes = { value: PropTypes.arrayOf(PropTypes.any), } as any; +/** + * Demos: + * - [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [MultiInputDateRangeField API](https://mui.com/x/api/multi-input-date-range-field/) + */ export { MultiInputDateRangeField }; From 08baf76c23ffadb5af0da63b4c68ea7e3993c002 Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 10 Oct 2023 15:19:01 +0200 Subject: [PATCH 06/13] added reference links to MultiInputDateTimeRangeField component --- .../MultiInputDateTimeRangeField.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx b/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx index ff494d51fd83..0616ef8ae486 100644 --- a/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx @@ -458,4 +458,12 @@ MultiInputDateTimeRangeField.propTypes = { value: PropTypes.arrayOf(PropTypes.any), } as any; +/** + * Demos: + * - [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [MultiInputDateTimeRangeField API](https://mui.com/x/api/multi-input-date-time-range-field/) + */ export { MultiInputDateTimeRangeField }; From 6c0d6994f152c4552f117359268a4ec58f1084a0 Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 10 Oct 2023 15:19:56 +0200 Subject: [PATCH 07/13] added reference links to MultiInputTimeRangeField component --- .../MultiInputTimeRangeField/MultiInputTimeRangeField.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx b/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx index 3b6e252e5ff7..f22fa6facf4e 100644 --- a/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx @@ -434,4 +434,12 @@ MultiInputTimeRangeField.propTypes = { value: PropTypes.arrayOf(PropTypes.any), } as any; +/** + * Demos: + * - [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [MultiInputTimeRangeField API](https://mui.com/x/api/multi-input-time-range-field/) + */ export { MultiInputTimeRangeField }; From 023d09ae8fc3b0df7b25b52f71222a248f68c952 Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 10 Oct 2023 15:21:48 +0200 Subject: [PATCH 08/13] added reference links to SingleInputDateRangeField component --- .../SingleInputDateRangeField.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx index 6374f762afd3..78c88a3129eb 100644 --- a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx @@ -364,4 +364,12 @@ SingleInputDateRangeField.propTypes = { variant: PropTypes.oneOf(['filled', 'outlined', 'standard']), } as any; +/** + * Demos: + * - [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [SingleInputDateRangeField API](https://mui.com/x/api/single-input-date-range-field/) + */ export { SingleInputDateRangeField }; From 4a6a78d4e7d93159c218566e350ff7a976be274f Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 10 Oct 2023 15:21:55 +0200 Subject: [PATCH 09/13] added reference links to SingleInputDateTimeRangeField component --- .../SingleInputDateTimeRangeField.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx b/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx index 83a3f2e3b872..f2adf2b0fce9 100644 --- a/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx @@ -414,4 +414,12 @@ SingleInputDateTimeRangeField.propTypes = { variant: PropTypes.oneOf(['filled', 'outlined', 'standard']), } as any; +/** + * Demos: + * - [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [SingleInputDateTimeRangeField API](https://mui.com/x/api/single-input-date-time-range-field/) + */ export { SingleInputDateTimeRangeField }; From 108cc26d63213c32876c30b98ef2692a1a6c21a0 Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 10 Oct 2023 15:22:02 +0200 Subject: [PATCH 10/13] added reference links to SingleInputTimeRangeField component --- .../SingleInputTimeRangeField.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx b/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx index 117bda6e8b5c..0273b9f00845 100644 --- a/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx @@ -386,4 +386,12 @@ SingleInputTimeRangeField.propTypes = { variant: PropTypes.oneOf(['filled', 'outlined', 'standard']), } as any; +/** + * Demos: + * - [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [SingleInputTimeRangeField API](https://mui.com/x/api/single-input-time-range-field/) + */ export { SingleInputTimeRangeField }; From ba58e0bd51519ddfe451e4a466c7654f955a25bb Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 10 Oct 2023 15:58:08 +0200 Subject: [PATCH 11/13] moved JSDoc comments to the initializer --- .../MultiInputDateRangeField.tsx | 16 ++++++++-------- .../MultiInputDateTimeRangeField.tsx | 16 ++++++++-------- .../MultiInputTimeRangeField.tsx | 16 ++++++++-------- .../SingleInputDateRangeField.tsx | 16 ++++++++-------- .../SingleInputDateTimeRangeField.tsx | 16 ++++++++-------- .../SingleInputTimeRangeField.tsx | 16 ++++++++-------- .../x-date-pickers/src/DateField/DateField.tsx | 16 ++++++++-------- .../src/DateTimeField/DateTimeField.tsx | 16 ++++++++-------- .../x-date-pickers/src/TimeField/TimeField.tsx | 16 ++++++++-------- 9 files changed, 72 insertions(+), 72 deletions(-) diff --git a/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx b/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx index 33001197d0b2..bb03258c1def 100644 --- a/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx @@ -63,6 +63,14 @@ type MultiInputDateRangeFieldComponent = (( props: MultiInputDateRangeFieldProps & React.RefAttributes, ) => React.JSX.Element) & { propTypes?: any }; +/** + * Demos: + * - [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [MultiInputDateRangeField API](https://mui.com/x/api/multi-input-date-range-field/) + */ const MultiInputDateRangeField = React.forwardRef(function MultiInputDateRangeField( inProps: MultiInputDateRangeFieldProps, ref: React.Ref, @@ -411,12 +419,4 @@ MultiInputDateRangeField.propTypes = { value: PropTypes.arrayOf(PropTypes.any), } as any; -/** - * Demos: - * - [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/) - * - [Fields](https://mui.com/x/react-date-pickers/fields/) - * - * API: - * - [MultiInputDateRangeField API](https://mui.com/x/api/multi-input-date-range-field/) - */ export { MultiInputDateRangeField }; diff --git a/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx b/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx index 0616ef8ae486..80c6b19381c7 100644 --- a/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx @@ -61,6 +61,14 @@ type MultiInputDateTimeRangeFieldComponent = (( props: MultiInputDateTimeRangeFieldProps & React.RefAttributes, ) => React.JSX.Element) & { propTypes?: any }; +/** + * Demos: + * - [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [MultiInputDateTimeRangeField API](https://mui.com/x/api/multi-input-date-time-range-field/) + */ const MultiInputDateTimeRangeField = React.forwardRef(function MultiInputDateTimeRangeField( inProps: MultiInputDateTimeRangeFieldProps, ref: React.Ref, @@ -458,12 +466,4 @@ MultiInputDateTimeRangeField.propTypes = { value: PropTypes.arrayOf(PropTypes.any), } as any; -/** - * Demos: - * - [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/) - * - [Fields](https://mui.com/x/react-date-pickers/fields/) - * - * API: - * - [MultiInputDateTimeRangeField API](https://mui.com/x/api/multi-input-date-time-range-field/) - */ export { MultiInputDateTimeRangeField }; diff --git a/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx b/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx index f22fa6facf4e..c7dac92394ff 100644 --- a/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx @@ -63,6 +63,14 @@ type MultiInputTimeRangeFieldComponent = (( props: MultiInputTimeRangeFieldProps & React.RefAttributes, ) => React.JSX.Element) & { propTypes?: any }; +/** + * Demos: + * - [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [MultiInputTimeRangeField API](https://mui.com/x/api/multi-input-time-range-field/) + */ const MultiInputTimeRangeField = React.forwardRef(function MultiInputTimeRangeField( inProps: MultiInputTimeRangeFieldProps, ref: React.Ref, @@ -434,12 +442,4 @@ MultiInputTimeRangeField.propTypes = { value: PropTypes.arrayOf(PropTypes.any), } as any; -/** - * Demos: - * - [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/) - * - [Fields](https://mui.com/x/react-date-pickers/fields/) - * - * API: - * - [MultiInputTimeRangeField API](https://mui.com/x/api/multi-input-time-range-field/) - */ export { MultiInputTimeRangeField }; diff --git a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx index 78c88a3129eb..173720c7e6d9 100644 --- a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx @@ -16,6 +16,14 @@ type DateRangeFieldComponent = (( props: SingleInputDateRangeFieldProps & React.RefAttributes, ) => React.JSX.Element) & { propTypes?: any; fieldType?: string }; +/** + * Demos: + * - [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [SingleInputDateRangeField API](https://mui.com/x/api/single-input-date-range-field/) + */ const SingleInputDateRangeField = React.forwardRef(function SingleInputDateRangeField( inProps: SingleInputDateRangeFieldProps, ref: React.Ref, @@ -364,12 +372,4 @@ SingleInputDateRangeField.propTypes = { variant: PropTypes.oneOf(['filled', 'outlined', 'standard']), } as any; -/** - * Demos: - * - [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/) - * - [Fields](https://mui.com/x/react-date-pickers/fields/) - * - * API: - * - [SingleInputDateRangeField API](https://mui.com/x/api/single-input-date-range-field/) - */ export { SingleInputDateRangeField }; diff --git a/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx b/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx index f2adf2b0fce9..9027bb4a76d9 100644 --- a/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx @@ -16,6 +16,14 @@ type DateRangeFieldComponent = (( props: SingleInputDateTimeRangeFieldProps & React.RefAttributes, ) => React.JSX.Element) & { propTypes?: any; fieldType?: string }; +/** + * Demos: + * - [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [SingleInputDateTimeRangeField API](https://mui.com/x/api/single-input-date-time-range-field/) + */ const SingleInputDateTimeRangeField = React.forwardRef(function SingleInputDateTimeRangeField< TDate, >(inProps: SingleInputDateTimeRangeFieldProps, ref: React.Ref) { @@ -414,12 +422,4 @@ SingleInputDateTimeRangeField.propTypes = { variant: PropTypes.oneOf(['filled', 'outlined', 'standard']), } as any; -/** - * Demos: - * - [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/) - * - [Fields](https://mui.com/x/react-date-pickers/fields/) - * - * API: - * - [SingleInputDateTimeRangeField API](https://mui.com/x/api/single-input-date-time-range-field/) - */ export { SingleInputDateTimeRangeField }; diff --git a/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx b/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx index 0273b9f00845..6aa3e5d4b79c 100644 --- a/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx @@ -16,6 +16,14 @@ type DateRangeFieldComponent = (( props: SingleInputTimeRangeFieldProps & React.RefAttributes, ) => React.JSX.Element) & { propTypes?: any; fieldType?: string }; +/** + * Demos: + * - [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [SingleInputTimeRangeField API](https://mui.com/x/api/single-input-time-range-field/) + */ const SingleInputTimeRangeField = React.forwardRef(function SingleInputTimeRangeField( inProps: SingleInputTimeRangeFieldProps, ref: React.Ref, @@ -386,12 +394,4 @@ SingleInputTimeRangeField.propTypes = { variant: PropTypes.oneOf(['filled', 'outlined', 'standard']), } as any; -/** - * Demos: - * - [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/) - * - [Fields](https://mui.com/x/react-date-pickers/fields/) - * - * API: - * - [SingleInputTimeRangeField API](https://mui.com/x/api/single-input-time-range-field/) - */ export { SingleInputTimeRangeField }; diff --git a/packages/x-date-pickers/src/DateField/DateField.tsx b/packages/x-date-pickers/src/DateField/DateField.tsx index 500146861666..52ad258456f9 100644 --- a/packages/x-date-pickers/src/DateField/DateField.tsx +++ b/packages/x-date-pickers/src/DateField/DateField.tsx @@ -16,6 +16,14 @@ type DateFieldComponent = (( props: DateFieldProps & React.RefAttributes, ) => React.JSX.Element) & { propTypes?: any }; +/** + * Demos: + * - [DateField](http://mui.com/x/react-date-pickers/date-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [DateField API](https://mui.com/x/api/date-pickers/date-field/) + */ const DateField = React.forwardRef(function DateField( inProps: DateFieldProps, ref: React.Ref, @@ -377,12 +385,4 @@ DateField.propTypes = { variant: PropTypes.oneOf(['filled', 'outlined', 'standard']), } as any; -/** - * Demos: - * - [DateField](http://mui.com/x/react-date-pickers/date-field/) - * - [Fields](https://mui.com/x/react-date-pickers/fields/) - * - * API: - * - [DateField API](https://mui.com/x/api/date-pickers/date-field/) - */ export { DateField }; diff --git a/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx b/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx index 498c858c194c..d13fef3f8cf1 100644 --- a/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx +++ b/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx @@ -16,6 +16,14 @@ type DateTimeFieldComponent = (( props: DateTimeFieldProps & React.RefAttributes, ) => React.JSX.Element) & { propTypes?: any }; +/** + * Demos: + * - [DateTimeField](http://mui.com/x/react-date-pickers/date-time-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [DateTimeField API](https://mui.com/x/api/date-pickers/date-time-field/) + */ const DateTimeField = React.forwardRef(function DateTimeField( inProps: DateTimeFieldProps, ref: React.Ref, @@ -424,12 +432,4 @@ DateTimeField.propTypes = { variant: PropTypes.oneOf(['filled', 'outlined', 'standard']), } as any; -/** - * Demos: - * - [DateTimeField](http://mui.com/x/react-date-pickers/date-time-field/) - * - [Fields](https://mui.com/x/react-date-pickers/fields/) - * - * API: - * - [DateTimeField API](https://mui.com/x/api/date-pickers/date-time-field/) - */ export { DateTimeField }; diff --git a/packages/x-date-pickers/src/TimeField/TimeField.tsx b/packages/x-date-pickers/src/TimeField/TimeField.tsx index 905d9dc5de8a..9466e57a4202 100644 --- a/packages/x-date-pickers/src/TimeField/TimeField.tsx +++ b/packages/x-date-pickers/src/TimeField/TimeField.tsx @@ -16,6 +16,14 @@ type TimeFieldComponent = (( props: TimeFieldProps & React.RefAttributes, ) => React.JSX.Element) & { propTypes?: any }; +/** + * Demos: + * - [TimeField](http://mui.com/x/react-date-pickers/time-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * - [TimeField API](https://mui.com/x/api/date-pickers/time-field/) + */ const TimeField = React.forwardRef(function TimeField( inProps: TimeFieldProps, ref: React.Ref, @@ -383,12 +391,4 @@ TimeField.propTypes = { variant: PropTypes.oneOf(['filled', 'outlined', 'standard']), } as any; -/** - * Demos: - * - [TimeField](http://mui.com/x/react-date-pickers/time-field/) - * - [Fields](https://mui.com/x/react-date-pickers/fields/) - * - * API: - * - [TimeField API](https://mui.com/x/api/date-pickers/time-field/) - */ export { TimeField }; From 774195569837e79f4ed37ffc9b16e50175ea9b43 Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 10 Oct 2023 16:51:25 +0200 Subject: [PATCH 12/13] updated generated json for api docs --- docs/translations/api-docs/date-pickers/date-field.json | 2 +- docs/translations/api-docs/date-pickers/date-time-field.json | 2 +- .../api-docs/date-pickers/multi-input-date-range-field.json | 2 +- .../date-pickers/multi-input-date-time-range-field.json | 2 +- .../api-docs/date-pickers/multi-input-time-range-field.json | 2 +- .../api-docs/date-pickers/single-input-date-range-field.json | 2 +- .../date-pickers/single-input-date-time-range-field.json | 2 +- .../api-docs/date-pickers/single-input-time-range-field.json | 2 +- docs/translations/api-docs/date-pickers/time-field.json | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/translations/api-docs/date-pickers/date-field.json b/docs/translations/api-docs/date-pickers/date-field.json index d042a4c8391d..b7836390f2df 100644 --- a/docs/translations/api-docs/date-pickers/date-field.json +++ b/docs/translations/api-docs/date-pickers/date-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "", + "componentDescription": "Demos:\n- [DateField](http://mui.com/x/react-date-pickers/date-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [DateField API](https://mui.com/x/api/date-pickers/date-field/)", "propDescriptions": { "autoFocus": { "description": "If true, the input element is focused during the first mount.", diff --git a/docs/translations/api-docs/date-pickers/date-time-field.json b/docs/translations/api-docs/date-pickers/date-time-field.json index 0dd17bcd75b1..a3fa8732a941 100644 --- a/docs/translations/api-docs/date-pickers/date-time-field.json +++ b/docs/translations/api-docs/date-pickers/date-time-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "", + "componentDescription": "Demos:\n- [DateTimeField](http://mui.com/x/react-date-pickers/date-time-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [DateTimeField API](https://mui.com/x/api/date-pickers/date-time-field/)", "propDescriptions": { "ampm": { "description": "12h/24h view for hour selection clock.", diff --git a/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json b/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json index 63dd9b539641..eeab5b432bb4 100644 --- a/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json +++ b/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "", + "componentDescription": "Demos:\n- [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [MultiInputDateRangeField API](https://mui.com/x/api/multi-input-date-range-field/)", "propDescriptions": { "classes": { "description": "Override or extend the styles applied to the component.", diff --git a/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json b/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json index 9f8f8b0e0835..e9d8756458d9 100644 --- a/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json +++ b/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "", + "componentDescription": "Demos:\n- [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [MultiInputDateTimeRangeField API](https://mui.com/x/api/multi-input-date-time-range-field/)", "propDescriptions": { "ampm": { "description": "12h/24h view for hour selection clock.", diff --git a/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json b/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json index 819c192e52b1..9c9de4b8ac1c 100644 --- a/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json +++ b/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "", + "componentDescription": "Demos:\n- [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [MultiInputTimeRangeField API](https://mui.com/x/api/multi-input-time-range-field/)", "propDescriptions": { "ampm": { "description": "12h/24h view for hour selection clock.", diff --git a/docs/translations/api-docs/date-pickers/single-input-date-range-field.json b/docs/translations/api-docs/date-pickers/single-input-date-range-field.json index ec6acaaa3f47..394248576b3c 100644 --- a/docs/translations/api-docs/date-pickers/single-input-date-range-field.json +++ b/docs/translations/api-docs/date-pickers/single-input-date-range-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "", + "componentDescription": "Demos:\n- [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [SingleInputDateRangeField API](https://mui.com/x/api/single-input-date-range-field/)", "propDescriptions": { "autoFocus": { "description": "If true, the input element is focused during the first mount.", diff --git a/docs/translations/api-docs/date-pickers/single-input-date-time-range-field.json b/docs/translations/api-docs/date-pickers/single-input-date-time-range-field.json index ce04870d6b04..4805e688fc97 100644 --- a/docs/translations/api-docs/date-pickers/single-input-date-time-range-field.json +++ b/docs/translations/api-docs/date-pickers/single-input-date-time-range-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "", + "componentDescription": "Demos:\n- [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [SingleInputDateTimeRangeField API](https://mui.com/x/api/single-input-date-time-range-field/)", "propDescriptions": { "ampm": { "description": "12h/24h view for hour selection clock.", diff --git a/docs/translations/api-docs/date-pickers/single-input-time-range-field.json b/docs/translations/api-docs/date-pickers/single-input-time-range-field.json index f1099afa2497..11ea8b5a74bb 100644 --- a/docs/translations/api-docs/date-pickers/single-input-time-range-field.json +++ b/docs/translations/api-docs/date-pickers/single-input-time-range-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "", + "componentDescription": "Demos:\n- [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [SingleInputTimeRangeField API](https://mui.com/x/api/single-input-time-range-field/)", "propDescriptions": { "ampm": { "description": "12h/24h view for hour selection clock.", diff --git a/docs/translations/api-docs/date-pickers/time-field.json b/docs/translations/api-docs/date-pickers/time-field.json index f1099afa2497..3c8ffc816549 100644 --- a/docs/translations/api-docs/date-pickers/time-field.json +++ b/docs/translations/api-docs/date-pickers/time-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "", + "componentDescription": "Demos:\n- [TimeField](http://mui.com/x/react-date-pickers/time-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [TimeField API](https://mui.com/x/api/date-pickers/time-field/)", "propDescriptions": { "ampm": { "description": "12h/24h view for hour selection clock.", From d27ddaaa8c5ab67a1ab7ee570fc0b2a6b722c0b3 Mon Sep 17 00:00:00 2001 From: michel Date: Thu, 12 Oct 2023 09:10:45 +0200 Subject: [PATCH 13/13] updated component annotation and generated API description --- docs/translations/api-docs/date-pickers/date-field.json | 2 +- docs/translations/api-docs/date-pickers/date-time-field.json | 2 +- .../api-docs/date-pickers/multi-input-date-range-field.json | 2 +- .../date-pickers/multi-input-date-time-range-field.json | 2 +- .../api-docs/date-pickers/multi-input-time-range-field.json | 2 +- .../api-docs/date-pickers/single-input-date-range-field.json | 2 +- .../date-pickers/single-input-date-time-range-field.json | 2 +- .../api-docs/date-pickers/single-input-time-range-field.json | 2 +- docs/translations/api-docs/date-pickers/time-field.json | 2 +- .../src/MultiInputDateRangeField/MultiInputDateRangeField.tsx | 2 ++ .../MultiInputDateTimeRangeField.tsx | 2 ++ .../src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx | 2 ++ .../src/SingleInputDateRangeField/SingleInputDateRangeField.tsx | 2 ++ .../SingleInputDateTimeRangeField.tsx | 2 ++ .../src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx | 2 ++ packages/x-date-pickers/src/DateField/DateField.tsx | 2 ++ packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx | 2 ++ packages/x-date-pickers/src/TimeField/TimeField.tsx | 2 ++ 18 files changed, 27 insertions(+), 9 deletions(-) diff --git a/docs/translations/api-docs/date-pickers/date-field.json b/docs/translations/api-docs/date-pickers/date-field.json index b7836390f2df..d042a4c8391d 100644 --- a/docs/translations/api-docs/date-pickers/date-field.json +++ b/docs/translations/api-docs/date-pickers/date-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "Demos:\n- [DateField](http://mui.com/x/react-date-pickers/date-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [DateField API](https://mui.com/x/api/date-pickers/date-field/)", + "componentDescription": "", "propDescriptions": { "autoFocus": { "description": "If true, the input element is focused during the first mount.", diff --git a/docs/translations/api-docs/date-pickers/date-time-field.json b/docs/translations/api-docs/date-pickers/date-time-field.json index a3fa8732a941..0dd17bcd75b1 100644 --- a/docs/translations/api-docs/date-pickers/date-time-field.json +++ b/docs/translations/api-docs/date-pickers/date-time-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "Demos:\n- [DateTimeField](http://mui.com/x/react-date-pickers/date-time-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [DateTimeField API](https://mui.com/x/api/date-pickers/date-time-field/)", + "componentDescription": "", "propDescriptions": { "ampm": { "description": "12h/24h view for hour selection clock.", diff --git a/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json b/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json index eeab5b432bb4..63dd9b539641 100644 --- a/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json +++ b/docs/translations/api-docs/date-pickers/multi-input-date-range-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "Demos:\n- [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [MultiInputDateRangeField API](https://mui.com/x/api/multi-input-date-range-field/)", + "componentDescription": "", "propDescriptions": { "classes": { "description": "Override or extend the styles applied to the component.", diff --git a/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json b/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json index e9d8756458d9..9f8f8b0e0835 100644 --- a/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json +++ b/docs/translations/api-docs/date-pickers/multi-input-date-time-range-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "Demos:\n- [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [MultiInputDateTimeRangeField API](https://mui.com/x/api/multi-input-date-time-range-field/)", + "componentDescription": "", "propDescriptions": { "ampm": { "description": "12h/24h view for hour selection clock.", diff --git a/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json b/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json index 9c9de4b8ac1c..819c192e52b1 100644 --- a/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json +++ b/docs/translations/api-docs/date-pickers/multi-input-time-range-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "Demos:\n- [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [MultiInputTimeRangeField API](https://mui.com/x/api/multi-input-time-range-field/)", + "componentDescription": "", "propDescriptions": { "ampm": { "description": "12h/24h view for hour selection clock.", diff --git a/docs/translations/api-docs/date-pickers/single-input-date-range-field.json b/docs/translations/api-docs/date-pickers/single-input-date-range-field.json index 394248576b3c..ec6acaaa3f47 100644 --- a/docs/translations/api-docs/date-pickers/single-input-date-range-field.json +++ b/docs/translations/api-docs/date-pickers/single-input-date-range-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "Demos:\n- [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [SingleInputDateRangeField API](https://mui.com/x/api/single-input-date-range-field/)", + "componentDescription": "", "propDescriptions": { "autoFocus": { "description": "If true, the input element is focused during the first mount.", diff --git a/docs/translations/api-docs/date-pickers/single-input-date-time-range-field.json b/docs/translations/api-docs/date-pickers/single-input-date-time-range-field.json index 4805e688fc97..ce04870d6b04 100644 --- a/docs/translations/api-docs/date-pickers/single-input-date-time-range-field.json +++ b/docs/translations/api-docs/date-pickers/single-input-date-time-range-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "Demos:\n- [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [SingleInputDateTimeRangeField API](https://mui.com/x/api/single-input-date-time-range-field/)", + "componentDescription": "", "propDescriptions": { "ampm": { "description": "12h/24h view for hour selection clock.", diff --git a/docs/translations/api-docs/date-pickers/single-input-time-range-field.json b/docs/translations/api-docs/date-pickers/single-input-time-range-field.json index 11ea8b5a74bb..f1099afa2497 100644 --- a/docs/translations/api-docs/date-pickers/single-input-time-range-field.json +++ b/docs/translations/api-docs/date-pickers/single-input-time-range-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "Demos:\n- [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [SingleInputTimeRangeField API](https://mui.com/x/api/single-input-time-range-field/)", + "componentDescription": "", "propDescriptions": { "ampm": { "description": "12h/24h view for hour selection clock.", diff --git a/docs/translations/api-docs/date-pickers/time-field.json b/docs/translations/api-docs/date-pickers/time-field.json index 3c8ffc816549..f1099afa2497 100644 --- a/docs/translations/api-docs/date-pickers/time-field.json +++ b/docs/translations/api-docs/date-pickers/time-field.json @@ -1,5 +1,5 @@ { - "componentDescription": "Demos:\n- [TimeField](http://mui.com/x/react-date-pickers/time-field/)\n- [Fields](https://mui.com/x/react-date-pickers/fields/)\n\nAPI:\n- [TimeField API](https://mui.com/x/api/date-pickers/time-field/)", + "componentDescription": "", "propDescriptions": { "ampm": { "description": "12h/24h view for hour selection clock.", diff --git a/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx b/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx index bb03258c1def..689f01243793 100644 --- a/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx @@ -65,10 +65,12 @@ type MultiInputDateRangeFieldComponent = (( /** * Demos: + * * - [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/) * - [Fields](https://mui.com/x/react-date-pickers/fields/) * * API: + * * - [MultiInputDateRangeField API](https://mui.com/x/api/multi-input-date-range-field/) */ const MultiInputDateRangeField = React.forwardRef(function MultiInputDateRangeField( diff --git a/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx b/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx index 80c6b19381c7..4df9cffc2254 100644 --- a/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.tsx @@ -63,10 +63,12 @@ type MultiInputDateTimeRangeFieldComponent = (( /** * Demos: + * * - [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/) * - [Fields](https://mui.com/x/react-date-pickers/fields/) * * API: + * * - [MultiInputDateTimeRangeField API](https://mui.com/x/api/multi-input-date-time-range-field/) */ const MultiInputDateTimeRangeField = React.forwardRef(function MultiInputDateTimeRangeField( diff --git a/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx b/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx index c7dac92394ff..dc70b84cea3d 100644 --- a/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/MultiInputTimeRangeField.tsx @@ -65,10 +65,12 @@ type MultiInputTimeRangeFieldComponent = (( /** * Demos: + * * - [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/) * - [Fields](https://mui.com/x/react-date-pickers/fields/) * * API: + * * - [MultiInputTimeRangeField API](https://mui.com/x/api/multi-input-time-range-field/) */ const MultiInputTimeRangeField = React.forwardRef(function MultiInputTimeRangeField( diff --git a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx index 173720c7e6d9..562aac535712 100644 --- a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/SingleInputDateRangeField.tsx @@ -18,10 +18,12 @@ type DateRangeFieldComponent = (( /** * Demos: + * * - [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/) * - [Fields](https://mui.com/x/react-date-pickers/fields/) * * API: + * * - [SingleInputDateRangeField API](https://mui.com/x/api/single-input-date-range-field/) */ const SingleInputDateRangeField = React.forwardRef(function SingleInputDateRangeField( diff --git a/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx b/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx index 9027bb4a76d9..a656eb4cfdef 100644 --- a/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.tsx @@ -18,10 +18,12 @@ type DateRangeFieldComponent = (( /** * Demos: + * * - [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/) * - [Fields](https://mui.com/x/react-date-pickers/fields/) * * API: + * * - [SingleInputDateTimeRangeField API](https://mui.com/x/api/single-input-date-time-range-field/) */ const SingleInputDateTimeRangeField = React.forwardRef(function SingleInputDateTimeRangeField< diff --git a/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx b/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx index 6aa3e5d4b79c..6633ac7a1b9d 100644 --- a/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/SingleInputTimeRangeField.tsx @@ -18,10 +18,12 @@ type DateRangeFieldComponent = (( /** * Demos: + * * - [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/) * - [Fields](https://mui.com/x/react-date-pickers/fields/) * * API: + * * - [SingleInputTimeRangeField API](https://mui.com/x/api/single-input-time-range-field/) */ const SingleInputTimeRangeField = React.forwardRef(function SingleInputTimeRangeField( diff --git a/packages/x-date-pickers/src/DateField/DateField.tsx b/packages/x-date-pickers/src/DateField/DateField.tsx index 52ad258456f9..ffd3ad5b76e0 100644 --- a/packages/x-date-pickers/src/DateField/DateField.tsx +++ b/packages/x-date-pickers/src/DateField/DateField.tsx @@ -18,10 +18,12 @@ type DateFieldComponent = (( /** * Demos: + * * - [DateField](http://mui.com/x/react-date-pickers/date-field/) * - [Fields](https://mui.com/x/react-date-pickers/fields/) * * API: + * * - [DateField API](https://mui.com/x/api/date-pickers/date-field/) */ const DateField = React.forwardRef(function DateField( diff --git a/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx b/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx index d13fef3f8cf1..bf7617deab8c 100644 --- a/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx +++ b/packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx @@ -18,10 +18,12 @@ type DateTimeFieldComponent = (( /** * Demos: + * * - [DateTimeField](http://mui.com/x/react-date-pickers/date-time-field/) * - [Fields](https://mui.com/x/react-date-pickers/fields/) * * API: + * * - [DateTimeField API](https://mui.com/x/api/date-pickers/date-time-field/) */ const DateTimeField = React.forwardRef(function DateTimeField( diff --git a/packages/x-date-pickers/src/TimeField/TimeField.tsx b/packages/x-date-pickers/src/TimeField/TimeField.tsx index 9466e57a4202..26908efef28a 100644 --- a/packages/x-date-pickers/src/TimeField/TimeField.tsx +++ b/packages/x-date-pickers/src/TimeField/TimeField.tsx @@ -18,10 +18,12 @@ type TimeFieldComponent = (( /** * Demos: + * * - [TimeField](http://mui.com/x/react-date-pickers/time-field/) * - [Fields](https://mui.com/x/react-date-pickers/fields/) * * API: + * * - [TimeField API](https://mui.com/x/api/date-pickers/time-field/) */ const TimeField = React.forwardRef(function TimeField(