diff --git a/src/addons/Confirm/Confirm.js b/src/addons/Confirm/Confirm.js
index 2b3e7c004e..57a360e6f4 100644
--- a/src/addons/Confirm/Confirm.js
+++ b/src/addons/Confirm/Confirm.js
@@ -11,7 +11,14 @@ import Modal from '../../modules/Modal'
* @see Modal
*/
const Confirm = React.forwardRef(function (props, ref) {
- const { cancelButton, confirmButton, content, header, open, size } = props
+ const {
+ cancelButton = 'Cancel',
+ confirmButton = 'OK',
+ content = 'Are you sure?',
+ header,
+ open,
+ size = 'small',
+ } = props
const rest = getUnhandledProps(Confirm, props)
const handleCancel = (e) => {
@@ -96,11 +103,4 @@ Confirm.propTypes = {
size: PropTypes.oneOf(['mini', 'tiny', 'small', 'large', 'fullscreen']),
}
-Confirm.defaultProps = {
- cancelButton: 'Cancel',
- confirmButton: 'OK',
- content: 'Are you sure?',
- size: 'small',
-}
-
export default Confirm
diff --git a/src/addons/Pagination/Pagination.js b/src/addons/Pagination/Pagination.js
index 078389ab26..fb99c755ae 100644
--- a/src/addons/Pagination/Pagination.js
+++ b/src/addons/Pagination/Pagination.js
@@ -16,11 +16,28 @@ import PaginationItem from './PaginationItem'
*/
const Pagination = React.forwardRef(function (props, ref) {
const {
- 'aria-label': ariaLabel,
- boundaryRange,
+ 'aria-label': ariaLabel = 'Pagination Navigation',
+ boundaryRange = 1,
disabled,
- ellipsisItem,
- siblingRange,
+ ellipsisItem = '...',
+ firstItem = {
+ 'aria-label': 'First item',
+ content: '«',
+ },
+ lastItem = {
+ 'aria-label': 'Last item',
+ content: '»',
+ },
+ nextItem = {
+ 'aria-label': 'Next item',
+ content: '⟩',
+ },
+ pageItem = {},
+ prevItem = {
+ 'aria-label': 'Previous item',
+ content: '⟨',
+ },
+ siblingRange = 1,
totalPages,
} = props
const [activePage, setActivePage] = useAutoControlledValue({
@@ -63,10 +80,19 @@ const Pagination = React.forwardRef(function (props, ref) {
})
const rest = getUnhandledProps(Pagination, props)
+ const paginationItemTypes = {
+ firstItem,
+ lastItem,
+ ellipsisItem,
+ nextItem,
+ pageItem,
+ prevItem,
+ }
+
return (