diff --git a/docs/translations/api-docs/pagination/pagination.json b/docs/translations/api-docs/pagination/pagination.json index 9ee2186245e6ce..f54f44edd8de1f 100644 --- a/docs/translations/api-docs/pagination/pagination.json +++ b/docs/translations/api-docs/pagination/pagination.json @@ -14,7 +14,7 @@ "getItemAriaLabel": { "description": "Accepts a function which returns a string value that provides a user-friendly name for the current page. This is important for screen reader users.
For localization purposes, you can use the provided translations.", "typeDescriptions": { - "type": "The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.", + "type": "The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.", "page": "The page number to format.", "selected": "If true, the current page is selected." } diff --git a/packages/mui-material/src/Pagination/Pagination.d.ts b/packages/mui-material/src/Pagination/Pagination.d.ts index 14ea606c6a1beb..11a27ca7b51a4c 100644 --- a/packages/mui-material/src/Pagination/Pagination.d.ts +++ b/packages/mui-material/src/Pagination/Pagination.d.ts @@ -41,16 +41,13 @@ export interface PaginationProps * This is important for screen reader users. * * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/). - * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'. + * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'. * @param {number} page The page number to format. * @param {bool} selected If true, the current page is selected. * @returns {string} */ - getItemAriaLabel?: ( - type: 'page' | 'first' | 'last' | 'next' | 'previous', - page: number, - selected: boolean, - ) => string; + getItemAriaLabel?: (type: UsePaginationItem['type'], page: number, selected: boolean) => string; + /** * Render the item. * @param {PaginationRenderItemParams} params The props to spread on a PaginationItem. diff --git a/packages/mui-material/src/Pagination/Pagination.js b/packages/mui-material/src/Pagination/Pagination.js index 61a196f5981c40..03bfa1cf2ec6e1 100644 --- a/packages/mui-material/src/Pagination/Pagination.js +++ b/packages/mui-material/src/Pagination/Pagination.js @@ -174,7 +174,7 @@ Pagination.propTypes /* remove-proptypes */ = { * This is important for screen reader users. * * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/). - * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'. + * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'. * @param {number} page The page number to format. * @param {bool} selected If true, the current page is selected. * @returns {string}