Skip to content

Commit

Permalink
[docs] Remove day from the default dayOfWeekFormatter function pa…
Browse files Browse the repository at this point in the history
…rams (#12644)
  • Loading branch information
LukasTy committed Apr 3, 2024
1 parent 2791237 commit 83fd4ef
Show file tree
Hide file tree
Showing 35 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/date-calendar.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/date-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/date-range-calendar.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/date-range-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/date-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/date-time-range-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/desktop-date-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/mobile-date-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/mobile-date-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/static-date-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"autoFocus": { "type": { "name": "bool" } },
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/static-date-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"autoFocus": { "type": { "name": "bool" } },
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"default": "(date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
"signature": {
"type": "function(date: TDate) => string",
"describedArgs": ["date"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ DateRangeCalendar.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ DateRangePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ DateTimeRangePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ DesktopDateRangePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ DesktopDateTimeRangePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ MobileDateRangePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ MobileDateTimeRangePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ StaticDateRangePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/x-date-pickers/src/DateCalendar/DateCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ DateCalendar.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/x-date-pickers/src/DateCalendar/DayCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface ExportedDayCalendarProps<TDate extends PickerValidDate>
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter?: (date: TDate) => string;
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/x-date-pickers/src/DatePicker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ DatePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ DateTimePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ DesktopDatePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ DesktopDateTimePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ MobileDatePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ MobileDateTimePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ StaticDatePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ StaticDateTimePicker.propTypes = {
* Formats the day of week displayed in the calendar header.
* @param {TDate} date The date of the day of week provided by the adapter.
* @returns {string} The name to display.
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
*/
dayOfWeekFormatter: PropTypes.func,
/**
Expand Down

0 comments on commit 83fd4ef

Please sign in to comment.