Skip to content

Commit

Permalink
[docs] Add reference links to picker field components (#10631)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelengelen authored Oct 12, 2023
1 parent 1ea719d commit a86f242
Show file tree
Hide file tree
Showing 10 changed files with 92 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/pages/x/api/date-pickers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ type MultiInputDateRangeFieldComponent = (<TDate>(
props: MultiInputDateRangeFieldProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => 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<TDate>(
inProps: MultiInputDateRangeFieldProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ type MultiInputDateTimeRangeFieldComponent = (<TDate>(
props: MultiInputDateTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => 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<TDate>(
inProps: MultiInputDateTimeRangeFieldProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ type MultiInputTimeRangeFieldComponent = (<TDate>(
props: MultiInputTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => 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<TDate>(
inProps: MultiInputTimeRangeFieldProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ type DateRangeFieldComponent = (<TDate>(
props: SingleInputDateRangeFieldProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => 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<TDate>(
inProps: SingleInputDateRangeFieldProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ type DateRangeFieldComponent = (<TDate>(
props: SingleInputDateTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => 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<TDate>, ref: React.Ref<HTMLDivElement>) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ type DateRangeFieldComponent = (<TDate>(
props: SingleInputTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => 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<TDate>(
inProps: SingleInputTimeRangeFieldProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down
10 changes: 10 additions & 0 deletions packages/x-date-pickers/src/DateField/DateField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ type DateFieldComponent = (<TDate>(
props: DateFieldProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => 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<TDate>(
inProps: DateFieldProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down
10 changes: 10 additions & 0 deletions packages/x-date-pickers/src/DateTimeField/DateTimeField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ type DateTimeFieldComponent = (<TDate>(
props: DateTimeFieldProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => 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<TDate>(
inProps: DateTimeFieldProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down
10 changes: 10 additions & 0 deletions packages/x-date-pickers/src/TimeField/TimeField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ type TimeFieldComponent = (<TDate>(
props: TimeFieldProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => 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<TDate>(
inProps: TimeFieldProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down

0 comments on commit a86f242

Please sign in to comment.